code
stringlengths
3
1.01M
repo_name
stringlengths
5
116
path
stringlengths
3
311
language
stringclasses
30 values
license
stringclasses
15 values
size
int64
3
1.01M
<?php namespace Doctrine\Tests\Models\CompositeKeyInheritance; /** * @Entity */ class JoinedChildClass extends JoinedRootClass { /** * @var string * @Column(type="string") */ public $extension = 'ext'; /** * @var string * @Column(type="string") * @Id ...
javieralfaya/tuitty
vendor/doctrine/orm/tests/Doctrine/Tests/Models/CompositeKeyInheritance/JoinedChildClass.php
PHP
mit
370
#pragma once #define Mortgage_h #include <iostream> #include <math.h> #include <string> using namespace std; class Mortgage { private: /* ************************************************** Class Constants ************************************************** */ const float NUM_MONTHS = 12.0; // Number of months...
Vinlock/Moorpark-M10A
M10B/Homework/Homework-3/Multi-Files-Version/Mortgage.h
C
mit
1,810
// Example input: [ '6', '-26 -25 -28 31 2 27' ] function largerThanNeighbours(args) { var i, count = 0, len = +args[0], myArray = args[1].split(' ').map(Number); for (i = 1; i < len - 1; i += 1) { if (myArray[i] > myArray[i - 1] && myArray[i] > myArray[i + 1]) { count += 1; } ...
SevdalinZhelyazkov/TelerikAcademy
JavaScript Fundamentals/05. Functions/05. LargerThanNeighbours.js
JavaScript
mit
414
/** * 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.network.v2019_02_01.implementation; import java....
navalev/azure-sdk-for-java
sdk/network/mgmt-v2019_02_01/src/main/java/com/microsoft/azure/management/network/v2019_02_01/implementation/VirtualNetworkGatewayInner.java
Java
mit
12,847
package cn.edu.gdut.zaoying.Option.series.map; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface SelectedModeBoolean { bool...
zaoying/EChartsAnnotation
src/cn/edu/gdut/zaoying/Option/series/map/SelectedModeBoolean.java
Java
mit
347
using System.Web.Http; using System.Web.Mvc; using System.Web.Optimization; using System.Web.Routing; namespace Northwind.Web { public class WebApiApplication : System.Web.HttpApplication { protected void Application_Start() { AreaRegistration.RegisterAllAreas(); Global...
wmccullough/RepositorySharp
src/Sample/Northwind.Web/Global.asax.cs
C#
mit
646
/* * This file is part of OpenByte IDE, licensed under the MIT License (MIT). * * Copyright (c) TorchPowered 2016 * * 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,...
TorchPowered/OpenByte
src/main/java/net/openbyte/gui/OutputFrame.java
Java
mit
2,906
using System; using System.Text; using System.Collections; using System.Collections.Generic; namespace Com.Aspose.Tasks.Model { public class RecurringInfoResponse { public RecurringInfo RecurringInfo { get; set; } public string Code { get; set; } public string Status { get; set; } public override ...
asposetasks/Aspose_Tasks_Cloud
SDKs/Aspose.Tasks-Cloud-SDK-for-.NET/src/Com/Aspose/Tasks/Model/RecurringInfoResponse.cs
C#
mit
682
"use strict"; var util = require("util"); /** * InvalidRateLimitConfiguration error triggered when passed invalid configurations. * * @param {String} description Extended description * @returns {void} */ function InvalidRateLimiterConfiguration(description) { Error.captureStackTrace(this, this.constructor); ...
clydeio/clydeio-simple-rate-limiter
lib/invalid-rate-limiter-configuration-error.js
JavaScript
mit
609
@import url('https://fonts.googleapis.com/css?family=Raleway'); html, body { width: 100%; height: 100%; } body { font-family: 'Raleway', sans-serif; margin: 0; font-weight: bold; } h1, h4 { text-align: center; } h4 { font-style: italic; } main { padding: 0 40px; min-height: 80%; } ul.menu { ...
zrusev/SoftUni_2016
12. ExpressJS Fundamentals - Jan 2019/07. Exam Preparation/Messenger/static/css/site.css
CSS
mit
5,106
<h2 class="volsignup">Sign Up to be a Volunteer</h2> <!-- <div ng-show="error">{{vol.error}}</div> --> <form name="form" ng-submit="signUp()"> <div ng-class="{ 'has-error': form.first_name.$dirty && form.first_name.$error.required }"> <div class="form-group"> <label class="sr-only" for="first_n...
TeresaNesteby/chariteer-client-side
app/views/volunteers/new.html
HTML
mit
2,568
'use strict'; var assert = require('chai').assert; var LinePredictor = require('../src/js/model/linePredictor.js').LinePredictor; var Geometry = require('../src/js/model/geometry.js').Geometry; var Line = require('../src/js/model/line.js').Line; Geometry.init(); Line.init(); function Target (x, y) { this.left = x; ...
uta-gasp/reading2
tests/model_linePredictor.js
JavaScript
mit
2,853
var shovel = require('../shovel'), util = require('../util'), temp = require('temp'); module.exports.run = function run(opts, cb) { temp.track(); var racketCodeDir = temp.mkdirSync('racket'), args = ['-l', 'racket/base']; shovel.start(opts, cb, { solutionOnly: function () { ...
xcthulhu/codewars-runner
lib/runners/racket.js
JavaScript
mit
761
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # This screen shows partial list views, both in a screen and in a dialog. # This screen also shows pull to refresh # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # class ExamplePartialListXML < PMListScreen r...
infinitered/bluepotion
app/screens/example_partial_list_xml_screen.rb
Ruby
mit
1,421
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), requirejs: { compile: { options: { paths: { requireLib: 'node_modules/requirejs/require' }, include: [ "requireLib" ], baseUrl: ".", mainConfigFile: "app.js", name: "app", optimize:...
szymonkaliski/pex
examples/webOptimizedBuild/gruntfile.js
JavaScript
mit
554
using System; using System.Collections.Generic; using Newtonsoft.Json; using ShopifySharp.Enums; using ShopifySharp.Converters; namespace ShopifySharp { public class ShopifyProductVariant : ShopifyObject { /// <summary> /// The unique numeric identifier for the product. /// </summary> ...
Yitzchok/ShopifySharp
ShopifySharp/Entities/ShopifyProductVariant.cs
C#
mit
6,153
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
fstudio/Phoenix
test/Experimental/libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_iter_iter.pass.cpp
C++
mit
4,244
namespace OneSky.CSharp.Json { using System; public interface IQuotationDetails { decimal PerWordCost { get; } decimal TotalCost { get; } DateTime WillCompleteAt { get; } long WillCompleteAtTimestamp { get; } int SecondsToComplete { get; } } }
QuadRatNewBy/OneSky.CSharp
OneSky.CSharp/OneSky.CSharp/Json/Objects/IQuotationDetails.cs
C#
mit
307
package org.eluder.coveralls.maven.plugin.service; import java.util.Properties; /* * #[license] * coveralls-maven-plugin * %% * Copyright (C) 2013 - 2016 Tapio Rautonen * %% * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the...
trautonen/coveralls-maven-plugin
src/main/java/org/eluder/coveralls/maven/plugin/service/ServiceSetup.java
Java
mit
2,285
//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. //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) #ifdef BOOST_QVM_TEST_SINGLE_HEADER # include BOOST_QVM_TEST_SINGLE_HEADER #else # include <boo...
davehorton/drachtio-server
deps/boost_1_77_0/libs/qvm/test/div_eq_vs_test.cpp
C++
mit
813
module Cms class PeopleController < Cms::AdminController def index @people = @group ? @group.people : Person.top_level end def show @person = Person.find(params[:id]) end def new @person = Person.new end def edit @person = Person.find(params[:id]) end ...
nicholashibberd/cms
controllers/cms/people_controller.rb
Ruby
mit
1,130
package llrb_test import ( "fmt" "github.com/gyuho/goraph/llrb" ) func Example_rotateToLeft() { node3 := llrb.NewNode(llrb.Float64(3)) node3.Black = true node1 := llrb.NewNode(llrb.Float64(1)) node1.Black = true node13 := llrb.NewNode(llrb.Float64(13)) node13.Black = false node9 := llrb.NewNode(llrb.Floa...
hsavit1/goraph
llrb/example_move_test.go
GO
mit
9,074
import { tee } from "./tee"; import { pump } from "./pump"; import { createDuplex } from "./duplex"; import { wrapAsyncIterableIterator } from "./wrap-async-iterable-iterator"; /** * Calls all target functions in parallel, and returns the yielded values of the _fastest_ one. * * @example * * const ping = race( ...
mojo-js/mesh.js
packages/mesh/src/race.ts
TypeScript
mit
1,146
### Initialize SdkboxPlay Initialize the plugin where appropriate in your code. We recommend to do this in the `AppDelegate::applicationDidFinishLaunching()` or `AppController:didFinishLaunchingWithOptions()`. Make sure to include the appropriate headers: ```cpp #include "PluginSdkboxPlay/PluginSdkboxPlay.h" AppDelega...
sdkbox-staging/en
src/sdkboxplay/v3-cpp/usage.md
Markdown
mit
8,884
var d3 = require('d3'); function true_index(arr, config) { // Series.ix[start, end].true().index; if (!config) { config = {}; } if (!config.length) { config.length = arr.length } config.start = config.start ? config.start : 0; config.end = config.end ? config.end : config.length; var valid = new Array(co...
dalejung/lyrical
lib/util/munging.js
JavaScript
mit
913
# Oro\Bundle\OrganizationBundle\Entity\BusinessUnit ## ACTIONS ### get Retrieve a specific business unit record. {@inheritdoc} ### get_list Retrieve a collection of business unit records. {@inheritdoc} ### create Create a new business unit record. The created record is returned in the response. {@inheri...
Djamy/platform
src/Oro/Bundle/OrganizationBundle/Resources/doc/api/business_unit.md
Markdown
mit
4,478
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
Microsoft/ChakraCore
lib/Runtime/Library/BoundFunction.h
C
mit
3,778
<?php /** * OAuth. * * @copyright Christian Flach (Cmfcmf) * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License * @author Christian Flach <cmfcmf.flach@gmail.com>. * @link https://www.github.com/cmfcmf/OAuth * @link http://zikula.org * @version Generated by ModuleStudio 0.6.1 (http...
cmfcmf/TestModule
Cmfcmf/OAuthModule/workflows/operations/function.delete.php
PHP
mit
1,236
require 'chefspec' describe 'package::unlock' do platform 'ubuntu' describe 'unlocks a package with an explicit action' do it { is_expected.to unlock_package('explicit_action') } it { is_expected.to_not unlock_package('not_explicit_action') } end describe 'unlocks a package with attributes' do it...
chefspec/chefspec
examples/package/spec/unlock_spec.rb
Ruby
mit
767
package veneur import ( "errors" "fmt" "github.com/hashicorp/consul/api" ) // Consul is a Discoverer that uses Consul to find // healthy instances of a given name. type Consul struct { ConsulHealth *api.Health } // NewConsul creates a new instance of a Consul Discoverer func NewConsul(config *api.Config) (*Cons...
gphat/veneur
consul.go
GO
mit
1,189
""" GUI progressbar decorator for iterators. Includes a default (x)range iterator printing to stderr. Usage: >>> from tqdm_gui import tgrange[, tqdm_gui] >>> for i in tgrange(10): #same as: for i in tqdm_gui(xrange(10)) ... ... """ # future division is important to divide integers and get as # a result preci...
dhaase-de/dh-python-dh
dh/thirdparty/tqdm/_tqdm_gui.py
Python
mit
13,510
<?php $res = \AlternativePayments\Request :: get("Payment", "pay_12345aa"); var_dump($res);
AlternativePayments/ap-php-sdk
samples/payment/get.php
PHP
mit
94
--- title: أُمَّة كَبِيرَة وَقَوِيَّة.... date: 28/04/2021 --- لم يقتصر وعد الله لإبراهيم على أنَّ فيه تتبارك جميع قبائل الأرض، إذ أنه وعد أَيْضًا أن يجعل مِنه «أُمَّةً كَبِيرَةً وَقَوِيَّةً» (تكوين ١٨: ١٨؛ انظر تكوين ١٢: ٢؛ تكوين ٤٦: ٣). ويا له مِن وعد لرجل متزوج من امرأة تجاوزت سن الإنجاب. وهكذا، إذ كان إبراهيم بد...
imasaru/sabbath-school-lessons
src/ar/2021-02/05/05.md
Markdown
mit
3,118
/* Copyright (c) 2009-2012, Intel Corporation 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 conditions and the...
xabarass/fast-fractal-compression
lib/pcm/pcm/msrtest.cpp
C++
mit
4,117
if (process.title !== 'browser') { switch (process.env.KADOH_TRANSPORT) { default: case 'xmpp': //@browserify-ignore module.exports = require('./node-xmpp'); break; case 'udp': //@browserify-ignore module.exports = require('./udp') ; break; } } else { switch (process.env.KADOH_TRA...
jinroh/kadoh
lib/network/transport/index.js
JavaScript
mit
487
EQUALS = 'equals' GT = 'gt' LT = 'lt' IN = 'in' OPERATOR_SEPARATOR = '__' REVERSE_ORDER = '-' ALL_OPERATORS = {EQUALS: 1, GT: 1, LT: 1, IN: 1} def split_to_field_and_filter_type(filter_name): filter_split = filter_name.split(OPERATOR_SEPARATOR) filter_type = filter_split[-1] if len(filter_split) > 0 else N...
Aplopio/rip
rip/filter_operators.py
Python
mit
831
# == Schema Information # # Table name: snippets # # id :integer not null, primary key # title :string(255) # content :text # author_id :integer not null # project_id :integer not null # created_at :datetime not null # updated_at :datetime not null # f...
betabot7/gitlabhq
app/models/project_snippet.rb
Ruby
mit
797
namespace SimpleInjector.Integration.AspNet { using System; using System.Diagnostics; using Microsoft.AspNet.Mvc.ViewComponents; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Logging; /// <summary> /// View component invoker factory for Simple Injector. ///...
jamesqo/SimpleInjector
AspNetIntegration/SimpleInjector.Integration.AspNet/SimpleInjectorViewComponentInvokerFactory.cs
C#
mit
2,061
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
bengimbel/Solstice-React-Contacts-Project
node_modules/react-icons/lib/md/forum.js
JavaScript
mit
1,212
var cooking = require('cooking'); var path = require('path'); cooking.set({ entry: { index: path.join(__dirname, 'index.js') }, dist: path.join(__dirname, 'lib'), template: false, format: 'umd', moduleName: 'MintIndicator', extractCSS: 'style.css', extends: ['vue', 'saladcss'] }); cooking.add('re...
dajbd/misc-for-node.js
src/vue.js-demo-2/src/components/mint-ui/packages/indicator/cooking.conf.js
JavaScript
mit
582
package life.http; import life.LifeException; import life.Order; import life.db.DbIterator; import life.util.Convert; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.JSONStreamAware; import javax.servlet.http.HttpServletRequest; public final class GetAskOrderIds extends AP...
YawLife/LIFE
src/java/life/http/GetAskOrderIds.java
Java
mit
1,242
#ifndef REPEATED_INCLUDE_H #define REPEATED_INCLUDE_H #include "repeated_include.h" int ret_val() //@ requires true; //@ ensures true; { return CONST; } #endif
willempx/verifast
examples/preprocessor/repeated_include2.h
C
mit
163
package collections.list.traverse; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.infra.Blackhole; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder; import java.util.Ar...
fenderstr/my-bench
src/perf/java/collections/list/traverse/BooleanArrayVsLinkedBenchmark.java
Java
mit
1,907
__all__ = ['checker', 'transformer', 'codegen', 'common', 'numsed','numsed_lib','opcoder', 'sedcode', 'snippet_test']
GillesArcas/numsed
numsed/__init__.py
Python
mit
118
--- layout: post title: "Crown of Madness" date: 2015-01-07 tags: [bard, sorcerer, warlock, wizard, level2, enchantment] --- **2nd-Level enchantment** **Casting Time**: 1 action **Range**: 120 feet **Components**: V, S **Duration**: Concentration, up to 1 minute One humanoid of your choice that you can see wit...
Estevo-Aleixo/grimoire
_posts/2015-01-07-crown-of-madness.markdown
Markdown
mit
697
using System.ComponentModel.DataAnnotations; using Abp.AspNetCore.Mvc.Extensions; using Abp.Collections.Extensions; using Abp.Runtime.Validation.Interception; using Microsoft.AspNetCore.Mvc.Filters; namespace Abp.AspNetCore.Mvc.Validation { public class MvcActionInvocationValidator : MethodInvocationValidator ...
690486439/aspnetboilerplate
src/Abp.AspNetCore/AspNetCore/Mvc/Validation/MvcActionInvocationValidator.cs
C#
mit
1,850
import { connect } from 'react-redux' import { helloWorld } from '../actions' import Hello from './../components/Hello' const mapStateToProps = (state) => { return { message: state.hello.message } } const mapDispatchToProps = (dispatch) => { return { onClick: () => { dispatch(helloWorld()) } ...
koriym/Koriym.ReduxReactSsr
tests/fake/redux-app/common/containers/HelloWorld.js
JavaScript
mit
430
/* */ define( [ "../core" ], function( jQuery ) { "use strict"; // Cross-browser xml parsing jQuery.parseXML = function( data ) { var xml; if ( !data || typeof data !== "string" ) { return null; } // Support: IE 9 - 11 only // IE throws on parseFromString with invalid input. try { xml = ( new window.DOMP...
elingan/riotjs-app-starter
src/jspm_packages/npm/jquery@3.1.1/src/ajax/parseXML.js
JavaScript
mit
566
using System.Diagnostics.CodeAnalysis; namespace EncompassRest.Company.Users.Rights { /// <summary> /// GeneralRights /// </summary> public sealed class GeneralRights : ParentAccessRights { private AccessCorrespondentRights? _accessCorrespondent; private AccessToManageAccountPageRig...
hfcjweinstock/EncompassREST
src/EncompassRest/Company/Users/Rights/GeneralRights.cs
C#
mit
1,500
TOR SUPPORT IN BITCOIN ====================== It is possible to run Bitcoin as a Tor hidden service, and connect to such services. The following directions assume you have a Tor proxy running on port 9050. Many distributions default to having a SOCKS proxy listening on port 9050, but others may not. In particular, th...
wastholm/bitcoin
doc/tor.md
Markdown
mit
4,174
/* Ajude! https://www.urionlinejudge.com.br/judge/pt/problems/view/1367 */ #include <iostream> #include <cstdlib> #include <string> #include <vector> using namespace std; #define PENALIDADE 20 int main(void) { ios::sync_with_stdio(false); int N; while (cin >> N >> ws, N != 0) { int acertos = 0...
olegon/online-judges
uri-online-judge/1367/main.cpp
C++
mit
977
# -*- coding: utf-8 -*- # This file is part of beets. # Copyright 2015, Thomas Scholtes. # # 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 ...
kareemallen/beets
beetsplug/types.py
Python
mit
1,775
using UnityEngine; using System.Collections; using System.Collections.Generic; using System; namespace Lockstep.Data { public delegate int DataItemSorter(DataItem item); public class SortInfo { public SortInfo(string name, DataItemSorter sorter) { this._...
erebuswolf/LockstepFramework
Database/Scripts/Core/SortInfo.cs
C#
mit
606
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from gaegraph.business_base import NodeSearch, DeleteNode from classificacaodtm_app.commands import ListClassificacaodtmCommand, SaveClassificacaodtmCommand, UpdateClassificacaodtmCommand, \ ClassificacaodtmPublicForm, Classificacaodtm...
andersonsilvade/5semscript
Projeto/backend/apps/classificacaodtm_app/facade.py
Python
mit
2,641
// // Copyright (c) .NET Foundation and Contributors // Portions Copyright (c) 2006..2015 Giovanni Di Sirio. All rights reserved. // See LICENSE file in the project root for full license information. // #ifndef MCUCONF_H #define MCUCONF_H /* * STM32F7xx drivers configuration. * The following settings override the d...
nanoframework/nf-interpreter
targets/ChibiOS/ORGPAL_PALTHREE/nanoCLR/mcuconf.h
C
mit
15,831
'use strict' exports.register = function(server, options, next){ server.route([ { method: 'GET', path: '/createuser', config: { // Uncomment for security //auth: { // strategy: 'standard', // scope: 'admin' //}, handler: function(request, reply) { return reply('<html><head><title>User Crea...
Code4HR/okcandidate
api/auth/CreateUser.js
JavaScript
mit
1,776
/*! Pure v0.3.0 Copyright 2013 Yahoo! Inc. All rights reserved. Licensed under the BSD License. https://github.com/yui/pure/blob/master/LICENSE.md */ /*! normalize.css v1.1.2 | MIT License | git.io/normalize Copyright (c) Nicolas Gallagher and Jonathan Neal */ /*! normalize.css v1.1.2 | MIT License | git.io/normalize *...
kootenpv/kootenpv.github.io
css/pure.css
CSS
mit
35,593
using GitVersion.Helpers; namespace GitVersion.Core.Tests.Helpers; public class TestFileSystem : IFileSystem { private readonly Dictionary<string, byte[]> fileSystem = new(StringComparerUtils.OsDependentComparer); public void Copy(string from, string to, bool overwrite) { var fromPath = Path.GetF...
asbjornu/GitVersion
src/GitVersion.Core.Tests/Helpers/TestFileSystem.cs
C#
mit
3,779
BASE.require([ "BASE.sqlite.Visitor" ], function () { });
jaredjbarnes/WoodlandCreatures
packages/WebLib.2.0.0.724/content/lib/weblib/lib/BASE/BASE/sqlite/Provider.js
JavaScript
mit
74
// // FLErrors.h // FishLampCore // // Created by Mike Fullerton on 9/3/13. // Copyright (c) 2013 Mike Fullerton. All rights reserved. // #import "FLCoreRequired.h" #import "NSError+FLExtras.h" #import "FLExceptions.h" #import "FLErrorCodes.h" #import "FLErrorException.h" #import "FLCancelError.h" #import "FLError...
fishlamp-obsolete-ignore-these-repos/FishLampObjc-Core
Classes/Errors/FLErrors.h
C
mit
333
from django.forms import ModelForm,forms from django import forms from appPortas.models import * from django.forms.models import inlineformset_factory class PortaForm(ModelForm): class Meta: model = Porta fields = ('descricao',) class GrupoForm(ModelForm): class Meta: model = Grupo ...
Ednilsonpalhares/SCEFA
appPortas/forms.py
Python
mit
350
// This file is part of Indico. // Copyright (C) 2002 - 2019 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. (function(global) { 'use strict'; global.setupLinkingWidget = function setupLinkingWidget(optio...
mvidalgarcia/indico
indico/web/client/js/jquery/widgets/jinja/linking_widget.js
JavaScript
mit
1,153
#include <SFML/Graphics.hpp> #include <cmath> #include "Arrow.h" #define PI 3.14159265 int main() { //You can turn off antialiasing if your graphics card doesn't support it sf::ContextSettings context; context.antialiasingLevel = 4; sf::RenderWindow window(sf::VideoMode(400,400), "Follow Mouse 1", sf::Style::Tit...
tiag/C-SFML-html5-animation
ch05-04-follow-mouse-1/src/main.cpp
C++
mit
1,062
/** @ngdoc directive @name umbraco.directives.directive:umbChildSelector @restrict E @scope @description Use this directive to render a ui component for selecting child items to a parent node. <h3>Markup example</h3> <pre> <div ng-controller="My.Controller as vm"> <umb-child-selector selecte...
dawoe/Umbraco-CMS
src/Umbraco.Web.UI.Client/src/common/directives/components/umbchildselector.directive.js
JavaScript
mit
7,289
#include <iostream> #include <vector> using namespace std; int main() { int n = 50000000; vector<int> p(n + 1); vector<int> prime; for (int i = 2; i < n; ++i) if (p[i] == 0) { for (int j = 2 * i; j < n; j += i) p[j] = 1; prime.push_back(i); } int ans = 0; for (int i = 0; i < pr...
EdisonAlgorithms/ProjectEuler
vol3/136.cpp
C++
mit
493
'use strict' var fs = require('graceful-fs') var path = require('path') var mkdirpSync = require('mkdirp').sync var rimraf = require('rimraf') var test = require('tap').test var common = require('../common-tap.js') var base = common.pkg var cruft = path.join(base, 'node_modules', 'cruuuft') var pkg = { name: 'exampl...
enclose-io/compiler
lts/deps/npm/test/tap/cruft-test.js
JavaScript
mit
898
// This code is distributed under MIT license. // Copyright (c) 2014 George Mamaladze // See license.txt or http://opensource.org/licenses/mit-license.php #region usings using System; #endregion namespace Gma.Netmf.Hardware.Lego.PowerFunctions.Communication { /// <summary> /// This class is responsible...
gmamaladze/lego-rc-ms-iot
Lego.PowerFunctions/Communication/IrPulseEncoder.cs
C#
mit
2,904
using System; using System.Collections.Generic; using System.Text; using FlatRedBall.Math.Geometry; using FlatRedBall.Graphics; using System.Drawing; namespace EditorObjects.Hud { public class TextWidthHandles { Line mLeftLine; Line mTopSolidLine; Line mBottomSolidLine; Line mT...
GorillaOne/FlatRedBall
FRBDK/FRBDK Supporting Projects/EditorObjects/Hud/TextWidthHandles.cs
C#
mit
4,566
/* * Copyright 2011-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "lice...
loremipsumdolor/CastFast
src/com/amazonaws/services/s3/transfer/TransferManagerBuilder.java
Java
mit
17,389
var _INCLUDED = false; module.exports = function() { var BandRenderer = require('../../../core/renderers/band_renderer.js'); if (_INCLUDED) { return BandRenderer; } _INCLUDED = true; // cached state object, for quick access during rendering, populated in begin() method: BandRenderer.hasA("state");...
henhouse/js-multigraph
src/graphics/canvas/renderers/band_renderer.js
JavaScript
mit
5,655
/******************************************************************************/ /* Copyright (c) 2013-2022 VectorChief (at github, bitbucket, sourceforge) */ /* Distributed under the MIT software license, see the accompanying */ /* file COPYING or http://www.opensource.org/licenses/mit-license.php ...
VectorChief/QuadRay-engine
core/config/rtarch_m32_128x2v1.h
C
mit
79,043
 namespace Unplugged.Segy { public class SegyOptions : ISegyOptions { public bool? IsEbcdic { get; set; } //public bool? IsLittleEndian { get; set; } public int TextHeaderColumnCount { get; set; } public int TextHeaderRowCount { get; set; } public bool TextHeaderInsertN...
hohogpb/UnpluggedSegy
Unplugged.Segy/SegyOptions.cs
C#
mit
1,288
"""Support for interface with a Gree climate systems.""" from __future__ import annotations from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.dispatcher impor...
rohitranjan1991/home-assistant
homeassistant/components/gree/switch.py
Python
mit
5,377
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import Welcome from '../../src/js/components/Welcome'; describe('Welcome Component', () => { var welcomeComponent; beforeEach(() => { welcomeComponent = shallow(<Welcome />); }); it('renders Mikey Welcomes You! in...
Mikeysax/mikey
project_template/tests/components/Welcome.test.js
JavaScript
mit
626
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license an...
triggertoo/whatsup
src/vendor/zend/library/Zend/GData/EXIF/Extension/Distance.php
PHP
mit
1,631
/* * Generated by class-dump 3.4 (64 bit). * * class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2012 by Steve Nygard. */ #import "NSObject.h" #import "DVTInvalidation.h" @class DVTStackBacktrace, IDEActivityLogSection, IDELogStore, IDESourceControlExtension, IDESourceControlOperation, IDESourceCont...
orta/AxeMode
XcodeHeaders/IDEFoundation/IDESourceControlRequest.h
C
mit
4,744
# Part 3: Build a CRUD App ## Summary In Part 3 of the assessment, we'll demonstrate our proficiency in building web-stack applications: user authentication, associations, validations, controllers, views, etc. Even a little bit of CSS. ### Site Overview We'll be building a simplified version of a blind auction site...
nvanderlaan/fraudfinder
README.md
Markdown
mit
8,043
<?php namespace Proxies\__CG__\Blogger\BlogBundle\Entity; /** * DO NOT EDIT THIS FILE - IT WAS CREATED BY DOCTRINE'S PROXY GENERATOR */ class Blog extends \Blogger\BlogBundle\Entity\Blog implements \Doctrine\ORM\Proxy\Proxy { /** * @var \Closure the callback responsible for loading properties in the proxy ...
jatpatel1/Symblog
app/cache/prod/doctrine/orm/Proxies/__CG__BloggerBlogBundleEntityBlog.php
PHP
mit
10,113
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace School { public class Course { private IList<Student> students; public Course() { this.students = new List<Student>(); } public ILi...
todor-enikov/TelerikAcademy
Unit-testing with C# - 2016/01. Unit Testing/School/School/Course.cs
C#
mit
866
export default { 'ACT': 'Australian Capital Territory', 'NSW': 'New South Wales', 'NT' : 'Northern Territory', 'QLD': 'Queensland', 'SA' : 'South Australia', 'TAS': 'Tasmania', 'VIC': 'Victoria', 'WA' : 'Western Australia' }
AbleTech/addressfinder-shopify
src/address_form_config/user_registration_state_mappings.js
JavaScript
mit
240
if( typeof module !== 'undefined' ) require( 'wFiles' ) var _ = wTools; /* filesCopy HardDrive -> Extract */ var hub = _.FileProvider.Hub(); var simpleStructure = _.FileProvider.Extract ({ filesTree : Object.create( null ) }); hub.providerRegister( simpleStructure ); var hdUrl = _.fileProvider.urlFromLocal( _.no...
Wandalen/wFiles
sample/Hub.filesCopy.js
JavaScript
mit
577
/** http://www.w3.org/TR/2011/REC-SVG11-20110816/text.html#InterfaceSVGTextPositioningElement interface SVGTextPositioningElement : SVGTextContentElement { readonly attribute SVGAnimatedLengthList x; readonly attribute SVGAnimatedLengthList y; readonly attribute SVGAnimatedLengthList dx; readonly attribute SVGA...
MaddTheSane/SVGKit
Source/DOM classes/SVG-DOM/SVGTextPositioningElement.h
C
mit
1,115
<?php namespace Anytv\DashboardBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\OptionsResolver\OptionsResolverInterface; class OfferType extends AbstractType { public function buildForm(FormBuilderInterface $builder, array $options...
gcnonato/anytv-sf2
src/Anytv/DashboardBundle/Form/Type/OfferType.php
PHP
mit
1,129
version https://git-lfs.github.com/spec/v1 oid sha256:e330e85aabf65a6116144dfe2e726f649a1cdfd88a33e6ce4e3a39f40ebadfbb size 153184
yogeshsaroya/new-cdnjs
ajax/libs/highmaps/1.0.2/highcharts.js
JavaScript
mit
131
<!doctype html> <html class="default no-js"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Router | ninejs</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="../assets/css/main....
novosit/ninejs
docs/classes/_client_router_.router.html
HTML
mit
60,862
CREATE TABLE user_pwd ( name CHAR(30) NOT NULL, pass CHAR(32) NOT NULL, PRIMARY KEY (name) )
mchakon/afc
restricted/user_pwd.sql
SQL
mit
110
package com.freetymekiyan.algorithms.other; import org.junit.Assert; import org.junit.Test; /** * Suppose you are a salesman who travel around for business. Given n cities, for city i you can do business Ci times. * If you cannot go to the same city the next day. Find the maximum days you can do business. * <p> *...
FreeTymeKiyan/LeetCode-Sol-Res
src/main/java/com/freetymekiyan/algorithms/other/MaxSales.java
Java
mit
1,587
from django.db import models from django.contrib.auth.models import User from django.utils.html import escape from django.db.models import Q from datetime import date from datetime import datetime from MessagesApp.models import Thread from BlockPages.models import BlockPage, BlockEvent, EventComment from SpecialInfoApp...
rishabhsixfeet/Dock-
userInfo/models.py
Python
mit
35,677
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>named_base.rb</title> <meta http-equiv="Content-Type" content="te...
mojo1643/Dalal_v2
doc/api/files/__/__/__/__/usr/local/share/gems/gems/railties-4_1_8/lib/rails/generators/named_base_rb.html
HTML
mit
2,986
<?php /****************************************************************************** * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP. * * Copyright (c) 2016 Richard Klees <richard.klees@rwth-aachen.de> * * This software is licensed under GPLv3. You should have received * a copy of the licence al...
lechimp-p/dicto.php
src/App/SourceStatusGit.php
PHP
mit
1,078
/** * report business validation library */ var async = require('async'); module.exports = function(services, logger) { var me = this; me.validate = function(object, callback) { var errors = []; me.done = function() { var bVal = {valid: !(errors.length), errors: errors}; callback(bVal); }; me.vali...
NextCenturyCorporation/healthcare-demo
models/report/bvalidator.js
JavaScript
mit
5,236
# urbanjs-tools [![Build Status](https://travis-ci.org/urbanjs/urbanjs-tools.svg?branch=master)](https://travis-ci.org/urbanjs/urbanjs-tools) ### Quick start Initialize the necessary tasks and presets in your gulpfile.js: ``` const tools = require('urbanjs-tools'); tools.initialize(gulp, { babel: true, checkDepen...
urbanjs/urbanjs-tools
README.md
Markdown
mit
1,869
# Geometry which displays points at given (x, y) positions. immutable PointGeometry <: Gadfly.GeometryElement tag::Symbol function PointGeometry(; tag::Symbol=empty_tag) new(tag) end end const point = PointGeometry function element_aesthetics(::PointGeometry) [:x, :y, :size, :color] end ...
tbreloff/Gadfly.jl
src/geom/point.jl
Julia
mit
1,710
/* * Copyright (c) 2012 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Teamxrtc/webrtc-streaming-node
third_party/webrtc/src/webrtc/modules/remote_bitrate_estimator/overuse_detector.h
C
mit
2,313
<div class="header-proposition"> <div class="content"> <a href="#proposition-links" class="js-header-toggle menu">Menu</a> <nav id="proposition-menu"> <a href="/" id="proposition-name">Report the sale of a vehicle</a> <!-- <ul id="proposition-links"> <li><a href="url-to-page-1" class...
timpaul/vehicle_management_prototype
app/views/includes/propositional_navigation.html
HTML
mit
471
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'fakeredis' require "fakeredis/rspec" def fakeredis? true end
zegal-cn/fakeredis
spec/spec_helper.rb
Ruby
mit
199
require "counterman/hash_operations" # Public: Counterman core classs # class Counterman # Public: The timespan class. All the time span classes inherit from this one # class TimeSpan include HashOperations attr_reader :key DATE_FORMAT = "%s-%02d-%02d" TIME_FORMAT = "%02d:%02d" # Public: I...
clearbit/counterman
lib/counterman/time_span.rb
Ruby
mit
836
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Android.App; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly...
labdogg1003/Xamarin.Plugins
Settings/Refractored.Xam.Settings.Android/Properties/AssemblyInfo.cs
C#
mit
1,084
#### Integrations ##### AlienVault Reputation Feed - Improved error handling for proxy and SSL errors.
demisto/content
Packs/FeedAlienVault/ReleaseNotes/1_0_10.md
Markdown
mit
104
package com.mycompany.test; import java.util.ArrayList; import java.lang.*; import static java.awt.Color; import static java.lang.Math.*; public class ClassTest extends GenericClassTest implements com.mycompany.test.InterfaceTest, java.lang.Runnable { // Visibility private int _privateField; protected in...
keyrose/staruml-golang
unittest-files/parse/ClassTest.java
Java
mit
1,412