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
7aed41e470d9309b7cd0c70725fc90f532a5f464
c3477dc5c9c2886d3e7e0e33a3347ccde756c0b7
/Breadth First Search/130. Surrounded Regions.py
e9a379fc5e942a10ef0d8daa4c9e6fb14bfaf6ca
[]
no_license
Nora-Wang/Leetcode_python3
b8d7b93b61faea6aacd31a0c357c661571f6695c
b4ce775f366ae096d90d2302199a75023b2dcc17
refs/heads/master
2023-09-04T07:09:30.162702
2023-08-28T13:41:48
2023-08-28T13:41:48
204,764,804
6
3
null
null
null
null
UTF-8
Python
false
false
4,503
py
Given a 2D board containing 'X' and 'O' (the letter O), capture all regions surrounded by 'X'. A region is captured by flipping all 'O's into 'X's in that surrounded region. Example: X X X X X O O X X X O X X O X X After running your function, the board should be: X X X X X X X X X X X X X O X X Explanation: Surro...
[ "noreply@github.com" ]
Nora-Wang.noreply@github.com
8d5a4c16db16e807f43617adf078afa061754c99
1539f86f91ce0ee6150fba7363976d32cd37ece2
/codes_auto/100159.check-permutation-lcci.py
c78645d53c693758a46383eca384f022fb5e3c79
[]
no_license
zhpbo/LeetCode_By_Python
fdee0a8b7ea7ed1f61a99f0041e1c748e50f138c
0017b9db891d36789116f7299d32510a373e68da
refs/heads/master
2023-07-09T15:38:45.003002
2020-08-18T07:04:51
2020-08-18T07:04:51
281,598,190
0
0
null
2021-08-18T04:58:39
2020-07-22T06:47:05
null
UTF-8
Python
false
false
211
py
# # @lc app=leetcode.cn id=100159 lang=python3 # # [100159] check-permutation-lcci # class Solution: def CheckPermutation(self, s1: str, s2: str) -> bool: return sorted(s1)==sorted(s2) # @lc code=end
[ "liuyang0001@outlook.com" ]
liuyang0001@outlook.com
12fb6832b6c90c171a36b13562411e13c6d9cfe6
0920b50773cfd231137d2383695a6730d0678628
/cfd.py
e41f1af83d0141970515657988ed595983b2072e
[]
no_license
chyser/bin
05b67cf299b0e427e253abc42ca015fcdec8e84c
b54f23c6c5f1f19e426ee06c9e9faf9f561ee9a9
refs/heads/master
2021-01-19T19:35:05.801722
2015-08-19T17:58:29
2015-08-19T17:58:29
17,319,228
1
0
null
null
null
null
UTF-8
Python
false
false
993
py
#!/usr/bin/env python from __future__ import print_function from __future__ import division from __future__ import unicode_literals from __future__ import absolute_import import pylib.osscripts as oss from cf import * #------------------------------------------------------------------------------- def main(argv): #...
[ "chris.hyser@oracle.com" ]
chris.hyser@oracle.com
38886f7c80d998b36c85901e4c407cfc393cff4e
22ff0921aee459abd0a3c15281de80ba6b4035bf
/March/day 11 decorator/task/hellbhushan.py
6e32584df4c8c7c2ece212a17d610e179399e5d2
[]
no_license
BhushanTayade88/Core-Python
b0516f234b866682931af95b723adb1269fb946a
f687e4029e3a3aaf751538604dfd06386084252b
refs/heads/master
2023-08-03T02:09:38.536580
2021-10-05T17:25:20
2021-10-05T17:25:20
413,910,551
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
def outer_func(func): def inner_func(*b): for i in b: print("Hello") func(i) print("How are you") return inner_func @outer_func def m1(a): print(a) @outer_func def m2(b): print(...
[ "tayadebhushan55@gmail.com" ]
tayadebhushan55@gmail.com
97a482a1583e44ed68996a87b114c054b35cc227
4bde2d1e2282014f71b8cfec4440cb062db172cb
/side_projects/value_or_reference.py
d3b8155fa595ebed24f6709cc75cd9cf0ddce7d2
[]
no_license
MrDeshaies/NOT-projecteuler.net
6b107a515b1322fcd5f7d88e187ca2ea97edddcf
c6f0bd38d074b427345b4f5b41733bda38fbcdb4
refs/heads/master
2022-11-17T18:39:43.321814
2022-11-13T11:35:10
2022-11-13T11:35:10
201,793,983
0
0
null
2019-08-18T19:50:45
2019-08-11T17:20:18
Python
UTF-8
Python
false
false
339
py
def changex(x): x += 1 x = 3 x=1 changex(x) print(x) def changelist(x): x.append(5) x = [i ** 2 for i in x] # for i in range(len(x)): # x[i] *= 2 x = [1,2,3,4] changelist(x) print(x) class Car: pass def changecar(x): x.wheels *= 2 x = Car() x.wheels = 2 print(x.wheels) changecar...
[ "benoit.deshaies@gmail.com" ]
benoit.deshaies@gmail.com
cf0e24b2acb51b16ce64762c84db8abc6a486acd
abba8b8b92125735ebff2f5f783870f80c27bd1f
/restful/hawkeye/monitor/migrations/0036_auto_20180226_1405.py
e9f6bea28b8f8c78348c35b7acb83dbe918f59b7
[]
no_license
zsprn123/yunqu
25a5463aaece2d3f8749c6ef588ad4fcb3651360
af43f8b42129be5be82db2607c40480028057273
refs/heads/master
2022-12-22T04:37:59.989122
2018-08-30T07:59:41
2018-08-30T07:59:41
146,715,198
0
2
null
2022-12-08T00:45:43
2018-08-30T07:52:07
Roff
UTF-8
Python
false
false
828
py
# uncompyle6 version 3.2.3 # Python bytecode 3.6 (3379) # Decompiled from: Python 2.7.5 (default, Jul 13 2018, 13:06:57) # [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)] # Embedded file name: ./monitor/migrations/0036_auto_20180226_1405.py # Compiled at: 2018-08-23 19:33:14 # Size of source mod 2**32: 564 bytes from django.d...
[ "you@example.com" ]
you@example.com
61012a1359547bd0185579a18297a2726b9e08c3
708dd7f385e02dee1c34be4b9861274af0f03b84
/ucclms/migrations/0002_auto_20210802_1943.py
f6658d37562b37401d62c651f57bc253fa3680e2
[]
no_license
hamzaumar8/ucc-lms
ca7d34ea60e87ab395322a4b3bde121dc98a1320
cd023a3e7548a18446a6f6cddeacef97d4428e68
refs/heads/main
2023-08-26T12:10:06.452724
2021-10-28T15:15:53
2021-10-28T15:15:53
414,651,085
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
# Generated by Django 3.2 on 2021-08-02 19:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ucclms', '0001_initial'), ] operations = [ migrations.RenameField( model_name='book', old_name='address', ...
[ "humar6078@gmail.com" ]
humar6078@gmail.com
cb2f5661a8a71cabbf4cf22d2a5fafcafcd8f57c
de64b143a346585f51590bd674e8d13bbc672386
/algorithm/2020/0320/youngwan.py
5459408e9992a7e180548cb9e5e95240422dc559
[]
no_license
ai-kmu/etc
304ec20f59e4026025abdcbcae21863c80630dcb
9c29941e19b7dd2a2037b110dd6e16690e9a0cc2
refs/heads/master
2023-08-21T16:30:31.149956
2023-08-21T16:26:19
2023-08-21T16:26:19
199,843,899
3
24
null
2023-05-31T09:56:59
2019-07-31T11:36:16
Jupyter Notebook
UTF-8
Python
false
false
608
py
def solution(priorities, location): answer = 0 while(location != -1): printing = True now = priorities.pop(0) for num in priorities: if(now < num): printing = False priorities.append(now) if(location == 0): l...
[ "noreply@github.com" ]
ai-kmu.noreply@github.com
fc54e2569e4746bbca260624dbf6cf5a1f4dd2fa
ec38185b855e63467599fb821f478a589e89972f
/qtrader/gateways/base_gateway.py
1e8f31ff502cee4ef8751158bb718b75051cfdcb
[]
no_license
KK-Master/qtrader
475aed8407732b1aa1861ee3f4eeab522ead738c
906f79b19e78a3b3e649ff6ced01b9c172627cf7
refs/heads/master
2023-03-24T23:45:52.376633
2021-03-22T08:43:38
2021-03-22T08:43:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,066
py
# -*- coding: utf-8 -*- # @Time : 18/3/2021 1:24 PM # @Author : Joseph Chen # @Email : josephchenhk@gmail.com # @FileName: base_gateway.py # @Software: PyCharm from abc import ABC from typing import List from qtrader.core.deal import Deal from qtrader.core.order import Order from qtrader.core.security import Sto...
[ "josephchenhk@gmail.com" ]
josephchenhk@gmail.com
68db10b417411fbc5cb6fe5d124a9e6506bf3557
e0980f704a573894350e285f66f4cf390837238e
/.history/streams/blocks_20201022115529.py
14867218e10fd30e1360eb215e1db835d907db7a
[]
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
1,754
py
from wagtail.core import blocks from wagtail.images.blocks import ImageChooserBlock class TitleBlock(blocks.StructBlock): text = blocks.CharBlock( required = True, elp_text='Tekst do wyświetlenia', ) class Meta: template = 'streams/title_block.html' icon = 'edycja' ...
[ "rucinska.patrycja@gmail.com" ]
rucinska.patrycja@gmail.com
e9aa828fb2b4eaf7b7ad1505409b462098fd8bfc
1be2cbc9fd62cf77cc05a64807acf7d857b84eee
/tests/conftest.py
ce7dd1f9c2951aa6b01606579347a9a18feb36e7
[]
no_license
ikamensh/blackopt
4fdce2c0147b1a5a85024c9b59925d3d1a35b13f
a6ab24ce1be21a5ca9e26d0bb1f59bb50fd007a2
refs/heads/master
2023-01-23T12:55:42.087216
2020-12-05T19:18:30
2020-12-05T19:18:30
178,232,685
0
0
null
2020-10-18T20:57:29
2019-03-28T15:33:53
Python
UTF-8
Python
false
false
983
py
import os import sys import pytest cur_dir = os.path.dirname(__file__) blackopt_dir = os.path.join(cur_dir, "..") sys.path.append(blackopt_dir) from blackopt.config import set_rootdir, get_rootdir from blackopt.examples.problems.tsp import TspSolution, TspProblem from blackopt.examples.problems.bumpy import BumpySol...
[ "ikkamens@amazon.com" ]
ikkamens@amazon.com
78bfc2e96fdb0ef3ed85828e0d63caa430ef25f8
a9e60d0e5b3b5062a81da96be2d9c748a96ffca7
/configurations/i21-config/scripts/utils/beamline.py
d1d13deb935bc83291cc14edafb8e77909b45ab5
[]
no_license
openGDA/gda-diamond
3736718596f47607335ada470d06148d7b57526e
bbb64dcfd581c30eddb210c647db5b5864b59166
refs/heads/master
2023-08-16T08:01:11.075927
2023-08-15T16:01:52
2023-08-15T16:01:52
121,757,699
4
1
null
null
null
null
UTF-8
Python
false
false
1,148
py
from gda.jython.commands.GeneralCommands import alias from utils.BeamlineFunctions import BeamlineFunctionClass from gda.configuration.properties import LocalProperties print("-"*100) print("create 'beamlinefunction' object and commands 'last_scan_file', 'get_title', 'set_title', 'get_visit', 'set_visit', 'set_directo...
[ "fajin.yuan@diamond.ac.uk" ]
fajin.yuan@diamond.ac.uk
033e4689de2be6b7cc1a75c2398a8a1c85cf3e96
6b5f97d9e48848a25f398af8740989ecc28b35ce
/itp1/simple_calculator.py
a5a290a4b443c1ee6654ba53f272c6d528d73e0a
[]
no_license
hihumi/aojnote
32452de87566868b37deb17ccf032c3fdf18138a
9d2d4640e84e0f00242a27c4728d221ef8ed6dab
refs/heads/master
2021-01-12T04:52:58.895438
2017-01-21T04:47:55
2017-01-21T04:47:55
77,806,924
0
0
null
null
null
null
UTF-8
Python
false
false
420
py
#!/usr/bin/env python3 def simple_calculator(): while True: a, op, b = input().split() a = int(a) b = int(b) if op == '+': print(a + b) elif op == '-': print(a - b) elif op == '*': print(a * b) elif op == '/': ...
[ "yui.maa5800@gmail.com" ]
yui.maa5800@gmail.com
84fa837a2a29a818c147f4e0529b1e8523aa13f2
81407be1385564308db7193634a2bb050b4f822e
/the-python-standard-library-by-example/bz2/bz2_server.py
b46c1d20333c42dd47f6864d037f901b9e9f5701
[ "MIT" ]
permissive
gottaegbert/penter
6db4f7d82c143af1209b4259ba32145aba7d6bd3
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
refs/heads/master
2022-12-30T14:51:45.132819
2020-10-09T05:33:23
2020-10-09T05:33:23
305,266,398
0
0
MIT
2020-10-19T04:56:02
2020-10-19T04:53:05
null
UTF-8
Python
false
false
3,410
py
#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #__version__ = "$Id$" #end_pymotw_header import bz2 import logging import SocketServer import binascii BLOCK_SIZE = 32 class Bz2RequestHandler(SocketServer.BaseRequestHandler): logger = logging.getLogger(...
[ "350840291@qq.com" ]
350840291@qq.com
025e39e35b4e693395179a86f505c2bf6c7a422e
9a486a87e028303a551fbd0d1e1b6b650387ea14
/createPyLog/createPyLog.py
ea83737a093c9b6a6e7c7e68dbc072f3b3cc535d
[]
no_license
shanlihou/pythonFunc
7b8e7064fddd4522e492c915c086cc6c5abc6eec
646920256551ccd8335446dd4fe11aa4b9916f64
refs/heads/master
2022-08-24T20:33:12.287464
2022-07-21T12:00:10
2022-07-21T12:00:10
24,311,639
3
0
null
null
null
null
UTF-8
Python
false
false
1,825
py
#listdir.py import os import sys import re def countBrackets(strBrack): count = 0 for i in strBrack: if (i == '('): count = count + 1 elif (i == ')'): count = count - 1 return count def AddLogByDef(fileName, tagName): pattern = re.compile(r'^(\s*)def\s*(\w+)\(') patSpace = re.compile(r'^(\s*)\S') fil...
[ "shanlihou@gmail.com" ]
shanlihou@gmail.com
cbaf66b8e37b054e0456fc3868f7699605c881e7
1b7947f81b2a82d3ff377c39e7228f1aaf743277
/day5/selenium_demo/demo10.py
0d8772f030b806c2d909dbf087bc2ef201e370db
[]
no_license
gaohj/python1902crawer
92fbaeb8151bd8a71f3c87a1566f6dcded3ef745
aa0dce86ba50db12fb0262a62ccc6a9ab60ad0c2
refs/heads/master
2020-08-14T20:08:47.775547
2019-10-25T06:55:21
2019-10-25T06:55:21
215,226,727
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
from selenium import webdriver import time from selenium.webdriver.common.action_chains import ActionChains #导入行为链 from selenium.webdriver.common.by import By #chromedriver的绝对路径 driver_path = r'C:\chromedriver\chromedriver.exe' #初始化一个driver对象 driver = webdriver.Chrome(executable_path=driver_path) driver.get("https://w...
[ "gaohj@126.com" ]
gaohj@126.com
5a676b07c0c39e5d6ca34a82ddcba8f4958b525c
b9a244e3b9ed9cef731058159275eea0f1663521
/client/cgiserver.py
e68a35b380bd0ee5b65b22aaba888bebbf65fd1a
[]
no_license
ogaya/pine
d1db27d360e192e858288ed35efbda8816d0d27d
57d6c4912a169f7c80b2f8214904fc10be10bb78
refs/heads/master
2016-08-05T16:47:11.518226
2015-03-08T14:49:25
2015-03-08T14:49:25
29,860,429
0
0
null
null
null
null
UTF-8
Python
false
false
358
py
import BaseHTTPServer,CGIHTTPServer import sys def run(server_class=BaseHTTPServer.HTTPServer, \ handler_class=CGIHTTPServer.CGIHTTPRequestHandler,port=80): server_address = ('', int(port)) httpd = server_class(server_address, handler_class) httpd.serve_forever() if __name__ == '...
[ "you@example.com" ]
you@example.com
17e309490e8e870c34bc39bef18e432d6abffa67
de33921178f5401e691d17d36bd1ca36c9fc28d5
/polyaxon/event_manager/events/permission.py
d7662dc4e870d06f993ac00df569d62717ed8770
[ "MIT" ]
permissive
PankeshGupta/polyaxon
a7e082dcf7121cc2fbcef2771f595aaf4e7e49ff
b854f33334001424774853954bf39f3b1ad66a8e
refs/heads/master
2020-03-19T01:08:19.762657
2018-05-28T09:18:46
2018-05-28T09:18:46
135,525,348
0
0
null
2018-05-31T03:12:36
2018-05-31T03:12:36
null
UTF-8
Python
false
false
4,693
py
from event_manager import event_actions, event_subjects from event_manager.event import Attribute, Event PERMISSION_PROJECT_DENIED = '{}.{}.{}'.format(event_subjects.PROJECT, event_actions.DENIED, event_subjects.PERMISSION) PER...
[ "mouradmourafiq@gmail.com" ]
mouradmourafiq@gmail.com
698e15dc49727601ca1e8ef57c824cb71231590d
87d780c53ca2fc39f2a21572b53eeb9a381fee15
/scratch/torch_exploration.py
b9f794d33d5318449d95e20aacf29f87adca1525
[ "MIT" ]
permissive
nick-bowman/cs224w-project
79d83ba46d9c4d402aeae69c6ece149a7746ae40
99edc43c8790575d7261ac99287370386e845182
refs/heads/master
2020-08-26T18:38:10.117792
2020-01-25T01:34:19
2020-01-25T01:34:19
217,106,336
2
0
null
2019-12-20T20:43:58
2019-10-23T16:42:19
Python
UTF-8
Python
false
false
434
py
import os import torch import numpy as np from torch.utils.data import Dataset, DataLoader import csv import snap # Ignore warnings import warnings warnings.filterwarnings("ignore") from torch_geometric.datasets import Planetoid, TUDataset from torch_geometric.data import DataLoader dataset = Planetoid(root='/tmp/Co...
[ "google-dl-platform@googlegroups.com" ]
google-dl-platform@googlegroups.com
52d5d8ba2550e355f12003849e26095a3cd6d7f7
204ee98574f86855974290d8d885f5ec6c28590d
/homepage/migrations/0003_auto_20200527_1556.py
8feea64afeae9b3df644bf7e89eb82e8a7d63783
[]
no_license
pmac1687/jordans-social-page
b4d771b7136e1cb9feafd925faf131fc3b13a2a0
0133fa222ad84521f4dfac066cf26dc210d70d06
refs/heads/master
2023-05-15T10:47:46.078464
2020-06-28T18:24:54
2020-06-28T18:24:54
267,641,014
0
0
null
2021-06-10T22:58:16
2020-05-28T16:32:54
Python
UTF-8
Python
false
false
520
py
# Generated by Django 2.1.5 on 2020-05-27 15:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('homepage', '0002_auto_20200527_0710'), ] operations = [ migrations.RenameField( model_name='addition', old_name='ele...
[ "pmac1687@outlook.com" ]
pmac1687@outlook.com
74eb8f85dc4a3db7a5882ad6ece5d4edc93a41b4
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/clips_pattern/pattern-master/examples/05-vector/01-document.py
4b14905ae198affbc575ea4e59df3f6a23f97fb8
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
3,205
py
import os, sys; sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "..")) import codecs from pattern.vector import Document, PORTER, LEMMA # A Document is a "bag-of-words" that splits a string into words and counts them. # A list of words or dictionary of (word, count)-items can also be given. # Words ...
[ "659338505@qq.com" ]
659338505@qq.com
f2edc775451ede637676796cbaff7e040ef237da
3a41ccad0f041badacca3878de43f2403ebf1b1d
/appleinvaders2/main.py
f760a9258927b7f930b0a8f7170fd50360fc3668
[ "MIT" ]
permissive
kantel/pygameprojects
30ea7ef56f5f935f6e6a3eab88ef670c97bdfa80
2c51306aec0d4a848a2689b33ac49f1bd449fcc4
refs/heads/master
2023-09-03T22:25:10.796062
2023-08-14T18:18:56
2023-08-14T18:18:56
112,378,051
0
0
null
null
null
null
UTF-8
Python
false
false
2,245
py
# Apple Invaders Stage 2: Jumping import pygame as pg from settings import Settings from sprites import Player, Block import random import os class World: def __init__ (self): # Initialisiert die Spielewelt pg.init() pg.mixer.init() self.screen = pg.display.set_mode((s.WIDTH, ...
[ "joerg@kantel.de" ]
joerg@kantel.de
c986f2313a67f68c54de75f2d35e0d036de8eca4
07b37c5f7a21ea51dd9b2eb0eb276d6fabe37ebf
/scrapy/s_redis_dd_bloom/build/lib/s_redis/spiders/tieba.py
147ab603c9c55bccb4cda1f7010667e4d0eae226
[]
no_license
pol9111/dododo
bb230f4b71ee6cb5c4ab77e7c2ea8f7ca849f145
eda202d63a6ac1bed6691f5d2e9d2500edd69478
refs/heads/master
2022-12-14T23:03:38.619260
2018-10-28T16:30:55
2018-10-28T16:30:55
134,064,541
1
0
null
2022-12-08T02:48:16
2018-05-19T13:30:22
CSS
UTF-8
Python
false
false
1,760
py
# -*- coding: utf-8 -*- import scrapy import re from s_redis.items import SRedisItem from scrapy_redis.spiders import RedisCrawlSpider from scrapy.linkextractors import LinkExtractor from scrapy.spiders import Rule, CrawlSpider class TiebaSpider(CrawlSpider): name = 'tieba' allowed_domains = ['tieba.baidu.com...
[ "biscuit36@163.com" ]
biscuit36@163.com
85f7d280d49550dfa79603baf1d75c11f56cca6c
92c64a04594a7d753bc4f3364df37ec48186c411
/example_usage/parse_addresses.py
bf5e553b9b210677015a0217c01b89678b5da7c5
[ "MIT" ]
permissive
ChristopherHaydenTodd/ctodd-python-lib-location
9721e4d2046075707814f12b709638cb0beccc2e
64fad164115448018c79edb0d0aa114959c16291
refs/heads/master
2023-05-25T22:23:08.517093
2019-07-26T00:39:17
2019-07-26T00:39:17
198,870,857
0
0
MIT
2023-05-22T22:29:00
2019-07-25T17:01:48
Python
UTF-8
Python
false
false
2,086
py
#!/usr/bin/env python3.6 """ Purpose: Parse some set addresses Steps: - Parse Args - Call libs to parse addresses function call: python3.6 parse_addresses \ [-h] \ --addresses ADDRESSES example script call: python3.6 example_usage/parse_...
[ "Christopher.Hayden.Todd@gmail.com" ]
Christopher.Hayden.Todd@gmail.com
0d89946f839cdc30babc6db1fc7235c181467dad
61288d25e57c3d9468920e1d9f23c61bfbe0461f
/communication_node_v1.py
dc610d942e12f06fe9f28d5117a3c974f0ce6765
[]
no_license
ChuChuIgbokwe/Python-2.7-code
8d92f393f33b10edd23bb8c598aee0b6b5a27a9c
a3ebaab52f8af813a95f8fc03ee725f2f071dd52
refs/heads/master
2021-01-09T05:21:24.730209
2017-02-02T18:45:07
2017-02-02T18:45:07
80,755,950
0
0
null
null
null
null
UTF-8
Python
false
false
2,309
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #Created by Chukwunyere Igbokwe on November 08, 2016 by 10:53 AM ''' Write a simple base "Communications Node" (CN) for a distributed communications system running across multiple machines on a mixed (fast, slow, wired, WiFi, etc...) "local" network. In its most basic for...
[ "chukwunyereigbokwe2015@u.northwestern.edu" ]
chukwunyereigbokwe2015@u.northwestern.edu
3ed3165d1699ca546a7c1c6b66d8de7f414963c5
e8332327d1d04e8ef54f279188af4e57a59ca985
/setup.py
68a89cd1aa9312debad3653acddeb7118fa5ffb0
[]
no_license
TomDLT/savate
f90120e8dfda3c3bd838ee372bda4feb40fe51c8
6f42f5a7cb14d46a1fb5a6c0ca067a6b3c27433c
refs/heads/master
2021-10-25T15:56:40.385525
2019-04-05T01:15:42
2019-04-05T01:15:42
109,427,847
1
0
null
null
null
null
UTF-8
Python
false
false
546
py
from setuptools import setup descr = """This is a personal collection of tools to automatically save stuff during work.""" setup( name='savate', version='0.1', description=descr, long_description=open('README.md').read(), license='BSD (3-clause)', download_url='https://github.com/to...
[ "tom.dupre-la-tour@m4x.org" ]
tom.dupre-la-tour@m4x.org
522dc80be7c0a4215acdae79df0925c6f248a9ef
dbdbfe68185d31baee4769823b68d45b5312df37
/generative/tests/compare_test/sketch_only/dataset_sketch.py
817b94e02fb33344cc774f750f5a16dd37e828b5
[ "MIT" ]
permissive
judithfan/pix2svg
4993c3a4ca356489b556aac782ea4f566969d357
f026a330c5cfd6a2d27b4e244cfa3f3e57682c19
refs/heads/master
2021-01-20T15:57:38.172370
2018-10-12T22:52:42
2018-10-12T22:52:42
90,801,787
3
1
null
2017-10-14T23:10:47
2017-05-09T23:47:28
Jupyter Notebook
UTF-8
Python
false
false
7,383
py
from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import copy import cPickle import random import numpy as np import pandas as pd from PIL import Image from collections import defaultdict import torch from torch.utils.data.dataset import Dataset OB...
[ "me@mikewuis.me" ]
me@mikewuis.me
bf219366102b225f1821f393f8b75e30620ab719
9fb3ff9bb2c8948295ae13f11a2e256a74352d66
/CrAutoFarm/workthreads/performanceTestThread.py
4d50bef6b14bdcc02e885501cec9682a62f6d3c7
[]
no_license
lyh3/automation
ec62b635412d1b507fbd7050f39cd1174962bb73
3711e78f0864df78820c93f6cca2aba7f5f45921
refs/heads/master
2021-01-01T09:01:52.469164
2020-07-07T06:39:06
2020-07-07T06:39:06
239,207,206
0
0
null
null
null
null
UTF-8
Python
false
false
3,325
py
import os, json from buildingblocks.Decoraters import overrides from workthreads.complianceCheckThread import ComplianceCheckThread from workstates.crHealth.crTestState import CrTestState from workstates.systemControlState.initialParamicoClientState import InitialParamicoClientState from PowerControl.powerSwitcher impo...
[ "henry.li@intel.com" ]
henry.li@intel.com
00f2c8463132a963b4f66ef3c23461b51133b2b5
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/OTLModel/Datatypes/KlPoEInjectorModelnaam.py
98da36e5f9a596385e593028ef7c3b73b471ce6d
[ "MIT" ]
permissive
davidvlaminck/OTLMOW
c6eae90b2cab8a741271002cde454427ca8b75ba
48f8c357c475da1d2a1bc7820556843d4b37838d
refs/heads/main
2023-01-12T05:08:40.442734
2023-01-10T15:26:39
2023-01-10T15:26:39
432,681,113
3
1
MIT
2022-06-20T20:36:00
2021-11-28T10:28:24
Python
UTF-8
Python
false
false
876
py
# coding=utf-8 import random from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField # Generated with OTLEnumerationCreator. To modify: extend, do not edit class KlPoEInjectorModelnaam(KeuzelijstField): """De modelnaam van de PoE-injector.""" naam = 'KlPoEInjectorModelnaam' label = 'Power ov...
[ "david.vlaminck@mow.vlaanderen.be" ]
david.vlaminck@mow.vlaanderen.be
6cf6c844047da9dec2195d61bc334834d4f45d1b
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part001416.py
1c65e8856f5bd9c8fd240943d67cf444c5aa5ffd
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,296
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
cefb4c3ed7c3b71398417c29eb27de7c1d0d7b12
1fd1292de7605b572c06a779697b81dbe69332ff
/lesson_6/server/add_user.py
7765a28eafe6069e0884172e8462e814bd16e93a
[]
no_license
machukhinktato/Databases_and_PyQT
86a0a3cc4088d81fec4f43c421d2a6ee202551ad
74edb0b30acff9048ab0ffc80df3bb8550d44b3a
refs/heads/master
2021-04-04T03:23:08.948038
2020-04-15T09:20:01
2020-04-15T09:20:01
248,420,988
0
0
null
2020-04-15T09:20:02
2020-03-19T05:47:12
Python
UTF-8
Python
false
false
3,222
py
import hashlib import binascii import sys sys.path.append('../') from PyQt5.QtWidgets import QDialog, QPushButton, QLineEdit, QApplication, QLabel, QMessageBox from PyQt5.QtCore import QEvent from PyQt5.QtCore import Qt class RegisterUser(QDialog): def __init__(self, database , server): super().__init__()...
[ "tarabrinmv@gmail.com" ]
tarabrinmv@gmail.com
6faafdb8afddbaca98f179f2867503678517e75d
3387c5db854628ed78606202f5a6b61a283184a6
/00 Базовый курс/Lesson0444_PrioritetOperatorov.py
10fbf6d3d91e3a059d39484c747819bfa156ab69
[]
no_license
nikita-chudnovskiy/ProjectPyton
3991c34ec62c6b6434c029fab17ad5cab0b4247a
756c5e8356227e4e4f6940178ec2959d1eaad604
refs/heads/master
2023-08-17T11:05:25.757003
2023-08-17T09:54:32
2023-08-17T09:54:32
221,441,845
0
0
null
null
null
null
UTF-8
Python
false
false
1,429
py
#Приоритет операторов в Python n = False == False or True print(n) n = False == (False or True) print(n) print(False == False) or True print(n) '''В следующей таблице описан приоритет выполнения операторов в Python от наивысшего (выполняется в первую очередь) до наинизшего.''' # Оператор Описание # **...
[ "nikita.chudnovskiy@mail.ru" ]
nikita.chudnovskiy@mail.ru
4eeabc732efbad4c71f48b2ae0a821983411a03a
78dff18762572fd052e3783afd05f6b804b104d4
/operations_api/apps/account/__init__.py
05501b244aafd41a4a63c08552c21128b8a33078
[]
no_license
kxiansen/Operation_platform
03ed9d385aeca0c9fc98c5c9f25db10c48a1dba8
e886b61b36bfa545419b75fb8c5f46ddd11fb7fc
refs/heads/master
2022-12-14T09:09:17.382827
2019-08-05T08:30:42
2019-08-05T08:30:42
181,876,656
1
0
null
2022-12-08T00:48:08
2019-04-17T11:23:07
Vue
UTF-8
Python
false
false
242
py
from apps.account import user from apps.account import role def register_blueprint(app): app.register_blueprint(user.blueprint, url_prefix='/account/users') app.register_blueprint(role.blueprint, url_prefix='/account/roles')
[ "you@example.com" ]
you@example.com
f5e47577d3a167bb55e7096989ccc6740ca05c29
4ac23b2633321df48a896180e6205dfc17ad5746
/scratch10/ex13.py
099cf3b57e8e63833514ba9f8c368c69426e261e
[]
no_license
lee-saint/lab-python
f051a544ed97956f9725bb6f4a080bdc65c7e1ad
a425c173c379dda0de21eec538195ded17d31697
refs/heads/master
2020-11-30T12:24:12.614119
2019-12-27T07:35:50
2019-12-27T07:35:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
""" icrawler 패키지 사용해서 Google 이미지 검색 결과의 이미지 다운로드 > pip install icrawler """ from icrawler.builtin import GoogleImageCrawler import os if __name__ == '__main__': # 이미지 저장 경로 save_dir = os.path.join('C:' + os.sep, 'dev', 'images') # GoogleImageCrawler 객체 생성 google_crawler = GoogleImageCrawler(storage={'r...
[ "plutorian131@gmail.com" ]
plutorian131@gmail.com
6f3e8b48e5146a0469f775c4516dc9e80cb265ca
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2325/60636/246007.py
507f3b7a6852cb701b39c9b02a4511aba8b025c3
[]
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
547
py
source=eval(input()) sources=[] if(type(source)==int): sources.append(source) else: for i in source: sources.append(i) all=[] for i in sources: if(not i in all): all.append(i) counts=[] for i in all: count=0 for x in sources: if(x==i): count=count+1 counts.app...
[ "1069583789@qq.com" ]
1069583789@qq.com
5e11fff2b01f232ec749489438909210368ce4c0
e00186e71a1f52b394315a0cbc27162254cfffb9
/file_operations_write.py
75f7a3de1aea248874d4302f8d75916fdbcf7d44
[]
no_license
anilkumar0470/git_practice
cf132eb7970c40d0d032520d43e6d4a1aca90742
588e7f654f158e974f9893e5018d3367a0d88eeb
refs/heads/master
2023-04-27T04:50:14.688534
2023-04-22T05:54:21
2023-04-22T05:54:21
100,364,712
0
1
null
2021-12-08T19:44:58
2017-08-15T10:02:33
Python
UTF-8
Python
false
false
271
py
fd=open("abc.txt","w") c=True while c == True: str1 = raw_input("enter the string to write") fd.write(str1) fd.write("\n") c=raw_input("enter do you want con press yes") if c.lower() in ["yes","y"]: c = True else: break
[ "anilkumar.0466@gmail.com" ]
anilkumar.0466@gmail.com
4eaa7dd1024eed965e0b8fb1e3e2a521a586ef45
3fa2e9a8f8dd2dd3e3e9ffd3aee484841843d2fa
/test_assert_is_not.py
c9df9641749744e47f2090d8524293bedd084c8d
[]
no_license
Nispanu78/list-of-Selenium-tests
df192eb6106c5bb2fa04aaf8f31067ef77ef2969
64b2b373773fcd98e1d1f18e4a88ac593faab435
refs/heads/main
2023-01-24T08:48:24.941569
2020-12-04T12:02:35
2020-12-04T12:02:35
314,528,151
1
0
null
null
null
null
UTF-8
Python
false
false
231
py
import unittest class TestAssertIsNot(unittest.TestCase): def test_assert_is_not(self): language="Python" self.assertIsNot(language, "Python", "Value is a Match") if __name__ == '__main__': unittest.main()
[ "nicspanu@gmail.com" ]
nicspanu@gmail.com
3cf84d1ebb260328785f36b464b3e991094bcc38
d3efc82dfa61fb82e47c82d52c838b38b076084c
/crossmarketetf/crossmarket_redemption_HA/YW_CETFSS_SHSH_076.py
7d78c6955d439083d12797f2c68927ff11a8c9e1
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
2,561
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test") from crossmarketetf.cetfservice.cetf_main_service import * from crossmarketetf.cetfservice.cetf_get_components_asset import * from crossmarketetf.cetfservice.cetf_utils import * from mysql.QueryOrderErrorMsg import q...
[ "418033945@qq.com" ]
418033945@qq.com
98ad940fd47de4544a9133c4fff942e6a016b460
d9af28bb1f9eb67300f1dde7942f9b536cbcb1b8
/495.py
1289ad05d322f2030767f4d381dfb8b2c18ce490
[]
no_license
khanjason/leetcode
c78d415fd5794ffb7d15f68b8e2dc89b367317ab
d2c0b41bdd181bee999922be820d6ce16312b7ae
refs/heads/master
2021-12-26T17:28:32.706678
2021-09-09T13:56:09
2021-09-09T13:56:09
235,096,416
0
0
null
null
null
null
UTF-8
Python
false
false
730
py
class Solution: def findPoisonedDuration(self, timeSeries: List[int], duration: int) -> int: if timeSeries==[]: return 0 t=0 timepoisoned=0 for i in range(0,len(timeSeries)): if i==0: t=timeSeries[i] ...
[ "noreply@github.com" ]
khanjason.noreply@github.com
cf1c59171eb6356822e13be906614db278508dcf
ff81a9d7880f1b85a1dc19d5eba5ac72d7179c86
/pychron/core/fits/fit.py
cace6e75e8a0803bd5c632785afb6ec1c0965280
[ "Apache-2.0" ]
permissive
UManPychron/pychron
2fb7e479a9f492423c0f458c70102c499e1062c4
b84c9fd70072f9cbda30abe2c471e64fe3dd75d8
refs/heads/develop
2022-12-03T23:32:45.579326
2020-01-29T19:02:20
2020-01-29T19:02:20
36,100,637
0
0
null
2015-05-23T00:10:06
2015-05-23T00:10:05
null
UTF-8
Python
false
false
2,945
py
# =============================================================================== # Copyright 2013 Jake Ross # # 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/licens...
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
7576a2fafe1ffc8530f12237409c651864949542
55e9f3b00fc2e488597bab5225ed321c86efbd4b
/sdk/yapily/models/location.py
03acf286afa0b46577f624a78fb9bc13db500ae4
[ "MIT" ]
permissive
bs-yapily/yapily-sdk-python
ad9d04c28f3d744830734c3444c1cef8215206fd
0bba45e351b674eb655425a51190f539c4e9896f
refs/heads/master
2020-08-26T17:18:53.156429
2019-10-22T11:01:16
2019-10-22T11:01:16
217,085,936
0
0
null
null
null
null
UTF-8
Python
false
false
7,284
py
# coding: utf-8 """ Yapily API To access endpoints that require authentication, use your application key and secret created in the Dashboard (https://dashboard.yapily.com) # noqa: E501 OpenAPI spec version: 0.0.155 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pp...
[ "systems@yapily.com" ]
systems@yapily.com
bcc16cb8a7c03bf3c0e174d4df8d7646eb6c0436
be29f191af9e2c81e07b863a313d7766c53677e0
/9-List_Comprehensions.py
f629452a232f298b7a47c0d097998780e513c377
[]
no_license
Gangadharbhuvan/HackerRank-Python-Solutions
c05ec4ace98b6081cbd504b7663d6d772f1ed9f2
ee85c7f1d4f04c11cb1921defb4acc5117d410b6
refs/heads/master
2020-09-06T03:21:14.612569
2020-08-03T18:01:20
2020-08-03T18:01:20
220,303,973
1
0
null
null
null
null
UTF-8
Python
false
false
225
py
if __name__ == '__main__': x = int(input()) y = int(input()) z = int(input()) n = int(input()) ans = [[i, j, k] for i in range(x + 1) for j in range(y + 1) for k in range(z + 1) if i + j + k != n] print(ans)
[ "noreply@github.com" ]
Gangadharbhuvan.noreply@github.com
9106f72f7d0259acde80e58c44c0095bb8d33e56
b864b992187e2e1c5c8da6fdabeeab5040058fe9
/Python Example/python 100 examples/075.py
bc9a6e51ebf00107b2853fb0fa56677cde0bc8c8
[]
no_license
Mr-Phoebe/ProgramLanguage
5384afeef20c8a12cd89cf3720beb0337bd38fc9
1588aea62e15304339efb73d55653be1b4e57156
refs/heads/master
2023-02-06T11:59:06.272680
2023-02-06T04:00:14
2023-02-06T04:00:14
65,252,634
52
37
null
null
null
null
GB18030
Python
false
false
338
py
# -*- coding: UTF-8 -*- ''' 【程序75】 题目:放松一下,算一道简单的题目。 1.程序分析: 2.程序源代码: ''' if __name__ == '__main__': for i in range(5): n = 0 if i != 1: n += 1 if i == 3: n += 1 if i == 4: n += 1 if i != 4: n += 1 if n == 3: print 64 + i
[ "whn289467822@outlook.com" ]
whn289467822@outlook.com
286a350fcddacaa0d0147e5c93785f536ddd8009
61673ab9a42f7151de7337608c442fa6247f13bb
/scrapy/recursion/main.py
34ae18cec6c3c537229348a2962da2648c65120f
[ "MIT" ]
permissive
furas/python-examples
22d101670ecd667a29376d7c7d7d86f8ec71f6cf
95cb53b664f312e0830f010c0c96be94d4a4db90
refs/heads/master
2022-08-23T23:55:08.313936
2022-08-01T14:48:33
2022-08-01T14:48:33
45,575,296
176
91
MIT
2021-02-17T23:33:37
2015-11-04T23:54:32
Python
UTF-8
Python
false
false
1,885
py
# author: Bartlomiej "furas" Burek (https://blog.furas.pl) # date: 2022.03.10 # [python - Scrapy: How to efficiently follow nested links with similar css selectors? - Stack Overflow](https://stackoverflow.com/questions/71407737/scrapy-how-to-efficiently-follow-nested-links-with-similar-css-selectors/) import scrapy c...
[ "furas@tlen.pl" ]
furas@tlen.pl
73ec0cb44b7e8c0d0c08fb012a37ca2222c285d0
fb2cc597f319380d228fc15c4008760a82203687
/var/spack/repos/builtin/packages/r-filelock/package.py
d1ec74ab963004f642b147f6a67ba4f191331327
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-2.1-only" ]
permissive
JayjeetAtGithub/spack
c41b5debcbe139abb2eab626210505b7f930d637
6c2df00443a2cd092446c7d84431ae37e64e4296
refs/heads/develop
2023-03-21T02:35:58.391230
2022-10-08T22:57:45
2022-10-08T22:57:45
205,764,532
0
0
MIT
2019-09-02T02:44:48
2019-09-02T02:44:47
null
UTF-8
Python
false
false
689
py
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class RFilelock(RPackage): """Portable File Locking. Place an exclusive or shared l...
[ "noreply@github.com" ]
JayjeetAtGithub.noreply@github.com
62ca5552459f752f84a75db5aa4da9d4712fb436
9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c
/baomoicrawl/venv/Lib/site-packages/scrapy/mail.py
0e2167f686cce9740e6bbbc69311c9e84f1b1147
[]
no_license
thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler
b0fdedee2942a12d9f64dfed93f43802dc5ab340
87c8c07433466bbc43a24ea089f75baeb467c356
refs/heads/master
2022-11-27T21:36:33.917491
2020-08-10T23:24:42
2020-08-10T23:24:42
286,583,216
0
0
null
null
null
null
UTF-8
Python
false
false
5,162
py
""" Mail sending helpers See documentation in docs/topics/email.rst """ import logging from email import encoders as Encoders from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart from email.mime.nonmultipart import MIMENonMultipart from email.mime.text import MIMEText from ema...
[ "thuy4tbn99@gmail.com" ]
thuy4tbn99@gmail.com
b14d29d1817ea073771d96bd7a865d37cb4702c0
7869143d5e8bd9612c56fcf73ccc650ed0a82838
/blog_website/blog_website/apps/article/migrations/0001_initial.py
84a593f38e60a60b23ae0e11707a1f6a5e596e45
[]
no_license
baifengbai/blog_website
ed1af89af8c1713f1c2047e907d307e45754d90b
375d474435176931efd5e9925f3054184eb98ac8
refs/heads/master
2020-09-16T06:06:18.570387
2019-11-22T09:53:32
2019-11-22T09:53:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,169
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2019-09-19 14:49 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Cre...
[ "ltfred@163.com" ]
ltfred@163.com
a0745c6cdc6daa3051ce7c898eca1929a2d43e1e
2e33b4d5723799e5a38554241b42f2cdcd02b327
/src/python/etc/darknetprep.py
696327028468eee00ad31f7ddf774e3a79396ffc
[]
no_license
phildue/cnn_object_detection
0562016563734314041a7ab252f074f0dc5ee3bb
03c4a516da909b692128b75c002118bacf9667aa
refs/heads/master
2020-04-12T18:48:43.533838
2019-01-27T17:26:35
2019-01-27T17:26:35
162,691,055
1
0
null
null
null
null
UTF-8
Python
false
false
3,860
py
import random import numpy as np from utils.fileaccess.GateGenerator import GateGenerator from utils.fileaccess.labelparser.YoloParser import DarknetParser from utils.fileaccess.utils import create_dirs from utils.image.Backend import crop, resize from utils.image.Imageprocessing import show from utils.labels.ImgLabe...
[ "phild@protonmail.com" ]
phild@protonmail.com
757a610c3ab8f0c9149d87e7ced6cab34cd7885b
f3806d9fb54773908cd9704121a543b114470aca
/angr/procedures/definitions/win32_wdsbp.py
98c4dc39b931e3e13c92169719ef19e2a389b772
[ "BSD-2-Clause" ]
permissive
angr/angr
8ae95fceca51b0a001de56477d984dd01193ac1d
37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd
refs/heads/master
2023-08-17T03:15:21.007865
2023-08-15T18:44:57
2023-08-15T18:44:57
40,328,394
7,184
1,306
BSD-2-Clause
2023-09-14T20:14:23
2015-08-06T21:46:55
Python
UTF-8
Python
false
false
3,234
py
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
[ "noreply@github.com" ]
angr.noreply@github.com
7ef8b900d2838e213d0c4e9493210997a8dca2e3
24b17157256a9c406ddbca64266682d7667d1448
/hla/performance.py
a4270d8bce49b283f0ab1ecd2b9c517d9f75432f
[ "MIT" ]
permissive
kmayerb/hla3
760d118edb5a069beaebcaeaff6b4af8cd59f48f
65d7ede2610c1c20a32e378376eaa312839285b9
refs/heads/main
2023-07-12T00:33:20.603595
2022-02-23T05:34:17
2022-02-23T05:34:17
387,904,822
2
0
null
null
null
null
UTF-8
Python
false
false
8,665
py
if __name__ == "__main__": import os import re import pandas as pd import numpy as np from hla.predict import weight_of_evidence # allele_specific-predictions # █████╗ ██╗ ██╗ ███████╗██╗ ███████╗ ███████╗██████╗ ███████╗ ██████╗██╗███████╗██╗ ██████╗ # ██╔══██╗██...
[ "kmayerb@gmail.com" ]
kmayerb@gmail.com
5da797a3019226f291aa82a0a4f2c32949cec790
807a36dfc8efca23192c71ecbb38f5363dc7ca4c
/lib/pyasn1_modules/rfc3414.py
281837966ade53bc5697278cceb4f2d348a0bede
[ "Apache-2.0" ]
permissive
uetopia/metagame
385b6f11a6f40744f2fcc20934f53bb8e4a447f3
37e0136ab61a99a8cd25ef264c2d5f8f024e8f6f
refs/heads/master
2023-03-10T17:17:46.269150
2023-02-26T15:16:15
2023-02-26T15:16:15
151,280,244
2
1
Apache-2.0
2022-05-25T01:43:37
2018-10-02T15:43:42
Python
UTF-8
Python
false
false
1,167
py
# # This file is part of pyasn1-modules software. # # Copyright (c) 2005-2018, Ilya Etingof <etingof@gmail.com> # License: http://snmplabs.com/pyasn1/license.html # # SNMPv3 message syntax # # ASN.1 source from: # http://www.ietf.org/rfc/rfc3414.txt # from pyasn1.type import constraint from pyasn1.type import namedtype...
[ "ed@uetopia.com" ]
ed@uetopia.com
9650b716e34acfb7ec448480f885c85882ca1252
537259790008b727c03c56ec55a6aaaeeeaf65a3
/scrapers/movie4k_scraper.py
fc92e9fd23110d5eabcd7ea70ff60ef9f0c8b6b9
[]
no_license
djbijo/salts
a5781ac9958b77c2acfacf4f73a5286e0b91d8e2
9eaa736701833eedf6796403da33d648aaf348f8
refs/heads/master
2020-12-11T03:26:15.843807
2015-04-09T18:35:45
2015-04-09T18:35:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,229
py
""" SALTS XBMC Addon Copyright (C) 2014 tknorris 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 3 of the License, or (at your option) any later version. T...
[ "tknorris@gmail.com" ]
tknorris@gmail.com
d91b8d3f14d5a5e254aabe5cc9dc873f1c0a945d
e278bf814fffdd1225ada7b9a0f1a31b8dfb5553
/code/seeed_mcgasv2.py
eccdbc7aa8ce6c087019a0c59e495a7796091b09
[]
no_license
dheera/aqi-monitor
9cc027dbd184455ab64f9157b83261b23f1b6bf2
9f169d653df44c97cba4811fbb9376941c97e20a
refs/heads/master
2023-07-08T17:16:50.193210
2023-06-09T15:57:31
2023-06-09T15:57:31
327,121,222
23
3
null
2023-06-09T15:57:32
2021-01-05T21:15:24
Python
UTF-8
Python
false
false
2,910
py
GM_RESOLUTION = 1023 GM_102B = 0x01 GM_302B = 0x03 GM_502B = 0x05 GM_702B = 0x07 CHANGE_I2C_ADDR = 0x55 WARMING_UP = 0xFE WARMING_DOWN = 0xFF class Gas(object): def __init__(self, i2c, address = 0x08): self.i2c = i2c self.address = address while not self.i2c.try_lock(): pass ...
[ "dheera@dheera.net" ]
dheera@dheera.net
478a6c17d20e9833d4bdc68c180efe9a538003b0
621a865f772ccbab32471fb388e20b620ebba6b0
/DataPack/data/scripts/quests/11_SecretMeetingWithKetraOrcs/__init__.py
fc7aa23830869550387d01b3523eff162be0baab
[]
no_license
BloodyDawn/Scions_of_Destiny
5257de035cdb7fe5ef92bc991119b464cba6790c
e03ef8117b57a1188ba80a381faff6f2e97d6c41
refs/heads/master
2021-01-12T00:02:47.744333
2017-04-24T06:30:39
2017-04-24T06:30:39
78,662,280
0
1
null
null
null
null
UTF-8
Python
false
false
2,397
py
#made by Emperorc (adapted for L2JLisvus by roko91) import sys from net.sf.l2j.gameserver.model.quest import State from net.sf.l2j.gameserver.model.quest import QuestState from net.sf.l2j.gameserver.model.quest.jython import QuestJython as JQuest qn = "11_SecretMeetingWithKetraOrcs" #NPCs Cadmon = 8296 Leon = 8256 Wa...
[ "psv71@yandex.ru" ]
psv71@yandex.ru
ef896a7fbbebaec6d9baa91132722990f97b3931
88ed6ed99589f7fb8e49aeb6c15bf0d51fe14a01
/021_merge-two-sorted-lists.py
57faf20067741185bb77b99a8a62524d5ccda622
[]
no_license
ryeLearnMore/LeetCode
3e97becb06ca2cf4ec15c43f77447b6ac2a061c6
04ec1eb720474a87a2995938743f05e7ad5e66e3
refs/heads/master
2020-04-07T19:02:43.171691
2019-06-23T15:09:19
2019-06-23T15:09:19
158,634,176
0
0
null
null
null
null
UTF-8
Python
false
false
865
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #@author: rye #@time: 2019/3/14 # Definition for singly-linked list. class ListNode(object): def __init__(self, x): self.val = x self.next = None class Solution(object): def mergeTwoLists(self, l1, l2): """ :type l1: L...
[ "noreply@github.com" ]
ryeLearnMore.noreply@github.com
649395baf1ec06440c9c72528dbe41234fd041cd
24c5664b9d25533e1f18bae415f2dd3b29a910dc
/1 block/block10.py
404c6c574c1b70793817e6ae29bb758eec445479
[]
no_license
rayyan-khan/6-block-tanagram
3208d0b2240252d8c0026d75b907eb340475a739
b1e4d955a3ac0a2bf8a55ee0cca73a429f5e9e84
refs/heads/master
2022-03-10T16:36:44.844154
2018-12-20T14:35:14
2018-12-20T14:35:14
161,864,412
0
0
null
null
null
null
UTF-8
Python
false
false
5,139
py
import sys import time from tkinter import * # working except output #INPUTLIST = ['block.py', '4 4', '2x2', '2 2', '2 2', '2 2'] # temporary, will be replaced by sys.argv #INPUTLIST = ['b.py', '2 4', '2 1', '2 3'] #INPUTLIST = ['b.py', '3 3', '1 1', '1 2', '2 3'] #INPUTLIST = ['b.py', '4 6', '1 1', '2 2', '1 3', '1...
[ "rayyan.khan258@gmail.com" ]
rayyan.khan258@gmail.com
15072b2d21ed4356b01f7d1e0c3b9a1f9539f9a8
8ca19f1a31070738b376c0370c4bebf6b7efcb43
/office365/sharepoint/sharing/principal.py
c5ceae2a4c706fa148445c9b55e00efe9e6995e3
[ "MIT" ]
permissive
vgrem/Office365-REST-Python-Client
2ef153d737c6ed5445ba1e446aeaec39c4ef4ed3
cbd245d1af8d69e013c469cfc2a9851f51c91417
refs/heads/master
2023-09-02T14:20:40.109462
2023-08-31T19:14:05
2023-08-31T19:14:05
51,305,798
1,006
326
MIT
2023-08-28T05:38:02
2016-02-08T15:24:51
Python
UTF-8
Python
false
false
597
py
from office365.runtime.client_value import ClientValue class Principal(ClientValue): """Principal class is a representation of an identity (user/group).""" def __init__(self, directory_object_id=None, email=None, expiration=None): """ :param str directory_object_id: :param str email: ...
[ "vvgrem@gmail.com" ]
vvgrem@gmail.com
e748acdd5496d3e655db4a3e317ed4895b5a27c3
87b83399f25785c3c2326296d41ac7a8a4059199
/hyperparameter_hunter/importer.py
9d325a3370d511c0b79a49d9c8c02b8768018675
[ "MIT" ]
permissive
ssh-shashi/hyperparameter_hunter
b065a9af7e323bafce899e61789d9e2e2054f514
12fcbbd4ed71447f80e41f3538be824126b3e209
refs/heads/master
2023-03-17T07:37:49.354509
2018-08-27T03:53:47
2018-08-27T03:53:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,869
py
"""This module provides utilities to intercept certain external imports and load them using custom logic Related ------- :mod:`hyperparameter_hunter.__init__` Executes the import hooks to ensure assets are properly imported prior to starting any real work :mod:`hyperparameter_hunter.tracers` Defines tracing me...
[ "hunter@mcgushion.com" ]
hunter@mcgushion.com
b61c0dee7df367089ba65aaf669b639f2366ecff
0b9a56d026f6b9c781dcc5a92f755398f2b9d717
/icongen/main.py
01f2c742419d34263b97c6b98e02cf4c94253305
[]
no_license
kwarwp/ada
0418a9c9c3f191c680c9193701e2d125f919ad9c
a9b8dd15e20863cc5faac3053449869fdcb6f7a6
refs/heads/master
2023-08-19T02:39:40.277185
2023-08-16T12:22:11
2023-08-16T12:22:11
128,694,664
0
1
null
2019-03-16T01:44:06
2018-04-09T00:47:03
Python
UTF-8
Python
false
false
908
py
# ada.icongen.main.py # SPDX-License-Identifier: GPL-3.0-or-later """ gerador de icone em svg a partir de uma frase. .. codeauthor:: Carlo Oliveira <mail@local.tipo> Changelog --------- .. versionadded:: 23.08 Primeiro desenho. """ from browser import document, html, svg class Icon: def __init__(sel...
[ "38007182+kwarwp@users.noreply.github.com" ]
38007182+kwarwp@users.noreply.github.com
2d3e7e5ca10a4346b30349cc02b64c9aef9209bf
f620403443b2c0affaed53505c002f35dc68020c
/DCTM/LDAPerplexity.py
f8c92115f04859b832297a1bab76343139231fa7
[]
no_license
ZhuJiahui/CTMTS
c552b3026deb47879f9aa5bde4b002cf6283858d
9f8981f6e61900a68a38ae0392e01771beee9651
refs/heads/master
2021-01-12T10:18:27.579697
2016-12-14T02:23:29
2016-12-14T02:23:29
76,416,453
0
0
null
null
null
null
UTF-8
Python
false
false
2,333
py
# -*- coding: utf-8 -*- ''' Created on 2014年7月28日 @author: ZhuJiahui506 ''' import os import time import numpy as np from TextToolkit import quick_write_list_to_text def lda_perplexity(read_directory1, read_directory2, read_directory3, write_filename): file_number = sum([len(files) for root, dirs, files in ...
[ "zhujiahui@outlook.com" ]
zhujiahui@outlook.com
02d998c148b77b17ddae959fb056509b4bee448c
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_321/ch88_2020_05_11_14_41_02_963385.py
c7eb40ac923f574ff67f359fd8bc01a08f1cdb1e
[]
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
398
py
class Retangulo: def __init__ (self, Ponto1, Ponto2): self.Ponto1 = p1 self.Ponto2 = p2 def calcula_perimetro(self): dp = (((p1.x - p2.x)**2) + ((p1.y - p2.y)**2)) ** 0.5 perimetro = ((dp**2)*2)**0.5 return perimetro def calcula_area(self): base ...
[ "you@example.com" ]
you@example.com
28b86f2ac339833970535beecd078990ed30171d
75b3dcafa9806029594ba5bc19e76b72aae18fdd
/setup.py
fb3282cbc3adaeb7df2e289a747d8882b37e888b
[]
no_license
sebbekarlsson/gof_rand
2fd0f1789a9f047918e7d44e2db08eb47f17ed8b
3a1a0254aa9433262bae560bdb2d71a2d6d99204
refs/heads/master
2021-01-16T00:10:03.407568
2018-09-21T08:04:52
2018-09-21T08:04:52
99,962,645
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
from setuptools import setup, find_packages setup( name='gol_rand', version='1.0.1', install_requires=[ 'numpy', 'pillow', 'imageio' ], packages=find_packages() )
[ "sebbekarlsson97@gmail.com" ]
sebbekarlsson97@gmail.com
e66cfd45398d66d20ec76fffb335ca0de0a8a680
037c03a2096bd771d7fb2b98e257e70968a793a2
/day03/work01.py
52bb79dbaf832c650a45404f4cf04f6d10d4a86f
[]
no_license
yegeli/month1
45f83f7abb34d30d825936a28ef92e4748f16289
f7bf9c88162b791e23eaa30f602e7cdbabdf8e99
refs/heads/master
2022-04-10T00:12:45.241522
2020-03-20T14:13:35
2020-03-20T14:13:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
473
py
""" 5. 已知(在终端中录入):位移、时间、初速度 计算:加速度 匀变速直线运动的速度与位移公式: 位移 = 初速度 × 时间 + 0.5 * 加速度 * 时间的平方 """ distance = float(input("输入位移:")) use_time = float(input("输入时间:")) init_speed = float(input("输入速度:")) accelerated = (distance - init_speed * use_time) / 0.5 * use_time ** 2 print("加速度为:" + str(round(accelerated,2)...
[ "1332812330@qq.com" ]
1332812330@qq.com
c1b08ef8cf0ad9557307f41a86377ffbe382e28c
be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1
/Gauss_v45r8/Gen/DecFiles/options/11102403.py
303578c9f16c8bfb60ca60a629482f0954ee6716
[]
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
910
py
# file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/11102403.py generated: Fri, 27 Mar 2015 15:47:58 # # Event Type: 11102403 # # ASCII decay Descriptor: {[[B0]nos -> pi+ pi- (pi0 -> gamma gamma)]cc, [[B0]os -> pi- pi+ (pi0 -> gamma gamma)]cc} # from Configurables import Generation Generation().EventType =...
[ "slavomirastefkova@b2pcx39016.desy.de" ]
slavomirastefkova@b2pcx39016.desy.de
84585da48e13f4966f4e2d0c03908baad004bb3b
c6759b857e55991fea3ef0b465dbcee53fa38714
/utils/bin/cov_parse
dc433cfbfc0b2a9ab152b73330e0ba522813e8b7
[ "Apache-2.0" ]
permissive
GreenWaves-Technologies/gap_sdk
1b343bba97b7a5ce62a24162bd72eef5cc67e269
3fea306d52ee33f923f2423c5a75d9eb1c07e904
refs/heads/master
2023-09-01T14:38:34.270427
2023-08-10T09:04:44
2023-08-10T09:04:44
133,324,605
145
96
Apache-2.0
2023-08-27T19:03:52
2018-05-14T07:50:29
C
UTF-8
Python
false
false
4,039
#!/usr/bin/env python3 import argparse import re parser = argparse.ArgumentParser( description='Parse coverage' ) parser.add_argument("--silent", dest="silent", action="store_true", help="Just dump coverage silently") parser.add_argument("--input", dest="input", default=None, type=str, help="Coverage report") pa...
[ "yao.zhang@greenwaves-technologies.com" ]
yao.zhang@greenwaves-technologies.com
ff03cd4b0ea9e65cc2810fc958b6d28c29e8d7b7
8b3d00f7c0029a4974a5df2072ea21649d2b8829
/dev/unix/popen_base.py
8f20c601ff3f48ad59acbcb0b55c8237e409790a
[ "MIT" ]
permissive
dasTholo/pysmartnode
29dd521b5f5374456b4300ec19b1c4bdf45a5dca
90b0ae05e307433c4a904017902ffadd13835cef
refs/heads/master
2021-01-05T02:41:45.897597
2020-02-18T16:08:34
2020-02-18T16:08:34
240,849,533
0
0
MIT
2020-02-18T19:37:13
2020-02-16T07:23:49
Python
UTF-8
Python
false
false
1,658
py
# Author: Kevin Köck # Copyright Kevin Köck 2019 Released under the MIT license # Created on 2019-07-02 __updated__ = "2019-07-11" __version__ = "0.3" import os import uasyncio as asyncio from pysmartnode.utils.wrappers.timeit import timeitAsync class Popen: def __init__(self, command, expected_return=None, ex...
[ "kevinkk525@users.noreply.github.com" ]
kevinkk525@users.noreply.github.com
a8fb8b7d2ef9c77e84d3db0979bea97eff6d25ce
753c8b96d240f6470a29dcfe10ab7cfe0172bea6
/access_control/models/invitation_redirect_url.py
450c771b95db00a9e10706c355c0436130ee6078
[ "BSD-3-Clause" ]
permissive
girleffect/core-authentication-service
a939eaa28ccec72f91b32782053cf7b43001fd61
1e020370e4fe3f1b915da9604389727979746c9b
refs/heads/develop
2022-11-26T06:57:55.971369
2019-08-26T12:33:15
2019-08-26T12:33:15
112,724,628
1
1
BSD-3-Clause
2022-11-22T02:18:13
2017-12-01T10:01:56
Python
UTF-8
Python
false
false
6,526
py
# coding: utf-8 """ Access Control API # The Access Control API ## Overview The Access Control API is an API exposed to other core components. It uses an API Key in an HTTP header to perform authentication and authorisation. Most of the API calls facilitates CRUD of the entities defined in the Access Contro...
[ "cobus.carstens@gmail.com" ]
cobus.carstens@gmail.com
796d4c8e26f061c44a8ae74cd3e5f847f5d9ae33
3a1fea0fdd27baa6b63941f71b29eb04061678c6
/src/ch08/instructions/references/Anewarray.py
c800161d30a29da261102a1d0525cafcddd835ce
[]
no_license
sumerzhang/JVMByPython
56a7a896e43b7a5020559c0740ebe61d608a9f2a
1554cf62f47a2c6eb10fe09c7216518416bb65bc
refs/heads/master
2022-12-02T17:21:11.020486
2020-08-18T06:57:10
2020-08-18T06:57:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,078
py
#!/usr/bin/env python # encoding: utf-8 """ @author: HuRuiFeng @file: Anewarray.py @time: 2019/9/17 21:18 @desc: anewarray指令用来创建引用类型数组,需要两个操作数。 第一个操作数是uint16索引,来自字节码。通过这个索引可以从当前类的运行时常量池中找到一个类符号引用,解析这个符号引用就可以得到数组元素的类。 第二个操作数是数组长度,从操作数栈中弹出。 """ from ch08.instructions.base.Instruction import Index16Instruction class ANE...
[ "huruifeng1202@163.com" ]
huruifeng1202@163.com
4f077360587db60dfe5e8af22285f863991c51ca
34de2b3ef4a2478fc6a03ea3b5990dd267d20d2d
/Python/science/integration/newprac/newprac.py
502840fb6d493c538ebf240548e5e943b56e2697
[ "MIT" ]
permissive
bhishanpdl/Programming
d4310f86e1d9ac35483191526710caa25b5f138e
9654c253c598405a22cc96dfa1497406c0bd0990
refs/heads/master
2020-03-26T06:19:01.588451
2019-08-21T18:09:59
2019-08-21T18:09:59
69,140,073
0
1
null
null
null
null
UTF-8
Python
false
false
3,121
py
# cmd: python newprac.py midp.txt F3V range2.txt output.txt import sys import csv w1 = [] w2 = [] fil1 = sys.argv[1] fil2 = sys.argv[2] textfile = sys.argv[4] midf = open(fil1, 'r') num = 0 col1 = [] col2 = [] for line in midf: part1 = line.split() val1 = part1[0] val2 = part1[1] col1.append(val1)...
[ "bhishantryphysics@gmail.com" ]
bhishantryphysics@gmail.com
f549e91d1caf8480598bcc83fbda8514b2418c74
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/84/usersdata/247/52399/submittedfiles/lista1.py
7a510463fb10fc10b44b6415712ccd082d65d668
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
362
py
n=int(input('digite: ')) lista=[ ] for i in range(1,n+1,): valor=int(input('d: ')) lista.append(valor) somap=0 somai=0 contp=0 conti=0 for i in range(0,len(lista),1): if lista[i]/2==0: somap=somap+lista[i] contp=contp+1 else: somai=somai+lista[i] conti=conti+1 print(somai...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c8653a2a37c86795353a4e72741e89d137677d5d
36bb3dc3dacec82a840ab0a7db906cf4126a16d3
/app/valid_dataset.py
22245bb27672e48773e2ab918e4cc85b5b151a62
[ "MIT" ]
permissive
HiroakiMikami/python-introductory-qa
adf3a06f3598d7c3dd1bc2ee7af06c9dffb13d8d
6035a7927528c086c83b8e7f5119690b1275cf5a
refs/heads/main
2023-01-24T00:21:26.823280
2020-12-05T06:38:13
2020-12-05T06:38:13
312,926,596
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
import torch import os import csv from mlprogram import Environment class ValidDataset(torch.utils.data.Dataset): def __init__(self): path = os.path.dirname(__file__) path = os.path.join(path, "..", "data", "test_dataset.csv") samples = [] with open(path) as file: reade...
[ "hiroaki8270+github@gmail.com" ]
hiroaki8270+github@gmail.com
725e80cbedf93e6497c5653c26ccb9b6873866db
dca653bb975528bd1b8ab2547f6ef4f48e15b7b7
/branches/SOC2008_CallbackExceptions/demo/PopupWindow.py
f765fc0186db5534f8b44564e4d4ddbd8caf7bf3
[]
no_license
czxxjtu/wxPython-1
51ca2f62ff6c01722e50742d1813f4be378c0517
6a7473c258ea4105f44e31d140ea5c0ae6bc46d8
refs/heads/master
2021-01-15T12:09:59.328778
2015-01-05T20:55:10
2015-01-05T20:55:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,370
py
# # 11/30/2003 - Jeff Grimmett (grimmtooth@softhome.net) # # o Some issues with the listbox example; I tried correcting # it but it's still not working the way it should. Commented # out for now, as I found it. # import wx #--------------------------------------------------------------------------- class Test...
[ "RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775" ]
RD@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
228945f5c7bf5695ad281965d472502b553d24e8
c43c88015f9498aed5f3b5a339d245c31781444e
/Free/l10n_by_doc/models/sale.py
d4ab0685f84e18015926a6ae9a4965087418ce36
[]
no_license
mulaudzicalvin/perpul
65106d41d5197fea17628ac1a7fa7e581d29d75e
00e3a5ee1771d2e09a48460ca23c2e9c2ef507d6
refs/heads/master
2020-03-09T18:39:33.131420
2018-02-05T05:17:36
2018-02-05T05:17:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# -*- coding: utf-8 -*- ############################################################################## # # Perpul # Copyright (C) 2016 CodUP (<http://codup.com>). # ############################################################################## from flectra import api, fields, models class SaleOrder(models.Model...
[ "daniel.podvesker@perpul.co" ]
daniel.podvesker@perpul.co
aee883e7d9670304874e3bc3815cd82a01023420
1ac8235de5ef8245ad054f8d2f98214d58988ab1
/data/sampler.py
00fa697362f692e79d813eada9a5f02600c0afe9
[]
no_license
PeterZs/APB2FaceV2
9d34ffa1930bf4a35db2d2e7ae9ea426cde07ca6
8d1555cca6ec42bf71a08efd650798ff1cf4c2c3
refs/heads/main
2023-07-31T10:45:51.599937
2021-10-07T13:05:23
2021-10-07T13:05:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
991
py
import random import collections from torch.utils.data import sampler class VCSampler(sampler.Sampler): def __init__(self, data_source, batch_id, batch_img): super(VCSampler, self).__init__(data_source) self.data_source = data_source self.batch_id = batch_id self.batch_img = batch_...
[ "186368@zju.edu.cn" ]
186368@zju.edu.cn
f9075befcb9a4f8a9ed9b19a9f19746bbf0c6cc3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04020/s963096814.py
812784b2277da72559caf22172ee39675e8c15ec
[]
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
659
py
N = int(input()) A = [int(input()) for _ in range(N)] def counter(ar): count = 0 for i in range(N): # print(i, ar, count) if i > 0: c = min(ar[i - 1], ar[i]) ar[i - 1] -= c ar[i] -= c count += c c = ar[i] // 2 ar[i] -= c * 2 ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
398b8d9d83daef1b5959f0c14817a2044b675bb2
59c1a80321c400890e4d7fea7d67f78052b8b40e
/mysite/settings.py
c6fb4fc900173b314655b47a33d90f3f2468adee
[]
no_license
retyto/my-first-blog
614a718f19f737f45a8bbfbd014a6f4871b57fe4
17bd8c9c9b010f9e9bb99c5e00132ed07a12af6c
refs/heads/master
2023-01-22T04:54:30.566012
2020-11-18T09:52:08
2020-11-18T09:52:08
313,868,610
0
0
null
null
null
null
UTF-8
Python
false
false
3,190
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.13. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os #...
[ "you@example.com" ]
you@example.com
1f70875a32f848ccd044a4a1e37eab6876bee4a3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03031/s085078582.py
326513142192494c13d6b4174f6fdd648ef3aefd
[]
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
725
py
n,m = map(int,input().split()) l = [] for i in range(1 << n): tmp = str(bin(i))[2:] l.append(tmp.zfill(n)) K = [list(map(int,input().split())) for _ in range(m)] P = list(map(int,input().split())) #print(P) ans = 0 #print("----") for i in range(len(l)): #スイッチの状態l[i] #付いている電球のリストO O = [] for j in...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
552ee4b5707a9436a4d93a3725e90a1a8a775a1d
41f548fc3052d4cd3a94e3171a0e2120705ed760
/forum/forum/settings.py
2ea99cea1ce5ee9f25fd6aa11c09360ecfd636b1
[]
no_license
SuperShen9/Scrapy
806f972bcd05d85bf02349c5ee7711af550c8568
cbe141f697596d5a384bb968d7343194236a541f
refs/heads/master
2021-01-19T13:04:19.957911
2018-06-27T23:47:21
2018-06-27T23:47:21
88,060,453
0
0
null
null
null
null
UTF-8
Python
false
false
3,319
py
""" Django settings for forum project. Generated by 'django-admin startproject' using Django 1.10. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os fro...
[ "675153178@qq.com" ]
675153178@qq.com
90e8e9113517f1909a6825df0620cff2d994c698
58afefdde86346760bea40690b1675c6639c8b84
/leetcode/minimum-difficulty-of-a-job-schedule/390932639.py
5067110d923ca30e60194b46fa8b8faa3aa7054d
[]
no_license
ausaki/data_structures_and_algorithms
aaa563f713cbab3c34a9465039d52b853f95548e
4f5f5124534bd4423356a5f5572b8a39b7828d80
refs/heads/master
2021-06-21T10:44:44.549601
2021-04-06T11:30:21
2021-04-06T11:30:21
201,942,771
1
0
null
null
null
null
UTF-8
Python
false
false
976
py
# title: minimum-difficulty-of-a-job-schedule # detail: https://leetcode.com/submissions/detail/390932639/ # datetime: Fri Sep 4 21:57:54 2020 # runtime: 796 ms # memory: 15.2 MB class Solution: def minDifficulty(self, jobDifficulty: List[int], d: int) -> int: n = len(jobDifficulty) M = 1e6 ...
[ "ljm51689@gmail.com" ]
ljm51689@gmail.com
b61ac55197810430738dc27986b54de491ccfee1
cbf97ae0ce36a836b226f69da0b1fca6f6134c34
/star-for-loop.py
2bddd827222ef327ba05f7d4d137b2398dd3e0bb
[]
no_license
habibor144369/turtle-python-programe
c1aff0529d50f88bb39b42c8001f54df448b7549
a134454ab55860384a0a770b785e413b0b185238
refs/heads/main
2023-01-31T23:55:53.932158
2020-12-14T13:51:27
2020-12-14T13:51:27
321,362,042
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
# star art using for loop with turtle....by user input--- import turtle num1 = int(input("Enter your first value type 200 : ")) num2 = int(input("Enter your second value type 144 : ")) turtle.color('blue') turtle.shape('turtle') turtle.speed(2) for i in range(5): turtle.forward(num1) turtle.right(num2) turtl...
[ "you@example.com" ]
you@example.com
c36e833ff388ab62b86ecedb9081a923583f7391
3c1c447bb1de89094dcd3cb2e85b227d3d6aa2fb
/lesson3/3.py
5a8d107084ff21fe9c90cbefd87483bc0a831780
[]
no_license
kirigaikabuto/Python13Lessons
ebd9431314fc4ab8bd470cfe137dfc60000b90a0
6ab8390fd1cc0aac87d373cb1a50d2c9b4405391
refs/heads/main
2023-06-03T00:29:36.791865
2021-06-15T15:17:29
2021-06-15T15:17:29
314,754,425
0
0
null
null
null
null
UTF-8
Python
false
false
635
py
number1 = int(input("введите первое число:")) number2 = int(input("введите второе число:")) number3 = int(input("введите третье число:")) maxi = 0 mini = 0 if number1 > number2 and number1 > number3: maxi = number1 elif number2 > number1 and number2 > number3: maxi = number2 else: maxi = number3 if number1...
[ "ytleugazy@dar.kz" ]
ytleugazy@dar.kz
b973ad0d85de120b46a6a38bd6d4b660e214a560
d8edd97f8f8dea3f9f02da6c40d331682bb43113
/networks919.py
be1d78c2c3bcec430f779cdc235ffb84a9862c06
[]
no_license
mdubouch/noise-gan
bdd5b2fff3aff70d5f464150443d51c2192eeafd
639859ec4a2aa809d17eb6998a5a7d217559888a
refs/heads/master
2023-07-15T09:37:57.631656
2021-08-27T11:02:45
2021-08-27T11:02:45
284,072,311
0
0
null
null
null
null
UTF-8
Python
false
false
7,879
py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np __version__ = 205 # Number of wires in the CDC n_wires = 3606 # Number of continuous features (E, t, dca) n_features = 3 geom_dim = 4 def wire_hook(grad): print('wg %.2e %.2e' % (grad.abs().mean().item(), grad.std().item())) ...
[ "m.dubouchet18@imperial.ac.uk" ]
m.dubouchet18@imperial.ac.uk
c0d7a9630867aa04c07bf46e7b3040f28e0d9d21
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02689/s274095061.py
ce287ee27ff39e3009841ac7248b4345e253e74d
[]
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
557
py
n, m = map(int,input().split()) lst = list(map(int,input().split())) lst2 = [] for i in range(n): lst3 = [lst[i]] lst2.append(lst3) for i in range(m): a, b = map(int,input().split()) a = a - 1 b = b - 1 lst2[a].append(lst2[b][0]) lst2[b].append(lst2[a][0]) ans = 0 for i in range(n): x ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e5a5e9a54dfdf3f3489f0a0b4f59ae3865cb7d10
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/4058.py
2d215bf919d62abf8b7391deac4d51a1ed680c96
[]
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
1,075
py
# -*- encoding: utf-8 -*- """ Google Code Jam 2014 QR A : Magic Trick """ import numpy as np import sys import ipdb with open(sys.argv[1], 'r') as f: tc_input = f.readlines() raw_input = lambda: tc_input.pop(0) T = int(raw_input()) #print("input : {} test cases".format(T)) def tc(): guess1 = int(raw_input...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
91a0d538e6875f05c5abc4ddac0c438e18e79e09
18caf0718520c8c9e57d083606867231629c83b7
/August/190812_01.py
e31c318bd89d7fbd729d2e8308e8d1a08ebc8e6e
[]
no_license
GyuReeKim/Algorithm
b1adedb1ddf9e25c8b0925c55b14867eb2746669
514d6c3ca5b96d728605f12c8793aeb61ba1183d
refs/heads/master
2020-07-03T11:43:05.683077
2019-08-27T05:58:13
2019-08-27T05:58:13
201,894,515
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
# 2072번 test = int(input()) for t in range(test): number = list(map(int, input().split())) result = 0 for num in number: if num % 2: result += num print('#{0} {1}'.format(t+1, result))
[ "starkim96@naver.com" ]
starkim96@naver.com
f048c21cdb9e9d7f408c1b701bcc5697908e4167
8de51c7cc961541d1296cd83cc5f7014908742ea
/greedy/02.py
0c92558eedee309c6406e9bd7f88f013cc0cc835
[]
no_license
Nahui068/python-codingTest
115ab827acfe0129606402d0d762274ef79b9bf2
4d1728cae015417b37a2d555b9d51d9dab58f606
refs/heads/master
2023-02-24T07:06:30.756843
2021-02-04T06:34:11
2021-02-04T06:34:11
335,841,475
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
n,m,k = map(int,input().split()) num = list(map(int,input().split())) num.sort() # 오름차순 정렬 first = num[n-1] # 가장 큰 수 저장 second = num[n-2] # 두번째로 큰 수 저장 sum = 0 while True: for i in range(k): if(m<=0): break sum+=first m-=1 if(m<=0): break sum+=second m-=1 print(sum)
[ "replituser@example.com" ]
replituser@example.com
a3561fc35c2ee09eeca88d20467b85411ec9861c
ef30bc9d1f3efbc8cb4f8641968e5bbd4046322a
/computer/rc_driver2.py
a0a25a49f271a410462dac2f973f5cf398058382
[ "BSD-2-Clause" ]
permissive
wupanhao/self-driving-car
d8459685a5a0276df181100ac4fc8fcaca8c2bfd
4f5a03699ef939d6f469ba98cc32adbdc27f8213
refs/heads/master
2020-04-03T15:43:13.611174
2018-11-21T12:19:15
2018-11-21T12:19:15
155,374,141
0
1
null
null
null
null
UTF-8
Python
false
false
6,522
py
__author__ = 'zhengwang' import sys import threading import socketserver import numpy as np from model import NeuralNetwork from rc_driver_helper2 import * # distance data measured by ultrasonic sensor sensor_data = None class SensorDataHandler(socketserver.BaseRequestHandler): data = " " def handle(sel...
[ "wupanhao@qq.com" ]
wupanhao@qq.com
377a477984ad2a01881e08775d22e0b3bc08913d
db903a5e99712d1f45e1d45c4d77537f811ae569
/src/python/pants/core/register.py
0d11c691c8e5c6138153cffde8fd64d37922ed6c
[ "Apache-2.0" ]
permissive
Hirni-Meshram2/pants
777db8ea67c1fc66de46f0ab374ba4fff8597357
e802d62cc68176aa66947a939c771b01f47d5425
refs/heads/main
2023-05-01T09:23:10.973766
2021-05-19T08:24:50
2021-05-19T08:24:50
366,021,656
0
2
Apache-2.0
2021-05-10T11:38:07
2021-05-10T11:38:06
null
UTF-8
Python
false
false
1,582
py
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Core rules for Pants to operate correctly. These are always activated and cannot be disabled. """ from pants.core.goals import fmt, lint, package, repl, run, tailor, test, typecheck f...
[ "noreply@github.com" ]
Hirni-Meshram2.noreply@github.com
48976756443a772d8b15fbf4cdbc8598a3ae3fd7
fa38f67a6f5296ba64de8d771492f9db230cf5ed
/set.py
62aa4881e65a8480cf73c015f87993d953c23e57
[]
no_license
traffaillac/traf-kattis
5ebc2b0411c9f27da5d9080c269ad0add227a79c
1b6bfdad48f3fab31902d85ed48b1bd0a8f44d0f
refs/heads/master
2023-08-16T21:44:56.885553
2023-08-12T15:04:43
2023-08-12T15:04:43
236,475,020
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
cards = [] for _ in range(4): cards.extend(input().split()) nosets = True for i, c in enumerate(cards): for j in range(i+1, len(cards)): d = cards[j] for k in range(j+1, len(cards)): e = cards[k] if (c[0]==d[0]==e[0] or c[0]!=d[0]!=e[0] and c[0]!=e[0]) and \ (c[1]==d[1]==e[1] or c[1]!=d[1]!=e[1] and c[1...
[ "traf@kth.se" ]
traf@kth.se
349761a521749e881c2bfe7b95049eb0f21e7e93
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02819/s252754906.py
1fe0391f976d0ee47beb965427f7ddd28ea46252
[]
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
616
py
a = int(input()) import math def is_prime(x): if x < 2: return False # 2未満に素数はない if x == 2 or x == 3 or x == 5: return True # 2,3,5は素数 if x % 2 == 0 or x % 3 == 0 or x % 5 == 0: return False # 2,3,5の倍数は合成数 # ためし割り: 疑似素数(2でも3でも5でも割り切れない数字)で次々に割っていく prime = 7 step = 4 while prime <= math.sqr...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
13acd62b1f994f9998b67c23f28493abbf4bc51e
9eba644685c123c4e25fce7046e24f767a8b1a48
/pyfrid/management/commands/project/newcmd.py
7bdf9f0279c3114dc0498d016264838c824f3a2d
[]
no_license
pyfrid/pyfrid-base
1365f25895e611e4f909c8684c8cc808b56ef19f
e1329cf70be3ddba94c835775c77286e62e290e9
refs/heads/master
2021-01-01T15:30:56.824405
2012-07-25T08:01:43
2012-07-25T08:01:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,269
py
# Copyright 2012 Denis Korolkov # # 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 t...
[ "pyfrid@gmail.com" ]
pyfrid@gmail.com
19f98f67b964a7b640c17558bfaf5ecef48263e1
d5735851b605e8960ca321c0e332c7ed810f3e6d
/Python/files/searchRange.py
2330106c4ca96e087c9e15e83aa2cb749710e1ce
[]
no_license
pyj4104/LeetCode-Practice
6ed0cffd3605be6e187bedeb99e3b4b430604913
6a7d033bfd687ad2a0d79ac6a7f50ace1625f631
refs/heads/master
2023-03-12T00:23:50.913239
2021-02-25T03:38:11
2021-02-25T03:38:11
306,699,384
0
0
null
null
null
null
UTF-8
Python
false
false
830
py
class Solution: def searchRange(self, nums: [int], target: int) -> [int]: if not nums: return [-1, -1] if len(nums) == 1: if nums[0] == target: return [0,0] else: return [-1,-1] def condition(mid: int, retVal: [int], indexToRemember: int): if nums[mid] == target: retVal[ind...
[ "pyj4104@hotmail.com" ]
pyj4104@hotmail.com
536fc41c48f9b68e05cfa26805fb8790b242b953
5ec6e98503d20c6e6531f55b015d0908a3fc3760
/python/src/euler/exercises/ex0025.py
53d14c751956b8f4c08781a95f14a43ef29a8b74
[]
no_license
abingham/project_euler
64a4d8cb1049464b30f00a8d8bc03b6e7895e94c
b2ac07e054be1e03ec44de6610bce9439e57a34d
refs/heads/master
2021-01-21T23:20:50.269244
2019-01-12T08:16:45
2019-01-12T08:16:45
10,052,846
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
""" The Fibonacci sequence is defined by the recurrence relation: Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1. Hence the first 12 terms will be: F1 = 1 F2 = 1 F3 = 2 F4 = 3 F5 = 5 F6 = 8 F7 = 13 F8 = 21 F9 = 34 F10 = 55 F11 = 89 F12 = 144 The 12th term, F12, is the first term to contain three digits. What is the index...
[ "austin.bingham@gmail.com" ]
austin.bingham@gmail.com
c73e8e78e5f0f60b6cc3d6f189ed228e8adb8cd5
4781d9293b59a5072647bb179195b143c60621bd
/프로그래머스/여행경로/test.py
177ada6616e93eb8f23a172231d6c6551f638098
[]
no_license
chriskwon96/Algorithm_codes
bf98131f66ca9c091fe63db68b220527800069c9
edb7b803370e87493dad4a38ee858bb7bb3fd31d
refs/heads/master
2023-08-15T18:48:26.809864
2021-10-12T13:43:21
2021-10-12T13:43:21
387,803,476
0
0
null
null
null
null
UTF-8
Python
false
false
139
py
# t = [["ICN", "JFK"], ["HND", "IAD"], ["JFK", "HND"]] # # # t.sort(key= lambda x: x[1]) # # print(t) a = ["a", "b"] b = ["c"] print(a+b)
[ "chriskwon96@naver.com" ]
chriskwon96@naver.com
7e658bf8f905fc207cb3fcb1445242b74bb75f2b
bbc0815f4a697600689375e9aff778a6e059637c
/test_socketserver.py
0b76393db76ac8d0dde9c84655e62d2dfd49b5d0
[]
no_license
OlyaUl/socket
dbb9e12767f082f25855cd4896030968b7090a6a
c0ec9cfe15fc3d8793c8e42e27b524432e8619d5
refs/heads/master
2021-07-08T23:00:44.976315
2017-09-28T13:59:02
2017-09-28T13:59:02
105,138,149
0
0
null
null
null
null
UTF-8
Python
false
false
723
py
#! env bin/python # codding = utf-8 import socketserver # class MyHandler(socketserver.BaseRequestHandler): class MyHandler(socketserver.StreamRequestHandler): # class MyHandler(socketserver.ThreadingMixIn, socketserver.TCPServer): - no working def handle(self): # при подкл клиента print(self.client_add...
[ "johndoe@example.com" ]
johndoe@example.com
62fff1a28c3ed6bacfa91af3689825ca06692ee9
7030c780db36c7d8efedb1152cf945a3cc248fdb
/python/cuml/benchmark/automated/dask/conftest.py
4e406ed5a60ed2b49f5176d52aac5183dc21c6bd
[ "Apache-2.0" ]
permissive
rapidsai/cuml
546af8151fd2ee0f737cc4e62386d4b0ede74f3d
7d86042b8de06bc8acce632230fe5821bd36c17d
refs/heads/branch-23.10
2023-08-30T19:17:41.816373
2023-08-28T13:23:15
2023-08-28T13:23:15
152,616,802
3,615
569
Apache-2.0
2023-09-14T00:21:52
2018-10-11T15:45:35
C++
UTF-8
Python
false
false
1,690
py
# # Copyright (c) 2021-2023, NVIDIA CORPORATION. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "noreply@github.com" ]
rapidsai.noreply@github.com
9f0696229b4b7e16413570f05a7527c7b9f63037
47a3a59288792f654309bfc9ceb6cbfa890720ef
/ramda/symmetric_difference_with_test.py
ee111b4cfdf45147e72b564173979915c648b420
[ "MIT" ]
permissive
jakobkolb/ramda.py
9531d32b9036908df09107d2cc19c04bf9544564
982b2172f4bb95b9a5b09eff8077362d6f2f0920
refs/heads/master
2023-06-23T00:46:24.347144
2021-02-01T16:47:51
2021-02-01T16:48:25
388,051,418
0
0
MIT
2021-07-21T16:31:45
2021-07-21T08:40:22
null
UTF-8
Python
false
false
337
py
from ramda import * from ramda.private.asserts import * eq_a = eq_by(prop("a")) l1 = [{"a": 1}, {"a": 2}, {"a": 3}, {"a": 4}] l2 = [{"a": 3}, {"a": 4}, {"a": 5}, {"a": 6}] def symmetric_difference_with_test(): assert_equal( symmetric_difference_with(eq_a, l1, l2), [{"a": 1}, {"a": 2}, {"a": 5}, ...
[ "slava.ganzin@gmail.com" ]
slava.ganzin@gmail.com
11d29a160e4cf1a0ed1468ae2d52c4a22b384b6d
17acb8e20f9a24b16ce3651302fc2d7fc7b887a6
/test/programytest/storage/asserts/store/assert_denormals.py
69b8759e56ba8ce09df6b4135c836a569fcbd33e
[ "MIT" ]
permissive
cen-ai/program-y
91052fdc11aec0f60311e3429895fac489d8ce54
a753667638147544c54dbebd9f1c8f9ae7f2159e
refs/heads/master
2020-03-22T15:11:07.896885
2018-10-15T22:13:58
2018-10-15T22:13:58
140,234,173
5
5
NOASSERTION
2019-01-03T09:09:07
2018-07-09T05:11:08
Python
UTF-8
Python
false
false
705
py
import unittest import re import os import os.path from programy.mappings.denormal import DenormalCollection class DenormalStoreAsserts(unittest.TestCase): def assert_upload_from_file(self, store): denormal_collection = DenormalCollection() store.upload_from_file(os.path.dirname(__file__) + os...
[ "edguy@eguy.org" ]
edguy@eguy.org
8e7264bd2a84391d707a6246b51f823ef9707a0c
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/6CGomPbu3dK536PH2_17.py
27f13d0539ea212854da0286de565a92547ab1db
[]
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
550
py
""" Create a function that takes in a list and returns a list of the accumulating sum. ### Examples accumulating_list([1, 2, 3, 4]) ➞ [1, 3, 6, 10] # [1, 3, 6, 10] can be written as [1, 1 + 2, 1 + 2 + 3, 1 + 2 + 3 + 4] accumulating_list([1, 5, 7]) ➞ [1, 6, 13] accumulating_list([1, 0, 1, 0...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
d7c9010f10bd7c7e91f7c8b5e7e792d9750c4da7
5ecfa1bf82a7a9fcb542f5063e0ef1c439e0607d
/chapter_13/mnist_cnn_exp2C.py
03e96d9ac5feac8d922808c1ba4ea8a2bab56b65
[ "MIT" ]
permissive
alexiewx/PracticalDeepLearningPython
54256e1e973d30d4290ae9346ee2d314ab6f59c8
7466bac89e6e8e1e491dcacc5172598a05920d79
refs/heads/main
2023-08-30T22:39:04.848840
2021-10-24T17:47:39
2021-10-24T17:47:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,246
py
from __future__ import print_function import keras from keras.datasets import mnist from keras.models import Sequential from keras.layers import Dense, Dropout, Flatten from keras.layers import Conv2D, MaxPooling2D, Activation from keras import backend as K import time N = 1024 batch_size = 8 num_classes = 10 epochs ...
[ "oneelkruns@hotmail.com" ]
oneelkruns@hotmail.com