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
0a6d677d3bfe4d9fc3186df61d42fd1449051a94
cb0e7d6493b23e870aa625eb362384a10f5ee657
/solutions/python3/0239.py
9306b2072110eb6570e723b0a84bc6ed856cb9dd
[]
no_license
sweetpand/LeetCode-1
0acfa603af254a3350d457803449a91322f2d1a7
65f4ef26cb8b2db0b4bf8c42bfdc76421b479f94
refs/heads/master
2022-11-14T07:01:42.502172
2020-07-12T12:25:56
2020-07-12T12:25:56
279,088,171
1
0
null
2020-07-12T15:03:20
2020-07-12T15:03:19
null
UTF-8
Python
false
false
530
py
class Solution: def maxSlidingWindow(self, nums: List[int], k: int) -> List[int]: ans = [] decreasingQueue = collections.deque() for i, num in enumerate(nums): while decreasingQueue and num > decreasingQueue[-1]: decreasingQueue.pop() decreasingQueue....
8e725276edde728b56862510da106778c1da2780
7f57c12349eb4046c40c48acb35b0f0a51a344f6
/2017/002_AddTwoNumbers_v1.py
1ea044ab8f4b389954d82f3afbf3dffdd586c7d5
[]
no_license
everbird/leetcode-py
0a1135952a93b93c02dcb9766a45e481337f1131
b093920748012cddb77258b1900c6c177579bff8
refs/heads/master
2022-12-13T07:53:31.895212
2022-12-10T00:48:39
2022-12-10T00:48:39
11,116,752
2
0
null
null
null
null
UTF-8
Python
false
false
1,639
py
#!/usr/bin/env python # encoding: utf-8 class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # @param {ListNode} l1 # @param {ListNode} l2 # @return {ListNode} def addTwoNumbers(self, l1, l2): head = p = None carry = 0 while l...
47fc7609c7840f44a8a36732191723aaed6399c9
45c170fb0673deece06f3055979ece25c3210380
/toontown/coghq/BossbotCountryClubKartRoom_Battle00.py
6209ace14272197b5d427ec788369610888baf8c
[]
no_license
MTTPAM/PublicRelease
5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f
825f562d5021c65d40115d64523bb850feff6a98
refs/heads/master
2021-07-24T09:48:32.607518
2018-11-13T03:17:53
2018-11-13T03:17:53
119,129,731
2
6
null
2018-11-07T22:10:10
2018-01-27T03:43:39
Python
UTF-8
Python
false
false
1,780
py
#Embedded file name: toontown.coghq.BossbotCountryClubKartRoom_Battle00 from toontown.coghq.SpecImports import * GlobalEntities = {1000: {'type': 'levelMgr', 'name': 'LevelMgr', 'comment': '', 'parentEntId': 0, 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'ph...
d8194a910febb338161234dd2ca1b0ca28446a04
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03129/s416237729.py
26351727aeb63985e21352d846400af1977248dc
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
n,k = input().split() n = int(n) k = int(k) for l in range(k): l = 2*l +1 c = l if c <= n: print('YES') else: print('NO')
373acc2bcb313e92d96b6a0047fef866c1c722f7
7bc54bae28eec4b735c05ac7bc40b1a8711bb381
/src/scratch/code2023/namespace.py
99715efdf2a7cd185fc763fdba1aab4033c39f8a
[]
no_license
clover3/Chair
755efd4abbd5f3f2fb59e9b1bc6e7bc070b8d05e
a2102ebf826a58efbc479181f1ebb5de21d1e49f
refs/heads/master
2023-07-20T17:29:42.414170
2023-07-18T21:12:46
2023-07-18T21:12:46
157,024,916
0
0
null
2023-02-16T05:20:37
2018-11-10T21:55:29
Python
UTF-8
Python
false
false
5,654
py
import logging import os from tensorflow.python.ops.summary_ops_v2 import create_file_writer import trainer_v2.per_project.transparency.mmp.probe.probe_common from cpath import output_path from misc_lib import path_join from trainer_v2.custom_loop.modeling_common.adam_decay import AdamWeightDecay from trainer_v2.cus...
777ffbf266467e0ceb8a71bb70445652547f6406
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/PyTorch/Forecasting/TFT/triton/runner/maintainer/docker/containers/__init__.py
cef46b3b10a7504c38e16e3ddf806649f598489b
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
NVIDIA/DeepLearningExamples
fe677521e7e2a16e3cb0b77e358f9aab72f8c11a
a5388a45f71a949639b35cc5b990bd130d2d8164
refs/heads/master
2023-08-31T20:57:08.798455
2023-08-23T10:09:12
2023-08-23T10:09:12
131,881,622
11,838
3,124
null
2023-08-28T16:57:33
2018-05-02T17:04:05
Jupyter Notebook
UTF-8
Python
false
false
673
py
# Copyright (c) 2021-2022, NVIDIA 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 a...
6cedc11b21eb576d025e57da6ccc3febbc2bb6c4
d2c80cd70f3220165c7add7ed9a103c0ed1ab871
/python/HOMEWORK/5th_Session/Answers/Class/1/1.py
37d69bb2650fbd94bf752634ed7bc727c291f579
[]
no_license
nervaishere/DashTeam
2a786af8a871200d7facfa3701a07f97230b706e
a57b34a601f74b06a7be59f2bfe503cbd2a6c15f
refs/heads/master
2023-08-24T12:24:18.081164
2021-10-09T21:10:54
2021-10-09T21:10:54
393,689,874
0
0
null
null
null
null
UTF-8
Python
false
false
485
py
a=int(input("enter your first number:" )) b=int(input("enter your second number:" )) c=int(input("enter your third number:" )) maximum=max(a,b,c) minimum=min(a,b,c) if a==maximum and b==minimum: print(a, c, b) elif a==maximum and c==minimum: print(a, b, c) elif b==maximum and a==minimum: print(b, ...
86afd457c842b29e419998349f8353c18483ab10
54ab0f79f5d68f4732ca7d205f72ecef99862303
/benchmarks/distributed/rpc/parameter_server/metrics/ProcessedMetricsPrinter.py
7ff8c3171a83336b367299649c37b08f416d7ca2
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
csarofeen/pytorch
a9dd0f8ffa0642d72df2d5e109a8b4d9c2389cbc
e8557ec5e064608577f81e51ccfe7c36c917cb0f
refs/heads/devel
2023-04-30T02:42:13.558738
2023-03-14T00:50:01
2023-03-14T00:50:01
88,071,101
35
10
NOASSERTION
2023-06-21T17:37:30
2017-04-12T16:02:31
C++
UTF-8
Python
false
false
3,206
py
import statistics import pandas as pd from tabulate import tabulate class ProcessedMetricsPrinter: def print_data_frame(self, name, processed_metrics): print(f"metrics for {name}") data_frame = self.get_data_frame(processed_metrics) print(tabulate(data_frame, showindex=False, headers=dat...
64a2f6689e74b94b8ed76e6cae0bed317078440b
bfc25f1ad7bfe061b57cfab82aba9d0af1453491
/data/external/repositories_2to3/204509/kaggle-liberty-mutual-group-master/code/correlation.py
b6f3c6e3fd83c3c6656f2ae5fe14cd5de6b86512
[ "MIT" ]
permissive
Keesiu/meta-kaggle
77d134620ebce530d183467202cf45639d9c6ff2
87de739aba2399fd31072ee81b391f9b7a63f540
refs/heads/master
2020-03-28T00:23:10.584151
2018-12-20T19:09:50
2018-12-20T19:09:50
147,406,338
0
1
null
null
null
null
UTF-8
Python
false
false
422
py
# -*- coding: utf-8 -*- """ simple code to calculate Pearson correlation between two results """ import pandas as pd import numpy as np print('Reading data...') xgb1 = pd.read_csv("../output/xgboost_1.csv") xgb2 = pd.read_csv("../output/xgboost_2.csv") rf = pd.read_csv("../output/rf.csv") gbm = pd.read_...
7461637d40a3096ec3e12766fc5d9198b8cb2fdb
3e4bb5b4036a66d25a72793c1deaa4f5572d37bf
/apps/pyvcal/tests/independent/revision.py
8c3bae6df8ddd6187220622f0a6e5e8f2e1e65fd
[ "MIT" ]
permissive
hbussell/pinax-tracker
f7f7eb0676d01251d7d8832557be14665755844d
4f6538324b2e1f7a8b14c346104d2f1bd8e1556b
refs/heads/master
2021-01-20T12:06:29.630850
2010-02-03T00:39:05
2010-02-03T00:39:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,092
py
import modulespecific import unittest class TestRevision(modulespecific.ModuleSpecificTestCase): """Test the Revision interface.""" def setUp(self): """Create and connect to a repository.""" self.basic_repo = self.test_module.BasicRepository() self.repo = self.basic_repo.repo() ...
[ "harley@harley-desktop.(none)" ]
harley@harley-desktop.(none)
5d074a0b8bca96ac9ec808db99922c922dfe31a1
bc441bb06b8948288f110af63feda4e798f30225
/monitor_sdk/model/flowable_service/process_instance_pb2.py
4138e633ea17940cb65e4ffd486693a240303547
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
true
6,546
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: process_instance.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pro...
e1777a1bf88087f70635240d8c7855eca9233d1a
cb35fffaab9650a8b89019a0269ad7cdf772f757
/news/migrations/0001_initial.py
849f2c75fec1aa5d94778cd7ca1fc5ab0994583d
[]
no_license
amazing22/my-second-blog
6c75dddae2650269805edfa9c0f2b89ba6f1db48
a5cc02663badcbb2efcaf6d291a634edbdb8a009
refs/heads/master
2021-08-08T03:19:58.404245
2017-11-09T12:32:22
2017-11-09T12:32:22
102,439,698
0
0
null
null
null
null
UTF-8
Python
false
false
1,180
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-11 05:06 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
abb40f6104d91f9d09907f53c15d22b40b43d962
6f1e1c378997bf76942ce6e203e720035169ce27
/104-maximum-depth-of-binary-tree.py
7c47b2cce48c405645fdc77aba59813e9127047c
[ "MIT" ]
permissive
yuenliou/leetcode
a489b0986b70b55f29d06c2fd7545294ba6e7ee5
e8a1c6cae6547cbcb6e8494be6df685f3e7c837c
refs/heads/main
2021-06-16T07:47:39.103445
2021-05-11T09:16:15
2021-05-11T09:16:15
306,536,421
0
0
null
null
null
null
UTF-8
Python
false
false
1,927
py
#!/usr/local/bin/python3.7 # -*- coding: utf-8 -*- from collections import deque from datatype.tree_node import TreeNode class Solution: def maxDepth(self, root: TreeNode) -> int: """dfs""" if not root: return 0 else: l = self.maxDepth(root.left) r = self...
79800080c4d9f0483f339e63026999badf2cd752
4522fc52bc43654aadd30421a75bae00a09044f0
/alfa/diannad.py
f52594100e43207f34f304fe117f59a727bc3de3
[]
no_license
qesoalpe/anelys
1edb8201aa80fedf0316db973da3a58b67070fca
cfccaa1bf5175827794da451a9408a26cd97599d
refs/heads/master
2020-04-07T22:39:35.344954
2018-11-25T05:23:21
2018-11-25T05:23:21
158,779,332
0
0
null
null
null
null
UTF-8
Python
false
false
779
py
from sarah.acp_bson import Recipient from base64 import b64decode import json ff = open('dianna_file', 'rb') config = json.loads(b64decode(ff.read()).decode()) ff.close() def handle_request(msg): if 'request_type' in msg: if msg['request_type'] == 'get': if msg['get'] == 'dianna/local_device'...
5798d06030285a366239004b9efbbf2e57eedf93
5864e86954a221d52d4fa83a607c71bacf201c5a
/spacecomponents/server/components/itemtrader.py
d137971475932934dac6aa414f5db1d9685da1b9
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
4,402
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\spacecomponents\server\components\itemtrader.py from spacecomponents.common.components.component import Component from spacecomponents.common.componentregistry import ExportCall import evetypes class ItemTrader(Component): ...
b018c86a7c6c80f8fa48f8ac5dcca77ac0fc80bc
d8c50195fe04a09bd98e12f0b18a84dbe4a3dfe2
/zeus/tasks/process_artifact.py
a16482e42a4078a95b72babb1012eb62ace1e806
[ "Apache-2.0" ]
permissive
keegancsmith/zeus
44eeac0e9c99635f21bfa7ec744c84be7b40525e
e7bfe3db564ad1bbf449d8197f7d663fe41dd60a
refs/heads/master
2021-09-04T04:34:47.747175
2018-01-12T17:24:11
2018-01-12T21:55:31
117,591,379
0
0
null
2018-01-15T20:19:57
2018-01-15T20:19:57
null
UTF-8
Python
false
false
2,120
py
from flask import current_app from zeus import auth from zeus.artifacts import manager as default_manager from zeus.config import celery, db from zeus.constants import Result from zeus.models import Artifact, Job, Status from zeus.utils import timezone from .aggregate_job_stats import aggregate_build_stats_for_job ...
4e71953ea5d17920c540d29e944877d704f20cc5
4ee4c2cafad449dd60032630bdd249e63d70b5ac
/plugins/xevents/Xlib/xauth.py
4755b353f1bc01bc186ea50603860a9c1df9ddec
[ "MIT", "GPL-2.0-only" ]
permissive
rrojasPy/TurtleBots.activity
4c44ed90b1aadbd0788cdb091fc647deac28d8e8
c18e64cc817b2bd8d8cd80a538ff703f580bbe42
refs/heads/master
2022-10-20T20:46:27.304452
2020-06-17T15:57:11
2020-06-17T15:57:11
273,014,877
0
1
MIT
2020-06-17T15:57:12
2020-06-17T15:44:15
null
UTF-8
Python
false
false
4,168
py
# $Id: xauth.py,v 1.5 2007/06/10 14:11:58 mggrant Exp $ # # Xlib.xauth -- ~/.Xauthority access # # Copyright (C) 2000 Peter Liljenberg <[email protected]> # # 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 F...
3db1c085e8a1c20d8814e3cf539505d24c6036e6
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/reln/targetdeleteargs.py
1ed2258f3814fe86e5b5b2306d6d6bd97c64e2a3
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
4,573
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
0eee2867d2a4f3aca7a06bb5468124d94ef182fe
1e263d605d4eaf0fd20f90dd2aa4174574e3ebce
/components/ally-utilities/__setup__/ally_utilities/logging.py
b8a479b38eb8e2357cf75e837ffe1b544a61d068
[]
no_license
galiminus/my_liveblog
698f67174753ff30f8c9590935d6562a79ad2cbf
550aa1d0a58fc30aa9faccbfd24c79a0ceb83352
refs/heads/master
2021-05-26T20:03:13.506295
2013-04-23T09:57:53
2013-04-23T09:57:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
''' Created on Nov 7, 2012 @package: ally utilities @copyright: 2012 Sourcefabric o.p.s. @license: http://www.gnu.org/licenses/gpl-3.0.txt @author: Gabriel Nistor Provides the logging configurations to be used for the application. ''' from ally.container import ioc # ------------------------------------------------...
aab67d9860ed9c71a79cb65ad39d549bc6174a0b
dca653bb975528bd1b8ab2547f6ef4f48e15b7b7
/tags/wxPy-2.8.10.1/wxPython/wx/lib/gridmovers.py
f007fb1aea41c6a7e5279985ce8feed6a3d70262
[]
no_license
czxxjtu/wxPython-1
51ca2f62ff6c01722e50742d1813f4be378c0517
6a7473c258ea4105f44e31d140ea5c0ae6bc46d8
refs/heads/master
2021-01-15T12:09:59.328778
2015-01-05T20:55:10
2015-01-05T20:55:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,861
py
#---------------------------------------------------------------------------- # Name: GridColMover.py # Purpose: Grid Column Mover Extension # # Author: Gerrit van Dyk (email: [email protected]) # # Version 0.1 # Date: Nov 19, 2002 # RCS-ID: $Id$ # Licence: wxWindows lic...
[ "RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775" ]
RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
c52e5a01d006afaa44d941558a3b4413e7d46507
2c97e11e13bfbabfdae8979385ba0957c7b11270
/ebl/tests/corpus/test_text.py
492a85c0eae4e191f7fa44e750326ebdfcf9d5eb
[ "MIT" ]
permissive
ElectronicBabylonianLiterature/ebl-api
72a2a95291e502ec89a20ebe5c14447e63ac6d92
4910f6fbb57fa213fef55cbe9bc16215aebbaa27
refs/heads/master
2023-08-16T12:42:03.303042
2023-08-16T10:59:44
2023-08-16T10:59:44
135,266,736
11
3
MIT
2023-09-12T09:56:14
2018-05-29T08:39:58
Python
UTF-8
Python
false
false
679
py
import pytest from ebl.transliteration.domain.stage import Stage from ebl.tests.factories.corpus import ChapterListingFactory, TextFactory @pytest.mark.parametrize( "chapters,expected", [ (tuple(), False), (ChapterListingFactory.build_batch(2, stage=Stage.NEO_ASSYRIAN), False), ( ...
917fcebd166d847a92f7e606dacab4fd29e3999f
3f70e754981a941dbc3a24d15edb0a5abe3d4788
/yotta/test/test_ignores.py
a2b9a8a7100fa9cee34d536a142b11b4dc2cd2c5
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ARMmbed/yotta
66cfa634f03a25594311a569ea369a916cff70bf
82d854b43d391abb5a006b05e7beffe7d0d6ffbf
refs/heads/master
2023-03-16T11:57:12.852163
2021-01-15T13:49:47
2021-01-15T13:49:47
16,579,440
184
87
Apache-2.0
2021-01-15T13:46:43
2014-02-06T13:03:45
Python
UTF-8
Python
false
false
5,789
py
#!/usr/bin/env python # Copyright 2015 ARM Limited # # Licensed under the Apache License, Version 2.0 # See LICENSE file for details. # standard library modules, , , import unittest import os # internal modules: from yotta.lib.detect import systemDefaultTarget from yotta.lib import component from yotta.test.cli impo...
21592df1ab03e4bc5631a96f3de6b93a787069ac
e6f0d9716288c7a8ac04aad852343177195fe8a4
/hydrus/client/db/ClientDBMappingsStorage.py
b563cc014146c8b9f8777769f993c37b28e09b00
[ "WTFPL" ]
permissive
dot1991/hydrus
d5fb7960650c7b0cc999832be196deec073146a2
e95ddf7fb65e2a1fc82e091473c4c9e6cb09e69d
refs/heads/master
2023-06-15T19:29:59.477574
2021-07-14T20:42:19
2021-07-14T20:42:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,221
py
import sqlite3 import typing from hydrus.core import HydrusConstants as HC from hydrus.core import HydrusDBModule from hydrus.client.db import ClientDBServices def GenerateMappingsTableNames( service_id: int ) -> typing.Tuple[ str, str, str, str ]: suffix = str( service_id ) current_mappings_table_...
ffdee593dfdcf10d8efd3c6153844ea9bd405272
e5a9f032c160b841fd9cbac9675c06dd2cf4dbe0
/onlinelinguisticdatabase/model/db_update_scripts/0.2.7_1.0a2/old_update_db_0.2.7_1.0a1.py
05ac0ab17bcef143916bb8bf823019897ce1b213
[ "Apache-2.0" ]
permissive
FieldDB/old
bfaa94690dc10f8081ad586663f09b550c2b50aa
f9cdbfe48eb9709f0b2d1e7790e7c2e612937071
refs/heads/master
2021-01-21T04:00:01.450384
2013-08-13T18:14:32
2013-08-13T18:14:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
78,347
py
#!/usr/bin/python # Copyright 2013 Joel Dunham # # 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...
f6e48ed453acfeacb2bc7ce5b0987480f39bf064
225a1d5fca742ae4f502bc346e26d804283e925e
/luna/shortcuts.py
eb802ebf4837f5a06844a562249863d1b76f2dc0
[ "MIT" ]
permissive
y372465774/luna
8ad056fdd956c9fa5508d6d3a657b76785e9641d
ee3bb740f2cee67fa84b3e923979d29fd14015a7
refs/heads/master
2021-06-21T12:43:09.821262
2017-06-03T23:11:47
2017-06-03T23:11:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
from luna import util from luna.compiler import Compiler from luna.parser import Parser def compile(filepath): tree = parse(filepath) compiler = Compiler() return compiler.compile(tree) def interpret(filepath): frame = compile(filepath) frame.run() def parse(filepath): import os content ...
d2e678f126fa9f4a2b06d9a9db003b86dc26c0cb
d668209e9951d249020765c011a836f193004c01
/tools/pnnx/tests/ncnn/test_F_pad.py
88590649883cbbc978a447b89328a1e6e6372751
[ "BSD-3-Clause", "Zlib", "BSD-2-Clause" ]
permissive
Tencent/ncnn
d8371746c00439304c279041647362a723330a79
14b000d2b739bd0f169a9ccfeb042da06fa0a84a
refs/heads/master
2023-08-31T14:04:36.635201
2023-08-31T04:19:23
2023-08-31T04:19:23
95,879,426
18,818
4,491
NOASSERTION
2023-09-14T15:44:56
2017-06-30T10:55:37
C++
UTF-8
Python
false
false
2,062
py
# Tencent is pleased to support the open source community by making ncnn available. # # Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved. # # 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...
ed20f0ff5ef0931674df3d3cb706768578fb1f47
28225a61f2fc33e4f6d56a1941a99301489c0f1e
/GAN/CoGAN(WIP)/main.py
34036d03559776a7b713da6c23fac7aa13909638
[]
no_license
sailfish009/pytorchTutorialRepo
97cb4368b6ac22bd678965d351196b47d52970e1
17d67e64555d2b219d7d53de6a7bfda4172b809b
refs/heads/master
2023-03-08T13:03:57.244087
2021-02-23T11:26:19
2021-02-23T11:26:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,696
py
import argparse import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from torch.optim.lr_scheduler import StepLR from tqdm import tqdm from trainer import * import torchvision.models as models import mnistm import os os.environ["TORC...
9bcc59034c881a3c1b6c4c6e4be0b400fa0191b6
d8da64ecb3a88f8f3196937d3836c7bbafd5e26f
/backend/home/migrations/0002_load_initial_data.py
5ac5736cbfb33d2462efd03c2c2be03900aba58d
[]
no_license
crowdbotics-apps/layouteditor151-1654
990b395d8054e05b0f8739345d5e55623cead88c
75e3614856ab5577da68e9ec4ad0157f462abd6d
refs/heads/master
2022-11-16T05:09:59.518254
2020-07-03T17:54:23
2020-07-03T17:54:23
276,958,333
0
0
null
null
null
null
UTF-8
Python
false
false
1,313
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "layouteditor151" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage...
119c672f5d02ac1dc65310e156c212718e05ac89
d838bed08a00114c92b73982a74d96c15166a49e
/docs/data/learn/Bioinformatics/output/ch8_code/src/metrics/PearsonSimilarity.py
aae4c9870689ccc0776b67c2e785b313c5e05669
[]
no_license
offbynull/offbynull.github.io
4911f53d77f6c59e7a453ee271b1e04e613862bc
754a85f43159738b89dd2bde1ad6ba0d75f34b98
refs/heads/master
2023-07-04T00:39:50.013571
2023-06-17T20:27:05
2023-06-17T23:27:00
308,482,936
1
0
null
null
null
null
UTF-8
Python
false
false
1,725
py
from math import sqrt from statistics import mean from sys import stdin from typing import Sequence import yaml # MARKDOWN def pearson_similarity(v: Sequence[float], w: Sequence[float], dims: int): v_avg = mean(v) w_avg = mean(w) vec_avg_diffs_dp = sum((v[i] - v_avg) * (w[i] - w_avg) for i in range(dims)...
1c77dba5905a2cb966626324f46fa89f88fbd802
e8c31e1c1e667429509783682fc1d4da8ad816e7
/exec -l /bin/bash/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/pubsub/v1/pubsub_v1_messages.py
875964c1532fd14fbfebbcd91aa8a80009d46674
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
amaclean2/TheLessonBox
432008fd05db0473e4c3ddb6fb326ac31542ce81
593b60832bf95d3b92dd711b05d4d992d3f279a5
refs/heads/master
2020-04-30T17:56:16.006932
2019-04-10T04:36:13
2019-04-10T04:36:13
176,994,990
0
0
null
null
null
null
UTF-8
Python
false
false
53,925
py
"""Generated message classes for pubsub version v1. Provides reliable, many-to-many, asynchronous messaging between applications. """ # NOTE: This file is autogenerated and should not be edited by hand. from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding package = 'pub...
12715c528873546ae9649b4dbb52876cf6d0505b
f90522eee8d87c1486f32f3801a67141f7aee15f
/0129.Sum Root to Leaf Numbers/solution.py
a5789c653314b4d53aacfa3e2860b7adcd4c6bbb
[ "Apache-2.0" ]
permissive
zhlinh/leetcode
15a30af8439e664d2a5f1aa328baf96f0f1791da
6dfa0a4df9ec07b2c746a13c8257780880ea04af
refs/heads/master
2021-01-15T15:49:25.525816
2016-09-20T03:24:10
2016-09-20T03:24:10
48,949,767
0
0
null
null
null
null
UTF-8
Python
false
false
1,386
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' ***************************************** Author: zhlinh Email: [email protected] Version: 0.0.1 Created Time: 2016-03-11 Last_modify: 2016-03-11 ****************************************** ''' ''' Given a binary tree containing digits from...
3b6849ee78281ae2e1737249fd55941971b110fc
7ab4cdf01de10faa0b5e6103cb98f4a1447b38e1
/ChromeController/__init__.py
29f415a8675ecb9d895139a843ac001249a70336
[ "BSD-3-Clause" ]
permissive
acskurucz/ChromeController
619a0d46db60809bbe1188dc1d7230e3ef2dba47
4294c1ca7db9569a976710c7c219069eb07d28bf
refs/heads/master
2020-12-08T16:40:32.528694
2020-01-10T12:36:28
2020-01-10T12:36:28
233,036,106
0
0
BSD-3-Clause
2020-01-10T11:47:56
2020-01-10T11:47:55
null
UTF-8
Python
false
false
687
py
from .tab_pool import TabPooledChromium from .chrome_context import ChromeContext from .transport import ChromeExecutionManager from .manager import ChromeRemoteDebugInterface from .Generator import gen from .cr_exceptions import ChromeControllerException from .cr_exceptions import ChromeStartupException from .cr_ex...
9bd4b64ebb38e2e59820dd722970e0e96371a90f
54c22fdcb44c42b1c0855be576e934939a2a2c5c
/contragents/models.py
0b10a0036da5a0300652633c3a2677971c2eb556
[]
no_license
flashboyka/build_yard
84e50600e03c0124f1fdf3991491852f5f469774
c25b419f445bc5c751966850f3860cf19dfd33a1
refs/heads/master
2020-12-11T06:43:44.601335
2020-01-15T14:34:37
2020-01-15T14:34:37
233,791,548
0
0
null
2020-01-14T08:19:53
2020-01-14T08:19:52
null
UTF-8
Python
false
false
716
py
from django.db import models class Contragent(models.Model): last_name = models.CharField(max_length=25, verbose_name='Фамилия') first_name = models.CharField(max_length=25, verbose_name='Имя') middle_name = models.CharField(max_length=25, verbose_name='Отчество') email = models.EmailField(verbose_nam...
9dff0431f838a1a504fe9b24ea59c733529ae5fa
25d6371928dc91e2593edf04d7428f4cf886da42
/students/wzh/pyfile/playmusic.py
3cec9f688f00be432a2e29637a297462a40713ab
[]
no_license
ophwsjtu18/ohw
7d4ecca6fc98cadbabd3c088c0d69efa3d20a10f
67677baad6d0b92d3d453309b66ed274c097dfd6
refs/heads/master
2021-05-25T10:28:59.872340
2018-12-19T13:18:34
2018-12-19T13:18:34
127,097,829
1
3
null
2018-11-07T10:53:03
2018-03-28T06:58:57
Python
UTF-8
Python
false
false
929
py
import serial import serial.tools.list_ports import time import csv print ('hello') ports = list(serial.tools.list_ports.comports()) print (ports) f=open("song.csv",'r') songs=list(csv.reader(f)) song_dictionary={} i=0 for song in songs: song_dictionary[song[0]]=song[1:] i+=1 for p in ports: ...
7fff60cccdbfed5de914c812bb9d37476fabd96d
4ed038a638725ac77731b0b97ddd61aa37dd8d89
/cairis/gui/TraceDialog.py
93dfa69fbf3f7c968e04ca274567b4895b3f5e8f
[ "Apache-2.0" ]
permissive
RachelLar/cairis_update
0b784101c4aff81ff0390328eb615e335301daa2
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
refs/heads/master
2021-01-19T06:25:47.644993
2016-07-11T20:48:11
2016-07-11T20:48:11
63,103,727
0
0
null
null
null
null
UTF-8
Python
false
false
3,041
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...
674c9caf989517d884df5cd86a772c7b2a442b8f
ebd5c4632bb5f85c9e3311fd70f6f1bf92fae53f
/PORMain/pirates/minigame/PotionGame.py
92f957bb8a84e1eba8affaa25371084e8a01f38f
[]
no_license
BrandonAlex/Pirates-Online-Retribution
7f881a64ec74e595aaf62e78a39375d2d51f4d2e
980b7448f798e255eecfb6bd2ebb67b299b27dd7
refs/heads/master
2020-04-02T14:22:28.626453
2018-10-24T15:33:17
2018-10-24T15:33:17
154,521,816
2
1
null
null
null
null
UTF-8
Python
false
false
20,463
py
from panda3d.core import CardMaker, NodePath, TextNode # File: P (Python 2.4) from direct.interval.IntervalGlobal import Sequence, Func from direct.showbase.ShowBaseGlobal import * from direct.interval.IntervalGlobal import * from direct.gui.DirectGui import * from pirates.piratesgui.GuiPanel import * from direct.show...
a39ac72e3dd8293bb7c5a117983a0650437216be
8e52e07428cb9ded3e96db45e9d9e4444ba80224
/vegetableOrder/migrations/0007_auto_20170422_1146.py
dff84affaada50f0eb21a18d502b84f3ebcf05f5
[]
no_license
prashantspandey/mohanamandi
c2f8a1763813f7df21db7579bcb44b9f390d870f
99231feaa9eb442d20a65a6754ec5b1df4e5208c
refs/heads/master
2021-01-20T05:15:31.741033
2017-04-29T05:44:32
2017-04-29T05:44:32
89,766,250
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-22 06:16 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('vegetables', '0005_vegetable_subpricekg'), ('vegetabl...
b996c977517f5ce622b698b1872d39647e064362
06a863150a7a3a7bfc0c341b9c3f267727606464
/lib/gii/qt/controls/Settings.py
417bb2b0cbf6570f8ede7d3aaa6f6f5318978c4f
[ "MIT" ]
permissive
brucelevis/gii
c843dc738a958b4a2ffe42178cff0dd04da44071
03624a57cf74a07e38bfdc7f53c50bd926b7b5a7
refs/heads/master
2020-10-02T00:41:02.723597
2016-04-08T07:44:45
2016-04-08T07:44:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
from PyQt4 import QtCore globalSettings=QtCore.QSettings('Hatrix','GII') def setGlobalSettingFile(filepath): global globalSettings globalSettings=QtCore.QSettings(filepath, QtCore.QSettings.IniFormat) def getGlobalSettings(): return globalSettings def setSettingValue(name, value): globalSettings.setValue(name, ...
ddcb78be7a534d96575e83381e99bcf1d76d713c
a2706c66c4f2769c00fc5f67e1a85742cfa7e17c
/MODULES/Execution_UserExecution_NtCreateSection.py
f244911cfec971ee6844a6865d5e9bd77056d65a
[ "BSD-3-Clause" ]
permissive
Jeromeyoung/viperpython
48800312dcbdde17462d28d45865fbe71febfb11
ba794ee74079285be32191e898daa3e56305c8be
refs/heads/main
2023-09-01T18:59:23.464817
2021-09-26T04:05:36
2021-09-26T04:05:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,122
py
# -*- coding: utf-8 -*- # @File : SimpleRewMsfModule.py # @Date : 2019/1/11 # @Desc : import time from Lib.ModuleAPI import * class PostModule(PostPythonModule): NAME_ZH = "NtCreateSection进程注入" DESC_ZH = "使用NtCreateSection及NtMapViewOfSection远程线程注入技术打开共享内存,将shellcode注入到其他进程中" NAME_EN = "NtCreateSecti...
22ff3c8ec043a748f85e7e330611f00ac0949c95
e86d020f8ade86b86df6ad8590b4458a9d415491
/projects/test-crrr/base_mission/utils/check_logger.py
c944ef41446f4be841f1c6a115e7d739a4cbadc0
[]
no_license
g842995907/guops-know
e4c3b2d47e345db80c27d3ba821a13e6bf7191c3
0df4609f3986c8c9ec68188d6304d033e24b24c2
refs/heads/master
2022-12-05T11:39:48.172661
2019-09-05T12:35:32
2019-09-05T12:35:32
202,976,887
1
4
null
2022-11-22T02:57:53
2019-08-18T08:10:05
JavaScript
UTF-8
Python
false
false
1,610
py
# -*- coding: utf-8 -*- import hashlib import logging import os import sys from cr_scene.utils.uitls import get_cr_scene_name from cr import settings def scene_log_key(scene_name, name): _key = hashlib.md5('{}-scene'.format(scene_name)).hexdigest() return _key class SceneLogFactory(object): logger_po...
de84dd671bfd25d67ce441fe83f372dad36cf79d
d62863d049c0206bfa744ca4c9e886030bfce1ab
/apps/sw_shop/sw_order/admin.py
8f33c1274fda9fbe76529288d4886588f0b35c83
[]
no_license
jurgeon018/box
51738b99e640202936ed72357d3c67d2517e589b
50b84a0afa73fab85a00eef54194f3c126d15397
refs/heads/master
2021-07-17T13:37:08.665292
2020-10-15T09:50:33
2020-10-15T09:50:33
232,013,297
0
1
null
2020-03-27T02:16:44
2020-01-06T03:01:34
Python
UTF-8
Python
false
false
9,541
py
from django.utils.translation import gettext_lazy as _ from django.contrib import admin from django.shortcuts import reverse, render, redirect from django.utils.html import mark_safe from django.conf import settings from box.apps.sw_shop.sw_order.models import Order, OrderStatus, Payment # from box.apps.sw_payment.l...
e5766dadf98150deffa339dbefa2d888f7af7282
44869749f8af2b548a2fbb23403e1a623e29d691
/mysite/mysite/settings.py
208621a7982a95d9f9f745f6e2c27df05323735f
[]
no_license
Ojou/my-first-blog
4536c4db194d325508fd000ccd5919a722772994
e29be78c3c87b39c474dabf2a27387797c2d2a41
refs/heads/master
2016-08-12T15:27:52.761420
2016-03-12T05:06:06
2016-03-12T05:06:06
53,712,106
0
0
null
null
null
null
UTF-8
Python
false
false
3,164
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.9. For more information on this file, see https://docs.djangoproject.com/en/1.9/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.9/ref/settings/ """ import os # Bu...
8ea309b27efb5e75178ac071e23b510c86ee4065
270611d0cfe130fa3c1aa84665e0748c1ddb6ab8
/instamojo/__init__.py
7640c9159f96d87251ad5444549796488e5c03cd
[ "BSD-2-Clause" ]
permissive
iambibhas/instamojo-py
1096a8b81fb3a6b9839cb10c4dd5dc246f2752c7
1e80bde09d63cee56f403e4b635e0a62c014af81
refs/heads/master
2021-01-14T12:21:19.714552
2014-11-08T17:23:42
2014-11-08T17:23:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
27
py
from .api import Instamojo
2d2a84da60052c7bbdf576522c35aae0207f76a4
75136cd1865bd72ebad8ba31446d57d9fdedce22
/pepysdiary/common/templatetags/search_tags.py
b9f9268357944463a88b44a9e284a80ec47c36ea
[]
no_license
hugovk/pepysdiary
ca9a1d39ed62e7299509daa69b5df0d5164aec31
1a67c11efb62f5392914732ad15a4db71872ed05
refs/heads/main
2021-12-03T01:36:16.626676
2021-11-08T17:29:51
2021-11-08T17:29:51
60,296,270
0
0
null
2016-06-02T20:48:07
2016-06-02T20:48:05
null
UTF-8
Python
false
false
1,582
py
from django import template from django.utils.html import format_html from django.utils.safestring import mark_safe from pepysdiary.common.utilities import hilite_words, trim_hilites register = template.Library() @register.simple_tag() def search_summary(obj, search_string): """ Returns the HTML to display...
b6a956b9818da0da10270c5fa6aa0eaccf12a1d7
743c1aa4ae8336645785a5afd768a3c6c7189439
/BGWpy/BGW/__init__.py
460615f95d9f5ce43be3666023199be3687052ec
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause-LBNL" ]
permissive
kcantosh/BGWpy
566e03e888ab17b7d8ff7a68a6033d121532d905
fc5eda118ccdd18cdcdb88141df2b673456e8bd2
refs/heads/master
2021-06-25T14:21:33.426910
2017-08-28T18:43:40
2017-08-28T18:43:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
from __future__ import print_function from . import inputs # Core from . import bgwtask # Public from .kgrid import * from .epsilontask import * from .sigmatask import * from .kerneltask import * from .absorptiontask import * from .inteqptask import * __all__ = (epsilontask.__all__ + sigmatask.__all__ + ...
3055b260778cf417707db8721cce2a574e8742a8
a9e3f3ad54ade49c19973707d2beb49f64490efd
/Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/discussion/rest_api/pagination.py
244d9b96a12060f9438120bf55da8fccfa069296
[ "AGPL-3.0-only", "AGPL-3.0-or-later", "MIT" ]
permissive
luque/better-ways-of-thinking-about-software
8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d
5809eaca7079a15ee56b0b7fcfea425337046c97
refs/heads/master
2021-11-24T15:10:09.785252
2021-11-22T12:14:34
2021-11-22T12:14:34
163,850,454
3
1
MIT
2021-11-22T12:12:31
2019-01-02T14:21:30
JavaScript
UTF-8
Python
false
false
2,689
py
""" Discussion API pagination support """ from edx_rest_framework_extensions.paginators import NamespacedPageNumberPagination from rest_framework.utils.urls import replace_query_param class _Page: """ Implements just enough of the django.core.paginator.Page interface to allow PaginationSerializer to wor...
09c13e8d7e182c779642a9945ae1d18db780e082
dec7cac75fb472ab28b57228496b17fdbcf5df1d
/accounting/views.py
2b319b1591a9b8b214b969d1b42c9bb045ff0ca9
[]
no_license
sofide/apicolapp
a21be58982957b1115f73a3cc80bbce58832a739
32f9df4109540c6fb0c07dc9de2f557ec583a9d9
refs/heads/master
2021-06-22T22:34:53.075938
2019-03-28T01:27:13
2019-03-28T01:27:13
133,557,526
0
0
null
null
null
null
UTF-8
Python
false
false
8,131
py
from datetime import datetime, timedelta, date from django.contrib.auth.decorators import login_required from django.db.models import Q, Sum, Count, Prefetch from django.db.models.functions import Coalesce from django.shortcuts import render, get_object_or_404, redirect from accounting import forms from accounting.ma...
c2d6f67753d23b501788801fb5ddc9bf1b830795
6cf46f85debb1b0505c0edcbc7296f50a44a615d
/dexy/tests/plugins/test_wordpress_filters.py
59635a82d9934c4853b96ef03431438d88b9812a
[ "MIT" ]
permissive
aioupload/dexy
27b7f5051417093d8336e39d71e824b3ef5c9f56
350b7ed23d2f3aab50097aabf3481229d75d1cf7
refs/heads/master
2021-01-16T22:59:11.707350
2013-08-05T06:08:00
2013-08-05T06:08:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,062
py
from dexy.doc import Doc from dexy.tests.utils import TEST_DATA_DIR from dexy.tests.utils import wrap from dexy.tests.utils import capture_stdout from mock import patch import dexy.exceptions import json import os import shutil import dexy.filter import dexy.wrapper def test_docmd_create_keyfile(): with wrap(): ...
179136706a176c379e4e834a4aa983bf7e7f6ac6
421f42acd37d3d02dda23bad4bc68cc58b481c00
/forensics/ekoparty-vnc/getvnckeys.py
0656a55d4ed0be982b14ead90bf9394e324d41a2
[]
no_license
sourcekris/ctf-solutions
6963d0a1524c4d5bd738d187e72f571bf608bd7a
3251f113c3a94732e432885fc785fb71d67d05e8
refs/heads/master
2021-08-27T18:13:00.902502
2021-08-25T07:59:46
2021-08-25T07:59:46
38,923,614
5
6
null
null
null
null
UTF-8
Python
false
false
1,048
py
#!/usr/bin/python # # Extract the VNC keystrokes from a PCAP using tshark # # kris, Capture The Swag # # http://github.com/sourcekris/ # import subprocess import sys import os import re if len(sys.argv) < 2: print "Usage: " + sys.argv[0] + " <pcap or pcapng>" sys.exit(-1) # read the tshark data in PDML format - ho...
4357960f8e003e9c912bd7ac3fd0ed1852c7932b
169e75df163bb311198562d286d37aad14677101
/tensorflow/tensorflow/contrib/autograph/utils/builtins_test.py
0c2312178a921037fa419818bf309d671c33914d
[ "Apache-2.0" ]
permissive
zylo117/tensorflow-gpu-macosx
e553d17b769c67dfda0440df8ac1314405e4a10a
181bc2b37aa8a3eeb11a942d8f330b04abc804b3
refs/heads/master
2022-10-19T21:35:18.148271
2020-10-15T02:33:20
2020-10-15T02:33:20
134,240,831
116
26
Apache-2.0
2022-10-04T23:36:22
2018-05-21T08:29:12
C++
UTF-8
Python
false
false
4,569
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 applica...
c8e05da4b1e368920092b454e82ee0183422509a
0c6b47f5647fa048e701c743bd61e05667b3b569
/101_Common_Dialogs/SingleChoiceDialog/__demo__.py
3556b9bda73bf996e3b30c39c0042e5e6c1cfb11
[]
no_license
pythonthings/wxPython-Sample-Apps-and-Demos
bbfa5c307c08bd0e732083a7e7ec0aaefa234033
65e6828e92217445367420c9c2ebb4a7ed9a1d6e
refs/heads/master
2022-10-02T18:41:01.697132
2020-06-10T00:18:15
2020-06-10T00:18:15
281,526,555
1
0
null
2020-07-21T23:32:51
2020-07-21T23:32:51
null
UTF-8
Python
false
false
2,243
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #-MetaData -------------------------------------------------------------------- __doc__ = """ This module contains the meta data needed for integrating the samples in the directory into the wxPython demo framework. Once imported, this module returns the following informati...
604e26e48551410e05524b6f2d4cec5c440f5fbf
ff1137a7d8f9c01632cf757495e065ec5e3817a2
/爬虫精进/第9关/第9关 selenium提取网页源代码后用bs解析.py
900588bc680a8a8384ae9a8b2ae68d504b017129
[]
no_license
yuqiuming2000/Python-code
3d5e5d8ba5c5f477b4cfab67b0d63d838eefc591
b16a6c425d4bf400df6b365d091f56bc8c5c4d34
refs/heads/master
2023-06-22T04:22:25.991172
2021-07-24T13:49:38
2021-07-24T13:49:38
389,100,344
0
0
null
null
null
null
UTF-8
Python
false
false
571
py
from selenium import webdriver #从selenium库中调用webdriver模块 import time from bs4 import BeautifulSoup driver = webdriver.Chrome() # 设置引擎为Chrome,真实地打开一个Chrome浏览器 driver.get('https://localprod.pandateacher.com/python-manuscript/hello-spiderman/') # 访问页面 time.sleep(2) # 等待2秒 page_source=driver.page_source print(page_source) ...
317167f3c7c18125e0cf23dbcaad084d793b878d
01fa2aca31eb73a559d192fd29e44350f26a13a9
/HAX/18.CocoJoe/script.module.lambdascrapers/lib/lambdascrapers/sources_quick/unchecked/putlockersio.py
66419b703d52903a2d204fa04395dc04459b9fd2
[ "Beerware" ]
permissive
RandomIntermition/k4y108837s
b4beedeff375645bd4fa9ad348631a9a9f3640b6
e9115aad49795dfe30a96c278cedaf089abcc11d
refs/heads/master
2022-05-01T18:45:57.298903
2022-03-30T03:41:08
2022-03-30T03:41:08
109,356,425
1
0
null
2019-11-08T02:20:47
2017-11-03T05:36:48
Python
UTF-8
Python
false
false
1,662
py
# -*- coding: UTF-8 -*- # -Cleaned and Checked on 10-16-2019 by JewBMX in Scrubs. import re from resources.lib.modules import client from resources.lib.modules import cleantitle from resources.lib.modules import more_sources class source: def __init__(self): self.priority = 1 self.language = ['en...
7cc3e50af6a48ca74abfc02656c9019972018641
499fc7e223551d434582417353203ecd53b7d731
/DataTypeandManipulation/TypeCasting.py
efab449b81a11562cf61c91d04d3c343f363a5ba
[]
no_license
pravinherester/LearnPython
df53045e4b098a9923e7ecbbeffedb75f6c82f81
05c06dccd9ac45fc30cf0675f89f0bb2c7db6644
refs/heads/master
2023-08-11T10:12:50.494666
2021-06-19T04:44:12
2021-09-10T01:20:58
338,636,734
0
1
null
null
null
null
UTF-8
Python
false
false
342
py
num_char=len(input("What is your name")) print(type(num_char)) new_num_char=str(num_char) print("After type casting") print(type(new_num_char)) print("Your name has "+new_num_char+ " characters") # This will not break as the Type of new_num_char is String now #other #Guess what will print print(100+float(100.75)) pr...
edd2eb581d44ecbc4d3ec57ebcfa7c00cca0f24f
9dab93d895d0f496452d91b9e0eba365a7c547f2
/hw7/problem1.py
a4e32c1622ee8bb0a5d8cbfafabb6e02061a2493
[]
no_license
codeAligned/CS156
8d758175f29015338b4f179f24962847b54e6bce
25012963985ab325bbd4bdc8a9eba914259a5249
refs/heads/master
2020-05-17T20:54:51.935297
2014-11-12T05:01:36
2014-11-12T05:01:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,438
py
import random import math import numpy as np from numpy.linalg import * from numpy.matlib import * import matplotlib.pyplot as plt def dotProduct(list1, list2): assert(len(list1) == len(list2)) result = 0 for i in range(len(list1)): result += (list1[i] * list2[i]) return result def generatePoint(): x = rand...
[ "=" ]
=
3423017cde1fa95647f30b289fef5e2249c48c80
25114b282d36bf67448582fa73eb50ee350c4da7
/multicolor_backend_theme/__init__.py
aa487b80d227678e989bbb6cdf900a094b116d0e
[]
no_license
inst-sol4u/CybroAddons
7b888628e1a1bdc21eee3c82f0c975271cc5f238
39a50294785209c4964f5925d7129bdc9d4af4e4
refs/heads/14.0
2023-08-18T11:51:45.494958
2021-09-24T09:50:43
2021-09-24T09:50:43
372,519,765
0
0
null
2021-05-31T13:40:19
2021-05-31T13:40:19
null
UTF-8
Python
false
false
992
py
# -*- coding: utf-8 -*- ############################################################################## # # Cybrosys Technologies Pvt. Ltd. # # Copyright (C) 2020-TODAY Cybrosys Technologies(<https://www.cybrosys.com>). # Author: Cybrosys Techno Solutions (<https://www.cybrosys.com>) # you can modify it unde...
a7ea9d535013853895485bb04c94a3fbfcc123c2
7fc03f7d28ea7bbdca650a51a23fc0b13cbefde1
/reinforcement_learning/0x00-q_learning/1-q_init.py
d42a24aba80da020f4cb8c8a81a025823604dba3
[]
no_license
HeimerR/holbertonschool-machine_learning
54c410e40d38635de482773f15e26ce1c2c95e46
e10b4e9b6f3fa00639e6e9e5b35f0cdb43a339a3
refs/heads/master
2021-07-24T09:33:25.833269
2021-01-14T00:21:45
2021-01-14T00:21:45
236,603,791
0
6
null
null
null
null
UTF-8
Python
false
false
401
py
#!/usr/bin/env python3 """ Initialize Q-table """ import numpy as np def q_init(env): """ initializes the Q-table - env is the FrozenLakeEnv instance Returns: the Q-table as a numpy.ndarray of zeros """ action_space_size = env.action_space.n state_space_size = env.observation_space.n ...
10778c9059cfa6f612f36c918719dfe2545ca72a
c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd
/google/cloud/asset/v1/asset-v1-py/tests/unit/gapic/asset_v1/test_asset_service.py
deb23fdbb57c40a7e82e84f0631510dfa2f774ef
[ "Apache-2.0" ]
permissive
dizcology/googleapis-gen
74a72b655fba2565233e5a289cfaea6dc7b91e1a
478f36572d7bcf1dc66038d0e76b9b3fa2abae63
refs/heads/master
2023-06-04T15:51:18.380826
2021-06-16T20:42:38
2021-06-16T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
152,276
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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
f622e236dad0ae272bf7f9ba003242f9017f8e62
faf512a387355c5a6e5af59fc48aa2a79762344c
/playground/bot_runner.py
2dfbcdc23780892642059da3e9d5e2c61716e453
[ "Apache-2.0" ]
permissive
lawrencechen0921/ExcelLexBot
f80f848058af284f8595206a9e510baf21d013b1
97041c47c06ba42cb10630d78b2300b113b6b3bf
refs/heads/master
2021-07-09T10:58:51.155580
2019-10-28T08:15:15
2019-10-28T08:15:15
229,690,075
0
0
Apache-2.0
2021-03-20T05:10:26
2019-12-23T06:23:00
null
UTF-8
Python
false
false
271
py
import boto3 import json client = boto3.client('lex-runtime', region_name='us-east-1') response = client.post_text( botName='ScheduleAppointmentBot', botAlias='$LATEST', userId='UserOne', inputText='book a hotel') print(json.dumps(response, indent=4))
28fb47d43c5f1a043a47867a3eea10ad3e89707d
53cb38bba0f95ddbffd83a9e45c9eed602694265
/muddery/commands/default_cmdsets.py
9564a9cc053c9b9d55621a2346b48167a0c66bd4
[ "BSD-3-Clause" ]
permissive
elove88/muddery
4356eb0203edeb26285b2bf032f410a8e6e4fb3b
55dabb2d8d5fbf87ef0e7f2a2a0722251510a254
refs/heads/master
2021-09-05T23:30:33.835858
2018-01-31T13:50:26
2018-01-31T13:50:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,733
py
""" Command sets All commands in the game must be grouped in a cmdset. A given command can be part of any number of cmdsets and cmdsets can be added/removed and merged onto entities at runtime. To create new commands to populate the cmdset, see `commands/command.py`. """ import traceback from evennia import CmdSet...
98981f55c9eccb1768ee4877f1033ddb4650bbc7
749cf1cfba5e0113b9619d46aa55edc7abb4aca4
/src/scs_mfr/test/test.py
ecca4b9e84bbd9f1834c0eea55da6dda3ad04b4f
[ "MIT" ]
permissive
caspar/scs_mfr
b65fcd51e6561370f9fb1d6482f0717d7058e535
90f3604190c883c39ceddd1ce56a36d72e628e8d
refs/heads/master
2020-03-22T22:07:35.063124
2018-07-06T12:20:38
2018-07-06T12:20:38
140,734,794
0
0
null
2018-07-12T15:52:36
2018-07-12T15:52:36
null
UTF-8
Python
false
false
1,278
py
""" Created on 18 May 2017 @author: Bruno Beloff ([email protected]) """ from abc import abstractmethod # -------------------------------------------------------------------------------------------------------------------- class Test(object): """ classdocs """ # ------------------...
0bb37f377bb2db2265a5c0135993cc684a7e3d92
467a828e4343c1da949b2ff3559dfbd3281124ab
/multi_detection/ckpt_predict_dir.py
1985dbbcac6e23cf9cf1d99209193024fcb7a57d
[]
no_license
sunyihuan326/kx_detection
59a45b09e65544e11a85debeec674fb5e427744c
ecdcc30e0c9afcf80684cc79c175a85f067c2c50
refs/heads/master
2021-06-19T04:06:54.821845
2021-05-11T08:01:11
2021-05-11T08:01:11
210,282,665
0
0
null
null
null
null
UTF-8
Python
false
false
9,676
py
# -*- encoding: utf-8 -*- """ 预测一个文件夹图片结果 @File : ckpt_predict.py @Time : 2019/12/16 15:45 @Author : sunyihuan """ import cv2 import numpy as np import tensorflow as tf import multi_detection.core.utils as utils import os import time from multi_detection.food_correct_utils import correct_bboxes, get_potatoml i...
1e290eaf806b12b3d70a04f888edc40c280cb978
dc871754a421c85177dc00134e227845822154e5
/Python/EmpireXpOOP2o/Oyun.py
18526e2a88e5c73b3f009183a49333e01f692477
[]
no_license
ibrahimylmz3/MedipolCodes
5af3826dff44be9ce658cf61d637e2c1a4babaf6
839afdd74568329184e579805c112773c7b83bc8
refs/heads/master
2020-11-27T04:37:25.812720
2019-12-20T15:51:52
2019-12-20T15:51:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
121
py
import Dunya game = Dunya.dunya() game.oyuncuSayisi = 6 game.oyuncuEkle() game.ulkleriOlustur() game.komsulariBelirle()
bb711b9545190d0bb301ef3888269d53576f13a7
8d9318a33afc2c3b5ca8ac99fce0d8544478c94a
/Books/Casandra DB/opscenter-5.1.0/lib/py-win32/2.7/twisted/internet/address.py
aea84bf68bbed91d502c7072beb96a2ac2766dff
[]
no_license
tushar239/git-large-repo
e30aa7b1894454bf00546312a3fb595f6dad0ed6
9ee51112596e5fc3a7ab2ea97a86ec6adc677162
refs/heads/master
2021-01-12T13:48:43.280111
2016-11-01T22:14:51
2016-11-01T22:14:51
69,609,373
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:a515bfec9ac845d6ff70998513414bc502c31a8567def729df1252d0faeb057b size 4196
69ee5e0cc7739ebcbee9d1a3e5819b28dde34833
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/signal/testcase/firstcases/testcase1_016.py
e81237d6fa82e693c08ba184b53c1b1c193da30e
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
3,616
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
d38fe136135727031be58d9f7ae57117d9659ff6
0d45e05e1eda670b233081118bbcb63743c166db
/web/act_assist/settings.py
98cdcc4d0b82667a1b1f93b5264afd75a34cc1cd
[ "MIT" ]
permissive
maleriepace/activity-assistant
24ef7e4e6488e31726ba21c07acda83a7119f979
c5baa21f3d22db18da591ddf76e7bf6a7e7229cc
refs/heads/master
2023-01-31T15:53:30.100115
2020-12-13T14:41:04
2020-12-13T14:41:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,996
py
""" Django settings for hassbrain_web project. Generated by 'django-admin startproject' using Django 2.1.2. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import...
3e28462872d134c1fbcd211fc3c8b0fff0004cc3
c50c7111279fc9cfb75f414bf72b7faeb3aa93bc
/raise.py
7161dd53a065fee7228038e606e670a75e67b1e7
[]
no_license
Hemanthtm2/Python
d95cbd89778074dc87d75e86c75f998b6e419c93
64a21c9a6dadf2bb92616fbdc4209119afcaa562
refs/heads/master
2021-08-24T07:24:20.509134
2017-11-07T18:35:44
2017-11-07T18:35:44
108,621,725
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
#!/usr/bin/pyrhon def inputnumber(): x=input('Pick a number') if x==17: raise ValueError,'17 is a bad number' return x print inputnumber()
37af8208dcb36c4044221093bb7d68406fb2b9e3
9cd8f44aad83309c2a5dd6886bb4cab82453ad4f
/usr/lib/python2.7/dist-packages/ansible/plugins/action/__init__.py
8f0c1055725ae44ac60ee0f524e1027040857a3f
[ "Python-2.0" ]
permissive
kojitaniguchi/isucon-summer
4608c1a93d728432ff948340b888c9eb2aa8a34b
e790277ecbdda638bd0d212460a15b601c0d47dc
refs/heads/master
2022-10-30T00:14:59.442906
2017-08-25T09:01:16
2017-08-25T09:01:16
101,384,555
1
1
null
2022-10-28T10:54:17
2017-08-25T08:41:55
null
UTF-8
Python
false
false
27,151
py
# (c) 2012-2014, Michael DeHaan <[email protected]> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) an...
c8f4bb67eb5023fb6754b7accaaecaa3d3c89059
b7312dc013ba06e5b44b33c0411f4948c4794346
/study4/decorator3.py
866d868685ac97384a6c6229bf76635ac05af61f
[]
no_license
GaoFuhong/python-code
50fb298d0c1e7a2af55f1e13e48063ca3d1a189f
7d17c98011e5a1e74d49332da9f87f5cb576822d
refs/heads/master
2021-02-07T20:25:06.997173
2020-03-01T02:22:41
2020-03-01T02:26:04
244,072,971
1
0
null
null
null
null
UTF-8
Python
false
false
947
py
# Author:Fuhong Gao #嵌套函数 # def foo(): # print("in the foo...") # def bar(): # print("in the bar...") # bar() # foo() #一个简单的装饰器(注意:在定义函数时,函数名应避免使用test1、rest2...否则容易出错) import time def timer(func): #将test1和test2传给func #定义一个函数(“变量”) def deco(*args,**kwargs): start_time = time.time() ...
62b6f24a18c8dc7368fbaa3d566c57711600b466
e2e08d7c97398a42e6554f913ee27340226994d9
/pyautoTest-master(ICF-7.5.0)/test_case/scg/scg_LOG/test_c142794.py
1fff26fd926e1ae41c0fb8a21027628e495f9ba9
[]
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
1,709
py
import pytest import time import sys from os.path import dirname, abspath sys.path.insert(0, dirname(dirname(abspath(__file__)))) from page_obj.scg.scg_def_physical_interface import * from page_obj.scg.scg_def_vlan_interface import * from page_obj.scg.scg_def_bridge import * from page_obj.common.rail import * ...
eed1238d3a0fd05c591f3ee36a20a12e4ab9be07
74bf86f99cc75006716edf5e25b040d1265ea134
/forms.py
ae87ae5091d5c25ebab6d13b38b9d4a2d40c1c31
[]
no_license
guoweikuang/flask_blog
65ed13c9660e699d4ec3b01212c6dcd41bb7e5d9
1292918b81029fd5b149486d8a8478fc02b92618
refs/heads/master
2022-12-09T05:46:17.093246
2017-07-12T15:28:27
2017-07-12T15:28:27
94,674,289
0
0
null
2022-12-07T23:59:57
2017-06-18T08:15:43
JavaScript
UTF-8
Python
false
false
623
py
# -*- coding: utf-8 -*- import re from flask_wtf import FlaskForm from wtforms import StringField, TextField from wtforms import ValidationError from wtforms.validators import DataRequired, Length def custom_email(form_object, field_object): """自定义检验器,邮箱格式检验""" if not re.match(r"[^@+@[^@]+\.[^@]]+", field_ob...
44886b5540adf62e789a3e14c8bdb407164c6454
fc6bc4cf23f713e3e4a97c00f724c977b3adbf82
/venv/Scripts/rst2html4.py
cea8afb9d0e6e8c96822dd5798e93d5ce73aa0b3
[]
no_license
Startrekker007/SInglePhotons
8b429e29f78977adfa7711e8dae2cb864a13ea53
529c2ab3ea3c3797db4dd4e0a336ce35ea2e64a1
refs/heads/master
2022-12-12T16:38:56.412370
2020-02-04T00:19:57
2020-02-04T00:19:57
223,832,514
2
2
null
2022-12-08T09:25:43
2019-11-25T00:41:41
VHDL
UTF-8
Python
false
false
738
py
#!D:\SInglePhotons\venv\Scripts\python.exe # $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $ # Author: David Goodger <[email protected]> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing (X)HTML. The output conforms to XHTML 1.0 transitio...
74d32a699bdd95a5f76f5892163733b31d4f7216
e203ddace08580170e3b4de9c79588209e857c1c
/dice.py
abdae853c875404a92648d58684acab4c6db318b
[]
no_license
stradtkt/OOPTreehouse-Python
e17f3fd48840049b8b741aa0e30e54d1409804b2
84e0ef2142118bf44c416a3b1dde3519ff57fd15
refs/heads/main
2023-02-26T15:03:27.053205
2021-02-04T13:04:26
2021-02-04T13:04:26
334,620,181
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
import random class Die: def __init__(self, sides=2, value=0): if not sides >= 2: raise ValueError("Must have at least 2 sides") if not isinstance(sides, int): raise ValueError("Sides must be a whole number") self.value = value or random.randint(1, sides) def __...
b99a5769e37c7e91afb7a10ecf5019595817fcd5
09120532659f7eb134163f92ac2f65423a04dc03
/zproject/django/survey/teacher/migrations/0006_remove_question_page.py
b68e92589867082131f7e2af6969e05cc1c2cfca
[]
no_license
hoboland21/survey
7b2dafd76db0e9317037a0cec163a97c0ec9a8ec
93e71f3304b381a6be03c8f813d2ba3a0b6eb218
refs/heads/master
2023-01-28T07:38:38.934710
2019-05-13T08:55:41
2019-05-13T08:55:41
182,874,928
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
# Generated by Django 2.2.1 on 2019-05-13 07:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('teacher', '0005_auto_20190502_0008'), ] operations = [ migrations.RemoveField( model_name='question', name='page', )...
73d0e57e7a4ce436b64584786aa7f686d7c5f0a8
3f2cc3d386ad184ca759a3fda072e35fa74baa09
/artic/deprecated/lengths.py
3d744e4898050bc511ac8f4f3de7b00f62f9de06
[ "MIT" ]
permissive
artic-network/fieldbioinformatics
de91b5175b484f006ce15c0ef5607cb34f22954e
314f52bcdd22faf827b7471086e97c196cc38c8f
refs/heads/master
2023-09-01T17:50:54.222480
2023-08-22T12:20:05
2023-08-22T12:20:05
122,982,368
98
74
MIT
2023-09-08T16:37:07
2018-02-26T14:37:14
Python
UTF-8
Python
false
false
124
py
#!/usr/bin/env python import sys from Bio import SeqIO for rec in SeqIO.parse(sys.stdin, "fasta"): print rec.id, len(rec)
0a2d611f2578b26b114f89d0df16482b4e00844f
37b2998b537673f0b2b0237887fe3ab1b4c525d1
/workbench/offers/migrations/0002_offer_project.py
0ced7448d48e952a677f636985a60ce7075c79c0
[ "MIT" ]
permissive
ndarvishev/workbench
1076fc86522884a3128fab25cd7f6f8162a152f4
e93c35180990ee3424fbb7b73e26400cb869e29a
refs/heads/main
2023-05-30T23:47:36.948646
2021-06-25T08:43:15
2021-06-25T08:43:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
619
py
# Generated by Django 2.1.7 on 2019-03-04 21:39 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [("projects", "0001_initial"), ("offers", "0001_initial")] operations = [ migrations.AddField( ...
dbadb79e1a21ae2572a427526517b255f2b2e995
2b25aae9266437b657e748f3d6fea4db9e9d7f15
/graphics/3d/8/Andreas_Wang/parser.py
6a3bff914ce674c14def05ef60a827e30890a319
[]
no_license
Zilby/Stuy-Stuff
b1c3bc23abf40092a8a7a80e406e7c412bd22ae0
5c5e375304952f62667d3b34b36f0056c1a8e753
refs/heads/master
2020-05-18T03:03:48.210196
2018-11-15T04:50:03
2018-11-15T04:50:03
24,191,397
0
0
null
null
null
null
UTF-8
Python
false
false
5,670
py
from display import * from matrix import * from draw import * from math import * from types import * # I had a neurotic need for everything to match the math notation of # matrices being defined as rows x columns, so my matrix items I read # as matrix[row][column] # Since this would mean our point matrix is an n by 4...
8741b9aed2a4193f98da42908af3309846ac847d
23805cffc86ac4dfb5bcce672b8c7070b4616e41
/Apprendre-Python/is-prime/scripts/generate.py
6c3f901f4ee05d4b2bf8c0c39ea1473a1f97b3d0
[]
no_license
ukonline/pythia-tasks
f90ff90299fe0eedd0e2787bcf666df07c709a00
81a3731eb0cdfe16b26a4e75a165a5071fb48ff5
refs/heads/master
2021-01-25T03:26:33.915795
2016-01-04T20:03:24
2016-01-04T20:03:24
40,974,655
0
2
null
2016-12-21T13:12:14
2015-08-18T13:49:39
Python
UTF-8
Python
false
false
467
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # Course: Apprendre Python # Problem: Es-tu premier ? # Test generation script import csv import json import os import sys sys.path.append('/task/static') from lib import pythia # Read test configuration and generate test data with open('/task/config/test.json', 'r', encodi...
ffbc110b9951442796efd9600d9055a83d244b5b
818c7b09d7e264c130a849f86dabaa3d43656870
/pycharm学习-基础篇/python基础知识/test.py
763515ace02b3a729f53fe1e69b0baed1afca1d0
[]
no_license
rishinkaku/python_course
b89d51b38f64248e074ba66230353b1b335475ab
6a2f2c175c863776a0e1125a8359a8ea97b95456
refs/heads/master
2020-03-28T11:50:20.231058
2018-08-29T13:01:59
2018-08-29T13:01:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
114
py
a=[1,2,3] def run(n): for i in n: print(i) if i<3: return 'yes' r=run(a) print(r)
c3ad0423c6d8b271ee252911c594199f7ab74981
98a9e00e0e3148e296cecf8bb5e5493d5e7c9cda
/pavement.py
d2b4556aeac8553cddab8d302a000b78bed97169
[]
no_license
cfobel/barcode-scanner
62b81f4d1bd36a61fea369703f9dee833916a982
a59acd8fef93769992b3d7a50365fbbef2d475e6
refs/heads/master
2016-09-14T01:42:03.545862
2016-04-20T18:46:02
2016-04-20T18:46:02
56,710,781
1
1
null
null
null
null
UTF-8
Python
false
false
1,877
py
import platform import sys from paver.easy import task, needs, path, sh, cmdopts, options from paver.setuputils import setup, install_distutils_tasks from distutils.extension import Extension from distutils.dep_util import newer sys.path.insert(0, path('.').abspath()) import version install_requires = ['matplotlib>=...
9fab66e95f7f0019a0d653ed7dd76704f7ec115a
3473c619629ed2b6c69c9d89bc0b3229b6930137
/Day 06 - Functions and Modules/Prime.py
3577b2eec902655e2f93a4d6832b4d5b1d1c9034
[]
no_license
Bobby981229/Python-Learning
621b185e212bf7102f75c9b8ff5992ceffa0c78b
e37c37fab504597ddca569213394cec4f88ad1f4
refs/heads/master
2022-10-14T07:56:59.117446
2020-06-09T13:42:12
2020-06-09T13:42:12
259,191,244
0
0
null
null
null
null
UTF-8
Python
false
false
407
py
""" 素数 """ from math import sqrt # 开根号 def prime(num): result = int(sqrt(num)) # 对输入的数字进行开根号计算 for x in range(2, result + 1): if num % x == 0: # 判断数字的模 return False return True if num != 1 else False num = int(input('Please input a integer number: ')) # 0 is false, 1 is true prin...
26cda9d143eff38c26755fdc0f64aac127dfe784
cd0a284c47fb03121e05284b6d5f2940ea6457ba
/fb/misc/subset-backtracking.py
5e9517de45750964ef37a1896e73ff591ccb175c
[]
no_license
franktank/py-practice
5803933c07c07a06670f83b059806385d0d029fa
1dec441f1975d402d093031569cfd301eb71d465
refs/heads/master
2021-03-22T04:33:20.818891
2017-11-14T03:40:54
2017-11-14T03:40:54
101,592,046
1
1
null
null
null
null
UTF-8
Python
false
false
480
py
class Solution(object): def subsets(self, nums): """ :type nums: List[int] :rtype: List[List[int]] """ self.res = [] self.helper(nums, [], 0) return self.res def helper(self, nums, cur_set, start): self.res.append(list(cur_set)) for i in r...
bb6aea31ed8fa714e9f3e4f9efea69c2821b47ef
dfcb9827b966a5055a47e27b884eaacd88269eb1
/ssseg/cfgs/ce2p/cfgs_atr_resnet101os8.py
92f1a161fe76d80856d312d01c4f8809fa71a746
[ "MIT" ]
permissive
RiDang/sssegmentation
cdff2be603fc709c1d03897383032e69f850f0cd
2a79959a3d7dff346bab9d8e917889aa5621615a
refs/heads/main
2023-02-05T12:52:35.391061
2020-12-27T05:59:58
2020-12-27T05:59:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,326
py
'''define the config file for atr and resnet101os8''' from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG['train'].update( { 'type': 'atr', 'rootdir': 'data/ATR', 'aug_opts': [('Resize', {'output_size': (520, 520), 'keep_ratio': False, 'scale_range'...
8d99a90f253646661425e340c0b8b5d9743a0554
8a3e59ac20b2667c7f43ab91a7fd09f5a52fec4e
/apps/crm/callcentre/migrations/0001_initial.py
16d3a8789f6799bed13602c35d3f16407455ac78
[]
no_license
suifengdou/tbd2
b1ba8ed423ace8624366ddbdd788f0ab7025d062
39093cdd45bb652e9cdfa3dc31e07344cf6628a1
refs/heads/master
2021-06-22T20:19:15.743182
2021-01-08T03:59:47
2021-01-08T03:59:47
159,639,770
0
0
null
null
null
null
UTF-8
Python
false
false
6,422
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-11-27 10:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='OriCa...
604cfc5c9093bc10e7a5f34c490d2d20c3543182
f6d7107e390c35ae998f9d9904c6012515629204
/env/bin/easy_install-2.7
b4cb105bdb98b033e5fbf5f4fa7be50d05bfa417
[]
no_license
theresa-clare/movie-ratings
c066c15991b13a540ad569c040a460834ee5059e
b0e80c728b2396272063b468452e61386315aa56
refs/heads/master
2021-01-19T18:07:44.026831
2015-05-08T00:05:22
2015-05-08T00:05:22
35,049,616
2
0
null
null
null
null
UTF-8
Python
false
false
254
7
#!/home/user/src/ratings/env/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
a96d0e6cbfbb17f69233e6f6c4998a16fd37cf02
187a6558f3c7cb6234164677a2bda2e73c26eaaf
/jdcloud_sdk/services/antipro/models/Acl.py
7832071a16e817c78df10dbe5d03f5fb05ad3d38
[ "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
2,979
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 ...
d22cefe991498827063e4959c075dfb148945e3f
853d2dab299c6644056edfdab7f6cd734076e615
/aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/StartCdnDomainRequest.py
1fe98d6791628ce234d8637704254071ec620071
[ "Apache-2.0" ]
permissive
ahlfors/aliyun-openapi-python-sdk
b231d970444efdd44f74cfb6309e0d807e7a9d99
002f457788d7ed7f7ebdfaf908a7cc442b66498e
refs/heads/master
2021-01-02T22:56:04.359010
2017-08-04T06:36:47
2017-08-04T06:36:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,512
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 ...
cd6a20e990cb2dbee4a8386d99bf84e07bae879e
98bd2625dbcc955deb007a07129cce8b9edb3c79
/vcf2SelectHapStatsInput.py
cc27f18f4a524c23fd3541a1cbad9fa9ac27e99a
[]
no_license
melanieabrams/bremdata
70d0a374ab5dff32f6d9bbe0a3959a617a90ffa8
df7a12c72a29cca4760333445fafe55bb6e40247
refs/heads/master
2021-12-26T01:57:25.684288
2021-09-30T22:48:05
2021-09-30T22:48:05
166,273,567
0
3
null
null
null
null
UTF-8
Python
false
false
3,175
py
import os import vcf import sys ##USGAGE: python vcf2SelectHapStatsInput.py gvcf_filename ##NOTE: this script assumes gVCF formatting, as generated by GATK. It handles missing data as missing. ##PARAMETERS samples_to_exclude=[] # for 1011 genomes (all pop) heterozygous_present=True # True for 101...
ebec731334511b25ef15e389dd83a5ec4e2d6dea
9998f1b6008b290ef1ef895bc0c4ca273dfbe1e0
/leet code/002-Two Sum.py
8be38348c0937606c72f279e23b69bb43af0b139
[ "MIT" ]
permissive
boisde/Greed_Island
51a997dc0e7890ea468c448bc1dda34e61a4aea8
9c4f0195fb7bfaeb6c29e8e9638c7b0ffd9ad90b
refs/heads/master
2021-06-15T06:58:35.036706
2021-04-12T11:14:54
2021-04-12T11:14:54
20,638,183
0
2
null
null
null
null
UTF-8
Python
false
false
6,983
py
#coding=utf-8 """ Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are...
5f9e775a7ab8bd1de57638ea892c2b7c8c3e3e6a
c838b0eaf08c63284bd29442f8a0a297d1558fd5
/lagom/policies/random_policy.py
e19f315de4d7b034ecb4e8bf785077ab607fc0a3
[ "MIT" ]
permissive
vin136/lagom
ccd0f4a3e469c1ee8ef88b1f5248e712b51c5704
54e1890e6450f4b1bf499a838963c5d1a3b2da6a
refs/heads/master
2020-04-22T21:45:51.488458
2019-02-13T16:41:32
2019-02-13T16:41:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,077
py
from .base_policy import BasePolicy class RandomPolicy(BasePolicy): r"""Random policy. The action is uniformly sampled from action space. Example:: policy = RandomPolicy(config=None, env_spec=env_spec, device=None) policy(observation) """ def __init__(self,...
ba9ca47753df3cc1fa8c8a864a4387c6a3a2f322
9a26d98f6f531b222c332ab6367e9e18beb0633f
/008. Dynamic Programming [동적 프로그래밍]/venv/Scripts/easy_install-3.8-script.py
31936c0e1b179dcf18187893df7efb9e2d4ed4f9
[]
no_license
yoonicode/of-Algorithms
dffac0b422e51dcd7df1f60236675608af73f03d
bbf89df443a3561fbbe0d0f6dfebb97f3ed216aa
refs/heads/master
2022-11-24T08:27:52.679469
2020-07-28T14:58:52
2020-07-28T14:58:52
null
0
0
null
null
null
null
UHC
Python
false
false
523
py
#!"D:\Users\Yoonsung\Documents\GitHub\of-Algorithms\008. Dynamic Programming [동적 프로그래밍]\venv\Scripts\python.exe" -x # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '...
5489c893e687e6aed670cc7fdcc9bf6a16248996
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5640146288377856_1/Python/StefanPochmann/A.py
854b3312bd1dba6383f564157857729276cad94e
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
220
py
#f = open('A.in') #def input(): # return next(f) for x in range(1, int(input()) + 1): R, C, W = map(int, input().split()) #print(R, C, W) print('Case #%d:' % x, W + (C-1) // W + (R-1) * (C // W))
e3bf180b1c85b33e05c07e36ed9b8cbfe6534857
309d17b81cea038713ba67bee72a41d2df4d6869
/Python/Python_basic/Python_OOP/OOP6_bmi.py
d2e2087aa8b93b01272764517ec6df4319cee4a3
[]
no_license
Bongkot-Kladklaen/Programming_tutorial_code
ac07e39da2bce396e670611884436b360536cdc5
cda7508c15c3e3d179c64b9aac163b6173ef3519
refs/heads/master
2023-06-20T13:14:17.077809
2021-07-18T04:41:04
2021-07-18T04:41:04
387,081,622
0
0
null
null
null
null
UTF-8
Python
false
false
705
py
class Bmi: def __init__(self,w_kg, h_cm): self.w_kg = w_kg self.h_cm = h_cm def bmi(self): return self.w_kg / (self.h_cm / 100) ** 2 def category(self): diag = "" if self.bmi() < 18.5: diag = "ต่ำกว่าเกณฑ์" elif 18.5 <= self.bmi() <= 25: ...
291ec277badd9ec84ba46368670827ec4adfb1db
4da55187c399730f13c5705686f4b9af5d957a3f
/resources/sumo_exporter/road.py
f3fe5331d6efe9f5434c28093515462058cc516f
[ "Apache-2.0" ]
permissive
Ewenwan/webots
7111c5587100cf35a9993ab923b39b9e364e680a
6b7b773d20359a4bcf29ad07384c5cf4698d86d3
refs/heads/master
2020-04-17T00:23:54.404153
2019-01-16T13:58:12
2019-01-16T13:58:12
166,048,591
2
0
Apache-2.0
2019-01-16T13:53:50
2019-01-16T13:53:50
null
UTF-8
Python
false
false
7,356
py
"""Road class container.""" import math import re from re_definitions import floatRE, intRE from data_structures import grouper from math_utils import apply_spline_subdivison_to_path from shapely.geometry import LineString, MultiLineString from lxml import etree as ET class Road(object): """Class matching with ...
d42fbc0d64ddce99c3a42871b69a726c42be38af
f8580d2c963b6a3c34e918e0743d0a503a9584bd
/unittests/test_image.py
eb9bc49d20574689e5249f2e3d79f96497b3d369
[]
no_license
pypy/wxpython-cffi
f59c3faeed26e6a26d0c87f4f659f93e5366af28
877b7e6c1b5880517456f1960db370e4bb7f5c90
refs/heads/master
2023-07-08T21:13:22.765786
2016-12-02T22:10:45
2016-12-02T22:10:45
397,124,697
1
0
null
null
null
null
UTF-8
Python
false
false
7,280
py
import imp_unittest, unittest import wtc import wx import wx.lib.six as six from wx.lib.six import BytesIO as FileLikeObject import os pngFile = os.path.join(os.path.dirname(__file__), 'toucan.png') #--------------------------------------------------------------------------- def makeBuf(w, h, bpp=1, init=0): "M...
656dc7e15b78455cee914cb74a92048e94167263
9d64a438cdfe4f3feb54f2f0dc7431139c4b9fb9
/microsoft_atp/komand_microsoft_atp/actions/get_machine_information/action.py
1d683811c0eb693aaf72cbf02b4acadd6d9b841d
[ "MIT" ]
permissive
PhilippBehmer/insightconnect-plugins
5ad86faaccc86f2f4ed98f7e5d518e74dddb7b91
9195ddffc575bbca758180473d2eb392e7db517c
refs/heads/master
2021-07-25T02:13:08.184301
2021-01-19T22:51:35
2021-01-19T22:51:35
239,746,770
0
0
MIT
2020-02-11T11:34:52
2020-02-11T11:34:51
null
UTF-8
Python
false
false
955
py
import insightconnect_plugin_runtime from .schema import GetMachineInformationInput, GetMachineInformationOutput, Input, Output, Component # Custom imports below class GetMachineInformation(insightconnect_plugin_runtime.Action): def __init__(self): super(self.__class__, self).__init__( na...
22ab57b357e0f71a237346053a156a4c9b1a6648
0cbc02dd7d1efbe61de04dcf1c6eccb6496bf074
/month02/day10_IO并发/test/test02.py
b855c217d0302b1d40a8a9fe16af35d0418e9f28
[]
no_license
fsym-fs/Python_AID
0b1755c15e20b214940041e81bedb2d5ec99e3f9
f806bb02cdb1670cfbea6e57846abddf3972b73b
refs/heads/master
2021-03-20T06:57:45.441245
2020-05-27T14:13:45
2020-05-27T14:13:45
247,187,064
0
0
null
null
null
null
UTF-8
Python
false
false
9,359
py
import socket import os import time class MySocket: ADDR = ("127.0.0.1", 23456) def __init__(self): self.__socketfd = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0) self.__socketfd.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, True) # 连接服务端 try: self.__s...
5cd8e84f11d2ea34f343ae402d5c0b33dcf7d2db
958d87cc3b77bb3308d0aa04b92fdef5f97d63ae
/4.OOPS/InheritanceAndPolymorphism.py
8056a618b0d68087183a3df5858998b9bc487e65
[]
no_license
parihar08/PythonJosePortilla
6dec83519af78451c46e323928aedf19dbd908f1
6f47291908ad05daf5a505ba0e13687c46651bc2
refs/heads/master
2022-12-19T07:30:39.603468
2020-09-19T14:56:36
2020-09-19T14:56:36
292,650,778
0
0
null
null
null
null
UTF-8
Python
false
false
2,005
py
class Animal(): def __init__(self): print('ANIMAL CREATED') def who_am_i(self): print("I am an animal") def eat(self): print("I am eating") # myanimal = Animal() # myanimal.who_am_i() # myanimal.who_am_i() class Dog(Animal): def __init__(self): Animal.__init__(self) ...
3d31f9d19bdc8592287891bd2f4f8425acbdbd17
7ce2b2000cfefe8fbefc2271ebc7df2061c88194
/CAIL2020/ydljz(hong)/data.py
9e4c92f039a17554e02061223f80e2403193f7fd
[ "Apache-2.0" ]
permissive
generalzgd/CAIL
f06d79acf42ac2188938c02087f7d07b9b43095c
57529e64ee2f602324a500ff9bed660ddcde10bb
refs/heads/master
2023-01-24T01:14:05.382525
2020-11-20T03:40:47
2020-11-20T03:40:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
36,128
py
"""Data processor for SMP-CAIL2020-Argmine. Author: Yixu GAO ([email protected]) In data file, each line contains 1 sc sentence and 5 bc sentences. The data processor convert each line into 5 samples, each sample with 1 sc sentence and 1 bc sentence. Usage: 1. Tokenizer (used for RNN model): from data import ...
f13ae364d5454fff0b466fd17c8c4e70af0a9e2e
e836275adf8adca9b77acdd3d25bac157592a995
/examples/graphs_nodal.py
fa9e8e4ec004f0a57bfd774033e20c44044346d4
[ "BSD-3-Clause" ]
permissive
makism/dyconnmap
3de6f482d1370bf25ec3813ddf576b675ed99d9e
cbef247e635d55cb1489ba1e429d9d472b501b56
refs/heads/master
2023-08-03T19:30:40.779333
2022-03-14T18:24:16
2022-03-14T18:24:16
98,643,787
67
25
BSD-3-Clause
2023-07-24T04:49:03
2017-07-28T11:37:17
Python
UTF-8
Python
false
false
360
py
# -*- coding: utf-8 -*- from dyconnmap.graphs import nodal_global_efficiency import numpy as np if __name__ == '__main__': rng = np.random.RandomState(0) mtx = rng.rand(64, 64) mtx_symm = (mtx + mtx.T)/2 np.fill_diagonal(mtx_symm, 1.0) inv_fcg = 1.0 / mtx_symm nodal_ge = nodal_global_efficie...