blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
281
content_id
stringlengths
40
40
detected_licenses
listlengths
0
57
license_type
stringclasses
2 values
repo_name
stringlengths
6
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
313 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
18.2k
668M
⌀
star_events_count
int64
0
102k
fork_events_count
int64
0
38.2k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
107 values
src_encoding
stringclasses
20 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.02M
extension
stringclasses
78 values
content
stringlengths
2
6.02M
authors
listlengths
1
1
author
stringlengths
0
175
f0a78184f60c70fe10ad402417889766bd580a34
a91c54c611f3cde6c1438403c9dfb6a8b1ac06c0
/helpers.py
b0a5d2efda656b37edd7b70e9dddee4308bd342b
[]
no_license
taimurshaikh/Zabaan
9a5e494e637534abc75537206194fd34bd412dda
7010b5f5e13173021e1ee01399cdcec335c9efc0
refs/heads/master
2022-12-21T13:48:37.751361
2020-10-03T17:23:13
2020-10-03T17:23:13
283,689,004
0
0
null
null
null
null
UTF-8
Python
false
false
1,110
py
from googletrans import Translator, LANGUAGES from flask import redirect, render_template, request, session from functools import wraps def login_required(f): """ Decorate routes to require login. http://flask.pocoo.org/docs/1.0/patterns/viewdecorators/ """ @wraps(f) def decorated_function(*...
[ "noreply@github.com" ]
noreply@github.com
4e09b2610a1de447484dfa0b2a454a2e60fbe606
c1c7f9e400f788c296d9464117ba6cac553b03ca
/src/datasets/soilmoist.py
4985c8c3541822a678276e354a53aac02b638597
[ "MIT" ]
permissive
nasa/RHEAS
1d8e0d6cb2df13713d458db07c0348fcf18eb9e1
27d0abcaeefd8760ce68e05e52905aea5f8f3a51
refs/heads/master
2023-08-03T23:05:47.535575
2023-08-01T16:55:13
2023-08-01T16:55:13
46,281,533
88
63
MIT
2023-08-01T16:55:15
2015-11-16T14:57:18
Python
UTF-8
Python
false
false
4,223
py
"""Definition for abstract soil moisture class. .. module:: soilmoist :synopsis: Definition of the Soilmoist class .. moduleauthor:: Kostas Andreadis <kandread@jpl.nasa.gov> """ import numpy as np import dbio import logging class Soilmoist(object): def __init__(self, uncert=None): """Initialize SM...
[ "kandread@jpl.nasa.gov" ]
kandread@jpl.nasa.gov
83bf4ce9633cc8c5cfc18dd625a1171439744948
e970c6bfb725a038a17600763db44e21e2591f18
/ex44c.py
54eb4a7a4339aa5da3f33a469a804c9772db8bf7
[]
no_license
gabyborja/learnpython
5b9dede94c7bbf2087d79833c4dd0ee099b29d23
13bccb5723c125e28646da694cafec4f581ba55f
refs/heads/main
2023-03-08T02:14:44.447713
2021-02-17T11:22:58
2021-02-17T11:22:58
329,461,347
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
class Parent(object): def altered(self): print("PARENT altered()") class Child(Parent): def altered(self): print("CHILD, BEFORE PARENT altered()") super(Child, self).altered() print("CHILD, AFTER PARENT altered()") dad = Parent() son = Child() dad.altered() son.altered() # T...
[ "gabyborja1994@gmail.com" ]
gabyborja1994@gmail.com
24e59e1d1a203501db5f574426f066684bb0cf9a
16ee3659a670dec5914dce456a27fb6dbb3038b6
/Lab2/lab2ex13.py
78ca16c1a0319de6f0b4bc3e17f4d03892542ea3
[]
no_license
saharma/PythonExercises
eeae8172c70074aac9d88233a1fac495b5d01249
49fc041d93dcd64329bd18981aa3f69def8db19f
refs/heads/master
2021-01-20T17:53:45.506075
2017-05-15T18:20:16
2017-05-15T18:20:16
90,893,757
0
0
null
null
null
null
UTF-8
Python
false
false
156
py
albert = "albert einstein" bertie = "bertie" result = "" for x in bertie: for y in albert: if y == x: result = result + y break print(result)
[ "saharmohdali@gmail.com" ]
saharmohdali@gmail.com
194d98d1d0d45aef000079592aa04d7d962ac081
43ab00abae60c3d016e59065fa9bbe3ab4d40add
/libscampi/contrib/multilingual/admin.py
da40450e038da87419e9b71b6a6b982e5445272e
[ "BSD-3-Clause" ]
permissive
azpm/django-scampi-cms
29ab99c996568b33aed8278e18e0d03125e07d7c
7ed96496ef79b47ac8685c0d2b83291be6e6a809
refs/heads/master
2023-05-13T14:45:56.743864
2023-04-28T20:12:09
2023-04-28T20:12:09
5,610,789
2
1
NOASSERTION
2019-04-26T02:43:25
2012-08-30T05:16:39
Python
UTF-8
Python
false
false
122
py
from django.contrib import admin from libscampi.contrib.multilingual.models import Language admin.site.register(Language)
[ "leingang@arizona.edu" ]
leingang@arizona.edu
9f7c7cef1726910db585906e0c6bc38c69a04522
dff47f2ac7671e074fec2f6f1590c8c994e1be27
/1_map/PyGreentea/PyGreentea.py
efb564f538f3dcdd0a4e9deb6eb3b856a3c7b5d3
[ "BSD-2-Clause" ]
permissive
VCG/parallel_unet
a4976bd23569389810b4075793c0394bdd976ed8
87f39a6f93992aaacb2796d134b57fdd7273b164
refs/heads/master
2021-01-17T23:07:53.103134
2017-06-09T19:42:04
2017-06-09T19:42:04
84,212,594
1
1
null
null
null
null
UTF-8
Python
false
false
40,186
py
import os, sys, inspect, gc import h5py import numpy as np from scipy import io import math import threading import png from Crypto.Random.random import randint import numpy.random import pdb # Determine where PyGreentea is pygtpath = os.path.normpath(os.path.realpath(os.path.abspath(os.path.split(inspect.getfile(insp...
[ "felix.e.gonda@gmail.com" ]
felix.e.gonda@gmail.com
0bd55fe6d36c2ce64eb0ea3bac3741d85256badb
f99f0842e23a2bb48d58a9e5f731e8eb28d1cfcb
/classFact.py
a0c027f10ddd6223a19aba06c42ff9a79d9d785b
[]
no_license
anujnaRao/AOOP
d391c1b285d45adf6142978bafb42dd2696367bc
f4fe32bec5c1c6cc7fdd8f500e371300a9e1086d
refs/heads/master
2020-07-27T02:36:33.289074
2020-02-14T07:57:12
2020-02-14T07:57:12
208,838,838
0
0
null
null
null
null
UTF-8
Python
false
false
755
py
def details(value=False): if value: keys=['empid','empname','empadd'] else: keys=['cmpid','cmpname','cmpadd'] def init(self,**kwargs): self.expected_keys=set(keys) if self.expected_keys !=set(kwargs.keys()): raise ValueError("Key don't match") for k,...
[ "anujna.p.rao@gmail.com" ]
anujna.p.rao@gmail.com
c9638f69e003e3ca5295542b355296380dba5ac6
1ddff626efb405aeab4ec4bc2296154d43a59627
/get_data.py
b473a0ea4c22337c19d2f40a11d1954dfc5a12bd
[]
no_license
morgan222/trading_bot_fun
cc4493f162fc968cbc788281efa1c668787a3dda
829cbb2e3b84841fba78dd8eff348203fee9ccf9
refs/heads/master
2021-01-12T11:22:06.335964
2017-05-17T04:13:07
2017-05-17T04:13:07
72,903,499
1
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
""" Author: M Wood The purpose of this module is to download data from yahoo finance for machine learning applications pandas_datareader is very good at downloading table of stock price terent data needed to implement own class extension to get good quote data - yahoo quote """ import pandas as pd imp...
[ "morgan.wood30@gmail.com" ]
morgan.wood30@gmail.com
cb8b5b0617c9db4aef66e16cb81ce5a3fcd33305
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_29358.py
0321469737aa07d31d022e05273ebf1901e76801
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
# Python coveralls not testing "if name == __main__" if __name__
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
eb239ea05111f45f7895638f522781c0099a3208
d9b2d83e3050e9a6e0b5c9307579cdd6bff5d079
/pepipost/decorators.py
0c8bc764aba518c9a93439afdf700dcd2c4cc267
[ "MIT" ]
permissive
pepipost/pepipost-sdk-python
2d8cddd9a46e79dc4d31f8fe8269740cb0bec348
6e3ac051c5156ea9f9ee46209436675bf78e72ae
refs/heads/master
2023-05-25T05:20:16.100053
2020-09-02T11:58:06
2020-09-02T11:58:06
56,518,373
7
3
MIT
2020-04-04T05:07:41
2016-04-18T15:13:06
Python
UTF-8
Python
false
false
509
py
# -*- coding: utf-8 -*- """ pepipost This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). """ class lazy_property(object): """A decorator class for lazy instantiation.""" def __init__(self, fget): self.fget = fget self.func_name = fget.__name...
[ "snipperbytes@gmail.com" ]
snipperbytes@gmail.com
126d0e9088aaa1fee514e75d4029b408bce6ffd6
0e7a4a6926dc83b0ae415a2a9430c3e5274c8602
/my_modules/my_table.py
24f1005d0437b59515b91776b7c9e6d9413adc12
[]
no_license
madmadcat/QtCookBook_Demo
9b0b3fb36c0786b186e42ad83a78ccdb31e2f002
8287964874fd9cafe5024118a2611af226e936d3
refs/heads/master
2023-02-27T11:59:44.736598
2021-02-05T13:03:56
2021-02-05T13:03:56
325,999,001
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
import sys from PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QLabel, QHeaderView from PyQt5.QtWidgets import QAbstractItemView, QTableWidget, QTableWidgetItem d = [['a', 'b', 'c', 'd'], ['a1', 23, 66, 78.9], ['a2', 343, 54, 56]] class MyTable(QWidget): def __init__(self, row=1, col=1, hea...
[ "xdong@wandtec.com" ]
xdong@wandtec.com
b8ac2843fb89853745a7f93dbe72c3393a114360
429b8a9fadc7874c4be217802b7af9ac2db7b95f
/yahoo_placemaker/geoplanet.py
3849a612d5794232e17966b1d1084471b7eb96ef
[]
no_license
lraucy/newsBoard
3ec904fb3e6971724bd6f4d11e5ba9e5a11153a9
23565a36425ba911f67f960193705ea3cd8baf85
refs/heads/master
2021-01-01T05:59:51.483954
2011-07-07T03:31:05
2011-09-13T07:30:48
1,701,641
0
0
null
null
null
null
UTF-8
Python
false
false
11,581
py
# When using ElementTree to parse the XML returned by the API, # each tag is prefixed by the schema URL. We need to use this # prefix when finding tags in the document. TAG_PREFIX = '{http://where.yahooapis.com/v1/schema.rng}' # API Key to be able tu use Yahoo PlaceMaker API_KEY = '3hgLZdrV34E4RaJ_HZQPov0IGkLCJ6QWSv8PN...
[ "florian.thorey@ŋmail.com" ]
florian.thorey@ŋmail.com
bfd894e1a71fe2870889a9318467e36db864ee6d
0a68283b55076b6265fd8b73ca87ff5f4e4d5e2f
/testchild.py
fd5420835b743a0cccdb3cb427dc7f8df7a63969
[]
no_license
shaqs5/IBMDS
ca618542cb084a8acf2e7f59f3d1604b74c567de
ab1ad4a97adb39a6f69f0d6002f92c34193c970a
refs/heads/main
2023-04-25T10:52:07.883009
2021-05-12T09:31:07
2021-05-12T09:31:07
366,652,313
0
0
null
2021-05-12T09:31:08
2021-05-12T08:53:44
Python
UTF-8
Python
false
false
66
py
#This is a child branch file print("This is a child branch file")
[ "noreply@github.com" ]
noreply@github.com
af1e0e907003daee44da973d60285a37d8a35005
877d8ba5e213f3bf28543c1d31fcd585970fb71b
/Python programming homework/lesson 1/pi.py
c86252a9d8020dc30559fb79cb5f58feb1275b50
[]
no_license
YiMengLei/Hello-Github
106ca4d5c9f129c3521ed5e1f099e902b6994ee4
2cac79f82eaa8089389c771d9dfa28bda8775ba7
refs/heads/master
2021-01-19T11:02:14.741197
2014-10-26T13:35:25
2014-10-26T13:35:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
298
py
from random import random from math import sort from time import clock DARTS=1000 hits=0.0 clock() for i in range(1,DARTS) x,y=random(),random() dist=sqrt(x ** 2+y**2) f diet <=1.0 hits = hits +1 i = 4*(hits/DARTS) print"pi is %s" % (pi) print"running time is %-5.5ss" %clock()
[ "zhaowenyi94@gmail.com" ]
zhaowenyi94@gmail.com
0b2429b09b8241cec191f1aa8570c9f58ffc540d
bf63403c5a016c70f0045b586fc30f5d0132a429
/hello.py
342f2ebfb421c5ca36b45e9403e7072c1b799bb7
[]
no_license
odysseyhack/apg-rescue-rangers-engine
f72aa9e14b01d61a9dcb2014616cdfdc6789c2bd
9c1c682934d7f52b950dd2e5c018dd95cbba2cac
refs/heads/master
2020-05-05T02:56:56.960928
2019-04-14T08:58:08
2019-04-14T08:58:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
105
py
# -*- coding: utf-8 -*- """ Created on Sat Apr 13 15:11:22 2019 @author: vegac """ print("hello world")
[ "vegacyrez@gmail.com" ]
vegacyrez@gmail.com
5fb8b2e6dd69ef1453ce691638668749ee32b12b
29e1133741b339c2e6c4c0385a103f68baa32a11
/findata/gbif/gbif.py
94ef7024bcdaf8ce800a3eefbe841ba0e9df5a59
[]
no_license
Gscsd8527/AllProject
b406935dd1e969d1f45a62f870fb409f81ba4200
10b56c432b6f433e3a37967b7c717840e726765c
refs/heads/master
2023-02-21T20:25:48.397668
2022-03-04T14:01:27
2022-03-04T14:01:27
199,461,253
13
6
null
2023-02-15T20:47:23
2019-07-29T13:45:25
Python
UTF-8
Python
false
false
1,903
py
import requests from concurrent.futures import ThreadPoolExecutor, as_completed import json import pymongo from loguru import logger myclient = pymongo.MongoClient('mongodb://*********:27017/') mydb = myclient['dataset'] # 数据库 mycol = mydb['gbif'] # 表 class Gbif: def __init__(self): self...
[ "tan_gscsd@163.com" ]
tan_gscsd@163.com
02c5cf065807157ac9bf0890e5eac77fec715c55
1b644084dac77300464cf5c01991903dae69092a
/nccu_project/lib/python3.5/site-packages/winappdbg/win32/psapi.py
3de3e7e0bbdf0df3ef0cee80f1d906e0c9f1794f
[]
no_license
TrellixVulnTeam/nccu-project_A0CV
a168e1ddd88f4ded6cb5efc28d3d5857541ce181
9eed933fbafce6afafc87428ee1627f838aba2f6
refs/heads/master
2023-03-15T14:39:52.290685
2018-03-04T12:31:02
2018-03-04T12:31:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
14,159
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2009-2014, Mario Vilas # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain ...
[ "zen@luwenfang.local" ]
zen@luwenfang.local
1f7fbc51bcea2d378e039204360999473b3af1bc
edf7c151bc34c5541ce55a5c7fe8085b97db4d00
/2012/AG_Alex.py
613c6804605ea1f329b865ec24a8ddf6ed18a0e4
[ "MIT" ]
permissive
dleblond312/IEEEXtreme_WorkingAsIntended
057764ed9fdc45b4472bd560723e72f7b1248719
c3e04633ce6d9c1a1582081767e8f2090adffa28
refs/heads/master
2022-01-29T14:23:34.543100
2016-05-03T22:56:41
2016-05-03T22:56:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
import sys from fractions import Fraction, gcd str_input = sys.stdin.readline().strip().split() jug1_capacity = min(int(str_input[1]), int(str_input[0])) jug2_capacity = max(int(str_input[1]), int(str_input[0])) target_volume = int(str_input[2]) jug1_frac = Fraction(jug1_capacity, 1) jug2_frac = Fraction(jug2_capacit...
[ "d_leblond@live.com" ]
d_leblond@live.com
e81f904c2929da481e92d10da2d58f4d7c79249c
6ef9e3b0f8315c186f35156e79b356f7335ecd3c
/venv/bin/jp.py
d60fd61658f7a80d5e63c658b5068e9393630577
[]
no_license
michi88/zappa-poc
c015eea850dc327b55dbc63899cf6e7dfc98368a
b1166e420c1aed987830f0ab50f050bb7ab81997
refs/heads/master
2021-01-11T20:34:03.784271
2017-01-16T11:41:05
2017-01-16T11:41:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,687
py
#!/var/task/venv/bin/python2.7 import sys import json import argparse from pprint import pformat import jmespath from jmespath import exceptions def main(): parser = argparse.ArgumentParser() parser.add_argument('expression') parser.add_argument('-f', '--filename', help=('The fil...
[ "gareth@deckchair.com" ]
gareth@deckchair.com
b8732654492ceef372cc4e82ca927642071ce0f8
47ec91bedb4ca9d69bf288fd25484b08e013a8ac
/themylog/config/processors.py
ade5bc4eb60a7c781f37f1697dc4a98080629c66
[]
no_license
themylogin/themylog
23d1238866240d168cf3ce828bbb85d38276a226
d4de99f08f066972a06c1463a1e2440a56513bfa
refs/heads/master
2020-04-15T17:29:36.318428
2016-04-17T14:53:14
2016-04-17T14:53:14
14,795,831
1
0
null
null
null
null
UTF-8
Python
false
false
626
py
# -*- coding=utf-8 -*- from __future__ import absolute_import, division, unicode_literals from collections import namedtuple import sys from themylog.config.scripts import find_scripts Processor = namedtuple("Processor", ["name", "process"]) def get_processors(config): processors = [] directory = config.ge...
[ "themylogin@gmail.com" ]
themylogin@gmail.com
e9bacb59789507531c133b57b1c69f4adcf0a42e
dc6cad4048c512c333d2158b275c32fe4da0ab66
/NewsCollector/common.py
2c294cbefef818216193999e56b5eaa9ef0db537
[]
no_license
vinod-designer1/hackernewsclone
d110e4d3eb3bfc3892c654780a7e7dafbc77bfb1
94da574bb86f4764624d1d2f261fd54378f642ee
refs/heads/master
2020-05-24T15:33:44.099772
2015-08-03T05:21:48
2015-08-03T05:21:48
39,960,899
0
0
null
null
null
null
UTF-8
Python
false
false
173
py
from .models import HackerNewsArticles def get_articles(limit): articles = HackerNewsArticles.objects.order_by("-modified_date", "article_rank")[:limit] return articles
[ "vinod.designer1@gmail.com" ]
vinod.designer1@gmail.com
eb28e0f54441e884f4107a7771de1bbcac4b2f24
3b60e6f4bbc011003ac4929f01eb7409918deb79
/Analysis_v1/Simulation/Pythia/Unparticles/CP2UnparticlesPythia8fragments-2018PSWeights/UnparToGG_Spin2_du1p1_LambdaU-2000_pT70_M2000_TuneCP2_13TeV_pythia8_cfi.py
f5943fddccc2bb59b36b498dd9eadffdd636bb94
[]
no_license
uzzielperez/Analyses
d1a64a4e8730325c94e2bc8461544837be8a179d
1d66fa94763d7847011ea551ee872936c4c401be
refs/heads/master
2023-02-09T04:54:01.854209
2020-09-07T14:57:54
2020-09-07T14:57:54
120,850,137
0
0
null
2020-06-17T16:48:16
2018-02-09T03:14:04
C++
UTF-8
Python
false
false
1,586
py
import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.MCTunes2017.PythiaCP2Settings_cfi import * from Configuration.Generator.PSweightsPythia.PythiaPSweightsSettings_cfi import * generator = cms.EDFilter("Pythia8GeneratorFilter", maxE...
[ "uzzie.perez@cern.ch" ]
uzzie.perez@cern.ch
8b1e06d8b64c9602e0fb79db1eb29f4d9715010e
23a0d695d8b14c11944a8206cb8e3d2371b240c9
/infytqsal.py
78bf6def6e1518c94f4f9442677c2e482b04b167
[]
no_license
Jyothsna99/Problem-Solving
11d074927451585bb6fbf559026202a3378e97d4
3851cd0fa3b4f8f6f76cf37e3702b9edb79f0847
refs/heads/master
2020-12-14T12:50:07.533852
2020-05-30T15:30:54
2020-05-30T15:30:54
234,748,998
0
0
null
null
null
null
UTF-8
Python
false
false
217
py
jl=int(input("Enter job level")) sal=int(input("Enter current salary")) if jl==3: print(sal+(sal*15/100)) elif jl==4: print(sal+(sal*7/100)) elif jl==5: print(sal+(sal*5/100)) else: print(sal)
[ "noreply@github.com" ]
noreply@github.com
1aa5f30f75d756e2d60d09e99a08e0c7a06a8549
cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc
/Python Books/Athena/training/exercises/exercises/software_craftsmanship/code_check/code_check_solution.py
503dc3833b752d73aa4ecca182f07f0d07cda69b
[]
no_license
theGreenJedi/Path
df24fca355590efef0c6cb5c52e7216c6b5d2464
b5ed2805dbb046480929e49e550bfd8af5bb4d6f
refs/heads/master
2023-07-27T14:23:37.694546
2021-07-16T01:38:55
2021-07-16T01:38:55
87,686,563
8
2
null
2023-07-11T22:49:03
2017-04-09T05:57:30
Jupyter Notebook
UTF-8
Python
false
false
1,073
py
""" Code Check ---------- This code has an assortment of bugs, and its style doesn't conform to PEP-8. Use pyflakes and pep8 to find and fix the code. You may have to install pep8 with the command: $ easy_install pep8 It might take a few iterations before pyflakes doesn't complain about something. """ from math i...
[ "GreenJedi@protonmail.com" ]
GreenJedi@protonmail.com
a727ae60692c2636d6abd360bd56330c24e06fee
df2cbe914f463ad050d7ed26194424afbe3a0a52
/addons/hr_maintenance/models/res_users.py
c97a2bb60b15c15017414adf202109752bb76078
[ "Apache-2.0" ]
permissive
SHIVJITH/Odoo_Machine_Test
019ed339e995be980606a2d87a63312ddc18e706
310497a9872db7844b521e6dab5f7a9f61d365a4
refs/heads/main
2023-07-16T16:23:14.300656
2021-08-29T11:48:36
2021-08-29T11:48:36
401,010,175
0
0
Apache-2.0
2021-08-29T10:13:58
2021-08-29T10:13:58
null
UTF-8
Python
false
false
1,195
py
from odoo import api, models, fields class Users(models.Model): _inherit = 'res.users' equipment_ids = fields.One2many('maintenance.equipment', 'owner_user_id', string="Managed Equipments") equipment_count = fields.Integer(related='employee_id.equipment_count', string="Assigned Equipments") def __in...
[ "36736117+SHIVJITH@users.noreply.github.com" ]
36736117+SHIVJITH@users.noreply.github.com
b357f1c039d8701ca50f0dcb03246c1861ee3fd1
3b059a1f99aad35b8e2341dd3ac3ced37aa63c0e
/learnwithme/main/views.py
c6cc15d960414a64f89613405f866376d953fbb0
[]
no_license
oluwakayode-a/100-Days-of-JS-WebApp
36b9656c55779ce3b241610b51aa0665a237e8f5
e00eb205b3367cf99741bd3401bd995daba0f013
refs/heads/master
2020-07-11T20:39:22.161157
2019-08-27T07:03:06
2019-08-27T07:03:06
204,640,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,657
py
from django.shortcuts import render, reverse from .models import Category, Article, Comment, ReplyComment from .forms import CommentForm from django.http import HttpResponseRedirect # Create your views here. def index(request): newest = Article.objects.latest() last_three = Article.objects.order_by("-id")[:3] ...
[ "khaox07@gmail.com" ]
khaox07@gmail.com
b468fef31d7ffeecf4e62fffa2087babe4110bab
596e3fe59f748fec5dbb9d20aa63269bcca01470
/mathe.py
cd9bfa8650c4229c1cf0476e6b78eacf3aafe512
[]
no_license
pavibala24/python-programs
be5a883030a3e0b1045432a2dff66c8f563d24a5
1b5fdb02a48d610538b92c29b20343424ebea293
refs/heads/master
2021-04-06T19:34:10.923814
2019-09-16T06:53:07
2019-09-16T06:53:07
124,640,664
0
0
null
null
null
null
UTF-8
Python
false
false
38
py
a =input() b = a pavi = b print(pavi)
[ "noreply@github.com" ]
noreply@github.com
8aa5ecca68340cd50012898952cf72b3f349e83d
4c5608f20fa2580774d734d94198dd10648e4339
/src/vpp-api/vapi/vapi_json_parser.py
a9d2c8186bc30c2e9985c89375e1e97426ff3a7d
[ "Apache-2.0" ]
permissive
mojtaba-eshghie/VPP-In-Situ-IOAM
3d1c3d01752a7934d2f060326674280e0bd93413
efebd91195eb1b0d98a4a1f5efd962ae79c77be6
refs/heads/master
2022-12-10T13:37:04.644952
2020-05-29T11:42:36
2020-05-29T11:42:36
194,249,816
2
0
Apache-2.0
2022-12-08T05:17:31
2019-06-28T09:50:05
C
UTF-8
Python
false
false
18,764
py
#!/usr/bin/env python2 import json class ParseError (Exception): pass magic_prefix = "vl_api_" magic_suffix = "_t" def remove_magic(what): if what.startswith(magic_prefix) and what.endswith(magic_suffix): return what[len(magic_prefix): - len(magic_suffix)] return what class Field(object): ...
[ "mojtaba.eshghi@ut.ac.ir" ]
mojtaba.eshghi@ut.ac.ir
be5a655d201970467774c29b5b2602aedbd9b6d5
f20d3c136e8f54b51e47c8e9e434695ec646bd57
/manage.py
a220ba9f64d5afc44ff9b742964c2b7c6d90b494
[]
no_license
manaz-711/bcardre
e2f0433dcb5bc4af4241354e0e4844180136e774
3fd93c32b5518bf658aa1a938f994fee01931ebe
refs/heads/master
2020-09-14T15:42:52.621978
2019-11-21T13:05:34
2019-11-21T13:05:34
223,173,013
0
0
null
null
null
null
UTF-8
Python
false
false
625
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bcard.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportEr...
[ "brocrop@hotmail.com" ]
brocrop@hotmail.com
babb204bf0dac48451e7f925fa913669de1ae0dc
1a80f3d86df7b6700924d08bb356742d17019acb
/basic/list2.py
764b47e79067e121fef7d3d0f1ceb9035373a639
[ "Apache-2.0" ]
permissive
vwon23/google-python
7968e41bcc4555b28f32ec2d44e90c56057823b0
beb5e8a368a711cabe4347a3aedfdf4b9a3052d3
refs/heads/master
2021-01-21T09:34:40.541109
2017-07-14T06:30:32
2017-07-14T06:30:32
91,659,540
0
0
null
2017-07-14T06:30:33
2017-05-18T06:55:54
HTML
UTF-8
Python
false
false
2,579
py
#!/usr/bin/python -tt # Copyright 2010 Google Inc. # Licensed under the Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # Google's Python Class # http://code.google.com/edu/languages/google-python-class/ # Additional basic list exercises # D. Given a list of numbers, return a list where # al...
[ "vwon87@gmail.com" ]
vwon87@gmail.com
ee44bd9403d965734f8cccd64c37a5995b76953c
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-1/89d09bae21e22374af7fcaf39c189233621e7ed2-<main>-fix.py
fadbbe0da4b2f852c816a0aebf9ae4773b9e8aa0
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,267
py
def main(): argument_spec = ec2_argument_spec() argument_spec.update(dict(name=dict(), group_id=dict(), description=dict(), vpc_id=dict(), rules=dict(type='list'), rules_egress=dict(type='list'), state=dict(default='present', type='str', choices=['present', 'absent']), purge_rules=dict(default=True, required=...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
aa88d237f82efd69dcad3acdefee375604dc43d1
594555ce60da5dd32e34b87ea48f0731e19adc9d
/models/DeformableConvNets/rfcn/config/config.py
1d92e26d8c13935504bc06b43e6750fa49331915
[ "MIT" ]
permissive
i-pan/kaggle-rsna18
97a4a016183ae19a3690f0c89454339fdfdaf2a9
2db498fe99615d935aa676f04847d0c562fd8e46
refs/heads/master
2022-02-09T16:39:53.996841
2021-12-23T23:49:23
2021-12-23T23:49:23
156,621,490
227
72
MIT
2021-12-23T23:49:45
2018-11-07T23:21:51
Python
UTF-8
Python
false
false
6,246
py
# -------------------------------------------------------- # Deformable Convolutional Networks # Copyright (c) 2017 Microsoft # Licensed under The MIT License [see LICENSE for details] # Modified by Yuwen Xiong, Bin Xiao # -------------------------------------------------------- # Based on: # MX-RCNN # Copyright (c) 20...
[ "rih3dlab@rih3dlab-deeplearner.lsmaster.lifespan.org" ]
rih3dlab@rih3dlab-deeplearner.lsmaster.lifespan.org
a7724a3eef4ea1bceec6291f91cc892f3a8a7dd1
9a70f8df74f02f175bd95148b098771f8d426edb
/sprites.py
b4245a3e51aa5e55cd573523d7d5936f283b8f9f
[]
no_license
omersk/AgarioPython
e003a11dea4651bf380fa3a9e77ce5e25b08ec28
685e9cc4beca6de9798108fd4772ef748d25cc0f
refs/heads/master
2020-05-03T17:24:23.894304
2019-03-31T21:27:00
2019-03-31T21:27:00
178,743,314
0
0
null
null
null
null
UTF-8
Python
false
false
7,531
py
import pygame as pg from settings import * import random import socket my_socket = socket.socket() my_socket.connect(('127.0.0.1', 23)) my_virus_socket = socket.socket() my_virus_socket.connect(('127.0.0.1', 24)) vec = pg.math.Vector2 class Player(pg.sprite.Sprite): def __init__(self, colour): pg.sprite....
[ "omersk@walla.co.il" ]
omersk@walla.co.il
f38c0d76548536265bd98571f0d5237ceb66e8b7
9d57e9d7f8c33811c97cfa39ec07bf005e33a5fd
/BDTB.py
a5f513640076a27044f34f9f75bf8a82c275e339
[]
no_license
liujianpc/pythonScript
9da5091e34d6fe6d77fb847a254bd12e7d09fbe7
0bd3206836966f82963c81943c44c82beb94e092
refs/heads/master
2021-01-10T08:45:05.882688
2016-04-07T07:15:35
2016-04-07T07:15:35
49,314,595
0
0
null
null
null
null
UTF-8
Python
false
false
1,348
py
#! /usr/bin/env python #coding=utf-8 import urllib import urllib2 import re import os import sys reload(sys) sys.setdefaultencoding('utf-8') class BDTB: def __init__(self): self.url = "http://tieba.baidu.com/p/2884111109?see_lz=1&pn=" self.pageIndex = 1 self.headers = {"User-Agent":"Mozzila...
[ "695966004@qq.com" ]
695966004@qq.com
c0e7ca6c23d2cfd041c3e1d5663ef9724bd3af54
d2059136d8d358fe26363c7164a03ddf45028cc2
/HR_StringUpdate.py
da4283f4f998dfffd0b36e8caed49702414297d2
[]
no_license
SharmaSwapnil/Py_Stats_Scripts
9a8866cb7ccdbf81b897f5d8cd436ebefb84ce39
024856da7b3148ebc3494a94288c116583da15f6
refs/heads/main
2023-08-17T16:44:53.217386
2023-08-13T10:21:46
2023-08-13T10:21:46
301,312,157
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
def count_substring(string, sub_string): counter = [] for i in range(len(string)): ss = string.count(sub_string,i,i+len(sub_string)) counter.append(ss) return sum(counter) if __name__ == '__main__': string = input("Enter string ").strip() sub_string = input("Enter substring ").strip() count...
[ "sharma.swapnil1981@gmail.com" ]
sharma.swapnil1981@gmail.com
e5f2f94778e5364a8c9c19af7062bf8a1f7f02e9
2734b77a68f6d7e22e8b823418ad1c59fe1a34af
/opengever/workspaceclient/tests/test_keys.py
96b2015989f56a8230f5fa71a7c7b1f05fd50952
[]
no_license
4teamwork/opengever.core
5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1
a01bec6c00d203c21a1b0449f8d489d0033c02b7
refs/heads/master
2023-08-30T23:11:27.914905
2023-08-25T14:27:15
2023-08-25T14:27:15
9,788,097
19
8
null
2023-09-14T13:28:56
2013-05-01T08:28:16
Python
UTF-8
Python
false
false
2,895
py
from contextlib import contextmanager from ftw.builder import Builder from ftw.builder import create from opengever.testing import IntegrationTestCase from opengever.workspaceclient.exceptions import ServiceKeyMissing from opengever.workspaceclient.keys import key_registry from plone.restapi.serializer.converters impor...
[ "e.schmutz@4teamwork.ch" ]
e.schmutz@4teamwork.ch
5df04cee51eddcc304743170fa8a93b6d910b734
22d336c2fc5c915fe1a55a154fa3ddb98e5c8bfb
/chat/views.py
da821be9400cbd26fecaebab7e02f23b20851983
[ "MIT" ]
permissive
cpwr/django-channels-chat
223fd3ba0529329d5c26c864933dd54ba53de165
314382ec40d941de5c73b8dcd9325250cfe69c40
refs/heads/master
2022-12-17T22:40:01.529711
2021-06-22T07:19:59
2021-06-22T07:19:59
146,921,040
0
0
MIT
2022-12-08T02:51:39
2018-08-31T17:08:28
JavaScript
UTF-8
Python
false
false
486
py
from django.shortcuts import render from django.contrib.auth.decorators import login_required from .models import Room @login_required def index(request): """ Root page view. This is essentially a single-page app, if you ignore the login and admin parts. """ # Get a list of rooms, ordered alphabe...
[ "k.degtyarenko@gmail.com" ]
k.degtyarenko@gmail.com
6931dfa467a612803d08712bc448494e6463fa49
b30460624427236c941364903677880b266dcb7b
/Laptop - testy/TestingInterface/venv/Lib/site-packages/pygments/lexers/basic.py
f93d6d52e98d2c00f6eea91f8deddd51f3ca28cd
[]
no_license
szubertpiotrek/autonomous-underwater-vehicle
7ff417ce9830e2f0f753065de45b59892ff45bfe
8cbbb72bd4eae2b00e61353ebc9335ff45fd1006
refs/heads/master
2022-11-05T18:42:32.468706
2019-10-03T13:17:57
2019-10-03T13:17:57
156,117,145
4
10
null
2022-11-01T23:05:10
2018-11-04T19:30:29
Python
UTF-8
Python
false
false
27,576
py
# -*- coding: utf-8 -*- """ pygments.lexers.basic ~~~~~~~~~~~~~~~~~~~~~ Lexers for BASIC like languages (other than VB.net). :copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re from pygments.lexer import RegexLexer, bygroups, d...
[ "wincioor11@gmail.com" ]
wincioor11@gmail.com
cb59df41a4ca0485d513e51c8ad33c51044993a2
8ea493afdbb52f57a4d00c1b321a194cb3c152fd
/models.py
ebca55d037b8864b12e81e77622019a32d327fd7
[]
no_license
4ashma/access_token_and_smtp
9c82fce4b6d7fe184f36add4fada9e46bb2eb36c
9a7d58239f96a6dbe7ed14c02426c1f0ca370a50
refs/heads/main
2023-08-24T22:20:30.902867
2021-10-08T08:48:25
2021-10-08T08:48:25
414,911,996
2
0
null
null
null
null
UTF-8
Python
false
false
269
py
import peewee as pw db = pw.SqliteDatabase('db.db') class BaseModel(pw.Model): class Meta: database = db class User(BaseModel): id = pw.AutoField() username = pw.CharField() password = pw.CharField() if __name__ == '__main__': User.create_table()
[ "90089788+4ashma@users.noreply.github.com" ]
90089788+4ashma@users.noreply.github.com
456984c1286879f23fa54b82e508d8fe88564d33
502e7601f1e7778515a779f3806e52ed30262358
/test/test_http_response.py
3a1aad7d4c838aba3d3e4338e8f2be2b59d1ba77
[]
no_license
erakli/py-mountebank-api
92da3994df7d02dd335db591520e26b8ab8b8e2d
2f9068d9c41c9d35193adfa7724cfa0b17394137
refs/heads/master
2023-07-26T22:40:13.316622
2021-09-09T19:46:19
2021-09-09T19:46:19
404,849,780
0
0
null
null
null
null
UTF-8
Python
false
false
1,213
py
import unittest import datetime import mountebank_api from mountebank_api.models.http_response import HttpResponse # noqa: E501 from mountebank_api.rest import ApiException class TestHttpResponse(unittest.TestCase): """HttpResponse unit test stubs""" def setUp(self): pass def tearDown(self): ...
[ "erakli00@gmail.com" ]
erakli00@gmail.com
f9088ce9991630319ce3e06048993fffc656dcbe
7f53e23f27fc0677bedca891f05d3fa4093dea20
/ui/matlist_window.py
f4bf561fe42fd4032d3d14a83ae2cf330fc4dea3
[]
no_license
lxj616/rebrickr
83aac97bb21a612ae78af6995be33c4ef4e212d8
fdef683f8909fd20f63eb3c4c3b5cd1fae15a75b
refs/heads/master
2020-03-21T07:21:04.957352
2018-06-15T13:44:31
2018-06-15T13:44:31
138,275,381
3
0
null
2018-06-22T08:17:07
2018-06-22T08:17:06
null
UTF-8
Python
false
false
3,011
py
""" Copyright (C) 2017 Bricks Brought to Life http://bblanimation.com/ chris@bblanimation.com Created by Christopher Gearhart This program 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 versi...
[ "cgear13@gmail.com" ]
cgear13@gmail.com
b7c8815addfc2879d9e0824948189a949ea94f8a
ec07b553eec20d7439c6d212bf40c1e624cf6eae
/Generate.py
7229c1cad2dc3b881f1caa29e40a7da28118df68
[]
no_license
therob3000/Bitduino
554debc4e337f4cfc16700503d0739c1c170f576
7d84d84083d504f145bc021f315928d26ae59d71
refs/heads/master
2021-01-15T11:02:03.615657
2014-12-27T03:59:06
2014-12-27T03:59:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,187
py
import hashlib import base58 import serial import qrcode import ecdsa import ecdsa.der import ecdsa.util port = raw_input("Please enter port Arduino is connected to: ") ser = serial.Serial(port, 9600) start = ser.readline() hexstart = "80" + start[0:64] bytehex = str(bytearray.fromhex(hexstart)) hash1 = hashlib.sha256(...
[ "jujugoboom@gmail.com" ]
jujugoboom@gmail.com
d81bbcbf119f2b7ef417374b28e12451e21d352d
f67a764fbe28db7c777f4c5cc058c2668ffec220
/fer_test.py
5f977df060a665ff572aa49ea65f0cf270438472
[]
no_license
lgf19951020/fer2013
3b49e200743a72e30bd612aa60520ed9e1a46999
f2254c76724aec0d315959514b7397ac6c1f0921
refs/heads/master
2022-04-09T19:22:26.642816
2020-03-27T05:00:08
2020-03-27T05:00:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,174
py
# coding:utf-8 import time import tensorflow as tf import fer_forward import fer_backward import fer_generateds import numpy as np import fer_config as config TEST_INTERVAL_SECS = 5 TEST_NUM = 3589 def test(): # 实例化一个数据流图并作为整个 tensorflow 运行环境的默认图 with tf.Graph().as_default() as g: # 输入x占位 x =...
[ "1981293730@qq.com" ]
1981293730@qq.com
b9b2639c8445a515e7ae7021c75a6d321a581794
949a9dfdbea2644c80b691670833f85bb3d4bd57
/api/views.py
fb61ad56b894a137a8eb50522617188c6ac9d30c
[]
no_license
dzanto/api_final_yatube
da16727518a431277d33d328c4f7dbf90adca532
17653303a11155ef7cd010a5edf249472ad92dec
refs/heads/master
2022-12-17T23:09:35.921880
2020-09-15T11:27:12
2020-09-15T11:27:12
294,035,087
0
0
null
null
null
null
UTF-8
Python
false
false
1,660
py
from rest_framework import viewsets, filters, generics from api.models import Post, Comment, Group, Follow from api.serializers import PostSerializer, CommentSerializer, GroupSerializer, FollowSerializer from api.permissions import OwnResourcePermission, OwnFollowerPermission from rest_framework.permissions import IsAu...
[ "dzanto@gmail.com" ]
dzanto@gmail.com
8d674a2d7702a626d6af0f9defec8feca2e71e00
8c03fc76623b137755eab648b0be733e243be395
/projects/employee_management_system/employee/migrations/0001_initial.py
b78a16dba7ca73483a7d16dd1c3a56aa4efa0db1
[]
no_license
rasrivas-redhat/django_web
c5070c3cc3ce75d98026bb0d4ec3aef90ace2af6
a99d92d207ddcea05ed311c49965b10e389c6e7e
refs/heads/master
2020-07-25T11:36:11.952993
2019-09-21T17:03:51
2019-09-21T17:03:51
208,274,941
0
0
null
null
null
null
UTF-8
Python
false
false
898
py
# Generated by Django 2.2.2 on 2019-09-15 10:09 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "rasrivas@localhost.localdomain" ]
rasrivas@localhost.localdomain
aae418b09e020cce81700285920c343230390a3b
b4ee252a6dac4e099904eb88af7efaa11c162747
/visual_search/extractor.py
fa1c72496a48276d4ee7871eec3b66f2c248f665
[ "MIT" ]
permissive
andyhx/match_face
9bfa59b4ca1f160ad4939812eb946f61e86746ca
1cbc2e8f9dcaa6ab9e7a8382fcb72e16a7a73bf2
refs/heads/master
2021-01-21T09:10:55.193163
2017-07-03T08:02:27
2017-07-03T08:02:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,668
py
import _init_paths #from model.test import extract_regions_and_feats \ # as _extract_regions_and_feats #from model.test import extract_imfea \ # as _extract_imfea from math import ceil import numpy as np import cv2 from lib.utils.im_util import read_img_base64 from mtcnn.MtcnnDetector import FaceDetector_mt impor...
[ "yandaweixx@163.com" ]
yandaweixx@163.com
dd4d9944610013962b9b50ff0fe307e884256979
41798e6fa74df1d514dfd6504090c6a434d0d132
/projects/migrations/0002_alter_project_image.py
4f9613d176399e57322b4229d44b6f191b545b38
[]
no_license
danyeric123/Django-Portfolio-Blog
45f1f71f1e3415aba0657b6c364dc4589e3e34fd
03d62ece669ad68656e5b17e8080ce2594e35892
refs/heads/main
2023-07-10T17:11:27.924925
2021-07-29T20:43:43
2021-07-29T20:43:43
389,402,338
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
# Generated by Django 3.2.5 on 2021-07-04 21:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('projects', '0001_initial'), ] operations = [ migrations.AlterField( model_name='project', name='image', ...
[ "dnagarpowers@gmail.com" ]
dnagarpowers@gmail.com
346791581fa50a83b1320ea547c19c0532d12c33
6858498dfc5ba42d82c6a9fd207cbec0ec883ec1
/assign02/irdc/forms.py
805cbafdca42ca1dd8cfeba4b11e5a5303dcb6c5
[]
no_license
NethraGunti/IR-System-Using-Distributed-Approaches
fceeda593607c50b00324762fdc19b2c0833cd34
33f970c3eb1cf5ea9c88ae2303f044a9dc0bfc52
refs/heads/master
2023-04-05T08:43:23.112135
2021-04-02T21:00:32
2021-04-02T21:00:32
354,115,560
0
0
null
null
null
null
UTF-8
Python
false
false
357
py
from django import forms class SearchForm(forms.Form): query = forms.CharField( max_length=500, required=True, widget=forms.TextInput( attrs={ 'class' : 'form-control form-control-lg', 'type' : 'search', 'placeholder' : 'enter your...
[ "nethrag16@gmail.com" ]
nethrag16@gmail.com
ad88327c3d4b22599fb8b4335abf6a8704d99051
f0692218ea1790529adb0aa41b262c31f8eae397
/hisi-idt.py
fd13cda65765cb5661a9f168b1319f81da9e73ee
[]
no_license
jorneytu/hikey
03916e5b4e91485c042e081637c9c85abbacfbaa
7555d4480c1c3963e677d99f4021580f15bc180f
refs/heads/master
2021-01-22T07:03:13.071902
2017-02-13T08:34:07
2017-02-13T08:34:07
81,799,024
0
0
null
null
null
null
UTF-8
Python
false
false
8,950
py
#!/usr/bin/python #-*- coding: utf-8 -*- import os import os.path import serial, time import array import sys, getopt class bootdownload(object): ''' Hisilicon boot downloader >>> downloader = bootdownload() >>> downloader.download(filename) ''' # crctab calculated by Mark G. Mendel, Networ...
[ "qtu@ambarella.com" ]
qtu@ambarella.com
60668b4bc88e31cefeb2bd979e266940ce52a693
b396b6fba005b2384cbe0473ed6d725216352f10
/test.py
bdabed0656e8ee1e6a7ac13c7fb5d590e0d9ca66
[ "WTFPL" ]
permissive
Badjeck/boids
53e6f9bc64e60f907dc886f0f8691d8836916a35
2ee3d539ff66fbb8589c09c5345b5d43cb9d729e
refs/heads/master
2022-12-10T23:43:34.974142
2020-09-04T08:47:24
2020-09-04T08:47:24
292,523,452
0
0
null
null
null
null
UTF-8
Python
false
false
5,141
py
import sys import pygame import random import math SCREEN_SIZE = SCREEN_WIDTH, SCREEN_HEIGHT = 1800, 1000 BLACK = (0, 0, 0) MAX_VELOCITY = 10 NUM_BOIDS = 50 BORDER = 25 class Prey(pygame.sprite.Sprite): def __init__(self, x, y): super(Prey, self).__init__() self.image = pygame.image.load("im...
[ "gabriel.fougerolle@ynov.com" ]
gabriel.fougerolle@ynov.com
6d1feda3838da5c89bb841909024e8c44126e03c
8681fa7b744a5fde9a913dee691ee939af3b5513
/search/maxCircles.py
fb030e4c151f86bce885ef8cf31a63e747b097b9
[]
no_license
dkumar95120/python
baec8d38b1d17657c737e86ec11d2b8c8b965ac2
9a9d02e0322cd646c4931d8fef93dd7e23a93ee8
refs/heads/master
2020-08-29T17:41:00.902279
2020-05-14T13:41:23
2020-05-14T13:41:23
218,114,582
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
def maxCircle(queries): friends = [] groups = [] max_friends = 2 for a,b in queries: groups.append({a,b}) group_to_join=[] for group in groups: if a in group or b in group: if group not in group_to_join: group_to_join.append(group) ...
[ "dhakumar@hotmail.com" ]
dhakumar@hotmail.com
334b82dd1d41cb64046cee93036721cc2e211b97
a64f5213ad8c042caee3d39abe469d15161f27c4
/python_ruby/conditional/5.py
2c9b0476985201df8ce8194b735942d56a086281
[]
no_license
jhl-n/open_cording
88f70ab52068be9ed451e62d982bffc92672d27c
376e34e2dda49e5d267e3e22a6d3d6b52514ca10
refs/heads/master
2022-11-30T00:30:48.920646
2020-08-07T07:22:50
2020-08-07T07:22:50
284,917,449
0
0
null
null
null
null
UTF-8
Python
false
false
193
py
input = 21 real_egoing = 11 real_k9905 = "ab" if real_egoing == input: print("hello!, egoing") elif real_k9905 == input: print("hellow!, k9905") else: print("Who are you")
[ "noreply@github.com" ]
noreply@github.com
caaf5af5646fa7468387887b3bcc943ccfb9293f
a2e638cd0c124254e67963bda62c21351881ee75
/Extensions/FrontCache/FPythonCode/FC_TCOLL_01_ATS_48.py
cc9794df7b6147718d9bfd202883a84d9f122953
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,150
py
'''---------------------------------------------------------------------------------------------------------- MODULE : FC_TCOLL_01_ATS_48 PROJECT : FX onto Front Arena PURPOSE : This module is the entry point for the Trade Collection ATSs. These ATSs w...
[ "nencho.georogiev@absa.africa" ]
nencho.georogiev@absa.africa
41491582949164dfc18c512f617c7c5016ca23fd
513d6fed668291fe24d1019f765638e3e6ee3c98
/videoProcessor_v2.py
0bf6cba193d661f5e2ef772dddaeff5b979e2e81
[]
no_license
ishitachordia91/Harmonic-Legos
983935d61f005e25691e9c1b8e8c14ed474894fe
690fe6849a8eef4cf66632d9b6664a04c446cf4a
refs/heads/master
2021-08-28T18:50:24.793318
2017-12-13T01:08:08
2017-12-13T01:08:08
114,056,524
0
0
null
null
null
null
UTF-8
Python
false
false
8,562
py
#python color_tracking.py --video balls.mp4 #python color_tracking.py # import the necessary packages from collections import deque import numpy as np import argparse import imutils import cv2 import serial import pdb import time class ShapeDetector: def __init__(self): pass def detect(self, img): ...
[ "ichordia3@gatech.edu" ]
ichordia3@gatech.edu
03a353b523a72dd35be058a4925aa8c5aed27d79
809085ac97788f94e0e46fb9fb03f6368b1dbd8d
/pommerman/test.py
900f6cce3b204d0e979572c47b8583f4e3a6303e
[]
no_license
RadoslawLemiec/Pommerman_drl_agents
5e3325a614efdce7851e6e9f8787aa9baa3d912e
e84d40cbbce231ecc4088f940011f9fe5b6c9487
refs/heads/master
2023-07-22T02:05:22.592216
2021-03-22T19:46:38
2021-03-22T19:46:38
196,829,482
0
0
null
2023-07-06T21:35:43
2019-07-14T11:42:07
Python
UTF-8
Python
false
false
7,481
py
"""Train an agent with TensorForce. Call this with a config, a game, and a list of agents, one of which should be a tensorforce agent. The script will start separate threads to operate the agents and then report back the result. An example with all three simple agents running ffa: python train_with_tensorforce.py \ ...
[ "radoslaw.lemiec@gmail.com" ]
radoslaw.lemiec@gmail.com
7e0f82ff171415401fbdc0bdc5d489cab5b7c30f
585700f820e4eff76654735ec74a48350709dbab
/app/face_rec_model/model_recognizer.py
ad55bd45de8258daf0749b8d4565aa4ad026b9a4
[]
no_license
mozzielol/MonitoringSystem
109259be0aaf06f36712e32fbf368146303e474c
e2fd68449dafe6e97d804da1e43a1a442dfa41ab
refs/heads/master
2021-01-23T09:35:13.897172
2017-09-06T21:14:00
2017-09-06T21:14:00
102,583,062
0
0
null
null
null
null
UTF-8
Python
false
false
5,629
py
import cv2 import sys import setlcd from .. import secret from helper.common import * from helper.video import * from facerec.serialization import load_model,save_model from facerec.model import PredictableModel from facedet.detector import CascadedDetector from facerec.feature import Fisherfaces from facerec.classifie...
[ "noreply@github.com" ]
noreply@github.com
2de6c9501b1b8560c72788d40905ffe4818ba046
f305f84ea6f721c2391300f0a60e21d2ce14f2a5
/5_map/构造O(1)复杂度数组.py
4022012734ec37223659443e2deaa1ed6ec62b0f
[]
no_license
981377660LMT/algorithm-study
f2ada3e6959338ae1bc21934a84f7314a8ecff82
7e79e26bb8f641868561b186e34c1127ed63c9e0
refs/heads/master
2023-09-01T18:26:16.525579
2023-09-01T12:21:58
2023-09-01T12:21:58
385,861,235
225
24
null
null
null
null
UTF-8
Python
false
false
665
py
# 设计一个特殊的数组,要求该数据结构以下三种操作的时间复杂度均为O(1) # 1. 查询数组某个位置的元素 # 2. 将数组某个位置的元素修改为指定值 # 3. 将数组所有元素修改为指定值 from collections import defaultdict class SpecialArray: __slots__ = "_data" def __init__(self) -> None: self._data = defaultdict(int) def get(self, index: int) -> int: return...
[ "lmt2818088@gmail.com" ]
lmt2818088@gmail.com
188b851908235dc50dfdd4d527177484609ede91
1ed6658b38d6d8935de79d91308566638b7256a9
/dailyCoding/problem048.py
f8e2217632a4eb2660ac84570afcc5435875f4f3
[]
no_license
tanajis/python
4e87328c4e65506567d7b30c05e88a6b25b4827e
ec6a7a5cb720830bb220c8b52b9ac10b5bd22d5b
refs/heads/master
2021-06-26T22:10:36.593105
2021-02-03T13:20:36
2021-02-03T13:20:36
211,669,831
0
0
null
null
null
null
UTF-8
Python
false
false
1,024
py
Good morning! Here's your coding interview problem for today. This problem was asked by Google. Given pre-order and in-order traversals of a binary tree, write a function to reconstruct the tree. For example, given the following preorder traversal: [a, b, d, e, c, f, g] And the following inorder traversal: [d, b,...
[ "noreply@github.com" ]
noreply@github.com
35d51f70a0c746cc72a3d41cfeb0daf434ab3106
b4b796d863bcf5b9e8617dc2566bd5418c0a7737
/py/5523.文件夹操作日志搜集器.py
e851577dbcc1835e180f11fa3e1e946a005fc550
[]
no_license
NidhoggZe/LeetCode
a02e323ffdbc660f43a148fd7219ecf8dc2bff95
0ae2e9fac6692f76b71f929154ba72c31d2c2bfd
refs/heads/master
2023-01-13T04:55:47.911464
2020-11-11T12:16:06
2020-11-11T12:16:06
311,876,420
0
0
null
null
null
null
UTF-8
Python
false
false
345
py
from typing import List class Solution: def minOperations(self, logs: List[str]) -> int: count = 0 for i in logs: if i == "../": count -= 1 count = max(0, count) elif i == "./": continue else: count...
[ "397257341@qq.com" ]
397257341@qq.com
1999e928a7bf7a159576ef1141e9e0fc4dfb62aa
356e25ed43e240c1c8b813eee444e3142c14fdc4
/sphinx_serve/__main__.py
a80e76cd2a79d3f7956cbf5001c58a1952514c6c
[ "MIT" ]
permissive
tlatsas/sphinx-serve
90e594b3376ebe61ecabd7dafc74941e9aa6362b
f7659787f5375025e9bc0e72c4427f096ce6785d
refs/heads/master
2021-01-13T02:25:59.979692
2013-07-15T14:16:17
2013-07-15T14:16:17
11,409,929
2
2
MIT
2020-08-27T15:16:11
2013-07-14T21:52:54
Python
UTF-8
Python
false
false
114
py
#!/usr/bin/env python import sys from .sphinx_serve import main if __name__ == "__main__": sys.exit(main())
[ "tlatsas2000@gmail.com" ]
tlatsas2000@gmail.com
7bc28716b12489f23a995214061a23c0e8f73c4e
e902bc98a6842c3ff6716996d6f18afdb0df1fc4
/HWM/heroes/views.py
05f59d5cdb18a976b33a6dd9f96b010292224df6
[]
no_license
alenabonch/heroeswm
59def82d3bd9908e88439303bc7b5293bd342f4f
df72317bdb66cdcdde14af57f41b37996de955a4
refs/heads/master
2021-01-15T10:18:33.373249
2012-08-10T10:08:25
2012-08-10T10:08:25
41,934,828
0
0
null
null
null
null
UTF-8
Python
false
false
1,819
py
# -*- coding: utf-8 -*- from HWM.utils.Graber import Graber from HWM.heroes.models import * from django.http import HttpResponse from django.shortcuts import render_to_response from HWM.utils.SpiderThread import SpiderThread def run_spider(): thread = SpiderThread() thread.start() run_spider() ...
[ "1@h67pro.routerddc782.com" ]
1@h67pro.routerddc782.com
2286bd716acb5cc6f707dc291bfb3eb246ecf817
40f0c9269dd2b715f232270598f39bd013fa114f
/drift-check.py
3c3b1e4edf808416f6de9be726dd31259937aa31
[]
no_license
vforvarun/cloudformation-stack-toolkit
2e7a5bf2b4ddd082592994ad68085929292fd0c4
93c67ef447bdcb4902747ae5cc4d037dc1cf3a66
refs/heads/master
2020-05-02T11:30:45.107563
2019-03-27T06:38:06
2019-03-27T06:38:06
177,931,126
0
0
null
null
null
null
UTF-8
Python
false
false
2,990
py
import boto3 import click stack_session = boto3.client('cloudformation') @click.group('cli') def cli(): pass @cli.command('list-stacks') def list_stack(): "List the status and drift status of all stacks" dash = '-' * 120 paginator = stack_session.get_paginator('list_stacks') response_iterator = pagi...
[ "vforvarun@gmail.com" ]
vforvarun@gmail.com
d7da4a135696fdb30fff15dd97ac605ae75485ac
e94dd1ae2715dbedcc21047e90ed58043b47d265
/src/temp/button.py
632710c8f10a5b05bb7fb5287c41ecc67b850d82
[]
no_license
Arslandinho/iot-project
c13672acf867e1f1991b85255ad04c7923377b8a
68bd41b9798784f6f9cd08209b74adf371429e82
refs/heads/master
2022-04-20T10:57:02.840181
2020-04-15T11:59:41
2020-04-15T11:59:41
255,901,693
0
0
null
null
null
null
UTF-8
Python
false
false
430
py
import time import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) delayTime = 0.5 Button_PIN = 17 GPIO.setup(Button_PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP) try: while True: if GPIO.input(Button_PIN): print("Button: not pushed") else: print("Button: pushed...
[ "arslan.tachmuradov@gmail.com" ]
arslan.tachmuradov@gmail.com
46c624b4a72db7b9845aadda40d8aceec1f1c846
8f946e3b38ba0a5865743f7c4348144cf902ed74
/similarity.py
3b6b381294de65b6c0559d5b84f0bd51f2fada03
[ "BSD-2-Clause" ]
permissive
lorabit/MiningReasons
c659bc223e7ce9412a4f22ace6fa6dbb04b26faf
4c8356e4edc4e2f7c52c00b60eac9f92fec0ddc7
refs/heads/master
2021-01-17T21:15:18.992855
2017-03-17T06:42:10
2017-03-17T06:42:10
84,168,132
1
0
null
null
null
null
UTF-8
Python
false
false
1,118
py
import enchant from nltk.stem.porter import * from nltk.tokenize import TweetTokenizer from nltk.corpus import stopwords t = TweetTokenizer() d = enchant.Dict("en_US") stemmer = PorterStemmer() stopword = set(stopwords.words('english')) def tokenize(text): ret = t.tokenize(text) return ret def stem(text): ret =...
[ "conglaiwubei@163.com" ]
conglaiwubei@163.com
6f66ef247d249d472ab1dc47b7de6f50ed703bd3
bfaa8a34f0d954fd91d57e101556aab01099d0ea
/beary/__init__.py
97da988c56cb1c2f294b7bd6ea5be11500110eda
[]
no_license
vtmer/bearychat
cf9167385c4451c45c9ea2caffd25298ec950855
8223151d74a0f859274e60032b1dfe8be3cd7db2
refs/heads/master
2016-09-05T16:09:35.369036
2015-06-29T08:05:42
2015-06-29T08:05:42
33,439,045
1
0
null
null
null
null
UTF-8
Python
false
false
97
py
# coding: utf-8 ''' beary ~~~~~ vtmer 里面的熊孩子 ʅ(´◔౪◔)ʃ '''
[ "bcxxxxxx@gmail.com" ]
bcxxxxxx@gmail.com
d6f0dd5c587a5205dc3e3b19517b90443f991d4e
97e349765284a1239580f4ae6943f597797fdc0d
/dingweitest/test1.py
88b98797ba89775967126c4b52b4988562f63047
[]
no_license
chenhanfang/test2
716aa9b1f875a6c88bfc6fb45ddc9879441c3c34
5d9d44086815bdf514636a1fc14bcd2c1f4284a5
refs/heads/master
2021-01-20T14:22:51.885745
2017-05-09T01:59:34
2017-05-09T01:59:34
90,597,906
0
0
null
null
null
null
UTF-8
Python
false
false
2,244
py
#coding=utf-8 from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains#######鼠标事件的类 import time from selenium.webdriver.common.desired_capabilities import DesiredCapabilities driver=webdriver.Remote(desired_capabilities=DesiredCapabilities.CHROME) driver.get('http://www.baidu.com...
[ "chenhanfang@zhixunkeji.cn" ]
chenhanfang@zhixunkeji.cn
914fa86716ed865bb5eabf6824fd0f4239243ca5
163c66e58f04268c884335ed66461d5ddf513280
/hw2/quicksort.py
9d115b440faadc402a3c34e630c76fdcad1375f1
[]
no_license
pz325/Coursera_ADA
4ca0d8273c0571b45364b951d52a5d06cbdc652c
b968dd6b60f73d1ebe34195ddfa7fc39df3726cd
refs/heads/master
2016-09-05T22:16:13.865655
2014-11-18T21:27:54
2014-11-18T21:27:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,269
py
def chooseFirstElementAsPivot(A, l, r): return A[l] def chooseLastElementAsPivot(A, l, r): tmp = A[l] A[l] = A[r] A[r] = tmp return A[l] def chooseMedianOfThreeAsPivot(A, l, r): if r - l == 1: return chooseFirstElementAsPivot(A, l, r) mid = (r - l) / 2 + l # print(l, mid, r) ...
[ "sg71.cherub@gmail.com" ]
sg71.cherub@gmail.com
c2c63aa40e75f612a8a46c1b0b43554e84fdbfc1
38d9f0f67f5c4264c88382d1e4a9617cdd6bc41b
/picoCTF2019/BE/NewOverFlow1/solution.py
c50c76b61c85a433ca6533d2036185a8ca3ecde8
[]
no_license
MontyHull/CTF
0b5e90be2e635b4f483dcef8f44b597c5a6de85a
11ecba347dfe70171a0cac990f969cf5b8d3fad0
refs/heads/master
2022-11-30T13:51:05.460566
2020-08-14T18:46:33
2020-08-14T18:46:33
246,088,469
0
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
from pwn import * import json LOCAL = False CYCLIC_FOUND = True local_bin = './vuln' elf = ELF('./vuln') if(LOCAL): p = process(local_bin) else: hostname = "2019shell1.picoctf.com" dir = '/problems/newoverflow-1_6_9968801986a228beb88aaad605c8d51a' with open("/.2019creds.json") as f: creds = js...
[ "mickyhall35@gmail.com" ]
mickyhall35@gmail.com
53b6a7bc899a0f65cef55097daabe46ab1650748
e1908a5dc666e699ebf1011832d606582fe2e184
/src/layers/merge_block.py
5f468b0ac3a2c2cda98b8249a6c0e8224409b321
[]
no_license
ASI-SX/M2Det_Keras-1
a656355dacd3644e358ba8846debf6c657a2991f
f1f5f0443d8aa59c51ae76f1c691a7ffbc349adc
refs/heads/master
2020-06-29T19:14:29.873077
2019-03-01T14:09:03
2019-03-01T14:55:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
from keras.layers import Concatenate, Reshape, Activation from .prior_box_layer import PriorBoxLayer import keras.backend as KB class MergeBlock(): def __init__(self, class_num=21): self.__class_num = class_num def __call__(self, inputs): return self.__merge_block(inputs) def __merge_b...
[ "x7286x_ayk@yahoo.co.jp" ]
x7286x_ayk@yahoo.co.jp
a102e1ab09143f6dd37b0af10823852c407ad90f
a69944be2869cb8141c0f6b9de2d7ffb8afbad73
/src/features/transformer/count_character_pairs_transformer.py
354113b7b8dacb29506b8d7ae856ecd6d5d78349
[]
no_license
ryancollingwood/DGAClassifier
64249790693b15a50741424b0302f784e8ed1290
7d45576823ef3601dfdf31c57f1fc4772c7f5863
refs/heads/master
2023-07-20T08:03:19.117517
2022-07-11T21:12:09
2022-07-11T21:12:09
232,232,425
12
8
null
2023-07-06T21:55:14
2020-01-07T03:11:12
Python
UTF-8
Python
false
false
750
py
from typing import List import numpy as np import pandas as pd from src.pipeline import DataFrameColumnTransformer from src.features import count_character_pairs_in_column_as_df class CountCharacterPairsTransformer(DataFrameColumnTransformer): def __init__(self, column_suffix: str, in_columns: List[str], looking_...
[ "ryancollingwood@gmail.com" ]
ryancollingwood@gmail.com
4216ca7508a2873fee17c8913af6730dcc524bce
cc3dffe46924b1c76d02ce2b7ec12ae2cd2f2242
/DevBarber/urls.py
0c151a9dc3fff2ccc99a0b1452ebacac7a090094
[]
no_license
MadayDomtt/djangoBarber
2a5d6b51c3928f19bad930d0106f1c67589fbc6a
a5f2def4b1ab3f7c42d9f9f52c9532e06d23b9b9
refs/heads/master
2023-08-19T00:57:21.416832
2021-09-30T02:03:26
2021-09-30T02:03:26
398,132,316
0
0
null
null
null
null
UTF-8
Python
false
false
961
py
"""DevBarber URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/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-bas...
[ "madaydomtt@gmail.com" ]
madaydomtt@gmail.com
9b1aec656d50ff842d5761e6a750df7afab50cad
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/built-in/nlp/Bert-text-classification_for_PyTorch/transformers/tests/bartpho/test_tokenization_bartpho.py
3e35ad15c1ee543473709c7f66f9c1e22cda20ae
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "GPL-1.0-or-later" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
2,656
py
# coding=utf-8 # Copyright 2021 HuggingFace Inc. team. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "dongwenbo6@huawei.com" ]
dongwenbo6@huawei.com
15d42ea40f4c46a42efcaaa1b55978a0ff411af1
4e50d2345a2cfeb3c9ecb02187f88e753d1ed83c
/bin/html/json_structure/00.getJson.py
4444705d5d8eb9020504cacb7d70ecd2aa9b18c9
[]
no_license
ms201420201029/real_metagenome_pipeline
7c7b54e5e8a798933387f960256ebb849e9c2200
e8f0b188f21975305565d06e4fefe4f4c9adc1f7
refs/heads/master
2020-04-05T06:41:34.349662
2018-12-04T05:48:52
2018-12-04T05:48:52
156,646,750
1
1
null
null
null
null
UTF-8
Python
false
false
10,957
py
#!/usr/bin/python3 #-*- coding : utf-8 -*- ########################################################## # # Filename: 00.getJson.py # Author: mas@realbio.cn # Description: 将结果文件转化成json文件,以便后续渲染 # Last Modified: 2018-10-31 11:26:30 # # Copyright (C) 20181031 Ruiyi Corporation ############...
[ "1037080472@qq.com" ]
1037080472@qq.com
a4cf21c7947436caf793a85f604a3c13567755fa
0982b87dbed9c8fd3199b02571fbfcbb07220ee8
/posts/migrations/0004_post_likes.py
b82de391792e7b0d6060a86986ed16923bb17f63
[]
no_license
iaminzmam/SocialNetworkApp-by-Django-PostgreSQL
598fa272eef451c4fa482eb23b3cc5a7bb037f64
ca49d1fc490f5cf44f0e29f51013cace798daf77
refs/heads/master
2020-06-22T16:30:53.282062
2019-07-19T09:50:41
2019-07-19T09:50:41
197,745,977
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
# Generated by Django 2.2.2 on 2019-07-10 11:22 import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('posts', '0003_remove_post_likes'), ] operations = [ migrations.AddField( model_name='post'...
[ "iaminzmam@gmail.com" ]
iaminzmam@gmail.com
75869a80c9112aec95c89f8cafe5d4bc41012d64
74b7b062b4a7b759845adc2121fa8530d55aa452
/record_notebook_py/nicks_dataset.py
cde19e80bb298b7a9418d4931d6c7bfcd03b71f4
[]
no_license
drschwenk/tableparse_notebooks
a817dca6bde0e4e41078f76bf756c087b49e8ea8
07f5daa760c5e01349fba5a360bd4aa4b6d0956c
refs/heads/master
2021-01-22T06:18:56.168313
2017-06-22T22:32:22
2017-06-22T22:32:22
92,539,999
0
0
null
null
null
null
UTF-8
Python
false
false
18,543
py
# -*- coding: utf-8 -*- # <nbformat>4</nbformat> # <markdowncell> # # Table of Contents # * [Alternate tables](#Alternate-tables) # * [pairing images and annotations](#pairing-images-and-annotations) # * [sampling images](#sampling-images) # * [Regents tables](#Regents-tables) # * [Hough lines experiment](#Hough-li...
[ "schwgit2@gmail.com" ]
schwgit2@gmail.com
b4b56f26384ee4b46b552c8a6914adcbb8839e95
a9bcdff9fee8b647ba9416df1d0b6ec10c260b8e
/DAL/product.py
c010823513bb0868a8e0e71aac21defb49426dee
[]
no_license
Maxside/computer_design_technologies-monitoring_system-
4e24208fc5efc3661e4a83175d9115be36db531b
ad21474adced302ab94e87ede1ee2375eda285a9
refs/heads/master
2022-11-04T21:45:20.397335
2020-06-22T13:45:56
2020-06-22T13:45:56
274,114,087
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
from DAL.sqlRequest import SqlRequest, get, db_session from DAL.database_store import Product class ProductRequest(SqlRequest): db_class = Product def Get(self, item_id): return get(i for i in self.db_class if i.product_id == item_id)
[ "antoshvart@gmail.com" ]
antoshvart@gmail.com
37b62f0aa2982ea9f161d579010a0275beeb3cdd
05c719dac020c69e43294ab6a435081c36f8a6a6
/blog/migrations/0001_initial.py
74992c43aac19a098c6256555c1efb3c96b36f0b
[]
no_license
Luguaa/django_blog
1ff5e7ff2077a14a56702f71d0a9193403c58434
2e2298bdbfac78f0b2dc6290d1b802a0eeb49f28
refs/heads/master
2021-05-17T00:47:15.576706
2020-03-30T12:53:50
2020-03-30T12:53:50
250,542,337
0
0
null
null
null
null
UTF-8
Python
false
false
1,727
py
# Generated by Django 2.2.3 on 2020-03-24 11:44 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "893821635@qq.com" ]
893821635@qq.com
25f6f3fc84cb8ebb7fa9d66004b96a34713ee607
babd7f3f774ed070b785bbfaae155cd16f964ed9
/module_5/pages/login_page.py
b7465ed1bc0c50b5a49a7fd0f2dae4fbf2d98d18
[]
no_license
IDorot/stepik_lessons
0135a864ff42a9966e3b2dd9a05b13522c81a117
ed60f381847a582fcdd3149aaf4b5880061db844
refs/heads/master
2023-06-17T05:43:48.578576
2021-07-01T21:03:17
2021-07-01T21:03:17
367,456,721
0
0
null
null
null
null
UTF-8
Python
false
false
1,685
py
from .base_page import BasePage from .locators import LoginPageLocators import random import string class LoginPage(BasePage): def register_new_user(self, email, password): EMAIL = self.browser.find_element(*LoginPageLocators.REGISTER_EMAIL_FIELD) EMAIL.send_keys(email) PASSWORD = self.brow...
[ "iackya@yandex.ru" ]
iackya@yandex.ru
47727b6c497ea2ca0026b63f5bc8ffbec4d16a26
8af67e349460fbd5dfc02204490db68404aac87d
/String_Demo.py
858fa7c83091f2cfd6e956716ad89748e296ab0c
[]
no_license
PrachiGupta123/MSCW2020_Python
fc669f529f0b8e4eaa691cbcb228389363a6c34e
828bf6580b72abd115f438455369c571ec32ce4f
refs/heads/main
2023-02-11T04:46:01.851798
2021-01-11T09:06:46
2021-01-11T09:06:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
136
py
name = "Prachi Gupta" print(name.upper()) print(name.lower()) print(name.swapcase()) print(name.replace('Prachi','Pallavi'))
[ "noreply@github.com" ]
noreply@github.com
d6667c371f5635050e24804b3548edbb78015a8e
d2e69d4d3d1e11a87f5a377e4a423422fe0a7058
/FullStack/12/celery_stuff/periodic_task.py
5d5dcb1b71af4eff0549304787a59963e751cecf
[]
no_license
oJacker/_python
6f30dd4a60c1593d27c00ac485163fc0ba77dd8c
8086d0cd78e156abfff9819a56384149dd431c56
refs/heads/master
2021-05-06T03:13:29.167281
2018-02-01T09:41:42
2018-02-01T09:41:42
114,827,084
1
0
null
null
null
null
UTF-8
Python
false
false
773
py
from celery import Celery from celery.schedules import crontab app = Celery() @app.on_after_configure.connect def setup_periodic_tasks(sender,**kwargs): # Calls test('hello) every 10 seconds sender.add_periodic_task(10.0, test.s('hello'),name='add every 10') # Calls test('world') every 30 seconds se...
[ "623657285@qq.com" ]
623657285@qq.com
e70429dba0ffd7ae76f3782c46c6721233b7ea52
d16a0ec744f3544894fb102f8b43aa7448f135a5
/config.py
a5bc9c2c7682b86bb8b4696bc82d7de201b31a23
[]
no_license
hectorcanto/self-disabling-client-class
f057898b5a89e5c2986e75a72b700de07e8a1cc1
e70efa9156f4219cb6968a2a6513e5938288b89d
refs/heads/master
2021-01-19T17:26:20.668655
2017-02-19T14:21:53
2017-02-19T14:21:53
82,458,936
0
0
null
null
null
null
UTF-8
Python
false
false
978
py
""" This module works as a template for configuration values. Use it to create a local_config.py with the real values, but do not add them to the repository. At the end of the module local_config.py is imported. If using this class in a Django project, use local_config to import the needed variables from the django ap...
[ "hectorcanto@gmail.com" ]
hectorcanto@gmail.com
691c95aa3b1587f1682c69e5cc5038c5f3be130a
98fdf92757db14943939348126d7c2433cedef83
/luigi/contrib/salesforce.py
dadbd86a65b7a5462fc0a2a906abdf574980e12e
[ "Apache-2.0" ]
permissive
huygn/luigi
83db3ec38add943952292830465f51859b65cd5f
bf7194091d9c934ca4e741033debe73ee693b29f
refs/heads/master
2021-09-24T02:08:43.878769
2016-03-25T02:00:47
2016-03-25T02:00:47
54,885,159
0
0
Apache-2.0
2018-10-01T18:52:28
2016-03-28T10:34:02
Python
UTF-8
Python
false
false
25,819
py
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
[ "dlstadther@gmail.com" ]
dlstadther@gmail.com
95c04b903a2227aa95ae7b28244a63c95428bd2c
796b5f7230583236779594aa7359be0d3c74483b
/basics/decisions/simple_decision/if_elif_else.py
b330c3d8e835e20bbfe9ce8c72997be0ad70b0b4
[ "MIT" ]
permissive
samualtnorman/com411
16284e3a3848db5fb89141ffe4b4e8519bbb42b5
f1a4e0378ce06a8dacba72f87da30e0b134ea28c
refs/heads/main
2023-01-27T19:46:34.100179
2020-11-30T12:56:21
2020-11-30T12:56:21
303,633,869
0
0
null
2020-10-13T08:14:12
2020-10-13T08:14:11
null
UTF-8
Python
false
false
208
py
# I think I missed the point of the task here while 1: direction = input("Towards which direction should I paint (up, down, left or right)? ") print("I am painting in the", direction + "ward direction!")
[ "samualtnorman@gmail.com" ]
samualtnorman@gmail.com
b285701b407b0c0a8f04c5f42f759a12b47915be
8442dad0497001d49ee857b49b785665e8d91904
/ex_crawl/2_bs4.py
3891ba645354dd6a1adc302396dfbf80a349ebe3
[]
no_license
rkarkd/abcd-python-apply
98360833a008d5b66cc513af8f3c59bbcd576ea5
e2867800ea32be11dc4869deb7302d786920edc3
refs/heads/master
2021-05-10T17:44:25.584123
2018-01-23T12:54:12
2018-01-23T12:54:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,149
py
import urllib.request from bs4 import BeautifulSoup # pip3 install beautifulsoup4 url = "http://abcds.kr" html = urllib.request.urlopen(url).read() soup = BeautifulSoup(html, "html.parser") # DOM 접근 (<html><body><p>) p1 = soup.html.body.p print("p1 - " + str(p1)) print("p1.string - " + p1.string) # id요소로 접근 ...
[ "do.ockhyun@gmail.com" ]
do.ockhyun@gmail.com
c6aabaf6847cb6258dbdbcb4d4ad7ab23f640236
b9b1710e919d927af0382eb9845a2647606d7df7
/python/plot_logs.py
f842ec19c03375a45727230d3b72b46c5efa6bc5
[]
no_license
jafo2128/arduino-ecu-logger
84d29c0323e3662278a7d550398ccc541cd71938
e303f19444163650b882aa9a8f86a9ada303dadc
refs/heads/master
2020-12-28T22:11:23.413365
2016-01-17T02:24:57
2016-01-17T02:24:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,718
py
from hdf5_log import HDF5Source from sys import argv import pylab from scipy.signal import fftconvolve from scipy.interpolate import interp1d import numpy as np def to_kph(data): return ((data[0] * 256.0 + data[1]) - 10000) / 100 def to_rpm(data): return (data[0] * 256.0 + data[1]) / 4 def compute_g(wheelspe...
[ "ihaque@cs.stanford.edu" ]
ihaque@cs.stanford.edu
ec0c9e08418b84d778e9c06e6e71b69aeff2fc3f
5979abaa0e0505ae6c451fb499ec169852149572
/src/tasks/tasks.py
66eea099ee3454f3974fe2c25fe1c8bae0aa3adb
[]
no_license
lilylilalala/annotation
319b105ac0f6551f0806888358e420be8c98031d
8f29e335b26cf65c78b6ed4183e6fceb1b16171c
refs/heads/master
2022-12-14T09:27:06.385401
2019-01-17T01:28:51
2019-01-17T01:28:51
150,534,127
0
0
null
2022-12-08T02:24:29
2018-09-27T05:40:06
Python
UTF-8
Python
false
false
148
py
from celery import task @task(name='tasks.tasks.calling_submit') def calling_submit(instance): instance.submitted = True instance.save()
[ "973548751@qq.com" ]
973548751@qq.com
97f136b14681008e20c099f12631a94a0fc21e33
b7203262280b8fabcf5573ea494e8e2408d8d2b9
/turtle/star.py
9282c3b8c1bd90f12603fc067e860a8e5d21d5fd
[ "Apache-2.0" ]
permissive
MDGSF/PythonPractice
1c11994a047ecb01c74b0cf0b320b6ffc570209d
77e81d7c965c5de1629df223cb27dd541d128eb1
refs/heads/master
2021-06-16T13:49:00.310063
2021-04-15T11:32:24
2021-04-15T11:32:24
177,229,019
1
0
null
null
null
null
UTF-8
Python
false
false
304
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- import turtle as t def main(): t.color('red', 'yellow') t.begin_fill() while True: t.forward(200) t.left(170) if abs(t.pos()) < 1: break t.end_fill() t.done() if __name__ == "__main__": main()
[ "1342042894@qq.com" ]
1342042894@qq.com
77888a46569bd7839413f22d826facd7c8ce1fc4
180aed13ba53f80582b51832123035d504dd4884
/js-axe-selenium/a11y/lib/python3.8/site-packages/panel/models/vega.py
82c28bd8156affb3b5d3f3495b2a9e7bc969b371
[ "MIT" ]
permissive
dalsontws/accessibility-axe-selenium
cf807a4b64d245eac8cf3fe0ee1a41420af551d3
ca0b54d550c9763902bd22bbc48562b9b211dd42
refs/heads/master
2023-02-01T07:24:18.661381
2020-02-04T08:11:11
2020-02-04T08:11:11
226,026,018
0
3
MIT
2023-01-24T01:04:41
2019-12-05T05:49:33
Python
UTF-8
Python
false
false
967
py
""" Defines custom VegaPlot bokeh model to render Vega json plots. """ from bokeh.core.properties import Dict, String, Any, Instance from bokeh.models import LayoutDOM, ColumnDataSource class VegaPlot(LayoutDOM): """ A Bokeh model that wraps around a Vega plot and renders it inside a Bokeh plot. """ ...
[ "noreply@github.com" ]
noreply@github.com
8203fd832cf20de386aac8d5cf27ac9570dbcc9e
6dfeb6981a8cff42ae3adc11cff7ffe48462f30e
/leet_code/112.path_sum.py
cdad5dfe5fa7abcc346d66e583f1a96261d7fdf9
[]
no_license
hqsds/Python
177ba56d4610e56784eab7069adb1f76fd72341c
ce2b0f50d3dd0b31de0e374747e11898abaf72f5
refs/heads/master
2021-06-13T15:36:53.351997
2017-03-20T20:42:15
2017-03-20T20:42:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
# Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. # # For example: # Given the below binary tree and sum = 22, # 5 # / \ # 4 8 # / / \ # 11 13 4 # ...
[ "wangjian790@gmail.com" ]
wangjian790@gmail.com
1b713ba1f3ca2783af7524cca3234b09b419b169
6368c7aff52816322ad570a574ccd04d74acb526
/django_template/api/urls.py
8fe3a964af6c76842cce2a1b5e6af19c89d82aa9
[ "MIT" ]
permissive
r2rstep/django-styleguide
b92c78d16baec71449ea238328712a8b4255db23
f3f13a40704f46c85c75fc534aaa094cb4721857
refs/heads/master
2023-02-18T16:44:38.824362
2021-01-22T14:32:10
2021-01-22T14:32:10
331,671,756
0
0
null
null
null
null
UTF-8
Python
false
false
359
py
from django.urls import path, include urlpatterns = [ path( 'auth/', include(('django_template.authentication.urls', 'authentication')) ), path('common/', include(('django_template.common.urls', 'common'))), path('users/', include(('django_template.users.urls', 'users'))), path('items/', in...
[ "aart.st@gmail.com" ]
aart.st@gmail.com
e7cf300c95480122ec69e44096b3a9baa29236fa
e6795dc0f6be3fdc0476689d6545c9b138286301
/inventario/migrations/0002_auto_20170313_1256.py
a215e0fa5591081c719dbc5ee2cb147b27f196e0
[]
no_license
bikerlfh/ShopNeubs
846d482e254f70f68914abac4f82eeee54bfd242
bac740fb57c0c1d0cece276fc477454e959aaf5a
refs/heads/master
2021-01-11T14:53:30.280015
2017-07-24T21:59:46
2017-07-24T21:59:46
80,241,149
0
0
null
null
null
null
UTF-8
Python
false
false
1,254
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-13 17:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('inventario', '0001_initial'), (...
[ "bikerlfh@hotmail.com" ]
bikerlfh@hotmail.com
c351193f7c13944665260375b74e52d614f9e126
ad13583673551857615498b9605d9dcab63bb2c3
/output/instances/nistData/list/double/Schema+Instance/NISTXML-SV-IV-list-double-maxLength-3-3.py
b87e6657a0667e04224d685b68de4abfd4acfadf
[ "MIT" ]
permissive
tefra/xsdata-w3c-tests
397180205a735b06170aa188f1f39451d2089815
081d0908382a0e0b29c8ee9caca6f1c0e36dd6db
refs/heads/main
2023-08-03T04:25:37.841917
2023-07-29T17:10:13
2023-07-30T12:11:13
239,622,251
2
0
MIT
2023-07-25T14:19:04
2020-02-10T21:59:47
Python
UTF-8
Python
false
false
415
py
from output.models.nist_data.list_pkg.double.schema_instance.nistschema_sv_iv_list_double_max_length_3_xsd.nistschema_sv_iv_list_double_max_length_3 import NistschemaSvIvListDoubleMaxLength3 obj = NistschemaSvIvListDoubleMaxLength3( value=[ 6.828163737338829e+162, 4.3832452374445357e+167, ...
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
7ba674e395d20c039e13bf62b81baa1f6c1e5aa6
3ec45e4dd6db62ba7bebd6d13c01d7e2d2a85c4f
/mysite/settings.py
16b330627498c5d7dea3e13a8e8e7bc5e72d8885
[]
no_license
Skipi1111/my-first-blog
86cf3108c57700ead8bd5804199809dd06b5ff41
af96f1fc612b23a15f6031bc81566baf3ce54fea
refs/heads/master
2021-01-20T04:29:16.674137
2017-04-28T13:36:51
2017-04-28T13:36:51
89,698,765
0
0
null
null
null
null
UTF-8
Python
false
false
2,776
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 1.8. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ """ # Build paths i...
[ "19skipi96@gmail.com" ]
19skipi96@gmail.com
0aca4857892de6d386b94530a1cac37b941e61f5
99f8ceb395af46d86c95163599413cd7e81bd09b
/tasks/signals.py
4312b225af8a1bd50c8cbed17073e9533a0be613
[]
no_license
tfgg/constituencyvolunteernetwork
703544b1ea2fe44dfe0ddd4d133776c49932f4dc
07d5717a9c6040b41cd4c18aaef918294f00579c
refs/heads/master
2021-01-21T19:28:19.295379
2010-05-10T13:23:04
2010-05-10T13:23:04
41,304,200
0
1
null
null
null
null
UTF-8
Python
false
false
398
py
""" Signals for the task application. Sent when the state of a user on a task changes. """ import django.dispatch task_assigned = django.dispatch.Signal(providing_args=["task_user"]) task_started = django.dispatch.Signal(providing_args=["task_user"]) task_ignored = django.dispatch.Signal(providing_args=["task_...
[ "timothy.green@220e2412-9961-11de-a05d-3bd73e269465" ]
timothy.green@220e2412-9961-11de-a05d-3bd73e269465
cffdf2acd94a6de7763817adac19b55f22d9108d
ea9a84142f7cad598400174bbaea6d1eb634467e
/src/exporters/blendersmf/smf_import.py
c12dff41bf8214a4695e42ef7f48054ba6add248
[]
no_license
johndemlon/3d-physics
5f5851da09db59ec53f7ae7c3908be28d4cc7a0f
345028ce4eaa0f9210eeffb725eac4608cf5abc2
refs/heads/master
2022-09-10T03:04:03.101188
2020-06-02T19:02:59
2020-06-02T19:02:59
268,722,662
0
0
null
null
null
null
UTF-8
Python
false
false
5,512
py
#!BPY """ Registration info for Blender menus: Name: 'SMF...' Blender: 234 Group: 'Import' Tip: 'Import a Stanford PLY file.' """ # Copyright (C) 2004: Bruce Merry, bmerry@smuts.uct.ac.za # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Publi...
[ "noreply@github.com" ]
noreply@github.com
c35bf4942c3e8db0eece733ab23cf2a2b8e38e2d
1dd113e9736c7d656695ce219c6c27efccb08ade
/code/main.py
d3e70f19891cd2c75e1976fdc5688b688a2a98d4
[]
no_license
kdbanapindi/drug-activity-prediction
564cfcc74da5c5e666bc409f093d63818aa55bc5
66b4cc157118b37e4b971e381281b37629792bc5
refs/heads/master
2020-12-12T17:33:32.754584
2020-01-15T22:50:51
2020-01-15T22:50:51
234,186,017
1
0
null
null
null
null
UTF-8
Python
false
false
2,176
py
# -*- coding: utf-8 -*- """ Created on Mon Apr 29 16:57:32 2019 @author: krish """ save_root='C:/Users/krish/Desktop/STAT 578/data/processed/' model_root='C:/Users/krish/Desktop/STAT 578/data/models/' dataset_names = ['DPP4','HIVINT', 'HIVPROT','METAB','OX1'] import json import os import pandas as pd os.chdir('C:/U...
[ "krishna.anapindi@gmail.com" ]
krishna.anapindi@gmail.com
5d53a353a0efb382be881a4241cd629c5ef2714e
8ab314944385de19fd39076003eacb2ea1ebdd71
/config.py
89b011fe4db2eea583a62f773e6edf6d09169050
[]
no_license
orige-zz/compressimg
4202709ffa1cafe923bfd706b1bc88bcfd83ef69
859a049c885895636ad18d4fb34ac98c03b3ceae
refs/heads/master
2021-05-31T13:06:01.380166
2016-05-27T22:42:24
2016-05-27T22:42:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
17
py
TINYPNG_KEY = ''
[ "eduardo.orige@gmail.com" ]
eduardo.orige@gmail.com
1851da00b12eb23c5a2b0d5aa267beca5f9ff212
8f9ac0355d2b4618ec4032b118bdbbc8779e3aab
/Lab/week 4_Queue/5 candyCrush2.py
71a0454c8884e17120770040ba499600edd53028
[]
no_license
G-nap/data-structure
1034f6b601eedd9e30a1832a0a96820eb54d06d2
d4c375782b48651adc7681eae9feb9fe6ea3227e
refs/heads/master
2023-01-05T12:26:17.992658
2020-11-06T10:10:26
2020-11-06T10:10:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,322
py
n = input('Enter Input (Normal, Mirror) : ').split() #print(n) nor = list(n[0]) mir = list(n[1]) stack_MIR = [] stack_NOR = [] boomz = [] def same(x,y,z): return x == y == z for e in mir: stack_MIR.append(e) if len(stack_MIR) > 2: if stack_MIR[-1] == stack_MIR[-2] and stack_MIR[-2] == stack_MIR[-...
[ "bebpandy@gmail.com" ]
bebpandy@gmail.com
ca34433e40b33107c57ce5c65c9ed745cc89c6bc
71ed7b1d4198df0268ea33ccdce9bd0ae0305170
/gui_examples/exercise3_ans.py
9d258389d2df53cb7f7e478d66e988f33d7a6aff
[]
no_license
kailash-manasarovar/GCSE_code
753b625951de053ceecadca4c0ea3e57678a87f9
84fc5908b059116186050c58b1dd75376d2b061f
refs/heads/main
2023-07-14T21:24:52.687135
2021-08-13T15:17:20
2021-08-13T15:17:20
358,193,174
0
0
null
null
null
null
UTF-8
Python
false
false
1,318
py
# Completed CODE for EXERCISE 3 # ------------------- # This exercise introduces # * Difference border styles # * Pack options: # # The exercise aims explores layout from tkinter import * import random app = Tk() # Create the top-level window app.title("GUI Example") # OPTIONALLY set the title # # Create two f...
[ "niramisa777kubera@gmail.com" ]
niramisa777kubera@gmail.com
1e4cb6c2ef210b00387238f4082d976cfc4ca57e
4304d7929972da2a92edb57d4e039182bc2ac463
/photosphere.py
9ecd31182a33dc175b7928d1f10f9b125c4b4581
[]
no_license
geocachecs/photosphere
61c696b960263073cd7a9e93c4874b9b35a79c95
b9777d8eeb374e8e983efa1143376a908f108f66
refs/heads/master
2021-01-15T08:47:21.898982
2015-10-21T17:42:06
2015-10-21T17:42:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,876
py
from PIL import Image import math def getAngle(x, y): #Gets the angle of any pixel in the new image (in reference to its center) #the coordinates have to be adjusted so that the center of the picture would be the origin #this is done in main, or whatever y=-y p=math.sqrt( ma...
[ "munoz@users.noreply.github.com" ]
munoz@users.noreply.github.com