text stringlengths 3 1.05M |
|---|
import svelte from 'rollup-plugin-svelte';
import commonjs from '@rollup/plugin-commonjs';
import resolve from '@rollup/plugin-node-resolve';
import livereload from 'rollup-plugin-livereload';
import { terser } from 'rollup-plugin-terser';
import sveltePreprocess from 'svelte-preprocess';
import typescript from '... |
// Cloud Foundry environment variables
var port = process.env.VCAP_APP_PORT || process.env.PORT || 3001;
var services = JSON.parse(process.env.VCAP_SERVICES);
var mongoAddress = services['mongodb-2.4'][0]['credentials']['url'];
var mongoAccess = require('url').parse(mongoAddress);
module.exports = {
mongodb: {
s... |
export default {
elem: 'svg',
attrs: {
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 32 32',
width: 24,
height: 24,
},
content: [
{
elem: 'path',
attrs: { d: 'M26 24v4H6v-4H4v4a2 2 0 0 0 2 2h20a2 2 0 0 0 2-2v-4z' },
},
{
elem: 'path',
attrs: {
d: ... |
from django.conf.urls import include, url
from django.contrib import admin
from django.conf import settings
from django.conf.urls.static import static
import profiles.urls
import accounts.urls
from . import views
from . import serializers
urlpatterns = [
url(r'^$', views.HomePage.as_view(), name='home'),
url(r... |
# -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... |
webpackJsonp([54],{2096:function(l,n,t){"use strict";function View_CoreLoginSitePolicyPage_1(l){return e._57(0,[(l()(),e._31(0,0,null,null,5,"ion-card",[],null,null,null,null,null)),e._30(1,16384,null,0,M.a,[U.a,e.t,e.V],null,null),(l()(),e._55(-1,null,["\n "])),(l()(),e._31(3,0,null,null,1,"core-iframe"... |
import { createSelector } from 'reselect';
const selectRaw = (state) => state.taxonomy.list;
const selectLoading = createSelector(
[selectRaw],
(raw) => raw.loading,
);
const selectExportLoading = createSelector(
[selectRaw],
(raw) => raw.exportLoading,
);
const selectRows = createSelector(
[selectRaw],
... |
(function(angular) {
'use strict';
var webApp = angular.module('angularApp');
webApp.factory('ApiLink', function($resource) {
var _endpoint = 'http://localhost:8000/api/links/:id';
return $resource(
_endpoint,
{ id: '@id' },
{ update: { method: 'PUT' } }
);
});
})(angular);
|
/**
* Copyright 2018 The WPT Dashboard Project. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
import '../node_modules/@polymer/paper-toggle-button/paper-toggle-button.js';
import '../node_modules/@polymer/polymer/lib/elements/dom-if.js... |
;(function(root, factory) {
if (typeof module === 'object' && module.exports) {
/* eslint-disable global-require */
// CommonJS
var d3 = require('d3')
module.exports = factory(d3)
/* eslint-enable global-require */
} else {
// Browser global.
// eslint-disable-... |
import os
import uuid
import yaml
from dagster_k8s.launcher import K8sRunLauncher
from dagster import __version__ as dagster_version
from dagster.core.storage.pipeline_run import PipelineRun
from dagster.utils import load_yaml_from_path
from .conftest import docker_image, environments_path # pylint: disable=unused-... |
_base_ = '../_base_/default_runtime.py'
# dataset settings
dataset_type = 'CocoDataset'
data_root = '/data/sophia/a/Xiaoke.Shen54/DATASET/sunrgbd_DO_NOT_DELETE/'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
# In mstrain 3x config, img_scale=[(1333, 640), (1333, ... |
import json
import logging
import sys
from functools import lru_cache
from io import StringIO
from pathlib import Path
from tempfile import NamedTemporaryFile
from typing import List
import h5py
import pandas as pd
from lm_zoo import errors
from lm_zoo.backends import get_backend, get_compatible_backend
from lm_zoo.m... |
# Implemented in Python to support keyword arguments
def open(stream, *, flags=0, cachesize=0, pagesize=0, minkeypage=0):
return _open(stream, flags, cachesize, pagesize, minkeypage)
|
/* eslint-disable quotes, max-len */
export default [
{
weight: 0,
input: true,
label: 'Advanced Logic',
key: 'logic',
templates: {
header: '<div class="row"> \n <div class="col-sm-6">\n <strong>{{ value.length }} Advanced Logic Configured</strong>\n </div>\n</div>',
row: '<div cl... |
# Import classes for input/output channels
from yggdrasil.interface.YggInterface import (
YggPandasInput, YggPandasOutput)
# Initialize input/output channels
in_channel = YggPandasInput('inputB')
out_channel = YggPandasOutput('outputB')
# Loop until there is no longer input or the queues are closed
while True:
... |
def api_data():
return [
{
"name": "capture",
"endpoints": [
{"name": "create", "resp": "JCaptureCreate", "err": "JErr", "args": [
"str name",
"str visibility",
"str timezone",
"long start_ts",
"long finish_ts",
... |
import yaml
import textwrap
import sxml.cli
import json
import pytest
from pathlib import Path
SIMPLE_CONFIG = r'''
$chain:
- $apply: html.loads
- $apply: sxml.find
attrs:
- name: title
query: h1
$chain:
- $apply: html.dumps
'''
def test_simple(tmp_path):
config_path = tmp... |
/* @flow */
// flow 注释必须在第一行
import config from 'core/config'
import { warn, cached } from 'core/util/index'
import { mark, measure } from 'core/util/perf'
import Vue from './runtime/index'
import { query } from './util/index'
import { compileToFunctions } from './compiler/index'
import {
shouldDecodeNewlines,
sh... |
// import models
const Product = require('./Product');
const Category = require('./Category');
const Tag = require('./Tag');
const ProductTag = require('./ProductTag');
// Products belongsTo Category
Product.belongsTo(Category, {
foreignKey: 'category_id',
onDelete: 'set null'
});
// Categories have many Products... |
import React from 'react';
import { render } from 'react-dom';
import App from './App.jsx';
import Styles from './styles.scss'
render(
<div className="app">
<App/>
</div>,
document.getElementById('root')
) |
"""
Copyright 2013 Steven Diamond
This file is part of CVXPY.
CVXPY 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.
CVXPY is distributed i... |
# encoding: utf-8
import os, getpass
import os.path as osp
import argparse
from easydict import EasyDict as edict
from dataset.data_settings import load_dataset
from cvpack.utils.pyt_utils import ensure_dir
class Config:
# -------- Directoy Config -------- #
DATA_DIR = '/media/xuchengjun/datasets/CMU/refine_... |
from datacite import DataCiteMDSClient, schema42
# If you want to generate XML for earlier versions, you need to use either the
# schema31, schema40 or schema41 instead.
data = {
'identifiers': [{
'identifierType': 'DOI',
'identifier': '10.1234/foo.bar',
}],
'creators': [
{'name': ... |
// Prefixes should be globs (i.e. of the form "/*" or "/foo/*")
const validatePrefixEntry = prefix => {
if (!prefix.match(/^\//) || !prefix.match(/\/\*$/)) {
throw Error(
`Plugin "gatsby-plugin-client-only-paths" found invalid prefix pattern: ${prefix}`
)
}
}
exports.onCreatePage = ({ page, store, ac... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
// Generated with `xb buildshaders`.
#if 0
; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 10
; Bound: 25179
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %5663 "ma... |
# Copyright (C) 2021-2022 Modin authors
#
# SPDX-License-Identifier: Apache-2.0
|
/*
* Copyright 2018 Jonathan Dieter <jdieter@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions... |
const fs = require('fs-extra')
const path = require('path')
const defaultOptions = {
cleanup: true
}
class LocalFsStorage {
/**
* @param {object} options
* @param {!string|function<...data>} options.publicBasepath
* - basepath relative to public folder
* @param {!string} options.pathToPublic
* - ab... |
# Imports
from random import uniform, randint
class Number:
def __init__(self, type_n='random', max_n=9999, min_n=-9999):
self.type = 'Number'
self.type_n = type_n # integer | float | random
self.max_n = float(max_n)
self.min_n = float(min_n)
def generate(self):
... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayOfflineProviderEquipmentAuthRemoveResponse(AlipayResponse):
def __init__(self):
super(AlipayOfflineProviderEquipmentAuthRemoveResponse, self).__init__()
self._d... |
module.exports = {
componentFramework: 'vuetify',
};
|
const mongoose = require("mongoose")
const UserSchema = new mongoose.Schema(
{
username:{
type:String,
required:true,
unique:true
},
email:{
type:String,
required:true,
unique:true
},
password:{
... |
g_db.quests[11373]={id:11373,name:"Initial Move",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:1,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:1,simultaneous_player_limit:0,ai_trigger:0,ai_trigger_enable:0,auto_trigger:0,trigger_on_death:0,remove_... |
from string import ascii_lowercase
file = open("input")
polymers = list(file.read().strip())
def react(polymers):
reacted = []
for polymer in polymers:
if len(reacted) == 0:
reacted.append(polymer)
continue
lastreacted = reacted.pop()
if (polymer.upper() == las... |
"""Module for the frequency weightings of the sound pressure level.
The standards for the weightings are defined by ANSI [1] and IEC [2].
The digital filters designed by bilinear transform with prewarping is
introduced by [3].
References
----------
[1] American National Standards Institute, “ANSI S1.43:
Specifica... |
from __future__ import absolute_import
from sentry.models import TagKey, TagKeyStatus
from sentry.web.frontend.base import ProjectView
class ProjectTagsView(ProjectView):
def get(self, request, organization, team, project):
tag_list = TagKey.objects.filter(
project=project,
status... |
import sys
input = sys.stdin.readline
a, b = [int(i) for i in input().split()]
str_a = str(a) * b
str_b = str(b) * a
print(min(str_a, str_b))
|
module.exports=require('../../decode-ranges.js')('wYMANACAg_JkVgx4PY_AJA') |
import {
getBreak,
getCommonContainer,
getCommonGrayCard,
getCommonSubHeader,
getLabel,
getLabelWithValue
} from "egov-ui-framework/ui-config/screens/specs/utils";
import { gotoApplyWithStep , getsocialmediaLabelWithValue} from "../../utils/index";
import {
getQueryArg,
getTransfor... |
"""
File: train_emotion_classifier.py
Author: Octavio Arriaga
Email: arriaga.camargo@gmail.com
Github: https://github.com/oarriaga
Description: Train emotion classification model
"""
import warnings
warnings.filterwarnings("ignore", message="numpy.dtype size changed")
warnings.filterwarnings("ignore", message="numpy.uf... |
/* markdown: a C implementation of John Gruber's Markdown markup language.
*
* Copyright (C) 2007 David L Parsons.
* The redistribution terms are provided in the COPYRIGHT file that must
* be distributed with this source code.
*/
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#inclu... |
"""show_platform.py
IOS parsers for the following show commands:
* show version
* dir
* show redundancy
* show inventory
* show bootvar
* show processes cpu sorted
* show processes cpu sorted <1min|5min|5sec>
* show processes cpu sorted | include <WORD>
* show processes cpu sor... |
/* global describe beforeEach it */
const {expect} = require('chai')
const request = require('supertest')
const db = require('../db')
const app = require('../index')
const User = db.model('user')
describe('User routes', () => {
beforeEach(() => {
return db.sync({force: true})
})
describe('/api/users/', () ... |
import contextlib
import datetime
import getpass
import sqlalchemy as sa
from sqlalchemy.dialects.mssql.pyodbc import MSDialect_pyodbc
import ibis.expr.datatypes as dt
import ibis.expr.operations as ops
import ibis.expr.schema as sch
import ibis.sql.alchemy as alch
from ibis_mssql.compiler import MSSQLDialect
impor... |
var searchData=
[
['cbrt_0',['cbrt',['../group__math_ga5520218c452db7b34e883bf0f7a14488.html#ga5520218c452db7b34e883bf0f7a14488',1,'eve']]],
['ceil_1',['ceil',['../group__core_ga1fd0ebf298c8ca222374b621cf059750.html#ga1fd0ebf298c8ca222374b621cf059750',1,'eve']]],
['clamp_2',['clamp',['../group__core_gad1d369116a4... |
initSidebarItems({"enum":[["Error","Top-level error type used by this crate."],["Message","A protocol message or vote."]],"fn":[["process_commit_validation_result","Runs the callback with the appropriate `CommitProcessingOutcome` based on the given `CommitValidationResult`. Outcome is bad if ghost is undefined, good ot... |
/**
* Tests that the addShard process initializes sharding awareness on an added standalone or
* replica set shard that was started with --shardsvr.
*/
(function() {
"use strict";
var waitForIsMaster = function(conn) {
assert.soon(function() {
var res = conn.getDB('admin').runCommand({i... |
from mayan.apps.appearance.classes import Icon
from mayan.apps.documents.icons import icon_document_type
icon_index = Icon(driver_name='fontawesome', symbol='list-ul')
icon_document_index_instance_list = Icon(
driver_name='fontawesome', symbol='list-ul'
)
icon_document_type_index_templates = icon_index
ico... |
"""
Created on May 20, 2010
@author: Nicklas Boerjesson
"""
import unittest
from qal.dal.types import DB_MYSQL, DB_POSTGRESQL, DB_ORACLE, DB_DB2, DB_SQLSERVER
from qal.dal.tests.framework import get_default_dal
def _connect_test(_db_type):
dal = get_default_dal(_db_type, "")
if dal:
dal.close()
... |
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
import datetime
import hashlib
import json
import logging
import os.path
import sys
from pip._vendor import pkg_resources
from pip._vendor.packaging import version as pack... |
!function(){angular.module("angularScreenfull",[])}(),function(){"use strict";function e(e){function l(n,l,r,u){if(r.ngsfFullscreen&&""!==r.ngsfFullscreen){var s=e(r.ngsfFullscreen);s.assign(n,u)}}return{restrict:"A",require:"ngsfFullscreen",controller:n,link:l}}function n(e,n,l,r){function u(){var u=function(){r[o.isF... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.3/esri/copyright.txt for details.
//>>built
define("require exports dojo/has ../lib/PerformanceTimer ../lib/Camera ../lib/Util ../lib/BitSet ../lib/gl-matrix ./Visualizer".split(" "),function(d,N,O,P,q,y,r,l,... |
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# Copyright 2019 Eddie Antonio Santos <easantos@ualberta.ca>
#
# 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/licens... |
//
// ToolKit.h
// MapView
//
// Created by imobile-xzy on 16/3/23.
//
//
#import <Foundation/Foundation.h>
@interface ToolKit : NSObject
+(BOOL)createFileDirectories:(NSString*)path;
@end
|
from . import ClientCaches
from . import ClientConstants as CC
from . import ClientDB
from . import ClientImportFileSeeds
from . import ClientImportOptions
from . import ClientMigration
from . import ClientServices
from . import ClientTags
import collections
import hashlib
from . import HydrusConstants as HC
from . imp... |
import pyOcean_cpu as ocean
def check(reference, size, strides, elemsize=1) :
overlap = ocean.checkSelfOverlap(size, strides, elemsize)
if (overlap == reference) :
s = ''
else :
if (reference and not overlap) :
s = '*** Incorrect -- false negative ***'
else :
s = '*** Incor... |
"""ASCII-ART 2D pretty-printer"""
from .pretty import pprint, pprint_use_unicode, pretty, pretty_print
|
"""
Copyright (c) 2017, 2019 Red Hat, Inc
All rights reserved.
This software may be modified and distributed under the terms
of the BSD license. See the LICENSE file for details.
"""
from __future__ import unicode_literals, absolute_import
import koji
from atomic_reactor.core import DockerTasker
from atomic_reactor... |
module.exports = require('./src/botkitwit'); |
module.exports = {
name: 'hpc-data',
preset: '../../jest.config.js',
transform: {
'^.+\\.[tj]sx?$': 'ts-jest',
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'html'],
coverageDirectory: '../../coverage/libs/hpc-data',
};
|
## @package layer_model_instantiator
# Module caffe2.python.layer_model_instantiator
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from caffe2.python import core
from caffe2.python.layers.layers import InstantiationC... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2019 The PIVX developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-licens... |
from assignment import AssignmentsDB
from csv import DictWriter, writer
def main():
assignments_db = AssignmentsDB()
with open('general_assignments.csv', 'w', newline='') as file:
# fieldnames = ['ID', 'assigned_test_list']
w = writer(file, dialect='excel')
# w.writerow(fieldnames)
... |
# Simple Qt5 application embedding matplotlib canvases
#
# Based on material from
# Copyright (C) 2005 Florent Rougon
# 2006 Darren Dale
#
#
# Modified by Jeremy Daily on 21 May 2017
#
# This file is a modified example program for matplotlib. It may be used and
# modified with no restriction; raw copies... |
stop_words = ['i','me','my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', "you're", "you've", "you'll", "you'd", 'your', 'yours', 'yourself', 'yourselves', 'he', 'him', 'his', 'himself', 'she', "she's", 'her', 'hers', 'herself', 'it', "it's", 'its', 'itself', 'they', 'them', 'their', 'theirs', 'themselves', 'what... |
#!/usr/bin/env python
#
#The MIT License (MIT)
##
# Copyright (c) 2015 Bit9 + Carbon Black
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation ... |
"""
Admin Panel settings for Users.
"""
from django.contrib import admin
# Register your models here.
|
from util import *
from collections import *
import copy
from functools import reduce
day = 14
def task1():
data = get_input_for_day(day)
# data = get_input_for_file("test")
input = list(data[0])
formulas = defaultdict(str)
for line in data[2:]:
parts, result = line.split(" -> ")
... |
const tap = require("tap");
const mongoose = require("mongoose");
const buildFastify = require("../../src/app");
const User = require("../../src/models/User");
const NameService = require("../../src/services/Name");
const fastify = buildFastify();
const signupBody = {
full_name: "İbrahim Can",
email: "email_test0@... |
#!/usr/bin/env python
# Truncate.py
# Copyright (C) 2006 CCLRC, Graeme Winter
#
# This code is distributed under the BSD license, a copy of which is
# included in the root directory of this package.
#
# 26th October 2006
#
# A wrapper for the CCP4 program Truncate, which calculates F's from
# I's and gives a few ... |
"""
16) Faça um programa que leia um número inteiro positivo impar N
imprima todos os núemros impares de 1 até N em ordem decrescente.
"""
n = int(input('Digite um número par \n'))
if n % 2 == 1:
for i in range(n, -1, -1):
if i % 2 == 1:
print(i)
else:
print('Número inválido') |
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
import routes from './routes';
const store = configureStore(window.__REDUX_STATE__);
ReactDOM.render(
<Provider store={store}>
{routes}
</Provider>,
docum... |
# coding: utf-8
"""
Hydrogen Proton API
Financial engineering module of Hydrogen Atom # noqa: E501
OpenAPI spec version: 1.9.2
Contact: info@hydrogenplatform.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import... |
"""
Utilities useful for routing
"""
import gzip
import zlib
from typing import Callable
from fastapi.routing import APIRoute
from starlette.requests import Request
from starlette.responses import Response
class CompressedRequest(Request):
""" Allow the body of the request to be compressed with gzip or zlib """
... |
import { useState, useCallback, useEffect } from 'react';
import axios from 'axios';
export const useHttpClient = () => {
const [error, setError] = useState(null);
const [isLoading, setLoading] = useState(false);
const source = axios.CancelToken.source();
const sendRequest = useCallback(
async (url, metho... |
"""
Routines useful for dealing with cos spectra, especially reading different files.
"""
import numpy as np
import pyfits
def readx1d(filename):
"""
Read an x1d format spectrum from calcos.
:param filename: name of the x1d file
:type filename: string
For the output spectra::
wa = wavele... |
// Copyright 2014 Globo.com Player authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
var BaseObject = require('../base/base_object')
var CoreFactory = require('./core_factory')
var Loader = require('./loader')
var assign = require('lod... |
# A vuetify layout for the glue data viewers. For now we keep this isolated to
# a single file, but once we are happy with it we can just replace the original
# default layout.
import ipyvuetify as v
__all__ = ['vuetify_layout_factory']
def vuetify_layout_factory(viewer):
def on_click(widget, event, data):
... |
// Created by Sergey Litvinov on 08.03.2021
// Copyright 2021 ETH Zurich
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
int SystemBaseName(const char*, char*);
int SystemDirName(const char*, char*);
char* SystemRealPath(const char*, char* resolved);
int SystemGetHostName(char*, size_t size);
int SystemHasH... |
/* eslint-disable camelcase */
module.exports = {
type: 'object',
properties: {
// field_wysiwyg also has a `format` that we don't use
field_wysiwyg: { $ref: 'GenericNestedString' },
field_title: { $ref: 'GenericNestedString' },
},
};
|
/**
* Policy Mappings
* (sails.config.policies)
*
* Policies are simple functions which run **before** your actions.
*
* For more information on configuring policies, check out:
* https://sailsjs.com/docs/concepts/policies
*/
// Authentication module.
const auth = require('http-auth');
const basic = auth.basic... |
/**
* @name Enums
* @type Object
*/
/**
* @typedef {string} Enums.ButtonType
* @enum {'back'|'danger'|'default'|'normal'|'success'}
*/
/**
* @typedef {string} Enums.ButtonStylingMode
* @enum {'text'|'outlined'|'contained'}
*/
/**
* @typedef {string} Enums.EventKeyModifier
* @enum {'alt'|'ctrl'|'meta'|'sh... |
#include "stub/baseentity.h"
#include "stub/tfplayer.h"
#include "stub/tfweaponbase.h"
#include "stub/projectiles.h"
#include "util/pooled_string.h"
#include <boost/algorithm/string.hpp>
class EntityModule
{
public:
EntityModule() {}
EntityModule(CBaseEntity *entity) {}
};
struct CustomVariabl... |
import styled from 'styled-components'
export const SSearchForm = styled.form`
position: fixed;
background-image: linear-gradient(
to top,
rgba(15, 15, 15, 0.6),
rgba(15, 15, 15, 0.5),
rgba(15, 15, 15, 0.4),
rgba(15, 15, 15, 0.3),
rgba(15, 15, 15, 0.2),
rgba(15, 15, 15, 0.08),
rgba(... |
#!/usr/bin/env python
'''
Tools for making nice plots
Uses matplotlib backend (currently wx or gtk) to provide tools for editing
matplotlib plots after they have been created
NOTE: I have imported all of pyplot into this module, so you may call it
as though you were calling pyplot directly. The difference is that wit... |
export class ajaxAction {
static INSERT_NAME = "INSERT_NAME";
static INSERT_NAME_SUCCESS = "INSERT_NAME_SUCCESS";
static INSERT_NAME_FAILED = "INSERT_NAME_FAILED";
static GET_NAMES = "GET_NAMES";
static GET_NAMES_SUCCESS = "GET_NAMES_SUCCESS";
static GET_NAMES_FAILED = "GET_NAMES_FAILED";
... |
# Standard Library Imports
import argparse
import logging
import sys
import os
PY3 = sys.version_info >= (3, 0)
unicode_type = type(u"")
if PY3:
real_input = input
import urllib.parse as urlparse
else:
# noinspection PyUnresolvedReferences
real_input = raw_input
# noinspection PyUnresolvedReferenc... |
import math
def find_locations_of_minimum_and_maximum_skew_value(text):
length_of_text = len(text)
locations_for_minimum_skew_value = []
locations_for_maximum_skew_value = []
minimum_skew_value = math.inf
maximum_skew_value = -1 * math.inf
skew_value = 0
for i in range(0, length_of_tex... |
import json
import requests
from threading import Thread
class NetApp_OCUM_HTTP(object):
"""
Class object for handling HTTP requests/responses for the OCUM.
"""
def __init__(self, settings):
self.settings = settings
self.path = None
def _GET_worker(self, url, params, accept, respon... |
#pragma once
#include "base.h"
#include "checkpoint_mgr.h"
#include "ioloop.h"
#include "learner_synchronizer.h"
#include "paxos_log.h"
namespace paxos {
class Acceptor;
class CheckpoingMgr;
class StateMachineFac;
class Learner : public Base {
public:
Learner(
const Config* config,
cons... |
# prefer setuptools over distutils
from setuptools import setup, find_packages
# use a consistent encoding
from codecs import open
from os import path
import json
import sys
is_python_2 = sys.version_info < (3, 0)
here = path.abspath(path.dirname(__file__))
root = path.dirname(here)
readme_rst = path.join(here, 'RE... |
import React, { useEffect, useState } from "react"
import '../Css/OrderInterface.css'
import './AddressForm'
import Nav from './Nav'
const OrderInterface = () => {
const APP_ID = '6fa68a69'
const APP_KEY = '761aa985f178a745368429f58f681626'
const [items, setItems] = useState([])
const [search, setSearch] = useSt... |
"""
Script to display Inspirational quotes on Ubuntu Notification tab.
"""
import os
import sys
import random
import subprocess
class Quotify:
def generate_quote_notification(self):
"""
Caller function to send desktop notification of quote.
"""
quotes_file_path = self.get_file_con... |
from _common import *
print("-*-*-*-*-*-*-*-*-*-*-*Setup begins*-*-*-*-*-*-*-*-*-*-*-*-*-")
delete_for_users()
print("-*-*-*-*-*-*-*-*-*-*-*Setup ends*-*-*-*-*-*-*-*-*-*-*-*-*-*-")
|
/*
* Copyright (c) 2003, 2007-14 Matteo Frigo
* Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
*
* The following statement of license applies *only* to this header file,
* and *not* to the other files distributed with FFTW or derived therefrom:
*
* Redistribution and use in source and binary f... |
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
# coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# 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 ... |
import configureStore from './configureStore';
import history from './utils/history';
const initialState = {};
const store = configureStore(initialState, history);
const { dispatch } = store;
export { dispatch };
export default store;
|