blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7e8d8b73493b52732c1b2e18ad8972356c0e4b79 | ea15d14b0eb630dc07a7514b2285c810290947f7 | /DeepNetworks.py | 5fd51a92e2151afc29ccb8eb57893220998eb9ab | [] | no_license | cgrindler/TimeSeries-Forecast | 62e157c2d73c9d61a5176ec3ce4ddcad5febc350 | fbd6a1b5aaed93c366afd9db9eee4f6c459a3063 | refs/heads/master | 2020-03-24T06:43:01.868993 | 2018-12-12T15:23:09 | 2018-12-12T15:23:09 | 142,538,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,905 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import sklearn.metrics as sk
import os.path
import sys
import subprocess
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import LSTM
import math
from sklearn.preprocessing import MinMaxScaler
class DeepNetworks:... | [
"clemens.grindler@web.de"
] | clemens.grindler@web.de |
37e1ff1235046fbc5c983001e7cfb790efd4803e | 23ba854b3b6cb457c8c01793e24f15d411650281 | /monk/system/summary.py | a87cc621feca3f74387e5c3e0cc0a91ab73cf0a4 | [
"Apache-2.0"
] | permissive | shaunstanislauslau/monk_v1 | a506a8cb2e45f3d04734bfab01db09eb3d804771 | 01905b911f1757adef9d7366a704b2a5289e1095 | refs/heads/master | 2023-05-11T08:16:39.442925 | 2020-03-03T07:45:06 | 2020-03-03T07:45:06 | 244,685,539 | 0 | 0 | Apache-2.0 | 2023-05-09T19:02:15 | 2020-03-03T16:25:46 | null | UTF-8 | Python | false | false | 8,361 | py | from system.imports import *
from system.common import read_json
@accepts(str, post_trace=True)
@TraceFunction(trace_args=True, trace_rv=True)
def print_summary(fname):
system_dict = read_json(fname);
############################################################################################################... | [
"abhishek4273@gmail.com"
] | abhishek4273@gmail.com |
ab18c9525bb0657fe01b15fde94c070729316bb5 | 66caad41eb464143843649d8399a52f4557a9c07 | /lib/parsers/details.py | 6f0ecf711622c66759d37f6eb93e79fc06d92fbb | [] | no_license | mbroome/aquabid-reports | 2eb1d35ceb207156bb0e9aba1a82a00b690bc38a | 9cb1440eb8d7546995319827c675d2236b2da43e | refs/heads/master | 2022-11-13T02:50:38.719905 | 2020-06-30T01:39:26 | 2020-06-30T01:39:26 | 111,866,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,775 | py | #!/usr/bin/env python
import os
import sys
import re
import json
import time
import requests
import mysql.connector
import dbconn
import timetools
import sanatizers
import pprint
pp = pprint.PrettyPrinter(indent=4)
class Parser():
def get(self, id, category, seller=''):
patte... | [
"mbroome@sc3271.lan"
] | mbroome@sc3271.lan |
479b403c089b4a31c8e84d160fea8d604f17233c | 6a389811490cf5c4bbb8bb46cacf37b5992f9f22 | /CarlosComba/actividad_002/actividad_2main.py | 115555a86a1c582f1c0eac5795e237b749f1c60f | [] | no_license | informatorio2020com07/actividades | 40e2ba899e1a9d8ea6ac312ed7a480218ee6b79a | b9b76a5f8bc0a7da17ff378f954b38564f41fa66 | refs/heads/master | 2022-12-20T05:02:21.567549 | 2020-10-06T22:41:03 | 2020-10-06T22:41:03 | 285,361,906 | 2 | 26 | null | 2020-10-06T22:41:31 | 2020-08-05T17:39:32 | Python | UTF-8 | Python | false | false | 2,598 | py |
from actividad_2 import transformar_segundos
from actividad_2 import sumar_segundos
def control_hora(hora):
"""controla el rango de hora"""
if 0<= hora <24:
return True
else:
return False
def control_minuto(minuto):
"""controla el rango de minutos"""
if 0<= minuto <60:
ret... | [
"carlosacomba@gmail.com"
] | carlosacomba@gmail.com |
e8d97de4b4abc9a85710b744836572228de0f5e4 | 5185c400633e8c654065fc5ba40f8d532f1af84a | /config.py | 4c1317c1bfe426dd4b9c2c6f6404a586525c2fda | [] | no_license | undefinedv/kindleTools | 14ca7596a5051f50f186b8d563a65ffdc2e7d5b2 | 76a240c9b7463c37005d138dcae2153fea63bc44 | refs/heads/master | 2021-08-31T10:20:26.528954 | 2017-12-21T02:23:08 | 2017-12-21T02:23:08 | 114,832,851 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | ktconfig = {
"kindle_email" : "your_kindle_email@kindle.cn",
"smtp_server" : "smtp.qq.com",#smtp server default:smtp.qq.com
"smtp_port" : 465,#smtp server port
"from_addr" : "123456@qq.com", #username
"password": "password",#password,
"mail_ssl" : True
} | [
"shuxueyouqu@qq.com"
] | shuxueyouqu@qq.com |
febd8e48242a3f1cd5220359e63ff26576243b25 | 07c8c36f6b883a208f0748c4c54872e2f05c765f | /12.day/100.遍历素数.py | 1a0ffa9caf6bbb76dc082b8ebd143e9c536f0c11 | [] | no_license | gxsgxs/1808 | d66750265962a758f950ba446de03c8ffcb2d535 | 43570291e0411d509fc690ae559b6cad0b075de1 | refs/heads/master | 2020-03-25T19:43:18.961210 | 2018-08-29T01:53:08 | 2018-08-29T01:53:08 | 144,086,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | def bl(he):
if bl.startswith("1") and len(he) == 11:
print("登陆成功")
else:
print("错误")
def bl(he):
if bl.startswith(1) and len(he) == 11:
return True
else:
return False
bl()
bl()
| [
"1393876750@qq.com"
] | 1393876750@qq.com |
d53e8d5b4ead27ac66105416a806e2f9c6260d62 | bca818ec015f3bf031b9dfaec7400ac3aa0a95f7 | /List/LengthOfList.py | 7445845ab5d3aba02d9644e03f4976d6ceb68e3a | [] | no_license | shubhamkochar/Python_Codes | 369079f853d25b41f0b4e432fb38218b72354594 | f74d3e8a502f835e279234ffd89563115db9e68b | refs/heads/master | 2023-07-25T13:55:18.748057 | 2021-09-04T09:31:57 | 2021-09-04T09:31:57 | 386,713,058 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | # Python code to find the length of the list
list = []
num = int(input("Enter the number of elements to add in list: "))
for i in range(0,num):
element = int(input("Enter the element: "))
list.append(element)
print("Length of the list is: ", len(list)) | [
"shubhamkochar23@gmail.com"
] | shubhamkochar23@gmail.com |
3947599a2315d14d17c7a28abda5e5c2c87493e5 | b42ef80d58525e0f1ddf40a43f9d4f4df70a72a8 | /examples/UBO/runTests.py | ceec516bd2d53696b3d13ae1ce5af7e15328e6a6 | [] | no_license | nasa/europa | bdd8dea5a4d30e090b3d6f11d6454a1069043075 | ac5c332d01bc429e4fb543475891b1905f61475c | refs/heads/master | 2023-03-11T07:45:36.556842 | 2019-06-26T05:34:30 | 2019-06-26T05:34:30 | 25,273,322 | 218 | 82 | null | 2023-02-10T21:33:05 | 2014-10-15T20:59:23 | C++ | UTF-8 | Python | false | false | 1,010 | py | #/usr/bin/python
import sys
import getopt
import UBO
#example :
#export TEST_DIR=$PLASMA_HOME/../benchmarks/UBO/data
#runTests.py -t10 $TEST_DIR benchmarks_ubo10.txt benchmarks_ubo20.txt
# options -t timeout in seconds
timeoutSecs = 20
solvers = ['BuiltIn','IFIR','Hybrid']
profiles = {'BuiltIn':'IncrementalFlowPro... | [
"javier.barreiro@gmail.com"
] | javier.barreiro@gmail.com |
7462c420e5ccedc8b0524cdf2c63ce7b693ecb3a | e35772c87f9e52d26d5eeb08886cd55261c0dd65 | /garagem/migrations/0001_initial.py | 1b109b1208f82bb1ca523f017355847100ad2cc5 | [] | no_license | akemyy/franq | cea21dfba7c444cd5f294ad380da7e7fe7c7c717 | 3127eab5d72421d0e39e72efd90fcc4a0ec77847 | refs/heads/master | 2023-07-28T08:44:22.107948 | 2021-09-01T19:00:01 | 2021-09-01T19:00:01 | 400,284,039 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620 | py | # Generated by Django 3.2.6 on 2021-08-31 18:20
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Veiculo',
... | [
"patricia.akemyy@gmail.com"
] | patricia.akemyy@gmail.com |
52fc28893c96bdc913345182c1ac9a9984aa4a58 | c2accf4a5c25008b5b03badbe4823ed86162aa1a | /problem 5.py | b5874fc95c1b4f2ddb3c57099e2bc83397d7c2e7 | [] | no_license | daki0607/Project-Euler | 09b8f509d47067e42a5919588873095cbfa45ec5 | 78b36040bc6ae306a8c17f07f65385537894b8f9 | refs/heads/master | 2021-07-23T17:41:58.748546 | 2017-10-30T02:42:30 | 2017-10-30T02:42:30 | 108,792,351 | 0 | 0 | null | 2017-10-30T02:42:31 | 2017-10-30T02:32:30 | null | UTF-8 | Python | false | false | 480 | py | """
2520 is the smallest number that can be divided by each of the numbers
from 1 to 10 without any remainder.
What is the smallest positive number that is evenly divisible by all
of the numbers from 1 to 20?
1, 2, 3, 2^2, 5, 2^1*3^1, 7, 2^3, 3^2, 2^1*5^1 - 10
5, 7, 2^3, 3^2 - for 10
11, 12, 13, 14, 15, 16, 17, 18,... | [
"noreply@github.com"
] | noreply@github.com |
87bb8dce7227864088f1922564647bc8ea04c78c | 522db970fa81e7b5aa82342d5643b80065a74d8b | /project/python_test/settings.py | aae3f10a3f817b9968b2c8a3607b6de9deff6135 | [] | no_license | chandnibhatia/Simple-CRUD-in-Django | d778e6b14d1be0eb86cdff23690c39daa14049ab | 4ea222912cbcefec4f8c25fd0f817ae11818fc6c | refs/heads/master | 2022-12-10T05:31:03.259623 | 2018-05-09T12:41:32 | 2018-05-09T12:41:32 | 131,244,865 | 1 | 0 | null | 2022-12-08T00:59:53 | 2018-04-27T04:19:26 | JavaScript | UTF-8 | Python | false | false | 3,215 | py | """
Django settings for python_test project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
impor... | [
"chandni.a.bhatia@gmail.com"
] | chandni.a.bhatia@gmail.com |
7f69dbce010f14ac2debdf2734632872607447c1 | 7f53f509222f7e4b1ca8137bb31cf2edc5f64e80 | /spec.py | 285af57a848c75051fd2652556eb8d7fba9fe315 | [] | no_license | wahid999/Pythonforbegainer | f61c7567c37b3d4103b5550a6975f78c960763f8 | 794fd9471ff95eac52ae42d8548526c09df23bbd | refs/heads/main | 2023-07-11T22:31:31.435440 | 2021-08-16T17:18:35 | 2021-08-16T17:18:35 | 399,344,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | import os
os.system('clear')
#************** Strings ****************
#------------->CANCATINATINATION-------->
name = 'Wahid Hussain'
greetings = 'hello, My name is ' + name
print (greetings[24])
| [
"wahidhussainturi@gmail.com"
] | wahidhussainturi@gmail.com |
b588707298a444fd4a63d64a95d14c33ac1d07e0 | 83f611dd9b43ba3956d5936d4c0e687f1585bc57 | /5c.py | 36a099e4503457876f47c1e8a09c2603c310500e | [] | no_license | y3vhenii/project1_DataStructuresAndAlgorithms | 89172cb508b046a643ec8db40704324a91f4c609 | 27b186e7007eca97abe3b89504329c91bf1f440a | refs/heads/master | 2021-01-15T01:42:47.150612 | 2020-03-04T17:28:53 | 2020-03-04T17:28:53 | 242,835,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,122 | py | #
# Created by Yevhenii Ganusich
#
import random
# --------------------------------------
# Iterative implementation of AVL Tree
# --------------------------------------
class avlNode:
# Node class constructor
def __init__(self, val):
self.val = val
self.leftChild = None
self.rightChild... | [
"noreply@github.com"
] | noreply@github.com |
c6db899b17994956a0afb5dd82d2d133537fb664 | df258f9b95493d146ef8d3e9fef8ee367fe66042 | /dffml/db/sql.py | bbbac8bea799aad05894665845c119803c332d57 | [
"LicenseRef-scancode-generic-export-compliance",
"MIT"
] | permissive | emrul/dffml | dd576582de5a95d2cc3c525131d1b1f66dfa84c1 | 0829a5830fef85d24baa80220fa9cf7e56fee236 | refs/heads/master | 2022-04-22T20:37:45.109948 | 2020-04-24T15:08:23 | 2020-04-24T15:08:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,272 | py | """
Base classes to wrap various SQL based databases in dffml.db abstraction.
"""
from typing import Dict, Any, List, Tuple, Optional
from dffml.db.base import BaseDatabaseContext, Conditions
class SQLDatabaseContext(BaseDatabaseContext):
# BIND_DECLARATION is the string used to bind a param
BIND_DECLARATION... | [
"johnandersenpdx@gmail.com"
] | johnandersenpdx@gmail.com |
96aa8ac46b3d2ef2095ea9e7c4211fe64ae7f673 | bb53229d1f296f8b7b3f7eb623673031474a4664 | /robot/model/arm/pets.py | 8523fe88eb018c1b1287289919557794aa76721a | [] | no_license | hzaskywalker/torch_robotics | 03f2de64972d47752e45ae0a0c30334bf6c52c6c | 0f3d5a46e81d734d514bffcbf4ed84cdcdbd4c86 | refs/heads/master | 2023-07-28T17:04:17.915787 | 2021-09-14T04:30:55 | 2021-09-14T04:30:55 | 405,022,434 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,897 | py | # reproduce the pets cem with the new framework
import os
import torch
import tqdm
from torch import nn
import numpy as np
from robot.controller.pets.model import EnBNN
from robot import U
from . import Frame, trainer
class Distribution(Frame):
# it always maintain dim-2 as the ensemble dimension..
... | [
"hzaskywalker@gmail.com"
] | hzaskywalker@gmail.com |
c288f92b1c96aa081a8a57353ba142814feb6da3 | 5def52d4e3cab5afe787a6ac6bbe195425274088 | /ordersapp/migrations/0001_orders.py | 688d7d4f63935e4c38bc7818d47caf4185d7d525 | [] | no_license | trofimowova/geekshop | db059fd668fc42fb7b4f14fd146c4fb326f40721 | c184582c32e4fdccc745adfa94843241f1265019 | refs/heads/master | 2023-03-31T19:42:22.890558 | 2021-03-30T08:20:55 | 2021-03-30T08:20:55 | 334,234,286 | 0 | 0 | null | 2021-03-30T11:24:28 | 2021-01-29T18:48:17 | Python | UTF-8 | Python | false | false | 2,648 | py | # Generated by Django 2.2.17 on 2021-03-10 10:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [("mainapp", "0006_product_is_active"), migrations.swappable_dependency(settings.A... | [
"noreply@github.com"
] | noreply@github.com |
f2cc1601e225667554205561c993b3b430da90dd | 1edd52cf197e5ae67b5939a3beb3e70761334e62 | /AWS/AWS_boto3_narendra/20_Collections_stop_all_ec2.py | d019a4a10bd4d593f40e1b1694dac8e0692e7743 | [] | no_license | sandeepmchary/Devops_wordpress_Notes | bdcd85d526780d03c494ecb93e714e7ffe0a4d58 | ffd2092162073e1e7342c6066d023d04e6ca8c1c | refs/heads/master | 2022-06-18T21:33:02.471025 | 2022-06-12T11:14:47 | 2022-06-12T11:14:47 | 154,679,658 | 1 | 4 | null | 2022-05-19T16:59:57 | 2018-10-25T13:51:40 | HTML | UTF-8 | Python | false | false | 378 | py | import boto3
ec2_re=boto3.resource('ec2')
ec2_cli=boto3.client('ec2')
all_ins_id=[]
for each in ec2_re.instances.all():
print(each.id,each.state['Name'])
all_ins_id.append(each.id)
#print(all_ins_id)
print("Stopping all instances...")
ec2_re.instances.stop()
waiter=ec2_cli.get_waiter('instance_stopped')
waiter.wait(I... | [
"awssandeepchary@gmail.com"
] | awssandeepchary@gmail.com |
6207aad6a0b11aad835127d46af78a31114f4f7b | 89c1b6256af4839be5a0c828a478edc92c2846ce | /Simple and intermediate programs/contact_list.py | fa2fb4cbceb0718d936a73819b262e4cc81dd16b | [] | no_license | Sanjith-14/Python_workshop | 6a843a7e0fce9a26300c038913334b6918008100 | 04c5c2a8ae890ea07b7315761427006e30fb0270 | refs/heads/main | 2023-08-01T05:38:32.225014 | 2021-09-27T05:00:18 | 2021-09-27T05:00:18 | 410,744,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | from collections import OrderedDict
def addtask():
name=input("Enter the Name :")
num=int(input("Enter the number :"))
dic[name]=num;
def deltask():
del_task=input("Enter the Name to be deleted :")
if del_task in dic:
del dic[del_task]
else:
print("Enter correct Name")
... | [
"noreply@github.com"
] | noreply@github.com |
0ea32e61d99227641c0fdd65b7e71ca6fe38db06 | ae68548950065b132ced5be7eae894fa906c4cf6 | /bot/main.py | 218cfbd10117debe4ea1ab0c2d528ce20cd4c73a | [] | no_license | Diving-Fish/cocServer | 4236436e349ffd796b1199d173be01d24cd71daf | 31a5aac172d210d04f2ed302f887807db2352fde | refs/heads/master | 2021-07-24T09:15:26.528601 | 2021-01-01T16:06:16 | 2021-01-01T16:06:16 | 233,537,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 356 | py | import nonebot
import config
from os import path
# from awesome.plugins.plugin import roll_expression
if __name__ == '__main__':
nonebot.init(config)
nonebot.load_builtin_plugins()
nonebot.load_plugins(
path.join(path.dirname(__file__), 'awesome', 'plugins'),
'awesome.plugins'
)
non... | [
"dfyshisb@163.com"
] | dfyshisb@163.com |
ee8bf4fd008631c6ae0092a9144b22df80707387 | baa317b2f69f7e7462c06d00ec18f0ba2e97f7da | /codility/lesson4-countingelements.py | a04d8ebf7ebb43b07f612081f9b02c555380ffcd | [] | no_license | stt106/pythonbeyondbasics | f0392c23657666dac1b5ad027a80e637cf4837d9 | 0e8d1a1d12cbd7714440544814698babb8dcc311 | refs/heads/master | 2020-04-06T07:03:07.785845 | 2016-09-07T06:34:46 | 2016-09-07T06:34:46 | 64,084,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | def check_permutation(A):
inputset = set(A)
for i in range(1, len(A) + 1):
if i not in inputset:
return 0
return 1
def missing_integer(A):
s = set(A)
res = 1
while True:
if res not in s:
return res
else:
res += 1
#print(missing_intege... | [
"stt106@gmail.com"
] | stt106@gmail.com |
a05bf96e7e5bd8d800622c3cd672d807f8bdcb3e | 40745afc80aef92d40c38bc50e4db54a052ec45e | /env/lib/python2.7/site-packages/flask_errormail/__init__.py | 0db22f7d09e61f187c425598b74413d8b59fbe05 | [
"MIT"
] | permissive | abdul-hamid-achik/flask-blog-abdulmx | 55893e6eec32c7c8a88c33b6181cc71383e423d3 | 0b92a1c56dee7cf28d9f9456d04d9d009e673eb3 | refs/heads/master | 2023-04-29T05:52:22.282200 | 2015-06-10T00:59:40 | 2015-06-10T00:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,993 | py | """
flask_errormail
~~~~~~~~~~~~~~~
Flask extension for sending emails to administrators when 500 Internal
Server Errors occur.
:copyright: (c) 2012 by Jason Wyatt Feinstein.
:license: MIT, see LICENSE.txt for more details.
"""
import traceback
def mail_on_500(app, recipients, sender='n... | [
"abdulhamid@outlook.com"
] | abdulhamid@outlook.com |
e21b264fb3c5ee2d9b6005ac4cb486676ec6f037 | 1571ba5813f1519afa0e918300efcc4046cbed92 | /mindpong/view/widgets/mathquestions.py | 5dd0645f60af465ad3b1d72c986e261ed1aafa8a | [
"MIT"
] | permissive | PolyCortex/MindPong | 39c818ba4953dee34006601cbfb360840139ad76 | 9bd8cb65d8b8381812079816eeb1c84e848c854d | refs/heads/master | 2020-03-28T00:47:44.190325 | 2019-05-26T14:55:15 | 2019-05-26T14:55:15 | 147,450,125 | 30 | 4 | MIT | 2019-02-08T01:49:40 | 2018-09-05T02:46:14 | Python | UTF-8 | Python | false | false | 7,484 | py | from os import path
from PyQt5.QtGui import QPixmap, QPainter, QTransform, QBrush, QColor, QFont
from PyQt5.QtWidgets import QWidget, QGridLayout, QVBoxLayout, QLabel, QPushButton, QComboBox
from PyQt5.QtCore import Qt, QSize, QRect
from mindpong.model.mathexercise import MathMode
from mindpong.model.services.mathque... | [
"c.onorato@hotmail.com"
] | c.onorato@hotmail.com |
6102489c6d7abe3000f9b55ae79b379645a95b46 | aea0de8f4ce09eb02a0a0f3bdfcf88798ab94716 | /code/utl.py | c492edba9b2e2278edaa59dd159809718ce95d04 | [] | no_license | drweng11/Image_Search_by_CNN_and_KD-tree | 5ac7333dbd9dba441414508293736855a27ac99c | b13960c23df6c233c7fd5b91c4216127ed548686 | refs/heads/master | 2021-03-14T02:19:43.260395 | 2020-03-12T01:53:37 | 2020-03-12T01:53:37 | 246,730,314 | 1 | 0 | null | 2020-03-12T02:59:01 | 2020-03-12T02:59:00 | null | UTF-8 | Python | false | false | 423 | py | # global file paths for images, vectors of images, k-d tree of features of images
import json
import os
img_dir = os.path.join(os.getcwd(), "geological_similarity/geological_similarity")
d_dir = os.path.join(os.getcwd(), "d")
tmp = os.path.join(d_dir, "img_f.json")
if os.path.exists(tmp):
img_f = json.load(open(tmp... | [
"noreply@github.com"
] | noreply@github.com |
84a20b14945dc653bd5f47c1641a2197e13a3b4f | 61f61dca689e1fc7e870551f2ab39ee3d178cbe3 | /demo3.py | 66b0d4d258511cdf24a19d2b8578fc2dba5ff9b9 | [] | no_license | UrsaKl/Fmf-prog2 | 00da304d092b3dd1ee22c12b7257cb6957441bba | 9da885e4bb27f9226f049818879de48a92f6e683 | refs/heads/master | 2021-09-09T02:05:58.794232 | 2018-03-13T09:35:19 | 2018-03-13T09:35:19 | 125,019,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,476 | py | # -*- encoding: utf-8 -*-
# Aplikacija, ki odpre okno, ter vanj postavi dva guma in števec.
# Edina razlika med to aplikacijo in demo2.py je razporeditev
# elementov, ki so tu postavljeni vodoravno.
from tkinter import *
class Stevec():
def __init__(self, master):
'''V okno master postavi dva gumba in št... | [
"ursa.klun1@hotmail.com"
] | ursa.klun1@hotmail.com |
a37fe872d98835c3c5beccc99944c4878d158b3a | aada8b20e30075873e3d1b3bbbeb3fe93cee5509 | /www/booksell/demo.py | 05cab3b560c0c3114a34f80759e796714d722995 | [] | no_license | deepak101199/frappe-training | c3043f46fe442a338120f68ac34ad24edb0c17b2 | d8ebf4174569914c17f8b7aed02d308a2ab5247f | refs/heads/main | 2023-08-01T19:50:43.112823 | 2021-09-11T05:26:18 | 2021-09-11T05:26:18 | 405,291,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | import frappe
def get_context(context):
form= frappe.get_doc("Article Library","deepak")
context={
"form":form
}
return context
| [
"deepak@htsqatar.com"
] | deepak@htsqatar.com |
ca42f02af10ca35b68749902215dcc8c12068f13 | d832d79e61b86f6a7e1ebe5b9dcf6b28ebf23cb1 | /revnum.py | 0e2228dc6fa415c46244ad0d3cc696042920d649 | [] | no_license | moneshvenkul/guvi_player | 5f12657a2efc5db9385543f970ef0238cdfacfaf | 84cdd0cd3de3e77e50c871bc7cd7f115f1f40de0 | refs/heads/master | 2020-05-01T14:27:21.058668 | 2019-03-25T08:15:33 | 2019-03-25T08:15:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py |
n=input()
x=n[::-1]
print(int(x))
| [
"noreply@github.com"
] | noreply@github.com |
15f32a814e83cba8fef03a31fd3a23279ace264f | 4f66c5595170b4a95e44871b21850317b1994185 | /chatapp/asgi.py | 6cbb74809f9eeb6c1ac0128645d12bd4a9c0cfc2 | [] | no_license | ertprs/chatapp-1 | edf19f0973128409ec36c52666d527638f4d4eae | ed17817fea8951fefc8eef34f4b5f4045e24d1e8 | refs/heads/master | 2023-02-20T07:38:59.845362 | 2021-01-26T18:29:36 | 2021-01-26T18:29:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | """
ASGI config for chatapp project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'chatapp.setti... | [
"chiks@JP-DellInspiron.localdomain"
] | chiks@JP-DellInspiron.localdomain |
af616b6dd196dcdd766349de6d010df0c2a64965 | 790dbb8215c78417d9c82b8f3fe5b6d432d77e1d | /src/taqos/compiler/compiler.py | e76fd9c723d6b4aa602b541ec136ab8962c178d1 | [] | no_license | TAQOS/TAQOS | e5de8b04bd1e4489d4881a7ee31094f5af9590e0 | 19c37a7e735b0f34438f10b63994cdc9e1e6263c | refs/heads/master | 2021-01-21T12:21:14.813045 | 2017-09-01T23:08:53 | 2017-09-01T23:08:53 | 102,067,356 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,608 | py | ###############################################################################
#
# compiler.py - A functional quantum instruction compiler
#
# Authors: Harley Patton
# Created on: July 12, 2017
# Last modified: July 18, 2017
#
###############################################################################
imp... | [
"hpatton@berkeley.edu"
] | hpatton@berkeley.edu |
ef212dde41a0e9938855d073910b57b3e7e74312 | d7b5b213a5e6d168282cc167a2d102282bf9e2b9 | /warpCTC/lstm_warpCTC.py | 21b329b191161ab455e7efe7e78aa1e0ad945a4c | [] | no_license | aayn/lstm_ctc_ocr | 4ba166f8358495a5e3d2bb4ee7448c1bda9bd2ff | 4f4614b3ba73b9e73738e352e746851fd482323b | refs/heads/master | 2021-01-01T17:50:46.030801 | 2017-07-20T05:41:13 | 2017-07-20T05:41:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,575 | py | import os,sys
#import config
import numpy as np
import tensorflow as tf
import random
import cv2,time
import logging,datetime
from tensorflow.python.client import device_lib
from tensorflow.python.client import timeline
import warpctc_tensorflow
import utils
# os.environ["CUDA_DEVICE_ORDER"]="PCI_BUS_ID"
os.environ["C... | [
"lovesscott@126.com"
] | lovesscott@126.com |
e618fc1171e4328ad1c420c72fa14a71f854bbd6 | dcadc3129dbd883859db1ee57e277afb58e93c5c | /geekshop/mainapp/migrations/0004_product_is_active.py | cbcafc2195b2e139f096dfb9ef0223210a0936a3 | [] | no_license | Valeriitsoy/geekshop | 97908643575a3ad0bde7ddf1a395bc4e14943d44 | a6ee5aae6ddfd95cce241d3e590668edcea36bab | refs/heads/master | 2022-12-03T07:17:54.406526 | 2020-08-18T11:43:24 | 2020-08-18T11:43:24 | 287,907,675 | 0 | 0 | null | 2020-08-18T11:43:25 | 2020-08-16T08:54:48 | null | UTF-8 | Python | false | false | 439 | py | # Generated by Django 3.0.8 on 2020-08-14 06:33
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0003_productcategory_is_active'),
]
operations = [
migrations.AddField(
model_name='product',
name='is_ac... | [
"17a0120@gmail.com"
] | 17a0120@gmail.com |
679c6c3e2e7647af24f83a3c3aeecd95e5dbd28f | b07c0e1e858e12800a9d0a3560e68d4c4f36a1a5 | /blog/migrations/0002_messagepost_image.py | 24727db7c1319cd84d90b8c1e6695b6d998be45e | [] | no_license | Zubanich/Post_web_serv | 161f1fc7e4d120d1086676134335755534036c30 | 46a7605e100f82661247b6dce777f3aa3e1bd8a6 | refs/heads/master | 2022-12-09T08:16:53.189931 | 2020-08-25T13:04:11 | 2020-08-25T13:04:11 | 289,505,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | # Generated by Django 3.0.6 on 2020-08-20 15:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='messagepost',
name='image',
fi... | [
"vitalikf999@gmail.com"
] | vitalikf999@gmail.com |
33847dcb3728c93aaad581a6ac27ade5e2f7d2f3 | dbe56f845d78eedf009830d4662a01b774321a4f | /AreteMaster/config/Model.py | bcb84c9edfaeb474085ca0d610e62841de034855 | [] | no_license | qsorix/rpt-qrx-msc | 93abedef615a5b32cd237a9c692c73377869a2a0 | c21192c66bcd8211d5924e6902a408e7f9645a01 | refs/heads/master | 2016-09-06T19:21:34.983832 | 2011-06-23T14:20:51 | 2011-06-23T14:20:51 | 741,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,800 | py | #!/usr/bin/env python
# coding=utf-8
from BaseMixins import NamedMixin, AttributedMixin, InterfacesMixin, BindableMixin
from common import Exceptions
import Utils
class Model(NamedMixin):
""" Konfiguracja modelu. """
def __init__(self, name):
self.rename(name)
self._hosts = []
self._l... | [
"qsorix@rydznet.pl"
] | qsorix@rydznet.pl |
d2299f8dbdaa3a92aa3e1d40cecbedee9b19b247 | 2d0e922fe01b89ee74166c7e7ae228dd26657ac7 | /alphapose/yolo/bbox.py | 999424173fe863433891fbde8b574adccaa9a488 | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | accountcwd/pose-estimation-lite | 6b985c283629a395e6b49feaa8814c916299f3b1 | 36b6fa534c04a909d5722ace90a199c9590bb2eb | refs/heads/master | 2023-04-02T06:00:08.184636 | 2020-09-16T08:19:24 | 2020-09-16T08:19:24 | 165,012,573 | 1 | 0 | MIT | 2022-11-21T21:11:07 | 2019-01-10T07:33:05 | Jupyter Notebook | UTF-8 | Python | false | false | 3,130 | py | from __future__ import division
import torch
import random
import numpy as np
import cv2
def confidence_filter(result, confidence):
conf_mask = (result[:,:,4] > confidence).float().unsqueeze(2)
result = result*conf_mask
return result
def confidence_filter_cls(result, confidence):
max_score... | [
"caiwd@adnonstop.com"
] | caiwd@adnonstop.com |
711dd107fd962bf7e8726ed7852b46de2aee3510 | 78333f46914cbbb4f7fd02c53f267acbf2c11354 | /turkish-deasciify-python2 | 13abfbca6d42954a1da359b17dec823904a6bf8a | [] | no_license | tabilab-dip/turkish-deasciifier | 0d29e64d9de9c88c42d66503a30a97bc740966e8 | 665154c734b09485c3d11ce0038cd121dd109594 | refs/heads/master | 2023-01-24T15:22:53.347660 | 2020-10-26T08:24:16 | 2020-10-26T08:24:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
from turkish.deasciifier import Deasciifier
class Deasciify:
"""
This is the commandline utility for deasciification.
Example usage:
$ echo "Opusmegi cagristiran catirtilar." | turkish-deasciify
$ cat somefile.txt | turkish-deasciify
"""
... | [
"emre.sevinc@gmail.com"
] | emre.sevinc@gmail.com | |
a88dae55f0ac43b809cc54c2c5d998fc5923531d | 5b9af6e80cd5ffd1089960dba70143b947150245 | /OpenCV/text_book/opencv_practice_answer/05-cv-05-05-geometric-rotation1.py | 4f5423e06cca557aefba8f02cc71f1e26b546569 | [] | no_license | bigdatachobo/Study | 4c0c89c8c5f2e132383fc7b15ac0270f2c98f9dd | 380dcdaf39803202dcdbf673f1b4665f1c4d07df | refs/heads/master | 2022-05-14T19:40:35.179414 | 2022-04-29T14:13:39 | 2022-04-29T14:13:39 | 247,881,646 | 2 | 16 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | import sys
import numpy as np
import cv2
import math
src = cv2.imread('images/parasol.jpg')
if src is None:
print('Image load failed!')
sys.exit()
rad = 20 * math.pi / 180
print(f'pi: {math.pi} rad: {rad}')
print(f'cos: {math.cos(rad)} sin: {math.sin(rad)}')
aff = np.array([[math.cos(rad), ma... | [
"noreply@github.com"
] | noreply@github.com |
841c6252f1df5b2bbe35fbd711d0954d4228be4d | 239f25143c50122fe157f4bf7c6e8024eb0d403f | /graphene-sqlalchemy/src/schema.py | f2f5c503242a38c3c35dc3ae0f7382de4d559f60 | [] | no_license | AiOO/just-try | 9dd282d22393615ee1807cbbd8b84212190277bb | 9a75e037bba84a74f4bafeb8c478bf7aa40805d9 | refs/heads/master | 2020-08-12T18:02:08.331396 | 2019-10-13T12:31:23 | 2019-10-13T12:31:23 | 214,815,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | import graphene
from graphene.relay import Connection, Node
from graphene_sqlalchemy import SQLAlchemyObjectType, SQLAlchemyConnectionField
from .models import Customer, Scooter, db_session
class CustomerNode(SQLAlchemyObjectType):
class Meta:
model = Customer
interfaces = (Node, )
class Custom... | [
"ahnkiwook@gmail.com"
] | ahnkiwook@gmail.com |
55743f3d2b0554b0a7e09c22bb704d50ae117e52 | 0762ffd7f9526e047d5c8789ea07a4af5c06df04 | /week2/part 2/song.py | ad9311d94bae3a9700a237f70d6ee1b65ba9cb66 | [] | no_license | valentina-zhekova/Hack-Bulgaria-Programming-101 | cf0ff44f9b223eaf9006fd624b4050e699ef14a4 | bb2e116a0fa4edd0751a02f8798d7a22adca31c2 | refs/heads/master | 2018-12-28T05:27:21.567588 | 2015-04-13T17:34:31 | 2015-04-13T17:34:31 | 25,042,109 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import json
class Song:
MAX_RATING = 5
MIN_RATING = 0
LOW_BITTRATE_UPPER_LIMIT = 200
def __init__(self, title, artist, album, rating, length, bitrate):
self.title = title
self.artist = artist
self.album = album
self.rating = rating
self.length = length
... | [
"valentina.p.zhekova@gmail.com"
] | valentina.p.zhekova@gmail.com |
b5bef37cee30db9f9a400e9731d990ac9ff369b6 | 82fb4d94b6919f598110594c2bf25a9b4035d798 | /10주차/code08-07.py | 4833d71928bb1e443dc68aeeb5953faa87637a8d | [] | no_license | namseohyeon/python_class | 391d6e89533de40ca04210b7d4ca022708d59a43 | 6127e5ea9abd073ff3afb4a61864881d08532f33 | refs/heads/main | 2023-04-27T16:15:38.428787 | 2021-05-14T11:34:10 | 2021-05-14T11:34:10 | 367,330,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | import turtle
import random
from tkinter.simpledialog import *
inStr=''
swidth,sheight=300,300
tX,tY,txtSize=[0]*3
turtle.title('거북이 글자쓰기')
turtle.shape('turtle')
turtle.setup(width=swidth+50, height=sheight+50)
turtle.screensize(swidth,sheight)
turtle.penup()
inStr=askstring('문자열입력', '거북이 쓸 문자열 입력')
... | [
"syn5421a@naver.com"
] | syn5421a@naver.com |
5eebf932106d0aa7465e7b768f6b60b882965b38 | a87384e10f25d22e26ab13c5b410618c14a62df2 | /mysite/ntp/views.py | d9290e9e79488186f0b59c9307f21853321225a0 | [] | no_license | vinmazzi/Remote-Manager---UI | 7e7b7de7e24d158c939727639a2da40cbbe77709 | 13a3c596aaee7ab7a225be9698ddb2795dc28ceb | refs/heads/master | 2021-09-01T16:56:43.838029 | 2017-12-26T17:38:21 | 2017-12-26T17:38:21 | 115,570,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from django.urls import reverse
from group.models import Group
from mysite.utils import Utils
from .models import Ntp
from .forms import NtpForm
import json
# Create your views here.
def ntp_redis_format(ntp):
servers_a... | [
"vinicius.mazzi@gmail.com"
] | vinicius.mazzi@gmail.com |
fff8932d0a09bc067fec2d536b1fd22f4b1c92a0 | e56f01691390fd9990e52f89c6021089fdf8a3af | /leetcode_journey/Q278_First_Bad_Version.py | 3b900618fb27dadb480e5ebec1177922968a6c8e | [] | no_license | arnabs542/onebroccoli | 5a71029877355c71a08e55ebac41d22922bda8d2 | 244ae263a2c96bbda0fa10b29a117499deb183ce | refs/heads/master | 2023-04-24T01:06:41.718637 | 2021-05-19T05:09:56 | 2021-05-19T05:09:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # -*- coding: utf-8 -*-
"""
You are a product manager and currently leading a team to develop a new product.
Unfortunately, the latest version of your product fails the quality check.
Since each version is developed based on the previous version,
all the versions after a bad version are also bad.
Suppose you have ... | [
"three.broccoli@gmail.com"
] | three.broccoli@gmail.com |
96b597ceabbcf44cf363aca03c5c644a6dc08874 | 234b9192b32a60d5946b5b6f82ca1d39219c7404 | /year_2022/day_14/main.py | d3cd07dfb872b66abe7129ca977f6b08693fa8d1 | [] | no_license | lhn1703/advent_of_code | ed17088955f9b45fe6c50cabd15d2a8bc6dafe5e | 48961554d89a7648fa9ef60b3dadaed177936452 | refs/heads/main | 2023-01-23T01:26:50.978602 | 2022-12-24T06:36:10 | 2022-12-24T06:36:10 | 566,555,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,886 | py | with open('input.txt', 'r') as input_file:
input_text = input_file.read().splitlines()
grid_zize = 600
map = {}
for y in range(grid_zize):
for x in range(grid_zize):
coord = (x,y)
map[coord] = '.'
source_coord = (500,0)
map[source_coord] = '+'
for line in input_text:
input_list = line.spli... | [
"55109682+lhn1703@users.noreply.github.com"
] | 55109682+lhn1703@users.noreply.github.com |
88a5b2b4fd0da877b9c61c64b8cbb25dec8a8493 | d64289adc0908134bf97cbce2d9c5f305a8042d0 | /groupdocs_conversion_cloud/models/otp_load_options.py | 5a17f2da8e57ddbe68c5919dc2cdfdf15c5f4a30 | [
"MIT"
] | permissive | groupdocs-conversion-cloud/groupdocs-conversion-cloud-python | 07cfdabb6584e4f9835c25ff96a6053ef3a54596 | 496f307bc0b776314fd5f56781fb0e71b0b4985e | refs/heads/master | 2023-08-30T22:12:43.070658 | 2023-08-23T17:08:13 | 2023-08-23T17:08:13 | 179,628,452 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,622 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd" file="OtpLoadOptions.py">
# Copyright (c) 2003-2023 Aspose Pty Ltd
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# ... | [
"product.team@groupdocs.com"
] | product.team@groupdocs.com |
9d04ced9a977b0813099e3e048af8c764a92ffc9 | 1d88ed99e2f01b6b0faa7acf762543f41569380c | /top/table/tests/test_returns.py | 7264e71d32ed00d88f79d614faa8c1cfeef75cdb | [] | no_license | loum/top | be0ae6951ed7d5834d14f96403d6cd1dc9d008a4 | 4d9aae6297793822b6de28b65f7639a4b2e6dcfa | refs/heads/master | 2016-09-10T10:38:41.312180 | 2014-06-05T05:44:48 | 2014-06-05T05:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | import unittest2
import os
import datetime
import top
class TestReturns(unittest2.TestCase):
@classmethod
def setUpClass(cls):
cls._r = top.Returns()
cls._db = top.DbSession()
cls._db.connect()
db = cls._db
fixture_dir = os.path.join('top', 'tests', 'fixtures')
... | [
"lou.markovski@gmail.com"
] | lou.markovski@gmail.com |
4903114ec098f48495737d56760f7085f758048c | 57e7fbf2de00a24e841014c0c99eec64426668c2 | /1_fundation/week-04/day-03/a06extend.py | ce0b2a92cfdfbe822bec18f48890191f6f2703d4 | [] | no_license | green-fox-academy/tamaskamaras | 520b9711fb6551e54f56ee25ec066746d6202568 | 0e733bd9ee830691619595429ab58609d35d9dd4 | refs/heads/master | 2022-08-23T02:57:17.335659 | 2022-08-15T18:38:05 | 2022-08-21T19:37:10 | 111,736,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py |
# Adds a and b, returns as result
def add(a, b):
return a + b
# Returns the highest value from the three given params
def max_of_three(a, b, c):
if a > b and a > c:
return a
if b > a and b > c:
return b
if c > a and c > b:
return c
# Returns the median value of a list given as... | [
"kamaras.tamas.viktor@gmail.com"
] | kamaras.tamas.viktor@gmail.com |
e4332e4ef978db7c649edb93f5d98d76d501b022 | 4ca03cd4a5f29cc7bb1fc68c752215676a8faf1b | / valid_parentheses/ valid_parentheses.py | 40ee5fd698734ecc9cde6a36a8eade8b0fdbae51 | [] | no_license | nabechin/leet | 54ac6e2fb84c0c51b3f7a61b69208f2ecc75b9e2 | 040f46aaa752b4e3e63d06af831966d50d234e41 | refs/heads/master | 2023-04-09T21:34:33.025409 | 2021-04-28T14:23:45 | 2021-04-28T14:23:45 | 351,454,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | class Solution:
def isValid(self, s: str) -> bool:
stack = []
d = {"{": "}", "[": "]", "(": ")"}
for char in s:
if char in d:
stack.append(d[char])
if char in d.values():
if stack == [] or char != stack.pop():
return... | [
"nabenabe0258@gmail.com"
] | nabenabe0258@gmail.com |
09e25e3ecd09d82e2d8d26a98534e44c51d986f6 | 12eb2e511a390d8d1eaee32cdb84b8343c153669 | /autosinaweibo.py | 2279b967863a009647ccadeeda66bbaaa62d8161 | [] | no_license | QianchaoLiu/autosinaweibo | 49e97e8e8e6c77112fe8cb00b7d69d9c85423e9a | 11376fc7f9ebb87e767fce3e6447cb9454f221de | refs/heads/master | 2016-09-09T19:04:37.373354 | 2015-06-08T12:00:13 | 2015-06-08T12:00:13 | 37,064,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py | # -*- coding: UTF-8 -*-
__author__ = 'liuqianchao'
import urllib2
import re
import time
import weibo
APP_KEY = '797443775'
APP_SECRET = '00bde1cb190286a234009713e5b9ddf3'
CALL_BACK = 'https://api.weibo.com/oauth2/default.html'
#NET
url='http://www.163.com/'
#NET
SLEEP_TIME_LONG=60
def run():
client = weibo.... | [
"liuqianchao@163.com"
] | liuqianchao@163.com |
ba3910d957182f1266449984de846549adfd32bc | bc441bb06b8948288f110af63feda4e798f30225 | /database_delivery_sdk/model/inspection/collector_pb2.py | 11b6c11be52fbd835afa5a03782fb0095af50566 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 4,328 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: collector.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 i... | [
"service@easyops.cn"
] | service@easyops.cn |
df36ea63fca0a142394d28b2872875004baf7f24 | bff819357c06ff58e199e3a52b6daeeb1b119152 | /Doc/posts/models.py | 5bcda4186341f0d7d1b9ce04d0fd4df6f31365f6 | [] | no_license | RealAnishSharma/DocDoc | 30e683611902704408d55693fd176a0e585efdbb | 2216155215c2868c12a373dd2060cdb44cd9646d | refs/heads/master | 2021-01-11T14:59:45.927889 | 2017-08-24T17:24:22 | 2017-08-24T17:24:22 | 80,273,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,013 | py | from __future__ import unicode_literals
from django.contrib.contenttypes.models import ContentType
from django.core.urlresolvers import reverse
from django.db import models
from django.db.models.signals import pre_save
from django.conf import settings
from django.utils.text import slugify
from django.utils import time... | [
"i123amanish@gmail.com"
] | i123amanish@gmail.com |
58b641f70e1213b09970e709077ad2b5b6c645e5 | 3079814662af371b7a009c7d1cfbe631842e8f37 | /zy_api_testing/views/scene.py | e2018c363b70a7748c52d5f42d1c69a52f782976 | [] | no_license | MannersMakesMan/maomaogougou | 47fb46c5d82ed8e1096f95c15e12ed2dafbe956b | 23e5a37a2315517ecb34cb5454158970c1ca4753 | refs/heads/master | 2023-06-07T12:35:39.469262 | 2021-07-05T06:25:50 | 2021-07-05T06:25:50 | 383,023,436 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,955 | py | from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from rest_framework.views import APIView
from drf_yasg2 import openapi
from django.db.models import Q, Count
from drf_yasg2.utils import swagger_auto_schema
from rest_framework.parsers import JSONParser
from system_settings.tools import success_r... | [
"zoujinhua@163.com"
] | zoujinhua@163.com |
f72712339cc187c4574fc8ad4a91106b89cb5f39 | 0f49a5e1daeb09742f87717e8f4849b87b1a9c44 | /src/dialogs/DialogUmlNodeEdit.py | 5c9ed16d21e86fbde26a233e0482e29a244a94d7 | [] | no_license | arita37/pynsource | 7ddc717972e3c8f8a1225f4d9ba196e03bfee5df | 57ed39ba112d97fc0af09669d6647952f6ae1e7c | refs/heads/master | 2021-02-04T09:03:10.796578 | 2020-02-06T06:31:19 | 2020-02-06T06:31:19 | 243,646,965 | 1 | 0 | null | 2020-02-28T00:42:02 | 2020-02-28T00:42:00 | null | UTF-8 | Python | false | false | 3,837 | py | # -*- coding: utf-8 -*-
###########################################################################
## Python code generated with wxFormBuilder (version Oct 26 2018)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################
impor... | [
"abulka@gmail.com"
] | abulka@gmail.com |
b8470124aca1a9ac6c50eb7d9381416115b3b1e9 | 3fa373ca2a87c904cd9084588b3f8b34ead3084a | /toDo/views.py | 58316bcfd245156daaa7c888af48aaa0e8f68671 | [] | no_license | Sylvia47/DjangoRestFramework_API | 9cbf92bdc41bdea34c9de5fd3f268e2dba83a160 | b4846bb766aa5b150f36777117f466c273ac3dbf | refs/heads/master | 2023-08-18T23:17:20.674876 | 2021-09-06T03:59:47 | 2021-09-06T03:59:47 | 397,963,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,428 | py | from django.shortcuts import render
from .models import Task
from .serializers import TaskSerializer
from rest_framework.response import Response
from rest_framework.decorators import api_view
from rest_framework import viewsets
# Create your views here.
@api_view(['GET'])
def taskOverview(request):
api_url = {
... | [
"via1100302047@gmail.com"
] | via1100302047@gmail.com |
49855f66a8807b20b110db000d92b593f3bf10f7 | 917fec52fd9e4fd9cdcf050533c6fcf10c032726 | /rbac/middleware/auth.py | 43d1ac3536fafc20981a6752c727c177dfcae675 | [] | no_license | zbk649276525/Thanos | e926383fd2dc2d17f343a84e6921ecafe364306b | 1d39bebc25f1357366e566e442c4f016e3fe84ca | refs/heads/master | 2021-05-08T10:24:44.655732 | 2018-01-30T12:26:35 | 2018-01-30T12:26:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,898 | py | import re
from CRM import settings
from django.shortcuts import render, redirect, reverse, HttpResponse
# from django.utils.deprecation import MiddlewareMixin
# 为避免一些BUG,把该类复制到此处进行继承
class MiddlewareMixin(object):
def __init__(self, get_response=None):
self.get_response = get_response
super(Middl... | [
"guixu2010@gmail.com"
] | guixu2010@gmail.com |
4185cfab062f97fc9aaf51e929e89a991778b14f | be3e7dbe6213a47f93c707a39cde7cdc0bf62ea5 | /ex24.py | ef3da2d7c8c035f17e363f8340c13dedbbee4fae | [] | no_license | bugzPDX/learn_python | 2996f6653e505e8711c9c7eafc3b6e63b429a2b0 | 3982c67fbc8a1d37d4bae75a5a9fc6f78efec131 | refs/heads/master | 2016-09-11T06:00:00.486310 | 2014-02-20T18:20:15 | 2014-02-20T18:20:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | print "Let's practice everything."
print "You\'d need to know \'bout escapes with \\ that do \n newlines and \t tabs."
poem = """
\tThe lovely world
with logic so firmly planted
cannot discern \n the needs of love
nor comprehend passion from intuition
and requires an explanation
\n\t\twhere there is none.
"""
print "... | [
"lhewusfresh@gmail.com"
] | lhewusfresh@gmail.com |
83b8c9d6c9fae47b31bd0ddf2372d7a503464eae | e4542b72ba9ee09c59b7202f96f89c4b5039c6e6 | /Project 7 SHA512/temp7.py | 4db237787fe2676c2d1018f9e4afbdccbbbb690e | [] | no_license | Mostafa-Ahmed-Kamal/Computer-Security | b54ba4a16563ad9e3387ac2a808f09547f7440de | 7ced3bdef0f70d850199d8c1b398f72515003a5c | refs/heads/master | 2023-03-16T12:32:00.415260 | 2018-05-08T17:49:52 | 2018-05-08T17:49:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,117 | py | #! /usr/bin/env python
__author__ = 'Siyi Cai'
import sys
from BitVector import *
if len(sys.argv) != 2:
sys.stderr.write("Usage: %s <Input file to be hashed>\n" % sys.argv[0])
sys.exit(1)
inputFile = open(sys.argv[1], 'r')
outputFile = open("output.txt", 'w')
message = sys.argv[1]
#Initialize Hash Buffer ... | [
"noreply@github.com"
] | noreply@github.com |
f8e9da36ddbcc3f59610866194a1676bdff287ad | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/90/usersdata/218/60729/submittedfiles/matriz2.py | 9c1a3e9aea2e3f724466e0e40fb3cef9566de708 | [] | 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,044 | py | # -*- coding: utf-8 -*-
import numpy as np
def somas (a):
lista=[]
cont=0
for i in range (0,a.shape[0],1):
cont=0
for j in range (0,a.shape[1],1):
cont=cont+a[i,j]
lista.append(cont)
for j in range (0,a.shape[1],1):
cont=0
for i in range (0,a.shape[0],... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
64fb02964d88454b6860c0fe5eaa39e1c0a2537e | af0abd1498e1e03811adf26a4595f8d30a13fe7f | /microblog/migrations/0002_user_is_staff.py | 319c42a9bcd3356dfdc33adde4da2c63ea1eb33a | [] | no_license | surazaz/Angular-with-Django | d5776f4d360eefe38f089a914e90674952df41a4 | 2cc9daea7a8543893f17edb946bc81986e39b65b | refs/heads/master | 2020-03-28T14:32:07.971669 | 2018-09-12T14:48:11 | 2018-09-12T14:48:11 | 148,496,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.1.1 on 2018-09-08 06:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('microblog', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='is_staff',
f... | [
"ronaldoacharya@gmail.com"
] | ronaldoacharya@gmail.com |
d65cd24779729870778746a3eb19630e6b559e4e | df2565dc0fadf6d0a39a2ff373097cbcb90d56ba | /atividade4/ronaldy_prates_exer_02.py | b69f2fbd14770949eedfda6c295ddfdcf50a85f3 | [] | no_license | ro-prates/algoritmos_em_bioinformatica | 65030f969ee639c58b7b8ff23e8efee049e5a63a | 1d2735b31e7ab5024058eaaab3be257dab86db2c | refs/heads/master | 2023-06-13T04:07:31.311462 | 2021-07-06T14:18:33 | 2021-07-06T14:18:33 | 362,634,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | from math import pi, sin, cos, tan
import numpy as np
import matplotlib.pyplot as plt
# definindo o intervalo
intervalo = 4 * pi / 150
# criando o vetor com os valores solicitados
x = np.arange(-2*pi, 2*pi, intervalo)
y = np.sin(x)
z = np.cos(x)
w = np.tan(x)
figura = plt.figure(figsize=(7, 7))
# plotando o gráfico... | [
"ronaldy1995@hotmail.com"
] | ronaldy1995@hotmail.com |
7206e3e1a0316ff242ff7ea827b2f49b0895b057 | 48bcb23217c2e0b6d1a4e0181767863a9a340f64 | /loginsys_blog/views.py | 19a0f43c842cf3648842379640474c9390946f6b | [] | no_license | dgunik/blog_valerii | be5838ca063d84b38361b4f68cc4f8d3c19ca6e8 | d5578e00928685bd9c0351a91f6e583e9ec035e4 | refs/heads/master | 2021-01-10T12:02:54.374726 | 2015-10-20T08:59:44 | 2015-10-20T08:59:44 | 44,593,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py |
from django.shortcuts import render_to_response, redirect
from django.contrib import auth
from django.contrib.auth.forms import UserCreationForm
from django.core.context_processors import csrf
def login(request):
args = {}
args.update(csrf(request))
if request.POST:
username = request.POST.get('u... | [
"dgunikv@gmail.com"
] | dgunikv@gmail.com |
1696ab27c3e48264cb57c41896ef177ace1008b3 | ea7c09b45fd365cc22575cc90d1a2ea2cdfd4581 | /marks input.py | 53e3ff244f13701d9adc53df86fb53505114556d | [] | no_license | Jatinmotwani-195/pyprograms | 667610916226a2153b7e9eee37237901dfab7149 | 50344f41500b43be40e3b987978262811ef859e8 | refs/heads/master | 2022-08-30T12:54:18.562237 | 2020-05-25T17:00:27 | 2020-05-25T17:00:27 | 267,011,186 | 1 | 0 | null | 2020-05-26T10:18:51 | 2020-05-26T10:18:51 | null | UTF-8 | Python | false | false | 176 | py | from array import *
str = input("enter marks")
marks=[int(num) for num in str]
sum=0
for x in marks:
print(x)
sum+=x
print(sum)
n=len(marks)
perc=sum/n
print(perc)
| [
"47933964+siddharthrangnani@users.noreply.github.com"
] | 47933964+siddharthrangnani@users.noreply.github.com |
5476028f4c5dcebaf53e44dd886e320a80e8fc4a | 2dde6e1e1ff99c08866d72b975665c6fe6550114 | /community/migrations/0001_initial.py | b681baed50830b17780f9b6df91982f450f6b6a8 | [] | no_license | AlexeyZatsepin/Reading-debating-society | cb66f3120b1509bbd386e9fe3dcbdfa82589a4dc | de3b6e1c20a6451ec65a2dfc161c9e0c854bf7d3 | refs/heads/master | 2021-03-27T16:01:07.137955 | 2016-05-20T12:49:27 | 2016-05-20T12:49:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,624 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2016-04-16 05:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | [
"alexzatsepin7@gmail.com"
] | alexzatsepin7@gmail.com |
b59c1244a1bfc097f9cb61954f38c8e7314f2645 | b0829274b8999b45855974a465950b3092f2019a | /util/generate_figs.py | df7835c404537c9fc87a0aa927432a3aa1ed6e94 | [] | no_license | chejunwei2/InterfacePhononsToolkit | 569762df1f78ecb82f19197a722820e5341d9902 | c13175c219d59d32f875af193c45edc2b83113e7 | refs/heads/master | 2023-05-29T13:23:11.774267 | 2021-06-12T20:31:56 | 2021-06-12T20:31:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,195 | py | # Generate plots
import matplotlib.pyplot as plt
plt.rc("font", size=18, family='sans-serif')
plt.rcParams["figure.figsize"] = (6, 5)
plt.rcParams['animation.html'] = 'html5'
def quickplot(x, y, xlab="x", ylab="y", plotlab=""):
fig = plt.figure()
ax = fig.add_subplot(111)
ax.plot(x, y, '-')
ax.set(t... | [
"noreply@github.com"
] | noreply@github.com |
be381b535efb39d255926c7acf23a032bf12952d | 3bf8bd23e75f495ee0b18fc005e97d96f6317866 | /pixelgram-cloud-service/gdrive.py | e6a83174c29e44d5e3ced46aefd1e52cba0f8d2b | [] | no_license | hbondala/PixelGram | 52b08a7b26be799a6a35f2656cc090ed7b7498f7 | d5b4305373224f9a5353ee7a63803f55434c03b5 | refs/heads/main | 2023-04-07T21:28:47.730460 | 2021-03-18T21:33:22 | 2021-03-18T21:33:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,722 | py | import io
import os
import tempfile
import zipfile
import json
from flask import jsonify, send_file
import requests
from config import SCOPES, CLIENT_SECRET_FILE_PATH, APP_NAME, CONNECT_TO, DRIVE_VERSION, IMAGE_SERVICE_URL
from apiclient.http import MediaIoBaseDownload, MediaIoBaseUpload
import googleapiclient.disco... | [
"darius@Krishnas-MacBook-Pro.local"
] | darius@Krishnas-MacBook-Pro.local |
0ac99364fe282b6028fd09ca971597815a392b8a | f19691ad834620e3139edc3c67bfc6dcd5588a9f | /testfile.py | dc49d8739e9b84987242f0699039d5902e18bbf9 | [] | no_license | mahi1997/Comp-network-project | e55f58233ce36ed73c641f7516726294e0ff27ac | 9e7aa9fd95b6e8f8f9cc0d8a336bb0e1c7c1aca3 | refs/heads/master | 2020-03-15T00:51:57.912397 | 2018-05-02T16:47:52 | 2018-05-02T16:47:52 | 131,879,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | import wx
import wx.lib.scrolledpanel
import socket, sys
import time
x=10
y=10
i=0
app = wx.App()
#First retrieve the screen size of the device
screenSize = wx.DisplaySize()
screenWidth = screenSize[0]
screenHeight = screenSize[1]
class MyPanel(wx.Panel):
""""""
#---------------------------------------------... | [
"mahi1997"
] | mahi1997 |
6da0809da0419c67d6c04a84455e648e3bae3525 | c1b754f3292ee32a47e8c8a7cd9b70c14aff3e66 | /manage.py | f6bb9e0b30b831627318f6db3862a2b0bc7d27f3 | [] | no_license | jmd10/betrTV | 7780ae587f9227936b602e739ac30b5500f3084c | 8f87fea7f492959a5d0d3e133a021f2ff4ca2106 | refs/heads/master | 2022-01-03T08:20:48.431248 | 2021-02-12T21:23:00 | 2021-02-12T21:23:00 | 184,366,643 | 0 | 0 | null | 2021-01-30T19:07:54 | 2019-05-01T04:02:11 | Python | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'betrTV.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportE... | [
"jason@lvl6.xyz"
] | jason@lvl6.xyz |
9366883d98e8c2cf8859d84f9649fdfeac722433 | 1c493bd83889198db190bb8a7c7812dc7be41826 | /6.00.2x/brute-force 2 bags.py | d55df9248eefe33475e21b00f010f03e9e92d1b6 | [] | no_license | TheShepord/hello-world | 174b6406e1f84b14331d5cfe76f9915f34fd1a25 | c4b8448eee37f1003a8937fd73c2e345d2c3d2e6 | refs/heads/master | 2022-11-21T10:28:41.556650 | 2020-07-22T19:14:43 | 2020-07-22T19:14:43 | 265,350,977 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | import random
class Item(object):
def __init__(self, n, v, w):
self.name = n
self.value = float(v)
self.weight = float(w)
def getName(self):
return self.name
def getValue(self):
return self.value
def getWeight(self):
return self.weight
de... | [
"lucastheshepard@gmail.com"
] | lucastheshepard@gmail.com |
506a6117896292b05b988883f40ad91a4cf882fa | 76cc186c6a2264158967b8ae40799493e2cf87a3 | /codigo_final.py | c42ef3d479c1b13bf5da43d0a6f985221821f380 | [] | no_license | Cleidiana/Hardware_RaspberryPi3 | 8e1673baf2ad9dfb492bba546dc13d9c4cedabf4 | a4d22904faae3f0d2cfae3827b9b3a2bf7912afa | refs/heads/master | 2021-01-20T17:47:09.876474 | 2017-05-09T18:19:31 | 2017-05-09T18:19:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,058 | py | import paho.mqtt.client as paho
import Adafruit_DHT
import RPi.GPIO as GPIO
import time
from time import gmtime, strftime
sensor = Adafruit_DHT.DHT11
GPIO.setmode(GPIO.BOARD)
pino_sensor = 25
def rc_answers_to_strings(argument):
switcher = {
0: "Connection successful",
1: "Connection refused - inc... | [
"noreply@github.com"
] | noreply@github.com |
42f5937809de9687abfd675734fa112492111158 | 0a23ce7cd10e2ede4f42752694961a432916be13 | /tyfa/preprocess/matrix.py | fbe9dc86501f2c11eb7e685878d8bbfa126e2146 | [
"MIT"
] | permissive | J41R0/Tyfa | 8121ddc16bcd19926aae22c24af0876cc81cb99a | 91db6607cc82497c9b4b172c688af6d31ddc9d62 | refs/heads/master | 2023-07-07T09:03:27.246920 | 2023-07-04T08:17:00 | 2023-07-04T08:17:00 | 255,647,666 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | from enum import Enum
import numpy as np
from numba import njit
@njit
def _find_relation(vector_a, vector_b) -> int:
if len(vector_a) != len(vector_b):
raise ValueError('Vectors must have the same length to be compared')
last_relation = 0
for i in range(len(vector_a)):
if vector_a[i] > ve... | [
"jairo.lefebre@gmail.com"
] | jairo.lefebre@gmail.com |
6d28982cf1e132218f6d4435c6db649b001598f2 | 97e904749a0f2e06ab3a42935b688a9207f2b072 | /run_glue.py | 59bfaca3ded4a504a47feeff78777ebf5ce17ea6 | [] | no_license | Kyeongpil/edgebert | 3feca1d0f73b280b88078b2062b400348e7fb40a | f24d1e12735646166bbf2a8e3a5614056a99cb23 | refs/heads/main | 2023-01-08T23:08:25.505399 | 2020-10-28T08:26:08 | 2020-10-28T08:26:08 | 319,509,850 | 2 | 1 | null | 2020-12-08T03:04:17 | 2020-12-08T03:04:17 | null | UTF-8 | Python | false | false | 41,706 | py | # -*- coding: UTF-8 -*-
# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the L... | [
"noreply@github.com"
] | noreply@github.com |
0b1baab7cbd5a7bc458ef0241dfac8962bdbc475 | cab8de1a69c9aba9505989d5eaacfcc461b889fc | /handwriting/captcha_gen.py | c071bcf08f40b0e74e58715ceaa6a41b00d13804 | [] | no_license | dsjzzwdy0/Image | 76f2ae3fbd98d19b075db77656e93e965a456855 | e32135725bc3b9bf9dd8d21b5287ea5897e255a8 | refs/heads/master | 2020-06-13T23:42:09.372799 | 2019-08-11T23:56:41 | 2019-08-11T23:56:41 | 194,825,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,055 | py | # -*- coding: utf-8 -*-
from captcha.image import ImageCaptcha # pip install captcha
import numpy as np
from PIL import Image
import random
import cv2
import os
from handwriting import *
# 验证码中的字符
number = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
# alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', ... | [
"dsjzzwdy0@163.com"
] | dsjzzwdy0@163.com |
efcd1f6da93da3bf75a7685d2f07a65c5f588702 | 52ab2da7b131643a344ee5344d8f35aebd6e2eed | /WebProject1/myvenv/lib/python3.6/site-packages/sqlalchemy/event/legacy.py | 049df81aafa7b163be69d6561ad9e9e6ff7ef534 | [
"MIT"
] | permissive | ucsb-cs48-w19/5pm-findtheroommate | cd6db6c4cf3ee6f159b04456ba13b1ef684c7546 | d9d01b95c478e7493b5b32c8b56ceed00578b188 | refs/heads/master | 2020-04-16T01:00:16.617610 | 2019-03-19T20:42:38 | 2019-03-19T20:42:38 | 165,158,037 | 2 | 1 | MIT | 2019-03-05T00:46:12 | 2019-01-11T01:28:11 | Python | UTF-8 | Python | false | false | 5,900 | py | # event/legacy.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""Routines to handle adaption of legacy call signatures,
generation of deprecation ... | [
"tengyue@umail.ucsb.edu"
] | tengyue@umail.ucsb.edu |
73b81f0845a5b41f34ecc7a7e769c1c67878eb8a | 37e1bbd156eb642113500c229b4b1413f6ace2d4 | /StudentGrade/Repository/file_repository_notare.py | f474bcf9837890ab02cc99865c143f08843b6641 | [] | no_license | PatriciaRomaniuc/Project_Python | 9d253e62b5f6fd9ee78bc433f63ac91f71d50555 | 39563b93111690424da9232a5fdcaa642fbf73ae | refs/heads/master | 2021-02-16T07:01:44.150224 | 2020-03-04T18:47:43 | 2020-03-04T18:47:43 | 244,978,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | from Repository.repository_notare import repo_notare
from domain.Notare import notare
class NotareFileRepository(repo_notare):
def __init__(self,fileName):
repo_notare.__init__(self)
self.__fileName=fileName
self.__loadFromFile()
def __loadFromFile(self):
try:
... | [
"61793308+PatriciaRomaniuc@users.noreply.github.com"
] | 61793308+PatriciaRomaniuc@users.noreply.github.com |
bf1a7529e2315658f50cc0c20cf59fc4d0d940fd | ababed0e1a54f4888440edd20cbfdf6beb3cd20d | /backend/menu/api/v1/viewsets.py | 67ee4177ad30850e6ca22a7f0ce52813b2fbd299 | [] | no_license | crowdbotics-apps/asd-18920 | 1766fa6c4334d1c1f8a97f6aa4da8961742bcc2c | 5022fcd5f0b0522ce53438270e2ae65d1b652dab | refs/heads/master | 2022-11-17T15:02:25.688634 | 2020-07-15T16:09:00 | 2020-07-15T16:09:00 | 279,915,037 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | from rest_framework import authentication
from menu.models import ItemVariant, Country, Item, Category, Review
from .serializers import (
ItemVariantSerializer,
CountrySerializer,
ItemSerializer,
CategorySerializer,
ReviewSerializer,
)
from rest_framework import viewsets
class CategoryViewSet(view... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
e7c775bcc5abda509180e59c1f3eb675f5c42f8a | 3a9a074ae369a508a44ac18e94df3a6055c6e76d | /Alerts/whatsapp.py | 4aef65617b9a751c60c53b65910461943f64c611 | [] | no_license | shibinmak/security-s-s | 6bb7d112bf311c89230a223542ab604b3531f66b | 606db993443be7e0efaefc16505504bd8644fa06 | refs/heads/master | 2020-03-29T18:22:23.630899 | 2018-10-16T17:10:29 | 2018-10-16T17:10:29 | 150,208,457 | 10 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | """
** coded by shibinmak on 3/10/18 **
** I pledge to do my best **
** May all beings be Happy,Peaceful,Liberated **
"""
from twilio.rest import Client
import config
from datetime import datetime
timestamp = datetime.now().strftime("%d-%b-%Y | %H:%M:%S").upper()
location = config.Location
admin = config.admin
class... | [
"m.shibin96@gmail.com"
] | m.shibin96@gmail.com |
62d427de0b8a6437ed65d6ea25f05f0cd9c99289 | b30420bd0fcecf8420f9483f3072446202024249 | /projects/admin.py | 9b6d3b4a31e947af5f124e1e7d4ef03b3c031c08 | [] | no_license | TestUserAutomate/DjangoList | 25275513d9d546376e539df18ae13f50793dada6 | efe31dec2c12ca642812229de2409177fff4dad3 | refs/heads/master | 2023-07-31T21:18:15.012589 | 2021-09-10T08:44:24 | 2021-09-10T08:44:24 | 405,013,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.contrib import admin
from .models import Patient
# Register your models here.
admin.site.register(Patient) | [
"testuserautomation213@gmail.com"
] | testuserautomation213@gmail.com |
a868176f862739f842c05c4e3447d5f92ff293ac | b95fa99bb1ba2210b73251614d2613363c37f932 | /deploy/dot-product/scripts/dot-67.py | e5a37f1559951e11ad8cf6b305503d2eb3c83ad0 | [] | no_license | lingxiao/learn-adj-relation | d1a8894fefc776ec0bd414b5f038361ed4b79d16 | dc4285af19e53d7e2d015eb6394f6c601c707da0 | refs/heads/master | 2020-12-30T16:27:51.531268 | 2017-06-07T18:59:48 | 2017-06-07T18:59:48 | 87,714,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | ############################################################
# Module : A series of measures on the graph for experiments
# Date : April 2nd, 2017
# Author : Xiao Ling
############################################################
import os
import numpy as np
from utils import *
from scripts import *
from app.co... | [
"lingxiao@seas.upenn.edu"
] | lingxiao@seas.upenn.edu |
83d838c8b6cc29b3d65d7488daded2f44594517b | ade2dab5dedea4e347deade481ae18c4432ed7bd | /server/app/report/tests.py | bfebdf7fb97cd4d20c739d21bf11a34790023e10 | [] | no_license | sagett/spamReportingApp | a1bb1e223ad257a1d9d8c1ebff0d3c48776deb4b | cf124d4517cb53992126310cec081a6e1fc2a10c | refs/heads/master | 2022-07-11T06:30:01.863124 | 2019-06-19T10:33:06 | 2019-06-19T10:33:06 | 192,703,072 | 0 | 0 | null | 2022-07-01T22:16:18 | 2019-06-19T09:36:47 | Python | UTF-8 | Python | false | false | 3,155 | py | from django.test import TestCase
from .models import Report
import json
from rest_framework import status
from django.test import TestCase, Client
from django.urls import reverse
from django.core import serializers
from .serializers import ReportSerializer
client = Client()
class GetAllReportsTest(TestCase):
def ... | [
"tiam_taheri@yahoo.de"
] | tiam_taheri@yahoo.de |
b00578cb33932e544783d41cc72fa666201bb10e | 4fd0a43fb3fdbc5ce355b050d0a6506b97bb5d79 | /src/basic/mqtt_client.py | f5bb543c0f8e7a81272e10ad1741abd0064590ae | [] | no_license | Shoumik-Gandre/wn_miniproject | a175e871b0931e6bcb324fbcf81b3dbbd09186e6 | 9a61a27c7eee15486cf688a3d66ceae23f8d5b47 | refs/heads/main | 2023-04-16T13:48:53.383291 | 2021-04-29T13:55:45 | 2021-04-29T13:55:45 | 362,832,371 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,001 | py | import paho.mqtt.client as mqtt
# The callback for when the client receives a CONNACK response from the server.
def on_connect(client, userdata, flags, rc):
print("Connected with result code " + str(rc))
# Subscribing in on_connect() means that if we lose the connection and
# reconnect then subscriptions... | [
"shoumikgandre@gmail.com"
] | shoumikgandre@gmail.com |
7aadc3cd50d7848abcb545a776c297391bba40e5 | 8da116f37a6ff64a9649b895ff8ffc88823aaaef | /python.py | 6f0a068561ba80bf1efaaccf070d40d6f110f96b | [] | no_license | illja/python | 5c8cf9f90935eb1d391d2121a09b57786dd8a30d | e6d33e903998f4492f03394eaf0ee034db6d313e | refs/heads/master | 2021-08-24T07:26:00.176982 | 2017-12-08T16:34:46 | 2017-12-08T16:34:46 | 113,594,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,523 | py |
import sys
import math
class silver():
wTree = None
b = None
def __init__(self):
self.wTree = gtk.glade.XML("m.glade")
dic = {
"exit": self.quit,
"add_in_hide(1)": self.add1,
"add_in_hide(2)": self.add2,
"add_in_hide(3)": sel... | [
"noreply@github.com"
] | noreply@github.com |
48730b554266d5b07e5fccf53e63ab5aaf815f20 | c43b13b870e9aa1e504a89d7db72f99de5dc91f5 | /modules/no_match.py | 992f0af5e617ac09235d8e68bf4040f785d637ec | [] | no_license | giblet37/myAI | 7c8d3b566396558f62ec55fe74d00c24042a471e | 926ce9b01be8edf2a732162dda1d6a42bcd0407c | refs/heads/master | 2020-03-23T11:57:04.591654 | 2018-03-30T09:35:42 | 2018-03-30T09:35:42 | 141,528,112 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | """
File Name: no_match.py
When no module intents, patterns etc match we use this one
"""
from module import Module
from task import ActiveTask
import settings
import log
from six.moves import urllib
class AnswerTask(ActiveTask):
def match(self, intent, jsonText):
return False
def a... | [
"kiza.soza@gmail.com"
] | kiza.soza@gmail.com |
fe3c517cf3a0f1aac558e5f06d1413e3bce2d6e1 | 60fdf0af53f4d44674652378e3cbdcd14e32ae99 | /theMetaCityMedia/api_1_0/views.py | 90c34127a8457e143c4b9e37a23620fc9e75fa2a | [
"MIT"
] | permissive | dougmiller/theMetaCityMedia | 442acb0e9fbf8acd9f441b87a8bd7eb67a4d1c29 | 89af0e711bb086abf4d93e6b6927f369740b59fc | refs/heads/master | 2020-12-24T06:24:12.658563 | 2017-09-14T11:26:10 | 2017-09-14T11:26:10 | 17,270,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,299 | py | from flask import Response
import json
from theMetaCityMedia.models import Video, Audio, Code, Picture, MediaItem, Tags
from . import api_1_0
from sqlalchemy.ext.declarative import DeclarativeMeta
from sqlalchemy.sql.expression import func
class AlchemyEncoder(json.JSONEncoder):
def default(self, obj):
... | [
"dougmiller@themetacity.com"
] | dougmiller@themetacity.com |
99e32b194dd73b28312781eaf6c9ce0b1863be68 | 2d3db494e1920267c295c2c2a19b28986d5cbc7f | /print_db.py | 0ec167b9b37f3f6b37cc4ae14057986d8d37a6c8 | [
"Apache-2.0"
] | permissive | boxvers/Home-Launcher | 2b02aec7e00a91b7f1d9dcabdc19063bde22a4d7 | 1d1147f42b37347324d2f17bfb7ae3592ad5480d | refs/heads/master | 2020-11-25T00:49:56.979333 | 2018-04-20T14:13:33 | 2018-04-20T14:13:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,159 | py | #!/usr/bin/env python2.5
import cgi
import codecs
import os
import pprint
import re
import shutil
import sys
import sqlite3
SCREENS = 0
COLUMNS = 4
ROWS = 4
HOTSEAT_SIZE = 4
CELL_SIZE = 110
CONTAINER_DESKTOP = -100
CONTAINER_HOTSEAT = -101
DIR = "db_files"
AUTO_FILE = DIR + "/launcher.db"
INDEX_FILE = DIR + "/index... | [
"mansurov.maksud@gmail.com"
] | mansurov.maksud@gmail.com |
d69bd9f188b9854c76763631719ecfe14836d385 | 4b232f6f94097644b8c052a8be5dae83644a3d0c | /tractseg/libs/fiber_utils.py | d60707d50395644098468a2a4285a9eb5d00a203 | [
"Apache-2.0"
] | permissive | Nat-Sci/TractSeg | 40e0bafc1ed50bdf09c26977e28a202e09f6bccb | 506935488436951546a96358958cfb6752145c0d | refs/heads/master | 2022-11-20T08:06:34.322247 | 2020-07-16T16:09:12 | 2020-07-16T16:09:12 | 281,930,134 | 0 | 0 | Apache-2.0 | 2020-07-23T11:14:10 | 2020-07-23T11:14:09 | null | UTF-8 | Python | false | false | 15,560 | py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import multiprocessing
from os import getpid
import numpy as np
import nibabel as nib
from dipy.tracking.streamline import compress_streamlines as compress_streamlines_dipy
from dipy.segment.metric import Resa... | [
"j.wasserthal@dkfz.de"
] | j.wasserthal@dkfz.de |
19255a750160d143c2098d640db4d78275d5212e | 50fe177b2770dcf4a8ed03db7423952b01ab8ae6 | /cs231_2016/assignment2/im2col_cython/classifiers/fc_net.py | a74172be49582a6f837131b5208b97d69908e731 | [] | no_license | eyalgut/EyalRep | 95e57d156ff18ae4dcddad3b0f41fd7041d8fd07 | 4d42ab427b2c2e0cce123a6c3a1eec5223cc2edf | refs/heads/master | 2021-01-19T18:36:24.933991 | 2017-11-09T15:47:55 | 2017-11-09T15:47:55 | 88,368,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,584 | py | import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
of D, a hidden dimension of H, and perform classific... | [
"noreply@github.com"
] | noreply@github.com |
d1bbc090b68b21ae0c657cdf919fbae022c5ad5a | 4b709cb4ecb40ddfe34c3ac58f0bdb2f9314e2ca | /SOLID/02-O/Specification.py | d51738a64b4f5f626a6aeba72406be11d4d6898f | [] | no_license | Tejmeister/design-patterns | 6184f76ce974f60c39db60480736708f3e7d179b | 78736466cf8fd9dc16ee37983bc11b38685d4c9a | refs/heads/master | 2023-07-24T17:52:58.423983 | 2021-09-06T14:00:06 | 2021-09-06T14:00:06 | 395,649,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 348 | py | class Specification:
def is_satisfied(self, item):
pass
def __and__(self, other):
return AndSpecification(self,other)
class AndSpecification(Specification):
def __init__(self, *args):
self.args = args
def is_satisfied(self, item):
return all(map(lambda spec: spec.is_s... | [
"tejasparmar99@gmail.com"
] | tejasparmar99@gmail.com |
914d83fade02c7657d02fac72dda5d776fd1e13f | 0eea46ce2772079024d42d3d4f6c9f0fed0514e7 | /objectscache/models.py | 6affcd2e32400bb41494e73353d984fa8fe95f63 | [] | no_license | cloudzhou/gitshell | e158fde84bff016cf845aea952ddcff440317b99 | 2832336fabee3ea46b5e78da1b2498875f65c303 | refs/heads/master | 2020-05-31T21:27:19.548527 | 2014-10-29T15:12:28 | 2014-10-29T15:12:28 | 25,927,003 | 15 | 6 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | from django.db import models
class BaseModel(models.Model):
create_time = models.DateTimeField(auto_now=False, auto_now_add=True, null=False)
modify_time = models.DateTimeField(auto_now=True, auto_now_add=True, null=False)
visibly = models.SmallIntegerField(default=0, null=False)
class Meta:
a... | [
"cloudzhou@163.com"
] | cloudzhou@163.com |
892c5b6288003460c4bad0c420eae7fcc26e1220 | 288bdad47a58dd0675ce40482d567da07bea61a1 | /mk3.py | 97c5403125d286758109aa40b03c7c2ad93e0f86 | [] | no_license | tujhex/ecg | d8b2e446763df92f0999c474070a80dc165701ba | db2a7de6d23c3343a90cd8df1929ef590e45c6fe | refs/heads/master | 2021-05-30T19:47:46.175901 | 2015-12-11T17:18:03 | 2015-12-11T17:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,079 | py | import numpy as np
from sklearn import svm
from sklearn.neighbors import KNeighborsClassifier
from biosppy.signals import ecg
from biosppy.signals.ecg import hamilton_segmenter
from biosppy.signals import tools as st
def load_signals(folder, count):
signals = []
for i in range(count):
signals.append(load_all_line... | [
"biospore@hackerdom.ru"
] | biospore@hackerdom.ru |
e91d07194274feaf4ba7e5b3f277a66b30fa3c27 | 67b202f980eb45e6f5e55068156dae5e68c0ea0a | /63.py | 85932bc8df76220d52d2a3259f13eba82a2c78c5 | [] | no_license | priyadharshinikrishnana/pro-1 | 56881041b03ddc2fae55dc9fb8f1b73a73a4d6e3 | 8ef313fc14a59c3bf9b2cf8000ebbcc1a6bd8901 | refs/heads/master | 2020-06-27T08:57:45.239737 | 2019-07-27T08:25:34 | 2019-07-27T08:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | bh=input()
sur=[]
for i in bh:
if i not in sur:
sur.append(i)
else:
break
print(len(sur))
| [
"noreply@github.com"
] | noreply@github.com |
1e319b6c7309a5b83ebfe44b591850b2b6962be3 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/e6v.py | 75b5df2cc32148930528e7e89a9f832fba9b69b1 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
29c9e2901a129307ebd7615439aac116381e686e | 0d66fa3c50932aa672ab4b5f2fad7c4256a35fed | /teda/widgets/radialprofile.py | 603d56c6467045967c544c68454efbb7adfb7b8e | [
"MIT"
] | permissive | majkelx/teda | 2cad6d5ebf345b19fd667b7c19fbbf499cb73236 | c4cc5fe5d67b15bea4abdc496cd3cc6bc354c25f | refs/heads/master | 2023-06-09T14:05:42.376274 | 2023-05-29T11:28:11 | 2023-05-29T11:28:11 | 246,331,451 | 1 | 0 | MIT | 2020-11-18T12:46:48 | 2020-03-10T15:00:45 | Python | UTF-8 | Python | false | false | 3,293 | py | import numpy as np
import PySide6
from PySide6.QtWidgets import QWidget, QHBoxLayout
from matplotlib.figure import Figure
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas
class RadialProfileWidget(QWidget):
def __init__(self, data, *args, **kwargs):
super().__init__(*args,... | [
"mkalusz@camk.edu.pl"
] | mkalusz@camk.edu.pl |
399b9de55761113ccab69d01a9bd68a988a88fe6 | bed40794a78225e070c49a72209d447757ec8343 | /python_crawl/section3-1.py | 3a3113bc3a6b4a52b626ac8857b76dd0fe10852d | [] | no_license | moorekwon/crawling-practice | 458ffe31b3a7a91fad6547ef76f9a428376d542f | c5bc989ced353daed34d53410c261ce4d4561d4c | refs/heads/master | 2022-09-13T06:46:31.034858 | 2020-05-31T06:43:28 | 2020-05-31T06:43:28 | 266,505,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,094 | py | import urllib.request
from urllib.parse import urlparse
import sys
import io
sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8')
sys.stderr = io.TextIOWrapper(sys.stderr.detach(), encoding = 'utf-8')
url = 'http://www.encar.com'
mem = urllib.request.urlopen(url)
# print('type(mem) >> ', type(me... | [
"raccoonhj33@gmail.com"
] | raccoonhj33@gmail.com |
67ac08d0353b696c9bbdb0a34b1eeb8d8dd15ac5 | 7c13bb74695b7001b4fc9af291fe6bb300ef5393 | /basic/exception_demo.py | 0cdf3c03d1f62622c823f93ba3e6b090fc221b8e | [] | no_license | kevinchen19888/python-advanced | ff1664e35fa2210197cc57996478b015283fdfc9 | e1eb074d666e3d7bbb2d21d9be84ad3cb3888127 | refs/heads/master | 2023-03-08T16:58:24.605237 | 2021-02-26T01:57:46 | 2021-02-26T01:57:46 | 273,234,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,167 | py | """异常处理示例"""
import logging
def exception_demo():
try:
fh = open("test_doc/io.txt", "r")
try:
readline = fh.readline()
finally:
print('关闭文件')
fh.write("") # 此处出错会被外面的except捕捉
# fh.close()
# except: # 会捕获所有异常
except (IOError, SyntaxEr... | [
"kevinchen19888@163.com"
] | kevinchen19888@163.com |
4a5429e17840c12de155763259947c16be4142b8 | 7f9dfa2cccf77764940ffcbbf92939e37c138c43 | /crawl_file/file_path/pylab_examples/anscombe.py | 753e4342916a1d85af7b3ce7af20c14c7110e3c9 | [] | no_license | zhangmman/scrapy_spider | f80bd8d213edde0dea083babe610ca7b1bc449a3 | 2bda4aa29f2550c649c939045ce4fcdea2736187 | refs/heads/master | 2020-09-11T13:58:49.930929 | 2019-12-21T08:40:56 | 2019-12-21T08:43:43 | 222,080,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | from __future__ import print_function
"""
Edward Tufte uses this example from Anscombe to show 4 datasets of x
and y that have the same mean, standard deviation, and regression
line, but which are qualitatively different.
matplotlib fun for a rainy day
"""
import matplotlib.pyplot as plt
import numpy as np
... | [
"zhangman@ncepu.cn"
] | zhangman@ncepu.cn |
a02f235fd6aff9f8aba9bb5f5badb4eecc577ded | 57b3c51b0804e5310659802a4d7869591f1a4424 | /authapp/migrations/0001_initial.py | 01dd51960f1d69c884f12418c7109c8545799f54 | [] | no_license | vsurguch/shop | e3de454814c69ce20366f460e50bbf0a3ae37f56 | 090e5be2e718cf372fd1ac7e1b1ec3481522a66d | refs/heads/master | 2020-03-28T15:01:41.113620 | 2018-10-07T09:58:29 | 2018-10-07T09:58:29 | 148,548,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | # Generated by Django 2.1 on 2018-08-26 14:14
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0009_alter_user_last_name_max_... | [
"32817853+vsurguch@users.noreply.github.com"
] | 32817853+vsurguch@users.noreply.github.com |
c2a44a685f68ef321abc531cdd8f556292da5f9c | b797609bb7ddf7b677909b0c5dd0bed618659e9f | /polarcordinates.py | c6ebb77e4553e36b74ec62a7f6a9effc1b7f79e3 | [] | no_license | krishna-rawat-hp/HackerRank-solution-python | fc969a7de3e54be5c90f5877699121714df14821 | a813e76a307046409217eb1773a6b3e0337c142d | refs/heads/master | 2022-12-23T19:59:12.667718 | 2020-09-26T12:35:24 | 2020-09-26T12:35:24 | 288,746,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 78 | py | import cmath
v = input()
print(abs(complex(v)))
print(cmath.phase(complex(v))) | [
"rawatkrishnakant8319@gmail.com"
] | rawatkrishnakant8319@gmail.com |
ab7cabd891b82d6c81f60f63ea3628078b0e1755 | 2c6d1da965bf8e029f641541f9ac42a1526fbd78 | /products/migrations/0008_category.py | b43c16c366c9207c7b19ce50125c32af76a10953 | [] | no_license | froguez/sda-backend | 400a81c19c8779976fb018ad9a4ace306207ae83 | 6e79311e76b4162ffa743b175eea8f626c3e46ff | refs/heads/master | 2022-11-27T16:55:15.159711 | 2020-08-05T15:59:47 | 2020-08-05T15:59:47 | 271,953,655 | 0 | 0 | null | 2020-06-13T06:26:40 | 2020-06-13T06:26:39 | null | UTF-8 | Python | false | false | 580 | py | # Generated by Django 3.0.7 on 2020-06-13 07:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0007_product_dimensions'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"lafaietsilva@gmail.com"
] | lafaietsilva@gmail.com |
393dcb221847cff529586f68ba5a7cd56009ea01 | 47aa6279aa823c4bba39ab9dd155b32e468350f4 | /functions/SMA.py | 75326b8f9d2fd0e22ae757b0b5f81a300ccbcead | [] | no_license | JorgeOsorio97/ZiplineProject | b32b5d9c593dd5daff2d84f2b4e8c09f5120c9b4 | d770671c016611b7b9f70d3ab8820ff904c7810d | refs/heads/master | 2021-05-01T06:04:19.898883 | 2018-09-13T15:44:29 | 2018-09-13T15:44:29 | 121,135,707 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | #FUNCION PARA EL SIMULADOR QUE NOSOTROS CREAMOS
import pandas as pd
import numpy as np
from talib import SMA # pylint: disable=E0611
def SMAdecision(table, days = 20):
decision = []
close =table['Close']
del table
data = SMA(np.array(close),days)
for i in np.arange(len(close)):
if ... | [
"jorge.valdez.osorio@gmail.com"
] | jorge.valdez.osorio@gmail.com |
14b10c4c91c9ee3249cf3465407073e4ab880830 | 7d663ed33b199c8d0491e9e6ac90b52db5b9ee80 | /tests/unit/test_traceset.py | 08379a2618eabc7d2700b461679e521d0e5f63fb | [
"BSD-3-Clause-Clear"
] | permissive | numericalalgorithmsgroup/pypop | 69a4e65c04e0aae9c41499455ab714e5151af4af | 830913dd1ad4c7e854f408c991f4171bdc69b18b | refs/heads/develop | 2022-02-19T03:43:05.452707 | 2022-02-16T11:11:07 | 2022-02-16T11:11:07 | 215,820,595 | 12 | 6 | NOASSERTION | 2020-02-21T09:50:00 | 2019-10-17T15:02:48 | Jupyter Notebook | UTF-8 | Python | false | false | 57 | py | #!/usr/bin/env python3
import os
import pypop.traceset
| [
"telemin@protonmail.ch"
] | telemin@protonmail.ch |
a8286fabbcae07410b9fead393cc4842bc3a238f | 818063a2d41bded89e0b31df70f1616700975f71 | /src/movie-similarities.py | c62990d659c6ea952f4099fa61967f9803b7f52b | [] | no_license | Cohey0727/hello_spark | 17ff924aae928c33522e46ee8a61eca1fb91f37d | 880995d68cd7e637d8c5e7bf37208ec567b43f45 | refs/heads/master | 2022-12-09T21:46:46.479944 | 2020-09-12T14:33:19 | 2020-09-12T14:33:19 | 293,216,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | import sys
from pyspark import SparkConf, SparkContext
from math import sqrt
def loadMovieNames():
movieNames = {}
with open("./dataset/ml-100k/u.item", encoding='ascii', errors='ignore') as f:
for line in f:
fields = line.split('|')
movieNames[int(fields[0])] = fields[... | [
"ohayousagi.ac.kook0727@gmail.com"
] | ohayousagi.ac.kook0727@gmail.com |
405a419bc4a5aae85200c4a6341ddd5a26fba87b | 792eb49dbeaad4c52f6cd74238bf61510af79898 | /gateway/env/bin/wheel | 18c40b7e64eff04a82e3dd2caed2f08a59df8458 | [] | no_license | phuonghau98/final-new-technology | 77856d8d8a866264bffa25b0706c59cb7502cd77 | 1bb3d7db8c2ee8bc56392ea0ec673359cbae9e0b | refs/heads/master | 2022-06-27T03:52:58.215479 | 2019-12-09T03:17:31 | 2019-12-09T03:17:31 | 226,774,911 | 0 | 0 | null | 2022-05-25T02:56:01 | 2019-12-09T03:16:49 | Python | UTF-8 | Python | false | false | 266 | #!/home/pi/iuh/community/tutorials/cloud-iot-gateways-rpi/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sanghuynhnt95@gmail.com"
] | sanghuynhnt95@gmail.com | |
89291bbe238b055b64e8b6a72593a8afe3066316 | aa85e89dde8c46d2b199c6d8d67629d85427e0e9 | /vision-boiler.py | e507d0ce910eaa1e259984fe6ecf6a8347036e50 | [] | no_license | FRCTeam1073-TheForceTeam/pixy17 | a39c52ec0cf2e13c697bfe39be6c67814caefd6f | dc0d9f877baf7fa909ac2ae80dbbeda325fee227 | refs/heads/master | 2021-01-19T13:33:06.468995 | 2017-02-25T20:16:50 | 2017-02-25T20:16:50 | 82,396,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | from pixy import *
from ctypes import *
import time
import sys
from networktables import NetworkTables
# To see messages from networktables, you must setup logging
import logging
logging.basicConfig(level=logging.DEBUG)
if len(sys.argv) != 2:
print("Error: specify an IP to connect to!")
exit(0)
ip = sys.arg... | [
"bugeybot@gmail.com"
] | bugeybot@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.