repo_name
stringlengths
4
116
path
stringlengths
3
942
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
didimitrov/Shop
MyOnlineShop/MyOnlineShop.Models/ShopingCartModels/OrderDetail.cs
505
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyOnlineShop.Models.ShopingCartModels { public class OrderDetail { public int OrderDetailId { get; set; } public int OrderId { get; set; } public int ProductId { get; set; } public i...
mit
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/Casio/SpecialEffectLevel.php
851
<?php /* * This file is part of the PHPExifTool package. * * (c) Alchemy <support@alchemy.fr> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace PHPExiftool\Driver\Tag\Casio; use JMS\Serializer\Annotation\ExclusionPolicy;...
mit
selvasingh/azure-sdk-for-java
sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EnabledProtocols.java
2825
/** * 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.mediaservices.v2018_07_01; import com.fasterxml....
mit
lucidphp/lucid
lucid/template/LICENSE.md
1061
Copyright (c) 2014-2016 Thomas Appel Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, ...
mit
ManiacalLabs/BiblioPixel
bibliopixel/project/types/spi_interface.py
424
import functools from ...drivers.spi_interfaces import SPI_INTERFACES USAGE = """ A spi_interface is represented by a string. Possible values are """ + ', '.join(sorted(SPI_INTERFACES.__members__)) @functools.singledispatch def make(c): raise ValueError("Don't understand type %s" % type(c), USAGE) @make.regis...
mit
karimnaaji/tangram-es
tests/unit/labelTests.cpp
4905
#define CATCH_CONFIG_MAIN #include "catch/catch.hpp" #include "tangram.h" #include "tile/labels/label.h" #include "glm/gtc/matrix_transform.hpp" #define EPSILON 0.00001 glm::mat4 mvp; glm::vec2 screen; TEST_CASE( "Ensure the transition from wait -> sleep when occlusion happens", "[Core][Label]" ) { Label l({}, "...
mit
cruzj6/orderUpCompiler
compiler_back/source/lexer/token.cpp
1085
#include "lexer/token.h" #include <iostream> Token::Token(int t) { tag = t; } //For unknown tokens Token::Token(std::string t) { //Get ascii for each character for(int i = 0; i < t.length(); i++) { //Give the tag some arbitrary value tag = -1; asciiValuesTag.push_back(t[i]); } unknownToken = ...
mit
izzyalonso/tndata_backend
tndata_backend/userprofile/migrations/0011_create_places.py
622
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations # Some initial, primary places. PLACES = [ ('Work', 'work'), ('Home', 'home'), ('School', 'school'), ] def create_primary_place(apps, schema_editor=None): Place = apps.get_model("userprofile", "...
mit
airgames/vuforia-gamekit-integration
Gamekit/compilation/Engine/CMakeFiles/OgreKitCore.dir/DependInfo.cmake
5991
# The set of languages for which implicit dependencies are needed: SET(CMAKE_DEPENDS_LANGUAGES "CXX" ) # The set of files for implicit dependencies of each language: SET(CMAKE_DEPENDS_CHECK_CXX "/Users/erikvillegas/Development/Android/vuforia-sdk-android-1-5-9/samples/airgames/tools/Gamekit/Engine/Script/Api/Gene...
mit
bgegham/davideluna
public/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js
4348
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","sv",{title:"Hjälpmedelsinstruktioner",contents:"Hjälpinnehåll. För att stänga denna dialogruta trycker du på ESC.",legend:[{name:"Allmänt"...
mit
unboxed/unboxed.co
source/blog/2016-09-05-docker-re-bundling.html.markdown
5789
--- authors: - Charlie Egan tags: - Rails - Innovation main_image: "https://s3-eu-west-1.amazonaws.com/unboxed-web-images/3d394385496873a4c7111eb840bdde38.jpg" date: "2016-09-05 12:00 +0000" published: true title: "Development Re-bundling in Dockerland" has_syntax: true --- # Development Re-bundling in Dockerla...
mit
emn178/js-sha1
tests/node-test.js
940
// Node.js env expect = require('expect.js'); sha1 = require('../src/sha1.js'); require('./test.js'); delete require.cache[require.resolve('../src/sha1.js')]; delete require.cache[require.resolve('./test.js')]; sha1 = null; // Webpack browser env JS_SHA1_NO_NODE_JS = true; window = global; sha1 = require('../src/sha1...
mit
DatenMetzgerX/parallel.es
src/common/parallel/slave/register-parallel-worker-functions.ts
1346
import {IFunctionLookupTable} from "../../function/function-lookup-table"; import {ParallelWorkerFunctionIds} from "./parallel-worker-functions"; import {identity} from "../../util/identity"; import {filterIterator} from "./filter-iterator"; import {mapIterator} from "./map-iterator"; import {parallelJobExecutor} from ...
mit
funk-overload/funky_leds
color-picker-master/color-picker.state.html
876
<!DOCTYPE html> <html dir="ltr"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Color Picker</title> <link href="color-picker.min.css" rel="stylesheet"> </head> <body> <p>Show and hide color picker with a button.</p> <p><input type="text"> <button>...
mit
Grinch/SpongeCommon
src/main/java/org/spongepowered/common/SpongeBootstrap.java
4287
/* * This file is part of Sponge, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Softwar...
mit
gabrielburnworth/Farmbot-Web-App
frontend/settings/transfer_ownership/transfer_ownership.ts
737
import { Farmbot } from "farmbot"; import { createTransferCert } from "./create_transfer_cert"; import { toPairs } from "../../util"; import { getDevice } from "../../device"; export interface TransferProps { email: string; password: string; device: Farmbot; } /** Pass control of your device over to another use...
mit
zanemayo/ember-cli
tests/unit/commands/uninstall-npm-test.js
2523
'use strict'; var expect = require('chai').expect; var stub = require('../../helpers/stub').stub; var commandOptions = require('../../factories/command-options'); var UninstallCommand = require('../../../lib/commands/uninstall-npm'); var Task = require('../../../lib/models/task'); ...
mit
NetOfficeFw/NetOffice
Toolbox/Toolbox/Controls/Painter/OverlayPainter.cs
4964
using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; namespace NetOffice.DeveloperToolbox.Controls.Painter { /// <summary> /// Support Painter to create a paint event which is possible to use as overlayer /// </summary> public partial class OverlayPainter : Comp...
mit
corbinbs/CORBin
CORBin_System/tests/LONG/passlong-stubs.c
3739
/* * This file was generated by orbit-idl - DO NOT EDIT! */ #include <string.h> #include "passlong.h" CORBA_long passlong_foo(passlong _obj, const CORBA_long x, CORBA_Environment * ev) { register GIOP_unsigned_long _ORBIT_request_id, _ORBIT_system_exception_minor; register CORBA_completion_status _ORBIT_c...
mit
DavidShoe/adafruitsample
Lesson_203V2/FullSolution/BME280.cs
16192
using System; using System.Diagnostics; using System.Threading.Tasks; using Windows.Devices.Enumeration; using Windows.Devices.I2c; namespace Lesson_203V2 { public class BME280_CalibrationData { //BME280 Registers public UInt16 dig_T1 { get; set; } public Int16 dig_T2 { get; set; } ...
mit
j-froehlich/magento2_wk
vendor/magento/module-braintree/Gateway/Response/PayPalDetailsHandler.php
1434
<?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Braintree\Gateway\Response; use Magento\Payment\Gateway\Response\HandlerInterface; use Magento\Braintree\Gateway\Helper\SubjectReader; use Magento\Sales\Api\Data\OrderPaymentInterface; /...
mit
gilsondev/login-cidadao
src/PROCERGS/LoginCidadao/CoreBundle/Command/PopulateDatabaseCommand.php
7080
<?php namespace PROCERGS\LoginCidadao\CoreBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\Outpu...
mit
PoisonBOx/design-patterns
src/memento/perl/Memento.pm
263
package Memento; use strict; use warnings; sub new { my ($class, $state) = @_; my $self = { state => $state, }; return bless $self, $class; } sub state { my ($self, $state) = @_; $self->{state} = $state if defined $state; return $self->{state}; } 1;
mit
hands-agency/grandcentral
grandcentral/sirtrevor/template/field/js/link.js
3216
(function($) { // Some vars var template = '/field/link'; // Tabs $(document).on('click', '.adminContext .tabs li', function() { // Some vars var $admincontext = $(this).parents('.adminContext'); var $tabs = $admincontext.find('.tabs'); var $panels = $admincontext.find('.panels'); var currentTab = $(this)...
mit
BenMQ/coursemology2
app/controllers/jobs_controller.rb
688
class JobsController < ApplicationController before_action :load_job def show if @job.completed? show_completed_job elsif @job.errored? show_errored_job else show_submitted_job end end protected def publicly_accessible? true end private def load_job @job ||...
mit
reeganaga/SI-lelang
application/views/back/ornamen/custom_js.php
3029
<!-- DataTables --> <script src="<?php echo base_url(); ?>assets/plugins/datatables/jquery.dataTables.min.js"></script> <script src="<?php echo base_url(); ?>assets/plugins/datatables/dataTables.bootstrap.min.js"></script> <script type="text/javascript"> $(function () { $('#tableOrnamen...
mit
imcarolwang/wcf
src/dotnet-svcutil/lib/tests/Baselines/MultipleDocuments/multiDocRelativePath/Reference.cs
47607
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------...
mit
tvcsantos/Flexget
flexget/plugins/filter/series.py
70663
from __future__ import unicode_literals, division, absolute_import import argparse import logging import re import time from copy import copy from datetime import datetime, timedelta from sqlalchemy import (Column, Integer, String, Unicode, DateTime, Boolean, desc, select, update, delete, Forei...
mit
dimzak/dimzak.github.io
docs/_posts/2017-08-08-additional-styles.md
3656
--- title: TeXt - Additional Styles key: 20170808 tags: - TeXt - English toc: true category: post --- Success! {:.success} `success`{:.success} `info`{:.info} `warning`{:.warning} `error`{:.error} <div class="grid-container"> <div class="grid grid--p-3"> <div class="cell cell--4 cell--md-5 cell--sm-12" markdown...
mit
CosmicSubspace/NerdyAudio
app/src/main/java/com/meapsoft/FFT.java
4463
package com.meapsoft; /* * Copyright 2006-2007 Columbia University. * * This file is part of MEAPsoft. * * MEAPsoft is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * MEAPso...
mit
RazorX11/PSL1GHT
common/libsimdmath/common/isinff4.c
1808
/* isinff4 - for each element of vector x, return a mask of ones if x' is INF, zero otherwise Copyright (C) 2006, 2007 Sony Computer Entertainment Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditio...
mit
togusafish/shirasagi-_-shirasagi
app/models/concerns/ss/model/file.rb
6055
module SS::Model::File extend ActiveSupport::Concern extend SS::Translation include SS::Document include SS::Reference::User attr_accessor :in_file, :in_files, :resizing included do store_in collection: "ss_files" seqid :id field :model, type: String field :state, type: String, default: "...
mit
mosinve/bootstrap-vue
docs/components/jumbotron/README.md
374
# Jumbotron > A lightweight, flexible component that can optionally extend the entire viewport to showcase key marketing messages on your site. ```html <b-jumbotron header="BootstrapVue" lead="Bootstrap 4 Components for Vue.js 2" > <p>For more information visit website</p> <b-btn variant="primary" href="#">Do...
mit
mika-f/Orion
Source/Orion.Scripting/Ast/AstGreaterThanOrEqualOperator.cs
428
using System.Linq.Expressions; namespace Orion.Scripting.Ast { internal class AstGreaterThanOrEqualOperator : AstOperator { public AstGreaterThanOrEqualOperator(string value) : base(value) { } protected override Expression CreateExpression<T>(ParameterExpression parameter, Expression left, Ex...
mit
parameshbabu/bsp
drivers/uart/bcm2836/miniUart/qsfile.c
4379
// Copyright (c) Microsoft Corporation. All rights reserved. // // Module Name: // // qsfile.c // // Abstract: // // This module contains the code that is very specific to query/set file // operations in the serial driver. // #include "precomp.h" #include "qsfile.tmh" #ifdef ALLOC_PRAGMA #pragma alloc_text(P...
mit
indro/t2c
apps/external_apps/swaps/management.py
1734
from django.dispatch import dispatcher from django.db.models import signals from django.utils.translation import ugettext_noop as _ try: from notification import models as notification def create_notice_types(app, created_models, verbosity, **kwargs): notification.create_notice_type("swaps_propos...
mit
17up/rails_admin
lib/rails_admin/config/fields/types/code_mirror.rb
1419
require 'rails_admin/config/fields/base' module RailsAdmin module Config module Fields module Types class CodeMirror < RailsAdmin::Config::Fields::Types::Text # Register field type for the type loader RailsAdmin::Config::Fields::Types::register(self) #Pass the theme a...
mit
heshamnaim/rollbar-gem
spec/rollbar_spec.rb
56294
# encoding: utf-8 require 'logger' require 'socket' require 'spec_helper' require 'girl_friday' require 'redis' require 'active_support/core_ext/object' require 'active_support/json/encoding' begin require 'sucker_punch' require 'sucker_punch/testing/inline' rescue LoadError end describe Rollbar do let(:notifi...
mit
MichaelHuyp/YPMTHD
YPMTHD/YPMTHD/Classes/Category/UIViewController+YPInit.h
249
// // UIViewController+YPInit.h // YPExtension // // Created by 胡云鹏 on 15/8/21. // Copyright (c) 2015年 MichaelPPP. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (YPInit) + (instancetype)controller; @end
mit
blacider/bookSystem
views/foot.html
169
<footer> <div class="content"> <p>Copyright © 20016–2016 Blacider.</p> </div> </footer> <% include login.html%> </body> </html>
mit
amarzavery/azure-rest-api-specs
specification/peering/resource-manager/readme.go.md
706
## Go These settings apply only when `--go` is specified on the command line. ``` yaml $(go) go: license-header: MICROSOFT_APACHE_NO_VERSION namespace: peering clear-output-folder: true ``` ### Go multi-api ``` yaml $(go) && $(multiapi) batch: - tag: package-2019-03-01-preview ``` ### Tag: package-2019-03...
mit
tsunammis/software-craftsmanship
development/golang/golangbyexample/43-collection-functions/collection-functions.go
2608
package main /* We often need our programs to perform operations on collections of data, like selecting all items that satisfy a given predicate or mapping all items to a new collection with a custom function. In some languages it’s idiomatic to use generic data structures and algorithms. Go does not support generics...
mit
JB1040/fade2karma
src/app/articles/article.ts
608
import { Author } from './article/author/author'; import { Extend } from '../core/globals'; import { Deck } from '../decks/deck'; export class Article { id: number; author: Author; title: string; imageURL: string; content: string; game: 'HS' | 'GWENT'; type: 'METAREPORTS' | 'ANNOUNCMENTS' |...
mit
sygool/ledisdb
cmd/ledis-cli/complietion.go
473
package main // CompletionHandler provides possible completions for given input type CompletionHandler func(input string) []string // DefaultCompletionHandler simply returns an empty slice. var DefaultCompletionHandler = func(input string) []string { return make([]string, 0) } var complHandler = DefaultCompletionHa...
mit
demisto/content
Packs/PrismaAccess/ReleaseNotes/1_0_7.md
115
#### Integrations ##### Prisma Access Egress IP feed - Updated the Docker image to: *demisto/python3:3.9.7.24076*.
mit
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.14.1/cssgrids-base/cssgrids-base-min.css
128
version https://git-lfs.github.com/spec/v1 oid sha256:225b642d98868ef3bd3bb3e9d96c9b7daf718038559743bc3423f6fc1c7b1698 size 694
mit
kellyselden/ember.js
node-tests/blueprints/mixin-test.js
11394
'use strict'; const blueprintHelpers = require('ember-cli-blueprint-test-helpers/helpers'); const setupTestHooks = blueprintHelpers.setupTestHooks; const emberNew = blueprintHelpers.emberNew; const emberGenerateDestroy = blueprintHelpers.emberGenerateDestroy; const setupPodConfig = blueprintHelpers.setupPodConfig; con...
mit
BranchMetrics/react-native-branch
examples/androidx-deps/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.java
2135
package com.swmansion.gesturehandler.react; import android.os.Build; import android.view.View; import android.view.ViewGroup; import com.facebook.react.uimanager.PointerEvents; import com.facebook.react.uimanager.ReactPointerEventsView; import com.facebook.react.views.view.ReactViewGroup; import com.swmansion.gesture...
mit
feliciousx-open-source/cyclejs
docs/getting-started.html
10809
<!doctype html> <html> <head> <meta charset='utf-8'> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width"> <title>Cycle.js - Getting started</title> <!-- Flatdoc --> <script src='support/vendor/jquery.js'></script> <script src='support/vendor/h...
mit
extr0py/extropy
src/js/common/Entity/State/State.ts
790
module Extropy.Entity { // State encapsulates the state of a set of entities for a particular frame export class State { public id: number; public tick: number; private _idToEntity: HashTable<EntityState> = Object.create(null); private _entities: EntityState[] = []; p...
mit
nhamcrest/NHamcrest
src/NHamcrest.Tests/TestClasses/ClassWithArrayOfClasses.cs
208
using System; namespace NHamcrest.Tests.TestClasses { public class ClassWithArrayOfClasses { public Guid Id { get; set; } public SimpleFlatClass[] OtherThings { get; set; } } }
mit
borisbrodski/jmockit
samples/powermock/test/powermock/examples/simple/Logger_JMockit_Test.java
1473
/* * Copyright (c) 2006-2012 Rogério Liesenfeld * This file is subject to the terms of the MIT license (see LICENSE.txt). */ package powermock.examples.simple; import java.io.*; import org.junit.*; import mockit.*; /** * <a href="http://code.google.com/p/powermock/source/browse/trunk/examples/simple/src/test/ja...
mit
Vmlweb/MEAN-AngularJS-1
client/controller.js
218
//Controller app.controller('NavbarController', function($scope, $location) { //Set active navigation bar tab $scope.isActive = function (viewLocation) { return viewLocation === $location.path(); }; });
mit
bower/components
packages/editor.js
78
{ "name": "editor.js", "url": "https://github.com/ktkaushik/editor.git" }
mit
hetmeter/awmm
fender-sb-bdd/src/ags/graph/CycleDetector.java
6919
/* ========================================== * JGraphT : a free Java graph-theory library * ========================================== * * Project Info: http://jgrapht.sourceforge.net/ * Project Creator: Barak Naveh (http://sourceforge.net/users/barak_naveh) * * (C) Copyright 2003-2008, by Barak Naveh and Con...
mit
vineetreddyrajula/pharo
src/FileSystem-Memory.package/MemoryFileSystemEntry.class/README.md
122
I am an abstract file system entry for a memory file system. My subclasses should specialize on the kind of file they are.
mit
you-n-g/multiverso
binding/python/multiverso/tables.py
7029
#!/usr/bin/env python # coding:utf8 import ctypes from utils import Loader from utils import convert_data import numpy as np import api mv_lib = Loader.get_lib() class TableHandler(object): '''`TableHandler` is an interface to sync different kinds of values. If you are not writing python code based on the...
mit
plivo/plivo-php
src/Plivo/Exceptions/PlivoXMLException.php
156
<?php namespace Plivo\Exceptions; /** * Class PlivoXMLException * @package Plivo\Exceptions */ class PlivoXMLException extends PlivoRestException { }
mit
dkulp23/ways2goAPI
server.js
1137
'use strict'; const dotenv = require('dotenv'); dotenv.load(); const express = require('express'); const debug = require('debug')('ways2go:server'); const morgan = require('morgan'); const cors = require('cors'); const mongoose = require('mongoose'); const Promise = require('bluebird'); const apiRouter = require('./...
mit
serafin/fine
src/lib/f/di/shared.php
295
<?php abstract class f_di_shared extends f_di { protected static $_shared = array(); public function __get($name) { if (isset(self::$_shared[$name])) { return $this->{$name} = self::$_shared[$name]; } return parent::__get($name); } }
mit
sinkingshriek/kaha
routes/utils.js
7537
var conf = require('../config/'); var sha = require('object-hash'); var uuid = require('node-uuid'); var _ = require('underscore'); _.mixin(require('underscore.deep')); var url = require('url'); var db; var env = exports.env = conf.name; var similarFilter = ['type', 'location', 'description.contactnumber']; var readonl...
mit
t1732/kamome
lib/kamome/railtie.rb
459
module Kamome class Railtie < Rails::Railtie initializer "kamome.on_load_active_record" do ActiveSupport.on_load(:active_record) do include Kamome::Model end end initializer "kamome.configure" do Kamome.configure do |config| config.config_path = Rails.root.join("config/k...
mit
mgr32/PsISEProjectExplorer
PsISEProjectExplorer/Commands/OpenItemCommand.cs
3259
using PsISEProjectExplorer.Enums; using PsISEProjectExplorer.Model; using PsISEProjectExplorer.Model.DocHierarchy.Nodes; using PsISEProjectExplorer.Services; using PsISEProjectExplorer.UI.IseIntegration; using PsISEProjectExplorer.UI.ViewModel; using System; namespace PsISEProjectExplorer.Commands { [Co...
mit
ch3nkula/IMS_Soft400
app/models/RegisterUser.php
739
<?php /*==========================================================*/ //This is a model to finally register a user into the database //by creating he or she account on the platform use Illuminate\Auth\UserTrait; use Illuminate\Auth\UserInterface; use Illuminate\Auth\Reminders\RemindableTrait; use Illuminate\Auth\Remi...
mit
jeffreylees/docs
articles/protocols/saml/idp-initiated-sso.md
6249
--- title: IdP-Initiated Single Sign-On description: How to setup SAML Identity Provider-initiated Single Sign-on (SSO). topics: - saml - sso contentType: - how-to - concept useCase: - add-idp --- # IdP-Initiated Single Sign-On Many instructions for setting up a <dfn data-key="security-assertion-markup-lang...
mit
dank-meme-dealership/foosey
frontend/www/js/keylistener/keylistener.directive.js
1086
(function () { angular .module('keylistener') .directive('keylistener', keylistener); function keylistener($document, $rootScope, $ionicPopup) { var directive = { restrict: 'A', link: link }; return directive; function link() { var captured = []; $document.bind('k...
mit
asi1024/ContestLibrary
cpp/tests/aoj-DSL_2_B.cpp
295
#include "../include/structure/fenwick_tree.cpp" int main() { int n, q, com, x, y; scanf("%d%d", &n, &q); FenwickTree<int> bit(n + 1); while (q--) { scanf("%d%d%d", &com, &x, &y); if (com) printf("%d\n", bit.sum(x, y + 1)); else bit.add(x, y); } return 0; }
mit
swastik/en-select
tests/unit/helpers/highlight-test.js
1823
import { highlight } from "../../../helpers/highlight" import { module, test } from "qunit" module("Unit | Helper | highlight") test("it works", function(assert) { let result result = highlight([], { phrase: "Something", part: "Some" }) assert.equal( result, '<mark class="en-select-option-hi...
mit
louismerlin/trackodoro
populate.rb
594
u1 = User.new(:email => 'louis.merlin@epfl.ch', :first_name => 'Louis', :last_name => 'Merlin') u1.password = "louis" u1.password_confirmation = "louis" u1.save u2 = User.new(:email => 'patrick.aebischer@epfl.ch', :first_name => 'Patrick', :last_name => 'Aebischer') u2.password = "patrick" u2.password_confirmation = "...
mit
juniwang/open-hackathon
open-hackathon-server/src/tests/conftest.py
1534
import pytest from hackathon.constants import VE_PROVIDER, TEMPLATE_STATUS from hackathon.hmongo.models import User, Template, UserHackathon from hackathon.hmongo.database import add_super_user @pytest.fixture(scope="class") def user1(): # return new user named one one = User( name="test_one", ...
mit
tullyhansen/botwiki.org
content/bots/twitterbots/minetweeter_.md
623
/* Title: @minetweeter_ Description: Play MineSweeper on Twitter. Author: Stefan Bohacek Date: August 4, 2015 Tags: twitter,twitterbot,active,game,opensource,open source,node.js,nodejs,node,louroboros Nav: hidden Robots: index,follow */ [![](/content/bots/twitterbots/images/minetweeter_.png)](https://twitter.com/mine...
mit
cosnicsTHLU/cosnics
src/Chamilo/Application/Weblcms/Tool/Action/Component/IntroductionPublisherComponent.php
3460
<?php namespace Chamilo\Application\Weblcms\Tool\Action\Component; use Chamilo\Application\Weblcms\Rights\WeblcmsRights; use Chamilo\Application\Weblcms\Storage\DataClass\ContentObjectPublication; use Chamilo\Application\Weblcms\Tool\Action\Manager; use Chamilo\Core\Repository\ContentObject\Introduction\Storage\DataCl...
mit
selvasingh/azure-sdk-for-java
sdk/logic/mgmt-v2018_07_01_preview/src/main/java/com/microsoft/azure/management/logic/v2018_07_01_preview/WorkflowState.java
1797
/** * 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.logic.v2018_07_01_preview; import java.util.Coll...
mit
SkillsFundingAgency/das-alpha-ui
public/javascripts/custom.js
7807
var EventUtil = { addHandler: function(element, type, handler){ if (element.addEventListener){ element.addEventListener(type, handler, false); } else if (element.attachEvent){ element.attachEvent("on" + type, handler); } else { element["on" + type] = hand...
mit
AlexanderStanev/SoftUni
TechModule/DataTypesVariablesExercises/07. Exchange Variable Values/Program.cs
501
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _7.Exchange_Variable_Values { class Program { static void Main(string[] args) { int a = 5; int b = 10; Console.WriteLine("Before:\n...
mit
tedyhy/SCI
kissy-1.4.9/docs/source/insertion.html
12233
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>The source code</title> <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" /> <script type="text/javascript" src="../resources/prettify/prettify.js"></script> <style type="t...
mit
scottbuettner/PactMsg
src/tests/greatest.h
34622
/* * Copyright (c) 2011-2014 Scott Vokes <vokes.s@gmail.com> * * Permission to use, copy, modify, and/or 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...
mit
patorjk/figlet.js
importable-fonts/Sub-Zero.js
6438
export default `flf2a$ 6 5 17 -1 16 "Sub-Zero" font by Sub-Zero ============================== -> Conversion to FigLet font by MEPH. (Part of ASCII Editor Service Pack I) (http://studenten.freepage.de/meph/ascii/ascii/editor/_index.htm) -> Defined: ASCII code alphabet -...
mit
yizhi401/NoahsArk
CubeWorldUnity/Assets/SourceCode/CubeWorld/Configuration/Config.cs
639
using CubeWorld.World.Generator; using CubeWorld.Tiles; using CubeWorld.World.Lights; using CubeWorld.Configuration; using CubeWorld.Items; using CubeWorld.Avatars; using CubeWorld.Gameplay; namespace CubeWorld.Configuration { public class Config { public ConfigWorldSize worldSize; public Conf...
mit
LivePersonInc/dev-hub
content6/consumer-experience-server-chat-retrieve-chat-resources.html
135511
<!DOCTYPE html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <meta name="keywords" content=" "> <title>Retrieve Chat Resources, Events and Information | LivePerson Technic...
mit
Cryptcollector/ARG2.0
src/qt/locale/bitcoin_fa.ts
135299
<TS language="fa" version="2.0"> <context> <name>AboutDialog</name> <message> <source>About Argentum Core</source> <translation type="unfinished"/> </message> <message> <source>&lt;b&gt;Argentum Core&lt;/b&gt; version</source> <translation type="unfinished"/> </messag...
mit
github/codeql
javascript/ql/test/query-tests/Security/CWE-022/TaintedPath/TaintedPath-es6.js
332
import { readFileSync } from 'fs'; import { createServer } from 'http'; import { parse } from 'url'; import { join } from 'path'; var server = createServer(function(req, res) { let path = parse(req.url, true).query.path; // BAD: This could read any file on the file system res.write(readFileSync(join("public", p...
mit
imasaru/sabbath-school-lessons
src/fj/2020-04/10/07.md
2975
--- title: Kuri Ni Vakasama date: 04/12/2020 --- E rua na vakasama vakavuku e basika ka vakavuna na kena laki yaco me kina me dina e vuqa na ka, ka yaco me cala na ka dina; Matai, ko ira na vuku era vulica na vuravura, ena dodonu me rai ga ki na vuravura me sauma vei ira na vakatataro; karua, era nanuma na vuku ni l...
mit
davidressman/gpfs-utils
file2nsd.pl
9422
#!/usr/bin/env perl # The MIT License (MIT) # # Copyright (c) 2014 David Ressman, davidr@ressman.org # # 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, includin...
mit
ThomasBarnekow/Open-XML-SDK
src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2012_chart.g.cs
211463
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #nullable enable #pragma warning disable CS0618 // Type or member is obsolete using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Drawing; using DocumentForma...
mit
vincium/rebond-framework
src/Rebond/Enums/Core/ResponseFormat.php
357
<?php /** * (c) Vincent Patry * This file is part of the Rebond package * For the full copyright and license information, please view the LICENSE.txt * file that was distributed with this source code. */ namespace Rebond\Enums\Core; use Rebond\Enums\AbstractEnum; class ResponseFormat extends AbstractEnum { c...
mit
CaptainJackJJ/SmpUpdater
src/settings.h
7927
/* * This file is part of WinSparkle (http://winsparkle.org) * * Copyright (C) 2009-2014 Vaclav Slavik * * 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, inclu...
mit
gshopov/competitive-programming-archive
codeforces/round-293/div-2/tanya_and_postcard.cpp
1111
#include <cctype> #include <iostream> #include <map> #include <string> using namespace std; constexpr char found_symbol {'#'}; inline void use_io_optimizations() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } inline char opposite(char symbol) { return islower(symbol) ? toupper(symbol) : tolower...
mit
magnusjt/folderselect
src/folderselect.css
4711
/* Wrapper for the whole plugin Reset some styles. */ .fs-wrapper{ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1.428571429; color: #333333; background-color: #ffffff; } .fs-wrapper:after{ display: table; content: " "; clear: both; } .fs-wrap...
mit
afriestad/interlecture
interlecture/interauth/views.py
4933
from django.core.exceptions import ObjectDoesNotExist from django.http import HttpResponseRedirect from django.contrib import messages from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.contrib.auth.models import User from django.template.lo...
mit
spinesheath/HanaMahjong
Spines.Mahjong/Spines.Tenhou.Client/DiscardInformation.cs
1186
// This file is licensed to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Linq; using System.Xml.Linq; using Spines.Utility; namespace Spines.Tenhou.Client { /// <summary> /// Data provided by the server when a player discards a tile. /// </summary> ...
mit
Coregraph/Ayllu
JigSaw - AYPUY - CS/AES_MATEO/src/besa_adaptado/adaptador/Consulta.java
217
package besa_adaptado.adaptador; import adaptation.common.query.AdaptationQueryAES; public class Consulta extends AdaptationQueryAES { public Consulta(String query) { setQuery(query); } }
mit
mychips/eatnsplit
node_modules/@ava/write-file-atomic/README.md
2026
write-file-atomic ----------------- **Forked from https://github.com/npm/write-file-atomic to include https://github.com/npm/write-file-atomic/pull/25, for use with [AVA](https://github.com/avajs/ava/).** --- This is an extension for node's `fs.writeFile` that makes its operation atomic and allows you set ownership ...
mit
untidy-hair/rails
railties/CHANGELOG.md
2084
* Don't generate unused files in `app:update` task Skip the assets' initializer when sprockets isn't loaded. Skip `config/spring.rb` when spring isn't loaded. Skip yarn's contents when yarn integration isn't used. *Tsukuru Tanimichi* * Make the master.key file read-only for the owner upon ge...
mit
BellGeorge/BGLibrary
Pods/Documentation/TouchDB/html/Classes/TDRemoteJSONRequest.html
6046
<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="html/html; charset=utf-8" /> <title>TDRemoteJSONRequest Class Reference</title> <meta id="xcode-display" name="xcode-display" content="render"/> <meta name="viewport" content="width=550" /> <link rel="stylesheet" type="text/css" href="../...
mit
ojengwa/node-oauth20-provider
test/server/model/memory/oauth2/client.js
470
var clients = require('./../../data.js').clients; module.exports.getId = function(client) { return client.id; }; module.exports.getRedirectUri = function(client) { return client.redirectUri; }; module.exports.fetchById = function(clientId, cb) { for (var i in clients) { if (clientId == clients[i]...
mit
cronvel/logger-kit
sample/net-server-test.js
2053
#!/usr/bin/env node /* Logfella Copyright (c) 2015 - 2019 Cédric Ronvel The MIT License (MIT) 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 limitat...
mit
Laaia/RT-xv6
usertests.c
2062
#include "param.h" #include "types.h" #include "stat.h" #include "user.h" #include "fs.h" #include "fcntl.h" #include "syscall.h" #include "traps.h" #include "memlayout.h" #ifdef RT unsigned long long J() { unsigned long long t; __asm__ __volatile__ ("rdtsc " : "=A"(t)); return t >> 21; } typedef struct procs...
mit
tsiry95/openshift-strongloop-cartridge
strongloop/node_modules/strong-arc/devtools/frontend/common/Settings.js
27489
/* * Copyright (C) 2009 Google Inc. 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 retain the above copyright * notice, this list of conditio...
mit
Ensequence/express-restify-mongoose
test/integration/middleware.js
36848
var assert = require('assert') var mongoose = require('mongoose') var request = require('request') var sinon = require('sinon') var util = require('util') module.exports = function (createFn, setup, dismantle) { var erm = require('../../lib/express-restify-mongoose') var db = require('./setup')() var testPort =...
mit