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
72867507b2e23ddba566bfc6e19cf5bc515ee53a
531a5c09ed774dca6f85f3c96827ff4d9f8fc3be
/AutotestFramework/allmodels/MultiTask.py
488ff12f17a9753fbe3d80191cf0445e76664adc
[ "MIT" ]
permissive
xiaochaom/sosotest
a98db41088d9411aa7d2723894f5bdc60bfbbd52
a3a5ce67c3dc302cf4bca906496ec6ee26b42c33
refs/heads/master
2020-07-06T09:31:39.598616
2020-06-23T07:51:00
2020-06-23T07:51:00
202,971,957
0
0
MIT
2019-08-18T07:12:52
2019-08-18T07:12:51
null
UTF-8
Python
false
false
1,014
py
import os,requests from allmodels.HttpInterface import HttpInterface from allmodels.HttpTestcase import HttpTestcase from core.decorator.normal_functions import * from core.model.TaskBase import TaskBase from core.tools.CommonFunc import * from core.tools.DBTool import DBTool from core.tools.UsualTool import UsualTool ...
[ "wangjilianglong@163.com" ]
wangjilianglong@163.com
6d83ffc37e3b62d807a811b4506fa3617ba44a8a
49310b235a4ba37a574f26b5f716762ef225433f
/ReRouting/IP3.py
b5864fe1c9ceeb64baa858955b5fe6614a86c715
[]
no_license
dimanzt/SDN
9481c76fb4315e77cb528627e78f05ace2758eef
b8d6cdf758a4e1a8a51e99fd5cf312c9dc63cb18
refs/heads/master
2021-08-22T23:55:57.441458
2017-12-01T19:36:24
2017-12-01T19:36:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,248
py
#import requests library for making REST calls import requests import json from xml_IP3 import getFlowRule from requests.auth import HTTPBasicAuth import time #specify url headers = { 'content-type': "application/xml", 'accept': "application/xml", 'authorization': "Basic YWRtaW46YWRtaW4=", 'cache-cont...
[ "dxz149@psu.edu" ]
dxz149@psu.edu
f60e8bffb5bdbf55e9433f479c67726a4aa3e0b6
c10f20abec372f81dbd6468ead208543f60940f1
/tensorflow_model/dmp-data/src/tools/del_table/idc_del_table.py
e5dc76d17cf6b88a867e41571b0af0908d9b55a0
[]
no_license
alenzhd/meachineLearning
64876e7a6c0b8b39a63a9eb586d306a3489b4447
1b66ce2f73b226548f07e45c8537b8286635a048
refs/heads/master
2021-08-24T10:55:52.056439
2017-12-09T10:26:37
2017-12-09T10:26:37
112,688,163
1
0
null
null
null
null
UTF-8
Python
false
false
3,009
py
#!/usr/bin/env python # -*-coding:utf-8 -*- #******************************************************************************************* # ** 文件名称:del_table.py # ** 功能描述:删除过期的分区 # ** 创建者: hlx # ** 创建日期: 2016/01/19 # ** 修改日志: # ** 修改日期: yyyy/mm/dd,修改人 xxx ,修改内容:流程简化 #********************************************...
[ "zhanghd@asiainfo-mixdata.com" ]
zhanghd@asiainfo-mixdata.com
3a27f59b5fbb197d629bea122754ef28f5705656
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/djLTSAc6h4bt6ehWu_2.py
c9f9fdab464311a86e77091a4e86f0c760d150c5
[]
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
673
py
""" Using Camel Case (or camelCase) is where the first word is in lower case, and all words after it have their first letter capitalised. Note that there are no spaces in between words! Create a function that takes a string and returns it back in camelCase. ### Examples camelCasing("Hello World") ➞ "helloWorl...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
81c50240be3a8fd2b8b7ce243c0d27d6dd063545
c0ce40b948129cd1d293bb024649d103348b30a4
/fib_gen.py
737b1c149cf746f8e539f5dd20871cd533509908
[]
no_license
BrettMcGregor/udemy-python-tim
ee6dc2882b57cd05f9df433459917e2ae6f05cd1
fd4e3368987740491a802cab7ce469db5b528505
refs/heads/master
2020-03-11T17:05:38.268836
2018-07-11T23:11:04
2018-07-11T23:11:04
130,137,368
0
0
null
null
null
null
UTF-8
Python
false
false
602
py
def fibonacci(): current, previous = 0, 1 while True: yield current current, previous = current + previous, current fib = fibonacci() # print(next(fib)) # print(next(fib)) # print(next(fib)) # print(next(fib)) # print(next(fib)) # print(next(fib)) # print(next(fib)) # print(next(fib)) # print...
[ "brett.w.mcgregor@gmail.com" ]
brett.w.mcgregor@gmail.com
554645bdb75b9351d11db91a6ea6fde2dbe9d737
f87f51ec4d9353bc3836e22ac4a944951f9c45c0
/.history/HW03_20210706185615.py
d1ecdc5486751bcdfbcbe9d5829059070fcbc664
[]
no_license
sanjayMamidipaka/cs1301
deaffee3847519eb85030d1bd82ae11e734bc1b7
9ddb66596497382d807673eba96853a17884d67b
refs/heads/main
2023-06-25T04:52:28.153535
2021-07-26T16:42:44
2021-07-26T16:42:44
389,703,530
0
0
null
null
null
null
UTF-8
Python
false
false
2,852
py
""" Georgia Institute of Technology - CS1301 HW03 - Strings and Lists Collaboration Statement: """ ######################################### """ Function Name: movieNight()  Parameters: subtitle (str) Returns: fixed subtitle (str) """ ######################################### ########## WRITE FUNCTIO...
[ "sanjay.mamidipaka@gmail.com" ]
sanjay.mamidipaka@gmail.com
485d48c87183e807c3a3f77649faefecf7ddbedf
ade047677ca695a8d27ff50645f1afe8cd1463df
/pyqt-node-editor-c42a1d9b6c57afe917dbd0e9cc98cf769903eb7a/examples/example_calculator/nodes/dataset1.py
97f08bf99c7e84b0e116c52cef78b4fe2c084f63
[ "MIT" ]
permissive
xuzhuo77/WorkSpace-FrameWork
677f02eead801fb48e60d0411ea4dc5aa516af57
109c691c270020ef20f36f625c31166c49386351
refs/heads/master
2023-03-06T13:02:28.528231
2021-02-21T23:01:08
2021-02-21T23:01:08
337,577,954
0
0
null
null
null
null
UTF-8
Python
false
false
1,952
py
from sklearn import datasets from examples.example_calculator.calc_conf import * from examples.example_calculator.calc_node_base import * iris=datasets.load_iris() class DatasetContent(QDMNodeContentWidget): def initUI(self): self.lbl = QLabel("data", self) self.lbl.setAlignment(Qt.AlignRight) ...
[ "403863214@qq.com" ]
403863214@qq.com
92a22e2ca450595352558770d07c6a7f55b1680a
9512f329d9326ed0b9436202947de9eee0c6c387
/Cap18_Tkinter/25_grid.py
e9a4a7827d904b0e03983be9af18394e13613703
[]
no_license
frclasso/CodeGurus_Python_mod1-turma1_2019
9fffd76547256ac480db41536223682a5b152944
e34d60498ee45566dbf1182551d91250a9aab272
refs/heads/master
2020-04-30T02:01:50.757611
2019-06-10T15:38:58
2019-06-10T15:38:58
176,546,912
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
from tkinter import * root = Tk() root.title("Grid Layout") Label(root, text='Username').grid(row=0) Entry(root).grid(row=0, column=1) Label(root, text='PASSWORD').grid(row=1) Entry(root).grid(row=1, column=1) Checkbutton(root, text='Keep me Logged in').grid(columnspan=2) root.mainloop()
[ "frcalsso@yahoo.com.br" ]
frcalsso@yahoo.com.br
e1d03f72a6866eb44f3bef5538a1450d5d1b7a87
61be48226158a3f4f24a7e465f511397e98ce7a9
/00 Python/08 测试代码/测试类/language_survey.py
9e74dc4599949ad94a71f3e4988aa227b739d069
[]
no_license
yangzongwu/mynote
9f9e1eddf9c589d3063c8ba1f07e81e269997ddc
ee38af9b63652b917dd78a7d253d6efd41276f10
refs/heads/master
2023-02-18T01:52:22.338777
2021-01-20T06:35:12
2021-01-20T06:35:12
255,619,657
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
from survey import AnonymousSurvey #定义一个问题,并创建一个表示调查的AnonymousSurvey对象 question = "What language did you first learn to speak?" my_survey = AnonymousSurvey(question) #显示问题并存储答案 my_survey.show_question() print("Enter 'q' at any time to quit.\n") while True: response = input("Language: ") if response == 'q': ...
[ "yangzong5@gmail.com" ]
yangzong5@gmail.com
513310405e2fc169f01e020eac75eee960eebafa
652a06c000bec4af004d7277059b6860b3690885
/nuoma/rooms/migrations/0004_property.py
778bad6cd1b8841d84bb523acc5d1d0c74f10d63
[]
no_license
steellsas/hotel
ae9b2bd8e68b8958dfdc8686de838d7fe6be5278
58c5b0f8ecbd7c9ee6963c51b9074b4e7a96ea39
refs/heads/master
2023-03-27T21:37:27.984234
2021-03-15T07:30:17
2021-03-15T07:30:17
347,874,974
0
0
null
null
null
null
UTF-8
Python
false
false
667
py
# Generated by Django 3.1.7 on 2021-03-14 09:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rooms', '0003_roomimage'), ] operations = [ migrations.CreateModel( name='Property', fields=[ ('id',...
[ "aplienius@gmail.com" ]
aplienius@gmail.com
7e3fc8edc0e8cb96ceb4a20bf108ca857d671a3d
5070616ffebfc1bcf61ebc0fec989572206d99d3
/dj/blog/encoders.py
8bc2614aa7174c9c012f347d78ad84ee247b8370
[]
no_license
cwcw26/bootcamp-django-and-react-demo
402253e235af2d1c63f393003659a2e600cb6aac
099b422dc7d7b6bd52e0e1f8d31aa4d007cb00a1
refs/heads/master
2023-03-26T21:27:34.958888
2020-01-20T10:49:48
2020-01-20T10:49:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
import types from django.core.serializers.json import DjangoJSONEncoder from django.db.models import QuerySet class JSONEncoder(DjangoJSONEncoder): def default(self, o): if hasattr(o, 'as_dict'): return o.as_dict() elif isinstance(o, (set, types.GeneratorType, QuerySet)): ...
[ "me@askcompany.kr" ]
me@askcompany.kr
7326a94d4aae7230e7677c24528429fd111a1d36
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02272/s485565354.py
a38bb69e28127889bab5626188dcc862c192b3bf
[]
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
1,993
py
global cmt cmt = 0 def Merge(left, right): global cmt lst = [] ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0a406171b723db36a411925bb93535e5ca316317
5864e86954a221d52d4fa83a607c71bacf201c5a
/eve/client/script/environment/spaceObject/basicOrbital.py
638aa3a9ccb4685b99b1d44ebc8f649063b34605
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
3,080
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\client\script\environment\spaceObject\basicOrbital.py import blue import eve.common.script.mgt.entityConst as entities from eve.client.script.environment.spaceObject.playerOwnedStructure import PlayerOwnedStructure import uthread c...
[ "le02005@163.com" ]
le02005@163.com
bea955472f10159ba205294c9ac0843b70e38337
81373bc9135a9b461a3393ce78daae8626090ba2
/data/Cambridge/tools/utils.py
5acc2e6daacaa9972dfeebf382a6f10d02f3c896
[]
no_license
jrahim/graph_clean
c4df38c9aa7acd85e5d7a7c4925ee0d3ce0b800a
2bd6aaadb8f6abcc13e9c468adff74c93b0ae6b2
refs/heads/main
2023-01-15T04:15:41.733641
2020-11-26T19:52:39
2020-11-26T19:52:39
315,952,576
0
0
null
null
null
null
UTF-8
Python
false
false
233
py
import numpy as np import os, sys def read_image_list(filename): print("Reading ImageList......") with open(filename, "r") as fin: lines = fin.readlines() lines = [line.strip() for line in lines] return lines
[ "jamal@hku.hk" ]
jamal@hku.hk
8890aba82d272e5c32b21a42af881db6d8dd0d78
a4f772b15618b7aac85efcf766afca0a8a6b3daf
/icefuzz/database.py
5850ddf5db987f40dd27fe0acb67dca5348383c0
[ "ISC" ]
permissive
tuyenth/icestorm
ebed9e67c6dc1d16e3b503ee53d7d2932f2e6d51
745d81d1d82dd9adab1a187e22ae3d25c16237ec
refs/heads/master
2021-01-12T22:39:49.627072
2015-12-30T18:02:03
2015-12-30T18:02:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,990
py
#!/usr/bin/env python3 import re, sys, os def sort_bits_key(a): if a[0] == "!": a = a[1:] return re.sub(r"\d+", lambda m: "%02d" % int(m.group(0)), a) def read_database(filename, tile_type): raw_db = list() route_to_buffer = set() add_mux_bits = dict() with open(filename, "r") as f: ...
[ "clifford@clifford.at" ]
clifford@clifford.at
b591f9be0c2cd2f55ecef3976ceb5b0e0813789d
b0dd7779c225971e71ae12c1093dc75ed9889921
/tools/build/v2/test/ordered_include.py
71e7d835ba60623ef4b285203e186748d56c7a52
[ "LicenseRef-scancode-unknown-license-reference", "BSL-1.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
blackberry/Boost
6e653cd91a7806855a162347a5aeebd2a8c055a2
fc90c3fde129c62565c023f091eddc4a7ed9902b
refs/heads/1_48_0-gnu
2021-01-15T14:31:33.706351
2013-06-25T16:02:41
2013-06-25T16:02:41
2,599,411
244
154
BSL-1.0
2018-10-13T18:35:09
2011-10-18T14:25:18
C++
UTF-8
Python
false
false
858
py
#!/usr/bin/python # # Copyright (c) 2008 Steven Watanabe # # Distributed under the Boost Software License, Version 1.0. (See # accompanying file LICENSE_1_0.txt) or copy at # http://www.boost.org/LICENSE_1_0.txt) import BoostBuild tester = BoostBuild.Tester() tester.write("jamroot.jam", """ obj test : t...
[ "tvaneerd@rim.com" ]
tvaneerd@rim.com
505f020e4b8661206bc03e1754c3fefd7df39c65
3f68b6a4375c5ed415eea500c27b6d27d854e39f
/st2auth/st2auth/backends/mongodb.py
b2f33b49dce76d6189f085803a97571bf5cb0c8d
[ "Apache-2.0" ]
permissive
jonico/st2
1e83da68ecf8961118b69161f9ba9672a3cbd622
6cd09420deca4db6f9713961fa5af490123c055c
refs/heads/master
2020-12-25T08:43:15.278996
2015-08-24T02:06:22
2015-08-24T02:06:22
41,300,643
0
0
null
2015-08-24T12:03:16
2015-08-24T12:03:16
null
UTF-8
Python
false
false
3,237
py
# Licensed to the StackStorm, Inc ('StackStorm') 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 use th...
[ "tomaz@tomaz.me" ]
tomaz@tomaz.me
fd6beded5ef04660c289f18bbaf93d4e0ac37548
09bcd2a342fc79a4a7c30e24a76788d90df2176d
/galleria/galleria/filter_mixin.py
0b39acff153dda12fb1291c2efa2b1d7612e3bf3
[ "Apache-2.0" ]
permissive
kamalhg/galleria
48b2ed5ef1931ee12b7247caf7e50caa167c88ff
18ee38e99869812e61244d62652514d1c46bf3f3
refs/heads/master
2020-12-27T12:15:22.233386
2014-06-18T15:53:54
2014-06-18T15:53:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,758
py
from django.core.exceptions import ImproperlyConfigured from django.views.generic import ListView class ListFilteredMixin(object): """ Mixin that adds support for django-filter """ filter_set = None def get_filter_set(self): if self.filter_set: return self.filter_set ...
[ "hum3@drummond.info" ]
hum3@drummond.info
0d01c490429737a17d89e8cfc8231d2a3960b2af
6e291a380cbad4fc9db620dd181c8fc2da3b274e
/ctr/header_bin.py
780ac8f21ce449ca5927eca12d51f0c9e8cdf4b0
[]
no_license
ReignOfComputer/PPRE
d6cddcb865da5309b7c28d43cb4b8a228b6f606c
26e27f0677b1e68bba75b8f52a4b35d0d7f3737e
refs/heads/master
2021-01-13T03:36:31.701134
2016-12-25T10:25:22
2016-12-25T10:25:22
77,320,864
0
0
null
2016-12-25T10:23:59
2016-12-25T10:23:58
null
UTF-8
Python
false
false
765
py
from util import BinaryIO class HeaderBin(object): """Handler for ncch_header.bin Attributes ---------- code : string Code for this game. Up to 4 chars base_code : string Base ROM code. 4 chars. Read-only """ def __init__(self, reader=None): self.code = '' ...
[ "alpha@pokesplash.net" ]
alpha@pokesplash.net
8c8f502935e77e9f56af064325f9a078fcdd8786
879ac03dd910d152170d6d1e3ff4d5e522b14d79
/Algorithms/07. Greedy/001. Mark and Toys.py
56bd4f4336a80460f8a13d1c0558f32008fc98bb
[]
no_license
dispe1/Hackerrank-Solutions
ae47920d7761546fd2ef753c1b4f9ae087aaed2a
67b792dc2cb2933eb1f1565100ea13b0c9783fba
refs/heads/master
2020-07-11T21:25:39.824667
2019-12-10T12:00:12
2019-12-10T12:00:12
204,646,756
4
3
null
null
null
null
UTF-8
Python
false
false
668
py
# Problem: https://www.hackerrank.com/challenges/mark-and-toys/problem # Difficulty : Easy # Score : 35 import os def maximumToys(prices, k): result = 0 price = 0 prices.sort() while price < k: for p in prices: if price + p < k: result += 1 price +=...
[ "lkjim0757@naver.com" ]
lkjim0757@naver.com
87e8f2165e1cc6b60b98eec8995a3252d63cee72
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/arobBz954ZDxkDC9M_15.py
333ba318bf7e90e74ed81825c3dd954ae999c02a
[]
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
234
py
def next_prime(num): prime = [] for i in range(num, num*2): count = 0 for k in range(1,i+1): if not (i % k) : count +=1 if count == 2: prime.append(i) return (prime[0])
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
5be74802368ea913a9f24a16acae3323df524ec2
03dd1cbd8448a6bab045bdab7fbd94a454ab861c
/config/migrations/0025_auto_20170929_1104.py
1327763a217d2549e6ef04c08505a4ddfc3b3a7e
[]
no_license
UnruledLab/ICO-Full-Stack
feb03d7eba6c0d29febdaf47a9947837d8c25f00
94dc4c2a7ea176a1901e0c8643795f416f112396
refs/heads/master
2022-12-08T11:41:09.577255
2017-11-16T19:23:01
2017-11-16T19:23:01
120,464,345
0
0
null
2022-12-08T00:39:41
2018-02-06T13:51:59
JavaScript
UTF-8
Python
false
false
2,647
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-09-29 11:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('config', '0024_auto_20170929_1049'), ] operations = [ migrations.AddField( ...
[ "phonxis@gmail.com" ]
phonxis@gmail.com
ff65b4b4d5c2c11b844e077a396b7ebc1dc5527e
39c0502f55dd3aa28e77ae66a32f61215721ea78
/history_pro/python_luffy/Luffy_study_my_code/函数/函数默认参数.py
cd381e44e44c22cfb612e65a43c15dc60a1b335c
[]
no_license
victorfengming/python_projects
f1f52c4ba23dd98e402088f3beb2d45d0fa675d1
ccd963a1b81c581d82e40164b766fa7bb1d4910a
refs/heads/master
2020-08-08T23:55:39.217943
2019-10-31T07:45:57
2019-10-31T07:45:57
213,951,548
0
0
null
null
null
null
UTF-8
Python
false
false
520
py
# def s(name,age,course,country="CN"): # print("---注册学生信息---") # print("姓名:",name) # print("年龄:",age) # print("国籍:",country) # print("课程:",course) # s() # def s(name,age,course,country="CN"): # s("1","2","3","4") def s(name,age,course,country="CN"): print("---注册学生信息---") print("姓名:",name...
[ "fengming19981221@163.com" ]
fengming19981221@163.com
97a8a3706c712b588e9040e4c42dfb77a082ad95
66213c48da0b752dc6c350789935fe2b2b9ef5ca
/abc/122/c.py
980b3b16c171d708c6155fb7e72d4af2c0d3825c
[]
no_license
taketakeyyy/atcoder
28c58ae52606ba85852687f9e726581ab2539b91
a57067be27b27db3fee008cbcfe639f5309103cc
refs/heads/master
2023-09-04T16:53:55.172945
2023-09-04T07:25:59
2023-09-04T07:25:59
123,848,306
0
0
null
2019-04-21T07:39:45
2018-03-05T01:37:20
Python
UTF-8
Python
false
false
715
py
# -*- coding:utf-8 -*- def solve(): N, Q = list(map(int, input().split(" "))) S = input() L, R = [], [] for i in range(Q): l, r = list(map(int, input().split(" "))) L.append(l) R.append(r) # 累積話で解く accumulations = [0] * N for i in range(1, N): if S[i-1]...
[ "taketakeyyy@gmail.com" ]
taketakeyyy@gmail.com
b08196eee3ea9d4191aa14cfbd6e7bbc5aaa5796
7b48df383a36f292f89b21de9c425e91babc7090
/tests/test_transform.py
8238a2b870773acadf932bd11af91e4ed08761b8
[ "MIT" ]
permissive
MacHu-GWU/pandas_mate-project
3c0d4ee896c8389dbc78f1d63a9fdf3a57db5ff5
96b4f4dd6964d15ce64b49e8a92d28835dce90ad
refs/heads/master
2021-01-23T01:08:54.886740
2017-06-13T19:22:31
2017-06-13T19:22:31
85,882,710
2
1
null
null
null
null
UTF-8
Python
false
false
3,318
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import warnings from datetime import datetime import pytest import numpy as np import pandas as pd from sfm.timer import Timer from pandas_mate import transform from pandas_mate.tests import create_test_df data_file_path = os.path.join(os.path.dirname(__file__)...
[ "husanhe@gmail.com" ]
husanhe@gmail.com
e2a9063e762af258d3dbf07d623a19c4e13c9f7a
aba442afba026d2130c4aeca863308ca26e7e472
/multimodal/src/autogluon/multimodal/utils/cloud_io.py
3a9ea3a1a72fa75a24a49495c73925afa2832758
[ "Apache-2.0" ]
permissive
stjordanis/autogluon
c8fd03a9bf7624911b13e90239e9260dd8885ddf
6af92e149491f6e5062495d87306b3625d12d992
refs/heads/master
2023-08-21T15:16:53.202431
2023-08-11T20:15:31
2023-08-11T20:15:31
228,360,888
0
0
Apache-2.0
2019-12-16T10:25:32
2019-12-16T10:25:30
null
UTF-8
Python
false
false
2,988
py
# Copyright The Lightning team. # # 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 writin...
[ "noreply@github.com" ]
stjordanis.noreply@github.com
55e68e00a624da02fa4695af077f56a4267b0157
dc35d14d93443a7d08d87ccb425c14fcdace35a4
/pw_console/py/table_test.py
d9e23d2e6fd317c6a6bf4d9de202d8b0296371eb
[ "Apache-2.0" ]
permissive
fraisty/pigweed
c140cc118ed5d590d273e3f6d50e9a5ef3ffcb03
40b9db09c7b1e46320d2733d0cbdb646c0c56e3d
refs/heads/main
2023-08-02T05:41:17.867409
2021-09-14T22:18:14
2021-09-14T23:51:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,024
py
# Copyright 2021 The Pigweed Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
[ "pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com
65dccc400edfa892e78274a95255345087c87dda
1898456162422859f8b7da7902582e43ed3afffb
/2_Data_Structures/week3_priority_queues_and_disjoint_sets/_239b6711c9a70f442e40e1a1c2261912_Programming-Assignment-2/make_heap/build_heap.py
556aeb2ef2d53aeb5e04dceb2313598108bebf02
[ "MIT" ]
permissive
AnthonyRChao/UCSD-DSA
275a5e668d3c54e0e27c8530280ad3c234f93933
877d7f1d7f3d3d9d6a0c6cda2421ec130b64da3d
refs/heads/master
2020-04-22T14:34:18.824210
2019-05-06T06:46:09
2019-05-06T06:46:09
170,448,258
0
0
null
null
null
null
UTF-8
Python
false
false
1,929
py
# python3 class HeapBuilder: def __init__(self): self._data = [] self._swaps = [] def ReadData(self): n = int(input()) self._data = [int(s) for s in input().split()] assert n == len(self._data) def WriteResponse(self): print(len(self._swaps)) for swap in self._swaps:...
[ "anthony.r.chao@gmail.com" ]
anthony.r.chao@gmail.com
3c419550778592487242ae6f3d838458f59ead66
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/surface/projects/set_iam_policy.py
8a8e4e9c83d3528bc6c43698058c7e91ea17dd9e
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
1,941
py
# -*- coding: utf-8 -*- # # Copyright 2015 Google LLC. 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 requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
f74d0d1b3d916b021b8009976ec9743c5f859415
76050b0002dac757866a9fb95dc199918da665bb
/examples/baselines/rl_continuous/run_mogmpo.py
d4da09d2d3fa2b3439e39e2a5e9c4a481d548cea
[ "Apache-2.0" ]
permissive
RaoulDrake/acme
2829f41688db68d694da2461d301fd6f9f27edff
97c50eaa62c039d8f4b9efa3e80c4d80e6f40c4c
refs/heads/master
2022-12-29T01:16:44.806891
2022-12-21T14:09:38
2022-12-21T14:10:06
300,250,466
0
0
Apache-2.0
2020-10-01T11:13:03
2020-10-01T11:13:02
null
UTF-8
Python
false
false
3,374
py
# Copyright 2018 DeepMind Technologies Limited. 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 ...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
85bc8f41b338ca08292caadd297ee8aa5d053670
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2529/60618/289217.py
f2e7fde5fff6c54913444e943d4cb9a454827c6d
[]
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
365
py
import itertools a=list(itertools.permutations(list(str(input())))) s='' re=0 result=0 for x in a: for i in range(0,len(x)): if x[0]=="0": break else: s+=y for i in range(0,10000): if int(s)==2**i: result=1 break if result==1: ...
[ "1069583789@qq.com" ]
1069583789@qq.com
80954f79907c4d58ae6f683b92469fc1c9b044b2
e6d4a87dcf98e93bab92faa03f1b16253b728ac9
/algorithms/python/setIntersectionSizeAtLeastTwo/setIntersectionSizeAtLeastTwo.py
af684602dde200d9119a16332ff3551a1f18a131
[]
no_license
MichelleZ/leetcode
b5a58e1822e3f6ef8021b29d9bc9aca3fd3d416f
a390adeeb71e997b3c1a56c479825d4adda07ef9
refs/heads/main
2023-03-06T08:16:54.891699
2023-02-26T07:17:47
2023-02-26T07:17:47
326,904,500
3
0
null
null
null
null
UTF-8
Python
false
false
681
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Source: https://leetcode.com/problems/set-intersection-size-at-least-two/ # Author: Miao Zhang # Date: 2021-03-08 class Solution: def intersectionSizeTwo(self, intervals: List[List[int]]) -> int: intervals.sort(key=lambda x: (x[0], -x[1])) print...
[ "zhangdaxiaomiao@163.com" ]
zhangdaxiaomiao@163.com
d43a59ffebe160d1081a6c5a2aacd1a921d24666
603abbd229e8751ca39b54de2bd7aed470987035
/BOJ/Simultation/InsertOperator.py
9f6b7360e3948338fe2957688ddef40b670c1c71
[]
no_license
SeonJongYoo/Algorithm
869661f5e0c23eedb40b1e8f017bba5501b0519a
e672287c5d6b6c19c146bb59cf73064bda9b4fe2
refs/heads/main
2023-08-11T02:33:25.679790
2021-09-20T15:00:25
2021-09-20T15:00:25
310,283,160
0
0
null
null
null
null
UTF-8
Python
false
false
3,675
py
# 연산자 끼워넣기 # 순열 직접 구현 - 라이브러리와 시간 복잡도에서 차이 발생 # def DFS(L): # global Max, Min # if L == n-1: # chOper = [] # for i in range(n-1): # chOper.append(operator[ch[i]-1]) # if chOper in ck: # return # ck.append(chOper) # tmp = a[0] # j = 1 # ...
[ "jobgsyou@naver.com" ]
jobgsyou@naver.com
d6e0901e4b98f66aa17081c35fa9f7986470971f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03030/s063573302.py
3de5a21fa82c9f5044febe019f4f645323b78afc
[]
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
410
py
import copy N = int(input()) org_arr = [list(input().split()) for _ in range(N)] for i in range(len(org_arr)): org_arr[i][1]=int(org_arr[i][1]) org_arr[i].append(i+1) arr = copy.copy(org_arr) arr = sorted(arr, reverse=True, key=lambda x: x[1]) arr.sort(key=lambda x:x[0]) for i in range(len(arr)): arr[i...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
2365aabf653da6178bbfda28b2f23c5c41423445
e82b761f53d6a3ae023ee65a219eea38e66946a0
/All_In_One/addons/vb25/plugins/GeomVRayPattern.py
c360d95553d976cd8fad7e8a4bb4fef77ac2def8
[]
no_license
2434325680/Learnbgame
f3a050c28df588cbb3b14e1067a58221252e2e40
7b796d30dfd22b7706a93e4419ed913d18d29a44
refs/heads/master
2023-08-22T23:59:55.711050
2021-10-17T07:26:07
2021-10-17T07:26:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,417
py
# # V-Ray/Blender # # http://vray.cgdo.ru # # Author: Andrey M. Izrantsev (aka bdancer) # E-Mail: izrantsev@cgdo.ru # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the Li...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
64a0f965fdfb8acd128ff7e6118121a530a8723b
66b1f3c3e57f53e1404d6e17c4acc850173a531d
/Python/Fundamentals/05. Files-and-Errors-Resources/Resources/01. Odd Lines/01. Odd Lines.py
02d79cf267fe163f467cc92a344a3c21e0cd512d
[]
no_license
bMedarski/SoftUni
ca4d6891b3bbe7b03aad5960d2f4af5479fd8bbd
62cd9cb84b0826e3381c991882a4cdc27d94f8ab
refs/heads/master
2021-06-08T17:32:39.282975
2020-02-04T11:57:08
2020-02-04T11:57:08
67,947,148
6
3
null
2021-05-06T20:35:42
2016-09-11T18:31:02
Python
UTF-8
Python
false
false
175
py
with open("Input.txt","r") as f: lines = f.readlines() with open("Result","a") as a: for i in range(len(lines)): if i%2!=0: a.writelines(lines[i])
[ "boyamedarski@mail.bg" ]
boyamedarski@mail.bg
429f0be69f79ac3772f5c10e9b4a753e7fa21d77
38e82df34efcb0ed819f49457210be9616caf875
/ABC/017/17_b.py
241100be655c2ecde09411d61a12c312b8618eeb
[]
no_license
oden6680/AtCoder
96385ce02ff02909e2f17123dad67d63baa4a0f7
3b20885d86726fcf4617076d653abb125609125e
refs/heads/master
2022-09-19T13:12:02.705304
2020-05-31T19:58:51
2020-05-31T19:58:51
263,191,816
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
s = list(input()) res = "" for i in range(len(s)): if s[i] == "c": res += "ch" elif s[i] == "o": res += "o" elif s[i] == "k": res += "k" elif s[i] == "u": res += "u" if res == ''.join(s): print("YES") else: print("NO")
[ "oden6680@gmail.com" ]
oden6680@gmail.com
e4bbd107da57c339c5a49dbd6f28d4dabf6f682d
d2e82d8bc2a4604b6e734f7521ddae2716486b96
/20190521/historyData_model4/dragon/export.py
2bf7020d0b26396888d7892eece5d1e98a4ca604
[]
no_license
JudyPhy/spider
af74dbf8b74b335b64247b382e73b669796e5c1a
eb32aab272269f13a97ecea17eb6135f9e7e3d49
refs/heads/master
2021-07-05T19:07:50.427310
2020-08-14T09:29:49
2020-08-14T09:29:49
159,917,490
0
0
null
null
null
null
WINDOWS-1252
Python
false
false
7,542
py
from db.database import singleton_Results_DB from config.myconfig import singleton_cfg # ½á¹û´æ´¢±íÃû RESULT_TABLE = singleton_cfg.getDragonExportTable() def export(all_list): if singleton_Results_DB.table_exists(RESULT_TABLE): singleton_Results_DB.cursor.execute('drop table {}'.format(RESULT_TA...
[ "pujie@chinatsp.com" ]
pujie@chinatsp.com
4e62edd7396e6280ccf6f2e93fc8354fa63b1db1
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/testbase/get_favorite_process.py
3e544e86b84a839cae7537ec1ba2ac96d860ca87
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,902
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
5253362e89a3f94a97cd259ddc3099c0f87b6006
1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5
/pluralSight/pythonFundamentals/6_collections/9_growingLists.py
18be70aefe97b67153ab69adf0b605148088e200
[ "MIT" ]
permissive
sagarnikam123/learnNPractice
f0da3f8acf653e56c591353ab342765a6831698c
1b3b0cb2cff2f478006626a4c37a99102acbb628
refs/heads/master
2023-02-04T11:21:18.211654
2023-01-24T14:47:52
2023-01-24T14:47:52
61,184,927
2
1
MIT
2022-03-06T11:07:18
2016-06-15T06:57:19
Python
UTF-8
Python
false
false
268
py
# Growing Lists ################################################################################ m = [2, 1, 3] n = [4, 7, 11] k = m + n k k += [18, 29, 47] k k.extend([76, 129, 199]) k ################################################################################
[ "sagarnikam123@gmail.com" ]
sagarnikam123@gmail.com
0a2cf667f19768b7940f4b6c0a045ebe943fe8a9
2ff7e53d5e512cd762217ca54317982e07a2bb0c
/eve-8.51.857815/nodemanager.py
faaa4a2d9f7e6322e2c938e7d7d5666149ff1593
[]
no_license
nanxijw/Clara-Pretty-One-Dick
66d3d69426642b79e8fd4cc8e0bec23adeeca6d6
50de3488a2140343c364efc2615cf6e67f152be0
refs/heads/master
2021-01-19T09:25:07.555284
2015-02-17T21:49:33
2015-02-17T21:49:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
#Embedded file name: nodemanager.py """This is an autogenerated file to mimic the nasty namespace.""" from eve.client.script.environment.nodemanager import FindNode from eve.client.script.environment.nodemanager import FindNodes
[ "billchang.e@gmail.com" ]
billchang.e@gmail.com
ae9c5b91a33da44a01b8a7e28afed8a0686c68fc
543037f34b4d1a91f8e8d3ce92c955bce0908abd
/class9/exercises/ex4_napalm_replace.py
170d87ef0e8ecf003d4f46a0418171ba7f2224c7
[ "Apache-2.0" ]
permissive
suhaibasaeed/pyplus_course
374d606a4ae10b54e78f24b6c964558b65687fe1
313e5ba34c5f7acc59a9032c4698bc80ef36a6b0
refs/heads/master
2023-01-20T09:05:20.503509
2020-11-28T21:11:47
2020-11-28T21:11:47
299,747,126
0
0
Apache-2.0
2020-09-29T21:57:14
2020-09-29T21:57:14
null
UTF-8
Python
false
false
1,038
py
from my_functions import open_napalm_connection, create_checkpoint from my_devices import nxos1 # Disable Self-signed Certificate Warnings import requests from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) NXOS_REPLACE_CANDIDATE...
[ "ktbyers@twb-tech.com" ]
ktbyers@twb-tech.com
2acd79f3180cce5e32090ccbcd3e5bb56ac68659
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_1_neat/16_0_1_Noaman_task1Small.py
bc96e53f08cb80db4baa7c856e7cff02f255381e
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
404
py
infile = open("A-large.in",'r') out = open("output.in",'w') test = infile.readline() for t in range(0,int(test)): Num = int(infile.readline()) if (Num == 0): out.write("Case #%s: INSOMNIA\n" % (t+1)) else: n = 1 seen = [False]*10 while not (all(seen)): for num in str(n*Num): seen[int...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
4db595982d8dc7a8d672e2b5950222b3b22ef6ff
55ceefc747e19cdf853e329dba06723a44a42623
/_CodeTopics/LeetCode/801-1000/000832/000832_handmovedoghead2.py
3b19d6c4d606fe96177aac97d43fee01f63c0f9b
[]
no_license
BIAOXYZ/variousCodes
6c04f3e257dbf87cbe73c98c72aaa384fc033690
ee59b82125f100970c842d5e1245287c484d6649
refs/heads/master
2023-09-04T10:01:31.998311
2023-08-26T19:44:39
2023-08-26T19:44:39
152,967,312
0
1
null
null
null
null
UTF-8
Python
false
false
553
py
class Solution(object): def flipAndInvertImage(self, A): """ :type A: List[List[int]] :rtype: List[List[int]] """ # 手动狗头题 return [list(map(lambda x : 1-x, row[::-1])) for row in A] """ https://leetcode-cn.com/submissions/detail/148138065/ 82 / 82 个通过测试用例 状态...
[ "noreply@github.com" ]
BIAOXYZ.noreply@github.com
fade53a1fafd6bcfb57371b58072eb0fb8a1070c
7ea4e8a68c8f2c68d7b48edf9b8e6fc5ed14ed0b
/scripts/delphes-python
f1cf2d490fec50c14dcb13dab5c57b521e668167
[]
no_license
dguest/delphes-plotting
ca1d157a129d899d2bcd61b21f25803a16a2253f
c95fd2746785401a36a858e9cff2c546032f6110
refs/heads/master
2020-12-24T15:04:38.830913
2015-10-27T22:21:13
2015-10-27T22:21:13
38,186,823
0
0
null
null
null
null
UTF-8
Python
false
false
1,434
#!/usr/bin/env python3 import site from os.path import isfile, isdir, join, abspath, split import os, sys import argparse def here_path(): return '/'.join(abspath(__file__).split('/')[:-2] + ['python']) def pth_file_path(): usr_path = site.getusersitepackages() pth_file = join(usr_path, 'delphes.pth') ...
[ "dguest@cern.ch" ]
dguest@cern.ch
f1fef7efd8696fe88c97fd88708ef29dd9570fa6
77a2891cd1d6272cc79b5f8235e8d94d4406d50c
/algo/common/vec_env/dummy_vec_env.py
6bde144b2f3ef98cb9608d6aaf633769b7a85e53
[]
no_license
akSecond/ml_course_proj
092f84f2389b6128bf1eb4cc6e9006e61f0f891a
8748e66ad98a2de17ed0ff9cfd144aedb3acea9f
refs/heads/master
2022-12-02T08:04:15.551583
2019-06-16T13:05:17
2019-06-16T13:05:17
192,185,386
0
0
null
2022-11-22T03:53:00
2019-06-16T11:54:37
Python
UTF-8
Python
false
false
2,661
py
import numpy as np from .vec_env import VecEnv from .util import copy_obs_dict, dict_to_obs, obs_space_info class DummyVecEnv(VecEnv): def __init__(self, env_fns): """ Arguments: env_fns: iterable of callables functions that build environments """ self.envs = [fn() for...
[ "kornbergfresnel@outlook.com" ]
kornbergfresnel@outlook.com
bb0ee2f5ebcdd36124e5bd29f998ab8f40fa20c6
0bfea64f0d30898ae8e49391c13731e54407f4eb
/homeassistant/components/thermostat/nest.py
b9d13b123fbdd2da76a4d623c2842e0e221be83d
[ "MIT" ]
permissive
gaybro8777/home-assistant
3e9f6473a726a5e29df2c860ad9a16515ee7d679
d9e3c02df3a2690e74d1b606e8db0a4dd686e872
refs/heads/master
2021-09-20T04:12:33.423919
2015-06-22T22:03:02
2015-06-22T22:03:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,112
py
""" Adds support for Nest thermostats. """ import logging from homeassistant.components.thermostat import ThermostatDevice from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD, TEMP_CELCIUS) # pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """ Sets up...
[ "paulus@paulusschoutsen.nl" ]
paulus@paulusschoutsen.nl
68a8df1bc28dfe048e0031e1215d1e2382713770
8a9dbfd7c2213652265269838ca9c15aad66a66f
/class-20160928/report/김태영_조선해양공학과/2.다이아몬드_형식지정자X.py
e3aaf595f63cd4684dab844e466331824f9549a0
[]
no_license
askdjango/snu-web-2016-09
48ba3b0301be1e0f05f1e630dcfecac51827e779
eaf703cc3ff7ddf3795a636ad1631624a87a9b70
refs/heads/master
2020-02-26T14:23:00.495594
2016-12-19T11:51:45
2016-12-19T11:51:45
68,677,254
6
2
null
null
null
null
UTF-8
Python
false
false
220
py
print("과제 2_2번") print(' ') print(' * ') print(' *** ') print(' ***** ') print(' ******* ') print(' ***** ') print(' *** ') print(' * ')
[ "allieuslee@gmail.com" ]
allieuslee@gmail.com
40f685e38285b86f2ce602f504bce109dcdc859c
0a3405a753ff47a93a9f1b373ebff631a4ecfb50
/BERT.py
898d57f424cc06aff7ae9fbbc646b64883ea9dcd
[]
no_license
simplifies/covid-query
fafa58fb92c332924af427937a0f7ddd0228f458
d1f2afb4153faed7985f2777fa2a8d4230bbc98e
refs/heads/main
2023-07-17T02:24:53.901962
2021-08-24T07:37:17
2021-08-24T07:37:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,208
py
import pandas as pd import re from sklearn.metrics.pairwise import cosine_similarity from gensim.parsing.preprocessing import remove_stopwords df = pd.read_csv("preprocessed_dataset.csv", index_col = 0) def clean_sentence(sentence, stopwords=False): sentence = sentence.lower().strip() sentence = re....
[ "noreply@github.com" ]
simplifies.noreply@github.com
e0d164e736df3ed0e6f03c71620dcbf0a8789fb7
04f4558aa0dc904b8d7c0ab79b80ec11c34f8ccf
/test/test_location.py
4ce0e9f4ed9b47c67f31162d08a8e279e3ada606
[ "Apache-2.0" ]
permissive
scubawhere/scubawhere-api-python-client
0fc23ffb97446b0bb0825c93528f954e7d642cf4
9f8578e251492c7667f785df7b7c9d66e71f5c8e
refs/heads/master
2020-12-24T11:10:34.880348
2016-11-08T12:20:45
2016-11-08T12:20:45
73,180,951
0
0
null
null
null
null
UTF-8
Python
false
false
1,515
py
# coding: utf-8 """ Scubawhere API Documentation This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API OpenAPI spec version: 1.0.0 ...
[ "bryan@iqwebcreations.com" ]
bryan@iqwebcreations.com
43158f8796950796f0d558dcb52a47ed2bad74f0
2d74104aaa132896a65ea0032951eee5d4c97840
/chemman/cmrpc/views.py
820777dbb08c39b7c039756ca4947de3c9b2655c
[]
no_license
Whitie/ChemManager
6e228e8713f9dfeca21adbd3e9a65c8871a822bc
d40792361527219514b1b4cc03718ea7c2a92777
refs/heads/master
2023-06-09T09:29:41.626087
2022-12-14T13:29:44
2022-12-14T13:29:44
189,994,861
0
0
null
2023-04-21T21:40:13
2019-06-03T11:47:23
Python
UTF-8
Python
false
false
3,068
py
# -*- coding: utf-8 -*- from django.utils.decorators import method_decorator from django.views import View from django.views.decorators.csrf import csrf_exempt from core.models.chems import Chemical from core.models.safety import ( EUHazardStatement, GHSPictogram, HazardStatement, PrecautionaryStatement ) from co...
[ "weimann.th@yahoo.com" ]
weimann.th@yahoo.com
4a5dbca0317c57ae9763eb218cadf18e330865dc
2c2962b6d08b43e6ae3030ef8e8e329f26f9b931
/Chapter09/demoSearchRows.py
9e0edc58824df590a3897b555f7df5da02c81ba8
[]
no_license
CodedQuen/Qt5-Python-GUI-Programming-Cookbook
4e46eacedc640f4efd3733f81fb5dc64bf0e171a
ef82e8ab7c1c509fc36a3e8f5f3493a49162bd44
refs/heads/master
2022-06-27T23:34:09.721893
2020-05-05T09:59:24
2020-05-05T09:59:24
261,416,784
0
0
null
null
null
null
UTF-8
Python
false
false
4,185
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'demoSearchRows.ui' # # Created by: PyQt5 UI code generator 5.6 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Dialog(object): def setupUi(self, Dialog): ...
[ "noreply@github.com" ]
CodedQuen.noreply@github.com
7450deb2566530e9c91e07dd7bc52f5df60e0079
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r9/Gen/DecFiles/options/14135005.py
73d3becad70a6b901df2ddd503d5c649f521d272
[]
no_license
Sally27/backup_cmtuser_full
34782102ed23c6335c48650a6eaa901137355d00
8924bebb935b96d438ce85b384cfc132d9af90f6
refs/heads/master
2020-05-21T09:27:04.370765
2018-12-12T14:41:07
2018-12-12T14:41:07
185,989,173
0
0
null
null
null
null
UTF-8
Python
false
false
900
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r9/Gen/DecFiles/options/14135005.py generated: Fri, 27 Mar 2015 16:10:02 # # Event Type: 14135005 # # ASCII decay Descriptor: [B_c+ -> ([B0]nos -> (J/psi(1S) -> mu+ mu- {,gamma} {,gamma}) (K*(892)0 -> K+ pi-), [B0]os -> (J/psi(1S) -> mu+ mu- {,gamma} {,gamma}) (K*(892)~0 -> K- p...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
08d312d7509cafa1d2d8a4516dfbdd0528cb0637
e68ceb84e46bb63bbb1bca0e8b28761e2f0bbe6e
/apps/wellknown/urls.py
3762b4a4ab26ffdca832c4d34e785d7f17938111
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
TransparentHealth/bluebutton-web-server
aa856eab2d552738cc37d36c9b7d6ade8d583fbb
c60814ab9c898dea7f88fcc436af2462d15c1313
refs/heads/develop
2022-09-21T05:27:50.387829
2022-08-24T16:10:14
2022-08-24T16:10:14
113,895,818
1
2
NOASSERTION
2019-12-19T20:08:26
2017-12-11T18:50:34
Python
UTF-8
Python
false
false
259
py
from django.conf.urls import url from .views import openid_configuration urlpatterns = [ # openid-configuration ----------------------------------- url(r'^openid-configuration$', openid_configuration, name='openid-configuration'), ]
[ "aviars@videntity.com" ]
aviars@videntity.com
f223eed80fec2d07d5b303f007ecb0df31de52f9
1c1784ebd9441e1242fd8acf57d45f736992f444
/blog/templatetags/blogconnector.py
b49553018cb85ecfe681cd745e59439eb8de919a
[]
no_license
avryhof/vryhof-net
11ec46346be805b83f007bd10f70790196d423dc
659a3847e1036e2709d50f2b947d5d3b8ecc6fa9
refs/heads/master
2023-03-16T01:54:02.354673
2023-02-27T22:39:25
2023-02-27T22:39:25
162,061,770
0
0
null
2023-09-05T09:40:31
2018-12-17T02:09:14
JavaScript
UTF-8
Python
false
false
1,758
py
""" @copyright Amos Vryhof """ from django import template from django.template.loader import get_template from django.urls import reverse from django.utils.safestring import mark_safe from blog.models import BlogPost, BlogCategory register = template.Library() @register.filter def paragraphs(html_code, number_of...
[ "amos@vryhofresearch.com" ]
amos@vryhofresearch.com
97d216f46152b6b78f1ff57f21aa45620f6d0c52
5a281cb78335e06c631181720546f6876005d4e5
/neutron-14.0.1/neutron/plugins/ml2/drivers/linuxbridge/agent/extension_drivers/qos_driver.py
93825202720074979320adea0e3439e0b5384ae0
[ "Apache-2.0" ]
permissive
scottwedge/OpenStack-Stein
d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8
7077d1f602031dace92916f14e36b124f474de15
refs/heads/master
2021-03-22T16:07:19.561504
2020-03-15T01:31:10
2020-03-15T01:31:10
247,380,811
0
0
Apache-2.0
2020-03-15T01:24:15
2020-03-15T01:24:15
null
UTF-8
Python
false
false
7,488
py
# Copyright 2016 OVH SAS # # 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 ...
[ "Wayne Gong@minbgong-winvm.cisco.com" ]
Wayne Gong@minbgong-winvm.cisco.com
a1defcf57d7efb3b619c8f28e1a329b077dad7b0
18ad97292b34a679b8dea8a85090541c5bbf6174
/mixedbasearithmetic.py
f1fa341f1a650e9cc5d7779c8f263d9b80e6dbc7
[]
no_license
Jyotirm0y/kattis
b941044e39dc36d169450480fc33fd33bd2e0f8e
2b9c1819ba29419bbea3db2e8ad7851155abbb3a
refs/heads/master
2023-05-31T21:11:38.350044
2021-06-12T08:21:47
2021-06-12T08:21:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
902
py
import sys l = 'abcdefghijklmnopqrstuvwxyz' u = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' d = '0123456789' for line in sys.stdin.readlines(): s = line.split() a = list(s[0][::-1]) i = int(s[1]) ans = [] for c in a: if c in d: x = int(c) + i%10 ans.append(str(x%10)) ...
[ "ainunnajib@gmail.com" ]
ainunnajib@gmail.com
6926c15c39489e9282d7fc52b4cd418fa57931a9
717171ed7a14ad60dd42d62fe0dd217a0c0c50fd
/19年7月/7.16/实例097:磁盘写入.py
662b189de1bc7ac5cfeb9f26c081390ec2700a59
[]
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
954
py
# 题目 从键盘输入一些字符,逐个把它们写到磁盘文件上,直到输入一个 # 为止。 # 程序分析 无。 if __name__ == '__main__': import sys from sys import stdout filename = input('请输入文件名:\n') fp = open(sys.path[0] + '\\' + filename,'w') str = input('请输入字符串:\n') while str != '#': fp.write(str) stdout.write(str+'\n') str =...
[ "1164166295@qq.com" ]
1164166295@qq.com
962f319fbdf3fdc44eb8a4a5967434a330cc3aac
7f24cc54e8a926663acfc33f88d4fb17768b829d
/python/75_Sort_Colors.py
d58e30bfa81a50a1cb0640660dd6b992a30ade83
[]
no_license
Moby5/myleetcode
7395327d40ec931c4d396225b0f4a5faf0cbc645
b5e09f24e8e96454dc99e20281e853fb9fcc85ed
refs/heads/master
2021-01-21T11:39:36.519799
2018-11-09T02:12:21
2018-11-09T02:12:21
91,751,180
2
0
null
null
null
null
UTF-8
Python
false
false
2,533
py
#!/usr/bin/env python # coding=utf-8 # Date: 2018-09-28 """ https://leetcode.com/problems/sort-colors/description/ 75. Sort Colors Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we w...
[ "moby5@foxmail.com" ]
moby5@foxmail.com
314ccb26b790956d629e1734e15953a75730522f
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/QueryJobsRequest.py
007e57b3a295750b402f9d6693ed3c6b8367cc46
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
3,170
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...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
7182d6fa3958283a46dfdb5b9f4b6c5eea17055d
12d314de520a8069164ebd056ca21578605a48f4
/面向對象/運算符重載/classMethod.py
e88004be0b588ba6d41ec0f1060d9f72796c1d2c
[]
no_license
kontai/python
a1c6dff9f3162b2e66805a807e9dc20b803d4b06
c5710880b885970e4161d88e52bf0842d0d3a4ce
refs/heads/master
2023-04-15T01:41:48.618654
2023-04-06T23:52:56
2023-04-06T23:52:56
188,057,236
0
0
null
2023-02-07T22:21:47
2019-05-22T14:38:40
Python
UTF-8
Python
false
false
970
py
# Copyright (c) 2019. # classMethod.py # class FirstClass: def setdata(self, value): self.data = value def display(self): print(self.data) class SecondClass(FirstClass): def display(self): print("Current data is %s" % self.data) class ThirdClass(SecondClass): def __init__...
[ "cho.kontai@gmail.com" ]
cho.kontai@gmail.com
6195f5c4f9d0d51234da3c76857de797afcd0ca3
6cf8975840708ab6022f33fec29ceedbc10e2cc9
/sect/core/quad_edge.py
ceae3d32571e8b2ef5b3dbb9a171e1fcd049b1eb
[ "MIT" ]
permissive
githubcrj/sect
b2c546fd6eec43479527ccc7f73a9b19c9870ddf
0a55fdf31d3f66da5d81086da2efdcb63f7ab975
refs/heads/master
2022-12-22T23:41:02.775353
2020-10-03T22:01:47
2020-10-03T22:01:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,464
py
from typing import (Iterable, List, Optional, Set) from reprit.base import generate_repr from robust.angular import (Orientation, orientation) from sect.hints import (Point, Segment) from .hints import Endp...
[ "azatibrakov@gmail.com" ]
azatibrakov@gmail.com
879ed84ec8798c30abc18402656083d4336de06c
e0980f704a573894350e285f66f4cf390837238e
/.history/news/models_20201124125359.py
cb7a5a4b527dead4072ade40b7327de90ed90354
[]
no_license
rucpata/WagtailWebsite
28008474ec779d12ef43bceb61827168274a8b61
5aa44f51592f49c9a708fc5515ad877c6a29dfd9
refs/heads/main
2023-02-09T15:30:02.133415
2021-01-05T14:55:45
2021-01-05T14:55:45
303,961,094
0
0
null
null
null
null
UTF-8
Python
false
false
205
py
from django.db import models from wagtail.contrib.forms.models import AbstractEmailForm # Create your models here. class NewsPage(AbstractEmailForm): tempalte ='news/news_page.html' leanding_pa
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
2703ee1c8b75b819fc4a10cda8b96f9cdeaa66a7
a723925cdd909cffa268f706effef9255a9b9359
/tests/chainer_tests/distributions_tests/test_kldivergence.py
566113a23ba0744d19eac3314472d251afa8c977
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
soskek/chainer
505be4e3c000192ba13c805521ce00d90c806920
ac8f97128011d029a88a58373cdab9e6890f6e54
refs/heads/master
2021-01-11T11:27:27.118331
2018-07-13T13:56:35
2018-07-13T13:56:35
72,657,278
2
0
null
2016-11-02T16:07:19
2016-11-02T16:07:19
null
UTF-8
Python
false
false
3,177
py
import unittest import chainer from chainer.backends import cuda from chainer import distributions from chainer import testing from chainer.testing import attr import numpy @testing.parameterize(*testing.product({ 'shape': [(3, 2), (1,)], 'is_variable': [True, False], })) @testing.fix_random() class TestKLDi...
[ "yoshikawa@preferred.jp" ]
yoshikawa@preferred.jp
f4340e66c94484e3cf1b65adf6d4fa40c90070b6
7950c4faf15ec1dc217391d839ddc21efd174ede
/explore/2021/january/Find_a_Corresponding_Node_of_a_Binary_Tree_in_a_Clone_of_That_Tree.4.py
0e1b09179473cd1f06451e64a4d803d6adbf5eff
[]
no_license
lixiang2017/leetcode
f462ecd269c7157aa4f5854f8c1da97ca5375e39
f93380721b8383817fe2b0d728deca1321c9ef45
refs/heads/master
2023-08-25T02:56:58.918792
2023-08-22T16:43:36
2023-08-22T16:43:36
153,090,613
5
0
null
null
null
null
UTF-8
Python
false
false
999
py
''' Follow up: Solve the problem if repeated values on the tree are allowed. target.val is useless, and we should compare target node (the pointer) with one node in original. DFS You are here! Your runtime beats 78.18 % of python submissions. You are here! Your memory usage beats 52.12 % of python submissions. ''' #...
[ "838255715@qq.com" ]
838255715@qq.com
93f7eb7a9d50380e8022dafd87844928feedc2eb
21a561ec0d40554a43dc5a6dfab0f4f62ddb615d
/canteen/base/protocol.py
caaffbcc08dc9ae1d138fa67bce060ac55455e35
[ "MIT" ]
permissive
mindis/canteen
2745a0ebec696d1fbfcc6c4c69582711a4a7e8e6
a0cf38333417e879712394800a49eb9d0450f96f
refs/heads/master
2020-12-25T19:15:21.612088
2014-02-24T11:29:59
2014-02-24T11:29:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,166
py
# -*- coding: utf-8 -*- ''' canteen protocol base ~~~~~~~~~~~~~~~~~~~~~ :author: Sam Gammon <sam@keen.io> :copyright: (c) Keen IO, 2013 :license: This software makes use of the MIT Open Source License. A copy of this license is included as ``LICENSE.md`` in the root of the project. ...
[ "sam@keen.io" ]
sam@keen.io
c24462385bbc837077a808d98be48b87cb966efe
f55cf6a2402b7e6dd355d1709a311da6760166e4
/tetris.py
a79eadd075f771eec75732af62a17da219ddcd5f
[]
no_license
oberziner/XMMS-CLI-Client
5a6ffdff0e7667a928f40834ec548ba8b2768832
bd63e658e5a3d33ab87f77a87c95806a7484da89
refs/heads/master
2016-09-05T17:46:58.214208
2012-01-31T05:24:18
2012-01-31T05:24:18
3,565,905
0
0
null
null
null
null
UTF-8
Python
false
false
2,254
py
import curses from random import randrange curses.initscr() curses.curs_set(0) win = curses.newwin(18,18,0,0) # Create window and draw border win.keypad(1) win.nodelay(1) f = [ [0x315,0x4cd,0x13f,0xc47],[0x31d,0x4cf,0x137,0xc45],[0x374,0x374,0x374,0x374],[0x741,0x51c,0xdc3,0xf34], [0xfc1,0x73c,0x543,0xd14],[0x311,0...
[ "=" ]
=
2a5513254bd8430c62a765d85438041cd498c674
04796db16524c7572525e4e6e8a6c0bec2a5738d
/sapp/sarif.py
1a51cb66e2beb8454a702db357829c5ae86a97f5
[ "MIT" ]
permissive
0xedward/sapp
cdfd50a8a0cd6ec0646661d90ae966917f0885ca
696a5af0f324ba6140f127ca4956ba071f686ae1
refs/heads/main
2023-08-29T07:19:09.162711
2021-10-21T18:50:12
2021-10-21T18:50:12
419,840,040
0
0
null
null
null
null
UTF-8
Python
false
false
2,703
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # pyre-strict import json from dataclasses import dataclass, field from json import JSONEncoder from typing import Set, Dict, Union, List, Tu...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
5afd0c956d60993cf23429fe3cc6704a4afecdcd
1b52d9f238cbc2f3c786f6df664012954171a1ca
/export.py
e23ff1972f621e11d23158c316a09cefc31c4995
[ "Apache-2.0" ]
permissive
foamliu/MobileFaceNet-Grayscale
0bb5901e09e59153f72bc508482a8e5f11ebbac3
9f84e3191539eb7c1f71b54816d686c2ed058994
refs/heads/master
2022-11-26T19:48:28.391455
2019-12-10T02:51:04
2019-12-10T02:51:04
225,755,611
2
1
Apache-2.0
2022-11-15T12:54:20
2019-12-04T01:53:15
Python
UTF-8
Python
false
false
958
py
import time from mobilefacenet import MobileFaceNet import torch if __name__ == '__main__': checkpoint = 'BEST_checkpoint.tar' print('loading {}...'.format(checkpoint)) start = time.time() checkpoint = torch.load(checkpoint) print('elapsed {} sec'.format(time.time() - start)) model = checkpoint...
[ "liuyang12@focusmedia.cn" ]
liuyang12@focusmedia.cn
b427d5d5e9e7d51245334d3c5db76dcee1d2570e
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_transition.py
b86f9cb7a37ef25114e3f5c1743be74612591bfb
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
338
py
#calss header class _TRANSITION(): def __init__(self,): self.name = "TRANSITION" self.definitions = [u'to start living as a person of a different gender: '] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.specie = 'verbs' def run(self, obj1 = [], obj2 = []): ret...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
95dd8f784d6402d0a41628d30759adc5117c61ea
320cfdb0d587ae3e8fc5317011a9698237d8869b
/tutorial/7/down_test.py
2c75eef935026004857360a53a0fb26938260979
[]
no_license
kangheeyong/STUDY-microservice-architecture
78d6a8ecc8560ac179907603cc2abf8b7828207b
62548258e0d0d719a3df012f982e8a1ed828f625
refs/heads/master
2021-02-19T18:20:47.867917
2020-06-18T06:58:45
2020-06-18T06:58:45
245,317,646
0
0
null
null
null
null
UTF-8
Python
false
false
207
py
import time from Feynman.cloud import Google_drive if __name__ == '__main__': a = Google_drive() while True: a.download(folder='test', path='tmp') time.sleep(30)
[ "cagojeiger@naver.com" ]
cagojeiger@naver.com
02f2b4d8e9b7b0098c1c72a55fd7d70d8e8d5412
a7bc6a7c45c58ac08e295b77d4a19769bfd97463
/Summary_generation/gpt2_summary/train_v1.py
006d8b36729ec28b424f396f12e9f18bd62c6d9b
[]
no_license
pnageshkar/NLP_pytorch_project
cc2a3fb8a41e7d2d8a794561e1b9a971b36f2cfa
57d2ac65a0cf21dca43a9329f6c25e6a23854e15
refs/heads/master
2022-11-14T14:59:03.099067
2020-07-09T09:05:10
2020-07-09T09:05:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,256
py
# -*- coding: utf-8 -*- # @Time    : 2020/7/7 13:56 # @Author  : xiaolu # @FileName: train.py # @Software: PyCharm import torch import os from transformers import BertTokenizer from transformers.modeling_gpt2 import GPT2LMHeadModel from torch.utils.data import DataLoader from transformers import modeling_gpt2 from dat...
[ "luxiaonlp@163.com" ]
luxiaonlp@163.com
1139eec524b1439cdfc5b4c1e09fd9778e1417cf
7d096568677660790479d87c22b47aae838ef96b
/stubs/System/Windows/Forms/__init___parts/SplitterCancelEventArgs.pyi
60d71c880ed74b81303ed89bf679d132edc8244e
[ "MIT" ]
permissive
NISystemsEngineering/rfmx-pythonnet
30adbdd5660b0d755957f35b68a4c2f60065800c
cd4f90a88a37ed043df880972cb55dfe18883bb7
refs/heads/master
2023-02-04T00:39:41.107043
2023-02-01T21:58:50
2023-02-01T21:58:50
191,603,578
7
5
MIT
2023-02-01T21:58:52
2019-06-12T16:02:32
Python
UTF-8
Python
false
false
1,487
pyi
class SplitterCancelEventArgs(CancelEventArgs): """ Provides data for splitter events. SplitterCancelEventArgs(mouseCursorX: int,mouseCursorY: int,splitX: int,splitY: int) """ @staticmethod def __new__(self,mouseCursorX,mouseCursorY,splitX,splitY): """ __new__(cls: type,mouseCursorX: int,mouseCurs...
[ "sean.moore@ni.com" ]
sean.moore@ni.com
39979fcc7f0be6615dd3fa9a56f800fc91cb3482
40eba089155719709ac87258d5187b2e3ad203f5
/Detector/DetId.py
02e485a8b8c306fbb542ef0b2858dad440cced29
[]
no_license
DryRun/Utilities
6d61d1caac23246765eebb4700f3c3fd9bfb6b23
aa11a90bc439d87896d1d679023ff7dc99217464
refs/heads/master
2020-12-31T00:41:08.349735
2015-12-10T12:13:59
2015-12-10T12:13:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,319
py
#!/usr/bin/python # # HCAL DetId Class # from Id import Id from Constants import * class DetId(Id): """ """ def __init__(self, **d): """ """ self.iphi = d["iphi"] self.ieta = d["ieta"] self.depth = d["depth"] self.subdetName = d["subdetName"] self.subdet = SUBDET_NAME.index(self.subdetName) # s...
[ "vdkhristenko1991@gmail.com" ]
vdkhristenko1991@gmail.com
8632c676eddac499d719e8722345f007774f34a3
89a90707983bdd1ae253f7c59cd4b7543c9eda7e
/programming_python/Integrate/Embed/prioredition-2x/Inventory/order-string.py
51f7bd0ba32b19150a6b44fda7f9d650fc72e87b
[]
no_license
timothyshull/python_reference_code
692a7c29608cadfd46a6cc409a000023e95b9458
f3e2205dd070fd3210316f5f470d371950945028
refs/heads/master
2021-01-22T20:44:07.018811
2017-03-17T19:17:22
2017-03-17T19:17:22
85,346,735
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
#!/usr/local/bin/python # to test the embedded-code script, without the enclosing C app import traceback # stack dump on errors import inventory # inventory, buyers from ordersfile import orders # [(product, quant, buyer)] names = {} # namespace dict script = open('validate1.py', 'r').read() # load co...
[ "timothyshull@gmail.com" ]
timothyshull@gmail.com
e4dde6e4f065457bf78053f61ce1bcedf51b8558
a9b8f84c55aa64d4721de11e34e6fc300453be1b
/public/packages/pymongo/v25/pymongo/message.py
74c537762d3ceb9c95c5733d133c98cd68ff2fd6
[]
no_license
xuning992/tfty
f17273db407bb5ca87f583b114a42eb8e83d67fc
20785621b933d2d6bdc293e953710faef4268bf6
refs/heads/master
2022-12-13T22:39:14.696326
2017-11-19T15:23:11
2017-11-19T15:23:11
111,306,251
0
0
null
2022-07-05T21:08:37
2017-11-19T15:11:40
Python
UTF-8
Python
false
false
5,973
py
# Copyright 2009-2012 10gen, Inc. # # 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,...
[ "xuning992@163.com" ]
xuning992@163.com
7982102839551b3124befa172a703f3b19674042
1b5f653955779f45e78ca6dda925518779d09e8f
/submissions/1804.py
00adb2bd932e6fc66d5cb4819ae9fed24142b00e
[]
no_license
LeonardoSaid/uri-py-solutions
ad285f552934ead54ad2410e23113e84b0724f72
43c10c0e99e99d22b4b5ae2871e5d897f8823b42
refs/heads/master
2020-08-11T00:28:48.661578
2020-04-23T20:21:39
2020-04-23T20:21:39
214,453,627
0
0
null
null
null
null
UTF-8
Python
false
false
733
py
from sys import stdin class ftree: def __init__(self, n): self.__ft = [0] * (n + 1) def rsq(self, b): sum = 0 while b > 0: sum += self.__ft[b] b -= (b & (-b)) return sum def adj(self, k, v): while k < len(self.__ft): sel...
[ "noreply@github.com" ]
LeonardoSaid.noreply@github.com
bfa53ee5815c48f37ec10aa3557ed99766af798e
8d104083893064b498293cd05d325dc35546f892
/TMO-EJ4/problems/tsp/meta.py
3416d3823d1380c77e3083e736857fce1183faf9
[]
no_license
jerocc002/Master_DataScience-BigData
b7575251ea91ba6efbf4dcd7e903d432bce3a434
ddc8803fffcfb0ae569d3b9cc7452f3e0abba6d4
refs/heads/master
2020-04-05T11:47:41.469594
2018-01-18T19:03:59
2018-01-18T19:03:59
81,242,715
1
0
null
null
null
null
UTF-8
Python
false
false
1,035
py
from optimization.neighborhood import VNS from optimization.tabu import TabuSearch from problems.tsp.ils_tsp import ILSTSP from problems.tsp.tsp_problem import TSPProblem from problems.tsp.tsplib import get_cities_tup if __name__ == '__main__': def improve(caller): current = [cities[i] for i in caller.best...
[ "=" ]
=
9a563fab5d065b7fc807f1141edf645d659e62f7
1b41366660f7a4da5ee0315d24b48c7b4482a254
/mp2/sharedctypes.py
1f637d340a505b772818b7b2fe594cb4fa2d6761
[]
no_license
hghazal/multiprocessing2
d4caa436056cd7f756ad32a7a188fca4aee3ffaa
de0e79f14341189ebaad5d1fea550f75d3e7316e
refs/heads/master
2020-12-25T07:13:54.352088
2012-04-02T17:13:18
2012-04-02T17:13:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,560
py
# # Module which supports allocation of ctypes objects from shared memory # # multiprocessing/sharedctypes.py # # Copyright (c) 2006-2008, R Oudkerk # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are me...
[ "ask@celeryproject.org" ]
ask@celeryproject.org
4f73385fd03f4b3bf9a88da0b494c7a48ea61e44
4e6d04eb38f31086e7ffd591f031740fba205339
/data/python/3057.py
1fc553f3f646126f85cece01e1092dbae9b3393d
[]
no_license
devsagul/HanabiHack
d0b739a67ce4733b1f972200d4f16fffad277f98
e67b23fc4eb3e50b722a28336f93163946912bac
refs/heads/master
2020-06-12T18:36:56.278958
2019-06-30T12:48:06
2019-06-30T12:48:06
194,389,096
0
1
null
2019-06-29T22:39:36
2019-06-29T09:40:28
C
UTF-8
Python
false
false
411
py
#!/usr/bin/env python import unittest from compiling import compiled class CompiledTestCase(unittest.TestCase): def test_compiled_for_c(self): self.assertEqual(compiled('.c'), '.o') self.assertEqual(compiled('test.c'), 'test.o') self.assertEqual(compiled('testc'), 'testc') self.a...
[ "semen.guliaev@gmail.com" ]
semen.guliaev@gmail.com
3e7895c8ecfc98d8b64b68feb06f56c336f5f06e
53fab060fa262e5d5026e0807d93c75fb81e67b9
/gaussiana/ch3_2019_08_28_17_30_31_025424.py
c0ae9c563e797cedbb561e634aabf647e9a2ceb0
[]
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
137
py
import math def calcula_gaussiana(x,mi,sigma): expo=(-0.5)*((x-mi)/sigma)**2 f=(1/(sigma*sqrt(2*math.pi))*exp(expo) return f
[ "you@example.com" ]
you@example.com
11ce07bc4e4863e7a55d940a4bc0cf7dccf151c5
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_6404600001200128_0/Python/zdan/A.py
504d62719973b676a0cfcb28dd46388a000ff07c
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
916
py
import sys import numpy as np def solve(case, N, M): y = 0 prev = M[0] for m in M: if m < prev: y += prev - m prev = m max_speed = 0 prev = M[0] for m in M: if m < prev: max_speed = max(max_speed, prev - m) prev = m ...
[ "eewestman@gmail.com" ]
eewestman@gmail.com
607459a2d2f942fae2ad76acdf04c9595fb46eb0
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_beaning.py
faa068bd7b37b6d6d9418aa061b816f8b66fd8e4
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
from xai.brain.wordbase.nouns._bean import _BEAN #calss header class _BEANING(_BEAN, ): def __init__(self,): _BEAN.__init__(self) self.name = "BEANING" self.specie = 'nouns' self.basic = "bean" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
ba6b24c14e56b8676a0c8b6797d5961f98a7be3a
d35167f7ab29813d926bd702fa652090556befdf
/generated/test_sweetice_Deep_reinforcement_learning_with_pytorch.py
ce13e58bb16b334085a0422a9b474b16ea0271a1
[]
no_license
jansel/pytorch-jit-paritybench
65e5311d43daf5065beac52a68488ce188199fa8
7e55a422588c1d1e00f35a3d3a3ff896cce59e18
refs/heads/master
2023-08-12T04:43:16.669114
2023-06-08T17:36:32
2023-06-08T17:36:32
270,464,378
35
15
null
2023-06-08T17:36:34
2020-06-07T23:42:50
Python
UTF-8
Python
false
false
7,359
py
import sys _module = sys.modules[__name__] del sys Sarsa = _module gridworld = _module DQN = _module DQN_mountain_car_v1 = _module naiveDQN = _module PolicyGradient = _module REINFORCE = _module REINFORCE_with_Baseline = _module Run_Model = _module A2C = _module multiprocessing_env = _module DDPG = _module PPO2 = _modu...
[ "jansel@fb.com" ]
jansel@fb.com
793798466ba977a757b03eaa664ebc12d3d450f5
d93fe0484fc3b32c8fd9b33cc66cfd636a148ec4
/AtCoder/ARC-E/094probE.py
ef73fbd2b6daaad3ea5126d68209998182fd2b1c
[]
no_license
wattaihei/ProgrammingContest
0d34f42f60fa6693e04c933c978527ffaddceda7
c26de8d42790651aaee56df0956e0b206d1cceb4
refs/heads/master
2023-04-22T19:43:43.394907
2021-05-02T13:05:21
2021-05-02T13:05:21
264,400,706
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
import sys input = sys.stdin.readline N = int(input()) AB = [list(map(int, input().split())) for _ in range(N)] k = 10**15 s = 0 for i in range(N): a, b = AB[i] s += b if a > b: k = min(k, b) if k == 10**15: print(0) else: print(s-k)
[ "wattaihei.rapyuta@gmail.com" ]
wattaihei.rapyuta@gmail.com
f558dfb5b473d72dd0da0433d24c82520246edad
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Spacy/source2.7/spacy/tests/parser/test_space_attachment.py
1ee0d7584e46c46066c65a79e9b8b78d5d2a0f9e
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
2,785
py
# coding: utf-8 from __future__ import unicode_literals from ...tokens.doc import Doc from ...attrs import HEAD from ..util import get_doc, apply_transition_sequence import pytest def test_parser_space_attachment(en_tokenizer): text = "This is a test.\nTo ensure spaces are attached well." heads = [1, 0, 1,...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
97e623c4c62150cdfb670512f6f01f9937453432
569b8b171157e156761dfc8de031a1345dc75f12
/get_hierarchystats.py
118bff20514cdbade35f21258295da1ed1cddf95
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
coleslaw481/ud985
adc02614da3b65a1c4657adc74485209d6d470ca
4393184080b9876af4b6c8779e2c64f144422cc0
refs/heads/master
2021-02-19T10:32:32.799707
2020-03-25T16:45:07
2020-03-25T16:45:07
245,304,409
0
0
null
null
null
null
UTF-8
Python
false
false
6,252
py
#!/usr/bin/env python import os import sys import argparse import logging import networkx import numpy as np logger = logging.getLogger(__name__) LOG_FORMAT = "%(asctime)-15s %(levelname)s %(relativeCreated)dms " \ "%(filename)s::%(funcName)s():%(lineno)d %(message)s" def _parse_arguments(desc, args...
[ "churas.camera@gmail.com" ]
churas.camera@gmail.com
c6c4952d86a8169686267875981eb4e234c1fa5d
de9b8b7192a0a81e9249823bb2b86f0b7e452863
/.history/main_20171106221642.py
655772b8d3df99322e592169fc2f80c15094855d
[ "MIT" ]
permissive
reecebenson/uwe-dadsa-tennis-a
f5eaeb1b96d4e61f29279514e68eeea8ad6533db
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
refs/heads/master
2023-07-08T16:13:23.963348
2017-11-30T12:07:01
2017-11-30T12:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
# DADSA - Assignment 1 # Reece Benson from classes import Menu as Menu from classes import Handler as Handler class App(): # Define the variables we will be using debug = True handler = None # Define all of the properties we will need to use def __init__(self): # Load our handler ...
[ "me@reecebenson.me" ]
me@reecebenson.me
a660923cfd4c1dfe940aa264445c0b56d2eff5e1
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_109/ch34_2019_09_02_20_10_44_069980.py
50fc36fa7d80c3a412f6bfce8dc70432e4df4247
[]
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
389
py
x = float(input('Insira o valor do seu depósito: ')) y = float(input('Insira o valor da taxa de rendimento em porcentagem: ')) z = y/100 n = 0 lista_valores = [] while n < 24: valor = x*(1+z) lista_valores.append(valor) x = valor n += 1 lucro = lista_valores[23] - lista_valores[0] print(lista_valore...
[ "you@example.com" ]
you@example.com
629d33e69bd3450a697334266e8e485430a9ad93
6f866eb49d0b67f0bbbf35c34cebe2babe2f8719
/app/utilities/supplementary_data_parser.py
59fac29a71fc989027aa0540b5859756aaab0ec3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
ONSdigital/eq-questionnaire-runner
681b0d081f9cff0ee4ae3017ecc61f7390d553bf
87e7364c4d54fee99e6a5e96649123f11c4b53f1
refs/heads/main
2023-09-01T21:59:56.733363
2023-08-31T15:07:55
2023-08-31T15:07:55
219,752,509
12
18
MIT
2023-09-14T11:37:31
2019-11-05T13:32:18
Python
UTF-8
Python
false
false
2,923
py
from typing import Mapping from marshmallow import ( INCLUDE, Schema, ValidationError, fields, validate, validates_schema, ) from app.authentication.auth_payload_versions import SupplementaryDataSchemaVersion from app.utilities.metadata_parser_v2 import VALIDATORS, StripWhitespaceMixin class...
[ "noreply@github.com" ]
ONSdigital.noreply@github.com
bc2ad353b3b77f3c9fa4f8f79f0d5906cd1ffaa2
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/202.py
02221d4ca84abb4b76beea3e17ee4fe2fb439f1d
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,581
py
def generatePalindromes(currentPalindrome, current_sum): if len(currentPalindrome) == 0 or currentPalindrome[0] == 0: results = [] else: results = [currentPalindrome] if len(currentPalindrome) > 55: return [] for i in range(3): if current_sum + 2*i*i > 10: br...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
ea9a8e1f6b76ad4a123f960c62a5764afaa563c0
71eb367210e8ffd3b4964a8c99e3ac6f2920fdbb
/wedding/migrations/0002_invitation_last_viewed.py
e3900fd6c6200c731ac851478863d5f8e175b22f
[ "MIT" ]
permissive
jsayles/wedding
392771dc894fb311414b2d34ceb4319318d8eefb
242d28d0271d58909b2c5ff5457d909efaecd3c0
refs/heads/master
2020-04-18T01:26:57.433729
2015-09-04T15:18:03
2015-09-04T15:18:03
28,720,827
0
0
null
null
null
null
UTF-8
Python
false
false
459
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('wedding', '0001_initial'), ] operations = [ migrations.AddField( model_name='invitation', name='last...
[ "jsayles@gmail.com" ]
jsayles@gmail.com
361b3e869b7c7b9b6e88edaee9f3c8bac8a93ed7
27a424ce05c39cbff3506fe2f87b5717e22e3007
/pytype/tools/traces/source_test.py
bf2ad37a31e221f104ec7b9d3c68717b1b452ff4
[ "Apache-2.0", "MIT" ]
permissive
bsolomon1124/pytype
82937bb702402a75ece041885417a3d61713aa1c
22e3687752d1c1164f5a29c11fcf17019c9dc511
refs/heads/master
2023-07-12T08:34:02.532293
2020-05-19T00:31:39
2020-05-19T00:31:39
250,900,119
0
0
NOASSERTION
2020-03-28T21:47:45
2020-03-28T21:47:44
null
UTF-8
Python
false
false
4,152
py
# coding=utf-8 # Lint as: python2, python3 """Tests for traces.source.""" from __future__ import print_function from pytype.tools.traces import source import six import unittest class _FakeOpcode(object): def __init__(self, name, line): self.name = name self.line = line class _FakeTrace(source.AbstractT...
[ "rechen@google.com" ]
rechen@google.com
a813ba1ff2aaa0b36850328ca25f819aa1a5cd04
9dbb0dbfb0278db92b62b260db5ba00de683a2f8
/basic41.py
1d895f8eacb817bacbac6e6e5de6b067b21ac7f2
[]
no_license
kongruksiamza/python-opencv
9775e31472671307f4fe7dd78bdc59a2b90d8b6c
9b91aa884ab2d27546d3fdac53d43d55260ddfeb
refs/heads/main
2023-08-04T04:00:23.299059
2023-07-23T16:20:32
2023-07-23T16:20:32
361,009,775
8
10
null
null
null
null
UTF-8
Python
false
false
1,137
py
#Motion Tracker import cv2 cap = cv2.VideoCapture("image/Walking.mp4") check , frame1 = cap.read() check , frame2 = cap.read() while (cap.isOpened()): if check == True : motiondiff= cv2.absdiff(frame1,frame2) gray=cv2.cvtColor(motiondiff,cv2.COLOR_BGR2GRAY) blur = cv2.GaussianBlur(...
[ "noreply@github.com" ]
kongruksiamza.noreply@github.com
2422152afcc50578c4c4137dd5312d7a7b25a647
ec6866404f635dfac510487c436fc340ddbff41d
/backend/home/migrations/0002_load_initial_data.py
ba561b70197713a2f63304fd3a9757be36c48cec
[]
no_license
crowdbotics-apps/tst-daniel-real-wor-20674
df433982f0ff8c3c5f47efa4fcbb220b7d05c208
b0b3e520c85434a6b65c2352e777b4bec4d7f995
refs/heads/master
2022-12-26T02:50:03.768410
2020-10-09T10:57:39
2020-10-09T10:57:39
298,601,513
0
1
null
2020-10-09T10:34:28
2020-09-25T14:49:34
JavaScript
UTF-8
Python
false
false
1,336
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "tst-daniel-real-world" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "Ho...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
de894077aa86d3ecf28e698a5b9d943149603c03
cbda89443b351bb2047180dad4e300c13dc3df7f
/Crystals/Morpurgo_all_atoms_Polbinds_qsplit_fittedscreens/Jobs_chelpg/C60/C60_anion_neut_inner2_outer0/C60_anion_neut_inner2_outer0.py
9bd3138abcef557cd371fed8c832d13b19e9c9db
[]
no_license
sheridanfew/pythonpolarisation
080f52979f98d26360a46412a10c8e3f51ee4549
178e2684e9a239a8e60af5f7b1eb414ac5f31e92
refs/heads/master
2021-07-10T01:07:40.978790
2021-03-11T16:56:37
2021-03-11T16:56:37
96,101,351
0
0
null
2017-07-03T13:37:06
2017-07-03T10:54:52
null
UTF-8
Python
false
false
7,298
py
import sys sys.path.append('../../../../../') from BasicElements import * from BasicElements.Register import GetRegister from BasicElements.MoleculeFactory import ReadMoleculeType from BasicElements.MoleculeFactory import GetMolecule from BasicElements.Crystal import * from Polarizability.GetDipoles import get_dipoles,...
[ "sheridan.few@gmail.com" ]
sheridan.few@gmail.com
0eb7a28630ee6e20a1ee10be6c18f96cabc5c037
2dfb7ab05cfd5c6b0b6cbd139270faa1f130d641
/client.py
4f8df55205aaf32ef843a1ddc75d02c96bc5f8d9
[]
no_license
antikytheraton/beowulf_cluster
041ce95214d7e58fde0d5b6b19c7b1db82db584d
c52aaa23a438fe69ecb1481332b82544597ff540
refs/heads/master
2021-07-12T03:39:00.953649
2017-10-16T15:57:58
2017-10-16T15:57:58
107,150,288
0
0
null
null
null
null
UTF-8
Python
false
false
717
py
import json import sys if int(sys.argv[1])==1: import urllib2 try: import socks except: print "you need to install PySocks for Tor use" import socket socks.set_default_proxy(socks.SOCKS5, "127.0.0.1", 9050) socket.socket = socks.socksocket #my_ip = urllib2.urlopen('http://ic...
[ "binauralvoice@gmail.com" ]
binauralvoice@gmail.com
f2dbae8bd16da2b8635091db06ad6df2ba898cb6
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Practical_Numerical_Methods_with_Python_Barba/CFD_Codes/Twelve_Steps/plots/plot_navier_stokes.py
ee740678bbdcf23a80c2d0ecd4ca0db17a733cf4
[ "CC-BY-4.0", "CC-BY-3.0", "MIT" ]
permissive
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
4,537
py
""" Author: Rohan Date: 20/03/16 """ # Standard imports import numpy as np from matplotlib import pyplot as plt # Project imports from CFD_Projects.Twelve_Steps.models.navier_stokes_model import NavierStokes from CFD_Projects.Twelve_Steps.plots.plot_functions import Plot def plot_1d_convection(): """ Functio...
[ "me@yomama.com" ]
me@yomama.com
fab3d22b20892734e51ffda85cb7f3c45a1a839b
53e0b0616ece7867b1d37d755fd034e5b3d5ebe5
/Medium/784. Letter Case Permutation/solution (2).py
6176e3e4396dffaa33a4f002aa4fee225fa10407
[ "MIT" ]
permissive
czs108/LeetCode-Solutions
a7a29b90ad330d8d4bd73b5d0d243dc5b4121bc9
fc4ef8aed90614e2e4ad39fa1c9eec5881b7b5f5
refs/heads/master
2023-03-03T09:55:51.045837
2023-02-20T23:39:15
2023-02-20T23:39:15
237,709,633
4
1
null
null
null
null
UTF-8
Python
false
false
728
py
# 784. Letter Case Permutation # Runtime: 91 ms, faster than 19.56% of Python3 online submissions for Letter Case Permutation. # Memory Usage: 15.6 MB, less than 16.05% of Python3 online submissions for Letter Case Permutation. class Solution: # Iteration def letterCasePermutation(self, s: str) -> list[str]...
[ "chenzs108@outlook.com" ]
chenzs108@outlook.com
93cc84c233a08f8dc2f45757d752b73ac52bb517
10ee894d69a89b3735d40b1549886de058bcef56
/agc030/B.py
2f21a1852d9f5cf8a5115c8398fe08dc7447fe9d
[]
no_license
kusano/atcoder
bc518250425b478e9363ef17b840213a4961d278
22e41e47d9b72c110e3e9a7e0d3edf679ec4f0bd
refs/heads/master
2021-06-26T17:18:37.092261
2020-12-05T07:37:41
2020-12-05T07:37:41
171,328,069
0
0
null
null
null
null
UTF-8
Python
false
false
414
py
L, N = map(int, raw_input().split()) X = [input() for _ in range(N)] def f(T): n = len(T) S = [0]*(2*n+1) for i in range(2*n): S[i+1] = S[i]+T[i%n] a = S[n-1] ans = a for i in range(n-2): a += 2*(S[2*n-i*2-3]-S[n-i-1]) a -= 2*(S[2*n-i-2]-S[2*n-i*2-2]) a -= T[n-i-2] ans = max(ans, a) r...
[ "kusano@users.noreply.github.com" ]
kusano@users.noreply.github.com