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 os from setuptools import setup, find_packages setup( name='django-scrape', version='0.1', author='Luke Hodkinson', author_email='furious.luke@gmail.com', maintainer='Luke Hodkinson', maintainer_email='furious.luke@gmail.com', url='https://github.com/furious-luke/django-scrape', ...
furious-luke/django-scrape
setup.py
Python
bsd-3-clause
990
<?php return [ 'adminEmail' => 'shockedbear@shockedbear.myjino.ru', ];
shockedbear/board
frontend/config/params.php
PHP
bsd-3-clause
75
from __future__ import absolute_import import base64 import json import unittest import urllib import urllib2 import urlparse from celery.exceptions import RetryTaskError from mock import MagicMock as Mock import mock from . import tasks from .conf import settings as mp_settings class TestCase(unittest.TestCase):...
bss/mixpanel-celery
mixpanel/tests.py
Python
bsd-3-clause
7,560
#Copyright ReportLab Europe Ltd. 2000-2004 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/rl_config.py __version__=''' $Id$ ''' __doc__='''Configuration file. You may edit this if you wish.''' allowTableBoundsErrors = 1 # set to 0 to di...
makinacorpus/reportlab-ecomobile
src/reportlab/rl_config.py
Python
bsd-3-clause
10,215
/*================================================================================ Copyright (c) 2009 VMware, 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 ...
mikem2005/vijava
src/com/vmware/vim25/DiagnosticManagerLogCreator.java
Java
bsd-3-clause
2,018
//********************************************************************************************************************* // EthernetIfaceDO.java // // Copyright 2014 ELECTRIC POWER RESEARCH INSTITUTE, INC. All rights reserved. // // PT2 ("this software") is licensed under BSD 3-Clause license. // // Redistribution and u...
epri-dev/PT2
src/main/java/org/epri/pt2/DO/EthernetIfaceDO.java
Java
bsd-3-clause
2,820
package j2x import ( "encoding/json" "fmt" "testing" ) func TestMashalIndent(t *testing.T) { var s = `{ "head":[ "one", 2, true, { "key":"value" } ] }` fmt.Println("\nTestMashalIndent ... list :", s) v, err := MarshalIndent(s," "," ") if err != nil { fmt.Println("err:",err.Error()) } fmt.Printf("v:\n%s...
clbanning/j2x
j2xindent_test.go
GO
bsd-3-clause
788
package sodium; class LazyCell<A> extends Cell<A> { LazyCell(final Stream<A> event, final Lazy<A> lazyInitValue) { super(event, null); this.lazyInitValue = lazyInitValue; } @Override A sampleNoTrans() { if (value == null && lazyInitValue != null) { value = lazyI...
kevintvh/sodium
java/src/sodium/LazyCell.java
Java
bsd-3-clause
411
import os from google.appengine.api import memcache from google.appengine.ext import webapp from google.appengine.ext.webapp import template from google.appengine.ext.webapp.util import run_wsgi_app from twimonial.models import Twimonial, User from twimonial.ui import render_write import config class HomePage(webap...
livibetter-backup/twimonial
src/index.py
Python
bsd-3-clause
2,779
using HtmlRenderer.TestLib.Dom; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace HtmlRenderer.DomParseTester.DomComparing.ViewModels { public sealed class Comment : CharacterData<ReferenceComment> { public Comment(Context con...
todor-dk/HTML-Renderer
Source/Testing/HtmlRenderer.DomParseTester/DomComparing/ViewModels/Comment.cs
C#
bsd-3-clause
403
// Copyright 2018 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/ash/policy/reporting/arc_app_install_event_logger.h" #include <stdint.h> #include <algorithm> #include <iterator> #include "as...
ric2b/Vivaldi-browser
chromium/chrome/browser/ash/policy/reporting/arc_app_install_event_logger.cc
C++
bsd-3-clause
8,972
<?php namespace CLIFramework\Component\Table; use CLIFramework\Ansi\Colors; class CellAttribute { const ALIGN_RIGHT = 1; const ALIGN_LEFT = 2; const ALIGN_CENTER = 3; const WRAP = 1; const CLIP = 2; const ELLIPSIS = 3; protected $alignment = 2; protected $formatter; protec...
marcioAlmada/CLIFramework
src/CLIFramework/Component/Table/CellAttribute.php
PHP
bsd-3-clause
3,942
/**************************************************************************** * Copyright (c) 2012-2020 by the DataTransferKit authors * * All rights reserved. * * * * This ...
Rombur/DataTransferKit
packages/Interface/src/DTK_DOFMap.hpp
C++
bsd-3-clause
3,843
// // Copyright 2019 The ANGLE 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. // // capture_gles3_params.cpp: // Pointer parameter capture functions for the OpenGL ES 3.0 entry points. #include "libANGLE/capture_gles_2_0_a...
endlessm/chromium-browser
third_party/angle/src/libANGLE/capture_gles_3_0_params.cpp
C++
bsd-3-clause
34,588
#region License // Copyright (c) 2010-2019, Mark Final // 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 // ...
markfinal/BuildAMation
tests/CodeGenTest/bam/Scripts/TestApp.cs
C#
bsd-3-clause
1,985
<?php // # Cancel Invoice Sample // This sample code demonstrate how you can cancel // an invoice. /** @var Invoice $invoice */ $invoice = require 'SendInvoice.php'; use PayPal\Api\Invoice; use PayPal\Api\CancelNotification; try { // ### Cancel Notification Object // This would send a notification to both ...
frankpaul142/aurasur
vendor/paypal/rest-api-sdk-php/sample/invoice/CancelInvoice.php
PHP
bsd-3-clause
1,327
<?php /** * AutomaticUpload.php * * PHP version 5.4+ * * @author Philippe Gaultier <pgaultier@sweelix.net> * @copyright 2010-2014 Sweelix * @license http://www.sweelix.net/license license * @version 1.0.3 * @link http://www.sweelix.net * @category behaviors * @package sweelix.yii2.plupload.beh...
pgaultier/sweelix-yii2-plupload
src/behaviors/AutomaticUpload.php
PHP
bsd-3-clause
19,061
<?php namespace frontend\models; use Yii; use yii\base\Model; use common\models\User; /** * Activation reset request form */ class ActivationCodeResetRequestForm extends Model { // Init Public Constants const STATUS_SUCCESS = 100; const STATUS_ERROR_ACCOUNT_ALREADY_ACTIVATED = 200; const STATUS_ERROR_ACCOUNT_...
microdisk/customre_website
frontend/models/ActivationCodeResetRequestForm.php
PHP
bsd-3-clause
1,755
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_int64_t_malloc_82a.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-82a.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management ...
JianpingZeng/xcc
xcc/test/juliet/testcases/CWE762_Mismatched_Memory_Management_Routines/s03/CWE762_Mismatched_Memory_Management_Routines__delete_int64_t_malloc_82a.cpp
C++
bsd-3-clause
3,366
package org.sana.android.fragment; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os.Build; import android.os.Bundle; import android.support.v4.app.ListFragment; import android.support.v4.app.LoaderManager; import android.support.v4...
UNFPAInnovation/GetIn_Mobile
app/src/main/java/org/sana/android/fragment/ObserverListFragment.java
Java
bsd-3-clause
8,088
#include "Ht.h" #include "PersObk.h" void CPersObk::PersObk() { if (PR_htValid) { switch (PR_htInst) { case OBK_PUSH: { if (P_loopCnt == 0) { HtContinue(OBK_RTN); break; } if (SendHostDataBusy()) { HtRetry(); break; } uint64_t data = (uint64_t)((uint64_t)P_pau << 56); data |=...
TonyBrewer/OpenHT
tests/obk/src_pers/PersObk_src.cpp
C++
bsd-3-clause
716
/*================================================================================ Copyright (c) 2009 VMware, 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 ...
mikem2005/vijava
src/com/vmware/vim25/CannotAddHostWithFTVmAsStandalone.java
Java
bsd-3-clause
1,790
package de.fraunhofer.fokus.movepla.portlets; /* * #%L * govapps_data * $Id: E_Stati.java 566 2014-11-13 15:22:01Z sma $ * %% * Copyright (C) 2013 - 2014 Fraunhofer FOKUS / CC ÖFIT * %% * Copyright (c) 2,013, Fraunhofer FOKUS, Kompetenzzentrum Oeffentliche IT * All rights reserved. * Redistribution and use i...
fraunhoferfokus/govapps
data-portlet/src/main/java/de/fraunhofer/fokus/movepla/portlets/E_Stati.java
Java
bsd-3-clause
2,939
package com.hitler.common.model.menu; import java.io.Serializable; import java.util.Collection; /** * 导航栏菜单vo * @author Kylin * 2015-10-10 上午9:44:27 */ public class NavMenu implements Serializable { private static final long serialVersionUID = 1L; private Integer id; /** * 显示内容 */ public String text; ...
onsoul/ha-db
saas-mycat/saas/src/main/java/com/hitler/common/model/menu/NavMenu.java
Java
bsd-3-clause
1,481
package net.meisen.dissertation.performance.indexes; /** * Helper interface to provide different data generators * * @author pmeisen * */ public interface IDataGenerator { /** * Creates a generated {@code Object} the time of generation should be equal * for each object. * * @return a generated object...
pmeisen/dis-timeintervaldataanalyzer
test/net/meisen/dissertation/performance/indexes/IDataGenerator.java
Java
bsd-3-clause
359
// Copyright 2015-present 650 Industries. All rights reserved. package abi41_0_0.expo.modules.analytics.segment; import android.content.Context; import android.content.SharedPreferences; import androidx.annotation.Nullable; import com.segment.analytics.Analytics; import com.segment.analytics.Options; import com.seg...
exponent/exponent
android/versioned-abis/expoview-abi41_0_0/src/main/java/abi41_0_0/expo/modules/analytics/segment/SegmentModule.java
Java
bsd-3-clause
9,079
// 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. #include "third_party/blink/renderer/platform/graphics/dark_mode_color_classifier.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party...
endlessm/chromium-browser
third_party/blink/renderer/platform/graphics/dark_mode_color_classifier_test.cc
C++
bsd-3-clause
3,260
/* * Copyright (C) 2012 Adobe Systems Incorporated. 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 ...
endlessm/chromium-browser
third_party/blink/renderer/core/css/basic_shape_functions.cc
C++
bsd-3-clause
15,126
#!/usr/bin/env python # -*- coding: utf-8 -*- # # rfMHC documentation build configuration file, created by # sphinx-quickstart on Tue Jul 9 22:26:36 2013. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autog...
dnolivieri/rfMHC
docs/conf.py
Python
bsd-3-clause
8,369
class GameValidPolicy include Wisper::Publisher def initialize(game:) @game = game @errors = [] end # Policy for determining if the game is valid # The game is valid provided: # 1) the game only ever has at most 1 criminal, # 2) the game only ever has at most Game::NUMBER_OF_PLAYERS and, # 3)...
hjwylde/scotland-yard
app/policies/game_valid_policy.rb
Ruby
bsd-3-clause
1,062
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ABI40_0_0Props.h" #include <folly/dynamic.h> #include <ABI40_0_0React/core/propsConversions.h> namespace ABI40_0_0faceb...
exponent/exponent
ios/versioned-react-native/ABI40_0_0/ReactNative/ReactCommon/fabric/core/shadownode/ABI40_0_0Props.cpp
C++
bsd-3-clause
689
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\PagosPrestamos; /** * PagosPrestamosSearch represents the model behind the search form about `app\models\PagosPrestamos`. */ class PagosPrestamosSearch extends PagosPrestamos { /** * @inheritdoc *...
oswen244/proserpaz
models/PagosPrestamosSearch.php
PHP
bsd-3-clause
1,662
<?php use yii\db\Schema; use yii\db\Migration; class m160130_212648_add_enrollment_to_student extends Migration { public function up() { $this->addColumn('student', 'enrollment_id', $this->string()); } public function down() { echo "m160130_212648_add_enrollment_to_student cannot ...
RomarioLopezC/RobotSS
migrations/m160130_212648_add_enrollment_to_student.php
PHP
bsd-3-clause
538
$(document).ready(function(){ // Navigation var body_class = document.body.className; var hover_on_bg = "#c00"; var hover_on_co = "#fff"; var hover_off_bg = "#fff"; var hover_off_co = "#444"; var hover_delay = 200; $("#navigation li a").removeClass("hover"); $("#navigation li").each(function(...
richardcornish/cyndiloza
cyndiloza/static/js/site.js
JavaScript
bsd-3-clause
1,360
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace vLogs.Objects.KeyValues { /// <summary> /// Represents a collection of key/value pairs. This class cannot be inherited. /// </summary> public sealed class KeyValueCollection : IList<KeyVa...
vercas/vLogs
vLogs/Objects/KeyValues/KeyValue Collection.cs
C#
bsd-3-clause
14,660
# frozen_string_literal: true # rubocop:disable Metrics/BlockLength require 'spec_helper' describe JsonValidator do describe :validate_each do before do run_migration do create_table(:users, force: true) do |t| t.text :data end end spawn_model 'User' do schem...
mirego/activerecord_json_validator
spec/json_validator_spec.rb
Ruby
bsd-3-clause
3,214
// 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 "net/server/web_socket_encoder.h" #include <vector> #include "base/logging.h" #include "base/strings/string_number_conversions.h" #include "bas...
Workday/OpenFrame
net/server/web_socket_encoder.cc
C++
bsd-3-clause
12,653
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ #include <c...
mgoffin/osquery
osquery/core/init.cpp
C++
bsd-3-clause
15,563
// Copyright 2017 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.chrome.browser.offlinepages.prefetch; import org.chromium.chrome.browser.preferences.ChromePreferenceKeys; import org.chromium.chrom...
endlessm/chromium-browser
chrome/android/java/src/org/chromium/chrome/browser/offlinepages/prefetch/PrefetchPrefs.java
Java
bsd-3-clause
3,959
using System; using System.Reflection; using SD = System.Drawing; using Eto.Forms; using UIKit; using Eto.Drawing; namespace Eto.iOS.Forms.Controls { public class NumericUpDownHandler : IosControl<UITextField, NumericUpDown, NumericUpDown.ICallback>, NumericUpDown.IHandler { public NumericUpDownHandler() { Co...
PowerOfCode/Eto
Source/Eto.iOS/Forms/Controls/NumericUpDownHandler.cs
C#
bsd-3-clause
1,650
<?php namespace app\models; class ClientWechatFanSearch extends \yii\base\Model { public $nickname; public $mobile; public $carrier; public $province; public $city; public $create_time_start; public $create_time_end; public $gh_id; public $office_id; public $scene_pid; ...
yjhu/wowewe
models/ClientWechatFanSearch.php
PHP
bsd-3-clause
3,139
<?php class AccesoController extends Controller { /** * @var string the default layout for the views. Defaults to '//layouts/column2', meaning * using two-column layout. See 'protected/views/layouts/column2.php'. */ public $layout='//layouts/column2'; /** * @return array action filters */ public functio...
ineps/inesa
inesa/protected/controllers/AccesoController.php
PHP
bsd-3-clause
5,110
// Code generated from gen/generic.rules; DO NOT EDIT. // generated with: cd gen; go run *.go package ssa import "math" import "cmd/compile/internal/types" func rewriteValuegeneric(v *Value) bool { switch v.Op { case OpAdd16: return rewriteValuegeneric_OpAdd16(v) case OpAdd32: return rewriteValuegeneric_OpAdd...
akutz/go
src/cmd/compile/internal/ssa/rewritegeneric.go
GO
bsd-3-clause
597,533
/*L * Copyright Oracle Inc * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cadsr-cgmdr-nci-uk/LICENSE.txt for details. */ /* * eXist Open Source Native XML Database * Copyright (C) 2001-04 The eXist Project * http://exist-db.org * * This program is ...
NCIP/cadsr-cgmdr-nci-uk
test/src/org/exist/xmldb/StorageStressTest.java
Java
bsd-3-clause
6,249
/* * This file is part of `et engine` * Copyright 2009-2016 by Sergey Reznik * Please, modify content only if you know what are you doing. * */ #pragma once #include <et/rendering/vulkan/vulkan_buffer.h> #include <et/rendering/vulkan/vulkan_compute.h> #include <et/rendering/vulkan/vulkan_program.h> #include <et/...
sergeyreznik/et-engine
include/et/rendering/vulkan/vulkan_renderer.cpp
C++
bsd-3-clause
22,196
def extractFullybookedtranslationsWordpressCom(item): ''' Parser for 'fullybookedtranslations.wordpress.com' ''' vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title']) if not (chp or vol) or "preview" in item['title'].lower(): return None tagmap = [ ('PRC', 'PRC', ...
fake-name/ReadableWebProxy
WebMirror/management/rss_parser_funcs/feed_parse_extractFullybookedtranslationsWordpressCom.py
Python
bsd-3-clause
586
<?php namespace garethp\ews\API\Enumeration; use garethp\ews\API\Enumeration; /** * Class representing SubscriptionStatusFrequencyType * * * XSD Type: SubscriptionStatusFrequencyType */ class SubscriptionStatusFrequencyType extends Enumeration { }
Garethp/php-ews
src/API/Enumeration/SubscriptionStatusFrequencyType.php
PHP
bsd-3-clause
258
<script type="text/javascript"></script> <div class="content-box"> <div class="content-box-header"> <h3 id="title" style="cursor: s-resize;">List Article</h3> <ul class="content-box-tabs"> <li><a href="#tab1" id="clickTab1" class="default-tab current">List Article</a></li> ...
hahalulu/yii
demo/protected/views/admin/adminarticle/index.php
PHP
bsd-3-clause
7,002
<?php /** * @author Semenov Alexander <semenov@skeeks.com> * @link http://skeeks.com/ * @copyright 2010 SkeekS (СкикС) * @date 27.04.2016 */ namespace skeeks\cms\backend\assets; use skeeks\cms\base\AssetBundle; use yii\bootstrap\BootstrapAsset; /** * Class SelectLanguage * @package common\widgets\selectLanguag...
skeeks-cms/cms-backend
src/assets/BackendAsset.php
PHP
bsd-3-clause
679
/******************************************************************************* * Copyright (C) 2001-2004 Vintela, 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 sou...
kkaempf/openwbem
src/requesthandlers/binary/OW_BinaryRequestHandler.cpp
C++
bsd-3-clause
35,938
require_relative '../concepts/board' class NodesController < ApplicationController before_action :load_nodes, only: :index before_action :load_routes, only: :index before_action :load_board, only: :index respond_to :json caches_page :index def index render json: @nodes, board: @board end private...
hjwylde/scotland-yard
app/controllers/nodes_controller.rb
Ruby
bsd-3-clause
500
$(function() { JQTWEET = { // Set twitter hash/user, number of tweets & id/class to append tweets // You need to clear tweet-date.txt before toggle between hash and user // for multiple hashtags, you can separate the hashtag with OR, eg: search: '', //leave this blank if y...
Amaceika/TowerWall
twitter-oauth/jquery.jstwitter.js
JavaScript
bsd-3-clause
6,798
// Copyright 2013 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 "content/renderer/input/input_handler_proxy.h" #include "base/auto_reset.h" #include "base/command_line.h" #include "base/logging.h" #include "b...
fujunwei/chromium-crosswalk
content/renderer/input/input_handler_proxy.cc
C++
bsd-3-clause
35,811
<?php namespace app\models; use Yii; use yii\base\Model; use yii\data\ActiveDataProvider; use app\models\Auxilios; /** * AuxiliosSearch represents the model behind the search form about `app\models\Auxilios`. */ class AuxiliosSearch extends Auxilios { public $documento_cliente; public $nombre_cliente; ...
oswen244/proserpaz
models/AuxiliosSearch.php
PHP
bsd-3-clause
3,499
// 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 "components/page_load_metrics/browser/metrics_web_contents_observer.h" #include <memory> #include "base/memory/raw_ptr.h" #include "base/memory...
ric2b/Vivaldi-browser
chromium/components/page_load_metrics/browser/metrics_web_contents_observer_unittest.cc
C++
bsd-3-clause
69,984
<?php /** * Rebuilds the search indexes for the documentation pages. * * For the hourly cron rebuild use RebuildLuceneDocusIndex_Hourly * * @package docsviewer * @subpackage tasks */ class RebuildLuceneDocsIndex extends BuildTask { protected $title = "Rebuild Documentation Search Indexes"; protected $d...
unclecheese/silverstripe-docsviewer
code/tasks/RebuildLuceneDocsIndex.php
PHP
bsd-3-clause
3,556
///////////////////////////////////////////////////////////////////////////// // Program: wxWidgets Widgets Sample // Name: checkbox.cpp // Purpose: Part of the widgets sample showing wxCheckBox // Author: Dimitri Schoolwerth, Vadim Zeitlin // Created: 27 Sep 2003 // Copyright: (c) 2003 wxWind...
ric2b/Vivaldi-browser
update_notifier/thirdparty/wxWidgets/samples/widgets/checkbox.cpp
C++
bsd-3-clause
9,600
// Copyright 2020 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.chrome.browser.autofill_assistant; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import ...
ric2b/Vivaldi-browser
chromium/chrome/android/javatests/src/org/chromium/chrome/browser/autofill_assistant/AutofillAssistantPreferenceFragmentTest.java
Java
bsd-3-clause
13,445
""" Set of utility programs for IRIS. """ import os import re import io import numpy as np import pandas as pd from datetime import datetime, timedelta from glob import glob # pylint: disable=F0401,E0611,E1103 from urllib.request import urlopen from urllib.parse import urljoin, urlparse from urllib.error import HTTPEr...
ITA-Solar/helita
helita/obs/iris_util.py
Python
bsd-3-clause
9,925
package main import ( "os" "os/exec" "testing" ) // TestMainSuccess tests main function in a separate process using a trick from // https://talks.golang.org/2014/testing.slide#1 func TestMainSuccess(t *testing.T) { if os.Getenv("TEST_MAIN_FUNC") == "1" { os.Args = []string{"", "nop"} main() return } cmd :...
juhovuori/builder
main_test.go
GO
bsd-3-clause
1,050
#include "AudioListenerSystem.h" #include "AudioBackendSystem.h" #include "AudioListener.h" #include "Transform.h" #include "SoundOrientation.h" #include "MeshOffsetTransform.h" AudioListenerSystem::AudioListenerSystem(AudioBackendSystem* p_audioBackend) : EntitySystem(SystemType::AudioListenerSystem, 2, ComponentT...
MattiasLiljeson/Amalgamation
Projects/Gameplay/Src/AudioListenerSystem.cpp
C++
bsd-3-clause
2,950
from __future__ import absolute_import, division, print_function _TRIGGERS = {} def register(tpe, start, stop, join): def decorator(f): _TRIGGERS[tpe] = { "parser": f, "start": start, "stop": stop, "join": join, "threads": [] } ...
stcorp/legato
legato/registry.py
Python
bsd-3-clause
987
/// <reference types="draft-js" /> declare module 'draft-js-export-html' { import draftjs = require("draft-js"); type BlockStyleFn = (block: draftjs.ContentBlock) => RenderConfig|undefined; type EntityStyleFn = (entity: draftjs.EntityInstance) => RenderConfig|undefined; type BlockRenderer = (block: dr...
sstur/draft-js-export-html
packages/draft-js-export-html/typings/index.d.ts
TypeScript
isc
833
class CreateQuestions < ActiveRecord::Migration def change create_table :questions do |t| t.references :parent, :polymorphic => true t.timestamps end end end
breunigs/keks
db/migrate/20130217083354_create_questions.rb
Ruby
isc
182
import sublime, sublime_plugin, os class ExpandTabsOnSave(sublime_plugin.EventListener): def on_pre_save(self, view): if view.settings().get('expand_tabs_on_save') == 1: view.window().run_command('expand_tabs')
edonet/package
Edoner/expand_tabs_on_save.py
Python
isc
236
// Copyright 2012-2015 Apcera Inc. All rights reserved. package server import ( "bufio" "encoding/json" "fmt" "math/rand" "net" "sync" "sync/atomic" "time" "github.com/nats-io/gnatsd/hashmap" "github.com/nats-io/gnatsd/sublist" ) const ( // The size of the bufio reader/writer on top of the socket. defau...
dockbiz/gnatsd
server/client.go
GO
mit
20,486
/** */ package gluemodel.CIM.IEC61970.impl; import gluemodel.CIM.IEC61970.IEC61970CIMVersion; import gluemodel.CIM.IEC61970.IEC61970Package; import gluemodel.CIM.impl.ElementImpl; import java.util.Date; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf...
georghinkel/ttc2017smartGrids
solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/impl/IEC61970CIMVersionImpl.java
Java
mit
5,104
<?php /** * Copyright (c) UNA, Inc - https://una.io * MIT License - https://opensource.org/licenses/MIT * * @defgroup Protean Protean template * @ingroup UnaModules * * @{ */ $aConfig = array( /** * Main Section. */ 'type' => BX_DOL_MODULE_TYPE_TEMPLATE, 'name' => 'bx_protean', ...
unaio/una
modules/boonex/protean/updates/9.0.9_9.0.10/source/install/config.php
PHP
mit
1,429
CodeMirror.ternLint = function(cm, updateLinting, options) { function addAnnotation(error, found) { var startLine = error.startLine; var startChar = error.startChar; var endLine = error.endLine; var endChar = error.endChar; var message = error.message; found.push({ from : error.start, ...
daniel-lundin/tern-snabbt
demos/resources/tern-lint/codemirror/addon/lint/tern-lint.js
JavaScript
mit
952
import { D2ManifestDefinitions } from 'app/destiny2/d2-definitions'; import { PluggableInventoryItemDefinition } from 'app/inventory/item-types'; import { startWordRegexp } from './search-filters/freeform'; export function createPlugSearchPredicate( query: string, language: string, defs: D2ManifestDefinitions ) ...
DestinyItemManager/DIM
src/app/search/plug-search.ts
TypeScript
mit
982
/** * @license * Copyright Google LLC 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 */ import {animate, animation, AnimationMetadata, AnimationMetadataType, AnimationOptions, AUTO_STYLE, group, keyframes, ...
shairez/angular
packages/animations/browser/test/dsl/animation_spec.ts
TypeScript
mit
48,978
/* * Copyright 2015 the original author or phly. * 未经正式书面同意,其他任何个人、团体不得使用、复制、修改或发布本软件. */ package com.phly.ttw.manage.supplier.action; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import org.directwebremoting.annotations.RemoteProxy; import org.springframework.stereotype.Controll...
linmuxi/ttw
src/com/phly/ttw/manage/supplier/action/SupplierOrderAction.java
Java
mit
1,854
import $ from 'cafy'; import ID from '../../../../misc/cafy-id'; import Note from '../../../../models/note'; import Mute from '../../../../models/mute'; import { pack } from '../../../../models/note'; import UserList from '../../../../models/user-list'; import { ILocalUser } from '../../../../models/user'; import getPa...
ha-dai/Misskey
src/server/api/endpoints/notes/user-list-timeline.ts
TypeScript
mit
5,368
require 'spec_helper' feature 'as entry publisher, publishing an entry', js: true do scenario 'without depublication date' do entry = create(:entry, title: 'Test Entry') Dom::Admin::Page.sign_in_as(:publisher, on: entry) visit(pageflow.editor_entry_path(entry)) editor_sidebar = Dom::Editor::Sidebar....
tf/pageflow
spec/features/entry_publisher/publishing_an_entry_spec.rb
Ruby
mit
2,140
using System; namespace SharpCompress.Compressors.Xz { public class XZIndexMarkerReachedException : Exception { } }
adamhathcock/sharpcompress
src/SharpCompress/Compressors/Xz/XZIndexMarkerReachedException.cs
C#
mit
132
package com.benromberg.cordonbleu.data.migration.change0015; import static org.assertj.core.api.Assertions.assertThat; import com.benromberg.cordonbleu.data.migration.ChangeRule; import com.benromberg.cordonbleu.data.migration.TestCollection; import org.junit.Rule; import org.junit.Test; import com.benromberg.cordon...
BenRomberg/cordonbleu
cordonbleu-data/src/test/java/com/benromberg/cordonbleu/data/migration/change0015/Change0015Test.java
Java
mit
1,339
<?php /** * CodeIgniter * * An open source application development framework for PHP * * This content is released under the MIT License (MIT) * * Copyright (c) 2014-2019 British Columbia Institute of Technology * Copyright (c) 2019 CodeIgniter Foundation * * Permission is hereby granted, free of charge, to ...
jim-parry/CodeIgniter4
system/HTTP/Negotiate.php
PHP
mit
11,335
class CreateUsers < ActiveRecord::Migration[5.1] def change create_table :users do |t| t.string :first_name t.string :last_name t.string :spire t.string :email t.string :phone t.timestamps null: false end end end
umts/garrulous-garbanzo
db/migrate/20150909204238_create_users.rb
Ruby
mit
262
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CSharpCodeSnippets { public class DoubleArrayCreation { public double[][] ScaleArrays(double[][] arrays, double scalingFactor) { var result = ne...
liebharc/VerifyBuffer
VerifyBuffering/CSharpCodeSnippets/DoubleArrayCreation.cs
C#
mit
1,190
//Copyright (C) <2012> <Jon Baker, Glenn Mariën and Lao Tszy> //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 3 of the License, or //(at your option) any later version. //This...
LeChosenOne/LegendCraft
fCraft/Drawing/DrawOps/WallsOp.cs
C#
mit
3,853
import os import load_data import numpy as np from keras.backend import theano_backend as K from keras.callbacks import ModelCheckpoint, EarlyStopping from keras.utils.generic_utils import Progbar from keras.callbacks import Callback import generative_models as gm from common import CsvHistory from common import merg...
jstarc/deep_reasoning
generative_alg.py
Python
mit
12,160
<?php // FILE: xtemplate.class (part of MiniMediaEducation, https://github.com/aleph3d/MiniMediaEducation.git) // TYPE: funciton/class Library (PHP5) // LICENSE: BSD and LGPL ////// Copyright (c) 2000-2001 Barnab�s Debreceni [cranx@users.sourceforge.net] XTemplate ////// Copyright (c) 2002-2007 Jeremy Coates [coco...
aleph3d/MiniMediaEducation
MasterServer/MSmmc-ps/plugins/plg-template/lib/xtemplate.class.php
PHP
mit
35,089
module Sunspot #:nodoc: module Rails #:nodoc: # # This module adds an after_filter to ActionController::Base that commits # the Sunspot session if any documents have been added, changed, or removed # in the course of the request. # module RequestLifecycle class <<self def includ...
omarramos/sunspot_rails-temp
lib/sunspot/rails/request_lifecycle.rb
Ruby
mit
1,373
--TEST-- ldap_search() - operation that should fail --CREDITS-- Davide Mendolia <idaf1er@gmail.com> Belgian PHP Testfest 2009 --SKIPIF-- <?php require_once dirname(__FILE__) .'/skipif.inc'; ?> <?php require_once dirname(__FILE__) .'/skipifbindfailure.inc'; ?> --FILE-- <?php include "connect.inc"; $link = ldap_connect(...
lunaczp/learning
language/c/testPhpSrc/php-5.6.17/ext/ldap/tests/ldap_search_error.phpt
PHP
mit
1,668
<?php /** * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\View; class DesignLoader { /** * Request * * @var \Magento\Framework\App\RequestInterface */ protected $_request; /** * Application * ...
j-froehlich/magento2_wk
vendor/magento/framework/View/DesignLoader.php
PHP
mit
1,360
/** * Fixes an issue with Bootstrap Date Picker * @see https://github.com/angular-ui/bootstrap/issues/2659 * * How does it work? AngularJS allows multiple directives with the same name, * and each is treated independently though they are instantiated based on the * same element/attribute/comment. * * So this di...
manekinekko/ng-admin
src/javascripts/ng-admin/Crud/field/datepickerPopup.js
JavaScript
mit
823
/** * 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.datamigration.v2018_03_31_preview; import java.u...
navalev/azure-sdk-for-java
sdk/datamigration/mgmt-v2018_03_31_preview/src/main/java/com/microsoft/azure/management/datamigration/v2018_03_31_preview/MigrateSqlServerSqlServerDatabaseInput.java
Java
mit
3,305
/* YUI 3.7.2 (build 5639) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('editor-base', function (Y, NAME) { /** * Base class for Editor. Handles the business logic of Editor, no GUI involved only utility methods and events. * ...
spadin/coverphoto
node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/editor-base/editor-base-debug.js
JavaScript
mit
32,357
// Copyright (c) The HLSL2GLSLFork Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE.txt file. #include "localintermediate.h" // // Two purposes: // 1. Show an example of how to iterate tree. Functions can // also directly ca...
lriki/LNSL
src/hlsl2glslfork/hlslang/MachineIndependent/intermOut.cpp
C++
mit
18,856
/** * Copyright 2017 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 i...
aggiedefenders/aggiedefenders.github.io
node_modules/@firebase/firestore/dist/esm/src/local/persistence_promise.js
JavaScript
mit
6,111
MainIndexEstablishmentsListView = Backbone.View.extend({ events: { 'click .nav': 'navigate' }, initialize: function () { this.listenTo(this.collection, 'reset', this.render); }, render: function (e) { this.$el.html(''); if (this.collection.length > 0) { this.collection.each(function (establi...
sealocal/yumhacker
app/assets/javascripts/views/main/index_establishments_list_view.js
JavaScript
mit
825
/* * BOOOS.h * * Created on: Aug 14, 2014 */ #ifndef TASK_CC_ #define TASK_CC_ #include "BOOOS.h" #include <iostream> namespace BOOOS { BOOOS * BOOOS::__booos = 0; BOOOS::SchedulerType BOOOS::SCHED_POLICY = BOOOS::SCHED_FCFS; // ou outro escalonador. Ajustem como necessário bool BOOOS::SCHED_PREEMPT = false; //...
paladini/UFSC-so1-2015-01
trabalhos/atividadePratica2/final/lib/BOOOS.cc
C++
mit
979
using System; using System.Linq; using System.Text; using Abp.Collections.Extensions; using Abp.Extensions; using Abp.Web.Api.Modeling; namespace Abp.Web.Api.ProxyScripting.Generators { internal static class ProxyScriptingJsFuncHelper { private const string ValidJsVariableNameChars = "abcdefghijklmnopq...
liuxx001/BodeAbp
src/frame/Abp.Web.Common/Web/Api/ProxyScripting/Generators/ProxyScriptingJsFuncHelper.cs
C#
mit
2,365
/*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights. #ifndef SAPI_VAR_STACK_HPP_ #define SAPI_VAR_STACK_HPP_ #include <new> #include <cstdio> #include <deque> #include "../arg/Argument.hpp" namespace var { /*! \brief Queue Class * \details The Queue class is a FIFO d...
StratifyLabs/StratifyAPI
include/var/Stack.hpp
C++
mit
1,819
using DataCloner.Core.Metadata; using System.Collections.Generic; using System.Linq; using System.Text; using System; namespace DataCloner.Core.Data.Generator { public class InsertWriter : IInsertWriter { private string IdentifierDelemiterStart { get; } private string IdentifierDelemiterEnd { ...
naster01/DataCloner
archive/DataCloner.Core/Data/Generator/InsertWriter.cs
C#
mit
2,629
var rules = module.exports = []; function Checker(name, rule) { this.name = name; this.rule = rule; this.check = function(results) { var violations = [], that = this; results.filter(function(result) { return result.shortName !== '[[code]]'; }).forEach(function (result) ...
yubin-huang/jscheckstyle
lib/rules.js
JavaScript
mit
1,979
#!/usr/bin/env python3 # Copyright (c) 2017-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test that the wallet resends transactions periodically.""" from collections import defaultdict import t...
nlgcoin/guldencoin-official
test/functional/wallet_resendwallettransactions.py
Python
mit
2,912
const fs = require('fs'); const path = require('path'); const yoHelper = require('yeoman-test'); const yoAssert = require('yeoman-assert'); const generatorPath = '../packages/generator-emakinacee-react/generators/compute'; describe('Compute', () => { describe('without module', () => { before(() => { ...
emakina-cee-oss/generator-emakinacee-react
test/compute.test.js
JavaScript
mit
3,309
(function () { var KEY = { ENTER: 13, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40 }; function normalizeTokens(tokens) { return tokens.filter(function (token) { return !!token; }).map(function (token) { return t...
bosonic-labs/b-autocomplete
dist/b-autocomplete.js
JavaScript
mit
12,927
<?php /** * Checkout.com * Authorised and regulated as an electronic money institution * by the UK Financial Conduct Authority (FCA) under number 900816. * * PHP version 7 * * @category SDK * @package Checkout.com * @author Platforms Development Team <platforms@checkout.com> * @copyright 2010-2019 Chec...
checkout/checkout-woocommerce-plugin
woocommerce-gateway-checkout-com/includes/lib/checkout-sdk-php/src/Models/Payments/BancontactSource.php
PHP
mit
1,552