blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c874d626b45bd74a566deb36f9ffa2b6415badf4 | ccfa41a607091ff81e64cb16055a2bcd255d9139 | /py.py | 5d873435533ba5a236532926fdb3781c6055eb29 | [] | no_license | K135/SHIFA | a49320abcf1f01ca4675440666dfdf72286863d3 | 17ea3d53f6ba525d923a0309e55d1fc7243df5d8 | refs/heads/master | 2020-06-25T11:55:35.479297 | 2019-07-28T15:53:42 | 2019-07-28T15:53:42 | 199,301,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,669 | py | # Ask the user to enter the names of files to compare
fname1 = input("Enter the Blue print name: ")
fname2 = input("Enter the Source name: ")
print("-----------------------------------------------------------")
print("Enter below question numbers in accordance with blue print")
print("-----------------------------... | [
"noreply@github.com"
] | K135.noreply@github.com |
995ee68dc9edc68b257e49a937e18c5f00a88a2d | 74b772cacc1658733e465ec1b971da881a8e8b39 | /app2.py | f29e878723f62a4855f8b1bd199c432d6cd4bb70 | [] | no_license | TushRaj/cmpe273-assignment1 | 6dee0a706dc285c914de43908186951a76ef8c07 | 6e5e195c8f9bdbc2f7cef13225c5d2bf3b3aa9bf | refs/heads/master | 2021-01-22T20:50:36.570878 | 2017-03-18T06:45:23 | 2017-03-18T06:45:23 | 85,367,610 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,145 | py | import sys
import json
import yaml
from flask import Flask
from github import Github
from flask import jsonify
app = Flask(__name__)
url = sys.argv[1].split("/")
for i in range(len(url)):
if "github" in url[i]:
user = url[i+1]
repo = url[i+2]
break
def get_response(config_file):
ret... | [
"tushraj21@gmail.com"
] | tushraj21@gmail.com |
d49b7e0388936218685dd445a7507905b6d20ffb | f37ab691f334ee7569517a192d31e9a1024d81e7 | /terra/piece/piecemanager.py | db2f2533ffc70bf41e676ebe3e929d9776c71c56 | [] | no_license | IanPlu/Terra | 1cdbf3e96ff08162011232d680942bd2f54ff51b | d0585648bc6d39cf238f45d5b55a90ed6e4b44f8 | refs/heads/master | 2021-05-13T19:09:17.444469 | 2018-05-19T01:48:46 | 2018-05-19T01:48:46 | 116,883,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,575 | py | from collections import Counter
from terra.economy.upgradeattribute import UpgradeAttribute
from terra.economy.upgrades import base_upgrades
from terra.engine.gameobject import GameObject
from terra.event.event import EventType, publish_game_event
from terra.managers.session import Manager
from terra.piece.attribute i... | [
"personaltroll@gmail.com"
] | personaltroll@gmail.com |
1297526beb103d04983968e266673aad9467a584 | 1ed4b461d111046cab59f266182938a09870514d | /store/migrations/0006_auto_20200814_1606.py | 75587b38a11b428f7e48a9679180bacb178fc5b6 | [] | no_license | giri2510/KIRANAA | 2c9b3b6ca54f56e54394b627f805a8cf0ed868ab | 0bcf5d918060a83de945245c34458f31f1964ef2 | refs/heads/master | 2022-12-04T10:47:10.350036 | 2020-08-27T12:00:31 | 2020-08-27T12:00:31 | 290,763,937 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # Generated by Django 3.1 on 2020-08-14 10:36
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('store', '0005_auto_20200813_1621'),
]
operations = [
migrations.RemoveField(
... | [
"giriahire@gmail.com"
] | giriahire@gmail.com |
3ca69254c75c83e2a0b47ef47ede7744b3b4d54f | ede08c47e9d7a192a680085b9e6d31c25331dc45 | /blog/views.py | 7495cd655ab0769f22b381e0c88f37bc30d252e0 | [] | no_license | Drochao/myblog | c0456652df039bc3e430bf129ae7733024d09b00 | 36e3a4e7a7580078085d8bbbd5aec8982d8d652a | refs/heads/master | 2022-12-14T20:53:00.080904 | 2019-06-06T04:10:47 | 2019-06-06T04:10:47 | 190,505,489 | 0 | 0 | null | 2022-12-08T18:24:37 | 2019-06-06T03:10:10 | Python | UTF-8 | Python | false | false | 1,462 | py | from django.shortcuts import render
# Create your views here.
from myblog import settings
import os, django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project_name.settings")
django.setup()
def global_setting(request):
# 站点基本信息
TITLE = settings.TITLE
SITE_DESC = settings.DESC
SITE_KEYWORD = set... | [
"934061223@qq.com"
] | 934061223@qq.com |
31d74995c4c9ef4003633392c37d73d4bfee41a4 | d6234f9c684c4dba473b35c7fb584ff0d1ef4024 | /Pymodoro/data_access/data_access.py | b03271cc961d212979e022ba96b8c85ad54aba8c | [] | no_license | nsjackson/Pymodoro | 8c85cbb65dff07d4d3acc2013d813fb1ec24ee13 | e88b7a79c6f498b1b246aa637e35f6161e38d724 | refs/heads/master | 2021-01-10T05:49:17.232757 | 2015-11-25T06:25:39 | 2015-11-25T06:25:39 | 46,768,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | #! /usr/bin/python
import sqlite3
class DataAccess:
def __init__(self, db_filename):
self.db_filename = db_filename
def get_connection(self):
conn = sqlite3.connect(self.db_filename)
return conn
def add_new_user(self, user, email):
conn = self.get_connection()
c... | [
"nsjackson@gmail.com"
] | nsjackson@gmail.com |
7cc326781e79bb4f5ebc9f2d6e29dd595d232358 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/WH3l/STXS_nanoAOD/v6/Full2016nano_STXS_1p1/variables_OSSF.py | 8b4f3c4af3c8b116ee43f30c6c513dab64684918 | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 6,714 | py | # variables
#variables = {}
#'fold' : # 0 = not fold (default), 1 = fold underflowbin, 2 = fold overflow bin, 3 = fold underflow and overflow
variables['events'] = {'name' : '1',
'range' : (1,0,2),
'xaxis' : 'events',
'fold' : 3
... | [
"siew.yan.hoh@cern.ch"
] | siew.yan.hoh@cern.ch |
61dbcc0f9ffbe6aad00588dd71be616395aa8668 | 87ddcf61c2faaaa795b9c25af334a76018337f62 | /frictionless/schemes/buffer/__init__.py | 1a8025859b0b2ae5f97cdb1e443326415796fc32 | [
"MIT"
] | permissive | frictionlessdata/frictionless-py | 17d663ad34c18964113c97e4d657004610fe0df0 | 740319edeee58f12cc6956a53356f3065ff18cbb | refs/heads/main | 2023-08-26T16:24:25.353929 | 2023-08-04T07:55:37 | 2023-08-04T07:55:37 | 28,409,905 | 295 | 79 | MIT | 2023-09-04T05:01:33 | 2014-12-23T17:11:11 | Python | UTF-8 | Python | false | false | 177 | py | from .control import BufferControl
from .loader import BufferLoader
from .plugin import BufferPlugin
__all__ = [
"BufferControl",
"BufferLoader",
"BufferPlugin",
]
| [
"noreply@github.com"
] | frictionlessdata.noreply@github.com |
4941f4093bbc745e1b48dcad83586d8087c91b50 | 38debd25622b4193e7e93279d1ad95a5c0b8edec | /main.py | 8296ef58337636f6b6ee0f866f7809846075122c | [
"MIT"
] | permissive | jerseyshawn/cf-vcap-vars | 302cd4f0e1046344aa8f3be9003da970cc9dc405 | 26effac112b500271e2f5ed298f0e6ab50bd7c4e | refs/heads/master | 2020-05-20T23:47:39.555886 | 2019-05-10T11:20:03 | 2019-05-10T11:20:03 | 185,810,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | #!/usr/bin/env python
from includes.vars import CloudFoundry
def main():
cloud_foundry = CloudFoundry()
print('*******************')
cloud_foundry.get_cf_variables()
print('*******************')
if __name__ == '__main__':
main()
| [
"shawn.mulford@philips.com"
] | shawn.mulford@philips.com |
0a81428c83c9324e4b13e501f545731bd9fecba1 | 0fd5e81c1703161115afb0e3eb7ff618133bd0cb | /test.py | 38772bf941c13dc787b46ffdc4f121bd2ebf9130 | [] | no_license | snejdwarf/CDSS | c9aeec07e094f739216e7c200117ad5c4102cddf | a297e4801981d53507181ea00a743bdb398be86b | refs/heads/master | 2022-04-20T18:29:00.153177 | 2020-04-17T06:26:20 | 2020-04-17T06:26:20 | 251,102,387 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | from src.quickscore import Quickscore
from src.variationalInference import variationalinference
import time
import random
import numpy as np
random.seed(42)
#Create quickscore object and model containing nd diseases and nf symptoms
nd = 400
nf = 800
qs = Quickscore.Quickscore()
qs.generateRandomTables(nd,nf)
Q = qs.... | [
"jea1102@hotmail.com"
] | jea1102@hotmail.com |
c656d5a7bdd1e85466974d066d7c70e407ec8a96 | b896f5af9c279afc4355e8c82e81acf7c886f159 | /rewinder/py_likelihood.py | 40a8c5da4b8e2dba6b6736a77c4eb5bb557f4ec4 | [
"MIT"
] | permissive | adrn/rewinder | 1a0238a12af4bebedcd0658921e6c36caf4d6a9f | 2a53a4ec608d0f14edd09926d33f39b2a226094e | refs/heads/master | 2021-01-10T14:54:50.072423 | 2016-02-16T04:39:04 | 2016-02-16T04:39:04 | 43,101,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,022 | py | """ Pure-python implementation of the rewinder likelihood function """
from __future__ import division, print_function
__author__ = "adrn <adrn@astro.columbia.edu>"
# Third-party
import astropy.coordinates as coord
from astropy import log as logger
import numpy as np
import gary.coordinates as gc
from gary.integrate... | [
"adrian.prw@gmail.com"
] | adrian.prw@gmail.com |
505d95c43bc330dd98bf18fe6b2307fe5fda7aca | c87348e66788cac2a2a4b4cce23c1aafae19e3fd | /client/jim/utils.py | 8e1c961ded7c88934b1c39d747ade839ecccb469 | [] | no_license | dimchoo/Messanger_PyQT | eb5fcc63cfa028c150b7dc73782c4662e308299f | 3c2e7dfe1b5a284580b9b99c367dd394505a91b9 | refs/heads/master | 2022-03-02T08:28:23.111283 | 2019-08-11T13:28:06 | 2019-08-11T13:28:06 | 198,236,236 | 0 | 0 | null | 2019-08-11T13:28:07 | 2019-07-22T14:09:42 | Python | UTF-8 | Python | false | false | 1,774 | py | import argparse
import json
import sys
from client.jim.errors import IncorrectDataReceivedError, NonDictInputError
from client.jim.settings import COMMON_ENCODING, DEFAULT_BIND_IP, DEFAULT_SERVER_PORT
def write_bytes(dict_message):
"""
Функция преобразует словарь в JSON-объект
и кодирует его в байты
... | [
"imdimchoo@gmail.com"
] | imdimchoo@gmail.com |
8d1f7fbe467a276c6f72572b432dc1b142a7a871 | 898e0c90bef7f3a5a8bff2764972f7f481f16852 | /CS_web_service_with_Flask/lib/python3.6/__future__.py | cdf5ffa46807e4457023ccd979f1fb7f5db3da4c | [] | no_license | minesli8/CS_web_service_with_Flask | 5264fec152483f2e2b7d07974ee30db1b9b9a04a | ac21b872b66854e69b2afe14e55b41e19f3f8690 | refs/heads/master | 2022-12-10T09:36:56.673853 | 2018-09-02T20:04:21 | 2018-09-02T20:04:21 | 125,312,598 | 0 | 0 | null | 2022-12-08T02:51:33 | 2018-03-15T04:33:50 | Python | UTF-8 | Python | false | false | 47 | py | /home/pei/anaconda3/lib/python3.6/__future__.py | [
"“peidailylife@gmail.com”"
] | “peidailylife@gmail.com” |
1009f3c80cd822370feca779342a03c65d0598f2 | d8788a352e84b6184fc65e499fd2e198855b4ab1 | /02_ANN/ann_classification.py | d7c64ebcfc739da7efc42db2ed8462abcc601aea | [] | no_license | yjkim0083/3min_keras | 7cb5c883d2b337beb5dc54ba235fac37bc206640 | 46e192cf37a3407e69b6b81c10cb2b1dff35586d | refs/heads/master | 2020-05-17T00:21:12.795091 | 2019-04-26T09:30:32 | 2019-04-26T09:30:32 | 183,394,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,945 | py | # 분류 ANN을 위한 인공지능 모델 구현
from keras import layers, models
# 분산 방식 모델링을 포함하는 함수형 구현
def ANN_models_func(Nin, Nh, Nout):
x = layers.Input(shape=(Nin,))
h = layers.Activation("relu")(layers.Dense(Nh)(x))
y = layers.Activation("softmax")(layers.Dense(Nout)(h))
model = models.Model(x, y)
model.compile(lo... | [
"yjkim0083@gmail.com"
] | yjkim0083@gmail.com |
6d20334a852b7a2bbfa0e2de4c78dd283653ca7e | 9645bdfbb15742e0d94e3327f94471663f32061a | /Python/695 - Max Area of Island/695_max-area-of-island.py | 6a515e3947dea8c33d5d0a42a64673b32bc1b4c2 | [] | no_license | aptend/leetcode-rua | f81c080b2260adb2da677612e5c437eda256781d | 80e44f4e9d3a5b592fdebe0bf16d1df54e99991e | refs/heads/master | 2023-06-22T00:40:05.533424 | 2021-03-17T13:51:28 | 2021-03-17T13:51:28 | 186,434,133 | 2 | 0 | null | 2023-06-21T22:12:51 | 2019-05-13T14:17:27 | HTML | UTF-8 | Python | false | false | 1,362 | py | from leezy import Solution, solution
class Q695(Solution):
@solution
def maxAreaOfIsland(self, grid):
# 116ms 82.51%
if not grid:
return 0
m, n = len(grid), len(grid[0])
def dfs(i, j):
if not (0 <= i < m and 0 <= j < n):
return 0
... | [
"crescentwhale@hotmail.com"
] | crescentwhale@hotmail.com |
97ea83c2026713abedcb96bad14d62da3747d3b7 | 60908498c0e5c8d823ece0a92b2e334b2ee7dbee | /test/exception_chain.py | 6de56774f06a68b76236fd2016c86a26b2f7c129 | [] | no_license | passionlv/python_notebook | 73b9cb5a5acfedadb2a9590559247bfc8eee04b7 | dfe7cb9f8b5f6665daecf9cae411330bed7e9b50 | refs/heads/master | 2021-01-13T12:37:05.907487 | 2018-08-28T15:47:55 | 2018-08-28T15:47:55 | 72,551,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | def divide(a, b):
try:
print(a/b)
except Exception as exc:
def log(exc):
fid = open('/home/xiaopeng/tmp/logfile.txt') # missing 'w'
#import ipdb;ipdb.set_trace()
print(exc)
print(exc, file=fid)
fid.close()
log(exc)
if __name__... | [
"lvxp@ehualu.com"
] | lvxp@ehualu.com |
dead1263038c60ae148f0d3d6b39bfdfea851a4c | 9448b5a11d017c30b3d4ed48dfc97234d20b6685 | /get_prosody.py | dbe3347cda68d907b3440dc019a929289bd90b30 | [] | no_license | moui72/disStat | b603ac17138bde4d131dbf91222de1a9a766c0d9 | 35658825f4182e96e61801b0e9e41bbf00cf7edb | refs/heads/master | 2020-04-29T09:09:25.613504 | 2019-09-16T20:45:53 | 2019-09-16T20:45:53 | 176,013,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | import csv
rows = []
colnames = []
with open('mar5.data.csv', mode='r') as csv_file:
csv_reader = csv.DictReader(csv_file)
line_count = 0
cols = ["V", "OBJ", "PP1"]
for row in csv_reader:
prosody = ""
line_count += 1
if row["STRONG"] in cols:
prosody += row["STRONG... | [
"tyler@ty-pe.com"
] | tyler@ty-pe.com |
b2d6a2ac684efa7c291bcdeccc45313af1028760 | 41e2cf24f0ff3a11a98bb00e03c598dde35452c4 | /transaction/migrations/0024_auto_20180726_1104.py | eb7571fa92aa48d57e35a5b3844642e40e7d8e64 | [] | no_license | anushamokashi/mob | f5dbedc729073092f94323feca6d95dee24087a2 | 37bc0eb033bc23d37e9d4fb9bb8b2b456553ff7f | refs/heads/master | 2020-04-24T08:36:56.008212 | 2019-02-21T09:09:04 | 2019-02-21T09:09:04 | 171,810,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-07-26 05:34
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('transaction', '0023_auto_20180705_1144'),
]
operations = [
m... | [
"anusha.mokashi@gmail.com"
] | anusha.mokashi@gmail.com |
e5b61325dbf62aff81dcf92eb859ba05c9d6d174 | 9b63a7bbe7bf2dc9c09d827eb89dea669a2a9f82 | /tr_update.py | d626ee8e269bf9ee0a5879b5b0e1097e66d2ff20 | [] | no_license | channelye-tobe/Microblog_Web_Application | e67e64ab1fe4e3f85dfdbdf7f81982ff3cf27d07 | 42305ec3b26db64c73bba3a009ed246e669c28e8 | refs/heads/master | 2022-12-19T06:05:05.627022 | 2020-09-21T03:49:40 | 2020-09-21T03:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!flask/bin/python
import os
import sys
if sys.platform == 'win32':
pababel = 'flask\\Scripts\\pybabel'
else:
pybabel = 'flask/bin/pybabel'
os.system(pybabel + ' extract -F babel.cfg -k _l -o messages.pot app')
os.system(pybabel + ' update -i messages.pot -d app/translations')
os.unlink('messages.pot')
| [
"ubuntu@ip-172-31-39-39.us-east-2.compute.internal"
] | ubuntu@ip-172-31-39-39.us-east-2.compute.internal |
2d4eafc412a0b5b29bbd42cd488da10dc643458a | cbc404e64d807f1251a12841e9539e4c48541fdb | /src/main/python/RAFC-project/feedback/migrations/0007_faculty_teaches.py | 481a8cdd787ea8304bacdf89262b0e38d7e1a796 | [] | no_license | souravyuvrajj/project-RAFC | b9607d08741b6e9943154faa3494e71e5e0ecd4d | 51684feec356ad1b1d91f034b42e1d54f3ad8f41 | refs/heads/master | 2020-04-15T12:58:18.851728 | 2019-04-25T03:26:20 | 2019-04-25T03:26:20 | 164,696,082 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # Generated by Django 2.1.7 on 2019-03-22 10:06
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('feedback', '0006_auto_20190322_1004'),
]
operations = [
migrations.CreateModel(
name='Faculty',... | [
"souravyuvrajj@gmail.com"
] | souravyuvrajj@gmail.com |
9d8110c68c6778f4e0fdd1f29c55cdb7c2fda724 | 31a90ab0caaf6799cf9e33d3b60128a3c222617e | /way_20_001_zuoyongyu.py | 39cbffe6a0d7af85854d5d1b1f2b07c447e27902 | [] | no_license | xiaoyu-meng/python27_test001 | 0293792d8e143078e7c309374e2c771b92613895 | c739344d529b98a405618c41e92f32063bdec440 | refs/heads/master | 2021-07-08T15:44:20.299363 | 2017-10-04T16:09:13 | 2017-10-04T16:09:13 | 105,789,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | # -*- coding:utf-8 -*-
#本地作用域
#全局作用域
#嵌套作用域
#内置作用域
#作用域-命名空间
# LEGB原则:先在本地找变量名,然后嵌套上层寻找,在全局找,最后在内置作用域找
#在不同作用域是可以命名相同变量名字的
# global 语句
x=1
y=2
print vars()
scope=vars()
print scope['x']
print scope['y']
def foo():
x=42
print x
foo()
print x
def output():
print '02:',x
output()
def combine(parameter):... | [
"512679420@qq.com"
] | 512679420@qq.com |
d6bb67a0831f85f207b88d1801dd7ba5c752bf2a | c2f16e35c073f26b28cd544f1a4120ca7a64b705 | /HandsOn/Group11/App/main.py | ecef496a81e29ba1067bf650231af2717b1a40a1 | [] | no_license | jmdu99/Curso2020-2021 | 3ba8033e6066735a4645f4d901a3f4ef72f6b10c | bd60ee83f44c17a6c71363d9ac849f9dd808b1a8 | refs/heads/master | 2023-01-05T13:53:54.194570 | 2020-11-06T17:48:42 | 2020-11-06T17:48:42 | 305,498,376 | 0 | 42 | null | 2020-10-19T19:55:59 | 2020-10-19T19:55:58 | null | UTF-8 | Python | false | false | 6,682 | py | import os
from flask import Flask, render_template, request, json, redirect, url_for, session, jsonify
from flask.wrappers import Response
from flaskext.mysql import MySQL
from werkzeug.security import generate_password_hash, check_password_hash
from rdflib import Graph, Namespace, Literal
from rdflib.namespace import... | [
"raul.corrales.avila@gmail.com"
] | raul.corrales.avila@gmail.com |
5ce4e1ee44b4f848516edd71b846cd27715bc270 | 8d15e562d38cb67e1806ce16412e4c6d85b0238a | /songmatch/genfingerprint.py | 9c9aa8b858fccc222da18fee5631677e4b600466 | [] | no_license | GenuineIntelligenceTeam/AudioCapstone | f2bfbd809b8da0e76d99a4cbb3237d9caa7dcd7f | 7da6bfa7532afe9598a804564eb24c8785fd970e | refs/heads/master | 2020-03-22T22:22:35.027926 | 2018-07-15T03:45:19 | 2018-07-15T03:45:19 | 140,748,402 | 1 | 1 | null | 2018-12-09T23:48:17 | 2018-07-12T18:05:12 | Python | UTF-8 | Python | false | false | 1,978 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.mlab as mlab
from scipy.ndimage.filters import maximum_filter
from scipy.ndimage.morphology import generate_binary_structure, binary_erosion
from scipy.ndimage.morphology import iterate_structure
FOOTPRINT_BASIC = generate_binary_structure(rank=2,... | [
"ian.coolidge@asdnh.org"
] | ian.coolidge@asdnh.org |
a864eff49d0325ce178e80f74641bd72a1485bed | 1b9075ffea7d4b846d42981b41be44238c371202 | /2009/devel/programming/language/php/PEAR-Services_Weather/actions.py | 50cbc06f373814ed748d3ef7f1b83fb0ed265005 | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 588 | 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 pisitools
from pisi.actionsapi import get
WorkDir="Services_Weather-%s" % get.srcVERSION()
def install():
pisitools.insinto("/usr/s... | [
"zaburt@users.noreply.github.com"
] | zaburt@users.noreply.github.com |
e4bddc9388b603da1e939dc29c9f4254223ed300 | ca55dcaa64ea9db4068e13091321cfebecc0ff41 | /baekjoon/queue/1966.py | c49f582ed84d20853b421cf6f1b748a493c67bb2 | [] | no_license | gomtinQQ/algorithm-python | 8fb8343594b945099ae2a4dfa794ecb47e54ab0b | 751562922b66e335f621d366bb73dacdc7125140 | refs/heads/master | 2022-12-07T23:05:44.535593 | 2020-08-21T12:29:58 | 2020-08-21T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | '''
1966: 프린터 큐
문제:
여러분도 알다시피 여러분의 프린터 기기는 여러분이 인쇄하고자 하는 문서를 인쇄 명령을 받은 ‘순서대로’, 즉 먼저 요청된 것을 먼저 인쇄한다.
여러 개의 문서가 쌓인다면 Queue 자료구조에 쌓여서 FIFO - First In First Out - 에 따라 인쇄가 되게 된다.
하지만 상근이는 새로운 프린터기 내부 소프트웨어를 개발하였는데, 이 프린터기는 다음과 같은 조건에 따라 인쇄를 하게 된다.
1. 현재 Queue의 가장 앞에 있는 문서의 ‘중요도’를 확인한다.
2. 나머지 문서들 중 현재 문서보다 중요도가 높은 문서가 하나... | [
"minhyeonlee1@gmail.com"
] | minhyeonlee1@gmail.com |
f040628d258240101a3284ad14c55bb7d3ba3a71 | 10aefc154e740941a9b340f471b785739280fc93 | /misslanious/string_to_int.py | 59e8323974c9a56859bcd762969f2196d5b3cbdc | [] | no_license | saurabh-kumar88/leetcode | 465b9eaa7d844eba21c3bc4e9cc1e3348c75c037 | 282b270c1a97bc726b835f8288fdb898a8d0c81c | refs/heads/master | 2022-12-04T13:13:32.144792 | 2020-08-21T14:54:24 | 2020-08-21T14:54:24 | 280,216,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import re
class Solution():
INT_MAX = (2**31) - 1
INT_MIN = -(2**31)
find_digits_only = re.compile(r"^(\s+)?([-+]?\d+)")
def myAtoi(self, input_string: str) -> int:
"Description : convert strign to integer"
number = self.find_digits_only.search( input_string )
... | [
"ykings.saurabh@gmail.com"
] | ykings.saurabh@gmail.com |
f22dd3fd63ec64801383effca44b12a582aea643 | ad0a9af0e6e17db1a1ab1ce001e7fd310a41ff91 | /FundHausII_Proj copy/apps/FundHausII/migrations/0002_auto_20180207_0015.py | 4383e58d9028f7d0a920b1a8cde542e9af59edab | [] | no_license | matthewgstillman/nba_api | c73e6f4b086ca9ceaf2009a691472e8356899c5c | 4f840bd0002f201e8696d2a6d82a2fefe1170f7a | refs/heads/master | 2022-02-21T01:27:21.512006 | 2019-08-16T02:50:51 | 2019-08-16T02:50:51 | 198,093,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2018-02-07 00:15
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('FundHausII', '0001_initial'),
]
operations = [
... | [
"matthewgstillman@gmail.com"
] | matthewgstillman@gmail.com |
441de30336ed08eab0035230d4a8dd41eaf2d2a2 | 2dd799910a936749cdb692da239d227ab1a3d0b1 | /Scripts/rst2odt_prepstyles.py | 85eb42d5a2c03bd230aad5fd67dc3ce13bc350ae | [] | no_license | NickyThreeNames/blog_settings | a06e8df3e22748eb6d247d4f6068991275cbd85b | ce12726cd392e293cc6be1ab35ff1cdee8343ad9 | refs/heads/master | 2020-12-24T06:57:21.197263 | 2018-01-24T05:57:41 | 2018-01-24T05:57:41 | 56,394,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | #!C:\Users\Nicholas\Anaconda3\envs\pelican1\python.exe
# $Id: rst2odt_prepstyles.py 5839 2009-01-07 19:09:28Z dkuhlman $
# Author: Dave Kuhlman <dkuhlman@rexx.com>
# Copyright: This module has been placed in the public domain.
"""
Fix a word-processor-generated styles.odt for odtwriter use: Drop page size
spe... | [
"Nicholas@laptop3.(none)"
] | Nicholas@laptop3.(none) |
9080d6164517c531b27f66114ab24c4a8cf48b36 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nndefuncti.py | d2b86d5cda1d67fe06985c463ff2fa7370442948 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 45 | py | ii = [('MarrFDI2.py', 1), ('AinsWRR2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
a2968392178d1ce10fc6302bc45b2d7f3beb09d2 | 001ef10d0e0e021a581d7239f1cfd77e510aa010 | /leetcode/two_number_sum.py | 9567bde0430023dbce95a8c60d702c22cd2a20ab | [] | no_license | scopier/interview | d5bfc62aa2d00ec7d3fa2133104ad3db0f19803c | 71d475b5273cf7126f5f9fb030c10a16ec9568dd | refs/heads/master | 2020-04-06T15:31:11.581761 | 2019-03-12T05:43:09 | 2019-03-12T05:43:09 | 157,581,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | # -*- coding: utf-8 -*-
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
'''
给定 nums = [11, 7, 2, 15], target = 9
因为 nums[0] + nums[1] = 2 + 7 = 9
所以返回 [0, 1]
'''
class Solution(object):
def TwoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: ... | [
"haw526@163.com"
] | haw526@163.com |
c72e527fa948a62c592a5ce401ebafc9fac21c6e | 99601fc5007ec55de61b89452a703d5ae1fbde90 | /test/src/Routes/responses.py | cded4268876bfbe3cd42a4dd1b2ebf834013b062 | [] | no_license | bellyfat/openapi-fastapi-codegen | 93e5a5e2599e92cb3281e66a39abe7217dc1c569 | b9a9e0e7798356797a2588e12dac7e3d956841b3 | refs/heads/master | 2023-03-19T10:47:09.040359 | 2020-03-31T13:37:33 | 2020-03-31T13:37:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | #Dummy content for now | [
"19310012+curious-discordian@users.noreply.github.com"
] | 19310012+curious-discordian@users.noreply.github.com |
6116edff49c0d2ab8922cd6f2018f00da62c3cd7 | 96ca0803aaf92a93c9d117ec3575202d84645c67 | /exercise/Algorithm/binary-searh-二分查找.py | 3774db5186427baf1439c472fc0bd6c3f44e6cf1 | [] | no_license | PAYNE1Z/python-learn | 4994f1be5e95d80ed5083dceef7c8e45f406d7bf | 7f984fbfcb7152a055d4bc67ca0a7d64a52ce125 | refs/heads/master | 2020-05-17T10:00:34.236287 | 2020-05-01T15:23:38 | 2020-05-01T15:23:38 | 183,647,555 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
#
# Author: Payne Zheng <zzuai520@live.com>
# Date: 2019/10/30
# Location: DongGuang
# Desc: do the right thing
"""
二分查找:
又叫折半查找,从有序列表的初始候选位区list[0:n]开始
通过对待查找与候选区中间值的比较,可以使候选区减少一半
时间复杂度:
""" | [
"payne1z@gamil.com"
] | payne1z@gamil.com |
1245d6644a8b73ef5a4a76e8444bb1d48f3fd33b | 5ae6e2df7a709d539805b2dda721cb8c360bce60 | /Computer Vision/proj2_part2_release/proj2_code/data_transforms.py | 73fa3ddba88128ad43cb9f49263d63cf5d7ba7a0 | [] | no_license | karan-sarkar/GT | 299040e988a5560db4d0afcfc03b34eaddda63fd | bc48e09844c70f28fc82cdbead405219a964f5aa | refs/heads/master | 2023-02-26T23:08:37.648401 | 2021-01-28T23:31:14 | 2021-01-28T23:31:14 | 332,854,663 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,655 | py | '''
Contains functions with different data transforms
'''
from typing import Tuple
import numpy as np
import torchvision.transforms as transforms
def get_fundamental_transforms(inp_size: Tuple[int, int],
pixel_mean: np.array,
pixel_std: np.array) -> tran... | [
"karan@sarkarfamily.org"
] | karan@sarkarfamily.org |
0e938e93838f84bfbdf4beeab332d41732741cf7 | 5395bd8757604f9276e628a4f5a76ebb885b93f3 | /register_form/urls.py | 39a54a56e977737358617fd08f87b416c58ddffb | [] | no_license | tweenty247/contact-forms | f458d0a0346b172a375432916b882a95bc4e4a57 | 22e8827918987bf3a10026afed7b0902075761a8 | refs/heads/master | 2022-12-24T10:18:58.086593 | 2020-09-30T00:40:05 | 2020-09-30T00:40:05 | 298,939,474 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='home'),
path('view_data/', views.view_data, name='view_data'),
path('view_data/<str:data_id>/', views.detail_view, name='detail_view'),
path('register/', views.register_page, name='register'),
path('login/'... | [
"ndipdesmond247@gmail.com"
] | ndipdesmond247@gmail.com |
eca5bdd43bfddb4fcf2ec3f531a88e34f95367e3 | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/gray_code.py | 6ce2eab742b5e9bc78d48ca6956f112813276ac6 | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code.
A gray code sequence must begin with 0.
Example 1:
Input... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
6a1af44773225247e3967367ec93ca1a38f47605 | 02faf7e7cb13ce50618bb27a249927ad6ac1a766 | /Stackedbarchart_year_plots.py | 9dd75d6db1dbfa50bba03c6985e2393e3cf4d4a0 | [] | no_license | kagate/ECE143Project | 656ae9e79c3fd4e5ca67a29b66bc678e555d3fd6 | bf049f2b9d195ba4348cc476c2a789312399be72 | refs/heads/main | 2023-03-23T12:55:33.923390 | 2021-03-14T07:51:14 | 2021-03-14T07:51:14 | 336,631,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,849 | py | import csv
import numpy as np
from collections import Counter
from collections import OrderedDict
import pandas as pd
import matplotlib.pyplot as plt
from wordcloud import WordCloud
import itertools
import random
tvdf = pd.read_csv('data/TV_shows_all_features.csv', converters = {'Timestamp':str})
moviedf = p... | [
"noreply@github.com"
] | kagate.noreply@github.com |
c5acf735f5da63f5574a9e0ba6bcecb255c89fa2 | 27949ae0c7715b854a1446ab53caa5704b52b2ab | /starcatalogue/apps.py | d54b255ef92e0bbe7ada0a7ec72e3e4b412fa2c6 | [] | no_license | hughdickinson/vespa | ef2f3e0a60e0a499241d823e57881cffa4d2f918 | c010fcddf3109f819c2427bb00376fd39931ea7b | refs/heads/main | 2023-07-12T22:55:52.275994 | 2021-08-12T11:20:45 | 2021-08-12T11:20:45 | 380,263,335 | 0 | 0 | null | 2021-06-25T14:28:20 | 2021-06-25T14:28:19 | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class StarcatalogueConfig(AppConfig):
name = 'starcatalogue'
| [
"adam.mcmaster@open.ac.uk"
] | adam.mcmaster@open.ac.uk |
27d1e44a6666fc9abb9b76c217e2f8a593a8ae1b | 4d811bfef124744914b43bf1f5307b816202a59b | /imersaoDados3/aula4.py | 4d38df6e80dcb7767f1f8bf81c7c51e3c6c37c88 | [] | no_license | bruzt/alura | 650b61aabaf4bf7312580e82b31282c0c0363c37 | 9ba6772f7b6cfbf93f842b43b1de0fbbb3384fb1 | refs/heads/main | 2023-05-03T05:41:31.919068 | 2021-05-10T13:03:15 | 2021-05-10T13:03:15 | 366,044,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,136 | py | import pandas
import matplotlib.pyplot as pyplot
import seaborn
seaborn.set()
def main():
dataCSV = './dados_experimentos.zip'
resultCSV = './dados_resultados.csv'
dataframe = pandas.read_csv(dataCSV, compression = 'zip')
resultDataframe = pandas.read_csv(resultCSV)
columnsMap = {
'drog... | [
"bzutim@gmail.com"
] | bzutim@gmail.com |
0df6e902a9fd1318fc25887d137bc57f0492053e | 43b7c22e6123049e00100479789358ce91e4391a | /run.py | d6762eda61399de5fbc39829becfae5451ce0c5e | [] | no_license | caullla/differ | 523390ff4c3f3e107be15a2cee21567081e21eaa | 4dac92cc03e649def7e13e34afd3ebf14c48a918 | refs/heads/master | 2021-01-15T12:32:25.971762 | 2016-09-15T15:24:41 | 2016-09-15T15:24:41 | 68,303,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 701 | py | import argparse
from argparse import RawTextHelpFormatter
from differ import find_matches
parser = argparse.ArgumentParser(
description="""
Display diff between two lines.
Example:
old: "same_prefix_12533_same_suffix"
new: "same_prefix23123_same_suffix"
result: "same_prefix(_)[23]12(53)3_same_s... | [
"bsorokind@gmail.com"
] | bsorokind@gmail.com |
af7906d5404a712d89d9d4797f70c6ef769cd308 | 964e2271f88f329dd1424476c78268413e822a42 | /py3/lib/python3.4/encodings/iso8859_2.py | ab16dc3360606daa439573ecee320ecee4f564da | [] | no_license | LukaszMalucha/test-REST | af06152d01e2a9849cea86f622cc75ba783aa80e | d7b7784d8706b8bc30ecf4d17f6d78135be8999f | refs/heads/master | 2020-04-24T23:32:51.914750 | 2019-02-25T19:03:47 | 2019-02-25T19:03:47 | 172,347,961 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | /usr/lib/python3.4/encodings/iso8859_2.py | [
"lucasmalucha@gmail.com"
] | lucasmalucha@gmail.com |
b84407e49085f58b343b9ab3aa036319fe283f8e | 71c451b64c2ea2b46e8392ba9d2eedddf9e39931 | /src/bullet.py | 4877f8f655b794b90311802f873eafc22ce712a5 | [] | no_license | yechang666/alien_invasion | edbe78cb9ea6332e1951805015b4abc92fa563b7 | 72eb4dc67002de39f4dae768ee21029eb0c83a83 | refs/heads/master | 2020-06-22T09:27:43.402941 | 2019-07-19T02:49:54 | 2019-07-19T02:49:54 | 197,690,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | import pygame
from pygame.sprite import Sprite
class Bullet(Sprite):
"""一个对飞船发射的子弹进行管理的类"""
def __init__(self, ai_set, screen, ship):
"""在飞船所处的位置创建一个子弹对象"""
# super(Bullet, self).__init__()
super().__init__()
self.screen = screen
# 在(0,0)处创建一个表示子弹的矩形,再设置正确的位置
se... | [
"603654962@qq.com"
] | 603654962@qq.com |
6fc94bbcbaa623612216aace862e5e9e234a24ca | d00546ba836865e9631ea9c26e0777d22cfe3252 | /algorithm_reading/deketesila.py | 0b765fb750e6fb7a94cef5ba274154478e7f0714 | [] | no_license | JiangChenrui/MyAlgorithm | 6f69eaa83f6e5dda9b6b151e7d0cda74bdb5b004 | 539d9fcb8d8ac0ff26f0f9aa6a736eb77d4cd61a | refs/heads/master | 2021-07-08T05:14:00.216387 | 2020-07-28T10:56:05 | 2020-07-28T10:56:05 | 163,060,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,124 | py | graph = {} # 定义一个散列表
graph["start"] = {}
graph["start"]["a"] = 6
graph["start"]["b"] = 2
# print(graph["start"].keys())
graph["a"] = {}
graph["a"]["fin"] = 1
graph["b"] = {}
graph["b"]["a"] = 3
graph["b"]["fin"] = 5
graph["fin"] = {}
infinity = float("inf")
costs = {}
costs["a"] = 6
costs["b"] = 2
costs["fin"] =... | [
"1102592323@qq.com"
] | 1102592323@qq.com |
60d9b61ace48b12a6f5d2ce427eca6599026bbad | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Dilepton_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Dilepton_pseudoscalar_LO_Mchi-1_Mphi-300_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Dilepton_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_20000_3_cff.py | f57b73c98f43fb763b2627860df280521ec155b5 | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,714 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:2088', '1:3114', '1:3707', '1:5434', '1:5498', '1:701', '1:790... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
c96d31a4bf777afa1ceb0ef7f5a61847e201e57d | bcd6461fb9c57a079b7dcd2bb5548fa3329c0313 | /helloworld/helloworld/helloworld_pb2.py | a152c547076c1f7e7f4074cf2409526a1694774a | [] | no_license | alraddarla/devfest | 34a8d67031f5654ee5d452a4e4f6ac236f658252 | 5651b0bc0ec607519f96d5bac99421a41f3b4a4c | refs/heads/master | 2020-07-30T01:51:18.607973 | 2019-09-28T01:27:41 | 2019-09-28T01:27:41 | 210,045,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 3,906 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: helloworld.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf ... | [
"darla.ahlert@slalom.com"
] | darla.ahlert@slalom.com |
ca2ccff66e5cc7d708a61dc99b2b6dc6a92a3168 | 85e9d84741525eee56c7aa34965d564605a5cf28 | /gites/db/migration/versions/e0a7b7c77f1_add_heb_url_column_a.py | 26d857369f78833f5dc157d1cc099d594e1ee7be | [] | no_license | gitesdewallonie/gites.db | 312d2451762f58cfd4736031c09c2d0018dc95f7 | 1dad7f30849b8c4b2d928e54718a7f097dbb06d5 | refs/heads/master | 2020-04-06T10:03:38.030086 | 2018-09-12T22:53:21 | 2018-09-12T22:53:21 | 6,581,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | """Add heb_url column and migrate pro_url URLs
Revision ID: e0a7b7c77f1
Revises: aeda2ec17de
Create Date: 2014-02-17 15:10:11.349201
"""
# revision identifiers, used by Alembic.
revision = 'e0a7b7c77f1'
down_revision = 'aeda2ec17de'
from alembic import op
import sqlalchemy as sa
def upgrade():
print "... Add ... | [
"lasudry@gmail.com"
] | lasudry@gmail.com |
10692e00809fb77e0f0a1cce27951fe763e13743 | 85671094e4f1c1f221ff078faea3ee9f93795b57 | /examples/adwords/v201309/basic_operations/delete_keyword.py | 64266d2b93609044bb358368758b9d35170332ef | [
"Apache-2.0"
] | permissive | jdilallo/jdilallo-test | 63631c96c8070c60ce7c07512aa51f370d8fbadf | 8fb9bf43e7c99d5cb198c5587897f8b2514ca4c0 | refs/heads/master | 2020-05-18T15:35:37.264949 | 2014-03-04T18:19:31 | 2014-03-04T18:19:31 | 14,376,457 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,052 | py | #!/usr/bin/python
#
# Copyright 2014 Google Inc. 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 b... | [
"api.jdilallo@gmail.com"
] | api.jdilallo@gmail.com |
2f22e7ea87fa7dccc10b05b66d9a69b288f8d3e8 | ac2376c1974cbcb539e7bf91aac507f2dc31f4a9 | /yufuquant/users/views.py | c837487a29405236cf05dd49890e04cbc48eeca8 | [] | no_license | sz982005/yufuquant | c2eceb0717b0d133583e7181cb2a396bc116a72a | d4612bcd31aeb0160fbcbf729a4e056ee48871cc | refs/heads/master | 2022-11-20T10:15:03.790657 | 2020-07-12T07:52:08 | 2020-07-12T07:52:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 449 | py | from rest_framework import status, viewsets
from rest_framework.decorators import action
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from core.utils import KeyHelper
from .models import User
from .serializers import UserSerializer
class UserViewSet(viewsets.Ge... | [
"zmrenwu@163.com"
] | zmrenwu@163.com |
ce5dbcd90cbf66fb0dfa573927bb7bbf946fedf3 | 0e968afac46cf750ef8478559119884c5f001028 | /software/defs.py | cb674f50934ac389b56098b1d465dbd6f200fe8f | [] | no_license | robertdkingjr/lilipad | d8f3ad4abb8c1301e32573ae90139acc1c1e6861 | 22087d8cf48675aa5ead8df98809356b4363107e | refs/heads/master | 2023-03-30T12:20:16.746732 | 2021-03-28T07:05:40 | 2021-03-28T07:05:40 | 258,855,444 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,538 | py | """
IC-specific constants to make code and analysis human-readable
"""
# Device addresses
IDT_P9242_ADDR = 0x61 # Power TX
IDT_P9221_ADDR = 0x61 # Power RX
BQ25895_ADDR = 0x6A # Battery charger
BQ27750_ADDR = 0x55 # Battery fuel gauge + protection
# V2.0 Additions
STUSB5400_ADDR = 0x28 # USB-C controller
I2C_MUX... | [
"robertdkingjr@gmail.com"
] | robertdkingjr@gmail.com |
7bef615e585f9959e71fea70611ceca39c4562fe | 56102e437947a0402ceb547e3832b203b78288df | /sentiment_analysis.py | 2dbfe5dd81accabfe8662794fd2fe849572c06ac | [] | no_license | AhmedhakeemA/Sentiment_Analysis_twitter | 9f9b80418cffa4dd976edf7c8acfa7c500382e2e | dd82eb4ad77b835fa8012ac7ac453fa03878e96e | refs/heads/master | 2021-08-06T17:40:40.329390 | 2017-11-06T16:43:41 | 2017-11-06T16:43:41 | 109,722,023 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 485 | py | import tweepy
from tweepy import Stream
from tweepy import OAuthHandler
from textblob import TextBlob
consumer_key=""
consumer_secret=""
access_token=""
access_token_secret=""
auth = OAuthHandler(consumer_key,consumer_secret)
auth.set_access_token(access_token,access_token_secret)
api = tweepy.API... | [
"noreply@github.com"
] | AhmedhakeemA.noreply@github.com |
0fad036970169655bb62387d1f5c801fb7b01d0b | aa4ae4d85de0b9c3508e540b5c6603b1b99169fd | /Python/0_algorithms/hw_6/sum_memory.py | 1dc6108332c4c79301b6c9dae706067cd98019c7 | [] | no_license | gkitg/edu_tmp | b81842110982a11d78bdc7e0a01ff1755f32df34 | b06ea10ad3eb1e701efda7823e752ea90b781770 | refs/heads/master | 2023-07-08T20:48:39.464203 | 2020-03-27T02:40:33 | 2020-03-27T02:40:33 | 250,424,514 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | # Подсчитать, сколько было выделено памяти под переменные в ранее разработанных программах
# (в рамках первых трех уроков)
import sys
class SumMemory:
def __init__(self):
"""
_sum_memory - общее количество занятой памяти
_types - словарь вида {'type': [count, size]}
"... | [
"gkritsv@gmail.com"
] | gkritsv@gmail.com |
4eb31def5f6a7aef9cfa927e15fb39426a987948 | f983c2997527dfbf3ce167fe4d625674b591ad5e | /black jack/BlackJack.py | 1ee5f521e7223961207d2061973885d3ca601a81 | [] | no_license | silvionetto/python_bootcamp | df03f7eee030857a8f6e1d71578f129c5990f01a | 0eeaecec75ada733ab0df78d8e6c249b49ff5709 | refs/heads/master | 2021-09-15T04:21:09.841973 | 2018-05-25T18:39:26 | 2018-05-25T18:39:26 | 109,581,626 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,934 | py | # Used for card shuffle
import random
# Boolean used to know if hand is in play
playing = False
chip_pool = 100 # Could also make this a raw input.
bet = 1
restart_phrase = "Press 'd' to deal the cards again, or press 'q' to quit"
# Hearts, Diamonds,Clubs,Spades
suits = ('H','D','C','S')
# Possible card ranks
ran... | [
"silvio.netto@gmail.com"
] | silvio.netto@gmail.com |
d768db9773a27a11710c45b9bf7f0c638a3fde4d | ff9b343bb5c9cc205c0af90fe61107bbb35b903f | /dpl/services/service_exceptions.py | 86734cc04a9336cf2b071ea928650a7eae389b60 | [
"MIT"
] | permissive | s-kostyuk/everpl | f5c85f554505976cf8e731152bfce8f5efab2fab | 029ee77d8512aeda1e15b486642db9692234f0cc | refs/heads/devel | 2021-01-15T19:06:33.840108 | 2018-05-30T21:15:58 | 2018-05-30T21:15:58 | 99,808,875 | 0 | 1 | MIT | 2018-08-17T07:55:44 | 2017-08-09T13:01:55 | Python | UTF-8 | Python | false | false | 1,306 | py | class ServiceValidationError(Exception):
"""
Exception to be raised on any Service validation errors
like object resolution failure, invalid arguments, invalid
combination of arguments and so on
"""
pass
class ServiceEntityResolutionError(ServiceValidationError):
"""
Exception to be ra... | [
"contact@s-kostyuk.me"
] | contact@s-kostyuk.me |
62052244d10605892da110ccb1770c51fdde5452 | 8b475dbda4bbd8f27dbbb36655dcbcc92f9d4447 | /venv/bin/alembic | 023b7649f2e1145ab79ec20bad922a6891ced6b4 | [] | no_license | DamianWasilewicz/hear-hear-all-about | 98e30354eeba9d599238f00ea2b68fcde66048c4 | f6bd9e52b5290c8cbe93912517eed6e4836eef51 | refs/heads/master | 2020-03-25T19:24:27.113520 | 2018-08-12T00:10:22 | 2018-08-12T00:10:22 | 144,081,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | #!/Users/emiliawasilewicz/Playground/AboutMe/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from alembic.config import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dwasilewicz@stuy.edu"
] | dwasilewicz@stuy.edu | |
d0dc50f46acf5c0f22646d27292cb73a4454f0cc | 816efac2849e4507136cc792bdd47fa242577e5d | /app/models.py | 2ab7ab143c101fc4e86aff96775e1e9eef7a44eb | [] | no_license | ange123ux/pitches | 9ddc28544d5e73df1268f91b823e7434e8fc5c79 | 0b29c1b2e00860e2bcdf4e12986d712db3a3a268 | refs/heads/master | 2023-01-30T11:22:05.159520 | 2020-12-10T08:18:39 | 2020-12-10T08:18:39 | 320,083,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,992 | py | from . import db
from werkzeug.security import generate_password_hash,check_password_hash
from flask_login import UserMixin
from . import login_manager
from datetime import datetime
from flask_migrate import Migrate
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(... | [
"uuwange@gmail.com"
] | uuwange@gmail.com |
558ba665fa81c5d38ff924a2fab4548fe5ecf8a5 | 457e2f5b2a26877df739e314ec1560e8a3ecfb97 | /controllerMaker/backUp/previous/controllerMaker_local.py | 073fcde65a40c498455a4b5263b2d89d5a0c977f | [] | no_license | mappp7/tools | f6685d9a682bd540d59c1bff0cebb60f79fd6556 | c537e7648112c51ba4f44225418e773ee6b8be6c | refs/heads/master | 2021-01-14T16:40:44.450790 | 2020-10-30T05:30:27 | 2020-10-30T05:30:27 | 242,682,763 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,833 | py | #encoding=utf-8
#!/usr/bin/env python
#-------------------------------------------------------------------------------
#
# Dexter Rigging Team
#
# yunhyuk.jung
#
# 2015.12.23.v01.w03
#-------------------------------------------------------------------------------
import os
from PySide import QtCore, QtGui
... | [
"56536931+mappp7@users.noreply.github.com"
] | 56536931+mappp7@users.noreply.github.com |
d35d7b188a7ae314f76b7565b28f51f37670220f | debedcda7269c54a659334b16e6cda8894a74956 | /graphQL_demo/venv/bin/pip3.6 | 4800ae3a11a12e39ba8494f9f0105413381e0fb3 | [] | no_license | SunA0/django_vue_graphql_demo | aa8bf4b42706ea2cc8a24707fa40e73c188675f3 | c977ee86803035fce6000d4c59b870d653a7e277 | refs/heads/main | 2023-02-25T00:01:04.652833 | 2021-01-31T06:20:29 | 2021-01-31T06:20:29 | 334,587,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 267 | 6 | #!/Users/sunao/Desktop/workplace/py/graphQL_demo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"2534658059@qq.com"
] | 2534658059@qq.com |
2f41e14b487bc440e99e1ab684bed8c00f801b11 | bcc13226e7a65526ce32900b8be709ba4db858d9 | /manage.py | 36e0cb56abc3034d6a7b0fa107a333deae24ebbc | [] | no_license | SouravSehgal-3009/Almanac-To-Do-App | 64f22e03abd21b2141819bb1a1b186b6b61e3682 | 9b36f1b9e89c948184ef19568b9139f205bd25e9 | refs/heads/main | 2023-04-25T21:06:46.311984 | 2021-05-11T16:57:06 | 2021-05-11T16:57:06 | 366,161,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'AlmanacProj.settings')
try:
from django.core.management import execute_from_command_line
... | [
"noreply@github.com"
] | SouravSehgal-3009.noreply@github.com |
29ee67fb1fbbdddf5e60683444ccad89f6cef6fc | d264512ad6a5eb057fbcf69c592a21838626e5a4 | /Django/TestProj/NewsApp/models.py | ee33815920c2bceb198782609ef380280b7cdd20 | [] | no_license | mohamed-elghayesh/LearningPython | 8c2e34d71c22ee8db3e05027e9a310d59b086b07 | 4dea107d0d29a2ed372c2dc6ab7ff6cf980f88b3 | refs/heads/master | 2022-03-29T06:10:23.391938 | 2020-02-02T02:35:40 | 2020-02-02T02:35:40 | 229,644,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | from django.db import models
from django.utils import timezone
# Create your models here.
class News(models.Model):
author = models.CharField(max_length=30)
title = models.CharField(max_length=30)
description = models.TextField()
pub_date = models.DateField(default=timezone.now())
def __str__(sel... | [
"mohamed_elghayesh@hotmail.com"
] | mohamed_elghayesh@hotmail.com |
6f2cb6ed11cacaac0d3f8767d5aa8e2afe616179 | e793d7f391b73fc21370b0186d7e2ec92f17f662 | /Metal Machining/threshold.py | 1741c8bc18c73655d569a65bff9bc824db305b22 | [
"MIT"
] | permissive | jimmyiskandar/Manufacturing-Data-Science-with-Python | d3240fac6e99b2f968ca6ebc76ea67eee5fafc2a | f7da6f1202369865d6a226fc9f40c0103eb32b4c | refs/heads/master | 2023-05-30T12:18:24.221891 | 2021-06-10T00:46:12 | 2021-06-10T00:46:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,970 | py | import numpy as np
import datetime
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd
import random
import seaborn as sns
import tensorflow as tf
# from tensorflow import keras
from sklearn.metrics import (
confusion_matrix,
roc_auc_score,
roc_curve,
precision_recall_curve,
... | [
"tvhahn@gmail.com"
] | tvhahn@gmail.com |
5ec401fbb61cb9a6aac47e4ce6e72393eb9dc548 | 8f5c1ad76f3f9aa67d6720154b4884c9fab2ecbc | /toontown/hood/PetShopFishAnimatedProp.py | cfa7423e6d06f1ba99c52580692e589e2bbc574a | [] | no_license | RegDogg/ttr-2014-dev | eb0d9da3e91b9504b83804c27e1a00d87a0b7220 | 8a392ea4697cf15bd83accd01dcf26d0f87557eb | refs/heads/master | 2023-07-13T02:40:56.171517 | 2021-07-12T00:31:28 | 2021-07-12T00:31:28 | 372,103,145 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | # Embedded file name: toontown.hood.PetShopFishAnimatedProp
import AnimatedProp
from direct.actor import Actor
from direct.interval.IntervalGlobal import *
class PetShopFishAnimatedProp(AnimatedProp.AnimatedProp):
def __init__(self, node):
AnimatedProp.AnimatedProp.__init__(self, node)
parent = no... | [
"regdogg.acr@gmail.com"
] | regdogg.acr@gmail.com |
fc818d67d52221705f850674dcad1888e453e321 | 38f4b651ebcf4b9077acd559c22c1f75c4e6d939 | /ut_shapes.py | 9546a9f50b45b8d600b10093af71e94448697e30 | [] | no_license | sonir/vsyn_model | c151cd3e8156bc7fc0521c0d52c1e6ddf7b8e62c | 9ef58f1b22b50cb89ed01099d61535bb3edb5568 | refs/heads/master | 2021-06-26T07:46:39.487281 | 2017-09-13T17:06:17 | 2017-09-13T17:06:17 | 103,424,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | import time
import shapes, shape
circle1 = shape.Shape("/circle" , "circle1")
rect1 = shape.Shape("/rect" , "rect1")
shapes.add(circle1.name, circle1)
shapes.add(rect1.name, rect1)
shapes.print_all()
#Check set UID
tupple_adr_and_params1 = shapes.get_primitive(circle1.name)
tupple_adr_and_params2 = shapes.get_primit... | [
"isana@sonir.jp"
] | isana@sonir.jp |
6497f137a0c3de6b440d8751a8b1e6d554803560 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/typeshed/stubs/boto/boto/ec2/__init__.pyi | d44f942d0a2e7b5052a77707711d3e1ba30d8501 | [
"Apache-2.0",
"MIT"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 256 | pyi | from typing import Any
RegionData: Any
def regions(**kw_params): ...
def connect_to_region(region_name, **kw_params): ...
def get_region(region_name, **kw_params): ...
# Explicitly mark this package as incomplete.
def __getattr__(name: str) -> Any: ...
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
2c82ca6107153d5ef7927920823fd5a9d41fbbc3 | 5393bf7d697f52000004c32920366905f6996317 | /player.py | 1852748b7cb1d44b706f3b00b9b0e0d67aa90944 | [
"MIT"
] | permissive | eshwaric/EshwariShoreDitchAIPlayer | f57b85bedb5d7a6d6e6493d3a663bd9129d36bdd | 651fad8a252b21e3d2d347ccac225160705dafca | refs/heads/master | 2020-04-12T19:23:58.197199 | 2012-06-06T08:57:56 | 2012-06-06T08:57:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,228 | py | #############
### Sample AI
#############
from bottle import post, put, delete
from bottle import request, abort, run
from storage import use_db
import logic
import config
import thread
from game import Game
def use_game(f):
def inner_func(db, session_id, *args, **kwargs):
g = db.get(session_id)
if not g or no... | [
"eshwari.chandrashekhar@gmail.com"
] | eshwari.chandrashekhar@gmail.com |
6f0c296a01a3863aa2b196656efd511bba6ad1a0 | 0c08440aa95254553b4654717afd1ad85b48b6d2 | /MAPS-K64/MAPS-K64_1.0.0/rtos/mqx/tests/autofrm/utils/board/web_interface/web_interface/settings.py | b09ebb53b9f0d6c2a10bd3f2f0453ad828a2d711 | [] | no_license | maskedbaby-ch/wav-sai | 24a3c47766f1f1b915cdf3f8a43d91dedd9d57f1 | b5896eeb962765eb85d9aab5d56652fed30e8ae7 | refs/heads/main | 2023-03-19T15:27:27.014728 | 2021-03-15T05:53:04 | 2021-03-15T05:53:04 | 343,657,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,625 | py | # Django settings for web_interface project.
from os.path import join,dirname,realpath
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql'... | [
"79893501+maskedbaby-ch@users.noreply.github.com"
] | 79893501+maskedbaby-ch@users.noreply.github.com |
b4cf0c3c74b3be6c58ac637b5a6e6d4b0c2125da | 72cfe315a93a8690eba1e45e99ad97443583e112 | /blog/tests.py | 6db9188d9525dc53715fe2f7a3dc27ec199151c6 | [] | no_license | Leenhazaimeh/drf-api-permissions-postgresql | 0acc4a7d411d5d43ffe2eb2b9c9a4854e6293edb | 93844554e67cd3cd15b6b2c3e36a88c92f19e654 | refs/heads/main | 2023-08-06T09:40:49.277859 | 2021-09-23T12:46:07 | 2021-09-23T12:46:07 | 403,747,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | from django.test import SimpleTestCase
# Create your tests here.
from django.test import SimpleTestCase
from django.contrib.auth import get_user_model
from .models import Blog
# Create your tests here.
class BlogTests(SimpleTestCase):
@classmethod
def setUpTest(cls):
testuser = get_user_model().ob... | [
"leenhazaimeh94@gmail.coom"
] | leenhazaimeh94@gmail.coom |
72ca94b7a92ec3c0b145f188f8195d91a5a65829 | e52f86939d7c6f40836a77a9e79a2b6723342e5a | /base/5May/5_27.py | 42b3b8293a995cc56865582f2b5cd1b665a0052f | [] | no_license | GitHub-fly/ubuntu-python | c5a9a749dcb15f69202c3f4455f89e7ecb97132a | 6a63467c2ca9e00abef838963f3af49f57605091 | refs/heads/master | 2022-10-04T08:13:51.631717 | 2020-06-06T06:14:58 | 2020-06-06T06:14:58 | 250,284,578 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 941 | py | """
Pandas_1
"""
import pandas as pd
# Pandas 读取 URL 路径的文件,得到(149 rows x 5 columns)的数据集
result = pd.read_csv(
'https://archive.ics.uci.edu/ml/machine-learning-databases/iris/iris.data')
print(result)
# 创建并保存数据
d = {'id': [1, 2], 'name': ['gz', 'lh'], 'age': [10, 12]}
df = pd.DataFrame(d)
# test.csv 文件分割符为 \t,如果使用 s... | [
"1224178565@qq.com"
] | 1224178565@qq.com |
86e9d51110a4c58c0953629da6780c688fe361bf | 06dca5ec0ac9cdcbc42171795c067300bebea24b | /project_python/resource/practive_01.py | 7a7bfce0330e043ee13156722e43b0c495d2c8d5 | [] | no_license | quangdt/plan_come_on_baby | 0a9dd76feceb1323c22c33586687accefb649392 | c26b0ea98b9649fc8d5c61865a2dfdc829324964 | refs/heads/master | 2021-01-18T13:54:19.176897 | 2015-09-22T01:40:33 | 2015-09-22T01:40:33 | 38,100,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | #-*- coding: utf-8 -*-
print "Hello World!"
print "Hello Again"
print "I like typing this"
print "This is fun."
print 'Yay! Printing.'
print "I'd much rather you 'not'."
print 'I "said" do not touch this.'
print "đây là bài thực hành đầu tiên của bạn quang về python đó nhé" | [
"quangyeuthuong@gmail.com"
] | quangyeuthuong@gmail.com |
5aff19891319b763427195d192fe0dff6f8083da | 658f0b6b6de562c0f82b9a53b015098034aaa873 | /venv/bin/jp.py | b5c55b8b97cfc1c4bb1d226fd4f6fbc19b9a7b8f | [
"MIT"
] | permissive | Asko-Dev/File_Upload_RESTAPI | b5bd3c647bec53179247cc2a454d34737f66a3e2 | 4effc6fa515668a1e6367b0e61ebcf7e21576884 | refs/heads/master | 2022-12-07T02:02:11.690833 | 2020-04-08T13:21:42 | 2020-04-08T13:21:42 | 253,655,450 | 0 | 0 | MIT | 2022-11-22T05:50:28 | 2020-04-07T01:21:33 | Python | UTF-8 | Python | false | false | 1,715 | py | #!/Users/adelaskotak/Artinii/Artinii_Test/venv/bin/python3
import sys
import json
import argparse
from pprint import pformat
import jmespath
from jmespath import exceptions
def main():
parser = argparse.ArgumentParser()
parser.add_argument('expression')
parser.add_argument('-f', '--filename',
... | [
"skotak.adela@gmail.com"
] | skotak.adela@gmail.com |
93c7c4a369218136fd73eee83cbb74926c884a46 | 428c1900f0a3d82fea5b5a7fcd5d93d4ca131fcc | /whmonit/client/sensors/check_imap/linux_01.py | 3c73584867105a4e4ad0a13c771eaee17f8ca78a | [
"Apache-2.0"
] | permissive | whitehats/monitowl-agent | 4a9a6dd98ef140be7f4066ee3526e2edd8a235ab | d3c36672bf444a4ab9a285f32c11a4ac3d2bda31 | refs/heads/master | 2021-01-17T10:07:27.159734 | 2016-04-26T23:53:57 | 2016-04-26T23:53:57 | 18,549,162 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Check IMAP sensor.
'''
import re
from timeit import timeit
from imaplib import IMAP4_SSL, IMAP4
from whmonit.client.sensors import TaskSensorBase
class Sensor(TaskSensorBase):
'''Sensor class checking for IMAP connection.'''
name = 'check_imap'
streams = ... | [
"wozniakk@gmail.com"
] | wozniakk@gmail.com |
59ac7fedaca73182d109c53b312ce8fc42967e04 | 50680f14f8eb389707159cffc6fcc77b01c7179f | /punctuation.py | 93879e42cc4b022101e8710c0765d91268d55a06 | [] | no_license | liujia92/punctuation_prediction | 17b4c563cee059c4a9316a7c9d5494a99b3c40de | f3700cab04d7b89dc8495b4cee98a98a7ca9973f | refs/heads/master | 2021-08-31T01:11:22.221684 | 2017-12-20T03:07:46 | 2017-12-20T03:07:46 | 114,542,782 | 6 | 2 | null | null | null | null | UTF-8 | Python | false | false | 21,840 | py | import re
import sys
import os
import logging
import datetime, time
import numpy as np
import tensorflow as tf
from collections import Counter
from keras.preprocessing.text import Tokenizer, text_to_word_sequence
from keras.preprocessing.sequence import pad_sequences
from keras.utils.np_utils import to_categorical
fro... | [
"2424869645@qq.com"
] | 2424869645@qq.com |
7aed17b79fb8957d4f7963a4daad9fc7f17fea32 | 88051b16d3bd0d373899f4c797aabb6cfbc19706 | /mysite/blog/urls.py | f587fce3283a2c28a6f14367e54821c6dda8a69f | [] | no_license | mepky/hands-in-django | 8fbcc8d74bd9b51d5c9f70d960256ae0f3ff0184 | 45eb3b9dac9e2319d444dcbc358c81f1b9bedb5d | refs/heads/master | 2020-06-19T18:05:26.692995 | 2019-07-14T08:59:20 | 2019-07-14T08:59:20 | 196,814,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.conf.urls import url,include
from django.views.generic import ListView ,DetailView
from blog.models import Post
urlpatterns=[url(r'^$',ListView.as_view(queryset=Post.objects.all().order_by('-date')[:25],template_name='blog/blog.html'))]
| [
"noreply@github.com"
] | mepky.noreply@github.com |
2b346b721c9ba4a742bcd85d1fb430a3c403bc64 | a73bdd5bdb3aafbcc84836c93dcefa8929d43b79 | /modules/images/classification.py | 4b0a9a7d2e98294be7f63f63c67cbef12c73c967 | [] | no_license | dl4d/dl4d | 39bfa89419c539320edc158a605f04f186af5a93 | a3be28c442fd89cc13bd0ae3287f2bc487a5439a | refs/heads/master | 2020-04-25T03:44:24.165374 | 2019-02-26T09:08:51 | 2019-02-26T09:08:51 | 172,487,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | #DL4D images object
import pandas as pd
class classification:
def __init__(self):
self.dataframe = None
self.X = None
self.Y = None
def load(self):
| [
"siltoon1@gmail.com"
] | siltoon1@gmail.com |
132c75972ab0f198e23e7cb6abc75d04de947291 | 166805c496049f4c25e9022353f6388cedfc05e2 | /tensorflow/python/framework/extension_type_field.py | 1fc104209fe0b9b1fa18be98e75dc3131a558036 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | sobhanbera/tensorflow | 437e2e92214dd066b9a9e2b4519c67c3cb4fb38a | 408393e170624ed79c4a607b3b880c458354ec88 | refs/heads/master | 2023-07-29T19:23:16.962345 | 2021-09-13T16:10:42 | 2021-09-13T16:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,514 | py | # Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
df5b1727e226d155c8bf984b0a5d9004f83c2da2 | 2f816ccb6eb76a75d96a59b2d48309ea9789e815 | /customer_handers.py | af504c0db5723bb754bf23942e15d35a97970842 | [] | no_license | superman-wrdh/tornado_rest_api | a6102509726d9da3b03909a32ec2e45b34ee414a | 327630763c1dfb2db6435816dfac843d405b10ff | refs/heads/master | 2022-04-11T04:49:17.383870 | 2020-04-11T13:23:45 | 2020-04-11T13:23:45 | 254,538,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from uuid import uuid4
import hashlib
from lib.rest_handler import RestHandler
from mysql_data import find_user_by_login_name
from redis_data import TokenRedis
from lib.rest_handler import authenticated
class UserLoginHandler(RestHandler):
async def get(self):
data = {}
self.render_json(data=data)... | [
"13419655360@163.com"
] | 13419655360@163.com |
70bbc22df64c85b8930f916e85cebfffadbaadb0 | b05fd2361279b1b2294bce2bdd57dce1961940af | /utils/helper.py | acf777df019cf66c71ce3298ba30d970afe6d478 | [] | no_license | projectwinger/slpbot | de330a32c233fd57b08a3031e56c1e50617fce1c | b82b728496df75093331d692b9dfe2898317342d | refs/heads/master | 2023-08-31T03:24:57.578976 | 2021-10-04T16:39:36 | 2021-10-04T16:39:36 | 412,889,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | from web3 import Web3
import json
from utils.vars import *
w3 = Web3(Web3.HTTPProvider(RONIN_PROVIDER))
with open("entity/abis/slp_abi.json") as f:
min_abi = json.load(f)
def check_slp_balance():
slp_contract = w3.eth.contract(
address=Web3.toChecksumAddress(SLP_CONTRACT),
abi=min_abi
)
... | [
"arki@projectwingman.tech"
] | arki@projectwingman.tech |
3e162caeec201faf679fa1224d0d8d97ad97b47a | aef40813a1b92cec0ea4fc25ec1d4a273f9bfad4 | /Q09__/63_Minimum_Area_Rectangle_II/Solution.py | 752d2303be4efbcb0e57cafa737c8c64f171d265 | [
"Apache-2.0"
] | permissive | hsclinical/leetcode | e9d0e522e249a24b28ab00ddf8d514ec855110d7 | 48a57f6a5d5745199c5685cd2c8f5c4fa293e54a | refs/heads/main | 2023-06-14T11:28:59.458901 | 2021-07-09T18:57:44 | 2021-07-09T18:57:44 | 319,078,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | from typing import List
from math import sqrt
class Solution:
def minAreaFreeRect(self, points: List[List[int]]) -> float:
pointsLen = len(points)
if pointsLen < 4:
return 0
else:
minArea = 0
points = sorted(points, key=lambda element: (element[0], elemen... | [
"luhongisu@gmail.com"
] | luhongisu@gmail.com |
35d89728a557f0c397e3bcd41272478e733c1926 | bb1c9216868de6244a72d3fc1d4f6be0d7dc4ea4 | /UpdateFactorDatabase/PreProcessFundamentalData/DataItemToBeProcessed/FinancialReportData/NetProfitsTotal_TTM.py | 574f36791ffbba20e6211f4ef1f7dbee0092ab1d | [] | no_license | wusf/MyQunatLib | 9e430c4be101f470a66c5faa38b9a082a9b4f7a5 | 5156d9b18dd37c5cda6bf8169497a8432fe083a1 | refs/heads/master | 2021-01-21T04:55:39.147432 | 2016-07-22T05:26:17 | 2016-07-22T05:26:17 | 48,779,521 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,982 | py | #!/usr/bin/env python
#coding:utf-8
"""
Author: Wusf --<wushifan221@gmail.com>
Purpose:
Created: 2015/12/28
"""
#----------------------------------------------------------------------
def Calc(cur,lookupDate,rptInfo,stkCode):
"""
计算过去12个月总净利润
cur:内存数据库cursor
lookupDate:查询当日的日期,返回是至该日期最后更新的信息
... | [
"wushifan221@gmail.com"
] | wushifan221@gmail.com |
fcb672d687c1574111eb7698b69c5f1877b16f73 | 1555931bc49abf9fec8ee5983c62bb4bbfc8857e | /__init__.py | 408fdc1c06047eb3a6ab3f6cdaa6ccf03d56d225 | [] | no_license | sizips0418/FinanceDataReader | 8c9b41585af7b13d1028cb9a2eef0272b191e3e6 | 1465c74433b2c1cc5cd182e5e9f7a750a7db727e | refs/heads/master | 2020-03-18T13:20:26.531904 | 2018-05-23T02:29:09 | 2018-05-23T02:29:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | from .data import (DataReader)
from .data import (StockListing)
__version__ = '0.4.0'
__all__ = ['__version__', 'DataReader', 'StockListing'] | [
"plusjune@gmail.com"
] | plusjune@gmail.com |
153b9856b3fa8d57606f07a427d0a03f575e4531 | f31f9d773bb46b1554cb2ca6cd01e9e958f761fc | /qaplatform/testcases/exchange_104/test_getoraderid.py | 0612c67459ecf2abe36b96f19da2e8e5f54647d9 | [] | no_license | robertluo1949/qaplatform | 43abc1cf797c6b11ced9b2694b9b07bd29714ea9 | aa8baec0b3bcdb846e2f42c2a493b7ad3c315a75 | refs/heads/master | 2022-12-12T22:18:08.575876 | 2018-11-25T11:18:15 | 2018-11-25T11:18:15 | 154,939,976 | 0 | 0 | null | 2022-12-08T02:27:19 | 2018-10-27T07:56:10 | Python | UTF-8 | Python | false | false | 5,669 | py | # coding:utf-8
'''
title: 自动化测试 UCEX
author:Robert
date:20180504
email:robert_luo1949@163.com
content: getoraderid 查询order
other:
'''
import json
import unittest
import config
import requests
from qaplatform.controller.libs.ucexbackend import headertoken
from qaplatform.controller.log import logger
from qaplatform.... | [
"robert_luo1949@163.com"
] | robert_luo1949@163.com |
5400c8babd836acf0c8f095292c9b207f73d45f6 | f89b43b2e028dc7b588f5d65824fb33d8cbaac16 | /replaceTabs/replacementOptions/__init__.py | 63c90a4d8acfb784962d08bd8d4ba864acf0ea3a | [] | no_license | Glasscan/replaceTabs | bc4b5eb9c2cbfeb1968d91f38600b9282f1718f8 | 5c477cb14f1a9be373671f13b86d708a2328edc4 | refs/heads/master | 2021-05-17T08:58:36.927219 | 2020-03-28T04:59:51 | 2020-03-28T04:59:51 | 250,717,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54 | py | """Package for handling the various input formats."""
| [
"guyguy@shaw.ca"
] | guyguy@shaw.ca |
6724264e596bf3842c4a96d20e465e82fb72a28b | be1a45b4ee526ec3cd81a2bcd06404db90c097fb | /week7/test.py | 65ab0cc2817e2b7df6335a78eb100034c3f663e9 | [] | no_license | GalinaDimitrova/Hack | c48e69c80678fa24937ca7dd4a36b1050e05d66e | 186e6f3520183565765569e63b39b25249c82f11 | refs/heads/master | 2021-01-25T08:55:23.349341 | 2014-12-29T23:25:54 | 2014-12-29T23:25:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | import pythonwhois
import requests
from bs4 import BeautifulSoup
# creation_date = pythonwhois.get_whois('hackbulgaria.com', normalized=[])['creation_date']
# print(creation_date)
url = 'http://skanev.bg'
website = requests.get(url)
html_doc = website.text
soup = BeautifulSoup(html_doc)
try:
desc1 = soup.find(... | [
"galinadimitrova1993@gmail.com"
] | galinadimitrova1993@gmail.com |
33c060ff155b574baff8a72ef5be92178b322045 | 57dc9b67c9637bd5f6cf06053f77b726945cc3da | /src/inherabit/wsgi.py | bc85f8eeecf2942b4f52b325c810915fdb454721 | [] | no_license | MerlinB/Inherabit | 6e2317e4694fad691b3df49025879109fef288ab | 108b50e83984654780cbd227443dce09a4137b6f | refs/heads/master | 2021-01-18T15:45:24.075174 | 2017-09-19T12:42:00 | 2017-09-19T12:42:00 | 86,677,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | """
WSGI config for inherabit 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/1.10/howto/deployment/wsgi/
"""
import os
import sys
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__... | [
"merlin@Rahims-iMac-2.local"
] | merlin@Rahims-iMac-2.local |
dcb4bd3ffc7027b6f3a3fde2f3c1401217e0177f | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/MEDIUM/YW_ZXBMM_SZSJ_145_1.py | d50f57648d8ab727b94936581055954b86f39540 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,035 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test/xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test/service")
from ServiceConfig import *
from mainService import *
from QueryStkPriceQty import *
from log import *
sys.path.append("/h... | [
"418033945@qq.com"
] | 418033945@qq.com |
d87cdc128c325b98cbbb689668cc75887672a87a | 24ca8c06c5570ec5848e791c0744229bcfb6bdc9 | /mysite/mysite/settings.py | 3935ec876279a6f5859f5c4a3c73ed4e38314e96 | [] | no_license | SaraKuznik/SP-SeznamOpravil | 0e705c459b32aec5b7a9d7e7ce7ebacb189d3401 | 76fb0e76698674e0ceedf386615520fc5228098b | refs/heads/master | 2021-06-10T18:00:08.403157 | 2017-01-15T21:31:59 | 2017-01-15T21:31:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,124 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"noreply@github.com"
] | SaraKuznik.noreply@github.com |
cde03f081ac15febaf4503fbb9493792ad4cf5c9 | 52e57aec1139ec7b3b3e486c3557cf5aa192360d | /WNDS_Chapter_9/wnds_chapter_9a.py | 3494023d13201d324610851b897a8e72dfe0e795 | [] | no_license | shp319/wnds | 316c9b75c02a7ae9c58c4f31ae5fa518d35c29e1 | fa41bed68a7dbfb8920abaf100a9ea8aff6ee6af | refs/heads/master | 2021-01-19T23:42:29.989539 | 2015-08-18T21:08:14 | 2015-08-18T21:08:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,448 | py | # Discovering Common Themes: POTUS Speeches (Python)
# prepare for Python version 3x features and functions
from __future__ import division, print_function
# import packages for text processing and multivariate analysis
import os # operating system functions
from fnmatch import fnmatch # character string ma... | [
"jonathan.spengeman@gmail.com"
] | jonathan.spengeman@gmail.com |
42cbd6f4a58791bd3faa273b6e8f85a624ead768 | 35800e9988c2ba88bc5650c6c3de3ffdb5b07df4 | /EstructurasSecuencialesPython/15.py | 1e479beb20a87673de27c1b345ffe6887dba3d33 | [] | no_license | a19camoan/Ejercicios_Programacion_Python | fd6d9c06e3e96b948cbadad403f49014dc595fb1 | b14a71525aa056c4ac39932ecfcb520315441a01 | refs/heads/main | 2023-09-06T08:10:27.313089 | 2021-11-26T00:46:40 | 2021-11-26T00:46:40 | 425,922,312 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | '''
Dado un número de dos cifras, diseñe un algoritmo que permita obtener el número invertido.
Autor: Andrés Castillero Moriana.
Fecha: 09/10/2021
Algoritmo:
Se pedirá ambos números al usuario.
La variable "a" será movida a la varible "c", la "b" a la "a" y por último la "c" a la "b".
... | [
"56250607+a19camoan@users.noreply.github.com"
] | 56250607+a19camoan@users.noreply.github.com |
da4b95aff8ab662989208e242afff1c086d6421c | 7f8d2288dc8d81275269bdb8e8f196339a52d30d | /code/179_solution.py | 1143e426fec1da8240a3495e2773dfef220d2bbb | [] | no_license | ishaansharma/leetcode-3 | f9cab568c31322e2bf84768264f3c644182cd470 | 9081dd3ff86409d554b0298a8152ed40a6befa96 | refs/heads/master | 2023-03-25T15:36:04.235650 | 2021-03-30T20:15:45 | 2021-03-30T20:15:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | class Comparator(str):
def __lt__(x, y):
return x + y > y + x
class Solution:
def largestNumber(self, nums: List[int]) -> str:
result = ''.join(sorted(map(str, nums), key=Comparator))
return '0' if result[0] == '0' else result
| [
"noreply@github.com"
] | ishaansharma.noreply@github.com |
6343aa68a1dfd313efc49cf80e641cd1b494da5d | c30e30bf86e34a27c53610e804b7539feb7c7d6f | /section03/prob25.py | 064f901375a7f3101b5e1002ce124b0482682c21 | [] | no_license | copasta/NLP100knock | 9964e7545b80a4f351a9bacbacab20f865231958 | 3944878cbc38c5ed50800cfe30cb3c74535b427c | refs/heads/master | 2020-06-12T11:57:47.477777 | 2019-06-30T14:48:45 | 2019-06-30T14:48:45 | 172,111,780 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import gzip
import json
import re
import collections
def get_uk(name):
doc_result = []
with gzip.open(name, 'rt') as j:
for data in j:
dict_uk = json.loads(data)
if "イギリス" in dict_uk["title"]:
return dict_uk["text"]
doc_uk = get_uk(name='section3/jawiki-country.... | [
"noreply@github.com"
] | copasta.noreply@github.com |
621779c34150761dcb0e906a75ce03b6be134293 | ce72c04147c8223c4c0ef8040807ad07a312e4de | /FUNC/error.py | f07d4bb960312fbba14b8468ec38f9bbfd6f0c90 | [
"MIT"
] | permissive | RafalBuchner/ufoConsistency-tool | e4142ceee16e4ccc291b95ec824d8cd51d385246 | e4cea9011c31ba6dcf0b954729b718a4538d582b | refs/heads/master | 2021-09-09T20:32:03.780368 | 2018-03-19T15:16:16 | 2018-03-19T15:16:16 | 125,646,871 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | # -*- coding: utf-8 -*-
def fatal(expression, string):
"""
Error for command prompt
"""
if not expression: # FATAL ERROR???
# from sys import exit
# exit("\n [**FATAL ERROR**]> {}\n\n".format(string))
print(u"\n [**FATAL ERROR**]> {}\n".format(string))
def consider(string,... | [
"rafal.buchner@gmail.com"
] | rafal.buchner@gmail.com |
3e0189ad0bd26c5d69156fe8377e17e4468fcd43 | 75cf6a9fd035883b64ca2309382e0178cf370b43 | /Empirical/python/sklearn/unsup_cluster/plot_mini_batch_kmeans.py | 7c3d522b7b6b00d57bf2ea1b7ef785b4176af0d3 | [] | no_license | ygtfrdes/Program | 171b95b9f32a105185a7bf8ec6c8c1ca9d1eda9d | 1c1e30230f0df50733b160ca73510c41d777edb9 | refs/heads/master | 2022-10-08T13:13:17.861152 | 2019-11-06T04:53:27 | 2019-11-06T04:53:27 | 219,560,170 | 1 | 2 | null | 2022-09-30T19:51:17 | 2019-11-04T17:39:52 | HTML | UTF-8 | Python | false | false | 4,114 | py | #!/usr/bin/python
"""
====================================================================
Comparison of the K-Means and MiniBatchKMeans clustering algorithms
====================================================================
We want to compare the performance of the MiniBatchKMeans and KMeans:
the MiniBatchKMeans i... | [
"githubfortyuds@gmail.com"
] | githubfortyuds@gmail.com |
1a68e7a99a2547cc8856d3fdd08a70a452cf14dc | f3a5ea36ae94ecf1f70b84a19146f6b0128c5e2f | /main.py | 99402b15d0fadca40a51d0a0081a3b45a4a9ae27 | [] | no_license | tripsBro/Smart-Traffic-Control-System | 2789a6bf8a3209a7eb2beeebb220074aeacf6240 | a15533d37c9b1d8f5a625d046b84b9ba972a8d98 | refs/heads/master | 2021-05-08T00:26:26.256198 | 2017-10-21T08:51:35 | 2017-10-21T08:51:35 | 107,753,445 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,139 | py | import cv2
import imutils as im
import time
count = 1
def change(Time):
if Time>5:
return True
else:
return False
def inc():
global count
count +=1
if count>3:
count = 1
return count
# #==========start the videos==================
cap1 = cv2.VideoCapture('/home/r... | [
"mr.rahul.tripathy@gmail.com"
] | mr.rahul.tripathy@gmail.com |
af1a18065a06c3e67b6fc969e4c05a1742e15a8e | ec6cf5914b2b7955d3fdd9c5c83c907528d4d925 | /TB/python/drawResolutionLED.py | f5c63853e07bc170d86586984f17d2a230b278c5 | [] | no_license | lbrianza/iMCP_TB | fe25f9a96505fbb7b5b87d0fda97be2f35d767ef | eeb6d34dd3acc42a3ecd01904aad97d5ad7e5594 | refs/heads/master | 2020-05-13T03:49:32.386295 | 2015-05-03T09:38:28 | 2015-05-03T09:38:28 | 24,817,625 | 0 | 4 | null | 2015-07-29T14:18:50 | 2014-10-05T14:36:48 | C++ | UTF-8 | Python | false | false | 607 | py | #!/usr/bin/python
import sys
import os
import commands
from commands import getstatusoutput
import datetime
import argparse
import string
if __name__ == '__main__':
os.system('./drawResolutionLED.exe HVScanON')
os.system('./drawResolutionLED.exe HVScanOFF')
os.system('./drawResolutionLED.exe scanX0_HVHigh_5... | [
"brianza@hercules.mib.infn.it"
] | brianza@hercules.mib.infn.it |
cad0ae2e76b0a472ab029600097be22b3f7d4bfc | 1b050f442bd67ac9a010c398c5c5c3a2e107b554 | /mineral_catalog/templatetags/concat.py | 82003f678e966465069f119997dc8b958114dacd | [] | no_license | Imfractical/mineralz | c36b3492f0a7e6bfd873a0a956e6fdc2d72cd3b4 | 81c057061726e8f94db1fd432c945bd029ca4a8f | refs/heads/master | 2020-04-12T22:28:57.179576 | 2019-01-18T07:09:52 | 2019-01-18T07:09:52 | 162,790,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | """Template filter used to concatenate strings"""
from django import template
register = template.Library()
@register.filter
def concat(val1, val2):
"""Concatenate val1 and val2"""
return str(val1) + str(val2)
| [
"antisocialtrees@gmail.com"
] | antisocialtrees@gmail.com |
646a8f5c24ee17258fdeaef5ae2624183ef176b4 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Dsz/PyScripts/Lib/dsz/mca/status/cmd/devicequery/errors.py | 1f4ff01a0e9f2e5e054f7311e59683a397c07d9e | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: errors.py
import mcl.status
ERR_SUCCESS = mcl.status.MCL_SUCCESS
ERR_INVALID_PARAM = mcl.status.framework.ERR_START
ERR_NOT_IMPLEMENTED = mcl.status.... | [
"kyeremalprime@gmail.com"
] | kyeremalprime@gmail.com |
4e12388c518ab185b5da38a3306c25502613d08d | 02bedfeec07b9b39083e82149a6ce9d58629e725 | /weather_now/weather.py | cd824b1243ab36dd5b0e3006f252f5167bf59cfe | [] | no_license | Dmitri86/weather-site | 5fba058e48680909d2cdcf33cdb2526f135454e3 | bf66a26b0e04c805c32db0dc84ace5a37a7f467a | refs/heads/master | 2022-12-14T22:31:19.225531 | 2019-09-09T14:04:13 | 2019-09-09T14:04:13 | 193,495,174 | 0 | 0 | null | 2022-12-08T05:21:31 | 2019-06-24T11:48:03 | Python | UTF-8 | Python | false | false | 1,680 | py | # import requests
# url = 'http://api.openweathermap.org/data/2.5/weather'
#
# while True:
# city = input('Enter current city: ')
# if city == 'q':
# break
# params = {
# 'q': city,
# 'appid': '11c0d3dc6093f7442898ee49d2430d20',
# 'units': 'metric'}
# res = requests.get(u... | [
"zhirkod@gmail.com"
] | zhirkod@gmail.com |
02600337402dcb98eb9f331b0e75f984c49d042a | a239a0bcf5425d3f26572f2cb12633258faeb0a2 | /hello.py | 774595a6cd8ef642b80a447df24411448582452c | [] | no_license | rohanvartak1996/twitter-streaming-streamlit | e600881cbe2893e2b91c76ca8254fd06e6983b66 | 7b1b717a78ab814f7d7d3ded7c5b482fa60720e5 | refs/heads/master | 2020-08-27T12:56:34.893814 | 2019-10-24T19:22:57 | 2019-10-24T19:22:57 | 217,376,354 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,876 | py | import streamlit as st
import tweepy
import json
import yaml
import operator
from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
with open("config.yml", "r") as ymlfile:
config = yaml.load(ymlfile, Loader=yaml.SafeLoader)
auth = tweepy.OAuthHandler(config['CONSUMER_KEY'], config['CONS... | [
"noreply@github.com"
] | rohanvartak1996.noreply@github.com |
2ac529ea8d6b8091556a92ef161a3125c8b85b23 | e22a3ae5ec32ff1e821bdd3f2fb3359dcaf2d9df | /addressapp/migrations/0001_initial.py | 0d69f3c5f248208626cc70a463dcc57f8f5b842f | [
"MIT"
] | permissive | AbhiyantrikTechnology/DentalHub-Backend | c22e0dc9f21a76b1311c9586fd01ccb870d5b80f | 89802b3e7671ffe8b3d287a998c3c4f375b58f03 | refs/heads/master | 2022-12-16T03:53:54.611417 | 2020-09-25T05:25:50 | 2020-09-25T05:25:50 | 296,806,823 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,838 | py | # Generated by Django 2.0 on 2019-09-25 07:37
import addressapp.models.address
import addressapp.models.geography
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operati... | [
"opnchaudhary@gmail.com"
] | opnchaudhary@gmail.com |
87c1603e354824494807c7a2c788a6a073118ae6 | 675629b6e201ac485c12fdbfe786b80b64e04159 | /vnpy-2.0.9/my_code/designer/Ui_MainWinMenuToolbar.py | 158a6dff244d1c75a10d1ce605cf979e0810264b | [
"MIT"
] | permissive | laoshu198838/vnpy_learning | c5a51cf5d7c7ea74fde351cb6620be71310d5a2f | b4622ee38766bf021e61f6a97eb02ab27e3af819 | refs/heads/master | 2022-11-28T14:43:50.827708 | 2020-08-08T00:54:11 | 2020-08-08T00:54:11 | 259,779,588 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,793 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'd:\The Road For Finacial Statics\GitHub\vnpy_learning\vnpy_learning\vnpy-2.0.9\my_code\designer\MainWinMenuToolbar.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 impor... | [
"395252848@qq.com"
] | 395252848@qq.com |
1f5a71b122f78e18638684dc17da5d4cc777ef3e | 2fed2edb0723d13dac423c0e950c72a59e3cd264 | /AppData/GUIResources/TextFileDialogClass.py | 4226652fe517047fa2edb14ce9e27c693df96a0d | [] | no_license | NCowles15/task_manager | f02b018e0211bf5c3fabe5873f55448644993f36 | 33113b6f49c8f94f74ea858e02ed2cf50a2c8598 | refs/heads/master | 2020-03-26T10:36:23.369079 | 2018-08-15T21:02:11 | 2018-08-15T21:02:11 | 144,807,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | import os
from PyQt5 import uic
path = os.path.dirname(os.path.abspath(__file__))
TextFileDialogUI, TextFileDialogBase = uic.loadUiType(os.path.join(path, 'textfiledialog.ui'))
class TextFileDialog(TextFileDialogBase, TextFileDialogUI):
def __init__(self, parent=None):
TextFileDialogBase.__init__(self, ... | [
"42399143+NCowles15@users.noreply.github.com"
] | 42399143+NCowles15@users.noreply.github.com |
06f9e24f2f2c3f3be8106661b9b5b1af22cf3b33 | ff1b45f1ec0bedd9e13ce2744a4a54daa0be6852 | /TP/fantasyFootball/migrations/0003_auto_20181108_1332.py | 88acbc03bb2474ef50c09816fa6fa96831bba2ad | [] | no_license | sebastianlp/diseno-sistemas | 42d25f7d2a117303a48f28a1a490e880358c871d | 0124e04ac5bf7e68730d0513e43c86dd7f831c37 | refs/heads/develop | 2022-12-01T12:42:37.331204 | 2019-12-12T14:54:14 | 2019-12-12T14:54:14 | 156,759,063 | 0 | 0 | null | 2022-11-22T04:45:37 | 2018-11-08T19:36:23 | JavaScript | UTF-8 | Python | false | false | 1,357 | py | # Generated by Django 2.1.3 on 2018-11-08 16:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import fantasyFootball.models
class Migration(migrations.Migration):
dependencies = [
('fantasyFootball', '0002_auto_20181108_0058'),
]
oper... | [
"sebastian.poliak@mercadolibre.com"
] | sebastian.poliak@mercadolibre.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.