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
b3f98f469c0ce446263f922e2fe8cabcdde10da7
825c0913ee861dc319b3e9255df45e8b2de93320
/python/dgcnn/dgcnn_cls.py
113298d5368beaccf251980a128f433f8f47c93e
[]
no_license
MrRen-sdhm/grasp_pose_detector
fb6f687aa390c2013211fc00d004984a8dbbeb96
1f604cd55c04c9b9ef08da16e1f12139e975f2e1
refs/heads/master
2021-06-26T00:38:23.615206
2021-06-20T12:32:59
2021-06-20T12:32:59
184,882,267
9
0
null
null
null
null
UTF-8
Python
false
false
2,702
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import os import sys import time import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.optim.lr_scheduler import CosineAnnealingLR from model.model import DGCNN f...
[ "rzy.1996@qq.com" ]
rzy.1996@qq.com
54972e0f90ee66a73ee0638e3f9bdf5bebf92c80
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_photons.py
8d8c119c435e9f6a6b0fb55a7c67d0290e283d1e
[ "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
238
py
from xai.brain.wordbase.nouns._photon import _PHOTON #calss header class _PHOTONS(_PHOTON, ): def __init__(self,): _PHOTON.__init__(self) self.name = "PHOTONS" self.specie = 'nouns' self.basic = "photon" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
1b851f067283f40e814f0f90e297671a6e5b11a2
ac61c80a2d9e95838ab6fdd8d41c9328e64a740e
/org/__init__.py
5cb075c765848e3d2a40892c4d50ccd25404bc99
[]
no_license
zdYng/ients_down
ac45f8f1016e8876b8e282d9055975b2c19291db
a85be63365ab7f54a3629498e19cd0c619e67887
refs/heads/master
2020-03-09T04:24:37.824832
2018-03-19T00:56:02
2018-03-19T00:56:02
128,586,973
1
0
null
2018-04-08T02:07:16
2018-04-08T02:07:16
null
UTF-8
Python
false
false
188
py
# import general.common_variable # # # def post_authority(request): # pass # # def post_urls_and_json(): # return [] # # # def post_menus(): # return {} # # # post_authority()
[ "mcdull9393@gmail.com" ]
mcdull9393@gmail.com
47fc0e9624d8cc322101caf2ae6445ee1054de30
92237641f61e9b35ff6af6294153a75074757bec
/Algorithm/BOJ/silver3_14889_스타트와 링크.py
bec2442f81404f829240877d5be59cfb8d03eb1a
[]
no_license
taepd/study
8ded115765c4f804813e255d9272b727bf41ec80
846d3f2a5a4100225b750f00f992a640e9287d9c
refs/heads/master
2023-03-08T13:56:57.366577
2022-05-08T15:24:35
2022-05-08T15:24:35
245,838,600
0
1
null
2023-03-05T23:54:41
2020-03-08T15:25:15
JavaScript
UTF-8
Python
false
false
508
py
from itertools import combinations ans = float('inf') n = int(input()) arr = [list(map(int, input().split())) for __ in range(n)] combo = list(combinations([i for i in range(n)], n//2)) start, link = combo[:len(combo)//2], combo[len(combo)//2:][::-1] for s, l in zip(start, link): sum_s, sum_l = 0, 0 for i, ...
[ "taepd1@gmail.com" ]
taepd1@gmail.com
136b946b045551386f5d1c1d0f3e3a8a6645bd2c
e1a7bbfc7ab3ec2ee0991ea6cfdd59f7f936c756
/validate_knn.py
fe6202ad27501dc59e6d1796cd6deb65ac79bf72
[ "MIT" ]
permissive
laiguokun/fairseq
0247068de72fa9360a28fbbeb2cb153239c3e4d9
6c01c91aac81eb2e3173add4463dfa45c404ffa5
refs/heads/master
2020-08-05T08:18:57.911610
2020-01-04T05:19:59
2020-01-04T05:19:59
212,462,353
1
0
MIT
2019-10-02T23:39:28
2019-10-02T23:39:28
null
UTF-8
Python
false
false
3,822
py
#!/usr/bin/env python3 -u #!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch from fairseq import checkpoint_utils, options, progress_bar, utils from knn_u...
[ "google-dl-platform@googlegroups.com" ]
google-dl-platform@googlegroups.com
f166215cb97949167cdf97d382da8c146b4ba4d9
ed00151e514d38cffabc37f8c74c2142fe497a7b
/base/Html_Parser.py
a2b2e3e188feb3cd25156a48dbfaa0480fc51f5a
[]
no_license
jingihu/spider_simple_frame
e251e40b6f115123e69e2e0c25fee62c543c3004
722049c1bc2f68284c92bfe3cdf3fab1176802d6
refs/heads/master
2022-12-13T05:44:00.986211
2019-04-28T15:08:27
2019-04-28T15:08:27
183,922,594
0
0
null
2022-12-08T05:02:33
2019-04-28T15:00:56
Python
UTF-8
Python
false
false
1,577
py
import re from bs4 import BeautifulSoup class HtmlParser(object): def parser(self,page_url,html_cont): ''' 用于解析网页内容,抽取url和数据 :param page_url: 下载页面的url :param html_cont: 下载的网页内容 :return: 返回url和数据 ''' if page_url is None or html_cont is None: ret...
[ "you@example.com" ]
you@example.com
b178342fd8b0ff7488323056e7f6e2d26693d27c
6cb4739856259da363ec64c7f9f4837d29ea7cdd
/demo1/relationtest/migrations/0002_application_host.py
538461a1f89243c44bf06652eff006b26ed41837
[]
no_license
zzy0371/Py1903
41ac290f5e6303794229ca84a9c861bc7e50cf33
771c7e4e2cbdbfc01a0d19ac7b0e34f2b0da874a
refs/heads/master
2023-05-02T03:25:56.435094
2019-06-18T10:14:30
2019-06-18T10:14:30
189,959,324
0
0
null
2023-04-21T20:33:00
2019-06-03T07:49:45
Python
UTF-8
Python
false
false
861
py
# Generated by Django 2.2.2 on 2019-06-10 03:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('relationtest', '0001_initial'), ] operations = [ migrations.CreateModel( name='Host', fields=[ ('id'...
[ "496575233@qq.com" ]
496575233@qq.com
e971167c3bf097969bde9c314b3e31f0f5ff0ec8
4d2238210813c1581bf44f64d8a63196f75d2df4
/craking/greatestSumOfSubString.py
1e79a98d0fe3a195d3eef0ea87dcdc97222f1594
[]
no_license
wwtang/code02
b1600d34907404c81fa523cfdaa74db0021b8bb3
9f03dda7b339d8c310c8a735fc4f6d795b153801
refs/heads/master
2020-12-24T14:10:33.738734
2012-12-14T04:24:47
2012-12-14T04:24:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,115
py
""" Find the substring of string with largest sum input: an array with positive and negative integer, output the largest sum of a substring of the array algorithm: two flags : current sum and largest sum 1. Go through the array from the first integer, and add to current sum, if curSum < 0, set curSum to 0, els...
[ "andytang1994@gmail.com" ]
andytang1994@gmail.com
37574c2e7534e88d7bcf3fdb17429a4e75bdad6e
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-cloudapi/aliyunsdkcloudapi/request/v20160714/ModifyInstanceSpecRequest.py
029d3eb3f1600144bcf8b98fdf168aeee7afb817
[ "Apache-2.0" ]
permissive
aliyun/aliyun-openapi-python-sdk
4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f
83fd547946fd6772cf26f338d9653f4316c81d3c
refs/heads/master
2023-08-04T12:32:57.028821
2023-08-04T06:00:29
2023-08-04T06:00:29
39,558,861
1,080
721
NOASSERTION
2023-09-14T08:51:06
2015-07-23T09:39:45
Python
UTF-8
Python
false
false
2,445
py
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
3e5db3bf0ce7cfe3d6dff53a66645acf4e27bc41
cfbed7f3e66a56af17527a219e47e3586766e346
/sbpy/spectroscopy/tests/test_core.py
64042ceedf9bd3592decde74bfb29cc34b55aa04
[ "BSD-3-Clause" ]
permissive
bsipocz/sbpy
823ebf53ddedc4f7ac46a6bb40a2ed96f019cd4b
98fe91ca75e207608e4fc2d75a94f058ec5fb2fe
refs/heads/master
2020-05-16T13:27:37.196386
2019-04-10T22:01:19
2019-04-10T22:01:19
183,074,455
0
0
null
2019-04-23T18:32:30
2019-04-23T18:32:29
null
UTF-8
Python
false
false
6,959
py
# Licensed under a 3-clause BSD style license - see LICENSE.rst import sys import mock import pytest import numpy as np import astropy.units as u from astropy.tests.helper import remote_data import synphot from ..core import SpectralStandard from ... import bib, units, utils from ... import exceptions as sbe class S...
[ "msk@astro.umd.edu" ]
msk@astro.umd.edu
b8780aa002678b1d032caa6d442c9d6164ea3903
4ce6290a08616404e99ea7234221bb2df78f84c1
/scrapyspider/scrapyspider/spiders/lagoujob_crawler.py
bcaea14a9afb40b86cc3d5bab45a911c53985768
[]
no_license
Coder-Chandler/Spider
ba2e75664e441fba1abb5e76f89bafcd199ea172
42546b19ffd8eb05c9debf6164e44b2897bb60ab
refs/heads/master
2020-12-02T06:46:27.105950
2017-11-21T11:56:03
2017-11-21T11:56:03
96,895,528
1
0
null
null
null
null
UTF-8
Python
false
false
4,437
py
# -*- coding: utf-8 -*- import scrapy from scrapy.linkextractors import LinkExtractor from scrapy.spiders import CrawlSpider, Rule from items import LaGouItemLoader, LaGouJobItem from utils.common_use_func import get_md5 from scrapy.xlib.pydispatch import dispatcher from scrapy import signals import datetime class La...
[ "ysiwgtus@gmail.com" ]
ysiwgtus@gmail.com
221d50b6e5bc1574a78e1dbb605f1566c6d70015
ac83d1ddb84ecc904c73bdf779f458bd77efc98c
/test/programytest/config/bot/test_bot.py
9f5876b9d9ebdd4404fdc174cca5b57917d9ab21
[ "MIT" ]
permissive
secrecy27/chatbot
77829f32a15e17563f038663aebebdb71e52c5a7
e65a753cf665a4d6d97b57703431cba5331e4f0b
refs/heads/master
2022-07-24T08:39:57.788009
2020-07-16T03:55:21
2020-07-16T03:55:21
130,678,143
4
4
NOASSERTION
2022-07-06T19:49:14
2018-04-23T10:12:01
Python
UTF-8
Python
false
false
4,432
py
import unittest from programy.config.bot.bot import BotConfiguration from programy.clients.events.console.config import ConsoleConfiguration from programy.config.file.yaml_file import YamlConfigurationFile class BotConfigurationTests(unittest.TestCase): def test_with_data(self): yaml = YamlConfiguration...
[ "secrecy418@naver.com" ]
secrecy418@naver.com
3b738f29669105a66e15e5075a549c129746ad7a
52b5773617a1b972a905de4d692540d26ff74926
/.history/fizz_20200607124437.py
1acfb3576aa7e54f12aa37d13549a66ccfc22aa7
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
def fizz(num): newNumber = [] for i in range(1,num+1): newNumber.append(i) for j in range(len(newNumber)): if newNumber[j] % 3== 0: newNumber[j] = "Fizz" elif newNumber[j] % 5 == 0: newNumber[j] = "Buzz" elif newNumber[j] % 3 == 0 and newNumber[j] ==...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
45f4a980ce02d61a37cef0a80ed5db263406d23d
e6b0cc447024635419968fa0d5516af6630823bb
/sona15/enroll/migrations/0001_initial.py
7c172122b118876b2b9d02221424a4b43c0f20d0
[]
no_license
kamal0072/djangoproject
711c0ece49434065de0d66d8ba44dcda3198ff01
04b8f0071d1ce9cfd47c682318654c4b881e8011
refs/heads/master
2023-04-12T09:40:26.367185
2021-05-16T16:39:03
2021-05-16T16:39:03
366,583,498
1
0
null
null
null
null
UTF-8
Python
false
false
545
py
# Generated by Django 3.1.6 on 2021-05-16 05:47 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='SchoolModel', fields=[ ('id', models.AutoFi...
[ "hasan.kamaal0072@gmail.com" ]
hasan.kamaal0072@gmail.com
9e0cc00a35519656f8c62a7e1a27959e44d00a01
e3120b6bb8c51c2faee8c9b17a43930831c652b0
/settings.py
0c7f9b0242f143204e8122fd4d79265f5395ea34
[]
no_license
yizhong120110/CnkiSpider
c7b47d09756239a88620d749aef8e7208a40937a
cc673fd8562eee0cf674447127b2022397f0cd12
refs/heads/master
2023-03-13T08:27:34.510685
2021-03-01T02:23:38
2021-03-01T02:23:38
312,212,265
1
0
null
null
null
null
UTF-8
Python
false
false
4,855
py
# -*- encoding: utf-8 -*- ''' @File : settings.py @Contact : yizhong120110@gmail.com @Descrip : @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/10/20 17:49 qiuy 1.0 None ''' import os,logging,time from urllib.parse import quote u...
[ "yizhong120110@gmail.com" ]
yizhong120110@gmail.com
e3582d046af2b0c6594b1adfc10749c66e87436a
78d35bb7876a3460d4398e1cb3554b06e36c720a
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_05_01/operations/_load_balancer_network_interfaces_operations.py
a407acb084c4141f9133496cde712cf20099cf7a
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
catchsrinivas/azure-sdk-for-python
e35f59b60318a31b3c940a7a3a07b61b28118aa5
596227a7738a5342274486e30489239d539b11d1
refs/heads/main
2023-08-27T09:08:07.986249
2021-11-11T11:13:35
2021-11-11T11:13:35
427,045,896
0
0
MIT
2021-11-11T15:14:31
2021-11-11T15:14:31
null
UTF-8
Python
false
false
5,718
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" ]
catchsrinivas.noreply@github.com
6d2f8069c79dda8d8e1e4b6be968afc549c3012a
04b1803adb6653ecb7cb827c4f4aa616afacf629
/services/data_decoder/DEPS
c891c85dfeff1340f5ee0bcfefde198c01b44a4a
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
Python
false
false
152
include_rules = [ "+gin", "+jni", "+skia", "+third_party/libxml/chromium", "+third_party/blink/public", "+third_party/skia", "+ui/gfx", ]
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
f2fe1f5c48038929d8f7c61c80400c535521a137
7a20dac7b15879b9453150b1a1026e8760bcd817
/Curso/ExMundo3/Ex108Modulo.py
183abe4ae23ac44c68d6e9647476e2d2b8456a57
[ "MIT" ]
permissive
DavidBitner/Aprendizado-Python
7afbe94c48c210ddf1ab6ae21109a8475e11bdbc
e1dcf18f9473c697fc2302f34a2d3e025ca6c969
refs/heads/master
2023-01-02T13:24:38.987257
2020-10-26T19:31:22
2020-10-26T19:31:22
283,448,224
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
def dobro(n=0): r = n * 2 return r def metade(n=0): r = n / 2 return r def aumentar(n=0, a=0): r = n + (n * a / 100) return r def diminuir(n=0, a=0): r = n - (n * a / 100) return r def moeda(n=0, m='R$'): r = f'{m}{n:.2f}'.replace('.', ',') return r
[ "david-bitner@hotmail.com" ]
david-bitner@hotmail.com
bfad10a5ddb1146f7e4e2c9f60602b6705330eac
b4206f15618a7f9595a0e70ed4980fd2f58b49f7
/Extended-Frustum-PointNet/eval_frustum_pointnet_img_test.py
725cca21f01e75f3500650031b96edc6c3336738
[ "MIT" ]
permissive
Sakura1221/3DOD_thesis
12f7c90c615c5634496aeff71e979b75755b43f2
5cb178a162b1e2821c012ff23195612607a49bc9
refs/heads/master
2021-08-01T13:58:25.676359
2021-07-20T16:32:24
2021-07-20T16:32:24
173,865,680
0
0
null
2019-03-05T03:24:28
2019-03-05T03:24:27
null
UTF-8
Python
false
false
6,490
py
# camera-ready from datasets_img import DatasetKittiTest, wrapToPi, getBinCenter # (this needs to be imported before torch, because cv2 needs to be imported before torch for some reason) from frustum_pointnet_img import FrustumPointNetImg import torch import torch.utils.data import torch.nn as nn from torch.autograd ...
[ "fregu856@student.liu.se" ]
fregu856@student.liu.se
f6a723b118f50519698ba8c4776f4a1848e03fcd
6f78a4c4896563a52d86eacf49dbb6a358a3646e
/programmers/python/programmers_12904.py
efc118b02d43f2337d64443db1fd693751e3de37
[]
no_license
wj1224/algorithm_solve
259c39d2a85ecb2630e089eb0c86cdde9ff3baeb
8b0f15b71a4dd8eb40d3c9baee003a0678c3f2aa
refs/heads/master
2023-08-25T06:14:21.615802
2021-10-26T05:00:59
2021-10-26T05:00:59
219,981,525
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
def solution(s): mem = [] answer = 1 for i in range(len(s)): mem.append([]) for j in range(len(s)): if i == j or (i + 1 == j and s[i] == s[j]): mem[i].append(True) if i != j: answer = 2 else: mem[i].append(False) for i in range(2, len(s)): for j in range(len(s) - i): if s[j] == s[j +...
[ "cwj1387@gmail.com" ]
cwj1387@gmail.com
6defc671c2a6608b129c6fc17953b3be0ba0854a
f023692f73992354a0b7823d9c49ae730c95ab52
/AtCoderRegularContest/147/A.py
8a7373675180908c0032c4adb5ab004668371545
[]
no_license
corutopi/AtCorder_python
a959e733f9a3549fab7162023e414ac2c99c4abe
a2c78cc647076071549e354c398155a65d5e331a
refs/heads/master
2023-08-31T09:40:35.929155
2023-08-20T06:19:35
2023-08-20T06:19:35
197,030,129
1
0
null
2022-06-22T04:06:28
2019-07-15T15:57:34
Python
UTF-8
Python
false
false
1,247
py
# import sys # sys.setrecursionlimit(10 ** 6) # # for pypy # import pypyjit # pypyjit.set_param('max_unroll_recursion=-1') # import bisect # from collections import deque # import string from heapq import heappush, heappop from math import ceil, floor inf = float('inf') mod = 10 ** 9 + 7 mod2 = 998244353 """ a <= b ...
[ "39874652+corutopi@users.noreply.github.com" ]
39874652+corutopi@users.noreply.github.com
ab7019008088b14511d226daaf7c4e2706cd062b
a8fbb18ded18beb0d8e5f5af8df9b765596566e2
/sqlite_insert_ex.py
6aa439f4ab967852258b4bdd11fc7af30e4dd7eb
[]
no_license
devkim0219/crawling
fc0156ad15117263c4a62d610818cdc3b3f03568
5e19b2d77748e3b32a82279cf113785fa168aa79
refs/heads/master
2021-01-03T06:06:25.313821
2020-02-12T07:48:25
2020-02-12T07:48:25
239,954,406
0
0
null
null
null
null
UTF-8
Python
false
false
2,088
py
from bs4 import BeautifulSoup import urllib.request, time, csv import sqlite3 def get_list_records(table, list_records): for i, r in enumerate(table.find_all('tr')): for j, c in enumerate(r.find_all('td')): print(j, ':::', c) if j == 0: no = int(c.text.strip()) ...
[ "devkim0219@email.mail" ]
devkim0219@email.mail
6e0f4c681bd7af9eb1426376b333ed03ab243ce3
adc6aaaea9a02f7312c2aaaa50ec5a7240ffc4da
/Handsome_app/migrations/0001_initial.py
546d60fe7e7e4dd1a7c75060ba1c8f38c3514ef2
[]
no_license
Jhougo/HandsomeDjango
f11b1e8ecd5192005a6bd5e2466c7e70e12b370d
8d149b7191a9004a762d15d864b48f845f2f0d56
refs/heads/master
2021-06-05T02:09:34.156887
2020-07-22T03:51:16
2020-07-22T03:51:16
149,241,286
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
# Generated by Django 2.0.2 on 2018-03-01 08:46 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(...
[ "jhougo7928@gmail.com" ]
jhougo7928@gmail.com
124be8623d6304279cf27772f57560037993db7f
316a07bd7ab47d447606d341c5d221d8318f65b9
/horizon/horizon/dashboards/nova/chains/tables.py
9517739b0c87338047984e74a04ee75251efa7fc
[]
no_license
kumarcv/openstack-nf
791d16a4844df4666fb2b82a548add98f4832628
ad2d8c5d49f510292b1fe373c7c10e53be52ba23
refs/heads/master
2020-05-20T03:10:54.495411
2013-06-16T23:44:11
2013-06-16T23:44:11
7,497,218
2
0
null
null
null
null
UTF-8
Python
false
false
2,838
py
# Copyright 2013 Freescale Semiconductor, Inc. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
[ "b37839@freescale.com" ]
b37839@freescale.com
9994862af5db1a6c2bdbe178cd88391212c8513a
ad4d927b05d3004cc5f835c84807a272ecff439f
/src/olaf/install_isolated/lib/turtlebot3_teleop/turtlebot3_teleop_key
167a3e716ecd0800e5c249ab5013fd4cd8dc9f45
[]
no_license
kookmin-sw/capstone-2020-11
73954f8a692d3240a22ca9a81c9bede8538fabbf
081733fb0470d83930433a61aabf9708275d64dd
refs/heads/master
2023-03-06T23:02:14.869404
2022-11-09T01:44:27
2022-11-09T01:44:27
246,285,681
5
4
null
2023-03-04T13:53:47
2020-03-10T11:42:27
C++
UTF-8
Python
false
false
6,540
#!/usr/bin/env python2 # Copyright (c) 2011, Willow Garage, 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 # not...
[ "ksp2246@naver.com" ]
ksp2246@naver.com
31557908d04d13dc88dc40dd571f24ea7c14c433
786de89be635eb21295070a6a3452f3a7fe6712c
/pdsdata/tags/V00-01-28/SConscript
f3284caeca6d549b3c1e630047a321c8c67a4879
[]
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
1,101
#-------------------------------------------------------------------------- # File and Version Information: # $Id$ # # Description: # SConscript file for package lusi-xtc #------------------------------------------------------------------------ # Do not delete following line, it must be present in # SConscript file...
[ "salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7" ]
salnikov@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7
5e387e3300bfeb5911a39d5440cd1311b938502c
b70d64aabb196a5ca5614e88712722a983b5e383
/Stacks & Queues/Evaluation of Postfix Expression.py
3af1f30f52a963ec6271baf3a86be6b965794917
[ "MIT" ]
permissive
SupriyoDam/DS-450-python
023ee87461f9d77fcaf949571d4e033eb2a49ca7
5dc21ce61b3279e9bd9d6ef3ad236667227ca283
refs/heads/main
2023-06-04T11:39:17.576813
2021-07-01T14:27:13
2021-07-01T14:27:13
381,083,361
1
0
MIT
2021-06-28T15:42:55
2021-06-28T15:42:55
null
UTF-8
Python
false
false
715
py
from collections import deque class Solution: #Function to evaluate a postfix expression. def EvaluatePostfix(self, S): stack = deque() for char in S: if char.isdigit(): stack.append(int(char)) else: op2 = stack.pop() ...
[ "iamkaushik2014@desktop.com" ]
iamkaushik2014@desktop.com
0ef0bfe4c26f1a71a8507aaf9055a68dfedbb4cc
94708303f42fd0675c955c16be6ace52c817a7e7
/Widgets/spinctrl.py
50807dea96128887c3de47952369bf4bd3299247
[]
no_license
jdcs/TheWxPythonTutorial
c2901496158111132186ee56bdb54f99bd1d60a8
f5c9c0975f501ef39942a7c3bfb8838efe6c8dc1
refs/heads/master
2020-12-28T20:31:02.581514
2011-06-02T16:11:19
2011-06-02T16:11:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,281
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # spinctrl.py import wx class Converter(wx.Dialog): def __init__(self, parent, id, title): wx.Dialog.__init__(self, parent, id, title, size = (350, 310)) wx.StaticText(self, -1, 'Convert Fahrenheit temperature to Celsius', (20, 20)) wx.Stat...
[ "Masashi.Kameda+github@gmail.com" ]
Masashi.Kameda+github@gmail.com
9534cb278ecdda340ab3c893f409de03179d7f13
5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5
/blimgui/dist/OpenGL/GLES2/NV/fence.py
27f2bb1011b3f0fa088a53576bc0762ce587386c
[ "MIT" ]
permissive
juso40/bl2sdk_Mods
8422a37ca9c2c2bbf231a2399cbcb84379b7e848
29f79c41cfb49ea5b1dd1bec559795727e868558
refs/heads/master
2023-08-15T02:28:38.142874
2023-07-22T21:48:01
2023-07-22T21:48:01
188,486,371
42
110
MIT
2022-11-20T09:47:56
2019-05-24T20:55:10
Python
UTF-8
Python
false
false
2,769
py
'''OpenGL extension NV.fence This module customises the behaviour of the OpenGL.raw.GLES2.NV.fence to provide a more Python-friendly API Overview (from the spec) The goal of this extension is provide a finer granularity of synchronizing GL command completion than offered by standard OpenGL, which offers only t...
[ "justin.sostmann@googlemail.com" ]
justin.sostmann@googlemail.com
1babeb62a39fbb99e21d72f22b1cb97397c3792a
663c108dca9c4a30b7dfdc825a8f147ba873da52
/venv/exceptionhandling/39UserDefinedException03.py
ee86fc0f283b48185732af2fb9ddaada644aa643
[]
no_license
ksrntheja/08-Python-Core
54c5a1e6e42548c10914f747ef64e61335e5f428
b5fe25eead8a0fcbab0757b118d15eba09b891ba
refs/heads/master
2022-10-02T04:11:07.845269
2020-06-02T15:23:18
2020-06-02T15:23:18
261,644,116
0
0
null
null
null
null
UTF-8
Python
false
false
747
py
class TooYoungException(Exception): pass class TooOldException(Exception): def __init__(self, arg): self.msg = arg age = int(input("Enter Age:")) if age > 60: raise ArithmeticError("Plz wait some more time you will get best match soon!!!") elif age < 18: raise TooOldException("Your age alrea...
[ "srntkolla@gmail.com" ]
srntkolla@gmail.com
bb855fae53672dcd85726cd863371bc14becb7d9
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/pypy/module/math/test/test_math.py
e6c4d6cf6ccd04cc3af886fc4c2f6853affed182
[ "BSD-3-Clause" ]
permissive
mesalock-linux/mesapy
4f02c5819ce7f2f6e249d34840f1aa097577645d
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
refs/heads/mesapy2.7
2023-08-16T21:33:02.239581
2019-08-13T10:29:43
2019-08-13T18:06:45
136,080,721
396
33
NOASSERTION
2020-04-01T03:05:18
2018-06-04T20:45:17
Python
UTF-8
Python
false
false
8,001
py
from __future__ import with_statement import py from pypy.interpreter.function import Function from pypy.interpreter.gateway import BuiltinCode from pypy.module.math.test import test_direct class AppTestMath: spaceconfig = { "usemodules": ['math', 'struct', 'itertools', 'time', 'binascii'], } de...
[ "mssun@mesalock-linux.org" ]
mssun@mesalock-linux.org
fa8d2b2835a1a5f049a0f391d047e5c7945a18a4
bba75b2de938c4854b658a92a3522520f7eb08e1
/PythonEdu/game_sprite_moving_rotating_images.py
07387e757be09ad98aa0fcbe273f5b24a1fc9423
[]
no_license
PyRPy/Py4fun
edb14e134e47061bf93935a4f8f05261fe434bd8
14e02c78f7f43fd47a44466f0da40329bc5ce03c
refs/heads/master
2023-03-15T19:23:16.526946
2023-03-04T18:54:43
2023-03-04T18:54:43
252,577,302
1
3
null
null
null
null
UTF-8
Python
false
false
3,113
py
# game 'sprite' class # http://programarcadegames.com/index.php?chapter=example_code import pygame import random # colors BLACK = (0, 0, 0) WHITE = (255, 255, 255) GREEN = (0, 255, 0) RED = (255, 0, 0) # block class class Block(pygame.sprite.Sprite): """ this class creates blocks, inherited fr...
[ "noreply@github.com" ]
PyRPy.noreply@github.com
cb2c881a3acef8dfa4f88a3f98cd20375bc01c7c
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/338/107905/submittedfiles/principal.py
2ba9aca8170533ca17f85eb04af720dc76eab686
[]
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
3,096
py
""" from time import sleep #def tabuleiro(): nome_do_jogador = input("Digite o seu nome: ") simb = input("Digite o simbolo com o qual vocÊ quer jogar [X ou O] : ") while(True): if simb == "X" or simb == "O" : break else: simb = input("Digite um simbolo válido %s : " % nome_do_jogador) j_d_v...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
8a5b6165bfa0c9c3c493dd155db7e910e56c24f7
b7683c108e68ee2d28573edf55923eb34cc2f5ee
/4_Feature_Detection_n_Description/6_BRIEF/6_Binary_Robust_Independent_Elementary_Features.py
34d86f928a176fd6f5840ac77c4747e83f4f179f
[]
no_license
aCuissot/openVC_win_py_tutorial
cc42ab1a1fb6eaefe5a91c7e1bb1926a776b0e01
7186b629747cb16f2bf42a03d2339d3dc3ea77bd
refs/heads/master
2020-05-18T12:17:04.619047
2019-07-10T13:45:00
2019-07-10T13:45:00
184,403,715
0
0
null
null
null
null
UTF-8
Python
false
false
448
py
import numpy as np import cv2 as cv from matplotlib import pyplot as plt img = cv.imread('../../Data/in/poly.jpg', 0) # Initiate FAST detector star = cv.xfeatures2d.StarDetector_create() # Initiate BRIEF extractor brief = cv.xfeatures2d.BriefDescriptorExtractor_create() # find the keypoints with STAR kp = star.detect(...
[ "harrypotter9752@gmail.com" ]
harrypotter9752@gmail.com
f4f40e8f50c05b05a90af3fdb62fad9b41b921f0
f889d26fec0c4da86c2b857191564e5ee57430a8
/Python_fundamentals/course_chapters_excercises/dictionaries/EX07_08_Company Users.py
447518f24fec79913dfad59ab55a378451874953
[]
no_license
Grigorov999/SoftUni-Python
4da6ecea760d13d7571723b8faa771b3be0199f6
cb4f8f352fc48cb1ae8b2efd803265707a37227f
refs/heads/master
2022-12-13T15:04:05.303204
2020-09-11T20:32:29
2020-09-11T20:32:29
294,784,057
0
0
null
null
null
null
UTF-8
Python
false
false
494
py
companies = {} while True: company_info = input().split(" -> ") if company_info[0] == "End": break else: company = company_info[0] id = company_info[1] if company not in companies: companies[company] = [] if id not in companies[company]: ...
[ "noreply@github.com" ]
Grigorov999.noreply@github.com
c8ddab7ee9746ecf5c3528c542a4eeedaec4cc1f
8300217ee09e9650f7daf9949ab2df7522e37448
/tests/utils.py
3e1ef912a3cb9d200947cf3019353893da6e19ef
[ "MIT" ]
permissive
zssure-thu/pylinac
ebfd070d2b4faa54f2291644dfac9dcaac615bda
d6f675f5e19ca4e6cb7de517f4f9ca85d241acad
refs/heads/master
2020-03-27T21:51:48.566924
2018-07-28T23:56:38
2018-07-28T23:56:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,290
py
import concurrent.futures from io import BytesIO, StringIO import multiprocessing import os import os.path as osp import pprint import time from tempfile import TemporaryDirectory from urllib.request import urlopen from pylinac.core import image def has_www_connection(): try: with urlopen('google.com') a...
[ "jkerns100@gmail.com" ]
jkerns100@gmail.com
e27deab430702d3df65dd09d298c294f8e2a5bcf
200697a438ada2985f70b7fc1cf14f1dd74ff5a2
/tests/nwchem/test01.py
1da295531707f8af7a4f92f80aa4deeaa0b9ee53
[]
no_license
f-fathurrahman/qeManager
b4beb396449556a81ade66603e2ac1982ae4a7eb
96cba93500d7c9fb73b83244610d0d5e44c189f2
refs/heads/master
2020-06-03T06:59:29.173948
2018-07-19T15:00:47
2018-07-19T15:00:47
94,120,083
0
0
null
null
null
null
UTF-8
Python
false
false
182
py
import sys sys.path.append('/home/efefer/WORKS/my_github_repos/') from qeManager.nwchem import * from ase.build import molecule atoms = molecule('NH3') NWChemInput(atoms).write()
[ "fadjar.fathurrahman@gmail.com" ]
fadjar.fathurrahman@gmail.com
6e74375cbaf54c6acfc12f9666b3ca226a550146
99259216f11b15ec60446b4a141b3592a35560ce
/wex-python-api/test/test_collection_params_default_output.py
3a2ac31e681eee918f92ad9e26ca931f27c98e77
[]
no_license
adam725417/Walsin
296ba868f0837077abff93e4f236c6ee50917c06
7fbefb9bb5064dabccf4a7e2bf49d2a43e0f66e9
refs/heads/master
2020-04-12T14:14:07.607675
2019-03-05T01:54:03
2019-03-05T01:54:03
162,546,202
0
0
null
null
null
null
UTF-8
Python
false
false
1,149
py
# coding: utf-8 """ WEX REST APIs Authentication methods - Basic Auth - JSON Web Token - [POST /api/v1/usermgmt/login](#!/User/signinUser) - [POST /api/v1/usermgmt/logout](#!/User/doLogout) - Python client sample [Download](/docs/wex-python-api.zip) OpenAPI spec version: 12.0.2.417 Generate...
[ "adamtp_chen@walsin.com" ]
adamtp_chen@walsin.com
cab5c629bf8deec16d275567b5261e191db5f7fd
5cec1ff43bf38cf31316254dabe3f972d38744ad
/src/hydrat/wrapper/GibbsLDA.py
b20c631e5acfb65dee77810c564fe53207a5f4e7
[]
no_license
eyadsibai/hydrat
7fb63f3c54f1fca25d04ab7266712c1077ffa2e3
5a68c6b8f32bc6bad59c3f002340bf7ef62e868c
refs/heads/master
2016-09-06T14:16:46.082697
2013-08-06T05:14:02
2013-08-06T05:14:02
33,199,904
1
0
null
null
null
null
UTF-8
Python
false
false
6,575
py
""" Python wrapper for GibbsLDA++ http://gibbslda.sourceforge.net/ """ import subprocess import tempfile import os import shutil import pexpect import re import numpy import scipy.sparse import logging # TODO: Support load/save of model # Support access to various mappings provided by the model logger = logging...
[ "saffsd@gmail.com" ]
saffsd@gmail.com
f782083c77baaf3a4dd9f3208c8567cd7f117651
999ec9742a865e3e6f800d5b8112c4bde7ec3154
/s3diff
2c18a7748168ae81670890a2e25e55f01950dae4
[ "MIT" ]
permissive
chbrown/scripts
896c97c8c700ce0fe302739bd50a17a4882f386a
4a7b0dbb2038cb792135c769895a78cbe3875b97
refs/heads/master
2020-12-25T16:51:00.051465
2020-11-11T15:29:22
2020-11-11T15:29:22
7,724,958
7
1
null
null
null
null
UTF-8
Python
false
false
5,829
#!/usr/bin/env python import re import os import argparse import hashlib import logging import ConfigParser from colorama import Fore # , Back, Style import boto # tree data structure definition (abstract, not intended to be instantiated directly) class Node(object): ''' Nodes each have a key (empty / None f...
[ "io@henrian.com" ]
io@henrian.com
5618478ba47827e9ce7d6cfb90a7ed1cfa53d135
8b7419572c2a3b92156462be87b1544efc0b3ba8
/django_test_app/models.py
5845747c09b1a7aa34db800e6faa9248f26d2ef0
[ "MIT" ]
permissive
briancappello/py-yaml-fixtures
e860eed93d84e6e7d490c7a6f40594cf13a1adb9
4f59db8a346e5ea097400c3c3d5a057a0f0647e4
refs/heads/master
2023-09-04T10:58:49.856749
2023-08-16T20:48:29
2023-08-16T20:48:29
124,434,821
15
5
MIT
2023-08-16T20:48:31
2018-03-08T18:58:38
Python
UTF-8
Python
false
false
642
py
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): pass class Category(models.Model): name = models.CharField(max_length=64) class Tag(models.Model): name = models.CharField(max_length=64) class Article(models.Model): title = models.CharFie...
[ "briancappello@gmail.com" ]
briancappello@gmail.com
bf45e440c1a92a1a01d82d385ae1a81934c4f206
8396606fcb98d8ab2d5e5a139da83e7ce0880324
/rps/backup_bots/Bot.py
0801126f71e02380689dc6143c3ac889ddfc9c36
[]
no_license
bopopescu/Learn2Mine-Main
87b3d6d7fa804568a93c4c7e8324c95574afc819
acc0267b86ad6a9e5e1619d494c20407d4710e90
refs/heads/master
2021-05-29T17:48:17.844094
2015-09-14T16:19:36
2015-09-14T16:19:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
549
py
#Bot import random if input =="": numRock = numPaper = numScissors = 0 numRock = input.count("R") numPaper = input.count("P") numScissors = input.count("S") if numRock > numPaper and numRock > numScissors: output = "P" if numPaper > numScissors: output = "S" else: output = "R" if numRock==numPaper and numRock==n...
[ "pauleanderson@gmail.com" ]
pauleanderson@gmail.com
d6538df7aa1f01fc8eea13ea802659dee23d5ed5
40804cfe754f4a0c99055e81966367f5a8641fac
/n_queens.py
fcc7ca042a0a7759883d6eae777921925f1dff57
[]
no_license
raochuan/LintCodeInPython
a3731b9a14c623278c8170fedd7be85fd7acfbfb
e57869437287bcc7619411f9d3d965a83e2bfacb
refs/heads/master
2021-01-17T23:57:47.709879
2016-08-02T07:21:36
2016-08-02T07:21:36
64,736,138
1
0
null
2016-08-02T07:48:56
2016-08-02T07:48:54
Python
UTF-8
Python
false
false
1,176
py
# -*- coding: utf-8 -*- class Solution: """ Get all distinct N-Queen solutions @param n: The number of queens @return: All distinct solutions """ def solveNQueens(self, n): # write your code here self.ret = [] self.limit = n self._solveNQueens(0, []) def _so...
[ "linying_43151@163.com" ]
linying_43151@163.com
71ac3e786a186c18ac40b3e6e111994157ccefb4
52b5773617a1b972a905de4d692540d26ff74926
/.history/stringReduction_20200722185803.py
8e66c32dd0cd58d3af318f47a05264caa553ffc6
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
342
py
def string(str): st = list(str) count = 0 while count < 10: for i in range(0,len(st)-1,2): pair = st[i] + st[i+1] print(pair) if pair == 'ab' or pair =='ba': st.pop(i) st.pop(i) st.insert(i,c) count +=1 ...
[ "mary.jereh@gmail.com" ]
mary.jereh@gmail.com
eb2133cb4f79137247662b1cb35d90d2e2c1e4e5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02716/s591586988.py
dea78424009c1a7b513c5d7d67d238af7b4b70de
[]
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
757
py
# coding: utf-8 # Your code here! N=int(input()) A=list(map(int,input().split())) if N==2: print(max(0,A[0],A[1])) exit() if N==3: print(max(0,A[0],A[1],A[2])) exit() dp=[[-10**18 for i in range(N)] for j in range(3)] dp[0][0]=A[0] dp[1][1]=A[1] dp[2][2]=A[2] for n in range(3): for index in rang...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e30d2a52ba715ac1acd000b884461fc7887dc46f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03964/s776639936.py
7d50be72d57cfb538747044259e82cf27b16f454
[]
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
311
py
n = int(input()) ca, cb = 0, 0 for i in range(n): a, b = map(int,input().split()) x, y = 1, 1 if ca > a: x = ca // a if ca % a: x += 1 if cb > b: y = cb // b if cb % b: y += 1 x = max(x, y) ca = a * x cb = b * x print(ca + cb)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
b7b4ba1e71e146a35df2cb96fd08e1dffae847a3
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/252526_Complex_BooleRegular/recipe-252526.py
1254f8efca0d2f100a7596e08174dfb8c8a2308c
[ "Python-2.0", "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
6,115
py
#!/usr/bin/python import re class PyBoolReException(Exception): def __init__(self, value): self.value = value def __str__(self): return str(self.value) class PyBoolRe: """ A class to perform boolean word matches in a string or paragraph. This class allows you to perform...
[ "betty@qburst.com" ]
betty@qburst.com
bb0e39e58d06b24f40dcd4805b94b5e9a7bbccd5
d1808d299de29518e38a572bc48a1da57d46c52d
/main/utils.py
6742449def223faffca83dbc72a7dfb346d31aab
[ "Unlicense" ]
permissive
jmhubbard/Good_Life_Meal_Prep_Subscribers_Page
64b7d3e1241cb16ae6263154360df907e782fe1d
5753a951514b507cc0a54b690e8276ff980b717c
refs/heads/main
2023-03-29T17:41:30.276239
2021-04-02T06:40:16
2021-04-02T06:40:16
327,174,048
0
0
null
null
null
null
UTF-8
Python
false
false
1,550
py
import os from django.contrib.sites.models import Site from django.core.mail import EmailMessage, send_mail from django.template.loader import render_to_string from django.urls import reverse from django.core.mail import EmailMultiAlternatives def send_email(context, message_text, message_html, subject, recipient_l...
[ "jasonhubb@gmail.com" ]
jasonhubb@gmail.com
80690316376983ee446f070cc185c2799a1cb9db
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/63/usersdata/199/28124/submittedfiles/swamee.py
676ce245babe53efc1f915d71a062ff3f1d90b18
[]
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
385
py
# -*- coding: utf-8 -*- import math f = 0.2 L = 5000 Q = 0.65 DeltaH = 22 v = 0.000001 g = float(input('Digite o valor de g: ')) e = float (input('Digite o valor de e: ')) Pi = float (input('Digite o valor de Pi: ')) D = (8*f*L*Q*Q) / (Pi*g*DeltaH)* (8*f*L*Q*Q) / (Pi*g*DeltaH) * (8*f*L*Q*Q) / (Pi*g*DeltaH)* (8*f*L*Q*Q)...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
ea80ca6b2759a89858ab676d67678086f7f77bda
83c0a2411925287516f5984640ca65477a8869b7
/lib/updater.py
0fc587631526ca3e60df1d20b45495a08816c69c
[ "Apache-2.0" ]
permissive
jeisonfura/mff_auto
6cf39a0a95256d6ab9a9dc0d2c20204cf95eb9a5
b118a0993bbd61858cfd8b272a3431e7be401ba4
refs/heads/master
2023-01-11T12:12:13.629003
2020-10-11T18:06:52
2020-10-11T18:06:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,796
py
import os import shutil import lib.logger as logging import zipfile import importlib import importlib.util import urllib.request as request import urllib.error as urlib_error import version as old_version_module from distutils.version import StrictVersion from distutils.dir_util import copy_tree logger = logging.get_...
[ "nkrayner@gmail.com" ]
nkrayner@gmail.com
b96312be0c747bb8709de1aabe615fe55b2562b1
b5ae24fd2ece2ca5ac39477ddb707d35f84869ea
/programmers/숫자 게임.py
4b21cb7c1f3c68680f7dff0126d58e646cfdb359
[]
no_license
sky7th/algorithm-ps
3476fcbb58743aa3428b3b8017131f16580044e7
3a94a62141407f9eb2c5b01bea6275fad252789b
refs/heads/master
2021-06-13T17:40:02.472902
2021-04-18T14:11:53
2021-04-18T14:11:53
177,175,084
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
from collections import deque def solution(A, B): answer = 0 A = sorted(A, reverse=True) B = deque(sorted(B, reverse=True)) for num in A: if num >= B[0]: continue B.popleft() answer += 1 return answer
[ "xoghk0321@gmail.com" ]
xoghk0321@gmail.com
333bf4f6c1b6a63465a4ae5c06e0420e823e1183
a97f789530412fc1cb83170a11811f294b139ee8
/疯狂Python讲义/codes/12/12.4/open_test.py
a82c8e0c5aad36b56cbc1ce6e38e8ab214fc0107
[]
no_license
baidongbin/python
3cebf2cc342a15b38bf20c23f941e6887dac187a
1c1398bff1f1820afdd8ddfa0c95ccebb4ee836f
refs/heads/master
2021-07-21T19:23:32.860444
2020-03-07T11:55:30
2020-03-07T11:55:30
195,909,272
0
1
null
2020-07-21T00:51:24
2019-07-09T01:24:31
Python
UTF-8
Python
false
false
249
py
# 以默认方式打开文件 f = open('open_test.py') # 访问文件的编码方式 print(f.encoding) # 访问文件的访问模式 print(f.mode) # 访问文件是否已经关闭 print(f.closed) # 访问文件对象打开的文件名 print(f.name)
[ "baidongbin@thunisoft.com" ]
baidongbin@thunisoft.com
c6d5a7f27e5cb9dc16455000f5f2e67af69bf8c6
12f006a0e5d75ef2349d4ae519c1c9cac5309761
/Solution_501.py
46ba1a4cb44d5d2a84e2ae8e9cc90ecffa559c3a
[]
no_license
TimothySjiang/leetcodepy
c613db16282eade713e01b7d641c0f5b341ec84b
ef64e46b8833a684b8b0355ce576b767a0e03596
refs/heads/master
2020-07-01T14:48:35.953841
2020-01-12T06:19:44
2020-01-12T06:19:44
201,199,810
1
0
null
null
null
null
UTF-8
Python
false
false
579
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def findMode(self, root: TreeNode) -> List[int]: if not root: return [] self.c = collections.Counter() self.dfs(r...
[ "shjiang@ucdavis.edu" ]
shjiang@ucdavis.edu
ce16f6208510e73773e5fa7429e9a1dc8fad905b
c98a9a8297c74dfa9b5daac86efc32d11c4be867
/backend/cookieapp/views.py
267671419c60ab45316e10d75183e94a51fd316c
[]
no_license
akabhi5/custom-jwt-auth-django
78e3537369f861860950782de5e7beb8c6d2e85c
63563cc8bbffedc54858eab1fb2f05dde4ab4ef8
refs/heads/master
2022-12-03T08:38:58.029548
2020-08-12T15:46:26
2020-08-12T15:46:26
287,053,299
0
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
from django.shortcuts import render import jwt from django.conf import settings from django.contrib.auth import get_user_model from .authentication import JWTAuthentication from django.shortcuts import render from rest_framework.views import APIView from rest_framework.response import Response from django.conf import ...
[ "abhishekk580@gmail.com" ]
abhishekk580@gmail.com
be7296d5505159851b7da1f0b76ede50f2b031e2
0ba5622abc2125ac8a9907757680da4d7cb7b47e
/Knowrob/indigo/indigo-knowrob-dev/catkin_ws/devel/.private/iai_kinematics_msgs/lib/python2.7/dist-packages/iai_kinematics_msgs/srv/__init__.py
f136f1904c1a4c319f04225f41e010162bf2c515
[]
no_license
IoT-Lab-Minden/docker-ros
c2a327117bdf1d0b861d4580156e595a079ec5d5
5c57c15717cbcae515d82c3dc75470587bb2508e
refs/heads/master
2021-01-18T03:33:22.128596
2017-05-17T13:48:05
2017-05-17T13:48:05
85,809,457
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
from ._GetKinematicSolverInfo import * from ._GetPositionFK import * from ._GetPositionIK import * from ._GetWeightedIK import *
[ "aljoscha.poertner@fh-bielefeld.de" ]
aljoscha.poertner@fh-bielefeld.de
08470bc51337c3da0a8b25c6824a3af07e9566bc
532e3f4530353fdf9b6befb8a88c1dd450f42c36
/migrate_all_dashboards.py
aa602319cb3c59db8ec4e7ba7001b5cfc2486eb7
[ "BSD-3-Clause" ]
permissive
DataDog/Miscellany
9aad31b7ac2d635c1a9dd9af8f4ab927c9914e3a
b55849ab0b2ec95642d4082a834218b32276884e
refs/heads/master
2023-08-10T20:20:41.437060
2022-09-23T06:40:40
2022-09-23T06:40:40
48,389,989
204
149
BSD-3-Clause
2023-07-21T13:35:55
2015-12-21T19:27:04
Python
UTF-8
Python
false
false
1,487
py
from datadog import initialize, api options = { 'api_key': '<API KEY ORIGINAL ACCOUNT>', 'app_key': '<APP KEY ORIGINAL ACCOUNT>' } initialize(**options) dashboard_ids = [] dashboard_data = [] ## Gather all the dashboard IDs in original account response = api.Dashboard.get_all() dashboards = response["dashb...
[ "noreply@github.com" ]
DataDog.noreply@github.com
dc2b790206c0c8104d57a92101db113a62f90841
5c6c165cdbdc4fd538f4aed7d0fede76fc480444
/docs/conf.py
6da5bd8ef7dab025cbabbac48ca0dfdb16d687c1
[ "Apache-2.0" ]
permissive
asphalt-framework/asphalt-feedreader
b4b5e693a65dd51dd3fdbe1234a691c7de769bfb
096df835408ecfcfde593950c9c80d130f62cc5e
refs/heads/master
2021-01-18T19:53:06.455455
2017-11-26T17:33:13
2017-11-26T17:34:46
86,918,924
1
0
null
null
null
null
UTF-8
Python
false
false
854
py
#!/usr/bin/env python3 import pkg_resources extensions = [ 'sphinx.ext.autodoc', 'sphinx.ext.intersphinx', 'sphinx_autodoc_typehints', 'sphinxcontrib.asyncio' ] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = 'asphalt-feedreader' author = 'Alex Grönholm' copyrigh...
[ "alex.gronholm@nextday.fi" ]
alex.gronholm@nextday.fi
1fe6bc904fb967eb965a4df87dc597e8cb4ea549
5c6a8cd15955f7ca5f822b17b56c37c36ca4144d
/reference/rpsnet/approaches/ewc.py
ceb185148f0ba6348d50965ed6f9e4eb71c91538
[]
no_license
xavoliva/CAT
57e48eb958d10f17071797645f4836ed33ae74a7
5f32ada1eed4bf4de4488840bd3ae7163e9dd22b
refs/heads/main
2023-01-22T16:06:40.200292
2020-12-08T17:38:30
2020-12-08T17:38:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,783
py
import sys,time import numpy as np import torch from copy import deepcopy import utils class Appr(object): """ Class implementing the Elastic Weight Consolidation approach described in http://arxiv.org/abs/1612.00796 """ def __init__(self,model,nepochs=100,sbatch=64,lr=0.05,lr_min=1e-4,lr_factor=3,lr_patienc...
[ "15011700342Xuan" ]
15011700342Xuan
cb90bcf4ce4e8201546b3dd11c4c6e2d1af10e59
1401691e4b16b9feea9644df4e859c72aa971606
/class_04_sse.py
49c7ab36e25029cf65254e38eeba4a8cdad2b5e7
[]
no_license
Swall0w/cluster
1f28f5997380109bafdc40ed66778643e46f96e4
c9ee492c59b53ae0c0308d7236492c21d1757499
refs/heads/master
2021-01-20T01:38:19.400175
2017-06-27T09:22:05
2017-06-27T09:22:05
89,310,396
0
0
null
null
null
null
UTF-8
Python
false
false
1,410
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler #from func import cluster def data_split(data,num): X = data[:,:num] y = data...
[ "technext.jpn@gmail.com" ]
technext.jpn@gmail.com
3ab32d8352f4cf205033d81188ca4d834e9d63a0
07efdf9a706761285698918014a084c3e16ff058
/codecheffeb20blongcookdup.py
14081430eccefd0808892f3d6303473979b03f5a
[]
no_license
sreyansb/CodeChef
973ecbf304ebc5fe3f2c5cfe36ecb2f7d5b3abf6
b5c7b93730654e7b8dc616f7e8d41d257a8aa18d
refs/heads/master
2023-01-02T18:18:34.255247
2020-10-28T08:24:43
2020-10-28T08:24:43
275,896,544
0
0
null
null
null
null
UTF-8
Python
false
false
912
py
#question is not about leap year.t happens in FEB when the first friday appears #on 6th or 7th import datetime import calendar def leap(y): if (y%4==0 and y%100) or y%400==0: return 1 return 0 def findday(y): return datetime.datetime(y,2,1).weekday() for _ in range(int(input())): m1,y1=map(int,...
[ "sreyansrocks@gmail.com" ]
sreyansrocks@gmail.com
8026aba8c0c682ce4b10b72192b7aaebea17abc9
fd74a044c0037796455ba4bd4fd44f11c3323599
/Contest/ABC/Contest_155/d.py
647052df8ba0932deafa966e416b50adc33b6e1e
[]
no_license
tegetege/tegetege_AtCoder
5ac87e0a7a9acdd50d06227283aa7d95eebe2e2f
ba6c6472082e8255202f4f22a60953d0afe21591
refs/heads/master
2022-03-25T00:29:22.952078
2022-02-10T14:39:58
2022-02-10T14:39:58
193,516,879
0
0
null
2019-06-25T13:53:13
2019-06-24T14:02:05
Python
UTF-8
Python
false
false
174
py
N,K = map(int,input().split()) A = list(map(int,input().split())) ans = list() for i in range(N): for j in range(i+1,N): ans.append(A[i]*A[j]) ans.sort() print(ans[K-1])
[ "m_take7_ex_d@yahoo.co.jp" ]
m_take7_ex_d@yahoo.co.jp
6700179b0ecf461e83722b3ebff3dc48ca5b087e
35109088e79989e8b0ca9d9ddadad1546eebc8e3
/AB/pandas/pandas_day_02/pandas_student/practice.py
ffb496cde9ff888524b27063459228282554fb12
[]
no_license
ABCmoxun/AA
d0f8e18186325bfd832b26f3b71027d1dc8255b2
c2c4a5b6683555b5d6200730b789d6e655f64c7f
refs/heads/master
2020-03-25T11:11:54.882204
2020-03-03T05:19:07
2020-03-03T05:19:07
143,722,606
1
0
null
null
null
null
UTF-8
Python
false
false
1,191
py
import numpy as np import pandas as pd # 创建DataFrame df = pd.DataFrame([['Snow','M',22],['Tyrion','M',32],['Sansa','F',18],['Arya','F',14]], columns=['name','gender','age']) # print(df) #选去多列,gender和age列 # print(df[['name','gender']]) # print(df.loc[:,['name','gender']]) # print(df.iloc[:,[0,1]]) # print(df.iloc[:,0:2]...
[ "1945568441@qq.com" ]
1945568441@qq.com
a59beb2bdc6f80dc9f4828db98d6a38ebb4e144c
68ca052b019889567c7f110eccd5e5efcb5ef194
/factories/character_factory.py
06551931a8e9e5005ca7005e4102e49e1ce92dc9
[ "MIT" ]
permissive
botamochi0x12/Python-Roguelike-Framework
0098d8cd34d7c535845f294185d54d1e52036e1b
230101fb076e3d2a8009ce3320d25cf197192328
refs/heads/master
2023-08-15T17:54:14.641546
2021-06-08T14:41:57
2021-06-08T14:41:57
374,774,980
0
0
MIT
2021-06-08T14:41:58
2021-06-07T19:13:37
Python
UTF-8
Python
false
false
3,090
py
from characters.character import Character from components.display import Display from components.experience_pool import ExperiencePool from components.inventory import Inventory from components.race import Race from data.python_templates.characters import character_templates from data.python_templates.classes import c...
[ "arzhul@gmail.com" ]
arzhul@gmail.com
c910a0d34ab3719005f3073b1ba050463c30e037
54da94dce244ab659c8036cafcdc1b326fbfe490
/datoteke-s-predavanj/2017-18/11-uporabniski-vmesnik/command-lambda-b.py
7d486319c4732b4074111c9d9289823f2e9bd6cc
[]
no_license
jakamrak/uvod-v-programiranje
640b2738164e2026308d7e60f1478659df79cc40
3c05290f4f23b384ad9063880fffe208c08fc599
refs/heads/master
2022-07-17T16:50:18.563453
2020-05-18T13:54:13
2020-05-18T13:54:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
410
py
import tkinter as tk def odzdravi(pozdrav): print('{}, človek!'.format(pozdrav)) okno = tk.Tk() tk.Button(okno, text='GOR', command=lambda: odzdravi('Živjo')).pack() tk.Button(okno, text='DOL', command=lambda: odzdravi('Dober dan')).pack() tk.Button(okno, text='LEVO', command=lambda: odzdravi('V redu')).pack() tk...
[ "matija@pretnar.info" ]
matija@pretnar.info
26a134dc352c05ac934a88b9b19d64c431596254
283982c63aae8521e0736a05b13abfede8f6714d
/parlai/agents/hugging_face/dict.py
61946d93a067af8a9cc2c072a0c2110a4ee3353a
[ "MIT" ]
permissive
418sec/ParlAI
2a080dca65cc34b9c1a1e670104cf98423cb7ec6
12c4c19a3bcb9f3370c6479a33712ce3c5fda66e
refs/heads/master
2023-02-20T23:45:19.488816
2021-01-22T08:10:54
2021-01-22T08:10:54
327,594,300
0
1
MIT
2021-01-22T08:10:55
2021-01-07T11:40:04
null
UTF-8
Python
false
false
4,966
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import os from abc import ABC, abstractmethod from typing import List from parlai.core.dict import DictionaryAgent fro...
[ "noreply@github.com" ]
418sec.noreply@github.com
6e9e83c6bb1562fcf4f896dfd766a80158aed534
724bc07de79b1e411ebb144c3a4fee314eb345f8
/intro_&_enviro/introduction_to_programming/3_bitwise_operators_1/Solutions/test_solution.py
5e964dd7e48806871795c808a3f459166aa4e4a6
[]
no_license
chrisr1896/Exercises
23d0d20a6658184b38a16ae8334414918fcfcd47
20c5aa2f5793eb08825f5e74e8d72590f73a7174
refs/heads/master
2023-01-07T15:34:58.233202
2020-10-26T18:35:24
2020-10-26T18:35:24
301,516,984
0
0
null
2020-10-26T18:35:38
2020-10-05T19:23:46
Python
UTF-8
Python
false
false
447
py
import pytest ret_val_1= None ret_val_2= None ret_val_3= None def g(x,x1,x2): global ret_val_1 global ret_val_2 global ret_val_3 ret_val_1 = x ret_val_2 = x1 ret_val_3 = x2 def test_solution(monkeypatch): monkeypatch.setattr('builtins.print',g) import solution ...
[ "root@MSI.localdomain" ]
root@MSI.localdomain
698469204085262e80b1aefdb7e912c7ac9ed3d5
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_oilier.py
268a3908e49abdff1944522534fd6650c6fc13d0
[ "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
216
py
#calss header class _OILIER(): def __init__(self,): self.name = "OILIER" self.definitions = oily self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['oily']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
dc7a10bf224f6c83fa3d1e95f49bd3f5d5d69061
fc2fa418295e015f867b26b6ab91133f26eff0bb
/ExampleCode/dataTag.py
619e8b1631101ac814e0f76e9698b088dc00e7b5
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
land-boards/PiCluster
893b0809d5ceeaba2425cd3cfd79598911a65989
e7a508ab1be25e50b79c585ea861118e37ba9bb3
refs/heads/master
2022-04-28T13:02:10.307315
2022-04-20T09:55:52
2022-04-20T09:55:52
62,474,727
1
1
null
null
null
null
UTF-8
Python
false
false
393
py
from mpi4py import MPI comm = MPI.COMM_WORLD rank = comm.rank size = comm.size name = MPI.Get_processor_name() if rank == 0: shared = {'d1':55,'d2':42} comm.send(shared, dest=1,tag=1) shared2 = {'d3':13,'d4':77} comm.send(shared2, dest=1, tag=2) if rank == 1: receive = comm.recv(source=0,tag=2) print 'receive'...
[ "doug@douglasgilliland.com" ]
doug@douglasgilliland.com
c9c4adb744435e97f6c8c8bf310e0c89478557df
cbf6b707240feb13fae23634183cbc3a66a5daaa
/advancedpython/functional programming/student.py
88046340989967203dbe816943b6225dc807061e
[]
no_license
mathewssabu/luminarpythonprograms
a23db51ef50bdfba8b167f77748bc991773a5f22
bc16b01cccadae5b8681afe13f10298e13fa57d9
refs/heads/master
2023-04-06T20:06:55.381190
2021-04-19T20:29:28
2021-04-19T20:29:28
358,550,825
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
class Student: def __init__(self,rno,name,course,total): self.rno=rno self.name=name self.course=course self.total=total def __str__(self): return self.name ob1=Student(1,"mathews","python",100) ob2=Student(2,"krish","python",100) ob3=Student(3,"sub","python",100) studs...
[ "mathewssabus@gmail.com" ]
mathewssabus@gmail.com
1b99faebe0b2ad27a3039017c0a6e4f4880f301b
b5a75c623d3ac5dbd64648ac1d619c20b32b3f45
/textgen/augment/text_augment.py
f6bc83820001c4cb6aaf4aa212130291fa1ef8df
[ "Python-2.0", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
shibing624/textgen
c06fc3c72716f4e0cf7fe613c99ef3326036e955
df65a86a9ef515062716063b18f8a6c62e40f205
refs/heads/main
2023-08-18T08:09:08.375830
2023-08-04T08:14:57
2023-08-04T08:14:57
355,543,219
705
88
Apache-2.0
2023-07-18T05:03:52
2021-04-07T12:50:40
Python
UTF-8
Python
false
false
3,582
py
# -*- coding: utf-8 -*- """ @author:XuMing(xuming624@qq.com) @description: """ from loguru import logger from jieba import analyse import jieba from textgen.augment.sentence_level_augment import back_translation from textgen.augment.word_level_augment import ( get_data_idf, RandomReplace, DeleteReplace, ...
[ "shibing624@126.com" ]
shibing624@126.com
fbe234435ebc33e5fc592fcdadd8e95bef6987d5
036a41c913b3a4e7ae265e22a672dd89302d3200
/LCCI_程序员面试金典/面试01.03/面试01.03_Python_1.py
41b31f807d3822adb5703677fd2deaed6fb42d28
[]
no_license
ChangxingJiang/LeetCode
e76f96ebda68d7ade53575354479cfc33ad4f627
a2209206cdd7229dd33e416f611e71a984a8dd9e
refs/heads/master
2023-04-13T15:23:35.174390
2021-04-24T05:54:14
2021-04-24T05:54:14
272,088,506
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
class Solution: def replaceSpaces(self, S: str, length: int) -> str: return S[:length].replace(" ", "%20") if __name__ == "__main__": print(Solution().replaceSpaces("Mr John Smith ", 13)) # "Mr%20John%20Smith" print(Solution().replaceSpaces(" ", 5)) # "%20%20%20%20%20"
[ "1278729001@qq.com" ]
1278729001@qq.com
da0506468110d4e269765d1f8a9ac141d1441d13
a36709bf6fde580a0134a8c848a013d7f34d8412
/src/google_music_scripts/constants.py
d8fbfde9be2509d07f76036c185ca01af04cc08a
[ "MIT" ]
permissive
cqcallaw/google-music-scripts
83d3e8dc874c2cf657c0f5e5b242e2180e3376cb
a05e61fb2b5da677bde2489c1a845cce3b891dd2
refs/heads/master
2020-04-17T13:26:24.720197
2019-01-16T19:01:58
2019-01-16T19:01:58
166,615,963
0
0
MIT
2019-01-20T02:39:08
2019-01-20T02:39:08
null
UTF-8
Python
false
false
717
py
__all__ = [ 'CHARACTER_REPLACEMENTS', 'TEMPLATE_PATTERNS', 'UNIX_PATH_RE' ] import re CHARACTER_REPLACEMENTS = { '\\': '-', '/': ',', ':': '-', '*': 'x', '<': '[', '>': ']', '|': '!', '?': '', '"': "''" } """dict: Mapping of invalid filepath characters with appropriate replacements.""" TEMPLATE_PATTERNS ...
[ "mail@thebigmunch.me" ]
mail@thebigmunch.me
2bb0eb162eeab1ef6fa90da993c968e448df5603
b51f277dfe339ea30dce10040eca40c20bd8a4dd
/src/pos/order_new2.py
63eeb0603e663b8daaf8cd49bbc94a2d19d3f4a0
[ "BSD-3-Clause" ]
permissive
jack139/fair
e08b3b48391d0cb8e72bbc47e7592c030f587f48
fe0ff64f8edbd794c3fb951ab6af420054e9e585
refs/heads/master
2021-06-30T15:17:15.590764
2020-09-23T07:14:20
2020-09-23T07:14:20
160,322,019
1
0
null
null
null
null
UTF-8
Python
false
false
2,381
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import web, re from config import setting import helper db = setting.db_web url = ('/pos/order_new2') # 新订货单,按库存商品清单格式 class handler: def GET(self): if helper.logged(helper.PRIV_USER): render = helper.create_render() user_data=web.input() # 查找 db...
[ "gt@f8geek.com" ]
gt@f8geek.com
e0e42f3dc02238ac63c949088bdf82bffa0cc558
ec1059f4ccea10deb2cb8fd7f9458700a5e6ca4c
/venv/Lib/site-packages/pandas/tests/indexes/multi/test_monotonic.py
8659573d8123a7c5e7dfe87048afe5be1d30030d
[ "Apache-2.0", "MIT" ]
permissive
shivam675/Quantum-CERN
b60c697a3a7ad836b3653ee9ce3875a6eafae3ba
ce02d9198d9f5a1aa828482fea9b213a725b56bb
refs/heads/main
2023-01-06T20:07:15.994294
2020-11-13T10:01:38
2020-11-13T10:01:38
330,435,191
1
0
MIT
2021-01-17T16:29:26
2021-01-17T16:29:25
null
UTF-8
Python
false
false
6,936
py
import numpy as np import pytest import pandas as pd from pandas import Index, MultiIndex def test_is_monotonic_increasing(): i = MultiIndex.from_product([np.arange(10), np.arange(10)], names=["one", "two"]) assert i.is_monotonic is True assert i._is_strictly_monotonic_increasing is True assert Index...
[ "vinfinitysailor@gmail.com" ]
vinfinitysailor@gmail.com
4b6560d67a257c03ced0775d7fd7cf9beff3d558
0facb323be8a76bb4c168641309972fa77cbecf2
/Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2017/NJET_biined_WJets/SKIM10/HMVar10_Full_ALL_var_DATACARD/MassPoints/structure_M145_mu.py
5d6affd00a0abd752266feb10c5d05d451dd8bdd
[]
no_license
bhoh/SNuAnalytics
ef0a1ba9fa0d682834672a831739dfcfa1e7486b
34d1fc062e212da152faa83be50561600819df0e
refs/heads/master
2023-07-06T03:23:45.343449
2023-06-26T12:18:28
2023-06-26T12:18:28
242,880,298
0
1
null
2020-02-25T01:17:50
2020-02-25T01:17:49
null
UTF-8
Python
false
false
1,695
py
#['WW', 'ggHWWlnuqq_M1500', 'DY', 'DATA', 'WZ', 'ggHWWlnuqq_M125', 'ZZZ', 'ggHWWlnuqq_M900', 'vbfHWWlnuqq_M500', 'Wjets1j', 'QCD_MU', 'WZZ', 'vbfHWWlnuqq_M900', 'QCD_bcToE', 'Wjets2j', 'QCD_EM', 'ggHWWlnuqq_M500', 'ZZ', 'WWW', 'vbfHWWlnuqq_M1500', 'vbfHWWlnuqq_M125', 'WWZ', 'Wjets0j', 'top'] QCD_MU=['QCD_Pt-15to20_MuE...
[ "soarnsoar@gmail.com" ]
soarnsoar@gmail.com
e872d222a36ea558b08358e20a3e22b64ad944f3
430791dcde1596a554984e38c554a367b85c9951
/inheritance/exercises/need_for_speed/family_car.py
fcb2d26d2dd696cfc7b40b3626014d95ca4e651f
[]
no_license
mialskywalker/PythonOOP
5fa8606cfe7c9ceb72ada8e62ff89513bac10d32
e7f2d5f46983e9c8c50d9356497fcc9ed9f6d4dc
refs/heads/master
2023-04-06T05:43:13.408741
2021-04-03T13:22:13
2021-04-03T13:22:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
from inheritance.exercises.need_for_speed.car import Car class FamilyCar(Car): def __init__(self, fuel, horse_power): super().__init__(fuel, horse_power)
[ "kalqga123@gmail.com" ]
kalqga123@gmail.com
2d0bb38cdc8f76f2c67cb3d29b69791d8cc14253
50948d4cb10dcb1cc9bc0355918478fb2841322a
/azure-mgmt-network/azure/mgmt/network/v2018_10_01/models/security_rule_associations_py3.py
61dce1368e38ff45c1b3876919b3541caaf1eb40
[ "MIT" ]
permissive
xiafu-msft/azure-sdk-for-python
de9cd680b39962702b629a8e94726bb4ab261594
4d9560cfd519ee60667f3cc2f5295a58c18625db
refs/heads/master
2023-08-12T20:36:24.284497
2019-05-22T00:55:16
2019-05-22T00:55:16
187,986,993
1
0
MIT
2020-10-02T01:17:02
2019-05-22T07:33:46
Python
UTF-8
Python
false
false
2,234
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 ...
[ "lmazuel@microsoft.com" ]
lmazuel@microsoft.com
c4073a802cc248f9221209efdbf0d622addb3718
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_005/ch60_2020_06_21_20_04_50_087733.py
8b2389680b09ba195f3ecb4c1e2c8b814f0739eb
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
def eh_palindromo(palavra): palavra = input('escreva algo:') if palavra == palavra[::-1]: return True if palavra != palavra[::-1]: return False
[ "you@example.com" ]
you@example.com
b3d47330998a0ef2bc1f908f09fa5c29b79ea632
b943f725f8c6b20c277eb7b77e67689173bc0d1a
/templates/courses/templatetags/courses_tags.py
5cb6a5d7636ff8f7010f1ee406e011e1717d3c70
[]
no_license
Akijunior/Eleanning
c4da62971735b5a6c18f0ee04758ac6db770c2a4
4b0e4c397b76a7839722b00f23ef3eb4f309d229
refs/heads/master
2020-08-19T05:14:57.581513
2019-10-21T15:33:36
2019-10-21T15:33:36
215,882,153
0
0
null
null
null
null
UTF-8
Python
false
false
847
py
from django.template import Library register = Library() from simplemooc.courses.models import Enrollment # Decorator que registra essa função como um template tag, passando o html a ser renderizado # Esse tipo de template tag você faz um html separado para renderizar nos outros @register.inclusion_tag('courses/temp...
[ "suitsu19@gmail.com" ]
suitsu19@gmail.com
c107a86a470fe7f3720cac5038738288df39a975
0206ac23a29673ee52c367b103dfe59e7733cdc1
/src/calculate_E_minus_P_in_meters.py
cdd99f4fc719862939eee87e85e70d50531ca9ab
[]
no_license
guziy/RPN
2304a93f9ced626ae5fc8abfcc079e33159ae56a
71b94f4c73d4100345d29a6fbfa9fa108d8027b5
refs/heads/master
2021-11-27T07:18:22.705921
2021-11-27T00:54:03
2021-11-27T00:54:03
2,078,454
4
3
null
null
null
null
UTF-8
Python
false
false
6,002
py
import os.path __author__="huziy" __date__ ="$Apr 13, 2011 1:47:04 PM$" from rpn import RPN from test_rpn import plot_field_2d import matplotlib.pyplot as plt import numpy as np import os import application_properties application_properties.set_current_directory() from datetime import datetime import level_kinds ...
[ "guziy.sasha@gmail.com" ]
guziy.sasha@gmail.com
e78af551b571e6b036340e8738b4f7bb90e7aaa2
b67e12ebc5a3b268f910e49be51959b0c7730953
/tests/test_pytest_arraydiff.py
afae0bbab6e5df9de802fa42ba1ff23f3c9f7ca9
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
cdeil/pytest-arraydiff
6e5af1a8747cc2ce52f9992d310f4156240f1b49
d760656f3b29c7f94c733cda2e9351e7333df7a1
refs/heads/master
2020-06-18T03:39:41.666653
2016-11-26T13:17:36
2016-11-26T13:17:36
74,953,327
0
0
null
2016-11-28T08:38:54
2016-11-28T08:38:54
null
UTF-8
Python
false
false
3,601
py
import os import subprocess import tempfile import pytest import numpy as np reference_dir = 'baseline' @pytest.mark.array_compare(reference_dir=reference_dir) def test_succeeds_func_default(): return np.arange(3 * 5).reshape((3, 5)) @pytest.mark.array_compare(file_format='text', reference_dir=reference_dir) ...
[ "thomas.robitaille@gmail.com" ]
thomas.robitaille@gmail.com
975a425dd323b3855c8d180ecbad167376f87c4e
d815c4755e6f98098452528d8ab69a8f82096b78
/day4/decorator3.py
455062f06c30c368099166594c7c5194ae69f1f6
[]
no_license
immortalmin/csk
081f1baddde43f74151f08a7d701d4c611845f7f
aca509a03bb88ae2911c1611350decdf68a4419a
refs/heads/master
2020-04-07T22:51:59.907665
2018-12-04T08:53:22
2018-12-04T08:53:22
158,788,228
0
0
null
null
null
null
UTF-8
Python
false
false
238
py
#Author:immortal luo # -*-coding:utf-8 -*- #函数即“变量” #函数的嵌套:在一个函数的体内用def定义一个新的函数 def foo(): print("in the foo") def bar(): print("in the bar") bar() foo()
[ "1608725226@qq.com" ]
1608725226@qq.com
1bd7399df44d1d9ee9942f296f57f4c3113b7c58
92c47649185f2f41ec55997135a6c08ad1c83edd
/api/migrations/0005_auto_20170428_0214.py
4f21fe3c3b03e09b4f218f17af6c540b3e52e5e0
[]
no_license
imapex/collins
6e4c4f739b859757ea9751d0f133552a0e05f215
4ab27e9b20124e2cf7755ac488ce472480545308
refs/heads/master
2021-01-19T13:56:24.864706
2017-05-23T06:00:37
2017-05-23T06:00:37
88,116,608
0
4
null
2017-05-23T06:00:38
2017-04-13T02:30:10
Python
UTF-8
Python
false
false
416
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-04-28 02:14 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0004_result_added'), ] operations = [ migrations.RenameField( mode...
[ "kecorbin@cisco.com" ]
kecorbin@cisco.com
47e2cdcfff1aa8959b1e5747da6b9f171a966624
a1232023595eed48bf3d56c0c1dcb8f05cdc261a
/48. Rotate Image/_48.py
1def3d4c60a89af087e5d90db18eaf4c3848cf53
[]
no_license
NKcell/leetcode
2393ec3f8dc0e26b9ff098a592e4ffa9d7b774b8
88dec1c2106950e82819a0dd16425a9ee8fdaca4
refs/heads/master
2020-07-24T05:27:42.269903
2020-05-06T07:45:07
2020-05-06T07:45:07
207,814,442
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
class Solution: def rotate(self, matrix) -> None: """ Do not return anything, modify matrix in-place instead. """ myLen = len(matrix)-1 endLen = len(matrix)-1 flag = len(matrix) start = 0 while flag>1: for i in range(start, endLen...
[ "517343690@qq.com" ]
517343690@qq.com
8ea89abe4a178593aa7ba6e968ac99911bd391c2
5da809f1b661bed20fc31fa10f72f277ae409f2a
/批量修改文件名中不需要的字符.py
4108403f3215e8e29a222cbec39fa8b78567a7f3
[]
no_license
zhouf1234/untitled927
7725f0edf0a67183c81cc8b0477a1a13b10e13c9
c35b83c386bc26dccbfcaf7db01d0687125ced1f
refs/heads/master
2020-05-05T02:33:29.796530
2019-04-05T08:09:04
2019-04-05T08:09:04
179,642,094
0
0
null
null
null
null
UTF-8
Python
false
false
1,541
py
import os """用来实现删除特定广告文本的函数。 该函数会搜索检查指定根目录下的所有文件以及子目录,如果子目录下依然 存在子目录,则会一直查找下去,直到没有子目录为止。然后将目录名与文件 名中含有的广告词进行删除。 dir2 : str 指定要检查的根目录。 ad_text : str 指定要删除的广告词。 """ def remove_ad_text(dir2,ad_text): #判断传进来的dir2是否目录(文件夹) if not os.path.isdir(dir2): return #判...
[ "=" ]
=
bcf196c81b6a7c8930f97488a7682ba2e17b4bf2
3a9f2b3d79cf214704829427ee280f4b49dca70a
/saigon/rat/RuckusAutoTest/common/SeleniumControl.py
e472ab75312ad247260d968a3ef6d73983da8347
[]
no_license
jichunwei/MyGitHub-1
ae0c1461fe0a337ef459da7c0d24d4cf8d4a4791
f826fc89a030c6c4e08052d2d43af0b1b4b410e3
refs/heads/master
2021-01-21T10:19:22.900905
2016-08-20T03:34:52
2016-08-20T03:34:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,285
py
import os import time from RuckusAutoTest.common.ProcessMgmt import createProcess from RuckusAutoTest.common.DialogHandler import DialogManager, BaseDialog from RuckusAutoTest.common.SeleniumClient import SeleniumClient import RuckusAutoTest.common.Ratutils as RU class SeleniumManager: """ Provides functions ...
[ "tan@xx.com" ]
tan@xx.com
b7e81232a715e8cd44e06296f094bdf05bf84e83
3649dce8b44c72bbfee56adf4e29ca6c5ba2703a
/code_up1671.py
6c53c822fa3648ed58ec087f429a0046cc2030a9
[]
no_license
beOk91/code_up
03c7aca76e955e3a59d797299749e7fc2457f24a
ca1042ce216cc0a80e9b3d3ad363bc29c4ed7690
refs/heads/master
2022-12-06T08:23:00.788315
2020-08-20T11:21:59
2020-08-20T11:21:59
284,844,571
0
0
null
null
null
null
UTF-8
Python
false
false
197
py
a,b=map(int,input().strip().split()) if a==0 and b==1: print("win") elif a==1 and b==2: print("win") elif a==2 and b==0: print("win") elif a==b: print("tie") else: print("lose")
[ "be_ok91@naver.com" ]
be_ok91@naver.com
dccd0b18efcf0975c70413c79fbaa91720e626ed
93f47ba04fc18c4e537f0a48fe6232e2a89a4d30
/examples/adspygoogle/dfp/v201405/contact_service/update_contacts.py
01a69b481b6bfd640ecc536ae924f2392060edc7
[ "Apache-2.0" ]
permissive
jasonshih/googleads-python-legacy-lib
c56dc52a1dab28b9de461fd5db0fcd6020b84a04
510fad41ecf986fe15258af64b90f99a96dc5548
refs/heads/master
2021-04-30T22:12:12.900275
2015-03-06T15:35:21
2015-03-06T15:35:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,476
py
#!/usr/bin/python # # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
[ "msaniscalchi@google.com" ]
msaniscalchi@google.com
f20194bfbdb3cb2143827648da4fca3db0909b89
931d03b85a042ec6e141aa44ed8c994127942008
/monty/__init__.py
cfee5b4d68df80bccae806ecf295c81d075a6746
[ "MIT" ]
permissive
gpetretto/monty
18f802dcef0270f15241be546ff2bb6efc13bce7
3318c576fb6815c52709c71d612507ceba26a7d4
refs/heads/master
2021-01-22T14:55:59.458792
2015-10-07T13:56:28
2015-10-07T13:56:28
35,677,304
0
0
null
2015-05-15T14:04:36
2015-05-15T14:04:35
null
UTF-8
Python
false
false
504
py
""" Monty is the missing complement to Python. Monty implements supplementary useful functions for Python that are not part of the standard library. Examples include useful utilities like transparent support for zipped files, useful design patterns such as singleton and cached_class, and many more. """ __author__ = 'S...
[ "shyuep@gmail.com" ]
shyuep@gmail.com
3ce3d4651d47f301f623e0f7b7a4f46810b0f831
8c15eae971273e7528778742dcf97f050cdcc34d
/Python/lc_1048_longest_string_chain.py
d77f950dd1a37c87d8f86d3b6bebf12ce168d0f8
[ "MIT" ]
permissive
cmattey/leetcode_problems
3582869fb66d9d587dad0ef177fa8598e6dd3825
fe57e668db23f7c480835c0a10f363d718fbaefd
refs/heads/master
2021-12-14T22:08:28.385130
2021-12-08T06:11:09
2021-12-08T06:11:09
194,169,863
6
1
null
2020-01-21T09:02:13
2019-06-27T22:15:37
Python
UTF-8
Python
false
false
1,510
py
# Time: nlogn + n*k^2 , n = len(words) <-check, k = max len word # Space: n class Solution: def longestStrChain(self, words: List[str]) -> int: """ create map like so: 1: (a,1),(b,1) 2: (ba,1) 3: (bca,1),(bda,1)... """ import collections over_all_ma...
[ "cmattey@dons.usfca.edu" ]
cmattey@dons.usfca.edu
bb03fd25159ff8719eb8e1d25f68a87f4ef6e326
f24238cb43c80d8d646bd4541bdec6113c24245a
/codes/pipeline.smk
bd0924e411e4dcafc736840734b31d5d91b2c6f4
[ "Apache-2.0" ]
permissive
nicwulab/UK_strain_in_vitro_fitness
23b6cd5874ccc300bfe92a8dbecf1cb7a3429428
743115c37d60877ca520ba0a4d53e4dc3c1734c7
refs/heads/main
2023-04-17T08:12:02.628367
2021-05-04T01:02:18
2021-05-04T01:02:18
358,973,185
0
0
null
null
null
null
UTF-8
Python
false
false
4,194
smk
# only PROJECT_PATH variable and reference needed to change PROJECT_PATH=config['PROJECTPATH'] #'/Users/yiquan/PycharmProjects/SARS-CoV-2/SARS-Competition' import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import glob import os import numpy as np plt.rc('axes', labelsize=15) plt.rc('xtick', la...
[ "wckdouglas@gmail.com" ]
wckdouglas@gmail.com
e15aeaa8034adb3760881e4121b5ff51ac539194
e5d5fa28999bcc6c642bb42dda93afd38e272b81
/GeeksforGeeks/Subarray with given sum/solve1.py
b87e71d05195430504e7eefb089ca653543575bf
[]
no_license
chiahsun/problem_solving
cd3105969983d16d3d5d416d4a0d5797d4b58e91
559fafa92dd5516058bdcea82a438eadf5aa1ede
refs/heads/master
2023-02-05T06:11:27.536617
2023-01-26T10:51:23
2023-01-26T10:51:23
30,732,382
3
0
null
null
null
null
UTF-8
Python
false
false
959
py
# User function Template for python3 # Function to find a continuous sub-array which adds up to a given number. class Solution: def subArraySum(self, arr, n, s): if s >= 0: begin, total = 0, 0 for i in range(n): total += arr[i] while begin < i and tot...
[ "chiahsun0814@gmail.com" ]
chiahsun0814@gmail.com
926505af51761c9f00e00a04e4f738e3cfadce18
e90a772733e73e45b4cdbb5f240ef3b4a9e71de1
/191. Number of 1 Bits.py
d318c31073c0666bf6ccdbec380f87f25ec92a51
[]
no_license
jiewu-stanford/leetcode
102829fcbcace17909e4de49c01c3d705b6e6e3a
cbd47f713d3307f900daf55c8f27301c70542fc4
refs/heads/master
2022-05-28T18:25:00.885047
2022-05-18T05:16:22
2022-05-18T05:16:22
214,486,622
2
0
null
null
null
null
UTF-8
Python
false
false
356
py
''' Title : 191. Number of 1 Bits Problem : https://leetcode.com/problems/number-of-1-bits/description/ ''' class Solution(object): def hammingWeight(self, n): res = 0 while n: res += n & 1 n //= 2 return res class Solution(object): def hammingWeight(self, ...
[ "bayernscience@hotmail.com" ]
bayernscience@hotmail.com
7236ff4a7701e46261c1798df671851d46c5153a
1894100670fd18c509d6316a45845af9e56ee2e0
/oscar/apps/checkout/app.py
1a330bbae5ec2f7a35dab35e0e869fad09401af4
[ "BSD-2-Clause" ]
permissive
AndrewIngram/django-oscar
a22bb7e185e9dc84ae0fe24d7bd2e1150bd87a9a
5f3f586bdf4f45de87667b88c3cf0836ed34d393
refs/heads/master
2021-01-18T06:32:15.776815
2011-11-18T18:26:39
2011-11-18T18:26:39
1,665,089
1
0
null
null
null
null
UTF-8
Python
false
false
2,156
py
from django.conf.urls.defaults import patterns, url from oscar.core.application import Application from oscar.apps.checkout.views import IndexView, ShippingAddressView, UserAddressDeleteView, UserAddressCreateView, \ UserAddressUpdateView, ShippingMethodView, PaymentMethodView, Or...
[ "david.winterbottom@gmail.com" ]
david.winterbottom@gmail.com
0a35f9f30c5ad227d7bcc9819562c549af812ffb
7f68bbb3fd328a4d6bbabecb44305987d8cbbfc4
/algorithm/4.Stack1/190213workshop.py
5aed7378443bade746f0555509f114688a56be53
[]
no_license
seunghoon2334/TIL
c84f9f9e68c8ccc7a1625222fe61f40739774730
51cfbad2d9b80a37b359716fca561c2a5c5b48b3
refs/heads/master
2022-12-18T18:20:19.210587
2019-11-26T03:14:23
2019-11-26T03:14:23
162,101,369
0
0
null
2022-11-22T03:59:16
2018-12-17T08:51:53
C
UTF-8
Python
false
false
889
py
import sys sys.stdin = open("190213workshop.txt") for tc in range(10): arr = [] tttt = input() for i in range(100): arr.append(list(map(int, input().split()))) x = arr[99].index(2) y = 99 cnt = 0 while y!=0: if x!=0 and x!=99: if arr[y][x-1]==1: ...
[ "gogo12394@naver.com" ]
gogo12394@naver.com
4ba4b5d5960b2cdac899ad703bdc828619ac830a
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/RxHjtFqu3w8L9i5fx_6.py
54d7f3b2db7522a54b54400ae9bab6c72f1114de
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
819
py
""" The Bell number is the number of ways a list of `n` items can be partitioned into non-empty sublists. See the resources section for an in-depth explanation. Create a function that takes a number `n` and returns the corresponding Bell number. ### Examples bell(1) ➞ 1 # sample_lst = [1] # possible_p...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
98d035f264c419b4ee490e4172333534a29713e2
aa1e637de90f69f9ae742d42d5b777421617d10c
/nitro/resource/config/ns/nspbr_args.py
bebc57622370e8d4d19a29c5b68a47271c5ce3b8
[ "Apache-2.0", "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
km0420j/nitro-python
db7fcb49fcad3e7a1ae0a99e4fc8675665da29ba
d03eb11f492a35a2a8b2a140322fbce22d25a8f7
refs/heads/master
2021-10-21T18:12:50.218465
2019-03-05T14:00:15
2019-03-05T15:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,167
py
# # Copyright (c) 2008-2015 Citrix 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 applicable l...
[ "lennart.weller@hansemerkur.de" ]
lennart.weller@hansemerkur.de
626ccef0e15c0001a1055667cd106ac2d9d0b288
c8d13f0efb453f8119aa55303c7bb70b506d51a1
/108.py
89fc9c0d769a160b4a66016d7da4d9617f8f204d
[]
no_license
rubivenkatesan/rubi21
ab5f248e4cba664330fb8d7b4632d20c527a221e
f91d55852c1ab64dcec75a13ca835e2bf6c3dcb8
refs/heads/master
2020-04-15T04:58:04.682460
2019-06-05T13:18:13
2019-06-05T13:18:13
164,403,882
0
1
null
null
null
null
UTF-8
Python
false
false
141
py
#rubi n,k=map(int,input().split()) l=list(map(int,input().split())) s=sorted(l) c=0 for i in range(0,len(s)): c=c+1 if c==k: print(s[i])
[ "noreply@github.com" ]
rubivenkatesan.noreply@github.com
8bb169347d11192a79e713f88551c69427d2f96f
1d0dd44234b4a23b3957e06c043d5f53d0ca4161
/e2system/kernel/app/webodt/tests/base.py
4bcb0eab42fddf6ce5badc5d707792a9fb3819a2
[]
no_license
alexliyu/cloudsystem
33c1467e7fa040f1dc28cbead13ba19f6a5b961b
2049db59e11457e9ee5acc53a19c3c52f5b78ddd
refs/heads/master
2016-09-02T02:42:22.313372
2011-06-18T18:37:27
2011-06-18T18:37:27
1,874,903
1
1
null
null
null
null
UTF-8
Python
false
false
4,469
py
# -*- coding: utf-8 -*- import os import unittest import webodt from cStringIO import StringIO from django.template import Context from webodt.converters.abiword import AbiwordODFConverter from webodt.converters.openoffice import OpenOfficeODFConverter from webodt.converters.googledocs import GoogleDocsODFConverter c...
[ "alexliyu2012@gmail.com" ]
alexliyu2012@gmail.com
72508075881c390df97b44497313e1e36638fd62
e97a2b21f3887033f78aa5a9924151e7b6728f6c
/lib/modeling/fast_rcnn_heads.py
4b52663688a52613c8a1285898ec0d0ef089dfb1
[ "MIT" ]
permissive
agdolla/Detectron.pytorch
7df785baef615e66d176c68de83ab4df9a4ea1ff
1833c71a62e389d2b5f873f40a914c5a47bdd8a2
refs/heads/master
2020-03-18T01:49:43.738866
2018-05-20T04:16:48
2018-05-20T04:16:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,081
py
import torch import torch.nn as nn import torch.nn.functional as F import torch.nn.init as init from torch.autograd import Variable from core.config import cfg import nn as mynn import utils.net as net_utils class fast_rcnn_outputs(nn.Module): def __init__(self, dim_in): super().__init__() self.c...
[ "roytseng.tw@gmail.com" ]
roytseng.tw@gmail.com