code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
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...
didimitrov/Shop
MyOnlineShop/MyOnlineShop.Models/ShopingCartModels/OrderDetail.cs
C#
mit
505
<?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;...
bburnichon/PHPExiftool
lib/PHPExiftool/Driver/Tag/Casio/SpecialEffectLevel.php
PHP
mit
851
/** * 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....
selvasingh/azure-sdk-for-java
sdk/mediaservices/mgmt-v2018_07_01/src/main/java/com/microsoft/azure/management/mediaservices/v2018_07_01/EnabledProtocols.java
Java
mit
2,825
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, ...
lucidphp/lucid
lucid/template/LICENSE.md
Markdown
mit
1,061
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...
ManiacalLabs/BiblioPixel
bibliopixel/project/types/spi_interface.py
Python
mit
424
#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({}, "...
karimnaaji/tangram-es
tests/unit/labelTests.cpp
C++
mit
4,905
#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 = ...
cruzj6/orderUpCompiler
compiler_back/source/lexer/token.cpp
C++
mit
1,085
# -*- 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", "...
izzyalonso/tndata_backend
tndata_backend/userprofile/migrations/0011_create_places.py
Python
mit
622
# 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...
airgames/vuforia-gamekit-integration
Gamekit/compilation/Engine/CMakeFiles/OgreKitCore.dir/DependInfo.cmake
CMake
mit
5,991
/* 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"...
bgegham/davideluna
public/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js
JavaScript
mit
4,348
--- 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...
unboxed/unboxed.co
source/blog/2016-09-05-docker-re-bundling.html.markdown
Markdown
mit
5,789
// 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...
emn178/js-sha1
tests/node-test.js
JavaScript
mit
940
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 ...
DatenMetzgerX/parallel.es
src/common/parallel/slave/register-parallel-worker-functions.ts
TypeScript
mit
1,346
<!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>...
funk-overload/funky_leds
color-picker-master/color-picker.state.html
HTML
mit
876
/* * 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...
Grinch/SpongeCommon
src/main/java/org/spongepowered/common/SpongeBootstrap.java
Java
mit
4,287
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...
gabrielburnworth/Farmbot-Web-App
frontend/settings/transfer_ownership/transfer_ownership.ts
TypeScript
mit
737
'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'); ...
zanemayo/ember-cli
tests/unit/commands/uninstall-npm-test.js
JavaScript
mit
2,523
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...
NetOfficeFw/NetOffice
Toolbox/Toolbox/Controls/Painter/OverlayPainter.cs
C#
mit
4,964
/* * 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...
corbinbs/CORBin
CORBin_System/tests/LONG/passlong-stubs.c
C
mit
3,739
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; } ...
DavidShoe/adafruitsample
Lesson_203V2/FullSolution/BME280.cs
C#
mit
16,192
<?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; /...
j-froehlich/magento2_wk
vendor/magento/module-braintree/Gateway/Response/PayPalDetailsHandler.php
PHP
mit
1,434
<?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...
gilsondev/login-cidadao
src/PROCERGS/LoginCidadao/CoreBundle/Command/PopulateDatabaseCommand.php
PHP
mit
7,080
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;
PoisonBOx/design-patterns
src/memento/perl/Memento.pm
Perl
mit
263
(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)...
hands-agency/grandcentral
grandcentral/sirtrevor/template/field/js/link.js
JavaScript
mit
3,216
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 ||...
BenMQ/coursemology2
app/controllers/jobs_controller.rb
Ruby
mit
688
<!-- 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...
reeganaga/SI-lelang
application/views/back/ornamen/custom_js.php
PHP
mit
3,029
//------------------------------------------------------------------------------ // <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> //------------------------------------------...
imcarolwang/wcf
src/dotnet-svcutil/lib/tests/Baselines/MultipleDocuments/multiDocRelativePath/Reference.cs
C#
mit
47,607
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...
tvcsantos/Flexget
flexget/plugins/filter/series.py
Python
mit
70,663
--- 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...
dimzak/dimzak.github.io
docs/_posts/2017-08-08-additional-styles.md
Markdown
mit
3,656
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...
CosmicSubspace/NerdyAudio
app/src/main/java/com/meapsoft/FFT.java
Java
mit
4,463
/* 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...
RazorX11/PSL1GHT
common/libsimdmath/common/isinff4.c
C
mit
1,808
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: "...
togusafish/shirasagi-_-shirasagi
app/models/concerns/ss/model/file.rb
Ruby
mit
6,055
# 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...
mosinve/bootstrap-vue
docs/components/jumbotron/README.md
Markdown
mit
374
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...
mika-f/Orion
Source/Orion.Scripting/Ast/AstGreaterThanOrEqualOperator.cs
C#
mit
428
// 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...
parameshbabu/bsp
drivers/uart/bcm2836/miniUart/qsfile.c
C
mit
4,379
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...
indro/t2c
apps/external_apps/swaps/management.py
Python
mit
1,734
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...
17up/rails_admin
lib/rails_admin/config/fields/types/code_mirror.rb
Ruby
mit
1,419
# 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...
heshamnaim/rollbar-gem
spec/rollbar_spec.rb
Ruby
mit
56,294
// // 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
MichaelHuyp/YPMTHD
YPMTHD/YPMTHD/Classes/Category/UIViewController+YPInit.h
C
mit
249
<footer> <div class="content"> <p>Copyright © 20016–2016 Blacider.</p> </div> </footer> <% include login.html%> </body> </html>
blacider/bookSystem
views/foot.html
HTML
mit
169
## 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...
amarzavery/azure-rest-api-specs
specification/peering/resource-manager/readme.go.md
Markdown
mit
706
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...
tsunammis/software-craftsmanship
development/golang/golangbyexample/43-collection-functions/collection-functions.go
GO
mit
2,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' |...
JB1040/fade2karma
src/app/articles/article.ts
TypeScript
mit
608
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...
sygool/ledisdb
cmd/ledis-cli/complietion.go
GO
mit
473
#### Integrations ##### Prisma Access Egress IP feed - Updated the Docker image to: *demisto/python3:3.9.7.24076*.
demisto/content
Packs/PrismaAccess/ReleaseNotes/1_0_7.md
Markdown
mit
115
version https://git-lfs.github.com/spec/v1 oid sha256:225b642d98868ef3bd3bb3e9d96c9b7daf718038559743bc3423f6fc1c7b1698 size 694
yogeshsaroya/new-cdnjs
ajax/libs/yui/3.14.1/cssgrids-base/cssgrids-base-min.css
CSS
mit
128
'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...
kellyselden/ember.js
node-tests/blueprints/mixin-test.js
JavaScript
mit
11,394
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...
BranchMetrics/react-native-branch
examples/androidx-deps/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNViewConfigurationHelper.java
Java
mit
2,135
<!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...
feliciousx-open-source/cyclejs
docs/getting-started.html
HTML
mit
10,809
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...
extr0py/extropy
src/js/common/Entity/State/State.ts
TypeScript
mit
790
using System; namespace NHamcrest.Tests.TestClasses { public class ClassWithArrayOfClasses { public Guid Id { get; set; } public SimpleFlatClass[] OtherThings { get; set; } } }
nhamcrest/NHamcrest
src/NHamcrest.Tests/TestClasses/ClassWithArrayOfClasses.cs
C#
mit
208
/* * 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...
borisbrodski/jmockit
samples/powermock/test/powermock/examples/simple/Logger_JMockit_Test.java
Java
mit
1,473
//Controller app.controller('NavbarController', function($scope, $location) { //Set active navigation bar tab $scope.isActive = function (viewLocation) { return viewLocation === $location.path(); }; });
Vmlweb/MEAN-AngularJS-1
client/controller.js
JavaScript
mit
218
{ "name": "editor.js", "url": "https://github.com/ktkaushik/editor.git" }
bower/components
packages/editor.js
JavaScript
mit
78
/* ========================================== * 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...
hetmeter/awmm
fender-sb-bdd/src/ags/graph/CycleDetector.java
Java
mit
6,919
I am an abstract file system entry for a memory file system. My subclasses should specialize on the kind of file they are.
vineetreddyrajula/pharo
src/FileSystem-Memory.package/MemoryFileSystemEntry.class/README.md
Markdown
mit
122
#!/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...
you-n-g/multiverso
binding/python/multiverso/tables.py
Python
mit
7,029
<?php namespace Plivo\Exceptions; /** * Class PlivoXMLException * @package Plivo\Exceptions */ class PlivoXMLException extends PlivoRestException { }
plivo/plivo-php
src/Plivo/Exceptions/PlivoXMLException.php
PHP
mit
156
'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('./...
dkulp23/ways2goAPI
server.js
JavaScript
mit
1,137
<?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); } }
serafin/fine
src/lib/f/di/shared.php
PHP
mit
295
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...
sinkingshriek/kaha
routes/utils.js
JavaScript
mit
7,537
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...
t1732/kamome
lib/kamome/railtie.rb
Ruby
mit
459
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...
mgr32/PsISEProjectExplorer
PsISEProjectExplorer/Commands/OpenItemCommand.cs
C#
mit
3,259
<?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...
ch3nkula/IMS_Soft400
app/models/RegisterUser.php
PHP
mit
739
--- 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...
jeffreylees/docs
articles/protocols/saml/idp-initiated-sso.md
Markdown
mit
6,249
(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...
dank-meme-dealership/foosey
frontend/www/js/keylistener/keylistener.directive.js
JavaScript
mit
1,086
#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; }
asi1024/ContestLibrary
cpp/tests/aoj-DSL_2_B.cpp
C++
mit
295
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...
swastik/en-select
tests/unit/helpers/highlight-test.js
JavaScript
mit
1,823
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 = "...
louismerlin/trackodoro
populate.rb
Ruby
mit
594
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", ...
juniwang/open-hackathon
open-hackathon-server/src/tests/conftest.py
Python
mit
1,534
/* 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...
tullyhansen/botwiki.org
content/bots/twitterbots/minetweeter_.md
Markdown
mit
623
<?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...
cosnicsTHLU/cosnics
src/Chamilo/Application/Weblcms/Tool/Action/Component/IntroductionPublisherComponent.php
PHP
mit
3,460
/** * 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...
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
Java
mit
1,797
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...
SkillsFundingAgency/das-alpha-ui
public/javascripts/custom.js
JavaScript
mit
7,807
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...
AlexanderStanev/SoftUni
TechModule/DataTypesVariablesExercises/07. Exchange Variable Values/Program.cs
C#
mit
501
<!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...
tedyhy/SCI
kissy-1.4.9/docs/source/insertion.html
HTML
mit
12,233
/* * 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...
scottbuettner/PactMsg
src/tests/greatest.h
C
mit
34,622
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 -...
patorjk/figlet.js
importable-fonts/Sub-Zero.js
JavaScript
mit
6,438
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...
yizhi401/NoahsArk
CubeWorldUnity/Assets/SourceCode/CubeWorld/Configuration/Config.cs
C#
mit
639
<!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...
LivePersonInc/dev-hub
content6/consumer-experience-server-chat-retrieve-chat-resources.html
HTML
mit
135,511
<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...
Cryptcollector/ARG2.0
src/qt/locale/bitcoin_fa.ts
TypeScript
mit
135,299
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...
github/codeql
javascript/ql/test/query-tests/Security/CWE-022/TaintedPath/TaintedPath-es6.js
JavaScript
mit
332
--- 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...
imasaru/sabbath-school-lessons
src/fj/2020-04/10/07.md
Markdown
mit
2,975
#!/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...
davidressman/gpfs-utils
file2nsd.pl
Perl
mit
9,422
// 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...
ThomasBarnekow/Open-XML-SDK
src/DocumentFormat.OpenXml/GeneratedCode/schemas_microsoft_com_office_drawing_2012_chart.g.cs
C#
mit
211,463
<?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...
vincium/rebond-framework
src/Rebond/Enums/Core/ResponseFormat.php
PHP
mit
357
/* * 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...
CaptainJackJJ/SmpUpdater
src/settings.h
C
mit
7,927
#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...
gshopov/competitive-programming-archive
codeforces/round-293/div-2/tanya_and_postcard.cpp
C++
mit
1,111
/* 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...
magnusjt/folderselect
src/folderselect.css
CSS
mit
4,711
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...
afriestad/interlecture
interlecture/interauth/views.py
Python
mit
4,933
// 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> ...
spinesheath/HanaMahjong
Spines.Mahjong/Spines.Tenhou.Client/DiscardInformation.cs
C#
mit
1,186
package besa_adaptado.adaptador; import adaptation.common.query.AdaptationQueryAES; public class Consulta extends AdaptationQueryAES { public Consulta(String query) { setQuery(query); } }
Coregraph/Ayllu
JigSaw - AYPUY - CS/AES_MATEO/src/besa_adaptado/adaptador/Consulta.java
Java
mit
217
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 ...
mychips/eatnsplit
node_modules/@ava/write-file-atomic/README.md
Markdown
mit
2,026
* 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...
untidy-hair/rails
railties/CHANGELOG.md
Markdown
mit
2,084
<!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="../...
BellGeorge/BGLibrary
Pods/Documentation/TouchDB/html/Classes/TDRemoteJSONRequest.html
HTML
mit
6,046
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]...
ojengwa/node-oauth20-provider
test/server/model/memory/oauth2/client.js
JavaScript
mit
470
#!/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...
cronvel/logger-kit
sample/net-server-test.js
JavaScript
mit
2,053
#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...
Laaia/RT-xv6
usertests.c
C
mit
2,062
/* * 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...
tsiry95/openshift-strongloop-cartridge
strongloop/node_modules/strong-arc/devtools/frontend/common/Settings.js
JavaScript
mit
27,489
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 =...
Ensequence/express-restify-mongoose
test/integration/middleware.js
JavaScript
mit
36,848