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
576b51290cbc1d9825ade5b74005590e80d1d158
04a643a77927bc56ab58c7df91d4733321e61e51
/tools_tracks/L_B_Heat.py
0bd9d907a4a1473ea4b4735cdf58325b71b1fa3f
[]
no_license
dcollins4096/p19_newscripts
d2fae1807170a4d70cf4c87222a6258211f993ff
23c780dd15b60944ed354406706de85282d0bee6
refs/heads/master
2023-07-21T11:53:55.188383
2023-07-18T17:38:21
2023-07-18T17:38:21
215,159,839
0
3
null
null
null
null
UTF-8
Python
false
false
581
py
from starter2 import * import heat_map reload(heat_map) dv = np.zeros([n_cores,n_time]) Beta = np.zeros([n_cores,n_time]) Lmag = np.zeros([n_cores,n_time]) for nc,core_id in enumerate(cores_used): Beta[nc,:]=beta_global_array[core_id] Lmag[nc,:]=angular_global_array[core_id] dv[nc,:]=cell_volume[core_id]...
[ "dccollins@fsu.edu" ]
dccollins@fsu.edu
44c3bbffeb9d807aae0e8f62c5061d15a0240739
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/.install/.backup/lib/surface/topic/configurations.py
8ba5652e693ad612c6ab32fdd4daee7eec883803
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
2020-12-24T00:38:09
2017-01-18T00:05:44
Python
UTF-8
Python
false
false
3,747
py
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
[ "toork@uw.edu" ]
toork@uw.edu
d7c2800af47ea16a92b7f71d8e5cc8bd24f307d8
b58355feddd9f36fd39b190254069aea9a210794
/단계별로 풀어보기/9012.py
51482e4ffd04dc1a3fa882202a81d3028a8a140c
[]
no_license
snowman95/pyalgo
eb2e714a54dabbb3f28893d01818b1b35aeba59c
d73f3f94fdd3cfa832ce63b56dca43090a219348
refs/heads/master
2023-08-21T12:05:28.308786
2021-09-21T03:55:32
2021-09-21T03:55:32
398,439,884
2
0
null
null
null
null
UTF-8
Python
false
false
557
py
import sys n = int(sys.stdin.readline()) for i in range(n): stack = sys.stdin.readline().rstrip() l = 0 r = 0 valid = 'YES' pre = stack[-1] if pre == ')': r+=1 for s in range(len(stack)-2, -1, -1): if stack[s] == '(': if r > 0: r-=1 e...
[ "hun2ya9@naver.com" ]
hun2ya9@naver.com
d5ffe4edcacf748e6be9420cf893c02e2ee1c953
b5a31a9b0827232fb8efa2a56db90d396abbbcef
/HackerRank Interview Kit/Sorting/Mark & Toys.py
e4556c71c0100188290d896c2dfbd0273279faa2
[]
no_license
Storiesbyharshit/Competetive-Coding
3a693b2b3193df6fea1b9bc3bbbbb2dfb79eecfd
722c216ee8931754eb7de0660d2aeb21544cf48b
refs/heads/master
2022-12-12T03:50:59.348383
2020-09-09T17:26:01
2020-09-09T17:26:01
281,312,841
2
2
null
2020-08-28T05:06:11
2020-07-21T06:20:05
Python
UTF-8
Python
false
false
742
py
# Complete the maximumToys function below. def maximumToys(prices, k): prices.sort() count=0 total=0 for i in range(len(prices)): total+=prices[i] if total<=k: count+=1 print(count) return (count) # Complete the maximumToys function below. def maximum...
[ "noreply@github.com" ]
Storiesbyharshit.noreply@github.com
bcdc1be5b2c77d15daf8c028b28bc1358a77dcd9
268ef5876d2cfc85b6447785433c193f9882b8e7
/appp/admin.py
c7a47fec024b373ebb8fc4d6dba953dca342364d
[]
no_license
riteshh101/Ciya-Task
7caa2c72ba0654f7c5be5a1d43afe47ffbb2c58d
1602d63d4af4f109f906a68558ac075b851768fb
refs/heads/main
2023-06-17T11:34:14.147972
2021-07-20T04:55:08
2021-07-20T04:55:08
387,675,459
0
0
null
null
null
null
UTF-8
Python
false
false
209
py
from django.contrib import admin from .models import * # Register your models here. @admin.register(engine) class EnginAdmin(admin.ModelAdmin): list_display = [field.name for field in engine._meta.fields]
[ "83176095+riteshh101@users.noreply.github.com" ]
83176095+riteshh101@users.noreply.github.com
6383db623416311ebef0e7959a8610f0770e4492
85f52de727f72db30a4fc4161fc2414cd72035d8
/01day/movies/01-批量重命名.py
4c78c75cc5be64055497e6223976ad3d0cdb130c
[]
no_license
ittoyou/-2-
ff7ca3bfd9428ac6f3ba5332a4c62825c5d30dcd
2c988c2f996221e86e1bbbeb9b3e96da25fe8f92
refs/heads/master
2020-03-24T16:57:05.220482
2018-07-30T08:08:59
2018-07-30T08:08:59
142,844,024
0
0
null
null
null
null
UTF-8
Python
false
false
276
py
import os dir_name = input("请输入文件夹名字") os.chdir(dir_name) print(os.getcwd()) files = os.listdir(dir_name) for file in files: position = file.rfind(".") new_name = file[:position]+"必属精品"+file[position:] os.rename(file,new_name)
[ "429013601@qq.com" ]
429013601@qq.com
45c2cefffbfe41237c062dc26eb3d3863a649d15
dea5535a0f72ac365c71e3d07d76b4c697716ea7
/ist2018_src/phase_4_logireg.py
3b04fa453e24a5f9bd901bec2b146b9846b7b843
[]
no_license
akondrahman/IaCExtraction
f88fd52302451b728292f47731a069a2f1252a40
0d6ceabb30e04c620032427198c0360631d4c68d
refs/heads/master
2020-07-02T06:33:34.498940
2018-12-09T03:44:46
2018-12-09T03:44:46
67,666,488
0
0
null
null
null
null
UTF-8
Python
false
false
2,654
py
# -*- coding: utf-8 -*- """ Created on Thu Oct 15, 2016 @author: akond """ import warnings import Utility , numpy as np , sklearn_models glimpseIndex=10 print "Started at:", Utility.giveTimeStamp() ''' Deprecating warnings will be suppressed ''' warnings.filterwarnings("ignore", category=DeprecationWarning) datas...
[ "akond.rahman.buet@gmail.com" ]
akond.rahman.buet@gmail.com
34b0f9cdfa945d69138ce9b4c097f74c3f6ddce2
07cf86733b110a13224ef91e94ea5862a8f5d0d5
/dynamic_array/dynamic_array.py
e780f2de98545bedf299737599392eb70b62e1aa
[]
no_license
karsevar/Code_Challenge_Practice
2d96964ed2601b3beb324d08dd3692c3d566b223
88d4587041a76cfd539c0698771420974ffaf60b
refs/heads/master
2023-01-23T17:20:33.967020
2020-12-14T18:29:49
2020-12-14T18:29:49
261,813,079
1
0
null
null
null
null
UTF-8
Python
false
false
1,225
py
def dynamicArray(n, queries): # Write your code here # create a list within a list. Example: # seqList = [ # sequence 0 # [], # sequence 1 # [], # sequence n - 1 # .... # ] # print(queries) # initialize lastValue to 0 # since the queries are passed into the...
[ "masonkarsevar@gmail.com" ]
masonkarsevar@gmail.com
6c4d22d8a8b0c7df8b63cafd350cc3fb5f6a9e9b
660e319bb0579292bb1dc39c5e1da7c58f57d902
/howfairis/howfairis.py
4e850861e0f5f1897a64ead7d975d83977b3726d
[ "Apache-2.0" ]
permissive
andrewholding/badge
8841da3048139fafeb81288e747d123836dce7e4
fc541811091c846f89164aae402aca3b5e9fc44e
refs/heads/master
2022-12-12T07:23:02.315546
2020-09-03T15:21:45
2020-09-03T15:21:45
292,541,931
0
0
Apache-2.0
2020-09-03T10:48:32
2020-09-03T10:48:31
null
UTF-8
Python
false
false
1,432
py
from howfairis.check_badge import main as check_badge from howfairis.check_checklist import main as check_checklist from howfairis.check_citation import main as check_citation from howfairis.check_license import main as check_license from howfairis.check_registry import main as check_registry from howfairis.check_repos...
[ "j.spaaks@esciencecenter.nl" ]
j.spaaks@esciencecenter.nl
92abe3d9e468913ac823f3eeb42fbb5f7231a351
bb048a319e732cb7c059b5fb877b834aab7525c5
/gdi/test masuk pekerjaan4.py
8ccadb680bebf9cb3b66fad1d3946c47a47ca23e
[]
no_license
dodysw/dodysw-svn
9ec38513b7be8ec87d4ae8f6510bc7624e4ce4c0
1f784dae610b1052bf4cd96f5d470e56f0a08528
refs/heads/master
2021-01-22T02:34:00.193636
2016-09-10T17:02:22
2016-09-10T17:02:22
25,316,568
1
0
null
null
null
null
UTF-8
Python
false
false
213
py
output = "" xox = 0 x = 5 i = 1001 r = range(1,i) while i: x -= 1 i -= 1 if not x: r.insert(i,"*") xox ^= 1 x = xox and 3 or 5 print ''.join([str(c) for c in r])
[ "dody@cryptolab.net" ]
dody@cryptolab.net
9ec3142d8bd0aa98e33c52aadde0b8381c3f750c
3fefc7fe3b8e7e4851366156e3556efcaba5801e
/libexec/python/tests/test_shub_pull.py
6c99aba62993757df2dd6578e2b0983646bcf89e
[ "BSD-3-Clause" ]
permissive
edf-hpc/singularity-container
1596669e0d6b42eee47857d918936e35c1ac9571
aa3a23a48ddf64dfe35ecf26dbea9a89445f04f9
refs/heads/master
2021-01-21T18:28:38.316810
2017-10-13T02:14:07
2017-10-13T02:14:07
92,050,395
1
0
null
null
null
null
UTF-8
Python
false
false
2,638
py
''' test_shub_pull.py: Singularity Hub testing functions for Singularity in Python Copyright (c) 2016-2017, Vanessa Sochat. All rights reserved. "Singularity" Copyright (c) 2016, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals f...
[ "debian@onerussian.com" ]
debian@onerussian.com
5181fada1e5d57a76b28cdbac481a2ec17dacef3
ef85e5cf466a25fde875873d3f066bc8a728dd39
/Array_Manipulations/Longest_Palindromic_Substring_Naive.py
acf5afd0896a2b51f8fe208c2072dfff6625cd44
[]
no_license
anantvir/Leetcode-Problems
efc8bf760960bba79d9d8a2c5883452fa5eb40e6
a9b2de06306f3929a82ef4e6613c972e9a2c2200
refs/heads/master
2021-07-11T01:07:16.449852
2021-06-22T04:31:45
2021-06-22T04:31:45
212,252,605
1
0
null
null
null
null
UTF-8
Python
false
false
796
py
"""Naive Solution. Should be done with DP""" import math s = 'anantvirbaattaabtanana' def Longest_Palindromic_Substring_Naive(s): max_length = 0 l = list(s) for i in range(0,len(l)-1): # Check all possible strings. From i = 0 to 2nd last element of array and j = i+1 to last element of array ...
[ "anantvir91@gmail.com" ]
anantvir91@gmail.com
ad9c78c57bb4b28d69a724b7a9605f3f423db594
8dc84558f0058d90dfc4955e905dab1b22d12c08
/third_party/polymer/v1_0/components-chromium/paper-listbox/compiled_resources2.gyp
42ab6d393abf3f9b09cb93fa2c31f7b226947a3e
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
Python
false
false
514
gyp
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # NOTE: Created with generate_compiled_resources_gyp.py, please do not edit. { 'targets': [ { 'target_name': 'paper-listbox-extracted', 'd...
[ "arnaud@geometry.ee" ]
arnaud@geometry.ee
d3d17a33c9393384e9466e7d3affd5918b480713
12c1b33e27d841bb25899d6601f1de75b522d88d
/python/de-noob-ify/06_default-mutable-arguments.py
da415171752b6d3f3ef1cab66d964936ebc1c88d
[]
no_license
conflabermits/Scripts
ec27456b5b26ad7b1edaf30686addff2cacc6619
c91ef0594dda1228a523fcaccb4af3313d370718
refs/heads/main
2023-07-06T21:41:12.033118
2023-06-25T19:24:54
2023-06-25T19:24:54
66,151,253
4
0
null
2023-09-10T19:56:17
2016-08-20T14:35:34
HTML
UTF-8
Python
false
false
446
py
#!/usr/bin/env python3 from re import L def append_mutable_list(n, l=[]): l.append(n) return l def append_immutable_list(n, l=None): if l is None: l = [] l.append(n) return l def main(): print(append_mutable_list(0)) print(append_mutable_list(1)) # appends previous list with exi...
[ "christopher.dunaj@gmail.com" ]
christopher.dunaj@gmail.com
10624c118efd9b11e1bdab531fd7ef8f1052be08
db584368a723faa67726c35cdac3f4c65f4b9f83
/password_verification.py
e9d3f970c5f95b4f7403bdc99cf40622c0a2d560
[]
no_license
RoanPaulS/For_Loop_Python
1e0a3df0fcd9602a3bce4386f627b47dd258b15c
348f47aeaaaa96b5ac34daae04379ce1a24d2955
refs/heads/master
2023-05-05T08:33:50.399692
2021-05-24T12:09:58
2021-05-24T12:09:58
370,338,220
1
0
null
null
null
null
UTF-8
Python
false
false
847
py
word = input("Enter any word : "); length = len(word); count_of_alpha = 0; count_of_number = 0; count_of_spchar = 0; if length>=8: for letter in range(length): # if(word[letter].isalpha()): if((word[letter]>="A" and word[letter]<="Z") or (word[letter]>="a" and word[letter]<="...
[ "paul@lintcloud.com" ]
paul@lintcloud.com
379b67482c2e5a0333c5551300815b743680cae6
084f4133fb48ae38c17c6cfaaaecb0a6ae74c134
/exclusionoracle/rules/migrations/0001_initial.py
8a3d9cf91e03c4f6ee5aea4801e92d1044b82d91
[]
no_license
makyo/exclusion-oracle
a4796a560dacdb4164cf344851b98cb70fdb13be
0027338e12ddc8a2209251b28db504e014f3bd89
refs/heads/master
2020-03-22T18:34:21.311501
2018-07-10T18:50:04
2018-07-10T18:50:04
140,468,267
0
0
null
null
null
null
UTF-8
Python
false
false
3,218
py
# Generated by Django 2.0.7 on 2018-07-10 17:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Rule', fields=[ ...
[ "madison.scott-clary@canonical.com" ]
madison.scott-clary@canonical.com
e9dd0960481a7c012560d2574779ea2366fd4342
55c24645dd63a1c41037dcfb9fb45bc7bcdea4be
/venv/lib/python3.7/site-packages/mako/ext/autohandler.py
323e68898be0831e7aab7c92329ace9d9a408dd7
[]
no_license
abdullah-nawaz/flask-boilerplate
7c42801a21ee3e6a647cc8a7d92e0285f8e86cad
01bc7fe1140e8ec613de4a38546a07ddfbdbd254
refs/heads/master
2022-12-02T05:06:08.297759
2020-06-24T21:36:32
2020-06-24T21:36:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
# ext/autohandler.py # Copyright 2006-2020 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """adds autohandler functionality to Mako templates. requires that the TemplateLookup class is use...
[ "muhammadabdullah@wanclouds.net" ]
muhammadabdullah@wanclouds.net
2f8eae5206f48fe7eec7ae7d0fcd2fe92a460c02
fdb2cb9110f0948792c912559f1a04375f4ddba8
/setup.py
1c25303c6388da533c4b3ff8617289d4a1aa76d3
[]
no_license
gdlg-rosarch/pyzmp-rosrelease
912f4ba1672d1fa7632c67c3ea13c38c45d812bf
48b9f98a9b28e950646d4a014c43e0edca7f6ceb
refs/heads/release/kinetic/pyzmp
2020-03-11T04:11:41.171749
2018-04-21T16:31:54
2018-04-21T16:31:54
71,379,633
0
0
null
2016-10-19T16:57:09
2016-10-19T16:57:08
null
UTF-8
Python
false
false
7,416
py
import os import shutil import subprocess import sys import tempfile import importlib import setuptools # Ref : https://packaging.python.org/single_source_version/#single-sourcing-the-version with open('pyzmp/_version.py') as vf: exec(vf.read()) # Best Flow : # Clean previous build & dist # $ gitchangelog >CHANG...
[ "asmodehn@gmail.com" ]
asmodehn@gmail.com
890f57455d5255ac8575b89959c529203053674f
9aa4404d73bd20d842d88b87aba174c1b74a051f
/tests/test_deprecations.py
d33917f11fea27b148f39d5877e46efb5020fe24
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
timgates42/falcon
c9bbe324f5608a961cc29badfe2722bda267713d
89e19dbabb747b889caf0b4ea5256ccb77d6351f
refs/heads/master
2023-03-22T18:46:44.089959
2022-06-27T20:23:03
2022-06-27T20:23:03
239,439,988
0
0
Apache-2.0
2020-02-10T06:05:52
2020-02-10T06:05:51
null
UTF-8
Python
false
false
903
py
import pytest from falcon import app_helpers, request_helpers, stream from _util import has_cython # NOQA def test_bounded_stream(): assert request_helpers.Body is stream.Body assert request_helpers.BoundedStream is stream.BoundedStream class TestApiHelpers: @pytest.mark.filterwarnings('ignore:The ap...
[ "noreply@github.com" ]
timgates42.noreply@github.com
15d988d2851421002f8ad9a9ca32cdae1a7e582d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03761/s739947852.py
2e37e3f53b8674271c2e8d30576efb35e98538ea
[]
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
334
py
N = int(input()) al=[chr(ord('a') + i) for i in range(26)] out = [1000]*26 for i in range(N): S = list(input()) LS = len(S) tmp = [0]*26 for j in range(LS): tmp[ord(S[j])-ord("a")]+=1 for j in range(26): out[j]=min(out[j],tmp[j]) S = "" for i in range(26): S += out[i]*chr(ord("a"...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
8d89762eb19dad3a7fd45073b2dc4f485a09cb80
541105251280a77d1cd61af33da6a86d20d2a7bc
/多继承及MRO方法/01_多继承使用类名.py
6e77bb9f761ea79ae2a8087b041894ec56747cc9
[]
no_license
xiaoxue11/python_basic
4d16a5493126b9fde4beda90ffb9f836c3fab1ed
23906b4d40a425a881165c9cee1a4fa9ea3c2419
refs/heads/master
2020-11-24T17:05:47.441141
2019-12-20T20:24:55
2019-12-20T20:24:55
228,263,152
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
class Parent: def __init__(self, name): print('parent init function run') self.name = name print('parent init function end') class Son1(Parent): def __init__(self, name, age): print('Son1 init function run') self.age = age Parent.__init__(self, name) pri...
[ "xuezhang0111@gmai.com" ]
xuezhang0111@gmai.com
4f5e1c3c277021844da2c12c2ef0eac93a07efcf
ceafaca2da6b63e9c8a4fc09a37791b720483e19
/ice_server.py
ee847d3078d2d5d65b7ea47bc6afd3dcab17d34d
[ "MIT" ]
permissive
wx-weixiao/realXiaoice
b75e4c42477c5c6ced942811cd15ddc3c006ef07
ae632277043c1f5b0ede0ed3d89b27c08d6878f4
refs/heads/master
2021-01-09T13:43:54.437177
2019-12-18T10:34:27
2019-12-18T10:34:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,789
py
#!/usr/bin/python # coding: utf-8 # realXiaoice - server.py # 2019/8/11 17:13 # __author__ = "Benny <benny.think@gmail.com>" import logging import os from platform import uname import json import traceback from concurrent.futures import ThreadPoolExecutor from tornado import web, ioloop, httpserver, g...
[ "benny.think@gmail.com" ]
benny.think@gmail.com
0420aca1baa4dfe299743e3cd1cf51982ba6b0b1
5864e86954a221d52d4fa83a607c71bacf201c5a
/posixpath.py
d75aa287648fbc8bdf4a9afa9d795e2c758d4776
[]
no_license
connoryang/1v1dec
e9a2303a01e5a26bf14159112b112be81a6560fd
404f2cebf13b311e754d45206008918881496370
refs/heads/master
2021-05-04T02:34:59.627529
2016-10-19T08:56:26
2016-10-19T08:56:26
71,334,417
0
0
null
null
null
null
UTF-8
Python
false
false
6,593
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\carbon\common\stdlib\posixpath.py import os import sys import stat import genericpath import warnings from genericpath import * __all__ = ['normcase', 'isabs', 'join', 'splitdrive', 'split', 'splitext', 'basename', 'dirname', 'c...
[ "le02005@163.com" ]
le02005@163.com
0b772a3fd15a9863fb7b4ad96cd9e0f52c508563
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/abc030/C/4715379.py
dc481e3877c5d5c6661b061250fe8de5dc165101
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
324
py
from bisect import bisect_left n,m = map(int,input().split()) x,y = map(int,input().split()) A = list(map(int,input().split())) B = list(map(int,input().split())) count = 0 i = 0 while i <= A[-1]: i = A[bisect_left(A,i)]+x if i <= B[-1]: i = B[bisect_left(B,i)]+y count += 1 else: break print(co...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
3c2b146699510f4ffe1d08f61efa646bb482ed95
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/303/usersdata/278/85263/submittedfiles/testes.py
f8c64737918c6c5261040f8ebf8f6fdda9ad00b8
[]
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
260
py
from minha_bib import * #hello_word() #print(fatorial(fatorial(7))) #cronometro(5) n1 = ler_inteiro() n2 = ler_inteiro() print(media(n1,n2)) #c1 = ler_carta_baralho() #c2 = ler_carta_baralho() #c3 = ler_carta_baralho() #print("%.d - %.d - %.d" %(c1,c2,c3))
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
2da71b4c1588f2ec44a93d88e1180a20af873bd8
98c6ea9c884152e8340605a706efefbea6170be5
/examples/data/Assignment_6/smxdip001/question2.py
648155c1706a6785e7231e02e37abc3f434f07d2
[]
no_license
MrHamdulay/csc3-capstone
479d659e1dcd28040e83ebd9e3374d0ccc0c6817
6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2
refs/heads/master
2021-03-12T21:55:57.781339
2014-09-22T02:22:22
2014-09-22T02:22:22
22,372,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
# a program to do basic vector calculations in 3 dimensions: addition, dot product and normalization. #question2 #Author: Dipanjali Samoo #Student Number: SMXDIP001 import math d= input("Enter vector A: \n") #create the list and evaluate the values a= d.replace(" ",',') array_A= a.split(",") x= eval(array_A[0]...
[ "jarr2000@gmail.com" ]
jarr2000@gmail.com
c0da91357f5592da8b9270a5af62772334c9fb22
1267218473ffb18f8a877143c698c24bb8f0fcdf
/Hnet/hnet.py
f7a446575fe28f4ac47fa5e290aea40a62994246
[]
no_license
jtpils/LaneDetect
5e656cd783ef68dc324010ac1c603722b407ec14
e25c03719d6928e41bf62f5b4b6e66e39c8be5a9
refs/heads/master
2020-06-03T22:40:27.194996
2019-06-13T10:25:48
2019-06-13T10:25:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,934
py
import torch import torch.nn as nn import numpy as np ''' ----------------------------- Part II: 深度学习车道线拟合网络 参考文献: "Towards End-to-End Lane Detection: an Instance Segmentation Approach",ArXiv2018, Davy Neven, Bert De Brabandere, Stamatios Georgoulis, Marc Proesmans, Luc Van Gool ----------------------------- ''' ...
[ "noreply@github.com" ]
jtpils.noreply@github.com
a1b4b7fad17e40bf7c92c68ecf2f84be8661125d
adb759899204e61042225fabb64f6c1a55dac8ce
/2600~2699/2631.py
6020e10dfcba898de1ecf387643de2a3fa5e6c57
[]
no_license
geneeol/baekjoon-online-judge
21cdffc7067481b29b18c09c9152135efc82c40d
2b359aa3f1c90f178d0c86ce71a0580b18adad6f
refs/heads/master
2023-03-28T23:25:12.219487
2021-04-01T09:19:06
2021-04-01T09:19:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,234
py
# 문제 # KOI 어린이집에는 N명의 아이들이 있다. 오늘은 소풍을 가는 날이다. # 선생님은 1번부터 N번까지 번호가 적혀있는 번호표를 아이들의 가슴에 붙여주었다. # 선생님은 아이들을 효과적으로 보호하기 위해 목적지까지 번호순서대로 일렬로 서서 걸어가도록 하였다. # 이동 도중에 보니 아이들의 번호순서가 바뀌었다. # 그래서 선생님은 다시 번호 순서대로 줄을 세우기 위해서 아이들의 위치를 옮기려고 한다. # 그리고 아이들이 혼란스러워하지 않도록 하기 위해 위치를 옮기는 아이들의 수를 최소로 하려고 한다. # 예를 들어, 7명의 아이들이 다음과 같은 순서대로 줄을...
[ "alstn2468_@naver.com" ]
alstn2468_@naver.com
1399586b6c165bf0f41dea70e1ee2e73d88c3d15
6268a19db5d7806b3a91d6350ec2777b3e13cee6
/old_stuff/code/hpe-feb2019/qi2016/from_shanxin/src/Hier_Derot_Recur_Test_v2/load_data.py
53fcde43500cde443baf5d6b836fe1c15cc372fd
[]
no_license
aaronlws95/phd_2019
3ae48b4936f039f369be3a40404292182768cf3f
22ab0f5029b7d67d32421d06caaf3e8097a57772
refs/heads/master
2023-03-22T14:38:18.275184
2021-03-21T11:39:29
2021-03-21T11:39:29
186,387,381
0
0
null
null
null
null
UTF-8
Python
false
false
5,186
py
import h5py from sklearn.utils import shuffle import numpy from src.utils.normalize import norm_01 from src.utils.crop_patch_norm_offset import crop_patch,norm_offset_uvd def load_data_iter0(batch_size,path,jnt_idx,is_shuffle): print 'is_shuffle',is_shuffle f = h5py.File(path,'r') r0 = f['r0'][...] r...
[ "aaronlws95@gmail.com" ]
aaronlws95@gmail.com
bcc015a3770f2ebba3d840ec7057804ab8b97c1f
7843554c24f81d4cd8ce8ec715b64b7c4901ad88
/src/pyconcepticon/commands/stats.py
0240f2d72e5ae60dea702c8da60019e871cfe277
[ "Apache-2.0" ]
permissive
armendk/pyconcepticon
121ccb6536a399326d802d0e7f4437daaf67c5c5
7764d4b0900a37a76a6cb6ff9bdc8348502fa51d
refs/heads/master
2022-04-09T10:06:39.995888
2020-03-10T15:11:14
2020-03-10T15:11:14
256,612,455
1
0
Apache-2.0
2020-04-17T21:21:36
2020-04-17T21:21:35
null
UTF-8
Python
false
false
3,420
py
""" Generate new statistics for concepticondata/README.md. """ import operator import collections from clldutils.markup import Table from pyconcepticon.cli_util import readme def run(args): cls = args.repos.conceptlists.values() readme_conceptlists(args.repos, cls, args) readme_concept_list_meta(args.re...
[ "xrotwang@googlemail.com" ]
xrotwang@googlemail.com
4a6cd44903417324e77f2085625aa0ae550fb099
3b021013f751147b92e85c88e55c2faf3dba7891
/src/chat/views.py
5b2e4d70627ce8f0058646500d5487ba8e8c452f
[]
no_license
qu4ku/django-channels-chat-test
cf9cf6029ce43e8f34d96dbf95226d9c28612e20
989d17f757eadadeae8711941c3d36f5aee7b8d2
refs/heads/master
2020-04-21T23:12:21.479748
2019-02-17T19:51:05
2019-02-17T19:51:05
169,938,768
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
from django.contrib.auth.decorators import login_required from django.shortcuts import render from django.utils.safestring import mark_safe import json def index(request): return render(request, 'chat/index.html', {}) @login_required def room(request, room_name): template = 'chat/room.html' context = { 'room_nam...
[ "qu4ku@hotmail.com" ]
qu4ku@hotmail.com
67d3501dc074d992ae2be2bb36cf44568de9f615
4cdd5813d20f40d525b4d418df2788fa72a394bf
/Leetcode/easy/contains-duplicate.py
52781be9f7a4bcf57251e4c73c1310fb9d835f4e
[ "MIT" ]
permissive
das-jishu/data-structures-basics-leetcode
9baa78b49cfc1b0f5c48ef961b85b4fa9ffaf0dd
9f877ba8ed1968c21c39ebeae611ba3c448a083a
refs/heads/master
2023-08-21T06:54:57.380306
2021-10-01T02:59:51
2021-10-01T02:59:51
298,940,500
23
21
MIT
2021-10-01T02:59:52
2020-09-27T02:52:50
Python
UTF-8
Python
false
false
628
py
""" # CONTAINS DUPLICATE Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct. Example 1: Input: [1,2,3,1] Output: true Example 2: Input: [1,2,3,4] Output: ...
[ "das.jishu25@gmail.com" ]
das.jishu25@gmail.com
900c683601845864fd63ed7723ece8fbaee2ca74
1a657ae9915b659fdada41fdf8b8b94a2227d207
/packages/akit/integration/upnp/services/__init__.py
1facf70ee3d7fbed2b1d5af0863b4c540c7a604e
[]
no_license
TrendingTechnology/automationkit
70c1a64f5827b4cfeb324ea1e5b3c1c3e078119e
530ea184f29add6f42bee1465343f6ddb51a1e51
refs/heads/main
2023-07-01T21:44:33.689917
2021-07-22T02:41:47
2021-07-22T02:41:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
""" .. module:: services :platform: Darwin, Linux, Unix, Windows :synopsis: Module containing the UPnP service proxy and eventing classes. .. moduleauthor:: Myron Walker <myron.walker@gmail.com> """ __author__ = "Myron Walker" __copyright__ = "Copyright 2020, Myron W Walker" __credits__ = [] __version__ = "1...
[ "myron.walker@gmail.com" ]
myron.walker@gmail.com
3aefcafcec767b9cdd35d2625ef78fdab412d007
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_pledged.py
c929e8d3d4baaab08d075bb68a9a3d7d6a528de8
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
#calss header class _PLEDGED(): def __init__(self,): self.name = "PLEDGED" self.definitions = pledge self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['pledge']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
9dd1c659aa6725e85c2676a5ebd2a86d2b7f4568
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/wbhjXmdbPSxCSE5hW_8.py
8237c098a004152278a142392b5cf5dea787c299
[]
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
1,397
py
""" A magic sigil is a glyph which represents a desire one wishes to manifest in their lives. There are many ways to create a sigil, but the most common is to write out a specific desire (e.g. " _I HAVE WONDERFUL FRIENDS WHO LOVE ME_ "), remove all vowels, remove any duplicate letters (keeping the last occurence), a...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
14edba7caead4fb49ccf9f02546009bd72f929b1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03617/s485823855.py
8c284727514507901968c907c228bc1daf0b53bb
[]
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
135
py
Q, H, S, D = map(int, input().split()) N = int(input()) l = min(4*Q, 2*H, S) if 2*l > D: print(D*(N//2) + N%2 * l) else: print(l*N)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
9f70152642c8e643ad83980715522a87bff88fab
695803cf1ae81f7a8ad63faa80545c3c913cee02
/Part1/week2/chapter9/exercise/9.11.py
129655f045e97d71e685e5910bf7b160e6cb9749
[]
no_license
superstones/LearnPython
fa72a249a69323927da81887ce4b9f400552a1d0
5ea25f9b9922654d67c6b31475cdf02b9fe99c7e
refs/heads/master
2023-06-24T10:40:18.639288
2021-07-22T08:34:11
2021-07-22T08:34:11
370,679,012
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
from Admin import * # from Admin import Admin her_admin = Admin('shi', 'lei', '24', 'male') her_admin.describe_user() her_admin = Privileges() her_admin.show_privileges()
[ "292454993@qq.com" ]
292454993@qq.com
f71c5a5bb3d36161ee55792ce8ee6c3787cbc569
07194d0e8bee8dd791c0eb740211957762ebae5b
/py_code/neural/nn_perceptron.py
d02dcfc76833616eee36d45d3af91295b9cc6963
[ "Apache-2.0" ]
permissive
xSakix/etf_expert
14779efcc6643e32cf8a36e88d6e2050f44c218d
3d811a9a505a43a608106ede228aae05e71cc532
refs/heads/master
2021-10-19T12:20:21.099899
2019-02-20T20:10:29
2019-02-20T20:10:29
103,178,801
2
1
null
null
null
null
UTF-8
Python
false
false
2,872
py
#najjednoduchsie siet - 1 perceptron...w1,w2 su 0.5 a w0 reguluje ci to je and (-0.3) al or (+0.3) #-1 = false, 1 = true import numpy as np import matplotlib.pyplot as plt def sigmoid(x): return 1./(1.+np.exp(-x)) def step(x): return 0.5*(np.sign(x) + np.sign(1 - x)) def step2(x): if x > 0: return 1. return -...
[ "seckarovci@gmail.com" ]
seckarovci@gmail.com
405c251b121060a87295edbea0490f0502f0f223
84a7948aa18b5f3c08ef64e17541e2c35d7f8fea
/envs/sc2_zergling_defense.py
3973b040f0b2902fead2be68188cbcf1e955a8c3
[]
no_license
feng1510/scm-gan
80511c41a582ab672a4eff7bfaa3cf7ec8c0f4be
85a2b22cf53fc07c7ba04c36e0b80b4bb161ab38
refs/heads/master
2022-03-12T06:08:51.773831
2019-10-24T17:14:01
2019-10-24T17:14:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,969
py
import sys import math import random import time import numpy as np from threading import Thread import imutil import gym from sc2env.environments.zergling_defense import ZerglingDefenseEnvironment REPLAY_BUFFER_LEN = 100 MIN_REPLAY_BUFFER_LEN = 4 MAX_TRAJECTORY_LEN = 20 MAX_EPISODES_PER_ENVIRONMENT = 500 NUM_ACTION...
[ "nealla@lwneal.com" ]
nealla@lwneal.com
e701ab53c22f5fc11b4b880629338e5aa71626fd
dae3d506ce343e8df95c4285866a877850db9b83
/srcomp/tests/test_stable_random.py
fc8919f2cd7ef7e49a125c4e51f7d03a5e059d50
[]
no_license
prophile/srcomp-unified
65f1f250f5f510a032721d53003ef5433f41a401
d5ff9f1b1a17674318e58dce7672aac3622d71bf
refs/heads/master
2021-01-19T04:33:13.018806
2016-07-26T13:52:40
2016-07-26T13:52:40
64,753,010
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
from __future__ import print_function from nose.tools import eq_ from sr.comp.stable_random import Random # Tests primarily to ensure stable behaviour across Python versions def test_getrandbits(): rnd = Random() rnd.seed(b"this is a seed") bits = rnd.getrandbits(32) eq_(bits, 4025750249) def test...
[ "PeterJCLaw@gmail.com" ]
PeterJCLaw@gmail.com
a08853bcc19d5a5758c7e4065d0dab3c921e9308
16ba38ef11b82e93d3b581bbff2c21e099e014c4
/haohaninfo/Python_Future_Sample/實單交易/65.py
8b265b90aed038884b146839d1639b62c1f8d95f
[]
no_license
penguinwang96825/Auto-Trading
cb7a5addfec71f611bdd82534b90e5219d0602dd
a031a921dbc036681c5054f2c035f94499b95d2e
refs/heads/master
2022-12-24T21:25:34.835436
2020-09-22T09:59:56
2020-09-22T09:59:56
292,052,986
2
5
null
null
null
null
UTF-8
Python
false
false
639
py
# -*- coding: UTF-8 -*- # 載入相關套件 import sys,indicator,datetime,haohaninfo # 券商 Broker = 'Masterlink_Future' # 定義資料類別 Table = 'match' # 定義商品名稱 Prod = sys.argv[1] # 取得當天日期 Date = datetime.datetime.now().strftime("%Y%m%d") # K棒物件 KBar = indicator.KBar(Date,'time',1) # 計算量MA指標 GO = haohaninfo.GOrder.GOQu...
[ "penguinwang@smail.nchu.edu.tw" ]
penguinwang@smail.nchu.edu.tw
573e39551cd4a80adee355a25b126d0901b2c598
14f0c423c109a75a8cbd10ca8c526f1482e3e385
/Python/OOP/math_dojo.py
0e33a531f5fbbb39f01c10bf1846562684547ab8
[]
no_license
thisolivier/dojo-master
21fd5d13e25321cce0558cab3b0c0335774e173c
9486f6b2af2148a296e2a238eee2b814fe0831fe
refs/heads/master
2021-01-01T06:47:07.162851
2017-09-16T00:54:05
2017-09-16T00:54:05
97,511,225
0
0
null
2017-09-16T00:42:26
2017-07-17T18:51:47
Python
UTF-8
Python
false
false
863
py
class MathDojo(object): def __init__(self): self.counter = 0 def __repr__ (self) : return "<User object of MathDojo, methods add() subtract()>" def add(self, *num): for thisNum in num: whatType = str(type(thisNum)) if( whatType.find("list") >= 0 ): ...
[ "olivier.butler@gmail.com" ]
olivier.butler@gmail.com
c43bd20f6e5dea0c5695cce383b8832533f78558
fa346a2d5886420e22707a7be03599e634b230a9
/temboo/Library/Amazon/Marketplace/Feeds/AddOrUpdateProductImage.py
80d4911a7f58f2937f45f6da5a7f4ad9e63d0577
[]
no_license
elihuvillaraus/entity-resolution
cebf937499ed270c3436b1dd25ab4aef687adc11
71dd49118a6e11b236861289dcf36436d31f06bc
refs/heads/master
2021-12-02T17:29:11.864065
2014-01-08T04:29:30
2014-01-08T04:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,596
py
# -*- coding: utf-8 -*- ############################################################################### # # AddOrUpdateProductImage # Adds or updates a product image with a given image location and SKU. # # Python version 2.6 # ############################################################################### from tembo...
[ "cedric.warny@gmail.com" ]
cedric.warny@gmail.com
8bc21b992e6209ba9493edda04b772ea5783f1e6
89bfa8649b7cf6b651bb4ba5f56bb227c17d0909
/Session18.py
d75c63a10a601341a1930848056b6388036567cf
[]
no_license
rishavsharma47/ENC2020P1
617515a5305cbabecd4d7d7048c4869c8ba4fc46
ce238338a6a60e4e768db633df1a397dbde39fbc
refs/heads/master
2021-01-07T02:16:43.413402
2020-02-18T06:46:42
2020-02-18T06:46:42
241,550,493
1
0
null
2020-02-19T06:35:32
2020-02-19T06:35:31
null
UTF-8
Python
false
false
4,923
py
import mysql.connector as lib """ [Write Operations] [Data Manipulation in Table] # Insert Operation insert into Customer values(null, 'John', '+91 99999 88888', 'john@example.com') # Update Operation update Customer set name = 'John Watson', phone = '+91 98765 00900', email = 'john.watso...
[ "er.ishant@gmail.com" ]
er.ishant@gmail.com
27d925d4276acfb54fb95cf80e18ae5af13631a1
7bac5f6effcfea85aa8ec1ae4442b999273d2c54
/Mundo 2 by Curso em Video/Exercicios/ex052.py
cffa99e2b1a8b7b26a0485adca7a37660bb06cab
[]
no_license
Nilsonsantos-s/Python-Studies
dd99cdca3e27341def64136913a7b609d79a337d
c8e230352c003cc12b88fa45a45b313e8e6dda78
refs/heads/master
2023-08-15T12:36:53.466042
2021-09-21T20:43:43
2021-09-21T20:43:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
# Faça um programa que leia um numero inteiro inteiro e verifique se ele é um numero primo, sendo numero primo divido apenas por 1 e ele mesmo n1 = int(input('Digite um numero Inteiro:')) sm = 0 for x in range(1,n1+1): if n1 % x == 0: sm += 1 if sm == 2: print('Numero Primo') else: print('Numero Nã...
[ "64300982+kilerhg@users.noreply.github.com" ]
64300982+kilerhg@users.noreply.github.com
46f45f4be49b2ae4f201294d9bdf3103dc608b60
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/datafactory/v20180601/get_managed_private_endpoint.py
0256d4bf3fc33f5ff7404a3b041ecc228cff7c6e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,228
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
f974a1baa56cea3234a0b84f947c767f1e7abaf0
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/547c04b40d2bb55e14c1fa086b1a9958d672406b-<test_aligned_mem_float>-fix.py
a0e7d74ab6535879768b66190fb38111d0856908
[]
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
273
py
def test_aligned_mem_float(): 'Check linalg works with non-aligned memory (float32)' a = arange(402, dtype=np.uint8) z = np.frombuffer(a.data, offset=2, count=100, dtype=float32) z.shape = (10, 10) eig(z, overwrite_a=True) eig(z.T, overwrite_a=True)
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
2a13716e2f0234f6cec4cc2a09788a24c7e1eed2
9da052515ce465cf296278f96c492d9ead1ccb13
/chap07/path_walk2.py
460014d3a666bfd7def07f319138a3b8f3513525
[]
no_license
usako1124/teach-yourself-python
ea5cf1491d8609be7436bab56798040314a3ccf8
e53b1a27117d03804d136dbb5ace37efc9bf6a10
refs/heads/main
2023-06-15T22:47:22.873291
2021-06-30T13:34:08
2021-06-30T13:34:08
354,186,822
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
import os PATH = './chap07/doc' for path, dirs, files in os.walk(PATH): for f in files: # 拡張子が .txt のものだけを列挙 if f.endswith('.txt'): print(os.path.join(path, f))
[ "usako1124.aibo@gmail.com" ]
usako1124.aibo@gmail.com
995e2923569bbe718a505e0fa66e53b23c049f96
8457291a531a08e6249c674f6b4943388d110f77
/剑指offer/数组中出现次数超过一半的数字.py
8b4356140a12c0699d1adadeb2a913407a9c04f9
[ "Apache-2.0" ]
permissive
oscarhscc/algorithm-with-python
e190511844aaeacff14381000e371945f74aba14
2d67e2da11045199b9ab6c0b2f01e239255196ef
refs/heads/master
2020-12-03T12:31:37.764545
2020-11-13T03:01:04
2020-11-13T03:01:04
231,317,820
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
''' 题目描述 数组中有一个数字出现的次数超过数组长度的一半,请找出这个数字。例如输入一个长度为9的数组{1,2,3,2,2,2,5,4,2}。由于数字2在数组中出现了5次,超过数组长度的一半,因此输出2。如果不存在则输出0。 ''' # 摩尔投票法,最后这个众数的出现次数要大于数组长度的一半 # -*- coding:utf-8 -*- class Solution: def MoreThanHalfNum_Solution(self, numbers): # write code here count = 1 res = numbers[0] ...
[ "noreply@github.com" ]
oscarhscc.noreply@github.com
d050588f6b12c9156186fd553d5cd7e13db0b75c
23c4f6d8a2a6b97077628c2a012b2b402c816d91
/LeetCode算法题/0007_整数反转/整数反转.py
c36e93c946e8934abed51cd186aacc1bb5390b9a
[]
no_license
exueyuanAlgorithm/AlgorithmDemo
7ef6ff8104e8da5a81037795184115fb0ac8ca9a
d34d4b592d05e9e0e724d8834eaf9587a64c5034
refs/heads/master
2023-07-16T19:00:05.664780
2021-09-04T11:31:07
2021-09-04T11:31:07
277,327,574
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
class Solution(object): def reverse(self, x): """ :type x: int :rtype: int """ a = str(abs(x)) returnNum = int(a[::-1]) if x < 0: returnNum = - returnNum if returnNum < (- 2 ** 31) or returnNum > (2 ** 31 - 1): return 0 ...
[ "1079240024@qq.com" ]
1079240024@qq.com
1accd73949d1776661f7b183b1b45e562d536c6f
39a94cf94300ebdaff1be3549353b75a4f62b6a3
/pubqlib/logic/the_app.py
7547929f611861813d4707fc6cf039cbfc14ac1e
[ "MIT" ]
permissive
pyqgis/pubq
737c275193093c1ede02c2db6b17471b1d8bf104
ac82f9f5f156096104137aaaeec2f73984cd002a
refs/heads/master
2020-09-10T06:54:30.904957
2019-11-16T19:58:59
2019-11-16T19:58:59
221,678,183
0
0
null
null
null
null
UTF-8
Python
false
false
2,098
py
# -*- coding: utf-8 -*- """ Contains the definition of the TheApp class. """ from __future__ import unicode_literals from __future__ import print_function import logging import os from pubqlib.logic.plugin import PubPlugin from pubqlib.logic.toolset import Toolset logger = logging.getLogger('TheApp') class TheApp(...
[ "nicu.tofan@gmail.com" ]
nicu.tofan@gmail.com
a2cee9b0545447e6ce53ee820d31f14c0bbed21c
071c3c26cc1ab2f96cf193803ff99afde61fdc8a
/mybenchmark/E39/generate_heatmap.py
4967e386c45508f0eb1898361476d6e4393b6ff1
[]
no_license
oxhead/elastic-hpcc
245cd4120a4ae0b42d0aedfe0a31cc364869da92
053af4126263de68e36d46cbb2f83c28c40dcd2f
refs/heads/master
2021-04-15T13:37:47.712593
2017-08-17T13:41:14
2017-08-17T13:41:14
126,847,123
0
0
null
null
null
null
UTF-8
Python
false
false
5,259
py
import itertools from elastic.hpcc import placement from mybenchmark.base import config as myconfig from mybenchmark.base import * def main(run_id): init.setup_logging(default_level=logging.DEBUG, config_path="conf/logging.yaml", log_dir="logs", component="benchmark") script_dir = os.path.dirname(os.path.re...
[ "chsu6@ncsu.edu" ]
chsu6@ncsu.edu
9dcc9d766de1157a12bbd18aeb9af536028941ef
f61cf1a24fa184dd552dd47dd8399b74c5816ee0
/netology/diplom/diplom_2.py
ca7ea1efca43d784f2b7dc4fc13916d42044a651
[]
no_license
desve/netology
ea585d9db8658eea5319b98f63259239fa538fcb
c6039cc831058b8ba650d417fae25f761520139b
refs/heads/master
2020-01-23T21:11:31.291807
2017-04-06T05:19:08
2017-04-06T05:19:08
74,572,766
0
0
null
null
null
null
UTF-8
Python
false
false
2,750
py
import pandas as pd # Включаем отображение в блокноте %matplotlib inline # Строим гистограммы распределения по возрасту # Задаем имя файла file_name = 'groups_age.json' # Задвем путь к файду file_path = '/Users/vladimirdesatov/PycharmProjects/netology/diplom/{0}'.format(file_name) # Читаем файд json data = pd.read...
[ "2901243@mail.ru" ]
2901243@mail.ru
ae92f27b0ec53cde6614c9d3916f3069c2589ad6
dfad3e9f5e818a142cefd7dab600441ad7580363
/quantecon/util/tests/test_notebooks.py
8e39e2dabc110632fa8660d4ee3d86c246ac853f
[ "BSD-3-Clause" ]
permissive
christofvanwyk/QuantEcon.py
db9874f273e3c0b92e47faebd6a62c730c6a8511
750c58f14cce0f5577d57543c81ed64b54a379ce
refs/heads/master
2021-04-03T09:32:23.752826
2018-03-14T01:15:50
2018-03-14T01:15:50
125,232,173
1
0
BSD-3-Clause
2018-03-14T15:14:29
2018-03-14T15:14:28
null
UTF-8
Python
false
false
1,096
py
""" Tests for Notebook Utilities Functions --------- fetch_nb_dependencies """ from quantecon.util import fetch_nb_dependencies import unittest import os FILES = ['test_file.md'] REPO = "https://github.com/QuantEcon/QuantEcon.py" RAW = "raw" BRANCH = "master" FOLDER = "quantecon/util/tests/" class TestNotebookUtil...
[ "mamckay@gmail.com" ]
mamckay@gmail.com
3c07955cfe742f148017b8a3ce7642b2dc802b9e
616cc6c05f525dd2cb67916601f6ecd2c8242f24
/lab/lab07/client/sources/common/pyconsole.py
f1585fdc153554d485131725d86a7b94083455f8
[]
no_license
cookieli/cs61a_li
6f1d51aad7cd32fb27f64c855b3803bd2f8d9aad
6ee0df9c64842bde9e30a0484e661abf04212358
refs/heads/master
2020-04-07T14:32:38.337554
2018-03-07T10:18:03
2018-03-07T10:18:03
124,218,933
2
0
null
null
null
null
UTF-8
Python
false
false
2,688
py
"""Case for doctest-style Python tests.""" from client import exceptions from client.sources.common import interpreter from client.utils import output from client.utils import timer import code import textwrap import traceback class PythonConsole(interpreter.Console): PS1 = '>>> ' PS2 = '... ' def __init...
[ "you@example.com" ]
you@example.com
e5e0f053795de3ea79309b3da82d2d6f56a9c80a
90c5c9df3d0639e1f8420b592a77df752ab79746
/bridger/utils/metadata_validator.py
0e0d4a29fcfef4538660a3fa1c808d3df9efa9a3
[ "BSD-3-Clause" ]
permissive
intellineers/django-bridger
4a16e5e63c697671740d965c3fcab02a89b8b27f
ed097984a99df7da40a4d01bd00c56e3c6083056
refs/heads/master
2023-08-14T05:41:38.003086
2021-09-06T16:51:56
2021-09-06T16:51:56
221,709,929
2
1
BSD-3-Clause
2023-07-22T21:39:45
2019-11-14T13:57:09
Python
UTF-8
Python
false
false
2,836
py
import json import os from jsonschema import Draft7Validator, validate from bridger.buttons import Button BASE_PATH = os.path.dirname(__file__) schema = { "type": "object", "properties": { "identifier": {"type": "string"}, "type": {"type": "string", "enum": ["list", "instance", "chart"]}, ...
[ "c.wittlinger@intellineers.com" ]
c.wittlinger@intellineers.com
e936f936f134968ea81c958c76d72ef304625dbd
1d5aa06b21a47931096339a8408e74cb9d5c11fd
/Text/text_classification_task.py
704f3cbbf8f417b7250b67e04702720a6f6198b5
[]
no_license
iamraufodilov/Load-and-Preprocess-Data-TensorFlow
a8380a93be09a9846f3d5768737e1dffd44c4ba3
bfb9a1e7a782b419d889700ca5940d177362a467
refs/heads/master
2023-05-08T00:14:41.561926
2021-06-02T12:55:17
2021-06-02T12:55:17
370,788,241
0
0
null
null
null
null
UTF-8
Python
false
false
6,096
py
#load libraries import collections import pathlib import re import string import tensorflow as tf from tensorflow.keras import layers from tensorflow.keras import losses from tensorflow.keras import preprocessing from tensorflow.keras import utils from tensorflow.keras.layers.experimental.preprocessing import TextVec...
[ "applyjobrauf@gmail.com" ]
applyjobrauf@gmail.com
dedcff133cead799eb111fd7fb33a09f682e65aa
74aae827c4310bca6b0109cbcc97d87803e1f376
/gamedownload/fcspider.py
8af971ba11752195f8f82684e79f271f900d400a
[]
no_license
xlelou/Python-crawler
cada13f4f66f4953eadf4843eba20f7290684cde
d88c0a9c3429cc67c1a8f4abdfd168bc3d82b7a7
refs/heads/master
2021-09-01T05:55:26.351467
2017-12-25T07:02:01
2017-12-25T07:02:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,943
py
''' 下载FC吧公用网盘中的nes游戏资源 地址: http://fcnes.ys168.com/ ''' import requests from bs4 import BeautifulSoup from lazyspider.lazyheaders import LazyHeaders import os # 静态文件目录 DOWNLOADPATH = '/Users/ehco/Desktop/FCBA/' # 获取cookies 和headers raw_curl = "curl 'http://fcnes.ys168.com/' -H 'Accept-Encoding: gzip, deflate' -H 'Ac...
[ "zh19960202@gmail.com" ]
zh19960202@gmail.com
bb63206b12a48e33b38e3d770b6a207a5ccd459e
952abfc855d0fca89200f1e428aac9a87f1d3295
/dacon/lotte_vision_1/LT_data_1.py
f6387662fa503253e9ce257c9e6cdc2044176b4a
[]
no_license
TaeYeon-kim-ai/STUDY_1.py
7570b4510bf8d9791447efe3a97a9668a1cabe06
e14392c706b7e51e40f1ac68555e26558e25b38f
refs/heads/master
2023-06-03T09:04:13.498591
2021-06-21T17:10:47
2021-06-21T17:10:47
329,834,933
1
0
null
null
null
null
UTF-8
Python
false
false
2,409
py
# 10개의 판별 모델을 만들어서 competition 벌이는 대환장 소스코드! from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.preprocessing import image from tensorflow.keras.applications.mobilenet_v2 import preprocess_input from tensorflow.keras.applications import MobileNetV2 from tensorflow.keras.mod...
[ "noreply@github.com" ]
TaeYeon-kim-ai.noreply@github.com
6e569867ca9de0726dc38cbe8429736463cab3ce
2e74cff6c9639f3903ccde662e79359d0724285e
/2019_late/20190918/swea_5356_의석이의세로로말해요.py
ec5cd4bcdd125feb84f248c916559c8eba59b0b7
[]
no_license
dodonmountain/algorithm
e29988071f651e51ba65e3926302f94a3d4074a5
ce33e0d74220839aed4b17a47fa0069458a4324e
refs/heads/master
2022-11-05T05:14:01.527015
2022-11-01T04:29:37
2022-11-01T04:29:37
200,008,533
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
import sys sys.stdin = open('5356.txt') T = int(input()) for t_case in range(T): board = [list(input()) for _ in range(5)] mx = max(map(len, board)) for i in board: if len(i) < mx: i.extend([-1]*(mx-len(i))) res = '' for i in range(mx): for j in range(5): if...
[ "lkh151515@gmail.com" ]
lkh151515@gmail.com
4f0b45f4f22fba4d01dcb588a046eb007a32e3fd
8e3c0584de50b605f9da593efe9018ac2b4d7d00
/server/kraken/server/srvcheck.py
a1cc94e1b72566bee871ffc0d6b123e0fbc7ee9e
[ "Apache-2.0" ]
permissive
GeneralCommission/kraken
64bf4f55aa695e0b60c17ab69eb3b03819e1b277
b79d60d6cff11f8e58f168d5e484cdea22a1dea1
refs/heads/master
2023-04-24T18:53:43.105265
2021-05-09T08:04:08
2021-05-09T08:04:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,756
py
# Copyright 2020 The Kraken 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 by applicable law or agreed to in wr...
[ "godfryd@gmail.com" ]
godfryd@gmail.com
729f5d0b70e4014124d67ff2d8718591f440f64a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03679/s871403095.py
a5259e5e8b3556fb28db3836c79774687618779e
[]
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
160
py
x,a,b = map(int,input().split()) if -a + b <= 0: print("delicious") elif -a + b > 0 and -a + b <= x: print("safe") elif -a + b > x: print("dangerous")
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
39dc20054698c5ad12f3489ff0cd1330b5780c35
85037b48dbb0f72be0eb4349278d05014bbddc1a
/zuoye.py
1ea9e2e5c5fe029dda75009df34b8c1647a6ee7c
[]
no_license
Crack-DanShiFu/quanjiapachong
c0da1787adbe1722cbf6f0a969668a5d4a9d9dbd
67144cea3178c86f96748c50e2227ddf4aa9011e
refs/heads/master
2020-05-02T21:43:52.132855
2019-04-01T14:48:03
2019-04-01T14:48:03
178,230,154
0
0
null
null
null
null
UTF-8
Python
false
false
964
py
from numpy import * import numpy as np from fractions import Fraction # # a = Fraction(4, 15) # b = Fraction(2, 5) # c = Fraction(1, 4) # # M = np.array([ # [0, b, 2 * b, 0], # [a, 0, 0, b], # [a, 0, 0, b], # [a, 0.5, 0, 0]] # ) # # M = 4 / 5 * M # c = np.array( # [[c], # [c], # [c], # ...
[ "1124241615@qq.com" ]
1124241615@qq.com
e5901ea8bc0f387295119979fea1c32eb0287262
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p04000/s045441429.py
559729620b152bf6f212dfc49ee744c473b5f9a8
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
1,421
py
def sol(): import sys input=sys.stdin.readline h,w,n=map(int,input().split()) d={} for i in range(n): y,x=map(int,input().split()) if (y,x) in d: d[(y,x)]+=1 else: d[(y,x)]=1 if y+1<=h and (y+1,x) in d: d[(y+1,x)]+=1 elif y+...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e562aef93500dc2046011238929c03ff57f0dc55
2a1cbd7570ade00e6efb5c39ca9246f05c7f500b
/09/01/00/2.py
22e6c257d3ce989df10a48cc68a3013e146dfc8c
[ "CC0-1.0" ]
permissive
pylangstudy/201707
dd5faf446cb0cc3d95f7f9db30f47e0f15400258
c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6
refs/heads/master
2020-12-03T02:19:42.341198
2017-07-31T00:11:35
2017-07-31T00:11:35
95,927,705
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
class MyClass: def __new__(cls, arg): print('__new__'); return str(arg) def __init__(cls): print('__init__') c = MyClass('abc') print(c)
[ "pylangstudy@yahoo.co.jp" ]
pylangstudy@yahoo.co.jp
3cea92bbdf61517c68a1129ea78db296c01e3875
814fd0bea5bc063a4e34ebdd0a5597c9ff67532b
/build/android/pylib/base/test_run_factory.py
c8e0582034a500bf7c9a759967aa2fb2885a7b18
[ "BSD-3-Clause" ]
permissive
rzr/chromium-crosswalk
1b22208ff556d69c009ad292bc17dca3fe15c493
d391344809adf7b4f39764ac0e15c378169b805f
refs/heads/master
2021-01-21T09:11:07.316526
2015-02-16T11:52:21
2015-02-16T11:52:21
38,887,985
0
0
NOASSERTION
2019-08-07T21:59:20
2015-07-10T15:35:50
C++
UTF-8
Python
false
false
1,449
py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from pylib.gtest import gtest_test_instance from pylib.gtest import local_device_gtest_run from pylib.local.device import local_device_environment from pylib...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
a5cc39a54866197dabe43e2900218faefc0a0bc9
c49590eb7f01df37c8ec5fef00d0ffc7250fa321
/test/test_bracketplace.py
a2417578576f5e67eacb80c22d887243e83fc019
[]
no_license
harshad5498/ks-orderapi-python
373a4b85a56ff97e2367eebd076f67f972e92f51
237da6fc3297c02e85f0fff1a34857aaa4c1d295
refs/heads/master
2022-12-09T19:55:21.938764
2020-09-03T05:22:51
2020-09-03T05:22:51
293,533,651
0
0
null
2020-09-07T13:19:25
2020-09-07T13:19:24
null
UTF-8
Python
false
false
1,506
py
# coding: utf-8 """ KS Trade API's No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: 1.0 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unitte...
[ "thebhushanp@gmail.com" ]
thebhushanp@gmail.com
de4afe6f8ab930766724c18dd994db9bd7d8d228
66e13bf7a6639cb37fd6d6160945d37119fe6df4
/Python/Advanced/01.Advanced/09.Comprehension/Ex/t_03_diagonals.py
41cb5e8f5089c2bb8be5d149732c5c56900854c2
[]
no_license
MeGaDeTH91/SoftUni
5fd10e55ba3a1700345fec720beac5dc2cd9d18d
a5e50c77d6efe6deddb9be0bdfb87373692aa668
refs/heads/master
2023-01-25T05:01:15.172521
2021-12-18T22:22:46
2021-12-18T22:22:46
121,627,540
5
3
null
2023-01-11T22:01:03
2018-02-15T12:31:23
C#
UTF-8
Python
false
false
399
py
n = int(input()) matrix = [[int(x) for x in input().split(', ')] for _ in range(n)] first_diagonal = [matrix[x][x] for x in range(n)] second_diagonal = [matrix[x][n - x - 1] for x in range(n)] print(f'First diagonal: {", ".join([str(x) for x in first_diagonal])}. Sum: {sum(first_diagonal)}') print(f'Second diagonal:...
[ "martin_taskov@yahoo.com" ]
martin_taskov@yahoo.com
dfaa3f8123ea26d27b100249d5508e8ca10604dc
1498f1ff7ed0e4318b4475c04d486b301328a4b5
/test/test_filter_info.py
573addc6f4854ed201f1280ea445ac4bd6aed472
[ "Apache-2.0" ]
permissive
greenpau/pycherwell
b66e27b3e0e07e914a07a092472575a56c48a8bf
2a25446d5cf86d69e6158067faf27ce250aba966
refs/heads/master
2021-07-25T01:58:57.682666
2020-07-19T01:40:26
2020-07-19T01:40:26
199,328,283
2
2
Apache-2.0
2020-07-16T21:31:33
2019-07-28T19:24:17
Python
UTF-8
Python
false
false
850
py
# coding: utf-8 """ Cherwell REST API Unofficial Python Cherwell REST API library. # noqa: E501 The version of the OpenAPI document: 9.3.2 Contact: See AUTHORS. Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import pycherwell from pych...
[ "greenpau@outlook.com" ]
greenpau@outlook.com
93081a20aaae1d9571f57ce0bf4710c28861b48a
6d14f197ff95a6626cbb15588db1e60d37b93a81
/比较两个文件.py
1b71a2ab7d008975b9bcf2c3f308c730657474c0
[]
no_license
sonichuang/My-py-file
144b35bf4a7dd907fe7801802221421659671910
4cfd0bf7e0569f5b082d867a0798f3850493f204
refs/heads/master
2020-04-17T04:19:36.461705
2019-04-23T13:48:54
2019-04-23T13:48:54
166,225,284
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
#我的做法是分别计算第几行,共有多少行不一样,然后把要打印的内容写入一个文件,最后再读出文件。 def compare(file1name, file2name): file1 = open(file1name, 'r') file2 = open(file2name, 'r') file3 = open('record.txt', 'a') countnumber = 0 countline = 0 while 1: eachline1 = file1.readline() countline += 1 eachline2 = f...
[ "huangshijinsonic@gmail.com" ]
huangshijinsonic@gmail.com
55a3f525df82b28024f7c858f0adab502a90bb38
77f49b5b03cccbe7527d6d2b15a94bfbe15f0ce8
/sw/vision/camera.py
65350cebea20a6e919fceecd492d7586ce3fd212
[]
no_license
skrub-wreckers/software
9ac4bd8e67e54447e605b7b2b45a8278b31dde06
17b47ecf46dee192dd007543a958049eba03e690
refs/heads/master
2021-01-10T03:22:16.781029
2016-03-03T05:14:21
2016-03-03T05:14:21
49,020,868
0
0
null
2016-01-28T17:46:53
2016-01-04T20:22:59
Python
UTF-8
Python
false
false
2,063
py
import warnings import numpy as np import threading from .geometry import Geometry class Camera(object): def __init__(self, w=None, h=None, geom=None, id=1, debug=False): import cv2 # deal with simple arguments if h is not None and w is not None: geom = Geometry(w, h) ...
[ "wieser.eric@gmail.com" ]
wieser.eric@gmail.com
aa341998c80e4b57437e8fbf499eaadf5e637665
e0ede722874d222a789411070f76b50026bbe3d8
/practice/solution/0301_remove_invalid_parentheses.py
feab081aea55abc48a6eda107b326cca02e17a9b
[]
no_license
kesarb/leetcode-summary-python
cd67456cb57bdff7ee227dab3930aaf9c2a6ad00
dc45210cb2cc50bfefd8c21c865e6ee2163a022a
refs/heads/master
2023-05-26T06:07:25.943854
2021-06-06T20:02:13
2021-06-06T20:02:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
967
py
class Solution(object): def removeInvalidParentheses(self, s): """ :type s: str :rtype: List[str] """ self.res = [] self.dfs(0, 0, s, ['(', ')']) return self.res def dfs(self, start, end, s, value_list): count = 0 ...
[ "weikunhan@g.ucla.edu" ]
weikunhan@g.ucla.edu
186a7c77cbd14b854c149164e436e7740532ef8e
0ab4ac0d0cc36d44f330b2bcc2066b2bd17b4bea
/webscraping/WEBSCRAPING/wikipedia projects/wiki_test.py
950080a42252db998fee91e5c36080924788c2fe
[]
no_license
ramosdalton10/python_projects
5cc996d706f3227d8183ea67572615b47111cc5c
86573b69be875f8e499daa7dd41b70092ccda79b
refs/heads/master
2021-01-21T21:29:17.015767
2017-10-01T12:10:36
2017-10-01T12:10:36
94,853,510
0
0
null
null
null
null
UTF-8
Python
false
false
5,274
py
# lets write a Simple script # to get the 20 words and their frequency percentage # with highest frequency in an English Wikipedia article. # applications are recommender systems, chatbots and NLP, sentiment analysis, # data visualization, # market research # Beautiful Soup is a Python library # for pulling data out o...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
b1773d0f6ed1e6224e801813420d93bf92a593f7
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/PostenMapping/Model/Post050403223.py
923edd335a63b64a4fa02bbfbc8b26b2e5fd59ac
[ "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
3,023
py
# coding=utf-8 from OTLMOW.PostenMapping.StandaardPost import StandaardPost from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping # Generated with PostenCreator. To modify: extend, do not edit class Post050403223(StandaardPost): def __init__(self): super().__init__( nummer...
[ "david.vlaminck@mow.vlaanderen.be" ]
david.vlaminck@mow.vlaanderen.be
dab24c8a4f9f9283858bf85d6a5cd42cf204b2b3
55c7a0859f569482d8c2246ea01ac35b810ee228
/main.py
5d44c5c51fc32a0daef9a7d5cee147ff07d6554b
[]
no_license
SarikaDanam/CSE-4A_CMRTC
cd16d72393b5cf4c70e68b7815ef75e271c83d21
f837dd69af0be1b88916d5357390d49f3a2e995c
refs/heads/master
2023-06-01T11:34:06.243248
2021-06-23T15:49:00
2021-06-23T15:49:00
379,284,146
0
0
null
null
null
null
UTF-8
Python
false
false
609
py
from flask import Flask, render_template, Response from camera import VideoCamera app = Flask(__name__) @app.route('/') def index(): return render_template('index.html') def gen(camera): while True: frame = camera.get_frame() yield (b'--frame\r\n' b'Content-Type: image/jpeg\r\...
[ "you@example.com" ]
you@example.com
53df0d6ab09a56eea71c86b1b24790f527d73dc3
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/QEL3QAY9ZhSkZcEih_2.py
3f769d560cd38559bd919784f976233061b04c47
[]
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
810
py
""" Create two functions: 1. The first is `is_odd()` to check if a given number is odd using **bitwise operator**. 2. The second is `is_even()` to check if a given input is even using **regular expressions**. Use of `%` operator is disallowed. ### Examples is_odd(3) ➞ "Yes" # Use Bitwise Operator ...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
f8256b74ea618451ad07bdc49276a29595db6457
0aa0f7c36cab7580a33383ff07a1f1434811ea96
/gzbj/optimus_2.1/optimus/backend/myBluePrint/ericic/baseDao/datacenterApiDao.py
98731c51054c12aed751efa127747cf2a400eb2b
[]
no_license
yanliangchen/ware_house
a1146b23e76bce39be67e9d65a240270e0f08c10
44780726924f9a398fb6197645b04cdcfb0305e7
refs/heads/main
2023-06-15T13:52:45.890814
2021-07-20T10:09:22
2021-07-20T10:09:22
387,731,840
0
0
null
null
null
null
UTF-8
Python
false
false
1,273
py
from backend.common.loghandler import BDLog from backend.Model.connection import SESSION from backend.myBluePrint.ericic.model.dataCenterModel import DataCenterModel class datacenterApiDao: @classmethod def select_instances(cls, limit, offset): db_session = SESSION() try: _data = d...
[ "yanliang.li@ericsson.com" ]
yanliang.li@ericsson.com
250d467101cfb1c741757326a4ce398e64747aff
3b07815fc01110db387261b9e5dc47ca8f2906cd
/tests/ng/13_conv2d_single_layer/matrix_conv2d/test_matrix_conv2d_int32_int4_3x3_stride1.py
5a22607ff53c9b118b880c3c4a9a5b7fb719b883
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
NNgen/nngen
1580271dde93c79b484abfd191775802fb6e90f5
5cf1d66768ed07f64e7dcddf9a395675f57d85bd
refs/heads/develop
2023-07-10T06:22:48.408377
2023-06-23T01:42:38
2023-06-23T01:42:38
221,174,472
290
46
Apache-2.0
2023-06-16T08:03:22
2019-11-12T09:04:35
Python
UTF-8
Python
false
false
2,886
py
from __future__ import absolute_import from __future__ import print_function import os import sys # the next line can be removed after installation sys.path.insert(0, os.path.dirname(os.path.dirname( os.path.dirname(os.path.abspath(__file__))))) import nngen as ng import veriloggen import matrix_conv2d act_sh...
[ "shta.ky1018@gmail.com" ]
shta.ky1018@gmail.com
272fee5780bd2da43e1cfe8979727458b38be7a0
31a928cff4960236923b6bc3b68e34bb2f46f470
/statarb/src/config/sources/morgan_htb.py
9b77c83cd1c3d0420ed42734e680f355034093ea
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
webclinic017/ml_monorepo
707df2afd2f986eb0721d26430e6135c917817c6
945f0a83d6b94282c547bb6f4805f3381ad9c16a
refs/heads/master
2021-10-19T21:02:53.322944
2019-02-19T20:58:51
2019-02-23T20:06:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
{ "method": "sftp", "host": "sftp.morganstanley.com", "user": "vaygcoco", "pass": "OAcXL4iUG48dBRrh", "remote_dir": "/download/", "local_dir": "/morgan/htb", "regex": "(availability|locate).+\.txt", "format": "morgan_htb", "new_data_frequency": 24L*60L*60L*1000L, }
[ "tmichael.yu@gmail.com" ]
tmichael.yu@gmail.com
59f36aa784a78699e13ef040e8fd0acf7e01e599
6c5ec15273603ffca67e63c0f93a8638cdcb6ba0
/draft/onnxcustom/_downloads/3b98c2dc8fb483abdfbacd90fd0c8ce7/plot_gexternal_xgboost.py
5c4de28586987b6f6d26e3a4d9277e66fe0ec016
[ "MIT" ]
permissive
xadupre/xadupre.github.io
3446a9588f3fd8fe28affdaedd92b0aff464fc0a
487b6342276804ff3245bd9e6cf62431629e1a25
refs/heads/master
2023-04-23T03:53:26.086013
2023-04-21T09:47:34
2023-04-21T09:47:34
160,355,125
0
1
null
2021-05-20T22:58:18
2018-12-04T12:37:46
HTML
UTF-8
Python
false
false
6,319
py
""" .. _example-xgboost: Convert a pipeline with a XGBoost model ======================================== .. index:: XGBoost :epkg:`sklearn-onnx` only converts :epkg:`scikit-learn` models into :epkg:`ONNX` but many libraries implement :epkg:`scikit-learn` API so that their models can be included in a :epkg:`scikit-l...
[ "xavier.dupre@gmail.com" ]
xavier.dupre@gmail.com
3e58ca9efbbb9b167ccb2b4145e6fbae1edf4a8b
c91b68be796a9835c528856b6f5fa7b56d2af451
/examples/ResNet/svhn_resnet.py
6127e83a7e4e4196e5127001c0c73ed05b741ae4
[ "Apache-2.0" ]
permissive
syzh1991/tensorpack
fe61cb46fd40aa0cb9f8a0a3ea4ea3bb833cb3c5
174c3fc9d60b0cbeccac2ae3e73e73d6e788dbe0
refs/heads/master
2021-01-17T00:24:08.366350
2016-04-19T06:25:57
2016-04-19T06:25:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,863
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- # File: svhn_resnet.py # Author: Yuxin Wu <ppwwyyxx@gmail.com> import tensorflow as tf import argparse import numpy as np import os from tensorpack.train import TrainConfig, QueueInputTrainer from tensorpack.models import * from tensorpack.callbacks import * from tensorpa...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
c47d79e6a7c131a76922022439a6a6b2e84520d2
c50af577c80be85dba0ec26ba63fd9870f6c03dd
/apis_v1/documentation_source/organization_retrieve_doc.py
f118031c4f9fd19443ed0c96cf42c79eb8cc0892
[ "MIT" ]
permissive
AndrewMei99/WeVoteServer
e53806e5baef027b941560e92a6c37d2796321c0
137f3037ba9984e036eb146aeeeecb4e979c21e1
refs/heads/master
2023-03-16T01:11:19.282932
2016-09-02T20:29:57
2016-09-02T20:29:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,122
py
# apis_v1/documentation_source/organization_retrieve_doc.py # Brought to you by We Vote. Be good. # -*- coding: UTF-8 -*- def organization_retrieve_doc_template_values(url_root): """ Show documentation about organizationRetrieve """ required_query_parameter_list = [ { 'name': ...
[ "dale.mcgrew@wevoteusa.org" ]
dale.mcgrew@wevoteusa.org
fbec6bffba95acc2ac9eb4d30e86dea434958f35
0fa66774f82e96082b72ad9556543599ee12ddcb
/functional/ml/python/ml/pymc/models.py
f89156ff2624773cf24f8d3156f7f8793dcb3a68
[]
no_license
eric-czech/portfolio
229a6eb662c3b633cda6db357f0f952cfdbb1e46
d467ae2b3c8b58b35c11bf6aff11ea651e76c1a4
refs/heads/master
2021-01-17T03:48:56.571739
2018-01-23T21:09:40
2018-01-23T21:09:40
21,694,456
3
0
null
null
null
null
UTF-8
Python
false
false
4,906
py
import numpy as np import pymc3 as pm from sklearn.base import BaseEstimator import logging logger = logging.getLogger(__name__) class PYMCModel(object): def __init__(self, seed=None, n_chain=1, sample_kwargs=None): self.seed = seed self.sample_kwargs = {} if sample_kwargs is None else sample_k...
[ "eric.allen.czech@gmail.com" ]
eric.allen.czech@gmail.com
f0ae67cb7e10ba2f8662e33f129505b094a48d65
5c02b1136886f64c72a072a9776de984ce8b9830
/Inference.py
987631927783bda5472e3a6f939ddb330545d4fe
[ "MIT" ]
permissive
kanishk1225/Fully-convolutional-neural-network-FCN-for-semantic-segmentation-Tensorflow-implementation
dd9158bdddb5915f063ab404c4f67f664133f580
ed772ba20a5c6c2e37c6a7bf3db60f74c64df3b5
refs/heads/master
2022-11-04T22:59:06.674356
2020-06-22T03:40:06
2020-06-22T03:40:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,532
py
# Run prediction and genertae pixelwise annotation for every pixels in the image using fully coonvolutional neural net # Output saved as label images, and label image overlay on the original image # 1) Make sure you you have trained model in logs_dir (See Train.py for creating trained model) # 2) Set the Image_Dir to t...
[ "sagieppel@gmail.com" ]
sagieppel@gmail.com
6893c3bcb1a6c44d3113814a2f15e434dfb898ae
3fb660ec514a7e2d2f225313991f16b58974f708
/Learning/set-is-it-ordered.py
109e4a7137b811e2137b1aeb3f54c4718ea56693
[]
no_license
jwatson-CO-edu/py_info
e2c89bbe05b411d2086c182630d165f87a99ec3f
297f9f5733fe256e5c96f2da82f49d82c2a4ba9d
refs/heads/master
2022-02-06T13:03:14.178557
2022-01-22T03:01:46
2022-01-22T03:01:46
230,357,664
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
from random import randrange foo = set( [ randrange( 5000 ) for rNum in xrange( 500 ) ] ) bar = tuple( foo ) diffCount = 0 for i in xrange( 1000 ): if tuple( set( bar ) ) != bar: diffCount += 1 print "The tuplation of a set of a tuple was different on" , diffCount , "occasions." # The tuplat...
[ "james.r.watson@utah.edu" ]
james.r.watson@utah.edu
129b824b07b784fb6d7c8bfff92e830c9b1dfff4
a66b69c3f9da9779ae80f347b61f47e3bc5ba145
/day1001/IF02.py
337db5f8b6efb8d4fa7b086bf48ff6b9cdb82dd4
[]
no_license
kyungtae92/python-basic
c841d9c9c6196b01da3de007c1298fe2c4b8f693
80a2051e37b6e87c9dbfd332c4b2946089ff0d5c
refs/heads/master
2020-11-25T08:01:22.156661
2019-12-17T08:25:38
2019-12-17T08:25:38
228,567,120
2
0
null
null
null
null
UTF-8
Python
false
false
666
py
# IF 4가지 형식 # 단독 if , if~else, if~elif~elif...else, 중첩if(if문 안에 if) num = int(input("정수입력: ")) if num > 100: # if print("100보다 크다") if num > 100: # if~else print("100보다 크다") else: print("100보다 작다") # A와 ...
[ "noreply@github.com" ]
kyungtae92.noreply@github.com
593052b4b2da0fadaf46dd7e3118d76acffdb04d
cd87914c47ebe26eb629cb377c578ce69f417020
/tracker/migrations/0008_homicide_mapiframe.py
99bc7c7990538ef9f19014757581e830ce449265
[]
no_license
dougfoo/homicide
5a14a51ffe33b5906fae631d28b930a741a4b1cd
930070195660743fd21687cdf604f7d08f83fc32
refs/heads/master
2022-12-21T05:26:31.261507
2019-12-08T19:05:05
2019-12-08T19:05:05
196,879,224
0
0
null
null
null
null
UTF-8
Python
false
false
429
py
# Generated by Django 2.2.3 on 2019-07-19 01:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tracker', '0007_homicide_solved'), ] operations = [ migrations.AddField( model_name='homicide', name='...
[ "doug.cha@gmail.com" ]
doug.cha@gmail.com
e17e791273313c587ce4c6a54ba0fc6faf277665
11aac6edab131293027add959b697127bf3042a4
/sumOfMultiples.py
a4170da680fbafb410c184fff010fbb54e7f3e13
[]
no_license
jdanray/leetcode
a76b3436002b31865967b757b73c85992636383b
fd736af3e79899b86dac89d4d925d5bd985944ad
refs/heads/master
2023-08-15T01:20:05.110565
2023-08-14T00:25:58
2023-08-14T00:25:58
148,686,493
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
# https://leetcode.com/problems/sum-multiples/ class Solution(object): def sumOfMultiples(self, n): return sum(u for u in range(1, n + 1) if any(u % m == 0 for m in [3,5,7]))
[ "jdanray@users.noreply.github.com" ]
jdanray@users.noreply.github.com
f4f4de90a723a14808634565f5da5d44dc0bf81f
5e2a66e0416dcaf4674bd58f7dd7bc905800aa92
/chapter8_mp3_tagger/version_2/main.py
e7090ab4c277c4732e6c511969501aa4fdd4bcd2
[]
no_license
gridl/applications_with_wxpython
c96ed05b49e3494323e612afb1baccc8ea1e6f93
1fc63c384b7856402b99a97bf91fe0966a5ec413
refs/heads/master
2020-05-17T08:37:01.672727
2019-04-25T19:24:14
2019-04-25T19:24:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,526
py
# main.py import eyed3 import editor import glob import os import wx from ObjectListView import ObjectListView, ColumnDefn class Mp3: def __init__(self, id3): self.artist = '' self.album = '' self.title = '' self.year = '' # Attempt to extract MP3 tags if not isi...
[ "mike@pythonlibrary.org" ]
mike@pythonlibrary.org
23ce64e191ecbd193f7f3934c3f3a227ee5c7d84
26e5ab0aab7e0b4e0946a5ac1b8afccf7ffac85a
/dataset/filter_corrupted_images.py
b70f065a5f1c7a7610380841533fa3a504ac342e
[]
no_license
AliaksandrSiarohin/BAE
a1e92e855fed6eb029ef7ca80931ddcd1432bfa5
4c0bf663da23008424a14c126cd3197bc33c26f8
refs/heads/master
2021-10-08T16:37:33.280118
2018-12-14T19:22:44
2018-12-14T19:22:44
112,356,377
6
5
null
null
null
null
UTF-8
Python
false
false
479
py
from skimage.io import imread from argparse import ArgumentParser import os parser = ArgumentParser() parser.add_argument("--folder", default="dataset/emotion_scary") args = parser.parse_args() for dir_name, _, files in os.walk(args.folder): print('Found directory: %s' % dir_name) for fname in files: ...
[ "you@example.com" ]
you@example.com
790348520d640e71b6c98eeb05d1d353a1b6b9c1
b45d66c2c009d74b4925f07d0d9e779c99ffbf28
/tests/unit_tests/core_tests/mock_providers/mock_mds_params_builder.py
51395029a26dffe5e5e27314fe12a96724ec314d
[]
no_license
erezrubinstein/aa
d96c0e39762fe7aaeeadebbd51c80b5e58576565
a3f59ba59519183257ed9a731e8a1516a4c54b48
refs/heads/master
2021-03-12T23:44:56.319721
2016-09-18T23:01:17
2016-09-18T23:01:17
22,665,501
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
from collections import OrderedDict class MockMDSParamsBuilder(object): def create_params(self, **kwargs): params = { 'params': str([[key, kwargs[key]] for key in sorted(kwargs.iterkeys())]) } return params
[ "erezrubinstein@hotmail.com" ]
erezrubinstein@hotmail.com
f2d508a6dc3cdcb50d1b943e637c503d4793ab6a
83838b2ae0172f6ca2bd2236ea5c0939ea37d4e4
/brat/fillin_heuristics.py
b2a934d7091baf81d16841f82672b91c88432538
[]
no_license
enoriega/bio-context
1b3c4f6bf875a0c5cd1b07ec6bc9078ab7f87a1a
f70b542760f131277fdfb14d4300f98553ff9377
refs/heads/master
2021-01-01T06:38:24.572937
2015-08-26T21:34:34
2015-08-26T21:34:34
39,035,616
0
0
null
null
null
null
UTF-8
Python
false
false
2,618
py
''' Heuristics to fill in context labels ''' import pandas as pd def drag_context(m): ''' This just drags context till the end since it shows up ''' m[m == 0] = np.nan df = pd.DataFrame(m) df.fillna(method='ffill', axis=0, inplace=True) # Propagare the context until the next appearance df.fillna(...
[ "enrique.noriega@gmail.com" ]
enrique.noriega@gmail.com
74a967941407745f6753c49ea39852149637c0d0
f0c25dd353b1d608de59de19c8963d83f614db99
/ipypublish/sphinx/gls/transforms.py
3aae8d6d6b5f2585e458abadae414903d3b421e8
[ "BSD-3-Clause" ]
permissive
awesome-archive/ipypublish
51c006b5acd8f8d85c2a7ee240aa579adb211220
90027b35e849a127ea21cf3163889491b40a11d2
refs/heads/develop
2021-07-12T20:50:29.259653
2019-05-17T12:47:21
2019-05-17T12:47:21
193,428,760
0
0
BSD-3-Clause
2020-01-13T03:42:24
2019-06-24T03:38:46
HTML
UTF-8
Python
false
false
5,651
py
import docutils.nodes import docutils.transforms import sphinx.util from sphinx import addnodes from typing import Any # noqa: F401 from ipypublish.sphinx.gls.bibgloss import ( format_entries, docutils_citation_node) from ipypublish.sphinx.gls.nodes import BibGlossaryNode logger = sphinx.util.logging.getLogger(_...
[ "noreply@github.com" ]
awesome-archive.noreply@github.com
1209e10107fff9df505901d4025c33fa30b7b33c
a652d9e3cea98929ca56bb2317bc97e381105b57
/tests/test_normalway.py
d565f84643e1c874cd72fb3573d0db532e7c7f4b
[ "MIT" ]
permissive
ffreemt/get-pwbrowser
2576a2fed0e8e7f1e4a4d469d6009e84ca1b53f8
85ca200b342e723c634232ab13c634ed30d18d9c
refs/heads/master
2023-03-26T12:53:37.201579
2021-03-27T06:05:34
2021-03-27T06:05:34
351,350,197
0
0
null
null
null
null
UTF-8
Python
false
false
754
py
"""Test with loop fixture. https://playwright.dev/python/docs/test-runners#usage # async def test_example2(page2): ’‘’Async example. playwright = await async_playwright().start() if 1: await playwright.stop() ‘’‘ """ import asyncio import pytest # from playwright.async_api import async_playwright...
[ "yucongo+fmt@gmail.com" ]
yucongo+fmt@gmail.com
d6d82566315b7086d5216f6490c92262adfa9361
d7935a980921875fa7935ee0d3f3b82ced4f32fc
/core/layers/__init__.py
2bb2172fab2090d3f68afa2de773d61f2290187e
[ "Apache-2.0" ]
permissive
FMsunyh/keras-fpn
e42e914bcb9291c3f0d6eb5e5487f5099740f98b
6f5047d22305489c87efd1cef83d54bdbdbeeefa
refs/heads/master
2020-04-12T17:33:18.249199
2019-04-18T06:46:10
2019-04-18T06:46:10
162,649,061
7
3
null
null
null
null
UTF-8
Python
false
false
269
py
from ._anchor_target import AnchorTarget from ._misc import Dimensions, TensorReshape from ._losses import RPNLoss,RCNNLoss from ._proposal import Proposal from ._proposal_target import ProposalTarget from ._anchors import Anchors from ._roi_pooling import RoiPooling
[ "fmsunyh@gmail.com" ]
fmsunyh@gmail.com
9598b1c82b53cb5a3ce0e02e3136d6dcac536497
55e8ad406c4aff77ac00b24e02cff4f96c8c6f77
/cart/context_processors.py
125fd7ed0385a47825ddefe6d62cd5975baaa581
[]
no_license
miyou995/kahraba
53bdbf2cb8b78065031eecdb95f66827232264a8
f2f630d889e9d878d7b22e70d0c2a0723b6d8228
refs/heads/master
2023-08-27T00:50:28.546343
2021-10-18T15:02:03
2021-10-18T15:02:03
403,252,286
0
0
null
null
null
null
UTF-8
Python
false
false
244
py
from decimal import Context from .cart import Cart def cart_context(resquest): cart= Cart(resquest) context = { 'cart': cart, 'total_price': cart.get_total_price(), 'length' : len(cart), } return context
[ "inter.taki@gmail.com" ]
inter.taki@gmail.com
c3b94e9d5d9681e985eaaa83b3b9fae4462960af
4b9cbce50ac3df7eeb2c704dc1c616c5c3108091
/photos/views.py
fb956fb1b830a525659adaed4947e9227f0c6cc3
[]
no_license
Brian23-eng/Gallery
f2aef6637ba087657c528df025a7421b7221d425
fcf0c42b80cdf11ac4cd29cac0b1f4b53a73d97d
refs/heads/master
2022-05-09T09:01:54.120365
2019-11-11T14:05:33
2019-11-11T14:05:33
220,058,262
0
3
null
2022-04-22T22:44:05
2019-11-06T18:00:03
Python
UTF-8
Python
false
false
1,492
py
from django.shortcuts import render,redirect from django.http import HttpResponse, Http404 from . models import Image, Location, Category # Create your views here. def photos(request): images = Image.get_all_images() locations = Location.objects.all() return render(request,'photos.html', {'images':ima...
[ "b.odhiambo.bo@gmail.com" ]
b.odhiambo.bo@gmail.com
3480b4949eaf10add5461b02f08a192dfc6eff71
de8a2d69bddd452ccdfde428774e5598ad1063e8
/locallibrary/catalog/migrations/0001_initial.py
1d3ab79790b4dc2d73a76098434693af33525019
[]
no_license
Jumas-Cola/django-locallibrary-tutorial
c2350d2f2c015c3125677741f383469b7f2157dc
f1148ae564ade045f8f96527c1acefddadcc0ec7
refs/heads/master
2020-07-06T06:14:30.218039
2019-08-27T03:02:03
2019-08-27T03:02:03
202,919,340
0
0
null
2019-08-17T18:40:38
2019-08-17T18:40:37
null
UTF-8
Python
false
false
2,853
py
# Generated by Django 2.1.5 on 2019-08-18 19:14 from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Author', field...
[ "kbbyfl91@gmail.com" ]
kbbyfl91@gmail.com
7fbf0bff4de7e7822954df1a57bfdcec1cfde214
1afa1b1929d1cd463cd9970174dd58ce2ca6eb1e
/configs/segformer/segformer_mit-b0_512x512_160k_ade20k.py
8128181e0bc3a95b5f3120da29e6c843eadd406e
[ "Apache-2.0" ]
permissive
CAU-HE/CMCDNet
2328594bf4b883384c691099c72e119b65909121
31e660f81f3b625916a4c4d60cd606dcc8717f81
refs/heads/main
2023-08-08T17:21:57.199728
2023-07-28T07:34:40
2023-07-28T07:34:40
589,927,845
12
1
null
null
null
null
UTF-8
Python
false
false
825
py
_base_ = [ '../_base_/models/segformer_mit-b0.py', '../_base_/datasets/ade20k.py', '../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py' ] model = dict( pretrained='pretrain/mit_b0.pth', decode_head=dict(num_classes=150)) # optimizer optimizer = dict( _delete_=True, typ...
[ "flyhxn@qq.com" ]
flyhxn@qq.com
0a441d92b46665e7271db473ba6b4146eb0dc2f3
a3ff13ecac60f891a3ebdcb4c72bf6a4b581a2d8
/LPHW/ex04.py
79c994958d4ecc62ac5beeda2fb31057596dbf6c
[]
no_license
kekirk/pycode
75533afc3018cba30d0abd3c29ab1c945b85504b
06dab1a61d7b445cc19b41e4d281f62251e2583b
refs/heads/master
2020-04-01T17:13:53.828118
2019-01-04T09:02:00
2019-01-04T09:02:00
153,419,332
0
0
null
null
null
null
UTF-8
Python
false
false
626
py
# -*- coding: utf-8 -*- cars = 100 space_in_a_car = 4 drivers = 30 passengers = 90 cars_not_driven = cars - drivers # 100-30 cars_driven = drivers # 30 carpool_capacity = cars_driven * space_in_a_car # 30 * 4 average_passengers_per_car = passengers // cars_driven print("There are", cars, "cars available.") ...
[ "kekirk@163.com" ]
kekirk@163.com