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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f9f80ab179a523cd94e5105dec350aa9f2db895 | 84e4149b3571ff4abe5c27a66ecbde03c5afec3c | /chapter_10/section_4_3/remember_me.py | 290e2cdaddd45c4dd93827b728d06f21b960e63d | [] | no_license | zhanlu-wm/Python-Crash-Course | 6efa04bd5c03e37394b3602d20e7ae57688836e7 | 043fe97b4acdf0008351fd0fdb045888e9bdd44d | refs/heads/master | 2021-07-18T18:34:32.435763 | 2017-10-23T15:27:17 | 2017-10-23T15:27:17 | 103,259,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import json
def greet_user():
"""问候用户,并指出其名字"""
filename = 'username.json'
try:
with open(filename) as f_obj:
username = json.load(f_obj)
except FileNotFoundError:
username = input("What is your name? ")
with open(filename, 'w') as f_obj:
json.dump(userna... | [
"ncu09wangming@163.com"
] | ncu09wangming@163.com |
b54e8f18efa6c1389182d0d9d0d9ed00020a5ac5 | 4d5e6e0a7057123ddd7cb97027e667117e1be143 | /data_structure/python_dictionary.py | 7c2cdca3a3a25e5200e605b252fd542c38fde9b4 | [] | no_license | shubhomedia/Learn_Python | cee48990c04521fcbb7dbf5ad120c69170dcd1be | 01e0a8e3dc2de87b09c963e7cb9fc5e246831ddb | refs/heads/master | 2021-07-01T08:53:51.151326 | 2021-01-02T17:31:36 | 2021-01-02T17:31:36 | 204,191,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #python Dictionary
my_dictionary = {'key':'value',('K','E','Y'):5}
my_dictionary1 = {x:x+1 for x in range(10)}
print(my_dictionary['key'])
print(my_dictionary1)
try:
print(my_dictionary[1])
except Exception as e:
print(e)
print(my_dictionary.keys()) # print keys
print(my_dictionary.values()) # print values
m... | [
"shubhomedia@gmail.com"
] | shubhomedia@gmail.com |
227f5a29b56728a8daf1b78dbeac24d393ae2c6d | 8a47ab47a101d4b44dd056c92a1763d5fac94f75 | /力扣/简单练习/344-双指针实现反转字符串.py | ed42ba2e0f43f9e67fb638bb7438fb76bc5b6fbc | [] | no_license | Clint-cc/Leecode | d5528aa7550a13a5bcf2f3913be2d5db2b5299f3 | 8befe73ab3eca636944800e0be27c179c45e1dbf | refs/heads/master | 2020-09-14T07:35:41.382377 | 2020-07-01T01:27:18 | 2020-07-01T01:27:18 | 223,066,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 266 | py | # !D:/Code/python
# -*- coding:utf-8 -*-
# @Author : Clint
# 双指针
def reverseString(s):
i = 0
j = len(s) - 1
while i < j:
s[i], s[j] = s[j], s[i]
i += 1
j -= 1
return s
print(reverseString(['w', 'e', 'a', 'r', 'y']))
| [
"clint1801@163.com"
] | clint1801@163.com |
1773f62bd5e54835d7f80a13b980ba3bec26d85b | b771dbc3dc2dc330cf67ff5d030c3bbd474b5a86 | /setup.py | d302b0f496404be0fb05a6368e9df706b82bb04a | [] | no_license | RedTurtle/pyramid_alfresco | 8ddd273604edfdf36eabf11205c38d7d140d8312 | 63129943f52839956e3a39244c1f547ebe5a342f | refs/heads/master | 2021-01-10T16:10:22.817580 | 2013-04-29T08:10:06 | 2013-04-29T08:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'SQLAlchemy',
'transaction',
'pyramid_tm',
'pyramid_debugt... | [
"andrew@mleczko.net"
] | andrew@mleczko.net |
1aa621a701a09656aeb71c5930bc6daca9a9e26d | d7949f5b2075384075fa066d571144bbbe02ffd8 | /supervised/utils/subsample.py | cfd80b0b6af309dc95d037293f409a4fbad068f9 | [
"MIT"
] | permissive | mljar/mljar-supervised | 57fb56b05b1a53ea979bf9cb9b127f314853bdbd | 6722eb1e6441c11990f2aed01a444ddcae478c09 | refs/heads/master | 2023-08-30T23:48:28.692945 | 2023-08-28T15:09:39 | 2023-08-28T15:09:39 | 156,218,203 | 2,759 | 388 | MIT | 2023-08-28T10:24:12 | 2018-11-05T12:58:04 | Python | UTF-8 | Python | false | false | 463 | py | import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from supervised.algorithms.registry import REGRESSION
def subsample(X, y, ml_task, train_size):
shuffle = True
stratify = None
if ml_task != REGRESSION:
stratify = y
X_train, X_test, y_train, y_test ... | [
"pplonski86@gmail.com"
] | pplonski86@gmail.com |
36b154704e3c1462f72659cfa2cda1ae2a75c817 | 78520f19165b33909364299aaaea2283b8aa2367 | /keywords/elif_kwd.py | 9560d07296baca68083aaac8fc0abe480d2b3939 | [
"BSD-2-Clause"
] | permissive | s3n0/Python-Course | 3d3618b97c7d4d9bbe7c3987d2c329203251029b | d48568d096e9a78e397eefd83b2588ddd27aa481 | refs/heads/master | 2020-09-09T00:51:28.874296 | 2019-09-29T17:50:48 | 2019-09-29T17:50:48 | 221,294,533 | 0 | 1 | null | 2019-11-12T19:23:11 | 2019-11-12T19:23:10 | null | UTF-8 | Python | false | false | 218 | py | #!/usr/bin/python3
# elif_kwd.py
name = "Luke"
if name == "Jack":
print ("Hello Jack!")
elif name == "John":
print ("Hello John!")
elif name == "Luke":
print ("Hello Luke!")
else:
print ("Hello there!")
| [
"noreply@github.com"
] | s3n0.noreply@github.com |
c9a06a45ccc50918208dc3b38d5f8f81ece849f5 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/playground/fatih/xorg/xorg-video-imstt/actions.py | 77b159e19b6e28768b169754190e63b78bbf5007 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import get
WorkDir = "xf86-video-imstt-%s" % get.srcVERSION()
def setup():
autotools.configure()
... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
919333992dfe9e94cf1dc40447cfe0e90db3d328 | bd696223aaf5404987df11832b4c17c916b9690f | /rec_sample/gaussian_process_regressor_numeric_rating/gaussian_process_regressor_numeric_rating/main.py | 2d0d88d6ab609827bf79b3e34be5853efebdce0f | [] | no_license | wararaki718/scrapbox3 | 000a285477f25c1e8a4b6017b6ad06c76f173342 | 9be5dc879a33a1988d9f6611307c499eec125dc2 | refs/heads/master | 2023-06-16T08:46:32.879231 | 2021-07-17T14:12:54 | 2021-07-17T14:12:54 | 280,590,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 435 | py | import numpy as np
from sklearn.datasets import load_wine
from sklearn.gaussian_process import GaussianProcessRegressor
def main():
wine = load_wine()
X = wine.data
y = wine.target
gpr = GaussianProcessRegressor()
gpr.fit(X, y)
for i in np.random.choice(X.shape[0], 10):
x = X[i, :]
... | [
"ky7.ott.w@gmail.com"
] | ky7.ott.w@gmail.com |
eff38dcf60b38fcc1037d870b04197c61add0189 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/model_control/detailed/transf_Fisher/model_control_one_enabled_Fisher_Lag1Trend_Seasonal_MonthOfYear_SVR.py | bf6738ef2f81d7475f6a83e95b8def2231eab79b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 160 | py | import tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Fisher'] , ['Lag1Trend'] , ['Seasonal_MonthOfYear'] , ['SVR'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
b512a1038df77f42373157c2e38de6ded09715d8 | d52522a713d4e0522c22692e05948be897c4339b | /constants/i18n/greetings.py | 3cbd99d5b4f8e25b26351d8b69f240a5710c19dc | [
"MIT"
] | permissive | frankwrk/django-htk | de52a9132f494845ed9c3cb19a9e81e22f9a57a3 | fa9c6fe18d8651e4b96f036429169d741a1f2fe0 | refs/heads/master | 2023-04-21T10:37:57.563298 | 2019-03-04T10:47:49 | 2019-03-04T10:47:49 | 173,731,278 | 0 | 0 | MIT | 2023-04-03T23:23:47 | 2019-03-04T11:21:42 | Python | UTF-8 | Python | false | false | 844 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
I18N_GREETINGS = {
'ar' : [
u'مرحبا',
],
'el' : [
u'Χαίρετε',
],
'en' : [
u'Greetings',
u'Hello',
],
'eo' : [
u'saluton',
],
'es' : [
u'Hola',
u'Como estas',
],
'fr' : [
... | [
"hello@jontsai.com"
] | hello@jontsai.com |
67a9ab339d0c77fe6b902946ddb037814635bb58 | d43c1974de5ef60a85d0e8af648f7d1546c1b5c3 | /exceptions.py | 8525e10d81204d53fb7030613c82e3949c24330c | [] | no_license | Hermotimos/Learning | 7168146b1ba80827997a895716c645dda57a47d7 | 7c5453279a43e9a15c66a1cf925aa9c05c820224 | refs/heads/master | 2023-08-12T15:42:09.043657 | 2023-04-01T09:36:21 | 2023-04-01T09:36:21 | 180,561,558 | 0 | 0 | null | 2023-07-25T21:26:23 | 2019-04-10T10:50:22 | Python | UTF-8 | Python | false | false | 3,366 | py | """
This file is for learning and exercise purposes.
Topics:
- exceptions: syntax and catching
- examples: ZeroDivisionError, AssertionError
Sources:
https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-0001-introduction-to-computer-science-and-programming-in-p... | [
"lukas.kozicki@gmail.com"
] | lukas.kozicki@gmail.com |
a50c477311cf2c7d396443b3959bdca2fd9644de | 0feb9799532328d2eb5c9673751bf44a06652375 | /ethics/russellnorvig.py | 1391b1d8e488edda475086428c8fd190f4e9c81b | [] | no_license | krishnakatyal/philosophy | ebc78947508f12a9d06356d2cc8d38f6afb0510a | f7735e9adc9ba609894d89384562dbda2f794548 | refs/heads/master | 2022-03-28T14:00:52.460599 | 2020-01-25T00:28:55 | 2020-01-25T00:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py |
"""
An artificial intelligence (AI) approach to ethics can embrace many different
ideas from philosophy. In "Artificial Intelligence: A Modern Approach," (known as AIMA)
computer scientists Peter Norvig and Stuart Russell believe we can create goals for AI
to act rationally. Russell asks "What is AI?" as "What is int... | [
"shussainather@gmail.com"
] | shussainather@gmail.com |
2de8fd5dc49632454858701d0eb25dff5269111b | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2595/49687/317028.py | 83ccacc93c888f73a52a2032b57d71c47b87f5fa | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | listN = []
listK = []
n = int(input())
for i in range(n):
inp = input().split()
listN.append(int(inp[0]))
listK.append(int(inp[1]))
for i in range(n):
N = listN[i]
K = listK[i]
print(K**(N-1))
| [
"1069583789@qq.com"
] | 1069583789@qq.com |
28eaa1e1e8d6cfee324f75c131cf883a1ef3d182 | 99c4d4a6592fded0e8e59652484ab226ac0bd38c | /code/batch-2/vse-naloge-brez-testov/DN12-M-044.py | b8cbd3d76ee516ba832cb8dba72e35c8674aa25d | [] | no_license | benquick123/code-profiling | 23e9aa5aecb91753e2f1fecdc3f6d62049a990d5 | 0d496d649247776d121683d10019ec2a7cba574c | refs/heads/master | 2021-10-08T02:53:50.107036 | 2018-12-06T22:56:38 | 2018-12-06T22:56:38 | 126,011,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,268 | py | def preberi(ime_datoteke):
a = dict ()
b = dict ()
with open (ime_datoteke) as g:
vrstica = g.readline ()
count = 1
while vrstica:
a[count] = []
b[count] = []
for e in vrstica.strip ().split():
e = int ( e )
... | [
"benjamin.fele@gmail.com"
] | benjamin.fele@gmail.com |
633ef5cfdfe205fc64d22d17d19aa76fd7270d9e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03910/s208268903.py | 9205fa08e81866830a16082ced5475d645ca65f1 | [] | 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 | 168 | py | N=int(input())
l=0
r=0
for i in range(1,N+1):
s=i*(i+1)//2
if s>=N:
l=i
r=s-N
break
ans=list(range(1,l+1))
if r!=0:
ans.remove(r)
print(*ans,sep='\n') | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1786fbc05af84e705fd1009dcb2cfb8ad667abcb | c8ef568cd88a82459fca9d7ef2ca298763ef75e1 | /04. picamera/01. Basic/ex01.py | 2a3f840788fd062d2b7c58d3ee373655be8da213 | [] | no_license | caniro/multicampus-iot-raspberrypi | 8017711ebe4f9e9a7954649333c8106727b4ff86 | b870b25b6386c5e7954b0cdb1f966a6db89e61fd | refs/heads/main | 2023-08-12T21:36:28.621846 | 2021-09-27T08:56:40 | 2021-09-27T08:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # 파이 카메라 인식 테스트 및 미리보기
from picamera import PiCamera
from time import sleep
camera = PiCamera()
#camera.rotation = 180 # 180도 회전
print(camera.resolution)
camera.start_preview()
# camera.start_preview(alpha=200) # 투명도 : 0 ~ 255
sleep(1)
camera.stop_preview()
| [
"caniro@naver.com"
] | caniro@naver.com |
a4908a97af26ea234e6156e003de1a6e3a6b89a8 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/quest/BlinkingArrows.py | 534b1179b0efd1a72384597e1a99a5cfb1466f4b | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 2,996 | py | from direct.interval.IntervalGlobal import *
from pandac.PandaModules import *
class BlinkingArrows:
def __init__(self, parent=aspect2d, otherNode=None):
self.arrow1 = loader.loadModel('phase_3/models/props/arrow')
self.arrow2 = loader.loadModel('phase_3/models/props/arrow')
self.arrowTrac... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
e02026690c4a2ea039bfc824c17165f8b40c88c6 | e5a52968a86946c4839b64d218cb25f4a91e5ee4 | /ml_project/enities/__init__.py | 692cab33e78b4a63c6e7f83b77aa4ca9d7921440 | [] | no_license | made-ml-in-prod-2021/MaksM89 | 1a6f40c66de671dca2345e1b44051c01d166e2d8 | c00a04b6f77f682e5ff419c0afc4c1ea4669deed | refs/heads/main | 2023-06-07T13:27:14.532934 | 2021-06-24T08:33:08 | 2021-06-24T08:33:08 | 354,295,345 | 1 | 0 | null | 2021-06-24T08:33:09 | 2021-04-03T13:10:38 | Jupyter Notebook | UTF-8 | Python | false | false | 442 | py | from .data_params import Features, InputDataset, SplittingParams
from .train_params import TrainingParams
from .train_pipeline_params import (
read_training_pipeline_params,
TrainingPipelineParamsSchema,
TrainingPipelineParams,
)
__all__ = [
"Features",
"InputDataset",
"SplittingParams",
"... | [
"noreply@github.com"
] | made-ml-in-prod-2021.noreply@github.com |
c10fa354b6592ecbb7c64daa0fb6e6f00b1a9cc6 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.65_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=18/sched.py | cccef8ab09306debebd37b70d423b713008846dd | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | -S 0 -X RUN -Q 0 -L 3 102 400
-S 0 -X RUN -Q 0 -L 3 64 300
-S 0 -X RUN -Q 0 -L 3 61 200
-S 1 -X RUN -Q 1 -L 2 57 300
-S 1 -X RUN -Q 1 -L 2 52 175
-S 1 -X RUN -Q 1 -L 2 42 200
-S 3 -X RUN -Q 2 -L 1 41 200
-S 3 -X RUN -Q 2 -L 1 37 175
-S 3 -X RUN -Q 2 -L 1 33 200
-S 2 -X RUN -Q 3 -L ... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
8c647b3ff310fdfcadf078532d7ada9211a25871 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /Calibration/EcalCalibAlgos/python/electronRecalibSCAssociator_cfi.py | a80848d2096bba57fd6a045c88013391ba722a56 | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 465 | py | import FWCore.ParameterSet.Config as cms
electronRecalibSCAssociator = cms.EDProducer("ElectronRecalibSuperClusterAssociator",
electronCollection = cms.string(''),
scIslandCollection = cms.string('IslandEndcapRecalibSC'),
scIslandProducer = cms.string('correctedIslandEndcapSuperClusters'),
scProducer =... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
14d500c1c4aae9c78ce481e73ff595c4ecac06f5 | d424bb5aef62c9bf07319a26cebc4f14433f927d | /ganji/GraphMaker/sample_bar_chart.py | 501426d9d6cf28e2227047ea2bc5304f53b4fc51 | [] | no_license | adorn331/CrawlerToy | d840104610ae3f8b51ddf5e8cb604573c626cc3b | e51ffd2785c3c22e934390a555257314ae6ef858 | refs/heads/master | 2021-07-05T18:15:29.892398 | 2017-09-24T14:12:08 | 2017-09-24T14:12:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | #统计北京某个区各种类目前三名的柱状图
import pymongo
import charts
conn = pymongo.MongoClient('localhost', 27017)
ganji_db = conn['ganji']
data_collection = ganji_db['sample']
areas = list(set(i['area'][0] for i in data_collection.find() if i['area']))
print(areas) #查看所有区,选一个柱状图
area = '朝阳' #选中了朝阳区,画图
pipeline = [
{'$match':{ '... | [
"="
] | = |
0042178b6dbbb24ce80e628b46cffd655a787f57 | 76718066cbc971b83d1d633cad9daac52ad3ec50 | /src/truverifi/_compat.py | 4e02e40734d0f0f75a0c14495eeea428a0df1a6e | [
"MIT"
] | permissive | achillesrasquinha/truverifi | 594366622c535faefdc25b8ef2dabdbe3523c733 | 4e1b3760a9744b44a86ec2dfaff6714680c8b78c | refs/heads/master | 2020-05-18T05:13:06.665240 | 2019-04-30T05:57:10 | 2019-04-30T05:57:10 | 184,199,229 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | # imports - standard imports
import sys
PYTHON_VERSION = sys.version_info
def _is_python_version(*args, **kwargs):
major = kwargs.get("major", None)
minor = kwargs.get("minor", None)
patch = kwargs.get("patch", None)
result = True
if major:
result = result and major == PYTHON_VERSION.... | [
"achillesrasquinha@gmail.com"
] | achillesrasquinha@gmail.com |
7c738fca51ec5ae686b8427e6283007ca86b8fe3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_reconsidered.py | c4e21782a16ada2154592bfc1620661ed878cbaa | [
"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 |
#calss header
class _RECONSIDERED():
def __init__(self,):
self.name = "RECONSIDERED"
self.definitions = reconsider
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['reconsider']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b042807be384a59317acdd5cc345a25db9bcb91d | 779c7d032eb8d5a4421b8b236c9004559b70756d | /apps/guide/views.py | d0c5fdb435ccd749ccf739f768d9dd442ab5c698 | [] | no_license | corincerami/opus | 727e91a461a6488f2bc263ca6c98a27a93424228 | 281f246ff5bd703a009ab3bad6271249e0e00bff | refs/heads/master | 2022-11-11T13:46:06.317320 | 2018-01-11T00:33:54 | 2018-01-11T00:33:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | from guide.models import *
from django.shortcuts import render
from django.http import HttpResponse,Http404
from metrics.views import update_metrics
def guide(request):
update_metrics(request)
base_url = 'http://' +request.META['HTTP_HOST'] + '/opus/'
groups = Group.objects.all()
resources = Resource.... | [
"lballard.cat@gmail.com"
] | lballard.cat@gmail.com |
949c746f1ce29096b7f31f94da55866632df6c4d | f7ac9ae8835b243a6ddbf4a1e8230883266186b9 | /Maximum-AND/code.py | 80d481203b5b01876dc761171b693523328122c4 | [] | no_license | sohailshaukat/HackerEarth-competition-solutions | b992d8bef8bd9f0806e2fa1cb2870500647942ee | 6e969aec4b8e224a2c0f1b18bddde250d2bcced6 | refs/heads/master | 2020-07-04T21:23:57.339578 | 2019-08-15T20:04:23 | 2019-08-15T20:04:23 | 202,422,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | '''
-sohailshaukat ( https://github.com/sohailshaukat )
-sohail47k@gmail.com
'''
times = int(input())
for _ in range(times):
inp = input().split()
a = int(inp[0])
b = int(inp[1])
maximum_and = 0
maximum = (2 ** len(bin(a).replace('0b','')))-1
for i in range(b+1,a,-1):
if i &(i-1) > maxim... | [
"sohail47k@gmail.com"
] | sohail47k@gmail.com |
eff291c741a23fff2801d4e5b8d88673b9c4de5e | 3a7412502b89b917f23cda9a3318d2dc4d02185b | /panoptes/accounts/fields.py | 0d6c7b6a50e7bf1df9d2d8df027f17552bc77e87 | [
"BSD-2-Clause"
] | permissive | cilcoberlin/panoptes | 5f0b19d872993bc5c7f51a44c9ccc596fe0a8ab5 | 67d451ea4ffc58c23b5f347bfa5609fa7f853b45 | refs/heads/master | 2021-01-21T00:17:42.038637 | 2012-07-10T03:20:47 | 2012-07-10T03:20:47 | 1,660,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py |
from django import forms
from django.contrib.auth.models import User
class UserField(forms.ModelChoiceField):
"""A select field for a user that uses their full name for sorting and display."""
def __init__(self, *args, **kwargs):
kwargs['queryset'] = User.objects.all().order_by('last_name', 'first_name')
supe... | [
"justin.locsei@oberlin.edu"
] | justin.locsei@oberlin.edu |
f94cf11d95f5bda38870aba5378e6b1b03e8652a | 742c5bfcff91a454dfe6df0be6d98408fa990569 | /bnum/tests/implement.py | 61f86421302cdcd18793cc18df15bc5d8d1f9db3 | [] | no_license | andrewcooke/bnum | ea9179c1379a1ea92d68dc361a44414dc7582379 | 7f93379cff5c4605195fdfb3868ba0185f66b20c | refs/heads/master | 2020-05-24T14:48:24.189229 | 2013-06-02T15:34:44 | 2013-06-02T15:34:44 | 10,178,884 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py |
from unittest import TestCase
from bnum import ImplicitBnum, ExplicitBnum, from_one
'''
Test various implementation details.
'''
class NoExplicitTest(TestCase):
def test_no_explicit_in_implicit(self):
with self.assertRaises(TypeError):
class Colour(ImplicitBnum):
red = 1
... | [
"andrew@acooke.org"
] | andrew@acooke.org |
bb40962baa7b16fd1d7cade0ce12acb734b3138e | 236a8988e513bfa286298d426e705f92099dc25a | /examples/torch_tensor_io.py | 2621176e34ced5edf3515316d487af041334fc8a | [
"MIT"
] | permissive | hzy5000/taichi | 99a468ad3efe31e57a0bb60f7321f55dd1537f65 | 73dfd36fa190b0ff39a962e18d2c8cd3b41b32ce | refs/heads/master | 2020-08-28T02:49:58.455700 | 2019-10-25T13:29:31 | 2019-10-25T13:29:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,216 | py | import taichi as ti
import numpy as np
import torch
# ti.set_gdb_trigger(True)
ti.cfg.arch = ti.cuda
# n = 1024 * 1024
n = 32
y = ti.var(ti.f32)
# https://pytorch.org/tutorials/beginner/examples_autograd/two_layer_net_custom_function.html
@ti.layout
def values():
# actually useless in thie example
ti.root.dens... | [
"yuanmhu@gmail.com"
] | yuanmhu@gmail.com |
7e6ae7bf76d99e46c491659b5c586f3f419bf314 | 2ff556bb90d2a004e92c07bf4101325f492825b5 | /bot/plugins/lists.py | 12a316e74e0d9146d2daefccde275dcbfdf52a7a | [] | no_license | qinyuhang/qbittorrent-bot | df471f1ef46904dcb0a71291da08a941dc57f6f5 | e7ff17a4513d08e55cfbe1d27afa2729e013933c | refs/heads/master | 2023-09-02T18:25:15.933139 | 2021-11-22T22:20:13 | 2021-11-24T01:20:05 | 411,872,254 | 0 | 0 | null | 2021-11-24T01:20:06 | 2021-09-30T00:38:07 | Python | UTF-8 | Python | false | false | 2,897 | py | import logging
import re
# noinspection PyPackageRequirements
from telegram.ext import CallbackQueryHandler, CallbackContext, MessageHandler, Filters
# noinspection PyPackageRequirements
from telegram import ParseMode, Update, BotCommand
from bot.qbtinstance import qb
from bot.updater import updater
from utils import... | [
"numeralzeroone@gmail.com"
] | numeralzeroone@gmail.com |
31e5bdfe0d035cdb5f07f4feb56b9aa681368837 | b6aa9768dbac327943e0220df1c56ce38adc6de1 | /775_n-ary-tree-preorder-traversal.py | 108edc9956ffc6834b3b3b87214f7572d22da8ec | [] | no_license | Khrystynka/LeetCodeProblems | f86e4c1e46f70f874924de137ec5efb2f2518766 | 917bd000c2a055dfa2633440a61ca4ae2b665fe3 | refs/heads/master | 2021-03-17T00:51:10.102494 | 2020-09-28T06:31:03 | 2020-09-28T06:31:03 | 246,954,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 569 | py | # Problem Title: N-ary Tree Preorder Traversal
"""
# Definition for a Node.
class Node(object):
def __init__(self, val, children):
self.val = val
self.children = children
"""
class Solution(object):
def preorder(self, root):
"""
:type root: Node
:rtype: List[int]
... | [
"khrystyna@Khrystynas-MacBook-Pro.local"
] | khrystyna@Khrystynas-MacBook-Pro.local |
747ee9a7651abc0c1c4d1f012b95d88e8a937ccc | baf3996414315ffb60470c40c7ad797bf4e6897f | /02_ai/1_ml/9_xgboost/code/chapter_15/plot_performance.py | 10e2225a0794e6e34bca57b257321b24d317a4ea | [
"MIT"
] | permissive | thiago-allue/portfolio | 8fbbecca7ce232567aebe97c19944f444508b7f4 | 0acd8253dc7c5150fef9b2d46eead3db83ca42de | refs/heads/main | 2023-03-15T22:10:21.109707 | 2022-09-14T17:04:35 | 2022-09-14T17:04:35 | 207,919,073 | 0 | 0 | null | 2019-11-13T18:18:23 | 2019-09-11T22:40:46 | Python | UTF-8 | Python | false | false | 343 | py | # Plot performance for learning_rate=0.1
from matplotlib import pyplot
n_estimators = [100, 200, 300, 400, 500]
loss = [-0.001239, -0.001153, -0.001152, -0.001153, -0.001153]
pyplot.plot(n_estimators, loss)
pyplot.xlabel('n_estimators')
pyplot.ylabel('Log Loss')
pyplot.title('XGBoost learning_rate=0.1 n_estimators vs L... | [
"thiago.allue@yahoo.com"
] | thiago.allue@yahoo.com |
62d9537af18fc3c30d69a9a1d9bf0cc5f02f761c | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /better_storylines/src/evaluate_story_cloze_test.py | ea25a83e6fd346a0dd0ad056702fa1e1c874bb62 | [
"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 | 4,258 | 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 |
80c993714af78f5cb4e4762af61c743c91c48e70 | 379f10752e962b0695bdedcde5d55584b50cb0c0 | /setup.py | 2b616540f4bcfdb409eaba1bf1883e228b215dc0 | [
"MIT"
] | permissive | mahlettaye/Lidar_3DEM | e6a9c875c2900a1d7c9e3c490d4625a11a6b7a29 | af0a10afb7a6acd3e7eb601cb2152015458ed52e | refs/heads/master | 2023-08-13T10:35:13.895085 | 2021-10-20T04:18:32 | 2021-10-20T04:18:32 | 400,816,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from setuptools import setup, find_packages
classifiers = [
'Development Status :: 2 - Pre-Alpha',
'Intended Audience :: Education',
'Programming Language :: Python :: 3'
]
setup(
author='Mahlet Taye',
author_email='formahlet@gmail.com',
name='LIDAR_3DEM',
version='0.1.0',
descripti... | [
"you@example.com"
] | you@example.com |
6480af91ae31cc3d289d896f4297cc1af6742c2f | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/matrices/tests/test_normalforms.py | 5be332446dac4ca65b0ac9c87b3e1e1666f6869d | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 882 | py | from sympy import Symbol, Poly
from sympy.polys.solvers import RawMatrix as Matrix
from sympy.matrices.normalforms import invariant_factors, smith_normal_form
from sympy.polys.domains import ZZ, QQ
def test_smith_normal():
m = Matrix([[12, 6, 4,8],[3,9,6,12],[2,16,14,28],[20,10,10,20]])
setattr(m, 'ring', ZZ)
... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
1dd04629d4fe0a0932f648ef6f07170eb03fe9e0 | 46ac0965941d06fde419a6f216db2a653a245dbd | /sdks/python/test/test_AppDistributionGroupUsersRequest.py | 93310f6c325a96c20600d8c0e085dcb9a65832aa | [
"MIT",
"Unlicense"
] | permissive | b3nab/appcenter-sdks | 11f0bab00d020abb30ee951f7656a3d7ed783eac | bcc19c998b5f648a147f0d6a593dd0324e2ab1ea | refs/heads/master | 2022-01-27T15:06:07.202852 | 2019-05-19T00:12:43 | 2019-05-19T00:12:43 | 187,386,747 | 0 | 3 | MIT | 2022-01-22T07:57:59 | 2019-05-18T17:29:21 | Python | UTF-8 | Python | false | false | 1,066 | py | # coding: utf-8
"""
App Center Client
Microsoft Visual Studio App Center API # noqa: E501
OpenAPI spec version: preview
Contact: benedetto.abbenanti@gmail.com
Project Repository: https://github.com/b3nab/appcenter-sdks
"""
from __future__ import absolute_import
import unittest
import appcente... | [
"b3nab@users.noreply.github.com"
] | b3nab@users.noreply.github.com |
d56787796d37eb49a9a784dcd66499f4274899f0 | 20387589a922dcfdfb47c23c692318b9cc4f7515 | /listings/views.py | a7b9bef8da7811f2fc3be8f3a7228589097c1cc8 | [] | no_license | shahjalalh/btre | c95a951eea32bde64d8cd01a73771efed0b99125 | 56069a03b8fc35febdb864312aefb368404d3090 | refs/heads/master | 2020-05-22T03:27:19.401585 | 2019-10-21T10:44:40 | 2019-10-21T10:44:40 | 186,212,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,050 | py | from django.shortcuts import render, get_object_or_404
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from listings.models import Listing
from listings.choices import price_choices, bedroom_choices, state_choices
# Create your views here.
def index(request):
listings = Listing.objects.... | [
"shahjalal.tipu@gmail.com"
] | shahjalal.tipu@gmail.com |
a50a3721da05a0a27cecaa6aa1c042b2b6af8159 | 117626e3c32dc848519d319635cb995bbe78dd43 | /examples/imdb.py | 017f8bf4266a595c1d70cff9213516ae760ed660 | [
"MIT"
] | permissive | amcs1729/Keras-IndRNN | 412a183a0f1149ce905ebef6748330079ae0ad8d | e5f1da3c4d191bd528491f11ae7bdf0fdb54df21 | refs/heads/master | 2022-11-15T03:24:41.366368 | 2020-07-10T15:34:29 | 2020-07-10T15:34:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,254 | py | '''Trains a Minimal RNN on the IMDB sentiment classification task.
The dataset is actually too small for Minimal RNN to be of any advantage
compared to simpler, much faster methods such as TF-IDF + LogReg.
'''
from __future__ import print_function
import os
from keras.preprocessing import sequence
from keras.models im... | [
"titu1994@gmail.com"
] | titu1994@gmail.com |
f89f783a1d90fd93f69cab3aa560869306aa5aad | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/vz/rtintraepg.py | 60a181a70e329f73daad40d7b7e163a4d27998c4 | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 6,137 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
3922819099c6ac8d461fdda7a281e41f2ade3c9c | 03dfcd4bd41ff9ba76e67895e96a9794ad003a31 | /tutorial/9-classes/object.py | e2a14344132cd7641300d8541f7d7f4f772ff7bf | [] | no_license | gittygitgit/python-sandbox | 71ca68fcc90745931737f7aeb61306ac3417ce60 | 3b3e0eaf4edad13aabe51eb3258ebe9e6b951c67 | refs/heads/master | 2021-01-19T02:41:17.047711 | 2018-11-22T18:07:15 | 2018-11-22T18:07:15 | 39,742,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | #!/usr/bin/python
# is there an Object class that everything extends from?
# yes
# how do you get a handle to the Object class?
print object
# object has no baseclasses
print object.__bases__ # returns empty tuple ()
# difference between a type and a base...
# each object has a single type...it's type
print type("t... | [
"grudkowm@Michaels-Air-2.fios-router.home"
] | grudkowm@Michaels-Air-2.fios-router.home |
9f55979e50154c96648c73a1506a7753eef4cfda | 0c469c4100fe9d352e83731688e388062a3c55c7 | /bactracking/37. Sudoku Solver.py | 96b9e17b6889f4bd966b4d102c71d7b9b3372080 | [] | no_license | asperaa/back_to_grind | 9e055c7e6561384e5b7ae52f01063e4beb34a298 | 5ea1976b9d5c6d04800e296e45e8ff90fdde5001 | refs/heads/master | 2022-12-16T18:32:01.443743 | 2020-09-05T13:29:39 | 2020-09-05T13:29:39 | 254,910,528 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | """We are the captains of our ships, and we stay 'till the end. We see our stories through.
"""
"""37. Sudoku Solver
"""
class Solution:
def solveSudoku(self, board):
self.solve(board)
def solve(self, board):
for i in range(9):
for j in range(9):
if board[i][j... | [
"adityaankur44@gmail.com"
] | adityaankur44@gmail.com |
fd33f9e1e4befb522cdb051178add1f66fc9e2ad | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/PyQt5/QtWidgets/QListWidgetItem.py | 0787a284749b0903ac1dee930f442569072e297e | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,602 | py | # encoding: utf-8
# module PyQt5.QtWidgets
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\PyQt5\QtWidgets.pyd
# by generator 1.146
# no doc
# imports
import PyQt5.QtCore as __PyQt5_QtCore
import PyQt5.QtGui as __PyQt5_QtGui
import sip as __sip
class QListWidgetItem(__sip.wrapper):
... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
c285438f7e8e453c14624038b1b409d0666a8568 | 33ff050337ba4575042032d9602bf84dcf81435e | /test/functional/test_framework/authproxy.py | 270128a77fe0e70ba6108139c410b737c1c6b010 | [
"MIT"
] | permissive | robinadaptor/chronon | 5256b33fbe797bbdeb9c9a3c2091f0592afe6614 | 630b3945824c1b1cd2ea67ca80835a9f669b9124 | refs/heads/master | 2020-07-11T06:27:01.758237 | 2019-12-17T20:53:48 | 2019-12-17T20:53:48 | 145,383,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,620 | py | # Copyright (c) 2011 Jeff Garzik
#
# Previous copyright, from python-jsonrpc/jsonrpc/proxy.py:
#
# Copyright (c) 2007 Jan-Klaas Kollhof
#
# This file is part of jsonrpc.
#
# jsonrpc is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# th... | [
"robin.adaptor@gmail.com"
] | robin.adaptor@gmail.com |
287919d9d917521c060f36cad6e6a8d764a13d3b | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/python/util/dispatch_test.py | d57a980d9a3c0a102a073a315e770b888eb16b5b | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 5,285 | py | # Copyright 2018 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... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
b4cfd589f9a33ea94d548b290b5ad92cab41c430 | 9dc1c85e7d86d29400af79125e9cd89a82a9b8ab | /su_django/su_django/settings.py | 70e3f66d9e3bf1dadbe6287aa4005594eb96c938 | [
"MIT"
] | permissive | borko81/simple_django | e284ff8f79b3e708b4903ba0b774e3a480de9190 | 9dbd2d848cbf0ff0c58e93471853c5b21c769758 | refs/heads/master | 2023-07-14T01:25:13.294095 | 2021-08-16T15:48:00 | 2021-08-16T15:48:00 | 349,369,208 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | import os
from pathlib import Path
# 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.2/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | [
"bstoilov81@gmail.com"
] | bstoilov81@gmail.com |
fe3c7db78c54e5352b73bf103a3df636a50cdaaa | 483f45b1d241d318c06842f250719e73b8c4dfe7 | /Ex084.py | 71a391cde9885a5f79bb5b240a9d890998173737 | [] | no_license | andersondev96/Curso-em-Video-Python | 510a82bfa65830449374eb5e2b81af404120689e | 76449e6a0ba3624d2c5643268499dea3fccfa5d1 | refs/heads/master | 2022-10-19T02:07:10.967713 | 2020-06-14T23:57:02 | 2020-06-14T23:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | """
Faça um programa que leia nome e peso de várias pessoas,
guardando tudo em uma lista. No final, mostre:
A) Quantas pessoas foram cadastradas.
B) Uma listagem com as pessoas mais pesadas.
C) Uma listagem com as pessoas mais leves.
"""
lista = list()
dados = list()
tot = 0
mai = men = 0
while True:
dados.append(... | [
"andersonfferreira13@hotmail.com"
] | andersonfferreira13@hotmail.com |
8e62cae88c31bff477b2aa066abce0303c029d80 | 3eb99709809a493c46a79171ef9774aa4261b59d | /脚本/llianli/cf_app_flottery_client_data.py | 62454ee49a8036d8b5a611fcd32f37f9b13c3625 | [] | no_license | bingwin/tencent | c831a5b344f597a06c7a7b179d4f67d668198c90 | ea5dc5ff398d85cfdf4df056dc8b4064e66fb5fb | refs/heads/master | 2020-07-28T21:44:00.281933 | 2016-05-28T03:21:31 | 2016-05-28T03:21:31 | 209,548,176 | 1 | 0 | null | 2019-09-19T12:29:21 | 2019-09-19T12:29:21 | null | UTF-8 | Python | false | false | 3,904 | py | #!/usr/bin/env python
#-*- coding: utf-8 -*-
# ******************************************************************************
# 程序名称: cf_app_flottery_client_data.py
# 功能描述: 掌上穿越火线抽奖功能客户端相关事件统计
# 输入参数: yyyymmdd 例如:20140113
# 目标表名: ieg_qt_community_app.tb_cf_app_flottery_client_click
# 数据源表: teg_mt... | [
"996346098@qq.com"
] | 996346098@qq.com |
9f25304223889a65bb1ac1016b8110a748efbb9d | 4438b60b7095d56c7fc2ee8396ea98ec620f7f51 | /etro.py | 9f2571163bab0f826fcb1b045c10e654888bf408 | [] | no_license | haizi-zh/firenze | 8a53e49a55f0827f8b0179164ed6c1ea9a3b005d | 1129bfd0df6f9d661b4f01ce514595f1eba784c3 | refs/heads/master | 2021-01-18T15:24:33.495830 | 2013-07-13T15:57:10 | 2013-07-13T15:57:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,946 | py | # coding=utf-8
import json
import string
import re
import common as cm
import geosense as gs
__author__ = 'Zephyre'
db = None
def fetch_continents(data):
result = []
for i in xrange(1, 5):
d = data.copy()
d['url'] = '%s%d/' % (data['url'], i)
result.append(d)
return result
def... | [
"haizi.zh@gmail.com"
] | haizi.zh@gmail.com |
b2851bd4f588b8c3675082d85433d7b02b70f58a | 82dca8287b9cc32599404c402240a177f7dfb9f7 | /venv/bin/sqlformat | b9ae5435c634511caba14ee0aff440ee9ac61801 | [] | no_license | kairat3/homework-tutorial | 8abaf2710a76c042701882cb904ea5cbac75f600 | 2babb6ddbd04fd596b0a5fe83e9b7eb1969c24d9 | refs/heads/master | 2023-05-05T14:34:25.121718 | 2021-06-01T09:40:51 | 2021-06-01T09:40:51 | 372,775,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/ka/projects/tutorial/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jvckmiller@gmail.com"
] | jvckmiller@gmail.com | |
1faf061beb78dad3524eae193c52e3e541f3652e | 28dbe47aba287ed94ef7bba734203736bcc06249 | /.history/dmac_20200624221838.py | 1dd8a319dcdd7456874878e6ce201b25c7df7cbf | [] | no_license | ntung88/Trading_Algorithms | 242fd816b19df95e02e9fcd8c5c91c862d2ede40 | d96488b1754e3751f739d9c3f094a8f8dc54a0a9 | refs/heads/master | 2022-11-19T16:04:07.800344 | 2020-07-17T21:14:10 | 2020-07-17T21:14:10 | 276,239,640 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,599 | py | import yfinance as yf
import numpy as np
from scipy.stats import norm
import pandas as pd
from pandasgui import show
from scipy.optimize import minimize, LinearConstraint
import matplotlib.pyplot as plt
def clean_data(data):
incomplete_idxs = False
for col in data.columns:
incomplete_idxs |= np.isnan(d... | [
"nathantung@Nathans-MacBook-Pro.local"
] | nathantung@Nathans-MacBook-Pro.local |
e7b577c747abdc08c9955fd13104ca6a9f5c9d3c | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_199/1725.py | c78439354107fb7183c695dfd3799280485c6f7d | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | INPUT_FILE = 'A-large.in'
OUTPUT_FILE = 'A-large_out.txt'
def solve(f_in):
l = f_in.readline().strip()
lst = l.split(' ')
k = int(lst[1])
pancakesStr = lst[0]
pancakes = 0
nPancakes = len(pancakesStr)
for i in range(nPancakes):
if pancakesStr[i] == '-':
pancakes = pancakes | (1 << (nPancakes - ... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
9c9a840d4942d09bbb6213039764fca57b919091 | ca507259c36a4299666f4c064f25832f5c3f45c1 | /test/test_mosaic_dto.py | f7959f7a562463df95275868b61ee3b8768dc54e | [] | no_license | fullcircle23/symbol-openapi-python-client | ae38a2537d1f2eebca115733119c444b79ec4962 | 3728d30eb1b5085a5a5e991402d180fac8ead68b | refs/heads/master | 2022-04-15T06:20:47.821281 | 2020-04-16T02:39:14 | 2020-04-16T02:39:14 | 254,701,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,273 | py | # coding: utf-8
"""
****************************************************************************
Copyright (c) 2016-present,
Jaguar0625, gimre, BloodyRookie, Tech Bureau, Corp. All rights reserved.
This file is part of Catapult.
Catapult is free software: you can redistribute it and/or modify
... | [
"fullcircle2324@gmail.com"
] | fullcircle2324@gmail.com |
c5f19c607da75bed9b9a36a1a5f11b71b04c0f5e | 637bb3f080ff18001a732d9bf607ef962b09c5dd | /AtividadeURI_01/uri_1012_area.py | 8d96cd42ca3bd54dc511638969355f63eba86ad3 | [] | no_license | magnoazneto/IFPI_Algoritmos | 995296fa22445c57981a1fad43e1ef7a8da83e5e | 3b5e79c79b7a1fb7a08206719fd418fba1b39691 | refs/heads/master | 2022-02-27T10:59:17.123895 | 2019-11-17T13:51:35 | 2019-11-17T13:51:35 | 186,868,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | def main():
entradas = input().split()
A = float(entradas[0])
B = float(entradas[1])
C = float(entradas[2])
tria_retangulo = (A*C) / 2
circulo = 3.14159 * (C**2)
trapezio = ((A+B) * C) / 2
quadrado = B ** 2
retangulo = A * B
print('TRIANGULO: {:.3f}'.format(tria_retangulo))
print('CIRCULO: {:.3f}'.format(cir... | [
"magnoazneto@gmail.com"
] | magnoazneto@gmail.com |
cd01a0671a16b17c6f88a80526d827fcc05fd55a | 52a15d4fabf68bf23a23799312ae40465764908c | /src/changeset/load.py | 56b0f7312eaf95e688e194baaccf8d0d1988df1e | [
"MIT",
"Apache-2.0"
] | permissive | jensl/critic | 2071a1b0600051967323df48f4d3a5656a5d2bb8 | c2d962b909ff7ef2f09bccbeb636333920b3659e | refs/heads/stable/1 | 2022-05-28T03:51:15.108944 | 2018-03-27T18:47:46 | 2018-03-29T15:08:30 | 6,430,552 | 224 | 36 | NOASSERTION | 2023-05-29T15:38:00 | 2012-10-28T18:26:04 | Python | UTF-8 | Python | false | false | 4,926 | py | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2012 Jens Lindström, Opera Software ASA
#
# 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... | [
"jl@opera.com"
] | jl@opera.com |
b9a24f96a2369aaff0a8e0ac012240974a522eba | 9a4bf3864d9e66ba285e2d28d570b920b47d1ae9 | /0886_Possible_Bipartition.py | 855be9f8c40a2796f8b15cc637eb0b4fa00bf602 | [] | no_license | actcheng/leetcode-solutions | bf32044bcd916912c86294d83638be08a27b9d8f | 4bf1a7814b5c76e11242e7933e09c59ede3284a3 | refs/heads/master | 2021-06-28T19:15:30.089116 | 2020-08-25T08:17:48 | 2020-08-25T08:17:48 | 139,708,553 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,317 | py | # Problem 886
# Date completed: 2020/05/27
# 1084 ms (18%)
class Solution:
def possibleBipartition(self, N: int, dislikes: List[List[int]]) -> bool:
rec = collections.defaultdict(set)
for a,b in dislikes:
rec[a].add(b)
rec[b].add(a)
wait = set(r... | [
"noreply@github.com"
] | actcheng.noreply@github.com |
cc06a1afd3cf990aab9e8017188708c6770ddf82 | 16b389c8dcace7f7d010c1fcf57ae0b3f10f88d3 | /docs/jnpr_healthbot_swagger/test/test_devicegroup_schema_publish.py | bd0b683c3c81f49498cdd4654c35eff56b402752 | [
"Apache-2.0"
] | permissive | Juniper/healthbot-py-client | e4e376b074920d745f68f19e9309ede0a4173064 | 0390dc5d194df19c5845b73cb1d6a54441a263bc | refs/heads/master | 2023-08-22T03:48:10.506847 | 2022-02-16T12:21:04 | 2022-02-16T12:21:04 | 210,760,509 | 10 | 5 | Apache-2.0 | 2022-05-25T05:48:55 | 2019-09-25T05:12:35 | Python | UTF-8 | Python | false | false | 994 | py | # coding: utf-8
"""
Healthbot APIs
API interface for Healthbot application # noqa: E501
OpenAPI spec version: 1.0.0
Contact: healthbot-hackers@juniper.net
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import swagge... | [
"nitinkr@juniper.net"
] | nitinkr@juniper.net |
04598fc33634c577860347eab85306f2b9f11336 | 10e19b5cfd59208c1b754fea38c34cc1fb14fdbe | /desktop/core/ext-py/django-openid-auth-0.5/django_openid_auth/tests/__init__.py | f76af6f1bdfa86e22acaa51e11710b716b03d492 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | sarvex/hue | 780d28d032edd810d04e83f588617d1630ec2bef | 6e75f0c4da2f3231e19c57bdedd57fb5a935670d | refs/heads/master | 2023-08-15T21:39:16.171556 | 2023-05-01T08:37:43 | 2023-05-01T08:37:43 | 32,574,366 | 0 | 0 | Apache-2.0 | 2023-09-14T16:55:28 | 2015-03-20T09:18:18 | Python | UTF-8 | Python | false | false | 1,749 | py | # django-openid-auth - OpenID integration for django.contrib.auth
#
# Copyright (C) 2009-2013 Canonical Ltd.
#
# 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 ... | [
"romain@cloudera.com"
] | romain@cloudera.com |
552019b6e9b5e757bfae8e0ece6e89266860f4b9 | d1e540562faabf463788e6ad31c337e2fe329944 | /holland/core/exceptions.py | 4b6356f5b6aa08cfd50a1938c60530cafa77c5e0 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | nwbreneman/holland | 5a675883d8ca037505bf6a9e271a3cc33b0c6902 | 8defe48aafb32388ec2bf1cc76070da98c766d8e | refs/heads/master | 2020-04-09T20:24:13.453638 | 2018-11-27T20:21:14 | 2018-11-27T20:21:14 | 160,572,324 | 0 | 0 | NOASSERTION | 2018-12-10T23:31:07 | 2018-12-05T20:08:38 | Python | UTF-8 | Python | false | false | 325 | py | """
Standard public exceptions that are raised by
the various APIs in holland-core
"""
class ConfigError(Exception):
"""Configuration error"""
pass
class InsufficientSpaceError(Exception):
"""Operation could not complete due to disk space"""
pass
class ArgumentError(Exception):
"""Invalid argumen... | [
"wdierkes@rackspace.com"
] | wdierkes@rackspace.com |
b3cdc2e5d186896ef3832edbf72fbb38490d134d | 4acfe1899465199ed5f6b40e6261f362a731cc28 | /stock_system/migrations/0037_auto_20210224_0626.py | 7168db6ee4400734b703dd338efd3587c50bbb15 | [] | no_license | Tiilon/cjs_inventory | 13d1304a4aa21b8ffb748fb29fd964795dfc3601 | a9e0b844d885c47355e8d40985f33265517595a8 | refs/heads/master | 2023-03-14T08:58:35.660834 | 2021-03-04T17:29:38 | 2021-03-04T17:29:38 | 340,845,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 677 | py | # Generated by Django 3.1.7 on 2021-02-23 22:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stock_system', '0036_auto_20210223_1852'),
]
operations = [
migrations.AddField(
model_name='brand',
name='reorder_l... | [
"tiilon42@gmail.com"
] | tiilon42@gmail.com |
6f6ca39857cec502b96273f03e3e4ee7a792ec78 | 7ea54debed6a3acda594adc9c9cb36027ba4842c | /article/migrations/0055_auto_20181011_2133.py | 8f5c3d1135ae3d38276a46d6339e4316356a3d01 | [
"MIT"
] | permissive | higab85/drugsandme | e32df050b0a1fb24c06c53eece50f2e4b9b4f01e | 7db66d9687ac9a04132de94edda364f191d497d7 | refs/heads/master | 2022-12-19T12:12:36.885236 | 2019-08-21T14:50:21 | 2019-08-21T14:50:21 | 153,900,258 | 2 | 1 | MIT | 2022-12-08T02:26:17 | 2018-10-20T11:48:46 | JavaScript | UTF-8 | Python | false | false | 1,195 | py | # Generated by Django 2.0.9 on 2018-10-11 21:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('article', '0054_auto_20181009_1452'),
]
operations = [
migrations.AddField(
model_name='articlepage',
name='search_d... | [
"gabh@protonmail.com"
] | gabh@protonmail.com |
25145269e9924692592b4be1912a1a7332cffae3 | 305a9cade2fd8a69ab363a40389420296eccddd0 | /LogExpConversion.py | 098470645632eee5e7d19ba3cf40459b5d5e055f | [] | no_license | PMiskew/Python3_Small_Projects | 823ee6fe20715e8aa9dbadf87f0091929ac87e58 | 1fd80b81d0fa80d90d894bd88a2039d15d2330ca | refs/heads/master | 2021-01-01T04:27:33.711886 | 2017-07-14T01:54:01 | 2017-07-14T01:54:01 | 97,176,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | import tkinter as tk
class LogExpConversionCalc:
def __init__(self):
self.root = tk.Tk()
self.labLog = tk.Label(self.root, text = "Log")
self.labLog.grid(row = 0, column = 0)
self.entN = tk.Entry(self.root, width = 1)
self.entN.grid(row = 1,column = 1)
self.en... | [
"paul.miskew@gmail.com"
] | paul.miskew@gmail.com |
78ba1ce80f8ed7fefab1b41579e66895862d173a | ee803c29e9c5216a16a2699854b98c8a6d9760b8 | /dataServer/FlaskDataServer/app/LocalDataServer/DBApi/Conf.py | cd4560affc42bb9db4f034e95e3bf0b2cb952893 | [] | no_license | algo2019/algorithm | c160e19b453bc979853caf903ad96c2fa8078b69 | 3b5f016d13f26acab89b4a177c95a4f5d2dc1ba1 | refs/heads/master | 2022-12-12T17:59:57.342665 | 2019-02-23T07:45:39 | 2019-02-23T07:45:39 | 162,404,028 | 0 | 0 | null | 2022-12-08T01:29:20 | 2018-12-19T08:08:13 | Python | UTF-8 | Python | false | false | 444 | py | DB_PATH = '/Users/renren1/test/LocalData.db'
EXCHANGE_ID = {
'SHFX': {'IM', 'AL', 'AU', 'NI', 'PB', 'CU', 'SN', 'ZN', 'AG', 'BU', 'RB', 'FU', 'HC', 'WR', 'RU'},
'DLFX': {'V', 'B', 'M', 'A', 'Y', 'JD', 'JM', 'J', 'BB', 'PP', 'L', 'I', 'FB', 'C', 'CS', 'P'},
'ZZFX': {'SR', 'CF', 'ZC', 'FG', 'TA', 'MA', 'WH'... | [
"xingwang.zhang@renren-inc.com"
] | xingwang.zhang@renren-inc.com |
544f529cb861e34908c3c8dc63ee19177cfa3629 | 6d05f0521eabec73a53f34c3080e9eaee14253fb | /eden/integration/hg/absorb_test.py | 9393ec1dbd3f226d39680fb89cae9510acf518d0 | [
"BSD-3-Clause"
] | permissive | eamonnkent/eden | 8d44ce7bd75329754fb38c1a815dbcdb65b1a481 | c0a837ec7d1f05903bbc17e707bc9fd427046fd8 | refs/heads/master | 2020-03-27T09:43:46.545906 | 2018-08-27T05:42:20 | 2018-08-27T05:52:34 | 146,367,298 | 0 | 0 | null | 2018-08-27T23:54:15 | 2018-08-27T23:54:15 | null | UTF-8 | Python | false | false | 3,344 | py | #!/usr/bin/env python3
#
# Copyright (c) 2004-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
f9fae8b6ca5b4e04fe4f6c0bd5bc1d152c5639c2 | f12770add2dd48d2262612fcb1aaecc4a714b4fb | /django/remoteomd/remoteomd/urls.py | 2e25dece1960a6dc2c60a4198f90325e94284859 | [] | no_license | github188/vending | 3558666b57b37e843e72d194d80f6a8ef5dbc7a4 | ce3e2f1fcbb4d132f7b01a99400d917d7ca174a6 | refs/heads/master | 2021-06-16T09:54:09.214694 | 2017-01-28T01:31:30 | 2017-01-28T01:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | """localomd URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"jeson.peng@gmail.com"
] | jeson.peng@gmail.com |
83705db78bfb60ae472f3a82f0c3f249d1980e10 | 340ace07b347ffd35852641591ea702e3bf0c947 | /Objects And Classes/06_inventory.py | a91bf8b7642e04bd617ff0643f0b43c17af565ba | [] | no_license | IvayloValkov/Python_Fundamentals | 8de28bf68d32822e0d442469477d2b2c87ba0f9f | e86cb3e516b4baf7027808128fc105f5b86807c9 | refs/heads/main | 2023-02-24T23:39:54.067798 | 2021-01-17T08:54:27 | 2021-01-17T08:54:27 | 330,347,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | class Inventory:
def __init__(self, capacity):
self.__capacity = capacity
self.items = []
def add_item(self, item):
if len(self.items) < self.__capacity:
self.items.append(item)
else:
return "not enough room in the inventory"
def get_cap... | [
"noreply@github.com"
] | IvayloValkov.noreply@github.com |
1607b39a03fe85418f0255842a8d9ea674b4af8d | 81b57282ccbc000a416382e3a91645a0938febb5 | /dbupgrade/files.py | 3169b028579926c781120b7ffef85e6454c79c19 | [
"MIT"
] | permissive | srittau/dbupgrade | 03ae61f5bd307c289db9d3069b87c5e5fbba934d | 35c704321a39a5319231dd78b1446e836ef3cadc | refs/heads/main | 2023-08-10T07:07:29.811756 | 2023-08-01T11:10:44 | 2023-08-01T11:10:44 | 120,672,859 | 2 | 0 | MIT | 2023-09-01T08:56:39 | 2018-02-07T21:17:50 | Python | UTF-8 | Python | false | false | 1,099 | py | import os.path
from os import listdir
from typing import List
class FileInfo:
def __init__(
self,
filename: str,
schema: str,
dialect: str,
version: int,
api_level: int,
) -> None:
self.filename = filename
self.schema = schema
self.dialec... | [
"srittau@rittau.biz"
] | srittau@rittau.biz |
97409bedd791d4aeea1ef231189b2d17114187b0 | 3a8b0cf0484e06f317923f0b6de08cb8e381b38b | /tests/test_routes.py | b746c6ae758c3e4c8c63eea60047645cc5059385 | [
"MIT"
] | permissive | luiscape/hdx-monitor-sql-collect | 844260b1bfb8152f5a741a76307775e09fd81515 | 3fb7d31363227de160f95d259dee2b0b38da1982 | refs/heads/master | 2021-01-10T07:36:55.642759 | 2015-11-19T15:18:53 | 2015-11-19T15:18:53 | 45,499,253 | 0 | 0 | null | 2015-11-19T15:18:53 | 2015-11-03T22:15:02 | Python | UTF-8 | Python | false | false | 6,468 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Integration tests for testing the application
HTTP routes and methods.
'''
import json
import flask
import unittest
import app.server as Server
class Generic(unittest.TestCase):
'''
Set of generic tests.
'''
def setUp(self, object):
self.object = object
de... | [
"luiscape@gmail.com"
] | luiscape@gmail.com |
f784c7b34a8ee2d40ec04537960612598627a438 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/32/usersdata/75/10599/submittedfiles/questao2_av1.py | 5570de3c54d4ac0fa8e7dbd035738c5856d048e5 | [] | 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 | 997 | py | # -*- coding: utf-8 -*-
from __future__ import division
a=int(input('Digite o primeiro número:'))
b=int(input('Digite o segundo número:'))
c=int(input('Digite o terceiro número:'))
d=int(input('Digite o quarto número:'))
e=int(input('Digite o quinto número:'))
f=int(input('Digite o sexto número:'))
na=int(input('Digit... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6de0665ab973cf33ab27a8950f3dabcf7953f852 | 3dbbde1aa96fc09e9aab885cf3713e86f3572dec | /gs-vtoi/bin/hachoir-metadata-gtk | 9ef9a81ee82a3aca600d74de4023a47b328d39de | [] | no_license | bopopescu/gs-vtoi | 6223d6dbf47e89292bd0e79e24e5664450e28cf6 | f12b802976d0020179d1b40b0b5e3af5b72d55cc | refs/heads/master | 2022-11-24T16:31:36.804869 | 2018-07-31T08:30:56 | 2018-07-31T08:30:56 | 282,551,982 | 0 | 0 | null | 2020-07-26T01:09:10 | 2020-07-26T01:09:09 | null | UTF-8 | Python | false | false | 3,649 | #!/Users/Sang/OneDrive/Developments/gs-vtoi/gs-vtoi/bin/python
import sys, pygtk, os
pygtk.require('2.0')
import gtk
from hachoir_core.cmd_line import unicodeFilename
from hachoir_parser import createParser
from hachoir_metadata import extractMetadata
from hachoir_metadata.metadata import MultipleMetadata
class Gui:
... | [
"sy0414@gmail.com"
] | sy0414@gmail.com | |
699d3bfef04aed9ea2fbddc55b9a01bb4b3afd83 | ad4c2aa0398406ccb7e70562560e75fa283ffa1a | /merge-two-binary-trees/merge-two-binary-trees.py | 081371ccd42e4224ccd32f00bbf5ef910c431f4d | [
"Apache-2.0"
] | permissive | kmgowda/kmg-leetcode-python | 427d58f1750735618dfd51936d33240df5ba9ace | 4d32e110ac33563a8bde3fd3200d5804db354d95 | refs/heads/main | 2023-08-22T06:59:43.141131 | 2021-10-16T14:04:32 | 2021-10-16T14:04:32 | 417,841,590 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | // https://leetcode.com/problems/merge-two-binary-trees
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def mergeTrees(self, t1, t2):
"""
:type t1: Tree... | [
"keshava.gowda@gmail.com"
] | keshava.gowda@gmail.com |
623081c6b4a86024a7ab4cf1d69a7e46d21600d1 | f131d940b96452441602e8bd687a55d62ea22912 | /models/unet.py | b4e6f1c0d05195078e8fc8f2d43815bfada6cbb9 | [] | no_license | aguilarmg/cs221-final-project | a66e3b9e037de59f83ef5a950106a46430a808c3 | 9506a50614ca1619dc4338e7e2afa02e99becec1 | refs/heads/master | 2020-06-01T07:40:34.281510 | 2020-03-28T12:39:56 | 2020-03-28T12:39:56 | 190,702,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | import torch
import torch.nn as nn
from torch.nn import Conv2d as Conv2D
import torch.nn.init as init
import torch.nn.functional as F
import numpy
from torch.nn import Upsample
class Up(nn.Module):
def __init__(self, channel_in, channel_out):
super(Up, self).__init__()
self.upsample = nn.Upsample(s... | [
"google-dl-platform@googlegroups.com"
] | google-dl-platform@googlegroups.com |
fdc1f3bb98810086e2d180f43f57c1b891d6fd4a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_cuffs.py | e56d0f9e3b98522f7ec4b6b644bb19718b341852 | [
"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 | 224 | py |
from xai.brain.wordbase.nouns._cuff import _CUFF
#calss header
class _CUFFS(_CUFF, ):
def __init__(self,):
_CUFF.__init__(self)
self.name = "CUFFS"
self.specie = 'nouns'
self.basic = "cuff"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5b81ab2428a480bcbaceb2e72a457fdc4d31ac41 | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ABC/ABC001~ABC099/ABC033/C.py | 0a5b493b4fb1a0d3b7c6093c373952bae7e20536 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | s=input().split('+')
if len(s)==1:
ans=1
for j in range(len(s[0])):
if s[0][j]!='*':
ans*=int(s[0][j])
if ans!=0:
ans=1
else:
ans=0
print(ans)
exit(0)
ans=0
for i in range(len(s)):
if eval(s[i])==0:
continue
ans+=1
print(ans) | [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
76a0a0029a7548dcbbc65c90816c31168f43dbd5 | 4b4c6b19805d52dab9cc232e343a45785fb33c5a | /mininews/managers.py | 12bd3bfe8ddd7a916fcc8dfdcee9823b4eb076f4 | [
"MIT"
] | permissive | marcinn/django-mininews | d5866c11a7947ec5bc724dc1d61ce2b49b2e0177 | 5868fd5978ab0e64a68df576b8f14b4d4caf1bb5 | refs/heads/master | 2023-03-31T11:13:56.729693 | 2021-03-24T00:54:20 | 2021-03-24T00:54:20 | 350,901,546 | 0 | 0 | MIT | 2021-03-24T00:50:16 | 2021-03-24T00:50:16 | null | UTF-8 | Python | false | false | 387 | py | from django.db.models.query import QuerySet
from django.db.models import Q
import datetime
class MininewsQuerySet(QuerySet):
def live(self, statuses=['published']):
today = datetime.date.today()
return self.filter(status__in=statuses).\
filter(Q(start__lte=today) | Q(start__isnull=Tr... | [
"richard@arbee-design.co.uk"
] | richard@arbee-design.co.uk |
336506c6a65cfee6893992a7afd6b8650db9d2c4 | 3aef4825c5f2366f2e551cdfa54b88c034b0b4f4 | /tutorials/2_tensorflow_old/sklearnTUT/sk10_cross_validation3.py | 5818f6b03c21bbb84be7ede221d50d2aee9605d5 | [
"MIT"
] | permissive | wull566/tensorflow_demo | 4a65cbe1bdda7430ab1c3883889501a62258d8a6 | c2c45050867cb056b8193eb53466d26b80b0ec13 | refs/heads/master | 2020-04-06T17:34:05.912164 | 2018-11-15T07:41:47 | 2018-11-15T07:41:48 | 157,665,187 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | # View more 3_python 1_tensorflow_new tutorial on my Youtube and Youku channel!!!
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial
"""
Please note, this code is only for 3_python 3+. If you are using 3_python 2+, please modify... | [
"vicleo566@163.com"
] | vicleo566@163.com |
f0fccbe1f1d129a6d95be4858240a525c0c23db7 | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/aaa/aretp.py | 2ca1f5865928d1d54330991f06f2bb16cd4862ad | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 5,007 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
1d83ba7c7e40243158ac207a36dd6c74cb8eb0f3 | d85a26d336fd127fd002e661ac6442bd915bf3ea | /tests/test_settings.py | c8313c5a17705b52a1c26f22481ce03cd2363cd5 | [
"Apache-2.0"
] | permissive | uduse/bonobo | e2f1addee253fc4798ef854dc89a39c7a4deaa36 | 4247f17d381161dfe26a9d294dfa33594338cf38 | refs/heads/master | 2021-08-28T06:42:10.700541 | 2017-12-11T12:50:36 | 2017-12-11T12:50:36 | 113,858,232 | 1 | 0 | null | 2017-12-11T12:50:37 | 2017-12-11T12:47:37 | Python | UTF-8 | Python | false | false | 1,585 | py | import logging
from os import environ
from unittest.mock import patch
import pytest
from bonobo import settings
TEST_SETTING = 'TEST_SETTING'
def test_to_bool():
assert not settings.to_bool('')
assert not settings.to_bool('FALSE')
assert not settings.to_bool('NO')
assert not settings.to_bool('0')
... | [
"romain@dorgueil.net"
] | romain@dorgueil.net |
9fec051f4266d18f40cc3b954c62022c834e4c02 | 82f67ea9fbf21d21f26b611cea5ad6047617e1ab | /cvs-projects/build_scripts/utils/zenlib.py | ec69bfbcea2816b1674a0efbd0ddf0cde88ffa6d | [] | no_license | metalsky/mvst | 741a0e8ddc1c43ca28c7b26dc5720e965a70b764 | e1deb593f47c28e0142e66d11ca47fa4af247ed8 | refs/heads/master | 2020-03-19T09:42:59.923445 | 2018-03-02T00:38:58 | 2018-03-02T00:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | #!/usr/bin/python
#Normal
import sys, traceback, syslog
from types import *
#Pyro
try:
import Pyro.core
except:
logError(traceback.format_exc())
PYROSERVER = 'PYROLOC://overlord:7769/zenbuild'
Pyro.core.initClient(0)
Pyro.config.PYRO_PRINT_REMOTE_TRACEBACK = 1
LOG_FACILITY = syslog.LOG_LOCAL0
def logError(msg)... | [
"njka.github@gmail.com"
] | njka.github@gmail.com |
89412e55408ee7a9d9b91b23e4891741e3ca1a77 | 9d1238fb0e4a395d49a7b8ff745f21476c9d9c00 | /framework/Tests/PAS/PAS/SecuritySettings/MultiplePasswordCheckouts/test_system_level_password_checkout_blank.py | a7f3b714415f8fbea980a615498a546f84534f42 | [] | no_license | jaspalsingh92/TestAutomation-1 | a48ee1d3b73386f1bf8f53328a5b55444238e054 | e631c67255b10f150e0012991fb1474ede904417 | refs/heads/master | 2023-04-18T14:52:08.836221 | 2021-04-07T12:01:07 | 2021-04-07T12:01:07 | 357,175,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,419 | py | import pytest
import logging
from Shared.API.infrastructure import ResourceManager
from Shared.API.redrock import RedrockController
logger = logging.getLogger("test")
lock_tenant = True
@pytest.mark.api
@pytest.mark.pas
def test_system_level_password_checkout_blank(core_session, pas_windows_setup, users_and_roles,
... | [
"singh.jaspal92@gmail.com"
] | singh.jaspal92@gmail.com |
49ae7530ff0772b04bb33a96550692f5f9106cbf | c9fde4576216a22e8d5711bbe97adda1aafa2f08 | /model-optimizer/mo/front/common/partial_infer/reduce.py | 74fdd40e9a935d5f5158baaf54e31969ede37593 | [
"Apache-2.0"
] | permissive | dliang0406/dldt | c703d6a837de3f996528fc8a9543f9530b23342c | d9b10abcebafe8b10ba81e09e433de7a366c072c | refs/heads/2018 | 2020-04-03T08:24:47.723353 | 2018-10-29T07:58:05 | 2018-10-29T07:58:05 | 155,132,108 | 3 | 1 | Apache-2.0 | 2019-10-10T08:39:46 | 2018-10-29T01:03:54 | C++ | UTF-8 | Python | false | false | 1,410 | py | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | [
"openvino_pushbot@intel.com"
] | openvino_pushbot@intel.com |
7b1c11206207badd5f7d7c507c0be0f6262fa6eb | aad917f794226f917257ce103c295fd85a51ee62 | /categories/models.py | 6ee2075d4d3e0087cdb60858341277d6ddcecc4f | [] | no_license | jgsogo/bb-django-taxonomy-categories | 3fc05d5b3074cd6a469e97b81ad545834438adab | f00b86bcd08857a668cb62ef40caac0c3cba4bb5 | refs/heads/master | 2020-12-20T11:28:03.426634 | 2013-02-02T21:14:01 | 2013-02-02T21:14:01 | 236,059,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py | #!/usr/bin/env python
# encoding: utf-8
from django.db import models
from django.template.defaultfilters import slugify
from django.utils.translation import ugettext_lazy as _
from taxonomy.models.taxon import BaseTaxon
from taxonomy.managers import TaxonManager
class CategoryManager(TaxonManager):
def choices(s... | [
"jgsogo@gmail.com"
] | jgsogo@gmail.com |
c59afdb801c2ae60596ec009aeb16a6c7eb6379e | c3cd2d040ceb3eabd387281835cacd0967fdbb6a | /web2py/extras/build_web2py/web2py.win_no_console.spec | d6c55d2f3ecd4375adca10507765bc7b3bc23279 | [
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-2.0-only",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | operepo/smc | cc55338b8b9fbeac78e67397079759965d859b68 | d10e7b7567266e31de73e5b29663577cab119a90 | refs/heads/master | 2022-09-22T07:17:59.970650 | 2022-07-11T00:20:45 | 2022-07-11T00:20:45 | 116,905,452 | 1 | 3 | MIT | 2021-03-09T03:01:37 | 2018-01-10T03:53:08 | Python | UTF-8 | Python | false | false | 2,230 | spec | # -*- mode: python -*-
block_cipher = None
a = Analysis(['web2py.py'],
pathex=['.'],
binaries=[],
datas=[],
hiddenimports=['site-packages', 'argparse', 'cgi', 'cgitb', 'code', 'concurrent', 'concurrent.futures',
'concurrent.futures._base', 'concurren... | [
"ray@cmagic.biz"
] | ray@cmagic.biz |
05e0de1b6de56c36b6858a92f1e58b04ba53ba4e | 1f7d287ef90041e20468513a26a39e1f3d221289 | /Level-2/s15/guvi-L2-s15-py03.py | bd07bcfd56aa7a6e68f256aa01b44c59c5d2dc54 | [] | no_license | ksthacker/python | d787d69f954c0e9b59b0cc96a8b8fc5c0594d8a0 | 3a3775e1b9349e313f8c96ea11eade54a7e9bf54 | refs/heads/master | 2021-04-27T16:32:40.923316 | 2019-08-21T04:50:22 | 2019-08-21T04:50:22 | 122,303,461 | 0 | 17 | null | 2019-10-03T14:59:51 | 2018-02-21T07:09:32 | Python | UTF-8 | Python | false | false | 240 | py | import sys,string, math,itertools
n = int(input())
L1 = [ int(x) for x in input().split()]
L2 = [ int(x) for x in input().split()]
L22 = sorted(L2)
L12 = []
for x in L22 :
k = L2.index(x)
L12.append(L1[k])
print(*L12)
| [
"noreply@github.com"
] | ksthacker.noreply@github.com |
9d64563f089d3521304bb6648f440eb8c1b1e375 | c18a63e2e37712025794bc7d0bb824ca3a8cde51 | /IDserver/ssh_remote/data.py | 3f38241e919d3df484d294e500f8023dcdca543e | [] | no_license | wuqiangchuan/Xproxxx | 9202767573a3f0bfc1b00b6069eaf6ef9bc25907 | 6403bde2bc091faab55cca5ac9fff62b13d6a0cb | refs/heads/master | 2021-01-01T17:48:55.335991 | 2017-07-20T10:00:52 | 2017-07-20T10:00:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import json
class BaseData(object):
def __init__(self, data=""):
self.from_json(data)
def from_json(self, data=""):
self.__dict__ = json.loads(data)
def to_json(self):
return json.dumps(self)
def get_type(self):
return self.tp
class ClientData(BaseData):
def ... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
fb1fff9a82da62a462954d422bee1491b4574f0d | c1f0e38201ef91e772a1ffd3819b58382f7b4dc2 | /partner_bank_iban_convert/models/res_partner_bank.py | 138bfced7485a67c25080adfea1668015a9be059 | [] | no_license | victoralmau/account | f1007f3a645c0d529ad3cf519c0ffed0801c3eea | 522f59d8fb6bd7ae2cc910ac24152eb967a8c142 | refs/heads/master | 2022-12-24T08:33:00.150369 | 2020-04-03T08:34:21 | 2020-04-03T08:34:21 | 284,680,712 | 0 | 0 | null | 2020-08-03T11:21:46 | 2020-08-03T11:21:45 | null | UTF-8 | Python | false | false | 2,485 | py | # -*- coding: utf-8 -*-
import logging
_logger = logging.getLogger(__name__)
from openerp import api, models, fields
from openerp.exceptions import Warning
from datetime import datetime
import requests, json
class ResPartnerBank(models.Model):
_inherit = 'res.partner.bank'
@api.one
def check_iban_conver... | [
"informatica@arelux.com"
] | informatica@arelux.com |
bcf29855ebe59aa2492ec108f429f524118b32d3 | c5d553e68de3d5c730f5fe2550209de759eabc8c | /프로그래머스/unrated/176963. 추억 점수/추억 점수.py | fd8452d93516976756e970ca7c06bdcfd1d358f5 | [] | no_license | KimMooHyeon/Algorithm-Studying | 6bb23b971b0c46c35f4cdde133148f2c5cfaa0f4 | e4417aadf209fd22f960239623bed542744fd374 | refs/heads/master | 2023-08-08T02:28:02.460332 | 2023-07-15T14:22:53 | 2023-07-15T14:22:53 | 198,966,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | def solution(name, yearning, photo):
answer = []
hashScore = {}
for i in range(0,len(name)) :
hashScore[name[i]]=yearning[i]
print(hashScore)
for photoList in photo:
num = 0
for onePhoto in photoList:
if onePhoto in hashScore:
num+=hashScore[onePh... | [
"dlfb77@gmail.com"
] | dlfb77@gmail.com |
04bdb90a656863ac33204b200f157b78e9b4a660 | 7ab15522084e2f81d39cda505da844fb4d519f9d | /Logic and basic mathematics/Hard/Weird list/weird_list.py | e47346d384a1b426a8e538aab2170fa21eb8a2b7 | [] | no_license | Infinite-Loop-KJSIEIT/Algo-Talks | 1662cfd802bfbe4a9bfcf80a9c3157334e5cb4fd | 27d85ae3827f8765a4ebe98c80cc55b53c0562b0 | refs/heads/master | 2022-12-25T21:53:57.745115 | 2020-10-03T07:07:02 | 2020-10-03T07:07:02 | 286,681,402 | 13 | 3 | null | 2020-10-03T07:07:04 | 2020-08-11T07:53:23 | Python | UTF-8 | Python | false | false | 1,374 | py | def query(i,arr,repeat):
if i < len(arr):
return arr[i]
else:
return (repeat[(i - len(arr))% len(repeat)])
def solve():
n = int(input())
a,b,c = map(int,input().split())
arr = []
mem = {}
while True:
if n in mem:
break
else:
arr.a... | [
"keshav.sm@somaiya.edu"
] | keshav.sm@somaiya.edu |
3e40c4baffc41e0e6c66dcf3225c7b95f25bf744 | 37fef592f365194c28579f95abd222cc4e1243ae | /streamlit/Unbottled/Pages/2_Wine_Explorer.py | 799e5b08ba10636602ad117bd4c472fd5310c68c | [] | no_license | edimaudo/Python-projects | be61e0d3fff63fb7bd00513dbf1401e2c1822cfb | 85d54badf82a0b653587a02e99daf389df62e012 | refs/heads/master | 2023-04-07T03:26:23.259959 | 2023-03-24T12:03:03 | 2023-03-24T12:03:03 | 72,611,253 | 4 | 3 | null | 2022-10-31T18:10:41 | 2016-11-02T06:37:17 | null | UTF-8 | Python | false | false | 1,021 | py | w# Libraries
import streamlit as st
import pandas as pd
import plotly.express as px
@st.cache
def load_data():
data = pd.read_csv(DATA_URL)
return data
# Load data
DATA_URL = "winemag-data_first150k.csv"
df = load_data()
st.title('Unbottled')
st.header("Wine Explorer")
country_list = df['country'].unique()
... | [
"edimaudo@gmail.com"
] | edimaudo@gmail.com |
8ee62c7ae4ce8147c226b824dc7d65eca8972907 | 03a2c1eb549a66cc0cff72857963eccb0a56031d | /leetcode/magic-squares-in-grid.py | 8fe33c0521dd7a3b930269182a7b70defb66cada | [] | no_license | nobe0716/problem_solving | c56e24564dbe3a8b7093fb37cd60c9e0b25f8e59 | cd43dc1eddb49d6b5965419e36db708c300dadf5 | refs/heads/master | 2023-01-21T14:05:54.170065 | 2023-01-15T16:36:30 | 2023-01-15T16:36:30 | 80,906,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | from typing import List
class Solution:
def numMagicSquaresInside(self, grid: List[List[int]]) -> int:
def is_magic(x: int, y: int) -> bool:
col_sum, row_sum, dia_sum = [0, 0, 0], [0, 0, 0], [0, 0]
ws = set()
for i in range(x, x + 3):
for j in range(y, y... | [
"sunghyo.jung@navercorp.com"
] | sunghyo.jung@navercorp.com |
4ab2751ff496c14437c5da2dcae0880daf0f0322 | 9ba71c165fe70e1bba26bd3d6230c321e0aa60ec | /src/python/up_sqllite_cdi.py | 68a056f9cd7cc95957529375e5b6213b626cdf07 | [] | no_license | gabrielreiss/DB_econ | 0977899be20986a0b33937a534e6cbbc9fb767a2 | bcf6de08402b09c0e84f8696b92ef3c0846b3cc1 | refs/heads/master | 2022-08-02T03:55:08.096697 | 2020-05-26T18:57:27 | 2020-05-26T18:57:27 | 266,602,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,171 | py | import os
import sqlalchemy
import argparse
import pandas as pd
BASE_DIR = os.path.dirname(os.path.dirname( os.path.dirname(__file__) ) )
DATA_DIR = os.path.join( BASE_DIR, 'data' )
SQL_DIR = os.path.join( BASE_DIR, 'src', 'sql' )
RESULT_DIR = os.path.join( BASE_DIR, 'resultado' )
print(DATA_DIR)
# Abrindo conexão c... | [
"gabrielreissdecastro@gmail.com"
] | gabrielreissdecastro@gmail.com |
7c3dfcfc469f34534a03b2380bb90d7fa72abae0 | f4c0df92671a9cd021415830e8b7183cc7c6422f | /Play/migrations/0001_initial.py | 4f26e1c683f4634e78ef5bd89154cb9960eafeef | [] | no_license | JorgitoR/DrawSomthing-Django-Python | 322e301e67ff58224fe6d628dde815ca8ed501ca | d6e0997e2ffbf38ca5b1a44c2c9840ac8bf8286d | refs/heads/main | 2023-04-09T16:14:31.152384 | 2021-04-13T22:26:08 | 2021-04-13T22:26:08 | 357,693,300 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # Generated by Django 3.2 on 2021-04-13 20:27
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='solucion',
fields=[
('id', models.BigAutoFiel... | [
"jorgitouribe133@gmail.com"
] | jorgitouribe133@gmail.com |
0596bfd7f19ac3df4ef8e329fb73a591a444828c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_study.py | c48d7435c9a758b6b9ac596e39c436b127f51674 | [
"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 | 731 | py |
#calss header
class _STUDY():
def __init__(self,):
self.name = "STUDY"
self.definitions = [u'the activity of examining a subject in detail in order to discover new information: ', u'a drawing that an artist makes in order to test ideas before starting a painting of the same subject', u'the act of learning about... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
6e1b2983208299a57bab42a21a2cd696e401903c | fd717fe6ca74f6d77210cdd57a8c365d27c5bfc6 | /pychron/monitors/monitor.py | 31a1c54dd066afc976076913098eb1410bb2fb66 | [
"Apache-2.0"
] | permissive | stephen-e-cox/pychron | 1dea0467d904d24c8a3dd22e5b720fbccec5c0ed | 681d5bfe2c13e514859479369c2bb20bdf5c19cb | refs/heads/master | 2021-01-19T15:40:03.663863 | 2016-07-14T14:37:16 | 2016-07-14T14:37:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,193 | py | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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/licens... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
7fed4d541de3bcf5193df154b82115797d4c2dd1 | 1521332438d4e711b6fa4af825047a3466925511 | /GuessingGame/guessingGame.py | 9bede277f18ac0b9985398ce5dc0e9f097dfbcd3 | [] | no_license | JakeAttard/Python-2807ICT-NoteBook | df0907bdca9ff10f347498233260c97f41ea783b | 9a38035d467e569b3fb97f5ab114753efc32cecc | refs/heads/master | 2020-04-26T17:33:18.184447 | 2019-11-05T13:04:56 | 2019-11-05T13:04:56 | 173,717,675 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 619 | py | import random
randomNumber = random.randint(1, 10)
player = None
while True:
player = input("Pick a number from 1 to 10:")
player = int(player)
if player < randomNumber:
print("The number you entered is to low!")
elif player > randomNumber:
print("The number you entered is to high!")
... | [
"jakeattard18@gmail.com"
] | jakeattard18@gmail.com |
d06c93dc79f19ab2a2e5a94c345f87b70f022eb9 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-sgw/aliyunsdksgw/request/v20180511/DeleteGatewayBlockVolumesRequest.py | a2c400048585f93262c6d389ea4f5bc52f6e85d2 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,010 | 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 |
b0ceda92856ed55a8490f94731a8f267fc40675d | 0d1ad7e5fca72ae767c7ddbe0406eb72e733596c | /smartedukart/urls.py | a435775c5b34ea5513f8ae112901fb76a26b0265 | [
"MIT"
] | permissive | Vishesh-Conbi/Chatbot | d223faa4e2935da3f9abec8821e97c69e18a03d9 | c6a966eb1947064eeffe1a1722d672ca560377bd | refs/heads/main | 2023-03-01T02:25:49.853907 | 2021-02-09T10:22:58 | 2021-02-09T10:22:58 | 337,365,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | """quantum URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/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-based... | [
"="
] | = |
21d2e345e0a2621e72779c42482c834df4d1fbd2 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-mse/aliyunsdkmse/request/v20190531/GetPluginsRequest.py | 2e7bb852993547f26504fbcc5ba4ee96f124d88f | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,227 | 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 |
777b484e21a94d9a58c37e2f1454817c52064f88 | 1577e1cf4e89584a125cffb855ca50a9654c6d55 | /pyobjc/pyobjc/pyobjc-framework-InputMethodKit-2.5.1/setup.py | ba422bf4177764d84954db4d4b0ead83c748c644 | [
"MIT"
] | permissive | apple-open-source/macos | a4188b5c2ef113d90281d03cd1b14e5ee52ebffb | 2d2b15f13487673de33297e49f00ef94af743a9a | refs/heads/master | 2023-08-01T11:03:26.870408 | 2023-03-27T00:00:00 | 2023-03-27T00:00:00 | 180,595,052 | 124 | 24 | null | 2022-12-27T14:54:09 | 2019-04-10T14:06:23 | null | UTF-8 | Python | false | false | 1,203 | py | '''
Wrappers for the "InputMethodKit" framework on MacOSX 10.5 or later. The
interfaces in this framework allow you to develop input methods.
These wrappers don't include documentation, please check Apple's documention
for information on how to use this framework and PyObjC's documentation
for general tips and tricks ... | [
"opensource@apple.com"
] | opensource@apple.com |
f1f3b500c8af88016fadb2c242416fe86c0bce21 | 1065ec75d9ee668ffd7aafc6a8de912d7c2cee6f | /addons/script.icechannel.extn.extra.uk/plugins/livetv_uk/bbc_parliament_ltvi.py | d5fcbc1f8759f07f2c949ab8e4afcac6c5a7f8e4 | [] | no_license | bopopescu/kodiprofile | 64c067ee766e8a40e5c148b8e8ea367b4879ffc7 | 7e78640a569a7f212a771aab6a4a4d9cb0eecfbe | refs/heads/master | 2021-06-11T17:16:15.498281 | 2016-04-03T06:37:30 | 2016-04-03T06:37:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | '''
Ice Channel
'''
from entertainment.plugnplay.interfaces import LiveTVIndexer
from entertainment.plugnplay import Plugin
from entertainment import common
class bbc_parliament(LiveTVIndexer):
implements = [LiveTVIndexer]
display_name = "BBC Parliament"
name = "bbc_parliament"
... | [
"sokasoka@hotmail.com"
] | sokasoka@hotmail.com |
60da94b3d5a56964d1f99e9185da3b986a435a2c | 7c99ea5b1ffe089c97615336daf4b6ceed9a5b00 | /Configurations/HighMass/v7_Full2017/ANlogplot_configuration_em.py | fd4651d3d926308afef03f77ab35c8b698d176ef | [] | no_license | flaviacetorelli/PlotsConfigurations | 948faadba356e1d5e6f546dc11dd8dacfe1c1910 | aa5cf802c86902378617f566186bc638e69f9936 | refs/heads/master | 2022-05-02T00:37:56.070453 | 2022-03-18T10:14:23 | 2022-03-18T10:14:23 | 235,580,894 | 0 | 1 | null | 2020-01-22T13:37:30 | 2020-01-22T13:37:29 | null | UTF-8 | Python | false | false | 920 | py | # example of configuration file
treeName= 'Events'
tag = 'Full2017_em'
# used by mkShape to define output directory for root files
outputDir = 'rootFile_'+tag
# file with TTree aliases
aliasesFile = 'aliases.py'
# file with list of variables
variablesFile = 'variables_forANplot.py'
# file with list of cuts
cutsF... | [
"dennis.roy@cern.ch"
] | dennis.roy@cern.ch |
8dc78b28e68a52e460a2066b41bc262bb6a51ea6 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/PyQt_PySide_book/003_Placing several components in the box/005_Class_QSizePolicy/087_Maximum - toClass.py | a62d182be878b1c769b07b9724d61facdfe71f69 | [] | 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 | 676 | py | from PySide import QtCore, QtGui
import sys
class SampleWindow(QtGui.QWidget):
def __init__(self):
super(SampleWindow, self).__init__()
self.setWindowTitle("QSizePolicy")
self.resize(300, 150)
label = QtGui.QLabel("Текст надписи")
button = QtGui.QPushButton("1")
p... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.