blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
4c1cf4302d6b4fb1b43812ae6f5705d8cca0f085
bf399a9a5fa201dbc3373c0459160b68abc2439a
/hackerphone/solution.py
f88363419bb49078817554109359c931d9f7dea9
[]
no_license
altoid/hackerrank
5efc4bc64d748b2091a9771cfbdc5991325bb680
665bd7dada6115dfde67b90a52e6a18c918fa40b
refs/heads/master
2022-11-05T17:17:24.962311
2022-10-01T07:04:24
2022-10-01T07:04:24
115,870,698
0
0
null
null
null
null
UTF-8
Python
false
false
661
py
#!/usr/bin/env python from __future__ import division import fileinput from pprint import pprint, pformat def solve(balls): # idea: if N = 2 ** (len(balls)), then each value in balls can appear half that many times. sum N/2 * b[i] then # compute the mean n = 2 ** (len(balls)) arr = map(lambda x: x ...
[ "dtomm@radiumone.com" ]
dtomm@radiumone.com
34c43b5bd6d5d29cd64b0ff72bcd60a6ca2e020f
0f6ce7c24aa3c6aa27fe9558930589052985d57c
/rpc/sms.py
c9c51bd188779a771dd98f3a84040762dbe77980
[]
no_license
feitianyiren/GuaikNet
bf12e3493d668aa1b8d63d25a0667589c796a532
7f6ce8c2cbfe5717a48b1724c87d9676de9eb1ef
refs/heads/master
2020-04-07T05:15:38.248300
2018-10-26T18:36:54
2018-10-26T18:36:54
158,089,531
1
0
null
2018-11-18T14:00:17
2018-11-18T14:00:17
null
UTF-8
Python
false
false
1,162
py
import logging import requests import json from server.application import gm rpc = gm.get("rpc") api_key = "your_api_key" api_secret = "your_secret" brand = "Guaik" @rpc.route() def send_verify_code(number): request_id = None try: data = {"api_key":api_key,"api_secret":api_secret,"number":number,"bran...
[ "luting.gu@gmail.com" ]
luting.gu@gmail.com
195c739c836f560393c77e011e10200c8a5d8c12
27960fad21a3893ee1ea5fb47ec70ff2ead08746
/hackerrank/Python/manipulateArray/manipulate_array.py
1ea31c9fa4ad37d09adf66bb41f5a1cf0fb43ad5
[]
no_license
hamc17/codingProblemSolutions
1f482592c628b83d0e56438641026e80bc3d27a2
f2ee6668caebd53e254346636dab6a85c398da76
refs/heads/master
2020-03-25T00:53:09.011799
2018-12-10T16:53:19
2018-12-10T16:53:19
143,210,595
0
0
null
null
null
null
UTF-8
Python
false
false
1,117
py
""" Problem: "Starting with a 1-indexed array of zeros and a list of operations, for each operation add the given value to each of the array elements between the two given indices, inclusive. Once all operations have been performed, return the maximum value in your array." """ def manipulate_arr...
[ "hamc17@gmail.com" ]
hamc17@gmail.com
f42d4964a3eb8c95d635d79ef4aa1b2ba7600bce
cde7e790103d94b6f5fb263196923f25ee50b57d
/matflow_formable/__init__.py
eb51aa93f65a5a9fecc1fb86a48e59eadbd749f9
[ "MIT" ]
permissive
LightForm-group/matflow-formable
b651ee192195c26335016f54c3575f1d26771468
1b13a9addd7f232ef2f101a35aeccfe3eea1f7a4
refs/heads/master
2023-04-06T16:26:56.066710
2022-08-08T11:25:04
2022-08-08T11:25:04
262,661,868
4
3
MIT
2022-02-15T15:41:12
2020-05-09T21:26:57
Python
UTF-8
Python
false
false
812
py
'`matflow_formable.__init__.py`' from functools import partial from matflow_formable._version import __version__ from matflow.extensions import ( input_mapper, output_mapper, cli_format_mapper, register_output_file, sources_mapper, software_versions ) SOFTWARE = 'formable' input_mapper = pa...
[ "adam.jp@live.co.uk" ]
adam.jp@live.co.uk
b4a975bf4387dd947398d44bea9e1f7bbb00028d
e9c06318d1fdb4e97959da01ef12bb52d4ff8daa
/Coding-Practice/3.17.py
9eb89f911763952fe543116ba4413e2b7673d977
[]
no_license
AIFFEL-SSAC-CodingMaster3/YJ.PAP
7dd716e539a7109afe34bd03050ef559941614dc
55eb6a6bd194e39c24cd426cd70ece54a1667ab3
refs/heads/master
2023-05-09T03:30:48.386736
2021-06-03T02:24:39
2021-06-03T02:24:39
329,225,148
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
class Solution: def mergeTrees(self, root1: TreeNode, root2: TreeNode) -> TreeNode: if root1 == None: return root2 if root2 == None: return root1 if not root1 and not root2: return None root1.val += root2.val root1.left = self.mergeTrees...
[ "austinm@naver.com" ]
austinm@naver.com
41b9e07b0f50c84b875fe7ebec63fa52d0d3f16a
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Pdf_docx_pptx_xlsx_epub_png/source/reportlab/graphics/charts/doughnut.py
f1228d0ce2b235500bc67db072a493cfe263dcd1
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
15,376
py
#Copyright ReportLab Europe Ltd. 2000-2017 #see license.txt for license details #history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/graphics/charts/doughnut.py # doughnut chart __version__='3.3.0' __doc__="""Doughnut chart Produces a circular chart like the doughnut charts produce...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
25cd32fcfa59a1dd6d38c88daf0e48f1bd5f8283
32a81b96a631fa5f7cd3e1da79499b36f1cbbf86
/src/artifice/scraper/config/settings.py
aa602920a6b6d62fb2e9637ebe0dae41b8846510
[]
no_license
minelminel/celery-rabbitmq-example
f4e696f24d924395d09934a33fba9ea9ca065603
4eccabf46aec855cfa4738a06a992f71232d6364
refs/heads/master
2020-07-01T11:44:43.656850
2019-08-30T04:08:13
2019-08-30T04:08:13
201,165,312
0
0
null
2019-08-30T04:08:13
2019-08-08T02:48:51
Python
UTF-8
Python
false
false
3,758
py
try: import configparser except ImportError: configparser = None import os import logging log = logging.getLogger(__name__) loc = os.path.dirname(os.path.abspath(__file__)) class Settings(object): """ The settings can be changed by setting up a config file. For an example of a config fil...
[ "ctrlcmdspace@gmail.com" ]
ctrlcmdspace@gmail.com
800f9873449fc974ce76834a2141007fee2ff5f6
072456f4295208330af93f8bd428b52b172b0b3e
/Nested Logic.py
e8ff44d625c7e8ff07ca740999acdc2eb0aa89b0
[]
no_license
Sandmir/hackerrank
56e16449ab2e5d8f2be2bff9fc182a95e2d4099a
92abb1951e56a4fe5c82ae9406d420fe8c71ba84
refs/heads/master
2021-01-05T08:59:08.625531
2017-11-06T17:51:04
2017-11-06T17:51:04
99,515,337
1
0
null
null
null
null
UTF-8
Python
false
false
752
py
__author__ = 'Senyutina' import datetime actualDay,actualMonth,actualYear = input().strip().split(' ') actualDay,actualMonth,actualYear = [int(actualDay),int(actualMonth),int(actualYear)] expectedDay,expectedMonth,expectedYear = input().strip().split(' ') expectedDay,expectedMonth,expectedYear = [int(expectedD...
[ "sandmir2010@gmail.com" ]
sandmir2010@gmail.com
53e57c810578fe9bfb63bc0c3c4a5616ac1b4306
70d39e4ee19154a62e8c82467ef75b601e584738
/docker/mac-robber.py
2503134682dfb5d51eb85125c86ad0210ea31582
[]
no_license
babywyrm/sysadmin
6f2724be13ae7e5b9372278856a8c072073beffb
2a5f3d29c7529bc917d4ff9be03af30ec23948a5
refs/heads/master
2023-08-16T03:50:38.717442
2023-08-16T03:05:55
2023-08-16T03:05:55
210,228,940
10
5
null
2023-05-01T23:15:31
2019-09-22T23:42:50
PowerShell
UTF-8
Python
false
false
5,827
py
#!/usr/bin/env python # # Author: Jim Clausing # Date: 2017-09-01 # Version: 1.2.0 # # Desc: rewrite of the sleithkit mac-robber in Python # Unlinke the TSK version, this one can actually includes the MD5 & inode number # though I still return a 0 in the MD5 column for non-regular files, but calculating # hashes li...
[ "noreply@github.com" ]
noreply@github.com
066effad0c61eaeb45141cc368bcbcdf21c38db2
394e518672de29d5e238ed96ce1fb9aadbe9d52c
/model_query/swagger_server/models/search_prediction_get_body.py
00a62bba43d5a5454fbd2d6ae1d6bf46ef4f2287
[]
no_license
adheer-araokar/domino_onboarding_project_3
8be1c81e58d77c757cd1335c85c1e89160df4c29
3b8d5c0f106598f4b56d318481a5b02f827f1917
refs/heads/master
2022-12-13T23:42:11.519208
2020-01-30T11:56:16
2020-01-30T11:56:16
237,140,544
0
0
null
2022-12-08T03:31:40
2020-01-30T04:44:37
Python
UTF-8
Python
false
false
1,939
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class SearchPredictionGetBody(Model): """NOTE: This class is auto generated by...
[ "adheer@Adheers-MacBook-Pro.local" ]
adheer@Adheers-MacBook-Pro.local
5ca96192f23a53c978c927462388217f3e5724cd
943afdad323c439260c0a374100e6687bb2aa279
/Crawler.py
2f46944f7fd3796eb56d27f2d88afdedebe829af
[]
no_license
Serena-Tang/Crawler
7a51d6490da5b099c55fc9c8bf14b4d4d27aca98
9423c62d85a9c5bb93052f1b7ea7deeaf1d2b265
refs/heads/main
2023-08-15T22:54:03.487754
2021-10-13T20:28:27
2021-10-13T20:28:27
416,887,265
0
0
null
null
null
null
UTF-8
Python
false
false
5,321
py
import requests from bs4 import BeautifulSoup import re, json from urllib import parse import threadpool """ https://search.jd.com/Search?keyword=T%E6%81%A4%E7%94%B7&enc=utf-8&qrst=1&rt=1&stop=1&vt=2&wq=T%E6%81%A4%E7%94%B7&page=1&s=1&click=0 https://search.jd.com/Search?keyword=T%E6%81%A4%E7%94%B7&enc=utf-8&qrst=1&rt=...
[ "noreply@github.com" ]
noreply@github.com
62e9919f8fe5745cb117876ae51196d4b4bc314f
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_029/ch178_2020_08_14_14_38_35_094615.py
bfc04d96c2b6f66c5cb150cd9294fc1f83977d91
[]
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
337
py
def junta_nomes(a,b,c):     lis = []     for i in a:         if len(a) != 0:             for d in c:                 lis.append(i+''+d)     for e in b:         if len(b) != 0:             for f in c:                 lis.append(i+''+f)     return lis
[ "you@example.com" ]
you@example.com
3758d9bb2fa07b6f534cb0733e1c6c968793be0d
e4f000d5ab81cad0fb24509f0f7a004abbdba747
/.emacs.d/.python-environments/default/lib/python2.7/sre.py
af0d4dacffb0e1a726024b1606ffc4cd5e819c7c
[]
no_license
goyala1/configFiles
b5a37f92b8e7615d966be45e0a8b6dcb6f363209
b82dd81f3a9f650667a2fb9e7728af0ef3d57b24
refs/heads/master
2021-04-27T18:49:56.517825
2018-02-22T01:59:59
2018-02-22T01:59:59
122,347,456
0
0
null
null
null
null
UTF-8
Python
false
false
46
py
/Users/abhigoyal/anaconda/lib/python2.7/sre.py
[ "ag3417@columbia.edu" ]
ag3417@columbia.edu
8ea877918ccecfd454148c91681d14422b661d56
bfbe08da83dc354e63e34d3ea698374222880fb2
/age.py
d759f09048fb4669859c7bde9f618b0a4e146378
[]
no_license
wuyenching0306/age
1f48cc06dd6220c8257884b13674257100bc6ccf
365531960bd1f67bd41579f596da810093053b1d
refs/heads/master
2022-11-28T15:08:40.149588
2020-08-07T06:46:58
2020-08-07T06:46:58
285,758,183
0
0
null
null
null
null
UTF-8
Python
false
false
370
py
drive = input('請問您有開過車嗎? ') age = input('請問您的年齡? ') age = int(age) if drive == '有': if age >= 18: print('請務必注意安全喔!') else: print('請不要無照駕駛!') elif drive == '沒有' or drive == '無': if age >= 18: print('可以嘗試去考取駕照喔!') else: print('你需要年滿18歲才可以考取駕照喔!')
[ "a80233810@gmail.com" ]
a80233810@gmail.com
f17fd9f2d917793ba4512aa37f689ece8ed71944
48832d27da16256ee62c364add45f21b968ee669
/res/scripts/client/gui/scaleform/genconsts/quests_season_awards_types.py
556871ca4a30e5a322e6482ad59791a4ee691bce
[]
no_license
webiumsk/WOT-0.9.15.1
0752d5bbd7c6fafdd7f714af939ae7bcf654faf7
17ca3550fef25e430534d079876a14fbbcccb9b4
refs/heads/master
2021-01-20T18:24:10.349144
2016-08-04T18:08:34
2016-08-04T18:08:34
64,955,694
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
496
py
# 2016.08.04 19:52:02 Střední Evropa (letní čas) # Embedded file name: scripts/client/gui/Scaleform/genConsts/QUESTS_SEASON_AWARDS_TYPES.py class QUESTS_SEASON_AWARDS_TYPES(object): VEHICLE = 1 FEMALE_TANKMAN = 2 COMMENDATION_LISTS = 3 # okay decompyling c:\Users\PC\wotsources\files\originals\res\scripts\...
[ "info@webium.sk" ]
info@webium.sk
d121bf079e21bb3572451d80d62d4a0be0a819dd
cb15cbc38c7db92b0211057ed12cdbf7e35e1e1e
/RFE_1030_MultiClass.py
33e34a37252c3327084be2ce4e2470cee9831d6b
[]
no_license
LiuyangJLU/Dementia
175cdd22a98fa533dda8b4ff2aa65626778455bb
749ab1e427748ad2358a0309e9374927fa030452
refs/heads/master
2020-03-07T00:14:59.357159
2018-03-28T14:53:55
2018-03-28T14:53:55
127,152,872
0
0
null
null
null
null
UTF-8
Python
false
false
5,634
py
# -*- coding: utf-8 -*- """ Created on Tue Oct 29 08:52:43 2017 Python3 Required Packages --pandas --numpy --sklearn --scipy Info -name :"liuyang" -email :'1410455465@qq.com' -date :2017-10-29 -Description Q_AD_DLB_VD_after_normalizion_0_to_三分类问题 利用递归特征消除法, @author: ly """ import numpy as np import pandas as pd ...
[ "31733596+LiuyangJLU@users.noreply.github.com" ]
31733596+LiuyangJLU@users.noreply.github.com
8b18c91e4730428e4c3500f9d82b92bb78de13ee
c82e130f8ae7144ad5b5e445149d8254dc3a054a
/helloworld.py~
887c64d42b6d858a9fa67071c4bc7f993f4420c9
[]
no_license
craigdubyah/lens_device
1570d1e31c8b6500187dfe52fa3f167a40fff3b9
a7c8af9a90c6030f082ea8db510f085e4e9ab890
refs/heads/master
2021-01-10T13:17:38.585394
2016-03-20T20:53:02
2016-03-20T20:53:02
54,164,583
0
0
null
null
null
null
UTF-8
Python
false
false
3,059
#!/usr/bin/env python # -*- coding: utf-8 -*- import pygtk pygtk.require('2.0') import gtk class HelloWorld: # This is a callback function. The data arguments are ignored # in this example. More on callbacks below. def hello(self, widget, data=None): print "Hello World" def delete_event(self, widget, eve...
[ "craig.see@gmail.com" ]
craig.see@gmail.com
0cf039b68da9cd0e85e1cf0254a0e89c9453a8ae
5057db862b6a0754e867469469622f4957440437
/pyassign1/planets.py
48a266a1c50850196795536ac8bdbd5d2cf1f767
[]
no_license
CCMEDJH/ichw
8a97687cf14f3e3e9e18bf2f5175e15857d6eab6
815d3f04151fbb2e2af05be8e2ac820425dca1b0
refs/heads/master
2020-03-31T07:31:27.121945
2018-12-31T06:06:45
2018-12-31T06:06:45
152,024,201
0
0
null
null
null
null
UTF-8
Python
false
false
832
py
import turtle import math wn = turtle.Screen() wn.bgcolor("black") Sun = turtle.Turtle() Sun.pensize(50) Sun.color("yellow") Sun.goto(0,0) Sun.stamp() Plants = ["Mercury","Venus","Earth","Mars","Jupiter","Saturn"] Colors = ["white","orange","lightblue","purple","pink","lightgreen"] PlantsRadius = [1,1,2,2,3,3] Radiu...
[ "noreply@github.com" ]
noreply@github.com
fe65d3c37aaddf2a65dd606f8793933918d36b7a
bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d
/lib/googlecloudsdk/command_lib/util/concepts/presentation_specs.py
5ce3f81bfe836ac2d6f02210bc819c33c953c394
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
google-cloud-sdk-unofficial/google-cloud-sdk
05fbb473d629195f25887fc5bfaa712f2cbc0a24
392abf004b16203030e6efd2f0af24db7c8d669e
refs/heads/master
2023-08-31T05:40:41.317697
2023-08-23T18:23:16
2023-08-23T18:23:16
335,182,594
9
2
NOASSERTION
2022-10-29T20:49:13
2021-02-02T05:47:30
Python
UTF-8
Python
false
false
12,018
py
# -*- coding: utf-8 -*- # # Copyright 2018 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "cloudsdk.mirror@gmail.com" ]
cloudsdk.mirror@gmail.com
3a444aba68f2b7bfacedbf9111f3cfd16db90fcc
b1513c224b2832f30dd5c34edd58b48dc78b9a12
/mysite/settings.py
6c29eb816e1077a6b82c4b17abea67de54a7b41a
[]
no_license
cintyaAguirre/-my-first-blog
2f296190f55a8e9b2c0ede933c7fb40a7e42a875
c4da5b89e4cf453fdef5f2a4c40effa924eecc46
refs/heads/master
2016-08-11T16:38:28.203414
2016-03-27T19:57:11
2016-03-27T19:57:11
54,832,316
0
0
null
null
null
null
UTF-8
Python
false
false
2,709
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths i...
[ "cintya.aguirre@gmail.com" ]
cintya.aguirre@gmail.com
f355b0f96a8d88e8aad867f986f3cfa6975d11e8
e7af5a3e76e674be0a85628067fa494348d45123
/Python-for-Finance-Second-Edition-master/Chapter01/c1_04_def_pv_funtion.py
0b20696756b3ed519e37d740043058e85838ece9
[ "MIT" ]
permissive
SeyedShobeiri/Work
8321ead6f11de8297fa18d70a450602f700f26fb
f758e758106fbd53236a7fadae42e4ec6a4e8244
refs/heads/master
2022-07-25T02:33:25.852521
2020-05-17T16:11:27
2020-05-17T16:11:27
264,706,380
0
1
null
null
null
null
UTF-8
Python
false
false
330
py
# -*- coding: utf-8 -*- """ Name : c1_04_def_pv_function.py Book : Python for Finance (2nd ed.) Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 6/6/2017 email : yany@canisius.edu paulyxy@hotmail.com """ def pv_f(pv,r,n): return pv/(1+r)**n # pv=pv_f(100,0.1,2)...
[ "shobeiri@math.uh.edu" ]
shobeiri@math.uh.edu
12a359c57fcf20125cb61c25a552e8da0df77680
c7369f20eca8b13ea20b85b0b5e0aafd27712015
/booking/migrations/0004_seat_status.py
870468492329d9a13d174cf836e0c6f007d89ee2
[]
no_license
prathap79/Box-office
001f9c860473f828de4bbd5b4be73cab7d24f88e
fcc0c552d7fe3286eb381de6fae81a95b6611c79
refs/heads/master
2021-05-06T13:38:29.491457
2017-12-06T05:48:25
2017-12-06T05:48:25
113,270,634
0
0
null
null
null
null
UTF-8
Python
false
false
585
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2017-12-05 19:51 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('booking', '0003_auto_20160731_1525'), ] operations = [ migrations.AddField( ...
[ "prathap.bolla79@gmail.com" ]
prathap.bolla79@gmail.com
437200de4b921f13167c274196f5aad47104816c
e7f74d5683701e9552f3d476dc8f57775128f90f
/hackerrank.com/gen_test_find-median.py
7e0c3edb0bf463cf29726802cdbbd44e294d4574
[ "MIT" ]
permissive
bolatov/contests
89463675ea3114115bd921973b54eb64620c19a2
39654ec36e1b7ff62052e324428141a9564fd576
refs/heads/master
2021-01-24T11:19:53.864281
2018-07-12T05:37:09
2018-07-12T05:37:09
21,923,806
0
0
null
null
null
null
UTF-8
Python
false
false
454
py
#!/usr/bin/python env import random import sys def generate(): f = open('input.txt', 'w') T = 15 f.write(str(T) + '\n') N = 100 for i in range(T): f.write(str(N) + '\n') arr = [] for i in range(N): arr.append(i+1) random.shuffle(arr) ...
[ "almer.bolatov@gmail.com" ]
almer.bolatov@gmail.com
ee4bca48e9340566c78aa996b5f2678b67677f37
277b0fc22d25a354947d115575f056cd136730fa
/test.py
4c7ca0567952aee96702b81113255f28075691f7
[]
no_license
ClosedClock/ConnectAndPlay
2a938923fa811e996c7f8103c1f29f7528c44a7a
b59cf693bd2b3d6d85e084eef9a0eea801278976
refs/heads/master
2020-05-23T10:07:29.497126
2017-02-10T01:04:45
2017-02-10T01:04:45
80,388,780
1
1
null
null
null
null
UTF-8
Python
false
false
1,744
py
from tkinter import * import threading import time class Board(Frame): def __init__(self, master=None): Frame.__init__(self, master) self.pack() self.length = 10 self.createWidgets() def createWidgets(self): # self.title = Label(self, text='This is a board') # ...
[ "zijinshi@mit.edu" ]
zijinshi@mit.edu
c8391dbc66e5962bee913e4c482dcab576ba7ad1
7e99213c19a0daf78874f169b0008f3a8ceaf5e1
/CarTopic/DeepMemoryNetwork_new/main.py
117aa2eab5942bf81320296b4acf11520aebb6f9
[ "MIT" ]
permissive
abcdddxy/kaggle
2856a92204a9a9bdd495f08ee0034daabdfbd12d
9e072881343ee9d0e1ec48a74c9b1ae5aa348901
refs/heads/master
2021-01-01T17:44:06.349801
2018-12-06T02:34:46
2018-12-06T02:34:46
98,139,385
5
0
null
null
null
null
UTF-8
Python
false
false
3,026
py
import pprint import tensorflow as tf from data import * from model import MemN2N pp = pprint.PrettyPrinter() flags = tf.app.flags flags.DEFINE_integer("edim", 300, "internal state dimension [300]") flags.DEFINE_integer("lindim", 100, "linear part of the state [75]") flags.DEFINE_integer("nhop", 3, "number of hops [...
[ "kfc00m@126.com" ]
kfc00m@126.com
174c7c665535c0a622cc4e1810871e132738fced
dba4803d19434c08e6c636daad16920ea0196d14
/Project 1 - Scrapping Webpages/StarCityGames/scrapy_splash/scrapy_javascript/scrapy_javascript/spiders/SplashSpider.py
46440ecc478dcc2f45a7bed5b1e2e3bb8889177e
[]
no_license
tnorth2260/North_Repo1
d7b243c9a688ce66cf96a6ef9317c3181f22f50c
15148d09c976676897d7f9fe2ef34a5f7438b0a3
refs/heads/master
2020-12-29T11:45:39.417900
2020-02-06T03:06:22
2020-02-06T03:06:22
238,596,889
0
0
null
null
null
null
UTF-8
Python
false
false
5,361
py
# Import from other python files and scrapy files and the needed csv file containing all URLs/proxies/ua import csv import scrapy from scrapy.spiders import Spider from scrapy_splash import SplashRequest from ..items import DataItem ########################## SPALSHSPIDER.PY OVERVIEW #####################...
[ "thomas.north@uky.edu" ]
thomas.north@uky.edu
36f4d22a2cdb38f4c2095110fdafde955ca537dd
db2ec9bb0df2f721edcbdf3199642838ef575cfa
/object-detection/FlickrSportLogos-10.py
9ddcfbf86b5ff957516f12ab8c03f265d24c54be
[]
no_license
racheltang2333/Graviti
d15c73201bae771264cf463c6df1515f877bc743
8fa13d81503ef2bb81a2158de56b54f12c7d9da4
refs/heads/main
2023-08-14T10:17:23.356714
2021-09-11T14:59:28
2021-09-11T14:59:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,086
py
from common.dataset_initial import initial from tensorbay.label import LabeledBox2D, Classification from tensorbay.dataset import Data from common.label_acquire import acquire_label_xml import os from tensorbay.client import config from common.file_read import read_csv_file config.timeout = 40 config.max_retries = 4 ...
[ "wanshantian@gmail.com" ]
wanshantian@gmail.com
a92502db8aaacc47a2fe8b3c4a6d85f43c367705
e59c8252f44aa286f4ab115eb26ee9223c600d36
/movieapirestcrud/wsgi.py
66a8aefca0bdc513026118aefb305dc72a6bc74f
[]
no_license
daff-250900/movieapi-python-postgresql
a0a6353c50abde3773f84918fa06cd504804d0e7
05f9308df2fb8f17add1fba64ee1824f145c0ade
refs/heads/master
2023-04-09T08:59:20.444858
2021-04-18T17:40:47
2021-04-18T17:40:47
359,163,792
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
""" WSGI config for movieapirestcrud project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.se...
[ "316081287@pcpuma.acatlan.unam.mx" ]
316081287@pcpuma.acatlan.unam.mx
5da96b525cffe304dd7d44c7c14a4cdbaa73eb9e
645cdf596693707d41efad7ba9bfcfbc607a559b
/tests/v_0_1_0/test_yaml_parser.py
0555ac6556c1073d4d937338ddb0b6a6e1931b09
[ "Apache-2.0" ]
permissive
lengmoXXL/page_query
5ce3cad38bb230f2571a0d9318a9f5304d86817b
90677861aa4d55251d12f5f09b5e91e25acff9c1
refs/heads/main
2023-08-01T05:22:45.642075
2021-09-12T01:12:03
2021-09-12T02:09:50
398,512,889
0
0
null
null
null
null
UTF-8
Python
false
false
617
py
import yaml def test_yaml_safe_load_example(): text = '\n'.join([ 'elasticsearch_url: "http://localhost:9200"', 'rules:', ' - type: manual_http_urls', ' title: www_baidu_com', ' tags: []', ' summary: the baidu website', ' http_urls: ["https:...
[ "1075749478@qq.com" ]
1075749478@qq.com
368342c28973f927c10a45c03124bdec3a92c45a
ba76d0ba1dfca22bc7f28d00d58e0afd589341b1
/synergy/system/mq_transmitter.py
58516581c25cd8bf7afef3a7fe6042a640d307b8
[ "BSD-3-Clause" ]
permissive
mushkevych/scheduler
0eb27401e66e144891e8308404fc421e16764c18
8228cde0f027c0025852cb63a6698cdd320838f1
refs/heads/master
2021-07-13T23:27:48.371909
2020-06-13T18:10:52
2020-06-13T18:10:52
2,901,075
15
2
BSD-3-Clause
2021-07-10T18:07:47
2011-12-02T19:55:13
JavaScript
UTF-8
Python
false
false
2,217
py
__author__ = 'Bohdan Mushkevych' from threading import Lock from synergy.scheduler.scheduler_constants import QUEUE_UOW_STATUS, QUEUE_JOB_STATUS from synergy.db.model.mq_transmission import MqTransmission from synergy.mq.flopsy import PublishersPool from synergy.system.decorator import thread_safe class MqTransmitt...
[ "mushkevych@gmail.com" ]
mushkevych@gmail.com
23a27a2fe5665f7d1fa6b3381fe99b21991a6ead
badfee888ee1f3a72359caadb61db1d551bda7c3
/knowledgeseeker/database.py
18671c49bbd29bd957d9514a54b6b91284845178
[ "Apache-2.0" ]
permissive
canwe/knowledge-seeker
1f785231a4267ebd2b921ee3c8447f98b9325215
4bd8ec62e2bd3c52c7c158f2da0b490f1219bb88
refs/heads/master
2020-06-22T22:03:16.878344
2018-11-08T18:54:21
2018-11-08T18:54:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,923
py
import sqlite3 from concurrent.futures import as_completed, ThreadPoolExecutor from datetime import datetime from functools import wraps from pathlib import Path import cv2 import numpy from flask import abort, current_app, g from knowledgeseeker.utils import strip_html FILENAME = 'data.db' POPULATE_WORKERS = 4 d...
[ "ryan.ry.young@gmail.com" ]
ryan.ry.young@gmail.com
6df8b629cf7171b384d1aa3d871f1ecb5b7f86cc
38c078e7687aed64d37474abb66b34fb445fef76
/state.py
df2f77672fe29c96e4a1f3fca8e5f0e00ca408f4
[ "MIT" ]
permissive
DhruvPatel01/NotAeroCalc
8c35afd34070043cc461d244e723215edf919800
d4db34c88eaf55e198c9205eb2868bb6c2aca701
refs/heads/main
2023-04-15T01:22:30.859624
2021-05-04T13:39:31
2021-05-04T13:39:31
354,318,949
0
0
null
null
null
null
UTF-8
Python
false
false
299
py
""" This module will be used to store variables and state of the running session. DO NOT ADD DEFAULTS HERE. """ from collections import defaultdict variables = {} expressions = set() var2eqns = defaultdict(set) def reset(): variables.clear() expressions.clear() var2eqns.clear()
[ "dhruv.nanosoft@gmail.com" ]
dhruv.nanosoft@gmail.com
5d051850e1e6e7d4dbff50c6b3db6dd1eec6e1ee
b2586edc6374d2bebc619b887c505f0f653ce5b6
/core/table.py
2ea44cd0c1907c05dc88ed308e84d4e8ca6e055e
[]
no_license
BYC30/tpdb
b355e6d600f517599b8cfd70035340c04f8e8f91
3ba2880ebc0a346ce299977afe4c7dc83dc72432
refs/heads/master
2020-05-09T17:41:00.579819
2019-05-03T12:36:45
2019-05-03T12:36:45
181,319,577
0
0
null
null
null
null
UTF-8
Python
false
false
9,147
py
from tpdb.core import SerializedInterface from tpdb.core.field import Field # 数据表对象 class Table(SerializedInterface): def __init__(self, **options): self.__field_names = [] # 数据表所有字段名 self.__field_objs = {} # 数据表字段名与字段对象映射 self.__rows = 0 # 数据条目数 # 获取所有字段名和字段对象为数据表初始化字段...
[ "627080587@qq.com" ]
627080587@qq.com
e44fd4581b9a9336c53182b6c33809bf00bfe9fc
15ec1abf1e5c25e4789acede74733d089ba4bdba
/测试代码/survey.py
cb9b68a504443147ddc60716ed00b4ded2d71e7d
[]
no_license
zxy-zhang/python
eab8a2e7c9cb896441d5be2ec8bab93187cd18a2
355f2d88999c6f98072b72ef264c12b94778b78a
refs/heads/master
2020-03-26T01:49:41.361521
2018-08-11T13:04:29
2018-08-11T13:04:29
144,384,448
0
0
null
null
null
null
UTF-8
Python
false
false
538
py
class AnonymousSurvey(): '''收集匿名调查问卷的答案案''' def __init__(self,question): '''存储一个问题,并为存储答案做准备''' self.question=question self.responses=[] def show_question(self): '''显示调查问卷''' print(self.question) def store_response(self,new_response): '''存储单份调查问卷''' self.responses.append(new_response) def show_res...
[ "937919473@qq.com" ]
937919473@qq.com
a84c8d31de4dc825e18cbe3145a69c31faa63f3c
6d6bebce1a3d819c28cf583f3c46c8235ffccfd2
/WildlifeObservations/observations/migrations/0008_taxonomysubfamily.py
91c79afbcb1c9ad4a2816de568ceb34033315e61
[ "MIT" ]
permissive
jen-thomas/wildlife-observations
7a20366164d467d73c44e8c844cc99fe26716152
e6a6b6594e60fe080f253481720d80a38a9f7411
refs/heads/main
2023-05-25T17:20:15.506403
2023-05-16T13:03:05
2023-05-16T13:03:05
450,234,890
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
# Generated by Django 3.2.11 on 2022-05-05 08:14 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('observations', '0007_alter_identification_confidence'), ] operations = [ migrations.CreateModel( ...
[ "jenny_t152@yahoo.co.uk" ]
jenny_t152@yahoo.co.uk
9c5b678768b2717dcf0d67b786e43dcd8a46db07
cab8f8d4dd43c0a58d2d4caf1f6c7e17200519fe
/models/common.py
d02c03b3a34c634809c977565053f8ee9d071cab
[]
no_license
wangning7149/Rotate-yolov5
e485e4496b010a40216799436958f0279a47a1a3
9add8bc076554be2a1535767e21006186ffdab82
refs/heads/main
2023-03-26T06:15:33.254607
2021-03-23T11:22:19
2021-03-23T11:22:19
350,672,168
4
1
null
null
null
null
UTF-8
Python
false
false
10,901
py
# This file contains modules common to various models import math import numpy as np import torch import torch.nn as nn from PIL import Image, ImageDraw from utils.datasets import letterbox from utils.general import non_max_suppression, make_divisible, scale_coords, xyxy2xywh from utils.plots import color_list def ...
[ "714970851@qq.com" ]
714970851@qq.com
eeae70925a1c2b25ff55ff564036aab334d96b29
12e1fcbeb0bb0c3866e9aa863016ebf5b8cf6fa9
/keras/pre_models.py
067b6e76aa0c68b8b4533abdbfb7cb727390a80d
[]
no_license
Grid-Gudx/sound_classification
0eee6c523e5c6732ce4456a297757ef20015753c
c79a83b5882c1b386254a33b2ac9ac44d0546f7b
refs/heads/main
2023-08-18T14:51:33.181996
2021-09-15T07:54:53
2021-09-15T07:54:53
403,004,685
2
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
# -*- coding: utf-8 -*- """ Created on Mon Sep 6 12:59:13 2021 @author: gdx """ from tensorflow.keras.applications import ResNet50, VGG16, MobileNetV2 from tensorflow.keras.layers import * import tensorflow.keras.backend as K from tensorflow.keras import Model # # resnet50 = ResNet50(weights='imagenet',include_top=...
[ "56808862+Grid-Gudx@users.noreply.github.com" ]
56808862+Grid-Gudx@users.noreply.github.com
b1a0989f6823f7f7c01312d4b0f5dc3846b8d59a
ae63286cf2d2231d3a88fb2070ad0139f5b26765
/[Image]ObjectDetection.py
62d58cf74103ade5705d16d37fbee4cab1cf353e
[]
no_license
daveleefrags/tutorial
36957b0a2f45d9b80f0ddbbf90db80684ff60f66
20adede71ecbd288de83553f4f77f9728a18d76c
refs/heads/master
2020-08-04T12:56:32.613938
2019-10-16T20:35:27
2019-10-16T20:35:27
212,142,965
0
0
null
null
null
null
UTF-8
Python
false
false
7,372
py
### Copy of pytorch tutorial ### https://pytorch.org/tutorials/intermediate/torchvision_tutorial.html ### 윗 파이토치 튜토리얼의 한글 주석본입니다. import os import numpy as np import torch from PIL import Image ## Make dataset class ## 모델에 활용하기 위한 데이터셋 클래스입니다. # 보통 dataset 클래스를 상속받는데 여기서는 그러지 않습니다. 객체인식이라서?... class PennFudanData...
[ "walkaround@naver.com" ]
walkaround@naver.com
ad7dbf14334e1e28c5a3b8489e94948d55cebc3b
6eb458b1340d4fa6d63dceec82ae54d0f7e6ceb5
/run_scripts/load_data.py
08bc255cae75f607aaf85207a35b510bdff0b878
[ "MIT" ]
permissive
EtashGuha/conformal_bayes
5fde59a914d14c4d3dde88138bf25ff09bb98024
0c6d1c1e8e2d41480b57125c52665fc8be182908
refs/heads/main
2023-08-21T05:27:56.477734
2021-10-25T00:21:27
2021-10-25T00:21:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,654
py
from sklearn.datasets import load_boston,load_diabetes,load_breast_cancer from sklearn.model_selection import train_test_split import time import numpy as np from tqdm import tqdm import pandas as pd import scipy as sp ## Sparse Regression ## #Well specified? def load_traintest_sparsereg(train_frac, dataset,seed): ...
[ "edwin.fong@wolfson.ox.ac.uk" ]
edwin.fong@wolfson.ox.ac.uk
8f826330027835bef894a6ef947e059eb2635312
415d2d59a910e1fe56eff6b69726de7e5ed871f2
/Algorithms/strings/two_strings.py
0b8878005a800833e4ff3c449e9a8b7bc5063d59
[]
no_license
tommady/Hackerrank
eeda7b4455ce4e90088e73af392a02627e2feefb
a9b64f13b65511068f4949b8498aa3d9746883aa
refs/heads/master
2020-05-29T11:54:16.843398
2016-01-20T15:44:56
2016-01-20T15:44:56
44,440,546
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
from collections import deque def is_substring(A, B): found = False while A: if A.pop() in B: found = True return found for _ in range(int(input())): A = deque(set(input())) B = deque(set(input())) print("YES" if is_substring(A, B) else "NO")
[ "emptysmile1013@gmail.com" ]
emptysmile1013@gmail.com
a0c82a506c91a3a7c0b678adac1283adedd35094
6bd047eb1951601a5a7bab564eb2abba92c6c004
/prices/api/queries.py
0fdac2905d72924ea823efd6ca273a290b653fd8
[]
no_license
volgoweb/DDD_sandbox
6ab2b43d3fcad8eb2f802bd485e5dbc05eb2e10d
700c2848d5341ab267e69326bac2487657450d22
refs/heads/master
2021-01-01T15:46:13.244679
2017-07-11T06:18:36
2017-07-11T06:18:36
97,695,978
0
0
null
null
null
null
UTF-8
Python
false
false
659
py
from utils.queries import IQuery class GetProductPricingForOneProduct(IQuery): def __init__(self, product_id: int): self.product_id = product_id @classmethod def get_query_type_name(cls): return 'prices.GetProductPricingForOneProduct' class GetProductPricingForManyProducts(IQuery): ...
[ "volgoweb@bk.ru" ]
volgoweb@bk.ru
aea0c877e69fd3729d376aef2e6ea5374f0287ca
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/python-flask/generated/openapi_server/models/org_apache_sling_jcr_resource_internal_jcr_resource_resolver_factory_impl_properties.py
65ecabe223fe97999649b8c3603c5f29dc1f1a3b
[ "Apache-2.0" ]
permissive
shinesolutions/swagger-aem-osgi
e9d2385f44bee70e5bbdc0d577e99a9f2525266f
c2f6e076971d2592c1cbd3f70695c679e807396b
refs/heads/master
2022-10-29T13:07:40.422092
2021-04-09T07:46:03
2021-04-09T07:46:03
190,217,155
3
3
Apache-2.0
2022-10-05T03:26:20
2019-06-04T14:23:28
null
UTF-8
Python
false
false
38,540
py
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server.models.config_node_property_array import ConfigNodePropertyArray # noqa: F401,E501 from openapi...
[ "cliffano@gmail.com" ]
cliffano@gmail.com
d65abfef0a21cf2b6eba2a17eea54aaeb27c62dc
cf1f1d3f7a4aaaaaee322b0101f7b294909c5a67
/Code/Kevin/Lab10Version1.py
c8c1bb6d36d0e094285053224314851aa2c4c01f
[]
no_license
PdxCodeGuild/class_emu
0b52cc205d01af11860a975fc55e36c065d1cc68
9938f384d67a4f57e25f2714efa6b63e2e41b892
refs/heads/master
2020-05-31T01:16:52.911660
2019-12-09T05:22:06
2019-12-09T05:22:06
190,046,342
4
0
null
null
null
null
UTF-8
Python
false
false
236
py
nums = [5, 0, 8, 3, 4, 1, 6] average_number = 0 total_sum = 0 # loop over the indices for i in range(len(nums)): total_sum += nums[i] average_number = total_sum/ len(nums) print(f"Sum: {total_sum}\nAverage: {average_number}")
[ "wrenJTD@gmail.com" ]
wrenJTD@gmail.com
ca18b5c3363360b40cbbff827c4f93159c1dea58
f11fc43cc80244bcc54ef6b1a076ff1c865cb5cc
/server/routes/browser/api.py
8e906d4e95df89a48442c189b13a1596ab053d23
[ "Apache-2.0" ]
permissive
shifucun/website
b2ea42951e097773b84a4e034a723be58c11f52e
eabf368af7e66d8f21de1f79389e9223e9dba764
refs/heads/master
2023-08-16T21:19:28.422369
2023-06-28T20:59:52
2023-06-28T20:59:52
272,305,727
0
0
Apache-2.0
2023-04-27T20:58:15
2020-06-15T00:16:53
TypeScript
UTF-8
Python
false
false
3,571
py
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "noreply@github.com" ]
noreply@github.com
6909a2423cf10b74b46fb957494f6095eb62d924
666020d5d8b1c1c1ba60d15a66ecae80e5fb3086
/utils/http_manage.py
06f0ea93f15bfb5ca67bdd1f3c2455bd18df7b1e
[]
no_license
smarthaut/smart-auto
a0ffa6b13e0009f480dce2da251c8746cbb292eb
19b4fc1060f3d03e65f0a5af0d12c436b284e1f9
refs/heads/master
2022-11-24T09:22:57.661659
2020-07-20T03:16:05
2020-07-20T03:16:05
272,387,578
1
0
null
null
null
null
UTF-8
Python
false
false
2,340
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/7/2 上午9:23 # @Author : huanghe # @Site : # @File : http_manage.py # @Software: PyCharm import requests import json from utils.log_manage import Logger class BaseHttp: def __init__(self, method, host, timeout=60): self.method = method ...
[ "huanghe@zuihuibao.com" ]
huanghe@zuihuibao.com
6b098e4d345dd4448f6dba3dd56ca8f348913b8c
0e59bee1dfba817faf3d0989f4d491e40d2168d2
/tests/unit-tests/python/foglamp_test/services/core/api/test_statistics_history.py
1c604cd3928433f0d096abccc7cf931f1a52f8c0
[ "Apache-2.0" ]
permissive
m0fff/FogLAMP
2f9fded0de1ac92a70fc719a94c8fc31fb8b7084
f9e89b22645570989b952f0484e950a952f9c2d0
refs/heads/master
2021-05-06T05:51:20.439596
2017-12-19T17:00:37
2017-12-19T17:00:37
115,176,999
0
0
null
2017-12-23T06:51:37
2017-12-23T06:51:37
null
UTF-8
Python
false
false
4,990
py
# -*- coding: utf-8 -*- # FOGLAMP_BEGIN # See: http://foglamp.readthedocs.io/ # FOGLAMP_END import asyncpg import asyncio from datetime import datetime, timedelta import requests import pytest __author__ = "Praveen Garg" __copyright__ = "Copyright (c) 2017 OSIsoft, LLC" __license__ = "Apache 2.0" __version__ = "${VE...
[ "praveen.garg@nerdapplabs.com" ]
praveen.garg@nerdapplabs.com
54ab05db85f18373b1cd489a5310e729a167c100
08e039046e2b3c526b5fd2169e02d5c5bbe253c5
/0x04-python-more_data_structures/0-main.py
f37cdb42818fedc7a8af51018ae298fef65412fb
[]
no_license
VinneyJ/alx-higher_level_programming
22a976a22583334aff1f0c4120fb81117905e35b
0ea8719ec5f28c76faf06bb5e67c14abb71fa3d0
refs/heads/main
2023-07-31T15:44:30.390103
2021-10-01T21:27:31
2021-10-01T21:27:31
361,816,988
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
#!/usr/bin/python3 square_matrix_simple = __import__('0-square_matrix_simple').square_matrix_simple matrix = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ] new_matrix = square_matrix_simple(matrix) print(new_matrix) print(matrix)
[ "vincentjayden49@gmail.com" ]
vincentjayden49@gmail.com
d85e02188fa8b464dc1bdef600a03dfa8eecb4d8
cba23cf4cd87fe961475da6df7d94d5ae8695e76
/project3/main.py
56492404f3d3879cf202ae2cb6d643fe0cadcb3c
[]
no_license
KirMcR/OOP-python
e94ed8be9745e5b6ef84f8a8277b12f1fbbfd6f8
81e1e5b49bbbb436a18e5638c963577494460e4e
refs/heads/master
2023-02-06T01:54:02.231985
2020-12-22T18:05:11
2020-12-22T18:05:11
299,915,475
0
0
null
null
null
null
UTF-8
Python
false
false
5,934
py
from abc import abstractmethod from random import randint class Fighter(): # Абстрактный класс-родитель для классов описывающих бойцов def __init__(self, name, age, country, weight): self.name = name self.age = age self.country = country self.weight = weight self.health...
[ "kirillmcarov@gmail.com" ]
kirillmcarov@gmail.com
c7d8f13bd8fb9ab354250cbb8f69282bb7f5d574
8362a53892f45a1a7adcca7da5cd6827bd5c55fd
/tests/test_database.py
89f622e5642f98b20ec639311a2fc9d55c641d1c
[ "MIT" ]
permissive
accent-starlette/starlette-core
1a414969ae05ba90c96f184a206c0eb97c1d33fc
88e94be0cc65e457e32f2586a3c8860c6c08fca9
refs/heads/master
2022-01-27T07:57:50.570112
2022-01-04T16:39:26
2022-01-04T16:39:26
185,164,201
13
7
MIT
2021-12-10T12:03:59
2019-05-06T09:19:57
Python
UTF-8
Python
false
false
3,037
py
import pytest import sqlalchemy as sa from starlette.exceptions import HTTPException from starlette_core.database import Base, Session class User(Base): name = sa.Column(sa.String(50)) def test_database(db): # connects ok db.engine.connect() # can create tables db.create_all() assert "user...
[ "stuart@accentdesign.co.uk" ]
stuart@accentdesign.co.uk
1d6af3af9fa41162b76ba04790d68e5e149b3219
2ca07aecfa6ff25b0baae6dc9a707a284c2d1b6d
/trustzone_images/apps/bsp/build/scripts/genuses.py
44dde7dfd37d5c023ae14fb6e8d49ccd9fafb72d
[]
no_license
zhilangtaosha/msm8996-wp-1-0_test_device
ef05af263ba7955263ff91eb81d45b2437bc492e
6af9b44abbc4a367a9aaae26707079974c535f08
refs/heads/master
2023-03-19T02:42:09.581740
2021-02-21T01:20:19
2021-02-21T01:20:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,954
py
#=============================================================================== # # genuses # # GENERAL DESCRIPTION # Generates USES_FLAGS imformation from DATA file generate from build/ms. # # Copyright (c) 2009-2010 by Qualcomm Technologies, Incorporated. # All Rights Reserved. # QUALCOMM Proprietary/GTDR # #---...
[ "lonelyjskj@gmail.com" ]
lonelyjskj@gmail.com
062417e25cc8f2274a2bd4eb74a493fd66b1ece8
b59bb3bae76540ac1d2ca5f0d1b7fab5c4606d7e
/tutorial/quickstart/permission.py
07da4a167e50c65920cab0b672ff2c7953c5ba8a
[]
no_license
Alllrox/backend
0ad1b9c53c970434e7951db7235eb63b0c5071eb
5868a0d6108c3118d7888dae17e6c89172dac48f
refs/heads/main
2023-04-11T04:55:05.113563
2021-04-24T07:14:15
2021-04-24T07:14:15
361,079,786
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
from rest_framework import permissions from tutorial.quickstart.models import Tweet class IsAuthorOrReadOnly(permissions.IsAuthenticatedOrReadOnly): def has_object_permission(self, request, view, obj: Tweet): if request.method in permissions.SAFE_METHODS: return True return obj.author...
[ "rodionov.as@students.dvfu.ru" ]
rodionov.as@students.dvfu.ru
bb3fb9eb21687447b680c05b829baec91643160f
b76ae361ab277923d0fed969b795074a1ecb400b
/project/RealDjango/venv/Scripts/django-admin.py
cfd7845dd7575e87f8a033bd3ad032b3f72ce470
[]
no_license
RobotNo42/old_coed
995df921e31d5a9b65f1609380235330edb546ad
59f82e5d58965dd5c6340f4daf4ef43d1d311252
refs/heads/master
2021-07-18T00:07:33.450173
2020-06-16T13:51:11
2020-06-16T13:51:11
180,384,457
0
0
null
null
null
null
UTF-8
Python
false
false
161
py
#!D:\python\project\RealDjango\venv\Scripts\python.exe from django.core import management if __name__ == "__main__": management.execute_from_command_line()
[ "chengge1124@gmail.com" ]
chengge1124@gmail.com
cadfb27d3e580c907f5b9d0002da72f1651d5bc7
5bec100877bd9c2e4b17f1c35dfc2c2ee98ae51d
/azure-iot-device/azure/iot/device/common/evented_callback.py
beea5941efbf6ec689374260f87c4370d4499417
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
taak77/azure-iot-sdk-python
2cba813f20ec13f919ed4dfaecdc66afc0ca6bc8
a20319d6dbd10463b2ba83b63fdccd389cef4552
refs/heads/master
2020-07-24T08:51:02.692696
2019-09-09T17:23:16
2019-09-09T17:23:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,496
py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- import thr...
[ "bertk@microsoft.com" ]
bertk@microsoft.com
a60bdb0bf993fb4b18f4786c28e0843c18323e08
f00b409aa45e4eda11c6ad9ed1a4b522a8cac613
/exe076.py
adfb0952bbbb78f4a7a95fafab5d4277f7bd0918
[ "MIT" ]
permissive
evertondutra/Curso_em_Video_Python
428d4b1451a308cac8be191ad3ad20dc63cacf51
c44b0ca79d3a5f3d0db0f9a8b32a1ea210d07bba
refs/heads/master
2022-10-04T23:17:34.679128
2020-06-05T03:46:04
2020-06-05T03:46:04
255,818,294
0
0
null
null
null
null
UTF-8
Python
false
false
698
py
""" Crie um programa que tenha uma tupla única com nomes de produtos e seus respectivos preços, na sequencia. No final uma listagem de preços, organizando os dados em forma tabular. """ listagem = ('Lápis', 1.75, 'Borracha', 2, 'Caderno', 15.90, 'Estojo', 25, 'Transferido...
[ "evertondutra02@gmail.com" ]
evertondutra02@gmail.com
eb73286927ed427073080c8a740fe5eec2562aa2
d7375d6de6a995d1052abb8443bf252c79edf915
/meiduo_mall/meiduo_mall/apps/users/migrations/0004_user_default_address.py
57a937c040dcecaad274d872943569a015c5ae0c
[]
no_license
liguozige/meiduo_29
9f87abd6dacbecf2cb19a8f6bf4023412f05b024
7ca160fd85dff282e1c72b0c9fff308479443e0b
refs/heads/master
2020-03-21T00:23:13.262556
2018-07-07T10:30:33
2018-07-07T10:30:33
137,890,479
0
0
null
2018-07-07T10:30:34
2018-06-19T12:47:22
HTML
UTF-8
Python
false
false
603
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.11 on 2018-07-03 05:23 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('users', '0003_address'), ] operations = [ ...
[ "lgl@163.com" ]
lgl@163.com
5fd00c56070da70f6114da681544c544f52272e0
5ea279fcdc4ba18f4d7212d657cfe101185d2f22
/libs/events/__init__.py
b1bb2920c5e13d862b2535bf80289d6971e53fd2
[ "Apache-2.0" ]
permissive
FAF21/spoofcheckselftest
76bb26bee1fa61774f7eb974345801cfbfbb2b73
316c435273edd3f8c90e83595767506817f65e0c
refs/heads/master
2023-08-24T16:47:47.925899
2017-05-24T18:54:11
2017-05-24T18:54:11
422,992,521
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
TASK_EVENTS = 'task_list' TASK_ROUTING_KEY = ''
[ "alexdefreese@gmail.com" ]
alexdefreese@gmail.com
d16ef364cf6106a88a1b28a9a96bdae89166f80c
778a3e1e70b0b2782d2a35f8818bbe799e6c7396
/Seventh_week_exersice/03Sum_prime_non_prime.py
def7d6757eba88c49c90e3f84af9077c2e5e6b72
[]
no_license
skafev/Python_basics
0088203207fe3960b26944e0940acaec40a8caaf
8bfc1a8b0dad3bf829fffbd539cebe3688f75974
refs/heads/main
2023-06-10T11:25:27.468914
2021-07-01T15:28:12
2021-07-01T15:28:12
382,078,056
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
number = input() not_prime = 0 prime = 0 while number != "stop": number = int(number) if number < 0: print("Number is negative.") elif number > 3: if number % 2 == 0 or number % 3 == 0: not_prime += number else: prime += number else: prime += num...
[ "s.kafev@gmail.com" ]
s.kafev@gmail.com
2c8269a6d5c4ddb8c4b445466174f74aecf370f6
857b051f99e8a42f94dd5895c7ac735e37867e94
/hakkimizda/urls.py
56836439053617eeb3e0ba317c7a1333be1e19df
[ "MIT" ]
permissive
kopuskopecik/projem
a88e4970ef23a4917e590e1a0a19ac7c49c86a73
738b0eeb2bf407b4ef54197cce1ce26ea67279c8
refs/heads/master
2021-06-22T10:04:44.523681
2020-12-25T19:56:10
2020-12-25T19:56:10
172,302,265
2
0
null
null
null
null
UTF-8
Python
false
false
171
py
from django.urls import path from django.conf.urls import url from .views import * app_name="hakkimizda" urlpatterns = [ path('hakkimizda/', hakkimizda, name="hak"), ]
[ "kopuskopecik@gmail.com" ]
kopuskopecik@gmail.com
11c178214cdb08fd06eb4056b44dfd4a76314ab8
8a61146cfb0dc80eb74f493d99b60ae0dfa26ec8
/python/src/q_2_1.py
00075249df73eb506b935ab3b6167aaedea58833
[]
no_license
elliotCamblor/CTCI
53adff9804c7552a45f5c5754a85c3e2c770190e
03b57a6fa1e97fa635f09f1e8a48760cbf540b8c
refs/heads/master
2021-01-20T07:07:31.801397
2016-08-09T05:21:51
2016-08-09T05:21:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
from lib.HSLinkedList import Node def removeDuplicates(head): n = head d = {} p = None while n: if n.data in d: p.next = p.next.next else: d[n.data] = True p = n n = n.next if __name__ == "__main__": n = Node(1) add = n.appe...
[ "hydersmh@gmail.com" ]
hydersmh@gmail.com
d95985a14b17c478faf2a25852d0b0286636cace
ad9d4bf92a3af72bb0be4a899b58208359c3577a
/firebaseListener/FirebaseListener.py
e70ffaea25eee60d1bebee9b1f28a9094108e4c7
[]
no_license
rebekkbb/Datacollector_app
e065a6eb705679c1612a2867abe757e385074b52
fd6d4c099d9ed7fb0aae23a0f5a4018c5576b30f
refs/heads/master
2022-12-12T00:39:11.570335
2020-09-16T14:36:35
2020-09-16T14:36:35
294,697,178
0
0
null
null
null
null
UTF-8
Python
false
false
760
py
import pyrebase import time import numpy polarID= "75157825" config = { "apiKey": "APIkey", "authDomain": "projectId.firebaseapp.com", "databaseURL": "https://projectId.firebaseio.com/", "storageBucket": "projectId.appspot.com" } arr=[] file=open(polarID+"-rrs.txt",'a') firebase=pyrebase.in...
[ "noreply@github.com" ]
noreply@github.com
bec64a7169611c133f6effb658d194136f903149
feff273063b4c89bde3aa190b4e49c83ab1e5855
/memphis/view/layout.py
6a21cc666494b2107e8bc16e66c706a54a3bb83b
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
mcdonc/memphis
7d53b8f77f7bab7c20a258a9ab33d1cc663711a2
daef09507eacb32b235faf070a0146ffb5cf035f
refs/heads/master
2016-09-05T23:04:01.578991
2011-10-11T03:37:43
2011-10-11T03:37:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,147
py
""" layout implementation """ import sys, logging from zope import interface from pyramid.interfaces import IRequest, IRouteRequest from memphis import config from memphis.view.base import View from memphis.view.formatter import format from memphis.view.interfaces import ILayout from memphis.view.customize import Laye...
[ "fafhrd91@gmail.com" ]
fafhrd91@gmail.com
268448f85e803d703f627aecc5148a87e32cbe13
7ff04d4e819fd94cfbd8dd00d68e52801a6128a8
/Hurricane/breaking_down_z_cal_from_matlab.py
c9b28d807e5173088f7c6aaf8c758a802751d3e0
[]
no_license
Timryanlab/Python-Master
aed6e0de57cc073c243cdc06fd066928f795786b
59c421821df1e08735a23358e04f4888f649d13d
refs/heads/Andrew
2021-11-13T03:56:26.379086
2021-11-07T20:07:36
2021-11-07T20:07:36
205,262,840
0
0
null
2020-05-22T19:02:09
2019-08-29T22:47:28
Python
UTF-8
Python
false
false
11,356
py
# -*- coding: utf-8 -*- """ Title: Concept: Created on Thu May 28 15:06:51 2020 @author: Andrew Nelson """ #% Import Libraries from ryan_image_io import * from scipy.io import loadmat import matplotlib.pyplot as plt from localization_kernels import * from mpl_toolkits.mplot3d import Axes3D #% Functions def simulate...
[ "ajn2004@med.cornell.edu" ]
ajn2004@med.cornell.edu
222e8c2ba286b930f0faeef59dc4de48321308c7
684bc9502ddd1fdd117c499bf13775d7e8229d08
/mapadroid/utils/token_dispenser.py
84486012b8115e1328a8e37907a851e969a5bfdf
[]
no_license
JabLuszko/MAD
9162633e9ebed9b2a6b992a24297256a5b959700
591fefa3ee1795f5994aec015e98503234289be7
refs/heads/master
2023-08-17T19:06:51.060746
2020-06-22T20:21:55
2020-06-22T20:21:55
170,873,917
0
0
null
2023-08-07T15:21:22
2019-02-15T14:02:23
Python
UTF-8
Python
false
false
2,644
py
import requests import time from mapadroid.utils.logging import get_logger, LoggerEnums logger = get_logger(LoggerEnums.utils) class TokenDispenser(requests.Session): def __init__(self, host: str, retries: int = 3, sleep_timer: float = 1.0, timeout: float = 3.0): # Create the session ...
[ "noreply@github.com" ]
noreply@github.com
ee4b03b084880037f7dc2510f9f60d51b04f80d6
6a7f91725e7a64a63676402a85d8c3859030d5df
/Lec 9/1- count_letters_using_dict.py
26420bc93264e5a43342c8e9e6f77c20a3070458
[]
no_license
moabdelmoez/road_to_pythonista
22a7601df361338ee38301f8dc5729c932e94754
eacc4f2ecc1fd1ce9fe5f109f9d9048a83714782
refs/heads/master
2020-07-07T02:53:18.638849
2019-11-15T07:25:43
2019-11-15T07:25:43
203,222,933
7
3
null
null
null
null
UTF-8
Python
false
false
141
py
word = 'brontosaurus' d = dict() for c in word: if c not in d: d[c] = 1 else: d[c] = d[c] + 1 print(d)
[ "noreply@github.com" ]
noreply@github.com
21f7be6bda6c3cb5dd112d9a5bb84d861f39e9eb
04d0914e3e2a7221db32e2ef12b656c3b20a6d11
/blog/migrations/0001_initial.py
df8ac01b6a819cfe6187c5762fe923dd9e9da542
[]
no_license
JydanX/my-first-blog
8560d9c41c1de8322293fdc9e07c51bb161af9a8
cdb7eebb6bf5c0213c3861e016724b150b12bb36
refs/heads/master
2023-01-20T11:56:47.260277
2020-11-26T06:31:19
2020-11-26T06:31:19
315,541,921
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
# Generated by Django 2.2.17 on 2020-11-24 05:47 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AU...
[ "jasonxing2140@gmail.com" ]
jasonxing2140@gmail.com
c21d74a662d5db8b34c6793c5b0def3026ab0cfe
8afb5afd38548c631f6f9536846039ef6cb297b9
/_MY_ORGS/Web-Dev-Collaborative/blog-research/ciriculumn/week.18-/W18D2_lectures/08-posts/app/routes.py
91d6b5ace00c8f67a076bc546d9f4e510c7630de
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
809
py
from flask import render_template, redirect from app import app from app.forms.login import LoginForm @app.route('/') def index(): return render_template('page.html', title='Welcome') @app.route('/login', methods=['GET', 'POST']) def login(): form = LoginForm() if form.validate_on_submit(): retu...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
4da542b4aab2647d2231056c2fc19bba3a9d9e8f
b0cbfcd14bedb859794c5b290eefc8b451e05acb
/test.spec
eb77bf7d60ef956d01e2c74a7409be5fa6802be3
[]
no_license
wangjiwang/QtDesign
144e08ed0c3affa5a4763af59e8cad015c9e5054
4480df0c59af3baef20022ffacf62be292706c09
refs/heads/master
2020-11-24T13:42:52.208797
2019-12-15T11:37:53
2019-12-15T11:37:53
228,174,217
0
0
null
null
null
null
UTF-8
Python
false
false
853
spec
# -*- mode: python ; coding: utf-8 -*- block_cipher = None a = Analysis(['test.py'], pathex=['G:/wjw', 'G:\\python\\QtDesign'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hooks=[], excludes=[], ...
[ "a24337111abd11" ]
a24337111abd11
02f9fb6821ca44f99f522c391849f128d0979395
5d86904b1858d91148f0880d5496223aec0cf2dd
/test_stubs/headunit-v2-buttondemo.py
bb41b7617d4ff6a0148dd001b3bc600116df8ea6
[]
no_license
Grimmish/tdb2k
ca69b1e5fae265f0f4a2ef6d46b85a1418b71c51
42e87f24b0da31b61f4f14a98d1a51d8ae3cfe0a
refs/heads/master
2020-04-02T03:24:35.985993
2019-10-06T22:55:41
2019-10-06T22:55:41
153,964,096
0
0
null
2019-09-15T15:44:17
2018-10-21T01:46:29
C++
UTF-8
Python
false
false
975
py
#!/usr/bin/python import sys import time from bens_rf24 import bens_rf24 from rf24_headunit import rf24_headunit radio = bens_rf24(addr=0xE0E0E0E0E0, debug=False) radio.set_rx_pipeline(chan=0, enable=1, addr=0xE0E0E0E0E0) headunit = rf24_headunit(radio=radio, addr=0xE1E1E1E1E1) headunit.radio.set_rx_mode() # Not rea...
[ "noreply@github.com" ]
noreply@github.com
eb439ef5321ace82cb57ceda8a14ba4f5978f5b8
52508ce70294ec29f84c9e551d8b92a7b402913d
/anyflow/flow.py
647b6d25ed535d940110f411ddcc5ba175e061f2
[ "MIT" ]
permissive
Cologler/anyflow-python
0f18003a39cb645c24aa5549df4ee39173977fff
cde20b0c74faf18cb7dc503072d4c2f99d5681de
refs/heads/master
2021-07-30T15:12:19.478682
2021-07-29T14:08:22
2021-07-29T14:08:22
241,824,800
0
0
MIT
2021-07-29T14:08:22
2020-02-20T07:53:25
Python
UTF-8
Python
false
false
2,957
py
# -*- coding: utf-8 -*- # # Copyright (c) 2020~2999 - Cologler <skyoflw@gmail.com> # ---------- # # ---------- from typing import Callable, Any, List from abc import ABC, abstractmethod from .err import Abort from .ctx import FlowContext #Next = Callable[[], Any] class MiddlewareInvoker: __slots__ = ('_ctx', '...
[ "skyoflw@gmail.com" ]
skyoflw@gmail.com
f219a8dca76e8992ab90c17d8177628b7f9c7f7b
a9e871324db2d87cad0f2a736bd5acd622b639a5
/aes-based/fitness.py
6e8088f5210ff2ada5b2afbacfedcdd1f74fe41b
[]
no_license
ivicanikolicsg/metaheuristics
c053f67be6440697cedb64d6a732dcf8dfa0c220
658907e4c1b78d91a6f90e7971bc2d94400de03e
refs/heads/master
2021-08-31T05:41:13.885098
2017-12-20T12:34:43
2017-12-20T12:34:43
114,865,822
2
0
null
null
null
null
UTF-8
Python
false
false
3,925
py
# Author: Ivica Nikolic (cube444@gmail.com) from gurobipy import * import random, copy from parameters import params from fitness_milpaes import * ############################################ # MILP parameters for the fitness function implemented in gurobi. # OUTPUT_GUROBI can be set to output the gurobi output. ...
[ "iceman@r-163-123-25-172.comp.nus.edu.sg" ]
iceman@r-163-123-25-172.comp.nus.edu.sg
e1ad09bf5d5b998196daedaaebd795995c4cb01a
a5cfa656caa38ccdb0661a8633502aae5ff352d3
/definic/definic/possys/classes/backstage/inventory.py
1d01351067fbd5e50d1379f28c7f222437417dd9
[]
no_license
hueie/definic
b4a7cc620ce06aa1e60c26f5d65b7b2ce37d707b
926598a11be21746b30ac8015bd0fc3c4e0f087e
refs/heads/master
2020-12-30T23:47:52.368121
2017-05-18T07:41:47
2017-05-18T07:41:47
80,578,022
1
0
null
null
null
null
UTF-8
Python
false
false
3,163
py
# -*- coding: utf-8 -*- import sys,os ''' sys.path.append((os.path.sep).join( os.getcwd().split(os.path.sep)[0:-1])) from common.dbhandler import DBHandler ''' from ..common.dbhandler import DBHandler from ..common.commonutil import CommonUtil import datetime import pandas as pd class Inventory: def __i...
[ "kait@kait-PC" ]
kait@kait-PC
c3973679874c6bcb06a9d97d54f6965242f7ef53
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_143/388.py
2c19f330a95780da7bb74471727f3b492214bb28
[]
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
636
py
import math def solve(a, b, k): count = 0 i = 0 while i < a: j = 0 while j < b: if (i & j) < k: count += 1 j += 1 i += 1 return count name = "B-small-attempt0" fi = open(name + ".in", "r") fout = open(name + ".out", "w") numTestCases = int(fi.readline()) print "#TestCas...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
35440d203bf4710c94c9611765f2972097cb0802
7857b646da831f11059e9244b4f848f9ca541ccd
/tensorflow_save_restore_variable.py
9297ccfeac0b39fb5c70f41ffcf714ed4db68276
[]
no_license
gwlzhf/lhc_learning
259622b7781c59384aba5f74f980ff1b5cb70c1a
8476cfc01b58d96202ad6d12117aea1826e0f1c8
refs/heads/master
2021-06-06T01:12:55.676465
2020-01-07T07:45:24
2020-01-07T07:45:24
81,399,055
0
0
null
null
null
null
UTF-8
Python
false
false
1,314
py
import tensorflow as tf ''' #Creat some varuable v1 = tf.get_variable("v1",shape=[3],initializer = tf.zeros_initializer) v2 = tf.get_variable("v2",shape=[5],initializer = tf.zeros_initializer) inc_v1 = v1.assign(v1+1) dec_v2 = v2.assign(v2-1) #Add an op to initialize the variable init_op = tf.global_variables_initial...
[ "chencd520@gmail.com" ]
chencd520@gmail.com
df878a5c3cc3aceb24500b864616b1cae36bd549
73bc927ae90563974cf72890ae8684d4ef6e09ac
/extract.py
795b9031e39178494c4ea916744b7f8b1cb05a3b
[ "Apache-2.0" ]
permissive
InvokerLiu/DenseNet-Tensorflow
912f5b0a02b1121240b580ac3b5c8e59caed40ff
8e171eb3f14a46cc68cdebd3d4db92b1376af698
refs/heads/master
2020-05-19T19:43:30.329584
2019-05-09T07:04:07
2019-05-09T07:04:07
185,186,982
2
0
null
null
null
null
UTF-8
Python
false
false
1,738
py
#! /usr/bin/env python3 # coding=utf-8 # ================================================================ # # Editor : PyCharm # File name : extract.py # Author : LiuBo # Created date: 2019-05-09 09:52 # Description : # # ================================================================...
[ "noreply@github.com" ]
noreply@github.com
11d0cd4a97ec3088ce6ea22bcde16728a52f69b2
90519d2dbf8d1132b1b5cd42c041a18b1d1405b2
/task1/sales.py
a3b1beecf88f09d9a3e6945dc7b81e6f0feea71f
[]
no_license
RivalLogorithm/shopx
4391b4714ddcf090b4122e911a91d2bae9a7bbc4
558edea6049359b63fe0efa019370cedd6ab6214
refs/heads/main
2023-03-04T03:14:27.580466
2021-02-17T16:37:47
2021-02-17T16:37:47
339,390,594
0
0
null
null
null
null
UTF-8
Python
false
false
645
py
import random class Sale: def __init__(self): self.sale = 0 def __get__(self, instance, owner): if 0 < instance.points < 100: self.sale = 0.01 elif 100 <= instance.points < 200: self.sale = 0.03 elif 200 <= instance.points < 500: self.sale =...
[ "sharshatov99@mail.ru" ]
sharshatov99@mail.ru
1f072c221a7339282e310371d4855ddbc391c020
e9ee62bfb91ef646af8aae63048af0eff53e8df4
/tools/create_block_bps.py
51e24d34814469f0f9b6bf344bd5827bc5ce8f38
[]
no_license
enenra/aqdse
869d32e2f4650d5a759aa466c9fcc6224a7b95af
3bbc93d3ef31927a1685f59bb17552d1a87e97c2
refs/heads/master
2023-08-05T22:17:42.918673
2023-07-22T08:05:33
2023-07-22T08:05:33
143,330,299
14
4
null
null
null
null
UTF-8
Python
false
false
1,871
py
import os import xml.etree.ElementTree as ET import xml.dom.minidom def main(): blocks = [] files = [] src = os.path.join(os.path.dirname(__file__), 'Data') for r, d, f in os.walk(src): for file in f: if '.sbc' in file: files.append(os.path.join(r, file)) fo...
[ "enenra9@gmail.com" ]
enenra9@gmail.com
7802de979825f36c48ce9a8e2ca81d2e8c4362d3
de8b39b99d257655cd0a19a59980b188e1212c72
/bichoMineiroOld/train.py
4da8fa6a664d7c607c4f85867af0f8731b6a7024
[]
no_license
gabrielvasco/bichoMineiroUsingTensorFlow
2dfa398417469e209d8a7a99cb8a116848a51808
7c7009e72361b34a3678a77eaaf0d80b3952bdeb
refs/heads/master
2020-05-17T01:42:21.972884
2019-05-31T11:42:50
2019-05-31T11:42:50
183,418,223
0
0
null
null
null
null
UTF-8
Python
false
false
6,339
py
# -*- coding: utf-8 -*- """ Created on Mon Mar 12 22:13:54 2018 @author: v3n0w """ import tensorflow as tf import glob import imageio import numpy as np ImagesTrain = glob.glob('SamplesTestView/Train/Images/*.png') LabelsTrain = glob.glob('SamplesTestView/Train/Labels/*.png') ImagesVal = glob.glob('SamplesTestView...
[ "gabrielvasconcelos1996@hotmail.com" ]
gabrielvasconcelos1996@hotmail.com
dc2c02201077734f0940b49833f87a4ddfed5f94
5a5752d756aceadf85eb351aabcd9da8ed6eabe6
/Django-4/Learn_url_templates/Learn_url_templates/wsgi.py
70c05c31ed85981d1a35ff553316ce505d9961af
[]
no_license
Shruti-2303/Django
8a7c2e7db4f4b97d0e292d51cbe3b1743343f6b7
efc713baf4caa614745a402e3c8b7906f6237ebb
refs/heads/master
2023-06-01T05:03:53.952498
2021-07-08T05:24:12
2021-07-08T05:24:12
384,010,527
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
""" WSGI config for Learn_url_templates project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('...
[ "sharmas23032001@gmail.com" ]
sharmas23032001@gmail.com
e4c272e583fe74fb6f44730d1592da92bcf8070e
9c713425498c8366c47c3a4ce1a50c791c24572f
/src/controller/python/chip/clusters/CHIPClusters.py
9c255daabb6ebae42433f892387b6697bde79631
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
krzysztofziobro/connectedhomeip
d17a754c88bf9a4703baf1bef222e34327042139
f07ff95183d33af17bc833c92c64e7409c6fd2eb
refs/heads/master
2023-07-17T22:46:22.035503
2021-08-28T16:08:30
2021-08-28T16:08:30
385,177,354
0
0
Apache-2.0
2021-07-12T11:39:14
2021-07-12T08:28:33
null
UTF-8
Python
false
false
487,956
py
''' /* * * Copyright (c) 2021 Project CHIP 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 re...
[ "noreply@github.com" ]
noreply@github.com
71744ddfa4f910716c940e05d0a8b2493004e164
ecb44a36763cb82b8c02760312418e23da8bc8f1
/test_crop.py
fec9c5b6b533744296acc8119453b37bf0192445
[]
no_license
johanubbink/photobooth
3e32c355292c091f845031e2edb8923397824001
3b864a5ed3baa7cb50e59c8ba2b999bbb24ac2c8
refs/heads/master
2020-12-04T04:42:27.117421
2020-01-09T22:10:40
2020-01-09T22:10:40
231,616,462
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
import glob import os from PIL import Image def get_last_photo(): ''' Method to get the most recent file in the directory and add the file ''' list_of_files = glob.glob('images/*') # * means all if need specific format then *.csv latest_file = max(list_of_files, key=os.path.getctime) return ...
[ "johan.ubbink@gmail.com" ]
johan.ubbink@gmail.com
6b9eff8db477ad75b5041e4d195e0bb41ba74e3d
62137b1e8b6b24d14ff926ee4d4beecd5817e29c
/file_0.py
5d4ee1c3d609dd3678f4ddb2f93111f7d8b119e0
[]
no_license
tionuriam/newproject
2cedae322e408c630e549961b34fe29fe83a6f39
bfd24286f2e135f49044ad30e139d5cb1d1a683b
refs/heads/master
2020-09-14T18:54:22.525636
2019-11-21T17:10:04
2019-11-21T17:10:04
223,220,347
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
print("Oops, I thin I broke the code!")
[ "turiam@gmail.com" ]
turiam@gmail.com
fb5c537766a3e918f1f2f4ff412eab23e1d498b5
3f5a02a26b49da58b93f515852fadff971877a11
/run_one.py
87a9da5efc9d6a9a396e648ffaf6cb821c654eac
[ "MIT" ]
permissive
karthikbharath/Trees_DyckPaths
6c5b612754bff5fc16f142eb04cad02330837759
6fc9b5e603aa8bb89cb68964a06d3992f32085a7
refs/heads/master
2020-12-02T16:22:06.429165
2017-07-07T13:29:33
2017-07-07T13:29:33
96,541,142
0
0
null
null
null
null
UTF-8
Python
false
false
4,718
py
#!/usr/bin/env python # # Author: Anju Kambadur # Please run as follows: # ./run_one.py -n 1,2,3 4 -d <distribution> ... # # For help please see: # ./run_one.py -h # import os import sys import re from optparse import OptionParser def nodes_callback(option, opt, value, parser): setattr(parser.values, option.dest, r...
[ "noreply@github.com" ]
noreply@github.com
0044513fd1762c1decd4fc3f514cf241c31cae25
ebe9ecfbace948bf93e79264db489dd5809e0e5b
/Libreria/ProyectoLibreria/gestion/urls.py
630ed62adb6f69decd548595440307c58217b138
[]
no_license
hariasfrancia/Backend-Tecsup
13f6faaa519ddc482f997344ddee0a09a81e5ecb
b58f8e81699cd5df3ded3d41c0b7c3fe007d8db4
refs/heads/master
2023-04-15T00:11:27.002893
2021-04-18T04:50:30
2021-04-18T04:50:30
356,749,480
0
0
null
null
null
null
UTF-8
Python
false
false
297
py
from django.urls import path from .views import ListarCategoriaController, CRUDCategoriaController # !Esta variable se tiene quellamar SI o SI así: urlpatterns = [ path('categorias', ListarCategoriaController.as_view()), path('categorias/<int:pk>', CRUDCategoriaController.as_view()), ]
[ "hariasfrancia@gmail.com" ]
hariasfrancia@gmail.com
8193114cc129b134848750940aebc211652c5404
92cdb5dd1fd6269755edbcb8129f698fd11d462a
/test/udb_integration_test/tests/test_dap_commands.py
c401abc2bd5ff56c5548762f6e45b28489e6dc84
[ "Apache-2.0" ]
permissive
google/DAPLink-port
fb5314a2c64955dba48296329ec159a2839678ec
3f6a45f653fb93ae8f8d63261871548a2eb75090
refs/heads/master_udb
2023-06-28T16:53:14.377760
2022-06-27T05:56:22
2022-06-27T05:56:22
280,530,485
15
12
Apache-2.0
2022-06-06T07:11:25
2020-07-17T21:43:46
C
UTF-8
Python
false
false
1,010
py
#!/usr/bin/env python from typing import ClassVar, Generator from udb_dap_device import UDBDapTestDevice from udb_test_helper import ContextTest from pyocd.probe.pydapaccess.cmsis_dap_core import Capabilities import logging logger = logging.getLogger("test.udb_integration_test") class DAPCommandTest(ContextTest): ...
[ "gaborcsapo@google.com" ]
gaborcsapo@google.com
f27cadf13a59eadb627295a3c642e84f8e57ccb1
3c000380cbb7e8deb6abf9c6f3e29e8e89784830
/venv/Lib/site-packages/cobra/modelimpl/cloud/hostrouteringressbytes15min.py
cc28259373b4b2613646e12c80ac99530e16d402
[]
no_license
bkhoward/aciDOM
91b0406f00da7aac413a81c8db2129b4bfc5497b
f2674456ecb19cf7299ef0c5a0887560b8b315d0
refs/heads/master
2023-03-27T23:37:02.836904
2021-03-26T22:07:54
2021-03-26T22:07:54
351,855,399
0
0
null
null
null
null
UTF-8
Python
false
false
14,198
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
[ "bkhoward@live.com" ]
bkhoward@live.com
6893693708dcaae0837dab91099dc9787226403e
bb7c7a1556c6a27799876b7a5440a98d530a3996
/phonebook/book/migrations/0001_initial.py
cce593943ba889b19ce6365ca15f3058be9959fc
[]
no_license
alff0x1f/phonebook_npf
e332b958c7640c2fcbf5099d721e40fad34a57c5
cdee4c6cb7e845832044303afbe0382c1ca0dfcd
refs/heads/master
2020-09-28T14:28:46.454548
2019-12-09T06:10:48
2019-12-09T06:10:48
226,796,513
0
0
null
null
null
null
UTF-8
Python
false
false
611
py
# Generated by Django 3.0 on 2019-12-09 03:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='PhoneRecord', fields=[ ('id', models.AutoFiel...
[ "alff0x1f@gmail.com" ]
alff0x1f@gmail.com
17480f6f7565ee7617480674a2fadf166e70810a
1f8a47641cb1c987f70dd7cf502d49e07ded52af
/backend/hss/hss/wsgi.py
1de8e14bb33a901652171821ff9561d31b1a8d19
[]
no_license
do-park/shawcheckredemption
0fda66e3c1958b1ea27258de2da51b6bb9ce92ef
8267e4d4ce4e815600bb4c21f7df878c8807d645
refs/heads/ft_front
2023-01-19T16:58:44.680144
2020-11-26T08:02:21
2020-11-26T08:02:21
316,159,702
1
1
null
2020-11-26T08:02:22
2020-11-26T07:55:14
null
UTF-8
Python
false
false
383
py
""" WSGI config for hss project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTINGS_...
[ "gjtjdtn201@naver.com" ]
gjtjdtn201@naver.com
058d1285a53dbb0187d01cf1e58b809a202f32ac
a666728ea849cc385e4e487d4f5598d44ad67cf7
/activitytracker/trackerapp/migrations/0007_auto_20190806_1914.py
694012347199613163deed5500d32a7d169188f5
[]
no_license
laurenmit/ActivityTracker
051be5a682723a3c26878732cc8e505fc908527f
3a6154741b9d5f7e7c1c692f604c5d4e9319be87
refs/heads/master
2021-02-16T04:01:27.645009
2020-03-04T17:35:02
2020-03-04T17:35:02
244,964,045
0
0
null
null
null
null
UTF-8
Python
false
false
1,259
py
# Generated by Django 2.2.3 on 2019-08-06 19:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trackerapp', '0006_auto_20190805_1820'), ] operations = [ migrations.AlterField( model_name='totals', name='bike_tim...
[ "laurenmit98@bitbucket.org" ]
laurenmit98@bitbucket.org
00a0207b66df98957fc27da9b7e1e9cd662daa42
004b3ad85e2c18cc0b946936396e9266a6417430
/ssh-config.py
3310b5bc1fbb42306e317be18feaec8f31b10f1a
[]
no_license
Anyass3/dmt-rpi-setup-script
79f9daa49cda71a92966f3ce48956404e1437b1e
081c2f3c6163478b0783e617ab47ef84ed676724
refs/heads/main
2023-08-30T19:38:16.834983
2021-10-28T10:51:11
2021-10-28T10:51:11
421,994,233
1
0
null
null
null
null
UTF-8
Python
false
false
273
py
import re with open('/etc/ssh/sshd_config') as f: content=f.read() content = re.sub(r'#PermitRootLogin.*\n','PermitRootLogin Yes\n' , content) content = re.sub(r'#UseDNS no','UseDNS no' , content) with open('/etc/ssh/sshd_config','w') as f: f.write(content)
[ "nyassabu@gmail.com" ]
nyassabu@gmail.com
3537db0ac3bc3368f969f3f8da94e081e8a6460e
d015039e1c070832d29898057bac90074e6cdf38
/week2/day4_NumPy_SciPy/SciPy_1.py
91677ec190374e17b0ddd28dccef76caa4a06d67
[]
no_license
aikolesnikov/ptn_summer_school
f13955c0634d890cf1cfbbec502f9d58d1ca659b
00c05fd1fdd86ccdba3c4fbd0101eb0196439808
refs/heads/master
2020-12-02T22:08:14.268572
2017-07-14T09:56:04
2017-07-14T09:56:04
96,089,867
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
import numpy as np import scipy.interpolate from scipy.interpolate import interp1d import matplotlib.pyplot as plt x = np.linspace(0, 10, 20) y = np.sin(x) f = interp1d(x, y) f1 = interp1d(x, y) print(np.sin(5)) print(f(5)) plt.plot(x, f(x), '-', f1(x), '--') #plt.show() from scipy.stats import describe print(descr...
[ "artyom.kolesnikov@gmail.com" ]
artyom.kolesnikov@gmail.com
4857b7a788d7da057eb001f79e36abae96642ea4
0200c3abfaa0e19525dc8f278656ffc9f97b68ca
/FullDbAllChildFst.py
5b3f3c78bc3183f3f8ef53f750caf3f67ce2cab1
[]
no_license
eugenio-santos/rootanalysis
61f795cb07192144d7a6309ca0d75fde83c86dbe
14cd26c20f575d7690e101cac6f9167979b9e1b1
refs/heads/main
2023-06-03T07:43:48.988706
2021-06-20T16:23:21
2021-06-20T16:23:21
363,212,785
0
0
null
null
null
null
UTF-8
Python
false
false
2,720
py
import mariadb import sys import timeit countAnalysis = 0 # Connect to MariaDB Platform try: conn = mariadb.connect( user="root", password="root", host="127.0.0.1", port=3306, database="proj" ) except mariadb.Error as e: print(f"Error connecting to M...
[ "noreply@github.com" ]
noreply@github.com
8f2e7f337f5f3d2ac233ffb167e4bd14350407c6
c9cb1b6391c290ef33d56f455ab6abbea5ea194a
/day11.py
3e0a20dac995979cfe19dfad17a8d8d4f4d17a68
[]
no_license
matthenschke/30-Days-of-Code-HackerRank
5b6fbc5a9394a88aa7f87b6898fcf4f97f947a2a
78f11ff81a178c7e611f7aefa2e091f5b64a85a1
refs/heads/master
2021-01-03T22:55:47.141800
2020-02-20T19:15:22
2020-02-20T19:15:22
240,270,365
0
0
null
null
null
null
UTF-8
Python
false
false
519
py
#!/bin/python3 import math import os import random import re import sys if __name__ == '__main__': arr = [] for _ in range(6): arr.append(list(map(int, input().rstrip().split()))) hour_glass_sums = [] for i in range(len(arr) - 2): for j in range(len(arr[i]) - 2): current...
[ "matthewhenschke98@gmail.com" ]
matthewhenschke98@gmail.com
360f05627dbd8c4159b54eca942d4974b63531c4
13a39681376455c8f47d40084a64265c6bc71d65
/K 均值聚类/ConvexHull.py
6dbd72b55373d3da7449f5b2c7d97770146be4a1
[]
no_license
Jonathan-Jiang/Algorithm
f85bbef96c82861f26d0383ef069761f40b125de
5dc6af8d7854d3ea2ad60237bcc1f21652c728fa
refs/heads/master
2021-05-28T11:40:19.002992
2015-01-07T06:34:34
2015-01-07T06:34:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,837
py
# -*- coding: utf-8 -*- import pygame from pygame.locals import * from random import randint as rand # ======================================== # GrahamScan algorithm def Top(stack): return stack[0] def NextToTop(stack): return stack[1] def Push(p, stack): stack.insert(0, p) def Pop(stack): return s...
[ "daishengdong@gmail.com" ]
daishengdong@gmail.com
147eafbcdb47571b8ec157075995bcb513a53efa
f167dffa2f767a0419aa82bf434852069a8baeb8
/lib/youtube_dl/extractor/kankan.py
a677ff44712794ef54f53a1afe9c55fbacad91e2
[ "MIT" ]
permissive
firsttris/plugin.video.sendtokodi
d634490b55149adfdcb62c1af1eb77568b8da3f5
1095c58e2bc21de4ab6fcb67a70e4f0f04febbc3
refs/heads/master
2023-08-18T10:10:39.544848
2023-08-15T17:06:44
2023-08-15T17:06:44
84,665,460
111
31
MIT
2022-11-11T08:05:21
2017-03-11T16:53:06
Python
UTF-8
Python
false
false
1,738
py
from __future__ import unicode_literals import re import hashlib from .common import InfoExtractor _md5 = lambda s: hashlib.md5(s.encode('utf-8')).hexdigest() class KankanIE(InfoExtractor): _VALID_URL = r'https?://(?:.*?\.)?kankan\.com/.+?/(?P<id>\d+)\.shtml' _TEST = { 'url': 'http://yinyue.kankan...
[ "noreply@github.com" ]
noreply@github.com
79c9226a1b3d3e20c7a138186c0d1034328a52c2
d6004043924c8aa7640d00a83bb3fa11e789cb30
/tools/prepare_data.py
f974c36eb82e3fb9bdcf34f6be01e36987bd7fc8
[]
no_license
dongzhi0312/can-dta
8dc63d4f76fe1c18acec7e4d55abc62da0ed3c58
4ba5c83eac14437cfdc7d1e8cd9840ffbd9627ad
refs/heads/master
2023-02-03T21:49:58.927039
2020-12-17T02:38:23
2020-12-17T02:38:23
319,578,430
0
0
null
null
null
null
UTF-8
Python
false
false
7,789
py
import os import data.utils as data_utils from data.custom_dataset_dataloader import CustomDatasetDataLoader from data.class_aware_dataset_dataloader import ClassAwareDataLoader from config.config import cfg def prepare_data_CAN(): # 转换操作的一些配置 dataloaders = {} train_transform = data_utils.get_transform(Tr...
[ "zhangzhidong0312@163.com" ]
zhangzhidong0312@163.com
bdd0760e8844fd6ba461b3318c1347dc4022acd9
b090cb9bc30ac595675d8aa253fde95aef2ce5ea
/trunk/test/NightlyRun/test405.py
4234b88e576ef0f06697b7c02f12c1d1579361dc
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
eyhl/issm
5ae1500715c258d7988e2ef344c5c1fd15be55f7
1013e74c28ed663ebb8c9d398d9be0964d002667
refs/heads/master
2022-01-05T14:31:23.235538
2019-01-15T13:13:08
2019-01-15T13:13:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
931
py
#Test Name: SquareSheetShelfStressMHOPenalties import numpy as np from model import * from socket import gethostname from triangle import * from setmask import * from parameterize import * from setflowequation import * from solve import * md=triangle(model(),'../Exp/Square.exp',180000.) md=setmask(md,'../Exp/SquareSh...
[ "cummings.evan@gmail.com" ]
cummings.evan@gmail.com
16171d2537690ba28373d9cd75ca453d9866e78b
1cfed68681ff666e853693f7bcb69ed6aee57765
/sensation_save.py
a52999091dc6009d97be3f0fe4b6cbe7b408d30a
[ "MIT" ]
permissive
HLTCHKUST/sensational_headline
dd323a99963d2b9bd2e3aaf3cb52b9109fc2e336
ec024b8c562edd8205847782a675f14feac2836f
refs/heads/master
2022-06-26T16:48:26.612197
2022-04-14T07:51:01
2022-04-14T07:51:01
202,470,204
26
13
null
2022-06-21T23:43:37
2019-08-15T03:49:17
Python
UTF-8
Python
false
false
17,941
py
import numpy as np import logging from tqdm import tqdm from utils.config import * from utils.utils_sensation_lcsts import * from torch.nn.utils import clip_grad_norm # from seq2seq.vanilla_seq2seq import * # from seq2seq.attn_seq2seq import * from seq2seq.sensation_get_to_the_point import * from seq2seq.sensation_scor...
[ "pxuab@connect.ust.hk" ]
pxuab@connect.ust.hk
2776ac741886e88c41c59c9ca2db59a6f2ca88c3
a762fd9b180d9e105e81102af0cc32c2c5f25548
/new_currentdirectory.py
fe2763abca62b05fb91793bf6a59e09928a5b000
[]
no_license
codergirlstl/python
ef595f506f57b026217ac0afcdedd95b6a6bfa42
04b0f8443927aba9885cf572a28a4ff73366b4e2
refs/heads/master
2023-04-26T13:56:45.058960
2021-05-19T19:37:11
2021-05-19T19:37:11
368,584,947
0
0
null
null
null
null
UTF-8
Python
false
false
325
py
import os import os.path directory_path = os.getcwd() print("My current directory is : " + directory_path) folder_name = os.path.basename(directory_path) print("My directory name is : " + folder_name) print("The files listed under "+ folder_name + " are: ") directory_files=os.listdir(directory_path) print(directory_fi...
[ "sheilamarierabbitt@gmail.com" ]
sheilamarierabbitt@gmail.com
7daa835842061d066ec5f159c6f827c6e69c52b8
00ee3993b42d749aff6cb0638be8734e9c3b083f
/mysite02/article/models.py
776380f0bda3d098e978eb357e6b39ec849effac
[]
no_license
wfshhebau/blogsite
9015ed61bf72f3e2d7ccb95ec177c5f19830a063
cfa6c7a374bece19ef1e5f1c0c5a4087c46fe313
refs/heads/master
2022-11-06T11:48:31.905594
2020-06-24T11:23:35
2020-06-24T11:23:35
272,388,702
0
0
null
null
null
null
UTF-8
Python
false
false
2,828
py
from django.db import models from django.contrib.auth.models import User # Create your models here. class ArticleColumn(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='article_column') column = models.CharField(max_length=200) created = models.DateTimeField(auto_now_ad...
[ "wangfushun1981@163.com" ]
wangfushun1981@163.com
21948ad727a97b0a4236089fde5ba20a01fa586f
d050dde2ae69ef0660180fb4f98a54c308017d19
/app/wikis/tests/test_models.py
75f5e76049ae004e67e905f6658901f766d70fa9
[]
no_license
MasterTeamFTN/uks
1ffd3c3531743da79c54fdb6d763efa54889afc3
f3e5b001b29a578da3429e1e57f2cb9542d3ee7a
refs/heads/main
2023-03-09T22:29:05.614544
2021-02-19T23:09:58
2021-02-19T23:09:58
324,634,414
0
0
null
2021-02-19T23:09:59
2020-12-26T21:00:24
Python
UTF-8
Python
false
false
846
py
from django.test import TestCase, Client from django.contrib.auth.models import User from ..models import Wiki, WikiVersion from ...projects.models import Project WIKI_PAGE_NAME = 'Wiki home page' class TestWikiModels(TestCase): def test(self): self.assertEquals(1, 1) # TODO: Implement this ...
[ "b.sulicenko@gmail.com" ]
b.sulicenko@gmail.com