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
d2d41ab5c8dcaa1b0c5a061f0fe767f4d00b5703
4b7d5c8824df4462a338993efcdfa3b17199ff5b
/基础/day1/guessage_while.py
f90a4e7c568144a273ae7dc8e8d360cfb0196b82
[]
no_license
kobe24shou/python
9c287babfb357e7f650fab453f3e60614b7a71fc
f78f147101f182207a69f0dc8e1595b54280164a
refs/heads/master
2021-06-02T12:40:59.424542
2020-06-28T06:13:51
2020-06-28T06:13:51
101,620,300
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
#!/usr/bin/env python # -*-coding:utf-8-*- # Author:ls # aishou24@gmail.com age = 50 flag = True while flag: user_input_age = int(input("Age is :")) if user_input_age == age: print("Yes") flag = False elif user_input_age > age: print("Is bigger") else: print("Is smaller...
[ "aishou24@gmail.com" ]
aishou24@gmail.com
f05d91a779158e39e065a91876b3ee0594373239
6e9c9128054da7eea28a4627381df28f95416ee5
/finance_ml/labeling/betsides.py
b3df71764d3b3a2d8c9c13dde03c34083689205f
[ "MIT" ]
permissive
BTCTON/finance_ml
c5a4ad2486608ad19c92c04c70fe513be135c236
a585be2d04db5a749eb6b39b7336e5aeb30d6327
refs/heads/master
2021-12-23T07:53:13.791609
2021-10-15T01:47:41
2021-10-15T01:47:41
158,898,508
1
0
null
null
null
null
UTF-8
Python
false
false
1,925
py
import numbers import pandas as pd import numpy as np import multiprocessing as mp from ..multiprocessing import mp_pandas_obj def _cusum_side(diff, h, k=0, molecule=None): side = [] s_pos, s_neg = 0, 0 timestamps = [] th = None for t in molecule: if th is None: th = h.loc[t] ...
[ "f.j.akimoto@gmail.com" ]
f.j.akimoto@gmail.com
e4a5581eacba722b9bd59eaf6b2c79e06c407dd6
955f9d3fb34af54de2f046d17bbac11c1474819e
/abc111/b.py
806ef54082f0f620dd15f1c7e64280e5d3c590c3
[]
no_license
shimewtr/AtCoderPracticePython
5bb4c28119fced2d111bd1810e0e290f25b6a191
f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6
refs/heads/master
2023-01-12T17:28:44.770138
2020-11-19T22:50:22
2020-11-19T22:50:22
204,830,292
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): n = int(input()) for i in range(n, 1000): s = str(i) if s[0] == s[1] == s[2]: print(i) break class TestClass(unittest.TestCase): def assertIO(...
[ "wawawatataru@gmail.com" ]
wawawatataru@gmail.com
167b95dc17b9c8dee4e07a8205bc2fafd07bd0d8
707054dbae74908940b72a462553dda70b97d7d2
/home/models.py
6f0c7933685422f0cfa0ec268884ce9f6b0d648d
[]
no_license
nghiatd16/spoj_tournament
ea6b59d6efd0f10fd1993c2252f8afe3b3ffb685
21f79224059fbeb84907db7ddc9c050c8da307a8
refs/heads/master
2020-04-19T22:32:36.998098
2019-02-03T13:25:59
2019-02-03T13:25:59
168,471,880
0
0
null
null
null
null
UTF-8
Python
false
false
3,485
py
from django.db import models import numpy as np import math import time # Create your models here. class Member(models.Model): full_name = models.CharField(max_length=100) username = models.CharField(max_length=20) grade = models.CharField(max_length=5) num_solved = models.IntegerField() score = mod...
[ "nghiatd.proptit@gmail.com" ]
nghiatd.proptit@gmail.com
bffb107f57f0d36dc20178f29c6dc99e51e19baf
2ea49bfaa6bc1b9301b025c5b2ca6fde7e5bb9df
/contributions/IlyaGusev/Python/Data Structures/2016-10-22.py
75d1b2c5f1aa536abbd5ffc5220a703ae5c4ac1f
[]
no_license
0x8801/commit
18f25a9449f162ee92945b42b93700e12fd4fd77
e7692808585bc7e9726f61f7f6baf43dc83e28ac
refs/heads/master
2021-10-13T08:04:48.200662
2016-12-20T01:59:47
2016-12-20T01:59:47
76,935,980
1
0
null
null
null
null
UTF-8
Python
false
false
128
py
Following PEP 8 styling guideline. `bytes` type Get the most of `int`s There is more to copying Implementing **weak** references
[ "phoenixilya@gmail.com" ]
phoenixilya@gmail.com
a53f15b3da988af03b2566c0cf91fc45e52d5bf2
27b86f422246a78704e0e84983b2630533a47db6
/src/ezdxf/acis/const.py
7be54fa05ffa8b157ce4698f620934753fe88c3e
[ "MIT" ]
permissive
mozman/ezdxf
7512decd600896960660f0f580cab815bf0d7a51
ba6ab0264dcb6833173042a37b1b5ae878d75113
refs/heads/master
2023-09-01T11:55:13.462105
2023-08-15T11:50:05
2023-08-15T12:00:04
79,697,117
750
194
MIT
2023-09-14T09:40:41
2017-01-22T05:55:55
Python
UTF-8
Python
false
false
5,301
py
# Copyright (c) 2022, Manfred Moitzi # License: MIT License import enum from ezdxf.version import __version__ # SAT Export Requirements for Autodesk Products # --------------------------------------------- # Script to create test files: # examples/acistools/create_3dsolid_cube.py # DXF R2000, R2004, R2007, R2010: O...
[ "me@mozman.at" ]
me@mozman.at
ccb13e3581e5f4fcdbefec32265612838a553659
b119f7e1f21510928e59cd5b6f16d284d6f868a3
/djangodocker/djangodocker/urls.py
fbdfd995b634c92a1b518cdfb6644b77ba0590d2
[]
no_license
a-bautista/Django_Tutorials
6433d0ee2e9f2cff80ac4f84af150bfa6011de25
7fdffc32ac1dcf0e2a2f88d265d8d0265a267b53
refs/heads/master
2022-12-13T12:07:30.113489
2019-12-13T05:31:31
2019-12-13T05:31:31
132,667,576
0
0
null
2022-12-08T06:35:51
2018-05-08T21:32:11
Python
UTF-8
Python
false
false
1,041
py
"""djangodocker URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-...
[ "alex.bautista.ramos.90@gmail.com" ]
alex.bautista.ramos.90@gmail.com
ed240718c67426f61c98d597d6846f52ef4543b3
82f1c3338ee636ee08ec0009c413b40c495f5c95
/core/settings/base.py
a8ae00dab226edfffa9ed5a7c2045abf9dd08bf7
[]
no_license
DevHerles/rest
6be3714ff43d398aedb9dcf1194b3659a38598aa
a723095d77a454c7259871b3ee980f6c3c40ecc6
refs/heads/main
2023-05-30T03:02:48.522541
2021-06-04T21:55:08
2021-06-04T21:55:08
362,266,185
0
0
null
null
null
null
UTF-8
Python
false
false
4,661
py
from pathlib import Path from datetime import timedelta # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # SECURITY ...
[ "herles.incalla@gmail.com" ]
herles.incalla@gmail.com
eddc122e28483b47ab38679b8af707a0a5342b2b
dbc216c71fa2cd447d9203bff21f85c48481847b
/python/METConfig_Truth.py
3635a16b9804cf6f4542a7bcd8a2e563e32c649c
[]
no_license
rjwang/Reconstruction-MET-METReconstruction
be9082dc5a64744948a2cbc5f1a6ac35b3376944
2286131d6984cfc5e875ae32c9a4691f61de6ff1
refs/heads/master
2021-01-21T16:04:59.181902
2016-09-16T21:26:47
2016-09-16T21:26:47
68,415,460
0
0
null
null
null
null
UTF-8
Python
false
false
2,265
py
from METReconstruction.METRecoFlags import metFlags from METReconstruction.METRecoConfig import BuildConfig, METConfig from METReconstruction.METAssocConfig import METAssocConfig, AssocConfig ## Simple truth terms cfg_truth = METConfig('Truth', [BuildConfig('NonInt'), Buil...
[ "r.jiewang@gmail.com" ]
r.jiewang@gmail.com
2eac54655f5b985851187bcd96c6e111a90da1e0
8c87341eff7aa9b0face6281ed8644f87b531975
/models.py
d4610f83b9a2b5b128a708d5ee58be9f8e86667b
[]
no_license
nprapps/breaking-news-facts
455d27aa5c818ee8d292d81781b17d2cff3ef5e1
b6aa8d2b4f31c12e8899ce099e2827304cb4500e
refs/heads/master
2021-01-13T01:30:09.548232
2013-10-11T17:23:29
2013-10-11T17:23:29
10,252,811
0
1
null
null
null
null
UTF-8
Python
false
false
3,337
py
import datetime import time from peewee import * from app_config import get_secrets secrets = get_secrets() psql_db = PostgresqlDatabase('breaking', user=secrets['APPS_USER'], password=secrets['APPS_PASS'] ) def delete_tables(): try: Event.drop_table() except: pass try: ...
[ "jeremyjbowers@gmail.com" ]
jeremyjbowers@gmail.com
39e4c0efd14beeb857c28a288b11086173e2d379
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/222/users/4057/codes/1685_2471.py
763bcec1f0339cd7ddf8b9131953dd922ec8bebd
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
388
py
i = int(input("Idade: ")) m = float(input("Massa corporal: ")) print ("Entradas: ", i, "anos e IMC ", m) if (i > 0) and (i <= 130)and (m > 0): if (i < 45) and (m < 22): print("Risco: Baixo") elif (i < 45) and (m >= 22): print("Risco: Medio") elif (i >= 45) and (m < 22): print("Risco: Medio") elif (i >= 45) a...
[ "jvlo@icomp.ufam.edu.br" ]
jvlo@icomp.ufam.edu.br
c2be04decc5965600ac2292cab586ac24015fd4a
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_084/ch149_2020_04_13_20_05_51_616666.py
d4effc79069f55ab7427c8bcca855bb2eef68d48
[]
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
740
py
s=float(input('qual é o seu salario? ')) d=int(input('qual o numero de dependentes voce tem? ')) bc=0 if s >= 1045.00: bc=s-s*0.075-d*189.59 elif 1045.01<= s <= 2089.60: bc=s-s*0.09-d*189.59 elif 2089.61<= s <= 3134.40: bc=s-s*0.12-d*189.59 elif 3134.41 <= s <= 6101.06: bc=s-s*0.14-d*189.59 elif 61...
[ "you@example.com" ]
you@example.com
77cd6e9cbe4628bb18c47cbeaef453ed29eaa4fa
2c635d6b558a65e62a9d37c12abf9e4ecbe8938c
/Word Pattern/Word Pattern.py
ebab0efb357c3284674b254e795a3f19b8cfea06
[]
no_license
GreatStephen/MyLeetcodeSolutions
c698e13b7088fc9236250b6ec10331b88fe99ed1
73a8f79f2cd5c769b195c503f0346893b102acdc
refs/heads/master
2023-03-01T04:53:19.698040
2021-02-05T22:28:18
2021-02-05T22:28:18
284,350,540
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
class Solution: def wordPattern(self, pattern: str, str: str) -> bool: ss = str.split(' ') l_s, s_l = {}, {} if len(pattern)!=len(ss): return False for letter, s in zip(pattern, ss): if letter in l_s and s in s_l: if l_s[letter]!=s or s_l[s]!=l...
[ "litianyou97@gmail.com" ]
litianyou97@gmail.com
4fc90913119a9447897f1ab6e324c787fdd0a931
b0365a11976fc19e350ba3c448b2bc3720c3eb73
/project/qt3/slider1.py
5d3c85dd67c55740f2c2d7d19a3da8406bc8bcc2
[]
no_license
excellencemichel/progrk
bd4e6797c21ed921ce4a3d75378ca752cece459d
e3144f78d9313ca9e2c836dcf53cf1bc4b3f10b8
refs/heads/master
2021-04-15T07:54:06.240231
2018-12-29T03:42:10
2018-12-29T03:42:10
116,013,431
0
0
null
null
null
null
UTF-8
Python
false
false
1,482
py
#! /usr/bin/python #-*-coding:utf-8-*- from PyQt5 import QtGui from PyQt5.QtCore import Qt from PyQt5.QtWidgets import ( QApplication, QMainWindow, QDialog, QWidget, QVBoxLayout, QLineEdit, QSlider, ) class Window(QWidget): """ Cette classe nous montre qu'on peut soi-même faire les dimensions de ...
[ "bnvnmmnl@gmail.com" ]
bnvnmmnl@gmail.com
ebdf4950594c969568cdc67d72e3d9eaf158ea10
0c6b4e9c5ecc5a7595717f9699953b227486ef3e
/tests/unit/modules/network/slxos/test_slxos_linkagg.py
12600b9228050e9f902327f04bf5342b5639978e
[]
no_license
ansible-collection-migration/ansible.misc
d9c92e8bb0c17b3e2a92976215f523c2afaa5a46
3c02be2a8c03b2e375a1e1f37b0c119145ea358c
refs/heads/master
2020-12-26T23:11:36.544511
2020-02-03T22:18:53
2020-02-03T22:18:53
237,681,535
0
0
null
null
null
null
UTF-8
Python
false
false
5,064
py
# # (c) 2018 Extreme Networks Inc. # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ans...
[ "ansible_migration@example.com" ]
ansible_migration@example.com
19c155e9dee77e5313030207c70e8e1fbeeee78b
e9f40b2ae17b5bf7f7fba339b00cb59e2cce34fa
/python_basic/OO/class_and_instance/class_demo2.py
1d6a488c04cb909e22e3d4d6b164df1d56394e27
[]
no_license
linyouwei/pycharm
0d8dbfd83fcc88077137bcbec063186ce0fb622c
246fe3ab855f7614fd05f2d31239170077791822
refs/heads/master
2021-01-19T17:38:35.698089
2018-03-26T10:12:50
2018-03-26T10:12:50
101,077,696
0
1
null
null
null
null
UTF-8
Python
false
false
476
py
#encoding=utf8 class Student(object): def __init__(self,name,score): self.name = name self.score = score def print_score(self): print("%s:%s"%(self.name,self.score)) def get_grade(self): if self.score >= 90: return 'A' elif self.score >= 60: re...
[ "yjlyw020150@163.com" ]
yjlyw020150@163.com
ba0073deff1af9e08e786690c7e8f7d3324ce4af
0905b794ccd3f3e4af9819a3c77505ba43067556
/reporter/uhl_reports/bioresource/data_quality/redcap.py
aa242c6af30cc7fd9a9d3c4722227c3d1417558e
[ "MIT" ]
permissive
LCBRU/reporter
57807fd358eee46d37c529e08baa1a76164588f8
8cb0ae403346e375a5e99d1d4df375cf2d5f3b81
refs/heads/master
2021-09-27T23:22:39.806232
2021-09-27T11:34:10
2021-09-27T11:34:10
88,853,864
0
0
null
null
null
null
UTF-8
Python
false
false
4,494
py
#!/usr/bin/env python3 from reporter.connections import RedcapInstance from reporter.application_abstract_reports.redcap.percentage_complete import ( RedcapPercentageCompleteReport, ) from reporter.application_abstract_reports.redcap.withdrawn_or_excluded_with_data import ( RedcapWithdrawnOrExcludedWith...
[ "rabramley@gmail.com" ]
rabramley@gmail.com
f39c672ffe5160b7086bffe27ce2ab6182a9a372
8afb5afd38548c631f6f9536846039ef6cb297b9
/_RESOURCES/my-gists/__CONTAINER/_OLD/_python/file_to_string.py
3a9ebee124dca93b69b2b27ba4087bae66ed4ea7
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
500
py
#!/usr/bin/env python import sys filename = sys.argv[1] # These do not remove \n with open(filename) as f: s = "".join(f.readlines()) with open(filename) as f: s = "".join(f) with open(filename) as f: s = f.read() # Fastest according to my tests. # These remove \n with open(filename) as f: s = " ...
[ "bryan.guner@gmail.com" ]
bryan.guner@gmail.com
16b7fe171308835af2c635735c7bdd7d91120fb0
99052370591eadf44264dbe09022d4aa5cd9687d
/build/learning_ros/Part_5/joint_space_planner/catkin_generated/pkg.installspace.context.pc.py
be9fecd76557ed5f3b5b526f243f453739bb4c03
[]
no_license
brucemingxinliu/ros_ws
11b1a3e142132925d35b3adf929f1000392c5bdc
45f7e553ea20b79e3e93af5f77a1b14b64184875
refs/heads/master
2021-01-24T03:36:47.043040
2018-02-26T00:53:37
2018-02-26T00:53:37
122,892,702
0
0
null
null
null
null
UTF-8
Python
false
false
501
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/toshiki/ros_ws/install/include".split(';') if "/home/toshiki/ros_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-ljoint_...
[ "mxl592@case.edu" ]
mxl592@case.edu
7f0f66410133136707d71e99d19bc7bc6c5702bd
35271f6bd874799df9a93dbe5bcc50272b619dc1
/ML/Pytorch/Basics/pytorch_rnn_gru_lstm.py
7f3646cb6e7ef201b2942163c3ed1d7e44f6a136
[ "MIT" ]
permissive
aladdinpersson/Machine-Learning-Collection
c724186b64ae52efa6f9d4e97f37477900901d35
558557c7989f0b10fee6e8d8f953d7269ae43d4f
refs/heads/master
2023-08-31T20:52:06.493437
2023-03-21T11:44:08
2023-03-21T11:44:08
250,184,708
5,653
2,543
MIT
2023-09-02T03:51:36
2020-03-26T07:02:40
Python
UTF-8
Python
false
false
5,541
py
""" Example code of a simple RNN, GRU, LSTM on the MNIST dataset. Programmed by Aladdin Persson <aladdin.persson at hotmail dot com> * 2020-05-09 Initial coding * 2022-12-16 Updated with more detailed comments, docstrings to functions, and checked code still functions as intended. """ # Imports import torch im...
[ "aladdin.persson@hotmail.com" ]
aladdin.persson@hotmail.com
0b19dbee65c1f62954819d4263d13f2b84de00f3
c1c5a8dc79cacf3b419bad77881213c5db2f80c3
/Kattis/Appalling_Architecture.py
21abef0663c911871759173c181ea7ffba02d6ae
[]
no_license
EoinDavey/Competitive
7ff8b6b6225814ac60c3ace659bb63190eb52420
b2b6909b93f5c073b684477f8a4b06dac22ec678
refs/heads/master
2023-01-08T00:06:19.076941
2022-12-26T14:00:31
2022-12-26T14:00:31
67,259,478
17
1
null
2022-01-19T18:17:59
2016-09-02T22:46:26
C++
UTF-8
Python
false
false
427
py
h, w = [int(x) for x in input().split()] l = "" sm = 0 total = 0 for _ in range(h): l = input() for i in range(w): if l[i] == '.': continue sm += i total += 1 lft = 0 for i in range(w): if l[i] != '.': lft = i - 0.5 break rght = 0 for i in range(w): if l[i] != '.': rght = i + 0....
[ "eoind@vey.ie" ]
eoind@vey.ie
f7e1145af886703fccb6c648225954a86303bf15
84f7ab8ae18acda2b15c3118ac18c4e8c0df1a73
/tests/evaluator_test.py
560752062aa9f9cb9a5bf3d2f5a95a63dfff39d9
[ "Apache-2.0" ]
permissive
lejarx/gafe
35ef45ec041d7bd76c973c841a01a478b4ba137c
125d587e39dd2eb94fba6667fffa6d07e508542f
refs/heads/master
2021-07-08T15:46:12.657591
2017-10-03T08:47:59
2017-10-03T08:47:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
''' Evaluator tests. ''' import os import unittest import numpy as np from sklearn.datasets import load_iris from gafe.evaluator import Evaluator class EvaluatorTest(unittest.TestCase): def test_init(self): eva = Evaluator() self.assertEqual(eva._metric, 'neg_log_loss') self.assertEqual(e...
[ "pplonski86@gmail.com" ]
pplonski86@gmail.com
9de54d8964ab1708694daac3c7a203950e994384
c55074cae33470f6a6f994b6029425a85818496e
/ci/push/push_request_status.py
ecdf79408a0a7f0f92ca547ca33b282c1840756e
[ "BSD-3-Clause" ]
permissive
marcalbaladejo/CumulusCI
4ebf590e71f4847f157b33f47da775070e0c7feb
f619d0d984f7bbfa3c6fcd6e33e41e64105cb4f5
refs/heads/master
2021-01-18T18:45:06.098227
2018-05-28T12:58:22
2018-05-28T12:58:22
62,956,012
1
1
BSD-3-Clause
2018-05-28T12:58:23
2016-07-09T15:32:32
Python
UTF-8
Python
false
false
3,568
py
import os import sys import csv import time from push_api import SalesforcePushApi # Force UTF8 output reload(sys) sys.setdefaultencoding('UTF8') completed_statuses = ['Succeeded','Failed','Cancelled'] if __name__ == '__main__': try: username = os.environ.get('SF_USERNAME') password = os...
[ "jlantz@salesforce.com" ]
jlantz@salesforce.com
f3f0a5e9be18f742ea1dfe2ba0c45ba7c077fe17
92209cc6de47e868dfaddae2e61048e40c7dfe66
/irc3/dec.py
8a969e4b7512fb7d818f2122dff763ef1c53f483
[ "LicenseRef-scancode-ietf", "CC-BY-3.0" ]
permissive
valhallasw/irc3
5f2305ca6c8df764da9a2ed0ba2eb1dda67dfb1f
628d1345cb5b09d90b087ae23d5caf26b25a2e7d
refs/heads/master
2020-12-28T23:15:30.414896
2014-12-23T18:01:19
2014-12-23T18:01:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,168
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import functools import venusian import re def plugin(wrapped): """register a class as plugin""" setattr(wrapped, '__irc3_plugin__', True) setattr(wrapped, '__irc3d_plugin__', False) return wrapped class event(object): """register a...
[ "gael@gawel.org" ]
gael@gawel.org
a858f211dff6a15e0d298437b89542752845bdc2
a33098d9f7f7402d07c7bb0663e260cab4772fd2
/src/users/posts/form.py
2dc9c69af1abf8af4a88703290b5b9829adf8efe
[]
no_license
EgbieAndersonUku1/myBlog
7906803c5c2f4300f1bcc672f397045894cc65b2
e4344064012aefa79042ba8d39911b29fb5b7554
refs/heads/master
2018-09-08T09:28:25.532806
2018-06-04T22:45:48
2018-06-04T22:45:48
106,434,750
0
0
null
null
null
null
UTF-8
Python
false
false
505
py
from flask_ckeditor import CKEditorField from flask_wtf.file import FileField, FileAllowed from users.base.base_ckeditor import BaseCKEditorForm from wtforms import validators class PostForm(BaseCKEditorForm): post = CKEditorField('body', validators=[validators.DataRequired()]) image = FileField('Post image...
[ "jayunderwood2011@hotmail.com" ]
jayunderwood2011@hotmail.com
ef1b5b110530027b90cb6abec967fb2dd7351f1a
43c24c890221d6c98e4a45cd63dba4f1aa859f55
/test/tests/class_setattr.py
2c965ee92a1f411d2b66a16ec117e84a366a141f
[ "Python-2.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
jmgc/pyston
c8e4df03c33c6b81d20b7d51a781d9e10148238e
9f672c1bbb75710ac17dd3d9107da05c8e9e8e8f
refs/heads/master
2020-12-11T07:51:58.968440
2020-09-11T14:38:38
2020-09-11T14:38:38
39,242,644
0
0
NOASSERTION
2020-09-11T14:38:39
2015-07-17T08:09:31
Python
UTF-8
Python
false
false
365
py
# expected: fail class C(object): pass # Make sure we can't skirt the tp_slot-updating logic in type.__setattr__ # by trying to use object.__setattr__ which wouldn't do the internal bookkeeping: def badrepr(): raise Exception() c = C() c.a = 1 try: object.__setattr__(C, '__repr__', badrepr) assert 0...
[ "kmod@dropbox.com" ]
kmod@dropbox.com
7718d73f031823f1b9ebf57030912b374108f3ba
34b09bc83e5726fccb524a93cf2742f5aeadedef
/1. List1/3.py
ea7f0c9ec964633f5a8273b37e01bb56d9eee59c
[]
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
360
py
T = int(input()) for test_case in range(1, T + 1): N=int(input()) count=[0 for _ in range(10)] num=input() for j in range(len(num)): count[int(num[j])]+=1 max_value=max(count) for j in range(len(count)): if(count[j]==max_value): max_index=j print("#{0} {1} {2}".fo...
[ "mjson1954@gmail.com" ]
mjson1954@gmail.com
a48fc9cb60eb6c923be2d70b30f0f7886cc487cc
51f2492a5c207e3664de8f6b2d54bb93e313ca63
/atcoder/abc047/c.py
cae6160fc3353b018fde5958ce7efe990bf07b41
[ "WTFPL", "LicenseRef-scancode-unknown-license-reference" ]
permissive
abeaumont/competitive-programming
23c5aabd587d7bb15a61efd3428838cb934233dd
a24c9b89941a59d344b51dc1010de66522b1a0dd
refs/heads/master
2023-09-01T09:50:58.267361
2023-07-31T18:00:10
2023-07-31T18:00:10
117,589,708
618
262
WTFPL
2023-07-12T17:36:20
2018-01-15T20:00:56
C++
UTF-8
Python
false
false
158
py
#!/usr/bin/env python3 # https://abc047.contest.atcoder.jp/tasks/arc063_a s = input() c = 0 for i in range(len(s) - 1): if s[i] != s[i + 1]: c += 1 print(c)
[ "alfredo.beaumont@gmail.com" ]
alfredo.beaumont@gmail.com
eddde73e43c26cf544ab18b8129edda1c503753b
f8e0a0584f0a808311085996597389c9592025af
/news/models.py
9a7f0d29ffb421a42c0e1a8c628f0f54155a2412
[]
no_license
virginiah894/Moringa-Tribune
5073e93d38538185820630c3933b48e183e92209
2af5daabad0bdd7f2895f7bd28816d7ad975ad9a
refs/heads/master
2021-09-09T20:57:37.903815
2019-12-13T08:45:46
2019-12-13T08:45:46
227,795,226
0
0
null
2021-09-08T01:31:55
2019-12-13T08:45:02
Python
UTF-8
Python
false
false
1,182
py
from django.db import models import datetime as dt class Editor(models.Model): first_name = models.CharField(max_length =30) last_name = models.CharField(max_length =30) email = models.EmailField() phone_number = models .CharField(max_length=10,blank=True) def __str__(self): return self.first_name def...
[ "virgyperry@gmail.com" ]
virgyperry@gmail.com
1b2931848fb0d2a2684a071cf19b28957ec21eef
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/sDvjdcBrbHoXKvDsZ_9.py
edb3defdc96258659cf2fc8e61b896bc9232188e
[]
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
711
py
""" Write a function that returns `True` if a given name can generate an array of words. ### Examples anagram("Justin Bieber", ["injures", "ebb", "it"]) ➞ True anagram("Natalie Portman", ["ornamental", "pita"]) ➞ True anagram("Chris Pratt", ["chirps", "rat"]) ➞ False # Not all letters are...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
b3f7befc0eebb80abe6961bb65b8ef7294dceba2
8b6b6ef3ac079aabcc0c44243447388bef87f671
/Projects/customDS.py
2ae2a9d67492f47a2805f04e91bd174016fe2e62
[]
no_license
ava6969/DataStructureAlgorithm
c4f35f2b616cd0393050c89b4c42bbad81c5ebcf
6e88c4aa2b18765d7c4f8a0d3bca5c62260cb0d2
refs/heads/master
2022-12-03T18:35:11.994182
2020-08-05T15:35:40
2020-08-05T15:35:40
283,895,054
0
0
null
null
null
null
UTF-8
Python
false
false
3,778
py
class Node: def __init__(self, value): self.value = value self.next = None class LinkedList: def __init__(self, head): self.head = head def append(self, value): if self.head is None: self.head = Node(value) return # Move to the tail (the la...
[ "ava6969@rit.edu" ]
ava6969@rit.edu
819d3872ba14d41ded94549d3c76b5a1426f8f46
56451b41a2a5f58ea3a1eaa265ab4bda3bf4a54e
/util/dataset_loader.py
49b42fc9aa289da317860e4a7e9bcf2186671c79
[]
no_license
peternara/Temperature-Scaling-Modesty-Loss
9c6285953b0012f00386092264d96a404f9dfcd8
7b6faadc2ac2ee989fdf80d674232800c337abda
refs/heads/master
2021-09-20T15:04:41.996247
2018-08-11T00:25:59
2018-08-11T00:25:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,972
py
from torchvision import transforms, datasets import torch def load_data(d, train=False, batch_size=100): """ Create and return dataloader for different dataset """ if d == "CIFAR10": transform = transforms.Compose([ transforms.ToTensor(), transforms.Normalize((0.4914, ...
[ "noreply@github.com" ]
peternara.noreply@github.com
06a27a5131b47c30f58ea7a14ae0ebb90452cdd7
d7b9b490c954c7a9160b69f8ce2c907ef4681ecb
/sponsors/migrations/0020_sponsorshipbenefit_unavailable.py
35c842d1e237e7274eb7082a46c37a7648d461c2
[ "Apache-2.0" ]
permissive
python/pythondotorg
00db93a4b1789a4d438806d106d9cee3349ad78c
c4ee749942227ca75c8e670546afe67232d647b2
refs/heads/main
2023-08-28T20:04:24.735314
2023-08-03T19:12:29
2023-08-03T19:12:29
6,127,047
1,131
646
Apache-2.0
2023-08-24T15:57:04
2012-10-08T16:00:15
Python
UTF-8
Python
false
false
588
py
# Generated by Django 2.0.13 on 2021-02-26 15:31 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("sponsors", "0019_sponsor_twitter_handle"), ] operations = [ migrations.AddField( model_name="sponsorshipbenefit", n...
[ "noreply@github.com" ]
python.noreply@github.com
d2f9d512547e26c1ad69be07364a71dcada3972a
30323e6d5e179994cc25438def9de3dfc07be4a5
/src/aulas/06.py
3c4f9ebdb4be7f0f40b9c691bef140cfa1130c9b
[]
no_license
claudimf/python_oo_2
31f9c065be6bd9905fe85c6ea5b8cc715cc4e463
76b23a0a60433fbe62775aae9e1f0cd8af0b324b
refs/heads/main
2023-03-18T09:09:48.044179
2021-03-11T19:23:44
2021-03-11T19:23:44
346,146,982
0
0
null
null
null
null
UTF-8
Python
false
false
1,192
py
class Programa: def __init__(self, nome, ano): self._nome = nome.title() self.ano = ano self._likes = 0 @property def likes(self): return self._likes def dar_like(self): self._likes += 1 @property def nome(self): return self._nome @nome.set...
[ "claudi.freitas.prs@synergiaconsultoria.com.br" ]
claudi.freitas.prs@synergiaconsultoria.com.br
56561bec3c40305d5c936acd30ffbfb98423bb19
c6a4069e265325e836e4ee79fae0f5490f1a1c47
/main/fight.py
ecdf67993300f502fc89fad3b4f83cdf03f39bd1
[]
no_license
astoeff/clean-code-course-project
b2ca1d10b226ea95b602d2535810c9af5aadb244
2b64956ea1b33cba405ccd500bf1a5472a65e9c4
refs/heads/master
2022-11-19T05:04:20.992189
2020-07-17T17:12:59
2020-07-17T17:12:59
274,676,681
0
0
null
2020-07-17T17:13:00
2020-06-24T13:32:49
Python
UTF-8
Python
false
false
2,299
py
from constants import (DIRECTIONS_WITH_THEIR_OPPOSITES_DICTIONARY, FIGHT_INITIAL_INFORMATION_PART, PLAYER_ZERO_DAMAGE_WHEN_ATTACKING, FIGHT_HERO_ATTACK_INFORMATION_PART, FIGHT_HERO_CANNOT_ATTACK_INFORMATION_PART, FIGHT_ENEMY_ATTACK_INFORMATION_PART, F...
[ "antoni.1998@abv.bg" ]
antoni.1998@abv.bg
38f1ba00d5c6f04f70636de75b00cc1ff16b61a0
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/tdeboissiere_DeepLearningImplementations/DeepLearningImplementations-master/DenseRecNet/run_cifar10.py
8954c52f75b145ad8895faf0eb255a39e448500e
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
7,214
py
from __future__ import print_function import os import time import json import argparse import denserecnet import numpy as np import keras.backend as K from keras.datasets import cifar10 from keras.optimizers import Adam from keras.utils import np_utils def run_cifar10(batch_size, nb_epoch, ...
[ "659338505@qq.com" ]
659338505@qq.com
b66b465a380d4e26fe2fe4a7d4d23968a5dc804e
e797d6ec2088b3471d15ce802f1d79d931194f3a
/NonRPFRasterLoader_ToolValidator.py
3d574f94818729ab191b74a13b0639f4dc7003ef
[]
no_license
mfunk/MA-Storage
20a5427644b4cd7929e5e07c5af35c79839de0d6
c103f346111c1c4d46408d69be46f8bc1ddddc3a
refs/heads/master
2020-04-15T23:42:38.718055
2014-07-21T16:57:31
2014-07-21T16:57:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,660
py
#!/usr/bin/env python class ToolValidator: """Class for validating a tool's parameter values and controlling the behavior of the tool's dialog.""" def __init__(self): """Setup the Geoprocessor and the list of tool parameters.""" import arcgisscripting as ARC self.GP = ARC.create(9.3) self.params ...
[ "mfunk@esri.com" ]
mfunk@esri.com
6f87adaee3c5827635ea027b2d5a1ba7c53ad949
2df1bce0d11ba43ad213f887b68b8bc1e1e41d33
/bin/terminal.py
517ecda5789203347258f60e8731864ddb316bed
[]
no_license
rheiland/pc4training
80aead99e7859ec004044985492db736c8e0c6e4
d37af1d9c0db228254b7679fe04cdff88d1558a1
refs/heads/master
2020-09-06T02:54:58.824853
2019-11-13T16:53:12
2019-11-13T16:53:12
220,296,397
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
from ipywidgets import Output from IPython.display import display, HTML class TerminalTab(object): def __init__(self): # self.tab = Output(layout={'height': '600px'}) self.tab = Output(layout={'height': 'auto'}) self.tab.append_display_data(HTML(filename='doc/about.html')) ...
[ "heiland@indiana.edu" ]
heiland@indiana.edu
1d4357ed6ca5e069e3e9bd0e47f3243eb8abe665
facb8b9155a569b09ba66aefc22564a5bf9cd319
/wp2/kikoAnalysis/wndResFiles/70-tideGauge.py
782e71b5030c2122e3b4de8378784692225ba5a2
[]
no_license
moinabyssinia/modeling-global-storm-surges
13e69faa8f45a1244a964c5de4e2a5a6c95b2128
6e385b2a5f0867df8ceabd155e17ba876779c1bd
refs/heads/master
2023-06-09T00:40:39.319465
2021-06-25T21:00:44
2021-06-25T21:00:44
229,080,191
0
0
null
null
null
null
UTF-8
Python
false
false
1,382
py
# -*- coding: utf-8 -*- """ Created on Mon Sep 28 11:52:48 2020 @author: Michael Tadesse """ import os import pandas as pd dir_in = "/lustre/fs0/home/mtadesse/eraFiveConcat" os.chdir(dir_in) tgList = os.listdir() x = 70 y = 71 #looping through individual tide gauges for ii in range(x, y): os.chdir(tgList[i...
[ "michaelg.tadesse@gmail.com" ]
michaelg.tadesse@gmail.com
469e93af04882d13a845caada52a607ad02fef3e
1c52ae4b10bb033e8f65a66254a13ba8a22d5e03
/helium/common/permissions.py
18f57d68c540967cc5992d700522d0141e76e1a9
[ "MIT" ]
permissive
vaibhavmathur91/platform
2fa488e449b02e7a82e4759517663822addb6a34
529b7047fbbcdbcfc4766156331da1b6c9ced0fa
refs/heads/master
2020-03-18T15:57:27.883761
2018-05-25T23:13:54
2018-05-25T23:13:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
335
py
import logging from rest_framework import permissions __author__ = 'Alex Laird' __copyright__ = 'Copyright 2018, Helium Edu' __version__ = '1.0.0' logger = logging.getLogger(__name__) class IsOwner(permissions.BasePermission): def has_object_permission(self, request, view, obj): return obj.get_user() =...
[ "alexdlaird@gmail.com" ]
alexdlaird@gmail.com
39b37f4b8dad13e40b2b69dff70d5dfde738a0cf
37f675391762db798b712a0da0b760f03adc3b44
/NEWS_HUB/bin/gunicorn
e9b7c5956d85b26d498dd35f1f5cf362f4575eb6
[ "MIT" ]
permissive
Ken-mbira/News_Hub
03c7d9d25b0e9b85949d0b3c9052369e0ee34f2c
c68768dd4f958c9dc74300d036ad69c518d3ce80
refs/heads/master
2023-08-06T18:16:03.668655
2021-09-13T12:57:11
2021-09-13T12:57:11
404,722,962
0
0
null
null
null
null
UTF-8
Python
false
false
277
#!/home/kenmbira/Documents/MoringaProjects/Week8/NEWS_HUB/NEWS_HUB/bin/python3 # -*- coding: utf-8 -*- import re import sys from gunicorn.app.wsgiapp import run if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run())
[ "ken.mbira@student.moringaschool.com" ]
ken.mbira@student.moringaschool.com
d7e27c0c62004c1e8373b6bb6984fb7b6c32f33c
3c831000ed8639c9187df6252ec7077a9a31d7df
/calender_visualizer.py
34e5dbebaaeb66d368c3e8cc89df18b378a0cea7
[]
no_license
robbynickles/mjc_schedulerB
0790f7e1ddeba87c5c28e81e923e44338fd3ef54
fa09632972ea071b7e629df479c2af1093add97f
refs/heads/master
2021-01-02T08:34:05.965140
2014-07-27T17:15:20
2014-07-27T17:15:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,373
py
from kivy.app import App from kivy.uix.floatlayout import FloatLayout from kivy.uix.label import Label from kivy.uix.slider import Slider from kivy.graphics import Color, Bezier, Line, Rectangle from random import randint half = [ i +':00'for i in ['12', '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '1...
[ "r.nickles7@gmail.com" ]
r.nickles7@gmail.com
1c29dc1ecfe316faa78fb563f818acb64a7520f9
a613e5ec5d996bb1a60e6f4d417f44fe7241f867
/Arrays/Merge overlapping ranges.py
9bbaea8f72939902888ff0dd2ad24449a7cd16ba
[]
no_license
Nisar-1234/Data-structures-and-algorithms-1
f0e2d9e63ee8baa35f12d106ee879ccb060c4caf
777634f01d8b10a92a97c927ec09499ba08a28a4
refs/heads/main
2023-06-26T04:03:30.474025
2021-07-28T19:33:28
2021-07-28T19:33:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
341
py
def merge(ranges): ranges.sort() stack = [] stack.append(ranges[0]) for i in range(1,len(ranges)): if ranges[i][0] <= stack[-1][1]: stack[-1][1] = max(stack[-1][1],ranges[i][1]) else: stack.append(ranges[i]) return stack ranges = [[2,13],[8,20]] ...
[ "noreply@github.com" ]
Nisar-1234.noreply@github.com
02f1ceb7c09effbcdc1c59b7067690ae0c023e77
6bc0cef468f97914fab31dd83bd417b4a5321051
/py_checkio_solutions/Scientific Expedition/sum_by_type.py
ffa4fc777499a9847d22d02d2db4f233d0699a2f
[]
no_license
todatech/checkio
14f19ef111a3f222b369937c90746c47bf2c3a63
763a9e0f81470302b173a4a700b77bed4f71de7a
refs/heads/master
2023-02-01T16:04:39.018699
2020-12-21T01:46:38
2020-12-21T01:46:38
303,469,336
0
0
null
null
null
null
UTF-8
Python
false
false
1,263
py
#!/usr/bin/env checkio --domain=py run sum-by-type # You have a list. Each value from that list can be either a string or an integer. Your task here is to return two values. The first one is a concatenation of all strings from the given list. The second one is a sum of all integers from the given list. # # Input:An a...
[ "tonani@gmail.com" ]
tonani@gmail.com
28307b976fc960f266e1401750875eb574c139e9
05ff9a0778ae16c4b3f29a4e4198e3f829dee409
/ecommerce_app/migrations/0014_paynowpayment.py
8d6fc7931cacfb59e11ca1edb1b61580301c8544
[]
no_license
Inoxevious/malinafro
8aa87b3b2a5473430ff57790ebccb2aaba6d8493
7b5b255997a9f54272c4320ed939b8e24c84b910
refs/heads/main
2023-01-20T14:32:23.049381
2020-12-02T09:21:47
2020-12-02T09:21:47
314,222,344
0
1
null
null
null
null
UTF-8
Python
false
false
1,727
py
# Generated by Django 3.0.8 on 2020-11-24 14:19 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ecommerce_app', '0013_or...
[ "mpasiinnocent@gmail.com" ]
mpasiinnocent@gmail.com
aba30190b9406ca34264eac7310ecebc0beed81d
ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0
/02_algorithm/baekjoon/problem/1000~9999/7562.나이트의이동/7562.py
4723f88cb7b7f2278519430d1b57259805f660b1
[]
no_license
wally-wally/TIL
93fc1d0e3bc7d030341ed54155294c68c48b4c7d
936783bc86f563646c0398c24e2fcaa707f0ed23
refs/heads/master
2023-04-28T08:59:48.235747
2023-04-12T12:06:52
2023-04-12T12:06:52
195,918,111
40
7
null
2020-09-29T16:20:46
2019-07-09T02:31:02
Python
UTF-8
Python
false
false
1,199
py
import sys sys.stdin = open('input_7562.txt', 'r') def BFS(row, col): queue = [] dx = [-2, -1, +1, +2, +2, +1, -1, -2] dy = [+1, +2, +2, +1, -1, -2, -2, -1] queue.append([row, col]) visited[row][col] = True move_cnt = 0 while True: temp_list = [] move_cnt += 1 while ...
[ "wallys0213@gmail.com" ]
wallys0213@gmail.com
eb87b42045e37801ae1ccabf5fe794faad9c9aa5
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/kws_streaming/layers/dct_test.py
b359966280714820cd4c94950e26aec8aedb04af
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
2,605
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
b08e0b567a118d75a7d4962d1ede12db6030b181
f957ad3b17e4172791ef93c38dc131f34be3545f
/corpus/location.py
055bd4a146c76db39ef38918a757b68baf6a2eee
[ "Apache-2.0" ]
permissive
LeMyst/ConferenceCorpus
e43c1806165fbb24a6b312a3ad81d4142b1edfe5
727afb6f5c9b2e3807260a6161a27531b2f77dd2
refs/heads/main
2023-09-05T08:39:29.811243
2021-11-08T07:43:02
2021-11-08T07:43:02
426,408,944
0
0
Apache-2.0
2021-11-09T22:38:53
2021-11-09T22:38:52
null
UTF-8
Python
false
false
6,815
py
''' Created on 2021-08-11 @author: wf ''' #from lodstorage.entity import EntityManager from geograpy.locator import LocationContext from OSMPythonTools.nominatim import Nominatim import os import logging class LocationLookup: ''' lookup locations ''' preDefinedLocations={ "Not Known": None, ...
[ "wf@bitplan.com" ]
wf@bitplan.com
3ef28cffc4c66730c648b8fa86a3b1eb738a771c
b521802cca8e4ee4ff5a5ffe59175a34f2f6d763
/maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119192913.py
c890a70582358ec2307bee469503689adbba361f
[]
no_license
all-in-one-of/I-Do-library
2edf68b29558728ce53fe17168694ad0353a076e
8972ebdcf1430ccc207028d8482210092acf02ce
refs/heads/master
2021-01-04T06:58:57.871216
2019-12-16T04:52:20
2019-12-16T04:52:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,099
py
# -*- coding:utf-8 -*- # Require Header import os import json from functools import partial # Sys Header import sys import traceback import subprocess import plugin.Qt as Qt from Qt.QtCore import * from Qt.QtGui import * from Qt.QtWidgets import * def loadUiType(uiFile): import plugin.Qt as Qt if Qt.__bindin...
[ "2595715768@qq.com" ]
2595715768@qq.com
b89f3d90b055cd7e487503b5d88b55929f5bba30
2e4290bc1bee155cb8f95bdf7681b58325c8746e
/School/crop/forms.py
06dc1db5004099b9a33e20985574b5242b21b1d6
[]
no_license
codingspider/Schoolscript
bb7b539655417e8ee92dae27cedad69c386f5d80
7b61d7edb0b5ca4d4767622a02d8727f55510aec
refs/heads/master
2022-12-14T12:06:15.351705
2020-09-08T11:22:27
2020-09-08T11:22:27
289,896,735
0
0
null
null
null
null
UTF-8
Python
false
false
1,397
py
from PIL import Image from .models import PointOfInterest, Rental from django import forms from django.core.files import File # class PhotoForm(forms.ModelForm): # x = forms.FloatField(widget=forms.HiddenInput()) # y = forms.FloatField(widget=forms.HiddenInput()) # width = forms.FloatField(widget=forms.Hi...
[ "engrokon.rok@gmail.com" ]
engrokon.rok@gmail.com
e6401021ad628fdb35351d2021abefaacd6de2d1
d98d5d1af8c31bb7aa0b628d48e504db2ebecbc8
/分子反映分类/demo.py
ba68e44b7314565046756df256fdf2aa2c14c27c
[]
no_license
dugzzuli/kaggleDemo
1d52b931e4399551bc92d7cd40bc9453223ede49
65c91c42bf9b01eaca3c071b1ce210f214814433
refs/heads/master
2021-01-20T04:15:34.768985
2017-04-30T14:57:57
2017-04-30T14:57:57
89,662,511
0
0
null
null
null
null
UTF-8
Python
false
false
3,112
py
"""Kaggle competition: Predicting a Biological Response. Blending {RandomForests, ExtraTrees, GradientBoosting} + stretching to [0,1]. The blending scheme is related to the idea Jose H. Solorzano presented here: http://www.kaggle.com/c/bioresponse/forums/t/1889/question-about-the-process-of-ensemble-learning/10950#pos...
[ "bingwei2642@qq.com" ]
bingwei2642@qq.com
422e81d7dc8990d09e10b9f966d4575ed58f6625
aef1c0d4a32fa10afae10393c850960f9d89cdbc
/MiRegionCO/apps/noticia/migrations/0005_auto_20170722_1413.py
539cffd200c033897d8312e8478b827075b333a1
[]
no_license
joselofierro/MiRegionCO
587059244fc153f32c6eaac8e41fab05bdeb5937
781491dc81a2dff7a8ae237d4ea7e23b31a31c52
refs/heads/master
2021-11-09T11:23:41.189863
2018-01-16T16:53:34
2018-01-16T16:53:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
653
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-07-22 14:13 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('noticia', '0004_noticia_destacada'), ] operations = [ migrations.AddField( ...
[ "juliofierro@Mac-mini-de-JULIO.local" ]
juliofierro@Mac-mini-de-JULIO.local
6c12f87994931874e395ce5e3a254320cbfa4375
ded564e6571f59df13a3f5d753c6c54f207261c1
/thermo/units.py
57c989069162d21bb322e48ddecc82bec6677b5e
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
simonmb/thermo
580ae53e764e00e601a5ef4a918e8d4a77442257
9abbb0ea71abe8677155e029d01aebe74cce137f
refs/heads/master
2021-12-13T23:34:50.774780
2021-11-11T22:27:21
2021-11-11T22:27:21
144,257,869
1
0
MIT
2018-08-10T08:15:47
2018-08-10T08:15:46
null
UTF-8
Python
false
false
3,232
py
# -*- coding: utf-8 -*- '''Chemical Engineering Design Library (ChEDL). Utilities for process modeling. Copyright (C) 2017, 2018, 2019 Caleb Bell <Caleb.Andrew.Bell@gmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software...
[ "Caleb.Andrew.Bell@gmail.com" ]
Caleb.Andrew.Bell@gmail.com
1da55da5caaa3b90460be0fb0e117a0a33a47b72
847815fd6d24859dd0e41a3e53fd29df63b0e8f3
/solutions/CombinationSumII.py
27391dee0f2916f041e7fa29ac75d529b173e5ce
[]
no_license
howardhe0329/leetcode
68c2f901ed15e1904241bb31f9fcba5cdc0cb6dd
588a86282b8cc74fa14d810eb3a532c5c3e6de81
refs/heads/master
2020-07-04T13:03:08.134205
2015-12-25T14:40:20
2015-12-25T14:40:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,327
py
__author__ = 'Daoyuan' from BaseSolution import * class CombinationSumII(BaseSolution): def __init__(self): BaseSolution.__init__(self) self.push_test( params = ([10,1,2,7,6,1,5], 8,), expects = [ [1, 7], [1, 2, 5], [2, 6], ...
[ "this@caunion.me" ]
this@caunion.me
4e13646e0695fb15fe65d9cba62592a5336a05f7
401fc99cefe615f8ebefb6dd9c2b043c506f5bd0
/tests/units/test_helpers.py
6604d3b7ffe74c4a297010609d9e2ed3d39c7a8e
[ "MIT" ]
permissive
atviriduomenys/spinta
0f85496860ebbcecfccd8dde2bf219564ee66baa
1fac5b6b75ec65188d815078fd135bc05d49b31c
refs/heads/master
2023-09-02T13:22:58.411937
2023-08-18T12:59:17
2023-08-18T12:59:17
168,724,854
12
4
MIT
2023-09-14T13:29:39
2019-02-01T16:16:11
Python
UTF-8
Python
false
false
1,069
py
import pytest from spinta.units.helpers import is_si_unit from spinta.units.helpers import is_time_unit @pytest.mark.parametrize('unit', [ '1D', 'D', 'Y', '3M', '12H', ]) def test_valid_time_unit(unit: str): assert is_time_unit(unit) @pytest.mark.parametrize('unit', [ 'D1', 'd', ...
[ "sirexas@gmail.com" ]
sirexas@gmail.com
e69a3b71d01b4f76b8c9c0a1d9ffdb9bc82b442b
38258a7dd9acbfb7adf72983015de68a948a4826
/B_10000~/B_10871.py
e6b311cfbec7336a975db6800540699eb27bee56
[]
no_license
kangsm0903/Algorithm
13a7fe5729039a1d0ce91a574c4755a8a92fb02b
7d713d1c9e2e4dc30141d4f409ac1430a357065b
refs/heads/master
2022-10-04T00:33:49.247977
2022-09-26T12:51:16
2022-09-26T12:51:16
219,265,010
5
1
null
null
null
null
UTF-8
Python
false
false
178
py
# # 11/15 10871번 N,X = input().split() N = int(N) X = int(X) A = list(map(int,input().split())) B = [] for i in range(0, N): if (A[i] < X) : print(A[i], end=' ')
[ "kangsm0903@naver.com" ]
kangsm0903@naver.com
c7f221ee2ca5d98b9105f235c3746a617815877c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03168/s894090351.py
90c251f91b9e6ad5b7d11301831dc58de6c7936d
[]
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
328
py
n = int(input()) arr = list(map(float,input().split())) dp=[] for i in range(n+1): dp.append([0]*(n+1)) dp[1][0]=(1-arr[0]) dp[1][1]=arr[0] for i in range(2,n+1): for j in range(0,i+1): dp[i][j]= dp[i-1][j-1]*arr[i-1] + dp[i-1][j]*(1-arr[i-1]) ans=0 for i in range(n//2+1,n+1): ans+=dp[n][i] print...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
1607857a4861051a4af79b0e93cb41a76d4659c2
311e9f909ec8c63c40a6b09d70006da4f2e0a7d5
/tfx/utils/model_paths/tf_serving_flavor_test.py
7c1ad2f866b85cae9556b377d17a85091bfcd24f
[ "Apache-2.0" ]
permissive
18jeffreyma/tfx
793fbc6c0597d88d16ac551bae9eddfd18ff1542
ff6917997340401570d05a4d3ebd6e8ab5760495
refs/heads/master
2022-12-15T16:18:15.578839
2020-08-31T20:34:05
2020-08-31T20:34:56
274,276,728
3
0
Apache-2.0
2020-09-16T18:58:02
2020-06-23T01:08:19
Python
UTF-8
Python
false
false
2,855
py
# Copyright 2020 Google LLC. 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 applicable law or a...
[ "tensorflow-extended-team@google.com" ]
tensorflow-extended-team@google.com
38d5fcccac7e170f152339629aea554fd246c000
8c9c27cb88a2d210a5e2fb5803fe89204dba95ef
/phy/cluster/manual/tests/test_views.py
840eb0c9c9512508abe958d990f4ba57f638d4fd
[]
no_license
arnefmeyer/phy
c13b1eceb70ee72cf0ff9c4a273e195f122fabc4
14663e1f2baad421d6bc9f420d34170c6c969bbe
refs/heads/master
2020-12-07T15:42:49.605432
2016-04-20T21:10:38
2016-04-20T21:10:38
56,718,986
1
0
null
2016-04-20T20:32:18
2016-04-20T20:32:18
null
UTF-8
Python
false
false
6,873
py
# -*- coding: utf-8 -*- """Test views.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import numpy as np from numpy.testing import assert_equal as ae from numpy.testing import assert_allclose...
[ "cyrille.rossant@gmail.com" ]
cyrille.rossant@gmail.com
182b04bde697101e629bf4f0c85d2c853c1567a5
dc0b6b680fd1fc0ab86ed7a3460137cde3a8612d
/Meus códigos/Python/Economia/mdic/mdic_1f.py
ec1951120d5e6bd7b7c22b8aa57b02d253aed461
[]
no_license
pedromfnakashima/codigos_versionados
6c8c692bc08a0dda39a82bf91c5245f28d9be330
c40c94d69f1ee3dd4317786f1c25bcc1bbcc2bb9
refs/heads/main
2023-03-21T20:32:53.677701
2021-03-20T00:03:10
2021-03-20T00:03:10
305,754,740
0
0
null
null
null
null
UTF-8
Python
false
false
5,097
py
# -*- coding: utf-8 -*- """ Created on Wed Nov 25 12:40:44 2020 @author: pedro-salj """ ############################# ##### CONFIGURAÇÃO GERAL #### ############################# globals().clear() """ Mudar diretório """ import os from pathlib import Path import getpass if getpass.getuser() == "pedro": caminho_base...
[ "pedromfnakashima@gmail.com" ]
pedromfnakashima@gmail.com
ae00981c254d0dc088012dfacb9cdee40e031a73
0aec617440075b73e5da64cd1477b6a098ed864c
/data_structures/Project_Show_me_Data_Structures/active_directory.py
f76d2179be46597200adc649a3296be5cf3735c2
[ "MIT" ]
permissive
severian5it/udacity_dsa
0b1512cc8c5125149d6be6f78fa14446e7ab5c25
e47f27b0179961d6107fe46a236ac7d887fe6816
refs/heads/main
2023-03-07T02:24:37.299599
2021-02-14T10:34:50
2021-02-14T10:34:50
316,949,338
0
0
null
null
null
null
UTF-8
Python
false
false
1,943
py
class Group(object): def __init__(self, _name): self.name = _name self.groups = [] self.users = [] def add_group(self, group): self.groups.append(group) def add_user(self, user): self.users.append(user) def get_groups(self): return self.groups def ...
[ "pierluca@amazon.com" ]
pierluca@amazon.com
4fc662539852d925c3aa23683981860cecb38cb4
e2590e0a78046a22131b69c76ebde21bf042cdd1
/ABC201_300/ABC243/B.py
e7f62726863d27002413f7819fe6d8366e13c7d8
[]
no_license
masato-sso/AtCoderProblems
b8e23941d11881860dcf2942a5002a2b19b1f0c8
fbc02e6b7f8c6583e5a4e5187463e0001fc5f4d8
refs/heads/main
2023-01-22T23:57:58.509585
2023-01-21T14:07:47
2023-01-21T14:07:47
170,867,816
0
0
null
null
null
null
UTF-8
Python
false
false
377
py
N = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) def getIndex(l, x): if x in l: return l.index(x) else: return -1 ans1 = 0 ans2 = 0 for aIdx,a in enumerate(A): bIdx = getIndex(B,a) if(bIdx == -1): continue if(aIdx == bIdx): a...
[ "masato@seijinnoMacBook-Pro-2.local" ]
masato@seijinnoMacBook-Pro-2.local
cad633fa0cd47dc61a6c9b15c55400e0fab5095e
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5634697451274240_0/Python/Quorrin/pancakes.py
c760b7448180fb75bcb85128bc8bb4b5612e82e8
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
2,251
py
f = open('input.in', 'r') n = int(f.readline().strip()) out = open('output.txt', 'w') pancakeDict = {} def condenseStack(pancakes): newStack = [] previous = "" for i in range(len(pancakes)): if pancakes[i] != previous: newStack.append(pancakes[i]) previous = pan...
[ "alexandra1.back@gmail.com" ]
alexandra1.back@gmail.com
df403f3387076740ba819c48f201f9fb9d443b4a
b5c92150b0fb76daf9b8725c7a64ba1b54f2d9c7
/product_grammage/models/purchase.py
7804f5922d646144f5f8f8d4ae275d50bff4d991
[]
no_license
hashemalycore/CMNT_00107_2017_SAR_addons
63da3c66eddc99b585671cc85a53661a497771aa
071646e495fcd9563f72a02f6630ee4d70afa438
refs/heads/master
2020-04-02T10:25:32.457793
2018-02-12T13:09:16
2018-02-12T13:09:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
475
py
# -*- coding: utf-8 -*- # © 2017 Comunitea Servicios Tecnológicos S.L. (http://comunitea.com) # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import models, fields class PurchaseOrder(models.Model): _inherit = 'purchase.order.line' thread = fields.Float('Thread', related='pro...
[ "javierjcf@gmail.com" ]
javierjcf@gmail.com
4a25a135777867175549f9b2359a28dc05cfc0ef
ed0ed8863e05384db504fa58e47db1b49977bb7d
/AnalysisAndDesignOfAlgorithms/python/package_memory.py
350a2ed835ac8013a3fae6aeca7fb450a8b27701
[]
no_license
rogeroyer/Accumulation
fa4f6083cd1fe3d112fe4d62275280033070b174
ac04f486761744362c57abcc51f7768c775f270c
refs/heads/master
2022-07-22T18:58:05.679619
2022-07-14T04:39:53
2022-07-14T04:39:53
102,483,020
10
33
null
null
null
null
UTF-8
Python
false
false
2,218
py
class package_memory_deal(object): def __init__(self, weight, value, max_weight, printMatrix=False): self.weight = weight # 存储重量 # self.value = value # 存储权值 # self.max_weight = max_weight # 背包所能承受最大重量 # self.array_length = len(self.value) # 物品个数 # self.select = [[-1 for...
[ "noreply@github.com" ]
rogeroyer.noreply@github.com
8c6b878927c7dac6590fca1e63d2cfb1a5ef4b1f
32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd
/benchmark/vanilla/testcase/firstcases/testcase3_003.py
cf0d72f444c3338e02c82106cee27e79e171819d
[]
no_license
Prefest2018/Prefest
c374d0441d714fb90fca40226fe2875b41cf37fc
ac236987512889e822ea6686c5d2e5b66b295648
refs/heads/master
2021-12-09T19:36:24.554864
2021-12-06T12:46:14
2021-12-06T12:46:14
173,225,161
5
0
null
null
null
null
UTF-8
Python
false
false
4,748
py
#coding=utf-8 import os import subprocess import time import traceback from appium import webdriver from appium.webdriver.common.touch_action import TouchAction from selenium.common.exceptions import NoSuchElementException, WebDriverException desired_caps = { 'platformName' : 'Android', 'deviceName' : 'Android Emulat...
[ "prefest2018@gmail.com" ]
prefest2018@gmail.com
374c6dc3c8939e43c4c3fecd5522911c9253d932
c8098e3907f39210ac159cf78f66cd871440fc10
/vagrant/lesson 1/database_setup.py
45e857aab66b72fc7b79507451798969667f5bee
[]
no_license
jaapdejong/fullstack-nanodegree-vm--ud088
e297dbc421d19df61499a16ae87ca572426228df
ba383a9ab7a315279e4acd0425bbca1e25ba943a
refs/heads/master
2021-06-11T23:14:37.669565
2017-01-22T11:59:55
2017-01-22T11:59:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
855
py
#!/usr/bin/python import os import sys from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship from sqlalchemy import create_engine Base = declarative_base() class Restaurant(Base): __tablename__ = 'restaurant' ...
[ "jaap.dejong@nedap.com" ]
jaap.dejong@nedap.com
4f657bc1f1c2e30b69b8ba84ed32bd6ee4e0ddf7
76133934b1dd287273a9bfa0c801d10d08a21b21
/test/functional/getchaintips.py
95d9627833e5526bc62095eaf21841cd9365d834
[ "MIT" ]
permissive
kenfmcoin/kenfmcoin
d8783b34fcb3ae01067e8d1b33e3a73e3b82b1f9
1fa48487593233f2066757dc54f48b2349e2d9db
refs/heads/master
2020-03-10T17:53:31.569229
2018-04-14T12:28:55
2018-04-14T12:28:55
129,511,375
0
0
null
null
null
null
UTF-8
Python
false
false
2,183
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The KenFMcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the getchaintips RPC. - introduce a network split - work on chains of different lengths - join ...
[ "37983255+spineinhalb@users.noreply.github.com" ]
37983255+spineinhalb@users.noreply.github.com
10f80e4c65bd78181993027e8a5a587a62070faf
cfbf8e78017a7c97107112680b04b2733bd27f8e
/Raw_data_Modules/Modules/DatabaseConnector.py
852a60a6801bde9f0fdb33ac213cfeb2f701874b
[]
no_license
WenRichard/Web-page-Recommendation
bdd279e382a119a2068480f5f49e1703d0703777
0757b43f2d3f62c29c4aca9c1dd7a8b327204f32
refs/heads/master
2020-03-27T20:11:58.218795
2018-09-02T04:46:46
2018-09-02T04:46:46
147,047,687
0
0
null
null
null
null
UTF-8
Python
false
false
1,933
py
import pymysql import pandas as pd # 连接数据库 def connector(host, user, password, database): db = pymysql.connect(host, user, password, database) return db # 断开数据库 def closer(db): db.close() return "the database has been closed." # 读取数据:从csv文本文件 # url, date, features(1~n), labels(1~m) class CSVReader...
[ "xiezhengwen2013@163.com" ]
xiezhengwen2013@163.com
b39c2f3984971a040831df35e49517e3fb93df8c
3e63befd66d0f8fddaba4ce8c1ed73525c32a5aa
/venv/Lib/site-packages/mediapipe/calculators/core/sequence_shift_calculator_pb2.py
ec7af4e37ba7cb45a6a8086a1af24275c15bee53
[ "MIT" ]
permissive
tanvirtareq/awesome-hand-gesture-detection
b0ecc6636e810412950b705e6ef5c1d83099b547
ccc836557b730cf34861301712de0de3eec1076d
refs/heads/main
2023-06-04T02:24:34.452783
2021-06-18T11:36:39
2021-06-18T11:36:39
389,102,297
1
0
MIT
2021-07-24T13:10:45
2021-07-24T13:10:45
null
UTF-8
Python
false
true
3,553
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: mediapipe/calculators/core/sequence_shift_calculator.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message fro...
[ "airriaislam@gmail.com" ]
airriaislam@gmail.com
c9bc5d6c76ec5047e3101a82c773eb67ac5b156d
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Keras_tensorflow/source/tensorflow/contrib/tensor_forest/client/random_forest_test.py
1e774dab2b06f2db402aebc4b8b64d052e5a56d6
[ "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
3,224
py
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
80d38101f88dedd6685e1de271ee7ba897dc1487
3db48e7c13b330af7c488820d14d22edf0a7cfda
/그래프 이론/[10-3]위상정렬 알고리즘.py
06fd577232f9442862e3ff32bd6969a65947f818
[]
no_license
kim-kiwon/Coding-test
1555d7e7699a21655e86f892e76f784accf4b9cc
aa8563ab54596c9c6dace84494d4f68fbd8e97f4
refs/heads/master
2023-04-01T10:04:11.152485
2021-04-05T10:17:51
2021-04-05T10:17:51
328,202,195
0
0
null
null
null
null
UTF-8
Python
false
false
1,370
py
#위상정렬 알고리즘 : 방향 그래프로 순서가 주어질 경우. 모든 노드를 순서에 거스르지 않고 정렬. #선수과목 고려한 수강신청이 주된 문제. #진입차수 0 인 노드 큐에 삽입. 큐에서 제거시 해당 노드에서 나가는 간선 모두제거. 반복 #큐가 비었는데 방문하지 않는 노드가 남았다 -> 사이클존재 (남은 노드 중에 진입차수 0 인 노드가 없게되므로) from collections import deque v, e = map(int, input().split()) indegree = [0] * (v+1) #진입차수 0으로 초기화 graph = [[] for i in ra...
[ "76721493+kim-kiwon@users.noreply.github.com" ]
76721493+kim-kiwon@users.noreply.github.com
1431f3ebabae290a7e25a9c3f1c2fd5ffb3a26eb
34652a47355a8dbe9200db229a1bbc62619de364
/Matlibplots/samples2/contour_label_demo.py
44ac1ddc73c54dcdf9cad3b695a1f9fb4dc177ef
[]
no_license
btrif/Python_dev_repo
df34ab7066eab662a5c11467d390e067ab5bf0f8
b4c81010a1476721cabc2621b17d92fead9314b4
refs/heads/master
2020-04-02T13:34:11.655162
2019-11-10T11:08:23
2019-11-10T11:08:23
154,487,015
0
1
null
null
null
null
UTF-8
Python
false
false
2,319
py
#!/usr/bin/env python """ Illustrate some of the more advanced things that one can do with contour labels. See also contour_demo.py. """ import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.ticker as ticker import matplotlib.pyplot as plt matplotlib.rcParams...
[ "bogdan.evanzo@gmail.com" ]
bogdan.evanzo@gmail.com
4e950512f3e46044884aa3e2cb21adc6db35ee7a
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-2/d1fcf255c5402d75a3f7b450bd1e795196d5817a-<_login>-bug.py
e920b6d9685aacf11b23547d526d2bc7ebec0fda
[]
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
1,497
py
def _login(self): (username, password) = self._get_login_info() if (username is None): return (_, urlh) = self._download_webpage_handle('https://learning.oreilly.com/accounts/login-check/', None, 'Downloading login page') def is_logged(urlh): return ('learning.oreilly.com/home/' in co...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
b6f1115d4f04e8309fb6d9dd7f163c32b2b8bf2e
e23a4f57ce5474d468258e5e63b9e23fb6011188
/090_logging/_exercises/_templates/Python Logging Basics/004_Example 3 – Log File.py
a2705a8ad6d0da1023b298252b981003efb9282c
[]
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
1,263
py
# # The final option is to log messages directly to a file. This is rarely useful these days, as administrators can # # configure syslog to write certain messages to specific files, or if deploying inside containers, # # this is an anti-pattern. Also if you use centralized logging, having to deal with additional log fi...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
45b3718a502218323dd157b5f41726f28c7cb8b9
929d12e11ed2fb69476b9d07932e38662f0ce6fc
/Two Pointers/3 Sum.py
db65bf577617e5c0cda320df9d5e87c5a5f947dd
[]
no_license
arnabs542/Data-Structures-And-Algorithms
b8f341a31ca18044bf179294fbcb0fac1f835216
ffcc2f8a25520ce37cd1f67e6225281c85141a65
refs/heads/master
2022-12-13T14:09:55.005341
2020-09-13T11:58:58
2020-09-13T11:58:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,814
py
""" 3 Sum Problem Description Given an array A of N integers, find three integers in A such that the sum is closest to a given number B. Return the sum of those three integers. Assume that there will only be one solution. Problem Constraints -10^8 <= B <= 10^8 1 <= N <= 10^4 -10^8 <= A[i] <= 10^8 ...
[ "noreply@github.com" ]
arnabs542.noreply@github.com
7a11fe137ba5bf37e86e22d6f0511f13d1e1b673
ba7134468cb18014fe2e3e1513382fa52aafd4eb
/01_Python_basic_grammar_supplement/005_Python常用内置函数/002_map_映射函数_按规律生成新列表.py
1a656cdc6a055d276239ad4f2a42c28e99d16e3a
[]
no_license
FelixZFB/Python_advanced_learning
4e44616b390e1c6e7da37229c7ad48c069cee71b
a71a6d733ed2134a79f02a6488807862b23438b8
refs/heads/master
2021-06-27T11:15:07.754719
2020-11-20T02:41:25
2020-11-20T02:41:25
183,116,714
2
2
null
null
null
null
UTF-8
Python
false
false
762
py
# map: 映射 # 即把集合或者列表中的元素,每一个元素都按照一定的规则进行操作,生成一个新的列表或者集合 # map函数是系统提供的具有映射功能的高阶函数,返回值是一个迭代对象 # 先看一个列表[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],以该列表为基础每个数字乘以10 # 生成一个新的列表[0, 10, 20, 30, 40, 50, 60, 70, 80, 90] # 代码如下: l1 = [i for i in range(10)] l2 = [] for i in l1: l2.append(i * 10) print(l2) # map函数实现上面的功能,代码变的更简单 l3 = [i ...
[ "18200116656@qq.com" ]
18200116656@qq.com
a97dfba740547798aa43e4e8df8ee377d844b172
9d1701a88644663277342f3a12d9795cd55a259c
/CSC108/a1/test.py
e3696c3c0ae1ba55928f89f9bbe2a46d1880dfc7
[]
no_license
xxcocoymlxx/Study-Notes
cb05c0e438b0c47b069d6a4c30dd13ab97e4ee6d
c7437d387dc2b9a8039c60d8786373899c2e28bd
refs/heads/master
2023-01-13T06:09:11.005038
2020-05-19T19:37:45
2020-05-19T19:37:45
252,774,764
2
0
null
2022-12-22T15:29:26
2020-04-03T15:44:44
Jupyter Notebook
UTF-8
Python
false
false
1,238
py
SIGN_GROUPS = '[ARI,LEO,SAG],[TAU,VIR,CAP],[GEM,LIB,AQU],[PIS,SCO,CAN]' SIGNS = 'ARI:03,21-04,19;TAU:04,20-05,20;GEM:05,21-06,21;CAN:06,22-07,22;' + \ 'LEO:07,23-08,22;VIR:08,23-09,22;LIB:09,23-10,23;SCO:10,24-11,20;' + \ 'SAG:11,21-12,21;CAP:12,22-01,20;AQU:01,21-02,21;PIS:02,22-03,20;' def get_sign_...
[ "coco.yang@mail.utoronto.ca" ]
coco.yang@mail.utoronto.ca
c5835b7fa2b4f5ca981932cbb072da01a4eb7ff8
fc27e1e21ad4891b1d4e769170671da1a4d32ed2
/aliyun-python-sdk-ccs/setup.py
02f22be7a4dd0804225e7b9d1814db5fb67fdfa6
[ "Apache-2.0" ]
permissive
yonzhan2/aliyun-openapi-python-sdk
3d05f7e83aeb286ad553a6a36c42ce932a1ece3e
e64873f9b528e1a83e3ea27d583f3f7998e7650b
refs/heads/master
2020-04-11T10:22:48.511973
2018-12-13T09:29:21
2018-12-13T09:29:21
161,712,443
1
0
null
2018-12-14T00:52:39
2018-12-14T00:52:39
null
UTF-8
Python
false
false
2,586
py
#!/usr/bin/python ''' 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"...
[ "yixiong.jxy@alibaba-inc.com" ]
yixiong.jxy@alibaba-inc.com
f66ca3f9bba3dc867733f33d8e8453c735d63d42
f0bc59dc9aab005ef977957e6ea6b91bbe430952
/2018-02-22-mongo-python-kennedy/code/data/release_health.py
ad6e41fad36f7fd0f5e9e01a03516dc3dbb6197e
[ "Apache-2.0" ]
permissive
Wintellect/WintellectWebinars
3ac0f6ae02d2d52eefb80f4f06d70f44e0d66095
5a59d9742c340022d58ec7e2cda69a1eba0feb53
refs/heads/master
2023-03-02T06:31:25.457579
2022-04-29T19:26:55
2022-04-29T19:26:55
87,122,981
68
124
Apache-2.0
2023-03-01T02:39:17
2017-04-03T21:33:32
JavaScript
UTF-8
Python
false
false
192
py
import mongoengine class ReleaseHealth(mongoengine.EmbeddedDocument): ci = mongoengine.BooleanField() coverage = mongoengine.FloatField() health_index = mongoengine.FloatField()
[ "mikeckennedy@gmail.com" ]
mikeckennedy@gmail.com
c9967a831db5b1498cb70bbd89be219e0c57becd
bb6ebff7a7f6140903d37905c350954ff6599091
/tools/telemetry/telemetry/timeline/process.py
aa94a9cc40d91e045da00eb4f426995817470912
[ "BSD-3-Clause", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-unknown", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
PDi-Communication-Systems-Inc/lollipop_external_chromium_org
faa6602bd6bfd9b9b6277ce3cd16df0bd26e7f2f
ccadf4e63dd34be157281f53fe213d09a8c66d2c
refs/heads/master
2022-12-23T18:07:04.568931
2016-04-11T16:03:36
2016-04-11T16:03:36
53,677,925
0
1
BSD-3-Clause
2022-12-09T23:46:46
2016-03-11T15:49:07
C++
UTF-8
Python
false
false
2,450
py
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import telemetry.timeline.event_container as event_container import telemetry.timeline.counter as tracing_counter import telemetry.timeline.thread as tracing...
[ "mrobbeloth@pdiarm.com" ]
mrobbeloth@pdiarm.com
60ab6a543eed1a43ddab5434945c723e9390423a
e26437e26ebb17187ae9c9caaa5dfc4208a7ec1d
/venv/bin/pyreverse
9f96a391a24de4c7fb7d39e36f0c1b16bf65b197
[ "CC0-1.0" ]
permissive
OseiasBeu/PyECom
93f36fe22aca1b8c06be0fa0027d6cd42e614b6a
2ea4e7e3be4ca015fb1bbc1083aa3f2d44accc5f
refs/heads/master
2022-12-15T00:16:29.799351
2020-08-31T21:16:00
2020-08-31T21:16:00
287,870,077
1
0
null
null
null
null
UTF-8
Python
false
false
275
#!/home/oseiasbeu/Documents/djangoecommerce-aula002/venv/bin/python3.7 # -*- coding: utf-8 -*- import re import sys from pylint import run_pyreverse if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(run_pyreverse())
[ "oseiasbeu@outlook.com" ]
oseiasbeu@outlook.com
da66572725917bc7eae7416aef1d229579a87d5e
105d55b45e36ae1d3062135b22781f1df0fb1653
/oauth_tokens/providers/facebook.py
650cdc472bd5d2c75041be8704e017c55b924156
[ "BSD-3-Clause" ]
permissive
EndyKaufman/django-oauth-tokens
6151dd26acb99bb53aabbe5e75d01eac6cdd377e
b813b13d383b79e1a78e15a3881be5b94680a011
refs/heads/master
2021-01-14T11:20:09.040188
2015-06-25T18:03:45
2015-06-25T18:03:45
38,067,554
0
0
null
2015-06-25T18:48:54
2015-06-25T18:48:54
null
UTF-8
Python
false
false
3,939
py
# -*- coding: utf-8 -*- import re import urllib from xml.sax import saxutils as su from bs4 import BeautifulSoup from django.core.exceptions import ImproperlyConfigured import requests from ..base import AccessTokenBase, AuthRequestBase from ..exceptions import LoginPasswordError, AccountLocked, WrongRedirectUrl cl...
[ "ramusus@gmail.com" ]
ramusus@gmail.com
844a9a758831717b2da46cbd65a2b6d94b78da26
ac8b725681e25177c5de3daf58afe00135241d0f
/leetcode/0622_design_circular_queue.py
238c3abdb146d116221b12774b973ca013cac211
[ "MIT" ]
permissive
jacquerie/leetcode
7af100ea1d7292c8c3da34210cf04d891be5561b
0cb213b9c7bcb6efa11210e9ebc291befb560bb9
refs/heads/master
2022-05-19T22:19:46.284065
2022-03-27T02:41:58
2022-03-27T02:41:58
129,323,741
3
0
MIT
2021-01-04T01:41:50
2018-04-12T23:51:56
Python
UTF-8
Python
false
false
1,228
py
# -*- coding: utf-8 -*- class MyCircularQueue: def __init__(self, k): self.capacity = k self.count = 0 self.elements = [0] * k self.index = 0 def enQueue(self, value): if self.isFull(): return False self.elements[(self.index + self.count) % self.cap...
[ "jacopo.notarstefano@gmail.com" ]
jacopo.notarstefano@gmail.com
82d8010ea973ca811c5b181a212f6d636c8b8d9e
1e30788a9e045e3bda2cfcb3bb42adfa7ee85dae
/venev/lib/python2.7/site-packages/coverage/misc.py
e3723c1847da8137214715ca5849ac49eb6f0584
[ "MIT" ]
permissive
CompeteLeak/crankycoin
1bee3a032c4c6360093035aed1a7842cfffb46f0
9376fbd3095429f2d46a3e4436023f814bb2e36a
refs/heads/master
2020-03-10T15:59:10.016605
2018-05-01T06:16:24
2018-05-01T06:16:24
129,462,940
0
0
MIT
2018-04-25T20:56:12
2018-04-13T23:17:30
Python
UTF-8
Python
false
false
7,487
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 """Miscellaneous stuff for coverage.py.""" import errno import hashlib import inspect import locale import os import sys import types from coverage import env fro...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
bf4e0aab1c159295634285c1e66c3ddbf71eaa43
35fc3136ca3f4af52ebeb36cedcd30b41d685146
/RNASeq/pipelines_ds/RNASeq_MDD21.py
f7d2cd5bd88f8ae9d1fc645cae3f5ac64ce93125
[]
no_license
stockedge/tpot-fss
cf260d9fd90fdd4b3d50da168f8b780bb2430fd1
d1ee616b7552ef254eb3832743c49a32e1203d6a
refs/heads/master
2022-09-19T13:10:30.479297
2020-06-02T15:43:16
2020-06-02T15:43:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,123
py
import numpy as np import pandas as pd from sklearn.cluster import FeatureAgglomeration from sklearn.ensemble import RandomForestClassifier from sklearn.model_selection import train_test_split from sklearn.pipeline import make_pipeline from tpot.builtins import DatasetSelector # NOTE: Make sure that the class is label...
[ "grixor@gmail.com" ]
grixor@gmail.com
54b3cba439ff4df98ef0664037b16637b744cc2c
2df47589ca457d16fbffd4e1bccf5133174a0b97
/highcharts/core/urls.py
224545575fb36ead36d321285b6b52ffed2591b7
[]
no_license
bguerbas/highcharts
a805419cb8d5a00bc3f82b5c4df285598f7685d8
571fba58465136c5040266b3d4ba2d65a5cc740c
refs/heads/master
2022-02-12T19:33:12.244474
2016-06-04T05:00:24
2016-06-04T05:00:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
from django.conf.urls import url from highcharts.core.graphics import dollar_json, euro_json, product_json from highcharts.core import views as v urlpatterns = [ url(r'^$', v.home, name='home'), url(r'^dollar-graphic/$', v.dollar_graphic, name='dollar-graphic'), url(r'^euro-graphic/$', v.euro_graphic, name...
[ "rg3915@yahoo.com.br" ]
rg3915@yahoo.com.br
aa2082dc6d4bc7facdfcda2f11287a57b36d45d5
921b3a67a24df947f085e93ba58833ec20f6b89e
/producer-tutorial/Lib/site-packages/faker/providers/ssn/en_PH/__init__.py
b46f518321a9d4fc9f7172f85be5a33b8bd0612e
[]
no_license
jaslanm/python
e3bacd7ad0020b7e11adcb1b17dd6da3e4b2f65c
5cfa3913b89acb0b8cf79247de1b2820a8b92f3a
refs/heads/main
2023-08-30T01:53:13.752918
2021-10-23T13:24:48
2021-10-23T13:24:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,638
py
from ... import BaseProvider class Provider(BaseProvider): """ Provider for Philippine IDs that are related to social security There is no unified social security program in the Philippines. Instead, the Philippines has a messy collection of social programs and IDs that, when put together, serves as ...
[ "jaslanm@gmail.com" ]
jaslanm@gmail.com
d67a97f7d001de095080b8e061061fdc66d4ab5c
1d01f44e748c03e2f00ede0b317ac57d868cb9a8
/bdd/features/steps/generic.py
a41853ca92fad327f95aa4f5481dc70ae24b84f1
[ "Apache-2.0" ]
permissive
gtoonstra/airflow-hovercraft
6ef9e6588a1dbc9a97f4c725ee8e50d38f913d3a
87d3f3dde410d186dcfbe30fb3330b6c3c8d08d9
refs/heads/master
2021-01-22T23:10:49.646487
2017-06-18T20:07:37
2017-06-18T20:07:37
92,804,454
5
1
null
null
null
null
UTF-8
Python
false
false
3,290
py
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
[ "gtoonstra@gmail.com" ]
gtoonstra@gmail.com
82c10264b839855b634e22321e3d1c1056cc2fa2
ffc1cc3bb7b68335b115122fdc7924fc4e31d528
/hun89.py
598943a29a06fb9e8bd394f448e35cc79e22821b
[]
no_license
Rihanashariff/swathi24
dba1dd3c3d2ff583ae431b432e0ef262bfeb3ac3
2b0d21f2febdd2a563e8f0affeebd5ca7a5821b8
refs/heads/master
2020-07-02T05:28:32.199982
2019-06-29T08:22:10
2019-06-29T08:22:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
167
py
#s n=input() l=[] for i in range(0,len(n)): if n[i] not in l: l.append(n[i]) l=l[::-1] for i in range(0,len(l)-1): print(l[i],end="") print(l[-1])
[ "noreply@github.com" ]
Rihanashariff.noreply@github.com
445b8f4162f676a1d2d53a66b8f67bd4b216b021
a2d3f2787cd26f2bf90f30ba9516d1675a69f8be
/emission/tests/coreTests/TestEntry.py
93e03219cfcb42cee4b1af697e90badb0d2316d4
[ "BSD-3-Clause" ]
permissive
njriasan/e-mission-server
318833ba06cb7f40ddb7b8d2ac3da4d049e7c846
23224ddcfd29f31c13f75d819d9ad8530aea052f
refs/heads/master
2020-05-02T11:02:00.528836
2019-03-27T19:21:31
2019-03-27T19:21:31
177,915,408
1
0
BSD-3-Clause
2019-03-27T04:01:32
2019-03-27T04:01:31
null
UTF-8
Python
false
false
4,859
py
from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import # Test the class that supports usercache entries # The main change here is that # Standard imports from future import standard_library standard_library.install_aliases()...
[ "shankari@eecs.berkeley.edu" ]
shankari@eecs.berkeley.edu
42ef418b29e8afe99bd8a80b80757cb7ddc5210e
48b7b96a5caf2102ae6ca5626efc0135d4088a75
/server/providers/models.py
80bce9d435fb3af1e97647ff6ba22b3133451c1d
[]
no_license
DonAurelio/coder
ced49498e0e0717fa8f0c523e5a2ff87895f162d
429d2e4c43d66770792200bac6cd103f86dcf8b1
refs/heads/master
2023-01-11T08:59:43.749545
2019-10-02T19:58:07
2019-10-02T19:58:07
106,939,435
2
1
null
2022-12-29T07:03:46
2017-10-14T15:33:08
JavaScript
UTF-8
Python
false
false
1,669
py
from django.db import models import requests # Create your models here. class Service(models.Model): name = models.CharField(max_length=100,primary_key=True, help_text='Service name has to be unique') base_url = models.CharField( max_length=400, help_text='API base url without ending ...
[ "aurelio.vivas@correounivalle.edu.co" ]
aurelio.vivas@correounivalle.edu.co
5031bc2a965c2f9f19ed8c7313cf8595400f10be
3d4094d6eca69329d4c6ba08e0c8ce79eedeb6b6
/starter/Recusion.py
9294f308c3d312ec11a45b4945592dbb04f552bc
[]
no_license
agkozik/Python_Course
c9f3c8b68e60b452e57f43da7554c13daf386a0c
4b095bbc86f33999efe95127528b3e1d8bfded9f
refs/heads/master
2022-04-27T06:04:15.276472
2020-04-22T11:49:06
2020-04-22T11:49:06
255,082,012
0
0
null
null
null
null
UTF-8
Python
false
false
279
py
def non_recursion(n): result = 1 for multiplayer in range(n): result *= multiplayer return result def recursive_fact(n): if n == 0: return 1 else: return n * recursive_fact(n-1) print(recursive_fact(100)) print(non_recursion(100))
[ "agkozik@gmail.com" ]
agkozik@gmail.com
05081be19c602536b83c4921c511a0830229bd5c
77b300d44131c74ce42c9099e1b709b9c5941ba1
/src/zojax/content/model/tests/view.py
2c2bb9d223bd8e21e24d76ced9764bbf6a8aa39d
[ "ZPL-2.1" ]
permissive
Zojax/zojax.content.model
26c0984457a8a9940105d11143a1c7cb9ed9d8c0
07d14dc8ba467f6efb2ad58e68c050afebd0e69d
refs/heads/master
2016-09-06T07:22:26.242130
2011-12-16T07:12:30
2011-12-16T07:12:30
2,035,141
0
0
null
null
null
null
UTF-8
Python
false
false
1,665
py
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
[ "andrey.fedoseev@gmail.com" ]
andrey.fedoseev@gmail.com
d84df8e0443840cc9a741459f80f50079bd18ce3
fc96f28fc3dd08ecd418fe13f13d71c8f7b51cd9
/enrich/tfc.py
12be029215f5e4e49edfbe219a703bfb874c92ff
[ "MIT" ]
permissive
mindis/spacyapp
59d811854291a770bcb9d6f0552a9ceaa48246ec
2b5b6af1be4e0cee55bcc776253d63f5005f899f
refs/heads/master
2020-04-14T12:54:17.922808
2019-01-02T14:12:10
2019-01-02T14:12:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,409
py
from enrich.tei import XMLReader from datetime import datetime class Tcf(XMLReader): """ a class to read an process tfc-documents tried with 'data/nn_nrhz_001_1418.tcf.xml' """ def list_nodes(self, element): """ returns a list of passed in element-nodes""" expr = "//tcf:*[local-name...
[ "Peter.Andorfer@oeaw.ac.at" ]
Peter.Andorfer@oeaw.ac.at
5b3676d9864fd42804bba265747557e5df923681
f09dc121f213f2881df3572288b7ee5b39246d73
/aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/DescribeVsDomainReqBpsDataRequest.py
307d6bbfec73206085e343b8694ed5221dad5335
[ "Apache-2.0" ]
permissive
hetw/aliyun-openapi-python-sdk
2f31378ad6be0896fb8090423f607e9c7d3ae774
7443eacee9fbbaa93c7975c6dbec92d3c364c577
refs/heads/master
2023-01-19T22:42:36.214770
2020-12-04T10:55:14
2020-12-04T10:55:14
318,689,093
1
0
NOASSERTION
2020-12-05T03:03:03
2020-12-05T03:03:03
null
UTF-8
Python
false
false
2,455
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
e3629543f40c546cf51bb37c2ae7539b0733c980
b521802cca8e4ee4ff5a5ffe59175a34f2f6d763
/maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Main_20190117194302.py
39149174f32dc16da49b80990804dd7f78bc9b70
[]
no_license
all-in-one-of/I-Do-library
2edf68b29558728ce53fe17168694ad0353a076e
8972ebdcf1430ccc207028d8482210092acf02ce
refs/heads/master
2021-01-04T06:58:57.871216
2019-12-16T04:52:20
2019-12-16T04:52:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,739
py
# -*- coding:utf-8 -*- # Require Header import os import json from functools import partial # Sys Header import sys import traceback import subprocess # Maya Header import maya.cmds as cmds import maya.mel as mel import maya.OpenMayaUI as omui import plugin.Qt as Qt from Qt.QtCore import * from Qt.QtGui import * f...
[ "2595715768@qq.com" ]
2595715768@qq.com
c48b263b359fd78edb64adc043143431bdb69b80
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/e3ebbbfe7e234f848c86e6281082178b.py
364fd3459a9c67d7731467dfdf0b50a1914242a2
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
210
py
def hey(string): if not string.strip(): return 'Fine. Be that way!' elif string.isupper(): return 'Whoa, chill out!' elif string.endswith('?'): return 'Sure.' else: return 'Whatever.'
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
8a6ba3996b46a72a73ca370b427eba807287b0eb
e11b2493f55c60685c3ea76f900be73e6a454b2f
/high_peformance_python/matrix & iterator/list_and_set.py
deda5e0f90c5c616b600d6de3b6e00c725d130dd
[]
no_license
zpoint/Reading-Exercises-Notes
29e566dd86d97eadb84d7bb6f8f640b85486557c
31b38fe927232ba8e6f6a0e7ab9c58026eefcffb
refs/heads/master
2021-06-04T08:12:42.777309
2021-04-19T02:12:22
2021-04-19T02:12:22
70,507,489
0
0
null
null
null
null
UTF-8
Python
false
false
1,311
py
def list_unique_names(phonebook): unique_names = [] for name, phonenumber in phonebook: firstname, lastname = name.split(" ", 1) for unique in unique_names: if unique == firstname: break else: unique_names.append(firstname) return len(...
[ "zp0int@qq.com" ]
zp0int@qq.com
005dab74220c894d396199899ee60aaacaae6ac3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_squished.py
706288b75fe0e4e6999c43fefc2d7e58c3ec6189
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
240
py
from xai.brain.wordbase.verbs._squish import _SQUISH #calss header class _SQUISHED(_SQUISH, ): def __init__(self,): _SQUISH.__init__(self) self.name = "SQUISHED" self.specie = 'verbs' self.basic = "squish" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com