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
/* * //****************************************************************** * // * // Copyright 2017 Samsung Electronics All Rights Reserved. * // * //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= * // * // Licensed under the Apache License, Version 2.0 (the "License"); * // you may not use thi...
JunhwanPark/TizenRT
external/iotivity/iotivity_1.3-rel/cloud/dashboard/src/Client.js
JavaScript
apache-2.0
7,702
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
didiez/keycloak
saml-core/src/main/java/org/keycloak/saml/processing/core/util/XMLSignatureUtil.java
Java
apache-2.0
29,728
package com.navercorp.pinpoint.web.filter; import com.navercorp.pinpoint.common.service.DefaultServiceTypeRegistryService; import com.navercorp.pinpoint.common.service.ServiceTypeRegistryService; import com.navercorp.pinpoint.common.trace.ServiceType; import com.navercorp.pinpoint.common.bo.SpanBo; import org.junit.As...
gspandy/pinpoint
web/src/test/java/com/navercorp/pinpoint/web/filter/LinkFilterTest.java
Java
apache-2.0
3,898
from queue import LifoQueue, Queue import signal from threading import current_thread, Lock, main_thread from app.util import app_info, log, process_utils from app.util.singleton import Singleton class UnhandledExceptionHandler(Singleton): """ This class implements functionality to catch and log exceptions i...
nickzuber/ClusterRunner
app/util/unhandled_exception_handler.py
Python
apache-2.0
10,423
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; class AddForeignKeysToVrMenuTranslationsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('vr_menu_translations', function(Blueprint $table) { $ta...
RamintaRam/atrask_vr
database/migrations/2017_05_23_080810_add_foreign_keys_to_vr_menu_translations_table.php
PHP
apache-2.0
953
/* * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); ...
greg-dove/flex-falcon
flex-compiler-oem/src/main/java/flex2/linker/LinkerConfiguration.java
Java
apache-2.0
4,562
import logging import os import random import luigi.hadoop import luigi.hdfs logger = logging.getLogger('luigi-interface') def fix_paths(job): """Coerce input arguments to use temporary files when used for output. Return a list of temporary file pairs (tmpfile, destination path) and a list of arguments...
mortardata/luigi
luigi/hadoop_jar.py
Python
apache-2.0
2,852
package com.aloeapps.common.repository; import java.util.List; import org.springframework.data.repository.PagingAndSortingRepository; import com.aloeapps.common.bean.User; public interface UserRepository extends PagingAndSortingRepository<User, String> { public List<User> findAll(); public User findByUsernam...
pedrazamiguez/aloe-startup-project
src/main/java/com/aloeapps/common/repository/UserRepository.java
Java
apache-2.0
344
# # Copyright 2008-2010 Amazon.com, Inc. or its affiliates. All Rights Reserved. require 'openssl' require 'base64' require 'time' module Amazon module Coral # Performs AWS V2 signatures on QueryStringMap objects. class V2SignatureHelper def initialize(aws_access_key_id, aws_secret_key) @aw...
bizo/aws-tools
emr/elastic-mapreduce-ruby-20130708/amazon/coral/v2signaturehelper.rb
Ruby
apache-2.0
2,012
/* * Copyright (C) 2008 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 or agreed to ...
lossyrob/uzaygezen
uzaygezen-core/src/main/java/com/google/uzaygezen/core/BitVectorMath.java
Java
apache-2.0
1,730
package edu.harvard.iq.dataverse.externaltools; import edu.harvard.iq.dataverse.DataFile; import edu.harvard.iq.dataverse.DataTable; import edu.harvard.iq.dataverse.authorization.users.ApiToken; import java.util.ArrayList; import java.util.List; import javax.json.Json; import javax.json.JsonObjectBuilder; import stati...
JayanthyChengan/dataverse
src/test/java/edu/harvard/iq/dataverse/externaltools/ExternalToolServiceBeanTest.java
Java
apache-2.0
9,867
/* Copyright (c) 2015 VMware, Inc. 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. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
kristinn/govmomi
govc/vapp/power.go
GO
apache-2.0
2,439
/* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apa...
yuyupapa/OpenSource
scouter.client/src/scouter/client/popup/ObjectPropertiesDialog.java
Java
apache-2.0
9,185
// Copyright 2016 The Go 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 dep import ( "fmt" "os" "path/filepath" "sort" "sync" "github.com/golang/dep/gps" "github.com/golang/dep/gps/pkgtree" "github.com/golang/dep/g...
kargakis/test-infra
vendor/github.com/golang/dep/project.go
GO
apache-2.0
9,833
/* * Copyright 2015-present Facebook, 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 or...
hgl888/buck
test/com/facebook/buck/cxx/CxxPreprocessAndCompileIntegrationTest.java
Java
apache-2.0
12,907
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0; you may not use this file except in compliance with the Elastic License * 2.0. */ package org.elasticsearch.xpack.ql.querydsl.query; import org.elas...
ern/elasticsearch
x-pack/plugin/ql/src/main/java/org/elasticsearch/xpack/ql/querydsl/query/MultiMatchQuery.java
Java
apache-2.0
4,197
// ----------------------------------------------------------------------- // <copyright file="HttpMessageExtensions.cs" company="OSharp开源团队"> // Copyright (c) 2014-2015 OSharp. All rights reserved. // </copyright> // <site>http://www.osharp.org</site> // <last-editor>郭明锋</last-editor> // <last-date>2015-10-...
vebin/osharp-1
src/OSharp.Web.WebApi/Extensions/HttpMessageExtensions.cs
C#
apache-2.0
8,265
package fs import ( "github.com/opencontainers/runc/libcontainer/cgroups" "github.com/opencontainers/runc/libcontainer/cgroups/fscommon" "github.com/opencontainers/runc/libcontainer/configs" ) type RdmaGroup struct{} func (s *RdmaGroup) Name() string { return "rdma" } func (s *RdmaGroup) Apply(path string, _ *c...
opencontainers/runc
libcontainer/cgroups/fs/rdma.go
GO
apache-2.0
604
# -*- coding: utf-8 -*- #----------------------------------------------------------------------------- # Copyright (c) 2014, Ravi Sharma # # Distributed under the terms of the Lesser GNU General Public License (LGPL) #----------------------------------------------------------------------------- ''' Created on Jan 15, 2...
sahilsehgal81/python-api-library
src/kayako/objects/knowledgebase/knowledgebase_category.py
Python
bsd-2-clause
6,763
""" Comparison of Lomb-Scargle Methods ---------------------------------- This shows a comparison of the Lomb-Scargle periodogram and the Modified Lomb-Scargle periodogram for a single star, along with the multi-term results. """ # Author: Jake VanderPlas # License: BSD # The figure produced by this code is published...
nhuntwalker/astroML
book_figures/chapter10/fig_LS_comparison.py
Python
bsd-2-clause
2,128
# frozen_string_literal: true module RuboCop module Cop module Performance # This cop identifies places where `Hash#merge!` can be replaced by # `Hash#[]=`. # You can set the maximum number of key-value pairs to consider # an offense with `MaxKeyValuePairs`. # # @example ...
konqui/brew
Library/Homebrew/vendor/bundle/ruby/2.6.0/gems/rubocop-performance-1.9.1/lib/rubocop/cop/performance/redundant_merge.rb
Ruby
bsd-2-clause
6,079
cask :v1 => 'macdrops' do version '1.1' sha256 'c91f10418d8dd88f395603f9b824fc1ef319ec91affe2326cff5bce7f2bd63bb' url "http://interfacelift.com/apps/macdrops/v1/Macdrops_v#{version}.dmg" homepage 'http://interfacelift.com/apps/macdrops/v1' license :unknown # todo: improve this machine-generated value a...
andyshinn/homebrew-cask
Casks/macdrops.rb
Ruby
bsd-2-clause
354
class Gocr < Formula desc "Optical Character Recognition (OCR), converts images back to text" homepage "https://wasd.urz.uni-magdeburg.de/jschulen/ocr/" url "https://wasd.urz.uni-magdeburg.de/jschulen/ocr/gocr-0.52.tar.gz" sha256 "df906463105f5f4273becc2404570f187d4ea52bd5769d33a7a8661a747b8686" revision 1 ...
JCount/homebrew-core
Formula/gocr.rb
Ruby
bsd-2-clause
1,761
<?php /** * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later * */ namespace Piwik\Plugins\UserSettings\Columns; use Piwik\Common; use Piwik\Plugin\Dimension\VisitDimension; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; us...
KingNoosh/Teknik
stats/plugins/UserSettings/Columns/PluginSilverlight.php
PHP
bsd-3-clause
795
// nnet2bin/nnet-am-shrink.cc // Copyright 2012 Johns Hopkins University (author: Daniel Povey) // See ../../COPYING for clarification regarding multiple authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtai...
ypkang/djinn
tonic-suite/asr/src/nnet2bin/nnet-am-shrink.cc
C++
bsd-3-clause
3,229
module Intrigue module Handler class Base def self.inherited(base) HandlerFactory.register(base) end end end end
CaledoniaProject/intrigue-core
lib/handlers/base.rb
Ruby
bsd-3-clause
133
/* * 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 o...
alameluchidambaram/CONNECT
Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/orchestration/BaseOrchestrationContextBuilder.java
Java
bsd-3-clause
2,628
////////////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2014-2015, Egret Technology Inc. // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are me...
wisdomsword/egret-core
src/extension/gui/components/HScrollBar.ts
TypeScript
bsd-3-clause
5,400
/** * this model contains information about the organization for * the current user and the users who are inside the organizacion. * * Attributes: * * - users: collection with user instances whithin the organization (see cdb.admin.Organization.Users * * */ cdb.admin.Organization = cdb.core.Model.extend({ u...
future-analytics/cartodb
lib/assets/javascripts/cartodb/models/organization.js
JavaScript
bsd-3-clause
3,194
from __future__ import division, absolute_import, print_function import warnings import numpy.core.numeric as _nx from numpy.core.numeric import ( asarray, zeros, outer, concatenate, isscalar, array, asanyarray ) from numpy.core.fromnumeric import product, reshape from numpy.core import vstack, atleast_3d _...
WillieMaddox/numpy
numpy/lib/shape_base.py
Python
bsd-3-clause
25,222
/* * Copyright (c) 2012 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of the funct...
rallylee/gem5
src/arch/x86/interrupts.hh
C++
bsd-3-clause
8,657
module Less # # Functions useable from within the style-sheet go here # module Functions def rgb *rgb rgba rgb, 1.0 end def hsl *args hsla *[args, 1.0].flatten end # # RGBA to Node::Color # def rgba *rgba Node::Color.new *rgba.flatten end # # ...
nithinstany/peprime
vendor/gems/less-1.2.20/lib/less/engine/nodes/function.rb
Ruby
bsd-3-clause
1,990
require "#{File.dirname __FILE__}/../../../spec_helper" require "#{File.dirname __FILE__}/../fixtures/classes" shared :unboundmethod_to_s do |cmd| describe "UnboundMethod##{cmd}" do before :each do @from_module = UnboundMethodSpecs::Methods.instance_method(:from_mod) @from_method = UnboundMethodSpec...
chad/rubinius
spec/frozen/1.8/core/unboundmethod/shared/to_s.rb
Ruby
bsd-3-clause
1,011
// Copyright 2014 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "public/web/WebDocument.h" #include "core/CSSPropertyNames.h" #include "core/HTMLNames.h" #include "core/dom/NodeComputedStyle.h" #include "core...
axinging/chromium-crosswalk
third_party/WebKit/Source/web/tests/WebDocumentTest.cpp
C++
bsd-3-clause
12,455
/* * 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) * * Copyright (c) 2011 Helge Bahmann * Copyright (c) 2013 Tim Blechmann * Copyright (c) 2014 Andrey Semashev */ /*! * \file atomic/fences.hpp * * This ...
lucadelu/PDAL
vendor/pdalboost/boost/atomic/fences.hpp
C++
bsd-3-clause
1,626
// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/runtime/browser/runtime_javascript_dialog_manager.h" #include <string> #include "components/url_formatter/url_formatter.h" #include "co...
marcuspridham/crosswalk
runtime/browser/runtime_javascript_dialog_manager.cc
C++
bsd-3-clause
2,372
package main import ( "math/rand" "github.com/fogleman/gg" ) func CreatePoints(n int) []gg.Point { points := make([]gg.Point, n) for i := 0; i < n; i++ { x := 0.5 + rand.NormFloat64()*0.1 y := x + rand.NormFloat64()*0.1 points[i] = gg.Point{x, y} } return points } func main() { const S = 1024 const P ...
whosonfirst/go-whosonfirst-utils
vendor/src/github.com/fogleman/gg/examples/scatter.go
GO
bsd-3-clause
1,307
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" namespace chromeos { namespace input_method { MockInputMethodManager::Mo...
ondra-novak/chromium.src
chrome/browser/chromeos/input_method/mock_input_method_manager.cc
C++
bsd-3-clause
5,672
package edu.gemini.qpt.ui.util; import static edu.gemini.qpt.core.Variant.Flag.BACKGROUND_CNS; import static edu.gemini.qpt.core.Variant.Flag.BLOCKED; import static edu.gemini.qpt.core.Variant.Flag.CC_UQUAL; import static edu.gemini.qpt.core.Variant.Flag.CONFIG_UNAVAILABLE; import static edu.gemini.qpt.core.Variant.Fl...
arturog8m/ocs
bundle/edu.gemini.qpt.client/src/main/java/edu/gemini/qpt/ui/util/CandidateDecorator.java
Java
bsd-3-clause
4,273
using System; namespace NServiceKit.DataAnnotations { /// <summary>Attribute for alias.</summary> [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Class | AttributeTargets.Struct)] public class AliasAttribute : Attribute { /// <summary>Gets or sets the name.</summary...
NServiceKit/NServiceKit
src/NServiceKit.Interfaces/DataAnnotations/AliasAttribute.cs
C#
bsd-3-clause
653
import numpy as np import glob dir2data = "/Volumes/HGST5/APS1504_AlCu/recon/D_Coarsening_2/recon_2/" prefix = "recon_" dir2out = "/Volumes/HGST5/APS1504_AlCu/recon/D_Coarsening_2/combine_test/" flist = glob.glob(dir2data+prefix+"*.bin") def parse_filename(filename): t, z = filename.split('.')[0].split('_')[-...
decarlof/timbir
doc/collection/APS_32ID/non-interlaced/combine_bin.py
Python
bsd-3-clause
889
/* * Copyright (C) 2012 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: * 1. Redistributions of source code must retain the above copyright * notice, this list of condition...
windyuuy/opera
chromium/src/third_party/WebKit/Source/modules/mediastream/RTCStatsResponse.cpp
C++
bsd-3-clause
2,278
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2015 Ben Vanik. All rights reserved. ...
sephiroth99/xenia
src/xenia/cpu/compiler/passes/memory_sequence_combination_pass.cc
C++
bsd-3-clause
4,525
// RUN: %clangxx_tsan -O1 --std=c++11 %s -o %t && %deflake %run %t 2>&1 | FileCheck %s #include "custom_mutex.h" // Test that failed TryLock does not induce parasitic synchronization. Mutex mu(true, 0); long data; void *thr(void *arg) { mu.Lock(); data++; mu.Unlock(); mu.Lock(); barrier_wait(&barrier); b...
youtube/cobalt
third_party/llvm-project/compiler-rt/test/tsan/custom_mutex1.cc
C++
bsd-3-clause
853
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/synchronization/waitable_event.h" #include "base/utf_string_conversions.h" #include "chrome/browser/intents/register_intent_handler_inf...
keishi/chromium
chrome/browser/intents/register_intent_handler_infobar_delegate_unittest.cc
C++
bsd-3-clause
2,699
var cdb = require('cartodb.js-v3'); var _ = require('underscore-cdb-v3'); /** * Model for an individual WMS/WMTS layer. */ module.exports = cdb.core.Model.extend({ defaults: { state: 'idle', //, saving, saveDone, saveFail layer: undefined // set after saveDone }, canSave: function(baseLayers) { r...
codeandtheory/cartodb
lib/assets/javascripts/cartodb/common/dialogs/add_custom_basemap/wms/layer_model.js
JavaScript
bsd-3-clause
2,510
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/display/shared_display_edge_indicator.h" #include "ash/shell.h" #include "ash/shell_window_ids.h" #include "ash/wm/coordinate_conversio...
was4444/chromium.src
ash/display/shared_display_edge_indicator.cc
C++
bsd-3-clause
3,615
<?php $lang["reports_all"] = "Todo"; $lang["reports_all_time"] = "Todos"; $lang["reports_categories"] = "Categorías"; $lang["reports_categories_summary_report"] = "Reporte de Resumen de Categorías"; $lang["reports_category"] = "Categoría"; $lang["reports_comments"] = "Comentarios"; $lang["reports_count"] = "Cuenta"; ...
bravokeyl502/opensourcepos
application/language/es/reports_lang.php
PHP
mit
5,033
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace spec\Sylius\Bundle\ThemeBundle\Translation\Finder; use PhpSpec\Ob...
rainlike/justshop
vendor/sylius/sylius/src/Sylius/Bundle/ThemeBundle/spec/Translation/Finder/OrderingTranslationFilesFinderSpec.php
PHP
mit
1,448
#!/usr/bin/env python """ Sincronizarea a doua directoare """ import os import time import shutil # pylint: disable=too-many-locals # pylint: disable=global-statement OLD_FILESET = dict() def copyfile(src, dest): """ Copiaza fisiere cu metadate """ destinatie = os.path.split(dest) dest = destinatie[0] ...
c-square/python-lab
python/solutii/iulian_bute/sync.py
Python
mit
2,742
package org.bouncycastle.openpgp.operator.bc; import org.bouncycastle.asn1.nist.NISTNamedCurves; import org.bouncycastle.asn1.x9.X9ECParameters; import org.bouncycastle.bcpg.ECDHPublicBCPGKey; import org.bouncycastle.bcpg.ECSecretBCPGKey; import org.bouncycastle.crypto.AsymmetricBlockCipher; import org.bouncycastle.cr...
sergeypayu/bc-java
pg/src/main/java/org/bouncycastle/openpgp/operator/bc/BcPublicKeyDataDecryptorFactory.java
Java
mit
5,636
using System; using System.Collections.Generic; using System.Reflection; using JetBrains.Annotations; namespace Abp.Modules { /// <summary> /// Used to store all needed information for a module. /// </summary> public class AbpModuleInfo { /// <summary> /// The assembly which contain...
4nonym0us/aspnetboilerplate
src/Abp/Modules/AbpModuleInfo.cs
C#
mit
1,401
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See LICENSE in the project root for license information. using System; using System.Reflection; #if UNITY_EDITOR using UnityEditor; #endif namespace HoloToolkit.Unity { // Base class for show / hide - shows or hides f...
davidezordan/MixedRealitySamples
CubesDemoMRT/Assets/HoloToolkit/Utilities/Scripts/Attributes/ShowIfAttribute.cs
C#
mit
2,808
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ // THIS CODE IS GENERATED - DO NOT MODIFY // See angular/tools/gulp-tasks/cldr/extract.js function plural(n: number...
rkirov/angular
packages/common/locales/en-IE.ts
TypeScript
mit
1,554
<?xml version="1.0" ?><!DOCTYPE TS><TS language="id_ID" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BlackCoin</source> <translation>Tentang BlackCoin</translation> </message> <message> ...
rat4/blackcoin
src/qt/locale/bitcoin_id_ID.ts
TypeScript
mit
111,933
#if UNITY_4_0 || UNITY_4_0_1 || UNITY_4_2 || UNITY_4_3 || UNITY_4_5 || UNITY_4_6 || UNITY_4_7 #define T2U_IS_UNITY_4 #endif #if !UNITY_WEBPLAYER using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Xml.Linq; using UnityEngine; using UnityEditor; namespa...
Densaugeo/GGJ-Heard-Mentality
Heard Mentality/Assets/Tiled2Unity/Scripts/Editor/ImportTiled2Unity.Prefab.cs
C#
mit
23,388
from qtpy.QtCore import QTimer class Spin: def __init__(self, parent_widget, interval=10, step=1): self.parent_widget = parent_widget self.interval, self.step = interval, step self.info = {} def _update(self, parent_widget): if self.parent_widget in self.info: tim...
daodaoliang/qtawesome
qtawesome/animation.py
Python
mit
1,284
require 'spec_helper' describe Match do pending "add some examples to (or delete) #{__FILE__}" end
pavel-anisimov/GoalsPlus
spec/models/match_spec.rb
Ruby
mit
102
'use strict'; angular.module('copayApp.controllers').controller('walletHomeController', function($scope, $rootScope, $timeout, $filter, $modal, $log, notification, txStatus, isCordova, profileService, lodash, configService, rateService, storageService, bitcore, isChromeApp, gettext, gettextCatalog, nodeWebkit, address...
FuzzyHobbit/copay
src/js/controllers/walletHome.js
JavaScript
mit
32,485
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Resources; // 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. [ass...
chrfalch/NControl
NControl/NControl.WP81/Properties/AssemblyInfo.cs
C#
mit
1,441
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports['default'] = { // Options.jsx items_per_page: '/ 쪽', jump_to: '이동하기', page: '', // Pagination.jsx prev_page: '이전 페이지', next_page: '다음 페이지', prev_5: '이전 5 페이지', next_5: '다음 5 페이지', prev_3: '이전 3 페이지', next_3: '...
prodigalyijun/demo-by-antd
node_modules/rc-pagination/lib/locale/ko_KR.js
JavaScript
mit
439
//===--- Driver.cpp - Clang GCC Compatible Driver -------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
abduld/clreflect
extern/llvm/tools/clang/lib/Driver/Driver.cpp
C++
mit
63,596
var path = require('path'); var webpack = require('webpack'); var prodCfg = require('./webpack.prod.config'); Object.assign = require('object-assign'); module.exports = Object.assign(prodCfg, { entry: [ 'webpack-dev-server/client?http://localhost:8080/', 'webpack/hot/only-dev-server', './clien...
kirbyk/isomorphic-redux
webpack.config.js
JavaScript
mit
729
<?php /* * This file is part of the API Platform project. * * (c) Kévin Dunglas <dunglas@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace ApiPlatform\Core\Tests\Fixtures\TestBundle\Do...
soyuka/DunglasApiBundle
tests/Fixtures/TestBundle/Document/CustomActionDummy.php
PHP
mit
1,591
// check rdns against forward // NOTICE: the functionality of this plugin is duplicated by the // FCrDNS plugin. Consider using it instead. This plugin // may be deprecated in the future. // // To achieve the same results using FCrDNS (in addition to // the additional features), set [re...
danucalovj/Haraka
plugins/lookup_rdns.strict.js
JavaScript
mit
6,842
export * from './todo-item.interface';
tarlepp/angular2-firebase-material-demo
src/app/todos/interfaces/index.ts
TypeScript
mit
39
// *********************************************************************** // Copyright (c) 2017 Charlie Poole // // 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, incl...
Suremaker/nunit
src/NUnitFramework/framework/Internal/Commands/EmptyTestCommand.cs
C#
mit
2,035
'use strict'; /** * Module for all communication with LB */ define((require) => { const Util = require('util/util'); const BaseScrobbler = require('scrobbler/base-scrobbler'); const ServiceCallResult = require('object/service-call-result'); const listenBrainzTokenPage = 'https://listenbrainz.org/profile/'; con...
galeksandrp/web-scrobbler
src/core/background/scrobbler/listenbrainz-scrobbler.js
JavaScript
mit
6,314
/* MIT License http://www.opensource.org/licenses/mit-license.php */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const RuntimeModule = require("../RuntimeModule"); /** @typedef {import("../MainTemplate")} MainTemplate */ class StartupEntrypointRuntimeModule extends RuntimeModule { construct...
arvenil/resume
node_modules/webpack/lib/runtime/StartupEntrypointRuntimeModule.js
JavaScript
mit
1,092
using System; using System.Linq; using Dealership.CommandHandlers.Base; using Dealership.Common.Enums; using Dealership.Engine; using Dealership.Factories; namespace Dealership.CommandHandlers { public class RegisterUserCommandHandler : BaseCommandHandler { private const string CanHandleCommandName =...
owolp/Telerik-Academy
Module-2/Design-Patterns/Materials/Dealership-AuthorSolution/Dealership/CommandHandlers/RegisterUserCommandHandler.cs
C#
mit
2,258
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable enable using System; using System.Collections.Immutable; using Microsoft.CodeAnalysis.CodeStyle; using M...
genlu/roslyn
src/Analyzers/Core/Analyzers/UseCoalesceExpression/AbstractUseCoalesceExpressionForNullableDiagnosticAnalyzer.cs
C#
mit
5,692
module.exports=/[\u2FF2\u2FF3]/
marclundgren/mithril-fidm-app
node_modules/gulp-jscs/node_modules/jscs/node_modules/unicode-6.3.0/properties/IDS_Trinary_Operator/regex.js
JavaScript
mit
31
steal("can/view/stache/mustache_core.js", "can/view/parser",function(mustacheCore, parser){ return function(source){ var template = mustacheCore.cleanLineEndings(source); var imports = [], inImport = false, inFrom = false; var keepToken = function(){ return inImport ? false : true; }; var...
beno/canjs
view/stache/intermediate_and_imports.js
JavaScript
mit
1,176
/* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the ""Software""), to deal * in the Software without restric...
kristianolssonadvectas/powerbivisuals
src/Clients/Visuals/cartesian/playChart.ts
TypeScript
mit
73,145
var gulp = require('gulp'); var browserSync = require('browser-sync'); var paths = require('../paths'); // this task utilizes the browsersync plugin // to create a dev server instance // at http://localhost:9000 gulp.task('e2e-serve', ['e2e-build'], function(done) { browserSync({ open: false, port: 9000, ...
Mordred/aurelia-compiler
build/tasks/e2e-serve.js
JavaScript
mit
504
package cucumber.runtime.jruby; import cucumber.api.Scenario; import cucumber.runtime.HookDefinition; import gherkin.TagExpression; import gherkin.formatter.model.Tag; import org.jruby.RubyObject; import java.util.Collection; import java.util.List; import static java.util.Arrays.asList; public class JRubyHookDefini...
VivaceVivo/cucumber-mod-DI
jruby/src/main/java/cucumber/runtime/jruby/JRubyHookDefinition.java
Java
mit
1,460
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
arunetm/ChakraCore_0114
test/Generated/ge.js
JavaScript
mit
33,355
(function() { 'use strict'; /** * @name config * @description config block */ function config($stateProvider) { $stateProvider .state('root.home', { url: '/', views: { '@': { templateUrl: 'src/app/home/home.tpl.html', controller: 'HomeCtrl as ...
lealivran/Moonie
client/src/app/home/home.js
JavaScript
mit
568
// Type definitions for bluebird 2.0.0 // Project: https://github.com/petkaantonov/bluebird // Definitions by: Bart van der Schoor <https://github.com/Bartvds> // Definitions: https://github.com/borisyankov/DefinitelyTyped // ES6 model with generics overload was sourced and trans-multiplied from es6-promises.d.ts // B...
takenet/DefinitelyTyped
bluebird/bluebird.d.ts
TypeScript
mit
40,725
// Flags: --expose-internals 'use strict'; require('../common'); const assert = require('assert'); const { sleep } = require('internal/util'); // Make sure we test 0ms timers, since they would had always wanted to run on // the current tick, and greater than 0ms timers, for scenarios where the // outer timer takes lo...
enclose-io/compiler
lts/test/parallel/test-timers-nested.js
JavaScript
mit
1,406
from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'phase_12/models/bossbotHQ/BossbotGreenRoom_A', 'wantDoors': 1}, 1...
ksmit799/Toontown-Source
toontown/coghq/BossbotCountryClubGreenRoom_Action00.py
Python
mit
2,122
// Time: O(nlogn + n * t), t is the value of target. // Space: O(t) class Solution { public: int combinationSum4(vector<int>& nums, int target) { vector<int> dp(target + 1, 0); dp[0] = 1; sort(nums.begin(), nums.end()); for (int i = 1; i <= target; ++i) { for (int j = ...
yiwen-luo/LeetCode
C++/combination-sum-iv.cpp
C++
mit
466
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.ComponentModel.DataAnnotations.Schema; using System.Runtime.Serialization; namespace Foo { public static class Utils { public static DateTimeOffset ToDTO(DateTime dt) { retur...
gilesbradshaw/breeze.server.net
Tests/Model_NorthwindIB_CF.EF6/OData4Extns.cs
C#
mit
3,373
/**************************************************************************** Copyright (c) 2008-2010 Ricardo Quesada Copyright (c) 2011-2012 cocos2d-x.org Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org Permission is hereby granted, free of charge, to any person obtaining a copy of t...
dios-game/dios-cocos
src/oslibs/cocos/cocos-src/tests/js-tests/src/CocoStudioTest/GUITest/UINodeContainerTest/UINodeContainerTest.js
JavaScript
mit
1,893
module Fastlane module Actions module SharedValues SIGH_PROFILE_PATH = :SIGH_PROFILE_PATH SIGH_PROFILE_PATHS = :SIGH_PROFILE_PATHS SIGH_UDID = :SIGH_UDID # deprecated SIGH_UUID = :SIGH_UUID SIGH_NAME = :SIGH_NAME SIGH_PROFILE_TYPE ||= :SIGH_PROFILE_TYPE end class GetPr...
Econa77/fastlane
fastlane/lib/fastlane/actions/get_provisioning_profile.rb
Ruby
mit
3,605
/*jslint node: true */ "use strict"; module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), bower: { install: { options: { install: true, copy: false, targetDir: './libs', cleanTargetDir: true } }...
Fountaintechies/distance-calculator
Gruntfile.js
JavaScript
mit
3,923
var doc = require('./doc'); var dev = require('./dev'); var build = require('./build'); module.exports = { transformAPIModel:doc.transformAPIModel, updateOwnDependenciesFromLocalRepositories:dev.updateOwnDependenciesFromLocalRepositories, buildDevEnv:dev.buildDevEnv, extractImports:build.extractImports, crea...
damianof/tools
src/index.js
JavaScript
mit
390
var exec = require('child_process').exec, fs = require('fs'), path = require('path'), EventEmitter = require('events').EventEmitter; var temp = require('temp'), tasks = require('./tasks'), Q = require('q'); // Map of extensions to tasks var extensions = { gif: 'GIF', jpg: 'JPEG', jpeg: 'JPEG...
vdhwouter/GameNation
src/main/resources/static/node_modules/pulverizr/lib/job.js
JavaScript
mit
3,488
namespace Nancy.Demo.Authentication.Forms { using System; using System.Dynamic; using Nancy.Authentication.Forms; using Nancy.Extensions; public class MainModule : NancyModule { public MainModule() { Get["/"] = x => { return View["index"...
dbolkensteyn/Nancy
src/Nancy.Demo.Authentication.Forms/MainModule.cs
C#
mit
1,383
/** * Copyright (c) 2010-2019 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */...
TheNetStriker/openhab
bundles/binding/org.openhab.binding.gc100ir/src/main/java/org/openhab/binding/gc100ir/internal/GC100IRActivator.java
Java
epl-1.0
1,448
/* * $RCSfile: JSEditorPlugin.java,v $ * * Copyright 2002 * CH-1700 Fribourg, Switzerland * All rights reserved. * *======================================================================== * Modifications history *======================================================================== * $Log: JSEditorPlugin....
01org/mayloon-portingtool
net.sourceforge.jseditor/src-jseditor/net/sourceforge/jseditor/JSEditorPlugin.java
Java
epl-1.0
3,768
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Text; namespace QSlim.MxKit { internal class MxFace { internal int[] VertexIds; internal MxFace() { VertexIds = new[] {int.MinValue, int.MinValue, int.MinValue}; ...
WCell/WCell
WCell-Terrain/QSlim/MxKit/MxFace.cs
C#
gpl-2.0
1,972
<?php add_action('widgets_init', 'porto_recent_posts_load_widgets'); function porto_recent_posts_load_widgets() { register_widget('Porto_Recent_Posts_Widget'); } class Porto_Recent_Posts_Widget extends WP_Widget { function Porto_Recent_Posts_Widget() { $widget_ops = array('classname' => 'widg...
PongPi/epaper
wp-content/themes/porto/inc/plugins/porto-widgets/widgets/recent_posts.php
PHP
gpl-2.0
6,131
/* * Copyright (C) 2005-2013 Team XBMC * http://xbmc.org * * This Program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * ...
MrMC/mrmc
xbmc/linux/OMXClock.cpp
C++
gpl-2.0
13,556
<?php /** * File containing ServiceContainer class. * * @copyright Copyright (C) eZ Systems AS. All rights reserved. * @license For full copyright and license information view LICENSE file distributed with this source code. */ namespace eZ\Publish\Core\Base; use eZ\Publish\API\Container; use Symfony\Component\Co...
ezecosystem/ezpublish-kernel
eZ/Publish/Core/Base/ServiceContainer.php
PHP
gpl-2.0
6,989
/* * Copyright (C) 2008-2017 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software ...
Effec7/Adamantium
src/server/scripts/EasternKingdoms/ScarletMonastery/boss_headless_horseman.cpp
C++
gpl-2.0
30,920
//--------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // //--------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.Globalization; using System.IO; u...
sjchyy/PzoomProject
sourceCode/wpftoolkit/Toolkit-release/DataGrid/Microsoft/Windows/Controls/ClipboardHelper.cs
C#
gpl-2.0
7,607
// license:BSD-3-Clause // copyright-holders:Dirk Best /*************************************************************************** TRS-80 JV1/3 disk image formats Used by Jeff Vavasour's TRS-80 Emulators Description of JV1: This format has no header or identifying characteristics. It is simply a string of sect...
johnparker007/mame
src/lib/formats/trs80_dsk.cpp
C++
gpl-2.0
13,064
<?php /** * AuthorFacets aspect of the Search Multi-class (Results) * * PHP version 5 * * Copyright (C) Villanova University 2010. * * This program 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 Found...
olli-gold/vufind
module/VuFind/src/VuFind/Search/SolrAuthorFacets/Results.php
PHP
gpl-2.0
2,656
var FormSamples = function () { return { //main function to initiate the module init: function () { // use select2 dropdown instead of chosen as select2 works fine with bootstrap on responsive layouts. $('.select2_category').select2({ placeholder: "Select an o...
kuldeep89/160515
wp-content/themes/ppmlayout/assets/scripts/form-samples.js
JavaScript
gpl-2.0
1,379