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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
84c465eb719d666ab94e9a1ae1ca92ab24943c5d | 8015f1c62a2cb4efd21aa8938336913bf8117868 | /bamap/ba4184.pngMap.py | 9a4c1b02c5c0a7471335847d2b8fcc84e3042564 | [] | no_license | GamerNoTitle/Beepers-and-OLED | 675b5e3c179df0f0e27b42bf594c43860d03b9af | afe1340e5394ae96bda5f9022a8a66824368091e | refs/heads/master | 2020-04-20T00:09:47.122471 | 2019-04-29T04:59:35 | 2019-04-29T04:59:35 | 168,515,579 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,468 | py | ba4184.pngMap = [
'11111111111111111111111100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'11111111111111111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
'1111111111111111111100000000000000000... | [
"bili33@87ouo.top"
] | bili33@87ouo.top |
ddbde340dbd330040e85b9a914a191527fc52717 | e905abd9bb7bd7017657d0a0c4d724d16e37044c | /.history/article/spiders/sciencedirect_20201230010225.py | 787c70ae8c70e5f466306bdf5a5c7e93e8e15343 | [] | no_license | tabdelbari/articles | a8b921841f84fb473f5ed1cdcda743863e6bc246 | f0e1dfdc9e818e43095933139b6379a232647898 | refs/heads/main | 2023-03-05T10:21:35.565767 | 2021-02-10T13:35:14 | 2021-02-10T13:35:14 | 325,654,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,610 | py | import scrapy
import logging
import re
from scrapy_splash import SplashRequest
from article.items import ArticleItem
class SciencedirectSpider(scrapy.Spider):
name = 'sciencedirect'
allowed_domains = ['scienced.com']
custom_settings = {
'USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/53... | [
"abdelbari1996@hotmail.com"
] | abdelbari1996@hotmail.com |
b332da6e7afdf60dcfe5a0805699a6f76bed5000 | 1f70e6c069074d848347cfb6674b1376a323aae2 | /design/observer.py | eaf9c1e098a2f388539bda2ee30218482dd76cd3 | [] | no_license | TalentBoy2333/python_study | 5b3bf172a4bb04bd0ee05c24af7a223470ff78ca | 703d2ff4d9fe18c9c5b801c3784e5e8f0845a3a7 | refs/heads/master | 2023-05-25T15:27:22.315664 | 2021-06-14T08:16:50 | 2021-06-14T08:16:50 | 357,243,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | ''' 观察者模式
'''
from abc import ABCMeta, abstractclassmethod
class Observer(metaclass=ABCMeta): # 订阅者
@abstractclassmethod
def update(self, notice):
pass
class Notice: # 发布者
def __init__(self):
self.observers = []
def attach(self, obs):
self.observers.append(obs)
d... | [
"957498562@qq.com"
] | 957498562@qq.com |
300dff82aea77ac86bbac47b0ee397a4503a22cc | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flasharray/FA_2_20/models/replica_link_performance_replication.py | f928f8dbcd694fd51ffcb2543e1012ad8e850d8a | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 6,750 | py | # coding: utf-8
"""
FlashArray REST API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.20
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typing
from ... | [
"noreply@github.com"
] | PureStorage-OpenConnect.noreply@github.com |
579af1e21a4071f2e575bb86773f1afa24a2881a | d4ce80ad43b488af5b46ebb5f6af4ff656ebca7f | /wscript | e95b2dc39b53310355b242079965c17722d32058 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-mit-taylor-variant"
] | permissive | johne53/MB3Suil | 14f7b78becfa56c8e486f646f653fe40381d7f47 | 0730cc5f9a4d679131ada9e1e84e4f89f7026993 | refs/heads/master | 2021-07-03T16:47:07.544271 | 2021-06-04T14:16:56 | 2021-06-04T14:16:56 | 80,009,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,796 | #!/usr/bin/env python
from waflib import Build, Logs, Options, TaskGen
from waflib.extras import autowaf
# Semver package/library version
SUIL_VERSION = '0.10.11'
SUIL_MAJOR_VERSION = SUIL_VERSION[0:SUIL_VERSION.find('.')]
# Mandatory waf variables
APPNAME = 'suil' # Package name for waf dist
VERSION = ... | [
"d@drobilla.net"
] | d@drobilla.net | |
57b9200cadbd23bee5cbfb3057e293fd71831270 | c46407b9924351d794a0c28f498b4c74063f9b7b | /setup.py | 081220dbbcf8b8027b461700db64f086626ca1eb | [] | no_license | cprecioso/lektor-surge | fb317ae55c92230fdd607a173d17eecd71916e82 | da7cacda356f045cb71663c90c3139ff0e4b5451 | refs/heads/master | 2021-01-13T09:35:47.945391 | 2016-10-27T00:26:06 | 2016-10-27T00:26:06 | 72,056,084 | 0 | 0 | null | 2016-10-27T00:25:41 | 2016-10-27T00:25:40 | null | UTF-8 | Python | false | false | 409 | py | from setuptools import setup
setup(
name='lektor-surge',
version='0.2+',
author=u'A. Jesse Jiryu Davis',
author_email='jesse@emptysquare.net',
license='MIT',
py_modules=['lektor_surge'],
install_requires=['Lektor'],
url='https://github.com/ajdavis/lektor-surge',
entry_points={
... | [
"jesse@mongodb.com"
] | jesse@mongodb.com |
3f40a60b63fa2afebd92f23a45a3e7f418ae4644 | a3746020cf091f433beb41bde1b62818b4de569b | /past/rule_analysis/rule/text/check_lob_using.py | 7f1b4038034ddcd1a4e51f098a17ade8e31b68f3 | [] | no_license | kk71/sqlaudit | 59bab5765a67f56f1dd2f3103812051c5acbbc49 | 747aaa02573a9c2b46a9e14415d27c0ab8e6158c | refs/heads/master | 2023-02-04T18:38:46.125746 | 2020-06-05T09:49:46 | 2020-06-05T09:49:46 | 323,559,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # Author: kk.Fang(fkfkbill@gmail.com)
import re
from .utils import judge_if_ddl
def execute_rule(sql, db_model=None, **kwargs):
if not judge_if_ddl(sql):
return False
if not re.search(r"create\s+table", sql, re.I) and not re.search(r"alter\s+table", sql, re.I):
return False
if any([x ... | [
"fkfkbill@gmail.com"
] | fkfkbill@gmail.com |
f1115291106bbc3302ed73f4d698bd8e138e850f | bafb1c203362a9711f783115c7c573fdcd00a3d4 | /venv/Lib/site-packages/kivy/tests/test_clipboard.py | e9d8617a21f5b50010b3650d2a9d6d4bfb0df15d | [] | no_license | santokalayil/kivy_android_test_project | 0c41c40f6c8869767729cd153f4ce31ac09c0f1c | a4283ba4f4ca8961b2689ee7150297349aedb897 | refs/heads/main | 2023-04-14T08:18:40.453585 | 2021-04-27T19:15:21 | 2021-04-27T19:15:21 | 362,220,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,281 | py | from kivy.tests.common import GraphicUnitTest
class ClipboardTestCase(GraphicUnitTest):
def setUp(self):
from kivy.core.clipboard import Clipboard
self._clippy = Clipboard
clippy_types = Clipboard.get_types()
cliptype = clippy_types[0]
if 'UTF8_STRING' in clippy_... | [
"49450970+santokalayil@users.noreply.github.com"
] | 49450970+santokalayil@users.noreply.github.com |
cfef430b6bdd42f1a86c075b9f5b7da9eb77d3f5 | cf58614c12802286e4e416ef7b651ab6431f5b68 | /src/zojax/persistentlayout/information.py | b18f07a7c83d8d58666fa61a62cd8b7b1d61296b | [
"ZPL-2.1"
] | permissive | Zojax/zojax.persistentlayout | 3a31df0ac17e5b633a681b0bcf038c951fcba1fd | 94f05af015d69a1452a4bdc7f34d90db5acabc64 | refs/heads/master | 2021-01-01T18:55:56.560619 | 2011-08-09T19:31:12 | 2011-08-09T19:31:12 | 2,026,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,039 | py | ##############################################################################
#
# Copyright (c) 2009 Zope Foundation and Contributors.
# All Rights Reserved.
#
# 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 SOF... | [
"andrey.fedoseev@gmail.com"
] | andrey.fedoseev@gmail.com |
316a4bc464ee57433c6c147d9feed9d7d64b64f6 | c68aea1de91b46ae684792123c61e84c44ea0266 | /code-analysis/programming_anguage/python/source_codes/Python3.5.9/Python-3.5.9/Lib/distutils/command/register.py | 86343c8017bf0a891d4fbdb449dbd4a5c971576e | [
"Apache-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-python-cwi",
"Python-2.0"
] | permissive | Winfredemalx54/algorithm-challenger-1 | 12e23bed89ca889701db1b17ac540ce62ce86d8e | 761c2c39e041fb155f853385998d5c6318a39913 | refs/heads/master | 2022-11-22T15:03:01.548605 | 2020-07-11T12:26:31 | 2020-07-11T12:26:31 | 297,955,141 | 3 | 0 | Apache-2.0 | 2020-09-23T11:58:19 | 2020-09-23T11:58:18 | null | UTF-8 | Python | false | false | 11,733 | py | """distutils.command.register
Implements the Distutils 'register' command (register with the repository).
"""
# created 2002/10/21, Richard Jones
import os, string, getpass
import io
import urllib.parse, urllib.request
from warnings import warn
from distutils.core import PyPIRCCommand
from distutils.errors import *... | [
"bater.makhabel@gmail.com"
] | bater.makhabel@gmail.com |
25471751b2db8edcf8582fdedc9dee2bd88e1a36 | ab15c38891f26888e4dd4f192b42e5d171437d98 | /ch07-improving-classification-with-a-meta-algorithm-adaboost/adaboost.py | 092232466bf7224513c3b52d9ed68f6b401b53a8 | [] | no_license | zzy1120716/machine-learning-in-action | f262b1c6aea3a262c25d9a56102466d73024dd0a | a46b0b1f9e134d85f4f28bef1de30cdf329d8653 | refs/heads/master | 2020-03-28T21:07:59.224931 | 2018-10-12T08:51:15 | 2018-10-12T08:51:15 | 149,131,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,701 | py | from numpy import *
"""
创建简单数据集
"""
def loadSimpData():
datMat = matrix([[ 1. , 2.1],
[ 2. , 1.1],
[ 1.3, 1. ],
[ 1. , 1. ],
[ 2. , 1. ]])
classLabels = [1.0, 1.0, -1.0, -1.0, 1.0]
return datMat,classLabels
"""
单层决策树生成函数
"""
def stumpClassify(dataMatrix,dimen,threshVal... | [
"zzy1120716@126.com"
] | zzy1120716@126.com |
3a171d3084131166e554195f7c2a2b3bca3b65f8 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/resources/v20190801/get_resource_group.py | a589cd0c39a411c4afa98dc37e3ceaceedc2c156 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 4,330 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
dd64a7d5af16dc250d7f9f0558cf36a08ff22cb4 | f7630fd6c829cb306e72472296e3a513844d99af | /lib/python3.8/site-packages/ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_add_domain.py | 90c360467afab6cc661742573a653989786f573a | [] | no_license | baltah666/automation | 6eccce20c83dbe0d5aa9a82a27937886e3131d32 | 140eb81fe9bacb9a3ed1f1eafe86edeb8a8d0d52 | refs/heads/master | 2023-03-07T10:53:21.187020 | 2023-02-10T08:39:38 | 2023-02-10T08:39:38 | 272,007,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,822 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Ansible module to manage CheckPoint Firewall (c) 2019
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your op... | [
"baltah666@gmail.com"
] | baltah666@gmail.com |
2bf87000c434e7db266d0577faff3d8da61f2e6c | b42f4f67e71dee0f0cd95ee4ec0b781f1d27de4c | /Yr12 - to do list task, python revision.py | bbf3e7ee18240ea6e3b82e42ea335b675c47d09b | [] | no_license | Botany-Downs-Secondary-College/todo_list-Rishab-Lal | fa4e30669713fa178546597786463e98d59fc40c | 4e421cf74bb6fafecfc8c67b151a05741effcee8 | refs/heads/main | 2023-03-07T22:59:01.908938 | 2021-02-21T07:23:37 | 2021-02-21T07:23:37 | 338,934,435 | 0 | 0 | null | 2021-02-15T00:45:25 | 2021-02-15T00:45:20 | null | UTF-8 | Python | false | false | 2,022 | py | def command_operator(order):
if order == options_list[0] or order == options_list[3]:
task = input("what task would you like to add to your list?: ")
task_list.append(task)
elif order == options_list[1] or order == options_list[4]:
print("your tasks:")
tasks_in_list = len(t... | [
"noreply@github.com"
] | Botany-Downs-Secondary-College.noreply@github.com |
46f7c876228e28be02c1f1d994e893cb19c6acb2 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnfretwork.py | 519094b3dab4508a8e7adc7fb1466263733fe977 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 104 | py | ii = [('CookGHP3.py', 1), ('WilkJMC2.py', 1), ('DibdTRL2.py', 1), ('MedwTAI2.py', 1), ('BeckWRE.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
02533f4a8fe865e8035777f87750a925e2a26d76 | 5d3c8af513c3ff3f39ee09b78b36d6a0ad3f22e8 | /day10/main.py | 62a27bac0f3619cdd65d3b40306451bb6724c006 | [] | no_license | jason9075/aoc_2020_puzzle | 9a46efb781f3878eaf93854e97e001cb1fef1d31 | dc2f4c1fa52330cd7b29911d9211cb87fdd82ceb | refs/heads/master | 2023-02-03T20:41:11.447718 | 2020-12-25T04:06:47 | 2020-12-25T04:06:47 | 319,540,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | import numpy as np
def p1(file):
jol_num = []
with open(file) as fp:
line = fp.readline()
while line:
jol_num.append(int(line))
line = fp.readline()
# jol_num.append(0)
jol_num.sort()
jol_num.reverse()
num_of_thr = 0
num_of_one = 0
for idx, jol... | [
"jason9075@gmail.com"
] | jason9075@gmail.com |
8ec248e69b206d1a951f4d862f13b4e8dbc3705d | f3e5b47bb4781415f427af4c34f909ae3b67f411 | /概率/概率/资金流预测/function/概率/未命名文件夹/get_user_p.py | bcca6de5dad8132e3e108822f1ed31729df598b9 | [] | no_license | abnering/alitianchi | 83a45e4bc7d9adb06ad7451231ba241413768ba5 | 3e16a37ea4dd69c97f6d06fa8faa7ce81af23376 | refs/heads/master | 2020-05-18T15:34:30.783552 | 2015-06-28T08:58:29 | 2015-06-28T08:58:29 | 38,192,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import cPickle as pickle
def get_week_count():
week_count = [0,0,0,0,0,0,0]
for i in range(92):
week_count[i%7] += 1
return week_count
def get_purchase_p():
week_count = get_week_count()
usr_purchase_p = {}
f1 = file("../data/get_678_purchase.pkl",'rb')
usr_purchase = pickle.load(f... | [
"="
] | = |
469053de6c14cc6c42f2b512fdb68ae8e871bf84 | 187a6558f3c7cb6234164677a2bda2e73c26eaaf | /jdcloud_sdk/services/vpc/models/OpModifyBandwidthPackageSpec.py | 34fd5427391027321fb140ad91d8fa9d90d8e030 | [
"Apache-2.0"
] | permissive | jdcloud-api/jdcloud-sdk-python | 4d2db584acc2620b7a866af82d21658cdd7cc227 | 3d1c50ed9117304d3b77a21babe899f939ae91cd | refs/heads/master | 2023-09-04T02:51:08.335168 | 2023-08-30T12:00:25 | 2023-08-30T12:00:25 | 126,276,169 | 18 | 36 | Apache-2.0 | 2023-09-07T06:54:49 | 2018-03-22T03:47:02 | Python | UTF-8 | Python | false | false | 1,462 | py | # coding=utf8
# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"jdcloud-api@jd.com"
] | jdcloud-api@jd.com |
717e46f0ffd27a18a0b9b54a3611e47516442f14 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_15746.py | 3243066645dbac93483ab2cce76bcdfcaa156fe8 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | # string.format, differing length breaks table
for i in table_data:
interface,mac,ip = i
print '{:<20s}{:<20s}{:<20s}{s}'.format(ip, mac,'ARPA' ,interface)
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
3d17cdf60b5b1c9e6634e1185b48af2d4710f512 | 3c95032b4dfaa243a5dcf98956a233bb0b2c97b2 | /plot/swiss.py | 000063886447d17d0e6ceca70eadf629362c9d06 | [] | no_license | jhui/tf2 | b8c8736958117eca824fa83baddf6b48ebbc6b1d | 0eed446dd6252d17d23ef44140945dd8e25d06d4 | refs/heads/main | 2023-06-07T11:49:23.878736 | 2023-06-01T17:59:52 | 2023-06-01T17:59:52 | 324,392,041 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | import matplotlib.pyplot as plt
from sklearn import manifold, datasets
sr_points, sr_color = datasets.make_swiss_roll(n_samples=8000, random_state=14)
fig = plt.figure(figsize=(12, 9))
ax = fig.add_subplot(111, projection="3d")
fig.add_axes(ax)
ax.scatter(
sr_points[:, 0], sr_points[:, 1], sr_points[:, 2], '.', ... | [
"jonathan@jonathanhui.com"
] | jonathan@jonathanhui.com |
36f61e485d385be8d0aa3d2a88aa722f9cd8e3f7 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/aspeakman/walsall_planning_applications_1.py | 1323734e160aaf1e0d9e0f38d98762082ec01f52 | [] | 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 | 19,674 | py | # this is a scraper of Walsall planning applications for use by Openly Local
# works from the sequence of application numbers (in YY/NNNN/EXT format) - no date or list query
import scraperwiki
from datetime import timedelta
from datetime import date
from datetime import datetime
import re
import dateutil.parser
impor... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
204379dedd5ca575eb34d4a3ecf6f7fb845eb022 | 80cfb5f42bc93433249bb2789be33208bb037679 | /build/lib/platin/language/__init__.py | 6e2e3196480267064d1af89f669431bd5d059f80 | [] | no_license | legibe/platin | b3960975c214b99d699fc3c8d5e94d473d173a8c | 430c4421ac2056c3041c1ac4b7f950c202334fb4 | refs/heads/master | 2020-12-24T21:28:15.740529 | 2016-05-13T00:29:53 | 2016-05-13T00:29:53 | 55,983,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #--------------------------------------------------------------------------------
# Copyright (c) 2013, MediaSift Ltd
# All rights reserved.
# Distribution of this software is strictly forbidden under the terms of this
# license.
#
# Author: Claude Gibert
#
#-------------------------------------------------------------... | [
"claudegibert@Bearwood.local"
] | claudegibert@Bearwood.local |
e630acfcebf47e142561828d46fe7d83a788efc0 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/contrib/cv/detection/SOLOv1/tests/test_sampler.py | 8c6b401c06506371ea5f98f7873d093d3ee98610 | [
"LicenseRef-scancode-proprietary-license",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | 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 | 7,905 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the BSD 3-Clause License (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://opensource.org/licenses/BSD-3-Clause
#
# Unless required by applicable law or agreed to in ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
fd7500964a5e092683adba5c3939e8b99221bfb9 | fa51b088ea761b78cf0c85837fabaa0b7035b105 | /compute/client_library/ingredients/instance-templates/create_from_instance.py | 1450cf02f213a99b15e8ff2976bf5fa433f50640 | [
"Apache-2.0"
] | permissive | manavgarg/python-docs-samples | f27307022092bc35358b8ddbd0f73d56787934d1 | 54b9cd6740b4dbc64db4d43a16de13c702b2364b | refs/heads/master | 2023-02-07T21:18:15.997414 | 2023-01-28T18:44:11 | 2023-01-28T18:44:11 | 245,290,674 | 0 | 0 | Apache-2.0 | 2020-03-05T23:44:17 | 2020-03-05T23:44:16 | null | UTF-8 | Python | false | false | 2,677 | py | # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | [
"71398022+dandhlee@users.noreply.github.com"
] | 71398022+dandhlee@users.noreply.github.com |
0027e82f0d6f818aca29541ec19d064e1b701138 | e57d7785276053332c633b57f6925c90ad660580 | /sdk/resourcehealth/azure-mgmt-resourcehealth/azure/mgmt/resourcehealth/v2015_01_01/aio/__init__.py | 0333edd9e09f5f821f552a2ee2cabccdf0696107 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | adriananeci/azure-sdk-for-python | 0d560308497616a563b6afecbb494a88535da4c5 | b2bdfe659210998d6d479e73b133b6c51eb2c009 | refs/heads/main | 2023-08-18T11:12:21.271042 | 2021-09-10T18:48:44 | 2021-09-10T18:48:44 | 405,684,423 | 1 | 0 | MIT | 2021-09-12T15:51:51 | 2021-09-12T15:51:50 | null | UTF-8 | Python | false | false | 570 | 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 ... | [
"noreply@github.com"
] | adriananeci.noreply@github.com |
037d7f026b3234c024d54712032323343ef39fe2 | ee53b0262007b2f0db0fe15b2ad85f65fafa4e25 | /Leetcode/1302. Deepest Leaves Sum.py | a2ec36969b746bee15fc4af758331ba0cc235878 | [] | no_license | xiaohuanlin/Algorithms | bd48caacb08295fc5756acdac609be78e143a760 | 157cbaeeff74130e5105e58a6b4cdf66403a8a6f | refs/heads/master | 2023-08-09T05:18:06.221485 | 2023-08-08T11:53:15 | 2023-08-08T11:53:15 | 131,491,056 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | '''
Given the root of a binary tree, return the sum of values of its deepest leaves.
Example 1:
Input: root = [1,2,3,4,5,null,6,7,null,null,null,null,8]
Output: 15
Example 2:
Input: root = [6,7,8,2,7,1,3,9,null,1,4,null,null,null,5]
Output: 19
Constraints:
The number of nodes in the tree is in the range [1, 1... | [
"xiaohuanlin1993@gmail.com"
] | xiaohuanlin1993@gmail.com |
61fbd5f790574d59343a902bec9b36e3cd9d3526 | b8fed8222b41e447cd5ce83513eb4d014c01742b | /ad_account_optimization/report/account_move_line_record_xls.py | 6b8bea49e51ec23e054c329caae8de862e21f676 | [] | no_license | lajayuhniyarsyah/ERP-Supra | e993d8face6e022b6f863d1dff7cb51cda36be8d | 5a64dbb57ee40070354926700091fb9025c1350c | refs/heads/master | 2021-01-25T22:09:46.306990 | 2017-11-08T05:32:04 | 2017-11-08T05:32:04 | 23,605,825 | 0 | 10 | null | 2017-11-08T05:32:05 | 2014-09-03T03:58:28 | Python | UTF-8 | Python | false | false | 15,820 | py | # -*- encoding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
# Copyright (c) 2009 Zikzakmedia S.L. (http://zikzakmedia.com) All Rights Reserved.
#... | [
"lajayuhni@gmail.com"
] | lajayuhni@gmail.com |
fcbdc53a51fb6af5dbdd65a63ece1bb714a0861f | 50f4d2bb1b1222bcb2eb0122c48a0dd254deddfc | /Solve Algorithm/Dicevolume.py | 539f6cb16e57da789adb0d754f9c9e082760acc6 | [] | no_license | yejinee/Algorithm | 9ae1c40382e9dcd868a28d42fe1cc543b790c7f5 | 81d409c4d0ea76cf152a5f334e53a870bc0656a7 | refs/heads/master | 2023-04-13T01:29:44.579635 | 2023-04-05T06:23:26 | 2023-04-05T06:23:26 | 235,014,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | """
태민이는 주사위를 수집하는 취미를 가지고 있습니다.
주사위의 모양과 색깔은 각기 다르며, 크기 또한 다릅니다.
태민이는 지금까지 모은 N개의 주사위가 너무 난잡하게 보관해놓고 있어서
정리를 결심했습니다. 그래서 우선 N개의 주사위를 크기 순서대로 정리해보려고 마음 먹었습니다.
그렇게 주사위를 순서대로 정렬시켜보니 각 변의 길이가 1부터 N까지 모두 있는 것을 알게되었습니다.
이 사실이 매우 신기했던 태민이는 이 주사위들의 부피의 합은 어떻게 될지 궁금해졌습니다.
태민이가 현재 가지고 있는 모든 주사위의 부피의 합은 얼마일까요? 태민이의 궁금증을 풀어... | [
"kimyj9609@gmail.com"
] | kimyj9609@gmail.com |
0821ebaacd10da4c7d9f3837197682eb6f0d5430 | 1c61f90e32431a0bf813aa6ace88f7fa2627ee6f | /leadmanager/leads/serializers.py | 8e9d07756880747a16828975e4a37bf14d7cf81e | [] | no_license | WilliamOtieno/LeadManager_ReactDjango | 4c2b24072192c233ed9ab12521554272491f89bf | 209dc549651cebb7445f040bc38bdde275c67de9 | refs/heads/master | 2023-05-25T18:44:34.445294 | 2021-05-29T22:29:19 | 2021-05-29T22:29:19 | 371,958,224 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | from .models import Lead
from rest_framework import serializers
class LeadSerializer(serializers.ModelSerializer):
class Meta:
model = Lead
fields = "__all__"
| [
"jimmywilliamotieno@gmail.com"
] | jimmywilliamotieno@gmail.com |
2b37db3d071a1c49eb259947fc325cbdc7cc9c67 | 3b7b6648b72910046b6a227db30f71aeee2cba9c | /2020-12-10-deepergooglenet/config/tiny_imagenet_config.py | 0741ab950f8790d2664a0b6bcd3f28c8091fa011 | [] | no_license | ken2190/deep-learning-study | f2abeb1cd302e405a15bbb52188ae44ffb414e2f | f2998be89d0c931176f158ae5f48ca562786e171 | refs/heads/main | 2023-04-02T05:07:08.504212 | 2021-04-11T15:11:22 | 2021-04-11T15:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,464 | py | import os
def path_join(*arr):
return os.path.sep.join([*arr])
def cd(path):
return os.system("cd {}".format(path))
def start(path):
os.system("start {}".format(path))
PROJECT_DIR = os.path.sep.join(os.path.realpath(__file__).split(os.path.sep)[:-2])
# DATASET_DIR = path_join("d:", "datasets", "tiny... | [
"machingclee@gmail.com"
] | machingclee@gmail.com |
1266c0ee1674e1b6a510166f34ca4890175e4235 | f487b2f8086fcf97311a61f79b7d01382b7c04b4 | /anomaly detection/cat.py | 8b94702fa88412761c7aa0857ad9122b27d1ccbb | [] | no_license | vinayakumarr/extreme-learning-machine-for-security | 7c6386accc4c663e50ef5844388cd805ec396f50 | c888e9d8cf64f623e810d783f1c49a7ce57ad4be | refs/heads/master | 2021-05-09T21:19:01.985634 | 2018-01-24T06:53:47 | 2018-01-24T06:53:47 | 118,724,306 | 7 | 4 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from __future__ import print_function
import pandas as pd
from keras.utils.np_utils import to_categorical
import numpy as np
print("Loading")
testlabel = pd.read_csv('data/corrected.csv', header=None)
Y1 = testlabel.iloc[:,0]
y_test1 = np.array(Y1)
y_test= to_categorical(y_test1)
np.savetxt('data/correctedonehot.... | [
"noreply@github.com"
] | vinayakumarr.noreply@github.com |
eeb0149de58ec4a390b835b3bb2a4b3341edca3c | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/_event_grid_management_client.py | cda928965cc0af906415b9d662acd77e43c82655 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 7,322 | 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 ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
c43915e05bf79a467cc796b6ded3f746d250c066 | 2bf75b04b6a80d17a40170fb5e3e6998dc58981b | /l2tdevtools/build_helpers/source.py | ba428d24dc6eb092383430c66a999b946efd81dd | [
"Apache-2.0"
] | permissive | kiddinn/l2tdevtools | 53534a3c3f9d2fb3b6c585611daf0fc5a336d84c | 0e55b449a5fc19dbab68980df47d9073b7f0618c | refs/heads/master | 2020-03-25T19:07:15.219418 | 2018-11-26T05:26:09 | 2018-11-26T05:26:09 | 144,065,721 | 0 | 0 | Apache-2.0 | 2018-08-08T20:45:29 | 2018-08-08T20:45:29 | null | UTF-8 | Python | false | false | 3,309 | py | # -*- coding: utf-8 -*-
"""Helper for building projects from source."""
from __future__ import unicode_literals
import logging
import os
import subprocess
import sys
from l2tdevtools.build_helpers import interface
class SourceBuildHelper(interface.BuildHelper):
"""Helper to build projects from source."""
class... | [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
a91d27053468eaf6f98de68ee62bcfe05d192e2b | 3cda2dc11e1b7b96641f61a77b3afde4b93ac43f | /nni/nas/evaluator/__init__.py | 5c14415483187674a4095a7419b65bde73c68a95 | [
"MIT"
] | permissive | Eurus-Holmes/nni | 6da51c352e721f0241c7fd26fa70a8d7c99ef537 | b84d25bec15ece54bf1703b1acb15d9f8919f656 | refs/heads/master | 2023-08-23T10:45:54.879054 | 2023-08-07T02:39:54 | 2023-08-07T02:39:54 | 163,079,164 | 3 | 2 | MIT | 2023-08-07T12:35:54 | 2018-12-25T12:04:16 | Python | UTF-8 | Python | false | false | 250 | py | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from nni.common.framework import shortcut_framework
from .evaluator import *
from .functional import FunctionalEvaluator
shortcut_framework(__name__)
del shortcut_framework
| [
"noreply@github.com"
] | Eurus-Holmes.noreply@github.com |
f448589acd1f8fb150cb19cdefe3bf63485cd106 | 7f66c66eb82b480e8a23ecbfb8613aae02cb50f7 | /web3/vns.py | 1dc1c9f87373767d7c8def6d0229dcf3d974a0e1 | [
"MIT"
] | permissive | y19818/web3.py | 03ddedcfdbd4dde2c1a458b31f5e796509b3c7c6 | 32a85a287ab63220d1e0c06d77be74de595ff02f | refs/heads/master | 2021-06-25T00:30:50.312173 | 2019-12-02T08:21:40 | 2019-12-02T08:21:40 | 225,276,093 | 0 | 0 | MIT | 2019-12-02T03:20:47 | 2019-12-02T03:20:47 | null | UTF-8 | Python | false | false | 15,259 | py | from vns_account import (
Account,
)
from vns_utils import (
apply_to_return_value,
is_checksum_address,
is_string,
)
from hexbytes import (
HexBytes,
)
from web3._utils.blocks import (
select_method_for_block_identifier,
)
from web3._utils.empty import (
empty,
)
from web... | [
"y19818@gmail.com"
] | y19818@gmail.com |
7050101a01ba0b7f9d3b8222b5590e6ce9bb1653 | f2575444e57696b83ce6dcec40ad515b56a1b3a9 | /Python/Introduction/WriteAFunction.py | 308e029c6747ab642c896a925f68087dcd10765e | [] | no_license | abhi10010/Hackerrank-Solutions | 046487d79fc5bf84b4df5ef2117578d29cb19243 | da2a57b8ebfcc330d94d104c1755b8c62a9e3e65 | refs/heads/master | 2021-07-24T09:41:49.995295 | 2020-07-12T09:31:58 | 2020-07-12T09:31:58 | 195,647,097 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | def is_leap(year):
leap = False
if (year%4==0 and year%100!=0):
leap = True
if year%400==0:
leap = True
return leap
| [
"noreply@github.com"
] | abhi10010.noreply@github.com |
0eba26bcfcd9f5e9a4db59f3d9390ad11e96df73 | b92c73ac2fca8a1f16388cd553dafa0f167bda93 | /Unit 1/linear search.py | 26e1396a7e0eb697b0dee26b5592835914ced8f4 | [] | no_license | DamoM73/Digital-Solutions-old | deb8d0fd7c256113fd7fad56b4658896de9f1cba | 750b76d847e1d1c1661c3f1bbf7d56a72666f094 | refs/heads/master | 2023-08-16T05:35:03.641402 | 2021-10-05T02:36:34 | 2021-10-05T02:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | find = 10
found = False
number_list = [3,5,2,9,6,1,8,7]
length = len(number_list)
counter = 0
while found == False and counter < length:
if number_list[counter] == find:
found = True
print("Found at position", counter)
else:
counter = counter + 1
if found == False:
print("Number no... | [
"damomurtagh@gmail.com"
] | damomurtagh@gmail.com |
b5e24e6323440a416a551612ebd2d5789e7abce6 | f99a83f3d538a121184de88bff19ce396be6e3d5 | /stayclean-2022-november/checkin.py | 0035f9707815a1c2e971d997cf08e9fb7dca0582 | [
"MIT"
] | permissive | foobarbazblarg/stayclean | c38deddd971b795af58ae389b9e65914dea08d2d | 384a8261b1164797d6726166a6e40f323e5bd6dd | refs/heads/master | 2023-02-21T09:48:57.907540 | 2023-01-02T15:32:35 | 2023-01-02T15:32:35 | 45,186,602 | 1 | 0 | MIT | 2023-02-16T03:49:00 | 2015-10-29T13:59:33 | Python | UTF-8 | Python | false | false | 491 | py | #!/usr/bin/env python3
import sys
from participantCollection import ParticipantCollection
if __name__ == "__main__":
names = sys.argv[1::]
participants = ParticipantCollection()
for name in names:
if participants.hasParticipantNamed(name):
participants.participantNamed(name).hasChecked... | [
"foobarbazblarg@gmail.com"
] | foobarbazblarg@gmail.com |
2a7f0cc94cfa60d0fbb656abc845e8140d33fd55 | 3f15b2aac6cc0d9d8c85174a85aa2e7130f50fe1 | /memo.py | 8bf98c8737e0e42e3496f87c0e1237c2a8af72ea | [] | no_license | dfoderick/bitshovel-memo | 811bb9cb1ba961bb00a5f7c31ec901e4d9576d04 | 138019988a637a56a3f0bbdc1db9808084902118 | refs/heads/master | 2020-04-14T20:58:16.248551 | 2019-01-07T06:35:15 | 2019-01-07T06:35:15 | 164,112,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,680 | py | #naive implement memo.cash op_return protocol
#see https://memo.cash/protocol
#example: redis-cli publish memo.send <action> <value>
#redis-cli publish memo.send "Hello from BitShovel"
import sys
import redis
RED = redis.Redis(host="127.0.0.1", port="6379")
BUS = RED.pubsub()
def main():
#listen for anyone who wa... | [
"dfoderick@gmail.com"
] | dfoderick@gmail.com |
c676d154e348d5ded75002372f6e2ba4570d6cb3 | 40b42ccf2b6959d6fce74509201781be96f04475 | /tools/data/textrecog/ilst_converter.py | 6a3a8852bef7880b6b83cf9ead3dc0c95a7b00a9 | [
"Apache-2.0"
] | permissive | xdxie/WordArt | 2f1414d8e4edaa89333353d0b28e5096e1f87263 | 89bf8a218881b250d0ead7a0287526c69586c92a | refs/heads/main | 2023-05-23T02:04:22.185386 | 2023-03-06T11:51:43 | 2023-03-06T11:51:43 | 515,485,694 | 106 | 12 | null | null | null | null | UTF-8 | Python | false | false | 8,527 | py | # Copyright (c) OpenMMLab. All rights reserved.
import argparse
import json
import os
import os.path as osp
import xml.etree.ElementTree as ET
import mmcv
from mmocr.datasets.pipelines.crop import crop_img
from mmocr.utils.fileio import list_to_file
def collect_files(img_dir, gt_dir):
"""Collect all images and ... | [
"xudongxie77@gmail.com"
] | xudongxie77@gmail.com |
40ba102f4f4aa53184eb28b5f4f40e5b7c9db825 | 63efeff58299f3ca66c7be0aa80d636ade379ebf | /2019/july/shape_test.py | fca26e372a82f7855aa73e817427a95a6685dd4b | [] | no_license | gosch/Katas-in-python | 0eb6bafe2d6d42dac64c644c2fd48f90bdcef22b | f89ee2accdde75222fa1e4e0ca8b4f8e27b7b760 | refs/heads/master | 2021-07-24T23:50:26.268217 | 2020-04-14T23:53:15 | 2020-04-14T23:53:15 | 137,545,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | # importing pandas module
import pandas as pd
import math
# making data frame
from pandocfilters import Math
data = pd.read_csv("https://cdncontribute.geeksforgeeks.org/wp-content/uploads/nba.csv")
# dataframe.size
size = data.size
# dataframe.shape
shape = data.shape
# dataframe.ndim
df_ndim = data.ndim
# serie... | [
"francisco.gosch@ge.com"
] | francisco.gosch@ge.com |
5734512409b516a061b0050f422b34b7ca2d1f69 | d185832a16690d4f8a84311e5083f95541d9105c | /tracker/model/cvegrouppackage.py | e83aeeb1d96482bef0dfa222dea89e049fa0ff1d | [
"MIT"
] | permissive | dukebarman/arch-security-tracker | 5eaf074215f567e11b128e5c9f58c5f1f6e91edc | 569efa7c6b509c96339baa151c82a7398eb79743 | refs/heads/master | 2020-04-17T13:15:00.724114 | 2019-01-24T10:41:08 | 2019-01-24T10:41:08 | 166,607,334 | 0 | 0 | MIT | 2019-01-24T10:41:09 | 2019-01-20T00:17:37 | Python | UTF-8 | Python | false | false | 656 | py | from tracker import db
class CVEGroupPackage(db.Model):
id = db.Column(db.Integer(), index=True, unique=True, primary_key=True, autoincrement=True)
group_id = db.Column(db.Integer(), db.ForeignKey('cve_group.id', ondelete="CASCADE"), nullable=False)
pkgname = db.Column(db.String(64), nullable=False)
... | [
"levente@leventepolyak.net"
] | levente@leventepolyak.net |
51ab28d92dbcae0a65a1fae287c6b9e11d8a3168 | f2b172f7c1dcf0ac28fe7465b5844b48facade18 | /12/1208/capitals.py | a134c5e6f06169f662925732217f9bc809346ab1 | [] | no_license | 0gravity000/IntroducingPython | 2fde12485d0597e72a7da801a08d5048a47f2ff5 | 5d3281dbe37ed1a08d71cb6a36841781f9ac0ccf | refs/heads/master | 2023-07-19T02:53:23.081806 | 2021-09-30T01:51:44 | 2021-09-30T01:51:44 | 403,935,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | def process_cities(filename):
with open(filename, 'rt') as file:
for line in file:
line = line.strip()
if 'quit' == line.lower():
return
country, city = line.split(',')
city = city.strip()
country = country.strip()
print(city.title(), country.title(), sep=',')
if __nam... | [
"0gravity000@gmail.com"
] | 0gravity000@gmail.com |
321c8151d99bfc35e1562fe05644e8a08ecc1a87 | 881041fab1b4d05f1c5371efed2f9276037eb609 | /tasks/nyc-permitted-event-information/depositor.py | 476281f4fd7af0a89bd394682d4f9c09cebab620 | [] | no_license | ResidentMario/urban-physiology-nyc-catalog | b568f3b6ee1a887a50c4df23c488f50c92e30625 | cefbc799f898f6cdf24d0a0ef6c9cd13c76fb05c | refs/heads/master | 2021-01-02T22:43:09.073952 | 2017-08-06T18:27:22 | 2017-08-06T18:27:22 | 99,377,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import requests
r = requests.get("https://data.cityofnewyork.us/api/views/tvpp-9vvx/rows.csv?accessType=DOWNLOAD")
with open("/home/alex/Desktop/urban-physiology-nyc-catalog/catalog/nyc-permitted-event-information/data.csv", "wb") as f:
f.write(r.content)
outputs = ["/home/alex/Desktop/urban-physiology-nyc-catalog... | [
"aleksey.bilogur@gmail.com"
] | aleksey.bilogur@gmail.com |
4ac2241cd9990e5eccfa76732cc50add2d0b77d1 | 8792797d97e7a3916a50579d625a5b56b748e1eb | /ppRECO/pPbreco2016/specialSequence/ReconstructionPPb_cff.py | e5a3fe3ad1d52aea59fca445f7cb11100cb70f30 | [] | no_license | samborsol/Centrality | ffe95864f782151bfec4e77d1adc1f303b473626 | 26546f37f308b3d9b6e1277a4c8d98332bd1ea6c | refs/heads/master | 2021-01-25T04:35:40.684031 | 2017-02-21T15:13:02 | 2017-02-21T15:13:02 | 93,451,545 | 1 | 0 | null | 2017-06-05T22:09:48 | 2017-06-05T22:09:48 | null | UTF-8 | Python | false | false | 11,449 | py | import FWCore.ParameterSet.Config as cms
### Beginning of Copy from Reconstruction_cff.py
##from Configuration.StandardSequences.Eras import eras
from RecoLuminosity.LumiProducer.lumiProducer_cff import *
from RecoLuminosity.LumiProducer.bunchSpacingProducer_cfi import *
from RecoLocalMuon.Configuration.RecoLocalMuon... | [
"shengquan.tuo@cern.ch"
] | shengquan.tuo@cern.ch |
3163746233dd0e092d7b43a3d6001c45455a58c2 | 19cad9cc067f117a096af8dbf233f6fff3115e4b | /tools/src2/xml_processor.py | d5c531706bcbaada05d679c7225d005d32201ae2 | [
"MIT"
] | permissive | mattpbooth/oxygine-framework | b28339b77dd26c69029ee80b18ccd0b1895b0ab4 | 14a3026a67a0b8df0a3c094566aae89bf66c3ffd | refs/heads/master | 2020-04-01T13:52:14.227020 | 2014-11-25T21:35:21 | 2014-11-25T21:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,313 | py | from xml.dom import minidom
import os
import shutil
import process_atlas
import process_font
import process_starling_atlas
import oxygine_helper
class XmlWalker:
def __init__(self, src, folder, scale_factor, node, meta_node, scale_quality):
self.base = folder
self.path = folder
self.scale_f... | [
"frankinshtein85@gmail.com"
] | frankinshtein85@gmail.com |
8da7371fc0333a1219c82545e88fc239fe9137f0 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_to_M_Gk3_no_pad/wiColorJ/pyr_Tcrop255_p60_j15/Add2Loss/Sob_k21_s001_Bce_s001/pyr_1s/L3/step10_a.py | 526d45d6ec62d423f84189f8d28903e1c483f9a1 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,320 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
bcd6a3fac9732cbc1890b685ff96be4072b34044 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2064/60769/243881.py | 6745299c74805287f773ea018a445a74748503e3 | [] | 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 | 478 | py | a = input()
dict = {"IV": 4, "IX": 9, "XL": 40, "XC": 90, "CD": 400, "CM": 900,
"I": 1, "V": 5, "X": 10, "L": 50, "C": 100, "D": 500, "M": 1000}
res = 0
jmp = False
for i in range(len(a)):
if jmp:
jmp = False
continue
if i < len(a) - 1:
if dict[a[i]] >= dict[a[i + 1]]:
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
bd0a17a144b476d54d6ec4c36018bac20e5578a4 | 08cb6c716f24ad0e5c3fe8fb2c292e81b63fc518 | /python/problem17a.py | 5843761bced645fe35cd1765502fc11ee322c31b | [
"MIT"
] | permissive | amyreese/euler | 170ada3909500cdc1e3394406b57529d9d5fe839 | 0e2a809620cb02367120c0fbfbf9b419edd42c6e | refs/heads/master | 2022-09-01T16:53:13.423566 | 2015-12-30T05:30:04 | 2015-12-30T05:30:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py |
onetonine = len("onetwothreefourfivesixseveneightnine")
onetoten = onetonine + len("ten")
eleventotwenty = len("eleventwelvethirteenfourteenfifteensixteenseventeeneighteennineteen")
twenties = len("twenty")*10 + onetonine
thirties = len("thirty")*10 + onetonine
forties = len("forty")*10 + onetonine
fifties = len("fift... | [
"john@noswap.com"
] | john@noswap.com |
dec6b3e4df26199d84d883efb11adff47ef6e9cb | df60bc5a9c27b54b95568a9f04102785c7bc12c2 | /samples/resnet-cmle/resnet-train-pipeline.py | b709051693e09c6c968564be030ee8dbd2486eb4 | [
"Apache-2.0"
] | permissive | Anthonymcqueen21/pipelines | 1d9d0ae20ebd43b590b88d3f9cbb398f21488be4 | f0c8432748e5c013451dcac8e1ee3aee0bb415cc | refs/heads/master | 2020-06-14T09:45:10.246821 | 2019-07-03T00:11:13 | 2019-07-03T00:11:13 | 194,972,318 | 1 | 0 | Apache-2.0 | 2019-07-03T03:22:36 | 2019-07-03T03:22:36 | null | UTF-8 | Python | false | false | 5,903 | py | #!/usr/bin/env python3
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
ce8d7ce0b7077bb3fb89194e7b211332cc888836 | 533931c3d15020c6d1aab46f07a602b8257dada3 | /cs3311/ass3/bio | b8c136726899aaf277beacafbc72fb4bec47bd7a | [] | no_license | JoeZhao527/database-system | 9076b1ce6a978b8dfb461bb1d1da69ab887ff68e | 1bfdd9f536f1d67f487ed187aa77687e15192560 | refs/heads/main | 2023-03-24T13:09:56.117135 | 2021-03-19T01:47:15 | 2021-03-19T01:47:15 | 300,784,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,266 | #!/usr/bin/python3
# COMP3311 20T3 Ass3 ... get Name's biography/filmography
import sys
import psycopg2
#from helpers import whatever, functions, you, need
# define any local helper functions here
# set up some globals
usage = "Usage: bio 'NamePattern' [Year]"
db = None
pattern = None
year = None
input = None
# pr... | [
"email@example.com"
] | email@example.com | |
63a8b851714d15cf5ac6f0ef5c8c7df8979f7929 | 0bb474290e13814c2498c086780da5096453da05 | /tenka1-2017/D/main.py | 471f525f95101f269499fbde1e4d56de0f16212b | [] | no_license | ddtkra/atcoder | 49b6205bf1bf6a50106b4ae94d2206a324f278e0 | eb57c144b5c2dbdd4abc432ecd8b1b3386244e30 | refs/heads/master | 2022-01-25T15:38:10.415959 | 2020-03-18T09:22:08 | 2020-03-18T09:22:08 | 208,825,724 | 1 | 0 | null | 2022-01-21T20:10:20 | 2019-09-16T14:51:01 | Python | UTF-8 | Python | false | false | 754 | py | #!/usr/bin/env python3
import sys
def solve(N: int, K: int, A: "List[int]", B: "List[int]"):
return
# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools (tips: You use the default template now. You can remove this line by using your custom template)
def main():
def iterate_tokens():
... | [
"deritefully@gmail.com"
] | deritefully@gmail.com |
132e6dd5345800e39acd1da16a86ddfc6215c444 | b47e438f1be149c5b339eb0d7e114d98fb986ad0 | /week-07/profiling/examples/pygame/swarm.py | c2afb0544dd9b3dbbc117f8ac3f424ce0d827e07 | [] | no_license | kstager/Python300-SystemDevelopmentWithPython-Spring-2014 | fb97ac425b09df34c00dc480ed3c263742d47d7f | ed37a50a8ea7c308a081bc87c8bea71520221a5e | refs/heads/master | 2021-01-22T15:22:07.197138 | 2014-07-22T13:13:43 | 2014-07-22T13:13:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,929 | py | import math
import pygame
import random
import sys
# from meliae import scanner
# scanner.dump_all_objects("meliae.dump") # you can pass a file-handle if you prefer
NUMBER_OF_SPHERES = 150
size = width, height = 800, 600
pygame.init()
black = 0, 0, 0
screen = pygame.display.set_mode(size)
class Sphere(object):
... | [
"joseph.sheedy@gmail.com"
] | joseph.sheedy@gmail.com |
1ad6aa2c13b4180254111deb127f4c13e2d27af4 | f91474e528ca517f9e81b9dbb50894f2f958f213 | /party.py | def8619f9f28b52d7caa00ba4d9c66de562763db | [] | no_license | daminiamin/Testing-Balloonicorn-s-After-Party-Unit-Test | 8d537af37806486ebdb19f7b7347c2a75d7ba323 | 03fb2160743fbabf45d9a69aed8bcc4b38ed0dd1 | refs/heads/master | 2020-03-30T22:04:12.660895 | 2018-10-05T00:40:21 | 2018-10-05T00:40:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | """Flask site for Balloonicorn's Party."""
from flask import Flask, session, render_template, request, flash, redirect
from flask_debugtoolbar import DebugToolbarExtension
from model import Game, connect_to_db
app = Flask(__name__)
app.secret_key = "SECRETSECRETSECRET"
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = ... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
aef71039dde801227a1aaf2d7d3319adaa324b95 | ab6015247185ad2f7440d57aa1215ff25842a996 | /account/models.py | 4dee82653791f8061b1a8cb306186ce1f6af311b | [] | no_license | Johnson-xie/rurality | 7fc5c7c5b941989f1c50cef944f3f4d94ac39fe7 | cc35c8b0610c097db17ed1de554171737466e7b6 | refs/heads/master | 2023-02-20T15:48:46.233989 | 2021-01-23T11:04:16 | 2021-01-23T11:04:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,934 | py | from django.db import models
from django.core.signing import TimestampSigner
from django.contrib.auth.hashers import make_password
from django.contrib.auth.hashers import check_password
from base.models import BaseModel
class UserModel(BaseModel):
'''
用户表
'''
model_name = '用户'
model_sign = 'user'
... | [
"boxingxing@limikeji.com"
] | boxingxing@limikeji.com |
f8ff31230d296d8d52bafc61867337d61507ab7e | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_airfares.py | 1310f1c3cdc33bc1f52a56002ac21d34a724d64c | [
"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 | 245 | py |
from xai.brain.wordbase.nouns._airfare import _AIRFARE
#calss header
class _AIRFARES(_AIRFARE, ):
def __init__(self,):
_AIRFARE.__init__(self)
self.name = "AIRFARES"
self.specie = 'nouns'
self.basic = "airfare"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
aaa7a305b09f42ba724822ff74db0d1d28f9b1a9 | 2b42b40ae2e84b438146003bf231532973f1081d | /spec/mgm4456289.3.spec | e4fd503864c25acf155653f1567ea71821f0b96a | [] | no_license | MG-RAST/mtf | 0ea0ebd0c0eb18ec6711e30de7cc336bdae7215a | e2ddb3b145068f22808ef43e2bbbbaeec7abccff | refs/heads/master | 2020-05-20T15:32:04.334532 | 2012-03-05T09:51:49 | 2012-03-05T09:51:49 | 3,625,755 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,942 | spec | {
"id": "mgm4456289.3",
"metadata": {
"mgm4456289.3.metadata.json": {
"format": "json",
"provider": "metagenomics.anl.gov"
}
},
"providers": {
"metagenomics.anl.gov": {
"files": {
"100.preprocess.info": {
... | [
"jared.wilkening@gmail.com"
] | jared.wilkening@gmail.com |
aeb7b0b5e01210faa7989db07f6777d5519f089a | dd116fe1e94191749ab7a9b00be25bfd88641d82 | /cairis/cairis/VulnerabilityEnvironmentProperties.py | a7407040d88f84b7fe623b7bdd058f5ff946d5d7 | [
"Apache-2.0"
] | permissive | RobinQuetin/CAIRIS-web | fbad99327707ea3b995bdfb4841a83695989e011 | 4a6822db654fecb05a09689c8ba59a4b1255c0fc | HEAD | 2018-12-28T10:53:00.595152 | 2015-06-20T16:53:39 | 2015-06-20T16:53:39 | 33,935,403 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,181 | 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... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
ed6b7a8c5f2057dacf6492198f9233cc8714b552 | 6aa406767612c3eec15c9dcd26ce49841c1555bb | /ADK_6.2.43/audio/kalimba/kymera/tools/KCSMaker/downloadFile.py | 88d7254055bcb3d572c7b9762266ccc7f436cbba | [] | no_license | hongshui3000/BluetoothEarbud | 0bb483ca3c19f9c4b317a6ef1f4e8a9712313dd1 | b173ec3666c9e02d115d52d301b74fcd2d08cb47 | refs/heads/master | 2021-04-06T12:42:57.286099 | 2018-03-06T01:55:33 | 2018-03-06T01:55:33 | 124,361,091 | 1 | 7 | null | 2018-03-08T08:30:02 | 2018-03-08T08:30:01 | null | UTF-8 | Python | false | false | 2,569 | py | ############################################################################
# CONFIDENTIAL
#
# Copyright (c) 2015 - 2017 Qualcomm Technologies International, Ltd.
#
############################################################################
import types
class downloadFile(list):
"""Container format that extends ... | [
"chaw.meng@geortek.com"
] | chaw.meng@geortek.com |
806c0d4bfb02f750662a45711cbf31d002796237 | 205861f3dc228f78eb6544ef5ed987175938eb84 | /celery/wait_rabbitmq.py | eb3b23a6c7d7cd6ca05112587be942d710b9cd5a | [] | no_license | Muzque/nicetomeetyou | c2e0e4e9fdccdf4969b1b721ad95654e486da84b | baf2db0d2a60ab51fce956f70c9acc55a3181bf9 | refs/heads/master | 2020-04-05T06:25:24.316156 | 2018-11-11T11:08:01 | 2018-11-11T11:08:01 | 156,637,397 | 0 | 0 | null | 2018-11-08T02:16:50 | 2018-11-08T02:16:49 | null | UTF-8 | Python | false | false | 1,169 | py | import argparse
import pika
import time
parser = argparse.ArgumentParser(description='Check connection.')
parser.add_argument('--server', default='rabbitmq')
parser.add_argument('--virtual_host', default='celery_vhost')
parser.add_argument('--ssl', action='store_true')
parser.add_argument('--port', type=int, default='... | [
"zerosky1943@gmail.com"
] | zerosky1943@gmail.com |
a7cc0d1ab36a3ee26d3b0a4230bda54f1ea0db08 | 246e9200a834261eebcf1aaa54da5080981a24ea | /ctci/arrays-and-strings/1-unique-characters-in-string.py | 73a46444484f9c5f684bb78e31fca563eff94d32 | [] | no_license | kalsotra2001/practice | db435514b7b57ce549b96a8baf64fad8f579da18 | bbc8a458718ad875ce5b7caa0e56afe94ae6fa68 | refs/heads/master | 2021-12-15T20:48:21.186658 | 2017-09-07T23:01:56 | 2017-09-07T23:01:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | import sys
def unique(s):
char = [False] * 128
if len(s) > 128:
return False
for c in s:
if char[ord(c)] == True:
return False
else:
char[ord(c)] = True
return True
s = sys.stdin.readline().strip()
if unique(s):
print "Unique."
else:
print "Not u... | [
"jacquelineluo95@gmail.com"
] | jacquelineluo95@gmail.com |
aa686c33f11968bbdc3d862cf0fce99117109547 | b76e39e535499704368eddc26237dc0016ef7d06 | /LF/fn_ProportionValve_V3.py | 5557424e4d8b523e9634e2cbfadd48247997997f | [] | no_license | BUBAIMITRA2018/castersimulation | 0532e53df7d346c2824e577cc91cd0ac2ce4694c | eca5fddff5c0f33f785168f6b1e9f572c1622be0 | refs/heads/master | 2022-12-10T02:45:04.207196 | 2020-09-09T05:35:54 | 2020-09-09T05:35:54 | 260,110,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,700 | py | import time
from event_V2 import *
from clientcomm_v1 import *
from readgeneral_v2 import *
from writegeneral_v2 import *
import logging
import gc
logger = logging.getLogger("main.log")
__all__ = ['FN_ProportionalValve']
class FN_ProportionalValve(Eventmanager):
def __init__(self,com,df,idxNo,filename):
... | [
"subrata.mitra@sms-group.com"
] | subrata.mitra@sms-group.com |
860b79c446c1239bedd54c874410e6b544f97def | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/-57053121/win32net.py | ff9e6a1b782e3fcae5c883d127212d2b12f61488 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | # encoding: utf-8
# module win32net
# from C:\Users\Doly\Anaconda3\lib\site-packages\win32\win32net.pyd
# by generator 1.147
""" A module encapsulating the Windows Network API. """
# imports
from pywintypes import error
# Variables with simple values
SERVICE_SERVER = 'LanmanServer'
SERVICE_WORKSTATION = 'LanmanWork... | [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
ab763d211a9c24f4b40133a63293a7644e5bc85f | 19ab1499f904fc7065cf76eb518a457d1cad08c9 | /accounts/models.py | 6a9b925e0f4b3cfd73ab40258c5cce0c4c4d91d5 | [] | no_license | mathemartins/moli | 5a2637c94ec8953b42fba369b2fed5bdd3a83be6 | c945b90920659025013fe6133dfd5a0abac61788 | refs/heads/master | 2021-05-03T06:27:21.472267 | 2018-03-04T18:50:18 | 2018-03-04T18:50:18 | 120,595,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,327 | py | from django.db import models
from django.db.models.signals import pre_save, post_save
from django.contrib.auth import get_user_model
from django.utils.text import slugify
from django.utils.safestring import mark_safe
from django.utils import timezone
# Create your models here.
from imagekit.models import ProcessedIm... | [
"mathegeniuse@gmail.com"
] | mathegeniuse@gmail.com |
58aede70705c5b0dd846bea68d5953645bf246f6 | 65f9576021285bc1f9e52cc21e2d49547ba77376 | /cdsp_proc/core/securemsm/cryptodrivers/prng/build/SConscript | ac11a7dc6ab6c6c833edf3300ae6c0378f6e7fc7 | [] | no_license | AVCHD/qcs605_root_qcom | 183d7a16e2f9fddc9df94df9532cbce661fbf6eb | 44af08aa9a60c6ca724c8d7abf04af54d4136ccb | refs/heads/main | 2023-03-18T21:54:11.234776 | 2021-02-26T11:03:59 | 2021-02-26T11:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | #===============================================================================
#
# Crypto Driver Libraries
#
# GENERAL DESCRIPTION
# build script
#
# Copyright (c) 2012 by QUALCOMM, Incorporated.
# All Rights Reserved.
# QUALCOMM Proprietary/GTDR
#
#-----------------------------------------------------------------... | [
"jagadeshkumar.s@pathpartnertech.com"
] | jagadeshkumar.s@pathpartnertech.com | |
5b49340e964b98109030cd66ae3252c3ba525436 | d2ad4a42770cd3b5c8738cdc6f11a3b63689123a | /examples/DeepQNetwork/common.py | 5e53e5c9192924e6f3562c328dcf02a1bdee57e0 | [
"Apache-2.0"
] | permissive | cpehle/tensorpack | bcdc55418e2e07779fd08f03742e9080a0854651 | 7e91eb48ce59b303b580140abbbfa42dc0319b21 | refs/heads/master | 2021-01-11T15:35:03.578953 | 2017-01-29T06:48:50 | 2017-01-29T06:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,462 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# File: common.py
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
import random
import time
import threading
import multiprocessing
import numpy as np
from tqdm import tqdm
from six.moves import queue
from tensorpack import *
from tensorpack.predict import get_predict_func
from t... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
17cc2d6112cbf07ea283510a6a4186bda20bb213 | 8246092010e656920e7199f889f9cbf54b83a729 | /pycoin/wallet/SQLite3Persistence.py | 23c29337a9bc3cb77f61dce4e3bb11dd047b7512 | [
"MIT"
] | permissive | richardkiss/pycoin | 5717411a11445773ac922c1d1c1b7dbe4835cd77 | b41ad7d02e52d9869a8c9f0dbd7d3b2b496c98c0 | refs/heads/main | 2023-08-07T12:14:04.974934 | 2023-04-18T02:27:15 | 2023-04-18T02:27:15 | 10,917,677 | 1,306 | 489 | MIT | 2023-06-03T23:24:50 | 2013-06-24T19:17:52 | Python | UTF-8 | Python | false | false | 7,582 | py | from pycoin.encoding.hexbytes import b2h, h2b, b2h_rev, h2b_rev
from pycoin.key.BIP32Node import BIP32Node
class SQLite3Persistence(object):
def __init__(self, sqlite3_db):
self.db = sqlite3_db
self._init_tables()
def _exec_sql(self, sql, *args):
c = self.db.cursor()
c.execute... | [
"him@richardkiss.com"
] | him@richardkiss.com |
0271004bd53c6495bea1b7d09dd2f9cd713b5bab | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_348/ch28_2020_04_01_16_19_34_337220.py | 510b48ff825567842eb0ccd1c5f6ae918874c9eb | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | contador = 0
numero = 0
while contador < 99:
numero = numero + (1/2**contador)
contador = contador + 1
print(numero)
| [
"you@example.com"
] | you@example.com |
7dc694c928307813f2ccde47e1ff6de0f120e660 | 33d77a6caf1813fcb378671fd89e5bb1dec7f6f8 | /tsai/callback/core.py | 449505e7e55f4945889568ef0a8510b4d9be93d9 | [
"Apache-2.0"
] | permissive | kusumy/tsai | 6a1f3d4137131084062d1a5f942e8f7d23662abd | d6994896dd804cfed441adbb2b8dd4836b1dac4a | refs/heads/master | 2023-02-25T14:13:08.275441 | 2021-01-29T20:44:21 | 2021-01-29T20:44:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,198 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/010_callback.core.ipynb (unless otherwise specified).
__all__ = ['GamblersCallback', 'TransformScheduler', 'ShowGraph', 'ShowGraphCallback2', 'UBDAug']
# Cell
from ..imports import *
from ..utils import *
from ..data.preprocessing import *
from ..data.transforms import ... | [
"“oguiza@gmail.com”"
] | “oguiza@gmail.com” |
9c4e3df78a6a526942f1747c2c3ab68138a6105d | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_retracting.py | 7a0b51d0632af5dd821d4f03d4dee4fe35e094e4 | [
"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 | 230 | py |
#calss header
class _RETRACTING():
def __init__(self,):
self.name = "RETRACTING"
self.definitions = retract
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['retract']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
97de807d29418219e7285b76b289be1bafcc58c8 | c609c9e9da9b716dde810334fe32cb65a3ddcff9 | /ddsc/remotestore.py | f5c98790fe650c115cff91c020eda36391e45622 | [
"MIT"
] | permissive | erichhuang/DukeDSClient | 16f858e743b7823f1797214b9ede1e520f73af4a | feccdbd0caed524e0728268be29a3987121712fa | refs/heads/master | 2020-12-24T21:45:24.371369 | 2016-02-22T18:30:06 | 2016-02-22T18:30:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,257 | py | from localstore import LocalContent, HashUtil
class RemoteContentFetch(object):
def __init__(self, data_service):
self.data_service = data_service
def fetch_remote_project(self, project_name, path_list):
project = self._get_my_project(project_name)
if project:
self._add_pr... | [
"johnbradley2008@gmail.com"
] | johnbradley2008@gmail.com |
d022fe38183e5587f2f636e2c586849ef8486f56 | 8b5e08a5c2ae9779a362e4a1eb15e9205585288b | /mysite/account/views.py | a8780cbdccf21ad701a253bed72a0ae7507e6d5c | [] | no_license | wuchunlongcom/admin-upimg | 2b6dcc453e91040f0e9154d6255afdcf9aaa4e62 | 35e0dd0584d7e090d8922de704cd26ff0543679e | refs/heads/master | 2022-05-02T02:59:18.691844 | 2020-02-21T10:23:17 | 2020-02-21T10:23:17 | 240,830,450 | 0 | 0 | null | 2022-04-22T23:02:11 | 2020-02-16T04:21:17 | JavaScript | UTF-8 | Python | false | false | 805 | py | # -*- coding: utf-8 -*-
from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from .models import Image
from myAPI.pageAPI import djangoPage, PAGE_NUM
# http://localhost:8000/
#@login_required
def index(request):
meg = '最简单代码,实现图像文件上传。 <br>登录Admin后台, 上传图像文件并在前台显... | [
"wcl6005@163.com"
] | wcl6005@163.com |
a0cfe1555eae52ff7fc71807259a1992ae6af19e | 8163d8f03aea22cb4fa1e60d809781049fff4bb4 | /MODEL11/first/urls.py | 64c7bb7d97725ed170ff93fe6248f7b4ddae533c | [] | no_license | shubham454/Django-Devlopment | 694b973d31a82d2ded11f95138bd766130d7d3c9 | 43a2c3b98dbe9f582f2394fcfb3beb133c37b145 | refs/heads/master | 2022-12-04T14:34:05.093402 | 2020-08-13T18:35:33 | 2020-08-13T18:35:33 | 287,353,684 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 277 | py | from django.urls import path
from first import views
urlpatterns = [
path('list/',views.GetBankData.as_view()),
path('add/', views.AddBankData.as_view()),
path('<int:ano>/', views.DeleteView.as_view()),
path('update/<int:ano>/', views.UpdateView.as_view()),
]
| [
"moreshubham203@gmail.com"
] | moreshubham203@gmail.com |
fae3195bd3e588f5f3ea49692059b133decd7c8e | 086c199b617f304f5edcbb3481a82119b9cec99d | /build/catkin_generated/generate_cached_setup.py | dcc8823bb39338e0486ff1fd5c925f02d20b3f92 | [] | no_license | canveo/catkin_ws | 59634bee66aa9f5ed593acd85e6bd4e2e2eaab01 | 3c931df576529ad7e1e48dc0e69ba131914d18dc | refs/heads/master | 2023-02-28T13:23:43.653964 | 2021-02-03T23:00:45 | 2021-02-03T23:00:45 | 325,388,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/noetic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, o... | [
"canveo@gmail.com"
] | canveo@gmail.com |
0df4506dacd545abd91b163d9de4b2880bf748cb | 753938feae47c1ce8edeaa35099c634fbafa3b99 | /store/store_convergence.py | 569d2102921bf041a6e060c55c2a75cb8a7ce3c3 | [
"MIT"
] | permissive | dayoladejo/SwarmOptimization | c11cc799ec5a16a3a341ea0f2b5b9df1ea5f65d9 | 5445b6f90ab49339ca0fdb71e98d44e6827c95a8 | refs/heads/main | 2023-07-17T09:14:16.266657 | 2021-09-10T17:10:56 | 2021-09-10T17:10:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | #
# file: store_convergence.py
#
# Plot store convergence as function of iteration.
#
# RTK, 24-Sep-2020
# Last update: 24-Sep-2020
#
################################################################
import pickle
import numpy as np
import matplotlib.pylab as plt
def geny(m,gbest,giter):
y = np.zeros(m)
f... | [
"oneelkruns@hotmail.com"
] | oneelkruns@hotmail.com |
03139a6a7f7c39063ba8cd75ec2ed4dc60c632a8 | 5619eb14e8c46a70ba228f96c4afcebbae557189 | /url_tester/migrations/0004_auto_20190107_1552.py | cb82a2213547b9a90915b99fee210e96dd484ea7 | [] | no_license | eduarde/URLTester | 3d7b6be6f43886559264189f70f126c3ee74678d | 32c158943b4892b7f00d328ed26d63d813287106 | refs/heads/master | 2020-04-15T05:36:25.856274 | 2019-02-06T13:54:29 | 2019-02-06T13:54:29 | 164,430,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 2.1.5 on 2019-01-07 13:52
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('url_tester', '0003_auto_20190107_1551'),
]
operations = [
migrations.AlterField(
model_name='url',
name='name',
... | [
"eduard.erja@gmail.com"
] | eduard.erja@gmail.com |
e6643bc565b34a1eaed02f17519df6cbdb69e7a0 | 23fddc940a266c2d1d0e0b1687c36cdbcc9d54d9 | /shared/data_collection/scribeutil.py | 94a572426b9ecabc72323e87e3a64c7180ca6ad3 | [] | no_license | Cuick/traversing | 210fcfb1c780037de59343fffeb4fa4d3f2eae32 | c78982580af7f63c8bff4dcb37005b7f7c682b5b | refs/heads/master | 2021-01-10T17:38:37.899460 | 2016-11-18T06:06:55 | 2016-11-18T06:06:55 | 55,397,540 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | # -*- coding:utf-8 -*-
"""
created by server on 14-8-27下午4:16.
"""
try:
from scribe import scribe
from thrift.transport import TTransport, TSocket
from thrift.protocol import TBinaryProtocol
SCRIBE_AVAILABLE = True # 检查scribe相关库正常,不要影响业务系统
except ImportError, e:
print '<------->'
print e
... | [
"zxzxck@163.com"
] | zxzxck@163.com |
bd9632f645cbdef8be36b04fe17ef06be5f9b4d1 | 280079e18b506ec7ed85a49587e10db795947922 | /accounting/libs/templatetags/introspection_filters.py | d7e06cce56fa0b40cd5dd3cd0442d8fda47ee202 | [
"MIT"
] | permissive | Abdur-rahmaanJ/django-accounting | 6a4d30fd0070f4b11b50490a801b0dece58dd474 | 4ec094544873843722db964ea9283a7947c4ba32 | refs/heads/master | 2020-03-22T17:02:47.120624 | 2018-07-10T10:49:19 | 2018-07-10T10:49:19 | 140,368,614 | 0 | 0 | MIT | 2018-07-10T10:49:20 | 2018-07-10T02:52:28 | Python | UTF-8 | Python | false | false | 920 | py | from django import template
from django.forms import ModelForm, BaseFormSet
from django.db.models import Model
from django_select2.fields import (
AutoModelSelect2Field,
AutoModelSelect2MultipleField)
register = template.Library()
@register.filter
def get_model_verbose_name(instance):
if isinstance(ins... | [
"dulacpier@gmail.com"
] | dulacpier@gmail.com |
f8619e156fdfa736e2afaac94ee691bc3ff1978b | e473f04f5dd4e40393bc1047e6f326e589204530 | /law/notification.py | 880ccec0117a02ee59dc937376dc76f77458dd42 | [
"BSD-3-Clause"
] | permissive | yrath/law | bc9848aa1238538af7cb9a335e0fa9fad90bbecf | 807306d6b2113e6c546c01fcaa134bba551b4759 | refs/heads/master | 2020-07-15T11:01:30.517171 | 2019-12-12T11:56:41 | 2019-12-12T11:56:41 | 205,548,161 | 0 | 0 | BSD-3-Clause | 2019-08-31T13:29:23 | 2019-08-31T13:29:22 | null | UTF-8 | Python | false | false | 1,203 | py | # coding: utf-8
"""
Notification functions.
"""
__all__ = ["notify_mail"]
import logging
from law.config import Config
from law.util import send_mail
logger = logging.getLogger(__name__)
def notify_mail(title, message, recipient=None, sender=None, smtp_host=None, smtp_port=None,
**kwargs):
"""
... | [
"marcelrieger@me.com"
] | marcelrieger@me.com |
fc7769537197f0cb473bfbe371228ddeb601c337 | 3fbda19ca67e6fe8dfd25cd3f9e220b67c2f1260 | /python网络数据采集/my_爬虫_进阶_之路/scrapy框架/my_spiders/电商项目集合/阿里1688_淘宝_天猫_京东_折800_卷皮_拼多多_蜜芽_蘑菇街_楚楚街_唯品会_聚美优品/my_flask_server/pinduoduo_parse.py | 55eceba39cb3b7fab6e469439a871c226149f745 | [] | no_license | backchenlin/python | dae4f79a84b12c638a48a700060fdc771c21a912 | f6bc9dc5698ab273f8bda3c3f6669f0989fcc2c0 | refs/heads/master | 2020-03-22T16:12:19.667931 | 2018-07-09T09:11:15 | 2018-07-09T09:11:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,300 | py | # coding:utf-8
'''
@author = super_fazai
@File : pinduoduo_parse.py
@Time : 2017/11/24 14:58
@connect : superonesfazai@gmail.com
'''
"""
拼多多页面采集系统(官网地址: http://mobile.yangkeduo.com/)
由于拼多多的pc站,官方早已放弃维护,专注做移动端,所以下面的都是基于移动端地址进行的爬取
直接requests开始时是可以的,后面就只返回错误的信息,估计将我IP过滤了
"""
import time
from random import randint... | [
"superonesfazai@gmail.com"
] | superonesfazai@gmail.com |
fc087e51acf67938797c340946b8cda20e017f72 | e65a4dbfbfb0e54e59787ba7741efee12f7687f3 | /archivers/py-brotli/files/patch-setup.py | 9f97287a706fdfc4c9aa658f8632f588dd3bf945 | [
"BSD-2-Clause"
] | permissive | freebsd/freebsd-ports | 86f2e89d43913412c4f6b2be3e255bc0945eac12 | 605a2983f245ac63f5420e023e7dce56898ad801 | refs/heads/main | 2023-08-30T21:46:28.720924 | 2023-08-30T19:33:44 | 2023-08-30T19:33:44 | 1,803,961 | 916 | 918 | NOASSERTION | 2023-09-08T04:06:26 | 2011-05-26T11:15:35 | null | UTF-8 | Python | false | false | 3,962 | py | --- setup.py.orig 2020-08-27 06:24:08 UTC
+++ setup.py
@@ -25,7 +25,7 @@ CURR_DIR = os.path.abspath(os.path.dirname(os.path.rea
def get_version():
""" Return BROTLI_VERSION string as defined in 'common/version.h' file. """
- version_file_path = os.path.join(CURR_DIR, 'c', 'common', 'version.h')
+ version_... | [
"sunpoet@FreeBSD.org"
] | sunpoet@FreeBSD.org |
257fdf4bf5c379f7a73f67693f5512683c6c3822 | 1a6cbe035adb81fea66615323a836327d06f9e72 | /year2020/run.py | 9cf6233087187489d27412c4e5c11f9fc5271ba4 | [] | no_license | ecurtin2/advent-of-code | a2607d857408d722b07d4cfc66855edcd019cda7 | 216db926c5bab9bf1ec3cac2aa912c1a2ff70d6c | refs/heads/main | 2022-12-15T10:06:51.202608 | 2022-12-14T17:28:15 | 2022-12-14T17:28:15 | 160,612,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | import importlib
from dataclasses import dataclass
from pathlib import Path
from statistics import mean, stdev
from time import time
from typing import Any, List, Optional, Tuple, get_type_hints
import cattr
import click
AVAILABLE_DAYS: List[int] = sorted(
int(str(p.name).replace("d", "").replace(".py", ""))
... | [
"ecurtin2@illinois.edu"
] | ecurtin2@illinois.edu |
b3066063ef59fcb92ab7a88089fc8ce41b881999 | bd1db30fd3c593e8dc4f2e21de630668456ed28f | /educational-resources/robotics/gym-gazebo-master/examples/turtlebot/circuit2_turtlebot_lidar_sarsa.py | ed521957b28cc965d5848020afaef371190c0b89 | [
"MIT",
"GPL-3.0-only"
] | permissive | vicb1/miscellaneous-notes | c50d759729b4d0067b3c4cb51a69350db5a941b9 | eb63641a8156a4dcd78924b5d0f6f0618479ceaf | refs/heads/master | 2023-05-11T06:04:03.254582 | 2023-05-09T12:34:18 | 2023-05-09T12:34:18 | 227,648,115 | 1 | 0 | MIT | 2022-12-11T17:00:50 | 2019-12-12T16:20:38 | Python | UTF-8 | Python | false | false | 2,709 | py | #!/usr/bin/env python
import gym
from gym import wrappers
import gym_gazebo
import time
import numpy
import random
import time
import liveplot
import sarsa
if __name__ == '__main__':
env = gym.make('GazeboCircuit2TurtlebotLidar-v0')
outdir = '/tmp/gazebo_gym_experiments'
env = gym.wrappers.Monitor(env,... | [
"vbajenaru@gmail.com"
] | vbajenaru@gmail.com |
21fcf9c6612d4c6ab1f4b9d492db8700a0d3e51e | 1bb3c20ce5a53889eac280826d7d54194c7db33f | /string/1152.py | cba6aa371197ec76347749417139c13963d48e74 | [] | no_license | yejiiha/BaekJoon_step | bd2c040597766613985ae8d3a943999cb35d6671 | 3eaedbb832f14c51f3fb990e7e140f00d732df1e | refs/heads/master | 2023-03-24T06:36:28.851139 | 2021-03-21T14:15:40 | 2021-03-21T14:15:40 | 285,825,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | string = list(input().split())
print(len(string))
| [
"1126yezy@gmail.com"
] | 1126yezy@gmail.com |
6d2738154c6822ac0a29f7528ce4dbd6d67416dc | 9db0c5f0a655ec142a318a906c5272845f7d928a | /blog/blog/views.py | 2f251ce19c493fd923c1f6b164b08db8d7a27349 | [] | no_license | SeriousMarc/my-blog | 0f0b3a1538d42219defd3e61286d919736928663 | aeeef2e9c6fe617d39464c569244327c8e8f995f | refs/heads/master | 2021-04-29T21:17:59.924803 | 2018-02-15T20:51:58 | 2018-02-15T20:51:58 | 121,612,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from django.shortcuts import render
def homepage(request):
return render(request, 'base_layout.html')
| [
"medivhbox@gmail.com"
] | medivhbox@gmail.com |
52cff6065e5fb915053715a160ce650b4c2235d8 | 923f9270a12be35fdd297d8f27e522c601e94eab | /doc/slides/src/decay/src-decay/decay_mod_unittest.py | 807c314773b07bb8b1fb368b785a75891694aec8 | [] | no_license | t-bltg/INF5620 | a06b6e06b6aba3bc35e933abd19c58cd78584c1f | d3e000462302839b49693cfe06a2f2df924c5027 | refs/heads/master | 2021-05-31T00:41:41.624838 | 2016-03-22T09:29:00 | 2016-03-22T09:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,015 | py | import numpy as np
import matplotlib.pyplot as plt
import sys
from math import log
def solver(I, a, T, dt, theta):
"""
Solve u'=-a*u, u(0)=I, for t in (0,T] with steps of dt.
>>> u, t = solver(I=0.8, a=1.2, T=4, dt=0.5, theta=0.5)
>>> for t_n, u_n in zip(t, u):
... print 't=%.1f, u=%.14f' % (... | [
"hpl@simula.no"
] | hpl@simula.no |
0545fda410ccd767130446d92bd5540e4debe9be | c4c9fd6bb97f8d0d16de36f67365b76278c93959 | /proj/proj03/tests/q1_10.py | fa4a5049dd509f6c35ecf0afb423b3be88f203d0 | [] | no_license | ds-connectors/DATA-88-EconModels-sp20 | d71795dad299031add94e52a60206b5840b144c7 | 6a8297cf20f8afe8ef52e4bfa93aca3cfff1afc5 | refs/heads/master | 2023-08-30T03:47:51.417760 | 2020-04-27T19:35:16 | 2020-04-27T19:35:16 | 231,190,728 | 1 | 0 | null | 2023-08-14T21:55:19 | 2020-01-01T08:09:44 | Jupyter Notebook | UTF-8 | Python | false | false | 447 | py | test = { 'name': 'q1_10',
'points': 1,
'suites': [ { 'cases': [ {'code': '>>> -4000 <= default_beta <= -3000\nTrue', 'hidden': False, 'locked': False},
{'code': '>>> 51000 <= default_alpha <= 52000\nTrue', 'hidden': False, 'locked': False}],
'scor... | [
"cpyles@berkeley.edu"
] | cpyles@berkeley.edu |
3a0dcd089e8fecfa5fd81aa3848aa8220b1e2507 | 0e820627e68413aebe27fbc32dde66a3c99651d3 | /flamingo/core/parser.py | 186d7d11e2fd1b1da243823e9c6d051bca7a2bdc | [
"Apache-2.0"
] | permissive | ejoerns/flamingo | 17de116008561a4a64613b2b6528eb6d52706281 | 1d61c99c9ad34dd0a2a652f80783226051e07238 | refs/heads/master | 2020-04-11T02:53:47.295752 | 2018-12-14T11:17:23 | 2018-12-14T11:37:39 | 161,460,547 | 0 | 0 | Apache-2.0 | 2018-12-12T09:00:34 | 2018-12-12T09:00:34 | null | UTF-8 | Python | false | false | 2,022 | py | from configparser import ConfigParser, Error as ConfigParserError
from io import StringIO
import os
from flamingo.core.errors import FlamingoError
class ParsingError(FlamingoError):
pass
class ContentParser:
FILE_EXTENSIONS = []
def __init__(self):
self.configparser = ConfigParser(interpolatio... | [
"f.scherf@pengutronix.de"
] | f.scherf@pengutronix.de |
c29e057c72aa360392571f06201dd466d58bf1fa | 79f1e7932c27eb01483f8764720c672242052e1f | /training_horovod_single_aa.py | 4d7e93d81b64226a254dda09ec2813e09755c295 | [] | no_license | pk-organics/uniparc_modeling | 3b16ae5b85dc178fdcab4be3b4ddbdab02c80897 | ab9faaad00c20416ea2ac86f6f91b83f86ffb7a4 | refs/heads/master | 2023-02-13T19:58:29.841889 | 2019-12-05T18:53:05 | 2019-12-05T18:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,457 | py | import os
import argparse
parser = argparse.ArgumentParser(description='BERT model training')
parser.add_argument('--modelName', default='bert', help='model name for directory saving')
parser.add_argument('--batchSize', type=int, default=20, help='batch size per gpu')
parser.add_argument('--stepsPerEpoch', type=int, d... | [
"peterc.stjohn@gmail.com"
] | peterc.stjohn@gmail.com |
e312d6d3314dc67c99a82a7d258f106f69278143 | c70aa626cb96e5a62b8f4789c6bb885229375134 | /ProjectOne/card.py | 4cf7f030878e1e681a71fdbc247088b3836ae994 | [] | no_license | BaranAkcakaya/PythonProject | 279b62907ba9598199fdf1f7642bfb3af9aa98be | 486389196b22df7134b02190de636c949fbb08a1 | refs/heads/main | 2023-01-08T14:51:14.735863 | 2020-11-02T10:34:15 | 2020-11-02T10:34:15 | 309,336,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #SUIT
HEARTS = 0 #RED
DIAMONDS = 1 #RED
CLUBS = 2 #BLACK
SPADES = 3 #BLACk
#RANK
TWO = 0
THREE = 1
FOUR = 2
FIVE = 3
SIX = 4
SEVEN = 5
EIGHT = 6
NINE = 7
TEN = 8
JACK = 9
QUEEN = 10
KING = 11
ACE = 12
def get_suit(card):
return int((card % 4) - 1) #Suit 4 oldugu için... | [
"noreply@github.com"
] | BaranAkcakaya.noreply@github.com |
ab34f34aceab1369242bf0c820e0d61023b7378e | 84c7ad9116bfe7a81541520cdf493d9788881605 | /storedata_ita2.py | 5a7cc14dfb7c9932251030ba349b92bcff519c32 | [] | no_license | igorsowa9/trialsites | 3b32edc81fa03631cb864226a137f3b80f3aa9e0 | 900439e188386a34253fdc176d74b473fad4c176 | refs/heads/master | 2018-10-19T09:22:35.012649 | 2018-09-26T10:43:11 | 2018-09-26T10:43:11 | 119,725,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,013 | py | import sys
import paho.mqtt.client as mqttcli
import paho.mqtt.publish as publish
import time
import sys, os
from datetime import datetime
import psycopg2
import json
import logging
import shutil
from multiprocessing import Pool
from settings import *
def db_connection(dbname):
try:
global conn
... | [
"igorsowa9@gmail.com"
] | igorsowa9@gmail.com |
701c7372e4483add670bc094a28089806a2fd902 | 0dfa97730b9ad9c077868a045d89cc0d4b09f433 | /tests/integration/goldens/redis/samples/generated_samples/redis_generated_redis_v1_cloud_redis_create_instance_sync.py | d2e83c8ed0211cc443a3c114985748bbc9997b66 | [
"Apache-2.0"
] | permissive | anukaal/gapic-generator-python | 546c303aaf2e722956133b07abb0fb1fe581962f | e3b06895fa179a2038ee2b28e43054e1df617975 | refs/heads/master | 2023-08-24T23:16:32.305652 | 2021-10-09T15:12:14 | 2021-10-09T15:12:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,773 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | anukaal.noreply@github.com |
6062e7d3554b25aae792e7e5493c0fe5f810af21 | f8da830331428a8e1bbeadf23345f79f1750bd98 | /msgraph-cli-extensions/beta/security_beta/azext_security_beta/vendored_sdks/security/operations/_security_ti_indicator_operations.py | c12d0da4351c6731bc5f09bbd3d7e8106d09835e | [
"MIT"
] | permissive | ezkemboi/msgraph-cli | e023e1b7589461a738e42cbad691d9a0216b0779 | 2ceeb27acabf7cfa219c8a20238d8c7411b9e782 | refs/heads/main | 2023-02-12T13:45:03.402672 | 2021-01-07T11:33:54 | 2021-01-07T11:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,263 | 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 ... | [
"japhethobalak@gmail.com"
] | japhethobalak@gmail.com |
4b52610a596acae2c84caeeeab48b5fe380dafce | c4a8f3200add74f4c42fe34b2f3b284d6249a481 | /sciwx/demo/mesh2_mesh_demo.py | 076d254d04a5dd678a223fd6c388ca83397f2f19 | [
"BSD-2-Clause"
] | permissive | pengguanjun/imagepy | 1908e83a7ec2a6472524f443aefeaade12c2b649 | d96ef98c2c3e93d368131fd2753bce164e1247cd | refs/heads/master | 2022-12-15T11:48:04.841436 | 2020-09-14T11:59:49 | 2020-09-14T11:59:49 | 275,398,356 | 1 | 0 | NOASSERTION | 2020-06-27T15:18:59 | 2020-06-27T15:18:58 | null | UTF-8 | Python | false | false | 1,249 | py | import sys, wx
sys.path.append('../../')
from sciwx.mesh import Canvas3D, MCanvas3D, MeshSet
from sciapp.util import surfutil
from sciapp.object import Surface
from sciwx.mesh import Canvas3DFrame, Canvas3DNoteBook, Canvas3DNoteFrame
vts, fs, ns, cs = surfutil.build_ball((100,100,100),50, (1,0,0))
def add_with_para(... | [
"imagepy@sina.com"
] | imagepy@sina.com |
c996297347ac933fba624d954a3d78dd294d33ff | 75ec986d34d5391d46d6469c513626f69f5d978d | /Incepator/cycles/cycles3.py | e733dc4092d410e8ac117846f3fbe5203f2b7e44 | [] | no_license | CatrunaMarius/python | d9f8dc221458e4b65c3f801daf3b59aa2b946358 | d063bffb4eafa56ac1e205c2d39fc893ab50e992 | refs/heads/master | 2020-04-24T05:23:22.756002 | 2020-01-06T11:56:12 | 2020-01-06T11:56:12 | 171,703,482 | 0 | 0 | null | 2019-02-20T16:12:39 | 2019-02-20T15:59:08 | null | UTF-8 | Python | false | false | 150 | py | #multiplication table (while)
i=1
while i<10:
j=1
while j<10:
print("%4d" % (i*j), end="")
j+=1
print()
i+=1
| [
"noreply@github.com"
] | CatrunaMarius.noreply@github.com |
bc89c88a357f13ea1706d544aa08b81f6fb6036f | 1bad7d2b7fc920ecf2789755ed7f44b039d4134d | /A other/エイシング プログラミング コンテスト 2020/B.py | 77e2b68e5bde2a0361da7ee0c237f62e8c1262a4 | [] | 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 | 149 | py | n = int(input())
a = list(map(int, input().split()))
ans = 0
for i in range(n):
if (i+1) % 2 == 1 and a[i] % 2 == 1:
ans += 1
print(ans)
| [
"kanekyohunter.0314@softbank.ne.jp"
] | kanekyohunter.0314@softbank.ne.jp |
dffe88ae437ac28f4a3898604f43f1694690b380 | 8ee8fe3c2acea497a85428bfb3dfde19e58b2bc3 | /test-examples/range_one_image.py | 5b8657935e4171ac7ebfc64c064995200cabb8e0 | [
"BSD-3-Clause"
] | permissive | sofroniewn/image-demos | a6e46f08fd4ce621aa96d6b6378b50f63ac2b381 | 2eeeb23f34a47798ae7be0987182724ee3799eb8 | refs/heads/master | 2022-11-02T23:50:23.098830 | 2022-10-30T04:38:19 | 2022-10-30T04:38:19 | 179,378,745 | 11 | 1 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | """
Test adding an image with a range one dimensions.
There should be no slider shown for the axis corresponding to the range
one dimension.
"""
import numpy as np
from skimage import data
import napari
with napari.gui_qt():
viewer = napari.view_image(np.random.random((4, 4, 1, 30, 40)))
| [
"sofroniewn@gmail.com"
] | sofroniewn@gmail.com |
d15b12f713424c1f85485dd0dbc9c96a2b451d2c | 63f443df12960b3eda3ac23e4a2c343b2c8a04f8 | /text/1.py | 1debf0c03aa5d4f7cbddfe0b3a77a13991bcc068 | [] | no_license | persontianshuang/crapy500m | 7c30e101da6f578c475a63117fa062000ce9460f | 0e725f037a460fc01926000e023d4f5dbb6c1f4e | refs/heads/master | 2021-08-09T02:54:49.102719 | 2017-11-12T00:52:37 | 2017-11-12T00:52:37 | 102,925,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import os
file="C:\\Users\Administrator\Desktop\不侵权\沙拉盘不侵权-38.xls"
with open(file, 'r',encoding='gbk') as f:
lines = f.readlines()
for line in lines:
line = line
print(line)
| [
"mengyouhan@gmail.com"
] | mengyouhan@gmail.com |
cecd22f5838eed05a65114d0526a5383ebf2af83 | fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd | /build/config/linux/pkg-config.py | 32068ada80b0b4a41d1a52a4c379f1fec68a3456 | [
"BSD-3-Clause"
] | permissive | wzyy2/chromium-browser | 2644b0daf58f8b3caee8a6c09a2b448b2dfe059c | eb905f00a0f7e141e8d6c89be8fb26192a88c4b7 | refs/heads/master | 2022-11-23T20:25:08.120045 | 2018-01-16T06:41:26 | 2018-01-16T06:41:26 | 117,618,467 | 3 | 2 | BSD-3-Clause | 2022-11-20T22:03:57 | 2018-01-16T02:09:10 | null | UTF-8 | Python | false | false | 7,689 | py | #!/usr/bin/env python
# Copyright (c) 2013 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.
import json
import os
import subprocess
import sys
import re
from optparse import OptionParser
# This script runs pkg-config, opti... | [
"jacob-chen@iotwrt.com"
] | jacob-chen@iotwrt.com |
69743a42fb64f06773a238d89bfac39069777e78 | 39d4504ec1da8975fac526d6801b94f4348b6b61 | /research/object_detection/dataset_tools/create_oid_tf_record.py | c5f409af4da470ff0c9da20f6a8793306a1016f3 | [
"Apache-2.0"
] | permissive | vincentcheny/models | fe0ff5888e6ee00a0d4fa5ee14154acdbeebe7ad | afb1a59fc1bc792ac72d1a3e22e2469020529788 | refs/heads/master | 2020-07-23T21:38:24.559521 | 2019-11-15T07:50:11 | 2019-11-15T07:50:11 | 207,712,649 | 1 | 0 | Apache-2.0 | 2019-09-11T03:12:31 | 2019-09-11T03:12:31 | null | UTF-8 | Python | false | false | 5,315 | py | # Copyright 2017 The TensorFlow Authors. 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... | [
"1155107977@link.cuhk.edu.hk"
] | 1155107977@link.cuhk.edu.hk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.