blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
618b841fcfc039f249207e9c00bb696569adcec0
b76615ff745c6d66803506251c3d4109faf50802
/pyobjc-framework-Quartz/PyObjCTest/test_ciimage.py
ddc6fb8639a7b03d6237f2d500ceece672659c4f
[ "MIT" ]
permissive
danchr/pyobjc-git
6ef17e472f54251e283a0801ce29e9eff9c20ac0
62b787fddeb381184043c7ff136f1c480755ab69
refs/heads/master
2021-01-04T12:24:31.581750
2020-02-02T20:43:02
2020-02-02T20:43:02
240,537,392
0
0
null
null
null
null
UTF-8
Python
false
false
4,822
py
from PyObjCTools.TestSupport import * from Quartz.QuartzCore import * class TestCIImage(TestCase): def testConstants(self): self.assertIsInstance(kCIFormatARGB8, (int, long)) self.assertIsInstance(kCIFormatBGRA8, (int, long)) self.assertIsInstance(kCIFormatRGBA8, (int, long)) self....
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
49896efbfbf5125a76ebc1139f08b98637b30f98
3c9e5a16b1625faf82e2e714aff119ef49033d50
/customizer_lib_test.py
a1dc14bb23d553196151618df1ef0ac922d752f9
[ "Apache-2.0" ]
permissive
tcprescott/pyz3r
144ef0dacec1ed76e10df6a8acb350fb843e2847
fb90559650098090a9e800ca3d4b3d337473942a
refs/heads/master
2023-09-05T09:26:56.927172
2023-09-05T04:45:37
2023-09-05T04:45:37
163,603,582
24
8
Apache-2.0
2023-08-29T03:08:51
2018-12-30T17:02:35
Python
UTF-8
Python
false
false
1,510
py
import json from pyz3r import alttpr, romfile from pyz3r.customizer import customizer import asyncio import config async def generation_test(): f = open('input/customizer-settings.json', "r") customizer_settings = json.loads(f.read()) f.close() settings = customizer.convert2settings(cus...
[ "tcprescott@gmail.com" ]
tcprescott@gmail.com
97bcad324e2ad720f2228cff063371ed2aa317cb
2af6a5c2d33e2046a1d25ae9dd66d349d3833940
/res/scripts/client/gui/social_network_login/__init__.py
cf3b8fe42682df9df8b03290c445738212a99ed3
[]
no_license
webiumsk/WOT-0.9.12-CT
e6c8b5bb106fad71b5c3056ada59fb1aebc5f2b2
2506e34bd6634ad500b6501f4ed4f04af3f43fa0
refs/heads/master
2021-01-10T01:38:38.080814
2015-11-11T00:08:04
2015-11-11T00:08:04
45,803,240
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
403
py
# 2015.11.10 21:29:49 Střední Evropa (běžný čas) # Embedded file name: scripts/client/gui/social_network_login/__init__.py from Bridge import Bridge __all__ = ['Bridge'] # okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\client\gui\social_network_login\__init__.pyc # decompiled 1 files: 1 okay, 0 fa...
[ "info@webium.sk" ]
info@webium.sk
89c40d3c09a3e18d77926f5186f793b4f2fe45fe
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/deploy_write_f/deployment-config_delete.py
4ab222c7b4f05c1f80fc3a720918da1d4a2786bc
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
785
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
e3e1b34e35154cd6fc884b74639da59ff289b015
d62cbada00caf2f7784066014a87e18052d6fa9f
/darksite/account/test/management/commands/test_createadmin.py
9a2907e594e0811c6cbc99a2d149a418513921fe
[ "MIT" ]
permissive
UNCDarkside/DarksiteAPI
d6653990bce6b78db78efc672fde2c0ff20e4597
a4bc1f4adee7ecfba840ad45da22513f88acbbd0
refs/heads/master
2020-04-11T17:36:19.062963
2019-01-11T03:42:31
2019-01-11T03:42:31
161,967,336
0
0
MIT
2019-10-22T22:09:50
2018-12-16T04:23:27
Python
UTF-8
Python
false
false
1,436
py
from django.contrib.auth import get_user_model from account.management.commands.createadmin import Command def test_handle_new_user(db, env): """ If the appropriate environment variables are present and the corresponding user doesn't exist in the database yet, they should be created. """ env[...
[ "chathan@driehuys.com" ]
chathan@driehuys.com
38a89e1de7c1b0752033741c6976754617f667f0
0513b26a9a591847e804e8fe42a4108341b6998d
/data_loader/MSRVTT_dataset.py
6056f0a156ae7192d4c0ac69f5b01f1e9bb060f4
[]
no_license
MachineLearning-AI/collaborative-experts
b4e7abfc5635832e63f22c26c01b9ad8b2893d01
d361f1acc271ddab53c02da72b9bb385a8fb0542
refs/heads/master
2020-06-29T21:43:41.099828
2019-08-02T17:52:52
2019-08-02T17:52:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,089
py
import time from pathlib import Path from os.path import join as pjoin from utils.util import memcache from base.base_dataset import BaseDataset class MSRVTT(BaseDataset): def configure_train_test_splits(self, split_name): self.restrict_test_captions = None if split_name == "miech": #...
[ "albanie@robots.ox.ac.uk" ]
albanie@robots.ox.ac.uk
75dfd759411f711a3e89cab34cf1428959b30e94
f2acfe325ee64b239ba68e8a2474d78f89f274bd
/perfdaily/eventing.py
191391e69d2928efcf05964f295efde7ce4412fd
[ "Apache-2.0" ]
permissive
couchbase/perfrunner
d12596ff3c2a53b08c488cd48f0c72475cc59c49
e76fd55bf1c733adf9988dee166da36304c36e72
refs/heads/master
2023-08-30T18:14:01.731809
2023-08-30T12:13:49
2023-08-30T12:14:32
12,786,971
23
44
Apache-2.0
2023-08-02T01:56:41
2013-09-12T15:17:58
Python
UTF-8
Python
false
false
310
py
from perfdaily import DailyTest from perfrunner.tests.eventing import FunctionsThroughputTest as _FunctionsTT from perfrunner.tests.eventing import TimerThroughputTest as _TimersTT class FunctionsThroughputTest(DailyTest, _FunctionsTT): pass class TimerThroughputTest(DailyTest, _TimersTT): pass
[ "pavel.paulau@gmail.com" ]
pavel.paulau@gmail.com
70f627c59e471513500ce286db967bfb3cd979f5
888fff9d780ae0b3eaa5a6baf08fb02bd77e2858
/scripts/scripts/testing/automations/batch/united_kingdom.py
76fc2b4016d871050267a83e4a77ce4880daaa87
[]
no_license
Naty1209/Covid
d3dfa3a96e4df8d308703d873249a5817209dc2e
13ae0b333dc432733e00d4de2ef91b4fe6f72c21
refs/heads/master
2023-06-08T06:35:42.250992
2021-06-27T09:59:04
2021-06-27T09:59:04
380,702,808
1
0
null
null
null
null
UTF-8
Python
false
false
4,437
py
from uk_covid19 import Cov19API from typing import Union import pandas as pd # MAX_DATE_FILL_PILLAR_ONE_TWO: the max date where it is ok to fill NA # values of cumVirusTests/newVirusTests with # cumPillarOneTwoTestsByPublishDate/newPillarOneTwoTestsByPublishDate. # Prior to (and including this date), # cumPill...
[ "78781439+Naty1209@users.noreply.github.com" ]
78781439+Naty1209@users.noreply.github.com
28ecd5a82e6ee7326749fccdb39cac19d0933d4d
96dcea595e7c16cec07b3f649afd65f3660a0bad
/homeassistant/components/sensorpush/config_flow.py
9913b7f7b09a82f6a7295baa5592432e0dc70441
[ "Apache-2.0" ]
permissive
home-assistant/core
3455eac2e9d925c92d30178643b1aaccf3a6484f
80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743
refs/heads/dev
2023-08-31T15:41:06.299469
2023-08-31T14:50:53
2023-08-31T14:50:53
12,888,993
35,501
20,617
Apache-2.0
2023-09-14T21:50:15
2013-09-17T07:29:48
Python
UTF-8
Python
false
false
3,549
py
"""Config flow for sensorpush integration.""" from __future__ import annotations from typing import Any from sensorpush_ble import SensorPushBluetoothDeviceData as DeviceData import voluptuous as vol from homeassistant.components.bluetooth import ( BluetoothServiceInfoBleak, async_discovered_service_info, ) ...
[ "noreply@github.com" ]
home-assistant.noreply@github.com
f47dd108cda5ef5838c9072880fa6c1ef5a8a47f
23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6
/rootfs/usr/share/pyshared/gwibber/microblog/util/exceptions.py
4444e4d179036a746372975ae1dd691db9b6af60
[]
no_license
xinligg/trainmonitor
07ed0fa99e54e2857b49ad3435546d13cc0eb17a
938a8d8f56dc267fceeb65ef7b867f1cac343923
refs/heads/master
2021-09-24T15:52:43.195053
2018-10-11T07:12:25
2018-10-11T07:12:25
116,164,395
0
0
null
null
null
null
UTF-8
Python
false
false
2,334
py
import log import os, subprocess import xdg, time import gettext from gettext import lgettext as _ if hasattr(gettext, 'bind_textdomain_codeset'): gettext.bind_textdomain_codeset('gwibber','UTF-8') gettext.textdomain('gwibber') class GwibberError(Exception): """Base class for exceptions in gwibber.""" pas...
[ "root@xinli.xinli" ]
root@xinli.xinli
0785d799aa478d7a1d0c0f9c2c2ac300f4c1d5c5
bc233c24523f05708dd1e091dca817f9095e6bb5
/bitmovin_api_sdk/common/__init__.py
8478cd2326b1e6865bb6639a15a93c6797d316fa
[ "MIT" ]
permissive
bitmovin/bitmovin-api-sdk-python
e3d6cf8eb8bdad62cb83ec77c0fc4950b06b9cdd
b0860c0b1be7747cf22ad060985504da625255eb
refs/heads/main
2023-09-01T15:41:03.628720
2023-08-30T10:52:13
2023-08-30T10:52:13
175,209,828
13
14
MIT
2021-04-29T12:30:31
2019-03-12T12:47:18
Python
UTF-8
Python
false
false
469
py
from bitmovin_api_sdk.common.api_client import ApiClient from bitmovin_api_sdk.common.base_api import BaseApi from bitmovin_api_sdk.common.bitmovin_api_logger_base import BitmovinApiLoggerBase from bitmovin_api_sdk.common.bitmovin_api_logger import BitmovinApiLogger from bitmovin_api_sdk.common.bitmovin_error import Bi...
[ "openapi@bitmovin.com" ]
openapi@bitmovin.com
9f1f7d190cfef9fad59a57f28776e8f250550441
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_trumpets.py
3fb1ca4439db9fc8358489319b42160d67c15e55
[ "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._trumpet import _TRUMPET #calss header class _TRUMPETS(_TRUMPET, ): def __init__(self,): _TRUMPET.__init__(self) self.name = "TRUMPETS" self.specie = 'nouns' self.basic = "trumpet" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
59a33a73235978c6addfdb5f20d0f7b68c7f4876
4b2703bfbb7e1064336f18d69387189a07250d9c
/malaya/num2word.py
7f49964874e157ab38fa23b0193e6d49189a9a0f
[ "MIT" ]
permissive
keyreply/Malaya
e4a6f54b73744f808182602f49fe6c907caad59f
579f8e69001bae9f5375fed28a01af1ec5114af9
refs/heads/master
2020-03-28T15:23:22.865849
2018-09-13T01:28:50
2018-09-13T01:28:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,672
py
from __future__ import print_function, unicode_literals BASE = {0: [], 1: ["satu"], 2: ["dua"], 3: ["tiga"], 4: ["empat"], 5: ["lima"], 6: ["enam"], 7: ["tujuh"], 8: ["lapan"], 9: ["sembilan"]} TENS_TO = {3: "ribu", 6: "juta", ...
[ "husein.zol05@gmail.com" ]
husein.zol05@gmail.com
94e9e269fc55308ac1114e1560c46830800419b8
8eb91c9987a057ce3c41c8443d83277218843773
/Game/Savings/save.py
7485309b5f3e564824fa13a501d862261dc93e07
[]
no_license
Larionov0/Group1-OrderOfHeroes
468d6a9eb1cc751780f918e10492e047df459954
5cb052c46f94938decd9a01baef0b0b4dda179d5
refs/heads/master
2023-02-19T06:54:41.276498
2021-01-24T13:17:57
2021-01-24T13:17:57
311,980,998
0
1
null
null
null
null
UTF-8
Python
false
false
276
py
import pickle FILENAME = 'data.bin' def save_data(data, filename=FILENAME): with open(filename, 'wb') as file: pickle.dump(data, file) def load_data(filename=FILENAME): with open(filename, 'rb') as file: data = pickle.load(file) return data
[ "larionov1001@gmail.com" ]
larionov1001@gmail.com
6eef33c8a1876af0034adb1422e50dc13e109928
1d27decdb5207616837f03a36741947a46e8852d
/py/hscTools/pipe_test/testMakeWcs.py
e727ae39cf396a2ec6ae444c0803f61f16d40353
[]
no_license
dr-guangtou/hs_hsc
12d7a83ee9898f6d9fb5cf5dc85fa682d50578e8
865abc0ba5337d3a085efa99b87ebfcfdd9710af
refs/heads/master
2021-01-17T03:20:03.900050
2019-06-19T05:26:34
2019-06-19T05:26:34
23,053,990
0
2
null
2015-12-02T15:52:47
2014-08-18T00:47:48
Python
UTF-8
Python
false
false
6,402
py
#!/usr/bin/env python # # LSST Data Management System # Copyright 2008, 2009, 2010 LSST Corporation. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
[ "dr.guangtou@gmail.com" ]
dr.guangtou@gmail.com
5a95f11678d2ba35d7db207c4a1081d03e252da8
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-rabbitmq/huaweicloudsdkrabbitmq/v2/model/show_rabbit_mq_project_tags_response.py
5d24c3f05fd6dafa6aec16fc52933de63019def5
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,383
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class ShowRabbitMqProjectTagsResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
347e7b7a8ae9d1f1c229bf0ab3cfd87c9fa48b39
52378764c1326051dfc2d5fcf65a31487261d80a
/e3g.py
efc660d1e57f588bb3bb7b82b8a18a8ed5482afa
[]
no_license
MartinCarli/LB-F2
337334811e2a539f7a65540ab5394065b2e836e9
8886564582a73a2f885b1150159583b939efdbc9
refs/heads/main
2023-02-28T00:19:44.145520
2021-02-01T17:28:46
2021-02-01T17:28:46
334,257,190
0
0
null
null
null
null
UTF-8
Python
false
false
3,294
py
class Calcolatrice: def __init__(self, a, b): self.a=a self.b=b #somma def somma(self): try: float(self.a) float(self.b) except Exception as e: print('i valori inseriti non sono numeri:{}'.format(e)) print('somma:{}'.fo...
[ "replituser@example.com" ]
replituser@example.com
b2c295106f247d6cfa4a12e48b97de84c9019f3e
bc167f434158921bcf2c678155c5cdfec1c9b0c9
/PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav57.py
3c672732994b4ba81a9079cccfb95fbf689ebd36
[]
no_license
s0217391/DifferentProjects
6450efc89c64ecd21b86c705737e89e5c69433a6
7f4da153660817b6cbf72d2e823aa29c0c2f95a9
refs/heads/master
2021-01-17T02:58:46.219240
2015-05-26T22:45:46
2015-05-26T22:45:46
34,995,164
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
#!/usr/bin/python import sys def compute(prey): if prey[1] != 0: temp0 = prey[1] / prey[1] else: temp0 = prey[1] temp1 = min(prey[1], prey[1]) temp2 = temp0 - prey[0] temp1 = temp1 + temp2 temp2 = min(prey[0], prey[0]) if prey[0] != 0: temp0 = temp1 % prey[0] else: temp0 = prey[0] if prey[0] != 0: t...
[ "i7674211@bournemouth.ac.uk" ]
i7674211@bournemouth.ac.uk
565642fb050f1e96dc90a53b54a4b03c4420f37b
739e41d4f24f79c772d266cded0de9b759c6e953
/venv/lib/python3.6/site-packages/nlp/datasets/ted_hrlr/317ae7a59db0b2ef6d10e8b0f5752db8553026fe753c1564f0188ff2a5cd2e9d/ted_hrlr.py
9aa64d2bc1727156c1433e5d740fcb6ee75e7770
[ "MIT" ]
permissive
MachineLearningBCAM/Minimax-risk-classifiers-NeurIPS-2020
24b7bbdecf459292f8b58be286feab3b9aa341ba
82586c632268c103de269bcbffa5f7849b174a29
refs/heads/main
2023-05-18T15:41:13.495286
2021-06-11T18:21:35
2021-06-11T18:21:35
304,268,819
3
2
null
null
null
null
UTF-8
Python
false
false
6,275
py
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets Authors and the HuggingFace NLP 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...
[ "adiaz@bcamath.org" ]
adiaz@bcamath.org
6d3a3e94fe0fcc4d990002f38f763e97c26fdd5b
fc71d5d2a92187c0e142ede6acb931e89a895937
/page_customisations/migrations/0032_auto_20211025_2012.py
d4d30c8b536eff978e5662c3901cf432457ea0e9
[]
no_license
DelroyBrown28/nueui-ecommerce-template
764ffa74a270adab89c5715811b9c01056b8b78e
86e2bcc1eb99d95aa403fef4e281b61da4944bb6
refs/heads/main
2023-08-28T12:19:20.675569
2021-11-04T19:14:42
2021-11-04T19:14:42
393,047,426
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
# Generated by Django 3.2.3 on 2021-10-25 19:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('page_customisations', '0031_auto_20211025_2011'), ] operations = [ migrations.AlterField( model_name='homepagecustomisation', ...
[ "delroybrown.db@gmail.com" ]
delroybrown.db@gmail.com
8eaa67be6d931a8da1a7ce118148dbf103a1fb53
46a5df524f1d96baf94f6eb0f6222f2b856235f3
/src/puzzle/examples/msp/msp2017_07_12_nebraska_raw.py
69c5dc23ca56276d70b8f6fea29d187038e5f172
[ "MIT" ]
permissive
PhilHarnish/forge
5dfbb0aa2afdb91e55d85187bd86fbeb9b6b2888
c544fb8b499e1e13793c94159f4c35bce187311e
refs/heads/master
2023-03-11T17:23:46.569359
2023-02-25T15:09:01
2023-02-25T15:09:01
1,818,598
2
0
MIT
2023-02-25T15:09:02
2011-05-29T19:36:53
Jupyter Notebook
UTF-8
Python
false
false
6,089
py
import Numberjack Andrea = Numberjack.Variable(25, 'Andrea') Bob = Numberjack.Variable(25, 'Bob') Christine = Numberjack.Variable(25, 'Christine') Diane = Numberjack.Variable(25, 'Diane') Eleanor = Numberjack.Variable(25, 'Eleanor') Felicia = Numberjack.Variable(25, 'Felicia') Greg = Numberjack.Variable(25, 'Greg') Ha...
[ "philharnish@gmail.com" ]
philharnish@gmail.com
2036c0ced23127338bf1e207809abf53a725230a
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2354/60765/316990.py
859f3bce37d67f3adf40a37307ebfc52a01e327e
[]
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
959
py
#!/usr/bin/env python # -*- coding:utf-8 -*- import math import sys # n = int(input()) # n,t=list(map(int,input().split())) # serial=input().split() #n,t,c=list(map(int,input().split())) #p=list(map(int,input().split())) count=0 res=0 #for pri in p: # if pri>t: # count=0 # else: # count+=1 # ...
[ "1069583789@qq.com" ]
1069583789@qq.com
35e4c4741013f30340efc13412c4736db7fbb65e
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Reconstruction/Jet/JetUncertainties/testingMacros/python_scripts/MakeTH3DFromTH2Ds.py
1bd2d94500f91e47daea5213977ce868ab66d1ab
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
3,891
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration import sys import re import array from ROOT import * def GetKeyNames(self,dir=""): self.cd(dir) return [key.GetName() for key in gDirectory.GetListOfKeys()] TFile.GetKeyNames = GetKeyNames def getJetDef(histName): tokens = histName.sp...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
044b7b2f17170460a5382062961f0253e9f7bb46
20c20938e201a0834ccf8b5f2eb5d570d407ad15
/arc002/arc002_3/8396036.py
7c82f2968f7bab29150d66d02105b9705388141b
[]
no_license
kouhei-k/atcoder_submissions
8e1a1fb30c38e0d443b585a27c6d134bf1af610a
584b4fd842ccfabb16200998fe6652f018edbfc5
refs/heads/master
2021-07-02T21:20:05.379886
2021-03-01T12:52:26
2021-03-01T12:52:26
227,364,764
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
N=int(input()) c=input() commands=["A","B","X","Y"] macro=[] for x in commands: for y in commands: macro.append(x+y) ans=N for L in macro: for R in macro: if L==R: continue id=0 tmp=0 while(id<N): if id <N-1 and (c[id]+c[id+1]==L or c[id]+c[id+1]==R): id+=2 else: ...
[ "kouhei.k.0116@gmail.com" ]
kouhei.k.0116@gmail.com
b9f7d4656c43c5afb0bc4e38c547e3c5dff5a515
56b63ee537f872af0fc028016d1508b4c1dd5c60
/school/migrations/0400_rpt_emssumth_terace.py
944eeb5138903db5ac2c2afcffae9017c54d2bee
[]
no_license
jacknjillsolutionsrevanth/EMS1
01fc571120f765b0fbfe3aa654b15ff578d6e9b9
db14d8e6c15669b5938aa9276c5e22006218814a
refs/heads/main
2023-08-03T19:40:50.073133
2021-10-01T07:02:37
2021-10-01T07:02:37
410,202,348
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
# Generated by Django 3.2 on 2021-08-07 07:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('school', '0399_auto_20210806_2000'), ] operations = [ migrations.AddField( model_name='rpt_emssumth', name='terace', ...
[ "jacknjillsolutions.revanth@gmail.com" ]
jacknjillsolutions.revanth@gmail.com
a0b1c2125cb3b5d6c8dc65feae63f1f21acf8ed3
4dcf41e11d13258fa240c849fe8ed81c36c761af
/cirq/contrib/quirk/cells/ignored_cells.py
408b24d7c8cdfe2329b49d15d61c3b4fb4d7f4ef
[ "Apache-2.0" ]
permissive
1eedaegon/Cirq
717920bdc4ee265ca5c39abc84d1b136c25d0343
de0c5e855069bba71e55b070fc9b06f58c07a861
refs/heads/master
2020-08-28T14:21:01.531296
2019-10-25T22:59:12
2019-10-25T22:59:12
217,724,457
1
0
Apache-2.0
2019-10-26T14:55:14
2019-10-26T14:55:14
null
UTF-8
Python
false
false
1,380
py
# Copyright 2019 The Cirq Developers # # 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 ...
[ "craiggidney+github+cirqbot@google.com" ]
craiggidney+github+cirqbot@google.com
052436965aaa045955f095c81ebca96dca9b4e63
ba0cbdae81c171bd4be7b12c0594de72bd6d625a
/MyToontown/Panda3D-1.9.0/direct/p3d/ppatcher.py
e9162c94b763964c5ecb38df55d11cbafad9068d
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
sweep41/Toontown-2016
65985f198fa32a832e762fa9c59e59606d6a40a3
7732fb2c27001264e6dd652c057b3dc41f9c8a7d
refs/heads/master
2021-01-23T16:04:45.264205
2017-06-04T02:47:34
2017-06-04T02:47:34
93,279,679
0
0
null
null
null
null
UTF-8
Python
false
false
3,275
py
#! /usr/bin/env python usageText = """ This script generates the patches required to support incremental download of Panda3D packages. It can be run as a post-process on a directory hierarchy created by ppackage; it will examine the directory hierarchy, and create any patches that appear to be missing. You...
[ "sweep14@gmail.com" ]
sweep14@gmail.com
81d807617835ac101456042bbf4e40f2286616e7
b299e95c1660aeb9933d83b15689d39e3af60456
/www_douyin_com/structures/base.py
b2c1d804e57b23cc0ecde0e062fd296ad66b626d
[]
no_license
beckfun/spider_world
537e700ec84e00efb18fbe4c78ace18f0fe54151
06a39872d7dfaf1421b19dbed78ad3c8139f0a19
refs/heads/master
2020-05-04T09:06:19.995407
2019-04-02T01:19:48
2019-04-02T01:19:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
#!/usr/bin/env python # coding:utf-8 import datetime from copy import deepcopy from www_douyin_com.structures.videos import Video class Base: def json(self): d = deepcopy(self.__dict__) for k, v in d.items(): if not v: continue if isinstance(v, Video): ...
[ "funblessu@gmail.com" ]
funblessu@gmail.com
013e3ea71ce89dac0441f49c71e9bcb84f03f07e
e2e08d7c97398a42e6554f913ee27340226994d9
/pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_Route/test_c141071.py
cb44c5646e7ba9c12a86e1e37d796cc3186ddf22
[]
no_license
lizhuoya1111/Automated_testing_practice
88e7be512e831d279324ad710946232377fb4c01
b3a532d33ddeb8d01fff315bcd59b451befdef23
refs/heads/master
2022-12-04T08:19:29.806445
2020-08-14T03:51:20
2020-08-14T03:51:20
287,426,498
0
0
null
null
null
null
UTF-8
Python
false
false
3,599
py
import pytest import time import sys from page_obj.common.rail import * from os.path import dirname, abspath from page_obj.common.ssh import * from page_obj.scg.scg_def_policy_route import * from page_obj.scg.scg_def_interface import * from page_obj.scg.scg_dev import * from page_obj.scg.scg_def_ifname_OEM imp...
[ "15501866985@163.com" ]
15501866985@163.com
9918fb4cb70e5680adcf8ec358439bbee2b28062
174f848b62fb2ea0a1605e1aab70085ffd27ce50
/breack_for_if_whil_cont/while.py
a167a7f27ba661e583fe3eb89ca2e8c23ca27c57
[]
no_license
unet-echelon/by_of_python_lesson
cd71bd3890d42d49cc128ec1730371bf1b64dbfa
c6c5c917414ac98b6dfb582dc06c26d31ea5b30c
refs/heads/master
2021-07-11T07:16:20.243347
2020-09-14T12:39:13
2020-09-14T12:39:13
201,041,106
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
number = 23 running = True while running: guess = int(input('Введите целое число : ')) if guess == number: print('Поздравляю, вы угадали.') running = False # это останавливает цикл while elif guess < number: print('Нет, загаданное число немного больше этого') else: prin...
[ "aleguk@ukr.net" ]
aleguk@ukr.net
d9eb9e3c340e612d642db5b5c2881af07cbb0bd0
d820c8efb25c9adb77015650a0f7dc6f1e983bfe
/abc/abc151_e.py
6ef031d4ce0db756ea014a14bb64eaba1370c09b
[]
no_license
toshikish/atcoder
73fdaa2310f23f846279f9f7466bdb969448371f
33676630d6820dd92ccf0931425b8906b065bedd
refs/heads/master
2022-05-16T20:00:52.665762
2022-04-02T11:55:44
2022-04-02T11:55:44
173,099,510
0
0
null
null
null
null
UTF-8
Python
false
false
695
py
N, K = map(int, input().split()) A = list(map(int, input().split())) MOD = 10 ** 9 + 7 def pow(x, t): if t == 0: return 1 a = pow(x, t >> 1) return a * a * (x ** (t & 1)) % MOD fact = [0] * N fact[0] = 1 for i in range(1, N): fact[i] = fact[i - 1] * i fact[i] %= MOD ifact = [0] * N ifact...
[ "toshiki@nanshika.com" ]
toshiki@nanshika.com
a73093a6e04a98050a3ebad79628e877808d8c60
b004204644dd3cf9ad922a6cd5c0aab0c0e97598
/addons_custom/izi_pos_debt_goods/models/stock_picking.py
33af83ddfd0a99f867a5cef49e938e064fc8c6d0
[]
no_license
butagreeza/korea_spa
7a2fdd92ca73205945632ead6582ef1df424074e
1524f87b62998eba29e491d0836714abec7059fd
refs/heads/master
2023-04-26T09:45:51.931127
2021-05-17T16:45:33
2021-05-17T16:45:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,549
py
# -*- coding: utf-8 -*- from odoo import models, fields, api, _ from odoo.exceptions import except_orm from datetime import date class StockPicking(models.Model): _inherit = 'stock.picking' @api.multi def action_done(self): picking = super(StockPicking,self).action_done() Debit = self.env...
[ "tungpd@izisolution.vn" ]
tungpd@izisolution.vn
d7456e02bf5f0355b0a5ee152df9cd6854ee0f3e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_lumberjacks.py
65ef86fbe1ee75a24307cd7f73f56ab2ae65554c
[ "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
266
py
from xai.brain.wordbase.nouns._lumberjack import _LUMBERJACK #calss header class _LUMBERJACKS(_LUMBERJACK, ): def __init__(self,): _LUMBERJACK.__init__(self) self.name = "LUMBERJACKS" self.specie = 'nouns' self.basic = "lumberjack" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4a0b6166e953d7d72ace02022bc02781b875627d
118fef6d6bdbe52a62730ff1adf4ef6a289c9e65
/main_ls.py
ef11f6d8d27d41bda0ec50e1bd77c896f09ea78c
[]
no_license
zhaoxin94/IterLNL
f8009d9d1800209d11f6bf5031e7f3a813dac105
5e2d48ef6e7d48e28322c217b9624fac4f130a79
refs/heads/master
2023-08-25T19:41:27.120413
2021-11-05T09:50:42
2021-11-05T09:50:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,275
py
#!/usr/bin/env python """ Gorilla training script. This script reads a given config file and runs the training or evaluation. It is an entry point that is able to train standard models in gorilla. In order to let one script support training of many models, this script contains logic that are specific to these built-i...
[ "806205254@qq.com" ]
806205254@qq.com
7465c89899060b85d188cd7cfc888419aede3530
7c0026e4e6e47114c93bd8a49c4d2759cf7a8613
/starter_code_section_7/tests/unit/models/test_item.py
fe3fd33a05324776e5f2b3bb919dd855ad93ed55
[]
no_license
ikostan/automation_with_python
5edf9bca971629fc7621af2957d26c3f0f73fe9e
131a0699f927ac40ea625a3526c9193863b1cc1c
refs/heads/master
2020-05-05T09:42:14.360826
2019-07-03T01:49:38
2019-07-03T01:49:38
179,913,090
0
0
null
null
null
null
UTF-8
Python
false
false
1,105
py
from starter_code_section_7.tests.unit.unit_base_test import BaseUnitTestCase from starter_code_section_7.models.item import ItemModel class ItemUnitTest(BaseUnitTestCase): def test_create_item(self): item = ItemModel('test', 19.99, 1) self.assertEqual(item.name, 'test', ...
[ "igorkostan@gmail.com" ]
igorkostan@gmail.com
b48b494e81ba643cc1132716c0378c362e0c3374
52b5773617a1b972a905de4d692540d26ff74926
/.history/brackets_20200810110107.py
de5de5d771b477c9c44c196a61e3f3008fbb7cea
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
367
py
def brackets(S): # "{[()()]}" stack = [] for i in S: stack.append(i) for i in S: if ( i == "(" and stack[-1] != ")") or (i == "{" and stack[-1] != "}") or (i == "[" and stack[-1] != "]"): return 0 else: stack.pop() return 1 print(br...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
5d29e9b123fe62c288d690ee1559b884bcb285b8
e1fada3a9846a5593e3d3d2fdc32b23b832e38b4
/tests/unit/mpa/modules/models/scalar_schedulers/test_schedulers.py
a79cbdc67e68a31d2a00c7ce006ab31a4337959e
[ "Apache-2.0" ]
permissive
GalyaZalesskaya/openvino_training_extensions
fd1ebb189900008b16b85568449e5c62d8edbad5
6116639caeff100b06a6c10a96c7e7f5951f20c7
refs/heads/develop
2023-09-03T19:32:44.702497
2023-03-15T06:48:24
2023-03-15T06:48:24
202,568,309
0
0
Apache-2.0
2019-10-28T16:16:27
2019-08-15T15:41:59
Python
UTF-8
Python
false
false
4,105
py
"""Test schedulers.""" # Copyright (C) 2023 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import pytest from otx.mpa.modules.models.scalar_schedulers import ( ConstantScalarScheduler, PolyScalarScheduler, StepScalarScheduler, ) class TestSchedulers: """Test schedulers.""" def test_c...
[ "noreply@github.com" ]
GalyaZalesskaya.noreply@github.com
6b288c42631e23141154dc6133f91b6511598fd3
455623c94f7e50887d7b732aee8cd86c2bc2b19e
/django-rest-framework-api/blog/blogapp/serializers.py
021fd7d8946f877fcbf07bc2fb4ead3d7d323bdf
[]
no_license
sudeep0901/django
f55921bf3e4a95e11b2b540e6a8085eb7ecbd963
7e770ea9c572812dd29b214a66624a693d712587
refs/heads/master
2020-04-27T05:18:41.016922
2020-01-21T13:32:12
2020-01-21T13:32:12
174,077,858
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
from rest_framework.serializers import ModelSerializer from blogapp.models import Person, LANGUAGE_CHOICES, STYLE_CHOICES class PersonSerializer(ModelSerializer): class Meta: model = Person fields = '__all__'
[ "sudeep.tech.patel@gmail.com" ]
sudeep.tech.patel@gmail.com
41069fde61ecd64c1c25ce878ed00c9ee8f981bd
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_examples/_algorithms_challenges/leetcode/leetCode/Tree/208_ImplementTrie.py
7bc968c5fa4d7a2f03c3389ced63c2cfe7f455cf
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
1,510
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # @Author: xuezaigds@gmail.com # Refer to: # https://leetcode.com/discuss/49529/my-python-solution class TrieNode(object): def __init__(self): self.children = {} self.is_word = False class Trie(object): def __init__(self): self.root = Tr...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
4a4179c0e6159e92478b220f89006f7fe05c49db
52b5773617a1b972a905de4d692540d26ff74926
/.history/brackets_20200810113618.py
eb7c01859b301f1480ec6251a24723c15affbb9d
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
def brackets(S): # "{[()()]}" if len(S) == 0: return 1 countS = 0 countB = 0 countC = 0 for i in S: if i == "(" and stack[-1] == ")": stack.pop() print(brackets("([)()]"))
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
b2385bbfc23aec73e25d45ae5f60203af2d3082f
18f0ad99e21e2e35126f8c3c28079d358fa2129a
/CPX_Compass/code.py
6deabd5f8a8980c1f25120dc1a756de71e095633
[ "MIT" ]
permissive
ladyada/Adafruit_Learning_System_Guides
9bf18dfa35941e0cbecbb3c2d02b4fa3cb79744f
6d76801878cbf65132ccea950dc47ae842c73dcd
refs/heads/master
2023-08-20T20:30:42.910576
2022-01-10T20:28:11
2022-01-10T20:28:11
115,837,894
13
2
MIT
2020-03-31T23:23:45
2017-12-31T02:34:47
C
UTF-8
Python
false
false
4,087
py
""" Circuit Playground Express Compass Adafruit invests time and resources providing this open source code. Please support Adafruit and open source hardware by purchasing products from Adafruit! Written by Dave Astels for Adafruit Industries Copyright (c) 2018 Adafruit Industries Licensed under the MIT license. All ...
[ "dastels@daveastels.com" ]
dastels@daveastels.com
da94f8098f8553be99f666db8e4df6cc547f0ea3
4599a5d28a2439b172f114f224c91335e188e5c7
/tests/test_api.py
aa3783e0151c3a0ba61011c6c451e99419a01b25
[ "MIT" ]
permissive
marnagy/audio-metadata
04704c44e49e024736efe5b6ca6d7dc219978ce8
4931aa5c5768d7231027f246f73872bc15de93db
refs/heads/main
2023-02-10T22:21:21.345854
2020-10-14T23:26:08
2020-10-14T23:29:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,450
py
from pathlib import Path from ward import ( each, raises, test, using, ) import audio_metadata from audio_metadata import UnsupportedFormat from tests.fixtures import id3v2_header AUDIO_FILEPATHS = list((Path(__file__).parent / 'audio').iterdir()) @test( "ID3v2-only is None", tags=['unit', 'api', 'determine_...
[ "mail@thebigmunch.me" ]
mail@thebigmunch.me
6f2dd4f169a2bc267f139544c07ac4e9677049aa
55647a80c8b412af9df0ba3f50595cc2f29c25e6
/res/scripts/common/Lib/idlelib/CodeContext.py
6ba7981e954874b28dfae8049041cbf18d96fd45
[]
no_license
cnsuhao/WOT-0.9.17-CT
0035eb6070fb4fab8d8ee9f8bbc676c10d511cfb
d1f932d8cabaf8aa21708622e87f83c8d24d6451
refs/heads/master
2021-06-08T18:11:07.039293
2016-11-19T19:12:37
2016-11-19T19:12:37
null
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
6,570
py
# 2016.11.19 19:59:08 Střední Evropa (běžný čas) # Embedded file name: scripts/common/Lib/idlelib/CodeContext.py """CodeContext - Extension to display the block context above the edit window Once code has scrolled off the top of a window, it can be difficult to determine which block you are in. This extension impleme...
[ "info@webium.sk" ]
info@webium.sk
d03d06d4dbaf996027400fff393ce8bcb285c072
817b6bd0b18d5f93de46283bb961185a0b70e71f
/MUREX_FX_Forward/Map_Rules.py
668365ab3a187268fccd206810991512cde9181f
[]
no_license
mattstirling/CTR_Recon
5e75f07f39fdd20a02c380ba5d214695b63cc603
fdf3633c936ecfc977814c04c7f03f0c325694bc
refs/heads/master
2021-01-17T11:07:02.994311
2017-08-14T22:29:42
2017-08-14T22:29:42
52,452,978
0
0
null
null
null
null
UTF-8
Python
false
false
3,027
py
''' Created on Aug 10, 2016 @author: cnamgoong ''' import numpy as np import re def apply_map_rule(value,rulename): try: if rulename == 'change_flag': return change_flag(value) elif rulename == 'boolean_maker': return boolean_maker(value) elif rulename == 'pay_holiday' : ...
[ "mstirling@ScotiaFalcon" ]
mstirling@ScotiaFalcon
803e0e493261feae536efab0d9c75586a4d41cfd
987c69ae0c9a44a04985706e329cf91ad58d36b8
/tests/test_txt.py
b3a52746c90dbd038c33d91bef56b7c7c8db0459
[ "Apache-2.0" ]
permissive
nasirxo/readme_renderer
5cbb992ff9853f23f8e54e5c9792c1f6b6e6e527
be206d314d35a5d70416e4d76d55d19adcb5774b
refs/heads/master
2022-04-22T21:49:56.159064
2020-04-23T03:24:09
2020-04-23T03:24:09
283,092,423
2
0
Apache-2.0
2020-07-28T03:52:07
2020-07-28T03:52:05
null
UTF-8
Python
false
false
679
py
import io import glob import os.path import pytest from readme_renderer.txt import render @pytest.mark.parametrize( ("txt_filename", "html_filename"), [ (fn, os.path.splitext(fn)[0] + ".html") for fn in glob.glob( os.path.join(os.path.dirname(__file__), "fixtures", "test_*.txt") ...
[ "donald@stufft.io" ]
donald@stufft.io
72630ab25500420b772ba5b9a9e828b04422c640
6bdb32ddbd72c4337dab12002ff05d6966538448
/gridpack_folder/mc_request/LHEProducer/Spin-2/BulkGraviton_WW_WlepWhad/BulkGraviton_WW_WlepWhad_narrow_M3000_13TeV-madgraph_cff.py
2d91d5c17e0c864ef0a9173b4671fe61e702861f
[]
no_license
cyrilbecot/DibosonBSMSignal_13TeV
71db480de274c893ba41453025d01bfafa19e340
d8e685c40b16cde68d25fef9af257c90bee635ba
refs/heads/master
2021-01-11T10:17:05.447035
2016-08-17T13:32:12
2016-08-17T13:32:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
759
py
import FWCore.ParameterSet.Config as cms # link to cards: # https://github.com/cms-sw/genproductions/tree/master/bin/MadGraph5_aMCatNLO/cards/production/13TeV/exo_diboson/Spin-2/BulkGraviton_WW_WlepWhad/BulkGraviton_WW_WlepWhad_narrow_M3000 externalLHEProducer = cms.EDProducer("ExternalLHEProducer", args = cms.v...
[ "syu@cern.ch" ]
syu@cern.ch
befbcc72c4b4e1dd1097c8a9bfdd07f4cecd0416
0eaab1305900d8e70dd746d676126d1667d9c314
/winregrc/srum_extensions.py
1a20d96bf2d792c135a7c0c7d2b84b894a9985b5
[ "Apache-2.0" ]
permissive
scudette/winreg-kb
89ffc7f63c2630b266bed41d1c66dff64fd1d32d
f81b8bcaef8365d0c52bf3c87af2bccb4274bece
refs/heads/master
2020-06-08T20:51:37.427445
2019-06-14T06:47:16
2019-06-14T06:47:16
193,304,780
1
0
null
2019-06-23T04:07:02
2019-06-23T04:07:02
null
UTF-8
Python
false
false
1,591
py
# -*- coding: utf-8 -*- """System Resource Usage Monitor (SRUM) extension collector.""" from __future__ import unicode_literals from winregrc import interface class SRUMExtension(object): """System Resource Usage Monitor (SRUM) extension. Attributes: dll_name (str): DLL name. guid (str): identifier. ...
[ "joachim.metz@gmail.com" ]
joachim.metz@gmail.com
819a2e7d66486ee1ae58e26e867bce5c2e90ca3c
0b858ba47ccd7ae397ab070fdb8066ec350aaa03
/tempus.wsgi
9efe6ca58aff0c12ae294903d31f814f04acd52e
[]
no_license
plone/plonejenkins.middleware
3a9f4901ec34c2ffd45b3523e4e387d83d8e3f9e
223d036f920e37ad1bfa80e3ee9b4984e837ee1d
refs/heads/master
2023-04-16T15:14:00.952015
2023-04-09T15:58:31
2023-04-09T15:58:31
8,108,016
1
0
null
null
null
null
UTF-8
Python
false
false
280
wsgi
import os, sys #sys.path.append('/var/plone/tempus.buildout') #os.environ['PYTHON_EGG_CACHE'] = '/var/plone/tempus.buildout/eggs:/var/plone/tempus.buildout/develop-eggs' from paste.deploy import loadapp application = loadapp('config:/var/plone/tempus.buildout/development.ini')
[ "ramon.nb@gmail.com" ]
ramon.nb@gmail.com
38b6f0ae136f98e12d855969e912f24dbab2c57a
3f2e2f96c3089eba37e06d4b837099c885beb447
/planemo_ext/galaxy/tools/loader_directory.py
b9987db10d445b68875c54c8cce32d9945516fc6
[ "AFL-3.0", "CC-BY-2.5", "AFL-2.1", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
chambm/planemo
b4f0ca6afa6db01581fb9181e0c6f080cc22a010
5396550d9527e518bb04dccc5e6b12d67905b68a
refs/heads/master
2021-01-16T19:16:39.497287
2015-09-01T23:29:26
2015-09-01T23:29:26
41,813,460
0
0
null
2015-09-02T16:45:34
2015-09-02T16:42:01
Python
UTF-8
Python
false
false
2,224
py
import fnmatch import glob import os from ..tools import loader import sys import logging log = logging.getLogger(__name__) PATH_DOES_NOT_EXIST_ERROR = "Could not load tools from path [%s] - this path does not exist." PATH_AND_RECURSIVE_ERROR = "Cannot specify a single file and recursive." LOAD_FAILURE_ERROR = "Fail...
[ "jmchilton@gmail.com" ]
jmchilton@gmail.com
1d4bc4a1f8a420bca853f4912b547600bf971b9d
2af1e6357f51d0d08b1a991e2bd922b7bdc8c0b6
/baekjoon/accepted/수학/9527 1의 개수 세기.py
60c11775f8a71ca07c892e63da5d6c9287ecd803
[]
no_license
grasshopperTrainer/coding_practice
530e9912b10952c866d35d69f12c99b96959a22d
d1e5e6d6fa3f71f1a0105940fff1785068aec8b0
refs/heads/master
2023-06-01T13:30:15.362657
2021-06-08T08:40:15
2021-06-08T08:40:15
267,359,225
1
0
null
null
null
null
UTF-8
Python
false
false
392
py
def solution(A, B): dp = {} def count(N): if N in dp: return dp[N] if N <= 1: return N t = 1 while t <= N: t *= 2 t //= 2 n = count(t-1) + count(N - t) + N - (t - 1) dp[N] = n return n return count(B) - cou...
[ "grasshoppertrainer@gmail.com" ]
grasshoppertrainer@gmail.com
9210cbf22d63fed2a3eb166472c393ccb8db0ae9
ab223538012e2f4ddd20ee5eb055625929d34def
/List2/centered_average.py
e6aa891e9069afec4ab38479215f5e98c68c2d9b
[]
no_license
alextickle/codingBat-python
5a9ee4aaed14310ada4c968fcbcf4e0165c634ca
e96a33733a75dedb3c0aa2267651d2a9b5b59054
refs/heads/master
2020-06-14T17:32:29.231154
2017-05-06T19:47:54
2017-05-06T19:47:54
75,354,711
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
def centered_average(nums): min = nums[0] max = nums[0] for i in range(len(nums)): if nums[i] > max: max = nums[i] if nums[i] < min: min = nums[i] sum = 0 for j in range(len(nums)): sum = sum + nums[j] return (sum - max - min) / (len(nums) - 2) print centered_average([1,2,3,4,5])
[ "alexander.tickle@gmail.com" ]
alexander.tickle@gmail.com
4564633c45471faf06270d9dc3467744f51b061f
4838f7f5e36884b2bc4066ea56c3cd55b170d78f
/train_image_statistics.py
30136fe67a38342a73d051366d071b2a8e02fec7
[]
no_license
yairbeer/farm2016
7b652e8f004c87b7db843677cb8e79f909553d30
d4d4934dc1b0acd1f863ad356650412ca2e64e31
refs/heads/master
2021-01-21T12:59:12.764196
2016-04-15T21:24:33
2016-04-15T21:24:33
55,575,540
0
0
null
null
null
null
UTF-8
Python
false
false
3,036
py
import glob import numpy as np import pandas as pd import matplotlib.pyplot as plt from skimage.io import imread, imsave from skimage.color import gray2rgb, rgb2gray from skimage.color.adapt_rgb import adapt_rgb, each_channel from skimage import filters from skimage import exposure import os def img_draw(im_arr): ...
[ "yaia1309@gmail.com" ]
yaia1309@gmail.com
d917d580285ff1d7a98fcb785ddffff03b48498f
15ac76ff04d65d6de0ded2a774da6f16642c2835
/library/build/lib/orangelib/net.py
30c6b8aff78a255aa12f0c2cb839a458ad5506cb
[]
no_license
ObinnaObeleagu/orangelib
1391d6151f2722edbbf655827182d4e864aaaa9b
7bd10c188fda1c101bfc7c0dcf235c628c646091
refs/heads/master
2022-04-19T13:10:05.247042
2020-04-13T14:23:40
2020-04-13T14:23:40
274,392,319
1
0
null
2020-06-23T11:51:49
2020-06-23T11:51:48
null
UTF-8
Python
false
false
4,808
py
# EDIT THE net.py file #Add the following to the net.py file import keras from keras.layers import * from keras.models import * import os from keras.preprocessing import image #The Linear Bottleneck increases the number of channels going into the depthwise convs def LinearBottleNeck(x,in_channels,out_chan...
[ "noreply@github.com" ]
ObinnaObeleagu.noreply@github.com
df734569f082911bc8a2042052b9655dcab9e925
12a652ffb301e2f48cb80ddc8fdc556926b8026f
/scripts/bash/dbcleanup.py
54b761e8fb5a0be0a42d14dc6b594e61b0660a73
[ "MIT" ]
permissive
jeremiahmarks/dangerzone
de396da0be6bcc56daf69f2f3093afed9db5ede3
fe2946b8463ed018d2136ca0eb178161ad370565
refs/heads/master
2020-05-22T12:45:34.212600
2017-04-18T02:57:59
2017-04-18T02:57:59
28,025,861
1
0
null
null
null
null
UTF-8
Python
false
false
1,116
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ There are several repetitious database entries that I have in my db. This script is there to clean them up. """ import os, sys import cgi import pwd import socket import urlparse import MySQLdb import pw sys.path.insert(0,'/home/jlmarks/mycode/mypy') db = MySQLdb....
[ "Jeremiah@JLMarks.org" ]
Jeremiah@JLMarks.org
70b5ae1a56cb8cf40ed7304a039c117b614c78a6
7c4369d5e2e048842b23064c609d6c2bbfd0ca76
/bertrand/pages.py
2eb7692906146afcacdf3e6fbb61de26567455a4
[ "MIT" ]
permissive
chapkovski/oTree-Russian
c2829bbba915113c2b22b1b77ec0d42bb45dd704
e17ffa287e2d197caff856cb985884d3d16edfb4
refs/heads/russian
2023-02-07T05:33:32.880659
2020-12-24T08:38:55
2020-12-24T08:38:55
318,496,476
0
4
NOASSERTION
2020-12-24T08:39:14
2020-12-04T11:31:48
Python
UTF-8
Python
false
false
411
py
from ._builtin import Page, WaitPage from otree.api import Currency as c, currency_range from .models import Constants class Introduction(Page): pass class Decide(Page): form_model = 'player' form_fields = ['price'] class ResultsWaitPage(WaitPage): after_all_players_arrive = 'set_payoffs' class ...
[ "chris@otree.org" ]
chris@otree.org
92193d184b9ef4368a6c9afaef81f3cb1bfc6567
f7b361c57a031e9e3cf291be0a18a39170ac853b
/db_operation/login_info_dao.py
d59b102d87d097eee78f1f33c1d7cf55f9d779d1
[]
no_license
iamdaiyuan/WeiboSpider
5af7b1985d434156bcb871e3d3fcfdd791ca9d4a
0532af6cbf28d1b3e876d2d73335602bc15a46cf
refs/heads/master
2021-01-18T08:29:54.819784
2016-09-01T10:48:39
2016-09-01T10:48:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
# -*-coding:utf-8 -*- # 操作登陆信息 from db_operation import db_connect def get_login_info(): con = db_connect.get_con() sql = 'SELECT * FROM (SELECT * FROM sina_login_infodangbantest order by dbms_random.value) WHERE rownum =1' r = db_connect.db_queryone(con, sql) db_connect.db_close(con) login_name =...
[ "1796246076@qq.com" ]
1796246076@qq.com
49552a3f6655df81cbe05af0fd0cded902a80fce
18f776553a59a89faf05144ed1a69dc563dc4e9e
/Python/t51.py
3d9e9fed2c90c45ae5195d6f24067c5cc0bdcf45
[]
no_license
g-lyc/LeetCode
274feff3b6c61da0ec8726deac0b298baed5cf10
fa45cd44c3d4e7b0205833efcdc708d1638cbbe4
refs/heads/master
2022-12-13T14:50:02.976951
2020-09-03T09:39:58
2020-09-03T09:39:58
259,212,315
15
1
null
null
null
null
UTF-8
Python
false
false
1,964
py
# -*- conding:utf-8 -*- #Author:lyc import os, sys, copy # 题目: # n 皇后问题研究的是如何将 n 个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击。 # 给定一个整数 n,返回所有不同的 n 皇后问题的解决方案。 # 每一种解法包含一个明确的 n 皇后问题的棋子放置方案,该方案中 'Q' 和 '.' 分别代表了皇后和空位。 # # 示例: # 输入: 4 # 输出: [ # [".Q..", // 解法 1 # "...Q", # "Q...", # "..Q."], # # ["..Q.", // 解法 2 # "Q...", ...
[ "309080979@qq.com" ]
309080979@qq.com
d695cc61ae23487113b749728f9546a02e5966b9
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/bc44175d8dd288af7c940fa060ab4e1b90f3737e-<exec_command>-fix.py
dfddb3f84c3ee7f8f4f7688703bee9f684ada3ce
[]
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
2,682
py
def exec_command(self, cmd, in_data=None, sudoable=True): ' run a command on the remote host ' super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable) if in_data: raise AnsibleError('Internal Error: this module does not support optimized module pipelining') bufsize = 4096 ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
d653dfa0cd9d0079499e8437c5c79a2e9a7ea059
b8441dc1987be9e64fa3081d456b2a3060ec44d1
/mars/tensor/special/bessel.py
d2e25534402687d9ba9f11a9150333ea0f9dcb6d
[ "BSD-3-Clause", "MIT", "ISC", "Apache-2.0", "CC0-1.0", "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mars-project/mars
f99fefbce999d58a9249bc72046787a9731c9c73
c36c53fa22e10ef9477d9c454401a2f281375f31
refs/heads/master
2023-07-23T00:23:55.133015
2023-07-03T11:44:54
2023-07-03T11:44:54
160,543,708
2,704
362
Apache-2.0
2023-09-11T07:57:35
2018-12-05T16:04:03
Python
UTF-8
Python
false
false
4,586
py
# Copyright 1999-2021 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...
[ "noreply@github.com" ]
mars-project.noreply@github.com
70657243e798d291ee787ba590eb0414f17505e5
293d7ab59c9e7ff4e1341fb8e6504a89f3384666
/python/src/nnabla/backward_function/minimum2.py
6c275ef07014210c49540673c211a2de9c347f51
[ "Apache-2.0" ]
permissive
CrimsonTuna/nnabla
903423b8eb3617c3623952605bcdd77bb5ab2a56
36328e574d77f1cc9ee0051f33159a2dc4f03013
refs/heads/master
2023-03-29T07:12:33.444996
2021-04-11T09:33:21
2021-04-11T09:33:21
356,857,925
0
0
Apache-2.0
2021-04-11T13:09:02
2021-04-11T12:10:47
null
UTF-8
Python
false
false
1,185
py
# Copyright (c) 2017 Sony Corporation. 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 ...
[ "Kazuki.Yoshiyama@sony.com" ]
Kazuki.Yoshiyama@sony.com
6afc6c02bc448554d1a044c3374dc97cb4e1a3e5
f286557dd5654dd6b111f3313a56fa6496f4ddf3
/sort/sort_test.py
4c55b4047fc55ecde0f0ce37ee3d6ea0cdbfb1f1
[]
no_license
Albino1995/algorithms
35b9b539053d9954a5eb8825949ba0a716f6e94e
99758833364645d243adfa3620967ae2f33ef0cb
refs/heads/master
2021-05-04T15:49:31.350373
2018-03-01T06:22:54
2018-03-01T06:22:54
120,239,067
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
#!/usr/bin/env python __author__ = 'Albino' import random from sort.insertion_sort import InsertionSort from sort.selection_sort import SelectionSort from sort.bubble_sort import BubbleSort from sort.merge_sort import MergeSort from sort.quick_sort import QuickSort from sort.quick_sort_3_ways import QuickSort3Ways fr...
[ "763968024@qq.com" ]
763968024@qq.com
5bd9532ec15d3bb0dee13f51dd4cd35a069ceac6
62b5bf3ec2e873fc5b7da7821115f51a5eb93c01
/ch01/Bayesian_regression.py
c9713de502ae2a4639f7d181d0b5dbab797cda0f
[]
no_license
gjwei/PRML
8825dbc17d351dd956dbfe8ecdb3c2c3049a9597
57c38180c50868d9cda7d89ced171cd7e0db1e43
refs/heads/master
2021-08-11T08:23:05.252955
2017-11-13T11:39:10
2017-11-13T11:39:10
108,715,936
0
0
null
null
null
null
UTF-8
Python
false
false
5,233
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ created by gjwei on 2017/10/29 看了半天还是没有看懂什么事贝叶斯回归 Orz 留下代码,今后慢慢琢磨吧 """ import numpy as np from ch01.regression import Regression class BayesianRegressor(Regression): """ Bayesian Regression w ~ N(w|0, alpha^(-1)I) y = X @ w t ~ N(t|X @ ...
[ "1449894353@qq.com" ]
1449894353@qq.com
7cf59e616514df5279e0c929bf07227df4c1a751
600df3590cce1fe49b9a96e9ca5b5242884a2a70
/third_party/angle/scripts/bmp_to_nv12.py
facb43e9bf5aad449e1f2112245cf575ceb22718
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
metux/chromium-suckless
efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a
72a05af97787001756bae2511b7985e61498c965
refs/heads/orig
2022-12-04T23:53:58.681218
2017-04-30T10:59:06
2017-04-30T23:35:58
89,884,931
5
3
BSD-3-Clause
2022-11-23T20:52:53
2017-05-01T00:09:08
null
UTF-8
Python
false
false
3,062
py
#!/usr/bin/python # # Copyright 2016 The ANGLE Project Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # bmp_to_nv12.py: # Script to convert a simple BMP file to an NV12 format. Used to create # test images for the NV12 texture st...
[ "enrico.weigelt@gr13.net" ]
enrico.weigelt@gr13.net
0b584ccec620493bc70bef5cf57649ffe6ee0efb
df01b59063ff08ca998995a2801d242c670691e6
/luxon/models/users.py
83399595c1c18d1c6099e7025183b16e47173eee
[ "BSD-3-Clause" ]
permissive
WarpSec/luxon
7c8bd02784b899c1927f934dd76b25301f685c52
37ecfc268069a1c535e6253f3d4d270f755a80c7
refs/heads/master
2021-04-29T13:57:31.677632
2018-02-08T14:12:12
2018-02-08T14:12:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,882
py
# -*- coding: utf-8 -*- # Copyright (c) 2018 Christiaan Frans Rademan. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, ...
[ "christiaan.rademan@gmail.com" ]
christiaan.rademan@gmail.com
b26b26d9d7ae6e15743128975807f5c869da1f08
666898bf873aa812f5dcc66e67617668c3dcfe2b
/plugins/effects/SphereFade.py
0286f027dcb40ac63b59a29f384be723c34d422b
[]
no_license
ISRAELAVLIS33/vb30
752b31c6e8cb9f7690c4c568c832a0cbe9c1347f
ac5278a2ec28c704f0c3e73ad338d910ab3a7330
refs/heads/master
2021-01-20T21:19:32.096384
2014-08-22T14:38:50
2014-08-22T14:38:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,732
py
# # V-Ray For Blender # # http://chaosgroup.com # # Author: Andrei Izrantcev # E-Mail: andrei.izrantcev@chaosgroup.com # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the...
[ "andrei.izrantcev@chaosgroup.com" ]
andrei.izrantcev@chaosgroup.com
407977d8b271c4b2be4862815e268e484cd575aa
947e71b34d21f3c9f5c0a197d91a880f346afa6c
/ambari-server/src/main/resources/stacks/HDPWIN/2.3/services/stack_advisor.py
3631c88449f30894349d9679586e2d61f823613c
[ "Apache-2.0", "MIT", "GPL-1.0-or-later", "GPL-2.0-or-later", "OFL-1.1", "MS-PL", "AFL-2.1", "GPL-2.0-only", "Python-2.0", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-free-unknown" ]
permissive
liuwenru/Apache-Ambari-ZH
4bc432d4ea7087bb353a6dd97ffda0a85cb0fef0
7879810067f1981209b658ceb675ac76e951b07b
refs/heads/master
2023-01-14T14:43:06.639598
2020-07-28T12:06:25
2020-07-28T12:06:25
223,551,095
38
44
Apache-2.0
2023-01-02T21:55:10
2019-11-23T07:43:49
Java
UTF-8
Python
false
false
3,844
py
#!/usr/bin/env ambari-python-wrap """ 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...
[ "ijarvis@sina.com" ]
ijarvis@sina.com
3b95851f343a457ec485b60cd43ec08bd304170b
c6760258b3ad3dd912f0842b8ae03cbea188a8c4
/fsleyes/displaycontext/scene3dopts.py
a31f55be1fc23def5e55568855c90bfac0073bd1
[ "BSD-3-Clause", "CC-BY-3.0", "Apache-2.0" ]
permissive
sanjayankur31/fsleyes
aa822f627cde38ec766180fb591c9af7d18d2126
46ccb4fe2b2346eb57576247f49714032b61307a
refs/heads/master
2020-04-09T08:41:18.380424
2018-12-03T11:44:51
2018-12-03T11:44:51
160,204,259
1
0
null
2018-12-03T14:31:31
2018-12-03T14:31:31
null
UTF-8
Python
false
false
1,984
py
#!/usr/bin/env python # # scene3dopts.py - The Scene3DOpts class. # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # """This module provides the :class:`Scene3DOpts` class, which is used by :class:`.Scene3DPanel` instances for managing their display settings. """ import copy from . import sceneopts from . import ...
[ "pauldmccarthy@gmail.com" ]
pauldmccarthy@gmail.com
66df47ceffeff3ad35fba824fad9bde9bbb8dbba
4ef31d0f04f4d6d7725a530bffb1a4b115283d6f
/site/_build/jupyter_execute/notebooks/08-intro-nlp/04-what-cooking-python.py
94e340323f39c4c3bc0e6a242983ef4b273fb779
[ "MIT" ]
permissive
rpi-techfundamentals/introml_website_fall_2020
98bb1cc4712f416b393b996b849f39c660167057
b85e5c297954bcaae565a8d25a18d2904d40f543
refs/heads/master
2023-07-14T16:49:21.625260
2020-12-10T17:51:34
2020-12-10T17:51:34
287,033,509
2
3
null
null
null
null
UTF-8
Python
false
false
6,087
py
[![AnalyticsDojo](https://github.com/rpi-techfundamentals/spring2019-materials/blob/master/fig/final-logo.png?raw=1)](http://rpi.analyticsdojo.com) <center><h1> What's Cooking in Python</h1></center> <center><h3><a href = 'http://rpi.analyticsdojo.com'>rpi.analyticsdojo.com</a></h3></center> # What's Cooking in Pytho...
[ "jkuruzovich@gmail.com" ]
jkuruzovich@gmail.com
01524294cf5b8cf27b289fe21c0f55e71df64310
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_209/640.py
1ec7a84083cbd5e13ca12e42e33f7c4a3476a9cf
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,749
py
#!/usr/bin/env python3 """ Needs K pancakes Has N pancakes. N ≥ K Choose K, sort them by radii """ import sys import math from collections import namedtuple import itertools def surface_of_a_sorted_stack(pancakes_stack): """Biggest at the end. """ sides = 0 for pancake in pancakes_stack: si...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
bffb3df6ac09d2d3d1572eb04b2d407b6cbb7294
d94cee4f626dad044f6c67424db91d0c7f9e5bc4
/pyBlackScholesAnalytics/example_options_IV_plot.py
b6fec122ea248344dbd4bb86eef99796509ef4af
[]
no_license
FidelAlberto/IT-For-Business-And-Finance-2019-20
07d69d5ed9cd73d1ad6ce3ea5037c7371cfa4103
ce89e25cf6386f4320bb5d430f7e602b4d31567c
refs/heads/master
2022-11-10T07:05:24.910183
2020-07-07T17:16:24
2020-07-07T17:16:24
277,997,727
1
0
null
2020-07-08T05:26:41
2020-07-08T05:26:41
null
UTF-8
Python
false
false
2,964
py
import pandas as pd from market.market import MarketEnvironment from options.options import PlainVanillaOption, DigitalOption from plotter.plotter import OptionPlotter def option_factory(mkt_env, plain_or_digital, option_type): option_dispatcher = { "plain_vanilla": {"call": PlainVanillaOption(mkt_en...
[ "gabriele.pompa@gmail.com" ]
gabriele.pompa@gmail.com
628d32a921e90b24bc4138101a63a41b619c6782
78a4978be0a7461b29051ce23598ad947c720e74
/socialaccount/providers/twitch/provider.py
d6b87a7ce1d87c1eac28b178162c81521abcb2cc
[]
no_license
yingchauhuang/allauth
444bf5c23d5cae09646f7c9bf0d4b0573eaa5f45
ebe70c6aff94cf3f5695d65c88cf022686ad69e3
refs/heads/master
2021-01-20T08:43:48.264694
2013-04-25T08:12:38
2013-04-25T08:12:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
764
py
from allauth.socialaccount import providers from allauth.socialaccount.providers.base import ProviderAccount from allauth.socialaccount.providers.oauth2.provider import OAuth2Provider class TwitchAccount(ProviderAccount): def get_profile_url(self): return 'http://twitch.tv/' + self.account.extra_data.get(...
[ "yingchauhuang@gmail.com" ]
yingchauhuang@gmail.com
244a225c084a8819ffd72ac4f6e573be52d8ab2f
1284718203be50b23dcd1f6159746cfa42a04163
/tensorflow_data/clean_tensorflowdata.py
c4f227f913fa18b2ea29018b08476f2c16b8a0eb
[]
no_license
febert/robustness_via_retrying
8fe4106d7705228ff339f9643518a80c0a243d36
1def282dc22f24b72c51ff1ef9ea1a7a83291369
refs/heads/master
2020-03-31T19:33:39.664525
2018-11-07T21:52:56
2018-11-07T21:52:56
152,502,702
17
2
null
null
null
null
UTF-8
Python
false
false
1,538
py
# go through modeldata directories and delete model* files which are have smaller iterations #than the maximum one import os import re import numpy as np import pdb current_dir = os.path.dirname(os.path.realpath(__file__)) dryrun = False for path, subdirs, files in os.walk(current_dir): # print path # print ...
[ "sdasari@berkeley.edu" ]
sdasari@berkeley.edu
a49b564f0edb92b8eacbfb1b265c3b676a4b460e
7b7d9758c750a3c976100a286be9d84bbd0b10ef
/mars/dataframe/tests/test_initializer.py
737f55acf45a97b9a70d48c1be47ea6d79018700
[ "BSD-3-Clause", "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "ISC", "Apache-2.0", "BSD-2-Clause", "MIT" ]
permissive
Alfa-Shashank/mars
4e91cd640c799b0583504f23dc140d067c9f265b
a75499185d0e533dd532a34515adefb3065f33cc
refs/heads/master
2023-07-17T02:49:07.271772
2021-08-28T12:54:22
2021-08-28T12:54:22
400,260,325
0
0
null
null
null
null
UTF-8
Python
false
false
6,912
py
# Copyright 1999-2021 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...
[ "noreply@github.com" ]
Alfa-Shashank.noreply@github.com
efee1b60658e931869be1effeebc71cc57c36ef1
947fa6a4a6155ffce0038b11f4d743603418ad68
/clean_code/clean_code_submissions/clean_code_assignment_002/tests/test_car_init.py
ad70746ced51945be7583f548dfbbd1975ed7e59
[]
no_license
bharathi151/bharathi_diyyala
bd75e10639d7d22b332d5ce677e7799402dc4984
99f8657d010c790a0e4e4c9d6b57f81814784eb0
refs/heads/master
2022-11-21T12:43:48.401239
2020-07-23T09:05:52
2020-07-23T09:05:52
281,903,260
0
0
null
null
null
null
UTF-8
Python
false
false
4,217
py
import pytest from car import Car @pytest.mark.parametrize( "color, max_speed, acceleration, tyre_friction", [("red", -100, 10, 3), ("red", 0, 10, 3)]) def test_object_creation_with_invalid_max_speed_raise_value_error(color, max_speed, ...
[ "bharathi151273@gmail.com" ]
bharathi151273@gmail.com
d6c7d6c8329aaee73e9c689d0c81e0f664a6d655
03f942566dbfcca04174e908a67d2ff00486c8ee
/scrapy/normattiva.py
2b906a8f11f2576dd5c57847ac92ec779f365742
[ "BSD-3-Clause" ]
permissive
spuliz/normattiva-cad-formatter
68c927e50462be66256ff5db46a9c8d72de8192b
33c465a6af1bbc067d865bce86cecff7389ee1cc
refs/heads/master
2023-02-20T15:44:00.119685
2021-01-13T15:21:51
2021-01-13T15:22:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,805
py
import logging from pathlib import Path import scrapy from scrapy import FormRequest from scrapy.http import Request from scrapy.utils.response import open_in_browser logging.basicConfig(level=logging.DEBUG) class BasicSpider(scrapy.Spider): name = "basic" allowed_domains = ["www.normattiva.it"] start_...
[ "robipolli@gmail.com" ]
robipolli@gmail.com
ddc4765fb189996ed5df5bddbbd54498a4126b26
6b96a11195094a0023a059ba7d5df95ce58c56f1
/1157A.py
55237c73354c6ac9d18d3460d8970ae3f3e033ad
[]
no_license
ldfdev/CodeForces-Div2-Problems
d932b09ee14a430fd0054d5b295f6016553be2b7
d18824a4330a4593099d249496ae22f3f69d5f44
refs/heads/master
2021-08-11T03:29:18.772870
2021-07-25T07:21:09
2021-07-29T20:09:43
72,371,376
1
0
null
null
null
null
UTF-8
Python
false
false
1,042
py
def reduceTrailing0(n, counter): while (n == (10 * (n // 10))): # counter = counter + 1 # new local variable counter is created # counter += 1 # augmented assigment operator n //= 10 # print ("n= ", n) return n; def foundSecondTime(n): if ((foundSecondTime.boolean == True...
[ "ldf.develop@gmail.com" ]
ldf.develop@gmail.com
c32a06118224e888d17f43637a046c0deef42bbb
53784d3746eccb6d8fca540be9087a12f3713d1c
/res/packages/scripts/scripts/client/tutorial/gui/Scaleform/quests/__init__.py
d8213cf2ac2a9f831906b2446b14712ccc543366
[]
no_license
webiumsk/WOT-0.9.17.1-CT
736666d53cbd0da6745b970e90a8bac6ea80813d
d7c3cf340ae40318933e7205bf9a17c7e53bac52
refs/heads/master
2021-01-09T06:00:33.898009
2017-02-03T21:40:17
2017-02-03T21:40:17
80,870,824
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
474
py
# 2017.02.03 21:54:26 Střední Evropa (běžný čas) # Embedded file name: scripts/client/tutorial/gui/Scaleform/quests/__init__.py from tutorial.gui.Scaleform.quests.proxy import SfQuestsProxy __all__ = ('SfQuestsProxy',) # okay decompyling c:\Users\PC\wotsources\files\originals\res\packages\scripts\scripts\client\tutoria...
[ "info@webium.sk" ]
info@webium.sk
c1d276f44c566e89024451054acbb0fa9e6c865d
afc102cf1883cc314ae0c11a0e9f9145897d2d43
/tests/test_time_pdfs.py
84b8455e243aac6d33c03f2d192cf724a87b5a5a
[ "MIT" ]
permissive
bhishmapitamah/flarestack
ea027f92cf8601b3180c49c593e9e439336b67c6
ba02e81c94609fca131a4e487ee328c969186afd
refs/heads/master
2020-12-05T16:24:33.611785
2019-12-03T14:38:32
2019-12-03T14:38:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,927
py
"""A standard time-integrated analysis is performed, using one year of IceCube data (IC86_1). """ import logging import unittest from flarestack.data.public import icecube_ps_3_year from flarestack import create_unblinder from flarestack.analyses.tde.shared_TDE import tde_catalogue_name from flarestack import Minimisat...
[ "robert.stein@desy.de" ]
robert.stein@desy.de
b27bcd1cefcdb95402f1d17ad51df65c2cbf65f4
9351fbd0c75c8835ed4e7a1e93865f698c91f8ee
/server/scripts/run_flask.py
ba6e2522d4872ccdbefd5bf79490d0ea3331576e
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
tongpi/DeepVideoAnalytics
c80c7374620f2c82ef91dac06ce5c782e1872827
e4163f53607fced12561f8f89086bb5c3db1f550
refs/heads/master
2021-05-14T14:51:36.301788
2019-01-11T07:26:39
2019-01-11T07:26:39
115,978,445
1
0
null
2018-01-02T05:34:30
2018-01-02T05:34:30
null
UTF-8
Python
false
false
1,415
py
#!/usr/bin/env python import django import sys, os, logging logging.basicConfig(level=logging.INFO, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%m-%d %H:%M', filename='../logs/flask.log', filemode='a') sys.path.ap...
[ "akshayubhat@gmail.com" ]
akshayubhat@gmail.com
7addb3fc9e32a47f7ff5ca2e0521d981a52f2c1e
a5698f82064aade6af0f1da21f504a9ef8c9ac6e
/huaweicloud-sdk-ocr/huaweicloudsdkocr/v1/model/auto_classification_req.py
c9875bba0d6726567eaf9e554eb8246b0ced3a64
[ "Apache-2.0" ]
permissive
qizhidong/huaweicloud-sdk-python-v3
82a2046fbb7d62810984399abb2ca72b3b47fac6
6cdcf1da8b098427e58fc3335a387c14df7776d0
refs/heads/master
2023-04-06T02:58:15.175373
2021-03-30T10:47:29
2021-03-30T10:47:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,948
py
# coding: utf-8 import pprint import re import six class AutoClassificationReq: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the va...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
94ffe684e192b8ba188b7c6767d2bc026419ac06
925b899cff2fa37e8af46a365f561e083a8818d6
/helpdesk/views/kb.py
d850fd195f9b96b4bf28c0aff2e2af238455e729
[]
no_license
zaiyankhan/djangonew
f2d6ef9ef73ca0fcd0cda14082a20973c93368ce
31e4bd9d3432a260273fac7c3ae08137983ea106
refs/heads/master
2022-12-08T11:57:25.662206
2020-04-05T19:34:59
2020-04-05T19:34:59
253,313,050
0
0
null
2022-11-22T01:59:55
2020-04-05T19:15:58
Python
UTF-8
Python
false
false
1,763
py
""" django-helpdesk - A Django powered ticket tracker for small enterprise. (c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details. views/kb.py - Public-facing knowledgebase views. The knowledgebase is a simple categorised question/answer system to show common resolutions t...
[ "zaiyanwebadda@gmail.com" ]
zaiyanwebadda@gmail.com
55877bb028552264fa68213e8532e762ac398a82
0fcb8fc03ae378c56b7bd9d539e83ebe64adaf04
/264UglyNumberII.py
31209ea2a3ca1977eb8623e1db95fb86135d89c3
[]
no_license
kklook/leetcode
b8aa4c5fb33f009e8c708e2516f3e922a2ab7603
89a29b1b05afcfe61820d90a0b4d250d3af22419
refs/heads/master
2021-01-21T13:49:45.446296
2016-06-02T04:48:35
2016-06-02T04:48:35
55,401,422
1
0
null
null
null
null
UTF-8
Python
false
false
458
py
class Solution(object): def nthUglyNumber(self, n): result = [1] u2 = u3 = u5 = 0 while len(result) < n: min2, min3, min5 = result[u2] * 2, result[u3] * 3, result[u5] * 5 m = min(min2, min3, min5) if m == min2: u2 += 1 if m...
[ "714779883@qq.com" ]
714779883@qq.com
d7d14c19adf27cf997f111e36fa3dc2613f41cc1
9af61335bd9ad90cef67e5b79d4616f09e35ad45
/devel/lib/python2.7/dist-packages/can_msgs/msg/_MagRuler32Data.py
15ab93a975fedfb0e498080e0318b7e94ce5f754
[]
no_license
hel4859/back_end
96fac122e774b7bfce32eef140711e316e327a58
03618e0bfcc6fa66591be1eac49cdf1215fdcf30
refs/heads/master
2021-09-14T20:04:19.739686
2018-02-27T15:27:21
2018-02-27T15:27:21
120,080,632
0
0
null
null
null
null
UTF-8
Python
false
false
6,585
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from can_msgs/MagRuler32Data.msg. Do not edit.""" import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import std_msgs.msg class MagRuler32Data(genpy.Message): _md5sum = "c00f87ffaa1e5c5e9bcb9ae...
[ "helei20132014@gmail.com" ]
helei20132014@gmail.com
abd9f38ee532aabd464c897451c3cfa8c116f49a
49f5c6164d83dcb808ed2b24e3c42e0fc166956f
/rpiWebServer/del_log_sqlite.py
c09f61b6e1e760a6c9d14e48399bbdcfc4a7ecc1
[]
no_license
rmarabini/ElectronMicroscopeMonitor
cb61a7314ceaa0774d7601a29deb3fc917db4acd
480da7a6c21623c3b81d4b94bbe48d80a5422b3d
refs/heads/master
2022-12-09T02:51:56.840525
2020-08-07T14:06:43
2020-08-07T14:06:43
212,605,876
1
0
null
2022-06-22T00:58:29
2019-10-03T14:51:37
Jupyter Notebook
UTF-8
Python
false
false
575
py
#!/usr/bin/env python3 # this file is executed by a crontab delete # entries older than 90 days from databse sqliteDbName # # crontab command # start everyday at 1:00 #0 1 * * * python3 /home/pi/temp_sensor/rpiWebServer/del_log.py import sqlite3 from constants import sqliteDbName, tableName conn = sqlite3.connect(s...
[ "you@example.com" ]
you@example.com
f596eed0b0715802f2480c6a85cbd4252f70dbbe
04740a66d98730afca496eb0cf5e7b5edea5f6e6
/backend/dataset/myPow/pow_18.py
0e4b65e70bec4e7968a4f7a6d22ee3baf0edee61
[]
no_license
mehulthakral/logic_detector
0c06fbd12d77a02c888d0bbe3e6776a18f2f46e3
f7a07a6d229b250da9e02d3fac1a12fa51be97e8
refs/heads/master
2023-04-12T12:45:29.370502
2021-05-05T17:15:02
2021-05-05T17:15:02
323,953,099
2
0
null
2021-05-03T16:50:44
2020-12-23T16:39:28
null
UTF-8
Python
false
false
382
py
class Solution: def myPow(self, x: float, n: int) -> float: myres = 1 if n == 0: return 1 elif n < 0: x = 1/x n = -n curProd = x k = n while (k > 0): if k%2 == 1: myres *= curProd ...
[ "mehul.thakral@gmail.com" ]
mehul.thakral@gmail.com
5633757517fa5eb7fdbe56c815c64c240a79ae98
f4dd8aa4e5476ffde24e27273dd47913c7f9177a
/Dlv2_safe2/tests/parser/aggregates.count.propagation.1.test.py
0eb003383aa203b95d9c5e03476d4a548f170701
[ "Apache-2.0" ]
permissive
dave90/Dlv_safe2
e56071ec1b07c45defda571cb721852e2391abfb
f127f413e3f35d599554e64aaa918bc1629985bc
refs/heads/master
2020-05-30T10:44:13.473537
2015-07-12T12:35:22
2015-07-12T12:35:22
38,256,201
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
input = """ a(1) | a(2). % Count up the IDB predicates during the propagation. b(X) :- a(X). % If the count value is correct, the 'ok' predicate should be true. ok :- #count{V : b(V)} = 1. """ output = """ a(1) | a(2). % Count up the IDB predicates during the propagation. b(X) :- a(X). % If the count valu...
[ "davide@davide-All-Series" ]
davide@davide-All-Series
5ceaba0d7b5c08d2aef4b7c32bac0ebeabe88737
6febd920ced70cbb19695801a163c437e7be44d4
/searching/pairSumToS.py
dab3ae83c6f1f83536e9d25026b47fdf133b8f92
[]
no_license
AngryBird3/gotta_code
b0ab47e846b424107dbd3b03e0c0f3afbd239c60
b9975fef5fa4843bf95d067bea6d064723484289
refs/heads/master
2021-01-20T16:47:35.098125
2018-03-24T21:31:01
2018-03-24T21:31:01
53,180,336
1
0
null
null
null
null
UTF-8
Python
false
false
559
py
''' Created on Dec 16, 2012 @author: dharadarji Search for a pair which sums to S from an array O(n) ''' def pairSum(arr, K): h = {} for i in range(len(arr)): complement = K - arr[i] 'store num and its index' h[arr[i]] = i if complement in h: 'which 2 indexes sum ...
[ "dhaaraa.darji@gmail.com" ]
dhaaraa.darji@gmail.com
4d4ef93132ec25984c28d408f5c7cab30da14944
13b237307614428ceb5ab002106683bf9845625e
/tests/unit/test_util.py
266f24ece78351b4eec84cd486d261c6b7e376a9
[]
no_license
jawilson/pmxbot
8538b2a64f9b2ace083411125bd930b9a3d12c1a
5afeff6f86c8999c9004f5eb4677fb828eb62c35
refs/heads/master
2021-01-01T17:58:13.910973
2013-07-04T17:35:43
2013-07-04T17:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
import pytest from pmxbot import util @pytest.has_wordnik def test_lookup(): assert util.lookup('dachshund') is not None
[ "jaraco@jaraco.com" ]
jaraco@jaraco.com
4efe6681fac8f35a08f472147fc7947169bb6dc4
4e353bf7035eec30e5ad861e119b03c5cafc762d
/QtXml/QXmlContentHandler.py
d46663e9469f27f93a64a44821c3c970b6bae95e
[]
no_license
daym/PyQt4-Stubs
fb79f54d5c9a7fdb42e5f2506d11aa1181f3b7d5
57d880c0d453641e31e1e846be4087865fe793a9
refs/heads/master
2022-02-11T16:47:31.128023
2017-10-06T15:32:21
2017-10-06T15:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,872
py
# encoding: utf-8 # module PyQt4.QtXml # from C:\Python27\lib\site-packages\PyQt4\QtXml.pyd # by generator 1.145 # no doc # no imports class QXmlContentHandler(): # skipped bases: <type 'sip.simplewrapper'> """ QXmlContentHandler() QXmlContentHandler(QXmlContentHandler) """ def characte...
[ "thekewlstore@gmail.com" ]
thekewlstore@gmail.com
971fd76fae5e067b08133a517d4a165e3b6acd24
8eab8ab725c2132bb8d090cdb2d23a5f71945249
/virt/Lib/site-packages/jedi/third_party/typeshed/third_party/2/concurrent/futures/thread.pyi
fa5720024cfb84409b0ed423290406ec87e2879c
[ "MIT", "Apache-2.0" ]
permissive
JoaoSevergnini/metalpy
6c88a413a82bc25edd9308b8490a76fae8dd76ca
c2d0098a309b6ce8c756ff840bfb53fb291747b6
refs/heads/main
2023-04-18T17:25:26.474485
2022-09-18T20:44:45
2022-09-18T20:44:45
474,773,752
3
1
MIT
2022-11-03T20:07:50
2022-03-27T22:21:01
Python
UTF-8
Python
false
false
574
pyi
from typing import Any, Callable, Generic, Iterable, Mapping, Optional, Tuple, TypeVar from ._base import Executor, Future _S = TypeVar("_S") class ThreadPoolExecutor(Executor): def __init__(self, max_workers: Optional[int] = ..., thread_name_prefix: str = ...) -> None: ... class _WorkItem(Generic[_S]): fut...
[ "joao.a.severgnini@gmail.com" ]
joao.a.severgnini@gmail.com
a0a78515b0543462d123997dd21c5567cbf1562a
6a14d1f0fcb07e0a1bbd07372b57d3c4b349d961
/setup.py
e454166026c5eecb4b25e32e7204a067aa1e19f6
[]
no_license
jlqzzz/Cascasde-3D
847603d46a4056bec54877d385d9aca92f5727e2
81ace3d7c43fe17a6ecaee7917f746c57f9a6be3
refs/heads/main
2023-07-02T05:52:30.353437
2021-08-10T13:36:41
2021-08-10T13:36:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,692
py
import os import subprocess from setuptools import find_packages, setup from torch.utils.cpp_extension import BuildExtension, CUDAExtension def get_git_commit_number(): if not os.path.exists('.git'): return '0000000' cmd_out = subprocess.run(['git', 'rev-parse', 'HEAD'], stdout=subprocess...
[ "cqcaiqi@gmail.com" ]
cqcaiqi@gmail.com
fb71486614bd73e9fc0ac93d776053774537ef60
c1c600184f332e6e4b8eeffeb69c135e64f48caf
/code/summary_results.py
39727576dd85561a2bcc1fefa8e030b1f0b626d2
[]
no_license
DamienIrving/resbaz-posters
2dbec1a0376ae446ca0e0587a7d65936c0b944d1
a5fed371dbd48cf3a8233c2ff84bb2a354bbff7b
refs/heads/master
2021-01-21T11:27:16.122252
2018-05-04T01:56:53
2018-05-04T01:56:53
91,741,649
0
1
null
null
null
null
UTF-8
Python
false
false
4,940
py
import argparse import pandas import pdb def filter_data(df, groups): """Filter by research group. Args: groups (list) """ if groups: df = df[df['research_group'].isin(groups)] return df def get_demographics(selected_groups): """Get the demograph...
[ "irving.damien@gmail.com" ]
irving.damien@gmail.com
11c9b83589a909bf942363dd251cb4dac3226fea
2c5b1a444b67ed97586e091fa124629f725773d5
/code/http.client example, IMAGE Crawling.py
c02b517859713fcce89deb2ebf0df1982ff90de6
[]
no_license
MyaGya/Django_Practice
30a79f50860ac6c8590f3a7e38da6e5fc147555d
00dbae17838d4820599ff330ad6fbf6bf9be6515
refs/heads/master
2022-12-20T10:53:07.266554
2020-10-11T16:16:04
2020-10-11T16:16:04
298,262,626
0
0
null
2020-10-11T16:14:11
2020-09-24T11:49:21
Python
UTF-8
Python
false
false
1,582
py
import os from http.client import HTTPConnection from urllib.parse import urljoin, urlunparse from urllib.request import urlretrieve from html.parser import HTMLParser import re os.chdir("C:/Users/kirin/Desktop/tmp") class ImageParser(HTMLParser): def handle_starttag(self, tag, attrs): if tag != 'img': ...
[ "38939015+MyaGya@users.noreply.github.com" ]
38939015+MyaGya@users.noreply.github.com
53fab80aa32cdd6f01d30f2d7ee71052aa928562
95767c1e942bfd2317ee054456114ebbe79504ba
/v16.py
3c7d57093ca81ffeaaafed1de036dce40c279412
[]
no_license
daiyeyue/spider
18bfe067fb2c165ce6680afcaa81a7f3294745e0
a644de5280591b6148da0333a2764db6d8234441
refs/heads/master
2020-08-17T16:51:17.795115
2019-12-11T09:53:44
2019-12-11T09:53:44
215,689,309
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
from urllib import request, parse from http import cookiejar # 创建cookiejar的实例 cookie = cookiejar.MozillaCookieJar() cookie.load('cookie.txt', ignore_discard=True, ignore_expires=True) # 生成 cookie的管理器 cookie_handler = request.HTTPCookieProcessor(cookie) # 创建http请求管理器 http_handler = request.HTTPHandler() # 生成https管理...
[ "150064328@qq.com" ]
150064328@qq.com
b6cb1f80d9fa94463f5f59ede3ee3383787bf5a3
3ace18551fdcd8d27d5e1542e24889c54b1de3a6
/tests/test_extpickle.py
75ad4fde1e04f8df8897ab20a1fac12fc0362717
[ "BSD-2-Clause" ]
permissive
albertz/extpickle
9d7436d140af1373c88c755c7a53b38d525a6a58
4727fa8957e66472f77ae411198c56bceee5091e
refs/heads/master
2021-01-19T04:52:22.706548
2016-06-17T17:07:36
2016-06-17T17:07:36
60,965,046
0
0
null
null
null
null
UTF-8
Python
false
false
2,291
py
from nose.tools import assert_equal, assert_is, assert_is_not import extpickle if extpickle.PY3: from io import BytesIO as StringIO else: # noinspection PyUnresolvedReferences from StringIO import StringIO import better_exchook better_exchook.replace_traceback_format_tb() def pickle(o): f = StringIO...
[ "albert.zeyer@rwth-aachen.de" ]
albert.zeyer@rwth-aachen.de
e40d7819b6893cfabb7dcd0593cd79d5e290254c
c80aae4a3d0f3536640995ed1f8b791b52a0a631
/app/v1/component/transaction/schema/card_schema.py
745411a3bd2f9ca47b91fc518bc4ee9f069504b0
[]
no_license
vking34/two-football
1ad0388a2c946d6910d27a76a0848349ac958db8
c24919dd7cd1b1fd797f8e540d94488a35c1d354
refs/heads/master
2022-12-13T23:42:49.304373
2019-05-29T05:25:57
2019-05-29T05:25:57
179,089,662
0
0
null
2022-12-08T05:03:23
2019-04-02T13:57:49
Python
UTF-8
Python
false
false
241
py
from marshmallow import Schema, fields, validate class CardSchema(Schema): code = fields.String(validate=validate.Regexp('^[a-zA-Z0-9]{16}$'), required=True) password = fields.String(validate=validate.Length(min=6), required=True)
[ "root@localhost.localdomain" ]
root@localhost.localdomain
dbc663573d3c7cf277601af8217997e4ac167abb
993bdf8973c0f4a6261c1ee101ac0bdb915e1980
/CompareArrays.py
078109f2894f068440914f0dd592019764a7f103
[]
no_license
kevinpav/Python
95ce3f70bd057454894deb906e456a967a79781c
ddc98820d2616b95eb9a66372f2b3a438289e176
refs/heads/master
2020-12-25T18:32:16.486795
2017-06-15T21:28:35
2017-06-15T21:28:35
93,956,477
0
0
null
null
null
null
UTF-8
Python
false
false
771
py
# Assignment: Compare Arrays # Write a program that compares two lists and prints a message depending # on if the inputs are identical or not. # # Your program should be able to accept and compare two lists: list_one # and list_two. If both lists are identical print "The lists are the same". # If they are not identical...
[ "pavdog@gmail.com" ]
pavdog@gmail.com
c3ec93f56238eba010df74283766a1150e77c51f
82033c3582f67b98375fc284ffa1e5441d6b28e5
/authentication/urls.py
ff7067ec43659f2a0650be2f5afde2a754ad16c4
[]
no_license
mnogoruk/smola20
6f609e1281d8383081d0bd498da686996418060d
a831497e5a9d5fe1d10286b185b071f4aa62bfd8
refs/heads/master
2023-04-11T06:56:35.181507
2021-04-07T23:21:34
2021-04-07T23:21:34
355,673,108
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
from django.urls import path from rest_framework_simplejwt.views import ( TokenRefreshView, ) from .views import UserCreateView, UserListView, UserEditView, UserChangePasswordView, UserDeleteView, \ CheckView, AccountDetailView, TokenObtainPairWithRoleView urlpatterns = [ path('token/', TokenObtainPairWith...
[ "lionless072@gmail.com" ]
lionless072@gmail.com
0eed8d41d2a1cce38408a2fa634b530d61b5519a
bea2c1ad58a1d45705ba8f9e4527e4ffac4969cb
/tests/test_eigenvalue_solvers.py
dcd1bae2e2d184c4f72ea0988891975f39334b96
[ "BSD-3-Clause" ]
permissive
fethio/sfepy
8423e9083e3144e1fd97d24c31eda1646167ff5b
78efe51d6038dc92f5bfeac4c57614746fe28117
refs/heads/master
2021-01-16T20:59:29.459626
2016-07-01T15:06:11
2016-07-01T15:06:11
61,715,917
1
1
null
2016-07-01T15:06:11
2016-06-22T12:06:07
Python
UTF-8
Python
false
false
3,274
py
import time import numpy as nm from sfepy.discrete.fem.meshio import UserMeshIO from sfepy.mesh.mesh_generators import gen_block_mesh from sfepy.solvers import Solver # Mesh dimensions. dims = nm.array([1, 1]) # Mesh resolution. shape = [21, 21] def mesh_hook(mesh, mode): """ Generate the block mesh. "...
[ "cimrman3@ntc.zcu.cz" ]
cimrman3@ntc.zcu.cz
10b93f7cd9c9775719ab290688c61403e162039a
4ea758f8fe6455941d76ac78a8e4732b8809b252
/Decisions/migrations/0002_auto_20170125_0100.py
5e7ab5a969bff1aba02803dd14ae86fceee312f2
[]
no_license
pscrv/DecisionBibliography
4599032b7ad99415b44ec921c0951cd0ebdfd0fd
b6b0e2799ed1c7b7eb9f111bf4c68e153d015947
refs/heads/master
2020-04-10T17:28:35.468125
2017-02-28T23:28:51
2017-02-28T23:28:51
68,334,636
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.1 on 2017-01-25 00:00 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Decisions', '0001_initial'), ] operations = [ ...
[ "scrv.pscrv@googlemail.com" ]
scrv.pscrv@googlemail.com