code stringlengths 3 1.05M | repo_name stringlengths 4 116 | path stringlengths 3 942 | language stringclasses 30
values | license stringclasses 15
values | size int32 3 1.05M |
|---|---|---|---|---|---|
//
// JDPCatThumbnailCell.h
// Cat Chat
//
// Created by Joel Parsons on 05/05/2014.
// Copyright (c) 2014 Joel Parsons. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface JDPCatThumbnailCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imageView;
@end
| cat-chat/catchat-ios | Cat Chat/JDPCatThumbnailCell.h | C | mpl-2.0 | 296 |
<!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 `Xpermalloc` fn in crate `x11`.">
<meta name="keywords" con... | susaing/doc.servo.org | x11/xlib/fn.Xpermalloc.html | HTML | mpl-2.0 | 4,099 |
package etomica.normalmode.nptdemo;
import java.awt.Color;
import etomica.api.IAtom;
import etomica.api.IAtomList;
import etomica.api.IBoundary;
import etomica.api.IBox;
import etomica.api.IVector;
import etomica.api.IVectorMutable;
import etomica.graphics.ColorSchemeCollectiveAgent;
import etomica.nbr.list.NeighborL... | ajschult/etomica | etomica-apps/src/main/java/etomica/normalmode/nptdemo/ColorSchemeScaledOverlap.java | Java | mpl-2.0 | 4,038 |
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* 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.mozilla.javascript.or... | WolframG/Rhino-Prov-Mod | src/org/mozilla/javascript/orginal/ast/UnaryExpression.java | Java | mpl-2.0 | 4,690 |
/*~
* Copyright (C) 2013 - 2016 George Makrydakis <george@irrequietus.eu>
*
* This file is part of 'clause', a highly generic C++ meta-programming library,
* subject to the terms and conditions of the Mozilla Public License v 2.0. If
* a copy of the MPLv2 license text was not distributed with this file, you can
... | irrequietus/clause | clause/ppmpf/vxpp/slots/func/arty/arty74.hh | C++ | mpl-2.0 | 4,493 |
/*
* 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 (c) 2019, Joyent, Inc.
*/
var mod_fs = require('fs');
var mod_path = require('path');
var mo... | joyent/sdc-hermes | lib/logsets.js | JavaScript | mpl-2.0 | 2,593 |
use std::time::Instant;
use super::{ParseErrB, ParseTree, Parser};
#[test]
#[ignore]
fn remove_comments() -> Result<(), nom::Err<ParseErrB<'static>>> {
const REPETITIONS: i32 = 10_000;
const SOURCE: &[u8] = b"
/* stuff */
# one line comment
( # first scope
(... | iduartgomez/simag | simag_core/src/agent/lang/parser/test/bench.rs | Rust | mpl-2.0 | 2,040 |
<!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 `CRYPTO_num_locks` fn in crate `openssl_sys`.">
<meta name=... | susaing/doc.servo.org | openssl_sys/fn.CRYPTO_num_locks.html | HTML | mpl-2.0 | 3,896 |
/* -*- 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/grid/GridTrack.h | C | mpl-2.0 | 1,431 |
/*
* Copyright © 2016 Mathias Doenitz
*
* 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 agre... | sirthias/swave | core/src/main/java/swave/core/impl/Statics.java | Java | mpl-2.0 | 1,574 |
// Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Mozilla Public License v2.0
package oci
import (
"context"
"fmt"
"testing"
"time"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
"github.com/... | oracle/terraform-provider-baremetal | oci/kms_key_test.go | GO | mpl-2.0 | 18,702 |
package org.bear.bookstore.concurrent;
import java.util.PriorityQueue;
public class PriorityQueueTest {
public static void main(String[] args) {
PriorityQueue<String> queue = new PriorityQueue<>((a,b)->{
return a.compareTo(b);
});
queue.add("a");
queue.add("x");
queue.add("c");
queue.add("e");
qu... | zhougithui/bookstore-single | src/test/java/org/bear/bookstore/concurrent/PriorityQueueTest.java | Java | mpl-2.0 | 831 |
// Copyright 2020 Google LLC
//
// 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 in w... | hartsock/vault | vendor/google.golang.org/genproto/googleapis/monitoring/v3/alert.pb.go | GO | mpl-2.0 | 58,646 |
package gotry
import (
"errors"
"testing"
"time"
)
func TestTry_noError(t *testing.T) {
r := Retry{}
attempt := 0
err := Try(func() error {
attempt++
return nil
}, r)
if err != nil {
t.Fatal(err)
}
expected := 1
if attempt != expected {
t.Errorf("expected attempt to be %d got %d", expected, attem... | selimekizoglu/gotry | gotry_test.go | GO | mpl-2.0 | 1,117 |
#!/usr/bin/env python
'''
THIS APP IS NOT PRODUCTION READY!! DO NOT USE!
Flask app that provides a RESTful API to MultiScanner.
Supported operations:
GET / ---> Test functionality. {'Message': 'True'}
GET /api/v1/files/<sha256>?raw={t|f} ----> download sample, defaults to passwd protected zip
GET /api/v1/modules --->... | awest1339/multiscanner | utils/api.py | Python | mpl-2.0 | 30,509 |
/*
* Copyright (c) 2013-2016, 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/.
*/
define([
'require',
'modul... | seedstack/w20-business-theme | modules/main.js | JavaScript | mpl-2.0 | 11,739 |
package aws
import (
"fmt"
"testing"
"github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
)
func TestAccDataSourceAwsSubnet_basic(t *testing.T) {
rInt := acctest.RandIntRange(0, 256)
cidr := fmt.Sprintf("172.%d.123.0/24", rInt)
tag := "tf-acc-s... | kjmkznr/terraform-provider-aws | aws/data_source_aws_subnet_test.go | GO | mpl-2.0 | 11,340 |
<div class="page-content">
<div class="row">
<!-- include the sidebar -->
<div ng-include="'views/sidebar.html'"></div>
<div class="col-md-10">
<div class="content-box-large">
<div class="panel-heading">
<div class="panel-title">
<h2><i class="glyphicon glyphicon-cog"><... | catherineting/openhim-console | app/views/logs.html | HTML | mpl-2.0 | 2,522 |
/* 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/. */
'use strict';
const { Cu } = require('chrome');
const sp = require('sdk/simple-prefs');
const app = require('sdk/s... | Yukarumya/Yukarum-Redfoxes | addon-sdk/source/test/addons/simple-prefs/lib/main.js | JavaScript | mpl-2.0 | 5,341 |
#ifndef RBX_GC_IMMIX_HPP
#define RBX_GC_IMMIX_HPP
#include "memory/address.hpp"
#include "memory/immix_region.hpp"
#include "memory/gc.hpp"
#include "exception.hpp"
#include "object_position.hpp"
namespace rubinius {
class Memory;
namespace memory {
class ImmixGC;
class ImmixMarker;
/**
* ImmixGC uses t... | jsyeo/rubinius | machine/memory/immix_collector.hpp | C++ | mpl-2.0 | 4,136 |
/* 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/. */
//! CSS table formatting contexts.
#![deny(unsafe_code)]
use app_units::Au;
use context::LayoutContext;
use disp... | shssoichiro/servo | components/layout/table_colgroup.rs | Rust | mpl-2.0 | 4,289 |
GM.Version = "2.4.3"
GM.Name = "DarkRP"
GM.Author = "By Rickster, Updated: Pcwizdan, Sibre, philxyz, [GNC] Matt, Chrome Bolt, FPtje Falco, Eusion, Drakehawke"
DeriveGamemode("sandbox")
util.PrecacheSound("earthquake.mp3")
CUR = "$"
/*---------------------------------------------------------------------------
Names
--... | AccroGaming/Accro-DarkRP | DarkRP/gamemode/cl_init.lua | Lua | mpl-2.0 | 16,674 |
/*
* Copyright (c) 2012-2016 Arne Schwabe
* Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt
*/
package de.blinkt.openvpn.api;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android... | yonadev/yona-app-android | openvpn/src/main/java/de/blinkt/openvpn/api/ExternalAppDatabase.java | Java | mpl-2.0 | 1,694 |
# XMoon

Fork of the theme "MacOSX Theme" by GOLF-AT for Pale Moon.
## Building
Simply download the contents of the "src" folder and pack the contents into a .zip file. Then, rename the file to .xpi and drag into the browser.
On Unix systems (or Windows 10, with [WSL](http... | Lootyhoof/xmoon | README.md | Markdown | mpl-2.0 | 774 |
set :base_url, "https://www.consul.io/"
activate :hashicorp do |h|
h.name = "consul"
h.version = "1.4.0"
h.github_slug = "hashicorp/consul"
end
helpers do
# Returns a segment tracking ID such that local development is not
# tracked to production systems.
def segmentId()
if (ENV['ENV'] == 'p... | youhong316/consul | website/config.rb | Ruby | mpl-2.0 | 2,474 |
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Magic Modules and manual
// ... | terraform-providers/terraform-provider-google | google/resource_compute_instance_group_named_port_sweeper_test.go | GO | mpl-2.0 | 4,472 |
<!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 `load_with` fn in crate `servo`.">
<meta name="keywords" co... | servo/doc.servo.org | servo/gl/GetRenderbufferParameteriv/fn.load_with.html | HTML | mpl-2.0 | 4,662 |
<!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 `GLhalf` type in crate `gleam`.">
<meta name="keywords" con... | susaing/doc.servo.org | gleam/ffi/types/type.GLhalf.html | HTML | mpl-2.0 | 4,108 |
---
subcategory: "VPC"
layout: "aws"
page_title: "AWS: aws_vpc_peering_connection_accepter"
description: |-
Manage the accepter's side of a VPC Peering Connection.
---
# Resource: aws_vpc_peering_connection_accepter
Provides a resource to manage the accepter's side of a VPC Peering Connection.
When a cross-account... | kjmkznr/terraform-provider-aws | website/docs/r/vpc_peering_connection_accepter.html.markdown | Markdown | mpl-2.0 | 5,000 |
/*
* <?xml version="1.0" encoding="utf-8"?><!--
* ~ Copyright (c) 2018 Stichting Yona Foundation
* ~
* ~ 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 https://mozilla.org/MPL/2.0/.... | yonadev/yona-app-android | app/src/main/java/nu/yona/app/enums/UserStatus.java | Java | mpl-2.0 | 448 |
/*
* Copyright 2016-2017, Simula Research Laboratory
*
* 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/.
*/
#pragma once
#include "sift_pyramid.h"
#include "sift_oct... | poparteu/popsift | src/popsift/s_desc_notile.h | C | mpl-2.0 | 500 |
function (user, context, callback) {
// dictionary of applications and their related mozillians groups to worry about
const applicationGroupMapping = {
'EnEylt4OZW6i7yCWzZmCxyCxDRp6lOY0': 'mozilliansorg_ghe_saml-test-integrations_users',
};
const fetch = require('node-fetch@2.6.0');
const AUTH0_TIMEOUT ... | mozilla-iam/auth0-deploy | rules/GHE-Groups.js | JavaScript | mpl-2.0 | 4,302 |
#include <cllogger.h>
#include <stdarg.h>
#ifdef CC_PF_WIN32
# include <process.h>
#endif
cl::ClLogger::ClLogger()
: m_write_interval(CL_INIT_WRITE_INTERVAL),
m_check_interval(CL_INIT_CHECK_INTERVAL),
m_stop_times(CL_INIT_STOP_TIMES),
m_stop_count(CL_INIT_STOP_COUNT),
m_write_flag(false... | araraloren/FunctionFind | cpplogger/cllogger.cpp | C++ | mpl-2.0 | 8,085 |
var toolURL = {
'application/x-popcorn': 'https://popcorn.webmaker.org',
'application/x-thimble': 'https://thimble.webmaker.org',
'application/x-x-ray-goggles': 'https://goggles.mozilla.org'
};
module.exports = function (options) {
var moment = require('moment');
var MakeClient = require('makeapi-client');
... | mozilla/webmaker.org | lib/makeapi.js | JavaScript | mpl-2.0 | 4,168 |
#pragma once
#include "ogr_feature.h"
#include <set>
class Shape2Ogr
{
public:
static bool Shapefile2OgrLayer(IShapefile* sf, OGRLayer* poLayer, bool saveLabels, ICallback* callback = NULL);
static int SaveShapefileChanges(OGRLayer* poLayer, IShapefile* shapefile,
long shapeCmnIndex, tkOgrSaveType saveTy... | MapWindow/MapWinGIS | src/Ogr/Shape2Ogr.h | C | mpl-2.0 | 2,223 |
#!/usr/bin/python3
from lxml import etree
import sys
class Word:
def __init__(self):
self.word = ''
self.pos = ''
self.props = []
def __hash__(self):
return (self.word + self.pos).__hash__()
def __cmp__(self, other):
n = cmp(self.word, other.word)
if n != 0:... | changwoo/hunspell-dict-ko | utils/findduplicates.py | Python | mpl-2.0 | 1,426 |
/*
* This file is part of Fluid.
*
* Copyright (C) 2017 Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
*
* $BEGIN_LICENSE:MPL2$
*
* 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://mo... | territorium/fluid | src/demo/iconcategorymodel.h | C | mpl-2.0 | 902 |
<?php
/**
* Jamroom 5 User Accounts module
*
* copyright 2003 - 2015
* by The Jamroom Network
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. Please see the included "license.html" file.
*
* This module may include works that are not developed by
* The Jamroom Netwo... | jeffreybrayne/TheBreakContest | modules/jrUser/quota.php | PHP | mpl-2.0 | 5,055 |
<!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>le_flash_interface.h File Reference - Legato ... | legatoproject/legato-docs | 17_08/le__flash__interface_8h.html | HTML | mpl-2.0 | 17,566 |
/*
* Copyright (C) 2019 DataSwift Ltd - All Rights Reserved
* 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/.
* Written by Eleftherios Myteletsis <eleftherios.mytelet... | Hub-of-all-Things/Rumpel | src/app/settings/settings-page/settings-page.component.ts | TypeScript | mpl-2.0 | 649 |
/* Created by Blake Gideon. <blake at chicagoan.io>
*
* 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 io.chicagoan.ctawaittime;
import android.telephony... | ChicagoDev/Android_CTA_Bus_Tracker | app/src/main/java/io/chicagoan/ctawaittime/SmsStateListener.java | Java | mpl-2.0 | 833 |
# 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/.
# Future Modules:
from __future__ import annotations
# Built-in Modules:
import threading
from collections.abc import ... | nstockton/mapperproxy-mume | mapper/delays.py | Python | mpl-2.0 | 3,316 |
// META: timeout=long
// META: script=../util/helpers.js
// META: script=failures.js
run_test(["AES-CTR"]);
| mbrubeck/servo | tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.any.js | JavaScript | mpl-2.0 | 108 |
from tqdm import tqdm
from django.core.management.base import BaseCommand
from django.db.models import Exists, OuterRef
from ...models import Locality, Operator, Service
class Command(BaseCommand):
def handle(self, *args, **options):
for locality in tqdm(Locality.objects.with_documents()):
loc... | jclgoodwin/bustimes.org.uk | busstops/management/commands/update_search_indexes.py | Python | mpl-2.0 | 1,072 |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-05-01 08:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('os2webscanner', '0013_auto_20180501_1006'),
]
operations = [
migrations.AlterModelT... | os2webscanner/os2webscanner | django-os2webscanner/os2webscanner/migrations/0014_auto_20180501_1010.py | Python | mpl-2.0 | 408 |
/* 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/. */
pvc.BaseChart
.add({
/**
* A map of {@link pvc.visual.Role} by name.
* Do NOT modify the returned ob... | Abpaula/ccc | package-res/ccc/core/base/chart/chart.visualRoles.js | JavaScript | mpl-2.0 | 7,092 |
/**
* Add a context menu item to borderify the current tab.
*/
browser.menus.create({
id: "borderify-current-tab",
title: "Borderify current tab",
contexts: ["all"]
});
/**
* The borderify CSS.
*/
const borderCSS = 'body { border: 5px solid red };';
/*
* Borderifies the current tab, and, using setTabValue,... | mdn/webextensions-examples | session-state/background.js | JavaScript | mpl-2.0 | 1,698 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop.Outlook;
using Google.Apis.Calendar.v3.Data;
namespace OutlookGoogleCalendarSync.OutlookOgcs {
public interface Interface {
void Connect();
void Disconnect(Boolean onlyWhenNoGUI = f... | phw198/OutlookGoogleCalendarSync | src/OutlookGoogleCalendarSync/OutlookOgcs/OutlookInterface.cs | C# | mpl-2.0 | 1,665 |
/*----------------------------------------------------------
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/.
----------------------------------------------------------*/
u... | EvilBeaver/OneScript | src/oscript/MeasureBehavior.cs | C# | mpl-2.0 | 1,029 |
<!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 `MultiTexCoordP2uiv` fn in crate `gleam`.">
<meta name="key... | servo/doc.servo.org | gleam/gl/fn.MultiTexCoordP2uiv.html | HTML | mpl-2.0 | 4,604 |
/**
* An implementation for the IView, using SDL.
*
* License: Mozilla Public License Version 2.0 (https://www.mozilla.org/en-US/MPL/2.0/ OR See accompanying file LICENSE)
* Authors:
* - Dan Printzell
*/
#pragma once
#include <hydra/ext/api.hpp>
#include <hydra/view/view.hpp>
#include <memory>
namespace Hydra:... | HydraInteractive/Hydra | hydra_graphics/include/hydra/view/sdlview.hpp | C++ | mpl-2.0 | 433 |
<!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 `XKB_KEY_F28` constant in crate `wayland_kbd`.">
<meta name... | susaing/doc.servo.org | wayland_kbd/keysyms/constant.XKB_KEY_F28.html | HTML | mpl-2.0 | 3,958 |
define(['Container', 'NumberStyle'], function(Container, NumberStyle) {
/**
* Percentage, between cow and ship, that the beam should end at
* @const
* @type number
*/
var MAX_BEAM_DISTANCE = 100;
/**
* Percentage, between ship and cow, that the beam should start at
* @const
* @type number
... | BYU-ODH/vocal-abduction | app/js/Beam.js | JavaScript | mpl-2.0 | 8,135 |
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** Type: DCL ***
//
// ----------------------------------------------------------------------------
//
// This file is managed by Magic Modules (https://github.com/GoogleCloudPlatform/mag... | hashicorp/terraform-provider-google | google/resource_container_aws_node_pool_generated_test.go | GO | mpl-2.0 | 11,175 |
-- Resulting entity class must implement IProfileFieldValue
CREATE TABLE [dbo].CompanyProfileFields
(
[Id] INT NOT NULL IDENTITY (1, 1),
CompanyId INT NOT NULL, --
[ProfileFieldId] INT NOT NULL, --
[... | SparkleNetworks/SparkleNetworks | src/SparkleNetworks.Database/Schema Objects/Schemas/dbo/Tables/CompanyProfileFields.table.sql | SQL | mpl-2.0 | 1,205 |
//go:build !consulent
// +build !consulent
package structs
import (
"hash"
"github.com/hashicorp/consul/acl"
"github.com/hashicorp/consul/types"
)
var emptyEnterpriseMeta = EnterpriseMeta{}
// EnterpriseMeta stub
type EnterpriseMeta struct{}
func (m *EnterpriseMeta) ToEnterprisePolicyMeta() *acl.EnterprisePoli... | hashicorp/consul | agent/structs/structs_oss.go | GO | mpl-2.0 | 5,467 |
var wirelib = (function() {
var canvas, context, width, height, lines = [], cx, cy, cz, fl = 250, interval,
loopCallback, running;
function initWithCanvas(aCanvas) {
canvas = aCanvas;
if(canvas !== undefined) {
width = canvas.width;
height = canvas.heig... | heliogabalo/The-side-of-the-source | Codigo/Games/Efects/3D-wirelib/wirelib.js | JavaScript | mpl-2.0 | 7,221 |
/* Copyright 2014-2015 Drew Thoreson
*
* 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/.
*/
#ifndef _NAVI_LIB_H
#define _NAVI_LIB_H
#include "internal.h"
#include "... | drewt/navi-scheme | lib.h | C | mpl-2.0 | 4,523 |
/**
* Copyright (c) 2013-2016, 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.seed.web.int... | adrienlauer/seed | web/core/src/main/java/org/seedstack/seed/web/internal/websocket/SeedClientEndpointConfigurator.java | Java | mpl-2.0 | 837 |
function listener(details) {
let filter = browser.webRequest.filterResponseData(details.requestId);
let decoder = new TextDecoder("utf-8");
let encoder = new TextEncoder();
filter.ondata = event => {
let str = decoder.decode(event.data, {stream: true});
// Just change any instance of Example in ... | mdn/webextensions-examples | http-response/background.js | JavaScript | mpl-2.0 | 667 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Devices/Update.hs | Haskell | mpl-2.0 | 7,071 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
-- |
-- Module : Network.Google.CommentAnalyzer
-- Copyright : (c) 2015-2016 Brendan Hay
-- License : Mozi... | brendanhay/gogol | gogol-commentanalyzer/gen/Network/Google/CommentAnalyzer.hs | Haskell | mpl-2.0 | 4,253 |
/**
* Created by slanska on 2016-12-30.
*/
///<reference path="../typings/tsd.d.ts"/>
import {TestService} from './helper';
describe('rolesManagement', () =>
{
it('create a new role', (done) =>
{
done();
});
it('delete non referenced role', (done) =>
{
done();
});
it('... | slanska/nauth2 | test/09_RoleManagement.ts | TypeScript | mpl-2.0 | 938 |
<!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 `NOSTR` constant in crate `libc`.">
<meta name="keywords" c... | servo/doc.servo.org | libc/unix/notbsd/constant.NOSTR.html | HTML | mpl-2.0 | 4,539 |
/**
* 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 caesar = require("./caesar");
exports["test encrypt/decrypt"] = function(assert) {
/* verify decrypting... | jeffreystarr/plainsight-addon | test/test-caesar.js | JavaScript | mpl-2.0 | 1,791 |
# lipwig
Gerenciador financeiro para dispositivos móveis.
| ElSaico/lipwig | README.md | Markdown | mpl-2.0 | 59 |
package main
import (
"context"
"fmt"
"github.com/gogf/gf/v2/frame/g"
"github.com/gogf/gf/v2/i18n/gi18n"
)
func main() {
var (
orderId = 865271654
orderAmount = 99.8
)
fmt.Println(g.I18n().Tf(
gi18n.WithLanguage(context.TODO(), `en`),
`{#OrderPaid}`, orderId, orderAmount,
))
fmt.Println(g.I18n().... | EngineQ/gf | .example/i18n/gi18n/gi18n.go | GO | mpl-2.0 | 417 |
<!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_GetUint32ArrayData` fn in crate `js`.">
<meta name="key... | susaing/doc.servo.org | js/jsapi/fn.JS_GetUint32ArrayData.html | HTML | mpl-2.0 | 4,323 |
/* -*- Mode: C++; 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/. */
/* enum types for CSS properties a... | Yukarumya/Yukarum-Redfoxes | layout/style/nsCSSPropertyID.h | C | mpl-2.0 | 3,590 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!--
vim:sw=4:ts=4:et:
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 | tools/leak-gauge/leak-gauge.html | HTML | mpl-2.0 | 11,520 |
package contexts
import models.{AccessToken, User}
import play.api.libs.concurrent.Execution.Implicits.defaultContext
import roles.AuthenticatedUser
import scalikejdbc.async.{AsyncDB, AsyncDBSession}
import utils.Password
import utils.exceptions.InvalidUser
import scala.concurrent.Future
class AuthenticationContext ... | KIWIKIGMBH/kiwierp | kiwierp-backend/app/contexts/AuthenticationContext.scala | Scala | mpl-2.0 | 982 |
#include <iostream>
#include <cpplogger/cllogger.h>
#include <ccsseqqueue.h>
#include <cctest.h>
#include <functional>
#include <ffoption.h>
using namespace std;
int main(int argc, char** argv)
{
ff::CommandOption *ffop = ff::CommandOption::getInstance();
ffop->parseArgv(argc, argv);
ffop->debugOption()... | araraloren/FunctionFind | src/main.cpp | C++ | mpl-2.0 | 874 |
package main
import (
"fmt"
"testing"
)
var config ConfigFile = ConfigFile{}
var strmCfg = StreamConfig{
"streamName",
"name",
"type",
"url",
"StreamApiKey",
"RecordFormatString",
nil,
nil,
}
/*
* Valid configuration - take timestamp as is
*/
func TestValidateEmtpySrcDest(t *testing.T) {
var attrs = []A... | rem7/pushr | config_validate_timestamp_test.go | GO | mpl-2.0 | 3,623 |
/* 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/. */
<%namespace name="helpers" file="/helpers.mako.rs" />
<% data.new_style_struct("Background", inherited=False) %>
... | mhaessig/servo | components/style/properties/longhand/background.mako.rs | Rust | mpl-2.0 | 8,891 |
<!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 `FIONREAD` constant in crate `libc`.">
<meta name="keywords... | servo/doc.servo.org | libc/linux/other/constant.FIONREAD.html | HTML | mpl-2.0 | 4,584 |
<?php
namespace Honeybee\Infrastructure\Migration;
use Honeybee\Common\Error\RuntimeError;
use Honeybee\Common\Util\PhpClassParser;
use Honeybee\Common\Util\StringToolkit;
use Honeybee\Infrastructure\Config\ConfigInterface;
use Honeybee\ServiceLocatorInterface;
use Symfony\Component\Finder\Finder;
class FileSystemLo... | honeybee/honeybee | src/Infrastructure/Migration/FileSystemLoader.php | PHP | mpl-2.0 | 2,574 |
<!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_TraceChildren` fn in crate `js`.">
<meta name="keywords... | susaing/doc.servo.org | js/jsapi/fn.JS_TraceChildren.html | HTML | mpl-2.0 | 4,300 |
################################################################################
# THIS FILE IS 100% GENERATED BY ZPROJECT; DO NOT EDIT EXCEPT EXPERIMENTALLY #
# Please refer to the README for information about making permanent changes. #
#############################################################################... | taotetek/zchannel | bindings/ruby/lib/zchannel/ffi.rb | Ruby | mpl-2.0 | 1,821 |
/* 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/. */
//! Computed values for font properties
use Atom;
use app_units::Au;
use byteorder::{BigEndian, ByteOrder};
use c... | fiji-flo/servo | components/style/values/computed/font.rs | Rust | mpl-2.0 | 27,408 |
/*
* 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.volumetricpixels.questy.test;
import org.junit.Assert;
import org.junit.Test;
import com.volumetr... | VolumetricPixels/Questy | src/test/java/com/volumetricpixels/questy/test/EventsTest.java | Java | mpl-2.0 | 1,392 |
/* 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 etomica.data.meter;
import etomica.data.DataSourceScalar;
import etomica.integrator.IntegratorMD;
import ... | ajschult/etomica | etomica-core/src/main/java/etomica/data/meter/MeterKineticEnergyFromIntegrator.java | Java | mpl-2.0 | 1,108 |
# random
Aplicación que determina si un número entre 0 y 1 es mayor o menor que 0,5
| jogubern/random | README.md | Markdown | mpl-2.0 | 86 |
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=566046
-->
<head>
<title>Test for Bug 566046</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
<link rel="sty... | Yukarumya/Yukarum-Redfoxes | dom/html/test/test_bug566046.html | HTML | mpl-2.0 | 7,469 |
/**
* The title screen.
*/
// SDK imports
import ui.View;
import ui.ImageView;
import ui.TextView as TextView;
import ui.widget.ButtonView as ButtonView;
exports = Class(ui.ImageView, function (supr) {
this.init = function (opts) {
this._config = JSON.parse(CACHE['resources/conf/config.json']);
... | spil-peter-forgacs/weebubble | src/TitleScreen.js | JavaScript | mpl-2.0 | 1,827 |
package org.mozilla.mozstumbler;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.TextView;
public class AboutActivity extends Activity {
private static final String ABOUT_PAGE_UR... | 5y/MozStumbler | src/org/mozilla/mozstumbler/AboutActivity.java | Java | mpl-2.0 | 1,423 |
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators ... | brendanhay/gogol | gogol-speech/gen/Network/Google/Resource/Speech/Speech/Recognize.hs | Haskell | mpl-2.0 | 4,663 |
#include "plastiqmethod.h"
#include "plastiqqvboxlayout.h"
#include "widgets/PlastiQQBoxLayout/plastiqqboxlayout.h"
#include <QVBoxLayout>
QHash<QByteArray, PlastiQMethod> PlastiQQVBoxLayout::plastiqConstructors = {
{ "QVBoxLayout()", { "QVBoxLayout", "", "QVBoxLayout*", 0, PlastiQMethod::Public, PlastiQMethod::... | ArtMares/PQStudio | Builder/plastiq/include/widgets/PlastiQQVBoxLayout/plastiqqvboxlayout.cpp | C++ | mpl-2.0 | 4,622 |
#[macro_use]
mod util;
mod colors {
mod plain {
test_cmd!(
args: "generate tree",
success: true,
color_mode: ColorMode::Plain,
project: smoke
);
}
}
mod default {
mod pass {
test_cmds!(
args: "generate tree",
s... | regexident/cargo-modules | tests/generate_tree.rs | Rust | mpl-2.0 | 9,150 |
<!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 `XKB_KEY_Kcedilla` constant in crate `wayland_kbd`.">
<meta... | servo/doc.servo.org | wayland_kbd/ffi/keysyms/constant.XKB_KEY_Kcedilla.html | HTML | mpl-2.0 | 4,368 |
# 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/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.
... | bugzilla/bugzilla | t/Support/Templates.pm | Perl | mpl-2.0 | 3,111 |
package arm
import (
"context"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
"github.com/hashicorp/packer/builder/azure/common/constants"
)
type StepSetCertificate struct {
config *Config
say func(message string)
error func(e error)
}
func Ne... | ricardclau/packer | builder/azure/arm/step_set_certificate.go | GO | mpl-2.0 | 941 |
<!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 `_Z28JS_DecodeInterpretedFunctionP9JSContextPKvj` fn in crate `... | susaing/doc.servo.org | js/jsapi/fn._Z28JS_DecodeInterpretedFunctionP9JSContextPKvj.html | HTML | mpl-2.0 | 4,564 |
<!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 `FT_Err_Post_Table_Missing` constant in crate `freetype`.">
... | susaing/doc.servo.org | freetype/freetype/constant.FT_Err_Post_Table_Missing.html | HTML | mpl-2.0 | 4,026 |
{# 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/. #}
{% extends "mozorg/contact/contact-base.html" %}
{% block page_title %}{{ _('Contacts, Spaces and Communities') }} ... | ckprice/bedrock | bedrock/mozorg/templates/mozorg/contact/communities/united-kingdom.html | HTML | mpl-2.0 | 1,212 |
#include "stdafx.h"
#include "Map.h"
#include "ShapeEditor.h"
#include "EditorHelper.h"
#include "MeasuringHelper.h"
// *******************************************************
// OnSetCursor()
// *******************************************************
BOOL CMapView::OnSetCursor(CWnd* pWnd, UINT nHitTest, UIN... | MapWindow/MapWinGIS | src/Control/Map_Cursors.cpp | C++ | mpl-2.0 | 5,919 |
window.onload = function() {
// We are the parent. Let's load the test.
if (parent == this || location.search.indexOf("worklet_iframe") == -1) {
SimpleTest.waitForExplicitFinish();
configureTest().then(() => {
var iframe = document.createElement('iframe');
iframe.src = location.href + "?worklet... | Yukarumya/Yukarum-Redfoxes | dom/worklet/tests/common.js | JavaScript | mpl-2.0 | 604 |
<!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 `EPOLLRDHUP` constant in crate `libc`.">
<meta name="keywor... | servo/doc.servo.org | libc/linux/constant.EPOLLRDHUP.html | HTML | mpl-2.0 | 4,402 |
#! /bin/bash
#
# 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/.
########################################################################
#
# tests/pk11_gtests/pk11_gtest... | chombourger/efup | external/nss/tests/pk11_gtests/pk11_gtests.sh | Shell | mpl-2.0 | 2,411 |
// ----------------------------------------------------------------------------
//
// *** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
//
// ----------------------------------------------------------------------------
//
// This file is automatically generated by Magic Modules and manual
// ... | terraform-providers/terraform-provider-google | google/resource_compute_router_nat_sweeper_test.go | GO | mpl-2.0 | 3,727 |
package openstack
import (
"context"
"fmt"
imageservice "github.com/gophercloud/gophercloud/openstack/imageservice/v2/images"
"github.com/hashicorp/packer-plugin-sdk/multistep"
packersdk "github.com/hashicorp/packer-plugin-sdk/packer"
)
type stepUpdateImageVisibility struct{}
func (s *stepUpdateImageVisibility... | ricardclau/packer | builder/openstack/step_update_image_visibility.go | GO | mpl-2.0 | 1,429 |