blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
d320a4eb327b6aced1fa88203fc51f24371e8f63
3fa393553d23460ef0f3e60bcab028545c48d4fa
/vim/install.py
ee4ec0e065b586d5fda7cb80fe01c60fc24048ef
[]
no_license
wuxiangwei/Oh-My-Tools
5858ebe7b97baed180c9f6bbfb7dcd5a067fc556
1660c59b2989c263565f3650cd4042835f3bf7d8
refs/heads/master
2021-05-06T05:51:13.949577
2017-12-23T05:39:57
2017-12-23T05:39:57
115,173,189
0
1
null
null
null
null
UTF-8
Python
false
false
557
py
#!/usr/bin/env python # coding=utf-8 import os def install_vundle(): home_dir = os.path.expanduser('~') dst_path = os.path.join(home_dir, '.vim/bundle/Vundle.vim') if not os.path.exists(dst_path): src_path = 'https://github.com/VundleVim/Vundle.vim.git' cmd = 'git clone %s %s' % (src_path,...
[ "wuxiangwei@corp.netease.com" ]
wuxiangwei@corp.netease.com
237c6f3687015e6d0e783aebe8edf5a9ef51cd70
e10b66c7f7602557013e948741d5de0e397390c0
/owner_forgot.py
142f4834744f7eec924ca5d1ce8c2caadb1e6ce3
[ "Apache-2.0" ]
permissive
rajibmitra/truckz.io
a9570ded8e32421276abda6894d7dbe3ad68e501
4f87ad5851ab51336e37994a70a3d6ddb2514258
refs/heads/master
2020-04-17T06:49:51.094107
2019-07-04T11:09:45
2019-07-04T11:09:45
67,310,879
0
0
null
null
null
null
UTF-8
Python
false
false
463
py
#!C:\Python34\python.exe import cgi import cx_Oracle import json print('Content-type: application/json\r\n\r\n') con=cx_Oracle.connect('cbs/apss@localhost/xe') cur=con.cursor() data=cgi.FieldStorage() sts=-1 password=-1 email=data.getvalue('email') dob=data.getvalue('dob') sql="SELECT PASSWORD FROM OWNER WHERE EMAIL...
[ "noreply@github.com" ]
rajibmitra.noreply@github.com
108b79b900fb5bfd554e42ff75ca653cc35681c4
bb46b4e50f8285176d0901522b9a8fa521e08e96
/worker-elastic-pr-preview/coordinator.py
e24edcd211761807a39b7ee81f12429f25969089
[]
no_license
zw0610/ps-worker-elastic
c32cb4aa8cd7a774c72f70623b0a015c109665d8
90fce87e32303bb8e161f4445d1a94e7d8b56fab
refs/heads/master
2023-04-08T11:36:00.507781
2021-04-20T09:10:13
2021-04-20T09:10:13
353,957,757
1
1
null
null
null
null
UTF-8
Python
false
false
6,179
py
import os import subprocess import time import tensorflow as tf from utils.resolver import get_coordinator_resolver from utils.model import MyModel, get_datasets from tensorflow.python.eager import context from tensorflow.python.distribute.coordinator.cluster_coordinator import Worker if __name__ == "__main__": ...
[ "zilinzhu@tencent.com" ]
zilinzhu@tencent.com
9986a1659cfdc8dc4bd6a6862039eead3c2b5e84
30e21273013b228f5421a5d685660cc370c92d7c
/dgfont.py
2e37de03891875ec73a74d5581f477352fd09cf6
[]
no_license
hwinther/homeautomation
0aecccae16995f53b14d0de07eb6d61cc91a52fc
0ee1f97238bdd5c2c7367a75f4376f2d662c4b9c
refs/heads/master
2021-01-10T10:11:06.803852
2018-10-22T22:06:36
2018-10-22T22:06:36
44,271,892
0
1
null
null
null
null
UTF-8
Python
false
false
3,136
py
#!/usr/bin/python # coding=utf-8 from datetime import datetime letters = { '0': [ [0, 1, 1, 0], [1, 0, 0, 1], [1, 0, 0, 1], [1, 0, 0, 1], [0, 1, 1, 0], ], '1': [ [0, 0, 1, 1], [0, 1, 0, 1], [0, 0, 0, 1], [0, 0, 0, 1], ...
[ "hc@wsh.no" ]
hc@wsh.no
ba38b308dc5edb0052dd3223d5e0bbca4c0eb3e1
a826caf3c6fd1d2170a5f492ec8c98a85c0d9579
/find_cffed_functions.py
2a369c186f5543d1e449932943bbb4b3f52fdd7b
[]
no_license
gitQqqHs/ida_android_script
7140561650bdf8a5b23a8155fce5a81df454be6e
c84543beffb1846f30728456cf05d4cb702fc6b1
refs/heads/master
2020-03-18T11:09:22.292698
2017-08-09T09:16:07
2017-08-09T09:16:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Author: TheCjw<thecjw@live.com> # Created on 16:48 2017/7/31 __author__ = "TheCjw" from idautils import * from idaapi import * from idc import * def main(): print("An experimental idapython script to find Control-Flow-Flattened functions") ea...
[ "thecjw@live.com" ]
thecjw@live.com
0fb98fcf45d1f20d7281fa9ab62b6f9ea72e6bb3
67f97a25c93ae07698255363341ad24c9303cfe1
/purbeurre/webapp/modules/api/requests_library/request_products.py
8b7b17f3e439463b50aa7dd719957ec98f8569d1
[]
no_license
AlexisFricard/P11_Purbeurre
e9d2f6b19d3ea9315b9e8db83672e1934b009e19
99e66b63f8e3d466128dfecf7cdc33c8fb23c689
refs/heads/main
2023-06-22T23:33:53.518896
2021-07-26T18:00:58
2021-07-26T18:00:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,374
py
""" REQUEST PRODUCTS BY NAME """ import requests def openfoodfact_terms(terms, number): page = 1 # BUILD URL url_begin = 'https://fr.openfoodfacts.org/cgi/search.pl?search_terms=' url_end = '&search_simple=1&action=process&json=1' url_page = f'&page={page}' url = f"{url_begin}{terms}{url_en...
[ "a.fricardpro@gmail.com" ]
a.fricardpro@gmail.com
faae17f8cb393c180d038c7b4a21d9df9415e81b
0c751feaba8644cfef2602da70d7fc26fd2cd58b
/backend/catalogueManagement/product/models.py
3ec2f64bb527891f8ffed0f0f7637fbb31e7b081
[]
no_license
saurabhnk-94/ECommerce-Inventory-Management-System
cf75ae330b1d3f746b8bbaa00ed67c1d7740ead5
97139f8b297e6a1d2007bffffc4935561147f4cd
refs/heads/master
2020-11-28T02:49:31.090498
2020-01-30T12:28:17
2020-01-30T12:28:17
229,685,990
0
0
null
null
null
null
UTF-8
Python
false
false
2,567
py
from django.db import models import jsonfield class Category(models.Model): """ Category model, this has a tree structure using the parent foreign key. The name is unique. This will be shown as a bread crumbs in the frontend """ name = models.CharField(max_length=250, unique=True, help_text="The ...
[ "saurabhnk94@gmail.com" ]
saurabhnk94@gmail.com
7d502107c0f34c1e21b6b45dce36da5f88e1f94d
01106e974a7e84e5b2cc4b4f29aba3b2604354af
/Matrix/search_ele.py3
caca045f2bc4b5068b7139fa1ea5f1cb2d47eb82
[]
no_license
souravtiwary/codeLibrary
d746952a7a7385c7f239c2dec46bb9192bff9624
b13658f4f7397caac342137071afc8f709962f43
refs/heads/main
2023-07-29T20:40:18.831158
2021-09-23T19:16:51
2021-09-23T19:16:51
409,698,829
0
0
null
null
null
null
UTF-8
Python
false
false
978
py3
class Solution: def doBinarySearch(self, row, target): l = 0 r = len(row) - 1 while l <= r: mid = (l + r)//2 if row[mid] == target: return True if row[mid] < target: l = mid + 1 elif row[mid] > target: ...
[ "noreply@github.com" ]
souravtiwary.noreply@github.com
a9d741674633187263d89f750e6f77327dbbe5b5
beb86e0c664367738f338eaa016347eca4c91c9a
/SmaliAnalisys.py
f2cf7c7a5f2bd1b320b86580e5636a57536d160b
[]
no_license
cesarl88/CS673-Apkmirror_Scrapper
da92477ce054b57dd258548448a42a97aa64c9d5
0396c10be39440fdeb37a596d8429b63db6c5bbc
refs/heads/master
2020-03-29T20:15:57.898356
2018-12-03T02:11:40
2018-12-03T02:11:40
150,303,371
2
1
null
null
null
null
UTF-8
Python
false
false
13,888
py
from smalanalysis.smali import SmaliObject, ChangesTypes, SmaliProject, Metrics from smalanalysis.tools.commands import queryAaptForPackageName import sys, time, csv import os import subprocess import json import statistics import xlsxwriter.workbook import pickle CURSOR_UP_ONE = '\x1b[1A' ERASE_LINE = '\x1b[2K' d...
[ "cesarl_88@hotmail.com" ]
cesarl_88@hotmail.com
4a6e8d053a94706c74d944c4a9ad04c88fc8fefd
350db570521d3fc43f07df645addb9d6e648c17e
/1352_Product_of_the_Last_K_Numbers/solution.py
5c9cce8733e553c8d05006544a5caa5ba5d53971
[]
no_license
benjaminhuanghuang/ben-leetcode
2efcc9185459a1dd881c6e2ded96c42c5715560a
a2cd0dc5e098080df87c4fb57d16877d21ca47a3
refs/heads/master
2022-12-10T02:30:06.744566
2022-11-27T04:06:52
2022-11-27T04:06:52
236,252,145
1
1
null
null
null
null
UTF-8
Python
false
false
442
py
''' 1352. Product of the Last K Numbers Level: Medium https://leetcode.com/problems/product-of-the-last-k-numbers ''' ''' Solution: ''' class ProductOfNumbers: def __init__(self): def add(self, num: int) -> None: def getProduct(self, k: int) -> int: # Your ProductOfNumbe...
[ "benjaminhuanghuang@gmail.com" ]
benjaminhuanghuang@gmail.com
50a7a9e089a7487e004a9f76785a5d174afbba38
dd24ed7de37259a9386009bcff0d1e4d01f673fd
/django_0501/apps.py
12d64cc1cd1328a99a87ef09005618067ddaca41
[]
no_license
shiyanlou-015555/django_05
e4839a85354fe608ff7f579d50cef728c8483b32
a90b93185d0ed2fa9509f3cd1ff0b6f89fd1b516
refs/heads/master
2020-04-11T03:27:55.864163
2018-12-12T11:33:07
2018-12-12T11:33:07
161,478,901
0
0
null
null
null
null
UTF-8
Python
false
false
96
py
from django.apps import AppConfig class Django0501Config(AppConfig): name = 'django_0501'
[ "1685715822@qq.com" ]
1685715822@qq.com
c8f6df806cbd7433aff54e08bcc8bfbd20c702d0
8ea15bb41fa672a8abd5cbc6e4c3413a910e5fb4
/api/admin.py
fdc895cff91355bb421614c370acdbf99f297eca
[]
no_license
bluedazzle/smart_screen
172bb1672bd9995e27889700a7320c0d9e207abe
f4d40807e7c6684ae35d8c1c7f386ae2ff8d8925
refs/heads/master
2021-07-04T07:30:50.807052
2019-01-23T06:47:56
2019-01-23T06:47:56
111,908,525
1
0
null
2019-05-16T03:30:51
2017-11-24T10:56:46
Python
UTF-8
Python
false
false
812
py
from django.contrib import admin from models import * # Register your models here. class GoodsInventoryAdmin(admin.ModelAdmin): search_fields = ['barcode'] class GoodsAdmin(admin.ModelAdmin): search_fields = ['belong__id'] admin.site.register(FuelOrder, GoodsAdmin) admin.site.register(FuelTank) admin.sit...
[ "zhangjianqi@bytedance.com" ]
zhangjianqi@bytedance.com
67c88c5642b885e5c3ffa1ab317224f11a47d97d
a26a3605f8055a28083107b98800d72bfcc11fd9
/Koncreti/Koncreti/middlewares.py
efea3c768875aa07a437ec6da0bd57857a844b6a
[]
no_license
huzaifabaloch/Modern-Web-Scraping
521c3bd9302c3be0743a16cb65a02bf5a6666d9e
021c5f987d7c150118340ccbf986be51ecdca349
refs/heads/master
2020-09-26T23:40:46.306998
2020-06-30T17:10:49
2020-06-30T17:10:49
226,367,502
0
0
null
null
null
null
UTF-8
Python
false
false
3,601
py
# -*- coding: utf-8 -*- # Define here the models for your spider middleware # # See documentation in: # https://docs.scrapy.org/en/latest/topics/spider-middleware.html from scrapy import signals class KoncretiSpiderMiddleware(object): # Not all methods need to be defined. If a method is not defined, # scrap...
[ "huzbaudi3@gmail.com" ]
huzbaudi3@gmail.com
2f3e3552822bbf4fc4f72eac033319fd83970466
468643c42a93f920183f2ad22a5c27f09a783d1c
/file_trans2/source.py
1123930e2dfb0a172e43566a24cb16df61c3b0a7
[]
no_license
lanseyege/linux_OM
dbb9ac4ed7813d3f043ad3a80d9d0e1c0245e866
beee330df3165503f6573eaf16a961fee8e743a6
refs/heads/master
2020-12-25T13:45:49.562525
2018-09-12T08:00:04
2018-09-12T08:00:04
61,020,186
0
0
null
null
null
null
UTF-8
Python
false
false
2,802
py
#encoding=utf-8 import os import commands import threading def read_conf(path): file=open(path) A=[] for line in file: A.append(line.strip()) return A def read_source_dir(ips, s_path, w_df): if s_path[-1] != '/': s_path += '/' path_lists={} source_path_nums=0 for ip in ips: command='ssh name@%s ls %s'%(...
[ "lanseyege@gmail.com" ]
lanseyege@gmail.com
ac409fba8612780ecc144aa3fc94607609a6c797
f8b5aafac15f408a48fabf853a918015c927e6fe
/backup/virtualenv/venv27/lib/python2.7/site-packages/ansible/modules/extras/cloud/lxc/lxc_container.py
518038124eb6cca7eeb78adc95a6b3a7b688fbb6
[]
no_license
to30/tmp
bda1ac0ca3fc61e96c2a1c491367b698d7e97937
ec809683970af6787728c2c41f161f416155982a
refs/heads/master
2021-01-01T04:25:52.040770
2016-05-13T16:34:59
2016-05-13T16:34:59
58,756,087
0
1
null
null
null
null
UTF-8
Python
false
false
55,215
py
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2014, Kevin Carter <kevin.carter@rackspace.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of...
[ "tomonaga@mx2.mesh.ne.jp" ]
tomonaga@mx2.mesh.ne.jp
b14b1b13fd24073c9ebde57c05e4f234b0ac0da4
a46d135ba8fd7bd40f0b7d7a96c72be446025719
/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickfont/_family.py
ba495312ec633e48e44034f6156ee76e0784f0c1
[ "MIT" ]
permissive
hugovk/plotly.py
5e763fe96f225d964c4fcd1dea79dbefa50b4692
cfad7862594b35965c0e000813bd7805e8494a5b
refs/heads/master
2022-05-10T12:17:38.797994
2021-12-21T03:49:19
2021-12-21T03:49:19
234,146,634
0
0
MIT
2020-01-15T18:33:43
2020-01-15T18:33:41
null
UTF-8
Python
false
false
525
py
import _plotly_utils.basevalidators class FamilyValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="family", parent_name="heatmapgl.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, pare...
[ "noreply@github.com" ]
hugovk.noreply@github.com
0f393af45d9c533f8422fe7ec7e9bb8998126725
8a8815642a27809402224518b5bd01960270060b
/homework_3/python_hw3.py
22d47eb56723c0cb3a09dc7e5af61275b62785d5
[]
no_license
dariasuslova/python_homework
98c712c7bab123f7a26aa0cfe428f9e6b496af0c
d32e160d8c64111beb1338d48e47a35c1e01b3a0
refs/heads/master
2021-01-23T14:41:37.000950
2018-03-21T11:49:06
2018-03-21T11:49:06
102,695,549
0
0
null
null
null
null
UTF-8
Python
false
false
3,951
py
# coding: utf-8 # In[1]: from pattern.web import Wikipedia, plaintext import re import nltk nltk.download('punkt') nltk.download('stopwords') from nltk import word_tokenize from nltk.collocations import * from collections import Counter, defaultdict from itertools import islice, tee import math from nltk.corpus imp...
[ "noreply@github.com" ]
dariasuslova.noreply@github.com
af6994e086b22f5bca40803ae9f92d2006e608f8
0938ff0c809638157e0deb81515fa3e810e86b86
/clustering/clusters.py
061be5131085d716d9e63966f40cded141ea1af3
[]
no_license
fjsweeney/NEATLAB-AddictionResearch
e50d993575b6ccdf4d0123bd0de178d3b24aa808
cb0b1283c78b140458b3c436db69f0cdf94f79b3
refs/heads/master
2020-12-29T08:08:25.060339
2020-03-11T00:58:08
2020-03-11T00:58:08
238,521,750
1
0
null
null
null
null
UTF-8
Python
false
false
8,878
py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import datetime import time as tm import math R = 6371000 # Radius of Earth, meters def getSpeed(time0, time1, coord0, coord1): dTime = math.fabs(time1-time0) # Time change if dTime == 0: return 0 # haversine formula ...
[ "chuprii@wwu.edu" ]
chuprii@wwu.edu
0d4d185363be01637bbf659ff0fe1af94954840a
a6aadedf6cc2d9641e4a53f76cbcd1264ebe9673
/DGHV_cp_decrypt/DGHV_cp_decrypt/Decrypt.py
0b0713dff195aff7ffd74d07f23c805139474d1f
[]
no_license
obserthinker/DGHV_cp_decrypt
4c5f2970d63dfb9a61124c5a61d3e05928e24e34
58730e04565f6eaede0b4614c44cb71cdf751e34
refs/heads/master
2020-05-17T22:52:46.032344
2015-12-03T13:58:10
2015-12-03T13:58:10
41,525,084
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
# -*- coding: utf-8 -*- from Function.operations import * def decrypt(cipher, secret_key): p = secret_key.sk #m = (c % p) % 2 #print "************** Decrypt ***************" #print "c = ", cipher.c, "\t p = ", p, "\tx0 = ", cipher.x0 m = residue( cipher.c, p) #print "c % p = ", m m = ...
[ "onserthinker@gmail.com" ]
onserthinker@gmail.com
44499b72c3f163b0282e42a95fcc1f5cffeadb31
cb564efccf84cb8b9c0f5c697193e97ed8c2a138
/forms.py
0c938acd1684890913e818240cceb314840a3b5b
[]
no_license
satvik6005/blog_site
c1884ec5ced9c3ba65765d88fb7895df56b89fab
6fa7f2ab440a5d28cbe6485f9e908054e59a5bc6
refs/heads/main
2023-05-09T15:36:27.733756
2021-05-29T16:19:40
2021-05-29T16:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
372
py
from django import forms class blog_form(forms.Form): title=forms.CharField(label='Title',max_length=20,widget= forms.TextInput(attrs={'class':'form-control'})) data=forms.CharField(max_length=200,widget= forms.Textarea(attrs={'class':'editable'})) author=forms.CharField(label='author',max_length=10,widget...
[ "noreply@github.com" ]
satvik6005.noreply@github.com
616ea2a870fe0d07963ec33c6068f9e83ca94b0e
9aa7c4d4b70eda25e9bae4ce1b91118fa82fe798
/ex11.py
25e8dcd2efc02b549cd4d2a57da2857090f76f46
[]
no_license
feilicsuzan/python
05bc0cd9b7b0a1eb43e73717ec4c6a31d2ee2fc8
5db4d73844a846cd37bcbee4e01ca402a985573f
refs/heads/master
2020-03-24T09:45:05.251457
2018-07-28T11:41:53
2018-07-28T11:41:53
142,636,821
0
0
null
null
null
null
UTF-8
Python
false
false
388
py
x=1 y=2 z=3 a='a' b='b' c='c' test=[x,y,z,a,b,c] print"x=",x,"y=",y,"z=",z,"a=",a,"b=",b,"c=",c print test print "x not in test?",x in test print "1 in test?",1 in test print "test+a",test+a print "test*20",test*20 print test[2:4] print len(test) print min(test) print"",test.index(2,1,3) print "",test.count(1) a={'a':...
[ "felicsuzan_98@163.com" ]
felicsuzan_98@163.com
5ab2b509a45bb836fd3ba253f75232ff02ae4645
fc5b54bfea60ad4d9f66ccfb94192b8214a2a11e
/scrapycw/utils/exception.py
3fb7335ad7321621ade8bb4b3d37d3583bfe4895
[]
no_license
erygreat/scrapycw
c5f755f30f5238c5eed2447447228dd028ede5b7
9317590e6472657b27279b8aaf67771416cf7826
refs/heads/master
2021-10-05T11:40:59.797905
2021-07-14T16:40:30
2021-07-14T17:08:07
224,704,931
1
0
null
2021-09-22T18:05:01
2019-11-28T17:56:45
Python
UTF-8
Python
false
false
638
py
class ScrapycwException(Exception): def __init__(self, message): self.message = message class ScrapycwUsageException(ScrapycwException): pass class ScrapycwDaemonProcessException(ScrapycwException): pass class ScrapycwNotSupportSystemException(ScrapycwDaemonProcessException): pass clas...
[ "ery991172821@gmail.com" ]
ery991172821@gmail.com
e7d0356d5018b49590816f3a1833f6a81bca41ae
9505cd79a0ee133e33191a0b96356b430a81f19d
/batch_correction/mnn/scanpy_mnn.py
4ceda64e9f5ed96c4d6f4cf44e389f4e6585bd03
[ "MIT" ]
permissive
lilab-bcb/cumulus-experiment
6fcdf1ee8f1c8feac0df6f658b6cc151b05a392b
4a1139563b5e8702c6bb771c0c8dca7c3b98c3a2
refs/heads/master
2020-08-05T11:44:44.668634
2020-05-01T22:50:54
2020-05-01T22:50:54
212,489,221
0
0
null
null
null
null
UTF-8
Python
false
false
2,119
py
import numpy as np import pandas as pd import scanpy as sc import os, sys, re, time from termcolor import cprint from mnnpy import mnn_correct from datetime import timedelta rand_seed = 0 src_file = "/data/MantonBM_nonmix_tiny_filter_norm.h5ad" hvf_file = "/data/MantonBM_nonmix_hvf.txt" def calc_mnn(): adata = sc...
[ "yang.yihming@gmail.com" ]
yang.yihming@gmail.com
69f33545f4b439eb551888ff6fdfa7bf9119c6b2
b7b376b17e0cb641a0ba1a656f939fb74ae72ebd
/Testing_for_None.py
05974ad9d14c097ed1f608abef9fb163338a1258
[]
no_license
EhsanPeymani/PythonSnippets
fbefbb066ea9e90dc9ff188af17d404a3de6e5c5
58e8974eadca8e3a7142367309e2917a702ee45a
refs/heads/master
2020-03-15T05:18:00.502078
2018-07-02T12:27:13
2018-07-02T12:27:13
131,985,980
0
0
null
null
null
null
UTF-8
Python
false
false
340
py
# taken from talkpython.fm def find_accounts(search_text): db_is_available = False if not db_is_available: return None return 1 accounts = find_accounts('python') # test for None using 'is' or 'is not' if accounts is None: print('No accounts returned') else: print('{} account(s) returne...
[ "ehsanTO2" ]
ehsanTO2
d5f61eb9e2e964355a3e89e89b3a16d67426d97a
3da4da54c9b3e2632bfa8d9f4c996d051955a57c
/melon/melonsec/models.py
8107c17f178a3e9c0f9e5f3d724ce52121d273cb
[]
no_license
twoodhouse97qmul/melonsec
c10bd0ac28490cf58462d2f905dd5343476d77eb
023048e42bb82174d3f02958c1e88e1c91eba77d
refs/heads/master
2020-04-07T05:42:59.379237
2019-01-15T18:08:12
2019-01-15T18:08:12
158,106,974
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
from django.db import models # Create your models here. class Message(models.Model): name = models.CharField(max_length=255) bio = models.CharField(max_length=900, blank=True)
[ "aoterop97@gmail.com" ]
aoterop97@gmail.com
a7310f5ba7a955f4a67094d3fdcdea61e2d0684c
4650d9ba2f309c6dcf4fb3f74f715680ebc232e6
/locallibrary/catalog/migrations/0003_book_slug.py
1edb8e9ee688d4b51572dbbed88dee68c8a14ef8
[]
no_license
iambonface/zillathon
ff6f545923f28325a8dca6cb85c749b4e350fef0
afef85954c2957b514200043e99e0e889ad98dab
refs/heads/master
2023-08-17T14:56:05.311464
2020-04-16T17:16:36
2020-04-16T17:16:36
255,800,496
0
0
null
2021-09-22T18:53:25
2020-04-15T04:02:02
Python
UTF-8
Python
false
false
388
py
# Generated by Django 3.0.5 on 2020-04-15 03:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('catalog', '0002_auto_20200414_2013'), ] operations = [ migrations.AddField( model_name='book', name='slug', ...
[ "mudirib@gmail.com" ]
mudirib@gmail.com
108d68accc881e48bb69ecb2973ce1bd1dbf2825
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/examples/v1/synthetics/GetSyntheticsDefaultLocations.py
6e44aa3003ea64d20039ddc3cb1e3952f2e290a2
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
387
py
""" Get the default locations returns "OK" response """ from datadog_api_client import ApiClient, Configuration from datadog_api_client.v1.api.synthetics_api import SyntheticsApi configuration = Configuration() with ApiClient(configuration) as api_client: api_instance = SyntheticsApi(api_client) response = ap...
[ "noreply@github.com" ]
DataDog.noreply@github.com
e97f3d6e3f0f430949be1e45ba239322963b514d
cf1e007bc404666e4349c858647389d8de2a865d
/modules/utils.py
22430fec7c360ff5e6aed1a60522b7f228f2934e
[ "MIT" ]
permissive
recursion-cn/story
6e3df430ee50f708588e12923dc5304b9d077dbe
fdd60b5c698a6775e4062fc9d6afec0402461b38
refs/heads/master
2021-01-10T05:05:12.990506
2016-01-01T16:01:25
2016-01-01T16:01:25
45,263,905
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
#!/usr/bin/python # -*- coding: utf-8 -*- from datetime import datetime, date import json # custom encode function for dateime and date type class JSONEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, datetime): return obj.strftime('%Y-%m-%d %H:%M:%S') elif isinsta...
[ "linianchao@meituan.com" ]
linianchao@meituan.com
390282881120690c1146b2d04601b0ef71a74a3b
9fa0d129c513d1234121c3fc30f8b0dff92a740e
/customcases.py
33282d8cf6928be6835604f27e2329d89e1a1941
[]
no_license
martinhaberg/balex
0ac77779bcf3933647f73af46fc3b1d5ecee824e
925cd90061c266fc650975c17ed0b17a8fb7b6f9
refs/heads/master
2021-10-10T20:59:35.448838
2019-01-17T08:19:17
2019-01-17T08:19:17
105,146,055
0
0
null
null
null
null
UTF-8
Python
false
false
39,257
py
# Copyright (c) 1996-2015 PSERC. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. """Power flow data for zone 1 of IEEE 118 bus test case. """ from numpy import array def case118zone1(): """Power flow data for zone 1 of partitioned IEEE 11...
[ "martin.haberg@ntnu.no" ]
martin.haberg@ntnu.no
7f56057a954ac9a7acf1c74107ba155b63e49b80
3fce06b4e58c8e69e4845502b05df73f253f201c
/machine/models.py
84fa9ccff5bef2695b6d5a38a82b2538d703dfde
[]
no_license
geekyzk/DjangoUpload
31b4979bad1b368a77994573539d8983f7b64941
5442d8e9b2b9cfcedf8bbd449ad513a6044427c1
refs/heads/master
2020-04-04T12:09:26.847164
2018-11-02T20:21:10
2018-11-02T20:21:10
155,916,133
0
0
null
null
null
null
UTF-8
Python
false
false
347
py
from django.db import models # Create your models here. class CsvModel(models.Model): csvFile = models.FileField(upload_to='csv',verbose_name="训练文件") name = models.CharField(max_length=120) imageFile = models.ImageField(upload_to='images', verbose_name="产生文件",null=True) class Meta: ordering ...
[ "geekyzk@163.com" ]
geekyzk@163.com
c846a590136e0bb196e354e74fcbd29d898260ef
3f3af5062b8551606e16e997e600fdfcd943b929
/wenxue/ReptilePart/getListOfJournal/getListOfJournalThree.py
2aa6fcc805d7a18008e2d4b7243bec22417430f2
[ "MIT" ]
permissive
YaKaiLi/GraduationProjectYan
63179df688522c486f8874a3443ef05d22cc7d72
5ddcc081748daa39f7d7b070f5b172c6a5919349
refs/heads/master
2020-03-07T23:05:17.741977
2018-05-09T14:15:57
2018-05-09T14:15:57
127,771,839
1
2
null
null
null
null
UTF-8
Python
false
false
1,730
py
# -*- coding: UTF-8 -*- from urllib import request import chardet import re import pymysql if __name__ == "__main__": # 打开数据库连接 db = pymysql.connect(host="localhost",user="root",password="root",db="graduationprojectyan",port=3306,charset="utf8") # 使用 cursor() 方法创建一个游标对象 cursor cursor = db.cursor() ...
[ "jkliyakai@163.com" ]
jkliyakai@163.com
30ffdec787b66ada92eeeb6cbf6313939aceed32
6c455e7983df8a9a1e59b81ab0c62b1cabf6cdff
/kornia/morphology/basic_operators.py
aef1ce94c3c1f2a3bebc8eba0ff6f11b2f36d40d
[ "Apache-2.0" ]
permissive
vribeiro1/kornia
73528cbf75525067409b01c97db9276440a5409e
054d006828a47ba9929a36d82ff8070b5e69d3b0
refs/heads/master
2022-12-27T13:01:28.297706
2021-05-18T07:08:53
2021-05-18T07:08:53
289,010,878
0
0
NOASSERTION
2020-08-20T13:16:12
2020-08-20T13:16:11
null
UTF-8
Python
false
false
3,062
py
from typing import Tuple, Union, List import torch import torch.nn as nn import torch.nn.functional as F # _se_to_mask def _se_to_mask(se: torch.Tensor) -> torch.Tensor: se_h, se_w = se.size() se_flat = se.view(-1) num_feats = se_h * se_w out = torch.zeros(num_feats, 1, se_h, se_w, dtype=se.dtype, de...
[ "noreply@github.com" ]
vribeiro1.noreply@github.com
db3064926b3b2b35dccc32d8c301c80f044da4eb
bcf700ed0c1a48f62ab0445f39def684bafbe104
/python_server/test.py
9b0ed2fc2fdaa274b7632dc30679f486c0604688
[]
no_license
jmalliaros/hackTheNorth2015
4a584607118dd12ddbe7085b21bbd587264b03fe
307a8e22a664fdd77b783ab457804e0dc7c864d7
refs/heads/master
2020-04-28T03:14:41.986801
2017-04-28T19:02:42
2017-04-28T19:02:42
174,928,826
1
0
null
2019-03-11T05:02:06
2019-03-11T05:02:06
null
UTF-8
Python
false
false
529
py
count = 100 search = api.GetSearch(term='china', lang='en', result_type='recent', count , max_id='') for t in search: #print t.user.screen_name + ' (' + t.created_at + ')' #Add the .encode to force encoding print t.text.encode('utf-8') print '' #finding popular tweets countpop = 3 search = api.GetSearch(term='c...
[ "m45yang@uwaterloo.ca" ]
m45yang@uwaterloo.ca
5fcc7cbcdb6607e46ff22c7e9bb4ed75ef2fdbbb
c6646a4053a7546424fe7625c3a8ee05407610dc
/Python/Part II/11. Methods/main.py
ace2e5c2f175be8e992bb099ffaf7f9d01ff8be5
[]
no_license
diazinmotion/LearnCode
c269891fe03400ed71f0e00e2ca853aaf7b57f0a
6d125fb232c67acbe0c77d65e4810b0a859535aa
refs/heads/master
2023-05-10T04:40:35.018637
2020-10-18T11:47:09
2020-10-18T11:47:09
145,180,914
0
0
null
2023-05-01T19:50:11
2018-08-18T01:39:51
Python
UTF-8
Python
false
false
358
py
from counter import Counter # object method caller c = Counter(10) print(c.simpleMethod(1, 1)) # class method can be called from obejct print(c.sumOfNumbers(10, 20)) # class method can be called directly print(Counter.sumOfNumbers(1, 2)) # static method can be called directly a = Counter.multiplyOfNumbers(5, 5) pri...
[ "dimaswicaksono93@gmail.com" ]
dimaswicaksono93@gmail.com
d1057a3547ebe9fbade8932524d209efac5ef7dc
06ce1cb6a1ee1f03600eee93289efece692b77e6
/CTA_testbot.py
0d0e196a355e8373cb9837a0d7ead9646efe9bce
[]
no_license
TJalal/CurrentResponseAutomation
cc15615fc18e2e3e7a6db233950b347764c6b712
3aeae499b41f6d5c6b0c547f8cc1c91f23c6c9e3
refs/heads/master
2021-05-04T10:28:05.275725
2017-01-21T00:02:49
2017-01-21T00:02:49
44,210,195
0
0
null
null
null
null
UTF-8
Python
false
false
45,249
py
#!/usr/bin/python # -*- coding: utf-8 -*- #import objc import sys import traceback import WakeOnLan from time import gmtime, strftime, sleep from datetime import datetime, timedelta from beagle_py import * import Tkinter from Tkinter import * import tkSimpleDialog import fileinput import pexpect from pexpect import ...
[ "tjalal21@gmail.com" ]
tjalal21@gmail.com
1883ff0ffb9bff6ab9d8d839f7c5e3d67045433b
7c8a7ec35f05abe3fc4cff1841678abcb8c9496a
/wykop/accounts/models.py
bedfc4eab0bad18c7091f6284f41c9a5a3c6bd20
[]
no_license
michals96/django_blog_app
76bd9083107a218cc48e36f1e6b2c578b8ebfbaf
a8ef4560cdaca3a710a3e0bc8be9beb86e3f0a52
refs/heads/master
2020-05-30T12:29:39.816603
2019-06-01T14:03:00
2019-06-01T14:03:00
189,735,304
1
0
null
null
null
null
UTF-8
Python
false
false
157
py
from django.contrib.auth.models import AbstractUser from django.db import models class User(AbstractUser): banned = models.BooleanField(default=False)
[ "michal@macbook-pro-michal.home" ]
michal@macbook-pro-michal.home
fc0e8603847804a8eb3f362ca615675aa298fe69
b54bd47e05b3e18ff274f4b7b32093e45d8be8a6
/extractionRelXQTable/createRelXQTable.py
84063423f34a0a24062b6a32a4a92aaed93da4a9
[]
no_license
whitexozu/PySpark-Example
14a4cd6ae1d816953a305e6df24e1b0fcee39cce
0f3dd0a2f7bb667b0662a4e7944595500150513f
refs/heads/master
2020-07-06T03:22:07.065403
2019-08-17T11:32:23
2019-08-17T11:32:23
202,872,721
0
0
null
null
null
null
UTF-8
Python
false
false
5,195
py
#-*- coding: utf-8 -*- import collections import math from operator import add from pyspark import SparkContext, SparkConf from pyspark.sql import Row from pyspark.sql import SparkSession from pyspark.sql.functions import * from pyspark.sql import functions from pyspark.sql.types import * from pyspark.sql.window impor...
[ "whitexozu@gmail.com" ]
whitexozu@gmail.com
0d81d2a79087eebfe1b9946fc02902fdef301e86
7127d0a85f05b7ebb111c7ba786087acb29b9bc7
/Desktop/carRenting-master/c001_env/bin/easy_install
f5ebf4c1b27598f82f6760d589b239fef7a80254
[]
no_license
mohamedTbarka/pfe
ea46cc2d4e5e1de63e4becb9e26015450bc646e4
aec590fc0cd02e1b822eafa36aff9f34f24372d0
refs/heads/master
2020-07-17T01:54:33.872677
2020-02-20T10:16:57
2020-02-20T10:16:57
205,914,025
0
0
null
null
null
null
UTF-8
Python
false
false
253
#!/home/wbc/c001/c001_env/bin/python3 # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "simo.tbarka@gmail.com" ]
simo.tbarka@gmail.com
3e0eae434dee9b04f632d37f230cc54ecbbcd704
b0a0230640bff01c6099ed834a2b77a8a78aee34
/apps/common/utils.py
80641f1ca24e407794924150597fbac61332eedc
[]
no_license
mrtnayo/svb_backend_prod
e1dfa219be1d4000102acdf0402af19b79dcb18f
d69a6942da59f1ace6682befec12450c2f26b037
refs/heads/master
2022-11-21T01:48:37.883812
2020-07-20T03:54:50
2020-07-20T03:54:50
281,007,569
0
0
null
null
null
null
UTF-8
Python
false
false
2,045
py
# -*- coding: utf-8 -*- import random import string from django.utils.text import slugify from rest_framework.pagination import PageNumberPagination from rest_framework.response import Response from rest_framework.status import ( HTTP_400_BAD_REQUEST, HTTP_404_NOT_FOUND, HTTP_200_OK, HTTP_201_CREATED, ...
[ "mrtnayo@gmail.com" ]
mrtnayo@gmail.com
83d990917bf793fe15f48767f4d08ec2aef59717
c05f2a26ce811f08950f49e103c66449c043722e
/YuQin/week05/homework05.py
41618aab232fd8c1477a93b67330ac4138baef67
[]
no_license
wjj800712/python-11
fd57b579fa35d0eddc07f86d8985ab45e525aaf3
83be5f468696500ae5cd9a7f869b59c49cdbd25d
refs/heads/master
2020-04-13T20:03:24.210828
2018-09-21T09:59:09
2018-09-21T09:59:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
241
py
#打乱列表 import random alist=[1,2,3,4,5] random.shuffle(alist) print(alist) #随机返回一种商品 store=["袜子"]*10 + ["鞋子"]*20 + ["拖鞋"]*30 + ["项链"]*40 random.shuffle(store) target=random.choice(store) print(target)
[ "yuqin940223@163.com" ]
yuqin940223@163.com
ed300d832f21d2b1ca417433c51beec124ce0dbc
c4f8c57eee685be6f58e774956545a0e33850936
/freqopttest/tst.py
5de5c596c56c230ad5af0fb6dfcda6e83f2d5a87
[ "MIT" ]
permissive
0r/TFS-MDL-FWF
1decf352312f6b584f986b19c46706099e683e21
3bc50ede719bf2e35c8c5edf976284be660c4ee1
refs/heads/master
2022-04-17T22:08:06.795190
2020-04-12T11:25:14
2020-04-12T11:25:14
478,068,660
1
0
MIT
2022-04-05T09:58:12
2022-04-05T09:58:12
null
UTF-8
Python
false
false
71,852
py
"""Module containing many types of two sample test algorithms""" from __future__ import print_function from __future__ import division from builtins import str from builtins import range from past.utils import old_div from builtins import object from future.utils import with_metaclass __author__ = "wittawat" from abc...
[ "anjin.liu@uts.edu.au" ]
anjin.liu@uts.edu.au
e4eec31dce97714bc69fefd768c98db8e091b20b
c428c6c6f93ca5630445fe68e48bce36ee082cf9
/analysis/jinny/remove_quot.py
3d018bb3db4d753bda19789eae6308a04b859ad9
[ "MIT" ]
permissive
ShawnLYU/A-Hybrid-Approach-of-Insincere-Questions-Detection
9b5ff742b81e8b3de8446bb421eda41e67e69466
0bc76c3fc186245f83e665732dac53a1af3f3fbf
refs/heads/master
2021-10-26T02:45:23.155558
2019-04-10T00:31:35
2019-04-10T00:31:35
166,863,784
0
0
null
null
null
null
UTF-8
Python
false
false
914
py
import csv from progress.bar import Bar input_path = '../data/mytest.csv' output_path = 'mytest_noquots.csv' input_file = open(input_path, 'r', newline='') output_file = open(output_path, 'w', newline='') fieldnames=['qid', 'question_text', 'target'] output_file.write(','.join(fieldnames) + '\n') line = input_file....
[ "jinyue9635@gmail.com" ]
jinyue9635@gmail.com
e3bbeb0c7d377d4b5d1612a8999324e7b651a988
679d796b89729f4dc29c9a020bc1a05dc663876a
/skill/views/skill.py
66d4b97e7778c34c35fc7f3bb49242bf5815c2c9
[]
no_license
erielmejias99/personal_web_backend
c459aa3224e4f795b710dbd32ec5631de18cddc1
059302176f6333cb3ec1997303cbb24f85983fd5
refs/heads/master
2023-05-10T12:53:53.468110
2021-05-30T03:14:08
2021-05-30T03:14:08
372,093,603
0
0
null
null
null
null
UTF-8
Python
false
false
781
py
from rest_framework.mixins import ListModelMixin, RetrieveModelMixin, CreateModelMixin, UpdateModelMixin, \ DestroyModelMixin from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.viewsets import GenericViewSet from permission import IsSuperUser from skill.models import Skill from sk...
[ "erielmejias99@gmail.com" ]
erielmejias99@gmail.com
4c7fc2087752f5ec99eada22bbe63d9ea0eb5a29
9b32e4f0364d7299d44dde82dae2c785cea4accd
/python/q32.py
64834752e62d19fe6684d3ea5fa03627d88bfdd6
[]
no_license
kyamaguchi/nlp100
59dc92b1f8900fb335565d7e37713995e3e78dd9
4b91454f5c20d3eef11ba48e4bf3a66cdcc7bf9a
refs/heads/master
2020-05-25T07:06:58.531070
2019-06-05T07:29:47
2019-06-05T08:20:07
187,678,700
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
#!/usr/bin/env python def question(): print("32. 動詞の原形") print("動詞の原形をすべて抽出せよ.") import common groups = common.extract_groups_from_mecab('neko.txt.mecab') items = set() for group in groups: for e in group: if e['pos'] == '動詞': items.add(e['base']) def main(): print(sorted(list(it...
[ "kzh.yap@gmail.com" ]
kzh.yap@gmail.com
f9291f1a6af751a26ba13be48da38a42209934e0
dba64f73e5e07a25ab1a8e87f8e7cf6700ee3c90
/symphony/cli/pyinventory/graphql/survey_question_type_enum.py
3a96d2dd169d65106806d858248ca73f1354a8ec
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
saaib/magma
6410d161cf1538be450f341dae8bc6f159999338
679cd9622eab49a859a4fa9f84f657023e22adb8
refs/heads/master
2021-02-07T15:53:21.047308
2020-02-29T14:09:27
2020-02-29T14:12:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from enum import Enum class SurveyQuestionType(Enum): BOOL = "BOOL" EMAIL = "EMAIL" COORDS = "COORDS" PHONE = "PHONE" TEXT = "TEXT" TEXTAREA = "TEXTAREA" PHOTO = "PHOTO" WIFI = "WIFI" CELLULAR = "CELLULAR" F...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
4bafadafbbbf859ee89ea28625e1f82ce1c6c27b
852f6b0f44b7479ce115ecd740da1235ef6706d4
/script_compile_STDN_small.py
fbf60594869d76d94593f1e620f1eca6d9100e43
[]
no_license
qiaodaben/NYCDatasetProcessing
201cd09e0c162a31973aba72eed151c9f580a00a
e6ce9affa20ef3762b7ee708e70f6185f1279ccd
refs/heads/master
2022-03-25T19:25:18.832608
2020-01-15T08:39:57
2020-01-15T08:39:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,121
py
import numpy as np from utils import generate_dates ''' Use this to take all the individual STDN files in data/ and put them into four large numpy arrays ''' # First batch of filenames fns_f = ["STDN-flow-2013-01.npz", "STDN-flow-2013-02.npz"] fns_v = ["STDN-volume-2013-01.npz", "STDN-volume-201...
[ "tpepin96@gmail.com" ]
tpepin96@gmail.com
aa740c632f2d979c85a9e077dec6523848a5ea4d
d17a6d47f5dcfc88b25c660eec7aa41440efb93b
/reports/views/reception.py
c9bfb3d7ea595209281eb4fbb657ce6030cb3b12
[]
no_license
mpsspb/fcbp
793cea8a916935f9f153785c1f044bbf225248b8
4120dd94084e953bc0867eec89681f3c1d5ba1fe
refs/heads/master
2021-05-07T13:47:01.072294
2017-11-06T10:57:10
2017-11-06T10:57:10
109,679,945
0
0
null
2017-11-06T10:20:55
2017-11-06T10:20:55
null
UTF-8
Python
false
false
7,405
py
# -*- coding: utf-8 -*- from datetime import timedelta, datetime from django.utils.translation import ugettext as _ from django.db.models import Sum from .base import Report from reports import styles from clients.models import ClientClubCard, UseClientClubCard, Client from finance.models import Payment from products...
[ "3apa3ka3@gmail.com" ]
3apa3ka3@gmail.com
36e44fafb23c05be61b43c4d4d77bda91af81127
aab524d9439cb4e0fa9a6f40d1f41908285e6314
/src/capture/aws/sqs.py
dd283895d992985dac0476410284ef11c887dfc2
[]
no_license
danbernstein/sl-example
f2171b60c7cca2949abc877401370df682f4186a
25ff1fdb8a37279014cc07ae7059a2ff33efa3c6
refs/heads/main
2023-01-13T11:13:36.643094
2020-11-15T17:16:44
2020-11-15T17:16:44
312,121,201
0
0
null
null
null
null
UTF-8
Python
false
false
1,695
py
import json import uuid import os import traceback from botocore.exceptions import ClientError from loguru import logger from sqsextended.SQSClientExtended import SQSClientExtended from pysqs_extended_client.config import ( AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, ) BUCKET_NAME = json.loads(os.getenv('data')...
[ "danbernstein94@gmail.com" ]
danbernstein94@gmail.com
f40bbf4c4d4b9ef848cac097b67b4e5a643be55e
67b7e6d2c08f08403ec086c510622be48b8d26d8
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/walrepl/basebackup/test_switch_xlog.py
4d94b2c153d66678d75b70e85c154d9050cca17c
[ "Apache-2.0", "PostgreSQL", "LicenseRef-scancode-rsa-md4", "OLDAP-2.8", "HPND-sell-variant", "BSD-4-Clause-UC", "BSD-3-Clause", "Zlib", "LicenseRef-scancode-zeusbench", "LicenseRef-scancode-mit-modification-obligations", "OpenSSL", "MIT", "LicenseRef-scancode-other-copyleft", "bzip2-1.0.6"...
permissive
sshyran/gpdb
41012411d22b0294204dfb0fe67a1f4c8d1ecaf6
2d065ecdd2b5535cb42474f17a0ee6592b4e6837
refs/heads/master
2023-04-09T14:05:44.030212
2016-11-12T08:33:33
2016-11-12T08:34:36
73,544,159
0
0
Apache-2.0
2023-04-04T00:30:10
2016-11-12T09:43:54
PLpgSQL
UTF-8
Python
false
false
1,977
py
""" Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 ...
[ "jyih@pivotal.io" ]
jyih@pivotal.io
1de7a3a145c1faa4f9b381f060b5da58404920b9
bfed4b754a3741b45070e36fb741963e7dcc4535
/Youtube_learning/functions.py
f684dc2f9fa8a57530f4f164d2db5fa9c63fe4b7
[]
no_license
RudraECN/MyCode_Journal_python
2dcf3187fd4fd38d0efaa48d293cc35d3f79e7d9
0edf72f18f86a95792825895a4c63952259261eb
refs/heads/master
2023-08-28T20:08:21.807712
2021-11-12T21:52:35
2021-11-12T21:52:35
426,773,656
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
def Nameof_function(): #indentation is iportant in functions. Imp in python print(" Hello user") def add_param(name,size): print("Hello " + name + "you are a " + size + "namuna" ) add_param("Rudra","small") add_param("MAndy","5") def cube(num): return num+num+num print(cube(3))
[ "patelrudra456@gmail.com" ]
patelrudra456@gmail.com
b6be628f703dec55030e68c4a3d13a67ce8180be
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-aom/huaweicloudsdkaom/v2/model/statistic_value.py
d3dfd884e2f8fce485e13476f04cbd5dc66f26e0
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,601
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class StatisticValue: """ 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
ea3f73e23f2513826d958c2c7db62761b6b90265
576365015ff9e08c5bcc7a88a4b7f52adb27ceab
/basesite/migrations/0001_initial.py
270f3d781072e9503f16b272b36513cdb9cb3a9d
[]
no_license
postindustrial/vityajeweler
a5f49a1e1acbc70a151f1190af14860cd16a8c51
93e0d99ae6ec73acd6058ea84e683a5538008bd4
refs/heads/master
2020-05-09T18:22:38.593744
2019-04-29T13:21:37
2019-04-29T13:21:37
181,339,496
0
0
null
null
null
null
UTF-8
Python
false
false
1,230
py
# Generated by Django 2.0.13 on 2019-04-29 12:15 import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='RealPage', fields=[ ...
[ "victorlegotin@gmail.com" ]
victorlegotin@gmail.com
36602fdb00348f04be6f1f77b384c11eb93676fa
6bf336bc8d6ba061e0c707bdd8595368dee4d27b
/sherlock_and_anagrams.py
d1cc84aa3edc108d72c16638bb4c7edcd539760a
[ "MIT" ]
permissive
avenet/hackerrank
aa536214dbccf5a822a30ea226e1dbaac9afb243
e522030a023af4ff50d5fc64bd3eba30144e006c
refs/heads/master
2021-01-01T20:15:06.647873
2017-11-24T23:59:19
2017-11-24T23:59:19
98,801,566
0
0
null
null
null
null
UTF-8
Python
false
false
1,161
py
testcases = int(raw_input()) def is_equal(d1, d2): if len(d1) != len(d2): return False for k, v in d1.items(): if k != 'last': if d1[k] != d2.get(k): return False return True def next_level(dict_items): next_level_result = [] for i in ...
[ "andy.venet@gmail.com" ]
andy.venet@gmail.com
40509e9f6a36bec9a1d1da8601d22541a73c39e4
48bcf32a071250344ee169ceff0bfac1883abfa4
/catchip/admin.py
4098943623490dacec6b0f1e04ab64ee281bb519
[]
no_license
adewinter/ip_helper
871264a1e7781a8bd0c69c25a8f5331670557dd4
2d4835ca7dfb5196aff524c3e087331669fcc6c5
refs/heads/master
2021-01-01T05:51:22.910873
2011-09-21T10:24:40
2011-09-21T10:24:40
2,428,049
0
0
null
null
null
null
UTF-8
Python
false
false
93
py
from django.contrib import admin from catchip.models import IPLog admin.site.register(IPLog)
[ "adewinter@dimagi.com" ]
adewinter@dimagi.com
1ecbb8e831336074d1ce5c6d07b4e34745935ae4
ce722f35f63d7e7af3e9890cbea50b05d32c34c7
/crawler/dspider/myspider.py
a1a34d3e4640e21a35516c59c8e9c2d1892770cd
[]
no_license
tfangz888/smart_deal_tool
bc6645047e2c3ff36af0baed62e31d1c6cec4a15
0f0e4edfec582e93146b30273621a28c36a5d6ca
refs/heads/master
2020-05-17T03:12:16.720526
2019-04-23T14:11:10
2019-04-23T14:11:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
# -*- coding: utf-8 -*- import time import calendar import datetime from scrapy import Spider from datetime import datetime, timedelta class BasicSpider(Spider): def get_nday_ago(self, mdate, num, dformat = "%Y.%m.%d"): t = time.strptime(mdate, dformat) y, m, d = t[0:3] _date = datetime(y, m...
[ "hellobiek@gmail.com" ]
hellobiek@gmail.com
692006753759743029b737d3aa6ed430a2b7c433
72247a311da4374aad057991a0544a12a58d5746
/123.py
d879f86aae5cf0d642645f52fb39ae64ca6529c9
[]
no_license
vijayarohini/Vijaya-Rohini
8429eb37d02a120b5c52ff69efd5e4969a391548
b9d8e1ca8bbfc9a6399d76fa047016835ee78975
refs/heads/master
2020-04-10T20:44:40.916313
2019-02-25T08:32:06
2019-02-25T08:32:06
161,277,337
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
a=int(input("")) if(a==0): print("Zero") elif(a>0): print("Positive") else: print("Negative")
[ "noreply@github.com" ]
vijayarohini.noreply@github.com
4e639caaa6cf3d48bcf922f4c974b7e0728af874
d3c672baac7878c8e115d3bcee0e70b245402eaa
/mnist_r5_advanced.py
56421ab57e6115e056b8e205c6aebb7446a18ef7
[]
no_license
baralevit/Training-Neural-Classifier-with-Regression-Objective
5137bc991a1e17585aab7a4c4b18b9a0f84a1718
6a3cc4022cb7ffa3e93a9af32c0ae847faf52604
refs/heads/main
2022-12-29T21:35:41.915425
2020-10-19T14:56:41
2020-10-19T14:56:41
305,417,979
0
0
null
null
null
null
UTF-8
Python
false
false
9,527
py
import torch import torchvision import torchvision.transforms as transforms batch_size =100 transform_train = transforms.Compose([ transforms.Pad(4), transforms.RandomHorizontalFlip(), transforms.ToTensor(), transforms.Normalize((0.1307,), (0.3081,)) ]) transform_test = transforms.Compose([ tr...
[ "noreply@github.com" ]
baralevit.noreply@github.com
71c848aa736f1b7aaaf894a5035e0ec68db6814c
e8f7c66e2ae19bb3ad0592a236186f7386d12886
/korean/__init__.py
f0246ccf98d8ae9bbf9eb17100aea68dcd1a5db0
[ "BSD-3-Clause" ]
permissive
Pusungwi/korean
c978264073bc8832675fcffd7ac7c1e8d9d29e9b
384961e38d396b05532afa0402b8f5d3662cbbf0
refs/heads/master
2020-12-30T17:32:59.583192
2012-10-12T01:36:23
2012-10-12T01:36:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,311
py
# -*- coding: utf-8 -*- """ korean ~~~~~~ A library for Korean morphology. :copyright: (c) 2012 by Heungsub Lee :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import from . import hangul, l10n, morphology from .morphology import Morpheme, Noun, NumberWord, Loanwo...
[ "h@subl.ee" ]
h@subl.ee
8aea0d953aea07654445f1a42684e582aafcdfe2
9514ae0b2f60e7b8769cd49d0b3a7b660e71eca5
/profileapp/models.py
2019bffe5361e0d395440b595d3d0125bf8487c3
[]
no_license
hsw5703/Django
66bb2bce382c638051e30ea6c385e842baf68af3
ba67f5ae3f1a013c235e4314b440d2c8e5fce2d5
refs/heads/master
2023-07-01T05:43:36.076447
2021-08-12T03:45:29
2021-08-12T03:45:29
382,992,991
0
0
null
null
null
null
UTF-8
Python
false
false
536
py
from django.contrib.auth.models import User from django.db import models class Profile(models.Model): user = models.OneToOneField(User, on_delete=models.CASCADE, related_name='profile') image = models.ImageField(upload_to='profile/', null=True) # null=True : 데이터가 없어도 상관없는지 여부 nickname = models.CharField(...
[ "hsw5703@naver.com" ]
hsw5703@naver.com
0b06164f1e2ea52a10c1f12eb6a2a9ec9648565b
9bd265169c7ec5897dc28a93119387ab26e23547
/July LeetCoding Challege 2021/KthSmallestElementInaMatrix.py
3d2909f55f745e618fc3dd28aee7b57b64111b5d
[]
no_license
Premdeep/LeetCode
2c58a97b1882271a3e428f1cef3882ed8af741a4
84eabd9ced6fcc0dfb39809cc345f792a613dcfa
refs/heads/main
2023-06-15T02:25:26.200870
2021-07-11T00:04:56
2021-07-11T00:04:56
383,935,073
0
0
null
null
null
null
UTF-8
Python
false
false
1,630
py
# Question: Kth Smallest Element in a Sorted Matrix # Given an n x n matrix where each of the rows and columns are sorted in ascending order, return the kth smallest element in the matrix. # Note that it is the kth smallest element in the sorted order, not the kth distinct element. # Example 1: # Input: matrix = [[...
[ "preamdhep.usapp@gmail.com" ]
preamdhep.usapp@gmail.com
692c094c861b7baa37a481f2c88db2464a83db29
bb3454d7e0864e20ce1c468e9654691e7a66fd3a
/bow.py
6610882de6ff764c829c302e428f72f94080fb8a
[ "MIT" ]
permissive
cplm98/SEC-Data-Analysis
0b797c24737265c401e60cf47886f3b5bd32da56
43de491a8b0f36f558d922fd0056a0a0a8455df7
refs/heads/main
2023-03-31T06:05:43.547441
2021-04-12T18:45:23
2021-04-12T18:45:23
343,216,571
0
0
null
null
null
null
UTF-8
Python
false
false
2,595
py
import string, os, re import numpy as np import pandas as pd from nltk.stem import PorterStemmer # Tokenize function from tf-idf.py file for consistency def tokenize(document): stemmer = PorterStemmer() document = document.translate(str.maketrans('', '', string.punctuation)) #remove punctuation arr = doc...
[ "connorwinters8@gmail.com" ]
connorwinters8@gmail.com
b5c2ebfa1bf8a425b6ee488a60b1efc1a3720789
16070a001cd1b05eb3236b7abebb71c49d4e6eb9
/homework3/venv/bin/easy_install
758b1552486b4b731c1771556000c20250486975
[]
no_license
ima919/201844897fangguimei
ddd0988a3dc6f867e86d60af32ba80da0bf307cf
ac332d83db419b399f3c66857362a3fbf49d6513
refs/heads/master
2020-04-01T04:02:35.070285
2018-12-19T02:15:07
2018-12-19T02:15:07
152,847,634
0
0
null
null
null
null
UTF-8
Python
false
false
440
#!/Users/ima/PycharmProjects/homework3/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install' __requires__ = 'setuptools==39.1.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '...
[ "ima@fangguimeideiMac.local" ]
ima@fangguimeideiMac.local
ecbd429887ac6d5abc32c05fd1f43073737f37c7
2a89cc4472bd6251a16a4369f13cdc3c40d28d86
/data_processing/nx_test.py
4fb70316922faecc8f18b7c0693cd4403c43642c
[]
no_license
wpower12/CIS5524-FinalProject
5a51a4b3dd91b92a27023c4317c2e167d06ab9bc
5f5104c6a8369b9939399258b6686b612cb22ffb
refs/heads/master
2020-05-05T00:20:59.188552
2019-04-30T17:49:04
2019-04-30T17:49:04
179,571,275
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
import pickle import networkx as nx from networkx.algorithms import community from networkx.algorithms import bipartite as bp DATA_PFN = "pol_300_year_00_20_new.p" DEBUG = "" edge_list = pickle.load(open("data/{}".format(DATA_PFN), "rb")) graph = nx.Graph() for user in edge_list: # print(user) for sub in user[1]: ...
[ "willpowe@gmail.com" ]
willpowe@gmail.com
b5f70c3dc6b4b1c3197a94cff2bcf3cea020f5b6
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Simulation/G4Utilities/G4DebuggingTools/python/G4DebuggingToolsConfig.py
f52b57fe2059fda006a2cf456c9959bd184320f5
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
3,737
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration from AthenaCommon import CfgMgr, Logging from G4AtlasServices import G4AtlasServicesConfig def getVerboseSelectorTool(name="G4UA::VerboseSelectorTool", **kwargs): from G4AtlasApps.SimFlags import simFlags # example custom configuration ...
[ "rushioda@lxplus754.cern.ch" ]
rushioda@lxplus754.cern.ch
35b04254829c219407297add0b75e3e5f4483e9d
66213c48da0b752dc6c350789935fe2b2b9ef5ca
/abc/174/e.py
ffc0d5bd9d8bbac094b0625c24ec7ed291cb8d7d
[]
no_license
taketakeyyy/atcoder
28c58ae52606ba85852687f9e726581ab2539b91
a57067be27b27db3fee008cbcfe639f5309103cc
refs/heads/master
2023-09-04T16:53:55.172945
2023-09-04T07:25:59
2023-09-04T07:25:59
123,848,306
0
0
null
2019-04-21T07:39:45
2018-03-05T01:37:20
Python
UTF-8
Python
false
false
1,100
py
# -*- coding:utf-8 -*- def solve(): """ 「丸太の長さをX以下にする」を各丸太について行い、カット回数を計算していく方針。 カット回数の計算は丸太一本あたりO(1)で計算できるので、全丸太でO(N)かかる。 Xは二分探索で範囲を狭めていけば、Xの探索はO(logN)で済む。 全体の計算量は、O(Nlog(N)) """ import math N, K = list(map(int, input().split())) As = list(map(int, input().split())) left, r...
[ "taketakeyyy@gmail.com" ]
taketakeyyy@gmail.com
04532cf16097153208bd333ec37a206290a499c0
de77a51bf27f6fb5d7fce32ee9950d3244dcc1ef
/pilot_points_tkreg_example/pest/pest_input.py
c1d49aeb57d5528de4b2407bb677b2ee86edecb9
[]
no_license
andrewtbanks/PEST_examples
a42963c88dd7c00ea40dcbeb3cc587e13ce05808
dce93ad9cb2a19f3b900dc2f8ab03071cb0574bd
refs/heads/master
2020-05-17T10:49:43.896245
2019-06-12T20:01:11
2019-06-12T20:01:11
183,667,421
0
0
null
null
null
null
UTF-8
Python
false
false
17,554
py
import matplotlib.pyplot as plt import os import numpy as np import flopy import flopy.utils.binaryfile as bf import flopy.utils.formattedfile as ff import flopy.utils.reference as srf import shutil fmain ='C:\PEST_examples\pilot_points_tkreg_example' # main directory for all files # specify modflow model...
[ "noreply@github.com" ]
andrewtbanks.noreply@github.com
3ec8b7c4c1384e248817c897c83f0cb53b4e0ac9
46b3a68c12d4659ba7d2ebfc8284e74931749e6d
/jdit/parallel/__init__.py
08b14f00707495ef87536fa8f6242a544d630f15
[ "Apache-2.0" ]
permissive
dingguanglei/jdit
db258bc05b71a5547a6d6d93fbe04501bbad5958
ef878e696c9e2fad5069f106496289d4e4cc6154
refs/heads/master
2021-06-09T13:55:51.499538
2021-04-27T12:32:55
2021-04-27T12:32:55
148,609,753
28
8
Apache-2.0
2019-01-11T02:10:52
2018-09-13T08:49:16
Python
UTF-8
Python
false
false
82
py
from .parallel_trainer import SupParallelTrainer __all__ = ["SupParallelTrainer"]
[ "32232377+dingguanglei@users.noreply.github.com" ]
32232377+dingguanglei@users.noreply.github.com
2710a12be3d2224637433dfeb7ee9636d696664a
e6d6da1adc96d79a3116e3d73a7d58dd61cc6a33
/Data_Collector/database_sql.py
c98c5307f1e0add864564adf49fb80eda8db8606
[]
no_license
anirban2304/Python
14c8a9c36013522e87868f7382d8f0ee9456156b
888e3a9f2e9deddf3afc5933c268442563d86d3f
refs/heads/master
2022-05-29T00:06:36.668467
2020-05-04T06:30:39
2020-05-04T06:30:39
257,178,541
0
1
null
null
null
null
UTF-8
Python
false
false
862
py
import pyodbc from sqlalchemy import create_engine import urllib server = 'python-project.database.windows.net' database = 'height_data' username = 'admin-python' password = 'Kolkata@23' driver= '{ODBC Driver 17 for SQL Server}' params = urllib.parse.quote_plus\ (r'DRIVER='+driver+';SERVER='+server+';PORT=1433;DAT...
[ "anirbanrcciit@gmail.com" ]
anirbanrcciit@gmail.com
10597335d72b0849eac2eb3df7d87974a685466c
d0710427245a6f7ee275d852019432c92d33b396
/backend/api/urls.py
8a6109bd4383112a591c543523a8197a800129e0
[ "MIT" ]
permissive
paulocsarlins/coleta-inteligente-seletiva
bda3a54cb23de67c22cdfd983ffaf0356ded3a5c
0696197e8bfb917786a8fa010cd060cc9b16d9d4
refs/heads/main
2023-07-01T08:50:41.356521
2021-07-28T11:28:37
2021-07-28T11:28:37
382,993,739
0
0
null
null
null
null
UTF-8
Python
false
false
143
py
from django.urls import include, path from . import views urlpatterns = [ path('welcome', views.welcome), path('users', views.users) ]
[ "paulocsar91@gmail.com" ]
paulocsar91@gmail.com
b70bfd52706a63448ead0757c227114d9ab018fd
f1af14f716ebbec39320a1b47ea966bd8a132095
/ProjectPart4/tests/literalFail.py
71b673f161ae1d7dee60b214cfa87224eee1c7e0
[]
no_license
agarwalm/Compilers
ce115fb7f70511b6173600beb12effca9e545f75
bee3b01be6ad7667c3bbc71ae9ca5120106b9978
refs/heads/master
2021-01-01T18:29:02.763047
2013-12-20T23:06:42
2013-12-20T23:06:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
#Mrigya Agarwal, Christine Graff, Giuseppe Mendola "hello" 1.2
[ "christinegraff@Christines-MacBook-Pro.local" ]
christinegraff@Christines-MacBook-Pro.local
90d8d869fc8f16e185d015112875789166658815
aeba64588c629c2f8a39fc054c48e34ae5b1bc76
/Урок 3. Практическое задание/geekshop/authapp/admin.py
e09e35a8b3ae6d15fc2797fcbbe9025ffe678c9c
[]
no_license
ZF-1000/12_Django_Framework_Optimization_tools
a600caa2739824011251003a58f016ad1aa4d9e7
664224a22711d071fc63a33acedf430571d795e8
refs/heads/master
2022-12-17T22:59:46.581864
2020-09-24T18:34:00
2020-09-24T18:34:00
289,723,244
0
0
null
2020-09-24T18:34:01
2020-08-23T16:22:46
Python
UTF-8
Python
false
false
184
py
from django.contrib import admin from authapp.models import ShopUser, ShopUserProfile # Register your models here. admin.site.register(ShopUser) admin.site.register(ShopUserProfile)
[ "n.shanin@mail.ru" ]
n.shanin@mail.ru
729682773f001c122e37e7254fe4d3d4f23be11a
af7839970afa69728c539baad59055e19be6412d
/python/tests/test_listener_common_http_protocol_options.py
52dfe38aad06575036fec6389bdbe05396a425a0
[ "Apache-2.0" ]
permissive
prelipceang/ambassador
9f77b810c7343a0d50385ef5954ccb60b6dd4a70
669529fcb606d60822e51b3bed872596935f4e35
refs/heads/master
2023-03-29T02:30:37.214964
2021-03-31T20:12:08
2021-03-31T20:12:08
353,754,828
0
0
Apache-2.0
2021-04-01T17:46:31
2021-04-01T16:04:22
null
UTF-8
Python
false
false
1,739
py
from utils import econf_compile, econf_foreach_hcm, module_and_mapping_manifests import pytest def _test_listener_common_http_protocol_options(yaml, expectations={}): # Compile an envoy config econf = econf_compile(yaml) # Make sure expectations pass for each HCM in the compiled config def check(ty...
[ "krausenoah@gmail.com" ]
krausenoah@gmail.com
039da469cdae0d4920a264a9b340ad3b542f28fa
772d8e42822e7ba9796a6241348ded12b902f8e2
/pythoncode/python_mysql/opupdate.py
0f9676ed1e27338f57badc02c5f054bd4d0cc612
[]
no_license
dagf113225/python_thzm2
8f4dc424a4d167d7964adaa8d025d16e16e0a7f6
1295208572995202eac981d32ce790000485e3a4
refs/heads/master
2020-04-07T12:06:38.442721
2018-12-21T03:35:20
2018-12-21T03:35:20
158,354,796
0
0
null
null
null
null
UTF-8
Python
false
false
271
py
import pymysql conn=pymysql.connect(host="127.0.0.1",port=3306,database="thzmdb2", user="root",password="123456",charset="utf8") dbcursor=conn.cursor() sql='UPDATE t_emp SET epwd=%s WHERE eid=%s' dbcursor.execute(sql,('123456',6)) conn.commit()
[ "512444862@qq.com" ]
512444862@qq.com
4f7d33984f4de1a2db5ca3fc534dcc10909e1f06
30ab9750e6ca334941934d1727c85ad59e6b9c8a
/server/base/middlewares.py
84d8a5ba83d986202b5a9503d755dfa61cee8a94
[ "Apache-2.0" ]
permissive
ankurvaishley/zentral
57e7961db65278a0e614975e484927f0391eeadd
a54769f18305c3fc71bae678ed823524aaa8bb06
refs/heads/main
2023-05-31T02:56:40.309854
2021-07-01T07:51:31
2021-07-01T14:15:34
382,346,360
1
0
Apache-2.0
2021-07-02T12:55:47
2021-07-02T12:55:47
null
UTF-8
Python
false
false
2,103
py
# adapted from https://github.com/mozilla/django-csp from functools import partial from django.conf import settings from django.utils.crypto import get_random_string from django.utils.functional import SimpleLazyObject from http.client import INTERNAL_SERVER_ERROR, NOT_FOUND CSP_HEADER = 'Content-Security-Policy' D...
[ "eric.falconnier@112hz.com" ]
eric.falconnier@112hz.com
9d11c8a40fdd41a1c3515914b26621fd46887287
7648330b4d89f301c161a2b78ec57acfd5408804
/9 09 2020 задачки.py
e4f12dfdf7e9226a517a336c8931ec5c6600dacc
[]
no_license
dyakobka/pop
a07a5e8efe10cb68afa3712d0de0827df916353f
3bd558ca775c582270aff18c3a17864cbb28fc15
refs/heads/master
2023-01-03T14:55:45.028002
2020-10-28T03:06:20
2020-10-28T03:06:20
307,889,928
0
0
null
null
null
null
UTF-8
Python
false
false
126
py
x=float(input("Цена конфеты:")) y=float(input("Цена печенья:")) c=3*(2*y+1.8*x) print("Итого:",c)
[ "dyakobka@mail.ru" ]
dyakobka@mail.ru
64612b9c2435744a2cdb72e21120ca270c1675e4
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/tree-big-2939.py
12303d1902d870a55260fe2b6bcdbb323417c476
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
23,290
py
# Binary-search trees class TreeNode(object): value:int = 0 left:"TreeNode" = None right:"TreeNode" = None def insert(self:"TreeNode", x:int) -> bool: if x < self.value: if self.left is None: self.left = makeNode(x) return True else: ...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
d6c6b643bd659e3f9cfac6cae96011a6dca0c086
45a00518abed3ef4796655d8d2a0677f29961aa3
/example 46/python_venv/lib/python3.8/site-packages/joblib/test/test_cloudpickle_wrapper.py
733f51c7239467da0f967b2aa790a2df76cfa185
[]
no_license
ruiwu1990/CSCI_4710_6710
07b92e456d6cda3e63a5b5d078c1718110317555
6e32c89ef70fbe4b4a5db14682dc94b13bab6d9e
refs/heads/master
2023-05-03T21:50:54.943702
2023-04-18T21:48:43
2023-04-18T21:48:43
174,882,138
9
17
null
2023-05-01T20:53:06
2019-03-10T21:18:01
Python
UTF-8
Python
false
false
749
py
""" Test that our implementation of wrap_non_picklable_objects mimics properly the loky implementation. """ from .._cloudpickle_wrapper import wrap_non_picklable_objects from .._cloudpickle_wrapper import my_wrap_non_picklable_objects def a_function(x): return x class AClass(object): def __call__(self, x)...
[ "raywu1990@nevada.unr.edu" ]
raywu1990@nevada.unr.edu
8c6e76ba135b2dd858bd7597857cd6d050fbb80f
6a61e468230ccd22bfde0bbb544503218ab2c496
/autoload/leaderf/python/leaderf/helpExpl.py
0d8c7de09015eaee8cb41c8d87fd5ce6f375f569
[ "Apache-2.0" ]
permissive
thomasding/LeaderF
46b7676d0e639e8caa534ef7acb7392e5a05aa2c
7eada2057cb2cae4f50e6b7bc4b342ee96b730b9
refs/heads/master
2020-03-17T08:12:46.889081
2018-05-13T14:00:33
2018-05-13T14:00:33
133,429,057
0
0
Apache-2.0
2018-05-14T22:37:10
2018-05-14T22:37:10
null
UTF-8
Python
false
false
4,179
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import vim import os import re import os.path from leaderf.utils import * from leaderf.explorer import * from leaderf.manager import * #***************************************************** # HelpExplorer #***************************************************** class HelpE...
[ "archofortune@gmail.com" ]
archofortune@gmail.com
6a1ba511e9bc3561506c8183621883418f588446
1a5b6f1e8167c1a422e2b4d60a33623f9ce39ab1
/FashionRecognisation.py
7efc170ec66f41964b8545039f1d9b13d5489f91
[]
no_license
nikhita666/Machine-Learning
b3bd6063793f68a56447ffd71d9b7aab28d5ae1e
a0a6ae17b5b8a2b48bf4ecaeafb31a479db6b5d4
refs/heads/master
2022-11-06T01:43:41.617441
2020-06-22T19:43:00
2020-06-22T19:43:00
266,606,528
0
0
null
null
null
null
UTF-8
Python
false
false
1,459
py
#!/usr/bin/env python # coding: utf-8 # In[53]: import tensorflow as tf print(tf.__version__) # In[54]: class myCallback(tf.keras.callbacks.Callback): def on_epoch_end(self, epoch, logs={}): if(logs.get('loss')<0.4): print("\nReached 60% accuracy so cancelling training!") self.model.stop_traini...
[ "noreply@github.com" ]
nikhita666.noreply@github.com
2cb9d5245679de6770d36e3cc6bf42aec76d0213
4babbcaa971a091d519e24f3db9c982487d2f3b5
/rename.py
a497efccd6fc34d73af36916c1694b951d27e3b2
[ "MIT" ]
permissive
Anandsure/auto-py-to-exe
3f9fc46f5ff3974042cf3e417c4805aef30e8d21
45155ac0263694927ad89b822de0dd30ea4c44dc
refs/heads/master
2020-06-15T02:55:59.434562
2019-07-04T07:09:20
2019-07-04T07:09:20
195,187,953
0
0
null
2019-07-04T07:08:29
2019-07-04T07:08:28
null
UTF-8
Python
false
false
512
py
from glob import glob from os import rename for fname in glob('*.jpeg'): t='' for i in fname: if i !='.': t+=i else: break rename(fname, t+'.anand') for fname in glob('*.png'): t='' for i in fname: if i !='.': t+=i else: ...
[ "noreply@github.com" ]
Anandsure.noreply@github.com
37b48f5467a559bc92a85b25f809768097691872
14d535a6693a69f5cc23f422038e7a39e6e88f69
/admissions/migrations/0003_auto_20170308_0413.py
2666b0e4ae9be87378d09fa1155d73d2146aa3bf
[]
no_license
gayathrisnair/customized-web-search
489683d9e55c047f7c99235f3a2be787c9048659
24cd152793cbf7b571ca7e4d71d4cbf91c7e8105
refs/heads/master
2021-01-18T11:37:10.262662
2017-03-08T14:48:37
2017-03-08T14:48:37
84,326,746
0
0
null
null
null
null
UTF-8
Python
false
false
828
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2017-03-08 04:13 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('admissions', '0002_admission_temp'), ] operations = [ migrations.RemoveField( ...
[ "gayathrisnair.mec@gmail.com" ]
gayathrisnair.mec@gmail.com
999caaf9cb5d361ac17ac4f54ff8402c749c2de9
dc0f7a8ccb09dd5ef745db3b25c725b42d4a31c8
/Projects/checkmypass.py
fedcde61acf89cb2b8e519086a5bb21677192567
[]
no_license
AdrianBaluta/Portfolio
ca31661d7d495b025bbb0026c35e126dec50417b
4369de535621e3fe577de74cfb4a585ea1c80bf8
refs/heads/master
2023-02-05T23:28:13.506394
2020-12-28T14:54:37
2020-12-28T14:54:37
299,284,232
0
0
null
null
null
null
UTF-8
Python
false
false
1,183
py
import requests import hashlib import sys def request_api_data(query_char): url = 'https://api.pwnedpasswords.com/range/' + query_char res = requests.get(url) if res.status_code !=200: raise RuntimeError(f'Error fetching: {res.status_code}, check the api and try again') return res d...
[ "noreply@github.com" ]
AdrianBaluta.noreply@github.com
db7b780986be5b7e0a67d493b8c6607b8daa689e
7c4ace8aa9d3f878af86ba51005583d79e2b1bba
/social/posts/migrations/0003_comment.py
9ef38ef7234b8c0c6b6cd8f4574026e0b0f4ca88
[]
no_license
AhmedYounis20/socialmedia
565c6d23f5b0e465fc825983092ad31ce21fb2f3
80ad2ba26427d2cc6b3a48d1f2cfc3ff7fd71c03
refs/heads/main
2023-07-19T05:29:49.088962
2021-09-12T00:32:27
2021-09-12T00:32:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
936
py
# Generated by Django 3.2.5 on 2021-09-06 21:18 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounts', '0005_rename_t_account_groups'), ('posts', '0002_post_group'), ] operations = [ migratio...
[ "amy2532001@gmail.com" ]
amy2532001@gmail.com
83c74b4f190278a9481a2170a4c40b17c59e8210
88fb79018482d97127f70793fbfcd79b339f5557
/src/DataSource/WriteToFile.py
2e9bb331eda9b2ea811ae49108cfc250a6edbdf7
[]
no_license
GregRobertson96/IndividualTesting
b9ac36410f2ac664e24766c1d7ccfdfa3a9a3ab9
750e7270cf5647e58c929ec95b02be42631eb668
refs/heads/master
2023-04-03T05:15:41.194659
2021-04-18T16:03:19
2021-04-18T16:03:19
354,946,527
0
0
null
null
null
null
UTF-8
Python
false
false
439
py
class WriteToFile: # Here will be the instance stored. file = "" filePath = "resource/" directory = "" fileName = "" def __init__(self,directory,fileName): self.directory = directory self.fileName = fileName def writeToFile(self,logItem): if self.file == "": ...
[ "derek.somerville@glasgow.ac.uk" ]
derek.somerville@glasgow.ac.uk
a7b02076b0d0d441315b2c36449132205b58a979
3efd828646ffe869d0b0266e62fad6e3719fa30b
/idaapi/stack_calc.py
c749fa66f56e37f9fbb5299b3b993c4d772f699c
[]
no_license
harmonizedMachines/grey-hat-python-exploits
73bb7492691f62b6e55e82c2d7ea376d69ce8dde
edeca7149b59a3dc143c9c98809bfee6fc5aa121
refs/heads/master
2023-08-18T14:33:06.381641
2019-07-04T10:06:59
2019-07-04T10:06:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
from idaapi import * var_size_threshold = 16 current_address = ScreenEA() for function in Functions(SegStart(current_address), SetEnd(current_address)): stack_frame = GetFrame(function) frame_counter = 0 prev_count = -1 frame_size = GetStrucSize(stack_frame) while frame_counter < fra...
[ "harmonyyap@gmail.com" ]
harmonyyap@gmail.com
24661f2a13608381b8b19624b1bae4b7be28ddcc
50d21789e718356f57f738ec9d05b51ddc727883
/code/sketches/test_instruments.py
420040da87212ad9b556db22b329b193964fed88
[]
no_license
ilzxc/thirst
fba6943759e97590e8f0a0c06115195e40a36935
a722e04830ae3636140f87e4371aa20420bd319c
refs/heads/master
2021-01-10T09:44:31.079250
2015-12-04T08:08:35
2015-12-04T08:08:35
45,520,767
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
from instruments import SAMPLES as samp for i in samp: print(i + ":") instrument = samp[i] for c in instrument: print(" " + c + ":") cat = instrument[c] names = [] for d in cat: names.append(d) l = len(cat[names[0]]) for i in range(1, len(names)): assert len(cat[names[i]]) == l print(" " ...
[ "ilyaforpresident@gmail.com" ]
ilyaforpresident@gmail.com
a241ffe70f8a7c525e02b9e12ea998e9efecacc2
6d917e6cdb5bd0c81f98f5bacbf4e7cdd84c72fd
/venv/Lib/site-packages/pip-19.0.3-py3.7.egg/pip/_vendor/html5lib/treebuilders/etree.py
60cf2c3e4edfb0643ebf5505302eabbf3cc611cc
[]
no_license
nickpatten04/changelog_exercise
f9b5093780f1e46007ef1595fdb34835672df705
debf271ac77a85f1d017bc319c40ff744ee7f72e
refs/heads/master
2023-03-20T12:23:55.019643
2021-03-15T00:40:23
2021-03-15T00:40:23
347,788,656
0
0
null
null
null
null
UTF-8
Python
false
false
12,771
py
from __future__ import absolute_import, division, unicode_literals # pylint:disable=protected-access from pip._vendor.six import text_type import re from . import base from .. import _ihatexml from .. import constants from ..constants import namespaces from .._utils import moduleFactoryFactory tag_regexp = re.comp...
[ "np164s@corp.wayfair.com" ]
np164s@corp.wayfair.com
c11d13c153d0d2960f4ab91f24fa4850ad1dfac5
32d94996ec115f01f5c4cf2e5d3bb1e1a72dcac1
/env/bin/pip-2.7
77a640881b9293b41cdc568133c3a7e12b724f44
[]
no_license
jasvir99/Transport-System
bb1d5e298994701f73b0b8ad3bf818e28b708d71
e7daba19c2e8762aad66e23fb080b460c86ff3e6
refs/heads/master
2020-05-05T01:57:01.736998
2013-12-22T18:17:23
2013-12-22T18:17:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
310
7
#!/home/jass/Automation/env/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.4.1','console_scripts','pip-2.7' __requires__ = 'pip==1.4.1' import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.exit( load_entry_point('pip==1.4.1', 'console_scripts', 'pip-2.7')() )
[ "jassigrewal91@gmail.com" ]
jassigrewal91@gmail.com
caac7979517944578339d541ee6ed90eebb47efd
149ec82758d9e22dd5518c7e0d00e20e7e7386ee
/mnist/tf_mnist_log_reg.py
9e28da0116febdeb2a874df662bd11cff3eccc51
[]
no_license
m-elgemaiey/play
9662c306348c23d7796910733324a947f98f828f
d6eac0972158c7374858adeb269f7d066521609f
refs/heads/master
2020-03-18T00:31:26.983548
2019-11-17T15:02:24
2019-11-17T15:02:24
134,098,974
0
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
# Logistic Regression from tensorflow.examples.tutorials.mnist import input_data import tensorflow as tf import time import numpy as np mnist = input_data.read_data_sets("MNIST_data/", one_hot=True) #print(mnist.train) # define the model x = tf.placeholder(tf.float32, [None, 784]) W = tf.Variable(tf.zeros([784, 10]))...
[ "m.elgemaiey@gmail.com" ]
m.elgemaiey@gmail.com
5303ca1ae822afef9627e13ab5a57607e897579f
831a23e731a2e9afcd7469e80cd8145c03ed8ddb
/[GJM]/Completed/Kaguya-sama - Love is War S3/Gooya3_03.py
5e7c5f32634e8e20b7568659e8514a8ef97aa8e3
[ "MIT" ]
permissive
LightArrowsEXE/Encoding-Projects
d1edf910de8ded679a1874dc7aba7bac7c75c3f5
fc9ea0d15bffa5a53719ad587b5591cbd28812ce
refs/heads/master
2023-04-06T08:11:37.210381
2023-03-28T17:44:19
2023-03-28T17:44:19
167,544,468
77
14
MIT
2022-06-26T14:21:15
2019-01-25T12:31:36
Python
UTF-8
Python
false
false
5,980
py
from __future__ import annotations import ntpath from glob import glob from typing import Any, Dict, List, SupportsFloat, Tuple import vapoursynth as vs import vsencode as vse from lvsfunc.types import Range from vardefunc import initialise_input ini = vse.generate.init_project('x265') core = vse.util.get_vs_core(r...
[ "noreply@github.com" ]
LightArrowsEXE.noreply@github.com
51332f9819b3c64b6840a00c7ae5e4b9dc6a2d05
76f224ada78fbacb0e6c932a2425adf12022a554
/src/menus.py
a969483e188c225b0389547a46f28c8d51e5b519
[]
no_license
solongtony/kaiserain
6345734bd4139b78cf019df4e94b5bb286c251b9
090ef0c16e11e8e6b33c2f7565f082050422397c
refs/heads/master
2021-06-15T12:17:52.199112
2021-02-14T02:19:05
2021-02-14T02:19:05
132,205,947
0
0
null
null
null
null
UTF-8
Python
false
false
4,235
py
import libtcodpy as libtcod def menu(con, header, options, width, screen_width, screen_height): if len(options) > 26: raise ValueError('Cannot have a menu with more than 26 options.') # calculate total height for the header (after auto-wrap) and one line per option header_height = libtcod.console_get_hei...
[ "solongtony@gmail.com" ]
solongtony@gmail.com
c76b501578d503fb8fa7b2ca448f9a32035a151d
e936bd30ddd45d803d98abad4e365975b1e56092
/01-Core Python/04-Applications/CRUD.py
d5d2d88927f654328b63bbf0e0a091dba04b77bc
[]
no_license
apekshar5/Core-Python
a4a86258b10ffa43b5be57b20a4f102525287bc8
472b1bdb8d6e71d6f25cea8ae67099fa6792e61b
refs/heads/master
2022-02-11T07:49:52.450684
2019-05-22T18:22:48
2019-05-22T18:22:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,868
py
studentList = [] students = {} def create(): print("Create Student Record...") studentId = int(input("Enter ID : ")) studentName = input("Enter name : ") studentCourse = input("Enter course : ") studentNo = int(input("Enter number : ")) students["Id"] = studentId students["Nam...
[ "noreply@github.com" ]
apekshar5.noreply@github.com
0d558a04a974c96413e34fc82e039b476a0ba4bd
a392bb476779cbfde6c4863e6039af9a57c288be
/S1_Foundation/C2_GettingStarted/selection_sort.py
966df2f7c6568266bfc89861df06db3b9452b246
[ "MIT" ]
permissive
JasonVann/CLRS
49e25d021718156a732455a117331dace1fe501c
d9dcdc7ea9230d03d97d72857f9345ea995e5986
refs/heads/master
2021-05-04T10:03:06.999922
2017-10-21T07:43:54
2017-10-21T07:43:54
53,999,274
1
0
null
null
null
null
UTF-8
Python
false
false
722
py
from test_sort import * def selection_sort(data): n = len(data) for i in range(0, n-1): # Find the i-th minimum number and swap with data[i] min_i = None for j in range(i, n): if min_i is None or data[j] < min_i: min_i = data[j] idx = j ...
[ "jasonvanet@gmail.com" ]
jasonvanet@gmail.com
fa9292697ded287e085f6630a2fc511052425b28
add952bc00d3f276f48d9f9aa36a42db882e6bbf
/python/2020/13.py
5a6dd125b1f5e07a6134df4051eebb001381dbee
[]
no_license
jgilchrist/advent-of-code
8e0853b2634a60d49acb1cf372c166cfcf66c3ba
fdd5d8dd4c482f9f12e86c0761511f6139b202e3
refs/heads/master
2022-12-14T15:51:37.891537
2022-12-14T14:30:02
2022-12-14T14:30:02
73,195,896
2
0
null
null
null
null
UTF-8
Python
false
false
1,147
py
from utils import * def all_multipliers(num): curr = num while True: yield curr curr += num def first_departure_time(bus, departure_time): return next(n for n in all_multipliers(bus) if n >= departure_time) @check(333) def part1(i): departure_time, buses = i buses = [bus for bus ...
[ "jonnygilchrist@gmail.com" ]
jonnygilchrist@gmail.com
3e816a9b0d04ae0536ff9b4dff5876b89b48e2f8
c678668e8c553ee2b1611174fab51ffbe4aef313
/stream.py
c821dc858c7ed5f64b96ab1943fe355b30f06333
[ "Apache-2.0" ]
permissive
PeacefulLearner/Twitter-Sentiment-Analysis
66e532fb5633af486108668a8b4c837597bad465
fc7e711e74a5f57d0b5159def2158a6a1f9aec04
refs/heads/main
2023-03-11T13:02:24.501658
2021-03-06T04:43:42
2021-03-06T04:43:42
344,226,441
0
0
null
null
null
null
UTF-8
Python
false
false
4,304
py
import tweepy import socket import re #Here to preprocess the tweet for emoji removal import preprocessor as p import sys import googlemaps import pandas as pd import time import threading access_token="ACCESS_TOKEN" access_secret="ACCESS_SECRET" consumer_key="CONSUMER_KEY" consumer_secret="CONSUMER_SECRET" auth =...
[ "noreply@github.com" ]
PeacefulLearner.noreply@github.com
4d58f045f2dc239a3427227d9cd114f3cb7518e3
9be2131f70538acb99c97cace5a581b128b8ddc9
/myapp/views.py
b7ef9e281257b31f0bbe272f3b4c2129f172606a
[]
no_license
chasinginfinity/myfirstproject
5a74e40c7b615b9db8b79c69d4c97c0914820b8c
3285712f5ff2144a4e549a1a173f4e49e353dd30
refs/heads/master
2020-03-09T13:03:14.618719
2018-04-09T07:13:45
2018-04-09T07:13:45
128,800,496
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
from django.shortcuts import render, HttpResponse # Create your views here. def index(request): return HttpResponse("<h1>Hello World!</h1>")
[ "adarsh1021@gmail.com" ]
adarsh1021@gmail.com
b7d303e873eeb3dea80fa7814f0f292cd099834f
fd35dc8510909f9d38567a770a20b727a0938166
/I0320068_Soal1_Tugas6.py
1890ee8f2a5c744c5c8949baab138bd6b13ec37c
[]
no_license
ahmedwicaksono/Muhammad-Nurwicaksana_I0320068_Abyan_Tugas6
7c306519e1875f1e55c20de70023de76bcf30866
fe3cff438208421536613dcb0a965836c6f947f4
refs/heads/main
2023-04-01T21:51:53.959286
2021-04-09T19:06:19
2021-04-09T19:06:19
356,360,751
0
0
null
null
null
null
UTF-8
Python
false
false
66
py
i = 1 while i<=10: print(" %d: Hello World" % i) i = i + 1
[ "ahmed.wicaksono16@gmail.com" ]
ahmed.wicaksono16@gmail.com
f564ff5ce4d903748be3a5760cca6385ee93192e
7b892688c91552c5f2d3d86efd1a93a87b97b0a8
/archive/test_stepperH.py
58e0e2d9ef37602081fd5547dbd39e0374d5dd5e
[ "MIT" ]
permissive
NPadrutt/PREN_Gruppe11
46a86159cfcf73e3b14ed457a8cccef73e218531
e9fbe48ee969e5a029ccc2ecfdb5da035206650b
refs/heads/master
2021-09-16T23:31:06.430557
2018-06-26T05:37:16
2018-06-26T05:37:16
107,522,437
0
0
null
null
null
null
UTF-8
Python
false
false
324
py
from src.StepperH import StepperH import time # starts horizontal stepper as thread if __name__ == '__main__': stepper = StepperH() try: stepper.start() while True: print('stepper running') time.sleep(2) except(KeyboardInterrupt, SystemExit): stepper.running = False stepper.join() print('stepper of...
[ "christopher.christensen@live.com" ]
christopher.christensen@live.com
b5cf03d58de1480c41c54e2fe20bc6385cda0878
5a98d0d6fe1562cb9ae11974a1a47e60c916a34e
/chapter6/python/6-5/test.py
9513a30d07e4be9d5d25eb5d1b22e092a3a039b2
[]
no_license
ABigDoge/Network_Experiments
defb9e8a9674c0ecb5cbc5859b8b8b89e6424cd0
51fe880403d6ce7b091614c8d32da5d9354020ba
refs/heads/master
2022-10-10T05:08:45.818998
2020-06-09T10:41:58
2020-06-09T10:41:58
270,970,125
0
0
null
null
null
null
UTF-8
Python
false
false
2,009
py
import socket import argparse def checksum(header: bytes)-> int: cs = [] for i in range(0,len(header),2): cs.append(int.from_bytes(header[i:i+2], "big")) cs = sum([i for i in cs]) while cs > 0xffff: cs = (cs & 0xffff) + (cs >> 16); cs = cs ^ 0xffff return cs def tc...
[ "delirio579@163.com" ]
delirio579@163.com
c2c110f67b41e55476870566db38dc4b35959fa6
2df48a5a36a7d541950efb0189b2bc76f0cc8816
/test.py
c4863301cc497e65f23f2e0a2f242ceff8b3905c
[]
no_license
outk/graduate_thesis
b33048aaeca2052dd09d9698745a3ee01e6a545b
aad9b1068dc512ef7a16923bfd47c6fc380a25d7
refs/heads/master
2020-12-13T20:08:24.246030
2020-03-11T05:40:44
2020-03-11T05:40:44
234,516,110
0
0
null
null
null
null
UTF-8
Python
false
false
14,145
py
import numpy as np from numpy import array, kron, trace, identity, conj, transpose from scipy.linalg import sqrtm, funm, inv from numpy.linalg import cholesky import scipy from datetime import datetime, timedelta from scipy.optimize import minimize, minimize_scalar # root2 = np.roots(2) # b0 = array([[1,0],[0,0]])...
[ "outk1023@gmail.com" ]
outk1023@gmail.com