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
1cd7578ae2c49e8fc2d355e4c3815d9c7ca0f211
384efc85a7845caa10c1090c80243a9a29215d8a
/02_RE_Objects_Methods/05_findall.py
b7b39951a5c4adbf13b0a3637478ed0cd36154dd
[]
no_license
Do-code-ing/Python_Module_RE
032754e8c5b9e619d83602bdff4b91747b419b21
01bdd0202fdc7040971f3132d4cbbbde11175bb9
refs/heads/master
2023-06-02T22:32:37.543180
2021-06-20T05:07:34
2021-06-20T05:07:34
358,269,215
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
# Pattern.findall(string[, pos[, endpos]]) # findall() ํ•จ์ˆ˜์™€ ์œ ์‚ฌํ•œ๋ฐ, ์ปดํŒŒ์ผ๋œ ํŒจํ„ด์„ ์‚ฌ์šฉํ•œ๋‹ค. # ํ•˜์ง€๋งŒ search() ์ฒ˜๋Ÿผ ๊ฒ€์ƒ‰ ์˜์—ญ์„ ์ œํ•œํ•˜๋Š” ์„ ํƒ์  pos์™€ endpos ๋งค๊ฐœ ๋ณ€์ˆ˜๋„ ๋ฐ›์•„๋“ค์ธ๋‹ค. import re p = re.compile("a") print(p.findall("abcabc")) # ['a', 'a']
90ce63a11f08d9fa3007f7ad5fc753a346e978e4
88c5045676e32eb7ca1a40d8a4379c7c83f6faca
/tests/trinity/integration/test_plugin_discovery.py
b462334b35106f5d31d7acd6159c76f62dfeba05
[ "MIT" ]
permissive
cd4761/ecc-trinity
9983a4f29c9262293379ff03931e652b00f398a3
ed27c5c8bc2b94b796e74f271594f138c2aa5b36
refs/heads/master
2020-06-23T21:23:50.829092
2019-07-29T10:45:20
2019-07-29T10:45:20
198,756,315
1
0
null
null
null
null
UTF-8
Python
false
false
438
py
from trinity.plugins.registry import ( discover_plugins ) # This plugin is external to this code base and installed by tox # In order to install it locally run: # pip install -e trinity-external-plugins/examples/peer_count_reporter from peer_count_reporter_plugin import PeerCountReporterPlugin def test_plugin_dis...
3ebf29cec10ec32a1feaddd87586c0b85af2e132
90cea58e80309d2dff88f73f3a43ed5f943ff97d
/MaxSubArray.py
aa062ccb2dac884a1a93196e6e3675cdc0c47d68
[]
no_license
SaiSujithReddy/CodePython
0b65c82b0e71dba2bbd4c1aefec4e6cd6fd42341
4c05b7909092009afffa4536fd284060d20e462d
refs/heads/master
2022-02-24T09:21:15.284745
2019-10-07T23:36:17
2019-10-07T23:36:17
106,611,251
0
0
null
null
null
null
UTF-8
Python
false
false
683
py
import sys def max_sub_array(array): max_sum = -sys.maxsize - 1 temp_sum = 0 for x in range(len(array)): print("entered for loop") if array[x] >= 0: temp_sum += array[x] if temp_sum > max_sum: max_sum = temp_sum else: temp_sum +=...
f9d3e18d03b7ad0e4bff8ac8ad3eda798bb6f2e8
5d6365f4cc81272f8c481ee31f1111e8eca6dca5
/alipay/aop/api/domain/AlipayCommerceOperationPromoterRankingQueryModel.py
f9cf8ced33270bccfe1a08deb642d7a7987eeba1
[ "Apache-2.0" ]
permissive
barrybbb/alipay-sdk-python-all
9e99b56138e6ca9c0b236707c79899d396ac6f88
1b63620431d982d30d39ee0adc4b92463cbcee3c
refs/heads/master
2023-08-22T20:16:17.242701
2021-10-11T08:22:44
2021-10-11T08:22:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,711
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayCommerceOperationPromoterRankingQueryModel(object): def __init__(self): self._pid = None self._type = None self._user_id = None @property def pid(self): ...
a40f3a2fe76ca92d94c31c07ec545abcd156d9e2
bd696223aaf5404987df11832b4c17c916b9690f
/nlp_sample/fugashi_generic_tagger_sample/main.py
575cf1bca8948151845f4b8df85265ae91a5b162
[]
no_license
wararaki718/scrapbox3
000a285477f25c1e8a4b6017b6ad06c76f173342
9be5dc879a33a1988d9f6611307c499eec125dc2
refs/heads/master
2023-06-16T08:46:32.879231
2021-07-17T14:12:54
2021-07-17T14:12:54
280,590,887
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
from fugashi import Tagger, GenericTagger def main(): text = 'softbank' tagger = Tagger() gtagger = GenericTagger() print('Tagger:') print(tagger.parse(text)) for word in tagger(text): print(word.surface) print(word.feature) print() print('GenericTagger:') print(g...
8fee0875e9f03699c64938e05824c350f5061964
b9c7c3433675278dcbd6e52056a299ccd2a2a122
/sword/match.py
e41aa854102ee47f79dadfacd3c8871d0e16ec4b
[]
no_license
smileshy777/practice
3d6b8412138c94e75810298bc2dcde52d374826b
a0bc7d7fb9fe2db958c3ee2671df927ce136ecff
refs/heads/master
2020-03-31T15:44:45.868628
2018-11-29T05:08:02
2018-11-29T05:08:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
694
py
class Solution: # s, pattern้ƒฝๆ˜ฏๅญ—็ฌฆไธฒ def match(self, s, pattern): len_s = len(s) len_p = len(pattern) if len_s == 0 and len_p == 0: return True if len_s > 0 and len_p == 0: return False if len_p > 1 and pattern[1] == '*': if len_s > 0 and...
790b229755e6c18385e27601143ce131475c697b
a1cd1135cd7bc3255e29632fe6c025cffd231285
/rpc/retrying.py
34ab31def9d6707643ec0c70eb3fa9ad7a504739
[]
no_license
liguopeng80/gcommon.py27
5f8d3ac9fe85c7134cfbb557ec06a61184b58fd1
900cd0717c7a9db90793752fd5cbf9a576286497
refs/heads/master
2023-08-11T16:01:16.566945
2021-10-10T07:08:54
2021-10-10T07:08:54
404,542,040
2
1
null
null
null
null
UTF-8
Python
false
false
3,579
py
#!/usr/bin/python # -*- coding: utf-8 -*- # created: 2015-05-19 """ๅฏนๅคฑ่ดฅ็š„ๆ“ไฝœ่ฟ›่กŒ้‡่ฏ• TODO: ไธบ RPC ่ฐƒ็”จๅขžๅŠ ่ถ…ๆ—ถๆฃ€ๆต‹ - ๅฝ“ rabbitmq ๆˆ–่€… rpc server ๅ‡บ็Žฐ้—ฎ้ข˜ๆ—ถ๏ผŒๅฎขๆˆท็ซฏไธ่ƒฝ้•ฟไน…็ญ‰ๅพ…ใ€‚ """ import time import logging from twisted.internet.defer import inlineCallbacks, maybeDeferred, returnValue from gcommon.rpc import RpcServerException from gcommon.utils.c...
fe3d52f03d805c065f4d5d608a4a3edca9d48773
739e19aea52a747a818ccaa1e941f11328ca9783
/PatternRecognitionPractice/opencv-python/opencv_test0.py
c32ce4c4f68f1071569db1fa4e71bb065257ddeb
[]
no_license
MoCuishle28/python-practice
d12edb4866361f55354da53875475f05c209254c
cc557fcdd3fec2cb67efeb1f875b4d7d9d85b5b4
refs/heads/master
2020-03-28T03:52:36.060049
2019-01-19T11:53:15
2019-01-19T11:53:15
147,677,371
0
0
null
null
null
null
UTF-8
Python
false
false
2,817
py
import cv2 as cv import numpy as np from matplotlib import pyplot as plt from sklearn.decomposition import PCA SZ=20 bin_n = 16 # Number of bins affine_flags = cv.WARP_INVERSE_MAP|cv.INTER_LINEAR # ไฝฟ็”จไบŒ้˜ถ็Ÿฉ็Ÿซๆญฃๅ›พๅƒ def deskew(img): m = cv.moments(img) if abs(m['mu02']) < 1e-2: return img.copy() skew = ...
e2f402bfc9e62ee0c6c90852bd8a66c383ce4be4
c09e0d3dd9105e131b5c9cc0c2076e7103263d9f
/bigiq/tests/unit/mock/procenv.py
5359764b2fe65685847374c18a884ad5ba39a9e9
[]
no_license
gundalow-collections/f5
693166aa8f270df37a763084d45d7f318b1c63e4
cdd14055c1615225e0050b6e7b47c38513bcd4c6
refs/heads/master
2020-07-24T05:51:08.722791
2019-09-16T20:11:07
2019-09-16T20:11:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,728
py
# (c) 2016, Matt Davis <[email protected]> # (c) 2016, Toshio Kuratomi <[email protected]> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of ...
5e33b27fa72491228a4057a288364b7805bb6d9e
a140fe192fd643ce556fa34bf2f84ddbdb97f091
/.history/์ž๋ฃŒ๊ตฌ์กฐ_20200628162237.py
fbca173ec511a428e941dea3044ae6928b57b31c
[]
no_license
sangha0719/py-practice
826f13cb422ef43992a69f822b9f04c2cb6d4815
6d71ce64bf91cc3bccee81378577d84ba9d9c121
refs/heads/master
2023-03-13T04:40:55.883279
2021-02-25T12:02:04
2021-02-25T12:02:04
342,230,484
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
# ์ž๋ฃŒ๊ตฌ์กฐ์˜ ๋ณ€๊ฒฝ # ์ปคํ”ผ์ˆ menu = {"์ปคํ”ผ", "์šฐ์œ ", "์ฃผ์Šค"} print(menu, type(menu)) menu = list(menu) print(menu, type(menu)) menu = tuple(menu) print(men)
3686c5bf4ae77bfa15f56b8cddff65549105c820
ded0c895f6e1f8853f2222ae498bdc7ae52ef0e4
/week-09/colori_quad.py
727580ef3a1faf286bfeb82c09060522fe57c161
[]
no_license
LorenzoLMP/TD2015
6a8846b4592b32db81338b8522a10a2dc52531c1
e39b51d48149d07c3cea682a02eeec4e69ffbabd
refs/heads/master
2021-01-17T14:47:20.378339
2016-05-31T11:33:50
2016-05-31T11:33:50
43,302,288
0
0
null
2015-09-28T13:58:46
2015-09-28T13:23:45
null
UTF-8
Python
false
false
4,251
py
from pylab import * from scipy import * from scipy import optimize from scipy import misc import math data = genfromtxt('col_mon_precisi_3.txt') coeff = genfromtxt('coeffic_matrix_315') xdata = data[:,0] ydata = data[:,1] cr = coeff[:,0] cg = coeff[:,1] cb = coeff[:,2] #zdata = sfasa #############################...
6bcffb1fb992aa4432f982b6faf84cacf761eb87
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2824/60891/284880.py
8c2661ffda0fed50b0e0e907e437fd1d941f63fa
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
500
py
n_t_c = [int(i) for i in input().split()] n = n_t_c[0] t = n_t_c[1] c = n_t_c[2] p = [int(i) for i in input().split()] list_index = [] for i in range(n): if p[i] > t: list_index.append(i) list_num = [] if len(list_index) == 0: ans = n - (c - 1) else: list_num = [list_index[0] - 0] for i in range...
882da9b06c3c8215bad47901f52fb0b1a2f538be
9e201dfe87446274995add9a1436d392ced616c9
/draco2/draco/__init__.py
0d19522fdb4d56bebbbeb78c05eaa465d8784dc1
[ "MIT" ]
permissive
geertj/draco2
9da00f68016a16a82be9c7556e08ca06611bba9b
3a533d3158860102866eaf603840691618f39f81
refs/heads/master
2021-01-01T06:45:37.111786
2007-04-30T13:37:00
2007-04-30T13:37:00
2,787,375
0
0
null
null
null
null
UTF-8
Python
false
false
415
py
# vi: ts=8 sts=4 sw=4 et # # __init__.py: draco2.draco package definition # # This file is part of Draco2. Draco2 is free software and is made available # under the MIT license. Consult the file "LICENSE" that is distributed # together with this file for the exact licensing terms. # # Draco2 is copyright (c) 1999-2007 ...
0a724a2e65e58755be2cbd93ecc23710dc2da8e5
0d4139330dda389664df2e79b397f8153e6c1189
/backend/site_management_25562/urls.py
726931ba898e10c60a17c2b354ef452b4cc09a43
[]
no_license
crowdbotics-apps/site-management-25562
d7a4d08ed286838814d892096510ca642e59a574
704d21f8eeec8f4bc20d4478e34e5196e76c03d0
refs/heads/master
2023-04-08T11:40:14.414118
2021-04-08T18:13:21
2021-04-08T18:13:21
356,007,365
0
0
null
null
null
null
UTF-8
Python
false
false
2,253
py
"""site_management_25562 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home...
edcb661a53d5e24b760420759edcc68d6943de55
0523136530c8caf2a7aacbc52aae43dc8998ca18
/ship.py
5b3fb775270d8b76d0692d8664f7cd786c3d7505
[]
no_license
irfan87/alien_invasion_pygame
1d90eb1914e16a84b8318af92dd102f3a4201313
71587cbb13d5ea157e325e19c439ceb94c029d5d
refs/heads/master
2020-07-06T17:13:44.520471
2019-08-20T03:12:58
2019-08-20T03:12:58
203,088,226
0
0
null
2019-08-20T03:12:59
2019-08-19T03:00:27
Python
UTF-8
Python
false
false
1,519
py
import pygame from pygame.sprite import Sprite class Ship(Sprite): # a class to manage the ship def __init__(self, ai_game): # initialize the ship and set its statring position super().__init__() self.screen = ai_game.screen self.screen_rect = ai_game.screen.get_rect() ...
bb73179a28bb142c274961bea46d714b9cd87d26
923a3f7be34e10931936823df0740d5d845d26e5
/Courses/MCCT2009/Intro/execute_request.py
ff0b0046dc6b4bed302c6269c14964844dc8cb8d
[]
no_license
o-smirnov/public-documents
0572ccef548a321e70b8cad2e2f2c249926f017d
9e758ddf375c0f748376d2e37d0fea9661ed7c37
refs/heads/master
2021-01-15T23:40:03.183127
2015-06-04T17:18:22
2015-06-04T17:18:22
31,723,928
1
0
null
null
null
null
UTF-8
Python
false
false
2,620
py
# file: ../beginners_guide/execute_request.py from Timba.TDL import * from Timba.Meq import meq request_counter = 0 #------------------------------------------------------------------------ TDLRuntimeMenu("Parameters of the Request domain:", TDLOption('ropt_num_freq', 'nr of freq channels', ...
5d6c44da5a001474f63de5209baa264dfce32af8
353626e216085601f8be641be4c775a563fdc95e
/word_discovery.py
c4428bb88d5996cf78f774e79fa5218f517f8dff
[]
no_license
houking-can/english-word-discovery
148729a4cda980b1b6a67ef49e6a934ffc53ac90
1c6276642ac360f411c9841daa2edd4bc4b959d2
refs/heads/master
2020-09-24T18:59:44.044460
2019-12-04T08:56:40
2019-12-04T08:56:40
225,821,558
1
0
null
null
null
null
UTF-8
Python
false
false
8,307
py
# ! -*- coding: utf-8 -*- import struct import os import math import logging from collections import Counter logging.basicConfig(level=logging.INFO, format=u'%(asctime)s - %(levelname)s - %(message)s') from tqdm import tqdm class KenlmNgrams: """ๅŠ ่ฝฝKenlm็š„ngram็ปŸ่ฎก็ป“ๆžœ vocab_file: Kenlm็ปŸ่ฎกๅ‡บๆฅ็š„่ฏ(ๅญ—)่กจ๏ผ› ngram_file...
4890cec1b8a3eaa8cba2cc2ab2ac83c56273c669
9d4a03990d94e9fb0248ec94875376c82139891a
/Pythonๅฎžๆˆ˜๏ผšๅ››ๅ‘จๅฎž็Žฐ็ˆฌ่™ซ็ณป็ปŸ/week_2/2_1/coed_of_video_test.py
3c7ec1007817205d0834c78e477ba2709266b5bf
[]
no_license
wenhaoliang/learn-python
114744f3c94859f665a998b03c6d5f5d908fb94d
bd31daa34cc79f3171a2e195c149af60a7e0ebed
refs/heads/master
2020-04-16T02:14:36.345629
2019-07-06T12:26:23
2019-07-06T12:26:23
58,053,238
7
7
null
2017-07-21T09:35:55
2016-05-04T13:14:26
Python
UTF-8
Python
false
false
574
py
import pymongo client = pymongo.MongoClient('localhost',27017) walden = client['walden'] sheet_ta = walden['sheet_ta'] path = 'walden.txt' # with open(path,'r') as f: # lines = f.readlines() # for index,line in enumerate(lines): # data = { # 'ๅบๅˆ—':index, # 'ๅฅๅญ' :line, # ...
9aab9e36ef99567c70e4715d279ae9ef813a672e
04d8f0b5a291ec6c3470f4498dd64ab9c1845f96
/library/built-in/database/dbm/ex.py
e2347d6fe6f3c862de6cdd12869a7f251d5b925c
[]
no_license
volitilov/Python_learn
8c0f54d89e0ead964320d17eeddeacd5b704b717
f89e52655f83a9f1105689f0302ef5b0ee30a25c
refs/heads/master
2022-01-10T13:39:59.237716
2019-07-17T11:39:10
2019-07-17T11:39:10
70,601,503
3
2
null
null
null
null
UTF-8
Python
false
false
215
py
import dbm # ::::::::::::::::::::::::::::::::::::::::::::::::::: db = dbm.open('test_db', 'c') db['color'] = 'yellow' db['base'] = 'postgresql' # print(len(db)) # 2 # print(db['base']) # b'postgresql' db.close()
b3a5bd338a2ef2f1cffb1d0d5665b8859fd3b5f5
d785e993ed65049c82607a1482b45bddb2a03dda
/nano2017/cfg2018/WZTo3LNu_0Jets_MLL-4to50_cfg.py
78a3135cc48d53686e3d778eb84aa962dc40c43e
[]
no_license
PKUHEPEWK/ssww
eec02ad7650014646e1bcb0e8787cf1514aaceca
a507a289935b51b8abf819b1b4b05476a05720dc
refs/heads/master
2020-05-14T04:15:35.474981
2019-06-28T23:48:15
2019-06-28T23:48:15
181,696,651
0
0
null
null
null
null
UTF-8
Python
false
false
1,392
py
from WMCore.Configuration import Configuration from CRABClient.UserUtilities import config, getUsernameFromSiteDB config = Configuration() config.section_("General") config.General.requestName = 'WZTo3LNu_0Jets_MLL-4to50_2018' config.General.transferLogs= False config.section_("JobType") config.JobType.pluginName = '...
b7a171a8ca7594633d34875c4d50705544339839
3b13020b492003912b2da62ff29a00e584a63766
/examples/porta.py
0dd8608dd36b1443ee39805620dc2511b8d38284
[ "MIT" ]
permissive
tigertv/secretpy
c0d62a2934fa5ac1e07f1c848429fc062e2f2976
e464f998e5540f52e269fe360ec9d3a08e976b2e
refs/heads/master
2021-08-16T00:05:53.089587
2021-08-09T23:55:42
2021-08-09T23:58:09
147,110,283
65
15
MIT
2021-05-28T16:49:09
2018-09-02T18:15:14
Python
UTF-8
Python
false
false
1,755
py
#!/usr/bin/python # -*- encoding: utf-8 -*- from secretpy import Porta, CryptMachine, alphabets as al from secretpy.cmdecorators import UpperCase, Block, SaveAll alphabet = al.GERMAN plaintext = u"schweiรŸgequรคltvomรถdentextzรผrnttypografjakob" key = u"schlรผssel" cipher = Porta() print(plaintext) enc = cipher.encrypt(...
3b22ec060a5ee9a4d7e472fcd58efc85a0fa7166
05caf48bd067c050666026b75686f23d02327378
/190.reverse-bits.py
0354dd2a79eead8c8799d5b9bbb18ef9c64541ca
[ "MIT" ]
permissive
elfgzp/Leetcode
3b6fa307c699fd5a1ba5ea88988c324c33a83eb7
964c6574d310a9a6c486bf638487fd2f72b83b3f
refs/heads/master
2023-08-21T23:11:38.265884
2020-10-17T11:55:45
2020-10-17T11:55:45
168,635,331
3
0
MIT
2023-07-21T03:50:43
2019-02-01T03:14:49
Python
UTF-8
Python
false
false
1,718
py
# # @lc app=leetcode.cn id=190 lang=python # # [190] ้ข ๅ€’ไบŒ่ฟ›ๅˆถไฝ # # https://leetcode-cn.com/problems/reverse-bits/description/ # # algorithms # Easy (34.07%) # Total Accepted: 10.9K # Total Submissions: 28.7K # Testcase Example: '00000010100101000001111010011100' # # ้ข ๅ€’็ป™ๅฎš็š„ 32 ไฝๆ— ็ฌฆๅทๆ•ดๆ•ฐ็š„ไบŒ่ฟ›ๅˆถไฝใ€‚ # # # # ็คบไพ‹ 1๏ผš # # ่พ“ๅ…ฅ: 00000010...
28a5e30cebf3bae89a61faf4acd46d0b226d4ceb
8567438779e6af0754620a25d379c348e4cd5a5d
/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/buildbot_results.py
9f7c39861ca14381afdc1e8db9e3c93347493dcf
[ "LGPL-2.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "GPL-1.0-or-later", "GPL-2.0-only", "LGPL-2.0-only", "BSD-2-Clause", "LicenseRef-scancode-other-copyleft", "MIT", "Apache-2.0", "BSD-3-Clause" ]
permissive
thngkaiyuan/chromium
c389ac4b50ccba28ee077cbf6115c41b547955ae
dab56a4a71f87f64ecc0044e97b4a8f247787a68
refs/heads/master
2022-11-10T02:50:29.326119
2017-04-08T12:28:57
2017-04-08T12:28:57
84,073,924
0
1
BSD-3-Clause
2022-10-25T19:47:15
2017-03-06T13:04:15
null
UTF-8
Python
false
false
8,191
py
# Copyright (C) 2012 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
ebc6bcb0e32507f21be5c31bd75c0749d8cfa2a2
d7532e2ac4983c042f50525aab564597db154719
/day2/strings_2/5.py
28eea9134e6d119f85cd7e9ebcb7e881cc234697
[]
no_license
shobhit-nigam/qti_panda
d53195def05605ede24a5108de1dbfbe56cbffe7
35d52def5d8ef1874e795a407768fd4a02834418
refs/heads/main
2023-08-24T14:56:34.934694
2021-10-22T09:59:05
2021-10-22T09:59:05
418,381,871
0
0
null
null
null
null
UTF-8
Python
false
false
131
py
spain = [34, 67, 12, 55, 89] sep = '__' strx = sep.join(str(x) for x in spain) print(strx) # another way # list comprehensions
67b64deafbb427a7ebd867ae2548343252614cb8
13ea6fa027c8ae33852bde3335846cdaab78ee71
/DataScienceWithPython/sample_python_code/ml/supervised/MNIST-knn.py
2b9c0d32ff6783e60788238adaea7dd368a1f00c
[]
no_license
dmonisankar/pythonworks
c98de04b191135451556ca9d1ee513a0a69f2edb
4f3a14460272ec959c2f2e6975814d9ac43cb90a
refs/heads/master
2023-03-31T00:36:46.016403
2020-06-11T05:39:36
2020-06-11T05:39:36
271,455,493
0
0
null
2021-03-20T04:19:45
2020-06-11T05:00:00
Jupyter Notebook
UTF-8
Python
false
false
3,736
py
# Train/Test Split + Fit/Predict/Accuracy # Now that you have learned about the importance of splitting your data into training and test sets, it's time to practice doing this on the digits dataset! After creating arrays for the features and target variable, you will split them into training and test sets, fit a k-NN ...
78d27f7b1092241934f1510f40ad8bfc3ece1523
8be2c3a2ee48b004f5894899f5b06d2c8a91d044
/1290. Convert Binary Number in a Linked List to Integer.py
ae85f70de8e54ae6a54c9caa78f230b822a70c87
[]
no_license
themockingjester/leetcode-python-
8ea8caf047b4ad2ebc63d98278d96f0bdd788a34
eda7d6d1d1860c4382b20acfb69e03c648845e72
refs/heads/main
2023-07-07T10:02:45.796512
2021-08-11T03:53:42
2021-08-11T03:53:42
337,762,767
1
1
null
null
null
null
UTF-8
Python
false
false
470
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def check(self,root): if root: self.s+=str(root.val) self.check(root.next) def getDecimalValue(self, head: ListNo...
288debbd2d6ead371f0da1214457fd35434bc1eb
51d0377511a5da902033fb9d80184db0e096fe2c
/10-merging-dataframes-with-pandas/3-merging-data/05-merging-dataframes-with-outer-join.py
7a31458d2aa2968025b9b9bae577f0e16510903a
[]
no_license
sashakrasnov/datacamp
c28c6bda178163337baed646220b2f7dcc36047d
759f4cec297883907e21118f24a3449d84c80761
refs/heads/master
2021-12-07T02:54:51.190672
2021-09-17T21:05:29
2021-09-17T21:05:29
157,093,632
6
5
null
null
null
null
UTF-8
Python
false
false
4,734
py
''' Merging DataFrames with outer join This exercise picks up where the previous one left off. The DataFrames revenue, managers, and sales are pre-loaded into your namespace (and, of course, pandas is imported as pd). Moreover, the merged DataFrames revenue_and_sales and sales_and_managers have been pre-computed exact...
667999762976f5897af604a84543897c3dfe2b68
568d7d17d09adeeffe54a1864cd896b13988960c
/month03.2/django/day05/mysitel3/otm/migrations/0001_initial.py
b086e0cf6fc07d1aa13bbaa6ef12c79c1ce841bb
[ "Apache-2.0" ]
permissive
Amiao-miao/all-codes
e2d1971dfd4cecaaa291ddf710999f2fc4d8995f
ec50036d42d40086cac5fddf6baf4de18ac91e55
refs/heads/main
2023-02-24T10:36:27.414153
2021-02-01T10:51:55
2021-02-01T10:51:55
334,908,634
1
0
null
null
null
null
UTF-8
Python
false
false
980
py
# Generated by Django 2.2.12 on 2021-01-13 07:22 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Publisher', fields=[ ...
89bd7df5f7a432880d48493b2c552aee2bc579cf
a19275ff09caf880e135bce76dc7a0107ec0369e
/catkin_ws/src/robot_python/nodes/int_adp_imp_gazebo_node.py
507b24e5a419629eee10af64ead79937980c61a4
[]
no_license
xtyzhen/Multi_arm_robot
e201c898a86406c1b1deb82326bb2157d5b28975
15daf1a80c781c1c929ba063d779c0928a24b117
refs/heads/master
2023-03-21T14:00:24.128957
2021-03-10T12:04:36
2021-03-10T12:04:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,051
py
#!/usr/bin/env python # -*-coding:utf-8-*- #ๆœฌๆ–‡ๆกฃ็”จไบŽไธŠๅฑ‚็งฏๅˆ†่‡ช้€‚ๅบ”้˜ปๆŠ—ๆŽงๅˆถไปฟ็œŸ #็จ‹ๅบๅ‘˜๏ผš้™ˆๆฐธๅŽ… #็‰ˆๆƒ๏ผšๅ“ˆๅฐ”ๆปจๅทฅไธšๅคงๅญฆ #ๆ—ฅๆœŸ๏ผšๅˆ็จฟ๏ผš2020.1.11 import rospy from std_msgs.msg import Float64MultiArray from sensor_msgs.msg import JointState from geometry_msgs.msg import WrenchStamped import threading import time import numpy as np #่‡ชๅฎšไน‰ๅ‡ฝๆ•ฐ from robot_python impor...
1a12a25abec059bc393ea4132c9fce703a963a74
d6ea8bd65e7fffc12575737817083d6456eec828
/vigenere.py
2bb25639d7d300467bcedb4607ff5a9a22628d91
[]
no_license
informatiquecsud/cs-simply-utils
3888ce47d77e2732044efe555a66c87c25d100e7
4c6d82897fbd96f3718f81920a324c379988e403
refs/heads/master
2022-10-05T02:27:25.209972
2022-09-16T07:53:39
2022-09-16T07:53:39
217,407,419
0
0
null
null
null
null
UTF-8
Python
false
false
1,835
py
from utils import alphabet, shift_char class VigenereCypher: def __init__(self, key): self.key = [0] * len(key) alpha = alphabet() for i, el in enumerate(key): if isinstance(el, int): self.key[i] = el elif isinstance(el, str): if el...
b81111166f9a39b8a29e524ea7739667bfcca158
350db570521d3fc43f07df645addb9d6e648c17e
/0355_Design_Twitter/solution.py
8d3edca5abd4d8fcb391e591c9019e0f9172a4af
[]
no_license
benjaminhuanghuang/ben-leetcode
2efcc9185459a1dd881c6e2ded96c42c5715560a
a2cd0dc5e098080df87c4fb57d16877d21ca47a3
refs/heads/master
2022-12-10T02:30:06.744566
2022-11-27T04:06:52
2022-11-27T04:06:52
236,252,145
1
1
null
null
null
null
UTF-8
Python
false
false
3,189
py
''' 355. Design Twitter Design a simplified version of Twitter where users can post tweets, follow/unfollow another user and is able to see the 10 most recent tweets in the user's news feed. Your design should support the following methods: postTweet(userId, tweetId): Compose a new tweet. getNewsFeed(userId):...
95612479cdfabbcffd276a39d0b4137bbd5a1c0d
62ef47b5e63042c46f2a5dd360bfb3dc65cc611f
/geomdl/vis.py
5bf49d4e15e5a13a3f41e9ef6283fa2b9c3ceca2
[ "MIT", "Python-2.0" ]
permissive
Mopolino8/NURBS-Python
3abdd7266312779cc1e860608c304b5703420ace
009089b27b2a8308b1834ba41b429471346b2654
refs/heads/master
2020-04-17T22:29:48.418346
2019-01-18T17:09:19
2019-01-18T17:09:19
166,996,473
0
1
null
null
null
null
UTF-8
Python
false
false
6,589
py
""" .. module:: vis :platform: Unix, Windows :synopsis: Provides abstract base classes for visualization modules .. moduleauthor:: Onur Rauf Bingol <[email protected]> """ import abc import six from typing import Any, Sequence, List # Initialize an empty __all__ for controlling imports __all__ = [] @six...
81c2bbd50fbc15ba6b4e23ef213f426d6fd669ee
1eaa6c2500868d0c60b5b2cd552cd671b635de32
/Algorithm/sword of offer/14.้“พ่กจไธญๅ€’ๆ•ฐ็ฌฌkไธช็ป“็‚น.py
cb3067b70c193a8dddb22fc816f0869477255b87
[]
no_license
jiangyuwei666/my-study-demo
f85f14a599c328addb5af09078d404f1139e0a82
9e2baef2f36f071f8903768adb8d5a5a8c1123f6
refs/heads/master
2022-04-30T16:47:24.715570
2022-03-24T09:08:43
2022-03-24T09:08:43
152,565,041
5
0
null
null
null
null
UTF-8
Python
false
false
1,436
py
""" ไธคไธชๆŒ‡้’ˆ ้ฆ–ๅ…ˆไธคไธชๆŒ‡้’ˆ้ƒฝๅœจๅคด้ƒจ๏ผŒ็„ถๅŽ่ฎฉ็ฌฌไธ€ไธชๆŒ‡้’ˆ็งปๅŠจk-1ไธชไฝ็ฝฎ๏ผŒๆญคๆ—ถ็ฌฌไธ€ไธชๆŒ‡้’ˆๆŒ‡ๅ‘+kไธชไฝ็ฝฎ็š„้‚ฃไธช่Š‚็‚นใ€‚ ่ฟ™ไธชๆ—ถๅ€™ๅ†ๅŒๆ—ถ็งปๅŠจไธคไธช่Š‚็‚นๅฝ“็ฌฌไธ€ไธชๆŒ‡้’ˆ็งปๅŠจๅˆฐๆœ€ๅŽไธ€ไธช่Š‚็‚นๆ˜ฏๆ—ถ๏ผŒ็ฌฌไบŒไธชๆŒ‡้’ˆๅฐฑๆŒ‡ๅ‘ไบ†-kไฝ็ฝฎ็š„่Š‚็‚นใ€‚ """ class ListNode: def __init__(self, x): self.x = x self.next = None def init_list(num_list): node_list = [] for i in num_list: node = ListNode(i) node_list.append...
b63b7c3218e2814ed3fcd990e0e23b066dfd88dd
ecf77933549cb56ebde35df35556accc9684424d
/html_to_css.py
1ddd48e7590e6bf5d37ee74ba9c3c1f7474dce08
[]
no_license
jayd2446/cuda_html_ops
3ba102fb87ba9f591fb9cd4ccad7dbc8fab53bf4
0fea8430aa057feafac167adbc18f08c647ef099
refs/heads/master
2020-05-31T12:18:38.938276
2018-08-31T09:35:20
2018-08-31T09:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
646
py
import re from cudatext import * REGEX1 = r'\bclass\s*=\s*"(.+?)"' REGEX2 = r"\bclass\s*=\s*'(.+?)'" def do_html_to_css_clipboard(compact): text = ed.get_text_sel() if not text: return res = re.findall(REGEX1, text, 0) + re.findall(REGEX2, text, 0) res = sorted(list(set(res))) if not res: ...
934c03e88433588a4a2cb7d674fb33c1b3da2a36
d50bb3387316a4f1a06fe4c84714568a73b2a125
/tasks/utils.py
b47f431f31a462efa50b11ae15be1623ac038375
[]
no_license
pmav99/fastapi_docker_compose
8830006876db35d43614a38945581f9868aa31fc
491ad3e31fc9ef1ac4306624ba27c945733ac103
refs/heads/master
2022-12-09T16:33:19.924385
2020-07-30T20:22:01
2020-07-30T20:22:01
249,724,494
1
0
null
2022-12-08T03:52:43
2020-03-24T14:06:22
Dockerfile
UTF-8
Python
false
false
209
py
import contextlib import os import pathlib @contextlib.contextmanager def chdir(dirname: str): curdir = os.getcwd() try: os.chdir(dirname) yield finally: os.chdir(curdir)
1ab6d8949c8d7742e9cf369e05fdc49f447c63d2
60096eba428275a28ab53d364aef0b9bc29e71c8
/hris/api/users.py
712b95f287ba42e8411e092d49989f3123ba0dca
[]
no_license
RobusGauli/hris_new
30ef8d17aceceb5f6c8f69f65df508228cb31f33
634f18d162310df9331543f7a877cac619ee1622
refs/heads/master
2021-01-19T21:55:39.279378
2017-04-29T04:32:38
2017-04-29T04:32:38
88,724,501
0
0
null
null
null
null
UTF-8
Python
false
false
8,091
py
from hris.utils import hash_password, gen_access_token, decode_access_token from flask import request, abort, jsonify, g from functools import wraps from hris.api import api from sqlalchemy.exc import IntegrityError #foreign key violation #this won't come up oftern from sqlalchemy.orm.exc import NoResultFound from hri...
c2f6f2417db54c1403f0fd7961a24ede9f71b21c
76b5be6d12c6885c8cb9ae458bf878a3dcf0401c
/DojoAssignments/Python2/PythonAssignments/Django/DjangoIntro/SessionWords/apps/session_words_app/views.py
539759b21089b070bef198b2336a8eced707120c
[]
no_license
DaseinUXD/CodingDojo
ba1d532750d61a21feb401243c49e05623e9b8c2
19b2d0f0ce9f8c9d08747438412e5c988073f385
refs/heads/master
2020-03-11T16:36:51.312297
2018-09-19T22:32:09
2018-09-19T22:32:09
130,121,896
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render, redirect, HttpResponse # Create your views here. # Index view def index(request): return render(request, 'session_words_app/index.html') def add(request): if request.method=="POST": return redirect(...
79aa73692fd55784d617c6924ab841e36efee841
fd97689f062e6d90837ea27b9a5e3de87bcd1e92
/Servidor/MET-Server-udp.py
c79bc598c86aa8500e06b913a44a9d4c03e14fb1
[]
no_license
Edresson/MET
9f7b8a43bdea29ee844d0c98a20f0aef4afbcdd2
5945116d0d52fdf8f892a5f266bf6b51afb529eb
refs/heads/master
2023-08-31T10:18:35.942324
2019-10-29T12:17:15
2019-10-29T12:17:15
93,848,160
0
0
null
null
null
null
UTF-8
Python
false
false
3,525
py
# -*- coding: utf-8 -*- from threading import Thread from PyQt4 import QtTest from time import time import time from socket import * import Motor import celula serverSocketMotor = socket(AF_INET, SOCK_DGRAM) serverSocketMotor.bind(('', 12001)) serverSocketCelula = socket(AF_INET, SOCK_DGRAM) serverSocketCelula.b...
54203602ebefeb4d7e49a6c2cd32adf327c9e6e9
df20dc807d2d9ba666377a2a23cbe80b268c75cd
/0 Python Fundamental/32a5_readCSVasDICT_noCSVpkg.py
70ff4ebfcfdaa9b57a22e5f3a9a52a19d38883f8
[]
no_license
stevenwongso/Python_Fundamental_DataScience
e9bb294017d0fcc05e2079f79f880ac8be726e11
706c61c8bdfcec1461328fa7a58a55a2d0f9f2d8
refs/heads/master
2021-01-04T07:32:11.856979
2020-02-13T05:18:06
2020-02-13T05:18:06
240,449,486
0
1
null
2020-02-14T07:12:16
2020-02-14T07:12:15
null
UTF-8
Python
false
false
252
py
# read csv as dict without csv package myfile = open('32a4.csv', 'r') data = [] for i in myfile.readlines()[1:]: no = int(i.split(';')[0]) nama = i.split(';')[1].replace('\n','') x = {'no': no, 'nama': nama} data.append(x) print(data)
86ee833065018990ffb7d10de8b4eae90e0400fa
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Scripts/weather3.py
da29540c7ea77779f74cf0c9f89c0af03f26e5b3
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:01477c0dba3b4f14c6e88c20abc1a741e612745ccaadd12514f86251fcb26f5d size 1382
c2c3b84b358107d0e1be19f8975fcf001efefb02
9147a96572715604a31b6c026b7608b6d26276e8
/cfn_model/model/IAMManagedPolicy.py
4d24b42f6b0516a2f905011d5e7faab8fef05b51
[ "MIT" ]
permissive
rubelw/cloudformation-validator
9890c024174640c79914f2f8bd153dc2900fc078
4ba3b05ae3abd3a941aa6a34419c594d8e0d0e5d
refs/heads/master
2020-03-23T18:31:29.084701
2019-01-17T21:55:04
2019-01-17T21:55:04
141,914,515
6
1
NOASSERTION
2019-01-17T21:55:05
2018-07-22T16:58:55
Python
UTF-8
Python
false
false
699
py
from __future__ import absolute_import, division, print_function from cfn_model.model.ModelElement import ModelElement class IAMManagedPolicy(ModelElement): """ IAM managed policy model """ def __init__(self, cfn_model): """ Initialize :param cfn_model: """ Mo...
5591a8edf408ec43904d5a0e73a02795dc193eee
a183a600e666b11331d9bd18bcfe1193ea328f23
/pdt/core/admin/__init__.py
58e1d13908fc242d51b379fa54a382780b919b22
[ "MIT" ]
permissive
AbdulRahmanAlHamali/pdt
abebc9cae04f4afa1fc31b87cbf4b981affdca62
5c32aab78e48b5249fd458d9c837596a75698968
refs/heads/master
2020-05-15T07:51:09.877614
2015-12-01T18:22:56
2015-12-01T18:22:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
"""PDT core admin interface.""" from .case import CaseAdmin # NOQA from .case_category import CaseCategoryAdmin # NOQA from .case_edit import CaseEditAdmin # NOQA from .ci_project import CIProjectAdmin # NOQA from .deployment_report import DeploymentReportAdmin # NOQA from .instance import InstanceAdmin # NOQA fr...
01e5ffbf994198ee773823897db4431035f17668
4e5141121d8b4015db233cbc71946ec3cfbe5fe6
/samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-lib-keychain-cfg/nc-create-xr-lib-keychain-cfg-20-ydk.py
5c5384fcd79c34f4269bfd0585bb229e990d76bd
[ "Apache-2.0" ]
permissive
itbj/ydk-py-samples
898c6c9bad9d6f8072892300d42633d82ec38368
c5834091da0ebedbb11af7bbf780f268aad7040b
refs/heads/master
2022-11-20T17:44:58.844428
2020-07-25T06:18:02
2020-07-25T06:18:02
282,382,442
1
0
null
2020-07-25T06:04:51
2020-07-25T06:04:50
null
UTF-8
Python
false
false
3,690
py
#!/usr/bin/env python # # Copyright 2016 Cisco Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
889eb827f803875363cea68f5952d72e22de0ae9
3db5eeeb0d34e7f093a9f3d9750c270df4ba3845
/blog/admin.py
a4138cc33360d508be75461be64727fa3c2f6d3d
[]
no_license
DeepakDarkiee/stackunderflow
b0d052d2b1ef62dbb948a2789abfb80fd097191b
d68161e5729bdb8033f5ae0c28379b1e89c31044
refs/heads/master
2022-10-13T10:16:34.104129
2020-06-04T07:44:38
2020-06-04T07:44:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
from django.contrib import admin from .models import Post, Comment ,Category,Contact from django_summernote.admin import SummernoteModelAdmin class PostAdmin(SummernoteModelAdmin): list_display = ('title', 'slug', 'status', 'category', 'created_on') list_filter = ('status', 'created_on' ,'category') searc...
80ed4fcaa32b7bbe66686eaeffe9a665e2afbf26
629a62dc600b356e55b25b21c93d088f5bc8aa64
/source/webapp/forms.py
3710a393967147c566da58a87bcfcf5247950ce3
[]
no_license
Azer-Denker/ex_9
70e70408355d602ff11817d6cc53d53c0f1e3b1f
bfb8272ebb1764a9a3b382f2cabb19778d5f5541
refs/heads/main
2023-05-04T23:41:22.362929
2021-05-29T13:05:06
2021-05-29T13:05:06
306,867,189
0
0
null
null
null
null
UTF-8
Python
false
false
316
py
from django import forms from webapp.models import Photo, Album class PhotoForm(forms.ModelForm): class Meta: model = Photo fields = ['photo_img', 'signature', 'album', 'status'] class AlbumForm(forms.ModelForm): class Meta: model = Album fields = ['name', 'description']
43b9a78891cc24a21f373baf585e2e5eac2ae706
b872ccff0c2f79886c0136b32da5f04cb8d3276c
/etcewrappers/emane/emaneshsnapshot.py
41b82af702fc1382f8e41bee540758ecd9d07d0d
[]
no_license
prj8121/python-etce
9c22b3a182f103f46b1d865d13ded277482e4a34
bbd74a65280a09f3edc05457961b8c51ec009165
refs/heads/master
2022-11-18T05:19:19.324966
2020-04-02T15:15:47
2020-04-02T15:15:47
276,674,792
0
0
null
2020-07-02T14:57:07
2020-07-02T14:57:06
null
UTF-8
Python
false
false
6,808
py
# # Copyright (c) 2015-2018 - Adjacent Link LLC, Bridgewater, New Jersey # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # * Redistributions of source code must retain the above copyright # ...
2825170807eb9df9a190facef2b577aa2de44ffe
764f63ef031b38bde74657cd9bd198014ecfa0c7
/alien.py
82a55cbe8717ccdbb9cc68b2ba4f7b9fe6945b1e
[]
no_license
turkey66/alien_invasion
4396668a8ca9737d340da9532d448cc90c7c3ed6
dae2df7175a885c32951804c6ede6c53cedc749f
refs/heads/master
2020-03-20T20:03:12.467496
2018-06-17T16:17:35
2018-06-17T16:17:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,248
py
import pygame from pygame.sprite import Sprite class Alien(Sprite): """่กจ็คบๅ•ไธชๅค–ๆ˜Ÿไบบ็š„็ฑป""" def __init__(self, ai_settings, screen): """ๅˆๅง‹ๅŒ–ๅค–ๆ˜Ÿไบบๅนถ่ฎพ็ฝฎๅ…ถ่ตทๅง‹ไฝ็ฝฎ""" super().__init__() self.screen = screen self.ai_settings = ai_settings # ๅŠ ่ฝฝๅค–ๆ˜Ÿไบบๅ›พๅƒ๏ผŒๅนถ่ฎพ็ฝฎๅ…ถrectๅฑžๆ€ง self.image = pygame.ima...
100386502e3c3fa6f1d4f6adbb120b741631dee0
113f803b721984992bdc8f2177056b0f60de546a
/ex20/ex20.py
196cbc7f5b0a27f8d770e8b025470d262aa428c5
[]
no_license
Na-Young-Lee/16PFA-Na-Young-Lee
ddb215b0dc9cb0572b96aa90d8db71fbbea13c13
6cdcea12fd46a5218f9b6a7cd4ac5ee5e347cbb7
refs/heads/master
2021-01-17T15:15:27.429510
2016-06-01T11:37:20
2016-06-01T11:37:20
53,923,583
0
0
null
null
null
null
UHC
Python
false
false
1,160
py
#-*-coding:cp949 from sys import argv # ์‹œ์Šคํ…œ์œผ๋กœ๋ถ€ํ„ฐ ๋งค๊ฐœ๋ณ€์ˆ˜๋ฅผ ๊ฐ€์ ธ์˜จ๋‹ค script, input_file = argv # ๋งค๊ฐœ๋ณ€์ˆ˜๋Š” input_file(test.txt)์ด๋‹ค. def print_all(f): # ํ•จ์ˆ˜ print_all, f๋Š” ๋ณ€์ˆ˜ print(f.read()) # ์ด ํŒŒ์ผ์˜ ๋ชจ๋“  ๋‚ด์šฉ์„ ์ฝ์–ด๋ผ def rewind(f): # ํ•จ์ˆ˜ rewind, f๋Š” ๋ณ€์ˆ˜ f.seek(0) # ์‹œ์ž‘ ์œ„์น˜๋กœ ๋Œ์•„๊ฐ. # seek(): ์ž๊ธฐ ํ…Œ์ดํ”„ ์œ„์— ์›ํ•˜๋Š” ์œ„์ฐจ๋ฅผ ์ง€์ •ํ•˜๊ธฐ ์œ„ํ•จ. ...
[ "CAD Client" ]
CAD Client
63da80f93496f9f06ca03c36ca38b215fd4ab8d9
d7a4701e18be0f38820f5c15d80099fda6385f9f
/ABC106/B.py
dd13915b9a187916ed4f7f263d2be9013e8353ba
[]
no_license
shiki7/Atcoder
979a6f0eeb65f3704ea20a949940a0d5e3434579
c215c02d3bfe1e9d68846095b1bd706bd4557dd0
refs/heads/master
2022-05-21T16:59:01.529489
2022-04-29T11:26:42
2022-04-29T11:26:42
201,536,692
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
N = int(input()) def is_divisor_counter8(num): count = 0 for i in range(1, num+1): if num % i == 0: count += 1 return True if count == 8 else False count = 0 for i in range(1, N+1, 2): if is_divisor_counter8(i): count += 1 print(count)
d06f80d7cbcfeb09aca48198e849b2aeff779bcd
1cff45f4b9beab91e06c30f4f2de2d719706fcdd
/tools/log2thbrep.py
a1b5b9a2906431d63e81738290657503cf7cb0ac
[]
no_license
chilamkatana/thbattle
2c1b30bd243a216454e075f636b5c92c1df77f86
5219509c58f1b96bfd431f84e405f4f9aa981809
refs/heads/master
2021-01-18T00:07:46.283892
2016-06-19T15:12:30
2016-06-19T15:12:30
62,997,020
1
0
null
2016-07-10T12:13:04
2016-07-10T12:13:03
null
UTF-8
Python
false
false
2,158
py
# -*- coding: utf-8 -*- # -- prioritized -- import sys sys.path.append('../src') # -- stdlib -- from urlparse import urljoin import argparse import gzip import json # -- third party -- # -- own -- from client.core.replay import Replay from game import autoenv from settings import ACCOUNT_FORUMURL # -- code -- def ...
3c12d70f689a90719f80a3bd3c5077bf23834e0f
0e478f3d8b6c323c093455428c9094c45de13bac
/src/OTLMOW/OEFModel/Classes/Dummy.py
e96d20609045111125c43f47cdf1e3ee6f8fca51
[ "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
1,195
py
# coding=utf-8 from OTLMOW.OEFModel.EMObject import EMObject from OTLMOW.OEFModel.EMAttribuut import EMAttribuut from OTLMOW.OTLModel.Datatypes.StringField import StringField # Generated with OEFClassCreator. To modify: extend, do not edit class Dummy(EMObject): """DUMMY Installatie""" typeURI = 'https://lgc...
aaf45a9200b30d752b7d7761ba15eabd843892ff
71c7683331a9037fda7254b3a7b1ffddd6a4c4c8
/PIDCalib/CalibDataScripts/jobs/Stripping5TeV/Lam0/ganga_Lam0Fit_MagUp.py
f823e503e3df060e3276df738366d614877ed200
[]
no_license
pseyfert-cern-gitlab-backup/Urania
edc58ba4271089e55900f8bb4a5909e9e9c12d35
1b1c353ed5f1b45b3605990f60f49881b9785efd
refs/heads/master
2021-05-18T13:33:22.732970
2017-12-15T14:42:04
2017-12-15T14:42:04
251,259,622
0
1
null
null
null
null
UTF-8
Python
false
false
5,567
py
# set the stripping version stripVersion = "5TeV" # magnet 'Up' or 'Down'? magPol='Up' # file suffix: # # dst_k_and_pi: Kaons and pions from D* # lam0_p: Protons from Lambda0 # jpsi_mu: Muons from J/psi # dst_k_and_pi_muonUnBiased: 'MuonUnBiased' kaons + pions from D* # lam0_p_muonUnBiased: 'MuonUnBiased' protons fro...
9a050e8af3a0f33b423d7e500a3c375688e6fc12
ba91eb5329fd8e69aa9d9fe1e74e2c7b968806c7
/robocode-python-ls-core/src/robocode_ls_core/unittest_tools/cases_fixture.py
ba40c23945a6b2d060d0511504b35d5688caabc8
[ "Apache-2.0" ]
permissive
emanlove/robotframework-lsp
aba9deb43ee7fdd3328e08b4d904d6c4ca44e185
b0d8862d24e3bc1b72d8ce9412a671571520e7d9
refs/heads/master
2022-12-06T01:04:04.103593
2020-08-30T15:56:43
2020-08-30T15:56:43
292,014,577
1
0
NOASSERTION
2020-09-01T14:05:52
2020-09-01T14:05:51
null
UTF-8
Python
false
false
1,570
py
import os.path class CasesFixture(object): def __init__(self, copy_to_dir: str, original_resources_dir: str): """ Upon initialization copies the `original_resources_dir` to `copy_to_dir`. So, for instance, we may copy the contents from /my/test/resource ...
2f0695813aafeda05fd430df7c0449e407cb4e4a
ac2f43c8e0d9649a7f063c59b3dffdfed9fd7ed7
/common/recipes-rest/rest-api/files/common_logging.py
cb60bf695450c4cc5c97453d1354d71f6db5c614
[]
no_license
facebook/openbmc
bef10604ced226288600f55248b7f1be9945aea4
32777c66a8410d767eae15baabf71c61a0bef13c
refs/heads/helium
2023-08-17T03:13:54.729494
2023-08-16T23:24:18
2023-08-16T23:24:18
31,917,712
684
331
null
2023-07-25T21:19:08
2015-03-09T19:18:35
C
UTF-8
Python
false
false
3,993
py
#!/usr/bin/env python3 # # Copyright 2014-present Facebook. All Rights Reserved. # # This program file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the # Free Software Foundation; version 2 of the License. # # This program is distributed ...
d9eb34855131358c7270e0fa5ad93d1566736595
8f46693b9933763cadb8f9272e6451cb0f7a3e8e
/conductor/devices/blue_pmt/__init__.py
3a587eb13c200e44055625096de8e262ae4b1103
[]
no_license
yesrgang/labrad_tools
f4099a2c365400b4501a261855dd122b3845c09f
7441b2cb00f851b491136a8e0e9a3bf374c132c4
refs/heads/master
2018-10-05T11:03:20.386418
2018-09-20T22:13:18
2018-09-20T22:13:18
28,723,788
2
1
null
null
null
null
UTF-8
Python
false
false
1,707
py
import json from labrad.wrappers import connectAsync from time import strftime from twisted.internet.defer import inlineCallbacks from conductor_device.conductor_parameter import ConductorParameter class Recorder(ConductorParameter): priority = 1 recorders = { 'image': 'record_g', 'image_clock...
541985950b3efb0c43cbfe5c764f2684dae8b431
990a8f72428655d22775ee9dc2c52b7d6de98e4d
/config.py
099c5e6c905132b2718e17f60e5c5c6b52cbbc51
[]
no_license
saulshanabrook/cosc465-iprouter
a2c55906d2ef16e101f9eab7459a3a9cc49de1a0
a8b08e4929ca13fe34f33c7a433f6cf9670ddf3d
refs/heads/master
2021-01-18T10:32:59.159476
2015-04-15T22:21:58
2015-04-15T22:21:58
31,486,286
0
1
null
2015-03-01T04:05:49
2015-03-01T04:05:49
null
UTF-8
Python
false
false
255
py
python_interpreter = "python" # the interpreter to use project = "anaconda" # the name of the project extra_paths = None # a list of extra paths port = '19360' # the port to listen on (as string)
25be5db700331b2813ceafbe554648b1b9bac0b5
959122eea21cec24a4cf32808a24482feda73863
/store/admin.py
2688e5c86b17695b37c5f342258f8b995eb6a74d
[]
no_license
AsadullahFarooqi/InventoryWebApp
9fbe6ccafcb93bb5cb1879b728954867014d0afd
07e8e6cb06e11f8ef6ada6a590e52f569a8c2d6b
refs/heads/master
2020-06-18T15:06:18.612258
2019-07-11T07:32:00
2019-07-11T07:32:00
196,341,216
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
from django.contrib import admin from .models import ( Store, StoreEmployers, Customer, Supplier, Products, # ContainersTypes, Imported, Exported, PaymentsToSuppliers, PaymentsOfCustomers, EmployersLedger, ) # Register your models here. admin.site.register...
e5b2ae4c4440478fd5c24f1011f898ba4711d6d7
153da69b35f032f5b83a06f17008ba41a1b336b4
/src/main/hspylib/modules/mock/mock_request.py
4742062ecc57e21e043658fa728a7644c1327e85
[ "MIT" ]
permissive
TrendingTechnology/hspylib
6400cadf9dfe6ab5733712dcfeccf8022d61c589
c79a2c17e89fe21d00ccd9c1646a03407cd61839
refs/heads/master
2023-06-20T15:47:35.962661
2021-07-19T22:12:18
2021-07-19T23:45:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,564
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ TODO Purpose of the file @project: HSPyLib hspylib.main.hspylib.modules.mock @file: mock_request.py @created: Tue, 4 May 2021 @author: <B>H</B>ugo <B>S</B>aporetti <B>J</B>unior" @site: https://github.com/yorevs/hspylib @license: MIT - P...
8309f762bf07a0defed03dbce33a49f1d8a33ac1
3f1fb9704f76f0fa29723267595be1cc68a55248
/Alignment/OfflineValidation/test/PrimaryVertexResolution_templ_cfg.py
8c2c84451bec65c0380fa4d278e51e02e60b8eaa
[ "Apache-2.0" ]
permissive
jeongsumin/cmssw
639838651cbaf007a4c3d0df6fa33f705326c95d
54acaec3dc59abda01c018920077db98db976746
refs/heads/master
2021-07-05T15:32:01.271717
2020-10-15T04:31:06
2020-10-15T04:31:06
189,147,548
0
0
Apache-2.0
2019-05-29T03:57:00
2019-05-29T03:56:59
null
UTF-8
Python
false
false
7,514
py
#! /bin/env cmsRun ''' cfg to produce pv resolution plots here doing refit of tracks and vertices using latest alignment ''' from __future__ import print_function import FWCore.ParameterSet.Config as cms from fnmatch import fnmatch import FWCore.ParameterSet.VarParsing as VarParsing from pdb import set_trace proces...
d7c88e4ca86943f69f81f3921df26bdc568e03f7
7b102f9c8f2e3f9240090d1d67af50333a2ba98d
/gbd_2017/shared_code/central_comp/nonfatal/dismod/cascade/varnish.py
12362e5c319099abfeea8ab6a7ed8f6bbac1abc4
[]
no_license
Nermin-Ghith/ihme-modeling
9c8ec56b249cb0c417361102724fef1e6e0bcebd
746ea5fb76a9c049c37a8c15aa089c041a90a6d5
refs/heads/main
2023-04-13T00:26:55.363986
2020-10-28T19:51:51
2020-10-28T19:51:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,164
py
import sys import os import subprocess import logging import upload import fit_stats import drill from db_tools.ezfuncs import query from cascade_ode.demographics import Demographics from cascade_ode import importer from cascade_ode import __version__ from setup_logger import setup_logger from jobmon import sge from s...
e5e2e59c9ab3d23f95baa947c2fa5b9cadd2f20c
d7016f69993570a1c55974582cda899ff70907ec
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01_preview/models/_network_management_client_enums.py
928973d87b1432a5f248e44814aab212aca2c8e4
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
kurtzeborn/azure-sdk-for-python
51ca636ad26ca51bc0c9e6865332781787e6f882
b23e71b289c71f179b9cf9b8c75b1922833a542a
refs/heads/main
2023-03-21T14:19:50.299852
2023-02-15T13:30:47
2023-02-15T13:30:47
157,927,277
0
0
MIT
2022-07-19T08:05:23
2018-11-16T22:15:30
Python
UTF-8
Python
false
false
5,160
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
a0a6f63d91b35f4e1b0adeff1d440b64e0536984
3cdd7019f3acbf7b7a7e879444454703fcc73d62
/solutions/319.bulb-switcher.py
49544fa00a51fc10ac7fe2b65b52d85034bc6e67
[]
no_license
quixoteji/Leetcode
1dc2e52e53a7b58d9bae15ce2d5c4142cbd365af
00bf9a8164008aa17507b1c87ce72a3374bcb7b9
refs/heads/master
2021-07-15T07:59:21.294297
2020-05-13T03:08:47
2020-05-13T03:08:47
138,812,553
1
0
null
null
null
null
UTF-8
Python
false
false
324
py
# # @lc app=leetcode id=319 lang=python3 # # [319] Bulb Switcher # # @lc code=start class Solution: def bulbSwitch(self, n: int) -> int: return self.sol1(n) def sol1(self, n) : # 0 : off 1 : on ons = 1 while ons * ons <= n : ons += 1 return ons-1 # @lc code=e...
9165e19f93dedecb81d6600c76cdff8a1644df31
262311e60529868e38c2c57ee3db573f8e11c458
/qa-automated/pages/app/guide_page.py
4c174083b2c451704f06adb30ab6f1ce1a034b09
[]
no_license
huileizhan227/untitled
1c5604736d9ffcce6f7cb7e308cdc0ebd07e116a
07df74c89291b1664a28e3c8dcba51a917f1835f
refs/heads/master
2023-01-27T11:51:37.609210
2020-04-16T11:49:59
2020-04-16T11:49:59
150,606,504
1
0
null
2023-01-09T12:00:12
2018-09-27T15:12:18
HTML
UTF-8
Python
false
false
380
py
from poium import Page from poium import PageElement from poium import PageElements class GuidPage(Page): skip_btn = PageElement(id_='com.transsnet.news.more:id/skip') topic_btn_list = PageElements(xpath='//*[@id="com.transsnet.news.more:id/recycler"]//*[@id="com.transsnet.news.more:id/name"]') confirm_btn...
a17a0329e2df352957ffa0acef086b440581e622
c0717724c7dc3937252bb4a7bd7c796088db4c5d
/solutions/judgingmoose.py
58fb1ab1e281b3934eb20ba684504c74ec01dce3
[]
no_license
matthew-cheney/kattis-solutions
58cd03394ad95e9ca7ffa3de66b69d90647b31ff
d9397ca4715a3ad576046a62bdd6c0fb9542d838
refs/heads/main
2023-01-24T12:49:18.871137
2020-12-10T04:10:48
2020-12-10T04:10:48
318,857,227
0
0
null
null
null
null
UTF-8
Python
false
false
176
py
l, r = [int(x) for x in input().split(' ')] if l == 0 and r == 0: print('Not a moose') elif l != r: print(f'Odd {2 * max(l, r)}') else: print(f'Even {2 * l}')
bfd7447e28cd315f542b2e4c3883455d18c758b4
55dc6e337e634acb852c570274a1d0358b7300a5
/tests/extension/resolver_/single_module/test_resolver_single_module.py
91d5af2b94b4d6d03772bf6913b03b34a1fe7c9a
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
fifoteam/veriloggen
97ad45671f053c85f495b08a030f735fd9822146
23cb7251c0f126d40d249982cad33ef37902afef
refs/heads/master
2020-05-27T00:28:37.575411
2017-02-20T01:47:00
2017-02-20T01:47:00
82,518,602
2
0
null
2017-02-20T05:02:37
2017-02-20T05:02:37
null
UTF-8
Python
false
false
1,162
py
from __future__ import absolute_import from __future__ import print_function import veriloggen import resolver_single_module expected_verilog = """ module blinkled # ( parameter WIDTH = 8, parameter INC = 1 ) ( input CLK, input RST, output reg [8-1:0] LED ); reg [18-1:0] count; always @(po...
b78531b1f1e38104f41d807a2b3eaea73882c0fe
6f05f7d5a67b6bb87956a22b988067ec772ba966
/data/train/python/e658c13140c18d36a72cabf611a7dcaca154d8deurls.py
e658c13140c18d36a72cabf611a7dcaca154d8de
[ "MIT" ]
permissive
harshp8l/deep-learning-lang-detection
93b6d24a38081597c610ecf9b1f3b92c7d669be5
2a54293181c1c2b1a2b840ddee4d4d80177efb33
refs/heads/master
2020-04-07T18:07:00.697994
2018-11-29T23:21:23
2018-11-29T23:21:23
158,597,498
0
0
MIT
2018-11-21T19:36:42
2018-11-21T19:36:41
null
UTF-8
Python
false
false
2,069
py
from django.conf.urls import patterns, include, url # Uncomment the next two lines to enable the admin: # from django.contrib import admin # admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'acidentes_em_rodovias.controller.home', name='home'), # url(r'^acidentes_em_rodovias/', inc...
c142dee0cde1b43a81c0d5697afeee12e008eb37
243d0543f8d38f91954616c014456122292a1a3c
/CS1/0320_herbivwar/draft04/critterAI1.py
90f7ec363bc8911db4de6b7fb77c35166c061e2a
[ "MIT" ]
permissive
roni-kemp/python_programming_curricula
758be921953d82d97c816d4768fbcf400649e969
eda4432dab97178b4a5712b160f5b1da74c068cb
refs/heads/master
2023-03-23T13:46:42.186939
2020-07-15T17:03:34
2020-07-15T17:03:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,944
py
import random, critter class CritterAI1(critter.Critter): def __init__(self, screen, row, col, image, team, name): super().__init__(screen, row, col, image, team, name) def reproduce(self, critter_cells): '''You have to have this in each critter child class so that CritterAIs can repro...
4685ca9231aef2f67fedb4b4c61bf9b489279acf
9cd27764abf5412dffd351a0a4956075191dd67e
/day 2/rename_file.py
932ad167449c991f82661fd48217b3e1ca8221aa
[]
no_license
EHwooKim/Start_camp
1cebb6775f68af1ca6ecaf37bc8ad4d0864e77de
d582e20ce1a3ccb9cd31422b3d5be3b64c2627d5
refs/heads/master
2020-06-17T15:26:14.898280
2019-08-05T00:12:59
2019-08-05T00:12:59
195,963,353
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
import os # 1. dummy ํด๋”๋กœ ๋“ค์–ด๊ฐ„๋‹ค. os.chdir('./dummy') print(os.getcwd()) # 2. ํ•˜๋‚˜์”ฉ ํŒŒ์ผ๋ช…์„ ๋ณ€๊ฒฝํ•œ๋‹ค. => ๋ฐ˜๋ณต๋ฌธ files = os.listdir('.') print(type(files)) #for file in files: # os.rename(file, f'SAMSUNG_{file}') # 3. SAMSUNG์ด ์•„๋‹ˆ๋ผ SSAFY๋ฅผ ๋ถ™์˜€์–ด์•ผ์ง€! for file in files: os.rename(file, file.replace('SAMSUNG_SAMSUNG','SSAFY'))
057ae25723d470ecd9c4657c06e722e7cb93acd7
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/50/usersdata/111/17678/submittedfiles/contido.py
67535e3f4f65734c36914824446b50ff8537f736
[]
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
471
py
# -*- coding: utf-8 -*- from __future__ import division def incluso(a,b): cont=0 for i in range(0,len(a),1): if a[i] in b: cont = cont +1 if cont!=0: return True else: return False n=input('Tamanho da lista : ') a=[] for i in range(0,n,1): a.append(input('E...
4c371b4f7afd64a5b4c2bd58df54c3b208d71660
55a4cd36bbea38fda0792020225d849dbc23f4a8
/initUserState.py
866f870de02309f8d88e1dc455f61454eb88a387
[]
no_license
liyonghelpme/findAMatch
4e4e4960715292e14aa59bbec5407d38562fb4c5
3e8d96106247b72c4b89412ab290d4f6462bdcea
refs/heads/master
2021-01-19T08:10:31.909865
2013-05-04T11:06:16
2013-05-04T11:06:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
#coding:utf8 import MySQLdb import random myCon = MySQLdb.connect(host='localhost', passwd='badperson3', db='UserMatch', user='root', charset='utf8') for i in xrange(0, 100): sql = 'insert into UserState (uid, shieldTime, attackTime, onlineTime, score) values(%d, %d, %d, %d, %d)' % (i, 0, 0, 0, random.randint(0, ...
bd679510fd69971fb1346300fec7f9ac0725b03b
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/453/usersdata/281/109875/submittedfiles/programa.py
22338be239a906640e2e45b03fa532fc2036ad96
[]
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
732
py
# -*- coding: utf-8 -*- n=int(input('Digite a dimensรฃo do tabuleiro: ')) m=[] for i in range (0,n,1): m_linha=[] for j in range(0,n,1): m_linha.append(int(input('Digite o nรบmeros (%d,%d) de entrada: '% (i+1,j+1)))) m.append(m_linha) soma_linha=[] for i in range(0,n,1): c=0 ...
5acb43c07eab61bc8a8fd5259359e49af52e3a64
bbb21bb79c8c3efbad3dd34ac53fbd6f4590e697
/restAPI/manage.py
6f0f73c179c0948e0594011d582e9bccf06ad320
[]
no_license
Nusmailov/BFDjango
b14c70c42da9cfcb68eec6930519da1d0b1f53b6
cab7f0da9b03e9094c21efffc7ab07e99e629b61
refs/heads/master
2020-03-28T21:11:50.706778
2019-01-21T07:19:19
2019-01-21T07:19:19
149,136,999
0
0
null
null
null
null
UTF-8
Python
false
false
554
py
#!/usr/bin/env python import os import sys if __name__ == '__main__': os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'restAPI.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Dj...
050629c4fcfc80b4ca7aa69dbbfa34c66605e8f1
76050b0002dac757866a9fb95dc199918da665bb
/examples/multiagent/multigrid/run_multigrid.py
0b5ef0a06d99e8fcd41152dacded9ea9f749c7e6
[ "Apache-2.0" ]
permissive
RaoulDrake/acme
2829f41688db68d694da2461d301fd6f9f27edff
97c50eaa62c039d8f4b9efa3e80c4d80e6f40c4c
refs/heads/master
2022-12-29T01:16:44.806891
2022-12-21T14:09:38
2022-12-21T14:10:06
300,250,466
0
0
Apache-2.0
2020-10-01T11:13:03
2020-10-01T11:13:02
null
UTF-8
Python
false
false
4,123
py
# python3 # Copyright 2018 DeepMind Technologies Limited. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
e7cb34776c3c785a60bea9c5a22fb9ffeb4f16e9
6220d04a60dae0e44ba2232cba6c79114bf2fd3f
/test_remote_project/test_remote_project/urls.py
565409fca290c5720a80e2fa65d99ec0a96bd81b
[ "MIT" ]
permissive
ollytheninja/django-autocomplete-light
bc65e92ffddbe1332a59bf4d6248976e8c0542b4
6e4723c4a75870e7421cb5656248ef2b61eeeca6
refs/heads/master
2021-01-21T03:50:46.975650
2015-10-07T23:20:47
2015-10-07T23:20:47
44,034,996
0
1
MIT
2020-10-01T19:22:48
2015-10-11T01:36:02
Python
UTF-8
Python
false
false
761
py
from django.conf.urls import patterns, include, url import autocomplete_light autocomplete_light.autodiscover() # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'test_project.views.home', name='home')...
cccc7cd7cbbfc831f29622384dbebe04357cdfdf
d5682d2ef13ad63c68d59d3d0706853a88035ff1
/week3/snmp_app.py
b8ca881ab0a218a4afdf708477df3f8fd7f7a8a6
[ "Apache-2.0" ]
permissive
mikealford/ktbyers_automation
66467f5352a3fbb111fc18f9c90b83cf97a75e79
d8b30e7ddbe27b4bc62b74bfc051b6d1c099f7f9
refs/heads/master
2020-04-17T19:37:42.365653
2019-02-19T01:16:41
2019-02-19T01:16:41
166,872,630
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
import snmp_helper IP = '192.168.122.172' COMMUNITY_STRING = 'galileo1' SNMP_PORT = 161 pynet_rtr1 = (IP, COMMUNITY_STRING, SNMP_PORT) snmp_data = snmp_helper.snmp_get_oid(pynet_rtr1, oid='1.3.6.1.2.1.1.5.0') output = snmp_helper.snmp_extract(snmp_data) print(output)
db966fb201c69d1a48e53305e1b2f6e3e7545f15
d8cf5130deaf3bfba0e5b9d326012fbcddd18fb2
/embed/models/position_embedding_heads/avg_embedding_head.py
7600e1b37195e715a9b593977585a70e4af69f1a
[]
no_license
xmyqsh/embed
0ed297e636fb9d9db20dd908f92ef6212b9c3549
46d07ddf6c5908bdfff86ca3203c325ad34423dc
refs/heads/master
2023-06-11T08:25:37.733238
2021-06-30T10:41:24
2021-06-30T10:41:24
379,320,527
0
0
null
null
null
null
UTF-8
Python
false
false
6,392
py
import torch import torch.nn as nn import torch.nn.functional as F from embed.cv.cnn import ConvModule, bias_init_with_prob, normal_init from embed.cv.runner import auto_fp16 from embed.core.utils import multi_apply from embed.models import POSITION_EMBEDDING_HEADS from .base_position_embedding_head import BasePositi...
c607e65351a974ba2577b564935d2ab18480067d
d039f2a5bbf15cb8bfb99e3b67354a23f2065745
/sisco1/app1/migrations/0001_initial.py
5d6ceeea2fd02745addadf912f0c2a3ff4d28b0e
[]
no_license
prasadnaidu1/django
22ad934eaee1079fbcd0a988245bdc18789a48f1
b64a341d7c8916dd8000d85b738241c0b369b229
refs/heads/master
2020-04-12T19:21:42.565686
2019-04-18T16:35:16
2019-04-18T16:35:16
162,707,226
0
0
null
null
null
null
UTF-8
Python
false
false
597
py
# Generated by Django 2.1.1 on 2018-10-18 11:54 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='friends', fields=[ ('entry', models.Integer...
87c583b7c77c5623c85ce162a31ae8d56854f57f
d5ed141e513dcb6fc8ab851835ec9a4630e3651b
/anaconda/anaconda/lib/python2.7/site-packages/anaconda_navigator/widgets/dialogs/tests/test_update_dialog.py
133fa37a1c4ac99aae7e8bf6af80e4f6edc4f01d
[ "Python-2.0" ]
permissive
starrysky1211/starrysky
713998b366449a5ae4371e38723c56ea40532593
abb642548fb9b431551133657f1a67858041a7e6
refs/heads/master
2022-11-09T21:51:22.558151
2017-02-25T14:42:37
2017-02-25T14:42:37
67,608,074
0
1
null
2022-10-16T05:17:25
2016-09-07T13:16:45
Python
UTF-8
Python
false
false
1,165
py
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # Copyright 2016 Continuum Analytics, Inc. # # May be copied and distributed freely only as part of an Anaconda or # Miniconda installation. # -------------------------------------------------------------------------...
013dd0590c4d0f506c064b1f272085f45e765844
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2541/60698/283571.py
dff37af14ff1eafccf659e6c4b6fba4047e355ac
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
1,407
py
def test(): n = int(input()) matches = list(eval(input())) segList = [] for match in matches: if not getSegList(segList, match): print('[]') return res = [] for seg in segList: topology(res, seg) for i in range(0, n): if i not in res: ...
de3583f4711cd44ff8a4fe3228a6ec6a3a7093e0
b15d2787a1eeb56dfa700480364337216d2b1eb9
/samples/cli/accelbyte_py_sdk_cli/achievement/_admin_create_new_achievement.py
a6fedd2b1b5536aa5a2b987bb622cd5b4b5b5def
[ "MIT" ]
permissive
AccelByte/accelbyte-python-sdk
dedf3b8a592beef5fcf86b4245678ee3277f953d
539c617c7e6938892fa49f95585b2a45c97a59e0
refs/heads/main
2023-08-24T14:38:04.370340
2023-08-22T01:08:03
2023-08-22T01:08:03
410,735,805
2
1
MIT
2022-08-02T03:54:11
2021-09-27T04:00:10
Python
UTF-8
Python
false
false
2,699
py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template_file: python-cli-command.j2 # AGS Achievement Service (2.21.0) # pylint: disable=duplicate-cod...
050ffca21e8e249c55e742ca4256ecf84715d92b
52a32a93942b7923b7c0c6ca5a4d5930bbba384b
/unittests/test_adminsite.py
bc48a7ea4540ec9daadd22614619ced502491a61
[ "MIT-open-group", "GCC-exception-2.0", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LGPL-3.0-only", "GPL-3.0-or-later", "LicenseRef-scancode-warranty-disclaimer", "LGPL-3.0-or-later", "IJG", "Zlib", "LicenseRef-scancode-proprietary-license", "PSF-2.0", "LicenseRef-scancode-python-cwi...
permissive
DefectDojo/django-DefectDojo
43bfb1c728451335661dadc741be732a50cd2a12
b98093dcb966ffe972f8719337de2209bf3989ec
refs/heads/master
2023-08-21T13:42:07.238370
2023-08-14T18:00:34
2023-08-14T18:00:34
31,028,375
2,719
1,666
BSD-3-Clause
2023-09-14T19:46:49
2015-02-19T17:53:47
HTML
UTF-8
Python
false
false
938
py
from .dojo_test_case import DojoTestCase from django.contrib import admin import django.apps class AdminSite(DojoTestCase): fixtures = ['dojo_testdata.json'] def test_is_model_defined(self): for subclass in django.apps.apps.get_models(): if subclass._meta.proxy: continue ...
2dd33060faa5ea97aa63c818cbb22f222dffe9f7
85e3baf2668db0592df3d9f9aa447b9f20ef25d6
/ImageManipulations/BitwiseOperations.py
72025d6bb36fc3b91511cc5460f59a6ff32501ee
[]
no_license
pekkipo/Computer_Vision
cd33a93f5706cd933761d02735f943354c6468fc
55aaeae5b955540722270aab07295e85cfa26a95
refs/heads/master
2021-01-20T06:54:45.912254
2017-05-22T12:59:28
2017-05-22T12:59:28
89,944,925
0
1
null
null
null
null
UTF-8
Python
false
false
1,394
py
# Very useful for masking the images import cv2 import numpy as np # CREATE HALF AN ELLIPSE AND A RECTANGLE # If you're wondering why only two dimensions, well this is a grayscale image, # if we doing a colored image, we'd use # rectangle = np.zeros((300, 300, 3),np.uint8) # Making a square square = np.zeros((300, ...
9605f4f4ccc4457804b9e7322ac882c255c923d5
691f49708fa5121e261650f01f2e9b93e9bdd26f
/skills.py
01571c068d6ecf27898b218f52ef8c80bffac8a8
[]
no_license
michelelee/skills-dictionaries-
29a14980308ea1cc3b76bcc1f1c72a0236fd91e8
9c029792ab238f463b3642815b5dd6316299a6b3
refs/heads/master
2021-01-10T19:43:29.314898
2015-04-21T15:59:29
2015-04-21T15:59:29
34,235,964
0
0
null
null
null
null
UTF-8
Python
false
false
7,307
py
# To work on the advanced problems, set to True ADVANCED = False def count_unique(string1): """Count unique words in a string. This function should take a single string and return a dictionary that has all of the distinct words as keys, and the number of times that word appears in the string. F...
eef5b333c3116e66c2bb74ed66d69cdc15a106b0
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/LightGBM_sklearn_scipy_numpy/source/sklearn/feature_selection/from_model.py
2502643453d797d2ecf32c119697a97f4ab76e5e
[ "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
7,363
py
# Authors: Gilles Louppe, Mathieu Blondel, Maheshakya Wijewardena # License: BSD 3 clause import numpy as np from .base import SelectorMixin from ..base import BaseEstimator, clone, MetaEstimatorMixin from ..externals import six from ..exceptions import NotFittedError from ..utils.metaestimators import if_delegate_h...
d6c2bad547afdcc4851a6ed9eed95609d1640240
2043a3bbe2c2ac4fcf293a578b4c82018871290b
/495-ๆ่Žซๆ”ปๅ‡ป/495.py
61a9feaa9420b9b22f46819187a87d008b5eb0e4
[]
no_license
agave233/leetcode
7f3804a5ec544a9fb1a6ae34a91886d283075e2a
57629c9b0f9a7539bed9f28ba6771ee9d13aafaa
refs/heads/master
2021-09-13T21:42:55.535234
2018-05-04T15:57:24
2018-05-04T15:57:24
124,670,764
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
class Solution(object): def findPoisonedDuration(self, timeSeries, duration): """ :type timeSeries: List[int] :type duration: int :rtype: int """ if timeSeries == []: return 0 res = 0 for i in range(1, len(timeSeries)): ...
7cd3431aa501d19d14be6f45d4b21f1e5eda4263
12317e3617b1bd900d131c2047ec2e3211bcb16b
/musictrack-albumadd.py
3cc9dec9f6c567bfb41ce67dad1f7e0dd357bf09
[]
no_license
apocalyptech/musictrack-cli
b5fd7dedb4c6bb23ceea8e9e717ad2062a087a15
6563f9177df7f0a28039ffeabae005d940bdb205
refs/heads/master
2021-08-12T05:53:44.831965
2021-08-09T15:58:35
2021-08-09T15:58:35
72,576,327
0
0
null
null
null
null
UTF-8
Python
false
false
1,041
py
#!/usr/bin/env python3 # vim: set expandtab tabstop=4 shiftwidth=4: # Adds a new album to the database from app import App, AppArgumentParser # Parse arguments parser = AppArgumentParser(description='Adds a new album to the database') group = parser.add_mutually_exclusive_group() group.add_argument('-l', '--live',...
760804ea8af855cfc7abba00fb01151a90c8e877
0e820627e68413aebe27fbc32dde66a3c99651d3
/flamingo/core/context.py
3a16f23a65abc8322d5d15a2a9a1734cc8c6f8c1
[ "Apache-2.0" ]
permissive
ejoerns/flamingo
17de116008561a4a64613b2b6528eb6d52706281
1d61c99c9ad34dd0a2a652f80783226051e07238
refs/heads/master
2020-04-11T02:53:47.295752
2018-12-14T11:17:23
2018-12-14T11:37:39
161,460,547
0
0
Apache-2.0
2018-12-12T09:00:34
2018-12-12T09:00:34
null
UTF-8
Python
false
false
7,368
py
import logging import shutil import os from flamingo.core.parser import FileParser, ParsingError from flamingo.core.data_model import ContentSet, Content from flamingo.core.utils.imports import acquire class Context: def __init__(self, settings): self.settings = settings # setup logging ...
f79ed3b7e1c14de99d256cd73c36799358a75bf8
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_enthroning.py
9e1ce436218ffae4fce5553d7c0bc87d31485be5
[ "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
232
py
#calss header class _ENTHRONING(): def __init__(self,): self.name = "ENTHRONING" self.definitions = enthrone self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['enthrone']
f4d1328cdd7e3637702bea1c4b7253ed5dfb96ad
206330d8ce5266630f4500be8df90e59d72addc2
/xcube/api/chunk.py
0262939968fce4992e3e91ed0596b24ac8e8afd3
[ "MIT" ]
permissive
dzelge/xcube
4c70dda7e1efc4517e558af7ac9a2d1ae440b782
1e5049a227df4a50435d9aac6aacf2bcbaa3e2dd
refs/heads/master
2020-06-17T15:56:54.187694
2019-07-08T07:39:08
2019-07-08T07:39:08
195,969,440
0
0
MIT
2019-07-09T08:46:03
2019-07-09T08:46:03
null
UTF-8
Python
false
false
3,171
py
import itertools from typing import Dict, Tuple, Iterable import numpy as np import xarray as xr from xcube.util.dsio import FORMAT_NAME_ZARR, FORMAT_NAME_NETCDF4 def chunk_dataset(dataset: xr.Dataset, chunk_sizes: Dict[str, int] = None, format_name: str = None) -> xr.Dataset: ...
3ac5574809b0a987b095ff860930ce7889a6010d
3b9338d99cf8090387418e32ca81617f072c39fb
/build_system_kit/extpy/runme.py
9984d9c89d00a26c95c9f157fb45f863659100e9
[]
no_license
sillsdevarchive/wsiwaf
8ca14c286bafceb9ee6fad740b64ad7131282dc3
2dcddafc3602a7220acbe995df4ba85abb06b767
refs/heads/master
2020-12-30T17:10:21.701380
2017-05-12T05:12:17
2017-05-12T05:12:17
91,052,898
0
1
null
null
null
null
UTF-8
Python
false
false
715
py
#! /usr/bin/env python # encoding: utf-8 """ Create a waf file able to read wscript files ending in ".py" execute a small test to show that it works The waf file includes "extpy.py" which performs the required modifications """ import os, subprocess up = os.path.dirname join = os.path.join cwd = os.getcwd() extpy ...
[ "tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85" ]
tnagy1024@f0382ac9-c320-0410-b3f0-b508d59f5a85
6370647795edf476bd74936a53934d7af363aa50
a6ed990fa4326c625a2a02f0c02eedf758ad8c7b
/meraki/sdk/python/getOrganizationSamlRole.py
59bfeed4271e31d35e33f75e08f64889f85458c1
[]
no_license
StevenKitavi/Meraki-Dashboard-API-v1-Documentation
cf2352976c6b6c00c17a5f6442cedf0aeed46c22
5ed02a7def29a2ce455a3f2cfa185f76f44789f5
refs/heads/main
2023-03-02T08:49:34.846055
2021-02-05T10:31:25
2021-02-05T10:31:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
465
py
import meraki # Defining your API key as a variable in source code is not recommended API_KEY = '6bec40cf957de430a6f1f2baa056b99a4fac9ea0' # Instead, use an environment variable as shown under the Usage section # @ https://github.com/meraki/dashboard-api-python/ dashboard = meraki.DashboardAPI(API_KEY) organization_...
af55da00f419a54f60e6f9d444592cf6fc9dfe8a
09301c71638abf45230192e62503f79a52e0bd80
/besco_erp/besco_sale/general_sale_margin/report/__init__.py
2b722f4eaeb7ee64f222222d8f751f72bc36c203
[]
no_license
westlyou/NEDCOFFEE
24ef8c46f74a129059622f126401366497ba72a6
4079ab7312428c0eb12015e543605eac0bd3976f
refs/heads/master
2020-05-27T06:01:15.188827
2017-11-14T15:35:22
2017-11-14T15:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
# -*- coding: utf-8 -*- ############################################################################## # # ############################################################################## import sales_fiscalyear # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
dd080f3fb34b5813c336f55367f9d6d793eaf669
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/apimanagement/v20190101/get_api_version_set.py
c4fb809e041874e3b5c0a04404aedfa32889fdd7
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
5,626
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 from ... import _utilities, _tables __a...
7fb792bad28f1c928186db0504bcf02a1cacecad
aa81fe0b271ffddfd9f3bac6ebf0d4c503fb1ad8
/MultiPlanarUNet/sequences/isotrophic_live_view_sequence_3d.py
97bb66d6d3081b0ef8919a52bcde07fff1c54eca
[ "MIT" ]
permissive
admshumar/MultiPlanarUNet
dd295d182e82ce903025ff2cb4895b2727c7b56a
6b59e8f2e0fb9601c17dc32eec4bb114971bf0a1
refs/heads/master
2020-07-31T12:12:41.695269
2019-08-01T07:36:04
2019-08-01T07:36:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,050
py
from MultiPlanarUNet.sequences.isotrophic_live_view_sequence import IsotrophicLiveViewSequence from MultiPlanarUNet.interpolation.sample_grid import sample_box, sample_box_at from MultiPlanarUNet.interpolation.linalg import mgrid_to_points import numpy as np class IsotrophicLiveViewSequence3D(IsotrophicLiveViewSequen...
a5f77e33734ac4166f39a977b6fb45bb27e0877b
0ce10b36e9e886c79dca46e2247603b17475206a
/cell2cell/external/__init__.py
e8bb83dc0a7e1ded1f6450b3e063913378edc7e8
[ "BSD-3-Clause" ]
permissive
earmingol/cell2cell
dd5e5186a8793097db4e28bdf23c340399effd22
9fa855d48dc9c4b132fc59e2de1db23a37dc7c5e
refs/heads/master
2023-05-31T02:12:51.127542
2023-04-20T19:39:54
2023-04-20T19:39:54
182,623,687
46
10
BSD-3-Clause
2023-04-20T19:39:55
2019-04-22T04:37:54
Python
UTF-8
Python
false
false
257
py
from cell2cell.external.pcoa import (pcoa, pcoa_biplot, _check_ordination) from cell2cell.external.goenrich import (goa, ontology) from cell2cell.external.gseapy import (load_gmt, generate_lr_geneset, run_gsea) from cell2cell.external.umap import (run_umap)
79b59580a3c12ad1a907baf87ad0c83e41650f0c
73744790709a75fa15bd3a9c141777b81acf6402
/dsl_parser/tests/test_get_consumers.py
e7612b10eeaeb7bd0d54a87f5825c0e58de59c58
[ "Apache-2.0" ]
permissive
cloudify-cosmo/cloudify-common
aea8f9b9b1f5d85a23b6f8d3f61b8a445d2fc27e
246550c150e33e3e8cf815e1ecff244d82293832
refs/heads/master
2023-08-24T12:44:40.277500
2023-08-17T08:54:31
2023-08-17T08:54:31
132,621,915
8
16
Apache-2.0
2023-08-24T12:27:03
2018-05-08T14:35:12
Python
UTF-8
Python
false
false
3,239
py
from dsl_parser import functions from dsl_parser.tasks import prepare_deployment_plan from dsl_parser.tests.abstract_test_parser import AbstractTestParser class TestGetConsumers(AbstractTestParser): def setUp(self): super(TestGetConsumers, self).setUp() self.mock_storage = self.mock_evaluation_sto...
26d99bcd4bb2a02032289382381ac6d94fc386f1
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/sdssj_092520.01+273619.7/sdB_SDSSJ_092520.01+273619.7_coadd.py
3c92de12f087f3a8d072508af616ae85d6589595
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
from gPhoton.gMap import gMap def main(): gMap(band="NUV", skypos=[141.333375,27.605472], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_SDSSJ_092520.01+273619.7/sdB_SDSSJ_092520.01+273619.7_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_...
0f95cdce65712bdf588c43e499e4f3c3114fd710
e8a8d8099419306feb8849625f65357456b6a2ae
/proj/app/models.py
4beb0e5041f2baa1d0e3b62ee95cc1796dee1cb1
[]
no_license
Sentret/classificator
57224597f64f44462be61228e6ed7e18b6973181
86aafc5884215918f1cdac92f17360ac671dc703
refs/heads/master
2021-08-30T09:52:48.157374
2017-12-17T10:17:39
2017-12-17T10:17:39
114,526,924
0
0
null
null
null
null
UTF-8
Python
false
false
1,203
py
from django.db import models class Topic(models.Model): name = models.CharField(max_length=100) classifier = models.ForeignKey('Classifier', blank=True, null=True) class Meta: unique_together = ('name', 'classifier',) def __str__(self): return self.name class Classifier(models...
34d9562b56d5ed5af1c74797c367485b191fa909
2844812adf8e919c6629463e33a1d9a3634ec0cc
/tests/benchmarks/base_utils.py
648eb5f0e2caa2f0b29dac0e485f6bc089b50e29
[ "Apache-2.0" ]
permissive
tods-doc/d3m
0d920a4a88172c925cce7cd75c37296c3522a0c5
e25793d4aaa9a8fdb63ac33bf1c045b96d6067a6
refs/heads/master
2023-02-08T22:07:43.279961
2021-01-05T21:27:15
2021-01-05T21:27:15
296,895,826
1
0
null
null
null
null
UTF-8
Python
false
false
1,618
py
from d3m import container from d3m.base import utils as base_utils class CombineColumns: params = [[100, 300, 500, 700, 900]] param_names = ['columns'] def setup(self, columns): self.large_dataframe_with_many_columns = container.DataFrame({str(i): [j for j in range(5)] for i in range(columns)}, c...
9fd4dc4e6e75819bbed57836d6ef6fe3242ab4b4
bd71b063f13958e07c9e16cd171d3fc0e1c58e4d
/0x0A-python-inheritance/100-my_int.py
f8cf0a3390d1775fbb032aa8af847e38377d73ed
[]
no_license
feliciahsieh/holbertonschool-higher_level_programming
2aecd291f85fe69ab11331bb2d5372c6d67e1af6
017e8b87f9d8967b55ccc68ed30921572d4ddb65
refs/heads/master
2021-01-01T20:46:36.901665
2019-04-10T18:24:59
2019-04-10T18:24:59
98,931,138
2
0
null
null
null
null
UTF-8
Python
false
false
541
py
#!/usr/bin/python3 class MyInt(int): """ MyInt - class that inherits from int """ def __eq__(self, other): """ __eq__ - redefine == to != Args: other - other operand Return: True if Not_Equal to """ return int(self) != int(other) ...