code stringlengths 3 1.01M | repo_name stringlengths 5 116 | path stringlengths 3 311 | language stringclasses 30
values | license stringclasses 15
values | size int64 3 1.01M |
|---|---|---|---|---|---|
''' Dialogs and widgets Responsible for creation, restoration of accounts are
defined here.
Namely: CreateAccountDialog, CreateRestoreDialog, RestoreSeedDialog
'''
from functools import partial
from kivy.app import App
from kivy.clock import Clock
from kivy.lang import Builder
from kivy.properties import ObjectPrope... | valesi/electrum | gui/kivy/uix/dialogs/create_restore.py | Python | gpl-3.0 | 11,183 |
<?php
/**
* Theme Setup Functionality
*
* @link https://github.com/brainscousin/twentyseventeen-child
* @since 1.3.0
*
* @package Attentive_Media
* @subpackage Twenty_Seventeen_Child
*/
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Not... | brainscousin/twentyseventeen-child-ndgc | inc/theme-setup.php | PHP | gpl-3.0 | 4,560 |
/*
* This file is part of the Raster Storage Archive (RSA).
*
* The RSA 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.
*
* The... | vpac-innovations/rsa | src/spatialcubeservice/src/main/java/org/vpac/web/view/AtomFeedView.java | Java | gpl-3.0 | 2,981 |
python -u test.py waves
| peterlzhang/gerris | test/waves.sh | Shell | gpl-3.0 | 24 |
/*
* Copyright (C) 2017 Naoghuman
*
* 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 program is ... | Naoghuman/ABC-List | src/main/java/com/github/naoghuman/abclist/configuration/IPreferencesConfiguration.java | Java | gpl-3.0 | 3,668 |
/*
Copyright (C) 2002-2004 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
There are special exceptions to the terms and conditions of the GPL
as it is applied to this ... | BasicOperations/vids | sql/mysql-connector-java-3.1.14/src/com/mysql/jdbc/NotUpdatable.java | Java | gpl-3.0 | 1,951 |
/**
* Implementa el método fecha() que devuelva una fecha válida. Lanzará una excepción en caso contrario.
* @author Jesús Mejías Leiva
*/
{
function init() {
try {
date();
} catch (e) {
console.log(e.message);
}
}
// creo mi exception personalizada
let dateNotValid = function(msg, n... | susomejias/susomejias.github.io | ejercicios/tema3/listadoDate/ejercicio5/js/main.js | JavaScript | gpl-3.0 | 815 |
/*
* uart.h
*
* Created on: Oct 3, 2015
* Author: lorenzo
*/
#ifndef _UART_H_
#define _UART_H_
void uart_putchar(char c, FILE *stream);
char uart_getchar(FILE *stream);
void uart_init(void);
/* http://www.ermicro.com/blog/?p=325 */
FILE uart_output = FDEV_SETUP_STREAM(uart_putchar, NULL, _FDEV_SETUP_WR... | lmiori92/audio-monitor-avr | src/uart.h | C | gpl-3.0 | 424 |
/*
This file is part of LS² - the Localization Simulation Engine of FU Berlin.
Copyright 2011-2013 Heiko Will, Marcel Kyas, Thomas Hillebrandt,
Stefan Adler, Malte Rohde, Jonathan Gunthermann
LS² is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License ... | wi77/LS2 | src/error_model/eq_noise_em.h | C | gpl-3.0 | 1,122 |
using System;
namespace zComp.Core
{
/// <summary>Elément possédant une propriété readonly</summary>
public interface IReadOnlyElement
{
/// <summary>Peux-t-on réaliser des modifications ?</summary>
/// <returns>True si l'on peut modifier l'élément</returns>
bool CanModify... | dzediar/aria-nt | zComp/Trunc/zComp.Core/Controls/IReadOnlyElement.cs | C# | gpl-3.0 | 609 |
/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var gTestfile = 'regress-43... | mozilla/rhino | testsrc/tests/js1_5/extensions/regress-435345-01.js | JavaScript | mpl-2.0 | 2,222 |
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei... | oracle/terraform-provider-baremetal | vendor/github.com/oracle/oci-go-sdk/v46/loadbalancer/create_listener_request_response.go | GO | mpl-2.0 | 3,638 |
dojo.provide("dojox.layout.ContentPane");
dojo.require("dijit.layout.ContentPane");
dojo.require("dojox.html._base");
dojo.declare("dojox.layout.ContentPane", dijit.layout.ContentPane, {
// summary:
// An extended version of dijit.layout.ContentPane.
// Supports infile scripts and external ones declared... | ThesisPlanet/EducationPlatform | src/public/js/libs/dojox/layout/ContentPane.js | JavaScript | mpl-2.0 | 3,743 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `ACCUM_GREEN_SIZE` constant in crate `offscreen_gl_context`.">
... | susaing/doc.servo.org | offscreen_gl_context/glx/constant.ACCUM_GREEN_SIZE.html | HTML | mpl-2.0 | 4,217 |
# HASH/SHA512-224
{% method -%}
Puts the SHA-512/224 hash of the top item on the stack back to the top of the stack
Input stack: `a`
Output stack: `b`
{% common -%}
```
PumpkinDB> "The quick brown fox jumps over the lazy dog" HASH/SHA512-224
0x944cd2847fb54558d4775db0485a50003111c8e5daa63fe722c6aa37
```
{% endme... | PumpkinDB/PumpkinDB | doc/script/HASH/SHA512-224.md | Markdown | mpl-2.0 | 648 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `TIOCINQ` constant in crate `libc`.">
<meta name="keywords"... | servo/doc.servo.org | libc/notbsd/other/constant.TIOCINQ.html | HTML | mpl-2.0 | 4,581 |
const path = require('path');
const webpack = require('webpack');
const fs = require('fs');
const merge = require('webpack-merge');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const base = require('./base.config');
module.exports = merge(base, {
cache: true,
entry: {
index: ['whatwg-fetch'],
},
m... | byte-foundry/prototypo | prod.config.js | JavaScript | mpl-2.0 | 1,324 |
bem-naming
==========
Tool for working with [BEM entity](https://en.bem.info/methodology/key-concepts/#bem-entity) representations: allows you to parse [string representation](#string-representation) and stringify [object representation](#object-representation).
Supports various [naming conventions](#naming-conventio... | bem-sdk/bem-naming | README.md | Markdown | mpl-2.0 | 11,805 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `_Z20JS_RestoreFrameChainP9JSContext` fn in crate `js`.">
<... | susaing/doc.servo.org | js/jsapi/fn._Z20JS_RestoreFrameChainP9JSContext.html | HTML | mpl-2.0 | 4,094 |
package terraform
import (
"bytes"
"fmt"
"os"
"reflect"
"sort"
"strings"
"sync"
"sync/atomic"
"testing"
"time"
"github.com/hashicorp/terraform/config/module"
)
func TestContext2Apply(t *testing.T) {
m := testModule(t, "apply-good")
p := testProvider("aws")
p.ApplyFn = testApplyFn
p.DiffFn = testDiffFn... | ephemeralsnow/terraform | terraform/context_apply_test.go | GO | mpl-2.0 | 88,455 |
initSidebarItems({"mod":[["jar","A cookie jar implementation for storing a set of cookies."]],"struct":[["AttrVal",""],["Cookie",""],["CookieJar","A jar of cookies for managing a session"]]}); | susaing/doc.servo.org | cookie/sidebar-items.js | JavaScript | mpl-2.0 | 192 |
/*---------------------------------------------------------------------------
* Copyright (C) 1999,2000 Dallas Semiconductor Corporation, All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),... | jwinarske/winrt-onewire | OneWireAPI/com/dalsemi/onewire/utils/SHA.cs | C# | mpl-2.0 | 6,615 |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Windows;
namespace Wpfdraganddrop
{
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
}
} | liangsenzhi/WPF | 1.19WPF拼图游戏/Wpfdraganddrop/App.xaml.cs | C# | mpl-2.0 | 256 |
/* @flow */
import {Writable as WritableStream} from 'stream';
import bunyan from 'bunyan';
import sinon from 'sinon';
import {it, describe} from 'mocha';
import {assert} from 'chai';
import {createLogger, ConsoleStream} from '../../../src/util/logger';
describe('logger', () => {
describe('createLogger', () => ... | rpl/web-ext | tests/unit/test-util/test.logger.js | JavaScript | mpl-2.0 | 5,702 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Search — aioorm documentation</title>
... | Python-Tools/aioorm | docs/search.html | HTML | mpl-2.0 | 3,212 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `RUST_hb_blob_get_user_data` fn in crate `harfbuzz`.">
<met... | susaing/doc.servo.org | harfbuzz/fn.RUST_hb_blob_get_user_data.html | HTML | mpl-2.0 | 4,316 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html data-context="Build Apps" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>Secure Storage Admin - Legato Docs</title>
<... | legatoproject/legato-docs | 19_11_5/c_secStoreAdmin.html | HTML | mpl-2.0 | 5,587 |
package command
import (
"bytes"
"os"
"testing"
"github.com/hashicorp/consul/testutil"
"github.com/mitchellh/cli"
)
func TestPutCommand(t *testing.T) {
srv := testutil.NewTestServer(t)
defer srv.Stop()
ui := new(cli.MockUi)
c := &PutCommand{UI: ui}
os.Setenv("CONSUL_HTTP_ADDR", srv.HTTPAddr)
args := []s... | spiritloose/consulkv | command/put_test.go | GO | mpl-2.0 | 1,020 |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0... | Yukarumya/Yukarum-Redfoxes | dom/svg/SVGFEDistantLightElement.cpp | C++ | mpl-2.0 | 2,462 |
// Code generated by go-swagger; DO NOT EDIT.
package models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
"context"
"strconv"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swa... | logicmonitor/k8s-argus | vendor/github.com/logicmonitor/lm-sdk-go/models/website_group.go | GO | mpl-2.0 | 7,884 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html data-context="Build Apps" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>tty API - Legato Docs</title>
<meta content=... | legatoproject/legato-docs | 20_04/c_tty.html | HTML | mpl-2.0 | 7,492 |
/* Copyright (c) 2013, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <string.h>
#include <odp/api/schedule.h>
#include <odp_schedule_internal.h>
#include <odp/api/align.h>
#include <odp/api/queue.h>
#include <odp/api/shared_memory.h>
#include <odp/api/buffer.h>
#in... | Jet-Streaming/framework | deps/odp/platform/linux-generic/odp_schedule.c | C | mpl-2.0 | 20,781 |
# gogol-dns
* [Version](#version)
* [Description](#description)
* [Contribute](#contribute)
* [Licence](#licence)
## Version
`0.5.0`
## Description
A client library for the Google Cloud DNS.
## Contribute
For any problems, comments, or feedback please create an issue [here on GitHub](https://github.com/brenda... | brendanhay/gogol | gogol-dns/README.md | Markdown | mpl-2.0 | 562 |
package opc
import (
"bytes"
"encoding/json"
"fmt"
"log"
"strconv"
"strings"
"github.com/hashicorp/go-oracle-terraform/compute"
"github.com/r3labs/terraform/helper/hashcode"
"github.com/r3labs/terraform/helper/schema"
"github.com/r3labs/terraform/helper/validation"
)
func resourceInstance() *schema.Resourc... | r3labs/terraform | vendor/github.com/hashicorp/terraform-provider-opc/opc/resource_instance.go | GO | mpl-2.0 | 22,024 |
<!DOCTYPE html>
<!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec referrer-policy/` -->
<html>
<head>
<title>Referrer-Policy: Referrer Policy is set to 'strict-origin-when-cross-origin'</title>
<meta charset='utf-8'>
<meta name="description" content="Check that a priori ins... | UK992/servo | tests/wpt/web-platform-tests/referrer-policy/gen/srcdoc-inherit.http-rp/strict-origin-when-cross-origin/fetch/same-https.swap-origin.http.html | HTML | mpl-2.0 | 1,717 |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated from a template.
//
// Manual changes to this file may cause unexpected behavior in your application.
// Manual changes to this file will be overwritten if the code is regenerat... | appdt28-6/deliveryApp | DeliveryApp/Models/AppDTModel.Context.cs | C# | mpl-2.0 | 5,249 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `uselocale` fn in crate `libc`.">
<meta name="keywords" con... | servo/doc.servo.org | libc/unix/fn.uselocale.html | HTML | mpl-2.0 | 4,447 |
/*
* Copyright (c) The Trustees of Indiana University, Moi University
* and Vanderbilt University Medical Center. All Rights Reserved.
*
* This version of the code is licensed under the MPL 2.0 Open Source license
* with additional health care disclaimer.
* If the user is an entity intending to commercialize any ... | sthaiya/muzima-android | app/src/main/java/com/muzima/model/IncompleteForm.java | Java | mpl-2.0 | 503 |
/*hdr
**
** Copyright Mox Products, Australia
**
** FILE NAME: FileConfigure.c
**
** AUTHOR: Jeff Wang
**
** DATE: 09 - May - 2009
**
** FILE DESCRIPTION:
**
**
** FUNCTIONS:
**
** NOTES:
**
*/
#ifndef FILECONFIGURE_H
#define FILECONFIGURE_H
/************** SYSTEM INCLUDE FILES **************... | SkyChen2012/GMApp | ParaSetting/FileConfigure.h | C | mpl-2.0 | 5,128 |
# Copyright (c) 2013-2016 Jeffrey Pfau
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from ._pylib import ffi, lib
from . import tile
from cached_property import cach... | fr500/mgba | src/platform/python/mgba/core.py | Python | mpl-2.0 | 4,578 |
# jsonproc
[](https://travis-ci.org/hfinucane/jsonproc)
A read-only `/proc` to json bridge. In general, the URL scheme looks like:
/ # Everything in /proc
/loadavg # The contents of /proc/loadavg
/proc/1 # All Abo... | hfinucane/jsonproc | README.md | Markdown | mpl-2.0 | 2,604 |
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1276240
-->
<head>
<title>Test for Bug 1276240</title>
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/cs... | Yukarumya/Yukarum-Redfoxes | dom/tests/mochitest/webcomponents/test_bug1276240.html | HTML | mpl-2.0 | 1,413 |
/*
* !++
* QDS - Quick Data Signalling Library
* !-
* Copyright (C) 2002 - 2021 Devexperts LLC
* !-
* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with this file, You can obtain one at
* http://mozilla.org/MPL/2.0/.
* !__
*/
pa... | Devexperts/QD | dxfeed-impl/src/main/java/com/dxfeed/api/impl/EventDelegate.java | Java | mpl-2.0 | 6,003 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `blksize_t` type in crate `libc`.">
<meta name="keywords" c... | servo/doc.servo.org | libc/b64/type.blksize_t.html | HTML | mpl-2.0 | 4,336 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `JS_NewSharedFloat32Array` fn in crate `js`.">
<meta name="... | susaing/doc.servo.org | js/jsapi/fn.JS_NewSharedFloat32Array.html | HTML | mpl-2.0 | 4,263 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `XtAppGetSelectionTimeout` fn in crate `x11`.">
<meta name=... | susaing/doc.servo.org | x11/xt/fn.XtAppGetSelectionTimeout.html | HTML | mpl-2.0 | 4,111 |
package autoconf
import (
"context"
"crypto/x509"
"net"
"sync"
"testing"
"github.com/stretchr/testify/mock"
"github.com/hashicorp/consul/agent/cache"
cachetype "github.com/hashicorp/consul/agent/cache-types"
"github.com/hashicorp/consul/agent/connect"
"github.com/hashicorp/consul/agent/metadata"
"github.c... | hashicorp/consul | agent/auto-config/mock_test.go | GO | mpl-2.0 | 8,927 |
//
// ImageSlicing.h
// ImageSlicing
//
// Created by Jeremy on 2016-02-13.
// Copyright © 2016 Jeremy W. Sherman. Released with NO WARRANTY.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one a... | jeremy-w/ImageSlicer | ImageSlicing/ImageSlicing.h | C | mpl-2.0 | 729 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html data-context="Build Apps" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>Internationalization - Legato Docs</title>
<... | legatoproject/legato-docs | 19_07/conceptsInternationalization.html | HTML | mpl-2.0 | 3,772 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `XkbAllocGeomSections` fn in crate `x11`.">
<meta name="key... | susaing/doc.servo.org | x11/xlib/fn.XkbAllocGeomSections.html | HTML | mpl-2.0 | 4,222 |
/*
Tables : table_name (always singular)
Keys : column_name
Foreign keys : table_name_column_ame
*/
CREATE TABLE `user` (
/* GENERAL INFO */
`id` INT NOT NULL AUTO_INCREMENT,
`name` VARCHAR(64) NOT NULL,
`password` VARCHAR(255) NOT NULL,
`email` VARCHAR(64) NOT NULL,
`... | HarambeSoft/plus-one-server | build/CreateDB.sql | SQL | mpl-2.0 | 9,564 |
var searchData=
[
['initialise_2eh',['initialise.h',['../initialise_8h.html',1,'']]],
['items',['items',['../structsxbp__co__ord__array__t.html#a32095c91b499cfcbaacdb250f45862b1',1,'sxbp_co_ord_array_t']]]
];
| saxbophone/libsxbp | docs/search/all_4.js | JavaScript | mpl-2.0 | 213 |
describe('aria.requiredOwned', function() {
'use strict';
afterEach(function() {
axe.reset();
});
it('should returned the context property for the proper role', function() {
axe.configure({
standards: {
ariaRoles: {
cats: {
requiredOwned: ['yes']
}
... | dequelabs/axe-core | test/commons/aria/required-owned.js | JavaScript | mpl-2.0 | 1,240 |
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
"""
Define the Expansion Valve component.
"""
from scr.logic.components.component import Component as Cmp
from scr.logi... | arkharin/OpenCool | scr/logic/components/expansion_valve/theoretical.py | Python | mpl-2.0 | 1,392 |
# Design Patterns
[Design patterns](https://en.wikipedia.org/wiki/Software_design_pattern) are
"general reusable solutions to a commonly occurring problem within a given
context in software design". Design patterns are a great way to describe the
culture of a programming language. Design patterns are very language-spe... | rust-unofficial/patterns | patterns/index.md | Markdown | mpl-2.0 | 1,443 |
#pragma once
#include "iobuffer.h"
//
// ioÏÂËùÓжÔÏóµÄÄÚ´æ¹ÜÀí»úÖÆ ¶¼»á¼ÆÊý·½Ê½
//
namespace xhnet
{
typedef std::function<void()> postio;
//
// run Ö»ÄÜÔÚÒ»¸öÏß³ÌÖÐÔËÐÐ one thread one run
//
class IIOServer : virtual public CPPRef
{
public:
// ³õʼ»¯½øÐжþ¶Îʽ³õʼ»¯
static IIOServer* Create(void);
... | mybestcool/xhnet | include/net/ioserver.h | C | mpl-2.0 | 660 |
// Copyright (c) 2016, 2018, 2020, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei... | ricardclau/packer | vendor/github.com/oracle/oci-go-sdk/core/network_security_group_vnic.go | GO | mpl-2.0 | 1,759 |
package org.ow2.choreos.ee.nodes;
import org.ow2.choreos.ee.config.CloudConfiguration;
import org.ow2.choreos.nodes.NodePoolManager;
public class NPMFactory {
public static NodePoolManager npmForTest;
public static boolean testing = false;
public static NodePoolManager getNewNPMInstance(String cloudAcco... | choreos/enactment_engine | EnactmentEngine/src/main/java/org/ow2/choreos/ee/nodes/NPMFactory.java | Java | mpl-2.0 | 1,208 |
sttrings
========
| emmanuelbaiden/sttrings | README.md | Markdown | mpl-2.0 | 18 |
/*
Copyright (C) 2011-2012 iPOV.net
Author: Robert Sanders (robert.sanders@ipov.net)
This program is free software; you can redistribute it and/or
modify it under the terms of the Mozilla Public License v2 or higher.
*/
/*
* This is the main site-wide menu, in this case a drop-down style, although for Siemens it doe... | rrsIPOV/ipov-wbt | src/scripts/themes/bbf/css/site-menu.css | CSS | mpl-2.0 | 4,102 |
---
layout: master
include: person
name: Kalle Happonen
home: <a href="http://www.csc.fi">CSC</a>
country: FI
photo: assets/images/people/Kalle_Happonen.jpg
email: kalle.happonen@csc.fi
phone:
on_contract: no
has_been_on_contract: yes
groups:
glenna:
puhuri-sg:
nicest2-rg:
---
| neicnordic/neic.no | _people/kalle-happonen.md | Markdown | mpl-2.0 | 284 |
var searchData=
[
['le_5farg_5fgetarg',['le_arg_GetArg',['../le__args_8h.html#a89b9e1ffd1401e17ceb818f3293db335',1,'le_args.h']]],
['le_5farg_5fgetprogramname',['le_arg_GetProgramName',['../le__args_8h.html#a17fbb5b46697adea82b4dd1e51d35ada',1,'le_args.h']]],
['le_5farg_5fnumargs',['le_arg_NumArgs',['../le__args_... | legatoproject/legato-docs | 14_04_1/search/functions_6c.js | JavaScript | mpl-2.0 | 98,371 |
/*global sinon, assert, suite, setup, teardown, test */
suite('test-utils', function() {
'use strict';
var utils = window['test-utils'];
setup(function() {
this.sinon = sinon.sandbox.create();
this.dom = document.createElement('div');
document.body.appendChild(this.dom);
});
teardown(function()... | yzen/test-utils | test/test.js | JavaScript | mpl-2.0 | 1,376 |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package tools.proxy.saml;
/**
*
* @author JL06436S
*/
public interface Runnable {
void run(String[] args) t... | jlamandecap/saml-assertion-tools | proxy-saml/src/main/java/tools/proxy/saml/Runnable.java | Java | mpl-2.0 | 341 |
let _ = function (type, props, children) {
let elem = null;
if (type === "text") {
return document.createTextNode(props);
} else {
elem = document.createElement(type);
}
for (let n in props) {
if (n === "style") {
for (let x in props.style) {
... | esterTion/Youku-HTML5-Player | src/dom_gen.js | JavaScript | mpl-2.0 | 1,715 |
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Copyright 2008-2015 MonetDB B.V.
*/
#ifndef _SEEN_PROPERTIES_H
#define _SEEN_PROPERTIES_H 1
#include "uti... | zyzyis/monetdb | tools/merovingian/utils/properties.h | C | mpl-2.0 | 755 |
package minejava.reg.io;
import minejava.reg.lang.IndexOutOfBoundsException;
import minejava.reg.lang.Math;
import minejava.reg.lang.NullPointerException;
import minejava.reg.lang.System;
public class ByteArrayInputStream extends InputStream{
protected byte buf[];
protected int pos;
protected int mark ... | cFerg/MineJava | src/main/java/minejava/reg/io/ByteArrayInputStream.java | Java | mpl-2.0 | 1,865 |
/*******************************************************************************
* Poor Man's CMS (pmcms) - A very basic CMS generating static html pages.
* http://poormans.sourceforge.net
* Copyright (C) 2004-2013 by Thilo Schwarz
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following li... | th-schwarz/pmcms | src/main/java/de/thischwa/pmcms/conf/PropertiesManager.java | Java | mpl-2.0 | 1,751 |
/* ***** BEGIN LICENCE BLOCK *****
* Version: MPL 2.0
*
* This Source Code Form is subject to the terms of the Mozilla Public License,
* v. 2.0. If a copy of the MPL was not distributed with this file, You can
* obtain one at http://mozilla.org/MPL/2.0/.
*
* Software distributed under the License is distributed... | tmhorne/celtx | celtx/base/resources/content/editors/breakdownhide.css | CSS | mpl-2.0 | 1,340 |
MODULE PhotovoltaicThermalCollectors
! Module containing the routines dealing with the photovoltaic thermal collectors
! MODULE INFORMATION:
! AUTHOR Brent. Griffith
! DATE WRITTEN June-August 2008
! MODIFIED na
! RE-E... | nrgsim/EnergyPlus-Fortran | PhotovoltaicThermalCollectors.f90 | FORTRAN | mpl-2.0 | 56,029 |
// Copyright (c) 2016, 2018, 2021, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose ei... | oracle/terraform-provider-baremetal | vendor/github.com/oracle/oci-go-sdk/v46/devops/automated_deploy_stage_rollback_policy.go | GO | mpl-2.0 | 1,395 |
// Localization
module.exports = function localizationInitializer() {
var i18n = require('../extensions/i18n-namespace')
, i18nConfiguration = {
defaultLocale : 'en',
locales:['en', 'fr'],
directory: __dirname + '/../../app/locales/',
updateFiles: false,
cookie: 'lang'
};
// lambda ... | alloplastic/Choreo | config/initializers/02_localization.js | JavaScript | mpl-2.0 | 639 |
package main
import "github.com/hashicorp/packer/packer/plugin"
import "github.com/jetbrains-infra/packer-builder-vsphere/iso"
func main() {
server, err := plugin.Server()
if err != nil {
panic(err)
}
err = server.RegisterBuilder(new(iso.Builder))
if err != nil {
panic(err)
}
server.Serve()
}
| jetbrains-infra/packer-builder-vsphere | cmd/iso/main.go | GO | mpl-2.0 | 307 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `Binary` trait in crate `std`.">
<meta name="keywords" cont... | servo/doc.servo.org | std/fmt/trait.Binary.html | HTML | mpl-2.0 | 10,996 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `PreferenceApplied` struct in crate `hyper`.">
<meta name="... | servo/doc.servo.org | hyper/header/preference_applied/struct.PreferenceApplied.html | HTML | mpl-2.0 | 7,485 |
/*
Copyright 2012 KeepSafe Software 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 agree... | Yukarumya/Yukarum-Redfoxes | mobile/android/thirdparty/com/keepsafe/switchboard/Preferences.java | Java | mpl-2.0 | 3,735 |
/** This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package myjava.gui.option;
import java.awt.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.sw... | tony200910041/RefluxEdit | myjava/gui/option/OptionDialog.java | Java | mpl-2.0 | 2,355 |
<!DOCTYPE html>
<html>
<head>
<title>Which Animal Are You?</title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src = "JQuery.js"></script>
<script type="text/javascript" src = "script.js"></script>
<link href='http://fonts.googleapis.com/css?family=Lato' rel='style... | mattbspector/206Quiz | Finished.html | HTML | mpl-2.0 | 522 |
namespace uSync.Core.Serialization
{
public static class SyncOptionsExtensions
{
/// <summary>
/// perform the removal of properties and items.
/// </summary>
public static bool DeleteItems(this SyncSerializerOptions options)
=> !options.GetSetting<bool>(uSyncConst... | KevinJump/uSync | uSync.Core/Serialization/SyncOptionsExtensions.cs | C# | mpl-2.0 | 411 |
using Alex.Blocks.Materials;
namespace Alex.Blocks.Minecraft.Walls
{
public class CobblestoneWall : AbstractWall
{
public CobblestoneWall() : base()
{
Solid = true;
Transparent = true;
BlockMaterial = Material.Stone;
}
}
}
| kennyvv/Alex | src/Alex/Blocks/Minecraft/Walls/CobblestoneWall.cs | C# | mpl-2.0 | 243 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `MAP_FLUSH_EXPLICIT_BIT` constant in crate `gleam`.">
<meta... | susaing/doc.servo.org | gleam/ffi/constant.MAP_FLUSH_EXPLICIT_BIT.html | HTML | mpl-2.0 | 4,119 |
/*
* Copyright © 2013-2021, The SeedStack authors <http://seedstack.org>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package org.seedstack.coffig;
import... | seedstack/coffig | src/main/java/org/seedstack/coffig/SingleValue.java | Java | mpl-2.0 | 666 |
/*
* Copyright (c) 2014 Universal Technical Resource Services, Inc.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
using System;
using System.Collection... | UtrsSoftware/ATMLWorkBench | ATMLLibraries/ATMLCommonLibrary/forms/ATMLPleaseWait.cs | C# | mpl-2.0 | 1,417 |
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
// Tests changing viewport DPR
const TEST_URL = "data:text/html;charset=utf-8,DPR list test";
const DEFAULT_DPPX = window.devicePixelRatio;
const VIEWPORT_DPPX = DEFAULT_DPPX + 2;
const Types = requi... | Yukarumya/Yukarum-Redfoxes | devtools/client/responsive.html/test/browser/browser_dpr_change.js | JavaScript | mpl-2.0 | 4,425 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="rustdoc">
<meta name="description" content="API documentation for the Rust `fpos64_t` enum in crate `libc`.">
<meta name="keywords" co... | servo/doc.servo.org | libc/enum.fpos64_t.html | HTML | mpl-2.0 | 4,154 |
import React from 'react';
import PropTypes from 'prop-types';
import logo from '../img/ff-logo.png';
const DevHomework = props => (
<div className="homework">
<div className="container">
<img className="homework__logo" alt="Firefox Logo" src={logo} />
<h2 className="homework__title">{props.title}</... | MozillaDevelopers/playground | src/components/layout/DevHomework.js | JavaScript | mpl-2.0 | 551 |
/*******************************************************************************
* Copyright (c) 2014 Łukasz Szpakowski.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MP... | luckboy/Purfuncor | src/main/scala/pl/luckboy/purfuncor/common/Inferrer.scala | Scala | mpl-2.0 | 4,250 |
namespace Sparkle.Services.Networks.Tags.EntityWithTag
{
using Sparkle.Entities.Networks.Neutral;
using System;
using System.Collections.Generic;
using System.Linq;
public interface IEntityWithTagRepository
{
////void Insert(IServiceFactory services, IEntityWithTag item);
... | SparkleNetworks/SparkleNetworks | src/Sparkle.Services/Networks/Tags/EntityWithTag/IEntityWithTagRepository.cs | C# | mpl-2.0 | 1,302 |
<?php
declare(strict_types=1);
use ParagonIE\ConstantTime\Hex;
use ParagonIE\Halite\{
Alerts as CryptoException,
EncryptionKeyPair,
KeyFactory,
SignatureKeyPair
};
use ParagonIE\Halite\Asymmetric\{
Crypto as Asymmetric,
SignatureSecretKey,
SignaturePublicKey
};
use ParagonIE\HiddenString\Hi... | paragonie/halite | test/unit/KeyPairTest.php | PHP | mpl-2.0 | 13,263 |
<!doctype html>
<html>
<head>
<title>CSS Decoration: My Inspirations</title>
<meta name="author" content="Mozilla Leadership Network">
<meta name="title" content="CSS Decoration: My Inspirations">
<meta charset="utf-8">
<link rel="stylesheet" href="my-inspirations-style.css" type="text/css">
</head>
<bo... | chadsansing/curriculum-testing | intermediate-web-lit-one/my-inspirations.html | HTML | mpl-2.0 | 984 |
<!DOCTYPE html>
<!-- DO NOT EDIT! Generated by `common/security-features/tools/generate.py --spec referrer-policy/` -->
<html>
<head>
<title>Referrer-Policy: Referrer Policy is set to 'no-referrer-when-downgrade'</title>
<meta charset='utf-8'>
<meta name="description" content="Check that non a priori inse... | UK992/servo | tests/wpt/web-platform-tests/referrer-policy/gen/req.attr/no-referrer-when-downgrade/iframe-tag/same-http.swap-origin.http.html | HTML | mpl-2.0 | 1,768 |
/**
* Copyright (c) 2020, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.powsybl.iidm.network.impl.tck.util;
import... | powsybl/powsybl-core | iidm/iidm-impl/src/test/java/com/powsybl/iidm/network/impl/tck/util/NodeBreakerTopologyTest.java | Java | mpl-2.0 | 551 |
using L2dotNET.Models;
namespace L2dotNET.Network.serverpackets
{
class TargetUnselected : GameserverPacket
{
private readonly int _id;
private readonly int _x;
private readonly int _y;
private readonly int _z;
public TargetUnselected(L2Object obj)
{
... | Elfocrash/L2dotNET | src/L2dotNET/Network/serverpackets/TargetUnselected.cs | C# | mpl-2.0 | 625 |
@ECHO OFF
cmdkey /delete:git:https//github.com
CD PTNigeria
git init
git config --local user.name PTNigeria
git config --local user.password iykesMan22
git config --local user.email PTNigeriaplc@gmail.com
git remote add Local https://github.com/PTNigeria/CDN
git remote set-url --add Local https://github.com/PTNigeria/C... | PTNigeria/CDN | PTNigeria.bat | Batchfile | mpl-2.0 | 495 |
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Windows;
namespace WPFExpander
{
/// <summary>
/// App.xaml 的交互逻辑
/// </summary>
public partial class App : Application
{
}
} | liangsenzhi/WPF | 1.1WPF Expander控件/WPFExpander/App.xaml.cs | C# | mpl-2.0 | 253 |
namespace Alex.Utils.Commands
{
public class TargetCommandProperty : CommandProperty
{
/// <inheritdoc />
public TargetCommandProperty(string name, bool required = true) : base(name, required, "target")
{
}
}
} | kennyvv/Alex | src/Alex/Utils/Commands/TargetCommandProperty.cs | C# | mpl-2.0 | 225 |
angular.module('moviematch.movieinput', [])
.controller('MovieInputController', function($scope, $http, $location, Session, RequestFactory, $uibModalInstance) {
$scope.movieTitle = "";
$scope.searchResults;
$scope.movieChoices = [];
$scope.error;
// Get movies and assigns them to $scope.searchResults
$sco... | CantillatingZygote/rubiginouschanticleer | client/app/movieinput/movieinput.js | JavaScript | mpl-2.0 | 2,622 |
package com.servinglynk.hmis.warehouse.service.converter;
import com.servinglynk.hmis.warehouse.core.model.Site;
import com.servinglynk.hmis.warehouse.enums.SitePrincipalSiteEnum;
import com.servinglynk.hmis.warehouse.enums.StateEnum;
public class SiteConverter extends BaseConverter {
public static com.servinglynk... | servinglynk/hmis-lynk-open-source | hmis-service-v2016/src/main/java/com/servinglynk/hmis/warehouse/service/converter/SiteConverter.java | Java | mpl-2.0 | 1,973 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html data-context="Build Apps" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<title>AT Commands - Legato Docs</title>
<meta cont... | legatoproject/legato-docs | 18_01/legatoAtServices.html | HTML | mpl-2.0 | 4,187 |
/*
This file is part of the Geometry library.
Copyright (C) 2011-2012 Benjamin Eikel <benjamin@eikel.org>
Copyright (C) 2012 Claudius Jähn <claudius@uni-paderborn.de>
Copyright (C) 2019 Sascha Brandt <sascha@brandt.graphics>
This library is subject to the terms of the Mozilla Public License, v. 2.0.
You should h... | PADrend/Geometry | tests/TetrahedronTest.cpp | C++ | mpl-2.0 | 8,337 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.