repo_name
stringlengths
4
116
path
stringlengths
4
379
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
srsudar/SemCache
extension/test/scripts/content-script/cs-evaluation-test.js
14556
/*jshint esnext:true*/ 'use strict'; const proxyquire = require('proxyquire'); const sinon = require('sinon'); const test = require('tape'); let evaluation = require('../../../app/scripts/content-script/cs-evaluation'); /** * Proxyquire the object with proxies passed as the proxied modules. */ function proxyquire...
mit
HasanSa/hackathon
node_modules/react-visibility-sensor/karma.conf.js
1575
// Karma configuration // Generated on Thu Sep 18 2014 10:13:19 GMT+1000 (EST) module.exports = function(config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/k...
mit
fernandozamoraj/DirectoryWiz
DirectoryWiz.UnitTests/RemoveHandlerTests.cs
3864
using DirectoryWiz.Framework.Api; using DirectoryWiz.Framework.CommandLineHelpers; using DirectoryWiz.Framework.CommandLineHelpers.Handlers; using Moq; using NUnit.Framework; namespace DirectoryWiz.UnitTests { public class RemoveHandlerContext { protected RemoveHandler RemoveHandler; ...
mit
mahemrai/SinglePay
src/PaymentService/Element/Express/Type/ExtendedParameters.php
246
<?php namespace SinglePay\PaymentService\Element\Express\Type; class ExtendedParameters { public $Key; public $Value; public function __construct($key, $value) { $this->Key = $key; $this->Value = $value; } }
mit
shreyshahi/bchydro
bchydro/gmm.py
3365
''' Implementation of the BC Hydro model''' import numpy as np import itertools import model def interpolateSpectra(spectra1 , spectra2 , period1, period2, period): slope = (spectra2 - spectra1)/(np.log(period2) - np.log(period1)) return spectra1 + slope*(np.log(period) - np.log(period1)) def fixPeriods(augme...
mit
tranngoclam/fast-list
app/src/main/java/io/github/tranngoclam/fastlist/RxRecyclerViewAdapterCallback.java
822
package io.github.tranngoclam.fastlist; import android.support.v7.widget.RecyclerView; public abstract class RxRecyclerViewAdapterCallback<T> extends RxSortedListCallback<T> { private final RecyclerView.Adapter mAdapter; public RxRecyclerViewAdapterCallback(RecyclerView.Adapter adapter) { mAdapter = adapter...
mit
mabarroso/associator
spec/dummy/rails_app/app/models/six.rb
35
class Six < ActiveRecord::Base end
mit
obsidiancoin/obsidiancoin
src/net.cpp
52988
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "irc.h" #include "db.h" #i...
mit
MStaehling/TIY-Etsy
bower_components/vue/src/api/global.js
3032
var _ = require('../util') var config = require('../config') /** * Expose useful internals */ exports.util = _ exports.nextTick = _.nextTick exports.config = require('../config') exports.compiler = require('../compiler') exports.parsers = { path: require('../parsers/path'), text: require('../parsers/text'), ...
mit
koodikindral/emailservice
src/main/java/email/ManifestInfo.java
2205
package email; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.File; import java.net.URL; import java.util.Properties; import java.util.jar.Attributes; import java.util.jar.JarFile; import java.util.jar.Manifest; public class ManifestInfo { private static Logger logger = LoggerFactory.get...
mit
stevecoward/dork-enum
dorkenum/mixins/user_actions.py
211
import simplejson as json class UserActions(): directives = {} def __init__(self, file): try: self.directives = json.loads(file) except Exception as e: print e
mit
vigetlabs/ars-arsenal
src/components/scroll-monitor.tsx
2234
import * as React from 'react' import { findDOMNode } from 'react-dom' interface Props { page: number refresh: string onPage: (number: number) => void } class ScrollMonitor extends React.Component<Props, null> { teardown = () => {} lastChild: HTMLElement = null container: HTMLElement = null getElement(...
mit
lamuertepeluda/react-mapbox-gl
src/__tests__/overlays.test.ts
1493
jest.mock('mapbox-gl', () => ({ default: {}, LngLat: {} })); import { overlayTransform, OverlayProps, anchors, Anchor } from '../util/overlays'; describe('overlayTransform', () => { it('Should transform position anchor and offset accordingly', () => { const overlayProps: OverlayProps = { anchor: ancho...
mit
thushanp/thushanp.github.io
vendor/twilio/sdk/Twilio/Rest/Api/V2010/Account/Address/DependentPhoneNumberList.php
5083
<?php /** * This code was generated by * \ / _ _ _| _ _ * | (_)\/(_)(_|\/| |(/_ v1.0.0 * / / */ namespace Twilio\Rest\Api\V2010\Account\Address; use Twilio\ListResource; use Twilio\Values; use Twilio\Version; class DependentPhoneNumberList extends ListResource { /** * Co...
mit
ubivar/ubivar-python
oriskami/test/resources/test_listable.py
950
import oriskami from oriskami.test.helper import ( OriskamiApiTestCase, MyListable ) class ListableAPIResourceTests(OriskamiApiTestCase): def test_all(self): self.mock_response({ 'object': 'events', 'data': [ { 'object': 'events', ...
mit
tmcgee/cmv-wab-widgets
wab/2.13/jimu.js/OnScreenWidgetPanel.js
14641
/////////////////////////////////////////////////////////////////////////// // Copyright © Esri. All Rights Reserved. // // Licensed under the Apache License Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.ap...
mit
Azure/azure-sdk-for-java
sdk/synapse/azure-resourcemanager-synapse/src/samples/java/com/azure/resourcemanager/synapse/generated/DataMaskingPoliciesGetSamples.java
882
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.resourcemanager.synapse.generated; import com.azure.core.util.Context; /** Samples for DataMaskingPolicies Get. */ public final class DataMaski...
mit
PLfW/lab-5-BabalaV
node_modules/mongoose/lib/model.js
101803
/*! * Module dependencies. */ var Document = require('./document'); var MongooseError = require('./error'); var VersionError = MongooseError.VersionError; var DivergentArrayError = MongooseError.DivergentArrayError; var Query = require('./query'); var Aggregate = require('./aggregate'); var Schema = requir...
mit
iprnq9/give-back
institution_profile.php
5136
<!DOCTYPE html> <html> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/> <meta name="theme-color" content="#2196F3" /> <title>Institution Profile - Give Back</title> <?php include('session.php'); include 'inc...
mit
paulcbetts/audio-switcher
src/AudioSwitcher/Presentation/UI/ToolStripExtensions.cs
3097
// ----------------------------------------------------------------------- // Copyright (c) David Kean. // ----------------------------------------------------------------------- using System; using System.Linq; using System.ComponentModel; using System.Windows.Forms; using AudioSwitcher.ComponentModel; using AudioSwi...
mit
vikerman/angular
packages/zone.js/test/common/Promise.spec.ts
23653
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {isNode, zoneSymbol} from '../../lib/common/utils'; import {ifEnvSupports} from '../test-util'; declare cons...
mit
boldr/boldr-ui
src/util/TouchRipple.js
3309
/* @flow weak */ /* eslint-disable */ import * as React from 'react'; import ReactDOM from 'react-dom'; import TransitionGroup from 'react-transition-group/TransitionGroup'; import Ripple from './Ripple'; type Props = { className: ?string, style: ?Object, displayCenter: ?boolean, }; export default class TouchR...
mit
potherca-contrib/GitVersion
GitVersionCore/AssemblyMetaData.cs
341
namespace GitVersion { public class AssemblyMetaData { public AssemblyMetaData(string version, string fileVersion) { Version = version; FileVersion = fileVersion; } public string Version { get; private set; } public string FileVersion { get; priv...
mit
pcclarke/civ-techs
node_modules/@material-ui/core/esm/Modal/TrapFocus.js
5863
/* eslint-disable consistent-return, jsx-a11y/no-noninteractive-tabindex */ import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import warning from 'warning'; import ownerDocument from '../utils/ownerDocument'; import { useForkRef } from '../utils/reactHelpers'; function Tr...
mit
hisland/hdl-assets
js/misc/req-mod-tmpl/req-mod-tmpl.js
364
/** * */ define(['jquery', 'kissy'], function($, S){ /** * @class * @memberOf sf */ function Compare(){ this.__init().__initEvent(); } /** * @lends sf.Compare# */ S.augment(Compare, { /** * @return this */ __init: function(){ return this; }, /** * @return this */ __initEve...
mit
brain-research/mirage-rl-qprop
rllab/exploration_strategies/base.py
203
class ExplorationStrategy(object): def get_action(self, t, observation, policy, **kwargs): action, _ = policy.get_action(observation) return action def reset(self): pass
mit
IcecaveStudios/pasta-ast
test/suite/ContentBlockTest.php
499
<?php namespace Icecave\Pasta\AST; use PHPUnit_Framework_TestCase; class ContentBlockTest extends PHPUnit_Framework_TestCase { public function setUp() { $this->node = new ContentBlock('<html></html>'); } public function testContent() { $this->assertSame('<html></html>', $this->nod...
mit
goppii/GBackup
src/com/gbackup/components/SubjectI.java
175
package com.gbackup.components; public interface SubjectI { void add(ObserverI observer); void notify(String name, int value); void remove(ObserverI observer); }
mit
HAG87/vscode-maxscript
.eslintrc.js
1166
/* 👋 Hi! This file was autogenerated by tslint-to-eslint-config. https://github.com/typescript-eslint/tslint-to-eslint-config It represents the closest reasonable ESLint configuration to this project's original TSLint configuration. We recommend eventually switching this configuration to extend from the recommended ...
mit
WILLYTV/react
cdc-admin/src/componentes/InputCustomizado.js
1090
import React, { Component } from 'react'; import PubSub from 'pubsub-js'; export default class InputCustomizado extends Component{ constructor(){ super(); this.state = {msgErro:''}; } render() { return ( <div className="pure-control-group"> <label htmlFor...
mit
vkku/cppWorkspace
stringPrograms/subArrGivenSum.cpp
700
#include<iostream> #include<string> #include<stdlib.h> using namespace std; int main() { int num[50], sum = 0, i =0; int flag = 0; cout<<"\nEnter array\n"; for(i = 0 ; i < 5 ; i++) { cout<<"\nElement"<<i+1<<" : "; cin>>num[i]; } cout<<"\nEnter Sum\n"; cin>>sum; ...
mit
Microsoft/WPF-Samples
Threading/UsingDispatcher/MainWindow.cs
3801
// // Copyright (c) Microsoft. All rights reserved. // // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Threading; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Threading; na...
mit
toni-moreno/snmpcollector
src/core/default-request.options.ts
229
import { BaseRequestOptions } from '@angular/http'; export class DefaultRequestOptions extends BaseRequestOptions { constructor () { super(); this.headers.append('Content-Type', 'application/json'); } }
mit
czim/laravel-cms-models
src/ModelInformation/Data/Form/Layout/ModelFormFieldLabelData.php
1099
<?php namespace Czim\CmsModels\ModelInformation\Data\Form\Layout; use Czim\CmsModels\Support\Enums\LayoutNodeType; /** * Class ModelFormFieldLabelData * * Data container for label in layout. Useful for field group, to add * in-row labels. * * @property string $type * @property string $label * @property string...
mit
FacticiusVir/Warm
Keeper.Warm.Core/Properties/AssemblyInfo.cs
1477
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Ke...
mit
redkyo017/LaraParse
src/ParseServiceProvider.php
3063
<?php namespace LaraParse; use Illuminate\Support\ServiceProvider; use LaraParse\Auth\ParseUserProvider; use LaraParse\Subclasses\User; use Parse\ParseClient; use LaraParse\Session\ParseSessionStorage; class ParseServiceProvider extends ServiceProvider { /** * Bootstrap the application services. * ...
mit
buenadigital/SaaSPro
src/SaaSPro.Web.Management/App_Start/AutoMapperConfig.cs
1140
using AutoMapper; using SaaSPro.Domain; using SaaSPro.Services.ViewModels; using SaaSPro.Web.Common.Scheduling; using SaaSPro.Web.Management.ViewModels; namespace SaaSPro.Web.Management { public class AutoMapperConfig { public static void Register() { Mapper.CreateMap<Plan, PlansLi...
mit
fcrespo82/atom-markdown-table-formatter
src/atom.d.ts
1076
export {} declare module 'atom' { interface ConfigValues { 'markdown-table-formatter': { autoSelectEntireDocument: boolean spacePadding: number keepFirstAndLastPipes: boolean formatOnSave: boolean defaultTableJustification: 'Left' | 'Right' | 'Center' markdownGrammarScopes: str...
mit
ronawilliamsoso/eos
eos-parent/eos-service/src/main/java/com/vcg/uc/entity/AddPriceSpy.java
895
package com.vcg.uc.entity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @ApiModel public class AddPriceSpy { @ApiModelProperty(value = "手机号") private String mobile; @ApiModelProperty(value = "新用户的时候一定必填") private String name; ...
mit
imdanshraaj/screeenly
resources/views/app/dashboard.blade.php
1472
@extends ('layouts.master') @section('meta_title') Dashboard @stop @section('content') <div class="p2 bg-white border border-black rounded mb2"> <p><b>Hi there! Thanks for using Screeenly.</b></p> You find instructions to use the API in our <a href="https://github....
mit
CGX-GROUP/DotSpatial
Source/DotSpatial.Controls/LayoutPropertyGrid.cs
3197
// Copyright (c) DotSpatial Team. All rights reserved. // Licensed under the MIT license. See License.txt file in the project root for full license information. using System; using System.ComponentModel; using System.Windows.Forms; namespace DotSpatial.Controls { /// <summary> /// This is a control...
mit
dakingha69/readable
frontend/src/index.js
947
import React from 'react' import ReactDOM from 'react-dom' import { createStore, applyMiddleware } from 'redux' import thunk from 'redux-thunk' import { Provider } from 'react-redux' import { BrowserRouter as Router, Route } from 'react-router-dom' import App from './components/App' import PostDetail from './component...
mit
szymach/talesweaver
src/Domain/ValueObject/Email.php
451
<?php declare(strict_types=1); namespace Talesweaver\Domain\ValueObject; use Assert\Assertion; class Email { /** * @var string */ private $value; public function __construct(string $value) { Assertion::email($value); $this->value = $value; } public function __toSt...
mit
Viktor-s/f
src/Furniture/FactoryBundle/Entity/FactoryContact.php
3787
<?php namespace Furniture\FactoryBundle\Entity; use Sylius\Component\Translation\Model\AbstractTranslatable; use Symfony\Component\Validator\Constraints as Assert; class FactoryContact extends AbstractTranslatable { /** * @var int */ private $id; /** * @var Factory */ private $fa...
mit
sehgalvibhor/Whatsapp-ening
flaskr.py
2428
import os import sqlite3 import re import csv from nltk import FreqDist from flask import Flask, request, session, g, redirect, url_for, abort,render_template, flash from werkzeug.utils import secure_filename from flask import send_from_directory app = Flask(__name__) app.config.from_object(__name__) UPLOAD_FOLDER =...
mit
kangmin2z/dev_ci4
system/View/Parser.php
19564
<?php namespace CodeIgniter\View; /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014-2017 British Columbia Institute of Technology * * Permission is hereby granted, free of charge, to any person obtaini...
mit
fweber1/Annies-Ancestors
webtrees/app/Census/CensusColumnBirthPlaceSimple.php
1297
<?php /** * webtrees: online genealogy * Copyright (C) 2016 webtrees development team * 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 3 of the License, or * (at your option)...
mit
caioariede/pyq
sizzle/match.py
3323
from .selector import Selector class MatchEngine(object): pseudo_fns = {} selector_class = Selector def __init__(self): self.register_pseudo('not', self.pseudo_not) self.register_pseudo('has', self.pseudo_has) def register_pseudo(self, name, fn): self.pseudo_fns[name] = fn ...
mit
andyfurniss4/DynamicsDataSearch
src/DynamicsDataSearch/angularApp/app/dynamics-search/models/dynamics-contact.ts
153
export class DynamicsContact { contactid: string = undefined; fullname: string = undefined; gbp_legacycontactid: string = undefined; }
mit
Mysterypancake1/Source-Fun
js/crawly.js
547
"use strict"; const request = require("request"); const cheerio = require("cheerio"); function isFile(path) { return path.split("/").pop().indexOf(".") !== -1; } function findFiles(dir) { request(dir, function(error, response, body) { if (body) { const $ = cheerio.load(body); $("a").each(function() { c...
mit
kaoscript/coverage-istanbul
test/fixtures/compile/unless.decl.js
1022
var __ks_coverage = (function(_export) { return typeof _export.__ks_coverage === 'undefined' ? _export.__ks_coverage = {} : _export.__ks_coverage; })(typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : this); if(!__ks_coverage["/fixtures/compile/unless.decl.ks"]) { __ks_coverage["/fixtur...
mit
h4ck3r01/libania
app/helpers.php
4778
<?php /** * Global helpers file with misc functions. */ if (!function_exists('gravatar')) { /** * Access the gravatar helper. * * @return \Creativeorange\Gravatar\Gravatar|\Illuminate\Foundation\Application|mixed */ function gravatar() { return app('gravatar'); } } if (!...
mit
Jason-lee-c/magical-engine
source/magical-engine/src/renderer/gl/VertexBufferObject.cpp
16049
/****************************************************************************** The MIT License (MIT) Copyright (c) 2014 Jason.lee 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 restric...
mit
david-risney/CrashProcess
CrashProcess/CrashProcess.cpp
963
#include <Windows.h> #include <ProcessThreadsApi.h> #include <iostream> using namespace std; int wmain(const int argc, const WCHAR* argv[]) { if (argc == 2) { const DWORD pid = static_cast<DWORD>(_wtoi(argv[1])); const HANDLE process = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid); if (process != NULL) { // ...
mit
stellaval/CSharp
ConsoleInputOutput/CirclePerimeterArea/CirclePS.cs
604
//Problem 3. Circle Perimeter and Area //Write a program that reads the radius r of a circle and prints its perimeter and area formatted with 2 digits after the decimal point. using System; class CirclePS { static void Main() { Console.WriteLine("Please enter the radius of the circle:"); dou...
mit
Koceto/SoftUni
Old Code/Programming Basics/Drawing with loops/Square Frame/Program.cs
698
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Square_Frame { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string dash = new string('-', 1) + new s...
mit
Mykees/Blog-Bundle
Entity/User.php
407
<?php namespace Mvc\BlogBundle\Entity; use Doctrine\ORM\Mapping as ORM; use FOS\UserBundle\Model\User as BaseUser; /** * User * * @ORM\Table() * @ORM\Entity */ class User extends BaseUser { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected...
mit
micahhahn/Hiscross
src/Winterim/Properties/AssemblyInfo.cs
1392
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("Wi...
mit
cubistcastle/infl-form
javascripts/foundation/jquery.foundation.navigation.js
2062
/*;(function ($, window, undefined) { 'use strict'; $.fn.foundationNavigation = function (options) { var lockNavBar = false; // Windows Phone, sadly, does not register touch events :( if (Modernizr.touch || navigator.userAgent.match(/Windows Phone/i)) { $(document).on('click.fndtn touchstart.fnd...
mit
bostrt/gcparse
src/main/java/com/redhat/gcparser/model/space/OldGeneration.java
252
package com.redhat.gcparser.model.space; import com.redhat.gcparser.model.Size; /** * Created by rbost on 6/28/15. */ public class OldGeneration extends SpaceSize { public OldGeneration(Size size) { super(Space.PSOldGen, size); } }
mit
BlueManiac/PoESkillTreeSource
WPFSKillTree/TreeGenerator/ViewModels/AdvancedTabViewModel.cs
28836
using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.ComponentModel; using System.Globalization; using System.Linq; using System.Windows.Data; using System.Windows.Input; using POESKillTree.Localization; using POESKillTree.Model; using POESKillTree.SkillTreeFiles; using PO...
mit
briljant/mimir
examples/src/main/java/org/briljantframework/examples/RandomShapeletForestExamples.java
4835
/** * The MIT License (MIT) * * Copyright (c) 2016 Isak Karlsson * * 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, ...
mit
jtpaasch/armyguys
armyguys/aws/iam/policy.py
2140
# -*- coding: utf-8 -*- """Utilities for working with IAM policies.""" import json from os import path from .. import client as boto3client def create(profile, name, contents=None, filepath=None): """Create an IAM policy (from a file). Args: profile A profile to connect to AWS with. ...
mit
alexwyett/norfolkbadminton_drupal
nbatheme/templates/html.tpl.php
1404
<?php global $base_path; global $theme; $themePath = $base_path . drupal_get_path('theme', 'nbatheme'); $localThemePath = $base_path . drupal_get_path('theme', $theme); ?><!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> <!--[if IE 7]> <html class="no-js ...
mit
NetOfficeFw/NetOffice
Source/OWC10/DispatchInterfaces/SchemaRelationship.cs
5497
using System; using NetRuntimeSystem = System; using System.ComponentModel; using NetOffice.Attributes; namespace NetOffice.OWC10Api { /// <summary> /// DispatchInterface SchemaRelationship /// SupportByVersion OWC10, 1 /// </summary> [SupportByVersion("OWC10", 1)] [EntityType(EntityType.IsDispatchInterface)] ...
mit
kgryte/node-metrics-os
test/test.js
952
// MODULES // var // Expectation library: chai = require( 'chai' ), // Module to be tested: lib = require( './../lib' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'metrics-os', function tests() { 'use strict'; // SETUP // var metrics = lib(); // TESTS // ...
mit
Gnail-nehc/testclient
src/com/testclient/httpmodel/IdValue.java
280
package com.testclient.httpmodel; public class IdValue { int id; String value; public int getId() { return id; } public void setId(int id) { this.id = id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
mit
svens/sal
sal/crypto/hmac.hpp
5914
#pragma once /** * \file sal/crypto/hmac.hpp * Cryptographic HMAC functions */ #include <sal/config.hpp> #include <sal/crypto/hash.hpp> #include <sal/error.hpp> #include <sal/memory.hpp> __sal_begin namespace crypto { /** * Keyed-hash message authentication code * (<a href="https://en.wikipedia.org/wiki/C...
mit
vietjtnguyen/AnimatSim
Gruntfile.js
2316
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-browserify'); grunt.loadNpmTasks('grunt-contrib-concat'); grunt.loadNpmTasks('grunt-contrib-connect'); grunt.loadNpmTasks('grunt-contrib-copy'); grunt.loadNpmTasks('grunt-contrib-jshint'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadN...
mit
zhangqiang110/my4j
pms/src/main/java/com/swfarm/biz/ebay/dao/EbayOrderIndexDao.java
216
package com.swfarm.biz.ebay.dao; import com.swfarm.biz.ebay.bo.EbayOrderIndex; import com.swfarm.pub.framework.dao.GenericDao; public interface EbayOrderIndexDao extends GenericDao<EbayOrderIndex, Long> { }
mit
nickvdyck/gulp-jspm-assets
test/jspm.spec.ts
716
import { Jspm } from '../src/jspm'; describe('jspm facade', () => { beforeEach(() => Jspm.mock()); it('should be possible to swap the jspm implementation', (done: Function) => { Jspm.mock({ normalize: function(msg: string): Promise<string> { return new Promise((resolve: Function, reject: Functi...
mit
BernardTatin/bblog
btat1-libs/src/test/java/com/btat1/sax/SimpleParserTest.java
2130
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.btat1.sax; import java.io.IOException; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAX...
mit
pegurnee/2013-01-111
complete/src/intro/proj/p1/v3/MainClass.java
1144
package intro.proj.p1.v3; /* It's a game. * All coding provided by Eddie Gurnee * * This class allows the user to decide what mode to play * * version 0.2.14 * */ public class MainClass { public static void main(String [ ] args) { for (int k = 0; k < 5; k++) { // Box tha...
mit
stevemu/fake-music-album-api
src/server/api/index.js
1465
'use strict'; var express = require('express'); var router = express.Router(); router.get('/music_albums', function(req, res) { const albums = [ { title: 'Abbey Road', artist: 'The Beatles', url: 'https://www.amazon.com/Abbey-Road-Beatles/dp/B01929HGH4/ref=sr_1_2?ie=UTF8&qid=1486479679&sr=8-2&...
mit
saulmadi/Encomiendas
src/Encomiendas.Web/app/services/httpq.js
1452
angular.module('Encomiendas.Services').factory('$httpq', function ($http, $q) { return { post: function (resource, payload) { var defer = $q.defer(); $http.post(resource, payload) .success(function (data) { defer.resolve(data); }).error...
mit
justhardinal/codeigniter
application/views/news/detail.php
1057
<div class="clearfix"></div> <!-- merapihkan jeda judul "LAtest News --> <style> .kotak-atas { margin-top:40px; } </style> <!-- Latest News --> <section class="kotak-atas"> <div class="container"> <div class="row"> <div class="col-lg-12 text-center"> <h2><?p...
mit
sharrinmanor/example_roulette
src/roulette/Bet.java
1057
package roulette; import util.ConsoleReader; /** * Represents player's attempt to bet on outcome of the roulette wheel's spin. * * @author Robert C. Duvall */ abstract class Bet { private String myDescription; private int myOdds; protected String chosenBet = ""; /** * Constructs a bet with the...
mit
DecipherNow/gm-fabric-dashboard
src/components/Glyphs/Bell.test.js
231
import React from "react"; import { shallow } from "enzyme"; import Bell from "./Bell"; describe("Bell", () => { it("matches snapshot", () => { const aBell = shallow(<Bell />); expect(aBell).toMatchSnapshot(); }); });
mit
Bromvlieg/Scratch
Scratch/CDictionary.cpp
7112
/* libscratch - Multipurpose objective C++ library. Copyright (c) 2015 Angelo Geels <spansjh@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 Software without restri...
mit
ls1intum/ArTEMiS
src/main/java/de/tum/in/www1/artemis/domain/quiz/scoring/ScoringStrategy.java
578
package de.tum.in.www1.artemis.domain.quiz.scoring; import de.tum.in.www1.artemis.domain.SubmittedAnswer; import de.tum.in.www1.artemis.domain.quiz.QuizQuestion; public interface ScoringStrategy { /** * Calculate the score for the given answer to the given quizQuestion * * @param quizQuestion ...
mit
karaivanska/Programming-Fundamentals
Ext-RegEx-Exercises/extractSentencesByKeyword/ExtractSentencesByKeyword.cs
620
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; class ExtractSentencesByKeyword { static void Main() { string input = Console.ReadLine(); //judge 60/100 string text = Console.ReadLine(); ...
mit
rip-lang/samples
samples/enum.rb
142
#these enums would be equivalent mass_states = enum { gas liquid solid } water_states_2 = enum { gas = 1 liquid = 2 solid = 4 }
mit
idekerlab/deep-cell
frontend/client/components/TopPage/Footer.js
380
import React, {Component} from 'react' import style from './style.css' class Footer extends Component { render() { return ( <footer className={style.containerFooter}> <a href='http://www.cytoscape.org/' target='_blank'> &copy; 2016 University of California, San Diego Trey Ideker Lab ...
mit
Coding/Coding-Android
common-coding/src/main/java/net/coding/program/network/model/code/BranchMetrics.java
499
package net.coding.program.network.model.code; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.io.Serializable; public class BranchMetrics implements Serializable { private static final long serialVersionUID = -7032853125318221927L; @SerializedName(...
mit
gossi/trixionary
src/model/SkillReference.php
460
<?php namespace gossi\trixionary\model; use gossi\trixionary\model\Base\SkillReference as BaseSkillReference; /** * Skeleton subclass for representing a row from the 'kk_trixionary_skill_reference' table. * * You should add additional methods to this class to meet the * application requirements. This class will ...
mit
MrHuxu/leetcode
problems/767_reorganize-string/test-cases.js
1136
module.exports = [{ input : ['aab'], output : 'aba' }, { input : ['aaab'], output : '' }, { input : ['tndsewnllhrtwsvxenkscbivijfqnysamckzoyfnapuotmdexzkkrpmppttficzerdndssuveompqkemtbwbodrhwsfpbmkafpwyedpcowruntvymxtyyejqtajkcjakghtdwmuygecjncxzcxezgecrxonnszmqmecgvqqkdagvaaucewelchsmebikscciegzoiamovdojr...
mit
ImagicTheCat/vRP
vrp/cfg/home_components.lua
306
local cfg = {} -- map_entity: {ent,cfg} will fill cfg.pos cfg.chest = { map_entity = {"PoI", {marker_id = 1}} } cfg.wardrobe = { map_entity = {"PoI", {marker_id = 1}} } cfg.gametable = { map_entity = {"PoI", {marker_id = 1}} } cfg.radio = { map_entity = {"PoI", {marker_id = 1}} } return cfg
mit
NCI-Agency/anet
client/src/components/Page.js
5630
import { gql } from "@apollo/client" import { Icon } from "@blueprintjs/core" import { IconNames } from "@blueprintjs/icons" import { setPageProps, setSearchProps } from "actions" import API from "api" import NotFound from "components/NotFound" import PropTypes from "prop-types" import React, { useEffect, useState } fr...
mit
PeterKow/serverAurity
server/utils/crone.js
3386
const CronJob = require('cron').CronJob; const checkGet = require('../api/tweets/tweet').checkGet const userFirends = require('../mock/users.mock.js').userFirends const userFirends100 = require('../mock/users100.mock.js').userFirends const userFirends200 = require('../mock/users200.mock.js').userFirends const userFiren...
mit
the-zebulan/CodeWars
tests/beta_tests/test_how_many_stairs_will_suzuki_climb_in_20_years.py
3034
import unittest from katas.beta.how_many_stairs_will_suzuki_climb_in_20_years import \ stairs_in_20 class StairsIn20YearsTestCase(unittest.TestCase): def test_something(self): self.assertEqual(stairs_in_20([ [[6737, 7244, 5776, 9826, 7057, 9247, 5842, 5484, 6543, 5153, 6832,...
mit
y10k/runsh
test/test_engine.rb
5825
#!/usr/local/bin/ruby # -*- coding: utf-8 -*- require 'runsh' require 'test/unit' module RunSh::Test class ScriptContextTest < Test::Unit::TestCase def setup @program_name = 'foo' @args = %w[ apple banana orange ] @pid = 1234 @env = { 'ENV1' => 'Alice', 'ENV2' => 'Bob' ...
mit
TomaszRewak/TREPL
Source/scripts/compiler/Elements/ValueOf.ts
1963
module L { export class ValueOf extends LogicElement { constructor( public log_value: LogicElement ) { super(); } _compile(environment: Compiler.TypeEnvironment): boolean { this.errorIfEmpty(this.log_value); this.cs = this.log_value.compile(environme...
mit
danmorrisonNZ/digital_graveyard
grave_controller.rb
1319
require_relative 'grave_model.rb' require_relative 'grave_view.rb' class Undertaker def initialize @tombstone_parse = TombstoneParse.new @tombstone_view = TombstoneView.new end def create request_name request_date_of_birth request_date_of_death request_last_words new_user_creation en...
mit
Nahalius/testo
DataTypes/ConsoleApplication2/ConsoleApplication2/Program - DaysSinceB .cs
527
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication2 { class DaysSinceB { static void Main6(string[] args) { byte years = byte.Parse(Console.ReadLine()); int days = years * 365;...
mit
pablojmartinez/theatreofpain
theatreofpain/entities/entities/gib_chunk/shared.lua
100
ENT.Type = "anim" ENT.Base = "base_anim" ENT.PrintName = "Gib Chunk" ENT.Author = "Dvondrake"
mit
hogasa/normalizador-amba
tests/test.py
1832
# coding: UTF-8 from __future__ import absolute_import import os import sys import unittest sys.path.insert(0, os.path.abspath('..')) from CommonsTestCase import CommonsTestCase from CallejeroTestCase import CallejeroTestCase from NormalizadorDireccionesTestCase import NormalizadorDireccionesTestCase from CalleYCalle...
mit
Sw1cH/Android-Ebook
assets/source/RollTwoPairs.java
1488
public class RollTwoPairs { public static void main(String[] args) { PairOfDice firstDice; // Refers to the first pair of dice. firstDice = new PairOfDice(); PairOfDice secondDice; // Refers to the second pair of dice. secondDice = new PairOfDice(); ...
mit
drweissbrot/Ponygon
app/Games/Instance.php
2335
<?php namespace App\Games; use App\Events\Player\MatchData; use App\Models\Match; use App\Models\Player; use Exception; use Illuminate\Http\Request; abstract class Instance { public $match; protected $cache = []; public function __construct(Match $match) { $this->match = $match; } abstract public function...
mit
S00157097/GP
modules/core/tests/client/home.client.controller.tests.js
717
'use strict'; (function () { describe('HomeController', function () { //Initialize global variables var scope, HomeController; // Load the main application module beforeEach(module(ApplicationConfiguration.applicationModuleName)); beforeEach(inject(function ($controller, $rootScope) { ...
mit
jamesmontemagno/Hanselman.Forms
src/Hanselman/Views/Blog/BlogCollectionPage.xaml.cs
1796
using Hanselman.Interfaces; using Hanselman.ViewModels; using Xamarin.Essentials; using Xamarin.Forms; // ChrisNTR cheered 100 on October 18th 2019 // HuniePop donated $2.50 on November 22nd 2019 // mattleibow cheered 5 on November 22nd 2019 // KymPhillpotts cheered 69 on November 22nd 2019 // CommitttedBlock5 subscr...
mit