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
0824890c7682a37bd8f5ede2a4dd61a7908ec30c
d4bfae1b7aba456a355487e98c50dfd415ccb9ba
/chrome/browser/resources/settings/animation/compiled_resources2.gyp
89d95422ad29c0104feed30c41e7ae4a3eccf8bd
[ "BSD-3-Clause" ]
permissive
mindaptiv/chromium
d123e4e215ef4c82518a6d08a9c4211433ae3715
a93319b2237f37862989129eeecf87304ab4ff0c
refs/heads/master
2023-05-19T22:48:12.614549
2016-08-23T02:56:57
2016-08-23T02:56:57
66,865,429
1
1
null
2016-08-29T17:35:46
2016-08-29T17:35:45
null
UTF-8
Python
false
false
542
gyp
# Copyright 2016 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. { 'targets': [ { 'target_name': 'animation', 'dependencies': [ '<(DEPTH)/ui/webui/resources/js/compiled_resources2.gyp:cr', ...
[ "serg.zhukovsky@gmail.com" ]
serg.zhukovsky@gmail.com
5c81c431ff1ca400fd3faaf76c322e1ce9b2d05f
87a89ec187089024a7f0ccbdf8612aea9f50413b
/cookbook/grid/scripts/fit.py
045dc23e9150d7215372f4b3f46375c8a318aed7
[ "Apache-2.0" ]
permissive
adityalahariya/projects
b0668fd50245bf4868e6f17a06082920fe472550
f97d77903aa1acc2e695b0122bfc46cc54001135
refs/heads/master
2023-08-22T04:56:07.187556
2021-10-17T04:38:09
2021-10-17T04:38:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,243
py
import pickle import pandas as pd from sklearn.model_selection import train_test_split from sklearn.metrics import classification_report from sklearn.ensemble import RandomForestClassifier, AdaBoostClassifier # + tags=["parameters"] upstream = ['features'] product = None model_type = 'random-forest' n_estimators = No...
[ "github@blancas.io" ]
github@blancas.io
78ed1e166a0d0265d9f726dba7779b14c99e9a78
091aa0151c1eadecd868a8872e2676ec76dda7ea
/keras/keras11_split.py
bf844020703f03844d91e85bc8fcbcb367e60e1d
[]
no_license
suki0331/bc2020
f7e67c9eaaa7b3c85ef6a8cf5af892309b77ecfd
37d9e0ea64fae358f7273ea866a37cce18ac231e
refs/heads/master
2022-12-15T07:17:32.799462
2020-09-15T04:01:42
2020-09-15T04:01:42
263,270,728
2
0
null
null
null
null
UTF-8
Python
false
false
1,619
py
import keras import numpy as np # get MSE from scikit_learn from sklearn.metrics import mean_squared_error # 1. 데이터 준비 x = np.array(range(1,101)) y = np.array(range(101,201)) x_train = x[:60] x_val = x[60:80] x_test = x[80:] x_pred = np.array(range(101,121)) y_train = x[:60] y_val = x[60:80] y_test = x[80:] # 2. 모델...
[ "suki0331@colorado.edu" ]
suki0331@colorado.edu
79011c872cc14441346cd0e3011e472dc1d97eec
e7b7505c084e2c2608cbda472bc193d4a0153248
/LeetcodeNew/python2/LC_1545.py
50ca5edf0fbad32bc2891f6a6cded29de53d0921
[]
no_license
Taoge123/OptimizedLeetcode
8e5c1cd07904dfce1248bc3e3f960d2f48057a5d
3e50f6a936b98ad75c47d7c1719e69163c648235
refs/heads/master
2023-02-27T21:13:40.450089
2023-02-07T04:11:09
2023-02-07T04:11:09
170,044,224
9
3
null
null
null
null
UTF-8
Python
false
false
836
py
import functools class Solution: def findKthBit(self, n: int, k: int) -> str: @functools.lru_cache(None) def dfs(n, k): if n == 1: return 0 N = (1 << n) - 1 if k <= N // 2: return dfs(n - 1, k) elif k == N // 2 + 1: ...
[ "taocheng984@gmail.com" ]
taocheng984@gmail.com
c89d62fccc81ad9b09abb5165799a5bc5be7c01e
5876ae7e3e2df5734abc4ffb69c26a976be9f3d1
/skusaparser/ui.py
00eee373f4ef0ee2f92801d8790b3c6554b13deb
[]
no_license
martolini/SKUSA
6d02524adf6537a6d54a0c2e50391bc63deed237
91aa835f9230bb9d0a2419f6bbbed19c21663d0b
refs/heads/master
2016-09-06T17:31:29.210799
2015-04-28T17:09:11
2015-04-28T17:09:11
11,513,001
0
0
null
null
null
null
UTF-8
Python
false
false
3,980
py
from Tkinter import * from ttk import * from tkFileDialog import askopenfilename import tkMessageBox from Queue import Queue from parse import * class Example(Frame): def __init__(self, parent): Frame.__init__(self, parent) self.y = 50 self.parent = parent self.host = StringVar() self.user = StringVar(...
[ "msroed@gmail.com" ]
msroed@gmail.com
23795ea9b505a7d8cdef631859f1f57c081768f1
25efff37b3273976acfba9fc266596aac8452601
/home/migrations/0016_auto_20200911_1644.py
3335deef764d131ea8550e5423b88c2489294136
[]
no_license
SubhoBasak/Ncbandson
87563ebedddfff01feef727372306151555868d2
03d7d3b55f122868414510c5ebca3cacb3e88328
refs/heads/master
2023-01-06T03:37:09.048092
2020-11-04T09:53:30
2020-11-04T09:53:30
309,961,172
1
0
null
null
null
null
UTF-8
Python
false
false
550
py
# Generated by Django 3.1.1 on 2020-09-11 11:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0015_delete_adbanner'), ] operations = [ migrations.AlterField( model_name='order', name='status', ...
[ "subhobasak50@gmail.com" ]
subhobasak50@gmail.com
11318afad872be2ac9335f180d9473e0f234c046
97ee5c0f2320aab2ca1b6ad0f18a4020dbd83d1c
/venv/Lib/site-packages/ibm_watson_machine_learning/tests/Cloud/Scripts_projects_dev_cloud.py
24164c7fb2199318fa617ea3dae67f84810c0e9b
[]
no_license
yusufcet/healty-hearts
4d80471e82a98ea1902b00c8998faed43f99616c
a4cd429484e857b849df08d93688d35e632b3e29
refs/heads/main
2023-05-28T13:57:09.323953
2021-05-06T04:15:27
2021-05-06T04:15:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,993
py
import unittest,time import logging from ibm_watson_machine_learning.tests.Cloud.preparation_and_cleaning import * class TestScripts(unittest.TestCase): logger = logging.getLogger(__name__) @classmethod def setUpClass(self): TestScripts.logger.info("Service Instance: setting up credentials") ...
[ "yusufcetin9999@gmail.com" ]
yusufcetin9999@gmail.com
1532640c4289f45d5bb4ba6a6f2cdc1976b9e879
c06002a780c0a1f33cc7bc1a84b4e54d1edf91f8
/Payload_Type/apfell/mythic/agent_functions/ifconfig.py
19973c923adbf71ec2861a23d3c7849d795a377d
[]
no_license
apple0012/apfell
98c5331383a09c420f7fde128d65882a87945337
8d0c83b6482a9724bcc0754384f423973c9c5dfe
refs/heads/master
2023-07-17T19:58:49.909027
2021-09-03T20:19:52
2021-09-03T20:19:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
from mythic_payloadtype_container.MythicCommandBase import * import json from mythic_payloadtype_container.MythicRPC import * class IfconfigArguments(TaskArguments): def __init__(self, command_line): super().__init__(command_line) self.args = {} async def parse_arguments(self): pass ...
[ "codybthomas@gmail.com" ]
codybthomas@gmail.com
d26233ad0ff106f1a09db3fc9df4995a0657e640
f9ff85c981942d15c65d37de107e0c5fa5e6a2ba
/pychron/entry/editors/production.py
cdba2f0f717a12bec346a93e789439f30115f085
[ "Apache-2.0" ]
permissive
kenlchen/pychron
0c729f1b1973b9883734007b7a318fe21669e6c1
ffd988e27ae09fb3e8a8790d87ff611557911d07
refs/heads/master
2021-01-24T21:53:42.293554
2016-04-04T07:18:39
2016-04-04T07:18:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,906
py
# =============================================================================== # Copyright 2014 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
831be087d19e717c9c6f97ef61460f91b1a7a98b
1840dc579928c7ec985c087afc2d67027462d2bb
/src/kinematic.py
66a829b5932c87da43d0307ea046b3f92c52e7f6
[]
no_license
visittor/hanuman_user
caa037ce9ed1b17da08ec3a25618c349b6f9f0cd
677fd015cb874e7ee0f43316f2c90dbca8785d3b
refs/heads/master
2020-03-23T16:15:01.274495
2019-07-05T13:55:39
2019-07-05T13:55:39
141,800,311
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
from visionManager.visionModule import KinematicModule from newbie_hanuman.msg import HanumanStatusMsg from std_msgs.msg import Empty class Kinematic(KinematicModule): def __init__(self): super(Kinematic, self).__init__() self.objectsMsgType = Empty self.posDictMsgType = Empty # TODO : uncomment lines bel...
[ "chattarin.rodpon@gmail.com" ]
chattarin.rodpon@gmail.com
1b5aaf0a5c12b3a9d4b37d9a9c62a4fb9c1d8e56
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/437/usersdata/309/95272/submittedfiles/funcoes1.py
f497ac115fbd651dccc855880f55e92e3fa93251
[]
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
1,141
py
# -*- coding: utf-8 -*- # Inicio da função p/ verificação de lista crescente def crescente (lista): k=0 for i in range (0,n,1): if lista[i]<lista[i+1]: k=k+1 if k==n: print("S") else: print("N") # Fim da função crescente def decrescente (lista): k=0...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
e9524dd2e21e55ac90ff0b4faea5a7917dd746ad
523e6c0e614a1197d169f870ec33067e131708ab
/selfdrive/debug/internal/honda_sniff_steering.py
2dc32d90b1a7160865c8530845b5e6b634d53a61
[ "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
pjlao307/openpilot
c49d4304c92195062eeca11c5524824b9441cdcd
10c337d94fa654eb2049fd62ecf8da2923659e84
refs/heads/master
2023-07-15T12:27:39.211361
2020-02-29T22:30:21
2020-02-29T22:30:21
94,034,412
5
1
MIT
2021-08-25T03:49:47
2017-06-11T22:01:12
C++
UTF-8
Python
false
false
2,133
py
#!/usr/bin/env python3 import os import zmq import cereal.messaging as messaging from cereal.services import service_list from panda.lib.panda import Panda from hexdump import hexdump import time def raw_panda(): p = Panda() print(p) p.set_uart_baud(2, 9600) p.set_uart_baud(3, 9600) p.set_uart_parity(2, ...
[ "geohot@gmail.com" ]
geohot@gmail.com
5628a1e5e382d93338d1c0421d69121a2593d32b
62e58c051128baef9452e7e0eb0b5a83367add26
/edifact/D98B/CASRESD98BUN.py
bf1735ac1610429acba9c2b46e33464474e68482
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
839
py
#Generated by bots open source edi translator from UN-docs. from bots.botsconfig import * from edifact import syntax from recordsD98BUN import recorddefs structure = [ {ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [ {ID: 'BGM', MIN: 1, MAX: 1}, {ID: 'DTM', MIN: 1, MAX: 9}, {ID: 'ERC', MIN: 0, MAX: 9}, {ID: 'LOC'...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
95d37ecdee22b110ce0ea1f2586a26f2d38891fd
c9ab605cdd2dbf92c9de05768ade0ecf1718be02
/SW_Expert_Arcademy/Programming_Beginner/1-52.py
e289b82824be8fc289d6f34559021973b9d44efd
[]
no_license
PyeongGang-Kim/TIL
42d69308cf99d2e07644b51d7636e1b64551a697
8711501d131ee7d78fdaac544dda2008adf820a1
refs/heads/master
2023-01-12T21:10:38.027946
2021-10-23T07:19:48
2021-10-23T07:19:48
195,937,990
10
1
null
2023-01-07T11:25:30
2019-07-09T05:22:45
HTML
UTF-8
Python
false
false
154
py
def largr(*a): c=0 b=[] for i in a[0]: b.append(i) return max(b) a=(3,5,4,1,8,10,2) b=largr(a) print("max{} => {}".format(a,b))
[ "pyeonggangkim@gmail.com" ]
pyeonggangkim@gmail.com
7249a062370e3956f5129849859376a0d72fc5b5
7cd6a7bc72f0026056a7238c0feea081bfff13a7
/bioprocs/scripts/tsv/pTsv2Xlsx.py
e420d1bfc26a6a07ff621857ccd52874fba4b57c
[ "MIT" ]
permissive
shijianasdf/biopipen
8d963ccca38e2a9d7a46582a5eec45c38924655c
d53b78aa192fd56a5da457463b099b2aa833b284
refs/heads/master
2023-08-18T18:28:03.306877
2019-12-31T16:17:35
2019-12-31T16:17:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
425
py
import csv from os import path from openpyxl import Workbook infile = {{i.infile | quote}} outfile = {{o.outfile | quote}} fn2sheet = {{args.fn2sheet}} def tsv2sheet(wb, tsvfile): ws = wb.create_sheet('Sheet1') with open(tsvfile) as f: reader = csv.reader(f, delimiter = "\t") for row in reader: ws.append(r...
[ "pwwang@pwwang.com" ]
pwwang@pwwang.com
d3c6f7cf72287579ed1fabeb4e33516354c77ccd
0a60838dd0b234d4f24006fa20571f21004b728b
/4.3/test_4306_product_page.py
e841f779e8903cf76114b415ed92771b0f0e3315
[]
no_license
Telelichko/Stepik_automatic_testing
0a3496d4b5a10838b3772585cd61ed64deb5b5e9
2aac3f29f225b14c6ba3ede15271732cca4be809
refs/heads/master
2021-06-17T03:32:07.352120
2019-07-29T18:07:46
2019-07-29T18:07:46
198,405,862
0
0
null
2021-04-20T18:23:14
2019-07-23T10:15:35
Python
UTF-8
Python
false
false
1,132
py
import pytest from proj_4306_product_page import ProductPage import time product_link = "http://selenium1py.pythonanywhere.com/catalogue/coders-at-work_207/?promo=newYear2019" def test_guest_can_add_product_to_cart(browser): page = ProductPage(browser, product_link) page.open() page.add_product_to_cart()...
[ "teleleichko@yandex.ru" ]
teleleichko@yandex.ru
cfec2488a4d156916aae7764986c9e9c4fc29192
2c49cebd7e11ffa5192bb2e5ceb5f8ac1bd24724
/code/feature_extraction/create_sph_files.py
3ad029f034a88d44714e6cc679ca3b09ffb0216d
[]
no_license
machnicole/prosody_nlp
3d6993c9c45024574970955d275753192e7b97a4
dc48f6dc96f07d2e7264f0c7096175abe202151f
refs/heads/master
2023-07-12T01:58:01.538296
2021-08-12T14:48:57
2021-08-12T14:48:57
350,102,070
0
0
null
2021-06-02T12:58:53
2021-03-21T19:47:34
Python
UTF-8
Python
false
false
901
py
import pickle import subprocess import os # out_dir = "/afs/inf.ed.ac.uk/user/s20/s2096077/prosody_nlp/data/vm/ger/input_features/sample_sph_files" # lang = "ger" out_dir = "/afs/inf.ed.ac.uk/group/msc-projects/s2096077/vm_ger_sphfiles" lang = "ger" # out_dir = "/afs/inf.ed.ac.uk/group/msc-projects/s209607...
[ "s2096077@ed.ac.uk" ]
s2096077@ed.ac.uk
5eca9b68e762d9bf2b6d4dca686d84d106b62e20
79364cf7572e9241ffb6603303ee74ec59e466b4
/Module01/practice/01_distance.py
410120942663e47b99126060de20c4b0a0d972b9
[ "MIT" ]
permissive
xm4dn355x/specialist_python3_2nd_lvl
e4ae312db7410ed21a20f122a1c2e7551bc54acf
4ea8c82eb0f32aa92c82914f6599c2c47a2f7032
refs/heads/main
2023-04-10T18:50:34.970865
2021-04-26T14:04:27
2021-04-26T14:04:27
355,071,612
0
0
null
null
null
null
UTF-8
Python
false
false
802
py
# Дано две точки на координатной плоскости from math import sqrt class Point: """Точка в двоичкойсистеме координат""" def __init__(self, x: int, y: int): self.x = x self.y = y def distance(p1: Point, p2: Point) -> float: """Расстояние между двумя точками""" return round(sqrt((p2.x ...
[ "xm4dn355x@gmail.com" ]
xm4dn355x@gmail.com
cc0132b3502bf611f39023c2f3d7b0880683d556
7206a49b1f2c46500a3748622562b572323ff902
/manage.py
a511db6bdba3fa78f25040a06a489432995c2ff8
[]
no_license
yoophi/flask-appointment
9df56bdb43f6b85ae15ab48d951d64939f91fea7
d7b29c2330f9a232c4162850b23b9bc6c26ec222
refs/heads/master
2021-06-21T03:07:05.211332
2021-01-26T12:31:32
2021-01-26T12:31:32
14,511,734
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
from flask_script import Manager from sched.app import app manager = Manager(app) app.config['DEBUG'] = True if __name__ == '__main__': manager.run()
[ "yoophi@gmail.com" ]
yoophi@gmail.com
f1effed5536973d0504d8b014216b22b4aee6430
8ce0fd5e5c5b858fa24e388f2114885160421c03
/grid/grid.py
fcf1c84c7bb83b7dab3bcf8d0d632a7189b6cdcd
[]
no_license
kong-ling/scripts
266e9975ae0156d6fdddf43b8f1d7ee20469b388
3c41c49646358d46871c8fd8ebe1ba52bdea046c
refs/heads/master
2021-01-10T08:29:34.772634
2020-01-03T09:04:57
2020-01-03T09:04:57
43,275,002
0
0
null
null
null
null
UTF-8
Python
false
false
516
py
from tkinter import * root = Tk() frm_l = Frame(root) frm_l.grid(row=0, column=1, sticky='w') frm_r = Frame(root) frm_r.grid(row=0, column=2, sticky='e') TOTAL = 40 lbls = [] for i in range(TOTAL): lbls.append(StringVar()) Label(frm_l, textvariable=lbls[i], font=('Consolas', 14), bg='green').grid(row = i//8,...
[ "kong.ling@outlook.com" ]
kong.ling@outlook.com
edd67230daca1746a32292862258a2a458d97338
d2189145e7be2c836017bea0d09a473bf1bc5a63
/RepoEderGLEZ/tel.py
be996b9cb34d7c219ea7db911e49658bed82469e
[]
no_license
emilianoNM/Tecnicas3
12d10ce8d78803c8d2cd6a721786a68f7ee2809d
6ad7f0427ab9e23643a28ac16889bca8791421d0
refs/heads/master
2020-03-25T18:06:34.126165
2018-11-24T04:42:14
2018-11-24T04:42:14
144,013,045
3
5
null
2018-09-14T10:47:26
2018-08-08T12:49:57
Python
UTF-8
Python
false
false
150
py
# coding: utf-8 # In[ ]: wahio=[i for i in input('Numero: ')] wahio.insert(0,'(') wahio.insert(3,')-') wahio.insert(5,'-') print(''.join(wahio))
[ "noreply@github.com" ]
emilianoNM.noreply@github.com
9e743a038a92a866cb4d4f8eabb55338911f8da1
f0d713996eb095bcdc701f3fab0a8110b8541cbb
/6brSyFwWnb9Msu7kX_22.py
eef047b9e87062bd1b7376c22db3fe6c59589c66
[]
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
822
py
""" Write a function that sorts the **positive numbers** in **ascending order** , and keeps the **negative numbers** untouched. ### Examples pos_neg_sort([6, 3, -2, 5, -8, 2, -2]) ➞ [2, 3, -2, 5, -8, 6, -2] pos_neg_sort([6, 5, 4, -1, 3, 2, -1, 1]) ➞ [1, 2, 3, -1, 4, 5, -1, 6] pos_neg_sort([-5...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
59b0dc3cc17d022db5d3b9acf9e8d8a7a09f954d
288a00d2ab34cba6c389b8c2444455aee55a8a95
/tests/examples-bad/doc2.py
67d0455c35e1724832394d17f144097f51e3b501
[ "BSD-2-Clause" ]
permissive
JohannesBuchner/pystrict3
ffd77b7bbc378bd4d8f21b5c6bd69a0d64a52ddb
18b0dd369082422f9bf0f89c72e7acb53a49849c
refs/heads/master
2023-08-14T06:37:37.954880
2023-07-13T11:16:38
2023-07-13T11:16:38
268,571,175
1
1
null
null
null
null
UTF-8
Python
false
false
2,307
py
def foo(var1, var2): """this is a function""" pass def foo(var1, var2, args, long_var_name='hi', *kwargs): r"""Summarize the function in one line. Several sentences providing an extended description. Refer to variables using back-ticks, e.g. `var`. Parameters ---------- var1 : array_like Array_like means a...
[ "johannes.buchner.acad@gmx.com" ]
johannes.buchner.acad@gmx.com
223628d96ac0fb83fe0bbf287fcfb22eb5d3a711
2291ef2d975944e3ed3d88e8c9fc6eeee4e280ac
/lvl/dynamic_models/hmm.py
cf0c10932a8bf9756a80007528edfebda0540fd0
[]
no_license
vishalbelsare/lvl
b9ff801029f62848de20d0d2e0bfe1abef644d44
1a390bd43d99571a43316c2cf9cfdee95271a89c
refs/heads/master
2021-06-23T12:28:27.019215
2020-06-20T01:08:28
2020-06-20T01:08:28
214,274,513
0
0
null
2021-04-04T15:30:37
2019-10-10T20:00:55
null
UTF-8
Python
false
false
3,449
py
import numpy as np import numba class HMM: def __init__(self, n_components, observations="gaussian"): self.n_components = n_components self.observations = observations def fit(self, data, taus=None, maxiter=100): """ Fits model parameters. Parameters --------...
[ "alex.h.willia@gmail.com" ]
alex.h.willia@gmail.com
fd13bdbbea0463ce945ea67c49454a428866285e
fdd928f27a9f5dbdb7db3e3819ab76e37835c0b5
/biostar/forum/management/commands/cleanup.py
7b08e2f2700b8e6da91c3d57ae2a3b93c2b77fc6
[ "MIT" ]
permissive
Beeuno-Inc/biostar-central
baa65e2ba6344a1832d644aeafad6b33858308d3
61b1174af82332089f52d9140783c29539069ee2
refs/heads/master
2023-02-26T10:21:56.231157
2021-02-02T22:25:46
2021-02-02T22:25:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,806
py
import logging from datetime import datetime, timedelta from django.db.models import Count from django.core.management.base import BaseCommand from biostar.accounts.models import Message, User from biostar.forum.util import now from biostar.forum.models import PostView, Post logger = logging.getLogger('engine') MAX...
[ "natay.aberra@gmail.com" ]
natay.aberra@gmail.com
4a43e97f3cc631536f9b57aa5aced605fd17afa9
edf95a11a24057f4457595d5f5d3a382faf92da8
/edc_export/signals.py
f86ca38a4b32e11262b9161a99fb0bfc9df47354
[]
no_license
clinicedc/edc-export
1e480540df6cff3269ca8fa83006963d81132c45
83763f4fe85b4d32fb96a531f6109c9ca669d777
refs/heads/master
2023-09-01T01:07:32.390783
2022-02-16T00:23:01
2022-02-16T00:23:01
121,603,664
0
2
null
2018-02-15T07:53:31
2018-02-15T07:53:31
null
UTF-8
Python
false
false
1,282
py
from django.db.models.signals import post_save, pre_delete from django.dispatch import receiver from .constants import DELETE, INSERT, UPDATE @receiver(post_save, weak=False, dispatch_uid="export_transaction_history_on_post_save") def export_transaction_history_on_post_save( sender, instance, raw, created, using...
[ "ew2789@gmail.com" ]
ew2789@gmail.com
648dedbf51b3b81677267475ad8bfff9b6ca7af1
1cf8f59b3f6df18f32fdd6c58405dd1ff7d800c9
/pedido/admin.py
ae9dd82e05a70d12195382089053300a711bde7b
[ "MIT" ]
permissive
darkdrei/expn
2bdfb42711140e48b6956332721d2a6e49e0117f
0c9717e178fa4d296d7252efb2853db44f25691b
refs/heads/master
2021-01-13T10:15:48.684063
2016-10-26T17:02:34
2016-10-26T17:02:34
69,590,234
0
1
null
null
null
null
UTF-8
Python
false
false
449
py
from django.contrib import admin import models # Register your models here. admin.site.register(models.Items) admin.site.register(models.Pedido) admin.site.register(models.ConfirmarPedido) admin.site.register(models.ConfirmarPedidoWs) admin.site.register(models.CancelarPedido) admin.site.register(models.CancelarPedido...
[ "darkdrei88@gmail.com" ]
darkdrei88@gmail.com
478cb909807706ae3602e40ac26a44cf59e7338f
f1a325e3a147b4907acf9e17d292375ddcdcf286
/ssseg/cfgs/pointrend/cfgs_cityscapes_resnet50os8.py
5850709cb1602ef2066ca6851afd565c6bdee350
[ "MIT" ]
permissive
mymuli/sssegmentation
56abff1a1dfb71b19c3876a1b209f8fec18c7ff0
08ffdc109e672f6bf4c8d4e220b0bdad16f0c40e
refs/heads/main
2023-08-14T22:18:23.369487
2021-09-12T05:09:16
2021-09-12T05:09:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,406
py
'''define the config file for cityscapes and resnet50os8''' from .base_cfg import * # modify dataset config DATASET_CFG = DATASET_CFG.copy() DATASET_CFG['train'].update( { 'type': 'cityscapes', 'rootdir': 'data/CityScapes', 'aug_opts': [('Resize', {'output_size': (2048, 1024), 'keep_ratio'...
[ "1159254961@qq.com" ]
1159254961@qq.com
1a370b592b2bd053e8b5a7a941275a6ea4d1ac72
52c6c6034bc326d9830fdbb73de2642b6f665cd4
/app/posts/models.py
eb3174592cc79e45e24a48a5d0b57259dd4d19c3
[]
no_license
mongkyo/prac-instagram1
e232e5ef9008a9efdbc859fc7b7a69d12900c3d7
970a3eceae723487750117af017ac38a2d4d1b60
refs/heads/master
2022-12-23T23:38:14.736507
2018-11-04T12:10:52
2018-11-04T12:10:52
155,551,410
0
0
null
2022-12-08T01:16:24
2018-10-31T12:09:13
JavaScript
UTF-8
Python
false
false
1,481
py
from django.conf import settings from django.contrib.auth import get_user_model from django.db import models from django.utils import timezone User = get_user_model() class Post(models.Model): author = models.ForeignKey( settings.AUTH_USER_MODEL, on_delete=models.CASCADE, verbose_name='작성...
[ "dreamong91@gmail.com" ]
dreamong91@gmail.com
ba41f7aca35320909a7846e3139489fc1e9ac1b7
ee89c84c5b2f48d447b7005299b409d61cc4d807
/venv/Scripts/rst2html4.py
a90785f6c2c5f909156a9bcba7dc943040f32622
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
songweiwei/rasa_run
342075cc645725a042acf273ab6508c5da55cbee
0cfc0a280b9efea344bacf5f2df5800c32d0b3a8
refs/heads/master
2023-05-31T03:23:26.490925
2020-04-22T07:56:07
2020-04-22T07:56:07
257,218,895
2
2
null
2023-05-22T23:23:45
2020-04-20T08:31:42
Python
UTF-8
Python
false
false
761
py
#!c:\users\sonny\pycharmprojects\rasa_run\venv\scripts\python.exe # $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing (X)HTML. The output conforms...
[ "1194488130@qq.com" ]
1194488130@qq.com
02349752264a7167144b3e70bd9f1cf2a97ed91d
db053c220094368ecb784fbe62375378c97457c2
/547.friend-circles.py
75cbc2b9e15ee76862ccbb04bd3dc611daab7943
[]
no_license
thegamingcoder/leetcode
8c16e7ac9bda3e34ba15955671a91ad072e87d94
131facec0a0c70d319982e78e772ed1cb94bc461
refs/heads/master
2020-03-22T14:51:45.246495
2018-07-09T00:00:06
2018-07-09T00:00:06
140,211,147
0
0
null
null
null
null
UTF-8
Python
false
false
1,646
py
# # [547] Friend Circles # # https://leetcode.com/problems/friend-circles/description/ # # algorithms # Medium (49.45%) # Total Accepted: 41.5K # Total Submissions: 84K # Testcase Example: '[[1,1,0],[1,1,0],[0,0,1]]' # # # There are N students in a class. Some of them are friends, while some are # not. Their frien...
[ "sharanbale@yahoo-inc.com" ]
sharanbale@yahoo-inc.com
76c853c6c7db384366f4f2fdb6299f32f6b32b01
d04313c8dc0a1bfda20ac79966a9c0309f52129b
/neural_nets/models/cross_entropy/cross_net2.py
3fe961b339d3298735609b522ebe9663aef65af3
[]
no_license
VCharatsidis/Predict
a476a2cb1ee3d2e398227b2373cc03870ba94c23
9e3b99d5148699c07f14549fc6c4d71c172f0b45
refs/heads/master
2020-05-05T07:21:49.335535
2019-11-17T01:12:55
2019-11-17T01:12:55
179,822,354
0
0
null
null
null
null
UTF-8
Python
false
false
2,560
py
""" This module implements a multi-layer perceptron (MLP) in PyTorch. You should fill in code into indicated sections. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.nn as nn class CrossNet2(nn.Module): """ This class implements a ...
[ "charatsidisvasileios@gmail.com" ]
charatsidisvasileios@gmail.com
05703f5e549e2b5de73a40c0bd4c05655f0e8398
1b630ddb41eba0b892cea3ce52ea461590b1a0b6
/fault/functional_tester.py
a3d7a1eb953a1068e5b29c187baf6ac29110fbd3
[ "BSD-3-Clause" ]
permissive
leonardt/fault
d2f8d5b03083ef23895ab3c1a7c3c9c91f3c6ef5
841d423ecfb07ee4d46587d854b60da4d47f9a98
refs/heads/master
2023-08-31T11:27:40.921811
2023-08-22T21:06:10
2023-08-22T21:06:10
129,309,504
40
12
BSD-3-Clause
2023-09-13T22:24:43
2018-04-12T20:47:59
Python
UTF-8
Python
false
false
1,905
py
import fault from fault.common import get_renamed_port from fault import AnyValue class FunctionalTester(fault.Tester): """ This Tester provides a convenience mechanism for verifying a DUT against a functional model. The basic pattern is that every time `eval` is invoked on the Tester, a check is don...
[ "lenny@stanford.edu" ]
lenny@stanford.edu
c4873c6e51f92653d88022cda580b02e153ca533
ab6cfc2aedad3de7a04efae4a6105dc893958b9e
/hivwholeseq/sequencing/load_seqrun.py
e33ea05a86fca78f04146ed4fb27e0de4a97f12b
[ "MIT" ]
permissive
neherlab/hivwholeseq
158c0ce590bc67d1d36042c71b8b0afa3e8d8abf
978ce4060362e4973f92b122ed5340a5314d7844
refs/heads/master
2021-01-15T16:48:15.769316
2015-09-04T08:33:52
2015-09-04T08:33:52
49,801,765
4
3
null
2016-01-17T03:43:46
2016-01-17T03:43:44
null
UTF-8
Python
false
false
600
py
# vim: fdm=marker ''' author: Fabio Zanini date: 26/03/14 content: Load sequencing run data for manual inspection. ''' # Modules import argparse from hivwholeseq.sequencing.samples import load_sequencing_run # Script if __name__ == '__main__': # Parse input args parser = argparse.ArgumentParser...
[ "fabio.zanini@tuebingen.mpg.de" ]
fabio.zanini@tuebingen.mpg.de
bfd83c71ae195a052005ea446f3308254dd0c666
720bb516089a6fe7c6713242242376c66eb6344b
/first_project/pizza_store/views.py
84a0beea94e9ee250bdaacc43c847b961364ddd3
[ "Apache-2.0" ]
permissive
itamaro/django-zero-to-cloud
4c790edc95d10fdad7905ad818d26167d402f576
0b0a4f75bf6a27855b00a88aebf93471a38e0c3c
refs/heads/master
2021-08-11T10:33:00.527278
2017-11-13T15:23:47
2017-11-13T15:23:47
110,564,680
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
from django.shortcuts import render from django.http import HttpResponse from .models import Pizza def index(request): messages = ['Welcome Pizza Lovers', 'Our currently available Pizzas are:'] for pizza in Pizza.objects.all(): messages.append(str(pizza)) for topping in pizza.topping_set.all...
[ "itamarost@gmail.com" ]
itamarost@gmail.com
3ac5f2f036d25efb1e0258b829793fa66852dd9e
1b83e95009f7e883c9da4ec50aa19f9902ccc9ab
/python/tests/tutorials/calculator/src/python/calculator.py
a97199927301365b014fc81737831b0a8c7f02f9
[ "Apache-2.0" ]
permissive
ballon3/dazl-client
327ec6d2a3acbd3748fd03766d93acb2699a7805
baa9eb975cac26a000fed076f3d1c23569068f5b
refs/heads/master
2021-02-27T06:29:45.046458
2020-02-11T22:03:17
2020-02-11T22:03:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,733
py
# Copyright (c) 2019 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 import logging from csv import DictReader from pathlib import Path from typing import List from dazl import sandbox, create_client, create, exercise, setup_default_logger from dazl.cl...
[ "davin.tanabe@digitalasset.com" ]
davin.tanabe@digitalasset.com
ab21362b4377ae4be8da88d8fa092fb1a499731f
0ba1743e9f865a023f72a14d3a5c16b99ee7f138
/problems/test_1074.py
5d45109a3b44ac159b286db8bbd6a344a9458de0
[ "Unlicense" ]
permissive
chrisxue815/leetcode_python
d0a38a4168243b0628256825581a6df1b673855c
a33eb7b833f6998972e5340d383443f3a2ee64e3
refs/heads/main
2022-06-20T15:09:27.221807
2022-06-02T21:55:35
2022-06-02T21:55:35
94,590,264
1
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
import unittest from typing import List import utils # O(mn^2) time. O(mn) space. Prefix sum. class Solution: def numSubmatrixSumTarget(self, matrix: List[List[int]], target: int) -> int: result = 0 m = len(matrix) n = len(matrix[0]) sums = [[0] * m for _ in range(n + 1)] ...
[ "chrisxue815@gmail.com" ]
chrisxue815@gmail.com
d40a21c381413891be33bbf13bb6f51d5bf97741
b7255be7fc09f7fd8178b820c6ff3c69d7e4d750
/flask-api/python_go/regtests/list/pop.py
c9e15584ce24917c6065524b1a8c56c6a59f10b1
[]
no_license
divyajyotiuk/go-asn-playground
e65bcd5474674005fb64567ec205b3b5f757e438
ee7fd0c57e86f84e045bbc888fb3c4f265bdb969
refs/heads/master
2021-02-05T02:09:02.338834
2020-04-13T10:40:31
2020-04-13T10:40:31
243,732,017
0
3
null
null
null
null
UTF-8
Python
false
false
186
py
"""list.pop(n)""" def main(): a = list(range(10)) b = a.pop() TestError( b==9 ) c = a.pop(0) TestError( c==0 ) d = ['A', 'B'] TestError( d.pop(1)=='B' ) TestError( len(d)==1 )
[ "you@example.com" ]
you@example.com
fad6cd6b6d53f06f404989218297affd1bddc771
de64b143a346585f51590bd674e8d13bbc672386
/algorithm/2022/0705_213_House_Robber_II/Eomjungmin.py
ec949102146df58b3b565286f8fbdf1f19991e96
[]
no_license
ai-kmu/etc
304ec20f59e4026025abdcbcae21863c80630dcb
9c29941e19b7dd2a2037b110dd6e16690e9a0cc2
refs/heads/master
2023-08-21T16:30:31.149956
2023-08-21T16:26:19
2023-08-21T16:26:19
199,843,899
3
24
null
2023-05-31T09:56:59
2019-07-31T11:36:16
Jupyter Notebook
UTF-8
Python
false
false
1,307
py
class Solution: def rob(self, nums: List[int]) -> int: # nums 길이가 1에서 3까지는 nums에서 최대값과 같음 if len(nums) >= 1 and len(nums) <= 3: return max(nums) else: # 각 두 dp별 초기 인덱스 0과 1에서의 값 선언 dp_even = [0 for _ in range(len(nums))] # index 0부터 들르는 경우 dp_...
[ "noreply@github.com" ]
ai-kmu.noreply@github.com
979c262f555a8073263d327a1d39ea8150962ea0
a967a3605dbba3c30465b53d37586644b5160918
/Q1c-PythonImplementation/Hippo.py
a698a7cd7a6bef6e1293730df6fd04ab931a7afe
[]
no_license
AbhiniveshP/OOAD-Project-2
1009fdf37df18434c8ea086895643ed66097d890
cb3c95b8edadc219d1b4137c19f87107ce60e519
refs/heads/master
2020-08-02T12:45:03.301537
2019-10-04T22:57:32
2019-10-04T22:57:32
211,357,239
0
0
null
null
null
null
UTF-8
Python
false
false
346
py
from Pachyderm import * class Hippo(Pachyderm): def __init__(self, name): super().__init__(name) def eat(self): print("{} the {} eats reeds".format(self._name, self.__class__.__name__)) return def makeNoise(self): print("{} the {} grunts".format(self._name, self.__class__...
[ "pabhinivesh@gmail.com" ]
pabhinivesh@gmail.com
38ee5e6436501aaab80b510c93ba64824930f49f
440c82af1117d0b65303f3a1b5bcfe906758f0ec
/dfp/get_orders.py
5ccaa86205deff07ab9234ec34b092d09a6b8e46
[ "MIT" ]
permissive
propertypal/dfp-prebid-setup
b4e1f4e138212cf5457d22b8eb9e6f55f13d037c
03d5d0cdc37b60031fc5e2962fb89fd7c7945d9e
refs/heads/master
2022-12-18T05:44:43.511957
2020-09-17T16:54:20
2020-09-17T16:54:20
296,387,423
1
0
MIT
2020-09-17T16:54:23
2020-09-17T16:49:02
null
UTF-8
Python
false
false
2,087
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from googleads import ad_manager from dfp.client import get_client logger = logging.getLogger(__name__) def get_order_by_name(order_name): """ Gets an order by name from DFP. Args: order_name (str): the name of the DFP order Returns: a...
[ "kevin.jennison1@gmail.com" ]
kevin.jennison1@gmail.com
21d78b67aaf33009278076d1733a95af4ad1dd93
72e246411c49d34999956682bca0d3925847e56c
/tests/test_point_mutations.py
57d6d893b00a69c0e6a7f603cde2532c3cdb7ac9
[ "MIT" ]
permissive
clair3st/Rosalind-katas
7cc5b7a625330ed0f8f754226040e4cedaf0598b
a2c8bcd9feb3639767d3eb96c68c810fe84f4fb4
refs/heads/master
2020-05-26T17:13:08.873753
2017-02-28T01:21:19
2017-02-28T01:21:19
82,483,692
3
0
null
2017-02-28T01:21:20
2017-02-19T19:27:05
Python
UTF-8
Python
false
false
239
py
"""Test point mutations.""" DATA = ['GAGCCTACTAACGGGAT', 'CATCGTAATGACGGCCT'] def test_hamming_distance(): """Test hamming distance.""" from src.point_mutations import hamming_dist assert hamming_dist(DATA[0], DATA[1]) == 7
[ "clairejgatenby@gmail.com" ]
clairejgatenby@gmail.com
a17db1c38984cd2700d44b5ba5dc1d936f3d9315
49cb74338813557baa91973087c3dfb8e74936c6
/sovrin/test/anon_creds/test_public_repo.py
bf805130491f873b12236429ecee269ccbb9050f
[ "Apache-2.0" ]
permissive
pombredanne/old-sovrin
a0e1b607880888f9f0e8379cdd00f9726b051121
d4e705054b7252c62fea00114060035c6eb314a4
refs/heads/master
2021-03-16T08:59:57.817420
2017-07-13T21:33:09
2017-07-13T21:33:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,498
py
import pytest from anoncreds.protocol.issuer import Issuer from anoncreds.protocol.repo.attributes_repo import AttributeRepoInMemory from anoncreds.protocol.types import ClaimDefinition, ID from anoncreds.protocol.wallet.issuer_wallet import IssuerWalletInMemory from sovrin.anon_creds.sovrin_public_repo import SovrinP...
[ "alexander.sherbakov@dsr-company.com" ]
alexander.sherbakov@dsr-company.com
a71a7449cb6147998c735d6a532454539e393f02
14d027177764f4d9d0a1e33fbbe01bc23ab965d6
/tests/unit/test_models/test_job.py
670c710000e73e96f4fe3a1d94cfafeb1f3b6718
[]
no_license
TopChef/TopChef
d349797be1dd2719bb9ece4d1bc350c168002ade
a79311eb751b9e9f368a06bd508aa139953f2026
refs/heads/master
2022-12-15T02:47:38.417815
2021-07-20T15:11:44
2021-07-20T15:11:44
57,226,569
4
1
null
2022-12-08T00:41:13
2016-04-27T15:57:41
Python
UTF-8
Python
false
false
2,935
py
import unittest import unittest.mock as mock from hypothesis import given from hypothesis.strategies import dictionaries, text, integers, \ sampled_from, composite from topchef.database.models import Job as DatabaseJob from topchef.database.models import JobStatus as DatabaseJobStatus from topchef.models.job import...
[ "michalkononenko@gmail.com" ]
michalkononenko@gmail.com
f1ce2afe346ef879c665b323ca0c81eff33496b5
e92ccd2db621d70c75eb412e49789494a2620967
/algo/상원생일파티.py
f5443baede78ef1887bc3f8fe0e1da5f8b624206
[]
no_license
hgkang9/TIL
fb25e610c8d869014f21c370f2fc1089a9d157da
72476b974ab3283d19eec8359cb2efdf8bfd4d59
refs/heads/master
2020-04-14T10:17:25.116015
2019-05-10T08:40:37
2019-05-10T08:40:37
163,782,787
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
import sys sys.stdin=open('상원생일파티.txt','r') T=int(input()) for tc in range(1,T+1): N,M=map(int,input().split()) data=[0]*M friend=[0]*(N+1) s=[0]*(N+1) cnt=0 for i in range(M): data[i] = tuple(map(int, input().split())) data.sort() a=[] for i in range(M): if data[i][...
[ "hgkang822@gmail.com" ]
hgkang822@gmail.com
b74e59c2ef70ed09fbbde4fd230c5b321abb4739
62154efb438d7d799cc98eba1f150679bf79f7b9
/mbm/app.py
680d673616bbc4437fd6323640a5156b686ad6be
[]
no_license
asmark/mafia-by-mail
5e4b30572741a8bae49d99bd5f1cd88c413969bb
2beff28a402336723e44a7ca8f31e6711747350b
refs/heads/master
2020-12-25T11:21:49.665920
2016-02-03T21:28:46
2016-02-03T21:28:46
51,032,830
0
0
null
2016-02-03T21:44:48
2016-02-03T21:44:48
null
UTF-8
Python
false
false
1,210
py
import asyncio from aiohttp import web import functools import mako.lookup import os import toml from . import game_holder from . import mail def read_config(): with open('config.toml', 'r') as f: return toml.load(f) def make_services(config): return { 'store': game_holder.Store(config['sto...
[ "tony@rfw.name" ]
tony@rfw.name
745fac34342fd867ebad2d9271354d0c34c0915c
a3855396e382ec8e5be2bd54d9864feda584546b
/WEATHER API/app.py
57ab9a728fbc4ce51d542c4037689a688ec87c19
[]
no_license
raj713335/REST_API_VIA_FLASK
6930862c7c993222f876de475f08257acb2dbfec
0b6fca7bbfbb7571e468a3b292d9bbe0d79cc6fa
refs/heads/master
2022-12-31T08:15:58.769835
2020-10-26T00:05:10
2020-10-26T00:05:10
306,668,254
0
0
null
null
null
null
UTF-8
Python
false
false
824
py
from flask import render_template, url_for, request from wtforms import StringField, SubmitField from flask import Flask from flask_wtf import FlaskForm from weatherdata import * app = Flask(__name__) app.config['SECRET_KEY'] = "secret" @app.route('/', methods=["POST", "GET"]) def index(): w = Weather() form...
[ "raj713335@gmail.com" ]
raj713335@gmail.com
9b8a2873dbff8250a182b62532e6bdc4d19b0b39
f91e5d936e3471b78d06b5392195a7d030dd68e6
/setup.py
066d5aa56c4d89964045d7dfc6346f41d3cac703
[ "Apache-2.0" ]
permissive
apmoore1/tdsa_augmentation
0e27775824731720d50319dcec005984226d2cad
71c9ffa79ea48e817408d0dc496cc146ce75a942
refs/heads/master
2020-07-11T20:55:00.065199
2019-11-15T08:44:41
2019-11-15T08:44:41
204,642,625
0
0
null
null
null
null
UTF-8
Python
false
false
822
py
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() setup(name='tdsa_augmentation', version='0.0.1', description='TDSA Augmentation', long_description=long_description, long_description_content_type="text/markdown", url='https...
[ "andrew.p.moore94@gmail.com" ]
andrew.p.moore94@gmail.com
44a908e41fd747ed0600b2402004f4c7dd95f26b
fe3265b72e691c6df8ecd936c25b6d48ac33b59a
/homeassistant/components/media_player/device_trigger.py
9b61c89dafb0bcd06e95ace628c7f05919019aca
[ "Apache-2.0" ]
permissive
bdraco/home-assistant
dcaf76c0967783a08eec30ce704e5e9603a2f0ca
bfa315be51371a1b63e04342a0b275a57ae148bd
refs/heads/dev
2023-08-16T10:39:15.479821
2023-02-21T22:38:50
2023-02-21T22:38:50
218,684,806
13
7
Apache-2.0
2023-02-21T23:40:57
2019-10-31T04:33:09
Python
UTF-8
Python
false
false
3,823
py
"""Provides device automations for Media player.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import ( DEVICE_TRIGGER_BASE_SCHEMA, entity, ) from homeassistant.components.homeassistant.triggers import state as state_trigger from homeassistant.c...
[ "noreply@github.com" ]
bdraco.noreply@github.com
e2965ca2d19805ea46c89fb20c7b9a0e52f07936
3f1e8fddfc0164b6edf99e5b829295111e89b211
/tests/integration/helper.py
f821247d63d97a93be13ec0e084ee1a0864612a8
[ "BSD-3-Clause" ]
permissive
vasudevram/github3.py
ac4519c3e566e219eaba0ff0a7c2ca97ad7625cc
ebdcbbf2d92ca8bb2affb1db4738ed225f8af6c0
refs/heads/master
2021-01-15T08:26:20.114313
2014-08-11T02:21:23
2014-08-11T02:21:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,569
py
import copy import betamax import github3 import os import unittest class IntegrationHelper(unittest.TestCase): def setUp(self): self.user = os.environ.get('GH_USER', 'foo') self.password = os.environ.get('GH_PASSWORD', 'bar') self.token = os.environ.get('GH_AUTH', 'x' * 20) self.g...
[ "graffatcolmingov@gmail.com" ]
graffatcolmingov@gmail.com
d70363c13ebcea2220691fdb5ee9d8970a44ad9e
39fbc06d7885db7952bc6f3ab5e452541913494c
/reset_database.py
519e497c709ba6da52763c4af149befbb7fa8e6f
[ "MIT" ]
permissive
uk-gov-mirror/ONSdigital.rasrm-acceptance-tests
24d44c5e0c28b63765fc697a0b9631a1869aa78f
ac31b8c2e79fec70e1475731edabc5acd54e8874
refs/heads/master
2023-02-26T00:21:18.742032
2021-01-18T14:42:52
2021-01-18T14:42:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,637
py
from requests.exceptions import HTTPError from config import Config from controllers import database_controller from controllers import survey_controller def reset_database(): print('Resetting databases') print('Resetting various rm services') database_controller.execute_sql('resources/database/database_r...
[ "noreply@github.com" ]
uk-gov-mirror.noreply@github.com
b5d7c1336eff6f94c24e982c5f9a22fc946bd392
dbb7d30603c95908989cae50d21db1c1ac6a001b
/kamal/layer_wise_ka/modules.py
ceb924e8f1c7d6b4a94cec9516dae3e22b0f3ac2
[]
no_license
choppaluv/KamalEngine
19bca2fd2d74bdf5d2fb083faecc7852e9e2b2cc
afd055779c489af38176d16a94a775564d2e6169
refs/heads/master
2020-12-03T13:52:36.334407
2019-10-24T13:41:47
2019-10-24T13:41:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,022
py
# coding:utf-8 import os import torch import math import pdb from torch import nn from torch.autograd import Variable from torch import optim from torch.optim import lr_scheduler from torch.autograd import Variable from .alexnet import alexnet use_cuda = True outputs = [] def obtain_features(module, input, output)...
[ "2218880241@qq.com" ]
2218880241@qq.com
faceb7176f21e83ac24df5c6da2ed68e7b24d30e
f98a4f95064fc448d5f267c2a6239d1706b247e4
/view_table/admin.py
5b44d8bfabfe968a77da54d4240b66b6ca2053c9
[]
no_license
shinhaeran/inteligent
51d50f949e0865ddd68417ce8d980e4a98fbbe16
c23026cde8d2993ae21859a80c06fc6651291b6f
refs/heads/master
2020-06-22T20:17:29.261973
2019-11-13T16:42:53
2019-11-13T16:42:53
198,388,855
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
from django.contrib import admin from .models import Customuser # Register your models here. @admin.register(Customuser) class CustomuserAdmin(admin.ModelAdmin): pass
[ "haeran97@naver.com" ]
haeran97@naver.com
fffcb5aaa1a1a24e94ffb3d4ac697858528541ef
efe329252385fc21d27ec57f1a2e56b190c6f564
/Day_58/today_details.py
e0067d577e167bdc767cb14638678e2fbea2471d
[ "MIT" ]
permissive
kiranrraj/100Days_Of_Coding
79d2af441cd8fdde6aa019b355f0049c528d3feb
ab75d83be9be87fb7bc83a3f3b72a4638dab22a1
refs/heads/main
2023-02-16T11:37:52.707528
2021-01-12T17:58:43
2021-01-12T17:58:43
304,276,316
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
# Title : Print details about today # Author : Kiran raj R. # Date : 29:10:2020 import datetime import time print(f"Today is : { datetime.datetime.now().strftime('%y/%m/%d')}") print(f"Day : {datetime.date.today().strftime('%A')}") print(f"Name of month : {datetime.date.today().strftime('%B')}") print(f"Day of the...
[ "kiranrajvjd@gmail.com" ]
kiranrajvjd@gmail.com
a6fd6c442f70471d525067ea98a7214613b88fff
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/1510028/snippet.py
a9450cf4ab1cecec4479c2b1336469bd427e7a4d
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
2,618
py
#!/usr/bin/env python import Queue import multiprocessing import urllib2 import feedparser import socket feeds = ['http://today.reuters.com/rss/topNews', 'http://today.reuters.com/rss/domesticNews', 'http://today.reuters.com/rss/worldNews', 'http://hosted.ap.org/lineups/TOPHEADS-rss_2.0....
[ "gistshub@gmail.com" ]
gistshub@gmail.com
1471c0898b5b744f75c95afc859b885248d0998f
d4edf6e954fc54ec81ee4dccf25aaff7608be1c3
/cs_data_structure_and_algorithms/linkedlist/linkedlist_algorithms/find_reciprocal_node_linkedlist.py
f64f3b8fc1834cff5b9fddcfe83ce6f9d894e9c8
[]
no_license
chenshuo666/cs_data_structure_algorithms
a9d74ac65975b576bcf4257707f012c2fd4a4a7f
f75c94bf74ccdd90c953334f7d10500623aac056
refs/heads/master
2020-03-28T10:26:19.985365
2019-03-17T13:13:38
2019-03-17T13:13:38
148,108,893
4
0
null
null
null
null
UTF-8
Python
false
false
737
py
#!/usr/bin/python #-*- coding:utf-8 -*- # Author:Sebastian Williams import os import sys sys.path.append(os.path.abspath(os.path.dirname(__file__)+'/'+'..')) from likedlist_category.singly_linkedlist import SinglyLinkedList class FindReciprocalNode(): def __init__(self,linkedlist,length,n): self.n = n ...
[ "929387146@qq.com" ]
929387146@qq.com
46c192f7cd95702fe5d875b435cc14c58ad3771c
aadf59f4d204ea68b795c803d4a473c8d6fa5e3d
/loc_search/tags/api/v1/serializers.py
d169bfd760760887e1261807b4c74482b257fe58
[]
no_license
udit-001/django-elastic-demo
7240a6eedd3e8b167f3002f3bbde7ba286478f5f
8d55aebe80bdabaf58f22051cd6bbf6df2c1beab
refs/heads/master
2020-12-28T05:43:33.613132
2020-02-19T06:28:45
2020-02-19T06:28:45
238,200,709
1
0
null
2020-11-18T22:34:38
2020-02-04T12:28:37
Python
UTF-8
Python
false
false
4,098
py
import json import six from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from tags.models import CustomTag class TagList(list): def __init__(self, *args, **kwargs): pretty_print = kwargs.pop("pretty_print", True) list.__init__(self, *args, **kwargs) ...
[ "shekharnunia@gmail.com" ]
shekharnunia@gmail.com
4fdde62fe3978ea8a7144f4b1f6516a08d4a8bbb
b4537dfc431cba7ff40e0692ab6c223394ae4d69
/033-TODO-running-mediam.py
ee25e59d3856b54273aa749b576a600050badef3
[]
no_license
ericgarig/daily-coding-problem
fdc04f5bf823933100686c4129575f5ef3746676
d3e1a6ab102c7af1eea4ab6b1282e4d44e5b80ba
refs/heads/master
2020-03-31T09:59:11.767162
2019-12-20T21:44:43
2019-12-20T21:44:43
152,117,524
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
""" Daily Coding Problem - 2018-11-09. Compute the running median of a sequence of numbers. That is, given a stream of numbers, print out the median of the list so far on each new element. Recall that the median of an even-numbered list is the average of the two middle numbers. For example, given the sequence [2, 1,...
[ "erik.shagdar@gmail.com" ]
erik.shagdar@gmail.com
0f1c0aee0f5e9230cd4141fa06d0c7aaa638d5c3
541ce95e4783bbf78b0d45c109989b96f3139e50
/oss-2/bin/tqdm
7de1fc02c79d16f6770cb7bd7d53358f4a5002e0
[ "MIT" ]
permissive
Jasonmes/up-to-oss
72a5eca20884247b537fa41d416a0a39184a1a15
cfed1ade01a94c78776aa62ab7cca616ac86cdd5
refs/heads/master
2021-03-02T07:15:34.508121
2020-03-08T15:56:51
2020-03-08T16:25:45
245,846,439
0
1
null
null
null
null
UTF-8
Python
false
false
241
#!/Users/jasonmes/Code/up-load-oss/oss-2/bin/python3 # -*- coding: utf-8 -*- import re import sys from tqdm.cli import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "wow336@163.com" ]
wow336@163.com
0fef086171d62b3635cbd3a626ae9f27a278fc4e
3b6b8223598de9ec75d827945a613f75c3c6f132
/03-Spider/5_aiohttp_ex/use_mongo.py
5458fa62d6a7e61c9e059b5ded359324be346799
[]
no_license
Flavio58it/grocery
32380a145d59fb5604c44cd1d7cfe50fedb1e0dd
23e35d4b67208542344985b5e4865b7d5d314be4
refs/heads/master
2022-10-01T17:26:26.409840
2018-11-20T11:05:31
2018-11-20T11:05:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
351
py
from pymongo import MongoClient def main(): mongo = MongoClient('mongodb://127.0.0.1:27017') db = mongo.spider name_list = ['华佗', '曹植', '典韦'] for name in name_list: db.test.insert({'name':name,'age':'20'}) for s in db.test.find(): print(s) if __name__ == '__main__'...
[ "1367000465@qq.com" ]
1367000465@qq.com
540f024b45e19ae67cd41985387a9f014b331d3f
67bb839abfec6602e77bfbe464dc58f4b1c1d3de
/contentful/__init__.py
1f42b12b208d333706ae3d1a6a189acbf6aab8a6
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
thrawny/contentful.py
d03d31cc5052d8c1a1e8d02bc07a1cd6e4de20d7
de7d288236a87cc1c4ffcc87c6b794b32bb8f094
refs/heads/master
2021-01-19T09:13:31.476411
2017-02-14T14:13:25
2017-02-14T14:13:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
from .client import Client # noqa: F401 from .entry import Entry # noqa: F401 from .asset import Asset # noqa: F401 from .space import Space # noqa: F401 from .locale import Locale # noqa: F401 from .resource import Link # noqa: F401 from .content_type import ContentType # noqa: F401 from .deleted_asset import D...
[ "david.litvakb@gmail.com" ]
david.litvakb@gmail.com
71fbe11dce1a9613d3983ed8b5a9a62cf4e98acb
4142b8c513d87361da196631f7edd82f11465abb
/python/1260B.py
c17d007aca1bd1cff17bcfb60ee2c71d0e43962b
[]
no_license
npkhanhh/codeforces
b52b66780426682ea1a3d72c66aedbe6dc71d7fe
107acd623b0e99ef0a635dfce3e87041347e36df
refs/heads/master
2022-02-08T17:01:01.731524
2022-02-07T10:29:52
2022-02-07T10:29:52
228,027,631
0
0
null
null
null
null
UTF-8
Python
false
false
177
py
for _ in range(int(input())): a, b = sorted(list(map(int, input().split()))) if b > 2*a: print('NO') else: print('YES' if (a + b) % 3 == 0 else 'NO')
[ "npkhanh93@gmail.com" ]
npkhanh93@gmail.com
ce0c3fbb45d2c2ac62a447b7deaeeffbd381b508
e6132244015942c5ec75c8eff4f90cd0e9302470
/src/wshop/apps/dashboard/shipping/app.py
12e325be04e510bc70536eeeceadda59757d43b1
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
vituocgia/wshop-core
d3173f603861685b523f6b66af502b9e94b7b0c2
5f6d1ec9e9158f13aab136c5bd901c41e69a1dba
refs/heads/master
2020-03-18T08:25:14.669538
2018-05-23T05:55:56
2018-05-23T05:55:56
134,508,443
0
0
null
null
null
null
UTF-8
Python
false
false
2,276
py
from django.conf.urls import url from wshop.core.application import DashboardApplication from wshop.core.loading import get_class class ShippingDashboardApplication(DashboardApplication): name = None default_permissions = ['is_staff'] weight_method_list_view = get_class( 'dashboard.shipping.view...
[ "dotiendiep@gmail.com" ]
dotiendiep@gmail.com
df7b698ed14b6870db6d84c79ab5e87e07aed46c
2990b0841b63f300a722107933c01c7237a7976b
/all_xuef/程序员练级+Never/想研究的/CPython-internal/0.code object.py
3fb42a746ef7e13d0079d34eb761fe8c02b424e2
[]
no_license
xuefengCrown/Files_01_xuef
8ede04751689e0495e3691fc5d8682da4d382b4d
677329b0189149cb07e7ba934612ad2b3e38ae35
refs/heads/master
2021-05-15T04:34:49.936001
2019-01-23T11:50:54
2019-01-23T11:50:54
118,802,861
1
1
null
null
null
null
UTF-8
Python
false
false
447
py
#探索字节码的工具 """ import dis byteplay """ #source code-->code object #然后送给解释器执行 #我们可以手动编译代码,使用 compile print(help(compile)) """ compile(open("test.py").read(),"test.py", "exec") The mode must be 'exec' to compile a module """ #.py文件就是一个 module #关于 Frames, function calls, and scope """ Include/code.h Include/frame...
[ "643472092@qq.com" ]
643472092@qq.com
eb186723cf7dba87f4cb355ccac0ed9b615e77ea
4577d8169613b1620d70e3c2f50b6f36e6c46993
/students/1815182/homework01/program03.py
890df70e661570ec87ed74dc63ee24b1b3714310
[]
no_license
Fondamenti18/fondamenti-di-programmazione
cbaf31810a17b5bd2afaa430c4bf85d05b597bf0
031ec9761acb1a425fcc4a18b07884b45154516b
refs/heads/master
2020-03-24T03:25:58.222060
2018-08-01T17:52:06
2018-08-01T17:52:06
142,419,241
0
0
null
null
null
null
UTF-8
Python
false
false
3,169
py
'''Dato un testo da codificare ed una chiave si propone il seguente schema crittografico: - dalla chiave vengono eliminati tutti i caratteri C per cui C<'a' o C>'z'. - di ciascuno dei caratteri restanti vengono cancellate dalla chiave tutte le occorrenze tranne l'ultima, ottenendo una sequenza DISORDINATA. - i c...
[ "a.sterbini@gmail.com" ]
a.sterbini@gmail.com
acb7bdfe1fe29d7e2fd59d6dc32fee225f539a32
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/ocr-numbers/0e04c0f528dc497d91c711608053fcad.py
17916124973aafec096e9a1c4a30c42923560041
[]
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
971
py
NUMBERS = ([' _ ', '| |', '|_|', ' '], [' ', ' |', ' |', ' '], [' _ ', ' _|', '|_ ', ' '], [' _ ', ' _|', ' _|', ' '], [' ', '|_|', ' |', ' '], [' _ ', '|_ ', ' _|', ' '], [' _ ', '|_ ', '|_|', ' '], [' _ ', ' |', ' |', ...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
6d0cd7848782890f713d8860ccf6071494a5939b
a753bf28c3b48c943285bab21a1aa1046f4c1f77
/Math/ProbStatsPy-UCSD/src/Topic08_Lecture.py
64f828b247ec733227ab459f0249e119849f02a3
[]
no_license
hmchen47/DataScience
f9f576f4b95d37af0706b4c3da613b260a5481e2
d36cd87b34f4f65579e541be429a96394be18351
refs/heads/master
2021-06-12T11:49:09.619238
2021-05-15T04:17:43
2021-05-15T04:17:43
128,600,594
4
1
null
null
null
null
UTF-8
Python
false
false
5,845
py
#!/usr/bin/env python3 # -*- coding: utf-8 -8- from scipy.stats import bernoulli, binom, poisson import matplotlib.pyplot as plt import numpy as np def gen_plot_bernoulli(): # generate bernoulli print("\nBernoulli pmf w/ scipy.stats.bernoulli.pmf(0, p=0.3): {:.3f}".format(bernoulli.pmf(0, p=0.3))) prin...
[ "h.m.chen@ieee.org" ]
h.m.chen@ieee.org
fde3d7af27e23891347a2f918b10748014c2ffdd
d054b1d728e90a33c5f3c4c879af68a66b6cac1d
/python/aghast/aghast_generated/FractionBinning.py
030a119013bb8b7256078ce118244a639054b7b6
[ "BSD-3-Clause" ]
permissive
matthewfeickert/aghast
bd3571e95db063ec81263d82c41a4325c41dd561
dd5af536e24e56dc47a1f23a5e78eeb6c9f56033
refs/heads/master
2020-05-09T23:34:54.805157
2019-04-15T14:56:50
2019-04-15T14:56:50
181,506,409
0
0
BSD-3-Clause
2019-04-15T14:41:00
2019-04-15T14:41:00
null
UTF-8
Python
false
false
1,692
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: aghast_generated import flatbuffers class FractionBinning(object): __slots__ = ['_tab'] @classmethod def GetRootAsFractionBinning(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offse...
[ "jpivarski@gmail.com" ]
jpivarski@gmail.com
7646cc66374b3f0fa598bc18d66fac50b0a5087b
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_044/ch119_2020_03_30_15_39_13_270322.py
a01900727a92f75ebd70845d85c0ecf9a4e8cb34
[]
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
148
py
import math lista=[] i=0 def calcula_euler(x,n): somatoria=0 while i<n: somatoria+=(x**i)/math.factorial(i) i+=1
[ "you@example.com" ]
you@example.com
bc450e5ef6d2c4aa7b0dc904d0fb84cf71fed3cd
4face76e61792656870d79740d46c3350a22e2c5
/MaximumProductOfTwoElementsInArray.py
156d52a349f73e9ce07436508674186cfaafd495
[]
no_license
juhideshpande/LeetCode
268d0b8d3557d558d7dbd11ba598eaa09f16c515
0be5b51e409ae479284452ab24f55b7811583653
refs/heads/master
2023-02-17T23:26:43.326424
2021-01-21T04:38:05
2021-01-21T04:38:05
271,307,655
0
0
null
null
null
null
UTF-8
Python
false
false
531
py
class Solution(object): def maxProduct(self, nums): """ :type nums: List[int] :rtype: int """ # product=None # for i in range(len(nums)): # for j in range(i+1, len(nums)): # temp=(nums[i]-1)*(nums[j]-1) # if product...
[ "noreply@github.com" ]
juhideshpande.noreply@github.com
292e082c16d8eee187d85491908312bf7627ad53
ee79e734486c0ca550bb8238ef54c78c7727384a
/Baselib/Utility/Utility.py
e55f12645ebeaae0f9992b45d4f8f0839b9baba5
[]
no_license
neilrobertson/BICRCode
212636e5395f0c0e4dfb3ac3c133f01eb07273ee
7b3f4da9cdefd7680f07b707339aee59faece1d2
refs/heads/master
2020-03-30T16:07:22.637571
2018-10-03T10:12:57
2018-10-03T10:12:57
151,394,096
0
0
null
null
null
null
UTF-8
Python
false
false
2,885
py
''' Created on 2 Sep 2014 A series of static methods (or otherwise) that can help with routine pythonic problems. @author: neilrobertson ''' class Utility(object): def __init__(self, *args, **kwargs): pass @staticmethod def getColumns(inFile, delim="\t", header=True): """ Get...
[ "neil.alistair.robertson@hotmail.co.uk" ]
neil.alistair.robertson@hotmail.co.uk
b53b62575b7dadf4a90dce5a19943d109d16d49f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03967/s479587209.py
abdb0dced473ce7f980e4148420922dc6d63e677
[]
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
171
py
s=list(input()) res = 0 for i in range(len(s)): if i%2 == 0: if s[i] == 'p': res-=1 else: if s[i]=='g': res += 1 print(res)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
522fc618e1f5cf8aaadb40c0ba032d9265a19f53
becdd0a0deef381f68fa7e7dfbbc5e8b0d61a19a
/test/functional/net.py
ca2fa5523205c03f7ba3f84dbb1c0caf140348ba
[ "MIT" ]
permissive
harzcoin/harzcoin
c9f7ac3b460672119b3403e5658d12638e72ee23
fb2c9d0e079fc4b55b3eb8cc0bfcb873ed1155d9
refs/heads/master
2020-03-10T17:53:28.922294
2018-04-14T12:27:02
2018-04-14T12:27:02
129,511,345
0
0
null
null
null
null
UTF-8
Python
false
false
4,210
py
#!/usr/bin/env python3 # Copyright (c) 2017 The Harzcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test RPC calls related to net. Tests correspond to code in rpc/net.cpp. """ import time from test_framew...
[ "37983255+spineinhalb@users.noreply.github.com" ]
37983255+spineinhalb@users.noreply.github.com
4cab834964d9013ed5f8a65b87f8b5d635884b0d
a762400f79172cac06d45cfdc402b559ad9b9e54
/core/migrations/0002_auto_20191031_2344.py
0732ce7ad110e8e265a319ab2b562a9b38a279da
[]
no_license
priyanshu-panwar/Coding-Club-NITJ
c7c2b7e4ccddf4c3b73cd0c27d51b2c57d24178b
9ace38565f809497236f2268d64c708118f027c2
refs/heads/master
2022-03-11T11:10:41.907095
2019-11-06T17:02:30
2019-11-06T17:02:30
211,662,805
1
0
null
null
null
null
UTF-8
Python
false
false
374
py
# Generated by Django 2.2.5 on 2019-10-31 18:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0001_initial'), ] operations = [ migrations.AlterField( model_name='contact', name='subject', fi...
[ "priyanshu009ch@gmail.com" ]
priyanshu009ch@gmail.com
379973ba85824b7a12255b5902660db99494c65b
afdeedfb743fbb149d36c14cfad65feaf03acd21
/code/1725-number-of-rectangles-that-can-form-the-largest-square.py
7ee79fba7926d28dfda2b7d68bb776fb0359256d
[]
no_license
linhx13/leetcode-code
f16cd4a0d35be34c41b86715fc9f3e8ec4b0a577
c71574acfc68174a091c1751f10985b8f5737a1f
refs/heads/master
2021-07-04T03:45:20.030275
2021-06-09T13:55:18
2021-06-09T13:55:18
70,423,464
0
1
null
2019-08-01T09:37:49
2016-10-09T18:48:33
null
UTF-8
Python
false
false
256
py
from typing import List import collections class Solution: def countGoodRectangles(self, rectangles: List[List[int]]) -> int: lens = list(map(min, rectangles)) max_len = max(lens) return len([x for x in lens if x == max_len])
[ "mylhx288@gmail.com" ]
mylhx288@gmail.com
6513b69a93c5c6a5f20655f1978fb2d19de4fd13
e2ba1e3d001902e50f1dc9a63baf2a8abcac3ed8
/InnerEye-DataQuality/InnerEyeDataQuality/deep_learning/self_supervised/datamodules/cifar10h_datamodule.py
e3aaf0bb96980c4603abeeb11b1af171c9bbef50
[ "MIT", "LicenseRef-scancode-generic-cla" ]
permissive
RobinMarshall55/InnerEye-DeepLearning
81f52e7429f942e8c9845958d5b586e19e14e351
8495a2eec3903957e3e81f81a0d2ad842d41dfe2
refs/heads/main
2023-08-15T19:46:38.017713
2021-10-22T14:13:56
2021-10-22T14:13:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,750
py
# ------------------------------------------------------------------------------------------ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License (MIT). See LICENSE in the repo root for license information. # -------------------------------------------------------------------...
[ "noreply@github.com" ]
RobinMarshall55.noreply@github.com
70f7f471c29913bee118a391b54c0e5b7f7f88f3
2c989707a10e65c115eff8bbab0f51e510ccf096
/PythonAdvance/0701pyad.py
9d91534a2c75f049c0f079e80954a361fcdd949b
[]
no_license
qiwsir/LearningWithLaoqi
42041eccb40788f573485209c82aa5e00549408a
4c5df8d6f7638ba2ef5ea68b3b169aa4065b43c2
refs/heads/master
2021-05-01T19:13:28.686452
2018-04-03T11:45:21
2018-04-03T11:45:21
121,016,704
1
0
null
null
null
null
UTF-8
Python
false
false
215
py
#coding:utf-8 print("Input two number; The program will print the result of division") n1 = input("first number:") n2 = input("second number:") r = float(n1) / float(n2) print("{0} / {1} = {2}".format(n1, n2, r))
[ "qiwsir@gmail.com" ]
qiwsir@gmail.com
b1b1e40619aaa887ebc10d3e2da5bfbcd36e146b
04975a41eb459f1528dcbdcb1143a3cb535aa620
/Array_easy/leetcode_1385.py
7de6c10905595b226fc4d74b93142e0b324d6456
[]
no_license
RickLee910/Leetcode_easy
2a50d632379826979a985e1b9950d4cf6bbd8b18
c2687daf334f96a908737067bb915b8b072d0d56
refs/heads/master
2023-01-29T11:09:26.701243
2020-12-02T04:36:14
2020-12-02T04:36:14
294,952,436
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
class Solution: def findTheDistanceValue(self, arr1, arr2, d: int) -> int: count = 0 temp = 0 for i in range(len(arr1)): for j in arr2: if abs(arr1[i] - j) <= d: break temp += 1 if temp == len(arr2): ...
[ "13554543910@163.com" ]
13554543910@163.com
a409c263e9acb6db583a26a3e6311307cad6b046
c071d4ac0e76c71c9c4a4c00849f1ad9174e82f8
/django_app/member/views.py
f6b5d4da32e55adcf1a7b8e36618f8d8153d4f25
[]
no_license
msjo91/facebook_login
53c906a87d7fa0bd097cfe62b955b8f9616379da
0f4b9d651417ebb3af913e710c3cfa79c90a52c3
refs/heads/master
2021-01-20T14:19:23.514364
2017-05-11T08:42:39
2017-05-11T08:42:39
90,590,024
0
0
null
null
null
null
UTF-8
Python
false
false
2,693
py
from pprint import pprint import requests from django.contrib.auth import authenticate, login, logout from django.shortcuts import render, redirect from config import settings APP_ID = settings.config['facebook']['app_id'] def signin(request): context = { 'app_id': APP_ID, } return render(reque...
[ "msjo91@gmail.com" ]
msjo91@gmail.com
8095be8f8f3e40ea4765b54120021e2da58693b7
de6fb3a55196b6bd36a4fda0e08ad658679fb7a1
/optin_manager/src/python/openflow/optin_manager/sfa/rspecs/elements/granularity.py
12bc7021193012c478bda6d435f0f146fd686b00
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
dana-i2cat/felix
4a87af639e4c7db686bfa03f1ae4ce62711615e3
059ed2b3308bda2af5e1942dc9967e6573dd6a53
refs/heads/master
2021-01-02T23:12:43.840754
2016-02-04T10:04:24
2016-02-04T10:04:24
17,132,912
4
4
null
null
null
null
UTF-8
Python
false
false
139
py
from openflow.optin_manager.sfa.rspecs.elements.element import Element class Granularity(Element): fields = [ 'grain', ]
[ "jenkins@integration.localhost" ]
jenkins@integration.localhost
63a0db1d9563c8cd6ab1a6e53a40a2d997715c36
1cb97b0fe8b275efd540716cb6e742fc44e927bf
/rljax/network/base.py
5e096f39ad50948dd8b6c27270ded6a8ddb1042c
[ "MIT" ]
permissive
khushjammu/rljax
31e4d0f9c6aa57a0a07a35f7f8854cc78360ae5a
f2d5e81240d99187fcb625d2caa630c3c7deecfc
refs/heads/master
2023-06-27T17:15:43.437065
2021-07-30T16:55:47
2021-07-30T16:55:47
391,125,669
0
0
MIT
2021-07-30T16:18:23
2021-07-30T16:18:22
null
UTF-8
Python
false
false
1,213
py
import haiku as hk import jax.numpy as jnp from jax import nn class MLP(hk.Module): def __init__( self, output_dim, hidden_units, hidden_activation=nn.relu, output_activation=None, hidden_scale=1.0, output_scale=1.0, d2rl=False, ): super(...
[ "kuboy2482@gmail.com" ]
kuboy2482@gmail.com
279a9395bdcbeae157edc518ae5ea5c4fcbf765d
919e3e3d772d6a79e7639bde32bf698088bc241f
/projects/hupun_operator/page/inventory/inventory_upload.py
a52bc32a60a7741f96949ce090b39ed13f9f93b9
[ "Apache-2.0" ]
permissive
UoToGK/crawler-pyspider
96cfee1e16db1376b5ea0c5fa51650a04c14f714
29ba13905c73081097df9ef646a5c8194eb024be
refs/heads/master
2023-09-05T18:33:17.470385
2021-11-05T10:44:15
2021-11-05T10:44:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,532
py
import uuid from copy import deepcopy from hupun.page.base import * class InvUpload(Base): """ 库存同步的上传库存操作; """ request_data = """ <batch> <request type="json"><![CDATA[ { "action": "resolve-data", "dataResolver": "inventoryInterceptor#saveInventory", "dataItems": [ { "alias": "dsInv...
[ "binhui.ni@yourdream.cc" ]
binhui.ni@yourdream.cc
7b094a1b477366c7d380318d0c693ba85ba57412
d20ee515027cc5d038c801c0e7002d83c51a2ebf
/models/ohlc_index.py
431e5a466e134731c192a3a12f9502ca94ffe5ff
[]
no_license
qianli88/quotesys
c619b89c3649c5f7b88443051c930db1179f09c3
f1b729f2e0dbd6a6b134815921f4e197f53fb525
refs/heads/master
2020-07-22T04:16:44.513467
2019-09-08T05:57:39
2019-09-08T05:57:39
207,071,955
1
0
null
2019-09-08T06:32:24
2019-09-08T06:32:24
null
UTF-8
Python
false
false
1,504
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from models import Database as db __author__ = 'James Iter' __date__ = '2018/8/1' __contact__ = 'james.iter.cn@gmail.com' __copyright__ = '(c) 2018 by James Iter.' class OHLCIndex(object): def __init__(self, contract_code=None, granularity=None): self.con...
[ "tianhm@sina.com" ]
tianhm@sina.com
c84a08e5da41ab85f0ca571b8747a407d783d2a6
1ac7b4daeb1a5c8d792d0d5b5f909d63d86f50c2
/datasciencebox/core/salt.py
dbbde276c4247e9e57b3f58f1f7e5f43ac4a5e71
[ "Apache-2.0" ]
permissive
danielfrg/datasciencebox
aba62dca0d30fe3a60af975d58aed9be42ba792a
6b7aa642c6616a46547035fcb815acc1de605a6f
refs/heads/master
2021-01-24T06:30:48.037289
2016-02-02T22:52:26
2016-02-02T22:52:26
30,687,207
26
7
null
null
null
null
UTF-8
Python
false
false
3,821
py
""" Module that contains salt utilities All functions here should return dictionaries or object no IO """ from __future__ import absolute_import, unicode_literals import os import subprocess import yaml from datasciencebox.core.logger import getLogger logger = getLogger() def get_pillar(project, filename, pillar=N...
[ "df.rodriguez143@gmail.com" ]
df.rodriguez143@gmail.com
62479c9a2ebdf9114b0d83a642319e84eeab8ab4
345c41473a3bac5723d6b465238548889b19a4d1
/py2/testdir_single_jvm/test_rapids_colons_basic.py
c20f4ead923c8192cc2a37e8068ea113d657e407
[ "Apache-2.0" ]
permissive
krishnatray/h2o-dev
34a442392be5d7b805fbccda4678377be0de4266
2dd97eec137ca401a5f50f864f475a33cabdcc37
refs/heads/master
2020-12-30T20:56:27.155072
2014-12-04T23:05:28
2014-12-04T23:05:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,069
py
import unittest, random, sys, time, re sys.path.extend(['.','..','../..','py']) import h2o, h2o_browse as h2b, h2o_exec as h2e, h2o_import as h2i exprList = [ '(+ (* #2 #2) (* #5 #5))', '(* #1 (+ (* #2 #2) (* #5 #5)))', '(c {#1;#5;#8;#10;#33})', '(c {(: #0 #5) })', '(c {(: #5 #5...
[ "kevin@0xdata.com" ]
kevin@0xdata.com
a854d23e5dee0e2a1738e2c8040ab6bd491a7db9
71afb69dc2f3a458d2ce792b8d73454551c29379
/instagram/serializers.py
ec5fcc8dcb05db189da9791b0e973a9326e7e4dd
[]
no_license
by-Exist/instagram_clone_backend
4185a1480b242b7e102d0ca7291a86a0a69688f1
9373329cad6ffd4fefe896cb065f9960cf5a4fb9
refs/heads/master
2023-01-23T10:11:23.158979
2020-11-29T08:10:32
2020-11-29T08:10:32
316,937,150
0
0
null
null
null
null
UTF-8
Python
false
false
1,641
py
from django.contrib.auth import get_user_model from rest_framework import serializers from rest_framework.fields import ReadOnlyField from .models import Post, Comment import re class AuthorSerializer(serializers.ModelSerializer): avatar_url = serializers.SerializerMethodField("avatar_url_field") def avatar...
[ "bolk9652@naver.com" ]
bolk9652@naver.com
692a408eaa107f1112cefe42793e8e7354452b1a
b330c1f196ef71b942cd7e1f17e02921146d283b
/chat/command/CommandExecute.py
88881adcbc9e3e636291b83985a593367f8a97b0
[ "MIT" ]
permissive
uuk0/mcpython-4
07639ce8f41ad12804206f12fb7ea872198bab24
1ece49257b3067027cc43b452a2fc44908d3514c
refs/heads/master
2021-09-09T09:31:37.453269
2019-10-29T18:57:59
2019-10-29T18:57:59
196,567,247
2
5
MIT
2021-06-08T20:24:23
2019-07-12T11:24:48
Python
UTF-8
Python
false
false
4,806
py
"""mcpython - a minecraft clone written in python licenced under MIT-licence authors: uuk, xkcdjerry original game by forgleman licenced under MIT-licence minecraft by Mojang blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019""" import globals as G import chat.command.Command from chat.command....
[ "baulukas1301@googlemail.com" ]
baulukas1301@googlemail.com
2a102fbde5cae6a44e44c02eebe8f08435d26990
a8e1e86a1aceaef83c443cc6fb8648c34d9725cb
/[83] 删除排序链表中的重复元素.py
13d465ff1d9b493d2a0972ba18fd4ea014505c6c
[]
no_license
lghpython/leetcode_code
d459e716e7b08a81520c1d75fd3a66a1910b6a36
cd0978c71dc842428e528584a5f827b1816e5b9a
refs/heads/master
2023-07-02T16:30:31.098463
2021-08-12T15:12:03
2021-08-12T15:12:03
359,377,744
0
0
null
null
null
null
UTF-8
Python
false
false
746
py
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def deleteDuplicates(self, head: ListNode) -> ListNode: pre = cur = head while cur and cur.next: cur = cur.next ...
[ "lghgo@sina.com" ]
lghgo@sina.com
98d62909104002be9dc684593087e5bd40d91710
b4d3259cbc14eeefe1a91ee4bb9fb03ef05c21ae
/inputFiles/Files80X_22Giu/CombineDataLists.py
6601a895f56ce3551e56f59b993438e4317c76a1
[]
no_license
camendola/KLUBAnalysis
3e13a4c29edc072471d37c015fce032302aaee77
d68e03b6027f98de57b57d016ad0dc53c07fcef2
refs/heads/master
2021-06-21T09:19:36.918332
2017-07-20T12:28:01
2017-07-20T12:28:01
73,919,585
1
0
null
2020-04-30T18:35:29
2016-11-16T12:48:06
C++
UTF-8
Python
false
false
4,785
py
import os # outTag = "UpTo22Giu" # Mu = [ # "data-upTo16Giu/2_SingleMuon__Run2016B-PromptReco-v2.txt", # "data16-22Giu/1_SingleMuon__Run2016B-PromptReco-v2.txt", # ] # Ele = [ # "data-upTo16Giu/1_SingleElectron__Run2016B-PromptReco-v2.txt", # "data16-22Giu/2_SingleElectron__Run2016B-PromptReco-v2.txt...
[ "lc.cadamuro@gmail.com" ]
lc.cadamuro@gmail.com
2c11ab7648f4b5c55e22e7f0d2de8f6999abc1d2
a7b592be95dc2af9fdb56725f44e98cc59166e6f
/taskengine/robrank_manager.py
88f3141f93ff45f92a2e38f3d7dee424e70e0178
[]
no_license
cash2one/CRM-3
bc864c462d155b5dc6a51a5edbd564574b3e2f94
cedcaeb397ccadb36952534242bd296c5b4513bb
refs/heads/master
2021-06-14T07:40:53.572013
2017-05-23T15:52:06
2017-05-23T15:52:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,442
py
# coding=utf-8 import sys import signal import time from multiprocessing import Process, Event class Consumer(Process): """消费者,继承自进程,初始化: poison: 毒药,在发作前一直工作 consume: 消费方法,由具体的业务指定 """ def __init__(self, poison, consume): super(Consumer, self).__init__() self.poison = poison ...
[ "956879357@qq.com" ]
956879357@qq.com
97ea0940feb558cbea4b133ba90ee993413e5236
95a23f1d7332c969b29ef44da8d57f3e7bf9d749
/Music Tagger/tagger.py
25268709eda30c7d44d5e979f24eaaa09360cb06
[ "MIT" ]
permissive
sharadbhat/Python-Scripts
b34c864a0e8ebb3d5da112f817b309c3b4cface6
53ccd1359ef35ecc039b49612a82d46f473720c3
refs/heads/master
2021-01-21T22:25:35.632103
2018-02-25T20:08:50
2018-02-25T20:08:50
102,156,777
1
1
null
null
null
null
UTF-8
Python
false
false
3,421
py
""" - Sharad Bhat - 11th December, 2017 """ import requests import os from tkinter import Tk from tkinter.filedialog import askopenfilename from mutagen.mp3 import MP3 from mutagen.id3 import ID3, APIC, TIT2, TPE2, TALB Tk().withdraw() filename = askopenfilename() track = input("Enter track name: ") artist = input("...
[ "sharad.mbhat@gmail.com" ]
sharad.mbhat@gmail.com
44e4ff593acb61e397e6306552e33f225666bbbe
7bdcfd44f0f3ef5614304a304cb46df2624730b1
/qrlesson/wsgi.py
09370915803baaff7dfff4b435b4cd0ca1542f67
[ "MIT" ]
permissive
Jumas-Cola/qrlesson
eb9544b1e59e6d5108b4b23a8e35e640ebcee0f5
b75f776f113616670ede99a6172891f57089f0df
refs/heads/master
2023-05-01T03:11:32.138747
2019-11-06T17:28:21
2019-11-06T17:28:21
216,413,597
0
0
null
2023-04-21T20:38:55
2019-10-20T19:11:43
JavaScript
UTF-8
Python
false
false
393
py
""" WSGI config for qrlesson project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETT...
[ "kbbyfl91@gmail.com" ]
kbbyfl91@gmail.com
51e216d629a3390e6d8b3290002e47d4e3ddbbf3
15e85b4d9527e7a87aded5b3c99ad9c785bca915
/datcore-sdk/python/datcore_sdk/models/response_metadata.py
6ef11a764f15c5a5a9948f02a684468a96492712
[ "MIT" ]
permissive
mguidon/aiohttp-dsm
4161f9977d3dffbb727aa26cce4e9fb347aa4e21
612e4c7f6f73df7d6752269965c428fda0276191
refs/heads/master
2020-03-30T09:03:49.791406
2018-10-02T07:05:35
2018-10-02T07:05:35
151,058,427
0
0
null
null
null
null
UTF-8
Python
false
false
3,075
py
# coding: utf-8 """ Blackfynn Swagger Swagger documentation for the Blackfynn api # noqa: E501 OpenAPI spec version: 1.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class ResponseMetadata(object): """NOTE: This class is auto generated ...
[ "guidon@itis.ethz.ch" ]
guidon@itis.ethz.ch
a266f30ba40e26b8b3c8826f2ee526d6205007b9
aa61283d145c54da5a72c45eb8938904e25f5c03
/sampleassembly/predefined/components/units.py
1ee2294db6f9d75d96fa2ed690a80d85e76fdedb
[]
no_license
danse-inelastic/sampleassembly
8bb428cc63dbbb448ea437a1ac6b356c0f4beee3
66ccdcf0540f87d8b3d5c32f3576a2a3a40c5734
refs/heads/master
2021-07-11T07:40:27.481161
2021-03-19T15:47:49
2021-03-19T15:51:38
34,145,907
0
1
null
2020-09-16T01:47:04
2015-04-18T00:09:41
Python
UTF-8
Python
false
false
447
py
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2007 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
[ "jbrkeith@gmail.com" ]
jbrkeith@gmail.com
376304898f893000f5c3e4c35fdc3ea1194a8373
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/386/usersdata/267/90802/submittedfiles/ep1.py
e0d6f270edef087627493e0df7dc5a3f3157c1c4
[]
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
1,229
py
# -*- coding: utf-8 -*- #FUNÇÃO def raiz_quadrada(x,epsilon): r_atual=x r_prox=(1/2)*(r_atual+(x/r_atual)) while abs((r_prox-r_atual))>epsilon: r_atual=r_prox r_prox=(1/2)*(r_atual+(x/r_atual)) return (r_prox) #PROGRAMA PRINCIPAL #e=0 while e<=0: e=float(input('Precis...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
78523132e550d70966c51200f6623139401df09c
191a7f83d964f74a2b3c7faeb4fc47d9c63d521f
/.history/main_20210529110356.py
332ca2f50c8f922186ef5fadb96e72473909b2da
[]
no_license
AndreLiu1225/Kinder-Values-Survey
2a317feee8d5b17c27da2b2116742656e35d8ab9
090c27da0c822abb7dfc0ec6e13ae1b3dcb7bbf3
refs/heads/master
2023-05-03T00:26:00.481423
2021-06-04T03:24:19
2021-06-04T03:24:19
371,989,154
0
0
null
null
null
null
UTF-8
Python
false
false
5,618
py
from flask import Flask, render_template, redirect, url_for, flash, request from flask_sqlalchemy import SQLAlchemy from flask_wtf import FlaskForm from wtforms import StringField, TextField, SubmitField, IntegerField, SelectField, RadioField from wtforms.validators import DataRequired, Email, EqualTo, Length, Validati...
[ "andreliu2004@gmail.com" ]
andreliu2004@gmail.com
a7324ed3d4815c44b57f410e307c03e3dcb2b458
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/cirq_new/cirq_program/startCirq_pragma745.py
d99dfb635478e671448f66f85f54fb9e21b2cecb
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,956
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=20 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np class Opty(cirq.PointOptimizer): def optimization_at( ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
5ac7d83106c33a7f876f9818198e3f0bfb70371c
8da41ffa2ccb09e04f95db0f211e0ed69a42a352
/courses/machine_learning/deepdive2/structured/labs/serving/application/lib/rsa/transform.py
628d0afb55b5a824d22983f8ad90a490fd746b8c
[ "Apache-2.0" ]
permissive
GoogleCloudPlatform/training-data-analyst
808af9b09a0e5f5657c4ca76cdd205f808d76d89
975a95032ce5b7012d1772c7f1f5cfe606eae839
refs/heads/master
2023-09-05T19:50:59.722334
2023-09-04T14:25:33
2023-09-04T14:25:33
56,459,948
7,311
5,917
Apache-2.0
2023-09-13T21:45:54
2016-04-17T21:39:27
Jupyter Notebook
UTF-8
Python
false
false
6,599
py
# -*- coding: utf-8 -*- # # Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu> # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Un...
[ "ryangillard@google.com" ]
ryangillard@google.com
3cafa139e141ab2df39c564a8c8b33d5093b7d48
ef243d91a1826b490e935fa3f3e6c29c3cc547d0
/pandas/_libs/tslib.py
2b4ab71a7e8acfffd6ed76ac9db888bf749a4a14
[]
no_license
VentiFang/Python_local_module
6b3d0b22399e817057dfd15d647a14bb1e41980e
c44f55379eca2818b29732c2815480ee755ae3fb
refs/heads/master
2020-11-29T11:24:54.932967
2019-12-25T12:57:14
2019-12-25T12:57:14
230,101,875
0
0
null
null
null
null
UTF-8
Python
false
false
4,435
py
# encoding: utf-8 # module pandas._libs.tslib # from F:\Python\Python36\lib\site-packages\pandas\_libs\tslib.cp36-win_amd64.pyd # by generator 1.147 # no doc # imports import builtins as __builtins__ # <module 'builtins' (built-in)> import numpy as np # F:\Python\Python36\lib\site-packages\numpy\__init__.py import pyt...
[ "5149528+ventifang@user.noreply.gitee.com" ]
5149528+ventifang@user.noreply.gitee.com
e9f97168ffbe7eaeaf7ecd33840f0c06a2f371a8
0ea323b403a4cd509656c048cc889c9c3cf263cd
/kick.py
740b8a42f1b72e9609608b820d8debe93fc6b422
[ "MIT" ]
permissive
fossabot/robotsutain
56e32523a0d644b13b43c626e2168cd3a3b1958e
cc08a371ce1dd60e59221cda39dd3d89fbafc99c
refs/heads/main
2023-05-06T08:55:16.822052
2021-06-06T13:13:56
2021-06-06T13:13:56
374,364,275
0
0
MIT
2021-06-06T13:13:51
2021-06-06T13:13:50
null
UTF-8
Python
false
false
391
py
@bot.command(name="추방", aliases=['킥']) async def kickuser(ctx, member: discord.Member): if ctx.author.guild_permissions.kick_members or ctx.author.id in administer: try: await ctx.guild.kick(member) except: await ctx.send("사용자를 추방하지 못했어요...") else: await c...
[ "noreply@github.com" ]
fossabot.noreply@github.com