repo_name stringlengths 4 116 | path stringlengths 4 379 | size stringlengths 1 7 | content stringlengths 3 1.05M | license stringclasses 15
values |
|---|---|---|---|---|
iDingDong/libDDCPP | src/standard/bits/DD_print.hpp | 2086 | // DDCPP/standard/bits/DD_print.hpp
#ifndef DD_PRINT_HPP_INCLUDED_
# define DD_PRINT_HPP_INCLUDED_ 1
# include <iostream>
# include <iomanip>
# include "DD_Tags.hpp"
# include "DD_fabricate.hpp"
DD_DETAIL_BEGIN_
struct VersionTag : Tag {
} DD_CONSTANT version;
struct FlushTag : Tag {
} DD_CONSTANT flush;
s... | bsd-3-clause |
versionone/VersionOne.ServiceHost.ServerConnector | VersionOne.ServiceHost.ServerConnector/StartupValidation/V1ConnectionValidator.cs | 772 | using VersionOne.ServiceHost.Core.Logging;
namespace VersionOne.ServiceHost.ServerConnector.StartupValidation
{
public class V1ConnectionValidator : BaseValidator
{
public override bool Validate()
{
Log(LogMessage.SeverityType.Info, "Validating connection to VersionOne");
... | bsd-3-clause |
woestler/EndSql | demo/delete.php | 2220 | <?php
/**
* EndSQL
*
* Database abstract layer.
*
*
* Copyright (c) 2013-2014, Woestler
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* * Redistributions of source code must reta... | bsd-3-clause |
codenote/chromium-test | chrome/browser/ui/startup/default_browser_prompt.cc | 10110 | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/startup/default_browser_prompt.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop.h"
#include "base/metrics... | bsd-3-clause |
JoshBour/scheduler | module/Worker/src/Worker/Repository/WorkerRepository.php | 671 | <?php
/**
* Created by PhpStorm.
* User: Josh
* Date: 20/5/2014
* Time: 2:16 μμ
*/
namespace Worker\Repository;
use Doctrine\ORM\EntityRepository;
class WorkerRepository extends EntityRepository{
public function findAllNonReleasedWorkers($startDate,$endDate){
$qb = $this->createQueryBuilder('e');
... | bsd-3-clause |
breuderink/psychic | psychic/expinfo.py | 2698 | import operator
from golem import DataSet
from golem.nodes import BaseNode
import numpy as np
class ExperimentInfo:
def __init__(self, ac_freq=None, amplifier=None, lab=None, subject=None,
note='', eeg_chan=[], eog_chan=[], emg_chan=[], ref_chan=[],
experiments={}):
self.ac_freq=float(ac_freq)
s... | bsd-3-clause |
jderiz/WebApp | node_modules/rxjs/ReplaySubject.js | 3859 | "use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var Subject_1 = require('./Subject');
var queue_... | mit |
gaussflayer/latches.js | latches.js | 3351 | /* Copyright Eoin Groat 2015
* @author : Eoin Groat
* @url : https://eoingroat.com
* @email : iam@eoingroat.com
* @license : MIT
* @git : https://github.com/gaussflayer/latches.js
*/
var log = function() {};//console.log;
function isFunction(f) {
return typeof(f) === 'function';
}
// http://stackove... | isc |
bleepbloop/Pivy | examples/Mentor/10.7.PickFilterManip.py | 6102 | #!/usr/bin/env python
###
# Copyright (c) 2002-2007 Systems in Motion
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS I... | isc |
breunigs/keks | db/migrate/20130228080509_add_study_path_to_users.rb | 120 | class AddStudyPathToUsers < ActiveRecord::Migration
def change
add_column :users, :study_path, :integer
end
end
| isc |
pranavraja/beanstalkify | lib/beanstalkify/archive.rb | 1572 | require 'aws-sdk'
module Beanstalkify
class Archive
attr_reader :app_name, :version
def initialize(filename)
@filename = filename
@archive_name = File.basename(@filename)
@app_name, hyphen, @version = File.basename(filename, '.*').rpartition("-")
end
def upload(beanstalk_api, ... | isc |
Monduiz/CrowdiD2 | node_modules/mapillary-js/typings/created/earcut/earcut.d.ts | 406 | declare module earcut {
interface Data {
vertices: number[];
holes: number[];
dimensions: number;
}
function flatten(data: number[][][]): Data;
function deviation(vertices: number[], holes: number[], dimensions: number, triangles: number[]): number;
}
declare function earcut(ve... | isc |
Rdbaker/Rank | rank/extensions.py | 433 | # -*- coding: utf-8 -*-
"""Extensions module. Each extension is initialized in the app factory located
in app.py
"""
from flask_migrate import Migrate
migrate = Migrate()
from flask_bcrypt import Bcrypt
bcrypt = Bcrypt()
from flask_login import LoginManager
login_manager = LoginManager()
from flask_cache import Cac... | mit |
gerhardberger/electron | shell/browser/special_storage_policy.cc | 1109 | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "shell/browser/special_storage_policy.h"
#include "base/bind.h"
#include "base/callback.h"
namespace electron {
SpecialStoragePolicy::SpecialS... | mit |
duodraco/ophpen | src/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php | 2244 | <?php
namespace Symfony\Bundle\FrameworkBundle\Routing;
use Symfony\Bundle\FrameworkBundle\Controller\ControllerNameConverter;
use Symfony\Component\Routing\Loader\DelegatingLoader as BaseDelegatingLoader;
use Symfony\Component\Routing\Loader\LoaderResolverInterface;
use Symfony\Component\HttpKernel\Log\LoggerInterfa... | mit |
JumpStartGeorgia/Place-ge-Scraper | spec/models/place_ge_ad_spec.rb | 2397 | describe 'PlaceGeAd' do
let :new_place_ge_ad do
PlaceGeAdFactory.build
end
let :other_place_ge_ad do
PlaceGeAdFactory.build
end
describe 'save' do
it 'creates ad entry with correct time of scrape' do
new_saved_entry = new_place_ge_ad.save
new_saved_entry.reload
expect(new_saved... | mit |
DTFE/Vimo | build/doc-builder/theme/publish.js | 21214 | /*global env: true */
'use strict'
var doop = require('jsdoc/util/doop')
var fs = require('jsdoc/fs')
var helper = require('jsdoc/util/templateHelper')
var logger = require('jsdoc/util/logger')
var path = require('jsdoc/path')
var taffy = require('taffydb').taffy
var template = require('jsdoc/template')
var util = req... | mit |
jmks/rubocop | lib/rubocop/cop/style/trailing_method_end_statement.rb | 1475 | # frozen_string_literal: true
module RuboCop
module Cop
module Style
# This cop checks for trailing code after the method definition.
#
# @example
# # bad
# def some_method
# do_stuff; end
#
# def do_this(x)
# baz.map { |b| b.this(x) } end
#... | mit |
navalev/azure-sdk-for-java | sdk/appservice/mgmt-v2016_08_01/src/main/java/com/microsoft/azure/management/appservice/v2016_08_01/implementation/CsmUsageQuotaInner.java | 3479 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.appservice.v2016_08_01.implementation;
import or... | mit |
stttexmaco/sisfoakademik | install.hps/language/persian/install_lang.php | 4825 | <?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
Copyright (c) 2011 Lonnie Ezell
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 witho... | mit |
SuperGlueFx/SuperGlue | src/SuperGlue.Web.Security/DefaultCookieEncryptionHandler.cs | 1896 | using System;
using System.Collections.Generic;
using System.Web;
namespace SuperGlue.Web.Security
{
public class DefaultCookieEncryptionHandler : IHandleEncryptedCookies
{
private readonly IEncryptionService _encryptionService;
private readonly IDictionary<string, object> _environment;
... | mit |
treehouselabs/TreeHouseIoBundle | src/TreeHouse/IoBundle/Import/Event/ExceptionEvent.php | 806 | <?php
namespace TreeHouse\IoBundle\Import\Event;
use Symfony\Component\EventDispatcher\Event;
use TreeHouse\IoBundle\Import\Importer\Importer;
class ExceptionEvent extends Event
{
/**
* @var Importer
*/
protected $importer;
/**
* @var \Exception
*/
protected $exception;
/**
... | mit |
cez81/gitea | modules/validation/binding.go | 3634 | // Copyright 2017 The Gitea Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package validation
import (
"fmt"
"regexp"
"strings"
"gitea.com/go-chi/binding"
"github.com/gobwas/glob"
)
const (
// ErrGitRefName is git reference... | mit |
shyTNT/BingAds-Java-SDK | proxies/com/microsoft/bingads/campaignmanagement/GetAdExtensionsEditorialReasonsResponse.java | 1895 |
package com.microsoft.bingads.campaignmanagement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for anonymo... | mit |
TheManwithskills/Inferno | chat-plugins/sfsc.js | 1131 | var fs = require('fs');
var selectors;
function writeIconCSS() {
fs.appendFile('config/custom.css', selectors);
}
exports.commands = {
sfsc: function (target, room, user) {
if (!this.can('eval'));
var args = target.split(',');
if (args.length < 3) re... | mit |
wawaeasybuy/jobandroid | Job/android-async-http/src/main/java/com/loopj/android/http/SimpleMultipartEntity.java | 9941 | /*
Android Asynchronous Http Client
Copyright (c) 2011 James Smith <james@loopj.com>
http://loopj.com
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.apac... | mit |
ScottKolo/UFSMC-Web | db/collection_data/matrices/Gleich/minnesota.rb | 948 | {
matrix_id: '2331',
name: 'minnesota',
group: 'Gleich',
description: 'Minnesota road network (with xy coordinates)',
author: 'D. Gleich',
editor: 'T. Davis',
date: '2010',
kind: 'undirected graph',
problem_2D_or_3D: '0',
num_rows: '2642',
num_cols: '2642',
nonzeros: '660... | mit |
jmsardina/goaly | app/models/tag.rb | 141 | class Tag < ActiveRecord::Base
belongs_to :taggable, polymorphic: true
# has_many :goal_tags
# has_many :goals, through: :goal_tags
end
| mit |
samtoubia/azure-sdk-for-net | src/ResourceManagement/RedisCache/AzureRedisCache.Tests/ScenarioTests/RedisCacheManagementHelper.cs | 5436 | // ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// 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.apa... | mit |
Simmesimme/swift2d | third_party/include/mvscxx/oalplus/enumerations.hpp | 1493 | /**
* @file oalplus/enumerations.hpp
* @brief Enumeration-related declarations
*
* @author Matus Chochlik
*
* Copyright 2012-2014 Matus Chochlik. Distributed under the Boost
* Software License, Version 1.0. (See accompanying file
* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#pra... | mit |
haziqhafizuddin/rubocop | lib/rubocop/version.rb | 591 | # frozen_string_literal: true
module RuboCop
# This module holds the RuboCop version information.
module Version
STRING = '0.57.2'.freeze
MSG = '%<version>s (using Parser %<parser_version>s, running on ' \
'%<ruby_engine>s %<ruby_version>s %<ruby_platform>s)'.freeze
def self.version(debug =... | mit |
extr0py/extropy-cli | src/core/common/Entity/Factory/IEntityCreateResult.ts | 132 | module Extropy.Entity {
export interface IEntityCreateResult {
isCreated: boolean;
entity: Entity;
}
}
| mit |
Azure/azure-sdk-for-java | sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/models/AccessControlChangeFailure.java | 1859 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.storage.file.datalake.models;
/**
* Represents an entry that failed to update Access Control List.
*/
public class AccessControlChangeFailure {
private String name;
private boolean isDirectory;
... | mit |
weblogng/angular-weblogng | src/main.js | 4423 | /* angular-weblogng main */
(function (angular) {
'use strict';
var weblogngModule = angular.module('weblogng', []);
weblogngModule.provider('$weblogng', function () {
return {
$get: ['$window', 'weblogngConfig',
function ($window, weblogngConfig) {
return new $window.weblogng.Logger(... | mit |
BKTidswell/ThesisPGG | game/game.setup.js | 501 | /**
* # Game setup
* Copyright(c) 2017 Stefano Balietti
* MIT Licensed
*
* This file includes settings that are shared amongst all client types
*
* http://www.nodegame.org
* ---
*/
module.exports = function(settings, stages) {
var setup = {};
//auto: true = automatic run, auto: false = user input
... | mit |
oliviertassinari/material-ui | packages/mui-icons-material/lib/esm/AirlineSeatLegroomReducedOutlined.js | 386 | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 12V3H3v9c0 2.76 2.24 5 5 5h4v-... | mit |
anuragkapur/algorithmic-programming | src/test/java/com/anuragkapur/ctci/linkedlists/Prob2_7_1_PalindromeTest.java | 2764 | package com.anuragkapur.ctci.linkedlists;
import com.anuragkapur.ds.linkedlist.LinkedListNode;
import org.junit.Test;
import static org.junit.Assert.*;
public class Prob2_7_1_PalindromeTest {
@Test
public void testIsPalindrome1() throws Exception {
LinkedListNode<Integer> node1 = new LinkedListNode<... | mit |
pdev-mooc/mooc | mooc-web/src/main/webapp/views/learning-1.1.0/lib/maps/js/google/_init.js | 42 | window.initGoogleMaps = require('./main'); | mit |
natemara/a1atscript | test/annotations_spec.js | 5169 | import {
Config,
Run,
Controller,
Directive,
Service,
Factory,
Provider,
Value,
Constant,
Animation,
Filter,
AsModule
} from '../src/a1atscript/annotations.js';
var OriginalConfig = Config.originalClass || Config;
var OriginalRun = Run.originalClass || Run;
var OriginalController = Controller.o... | mit |
jcc333/tempoiq-java | src/test/java/com/tempoiq/DeviceReadTest.java | 935 | package com.tempoiq;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.apache.http.HttpResponse;
import org.junit.Test;
public class DeviceReadTest {
private static final Device device = new Device("device1");
private static final String json1 = "{" +
"\"data\":[" +
... | mit |
olszak94/DevAAC | DevAAC/Models/GuildwarKill.php | 3089 | <?php
/**
* DevAAC
*
* Automatic Account Creator by developers.pl for TFS 1.0
*
*
* LICENSE: 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 limit... | mit |
minodisk/DefinitelyTyped | types/pouchdb-core/index.d.ts | 34156 | // Type definitions for pouchdb-core 6.1
// Project: https://pouchdb.com/
// Definitions by: Simon Paulger <https://github.com/spaulg>, Jakub Navratil <https://github.com/trubit>,
// Brian Geppert <https://github.com/geppy>, Frederico Galvão <https://github.com/fredgalvao>,
// Tobias Bal... | mit |
stowball/brackets | src/utils/ExtensionUtils.js | 10592 | /*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* 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
* ... | mit |
russellmcc/audiounitjs | Template/AUJS Source/CoreAudio/AudioUnits/AUPublic/OtherBases/AUPannerBase.cpp | 23137 | /* Copyright © 2007 Apple Inc. All Rights Reserved.
Disclaimer: IMPORTANT: This Apple software is supplied to you by
Apple Inc. ("Apple") in consideration of your agreement to the
following terms, and your use, installation, modification or
redistribution of this Apple software constitutes acceptance of t... | mit |
EPTamminga/Dnn.Platform | DNN Platform/Library/Security/Permissions/Controls/PermissionsGrid.cs | 50536 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.Security.Permissions.Controls
{
using System;
using System.Collections;
using Sys... | mit |
luiscordero29/drs_codeigniter | assets/plugins/ckeditor/plugins/image2/dialogs/image2.js | 5356 | /*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.dialog.add("image2",function(f){function C(){var a=this.getValue().match(D);(a=!(!a||0===parseInt(a[1],10)))||alert(c.invalidLength.replace("%1",c... | mit |
XinwLi/Interop-TestSuites-1 | ExchangeMAPI/Source/Common/Common/ExchangeMapiClient/RopMessages/StreamROPs/RopWriteStreamExtended.cs | 3824 |
namespace Microsoft.Protocols.TestSuites.Common
{
using System;
using System.Runtime.InteropServices;
/// <summary>
/// RopWriteStreamExtended request buffer structure.
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct RopWriteStreamExtendedRequest : ISerializab... | mit |
tleunen/react-mdl | src/utils/mdlUpgrade.js | 1159 | import React from 'react';
import MDLComponent from './MDLComponent';
function patchComponentClass(Component, recursive) {
const oldRender = Component.prototype.render;
Component.prototype.render = function render() { // eslint-disable-line no-param-reassign
return (
<MDLComponent recursiv... | mit |
kprestel/PyInvestment | pytech/utils/enums.py | 3378 | from enum import Enum
from pytech.utils.exceptions import (InvalidActionError,
InvalidOrderStatusError,
InvalidOrderSubTypeError,
InvalidOrderTypeError,
InvalidPositionErr... | mit |
maurer/tiamat | samples/Juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s06/CWE762_Mismatched_Memory_Management_Routines__new_delete_array_long_54a.cpp | 2724 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE762_Mismatched_Memory_Management_Routines__new_delete_array_long_54a.cpp
Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_delete_array.label.xml
Template File: sources-sinks-54a.tmpl.cpp
*/
/*
* @description
* CWE: 762 Mismatched Memory M... | mit |
ld-test/moses | spec/table_spec.lua | 18644 | require 'luacov'
local _ = require 'moses'
context('Table functions specs', function()
context('each', function()
test('provides values and iteration count ', function()
local t = {1,2,3}
local inc = 0
_.each(t,function(i,v)
inc = inc+1
assert_equal(i,inc)
assert_equ... | mit |
udothemath1984/udothemath1984.github.io | movie_center/inheritance.py | 639 | class Parent():
def __init__(self, last_name, eye_color):
print "Parent Constructor Called..."
self.last_name = last_name
self.eye_color = eye_color
def show_info(self):
print "Your last name is {} with eye color {}.".format(self.last_name, self.eye_color)
class Child(Parent):
def __init__(self, last_nam... | mit |
tinyels/react-dev | src/components/issues/index.ts | 432 | import { IssuesList, IssuesListTranslatable } from './IssuesList';
import IssuesListItem from './IssuesListItem';
import MoreIssuesPage from './MoreIssuesPage';
import { MoreIssues, MoreIssuesTranslatable } from './MoreIssues';
import MoreIssuesContainer from './MoreIssuesContainer';
export { IssuesList, IssuesListTra... | mit |
lordsutch/btrfs-backup | btrfs_backup/endpoint/shell.py | 474 | from .common import Endpoint
class ShellEndpoint(Endpoint):
def __init__(self, cmd, **kwargs):
super(ShellEndpoint, self).__init__(**kwargs)
if self.source:
raise ValueError("Shell can't be used as source.")
self.cmd = cmd
def __repr__(self):
return "(Shell) " + se... | mit |
jandrest2018/TWJ-2017-A | 04 Angular/DEBER-Web/node_modules/@angular/core/src/event_emitter.d.ts | 1992 | /**
* @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 { Subject } from 'rxjs/Subject';
/**
* Use by directives and components to emit custom Events.
*
* ### Exam... | mit |
asfram/Carto | web/js/g_map_part_10_gmPolylines_1.js | 4720 | /**
* Collection de polylines
* Author RNE
* CanalTP 2013
* @type @exp;Backbone@pro;Collection@call;extend
*/
var ctpPolylines = CanalTP.lib.map.collections.extend({
model: ctpPolyline,
collectionType: 'polylines',
/**
* Fonction permettant l'initialisation
*/
initialize: function()
... | mit |
jaykz52/mechanic | src/logging.js | 1469 | // mechanic.js
// Copyright (c) 2012 Jason Kozemczak
// mechanic.js may be freely distributed under the MIT license.
(function($) {
$.extend($, {
log: function(s, level) {
level = level || 'message';
if (level === 'error') $.error(s);
else if (level === 'warn... | mit |
atoff/core | config/session.php | 6880 | <?php
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option controls the default session "driver" that will be used on
| requests. By defau... | mit |
slindberg/ember.js | packages_es6/ember-metal/tests/utils/generate_guid_test.js | 211 | import {generateGuid} from "ember-metal/utils";
module("Ember.generateGuid");
test("Prefix", function() {
var a = {};
ok( generateGuid(a, 'tyrell').indexOf('tyrell') > -1, "guid can be prefixed" );
});
| mit |
jackmagic313/azure-sdk-for-net | sdk/cosmosdb/Microsoft.Azure.Management.CosmosDB/src/Generated/PercentileTargetOperations.cs | 14324 | // <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// re... | mit |
maurer/tiamat | samples/Juliet/testcases/CWE23_Relative_Path_Traversal/s04/CWE23_Relative_Path_Traversal__wchar_t_file_ifstream_66b.cpp | 1711 | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE23_Relative_Path_Traversal__wchar_t_file_ifstream_66b.cpp
Label Definition File: CWE23_Relative_Path_Traversal.label.xml
Template File: sources-sink-66b.tmpl.cpp
*/
/*
* @description
* CWE: 23 Relative Path Traversal
* BadSource: file Read input from a file
... | mit |
cseed/hail | hail/src/main/scala/is/hail/io/index/IndexReader.scala | 9907 | package is.hail.io.index
import java.io.InputStream
import java.util
import java.util.Map.Entry
import is.hail.annotations._
import is.hail.types.virtual.{TStruct, Type, TypeSerializer}
import is.hail.expr.ir.{ExecuteContext, IRParser}
import is.hail.types.physical.{PStruct, PType}
import is.hail.io._
import is.hail.... | mit |
WantedTechnologies/xpresso | src/main/java/com/wantedtech/common/xpresso/functional/lambda/LambdaListener.java | 3716 | // Generated from Lambda.g by ANTLR 4.5
package com.wantedtech.common.xpresso.functional.lambda;
import java.util.*;
import com.wantedtech.common.xpresso.functional.Function;
import com.wantedtech.common.xpresso.x;
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.tree.ParseTreeListener;
/**
* ... | mit |
pdanpdan/quasar | extras/build/themify.js | 1205 | const packageName = 'themify-icons'
const iconSetName = 'Themify'
const version = '1.0.1'
// ------------
const glob = require('glob')
const { copySync } = require('fs-extra')
const { resolve } = require('path')
const skipped = []
const distFolder = resolve(__dirname, `../themify`)
const { defaultNameMapper, extract... | mit |
AxelSparkster/axelsparkster.github.io | node_modules/caniuse-lite/data/features/prefers-color-scheme.js | 897 | module.exports={A:{A:{"2":"K D G E A B hB"},B:{"2":"2 C d J M H I"},C:{"1":"4 FB","2":"0 1 2 3 6 7 8 9 eB DB F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g h i j k l m n o L q r s t u v w x y z HB GB BB CB YB XB"},D:{"2":"0 1 2 3 4 6 7 8 9 F N K D G E A B C d J M H I O P Q R S T U V W X Y Z a b c e f g... | mit |
mhowlett/NNanomsg | NNanomsg/Protocols/PublishSocket.cs | 1003 | namespace NNanomsg.Protocols
{
public class PublishSocket : NanomsgSocketBase, IBindSocket, ISendSocket
{
public PublishSocket() : base(Domain.SP, Protocol.PUB) { }
#region Bind
public NanomsgEndpoint Bind(string address)
{
return BindImpl(address);
... | mit |
lookstechnical/givemesoul | blocks/flex_slider_close/edit.php | 384 | <?php defined('C5_EXECUTE') or die("Access Denied.");
?>
<style type="text/css" media="screen">
.ccm-block-field-group h2 { margin-bottom: 5px; }
.ccm-block-field-group td { vertical-align: middle; }
</style>
<div class="ccm-block-field-group">
<h2>close</h2>
<?php echo $form->text('field_1_textbox_text', $fiel... | mit |
kevinrodbe/minigrid | index.js | 2962 | /* @license minigrid v1.6.5 - minimal cascading grid layout http://alves.im/minigrid */
(function (exports) {
'use strict';
var transformProp;
(function () {
var style = document.createElement('a').style;
var prop;
if (style[prop = 'webkitTransform'] !== undefined) {
transformProp = prop;
... | mit |
iamsaint/yii2-user-mongo | models/UserQuery.php | 807 | <?php
/*
* This file is part of the Dektrium project.
*
* (c) Dektrium project <http://github.com/dektrium/>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace hipstercreative\user\models;
use yii\mongodb\ActiveQuery;
/**
* Us... | mit |
dbagaev/mesh | mesh/data/Tests/Test_Stl.cpp | 1929 | #include <Data/TriangleSurface.h>
#include <Math/Vector3d.h>
#include "gtest/gtest.h"
using namespace mesh;
TEST(Test_surface, Basic_Test)
{
Data::TriangleSurface surface;
EXPECT_EQ(0, surface.getNumberPoints());
EXPECT_EQ(0, surface.getNumberTriangles());
Data::Point * p_points[3];
Data::Point... | mit |
HackerSir/CheckIn2017 | database/migrations/2021_07_25_195754_create_roles.php | 964 | <?php
use Illuminate\Database\Migrations\Migration;
class CreateRoles extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::table('roles')->insert([
[
'name' => 'Admin',
'display_name' =>... | mit |
gheine/apidoc | avro/src/test/scala/me/apidoc/avro/AvroIdlServiceValidatorSpec.scala | 700 | package me.apidoc.avro
import lib.ServiceConfiguration
import org.scalatest.{FunSpec, Matchers}
class AvroIdlServiceValidatorSpec extends FunSpec with Matchers {
private def readFile(path: String): String = {
scala.io.Source.fromFile(path).getLines.mkString("\n")
}
val config = ServiceConfiguration(
o... | mit |
ankitkayastha/VOOGASalad | src/authoring_environment/object_editor/ObjectEditorController.java | 7555 | package authoring_environment.object_editor;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.ResourceBundle;
import authoring_environment.PopUpError;
import authoring_environment.Event.EventController;
import authoring_environment.ParamPopups.ParamController;
import auth... | mit |
gigya/orleans | src/OrleansRuntime/Streams/PubSub/PubSubRendezvousGrain.cs | 16321 | using System;
using System.Linq;
using System.Collections.Generic;
using System.Threading.Tasks;
using Orleans.CodeGeneration;
using Orleans.Runtime;
namespace Orleans.Streams
{
[Serializable]
internal class PubSubGrainState
{
public HashSet<PubSubPublisherState> Producers { get; set; }
pub... | mit |
voxeolabs/prism-samples | samples/registrar/registrar/WEB-INF/classes/com/voxeo/sipmethod/sample/registrar/AddressManagerService.java | 2192 |
package com.voxeo.sipmethod.sample.registrar;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by th... | mit |
codingbat/android-sitar-music-player | app/src/main/java/com/nazmulalam/sitarplayer/SitarPlayerApplication.java | 454 | package com.nazmulalam.sitarplayer;
import android.app.Application;
import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.answers.Answers;
import io.fabric.sdk.android.Fabric;
public class SitarPlayerApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
... | mit |
saas-plat/cqrs-fx | src/snapshot/mysql_snapshot_storage.js | 3270 | import config from '../config';
import {expr} from '../utils';
import mysql from 'mysql';
import SnapshotStorage from './snapshot_storage';
import assert from 'assert';
export default class MySqlSnapshotStorage extends SnapshotStorage {
constructor() {
super();
this._tableName = config.get('snapshot').table;... | mit |
miamiruby/consul | spec/shared/app_root/app/models/deal.rb | 15 | class Deal
end | mit |
P0ke55/specbot | src/main/java/com/github/steveice10/mc/auth/exception/request/UserMigratedException.java | 599 | package com.github.steveice10.mc.auth.exception.request;
/**
* Thrown when using the username of an account that has been migrated to an email address.
*/
public class UserMigratedException extends InvalidCredentialsException {
private static final long serialVersionUID = 1L;
public UserMigratedException() ... | mit |
hcrlab/access_teleop | rosbridge_suite/rosbridge_library/test/capabilities/test_call_service.py | 3268 | #!/usr/bin/env python
import sys
import rospy
import rostest
import unittest
import time
from roscpp.srv import GetLoggers
from json import loads, dumps
from std_msgs.msg import String
from std_srvs.srv import SetBool
from rosbridge_library.capabilities.call_service import CallService
from rosbridge_library.protocol... | mit |
lionfire/Core | src/LionFire.ObjectBus/Referencing/Resolution/ReferenceResolutionService.cs | 994 | using LionFire.Referencing;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace LionFire.Persistence.Resolution
{
public class ReferenceResolutionService : IReferenceResolutionService
{
public IEnumerable<IReferenceResolutionStrategy> Strategies { get; }
... | mit |
TheFehr/Orsum-consilii-scholai | platforms/windows/www/plugins/cordova-plugin-camera/src/windows/CameraProxy.js | 37460 | cordova.define("cordova-plugin-camera.CameraProxy", function(require, exports, module) {
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The AS... | mit |
rodolphopicolo/e-BR | e-BR/src/io/echosystem/ebr/nfe/bind/v4/sv130/TProcEvento.java | 3292 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.10.... | mit |
Microsoft/clrmd | src/Microsoft.Diagnostics.Runtime.Utilities/Debugger/Structs/ExceptionRecord64.cs | 704 | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Runtime.InteropServices;
namespace Microsoft.Diagnostics.Runtime.Interop
{
[StructLayout(LayoutKi... | mit |
MTASZTAKI/ApertusVR | plugins/languageAPI/jsAPI/3rdParty/nodejs/10.1.0/source/deps/v8/tools/testrunner/testproc/variant.py | 2352 | # Copyright 2018 the V8 project authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from . import base
from ..local.variants import ALL_VARIANTS, ALL_VARIANT_FLAGS
from .result import GroupedResult
STANDARD_VARIANT = set(["default"])
c... | mit |
Nafta7/gulp-tasks | src/gutaska.js | 744 | const modula = require('modula-loader')
const loadPlugins = require('./load-plugins')
let plugins = loadPlugins()
function taskify(config) {
var opts = config.opts || {}
var args = config.args || {}
opts.exclude = opts.exclude || []
args.plugins = Object.assign(plugins, args.plugins)
var modules = modula(... | mit |
Ben-Mathews/WpfDockingWindowsApplicationTemplate | wpftoolkit-110921/Main/Source/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.AvalonDock/Win32Helper.cs | 21203 | /*************************************************************************************
Extended WPF Toolkit
Copyright (C) 2007-2013 Xceed Software Inc.
This program is provided to you under the terms of the Microsoft Public
License (Ms-PL) as published at http://wpftoolkit.codeplex.com/license
... | mit |
brandonroberts/platform | projects/example-app/src/app/core/effects/router.effects.spec.ts | 1274 | import { Title } from '@angular/platform-browser';
import { TestBed } from '@angular/core/testing';
import { of } from 'rxjs';
import { Actions } from '@ngrx/effects';
import { routerNavigatedAction } from '@ngrx/router-store';
import { provideMockStore } from '@ngrx/store/testing';
import { RouterEffects } from '@e... | mit |
CLARIAH/qber | src/js/stores/CSVStore.js | 1745 | var QBerDispatcher = require('../dispatcher/QBerDispatcher');
var EventEmitter = require('events').EventEmitter;
var CSVConstants = require('../constants/CSVConstants');
var DatasetStore = require('./DatasetStore');
var assign = require('object-assign');
var CHANGE_EVENT = 'change';
var _files;
var _study;
var _moda... | mit |
navalev/azure-sdk-for-java | sdk/storage/azure-storage-file-datalake/src/main/java/com/azure/storage/file/datalake/implementation/models/PathsSetAccessControlResponse.java | 1186 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.storage.file.datalake.implementation.models;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpRequest;
import com.azure.co... | mit |
siggame/Joueur.cpp | games/stumped/tile.hpp | 4902 | #ifndef GAMES_STUMPED_TILE_H
#define GAMES_STUMPED_TILE_H
// Tile
// A Tile in the game that makes up the 2D map grid.
// DO NOT MODIFY THIS FILE
// Never try to directly create an instance of this class, or modify its member variables.
// Instead, you should only be reading its variables and calling its functions.
... | mit |
ktschap/masala-dosa | pep/pepparkmead/src/pepparkmead/controller/AdminController.java | 483 | package pepparkmead.controller;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
@RequestMapping("/admin/Admin.do")
public class Ad... | mit |
aspose-email/Aspose.Email-for-.NET | Examples/CSharp/IMAP/ImapBackupOperationWithMultiConnection.cs | 1346 | using System;
using Aspose.Email.Clients.Imap;
using Aspose.Email.Clients;
using Aspose.Email.Storage.Pst;
namespace Aspose.Email.Examples.CSharp.Email.IMAP
{
class ImapBackupOperationWithMultiConnection
{
public static void Run()
{
//ExStart:1
// The path t... | mit |
bryson/vagrant | plugins/guests/debian/cap/change_host_name.rb | 3858 | require "log4r"
require_relative "../../linux/cap/network_interfaces"
module VagrantPlugins
module GuestDebian
module Cap
class ChangeHostName
extend Vagrant::Util::GuestInspection::Linux
def self.change_host_name(machine, name)
@logger = Log4r::Logger.new("vagrant::guest::debia... | mit |
Webiny/Crypt | Bridge/Sodium/Crypt.php | 5963 | <?php
/**
* Webiny Framework (http://www.webiny.com/framework)
*
* @copyright Copyright Webiny LTD
*/
namespace Webiny\Component\Crypt\Bridge\Sodium;
use ParagonIE\Halite\HiddenString;
use ParagonIE\Halite\KeyFactory;
use ParagonIE\Halite\Symmetric\Crypto;
use Webiny\Component\Crypt\Bridge\CryptInterface;
use Web... | mit |
microsoft/LightGBM | include/LightGBM/utils/yamc/yamc_shared_lock.hpp | 5050 | /*
* yamc_shared_lock.hpp
*
* MIT License
*
* Copyright (c) 2017 yohhoy
*
* 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 |
kay-kim/mongoid | spec/app/models/vertex.rb | 205 | class Vertex
include Mongoid::Document
has_and_belongs_to_many :parents, inverse_of: :children, class_name: 'Vertex'
has_and_belongs_to_many :children, inverse_of: :parents, class_name: 'Vertex'
end | mit |
kmhasan-class/fall2017java | section3/Lab5/src/account/CurrentAccount.java | 600 | /*
* 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 account;
/**
*
* @author kmhasan
*/
public class CurrentAccount extends BankAccount {
public CurrentAccount(int accoun... | mit |
LBenzahia/cltk | cltk/prosody/latin/metrical_validator.py | 12651 | """Utility class for validating scansion patterns: hexameter, hendecasyllables, pentameter.
Allows users to configure the scansion symbols internally via a constructor argument;
a suitable default is provided."""
import logging
from typing import List
from cltk.prosody.latin.scansion_constants import ScansionConstant... | mit |
elmasse/Ext.i18n.Bundle | examples/bundleApp/app.js | 725 | /*
* This file is generated and updated by Sencha Cmd. You can edit this file as
* needed for your application, but these edits will have to be merged by
* Sencha Cmd when upgrading.
*/
Ext.application({
name: 'bundleApp',
extend: 'bundleApp.Application',
autoCreateViewport: 'bundleApp.view.main.M... | mit |