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 |
|---|---|---|---|---|---|
@include('mage2-ecommerce::forms.text',['name' => 'name','label' => 'Name'])
@include('mage2-ecommerce::forms.text',['name' => 'slug','label' => 'Slug'])
@include('mage2-ecommerce::forms.textarea',['name' => 'content',
'label' => 'Content',
... | peerrabe/laravel-ecommerce | modules/mage2/ecommerce/resources/views/admin/page/_fields.blade.php | PHP | gpl-3.0 | 596 |
<!doctype html>
<!-- The DOCTYPE declaration above will set the -->
<!-- browser's rendering engine into -->
<!-- "Standards Mode". Replacing this declaration -->
<!-- with a "Quirks Mode" doctype may lead to some -->
<!-- differences in layout. -->
<html>
<head>
<meta ht... | pablodanielrey/phone | assistance/src/main/webapp/assistancePhone.html | HTML | gpl-3.0 | 2,214 |
##
# This module requires Metasploit: http://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
require 'msf/core'
class Metasploit3 < Msf::Exploit::Remote
Rank = GoodRanking
include Msf::Exploit::Remote::Egghunter
include Msf::Exploit::Remote::Tcp
def initialize(inf... | cSploit/android.MSF | modules/exploits/windows/scada/igss9_igssdataserver_listall.rb | Ruby | gpl-3.0 | 4,961 |
<script>
$(function(){
var nik = {};
nik.results = [
<?php foreach($penduduk as $data){?>
{id:'<?php echo $data['id']?>',name:"<?php echo $data['nik']." - ".($data['nama'])?>",info:"<?php echo ($data['alamat'])?>"},
<?php }?>
];
$('#nik').flexbox(nik, {
resultTemplate: '<div><label>No nik : </label>{name}</div><div>{i... | prihantosimbah/OpenSID-1 | surat/surat_ket_kurang_mampu/surat_ket_kurang_mampu.php | PHP | gpl-3.0 | 2,806 |
using System.IO;
using System.Runtime.Serialization;
using WolvenKit.CR2W.Reflection;
using FastMember;
using static WolvenKit.CR2W.Types.Enums;
namespace WolvenKit.CR2W.Types
{
[DataContract(Namespace = "")]
[REDMeta]
public class CAIDismountHorse : CAIRidingSubTree
{
public CAIDismountHorse(CR2WFile cr2w, CVa... | Traderain/Wolven-kit | WolvenKit.CR2W/Types/W3/RTTIConvert/CAIDismountHorse.cs | C# | gpl-3.0 | 667 |
/*
Automatic JavaScript Invariants is a plugin for Crawljax that can be
used to derive JavaScript invariants automatically and use them for
regressions testing.
Copyright (C) 2010 crawljax.com
This program is free software: you can redistribute it and/or modify
it under the terms of the... | shauvik/crawljax-plugins | invarscope/javascript-invariants/src/main/java/com/crawljax/plugins/aji/JSModifyProxyPlugin.java | Java | gpl-3.0 | 8,868 |
/*
Part of the NETLab Hub, which is part of the NETLab Toolkit project - http://netlabtoolkit.org
Copyright (c) 2006-2013 Ewan Branda
NETLab Hub 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 o... | netlabtoolkit/hub | src/java/netlab/hub/processing/desktop/DevLauncherApplet.java | Java | gpl-3.0 | 2,365 |
#include "exception/ColorOutOfRangeException.h"
#include <string>
namespace Tales {
ColorOutOfRangeException::ColorOutOfRangeException(
const char* nameOfSourceFile__,
int lineNum__,
const std::string& source__,
int invalidIndex__)
: TalesException(nameOfSourceFile__,
lin... | suppertails66/tales | libtales/src/exception/ColorOutOfRangeException.cpp | C++ | gpl-3.0 | 599 |
package tmp.generated_xhtml;
import cide.gast.*;
import cide.gparser.*;
import cide.greferences.*;
import java.util.*;
public class Content_h5_Choice134 extends Content_h5_Choice1 {
public Content_h5_Choice134(Element_script element_script, Token firstToken, Token lastToken) {
super(new Property[] {
... | ckaestne/CIDE | CIDE_Language_XML_concrete/src/tmp/generated_xhtml/Content_h5_Choice134.java | Java | gpl-3.0 | 823 |
package dooooom.jmpd.data;
import com.mpatric.mp3agic.*;
import java.io.IOException;
/**
* REQUIRES THE com PACKAGE IN our src FOLDER (https://github.com/mpatric/mp3agic/tree/master/src/main/java)
*
* This class will carry out operations to extract diverse information from
* the ID3 tag of a specified mp3 file.... | DOOOOOM/jmpd-shared | src/dooooom/jmpd/data/MetadataExtractor.java | Java | gpl-3.0 | 5,268 |
"""Namegame, where you try to remember a team number starting with the last number of the previous played team"""
import asyncio
import gzip
import pickle
import traceback
from collections import OrderedDict
from functools import wraps
import discord
import tbapi
from discord.ext.commands import has_permissions
from f... | FRCDiscord/Dozer | dozer/cogs/namegame.py | Python | gpl-3.0 | 37,558 |
# Hey Emacs, this is a -*- makefile -*-
#----------------------------------------------------------------------------
# WinAVR Makefile Template written by Eric B. Weddington, Jörg Wunsch, et al.
#
# Released to the Public Domain
#
# Additional material for this makefile was written by:
# Peter Fleury
# Tim Hen... | heiko-r/ChibiOS | testhal/AVR/SPI/Makefile | Makefile | gpl-3.0 | 18,094 |
#!/usr/bin/python
# This file is part of Ansible
#
# Ansible 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.
#
# Ansible is distributed... | dustymabe/ansible-modules-core | cloud/amazon/ec2_elb_lb.py | Python | gpl-3.0 | 52,548 |
# coding: utf-8
from __future__ import absolute_import
from .base_model_ import Model
from datetime import date, datetime
from typing import List, Dict
from ..util import deserialize_model
class StorageData(Model):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit ... | turdusmerula/kipartman | kipartbase/swagger_server/models/storage_data.py | Python | gpl-3.0 | 2,758 |
package com.cohenadair.anglerslog.views;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.cohenadair.anglerslog.R;
import com.cohenadair.anglerslog.utilities.ViewUtils;
/**
* An ab... | cohenadair/anglers-log | android/app/src/main/java/com/cohenadair/anglerslog/views/LeftIconView.java | Java | gpl-3.0 | 1,654 |
#pragma once
#include <windows.h>
#include <algorithm>
#include <neurology/allocators/void.hpp>
#include <neurology/exception.hpp>
namespace Neurology
{
/**
Copy data from one process-local buffer to another.
*/
LONG CopyData(LPVOID destination, const LPVOID source, SIZE_T size);
class KernelFaul... | frank2/neurology | src/include/neurology/allocators/local.hpp | C++ | gpl-3.0 | 1,845 |
---
layout: post
title: core/ngx_regex.h头文件分析
tags:
- nginx
categories: nginx
description: nginx源代码分析
---
本章我们主要讲述一下nginx中表达式匹配(ngx_regex)的实现。
<!-- more -->
## 1. ngx_regex_t数据结构
{% highlight string %}
/*
* Copyright (C) Igor Sysoev
* Copyright (C) Nginx, Inc.
*/
#ifndef _NGX_REGEX_H_INCLUDED_
#define _NGX_... | ivanzz1001/records | _posts/nginx/2018-11-20-nginx-source_part56_3.md | Markdown | gpl-3.0 | 5,671 |
@extends('layouts.master')
@section('header-title')
Edit education degree
@stop
@section('stylesheets')
<link rel="stylesheet" href="{{ asset('css/profile_page.css')}}">
<link rel="stylesheet" href="{{ asset('css/edit_user.css')}}">
@stop
@section('content')
<div class="content-wrapper">
... | ntja/smartschool | v1/admin/resources/views/settings/educationdegrees/item.blade.php | PHP | gpl-3.0 | 2,319 |
module Api
module V1
class ApplicationsController < ApplicationController
before_action :identity
def index
applications = Application.all
render json: applications, status: :ok
end
def show
logger.info "#{__method__}"
id = params[:id]
application= Application.find(id)
... | mariogalvez17/ejerciciosRankmi | ejercicio4/ejercicio4-api/app/controllers/api/v1/applications_controller.rb | Ruby | gpl-3.0 | 671 |
#!/bin/bash
#
# Script (ssdtPRGen.sh) to create ssdt-pr.dsl for Apple Power Management Support.
#
# Version 0.9 - Copyright (c) 2012 by RevoGirl
#
# Version 18.8 - Copyright (c) 2014 by Pike <PikeRAlpha@yahoo.com>
#
# Readme......: https://github.com/Piker-Alpha/ssdtPRGen.sh/blob/master/README.md
#
# Change log..: http... | packingbox/Acer-TravelMate-P236-m | tools/ssdtPRGen.sh | Shell | gpl-3.0 | 151,125 |
#ifndef COMMON_H
#define COMMON_H
// ********** Globale Einstellungen zum Layout und zur Version **************
#define IICTEST
#define USE_LED_BUILTIN
String mVersionNr = "V01-00-03.";
// ********** Ende der Einstellungen ****************************************
#include <TimeLib.h> //<Time.h> http://www... | Man-fred/esp_schaltbare_Steckdose | common.h | C | gpl-3.0 | 2,160 |
// Generated by rstantools. Do not edit by hand.
/*
MADPop 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.
MADPop is d... | mlysy/MADPop | src/stanExports_DirichletMultinomial.h | C | gpl-3.0 | 25,278 |
//
// Created by artyom on 14.02.16.
//
#ifndef LAB1_SIMPLE_COUNT_H
#define LAB1_SIMPLE_COUNT_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <omp.h>
#include <thread>
#include "utils.h"
#ifdef WITH_OPENMP
const int defaultThreadCount = omp_get_num_procs();
#else
const int defaultThreadCount = ... | h31/ParallelComputing | count.h | C | gpl-3.0 | 4,975 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_25) on Mon Nov 10 16:11:28 MST 2014 -->
<title>User</title>
<meta name="date" content="2014-11-10">
<link rel="stylesheet" type="text/css" href... | CMPUT-301F14T10/project | Doc/javadoc/ca/ualberta/cs/queueunderflow/User.html | HTML | gpl-3.0 | 14,795 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Wa... | wolf-mtwo/lagash-server | LagashServer/Wolf.Core.EntityFramework/Properties/AssemblyInfo.cs | C# | gpl-3.0 | 1,448 |
/*
* Project: jsProject Examples
*
* File: translationsModule.js
*
* Purpose:
* creates a json object with translations
* adds the application function: getTranslation to the application
*
* Last Revision: 21-03-2017
*
* Author: Sharesoft
* Web: www.sharesoft.nl
* Mai... | SharesoftNL/jsProject | examples/settings/translationsModule_en.js | JavaScript | gpl-3.0 | 7,861 |
module ReviewVotesHelper
end
| OpenFn/OpenFn-Site | app/helpers/review_votes_helper.rb | Ruby | gpl-3.0 | 29 |
// Copyright (C) 2013 Andrea Esuli (andrea@esuli.it)
//
// 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 ... | aesuli/dotnet-base | ToLower/ToLower.cs | C# | gpl-3.0 | 2,996 |
//Mepinta
//Copyright (c) 2011-2012, Joaquin G. Duo, mepinta@joaquinduo.com.ar
//
//This file is part of Mepinta.
//
//Mepinta 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, o... | joaduo/mepinta | backend/c_and_cpp/backend_api_cpp/TypedCollectorManager.h | C | gpl-3.0 | 2,111 |
/*
* Copyright 2010-2015 OpenXcom Developers.
*
* This file is part of OpenXcom.
*
* OpenXcom 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 ... | Stalkstalks/OpenXcom | src/Battlescape/Projectile.cpp | C++ | gpl-3.0 | 14,629 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<title>ШБТ Андеор</title>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="st... | AlexeiOvcharov/andeor-dance | index.html | HTML | gpl-3.0 | 22,961 |
package org.jeppers.swing.spreadsheet;
/*
* CellSpan.java
*
* Created on 4 July 2002, 12:51
*/
/**
*
* @author Cameron Zemek
* @version 1.0
*/
public interface CellSpan {
public int getRow();
public int getColumn();
public int getRowCount();
public int getColumnCount();
}
| sinapsmarketing/scrape-it-screen-scraper-master | src/org/jeppers/swing/spreadsheet/CellSpan.java | Java | gpl-3.0 | 314 |
/*******************************************************************************
OpenAirInterface
Copyright(c) 1999 - 2014 Eurecom
OpenAirInterface 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 Foundati... | herlesupreeth/OAI-5G | openair3/TEST/EPC_TEST/play_scenario_decode.c | C | gpl-3.0 | 7,832 |
#!/bin/bash -e
# The xorgproto package provides the header files required to build the X
# Window system, and to allow other applications to build against the
# installed X Window system.
# Dependencies
# [Required]
# util-macros
. ../../../.env
version=2019.1
srcfil=xorgproto-$version.tar.bz2
srcdir=xorgproto-$v... | fangxinmiao/projects | Architeture/OS/Linux/Distributions/LFS/build-scripts/blfs-latest/scripts/x/xorg-proto/xorg-proto.sh | Shell | gpl-3.0 | 509 |
# -*- coding: utf-8 -*-
from __future__ import division
'''Test for checking variation of initial prestress force along a
post-tensioned member.
Data and rough calculation are taken from
Example 4.3 of the topic 4 of course "Prestressed Concrete Design
(SAB 4323) by Baderul Hisham Ahmad
ocw.utm.my
Problem stateme... | lcpt/xc | verif/tests/materials/prestressing/test_short_term_loss_prestress_01.py | Python | gpl-3.0 | 3,985 |
//------------------------------------------------------------------------------
// Copyright (C) 2016 Josi Coder
// 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 Lice... | JosiCoder/CtLab | Library/FpgaSignalGenerator.Interfaces/IUniversalCounter.cs | C# | gpl-3.0 | 2,929 |
#!/bin/bash
#
# Dutch to German - lines table
#
# Copyright (C) 2017-2018 be-rail@linuxunderground.be
# Distributed under the terms of the GNU General Public License v3
#
# Thanks to Claude, Alexandre and PPL (from ICFB) for translation.
#
# To be sure that sed will behave as expected :
export LC_COLLATE="C"
LINES_C... | linuxunderground/be-rail | scripts/nl2de_lines.sh | Shell | gpl-3.0 | 404 |
/*
Copyright © 2014-2015 by The qTox Project Contributors
This file is part of qTox, a Qt-based graphical interface for Tox.
qTox is libre 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 versi... | Grokafar/qTox | src/friendlist.cpp | C++ | gpl-3.0 | 2,424 |
/*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
qflia_tactic.cpp
Abstract:
Tactic for QF_NIA
Author:
Leonardo (leonardo) 2012-02-28
Notes:
--*/
#include"tactical.h"
#include"simplify_tactic.h"
#include"propagate_values_tactic.h"
#include"solve_eqs_tactic.h"
#include"... | cs-au-dk/Artemis | contrib/Z3/lib/qfnia_tactic.cpp | C++ | gpl-3.0 | 2,956 |
/* === This file is part of Tomahawk Player - <http://tomahawk-player.org> ===
*
* Copyright 2010-2011, Christian Muehlhaeuser <muesli@tomahawk-player.org>
* Copyright 2010-2011, Jeff Mitchell <jeff@tomahawk-player.org>
*
* Tomahawk is free software: you can redistribute it and/or modify
* it under the te... | mguentner/tomahawk | src/libtomahawk/widgets/infowidgets/ArtistInfoWidget.cpp | C++ | gpl-3.0 | 9,603 |
package microtrafficsim.core.serialization.kryo.impl.exfmt.entities;
import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryo.Serializer;
import com.esotericsoftware.kryo.io.Input;
import com.esotericsoftware.kryo.io.Output;
import microtrafficsim.core.exfmt.ecs.Component;
import microtrafficsim.core.ex... | sgs-us/microtrafficsim | microtrafficsim-core/src/main/java/microtrafficsim/core/serialization/kryo/impl/exfmt/entities/PolygonEntitySerializer.java | Java | gpl-3.0 | 1,297 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | src/foam/fields/Fields/Field/FieldFunctions.C | C++ | gpl-3.0 | 25,129 |
/*===========================================================================*\
* *
* OpenFlipper *
* Copyright (C) 2001-2014 by Computer Graphics Group, RWTH Aachen *
* ... | heartvalve/OpenFlipper | PluginCollection-FilePlugins/Plugin-FileSKL/FileSkeleton.hh | C++ | gpl-3.0 | 5,349 |
/*
* Authors:
* Petr Vobornik <pvoborni@redhat.com>
*
* Copyright (C) 2014 Red Hat
* see file 'COPYING' for use and warranty information
*
* 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 Founda... | apophys/freeipa | install/ui/src/freeipa/idviews.js | JavaScript | gpl-3.0 | 28,221 |
package mcp.mobius.waila.client;
import cpw.mods.fml.client.registry.ClientRegistry;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.common.gameevent.InputEvent;
import mcp.mobius.waila.api.impl.ConfigHandler;
import mcp.mobius.waila.utils.Constants;
impor... | Dennisbonke/WAILA | src/main/java/mcp/mobius/waila/client/KeyEvent.java | Java | gpl-3.0 | 3,706 |
<?php defined( 'WPINC' ) || die; ?>
<div id="submitpost" class="submitbox">
<div id="major-publishing-actions">
<div id="delete-action"><a href="<?= $reset_url; ?>" class="submitdelete deletion"><?= $reset; ?></a></div>
<div id="publishing-action"><span class="spinner"></span><?= $submit; ?></div>
<div class="c... | geminilabs/pollux | views/settings/submit.php | PHP | gpl-3.0 | 348 |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | foam-extend: Open Source CFD
\\ / O peration | Version: 3.2
\\ / A nd | Web: http://www.foam-extend.org
\\/ M anipulation | For ... | Unofficial-Extend-Project-Mirror/foam-extend-foam-extend-3.2 | applications/utilities/mesh/generation/blockMesh/blockMeshApp.C | C++ | gpl-3.0 | 10,034 |
<!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">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>SdFat: Class Members - Functions</title>
<link href="tabs.css" rel="sty... | Arduino-Minas/SDFATLib | html/functions_func_0x74.html | HTML | gpl-3.0 | 4,530 |
/*
* Copyright 2010-2013 OpenXcom Developers.
*
* This file is part of OpenXcom.
*
* OpenXcom 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 ... | IvanDogovich/OpenXcom | src/aresame.h | C | gpl-3.0 | 944 |
package com.ggollmer.inevera.client.effect;
import java.lang.reflect.Constructor;
import java.util.HashMap;
import java.util.Map;
import com.ggollmer.inevera.lib.EffectConstants;
import net.minecraft.client.particle.EffectRenderer;
import net.minecraft.world.World;
/**
* IneveraCraft
*
* IneveraEffectHelper.java... | Gomer3261/IneveraCraft | inevera_common/com/ggollmer/inevera/client/effect/IneveraEffectHelper.java | Java | gpl-3.0 | 2,976 |
# Work in progress
Draft version of **RPi-Monitor** documentation: https://xavierberger.github.io/RPi-Monitor-docs/
Source of documentation: https://github.com/XavierBerger/RPi-Monitor/tree/feature/docs/docs/source
| XavierBerger/RPi-Monitor | docs/README.md | Markdown | gpl-3.0 | 216 |
# GmSSL
[GmSSL](http://gmssl.org/)是一个开源的密码工具箱,支持SM2/SM3/SM4/SM9等国密(国家商用密码)算法、SM2国密数字证书及基于SM2证书的SSL/TLS安全通信协议,支持国密硬件密码设备,提供符合国密规范的编程接口与命令行工具,可以用于构建PKI/CA、安全通信、数据加密等符合国密标准的安全应用。GmSSL项目是OpenSSL项目的分支,并与OpenSSL保持接口兼容。
证书是按如下步骤生成的:
// CA证书
$ gmssl ecparam -genkey -name sm2p256v1 -out ca.key
$ gmssl req -ne... | fangxinmiao/projects | Architeture/Security/Algorithm/GmSSL/docs/GmSSL.md | Markdown | gpl-3.0 | 1,105 |
/*
* Copyright (C) 2016 Department for Business, Energy and Industrial Strategy
*
* 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) an... | UKGovernmentBEIS/rifs-business | src/test/scala/rifs/business/NotificationsTest.scala | Scala | gpl-3.0 | 6,367 |
<?php
class ControllerStep3 extends Controller {
private $error = array();
public function index() {
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validate()) {
$this->load->model('install');
$this->model_install->database($this->request->post);
$output = '<?php' . "\n"... | stan-bg/opencart | upload/install/controller/step_3.php | PHP | gpl-3.0 | 10,060 |
"""
This module contains various methods for checking the type of timelines and a
class that creates all kinds of timelines.
"""
import re
from functools import partial
from gettext import gettext as _
from turses.models import Timeline, is_DM
HOME_TIMELINE = 'home'
MENTIONS_TIMELINE = 'mentions'
FAVORITES_TIMELINE... | joedicastro/turses | turses/api/helpers.py | Python | gpl-3.0 | 5,201 |
<?php
namespace CashbackApi\Whitelabel;
/**
* Class Offer
* @package CashbackApi\Whitelabel
*/
class Offer extends BaseWhitelabel
{
/**
* @var int|null
*/
private $retailerId = null;
/**
* @return int|null
*/
public function getRetailerId()
{
return $this->retailerI... | Sub-Tech/CashbackAPI | src/Whitelabel/Offer.php | PHP | gpl-3.0 | 1,721 |
/*
* Copyright (c) 2013 Curry Order System authors.
* This file is part of Curry Order System. Please refer to the NOTICE.txt file for license details.
*/
package code.snippet
import code.model.User
import xml.NodeSeq
import net.liftweb.http.{S, RequestVar, TemplateFinder, SHtml}
import _root_.net.liftweb.util._... | scott-abernethy/curry-order-system | src/main/scala/code/snippet/Users.scala | Scala | gpl-3.0 | 1,182 |
/*******************************************************************************
OpenAirInterface
Copyright(c) 1999 - 2014 Eurecom
OpenAirInterface 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 Foundati... | herlesupreeth/OAI-5G | openair1/SIMULATION/ETH_TRANSPORT/pgm_link.h | C | gpl-3.0 | 1,733 |
/* The LibVMI Library is an introspection library that simplifies access to
* memory in a target virtual machine or in a file containing a dump of
* a system's physical memory. LibVMI is based on the XenAccess Library.
*
* Copyright 2011 Sandia Corporation. Under the terms of Contract
* DE-AC04-94AL85000 with S... | mzguanglin/libvmi-cmu | tools/pyvmi/pyvmi.c | C | gpl-3.0 | 58,492 |
/* global
salesReporterFactory,
dataLoaderFactory,
dataSourceAccessFactory,
pointOfSaleDataUtilsFactoryBuilder,
reportDataBuilderFactory
*/
// eslint-disable-next-line
function getSalesReporter() {
const dataSourceAccess = dataSourceAccessFactory();
const dataLoader = dataLoaderFactory(dat... | cmstead/jsLearnerForms | jsforms-source/4_test-dummy-form/index.js | JavaScript | mpl-2.0 | 599 |
/* 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.virial;
import etomica.box.Box;
import etomica.math.SpecialFunctions;
import etomica.molecule.IMo... | etomica/etomica | etomica-apps/src/main/java/etomica/virial/MayerSphericalPTAtt.java | Java | mpl-2.0 | 2,839 |
<?php
namespace ide\autocomplete;
/**
* Class PropertyAutoCompleteItem
* @package ide\autocomplete
*/
class PropertyAutoCompleteItem extends AutoCompleteItem
{
public function getDefaultIcon()
{
return 'icons/greenSquare16.png';
}
} | jphp-compiler/develnext | develnext/src/ide/autocomplete/PropertyAutoCompleteItem.php | PHP | mpl-2.0 | 256 |
package org.osmdroid.tileprovider;
import org.osmdroid.tileprovider.modules.INetworkAvailablityCheck;
import org.osmdroid.tileprovider.modules.MapTileDownloader;
import org.osmdroid.tileprovider.modules.MapTileFileArchiveProvider;
import org.osmdroid.tileprovider.modules.MapTileFilesystemProvider;
import org.osm... | dimy93/sports-cubed-android | osmdroid-android/src/main/java/org/osmdroid/tileprovider/MapTileProviderBasic.java | Java | mpl-2.0 | 2,450 |
/* 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/. */
extern mod harfbuzz;
use font::{Font, FontHandleMethods, FontTableMethods, FontTableTag};
use servo_util::geometr... | owaspjocur/servo | src/components/gfx/text/shaping/harfbuzz.rs | Rust | mpl-2.0 | 21,449 |
<?php
/**
* @copyright Copyright (C) 2007 - 2014 Johan Janssens and Timble CVBA. (http://www.timble.net)
* @license Mozilla Public License, version 2.0
* @link http://github.com/joomlatools/joomla-console for the canonical source repository
*/
namespace Joomlatools\Console\Command;
use Symfony\Component\Console... | gokuale/joomla-console | src/Joomlatools/Console/Command/SiteCreate.php | PHP | mpl-2.0 | 17,494 |
<!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">
<title>repr(Rust)</title>
<link rel="stylesheet" type="text/css" href="rustbook.css">
</head>
<body class="rustdoc">
... | servo/doc.servo.org | nomicon/repr-rust.html | HTML | mpl-2.0 | 14,185 |
<?php
/**
* DB1_AnyMarket extension
*
* NOTICE OF LICENSE
*
* This source file is subject to the MIT License
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/mit-license.php
*
* @category DB1
... | AnyMarket/magento | app/code/community/DB1/AnyMarket/controllers/Adminhtml/Anymarket/AnymarketattributesController.php | PHP | mpl-2.0 | 11,568 |
<div class="fractalis-control-container">
<p-selectButton [options]="availableChartTypes"
[(ngModel)]="selectedChartType"
(onChange)="onSelectedChartTypeChange()"></p-selectButton>
<div *ngIf="isDropZoneShown && !isClearingCache"
class="drop-zone"
name="drop-zone"... | thehyve/glowing-bear | src/app/modules/gb-analysis-module/fractalis-components/gb-fractalis-control/gb-fractalis-control.component.html | HTML | mpl-2.0 | 1,739 |
/*
* pi.c
*
* Compute pi to an arbitrary number of digits. Uses Machin's formula,
* like everyone else on the planet:
*
* pi = 16 * arctan(1/5) - 4 * arctan(1/239)
*
* This is pretty effective for up to a few thousand digits, but it
* gets pretty slow after that.
*
* This Source Code Form is subject to t... | Yukarumya/Yukarum-Redfoxes | security/nss/lib/freebl/mpi/utils/pi.c | C | mpl-2.0 | 4,338 |
import re
from tower import ugettext_lazy as _lazy
from tower import ugettext as _
from django import forms
from django.conf import settings
from django.forms.widgets import CheckboxSelectMultiple
from kuma.contentflagging.forms import ContentFlagForm
import kuma.wiki.content
from kuma.core.form_fields import Strip... | mastizada/kuma | kuma/wiki/forms.py | Python | mpl-2.0 | 19,906 |
package google
import (
"fmt"
"testing"
"github.com/hashicorp/terraform/helper/acctest"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/terraform"
)
func TestAccProjectIamCustomRole_basic(t *testing.T) {
t.Parallel()
roleId := "tfIamCustomRole" + acctest.RandString(10)
reso... | drebes/terraform-provider-google | google/resource_google_project_iam_custom_role_test.go | GO | mpl-2.0 | 4,606 |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... | tmhorne/celtx | intl/uconv/ucvlatin/nsCP1253ToUnicode.h | C | mpl-2.0 | 2,175 |
import transitionable from 'consul-ui/utils/routing/transitionable';
import { module, test } from 'qunit';
const makeRoute = function(name, params = {}, parent) {
return {
name: name,
paramNames: Object.keys(params),
params: params,
parent: parent,
};
};
module('Unit | Utility | routing/transitiona... | hashicorp/consul | ui/packages/consul-ui/tests/unit/utils/routing/transitionable-test.js | JavaScript | mpl-2.0 | 1,538 |
# Дизайн сообщений об ошибках
На основе агрегатов можно производить расчёт сообщений об ошибках проверок заказов.
Фактически, это ещё одна агрегация поверх агрегатов.
# Требования к сообщениям об ошибках
Требования от ERM
- быстро найти все сообщения об ошибках для конкретного заказа
Требования от Экспорта:
- бы... | 2gis/nuclear-river-validation-rules | docs/ru/validation-rules/design-messages.md | Markdown | mpl-2.0 | 5,988 |
<!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 `AtomicOption` struct in crate `crossbeam`.">
<meta name="k... | servo/doc.servo.org | crossbeam/sync/struct.AtomicOption.html | HTML | mpl-2.0 | 8,386 |
/*
* File: main.c
* Author: Mike Peters
*
* Created on November 5, 2014, 12:11 PM
*/
#include <stdio.h>
#include <stdlib.h>
#include <p24Hxxxx.h>
//#include <libpic30.h>
#include "inc/comms.h"
#include "inc/globals.h"
#include "inc/chip_setup.h"
/*
* Words of Power
*/
_FBS(BWRP_WRPROTECT_OFF & BSS_NO_BOOT... | kz5ee/EE2403_Final_Lab | EE2403_Final_Lab.X/main.c | C | mpl-2.0 | 1,719 |
/* 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.normalmode;
import etomica.data.DataTag;
import etomica.data.IData;
import etomica.data.IEtomicaD... | ajschult/etomica | etomica-apps/src/main/java/etomica/normalmode/MeterWorkHarmonicPhaseSpace.java | Java | mpl-2.0 | 2,294 |
package whale
import (
"fmt"
"strconv"
"strings"
"time"
"log"
)
import (
"open-tritium/dependencies/go-cache"
"open-tritium/dependencies/go-cache/arc"
"github.com/moovweb/gokogiri/xpath"
"github.com/moovweb/rubex"
"open-tritium/dependencies/steno"
"open-tritium"
"open-tritium/constants"
"open-tritium/pro... | moovweb/open-tritium | whale/whale.go | GO | mpl-2.0 | 13,915 |
/* 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/. */
(function() {
'use strict';
var client = Mozilla.Client;
var form = new Mozilla.SendYourself('dow... | kyoshino/bedrock | media/js/firefox/whatsnew/whatsnew-id.js | JavaScript | mpl-2.0 | 863 |
package org.fedoraproject.mobile
import android.net.Uri
import android.util.Log
import argonaut._, Argonaut._
import scalaz._, Scalaz._
import scalaz.concurrent.Task
import scalaz.concurrent.Task._
import scalaz.effect._
import java.io.{ DataOutputStream, InputStreamReader }
import java.net.HttpURLConnection
impor... | fedora-infra/mobile | src/main/scala/webapi/Badges.scala | Scala | mpl-2.0 | 2,829 |
/* 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 dom::bindings::codegen::Bindings::LocationBinding;
use dom::bindings::codegen::Bindings::LocationBinding::Loca... | yodalee/servo | components/script/dom/location.rs | Rust | mpl-2.0 | 5,095 |
package com.ankang.report.interceptor;
import java.io.IOException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.log4j.Logger;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;
import com.ankang.report.config.ReportConfig;
impo... | codeLief/ankang-report | src/main/java/com/ankang/report/interceptor/ReportInterceptor.java | Java | mpl-2.0 | 1,735 |
#!/usr/bin/env python
# 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) 2014 Mozilla Corporation
#
# Contributors:
# Anthony Verez averez@mozilla.com
imp... | ameihm0912/MozDef | cron/healthToMongo.py | Python | mpl-2.0 | 5,358 |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... | tmhorne/celtx | intl/uconv/ucvko/nsCP949ToUnicode.cpp | C++ | mpl-2.0 | 3,615 |
require "test_helper"
require "webmock/minitest"
class UploadDefaultCurrencyJobTest < ActiveJob::TestCase
test "sends default currency to eyeshade" do
prev_api_eyeshade_offline = Rails.application.secrets[:api_eyeshade_offline]
begin
Rails.application.secrets[:api_eyeshade_offline] = false
publi... | dgeb/publishers | test/jobs/upload_default_currency_job_test.rb | Ruby | mpl-2.0 | 1,225 |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... | bunnyblue/nss-3.12.6-android | mozilla/security/nss/lib/freebl/rsa.c | C | mpl-2.0 | 30,206 |
/**
* Copyright (c) 2016, All partners of the iTesla project (http://www.itesla-project.eu/consortium)
* 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 eu... | itesla/ipst-core | computation-mpi/src/main/java/eu/itesla_project/computation/mpi/MpiStatistics.java | Java | mpl-2.0 | 2,552 |
//
// Generated file. Do not edit manually.
//
using System.Collections.Generic;
using Alba.CsCss.Internal.Extensions;
namespace Alba.CsCss.Style
{
internal partial class nsCSSKeywords
{
private static readonly string[] kCSSRawKeywords = {
"-moz-activehyperlinktext",
"-moz-all"... | Athari/CsCss | Alba.CsCss/Style/Original/nsCSSKeywords.g.cs | C# | mpl-2.0 | 16,420 |
<!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 `Map2f` static in crate `gleam`.">
<meta name="keywords" co... | susaing/doc.servo.org | gleam/gl/storage/static.Map2f.html | HTML | mpl-2.0 | 4,242 |
#include "BaseTestCase.h"
#include "DefinitionNode.h"
#include "DefinitionWatcher.h"
#include "DiffManager.h"
#include "FloatDiff.h"
#include "FloatNode.h"
#include "TestToolDefinition.h"
TEST(DiffManager, undoRedo) {
DefinitionNode root(NULL, "root");
DiffManager *diffs = root.getDiffManager();
FloatNod... | thunderk/paysages3d | src/tests/DiffManager_Test.cpp | C++ | mpl-2.0 | 4,867 |
#!/bin/bash
# Warning: kcov is a Linux only tool
set -ex
CURRENT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_HOME="$CURRENT_PATH/.."
PROJECT_NAME=$(sed --quiet 's/^name *= *"\(.*\)"$/\1/p' $PROJECT_HOME/Cargo.toml)
PROJECT_BINARY_LOCATION="$PROJECT_HOME/target/debug"
KCOV_VERSION="30"
KCOV_TEMP="$... | fxbox/foxbox | tools/execute-unit-tests-with-coverage.sh | Shell | mpl-2.0 | 2,015 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_45) on Fri Dec 27 12:52:54 CST 2013 -->
<title>CqlMetadata (apache-cassandra API)</title>
<meta name="date" content="2013-12-27">
<link... | bkcloud/bkplatform | cassandra-scripts/javadoc/org/apache/cassandra/thrift/CqlMetadata.html | HTML | mpl-2.0 | 42,543 |
<!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>app - Legato Docs</title>
<meta content="leg... | legatoproject/legato-docs | 19_09/toolsHost_app.html | HTML | mpl-2.0 | 5,741 |
/**
* The contents of this file are subject to the OpenMRS Public License
* Version 1.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://license.openmrs.org
*
* Software distributed under the License is distributed on an "AS... | Bhamni/openmrs-core | web/src/main/java/org/openmrs/web/filter/initialization/WizardTask.java | Java | mpl-2.0 | 1,605 |
require File.expand_path('../boot', __FILE__)
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env)
module Wejoin
class Application < Rails::Application
# Settings in config/environments/* take ... | tcz001/WeJoin | config/application.rb | Ruby | mpl-2.0 | 983 |
<!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 `SYS_perf_event_open` constant in crate `libc`.">
<meta nam... | servo/doc.servo.org | libc/notbsd/linux/other/x86_64/constant.SYS_perf_event_open.html | HTML | mpl-2.0 | 4,916 |
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class menu : MonoBehaviour {
public void loadscene (int index) {
SceneManager.LoadScene(index);
}
public void quitter () {
Application.Quit ();
}
}
| Le-Bouc-Fou/Snakeur_rectif | old/Menu/menu.cs | C# | mpl-2.0 | 249 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Contributors</title>
<meta name="description" content="MozillaTN ClubName is club under MozillaTN community active... | MozillaTN/skcetzilla | docs/_site/contributors/index.html | HTML | mpl-2.0 | 10,900 |
{% load extra_tags %}
<script src="https://browserid.org/include.js" type="text/javascript"></script>
<script>
/* 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/. ... | javierder/osqa-browserid | browserid/templates/button.html | HTML | mpl-2.0 | 4,932 |
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by /2dcontext/tools/gentest.py. -->
<title>Canvas test: 2d.path.isPointInPath.arc</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/2dcontext/resources/canvas-tests.js"></script>
... | UK992/servo | tests/wpt/web-platform-tests/2dcontext/path-objects/2d.path.isPointInPath.arc.html | HTML | mpl-2.0 | 1,501 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.