code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
4
991
language
stringclasses
9 values
license
stringclasses
15 values
size
int32
3
1.05M
import numpy as np from scipy.linalg import norm from .base import AppearanceLucasKanade class SimultaneousForwardAdditive(AppearanceLucasKanade): @property def algorithm(self): return 'Simultaneous-FA' def _fit(self, lk_fitting, max_iters=20, project=True): # Initial error > eps ...
jabooth/menpo-archive
menpo/fit/lucaskanade/appearance/simultaneous.py
Python
bsd-3-clause
8,583
package org.cagrid.gme.common.exceptions; import java.io.IOException; @SuppressWarnings("serial") public class SchemaParsingException extends IOException { public SchemaParsingException() { super(); } public SchemaParsingException(String s) { super(s); } }
NCIP/cagrid
cagrid/Software/core/caGrid/projects/globalModelExchange/src/org/cagrid/gme/common/exceptions/SchemaParsingException.java
Java
bsd-3-clause
296
require 'erb' describe "ERB.new" do before :all do @eruby_str = <<'END' <ul> <% list = [1,2,3] %> <% for item in list %> <% if item %> <li><%= item %></li> <% end %> <% end %> </ul> END @eruby_str2 = <<'END' <ul> % list = [1,2,3] %for item in list % if item <li><%= item %> <% end %> <% end %> </ul> %%%...
rubysl/rubysl-erb
spec/new_spec.rb
Ruby
bsd-3-clause
3,851
/* * Copyright (C) 2013 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...
klim-iv/phantomjs-qt5
src/webkit/Source/WebCore/html/HTMLMediaSource.cpp
C++
bsd-3-clause
1,798
/* Copyright (c) 2009, University of Oslo, Norway * 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, thi...
vtkio/vtk
src/main/java/vtk/text/tl/expr/Multiply.java
Java
bsd-3-clause
1,929
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Provides fakes for several of Telemetry's internal objects. These allow code like story_runner and Benchmark to be run and tested without compiling or st...
benschmaus/catapult
telemetry/telemetry/testing/fakes/__init__.py
Python
bsd-3-clause
15,827
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
2374/chris
src/edu/wpi/first/wpilibj/templates/RobotTemplate.java
Java
bsd-3-clause
3,586
/* * Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider, * Jérémie Comarmond, Didier Colin. * 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 ...
benkaraban/anima-games-engine
Sources/Tools/EPI/Document/Properties/PtyNodeEmitter/PtyPartEffectTranslate.moc.cpp
C++
bsd-3-clause
8,876
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst """ Quality Control based on fuzzy logic. """ import logging import numpy as np from .core import QCCheckVar from .gradient import gradient from .spike import spike from .woa_normbias import woa_normbias from cotede.fuzzy im...
castelao/CoTeDe
cotede/qctests/fuzzylogic.py
Python
bsd-3-clause
2,680
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.ui.widget; import android.content.Context; import android.util.AttributeSet; import android.util.SparseArray; import android.view.Vi...
endlessm/chromium-browser
ui/android/java/src/org/chromium/ui/widget/ViewLookupCachingFrameLayout.java
Java
bsd-3-clause
4,641
/* -*- mode: c++; fill-column: 132; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "irods_auth_object.hpp" namespace irods { auth_object::auth_object( rError_t* _r_error ) : r_error_( _r_error ) { // TODO - stub } auth_object::~auth_object() { // TODO - stub } ...
leesab/irods
iRODS/lib/core/src/irods_auth_object.cpp
C++
bsd-3-clause
1,097
package operation import ( "fmt" "os" "github.com/runabove/sail/internal" "github.com/spf13/cobra" ) var cmdOperationAttach = &cobra.Command{ Use: "attach", Short: "Attach to an ongoing operation output: sail operation attach [applicationName] <operationId>", Long: `Attach to an ongoing operation output: sa...
runabove/sail
operation/attach.go
GO
bsd-3-clause
1,209
/*------------------------------------------------------------------------- * OpenGL Conformance Test Suite * ----------------------------- * * Copyright (c) 2016 Google Inc. * Copyright (c) 2016 The Khronos Group Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fi...
endlessm/chromium-browser
third_party/angle/third_party/VK-GL-CTS/src/external/openglcts/modules/runner/glcTestRunnerMain.cpp
C++
bsd-3-clause
4,116
import sys import warnings try: import itertools.izip as zip except ImportError: pass from itertools import product import numpy as np from .. import util from ..dimension import dimension_name from ..element import Element from ..ndmapping import NdMapping, item_check, sorted_context from .interface import...
ioam/holoviews
holoviews/core/data/cudf.py
Python
bsd-3-clause
12,346
/* * Copyright (c) Contributors, http://openviewer.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * * 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 mus...
jimmygkr/openviewer
OpenViewer/UI/UIBase.cs
C#
bsd-3-clause
2,040
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD Lic...
thailvn/dev
module/Api/config/api.vuongquocbalo.com.php
PHP
bsd-3-clause
893
<?php namespace Jazzee\Element; /** * Phonenumber Element * * @author Jon Johnson <jon.johnson@ucsf.edu> * @license http://jazzee.org/license BSD-3-Clause */ class Phonenumber extends TextInput { const PAGEBUILDER_SCRIPT = 'resource/scripts/element_types/JazzeeElementPhonenumber.js'; public function addT...
Jazzee/Jazzee
src/Jazzee/Element/Phonenumber.php
PHP
bsd-3-clause
1,083
# for for i in 1..10 do puts i end
TJ-Hidetaka-Takano/mrubyc
sample_ruby/basic_sample05.rb
Ruby
bsd-3-clause
39
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/media/webrtc/permission_bubble_media_access_handler.h" #include <memory> #include <utility> #include "base/bind.h" #include "ba...
endlessm/chromium-browser
chrome/browser/media/webrtc/permission_bubble_media_access_handler.cc
C++
bsd-3-clause
17,709
# Copyright (c) 2006-2009 The Trustees of Indiana University. # All rights reserved. # # Redistribution and use in source and binary forms, with or without ...
matthiaskramm/corepy
corepy/arch/spu/isa/spu_isa.py
Python
bsd-3-clause
22,294
/* * Copyright (c) 2012, United States Government, as represented by the Secretary of Health and Human Services. * 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 so...
sailajaa/CONNECT
Product/Production/Services/PatientDiscoveryCore/src/main/java/gov/hhs/fha/nhinc/patientdiscovery/inbound/deferred/request/AbstractInboundPatientDiscoveryDeferredRequest.java
Java
bsd-3-clause
5,048
/* -- MAGMA (version 2.1.0) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date August 2016 @author Stan Tomov @author Hartwig Anzt @precisions normal z -> s d c */ #include "magmasparse_internal.h" #define P...
maxhutch/magma
sparse-iter/src/zlobpcg.cpp
C++
bsd-3-clause
27,130
import * as fs from "fs" import * as path from "path" import * as ts from "typescript" const coffee = require("coffeescript") const less = require("less") import {argv} from "yargs" import {collect_deps} from "./dependencies" const mkCoffeescriptError = (error: any, file?: string) => { const message = error.message...
stonebig/bokeh
bokehjs/src/compiler/compile.ts
TypeScript
bsd-3-clause
7,841
# -*- coding: utf-8 -*- # # Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia # 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 copyrigh...
nuagenetworks/vspk-python
vspk/v6/nuvmresync.py
Python
bsd-3-clause
11,928
package com.mistraltech.smogen.codegenerator.javabuilder; public class InterfaceMethodBuilder extends MethodSignatureBuilder<InterfaceMethodBuilder> { private InterfaceMethodBuilder() { } public static InterfaceMethodBuilder anInterfaceMethod() { return new InterfaceMethodBuilder(); } @Ov...
mistraltechnologies/smogen
src/main/java/com/mistraltech/smogen/codegenerator/javabuilder/InterfaceMethodBuilder.java
Java
bsd-3-clause
432
class ProductTag < ActiveRecord::Base has_attached_file :icon, :url => "/assets/product_tags/:id/:basename.:extension", :path => ":rails_root/public/assets/product_tags/:id/:basename.:extension" validates :name, :presence => true, :uniqueness => true has_many :products ...
secoint/spree_products_tags
app/models/product_tag.rb
Ruby
bsd-3-clause
323
"use strict" function checkEnvironmentForConfig(config:Object) : Object { let mentionBotEnvConfig; try { mentionBotEnvConfig = JSON.parse(process.env.MENTION_BOT_CONFIG); } catch(e) { mentionBotEnvConfig = {}; } return Object.keys(config).reduce((previousValue, key) => { let defaultConfigValue ...
ifuller1/mention-bot
environment.js
JavaScript
bsd-3-clause
641
// Copyright 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "cc/resources/content_layer_updater.h" #include "base/debug/trace_event.h" #include "base/time.h" #include "cc/debug/rendering_stats_instrumenta...
codenote/chromium-test
cc/resources/content_layer_updater.cc
C++
bsd-3-clause
2,848
# Copyright (C) 2010 CENATIC: Centro Nacional de Referencia de # Aplicacion de las TIC basadas en Fuentes Abiertas, Spain. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # Redistributions of source code must reta...
helix84/activae
src/Type.py
Python
bsd-3-clause
2,833
/* -- MAGMA (version 1.5.0-beta3) -- Univ. of Tennessee, Knoxville Univ. of California, Berkeley Univ. of Colorado, Denver @date July 2014 @generated from magma_z_init.cpp normal z -> s, Fri Jul 18 17:34:30 2014 @author Hartwig Anzt */ #include <fstream> #include <stdlib....
EmergentOrder/magma
sparse-iter/control/magma_s_init.cpp
C++
bsd-3-clause
2,249
//To Test:http://localhost:8080/nbia-auth/services/v3/getProtectionGrpList?format=html package gov.nih.nci.nbia.restAPI; import gov.nih.nci.nbia.dao.TrialDataProvenanceDAO; import gov.nih.nci.nbia.util.SpringApplicationContext; import gov.nih.nci.security.SecurityServiceProvider; import gov.nih.nci.security.UserProvi...
NCIP/national-biomedical-image-archive
software/nbia-api/src/gov/nih/nci/nbia/restAPI/V3_getProtectionGrpList.java
Java
bsd-3-clause
2,741
# Copyright (c) 2013 LE GOFF Vincent # 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 th...
v-legoff/croissant
croissant/output/__init__.py
Python
bsd-3-clause
1,636
/* * Copyright (c) 2013-2013, KNOPFLERFISH project * 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 ...
knopflerfish/knopflerfish.org
osgi/bundles/repository/repositorymanager/src/org/knopflerfish/service/repositorymanager/RepositoryInfo.java
Java
bsd-3-clause
3,464
package org.chasen.mecab.wrapper; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; import org.junit.Test; pub...
nowelium/jna-libmecab
test/org/chasen/mecab/wrapper/NodeIteratorTest.java
Java
bsd-3-clause
3,838
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <iostream> #include <string> #include "parser.h" #include "CLI/wrapper.h" #include "Libraries/linenoise.h" #include "CLI/interface.h" #define HIST_FILENAME ".polyBobHistory" int main(int argc, char **argv) { char* line; unsigned...
Taiki-San/Polybob
entrypoint.cpp
C++
bsd-3-clause
1,286
# -*- coding: utf-8 -*- import access import util @auth.requires_login() def index(): """Produces a list of the feedback obtained for a given venue, or for all venues.""" venue_id = request.args(0) if venue_id == 'all': q = (db.submission.user == get_user_email()) else: q = ((db.su...
lucadealfaro/crowdranker
controllers/feedback.py
Python
bsd-3-clause
10,966
<?php use yii\helpers\Html; use yii\grid\GridView; /* @var $this yii\web\View */ /* @var $searchModel app\models\search\UserSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ $this->title = 'Users'; $this->params['breadcrumbs'][] = $this->title; ?> <div class="user-index"> <h1><?= Html::encode($this...
vincentsthe/market-on
views/user/index.php
PHP
bsd-3-clause
999
from __future__ import print_function import shutil import os, sys import time import logging from .loaders import PythonLoader, YAMLLoader from .bundle import get_all_bundle_files from .exceptions import BuildError from .updater import TimestampUpdater from .merge import MemoryHunk from .version import get_manifest f...
gi0baro/weppy-assets
weppy_assets/webassets/script.py
Python
bsd-3-clause
22,478
/* Copyright (c) 2016, Alexander Entinger / LXRobotics * 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 * ...
lxrobotics/arduinoio
framework/ioentity.cpp
C++
bsd-3-clause
1,958
#!/usr/bin/env python # # Copyright 2007 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
ychen820/microblog
y/google-cloud-sdk/platform/google_appengine/google/appengine/datastore/datastore_v3_pb.py
Python
bsd-3-clause
282,355
// Copyright 2012 tsuru authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package provisiontest import ( "fmt" "io" "io/ioutil" "net/url" "sort" "sync" "sync/atomic" "time" docker "github.com/fsouza/go-dockerclient" "github...
ggarnier/tsuru
provision/provisiontest/fake_provisioner.go
GO
bsd-3-clause
35,129
module.exports = { env: { mocha: true }, plugins: [ 'mocha' ] };
pghalliday/recursive-semver
test/.eslintrc.js
JavaScript
isc
81
/* * Copyright (c) 2006, 2007 ThoughtWorks, Inc. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
codehaus/cozmos
src/main/java/com/thoughtworks/cozmos/ModDavSvnProxyServlet2.java
Java
isc
3,638
var doNothing = function () {} /** * The `Base` log defines methods that transports will share. */ var Base = module.exports = function (config, defaults) { var cedar = require('../../cedar') // A log is a shorthand for `log.log`, among other things. var log = function () { log.log.apply(log, arguments)...
zerious/cedar
lib/transports/base.js
JavaScript
isc
4,332
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GAPPSF.OKAPI { public class SiteInfoNetherlands: SiteInfo { public const string STR_INFO = "opencaching.nl"; public SiteInfoNetherlands() { ID = "2"; Info = STR_INFO...
RH-Code/GAPP
GAPPSF/OKAPI/SiteInfoNetherlands.cs
C#
mit
1,336
// using System; if (double.TryParse(aaa, out var bbb)) { // ... } //
general-language-syntax/GLS
test/integration/IfStringToDoubleEnd/if string to double end.cs
C#
mit
75
using System; using System.Collections.Generic; using KellermanSoftware.CompareNetObjects; using KellermanSoftware.CompareNetObjects.TypeComparers; using ProtoBuf; namespace Abc.Zebus.Testing.Comparison { internal static class ComparisonExtensions { public static bool DeepCompare<T>(this T firstObj, T...
biarne-a/Zebus
src/Abc.Zebus.Testing/Comparison/ComparisonExtensions.cs
C#
mit
1,822
// Generated on 12/11/2014 19:01:22 using System; using System.Collections.Generic; using System.Linq; using BlueSheep.Common.Protocol.Types; using BlueSheep.Common.IO; using BlueSheep.Engine.Types; namespace BlueSheep.Common.Protocol.Messages { public class SequenceNumberMessage : Message { ...
Sadikk/BlueSheep
BlueSheep/Common/Protocol/messages/game/basic/SequenceNumberMessage.cs
C#
mit
1,158
#include <iostream> using namespace std; #include <omp.h> #define SIZE 8 int main(void){ int x[SIZE]; int sum=0; for(int i=0;i<SIZE;i++){ x[i]=i; } #pragma omp parallel for reduction (+:sum) for(int i=0;i<SIZE;i++){ sum+=x[i]; } cout<<sum<<std::endl; return 0; }
wasit7/cs426
lectures/week02_omp2/week022_forReduction/for.cpp
C++
mit
300
from .image import Image from .product_category import ProductCategory from .supplier import Supplier, PaymentMethod from .product import Product from .product import ProductImage from .enum_values import EnumValues from .related_values import RelatedValues from .customer import Customer from .expense import Expense fr...
betterlife/psi
psi/app/models/__init__.py
Python
mit
875
import type {ResponseType} from "./base.type"; function parseJSON(response: ResponseType): Object { return response.json(); } export {parseJSON};
lingui/everest
src/parsers.js
JavaScript
mit
150
// This code contains NVIDIA Confidential Information and is disclosed to you // under a form of NVIDIA software license agreement provided separately to you. // // Notice // NVIDIA Corporation and its licensors retain all intellectual property and // proprietary rights in and to this software and related documentation...
jjuiddong/KarlSims
SampleFramework/renderer/src/RendererTextureDesc.cpp
C++
mit
2,787
var request = require('request'), mongoose = require('mongoose'), util = require('util'), url = require('url'), helpers = require('./helpers'), sync = require('./sync') // turn off request pooling request.defaults({ agent:false }) // cache elasticsearch url options for elmongo.search() to use var ...
regini/inSquare
inSquareBackend/cloud.insquare/node_modules/elmongo/lib/elmongo.js
JavaScript
mit
5,351
/** * Copyright 2015 Telerik AD * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
assunluis80/Web-Starter-Template
assets/scripts/vendors/kendo_ui/cultures/kendo.culture.qut.js
JavaScript
mit
3,281
using System; using System.Collections.Generic; using System.Text; using FlatRedBall; using FlatRedBall.Gui; using FlatRedBall.AI.Pathfinding; #if FRB_MDX using Color = System.Drawing.Color; #else using Color = Microsoft.Xna.Framework.Graphics.Color; #endif using CameraPropertyGrid = EditorObjects.Gui.CameraPropert...
GorillaOne/FlatRedBall
FRBDK/AIEditor/AIEditor/AIEditor/Gui/GuiData.cs
C#
mit
7,748
// flow-typed signature: 573c576fe34eb3c3c65dd7a9c90a46d2 // flow-typed version: b43dff3e0e/http-errors_v1.x.x/flow_>=v0.25.x declare module 'http-errors' { declare class SpecialHttpError extends HttpError { constructor(): SpecialHttpError; } declare class HttpError extends Error { expose: bool; mess...
conveyal/scenario-editor
flow-typed/npm/http-errors_v1.x.x.js
JavaScript
mit
2,439
using System; namespace Microsoft.eShopOnContainers.Services.Catalog.API.Model { public class CatalogItem { public int Id { get; set; } public string Name { get; set; } public string Description { get; set; } public decimal Price { get; set; } public string PictureU...
oferns/eShopOnContainers
src/Services/Catalog/Catalog.API/Model/CatalogItem.cs
C#
mit
593
require 'cgi' require 'nkf' class Mechanize::Util # default mime type data for Page::Image#mime_type. # You can use another Apache-compatible mimetab. # mimetab = WEBrick::HTTPUtils.load_mime_types('/etc/mime.types') # Mechanize::Util::DefaultMimeTypes.replace(mimetab) DefaultMimeTypes = WEBrick::HTTPUti...
eligoenergy/mechanize
lib/mechanize/util.rb
Ruby
mit
4,585
require 'english/class' class English # = Noun Number Inflections # # This module provides english singular <-> plural noun inflections. module Inflect @singular_of = {} @plural_of = {} @singular_rules = [] @plural_rules = [] # This class provides the DSL for creating inflections, you c...
rubygengo/english
lib/english/inflect.rb
Ruby
mit
9,263
var PixiText = require('../../lib/pixi/src/core/text/Text'), utils = require('../core/utils'), math = require('../../lib/pixi/src/core/math'), Sprite = require('../display/Sprite'), CONST = require('../core/const'); function Text(text, style, resolution){ this._init(text, style, resolution); } Tex...
TarentolaDigital/perenquen
src/display/Text.js
JavaScript
mit
13,176
/** * A wrapper around JSLint to drop things into the console * * Copyright (C) 2011 Nikolay Nemshilov */ var RightJS = require('./right-server.js'); var JSLint = require('./jslint').JSLINT; var fs = require('fs'); exports.Linter = new RightJS.Class({ extend: { Options: { debug: false, // no d...
rightjs/rightjs-ui
util/linter.js
JavaScript
mit
2,541
# coding=utf-8 import pygame import pygame.locals class Board(object): """ Plansza do gry. Odpowiada za rysowanie okna gry. """ def __init__(self, width, height): """ Konstruktor planszy do gry. Przygotowuje okienko gry. :param width: szerokość w pikselach ...
roninek/python101
docs/pygame/life/code1a.py
Python
mit
5,039
using System.Linq.Expressions; using System.Collections.Generic; namespace Bermuda.ExpressionGeneration { public partial class ValueExpression : ExpressionTreeBase { public long Value { get; private set; } public ValueExpression(long value) { Value = value; ...
melnx/Bermuda
Bermuda.ExpressionGenerator/QL/ValueExpression.cs
C#
mit
730
// String literal types are only valid in overload signatures function foo(x: any); function foo(x: 'hi') { } class C { foo(x: string); foo(x: 'hi') { } } interface I { (x: 'a'); (x: 'hi'); foo(x: 'a', y: 'a'); foo(x: 'hi', y: 'hi'); } var a: { (x: 'hi'); (x: 'a'); foo(x: 'hi'); ...
Pajn/prettier
tests/typescript/conformance/types/objectTypeLiteral/callSignatures/stringLiteralTypesInImplementationSignatures2.ts
TypeScript
mit
395
""" File-based Checkpoints implementations. """ import os import shutil from tornado.web import HTTPError from .checkpoints import ( Checkpoints, GenericCheckpointsMixin, ) from .fileio import FileManagerMixin from IPython.utils import tz from IPython.utils.path import ensure_dir_exists from IPython.utils.py...
wolfram74/numerical_methods_iserles_notes
venv/lib/python2.7/site-packages/IPython/html/services/contents/filecheckpoints.py
Python
mit
6,954
import React, { PropTypes } from 'react' import ActionDelete from 'material-ui/svg-icons/action/delete' import { colors } from '/styles' import moduleStyles from '/styles/fileTree' const RemoveBtn = ({ onClick }) => ( <ActionDelete onClick={onClick} style={moduleStyles.listIcon.base} ...
heshihao0813/registerScan
src/components/fileTree/RemoveBtn.js
JavaScript
mit
426
// Source : https://leetcode.com/problems/longest-substring-without-repeating-characters/ // Author : codeyu // Date : 2016-09-20 /********************************************************************************** * * Given a string, find the length of the longest substring without repeating characters. * * Examp...
AzureLocalizationTeam/leetcode
Algorithms/LengthOfLongestSubstring.cs
C#
mit
1,408
using System.Collections.ObjectModel; namespace SimpleBackgroundUploadWebAPI.Areas.HelpPage.ModelDescriptions { public class ComplexTypeModelDescription : ModelDescription { public ComplexTypeModelDescription() { Properties = new Collection<ParameterDescription>(); } ...
dannycabrera/SimpleBackgroundUpload
SimpleBackgroundUploadWebAPI/SimpleBackgroundUploadWebAPI/Areas/HelpPage/ModelDescriptions/ComplexTypeModelDescription.cs
C#
mit
402
#require File.dirname(__FILE__) + '/formats/email' module DataMapper module Validate ## # # @author Guy van den Berg # @since 0.9 class CustomValidator < GenericValidator def initialize(field_name, options = {}, &b) #super(field_name, options) #@field_name, @options = fie...
kad3nce/collective
gems/gems/dm-validations-0.9.5/lib/dm-validations/custom_validator.rb
Ruby
mit
2,225
#!/usr/bin/ruby require "fileutils" require 'json' require_relative "BibleReader.rb" reader = BibleReader.new translation_names = ['개역개정', '새번역', 'NIV']#BibleInfo.translation_name_to_code.keys translation_names.each do |translation_name| translation_code = BibleInfo.translation_name_to_code[translation_name] Bibl...
nofearbutlove/bible-clipper
BibleCroller.rb
Ruby
mit
976
<?php /** * TOP API: taobao.hotel.order.face.deal request * * @author auto create * @since 1.0, 2013-09-13 16:51:03 */ class Taobao_Request_HotelOrderFaceDealRequest { /** * 酒店订单oid **/ private $oid; /** * 操作类型,1:确认预订,2:取消订单 **/ private $operType; /** * 取消订单时的取消原因备注信息 **/ private $reasonText;...
musicsnap/LearnCode
php/code/yaf/application/library/Taobao/Request/HotelOrderFaceDealRequest.php
PHP
mit
1,971
import { Observable } from './observable' export default function drop(count, source) { return Observable(add => { let dropped = 0 return source.subscribe((val, name) => { if (dropped++ >= count) add(val, name) }) }) }
AlexGalays/dompteuse
src/observable/drop.js
JavaScript
mit
244
package schoolprojects; import java.util.Random; import java.util.Scanner; /** * Piedra, papel o tijera es un juego infantil. * Un juego de manos en el cual existen tres elementos. * La piedra que vence a la tijera rompiéndola; la tijera que vencen al papel cortándolo; * y el papel que vence a la piedra envolv...
velikGeorgiev/School
PRG/PiedraPapelTijera/Juego.java
Java
mit
5,080
"""Support for monitoring emoncms feeds.""" from __future__ import annotations from datetime import timedelta from http import HTTPStatus import logging import requests import voluptuous as vol from homeassistant.components.sensor import ( PLATFORM_SCHEMA, SensorDeviceClass, SensorEntity, SensorState...
rohitranjan1991/home-assistant
homeassistant/components/emoncms/sensor.py
Python
mit
8,487
<?php /* * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS B...
prolic/DoctrineMongoODMModule
tests/DoctrineMongoODMModuleTest/Doctrine/ConfigurationFactoryTest.php
PHP
mit
4,440
import React, { Component } from 'react' import { FlexGrid, Content, Container, AdminItemsViewTable, Table, Button } from 'components' import { AddItemAboutContainer, AddItemPhotoContainer, SpecialSetupContainer } from 'containers' import { adminLink } from 'config' import s from './AdminItemsView.sass' c...
expdevelop/ultrastore
src/components/AdminItemsView/AdminItemsView.js
JavaScript
mit
3,762
package main import ( "reflect" "strconv" "unsafe" "github.com/STNS/STNS/stns" "github.com/STNS/libnss_stns/libstns" ) /* #include <grp.h> #include <sys/types.h> */ import "C" type Group struct { grp *C.struct_group result **C.struct_group } func (s Group) Set(groups stns.Attributes) int { for n, g := r...
STNS/libnss_stns
nss/group.go
GO
mit
1,815
using System; using System.Collections.Generic; using System.Text; using Microsoft.Win32; namespace NetOffice.DeveloperToolbox.Utils.Registry { public class UtilsRegistryEntry { #region Fields private UtilsRegistryKey _parent; private string _valueName; ...
NetOfficeFw/NetOffice
Toolbox/Toolbox/Utils/Registry/UtilsRegistryEntry.cs
C#
mit
6,140
import { expect } from 'chai' import browser from '../../src/util/browser' describe('util (node)', () => { describe('browser', () => { it('is false', () => { expect(browser).to.be.false }) }) })
reactjs/react-a11y
test/node/util.js
JavaScript
mit
214
// Seriously awesome GLSL noise functions. (C) Credits and kudos go to // Copyright (C) Stefan Gustavson, Ian McEwan Ashima Arts // MIT License. define(function(require, exports){ exports.permute1 = function(x){ return mod((34.0 * x + 1.0) * x, 289.0) } exports.permute3 = function(x){ return mod((34.0 * x + 1....
teem2/dreem2.1
core/gl/glnoise.js
JavaScript
mit
11,369
var $ = require('jquery'); var keymaster = require('keymaster'); var ChartEditor = require('./component-chart-editor.js'); var DbInfo = require('./component-db-info.js'); var AceSqlEditor = require('./component-ace-sql-editor.js'); var DataGrid = require('./component-data-grid.js'); var QueryEditor = function () { ...
l371559739/sqlpad
client-js/query-editor.js
JavaScript
mit
6,203
package PracticeLeetCode; import java.util.HashSet; import java.util.LinkedList; import java.util.Queue; import java.util.Set; public class _127WordLadder { psvm }
darshanhs90/Java-InterviewPrep
src/PracticeLeetCode/_127WordLadder.java
Java
mit
169
import glob import logging import os import subprocess from plugins import BaseAligner from yapsy.IPlugin import IPlugin from assembly import get_qual_encoding class Bowtie2Aligner(BaseAligner, IPlugin): def run(self): """ Map READS to CONTIGS and return alignment. Set MERGED_PAIR to True ...
levinas/assembly
lib/assembly/plugins/bowtie2.py
Python
mit
2,404
namespace EventCloud.Events.Dtos { public class GetEventListInput { public bool IncludeCanceledEvents { get; set; } } }
aspnetboilerplate/sample-eventcloud
mvc-angularjs/src/EventCloud.Application/Events/Dtos/GetEventListInput.cs
C#
mit
142
// # Frontend Route tests // As it stands, these tests depend on the database, and as such are integration tests. // Mocking out the models to not touch the DB would turn these into unit tests, and should probably be done in future, // But then again testing real code, rather than mock code, might be more useful... con...
JohnONolan/Ghost
test/regression/site/frontend_spec.js
JavaScript
mit
32,924
import { browser, by, element } from 'protractor'; describe('App', () => { beforeEach(() => { // change hash depending on router LocationStrategy browser.get('/#/home'); }); it('should have a title', () => { let subject = browser.getTitle(); let result = 'Chroma An Interactive Palette tool'; ...
andalex/Chroma
src/app/sidepanel/side-panel.e2e.ts
TypeScript
mit
564
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
oliviertassinari/material-ui
packages/mui-icons-material/lib/ScreenLockLandscapeOutlined.js
JavaScript
mit
742
using System; using System.Collections.Concurrent; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Net; using System.Net.Http; using System.Net.Http.Formatting; using System.Web.Http; using Umbraco.Core; using Umbraco.Core.Logging; using Umbraco.Core.Models; u...
base33/Umbraco-CMS
src/Umbraco.Web/Trees/ContentTreeControllerBase.cs
C#
mit
18,998
/*! * iScroll v4.1.8 ~ Copyright (c) 2011 Matteo Spinelli, http://cubiq.org * Released under MIT license, http://cubiq.org/license */ (function(){ var m = Math, vendor = (/webkit/i).test(navigator.appVersion) ? 'webkit' : (/firefox/i).test(navigator.userAgent) ? 'Moz' : 'opera' in window ? 'O' : '', // Brows...
brunokoga/pathfinder-markdown
prd_original/include/iscroll.js
JavaScript
mit
32,876
<?php /** * Part of the Fuel framework. * * @package Fuel * @version 1.6 * @author Fuel Development Team * @license MIT License * @copyright 2010 - 2013 Fuel Development Team * @link http://fuelphp.com */ namespace Fuel\Core; /** * The Arr class provides a few nice functions for making ...
dailenearanas/iJMC-WebApp
fuel/core/classes/arr.php
PHP
mit
25,244
<?php /* * Created by tpay.com. * Date: 19.06.2017 * Time: 11:13 */ namespace tpayLibs\src\_class_tpay\Validators\PaymentTypes; use tpayLibs\src\_class_tpay\Validators\PaymentTypesInterface; use tpayLibs\src\Dictionaries\Payments\CardFieldsDictionary; class PaymentTypeCard implements PaymentTypesInterface { ...
tpaycom/transferuj
tpayLibs/src/_class_tpay/Validators/PaymentTypes/PaymentTypeCard.php
PHP
mit
530
from __future__ import unicode_literals import os import os.path import subprocess from pre_commit.util import cmd_output class PrefixedCommandRunner(object): """A PrefixedCommandRunner allows you to run subprocess commands with comand substitution. For instance: PrefixedCommandRunner('/tmp/foo...
barrysteyn/pre-commit
pre_commit/prefixed_command_runner.py
Python
mit
1,661
class Child include Mongoid::Document include Mongoid::Timestamps field :name, type: String belongs_to :parent, optional: true end
monkbroc/rails_admin_import
spec/dummy_app/app/mongoid/child.rb
Ruby
mit
140
using System; using System.Text; using ECommon.Components; using ECommon.Remoting; using ECommon.Serializing; using EQueue.Protocols; using EQueue.Protocols.Brokers; using EQueue.Protocols.Brokers.Requests; using EQueue.Protocols.NameServers.Requests; using EQueue.Utils; namespace EQueue.NameServer.Request...
tangxuehua/equeue
src/EQueue/NameServer/RequestHandlers/SetQueueConsumerVisibleForClusterRequestHandler.cs
C#
mit
1,757
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using LCC.ControlesLCCGestion.filtros; namespace LCC.WebG...
pacoferre/Dosconf
Frontend/PROT/Search/FiltroPresupuesto.ascx.cs
C#
mit
1,367
""" Python Blueprint ================ Does not install python itself, only develop and setup tools. Contains pip helper for other blueprints to use. **Fabric environment:** .. code-block:: yaml blueprints: - blues.python """ from fabric.decorators import task from refabric.api import run, info from refa...
gelbander/blues
blues/python.py
Python
mit
997
<?php namespace Alcodo\AsyncCss\Commands; use Alcodo\AsyncCss\Cache\CssKeys; use Illuminate\Console\Command; class Show extends Command { /** * The name and signature of the console command. * * @var string */ protected $signature = 'alcodo:asynccss:show'; /** * The console comm...
alcodo/async-css
Commands/Show.php
PHP
mit
1,079
#!/usr/bin/env ruby $:.unshift File.expand_path('../../../lib', __FILE__) $stdout.sync = true require 'philotic' require 'awesome_print' class NamedQueueConsumer < Philotic::Consumer # subscribe to an existing named queue subscribe_to :test_queue # use acknowledgements auto_acknowledge # REQUEUE the mess...
nkeyes/philotic
examples/subscribing/consumer.rb
Ruby
mit
1,218
#include "arrow.h" /** * @brief Arrow::Arrow */ Arrow::Arrow() : Shape(SHAPES::ARROW) { } /** * @brief Arrow::Arrow * @param col Colour of the new object * @param pos Starting point for the new object */ Arrow::Arrow(QColor col, QPoint pos) : Shape(SHAPES::ARROW, col, pos) { } /** * @brief Arrow::draw * Draw...
NFCSKL/ViAn
ViAn/Video/shapes/arrow.cpp
C++
mit
1,054
const request = require('request-promise'); const oauth = require('./config').auth; const rootUrl = 'https://api.twitter.com/1.1'; let allItems = []; /* API methods */ const API = { /** * Search for tweets * @param options {Object} Options object containing: * - text (Required) : String * - co...
raulrene/Twitter-ContestJS-bot
api-functions.js
JavaScript
mit
6,401