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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b455ffb9affb2046007a05d596c0edf937f68f83 | 2474f8f990c9921afa158eef0b97a32fba952fe6 | /automation/automation.py | 866cf551755c53875ebd5d8a40c76e316b493782 | [] | no_license | anas-abusaif/Automation | 344ff5c071e98d300e48a23a7ecb77355e926097 | bbe3879b115c1afb009b689f254ed0b4ce9f2fb9 | refs/heads/master | 2023-08-23T00:53:15.808560 | 2021-11-03T18:44:11 | 2021-11-03T18:44:11 | 424,241,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | from os import replace
import re
with open('potential-contacts.txt') as file:
file=file.read()
phone_numbers = re.findall(r'[(]+[0-9]+[)]?-?[0-9]{3}-?[0-9]{4}|[\d]{3}-[\d]{3}-[\d]{4}|[\d]{3}-[\d]{4}',file)
phone_numbers=set(phone_numbers)
cleaned_phone_numbers=[]
for i in phone_numbers:
if len(i)<12:
cleane... | [
"anasabusief@gmail.com"
] | anasabusief@gmail.com |
b97d1f05cee577fa55fa3374f1bb423691aaa88f | 83d4d660d7d5ceab8d39e1604909498124bcdbcc | /boatgod/lora.py | 38ca1c938fd8cbcc3bc6911ee8efe2f47af456ad | [] | no_license | kivsiak/boatgod-test | 36262f1872ad4ff259753299613f8d766df7b757 | 931014d129098bde39d91fc75f9e098f1a7c31e7 | refs/heads/master | 2020-04-16T23:57:45.371224 | 2019-01-22T19:39:39 | 2019-01-22T19:39:39 | 166,032,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,546 | py | import asyncio
import aiopubsub
from boatgod.hub import lora_publisher
from boatgod.nmea2000 import create_rmp_message, create_voltage_message
class LoraProtocol(asyncio.Protocol):
VOLTAGE_MULTIPLIER = 1.7636363636363637 / 100
RPM_CALIBRATION = 1
def __init__(self):
self.result = []
sel... | [
"kivsiak@gmail.com"
] | kivsiak@gmail.com |
1c8db9717d1a853fd31944ddc0e85e2c055d7437 | 7126788c74425ca9c8681cac2f0dc29b1d7b04ee | /Assignment 3/bayes.py | 21b08f94d2761212fe98ccbc62faf0da5b21fc5c | [] | no_license | LukasZhornyak/Intro-to-Machine-Learning | 7d18ea80783432e0845dba8edbc9c72bf5a1adf4 | aed9c2bd40d1dae6f65f259847a3454a6452f518 | refs/heads/master | 2021-09-10T11:33:36.636396 | 2018-03-25T18:41:49 | 2018-03-25T18:41:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | import numpy as np
def naive_bayes(data):
prior = gradient_descent(data, [], np.array([10.] + [0.5]), bayes_gradient)
param = build_bayes_param(data[0], prior[1:], prior[0])
return param, prior
def conditional_probability(data, labels, p, m):
p_fake = (data.T * labels + p * m) / (np.sum(labels) + m)... | [
"CainRose@users.noreply.github.com"
] | CainRose@users.noreply.github.com |
b338b9a751885a042160b09b6f62936a8b9e65c6 | b63f6a17a6d3b3dcd80780718f4b43af82f34a6f | /get_area_data.py | 8cd2be760a23f80c00b2d65e98566b677e104a7a | [] | no_license | spang/mountainproject | 813acdb03081fdced775d7a82aa688629fdd7212 | 828542968ab43cc909e912303d6392cb6a2e1a0e | refs/heads/master | 2016-09-05T17:51:39.081058 | 2013-03-16T04:45:24 | 2013-03-16T04:45:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #!/usr/bin/python3
import requests
import sys, os
DATADIR = 'data'
areas = dict(spain="106111770", gunks="105798167", leavenworth="105790610",
mazama="106112166", index="105790635", crowhill="105905492",
quincy="105908121", cathedral="105908823",
whitehorse="105909079", seneca="105861910")
d... | [
"christine@spang.cc"
] | christine@spang.cc |
f2019d1e9561228cb0481b67234bdf4a1540de14 | 96a34a048c783a75736bf0ec775df22142f9ee53 | /packages/simcore-sdk/src/simcore_sdk/node_data/__init__.py | 595d6f1ed7c62d9dc3319d2cc38f81966604b3ec | [
"MIT"
] | permissive | ITISFoundation/osparc-simcore | 77e5b9f7eb549c907f6ba2abb14862154cc7bb66 | f4c57ffc7b494ac06a2692cb5539d3acfd3d1d63 | refs/heads/master | 2023-08-31T17:39:48.466163 | 2023-08-31T15:03:56 | 2023-08-31T15:03:56 | 118,596,920 | 39 | 29 | MIT | 2023-09-14T20:23:09 | 2018-01-23T10:48:05 | Python | UTF-8 | Python | false | false | 27 | py | from . import data_manager
| [
"noreply@github.com"
] | ITISFoundation.noreply@github.com |
5f021c7f67037101485a78987bd462e9077c3f9a | 45dd427ec7450d2fac6fe2454f54a130b509b634 | /homework_3/preparation2.py | f45b9c53cbbbda4b2d028ec030b01ce3a6e5a699 | [] | no_license | weka511/smac | 702fe183e3e73889ec663bc1d75bcac07ebb94b5 | 0b257092ff68058fda1d152d5ea8050feeab6fe2 | refs/heads/master | 2022-07-02T14:24:26.370766 | 2022-06-13T00:07:36 | 2022-06-13T00:07:36 | 33,011,960 | 22 | 8 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | import os, random
filename = 'disk_configuration.txt'
if os.path.isfile(filename):
f = open(filename, 'r')
L = []
for line in f:
a, b = line.split()
L.append([float(a), float(b)])
f.close()
print ('starting from file', filename)
else:
L = []
for k in range(3):
... | [
"simon@greenweaves.nz"
] | simon@greenweaves.nz |
dcf1b8da0e24589c36e224719499d07a0cf14ac6 | ab11640874d7f7eb6c6c44ecadf0022368fd3d30 | /ppm.py | 0a2936220a56bda68cb0ba41af36762844c0711b | [] | no_license | bsdphk/BSTJ_reformat | 074d44d86cb0fccd25e47be5ffc2199c910640bf | 9e72421ed110a582f67cd94727573da9b68c4ed2 | refs/heads/master | 2021-01-25T10:11:42.752665 | 2013-01-23T09:44:26 | 2013-01-23T09:44:26 | 7,771,692 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,280 | py |
from __future__ import print_function
import mmap
import os
import sys
class ppm(object):
def __init__(self, fn, a = "r", x = None, y = None):
assert a == "r" or a == "w"
if a == "w":
self.wr = True
assert type(x) == int
assert type(y) == int
assert x > 0
assert y > 0
else:
self.wr = False
... | [
"phk@FreeBSD.org"
] | phk@FreeBSD.org |
3a9096dc1ec53ed83ea0a5980a79dd6aca7fe133 | 33277474b13e97876c18337c963717efee3ed5f9 | /Testing_Assignment/login.py | dc79d9e382c8545f7e0a5b080ae3d1e801cd7cb4 | [] | no_license | Ramya2902/nbny6 | b693f5b9c03b3c821c65f14996a278fec452fd6c | 0c605fb789c6a582870c16f89113ff53b1570221 | refs/heads/master | 2020-07-10T19:19:03.123939 | 2019-09-26T13:31:08 | 2019-09-26T13:31:08 | 204,345,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | def username():
username='Ramya';
return username
| [
"nbny6@mail.missouri.edu"
] | nbny6@mail.missouri.edu |
6e7cb657f766e088b1c0fb3cbe8754948b3991a6 | c3175f2b482691fbfcb9adc391b4d45b6f17b09d | /PyOhio_2019/examples/pyscript_example.py | 0b49ed87ee1a875552f07f3411e05bb70e6a9b23 | [
"MIT"
] | permissive | python-cmd2/talks | 27abff4566c6545c00ad59c701831694224b4ccf | 64547778e12d8a457812bd8034d3c9d74edff407 | refs/heads/master | 2023-08-28T20:45:01.123085 | 2021-03-29T20:44:36 | 2021-03-29T20:44:36 | 197,960,510 | 2 | 3 | MIT | 2022-01-21T20:03:37 | 2019-07-20T17:14:51 | Python | UTF-8 | Python | false | false | 3,750 | py | #!/usr/bin/env python
# coding=utf-8
"""A sample application for how Python scripting can provide conditional control flow of a cmd2 application"""
import os
import cmd2
from cmd2 import style
class CmdLineApp(cmd2.Cmd):
""" Example cmd2 application to showcase conditional control flow in Python scripting within... | [
"todd.leonhardt@gmail.com"
] | todd.leonhardt@gmail.com |
59484598a05007d2cfa6633a4f83be87423d45ff | d73f795654dad6ac5cc813319e1cc0c57981420a | /Robot.py | 07d6756ef6752f82a5afe576ebff98932cd0c7fd | [] | no_license | sehyun-hwang/finger_inverse_kinematic | 9545d1a1765659bd60f724ad3bedb6d8eddc38c6 | 842fd7db8314ed05c214b938d510219b03d2c207 | refs/heads/main | 2023-04-10T17:59:08.335452 | 2021-04-25T05:57:11 | 2021-04-25T05:57:11 | 361,333,102 | 1 | 0 | null | 2021-04-25T04:46:37 | 2021-04-25T04:46:36 | null | UTF-8 | Python | false | false | 3,329 | py | import traceback
import numpy as np
from env import Env
from ddpg import DDPG
import config
from os import getppid, getenv
from os.path import isfile
from random import random, randrange
from socketio import Client as IO, ClientNamespace as Namespace
from socket import gethostname as Host
from base64 import b64deco... | [
"hwanghyun3@gmail.com"
] | hwanghyun3@gmail.com |
a13687d1aa7eb47c3995dfc3c77080e5e6e62c5c | e66ab5cb1b2db67f42e1b8beaa7b9ab4b163311e | /Binary-search-tree.py | 6d5223e8a6a8889d4775e7a30cf86a840ceb0af7 | [] | no_license | Noobpolad/The-binary-search-tree | c0938f2195a42516a4249d90d61994fd9954a6a8 | 7afd38da22b794001d99c790b1a4e7fdb0717398 | refs/heads/master | 2021-08-19T19:43:05.356698 | 2017-11-27T08:40:24 | 2017-11-27T08:40:24 | 112,168,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,921 | py | class theBinarySearchThree:
def __init__(self,value):
self.setValue(value)
self.setParent(None)
self.setLeft(None)
self.setRight(None)
def getLeft(self):
return self._left
def setLeft(self,value):
self._left = value
def getRight(self):
return self._right
def setRight(self,... | [
"noreply@github.com"
] | Noobpolad.noreply@github.com |
66cd7f817921e5ec588b73767556d27295813b11 | 430d1f21f366dd2dc85c26edcb1f923470ff6bae | /books/tests.py | dcef51c48e6139714044d3066b523a3dc9c7958c | [] | no_license | nsinner1/django_crud | fc4456c0d5904713a46b8fbdc245a3e80cdef67d | eace4af71f9ebe4436df5bf5852e1ebc037ee024 | refs/heads/master | 2022-12-12T18:34:14.214211 | 2020-08-30T00:35:05 | 2020-08-30T00:35:05 | 291,348,866 | 0 | 1 | null | 2020-08-30T00:35:06 | 2020-08-29T21:04:10 | Python | UTF-8 | Python | false | false | 1,731 | py | from django.test import SimpleTestCase, TestCase
from django.urls import reverse
from .models import Books
from django.contrib.auth import get_user_model
# Create your tests here.
class BooksTest(SimpleTestCase):
def test_homepage_status(self):
self.help_status_code('home')
def help_status_code(self... | [
"nataliesinner@hotmail.com"
] | nataliesinner@hotmail.com |
988a53fed87c4d15c1bffbed597674dd7197ec2b | 88350153e766641e999969860eef8f1617d85487 | /list.py | f5e02b2e7d3b0afbb53462ad348ab28b886ab668 | [] | no_license | alirezaghd/assignment-2 | 6cef5875192ab9ea5997b8abe435ac224c12d08d | b3242f5111661d0d403038ac60e4790f7b8eb788 | refs/heads/main | 2023-04-02T11:03:03.045744 | 2021-04-04T13:18:11 | 2021-04-04T13:18:11 | 354,391,390 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | list_1 = []
for i in range(20):
list_1.append(int(input()) ** 2)
print(list_1)
max_number = max(list_1)
min_number = min(list_1)
print("Max number in the list :" , max_number,"Min number in the list :" , min_number) | [
"noreply@github.com"
] | alirezaghd.noreply@github.com |
ac3e9c697e353b693c7f8c8310a98068050b8172 | b25485391a8a2007c31cd98555855b517cc68a64 | /examples/src/dbnd_examples/tutorial_syntax/T60_task_that_calls_other_tasks.py | 4e531bd99f3753db413843c5526d5528de64f9e8 | [
"Apache-2.0"
] | permissive | ipattarapong/dbnd | 5a2bcbf1752bf8f38ad83e83401226967fee1aa6 | 7bd65621c46c73e078eb628f994127ad4c7dbd1a | refs/heads/master | 2022-12-14T06:45:40.347424 | 2020-09-17T18:12:08 | 2020-09-17T18:12:08 | 299,219,747 | 0 | 0 | Apache-2.0 | 2020-09-28T07:07:42 | 2020-09-28T07:07:41 | null | UTF-8 | Python | false | false | 536 | py | import pandas as pd
from dbnd import task
@task
def func_return_df():
return pd.DataFrame(data=[[3, 1]], columns=["c1", "c2"])
@task
def func_gets(df):
return df
@task
def func_pipeline(p: int):
df = pd.DataFrame(data=[[p, 1]], columns=["c1", "c2"])
d1 = func_gets(df)
d2 = func_gets(d1)
r... | [
"evgeny.shulman@databand.ai"
] | evgeny.shulman@databand.ai |
41c60a17f34b955aee0c20c1b60fb8ef5e1c0dc5 | 74a7f74373c90dd42056cad4625e53c582591525 | /补充练习/ex56.py | 1a2c056b0b9dc0661194f3203b88df13bdf4c644 | [] | no_license | ligj1706/learn-python-hard | 93c144efa3485d380a263319a9a3bc2838667802 | 1befe6f75d144fa39c7c1a180d857da2c0321ce3 | refs/heads/master | 2021-10-22T00:17:46.483403 | 2019-03-07T08:02:17 | 2019-03-07T08:02:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | #!/usr/bin/env python
#coding:utf-8
# 参数收集,解决参数个数的不确定性问题,*表示多个参数,?表示一个参数
def func(x, *arg):
print x
result = x
print arg
for i in arg:
result += i
return result
print func(1, 2, 3, 4, 5, 6, 7, 8, 9)
# 收集字典的数据
def foo(**kargs):
print kargs
foo(a = 1, b = 2, c = 3, d = ... | [
"noreply@github.com"
] | ligj1706.noreply@github.com |
10aa510c9322b23c32f858faf3870fbb96d1e089 | 6a8cd4c644ceb0ff1560d716805647830b8cefdd | /sqlite/query.py | 1b771994acaf6f6ddf93a46ba465baa9b54619a5 | [] | no_license | yasmeen/softdev1 | 1af216687f8e262439e33c08cdb99393b9c3ed23 | 52e2abd9945b349010810821645ee09ac98445f5 | refs/heads/master | 2021-05-30T08:21:14.685997 | 2015-12-08T19:59:45 | 2015-12-08T19:59:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | import sqlite3
conn = sqlite3.connect("demo.db")
c = conn.cursor()
q = """
SELECT people.name, classes.name, grade
FROM people,classes
WHERE people.id=classes.id and grade > 90
"""
result = c.execute(q)
for r in result:
print r
print r[0]
| [
"y4smeen@gmail.com"
] | y4smeen@gmail.com |
507b10cc2abdf0221e52199c3bc4d62ac33d5927 | 6ce3c461c0c2664be25f2bfa6730e83e49dfb7d3 | /pandas/readcsvwithcomments.py | 82ff4b45f95d2d9dcb900e13c2c34700f5022d47 | [] | no_license | kiranshashiny/PythonCodeSamples | 6fa6dddde75de300791a90c1ceeb912bad1541a0 | 6bfc462d4bbbac48c2c4883334e73f8262e9a524 | refs/heads/master | 2020-03-11T17:41:08.450514 | 2018-05-07T07:56:17 | 2018-05-07T07:56:17 | 130,154,132 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | import pandas as pd
df = pd.read_csv('HON.csv')
#This prints everything to everything.
# This reads in the column names as well, and assigns the column names
df = pd.read_csv('HON.csv', names=['Date', 'Open', 'High', 'Low', 'Close', 'Adj Close', 'Volume' ], comment='#')
#This prints as a Series in Pandas. one after... | [
"kiranshashiny@gmail.com"
] | kiranshashiny@gmail.com |
fc9090a299eff24d6bebd74667e559516adaa406 | d999fe799e960620ba855568e8c0072405b0c858 | /blog.py | 0c6cfd1892add0a1c28b8067dabce9e00d2de9fb | [] | no_license | EndLife/web_py | 8bdf8b7eb0118db9e72319166221312e8944a139 | 9a5a5d7e868a4eb2e21f847d9a35445ee88d1882 | refs/heads/master | 2021-01-22T19:22:14.189733 | 2017-03-16T12:41:06 | 2017-03-16T12:41:06 | 85,194,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | # coding:utf-8
""" Basic blog using webpy 0.3 """
import web
import model
### Url mappings
urls = (
'/', 'Index',
'/view/(\d+)', 'View',
'/new', 'New',
'/delete/(\d+)', 'Delete',
'/edit/(\d+)', 'Edit',
)
### Templates
t_globals = {
'datestr': web.datestr
}
render = web.... | [
"noreply@github.com"
] | EndLife.noreply@github.com |
99539357d5acc666009e193e9326a3a724aac63e | f33fa29aca343cf152b6ec4907d3db01046a44e3 | /Shop/admin.py | 07d563c61c54ce0ce1e7f4753639f58cd897e242 | [] | no_license | deepakkumarcse/Machine_Test | bf8028a146eac9990eff5515b6577f30f22a1703 | 677355d35f5adeace3916271e684d5f6617ea0aa | refs/heads/master | 2023-05-12T15:02:34.619573 | 2021-05-29T11:55:53 | 2021-05-29T11:55:53 | 371,959,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | from django.contrib import admin
from .models import Category, Tag, Product
class CategoryAdmin(admin.ModelAdmin):
list_display = ('pk', 'name',)
search_fields = ['pk', 'name']
class TagAdmin(admin.ModelAdmin):
list_display = ('pk', 'name',)
search_fields = ['pk', 'name']
class ProductAdmin(admin.... | [
"deepakcse82@gmail.com"
] | deepakcse82@gmail.com |
db3ac07a8db13d186a143de360f1bba62bf3cb70 | cfc1ccfe578b58653cb39c42658c626a11f53603 | /ann_train.py | 31e303a642f8f6fa918a8f02ecb2027d43ebecb0 | [] | no_license | kkawesum/deep_learning_udemy | 4a7bf9ce24dd9a334b45085b665b3c6c124e9329 | 4d9d62ebfae55176e83b23ce3b7d5644b29c6a98 | refs/heads/master | 2020-06-25T21:55:53.177476 | 2019-08-03T06:05:11 | 2019-08-03T06:05:11 | 199,432,416 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.utils import shuffle
from process import get_data
def y2indicator(y,K): #func to get the indicator matrix
N=len(y)
ind=np.zeros((N,K))
for i in range(N):
ind[i,y[i]] = 1
return ind
X,Y=get_data()
X,Y=shuff... | [
"noreply@github.com"
] | kkawesum.noreply@github.com |
8c7333fb6b2ec5e9196c6bbb79efdc339563b3a9 | 5b6a8e4b54744f3e2b430ef0368dfa4d99b8cb6f | /Caffe/data_prep.py | 5f1dd30ec3dc85384f393815dfcf619d986add95 | [] | no_license | Dipanjana2802/Dipanjana | f84e4ca3a0c296fd5870f2c060fb56faa4f750c8 | 5969fa0f7634078b828bf87c58c8a00e012d8add | refs/heads/master | 2020-04-01T04:54:38.741766 | 2020-02-10T21:48:35 | 2020-02-10T21:48:35 | 152,771,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,561 | py | import os
import numpy as np
import time
import shutil
#import cPickle
import random
from PIL import Image, ImageOps
def chunkIt(seq, num):
avg = len(seq) / float(num)
out = []
last = 0.0
while last < len(seq):
out.append(seq[int(last):int(last + avg)])
last += avg
... | [
"facebook.dips@gmail.com"
] | facebook.dips@gmail.com |
34697d981a1930c023a733316b6aae02fc072f70 | 792af5a9c7e1e02d596a989bfbe10d1f14f4e266 | /log/migrations/0002_auto_20170130_1322.py | 64f0bafe3f95d5191baa72a0baef9198e6d5f2a0 | [] | no_license | martisr/authtest | d3963a223d2932cef4a52dddcaf82180026f125f | 5f9d2ba4c3f7bed3add7c7058a80c7f8d4cc5638 | refs/heads/master | 2020-05-23T10:16:31.243107 | 2017-03-01T08:41:47 | 2017-03-01T08:41:47 | 80,410,657 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 846 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-01-30 11:22
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('log', '0001_initial'),
]
operations = [
migrat... | [
"mart.israel@hotmail.com"
] | mart.israel@hotmail.com |
d23276959cbd7b4c92f24e3ab99d6bf350ea31b5 | 5dda5fbf4947b009a5f7eac49874faa285881e49 | /problem1.py | 689fa48d992ba84b1750c789637635548db01445 | [
"MIT"
] | permissive | mpUrban/python_problems | 9e9aed8e85c063d410291fecfc0b13b289c98ae3 | d8c67a33119dce3a558bb1e76b9d3595932ddfa8 | refs/heads/master | 2020-04-24T04:37:52.884110 | 2019-02-24T14:37:44 | 2019-02-24T14:37:44 | 171,709,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # written in VS Code with jupyter extension
#https://simpleprogrammer.com/programming-interview-questions/
# How do you find the missing number in a given integer array of 1 to 100?
# assume only 1 missing number
# missing number can be zeroed or removed from array
#%%
startArray = 1
stopArray = 100
#%%
n = start... | [
"urban22@gmail.com"
] | urban22@gmail.com |
0433b7395eb3ee539638aa14dcbbba5e10ae531f | d4c74a8001451840f3efb87f15856cdb9d5e9eb6 | /tools/nntool/importer/tflite/tflite_schema_head/LSHProjectionType.py | 74c91fa75b8252a125fff614d55c912984ec71eb | [
"Apache-2.0"
] | permissive | danieldennett/gap_sdk | 3e4b4d187f03a28a761b08aed36a5e6a06f48e8d | 5667c899025a3a152dbf91e5c18e5b3e422d4ea6 | refs/heads/master | 2020-12-19T19:17:40.083131 | 2020-02-27T14:51:48 | 2020-02-27T14:51:48 | 235,814,026 | 1 | 0 | Apache-2.0 | 2020-01-23T14:39:59 | 2020-01-23T14:39:58 | null | UTF-8 | Python | false | false | 182 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: tflite_schema_head
class LSHProjectionType(object):
UNKNOWN = 0
SPARSE = 1
DENSE = 2
| [
"zhouxinge@live.nl"
] | zhouxinge@live.nl |
50101cfa3131859ea40e1a4287fcdf2b918a6912 | ba9d4ab1a1153ecd91ed280722b84e19f2a34810 | /src/postprocessing.py | 38aa62c3068f271ae3fa05afe046d75d569d7e42 | [] | no_license | tatigabru/nfl_impact_detection | 43ce79bdbbcf059317007963ac330d6abeb1188b | 743d822412811344ecb0c25232e5076f404f56b8 | refs/heads/master | 2023-03-21T00:17:38.599208 | 2021-03-18T15:34:02 | 2021-03-18T15:34:02 | 319,380,921 | 0 | 0 | null | 2021-03-11T15:51:37 | 2020-12-07T16:37:35 | Jupyter Notebook | UTF-8 | Python | false | false | 10,201 | py | """
Postprocessing
"""
# Imports
from typing import List, Dict, Optional, Tuple, Union, Type, Callable
from collections import defaultdict, namedtuple
import cv2
import os
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from scipy.optimize import linear_sum_assignment
from scipy.ndimage.fi... | [
"travellingtati@gmail.com"
] | travellingtati@gmail.com |
0a71040bfcdb1d515bdaece21e9bb5308f9f63e7 | 7cd279b2adba0b25d7781488a86e11c801fbd9d7 | /server.py | 53e5c5aa36c33f26deea8833256d46b9311f8a51 | [] | no_license | ramonus/bchain | 11d9bf09162885b8a22a9ea1a8fcf84b8ecbce04 | 40e7a7fdbada21226967d94f10d9e257b82d48ba | refs/heads/master | 2020-05-23T20:21:52.715477 | 2019-05-23T00:23:19 | 2019-05-23T00:26:23 | 186,928,673 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,398 | py | import hashlib, json, time, uuid, argparse
from flask import Flask, jsonify, request, render_template
from blockchain import Blockchain
from wallet_utils import create_wallet, save_wallet
import threading
parser = argparse.ArgumentParser()
parser.add_argument("-p","--port",default=5000, type=int, help="Port to run nod... | [
"ralmatob@gmail.com"
] | ralmatob@gmail.com |
b25ab28352bded45f847834fe4876b3e3fc1face | 5fca74e404e88c648e1fe8d51377ad1833857251 | /mysite/member/migrations/0001_initial.py | f3d39274a04ed3d4d29b01bff8239584b72f0bc2 | [] | no_license | Minsik113/AI_course-using-Django | 9b5c237664665577cb9f630c87dd188d2eb76ab4 | fc1a65979e6b02c0f8e115a03a5d9a1998a27071 | refs/heads/main | 2023-06-05T14:44:21.517079 | 2021-06-30T02:52:24 | 2021-06-30T02:52:24 | 380,938,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | # Generated by Django 2.2.5 on 2021-06-30 00:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Member',
fields=[
('user_id', models.CharFi... | [
"hyunicho62@gmail.com"
] | hyunicho62@gmail.com |
d1168c3686164b89c8348988a414cae9247e0dd4 | d3a325a344867f95440f0a40884f6162f4463517 | /raspi-firmware/graph_peaks.py | 708705b3505b1cc1dc385f49c2658eb4c96f8d25 | [] | no_license | schivuk/snorlax | b9d2bd44c6368e83bc4a37380ecaf52972fa68a6 | fd0ffedf6c61fc0d7c5c4270e40fe9fff7b37589 | refs/heads/master | 2021-01-20T11:41:23.502392 | 2016-05-10T02:31:24 | 2016-05-10T02:31:24 | 51,566,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,001 | py | import time
import matplotlib.pyplot as plt
import numpy as np
from scipy.signal import find_peaks_cwt
import random
peak_threshold = 4
def acc_algorithm(vals, threshold):
num_vals = len(vals)
peaks = set()
for i in xrange(0, num_vals-10):
next_ten_average = sum(vals[i:i+10])/10
... | [
"qiu.benson@gmail.com"
] | qiu.benson@gmail.com |
3c80a21b57ae2707f9a66aef9c33445e8683c9ce | 95a27dd31260802da3768064c9614ce4f6ca4797 | /Scripts/MLP_GenCode_112.py | 72a351e7ac8a3dc76101c0b9c9b6d8c96346f104 | [
"MIT"
] | permissive | ShepherdCode/Soars2021 | 7ee34227076ea424ad42f4727205141b69c78bb9 | ab4f304eaa09e52d260152397a6c53d7a05457da | refs/heads/main | 2023-07-09T05:28:56.993951 | 2021-08-18T14:16:57 | 2021-08-18T14:16:57 | 364,885,561 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,618 | py | #!/usr/bin/env python
# coding: utf-8
# # MLP GenCode
# MLP_GenCode_trying to fix bugs.
# NEURONS=128 and K={1,2,3}.
#
# In[14]:
import time
def show_time():
t = time.time()
print(time.strftime('%Y-%m-%d %H:%M:%S %Z', time.localtime(t)))
show_time()
# In[15]:
PC_TRAINS=8000
NC_TRAINS=8000
PC_TESTS... | [
"jmill02@shepherd.edu"
] | jmill02@shepherd.edu |
1f98e74eef835ca6a17c0f6a2081205ba2b18a15 | c41069e0cb4105c4092853e60de6bf116b332e70 | /resaspy/__init__.py | a5fdbf6faf8e137b9e35b31325e2ee25d4a95bd9 | [
"MIT"
] | permissive | ar90n/resaspy | 5a4e7789dc24f412e1f1f929fb491f349abe90f1 | 58d140ad1e61478ab8f3993676bd0c97ad43ae18 | refs/heads/master | 2021-01-11T10:13:13.712176 | 2017-05-10T14:17:57 | 2017-05-10T14:17:57 | 78,554,641 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | # -*- coding: utf-8 -*-
"""
resaspy is a simple utility for RESAS api(https://opendata.resas-portal.go.jp).
usage:
>>> from resaspy import Resaspy
>>> resas = Resaspy( key )
>>> r = resas.prefectures()
>>> r.result
:copyright: (c) 2016 by Masahiro Wada.
:license: MIT, see LICENSE for more details.
"""
_... | [
"argon.argon.argon@gmail.com"
] | argon.argon.argon@gmail.com |
c246c6158c0b505b6b3d9d926557418c0bf0e3ff | cd8d3543b3fff3a5b986ce4d5601f92b6ecbfcf3 | /src/util/post.py | 53a2aa352402e4d05f86e57c0a887c2acb693f8d | [
"MIT"
] | permissive | jsrdzhk/noctorro_test | 29da81ddfa79299ec193bec73ef453aaed157d58 | 2b449c91a15beb654c3373c7d60b1ab129129496 | refs/heads/master | 2023-01-01T01:37:03.542252 | 2020-10-16T03:01:09 | 2020-10-16T03:01:09 | 304,245,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import requests
from requests import Response
class PostUtil:
@staticmethod
def post_form_data(url: str, data: dict) -> Response:
return requests.post(url, data)
| [
"zhanghaokang@antiy.cn"
] | zhanghaokang@antiy.cn |
0c40d54de503d81995b68e2d44827f6f5f07f80b | ce58cc8dadf22239222cd921a7f3b66efe71d47b | /animal_production/wizard/visit_report_wizard.py | c70e60c1e2091d88c0b28ce8398b51539a526df0 | [] | no_license | odooCode11/napata | 62e03281c9e36834aab9d2ee4b3a31ef30271e04 | e4ebaa341cef04247bd0f828e82fdd2ee5da4459 | refs/heads/main | 2023-03-09T11:56:45.405751 | 2021-02-20T18:11:19 | 2021-02-20T18:11:19 | 340,721,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,156 | py | from odoo import models, fields, api
class VisitReportWizard(models.TransientModel):
_name = 'visit.report.wizard'
_description = 'Visits Report'
PARAMETERS = [
('general', 'General'),
('period_only', 'Period Only'),
('period_state', 'Period & State'),
('period_locality', ... | [
"odoocode11@gmai.com"
] | odoocode11@gmai.com |
6a97d871b8ed8a49afb5c0e20a56bf9f9b38ed3a | 5e80f0b1af9fbf9dc774dbb68aa603574e4ae0ba | /algorithm-study/codewars/Quarter_of_the_year.py | 96e4279a8205373084cf8d50623834bef2b00e87 | [] | no_license | namujinju/study-note | 4271b4248b3c4ac1b96ef1da484d86569a030762 | 790b21e5318a326e434dc836f5f678a608037a8c | refs/heads/master | 2023-02-04T13:25:55.418896 | 2020-12-26T10:47:11 | 2020-12-26T10:47:11 | 275,279,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | def quarter_of(month):
return (month - 1) // 3 + 1
| [
"59328810+namujinju@users.noreply.github.com"
] | 59328810+namujinju@users.noreply.github.com |
e5cf31ac6e55eedafb5b7255682ba74d6d2ccfc5 | b502a61dae00f9fbfed7a89b693ba9352e016756 | /Python/findAstring.py | f60a778cd837d25228e5dd5c6162ae6b2b9def57 | [] | no_license | VIJAYAYERUVA/100DaysOfCode | 4971fadd8a9583a79a3b66723db91d9d0b1cfd2a | 637bfd559e0a50181902cc31cfe062de20615b53 | refs/heads/main | 2023-03-27T06:06:14.725721 | 2021-03-27T22:09:41 | 2021-03-27T22:09:41 | 322,189,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # https://www.hackerrank.com/challenges/find-a-string/problem
def count_substring(string, sub_string):
c = 0
for i in range(0, len(string) - len(sub_string) + 1):
if string[i:i + len(sub_string)] == sub_string:
c += 1
return c
if __name__ == '__main__':
string = input().strip()
... | [
"VIJAYAYERUVA@users.noreply.github.com"
] | VIJAYAYERUVA@users.noreply.github.com |
4da11dc3aeb5eb44e23efaa874600210f5727f5c | 6faa263efd75c11650b59ba08267b43f6e46be20 | /main.py | a0942a2fbcfffe38d25f1ef7c324100fdb6117d6 | [] | no_license | inzapp/c-yolo | 18c572cdbd9fa0b94d96449dda37522bacd22385 | f4de418bad7ed81cc48fa8377a56283a6c5f16f2 | refs/heads/master | 2023-04-14T21:49:02.194069 | 2021-04-21T06:28:29 | 2021-04-21T06:28:29 | 340,872,149 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,695 | py | """
Authors : inzapp
Github url : https://github.com/inzapp/c-yolo
Copyright 2021 inzapp 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/l... | [
"inzapp@naver.com"
] | inzapp@naver.com |
30d1e191fd39fe9da315d8edc408653ef79ab813 | 9baa9f1bedf7bc973f26ab37c9b3046824b80ca7 | /venv-bck/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/timeout.py | 1940bcf576151f37297b97d9ebafec8007ab3c80 | [] | no_license | shakthydoss/suriyan | 58774fc5de1de0a9f9975c2ee3a98900e0a5dff4 | 8e39eb2e65cc6c6551fc165b422b46d598cc54b8 | refs/heads/master | 2020-04-12T05:36:59.957153 | 2017-01-08T06:12:13 | 2017-01-08T06:12:13 | 59,631,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,507 | py | from __future__ import absolute_import
import time
from socket import _GLOBAL_DEFAULT_TIMEOUT
from ..exceptions import TimeoutStateError
# A sentinel value to indicate that no timeout was specified by the user in
# urllib3
_Default = object()
def current_time():
"""
Retrieve the current time. This function... | [
"shakthydoss@gmail.com"
] | shakthydoss@gmail.com |
3288d26e331955d77c11f56c860ccabb2886f6ea | 381f1c8e04273067a10037b0ffd38b17ebd83f75 | /search/graphicsDisplay.py | b31496a1435c14710c032890da3b7e5cc69376fa | [] | no_license | joshuaburkhart/CIS_571 | 8ca89a67ca2db6628ccd72ab65fbf5237068439a | c54768acfffbabe85ce39c42673fe58dab5b895a | refs/heads/master | 2021-01-18T21:09:29.368579 | 2016-04-27T16:45:50 | 2016-04-27T16:45:50 | 12,277,004 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,362 | py | # graphicsDisplay.py
# ------------------
# Licensing Information: Please do not distribute or publish solutions to this
# project. You are free to use and extend these projects for educational
# purposes. The Pacman AI projects were developed at UC Berkeley, primarily by
# John DeNero (denero@cs.berkeley.edu) and Dan ... | [
"burkhart.joshua@gmail.com"
] | burkhart.joshua@gmail.com |
8f56751503b8046acd00b9acbea5a38ce489adf4 | a24a02af6809ec58eadbd94238c59f463a094022 | /tests/test_dafsa.py | 335c85f098e609dbb2ea9e093ad88d7108730bdc | [
"MIT"
] | permissive | tresoldi/dafsa | d7302e6760cc81ede7c61db07c803604db5a033f | 6feda5b2142142e973cd9fb0dd986f6bd329cb45 | refs/heads/master | 2023-03-09T13:17:18.169871 | 2023-02-18T08:16:39 | 2023-02-18T08:16:39 | 221,056,792 | 21 | 2 | MIT | 2023-02-18T08:16:08 | 2019-11-11T19:42:41 | Python | UTF-8 | Python | false | false | 6,191 | py | """
test_dafsa
==========
Tests for the `dafsa` package.
"""
# Import Python libraries
import sys
import tempfile
import unittest
# Import the library itself
import dafsa
def test_trigger():
assert 1 == 1
def test_dummy():
assert dafsa.dummy() == 42
OLD_TEST = """
class TestNode(unittest.TestCase):
d... | [
"tresoldi@shh.mpg.de"
] | tresoldi@shh.mpg.de |
d30358f0846d56cb0ee45b769401deee0df440a7 | 528097895ef768469f8bc3f6cdbe95b83fcbfedb | /allauth1/urls.py | 92992741695bba24837e5e0aed756233be62fac2 | [] | no_license | SHUKLA123/Neighbourhood | ce705b65986d184ab9c7eff366dad66a4e0cb2fb | 8c461cf26957f7860ba1fc330174c75c2c669265 | refs/heads/master | 2022-04-04T07:34:28.190397 | 2019-12-26T18:33:53 | 2019-12-26T18:33:53 | 230,300,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,624 | py | """allauth1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
... | [
"noreply@github.com"
] | SHUKLA123.noreply@github.com |
13df24ff882324e906c7419f48b270497bbc0ed9 | e80169e5d4243034b3d2c1bc346c41b024151644 | /cut_CSV.py | ccb7fbb0654a2e5ffa2192cbfc3969650bdc2754 | [] | no_license | sidownbusdriver/UHI-Scripts | 55476bbdd11e4dbff5547f63c2a842564dea439c | f472bd4d0e99ed81a8e880a0f67742b7abbf1442 | refs/heads/master | 2020-12-02T22:34:44.642490 | 2017-07-03T21:46:30 | 2017-07-03T21:46:30 | 96,152,188 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,469 | py | import numpy as np
import matplotlib as mpl
from scipy import ndimage
import matplotlib.pyplot as plt
import datetime as dt
import csv
# Call in the file
f1 = '/data/ahardin/New_York/NewYork_2007.csv'
data = np.recfromtxt(f1, unpack=True, dtype=None, names=True, delimiter=',')
#data1 = np.genfromtxt(StringIO(f1), skip... | [
"noreply@github.com"
] | sidownbusdriver.noreply@github.com |
5215d7aee1f79545124b261740052b0b5e5af4fb | f44c0ae69de99da4ca248d7ec00f6a56d84f649d | /src/parameters_combinator/ListOfParams.py | 6446198df70ded58d37de5c8a074601cd06bedf7 | [
"BSD-3-Clause"
] | permissive | birlrobotics/parameters_combinator | 641f7701e4b7429fb68be524de97e1eb2e514fa6 | 6f4f1ed838867c3d6b692b57d5895c18320394e9 | refs/heads/master | 2021-01-25T14:10:20.852853 | 2018-07-09T06:44:11 | 2018-07-09T06:44:11 | 123,659,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 36 | py |
class ListOfParams(list):
pass
| [
"sk.law.lsq@gmail.com"
] | sk.law.lsq@gmail.com |
56620c15d1d974188b6ff057d1009fc205b0c77b | 587e2fc104a484c60aa2fab01c3cdc1d2a330778 | /Cryptography/crypto.py | 5fd14d3a944506262fe0f82063a012388ab1ff82 | [] | no_license | tlittle2/Kattis-Solutions-Python | 7b3c379f9b394b8b944377c1329332e483ccfcf3 | 92ed9987b81e3276d2a03252177f1f45b98388e4 | refs/heads/main | 2022-10-10T07:51:33.431519 | 2022-09-30T22:29:12 | 2022-09-30T22:29:12 | 216,254,189 | 0 | 2 | null | 2022-09-30T18:27:47 | 2019-10-19T18:42:47 | Python | UTF-8 | Python | false | false | 735 | py | #!/usr/bin/env python3
from string import ascii_uppercase as upp
def main():
message = str(input())
mLst = [str(i) for i in message]
key = str(input())
kLst = [str(i) for i in key]
for i in range(len(kLst)-1, -1, -1):
mLst.pop(len(mLst)-1)
mLst.insert(0,kLst[i])
... | [
"noreply@github.com"
] | tlittle2.noreply@github.com |
f73f59d3cacd10432bbaf47dccbf81cc1630967d | 0a7bdc823de7a97571e7440cd8ac09a07d9fde04 | /site-packages/azure/storage/queueservice.py | f665fca3713260f70a187dd47e4234a5e988a263 | [] | no_license | jacalata/optimization | 0b7790975f8f1d18bc0ec01d3fb91c5a5926630d | 78ba79e6a557bd15b0166c68038b3f9ac0e4af3f | refs/heads/master | 2020-05-17T08:30:41.485057 | 2014-01-28T05:48:16 | 2014-01-28T05:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,714 | py | #-------------------------------------------------------------------------
# Copyright (c) Microsoft. 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.apac... | [
"jacalata@gmail.com"
] | jacalata@gmail.com |
5376359526eb1ac0de52a283b309692922b54864 | 74a01e6a22fe7c6b552e2ffb9f92d9671c54aa20 | /bpb/parser/pdf.py | fb7471eb62cbce5bdbd4260bce0c4ba579fa4d16 | [] | no_license | snagwuk/blog_post_bot_cli | 549805ba988c3753185111575ba759566c7ea17f | 29e6c6e9e7c48e5ad7c9b4dda26e56226c683290 | refs/heads/master | 2022-03-27T01:05:44.441712 | 2020-01-05T01:00:54 | 2020-01-05T01:00:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | # modules for
import PyPDF2
import pprint
# pdf file object
# you can find find the pdf file with complete code in below
pdfFileObj = open('../data/test.pdf', 'rb')
# pdf reader object
pdfReader = PyPDF2.PdfFileReader(pdfFileObj)
# number of pages in pdf
print(pdfReader.numPages)
# a page object
pageObj = pdfReader.ge... | [
"pjt3591oo@gmail.com"
] | pjt3591oo@gmail.com |
bf18ccf06edc02e98f278157db148c8745dfb6ae | c56779d6ea4ae0043caa4b6cec88b35e326e8961 | /web_development/app.py | 82a61546e5909b3609c6f2285bf425e86b4005ca | [] | no_license | zxh2135645/BE223A | 40f7d3a099f34be8a29d8a43b058b5e7f522cac9 | 3c3cd6050b7a4d76fd23b22ac0553e3e4704b880 | refs/heads/master | 2021-09-14T06:53:17.122259 | 2018-05-09T03:33:15 | 2018-05-09T03:33:15 | 110,093,725 | 0 | 1 | null | 2017-12-05T00:41:55 | 2017-11-09T09:22:11 | Jupyter Notebook | UTF-8 | Python | false | false | 1,149 | py | # -*- coding: utf-8 -*-
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
from pandas_datareader import data as web
from datetime import datetime as dt
app = dash.Dash('Hello World')
app.layout = html.Div([
dcc.Dropdown(
id='my-... | [
"zxh2135645@gmail.com"
] | zxh2135645@gmail.com |
69e64077be97c782e455563333f9f0aaafc67fca | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-ims/huaweicloudsdkims/v2/model/list_image_tags_response.py | 76a1f6343bbb44bb9fa8a53ef623e27886720b43 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
class ListImageTagsResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
440db0c44f8330f6cdd323170112e02a5febbb91 | d3ebdc92a4766e5105278c5ce05e627ec78ef026 | /app/emaskjp/migrations/0004_auto_20200423_0932.py | 1271cf1f5d86a66443e25e4e7932dd5c65f46307 | [] | no_license | jun-JUNJUN/emaskjp | 5377fedcc5c8e7c61b8bb4640dab21f0862b530d | 27fbe408f2eb5e69b8cc85441901d429103bd774 | refs/heads/master | 2023-08-15T05:47:15.062899 | 2020-05-05T06:05:18 | 2020-05-05T06:05:18 | 266,265,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | # Generated by Django 3.0.3 on 2020-04-23 09:32
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('emaskjp', '0003_auto_20200423_0905'),
]
operations = [
migrations.AlterField(
model_name='entity',... | [
"donkun77jp@gmail.com"
] | donkun77jp@gmail.com |
46ee00e658ceb974d6e469f67b024421c60f50ec | 70695894ffa9abe7f7d56787159aa9c80e55b343 | /backend/backend/config.prod.py | a3d7accf529500f88825d4c8c259fb9743c6d8c3 | [] | no_license | cmihai/chat | afecb98dd3643289000c9887cc95f9eff8ad3098 | c3f8cebedaff9fc6922e8314b55f144d4ce0c034 | refs/heads/master | 2020-03-31T08:39:52.258866 | 2018-10-08T13:31:31 | 2018-10-08T13:31:37 | 152,067,383 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30 | py | DB_PATH = '/data/messages.db'
| [
"cmihai@users.noreply.github.com"
] | cmihai@users.noreply.github.com |
6d93b0cd78292a61ae919edfa5a15e96fa5f6f6a | c9697437c292df7fefd68559fdd9636066bdb2f1 | /dev/potentials/sinc_pulse_from_number_of_cycles.py | 0b1d64c026d7f66d3afbc925237681fad25c3cd4 | [] | no_license | JoshKarpel/ionization | ebdb387483a9bc3fdb52818ab8e897e562ffcc67 | 3056df523ee90147d262b0e8bfaaef6f2678ea11 | refs/heads/master | 2021-03-24T13:03:57.469388 | 2020-04-06T03:37:04 | 2020-04-06T03:37:04 | 62,348,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,601 | py | #!/usr/bin/env python
import logging
import os
import numpy as np
import simulacra as si
import simulacra.units as u
FILE_NAME = os.path.splitext(os.path.basename(__file__))[0]
OUT_DIR = os.path.join(os.getcwd(), "out", FILE_NAME)
LOGMAN = si.utils.LogManager("simulacra", "ionization", stdout_level=logging.DEBUG)
... | [
"josh.karpel@gmail.com"
] | josh.karpel@gmail.com |
7804532b391fe43fc82acd7a3ec0e8164b758671 | 54bdcc4aeae0c15ecda2f662adebb47733f0c8fb | /CO1/4.py | 03e2458ddb2cbcff8d8d71779f97274657a86efe | [] | no_license | AswinP2711/Python_Programs | ed1b8f77e18964143a42aa9721ed25b56be8f136 | 698929db2d751bd80a77059483c7a32a1e352c8c | refs/heads/master | 2023-03-28T23:06:06.014344 | 2021-03-23T12:32:22 | 2021-03-23T12:32:22 | 344,063,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | s = str(input("Enter a line of text : "))
counts = dict()
words = s.split()
for word in words:
if word in counts:
counts[word] += 1
else:
counts[word] = 1
print(counts) | [
"aswinp2711@gmail.com"
] | aswinp2711@gmail.com |
151392182417b31d3dd7cb2a6d0fcfa253fee301 | 436177bf038f9941f67e351796668700ffd1cef2 | /venv/Lib/site-packages/sklearn/linear_model/__init__.py | 796b13e6c63d51def5a559c6a79836627fc25551 | [] | no_license | python019/matplotlib_simple | 4359d35f174cd2946d96da4d086026661c3d1f9c | 32e9a8e773f9423153d73811f69822f9567e6de4 | refs/heads/main | 2023-08-22T18:17:38.883274 | 2021-10-07T15:55:50 | 2021-10-07T15:55:50 | 380,471,961 | 29 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | """
The :mod:`sklearn.linear_model` module implements a variety of linear models.
"""
# See http://scikit-learn.sourceforge.net/modules/sgd.html and
# http://scikit-learn.sourceforge.net/modules/linear_model.html for
# complete documentation.
from ._base import LinearRegression
from ._bayes import BayesianRi... | [
"82611064+python019@users.noreply.github.com"
] | 82611064+python019@users.noreply.github.com |
2c0f5451d92c6e2a7cc8ed70a45bb1ef821960c6 | cc83eb3318f8e15b68e3a6e3033c384ce851f497 | /VoiceD/googleRead.py | 34c1da244586f49d13cabb7a81d6205aecbf2e68 | [] | no_license | san7nu/Python_codes | bee04fd2865d0cf86aeb600f3039d8387a04f03f | f3aca72f27aa17c5853633f39657363c621e11d8 | refs/heads/master | 2020-03-22T17:17:55.393692 | 2019-05-07T13:24:25 | 2019-05-07T13:24:25 | 140,386,596 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
r.adjust_for_ambient_noise(source)
print("Say something!")
audio = r.listen(source)
try:
print("Google Speech Recognition thinks you said #" + r.recognize_google(audio))
except sr.UnknownValueError:
print("Google Speech Rec... | [
"4fun.san@gmail.com"
] | 4fun.san@gmail.com |
6f4834c15b3b1e191d3392fc4e083bce9dd8c3ee | 454a4c4b070f8e7c312a0641dd8431b5b169f716 | /cart/context_processors.py | f2ea95c45c62f5e362979784485dc5120cd38add | [] | no_license | adamdyderski/Online-shop | c6ed7736b319402866887ebd51938c5483af10c9 | a52a358122911239cd2390494dcbd8981568a9d6 | refs/heads/master | 2021-04-28T03:03:30.135701 | 2018-02-21T09:43:09 | 2018-02-21T09:43:09 | 122,127,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py |
def cart_processor(request):
cart = request.session.get('cart', {})
return {'cart_count': len(cart)}
| [
"adamdyderski94@gmail.com"
] | adamdyderski94@gmail.com |
ccbb02c3cf0ac4b9e9da7e4142bf9b2deecd73fd | c7a932e28a1a1dbc70c05c62caa43ce6cb691686 | /fabric/service/monitor/promethues/prometheus.py | 13d3ebd36fcfa08a10fc933ae20e580484cc043f | [] | no_license | Martians/deploy | 9c2c9a9b0e4431e965960aada0f40df6a34b2e09 | 6fd3f892edd7a12aa69d92f357cc52932df86d9c | refs/heads/master | 2022-01-09T03:29:13.948962 | 2019-04-29T05:15:40 | 2019-04-29T05:15:40 | 112,311,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,554 | py | # coding=utf-8
from invoke import task
from common import *
import system
class LocalConfig(LocalBase):
""" 默认配置
"""
def __init__(self):
LocalBase.__init__(self, 'prometheus')
self.source = 'https://github.com/prometheus/prometheus/releases/download/v2.6.0/prometheus-2.6.0.l... | [
"liudong@daowoo.com"
] | liudong@daowoo.com |
53eb69b3f36faa7820b1029d5787c4e03dc5bcf3 | e442f513d5bc640d93637a6f41b98427b3d5d392 | /queue_test.py | e98ebed4986f82b577ec2bbd7d9bff7e8ec7b09b | [] | no_license | CNBlackJ/mobot | e9b9e04234e3220f4c94c9f52176f443005eb709 | 2b674eeead564820bae31c8f3a3ed1df08d71c92 | refs/heads/master | 2020-04-08T14:17:53.727413 | 2018-12-03T07:14:31 | 2018-12-03T07:14:31 | 159,430,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | #!/usr/bin/python3
# -*- coding:utf8 -*-
import multiprocessing
import os, time, random
# 写数据进程执行的代码:
def write(q):
print('Process to write: %s' % os.getpid())
for value in ['A', 'B', 'C']:
print('Put %s to queue...' % value)
q.put(value)
time.sleep(random.random())
# 读数据进程执行的代码:
def ... | [
"yes.heng@icloud.com"
] | yes.heng@icloud.com |
4ff68446a3e28c7bc77b5fc15b631b5a27957f7d | 7ac0f072065b1ed322dc804f3bfc741dd935e7c0 | /HW2/Q5_train.py | 4c58641a77fa35a3d5ff7cdb2d64d068a044648c | [] | no_license | zhu849/NCKU-image-process | 34e36ade1e8a4b103e19daa44dde93dc8297e158 | f62f41dd2a580b67fc073697b348732206fd8cdc | refs/heads/main | 2023-09-01T01:17:25.101178 | 2021-10-26T11:26:06 | 2021-10-26T11:26:06 | 380,796,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,179 | py | import random
import os
import cv2
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from keras.datasets import mnist
from keras.models import Sequential, Model
from keras.layers import Dense, Dropout, Activation, Flatten, BatchNormalization, merge, Input
from keras.layers import Convolution2D,... | [
"66557634+zhu849@users.noreply.github.com"
] | 66557634+zhu849@users.noreply.github.com |
2646cbca549f16adcee90198326548ef2b7dbfe0 | a3bf1597881b56be605e4fb4482a6c99213f3cef | /robin/wsgi.py | a2ab64974a7706a5ffd1a2070522bdfb3bd929ed | [
"Apache-2.0"
] | permissive | oneprice/microbot | dd7a27f62cabc293fddad0bf175bcacaf78ab350 | dbd6417c70d8e20d37e2ca585e85a97a4c8a4144 | refs/heads/master | 2021-07-20T15:34:01.033737 | 2017-10-27T02:31:35 | 2017-10-27T02:31:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | import os, sys
sys.path.append('/home/pi/Django')
#sys.path.append('/home/pi/Django/robin')
sys.path.append('/home/pi/Django/myvenv/lib/python3.5/site-packages')
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "robin.settings")
application = get_wsgi_application()
| [
"noreply@github.com"
] | oneprice.noreply@github.com |
797987fe548a6f7c7c46884932412b3e90e8bc1a | 119437adb7830659307c18b79a9cc3f6bfc6fe40 | /onnx_model_serving/onnx_model_predict.py | 95a0f36ce1f8192ebe4a598455dc1cc4eb833cee | [] | no_license | percent4/PyTorch_Learning | 478bec35422cdc66bf41b4258e29fbcb6d24f60c | 24184d49032c9c9a68142aff89dabe33adc17b52 | refs/heads/master | 2023-03-31T03:01:19.372830 | 2023-03-17T17:02:39 | 2023-03-17T17:02:39 | 171,400,828 | 16 | 7 | null | 2023-09-02T08:53:26 | 2019-02-19T03:47:41 | Jupyter Notebook | UTF-8 | Python | false | false | 730 | py | # -*- coding: utf-8 -*-
# @Time : 2021/2/3 20:09
# @Author : Jclian91
# @File : onnx_model_predict.py
# @Place : Yangpu, Shanghai
import onnxruntime
import torch
import numpy as np
def to_numpy(tensor):
return tensor.detach().cpu().numpy() if tensor.requires_grad else tensor.cpu().numpy()
ort_session = onnxrunt... | [
"1137061634@qq.com"
] | 1137061634@qq.com |
dd72aaa603df01d3ea5567d1cef9146d0c699c55 | 9a3064cd9a2712575ba57936566cd824c18cb8cd | /scripts/m4.py | 8d339e0a34914c20aacf1302d3311f139b4c5f42 | [] | no_license | chengu1993/cs445 | a6ad71aa056e17003e5e030e5437af5c4140d3c7 | 44ba34cff325342411d0ff8c2a8020a4233785b3 | refs/heads/master | 2021-01-01T19:26:33.306907 | 2017-07-27T22:54:13 | 2017-07-27T22:54:13 | 98,586,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,177 | py | #import numpy as np
import pandas as pd
#from matplotlib import pyplot as plt
from sklearn import svm, tree
from sklearn.cross_validation import cross_val_score
from sklearn.naive_bayes import GaussianNB
import pydotplus
#from sklearn.externals.six import StringIO
#from IPython.display import Image
#import pickle
from ... | [
"zijun@Zijuns-MBP.wireless.yale.internal"
] | zijun@Zijuns-MBP.wireless.yale.internal |
a3ad6fec8b7b991839d4265cfb3f8f96df862df6 | 7b270cf5f9d0a3e26b5afd758563c6cff73a5248 | /comportamentais/iterator/canal/canal/canais/__init__.py | 89401268f00e0cba0c575756511cf3b8a786a561 | [] | no_license | reginaldosantarosa/DesignPatterns | 10810672d3831e562ec636a5f66bd709c797ca34 | bec4247f52b8d2e1fe41c570408816a5d4b22608 | refs/heads/master | 2020-04-04T06:54:19.757054 | 2018-01-04T03:06:05 | 2018-01-04T03:06:05 | 155,761,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | from canal.canais.filmes import Filme
from canal.canais.esportes import Esporte
| [
"victorhad@gmail.com"
] | victorhad@gmail.com |
c0bc193c0ca45d24c0490317457e0038ba7a2b66 | 7a550d2268bc4bc7e2fec608ffb1db4b2e5e94a0 | /0701-0800/0701-Insert into a Binary Search Tree/0701-Insert into a Binary Search Tree.py | fe9dea06abb24db8df133f5a1db2ab1c7bbf15c4 | [
"MIT"
] | permissive | jiadaizhao/LeetCode | be31bd0db50cc6835d9c9eff8e0175747098afc6 | 4ddea0a532fe7c5d053ffbd6870174ec99fc2d60 | refs/heads/master | 2021-11-05T04:38:47.252590 | 2021-10-31T09:54:53 | 2021-10-31T09:54:53 | 99,655,604 | 52 | 28 | MIT | 2020-10-02T12:47:47 | 2017-08-08T05:57:26 | C++ | UTF-8 | Python | false | false | 617 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def insertIntoBST(self, root: TreeNode, val: int) -> TreeNode:
inode = TreeNode(val)
if root is None:
return inode
... | [
"jiadaizhao@gmail.com"
] | jiadaizhao@gmail.com |
dd7d9f4672f5b1e4cbc5d0e3a459f1cdd8689023 | d331eb807a5e9424fed05a25fd1dfa4b680bddce | /resources/解析单词.py | 54e23d92837007182038df07ad17663f76b1f41d | [] | no_license | ahuinee/challengewords | b8fd9a49cb1b0fff0683a0b8b80e138190ef9696 | 11bfcafe89a546b8d0c37b3982e6cb044ca80bd5 | refs/heads/master | 2023-08-07T19:25:29.598013 | 2021-09-17T08:11:22 | 2021-09-17T08:11:22 | 345,714,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | import openpyxl #xlsx解析
import re # 正则
import json # JSON
# 文件名
fileName = "单词.xlsx"
# 以只读模式打开工作簿
wb = openpyxl.load_workbook(fileName, read_only=True)
# 获取workbook中所有的表格sheet
sheets = wb.get_sheet_names()
# 班级与书册
volumeRE = re.compile("(.*)(上册|下册)")
# 单元匹配
unitRE = re.compile(".*单元")
# 单词匹配
wordRE_EN = re.compile(... | [
"xiahesong@sz.hitrontech.com"
] | xiahesong@sz.hitrontech.com |
8739c5eab034f23e4b46d81dca13f9f755c4c200 | db113789a0b0afa7b511d9df6ebc9928639badda | /save_pb.py | ecc6dcbc703e981de5a4e129a5caeedbb50bc698 | [] | no_license | zhaohb/tensorflow_demo | c89357090560453b0fe5e9db5cf21d2685f902f7 | 9d8fc9368a2983cea478bc5974777f39787d913c | refs/heads/master | 2020-05-20T12:23:04.938362 | 2019-05-08T09:13:07 | 2019-05-08T09:13:07 | 185,571,475 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | #!/usr/bin/env python
# coding=utf-8
import tensorflow as tf
import os
from tensorflow.python.framework import graph_util
def save_mode_pb(pb_file_path):
x = tf.placeholder(tf.int32, name='x')
y = tf.placeholder(tf.int32, name='y')
b = tf.Variable(1, name='b')
xy = tf.multiply(x, y)
# 这里的输出需要加上nam... | [
"zhaohongbocloud@gmail.com"
] | zhaohongbocloud@gmail.com |
db0abd0731c1c469315f6d765e74347f5c886476 | 5780917b2279dbe60d5205b2052d523b0dfd86e1 | /app.py | ccb69fa57980e40450347d7f1a8f476121a1ea7b | [] | no_license | agungd3v/myassistant | 9f5a7a74056fb14c41395cf578e9169c2c4b5d68 | 2ff472bf92366a4b86c767025ca6641a040ec46e | refs/heads/master | 2023-07-17T16:48:14.016160 | 2021-08-14T13:37:17 | 2021-08-14T13:37:17 | 394,739,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | from modules import speak, takeCommand, openBrowser, playMusic
WAKE = "buddy"
MUSIC = "music"
YOUTUBE = "youtube"
CAN = "what you can"
while True:
query = takeCommand().lower()
if query.count(WAKE) > 0:
speak("hi, do you need help ?")
while True:
query = takeCommand().lower()
if query.count(CA... | [
"mailtotuyul1@gmail.com"
] | mailtotuyul1@gmail.com |
7bc53a93671804c0f4d9e619a80a21474a43e4a5 | 12d7fcf617b47380316b0121504a8725e1766e98 | /funzioni_iot/views.py | 86bdee34c390b6b2899d496942223e2f323e8284 | [] | no_license | gordongekko67/testrepository | 0a824d02c1b302321ced264e1e8167d5cce907f2 | 18a2fcfd8129d808973590dc7ed78f8206eae5a6 | refs/heads/main | 2023-04-04T08:11:01.554259 | 2021-04-01T10:32:31 | 2021-04-01T10:32:31 | 353,658,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,227 | py | from django.shortcuts import render, get_object_or_404, HttpResponseRedirect
from django.http import HttpResponse, JsonResponse
from django.template import loader
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.core.mail import send_mail
from django.views.generic.detail import Deta... | [
"ensa77@yahoo.com"
] | ensa77@yahoo.com |
9a324685e1167bb07e78868dd6ef4f71fd3a1487 | 24ef41c369162f4d7ec3576f2d6128c2cbc2598e | /pigpio_ranger.py | 8c78b2312c11c3fe0bbb1be5706a68c1347d6499 | [] | no_license | dausi15/WallFollower | 4303e9f0bdff4768349a3ae5fa0083c32402db61 | 2b3299548d72c385374ef8fdfd25012516ac9404 | refs/heads/master | 2020-09-24T06:48:35.489191 | 2019-12-03T15:51:37 | 2019-12-03T15:51:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,659 | py | import time
import pigpio
class ranger:
"""
This class encapsulates a type of acoustic ranger. In particular
the type of ranger with separate trigger and echo pins.
A pulse on the trigger initiates the sonar ping and shortly
afterwards a sonar pulse is transmitted and the echo pin
goes high. ... | [
"marcndkk@gmail.com"
] | marcndkk@gmail.com |
a2463c9f471f00343aeea8d410921d81c32a9458 | 4ab6c6037c8b0643f0052400ecc5e5776ae7d9b4 | /psd_test_code/psd_env/bin/f2py3 | d19ba86e97d56f6526daacadbe5df5f3e6943847 | [] | no_license | swarupovo/psd_generator | 315f10e11f148844fe6b553e8e21faee8f6c2c1d | 1cccd273d16ae19ddb90960aa41330ca8fad63e2 | refs/heads/master | 2020-06-15T23:10:50.887483 | 2019-07-05T13:57:36 | 2019-07-05T13:57:36 | 195,416,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | #!/home/webskitters/Desktop/certificate/psd_test_code/psd_env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from numpy.f2py.f2py2e import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"swarup.adhikary@webskitters.com"
] | swarup.adhikary@webskitters.com | |
c0a4b1ecee5eb7705fb4d6c81545e651d56f3071 | d36c4c882089b9b81e6e3b6323eeb9c43f5160a9 | /7KYU/Square Area Inside Circle/solution.py | dead9b201402be6e5751806d9e7f0d05e24b1f5d | [] | no_license | stuartstein777/CodeWars | a6fdc2fa6c4fcf209986e939698d8075345dd16f | d8b449a16c04a9b883c4b5e272cc90a4e6d8a2e6 | refs/heads/master | 2023-08-27T20:32:49.018950 | 2023-08-24T23:23:29 | 2023-08-24T23:23:29 | 233,281,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | import math
def square_area_to_circle(size):
radius = math.sqrt(size) / 2
return round((math.pi * (radius * radius)), 8) | [
"qmstuart@gmail.com"
] | qmstuart@gmail.com |
ef14e05b00b14f120326d7133682265e3176e41e | 93a613f09d564a1d45ecc01b54b73745ce2850b7 | /majora2/migrations/0023_biosampleartifact_secondary_accession.py | 0d98165508518f2dfdfd9b53251418ed78c4a31c | [] | no_license | pythseq/majora | fa17c77fa8a916c688fd2b40744d768dd851b99b | 40b918d32b4061cddee5f7279f97e70eb894623d | refs/heads/master | 2022-12-23T20:09:41.233844 | 2020-09-28T18:18:42 | 2020-09-28T18:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 2.2.10 on 2020-03-22 16:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('majora2', '0022_auto_20200322_1616'),
]
operations = [
migrations.AddField(
model_name='biosampleartifact',
name='s... | [
"samstudio8@gmail.com"
] | samstudio8@gmail.com |
43255b07c55ba8aa33bb1da1bc2e3805ee24f9ec | 00518d41d893c016a81280f1a578ab36224cbd0c | /sqlEngine.py | 15e06f3bca1bcd63bdda2d7d7f33a16153984550 | [] | no_license | JahnaviN/miniSqlEngine | 0c4e488ca80ff28e8e344c0ae4ffd7672c7a55c7 | 3c183c1aa7672ac6e8c660202a8450420d65fb6c | refs/heads/master | 2021-01-10T16:31:00.520308 | 2015-12-11T21:14:39 | 2015-12-11T21:14:39 | 47,120,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,329 | py | # Syntax:
# select * from <tableName>
# select aggregate(column) from <tableName>
# select <colnames> from <tableName> [ colnames = seperated only by , and no extra spaces]
# select distinct(colName) from <tableName>
# select distinct <colnames> from <tableName>
# select <colNames> from <tableName... | [
"jahnavi@Jahnavi.Nukireddy"
] | jahnavi@Jahnavi.Nukireddy |
a4192251a1f0165bc9861caa80f4688fd57d879e | 3b81dfbacf97918d36fb5accbcef0b610378e1a8 | /python-basic/item/shoot/02-老蒋开枪设计类,创建对象.py | 141feaad46a116d7abd5069ed6c48ff39f865cf1 | [] | no_license | XiaoFei-97/the-way-to-python | 11706f0845f56246ba8ea0df8ff34e622bbdad2d | 3667a24f4f4238998e9c6ed42cdc49c68881a529 | refs/heads/master | 2020-03-21T06:46:36.939073 | 2018-06-23T03:51:11 | 2018-06-23T03:51:11 | 138,241,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | class Person(object):
"""人的类"""
def __init__(self,name):
super(Person,self).__init__()
self.name = name
class Gun(object):
"""枪的类"""
def __init__(self,name):
super(Gun,self).__init__()
self.name = name #用来记录枪的类型
class Danjia(object):
"""弹夹的类"""
def __init__(self,max_num):
super(Gun,self).__init__()
s... | [
"jack_970124@163.com"
] | jack_970124@163.com |
96781964961a6b8473dc819f30a615209b263664 | 82fbbcef99c345d7c7acae5c6e5a2f01eea956bf | /sif_embedding_perso.py | 956e1a0fd8e1b7a3fd3d68cd2be465498738d1a2 | [
"MIT"
] | permissive | woctezuma/steam-descriptions | 06ae1cc602f06fbb789e55297d69eebbed265c99 | 16e694dfa565dd84acf1f5007bb8dde90f45a2a8 | refs/heads/master | 2023-08-09T22:19:04.354387 | 2023-02-06T14:03:43 | 2023-02-06T14:03:43 | 189,773,250 | 1 | 0 | MIT | 2023-09-14T16:24:17 | 2019-06-01T20:06:35 | Python | UTF-8 | Python | false | false | 11,203 | py | # Objective: learn a Word2Vec model, then build a sentence embedding based on a weighted average of word embeddings.
# References:
# [1] Sanjeev Arora, Yingyu Liang, Tengyu Ma, "A Simple but Tough-to-Beat Baseline for Sentence Embeddings", 2016.
# [2] Jiaqi Mu, Pramod Viswanath, All-but-the-Top: Simple and Effective Po... | [
"woctezuma@users.noreply.github.com"
] | woctezuma@users.noreply.github.com |
aee8fe622623403d160b84a20a514c268c8c9447 | 8a36c91678850c0563e4b8afdf4b2f37dce61f86 | /nupack_utils.py | d2dab0e777ea13fae7fe9557e4e873312c080132 | [] | no_license | zchen15/pseudoknot_scanner | d245bb88c24991a8a8f48bf747342525de9de860 | 4e0e092fe24be2a1cfab75efbf563b5c43994dc4 | refs/heads/main | 2023-01-01T21:22:21.478499 | 2020-10-24T04:47:24 | 2020-10-24T04:47:24 | 306,806,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,430 | py | """
2016-02-11, Zhewei Chen
Updated nupack_utils.py with wrapper for complexes executable
This file contains utility functions to enable easy interfacing
between Python and calls to the NUPACK core executables. It additionally
contains utility scripts for converting structures from dot-paren
notation to pair l... | [
"zchen@caltech.edu"
] | zchen@caltech.edu |
93fcf60be9475d9cd490935255c7a9803947da13 | b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4 | /toontown/src/coghq/DistributedTriggerAI.py | 374f8cd57b81b637e18ee7e8befda3be1dea203f | [] | no_license | satire6/Anesidora | da3a44e2a49b85252b87b612b435fb4970469583 | 0e7bfc1fe29fd595df0b982e40f94c30befb1ec7 | refs/heads/master | 2022-12-16T20:05:13.167119 | 2020-09-11T16:58:04 | 2020-09-11T17:02:06 | 294,751,966 | 89 | 32 | null | null | null | null | UTF-8 | Python | false | false | 422 | py |
from direct.directnotify import DirectNotifyGlobal
from direct.task import Task
import DistributedSwitchAI
class DistributedTriggerAI(DistributedSwitchAI.DistributedSwitchAI):
"""
DistributedTriggerAI class: The server side representation
of a Cog HQ trigger. This is the object that remembers what the... | [
"66761962+satire6@users.noreply.github.com"
] | 66761962+satire6@users.noreply.github.com |
94d19d1919340743e72d4ebb192343c2b15a4bb0 | ecb7156e958d10ceb57c66406fb37e59c96c7adf | /Leetcode Exercise/Leetcode234_Palindrome Linked List/mySolution.py | dbf19308c870dfebb7d2d431d79233914dcedce8 | [] | no_license | chenshanghao/RestartJobHunting | b53141be1cfb8713ae7f65f02428cbe51ea741db | 25e5e7be2d584faaf26242f4f6d6328f0a6dc4d4 | refs/heads/master | 2020-07-27T17:39:58.756787 | 2019-10-18T06:27:27 | 2019-10-18T06:27:27 | 209,175,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def isPalindrome(self, head: ListNode) -> bool:
if not head or not head.next:
return True
slow, fast = head, head
while fast.next... | [
"21551021@zju.edu.cn"
] | 21551021@zju.edu.cn |
4922816df820e6cd6e13b69cbe2a4082fa22d185 | a969a8f859e3f13c5bcfc5f7392da85b2e225bfa | /SLiM_simulations_review/slim_genetree_to_vcf_norescale_toIndAnc_backAnc.py | d7c04f3cf062c73fb936aebaaa2a3ebcc59d73fe | [] | no_license | Schumerlab/hybridization_review | 4977d95d93c451e20c212227887334bb17457f6f | 69a398b89365cc069c6856d990c2b74293b52486 | refs/heads/master | 2023-08-07T00:23:24.853939 | 2021-06-02T22:34:41 | 2021-06-02T22:34:41 | 373,316,405 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,010 | py | __author__ = 'Quinn'
import msprime, pyslim
import numpy as np
import argparse
from time import perf_counter
parser = argparse.ArgumentParser(description="For F4 simulations convert SLiM tree output into a VCF")
parser.add_argument('--out', help="Output prefix, required", required=True)
parser.add_argument('--input',... | [
"mollyschumer@BIO-C02YR1A0LVDM.local"
] | mollyschumer@BIO-C02YR1A0LVDM.local |
c324290754311f05f0b020770073134bfd94dbd0 | dc7a373c3d4f2968907f84bcde96855a56249015 | /autoconnect.py | 2eb8241305bd096ee996cab0608b177b5c4cc251 | [
"MIT"
] | permissive | lminy/thesis-scripts | f5be7801ddb108cc986765e74aeb73a1ad7900b6 | 7cfad8b04360c6797f112593cab02159bfde63db | refs/heads/master | 2021-01-02T09:04:06.448375 | 2017-08-02T15:40:07 | 2017-08-02T15:40:07 | 99,132,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,818 | py | #!/usr/bin/env python
# Requirements :
# sudo pip install netifaces
# sudo apt-get install wireless-tools
SSID = 'ssid'
INTERFACE = 'wlan0'
import subprocess
import re
import time
import logging
logger = logging.getLogger("AutoConnect")
logger.setLevel(logging.INFO)
fh = logging.FileHandler("autoconnect.log")
for... | [
"laurent.miny@hotmail.com"
] | laurent.miny@hotmail.com |
36bb45aabfcceb44fb37a15fe408059273425236 | 28d3597f54e03dcf4dfbd86b4557ebe0872e9330 | /pollster/urls.py | cd796b78f3314e273746ef4c592450fb9eb98d50 | [] | no_license | wenchnoob/django_demo | 439ecde19a2a2a20fdab6d8376fd240efaf38590 | 3fb05cb38d2faffd502a4072b70a4ae722898c63 | refs/heads/master | 2023-07-07T06:15:47.877769 | 2021-08-12T23:19:25 | 2021-08-12T23:19:25 | 395,465,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | """pollster URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"wcdutreuil@gmail.com"
] | wcdutreuil@gmail.com |
2a5b6ea2fdb883878cc91d9cdc2864c4be3c2418 | c3a70d03ecb42f9d0e67ca887171402e8a9f610a | /image_thumbnail.py | 691440fbb9636d34406ffc9036ea0010e26851c4 | [] | no_license | Fabio-Ottaviani-Dev/image-upload-and-thumbnail | 1335586d39cdf5d7fe7dd2f0e73bd35c102fc014 | 8237879aa12871495f7a98c8c3ce48f9cf8d4b49 | refs/heads/master | 2022-12-01T22:09:08.070326 | 2020-07-18T19:59:11 | 2020-07-18T19:59:11 | 252,869,702 | 0 | 0 | null | 2022-11-22T05:50:02 | 2020-04-04T00:01:36 | Python | UTF-8 | Python | false | false | 2,305 | py | import os, random
from datetime import datetime
from flask import jsonify
from werkzeug.utils import secure_filename
from PIL import Image
# ----------------------------------------------------------------------------
class imageThumbnail:
def __init__(self):
self.UPLOAD_FOLDER = 'image'
self.AL... | [
"F0Dev"
] | F0Dev |
f16f65d40aa4deb5a70bedca0900c9a5ad0c7832 | 9cc92316b675eda133ed2d17c2630728b12f3140 | /polls/urls.py | d539b022d2404d855a45d8b8981bd96e44f97fdd | [] | no_license | MelinaLaura/Polls-App | 43f683de9ae57c04ea3a0c7fcbc2ab49b9dc486b | b391e25316137d677f2205c1593dd65b49fed979 | refs/heads/main | 2023-05-03T22:35:32.362593 | 2021-05-18T13:54:43 | 2021-05-18T13:54:43 | 367,315,529 | 0 | 0 | null | 2021-05-18T13:54:44 | 2021-05-14T09:34:23 | Python | UTF-8 | Python | false | false | 366 | py | from django.urls import path
from . import views
app_name = 'polls'
app_name = 'polls'
urlpatterns = [
path('', views.IndexView.as_view(), name='index'),
path('<int:pk>/', views.DetailView.as_view(), name='detail'),
path('<int:pk>/results/', views.ResultsView.as_view(), name='results'),
path('<int:qu... | [
"83724903+MelinaLaura@users.noreply.github.com"
] | 83724903+MelinaLaura@users.noreply.github.com |
b20f8e143e88c992748a2c5e0536af1c718347ce | 709a8e53c3cc19c9197d4a6614f445a849c912b1 | /efd_exam/soil/soil_temp_solver.py | d76057173851050a7f94fc24928d9d0ae71a3126 | [] | no_license | adair-kovac/efd_exam | 441bdaf9b9049060474760fb9a4625dd4e06fe36 | eb64522dcebe8d1b489a9696d75731a0c5b12564 | refs/heads/main | 2023-04-04T21:16:00.785525 | 2021-04-12T19:16:40 | 2021-04-12T19:16:40 | 357,051,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | '''
We solve the heat equation:
dT/dt = alpha * d^2 T/dz^2
using Euler's method.
Our conditions are:
I.C. - T(t=0, z)
B.C. - T(z -> infinity) [this is the same for all t]
B.C. - T(t, z = 1.5)
'''
import numpy as np
from soil import soil_data_loader as data_loader
from soil import finite_difference
from soil impo... | [
"u1334098@utah.edu"
] | u1334098@utah.edu |
de543dd2d61597a1e0284af168a9d1d2d12c2484 | 9172b47b48c04baff8bc5422d59761deeac39ea2 | /MainIoT/urls.py | 312f28e4441ace64fdb053a28db51f8020fddc07 | [] | no_license | choredarck/WebPageIoTdi2020 | 9b453ef22975eece6ff975203a056269938c9333 | 91176c873ef275c24cc517c776046fe8dc4e83a2 | refs/heads/master | 2023-01-04T19:08:44.953144 | 2020-11-05T09:05:23 | 2020-11-05T09:05:23 | 310,321,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | """MainIoT URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"luis-nuro@live.com.mx"
] | luis-nuro@live.com.mx |
8fd13d52b6fca8fb65d98acb253969f4ef423a0c | 295a119fa0b4a4aabf3634e32309442c6b305e30 | /GFAR_python/kgrec_dataset.py | 6090f0a9474429e63965678c55c2d30f84208863 | [] | no_license | mesutkaya/recsys2020 | 3d8dd6a709a2868521e8e177ded1b58da6991968 | 8a8c7088bebc3309b8517f62248386ea7be39776 | refs/heads/master | 2022-12-05T14:53:22.865842 | 2020-08-21T10:22:57 | 2020-08-21T10:22:57 | 282,897,625 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,401 | py | import os
import pandas as pd
from sklearn.model_selection import train_test_split
import random
'''
KGRec - music dataset = https://www.upf.edu/web/mtg/kgrec
By using 'implicit_lf_dataset.csv' it creates 5 random splits and train validation and test sets
'''
WORKING_DIR = os.getcwd()
MAIN_DIR = os.path.abspath(os.... | [
"mesutt.kayaa@gmail.com"
] | mesutt.kayaa@gmail.com |
7fc045062d1d679bc74cc6bd4c75f09c7eccaacd | d4eec8dafdf95084189316dfbc774d0b6ae21463 | /bcs-app/backend/apps/configuration/yaml_mode/views.py | b834138be79fee180860850707b420bcdb547d9f | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unicode",
"ICU",
"LicenseRef-scancode-unknown-license-reference",
"Artistic-2.0",
"Zlib",
"LicenseRef-scancode-openssl",
"NAIST-2003",
"ISC",
"NTP",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | dd-guo/bk-bcs-saas | 8b9411a22cee9c7982595ff4860720e603dbfaa9 | 45d69d9a72039fbb4f05638785af7dcbc1c075e4 | refs/heads/master | 2020-12-01T04:03:22.626481 | 2019-12-27T06:10:51 | 2019-12-27T06:10:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,828 | py | # -*- coding: utf-8 -*-
#
# Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
# Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
# Licensed under the MIT License (the "License"); you may not use this file except i... | [
"gejun.coolfriend@gmail.com"
] | gejun.coolfriend@gmail.com |
892bfb3c653774d571cee594977f41fa0d804b1c | e4b241d2d730a3c1cba5723837ec294be8307e4e | /split_data_train_validation_test.py | 27210e73848a8633d187c8fd67913dee59eef35a | [] | no_license | ruhan/toyslim | 7219002a8eead4d338ba1fa4c38a145a41bb696e | 008abbac61246d1845d58afda44584be88b72bda | refs/heads/master | 2021-01-15T11:12:22.578488 | 2018-05-23T15:10:33 | 2018-05-23T15:10:33 | 22,106,072 | 40 | 15 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from util import split_train_validation_test
import sys
split_train_validation_test(sys.argv[1])
| [
"ruhanbidart@gmail.com"
] | ruhanbidart@gmail.com |
00fa4d011176e57511ded5ed70adff09c00870ef | 162e0e4791188bd44f6ce5225ff3b1f0b1aa0b0d | /examples/linear_model/plot_ard.py | d372542275a23bab2e67a592ff0f450684f6bdcd | [] | no_license | testsleeekGithub/trex | 2af21fa95f9372f153dbe91941a93937480f4e2f | 9d27a9b44d814ede3996a37365d63814214260ae | refs/heads/master | 2020-08-01T11:47:43.926750 | 2019-11-06T06:47:19 | 2019-11-06T06:47:19 | 210,987,245 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,909 | py | """
==================================================
Automatic Relevance Determination Regression (ARD)
==================================================
Fit regression model with Bayesian Ridge Regression.
See :ref:`bayesian_ridge_regression` for more information on the regressor.
Compared to the OLS (ordinary l... | [
"shkolanovaya@gmail.com"
] | shkolanovaya@gmail.com |
b0fc4f4a0ac9f56f67e06fa5df02898d6212fef3 | 585bac463cb1919ac697391ff130bbced73d6307 | /40_CombinationSumII/solution.py | 04afdc7ee5801e8baa42abe0630dd12e4380d840 | [] | no_license | llgeek/leetcode | ce236cf3d3e3084933a7a4a5e8c7766f7f407285 | 4d340a45fb2e9459d47cbe179ebfa7a82e5f1b8c | refs/heads/master | 2021-01-22T23:44:13.318127 | 2020-03-11T00:59:05 | 2020-03-11T00:59:05 | 85,667,214 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | """
use Counter
"""
from typing import List
from collections import Counter
class Solution:
def combinationSum2(self, candidates: List[int], target: int) -> List[List[int]]:
def backtracker(ret, cnt, target, path, start):
if target == 0:
ret.append(path[:])
return... | [
"lchen@matterport.com"
] | lchen@matterport.com |
e2e17ddf83490a92b43c3b1fb5c4eca695f5ce34 | 9a1a4d69a1139f97d1ac11da6335718a37d6fe65 | /move_detect/camera_detect.py | e174f677c7baa8f16d916001ad5ae650502f54d8 | [] | no_license | Miura55/cv_code | 46a5f561ed0640a9530a39dce50d28ba946bd0d6 | 5a132c2d646e46a1061598c9ae94eadb3e20d8b3 | refs/heads/master | 2021-07-06T03:28:20.232263 | 2021-01-10T17:22:22 | 2021-01-10T17:22:22 | 220,672,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,056 | py | import cv2
cap = cv2.VideoCapture(0)
avg = None
while True:
# 1フレームずつ取得する。
ret, frame = cap.read()
if not ret:
break
# グレースケールに変換
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
# 比較用のフレームを取得する
if avg is None:
avg = gray.copy().astype("float")
contin... | [
"acordion.piano@gmail.com"
] | acordion.piano@gmail.com |
19112e29a384c727f21c12f77a78ac6d016e0339 | 920e4a204c3b5a6c625e6634f14f7a704b4ef778 | /http_response_body_test.py | 773e2f705db6cdf91e760b4ed732e723e867f663 | [] | no_license | jason967/ChatBot | 23c6ad852bfa6cf166b5703569f315e2f2df35ab | 8b76d728a0fb7b6fe9810853377924d6c42a9d71 | refs/heads/master | 2022-11-19T05:53:48.987076 | 2020-07-17T07:40:09 | 2020-07-17T07:40:09 | 280,165,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from flask import Flask
app = Flask(__name__)
@app.route('/json/object')
def get_json_object():
response = {"id":1}
return response
@app.route('/json/list')
def get_json_list():
list = [1, 2, 3, 4, 5]
response = {"list": list}
return response
@app.route('/sensor/data/list')
def get_sensor_data_l... | [
"jason967@naver.com"
] | jason967@naver.com |
46f1492e0079cbd9e43a52216150bcb80318ccfe | 2feaddc19de5490a1b55af08079d7e1d866f4c2d | /test/includes/common.py | b4fad481873ade2896fdf63bd350d326132c9932 | [
"BSD-3-Clause"
] | permissive | drakkar-lig/walt-python-packages | 4beba93394da306550a54313800bb455b8652e81 | 2e487767c697aded22ba3e08b26964b45e154559 | refs/heads/master | 2023-09-04T10:53:48.768130 | 2023-09-01T08:05:11 | 2023-09-01T08:05:11 | 24,328,535 | 6 | 3 | BSD-3-Clause | 2023-09-01T08:12:36 | 2014-09-22T12:56:10 | Python | UTF-8 | Python | false | false | 1,764 | py | import os
import sys
from pathlib import Path
TEST_IMAGE_URL = "hub:eduble/pc-x86-64-test-suite"
def test_suite_image():
p = Path("/tmp/test_suite_image")
if not p.exists():
p.write_text(f"pc-x86-64-test-suite-{os.getpid()}\n")
return p.read_text().strip()
def test_suite_node():
p = Path("/... | [
"etienne.duble@imag.fr"
] | etienne.duble@imag.fr |
56223a3e9f7a42ca9c71a1e8022f48dc3ad0b795 | 10d0aa9386d7032f7b7bdd8db9666292331e90de | /PageLocators/shanghupage_locator.py | c867013c05f1ecbf4c5313585d7d5a40421c2d67 | [] | no_license | wangweimin110/UI_AUTO | f188446277f0d10a4da9d2ff50de20990fc59178 | a992c36f34e24eb5200af00d565fc3ad7459e702 | refs/heads/master | 2022-12-05T17:54:51.181778 | 2020-08-27T15:52:22 | 2020-08-27T15:52:22 | 289,970,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | # -*- coding: utf-8 -*-
from selenium.webdriver.common.by import By
class ShanghuPageLocator:
'''元素定位'''
#商户管理
business_management = (By.XPATH,'//span[text()="商户管理"]')
#商户签约维护
mcm = (By.XPATH,"//span[text()='商户签约维护']")
#商户编号
merchant_id = (By.XPATH,'//*[@id="nuiPageLoad280query_id"]/input'... | [
"1391691574@qq.com"
] | 1391691574@qq.com |
dc636fddcd61807fbfe299b988f3c61a5dfaa317 | 155497bf1cad4dd8ea3db387323df6cf938c6b19 | /02/lone_sum.py | ff2288f79138c1a4dfc77a05d76e67ef3be4d3db | [] | no_license | gp70/homework | 45a9fb22eb67958173a20fa30c73f1305c8bffc4 | 404b3444573998eac5042fbfe60cdd33b384420a | refs/heads/master | 2021-01-23T21:22:52.596980 | 2017-12-06T18:41:21 | 2017-12-06T18:41:21 | 102,896,521 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | def lone_sum(a, b, c):
sum = a + b + c
if a==b:
sum = sum - 2*a
if b==c:
sum = sum - 2*b
if a==c:
sum = sum - 2*c
if a==b==c:
sum = 0
return sum
| [
"gareth.petterson70@myhunter.cuny.edu"
] | gareth.petterson70@myhunter.cuny.edu |
b25cf15c6c2a589558393f10e01a8f63da93d570 | 6201152c40c52f8fb8f5789727661f63884fb5b8 | /xception/xception.py | 9c003ecd0d68cea1be7594e17207c5825031111b | [] | no_license | huuthai37/twostreamUCF11 | 4c7280f2a6778289bc28f9fa956c66959c158e33 | aa5689ab384c69704313d42bc1f0a7d277475168 | refs/heads/master | 2020-03-08T05:11:03.240535 | 2018-04-26T17:56:01 | 2018-04-26T17:56:01 | 127,941,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,113 | py | # -*- coding: utf-8 -*-
"""Xception V1 model for Keras.
"""
from keras.models import Model
from keras import layers
from keras.layers import Dense
from keras.layers import Input
from keras.layers import BatchNormalization
from keras.layers import Activation
from keras.layers import Conv2D
from keras.layers import Sep... | [
"huuthai37@gmail.com"
] | huuthai37@gmail.com |
2f4b614f6938af9db813b67d3ccf8c651d7fcff7 | dbcfd020a5c6008f7db96acd17eb183557821863 | /1.py | 3588b32b87e4484b8f9cb3acf510c75af3bf65ea | [] | no_license | vadim788/homework | acbfe7c75849cb77847f5802b9646ec70349299a | 009d5dc4cf4b471f780aa6573cf948b15ba1b3e6 | refs/heads/master | 2020-04-13T10:49:41.763131 | 2018-12-26T09:56:58 | 2018-12-26T09:56:58 | 163,154,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | def matri(rows):
matri = []
for i in range(0,rows):
matri.append(list(map(int, input().rstrip().split())))
return matri
dimension = (input("Введіть кількість рядків та стовпчиків: ")).split(" ")
matri = matri(int(dimension[0]))
mx = max(map(max, matri))
for i, e in enumerate(matri):
try:
... | [
"vadim743@icloud.com"
] | vadim743@icloud.com |
4b683ad281548db46b49c58011469c5752cda59a | 2f2b0b1761ff7c83d289e439f15520b2cfb27dad | /hw3_KNN_Boosting/classify3.py | e57d79a8624dabf6ab4525222c0d9246f1276a04 | [] | no_license | shuowenwei/Intro2MachineLearning_CS475 | 823b0dc3f0852eb9714a6d5c3d43ecbde928e1b3 | 107d12dc2643165e470ea566ec0b39ff7aed74d0 | refs/heads/master | 2021-01-24T10:15:20.792707 | 2016-11-28T04:59:13 | 2016-11-28T04:59:13 | 70,026,671 | 1 | 2 | null | 2016-11-16T03:25:00 | 2016-10-05T03:17:18 | Python | UTF-8 | Python | false | false | 15,473 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 07 11:29:12 2016
@author: mygao
"""
import os
import argparse
import sys
import pickle
import numpy
from cs475_types import ClassificationLabel, FeatureVector, Instance, Predictor, InstanceKnn
def load_data(filename):
instances = []
with open(filename) as reader... | [
"weisw9@gmail.com"
] | weisw9@gmail.com |
afce090b08d1a7012052ef2f6514c20bc7a9a2bf | 91a2c3c2a8813470485b740f04be01ec01c7656b | /DBPierreP/env/lib/python3.6/io.py | 44cc5fc03b2ee11bf6a3c70cb55258cc1c9d2971 | [] | no_license | piquemalpierre/DBPierreP | 399786bee4d111759ee300512d3fe06b3b104a0a | 411d0a4ca6f051de686b67f8bae3ab9cea6e889d | refs/heads/master | 2020-03-22T03:02:22.011413 | 2018-07-04T14:49:32 | 2018-07-04T14:49:32 | 139,409,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | /Users/pierre/anaconda3/lib/python3.6/io.py | [
"p.piquemal@hotmail.fr"
] | p.piquemal@hotmail.fr |
bd2966e9056c67dfe6f46c61d7e98a57c1775964 | 804012f2d450cf4d63ed86f994f6f21f8ac14fe8 | /venv/bin/pip3.6 | 1059069331caabe24b6394a3a2d2c421f59f316a | [
"MIT"
] | permissive | YoUNG824/DDPG | 6d8b60044025c0d681432b239d1a6143275dac07 | 1b8ae2d9687107cb587f6cd81112e75e779bf575 | refs/heads/master | 2020-12-06T14:40:08.181364 | 2020-01-08T05:45:36 | 2020-01-08T05:45:36 | 232,487,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | 6 | #!/Users/wxy/Documents/DDPG/DDPG/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3.6'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.ex... | [
"wxy@XUEYANG-WANG.local"
] | wxy@XUEYANG-WANG.local |
324a2174c7ebc34906abae67f0ba03c2095abe94 | 92a22a2e256ceeda4e3aef8fad3a5559172c9710 | /RS_PYSpark_estimatePi.py | dbf4205976f7c179c706ebaa3cced3dd14559ed0 | [
"Unlicense"
] | permissive | BrooksIan/EstimatingPi | 4e47e8322b2203178bed0afc07c6a3f4326794d2 | a58f2cc3207ea42c8464129a3ad38c4047bd791a | refs/heads/master | 2022-12-19T09:11:25.329040 | 2020-09-09T16:37:04 | 2020-09-09T16:37:04 | 292,111,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # # Estimating $\pi$
#
# This PySpark example shows you how to estimate $\pi$ in parallel
# using Randon Sampleing integration.
from __future__ import print_function
import sys
import time
import cdsw
from random import random
from operator import add
# Connect to Spark by creating a Spark session
from pyspark.sql i... | [
"brooks_ian@yahoo.com"
] | brooks_ian@yahoo.com |
000c1ebab7161995ba2a7f947ebcf545cd414d7d | 6b5431368cb046167d71c1f865506b8175127400 | /challenges/estimando-o-valor-de-pi-1/tests.py | 620927474107e9a20a9a8627a9b42bd69d3f8c26 | [] | no_license | Insper/design-de-software-exercicios | e142f4824a57c80f063d617ace0caa0be746521e | 3b77f0fb1bc3d76bb99ea318ac6a5a423df2d310 | refs/heads/master | 2023-07-03T12:21:36.088136 | 2021-08-04T16:18:03 | 2021-08-04T16:18:03 | 294,813,936 | 0 | 1 | null | 2021-08-04T16:18:04 | 2020-09-11T21:17:24 | Python | UTF-8 | Python | false | false | 617 | py | from strtest import str_test
class TestCase(str_test.TestCaseWrapper):
TIMEOUT = 2
def test_1(self):
for n in [1, 2, 3, 4, 10, 100, 1000, 10000]:
s = 0
for i in range(1, n + 1):
s += 6 / (i**2)
esperado = s**0.5
obtido = self.function(n)... | [
"andrew.kurauchi@gmail.com"
] | andrew.kurauchi@gmail.com |
f2d0269e1a162457d910241459f384571d16809c | facbb3b45a8dacbf3e60647d3f6d561eb99141e7 | /mysite/mysite/settings.py | ece98285bc2d000b6d912498fee733569ffc4d43 | [] | no_license | MichaelAndreyeshchev/blockchain-donations-app | e91e26ef7fabffeff39e23bbbf71e4ce024808d1 | 4e459c17ae9a7d3d21cc256c772bfc9b279e5380 | refs/heads/main | 2023-07-14T22:05:26.162577 | 2021-09-01T20:06:26 | 2021-09-01T20:06:26 | 385,263,917 | 6 | 6 | null | 2021-07-27T15:09:13 | 2021-07-12T13:50:24 | Python | UTF-8 | Python | false | false | 3,413 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"michaelandrev@gmail.com"
] | michaelandrev@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.