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
59b9d1dfe588f3f31f5c0eb0ad2bbb1ef8536460
c9125ccdcb7acffb29948dcabafec307cf69d763
/leetcode/按序号刷题/21合并两个有序链表.py
547866c5b7e96b28f9371541583f875837037e4c
[]
no_license
FishRedLeaf/my_code
c26115be145918309808b9113fbc0ee8c8baaef9
d4215451f1cad3ab6dfb4b082f4fd694fe0d31b4
refs/heads/master
2021-06-21T13:34:32.807795
2021-03-04T16:29:45
2021-03-04T16:29:45
194,763,400
3
1
null
null
null
null
UTF-8
Python
false
false
837
py
# -*- coding: utf-8 -*- """ Created on Tue Mar 19 11:24:45 2019 @author: 鱼红叶 将两个有序链表合并为一个新的有序链表并返回。新链表是通过拼接给定的两个链表的所有节点组成的。 示例: 输入:1->2->4, 1->3->4 输出:1->1->2->3->4->4 """ # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = Non...
[ "noreply@github.com" ]
FishRedLeaf.noreply@github.com
219825b720ce2e9b41757e4e51bc95679758ef4d
0d72b32afd0447f18c75b536e8a4f1b74137635b
/duka/core/csv_dumper.py
bd766586bc40b55f6b55cd3bbd791d70a65d0fd9
[ "MIT" ]
permissive
123mitnik/duka
8c28ee9e0b38c4445ab45524f1b852abfff4e51a
50b23bf52cdcb31031228e358122b04248e1554a
refs/heads/master
2020-05-29T12:15:03.152786
2016-04-16T12:46:16
2016-04-16T12:46:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
748
py
import csv from .utils import Logger TEMPLATE_FILE_NAME = "{}_{}_{:02d}_{:02d}.csv" def dump(currency, day, ticks): file_name = TEMPLATE_FILE_NAME.format(currency, day.year, day.month, day.day) Logger.info("Writing {0}".format(file_name)) with open(file_name, 'w') as csv_file: fieldnames = ['tim...
[ "giuse88@gmail.com" ]
giuse88@gmail.com
f1dc2193d0637531e5b43466da84472670a02498
fbc367b3de219d25cc8ba33ea7635acbedd11ba2
/p008.py
1ffcd80179452a7790c7b1ea3f30747498dfd996
[]
no_license
rafaelcastrocouto/euler
5a1832695314f63d2faf8cb8b52b7706b555c241
e0c6e3fb76607fc0315e9c427153d10f94e7e1b2
refs/heads/main
2023-01-09T13:54:31.747401
2020-11-09T05:11:28
2020-11-09T05:11:28
311,418,941
2
0
null
2020-11-09T17:46:11
2020-11-09T17:46:10
null
UTF-8
Python
false
false
1,241
py
import math given = """ 73167176531330624919225119674426574742355349194934 96983520312774506326239578318016984801869478851843 85861560789112949495459501737958331952853208805511 12540698747158523863050715693290963295227443043557 66896648950445244523161731856403098711121722383113 6222989342338030813533627661428280644448...
[ "bluepenguin@gmail.com" ]
bluepenguin@gmail.com
b41102c1dde4078fc0cadfeb05c2bf06ab3f73fc
ad6f20ca36dc65e34b43c69db66f383554718fed
/dp/practice_knapsack.py
432a3c118b4f864f5380ea54e47b41f4bcbccbc9
[]
no_license
atulanandnitt/questionsBank
3df734c7389959801ab6447c0959c85f1013dfb8
477accc02366b5c4507e14d2d54850a56947c91b
refs/heads/master
2021-06-11T21:39:24.682159
2021-05-06T17:54:18
2021-05-06T17:54:18
175,861,522
0
1
null
2020-05-02T09:26:25
2019-03-15T17:10:06
Python
UTF-8
Python
false
false
289
py
#knapshak def knapsack(wt,val,totalWt): totalVal=[0 for item in range(len(totalWt)) for i in range(totalWt): for j in range(len(wt)): if totalVal[] return totalVal wt=[1,3,4,5] val=[1,4,5,7] totalWt=10 print(knapsack(wt,val,totalWt))
[ "atul.anand.nitt@gmail.com" ]
atul.anand.nitt@gmail.com
1b55c3a7aa3cf673debf5c5759cd2ac0f2c07032
cc3a436bdbd82b0f4887ed2e038688abe30dd84e
/django_tutorial/lighting/lighting/wsgi.py
cf398ec7ee25b61e266b6a24fc11efd0616c2665
[]
no_license
enextus/python_learnstuff
05673348bc66114fe30670aa11cff58fedade19a
76b6acdab9dc0d685fd3b1265fd2a3ebe72c6dae
refs/heads/master
2021-01-07T05:10:33.616407
2020-02-19T13:12:55
2020-02-19T13:12:55
241,564,349
0
0
null
null
null
null
UTF-8
Python
false
false
393
py
""" WSGI config for lighting 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "enextus@gmail.com" ]
enextus@gmail.com
08a0848fedf669abed53c01db5f2e3089f9afafd
d274e22b1cc5d546855fe46b089b13cfe2f4047c
/june2020/solutions/day10_SearchInsertPosition.py
bc56b7f39c131fc4fed01b6d54a49083c7e42612
[]
no_license
varunkumar032/lockdown-leetcode
ca6b7a8133033110680dd226c897dd8a1482682b
15a72a53be9005eca816f018cb1b244f2aa4cdfb
refs/heads/master
2023-06-30T08:31:54.323747
2021-07-12T11:29:59
2021-07-12T11:29:59
260,616,280
0
0
null
2021-05-06T10:24:48
2020-05-02T04:52:37
Python
UTF-8
Python
false
false
770
py
# Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if # it were inserted in order. # You may assume no duplicates in the array. # Example 1: # Input: [1,3,5,6], 5 # Output: 2 # Example 2: # Input: [1,3,5,6], 2 # Output: 1 # Example 3: # Inp...
[ "varunkumar032@gmail.com" ]
varunkumar032@gmail.com
08f266233255b9d3b387c43201211875b4484fb5
789e1e37183ad8238607132533661ff0bc71ad33
/src/meshio/vtk/_common.py
ee42c1378930ef3ca7eb75e82ce869447a9e1018
[ "MIT" ]
permissive
keurfonluu/meshio
a7cecc15a0d7b83767f3e41c7defab1a2c7c017a
7f55a8b347c97ccaf2cb3788cd99c47a992b3b79
refs/heads/main
2022-06-05T21:23:22.021290
2022-03-18T23:22:55
2022-03-18T23:22:55
198,168,807
0
0
MIT
2019-07-22T07:17:52
2019-07-22T07:17:52
null
UTF-8
Python
false
false
444
py
from io import BytesIO, StringIO def encode(string, binary): return string.encode() if binary else string def tofile(arr, f, binary=True, sep=""): if binary: if isinstance(f, BytesIO): f.write(arr.tobytes()) else: arr.tofile(f, sep=sep) else: if isinstanc...
[ "keurfonluu@outlook.com" ]
keurfonluu@outlook.com
4f05dce4733ae8a0b4d36f7213725842791720fa
8aaaa25e794485339f7d7430f11ecd5100f6a8f7
/models/nets/nets.py
d542272c57b5e64f8500d71b0bfa5c29f82cb7cd
[]
no_license
PanJinquan/torch-image-classification-pipeline
650c901d07d5c1dd9b6d3f2d5420b416ea804d42
98257e64224722e54d5e593ffc53aa7f5589af99
refs/heads/master
2022-07-12T22:19:32.137554
2020-05-09T09:32:03
2020-05-09T09:32:03
254,305,531
3
0
null
2021-10-12T23:05:07
2020-04-09T07:47:32
Python
UTF-8
Python
false
false
1,736
py
# -*- coding: utf-8 -*- """ # -------------------------------------------------------- # Copyright (c) DMAI Inc. and its affiliates. All Rights Reserved. # Licensed under The MIT License [see LICENSE for details] # Written by panjinquan@dm-ai.cn # @Project: torch-Face-Recognize-Pipeline # @Author : panjq # @Date : 20...
[ "panjinquan@dm-ai.cn" ]
panjinquan@dm-ai.cn
06b1c7111de377088f482a7619bfe03fcdcbedef
37fe0d74375527f4aaf86857e17b96b675837205
/aid1805/pbase/14_break.py
f2b2a15107b29e156d58cc3c48070e347f2b5b63
[]
no_license
wangleiliugang/data
af8255eb76affa55424979c809c6168a7f3995ea
375a58b454be38ffa156876a7770f8d6f4345aba
refs/heads/master
2023-06-05T13:21:43.630854
2021-06-21T09:04:39
2021-06-21T09:04:39
378,862,494
0
0
null
null
null
null
UTF-8
Python
false
false
2,082
py
# 此示意break 语句的用法 i = 1 while i <=6: print("本次循环开始时:",i ) if i ==3: break print("本次循环结束时:",i) i += 1 print("这是程序最后一条语句!i=",i ) # 任意输入一些整数,当输入负数时结束输入,当输入完成后,打印您输入的这些数的和 s = 0 while True: n = int(input("请输入一个整数:")) if n < 0: break s += n print(s) # 写程序用while 语句实现打印三角形 # 要求...
[ "137753633@qq.com" ]
137753633@qq.com
2e82a672db83a28c3f4a48a589e9fb394b6e09e1
1b3addbc9473b6ffb999665601470ccc4d1153b0
/libs/msg_service/pyro_msg_service.py
b942d58d4bf7058041b6bf79b68922fc74dd932e
[]
no_license
weijia/approot
e1f712fa92c4c3200210eb95d251d890295769ba
15fac5b31a4d619d1bdede3d1131f5e6e57cd43b
refs/heads/master
2020-04-15T13:15:01.956721
2014-08-26T14:02:17
2014-08-26T14:02:17
11,049,975
1
0
null
null
null
null
UTF-8
Python
false
false
765
py
import Pyro4 from msg_service_interface import MsgServiceInterface, UnknownReceiver class PyroMsgService(MsgServiceInterface): """ Receiver is a string indicate the receiver's name, it may contain protocol string to specify message sending protocol """ def send_to(self, receiver, msg): #L...
[ "richardwangwang@gmail.com" ]
richardwangwang@gmail.com
cc22b1b214ea115b83ad4221434cbe1a7174d6b1
8aa89b6eb27e9c56429b509b67fe0cafcc99a20b
/src/programy/clients/xmpp.py
057688ae7b32be6160423e87d116f4e93524ae6e
[ "MIT" ]
permissive
libby/program-y
639b62bf0b114cb99fb94721a2810f2eed53d035
ff6ff9f3c9b8fa37cf0197aa723f691b19ce464e
refs/heads/master
2021-05-07T17:23:54.460785
2017-10-13T13:13:58
2017-10-13T13:13:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,093
py
""" Copyright (c) 2016-17 Keith Sterling http://www.keithsterling.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, mod...
[ "keith@keithsterling.com" ]
keith@keithsterling.com
56ffdf91c96d799fda1dd20e593786038734a327
57ce77797e073f16779b9a5a712ca576ee776c2a
/examples/adspygoogle/dfp/v201308/inventory_service/get_mobile_ad_unit_sizes.py
cec9237b018afe07d9186ce6b4f2873213246089
[ "Apache-2.0" ]
permissive
chahroud/googleads-python-legacy-lib
3fc8c043ec0b1e92b7afb76d018eb4016347b472
f22956e782b9119d3c1a90b1e3b42830478a89d2
refs/heads/master
2021-01-21T01:33:29.512298
2014-04-01T14:43:03
2014-04-01T14:43:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,087
py
#!/usr/bin/python # # Copyright 2013 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 b...
[ "emeralddragon88@gmail.com" ]
emeralddragon88@gmail.com
3b989acfc37501242497d17c7f8d86e10abebae9
6f5cf47477ae5218bf2fa8faf17fe0cd15b09e15
/utilities/runPlugin.py
dc046ad0b87d9576810d1c6dccfc6387325455e4
[]
no_license
dymx101/MangaCMS
9a0cae6553620b7e8495c8cf329c3763a3f94ce9
42faf689826c8bcaed33020e25ff5af37194e08e
refs/heads/master
2020-03-13T17:02:08.120617
2018-04-24T05:57:43
2018-04-24T23:10:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,732
py
import sys import os.path import runStatus from utilities.dedupDir import DirDeduper import signal import MangaCMS.activePlugins def customHandler(dummy_signum, dummy_stackframe): if runStatus.run: runStatus.run = False print("Telling threads to stop") else: print("Multiple keyboard interrupt...
[ "something@fake-url.com" ]
something@fake-url.com
4937313d3d0b255161536d80f30f9545a7e9092a
48832d27da16256ee62c364add45f21b968ee669
/res_bw/scripts/common/lib/ctypes/test/test_array_in_pointer.py
6b8ce2b0d53791c84fec02b5b46785ceadf89068
[]
no_license
webiumsk/WOT-0.9.15.1
0752d5bbd7c6fafdd7f714af939ae7bcf654faf7
17ca3550fef25e430534d079876a14fbbcccb9b4
refs/heads/master
2021-01-20T18:24:10.349144
2016-08-04T18:08:34
2016-08-04T18:08:34
64,955,694
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,528
py
# 2016.08.04 19:58:26 Střední Evropa (letní čas) # Embedded file name: scripts/common/Lib/ctypes/test/test_array_in_pointer.py import unittest from ctypes import * from binascii import hexlify import re def dump(obj): h = hexlify(memoryview(obj)) return re.sub('(..)', '\\1-', h)[:-1] class Value(Structure): ...
[ "info@webium.sk" ]
info@webium.sk
e3e8ee088d27093043e69211e4990981f88b686b
24f6ba511545d5cd2860bed27f9e10b5686fd041
/pysite/rst/roles.py
d83f07f903e63ef1fbb07b60c7bee2eae65c11eb
[ "MIT" ]
permissive
landizz/site
8a68fcc282e6bf56a6f90b10de1a4e7d4e8a5428
bc87a43b3fc1ff3424b1c9603b0a35b28f2c3896
refs/heads/master
2020-04-17T19:55:20.483103
2019-01-19T23:03:13
2019-01-19T23:03:13
166,884,262
0
0
MIT
2019-01-21T21:59:42
2019-01-21T21:36:58
CSS
UTF-8
Python
false
false
3,916
py
from docutils import nodes from docutils.parsers.rst.roles import set_classes from docutils.parsers.rst.states import Inliner from flask import url_for from jinja2 import escape def icon_role(_role: str, rawtext: str, text: str, lineno: int, inliner: Inliner, options: dict = None, _content: dict = None)...
[ "gdude2002@gmail.com" ]
gdude2002@gmail.com
fdc773c06a44ce569ca3037813c527e751fcaebd
3e1745d2b10d1895bfbe371f78c8fbc940cfa991
/test_app/__init__.py
f8566d0a6dfd3383b94dcfcf2196575f85dd6979
[ "BSD-2-Clause-Views", "BSD-2-Clause" ]
permissive
kezabelle/django-stagesetting
aa2ce61e967fbd9699994665996fa6b5fc0403b1
d01029c309915599e9a0413c1be0957638725f69
refs/heads/master
2020-06-01T20:16:17.697044
2018-09-14T11:00:04
2018-09-14T11:00:04
39,468,404
5
0
null
null
null
null
UTF-8
Python
false
false
155
py
# -*- coding: utf-8 -*- from __future__ import absolute_import from __future__ import unicode_literals default_app_config = 'test_app.apps.TestAppConfig'
[ "keryn@kerynknight.com" ]
keryn@kerynknight.com
6c4a94fc1ba2666d46bc418852c2c75a99de1f9b
4bcc9806152542ab43fc2cf47c499424f200896c
/tensorflow/python/kernel_tests/proto/descriptor_source_test_base.py
162ddff94aa35f3a893c8a4d9e250775d40a4687
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "BSD-2-Clause" ]
permissive
tensorflow/tensorflow
906276dbafcc70a941026aa5dc50425ef71ee282
a7f3934a67900720af3d3b15389551483bee50b8
refs/heads/master
2023-08-25T04:24:41.611870
2023-08-25T04:06:24
2023-08-25T04:14:08
45,717,250
208,740
109,943
Apache-2.0
2023-09-14T20:55:50
2015-11-07T01:19:20
C++
UTF-8
Python
false
false
6,861
py
# ============================================================================= # Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at #...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
07260d27413c2ef4d21a0efce0821818895a3f27
b99f518e5289da9d068154cefd7b9f13c8d6564f
/VSCode_work/chapter9/car_1.py
b54c2f3a99d3546246d7911c473a4cf5173d27b1
[ "MIT" ]
permissive
yangyahu-1994/Python-Crash-Course
e6a81feba4bdbef297387577ea36b7027bf61c8f
6f8ef7fe8466d88931a0d3cc423ba5d966663b9d
refs/heads/master
2023-07-29T22:29:06.151253
2021-10-05T14:04:32
2021-10-05T14:04:32
313,314,086
18
12
null
null
null
null
UTF-8
Python
false
false
2,280
py
"""一组表示燃油汽车和电动汽车的类""" class Car(): """一次模拟汽车的简单尝试""" def __init__(self, make, model, year): """初始化描述汽车的属性""" self.make = make self.model = model self.year = year self.odometer_reading = 0 def get_descriptive_name(self): """返回整洁的描述性信息""" ...
[ "yyh_19940317@163.com" ]
yyh_19940317@163.com
054a5e80bc0a0a331d0890c72f3b1d1d5ffa9062
e5504d8c4880993b82d5583a11c5cc4623e0eac2
/LeetCode/30-day-challenge/May/May 1st - May 7th/ransomeNote.py
00222019fe8e5a8a677a2160fd282823d39db862
[]
no_license
noorulameenkm/DataStructuresAlgorithms
e5f87f426fc444d18f830e48569d2a7a50f5d7e0
7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0
refs/heads/master
2023-06-08T19:29:42.507761
2023-05-28T16:20:19
2023-05-28T16:20:19
219,270,731
2
0
null
null
null
null
UTF-8
Python
false
false
652
py
class Solution: def canConstruct(self, ransomNote: str, magazine: str) -> bool: d = {} for i in range(len(magazine)): if d.get(magazine[i], 0) == 0: d[magazine[i]] = 1 else: d[magazine[i]] += 1 for j in range(len(ransomNote)): ...
[ "noorul.km@people10.com" ]
noorul.km@people10.com
ecf31ea00163ba73028c5f0bc08504c4eb96ec61
adf2e802c7563e4b7b7cc279a54deceb6a803098
/openapi_client/models/image_save_as_pdf_response.py
b91b3f75d99da1708d38d8920085dcf7ab9c8a7d
[]
no_license
Orpalis/passportpdfsdk-python
2466f7568becf2bd386bd9e4e00b4e3c1e642727
257d305ca9e6508d44fe521a1e4721f1835e8d0e
refs/heads/master
2022-04-24T15:58:21.257112
2020-04-27T11:09:37
2020-04-27T11:09:37
254,665,250
2
0
null
null
null
null
UTF-8
Python
false
false
5,862
py
# coding: utf-8 """ PassportPDF API Another brick in the cloud # noqa: E501 The version of the OpenAPI document: 1.0.1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.configuration import Configuration class ImageSaveAsPDFRe...
[ "e.carrere@orpalis.com" ]
e.carrere@orpalis.com
2e9e3aca9f8793206e2d476081d90cd178d76efb
ce6ace34704e74c2a53e9b38b2630876d9cd52e2
/mdias_addons/odoo_operation_log/__manifest__.py
44d33ae5f6eac60610af262ad7bffc8e7299a5e5
[]
no_license
rezaghanimi/main_mdias
e3cfd8033204d8e7e484041f506892621a3e3479
13b428a5c4ade6278e3e5e996ef10d9fb0fea4b9
refs/heads/master
2022-09-17T20:15:42.305452
2020-05-29T05:38:35
2020-05-29T05:38:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
# -*- coding: utf-8 -*- { 'name': "odoo_operation_log", 'summary': """ 日志""", 'description': """ 日志管理软件,在数据发生变更时候自动保存数据变化 """, 'author': "funenc", 'website': "http://www.funenc.com", 'category': 'funenc', 'version': '0.1', 'depends': ['base', 'vue_template_manager'], ...
[ "619851623@qq.com" ]
619851623@qq.com
f3531fd1974a56680ad45f53c99d7b00fe8b2b1e
3c61b11cc0c90cf730e1e6d59bbee63a0dffb2fd
/mlinsights/mlmodel/extended_features.py
d76ed3802e47ab786e3b49c7d012d9e04a1d21f7
[ "MIT" ]
permissive
klegaard/mlinsights
78e75a2c77eeeb3733e38bfdf9c92f6737737d1f
cbb8a87e35471f80625a02c5d8883dd64d55a25e
refs/heads/master
2020-08-29T00:21:15.251815
2019-10-21T22:19:50
2019-10-21T22:19:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,829
py
""" @file @brief Implements new features such as polynomial features. """ import numpy from scipy import sparse from sklearn.base import BaseEstimator, TransformerMixin from sklearn.utils import check_array from sklearn.utils.validation import check_is_fitted from ._extended_features_polynomial import _transform_iall, ...
[ "xavier.dupre@gmail.com" ]
xavier.dupre@gmail.com
895706f993b4770365b0d539ba8e88f59bf4cffb
c153ded6cca8f463afbfb4f14fde1edf787906b2
/openprocurement/auctions/dgf/views/other/lot.py
9514e1202fbff83adfacedb0f7a0526ffd4953d5
[ "Apache-2.0" ]
permissive
prozorro-sale/openprocurement.auctions.dgf
f76c03cd9552a066baa4496a136fcca65eb9d118
4671156ae4ad2ab6b6bcd67f21a18a7a06a5d1f8
refs/heads/master
2020-05-21T03:33:50.520572
2018-04-19T12:33:52
2018-04-19T12:33:52
84,565,508
0
8
Apache-2.0
2018-05-18T12:02:25
2017-03-10T14:01:34
Python
UTF-8
Python
false
false
3,688
py
# -*- coding: utf-8 -*- from openprocurement.api.utils import ( json_view, context_unpack, APIResource, get_now ) from openprocurement.auctions.core.utils import ( apply_patch, save_auction, opresource, ) from openprocurement.auctions.core.validation import ( validate_lot_data, valid...
[ "krzroman@gmail.com" ]
krzroman@gmail.com
8e69a0355ebfb2563d315ef490ba0da861c213e2
8cac67c84228a8fa2dbae3536a28ff0255d64de1
/0x0A-python-inheritance/3-is_kind_of_class.py
b6ae6c410a50549279c00a66bbdf4aa98f2d7d4e
[]
no_license
dgquintero/holbertonschool-higher_level_programming
8ee78ee61890eb532dc3f7b0a73db903f4627c88
3d0f431d76a8436461cb5602b97bbdf4f5774f56
refs/heads/master
2020-09-29T00:32:20.623148
2020-05-14T18:59:38
2020-05-14T18:59:38
226,902,482
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
#!/usr/bin/python3 """func returns T or F if obj is an instance of a_class""" def is_kind_of_class(obj, a_class): return isinstance(obj, a_class)
[ "dgquintero02@hotmail.com" ]
dgquintero02@hotmail.com
eb66339022f3c8152cf3367a0908277c7c6df435
7c902cde7a6ff5bcb9819aee3e00e5e97d46edea
/cnfOperations.py
d30d02a14db9f6738bfdef055604cd58574d6252
[]
no_license
erhanorun/modbusOOP
eb6c1161d4d4a7e42bbb508122a2a5d29e799bc0
a320a12e5411f6b97c9a15a65512dc2215b1f41c
refs/heads/master
2023-08-13T18:09:01.186121
2021-07-15T10:44:53
2021-07-15T10:44:53
406,088,476
0
0
null
null
null
null
UTF-8
Python
false
false
1,238
py
import configparser class cnfOperation(): @staticmethod def readModBusHost(): config = configparser.ConfigParser() config.read('Config.ini') return config['Modbus_host']['host'] @staticmethod def readModBusPort(): config = configparser.ConfigParser() config.re...
[ "erhan0494@gmail.com" ]
erhan0494@gmail.com
28fd6ef70ed7f5fd82df0cba4267d0f51012053e
6186a3787d1e74f1866844491da48b9643c8f1a9
/ghostwriter/shepherd/migrations/0006_auto_20191001_1353.py
3f73c6ad79905037795839db3d6c2334b7b4c8d9
[ "BSD-3-Clause" ]
permissive
GhostManager/Ghostwriter
b46b2421e5737ed0afbf49182dce9eeb5eb31936
b9eae4459ba192fbb2d4a5b66f8210d57fd7112a
refs/heads/master
2023-09-04T02:34:54.085997
2023-07-13T22:38:44
2023-07-13T22:38:44
197,269,443
1,011
197
BSD-3-Clause
2023-09-08T00:19:52
2019-07-16T21:19:43
Python
UTF-8
Python
false
false
601
py
# Generated by Django 2.2.3 on 2019-10-01 13:53 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("shepherd", "0005_auto_20191001_1352"), ] operations = [ migrations.AlterField( model_name="histo...
[ "chris.maddalena@protonmail.com" ]
chris.maddalena@protonmail.com
66ff3d2259ec3cb33f822b7ceb59fbcf58ef932c
b66528230b76cdd0aaf45897374fb11c8c90ae8e
/Data Structures/linkedLists/unorderedList.py
25a8c6a749a9614c50aa863f2b03f0c4a3b87842
[]
no_license
hemangsk/python-on
284eb1a43b79165a45bdeecd3846c349b5e1db05
43dfcabda0513da77db58e53b4ae97d4d55e5851
refs/heads/master
2020-12-10T05:44:06.513580
2016-10-11T18:05:12
2016-10-11T18:05:12
62,219,758
2
0
null
null
null
null
UTF-8
Python
false
false
1,853
py
class Node: def __init__(self, data): self.data = data self.next = None def setData(self, data): self.data = data def setNext(self, nextItem): self.next = nextItem def getData(self): return self.data def getNext(self): return self.next class Unordered...
[ "hemangsk@gmail.com" ]
hemangsk@gmail.com
c6243f265a5b453fdd6e238c77c2a3c36ca93e06
ca55dcaa64ea9db4068e13091321cfebecc0ff41
/codeUp/codeUpBasic/1754.py
695fad94e922f8aa62a18ef32de90189ac8d2a13
[]
no_license
gomtinQQ/algorithm-python
8fb8343594b945099ae2a4dfa794ecb47e54ab0b
751562922b66e335f621d366bb73dacdc7125140
refs/heads/master
2022-12-07T23:05:44.535593
2020-08-21T12:29:58
2020-08-21T12:29:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
326
py
''' 1754 : 큰 수 비교 우리는 숫자를 int나 long long으로 숫자를 처리하였다. 이번엔 그보다 더 큰 숫자를 비교해보자. 최대 100자리의 두 숫자가 입력되면 작은수와 큰 수를 차례대로 출력하시오. ''' a,b = input().split() a = int(a) b = int(b) print(min(a,b), max(a,b))
[ "minhyeonlee1@gmail.com" ]
minhyeonlee1@gmail.com
7ff4cf80cf2468318455e9871fd86fabe165e2bd
3332232efe497c49a1430c0fa7a6c34f5be26cd8
/pytoggl/model/time_entry.py
95884df94d374847138f3e33ccf862d1edd3aaf2
[ "MIT" ]
permissive
cloew/pytoggl
8d02319c9a5433357af8516a682d11ab334a7fdc
ec559e532559bfeaeb0de7f18831d30ed84f5ff1
refs/heads/master
2016-09-15T15:17:50.586777
2015-09-28T19:28:53
2015-09-28T19:28:53
21,795,028
0
0
null
null
null
null
UTF-8
Python
false
false
894
py
from .actions import Get, Create, Update, Delete, StartTimer, StopTimer from .model import Model from .model_for_api import model_for_api from ..requests import RequestApis from datetime import timedelta from time import time @model_for_api(RequestApis.TimeEntries, created_with="pytoggl") class TimeEntry(Mod...
[ "cloew123@gmail.com" ]
cloew123@gmail.com
f8b8422b458f0859491eeec0d7eb5e45cc68db9f
1e40a99921a4cfc717145844a47729701c149623
/sensor/raspberrypi/sensor_api_old.py
a3e6513b8b9eb63d2bc7e14a307eee50fb2a26ee
[]
no_license
zhulinyu/air_monitor
430eab365f935d5f3e5d53eda992857392e0beeb
4fd403e1b7bfd9c132c2414bc6d64a260cca99ac
refs/heads/master
2020-12-07T18:31:23.561091
2018-05-25T11:42:57
2018-05-25T11:42:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,139
py
# -*- coding:utf-8 -*- import RPi.GPIO as GPIO import serial import smbus _DEBUG_ = False class SENSOR_CONFIG(): serial_0 = serial.Serial("/dev/ttyS0", 2400) A = 1200 address = 0x48 # 元件上的标号是反的,A0应该在A2的位置,另外A3貌似没用 #A0 = 0x40 #A1 = 0x41 #A2 = 0x42 #A3 = 0x43 A0 = 0x00 A1 = 0x...
[ "435878393@qq.com" ]
435878393@qq.com
8d505685aaf5b3208a3869dea05f7321c7423038
60ca69e2a4c6b05e6df44007fd9e4a4ed4425f14
/beginner_contest/162/C.py
96306f94b813ff423029c35ad2ef820e1567fde3
[ "MIT" ]
permissive
FGtatsuro/myatcoder
12a9daafc88efbb60fc0cd8840e594500fc3ee55
25a3123be6a6311e7d1c25394987de3e35575ff4
refs/heads/master
2021-06-13T15:24:07.906742
2021-05-16T11:47:09
2021-05-16T11:47:09
195,441,531
0
0
MIT
2021-05-16T11:47:10
2019-07-05T16:47:58
Python
UTF-8
Python
false
false
678
py
import sys input = sys.stdin.readline sys.setrecursionlimit(10 ** 7) k = int(input()) import functools from fractions import gcd cache = dict() ab = [] for a in range(1, k + 1): for b in range(1, k + 1): i1, i2 = min(a, b), max(a, b) if (i1, i2) in cache: ab.append(cache[(i1, i2)]) ...
[ "204491+FGtatsuro@users.noreply.github.com" ]
204491+FGtatsuro@users.noreply.github.com
cab327867d27bd2c1ac498a67cf41f62cef074c6
421b8bc3d5fc0e89c0ef9154ace8b0ce0420742f
/remote/server/pydevmem.py
2f0871c5e03b69cbf715a02ca42c83eaaa6cf53e
[]
no_license
afcarl/overo_tools
e40b9fbb30469363c5be8b78793941d88ea43792
97750af0b11e6c3a30ae4539cad60accf5034b37
refs/heads/master
2020-03-16T23:25:27.020250
2010-11-20T22:43:34
2010-11-20T22:43:34
133,076,643
1
0
null
2018-05-11T18:46:24
2018-05-11T18:46:24
null
UTF-8
Python
false
false
3,717
py
#!/usr/bin/env python import mmap, os # the gp_timer registers (accessed via /dev/mem) should only be accessed using 16/32 bit read/writes # accessing these registers with 8 bit read/writes can result in corruption of the registers. so... # do not use: mmap.read_byte() (as this uses 8 bit access) # I believe that mma...
[ "graham@rowland.harvard.edu" ]
graham@rowland.harvard.edu
b5d4199d183c08464225da9a576afb207653a47d
45e03dd61493195cbbbce14fa54a787715c7c1fb
/Python_String_Methods/replace().py
6d9ec47ad5f4845b74ea0f23032253e9e4de2428
[]
no_license
VaishnaviReddyGuddeti/Python_programs
c55ee69c05d78a70a44385ee2e66365f69546035
309a1786fa5a3886d516cd49eb09f9cd847389df
refs/heads/master
2023-02-17T03:41:31.480858
2021-01-14T15:39:52
2021-01-14T15:39:52
279,762,059
0
0
null
null
null
null
UTF-8
Python
false
false
486
py
# replace() - Returns a string where a specified value is replaced with a specified value # Replace the word "bananas": txt = "I like toys" x = txt.replace("boll", "cars") print(x) # Replace all occurrence of the word "one": txt = "one one was a race horse, two two was one too." x = txt.replace("one", "three") ...
[ "vaishnavireddyguddeti@gmail.com" ]
vaishnavireddyguddeti@gmail.com
f279d2085b33e31508d6b473436a6214de358a81
e23a4f57ce5474d468258e5e63b9e23fb6011188
/110_concurrency_parallelism/_exercises/templates/The_Complete_Python_Course_l_Learn_Python_by_Doing/projects/async_scraping/samples/4_a_note_on_https.py
ad09779aa0ea277828f462e2021a647453273067
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
2,646
py
""" Running this file may fail with an error like this one: ---- ... File "...lib/python3.7/site-packages/aiohttp/connector.py", line 803, in _wrap_create_connection req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorCertificateError: Cannot connect to host www.johnlewis.com:443 ssl:True ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
391333678c9592ce5a987f7bad0dece53db7381c
b4dd5a4ad3ffa6fcafc0ab6ccb3ad2ff299a9433
/server/tests/test_views.py
08666257e9e10a285d41be81ec9d9a19f408a4ae
[ "BSD-3-Clause" ]
permissive
raspberrywhite/raspberrywhite
a80567e8d04cab704acb7490da5e07ee3bef6953
bb0ce2766448e192e08c8e36c1a4580edb5e7d15
refs/heads/master
2021-01-10T19:03:51.436515
2015-11-15T11:27:08
2015-11-15T11:27:08
21,370,744
2
0
null
2015-11-15T11:27:09
2014-07-01T00:54:08
Python
UTF-8
Python
false
false
3,820
py
from django.contrib.auth.models import User as AuthUser from django.core.urlresolvers import resolve from django.http import HttpRequest from django.template.loader import render_to_string from django.test import TestCase from django.utils.html import escape import json from mock import patch from server.models import...
[ "stagi.andrea@gmail.com" ]
stagi.andrea@gmail.com
725723a905fd1b32b62857e82402c4654e62e593
9b722ca41671eb2cea19bac5126d0920639261bd
/.history/app_20201124103201.py
15f19bc7d6f87c944e4dece6e78495f0d66cff6c
[]
no_license
thawalk/db_flask_server
7928fd481f99d30bdccc60d97f02db78324cfdbe
cd55f1c9bf84c734457ee02d9f64a6833e295fad
refs/heads/master
2023-01-25T02:40:19.097457
2020-12-06T07:45:50
2020-12-06T07:45:50
314,229,480
0
0
null
null
null
null
UTF-8
Python
false
false
4,058
py
import json from flask import Flask, jsonify, url_for, request, redirect,Response,Request # from flask_pymongo import PyMongo import pymongo from bson.json_util import dumps import mysql.connector from werkzeug.serving import run_simple import os from dotenv import load_dotenv import datetime import time app = Flask(_...
[ "akmal_hakim_teo@hotmail.com" ]
akmal_hakim_teo@hotmail.com
772dcebb869c7a07d0eae55e23e621a234d87ff9
a4899baa1e607f82f69aa563c014bf19c5c42736
/stubs/esp32_LoBo_3_2_9/tpcalib.py
c0ee33f75599a83c4a334343a16bdae563a74d9e
[ "MIT", "Apache-2.0", "LicenseRef-scancode-public-domain" ]
permissive
jmannau/micropython-stubber
e9afe1ee93d4b33fc7cfaaa9702cbeb6da2d3360
8930e8a0038192fd259b31a193d1da3b2501256a
refs/heads/master
2020-08-07T15:38:00.405036
2019-09-02T07:25:23
2019-09-02T07:25:23
213,509,822
0
0
NOASSERTION
2019-10-08T00:06:05
2019-10-08T00:06:05
null
UTF-8
Python
false
false
474
py
""" Module: 'tpcalib' on esp32_LoBo 3.2.9 """ # MCU: (sysname='esp32_LoBo', nodename='esp32_LoBo', release='3.2.9', version='ESP32_LoBo_v3.2.9 on 2018-04-12', machine='ESP32 board with ESP32') # Stubber: 1.1.2 class Calibrate: '' def calibError(): pass def calibrate(): pass def drawCr...
[ "jos_verlinde@hotmail.com" ]
jos_verlinde@hotmail.com
29040a7435859245580327c5cbfa9f3902034753
7f0a5291ea25e3466ced4c69260d607cbac51948
/05_Heapsort.py
03718447db4032f46b33f1052dd5e973b9544c75
[]
no_license
HarshCic/data_structures_and_algorithms_with_python
9bc5708e0cf17610a3c5baccb6da1b5a96736f2c
d669e079f6bf078c4a94cbec66792bdd79c77888
refs/heads/master
2020-04-22T00:32:14.386829
2018-10-30T14:32:55
2018-10-30T14:32:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,838
py
""" ################################################################# ########################## Heap Sort ########################### ################################################################# """ def parent(i_index): return i_index // 2 def left_child(i_index): return 2 * i_index def right_child(i_...
[ "asadullah.itcgcs@gmail.com" ]
asadullah.itcgcs@gmail.com
2f4d7e1d15bbd6c43289c3127c7ba22c0de7ea7a
4930536ac47a3f2544b44899659c68a49a3e5f06
/helpscout_api/client.py
3075fbe59a161aa16bbbb43b5c0c025b4c818122
[ "MIT" ]
permissive
bufferapp/helpscout-api
45eab645db772328f78f0cdbd9ab1dedaa9d50f6
0d6a09982aa684f8834990fdb4d3e2ceae6fa2ae
refs/heads/master
2021-09-15T04:29:30.868954
2018-05-25T21:20:15
2018-05-25T21:20:15
89,756,528
0
0
null
null
null
null
UTF-8
Python
false
false
4,013
py
import os import requests from requests.auth import HTTPBasicAuth import urllib.parse import tortilla from tortilla import Wrap from tortilla.wrappers import Client import pandas as pd from datetime import datetime from datetime import date from datetime import timedelta import pytz from pytz import timezone HELPSCOU...
[ "michaelerasmus@gmail.com" ]
michaelerasmus@gmail.com
b2c8f77e5524faff449321a1c01ae2c6aa811dc1
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/2991.py
7a92f8765c8d2f9d36ae2ad0091492bc04a229d3
[]
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
725
py
import sys input_file = open(sys.argv[1], 'r') file_lines = map(str.strip, input_file.readlines()) T = int(file_lines[0]) def reverse_int(n): return int(str(n)[::-1]) def is_palindrome(n): return n == reverse_int(n) global_max = 0 dict = {} def update_dict(max): for i in range(global_max,max): ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
3d6593112e79df94651dd2a2ca0c08738eb1df00
8ae0b37c3913fb344c1c2bb161b0a8b346e2f298
/test/test_Q034_SearchForARange.py
c8c8f3140ac73922aea586ce2c15315504294382
[]
no_license
jiaz/leetpy
76330a0e4f234bface88b3a6a5476cd24d7776ea
94e8b0c2ebbf593dbca1b253e08c588f27679bd3
refs/heads/master
2021-01-10T09:07:45.549361
2015-11-26T06:44:50
2015-11-26T06:44:50
46,908,974
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
from leetcode.Q034_SearchForARange import Solution from test_runner import run def test_Q034_SearchForARange(): s = Solution() run(s, 'Q034')
[ "jiaji.zh@gmail.com" ]
jiaji.zh@gmail.com
245d88c835ef29250c6a6736d43db48381603cdf
ff1137a7d8f9c01632cf757495e065ec5e3817a2
/术业专攻/上证指数/从网易财经爬取上证指数本地存储.py
0b19336524572bca9d4ecbd3daa2f7c02c731f3b
[]
no_license
yuqiuming2000/Python-code
3d5e5d8ba5c5f477b4cfab67b0d63d838eefc591
b16a6c425d4bf400df6b365d091f56bc8c5c4d34
refs/heads/master
2023-06-22T04:22:25.991172
2021-07-24T13:49:38
2021-07-24T13:49:38
389,100,344
0
0
null
null
null
null
UTF-8
Python
false
false
1,727
py
from selenium import webdriver from lxml import etree import time import requests import xlrd,xlwt def GetPrice(out_time,row): while 1: #获取当前页面源码 html=browser.page_source #解析数据 html_ele = etree.HTML(html) price = html_ele.xpath('/html/body/div[2]/div[1]/div[3]/table/tbody/t...
[ "76746694@qq.com" ]
76746694@qq.com
b14898a38e9d8ffefe6bfd1d538968c817d1412b
a605685fe22d248d8dc819b350de1b2c2c389ad4
/Conditions and Loops/divisibleBy5.py
8be0819787bb9393276a76ea7d4c41cc5098a75c
[]
no_license
nishantchaudhary12/w3resource_solutions_python
3b795ff5fe0bca8b78d1051e5055d6cfce4ee603
6f5b54b065f185f262be5ec37f258d5e5d6a0efd
refs/heads/master
2020-04-28T08:32:30.080815
2019-09-13T04:24:23
2019-09-13T04:24:23
175,131,674
0
0
null
null
null
null
UTF-8
Python
false
false
799
py
#Write a Python program which accepts a sequence of comma separated 4 digit binary numbers as its input and # print the numbers that are divisible by 5 in a comma separated sequence. def divisibleByFive(sample_data): result = list() for each in sample_data: num = int(each[0]) * (2 ** 3) + int(each[1])...
[ "chaudharynishant025@gmail.com" ]
chaudharynishant025@gmail.com
3c5fe5ca6f4b63a873027c94bfcc6a1074a879a0
cdbaec17aa8411a1455b42520154cc9f30da3550
/Leetcode 6/reverse_k_group.py
26ae64cfee99b2f0a8e093c132bfad30d0dfd16b
[]
no_license
PiyushChaturvedii/My-Leetcode-Solutions-Python-
bad986978a7e72a3fda59b652cda79802377ab2f
86138195f6f343f0acc97da286f4f4811a0d0e48
refs/heads/master
2021-10-09T20:19:11.186191
2019-01-03T05:15:33
2019-01-03T05:15:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,366
py
# Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def reverseKGroup(self, head, k): """ :type head: ListNode :type k: int :rtype: ListNode """ def...
[ "noreply@github.com" ]
PiyushChaturvedii.noreply@github.com
9432631e2e452347a4cbd3abb8a13cfb2c8cb5cf
1799fe1d9dfcf5f9619a87a11f3fa6170e1864fc
/00033/test_search_in_rotated_sorted_array.py
5c48248d219a664b0c94b833fe7bc632a669d242
[]
no_license
SinCatGit/leetcode
5e52b49324d16a96de1ba4804e3d17569377e804
399e40e15cd64781a3cea295bf29467d2284d2ae
refs/heads/master
2021-07-05T18:51:46.018138
2020-04-25T04:06:48
2020-04-25T04:06:48
234,226,791
1
1
null
2021-04-20T19:17:43
2020-01-16T03:27:08
Python
UTF-8
Python
false
false
735
py
import unittest from search_in_rotated_sorted_array import Solution class TestSolution(unittest.TestCase): def test_Calculate_Solution(self): sol = Solution() self.assertEqual(4, sol.search( [4, 5, 6, 7, 0, 1, 2], 0 )) self.assertEqual(-1, sol.search( [4, 5,...
[ "sincat@126.com" ]
sincat@126.com
080215c82ef9f242806992be483cf70dfef858ff
3612ca41ddf34d61a5e44f06bda59684eab2359a
/pbf_salesforce/Commands/salesforce_save.py
d9f952c4861d2e12a38032c5a29adc6f201ea22f
[]
no_license
cloew/SalesforcePBF
30c06e6390e27fa5faa903de5b8025b9188ac9ac
20bd7aeb4938f66c22a33fece1cc24f606cd5e72
refs/heads/master
2021-01-20T20:57:11.373595
2014-07-20T05:19:37
2014-07-20T05:19:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
from pbf.Commands import command_manager from pbf_salesforce.helpers.salesforce_connector import SalesforceConnector class SalesforceSave: """ Command to Save a Salesforce file """ category = "salesforce" command = "save" description = "Saves provided salesforce files to the server" d...
[ "cloew123@gmail.com" ]
cloew123@gmail.com
c6e475eab3e48310c24f378e91921b22559ed3d0
380dfac9b68ef8663db5a9d1b30fc75636dec3d3
/billforward/models/add_coupon_code_request.py
59746724c8eefc45ac19614882b6fdf35bffa785
[ "Apache-2.0" ]
permissive
billforward/bf-python
d2f549e0c465d0dc78152b54413cac4216025a64
d2b812329ca3ed1fd94364d7f46f69ad74665596
refs/heads/master
2021-12-13T22:10:16.658546
2018-06-19T14:44:45
2018-06-19T14:44:45
63,268,011
2
1
Apache-2.0
2021-12-06T12:59:41
2016-07-13T17:57:37
Python
UTF-8
Python
false
false
6,154
py
# coding: utf-8 """ BillForward REST API OpenAPI spec version: 1.0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git 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...
[ "alexander.birch@billforward.net" ]
alexander.birch@billforward.net
30056058ee0f097efbe76dde9209c9bd8f2d4ac6
8c37b5363ff77a10e9c54204bc88b1c9861cdee6
/torch/jit/_builtins.py
46aa99c07025ae441313c804ba2155a4c3627e7c
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
gchanan/pytorch
50bf0843388c5ce3a818cf79688cf319b2262b15
0d03e73ae73aa6964ef72f848a77d27afeacf329
refs/heads/master
2021-07-02T16:20:50.304428
2019-12-26T20:52:21
2019-12-26T20:52:21
88,906,627
9
1
NOASSERTION
2019-12-26T20:52:23
2017-04-20T20:14:16
Python
UTF-8
Python
false
false
4,124
py
import math import warnings import torch import torch.backends.cudnn as cudnn from torch._six import PY2, PY37 from ..nn.modules.utils import _single, _pair, _triple, _quadruple, \ _list_with_default from collections import OrderedDict _builtin_table = None _modules_containing_builtins = (torch, torch._C._nn)...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
345571058fe6ad9cac37abf923a816a63e5c7a33
5f3c8eddb8c5a14fb3b5931f332d401207666036
/src/devices/esp8266-nodetest/main.py
db27a9bbb4878e89b0cdefea64d460c50ed07267
[ "Apache-2.0" ]
permissive
hwinther/lanot
dec8fe48efb6245af009bedf65b2bc089e92efa0
f6700cacb3946535081624467b746fdfd38e021d
refs/heads/master
2021-03-24T12:02:47.530833
2019-05-01T11:56:05
2019-05-01T11:56:05
91,605,521
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
import nodetest import machine import prometheus.server.multiserver import prometheus.server.socketserver.jsonrest import prometheus.server.localevents import prometheus.logging as logging import gc gc.collect() node = nodetest.NodeTest() gc.collect() multiserver = prometheus.server.multiserver.MultiServer() gc.colle...
[ "hc@wsh.no" ]
hc@wsh.no
71ad07cdc88070bb8386165819c20834a61fb651
87ef4417475eba17416e6c93b79e1af28af29402
/docs/tutorial_processing_chain-7.py
a7f21c95f4060514929c32d228134dc60956bc03
[ "MIT" ]
permissive
gertdekkers/dcase_util
e4bf300efd65d10f1da7ff9f1834dbaecf3c01d3
e5b80cc98b28facad2f3fff9acba126487b19879
refs/heads/master
2020-04-09T18:13:22.535971
2018-12-05T11:05:03
2018-12-05T11:05:03
160,505,284
0
0
MIT
2018-12-05T11:02:17
2018-12-05T11:02:17
null
UTF-8
Python
false
false
822
py
import dcase_util import tempfile tmp = tempfile.NamedTemporaryFile('r+', suffix='.txt', delete=False) dcase_util.utils.Example.event_metadata_container().save(filename=tmp.name) # Define processing chain chain = dcase_util.processors.ProcessingChain([ { 'processor_name': 'dcase_util.processors.MetadataRea...
[ "toni.heittola@gmail.com" ]
toni.heittola@gmail.com
400e9e69d471487d8a6ff365752ab2e5fb2b979e
cd23b0457bc02a60b89f1f52783e56cc36d85b5e
/gevent_lab/monkey_patching.py
c097d9fbbf61f6e4cbd81ee7e3471eb4f67a5e94
[]
no_license
cluo/learingPython
65c7068613e1a2ae0178e23770503043d9278c45
54609288e489047d4dd1dead5ac142f490905f0e
refs/heads/master
2020-04-01T13:04:15.981758
2015-02-23T13:21:31
2015-02-23T13:21:31
28,440,969
4
0
null
null
null
null
UTF-8
Python
false
false
411
py
import socket print(socket.socket) print("After monkey patch") from gevent import monkey monkey.patch_socket() print(socket.socket) import select print(select.select) monkey.patch_select() print("After monkey patch") print(select.select) # <class 'socket._socketobject'> # After monkey patch # <class 'gevent.socket.so...
[ "luosheng@meizu.com" ]
luosheng@meizu.com
b915f64d3e054fbd58f06368adc2ed117a78ebc8
593132164b6992b8b047cdf43a9d04c59fe607ee
/py_simple/9.形态学处理/9.4closing.py
18f728121b478ca6b6fcefc35f31dffac9228345
[ "Apache-2.0" ]
permissive
ztfmars/OpenCV_Python_Tutorial
b69b98e5e6b4e31c4f699fdbbaac36db68b8098b
2c9cf57f469dfec2aca8356f59f7473e5a506988
refs/heads/main
2023-02-14T22:40:38.456751
2021-01-17T02:18:21
2021-01-17T02:18:21
329,609,724
1
0
null
null
null
null
UTF-8
Python
false
false
263
py
# -*- coding: utf-8 -*- import cv2 import numpy as np o=cv2.imread("image\\closing.bmp",cv2.IMREAD_UNCHANGED) k=np.ones((5,5),np.uint8) r=cv2.morphologyEx(o,cv2.MORPH_CLOSE,k) cv2.imshow("original",o) cv2.imshow("result",r) cv2.waitKey() cv2.destroyAllWindows()
[ "ztfmars@163.com" ]
ztfmars@163.com
30472fda211b3e689fd580bb0422353a4941501e
46e68298b98f2d05b9cb4f9cce38d19aef3ac358
/python/longest_substring_without_repeating_characters.py
209eb056c1ef9b9079955a6187eb0a6614d24398
[]
no_license
hitigon/leetcode-template
fe99d5a1c9c5ffbfe0efbd3239ad937719a775f3
bcf44642e099763bcd7b7828cd7d9f7b044c52c4
refs/heads/master
2021-01-22T06:28:10.235865
2014-09-21T22:09:32
2014-09-21T22:09:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
# coding=utf-8 # AC Rate: 22.3% # https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/ # Given a string, find the length of the longest substring without repeating # characters. For example, the longest substring without repeating letters for # "abcabcbb" is "abc", which the length is 3. Fo...
[ "xinzhou918@gmail.com" ]
xinzhou918@gmail.com
90c48a1483959294c3339bb64afee652922f73ae
1b2e8101f75215660df47946d3139ce80d730325
/multithreading/threading_demo2.py
9f92e4cb7376a3b95a58ba3309df3e9f329be95d
[]
no_license
codyowl/python-training
a6d9f6c3f4386118ea573d273ed47eebc26ab6a1
aa01d05d902f60ad491c1a89f2609988cc8df357
refs/heads/master
2021-04-30T11:16:24.862971
2018-03-25T06:42:08
2018-03-25T06:42:08
121,350,844
1
0
null
null
null
null
UTF-8
Python
false
false
814
py
import time import threading def squarer(range_number): print "executing first function" for i in range_number: time.sleep(0.2) print "first function executed" print i * i def cuber(range_number): print "executing second function" for i in range_number: time.sleep(0.2) ...
[ "codyowl@gmail.com" ]
codyowl@gmail.com
5adef495afd029d18aa9ceb357a9eff76567780b
29da2ca6def1270be13a3096685a8e5d82828dff
/CIM15/CDPSM/Asset/IEC61968/AssetModels/WireType.py
bcf59b5ea9bb638739531434adee70580087cd8c
[ "MIT" ]
permissive
rimbendhaou/PyCIM
75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3
d578bb0bf1af344342bd23344385ed9c06c2d0ee
refs/heads/master
2022-04-28T01:16:12.673867
2020-04-16T02:19:09
2020-04-16T02:19:09
256,085,381
0
0
MIT
2020-04-16T02:15:20
2020-04-16T02:08:14
null
UTF-8
Python
false
false
5,786
py
# Copyright (C) 2010-2011 Richard Lincoln # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish...
[ "rwl@thinker.cable.virginmedia.net" ]
rwl@thinker.cable.virginmedia.net
e620244b25282fdb8b8bd5212c5a2388e30d4e51
e4b9f220d78752d8a981fee424029af81d33fd97
/bundestagger/account/auth.py
c7dc1f7b77bf4deb3ae9e165f35a6dd92661c9f2
[ "MIT", "BSD-3-Clause" ]
permissive
stefanw/Bundestagger
8c7f4114da86a496f73d573ebb398089c9f86730
14787cf18622d0330a94696981bd28eaa8ba0f3a
refs/heads/master
2021-01-19T13:24:32.742700
2010-07-21T21:08:48
2010-07-21T21:08:48
588,293
3
0
null
null
null
null
UTF-8
Python
false
false
1,098
py
from django.core.exceptions import PermissionDenied from bundestagger.account.models import User def get_user(request): if "bundesuser" in request.session: return request.session["bundesuser"] return None def login(request, openid): try: user = User.objects.get(openid=openid) except Us...
[ "mail@stefanwehrmeyer.com" ]
mail@stefanwehrmeyer.com
8b6e304937286cbd48dd94afbc1dfcca33543918
d9c95cd0efad0788bf17672f6a4ec3b29cfd2e86
/disturbance/migrations/0049_merge_20200519_1725.py
7cf0729a6cb72a60be821d3ef5de19151d9fe4df
[ "Apache-2.0" ]
permissive
Djandwich/disturbance
cb1d25701b23414cd91e3ac5b0207618cd03a7e5
b1ba1404b9ca7c941891ea42c00b9ff9bcc41237
refs/heads/master
2023-05-05T19:52:36.124923
2021-06-03T06:37:53
2021-06-03T06:37:53
259,816,629
1
1
NOASSERTION
2021-06-03T09:46:46
2020-04-29T03:39:33
Python
UTF-8
Python
false
false
346
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2020-05-19 09:25 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('disturbance', '0048_auto_20200519_1605'), ('disturbance', '0046_auto_20200519_1657'), ] ...
[ "brendan.blackford@dbca.wa.gov.au" ]
brendan.blackford@dbca.wa.gov.au
88be350b1cc3b2dd76cfaa9092e6d454e2c829db
7f4fb112bc9ab2b90f5f2248f43285ce9ac2e0a0
/src/igem/neutronics/water/bare/water-backfill/50wt/plot_all.in.one_cask.thickness_dose.rate_t4045_south.py
a5ef21a4525cfefe4376d5c1fad37e3776adb498
[]
no_license
TheDoctorRAB/plot
dd3b5134c91c8fa7032fcc077c5427b26a80e49d
ed6746d511222c03e79f93548fe3ecd4286bf7b1
refs/heads/master
2021-07-11T10:21:19.347531
2020-07-16T17:13:15
2020-07-16T17:13:15
20,462,189
0
0
null
null
null
null
UTF-8
Python
false
false
6,114
py
######################################################################## # R.A.Borrelli # @TheDoctorRAB # rev.11.March.2015 ######################################################################## # # Plot routine # All in one file, with no separate control input, lib files # Plot data is contained in a separate data f...
[ "borrelli@localhost.localdomain" ]
borrelli@localhost.localdomain
2e1af62b8885e14dace3a366cbc04710bfeed19c
f6703b2afca284bf75e0dbf8f61d77e5251f905c
/euler368.py
f3c8ae9d070a4127d513a10655664dc7fbf55a4c
[]
no_license
rwieckowski/project-euler-python
2a7aa73670b4684f076ad819bfc464aa0778f96c
be9a455058b20adfd32c814effd8753cc9d39890
refs/heads/master
2021-01-10T21:10:44.875335
2015-06-23T13:29:58
2015-06-23T13:29:58
37,920,684
0
1
null
null
null
null
UTF-8
Python
false
false
4,540
py
""" <P><table ><tr> <td>The <b> harmonic series </b> 1</td> <td> </td><td><table class="frac"> <tr><td>1</td></tr> <tr> <td class="overline">2</td></tr> </table> </td> <td></td> <td><table class="frac"> <tr><td>1</td></tr> <tr> <td class="overline">3</td></tr> <...
[ "rwieckowski@ivmx.pl" ]
rwieckowski@ivmx.pl
8c59c58d386177253293e9defb8e3d3f496df206
a44b780fef962bd03cc9e893026841735772ba98
/mdx_mathjax.py
40d329075a616657ca1b6bb426be2f5474519def
[]
no_license
liuyug/python-markdown-mathjax
188a7f2326c443e045085f0803502e9d9e7556fc
64364fe5a812069c4b2178665b924123f673d862
refs/heads/master
2022-11-10T15:59:50.806335
2020-06-28T13:19:51
2020-06-28T13:19:51
115,597,631
1
0
null
null
null
null
UTF-8
Python
false
false
4,514
py
# -*- coding: utf-8 -*- # based on mitya57/python-markdown-math import re from markdown.inlinepatterns import Pattern from markdown.extensions import Extension from markdown.util import AtomicString, etree class MathJaxExtension(Extension): asciimath_delimiters = ('\\`',) latexmath_delimiters = ('$$', '\\('...
[ "liuyug@gmail.com" ]
liuyug@gmail.com
59a0977cec500d13c1b5beeae68381a31cc3ec4f
2e786f5371931ef63629fa5799f7249393b73a7d
/ax/models/tests/test_torch_model_utils.py
5d628205ca98e2cba19ead52706605a038046594
[ "MIT" ]
permissive
chmodawk/Ax
ad99d3235897ab244adbde236ed4a3fc13d93715
0d0676f7e23264f72760c4af6563f9d43c24a27b
refs/heads/master
2023-07-04T11:10:59.234347
2021-07-23T22:46:03
2021-07-23T22:47:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,854
py
#!/usr/bin/env python3 # 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. import numpy as np import torch from ax.exceptions.model import ModelError from ax.models.torch.utils import ( _gen...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
e41346ff53281b486b297e7b90ae640e21848b9c
f139a99d51cfa01a7892f0ac5bbb022c0cee0664
/Pythonlogy/draft/Pusher/Drafts/__init__ copy.py
f692548f1c4eeace556546d4d1cb67cad96a60bc
[ "MIT" ]
permissive
Ledoux/ShareYourSystem
90bb2e6be3088b458348afa37ace68c93c4b6a7a
3a2ffabf46f1f68b2c4fd80fa6edb07ae85fa3b2
refs/heads/master
2021-01-25T12:14:34.118295
2017-01-12T14:44:31
2017-01-12T14:44:31
29,198,670
0
1
null
null
null
null
UTF-8
Python
false
false
2,326
py
# -*- coding: utf-8 -*- """ <DefineSource> @Date : Fri Nov 14 13:20:38 2014 \n @Author : Erwan Ledoux \n\n </DefineSource> Storer instances """ #<DefineAugmentation> import ShareYourSystem as SYS BaseModuleStr="ShareYourSystem.Objects.Structurer" DecorationModuleStr="ShareYourSystem.Classors.Classer" SYS.setSubMo...
[ "erwan.ledoux@ens.fr" ]
erwan.ledoux@ens.fr
fdc93415a4ac8ec82002da7b8ca0d4cf06b8bba3
d44d2c48baf004ba12eecb0cbcef4801fcb639d7
/test_platform/interface_app/views/testtask_api.py
b82b7f3fd022a1926971f713db91615ea47fd469
[]
no_license
quanbanno2/test_platform
ae16a2be4ab618e1dffe2d71a824065e2a1afc45
387e81d7ba0241355849baf2d0b55865dcdc493d
refs/heads/master
2020-04-18T12:18:17.961529
2018-12-11T15:52:58
2018-12-11T15:52:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
829
py
import json import requests from test_platform import common from interface_app.models import TestTask from project_app.models import Project, Module """ 说明:该文件中的接口由前段JS调用,返回JSON格式数据。 """ # 保存任务 def save_task_data(request): if request.method == "POST": name = request.POST.get("task_name", "") describe = request...
[ "fnngj@126.com" ]
fnngj@126.com
7da2ba8b0608af7c468919d6a28e886fc49b12b0
c273353ab076d2ceea7cbadee82b7671c135a99e
/openprocurement/auctions/core/plugins/contracting/v2_1/adapters.py
fa7c21fa71b0a05ed025e3113ada37fea5575c9d
[ "Apache-2.0" ]
permissive
openprocurement/openprocurement.auctions.core
28a77ae735e7d74674cc96f90b5b76c81defd24f
b4ed171f990e2b27b2547160df7d5ac968a1c477
refs/heads/master
2020-12-03T14:16:11.388446
2019-03-27T14:18:05
2019-03-27T14:18:05
67,410,304
2
12
Apache-2.0
2022-12-20T07:48:37
2016-09-05T10:08:32
Python
UTF-8
Python
false
false
3,895
py
# -*- coding: utf-8 -*- from openprocurement.api.utils import ( get_now, error_handler, validate_with, ) from openprocurement.auctions.core.plugins.contracting.base.adapters import ( BaseContractManagerAdapter ) from openprocurement.auctions.core.plugins.contracting.v2_1.validators import ( validat...
[ "leitsius@gmail.com" ]
leitsius@gmail.com
f1b05883c546439a442e03639c51cfb14c854560
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2858/60731/289107.py
3449a9c3d31dfe8ebb3550d4ad6e38ffa25bd884
[]
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
267
py
n=int(input()) matrix=[] maxnum=1 for i in range(n): line=[1]*n matrix.append(line) for i in range(1,n): for j in range(1,n): matrix[i][j]=matrix[i-1][j]+matrix[i][j-1] if matrix[i][j]>maxnum: maxnum=matrix[i][j] print(maxnum)
[ "1069583789@qq.com" ]
1069583789@qq.com
b9a7d399eb139184586628f9392694dd1f29c5bd
9110f6b1251e002ee7daf6e2c5c1d7ab5fedfcf8
/python-pscheduler/pscheduler/pscheduler/limitprocessor/identifier/always.py
e736b2ede103135ac9aeb3fd2fcd0b722d6fe2dc
[ "Apache-2.0" ]
permissive
perfsonar/pscheduler
8a62c076ce8a6e4a51042ed294468616885819ad
f6d04c0455e5be4d490df16ec1acb377f9025d9f
refs/heads/master
2023-08-11T02:12:15.487628
2023-07-24T15:16:00
2023-07-24T15:16:00
49,273,408
53
41
Apache-2.0
2023-07-24T14:09:18
2016-01-08T13:25:33
Python
UTF-8
Python
false
false
1,053
py
""" Identifier Class for always """ import pscheduler def data_is_valid(data): """Check to see if data is valid for this class. Returns a tuple of (bool, string) indicating valididty and any error message. """ if isinstance(data, dict) and len(data) == 0: return True, "OK" return False...
[ "mfeit@internet2.edu" ]
mfeit@internet2.edu
02da38342395d185c5afd562638b26c3cf53104e
b3d42d863b170f2a952e69c40bea727a92d95730
/c18/p360_test1861.py
bf854aac85345b7592f33d80be4dc2c018dc2974
[ "Apache-2.0" ]
permissive
HiAwesome/automate-the-boring-stuff
6e8a8aa12fc36f9d7c139f1c2ae0510df1904491
7355f53bbb0d27755fe350b84be834f3b4f9767a
refs/heads/master
2023-01-04T14:24:53.624590
2020-11-05T06:30:43
2020-11-05T06:30:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
import pyautogui im = pyautogui.screenshot() print(im.getpixel((0, 0))) print(im.getpixel((50, 200))) print(pyautogui.pixelMatchesColor(50, 200, (240, 240, 240, 255))) print(pyautogui.pixelMatchesColor(50, 200, (100, 100, 240, 255))) """ (205, 227, 242, 255) (240, 240, 240, 255) True False """
[ "moqimoqidea@gmail.com" ]
moqimoqidea@gmail.com
6b115aa1b3f87032fb3aadd39820aed4ad5cfea2
e4ab2d1102019e02a6d8fb67657b84a7b3b2d55a
/TextClassificationV2/data_loader/__init__.py
a6b881e6bb2d8eea25fcc9e727d72a57d403b825
[]
no_license
githubpgq/EmotionNet_CVPR2020
0c07950e1bc8029a6c78e34392e214b36266d1ea
7822fdf0a4ac6b6aadb5838d50529cea0cb60e49
refs/heads/master
2023-05-26T05:33:42.008577
2021-06-09T00:40:00
2021-06-09T00:40:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
# Copyright (c) 2019 Zijun Wei. # Licensed under the MIT License. # Author: Zijun Wei # Usage(TODO): # Email: hzwzijun@gmail.com # Created: 10/Mar/2019 22:08
[ "zijwei@cs.stonybrook.edu" ]
zijwei@cs.stonybrook.edu
ddb950911a806aadb9b19d96d5a57e1df4938625
124081e8c2e25b44e678f85fbd98226e9c6ccc85
/ADDENDUM. Think Python/11 Dictionaries/11-3.py
bbdfee793d1445eba078d7663487dbddcf0e5176
[]
no_license
paalso/learning_with_python
934266bdeb282304ab2a80e52137f53a0b42e68f
ed2b43c819690fcbfabf5c6d6a6f74a83cd2b48d
refs/heads/master
2021-11-22T17:17:14.931265
2021-09-13T13:52:49
2021-09-13T13:52:49
192,216,753
0
0
null
null
null
null
UTF-8
Python
false
false
2,792
py
''' Exercise 11.3. Memoize the Ackermann function from Exercise 6.2 and see if memoization makes it possible to evaluate the function with bigger arguments. A(m, n) = n + 1 if m = 0 A(m − 1, 1) if m > 0 and n = 0 A(m − 1, A(m, n − 1)) if m > 0 and n > 0. Hint: no. Solution: http://thinkpython2.co...
[ "40a.pvl@gmail.com" ]
40a.pvl@gmail.com
4499251ab7233cfc6cc2603a29b353c392093eb7
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/hackerrank/HackerrankPractice-master/Python/03. Strings/002. String Split and Join.py
262f955e95b7d7fbc4a4217c707190eb6031f3f6
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
149
py
# Problem: https://www.hackerrank.com/challenges/python-string-split-and-join/problem # Score: 10 ___ split_and_join(line r.. "-".j..(line.s..
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
9aeb6d11c4d5d37cb0436ff033b822ea11fa14de
b174d505ceb7a58b6fbb70f3891ca815b56b5f2a
/textformer/models/decoders/self_attention.py
36a843e7ad0ae7358e36943a005751320e330b48
[ "Apache-2.0" ]
permissive
gugarosa/textformer
5a8b55b68853542e59729f4f4138a71a52c2a3f8
cccc670d48995fa0bfbdf9fc8013d13a90ea5e84
refs/heads/master
2021-12-04T11:25:51.499222
2021-11-08T19:24:52
2021-11-08T19:24:52
241,983,945
3
0
null
null
null
null
UTF-8
Python
false
false
5,541
py
"""Self-Attention decoder. """ import math import torch from torch import nn import textformer.utils.logging as l from textformer.core import Decoder from textformer.models.layers import MultiHeadAttention, PositionWideForward logger = l.get_logger(__name__) class SelfAttentionLayer(nn.Module): """A SelfAtten...
[ "gth.rosa@uol.com.br" ]
gth.rosa@uol.com.br
c5eb62099d20024ffdda07e4751b3de1e3ee5a3e
3c782925ac5ff85ff25232a888a6f42ac37abbad
/pisense/exc.py
064ba29388049dcb9af8f801f4f8551cd9c47457
[ "BSD-3-Clause" ]
permissive
waveform80/pisense
196fb1407b0c988a9cb82179ece8cc0d549faac5
7e60fdac25d36ae2a5e16242907823230f4d4948
refs/heads/master
2023-08-14T19:52:00.311346
2019-10-27T18:33:22
2020-05-09T12:29:10
43,305,519
7
3
BSD-3-Clause
2023-07-26T18:44:22
2015-09-28T14:21:48
Python
UTF-8
Python
false
false
2,283
py
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Alternative API for the Sense HAT # Copyright (c) 2016-2018 Dave Jones <dave@waveform.org.uk> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of...
[ "dave@waveform.org.uk" ]
dave@waveform.org.uk
85c3ce8e7b3bdb38430f2eb8770af9d8b762808d
d0e268862f359bbeec426b00a0c45788f6fb0b4e
/lesson43-nn_Module/main.py
ebe2c96aff77a04ea41874d607f0167f84da9986
[]
no_license
jpegbert/PyTorch
f87c2e38572c51842785de5ed1b39bb641402ac6
482421c76a093312ffeff7e5af4ecd3ab0cdcf30
refs/heads/master
2023-08-27T03:56:26.883297
2021-11-08T06:03:30
2021-11-08T06:03:30
326,677,679
2
1
null
null
null
null
UTF-8
Python
false
false
2,037
py
import torch from torch import nn class MyLinear(nn.Module): def __init__(self, inp, outp): super(MyLinear, self).__init__() # requires_grad = True self.w = nn.Parameter(torch.randn(outp, inp)) self.b = nn.Parameter(torch.randn(outp)) def forward(self, x): x = x @ sel...
[ "jiangpeng.jiang@zhaopin.com.cn" ]
jiangpeng.jiang@zhaopin.com.cn
895605a48b66905af73eaa0bbad53d93ea900231
edcc2f90e91cc781ed6e305daa5f6cb539533897
/ncc/criterions/summarization/__init__.py
5e3f72cbf583273c1356aa0077426d0c513b50ec
[ "MIT" ]
permissive
keiouok/naturalcc
d364639700d137720242a32b74b3ac48d0e94b76
7bab9a97331fafac1235fb32de829ff8d572320f
refs/heads/master
2023-06-03T10:38:42.481107
2021-06-20T00:52:52
2021-06-20T00:52:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
236
py
from .be_cross_entropy import BECrossEntropyCriterion from .bos_cross_entropy import BosCrossEntropyCriterion from .codenn_cross_entropy import CodeNNCrossEntropyCriterion from .neural_transformer_loss import NeuralTransformerCriterion
[ "yanghece96@gmail.com" ]
yanghece96@gmail.com
4904a708198e47344e6c6de7422dc9403838d2f6
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/3595.py
856a4d3a40e8ff3d544e2835d6848396bdfe4f8b
[]
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
889
py
def check_tidy(num): s = str(num) retVal = True if len(s) > 0: for i in range(1,len(s)): prev = s[i-1] curr = s[i] if int(curr) < int (prev): retVal = False break; return retVal def check_large_tidy(num): s = str(num) st= s n = len(s) pos = n-1 retVal = num if check_tidy(num): ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
0399c665c9dc0512b5e41cdcd67caf70adc75c2b
440c728feb164f2685ad62304919607289c15a43
/flask-blog/app/app.py
3b9218713d46bc5fb365d9cbdb7ae022b62c494e
[]
no_license
VToropov1337/Scripts-examples
d902d90b740f44bebd64854f0f7dc4ccf3f51db7
d87f2444276bb51cd0dc1fa50ee968000e77b668
refs/heads/master
2021-05-25T09:35:14.030487
2020-08-06T12:11:10
2020-08-06T12:11:10
126,997,889
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
from flask import Flask from config import Configuration from flask_sqlalchemy import SQLAlchemy from flask_migrate import Migrate, MigrateCommand from flask_script import Manager app = Flask(__name__) app.config.from_object(Configuration) db = SQLAlchemy(app) migrate = Migrate(app, db) manager = Manager(app) manag...
[ "vladimirtoropov87@gmail.com" ]
vladimirtoropov87@gmail.com
28726ebfcf96d9b27861a81dffc4ac29f9a6b2ec
2ea33df726a1a3867ad7fecfc334e8dfb15c4458
/packages/herwigpp/package.py
4966dceff4c9613fbcd8c1ea4c7a97d6e495c155
[]
no_license
gartung/cmssw-spack
fe0ad7997777cfe58de273a5cd2e2aa368d1a1e2
37795d92596303197710fb043723c03775339220
refs/heads/master
2023-01-22T11:40:03.835528
2021-08-04T15:03:34
2021-08-04T15:03:34
78,494,787
0
0
null
null
null
null
UTF-8
Python
false
false
2,069
py
from spack import * import os,sys class Herwigpp(Package): url = "https://www.hepforge.org/archive/herwig/Herwig-7.1.4.tar.bz2" version('7.1.4', sha256='bdd55ac0dcc9e96d2f64fe6eaa4d7df38709e9fc3446fe16eae3200cbe0c99ab', url="https://www.hepforge.org/archive/herwig/Herwig-7.1.4.tar.bz2") ...
[ "gartung@fnal.gov" ]
gartung@fnal.gov
6fd151351d62752612d923c7ec6924e738a68cc5
6b58f55ce13c230818f1607de7dac27c2144eae6
/parser-whois.py
e36d67b70eedc43822a718b6b06ee7c938734766
[]
no_license
AzureCloudMonk/whois-full-txt-search
6cd204bcd206107d665abbf70fe47c72d8498208
0c0d86876f631b9dd808aa49a861ad1a2fe44a93
refs/heads/master
2020-04-03T11:02:25.104846
2018-03-22T11:34:26
2018-03-22T11:34:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,602
py
# -*- coding: utf-8 -*- import urllib import urllib2 import json import xlwt import xlrd import sys, getopt #import pprint import os def PrintHelp(): msg = "Usage: python parser-whois.py <file> \r\n" msg += "This script performs full text search in WHOIS data of RIPE database.\r\n" msg += "Please, install xlwt and ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
897c22b3829a2d324ffbb7af6e9d0ed3e7add327
f848a464dd213ac8f12bcaa3daa03ce42c97f727
/nitrogen/view/mako.py
e86dc1c390df9d8d223785790ef9e8a73ff35b77
[ "BSD-3-Clause" ]
permissive
mikeboers/Nitrogen
c56fdf3e06a8e12bbc44a6470a550a80ef360061
1af2883f59f13a6752b3527bed8574c300f2395a
refs/heads/master
2023-08-16T21:12:23.495338
2013-01-28T17:27:28
2013-01-28T17:27:28
515,709
0
0
null
null
null
null
UTF-8
Python
false
false
3,952
py
from __future__ import absolute_import import json import pprint import random import re import datetime import collections import threading from mako.lookup import TemplateLookup as BaseTemplateLookup from mako.exceptions import TopLevelLookupException from mako.template import Template from mako.filters import xml...
[ "github@mikeboers.com" ]
github@mikeboers.com
a12236c2d0a2ac171daa2541ef5d6f8acb154201
f5d17f536bd8617ac3d56c7d5aca4002444b481d
/requests3/toolbelt/threaded/__init__.py
ffaf770ad4de9e3ce9902d744eef97c5339c7186
[ "Apache-2.0" ]
permissive
cclauss/requests3
a2df822642b4ecbbf9147b1df5e804e4b3d7ca35
260cd50aec1bd52b58968c3dfd0d5e850d563ac2
refs/heads/master
2020-05-15T18:47:10.559821
2019-04-20T17:30:15
2019-04-20T17:30:15
182,370,659
0
0
NOASSERTION
2019-04-20T06:41:56
2019-04-20T06:41:55
null
UTF-8
Python
false
false
3,213
py
""" This module provides the API for ``requests_toolbelt.threaded``. The module provides a clean and simple API for making requests via a thread pool. The thread pool will use sessions for increased performance. A simple use-case is: .. code-block:: python from requests_toolbelt import threaded urls_to_get...
[ "me@kennethreitz.org" ]
me@kennethreitz.org
fa218f52a681946de8b9dcf96918954538eff6c9
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/f16ec4e64c37ec8a1df072812327e40fde06f199-<_requires_modification>-bug.py
38262ea64d34398658c8fe7e22cba17e59b433d0
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
def _requires_modification(self): 'Check if cluster requires (nondestructive) modification' modifiable_data = { 'NumCacheNodes': self.num_nodes, 'EngineVersion': self.cache_engine_version, } for (key, value) in modifiable_data.items(): if ((value is not None) and (self.data[key] ...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
56ece63f78dd152832c53a387cfb483206034ea8
44a2741832c8ca67c8e42c17a82dbe23a283428d
/cmssw/HeavyIonsAnalysis/JetAnalysis/python/jets/akPu3PFJetSequence_pPb_jec_cff.py
bc81e2bbddc931157c8327a6a12da5bf1bc3a392
[]
no_license
yenjie/HIGenerator
9ff00b3f98b245f375fbd1b565560fba50749344
28622c10395af795b2b5b1fecf42e9f6d4e26f2a
refs/heads/master
2021-01-19T01:59:57.508354
2016-06-01T08:06:07
2016-06-01T08:06:07
22,097,752
0
0
null
null
null
null
UTF-8
Python
false
false
4,521
py
import FWCore.ParameterSet.Config as cms from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import * from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import * akPu3PFmatch = patJetGenJetMatch.clone( src = cms.InputTag("akPu3PFJets"), matched = cms.InputTag("ak3HiGenJetsCleaned") ) akPu3PFpar...
[ "dgulhan@cern.ch" ]
dgulhan@cern.ch
1b9bbea102c747cc8c7a95e3269ea3443d68280b
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_299/ch63_2020_04_21_00_39_35_352697.py
87399ee1557b06cb03d7e4c70b607e7620209c29
[]
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
183
py
def nome_usuario(string): i=0 for posicao,caractere in enumerate(string): if caractere == '@': i=posicao nome = string[:i] return nome
[ "you@example.com" ]
you@example.com
2cc6da3242457ca12242d2a141050290498d0ccf
609d5408f302c9188b723998762c2c1f7b883af9
/.closet/jython.configurator.efr32/1.0.0.201606231656-435/host_py_rm_studio_internal/host_py_rm_studio_internal_efr32xg1xfull/revA2/GPCRC.py
494656b2521fb254c58a629182e2ec997e911d4f
[]
no_license
acvilla/Sundial-Beta
6ea4fd44cbf7c2df8100128aff5c39b6faf24a82
9f84e3b5a1397998dfea5287949fa5b1f4c209a6
refs/heads/master
2021-01-15T15:36:19.394640
2016-08-31T20:15:16
2016-08-31T20:15:16
63,294,451
1
0
null
null
null
null
UTF-8
Python
false
false
2,510
py
__all__ = [ 'RM_Peripheral_GPCRC' ] from static import Base_RM_Peripheral from GPCRC_register import * class RM_Peripheral_GPCRC(Base_RM_Peripheral): def __init__(self, rmio, label): self.__dict__['zz_frozen'] = False super(RM_Peripheral_GPCRC, self).__init__(rmio, label, 0x4001C000, ...
[ "acvilla@bu.edu" ]
acvilla@bu.edu
87e6f075784d491876298da35462abfaaee53037
85d3e4f8ab9bf3cc46dc6c8a0554fa087e9e8dc3
/user/urls.py
a40a1172a0e4ed598402733c32cff12ef5ff9a3a
[]
no_license
good-reads/backend
a3e0d54bba6808bfdcaf6f6f97e2708abe088ffd
15bbe6f5e780ef4d6e041f5a820df1944030a026
refs/heads/master
2022-12-21T11:00:15.063157
2020-09-12T04:57:15
2020-09-12T04:57:15
244,574,969
0
0
null
2022-12-08T10:08:31
2020-03-03T07:56:54
JavaScript
UTF-8
Python
false
false
476
py
from django.urls import path from .views import * urlpatterns = [ path("auth/register/", register_account), path("auth/login/", login_account), path("auth/account/get/", get_or_update_account), path("auth/account/update/", get_or_update_account), path("list/get/", get_or_create_list), path("l...
[ "rlawndhks217@gmail.com" ]
rlawndhks217@gmail.com
6ccf47844e6248a94b54836580598386ddc77801
25ebc03b92df764ff0a6c70c14c2848a49fe1b0b
/daily/20190320/example_run_in_executor/01use_process_pool_executor.py
d42dc7189954dfe1d0f5b068f27aeac042e6d78f
[]
no_license
podhmo/individual-sandbox
18db414fafd061568d0d5e993b8f8069867dfcfb
cafee43b4cf51a321f4e2c3f9949ac53eece4b15
refs/heads/master
2023-07-23T07:06:57.944539
2023-07-09T11:45:53
2023-07-09T11:45:53
61,940,197
6
0
null
2022-10-19T05:01:17
2016-06-25T11:27:04
Python
UTF-8
Python
false
false
793
py
import logging import asyncio import time from concurrent.futures import ProcessPoolExecutor from functools import partial from mysleep import mysleep logger = logging.getLogger(__name__) async def run(): loop = asyncio.get_event_loop() st = time.time() logger.info("**start**") executor = ProcessPool...
[ "ababjam61+github@gmail.com" ]
ababjam61+github@gmail.com
bf8489e7aa2b868830ce8a42ec4737961aed1a5e
93e9bbcdd981a6ec08644e76ee914e42709579af
/co_linkedin/715_Range_Module.py
eb156b597d57e226229fd4298e19fb595750b5d3
[]
no_license
vsdrun/lc_public
57aa418a8349629494782f1a009c1a8751ffe81d
6350568d16b0f8c49a020f055bb6d72e2705ea56
refs/heads/master
2020-05-31T11:23:28.448602
2019-10-02T21:00:57
2019-10-02T21:00:57
190,259,739
6
0
null
null
null
null
UTF-8
Python
false
false
2,399
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ https://leetcode.com/problems/range-module/ A Range Module is a module that tracks ranges of numbers. Your task is to design and implement the following interfaces in an efficient manner. addRange(int left, int right) Adds the half-open interval [left, right), trac...
[ "vsdmars@gmail.com" ]
vsdmars@gmail.com
79756b98c41bd61a4f3ff98813d32c67e03ee669
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/XQwPPHE6ZSu4Er9ht_6.py
d632815d129bf175d426d40b5582529ebc0e1d4d
[]
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
2,158
py
""" A number is Economical if the quantity of digits of its prime factorization (including exponents greater than 1) is equal to or lower than the digit quantity of the number itself. Given an integer `n`, implement a function that returns a string: * `"Equidigital"` if the quantity of digits of the prime factor...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
2d3ab4a278336b7e9b68b48e325e47a17f2197d7
5963c12367490ffc01c9905c028d1d5480078dec
/homeassistant/components/hue/sensor_device.py
8670f0853a3d1abca871c36c49487cb7e98fd4b2
[ "Apache-2.0" ]
permissive
BenWoodford/home-assistant
eb03f73165d11935e8d6a9756272014267d7d66a
2fee32fce03bc49e86cf2e7b741a15621a97cce5
refs/heads/dev
2023-03-05T06:13:30.354545
2021-07-18T09:51:53
2021-07-18T09:51:53
117,122,037
11
6
Apache-2.0
2023-02-22T06:16:51
2018-01-11T16:10:19
Python
UTF-8
Python
false
false
2,101
py
"""Support for the Philips Hue sensor devices.""" from homeassistant.helpers import entity from .const import DOMAIN as HUE_DOMAIN class GenericHueDevice(entity.Entity): """Representation of a Hue device.""" def __init__(self, sensor, name, bridge, primary_sensor=None): """Initialize the sensor.""" ...
[ "noreply@github.com" ]
BenWoodford.noreply@github.com
fdea41609301002c40764786612707234460e31d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03078/s657471647.py
d4b33007b37c90094aa0fb6dad2e349497ba6aac
[]
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
498
py
X,Y,Z,K = map(int,input().split()) A = sorted(list(map(int,input().split())),reverse=1) B = sorted(list(map(int,input().split())),reverse=1) C = sorted(list(map(int,input().split())),reverse=1) num= [] for xi in range(1,X+1): for yi in range(1,Y+1): for zi in range(1,K//(xi*yi)+1): if xi*yi*zi <...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1f0dc19c9f612faf00cfc27658d2503cd705c253
4c8e35f121a1c156593a9482ffa6367997b2ed8e
/ingenico/connect/sdk/pooled_connection.py
5c9e47692a2a609b43ff996771915bb8338f4ce8
[ "MIT" ]
permissive
Ingenico-ePayments/connect-sdk-python3
693f8a9e721083b3e6a65b62d44cb4847cc4fe9b
de656ed2b487dac07fffc5fbace1c272992e627a
refs/heads/master
2023-08-20T18:01:40.000985
2023-08-11T07:42:05
2023-08-11T07:42:05
69,236,688
13
14
null
null
null
null
UTF-8
Python
false
false
793
py
from .connection import Connection # noinspection PyAbstractClass class PooledConnection(Connection): """ Represents a pooled connection to the Ingenico ePayments platform server. Instead of setting up a new HTTP connection for each request, this connection uses a pool of HTTP connections. """ ...
[ "jenkins@isaac.nl" ]
jenkins@isaac.nl
7821ae0c60f4cd310466897d61f9daf898afcdea
e36225e61d95adfabfd4ac3111ec7631d9efadb7
/problems/EE/auto/problem19_EE.py
3da70772b6083bb7a06c12b54512f54dd1a455ec
[ "BSD-3-Clause" ]
permissive
sunandita/ICAPS_Summer_School_RAE_2020
d2ab6be94ac508e227624040283e8cc6a37651f1
a496b62185bcfdd2c76eb7986ae99cfa85708d28
refs/heads/main
2023-01-01T02:06:40.848068
2020-10-15T17:25:01
2020-10-15T17:25:01
301,263,711
5
2
BSD-3-Clause
2020-10-15T17:25:03
2020-10-05T01:24:08
Python
UTF-8
Python
false
false
1,752
py
__author__ = 'patras' from domain_exploreEnv import * from timer import DURATION from state import state, rv DURATION.TIME = { 'survey': 5, 'monitor': 5, 'screen': 5, 'sample': 5, 'process': 5, 'fly': 3, 'deposit': 1, 'transferData': 1, 'take': 2, 'put': 2, 'move': 10, '...
[ "sunandita.patra@gmail.com" ]
sunandita.patra@gmail.com
dda483bdda13c15583aa65f7e5bb87424213eceb
8d699620655441634266c16d23594d8271a6d01e
/rpg/main.py
545aa7f4fb92697330c0064528660ca142195313
[ "MIT" ]
permissive
webalorn/unicode_rpg
10b1668aea59d5bf4dfc03fb1e0b834c263dc715
91897e6307609c79d7c5b0ca1b639c622d85e6a2
refs/heads/master
2023-01-24T05:26:47.433032
2020-02-08T09:55:56
2020-02-08T09:55:56
233,220,474
0
0
null
null
null
null
UTF-8
Python
false
false
4,190
py
from engine import * import engine.consts as C import argparse, textwrap PROG_DESCRIPTION = """{}, version {} The unicode RPG is game designed to work in a command-line environment, made with python3. ========== GENERAL INFORMATIONS ========== This is the command to start the unicode RPG. To make sure it works prope...
[ "webalorn@gmail.com" ]
webalorn@gmail.com
a7d541c3c1e1de0b70e68dc9c7a59588b5caf374
accbc6c34136702831ab8cf0869ccb3da82c041c
/spinoffs/inference_gym/targets/model_test.py
b0601cde91cca7f985fc772fcc07c9390dd87654
[ "Apache-2.0" ]
permissive
KonstantinKlepikov/probability
a4290375708a3e57ccfb6a719bba3a286bbad1b7
0cc6c5febf3b10ece5bb2b9877bd695137a420ea
refs/heads/master
2022-12-06T16:14:03.446482
2020-08-28T19:17:04
2020-08-28T19:18:28
291,145,141
1
0
Apache-2.0
2020-08-28T21:01:16
2020-08-28T21:01:16
null
UTF-8
Python
false
false
3,448
py
# Lint as: python3 # Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required ...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
ee4f074bbe71ce23f813a00ffba3ab4208d5d0e0
ec59f44931527284f872de0f313499046cbb602e
/source-builder/sb/darwin.py
d79cf47116b2bbcd0dcafe95fb6f1086084d65cf
[ "ISC" ]
permissive
KinseyMoore/rtems-source-builder
2c4e8d8f5677eafc4a26010763ea0f288cf40bd2
9c825f0b9a4eff4f87d22e12d3c94072712c3918
refs/heads/master
2020-04-30T09:34:56.236727
2019-03-14T18:19:28
2019-03-14T18:44:36
176,752,287
0
0
NOASSERTION
2019-03-20T14:30:36
2019-03-20T14:30:36
null
UTF-8
Python
false
false
3,380
py
# # RTEMS Tools Project (http://www.rtems.org/) # Copyright 2010-2012 Chris Johns (chrisj@rtems.org) # All rights reserved. # # This file is part of the RTEMS Tools package in 'rtems-tools'. # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, pro...
[ "chrisj@rtems.org" ]
chrisj@rtems.org
9f31c28f96ff71ddf88f0e277eda5d5fb6ee48d8
d76a31764ec429f094d4ef9559a4a10bd0f51510
/test/test_preprocessing_by_func.py
60c086574bfac4e6599f7bbe72a0ec5a0fc0cb8f
[ "Apache-2.0", "MIT" ]
permissive
kerlomz/captcha_trainer
374a74f0f81638c30b3043e11c5743cc2e5427db
6fd35c0c789aaa43130de46d4c04622ec2948052
refs/heads/master
2023-08-14T08:13:48.564910
2022-10-24T21:17:32
2022-10-24T21:17:32
145,080,024
2,977
841
Apache-2.0
2022-03-09T07:49:17
2018-08-17T06:17:47
Python
UTF-8
Python
false
false
2,187
py
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # Author: kerlomz <kerlomz@gmail.com> if __name__ == '__main__': import io import os import PIL.Image import hashlib import cv2 import numpy as np from pretreatment import preprocessing_by_func src_color = "yellow" root_dir = r"H:\Sampl...
[ "kerlomz@gmail.com" ]
kerlomz@gmail.com
47052894fedc9e20b5305ecbfbaff15b8805dc79
8d09a0a95fa698334657a1cb98a5645db982bbe4
/ws/RLAgents/E_SelfPlay/search/cache_mgt.py
d54ab1c7ddc88dead010fe3ae0269083ff5da822
[]
no_license
basab-dattaray/RLGames
0aa548e4d6fd531dbeebe617c37d42066b6f6097
94b37fc5d7038db67c98863d1f2f1938837c1046
refs/heads/master
2023-06-17T17:58:23.532753
2021-07-09T01:51:34
2021-07-09T01:51:34
277,697,939
0
0
null
null
null
null
UTF-8
Python
false
false
1,587
py
from collections import namedtuple def cache_mgt(): dictionary = {} hit_count = 0 access_count = 0 overwrite_try_count = 0 def fn_does_key_exist(key): return key in dictionary def fn_get_data(key): nonlocal hit_count, access_count access_count += 1 hit_count...
[ "basab.dattaray@gmail.com" ]
basab.dattaray@gmail.com
9937da5a7aca7666728b7a136b0aee1e39951c12
8021839eb48093254c1ed01a9355044fa0623927
/schema/recode.py
1d2db88b962342cd45a2da914b34bd0a3bb6dbf0
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
simsong/ctools
a9b7b643972898c34986e7cbaabbd07c5d9e9385
875c58c40fbde086d83be6c0a7e3bc0f6454b452
refs/heads/main
2023-09-03T19:47:28.472330
2023-09-02T21:17:46
2023-09-02T21:17:46
139,169,050
7
3
NOASSERTION
2023-09-11T10:31:29
2018-06-29T15:54:55
Python
UTF-8
Python
false
false
1,132
py
# Recodes are implemented as compiled code. The function is put into the __main__ namespace. # https://stackoverflow.com/questions/19850143/ import re class Recode: """Represent a recode from one table to another. A recode consists of two parts: DESTINATION=SOURCE Where DESTINATION is a python variable, ...
[ "simsong@acm.org" ]
simsong@acm.org
010d18b6025357e019c26a1aa35f208fb1875f53
776e2c42784d2fc9de758b34bb37180256cc848a
/xl-deploy-9.5.1-server/ext/uccm/kubernetes/service/planningScripts/operations.py
24b356757933c5b12df05958f1f85be3505a862d
[]
no_license
bmoussaud/xld-uccm-plugin
fa3400405dba58182a8b5225587180dc3a895eeb
be9501fdfaf333b24ef088f04b832dc54d240a4c
refs/heads/master
2021-06-14T23:38:14.693371
2021-03-12T05:54:34
2021-03-12T05:54:34
171,808,180
0
2
null
2021-03-31T21:04:44
2019-02-21T05:47:37
JavaScript
UTF-8
Python
false
false
1,666
py
import uccm.deltas.compute reload(uccm.deltas.compute) from uccm.deltas.compute import DeltasBuilder, StepGenerator class ServiceStepGenerator(StepGenerator): def create(self, delta, deployed, port): if port.exposeAsService: context.addStepWithCheckpoint( steps.kubectlApply(*...
[ "bmoussaud@xebialabs.com" ]
bmoussaud@xebialabs.com
4aa67a7acf50adb662cdcb5804e0e25f99e46b18
f3211ffd69c3923ca537203af5c08cc3f980c831
/flaskblog/users/routes.py
419d48cd19f39491b0fec437e5cbadd7249b7d52
[]
no_license
DeeMATT/FlaskBlog
425cd4b3253a4b0b07389b16ece14e8c89100cd1
4a469bbff70b07f0d51452e7a7f466965650ce5e
refs/heads/master
2022-12-13T00:59:12.990188
2019-07-31T13:29:45
2019-07-31T13:29:45
197,786,720
0
0
null
2022-12-07T23:37:35
2019-07-19T14:27:12
HTML
UTF-8
Python
false
false
4,571
py
from flask import render_template, url_for, flash, redirect, request, Blueprint from flask_login import login_user, current_user, logout_user, login_required from flaskblog import db, bcrypt from flaskblog.models import User, Post from flaskblog.users.forms import (RegistrationForm, LoginForm, UpdateAccountForm, ...
[ "mattode@outlook.com" ]
mattode@outlook.com