blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
80c42fe9c031b917cbb03938e019148474a52da6
a451c9f6b4e0fad4efdc7440e6a180fbed580a15
/DB_lab1/database.py
9b3da78774924f41a863b6d31de9bbdd7e0d78e2
[]
no_license
serhiisad/DB-labs-2018
0124c6b997ad641fb952e62f9caee6e63ff0459f
8316d2ce6a7cfa2b45a567d4e981260435893d44
refs/heads/master
2020-03-29T19:51:52.931565
2018-12-27T20:54:52
2018-12-27T20:54:52
150,284,349
0
0
null
null
null
null
UTF-8
Python
false
false
7,910
py
import psycopg2 from pprint import pprint import datetime from entities.entities import * import pandas from texttable import Texttable class Database: def __init__(self): try: self.connection = psycopg2.connect("dbname='test_db' user='postgres' host='localhost' " ...
[ "serhiisad.kpi@gmail.com" ]
serhiisad.kpi@gmail.com
a4fcf78fb6f9b1a710d4b307e24a279368f9d5b0
7981ba3bdf66d8844ff8fa6263859dc8e5cff8ad
/aliennorDjangoBackend/ecocases/admin.py
c67fbb373e91c8e295a46d2da58dd92b200cd2ae
[]
no_license
phamcong/aliennor
456e3b4c8aac866b8e5deaf593c10e2d6ce28aac
f4862951d94e10c4599a5084456c0a84398d04ae
refs/heads/master
2021-04-26T23:44:25.582888
2018-07-12T00:33:39
2018-07-12T00:33:39
123,848,222
0
0
null
null
null
null
UTF-8
Python
false
false
1,631
py
from django.contrib import admin from django.contrib.auth.models import Group, User from .models import * # Register your models here. class Ecocase2ESMInline(admin.TabularInline): model = Ecocase2ESM extra = 0 class EcocaseImageInline(admin.TabularInline): model = EcocaseImage extra = 0 class EcocaseInline(...
[ "ccuong.ph@gmail.com" ]
ccuong.ph@gmail.com
7a656599c51b12d4c9c7bddb2b3b10d1d57cb87a
e5fa113d598f3289c0ff7ef957f7c8eae0959459
/test_generate.py
09233031b96d60fafa64bca4bae15ffd9c139add
[ "MIT" ]
permissive
jtauber/greek-inflexion
41d3a98e0c8b232892cf4556615c2394175a6bcd
872e59507003b17b746f78d85ee1f69c3edf7dcf
refs/heads/master
2023-01-23T18:52:29.507336
2020-03-14T03:11:21
2020-03-14T03:11:21
64,105,348
34
13
MIT
2023-01-21T21:34:52
2016-07-25T05:12:54
Python
UTF-8
Python
false
false
4,353
py
import yaml from accent import strip_length from greek_inflexion import GreekInflexion def output_detail(detail): print(" -") if "stem" in detail: print(" stem: {}".format(detail["stem"])) if "stemming" in detail: print(" stemming:") print(" ...
[ "jtauber@jtauber.com" ]
jtauber@jtauber.com
59ff6991faf38329b9e67effef2771e874a6ff3a
b64fcb9da80d12c52bd24a7a1b046ed9952b0026
/tests/integration/go_ethereum/test_goethereum_ws.py
7386d4c4b4eb9b9103923f9df758cfa4b1fc878e
[ "MIT" ]
permissive
PlatONnetwork/client-sdk-python
e59f44a77690806c8763ed6db938ed8447d42417
94ad57bb34b5ee7bb314ac858071686382c55402
refs/heads/master
2022-07-09T08:49:07.312759
2021-12-24T08:15:46
2021-12-24T08:15:46
173,032,954
7
16
MIT
2022-08-31T02:19:42
2019-02-28T03:18:03
Python
UTF-8
Python
false
false
1,538
py
import pytest from tests.integration.common import ( MiscWebsocketTest, ) from tests.utils import ( get_open_port, wait_for_ws, ) from client_sdk_python import Web3 from .common import ( GoEthereumEthModuleTest, GoEthereumNetModuleTest, GoEthereumPersonalModuleTest, GoEthereumTest, GoE...
[ "hietel366435@163.com" ]
hietel366435@163.com
82fb434497b50d6e2fd09a3756b98dd4e8610c7a
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/mHLAmj4vmRuXrT8Nb_18.py
05dc923d40d4c6ecf82486ec875358bd9209cb2b
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
763
py
""" Write a function that returns `True` if two arrays, when combined, form a **consecutive sequence**. A consecutive sequence is a sequence without any gaps in the integers, e.g. `1, 2, 3, 4, 5` is a consecutive sequence, but `1, 2, 4, 5` is not. ### Examples consecutive_combo([7, 4, 5, 1], [2, 3, 6]) ➞ True ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
3bb006d850109a97c63df88ca05a31cdc0f47bfd
9b428d40e0966136f82351e06abd9a77eb9576dd
/Python fundamentals/lamdas.py
47ab3050f105ec5f57ea5b738b7c1a9384f7eb9f
[]
no_license
CEsarABC/Python-CI-
a438d64d689d9cf428b2b3577f4246e43046502b
0455e61f72c3a1b747759030e685239be83e73a6
refs/heads/master
2021-06-06T09:18:00.944074
2020-04-16T10:35:35
2020-04-16T10:35:35
149,114,633
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
'''anonimus functions''' def square(x): return x**2 print(square(4)) result = (lambda x: x**2)(16) print(result) calculation = (lambda x: x*(x+5)**2)(5) print(calculation)
[ "cesarbworkmail@gmail.com" ]
cesarbworkmail@gmail.com
ab3e49c01494c2c99fe42e7bdc73c6c6cdbfd064
74c6059e165087cc21a3907ba72222df10cdfc24
/reviewboard/reviews/management/commands/fixscreenshots.py
41ee7ace3af048784f70b4da7aa21a19b402f75a
[ "MIT" ]
permissive
dorothyk/reviewboard
0e6122899b08df2ec1557041cc8046268e87b64a
2095bcf4e36961ad12f8917a14f5670a4ec1408c
refs/heads/master
2020-05-29T14:10:42.852562
2011-02-09T09:26:35
2011-02-09T09:26:48
1,347,965
1
1
null
null
null
null
UTF-8
Python
false
false
574
py
import os from django.core.management.base import NoArgsCommand from reviews.models import Screenshot class Command(NoArgsCommand): def handle_noargs(self, **options): prefix = os.path.join("images", "uploaded") new_prefix = os.path.join("uploaded", "images") for screenshot in Screensho...
[ "chipx86@chipx86.com" ]
chipx86@chipx86.com
4f4d01c24a10969478ec10e78cda46a0e660a756
66e77a30b0764530861ff62afbb97f568e37e242
/backend/round_water_26385/wsgi.py
0be678841d3428ed46e21ac62927d314ddbe5448
[]
no_license
crowdbotics-apps/round-water-26385
2dd2eadf0d6537e9aea1b8089d0aa1794f8ec7be
0204f977276b0e2254b549802dcc4b0749b6a1a5
refs/heads/master
2023-04-06T02:15:59.634730
2021-05-08T13:46:32
2021-05-08T13:46:32
365,525,237
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" WSGI config for round_water_26385 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
15a0fa186bf529b806bf492aa93e66da222504d8
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc004/B/4553996.py
d9a7fb61f29fa52e51be02d6af1e5c62e279b5f4
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
284
py
N, x = map(int, input().split()) A = [int(a) for a in input().split()] M = [a for a in A] mi = 10**100 for j in range(N): s = 0 for i in range(N): s += M[i] mi = min(mi, s+x*j) M = [min(M[i], A[(i-j-1) % N]) for i in range(N)] print(mi)
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
ddc6f22075fe180a957831c79a2054e486337fd8
dc3c88f1fe5c80147e4c52ee6ec3136307ec9702
/clear/test/clear_py_file_text_debug_not_clear_empty_lines_withOutFile_lessText_test.py
61d6071dd12faaf3c55531fa06127d5da4cf5253
[]
no_license
ypapax/all_sublime_plugins
062f9b9992a093a02e6b905c1329c681c8532034
8b10e471233bd6c2e77907cf5569b0ddccfc88f9
refs/heads/master
2021-01-15T21:10:08.029750
2015-08-16T06:32:51
2015-08-16T06:32:51
40,391,701
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
import sys import os currentFolder = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, os.path.join(currentFolder, '..')) sys.path.insert(0, os.path.join(currentFolder, '../../util')) sys.path.insert(0, os.path.join(currentFolder, '../../moveNearReplace')) import assertMy import clearModel as clear import ...
[ "maxYefr@gmail.com" ]
maxYefr@gmail.com
37bd3c6c040d43a583dbce5828f267bba0725529
5dcdc5720f59280e6e22e78534dc565e9b299048
/ALGO/arrays/zigzagTraverse.py
44254118ae19b2b6aa2aba4fa193ae8d19aa68d5
[]
no_license
Stella2019/10-24
4fc944ba397d8f9494f4fc7ceead3065b4572a55
d62572831235e8e608f259aa7b3608ae6752a64a
refs/heads/main
2023-01-01T12:46:06.021044
2020-10-24T20:53:12
2020-10-24T20:53:12
306,967,300
0
0
null
null
null
null
UTF-8
Python
false
false
911
py
def zigzagTraverse(array): height = len(array) - 1 width = len(array[0]) - 1 result = [] row, col = 0, 0 goingDown = True while not isOutOfBounds(row, col, height, width): result.append(array[row][col]) if goingDown: if col == 0 or row == height: going...
[ "noreply@github.com" ]
Stella2019.noreply@github.com
cac85b0c6851a7b4d84dae20d8f190caab703671
57754174c64eff434e3a59e53576dcfd97725b1a
/6_OperacionesBasicas/modificarPixeles.py
f346e90fcfc90fd110f58fdcdd32b20f45351619
[]
no_license
dbetm/learning-opencv
4f7db4ba23049cf23cf869e0c9238ec0666c1555
2c6f4185a54a1b1cd93739993c41d2500f475cb1
refs/heads/master
2020-04-12T14:35:03.052444
2019-11-05T05:16:33
2019-11-05T05:16:33
162,556,507
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
import numpy as np import cv2 # Primero se carga la imagen img = cv2.imread("../src/img/6/nocheEstrellada.jpg") # La imagen cargada es de 2000 x 1333 px # Se puede acceder al valor de un pixel con la coordenada # Imágenes RGB regresan una gama de colores, en grises solo la intensidad px = img[100, 100] print(px) # O...
[ "davbetm@gmail.com" ]
davbetm@gmail.com
14b2be348797c4e34c97994527726b4facd6e2a1
89e02b1043a58781241b0f492008c5fe37f80d70
/libs/htmlMaker.py
2c26d84959195799fab07fab030eb3268249e71c
[]
no_license
Kyeongrok/bible_finder
e0b9484e3db66a52d02fa8cafd1da214fa78b4b7
dd81e1cbfbdc0b6f2b117f5149a627f6b9df2f00
refs/heads/master
2022-12-12T14:46:24.970898
2019-05-13T07:48:27
2019-05-13T07:48:27
181,269,209
0
0
null
2022-12-08T04:58:52
2019-04-14T06:30:12
Python
UTF-8
Python
false
false
386
py
def makeTr(verse): index = "{}{}:{}".format(verse['shortendBookName'], verse['chapter'], verse['verse']) return "<tr><td>{}</td><td>{}</td></tr>".format(index, verse['text']) def makeTable(verses): head = "<html><body><table>" tbody = "" for verse in verses: tbody = tbody + makeTr(verse) ...
[ "oceanfog1@gmail.com" ]
oceanfog1@gmail.com
c52ba6a0b533ca362acfd097212ca9e7c6e815ec
2a3743ced45bd79826dcdc55f304da049f627f1b
/venv/lib/python3.7/site-packages/jedi/third_party/typeshed/stdlib/2and3/py_compile.pyi
a8be1136a52d0f877e036ab0e3157c3fc06a140d
[ "MIT", "Apache-2.0" ]
permissive
Dimasik007/Deribit_funding_rate_indicator
12cc8cd7c0be564d6e34d9eae91940c62492ae2a
3251602ae5249069489834f9afb57b11ff37750e
refs/heads/master
2023-05-26T10:14:20.395939
2019-08-03T11:35:51
2019-08-03T11:35:51
198,705,946
5
3
MIT
2023-05-22T22:29:24
2019-07-24T20:32:19
Python
UTF-8
Python
false
false
748
pyi
# Stubs for py_compile (Python 2 and 3) import sys from typing import Optional, List, Text, AnyStr, Union _EitherStr = Union[bytes, Text] class PyCompileError(Exception): exc_type_name: str exc_value: BaseException file: str msg: str def __init__(self, exc_type: str, exc_value: BaseException, fil...
[ "dmitriy00vn@gmail.com" ]
dmitriy00vn@gmail.com
7946b05029f33bf5ebe6435793f729964a9b7c9d
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/223/users/4183/codes/1764_1577.py
dd524413632d511d6df20249af384ce9f1671a18
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
215
py
from numpy import * a = float(input("Digite: ")) vo = float(input("Digite: ")) n = int(input("Digite: ")) d0 = ((a*0**2)/2) + vo*0 d1 = ((a*1**2)/2) + vo*1 d2 = ((a*2**2)/2) + vo*2 vet = array([d0,d1,d2]) print(vet)
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
87c4a20fad2b3e5cac37f8ae58752d17f72ce729
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/hC6yGEPvtN2izt3c9_24.py
717a5bbd74a34bc586a4dc546dea375267dbfc4c
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
323
py
def is_mini_sudoku(square): num = [] for n in square: for x in n: if x == 0: return False for n in square: for x in n: if x in num: return False else: num.append(x) ​ return True ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
cc560b2143851dd803f6574c795ab9d464a3e4ac
8407a0d96a7122ef5c1bed2fae335b5c089ed6bf
/ggpy/player/game_player.py
932178efc4208934a6a1e8da4739889abfea570b
[ "MIT" ]
permissive
hobson/ggpy
d90cdb4f545bab84e09a14cbf7a53c05ec573278
4e6e6e876c3a4294cd711647051da2d9c1836b60
refs/heads/master
2021-01-22T04:24:18.890860
2014-08-17T21:59:24
2014-08-17T21:59:24
18,973,392
1
0
null
null
null
null
UTF-8
Python
false
false
7,650
py
#!/usr/bin/env python import socket class Socket: '''from python.org docs demonstration class only -- coded for clarity, not efficiency ''' def __init__(self, sock=None): if sock is None: self.sock = socket.socket( socket.AF_INET, socket.SOCK_STREAM) e...
[ "hobsonlane@gmail.com" ]
hobsonlane@gmail.com
8c14e69b701f1167e903914ebb18b0b71ea0689b
32f2bb684ceb32605839ecc68710dda28818ef7d
/python_code/course_tools/spark_code/fold_example.py
6143cbd3d45a69c7ed41a5fcf7ea777353339e4b
[]
no_license
paulhtremblay/big_data_course
fdde5570768143a3d30ead9c309e27661b4ac98c
0b6dfecd408e6df57640a2aaab6b0b3cd0819f30
refs/heads/master
2020-03-19T17:28:26.258058
2018-08-08T08:28:19
2018-08-08T08:28:19
136,761,108
0
1
null
null
null
null
UTF-8
Python
false
false
228
py
from pyspark import SparkContext, SparkConf conf = SparkConf().setAppName('Summer_Course').setMaster('local') sc = SparkContext(conf=conf) rdd1 = sc.parallelize([1,2,3,4,5]) rdd2 = rdd1.fold(0, lambda x, y: x + y) print(rdd2)
[ "paulhtremblay@gmail.com" ]
paulhtremblay@gmail.com
34c4a8524705d2f4d5eebb4d1a726ab68e37680e
3e77a86429ba0f6968f709e77e204cdfe920a041
/regex_sub.py
3e3a906ad463c72200a4644f7b297265fc44b425
[]
no_license
ramyamango123/test
a2d9bb6cafe8d7406b76eba526ddded2acf2a3b2
85420c9406109a72e1b1d455ea29a5cae9def5a3
refs/heads/master
2020-06-07T23:34:08.344051
2014-03-12T05:19:05
2014-03-12T05:19:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
308
py
import re #p = "Pyth#on is 10% $scripting %language&" # # #result = re.sub("\#|\%|\$|\&", '', p) # #print result #obj = re.compile("\#|\%|\$|\&") # #pattern = obj.sub('', p) # #print pattern phone = "2004-959-559 #This is Phone Number" phnum = re.sub("\#.*$", "", phone) print phnum
[ "ramya@Ramyas-MacBook-Air.local" ]
ramya@Ramyas-MacBook-Air.local
43d43ae7db605e1f0b80860ab638b3cf1dd83e82
2a4a53e8efb60ae3fee7ac186c021c332297bd08
/1208A.py
a3cf6f33a81b5779416d61c349a32dd4404b89d8
[]
no_license
swastiktiwari1/spojsolutions
d1632f820089dd8393c51153073d3ac9aedd8bbe
278a12e7124270ea9a8a3f80f21c38854e46107c
refs/heads/master
2020-06-08T16:50:55.530121
2020-03-22T16:14:35
2020-03-22T16:14:35
193,267,159
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
for _ in range(int(input())): a,b,n=map(int,input().split()) if (n+1)%3==1: print(a) elif (n+1)%3==2: print(b) else: print(a^b)
[ "noreply@github.com" ]
swastiktiwari1.noreply@github.com
4bb4ea4747bdae3bf0ddf3c97592d5cb7258ccba
59285b992b66fabedff36eb0b2baf200d5507174
/dashboard/admin.py
5879d990bdc360d861e7b6a76c5c98142bfe182b
[]
no_license
DeepakDarkiee/group
1e0108734226bdfcdd90e3e5f9d892b3b54a05f2
5c9d1af6880032b145e2066f0936699eccf356ea
refs/heads/main
2023-03-20T19:48:27.726799
2021-03-18T07:09:53
2021-03-18T07:09:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
from django.contrib import admin # Register your models here. from .models import Intern admin.site.register(Intern) from .models import Trainee admin.site.register(Trainee) from .models import Trainer admin.site.register(Trainer) from .models import Employee admin.site.register(Employee) from .models import Staf...
[ "mdipakpatidar@gmail.com" ]
mdipakpatidar@gmail.com
da9bc676067fbd72b3ea9818a8f67d46639fa4bd
763be4d77e20504848c9ddd29fe99b8012b00ea7
/uchicagohvz/game/dorm_migrations/0011_hvd_remove_rename_dorm.py
25f02203b26e664e4ddc21ce149d51ab24ccf063
[ "MIT" ]
permissive
kz26/uchicago-hvz
2207c944f19c6fcc3310d4a43b4e733ac8225b18
85e89a1b70fa2a23445890686312407fe8b2084a
refs/heads/master
2021-12-07T03:21:03.118945
2020-10-08T14:31:02
2020-10-08T14:31:02
13,137,628
11
6
MIT
2021-11-29T17:59:45
2013-09-27T00:28:39
HTML
UTF-8
Python
false
false
377
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('game', '0010_player_remove_rename_dorm'), ] operations = [ migrations.RemoveField('HighValueDorm', 'dorm'), migratio...
[ "whitehat2k9@gmail.com" ]
whitehat2k9@gmail.com
54bdb94eb130008311e0a35780ad1d0e94c2dca9
60fa442ae76b960ab21b10fb527c0eac85cdc587
/phenix/special_pos_test.py
9a5374cad54190a451132ddcdeae8dc1dc9a45cf
[]
no_license
pjanowski/Pawel_PhD_Scripts
8e6c2b92b492f9cacf425327a01faaceb27bb87d
5f9b1735ca6da8fdf0946d6748f3da7d3d723d5e
refs/heads/master
2021-01-10T06:15:30.287053
2015-11-16T04:04:07
2015-11-16T04:04:07
46,250,317
0
1
null
null
null
null
UTF-8
Python
false
false
1,708
py
pdb_file='/net/casegroup2/u2/pjanowsk/Phenix/test100/4hs2/4phenix_4hs2_minall.pdb' import iotbx.pdb m=iotbx.pdb.input(file_name=pdb_file) xrs=m.xray_structure_simple() scatterers = xrs.scatterers() site_symmetry_table = xrs.site_symmetry_table() print site_symmetry_table.n_special_positions() # for i in site_symmetry...
[ "pawelrc@gmail.com" ]
pawelrc@gmail.com
31f5d64e805d0125f586a9e24ab48ccb7ede2e86
b6b30fb06124883b074144c419b43d9182efcdff
/CV/facial_detection.py
bee3b643658f91d0d31878663ddf451d9a628468
[]
no_license
JohnnySunkel/BlueSky
da9f5107034289bfbdd3ba40458f9b9bd8d01a13
5a20eba9ef7509a5a7b7af86e7be848242e1a72f
refs/heads/master
2021-07-07T09:57:37.256950
2020-09-02T23:06:46
2020-09-02T23:06:46
166,883,639
0
0
null
null
null
null
UTF-8
Python
false
false
1,405
py
import cv2 import numpy as np # Load the Haar cascade file face_cascade = cv2.CascadeClassifier( 'haar_cascade_files/haarcascade_frontalface_default.xml') # Check if the cascade file has been loaded correctly if face_cascade.empty(): raise IOError('Unable to load the face cascade classifier xml file') #...
[ "noreply@github.com" ]
JohnnySunkel.noreply@github.com
7b272c447edc0dcca8a32d10582d7463c9fe0ab6
34eecc8a7e77748f9cf4049d1d763220b305b7b8
/Gan/normal/gan_with_class.py
22dd1c4f7710e9ec129330f6d4fdde4eb41bf193
[]
no_license
Tetuwo181/Gan
4e9ed3961046b7059db1212f50a69684c3093124
7cafddfadba8e949265dd99121221e014a2f5cce
refs/heads/master
2020-04-30T09:44:18.406912
2019-03-20T15:01:02
2019-03-20T15:01:02
144,116,577
0
0
null
null
null
null
UTF-8
Python
false
false
3,800
py
# -*- coding: utf-8 -*- from Gan.normal import discriminator as ds, generator as gn from keras import Model from keras import Input from keras.models import Sequential import keras.engine.training from keras import optimizers from DataIO import data_loader from DataIO import data_saver from DataIO import create_dir imp...
[ "hamakaze181and189amarube@gmail.com" ]
hamakaze181and189amarube@gmail.com
20d88395772f5b073830047c579aea1a06fb07bf
2612f762ec75a0723a4d12ae1d63a30792e4c236
/build/kinect_aux/catkin_generated/pkg.develspace.context.pc.py
de1c682854d2d35a3fd01298c34ee29e33a07a96
[]
no_license
aransena/catkin_ws
efdf1a52b7dbbefbfa9cb748630f7be1ffd7f628
eae6b83c80803a718a8e41569d3b4e7c1c838926
refs/heads/master
2021-01-18T21:12:48.557260
2016-06-03T13:39:22
2016-06-03T13:39:22
52,208,927
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;sensor_msgs;std_msgs".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "kinect_aux...
[ "aransena@gmail.com" ]
aransena@gmail.com
76328a182be916dd10501d8085c924d2bcc712d9
6e1b45ed452b8176c6840b8b2262e5bd9fa4b177
/data/components/dungeon_entities.py
073530f9b40b12975f6ffda49bce7bfac34467d9
[]
no_license
iminurnamez/dungeoneer
2f1847d03a94c0b01dfe4dafe42178d213fb0f27
9fdb13ac618471d1ed297d2e72483c3364c41bf6
refs/heads/master
2021-01-17T08:24:49.608276
2017-03-04T14:40:20
2017-03-04T14:40:20
83,899,702
1
0
null
null
null
null
UTF-8
Python
false
false
8,150
py
from random import randint, choice import pygame as pg from .. import prepare from ..tools import strip_from_sheet from ..components.monsters import Monster sheet = prepare.GFX["sheet"] TILES = { "floor": strip_from_sheet(sheet, (736, 512), (32, 32), 4), "wall": strip_from_sheet(sheet, (128, 576), ...
[ "easinerf@gmail.com" ]
easinerf@gmail.com
d3446e477145f4154569c4ba169d4254fd2d43f5
0ddcfcbfc3faa81c79e320c34c35a972dab86498
/tests/test_domino_and_tromino_tiling.py
ba71aec95f80992e0e4abbb04d7cbd3e9b632702
[]
no_license
IvanWoo/coding-interview-questions
3311da45895ac4f3c394b22530079c79a9215a1c
1312305b199b65a11804a000432ebe28d1fba87e
refs/heads/master
2023-08-09T19:46:28.278111
2023-06-21T01:47:07
2023-06-21T01:47:07
135,307,912
0
0
null
2023-07-20T12:14:38
2018-05-29T14:24:43
Python
UTF-8
Python
false
false
325
py
import pytest from puzzles.domino_and_tromino_tiling import num_tilings @pytest.mark.parametrize( "n, expected", [ (1, 1), (2, 2), (3, 5), (4, 11), (5, 24), (6, 53), (7, 117), ], ) def test_num_tilings(n, expected): assert num_tilings(n) == expe...
[ "tyivanwu@gmail.com" ]
tyivanwu@gmail.com
d8c8988548b625797046fed8975c5e0b502e5951
245b92f4140f30e26313bfb3b2e47ed1871a5b83
/airflow/providers/google_vendor/googleads/v12/services/services/campaign_draft_service/pagers.py
cebaaa1f5671bb6c15000e177d0b048927ff182f
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
ephraimbuddy/airflow
238d6170a0e4f76456f00423124a260527960710
3193857376bc2c8cd2eb133017be1e8cbcaa8405
refs/heads/main
2023-05-29T05:37:44.992278
2023-05-13T19:49:43
2023-05-13T19:49:43
245,751,695
2
1
Apache-2.0
2021-05-20T08:10:14
2020-03-08T04:28:27
null
UTF-8
Python
false
false
3,579
py
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
ephraimbuddy.noreply@github.com
f4a14c1e51aacae878fc2d17ef955304045fdb49
8bb4a472344fda15985ac322d14e8f4ad79c7553
/Python3-Core/src/main/prompto/value/IIterable.py
fa44faffc3e53899a199dad58f8d26676af5e99e
[]
no_license
prompto/prompto-python3
c6b356f5af30c6826730ba7f2ad869f341983a2d
64bd3d97d4702cc912097d41d961f7ab3fd82bee
refs/heads/master
2022-12-24T12:33:16.251468
2022-11-27T17:37:56
2022-11-27T17:37:56
32,623,633
4
0
null
2019-05-04T11:06:05
2015-03-21T07:17:25
Python
UTF-8
Python
false
false
191
py
from prompto.value.IValue import IValue class IIterable ( IValue ): def getIterator(self, context): raise Exception("You must override getIterator in " + type(self).__name__)
[ "eric.vergnaud@wanadoo.fr" ]
eric.vergnaud@wanadoo.fr
8cb28fc028fdfd36360aa4d9a0e03f2173bd90a0
69cefee12d0bd4c374c5a0f0ebb25c6c92e58475
/src/gui/components/uv_edit/__init__.py
2f14a8f69ea8a5e6e95a561112ebee2d8034ef35
[]
no_license
PlumpMath/panda3dstudio
5821353ce5519733f0d75fc518dd97f2e6c1da6c
e736f17bcfb1c597fd4b217610bd5430642eea5a
refs/heads/master
2021-01-25T06:55:38.174353
2017-05-21T14:04:27
2017-05-21T14:04:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,179
py
from ...base import * from ...button import Button from .components import Components class UVEditGUI(BaseObject): def __init__(self): self._window = None def setup(self): def enter_editing_mode(prev_state_id, is_active): Mgr.do("set_viewport_border_color", (100, 255, 100)) ...
[ "Epihaius@users.noreply.github.com" ]
Epihaius@users.noreply.github.com
82d3b242eaffbae5137afece02c5254d0b438f74
660e35c822423685aea19d038daa8356722dc744
/stock_supply/location.py
9499396cc5ff84e8e310a9dd5f39b7480c0fb2b6
[]
no_license
saifkazi/tryton_modules
a05cb4a90ae2c46ba39d60d2005ffc18ce5e44bb
94bd3a4e3fd86556725cdff33b314274dcb20afd
refs/heads/main
2023-05-05T12:20:02.059236
2021-05-19T10:46:37
2021-05-19T10:46:37
368,768,310
0
0
null
null
null
null
UTF-8
Python
false
false
2,143
py
# This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. import datetime from trytond.pool import PoolMeta, Pool from trytond.model import fields from trytond.pyson import Eval class Location(metaclass=PoolMeta): __name__ = 's...
[ "saif.kazi76@gmail.com" ]
saif.kazi76@gmail.com
471edd804cac585bcbeff44da490d891dab91791
d3e3c79dff7c33e0a432e1df55c57db34336c433
/fileuploads/migrations/0003_auto_20160320_0656.py
78e7a3d9c0f69bb44a9fe1dfcdb755576c174bdc
[]
no_license
yayoiukai/qctools
6695fe1d1d442b90fdd2642f6187c47fefdea559
42fcaeaf4c1062433635d05d75e6bd98e08c4fe4
refs/heads/master
2021-01-21T12:59:12.010692
2016-03-29T06:22:24
2016-03-29T06:22:24
54,534,571
1
0
null
null
null
null
UTF-8
Python
false
false
460
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.dev20160107235441 on 2016-03-20 06:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fileuploads', '0002_video'), ] operations = [ migrations.Al...
[ "yayoi.ukai@gmail.com" ]
yayoi.ukai@gmail.com
6f9ae4358d683d55b564b2534fcc87acc4f7cada
90a8c648e63290f8f0c2b4e693cb4d172c8b44f8
/setup.py
564f6b929eb8554aeae21f18dad9d2c97a1735f2
[ "LicenseRef-scancode-public-domain" ]
permissive
jamespjh/greeter
6f079570f5a653e84c8013358659f6478c68573c
3740b316ca0c4b3e9ef48ea17a9c902bdbb43447
refs/heads/master
2021-07-05T14:46:25.438828
2017-12-18T17:03:45
2017-12-18T17:03:45
91,366,659
0
3
NOASSERTION
2018-11-14T17:20:31
2017-05-15T17:41:38
Python
UTF-8
Python
false
false
219
py
from setuptools import setup, find_packages setup( name = "Greetings", version = "0.1.0", packages = find_packages(exclude=['*test']), scripts = ['scripts/greet'], install_requires = ['argparse'] )
[ "jamespjh@gmail.com" ]
jamespjh@gmail.com
89a31a4f5c9daa14e2745c97f38cc57c7c04871b
bde4c80dea61e0d8ad6284259bf0c68f6477a884
/ch_1/floats/floats.py
f0e85854b18c071c9eeb19d1f78e91f48980e8d5
[]
no_license
amymhaddad/python_workout
d922fec13f4cabc01bea3b5bde71742d54273688
3000800b0cdda5e01cc4a66f082d23931140e280
refs/heads/master
2020-07-20T07:06:24.533209
2020-01-28T15:31:18
2020-01-28T15:31:18
206,593,810
0
0
null
null
null
null
UTF-8
Python
false
false
450
py
number = 1234.5678 def new_number(number, before, after): str_number = str(number) before_decimal = "" after_decimal = "" decimal = str_number.find(".") for i, num in enumerate(str_number): if i < decimal: before_decimal += str_number[i] elif i > decimal: a...
[ "amy.m.haddad@gmail.com" ]
amy.m.haddad@gmail.com
0f97d217a9d76e70bfe4bfcfd44e50d296f993b6
d1ddb9e9e75d42986eba239550364cff3d8f5203
/google-cloud-sdk/lib/surface/pubsub/topics/publish.py
e42a4833a80aafe9049d6c6b595afee8620114bc
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bopopescu/searchparty
8ecd702af0d610a7ad3a8df9c4d448f76f46c450
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
refs/heads/master
2022-11-19T14:44:55.421926
2017-07-28T14:55:43
2017-07-28T14:55:43
282,495,798
0
0
Apache-2.0
2020-07-25T17:48:53
2020-07-25T17:48:52
null
UTF-8
Python
false
false
4,135
py
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "vinvivo@users.noreply.github.com" ]
vinvivo@users.noreply.github.com
3f67999ebad73598aaae6a372e58203be2613491
f25440c9f9fd470ba44394a36d5659dd47ee8800
/models/preprocess.py
a62523c9c1e3bcd4657ee57ba053b640460a3f02
[]
no_license
kqf/hubmap
75010d9109f8b8656e244179de5de226be584d5b
37b3d839f0ad3f47dc39c1b9b036cb1acc27ca2c
refs/heads/master
2023-02-20T04:06:00.145932
2021-01-23T07:56:13
2021-01-23T07:56:13
317,635,257
0
0
null
null
null
null
UTF-8
Python
false
false
3,669
py
import cv2 import click import tifffile import numpy as np import pandas as pd from pathlib import Path from click import Path as cpath from tqdm import tqdm from models.encoding import decode def tiff_read(filename): image = tifffile.imread(filename) if len(image.shape) == 5: image = image.squeeze...
[ "noreply@github.com" ]
kqf.noreply@github.com
7da0243bdf541b2d45985f40ab0d202c0e65d82f
0c110eb32f2eaea5c65d40bda846ddc05757ced6
/python_scripts/pimriscripts/mastersort/scripts_dir/p7432_run1L6.py
2f23d82d7de9c6aaee495a338a38a650712e6ae3
[]
no_license
nyspisoccog/ks_scripts
792148a288d1a9d808e397c1d2e93deda2580ff4
744b5a9dfa0f958062fc66e0331613faaaee5419
refs/heads/master
2021-01-18T14:22:25.291331
2018-10-15T13:08:24
2018-10-15T13:08:24
46,814,408
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
from __future__ import with_statement import os, csv, shutil,tarfile, uf, dcm_ops dest_root = '/ifs/scratch/pimri/soccog/test_working' dst_path_lst = ['7432', 'run1L6'] uf.buildtree(dest_root, dst_path_lst) uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2480/e1331017/s1340560_1904_1L6_s9', '/...
[ "katherine@Katherines-MacBook-Pro.local" ]
katherine@Katherines-MacBook-Pro.local
1f5d573c1080f3260a71678f6f0e8ad59a323d45
62f14a7eab00216122e1d2bd4c19ed0c3045398a
/main/migrations/0081_auto_20190508_1427.py
537b0963df08a4c2f07917ec3baf38a055a82667
[]
no_license
pzagora/share.it
12280372eb2c124cf807d04534a1fefdd0183356
ab825862d6f776f4d8617438f9c98bc183be089f
refs/heads/master
2020-04-30T10:03:58.919422
2019-05-21T19:14:15
2019-05-21T19:14:15
176,766,038
6
0
null
2019-05-21T19:14:16
2019-03-20T15:41:56
Python
UTF-8
Python
false
false
731
py
# Generated by Django 2.1.7 on 2019-05-08 12:27 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('main', '0080_auto_20190508_1407'), ] operations = [ migrations.AlterField( model_name='topiccategory', ...
[ "patrykdziedzioch@gmail.com" ]
patrykdziedzioch@gmail.com
22294ebd16ef24a26217a20a9b1f1e1a65fe9155
9e549ee54faa8b037f90eac8ecb36f853e460e5e
/venv/lib/python3.6/site-packages/babel/messages/jslexer.py
b5a3abd80f5b585cff78c5e9cac8539eb9ce41b0
[ "MIT" ]
permissive
aitoehigie/britecore_flask
e8df68e71dd0eac980a7de8c0f20b5a5a16979fe
eef1873dbe6b2cc21f770bc6dec783007ae4493b
refs/heads/master
2022-12-09T22:07:45.930238
2019-05-15T04:10:37
2019-05-15T04:10:37
177,354,667
0
0
MIT
2022-12-08T04:54:09
2019-03-24T00:38:20
Python
UTF-8
Python
false
false
6,828
py
# -*- coding: utf-8 -*- """ babel.messages.jslexer ~~~~~~~~~~~~~~~~~~~~~~ A simple JavaScript 1.5 lexer which is used for the JavaScript extractor. :copyright: (c) 2013-2018 by the Babel Team. :license: BSD, see LICENSE for more details. """ from collections import namedtuple import re from ba...
[ "aitoehigie@gmail.com" ]
aitoehigie@gmail.com
98750994a2b70ea02282809c64c010b01db2240e
9818262abff066b528a4c24333f40bdbe0ae9e21
/Day 65/AddAlternateElements.py
037b90dcf99ec09f4818dd4e8f2200b164577233
[ "MIT" ]
permissive
skdonepudi/100DaysOfCode
749f62eef5826cb2ec2a9ab890fa23e784072703
af4594fb6933e4281d298fa921311ccc07295a7c
refs/heads/master
2023-02-01T08:51:33.074538
2020-12-20T14:02:36
2020-12-20T14:02:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
740
py
''' You are given a two-dimensional 3*3 array starting from A [0][0]. You should add the alternate elements of the array and print its sum. It should print two different numbers the first being sum of A 0 0, A 0 2, A 1 1, A 2 0, A 2 2 and A 0 1, A 1 0, A 1 2, A 2 1. Input Format First and only line contains the valu...
[ "sandeepiiitn@gmail.com" ]
sandeepiiitn@gmail.com
e2b8f3352eb4cd97eed42008c7c8689b0d58e618
5d48aba44824ff9b9ae7e3616df10aad323c260e
/two_pointers/838.push_dominoes.py
ae388c75ae75543d9f77237c9c9089717b556cd7
[]
no_license
eric496/leetcode.py
37eab98a68d6d3417780230f4b5a840f6d4bd2a6
32a76cf4ced6ed5f89b5fc98af4695b8a81b9f17
refs/heads/master
2021-07-25T11:08:36.776720
2021-07-01T15:49:31
2021-07-01T15:49:31
139,770,188
3
0
null
null
null
null
UTF-8
Python
false
false
1,866
py
""" There are N dominoes in a line, and we place each domino vertically upright. In the beginning, we simultaneously push some of the dominoes either to the left or to the right. After each second, each domino that is falling to the left pushes the adjacent domino on the left. Similarly, the dominoes falling to the rig...
[ "eric.mlengineer@gmail.com" ]
eric.mlengineer@gmail.com
17aafb5ac63f8835219377cd7001623c16b7af19
ffb25dc1d241ea31b99352c70b5084116991527c
/src/apps/configs/urls.py
a698156484c09fa99efde8b1f2a6bbb340b329dc
[ "MIT" ]
permissive
COAStatistics/aprp
74715bc87d846ca6bce916693a7f3d268fe50e59
1fcdf66d51f50a61076a722196383c4d879f7aed
refs/heads/master
2023-08-13T18:11:03.338200
2023-08-02T06:21:13
2023-08-02T06:21:13
145,945,940
12
7
MIT
2023-08-02T06:21:15
2018-08-24T05:23:20
Python
UTF-8
Python
false
false
134
py
from django.conf.urls import url, include urlpatterns = [ url(r'^ajax/', include('apps.configs.ajax.urls', namespace='ajax')), ]
[ "travishen.tw@gmail.com" ]
travishen.tw@gmail.com
9c756a48b4119ce3f2e6423358340584126cf259
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_295/ch20_2019_03_28_14_05_26_845418.py
75cb0851c92c37b96c6bc5457244ac12d86a25af
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
159
py
nome = input ("Qual é o seu nome?") if nome == "Chris": print ("Todo mundo odeia o Chris") else: print("Olá, o meu nome é {0}" .format (nome))
[ "you@example.com" ]
you@example.com
a09a56e788688cee221e85a21daa466029368e89
62f98dd397311eb4bdcf0458cdc597f2e4f728e6
/深信服_sangfor_相关/sangfor_acm_oj/before_2016_12_03/acm_1086.py
5351419201f76946e8d1a9230e387b6714f8894f
[]
no_license
276585877/interview_collect
9cf23fa4375886854c38bc0ac7c4b50e24a1eef8
a3ec3f4bf57099cbd6acf9ba4e9797e685d5a4ce
refs/heads/master
2022-01-16T02:18:29.907689
2019-07-08T09:27:01
2019-07-08T09:27:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
699
py
#!/bin/env python3 # -*- coding: utf-8 -*- # version: Python2.X """ 输入 从键盘输入一个整数n,然后按上面的公式求和。 输出 输出求和的结果s。s为双精度浮点数,精确到小数点后面8位。 样例输入 22 样例输出 0.67093591 """ __author__ = '__L1n__w@tch' def solve(question): number = question result = 0 for i in range(number): current_num = i + 1 result +=...
[ "490772448@qq.com" ]
490772448@qq.com
aedfd9eb1572802a1daa7ea1923942c283b57088
0d8fb904f731515b5abd6afa7c9935a7cc820725
/month02/day16/exercise.py
a9a38360871ea6ebdc81a879df554031f36a06e2
[]
no_license
cartoon-fans/-
13513a88aff08e1b1670ac6a46a22a82ce0e954a
5b21e997b129f860ac2ea0086a445defe1e649e6
refs/heads/master
2020-09-17T01:13:33.114638
2019-11-25T12:13:24
2019-11-25T12:13:24
223,941,579
0
0
null
null
null
null
UTF-8
Python
false
false
721
py
import re import pymysql # 链接数据库 db = pymysql.connect(host='localhost', port=3306, user='root', password='123456', database='dict', charset='utf8') # 生成游标对象(用于操作数据库数据,获取sql执行结果的对象) cur = db.cursor() # 执行各种数据库sql操作...
[ "879354702@qq.com" ]
879354702@qq.com
749a4cbdfed7794be4d275ab6db22341f81c3eca
a2ee5ae795d7848fb11a27a8a5b20dfcf6c76322
/erinn/python/utils/np_utils.py
1766de8e175b8f20de4da7ca4fc414dbcc24c8d7
[ "MIT" ]
permissive
swcjack6931677/ERINN
750094c3fa52fb10fababe1113fcf018749418e6
a4f3d0ad213515bc86e2a18575537d6affd472ac
refs/heads/master
2020-07-17T11:45:03.077459
2019-09-18T06:12:17
2019-09-18T06:12:17
206,013,936
0
0
MIT
2019-09-03T07:19:31
2019-09-03T07:19:30
null
UTF-8
Python
false
false
1,600
py
"""Numpy-related utilities.""" from __future__ import division, absolute_import, print_function import numpy as np def rand_replace_elem(x, ratio, fill=0, inplace=True): """Random replace array with specific value at certain ratio. Parameters ---------- x : numpy.ndarray 2D array. ratio ...
[ "supon3060@gmail.com" ]
supon3060@gmail.com
11a2ee9d9719d1d98a1802e218fcd616dab5ae73
c1f56792a6a2cb0ca93398c53aadf2ed99e690dc
/cut_mp4.py
2c1ecaf58dfa787cb92997aff1be54d6572afcb3
[]
no_license
JIANG-CX/yolov4_siamfcpp_multitracking
759106e358b292bcf9d67beedbd431035a03bf65
eccc8fdf52e34541a376e23daa8672f29dc64542
refs/heads/main
2023-02-26T19:10:50.636716
2021-02-05T17:15:32
2021-02-05T17:15:32
339,028,648
1
0
null
2021-02-15T09:40:26
2021-02-15T09:40:26
null
UTF-8
Python
false
false
771
py
import cv2 INPUT_FILE = 't1.avi' OUTPUT_FILE = 'clip1.avi' start_frame = 10 end_frame = 50 reader = cv2.VideoCapture(INPUT_FILE) width = int(reader.get(cv2.CAP_PROP_FRAME_WIDTH)) height = int(reader.get(cv2.CAP_PROP_FRAME_HEIGHT)) writer = cv2.VideoWriter(OUTPUT_FILE, cv2.VideoWriter_fourcc("mp4v"), ...
[ "3180103610@zju.edu.cn" ]
3180103610@zju.edu.cn
4af1b5493554b36f1aafe7a6bf8f998421eb54a4
9095c1a0da8c6ffe914ee6dd9c4708062fd95c9a
/test/test_meta_people_detail_event.py
b15358919899b1150ffb71c903e7180cfefbc299
[ "MIT" ]
permissive
vtpl1/vtpl_api_py
2e5338bd08677f12fc7304fb6ac7a32f32af1c93
d289c92254deb040de925205c583de69802a1c6b
refs/heads/master
2020-09-10T23:34:21.828350
2019-11-15T07:26:53
2019-11-15T07:26:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
868
py
# coding: utf-8 """ Engine api Engine APIs # noqa: E501 The version of the OpenAPI document: 1.0.4 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import vtpl_api from vtpl_api.models.meta_people_detail_event import MetaPeopleDetailEvent #...
[ "monotosh.das@videonetics.com" ]
monotosh.das@videonetics.com
091dac4ac4e295b09a057b906e037fdfa5cb4dab
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/vnzjuqjCf4MFHGLJp_7.py
9dbb0283211b4cbe1868d8b59cda5957d5f02b80
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
808
py
""" Create a function that takes a string and shifts the letters to the right by an amount `n` **but not the whitespace**. ### Examples shift_letters("Boom", 2) ➞ "omBo" shift_letters("This is a test", 4) ➞ "test Th i sisa" shift_letters("A B C D E F G H", 5) ➞ "D E F G H A B C" ### Notes ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
4ef0cb25ec95b6143c73279389bf28f56715ddce
5d6fa3466d9fa8bd6719c6dea586163d3d089090
/codes/CHAPTER_4/Chapter_4.5_Dictionaries/Lessson_2/TraversingDictionaries-3.py
22eb1a3c615925fa0e7970b0016686ae906751e2
[]
no_license
harveylabis/GTx_CS1301
cff0c1a076b1da73c66d53175330b4dedc244163
f26a5e9c4b8c29acb831444cd59d21524267825c
refs/heads/master
2023-06-26T14:44:38.976288
2021-08-02T04:20:31
2021-08-02T04:20:31
269,361,753
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
#Creates myDictionary with sprockets=5, #widgets=11, cogs=3, gizmos=15, gadgets=1 myDictionary = {"sprockets" : 5, "widgets" : 11, "cogs" : 3, "gizmos" : 15, "gadgets" : 1} for (key, value) in myDictionary.items(): if value < 5: print(key, "is less than 5:", value)
[ "harveyabiagador@gmail.com" ]
harveyabiagador@gmail.com
d8735830d662023862e2d5859f6bfee0cb2fb5d6
27acd9eeb0d2b9b6326cc0477e7dbb84341e265c
/test/vraag4/src/synoniemen/89.py
cddf509dbe34a78aa301a8632574bd6fd0cec95a
[]
no_license
VerstraeteBert/algos-ds
e0fe35bc3c5b7d8276c07250f56d3719ecc617de
d9215f11cdfa1a12a3b19ade3b95fa73848a636c
refs/heads/master
2021-07-15T13:46:58.790446
2021-02-28T23:28:36
2021-02-28T23:28:36
240,883,220
1
1
null
null
null
null
UTF-8
Python
false
false
128
py
def synoniemen(zin, woordenboek): nieuwe_zin = " ".join([woordenboek.get(i, i) for i in zin.split()]) return nieuwe_zin
[ "bertverstraete22@gmail.com" ]
bertverstraete22@gmail.com
77465d7f6df98c02d624f736cc053f44e64e3f24
7246faf9a222269ce2612613f58dc5ff19091f10
/baekjoon/1000~2999/2578_빙고.py
c0462ca35f08d13e557b6c4a4ad155217dfcb131
[]
no_license
gusdn3477/Algorithm_Study
87a2eb72a8488d9263a86db70dadc7944434d41d
3fefe1dcb40122157845ffc542f41cb097711cc8
refs/heads/main
2023-08-30T12:18:21.412945
2021-09-28T13:00:11
2021-09-28T13:00:11
308,364,230
0
1
null
null
null
null
UTF-8
Python
false
false
1,348
py
def bingo(): global total total = 0 # 가로 줄 for i in range(5): ct = 0 for j in range(5): if arr[i][j] == 0: ct += 1 if ct == 5: total += 1 # 세로 줄 for i in range(5): ct = 0 for j in range(5): if arr[j][i]...
[ "gusdn3477@naver.com" ]
gusdn3477@naver.com
d75862fa102576cf5cb4c48da6ae15269428380a
c38e3b817ad52ea3ec607f731ec9586a37dc82fd
/more_tango_with_django_project/rango/models.py
039bdff7acd57d2b2004203f194dd255a71db8ba
[]
no_license
gzpgg3x/REAL_more_after_Influenster_meetup
916e4533733da4b6af22a2fc3ac8136cabbaf056
d3b79378a46382e1226a86d1df72001fdf13421f
refs/heads/master
2020-05-18T19:00:18.401114
2014-06-01T14:54:13
2014-06-01T14:54:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
from django.db import models from django.contrib.auth.models import User class Category(models.Model): name = models.CharField(max_length=128, unique=True) views = models.IntegerField(default=0) likes = models.IntegerField(default=0) def __unicode__(self): return self.name class Page(models.M...
[ "gzpgg3x@yahoo.com" ]
gzpgg3x@yahoo.com
b43f0a1573e8628fdd730ed6cadae65f3ea66483
88fe8aca1fcf8b71daf9e837ec97d4e5c05bcbbf
/kubernetes_asyncio/client/api/node_api.py
5866c2905f31f8ebbdaa0e6f427558ed1d4f3c56
[ "Apache-2.0" ]
permissive
aK0nshin/kubernetes_asyncio
6d51e0d31c813cfe1a5ab05035fcf4bdf7094e94
aef9edcc1f8671a5b1bba9f4684bde890176b19c
refs/heads/master
2020-12-19T02:00:59.100037
2020-01-14T21:28:58
2020-01-14T21:28:58
235,586,739
0
0
Apache-2.0
2020-01-22T14:07:35
2020-01-22T14:07:35
null
UTF-8
Python
false
false
3,964
py
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 OpenAPI spec version: v1.14.7 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # p...
[ "tomasz.prus@gmail.com" ]
tomasz.prus@gmail.com
f15af4c3f7fd146f54af4d68e1363c5993d3d301
8d90e2eae476ecbe88d46ef2f03fe7ba92cc733b
/Programming Basics with Python/For-cycle/For_C_lab_ex6_2_sum_of_vowels.py
1bb6d3c6d6c097cc6771d4095b96694e3319bab9
[]
no_license
KaterinaMutafova/SoftUni
c3f8bae3c2bf7bd4038da010ca03edc412672468
7aeef6f25c3479a8d677676cb1d66df20ca0d411
refs/heads/main
2023-03-08T10:53:49.748153
2021-02-19T15:55:13
2021-02-19T15:55:13
317,597,660
1
0
null
null
null
null
UTF-8
Python
false
false
297
py
length = input() sum = 0 for i in range(0,len(length)): if length[i] == "a": sum += 1 if length[i] == "e": sum += 2 if length[i] == "i": sum += 3 if length[i] == "o": sum += 4 if length[i] == "u": sum += 5 print(sum)
[ "noreply@github.com" ]
KaterinaMutafova.noreply@github.com
1193ef9a679e0be796d91e32c5802a6ec376fd3f
837795218c0fb251b9daa0b74321f080c9c6cb59
/Project/Konsep_Data_Warehouse/Praktikum/Case.py
bd0d9f88fefa7357ddf00300076e9ea5585b34d8
[]
no_license
Faizmuazzam/A_E31190648_Faiz_Muazzam_Data_Warehouse
06d5447acc20e5eb06cc45476184b0e68a1185b3
67f18a2edf74c0957b2f5b40b647817dcf15e343
refs/heads/main
2023-06-15T20:05:13.780586
2021-07-14T02:46:12
2021-07-14T02:46:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
print("=======================Case======================") #Case # Sintak Python bersifat case sensitive, # yang berarti antara huruf besar dan huruf kecil akan di bedakan print("Halo Faiz Muazzam!") # Akan terjadi eror # PRINT("Halo Teman-teman semester 4")
[ "65695747+E31190648-Faiz-Muazzam@users.noreply.github.com" ]
65695747+E31190648-Faiz-Muazzam@users.noreply.github.com
4246f3df7183b9febad53c441b738a3dad97bc9c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02699/s206158159.py
24d26dd3cd1f649672adb0b6baed2eb45ab04de6
[]
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
201
py
# -*- coding: utf-8 -*- def main(): S, W = map(int, input().split()) if S <= W: ans = 'unsafe' else: ans = 'safe' print(ans) if __name__ == "__main__": main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
7e3ac507a17d30827fa695950184b0a4574722e1
4ed038a638725ac77731b0b97ddd61aa37dd8d89
/cairis/gui/GoalPanel.py
1b7d0bdd458134a17ddf861bc307d77ea6871db9
[ "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
2,207
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
[ "shamal.faily@googlemail.com" ]
shamal.faily@googlemail.com
891c1229e37ec8704dba49e4bc20fcf1ac50c0e5
eb4bf7cba9afe5532cc85fe3179155b1d4949a48
/Pandas/projects/page_visits_funnel/funnel.py
845bcc2a4f259146496b5071699e8792efff470d
[]
no_license
DWONeill18/Python
a37a52d5a8b74136428fb19e08152c871c204bd2
e37dd84fae31f661b05d0e211ead8c37b5d43db1
refs/heads/master
2021-04-17T17:29:21.378062
2020-11-09T14:21:29
2020-11-09T14:21:29
249,458,486
0
0
null
null
null
null
UTF-8
Python
false
false
2,868
py
# Page Visits Funnel import codecademylib import pandas as pd visits = pd.read_csv('visits.csv', parse_dates=[1]) cart = pd.read_csv('cart.csv', parse_dates=[1]) checkout = pd.read_csv('checkout.csv', parse_dates=[1]) purchase = pd.read_csv('purchase.csv'...
[ "d.w.oneill.18@gmail.com" ]
d.w.oneill.18@gmail.com
9c3aeee661fac282542b565a3e2a6a8a84c79096
3f7240da3dc81205a0a3bf3428ee4e7ae74fb3a2
/src/Week3/Practice/longestSubpalindrome.py
4c824245cf8c8a450779bb185c4f219af230bf24
[]
no_license
theguyoverthere/CMU15-112-Spring17
b4ab8e29c31410b4c68d7b2c696a76b9d85ab4d8
b8287092b14e82d2a3aeac6c27bffbc95382eb34
refs/heads/master
2021-04-27T08:52:45.237631
2018-10-02T15:38:18
2018-10-02T15:38:18
107,882,442
0
0
null
null
null
null
UTF-8
Python
false
false
2,288
py
import cs112_s17_linter def isPalindrome(s): for i in range(len(s)): if s[i] != s[len(s) - i -1]: return False return True #Brute Force it. def longestSubpalindrome(s): if isPalindrome(s): return s longestPalindrome = "" palindromeLength = 0 for i in range(len(s))...
[ "tariqueanwer@outlook.com" ]
tariqueanwer@outlook.com
884f14a286d9b0d254a3b45da9a3cb55a6899430
6117e2fdad67258f311e93b8b633dca75226eff6
/fsspec_reference_maker/grib2.py
344ccccae3b08cb5925367dd6303cfa6aa1032c7
[ "MIT" ]
permissive
tedhabermann/fsspec-reference-maker
b233efd5495277194d3c5c5f88d2dbd6d060fcfe
cf5030e9a47c620b477a2c1383f44a0558894a01
refs/heads/main
2023-06-26T07:15:14.010705
2021-07-06T13:45:26
2021-07-06T13:45:26
381,395,193
0
0
MIT
2021-06-29T14:32:10
2021-06-29T14:32:10
null
UTF-8
Python
false
false
7,139
py
import base64 import logging import os import tempfile import cfgrib import numcodecs.abc from numcodecs.compat import ndarray_copy, ensure_contiguous_ndarray import fsspec import zarr import numpy as np logger = logging.getLogger("grib2-to-zarr") def _split_file(f, skip=0): if hasattr(f, "size"): size ...
[ "martin.durant@utoronto.ca" ]
martin.durant@utoronto.ca
a207420d44914f09a261d48787595f85829b4ec6
8c50265b43add0e91e30245cc7af3c2558c248f5
/example/speech_recognition/stt_io_iter.py
6c9bacd1a5261eb2a742affde0815a8ee668a945
[ "BSD-3-Clause", "BSD-2-Clause-Views", "Zlib", "Apache-2.0", "BSD-2-Clause", "Intel" ]
permissive
awslabs/dynamic-training-with-apache-mxnet-on-aws
6a67f35d7e4b12fa8bba628bd03b2b031924e211
1063a979417fee8c820af73860eebd2a4f670380
refs/heads/master
2023-08-15T11:22:36.922245
2022-07-06T22:44:39
2022-07-06T22:44:39
157,440,687
60
19
Apache-2.0
2022-11-25T22:23:19
2018-11-13T20:17:09
Python
UTF-8
Python
false
false
5,098
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "vikumar@88e9fe53272d.ant.amazon.com" ]
vikumar@88e9fe53272d.ant.amazon.com
bb16c8427f4371d572c66bc44cf917d756414beb
4404a055611ce0d7462da28221393fa4dd704c45
/rooms/api/serializers.py
35025d3ffeb311659ec66d48c8d14b021ddf7b03
[]
no_license
Code-Institute-Submissions/digicreche
a96704c91462bed67ff1ff7cd80d37d819ec36fd
01688087c9a28a9aeb7a0cc49a867d0676bab272
refs/heads/main
2023-08-21T05:36:57.723551
2021-10-26T22:13:24
2021-10-26T22:13:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,326
py
from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from rooms.models import Room from schools.models import School class SchoolRelatedField(serializers.PrimaryKeyRelatedField): def get_queryset(self): queryset = School.objects.filter( slug=self...
[ "p4ul.gg@gmail.com" ]
p4ul.gg@gmail.com
ab4a9767d34894bea7f4519cf6d3095d601e2232
b7314f9480634b2f2998c8181d4284d2b52ebba1
/examples/wiki.py
3eaefc906df3dc1b83833e5e5b0da9f8ad5de833
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
neuml/txtai
3ca6fba11126d650ea4f2cf5199011a52ea56e4e
789a4555cb60ee9cdfa69afae5a5236d197e2b07
refs/heads/master
2023-08-31T08:09:31.834178
2023-08-29T15:36:23
2023-08-29T15:36:23
286,301,447
4,804
387
Apache-2.0
2023-09-11T17:12:40
2020-08-09T19:14:59
Python
UTF-8
Python
false
false
1,869
py
""" Application that queries Wikipedia API and summarizes the top result. Requires streamlit to be installed. pip install streamlit """ import os import urllib.parse import requests import streamlit as st from txtai.pipeline import Summary class Application: """ Main application. """ SEARCH_TEM...
[ "561939+davidmezzetti@users.noreply.github.com" ]
561939+davidmezzetti@users.noreply.github.com
89dc49c0eea90e578c0d5f5b5c131ea17bbf498d
8e95e79840005f6c34dfb978e8fe6e0ec4f7f643
/15_Time Series Analysis in Python_/9_Taxing Exercise Compute the ACF.py
15eb4fb70a9c7a3920abdc7d1e02694bd410fe23
[]
no_license
Naysla/Machine_Learning
a0593cac41ef1561f14bec55780570b82fc37720
e75d5cd2894ccb005228ab3da87dde9025385a08
refs/heads/master
2023-02-01T17:19:32.413609
2020-12-22T20:36:45
2020-12-22T20:36:45
323,708,628
0
0
null
null
null
null
UTF-8
Python
false
false
1,747
py
#Taxing Exercise: Compute the ACF #In the last chapter, you computed autocorrelations with one lag. Often we are interested in seeing the autocorrelation over many lags. The quarterly earnings for H&R Block (ticker symbol HRB) is plotted on the right, and you can see the extreme cyclicality of its earnings. A vast majo...
[ "60472499+Naysla@users.noreply.github.com" ]
60472499+Naysla@users.noreply.github.com
61238fae58e808823db533dad40fa332f521d09c
afb16c3188bf06af65ae0d998e114c72342bd8be
/note/demo/thread_demo/demo_kill.py
d24278dcadd145a729d397f5820eb9df20d51198
[]
no_license
onsunsl/onsunsl.github.io
aa75f399f1c647bc2e62314633bfe35187e59ad4
4ed2b1b9a2407afcbffdf304020d42b81c4c8cdc
refs/heads/master
2023-05-26T12:33:11.167270
2023-04-01T10:18:05
2023-04-01T10:18:05
237,595,319
1
0
null
2023-05-23T20:13:11
2020-02-01T10:02:58
Python
UTF-8
Python
false
false
157
py
import threading import time def task(*args): print("start...") time.sleep(1000) t = threading.Thread(target=task) t.start() print(t.is_alive())
[ "onsunsl@foxmail.com" ]
onsunsl@foxmail.com
4ecefdba60917c94f4637c2307694d0f7b975d3e
06456914901fdd2019fe6af43801a7ea33106230
/tests/test_extension.py
552a27aa030d3a2bdc8d77d30562ee928d378ccd
[ "Apache-2.0" ]
permissive
mopidy/mopidy-mpris
77a8d42a92797f9cb3722e6c8459175c5244a6cf
e6f4fead21d3a5a0b4cf72a6f9060350bd2b55d8
refs/heads/main
2023-07-05T21:41:30.865185
2023-06-21T20:19:36
2023-06-21T20:19:36
13,395,495
35
15
Apache-2.0
2023-06-21T20:19:37
2013-10-07T20:51:54
Python
UTF-8
Python
false
false
852
py
import unittest from unittest import mock from mopidy_mpris import Extension from mopidy_mpris import frontend as frontend_lib class ExtensionTest(unittest.TestCase): def test_get_default_config(self): ext = Extension() config = ext.get_default_config() self.assertIn("[mpris]", config) ...
[ "stein.magnus@jodal.no" ]
stein.magnus@jodal.no
88c00c83531ca797a1225fdd59b11c7ea0d53bb5
9433ce01c6e2906c694b6f0956a4640e1872d4d2
/src/main/python/wdbd/codepool/click_lib/option_params.py
7a24697b5434af59519fb3f7046616bd67bfa634
[]
no_license
shwdbd/python_codepool
fcd7950fc1339994186461ae18c34cee238938ee
92a4fb61d060f9a545499b6b7f99a4dc211d5009
refs/heads/master
2023-02-20T19:49:23.677824
2022-06-15T08:53:51
2022-06-15T08:53:51
209,431,254
0
1
null
2023-02-15T21:58:53
2019-09-19T00:56:03
Python
UTF-8
Python
false
false
1,295
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @File : option_params.py @Time : 2021/03/09 20:20:25 @Author : Jeffrey Wang @Version : 1.0 @Contact : shwangjj@163.com @Desc : Option常规参数示例 常规参数包括:STR,INT,FLOAT,BOOL类型 Option有type参数指定类型,可通过click.XXX指定类型或直接python类型指定 ''' import click @click.c...
[ "shwangjj@163.com" ]
shwangjj@163.com
d336308e70a0e6bfd9852c2dcbbc43e4e04af905
5788479777205437a14c9fcfac4820a07b4b61dd
/python-crash-course/chapter-09/9-13.py
139e6a911089c9492da2e4979dc76e63f182647d
[]
no_license
miaocunfa/Python_demo
cb92135ee487e0bf8ae70388a7af6fa6dc29d37c
6cf7bc2b75b11c122a370fb0e813a963770bd62d
refs/heads/master
2020-08-30T04:06:21.230166
2020-04-29T12:15:39
2020-04-29T12:15:39
218,257,688
3
0
null
null
null
null
UTF-8
Python
false
false
622
py
# coding: utf-8 from collections import OrderedDict word_list = OrderedDict() python_list = OrderedDict() word_list['sign'] = '标志' word_list['parking'] = '停车' word_list['hard'] = '困难的' word_list['translate'] = '翻译' word_list['useful'] = '有用的' python_list['for'] = 'for循环' python_list['[]'] = '列表' ...
[ "you@example.com" ]
you@example.com
2459b02b07aa4f394fee0c65a15ea5087c7a997f
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/app/util/DisplayableEol.pyi
ac2446b618b0e59007c2d804ad73ad7b0bcd245e
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
5,380
pyi
from typing import List import docking.widgets.fieldpanel.support import ghidra.app.util import ghidra.program.model.address import ghidra.program.util import java.lang class DisplayableEol(object): """ Utility class with methods to get comment information that can be displayed in the end of line comment...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
1b933b575e59f16f262b5d009c130028ca7b96da
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2394/60788/235825.py
a9a675078b5948f0f25e21e602c4e7b37c8b58e6
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
634
py
from sys import stdin def resort(list): length=len(list) zero=list.count(0) new_list=[] for ele in list: if ele!=0: new_list.append(ele) for i in range(0,zero): new_list.append(0) return new_list num=int(stdin.readline().strip()) for i in range(0,num): length=in...
[ "1069583789@qq.com" ]
1069583789@qq.com
8a0bf41e465784703e36b84cb352622c91d8e54e
154b0fe6b42700023329cee6e4afb94d427aacb2
/Practice problems/matrix_rotation_right.py
5266c509a6c52adbedac76332b5fdeb598d23df4
[]
no_license
srihariprasad-r/workable-code
4f68047cb850be4eece32c18e0c6fb5c16668b38
7ca2cc3962b8c6207a991775c0a599bd737f5ae7
refs/heads/master
2023-06-23T09:46:56.334716
2023-06-12T18:38:30
2023-06-12T18:38:30
231,912,452
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
mat = [[1,2,3,4], [5,6,7,8], [9,10,11,12], [13,14,15,16] ] def matrix_rotation(n,mat): for i in range(0, n/2): for j in range(i, n-i-1): temp = mat[i][j] mat[i][j] = mat[j][n-i-1] mat[j][n-1-i] = mat[n-i-1][n-j-1] mat[n-i-1][n-j-1] = m...
[ "59530606+srihariprasad-r@users.noreply.github.com" ]
59530606+srihariprasad-r@users.noreply.github.com
85634d31b9b9b1276d0fdd4d15ed2ca9b71d563c
3451076a918383b4081da4f1628e22d6dfe29c75
/check_orientations_brent.py
2e4f4ba3c3c23e87a3429f1b3809f72c9f2c8ca3
[]
no_license
bbbales2/modal
db9ed4e1f59e35ab65859419ee27f3f1e73ce1f4
153a83126a0f464e3e95b0a9a060a1e9a9345639
refs/heads/master
2021-01-19T02:50:06.015664
2017-09-20T23:12:58
2017-09-20T23:12:58
65,339,170
1
0
null
null
null
null
UTF-8
Python
false
false
1,732
py
#%% import os import numpy os.chdir('/home/bbales2/modal') from rotations import symmetry from rotations import quaternion import itertools import time # get the equivalent passive rotation in the fundamental zone (active post multiplies symmetry operator) #%% q1 = [0.703295, -0.111453, -0.101898, -0.69467299999999...
[ "bbbales2@gmail.com" ]
bbbales2@gmail.com
24ae52c8eacc13b4d3da2e4e069cc6b3bb9c4501
c273bf08d42c5c038a355a721972848a4847682c
/openpyxl/styles/tests/test_styleable.py
2ee71cfdc855d8ea603e81d90b3e9aedc6b06faa
[ "MIT", "BSD-2-Clause", "PSF-2.0" ]
permissive
BlueGreenMagick/sync-excel-with-anki
31e39ae07c7360d5abab1357cb26bc629b4adb87
b78322899fec66b4a0b9b835f173057a844fe3ce
refs/heads/master
2021-09-26T04:37:45.538223
2021-09-20T05:11:03
2021-09-20T05:11:03
196,643,205
15
3
null
null
null
null
UTF-8
Python
false
false
3,285
py
from __future__ import absolute_import # Copyright (c) 2010-2019 openpyxl import pytest from openpyxl.utils.indexed_list import IndexedList from ..named_styles import ( NamedStyleList, NamedStyle, ) def test_descriptor(Worksheet): from ..styleable import StyleDescriptor from ..cell_style import Styl...
[ "bluegreenmagick@gmail.com" ]
bluegreenmagick@gmail.com
ab9a70f7761ca2143985018c43fe7d393cd68af9
fd837779d1c5b6505e2c341c5f50a351b0e71d33
/chapra_7th/ch04/chapra_example_4_4.py
47c047eaf245fb45f9b092a0f26e175fe6480d3f
[]
no_license
LonelyCoder101/ffr-MetodeNumerik
3ea06874ba2cdfb09cec0196057e5075db9ad8f1
05db5fda0199ae1fee0141a5a66e4f81b3e14672
refs/heads/master
2023-03-03T06:08:09.073121
2021-02-16T04:05:37
2021-02-16T04:05:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
708
py
def f(x): return -0.1*x**4 - 0.15*x**3 - 0.5*x**2 - 0.25*x + 1.25 def df(x): return -0.4*x**3 - 0.45*x**2 - x - 0.25 x = 0.5 h = 0.5 #h = 0.25 true_val = df(x) print("true_val = ", true_val) print("h = ", h) # Forward diff approx_val = ( f(x+h) - f(x) )/h print("Using forward diff: ", approx_val) print("ε...
[ "fadjar.fathurrahman@gmail.com" ]
fadjar.fathurrahman@gmail.com
35b4532d83491be25239c7be0ed20bc41d45af02
ec55c11d18c8940f81e7d585c625294bc36f1cfd
/SQSExample/listQueues.py
4ef48d0cca1a0d5c115655a3d336f07f9a96867d
[]
no_license
mcclayac/botoExamples
3ae5d43923d013eed88ccd0b3e3050803c6e9489
219ef1f65566699b07808ad4f973704c3582cbd7
refs/heads/master
2021-01-01T17:01:32.457154
2017-08-10T07:43:23
2017-08-10T07:43:23
97,975,467
0
0
null
null
null
null
UTF-8
Python
false
false
391
py
__author__ = 'anthonymcclay' __project__ = 'botoExamples' __date__ = '7/20/17' __revision__ = '$' __revision_date__ = '$' import boto3 # Get the service resource sqs = boto3.resource('sqs') # Print out each queue name, which is part of its ARN for queue in sqs.queues.all(): print("queueArn : " + queue.attri...
[ "anthony.mcclay@nielsen.com" ]
anthony.mcclay@nielsen.com
2f356e235cfe6974981cd9aa77d43345ba7ea291
6fd805a2c70cd7998621e4b679d6004dbffeac7d
/deeplab3/tools/plot.py
ec76400f7434040e2710eabb755cee1bd4d909e6
[]
no_license
stanlee321/object-removal-tensorflow
71168bc48a99e60d4a46021cd7200bf0da869385
9eb9a1a38272cd5122a97ec9761f7a004c8cdde2
refs/heads/master
2020-04-27T14:27:18.069655
2019-03-12T03:00:13
2019-03-12T03:00:13
174,410,666
0
0
null
null
null
null
UTF-8
Python
false
false
5,310
py
import numpy as np from matplotlib import pyplot as plt from matplotlib import gridspec from io import BytesIO from PIL import Image import cv2 # used for resize. if you dont have it, use anything else import skimage.io as io import skimage.morphology def create_pascal_label_colormap(): """Creates a label colorma...
[ "stanlee321@gmail.com" ]
stanlee321@gmail.com
fd2cd4aa47beb580c2de1506466786d3ad6c6e5e
488dfea1687152188bb0a6ca38a9bd24594f7010
/qiskit/quantum_info/synthesis/weyl.py
36bce3d16caef4dbfc14348cf39b2a20072d153a
[ "Apache-2.0" ]
permissive
CoolProgrammerX/qiskit-terra
e5b00a8efd5aae8c2de4ff52836640c70f09729a
6262127f9f18e4c01846ec23a757bf1c97624fd9
refs/heads/main
2023-07-19T07:49:07.296112
2021-09-07T16:32:01
2021-09-07T16:32:01
404,226,586
1
0
Apache-2.0
2021-09-08T05:49:23
2021-09-08T05:49:23
null
UTF-8
Python
false
false
3,200
py
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2019. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
[ "noreply@github.com" ]
CoolProgrammerX.noreply@github.com
af0977dbadb15f64978e8ba6c2880691771f0ee5
04c06575a49a3f4e30e4f3f2bf2365585664d2e8
/python_leetcode_2020/Python_Leetcode_2020/1254_number_of_closed_islands.py
88095fe87d20d51b01bc4198cfb845187f5f9502
[]
no_license
xiangcao/Leetcode
18da3d5b271ff586fdf44c53f1a677423ca3dfed
d953abe2c9680f636563e76287d2f907e90ced63
refs/heads/master
2022-06-22T04:45:15.446329
2022-06-17T13:03:01
2022-06-17T13:03:01
26,052,392
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
""" Given a 2D grid consists of 0s (land) and 1s (water). An island is a maximal 4-directionally connected group of 0s and a closed island is an island totally (all left, top, right, bottom) surrounded by 1s. Return the number of closed islands. """ class Solution: #Approach 1: Flood Fill First, we need to remov...
[ "xiangcao_liu@apple.com" ]
xiangcao_liu@apple.com
3113f4985de273c6595b64cc87c2c38210d52548
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/iam/admin/v1/iam-admin-v1-py/google/iam/admin_v1/services/iam/transports/__init__.py
c4caa1ba7adaaf53a8876a4a326a060d9ac478c8
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
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 o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
ecd08100ccb26c7c2526a880f30d0ac09306cb9b
936c893f29a7e3c99450b49512d5ad6dd7e63d12
/api/migrations/0101_job_concrete_time_of_day.py
20bd96452a8074941014c1bbbb828cc561a0bc4b
[]
no_license
pavithra994/cormack_dev
0d3f5f794173013f3219c786b83779df2f2ae344
78927eaeea27320908b117aa50380ddacd6e2662
refs/heads/master
2023-04-09T22:34:33.746134
2021-04-13T20:12:08
2021-04-13T20:12:08
357,628,147
0
0
null
null
null
null
UTF-8
Python
false
false
627
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2019-10-02 06:16 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('api', '0100_job_base_date'), ] operations = [ ...
[ "scott.hooper@hordernit.com.au" ]
scott.hooper@hordernit.com.au
3e96470043e207e8936431740dd377397259da58
717171ed7a14ad60dd42d62fe0dd217a0c0c50fd
/19年8月/8.26/正则处理豆瓣图书.py
e72e64329d4f75ae456aa3d08bc24a9e8b41561d
[]
no_license
friedlich/python
6e9513193227e4e9ee3e30429f173b55b9cdb85d
1654ef4f616fe7cb9fffe79d1e6e7d7721c861ac
refs/heads/master
2020-09-04T14:34:48.237404
2019-11-18T14:54:44
2019-11-18T14:54:44
219,756,451
1
0
null
null
null
null
UTF-8
Python
false
false
620
py
import requests import re response = requests.get('https://book.douban.com/') print(response.status_code) content = response.text # print(content) # pattern = re.compile('<li.*?cover.*?href="(.*?)".*?title="(.*?)".*?more-meta.*?author">(.*?)</span>.*?year">(.*?)</span>.*?</li>',re.S) pattern = re.compile('<li.*?cover....
[ "1164166295@qq.com" ]
1164166295@qq.com
e50b54289c2b6938e7ee5d2a524c7510434ef230
d0c34e4c346d59236da84b35ca0e5f032a997efd
/Python/Spider/PymysqlDemo/jianshu_spider/jianshu_spider/middlewares.py
e71f8c5a76cfd6a2864f9db8fca57426abb3cb14
[]
no_license
kinscloud/kinscloud.github.io
898b7309485493578a4ecbc1976b3e158f2a3d93
3ff8d74a85bcc62464796d529874fc9e226d120a
refs/heads/master
2022-12-14T22:01:34.245628
2020-05-31T02:49:05
2020-05-31T02:49:05
244,150,397
0
0
null
2022-12-08T04:02:36
2020-03-01T13:03:23
Python
UTF-8
Python
false
false
4,342
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals from selenium import webdriver import time from scrapy.http.response.html import HtmlResponse import requests import random...
[ "yuan_haoting@163.com" ]
yuan_haoting@163.com
48afb75d2dac3b80427de1194bde88a130319c7d
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/components/error_page/common/alt_game_images/generate_key.py
2b3044447a15fa850ff812504cb931705329f18b
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
Python
false
false
272
py
#!/usr/bin/env python/2/3 # Copyright 2021 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import secrets def main(): print(secrets.token_urlsafe(32)) if __name__ == '__main__': main()
[ "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
a847cd06bf6a7cf3c96da5de8fc75ad7315278b6
ad7454d58efcab24da6b1d9e485bdacff0f8e5e1
/e2cnn/gspaces/r2/flip2d_on_r2.py
fb7bc6b37a38f0e0b8ca9cd8044e32afd781f424
[ "BSD-3-Clause-Clear", "LicenseRef-scancode-unknown-license-reference" ]
permissive
csuhan/e2cnn
dd7bd0afdd69ff8d6a8a76ae4ccc6bee3b521eb6
f63ca7799abd4e534d09ec9cd1ec56aebcd733c6
refs/heads/master
2022-07-17T09:29:18.983800
2020-05-18T18:26:42
2020-05-18T18:26:54
283,854,350
3
1
NOASSERTION
2020-07-30T18:56:23
2020-07-30T18:56:22
null
UTF-8
Python
false
false
5,737
py
from __future__ import annotations from e2cnn import gspaces from e2cnn import kernels from .general_r2 import GeneralOnR2 from .utils import rotate_array from e2cnn.group import Group from e2cnn.group import Representation from e2cnn.group import CyclicGroup from e2cnn.group import cyclic_group import numpy as np...
[ "gabriele.cesa@gmail.com" ]
gabriele.cesa@gmail.com
ce5717ab9ed199ea61124d45b716e0d4324fc35d
038e6e41d117431869edad4952a5b1463d5131bc
/donations/migrations/0003_auto_20210202_1015.py
48203123ee1a07176a423d5e56da2b038bf1cb2e
[ "MIT" ]
permissive
MikaelSantilio/aprepi-django
c49290855b7c83ecaf08de82ee9eedf8e8baa15a
5e2b5ecffb287eab929c0759ea35ab073cc19d96
refs/heads/master
2023-06-19T00:18:15.986920
2021-06-15T20:15:59
2021-06-15T20:15:59
329,428,268
0
1
MIT
2021-02-05T16:21:45
2021-01-13T20:50:18
Python
UTF-8
Python
false
false
745
py
# Generated by Django 3.1.5 on 2021-02-02 13:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('donations', '0002_auto_20210129_1642'), ] operations = [ migrations.AddField( model_name='creditcard', name='valid',...
[ "mikael.santilio@gmail.com" ]
mikael.santilio@gmail.com
8728406189562de3a17dfb50652ca3d215dd7c0b
e72baa89436e0a166567fa7b639d982780236cce
/scriptParaLlenar.py
b7c13e41a13335fa9eaea2d164a829904de407a2
[]
no_license
cjcruzrivera/gestion_turnos
fb3fb08f783b014e69f35c72063e468f9880b187
931aa776b3f4d1f7d185b2ecc22a07f9cc71afb8
refs/heads/master
2022-11-28T17:36:53.106796
2019-06-26T15:50:37
2019-06-26T15:50:37
148,863,265
0
0
null
2022-11-22T02:56:25
2018-09-15T02:50:08
CSS
UTF-8
Python
false
false
281
py
from fabrica.models import FabricaSucursalPrincipal from fabrica.models import FabricaSucursalGeneral from fabrica.models import FabricaClientes FabricaSucursalPrincipal.create() for _ in range(3): FabricaSucursalGeneral.create() for _ in range(100): FabricaClientes.create()
[ "email_id" ]
email_id
ec11ad65950285920840988134b2a5f1822b3fec
3caf0ad913eddd22a58f30f36c7f00207923e6bc
/pip_accel/cli.py
cf705533c91bdf3f4a7a57c085934c4de77270cc
[ "MIT" ]
permissive
lgtml/pip-accel
332a837b7677750c997bc66c93e5ab56d2516dbb
b827ee66b0228e0cdfeed259b3b64f24e7220544
refs/heads/master
2021-01-22T16:00:08.271022
2014-11-21T16:27:51
2014-11-21T16:27:51
26,937,881
0
1
null
2015-01-26T15:14:26
2014-11-21T00:07:01
Python
UTF-8
Python
false
false
3,266
py
# Accelerator for pip, the Python package manager. # # Author: Peter Odding <peter.odding@paylogic.eu> # Last Change: November 16, 2014 # URL: https://github.com/paylogic/pip-accel """ :py:mod:`pip_accel.cli` - Command line interface for the ``pip-accel`` program =======================================================...
[ "peter@peterodding.com" ]
peter@peterodding.com
0d89dd845b536a7aa9745b69f4e9b5bb983327b3
9ffb2f55318df09fb966a93c17c1b6d330ae6b4a
/linear_operator/utils/__init__.py
cabdc64a458a0319b30abdeec8c10d3fe1842fd1
[ "MIT" ]
permissive
AlexanderZeilmann/linear_operator-gpleiss
1f1bfb019efe7d0d17af5a7d6a6d3be4079a4a02
a80f82ff6cdd10c493fa8344a146cf539ec7a092
refs/heads/main
2023-08-17T08:27:55.245048
2021-09-03T18:58:42
2021-09-03T18:58:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
128
py
#!/usr/bin/env python3 from . import broadcasting from .memoize import cached __all__ = [ "broadcasting", "cached", ]
[ "gpleiss@gmail.com" ]
gpleiss@gmail.com
97ad88d67b5bdb75546aacf1a917caf62e4e14b1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02675/s877018983.py
dd7c9a3e9d7754e86096aea929f69ed60a22b51e
[]
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
188
py
def main(): n = input() n = int(n[-1]) if n in [2, 4, 5, 7, 9]: print('hon') elif n in [0, 1, 6, 8]: print('pon') else: print('bon') main()
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
96a2c15778bab0d9f794f3b3c81723b590643427
7f9dfa2cccf77764940ffcbbf92939e37c138c43
/crawl_file/file_path/user_interfaces/embedding_in_wx4.py
6b9ab0f0d45640fdc9ee2dfb8eb4d528ebb41895
[]
no_license
zhangmman/scrapy_spider
f80bd8d213edde0dea083babe610ca7b1bc449a3
2bda4aa29f2550c649c939045ce4fcdea2736187
refs/heads/master
2020-09-11T13:58:49.930929
2019-12-21T08:40:56
2019-12-21T08:43:43
222,080,585
0
0
null
null
null
null
UTF-8
Python
false
false
3,452
py
""" An example of how to use wx or wxagg in an application with a custom toolbar """ # matplotlib requires wxPython 2.8+ # set the wxPython version in lib\site-packages\wx.pth file # or if you have wxversion installed un-comment the lines below #import wxversion #wxversion.ensureMinimal('2.8') from numpy i...
[ "zhangman@ncepu.cn" ]
zhangman@ncepu.cn
7ab311af266cb4da53a4f5f9669d90bded0efc49
6601acd5ba7aaaa11f8620df9509e951574373b4
/cirrus_and_anvil/plotting/CTH_CBH_plotting/CTH_CBH_distribution_plot.py
0d11f8c76af3967e2fcb6c90554810d871a25f91
[]
no_license
rachawker/Hawker_ACP_2021-UM_CASIM_paper
852d07519e4c15791e38bdf8ba7ae4ee9ac3707c
ff3cdd0b1ff72b0fed477824679ab7da49976aa3
refs/heads/main
2023-04-07T20:23:16.738292
2021-04-22T13:07:22
2021-04-22T13:14:40
360,516,902
0
0
null
null
null
null
UTF-8
Python
false
false
5,608
py
from __future__ import division import matplotlib.gridspec as gridspec import iris import iris.quickplot as qplt import cartopy import cartopy.feature as cfeat import cartopy.crs as ccrs import numpy as np import matplotlib import matplotlib.pyplot as plt import copy import matplotlib.colors as cols import matplotlib...
[ "rhawker@sci2.jasmin.ac.uk" ]
rhawker@sci2.jasmin.ac.uk
855d5e8d3fb1becd0529f9f16edb0ac260a07911
35cf6fc79b8d6c335add8e55e0f4dca6f2816d1d
/Python_Study/第二模块学习/Day02/Practice Notes/内置函数.py
038cd050e83d31ff9cbafa74251a3b011fd627a5
[]
no_license
KongChan1988/51CTO-Treasure
08b4ca412ad8a09d67c1ea79c7149f8573309ca4
edb2e4bd11d39ac24cd240f3e815a88361867621
refs/heads/master
2021-07-04T15:57:56.164446
2019-07-24T15:28:36
2019-07-24T15:28:36
97,453,749
5
8
null
2019-10-30T22:05:12
2017-07-17T08:34:59
Python
UTF-8
Python
false
false
1,834
py
#-*- Coding:utf-8 -*- # Author: D.Gray print(all([0,-1,3])) # 非0就是true,有0就是false print(any([0,-1,3])) #有一个ture,就为真。空列表为false print('\n------ascii()函数-----') a = ascii([0,-1,'HelloWorld']) print(type(a),[a]) #将列表变成可打印的字符串 print('\n------bin()函数-----') print(bin(10)) #把一个整数转成二进制 print('\n-...
[ "wangwei_198811@163.com" ]
wangwei_198811@163.com
b139ca871ed1a92960215e71031c154d6b8d8427
14675f0c66fb4f4eeaa6ad1e8e691b9edf8f0bdb
/All other combo programs/Summation_of_N_Numbers_using_Multiple_Inputs.py
ae56f34f6390b6bb9768198b5bb712fa30a37581
[]
no_license
abhishekjoshi1991/Python_Learning
9a94529643eac7394615289e2ecd96106e70ddb8
a74293d0776304638b5cf976b3534481e57b17f2
refs/heads/master
2023-04-16T02:21:30.588052
2021-04-21T13:58:29
2021-04-21T13:58:29
360,176,922
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
#input taken in form n=1 2 3 4 5 print('type1') n=input('enter the numbers:')#enter values space seperated(1 2 3) list1=[] for i in n.split(' '):#if values seperated by , then use .split(',') list1.append(int(i)) print(list1) summation=0 for each in list1: summation+=each print(summation) #also can be writt...
[ "abhijsh61@gmail.com" ]
abhijsh61@gmail.com
0b0952376a18779bfd97872c771c1505bd0567d7
425ec023740db4a579d562b503bfade5560fa359
/examples/nlp4if/english/bb_tweet_english/eng_tweet_config.py
c8294583e03d59ef0dde12c8bb47260522fd6635
[]
no_license
TharinduDR/InfoMiner
6cfd72cb68f9375366adf94c814d416e8097f549
c3cdb6125e67b3a245b297b47d69a27acc2ee022
refs/heads/master
2023-05-30T07:05:48.826862
2021-06-16T00:19:43
2021-06-16T00:19:43
342,067,217
0
0
null
null
null
null
UTF-8
Python
false
false
1,601
py
from multiprocessing import cpu_count SEED = 777 TEMP_DIRECTORY = "temp/data" RESULT_FILE = "result.tsv" SUBMISSION_FILE = "predictions.tsv" MODEL_TYPE = "bert" MODEL_NAME = "vinai/bertweet-base" config = { 'output_dir': 'temp/outputs/', "best_model_dir": "temp/outputs/best_model", 'cache_dir': 'temp/cach...
[ "rhtdranasinghe@gmail.com" ]
rhtdranasinghe@gmail.com
f38afe47bba64f8fc181ed51f4b3cefd25bb96cd
11e5290ab6dab726cf6842b664c7f17fa857858d
/setup.py
9e0bf74450b6d7e5bf6862e64928083bbe715522
[ "MIT" ]
permissive
JaeDukSeo/geometry-free-view-synthesis
d6a89cf08a1115caab43d4e7451355331444a89b
2b88813428f5543d23ad33156848fefe8fd07b2d
refs/heads/master
2023-04-08T04:40:41.755157
2021-04-23T11:26:37
2021-04-23T11:26:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
from setuptools import setup, find_packages setup( name='geometry-free-view-synthesis', version='0.0.1', description='Geometry-Free View Synthesis: Transformers and no 3D Priors', url='https://github.com/CompVis/geometry-free-view-synthesis', author='Robin Rombach, Patrick Esser, Bjorn Ommer', ...
[ "Patrick.Esser@gmx.net" ]
Patrick.Esser@gmx.net
a89d8d1dc847db776f57fbf7d10bb48a3c53f18d
336e7eba809ee0236eb731c674c19b32f20f9d31
/scrape/mi.py
e4a53bd4ee218f529a9e887075713a5175a6de51
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
paulschreiber/people
10698cebbe33721b0965cdb71c5243f1aab41e3a
f9c6cc91a73abfa3ca94d180d24a243e795cfecc
refs/heads/main
2023-03-26T22:32:42.886094
2021-03-19T20:46:34
2021-03-19T20:46:34
349,859,408
0
0
CC0-1.0
2021-03-20T23:46:16
2021-03-20T23:46:16
null
UTF-8
Python
false
false
3,113
py
from spatula.pages import HtmlListPage, CSS from common import Person, PeopleWorkflow def split_name(name): commas = name.count(",") if commas == 0: first, last = name.split(" ", 1) # special case for one legislator right now elif commas == 1: last, first = name.split(", ") else: ...
[ "dev@jamesturk.net" ]
dev@jamesturk.net
66db5b2b17581cf7d6911120bd92ff11988d5139
eb722922339781fa6bd9937e69383fcd06256738
/day1/kapua-python-client/test/test_users_api.py
53701a8dd357149de482463aa66c28edf8e7f935
[ "MIT" ]
permissive
mrsrinivas/diec
6a0c5da26ff23170b71217bfbc810bb98a897a83
ae9a5203b506d5cc18cb381666351bf9ce6b9b6c
refs/heads/master
2021-01-05T05:41:19.394898
2020-01-15T06:24:33
2020-01-15T06:24:33
240,901,175
1
0
MIT
2020-02-16T13:59:53
2020-02-16T13:59:52
null
UTF-8
Python
false
false
1,680
py
# coding: utf-8 """ Eclipse Kapua REST API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import ...
[ "noreply@github.com" ]
mrsrinivas.noreply@github.com
3fcedfecca9400fc3a910cf7baa375fdf78783e7
31e8f4ae77761c8e0f7d8a10df5d0d286a8206e6
/General syntax/objects.py
ff5881c79627ee0e44ff13b3f66f64e1c9b8d530
[]
no_license
PhillMue/python-programs
ce3989e9e19ee1b65eddf2c9210d79feb93b7921
62981a842a51acd4f0bf154cec26b89dc19b51a8
refs/heads/master
2021-01-10T16:05:47.277561
2016-02-10T01:14:36
2016-02-10T01:14:36
50,907,675
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
#!/usr/bin/python class Egg: def __init__(self, type = "fried"): self.type = type def whatType(self): return self.type def main(): fried = Egg() scrambled = Egg("scrambled") print(scrambled.whatType()) if __name__ == "__main__": main()
[ "muenzuve@gmail.com" ]
muenzuve@gmail.com