hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
261df34bd8dd3913220a6f0fe333611e9eaf7955
3,099
py
Python
MzituCrawler/pipelines.py
yeming1001/-MzituCrawler
3e3dad298734658266fb4c12cd863be73eb4f4a2
[ "Apache-2.0" ]
1
2018-02-09T05:36:06.000Z
2018-02-09T05:36:06.000Z
MzituCrawler/pipelines.py
yeming1001/-MzituCrawler
3e3dad298734658266fb4c12cd863be73eb4f4a2
[ "Apache-2.0" ]
null
null
null
MzituCrawler/pipelines.py
yeming1001/-MzituCrawler
3e3dad298734658266fb4c12cd863be73eb4f4a2
[ "Apache-2.0" ]
1
2017-03-30T07:44:49.000Z
2017-03-30T07:44:49.000Z
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import scrapy from scrapy.contrib.pipeline.images import ImagesPipeline from scrapy.exceptions import DropItem class Mzitucraw...
35.215909
83
0.626976
cd091d81cab83fbf7ab718e56a73c411c08da7bc
325
py
Python
5.py
alvinbengeorge/HackerRank
11101db16df57736cbcacd0a7d9e0b61069ba750
[ "MIT" ]
1
2021-11-06T13:24:58.000Z
2021-11-06T13:24:58.000Z
5.py
alvinbengeorge/HackerRank
11101db16df57736cbcacd0a7d9e0b61069ba750
[ "MIT" ]
null
null
null
5.py
alvinbengeorge/HackerRank
11101db16df57736cbcacd0a7d9e0b61069ba750
[ "MIT" ]
null
null
null
#https://www.hackerrank.com/challenges/find-angle/problem?isFullScreen=true&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen&h_r=next-challenge&h_v=zen import math ab = int(input()) bc = int(input()) print(str(round(math.degrees(math.atan(ab/bc))))+chr(...
46.428571
211
0.753846
5f3ad26f27323d3c1b499aa7e23a1b81401eeb04
9,066
py
Python
ec2/ec2_instance_recovery_via_ami.py
tuladhar/aws-backup-and-recovery-scripts
0314bcfa6462058712ea61cc620ec5222ac22db9
[ "MIT" ]
null
null
null
ec2/ec2_instance_recovery_via_ami.py
tuladhar/aws-backup-and-recovery-scripts
0314bcfa6462058712ea61cc620ec5222ac22db9
[ "MIT" ]
null
null
null
ec2/ec2_instance_recovery_via_ami.py
tuladhar/aws-backup-and-recovery-scripts
0314bcfa6462058712ea61cc620ec5222ac22db9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # *-* coding: utf-8 *-* ''' WARNING: THIS SCRIPT IS WRITTEN TO WORK TOGETHER WITH EC2 AMI BACKUP SCRIPT (image_bkup.py). THUS, THIS SCRIPT MIGHT NOT BEHAVE AS EXPECTED WHILING LAUNCHING INSTANCE USING OTHER IMAGE ID ONLY IMAGE ID CREATED BY EC2 AMI BACKUP SCRIPT (image_bkup.py). SCRIPT...
32.035336
301
0.713214
5f95275a5326494311ae410bb524e64f33d94700
851
py
Python
Display.py
smalbadger/PiLock
bd1ae8a76cfe138fce53d96ae084f2b4e2b66495
[ "MIT" ]
1
2020-10-16T14:52:49.000Z
2020-10-16T14:52:49.000Z
Display.py
smalbadger/PiLock
bd1ae8a76cfe138fce53d96ae084f2b4e2b66495
[ "MIT" ]
null
null
null
Display.py
smalbadger/PiLock
bd1ae8a76cfe138fce53d96ae084f2b4e2b66495
[ "MIT" ]
null
null
null
""" Author: Sam Badger Date Created: March 27, 2019 Description: Custom wrapper for the LCD. Credits to http://www.circuitbasics.com/raspberry-pi-lcd-set-up-and-programming-in-python/ for showing how to interface with LCD in python. """ from RPLCD import CharLCD class Display(): def __init__(self, *ar...
27.451613
139
0.59812
4bad955f9fb43a6435c67c9f5c187e29b9e06c7c
324
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/logger.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/logger.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pybedtools-0.7.6-py2.7-linux-x86_64.egg/pybedtools/logger.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
""" Configures a logger to be used across all of pybedtools """ import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) ch = logging.StreamHandler() ch.setLevel(logging.WARNING) formatter = logging.Formatter('%(name)s [%(levelname)s]: %(message)s') ch.setFormatter(formatter) logger.addHandler(...
27
70
0.768519
8a3571b8f97c76daee3702c033f4ee26ec43486b
5,941
py
Python
official/recommend/naml/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/naml/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/naml/preprocess.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
45.351145
98
0.715536
8a93bddd78d54301572e066425bbc1da0f95e85c
3,430
py
Python
statusCredentialUsage.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
null
null
null
statusCredentialUsage.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
null
null
null
statusCredentialUsage.py
coffeegist/nlzr
eff7b3790f90ab60e605807fe2349f7e418094e1
[ "MIT" ]
null
null
null
############################################################################ ### Written by Noah Powers # ### # ############################################################################ ### ...
35.729167
149
0.435277
0a866e5c0ad08c27b7dd1af7e2fca2c0ea75a5b9
2,741
py
Python
storage/emulated/0/qpython/lib/python3.2/site-packages/requests/packages/urllib3/__init__.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/lib/python3.2/site-packages/requests/packages/urllib3/__init__.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
storage/emulated/0/qpython/lib/python3.2/site-packages/requests/packages/urllib3/__init__.py
wangkaibiao/SettlersFinancialData3
498249e14f24bfa3186f07e8f66ee624d08c6ff1
[ "MIT" ]
null
null
null
""" urllib3 - Thread-safe connection pooling and re-using. """ from __future__ import absolute_import import warnings from .connectionpool import ( HTTPConnectionPool, HTTPSConnectionPool, connection_from_url ) from . import exceptions from .filepost import encode_multipart_formdata from ....
29.159574
85
0.713608
0ac2a51d4831708a31b21d7dbfe0e29125eaa1b3
1,585
py
Python
10.3389/fgene.2020.567262/local/scripts/vcffilter.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fgene.2020.567262/local/scripts/vcffilter.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
10.3389/fgene.2020.567262/local/scripts/vcffilter.py
jqsunac/doi
c5912a40c7bfda8270e5d51fbdd82a9f0650bd23
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys MINQV = 20 MINDEPTH = int(sys.argv[2]) MAXDEPTH = int(sys.argv[3]) MINALTRATIO = 0.8 def kv_decode(form): cols = form.split(";") keyval = {} for c in cols: kv = c.split("=") if len(kv) == 1: keyval[kv[0]] = "T" else: keyval[k...
27.327586
114
0.48959
7ce71a1ac0ca1f8d0e542dc14dd54c54e02a6f11
12,607
py
Python
fhirclient/r4models/library_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/library_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
fhirclient/r4models/library_tests.py
Healthedata1/Flask-PL
88a2f40ca430c4cbb9fbded7fc92fdc166ebb9f1
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b on 2019-05-07. # 2019, SMART Health IT. import os import io import unittest import json from . import library from .fhirdate import FHIRDate class LibraryTests(unittest.TestCase): def instantiate_from(self, ...
62.103448
126
0.683351
86c6c80998588de2546e3e16717960f7d451ef26
20,479
py
Python
official/recommend/wide_and_deep/src/wide_and_deep.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/wide_and_deep/src/wide_and_deep.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/wide_and_deep/src/wide_and_deep.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
49.110312
119
0.616876
86c80072e6ced0a2fa0bdcf1f7c922c641d4ed48
19,609
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/virt_net.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/virt_net.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/virt_net.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2015, Maciej Delmanowski <drybjed@gmail.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1...
30.687011
101
0.568769
86dc1c939636f32b4adf9f1a301437c399ba5131
976
py
Python
source/pkgsrc/lang/python36/patches/patch-Lib_sysconfig.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/lang/python36/patches/patch-Lib_sysconfig.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/lang/python36/patches/patch-Lib_sysconfig.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Lib_sysconfig.py,v 1.2 2017/01/26 09:13:27 adam Exp $ Remove _multiarch from config path (differs across platforms). Simplify _sysconfigdata to include only platform name. --- Lib/sysconfig.py.orig 2016-12-23 02:21:19.000000000 +0000 +++ Lib/sysconfig.py @@ -337,17 +337,13 @@ def get_makefile_filename(...
36.148148
76
0.684426
ed3d11e1005601de219233d7b43fb7fffff3ad80
1,942
py
Python
tests/validate_links.py
trashbirdecology/ogrants
5aa2fbf8acda2418bf3d45f7837bb140adcf05ba
[ "MIT" ]
76
2017-07-11T14:02:21.000Z
2021-10-17T04:51:10.000Z
tests/validate_links.py
KenMan79/ogrants
e7f8941fdad137bf08b01a78f692bf94c21e55cb
[ "MIT" ]
106
2017-07-10T23:54:49.000Z
2021-08-02T13:26:51.000Z
tests/validate_links.py
KenMan79/ogrants
e7f8941fdad137bf08b01a78f692bf94c21e55cb
[ "MIT" ]
44
2017-07-10T18:51:49.000Z
2021-07-30T14:32:04.000Z
import os import pathlib import subprocess import requests import yaml def link_resolves(url): try: request = requests.head(url) return request.ok except Exception: return False def load_grant_file(path): text = path.read_text() grant_info = next(yaml.safe_load_all(text)) ...
27.352113
89
0.65345
ed4cf79b68807c6e6f762cc39a4b1615dc109854
82
py
Python
data_tests/saved__backend__py3.9/pythran/no_arg.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/saved__backend__/pythran/no_arg.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/saved__backend__/pythran/no_arg.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
def func(): return 1 def func2(): return 1 __transonic__ = ("0.3.0",)
8.2
26
0.54878
13947da1606028823346908c43580f66793fa4b1
16,806
py
Python
tests/integration/server/api/proposals_api_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
75
2018-04-06T09:13:34.000Z
2020-05-18T18:59:47.000Z
tests/integration/server/api/proposals_api_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
989
2018-04-18T21:01:56.000Z
2019-10-23T15:37:09.000Z
tests/integration/server/api/proposals_api_tests.py
fthornton67/sawtooth-next-directory
79479afb8d234911c56379bb1d8abf11f28ef86d
[ "Apache-2.0" ]
72
2018-04-13T18:29:12.000Z
2020-05-29T06:00:33.000Z
# Copyright 2019 Contributors to Hyperledger Sawtooth # # 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 ...
35.085595
89
0.595323
13cec13702c6e9b9047d97dca0a8a86a1d0f4bf9
3,249
py
Python
marsyas-vamp/marsyas/src/marsyas_python/bextract.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/bextract.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/marsyas_python/bextract.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # bextract implemented using the swig python Marsyas bindings # George Tzanetakis, January, 16, 2007 # revised Graham Percival, 2011 August 20 import sys import marsyas import marsyas_util try: mf_filename = sys.argv[1] arff_filename = mf_filename.replace(".mf", ".arff") mpl_filena...
41.126582
100
0.777162
4c68dbd9a81a1aea30c7d0e953d379acba08e937
273
py
Python
python/python_backup/PRAC_PYTHON/ab23.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ab23.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ab23.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
# input a string a check palindrom or not,using while loop s=input("enter string:") i=0 f=0 j=len(s)-1 while i<len(s)/2 : if s[i]!=s[j]: f=1 break i=i+1 j=j-1 if f==0: print"Palindrom:" else : print"Non Palindrom:"
18.2
59
0.520147
913dba07e7724f4e05c14a1ddcf6a174aa679d38
529
py
Python
30_days_of_Code/14_scope.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
30_days_of_Code/14_scope.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
30_days_of_Code/14_scope.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 class Difference: def __init__(self, a): self.__elements = a self.maximumDifference = 0 def computeDifference(self): diff = [] for i in range(0, len(self.__elements)): for j in range(i, len(self.__elements)): diff.append(abs(s...
21.16
73
0.606805
fc6615cdf6f62a7ff0c7af14acd8f67bab782dc6
520
py
Python
Online-Judges/DimikOJ/Python/10-run-rate-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/DimikOJ/Python/10-run-rate-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/DimikOJ/Python/10-run-rate-1.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
for i in range(int(input())): r1, r2, b = map(int, input().split()) #print(r1 ,r2, b) if b != 0: crr = r2 / ((300-b) / 6) print(format(crr, ".2f"), end = " ") if r1 < r2: rrr = 0.0 else: rrr = ((r1 - r2) + 1) / (b / 6) print(format(rrr, "....
24.761905
44
0.369231
5dd98074fdb1f9aad38db1ea198658e453187412
3,192
py
Python
decision_tree/decision_tree.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
3
2022-02-09T21:35:14.000Z
2022-02-10T15:31:43.000Z
decision_tree/decision_tree.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
null
null
null
decision_tree/decision_tree.py
toorajtaraz/computational_intelligence_mini_projects
79d1782c3b61ee15ac01dcf377bdc369962adb18
[ "MIT" ]
null
null
null
from pathlib import Path import sys path = str(Path(Path(__file__).parent.absolute()).parent.absolute()) sys.path.insert(0, path) from mnist_utils.util import _x, _y, _y_int, _a, _b_int from graphviz import Source from sklearn import tree import numpy as np import random as rn from sklearn.metrics import accuracy_score...
48.363636
154
0.668233
5d4bcac5b8b74c2bf728a7bef2ea6d4ce92be6da
1,131
py
Python
python/pyopenGL/ogl1/ogl2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/pyopenGL/ogl1/ogl2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/pyopenGL/ogl1/ogl2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * import sys def init(): #glClearColor(0.0,0.0,0.0,1.0) # set the background color to black (R,G,B,alpha) #glClearColor(0.5,0.8,0.3,1.0) glClearColor(0.7,0.0,0.7,1.0) gluOrtho2D(-1.0,1.0,-1.0,1.0) ...
33.264706
120
0.624226
9187eb79962473a4b1bfee72dca01241dc2e3bf4
1,811
py
Python
frappe-bench/apps/erpnext/erpnext/setup/doctype/setup_progress/setup_progress.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/setup/doctype/setup_progress/setup_progress.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/setup/doctype/setup_progress/setup_progress.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe, json from frappe.model.document import Document class SetupProgress(Document): pass def get_setup_progress(): if not ...
28.746032
82
0.756488
91bb9a655050ff5d52967d71aad1126339d70263
5,471
py
Python
TreeModelLib/BelowgroundCompetition/NetworkOGSLargeScale3D/NetworkOGSLargeScale3D.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
1
2021-03-16T08:35:50.000Z
2021-03-16T08:35:50.000Z
TreeModelLib/BelowgroundCompetition/NetworkOGSLargeScale3D/NetworkOGSLargeScale3D.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
67
2019-11-14T11:29:52.000Z
2022-03-09T14:37:11.000Z
TreeModelLib/BelowgroundCompetition/NetworkOGSLargeScale3D/NetworkOGSLargeScale3D.py
mcwimm/pyMANGA
6c7b53087e53b116bb02f91c33974f3dfd9a46de
[ "MIT" ]
6
2019-11-12T11:11:41.000Z
2021-08-12T13:57:22.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @date: 2021-Today @author: marie-christin.wimmler@tu-dresden.de """ import numpy as np import os from os import path from TreeModelLib.BelowgroundCompetition.SimpleNetwork import SimpleNetwork from TreeModelLib.BelowgroundCompetition.OGSLargeScale3D import OGSLargeSc...
41.135338
79
0.683787
37ff1bfd7fa12b39681209ba446559a10d3c2c8d
1,470
py
Python
listings/chapter07/linear-regression-direct.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
2
2021-09-20T06:16:41.000Z
2022-01-17T14:24:43.000Z
listings/chapter07/linear-regression-direct.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
listings/chapter07/linear-regression-direct.py
SaschaKersken/Daten-Prozessanalyse
370f07a75b9465329deb3671adbfbef8483f76f6
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import csv import numpy as np from sys import argv, exit if len(argv) < 2: print(f"Verwendung: python3 {argv[0]} CSV-Datei [p]") exit(1) # Daten importieren filename = argv[1] data = [] with open(filename, 'r') as data_file: reader = csv.reader(data_file) for line in re...
26.727273
66
0.577551
f474c6fce208563ae2e857a1ff716663dc5b38a0
2,030
py
Python
utils.py
saliAlavi/SegAN
2b1ec5003e523a883ea9ae123765da1a529676f9
[ "MIT" ]
1
2022-01-17T18:08:01.000Z
2022-01-17T18:08:01.000Z
utils.py
saliAlavi/SegAN
2b1ec5003e523a883ea9ae123765da1a529676f9
[ "MIT" ]
null
null
null
utils.py
saliAlavi/SegAN
2b1ec5003e523a883ea9ae123765da1a529676f9
[ "MIT" ]
2
2020-07-31T07:15:40.000Z
2022-02-27T11:09:12.000Z
import torch import os def segmentor_evaluation(s_output, s_target): """ This function creates the batch_averaged FP(flase positive), TP(true positive), FN(flase negative) and TN(true negative) values for the segmented output THE ELEMENTS OF THE INPUTS ARE ASSUMED TO BE 0 OR 1. """ batch_size = s_...
28.194444
156
0.656158
be4763e118fc5b286f62fd9a475fd6e7cd7836da
1,170
py
Python
python/data_sutram/pypath/PyPath/json_sqlite/11_get_vehicle_by_route.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/data_sutram/pypath/PyPath/json_sqlite/11_get_vehicle_by_route.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/data_sutram/pypath/PyPath/json_sqlite/11_get_vehicle_by_route.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
""" This will get vehicles by route. This is also a stationary thingie, can be done by getting all the routeId from "get_all_routes" table. INPUT : route_code / routeId OUTPUT : { "angle": 81, "crowd": "null", "dataSource": "Chemito-VTU", "direction": "E", ...
27.857143
112
0.458974
be9e092d70fee20844ce5d23744764351fcdbc98
882
py
Python
setup.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
setup.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
setup.py
beremaran/mcsf
7651e849b860cf4f0517fa8e4fc4b7a417bbc3a4
[ "MIT" ]
null
null
null
#!/usr/bin/env python import setuptools setuptools.setup( name='mcsf', version='1.0.0', author='Berke Emrecan Arslan', author_email='berke@beremaran.com', description='Up/Down Minecraft Server on Vultr Fast', keywords='minecraft server vultr', url='https://github.com/beremaran/mcsf', p...
22.05
57
0.544218
2297f24a3ce587509c8de6111995f6e163a7bebd
352
py
Python
code/project/test/user/__init__.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
code/project/test/user/__init__.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
code/project/test/user/__init__.py
redxyb/Flask
4ee226501f16eb0fa5cb585dc6bf780005fa8a28
[ "MIT" ]
null
null
null
''' Author: xyb Date: 2020-08-10 09:46:17 LastEditTime: 2020-08-10 12:06:56 ''' '''用来创建蓝图对象''' from flask import Flask, Blueprint user_bp = Blueprint('user_bp', __name__, static_folder='static', static_url_path='/static', template_folder='t...
25.142857
48
0.568182
a3acffbf8eed9d7708f9f0427b5d261e419ffd84
4,165
py
Python
fspke/rabinmiller.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
fspke/rabinmiller.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
fspke/rabinmiller.py
jadeblaquiere/pyfspke
1c7305e8a28639e55b1620e731a5dd7c312c295b
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2013, Al Sweigart # 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, this # list of conditions and the fo...
45.769231
827
0.656182
4a677931da1fdb7bca46f031a52b41de855b5322
25,980
py
Python
mitglieder/views.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
8
2019-11-26T13:34:46.000Z
2021-06-21T13:41:57.000Z
mitglieder/views.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
93
2019-12-16T09:29:10.000Z
2021-04-24T12:03:33.000Z
mitglieder/views.py
mribrgr/StuRa-Mitgliederdatenbank
87a261d66c279ff86056e315b05e6966b79df9fa
[ "MIT" ]
2
2020-12-03T12:43:19.000Z
2020-12-22T21:48:47.000Z
from datetime import date from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from django.urls import reverse from django.views import generic from django.core import serializers from django.core.pa...
41.303657
268
0.700192
4a6e8805f028762b638e59dbd12cbdc7b948f46d
802
pyde
Python
sketches/filter02/filter02.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/filter02/filter02.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/filter02/filter02.pyde
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
selectFilter = 8 def setup(): global img # Thumbnails # size(160, 120) # img = loadImage("abendrot-s.jpg") # Volle Größe size(640, 480) img = loadImage("abendrot.jpg") noLoop() def draw(): global img background(255, 127, 36) image(img, 0, 0) if (selectFilter == 1): ...
23.588235
52
0.558603
4a9791628b0b9268d89b6166daf6a7964b67ad7c
1,353
py
Python
python/oneflow/compatible/single_client/framework/module.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/framework/module.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/framework/module.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
29.413043
73
0.695492
1ca0f8093c43c740218932aab7429b0d31b5c52e
1,726
py
Python
20-fs-ias-lec/groups/Demo_D/SimpleWindow.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
8
2020-03-17T21:12:18.000Z
2021-12-12T15:55:54.000Z
20-fs-ias-lec/groups/Demo_D/SimpleWindow.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
2
2021-07-19T06:18:43.000Z
2022-02-10T12:17:58.000Z
20-fs-ias-lec/groups/Demo_D/SimpleWindow.py
Kyrus1999/BACnet
5be8e1377252166041bcd0b066cce5b92b077d06
[ "MIT" ]
25
2020-03-20T09:32:45.000Z
2021-07-18T18:12:59.000Z
import PySimpleGUI as sg # this is the first draft of a window without any actual implementation of the code. Final window will probably # be in a different file. This SimpleWindow file will for now be used as reference only probably be removed later. # sg.theme('DarkAmber') # Add a touch of color # All the stuff i...
38.355556
158
0.652955
1ccb35ce736bf31c347cd789c9794baed7c9d867
3,122
py
Python
official/cv/centerface/dependency/centernet/src/lib/datasets/dataset/coco_hp.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/centerface/dependency/centernet/src/lib/datasets/dataset/coco_hp.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/centerface/dependency/centernet/src/lib/datasets/dataset/coco_hp.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
""" MIT License Copyright (c) 2019 Xingyi Zhou All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
34.688889
99
0.661115
98e17412527153020db205efcdb3ecbab1e21a3d
1,584
py
Python
marsyas-vamp/marsyas/scripts/tempo-wrapper.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/tempo-wrapper.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/scripts/tempo-wrapper.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import sys import subprocess OK_PERCENT_DIFFERENCE = 1.0 try: tempo_binary = sys.argv[1] args = sys.argv[2:-2] logfilename = sys.argv[-2] oldlogfilename = sys.argv[-1] except: print "Syntax: TEMPO_BINARY MF_FILENAME LOGFILENAME OLDLOGFILENAME" print " OLDLOGFILE = '' f...
29.333333
72
0.650253
c79fa40f766d9a1e31474405205b57f732f88348
4,538
py
Python
jumeaux/domain/config/service.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/domain/config/service.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/domain/config/service.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import os from typing import List from owlmixin import TList, TOption from owlmixin.util import load_yamlf from jumeaux.domain.config.vo import Config, MergedArgs from jumeaux.models import Report def apply_include(addon: dict, config_path: str) -> dict: return ( ...
37.196721
96
0.578889
c7e2bb8e9889fbc68baceecedf676ae5d6d276fb
7,674
py
Python
research/audio/deepspeech2/src/eval_callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/audio/deepspeech2/src/eval_callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/audio/deepspeech2/src/eval_callback.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
49.192308
114
0.543393
4050bca25c8ee89bc1be24555f2f4566170b9c11
3,585
py
Python
test/test_npu/test_network_ops/test_glugrad.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_glugrad.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_glugrad.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.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 License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
39.395604
74
0.573501
7327ac99c4a036661c6f5a6bdb1970b63dee4a95
242
py
Python
index.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
index.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
index.py
galyeshua/Index
96e1630efc51d2c03f2d80889dfa1d117155e2ee
[ "MIT" ]
null
null
null
from app import app, db from app.models import User @app.cli.command('first_init') def first_init(): db.create_all() user = User(username='Admin') user.set_password('Admin') db.session.add(user) db.session.commit()
14.235294
33
0.669421
b46b9398010be16d7d940785b693bff966750d1a
5,300
py
Python
SBTK_League_Helper/src/interfacing/ogs/connect.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/interfacing/ogs/connect.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
SBTK_League_Helper/src/interfacing/ogs/connect.py
juanchodepisa/sbtk
7cba7748e75a02b491e551d6c1be9bd7987c5051
[ "MIT" ]
null
null
null
from urllib import request from src import log_entry, application_user_agent from src.security import retrieve_keys from .resources import full_resource_url, get_context_str, main_server, beta_server from ..exceptions import ParameterTypeError from ..http import raw_response from ..parsers import parse_application_p...
42.741935
125
0.653962
c37352f13d22c6d60d1335676731b943947a79bf
10,096
py
Python
venv/lib/python3.7/site-packages/twilio/rest/insights/v1/call/event.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
1,362
2015-01-04T10:25:18.000Z
2022-03-24T10:07:08.000Z
venv/lib/python3.7/site-packages/twilio/rest/insights/v1/call/event.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
299
2015-01-30T09:52:39.000Z
2022-03-31T23:03:02.000Z
venv/lib/python3.7/site-packages/twilio/rest/insights/v1/call/event.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
622
2015-01-03T04:43:09.000Z
2022-03-29T14:11:00.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource from twilio.base.page import Page class EventList(ListRe...
31.949367
92
0.607666
48c8a68528548919695020188d629514488f6c24
3,173
py
Python
api/migrations/0003_address_charityaccount_charitydietaryoptions_diertaryrequirements_userdietarypreferences.py
nathanwelsh8/guts_2021_hackathon
d875000051a423db4a4bb1a8df35d6d9a9e9db63
[ "MIT" ]
1
2021-02-05T15:58:02.000Z
2021-02-05T15:58:02.000Z
api/migrations/0003_address_charityaccount_charitydietaryoptions_diertaryrequirements_userdietarypreferences.py
nathanwelsh8/guts_2021_hackathon
d875000051a423db4a4bb1a8df35d6d9a9e9db63
[ "MIT" ]
null
null
null
api/migrations/0003_address_charityaccount_charitydietaryoptions_diertaryrequirements_userdietarypreferences.py
nathanwelsh8/guts_2021_hackathon
d875000051a423db4a4bb1a8df35d6d9a9e9db63
[ "MIT" ]
2
2021-02-05T20:27:48.000Z
2021-03-31T19:58:07.000Z
# Generated by Django 3.1 on 2021-02-05 21:34 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0002_auto_20210205_2132'), ] operations = [ migrations.CreateModel( ...
48.075758
135
0.60479
d2b15cb68119362f1bc9672b6562c91162ed52d2
3,321
py
Python
src/onegov/agency/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/agency/path.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from onegov.agency.app import AgencyApp from onegov.agency.collections import ExtendedAgencyCollection from onegov.agency.collections import ExtendedPersonCollection from onegov.agency.models import AgencyMembershipMoveWithinAgency from onegov.agency.models import AgencyMembershipMoveWithinPerson from onegov.agency.mod...
29.131579
77
0.756098
d2d6cb502fe91f01de2ab997e72d46efa263d674
1,306
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/a10.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/a10.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/doc_fragments/a10.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright: (c) 2016, John Barker <jobarker@redhat.com> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) class ModuleDocFragment(object): # Standard files documentation fragment DOCUMENTATION = r''' options: host: description: ...
28.391304
97
0.673813
826027932c81d8ec7301e04b70c2c6ed5712c1ab
1,161
py
Python
lms_python/lms_app/disciofertada.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
lms_python/lms_app/disciofertada.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
lms_python/lms_app/disciofertada.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
from django.db import models from lms_app.professor import * from lms_app.disciplina import * class DisciplinaOfertada(models.Model): def __str__(self): return self.curso def save(self): if self.curso not in ['ADS', 'SI', 'BD']: raise Exception('') if (len(Discipli...
36.28125
160
0.637382
82af0ca5fc31d4bc31d6dfd44f8bda981449e94c
219
py
Python
backend/apps/iamstudent/migrations/0016_auto_20200409_1920.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
2
2020-03-28T13:56:39.000Z
2020-03-29T10:16:12.000Z
backend/apps/iamstudent/migrations/0016_auto_20200409_1920.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
76
2020-03-27T21:53:04.000Z
2020-03-30T20:27:43.000Z
backend/apps/iamstudent/migrations/0016_auto_20200409_1920.py
n-hackert/match4healthcare
761248c27b49e568c545c643a72eac9a040649d7
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-09 16:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('iamstudent', '0015_custom_migration_timestamps'), ]
19.909091
59
0.707763
481aee40a39c97c4591c16673c399ea23e239738
399
py
Python
custom_user/urls.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
custom_user/urls.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
custom_user/urls.py
EE/flexdb
08a80b9e56201e678ef055af27bdefa6d52bcbf5
[ "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from rest_framework import routers from custom_user import views router = routers.DefaultRouter() router.register(r'users', views.CustomUserViewSet) urlpatterns = patterns('', url(r'^', include(router.urls)), url(r'^api-auth/', include('rest_framework.urls'...
28.5
83
0.739348
485d7be7ed986732d26ca9f8f6919bc1fefa99ac
3,531
py
Python
AnswerMachine/result.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
15
2019-12-20T08:24:31.000Z
2022-03-18T09:24:25.000Z
AnswerMachine/result.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
124
2020-04-20T04:36:49.000Z
2022-01-29T11:08:09.000Z
AnswerMachine/result.py
jonaes/ds100bot
79a646114400c5c8d21ff21376276a8d380b031f
[ "Apache-2.0" ]
12
2020-07-08T22:19:39.000Z
2022-03-19T09:13:11.000Z
"""Abstracts the abbreviation search result""" import Persistence.log as log log_ = log.getLogger(__name__) class Result: # pylint: disable=R0902 def __init__(self, candidate, db): self.candidate = candidate row = self.find_in_db(db.cursor) self.abbr = candidate.abbr if row is ...
33.951923
89
0.500425
d2032ce95ab5c6969fa3c7cde59605fc565c1555
2,954
py
Python
apps/grolsch/views.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
1
2017-01-08T13:21:43.000Z
2017-01-08T13:21:43.000Z
apps/grolsch/views.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
17
2018-12-03T14:22:14.000Z
2021-07-14T15:15:12.000Z
apps/grolsch/views.py
LvanArkel/sbzwebsite
a26efbb050585312c53010f14f86c23616a8071f
[ "BSD-3-Clause" ]
2
2018-12-03T14:58:49.000Z
2019-12-01T13:24:42.000Z
from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import get_object_or_404 from django.urls import reverse_lazy from django.views.generic import ListView, CreateView, FormView, DetailView, UpdateView, DeleteView from apps.grolsch.forms import CreateProductFromUrlForm, PriceChangeResolveFo...
36.469136
99
0.728504
f709e7d57692258edd0459ea50391cace46e9b24
2,825
py
Python
chillow/service/ai/search_tree_pathfinding_ai.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
3
2021-01-17T23:32:07.000Z
2022-01-30T14:49:16.000Z
chillow/service/ai/search_tree_pathfinding_ai.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-01-17T13:37:56.000Z
2021-04-14T12:28:49.000Z
chillow/service/ai/search_tree_pathfinding_ai.py
jonashellmann/informaticup21-team-chillow
f2e519af0a5d9a9368d62556703cfb1066ebb58f
[ "MIT" ]
2
2021-04-02T14:53:38.000Z
2021-04-20T11:10:17.000Z
from multiprocessing import Value from random import choice from chillow.service.ai.pathfinding_ai import PathfindingAI from chillow.service.ai.search_tree_ai import SearchTreeAI from chillow.model.action import Action from chillow.model.game import Game from chillow.model.player import Player from chillow.service.gam...
47.881356
117
0.695575
e3be29bc55a4acaf19de88ea35d5d21e59a01b33
1,049
py
Python
meshrender/main.py
rzakaan/opengl
f3d176674bd56eb523008341e5424b2a73f4412b
[ "MIT" ]
null
null
null
meshrender/main.py
rzakaan/opengl
f3d176674bd56eb523008341e5424b2a73f4412b
[ "MIT" ]
null
null
null
meshrender/main.py
rzakaan/opengl
f3d176674bd56eb523008341e5424b2a73f4412b
[ "MIT" ]
null
null
null
#!/usr/bin/python from OpenGL.GL import * from OpenGL.GLU import * import random import pygame import os from pygame.locals import * from constants import * from MeshRenderer import CubeMesh, ChairMesh os.environ["SDL_VIDEO_CENTERED"]='1' def random_color(): x = random.randint(0, 255) / 255 y = random.rand...
19.792453
58
0.658723
b75bceb598a4b47ebd4d1edcdb6d74c604fecb78
290
py
Python
saltsdb/tests/test_saltsdb.py
saltastro/saltsdb
dfb1413b100621ebc1cdd2d5bcbb27fa0db112a0
[ "BSD-3-Clause" ]
null
null
null
saltsdb/tests/test_saltsdb.py
saltastro/saltsdb
dfb1413b100621ebc1cdd2d5bcbb27fa0db112a0
[ "BSD-3-Clause" ]
null
null
null
saltsdb/tests/test_saltsdb.py
saltastro/saltsdb
dfb1413b100621ebc1cdd2d5bcbb27fa0db112a0
[ "BSD-3-Clause" ]
1
2018-01-09T14:06:58.000Z
2018-01-09T14:06:58.000Z
import sqlalchemy import pytest from ..saltsdb import SALTSdb def test_creation(): with pytest.raises(TypeError): sdb = SALTSdb() def test_connection(): with pytest.raises(Exception): sdb = SALTSdb('sdb', 'sdb', 'sdb', 'sdb', '1111') sdb.sdb.connect()
17.058824
57
0.637931
b7a0bb6f1cb0c97752247fb6f8ff8a4e12219fd8
1,496
py
Python
SVM/src/wdbc.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2018-04-25T18:00:28.000Z
2018-08-08T09:39:18.000Z
SVM/src/wdbc.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
null
null
null
SVM/src/wdbc.py
quqixun/MLAlgorithms
1ad46a899a6280a08c196fb4eb0931408c8636c7
[ "MIT" ]
2
2019-03-03T02:55:48.000Z
2021-01-21T04:50:46.000Z
# Conventional Machine Learning Algorithms # Test script for Class of "SVM" on WDBC. # Author: Qixun Qu # Create on: 2018/04/09 # Modify on: 2018/04/10 # ,,, ,,, # ;" '; ;' ", # ; @.ss$$$$$$s.@ ; # `s$$$$$$$$$$$$$$$' # $$$$$$$$$$$$$$$$$$ # $$$$P""Y$$$Y""W$$$$$ # $$$$ p"$$$"q $$$$$ # ...
24.129032
65
0.574198
427deed7f9f075d900183309a2463e7d648e7c6f
287
py
Python
restful04/config.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
restful04/config.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
restful04/config.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
DB_NAME = 'nz_restful' DB_PORT = '3306' DB_USERNAME = 'root' DB_PASSWORD = '123456' DB_HOST = '127.0.0.1' DB_URI = 'mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8' % (DB_USERNAME,DB_PASSWORD,DB_HOST,DB_PORT,DB_NAME) SQLALCHEMY_DATABASE_URI = DB_URI SQLALCHEMY_TRACK_MODIFICATIONS = False
26.090909
106
0.745645
42a8c2da55c551a7ab3a08abd54f1a4861838df2
847
py
Python
lale/lib/xgboost/_common_schemas.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
265
2019-08-06T14:45:43.000Z
2022-03-30T23:57:48.000Z
lale/lib/xgboost/_common_schemas.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
467
2019-08-08T02:01:21.000Z
2022-03-25T16:12:00.000Z
lale/lib/xgboost/_common_schemas.py
vishalbelsare/lale
654ca29ec0234b478d26724a25df28b28f5c0bc0
[ "Apache-2.0" ]
81
2019-08-07T19:59:31.000Z
2022-03-31T09:11:58.000Z
# Copyright 2021 IBM Corporation # # 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 writing, ...
33.88
99
0.72255
c485b5b10ab867163a1eab576b7d7b4acd962d9e
131
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v8_0/addresses_linked_to_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/addresses_linked_to_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v8_0/addresses_linked_to_lead.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): frappe.db.sql("""UPDATE `tabDynamic Link` SET link_doctype = 'Lead' WHERE link_doctype = 'Load'""")
26.2
100
0.709924
673334aa109d95179f63b3a5dd10cfaf0f7fa9d4
305
py
Python
test_stocks.py
ucsb-cs48-w19/4pm-stock-trading
c40f44a70b0bf72e5b1033f7e47c50ebd0e52a82
[ "MIT" ]
3
2019-04-06T15:37:11.000Z
2021-12-27T08:58:31.000Z
test_stocks.py
webclinic017/4pm-stock-trading
c40f44a70b0bf72e5b1033f7e47c50ebd0e52a82
[ "MIT" ]
22
2019-01-16T02:54:16.000Z
2019-02-27T23:12:14.000Z
test_stocks.py
webclinic017/4pm-stock-trading
c40f44a70b0bf72e5b1033f7e47c50ebd0e52a82
[ "MIT" ]
7
2019-01-11T00:45:50.000Z
2021-11-20T20:26:07.000Z
import pytest from stocks import getChart from stocklist import save_stock_tickers def test_getChart(): assert len(getChart("MSFT")) == pytest.approx(254, 10) def test_save_stock_tickers(): names = [] tickers = [] save_stock_tickers(names,tickers) assert len(names) == len(tickers)
19.0625
57
0.718033
e1eff231bde03b2855aa06dd6142c779e8ca9129
1,045
py
Python
shinrl/_calc/loss.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
34
2021-12-09T07:12:57.000Z
2022-03-11T08:17:20.000Z
shinrl/_calc/loss.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
null
null
null
shinrl/_calc/loss.py
omron-sinicx/ShinRL
09f4ae274a33d1fc1d9d542f816aef40014af6b5
[ "MIT" ]
4
2021-12-11T07:48:01.000Z
2022-03-01T23:50:33.000Z
"""JAX functions to compute losses. Author: Toshinori Kitamura Affiliation: NAIST & OSX """ import chex import jax import optax from chex import Array @jax.jit def l2_loss(pred: Array, target: Array) -> float: chex.assert_equal_shape((pred, target)) loss = optax.l2_loss(pred, target) return loss.mean() ...
25.487805
67
0.704306
97d48e310a236781837a69c7a50d526c21fcde01
1,364
py
Python
src/common/base_info.py
0shimax/chainer-caption-generator
56f9d2984c245bc75787c4d4e1593e302fbf84b0
[ "MIT" ]
null
null
null
src/common/base_info.py
0shimax/chainer-caption-generator
56f9d2984c245bc75787c4d4e1593e302fbf84b0
[ "MIT" ]
null
null
null
src/common/base_info.py
0shimax/chainer-caption-generator
56f9d2984c245bc75787c4d4e1593e302fbf84b0
[ "MIT" ]
null
null
null
p1_clsval2label ={ 0:'SNE', 1:'LY', 2:'MO', 3:'BNE', 4:'EO', 5:'BA', 6:'MY', 7:'MMY', 8:'ERB', 9:'BL', 10:'PMY', 11:'GT', 12:'ART', 13:'SMU', 14:'TAG', 15:'VLY', 16:'PC', 17:'OTH', 18:'MEK', } p1_label2clsval ={ 'SNE':0, 'LY':1, 'M...
16.433735
69
0.454545
3f17a6484040fff364118d4cf6d9432531aeea7d
4,204
py
Python
bearpi-hm_nano-oh_flower/00_src/bearpi-hm_nano_oh_fun/build/lite/hb/common/device.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.3/build/lite/hb/common/device.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.3/build/lite/hb/common/device.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2020 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
36.877193
79
0.605376
e1888b943fc87241281bf2880f5077ca1e02408f
1,189
py
Python
python_gui_tkinter/Tkinter/TkinterCourse/7_msg_widget.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/Tkinter/TkinterCourse/7_msg_widget.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/Tkinter/TkinterCourse/7_msg_widget.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
''' The widget can be used to display short text messages. The message widget is similar in its functionality to the Label widget, but it is more flexible in displaying text, e.g. the font can be changed while the Label widget can only display text in a single font. It provides a multiline object, that is the text may ...
66.055556
812
0.748528
833948f91333592fc91c1c04df40282f164e647c
2,475
py
Python
classification_snips/classifier/classifier.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
classification_snips/classifier/classifier.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
classification_snips/classifier/classifier.py
Ilgmi/IWIbot
c5ac71865fbb11f1676ec3239b96bab8e22257ee
[ "Apache-2.0" ]
null
null
null
import numpy as np import os import snips_nlu from snips_nlu import load_resources, SnipsNLUEngine from .trainer import SnipsNluTrainer #TODO: Classifier # 1. Init mit daten aus nlu_data -> nlu # 2. Falls nicht vorhanden --> nlu_data -> nlu_old # 3. Methode um Intent auszulesen # 4. Methode um Entity auszulesen # ...
30.182927
107
0.625455
3d025c912c87459f11d6378ebe377bdb2e918f3c
329
py
Python
tasks/context_processors.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
3
2020-03-21T22:32:56.000Z
2020-03-28T23:06:38.000Z
tasks/context_processors.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
null
null
null
tasks/context_processors.py
abernten/website
89167c5b1914953ac67def01b9ec0c169c50658f
[ "MIT" ]
null
null
null
from .models import TaskOffer from datetime import datetime def task_offer_count(request): if request.user.is_anonymous: return {} return { 'task_offer_count': TaskOffer.objects.filter(task__company__owner__id=request.user.id, state=0, task__done=False, task__end_date__gt=datetime.now()).count...
29.909091
164
0.741641
3d32fec67523c25737b25a5a9443c352eb3269bc
5,080
py
Python
single_model.py
henrique/jigsaw20
5d12de807667810ea9b9bdb9cbccebabea7ed21d
[ "Apache-2.0" ]
8
2020-06-23T13:42:34.000Z
2022-01-25T11:00:01.000Z
single_model.py
henrique/jigsaw20
5d12de807667810ea9b9bdb9cbccebabea7ed21d
[ "Apache-2.0" ]
null
null
null
single_model.py
henrique/jigsaw20
5d12de807667810ea9b9bdb9cbccebabea7ed21d
[ "Apache-2.0" ]
3
2020-06-24T03:18:26.000Z
2020-07-30T01:22:53.000Z
""" build a TFAutoModel and load its data from npz or tfrec dataset """ import random import numpy as np import pandas as pd import tensorflow as tf from tensorflow.keras.layers import Dense, Dropout, Input, GlobalMaxPooling1D, GlobalAveragePooling1D from tensorflow.keras.models import Model from transformers import ...
32.987013
101
0.667717
a11d91ac4f07f6aa7e125427a4e41710d8557c14
7,192
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/route/cutTrips.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/route/cutTrips.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/route/cutTrips.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
#!/usr/bin/env python # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2012-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www.ec...
38.459893
119
0.600528
a17c18f663dbb509d9b4084f0ce790f22bbd4f9d
470
py
Python
DataProcess/auto_rotation/cal_rotation_cycle_time/cal_rotation_cycle_time_main.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/auto_rotation/cal_rotation_cycle_time/cal_rotation_cycle_time_main.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
DataProcess/auto_rotation/cal_rotation_cycle_time/cal_rotation_cycle_time_main.py
zhangupkai/RFID_Script
9e05fad86e71dc6bd5dd12650d369f13d5a835c8
[ "MIT" ]
null
null
null
from cal_rotation_cycle_time_detail import * def cal_rotation_cycle_time(timestamp, phase, tag_pair): # if tag_pair == 'B034_B029': # return locate_degree_B034_B029(phase) # elif tag_pair == 'B016_AA03': # return locate_degree_B016_AA03(phase) if tag_pair == 'B016_B023': return cal...
36.153846
66
0.72766
c5237049883576b067c78d49ba9779cedd00a069
315
py
Python
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.2-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.2-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
0-notes/job-search/Cracking the Coding Interview/C09SystemDesignScalability/questions/9.2-question.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
# Social Network # How would you design the data structures for a very large social network like # Facebook or LinkedIn? Describe how you would design an algorithm to show # the shortest path between two people (Me --> Bob --> Susan --> Jason --> You). # time complexity: O() # space complexity: O()
39.375
85
0.688889
b1920bd6a13548454c03dc0edeb310ac4229a4f0
3,009
py
Python
py_script/similar_courseware.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
4
2021-07-29T11:32:34.000Z
2021-08-12T07:13:25.000Z
py_script/similar_courseware.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
null
null
null
py_script/similar_courseware.py
skybluezx/GraphCompute
95dc176147a7a16eb2176fd1f384de467e3daad6
[ "MIT" ]
1
2021-11-29T03:47:35.000Z
2021-11-29T03:47:35.000Z
import os import json from itertools import combinations from tqdm import tqdm def main(): # 主知识点-课件-题目关系文件路径 main_kp_courseware_question_file_path = '/Users/zhaixiao/workplace/c_cpp/GraphCompute/test_data/kp_courseware_question.json' # 课件包含知识点列表 courseware_main_kp_dict = dict() with open(main_kp...
44.25
128
0.702891
49614d8abea7c38d67587db35530d7b802946e3e
858
py
Python
novel/crawler/rudaozhisheng/spiders/tieba_spider.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2017-10-23T14:58:47.000Z
2017-10-23T14:58:47.000Z
novel/crawler/rudaozhisheng/spiders/tieba_spider.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
null
null
null
novel/crawler/rudaozhisheng/spiders/tieba_spider.py
East196/hello-py
a77c7a0c8e5e2b5e8cefaf0fda335ab0c3b1da21
[ "Apache-2.0" ]
1
2018-04-06T07:49:18.000Z
2018-04-06T07:49:18.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib.request, urllib.error, urllib.parse import scrapy class TiebaSpider(scrapy.Spider): name = 'tieba' allowed_domains = ["tieba.baidu.com"] start_urls = ['http://tieba.baidu.com/f?kw=blackpink&ie=utf-8'] def parse(self, response): with...
33
83
0.618881
b8dbd89ed886c900b626a74ea02b28cb11b00195
205
py
Python
PYTHON/Sets/check_subset.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/check_subset.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Sets/check_subset.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys for _ in range(int(input())): An, A = int(input()), set(map(int, input().split())) Bn, B = int(input()), set(map(int, input().split())) print(A.issubset(B))
22.777778
56
0.580488
b8533fd58dd01f6fb44e25c27390295ddc5a0dd9
1,017
py
Python
945/Fcat_945_math.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
945/Fcat_945_math.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
945/Fcat_945_math.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
from typing import List from collections import defaultdict class Solution: def minIncrementForUnique(self, nums: List[int]) -> int: if not nums: return 0 upper = 0 lower = float('inf') num_count = defaultdict(int) for num in nums: upper = max(num, u...
28.25
75
0.526057
b8c32229e442bf9b40c482f5d626303391ad23c1
875
py
Python
Curso-Em-Video-Python/2Exercicios/044-gerenciador_de_pagamentos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/044-gerenciador_de_pagamentos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/044-gerenciador_de_pagamentos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
print('Nike') print('-' * 30) produto = float(input('Qual o valor do produto? R$ ')) pagamento = float(input('''[1] Pagamento a Vista com 10% de desconto Dinheiro ou Cheque [2] A Vista no Cartão: 5% de Desconto [3] Em até 2x no Cartão : Preço Normal [4] 3x ou mais no cartão: 20% de Juros Selecione a opção: ''')) if pa...
46.052632
132
0.649143
a23dbe2f1c493b89103795fbcf3757e56fc128ca
7,525
py
Python
official/nlp/dgu/src/metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/nlp/dgu/src/metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/nlp/dgu/src/metric.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
32.575758
85
0.56093
a272ad12dd90c53dff87d14b912c4d2e9374ff15
3,010
py
Python
packages/watchmen-rest-doll/src/watchmen_rest_doll/system/pat_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/system/pat_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-rest-doll/src/watchmen_rest_doll/system/pat_router.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import date from secrets import token_urlsafe from typing import List, Optional from fastapi import APIRouter, Body, Depends from pydantic import BaseModel from starlette.responses import Response from watchmen_auth import PrincipalService from watchmen_meta.common import ask_meta_storage, ask_snowflake...
34.204545
119
0.797342
38f950eb1b82ab63236b411a48a78c93c3eb5dca
30,923
py
Python
packages/watchmen-inquiry-trino/src/watchmen_inquiry_trino/trino_storage.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-inquiry-trino/src/watchmen_inquiry_trino/trino_storage.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-inquiry-trino/src/watchmen_inquiry_trino/trino_storage.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from datetime import date, datetime, time from decimal import Decimal from logging import getLogger from typing import Any, Callable, Dict, List, Optional, Tuple, Union from trino.dbapi import connect from watchmen_auth import PrincipalService from watchmen_data_kernel.cache import CacheService from watchmen_data_ker...
41.957938
120
0.73531
ac232b0c5292eafbbfcaddea11112fbaf26e157a
367
py
Python
course/urls.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
course/urls.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
null
null
null
course/urls.py
MIXISAMA/MIS-backend
7aaa1be773718de1beb3ce0080edca7c4114b7ad
[ "MIT" ]
2
2020-04-20T07:26:51.000Z
2020-04-30T11:51:54.000Z
from django.urls import path from course.views import Courses, Grades, CourseStudents, CMGrades, StudentsGrades urlpatterns = [ path("courses/", Courses.as_view()), path("grades/", Grades.as_view()), path("course_students/", CourseStudents.as_view()), path("cm_grades/", CMGrades.as_view()), path("s...
33.363636
82
0.711172
ac6770502a34cf300add3aef70b6b5d790df49cb
1,205
py
Python
car/client_control.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
car/client_control.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
car/client_control.py
cdxxiaoge/StreetRoller
3bb9b4ee8ddad9c1582f1aaf572591a09e5d3400
[ "Apache-2.0" ]
null
null
null
import time from Mymqtt import Mymqtt from receive import * import pygame # 位置、速度、加速度三个量都要记得进行模拟和现实的转化 flash = 0 # 背景图以及移动小车图 car_image_name = "car.png" pygame.init() # 生成窗口以及窗口标题 screen_show = pygame.display.set_mode((1000, 600), 0, 32) pygame.display.set_caption("Little Case") # 加载并转换图片 car0 = pygame.image.load(car_...
24.591837
69
0.615768
ac7986c7959a0946e4f1d1a55aad82e2c8ef50b8
415
py
Python
site/public/courses/SPD-2.31/archive/lab/refactoring/remove_control_flag2.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
1
2021-08-24T20:22:19.000Z
2021-08-24T20:22:19.000Z
site/public/courses/SPD-2.31/exercises/simplify-conditionals/read_file.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
site/public/courses/SPD-2.31/exercises/simplify-conditionals/read_file.py
KitsuneNoctus/makeschool
5eec1a18146abf70bb78b4ee3d301f6a43c9ede4
[ "MIT" ]
null
null
null
# by Kami Bigdely # Remove control flag # Reference: https://stackoverflow.com/a/10140333/81306 # This code snippet reads up to the end of the file n = 16 with open('foobar.file', 'rb') as fp: running = True while running: chunk = fp.read(n) if chunk == '': # end of file, stop running. ...
29.642857
56
0.578313
0224cddd427e4905b6c9f6261afe59d0aeb310ba
678
py
Python
tests/onegov/fsi/test_import_ims.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/fsi/test_import_ims.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/fsi/test_import_ims.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from onegov.fsi.ims_import import parse_ims_data import os data_path = os.environ.get('IMS_DATA_PATH') persons_file = f'{data_path}/Personen.txt' subscriptions_file = f'{data_path}/Teilnehmer.txt' events_file = f'{data_path}/Ausführungen.txt' courses_file = f'{data_path}/Kurse.txt' @pytest.mark.skip('...
28.25
75
0.741888
cebaa21130c885a4618fe3c7df84a8017b43a973
1,519
py
Python
Interview Preparation Kits/Interview Preparation Kit/Sorting/Fraudulent Activity Notifications/fraud_notices_improved.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Interview Preparation Kits/Interview Preparation Kit/Sorting/Fraudulent Activity Notifications/fraud_notices_improved.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Interview Preparation Kits/Interview Preparation Kit/Sorting/Fraudulent Activity Notifications/fraud_notices_improved.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the activityNotifications function below. def get_twice_median(arr, d, count): cumulative = count.copy() for i in range(1, 201): cumulative[i] += cumulative[i-1] if d % 2 == 0: i = 0 while i < 201:...
20.253333
62
0.500329
f079da13261bfd19570689309f0c66d69c54fc10
2,088
py
Python
Packs/QRCodeReader/Integrations/QRCodeReaderGoqrMe/QRCodeReaderGoqrMe.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/QRCodeReader/Integrations/QRCodeReaderGoqrMe/QRCodeReaderGoqrMe.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/QRCodeReader/Integrations/QRCodeReaderGoqrMe/QRCodeReaderGoqrMe.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import json import shutil import demistomock as demisto # noqa: F401 import requests import urllib3 from CommonServerPython import * # noqa: F401 urllib3.disable_warnings() # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' URL = "http://api.qrserver.com/" def read_qr_code(verify=True): ...
26.769231
102
0.635536
b2bbaac06ce96fe9ca9b58d13ca47d6be28071b6
1,060
py
Python
app.py
Dstri26/SeTra
df6a02cbef4cf68c36080ac1abb74f94549e782c
[ "MIT" ]
null
null
null
app.py
Dstri26/SeTra
df6a02cbef4cf68c36080ac1abb74f94549e782c
[ "MIT" ]
null
null
null
app.py
Dstri26/SeTra
df6a02cbef4cf68c36080ac1abb74f94549e782c
[ "MIT" ]
1
2021-04-26T04:47:07.000Z
2021-04-26T04:47:07.000Z
from flask import Flask, render_template, request,jsonify from cv2 import imwrite, imread, resize, imshow import cv2 import numpy as np import tensorflow.keras.models import re import base64 import tensorflow as tf import sys import os food_keys = {0 : 'cheesecake', 1 : 'chicken_curry', 2 : 'donuts', 3 : 'french_f...
23.043478
57
0.65566
b2cebd0ef42a80b20b78cc72d5225d9e61386236
10,042
py
Python
tests/nlu/extractors/test_crf_entity_extractor.py
techBeck03/rasa
72fef6e7742f5ccb8614c75b6410dff68f137554
[ "Apache-2.0" ]
2
2020-02-27T16:41:52.000Z
2020-02-27T16:41:57.000Z
tests/nlu/extractors/test_crf_entity_extractor.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
56
2020-06-09T00:16:14.000Z
2020-11-16T00:25:20.000Z
tests/nlu/extractors/test_crf_entity_extractor.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
from rasa.nlu.featurizers.dense_featurizer.spacy_featurizer import SpacyFeaturizer from rasa.nlu.tokenizers.whitespace_tokenizer import WhitespaceTokenizer from rasa.nlu.tokenizers.spacy_tokenizer import SpacyTokenizer from rasa.nlu.constants import TEXT, SPACY_DOCS, ENTITIES from rasa.nlu.training_data import Message,...
33.811448
91
0.457279
335c3fe0ece36d083e0f831e2e934c1e20dddb08
6,038
py
Python
rasa/nlu/utils/bilou_utils.py
techBeck03/rasa
72fef6e7742f5ccb8614c75b6410dff68f137554
[ "Apache-2.0" ]
2
2020-02-27T16:41:52.000Z
2020-02-27T16:41:57.000Z
rasa/nlu/utils/bilou_utils.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
56
2020-06-09T00:16:14.000Z
2020-11-16T00:25:20.000Z
rasa/nlu/utils/bilou_utils.py
alfredfrancis/rasa
d8d226408f20cc2563c3aefbccef3e364a447666
[ "Apache-2.0" ]
3
2019-02-27T10:13:16.000Z
2019-07-26T08:33:45.000Z
from typing import List, Tuple, Text, Optional, Dict, Set, Any from rasa.nlu.tokenizers.tokenizer import Token from rasa.nlu.training_data import Message from rasa.nlu.training_data import TrainingData from rasa.nlu.constants import ( ENTITIES, TOKENS_NAMES, TEXT, BILOU_ENTITIES, NO_ENTITY_TAG, ) ...
28.889952
85
0.656674
68456a70fb6b5b861a958cf5311693049393e9d3
4,272
py
Python
haas_lib_bundles/python/docs/examples/fire_detector/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/fire_detector/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/fire_detector/esp32/code/main.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- from aliyunIoT import Device # iot组件是连接阿里云物联网平台的组件 import network # Wi-Fi功能所在库 import utime # 延时API所在组件 import ujson # json字串解析库 from driver import GPIO # LED需使用GPIO进行控制 from driver import ADC # ADC类,通过微处理器的ADC模块...
24.272727
92
0.609082
6880da1883d16ea7784fd1394206284de308eed7
217
py
Python
Online-Judges/CodeForces/800/1615A.Closing_The_Gap.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
3
2021-06-15T01:19:23.000Z
2022-03-16T18:23:53.000Z
Online-Judges/CodeForces/800/1615A.Closing_The_Gap.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
Online-Judges/CodeForces/800/1615A.Closing_The_Gap.py
shihab4t/Competitive-Programming
e8eec7d4f7d86bfa1c00b7fbbedfd6a1518f19be
[ "Unlicense" ]
null
null
null
def test_case(): n = int(input()) tmp = map(int, input().split(" ")) sm = sum(tmp) if sm % n == 0: print(0) else: print(1) t = int(input()) while t: test_case() t -= 1
12.055556
38
0.442396
9bdf33d6346997be81c56b208d6149e8742816fe
949
py
Python
Assembler/opcodes.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
1
2019-01-28T01:53:20.000Z
2019-01-28T01:53:20.000Z
Assembler/opcodes.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
Assembler/opcodes.py
Laegluin/mikrorechner
7e5e878072c941e422889465c43dea838b83e5fd
[ "MIT" ]
null
null
null
import exceptions as error opcode_of_commands = {"copy": '00001', "set": '00010', "+": '00000', "-": '10111', "*": '01110', "/": '01111', "&": '10000', "|": '10001', "~": '10010', "^": '10011', "<<": '10100', ...
28.757576
59
0.425711
500e41bbd36d8312f3556cae25481fa5fd249b25
15,666
py
Python
Packs/AzureWAF/Integrations/AzureWAF/AzureWAF.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/AzureWAF/Integrations/AzureWAF/AzureWAF.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/AzureWAF/Integrations/AzureWAF/AzureWAF.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * from CommonServerUserPython import * from typing import Any, Union from MicrosoftApiModule import * import urllib3 # Disable insecure warnings urllib3.disable_warnings() ''' CONSTANTS ''' UPSERT_PARAMS = {'resource_id': 'id', 'policy_settings': 'propert...
40.690909
119
0.637431
c5e14b123ede18531a845e2cceff60bc52b472a4
393
py
Python
leetcode/242-Valid-Anagram/ValAnagram_004.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/242-Valid-Anagram/ValAnagram_004.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/242-Valid-Anagram/ValAnagram_004.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution: # @param {string} s # @param {string} t # @return {boolean} def isAnagram(self, s, t): if len(s) != len(t): return False chs = {} for ch in s: chs[ch] = chs.get(ch, 0) + 1 for ch in t: if ch not in chs or chs[ch] == 0: ...
24.5625
45
0.43257
76783045c946585f964a80a84015384ecb48f6e2
2,673
py
Python
Aggregator/agg_zugdaten_experimental.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
Aggregator/agg_zugdaten_experimental.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
Aggregator/agg_zugdaten_experimental.py
cfleschhut/virushack
2fe7ded0be8672b066edef7fed52573794db2ba5
[ "Apache-2.0" ]
null
null
null
""" This script aggregates zugdata on a daily basis and uploads it in /live/aggdata """ import os import re import pandas as pd from datetime import datetime, date, timedelta # compatibility with ipython #os.chdir(os.path.dirname(__file__)) import json import boto3 from pathlib import Path from coords_to_kreis import c...
41.123077
185
0.749345
4f94a0e418d738c5b2f2fe147f669e0e6ff8038b
1,262
py
Python
src/visitpy/visit_flow/visit_flow_vpe/setup.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/visitpy/visit_flow/visit_flow_vpe/setup.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/visitpy/visit_flow/visit_flow_vpe/setup.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# Copyright (c) Lawrence Livermore National Security, LLC and other VisIt # Project developers. See the top-level LICENSE file for dates and other # details. No copyright assignment is required to contribute to VisIt. """ file: setup_tests.py author: Cyrus Harrison <cyrush@llnl.gov> created: 3/28/2010 descriptio...
25.24
73
0.687797
50d6ed9bf0e3628718b06058e7790d2fb77516cf
3,325
py
Python
test/test_npu/test_network_ops/test_grid_sampler_2d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-12-02T03:07:35.000Z
2021-12-02T03:07:35.000Z
test/test_npu/test_network_ops/test_grid_sampler_2d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
1
2021-11-12T07:23:03.000Z
2021-11-12T08:28:13.000Z
test/test_npu/test_network_ops/test_grid_sampler_2d.py
Ascend/pytorch
39849cf72dafe8d2fb68bd1679d8fd54ad60fcfc
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Huawei Technologies.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 License at # # https://opensource.org/licenses/BSD-3-Clause # # Unless required by applicable law...
44.932432
85
0.617744
2cfc3b049781bd60d088706b08f939e79c1d6186
190
py
Python
python/python_new/Python 3/if.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_new/Python 3/if.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_new/Python 3/if.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#If the number is positive,we print an appropriate message. num=3 A=int(input("Enter a number")) if A>0: print(A,"is a positive number") num=-1 if num<0: print(num,"is a negative number")
21.111111
59
0.710526
d765ff71481d046397933c8d9508dd4ce0381ee6
7,788
py
Python
projects/g4h2-graduation-project/src/backends/scf_functions/handler_submit_img_to_ocr.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/scf_functions/handler_submit_img_to_ocr.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/scf_functions/handler_submit_img_to_ocr.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
import json import logging import sys import time from enum import Enum from typing import Any, Callable, Dict, List, Optional, Union from conf import settings sys.path.insert(0, './libs') from qcloud_cos import CosConfig, CosS3Client from qcloud_cos.cos_exception import CosServiceError, CosClientError fr...
29.953846
95
0.60452
7e71a5d4d821ac3d26b98d649bacd93e4d8d61b4
662
py
Python
python/course/leetcode/1~27/7. Reverse Integer_0414.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
1
2019-05-22T07:12:34.000Z
2019-05-22T07:12:34.000Z
python/course/leetcode/1~27/7. Reverse Integer_0414.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
3
2021-12-10T01:13:54.000Z
2021-12-14T21:18:42.000Z
python/course/leetcode/1~27/7. Reverse Integer_0414.py
TimVan1596/ACM-ICPC
07f7d728db1ecd09c5a3d0f05521930b14eb9883
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # @Time:2020/6/18 11:59 # @Author:TimVan # @File:7. Reverse Integer.py # @Software:PyCharm # 给你一个 32位的有符号整数x ,返回将x # 中的数字部分反转后的结果。 # 如果反转后整数超过 32 位的有符号整数的范围[−231, 231 − 1] ,就返回0。 # # 假设环境不允许存储 64 位整数(有符号或无符号)。 # 示例 # 1: # 输入:x = 123 # 输出:321 # 示例2: # class Solution: def reverse(self, x: int...
17.891892
47
0.587613
7ea0dd2b9275af6809dba3bd0935b1f3e4da504b
5,391
py
Python
workSpace/lib/display/led.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
5
2018-07-24T17:41:15.000Z
2021-02-07T13:59:42.000Z
workSpace/lib/display/led.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
null
null
null
workSpace/lib/display/led.py
fibeule/Micropython-Tutorial-for-esp32
eea251efd7b7b6b15af96f6f84d3281e1119234a
[ "MIT" ]
5
2018-07-24T17:41:03.000Z
2021-10-01T07:06:16.000Z
from machine import Pin, PWM from time import sleep_ms from math import sin, pi, exp #from math import log, pow, log10 class LED (): isPWMinit = False def __init__ (self, pin, freq=1000): self.pin = pin self.freq = freq self.led = Pin(self.pin, Pin.OUT) #self.pwmIntervals =...
29.140541
96
0.47468
cb820e4575ef26f7f0d05628619ea3440b7b1fb3
2,712
py
Python
projects/g3h2-algorithm/practice1/2-priority-queue.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h2-algorithm/practice1/2-priority-queue.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g3h2-algorithm/practice1/2-priority-queue.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
from collections.abc import Iterable class PriorityQueue(object): def __init__(self, source=None): if source is None: source = [] if not isinstance(source, Iterable): raise TypeError("'{s_type}' object is not iterable".format(s_type=type(source).__name__)) self.dat...
26.076923
101
0.558997
cb8770c793e24d90bf0fb8e3e253a244574d3a78
6,272
py
Python
euler/13:Large_sum.py
Alexdelia/Puzzle_Solving
620e07508cd36dba7b806040c36360b87eb4637e
[ "CC0-1.0" ]
null
null
null
euler/13:Large_sum.py
Alexdelia/Puzzle_Solving
620e07508cd36dba7b806040c36360b87eb4637e
[ "CC0-1.0" ]
null
null
null
euler/13:Large_sum.py
Alexdelia/Puzzle_Solving
620e07508cd36dba7b806040c36360b87eb4637e
[ "CC0-1.0" ]
null
null
null
# **************************************************************************** # # # # ::: :::::::: # # 13:Large_sum.py :+: :+: :+: ...
52.266667
80
0.845344
0e1215ebee583ee285c3f6072fa950f9b305becc
116
py
Python
python_gui_tkinter/RES/lockscreen.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python_gui_tkinter/RES/lockscreen.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python_gui_tkinter/RES/lockscreen.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import os os.popen('gnome-screensaver-command --lock') ''' import ctypes ctypes.windll.user32.LockWorkStation() '''
16.571429
44
0.75