blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ddb5bc9e87cfc65e9510b627a37f2f35ff9512ab | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/WWP-LEOS-TABLE-CHG-NOTIF-MIB.py | d8fa65af32a4a4509f661a718246905fca451a21 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 12,414 | py | #
# PySNMP MIB module WWP-LEOS-TABLE-CHG-NOTIF-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WWP-LEOS-TABLE-CHG-NOTIF-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:38:29 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python vers... | [
"[email protected]"
] | |
feff5ab73695206b96ceecd566fb5f3a48277960 | 685f4474699d769dae88537c69f5517ac13a8431 | /EL266.py | 03916d472efa7cdc10b541a5ebdc329e8c3f3e82 | [] | no_license | Pumafied/Project-Euler | 7466f48e449b7314598c106398c0be0424ae72d5 | 0c3e80a956893ce1881a9694131d52b156b9d3d8 | refs/heads/master | 2016-09-05T22:45:09.733696 | 2013-04-20T04:46:48 | 2013-04-20T04:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | # The divisors of 12 are: 1,2,3,4,6 and 12.
# The largest divisor of 12 that does not exceed the square root of 12 is 3.
# We shall call the largest divisor of an integer n that does not exceed the square root of n the pseudo square root (PSR) of n.
# It can be seen that PSR(3102)=47.
# Let p be the product of th... | [
"[email protected]"
] | |
a8c147db047fa4bcc792392e8c7a98ea3ea03be4 | 18576820ca4cfbecbfc8e8c05e9aaba0809e6138 | /fizeau_control_loop.py | 5ea265e3af610f8f96546e44790327fc23afc2ca | [] | no_license | mwanakijiji/lbti_fizeau_control | d12e3fcfa12725ab24c42acaaea6e83bd97e2f02 | 08cd6aa2ae77d028b3b5d794d6403bffe143b25d | refs/heads/master | 2021-07-09T09:13:06.175214 | 2018-12-10T16:24:44 | 2018-12-10T16:24:44 | 139,908,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | #!/usr/bin/python
from lmircam_tools import *
from lmircam_tools.overlap_psfs import overlap_airy_psfs, overlap_grism_psfs
from lmircam_tools.dial_opd import optimize_opd_fizeau_grism, optimize_opd_fizeau_airy
from lmircam_tools.change_tt import optimize_tt_fizeau_airy
############## BEGIN GROSS OVERLAP OF NON-FIZEA... | [
"[email protected]"
] | |
ed86d450a200b1a3716031f000c74d3c8bc7d0b5 | 449f410b621049c4049a4f7d4b0858f53d56a7d7 | /tests/test_text.py | 6551f5ce92298f3a3be022e2e9f7888b1f6651cd | [
"MIT"
] | permissive | mvwicky/holdmypics | c02f25fd05d9694ff61d5839bd039a3a1bea4b01 | 194b135f885ef76d55975727a4a5125a6f9d33ee | refs/heads/main | 2023-05-10T19:36:20.978697 | 2023-05-06T21:27:29 | 2023-05-06T21:27:29 | 196,925,416 | 0 | 0 | MIT | 2023-03-31T15:23:01 | 2019-07-15T04:45:27 | Python | UTF-8 | Python | false | false | 5,151 | py | from __future__ import annotations
import imghdr
import io
import os
import time
from collections.abc import Callable
from typing import TYPE_CHECKING
from urllib.parse import urlencode
import pytest
from flask.testing import FlaskClient
from hypothesis import example, given, strategies as st
from loguru import logge... | [
"[email protected]"
] | |
738b8cf3f59c9df7da1c0c7c55adfefafc2b9a16 | 9ba61317b33c4015ccfedd80a08532e6698c5b7f | /mnist_data/mnist_app.py | 59c99360f921f9ad12f26afc3ca2d477430a7abd | [] | no_license | csliuchang/tensorflow_project | 68ff7cdda3805747529de8e57bdcb94e8abaf4f2 | 0ff718d814ee2e181a35dd968e596421e6986616 | refs/heads/master | 2020-06-25T23:57:36.669965 | 2019-08-02T11:28:10 | 2019-08-02T11:28:10 | 199,460,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | # coding utf-8
import tensorflow as tf
import numpy as np
from PIL import Image
import mnist_backward
import mnist_forward
# from .mnist_backward import MODEL_SAVE_PATH
def restore_model(testPicArr):
"""
" 创建一个默认图,在改图中执行以下操作"
args:
MOVING_AVERAGE_DECAY: 用于控制模型更新的速度,训练过程中会对每一个变量维护一个影子变量,这个影子变量的初始... | [
"[email protected]"
] | |
0e529e884f05b337cd282d3977342a4aee9e70b4 | 5f73a8162b8c22f8f65c2c1a98b5a61502fb0ed3 | /viskit/frontend.py | 4a3a355fec35cebee5d079cd865cd968af6996c8 | [] | no_license | brandontrabucco/viskit | b6d18ba2d8f32779b0bb98fa550a80c6d6463ec2 | a546e51e13bd1cf0eb9fa5284f1c596b88eded50 | refs/heads/master | 2020-04-29T21:40:45.270104 | 2019-03-19T04:03:44 | 2019-03-19T04:03:44 | 176,420,386 | 0 | 0 | null | 2019-03-19T04:01:00 | 2019-03-19T04:01:00 | null | UTF-8 | Python | false | false | 30,527 | py | import sys
from viskit.core import AttrDict
sys.path.append('.')
import matplotlib
import os
matplotlib.use('Agg')
import flask # import Flask, render_template, send_from_directory
from viskit import core
import sys
import argparse
import json
import numpy as np
from plotly import tools
import plotly.offline as po
... | [
"[email protected]"
] | |
e87fd0af770bdebc927b353eaa39dd78d958400f | d75f2550f0493a153e144759c8c6c378a4c436b2 | /base_kivy_app/graphics.py | e766af9a31226890faa523de76926c8702df8b2d | [
"MIT"
] | permissive | healthonrails/base_kivy_app | c946fab1e130cd4b40eadc45116a2c4eabf460cf | 47ade9665c79850909d4f2b6bae3acebaa1a0a3c | refs/heads/master | 2020-12-10T18:55:36.819462 | 2020-01-03T23:36:46 | 2020-01-03T23:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,652 | py | '''Graphics
============
'''
from os.path import join, dirname
import math
from time import perf_counter
from functools import partial
from inspect import isclass
from math import pow, fabs
from kivy.lang import Builder
from kivy.clock import Clock
from kivy.properties import (
NumericProperty, ReferenceListProper... | [
"[email protected]"
] | |
1694499f38c5a7460bdbbd2db70b473fc4b3672a | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/Lambda-Resource-Static-Assets/2-resources/BLOG/Data-Structures/1-Python/sort/bubble_sort.py | eab30b253fea793d1b3452317c7e81488330911d | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 770 | py | """
https://en.wikipedia.org/wiki/Bubble_sort
Worst-case performance: O(N^2)
If you call bubble_sort(arr,True), you can see the process of the sort
Default is simulation = False
"""
def bubble_sort(arr, simulation=False):
def swap(i, j):
arr[i], arr[j] = arr[j], arr[i]
n = len(arr)
swapped = ... | [
"[email protected]"
] | |
9696ef11bc4fc57ad2c5358083c52b57eba4a87c | 3e7a8c5630de986a4d02011b1bd368c041f3f477 | /pytorch/pytorch实现多层感知机对手写数字分类.py | 9bc6523f288118ada524b6e1da6d7b78f30ab5bd | [] | no_license | gswyhq/hello-world | b9ef715f80d2b39c8efaa1aa2eb18a6257e26218 | b1ab053a05e1f8c63b8b04d6904a3cdca450bd9f | refs/heads/master | 2023-05-26T13:15:36.788620 | 2023-05-19T13:38:50 | 2023-05-19T13:38:50 | 158,821,148 | 16 | 6 | null | 2021-03-19T02:59:48 | 2018-11-23T11:04:43 | Python | UTF-8 | Python | false | false | 4,428 | py | #!/usr/bin/env python
# coding: utf-8
# # 3.10 多层感知机的简洁实现
# In[ ]:
import torch
from torch import nn
from torch.nn import init
import numpy as np
import sys
import torchvision
print(torch.__version__)
# ## 3.10.1 定义模型
# In[11]:
num_inputs, num_outputs, num_hiddens = 784, 10, 256
class FlattenLayer(torch.nn.M... | [
"[email protected]"
] | |
d40cbd78c22105244ca33f02a4478fe8bbf16590 | a8720518ad514ed4ce893afc43576b6d44ad80b1 | /homepage/core/admin.py | 42e968b08de540fbcf2531c8f353b64cdaf5e2c2 | [] | no_license | AlecAivazis/homepage-old | 39d7b08219a1aa1341af8a1ce8ae17dab136ea7d | c48abea73d7118455ac207058cdf0f9d00352877 | refs/heads/master | 2023-03-12T14:13:44.321900 | 2015-10-28T23:44:43 | 2015-10-28T23:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- Python -*-
# -*- coding: utf-8 -*-
#
# alec aivazis
#
# this file describes the base administration for homepage
# homepage imports
from .models import Project, ProjectScreenshot
# import the django admin
from django.contrib import admin
# register the base models
admin.site.register(Project)
admin.site.regist... | [
"[email protected]"
] | |
b683a8b084d250943a04f7b80d5cb9fa65abfa8c | ee974d693ca4c4156121f8cb385328b52eaac07c | /env/lib/python3.6/site-packages/imgaug/augmenters/contrast.py | 73170bb37c584e7b4de84c07db04386b23c4f881 | [] | no_license | ngonhi/Attendance_Check_System_with_Face_Recognition | f4531cc4dee565d0e45c02217f73f3eda412b414 | 92ff88cbc0c740ad48e149033efd38137c9be88d | refs/heads/main | 2023-03-12T07:03:25.302649 | 2021-02-26T15:37:33 | 2021-02-26T15:37:33 | 341,493,686 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:6724a23ca8693f52610258fd36edf644480787d709d4351080b5513adc338d47
size 57678
| [
"Nqk180998!"
] | Nqk180998! |
1c65d2f8b68e1df88765b82bf73aa337b70d5bf6 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/networkcloud/azure-mgmt-networkcloud/generated_samples/agent_pools_create.py | e4702cfc48a1642bf33c4566afcd5f9eb16bf7eb | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,299 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
b92c719c838c44f7a9aab607d59e87dbb6da351d | e97060ebb056b8c037e9cf95be08158ecab321bc | /ibmsecurity/isds/interfaces.py | f6af6a062b6ec84043d1ca491d2a39cc3363fcb0 | [
"Apache-2.0"
] | permissive | sandermey/ibmsecurity | 74ed8378e9ddb9f778b76d227e90cfb747511c1e | 92ba7828260e96a6a323f4ac3830bfa43ee8dd7e | refs/heads/master | 2020-04-09T22:49:06.302901 | 2018-03-07T05:04:37 | 2018-03-07T05:04:37 | 124,246,868 | 0 | 0 | Apache-2.0 | 2018-03-07T14:21:29 | 2018-03-07T14:21:28 | null | UTF-8 | Python | false | false | 1,052 | py | import logging
import ibmsecurity.utilities.tools
logger = logging.getLogger(__name__)
def get_all(isdsAppliance, check_mode=False, force=False):
"""
Retrieving all interfaces
:rtype: (str, dict)
"""
return isdsAppliance.invoke_get("Retrieving all interfaces", "/widgets/mgmtinterface")
def get_a... | [
"[email protected]"
] | |
2eab281a1db78a8b6420122afd404fe0b0a12c37 | 568fa58296378fa129ab3349adf010daa44ed45b | /third_party/incubator-tvm/python/tvm/contrib/miopen.py | e062ac1e735ecdca9a09778d0aaef388d7a78837 | [
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Unlicense",
"LLVM-exception"
] | permissive | mindspore-ai/akg | 37f471badc66de6a831f1f45ad84344f34d23ef2 | 99f33858d6972741748cbfc9ab0bf9600428fef7 | refs/heads/master | 2023-07-25T23:03:17.672665 | 2023-07-11T07:33:57 | 2023-07-11T07:33:57 | 274,077,856 | 319 | 36 | Apache-2.0 | 2021-12-30T13:43:08 | 2020-06-22T08:09:05 | Python | UTF-8 | Python | false | false | 3,805 | py | # 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... | [
"[email protected]"
] | |
ef9da3bac625f676f56fdc1d3a6ff80c1630d9da | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4060/224004060.py | 0cfd110dffd480626cfac7c195c4d02697106c2d | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 416 | py | from bots.botsconfig import *
from records004060 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'MA',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'CF1', MIN: 1, MAX: 1},
{ID: 'CF2', MIN: 1, MAX: 9999, LE... | [
"[email protected]"
] | |
cfd2f57ade3b18556861fc73ac6feeca514adc38 | e4d39c514c8f555a706d4d293b91e253a23614aa | /manage.py | 572ea681f23fba520e85784690e8183a78c12971 | [] | no_license | shubhamjain31/AskForum | ddda79528026ed027e2268b99cfc5cb9ea412c54 | f234f9ad1fb8d55520ced6987b1aec5d74fc7c08 | refs/heads/main | 2023-03-10T21:41:25.559793 | 2021-02-26T16:52:58 | 2021-02-26T16:52:58 | 309,034,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'AskForum.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"[email protected]"
] | |
50ef32c94d5e5aee734232dd3e61fc70bf587629 | 8773e8c9b9a0a6e407f91b6f7c6321141d7e8356 | /P0113.py | 0b8fdc5ce3434443cc3611041a335ba30d4bcad7 | [] | no_license | westgate458/LeetCode | 1836bb21e8dd95386ccab390f5fd04567a429a02 | 36d7f9e967a62db77622e0888f61999d7f37579a | refs/heads/master | 2021-12-28T04:16:36.875737 | 2021-12-17T05:48:09 | 2021-12-17T05:48:09 | 152,928,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 3 13:23:08 2019
@author: Tianqi Guo
"""
class Solution(object):
def pathSum(self, root, sum):
"""
:type root: TreeNode
:type sum: int
:rtype: List[List[int]]
"""
# deal with trivial case
if not root: ... | [
"[email protected]"
] | |
f4440770a165003e26a1fe82ab270ff926180faa | b822fd48d109c59a07cfef5196888c3f22c792b3 | /aae/train.py | 0c434501c97952da300c1a76736c15a79a31d1cb | [
"MIT"
] | permissive | cupOJoseph/drawlikebobross | 2e179f24bc59303be2782d95880235c57995a460 | e4c33745c605d17ea6b9e5bea3cf339eb875a58a | refs/heads/master | 2022-05-05T12:18:45.504161 | 2018-07-05T02:21:40 | 2018-07-05T02:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | import os
import sys
import argparse
import torch
import torchvision.transforms as transforms
sys.path.append(os.path.dirname(__file__))
from trainer import gan_trainer
from loader import BobRossDataset
# Params
parser = argparse.ArgumentParser(description='GAN trainer')
parser.add_argument('--epoch', default=500, ... | [
"[email protected]"
] | |
75302cb9e4d1e3d5f8bf29b9814776112b3b0823 | ab0f2794733a129d4073542a1c9315f95f1b7ca8 | /hello.py | ddddd1c76ee9aebeeffa87a41cc017b685828c26 | [] | no_license | krishna-prasath/guvi | d0fbe631e932888ba426f77ba4feaa32d4e66781 | 98fd72ffa03e5d8e7a9fe68989924b690cd92c1b | refs/heads/master | 2020-04-15T04:59:38.243149 | 2019-06-12T19:32:59 | 2019-06-12T19:32:59 | 164,404,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | a=int(input())
if a==0:
print(" ")
else:
print("Hello"*a)
| [
"[email protected]"
] | |
faa0232a40c211a3852add071f93ba865508361c | f445450ac693b466ca20b42f1ac82071d32dd991 | /generated_tempdir_2019_09_15_163300/generated_part002186.py | 828488582f050dee16fc5a1431eafefa81c4dca2 | [] | no_license | Upabjojr/rubi_generated | 76e43cbafe70b4e1516fb761cabd9e5257691374 | cd35e9e51722b04fb159ada3d5811d62a423e429 | refs/heads/master | 2020-07-25T17:26:19.227918 | 2019-09-15T15:41:48 | 2019-09-15T15:41:48 | 208,357,412 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,304 | py | from sympy.abc import *
from matchpy.matching.many_to_one import CommutativeMatcher
from matchpy import *
from matchpy.utils import VariableWithCount
from collections import deque
from multiset import Multiset
from sympy.integrals.rubi.constraints import *
from sympy.integrals.rubi.utility_function import *
from sympy.... | [
"[email protected]"
] | |
67c3f9ec9c939f9d356a5fd38f10e6df68ba4e5e | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/celery/2016/4/test_filesystem.py | e96039d394100b3efa36fe17417d2f22b8d73151 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 2,471 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import os
import shutil
import tempfile
from celery import states
from celery.backends.filesystem import FilesystemBackend
from celery.exceptions import ImproperlyConfigured
from celery.utils import uuid
from celery.tests.case import Ap... | [
"[email protected]"
] | |
37ec8231587eda9a2df9ede1cf5ec2282956d8c1 | d4d3b859f136154427c36924f87525590853873a | /Tools.py | b104a92fdf8abdde26ffeaa6ddae63c1d381c369 | [] | no_license | lijiunderstand/Semantic_Segmentation_RefineNet | 46b002f53254d5cc0bb4b9565382d2386a1d01c9 | ec7ea477096dafc2052fa74fdb3277199251a35f | refs/heads/master | 2020-04-18T10:16:16.303654 | 2018-07-11T16:41:18 | 2018-07-11T16:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,346 | py | import time
import os
from tensorflow.python import pywrap_tensorflow
import numpy as np
from matplotlib import pyplot as plt
import cv2
class Tools:
def __init__(self):
pass
@staticmethod
def print_info(info):
print(time.strftime("%H:%M:%S", time.localtime()), info)
pass
# 新... | [
"[email protected]"
] | |
428f590f1df538a492bd7a601fcb55bf5ce4ee3b | 81fff1188c6918fbe7ccbcd9e61b62456f0abef5 | /backend/settings.py | 4531b84a2b3ef8fe367cd5479e52c1a85a274c8d | [
"MIT"
] | permissive | mugash/cookbook-graphql-backend | 2742087f3e6c4012f5c99c17c0518c27a8b30078 | 116e9dc2e5b0d63a2e4429a5c6f192cd0c43508d | refs/heads/master | 2020-12-02T16:13:25.043539 | 2017-07-07T09:02:42 | 2017-07-07T09:02:42 | 96,519,903 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,205 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"[email protected]"
] | |
9d12a804190337836e997d0e7f88d8a22da76e8b | 84147502b81451a2f9bcaabc00a35789afe132f0 | /fastapistudy/test_chapter08.py | abf3208c284c9c77487e9a7b074f1a6fe1c9b59a | [] | no_license | teng-tt/Fastapi_Study | bfdb3ca9f97cf8e2a928f56a77d0fc17c5bb9692 | 946decd07b0de98ce353d4008c7920c778a94a6f | refs/heads/master | 2023-06-01T14:57:43.811721 | 2021-06-13T03:50:55 | 2021-06-13T03:50:55 | 360,474,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | # !/usr/bin/python3
# -*- coding:utf-8 -*-
# __author__ = "Teng"
from fastapi.testclient import TestClient
from run import app
""" 测试用例 """
client = TestClient(app) # 先安装pytest
def test_run_bg_task(): # 主义不是async def h函数test开头是一种pytest规范
response = client.post(url="/chapter08/background_tasks?framework=FastAp... | [
"[email protected]"
] | |
6127053660627a2dde6c74165c90c823c64c299b | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_04_01/aio/operations/_ddos_custom_policies_operations.py | eac7c4ae02f97170fa3e3be18ebca8027cc97483 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 22,058 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"[email protected]"
] | |
a6e2b69a7dd2c15bf8f960ee53cf86c2fca9e9cd | 9eb35d6df7b0490d556623f84dba12bb05f30ee2 | /models_and_validation/cross_validation.py | 6b2524e4812c1b21e05c66400b87e28df0741375 | [
"MIT"
] | permissive | FelSiq/statistics-related | 0b4442bd19338c5b0da7dcf5ecd53eb304dcd3f8 | ee050202717fc368a3793b195dea03687026eb1f | refs/heads/master | 2021-11-24T12:31:08.660652 | 2021-11-03T23:42:39 | 2021-11-03T23:42:39 | 211,089,869 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,204 | py | """Tests with cross-validation.
General and simple method used for estimating unknown parameters
from data.
General algorithm:
1. Randomly partition the data X of size n into X_{train} and X_{test}
Let m = X_{test}.size
Therefore, X_{train}.size = n - m
2. Fit the model using X_{train}
3. ... | [
"[email protected]"
] | |
abc24fb1a2d224e5ce351a3c7c1e216546bed8fa | e6208febf7e34d4108422c6da54453373733a421 | /sdks/python/client/argo_workflows/model/io_argoproj_workflow_v1alpha1_gcs_artifact_repository.py | 721344cf443c2cbdacfa8ae5df74a17003b32c37 | [
"Apache-2.0"
] | permissive | wreed4/argo | 05889e5bb7738d534660c58a7ec71c454e6ac9bb | 41f94310b0f7fee1ccd533849bb3af7f1ad4f672 | refs/heads/master | 2023-01-22T05:32:12.254485 | 2022-01-27T21:24:45 | 2022-01-27T22:02:22 | 233,143,964 | 0 | 0 | Apache-2.0 | 2023-01-17T19:04:43 | 2020-01-10T22:56:25 | Go | UTF-8 | Python | false | false | 12,162 | py | """
Argo Server API
You can get examples of requests and responses by using the CLI with `--gloglevel=9`, e.g. `argo list --gloglevel=9` # noqa: E501
The version of the OpenAPI document: VERSION
Generated by: https://openapi-generator.tech
"""
import re # noqa: F401
import sys # noqa: F401
from ... | [
"[email protected]"
] | |
feb5e81dff37b3e59bb6b25fe4a2ad1dd53ee5f0 | 4591684136ac81244d5337197e97f58864d7fff3 | /keras/keras18_ensemble1.py | afb0ad3b17ce43849797d7ecfda41ba1b2a9b692 | [] | no_license | marattang/AI_training | 4b15e9d9734d77ae04beaae078749c85d832c9c5 | f7f1a2b762dcf770335b62ee668ad1c54ccf1ceb | refs/heads/main | 2023-06-20T19:05:10.385238 | 2021-07-26T00:29:10 | 2021-07-26T00:29:10 | 383,965,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py | from tensorflow.keras.models import Model
from tensorflow.keras.layers import Dense, Input
import numpy as np
from tensorflow.keras.layers import concatenate, Concatenate
from sklearn.model_selection import train_test_split
from sklearn.metrics import r2_score
x1 = np.array([range(100), range(301, 401), range(1, 101)]... | [
"[email protected]"
] | |
e23cff71c1b73f9b5b94aefde10c99cbf6be3d6d | 66fb1005aaeb25735a1ae9197ab7dd371862bbf2 | /sysadmin_scripts/mongodb_data_model_3/updateDB.py | 4cd67377a565ab4d07f01bf4870f41dc2df64706 | [
"MIT"
] | permissive | jfnavarro/st_misc | 8a8d87df9e059dbd2a037d4267acd4e21593e7c4 | bb8c1f2c4f05343f6dd5cc8b8cd8f405d825bd31 | refs/heads/master | 2021-01-01T17:13:58.540991 | 2017-08-22T13:04:26 | 2017-08-22T13:04:26 | 98,029,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,714 | py | #! /usr/bin/env python
"""
Script to convert ST API database model 2 to model 3
@author: Jose Fernandez
"""
import argparse
import os
import sys
try:
from pymongo import MongoClient
from pymongo import errors
from bson.objectid import ObjectId
except ImportError, e:
sys.stderr.write("Pymongo was not f... | [
"[email protected]"
] | |
b0a4eaabb5ac8a0fbcc6c8266ba143827102a7db | 6b98eeaf6eb485e1cc4d56c3eda15b6482f21296 | /app/grandchallenge/evaluation/migrations/0003_config_new_results_are_public.py | d09b3fcc4484ec754dc2e22c6730305c3811c093 | [
"Apache-2.0"
] | permissive | cnbillow/grand-challenge.org | ef2db96c7bc6919aa7ee993d43978f8c3185a71f | de90bd01ca6aa883dcb47c4d005bd15f38549752 | refs/heads/master | 2020-03-28T03:07:41.905924 | 2018-09-06T04:45:57 | 2018-09-06T04:45:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 653 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-03 10:27
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("evaluation", "0002_config_submission_page_html")]
operations = [
migrations.AddField(
... | [
"[email protected]"
] | |
5ba4cad4c0f578ee5023846bff798403f454451d | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03548/s413867262.py | f0f0fea98a3638b5746c91a4b886907789bfdba3 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | x,y,z = map(int,input().split())
x -= z
r = x // (y + z)
print(r) | [
"[email protected]"
] | |
25901eb4746bde899cc2b41588f21da0d665c13b | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/E/elleryq/haodooscraper.py | 7afbaca75ca4d510bc65104eb77ff5d74af43eac | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,488 | py | # For scrape Haodoo (http://www.haodoo.net)
import scraperwiki
import simplejson
import lxml.html
import sys
from urlparse import parse_qs
from urllib import urlencode
import traceback
base_url = 'http://www.haodoo.net'
def parse_books_from_html( html ):
"""
Parse the url of each book from the book list page.... | [
"[email protected]"
] | |
7291d8ba50828814176f7abb193c7cde1e7ba1c6 | 9d93af3cf4a663fe5e9618061a37d0910c089cea | /tests/test_decompressor_decompressobj.py | 8787afa53b47209b0870bd073017dbb59cd40c88 | [
"BSD-3-Clause"
] | permissive | glandium/python-zstandard | 49bd96daed537169345f8024ead5a4fe599f8b4d | 80c3142f274621d11b1e3c401e17ee4b983ab1a5 | refs/heads/master | 2022-12-07T00:34:01.413940 | 2022-10-29T22:33:35 | 2022-10-29T22:38:08 | 134,373,670 | 0 | 0 | null | 2018-05-22T06:57:46 | 2018-05-22T06:57:46 | null | UTF-8 | Python | false | false | 3,799 | py | import unittest
import zstandard as zstd
class TestDecompressor_decompressobj(unittest.TestCase):
def test_simple(self):
data = zstd.ZstdCompressor(level=1).compress(b"foobar")
dctx = zstd.ZstdDecompressor()
dobj = dctx.decompressobj()
self.assertEqual(dobj.unused_data, b"")
... | [
"[email protected]"
] | |
57848684f29088f1594e93d18a9cca0f11cda17c | c8781d3dc17202fcc1b5358475071c0a834c7f82 | /ShowAndSearch/utils/parser.py | fe86a895837ffa7cf0261b804c6bb2395d13278d | [
"Apache-2.0"
] | permissive | guchengxi1994/show-and-search | 7b73d4a7a0250a0f70cf07b0de7695d6c8051545 | e955a6677f3cd23b1f7ed247e828a5852ec6ab20 | refs/heads/master | 2022-12-22T06:28:36.601500 | 2020-09-22T05:17:14 | 2020-09-22T05:17:14 | 295,630,132 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | '''
lanhuage: python
Descripttion:
version: beta
Author: xiaoshuyui
Date: 2020-09-15 15:59:10
LastEditors: xiaoshuyui
LastEditTime: 2020-09-22 11:19:20
'''
import argparse
from ShowAndSearch.utils.logger import logger
class BaseParser(object):
def __init__(self, args: list, method: str):
"""
args... | [
"[email protected]"
] | |
b4922344953251b60d5c915c16fcf704c828a4f4 | 74217e968104103957048b4edfb024c8b42edf4d | /hvad/tests/contrib/restframework.py | 7098219d4494b36587a7d8793e6bb0fb4923ae2e | [
"BSD-3-Clause"
] | permissive | trungdq88/django-hvad | 41fcc004419a5f0698791dbd1ce5888f3234b2db | 496aa83553ced45bedbced7b5b364c4436e9c8e2 | refs/heads/master | 2021-01-24T23:51:38.392630 | 2015-12-23T14:20:24 | 2015-12-23T14:20:24 | 48,811,194 | 0 | 0 | null | 2015-12-30T17:10:31 | 2015-12-30T17:10:31 | null | UTF-8 | Python | false | false | 21,664 | py | # -*- coding: utf-8 -*-
from rest_framework.serializers import ModelSerializer, CharField
from hvad.test_utils.context_managers import LanguageOverride
from hvad.test_utils.testcase import HvadTestCase
from hvad.test_utils.project.app.models import Normal
from hvad.test_utils.data import NORMAL
from hvad.test_utils.fix... | [
"[email protected]"
] | |
6a0aec763b5e253145873cd3bed3a39e26344b7f | 016b7b0cdd60900ca9b2e26f959142c30313e00d | /report/views.py | 1c7bc22d70a1ad296f8eed19d0e4747783cedc6b | [] | no_license | groob/imagr_server | 1e2abdab290b020225359103e72f56ecec7d52b5 | 81dfa968ed48ec719803dd0d53f17b92130e76da | refs/heads/master | 2020-04-05T23:06:40.972867 | 2015-06-11T14:46:15 | 2015-06-11T14:46:15 | 51,090,790 | 0 | 0 | null | 2016-02-04T16:58:34 | 2016-02-04T16:58:34 | null | UTF-8 | Python | false | false | 773 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.views.decorators.csrf import csrf_exempt
from models import *
# Create your views here.
@csrf_exempt
def index(request):
data = request.POST
serial = data['serial']
message = data['message']
status = data['status']
... | [
"[email protected]"
] | |
beefc26ee5cc6b2af147350338002391621f0297 | 80e6e31054fe9105d2c26be7aac53c4cd6a4a33f | /scripts/kettle/oracle2hive.py | 532ed84e5b965fec9f9c21de191d5f8bc008386d | [] | no_license | alionishere/learn_python | 8a7f6dc7d754a357d4cb720f4bc0d5c3e6e5e895 | 832b8e0579da0b7ab37e815be10204f8de1ad22d | refs/heads/master | 2021-06-24T11:02:05.111027 | 2021-06-23T08:47:06 | 2021-06-23T08:47:06 | 223,834,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,666 | py | # -*- coding: utf-8 -*-
import json
import dbutils
get_ora_meta_sql = '''
SELECT t1.OWNER
,t1.TABLE_NAME
,t1.COLUMN_NAME
,t1.DATA_TYPE
,t1.DATA_LENGTH
,t1.DATA_PRECISION
,t1.DATA_SCALE
,t2.COMMENTS
FROM DBA_TAB_COLUMNS t1
LEFT JOIN DBA_COL_COMMENTS t2
ON t1.OW... | [
"[email protected]"
] | |
ed264a15f7a93c1ffc3c24393851337420b1c8c5 | 5f67c696967456c063e5f8a0d14cf18cf845ad38 | /archiv/_python/py4inf/gmane/gyear.py | 30e892a7e7d666c4991703bf713d123ac276373c | [] | no_license | wuxi20/Pythonista | 3f2abf8c40fd6554a4d7596982c510e6ba3d6d38 | acf12d264615749f605a0a6b6ea7ab72442e049c | refs/heads/master | 2020-04-02T01:17:39.264328 | 2019-04-16T18:26:59 | 2019-04-16T18:26:59 | 153,848,116 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,705 | py | import sqlite3
import time
import urllib.request, urllib.parse, urllib.error
import zlib
conn = sqlite3.connect('index.sqlite')
conn.text_factory = str
cur = conn.cursor()
# Determine the top ten organizations
cur.execute('''SELECT Messages.id, sender FROM Messages
JOIN Senders ON Messages.sender_id = Senders.id... | [
"[email protected]"
] | |
0e688ee0061c5df180a71f4e16541de90c10d0b4 | 39bc099123097e1a183b44437954a3f037125891 | /tests/ext/modeling.py | b4844cc12cbbd9efb8749f282a606990ae3eb1a8 | [
"MIT"
] | permissive | pranaya-mathur/bert-for-tf2 | 81c5f1db765ca6e06651e284f0911ba9099c6f99 | cad915ee9d20802a05181373fe30b716a70bc870 | refs/heads/master | 2020-09-05T18:00:24.987757 | 2019-11-05T16:19:44 | 2019-11-05T16:19:44 | 220,175,286 | 1 | 0 | MIT | 2019-11-07T07:19:26 | 2019-11-07T07:19:25 | null | UTF-8 | Python | false | false | 38,936 | py | # coding=utf-8
# Copyright 2018 The Google AI Language Team 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
#
# Unless required by ... | [
"[email protected]"
] | |
e8001a656cae6b21c00f398deca4b950fda490ed | ab98c033b4c2e80b304e9f77b740b6d545870b66 | /data_aggregation/CreationBDD2_3_aliases+GoTerms/researchDG.py | 86a42e0a2c3605a4904beaa95bb1e64303e6338a | [] | no_license | yannistannier/textmining-light | 503384c28f5fb4763293ced15337295685d84ba3 | 864210d127684d5af55336ceb8c0718d0f2c3e3c | refs/heads/master | 2020-04-14T23:37:38.751779 | 2019-01-07T09:10:50 | 2019-01-07T09:10:50 | 164,209,545 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,808 | py | from Bio import Entrez, SeqIO, Medline
import scipy.sparse as sp
import numpy as np
import pandas as pd
import sklearn
import sys
Entrez.email = "[email protected]"
def recupDictionnaires():
ens = []
file = open("dict.txt", "r")
doc = file.read()
dim = len(doc.split("##"))
i = 0
... | [
"[email protected]"
] | |
049c12ca9c2ec403bf4f152a25d45aee9f1d0c8c | 6cb1bd6816af5964c82e127e9e28cd6d0fd5fd7d | /05-05finally.py | e54a7e88b941cc9bae40f8afbc18c38fba553199 | [] | no_license | jinju-lee/Python-study | 660f952b3c16d675147f870e1cab473177106636 | c226bcb2c501c49ac157b6d3a3d18e515f3011f8 | refs/heads/master | 2021-05-08T21:15:32.782635 | 2018-02-11T14:32:26 | 2018-02-11T14:32:26 | 119,610,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | try:
num =int(input('숫자를 입력하세요:'))
except ValueError:
print('숫자가 아닙니다.')
else:
print(num)
finally:
print('finally는 무조건 실행됩니다.')
| [
"[email protected]"
] | |
158affbd0c69bdb708234a227040c705d8a0b2f4 | 88853b9b6c3ae0c12cbd5bf83be3d48f2fe0159e | /document/eggs_package/gflux_egg/gflux/gflux/apps/station/management/commands/obselete/deal_with_shihua_none_fuel_data.py | e12cd0c2aed3e9ab1d6084886feb5e89e19b5a76 | [] | no_license | laoyin/nyf | 9151da3368c2e636501bcf1ad52f895fe446c04b | a2b12f54827b6088548f060881b6dafa2d791a3a | refs/heads/master | 2021-01-17T17:11:14.174968 | 2015-09-28T01:12:28 | 2015-09-28T01:12:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,588 | py | # coding=utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from django.core.management.base import BaseCommand
from dash.core.backends.sql.models import get_dash_session_maker
from gflux.apps.common.models import SiteDayBatch
from datetime import datetime
from optparse import make_option
import sys,pdb,re
f... | [
"[email protected]"
] | |
38769bed99e3caf79b45b1c948a5142c38462485 | dee1aa5ce988f59165a8a651b28f471c468fff99 | /tributary/lazy/output/__init__.py | 3d73f9fd9636c043435f23c15dff8fc754280c14 | [
"Apache-2.0"
] | permissive | ceball/tributary | 04f22e57048a3cb0375b57cdb30e62f69cf4a380 | 5e30f90d1a5cc176c0f231f525d9dc5a81353925 | refs/heads/master | 2022-12-05T20:35:33.631468 | 2020-08-28T13:14:24 | 2020-08-28T13:14:24 | 291,319,040 | 0 | 0 | Apache-2.0 | 2020-08-29T17:39:39 | 2020-08-29T17:39:38 | null | UTF-8 | Python | false | false | 3,819 | py | from ..node import Node
def _print(node, cache=None):
if cache is None:
cache = {}
cache[id(node)] = node
ret = {node: []}
if node._dependencies:
for call, deps in node._dependencies.items():
# callable node
if hasattr(call, '_node_wrapper') and \
... | [
"[email protected]"
] | |
7e5da0fbf908161bc4084fef3c8bf28c92b54ad9 | c868d681415d152ba331bd80e0ed542832f20f0e | /week 3/todo_project/todo_project/main/migrations/0005_auto_20200205_2301.py | 819409651f247514434443d5e5acf7e6a3948904 | [] | no_license | Yeldarmt/BFDjango | a297a6b0c00ffb1a269f05c7e6665c5d34a51097 | b8256ff1d5f2125495df66eabf267fc17e667aeb | refs/heads/master | 2022-11-30T12:45:17.356453 | 2020-04-19T16:50:26 | 2020-04-19T16:50:26 | 233,515,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | # Generated by Django 2.0 on 2020-02-05 17:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20200203_1126'),
]
operations = [
migrations.CreateModel(
name='Todo',
fields=[
('id... | [
"[email protected]"
] | |
3467e9fbec6ceb28a2b2a98d25b2a0dbb03e4122 | 78e60a7d8a67ed76244004e8a3ed573fbf396e41 | /samples/sq__unbind_skill.py | 5e488f7e1a0d6a6147070822fc075df323fa31d5 | [
"MIT"
] | permissive | Crivez/apiclient-python | 837a9f7cc0453ccd3121311adc7920b5fe6b3e33 | 860fc054f546152a101e29b1af388c381075ac47 | refs/heads/master | 2023-06-08T13:24:09.249704 | 2021-06-17T12:16:35 | 2021-06-17T12:16:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from voximplant.apiclient import VoximplantAPI, VoximplantException
if __name__ == "__main__":
voxapi = VoximplantAPI("credentials.json")
# Unbind the skill with id = 1 from the user with id = 1.
APPLICATION_ID = 1
USER_ID = 1
SQ_SKILL_ID = 1
try:
res = voxapi.sq__unbind_skil... | [
"[email protected]"
] | |
21282b4075722ef249ada742b5404b049ef993c0 | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/diagnostic/migrations/0014_auto_20180427_1159.py | 32ba48033c717f5b1bc268bb1082d320a0021623 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # Generated by Django 2.0.2 on 2018-04-27 06:29
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('diagnostic', '0013_auto_20180426_1939'),
]
operations = [
migrations.AddField(
model_name='lab',
... | [
"[email protected]"
] | |
91a320683b315b2ec3f1fff36159fbc626d0fef6 | 2ccb6448e4783275350a388f2b71ace5c68a8024 | /mars/dataframe/reduction/custom_reduction.py | c08a1e6da4ecdc13fc077ff6f87e6c0a2c1dcdf8 | [
"BSD-3-Clause",
"OFL-1.1",
"LicenseRef-scancode-unknown-license-reference",
"CC0-1.0",
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | permissive | songroger/mars | 3fb286513d039944134c84c3e56f5d23cbe4562a | ae79f70599b5253418a05daed88ae835b8303649 | refs/heads/master | 2021-06-20T17:13:58.186858 | 2021-01-25T02:53:44 | 2021-01-25T02:53:44 | 166,158,684 | 2 | 0 | Apache-2.0 | 2019-01-17T04:12:10 | 2019-01-17T04:12:09 | null | UTF-8 | Python | false | false | 1,730 | py | # Copyright 1999-2020 Alibaba Group Holding Ltd.
#
# 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 a... | [
"[email protected]"
] | |
455de03e8f49274c758ae023bb63a631d4a1a7be | 0b1e404a165c960677d07015bc26aac0569cf84a | /src/combustion/models/efficientdet.py | 9ad75fdd19fa31300cf789c8bae8a09322c9b3c9 | [
"Apache-2.0"
] | permissive | johndpope/combustion | d3ec349cd7be086f55b4e3deebd571c97842e1ed | c3f91e62a10a873cfeeae8c675b0683bc5158818 | refs/heads/master | 2023-03-01T14:34:42.149415 | 2021-02-07T17:55:58 | 2021-02-13T17:17:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,419 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from copy import deepcopy
from typing import Any, Dict, List, Optional
import torch
import torch.nn as nn
from torch import Tensor
from combustion.nn import BiFPN1d, BiFPN2d, BiFPN3d, MatchShapes, MobileNetBlockConfig
from .efficientnet import _EfficientNet
class _Eff... | [
"[email protected]"
] | |
04bd04acd5e7aa633add08bc3d16d2ce6aaab1c1 | b94d30af18ef5cb1b13ce023b0e6be5aac8f454f | /venv/lib/python3.6/encodings/cp1255.py | f029cb39129fde78e455f1fcf51b313418fccd11 | [] | no_license | Gitlittlerubbish/SNS | 18be94122f15875a55b39d6e55fee821a9b89e7e | 84355e38e1f1b072f04b11f55a6cac958c63638d | refs/heads/master | 2020-12-14T14:49:58.041805 | 2020-03-12T15:00:25 | 2020-03-12T15:00:25 | 234,754,962 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | /Users/chenxiao/.pyenv/versions/3.6.6/lib/python3.6/encodings/cp1255.py | [
"[email protected]"
] | |
b255bd1e4fb2df23e823fb53929c10a3c852f996 | 98801e91bf1a78c5903449082113ecc154cd020e | /src/dron/notify/ntfy_desktop.py | 369cf3cf6b8d8ba4eea5002b5597032c988ce1d5 | [] | no_license | karlicoss/dron | bcec62e3602fa12134fdb6b86cc54f839086eba5 | 395d8a259b083b86f3128240bfa8f905fa255921 | refs/heads/master | 2023-06-10T07:12:20.799184 | 2023-06-04T23:41:33 | 2023-06-04T23:48:07 | 236,066,875 | 39 | 2 | null | 2023-06-04T23:48:08 | 2020-01-24T19:14:14 | Python | UTF-8 | Python | false | false | 302 | py | #!/usr/bin/env python3
from .common import get_parser, IS_SYSTEMD
from .ntfy_common import run_ntfy
BACKEND = 'linux' if IS_SYSTEMD else 'darwin'
def main() -> None:
p = get_parser()
args = p.parse_args()
run_ntfy(job=args.job, backend=BACKEND)
if __name__ == '__main__':
main()
| [
"[email protected]"
] | |
a3afa5a2a3d5d7657e6d618c5fd7fedd42af7d4e | a550aece79bda789826b463280b91abffbf2d372 | /django_projects/chat_app_channels/chatapp/chat/consumers.py | f0aa98c0798399935500a605d8bf556123c8a97f | [
"MIT"
] | permissive | phiratio/learn_python | 20376470eaa292c157fd01f52b3077e3a983cd5a | a32240d4355fb331805d515f96e1d009914e5c47 | refs/heads/master | 2022-11-27T07:07:45.712373 | 2020-12-03T22:04:31 | 2020-12-03T22:04:31 | 189,397,679 | 1 | 0 | MIT | 2022-11-22T04:40:27 | 2019-05-30T10:56:10 | Python | UTF-8 | Python | false | false | 1,288 | py | import json
from channels.generic.websocket import AsyncWebsocketConsumer
class ChatConsumer(AsyncWebsocketConsumer):
async def connect(self):
self.room_name = self.scope['url_route']['kwargs']['room_name']
self.room_group_name = 'chat_%s' % self.room_name
# Join room group
await ... | [
"[email protected]"
] | |
30df387384a195945b78fe44a457618949568134 | 98e761a1702351df3b3db91e4ee832ae25d213d1 | /test/db_predict2.py | 0c33754dac31c6939eb33c91f9c38e337e28bad6 | [] | no_license | jack139/face-test | ed637fdabace49c969dac8abbd12d2e80c589fec | 3907bf1e84c1e346b4429da0e8ca919ca6404098 | refs/heads/master | 2023-01-18T18:33:24.812823 | 2020-11-23T13:32:22 | 2020-11-23T13:32:22 | 315,326,106 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,085 | py | # -*- coding: utf-8 -*-
# 使用两个算法模型并行识别
import os, sys
import base64
#from datetime import datetime
from models.predict_plus import predict_parallel, predict_thread_db
if __name__ == "__main__":
if len(sys.argv)<4:
print("usage: python3 %s <knn|keras> <group_id> <test dir or file>" % sys.argv[0])
... | [
"[email protected]"
] | |
2ddf079941f4eeee653c7ce2ed639d720e32d599 | 2e10e4f2d5372a82e63377813ff765b876624c30 | /promenade/builder.py | 394e14f7e4861ddd1e536805ad94025d33734eb2 | [
"Apache-2.0"
] | permissive | chnyda/airship-promenade | 6ecdda3def775810733d41c88a4ce0391eaf7739 | 006f1b790772aa7f08852f2409d4c125e1c9f423 | refs/heads/master | 2020-03-20T01:01:11.409606 | 2018-06-20T07:17:36 | 2018-06-20T07:17:36 | 137,064,477 | 0 | 0 | null | 2018-06-12T11:52:41 | 2018-06-12T11:52:41 | null | UTF-8 | Python | false | false | 4,512 | py | from . import logging, renderer
import io
import itertools
import os
import requests
import stat
import tarfile
__all__ = ['Builder']
LOG = logging.getLogger(__name__)
class Builder:
def __init__(self, config, *, validators=False):
self.config = config
self.validators = validators
self._... | [
"[email protected]"
] | |
3aaa90180fa18a62d598af790848d69ced4297d4 | 56be7f6b6a1243c532af9ea98310ccea165a1e66 | /day9/课件/2-并发编程/线程/1.线程.py | 4c93970dcacc26f1ea5fd6bbb63b6619f8af13fe | [] | no_license | 214031230/Python21 | 55b0405ec4ad186b052cde7ebfb3f4bb636a3f30 | d7fc68d3d23345df5bfb09d4a84686c8b49a5ad7 | refs/heads/master | 2021-05-26T06:00:53.393577 | 2019-01-09T02:29:04 | 2019-01-09T02:29:04 | 127,778,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# 什么是进程 :是计算机资源分配的最小单位
# 什么是线程
# 线程和进程的关系 :
# 每一个进程中都至少有一个线程
# python中线程的特点
# 其他语言中线程的特点
# import os
# import time
# from threading import Thread
# n = 100
# def func(i):
# global n
# time.sleep(1)
# n -= 1
# print(os.getpid(),'thread%s'%i)
# t_l = []
# ... | [
"[email protected]"
] | |
07cde02db4967803b942d8b688c42a2d75a4dfd1 | d8ff8d809fcff5f8370e317d837485648cc6ac9b | /repr_test.py | 7a91cc106da55a3a694d406c14e6e30f848cef3e | [] | no_license | xiabofei/python_details | c9b1ebfdc9574201b8ac21ebd8aa5e0e8442d3de | 1d6950d0fc32997e6f6e6cb269cd1ef4bb233c2f | refs/heads/master | 2020-04-02T06:35:05.659746 | 2019-04-05T06:11:58 | 2019-04-05T06:11:58 | 60,343,232 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | #encoding=utf8
"""
werkzeug/routing/
Rule
__repr__方法
直接print某个对象时 打印出的信息
"""
class Test(object):
def __repr__(self):
return "<%s, called>" % (self.__class__.__name__)
t = Test()
print t
| [
"[email protected]"
] | |
f99d9eb488f96ead2b6615f8f842d81f126d62a7 | 1c21fa248091e31c362b95afafc5021211e85e63 | /invensis_pmc/customer/migrations/0011_remove_customer_services_required.py | f754435ba5eeda7264f3ca535292b5a98b54cd81 | [] | no_license | anudeepnaidu95/dev5 | 3d3252a51fccbb794e78a91681708e1b3c1ce0d4 | 7351244b79be242aa2cad36dbe1adca22a744edc | refs/heads/master | 2021-01-20T12:28:07.286078 | 2017-05-05T11:08:37 | 2017-05-05T11:08:37 | 90,365,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-14 14:19
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('customer', '0010_auto_20160714_1930'),
]
operations = [
migrations.RemoveField(
... | [
"[email protected]"
] | |
28d0f572052e6a3a1f08040ed8fa0e520b19b7e6 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/django-1.2/tests/regressiontests/forms/localflavor/__init__.py | dc478b681fdfd63cab664cfadf345bae3969f039 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | /home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/forms/localflavor/__init__.py | [
"[email protected]"
] | |
acd99f69d096e095274ab74784eeb2d609a3a1d9 | 2b6df7c9f1ffbda9d46eda14a62010dac6cfe6da | /app/utils.py | 9802bc03b16c95b262732b9479c811f1203dca51 | [] | no_license | its-arpit/tranageapp | 355e03a362fe14f2cd992b4fa3021806bc4cc4e9 | 657859135f492cb0f58b532671ee799060aa5afa | refs/heads/master | 2023-06-04T12:54:53.956808 | 2021-06-11T16:10:23 | 2021-06-11T16:10:23 | 376,124,298 | 0 | 0 | null | 2021-06-11T19:41:13 | 2021-06-11T19:30:24 | null | UTF-8 | Python | false | false | 583 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.core.mail import send_mail
import math, random
def generateOTP() :
digits = "0123456789"
OTP = ""
for i in range(4) :
OTP += digits[math.floor(random.random() * 10)]
return OTP
def send_email_otp(request)... | [
"[email protected]"
] | |
f4acc1b6983de406da0a4d2d27544abda966e6da | e82b761f53d6a3ae023ee65a219eea38e66946a0 | /All_In_One/addons/learnbgame_hops/operators/misc/triangulate_ngons.py | 392d2147834108f25c1e15670053e2c33eba33e5 | [] | no_license | 2434325680/Learnbgame | f3a050c28df588cbb3b14e1067a58221252e2e40 | 7b796d30dfd22b7706a93e4419ed913d18d29a44 | refs/heads/master | 2023-08-22T23:59:55.711050 | 2021-10-17T07:26:07 | 2021-10-17T07:26:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import bpy
class HOPS_OT_TriangulateNgons(bpy.types.Operator):
bl_idname = "hops.triangulate_ngons"
bl_label = "triangulate ngons"
bl_description = "triangulate ngons"
bl_options = {"REGISTER"}
@classmethod
def poll(cls, context):
return True
def execute(self, contex... | [
"[email protected]"
] | |
681d91cef8af005ef2529196c8d13b4eddf0314d | dc39ccc50b7d34e5de84f3cc132c5cc096a32656 | /Sanic/4-NamedURLRedirect/main.py | 035aee847b4d83b28db14dd020c1e8de99eb6971 | [] | no_license | Shukladas1115/Python | 0947aefd62a9ce4c3140360cb7259b031368709c | feb32bc2e2e7df377fc2d92330bfdacb83f31a55 | refs/heads/master | 2022-02-20T04:15:56.036495 | 2019-08-26T16:36:52 | 2019-08-26T16:36:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 506 | py | from sanic import Sanic
from sanic import response
app = Sanic(__name__)
@app.route('/')
async def index(request):
# generate a URL for the endpoint `post_handler`
url = app.url_for('post_handler', post_id=5)
# the URL is `/posts/5`, redirect to it
return response.redirect(url)
@app.route('/posts/<... | [
"[email protected]"
] | |
892a164d926d0ef0796ff7c322ef22178f33cb1e | 3f16e66b33b39df8866947fcf1d8249476725c03 | /mymodule/test1/file1.py | 051436656cfe2394e1be22e4365ad29c246bff90 | [] | no_license | VadimVolynkin/learning_python3 | ea3559e0f01b4c9e09ae82b76ca315de8e41ecc4 | 872f0a2ac296ec3242ac9b81f63a29f09bc614fa | refs/heads/main | 2023-08-10T05:39:04.376172 | 2021-09-07T14:44:20 | 2021-09-07T14:44:20 | 339,133,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | print('hello from file1.py')
a1 = 'its a1 from file1'
def __a2():
a2 = 'its a2 from file1'
return a2
| [
"[email protected]"
] | |
5a7c1fe7ce5663916fe48e08b1c9a759329dca0c | 9bdd421f0bd5cb30a0429e11b23bd85ed34b006a | /account/views.py | 019f9c68589e98f18cf1df20bd508d7642623be2 | [] | no_license | MrAch26/yugioh_django_proj | 8f0f0fbf0cb6e4ec4fac8757a7236fbb08099689 | 9cd363a3ab9019c92973454dab5eb812894c4c37 | refs/heads/main | 2023-03-27T21:53:45.240113 | 2020-10-25T07:39:22 | 2020-10-25T07:39:22 | 305,049,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,289 | py | from django.contrib.auth import authenticate, login
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.urls import reverse, reverse_lazy
from django.views.generic import CreateView, UpdateView, DetailView
from account.forms import UserSignupForm, ProfileViewForm
from ... | [
"[email protected]"
] | |
68f3fb9a96aa5c00e2fb8dedab67d2f23725c127 | edb88981aa1420af7e074068ed7818b9d904a3dd | /trunk/minds/test/test_app_httpserver.py | 91a8c2880f3ee0c0508f61d743a9000402944147 | [] | no_license | BackupTheBerlios/mindretrieve-svn | 101c0f1dfc25d20d5f828b6fd0d43301b773af4e | 463745fcf1c1d5b1f6c201c30bcc339c99b437ed | refs/heads/master | 2021-01-22T13:57:31.225772 | 2006-04-28T04:24:43 | 2006-04-28T04:24:43 | 40,801,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,765 | py | """
"""
import StringIO
import unittest
from minds.safe_config import cfg as testcfg
from minds import app_httpserver
class AppHTTPRequestHandlerFixture(app_httpserver.AppHTTPRequestHandler):
def __init__(self):
pass
class TestAppHTTPRequestHandler(unittest.TestCase):
def _test_lookup(self, url, ... | [
"tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990"
] | tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990 |
3668b4615b62655571841c3fe2962d8a50e0b33f | 1b5ab3f252069181b5e07d4d6d177ab82e942e51 | /Homework3/Part 1/tt1.py | e219c5bb06a667aa68f443395c6215ac7c9e253b | [] | no_license | phamhailongg/C4T9 | 59214081224f37b356e209d57f0865632dccc8f6 | c400005012fb349c1388dd92c8e590322bb203e4 | refs/heads/master | 2021-07-06T11:10:05.283974 | 2019-05-05T21:46:04 | 2019-05-05T21:46:04 | 152,599,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | from turtle import *
speed(10)
color("red")
for i in range(4):
lt(120)
fd(100)
lt(-60)
fd(100)
lt(-120)
fd(100)
lt(-60)
fd(100)
lt(30)
mainloop() | [
"[email protected]"
] | |
f7a0a2fa0e865a49765a53208422402c335ba849 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_discomposing.py | bafc1a64c9a8785f9dbb06454a7311b879d585bc | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py |
#calss header
class _DISCOMPOSING():
def __init__(self,):
self.name = "DISCOMPOSING"
self.definitions = discompose
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['discompose']
| [
"[email protected]"
] | |
dd9ea44609ed4c96315ef9e7285fbe5f871730ce | 30bd7e8abe0a15fbb8f1b1e4a3a9a15a3ad124a9 | /romans/src/utils/roman.py | c2a15aca81d4265a81dc04ee59ee231d8b7b4fca | [] | no_license | TiagoArrazi/Romans | c96cac19a36e5e89ea719b084693b2af0f6e1cf2 | f2841931fb9b7428acdc4604dae0535508002781 | refs/heads/master | 2020-07-12T01:53:44.220206 | 2019-08-27T12:31:34 | 2019-08-27T12:31:34 | 204,688,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,057 | py | from resources.symbols import symbols
class Roman:
@classmethod
def make_it_roman(cls, number):
if 900 <= int(number) <= 3000:
mult = divmod(int(number), 1000)
if mult[0] > 0 and mult[1] == 0:
return symbols["1000"] * mult[0]
c_amount = (1000 - in... | [
"[email protected]"
] | |
f14c49b90c661b6ac6e514e6ecfda425e0621418 | 17f2ea360d2cc77ff45ab7b61f0e03d3c9d96247 | /Stock/Trade/AccountManager/StopMode/DyStockStopLossMaMode.py | e53c9179190315d960e3820c1281b459be2d9596 | [
"MIT"
] | permissive | yutiansut/DevilYuan | 89aba2728d42a686cf989b74283a5197edfe6b49 | 6467f8c33c4692d3616f0eb0b0bf974d16e95836 | refs/heads/master | 2020-03-19T18:43:11.674992 | 2018-06-11T03:17:32 | 2018-06-11T03:17:32 | 136,821,539 | 2 | 1 | MIT | 2018-06-11T03:17:33 | 2018-06-10T15:37:24 | Python | UTF-8 | Python | false | false | 2,409 | py | from .DyStockStopMode import *
from ...DyStockTradeCommon import *
class DyStockStopLossMaMode(DyStockStopMode):
stopLossPnlRatio = -5
def __init__(self, accountManager, dataEngine, ma):
super().__init__(accountManager)
self._dataEngine = dataEngine
self._daysEngine = self._data... | [
"[email protected]"
] | |
05ff5f5a599c92b2f689b4a53313597783b6caef | 727cdc7c9af6fdf6b4eb8444197718e5c6760019 | /asin_keyword/cookie_sele_local.py | f538225e776bc68fc0a60a43531ef76c1f359afa | [] | no_license | newer027/amazon_crawler | 0cc6feb30f9180ae48ac936eeb6af41ec06eadfd | 39d6867a8dd56b90dae5e98aa44e6df274439f8e | refs/heads/master | 2022-11-23T17:04:33.995126 | 2020-04-03T15:42:42 | 2020-04-03T15:42:42 | 252,774,253 | 1 | 0 | null | 2022-11-22T01:44:53 | 2020-04-03T15:42:31 | CSS | UTF-8 | Python | false | false | 4,831 | py | import time, pickle
from selenium import webdriver
from .validation import validation, validation_jp
from PIL import Image
from pytesseract import image_to_string
from random import *
from urllib.request import urlretrieve
from bs4 import BeautifulSoup
#from .emails import send_email
from pyvirtualdisplay import Displa... | [
"[email protected]"
] | |
3d7e4e20678a99f2171c8af491263ebaaf9b1f39 | 34a5921552537d96d9680f88b94be1706e5c8f1a | /facets/common/consts.py | a69b16a8e80bc022fd6cd90a8ebb69d306714fae | [
"Apache-2.0"
] | permissive | hunterhector/DDSemantics | 11f1a85486349627036626d3b638db39f70030fe | 65235d8897bce403e5d628ed912e516b28254c74 | refs/heads/master | 2023-07-13T05:20:13.211363 | 2023-06-21T21:44:37 | 2023-06-21T21:44:37 | 123,484,643 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | """Define constants"""
MENTION_START_TOKEN = "[unused1]"
MENTION_END_TOKEN = "[unused2]"
HEADER_END_TOKEN = "[unused3]"
CLS = "[CLS]"
SEP = "[SEP]"
| [
"[email protected]"
] | |
2897a346fb526a6e0e57f8e45f21e07c4f5a4bb0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02267/s584392095.py | 6a5daa87a557535ac58fe4e73ddfee745deeec4f | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | n = int(input())
s = [int(x) for x in input().split()]
q = int(input())
t = [int(x) for x in input().split()]
cnt = 0
for x in t:
if x in s:
cnt += 1
print(cnt) | [
"[email protected]"
] | |
57ca134de961ddf6a494d2abcf622a29832b057d | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-2/07acc579db839170122fc66505a886ef023d5f4f-<execute_install>-bug.py | 46e7feb105b1c13945aa837f5c23514abfcee9e9 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,454 | py |
def execute_install(self):
'\n uses the args list of roles to be installed, unless -f was specified. The list of roles\n can be a name (which will be downloaded via the galaxy API and github), or it can be a local .tar.gz file.\n '
role_file = self.options.role_file
if ((len(self.args... | [
"[email protected]"
] | |
e3f8022857e30db6341da4c8f88e97f4e7063f57 | 6d8faae66dd6332836bb11d7f02d6867c95d2a65 | /glast/pointlike/python/uw/like/likelihood_fit.py | 7dec093d277b975937d18b773ffedc0d0b11c596 | [] | no_license | Areustle/fermi-glast | 9085f32f732bec6bf33079ce8e2ea2a0374d0228 | c51b821522a5521af253973fdd080e304fae88cc | refs/heads/master | 2021-01-01T16:04:44.289772 | 2017-09-12T16:35:52 | 2017-09-12T16:35:52 | 97,769,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,382 | py | """A module providing functionality for parametrizing a likelihood curve
by a simple function.
Classes:
LogLikelihood: a representation of a likelihood curve
Authors: Eric Wallace, Matthew Kerr
"""
__version__ = "$Revision: 1.1.2.1 $"
#$Header: /glast/ScienceTools/glast/pointlike/python/uw/like/Attic/likeliho... | [
"[email protected]"
] | |
a95c88307396ee0164e6f263644fc07b185a3d85 | 1089bc72856fe3ef0edd4b17b2f07b8ec5de8e14 | /firecares/settings/base.py | 1090ad22ec43635bb3cf9e8ae536318c7280b299 | [
"MIT"
] | permissive | JWileczek/firecares | e521c9d9f829fc60f13c2d051be89b5feadb5fc0 | dd82e6e720cdaaf0bacd7a2cc51669341a29ffae | refs/heads/master | 2020-12-25T12:41:04.124970 | 2015-08-30T15:38:56 | 2015-08-30T15:38:56 | 41,690,086 | 0 | 0 | null | 2015-08-31T17:29:12 | 2015-08-31T17:29:12 | null | UTF-8 | Python | false | false | 7,905 | py | import os
from kombu import Queue
DEBUG = True
TEMPLATE_DEBUG = DEBUG
PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
ADMINS = (
# ('Your Name', '[email protected]'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.contrib.gis.db.backends.post... | [
"[email protected]"
] | |
4ceda0b049891a9c2963a7c0c48c3f511140ac69 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/HundredRun/PG_0132+151/sdB_PG_0132+151_lc.py | 8918441d2824176148a8e7a956f7ebd08c4bc153 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[356.757495,15.400942], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_PG_0132+151 /sdB_PG_0132+151_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name... | [
"[email protected]"
] | |
a3b152abeff9b59f25a919958f7e36901eaaa4ad | 385a63d3c9e6f5815979165001f78ec3d7b90cd2 | /DrivingTDM_SetupMatlabOOP/headerAndFunctionsMotor/ximc/python-profiles/STANDA/10MCWA168-20.py | f6af4a4b73c9f33f4b74a776ed1ee7067c55ade2 | [
"BSD-2-Clause"
] | permissive | Rasedujjaman/matlabOOP | 5abb6ec94998fda5e9214ed94cf67a42bf243d4f | e1f025ab9b00a3646719df23852079736d2b5701 | refs/heads/main | 2023-07-23T21:40:53.905045 | 2021-08-31T16:12:39 | 2021-08-31T16:12:39 | 378,249,559 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,523 | py | def set_profile_10MCWA168_20(lib, id):
worst_result = Result.Ok
result = Result.Ok
feedback_settings = feedback_settings_t()
feedback_settings.IPS = 4000
class FeedbackType_:
FEEDBACK_ENCODER_MEDIATED = 6
FEEDBACK_NONE = 5
FEEDBACK_EMF = 4
FEEDBACK_ENCODER = 1
f... | [
"[email protected]"
] | |
a8824158345cddc59be0477b3353fbdb3dbef6da | fc2d2163e790741de0c0e1aa337948cfeb5b6ba9 | /tests/benchmarks/micro/NestedFunctionClosure.py | 925ad5c31e3bbdfcba39ca286facd4a95fe0b59e | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | nmoehrle/Nuitka | bcd20531f150ada82c8414620dca6c5424be64d1 | 317d1e4e49ef8b3bdfe2f80f2464040d644588b2 | refs/heads/master | 2023-06-22T09:56:23.604822 | 2017-11-29T14:10:01 | 2017-11-29T14:10:01 | 122,110,166 | 0 | 0 | Apache-2.0 | 2018-02-19T19:29:05 | 2018-02-19T19:29:05 | null | UTF-8 | Python | false | false | 1,066 | py | # Copyright 2017, Kay Hayen, mailto:[email protected]
#
# Python test originally created or extracted from other peoples work. The
# parts from me are licensed as below. It is at least Free Software where
# it's copied from other people. In these cases, that will normally be
# indicated.
#
# L... | [
"[email protected]"
] | |
c4070e57949127be2bf575ae160cb07672a86fd4 | 064404a6e65dc4bb78624e47fb8010615e20fbe8 | /opsgenie_sdk/api/alert/add_details_to_alert_payload.py | bbc3a87ef3d5178e5be8868d78923a57e5e51352 | [
"Apache-2.0"
] | permissive | lyongjie20/opsgenie-python-sdk | 97de823d958995f44b1934c1aaf1b5740a8efd1e | 0d20d2314522fc0fd8ca5f0faa16f7c96387e123 | refs/heads/master | 2023-07-01T14:31:27.379893 | 2021-08-02T13:30:07 | 2021-08-02T13:30:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,705 | py | # coding: utf-8
"""
Python SDK for Opsgenie REST API
Python SDK for Opsgenie REST API # noqa: E501
The version of the OpenAPI document: 2.0.0
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
class AddDetailsToAle... | [
"[email protected]"
] | |
44d6d277ce2adec9b2f94b011620101c7ccec4f4 | 1f31dc44aca58992aa478635cfe036566a7eebe2 | /py/kubeflow/kfctl/testing/ci/update_jupyter_web_app.py | ff987dbaf3747e37071a3b1067faf73ea5262fbd | [
"Apache-2.0"
] | permissive | adrian555/kfctl | ee3c8517da358884aba35e20bdf564d903aa1d66 | a6bd7d4c15571492a08a551b7566cb111b39bd0c | refs/heads/master | 2020-12-15T18:38:30.190800 | 2020-10-26T20:50:24 | 2020-10-26T20:50:24 | 269,209,194 | 0 | 5 | Apache-2.0 | 2020-06-03T22:38:51 | 2020-06-03T22:38:50 | null | UTF-8 | Python | false | false | 10,444 | py | """Script to build and update the Jupyter WebApp image.
Requires python3
hub CLI depends on an OAuth token with repo permissions:
https://hub.github.com/hub.1.html
* It will look for environment variable GITHUB_TOKEN
"""
import logging
import os
import tempfile
import yaml
import fire
import git
import httplib2
... | [
"[email protected]"
] | |
50a0e0a631826408e3f3cd6fd38ce599131e4588 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2506/60832/280621.py | f1113858470ab2074adaab3a1b0c3b72695ba34b | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | import numpy as np
ar = list(map(int, input().split(',')))
length = len(ar)
if length == 0:
print(0)
exit()
Max = np.zeros(length)
opt = np.zeros(length)
opt[0] = 1
Max[0] = ar[0]
for i in range(1, length):
a = opt[i - 1]
temp = ar[i]
j = i - 1
has = False
for j in range(i - 1, -1, -1):... | [
"[email protected]"
] | |
d5edadbe66cf157c9e28ddd27acc016d3102d6ac | abef98cfa3fb2c4626eb8c0a77c1080992d9b11b | /python/bindiff/bindiff.py | 00885d7c9351425c339702dff4eee4738485d185 | [] | no_license | mikebentley15/sandbox | ff88ed9dc4b9ac37668142a319d0a8162e88e9e3 | 4f5869544de18be21f415a9d6f9b71c362307f27 | refs/heads/main | 2023-04-14T00:22:34.623441 | 2023-03-24T21:43:56 | 2023-03-24T21:43:56 | 116,987,549 | 6 | 3 | null | 2022-10-26T03:02:06 | 2018-01-10T17:14:54 | C++ | UTF-8 | Python | false | false | 1,521 | py | #!/usr/bin/env python3
'''
Diff two binary files byte by byte. Do not try to do insertions or deletions,
just a straight side-by-side comparison.
'''
import sys
import argparse
def parse_args(arguments):
'Parse and return parsed arguments'
parser = argparse.ArgumentParser(
description='''
... | [
"[email protected]"
] | |
bbf76565b6f64ab27199de1efc446badfd0ba38a | 1bad7d2b7fc920ecf2789755ed7f44b039d4134d | /ABC/173/A.py | b409f92bf2697a9ef34d7cb880b50eb8c4da2cfe | [] | no_license | kanekyo1234/AtCoder_solve | ce95caafd31f7c953c0fc699f0f4897dddd7a159 | e5ea7b080b72a2a2fd3fcb826cd10c4ab2e2720e | refs/heads/master | 2023-04-01T04:01:15.885945 | 2021-04-06T04:03:31 | 2021-04-06T04:03:31 | 266,151,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | n = int(input())
if n % 1000 == 0:
print(0)
else:
print(1000-n % 1000)
| [
"[email protected]"
] | |
a0acdd42e55260598a360131a282d5f7852e0d57 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/abc/abc054/D/answers/105471_s484.py | e511180c2fae7d4bf9960eae07c6d72b6540daf4 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | N, Ma, Mb = map(int, input().split())
G = []
for i in range(N):
a, b, c = map(int, input().split())
G.append( (a,b,c) )
M = 1 + min(sum([ a for a, b, c in G ]),
sum([ b for a, b, c in G ]) )
INF = 1000000000
dp = [INF] * (M * M)
dp[0] = 0
for a, b, c in G:
i = M - a - 1
while i >= 0:
j = M - b -... | [
"[email protected]"
] | |
1b2863c931ac97cc512170299b6e7d5844ead205 | add72f4d6f9f7af1f437d19213c14efb218b2194 | /icekit/page_types/author/tests.py | afcd6534c4231a59e310a4f281e7a4b7faa61d11 | [
"MIT"
] | permissive | ic-labs/django-icekit | 6abe859f97c709fcf51207b54778501b50436ff7 | c507ea5b1864303732c53ad7c5800571fca5fa94 | refs/heads/develop | 2022-08-08T21:26:04.144852 | 2018-01-08T02:55:17 | 2018-01-08T02:55:17 | 65,470,395 | 53 | 12 | MIT | 2022-07-06T19:59:39 | 2016-08-11T13:11:02 | Python | UTF-8 | Python | false | false | 2,128 | py | from django.contrib.auth import get_user_model
from django.core.urlresolvers import reverse
from django_dynamic_fixture import G
from django_webtest import WebTest
from fluent_contents.models import Placeholder
from . import models
User = get_user_model()
class AuthorTests(WebTest):
def setUp(self):
self... | [
"[email protected]"
] | |
f0de2600bd1e07a39f42bbe91fae645d210e66f7 | e489172f6e49e1239db56c047a78a29a6ffc0b36 | /via_account_taxform/account_tax.py | b1245ef236db95e377f0531f854b5c0588e892e0 | [] | no_license | eksotama/prln-via-custom-addons | f05d0059353ae1de89ccc8d1625a896c0215cfc7 | f2b44a8af0e7bee87d52d258fca012bf44ca876f | refs/heads/master | 2020-03-25T19:49:08.117628 | 2015-12-01T07:29:43 | 2015-12-01T07:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,478 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# Vikasa Infinity Anugrah, PT
# Copyright (c) 2011 - 2013 Vikasa Infinity Anugrah <http://www.infi-nity.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the term... | [
"aero@aero.(none)"
] | aero@aero.(none) |
a2514f32e71a028a6e1421e5456b756a92898f22 | ccfc0566cd646cbe1837affef08baec8cd245d3b | /src/robot/model/control.py | bafd41a03b8be08ca4906403ab2cae40e68f9a71 | [
"Apache-2.0",
"CC-BY-3.0"
] | permissive | bmalhi/robotframework | 9f395d3197cdd7925b8def3aeb50b14fc31e83e2 | eaadffabc98b587c108cc904e0e54ce368020dd7 | refs/heads/master | 2023-03-01T14:30:23.110935 | 2021-02-05T16:01:30 | 2021-02-05T16:02:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,750 | py | # Copyright 2008-2015 Nokia Networks
# Copyright 2016- Robot Framework Foundation
#
# 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
... | [
"[email protected]"
] | |
c253c273fb8c240f6eda595e492a460e88fd798c | ebdb33a86794a779714318f8a0b8397c3d6002b5 | /processing/state_processing_dataframe.py | 04a3eff325b03a22706837096af11c0d1c700efc | [] | no_license | ShabbirHasan1/interactive-corporate-report | b52c6c404a3b2f96f27b3770b7086a59400fb74a | ce0d81ab775ded84334ce599950dae9adaa978c5 | refs/heads/master | 2023-05-16T17:15:52.651033 | 2020-02-20T05:32:46 | 2020-02-20T05:32:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,326 | py | import plotly.plotly as py
import pandas as pd
import numpy as np
import os
import _pickle as pickle
# rd = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/2011_us_ag_exports.csv')
my_path = os.path.abspath(os.path.dirname('__file__'))
path_in_file = os.path.join(my_path, "../data/google/addres... | [
"[email protected]"
] | |
062ad9dc571345a7f470daa1d624c95fab71381b | 8f21513b8ba9e583246908006cac98e5e473e245 | /2_date_time.py | 4e845b6d46313ee7c1aa2f575d6f4ed98c8d58b0 | [] | no_license | MatsakB/Lesson3 | 6335bdeb86e3216e4576c170096d7bcf57ec4b2d | 69493f147720ac7d975421d7400e6964ecfac3a2 | refs/heads/master | 2020-04-10T06:35:22.069664 | 2018-12-08T08:45:20 | 2018-12-08T08:45:20 | 160,859,025 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | from datetime import datetime, timedelta
date_today = datetime.now()
delta_days = timedelta(days=1)
delta_months = timedelta(days=30)
date_yesterday = date_today-delta_days
date_month_before = date_today-delta_months
print(date_today.strftime('%d.%m.%y'))
print(date_yesterday.strftime('%d.%m.%y'))
print(date_month_be... | [
"[email protected]"
] | |
dc768c5a2982a554ecbde52148df68d05e357efd | b167407960a3b69b16752590def1a62b297a4b0c | /tools/project-creator/Python2.6.6/Lib/test/test_transformer.py | eb8ef8ab031ce6e160d63f4fdf244baf063d4060 | [
"MIT"
] | permissive | xcode1986/nineck.ca | 543d1be2066e88a7db3745b483f61daedf5f378a | 637dfec24407d220bb745beacebea4a375bfd78f | refs/heads/master | 2020-04-15T14:48:08.551821 | 2019-01-15T07:36:06 | 2019-01-15T07:36:06 | 164,768,581 | 1 | 1 | MIT | 2019-01-15T08:30:27 | 2019-01-09T02:09:21 | C++ | UTF-8 | Python | false | false | 1,146 | py | import unittest
from test import test_support
# Silence Py3k warning
test_support.import_module('compiler', deprecated=True)
from compiler import transformer, ast
from compiler import compile
class Tests(unittest.TestCase):
def testMultipleLHS(self):
""" Test multiple targets on the left hand ... | [
"[email protected]"
] | |
f144fec17ff955f0806f4a5f976eb5a2072ff5dc | 92ae735d5dc6f6a094daedbd32614e714d0b8c4a | /newsletter/settings.py | 9ab91d32d35e7f7387b06c550e337e75ac0022a6 | [
"MIT"
] | permissive | Williano/Final-Senior-Year-Project- | 3b01ac9fd85753720b01c2245cf9b71648aad35d | 4bd988575537b37b5cf852b616d3db5666c95e7f | refs/heads/master | 2023-08-07T16:11:42.778492 | 2023-06-05T04:59:06 | 2023-06-05T04:59:06 | 121,346,340 | 173 | 60 | MIT | 2023-06-05T04:59:07 | 2018-02-13T06:17:16 | Python | UTF-8 | Python | false | false | 3,167 | py | from importlib import import_module
from django.conf import settings as django_settings
from django.core.exceptions import ImproperlyConfigured
from .utils import Singleton
class Settings(object):
"""
A settings object that proxies settings and handles defaults, inspired
by `django-appconf` and the way ... | [
"[email protected]"
] | |
ff3771b5c0f1674a5c668a6a8e2b5f78017cab70 | d83fde3c891f44014f5339572dc72ebf62c38663 | /_bin/google-cloud-sdk/.install/.backup/lib/googlecloudsdk/api_lib/auth/exceptions.py | b07bd1f9d71b922ba849cb4dc2a0eac9562fdd33 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | gyaresu/dotfiles | 047cc3ca70f4b405ba272856c69ee491a79d2ebe | e5e533b3a081b42e9492b228f308f6833b670cfe | refs/heads/master | 2022-11-24T01:12:49.435037 | 2022-11-01T16:58:13 | 2022-11-01T16:58:13 | 17,139,657 | 1 | 1 | null | 2020-07-25T14:11:43 | 2014-02-24T14:59:59 | Python | UTF-8 | Python | false | false | 1,206 | py | # Copyright 2017 Google Inc. 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 by applicable law or ag... | [
"[email protected]"
] | |
a2859f4ac719600fa16c18391c0265afda7857f5 | 238e46a903cf7fac4f83fa8681094bf3c417d22d | /VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/scripts/test/test_scripts.py | 8705a90f7287a1f2a71871bea4ec36b22d67d56a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | baojunli/FastCAE | da1277f90e584084d461590a3699b941d8c4030b | a3f99f6402da564df87fcef30674ce5f44379962 | refs/heads/master | 2023-02-25T20:25:31.815729 | 2021-02-01T03:17:33 | 2021-02-01T03:17:33 | 268,390,180 | 1 | 0 | BSD-3-Clause | 2020-06-01T00:39:31 | 2020-06-01T00:39:31 | null | UTF-8 | Python | false | false | 6,855 | py | # Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Tests for the command-line scripts in the top-level I{bin/} directory.
Tests for actual functionality belong elsewhere, written in a way that doesn't
involve launching child processes.
"""
from os import devnull, getcwd, chdir
fro... | [
"l”[email protected]“"
] | |
70bc331f3ab7dcdf0904d00a928becf959b12a5e | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /xcp2k/classes/_wf_correlation1.py | 946851bae269b8bc3790a4acf9f9905235827943 | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,305 | py | from xcp2k.inputsection import InputSection
from _mp2_info1 import _mp2_info1
from _direct_canonical1 import _direct_canonical1
from _wfc_gpw1 import _wfc_gpw1
from _ri_mp21 import _ri_mp21
from _opt_ri_basis1 import _opt_ri_basis1
from _ri_rpa1 import _ri_rpa1
from _ri_laplace1 import _ri_laplace1
from _cphf1 import _... | [
"[email protected]"
] | |
7588e0b50d82ff81490c180db39e55febd0d85ab | f8bdc46409c9f5eaf3d85ef157260589462d941a | /demos/instance_occlsegm/examples/synthetic2d/legacy/view_arc2017_occlusion.py | 408b6b042140818b8b6f50d4e6382df6fedf1f5c | [
"MIT",
"BSD-3-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 1,604 | py | #!/usr/bin/env python
import chainer_mask_rcnn
import instance_occlsegm_lib
import contrib
if __name__ == '__main__':
dataset = contrib.datasets.ARC2017OcclusionDataset(
split='train', do_aug=True)
def visualize_func(dataset, index):
img, bboxes, labels, lbls = dataset[index]
class_... | [
"[email protected]"
] | |
3e7af994a6235be22aa1a34320c806ffcc69e7cd | 0ca1d8363439e0e34d7eaa54f021ff0b2940cac7 | /facturacion/migrations/0016_auto_20181130_1741.py | 8521ce266772004f3ca7a4e556672f389672ca4b | [] | no_license | geovanniberdugo/medhis | d6b606ef2c391738ee5fa4209712b6c0eb01ae40 | b8f8df111432bfab537853ed8e8dbd4603e9707d | refs/heads/main | 2023-02-13T19:44:33.699689 | 2021-01-15T22:08:35 | 2021-01-15T22:08:35 | 330,032,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 520 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-30 22:41
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('facturacion', '0015_auto_20181120_1824'),
]
operations = [
migrations.Alte... | [
"[email protected]"
] | |
00f502880899ebc4ff3c56f1b131f1ba2ae7846c | 0e25538b2f24f1bc002b19a61391017c17667d3d | /xsharepoint/win_xspmanagedpath.py | 527691433ba4407838d8a7cd0c78122a6cfd4090 | [] | no_license | trondhindenes/Ansible-Auto-Generated-Modules | 725fae6ba9b0eef00c9fdc21179e2500dfd6725f | efa6ac8cd2b545116f24c1929936eb8cc5c8d337 | refs/heads/master | 2020-04-06T09:21:00.756651 | 2016-10-07T07:08:29 | 2016-10-07T07:08:29 | 36,883,816 | 12 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,584 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# <COPYRIGHT>
# <CODEGENMETA>
#
# 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, ... | [
"[email protected]"
] | |
d454ee79742bbf7b555240e05ae0700d83559c75 | 29fad6273eb43fcbaff7460b2b68fea66d9ebc8c | /custom-vpc/custom_vpc/custom_vpc_stack.py | 99ef9dd2bd53bf2c57edf14bd1ebc1b98829cff7 | [] | no_license | satishbr/cdk-demos | a3b2c7ca32551eb1c0264f8125f2ffc9413d00ff | 14568c885322f561d548de0d1175f3b60ee87df0 | refs/heads/master | 2022-11-10T16:58:38.105403 | 2020-04-15T10:20:19 | 2020-04-15T10:20:19 | 275,331,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | from aws_cdk import (
aws_ec2 as ec2,
core
)
class CustomVpcStack(core.Stack):
def __init__(self, scope: core.Construct, id: str, **kwargs) -> None:
super().__init__(scope, id, **kwargs)
# The code that defines your stack goes here
# https://docs.aws.amazon.com/cdk/api/latest/py... | [
"[email protected]"
] | |
96d3ef7124f1d20922a37c482305578a536be494 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/video/QVI_ID2930_for_PyTorch/datas/__init__.py | 3f2183896479f5bf7d870a252d3f4a6d07fccc07 | [
"GPL-1.0-or-later",
"Apache-2.0",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 822 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"[email protected]"
] | |
84187813982783ed1d30663de5146be4acf7ac64 | 98e4686742146ec557a6c61a83540ca69f27f077 | /classification/Net/ResNetHeatMap/generate_heatmap.py | 399c3b1171a546f4d3636d38bd41260b4485603d | [] | no_license | UpCoder/Secret | b862c91d5229f7ceaa787475e5fc01f349a8cb98 | 15a9b7c50eaf4a5f4fd4856446d51fa4d7917c88 | refs/heads/master | 2021-07-09T19:13:41.816810 | 2017-10-10T04:16:30 | 2017-10-10T04:16:30 | 105,138,942 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,013 | py | # # -*- coding=utf-8 -*-
# # 根据我们训练好的模型来生成概率图模型
# from tools.image_operations import extract_patchs_return
# import tensorflow as tf
# from net_config import Net_Config as net_config
# from resnet import inference
# import numpy as np
# import sys
# import math
# from PIL import Image
# import os
# MOMENTUM = 0.9
#
# F... | [
"[email protected]"
] | |
258c7e7730f7dcfc58404705362466c414aa2af4 | 8b865eca2facf190369df4303fd6550c31614f72 | /project04/bagInterface.py | 49ca757766fdb7a64aa4d786bbe30b5e0f3d4fe9 | [] | no_license | Yamase31/cs112 | 16ba1732441e70065f2aded7542907ccb35e048e | 199c5731b0bcbd475d8a8d2c9429eaebfbc1d180 | refs/heads/main | 2023-06-30T13:34:43.086674 | 2021-08-10T03:14:45 | 2021-08-10T03:14:45 | 394,503,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | """
Author: James Lawson, Harry Pinkerton, Laurie Jones
File: baginterface.py
Speficitactions of the methods for all bag classes. Running this code will
not produce any results, but it shows the headers and docstrings of the methods
that MUST be included or supported in any bag class.
"""
class BagInterface(object):... | [
"[email protected]"
] | |
0681e4919822450a149df6a9ebf09f9bd101b37f | 2d837bca6989f61996e4e8e96635d722c97241c3 | /core/gtk_table.py | eaae443c2d7d162408c56f74d7190bb125d20de0 | [] | no_license | gsy/gmusic | 1485e11f4d63241f012b9e2ee27bbdb1ef563ce5 | 277e70c83a0ffcc00f2fc93933668dc16add11a8 | refs/heads/master | 2020-03-26T20:48:54.145376 | 2013-05-03T07:28:37 | 2013-05-03T07:28:37 | 9,724,424 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | #!/usr/bin/env python
# -*- coding: utf-8
import pygtk
pygtk.require('2.0')
import gtk
class albumViewer:
def __init__(self):
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.connect("destroy", lambda w:gtk.main_quit())
self.table = gtk.Table(1, 2, False)
self.table.set_ro... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.