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
56bf95e727e241941cb8404140b984bb6ebf81e8
2ed63f141ef1805d377f774c56464fc20a94b1f0
/who_django/news_articles/migrations/0009_auto_20150428_0902.py
0d75138097aaa3f5a7b7cda72c9e7472be9bb512
[]
no_license
piafaustino/in-the-news
115580b051060ee3238170c9657e855b589f1ff6
7e7ee49c11bd75e7c211901eed23eb61b1e63a38
refs/heads/master
2021-01-18T05:11:25.450509
2015-07-09T07:32:59
2015-07-09T07:32:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('news_articles', '0008_auto_20150428_0901'), ] operations = [ migrations.AlterField( model_name='newsarticle', ...
[ "ortizantoniocarlos@gmail.com" ]
ortizantoniocarlos@gmail.com
1def0a0d17d4664296f6ac3d207fd6464e528d57
a140fe192fd643ce556fa34bf2f84ddbdb97f091
/.history/탈출문자_20200628134841.py
52f76ab6276c1e43ead72f41b990b6c04e57c9d5
[]
no_license
sangha0719/py-practice
826f13cb422ef43992a69f822b9f04c2cb6d4815
6d71ce64bf91cc3bccee81378577d84ba9d9c121
refs/heads/master
2023-03-13T04:40:55.883279
2021-02-25T12:02:04
2021-02-25T12:02:04
342,230,484
0
0
null
null
null
null
UTF-8
Python
false
false
495
py
# \n : 줄바꿈 문자 print("백문이 불여일견 \n백견이 불여일타") # \" , \' : 문장 내에서 따옴표 표시 # 저는 "나도코딩"입니다. print('저는 "나도코딩"입니다.') print("저는 \"나도코딩\"입니다.") print("저는 \'나도코딩\'입니다.") # \\ : 문장 내에서 하나의 \ 인식 print("C:\\user\\Nadocoding\\Desktop\\PythonWorkspace") # \r : 커서를 맨 앞으로 이동 print("Red Apple\rPine") # Pine 을 맨 앞으로 이동해서 Red
[ "sangha0719@gmail.com" ]
sangha0719@gmail.com
0e410468b8ee972504b310d318e38672571433eb
c8ea0cc6fb77f9345911eeb5a46d6805dc6c0762
/artifacts/battery_cycles.py
6a52445d41fbbc89675d88fab7ad662caff16c96
[ "Apache-2.0" ]
permissive
NoahRJ/unearth
a1f114faa4e5b8fe734d2e1f66c47b3d48fb984a
d4c3225cc5eca3aa7e22cb48b2457a273f42aed3
refs/heads/master
2022-02-26T06:13:28.467628
2019-07-12T15:24:48
2019-07-12T15:24:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
623
py
import plistlib import subprocess factoid = "battery_cycles" def fact(): """Returns the battery cycle count""" result = "None" try: proc = subprocess.Popen( ["/usr/sbin/ioreg", "-r", "-c", "AppleSmartBattery", "-a"], stdout=subprocess.PIPE, stderr=subprocess....
[ "chilcote+github@gmail.com" ]
chilcote+github@gmail.com
9eb4e00d680f07c58daf4d23bcde8ae439c4fef4
278d7f4467a112416d1adfbcd3218033ff0fd9b3
/configs/regnet/mask_rcnn_regnetx-6.4GF_fpn_1x_coco.py
89b01e35c8d9f9393ef9bed2d0e2317c726ad3f2
[]
no_license
Young-1217/detection
e3d67938b454e955b5b7a82d5ae222e62f9545fb
6760288dac92e00ddc3e813ed0e1363c1fa1ce2d
refs/heads/main
2023-06-01T21:41:37.998947
2021-06-21T10:03:01
2021-06-21T10:03:01
371,868,683
0
0
null
null
null
null
UTF-8
Python
false
false
487
py
_base_ = './mask_rcnn_regnetx-3.2GF_fpn_1x_coco.py' model = dict( pretrained='open-mmlab://regnetx_6.4gf', backbone=dict( type='RegNet', arch='regnetx_6.4gf', out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), norm_ev...
[ "noreply@github.com" ]
Young-1217.noreply@github.com
63fa0d097761e14ffc8a24f166a52a6602df5e9e
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/1e3a154bb18db45953d521b224dae5134ff1cd38-<_as_tuple>-fix.py
67d0eec779e232394594d8590bebf64b8c3f4c82
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
def _as_tuple(xs): if isinstance(xs, tuple): return xs elif isinstance(xs, list): return tuple(xs) else: return (xs,)
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
18df72e3135f880ec03195e7e3793b6738208e1d
a9063fd669162d4ce0e1d6cd2e35974274851547
/test/test_tracking_field3.py
f0fce249958c46c2f52b49a16aabfc7a5a132fef
[]
no_license
rootalley/py-zoom-api
9d29a8c750e110f7bd9b65ff7301af27e8518a3d
bfebf3aa7b714dcac78be7c0affb9050bbce8641
refs/heads/master
2022-11-07T14:09:59.134600
2020-06-20T18:13:50
2020-06-20T18:13:50
273,760,906
1
3
null
null
null
null
UTF-8
Python
false
false
1,400
py
# coding: utf-8 """ Zoom API The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli...
[ "github@rootalley.com" ]
github@rootalley.com
64e7d2d6a89a11242dd6ffe870524b83c7fff09b
6ace7e15e3191d1b8228ad7922a8552ca84f84e7
/.history/image_detector_20200614201043.py
09d069f6be035c475b6bbaaec620ec76a5440459
[]
no_license
mehmetaliarican/Similar-Image-Finder
f72e95be50c51aa03fc64954a03124b199ca64b1
a9e0015c443b4a73394099cccf60329cfc4c7cef
refs/heads/master
2022-10-27T00:57:43.173993
2020-06-14T18:02:16
2020-06-14T18:02:16
272,256,295
0
1
null
null
null
null
UTF-8
Python
false
false
2,236
py
from skimage.metrics import structural_similarity as ssim from imutils import paths import matplotlib.pyplot as plt import numpy as np import cv2 import glob import os import argparse ap = argparse.ArgumentParser() ap.add_argument("-t", "--threshold", type=float, default=0.9, help="threshold") ap.add_a...
[ "m.ali.arican@gmail.com" ]
m.ali.arican@gmail.com
a8be80388f4eb71495ae77e532508c761fedde30
a550aece79bda789826b463280b91abffbf2d372
/django_projects/drf_store/04_03_test_ListAPIView/demo/store/tests.py
b54ff6cd8839738eed887718ccc38ff5cabf3f70
[ "MIT" ]
permissive
phiratio/learn_python
20376470eaa292c157fd01f52b3077e3a983cd5a
a32240d4355fb331805d515f96e1d009914e5c47
refs/heads/master
2022-11-27T07:07:45.712373
2020-12-03T22:04:31
2020-12-03T22:04:31
189,397,679
1
0
MIT
2022-11-22T04:40:27
2019-05-30T10:56:10
Python
UTF-8
Python
false
false
1,832
py
from rest_framework.test import APITestCase from store.models import Product class ProductCreateTestCase(APITestCase): def test_create_product(self): initial_product_count = Product.objects.count() product_attrs = { 'name': 'New Product', 'description': 'Awesome product', ...
[ "phiratio161@gmail.com" ]
phiratio161@gmail.com
b6436774d1882ab0940596e4a817712a52d8abcd
5e91bdf03ff63f101fc60ace00463d3350e6c21c
/lib/processors.py
3b43ed855591e5e9ed89afe9908d01ebdba6ea19
[ "BSD-3-Clause" ]
permissive
frkay/compression-test
3adb645643c0a02c7e11ece9413a1f6249f12686
49185fe9c302c18734dad0ff4887802152cd95bf
refs/heads/master
2021-01-18T08:28:24.440836
2013-01-25T01:34:35
2013-01-25T01:34:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,598
py
#!/usr/bin/env python from collections import defaultdict from copy import copy from importlib import import_module import os import sys # pylint: disable=W0311 class Processors(object): """ Contains the candidate processors that we want to compare. """ module_dir = "compressor" def __init__(self, option...
[ "mnot@mnot.net" ]
mnot@mnot.net
b586fd7a1f383dad2ec0742dffc9914c39b312cf
23930efd5dc32e0959e916ce5aa5acd9cf5df147
/ecoc/MonteCarlo/mc2p_1/mc2p_1_11.py
2fff9b07d0ff67aebc66d2d224d7a9608e884f97
[]
no_license
LiYan1988/ProbabilisticModel
4c3778aa93bf71d6e248035a2a67445879e8ad6e
4d9a11eb1f399323a00949be0796b857feca14fa
refs/heads/master
2021-01-21T12:11:57.134088
2017-06-14T20:52:36
2017-06-14T20:52:36
81,770,785
1
0
null
null
null
null
UTF-8
Python
false
false
598
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Apr 7 09:14:36 2017 @author: li """ from solve_MILP import * import os os.chdir('/scratch/ly6j/backup/probabilisticModel/mc2p_1') kwargs = {'mipfocus': 1, 'symmetry': 1, 'threads': 4, 'timelimit': 1200, 'presolve': 2, 'heuristics': 0.55} Ii_hint = [...
[ "li.yan.ly414@gmail.com" ]
li.yan.ly414@gmail.com
cd197ccdf2cf11ee1fbd3d438e92db4d65c6ddda
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/volume/caps/y/_fill.py
ab34861252a95cbf68b0e9d373aecfb7d2b96efb
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
469
py
import _plotly_utils.basevalidators class FillValidator(_plotly_utils.basevalidators.NumberValidator): def __init__(self, plotly_name="fill", parent_name="volume.caps.y", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, e...
[ "noreply@github.com" ]
hugovk.noreply@github.com
c5fbc2e7dcf954721b39195806c383ace17ee76f
22fe6ed51715486ebbc09e404504ed4d7a28c37d
/python-katas/EdabReverseLst.py
dccf18e9bdc92a5c02ed637f686670978d16eef2
[]
no_license
Jethet/Practice-more
1dd3ff19dcb3342a543ea1553a1a6fb0264b9c38
8488a679730e3406329ef30b4f438d41dd3167d6
refs/heads/master
2023-01-28T14:51:39.283741
2023-01-06T10:14:41
2023-01-06T10:14:41
160,946,017
1
1
null
null
null
null
UTF-8
Python
false
false
207
py
# Write a function to reverse a list. def reverse(lst): return lst[::-1] print(reverse([1, 2, 3, 4])) #➞ [4, 3, 2, 1] print(reverse([9, 9, 2, 3, 4])) #➞ [4, 3, 2, 9, 9] print(reverse([])) #➞ []
[ "henriette.hettinga@gmail.com" ]
henriette.hettinga@gmail.com
8fdb48483b20906a7daa113cc024d5973b600401
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_233/ch83_2020_04_22_11_04_53_464001.py
63f3d097f7722e358eb5ae7ee9fb5173eed03dd6
[]
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
526
py
def medias_por_inicial(notas): medias = {} alunos_por_inicial = {} for nome in notas.keys(): inicial = nome[0] if inicial not in medias.keys(): medias[inicial] = notas[nome] alunos_por_inicial[inicial] = 1 else: ...
[ "you@example.com" ]
you@example.com
01e98f8c2af803c513e1e2dfc6304b82ed15cc8f
183e4126b2fdb9c4276a504ff3ace42f4fbcdb16
/I семестр/Програмування (Python)/Лабораторні/Лисенко 6116/Python/Лабораторна 5/Завдання.py
e0cddb38b73fd682715e0641a1ef8250cc04e7bb
[]
no_license
Computer-engineering-FICT/Computer-engineering-FICT
ab625e2ca421af8bcaff74f0d37ac1f7d363f203
80b64b43d2254e15338060aa4a6d946e8bd43424
refs/heads/master
2023-08-10T08:02:34.873229
2019-06-22T22:06:19
2019-06-22T22:06:19
193,206,403
3
0
null
2023-07-22T09:01:05
2019-06-22T07:41:22
HTML
UTF-8
Python
false
false
1,258
py
d = {'Київ': 2908088, 'Москва': 12197596, 'Париж': 2243833, 'Вашингтон': 601723, 'Токіо': 13185502, 'Афіни': 664046} min_num, max_num = input('Введіть мінімальну кількісь жителів: '), input('та максимальну: ') if min_num != "" != max_num: if min_num.isdigit() and max_num.isdigit(): min_num, max_num = i...
[ "mazanyan027@gmail.com" ]
mazanyan027@gmail.com
185701c63ea25a9a3fe9b5208b5cb34979998f5b
1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2
/lab/lab06/tests/q1_8.py
6e0714ed54d379ff3685d75575311282d166d713
[]
no_license
taylorgibson/ma4110-fa21
201af7a044fd7d99140c68c48817306c18479610
a306e1b6e7516def7de968781f6c8c21deebeaf5
refs/heads/main
2023-09-05T21:31:44.259079
2021-11-18T17:42:15
2021-11-18T17:42:15
395,439,687
0
1
null
null
null
null
UTF-8
Python
false
false
508
py
test = { 'name': 'q1_8', 'points': None, 'suites': [ { 'cases': [ {'code': '>>> type(simulation_and_statistic(.5, model_proportions)) == float\nTrue', 'hidden': False, 'locked': False}, {'code': '>>> 0 <= simulation_and_statistic(.5, model_proportions) <= 25\nTrue', 'h...
[ "taylorgibson@gmail.com" ]
taylorgibson@gmail.com
f49e7bccdb3a5a086f23b2019d4c3c4db390ba89
36957a9ce540846d08f151b6a2c2d582cff1df47
/VR/Python/Python36/Lib/test/test_longexp.py
ddf0ce819b366bec1421782184cea6747bef3671
[]
no_license
aqp1234/gitVR
60fc952307ef413e396d31e0d136faffe087ed2b
e70bd82c451943c2966b8ad1bee620a0ee1080d2
refs/heads/master
2022-12-29T15:30:12.540947
2020-10-07T15:26:32
2020-10-07T15:26:32
290,163,043
0
1
null
2020-08-25T09:15:40
2020-08-25T08:47:36
C#
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:0c6674ff951062a7567a3b2cf1b5434c443040bb2e75254aab689fa55f16043c size 243
[ "aqp1234@naver.com" ]
aqp1234@naver.com
fba232cfc312730f84819a63e4732abb4246bc25
a9868b17ddc5f7f28911c57870e327238a2432d8
/python_Pandas_Numpy/Pandas/Pandas05_16_GroupbyChk02year_최윤종.py
6fa5fca86687e364f586cdbf1a367b6f47e8036a
[]
no_license
ChoiYoonJong/DataScience
439568a668307ed0cab0cffb688fd832b10047ab
3cab98eacecd8c1782e6f91b2b7ffa0ecefe4ed1
refs/heads/main
2023-06-07T02:56:08.335411
2021-07-09T13:23:58
2021-07-09T13:23:58
378,833,127
0
0
null
null
null
null
UTF-8
Python
false
false
514
py
# coding: utf-8 # In[4]: import pandas # In[5]: df = pandas.read_csv('../data/gapminder.tsv', sep='\t') # In[6]: print(df.groupby('year')['lifeExp'].mean()) # In[9]: df['year'].unique() # In[10]: uniList = df['year'].unique() print(type(uniList)) print(uniList,"\n====>") # In[11]: for idx in uni...
[ "noreply@github.com" ]
ChoiYoonJong.noreply@github.com
47e8dc654006635a6126a4703d0ce6a961458a72
ffed7b18b2c06e807f8fa8b2c685ffcb7f3d578a
/rlgraph/components/policies/shared_value_function_policy.py
73bbe372f5274f3a99d63359c6d7b25a7192d2a6
[ "Apache-2.0" ]
permissive
theSoenke/rlgraph
869eecba1bf4b1a4bd4f1b9a8d8a479377125a11
a5ebf55820bce2d02dff22bb6db6247699fd6740
refs/heads/master
2020-05-02T16:31:23.346165
2019-04-02T10:13:02
2019-04-02T10:13:02
178,071,154
0
0
Apache-2.0
2019-03-27T20:39:15
2019-03-27T20:39:14
null
UTF-8
Python
false
false
6,257
py
# Copyright 2018/2019 The Rlgraph Authors, All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
[ "svenmika1977@gmail.com" ]
svenmika1977@gmail.com
bf604da1d82d6bf059b6ed721319632c33211563
9036bd26d8fdd28c4fb518ed8eebb8688d85ed09
/CursoEmVídeo/Mundo 2/Laços/tabuada.py
899ac4cc3da2bc2c38445d766d4188f2503cc0c4
[]
no_license
ijockeroficial/Python
efb7fffda4f32b030475023f337236695a854b23
918feb42dd592a18f1b29d4565baf43f4fed4efb
refs/heads/master
2023-08-16T22:38:35.275739
2023-08-14T15:35:54
2023-08-14T15:35:54
273,336,538
0
0
null
null
null
null
UTF-8
Python
false
false
506
py
numero = int(input("Digite um número: ")) #Dessa forma aqui teria que fazer vários IF's.. ''' for x in range(1, 10): if numero == 1: print("{} x {} = {}".format(numero, x, (x * numero))) elif numero == 2: print("{} x {} = {}".format(numero, x, (x * numero))) ''' #Aqui já ficou mais simples e o c...
[ "ijockeroficial@gmail.com" ]
ijockeroficial@gmail.com
7b8d8b9855a7e10f8a965142905a97a3ff65c5b9
287c663c97e7840239794fbe84ce285773b72985
/app/__init__.py
b73bce305c9b0d621fc9e9c4863d0c029abaf881
[ "MIT" ]
permissive
mzazakeith/flask-blog
ea8e5b2da9a581eb026564c1b9e500fa0532ee88
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
refs/heads/master
2020-03-21T21:24:57.296282
2018-07-02T20:20:24
2018-07-02T20:20:24
139,062,052
0
0
null
null
null
null
UTF-8
Python
false
false
1,213
py
from flask import Flask from flask_bootstrap import Bootstrap from flask_mail import Mail from config import config_options from flask_sqlalchemy import SQLAlchemy from flask_login import LoginManager # Instances of flask extensions # Instance of LoginManger and using its methods login_manager = LoginManager() login_...
[ "mzazakeith@gmail.com" ]
mzazakeith@gmail.com
5a609ad0ab93e8fb87b9beda95e474f16f19c877
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/domain/AlipayEcoLogisticsExpressPriceModifyModel.py
374a7c32772d79071206b49960b2d8a694aaf9ff
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
5,456
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayEcoLogisticsExpressPriceModifyModel(object): def __init__(self): self._area_type = None self._extra_weight_price = None self._extra_weight_unit = None self._...
[ "liuqun.lq@alibaba-inc.com" ]
liuqun.lq@alibaba-inc.com
695e788e5edef7d686c40c61f68a223e8d259b4e
b9a2daa725e1548c074fbf7b68a0926ddba3d43d
/venv/Scripts/django-admin.py
b7256d4e49ad4dc9845c803e7d75fc0480f397c6
[]
no_license
aris-osorio/dolly-api
87ba03d945bd745b6d396f15af271d21c4180b9a
fb702451393e7d550ea98ac889ba854f9be83146
refs/heads/main
2023-03-29T11:10:11.883987
2021-04-08T20:48:08
2021-04-08T20:48:08
356,044,745
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
#!c:\users\dell\documents\academlo\django\dolly_api\venv\scripts\python.exe # When the django-admin.py deprecation ends, remove this script. import warnings from django.core import management try: from django.utils.deprecation import RemovedInDjango40Warning except ImportError: raise ImportError( 'dja...
[ "aris.osorio@alumnos.udg.mx" ]
aris.osorio@alumnos.udg.mx
e1be58ed2fa525e8eba89fbd2e62bf9e1a1c90c1
40be08bbfed4bd6a951c18cc4bc0bf1f00e7e8a6
/test/old/Old2/modules/Modules_Callextlib.py
8a87d7d61556f0d8917d83ec68d2d949690068e0
[ "BSD-3-Clause" ]
permissive
pulsar-chem/Pulsar-Core
5bf4239c0a0de74d3f12a1c8b9bea2867fd8960c
f8e64e04fdb01947708f098e833600c459c2ff0e
refs/heads/master
2021-01-18T06:51:05.905464
2017-06-04T02:31:44
2017-06-04T02:31:44
46,251,809
0
2
null
2017-05-25T14:59:51
2015-11-16T04:21:59
C++
UTF-8
Python
false
false
1,093
py
#!/usr/bin/env python3 import os import sys import argparse import traceback # Add the pulsar path thispath = os.path.dirname(os.path.realpath(__file__)) psrpath = os.path.join(os.path.dirname(thispath), "../", "modules") sys.path.insert(0, psrpath) import pulsar as psr def Run(mm): try: out = psr.outp...
[ "ben@bennyp.org" ]
ben@bennyp.org
229049a938f96cb2b4dff2a9e4190690a45593e1
6c3ef00dfa8a97bb116d6d1601e881b5e1803019
/PythonLeet/CutOffTreesGolf/cutofftrees.py
bf49968f1231267d0b1fa0a2bf7c8f677e46ce2e
[]
no_license
kedarpujara/LeetCode
184b39062ff57d1d429baac75c8641f87e7d6795
91becd9a31b53026922ae3dfc203132abc148d2c
refs/heads/master
2020-03-08T16:54:14.292400
2018-10-15T00:59:36
2018-10-15T00:59:36
128,254,014
0
0
null
null
null
null
UTF-8
Python
false
false
925
py
def cutoff(forest): visited = [[False for y in range(len(forest))] for x in range(len(forest[0]))] print visited canVisit = True i = 0 j = 0 while canVisit: if visited[i][j] == False: visited[i][j] = True else: #skip to another one #for tree in forest: def get_min(i,j,forest): val1 = val2 = val3 ...
[ "kedarpujara@gmail.com" ]
kedarpujara@gmail.com
d9243182c5a162fedbd6a91c11d609744da8c83b
3dd1cccf1a310b6b5f4d046fe680c5ad935833e6
/tests/color_kd_test.py
8b2604b1315b9e5ade03ab34f14f43eb1c82735f
[ "MIT" ]
permissive
nacleric/babi
4660a89ef5d35c53204447330bdd8f770323286d
f1ce6d995bf3859459c5dda1d2188b6992434d30
refs/heads/master
2022-05-06T19:02:14.180669
2022-04-03T03:21:44
2022-04-03T03:21:44
218,426,293
0
0
MIT
2019-10-30T02:26:28
2019-10-30T02:26:27
null
UTF-8
Python
false
false
1,844
py
from __future__ import annotations from babi import color_kd from babi.color import Color def test_build_trivial(): assert color_kd._build([]) is None def test_build_single_node(): kd = color_kd._build([(Color(0, 0, 0), 255)]) assert kd == color_kd._KD(Color(0, 0, 0), 255, left=None, right=None) def ...
[ "asottile@umich.edu" ]
asottile@umich.edu
0fcd71de50d72bae25ef638ec74f61bc7b256654
7d79d7338b955956e6f576945bc12c0cea66aab4
/config/settings.py
2a2532e3632107d1772811574989dd1679428ae9
[]
no_license
parkhongbeen/Django
741280e59b00f58968e126b8873d535c3ba4e09e
8fc55c2decfdaaf5d3acbdb2e3b616a7118292fd
refs/heads/master
2022-09-19T22:53:25.615097
2019-12-17T06:18:59
2019-12-17T06:18:59
227,061,684
0
0
null
2022-08-23T17:58:29
2019-12-10T08:02:38
Jupyter Notebook
UTF-8
Python
false
false
3,751
py
""" Django settings for config project. Generated by 'django-admin startproject' using Django 2.2.4. 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 os # Bui...
[ "pack122@naver.com" ]
pack122@naver.com
c6e8a6480cbc2210c7ce1590286e24b9c832cf53
f88f900c0384f6da82eeb749371ad44115527700
/course-book/04-basic-comp/0407-select-roi.py
bd8ce06f7c5ac2be728ee7d908531913e7d19749
[]
no_license
aaron-kr/learning-opencv
eff382e8f0c822400f765451d57b192a63cd1b74
158239f0140569aec519fc1fbf255c54ef2567d2
refs/heads/main
2023-08-21T11:02:49.775425
2021-10-27T00:04:01
2021-10-27T00:04:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
288
py
# 0407.py import cv2 import numpy as np src = cv2.imread('../../img/spirit-week.jpg', cv2.IMREAD_GRAYSCALE) roi = cv2.selectROI(src) print('roi = ', roi) img = src[roi[1]:roi[1] + roi[3], roi[0]:roi[0] + roi[2]] cv2.imshow('img', img) cv2.waitKey() cv2.destroyAllWindows()
[ "jekkilekki@gmail.com" ]
jekkilekki@gmail.com
5a3237ceffbadd3c1ef8e2d5eecef4318d240e48
4771d5aa867ed64a08440b1be21936e893edcf77
/basics/graph.py
5ade622bf1205022c7ca9cb9bff8ed433e0fe264
[]
no_license
dipu-bd/tensorflow-practice
58aca6cae6bbeca588b7af52bf944ff8d6d7c99a
53e2e08dc93691c71ffb003251781ae541a4e236
refs/heads/master
2021-01-24T08:47:28.904901
2017-06-17T00:38:22
2017-06-17T00:38:22
93,395,622
2
0
null
null
null
null
UTF-8
Python
false
false
369
py
import tensorflow as tf a = tf.placeholder(tf.float32, name='a') b = tf.placeholder(tf.float32, name='b') x = tf.add(a, b, name='add_a_b') y = tf.multiply(a, b, name='mul_a_b') z = tf.add(x, y, name='add_x_y') sess = tf.Session() writer = tf.summary.FileWriter('.bin', sess.graph) res = sess.run(z, {a: 3, b: 5}) prin...
[ "dipu.sudipta@gmail.com" ]
dipu.sudipta@gmail.com
a33c48a536e05e1895c3add7bef566c6bc2632f0
e174e13114fe96ad2a4eeb596a3d1c564ae212a8
/Python for Finance Analyze Big Financial Data by Y. Hilpisch/Code of Python For Finance/4375OS_05_Code/4375OS_05_05_del_math_module.py
9056dae909499864ac1f688e45a4de3b926fa082
[]
no_license
Kevinqian0501/python_books
c1a7632d66dceb46db439f7cbed86d85370aab42
0691e4685af03a296aafb02447e3585db55ce461
refs/heads/master
2021-08-30T19:27:03.985464
2017-12-19T05:56:31
2017-12-19T05:56:31
104,145,012
1
0
null
null
null
null
UTF-8
Python
false
false
344
py
""" Name : 4375OS_05_05_del_math_module.py Book : Python for Finance Publisher: Packt Publishing Ltd. Author : Yuxing Yan Date : 12/26/2013 email : yany@canisius.edu paulyxy@hotmail.com """ import math print math.sqrt(3) del math print math.sqrt(3) # you will ...
[ "kevin@Qians-MacBook-Pro.local" ]
kevin@Qians-MacBook-Pro.local
d6cf92587b738328eb4b7ee0bc50090f9f79f85a
a9e3f3ad54ade49c19973707d2beb49f64490efd
/Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/cms/djangoapps/contentstore/management/commands/xlint.py
655a2af01ee7b30c7a3401aaead12c4eecde2125
[ "AGPL-3.0-only", "AGPL-3.0-or-later", "MIT" ]
permissive
luque/better-ways-of-thinking-about-software
8c3dda94e119f0f96edbfe5ba60ca6ec3f5f625d
5809eaca7079a15ee56b0b7fcfea425337046c97
refs/heads/master
2021-11-24T15:10:09.785252
2021-11-22T12:14:34
2021-11-22T12:14:34
163,850,454
3
1
MIT
2021-11-22T12:12:31
2019-01-02T14:21:30
JavaScript
UTF-8
Python
false
false
995
py
""" Verify the structure of courseware as to it's suitability for import """ from argparse import REMAINDER from django.core.management.base import BaseCommand from xmodule.modulestore.xml_importer import perform_xlint class Command(BaseCommand): """Verify the structure of courseware as to its suitability for...
[ "rafael.luque@osoco.es" ]
rafael.luque@osoco.es
b7122f570a1c4af04759b91bb9965d0f21c201c5
03e3138f99f275d15d41a5c5bfb212f85d64d02e
/source/res/scripts/common/Lib/distutils/spawn.py
28afad9b9a8bce41e1d3090f898b6a61b07fa537
[]
no_license
TrenSeP/WorldOfTanks-Decompiled
e428728e7901146d0b599d02c930d70532232a97
1faa748acec1b7e435b657fd054ecba23dd72778
refs/heads/1.4.1
2020-04-27T08:07:49.813023
2019-03-05T17:37:06
2019-03-05T17:37:06
174,159,837
1
0
null
2019-03-06T14:33:33
2019-03-06T14:24:36
Python
UTF-8
Python
false
false
5,826
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/common/Lib/distutils/spawn.py __revision__ = '$Id$' import sys import os from distutils.errors import DistutilsPlatformError, DistutilsExecError from distutils.debug import DEBUG from distutils import log def spawn(cmd, search_path=1, ver...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
b5df1bb110f24dcfa227db63c8e25ff08fa4b21d
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/59/usersdata/231/58969/submittedfiles/testes.py
d8dd148abe96655ed59b2a5c1cca1a842280b264
[]
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
330
py
# -*- coding: utf-8 -*- def vampiro(a): for i in range(0,len(a),1): if a[i]>(a[i]+1): return True else: return False b=[] n=2 for i in range(0,n,1): valor=int(input('vv:')) b.append(valor) if vampiro(b): print('s') else: print('n') ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
cdb32dcef51d89421546886b3875f86dfdae967a
96cfaaa771c2d83fc0729d8c65c4d4707235531a
/SUSYBSMAnalysis/CSA07Skims/python/lepSUSY_1Muon_0Elec_1Jets_MET_Path_cff.py
52a2fd2481201402ef2a4b3a3e331993d9219edb
[]
no_license
khotilov/cmssw
a22a160023c7ce0e4d59d15ef1f1532d7227a586
7636f72278ee0796d0203ac113b492b39da33528
refs/heads/master
2021-01-15T18:51:30.061124
2013-04-20T17:18:07
2013-04-20T17:18:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
import FWCore.ParameterSet.Config as cms from SUSYBSMAnalysis.CSA07Skims.lepSUSY_1Muon_0Elec_1Jets_MET_Skim_cfi import * lepSUSY_1Muon_0Elec_1Jets_MET = cms.Path(lepSUSY_1Muon_0Elec_1Jets_MET_Seq)
[ "sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch" ]
sha1-197b93d87bf2e1eb4349df76c6ec25fd8f1f348e@cern.ch
4a677b33daf3f7b8fd76b3bdd4aa9e33dfc202a6
f707303e4dfe383cf82c23a6bb42ccfdc4cfdb67
/pandas-ml-utils-tf/pandas_ml_utils_tf/tf_nn.py
cd941f8f97c2c6ecfc635ef7ee7074c3ac42cd11
[ "MIT" ]
permissive
jcoffi/pandas-ml-quant
1830ec256f8c09c04f1aa77e2eecfba07d34fe68
650a8e8f77bc4d71136518d1c7ee65c194a99cf0
refs/heads/master
2023-08-31T06:45:38.060737
2021-09-09T04:44:35
2021-09-09T04:44:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,005
py
from abc import abstractmethod from typing import List, Union, Callable import tensorflow as tf from keras import Model from tensorflow.python.ops.variables import VariableMetaclass from tensorflow.python.training.tracking import base as trackable class TensorflowNN(object): # we will later explicitly wrap this...
[ "kic@kic.kic" ]
kic@kic.kic
2b189526a687e705a9f01645fe58d4eb4c20c3dd
2701fe5c6a1c612f08b39119bdd833388eba248e
/examples/00-load/create-unstructured-surface.py
42cbba74b93c892dda8d32535176211827864d03
[ "MIT" ]
permissive
pinshuai/pyvista
eab3a43a7ff0e07c82d1d03f35be1524f83355fc
131d780a6eadcbe051e2af2e1637433424319792
refs/heads/master
2020-06-24T19:49:53.093264
2019-07-30T22:50:48
2019-07-30T22:50:48
199,065,857
0
0
MIT
2019-07-26T18:51:44
2019-07-26T18:51:44
null
UTF-8
Python
false
false
1,650
py
""" .. _ref_create_unstructured: Creating an Unstructured Surface ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Create an irregular, unstructured grid from NumPy arrays """ import pyvista as pv import vtk import numpy as np ############################################################################### # An unstructured grid ca...
[ "banesullivan@gmail.com" ]
banesullivan@gmail.com
d5e3c66f74c67a4bacb931a51ca8a34d93dee778
3700bab3cd5042401d7e1994beaeeb2e754418c8
/tests/test.py
dd8f97f1087f7b7702d92f9e631c320a33407c62
[]
no_license
marcwebbie/gitutoring
c536f4c712c5071674cb34a9902889c69210c369
e19822a1be707bf0df39d4984d5d5385561c8346
refs/heads/master
2020-04-09T16:51:12.420916
2015-02-13T15:05:03
2015-02-13T15:05:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
import unittest class Tests(unittest.TestCase): def test_equals(self): self.assertEqual(1, 1) if __name__ == "__main__": unittest.main()
[ "marcwebbie@gmail.com" ]
marcwebbie@gmail.com
2ecc2e7c4ea151e9610f4e014c3d0c5552911b11
12a42054b156383ebbe3ccc5de4150633c66da5d
/problems/reverse-string/solution.py
babfb9c48e6d23aec4d29acd74c407db33e2306d
[]
no_license
cfoust/leetcode-problems
93c33029f74f32c64caf8294292226d199d6e272
f5ad7866906d0a2cf2250e5972ce910bf35ce526
refs/heads/master
2020-03-16T23:05:45.123781
2018-05-11T16:41:09
2018-05-11T16:41:09
133,064,772
1
1
null
null
null
null
UTF-8
Python
false
false
135
py
class Solution: def reverseString(self, s): """ :type s: str :rtype: str """ """
[ "cfoust@sqweebloid.com" ]
cfoust@sqweebloid.com
ed47648682d8b2f8a6e38f5e7be0c10073d25ad8
1df4920c911b18e8d445375442c3c4023dffcc5e
/securityvaluator/dcf_calculator/migrations/0007_auto_20200713_1226.py
e788f881102416cee0102502378eab4a42a9e57d
[]
no_license
sebkeil/SecurityValuator
0dcfc6af3acc88f47f0c06116de6232909949148
332e1e42ebd79b6892d9706c6a8739276308bcb6
refs/heads/master
2022-12-06T03:58:04.344769
2020-08-30T12:09:54
2020-08-30T12:09:54
276,162,143
0
0
null
null
null
null
UTF-8
Python
false
false
788
py
# Generated by Django 3.0.7 on 2020-07-13 10:26 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dcf_calculator', '0006_auto_20200713_1222'), ] operations = [ migrations.AlterField( model_name='enterprise', ...
[ "basti.keil@hotmail.de" ]
basti.keil@hotmail.de
be675416e62e50643e048386160971d3cea63073
a533010ba7e74422c5c7c0193ea2d880e427cb9d
/Python_auto_operation/project/fabric/demo3.py
226da2675215a0a715682dd96c5b0dc473fe8786
[]
no_license
gateray/learning_python
727b3effe4875f27c86c3e5e66655905f3d5d681
bc08a58f3a5c1f1db884398efa9d27834514199f
refs/heads/master
2021-01-19T06:31:01.616421
2016-06-30T07:39:23
2016-06-30T07:39:23
62,290,273
0
0
null
null
null
null
UTF-8
Python
false
false
284
py
#!/usr/bin/env python # coding: utf-8 from fabric.api import * env.hosts = ["192.168.10.31",] env.user = "vagrant" env.password = "vagrant" @task def hello(): with settings(warn_only=True): rs = local("grep -c '^fuck' /etc/group || /bin/true") print(rs.stdout)
[ "gateray.example.com" ]
gateray.example.com
8e1625c024a45144ae62553096d9c7519a159d0c
ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1
/res/packages/scripts/scripts/common/arena_achievements.py
cd349250c4f78ed36aafcfc5857179d805c953f1
[]
no_license
webiumsk/WOT-0.9.20.0
de3d7441c5d442f085c47a89fa58a83f1cd783f2
811cb4e1bca271372a1d837a268b6e0e915368bc
refs/heads/master
2021-01-20T22:11:45.505844
2017-08-29T20:11:38
2017-08-29T20:11:38
101,803,045
0
1
null
null
null
null
WINDOWS-1250
Python
false
false
7,052
py
# 2017.08.29 21:52:23 Střední Evropa (letní čas) # Embedded file name: scripts/common/arena_achievements.py from dossiers2.custom.records import RECORD_DB_IDS from arena_bonus_type_caps import ARENA_BONUS_TYPE_CAPS as BONUS_CAPS ACHIEVEMENTS = ('warrior', 'invader', 'sniper', 'sniper2', 'mainGun', 'defender', 'steelwal...
[ "info@webium.sk" ]
info@webium.sk
f6d07372b5ed3cb9a938c15924c6216a4cb21aaf
0ad2458c85ce545b1d3a4b75dabe2c94ed8c2518
/supervised_learning/0x06-keras/3-one_hot.py
dc94f663cdf66ed4f5bb778f3bb186f090a3c69c
[]
no_license
felipeserna/holbertonschool-machine_learning
fc82eda9ee4cb8765ad0ffb5fa923407b200480d
161e33b23d398d7d01ad0d7740b78dda3f27e787
refs/heads/master
2023-07-06T20:26:12.892875
2021-08-17T17:03:30
2021-08-17T17:03:30
317,288,341
0
1
null
null
null
null
UTF-8
Python
false
false
349
py
#!/usr/bin/env python3 """ Converts a label vector into a one-hot matrix """ import tensorflow.keras as K def one_hot(labels, classes=None): """ - The last dimension of the one-hot matrix must be the number of classes - Returns: the one-hot matrix """ oh_matrix = K.utils.to_categorical(labels, c...
[ "feserna86@gmail.com" ]
feserna86@gmail.com
e4bc81179549efc87d977cdf68ac60e73d92cfc3
00c7bd96f1afab807746f1f7f013d4aadc5f6a6e
/sakura/client/apiobject/dataflows.py
8546cc0d35f83779ab969d2b3a8a89d4d9453447
[]
no_license
sakura-team/sakura
350ae27bdf5c3e7c338c04ec33fb50f4cdc7bfb4
306bfe82ffd6b204b0b574bb7f75b35712a3202f
refs/heads/master
2021-06-02T01:30:14.294572
2021-03-04T10:16:44
2021-03-04T10:16:44
61,307,818
2
1
null
null
null
null
UTF-8
Python
false
false
4,014
py
from sakura.common.errors import APIObjectDeniedError from sakura.client.apiobject.operators import APIOperator from sakura.client.apiobject.links import APILink from sakura.client.apiobject.base import APIObjectBase, APIObjectRegistryClass from sakura.client.apiobject.grants import APIGrants from sakura.common.streams...
[ "etienne.duble@imag.fr" ]
etienne.duble@imag.fr
33323f29d8530c52afed35824ef41977df17722d
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Generators/MadGraphModels/python/models/lrsm_1_3_2_UFO/lorentz.py
ae8a6198eaa90e43a5839f0ef5711ff412d031ad
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
2,567
py
# This file was automatically created by FeynRules 2.1 # Mathematica version: 8.0 for Mac OS X x86 (64-bit) (November 6, 2010) # Date: Tue 2 Dec 2014 07:52:51 from object_library import all_lorentz, Lorentz from function_library import complexconjugate, re, im, csc, sec, acsc, asec, cot try: import form_factors a...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
c263944a2b99249aa586642cfa89802c5834cf23
8d5fa94541b9672366da110fef6e0fa582e61928
/setup.py
3aa8feec7f6ee8b708cf0edc85f4f65606b94979
[]
no_license
CxAalto/databinner
99bcd1a57134a65ae060801e9febd9469a4c3f89
f83e14cfb2e70d6543b7d5282abf4cf4dd43a6d7
refs/heads/master
2020-07-04T14:55:31.399244
2019-08-14T11:34:59
2019-08-14T11:37:31
202,317,905
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="databinner", version="0.0.1", author="Example Author", author_email="author@example.com", description="Powerful correct binner for data", long_description=long_description, long_de...
[ "rkd@zgib.net" ]
rkd@zgib.net
ebfc125778f8db33c3cfbbe6c0f8df5490125943
34b09bc83e5726fccb524a93cf2742f5aeadedef
/Baekjoon/Greedy Algorithm/1931_test.py
3d033d82ed322486edb699f104ca47352ab38d4d
[]
no_license
mjson1954/WIC
57eb20ffe7aaf8695d679c893efacdeede573e72
670112209aacd274d09f6e9a89d948120486bfc8
refs/heads/master
2023-03-20T00:57:19.740025
2021-03-05T10:52:51
2021-03-05T10:52:51
289,925,829
0
0
null
2021-02-21T02:16:11
2020-08-24T12:46:58
Python
UTF-8
Python
false
false
719
py
N=int(input()) meetingInfo=[] time=[] for _ in range(N): start, end=map(int, input().split()) meetingInfo.append((start, end)) meetingInfo.sort(key=lambda element:element[1]) print(meetingInfo) meetingPlan=[] i=len(meetingInfo)-1 for s in range(len(meetingInfo)): if(s>0 and meetingInfo[i][1]>=x): i-...
[ "mjson1954@gmail.com" ]
mjson1954@gmail.com
c5b021c3e05aa3f6c32ae4d29352136f2aaf7939
c27862cc24513c1d1c221e07c261b9fe65a37f54
/class_test/Class__super.py
350312fc71bd840689e647c45a49521d235eaecd
[]
no_license
MannixZ/Mannix
ac62ef29c1dcbb513b121ad9d42db851103884fc
7b86d0a619e0d6e3eecb94331ee60d89542b99f2
refs/heads/master
2020-05-26T13:27:24.979334
2019-05-23T14:10:47
2019-05-23T14:10:47
164,109,199
0
0
null
null
null
null
UTF-8
Python
false
false
722
py
class FooParent(object): def __init__(self): self.parent = 'i\'m the parent.' print('Parent') def bar(self, message): print("%s from Parent" % message) class FooChild(FooParent): def __init__(self): # super(FooChild,self) 首先找到FooChild 的父类(就是FooParent), 然后把类B的对象 Fo...
[ "noreply@github.com" ]
MannixZ.noreply@github.com
1f98df99da4c02307deb4632c05ad228c271d1d1
62c4aad9dbdf19f8aae548bc10b3549f627200a7
/code/tracks/tracks.py
dd7adb006b8d1c394142b47b5f6e9b9a83dc6b74
[]
no_license
RedVis55/Railnl
71052b452f19031c707bbb56eaa7bc7b6402a541
146800d6f51af06e1a1ae433a6c6e7242b9345f4
refs/heads/master
2021-08-30T01:10:54.142390
2017-12-15T13:47:00
2017-12-15T13:47:00
109,139,507
0
0
null
null
null
null
UTF-8
Python
false
false
3,477
py
def ndict(graph,all_nodes,dict,step): list=[] for x in dict[step]: for y in graph.graph[x]: if y not in all_nodes: list.append(y) all_nodes.append(y) dict[step+1]=list step += 1 return all_nodes,dict,step def pathcount(graph,node,nrange): dict={} all_nodes=[node] dict[0]=[node] step=0 f...
[ "you@example.com" ]
you@example.com
ba4d7fbdc7bba2a8bf4297b5dea97f3c05c0c774
a1ec2007ec1ef60a70e16a61398d987983f27b36
/ci/appveyor-download.py
8fe6b9f1b2123b5276cef313124468c196184391
[]
no_license
dohlee/prism
a982404f78b7469a6942fbff6f22295692c0bbb4
4aaf9aca7f59855112d72220166850681ddd745f
refs/heads/master
2021-06-30T10:01:21.444977
2021-06-22T14:26:22
2021-06-22T14:26:22
167,760,100
7
1
null
null
null
null
UTF-8
Python
false
false
3,816
py
#!/usr/bin/env python """ Use the AppVeyor API to download Windows artifacts. Taken from: https://bitbucket.org/ned/coveragepy/src/tip/ci/download_appveyor.py # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt """ f...
[ "apap950419@gmail.com" ]
apap950419@gmail.com
41229ed84b5892f2488ac610d6c66c31bf9f8354
47ea3cdb8e9b52fe465dbe16692a4672f48d305e
/IndexTags.py
dcc5320481a3f9db963fadb6071e2bab35b8f0f6
[]
no_license
venkatram64/mypython
273a3cf604164756a6e8822b9c7558390edc3b3c
88d1da892a753b02e4accb77d5abf890acb45b42
refs/heads/master
2020-06-04T18:58:31.551952
2019-08-19T17:00:18
2019-08-19T17:00:18
192,154,387
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
import csv from collections import deque import elasticsearch from elasticsearch import helpers def readMovies(): csvfile = open('movies.csv', 'r', encoding='utf8', errors='ignore') reader = csv.DictReader( csvfile ) titleLookup = {} for movie in reader: titleLookup[movie['movieId']] = m...
[ "venkat.veerareddy@hotmail.com" ]
venkat.veerareddy@hotmail.com
ab657bf9b3b2b1481da33fed2db02f6a05cf38a6
f8826a479f2b9d2f28993ceea7a7d0e3847aaf3d
/apps/backups/__init__.py
09ab7da2bd3ddc68a6279132c0dfadfc27c14858
[]
no_license
icomms/wqmanager
bec6792ada11af0ff55dc54fd9b9ba49242313b7
f683b363443e1c0be150656fd165e07a75693f55
refs/heads/master
2021-01-20T11:59:42.299351
2012-02-20T15:28:40
2012-02-20T15:28:40
2,154,449
1
1
null
null
null
null
UTF-8
Python
false
false
1,255
py
import logging from datetime import datetime, timedelta from django.http import HttpResponse from receiver.submitresponse import SubmitResponse SUCCESSFUL_BACKUP = "Successful backup" def backup_response(way_handled, additional_params): '''Return a custom http response associated the handling of the xfor...
[ "michael.champanis@gmail.com" ]
michael.champanis@gmail.com
0679ab4a0de0ba29595338edde182a939c1b9a86
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part009666.py
0f5125e70f78994d56b011c7629e1331512dae9e
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,296
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
[ "franz.bonazzi@gmail.com" ]
franz.bonazzi@gmail.com
0dcec8b7600039efd135080ff9be3d134d240dda
f5dbf8b9fc7a67167a966ad842999c5ec41d2363
/app/migrations/0113_auto_20160414_1046.py
7e29fee06a8521ce7f18781ed1dafdd24b045658
[]
no_license
super0605/cogofly-v1
324ead9a50eaeea370bf40e6f37ef1372b8990fe
dee0f5db693eb079718b23099992fba3acf3e2dd
refs/heads/master
2022-11-27T12:16:30.312089
2019-10-11T20:35:09
2019-10-11T20:35:09
214,522,983
0
0
null
2022-11-22T00:57:28
2019-10-11T20:25:01
JavaScript
UTF-8
Python
false
false
910
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0112_taggooglemapstraduit_tag_google_maps'), ] operations = [ migrations.RemoveField( model_name='taggoog...
[ "dream.dev1025@gmail.com" ]
dream.dev1025@gmail.com
dcae28ce5c5e009a79ff5e917a4afd7e9a86252c
ccc3aae73d0af165ff46ad746346266f3d3b28bc
/jupyter-u07157121/Quiz_Python_20190309.git/Quiz_9.py
c13d98b1245b00ac31acd1ea2065211cd02f0e12
[]
no_license
oilmcut2019/final-assign
bc016cf1d88d15772b47a80e9e9b65e15e3de599
c93cd80463deff2419e7b2e3fd049b318d88ef50
refs/heads/master
2020-07-09T06:24:32.932035
2019-08-23T12:52:08
2019-08-23T12:52:08
203,905,756
0
0
null
null
null
null
UTF-8
Python
false
false
525
py
#!/usr/bin/env python # coding: utf-8 # In[1]: a=int(input()) d=1 s=0 p=0 x=100 while x>0: a-=15 if a>0: s=1 p=a a-=30 if a>0: s=2 p=a a-=25 if a>0: p=a d+=1 s=3 else: ...
[ "07158031@o365.mcut.edu.tw" ]
07158031@o365.mcut.edu.tw
549fd71e29a07dae483b78501ac9f1c97cd43e1e
f8e8e365c9cf58b61d72655bc2340baeaed5baff
/Leetcode/Python Solutions/Hash Table/SortCharactersByFrequency.py
a86e42278e33144cbdaddda483d3d324a2596d51
[ "MIT" ]
permissive
Mostofa-Najmus-Sakib/Applied-Algorithm
39a69f6b9ed113efe4a420d19cad79e0aa317637
bc656fd655617407856e0ce45b68585fa81c5035
refs/heads/master
2023-08-31T19:54:34.242559
2021-11-05T03:43:35
2021-11-05T03:43:35
412,263,430
0
0
MIT
2021-09-30T23:45:29
2021-09-30T23:45:25
null
UTF-8
Python
false
false
1,133
py
""" LeetCode Problem: 451. Sort Characters By Frequency Link: https://leetcode.com/problems/sort-characters-by-frequency/ Language: Python Written by: Mostofa Adib Shakib Time Complexity: O(n log n) Space Complexity: O(h) """ class Solution: def frequencySort(self, s: str) -> str: if not s: ret...
[ "adibshakib@gmail.com" ]
adibshakib@gmail.com
80e2db2324d39078df59bfa6fd7f1ae3d6b280b4
66f34eb965ce69670a8b4bcdfcd0fb700b324a02
/r_utils.py
0679c1aefa973abcd448c41c8f4f039c8ba22c6c
[]
no_license
IanEisenberg/SR_dietary_decisions
2b25458712f0e717b6d86746575fab3ca2168d45
e4aa6a134c039e29fd486198846f229c45a4d5a5
refs/heads/master
2020-04-05T06:05:35.067171
2018-11-08T00:11:42
2018-11-08T00:11:42
156,625,328
0
0
null
null
null
null
UTF-8
Python
false
false
1,067
py
import numpy as np from rpy2.robjects import pandas2ri, Formula from rpy2.robjects.packages import importr pandas2ri.activate() def convert_to_dataframe(r_matrix): base = importr('base') df = pandas2ri.ri2py_dataframe(r_matrix) df.columns = base.colnames(r_matrix) df.index = base.rownames(r_matrix) ...
[ "ianeisenberg90@gmail.com" ]
ianeisenberg90@gmail.com
aeece47e30fc0dc5ed2675b4d1559187b51e5f33
a7f3524fe53bf7549683ccd7378074ba103a09f4
/python/SRMs/SRM 145/VendingMachine.py
787965d2bc09b6202e5ea9960ffd6a438d8778e4
[]
no_license
kazuhayase/study
7a16377d7c689a6e73fa7604a98ed002272ffa81
c233b30d6390f6cb8d77cf0f1c1b6a724259cdae
refs/heads/master
2023-08-21T18:11:35.508639
2023-08-20T08:54:33
2023-08-20T08:54:33
8,031,385
0
0
null
null
null
null
UTF-8
Python
false
false
4,761
py
# -*- coding: utf-8 -*- import math,string,itertools,fractions,heapq,collections,re,array,bisect class VendingMachine: def move(self, s,t,c): dist = abs(t-s) return min(dist, c-dist) def motorUse(self, prices, purchases): M = len(prices) shelf = [ list(map(int, prices[i]....
[ "kazuyoshi.hayase@jcom.home.ne.jp" ]
kazuyoshi.hayase@jcom.home.ne.jp
0a3f847105c7529e20fec0764f3863145ac5fed7
49b9d13946767efbb68d5c86a3f11ed2eb7665cf
/pyOCD/target/target_k64f.py
5a67a3abf40b17544e6304de923f928027f43c65
[ "Apache-2.0" ]
permissive
sg-/pyOCD
a8f1ea7dbdad769841286108212ca657b912b448
02d4ed1e8ff550d00071ed182e09b9a89cfbe9fa
refs/heads/master
2021-01-21T23:29:14.218140
2014-07-29T15:00:25
2014-07-29T15:00:25
19,388,535
2
0
null
null
null
null
UTF-8
Python
false
false
1,232
py
""" mbed CMSIS-DAP debugger Copyright (c) 2006-2013 ARM Limited 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 ...
[ "flit@me.com" ]
flit@me.com
a515fae962d71bf48c4c511b94d45ea3b46f0681
98effa51c2a50080d5fb59434f35e865446268ad
/andalous/models.py
5eea9df2420ee1ba08ab6be8ba222c66e2a5261f
[]
no_license
faresTerminal/andalous
a61dcf9cc04e96ed4ce0d2c6eb0b7046ba54ae17
86fc9efaadae3b85d361311f2abfb906b1682e64
refs/heads/master
2022-11-17T14:17:14.554094
2020-07-14T16:21:01
2020-07-14T16:21:01
279,620,556
1
0
null
null
null
null
UTF-8
Python
false
false
4,754
py
from django.db import models from django.shortcuts import reverse, Http404 from django.db import models from django.contrib.auth.models import User from django.contrib.postgres.fields import JSONField import hashlib from django.utils import timezone from django.template.defaultfilters import slugify from tinymce.mod...
[ "you@example.com" ]
you@example.com
3be85e0c39c42cfb57a3c3c2bd7e89f88dff7c2d
e38660ee26709b229b5a60adbb7c7f5cb7d690ac
/tests/acceptance/test_pushover.py
0aa5bfc95b6640d77be90c9c83b2898945b568d9
[ "Apache-2.0" ]
permissive
Mattlk13/sentry
7de81bc70a4731f081ec9414f049e89c7c4a9e92
0d94c56cfb7d8ffb6ce946fd090bfa7bde362eb2
refs/heads/master
2022-12-18T07:48:53.791499
2017-02-01T22:44:04
2017-02-01T22:44:04
81,067,165
0
0
Apache-2.0
2020-05-06T03:35:40
2017-02-06T08:54:02
Python
UTF-8
Python
false
false
1,103
py
from __future__ import absolute_import from sentry.testutils import AcceptanceTestCase class PushoverTest(AcceptanceTestCase): def setUp(self): super(PushoverTest, self).setUp() self.user = self.create_user('foo@example.com') self.org = self.create_organization( name='Rowdy Ti...
[ "noreply@github.com" ]
Mattlk13.noreply@github.com
707f33465f2b92aaa6f29218672df3ea88735bd0
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/fbs_0208+390/sdB_FBS_0208+390_lc.py
9595acfa7c35cecfdb852eaa64c041fda1a6d611
[]
no_license
tboudreaux/SummerSTScICode
73b2e5839b10c0bf733808f4316d34be91c5a3bd
4dd1ffbb09e0a599257d21872f9d62b5420028b0
refs/heads/master
2021-01-20T18:07:44.723496
2016-08-08T16:49:53
2016-08-08T16:49:53
65,221,159
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[32.881292,39.287139], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_FBS_0208+390 /sdB_FBS_0208+390_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) if __nam...
[ "thomas@boudreauxmail.com" ]
thomas@boudreauxmail.com
0b3a86fa58cba842cfdaa08d02edb18078fe0737
c2a4a2277844062390ffdf0d8908f4c98989541d
/kisti_condor/templates/create_ajob.py~
04bf3d7a66e9d67ad05d2c8313a1898af4a916f2
[]
no_license
soarnsoar/submission_scripts
0ca147a3b18b0e398e62ba182c35dcf23d9537ef
fc6bd53da075affbaf9ab1d9c559827a6afb0e2d
refs/heads/master
2020-04-20T23:53:44.558018
2019-05-13T14:22:21
2019-05-13T14:22:21
169,180,096
0
0
null
null
null
null
UTF-8
Python
false
false
1,772
#!/usr/bin/python #runshell=$1 #njob=$2 #inputtar=$3 ###To emulate "source" import argparse parser = argparse.ArgumentParser() ####Set options### parser.add_argument("--runshell", help="shell file to run") parser.add_argument("--inputtar", help="input file to pass") parser.add_argument("--njob", help=" number of jo...
[ "soarnsoar@gmail.com" ]
soarnsoar@gmail.com
ee4e0bda2007cbc69978b80a7b4e2616ffec426c
d2e69d4d3d1e11a87f5a377e4a423422fe0a7058
/numpy_code/07/three_d.py
ae81fcc09dc8ad45479bd4b60ae87b8fafb193a7
[]
no_license
oJacker/_python
6f30dd4a60c1593d27c00ac485163fc0ba77dd8c
8086d0cd78e156abfff9819a56384149dd431c56
refs/heads/master
2021-05-06T03:13:29.167281
2018-02-01T09:41:42
2018-02-01T09:41:42
114,827,084
1
0
null
null
null
null
UTF-8
Python
false
false
690
py
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np from matplotlib import cm fig = plt.figure() # (1) 我们需要使用3d关键字来指定图像的三维投影。 ax = fig.add_subplot(111, projection='3d') # (2) 我们将使用meshgrid函数创建一个二维的坐标网格。这将用于变量x和y的赋值。 u = np.linspace(-1, 1, 100) x, y = np.meshgrid(u, u) z = x ** 2 +...
[ "623657285@qq.com" ]
623657285@qq.com
a5566de5e6863b335b301322eff0ad3b0daf4834
fac98eb457e313f67d804945728ca2a5eef9d7d6
/devel/json/xoppy_calc_template.py
f961ce9158a3ffcec41e48aef1709291e63988ba
[ "BSD-2-Clause" ]
permissive
PaNOSC-ViNYL/XOPPY
4cc9490a59e547cc1a277f0ba44a4a47861651f7
97362c576af7ee90006de99e440e6ee9636977db
refs/heads/master
2020-05-05T02:29:54.475644
2019-04-07T21:27:56
2019-04-07T21:27:56
179,640,109
0
1
BSD-2-Clause
2019-04-05T12:42:29
2019-04-05T07:52:06
Python
UTF-8
Python
false
false
7,142
py
def xoppy_calc_black_body(TITLE="Thermal source: Planck distribution",TEMPERATURE=1200000.0,E_MIN=10.0,E_MAX=1000.0,NPOINTS=500): print("Inside xoppy_calc_black_body. ") return(None) def xoppy_calc_mlayer(MODE=0,SCAN=0,F12_FLAG=0,SUBSTRATE="Si",ODD_MATERIAL="Si",EVEN_MATERIAL="W",ENERGY=8050.0,THETA=0.0,S...
[ "srio@esrf.eu" ]
srio@esrf.eu
23cb75a768fa6e48650636a825adea015dddf154
9a40856164cbbf6c889f391c1a9edb4b9137e54b
/data_structures/python/dp/fib_hashtable.py
35cd57d3203cf1fe5dfd8e54fd79e36408724ff4
[ "MIT" ]
permissive
minicloudsky/leetcode_solutions
b77f08369c859a9d85c8ffa9f7125710b195c7b2
c9c1a87a61c2867bd1f7015f0ebc4acedde3a469
refs/heads/master
2023-03-30T15:27:57.031692
2021-04-06T13:42:29
2021-04-06T13:42:29
341,922,180
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
#!/usr/bin/env python # coding=utf-8 hash_table = {} def fibonacci(n): if n==1: return 1 if n==2: return 1 if hash_table.get(n): return hash_table.get(n) res = fibonacci(n-1) + fibonacci(n-2) hash_table[n] = res return res if __name__ == '__main__': n = 5 ...
[ "1397991131@qq.com" ]
1397991131@qq.com
0425144dbb0b99fc85b79d0208592fcf934bc6c4
ff67008e53abced81b3a167b289103863223a61c
/python_cook_book/class_and_object/8_定义一个接口或抽象类.py
bc0a9aa8a198c2cef1417e8067c499059bc13fe0
[]
no_license
w1131680660/tets
48695ea7a9dbb0bea783b5e44066ea039bfbe84f
9f409e325c86a897ad3209e6420a2c6f6287a0ab
refs/heads/master
2023-05-03T17:21:12.663817
2021-05-30T16:26:55
2021-05-30T16:26:55
369,422,445
0
0
null
null
null
null
UTF-8
Python
false
false
879
py
# 定义一个接口或抽象类,并且通过执行类型检查来确保子类实现了某些特定的方法 from abc import ABCMeta, abstractmethod class IStream(metaclass=ABCMeta): @abstractmethod def read(self,maxbytes =-1): pass @abstractmethod def write(self,data): pass # 抽象类的一个特点不能被直接实例化 # a = IStream() # 报错 # 抽象类的目的1 .就是让别的类继承它并实现特定的抽象方法: c...
[ "1131680660@qq.com" ]
1131680660@qq.com
b64d594379d1a6beb80b92f95720d76742b49597
8a432b7074e71264326bba2885c140097f9ad041
/itng/doc/source/conf1.py
838c7c38940df3c3b932a2e58508d906b4486690
[ "MIT" ]
permissive
ITNG/itng_toolbox
b11ce89845b7370cab18781216afdaa0de3555dc
8b2edd87d9011139ddd3baf0c9eada49388e3744
refs/heads/master
2022-12-29T19:39:51.113180
2020-09-30T09:17:00
2020-09-30T09:17:00
241,953,875
1
1
null
null
null
null
UTF-8
Python
false
false
2,745
py
# -*- coding: utf-8 -*- # # import os # import sys # sys.path.insert(0, os.path.abspath('.')) # -- Project information ----------------------------------------------------- project = 'Sphinx-Themes template' copyright = '2018, sphinx-themes.org' author = 'sphinx-themes.org' # The short X.Y version version = '' # Th...
[ "a.ziaeemehr@gmail.com" ]
a.ziaeemehr@gmail.com
d73a7cb7fd041b19efd8bca0db4a3d138c2e16c7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03222/s568418770.py
4e51bc7fea54d52d1817f2592c5631893a937a81
[]
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
2,145
py
# -*- coding: utf-8 -*- import sys def input(): return sys.stdin.readline().strip() def list2d(a, b, c): return [[c] * b for i in range(a)] def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)] def list4d(a, b, c, d, e): return [[[[e] * d for j in range(c)] for j in range(b)] for i in range(a...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
3ef5e2b0d0a6b9a4e486ee864e44c88183a8767b
93713f46f16f1e29b725f263da164fed24ebf8a8
/Library/bin/jupyter-trust
6c459f7485a2fbb679a408f1e3cdef503301c8ba
[ "BSD-3-Clause" ]
permissive
holzschu/Carnets
b83d15136d25db640cea023abb5c280b26a9620e
1ad7ec05fb1e3676ac879585296c513c3ee50ef9
refs/heads/master
2023-02-20T12:05:14.980685
2023-02-13T15:59:23
2023-02-13T15:59:23
167,671,526
541
36
BSD-3-Clause
2022-11-29T03:08:22
2019-01-26T09:26:46
Python
UTF-8
Python
false
false
477
#!/var/mobile/Containers/Data/Application/EB768CE0-A764-4058-914E-C213876012C3/Library/bin/python3 # EASY-INSTALL-ENTRY-SCRIPT: 'nbformat==4.4.0','console_scripts','jupyter-trust' __requires__ = 'nbformat==4.4.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0]...
[ "nicolas.holzschuch@inria.fr" ]
nicolas.holzschuch@inria.fr
6026ac13de1b8b84925cfc151f1b2550d6abde5d
cd4a912cae6b00f3ef32c1d497cfba2cd36879fe
/PracticePython/Arrays/plus_one.py
b78f1e820b81655f824c3f2446d8b6ecf08be92b
[]
no_license
natepill/problem-solving
d8927251b79022265731300b2164cf939862f07c
cf49168db0206bfe68364fdd7190099b3593a31d
refs/heads/master
2020-03-29T13:19:19.588509
2020-03-01T19:53:58
2020-03-01T19:53:58
149,952,223
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
class Solution: def plusOne(self, digits: List[int]) -> List[int]: # if num > 9: # subtract 1 from num # if at start then #insert 1 at start of array # add 1 to next element # else # return nums # add 1 to last element ...
[ "natepill@gmail.com" ]
natepill@gmail.com
3f739c7832d610b85adf72c22a9f137827bd4a42
ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a
/CodeForces/Round E34/D.py
9181e636afdc42ef3bd5732ce12654159f6230eb
[]
no_license
cormackikkert/competitive-programming
f3fa287fcb74248ba218ecd763f8f6df31d57424
3a1200b8ff9b6941c422371961a127d7be8f2e00
refs/heads/master
2022-12-17T02:02:40.892608
2020-09-20T11:47:15
2020-09-20T11:47:15
266,775,265
0
0
null
null
null
null
UTF-8
Python
false
false
219
py
n = int(input()) arr = list(map(int, input().split())) total = 0 for i, ai in enumerate(arr): for aj in arr[i+1:]: if -1 <= ai - aj <= 1: continue total += aj - ai print(total)
[ "u6427001@anu.edu.au" ]
u6427001@anu.edu.au
6069767777f01ae48681840cf317a4b6d6cf1c8e
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow/source/keras/backend/common.py
97646067c9b2fa3ffee64857bc6523c3d44302c5
[ "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
4,194
py
import numpy as np # the type of float to use throughout the session. _FLOATX = 'float32' _EPSILON = 10e-8 _IMAGE_DATA_FORMAT = 'channels_last' def epsilon(): """Returns the value of the fuzz factor used in numeric expressions. # Returns A float. # Example ```python >>> keras.ba...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
c0fc3cdd7fc2eb48e915ff2d9c58482668d45f43
923a14dd594191d77e30465027ece8371f28a7a6
/web-serpng/code/serpng/articles/scripts/import_articles_csv.py
5ce7acd20ea67b344c389d7cf0232c5fa3308941
[]
no_license
alyago/django-web
3af7b3389df59104eaf5e50ed9cc2c3e730fed7f
da3073eec6d676dfe0164502b80d2a1c75e89575
refs/heads/master
2021-01-10T19:33:45.425520
2013-11-21T09:43:37
2013-11-21T09:43:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,095
py
#!/usr/bin/env python # encoding: utf-8 """ import_articles_csv.py Various importers for bringing data into the articles database from CSV, etc. This script requires django-extensions in order to run. To install, activate your employers virtual environment and run: pip install django-extensions Then, add the foll...
[ "oleg@simplyhired.com" ]
oleg@simplyhired.com
4e2d94bb5d84f3d8f50aa86e6208f4d10b36161d
2eae961147a9627a2b9c8449fa61cb7292ad4f6a
/openapi_client/models/post_addresses.py
7b56305b4ed654a80626a2a6d77d4faee0e9b3e2
[]
no_license
kgr-eureka/SageOneSDK
5a57cc6f62ffc571620ec67c79757dcd4e6feca7
798e240eb8f4a5718013ab74ec9a0f9f9054399a
refs/heads/master
2021-02-10T04:04:19.202332
2020-03-02T11:11:04
2020-03-02T11:11:04
244,350,350
0
0
null
null
null
null
UTF-8
Python
false
false
3,356
py
# coding: utf-8 """ Sage Business Cloud Accounting - Accounts Documentation of the Sage Business Cloud Accounting API. # noqa: E501 The version of the OpenAPI document: 3.1 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from openapi_client.confi...
[ "kevin.gray@eurekasolutions.co.uk" ]
kevin.gray@eurekasolutions.co.uk
e82d90d33521853f74d0cbc78f9b0cbd8864eddc
2127cabeeda296f7a6b692982872d91e8bdd3016
/tests/test_optional.py
16610ee71c8d8995010ca1ba491fdbb729738abd
[ "Apache-2.0" ]
permissive
nomilkinmyhome/dataclass_factory
26059993af95509e386793c42fd743d6f08e1079
7bcbd395acd5c61806ae36042067a7f9882cec28
refs/heads/master
2022-11-18T21:51:40.308764
2020-03-26T08:51:08
2020-03-26T08:51:08
279,984,132
1
0
null
null
null
null
UTF-8
Python
false
false
369
py
from typing import Dict, Optional from unittest import TestCase from dataclasses import dataclass from dataclass_factory import Factory @dataclass class Data: x: Optional[Dict[str, None]] class TestOptional(TestCase): def test_optional(self): factory = Factory() y = factory.load({"x": None...
[ "tishka17@mail.ru" ]
tishka17@mail.ru
744789b1e04f1a94cb4c59e13391f7b2f4a92127
920ab19b73a7cba21d340a49d9d24e2d1eeabf3d
/idpsreact/bin/bandit
4313ce9452e852ccaaafb40663998c38d0c5e984
[ "MIT" ]
permissive
DTrafford/IDPS
5fa2b73f2c47cbf50b90a1a786c10f7d69c995b4
1eaccfc218adcb7231e64271731c765f8362b891
refs/heads/master
2022-12-16T16:28:34.801962
2020-03-30T18:08:09
2020-03-30T18:08:09
234,163,829
0
0
MIT
2020-09-10T06:26:02
2020-01-15T20:10:09
Python
UTF-8
Python
false
false
278
#!/Users/sangit/Downloads/django-react-boilerplate-master/idpsreact/bin/python3 # -*- coding: utf-8 -*- import re import sys from bandit.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "d.trafford@outlook.com" ]
d.trafford@outlook.com
0e81bf594e1ecc283e6e06fd99e065c54c7070e6
35b2ab54ac96f08b8b48cb8a8a1d596724b70f04
/nutrientes/management/commands/piramid.py
95a094d38b67343ed3998fe6f124d8795fbef0d5
[]
no_license
elaeon/foods
108be8a7d415b81b40e60f1fb7a0a13296ff147f
2ba3cf2dacbc91f2b2c197926779b095f4457f01
refs/heads/master
2021-01-10T18:45:56.780763
2016-03-02T17:56:15
2016-03-02T17:56:15
35,621,857
0
0
null
null
null
null
UTF-8
Python
false
false
3,741
py
from django.core.management.base import BaseCommand from nutrientes.utils import PiramidFood, Food from nutrientes.weights import WEIGHT_NUTRS as weight_nutrs class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('--meat', default=False, help='Select a me...
[ "mara80@gmail.com" ]
mara80@gmail.com
7584d501340c304a1054dff77e8439addda74d78
53e9fc57ac1a1d1b8621150c2f3a091d0ff86476
/blog/migrations/0005_remove_post_image.py
81a7a69c6fe17ea4fac936f9a7314532a99529ff
[]
no_license
rdahal35/DjangoBlog
4babfec4d6589c61647127482487c91275e99381
2ca753d81ffcdc07e4c43d7f429c14a7bb2cc4a5
refs/heads/master
2020-03-19T17:08:30.485947
2018-06-09T17:56:35
2018-06-09T17:56:35
136,745,833
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
# Generated by Django 2.0.6 on 2018-06-09 11:31 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('blog', '0004_auto_20180609_1704'), ] operations = [ migrations.RemoveField( model_name='post', name='image', ), ...
[ "rdahal35@gmail.com" ]
rdahal35@gmail.com
1de6cc075cd647956bdf5d8f3d817ae1730128c2
45da19631c7c88e559a02d976d8227d31ace5f04
/env_event_service/bin/pip3.7 2
fb81b812a9660301be35a5f8c8e85589c2785d53
[]
no_license
tebbythomas/Event_Service_API_Django_Rest_Framework
104adec9c92eeae7609038b55396cef9029dc99b
5efe1aafc292e9a0a47b273955e84461c89debe7
refs/heads/master
2021-09-28T06:08:25.648630
2020-03-25T00:15:25
2020-03-25T00:15:25
249,147,830
1
1
null
2021-09-22T18:47:21
2020-03-22T09:08:14
Python
UTF-8
Python
false
false
291
#!/Users/tebbythomas/Documents/Practice/Event-Service/Second_Try/env_event_service/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip._internal import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "tebby.thomas@gmail.com" ]
tebby.thomas@gmail.com
ea427416629c0dbb96e7d348707ed07f931f09a3
c273bf08d42c5c038a355a721972848a4847682c
/openpyxl/styles/tests/test_named_style.py
395172576232ff654448c5ef3f00164488c52fa3
[ "MIT", "BSD-2-Clause", "PSF-2.0" ]
permissive
BlueGreenMagick/sync-excel-with-anki
31e39ae07c7360d5abab1357cb26bc629b4adb87
b78322899fec66b4a0b9b835f173057a844fe3ce
refs/heads/master
2021-09-26T04:37:45.538223
2021-09-20T05:11:03
2021-09-20T05:11:03
196,643,205
15
3
null
null
null
null
UTF-8
Python
false
false
7,467
py
from __future__ import absolute_import # Copyright (c) 2010-2019 openpyxl import pytest from array import array from ..fonts import Font from ..borders import Border from ..fills import PatternFill from ..alignment import Alignment from ..protection import Protection from ..cell_style import CellStyle, StyleArray f...
[ "bluegreenmagick@gmail.com" ]
bluegreenmagick@gmail.com
d72cacf7c7f70e32cd90cc03959c3278bfe13363
060967fa3e6e390ac0504172e6dea8421ffb9d98
/2022/python2022/tests/test_day07.py
a8b087aa8e6560dbbbb77a0086a176a458ef3593
[]
no_license
mreishus/aoc
677afd18521b62c9fd141a45fec4b7bc844be259
e89db235837d2d05848210a18c9c2a4456085570
refs/heads/master
2023-02-22T12:00:52.508701
2023-02-09T04:37:50
2023-02-09T04:39:44
159,991,022
16
3
null
2023-01-05T10:00:46
2018-12-01T22:00:22
Python
UTF-8
Python
false
false
605
py
#!/usr/bin/env python3 """ Test Day07. """ import unittest from aoc.day07 import Day07 class TestDay07(unittest.TestCase): """Test Day07.""" def test_part1(self): """Test part1""" self.assertEqual(Day07.part1("../inputs/07/input_small.txt"), 95437) self.assertEqual(Day07.part1("../in...
[ "mreishus@users.noreply.github.com" ]
mreishus@users.noreply.github.com
acc118a4715ec4af727822d1921170fc2f6b26e0
de7cae42ec760bae3b532259b399a8c6df0394c9
/wxPython/samples/wxPIA_book/Chapter-07/text_ctrl.py
9cec352fbd8a629d850e9cc384c67349a3e3e0a5
[]
no_license
nvaccess/wxPython
b70f91bd682b86e20434d0c69ac497dfbf875838
13cceab2a1891ab443e62078be729dc1e1e2e283
refs/heads/master
2020-05-31T00:11:36.079007
2016-07-12T09:25:04
2016-07-12T09:25:04
63,135,776
1
2
null
2016-07-18T02:43:08
2016-07-12T07:18:57
C++
UTF-8
Python
false
false
829
py
import wx class TextFrame(wx.Frame): def __init__(self): wx.Frame.__init__(self, None, -1, 'Text Entry Example', size=(300, 100)) panel = wx.Panel(self, -1) basicLabel = wx.StaticText(panel, -1, "Basic Control:") basicText = wx.TextCtrl(panel, -1, "I've entered so...
[ "robin@alldunn.com" ]
robin@alldunn.com
7d73db95afd3e239759b48db5abfeb07099f16d8
e5d5fa28999bcc6c642bb42dda93afd38e272b81
/LeetCode/896. Monotonic Array/solve1.py
97d3ce6c80618ac850aa2113559e14802a96df71
[]
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
447
py
class Solution: def isMonotonic(self, nums: List[int]) -> bool: def get_sign(cur, nxt): return 0 if cur == nxt else (-1 if cur > nxt else 1) sign = 0 for i in range(1, len(nums)): nxt_sign = get_sign(nums[i-1], nums[i]) if sign == 0: sign =...
[ "chiahsun0814@gmail.com" ]
chiahsun0814@gmail.com
bedba96a63dac694fb9424f406a9605be76814f2
dbf76237e39087bf1a73243bbb019710182be0e4
/Capitulo 2/34 - registro.py
f349a77b4ee48ef35e2ed8497c7377f556ee9e56
[]
no_license
sandromelobrazil/Python_Para_Pentest
52edd86fa5929e0303e60e9872c027aae564becd
1837b523ad55e1c8ca066341459714e2fc88f037
refs/heads/master
2020-04-05T16:56:22.342925
2018-11-11T00:52:23
2018-11-11T00:52:23
157,035,879
1
0
null
null
null
null
UTF-8
Python
false
false
723
py
#Adaptacao: https://stackoverflow.com/questions/3050262/change-browser-proxy-settings-from-python import _winreg INTERNET_SETTINGS = _winreg.OpenKey(_winreg.HKEY_CURRENT_USER, r'Software\Microsoft\Windows\CurrentVersion\Internet Settings', 0, _winreg.KEY_ALL_ACCESS) #1 def set_key(name, value, type): #...
[ "sandromelo.brazil@gmail.com" ]
sandromelo.brazil@gmail.com
e18a9825f3647a229985ab9f79946fc76955d988
73d9b5664d6949140b13e92d8b91a01e8502752a
/good_spot/images/migrations/0003_placeimage_thumbnail.py
15cd5861e6fed6085e8dbed866568f7800fccea3
[ "MIT" ]
permissive
jasmine92122/NightClubBackend
3ed46cce0f6b534b4b49829f53fe7cb6a42ae42e
7f59129b78baaba0e0c25de2b493033b858f1b00
refs/heads/master
2022-11-23T00:42:25.606762
2019-10-02T01:56:29
2019-10-02T01:56:29
212,234,882
0
0
MIT
2022-11-22T02:10:16
2019-10-02T01:47:52
JavaScript
UTF-8
Python
false
false
515
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-03-07 13:33 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('images', '0002_auto_20180306_1923'), ] operations = [ migrations.AddField( ...
[ "jasminegarcia111@outlook.com" ]
jasminegarcia111@outlook.com
253eedac306b02cb121f2fe1a4189604cc420975
c5e50dfd9bf1ce7ae7f5a56aed3abe95cd9184d2
/classroom/models.py
fb5cfecb8aa5fc14152a1b507056c9bd1cff2b59
[]
no_license
RicePad/COVID19-NurseHelper
d93fd1f3c0b8e0018a2039bd27b4f0ff32a5c115
87d7785027648b2515ca47edb219e3a3f2c97b9b
refs/heads/master
2021-04-18T04:43:06.808455
2020-06-03T03:16:02
2020-06-03T03:16:02
249,505,580
0
0
null
null
null
null
UTF-8
Python
false
false
1,324
py
from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.html import escape, mark_safe PAYMENT_CHOICES = ( ('1', 'Fruits'), ('2', 'Vegetables'), ('3', 'Dairy') ) class User(AbstractUser): is_helper = models.BooleanField(default=False) is_nurse = models.Boo...
[ "jonn.thinkrtc@gmail.com" ]
jonn.thinkrtc@gmail.com
0ece2a49283a025468b379bb013bc17a19f4bacf
7b9813e6c805edfeca538b69bd79119db439f284
/exp_mmdet/exp032/fold3_resume.py
eb3297cdd944e98bec4ea62f216be10eb9bb6b1d
[]
no_license
Ino-Ichan/SIIM-RSNA-Covid19-2021
61bfd0b2baef58f6b1673e02f45acaa998916a89
caba038bbb403cb55753ecc68d5fb92ef93b1f8e
refs/heads/main
2023-07-08T13:19:46.226739
2021-08-13T18:05:37
2021-08-13T18:05:37
373,910,115
0
0
null
null
null
null
UTF-8
Python
false
false
7,460
py
# exp = "exp006" exp = "exp032" model_name = "retinanet_r50_fpn_1x_coco" cv = "3" # https://www.kaggle.com/sreevishnudamodaran/siim-mmdetection-cascadercnn-weight-bias _base_ = "/workspace/customized_mmdetection/configs/retinanet/retinanet_r50_fpn_1x_coco.py" # =====================================================...
[ "sys.b11noway@gmail.com" ]
sys.b11noway@gmail.com
38ab17175b731a93f2859eac59fcbf8a7bce4c89
66124f7876fb3f26d5c6c2617be023af03c2d135
/leet_code/distribute_coins_in_binary_tree.py
46e7fecd3858d28d9ad2f2a9739b7ddc062023c7
[]
no_license
s-surineni/atice
494568c923a2a11531b3d12d694928d466b37d32
779c14fbefe1066d17cbe0f4cf1eeb8572a6d910
refs/heads/master
2021-12-11T03:22:50.177452
2021-12-05T06:32:43
2021-12-05T06:32:43
13,205,746
0
0
null
null
null
null
UTF-8
Python
false
false
301
py
def distribute_coins_ib_binary_tree(root): if not root: return 0, 0 l_moves, l_coins = distribute_coins_ib_binary_tree(root.left) r_moves, r_coins = distribute_coins_ib_binary_tree(root.right) moves = l_moves + r_moves return moves, (root.val - 1) + (l_coins) + (r_coins)
[ "sampath.skt@gmail.com" ]
sampath.skt@gmail.com
66a3f36e1fc31f8b33ce3e271f64b600964edf54
ce55c319f5a78b69fefc63595d433864a2e531b5
/爬虫知识/爬虫/10day/03-selenium登录豆瓣.py
d72e0d70592aa91e0fa0f1d18881b4fd491e13e7
[]
no_license
Suijng/1809_data
a072c875e8746190e3b715e53f1afe3323f4666b
45f8a57089f5c30ccc1a3cddb03b76dc95355417
refs/heads/master
2022-12-21T12:38:30.458291
2019-09-27T01:14:41
2019-09-27T01:14:41
211,207,071
0
0
null
2022-11-22T03:16:18
2019-09-27T00:55:21
HTML
UTF-8
Python
false
false
807
py
from selenium import webdriver import requests driver = webdriver.Chrome(executable_path='/home/sj/桌面/爬虫/chromedriver') driver.get('https://www.douban.com/') driver.find_element_by_id('form_email').send_keys('1627765913@qq.com') driver.find_element_by_id('form_password').send_keys('sj7845464@') element = driver.page...
[ "1627765913@qq.com" ]
1627765913@qq.com
24242919d0b3cf89d9afcd93f173f8419091a74c
6c8c2c3f2798ac060173c571d965b388c6ed269b
/bin/generateschema.py
a9f22a4380a46a4f55f58f367764074c3850898a
[]
no_license
hsolbrig/ShEx
441cbb649e1e7cbad9ea1fbf1a9bddb814ed7510
c47aa340ebd76c2c53b921acd6c43f7a1c91381e
refs/heads/master
2021-01-19T09:44:26.538573
2014-05-23T19:55:43
2014-05-23T19:55:43
19,274,443
2
0
null
null
null
null
UTF-8
Python
false
false
2,816
py
# -*- coding: utf-8 -*- # Copyright (c) 2013, Mayo Clinic # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # Redistributions of source code must retain the above copyright notice, this # ...
[ "solbrig.harold@mayo.edu" ]
solbrig.harold@mayo.edu
12f1aae11a411a52b37520abd60dc0a20b61ee55
89213af925471c5954a12d0fe5bb47dfd988c351
/bst/0109_convert_sorted_ll_to_bst.py
b3a3b00a3f55335e986d2a62f0869a006e7fdd65
[]
no_license
seanchen513/leetcode
be554dd668221b6d03c598090d6684165bc512c5
4723a64b00502c824bb9b848a1737478096aa3e1
refs/heads/master
2021-11-10T11:50:16.674255
2021-11-10T02:57:02
2021-11-10T02:57:02
237,393,266
1
0
null
null
null
null
UTF-8
Python
false
false
4,082
py
""" 109. Convert Sorted List to Binary Search Tree Medium Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more ...
[ "seanchen513@gmail.com" ]
seanchen513@gmail.com
aa7871fad8d1e98c8a8ff9178264d583801e6d97
6ab3d02c6b5426cd122b3d3c7b31faee7ea917d4
/tree_countLeaves.py
e7aa9681de9fd78b4b69fc53662920cf06e792d1
[]
no_license
AishwaryalakshmiSureshKumar/DS-Algo
e54967ed24c641059fe15b286359f1b71141eeff
a624b29182c92b5fa8017aae597eb4ad2475deae
refs/heads/main
2023-04-21T17:17:10.342833
2021-04-18T18:03:57
2021-04-18T18:03:57
356,888,335
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
def countLeaves(root): if root is None: return 0 if root.left is None and root.right is None: return 1 else: return countLeaves(root.left) + countLeaves(root.right) class Tree: def __init__(self, val): self.data = val self.left = None self.rig...
[ "noreply@github.com" ]
AishwaryalakshmiSureshKumar.noreply@github.com
719ae4275c713c5afced1364bf4100d1c33bd849
f6fd5e6ed1ba59f2cefefd4859bea35212ede00e
/p35.py
ee8f0edf72221853da900398415432726cc507e9
[]
no_license
comorina/Ducat_class_code
f1d03ab3e470977899c9f2c860470dc3f843eae9
e105847f00d9599afea9132902da3d393b006b58
refs/heads/main
2023-04-14T01:47:02.588049
2021-04-29T13:58:39
2021-04-29T13:58:39
345,077,171
0
0
null
null
null
null
UTF-8
Python
false
false
179
py
cp=int(input("enter cp:")) sp=int(input("enter sp:")) if(sp>cp): print("profit",sp-cp) elif(cp>sp): print("loss",cp-sp) else: print("No profit no loss")
[ "noreply@github.com" ]
comorina.noreply@github.com
bd9cdda5700e2d847320c7028287cddbac28518f
165ff8f98e6a49d43bda300255790f8c91ef0aad
/payments_service/settings.py
16ff5853f24be3cc4080c8b56139b65859e830dd
[ "MIT" ]
permissive
gbozee/now-payments
ec624b04e9d8327160c647b39a9a14214c9e7a48
a21767027d9ee5303c2d0220c7983196c4674b81
refs/heads/master
2023-08-04T08:33:17.979516
2021-05-27T08:31:39
2021-05-27T08:31:39
263,529,637
1
1
MIT
2023-02-14T21:59:07
2020-05-13T04:59:27
Python
UTF-8
Python
false
false
320
py
from starlette.config import Config from starlette.datastructures import Secret, URL config = Config(".env") DEBUG = config("DEBUG", cast=bool, default=True) PAYMENT_SHEET = config("PAYMENT_SHEET") NOW_SHEET_SERVICE = config("NOW_SHEET_SERVICE") HOST_URL = config("HOST_URL", default="http://localhost:8000")
[ "gbozee@gmail.com" ]
gbozee@gmail.com
02950a804aa1cdc12500489489dc16580ef4173d
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/418/usersdata/306/83627/submittedfiles/av1_programa2.py
81393241d4148641b4a44292751241643f24b419
[]
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
674
py
# -*- coding: utf-8 -*- mat=int(input("---------------------------------\nDigite a matricula do aluno: ")) nota1=float(input("\n---------------------------------\nDigite a primeira nota do aluno: ")) nota2=float(input("\n---------------------------------\nDigite a segunda nota do aluno: ")) nota3=float(input("\n------...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
123d65c4f450b8119cbcce835a6c24f506dc77f7
54ee247b1053c122c7c6390319f915236e589545
/ContinuedFractions.py
0b036dd2ae1031f20c5e24ebde2c7d222f5327f3
[]
no_license
kelvinblaser/EulerProject
b92fc9b16830148a10b7330cc3fb8dfb90bfe433
023ec34da77000197b09ba407f81651ff2afda6a
refs/heads/master
2023-08-16T21:39:02.031873
2023-08-15T04:40:37
2023-08-15T04:40:37
169,328,005
1
0
null
null
null
null
UTF-8
Python
false
false
1,220
py
"""Continued Fraction Functions useful for working with continued fractions """ import scipy as sp from fractions import Fraction def sqrtContFrac(n): """ Computes the continued fraction of the sqrt of n For non-square n, returns in the form [a0,a1,a2,(a3,a4,a5)] where the tuple (a3, a4, a5) is th...
[ "kelvinblaser@gmail.com" ]
kelvinblaser@gmail.com
2dc0933af950155994691b585261e540da161bf9
2bcf18252fa9144ece3e824834ac0e117ad0bdf3
/Kraken/tags/0.2/Kraken.py
35c10a384501504ba4eeaad8b3301c1a8d6acda3
[ "Beerware" ]
permissive
chadwhitacre/public
32f65ba8e35d38c69ed4d0edd333283a239c5e1d
0c67fd7ec8bce1d8c56c7ff3506f31a99362b502
refs/heads/master
2021-05-10T14:32:03.016683
2010-05-13T18:24:20
2010-05-13T18:24:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,752
py
# ---------------------------------------------------------------------------- # "THE BEER-WARE LICENSE": # <chad@zetaweb.com> wrote this file. As long as you retain this notice you # can do whatever you want with this stuff. If we meet some day, and you think # this stuff is worth it, you can buy me a beer in return. ...
[ "chad@zetaweb.com" ]
chad@zetaweb.com
5de272d4702a3247e8cdfd7515c75e6893e5651c
551b75f52d28c0b5c8944d808a361470e2602654
/huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/batch_delete_instance_topic_resp_topics.py
63877b1c5f0f410420d96874594e4fbea55b5cf0
[ "Apache-2.0" ]
permissive
wuchen-huawei/huaweicloud-sdk-python-v3
9d6597ce8ab666a9a297b3d936aeb85c55cf5877
3683d703f4320edb2b8516f36f16d485cff08fc2
refs/heads/master
2023-05-08T21:32:31.920300
2021-05-26T08:54:18
2021-05-26T08:54:18
370,898,764
0
0
NOASSERTION
2021-05-26T03:50:07
2021-05-26T03:50:07
null
UTF-8
Python
false
false
3,502
py
# coding: utf-8 import pprint import re import six class BatchDeleteInstanceTopicRespTopics: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
72a306642711ce2e9c61849608f07d7ebf71ec0a
41586d36dd07c06860b9808c760e2b0212ed846b
/multimedia/misc/liblqr/actions.py
7fd115840873e6d278dd9c345847ef56e0bc0414
[]
no_license
SulinOS/SulinRepository
4d5551861f57bc1f4bec6879dfe28ce68c7c125d
9686811a1e06080f63199233561a922fe1f78d67
refs/heads/master
2021-06-15T21:34:25.039979
2021-06-05T13:43:34
2021-06-05T13:43:34
207,672,864
6
3
null
2019-12-06T08:11:22
2019-09-10T22:16:17
Python
UTF-8
Python
false
false
584
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/copyleft/gpl.txt. from inary.actionsapi import autotools from inary.actionsapi import inarytools from inary.actionsapi import get WorkDir = "%s-1-%s" % (get.srcNAME(), get.src...
[ "zaryob.dev@gmail.com" ]
zaryob.dev@gmail.com
06a80e72bb1d7f32115610a482e88c74e1878a2b
49bbe24c3686fc99bce6bd97c412b9c82b952292
/groups/urls.py
b1a84d72d53dddb0953f9a4469e3203614e2ac6d
[]
no_license
sokolovdp/social
5e446176334118b41690771c6037e43c72e205f4
103bd82320939e91fa3afee31a5fb4548d937880
refs/heads/master
2021-06-27T01:42:54.272941
2017-09-14T15:22:05
2017-09-14T15:22:05
103,045,619
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# GROUP URLS.PY from django.conf.urls import url from . import views app_name = 'groups' urlpatterns = [ url(r'^$', views.ListGroups.as_view(), name='all'), url(r'^new/$', views.CreateGroup.as_view(), name='create'), url(r'^posts/in/(?P<slug>[-\w]+)/$', views.SingleGroup.as_view(), name='single'), ur...
[ "sokolovdp@gmail.com" ]
sokolovdp@gmail.com
cc4f7bf99ed535d09dabc2addf4fd18aa9234f32
d0404c2410e95b03c14887e7c292b6ad46e74fed
/frontend_backend_servers/backend/modules/api/routes/change_routes.py
8082b363135894b56e54df669a8835d29b246070
[]
no_license
Vadbeg/networks-and-info-security
c947524e58f6bfddfe5d8d35d9cab0a4d30eaebc
6409677d9f68cb9809124d2997d2f2e4bd7a0313
refs/heads/master
2023-04-20T05:57:22.965738
2021-05-07T19:44:43
2021-05-07T19:44:43
336,023,859
0
0
null
null
null
null
UTF-8
Python
false
false
6,814
py
"""Module with routes for Flask application""" import os from datetime import datetime from flask import (Blueprint, Response, make_response, jsonify, request, abort) try: # Used for server setup using command line from frontend_backend_servers.backend.modules.api.databa...
[ "vadbeg@tut.by" ]
vadbeg@tut.by