text stringlengths 3 1.05M |
|---|
/* P E R P L E X _ T E M P L A T E . C
* BRL-CAD
*
* Copyright (c) 1990-2016 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* Copyright (c) 1990 The Regents of the University of California.
*
* Redistribution and use in source and binary forms, with or without
* ... |
from knitscript.__main__ import main
if __name__ == "__main__":
main()
|
"""A module for working within Bazel's hemetic and sandboxed world.
The design goals of Bazel has led it to have a lot of quirks. This module
contains utility code designed to help live with these quirks.
"""
import os
import pathlib
import re
import subprocess
import typing
from labm8 import app
from labm8 import ar... |
#
# Copyright (c) 2021 Airbyte, Inc., all rights reserved.
#
import json
import os
import pathlib
import re
import shutil
import tempfile
from distutils.dir_util import copy_tree
from typing import Any, Dict
import pytest
from integration_tests.dbt_integration_test import DbtIntegrationTest
from normalization.destina... |
#!/usr/bin/env python
# Jonas Schnelli, 2013
# make sure the Titcoin-Qt.app contains the right plist (including the right version)
# fix made because of serval bugs in Qt mac deployment (https://bugreports.qt-project.org/browse/QTBUG-21267)
from string import Template
from datetime import date
bitcoinDir = "./";
inF... |
(function (obj) {
var i,
foo = 5;
for (i in obj) return foo;
})();
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Copyright (c) 2013 Qin Xuye <qin@qinxuye.me>
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... |
'''OpenGL extension SGIX.scalebias_hint
The official definition of this extension is available here:
http://oss.sgi.com/projects/ogl-sample/registry/SGIX/scalebias_hint.txt
Automatically generated by the get_gl_extensions script, do not edit!
'''
from OpenGL import platform, constants, constant, arrays
from OpenGL i... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
# Rzutowanie wartości na z uint16 na uint8
# https://stackoverflow.com/questions/46689428/convert-np-array-of-type-float64-to-type-uint8-scaling-values
def numpy_to_uint8(the_image, verbal=False):
original_image_type = the_image.dtype
original_... |
##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS I... |
import variable from "theme/variables/platform";
export default (variables = variable) => {
const platformStyle = variables.platformStyle;
const platform = variables.platform;
const footerTheme = {
"NativeBase.Left": {
"NativeBase.Button": {
".transparent": {
... |
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... |
# This file only exists for backwards compatibility
from .explog import Explog
from .initlog import InitLog
|
export default `mongodb+srv://crispen:${process.env.PASSWORD}@cluster0.ap1wf.mongodb.net/shortcuts?retryWrites=true&w=majority`;
|
import Conditions from '../../../../../resources/conditions';
import NetRegexes from '../../../../../resources/netregexes';
import { Responses } from '../../../../../resources/responses';
import ZoneId from '../../../../../resources/zone_id';
export default {
zoneId: ZoneId.DohnMheg,
timelineFile: 'dohn_mhe... |
#!/usr/bin/env python3
import copy
import logging
from reagent.core import aggregators as agg
from reagent.core.observers import IntervalAggregatingObserver
from reagent.models.base import ModelBase
from reagent.reporting.reporter_base import ReporterBase
from reagent.training.reward_network_trainer import LossFunctio... |
const { MessageEmbed, MessageAttachment } = require("discord.js");
const { Canvas } = require('canvacord');
module.exports = {
name: 'facepalm',
aliases: [''],
description: "Sends a meme image using canvacord",
async execute(client, message, args, discord) {
const user = message.mentions.users.... |
/*-------------------------------------------------------------------------
*
* heapam_visibility.c
* Tuple visibility rules for tuples stored in heap.
*
* NOTE: all the HeapTupleSatisfies routines will update the tuple's
* "hint" status bits if we see that the inserting or deleting transaction
* has now commi... |
// 2013, @muazkh » github.com/muaz-khan
// MIT License » https://webrtc-experiment.appspot.com/licence/
// Documentation » https://github.com/muaz-khan/WebRTC-Experiment/tree/master/file-hangout
var config = {
openSocket: function(config) {
var SIGNALING_SERVER = 'https://www.webrtc-experiment.com:8553/',... |
#!/usr/bin/env python
# Copyright 2019 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... |
/*
* Copyright (c) 2019-2020 Nuvoton Technology Corporation
* SPDX-License-Identifier: Apache-2.0
*
* 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/license... |
module.exports = (sequelize, DataTypes) => {
return sequelize.define('record', {
'user_id': DataTypes.INTEGER,
'word_id': DataTypes.INTEGER,
'remember': DataTypes.INTEGER,
'mark_time': DataTypes.DOUBLE,
})
}
|
const path = require('path');
const basePath = path.resolve(__dirname);
module.exports = {
mode: 'production',
output: {
path: path.join(__dirname, 'public/'),
publicPath: '',
},
entry: {
index: './src/index.js',
},
resolve: {
alias: {
Includes: path.join(basePath, 'src/includes/')... |
//
// BaseViewModelProtocol.h
// ZZProductDemo
//
// Created by zhaozhe on 17/3/31.
// Copyright © 2017年 zhaozhe. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol BaseViewModelProtocol <NSObject>
@optional
@end
|
/* global describe, it */
import { expect } from 'chai';
import {
UPDATE_CUSTOM_LABELS,
updateCustomLabels,
} from '../../../../../src/redux/actions/update-custom-labels';
describe('(action) updateCustomLabels', () => {
it('should create an action to update custom labels', () => {
const customLabels = 'payl... |
/*
* Copyright (C) 2011 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... |
import py
from rpython.jit.metainterp.test.test_virtualizable import ImplicitVirtualizableTests
from rpython.jit.backend.zarch.test.support import JitZARCHMixin
class TestVirtualizable(JitZARCHMixin, ImplicitVirtualizableTests):
def test_blackhole_should_not_reenter(self):
py.test.skip("Assertion error & ... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
chrome.experimental.runtime.onInstalled.addListener(function() {
chrome.test.notifyPass();
});
|
from rest_framework import generics, authentication, permissions
from rest_framework.authtoken.views import ObtainAuthToken
from rest_framework.settings import api_settings
from .serializers import UserSerializer, AuthTokenSerializer
class CreateUserView(generics.CreateAPIView):
"""Create a new user in the syste... |
import { combineReducers } from "redux";
import { marketplace } from "./marketplace";
import { filter } from "./filter";
const reducers = combineReducers({
marketplace,
filter,
});
export default reducers;
|
'use strict';
// Setting up route
angular.module('core').directive('scrollOnClick', function() {
return {
restrict: 'A',
link: function(scope, $elm, attrs) {
var idToScroll = attrs.href;
$elm.on('click', function() {
var $target;
if (idToScroll) {
$target = $(idToScrol... |
module.exports = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
],
safelist: ['outline-none'],
theme: {
extend: {
maxWidth: {
'8xl': '1920px',
},
colors: {
primary: 'var(--primary)',
'primary-2': 'var(--primary-2)',
... |
import React from "react";
import {
View,
TextInput,
StyleSheet,
Image,
TouchableWithoutFeedback,
} from "react-native";
import { MaterialCommunityIcons } from "@expo/vector-icons";
import colors from "../config/colors";
function AppTextInput({
icon,
width = 315,
height = 70,
iconSize = 20,
style,... |
# -*- coding: utf-8 -*-
"""
Various label/line-related functions.
"""
from __future__ import absolute_import
import os
import json
import logging
from . import pointers
from . import sym
class Labels(object):
"""
Store all labels.
"""
def __init__(self, config, filename="pokecrystal.sym"):
"... |
int requisicao_recursos(int pid, int recursos[]);
int libera_recursos(int pid, int recursos[]);
|
from django.conf.urls import patterns, include, url
from django.contrib import admin
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'backpage.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
url(r'^admin/', include(admin.site.urls)),
url(r'^app/', include('app.urls'))
) |
# -*- coding: utf-8 -*-
#
# chef-cookbooks documentation build configuration file, created by
# sphinx-quickstart on Thu Dec 23 11:44:29 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
... |
/*
* This file holds functions like creating a game object and game object
* function
*/
//create an instance of the game
var mouse_location = {
x: 0,
y: 0
}
function Game(owner,level_number){
this.end_game = false;
this.stage = new PIXI.Stage(0x008F61,true);
//initialize game attributes
... |
# -*- encoding: utf-8 -*-
"""
Rapids expressions. These are helper classes for H2OFrame.
:copyright: (c) 2016 H2O.ai
:license: Apache License Version 2.0 (see LICENSE for details)
"""
from __future__ import division, print_function, absolute_import, unicode_literals
import collections
import copy
import gc
import m... |
/* Openswan command interface to Pluto
* Copyright (C) 1997 Angelos D. Keromytis.
* Copyright (C) 1998-2001 D. Hugh Redelmeier.
* Copyright (C) 2004 Xelerance Corporation
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published b... |
# !/usr/bin/python3
# coding: utf-8
# Copyright 2015-2018
#
# 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... |
# coding: utf-8
from __future__ import absolute_import, unicode_literals
import logging
from talk.client.base import BaseClient
from talk.client import api
logger = logging.getLogger(__name__)
class TalkClient(BaseClient):
room = api.Room()
file = api.File()
def __init__(self, *args, **kwargs):
... |
from django.db import models
from django.db.models.signals import pre_save
from django.utils import timezone
from django.utils.text import slugify
from django.urls import reverse
from django.contrib.auth.models import User
from django.conf import settings
from django.utils.translation import gettext_lazy as _
from dj... |
#!/usr/bin/env python
#
# @license Apache-2.0
#
# Copyright (c) 2018 The Stdlib Authors.
#
# 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
#
# ... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
import React, { Component } from 'react'
import { Provider,connect } from 'react-redux'
import { CSSTransitionGroup } from 'react-transition-group'
import * as actions from '../actions'
import List from '../components/List'
export class Home extends Component {
render() {
const { listState,sortByHot,sortBy... |
module.exports = TextDecoder;
|
from .froc import FROC
|
"""Display the weather report in a notification."""
__author__ = 'Damon Kohler <damonkohler@gmail.com>'
__copyright__ = 'Copyright (c) 2009, Google Inc.'
__license__ = 'Apache License, Version 2.0'
import android
import weather
def notify_weather(droid):
"""Display the weather at the current location in a notific... |
from __future__ import division
from past.utils import old_div
from builtins import object
from bs4 import BeautifulSoup
from joerd.util import BoundingBox
import joerd.download as download
import joerd.check as check
import joerd.srs as srs
import joerd.index as index
import joerd.mask as mask
import joerd.tmpdir as t... |
from .models import Submission
from utils.api import serializers
from utils.serializers import LanguageNameChoiceField
class CreateSubmissionSerializer(serializers.Serializer):
problem_id = serializers.IntegerField()
language = LanguageNameChoiceField()
code = serializers.CharField(max_length=1024 * 1024)... |
#! python3
import requests, bs4, re, sys, pdfkit, PyPDF2, webbrowser
from os import remove, path
from slugify import slugify
from urllib.parse import urljoin
from functools import reduce
def main():
# Get name of novel
print('*' * 30)
print('novel scraper'.upper().center(30, '*'))
print('*' * 30)
print('Ent... |
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-date.prototype.sethours
description: Type coercion of provided "ms"
info: |
1. Let t be LocalTime(? thisTimeValue(this value)).
2. Let h be ? ToNumber(hour).
3.... |
// @flow
//
// Copyright (c) 2019-present, Cruise LLC
//
// This source code is licensed under the Apache License, Version 2.0,
// found in the LICENSE file in the root directory of this source tree.
// You may not use this file except in compliance with the License.
import { CURRENT_LAYOUT_VERSION } from "webviz-... |
import psycopg2 as db
import sys
con = db.connect(database="testdbdoc", user="postgres", password="seetoh", host="localhost")
print 'Success!'
cur = con.cursor()
_username = 'asdfdffdfasdf'
_password = 'asdfadf'
_phonenumber = '91230418'
_zipcode = '94720'
cur.execute("INSERT INTO doctors (username, password, phonenum... |
import torch
from collections import OrderedDict
from os import path as osp
from tqdm import tqdm
from basicsr.archs import build_network
from basicsr.losses import build_loss
from basicsr.metrics import calculate_metric
from basicsr.utils import get_root_logger, imwrite, tensor2img
from basicsr.utils.registry import ... |
import time
import halo
import tqdm
from . import eleksdraw
from . import gcode
from . import grbl
class GCodeCommandWrapper:
def __init__(self, device, gcode):
self.device = device
self.gcode = gcode
# auto-populate commands from gcode
for key in dir(gcode):
if key.s... |
'use strict';
goog.provide('Blockly.Blocks.device');
goog.require('Blockly.Blocks');
var buttonsDropdownOn = [
["A", "A"],
["B", "B"],
["A+B", "A+B"],
];
var buttonsDropdownIs = [
["A", "A"],
["B", "B"],
];
var analogPinsDropdown = [
["P0", "P0"],
["P1", "P1"],
["P2", "P2"]
];
var digitalPinsDropd... |
""" API
文档网址 https://cn.fflogs.com/v1/docs
"""
import json
import math
from datetime import datetime, timedelta
import aiohttp
from coolqbot import PluginData
from .data import DATA, get_boss_info_by_nickname, get_job_info_by_nickname
from .exceptions import AuthException, DataException, ParameterException
class ... |
from torch import nn
from .single_image import SingleImageModel
class AverageImagesModel(nn.Module):
def __init__(self, mlp_sizes=[768, 128, 2]):
super().__init__()
self.single_image_model = SingleImageModel(mlp_sizes)
def forward(self, x):
# x is of size (B, T, C, H, W)
x = x... |
#
# compare an binary file with the memory position looking for badchars
#
# @helviojunior
# https://www.helviojunior.com.br/
#
# Load with:
# gef> source /path/to/bincompare.py
#
# Use with
# gef> bincompare -f /path/to/bytearray.bin -a memory_address
#
import getopt
import gdb
import os
@register_external_command
c... |
/**
* @author v.ichwan
* created on 16.12.2015
*/
(function () {
'use strict';
angular.module('BlurAdmin.pages.report')
.controller('generatepicactrl', generatepicactrl);
/** @ngInject */
function generatepicactrl($state, $window, authService, ngAuthSettings, $stateParams, $scope, $fil... |
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) &&... |
NOUN_CITATION_FORMS = [
((r"[αη]ς, {art}$", r"^n-1", r"^N:.$"), "1", [
((r"ας, ἡ$", r"^n-1", r"^N:F$"), "1.1/F", [
((r" ας, ἡ$", r"^n-1", r"^N:F$"), "1.1/F", [
((r"α, ας, ἡ$", r"^n-1[ah]$", r"^N:F$"), "1.1/a/F", [
((r"α, ας, ἡ$", r"^n-1a$", r"^N:F$"), "1.1/a1... |
from torcherist.dataloader.text import *
from torcherist.dataset.text import read_ptb
import pytest
import numpy as np
import random
def test_sequential_text_sampler():
my_seq = np.arange(35)
for X, y in sequential_text_sampler(my_seq, batch_size=2, m=5):
X, y = X.numpy(), y.numpy()
assert np.a... |
import boto3
import botocore.config
import os, sys
import logging
import json
aws_config = botocore.config.Config(
region_name = os.getenv('REGION'),
signature_version = 'v4',
retries = {
'max_attempts': int(os.getenv('DEFAULT_MAX_CALL_ATTEMPTS')),
'mode': 'standard'
}
)
logger = loggi... |
import pycuda.driver as cuda
import pycuda.autoinit
def GPUinfo():
cuda.Device.count()
dev = cuda.Device(0)
dev.get_attributes()
#print(dev.MAX_THREADS_PER_BLOCK)
#print(dev.MAX_BLOCK_DIM_X)
#print(dev.MAX_BLOCK_DIM_Y)
#print(dev.MAX_BLOCK_DIM_Z) |
#include "stm32f10x_i2c.h"
#ifndef AT24C02_H_
#define AT24C02_H_
void AT24C02_Write(I2C_TypeDef* I2Cx, unsigned char AddressDevice, unsigned char AddressByte, unsigned char Value);
unsigned char AT24C02_Read(I2C_TypeDef* I2Cx, unsigned char AddressDevice, unsigned char AddressByte);
#endif /* AT24C02_H_ */
|
#!/bin/env python3
import json
class JSONCourtConfig:
"""
Reads Court Configuration JSON file
class parameters: json file, court
Court Configurations:
orange-court-1:
__getitem__:
lower-hsv, upper-hsv, line-conf, angle-tolerance,
region-split-x, r... |
//
// Copyright (c) 2008-2016 the Urho3D project.
//
// 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 the rights
// to use, copy, mod... |
import numpy.matlib
from numpy import format_float_scientific as scinot
import numpy as np
import scipy.sparse as sp
from scipy.linalg import lstsq
from scipy.spatial.distance import pdist
from sklearn.neighbors import NearestNeighbors
from multiprocessing.dummy import Pool as ThreadPool
import itertools
import functoo... |
import copy
from typing import Dict, Optional
import pytest
from great_expectations import DataContext
from great_expectations.data_context import BaseDataContext
from great_expectations.data_context.types.base import (
BaseStoreBackendDefaults,
DatabaseStoreBackendDefaults,
DataContextConfig,
DataCon... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_cli
"""
import unittest
from mongoengine.connection import register_connection
from vulyk import settings
class BaseTest(unittest.TestCase):
DB_NAME = 'vulyk_test'
MONGO_URI = 'mongodb://localhost:27017/'
# override to run against test DB during te... |
var país = 'EUA'
console.log(`Vivendo em ${país}`)
if (país =='Brasil'){
console.log(`Você é Brasileiro`)
} else {
console.log( `Você é Estrangeiro`)
} |
var __extends = this.__extends || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
var Util = require('../../Util');
var SaklientException = require('../../errors/SaklientException');
... |
var chartSizes = require("../../config/chart-sizes");
/**
* see [ChartConfig#calculateDimensions](#chartconfig/calculatedimensions)
* @see ChartConfig#calculateDimensions
* @instance
* @memberof chart_grid_config
*/
function chartGridDimensions(width, opts) {
var height;
var model = opts.model;
var metadata = ... |
import { helper } from '@ember/component/helper';
import { set, get } from '@ember/object';
export function toggle([obj, prop]) {
return function() {
set(obj, prop, !get(obj, prop));
};
}
export default helper(toggle);
|
import numpy as np
import scipy.integrate
from pymctdh.krylov import krylov_prop,krylov_prop_ada
from pymctdh.eom import cmfeom_spfs
from pymctdh.optools import precompute_ops
from pymctdh.cy.wftools import (overlap_matrices,compute_density_matrix,
invert_density_matrix,compute_projector)
from p... |
/** @file scheduler.c
* @brief Scheduler stuff
*
* @author Jan Hieber <mail@janhieber.net>
*/
/** @addtogroup Stuff
* @{
*/
/** @addtogroup Scheduler
* @{
*/
#include <scheduler.h>
#include <stm32f1xx_hal.h>
#include <log.h>
#include <mxconstants.h>
#include <stdint.h>
static uint32_t tick = 0;
stat... |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... |
# The contents of this file are subject to the BitTorrent Open Source License
# Version 1.1 (the License). You may not copy or use this file, in either
# source code or executable form, except in compliance with the License. You
# may obtain a copy of the License at http://www.bittorrent.com/license/.
#
# Software di... |
// Copyright (c) Microsoft Corporation
// SPDX-License-Identifier: MIT
/*++
Abstract:
WDF based driver that does the following:
1. Initializes the eBPF execution context.
2. Opens an IOCTL surface that forwards commands to ebfp_core.
Environment:
Kernel mode
--*/
// ntddk.h needs to be included first due to i... |
import operator
from datetime import date, datetime
import numpy as np
import pandas as pd
import pandas.testing as tm
import pytest
import ibis
import ibis.expr.datatypes as dt
from ibis import literal as L
@pytest.mark.parametrize(
('left', 'right', 'type'),
[
(L('2017-04-01'), date(2017, 4, 2), d... |
from dataclasses import dataclass
from typing import TypeVar
from commanderbot.ext.automod import events
from commanderbot.ext.automod.automod_trigger import AutomodTrigger
from commanderbot.ext.automod.triggers.abc.thread_base import ThreadBase
from commanderbot.lib import JsonObject
ST = TypeVar("ST")
@dataclass
... |
"""newspaper_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
C... |
//
// Generated by class-dump 3.5 (64 bit) (Debug version compiled Sep 17 2017 16:24:48).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2015 by Steve Nygard.
//
#import <MMCommon/WXPBGeneratedMessage.h>
@class BaseResponse, NSString;
@interface PayIBGGetUserOpenIdResp : WXPBGeneratedMessage
{
... |
def goodbye(message):
print(message)
exit(1)
|
from spinnman.messages.eieio.eieio_type import EIEIOType
from spinnman.messages.eieio.eieio_prefix import EIEIOPrefix
from spinnman.messages.eieio.data_messages.eieio_with_payload_data_message\
import EIEIOWithPayloadDataMessage
from spinnman.messages.eieio.data_messages.eieio_data_header\
import EIEIODataHeade... |
/*
* Copyright (c) 2010, Loughborough University - Computer Science
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* ... |
import os
import imp
from setuptools import setup
dirname = os.path.dirname(__file__)
path_version = os.path.join(dirname, 'vaex/astro/_version.py')
version = imp.load_source('version', path_version)
name = 'vaex'
author = 'Maarten A. Breddels'
author_email= 'maartenbreddels@gmail.com'
license = 'MIT'... |
#include <nan.h>
#include <sc2api/sc2_api.h>
class SC2Coordinator : public Nan::ObjectWrap {
public:
Nan::Persistent<v8::Array> participants_;
static NAN_MODULE_INIT(Init);
static NAN_METHOD(New);
static NAN_METHOD(LoadSettings);
static NAN_METHOD(LaunchStarcraft);
static NAN_METHOD(Update);
static NAN_M... |
const Queue = require('bull')
const redis = require('./redisConfig')
const { Sequelize, sequelize, AlertMatch } = require('../models')
const { getWeekDayIndex, sendOneSignalNotification, createNotification } = require('../tools/tools')
const moment = require('moment-timezone')
const _ = require('lodash')
const CheckAl... |
import pytest
from naucse.models import merge_dict
def test_scalars():
assert merge_dict(
{'a': 1, 'b': 2},
{'b': 5, 'c': 6},
) == {'a': 1, 'b': 5, 'c': 6}
def test_subdict():
assert merge_dict(
{'subdict': {'a': 1, 'b': 2}},
{'subdict': {'b': 5, 'c': 6}},
) == {'s... |
class BezierCurve(object,IDisposable):
"""
BezierCurve(controlPoints: IEnumerable[Point2d])
BezierCurve(controlPoints: IEnumerable[Point3d])
BezierCurve(controlPoints: IEnumerable[Point4d])
"""
def ChangeDimension(self,desiredDimension):
""" ChangeDimension(self: BezierCurve,desiredDimension: int) -> b... |
import cProfile
def numberOfPaths(nXm_matrix):
"""
Returns the total number of paths from the top left
to the bottom right by moving right and down in a 2D array
of size n x m. Where cells can only contain `1` or `0` while
real paths can only contain `1`.
"""
hight = len(nXm_matrix)
wi... |
const toTone = require('../../tone-script')
const toCall = require('../../call-script')
const fs = require('fs')
const template = fs.readFileSync('generator/lexicon.template.html', 'utf-8')
fs.readdirSync('lexicon')
.filter(x => x.match(/\.csv$/))
.map(x => {
return {
name: x.replace(/\.csv$/, ''),
... |
from django.conf import settings
from django.dispatch import Signal
from django.http import HttpResponseRedirect
from ..base_client import FrameworkIntegration, RemoteApp
from ..requests_client import OAuth1Session, OAuth2Session
token_update = Signal(providing_args=['name', 'token', 'refresh_token', 'access_token'])... |
(function( window, undefined ) {
kendo.cultures["ky-KG"] = {
name: "ky-KG",
numberFormat: {
pattern: ["-n"],
decimals: 2,
",": " ",
".": ",",
groupSize: [3],
percent: {
pattern: ["-n%","n%"],
dec... |
import glob
import numpy as np
files = glob.glob("./O/*.csv")
probs = []
labels = []
for file in files:
with open(file) as f:
data = f.readlines()
ids = []
temp = []
temp1 = []
for line in data[1:]:
id, proba, label = line.strip().split(",")
id = int(id)
ids.append(id)
proba = float(proba)
label = i... |
# -*- coding: utf-8 -*-
#
# Django Mail Queue documentation build configuration file, created by
# sphinx-quickstart on Thu Oct 27 10:48:53 2011.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated fil... |