blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
616
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
777 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
149 values
src_encoding
stringclasses
26 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
3
10.2M
extension
stringclasses
188 values
content
stringlengths
3
10.2M
authors
listlengths
1
1
author_id
stringlengths
1
132
58fa7eb98f9ddaf9c735d1a5be9232da1b31fd64
87b66cbf9eb8aca426808734eb754f87cf3ec38e
/tests/dolfin/test_ascalarbar.py
c80a048a0c2e3a8970760f0d6197c67c8c5d50c3
[ "MIT", "LicenseRef-scancode-public-domain", "OFL-1.1" ]
permissive
RubendeBruin/vtkplotter
ea33c38cc9df72c15d7ca2fa357205ea35a559bb
641743f29289d6df3d44d366072b72e221d16a51
refs/heads/master
2023-05-25T13:06:24.774288
2023-05-01T10:27:19
2023-05-01T10:27:19
219,933,917
0
1
MIT
2019-11-06T07:10:46
2019-11-06T07:10:45
null
UTF-8
Python
false
false
899
py
import numpy as np from dolfin import * from dolfin import __version__ from vedo.dolfin import plot, screenshot, MeshActor, show from vedo import settings print('Test ascalarbar, dolfin version', __version__) if hasattr(MPI, 'comm_world'): mesh = UnitSquareMesh(MPI.comm_world, nx=16, ny=16) else: mesh = Unit...
[ "marco.musy@gmail.com" ]
marco.musy@gmail.com
e5b816a271981e5e88da96fe714366af82c5840e
bf64d19174ef332f39e2d8210f3eb4f783262554
/lib/generate_defect/zlrm_Generate_the_defects_data.py
75ffb5c6ed53c7e27cde20f4b9f75e40f2a2ca73
[]
no_license
juzisedefeimao/cv
3e4dd7deee471321e071ca996769fc3b65481993
fb9e9292030481f5a26efde4003fb83d37a34962
refs/heads/master
2020-05-30T14:29:13.253563
2019-06-02T01:08:53
2019-06-02T01:08:53
189,791,743
1
0
null
null
null
null
UTF-8
Python
false
false
32,276
py
from PIL import Image import numpy as np from time import strftime import os import xml.etree.ElementTree as ET class Generate_Defect(): def __init__(self, save_image_root=None, save_label_root=None, read_label_root=None, read_defect_root=None, save_fail_label_root=None, save_fail_image_root=None...
[ "17696272096@163.com" ]
17696272096@163.com
9a2213ec3ee95a7ecf2b52d08704ba5983875ca3
7f4306057991622329ed3ab43c8e338ebdfb6d74
/pilgram/css/blending/tests/test_nonseparable.py
9e606fbb615e0ff3891a7809437768cffa36a290
[ "Apache-2.0" ]
permissive
akiomik/pilgram
d958312c98a5418d176ad884c50303e9f2731825
410252928e50e954472ff5ffcd45446aa8be32f7
refs/heads/main
2023-07-24T06:54:00.285954
2023-07-18T00:26:42
2023-07-18T00:26:42
169,348,812
90
19
Apache-2.0
2023-09-12T12:31:08
2019-02-06T03:10:44
Jupyter Notebook
UTF-8
Python
false
false
4,985
py
# Copyright 2019 Akiomi Kamakura # # 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 writi...
[ "akiomik@gmail.com" ]
akiomik@gmail.com
bdfad6b54ae00a6d7c9e0d9cd948635cf824be8a
e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f
/indices/fibrou.py
300e431fb55e7fb34927daf703980349d1a387f7
[]
no_license
psdh/WhatsintheVector
e8aabacc054a88b4cb25303548980af9a10c12a8
a24168d068d9c69dc7a0fd13f606c080ae82e2a6
refs/heads/master
2021-01-25T10:34:22.651619
2015-09-23T11:54:06
2015-09-23T11:54:06
42,749,205
2
3
null
2015-09-23T11:54:07
2015-09-18T22:06:38
Python
UTF-8
Python
false
false
357
py
ii = [('RogePAV2.py', 4), ('CoolWHM2.py', 1), ('RogePAV.py', 20), ('RennJIT.py', 2), ('ProuWCM.py', 2), ('PettTHE.py', 2), ('AdamWEP.py', 2), ('WilkJMC2.py', 2), ('KiddJAE.py', 2), ('BuckWGM.py', 6), ('WestJIT2.py', 1), ('MedwTAI.py', 1), ('KirbWPW2.py', 1), ('MedwTAI2.py', 1), ('BuckWGM2.py', 4), ('FitzRNS4.py', 2), (...
[ "prabhjyotsingh95@gmail.com" ]
prabhjyotsingh95@gmail.com
6172f4ceb50b246a9a22c31b5e7ca149bb778ad7
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/M/malo/blablaabla.py
6bbd29c6f5b4f88d800a03fb2216d159be561e10
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
import scraperwiki html = scraperwiki.scrape("http://www.wipo.int/amc/en/domains/search/text.jsp?case=D2013-0001") print html
[ "pallih@kaninka.net" ]
pallih@kaninka.net
44f89ac374c146890f0b8ea11344cfeacb3cc065
04a643a77927bc56ab58c7df91d4733321e61e51
/p19_plots/fig_hair_mosh.py
2bd63d253824490409c2a69e2466befa213887e2
[]
no_license
dcollins4096/p19_newscripts
d2fae1807170a4d70cf4c87222a6258211f993ff
23c780dd15b60944ed354406706de85282d0bee6
refs/heads/master
2023-07-21T11:53:55.188383
2023-07-18T17:38:21
2023-07-18T17:38:21
215,159,839
0
3
null
null
null
null
UTF-8
Python
false
false
3,028
py
from starter2 import * from collections import defaultdict import scipy import colors import hair_dryer reload(hair_dryer) import three_loopers_u500 as TL def simple_hair(this_looper,core_list=None): if core_list is None: core_list = np.unique(this_looper.tr.core_ids) thtr=this_looper.tr mask ...
[ "dccollins@fsu.edu" ]
dccollins@fsu.edu
e0cb24cdf4bc78dca043fbefd148f25a1bede4f9
2a66fdf4ddcfb475f80a61a8d8c31b3a320c5bae
/code/hprog59.py
3db8c1e47c0056cf681abeea658da9f87b3d3ba1
[]
no_license
sujasriman/guvi
12143757bee6e0679ca44f44a6624d34a6dd2cb4
74b4caf2a9c58da5e72eabe0b05adfe77310f71b
refs/heads/master
2020-05-31T07:24:37.295062
2019-08-12T18:24:22
2019-08-12T18:24:22
190,163,562
0
1
null
null
null
null
UTF-8
Python
false
false
206
py
n=int(input()) l=[] l1=[] for i in range(2): l.append(input().split()) for i in range(n): a=0 l1.append(int(l[a][i])+int(l[a+1][i])) for i in range(n-1): print(l1[i],end=' ') print(l1[n-1])
[ "noreply@github.com" ]
sujasriman.noreply@github.com
8c3abcbe5c6d057c305c7384d01b769a48f5b9c5
425db5a849281d333e68c26a26678e7c8ce11b66
/LeetCodeSolutions/LeetCode_0170.py
2e5beb6f321161d1499a11d942cd419feca374df
[ "MIT" ]
permissive
lih627/python-algorithm-templates
e8092b327a02506086414df41bbfb2af5d6b06dc
a61fd583e33a769b44ab758990625d3381793768
refs/heads/master
2021-07-23T17:10:43.814639
2021-01-21T17:14:55
2021-01-21T17:14:55
238,456,498
29
8
null
null
null
null
UTF-8
Python
false
false
872
py
class TwoSum: def __init__(self): """ Initialize your data structure here. """ import collections self.nums = collections.defaultdict(int) def add(self, number: int) -> None: """ Add the number to an internal data structure.. """ self.num...
[ "lih627@outlook.com" ]
lih627@outlook.com
b0eaf2f6d26344d045fa9fdb82857f26f776ef18
00f1e3047afe17a4c213b7e5655a5a4d99dc94c6
/mainapp/ajax.py
0a395dae7a9fe960e7352907e86f2a6731622865
[]
no_license
zhyfruit/DietCat
3e52391cce3b3245c9ae940bea35e9ab5cfd2d74
15a66f5b9de3d8cbe7cce2fa4458de85dd383c76
refs/heads/master
2020-03-27T04:42:01.497212
2018-08-23T10:47:59
2018-08-23T10:47:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
523
py
from django.shortcuts import render from django.shortcuts import HttpResponse # 下载文件要用 from django.http import FileResponse # 提交用户反馈,这里用了ajax # 其实我觉得在这个页面不用ajax也没什么,毕竟这个页面也没有别的需要交互的东西 def subProp(request): if request.method == 'POST': # 获得提交的具体内容 msg = request.POST.get('prop') print(msg) ...
[ "java233@foxmail.com" ]
java233@foxmail.com
6409b6315841b7310d574b1298147aeae7cbc055
e557b8b67412a281b95161c3eb878bbfaa3ab436
/testEnvironmentHeader.py
851cfe69171b96c1a3ffa440ced182351ce31643
[]
no_license
BARarch/bash-pipe
a995a27b40877d0da8aa05befba9df155fa46a65
9afdc6535ee61a4bbc02c31c708372f7b802f336
refs/heads/master
2023-01-22T14:02:48.634824
2023-01-16T15:58:57
2023-01-16T15:58:57
181,198,216
1
0
null
null
null
null
UTF-8
Python
false
false
117
py
import math import os import random import re import sys import qtimer # Complete the function below. @qtimer.timeit
[ "anthonyquivers@gmail.com" ]
anthonyquivers@gmail.com
0a352ed1e90f79878495e8ff29d3a10d4aeb72eb
55b57d64ec547869835334318f3059fbb507558c
/Fred2/Data/pssms/tepitopepan/mat/DRB1_1384_9.py
2a7524c2956d25ebb184a415e1533a49f23753b5
[ "BSD-3-Clause" ]
permissive
FRED-2/Fred2
9845f6678d4011cb746c7a5a6f283eea68077a02
b3e54c8c4ed12b780b61f74672e9667245a7bb78
refs/heads/master
2021-07-12T05:05:54.515427
2020-05-25T06:56:25
2020-05-25T06:56:25
16,275,425
42
35
null
2021-07-07T12:05:11
2014-01-27T10:08:11
Python
UTF-8
Python
false
false
2,166
py
DRB1_1384_9 = {0: {'A': -999.0, 'E': -999.0, 'D': -999.0, 'G': -999.0, 'F': -0.98558, 'I': -0.014418, 'H': -999.0, 'K': -999.0, 'M': -0.014418, 'L': -0.014418, 'N': -999.0, 'Q': -999.0, 'P': -999.0, 'S': -999.0, 'R': -999.0, 'T': -999.0, 'W': -0.98558, 'V': -0.014418, 'Y': -0.98558}, 1: {'A': 0.0, 'E': 0.1, 'D': -1.3, ...
[ "schubert@informatik.uni-tuebingen.de" ]
schubert@informatik.uni-tuebingen.de
113d8826277c464d78f5df2901a3616ed0be649c
307089d509d2b72ac036b7fcc5bd60f5759cca6f
/opencv/timelapse-usb.py
5796e4b04d7171718fe2ddbaca9b0b4efb04bce1
[]
no_license
bluemooninc/campi
45a7bf480d6c507a20f132c64ed8315776ccacbb
7614e2847e12442c1900281662b7bac587a9ee46
refs/heads/master
2020-04-06T13:12:41.184245
2016-09-06T14:40:03
2016-09-06T14:40:03
52,285,836
1
0
null
null
null
null
UTF-8
Python
false
false
2,127
py
import cv2 import numpy as np import time import datetime import logging import scp import ConfigParser import os.path import os import socket import glob import re import lcd ## ## config ## inifile = ConfigParser.SafeConfigParser() inifile.read("/home/pi/camlaps.ini") serialno = inifile.get("user","serialno") frameWi...
[ "root@raspberrypi.(none)" ]
root@raspberrypi.(none)
9cc2627bf5272352630d9aa278a96054cea3167f
1f1b62a23e9267fba41a5f9dc757d2c107d3d7c1
/www.scxsls.com/scxsls.py
9446e44147732c749163f9f9de14280849a508bf
[ "Apache-2.0" ]
permissive
zzh-python/all-project
0e45e2e542b9e63f6ed080ad47725d71f1590772
915a47fb42d63ff3a36814992283c2f4ed8703a3
refs/heads/master
2020-07-24T01:47:19.924959
2019-09-11T08:48:17
2019-09-11T08:48:17
207,765,744
1
1
null
null
null
null
UTF-8
Python
false
false
6,362
py
from bs4 import BeautifulSoup import requests import time import datetime import json import re import xlsxwriter import os from docx import Document from docx.shared import Inches cook='UM_distinctid=16822772df50-0cca678828aea6-b353461-100200-16822772e8fd5; CNZZDATA5626149=cnzz_eid%3D569227167-15467632...
[ "379935132@qq.com" ]
379935132@qq.com
23ba4376c2e5ab6b6503f003f02cea08b743baa8
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2813/60586/315241.py
9b5ccf47b777567c25738279b88e15c540c046da
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
366
py
x=int(input()) z=[] for i in range(x): z.append(input()) if x==3 and z[0]=="andrew 3"and z[1]=="andrew 2": print("andrew") elif x==3 and z[0]=="mike 3"and z[1]=="andrew 5": print("andrew") elif x==15 : print("aawtvezfntstrcpgbzjbf") elif x==10: print("aawtvezfntstrcpgbzjbf") elif x==17 : print(...
[ "1069583789@qq.com" ]
1069583789@qq.com
b61ec36b99c34c698da5c5d18d23ec69ebfac857
1a114943c92a5db40034470ff31a79bcf8ddfc37
/stdlib_exam/stringio-example-3.py
b2b6aa2c19f7aec67b8f9b3e01fc7bc8b6628997
[]
no_license
renwl/mylinux
1924918599efd6766c266231d66b2a7ed6f6cdd1
0602fc6d2b0d254a8503e57310f848fc3e1a73b4
refs/heads/master
2020-07-10T22:12:03.259349
2017-01-02T12:32:04
2017-01-02T12:32:04
66,467,007
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
import io import string, sys stdout = sys.stdout sys.stdout = file = io.StringIO() print(""" According to Gbaya folktales, trickery and guile are the best ways to defeat the python, king of snakes, which was hatched from a dragon at the world's start. -- National Geographic, May 1997 """) sys.stdout = stdout #prin...
[ "wenliang.ren@quanray.com" ]
wenliang.ren@quanray.com
18f7e635724110a5baed431c364fc897b6b7cbd2
531c47c15b97cbcb263ec86821d7f258c81c0aaf
/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_03_01/aio/operations_async/_ddos_protection_plans_operations_async.py
317e4c9bdaa59ccbd8ccbf2b4a8fc26187651570
[ "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later", "MIT" ]
permissive
YijunXieMS/azure-sdk-for-python
be364d3b88204fd3c7d223df23756386ff7a3361
f779de8e53dbec033f98f976284e6d9491fd60b3
refs/heads/master
2021-07-15T18:06:28.748507
2020-09-04T15:48:52
2020-09-04T15:48:52
205,457,088
1
2
MIT
2020-06-16T16:38:15
2019-08-30T21:08:55
Python
UTF-8
Python
false
false
25,359
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" ]
YijunXieMS.noreply@github.com
982d69e6df52e5a4f3c3994d1c3fe4dd3325f1ec
90a3b42254b3df3e9ed85c650204a2a9a88efc4c
/tests/open_alchemy/helpers/test_get_ext_prop.py
299c11353a52948474a187d400adc8f8f1838a4c
[ "Apache-2.0" ]
permissive
SkynetRTN/OpenAlchemy
967668001ab67344acfcf7eeb91f2ae6f601db01
75ec91f5085508beafd20fe3472a135b87b642f1
refs/heads/master
2022-11-15T22:38:34.863563
2020-07-12T11:38:12
2020-07-12T11:38:12
278,888,084
0
0
null
2020-07-11T15:23:37
2020-07-11T15:23:36
null
UTF-8
Python
false
false
13,937
py
"""Tests for ext_prop.""" import functools import pytest from open_alchemy import exceptions from open_alchemy import helpers @pytest.mark.helper def test_miss(): """ GIVEN empty source WHEN get is called with the source THEN None is returned. """ assert helpers.ext_prop.get(source={}, name...
[ "anderssonpublic@gmail.com" ]
anderssonpublic@gmail.com
ef7741d54eeee85ae5344eff0a1b128c0f983cca
ddd466457316662a1455bae429740eb3c8411444
/intro/5_8_loop_sum_odd_even.py
c34320afd5ec784e60b484fd6a9aec17b6837f95
[]
no_license
fingerman/python_fundamentals
9ef46e51d6e9b8328e9c949fa0f807f30bd6e482
1fb604220922530d1171200a3cf3a927c028a6ed
refs/heads/master
2023-01-09T12:02:26.712810
2020-01-22T16:12:32
2020-01-22T16:12:32
151,728,846
0
0
null
2022-12-27T15:34:12
2018-10-05T13:58:10
Python
UTF-8
Python
false
false
374
py
n = int(input()) sumEven = 0 sumOdd = 0 for i in range(1, n+1): if i % 2 == 0: c = int(input()) sumEven = sumEven + c elif i % 2 != 0: d = int(input()) sumOdd = sumOdd + d if sumEven == sumOdd: print("Yes" + "\n" + "Sum = " + str(sumOdd)) elif sumEven != sumOdd: print(...
[ "adamov.george@gmail.com" ]
adamov.george@gmail.com
461e91c5ae3e88520a1d32ddd42f196b9e7dcc5d
ebaa12cfa89a44f7da2fa9cc2cd8028c7536e4ed
/blog/migrations/0001_initial.py
4945c1a237aaa3db2192ce7c6724e00778edd595
[]
no_license
likelionskhu7th/comment
853786dcd895ec4af3242024086e6e8f18bd2b3d
fda93337791ea865a4d55f9dd14fdf78a6b81f40
refs/heads/master
2020-05-20T02:45:12.901725
2019-05-21T11:52:55
2019-05-21T11:52:55
185,340,414
1
0
null
null
null
null
UTF-8
Python
false
false
723
py
# Generated by Django 2.2.1 on 2019-05-07 10:13 import datetime from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Article', fields=[ ('id', m...
[ "gustn4563@gmail.com" ]
gustn4563@gmail.com
5812d140f1eb56e0bfedb90c21e8abd19b1945c7
cf763c59fe8f0cafe002da68bc2aae8df3f00617
/setup.py
23f385b190e3e72f9cddcdce6c5457aa06bd7c82
[ "MIT" ]
permissive
Sandip117/pl-gpu-test
b993a75f717a8059201881c2fb740acf162ce818
f4e37259fabb282f59ca2ff974733140101bf73b
refs/heads/master
2021-04-23T20:27:22.609481
2020-04-06T20:18:15
2020-04-06T20:18:15
249,995,974
0
0
MIT
2020-03-30T15:54:07
2020-03-25T14:09:13
Python
UTF-8
Python
false
false
1,107
py
import sys import os # Make sure we are running python3.5+ if 10 * sys.version_info[0] + sys.version_info[1] < 35: sys.exit("Sorry, only Python 3.5+ is supported.") from setuptools import setup def readme(): print("Current dir = %s" % os.getcwd()) print(os.listdir()) with open('README.rst') as f:...
[ "rudolph.pienaar@gmail.com" ]
rudolph.pienaar@gmail.com
1faae3c4aea51ca9985f8386fb977d6d2755dd18
d8edd97f8f8dea3f9f02da6c40d331682bb43113
/networks770.py
87f6057de77bc92edac7a4ec58ca3bd15b63ce7e
[]
no_license
mdubouch/noise-gan
bdd5b2fff3aff70d5f464150443d51c2192eeafd
639859ec4a2aa809d17eb6998a5a7d217559888a
refs/heads/master
2023-07-15T09:37:57.631656
2021-08-27T11:02:45
2021-08-27T11:02:45
284,072,311
0
0
null
null
null
null
UTF-8
Python
false
false
10,403
py
import torch import torch.nn as nn import torch.nn.functional as F import numpy as np __version__ = 205 # Number of wires in the CDC n_wires = 3606 # Number of continuous features (E, t, dca) n_features = 3 geom_dim = 1 def wire_hook(grad): print('wg %.2e %.2e' % (grad.abs().mean().item(), grad.std().item())) ...
[ "m.dubouchet18@imperial.ac.uk" ]
m.dubouchet18@imperial.ac.uk
df39650fa8bcc5df083b819e4b7b1060a76cf046
25970b0796082ed43e7662834b613e651fdcf648
/0427/either/issue/views.py
4510d6ba5d4782c633612faa678547e5888f8628
[]
no_license
ttppggnnss/django_practice
41668c6a5debced09ad999b68fc2ce2a84c4ef55
737e9a706688853bcfc21162ec815c103ca8e5eb
refs/heads/master
2022-12-14T13:23:10.805575
2020-09-07T05:52:41
2020-09-07T05:52:41
293,249,461
0
0
null
null
null
null
UTF-8
Python
false
false
1,748
py
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib import messages from django.views.decorators.http import require_POST from .models import Issue, Reply from .forms import IssueForm, ReplyForm def index(request): issues = Issue.objects.order_by('-pk') context = { 'is...
[ "kimsae123@naver.com" ]
kimsae123@naver.com
e43253a3f7cdcbde46879df0ba839aebfd0da1fb
4e96f383d4703ad8ee58869ed91a0c8432c8a051
/Cura/Uranium/tests/TestTrust.py
957cf8e23e489144c14580cb9b46630ce0356987
[ "LGPL-3.0-only", "GPL-3.0-only" ]
permissive
flight7788/3d-printing-with-moveo-1
b2dba26010c4fa31815bc1d2d0966161a8600081
7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0
refs/heads/Feature_Marlin_with_AlanBoy
2022-08-30T18:36:44.785058
2020-05-30T07:52:58
2020-05-30T07:52:58
212,583,912
0
0
MIT
2020-05-16T07:39:47
2019-10-03T13:13:01
C
UTF-8
Python
false
false
4,822
py
import copy from unittest.mock import patch, MagicMock import pytest import os import random import tempfile from UM.Trust import TrustBasics, Trust from scripts.signfile import signFile from scripts.signfolder import signFolder _folder_names = ["a", "b"] _subfolder_names = ["sub", "."] _file_names = ["x.txt", "y.tx...
[ "t106360212@ntut.org.tw" ]
t106360212@ntut.org.tw
330d78a566adabb9d6ed5fb63fdf38dd9679a5b0
e65ae5bd9ae1c93e7117e630f7340bc73aa71212
/lib/database/mongodb/tools/clean.py
9c260e3a71b08cbd719f369f0034eac8bf867378
[ "Apache-2.0" ]
permissive
nadirhamid/oneline
e98ff1ed81da0536f9602ecdde2fb2a4fe80d256
833ebef0e26ae8e0cc452756381227746d830b23
refs/heads/master
2021-01-21T04:27:41.715047
2016-05-30T03:50:34
2016-05-30T03:50:34
23,320,578
1
2
NOASSERTION
2020-03-12T17:22:24
2014-08-25T16:29:36
Python
UTF-8
Python
false
false
1,112
py
# Copyright 2009-2014 MongoDB, 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 law or agreed to in writin...
[ "matrix.nad@gmail.com" ]
matrix.nad@gmail.com
978556195551870174e1acfb634337587249570f
db3126a082b5b0d11bc3ea8c5b439a45d059909f
/pipenv/vendor/pythonfinder/models/pyenv.py
1595a963a78bffe2f945c8f48a02d83113cedb09
[ "MIT", "BSD-3-Clause" ]
permissive
omkar-dsd/pipenv
543da2f35246cf3004b1b27079e61c7f90c52cb4
810611d3c0205b6251a0d8c6501b3d4b160a4737
refs/heads/master
2020-04-04T16:37:14.988138
2018-11-04T07:27:11
2018-11-04T07:27:11
156,085,423
1
0
null
2018-11-04T13:33:08
2018-11-04T13:33:08
null
UTF-8
Python
false
false
7,938
py
# -*- coding=utf-8 -*- from __future__ import absolute_import, print_function import logging import operator from collections import defaultdict import attr import sysconfig from vistir.compat import Path from ..utils import ( ensure_path, optional_instance_of, get_python_version, filter_pythons, ...
[ "dan@danryan.co" ]
dan@danryan.co
a39a8d7424d5238f93f227379926bbe709bff466
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03042/s778355065.py
4932b1ed9cf31ae9fbee443f2bfdab9f70f39a21
[]
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
295
py
s = input() head = int(s[:2]) tail = int(s[2:]) is_mmyy = False is_yymm = False if 1 <= head <= 12: is_mmyy = True if 1 <= tail <= 12: is_yymm = True if is_yymm and is_mmyy: print('AMBIGUOUS') elif is_yymm: print('YYMM') elif is_mmyy: print('MMYY') else: print('NA')
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
fa41ee39285b9f185a32f8833a5831870b294041
5bf1dca7bcbbaca219ff6ab31777fba0212aee5a
/bugs/migrations/0117_auto_20190511_0029.py
631a3f8f9c1f5e463b3fea118959c34a2926f269
[]
no_license
Code-Institute-Submissions/Nordlander
d8b5935b3e701fae1ae785043988103602a24bc3
6400e424c3dc9ae41acc6e8a4684d33ed01a94a3
refs/heads/master
2020-05-24T13:46:41.472340
2019-05-18T00:13:40
2019-05-18T00:13:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
825
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-05-11 00:29 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bugs', '0116_auto_20190511_0020'), ] operations = [ migrations.AlterField( ...
[ "brookkynaston@live.fr" ]
brookkynaston@live.fr
3600ecac625a77bb66845f500fb757fbeb2f6d6f
2a3743ced45bd79826dcdc55f304da049f627f1b
/venv/lib/python3.7/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/api_pb2.pyi
36468780e0e5691d1e7758c0318c5b7de10aab6b
[ "MIT", "Apache-2.0" ]
permissive
Dimasik007/Deribit_funding_rate_indicator
12cc8cd7c0be564d6e34d9eae91940c62492ae2a
3251602ae5249069489834f9afb57b11ff37750e
refs/heads/master
2023-05-26T10:14:20.395939
2019-08-03T11:35:51
2019-08-03T11:35:51
198,705,946
5
3
MIT
2023-05-22T22:29:24
2019-07-24T20:32:19
Python
UTF-8
Python
false
false
2,266
pyi
from google.protobuf.internal.containers import ( RepeatedCompositeFieldContainer, ) from google.protobuf.message import ( Message, ) from google.protobuf.source_context_pb2 import ( SourceContext, ) from google.protobuf.type_pb2 import ( Option, Syntax, ) from typing import ( Iterable, Opti...
[ "dmitriy00vn@gmail.com" ]
dmitriy00vn@gmail.com
d06ea1986f9e77cd18b88918ff0a489b6d7fa2af
03b4b71e5a73288ffa7453ed5ccaf8e53057da79
/MassDelete.py
667047346a23660016c840c9ccb74b454af1a28b
[]
no_license
M4cs/MassDelete-Telegram-Discord
b25035dc98d08ec3ec96439186263bece7ec0760
37bc6465504025adb8b640d485585c5b1fd36964
refs/heads/master
2020-03-28T20:48:33.523481
2018-09-17T09:54:19
2018-09-17T09:54:19
149,103,991
1
1
null
null
null
null
UTF-8
Python
false
false
2,419
py
#!usr/bin/python3 # -*- coding: utf-8 -*- import os, sys, time, psutil, win32com.client def main(): print(""" Mass Discord Message Deleter by Macs Delete Messages In Any Chat In Discord or Telegram Windows App. With This You Will Be Able To Automate Deleting of Personal Messages Without The Use Of A Selfbot. En...
[ "maxlikescs@gmail.com" ]
maxlikescs@gmail.com
9b07931d123e3b125f28211b5515cfcfdd722c0c
d93768f381014faf371fe2a7e1b4752f8fb1ac28
/backend/berry_26570/settings.py
ad0db43e6bccbdeb593d964cce355a9df91cc193
[]
no_license
crowdbotics-apps/berry-26570
5effa97498aabc47bdc3ff4315e4b8db9d7f90d4
6d262c59ac8c0697ec11424ae8bf9efdb96b36d9
refs/heads/master
2023-04-30T17:27:08.418542
2021-05-11T20:01:06
2021-05-11T20:01:06
366,499,170
0
0
null
null
null
null
UTF-8
Python
false
false
7,099
py
""" Django settings for berry_26570 project. Generated by 'django-admin startproject' using Django 2.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 o...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
9dee772e81806a8fd6e131d2f2364f1a18d3ebc6
2f74c4d2e5c6dd51eb3eaf0ee4b97122b26e7066
/unit_02/04_object-oriented/2-Inheritance/rpg/characters.py
b1a8ceecbd20dd879227f7f8fd3ffe0936fbd126
[ "MIT" ]
permissive
duliodenis/python_master_degree
c6a4ccf5d98c48cfc1efd29dfc116bf55b6b4f01
3ab76838ce2fc1606f28e988a3273dd27122a621
refs/heads/master
2020-04-14T09:03:51.863305
2019-07-22T23:05:19
2019-07-22T23:05:19
163,751,089
21
5
null
null
null
null
UTF-8
Python
false
false
246
py
class Character: def __init__(self, name="", **kwargs): if not name: raise ValueError("'name' is required") self.name = name for key, value in kwargs.items(): setattr(self, key, value)
[ "dulio.denis@yahoo.com" ]
dulio.denis@yahoo.com
f47f9093f017659333e6273e7216cae6b7c19062
54f352a242a8ad6ff5516703e91da61e08d9a9e6
/Source Codes/AtCoder/agc012/B/4831396.py
17e998546c2da875090f921a4089fb8b0487c03a
[]
no_license
Kawser-nerd/CLCDSA
5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb
aee32551795763b54acb26856ab239370cac4e75
refs/heads/master
2022-02-09T11:08:56.588303
2022-01-26T18:53:40
2022-01-26T18:53:40
211,783,197
23
9
null
null
null
null
UTF-8
Python
false
false
862
py
n, m = map(int, input().split()) g = {} used = {i:[False for _ in range(11)] for i in range(n)} color = [0 for _ in range(n)] for _ in range(m): u, v = map(int, input().split()) u-=1 v-=1 if u not in g: g[u] = [] if v not in g: g[v] = [] g[u].append(v) ...
[ "kwnafi@yahoo.com" ]
kwnafi@yahoo.com
e618b47cc8e5a58686cbf86115b424cdba8a9a32
7fd0c4608e32c53fea935ac63cacf66e1a0c971d
/Canonical_Monojet/AxialModel/DMsimp_s_spin1_1750_100_801/parameters.py
daa10ce68a7dcb62e225b3741b6266ecac4d16ac
[]
no_license
Quantumapple/MadGraph5_cards
285f8a303b04b9745abfc83f5ea4fb06a2922fc9
3db368ada01f59bace11b48eab2f58ab40ba29f2
refs/heads/master
2020-05-02T20:43:23.791641
2020-01-17T16:10:46
2020-01-17T16:10:46
178,199,838
0
2
null
null
null
null
UTF-8
Python
false
false
18,303
py
# This file was automatically created by FeynRules 2.3.7 # Mathematica version: 9.0 for Linux x86 (64-bit) (November 20, 2012) # Date: Mon 24 Aug 2015 13:37:17 from object_library import all_parameters, Parameter from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot # This is a default ...
[ "jongho.lee@cern.ch" ]
jongho.lee@cern.ch
0276d5cdd8155571af835e9e1fd67c2cac949128
2e4d33bad14ab88195fc9aac3b2d0841bacfa767
/python-udemy/Assessments_and_Challenges/Objects_and_Data_Structures/list.py
1a2d2a9959f9a1b75d1825469af482858c1f824d
[]
no_license
Richiewong07/Python-Exercises
062ea8386abad50efccfe398ca61972435f9e218
a99816b23ad6fd338b26d66b5ccfd09bf6ddc527
refs/heads/master
2018-07-09T01:48:36.777998
2018-06-01T03:55:10
2018-06-01T03:55:10
103,578,685
0
0
null
null
null
null
UTF-8
Python
false
false
226
py
# Reassign 'hello' in this nested list to say 'goodbye' instead: list = [1,2,[3,4,'hello']] list[2][2] = "goodbye" print(list) # Sort the list below: list2 = [5,3,4,6,1] print(sorted(list2)) list2.sort() print(list2)
[ "richiewong07@yahoo.com" ]
richiewong07@yahoo.com
b1962e0e9f2c59f82edbe2c5876c621034548995
7b102f9c8f2e3f9240090d1d67af50333a2ba98d
/gbd_2019/shared_code/cod_database/12. Noise reduction/run_phase_finalclean.py
e571261061d68d1868399f75b2d3a6e346799569
[]
no_license
Nermin-Ghith/ihme-modeling
9c8ec56b249cb0c417361102724fef1e6e0bcebd
746ea5fb76a9c049c37a8c15aa089c041a90a6d5
refs/heads/main
2023-04-13T00:26:55.363986
2020-10-28T19:51:51
2020-10-28T19:51:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,034
py
"""Final step before uploading data. This phase includes raking, age aggregation, creating upper/lower bounds for CoDViz, and calculating variances for CODEm """ import sys import os from cod_prep.utils import ( print_log_message, enforce_asr ) from cod_prep.claude.cf_adjustments import Raker from cod_prep.c...
[ "cheth@uw.edu" ]
cheth@uw.edu
be725ea9e6bae1bf24a18a6c291c9b57be27a15e
78c144b1341f6b6d791e2949a95963033f27478c
/bauh/gems/arch/mapper.py
55e05d16ca1c80d439831a6b0744fcb7588a6551
[ "Zlib" ]
permissive
albanobattistella/bauh
9b50b9a0262f7a914aeb11456dffe58264cbba7b
e00ae4f05b8c7ffde7407333e55446768eb89cce
refs/heads/master
2022-08-15T17:13:30.542002
2019-11-25T19:37:39
2019-11-25T19:37:39
223,788,308
1
0
NOASSERTION
2019-11-24T18:10:20
2019-11-24T18:10:20
null
UTF-8
Python
false
false
5,010
py
import re from datetime import datetime from bauh.api.abstract.model import PackageStatus from bauh.api.http import HttpClient from bauh.gems.arch.model import ArchPackage URL_PKG_DOWNLOAD = 'https://aur.archlinux.org/{}' RE_LETTERS = re.compile(r'\.([a-zA-Z]+)-\d+$') RE_VERSION_SPLIT = re.compile(r'[a-zA-Z]+|\d+|[\....
[ "vinicius_fmoreira@hotmail.com" ]
vinicius_fmoreira@hotmail.com
635c356beec5500a27dea54111b21deafa95ba2e
24977a5bff7b2d8a13796c3dee703afb46bda3d5
/IntroductionToPythonAndProgrammingBasic-Cisco-master/Model Driven Programmability - DevnNet20/Files Scripts Python/08_parse-json_sol.py
546b7830842b356931f3285bc20badd263b8afa3
[]
no_license
chunche95/ProgramacionModernaPython
139699fd35923406b5cf92d65465738a5ae1d423
9da99388e73c29c021a0637be7ac74c6926f0ceb
refs/heads/master
2023-05-09T18:37:27.845901
2021-02-28T11:39:53
2021-02-28T11:39:53
185,662,309
3
0
null
2023-05-02T18:56:10
2019-05-08T18:49:17
Jupyter Notebook
UTF-8
Python
false
false
4,800
py
#Replace "your_api_key" with your MapQuest API key import urllib.parse import requests main_api = "https://www.mapquestapi.com/directions/v2/route?" key = "your_api_key" while True: orig = input("Starting Location: ") if orig == "quit" or orig == "q": break dest = input("Destination: ") if d...
[ "paeste95.pb@gmail.com" ]
paeste95.pb@gmail.com
f720b00c51af60267ee6a57f26e4c29c413ebfb1
a2dce63dc04f484d1457073610343378656a1ffd
/p90.py
7b330e887a1cd710fbcc921f7b4dbc7b9b9b01dc
[]
no_license
analaura09/pythongame
5ece67047095160cdbc56ae3bb14920c787d8d02
54c83cf731a384fdb04bc4c3ed0bcf109b03d5ed
refs/heads/main
2023-03-29T00:35:35.713616
2021-03-21T17:53:28
2021-03-21T17:53:28
348,432,418
0
0
null
null
null
null
UTF-8
Python
false
false
304
py
aluno = dict() aluno['nome']=input('nome:') aluno['media']=float(input(f'media de {aluno["nome"]}:')) if aluno['media'] >= 7: aluno['situaçao']='aprovado' elif 5 <= aluno['media'] < 7: aluno['situaçao'] ='reprovado' print('-='*30) for k,v in aluno.items(): print(f' - {k} é igual a {v}')
[ "pereira.laura@escolar.ifrn.edu.br" ]
pereira.laura@escolar.ifrn.edu.br
b65beaa3bbdb3eae8c26ffa844c28fe459936b66
b5b31c75ce9086872c4097db1130fac1a9b95b5b
/model.py
5fcc16b3224ea65b7ff467e46a3da99672369c6a
[]
no_license
shmuel19-meet/LocalEat
261558f9099ff51355fcd61568a2daa86b8a3730
642b7926944c8a519733068267e72eea20ff0ad3
refs/heads/master
2022-12-11T22:31:40.950583
2019-07-24T09:17:26
2019-07-24T09:17:26
174,370,824
0
3
null
2022-12-08T05:53:58
2019-03-07T15:28:23
JavaScript
UTF-8
Python
false
false
2,659
py
from sqlalchemy import Column, Integer, String, Boolean, Float from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from sqlalchemy import create_engine Base = declarative_base() class User(Base): __tablename__ = "User" id_table = Column(Intege...
[ "myname21@meet.mit.edu" ]
myname21@meet.mit.edu
748457e1140e93665890f47c6df0eef0c8d9d539
af98a6b70ed86a1c6c3c9cd3f07b0934c5ced093
/src/toll/fixtures/bad/bad.py
86ea1ac5b02411ae2f9597f2cd241fa08783a226
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "BSD-2-Clause" ]
permissive
icemac/toll
071d97e9992c91ba46effc7f4a990cd2a6f7cd62
edefe6fa5d1ee3b4cd4c6b57c19b1df84551c33b
refs/heads/master
2021-01-19T13:08:34.405470
2020-09-01T05:34:22
2020-09-01T06:35:18
88,068,713
5
2
BSD-2-Clause
2020-09-01T06:35:20
2017-04-12T15:38:27
Python
UTF-8
Python
false
false
271
py
import unittest class Test_Bad(unittest.TestCase): """It fails.""" def test_fine__1(self): self.assertTrue(False) def test_suite(): """Create test suite for `python setup.py test`.""" return unittest.TestSuite([unittest.makeSuite(Test_Bad)])
[ "mh@gocept.com" ]
mh@gocept.com
c29fe1d1e2ed7f97ac7bce1578ca0ffb86c8868a
a68fcfabacf0e55f690a4416d9f84fd26f9ed18f
/bonus1/exercises/exercise3/exercise3.py
a2623fe1918770b83429a35e37397256ff1231a3
[ "Apache-2.0" ]
permissive
twin-bridges/nornir_course
b10e12ded7dec43f50bdb4e76f434fb458c3574c
4a10b472cf01dc94b811d1c06b9d53c84aa68fe9
refs/heads/master
2022-07-26T20:54:25.573390
2022-07-15T17:38:55
2022-07-15T17:38:55
185,249,635
72
25
Apache-2.0
2022-07-15T17:38:56
2019-05-06T18:23:59
Python
UTF-8
Python
false
false
432
py
from nornir import InitNornir from nornir_utils.plugins.functions import print_result def netmiko_direct(task): # Manually create Netmiko connection net_connect = task.host.get_connection("netmiko", task.nornir.config) return net_connect.find_prompt() if __name__ == "__main__": with InitNornir(conf...
[ "ktbyers@twb-tech.com" ]
ktbyers@twb-tech.com
12d1f4c42ce25953d4b200cbd33fb52f4c5abdfe
0eb599c3bbfa6e5b31516913b88cc9db3a1311ce
/GCJ/GCJ2020_1B_b_interactive_runner.py
f2c57deb3504c247a7fc2e07a54e009f4512fc53
[]
no_license
Linus-MK/AtCoder
5b84dc88c2d2773d0f97ed18265d303290da7879
a587e89a9e0c2ab4d36b09176bcc95e901e14326
refs/heads/master
2022-11-25T05:37:12.148722
2022-11-17T16:04:10
2022-11-17T16:04:10
169,840,698
0
0
null
null
null
null
UTF-8
Python
false
false
4,814
py
# This code can be run as python2 or python3 in most systems. # # This is a small program that runs two processes, connecting the stdin of each # one to the stdout of the other. # It doesn't perform a lot of checking, so many errors may # be caught internally by Python (e.g., if your command line has incorrect # syntax...
[ "13600386+Linus-MK@users.noreply.github.com" ]
13600386+Linus-MK@users.noreply.github.com
5d0bfc9c267ed71d3e943012c68336e577a583cd
671488a42bdb32ebc19ff38343a7699015fa9583
/CLA/results/compare.py
b240204be91862ddaf07922bd8e63f8888b3b80c
[]
no_license
BML-MultiRobot/Multi-Box-Push
86bec8b91485d169ec5181d17ecd4948912f4f93
8c453b83ddeabe7cb269d0526644c22d82a19bd0
refs/heads/master
2023-05-14T23:20:57.542293
2021-06-03T19:05:26
2021-06-03T19:05:26
298,180,234
1
0
null
null
null
null
UTF-8
Python
false
false
2,074
py
import sys, pickle import matplotlib.pyplot as plt import os folders = ['off_policy_cf_ddac', 'off_policy_cf_ddac_2', 'off_policy_IQL'] folders = sorted(folders) def get_moving_average(lst, resolution): cumsum, moving_aves = [0], [] for i, x in enumerate(lst, 1): cumsum.append(cumsum[i - 1] + x) ...
[ "austinnguyen517@berkeley.edu" ]
austinnguyen517@berkeley.edu
4c02231110503dfc680f80c5f0a8855268fb2848
1e50f1643376039ca988d909e79f528e01fa1371
/leetcode/editor/cn/726.原子的数量.py
fb4edc58afe746d833ec1a01367967d1342ffb48
[]
no_license
mahatmaWM/leetcode
482a249e56e2121f4896e34c58d9fa44d6d0034b
4f41dad6a38d3cac1c32bc1f157e20aa14eab9be
refs/heads/master
2022-09-04T17:53:54.832210
2022-08-06T07:29:46
2022-08-06T07:29:46
224,415,259
0
0
null
null
null
null
UTF-8
Python
false
false
3,645
py
# # @lc app=leetcode.cn id=726 lang=python3 # # [726] 原子的数量 # # https://leetcode-cn.com/problems/number-of-atoms/description/ # # algorithms # Hard (44.85%) # Likes: 78 # Dislikes: 0 # Total Accepted: 3.5K # Total Submissions: 7.7K # Testcase Example: '"H2O"' # # 给定一个化学式formula(作为字符串),返回每种原子的数量。 # # 原子总是以一个大写字母开...
[ "chrismwang@tencent.com" ]
chrismwang@tencent.com
d33dd7b63868126ce7bf4913b02c330c9ff78284
dde33c083b2923fa4adabcc696cf0ed21a4837ef
/cybercom_queue/util.py
b81bc08bd769dd9fd8764fc4ec0a18ae9353e8de
[ "BSD-3-Clause" ]
permissive
oulib-datacatalog/cybercommons
28cee16f2dff36c016789b148132fdc27db7ab49
2665659228259508123e31fd71fb68f70aa6c048
refs/heads/main
2023-06-24T20:01:58.757200
2022-09-21T19:39:23
2022-09-21T19:39:23
251,441,512
0
10
BSD-3-Clause
2023-06-15T19:58:59
2020-03-30T22:20:30
Python
UTF-8
Python
false
false
902
py
__author__ = 'mstacy' import sys def trim(docstring): if not docstring: return '' # Convert tabs to spaces (following the normal Python rules) # and split into a list of lines: lines = docstring.expandtabs().splitlines() # Determine minimum indentation (first line doesn't count): indent...
[ "mbstacy@gmail.com" ]
mbstacy@gmail.com
1694951498da2ad6b95eeae715bc400b8770b999
bc441bb06b8948288f110af63feda4e798f30225
/easy_work_service_sdk/model/monitor/alert_range_pb2.pyi
7c70da75b437636d222d16eee32fe5638966a771
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
2,270
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from easy_work_service_sdk.model.monitor.alert_event_pb2 import ( AlertEvent as easy_work_service_sdk___model___monitor___alert_event_pb2___AlertEvent, ) from google.protobuf.descriptor import ( Descriptor as google___protobuf___descriptor_...
[ "service@easyops.cn" ]
service@easyops.cn
b5350998e793f72686b2d5ea68ffbafa347ac10c
2251e611c24426c1f787a2c58bb1bbf2a5018cf9
/chcemvediet/apps/inforequests/forms/clarification_response.py
848580f591bf2a1f03bbb54106019b390594e180
[]
no_license
gitter-badger/chcemvediet
68ff6fb1bf9d3c1b4d2c67b7118c42944e176a70
661082369495a97d0f8bdf8e5a775f4a06277799
refs/heads/master
2020-12-26T18:41:55.615024
2015-12-11T01:29:38
2015-12-11T01:29:38
48,106,138
0
0
null
2015-12-16T11:20:57
2015-12-16T11:20:56
null
UTF-8
Python
false
false
4,663
py
# vim: expandtab # -*- coding: utf-8 -*- from django import forms from django.utils.translation import ugettext_lazy as _ from django.contrib.sessions.models import Session from poleno.attachments.forms import AttachmentsField from poleno.utils.models import after_saved from poleno.utils.urls import reverse from polen...
[ "martin@github.ksp.sk" ]
martin@github.ksp.sk
f7cf470b5bc308f5ac1729277bacc3471d63f065
be2a81f03e8a2dac7d356dde7a3ffdcfe3f77e00
/providers/com/figshare/v2/migrations/0002_favicon.py
b74fa5df61b4fd11cad5cf7c9ff7a40c2fb842f4
[ "Apache-2.0" ]
permissive
Stevenholloway/SHARE
4193bbd3ca50765a24bf21c0cc14438175fbb678
b9759106d12c2ff548bad22c4be8650e9f41e61e
refs/heads/develop
2021-01-21T19:13:35.205983
2017-02-23T14:45:46
2017-02-23T14:45:46
63,431,390
0
0
null
2016-07-15T15:17:45
2016-07-15T15:17:44
null
UTF-8
Python
false
false
459
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-02-01 21:23 from __future__ import unicode_literals from django.db import migrations import share.robot class Migration(migrations.Migration): dependencies = [ ('com.figshare.v2', '0001_initial'), ('share', '0018_store_favicons'), ]...
[ "chriskseto@gmail.com" ]
chriskseto@gmail.com
6ce4412de399cdb5a234c8a313f398f90e682b5c
a39f7413dcd87bb26319fe032d59cf12d7c69d54
/dataset/UnbalancedDataset_single_gpu.py
7abbf65698b94ac3432e0ecf5727032546a27bea
[]
no_license
liangyuandg/cross_modality_ibsr
8ad937b5475bd5e6b00ad50351706304a962f975
bb5cefd890f5fa0e15eae6e54d9559f5e8eb94ed
refs/heads/master
2023-06-24T02:58:25.318170
2021-07-27T08:29:27
2021-07-27T08:29:27
389,904,637
0
1
null
null
null
null
UTF-8
Python
false
false
9,105
py
from torch.utils.data import Dataset import torchvision.transforms as transforms import numpy as np from PIL import Image import torch import string import random HE_STAT = [[177.24695274/255.0, 124.34710506/255.0, 161.72433061/255.0], [47.7463798/255.0, 55.49126494/255.0, 44.1525292/255.0]] PH_STAT = [[194.24576912/2...
[ "liangyuandg@g.ucla.edu" ]
liangyuandg@g.ucla.edu
0d47b387ecdcd63cf06997e6b94745e34488e70f
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/WBsxNXnqeFr4es9oh_11.py
05d4b8426d27ac7a24fed8b4bc62b4249477a61b
[]
no_license
daniel-reich/turbo-robot
feda6c0523bb83ab8954b6d06302bfec5b16ebdf
a7a25c63097674c0a81675eed7e6b763785f1c41
refs/heads/main
2023-03-26T01:55:14.210264
2021-03-23T16:08:01
2021-03-23T16:08:01
350,773,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,959
py
""" In **Clockwise Cipher** , encoding is done by placing message characters in the corner cells of a square and moving in a clockwise direction. Create a function that takes an argument `message`, and returns the **encoded message**. There are some variations on the rules of encipherment. One version of the ciphe...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
76818ccb8ef34285c0545906b6f4749009848e8a
9b05a0000eaad6ce6edb9fd0cbbfb469d8925e5f
/flybywire_tk/core.py
8b08f865122228879b824d62fcc6e26ecfd3e45f
[ "MIT" ]
permissive
thomasantony/flybywire-tk
e667f69d1203efb55fe6d9a1df35387280b4dd97
9bc1cd04ff7ef3b555e5a7cbaa8f592ea096d2e9
refs/heads/master
2020-05-25T11:32:12.686359
2017-03-04T07:29:50
2017-03-04T07:29:50
83,617,806
1
0
null
null
null
null
UTF-8
Python
false
false
9,926
py
"""Core module""" import abc import asyncio as aio import collections import copy import inspect import tkinter from tkinter import N,NE,E,SE,S,SW,W,NW import dictdiffer from dictdiffer import diff, patch from dictdiffer.utils import dot_lookup from misc import set_interval, clear_interval, AutoScrollbar import ui ...
[ "tantony@purdue.edu" ]
tantony@purdue.edu
a974511c8d4f4eea341e3475123871ddf39fcf49
24c5c46f1d281fc15de7f6b72a5148ae85f89fb4
/SRC/demo/imooc/imooc_advanced/文件IO高效处理/part5.py
95bf4363644347a2b13b050019262fd1169ef12e
[]
no_license
enterpriseih/easyTest
22d87c7ffe40fb10a07f7c5cdd505f63dd45adc0
43b8d294e898f25055c78313cfece2753352c250
refs/heads/master
2023-08-23T22:55:14.798341
2020-02-11T09:13:43
2020-02-11T09:13:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
# 如何访问文件的状态 # 文件的类型 # 文件的访问权限 # 文件的最后访问 修改 节点状态更改时间 # 普通文件的大小 # # 方法一: 标准库中os模块下的三个系统调用stat,fstat,lstat获取文件状态 # os.stat 不取符号链接 # os.lstat 取符号链接 # os.fstat 需要一个打开的文件描述符 # open().fileno() #获取文件描述符 import os, stat,time s = os.stat('demo.txt') print(s.st_mode) print(bin(s.st_mode)) print(stat.S_ISDIR(s.st_mode)) # 判断状态 p...
[ "yaolihui0506" ]
yaolihui0506
de7233c81973b09b53acb3c50b0fd57ce38459e3
f52997ac7e1b41f34018c3a0028ced8638072b2b
/src/peoplefinder/test/views/test_profile_views.py
7055716d96542fdced68803c3eae3b488cf6d244
[ "MIT" ]
permissive
uktrade/digital-workspace-v2
49fae1fca819b625c6f6949fb5ce51b89fbcab96
7e328d0d55c9aa73be61f476823a743d96e792d0
refs/heads/main
2023-09-03T12:03:47.016608
2023-09-01T12:07:55
2023-09-01T12:07:55
232,302,840
6
0
MIT
2023-09-13T15:50:24
2020-01-07T10:41:18
Python
UTF-8
Python
false
false
24,240
py
from dataclasses import dataclass from typing import Any, Optional import pytest from bs4 import BeautifulSoup from django.contrib.auth.models import Group, Permission from django.core.management import call_command from django.db import models from django.db.utils import IntegrityError from django.test.client import ...
[ "noreply@github.com" ]
uktrade.noreply@github.com
7534586b26049b6a1df685966ea721bd74d2fd71
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/86/usersdata/236/58743/submittedfiles/pico.py
abe26e0bc7e8432854b8628ab529927705d3a298
[]
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
534
py
# -*- coding: utf-8 -*- def pico (lista): def cresncente (lista): i=1 cont1=0 while lista[i]>lista[i-1]: i=i+1 cont1=cont1+1 def decrescente (lista): while lista[i]<lista[i-1]: i=i+1 cont2=cont2+1 if (cont1+cont2)==(len(lista)-1): print...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
ddcdc27572a19ef988a11713433e4beec21812b3
3665ef60ba2cde4c13a8d192b8779a2f43dd9980
/python/ray/tests/kubernetes_e2e/test_k8s_operator_scaling.py
1d2511685df5490cf9f6750448cdd343a5b8495f
[ "MIT", "Apache-2.0" ]
permissive
QPC-database/amazon-ray
45783aa27977d7afda0bfa1b076be414f5dd1328
55aa4cac02a412b96252aea4e8c3f177a28324a1
refs/heads/main
2023-06-12T17:07:49.202429
2021-07-08T17:58:32
2021-07-08T17:58:32
384,644,975
1
0
Apache-2.0
2021-07-10T08:05:02
2021-07-10T08:05:02
null
UTF-8
Python
false
false
6,571
py
""" Tests scaling behavior of Kubernetes operator. (1) Start a cluster with minWorkers = 30 and verify scale-up (2) Edit minWorkers to 0, verify scale-down (3) Submit a task requiring 14 workers using Ray client (4) Verify scale-up, task execution, and scale down. """ import copy import kubernetes import subprocess i...
[ "noreply@github.com" ]
QPC-database.noreply@github.com
cdda202c4def7eaeb7606d6be5eee7deea8ba86d
bd8532378ad2a61240faaa7be8ef44c60c055a2a
/rabona/data/leagues/Calcio B/Bari/Bari.py
cf848ea6f2baeef94433eab77e69f1ccb6c6dea5
[]
no_license
nosoyyo/rabona
278a9dfe158e342261343b211fb39b911e993803
b0af3ab5806675fbf81b038633a74943118a67bb
refs/heads/master
2020-03-16T06:56:55.277293
2018-05-30T11:45:51
2018-05-30T11:45:51
132,565,989
2
1
null
2018-05-30T11:45:52
2018-05-08T06:44:11
Python
UTF-8
Python
false
false
11,218
py
club_info = {'club_url': 'https://www.futbin.com///18/leagues/Calcio%20B?page=1&club=1848', 'club_logo': 'https://cdn.futbin.com/content/fifa18/img/clubs/1848.png', 'club_name': 'Bari'} players = {} players['Brienza'] = {'player_url': 'https://www.futbin.com//18/player/1687/Franco Brienza', 'player_name': 'Franco Brien...
[ "oyyoson@gmail.com" ]
oyyoson@gmail.com
8a7738f0d32537b2f0994883b51fa8ae1b0e8c30
f9d564f1aa83eca45872dab7fbaa26dd48210d08
/huaweicloud-sdk-hilens/huaweicloudsdkhilens/v3/model/delete_secret_response.py
aa4df97a980ce2ea5cf944f3cadf638e76878e29
[ "Apache-2.0" ]
permissive
huaweicloud/huaweicloud-sdk-python-v3
cde6d849ce5b1de05ac5ebfd6153f27803837d84
f69344c1dadb79067746ddf9bfde4bddc18d5ecf
refs/heads/master
2023-09-01T19:29:43.013318
2023-08-31T08:28:59
2023-08-31T08:28:59
262,207,814
103
44
NOASSERTION
2023-06-22T14:50:48
2020-05-08T02:28:43
Python
UTF-8
Python
false
false
3,211
py
# coding: utf-8 import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class DeleteSecretResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the va...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
0c498980bf25b8dfbd71c2f2472b890eb46bed3f
ac33e7a30131db58f0e72c9bf1f79cd34a38d335
/manufacturing/doctype/stability_product_specification/stability_product_specification.py
1292b97230dcb653d9bc46cc130feb66b19ebaa7
[]
no_license
mbhavesh95863/erpnext
395d545292c67cc5d6d7be3029d03245c754d984
d6c490e4a404235abe9b4d541de1bbb53ba32949
refs/heads/master
2020-03-26T20:03:45.620397
2018-08-19T12:46:43
2018-08-19T12:46:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
899
py
# -*- coding: utf-8 -*- # Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document from frappe.utils import cint, cstr, flt class StabilityProductSpecification(D...
[ "erpnextdeveloper1@gmail.com" ]
erpnextdeveloper1@gmail.com
5da051244616584e88c4cd12cafd5e1ee72871da
8f88c31a3218646e61d9891b230a289621066faa
/rcbfp/apps.py
77601995314f45e92d5605b7bca8b30a790d5f1f
[]
no_license
jorgec/rcbfp-backend-web
e72fdc203b4ab22127f82255faec63ba6a28703f
5472a82538494fe897d5379e844dcbb0d0d8f041
refs/heads/master
2021-01-26T11:54:19.672898
2020-02-22T07:36:36
2020-02-22T07:36:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
867
py
# Application definition INSTALLED_APPS = [ ] INSTALLED_APPS += [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.humanize' ] # Logging and debugging INSTALLE...
[ "markjungersaniva@gmail.com" ]
markjungersaniva@gmail.com
8b5b3e59563bc105597e183f6fea7f1ef9ddadf0
e23a4f57ce5474d468258e5e63b9e23fb6011188
/055_modules/001_modules/examples/Python 3 Most Nessesary/12.2.Listing 12.15. The contents of the main program.py
47eabaf9e133a17462e0bf428724e32c448b96d1
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
366
py
# -*- coding: utf-8 -*- from module1 import * from module2 import * import module1, module2 print(s) # Выведет: "Значение из модуля module2" print(module1.s) # Выведет: "Значение из модуля module1" print(module2.s) # Выведет: "Значение из модуля module2" input()
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
7f23b5c699cad4f4a7f30661ea327d0201a9dfe6
bd87d8947878ccb2f5b720e70a22493b00868fd3
/bee/01basics/basics.py
5c8af0d21a92dd0a4306103a5277afc532240e41
[]
no_license
damiansp/completePython
4cbf12ef682a1d4a5498f77e407dc02e44a7d7ac
3f5e2f14d79c93df5147b82d901190c054535158
refs/heads/master
2023-09-01T20:50:03.444440
2023-08-28T00:27:57
2023-08-28T00:27:57
99,197,610
0
1
null
null
null
null
UTF-8
Python
false
false
689
py
#!/usr/bin/env python3 import cmath # complex math # Getting Input from User meaning = input('The meaning of life: ') print('%s, is it?' %meaning) x = int(input('x: ')) # 3 only? y = int(input('y: ')) print('xy = %d' %(x * y)) # cmath and Complex Numbers print(cmath.sqrt(-1)) print((1 + 3j) * (9 + 4j)) #name = raw...
[ "damiansp@gmail.com" ]
damiansp@gmail.com
ba87068732a9123c6844d2c7a4f6cf2818a6a686
06ae8168b7067c8f77f06a48a22d158af1657651
/teafound/migrations/0004_auto_20210411_1314.py
76b6eb5f48409d932a3ab3028003f36582b7e115
[]
no_license
Jiangjao/teaProject
61e3cab41fab4b1aa8d2b1cfd6c6337c01196497
9f14d59d974bf82158a43d19c42b977b393857d2
refs/heads/master
2023-08-12T11:38:56.561815
2021-10-11T06:30:17
2021-10-11T06:30:17
347,795,463
0
0
null
null
null
null
UTF-8
Python
false
false
769
py
# Generated by Django 3.0 on 2021-04-11 05:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('teafound', '0003_auto_20210330_1509'), ] operations = [ migrations.AddField( model_name='chemistry', name='entryname',...
[ "918718278@qq.com" ]
918718278@qq.com
698a82d67584b20bbeec34810819d8c8af499121
3e405caed737ae72c504bbbaa542d03fd886d8cc
/aplot/colors.py
dffd075fe20290f47e0fdc4b85da6576c207fdab
[]
no_license
alvarolopez/aplot
89611309698ccd78edba4a31b9e0a29389c67571
e881ab70f74e0ab3999e177ea1f350da614f88f6
refs/heads/master
2016-08-12T05:51:06.255050
2015-12-17T09:45:21
2016-01-17T11:42:46
48,102,900
0
0
null
null
null
null
UTF-8
Python
false
false
857
py
from matplotlib import cm from matplotlib import pyplot import numpy # These are the "Tableau 20" colors as RGB. tableau20 = [(31, 119, 180), (174, 199, 232), (255, 127, 14), (255, 187, 120), (44, 160, 44), (152, 223, 138), (214, 39, 40), (255, 152, 150), (148, 103, 189), (197, 176, 213), (14...
[ "aloga@ifca.unican.es" ]
aloga@ifca.unican.es
638aca7dfce5519e601786e1b869cfa33cd48f09
650d8fb0348989e919359bbbc7f4b40888f38b87
/case_management/cpbns/doctype/participant_identified/test_participant_identified.py
c02d04e916af98a2083f73e05ec349bbdadac616
[ "MIT" ]
permissive
worldkingpradeep/case_management
4f0daa467f3a1c83be0cc431307298e31282a5ee
d39af5f49614672fc30ac6019eb0772c28de3df3
refs/heads/master
2023-03-18T05:09:13.797475
2021-01-23T15:27:22
2021-01-23T15:27:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
# -*- coding: utf-8 -*- # Copyright (c) 2020, Akram Mutaher and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestParticipantIdentified(unittest.TestCase): pass
[ "you@example.com" ]
you@example.com
4b13b7e42c2daec731d0176f7ae8c407716eeb47
f576f0ea3725d54bd2551883901b25b863fe6688
/sdk/servicenetworking/azure-mgmt-servicenetworking/azure/mgmt/servicenetworking/operations/_operations.py
aec0cfc6052ac274273da1b0d2196dae4a48717c
[ "MIT", "LicenseRef-scancode-generic-cla", "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
6,505
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
Azure.noreply@github.com
087e778dd0a985adefd0d54e25b7977edd159a2a
737728a38690e2e31c4b4c1a998fae923502cf54
/Python/20058_마법사상어와파이어스톰.py
ea777152f74b546b0f3419128405a6e1d4dc89d3
[]
no_license
chaeonee/baekjoon
528c300f15f7f88a4c608a46e7b82aa6cf325a76
90da231f7134ab10a3649d4038da3ad6d631de45
refs/heads/master
2023-06-27T03:17:54.908553
2021-07-26T07:06:53
2021-07-26T07:06:53
220,909,690
6
1
null
null
null
null
UTF-8
Python
false
false
1,460
py
import sys from collections import deque sys.setrecursionlimit(100000) def checkIce(N, ice): new_ice = [[0]*N for _ in range(N)] c_dir = [[-1,0],[1,0],[0,-1],[0,1]] for x in range(N): for y in range(N): check = 0 for dx, dy in c_dir: dx += x dy += y if 0 <= dx < N and 0 <= dy < N and ice[dx][d...
[ "noreply@github.com" ]
chaeonee.noreply@github.com
d748c30874202ee7e8e9b3514ac9dd4995de7cdc
786027545626c24486753351d6e19093b261cd7d
/ghidra9.2.1_pyi/ghidra/program/database/map/AddressMap.pyi
a114bde92b49b6dbdd7d5b50b9dabf7c1e7cf4bf
[ "MIT" ]
permissive
kohnakagawa/ghidra_scripts
51cede1874ef2b1fed901b802316449b4bf25661
5afed1234a7266c0624ec445133280993077c376
refs/heads/main
2023-03-25T08:25:16.842142
2021-03-18T13:31:40
2021-03-18T13:31:40
338,577,905
14
1
null
null
null
null
UTF-8
Python
false
false
10,301
pyi
from typing import List import ghidra.program.database.map import ghidra.program.model.address import ghidra.program.model.lang import ghidra.program.util import java.lang class AddressMap(object): """ Address map interface add methods need by the program database implementation to manage its address map. ...
[ "tsunekou1019@gmail.com" ]
tsunekou1019@gmail.com
f0726feaad28d68f162f4eb3e242c62833307ecb
cdb186ad49bba1406c81f634b936e73f8cb04009
/ABC/120/d2.py
59601ef036cf61ce1bab54e68b795dbf3a972c45
[]
no_license
ToshikiShimizu/AtCoder
9e46f5581f2c1f5149ce1394d61d652cda6256a3
41fe6408c20c59bbf1b5d7ee9db2e132f48ad1ac
refs/heads/master
2023-07-26T22:45:51.965088
2023-07-10T14:11:35
2023-07-10T14:11:35
148,154,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,617
py
class UnionFind: def __init__(self, n): self.nodes = n self.parents = [i for i in range(n)] self.sizes = [1] * n self.rank = [0] * n def find(self, i): # どの集合に属しているか(根ノードの番号) if self.parents[i] == i: return i else: self.parents[i] = self.f...
[ "tamreff3290@gmail.com" ]
tamreff3290@gmail.com
d26d7340ae7caa87d85733eb2be12086b2f83ad4
8aca00af527752d527303d0f5260e818a5f49d27
/VAE/Vanilla_VAE/train.py
0b4eae02aed7f9355a5ead20b6769a92f30142cb
[]
no_license
tobby2002/generative_models
2b01b7110b9f7cc258742694eb912b4b087d8571
aee760bf2d281512e2b52c273e12daa3314f77f9
refs/heads/master
2021-01-21T04:26:53.828509
2017-06-29T08:56:02
2017-06-29T08:56:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
906
py
import argparse import os from solver import Solver # from torch.backends import cudnn from data_loader import mnist_data_loader from configs import get_config def main(config): data_loader = mnist_data_loader( image_path=config.image_path, batch_size=config.batch_size, train=True) sol...
[ "heythisischo@gmail.com" ]
heythisischo@gmail.com
a7fa75c779672492052164329d3bed0f821ea051
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03141/s588799336.py
ebd887e107d7cc9e8aef470dc771fa270d4b87c5
[]
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
750
py
import sys def solve(): input = sys.stdin.readline N = int(input()) T, A = [None] * N, [None] * N used = [False] * N for i in range(N): a, b = map(int, input().split()) T[i] = (a + b, a, i) A[i] = (a + b, b, i) T.sort(reverse = True) A.sort(reverse = True) hapine...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
041e74a93a32e8ecf62389e69580bde92a4029be
bd28f8a8dbcf7f2b4be3bcc0c0e656009191d379
/predict_nn/ranlp/rsr/mi/lstm.py
7b46f1ff48c11e224884dc9848aef46c174b4aa0
[ "MIT" ]
permissive
nicolay-r/attitudes-extraction-ds
e2e5f9218408514ca1f3eff5edf88771e2f368ee
49a82843e6adbca35321aaaa08d05532e953a0fc
refs/heads/master
2022-08-30T04:51:14.133899
2020-05-28T11:06:01
2020-05-28T11:06:01
197,908,649
3
1
null
null
null
null
UTF-8
Python
false
false
1,456
py
#!/usr/bin/python import sys sys.path.append('../../../../') from predict_nn.ranlp.rsr.config import TEST_ON_EPOCHS, MI_CONTEXTS_PER_OPINION from networks.ranlp.io_rsr import RaNLPConfTaskRuSentRelIO from networks.mimlre.base import MIMLRE from networks.ranlp.model_mimlre import RaNLPConfTaskMIMLREModel from networks.m...
[ "kolyarus@yandex.ru" ]
kolyarus@yandex.ru
fd9a87cff6770478db8de311c0a2d82fd99f9919
2fb1ab65258d724ea869f8684db444cff0464d7e
/gym_copter/rendering/twod.py
acda7172d4bdd17a17f2e325d07b814f584b8bf7
[ "MIT" ]
permissive
coletta1/gym-copter
3cf80dd710da8222b91b8714e6fc78540faa684a
841a8ea2c5343e289bc06efd6ad49a75ba14cccd
refs/heads/master
2023-02-13T19:45:01.352539
2021-01-07T17:06:58
2021-01-07T17:06:58
327,072,254
0
0
MIT
2021-01-07T14:07:19
2021-01-05T17:34:03
null
UTF-8
Python
false
false
6,088
py
''' 2D quadcopter rendering Copyright (C) 2020 Simon D. Levy MIT License ''' from gym.envs.classic_control import rendering import Box2D from Box2D.b2 import fixtureDef, polygonShape class TwoDRenderer: VIEWPORT_W, VIEWPORT_H = 600, 400 SCALE = 30.0 GROUND_Z = 3.33 GEAR_HEIGHT = 0.85 LANDER_P...
[ "simon.d.levy@gmail.com" ]
simon.d.levy@gmail.com
8892a90c709b1fad91ec73e656344c01c93f3649
2ac169bf1294df6069db95e5362df2376844faec
/urllib3/backends/trio_backend.py
0c2b016fe82561fd0a99cff7d4de0705657c6d91
[ "MIT" ]
permissive
merrellb/urllib3
a9000632f54a68cb1f4bd9ee9618e39e89f538b1
dd9d52eb1e69227bb02d6a0fcbc2771e4c4e54fd
refs/heads/bleach-spike
2021-01-16T19:37:28.619347
2017-08-04T21:51:38
2017-08-04T21:51:38
100,185,249
0
0
null
2017-08-13T15:15:17
2017-08-13T15:15:16
null
UTF-8
Python
false
false
2,740
py
import trio from . import LoopAbort from ._util import is_readable class TrioBackend: async def connect( self, host, port, source_address=None, socket_options=None): if source_address is not None: # You can't really combine source_address= and happy eyeballs # (can we g...
[ "njs@pobox.com" ]
njs@pobox.com
bae510a110217c38f7a9d01c90829e9b968dd4c0
0e1e643e864bcb96cf06f14f4cb559b034e114d0
/Exps_7_v3/doc3d/W_w_Mgt_to_C_focus_div/ch032/Tcrop_s255_p20_j15/pyr_2s/L5/step09_2side_L5.py
7bcb0377bf4eb4ba36eab7dde3ed6cbf06544d8d
[]
no_license
KongBOy/kong_model2
33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307
1af20b168ffccf0d5293a393a40a9fa9519410b2
refs/heads/master
2022-10-14T03:09:22.543998
2022-10-06T11:33:42
2022-10-06T11:33:42
242,080,692
3
0
null
null
null
null
UTF-8
Python
false
false
13,714
py
############################################################################################################################################################################################################# ##################################################################################################################...
[ "s89334roy@yahoo.com.tw" ]
s89334roy@yahoo.com.tw
e75e43698a4d7ee8fab67e0ead070703180f9d66
d83cd7bfec9c71ef3186546fd7423082415fca39
/src/old/forums->JSON.py
7b786d4da19838744f6d985dd71366cc646cf927
[]
no_license
mac389/phikal
e139d7e20e6cda0fcedca9eb4a5a5ff397f5f49a
b5162a3bab7320ed3d67bb6b7c9c3a3f03c2ba5a
refs/heads/master
2021-01-15T15:36:37.568339
2016-09-04T18:18:23
2016-09-04T18:18:23
56,150,837
0
1
null
null
null
null
UTF-8
Python
false
false
239
py
import json, os db = {} WRITE = 'wb' for filename in os.listdir(os.path.join(os.getcwd(),'forums')): db[filename] = {} db[filename]['text'] = open(os.path.join(os.getcwd(),'forums',filename)).read() json.dump(db,open('db.json',WRITE))
[ "mac389@gmail.com" ]
mac389@gmail.com
eaa24b780fa830d12b2c79f659cfa00efdfda6ca
c2be187155aabf59a4c0d3f5065bc26239c0b827
/master_category/converters/template_to_googlemanufacturer.py
b2cf214fc975e92734e471245aef63c2ddb66c20
[]
no_license
dankCodeNugs/tmtext
1d6c54f79399bfa5e6f3905c0f72ba0be59d8d0d
8e2d834775f440def7f57294674b8109b46ee191
refs/heads/master
2023-03-16T08:49:38.456929
2016-12-20T19:45:54
2016-12-20T19:45:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,363
py
import os from lxml import html import csv import xlrd from helper import check_extension, logging_info, write_to_file, convert_xls_file #-------- define column names ------------ UPC = 'UPC' MPN = 'MPN' BRAND = 'Brand Name' TITLE = 'Item Name' GTIN = 'GTIN' DESC = 'Description' L_DESC = 'Long Description' #---------...
[ "life.long.learner127@outlook.com" ]
life.long.learner127@outlook.com
80a4b87e6030c74944a0822f7667bbfb7fd38fa7
d5a5ee613027429ed654dbae11d3a18af6c379f8
/timber_modisette/pythonDjango/dojosecrets/apps/dojo_secrets/models.py
5ffb2d167ea093833f5a5a773c29443a4868d1b3
[]
no_license
husainun/python_april_2017
1c3d04792bfe50f57f0f3238c06dca49c605f4b1
633f3451ae99eaa94a97fdf2647de38db03e49be
refs/heads/master
2020-05-15T09:22:06.794597
2017-06-13T15:35:22
2017-06-13T15:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,642
py
from __future__ import unicode_literals from django.db import models import re # Create your models here. class UserManager(models.Manager): def validateUser(self,post): is_valid = True errors =[] if len(post.get('first_name')) == 0: is_valid = False errors.append("Must enter valid first name") if len...
[ "mister.modistette@gmail.com" ]
mister.modistette@gmail.com
7b903bffae937420e3d65bd50a9afd654f013f43
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/A/abresler/super_simple_twitter_scraper_8.py
f3b967c560a5cccaf86c33bbefe8ff74a186e952
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,230
py
################################################################################### # Super Simple Twitter Scraper ################################################################################### import scraperwiki import simplejson import urllib2 import csv # Change QUERY to your search term of choice. # Example...
[ "pallih@kaninka.net" ]
pallih@kaninka.net
af0251879607882ceeffe19420e0ab47b8a7b0c4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03804/s510368755.py
7c3e304c260b97d80771fc571df678da7b42baf3
[]
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
487
py
n, m = map(int, input().split()) a = [input() for _ in range(n)] b = [input() for _ in range(m)] ans = 'No' for x in range(0, n - m + 1): for y in range(0, n - m + 1): check = True for i in range(m): for j in range(m): if a[i+x][j+y] != b[i][j]: check...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e88c846218f4fd40e81aa568be49a6bde82586ad
1626e16760c9c5b5dc9bd7c345871c716d5ffd99
/Problems/0800_0899/0861_Score_After_Flipping_Matrix/Project_Python3/Score_After_Flipping_Matrix.py
528676c4fee1db599a5bb4afb91bf8dba6f59098
[]
no_license
NobuyukiInoue/LeetCode
94ddb19e63cb8d0775cdc13f311fe90c87a1d718
3f0ffd519404165fd1a735441b212c801fd1ad1e
refs/heads/master
2023-09-01T07:38:50.939942
2023-08-23T09:51:17
2023-08-23T09:51:17
158,100,912
0
0
null
null
null
null
UTF-8
Python
false
false
2,136
py
# coding: utf-8 import os import sys import time from typing import List, Dict, Tuple class Solution: def matrixScore(self, A: List[List[int]]) -> int: # 40ms r, c = len(A), len(A[0]) answer = r * (1 << (c - 1)) for j in range(1, c): count = 0 for i in range...
[ "gx3n-inue@asahi-net.or.jp" ]
gx3n-inue@asahi-net.or.jp
256dba10a1f9e4655c2d1f4b3024442dc6b1f1f1
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/sts_write_3/role-with-saml_assume.py
bd754cf1c2a82bb42705ba084e7a21c5716a333e
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,074
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_three_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sts/assume-role-with-saml.html if __name__ == ...
[ "hcseo77@gmail.com" ]
hcseo77@gmail.com
e328506e24b558eac711bd04cb331a655324fecc
ad99cf70a4ab84e0eb3971718147869c639e8976
/backend/menu/api/v1/viewsets.py
31633f37a05075e119710cd97bb2f559e1407d28
[]
no_license
crowdbotics-apps/ellensburg-delivery-22553
60d3caf6ed99543a0e8362546f33b0d1bb07c825
3f7a5d1d4af602445a2715ca06fc3e327b9297da
refs/heads/master
2023-01-12T09:07:08.250685
2020-11-12T08:14:21
2020-11-12T08:14:21
312,209,107
0
0
null
null
null
null
UTF-8
Python
false
false
1,555
py
from rest_framework import authentication from menu.models import Category, Country, Item, ItemVariant, Review from .serializers import ( CategorySerializer, CountrySerializer, ItemSerializer, ItemVariantSerializer, ReviewSerializer, ) from rest_framework import viewsets class ItemViewSet(viewsets...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
4053ac7ddf4fecc6860ced92c9c946507d847eae
9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb
/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2019_06_01/aio/operations/_blob_inventory_policies_operations.py
19a2da9aeddfb198f43eed42c911a969c9b400bf
[ "MIT", "LGPL-2.1-or-later", "LicenseRef-scancode-generic-cla" ]
permissive
openapi-env-test/azure-sdk-for-python
b334a2b65eeabcf9b7673879a621abb9be43b0f6
f61090e96094cfd4f43650be1a53425736bd8985
refs/heads/main
2023-08-30T14:22:14.300080
2023-06-08T02:53:04
2023-06-08T02:53:04
222,384,897
1
0
MIT
2023-09-08T08:38:48
2019-11-18T07:09:24
Python
UTF-8
Python
false
false
21,916
py
# pylint: disable=too-many-lines # 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) AutoRe...
[ "noreply@github.com" ]
openapi-env-test.noreply@github.com
1cd6b93f4df40c4cfb55a5fbad37af872ccaa04d
032e08b21990b83b046cf2feab8bd02c6cb81563
/src/cadence/analysis/AnalysisStage.py
26800ce80149c30379c792436add9904e22077a9
[]
no_license
satello/Cadence
362f1be6f4565d5e7ffd4530e6cc6b4a955b5fac
c795ed7cfab512ad340ff88c8c0e67237ac2dfc5
refs/heads/master
2020-12-25T00:38:26.639588
2015-03-12T18:29:13
2015-03-12T18:29:13
30,662,959
0
0
null
2015-02-11T18:34:18
2015-02-11T18:34:18
null
UTF-8
Python
false
false
14,198
py
# AnalysisStage.py # (C)2014 # Scott Ernst from __future__ import print_function, absolute_import, unicode_literals, division from PyPDF2.merger import PdfFileMerger from PyPDF2.pdf import PdfFileReader from pyaid.config.ConfigsDict import ConfigsDict from pyaid.time.TimeUtils import TimeUtils try: import matpl...
[ "swernst@gmail.com" ]
swernst@gmail.com
437b658890538d63a1cdda99d98e43a01604f019
fff4e1431391956292afe5514b03f81035a3f402
/GAN/GAN.py
b6e5893f41e42b03e882097c4acf7ad3f796facb
[]
no_license
recomdDN/DL_practice
b1d0172bc91a735a32ae01379965247bc9b71a91
5addd8629533b7547a62f68c518138af48e174f2
refs/heads/master
2020-04-16T23:02:12.324842
2019-02-18T09:29:53
2019-02-18T09:29:53
165,995,401
4
3
null
null
null
null
UTF-8
Python
false
false
6,430
py
import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data import numpy as np from skimage.io import imsave import os import shutil img_width = 28 img_height = 28 img_size = img_height * img_width to_train = True to_restore = False output_path = 'output' #总迭代次数500次 max_epoch = 500 h1_size = ...
[ "593476874@qq.com" ]
593476874@qq.com
821a86f82974e6e107d894164c3d8173485f4d89
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/4/i2h.py
3e5a207560c3554044fa5574641787eded6de80e
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
d3cc50f4cabcb9c5c39980932845050fda43a332
4a1336d6d3de077aab654bd315ddeb4cf261256f
/spider/headerchange/headerchange/spiders/headervalidation.py
8ced065d76f34ea2e30825c27194917c00b92c1b
[ "Apache-2.0" ]
permissive
barneyElDinosaurio/base_function
e84be6da0fc2681421cefdbb6792dfda74031fce
d4ecbd4e8dfe43ed9c02ac430ce4598bfca0fc25
refs/heads/master
2020-04-04T20:35:48.477181
2018-11-05T10:34:34
2018-11-05T10:34:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
# -*- coding: utf-8 -*- import scrapy from headerchange.user_agents import agents import random import json class HeadervalidationSpider(scrapy.Spider): name = 'headervalidation' def start_requests(self): url='http://httpbin.org/ip' for i in range(5): yield scrapy.Request(url=url,d...
[ "jinweizsu@gmail.com" ]
jinweizsu@gmail.com
43f1604b8b228c0f2c7e723d31a650b9d2e13cc0
e20978855798f958a460b318c247d80515edbf8e
/Node.py
c1eb13f840cd772767fb1d467922f602bdb64d46
[]
no_license
hanifsarwary/ThesisALgo
846df062524fc62718e6bf45aafa2ce895d98dfd
01184740c139099055e290bb9a14454b389f8bd9
refs/heads/master
2020-07-12T07:54:09.153225
2019-09-09T13:05:16
2019-09-09T13:05:16
204,759,224
0
1
null
null
null
null
UTF-8
Python
false
false
628
py
class Node: def __init__(self, name, parent=None, children=None, is_mendatory=None, is_alternative=None, is_or=None): self.name = name self.parent = parent self.children = children self.is_mendatory = is_mendatory self.is_alternative = is_alternative self.is_or =...
[ "mianhanif13@gmail.com" ]
mianhanif13@gmail.com
185854112af879ccfa14120f7425b4b1445cb903
91c204ce2b5c8793effdcb5a8e958536e4fa253f
/main/migrations/0020_cult_date_created.py
c41a1a0d1d962a8225847ae9fd4a990af925f662
[ "MIT" ]
permissive
send2cloud/opencult.com
eb20bdecbaee741e43831cbeb430fec73d45947f
22888ab7f66d577ec8940c8b1f45a1412509389b
refs/heads/master
2021-04-26T23:21:58.349125
2018-03-04T19:53:08
2018-03-04T19:53:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
# Generated by Django 2.0.1 on 2018-02-10 15:37 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('main', '0019_auto_20180210_1402'), ] operations = [ migrations.AddField( model_name='cult', ...
[ "theodorekeloglou@gmail.com" ]
theodorekeloglou@gmail.com
f7d6097ad8e36722971a2dee7fe0e8bb7ba02e76
ed2ea3c4bb8809b8aad0977f193f265478696a25
/ldap_sync/concepts/__init__.py
f0428145b5ba089ae875216a6ae92016a3e406fa
[ "Apache-2.0" ]
permissive
agdsn/pycroft
4d40f0f2b61ec48fb1ed9df7f5227e59e5e2b946
9f3abb5dc1a7dd54c577af37d5004dd2204739cd
refs/heads/develop
2023-08-31T10:52:15.658921
2023-08-27T12:53:37
2023-08-27T12:53:37
56,711,411
21
15
Apache-2.0
2023-09-05T00:51:57
2016-04-20T18:36:36
Python
UTF-8
Python
false
false
257
py
# Copyright (c) 2022. The Pycroft Authors. See the AUTHORS file. # This file is part of the Pycroft project and licensed under the terms of # the Apache License, Version 2.0. See the LICENSE file for details """ ldap_sync.concepts ~~~~~~~~~~~~~~~~~~ """
[ "lukas.juhrich@agdsn.de" ]
lukas.juhrich@agdsn.de
be6728759401ccad5796401b07e2d4c3d04d2771
b2f4d7275b407b56309d8e5ede3b1c75a18c7871
/MxOnline/apps/courses/migrations/0006_bannercorse.py
11d3e518cb1f0fde38dc95280b2de831c0269532
[]
no_license
renlei-great/MxOnline
9157459cea21bb20379dbe5d285f4aecac026090
01454796473cf2fbb10be315e8340bda715159b2
refs/heads/master
2021-01-09T14:47:54.530942
2020-05-09T16:37:33
2020-05-09T16:37:33
242,342,423
0
0
null
null
null
null
UTF-8
Python
false
false
608
py
# Generated by Django 2.2 on 2020-03-20 21:41 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('courses', '0005_course_is_banner'), ] operations = [ migrations.CreateModel( name='BannerCorse', fields=[ ], ...
[ "1415977534@qq.com" ]
1415977534@qq.com
e9dd6b17803be564c025bd5076ef9dfa8fbff2ec
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/79/usersdata/157/43823/submittedfiles/serie1.py
876643f429b71443f76ea7727c5a88460859f3ce
[]
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
149
py
n=int(input('Informe um valor:')) s=0 for i in range (1,n+1,1): if (i%2==1): s=s+(i**2)) else: s=s-(i/(i**2)) print('%.5f'%s)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
21e6f7a73ae5b4b0a60276196bd64a2f0b5af5f4
c3082eb2adc43b311dd3c9ff16fd3ed9df85f266
/python/examples/basics/converting_to_int_via_float.py
e4a380c6955ace2a5bc7d9e1ebeb9c41f61efb5d
[]
no_license
szabgab/slides
78818c7138331b3ba9e221c81da3678a46efe9b3
63bba06678554db737602f2fbcd6510c36037e8a
refs/heads/main
2023-08-31T07:13:51.536711
2023-08-29T13:17:59
2023-08-29T13:17:59
122,212,527
87
69
null
2023-05-19T06:55:11
2018-02-20T14:57:03
Python
UTF-8
Python
false
false
385
py
a = "2.1" b = float(a) c = int(b) print(c) # 2 print( type(a) ) # <class 'str'> print( type(b) ) # <class 'float'> print( type(c) ) # <class 'int'> d = int( float(a) ) print(d) # 2 print( type(d) ) # <class 'int'> print( int( float(2.1) )) #...
[ "gabor@szabgab.com" ]
gabor@szabgab.com
11905ea741213e9e24040446860c1f72c54dec7a
159d4ae61f4ca91d94e29e769697ff46d11ae4a4
/venv/lib/python3.9/site-packages/jedi/inference/flow_analysis.py
89bfe578dfcb4dd2770c6218ed32d374639910fb
[ "MIT" ]
permissive
davidycliao/bisCrawler
729db002afe10ae405306b9eed45b782e68eace8
f42281f35b866b52e5860b6a062790ae8147a4a4
refs/heads/main
2023-05-24T00:41:50.224279
2023-01-22T23:17:51
2023-01-22T23:17:51
411,470,732
8
0
MIT
2023-02-09T16:28:24
2021-09-28T23:48:13
Python
UTF-8
Python
false
false
4,583
py
from typing import Dict, Optional from jedi.parser_utils import get_flow_branch_keyword, is_scope, get_parent_scope from jedi.inference.recursion import execution_allowed from jedi.inference.helpers import is_big_annoying_library class Status: lookup_table: Dict[Optional[bool], 'Status'] = {} def __init__(s...
[ "davidycliao@gmail.com" ]
davidycliao@gmail.com
9a79fa81dfbdd295757923dad43e8a3a4edf1a0c
022104aa2456429356bdd26c701a2949381a83cf
/build/campero/campero_common/campero_pad/catkin_generated/pkg.develspace.context.pc.py
f99ca17b449a9e448c76c1b55c6efcc0f936148a
[]
no_license
nachocz/campero_ws
204f313d5fbdb81d1f7cc568341a1170ddd2b4cf
f2b09f96165166c0e867e3f5f3dcd092dbac1c1b
refs/heads/master
2023-02-02T03:25:56.603172
2020-12-11T11:28:42
2020-12-11T11:28:42
320,539,897
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/pc-campero2/campero_ws/devel/include".split(';') if "/home/pc-campero2/campero_ws/devel/include" != "" else [] PROJECT_CATKIN_DEPENDS = "robotnik_msgs;roscpp;sensor_msgs;geometry_msgs;message_run...
[ "nachocz@gmail.com" ]
nachocz@gmail.com
5f4b5bcbabc535fe3049ed7f7871e3f932a445bf
a54f78f026c937b5a8a31180024496748169db91
/nibabel/cmdline/convert.py
c0bc8f212eb0bea113f9dc2e612a04df9b450b1b
[ "MIT", "BSD-3-Clause", "LicenseRef-scancode-other-permissive", "PDDL-1.0" ]
permissive
nipy/nibabel
7017e29ee9e3e93d1085d9032c32f6d922b0e43d
8fea2a8e50aaf4d8b0d4bfff7a21b132914120ee
refs/heads/master
2023-08-22T07:12:46.167323
2023-08-06T23:46:30
2023-08-06T23:46:30
791,352
544
239
NOASSERTION
2023-09-08T19:10:32
2010-07-22T16:28:30
Python
UTF-8
Python
false
false
2,233
py
#!python # emacs: -*- mode: python-mode; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the NiBabel package for the # copyright and license terms. # ### ...
[ "markiewicz@stanford.edu" ]
markiewicz@stanford.edu
38d18892148e084929ca4f3658094b983819c601
2581fbdc72887143376a8f9d8f0da0f1508b9cdf
/Flask/08-Social-Blog-Project/11-Blog-Posts-Views/puppycompanyblog/users/picture_handler.py
ecac9e972d79f099fdad038fbc6ed8fac83e338a
[ "Apache-2.0" ]
permissive
Sandy1811/python-for-all
6e8a554a336b6244af127c7bcd51d36018b047d9
fdb6878d93502773ba8da809c2de1b33c96fb9a0
refs/heads/master
2022-05-16T02:36:47.676560
2019-08-16T08:35:42
2019-08-16T08:35:42
198,479,841
1
0
Apache-2.0
2022-03-11T23:56:32
2019-07-23T17:39:38
Jupyter Notebook
UTF-8
Python
false
false
611
py
import os # pip install pillow from PIL import Image from flask import url_for, current_app def add_profile_pic(pic_upload,username): filename = pic_upload.filename # Grab extension type .jpg or .png ext_type = filename.split('.')[-1] storage_filename = str(username) + '.' +ext_type filepath = os...
[ "sndp1811@gmail.com" ]
sndp1811@gmail.com
04f8120a4657332ab632b812bfbf975295baebcb
a867b1c9da10a93136550c767c45e0d8c98f5675
/AZ_GFG_DP_EditDistance.py
4ed89d71dbcfd5e1a552f7b0b1dc754bda561f19
[]
no_license
Omkar02/FAANG
f747aacc938bf747129b8ff35b6648fb265d95b6
ee9b245aa83ea58aa67954ab96442561dbe68d06
refs/heads/master
2023-03-25T19:45:08.153403
2021-03-28T07:13:08
2021-03-28T07:13:08
280,783,785
1
0
null
null
null
null
UTF-8
Python
false
false
1,011
py
# import __main__ as main # from Helper.TimerLogger import CodeTimeLogging # fileName = main.__file__ # fileName = fileName.split('\\')[-1] # CodeTimeLogging(Flag='F', filename=fileName, Tag='Dynamic-Programing', Difficult='Medium') cnt = [0] def editDist(stringOne, stringTwo, n, m, cache): cnt[0] += 1 curr...
[ "omkarjoshi4031@live.com" ]
omkarjoshi4031@live.com
46ca3e2a6be53b2c21d526a65d215a4c498382a9
15a7af91ff82773a4eb9818f0dd6fafa5bbf9ff6
/15_examples_os_file/os_write.py
ff2507f2414ee308329d4cc83c4c2b42c4b085e2
[]
no_license
hooj0/python-examples
6d13579d2a7e6424bdc7f7be061d72e27ab8cddd
1fe2960a710dec60ab640370eee0d60c8222523e
refs/heads/master
2022-07-03T09:31:36.586102
2022-06-14T07:59:07
2022-06-14T07:59:07
109,703,888
1
0
null
null
null
null
UTF-8
Python
false
false
873
py
#!/usr/bin/env python3 # encoding: utf-8 # @author: hoojo # @email: hoojo_@126.com # @github: https://github.com/hooj0 # @create date: 2018-04-01 17:42:04 # @copyright by hoojo@2018 # @changelog Added python3 `os file -> write` example import os ''' 概述 os.write() 方法用于写入字符串到文件描述符 fd 中. 返回实际写入的字符串长度。 ...
[ "hoojo@qq.com" ]
hoojo@qq.com
262a8e23089bd6a0dfaee5b541632f4457a6a6ce
83de24182a7af33c43ee340b57755e73275149ae
/aliyun-python-sdk-sas/aliyunsdksas/request/v20181203/DescribeBackupMachineStatusRequest.py
31df152996c75da13dd980f4fd00cf333d1f23e5
[ "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
1,829
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