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
4afc9e26c651892b4c66a8e40b134a2277fdb425
be4759201435054c55ca76d4a973aee8c549e1a6
/sockets/mn_edge_indices_list_socket.py
82fca744d5684176868484ad02929b8ee962b360
[]
no_license
vvFiCKvv/animation-nodes
75f94549f82702b3ac5f548f009dd2202c694240
6988606b8c3601d428fa3fe32c77c7b440eb7c38
refs/heads/master
2021-01-17T00:29:13.299665
2015-04-25T16:46:20
2015-04-25T16:46:20
27,539,581
0
0
null
null
null
null
UTF-8
Python
false
false
657
py
import bpy from animation_nodes.mn_execution import nodePropertyChanged from animation_nodes.mn_node_base import * class mn_EdgeIndicesListSocket(mn_BaseSocket, mn_SocketProperties): bl_idname = "mn_EdgeIndicesListSocket" bl_label = "Edge Indices List Socket" dataType = "Edge Indices List" allowedInputTypes = ["Ed...
[ "mail@jlucke.com" ]
mail@jlucke.com
7887f18e6d71f9eaf61d02aa2d134eb927a02aec
d3638776a2ce455eb42f29c9c06e267392b6815a
/reading/book/migrations/0007_auto_20180703_2156.py
d188bede58a1d3c4590c803e1b5a26ae3aa7e460
[ "MIT" ]
permissive
Family-TreeSY/reading
abce1b5e6047c72867839303ab0181c7a4997913
a35d1242ce3a7303fe125c11de8125bd9afbdb3c
refs/heads/master
2020-03-20T04:53:18.089247
2018-07-09T08:51:32
2018-07-09T08:51:32
137,197,886
2
1
null
null
null
null
UTF-8
Python
false
false
749
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2018-07-03 13:56 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('book', '0006_auto_20180619_2116'), ] operations = [ migrations.AddField( ...
[ "286210002@qq.com" ]
286210002@qq.com
bb89c0558e9830a7ba414e9cea296ffb578f8509
e49b654d3db99773390c5b9686df9c99fbf92b2a
/linked_lists/linked_list.py
f018e58590e973d2a1aac0516779018498713c0c
[]
no_license
hao89/diary_of_programming_puzzles
467e8264d0ad38768ba5ac3cfb45301293d79943
0e05d3716f28075f99bbd7b433d16a383209e57c
refs/heads/master
2021-01-16T00:49:38.956102
2015-08-25T13:44:53
2015-08-25T13:44:53
41,692,587
1
0
null
2015-08-31T18:20:38
2015-08-31T18:20:36
Python
UTF-8
Python
false
false
455
py
class LinkedListNode: def __init__(self, data): self.next = None self.data = data def __str__(self): node_str = "" current_node = self while current_node: if current_node.next: node_str = node_str + str(current_node.data) + ", " el...
[ "me@davidadamojr.com" ]
me@davidadamojr.com
7153a4c17d679b6a69da201b4c53f56cfe0c5619
517a904955033092aec11288151d725548226abc
/pandas_tutorial/data_advance/df_column_order.py
bd0d1a7f8f2a20eab540746de7dffb1501d42be3
[]
no_license
MinSu-Kim/python_tutorial
ae0a4e3570aa4cb411626cefbc031777364764d5
ed0c08892822d7054161c9e8f98841370868e82d
refs/heads/master
2021-06-16T16:15:30.349719
2021-05-26T04:59:47
2021-05-26T04:59:47
207,266,202
1
0
null
null
null
null
UTF-8
Python
false
false
1,010
py
import seaborn as sns print("# titanic 데이터셋의 부분을 선택하여 데이터프레임 만들기") titanic = sns.load_dataset('titanic') df = titanic.loc[0:4, 'survived':'age'] print(df, '\n') print("# 열 이름의 리스트 만들기") columns = list(df.columns.values) # 기존 열 이름 print("ssss", sorted(columns, reverse=True), type(sorted(columns, reverse=True))) prin...
[ "net94.teacher@gmail.com" ]
net94.teacher@gmail.com
fd69e5c0ad13bddd3665e157cdd85e17f6da1920
d25003d4e1a1cd3b5eca1525c0119da47579f294
/scripts/sort_double.py
51093694d8a595573520419157b7d218af437429
[]
no_license
rd37/GooglePracticeProjects
ceabcb838bd4bd50397b8fdf775e810db320dbb1
b3543ada39b8c24f688a41cf0b745482013a93d9
refs/heads/master
2016-09-06T16:50:41.303580
2014-12-12T03:23:23
2014-12-12T03:23:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
441
py
''' Created on Dec 10, 2014 @author: ronaldjosephdesmarais ''' ints = [5,8.2,1,7,4.1,13,12,4.1,8.2] print "------use python sorted------" print sorted(ints) print "------use dictionary ------" srt_dict = {} srt_arr = [] for i in ints: if i not in srt_dict: srt_dict[i]=1 else: srt_dict[i]=s...
[ "ron.desmarais@gmail.com" ]
ron.desmarais@gmail.com
17b011426ea5dd281920f3b73b76457056e5bd1b
4ce6fb5c49ee6ec4b5df9e056040382812a8a591
/product/migrations/0029_auto_20191001_0528.py
2120012f6b7045350592076be1c5027236969a78
[]
no_license
yantrashalait/Multronics
198c807a0bb2b8c1ae7bcc2325436467ee8a90b3
c85b5a263fe1507c994236bba26ad12d93157622
refs/heads/master
2021-02-14T18:28:25.984830
2021-01-18T09:19:21
2021-01-18T09:19:21
244,825,522
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
# Generated by Django 2.2.4 on 2019-10-01 05:28 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('product', '0028_aboutiteam'), ] operations = [ migrations.AddField( model_name='product', name='visibility', ...
[ "saneprijal@gmail.com" ]
saneprijal@gmail.com
24567018d6cc56c197cd0f52a9cf7d6b9311506f
349d6ff272a4a113cee5b0ab7849f46305ebfb13
/sc2/game_data.py
2e69241ddf4f3f9265fd5ee0cf9aa760d4ddda4e
[ "MIT" ]
permissive
raimohanska/python-sc2
dafec03d73b905b092c92aefd5ee9d896e8df5e1
fb936be1618b4c8b8bf453d76d3f9894780a0f21
refs/heads/master
2021-09-03T04:04:46.630550
2018-01-05T12:50:11
2018-01-05T12:50:11
116,264,519
0
0
null
2018-01-04T13:41:56
2018-01-04T13:41:55
null
UTF-8
Python
false
false
2,856
py
from functools import lru_cache from .data import Attribute from .ids.unit_typeid import UnitTypeId from .ids.ability_id import AbilityId class GameData(object): def __init__(self, data): self.abilities = {a.ability_id: AbilityData(self, a) for a in data.abilities} self.units = {u.unit_id: UnitTy...
[ "hannes.karppila@gmail.com" ]
hannes.karppila@gmail.com
7a286bf190f3a7ccafa0b6a2278c68f4aebdc583
40280c446e21c07ac3ffd20c5eda064a05093698
/easy_module_attribute_getter/custom_transforms.py
4eb9cbf5ed62de0c0da0fdd380f0b4112685e08a
[ "MIT" ]
permissive
KevinMusgrave/easy-module-attribute-getter
884fdee1960b792db49e09edc5de0d268fd6ac8a
e0a733c02f2e6a969191a75c79159f45440c969f
refs/heads/master
2021-07-04T02:18:17.113242
2021-01-21T03:32:22
2021-01-21T03:32:22
218,787,854
9
2
null
null
null
null
UTF-8
Python
false
false
686
py
import torchvision.transforms.functional as F from PIL import Image class ConvertToBGR(object): """ Converts a PIL image from RGB to BGR """ def __init__(self): pass def __call__(self, img): r, g, b = img.split() img = Image.merge("RGB", (b, g, r)) ...
[ "tkm45@cornell.edu" ]
tkm45@cornell.edu
e9aaecada9a17d7d8b636210f8d990f11a900e07
16631cf7cd4a70f2cd2750851649d3eff5e17724
/2022/day15/part2.py
00daf3f196e692462e068c11a24b226c3febf106
[]
no_license
kynax/AdventOfCode
1dd609a3308d733f2dd7d4ea00508d2da73180b9
36a339241dd7a31ebe08a73e5efa599e5faeea1a
refs/heads/master
2022-12-21T13:32:52.591068
2022-12-16T22:41:30
2022-12-16T22:41:30
48,439,585
0
0
null
null
null
null
UTF-8
Python
false
false
1,241
py
import sys grid = {} sensitivity = [] sensors = [] beacons = [] for l in sys.stdin: l = l.strip().split(' ') sx, sy, bx, by = int(l[2][2:-1]), int(l[3][2:-1]), int(l[8][2:-1]), int(l[9][2:]) grid[(sx,sy)] = 'S' grid[(bx,by)] = 'B' dx,dy = abs(sx-bx), abs(sy-by) md = dx+dy sensitivity...
[ "guilemay@gmail.com" ]
guilemay@gmail.com
5a9660779063959ecef329d1b58ac42c1dc13e5e
0da3ebae606295ee3c1613004c6f21650e914841
/codestreak/extensions.py
07761de1820e73e03a2ea21169597925d9435969
[]
no_license
mfwarren/codestreak.io
38bac87f2ddc6e7cff56a4bc95b6b1ca4a41ef1a
bd37dd7ad55c9926e7a4752afca5986c08145d34
refs/heads/master
2020-06-11T06:21:27.012529
2019-03-03T15:43:32
2019-03-03T15:43:32
75,747,414
3
1
null
null
null
null
UTF-8
Python
false
false
448
py
# -*- coding: utf-8 -*- """Extensions module. Each extension is initialized in the app factory located in app.py.""" from flask_debugtoolbar import DebugToolbarExtension from flask_migrate import Migrate from raven.contrib.flask import Sentry from flask_sqlalchemy import SQLAlchemy from flask_wtf.csrf import CsrfProtec...
[ "matt.warren@gmail.com" ]
matt.warren@gmail.com
d911a1de75e301eed643472356197ac68faf3647
b0fab024e9b7e7bd51c18c5578f0f45314808592
/sine_competition_url/competition_url.py
692142fbbe0f49ea5ac2e79373fac3914a120a1b
[]
no_license
dhecar/SINERGIA
a34d98fda84ce8ca8d2f67b89680bbf19c15fe1b
678cfd41df8045645be130d2f3d51399908b15fd
refs/heads/master
2021-01-23T11:07:48.724177
2017-04-20T10:51:07
2017-04-20T10:51:07
33,182,317
1
7
null
2015-08-31T20:59:43
2015-03-31T11:45:11
Python
UTF-8
Python
false
false
471
py
import openerp.addons.decimal_precision as dp from openerp.tools.translate import _ from openerp.osv import fields, osv import urllib import re class competition_url(osv.osv): _name = 'competition.url' _description = 'URL for competition' _table = 'competition_url' _rec_name = 'url_competition' _...
[ "dhecar@gmail.com" ]
dhecar@gmail.com
752e9f1a6a208543137c36cda179ddf64539f177
b4a0380acd79a21c5596bfa5fac6eb337ef5359a
/build/lib.linux-x86_64-3.8/maskrcnn_benchmark/data/datasets/evaluation/kitchen/__init__.py
262e29603168969af9a493dd19f6620fd1abb4d8
[]
no_license
xiaofeng-c/Morphable-Detector
781104d8a7221eb03c55a67f51f696e46ded4003
3e50bb20493c3e0b99d37971e51487124aa08b5b
refs/heads/master
2023-08-27T20:53:21.606442
2021-10-18T22:28:38
2021-10-18T22:28:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
import logging from .kitchen_eval import do_kitchen_evaluation def kitchen_evaluation(dataset, predictions, output_folder, box_only, **_): logger = logging.getLogger("maskrcnn_benchmark.inference") if box_only: logger.warning("kitchen evaluation doesn't support box_only, ignored.") logger.info("p...
[ "zhaoxiangyun915@gmail.com" ]
zhaoxiangyun915@gmail.com
52fe5c0ff1bb7e21c43186b82e52b142647c0566
83ed1e2f176133c03a5f6dfa504b8df15ae71efb
/python/secondary/jnet/jnet.py
d29d5ce53337781076ea7ea61b55aca71ca18040
[]
no_license
jmborr/code
319db14f28e1dea27f9fc703be629f171e6bd95f
32720b57699bf01803367566cdc5fff2b6bce810
refs/heads/master
2022-03-09T16:11:07.455402
2019-10-28T15:03:01
2019-10-28T15:03:01
23,627,627
0
0
null
null
null
null
UTF-8
Python
false
false
5,652
py
#!/usr/bin/python import os,sys,re from jobs.job import pastry from inputArgs.inputArgs import inpHand from utilities.small_utilities import Bye,junkName from utilities.codedir import codedir from seq.blastManager import blastRun from seq.fastaManager import importFastaEntry from seq.msa import gen_msa from seq.letter...
[ "borreguero@gmail.com" ]
borreguero@gmail.com
8873e1b784b24057a8e64655dca5dc3c4d1f3d87
5603625e865a7cfe415c1aae4035a890aeb23864
/bin/mnu.py
a178061c01bb7c57e4e3d48aa0bfeed54f50e963
[]
no_license
msyriac/peakaboo
aa3ac1396c2af0862f9c5891a20a08dddd97068b
8bb8a50262695733b086984f7d89ff4f04187278
refs/heads/master
2021-01-21T13:30:31.434801
2018-05-16T18:53:34
2018-05-16T18:53:34
102,130,912
1
0
null
null
null
null
UTF-8
Python
false
false
4,997
py
import numpy as np from peakaboo import liuSims as ls import orphics.tools.io as io import os,sys import orphics.analysis.flatMaps as fmaps from mpi4py import MPI from orphics.analysis.pipeline import mpi_distribute, MPIStats import orphics.analysis.flatMaps as fmaps from enlib import enmap, resample # Get MPI comm co...
[ "mathewsyriac@gmail.com" ]
mathewsyriac@gmail.com
50499ed278f1c769e6003b5e965f70ca46dd96e2
8972658ca2c64703e8281db89d7a6ac47cbabbf7
/backend/tests/models.py
db9754be03118136304be7ed51dc6c7b912ed427
[ "MIT" ]
permissive
denisorehovsky/linkanywhere
15721824719cc8a959cdddb4178cfe754eb4862d
e21d6725fbe0e74a7301e40f9d9bdbac17c68e68
refs/heads/master
2022-07-21T16:16:17.412930
2017-08-24T06:32:37
2017-08-24T06:32:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
567
py
import uuid from django.db import models from linkanywhere.apps.base.behaviors import Published class TestModel(models.Model): """ Base for test models that sets app_label, so they play nicely. """ id = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) class Meta: a...
[ "denis.orehovsky@gmail.com" ]
denis.orehovsky@gmail.com
9ab61ddea3a8f45f1f40b9490b41e4da6d9a6544
786de89be635eb21295070a6a3452f3a7fe6712c
/SConsTools/tags/V00-00-16/src/standardExternalPackage.py
f433403d52307a3f120d028b2d80755d194bb0c7
[]
no_license
connectthefuture/psdmrepo
85267cfe8d54564f99e17035efe931077c8f7a37
f32870a987a7493e7bf0f0a5c1712a5a030ef199
refs/heads/master
2021-01-13T03:26:35.494026
2015-09-03T22:22:11
2015-09-03T22:22:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,349
py
#=============================================================================== # # SConscript fuction for standard external package # # $Id$ # #=============================================================================== import os import sys from os.path import join as pjoin from fnmatch import fnmatch from SCon...
[ "salnikov@b967ad99-d558-0410-b138-e0f6c56caec7" ]
salnikov@b967ad99-d558-0410-b138-e0f6c56caec7
80137af34837964be8bf789dbbcf21a7a1f05a3a
3d386ef093427c227f0ba6637eedfbce044a2e9e
/tfbert/optimization/create_optimizer.py
ac6c1abc5c6bf2aebe07f51b89fe61f37dbec2ae
[]
no_license
HaierAI/tfbert
c3eeb77af70e79e925e72c393a3e8229feaf1a4a
3779e59a4ebe7458ae732fef547f1168badbba2b
refs/heads/master
2023-07-09T05:25:19.015760
2021-08-16T12:27:37
2021-08-16T12:27:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,278
py
# -*- coding:utf-8 -*- # @FileName :create_optimizer.py # @Time :2021/1/31 19:58 # @Author :huanghui import tensorflow.compat.v1 as tf from .adamw import AdamWeightDecayOptimizer from .lamb import LAMBOptimizer from .schedule import lr_schedule def create_optimizer( learning_rate, num_train_s...
[ "m13021933043@163.com" ]
m13021933043@163.com
84f66a0bf9e3af5d28f84b3115109b132927b474
d66818f4b951943553826a5f64413e90120e1fae
/hackerearth/Algorithms/Chandu and chandni's secret chat/solution.py
5347d87bca861f96880c7fd9b656c67c7b40092f
[ "MIT" ]
permissive
HBinhCT/Q-project
0f80cd15c9945c43e2e17072416ddb6e4745e7fa
19923cbaa3c83c670527899ece5c3ad31bcebe65
refs/heads/master
2023-08-30T08:59:16.006567
2023-08-29T15:30:21
2023-08-29T15:30:21
247,630,603
8
1
MIT
2020-07-22T01:20:23
2020-03-16T06:48:02
Python
UTF-8
Python
false
false
605
py
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here t = int(input()) for _ in range(t): s, ...
[ "hbinhct@gmail.com" ]
hbinhct@gmail.com
b2b80179d0f8ddc7a76ed005cbc3670219bb8091
28f0dc2b48ed019dfef08d84e842c5d75e116dfc
/Versions/Release.2.x.x/py/OBSOLETE/BibleTable.py
cced9d9f98a8cb768a4c415715efb06a18c3eb2b
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
garygriswold/SafeBible
9da0e8d89cb08888b8cf48773b4b3860086c49f7
2d378e84cbd6b81641bcccd6ba66699d24208548
refs/heads/master
2022-02-25T19:41:10.367183
2019-08-22T03:35:02
2019-08-22T03:35:02
34,028,119
0
0
MIT
2019-10-30T07:11:44
2015-04-16T01:40:19
TSQL
UTF-8
Python
false
false
3,942
py
# # This program generates SQL statements to create and populate the Bible table # This was previously called the Version table # import io import os import json out = io.open("sql/bible.sql", mode="w", encoding="utf-8") out.write(u"DROP TABLE IF EXISTS Bible;\n") out.write(u"CREATE TABLE Bible (\n") out.write(u" bi...
[ "gary@shortsands.com" ]
gary@shortsands.com
1f33447947159a11ecf117ebfd09d4a0232c26ed
890a6921b9dbc3d849ee51366c76a791761d35d2
/.qt_for_python/uic/PlacefieldVisualSelectionWidgetBase.py
e5bfd84f65b40625dd5b625a786686f1a3fc1927
[]
no_license
CommanderPho/Spike3D
87e1ea17a76080e18e835e9d015e7fe7bb3426e4
63e5e78c3bcb28f3dbab02d6354e6eb83cbccc2a
refs/heads/master
2023-08-17T10:40:44.389682
2023-08-16T10:57:12
2023-08-16T10:57:12
413,545,455
2
0
null
2022-10-22T05:54:57
2021-10-04T18:48:06
Jupyter Notebook
UTF-8
Python
false
false
4,107
py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'c:\Users\pho\repos\pyPhoPlaceCellAnalysis\src\pyphoplacecellanalysis\GUI\Qt\PlacefieldVisualSelectionControls\PlacefieldVisualSelectionWidgetBase.ui' # # Created by: PyQt5 UI code generator 5.15.4 # # WARNING: Any manual changes made to this...
[ "CommanderPho@users.noreply.github.com" ]
CommanderPho@users.noreply.github.com
db8551c3b00fdaa9cea83beff7f976a27482b764
0486b6ccf883e9cd7a24bbd89b5420e7de2172b9
/DRF Study Material/Django REST Code/gs23/manage.py
0fd63ec5bb04d9d85aeb9039d1fb86e9be16bd10
[]
no_license
ajitexl/restfrmaework
2980203d7faa6c8364288283758d32c8f2a37817
9ab203748e623516365d9924dcc68acc786a66e1
refs/heads/main
2023-02-03T08:52:00.672047
2020-12-10T09:50:51
2020-12-10T09:50:51
320,222,997
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gs23.settings') try: from django.core.management import execute_from_command_line exc...
[ "you@example.com" ]
you@example.com
a9d0bc7546f7ca3723a17a3f5fd7ba086d51f28c
21bf726bf895569a41a8b8d2db6772dc51f46cfd
/OTHERS/Interviews/Akuna.py
abba9d6a6b4e54cda0048899107ec10a4fa00cc0
[]
no_license
jeffsnguyen/Python-1
dd924d25337cd6ac21e321d7b2c5ac17c065d94b
463d32a61a760d076656c73c9f8c9fadf262438d
refs/heads/master
2022-03-23T09:50:04.476094
2019-12-23T12:32:49
2019-12-23T12:32:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,844
py
def if_none_trivial(x): if x==0: return 0 else: return 1 def violet_search_icecream_shop(stock, max_capacity,demands,n_days,overnight_fee,price,deliver_fee,total_expense=[],expense=0): delivery_min = max(0,demands[0]-stock) delivery_max = max(0,sum(demands) - stock) for del...
[ "jerryxyx@163.com" ]
jerryxyx@163.com
5b771ee4fa02ac609d1a9cff17e724f9d74cdcdc
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/5041434/snippet.py
a978469c85746091bf61c1a14c4ddfde95ab6244
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,470
py
import requests from bs4 import BeautifulSoup, NavigableString def get_review_text(block): """Get just the text of a review from it's DIV""" strings = [] for possible_text in block.children: if isinstance(possible_text, NavigableString): stripped_text = possible_text.strip() ...
[ "gistshub@gmail.com" ]
gistshub@gmail.com
dac74fe07f41bad595f3daece43a0047c4795112
c105570f12f1d56087ffb831f5d34cd763d6c90b
/top/api/rest/HotelRoomImgDeleteRequest.py
55f04fe4e6cf46864d486cf6bd4e5cf9dc7d3abd
[]
no_license
wjianwei126/Alinone
01607423833d7736b2fd3c77e9e21f63c69b4e4c
80144d4657cb049d651c09647eb245405240f12f
refs/heads/master
2020-12-07T05:14:58.746777
2015-05-06T12:48:33
2015-05-06T12:48:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
337
py
''' Created by auto_sdk on 2014-11-09 14:51:18 ''' from top.api.base import RestApi class HotelRoomImgDeleteRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.gid = None self.position = None def getapiname(self): return 'taobao.hotel.r...
[ "rapospectre@0163.com" ]
rapospectre@0163.com
38989ea3cc2d9323d7df74726b4cbe4770c237d1
1d0895269d1d93bab6a0b595c806418b1eeda735
/qiskit/providers/ibmq/api/rest/experiment.py
21cea49b8c27b3ce319c61a25cd6e4314e06b812
[ "Apache-2.0" ]
permissive
Qiskit/qiskit-ibmq-provider
3921bf5f77a9621013ada7ea5e18fa199470650c
590f68d9ddb42a45c4ac8a8626ea60da85575b21
refs/heads/master
2023-06-08T03:17:52.745052
2023-06-05T14:20:16
2023-06-05T14:20:16
163,192,893
240
182
Apache-2.0
2023-06-05T14:20:18
2018-12-26T15:22:11
Python
UTF-8
Python
false
false
5,218
py
# This code is part of Qiskit. # # (C) Copyright IBM 2020. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivative wo...
[ "noreply@github.com" ]
Qiskit.noreply@github.com
be022fe3fefde1e08b0c0cafbf8646767f2ba51d
a65103e2f33192d9e6fcf8c8852f263369190175
/core/models.py
c653f88b69de6db591ec935f5bf162047d706249
[]
no_license
dhilipsiva/ircman
e23153572d5f8cf09d4ed7d47c47b90050762489
767b42f321598b155f2fd74729947ed92f8da160
refs/heads/master
2023-07-10T06:42:45.855788
2015-07-22T04:17:00
2015-07-22T04:17:00
35,310,806
6
0
null
2023-09-05T05:15:21
2015-05-09T01:58:04
Python
UTF-8
Python
false
false
7,308
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # # vim: fenc=utf-8 # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # """ File name: models.py Version: 0.1 Author: dhilipsiva <dhilipsiva@gmail.com> Date created: 2015-05-09 """ __author__ = "dhilipsiva" __status__ = "development" """ """ # Python imports impo...
[ "dhilipsiva@gmail.com" ]
dhilipsiva@gmail.com
86c9b86af42f911790b3c9a9171e90b2a3a6d5ab
6b8c3974d3ce5f7841e51dcb406666c0c5d92155
/heat/heat/tests/mistral/test_mistral_cron_trigger.py
f675a7962563de8a3c4633e373b00471eb251b3b
[ "Apache-2.0" ]
permissive
swjang/cloudexchange
bbbf78a2e7444c1070a55378092c17e8ecb27059
c06ed54f38daeff23166fb0940b27df74c70fc3e
refs/heads/master
2020-12-29T03:18:43.076887
2015-09-21T07:13:22
2015-09-21T07:13:22
42,845,532
1
1
null
2015-09-21T07:13:22
2015-09-21T05:19:35
C++
UTF-8
Python
false
false
4,428
py
# # 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, software # ...
[ "kiku4@kinx.net" ]
kiku4@kinx.net
aba17ae60493775a1cbdd3dc41b31bb2ee9afbcd
669e9241b02bdaa303fbc2fd4023b90d4d179a59
/Cash Register/base.py
272ceeded4ef34a761806bab212fe9e20d79a550
[]
no_license
benjaminpotter/HatchProjects
0854cf46ae7c3781468116a5d63b703dd54ae68c
7f6a948d3474c755d071751b725c059e6c7f3553
refs/heads/master
2022-01-28T16:58:03.449073
2019-08-16T13:47:30
2019-08-16T13:47:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,146
py
def setup(): size(400, 400) bg_color = color(120, 120, 120) bills_and_coins = [100, 50, 20, 10, 5, 2, 1, 0.25, 0.10, 0.5] def draw_cash_registerfunction(): noStroke() fill(50, 50, 50) rect(50, 50, 300, 220, 0) fill(225, 225, 225) rect(87, 130, 225, 35, 0) fill(225, 225, 225) rect(87, 210, 2...
[ "noreply@github.com" ]
benjaminpotter.noreply@github.com
4077f2c69b513dfbb09a6279cfbd85f564d84ab5
9f9ec8bebfe8b7ac8e60dcaa23153abe976585e6
/dataCommons/postingAPI/tasks.py
1ade94032b03b28ce48f6ba157446b40d942de40
[]
no_license
erikwestra/data-commons
bbf32cd9b4b64ace28bcb049190d8272a23ed891
e3ed33fad104157ff505bb02bc7ae981f8ba3b11
refs/heads/master
2020-04-11T12:03:19.996644
2013-02-14T17:08:24
2013-02-14T17:08:24
8,188,655
1
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
""" dataCommons.postingAPI.tasks This module implements the background tasks run by the Celery task queuing system. """ import logging from celery import task from dataCommons.shared.lib.decorators import print_exceptions_to_stdout from dataCommons.postingAPI import postingProcessor #######################...
[ "ewestra@gmail.com" ]
ewestra@gmail.com
06c1ae158672d9a651a94f2a70faf79cce3232d5
fff54b01b46cef0bbc70a6469c88c01c82af5a57
/network/analyzer/libpcap/actions.py
33f3310aad9a49bdb10846b36e483c86e64304b9
[]
no_license
LimeLinux/Packages
e51deae6c0d1406e31f06caa5aaa7749466bef0b
d492e075d8b051df68b98c315ad0628e33a8fac4
refs/heads/master
2021-01-11T12:37:22.150638
2018-08-30T18:24:32
2018-08-30T18:24:32
77,054,292
5
19
null
2018-02-02T17:24:06
2016-12-21T13:33:45
Python
UTF-8
Python
false
false
853
py
#!/usr/bin/python # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools from pisi.actionsapi import get def setup(): ...
[ "zirkovandersen@gmail.com" ]
zirkovandersen@gmail.com
0c3ba85209268e4419995bf3b0e59c8dc4ee5a21
1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2
/projects/project02/tests/q1_1.py
61dd4039d3bf8affab16b12c4665cbd175e3a540
[]
no_license
taylorgibson/ma4110-fa21
201af7a044fd7d99140c68c48817306c18479610
a306e1b6e7516def7de968781f6c8c21deebeaf5
refs/heads/main
2023-09-05T21:31:44.259079
2021-11-18T17:42:15
2021-11-18T17:42:15
395,439,687
0
1
null
null
null
null
UTF-8
Python
false
false
243
py
test = { 'name': 'q1_1', 'points': None, 'suites': [{'cases': [{'code': '>>> type(all_unique_causes) in [np.ndarray, list]\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
[ "taylorgibson@gmail.com" ]
taylorgibson@gmail.com
872fea6e32fd13b181d5aee64e9711014a9df0d1
cbc5e26bb47ae69e80a3649c90275becf25ce404
/xlsxwriter/test/styles/test_write_num_fmts.py
1445d94a1fdf72bcc2de972b5c46a5085b48cd0d
[ "BSD-2-Clause-Views", "BSD-3-Clause", "MIT" ]
permissive
mst-solar-car/kicad-bom-generator
c3549409c3139f787ad28391372b5cb03791694a
2aae905056d06f3d25343a8d784049c141d05640
refs/heads/master
2021-09-07T14:00:40.759486
2018-02-23T23:21:13
2018-02-23T23:21:13
107,868,801
3
0
null
null
null
null
UTF-8
Python
false
false
1,007
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2017, John McNamara, jmcnamara@cpan.org # import unittest from ...compatibility import StringIO from ...styles import Styles from ...format import Format class TestWriteNumFmts(unittest.T...
[ "mwrb7d@mst.edu" ]
mwrb7d@mst.edu
84a8d7587333beacb530ca0dc5bd8c795e393d3a
5cb29431ecbba7b61463c67749794b54201907e1
/pelicide/runner.py
688ba9e582ad94aeb3dcda92e73a6b397e49a1ed
[]
no_license
iksteen/pelicide
6a9a88a1fe2df6acb271c465942820ab76ccfa82
5b8a6a919257840fafdcab5c886c81a72b18a6c0
refs/heads/master
2021-05-16T02:39:52.910803
2016-01-06T11:40:51
2016-01-06T11:40:51
34,100,676
16
2
null
2019-10-22T23:49:10
2015-04-17T06:35:34
HTML
UTF-8
Python
false
false
2,958
py
import json import os import sys from twisted.internet import defer, protocol class RunnerProtocol(protocol.ProcessProtocol): def __init__(self, callback): self.callback = callback self.seq = 0 self.buffer = '' self.pending = set() def sendCommand(self, command, args=None): ...
[ "iksteen@gmail.com" ]
iksteen@gmail.com
842861fff402dd09ab5a9f2cfa8e490d1b842ff7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03696/s669152949.py
6ffe317a8dbd760aeaf50530708cdf2ac5bd88ad
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
N=int(input()) S=input() A=0 #( B=0 #) for s in S: if s=='(': A+=1 elif s==')' and A>0: A-=1 else: B+=1 print('('*B+S+')'*A)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1ee7dc2b9ca208d6002aaa8adfe393e5b25d084f
88be4d5657d19462eb1d74d2d4d98180b423a889
/robolearn/torch/policies/weighted_multi_policy_selector.py
e0cb8481457f36ea0e1a6161526cff851f74721d
[ "BSD-3-Clause" ]
permissive
domingoesteban/robolearn
bc58278fe38894f4ca9ec9e657ee13a479a368b7
0d20125425c352b80ef2eeed1c0b11ab6497b11a
refs/heads/master
2020-04-15T22:38:25.343229
2019-01-29T17:01:42
2019-01-29T17:01:42
165,080,647
1
1
null
null
null
null
UTF-8
Python
false
false
1,021
py
from robolearn.torch.core import PyTorchModule from robolearn.models.policies import ExplorationPolicy class WeightedMultiPolicySelector(PyTorchModule, ExplorationPolicy): def __init__(self, multipolicy, idx): self.save_init_params(locals()) super(WeightedMultiPolicySelector, self).__init__() ...
[ "domingo.esteban@iit.it" ]
domingo.esteban@iit.it
8ae9fb9ae54b014300cf7675e7bfdbabcd0e5011
836d5f7190f6b4503e758c87c71598f18fdfce14
/12-Veri-Tabanı/sqlite-database-2/database.py
d5adc5a68ad53c2351607d67672c1ff0cbb2b0b7
[]
no_license
S-Oktay-Bicici/PYTHON-PROGRAMMING
cf452723fd3e7e8ec2aadc7980208d747c502e9a
22e864f89544249d6309d6f4570a4104bf47346b
refs/heads/main
2021-11-30T00:19:21.158084
2021-11-16T15:44:29
2021-11-16T15:44:29
316,716,147
1
0
null
null
null
null
UTF-8
Python
false
false
446
py
import sqlite3 veriler = [ ("Ahmet Ümit","İstanbul Hatırası"), ("Yaşar Kemal","İnce Memed"), ("Paulo Coelho","Simyacı"), ("Paulo Coelho","Aldatmak")] db = sqlite3.connect("kitaplar.db") imlec = db.cursor() imlec.execute("CREATE TABLE IF NOT EXISTS 'kitaplık tablosu' (yazar,kitap)") for...
[ "noreply@github.com" ]
S-Oktay-Bicici.noreply@github.com
263e5accf9c46da5bf018e6fe716b80de9ee55da
4e0ff785b993b6bae70745434e61f27ca82e88f0
/229-Majority-Element-II/solution.py
1b9494257f4bd6ea4a55db58f2ad57d67a4ef1ec
[]
no_license
NobodyWHU/Leetcode
2ee557dd77c65c5fa8ca938efb6de3793b4de261
d284fa3daab02531e5300867463b293d44737e32
refs/heads/master
2021-01-23T14:05:28.161062
2016-09-23T11:51:51
2016-09-23T11:51:51
58,898,114
1
0
null
null
null
null
UTF-8
Python
false
false
621
py
class Solution(object): def majorityElement(self, nums): """ :type nums: List[int] :rtype: List[int] """ n1 = n2 = None c1 = c2 = 0 for num in nums: if n1 == num: c1 += 1 elif n2 == num: c2 += 1 ...
[ "haohaoranran@126.com" ]
haohaoranran@126.com
4490d298cb083a520e91f8cd046242f7439b10be
60cf5de97160c0c104b447879edd0ea1ca9724e8
/q29.py
34fb2528f462f89c7b3226061a2fd7f1d74bc2cd
[]
no_license
VinayHaryan/String
6f6b7924ab87ac8ea5509edefaa3aeda795b0de0
089dcf02a8d26afcae0ac2b23c640be5a6079095
refs/heads/main
2023-05-27T22:15:31.792837
2021-06-17T08:39:42
2021-06-17T08:39:42
377,736,749
2
0
null
null
null
null
UTF-8
Python
false
false
1,557
py
''' RUN LENGTH ENCODING IN PYTHON given an input string, write a function that returns string for the input string For example, if the input string is ‘wwwwaaadexxxxxx’, then the function should return ‘w4a3d1e1x6’. Examples: Input : str = 'wwwwaaadexxxxxx' Output : 'w4a3d1e1x6' ''' # python cod...
[ "noreply@github.com" ]
VinayHaryan.noreply@github.com
9d5e381b6742e606d841d20ce2e6480a9029a65d
e3af1769d017fa5b20677b1228fd3ab42afc8927
/projet/IBPackage/operations.py
481a6a5755012665fb4d06ee741c5fdef5d684ad
[]
no_license
komi24/IB201116
08e8692a72badb82eecc79af753e1cf5c4021380
924c6540978b0308686eac867c16a3f6d1725f65
refs/heads/master
2023-01-19T11:34:32.627342
2020-11-20T15:24:31
2020-11-20T15:24:31
313,242,433
0
0
null
null
null
null
UTF-8
Python
false
false
258
py
# -*- coding: utf-8 -*- def ajoute_2(a): return a + 2 def addition(a, b): return a + b def produit(a, b): return a * b # def moyenne(liste, operation, init): # somme = init # for i in liste: # somme = operation(i, somme)
[ "mickael.bolnet@gmail.com" ]
mickael.bolnet@gmail.com
77b73a4c62c781666aa6f58703e8ed6973d129db
c61145e8771724575f67ae5738dd6cbb9626a706
/blog/models.py
b885ebd7fe878c0266a464c1da35eb04d96169e5
[]
no_license
Seredyak1/test_task
1399dd082f4281ca6f72d036f4df4c1c6945dafe
a5d433b827df46ffa95dd6dd91245b204884674f
refs/heads/master
2020-04-16T08:03:04.521740
2019-01-16T09:33:47
2019-01-16T09:33:47
165,409,648
0
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
from django.contrib.auth.models import User from django.db import models class Post(models.Model): class Meta: verbose_name_plural = 'Posts' ordering = ('-updated_at',) user = models.ForeignKey(User, on_delete=models.CASCADE) title = models.CharField(max_length=128, blank=True, null=True...
[ "sanya.seredyak@gmail.com" ]
sanya.seredyak@gmail.com
8ae1215e7351323fa30e296d34e9cf8d769a78c1
6c50175e82974fdb0ccabd544a40e013e6672cb0
/LoginReg_Bootstrap/settings.py
fbcb01abea32951e3eba4b4872bb9626432a3aa4
[]
no_license
Jallnutt1/LoginReg_Bootstrap
9515878688ac6a16efaba18345b90b389a6c6213
60532872f1e04a5809f65745665e2f16df0a913e
refs/heads/main
2023-05-26T05:02:59.124607
2021-06-04T01:50:46
2021-06-04T01:50:46
373,688,654
0
0
null
null
null
null
UTF-8
Python
false
false
3,151
py
""" Django settings for LoginReg_Bootstrap project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ imp...
[ "{ID}+{username}@users.noreply.github.com" ]
{ID}+{username}@users.noreply.github.com
c006ca77594cce7b285e3cb5b9081c678b8e1f01
668dad44beb30cadb170e32a8a7f0a57c42e653c
/denormalize_to_csv.py
d2910eec545e9f6d62c1a4e254eb4424ae66ed54
[]
no_license
SEL-Columbia/ss_data_analysis
22b72540732b03836423e18462495b2252a2cca8
dfb8c2670cddbddbb693e5a3243bc829bccf5ae0
refs/heads/master
2016-09-05T12:31:00.546458
2013-10-21T23:01:34
2013-10-21T23:01:34
13,162,453
0
0
null
null
null
null
UTF-8
Python
false
false
4,354
py
import os import datetime import csv import sys """ denormalize_to_csv.py usage: python denormalize_to_csv.py logs_dir description: Script to take a directory of sharedsolar log files in csv format and denormalizes them such that they can be concatenated together into "one big table" ...
[ "chris.natali@gmail.com" ]
chris.natali@gmail.com
5d2c18d1ea37c56236232061cf2a19e8e6d11fac
ca75f7099b93d8083d5b2e9c6db2e8821e63f83b
/z2/part2/interactive/jm/random_normal_1/561870518.py
e07b9173fe09044ec19d2a4fbff66e5550b7c929
[ "MIT" ]
permissive
kozakusek/ipp-2020-testy
210ed201eaea3c86933266bd57ee284c9fbc1b96
09aa008fa53d159672cc7cbf969a6b237e15a7b8
refs/heads/master
2022-10-04T18:55:37.875713
2020-06-09T21:15:37
2020-06-09T21:15:37
262,290,632
0
0
MIT
2020-06-09T21:15:38
2020-05-08T10:10:47
C
UTF-8
Python
false
false
7,951
py
from part1 import ( gamma_board, gamma_busy_fields, gamma_delete, gamma_free_fields, gamma_golden_move, gamma_golden_possible, gamma_move, gamma_new, ) """ scenario: test_random_actions uuid: 561870518 """ """ random actions, total chaos """ board = gamma_new(6, 8, 4, 15) assert board i...
[ "jakub@molinski.dev" ]
jakub@molinski.dev
4660ea0d2890f4a7ae7e8f48cbe1f776c8393822
de428c011b56db862f05ec0ceab17b85f83f94b1
/pythongame/scenes_game/player_environment_interactions.py
bfdfdb4eea733e83b0f61229bf7c9e6e1f382640
[]
no_license
risooonho/python-2d-game
c6d1fceaf09c72a6f7573230a4a899bf79164b7f
24b02646ed56f9017069b243b774e0ee46951aea
refs/heads/master
2021-05-17T06:02:13.538699
2020-02-15T23:59:54
2020-02-15T23:59:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,646
py
import sys from typing import Optional, Any, List, Tuple from pythongame.core.game_data import CONSUMABLES, PORTALS from pythongame.core.game_state import GameState, NonPlayerCharacter, LootableOnGround, Portal, WarpPoint, \ ConsumableOnGround, ItemOnGround, Chest, Shrine from pythongame.core.game_state import Wor...
[ "jonte.murray@gmail.com" ]
jonte.murray@gmail.com
f4018757458a86a63df44d42374c69ea3d612194
de4d3fed2b538587124ad855c8ba2f30933e7edf
/backend/sparepart_main/sparepart_main/asgi.py
597f5430d993ea910e06c11dd1b1488e41205dd3
[]
no_license
zahydakhan/project_spare
aaea130edefa95630f73b3026de6c32800b0bc7f
850374c270fd5ad2897bf9b6f0afb93b9e171059
refs/heads/master
2023-03-11T17:13:13.103574
2021-02-23T06:40:52
2021-02-23T06:40:52
339,530,703
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" ASGI config for sparepart_main project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANG...
[ "zahydakhan@gmail.com" ]
zahydakhan@gmail.com
4913c2722dadc4eab70e690b9fb6b88e0097a781
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/applicationinsights/azure-mgmt-applicationinsights/azure/mgmt/applicationinsights/v2022_06_15/aio/_application_insights_management_client.py
8b411d38bef302c4b99c3ad09e97a57e5267f2e1
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
Azure/azure-sdk-for-python
02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c
c2ca191e736bb06bfbbbc9493e8325763ba990bb
refs/heads/main
2023-09-06T09:30:13.135012
2023-09-06T01:08:06
2023-09-06T01:08:06
4,127,088
4,046
2,755
MIT
2023-09-14T21:48:49
2012-04-24T16:46:12
Python
UTF-8
Python
false
false
4,161
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 ...
[ "noreply@github.com" ]
Azure.noreply@github.com
58917f325490ea31f0266642594353b9a3a355ea
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_135/2992.py
b11dac90d43eb4458792e75c04fcfe2c80575061
[]
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
874
py
def read_case(file): answer = int(file.readline()) - 1 for skip in range(4): line = file.readline() if skip is answer: result = set(line.split()) return result def read_input(filename): with open(filename, "r") as in_file: n_cases = int(in_file.readline...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
70ec64d86ed5c0c271e847db24f5640fba8b206c
d6f95f4347c2bd934393603819787acf70aaf4eb
/2018年11月15日福建省/gg.py
af58924762c19caec1070c8e9830667202198a39
[]
no_license
moto-faith/work
531804bca7b6ecb6d9776ed2086bbf9952e2043b
e77e40dbbb7dbb80bd2bc2584a6d1d020f92d2b4
refs/heads/master
2020-04-08T11:20:37.533419
2019-03-18T08:09:27
2019-03-18T08:09:27
159,302,505
1
1
null
null
null
null
UTF-8
Python
false
false
1,942
py
#!/usr/bin/env python #coding=utf-8 import time import datetime import re import json import requests import time import redis import sys from urlparse import urljoin from db import DB reload (sys) import copy import MySQLdb sys.setdefaultencoding ("utf-8") import htmlparser from PIL import Image de...
[ "noreply@github.com" ]
moto-faith.noreply@github.com
ab6333b26ca5c5e92c98730f02f2f883ba820907
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_frizzing.py
1ed7c522d5ae15fc66c9c2b646ba67fb89ea4cfa
[ "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
235
py
from xai.brain.wordbase.verbs._frizz import _FRIZZ #calss header class _FRIZZING(_FRIZZ, ): def __init__(self,): _FRIZZ.__init__(self) self.name = "FRIZZING" self.specie = 'verbs' self.basic = "frizz" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
b6f490deab8b0d16a1adff8b3c97ecf942ab4482
9908dc07233b4025425dc212b5e4acb3b087971e
/Medium/findRedundantConnection.py
c3fd9af33cb44dbda9d4c81e96ae23b61cd0a8ad
[]
no_license
Abdelhamid-bouzid/problem-Sovling-
15769da71d19186947607574860462ad81f34e40
fa0eecab8a94d1ad20b5aa129973f59eddd5678d
refs/heads/main
2023-08-27T21:49:32.337979
2021-10-23T21:57:55
2021-10-23T21:57:55
317,097,388
3
0
null
null
null
null
UTF-8
Python
false
false
646
py
class Solution: def findRedundantConnection(self, edges: List[List[int]]) -> List[int]: self.g = collections.defaultdict(list) for u,v in edges: self.g[u].append(v) self.g[v].append(u) for u,v in edges[::-1]: self.vis=set() self.dfs(1,...
[ "noreply@github.com" ]
Abdelhamid-bouzid.noreply@github.com
a9fa1f05a49145676d8d384b3c7e7cc8f4b16897
33836016ea99776d31f7ad8f2140c39f7b43b5fe
/fip_collab/2016_09_26_polycrystal_FIP_allpoint/plot_evd.py
d523d88b853904fc3267a94e0c6fc19be735c236
[]
no_license
earthexploration/MKS-Experimentation
92a2aea83e041bfe741048d662d28ff593077551
9b9ff3b468767b235e7c4884b0ed56c127328a5f
refs/heads/master
2023-03-17T23:11:11.313693
2017-04-24T19:24:35
2017-04-24T19:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,689
py
# -*- coding: utf-8 -*- import numpy as np import matplotlib.pyplot as plt import matplotlib.cm as cm from constants import const import h5py import sys def pltevd(H): C = const() """define the colors of interest""" n_col = len(C['sid']) colormat = cm.rainbow(np.linspace(0, 1, n_col)) f_reg = h...
[ "noahhpaulson@gmail.com" ]
noahhpaulson@gmail.com
168a1a3ba4c092e59778ca8c0e121f8af2cbdb0f
b6af5ed67f758dace85c9cec2091c36d769e5668
/build/handsnet_time/catkin_generated/installspace/tactile_image_publisher_5.py
34897b9675238a073264ba477e450f23797c3517
[ "MIT" ]
permissive
robertokcanale/ros_workspace_handsnet
897920d6ef30554556449085816d2e8ffb096721
09672bf2b4c54d0064f339005dc5eb3ac4f9d80d
refs/heads/main
2023-04-10T06:50:12.652997
2021-04-12T12:08:41
2021-04-12T12:08:41
353,714,029
1
0
null
null
null
null
UTF-8
Python
false
false
1,782
py
#!/usr/bin/env python3 import rospy #import tensorflow as tf from PIL import Image from sensor_msgs.msg import Image as TactileImage from handsnet_time.msg import Image_array import numpy as np #I can make a message of this type #sensor_msgs/Image[] data if __name__ == '__main__': pub = rospy.Publisher('tactile_...
[ "robyrugby95@gmail.com" ]
robyrugby95@gmail.com
e6ff765e39660197728176631c129a6e521196c7
ce4f7f8e9336b8bbf9cbfe147d922e37034ab6c3
/old/past1_E.py
e538f70ef5be64f085af47fec1d7b8236ac36a41
[]
no_license
kussy-tessy/atcoder
5604919747242ee9740b9131bb6e168e96af0151
ee917fa5a5218d4a9e72f710d0d844e7c203f13b
refs/heads/master
2023-07-21T09:25:15.464881
2021-09-04T14:06:02
2021-09-04T14:06:02
311,221,203
0
0
null
null
null
null
UTF-8
Python
false
false
960
py
# print('input >>') N, Q = map(int,(input().split())) follows = [[0] * N for _ in range(N)] logs = [] for _ in range(Q): logs.append(input()) for log in logs: log_info = log.split() person = int(log_info[1])-1 if log_info[0] == '1': follows[person][int(log_info[2])-1] = 1 ...
[ "teppei04285000@gmail.com" ]
teppei04285000@gmail.com
080b3808ad65aeadf62c0f3a420f7f9a286b309d
7a4da5ec2196bf975a9e6115846244788b36b952
/3.7.0/lldb-3.7.0.src/test/python_api/frame/inlines/TestInlinedFrame.py
217b87e892696f5a9f974f714461cd306ed5a293
[ "NCSA", "MIT" ]
permissive
androm3da/clang_sles
ca4ada2ec85d625c65818ca9b60dcf1bc27f0756
2ba6d0711546ad681883c42dfb8661b842806695
refs/heads/master
2021-01-10T13:50:25.353394
2016-03-31T21:38:29
2016-03-31T21:38:29
44,787,977
3
0
null
null
null
null
UTF-8
Python
false
false
3,812
py
""" Testlldb Python SBFrame APIs IsInlined() and GetFunctionName(). """ import os, time import re import unittest2 import lldb, lldbutil from lldbtest import * class InlinedFrameAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) @skipUnlessDarwin @python_api_test @dsym_test def test...
[ "brian.cain@gmail.com" ]
brian.cain@gmail.com
e489b80b813521f9e69b3f3c43c39d02cdba43cf
c526d2f3e457b1b25d5f2cb5bda914236e6c265b
/candidates/urls.py
5c8fb469cc8b566cb76f30f605fdaab774b81d78
[ "CC0-1.0" ]
permissive
yhsiang/twly-voter-guide
99e2269da57a21b5779ec3defd9c7e23c7668f64
ae87c9f9b9f053f79a12f04afe0d60f227dc68c1
refs/heads/master
2020-12-31T02:42:01.568168
2015-03-21T13:24:55
2015-03-21T13:24:55
33,117,399
0
0
null
2015-03-30T10:42:56
2015-03-30T10:42:56
null
UTF-8
Python
false
false
536
py
# -*- coding: utf-8 -*- from django.conf.urls import patterns, url from candidates import views urlpatterns = patterns('', url(r'^$', views.counties, {"ad": 8}), url(r'^(?P<ad>\d+)/(?P<county>\S+)/(?P<constituency>\d+)/$', views.district, name='district'), url(r'^(?P<ad>\d+)/(?P<county>\S+)/$', views.distr...
[ "twly.tw@gmail.com" ]
twly.tw@gmail.com
c76e0a8da89cff2174d9900d2b2d795ccf522914
be50b4dd0b5b8c3813b8c3158332b1154fe8fe62
/Math/Python/SortedPermutationRank.py
28c0906d6624cf1570338c7b46d6235b336d4950
[]
no_license
Zimmermann25/InterviewBit
a8d89e090068d9644e28085625963c8ce75d3dff
6d2138e740bd5ba8eab992d9bf090977e077bfc5
refs/heads/main
2023-03-24T18:12:48.244950
2021-03-24T14:36:48
2021-03-24T14:36:48
350,835,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
class Solution: import math # @param A : string # @return an integer def findRank(self, A): if len(A) < 1:return 0 if len(A) ==1:return 1 counter = 0 # False oznacza,ze ta litera nie zostala jeszcze wykorzystana charArr = [[A[i], False] for i in...
[ "noreply@github.com" ]
Zimmermann25.noreply@github.com
45c93dfe5019d6bc09fc9cd7499e5990d2691491
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02821/s486815367.py
c6e104ff5932a2b1ed2561cc6e8d0125a064d8c4
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
983
py
import sys from bisect import bisect_left,bisect_right sys.setrecursionlimit(10**9) INF=10**18 def input(): return sys.stdin.readline().rstrip() def main(): N,M=map(int,input().split()) A=sorted(list(map(int,input().split()))) S=[0]*(N+1) for i in range(N): S[i+1]=S[i]+A[i] def nibutan(...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0d07714134ac6449e78e4d248375b431f66f16e0
16047f965a69893a8cd2c8d18fbd7b9c86a07eb3
/src/kubernetes/client/models/v1_quobyte_volume_source.py
52fef80de7b4ac6de368f6c4785f8c2a3414d71f
[ "Apache-2.0", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
guctum/aws-kube-codesuite
9ce2cc02fe5fa15c2e175fb697138014fb162f1e
5d62beaadc13bec745ac7d2fc18f07805e91cef3
refs/heads/master
2021-05-24T10:08:00.651840
2020-04-23T20:21:46
2020-04-23T20:21:46
253,511,083
0
0
Apache-2.0
2020-04-06T13:48:14
2020-04-06T13:48:13
null
UTF-8
Python
false
false
6,587
py
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.4 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
[ "olari@784f435df7a4.ant.amazon.com" ]
olari@784f435df7a4.ant.amazon.com
a7f5239914d25e60fde6bf4ad74825ca1a302698
360ae1188ad79e71ccc72da0b9ae709bda678f91
/ryu/lib/xflow/netflow.py
f41a9f57341ddbaf6c3a1e32928888653be34be0
[ "Apache-2.0" ]
permissive
faucetsdn/ryu
47b3523e7ccb381f3bdf2877a3f9f01cb1876054
d6cda4f427ff8de82b94c58aa826824a106014c2
refs/heads/master
2023-09-05T06:37:21.991029
2022-06-09T23:09:40
2022-06-09T23:09:40
2,945,007
385
215
Apache-2.0
2022-11-13T10:50:25
2011-12-09T03:43:50
Python
UTF-8
Python
false
false
4,009
py
# Copyright (C) 2013 Nippon Telegraph and Telephone Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "fujita.tomonori@lab.ntt.co.jp" ]
fujita.tomonori@lab.ntt.co.jp
22c15be1586d632b333fa96826a4638948b75d8e
8a102033a266d39128e4b64aa0780cf67055e196
/15552.py
0bfab577f1d44f67f2be860eabace0e46000ab0d
[]
no_license
yuseungwoo/baekjoon
4dec0798b8689b9378121b9d178713c9cf14a53f
099031e2c4401e27edcdc05bd6c9e6a558b09bb9
refs/heads/master
2020-09-03T15:25:40.764723
2018-10-08T02:35:27
2018-10-08T02:35:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
269
py
# coding-utf-8 import sys count = sys.stdin.readline().rstrip() count = int(count) for _ in range(count): numbers = sys.stdin.readline().rstrip().split() number = sum(list(map(int, numbers))) number = str(number) + '\n' sys.stdout.write(number)
[ "blacksangi14@naver.com" ]
blacksangi14@naver.com
92f1518267d637703c7a7e2205d182907358658a
a35d07b11f013a26901942f730d4b720f4e27355
/warmup1/near_hundred.py
5cb06a22dcabd67a5cd1a9ba4cf2f360c62fd633
[]
no_license
PMiskew/codingbat_solutions_python
7cbbf293fb6b230e274a8cee373a2222a5a27e8d
6e62fd0080c2a9bcd59fd4f803cc7966a2cb88d1
refs/heads/master
2022-11-13T13:24:53.078833
2020-07-14T18:38:06
2020-07-14T18:38:06
255,197,455
5
0
null
null
null
null
UTF-8
Python
false
false
839
py
''' QUESTION: Given an int n, return True if it is within 10 of 100 or 200. Note: abs(num) computes the absolute value of a number. near_hundred(93) → True near_hundred(90) → True near_hundred(89) → False ''' def near_hundred(n): #Approach 1: ''' if (n < 100): if 100 - n <= 10: return True ...
[ "paul.miskew@gmail.com" ]
paul.miskew@gmail.com
37cb5f11bdcd8f63dd000d2f706336c3c37ee0ec
64bf39b96a014b5d3f69b3311430185c64a7ff0e
/intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/sensu/sensu_go/tests/unit/modules/test_role_binding_info.py
6dc780d18f9e93a04704512448a963a692889b1f
[ "GPL-3.0-only", "MIT" ]
permissive
SimonFangCisco/dne-dna-code
7072eba7da0389e37507b7a2aa5f7d0c0735a220
2ea7d4f00212f502bc684ac257371ada73da1ca9
refs/heads/master
2023-03-10T23:10:31.392558
2021-02-25T15:04:36
2021-02-25T15:04:36
342,274,373
0
0
MIT
2021-02-25T14:39:22
2021-02-25T14:39:22
null
UTF-8
Python
false
false
1,977
py
from __future__ import absolute_import, division, print_function __metaclass__ = type import pytest from ansible_collections.sensu.sensu_go.plugins.module_utils import ( errors, utils, ) from ansible_collections.sensu.sensu_go.plugins.modules import role_binding_info from .common.utils import ( AnsibleExitJs...
[ "sifang@cisco.com" ]
sifang@cisco.com
8c0b7a66053ff8a78c350d3e918291d75673b78a
b11d97bf5731bf6faeef14814292d1aff6866e3a
/seq2annotation/server/tensorflow_inference.py
9d6ce6042c4c74192440f99d7b707623aee40e82
[ "Apache-2.0" ]
permissive
tyc1922/seq2annotation
2e2193aff1281242c2b66da8cbe27571e2c7f3fc
c161099570be544881c14105f4392d764d6d8247
refs/heads/master
2022-04-21T19:14:03.117606
2020-04-25T09:24:02
2020-04-25T09:24:02
259,069,353
1
0
Apache-2.0
2020-04-26T15:46:48
2020-04-26T15:46:48
null
UTF-8
Python
false
false
2,370
py
from typing import List import keras from tokenizer_tools.tagset.NER.BILUO import BILUOSequenceEncoderDecoder from tokenizer_tools.tagset.offset.sequence import Sequence from tensorflow.contrib import predictor from tokenizer_tools.tagset.exceptions import TagSetDecodeError decoder = BILUOSequenceEncoderDecoder() ...
[ "u1mail2me@gmail.com" ]
u1mail2me@gmail.com
90060297c37f8438877900ed28743d74da252c12
70e77b4e49fa1be07a89aa9370aa8069f4dd17cc
/imb_manager/asgi.py
d88f76b423017178dd9fba08e2652cdcf0103e46
[]
no_license
rosoba/imb_manager
7a542da0fb032839dcabd3a7d9073f69616cfaeb
13f277cb5170ef17deebb2e4305c99f73421e2a2
refs/heads/master
2023-01-31T04:16:56.526477
2020-12-12T14:52:03
2020-12-12T14:52:03
320,850,276
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" ASGI config for imb_manager project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault('DJANGO_S...
[ "rostislav.chudoba@rwth-aachen.de" ]
rostislav.chudoba@rwth-aachen.de
b1ad6df8c1fd9c67554b4f8f8f19ab2cc90e7283
5dd190725aaaeb7287d935b3c99c20480b208816
/official/vision/keras_cv/metrics/iou.py
b6391a61c7d3cbf38407a26b17b068ba77b3fb66
[ "Apache-2.0", "MIT" ]
permissive
DemonDamon/mask-detection-based-on-tf2odapi
32d947164fb54395b9e45368c0d4bcf3a6ea1c28
192ae544169c1230c21141c033800aa1bd94e9b6
refs/heads/main
2023-05-13T05:05:44.534885
2021-06-08T05:56:09
2021-06-08T05:56:09
369,463,131
2
1
null
null
null
null
UTF-8
Python
false
false
4,723
py
# Copyright 2021 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
[ "noreply@github.com" ]
DemonDamon.noreply@github.com
3262a9aae0eca54f26f482a58a5c1b4c27d466ef
f39439548beba34b26f2e0cb40d9bcdfc5c85c71
/runtag/bootcamp.py
ee077f8e2a9e0ac5ddee6ac10f77e65dfb76a5a6
[]
no_license
willook/ape-x2
0a7b813c59efc572b3a5b0c3b63d738bbec2a8e1
b299e75d20746f4d83ee7227fad9d8d3ef21a192
refs/heads/master
2023-02-21T15:41:27.241782
2021-01-21T06:37:01
2021-01-21T06:37:01
331,537,600
0
0
null
null
null
null
UTF-8
Python
false
false
404
py
from .entities import Commander, Subordinate, Squad class Bootcamp: def __init__(self, grid): self.grid = grid def recruit(self, name, number_of_subordinates=1): squad = Squad(self.grid, name) squad.assign(Commander(self.grid)) for index in range(number_of_subordinates): ...
[ "you@example.com" ]
you@example.com
045edd1c218f527ab6ff454da5507798a547fdd8
32cb84dd41e4be24c065bb205f226f9b121a6db2
/cconf/migrations/0001_initial.py
f89cbce98d36e32d7722b4cebcb2e3294a10711b
[]
no_license
InformatykaNaStart/staszic-sio2
b38fda84bd8908472edb2097774838ceed08fcfa
60a127e687ef8216d2ba53f9f03cfaa201c59e26
refs/heads/master
2022-06-29T11:09:28.765166
2022-06-13T21:56:19
2022-06-13T21:56:19
115,637,960
1
0
null
null
null
null
UTF-8
Python
false
false
1,221
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.13 on 2019-10-05 08:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('contests', '0005_submission_auto_rejudg...
[ "hugo@staszic.waw.pl" ]
hugo@staszic.waw.pl
de0b0b059a80c07749a16ea129918524290a5f28
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3/David.Liu/q3.py
a26e4881ffe0696d7c67a6a0d0631ed73764fc4d
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
866
py
import math n=32 x=500 outf=open("q3large.out","w") def factor(num): r=500 for i in range(2, r): if num%i==0: return i return -1 def makelist(n): lst=[] l=len(n) for i in range(2, 11): num=0 for j in range(0, l): num+=int(n[j]...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
4a1758e7ca32cd345aa0c5b376f92a5dc0a0b52f
7996d7fefe2d3e5b4d53df4376d6fd8908407a1a
/authentication/urls.py
139def747c67ed7664c5e93050e1419ada49d7e8
[]
no_license
Imraj423/twitterclone
2aa1446ef6e5dec6548f26c6254d478a696970ec
0c3dfab5436de9095248305d3994dc77549e0b1e
refs/heads/master
2021-01-15T02:07:06.684002
2020-04-04T23:47:39
2020-04-04T23:47:39
242,843,822
0
0
null
2020-03-07T04:02:21
2020-02-24T21:08:23
Python
UTF-8
Python
false
false
229
py
from django.urls import path from . import views urlpatterns = [ path('signup/', views.signup, name='signup'), path('login/', views.login_view, name='login'), path('logout/', views.logoutUser, name='logout'), ]
[ "dahqniss@gmail.com" ]
dahqniss@gmail.com
5ed6ab127cba5918dd12490bf579baafac9dc250
1fa262359f91768f1b98c45944fd4a63645f4567
/variable_examples.py
03bd0c75fcb7f7afb46ffb09f440a337d5d26ae4
[]
no_license
feleHaile/20190225KAPL
d1a95dd6632ba83b6cd3380d92e2a2a18a5a4942
3957c1d738cc3e42d5dac0fb4a6f6071a1bb391a
refs/heads/master
2020-05-15T22:31:51.881632
2019-02-28T20:11:29
2019-02-28T20:11:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
#!/usr/bin/env python x = 5 print(x) y = x things = [1, 2, 3] t = things print(t) t.append(42) print(things) print(t is things) print(id(t), id(things)) print(type(x), type(t), type(type), type('spam')) t = 42 print(type(t)) t = "amazon" print(type(t)) m = None print(m)
[ "jstrickler@gmail.com" ]
jstrickler@gmail.com
a8cfde36a731a0cfeb460159e2cc73d43db7c46e
101d866f8e2f84dc8f76181341180c13b38e0ecf
/case/Demo/test_global_init.py
96c3320be20e782b490bbf14bbb0cf12cef8b2c5
[]
no_license
cming091/autotest
1d9a6f5f750c04b043a6bc45efa423f2e730b3aa
0f6fe31a27de9bcf0697c28574b97555fe36d1e1
refs/heads/master
2023-06-02T18:22:24.971786
2021-06-21T08:52:47
2021-06-21T08:52:47
378,858,969
0
0
null
null
null
null
UTF-8
Python
false
false
659
py
# coding=utf-8 import pytest import allure from case.base import TestBase @allure.feature('测试初始化全局数据') @allure.link(url="https://pages/viewpage.action?pageId=84191585", name="测试用例") @pytest.mark.usefixtures("init_module_data") @pytest.mark.usefixtures("init_global_data") class TestGlobalDataInit(TestBase): """te...
[ "349152234@qq.com" ]
349152234@qq.com
eb5b33dc0fc012d521bf71c982068b71534887b6
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/sql/get_database_vulnerability_assessment.py
a6aa84ede40a8f73706d9941a81575ccf9b1a66e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,722
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 from ...
[ "noreply@github.com" ]
MisinformedDNA.noreply@github.com
79db5f1c36777c88d7fa3bc39575c57b377af1e3
81d2815060bdf51e59f40366df72954ad28b2398
/4th_hw/fourth_homework/settings.py
fd3cb961f456cae77e2fd2c6099a1d6763910875
[]
no_license
ningpop/LikeLion_7th_HW
6016604427e335250f2e3daeec27f17731612b47
b2c65a0b7a9a928a45cf07b67cd9ed18fb86d799
refs/heads/master
2020-06-30T18:08:54.024617
2019-12-30T16:17:03
2019-12-30T16:17:03
200,902,655
0
0
null
null
null
null
UTF-8
Python
false
false
3,613
py
""" Django settings for fourth_homework project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import...
[ "craft1933@naver.com" ]
craft1933@naver.com
048c333f5f321f508763e1bc3d96c4ec5a465231
3bddb2814881bb5e4679de3d31ac0bde57b86148
/trax/data/tokenizer.py
64081f4da0735026efb1c20851a2a900e708ad02
[ "Apache-2.0" ]
permissive
google/trax
7a2b1a83eb8848136a5f5e07988efcef2f0b704f
1bb3b89427f669f2f0ec84633952e21b68964a23
refs/heads/master
2023-08-30T22:36:09.651644
2023-03-29T01:14:20
2023-03-29T01:15:47
213,020,264
8,180
917
Apache-2.0
2023-08-29T14:30:03
2019-10-05T15:09:14
Python
UTF-8
Python
false
false
5,810
py
# coding=utf-8 # Copyright 2022 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
b64ec8ccaf0a47dd9f85266b92faf3122e5e57ff
6896fce8ee082f9730c056436e49ef0d16a6ea03
/exception/exceptions.py
cbec08fae3c703e147a7daef31cd584579c057d3
[]
no_license
Sugeei/python-practice
5022ae7c34bc04972edebc15936248cb9869ec54
048df40500a059e4380f3ecc2581de96c9a1fc9b
refs/heads/master
2022-12-07T06:34:40.740379
2022-11-13T11:48:29
2022-11-13T11:48:29
121,074,877
0
0
null
null
null
null
UTF-8
Python
false
false
854
py
from bs4 import BeautifulSoup ERROR_MAP = { "200000": "invalid input parameter", "500000": "load data error", "600000": "dump data error", "700000": "data verify error", "800000": "algorithm error" } class UranusError(Exception): def __init__(self, error_code=None, message=''): Except...
[ "215626824@qq.com" ]
215626824@qq.com
b6ecbef1faf3aab95571a56f1eaf1dece622f4c0
5ec06dab1409d790496ce082dacb321392b32fe9
/clients/python/generated/test/test_org_apache_sling_distribution_monitor_distribution_queue_health_check_properties.py
78c34d346fd02e2be860bd78e70e6726077ba3fc
[ "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
1,475
py
# coding: utf-8 """ Adobe Experience Manager OSGI config (AEM) API Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501 The version of the OpenAPI document: 1.0.0 Contact: opensource@shinesolutions.com Generated by: https://openapi-...
[ "michael.bloch@shinesolutions.com" ]
michael.bloch@shinesolutions.com
7b4ea0f4ff1d23cb5acb9a1696155e58d41a06ed
deb3c16ef887b6c496b8c920809d79b9f73aa2fe
/libs/telewizjaonline.py
3ff44fd184c1e68bbc06dccfa2babf9394c94358
[]
no_license
Yaser7440/cmdline_iptvplayer
1ea35f4fd36c708176a43d402a49342c4cf723a5
4e287021d86cab8d6525262b647d144c6141d6b1
refs/heads/master
2021-01-24T10:49:29.278730
2016-09-21T09:24:26
2016-09-21T09:24:26
null
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
4,018
py
# -*- coding: utf-8 -*- ################################################### # LOCAL import ################################################### from Plugins.Extensions.IPTVPlayer.dToolsSet.iptvplayerinit import TranslateTXT as _ from Plugins.Extensions.IPTVPlayer.dToolsSet.iptvtools import printDBG, printExc, GetCookieD...
[ "zdzislaw22@windowslive.com" ]
zdzislaw22@windowslive.com
85276507b54d3f216c070a9c8873c8ff120d8120
72a8181e5502128fec62b132fbe19cd9d50dab4c
/rules/plot.smk
28df3be0b7d220ab200f373be5f95348d4b02f2c
[]
no_license
EthanHolleman/DRIP-AGS-ENCODE
1fd3b7065ec7f47e783674df14955a7b655edc08
e3bb63b6d1cae82ddc6fe8857a1e66e2f41b2781
refs/heads/main
2023-04-03T21:07:34.651467
2021-04-23T02:42:18
2021-04-23T02:42:18
360,375,206
0
0
null
null
null
null
UTF-8
Python
false
false
324
smk
rule make_feature_intersection_plot: conda: '../envs/R.yml' input: 'output/intersect/all_samples_concat.intersection.bed' output: 'output/plots/feature_intersection_plot.png' shell:''' mkdir -p output/plots Rscript scripts/plot_encode_intersections.R {input} {output} ...
[ "etholleman@ucdavis.edu" ]
etholleman@ucdavis.edu
0b2bc07bfe47ebc246deec181f61d7fa55a65b8f
e8d5471bd4a47794d66162060343f740e0febca4
/server/src/uds/auths/RegexLdap/__init__.py
4065f8086cf40c30d7e64bfeaa397d4232fd9e6e
[]
no_license
git38438/openuds
ef939c2196d6877e00e92416609335d57dd1bd55
7d66d92f85f01ad1ffd549304672dd31008ecc12
refs/heads/master
2020-06-22T14:07:33.227703
2019-07-18T11:03:56
2019-07-18T11:03:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
# -*- coding: utf-8 -*- # # Copyright (c) 2012 Virtual Cable S.L. # 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, #...
[ "dkmaster@dkmon.com" ]
dkmaster@dkmon.com
1af643695b4192619ffcd424991f063d051f610c
6cac02f4df495f1acec3fde64335aa4881230cba
/tutorials/foo-tutorial/foo/foo.py
c828d610c07b3232e3f034ebfbced761d19fd565
[]
no_license
ivannz/pkg_deploy_repo_renamed
96610728c097f0bb77a047b09681bb1d5fe6ffc3
9ce24ffcc5db6235dd3946f8a63123c3955ea957
refs/heads/master
2020-07-16T17:28:59.668633
2019-09-03T07:08:29
2019-09-03T07:08:29
205,832,544
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
def this(): from this import s d = {} for c in (65, 97): for i in range(26): d[chr(i + c)] = chr((i + 13) % 26 + c) return "".join(d.get(c, c) for c in s)
[ "ivannz@yandex.ru" ]
ivannz@yandex.ru
2a21ac1ec7913bc31720e0eb686e858987acfe58
75117becf9f75122e60cd806599ae24c16065689
/python_models8/neuron/builds/IF_curr_exp_i.py
307db7fb5aee6fefae5f3e8176e659b1466f3901
[]
no_license
chanokin/sPyNNaker8NewModelTemplate
d911443fa650a4016828341fd252ddb2d7bad313
2d64f34ed5a8f5312a3176792bee57339785c5ea
refs/heads/master
2020-11-27T01:10:50.593741
2020-01-07T15:56:54
2020-01-07T15:56:54
229,252,692
0
0
null
2019-12-20T11:28:48
2019-12-20T11:28:48
null
UTF-8
Python
false
false
2,945
py
# A PyNN Model for standard neurons built from components from spynnaker.pyNN.models.neuron import AbstractPyNNNeuronModelStandard # Components from main tools from spynnaker.pyNN.models.neuron.input_types import InputTypeCurrent from spynnaker.pyNN.models.neuron.synapse_types import SynapseTypeExponential from spynnak...
[ "chanokin@gmail.com" ]
chanokin@gmail.com
5f69045f7aa47cdf638b20fe0213be9eee7ea9cf
37c38b97d0a4b8098ec3c35b7122afb1fbb9eac9
/newke/py36/py36/class_biao.py
ffce719d491f697100ed5daab2206f4b953fd2aa
[]
no_license
lionheartStark/sword_towards_offer
8c2f9015a427317375d53eee982d630ffd4fa9c0
cb3587242195bb3f2626231af2da13b90945a4d5
refs/heads/master
2022-12-02T20:50:18.789828
2020-08-23T02:00:48
2020-08-23T02:00:48
266,257,109
0
0
null
null
null
null
UTF-8
Python
false
false
1,076
py
from typing import List from collections import defaultdict,deque class Solution: def canFinish(self, numCourses: int, prerequisites: List[List[int]]) -> bool: need_map = defaultdict(set) for i in prerequisites: need, be_need = i need_map[need].add(be_need) a_soluti...
[ "1003146780@qq.com" ]
1003146780@qq.com
5a520bbe602829e4a1a651efc846844f07970208
bcfa02c21a73798872bbb28303233d1f0039cf00
/server/www/teleport/webroot/app/controller/dashboard.py
65a5f2eea63c35642406ac5a3c52e530667224cb
[ "Apache-2.0" ]
permissive
zhoulhb/teleport
6301cd50c951bcbac21cbe24017eb8421ff57adc
54da194697898ef77537cfe7032d774555dc1335
refs/heads/master
2021-11-10T17:10:59.661130
2021-11-09T11:16:19
2021-11-09T11:16:19
192,643,069
0
0
Apache-2.0
2019-06-19T02:20:53
2019-06-19T02:20:52
null
UTF-8
Python
false
false
361
py
# -*- coding: utf-8 -*- from app.const import * from app.base.controller import TPBaseHandler, TPBaseJsonHandler from app.model import stats class IndexHandler(TPBaseHandler): def get(self): ret = self.check_privilege(TP_PRIVILEGE_LOGIN_WEB) if ret != TPE_OK: return ...
[ "apex.liu@qq.com" ]
apex.liu@qq.com
0f2ac223d96f5a6d71a7a54cad6006c3bc48733c
b6f8b2f023004fc0ea185b5e1ef2cbccce9ef513
/misc/figures_thesis.py
05bcf26cc2a72e5051b3bd7f7406d3d6a1d50359
[ "BSD-3-Clause" ]
permissive
tenglongcong/petibm-examples
a73a6cdba864269fe9402d0a8b44582f2bcbcd9f
3817d50b0b26df5901701c0cfe82a2d57c964e89
refs/heads/master
2020-11-27T17:12:28.335357
2019-12-04T23:51:54
2019-12-04T23:51:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
979
py
"""Gather figures (to be included in thesis).""" import os import pathlib import shutil rootdir = pathlib.Path(__file__).absolute().parents[1] n_parts = len(rootdir.parts) # Create the output directory. figdir = rootdir / 'figures_thesis' figdir.mkdir(parents=True, exist_ok=True) # Load paths of figures to gather....
[ "mesnardo@gwu.edu" ]
mesnardo@gwu.edu
862e1582b1eea05a10d17fec0afe45b0ba83391c
17e08f795273d6f4233ab440c2706130f6520b58
/fannypack/utils/_deprecation.py
9174fd10a6bbb73f059b87105a1183e6c2716f63
[ "MIT" ]
permissive
HaoWen470/fannypack
db5e6bb670004e470254e1e632899aeec38ee041
7e2c949de0e0cac69a95a5a777f8a4b1fa0fc17a
refs/heads/master
2023-01-03T20:35:35.248848
2020-10-31T09:01:01
2020-10-31T09:01:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,373
py
import warnings from typing import Callable def deprecation_wrapper(message: str, function_or_class: Callable) -> Callable: """Creates a wrapper for a deprecated function or class. Prints a warning the first time a function or class is called. Args: message (str): Warning message. functio...
[ "yibrenth@gmail.com" ]
yibrenth@gmail.com
91e61e3f950f46f177a4001f65690a53add7f6f1
1765ebc1c393ab4720c5fc5f9397516f5d66cfce
/setup.py
de4fc91885a05f03e2c2bf89d2af47d2323230c1
[ "MIT" ]
permissive
Lukasa/rproxy
d1db08aa99470c3649258254ead291c6dbd2d202
c15f9f56608a53db19d4f3737f05dfd02d66bc60
refs/heads/master
2020-12-28T22:46:48.225095
2016-06-30T08:27:23
2016-06-30T08:27:23
67,593,070
0
0
null
2016-09-07T09:35:22
2016-09-07T09:35:22
null
UTF-8
Python
false
false
502
py
from setuptools import setup setup( name='rproxy', description='A super simple reverse proxy.', long_description=open("README.rst").read(), author='Amber Brown', author_email='hawkowl@atleastfornow.net', packages=['rproxy', 'twisted.plugins'], package_dir={"": "src"}, install_requires=[...
[ "hawkowl@atleastfornow.net" ]
hawkowl@atleastfornow.net
3040eece0cb8864c9e7d39ddab4a66343a0f3988
2112e4cfd9568128573098f8e209962002f66a23
/app.py
23284a6ccf1befdf6ba398a9fa834d9e7048b7e3
[]
no_license
amazingguni/stock-trader
0bd39cce6f6462c9648e3c8b2893b3e8379e37ca
252c9230885200cfde845f2a03677140564cfc62
refs/heads/main
2023-05-05T18:26:04.124690
2021-05-30T13:12:58
2021-05-30T13:12:58
362,616,293
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
from flask import Flask, Response from flask_login import LoginManager from flask_cors import CORS from config import get_config_by_env from container import Container from web.admin import admin from mongodb import db login_manager = LoginManager() def create_app(): app = Flask(__name__, template_folder='./w...
[ "amazingguni@gmail.com" ]
amazingguni@gmail.com
60c586549370e3fbb1ebd8bbe3f0cd9caba71e15
3f29503e6d776ef0914217b1c922f4bc78af4fdd
/13.HASH MAP/1338_Reduce Array Size to The Half_MED/solution.py
8a43eec458a5c93f42b5aa20c4251801a04035a9
[]
no_license
kimmyoo/python_leetcode
cd4ff3c4f6d190840bbf5fb9acdca2b92554a6fa
813235789ce422a3bab198317aafc46fbc61625e
refs/heads/master
2023-08-16T07:36:38.688871
2023-08-15T22:38:00
2023-08-15T22:38:00
132,544,297
1
0
null
null
null
null
UTF-8
Python
false
false
498
py
class Solution(object): def minSetSize(self, arr): """ :type arr: List[int] :rtype: int """ half = len(arr)/2 d = collections.Counter(arr) c = d.values() c.sort(reverse=True) if max(c) >= half: return 1 begin, end = 0, 1 ...
[ "kimmyoo@gmail.com" ]
kimmyoo@gmail.com
3dcb6a3fba7b2c2c8998314caf270f7dc4b3d69c
824f19d20cdfa26c607db1ff3cdc91f69509e590
/TopInterviewQuestions/LinkedList/01-Delete-Node.py
e8cc4b8ff1bfc6f65dfa58aa9f76058738818e2a
[]
no_license
almamuncsit/LeetCode
01d7e32300eebf92ab54c983de6e183242b3c985
17aa340649574c37067ec170ceea8d9326be2d6a
refs/heads/master
2021-07-07T09:48:18.069020
2021-03-28T11:26:47
2021-03-28T11:26:47
230,956,634
4
0
null
null
null
null
UTF-8
Python
false
false
346
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: def deleteNode(self, node): while node.next.next: node.val = node.next.val node = node.next node.val = node.next.val...
[ "msarkar.cse@gmail.com" ]
msarkar.cse@gmail.com
dfca92b9a02a0b34ddb02223c46fc05f0ac34303
e35fd52fe4367320024a26f2ee357755b5d5f4bd
/leetcode/problems/434.number-of-segments-in-a-string.py
229c119643f381afef999ff54714d595c048b7dc
[]
no_license
liseyko/CtCI
a451967b0a0ce108c491d30b81e88d20ad84d2cd
c27f19fac14b4acef8c631ad5569e1a5c29e9e1f
refs/heads/master
2020-03-21T14:28:47.621481
2019-11-12T22:59:07
2019-11-12T22:59:07
138,658,372
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# # @lc app=leetcode id=434 lang=python3 # # [434] Number of Segments in a String # # https://leetcode.com/problems/number-of-segments-in-a-string/description/ # # algorithms # Easy (37.34%) # Total Accepted: 64.1K # Total Submissions: 171.8K # Testcase Example: '"Hello, my name is John"' # # Count the number of se...
[ "liseyko@gmail.com" ]
liseyko@gmail.com
1ac603767f5fde5c05e1576e3f1e35df16a53af1
63e0bc889563192a602463e662121058a4da30b5
/Smart.py
4c26367cb520a58c7477ccfe077c736086992b6b
[]
no_license
adaptiveUK/rhinopythonscripts
11accd3048caad7b69024db55e5847acb3c7feb6
bdd260e7f7257de54a4fac25a465dcdafff3b68c
refs/heads/master
2021-01-17T08:38:26.863981
2011-07-25T19:07:29
2011-07-25T19:07:29
3,888,627
1
0
null
null
null
null
UTF-8
Python
false
false
1,736
py
'''A module for wrapping geometry with UserString and Attribute Dictionaries''' import Rhino class SmartFeature(object): def __init__(self, rhinoObjectOrTuple): self._parseConstructor(rhinoObjectOrTuple) def _parseConstructor(self, rhinoObjectOrTuple): # determine if it is a tuple kin...
[ "benjamin.j.golder@gmail.com" ]
benjamin.j.golder@gmail.com
c8aa00a8afba3954be9744854afed97a99745d3f
75dcb56e318688499bdab789262839e7f58bd4f6
/_algorithms_challenges/codewar/_Codewars-Solu-Python-master/src/kyu7_Linked_Lists-Move_Node.py
4367bf1aeaa9de6050ecb664223c5ff2f974bf3a
[]
no_license
syurskyi/Algorithms_and_Data_Structure
9a1f358577e51e89c862d0f93f373b7f20ddd261
929dde1723fb2f54870c8a9badc80fc23e8400d3
refs/heads/master
2023-02-22T17:55:55.453535
2022-12-23T03:15:00
2022-12-23T03:15:00
226,243,987
4
1
null
2023-02-07T21:01:45
2019-12-06T04:14:10
Jupyter Notebook
UTF-8
Python
false
false
2,573
py
class Node(object): def __init__(self, data): self.data = data self.next = None class Context(object): def __init__(self, source, dest): self.source = source self.dest = dest class Solution(): """ https://www.codewars.com/kata/linked-lists-move-node Linked Lists ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
c3e539c4bf3ff081920dd8d7384b3aab42f9f2aa
c65d512975feed7dfe74f1117cdd1337293d9d60
/python/my_py_notes_万物皆对象/db_and_数据持久化/Mysql/mysql与python交互/py_mySQL.py
457399daaab72146341157a493068ef91fee16ba
[]
no_license
Rockyzsu/StudyRepo
e5c6420e325917c2df7dc51d606be5fa3c2ee1b8
385785c09bebb56df156fd149a088043f38d0aab
refs/heads/master
2022-12-09T13:45:38.332899
2020-09-15T09:56:09
2020-09-15T09:56:09
295,388,871
1
0
null
null
null
null
UTF-8
Python
false
false
799
py
# -*- coding:utf-8 -*- # file: PyMySQL.py # import MySQLdb # 导入MySQLdb模块 db = MySQLdb.connect(host='localhost', # 连接到数据库,服务器为本机 user='root', # 用户为root passwd='root654321', # 密码为root654321 db='python') # 数据库名为python cur = db.cursor() # 获得数据库游标 cur.execute('insert i...
[ "jinweizsu@gmail.com" ]
jinweizsu@gmail.com
43fddc8268d67792feed4cbae6473c1f9b58a178
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_210/72.py
8b87687f01a56f0ea2dfa277b816f22c349a561c
[]
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
2,170
py
#!/usr/bin/env python import sys import numpy as np T = int(raw_input()) for t in xrange(T): # solve the input Ac, Aj = raw_input().strip().split() Ac = int(Ac) Aj = int(Aj) activities = [] # start, end, duration, who ctotal = 0 jtotal = 0 C = np.zeros(Ac) D = np.zeros(Ac) for c in xrange(Ac)...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
d335c1953908c703540fee6892011ac539fd127d
7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a
/.history/DEBER_20210831114343.py
1bb3ad9fa1d068428284e79f3e43f05e552a0685
[ "MIT" ]
permissive
Alopezm5/PROYECTO-PARTE-1
a1dce04009b24852c1c60e69bdf602ad3af0574b
bd7a8594edf08d41c6ca544cf6bac01ea4fcb684
refs/heads/main
2023-07-25T11:22:17.994770
2021-09-07T03:27:34
2021-09-07T03:27:34
403,670,226
0
0
null
null
null
null
UTF-8
Python
false
false
3,536
py
class Nomina: def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr="",email="",estado="",profe="",dep=""):#3 self.nombre=nom self.ruc=ruc self.direccion=dire self.telefono=tele self.ciudad=ciud self.tipoEmpresa=tipEmpr self.correo=email self....
[ "85761855+Alopezm5@users.noreply.github.com" ]
85761855+Alopezm5@users.noreply.github.com
2af5c8223fc344d1baaffd129038607c4fdce3a2
9d4c84a3ddee3c53bfb85b7e576be97f727caca0
/iso_two_param/optimization_blue_cv04.py
a998f3794d796a338806c045f2957cc9bb25c077
[ "MIT" ]
permissive
cjekel/inv_bubble_opt
386cca2c009bf1c97007c14bcbf9cd5df482afe3
3ecd57ee91ee09ac38319d151adbd8e9c3b9a1bb
refs/heads/master
2023-08-15T04:26:09.702395
2021-08-14T01:10:49
2021-08-14T01:10:49
166,838,347
0
0
null
null
null
null
UTF-8
Python
false
false
3,325
py
# MIT License # Copyright (c) 2019 Charles Jekel # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, ...
[ "cjekel@gmail.com" ]
cjekel@gmail.com
fee00f670adab1b0c03e332059c2a4409748e8a6
9b483d42da47237d28a9f80c378aba412b89f5b1
/special/cookie.py
59a4301e436c65e01d0d8954723bc8de92163246
[]
no_license
smartree/Tentacle
b0c83b671c1abe26338125d672d77b277abd2b28
a53e046f3434bf1ac4b606ba7dfe951d9b7f5464
refs/heads/master
2020-05-23T01:25:57.576494
2019-05-09T15:33:00
2019-05-09T15:33:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,776
py
#!/usr/bin/env python # -*- coding:utf-8 -*- ''' Check header' cookies secure, e.g. httponly, secure and so on. ''' from re import findall from re import search from re import I def info(data=None): info = { "name": "cookie", "info": "cookie", "level": "low", "type": "info" }...
[ "546577246@qq.com" ]
546577246@qq.com
48c70164518cd8c13035be54a8fd4613798d6f4b
574a23f57daec3d462967e30ff808779127dc839
/herle_inventarios/inventarios/serializers.py
42469033e71751845727f0149bc8dc594c449395
[]
no_license
RedGranatum/herleBackEnd
18d3aecf75eb0d349470747f3fca4dbfd1581e80
8f21a7f7d0c2d3fdf3ae52eab6b31cbea7d3da97
refs/heads/master
2023-01-07T07:32:17.725947
2020-12-15T00:23:38
2020-12-15T00:23:38
57,180,381
0
0
null
2022-12-26T20:22:35
2016-04-27T03:25:14
Python
UTF-8
Python
false
false
618
py
from rest_framework import serializers from .models import Inventario class InventarioSerializer(serializers.ModelSerializer): class Meta: model = Inventario fields = ("id","compra_detalle","invoice_compra","material","calibre","ancho","largo", "codigo_producto","num_rollo","peso_kg","peso_lb","trans...
[ "raultr@gmail.com" ]
raultr@gmail.com
59ac6c1ca8c6b389889458634600394990b5dc69
1f62195fb1960c6bddb38343adbe41c0497e40bc
/torchrl/utils/gym_wrappers/atari_wrappers.py
14d18b1a90860b41d033edaf180e5bd29d3c4bef
[ "MIT" ]
permissive
alyssonmazoni/torchrl
800ec186893607adac14c38c39c1d36f3488d3d8
75e82f073b7234432b491a21e5083bc55e3e985a
refs/heads/master
2020-03-16T06:12:43.733257
2018-05-05T02:37:50
2018-05-05T02:37:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,291
py
''' Copied from: https://github.com/openai/baselines/blob/master/baselines/common/atari_wrappers.py ''' import numpy as np import gym from gym import spaces import cv2 def atari_wrap(env, frame_skip=4, noop_max=30): assert 'NoFrameskip' in env.spec.id env = EpisodicLifeEnv(env) env = NoopResetEnv(env, noo...
[ "lucasgouvaz@gmail.com" ]
lucasgouvaz@gmail.com
b5935e769053443d0cf189014e51f82faab401ff
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02785/s130693103.py
ccbb8dc59483b523e40685ea0fb13bcd61a7bf65
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
import heapq (N,K) = map(int,input().split()) h = [int(x)*-1 for x in input().split()] ans = 0 heapq.heapify(h) if K <= N: for i in range(K): heapq.heappop(h) while h != []: ans -= heapq.heappop(h) print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com