blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
27ee28679d9eb1bffb2f1e431d2bc7787ec15af2
bb37226fe4f918cec1b5d3b9f3c2abd227c740fb
/library/setup.py
da6190df6b671fac3be9afc2c85b4235220dd3c5
[ "BSD-2-Clause" ]
permissive
piecafe/rpi_ws281x-python
e942f44b77cb9c61f10a4777b1140463020b5ab5
7c7513aec0aa60dd2d8c3d8fdcb2e8bba6fa3ef6
refs/heads/master
2021-01-23T07:16:31.825159
2017-08-18T12:54:47
2017-08-18T12:54:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
#!/usr/bin/env python # Python wrapper for the rpi_ws281x library. # Authors: # Phil Howard (phil@pimoroni.com) # Tony DiCola (tony@tonydicola.com) from setuptools import setup, find_packages, Extension from setuptools.command.build_py import build_py import subprocess class CustomInstallCommand(build_py): ...
[ "phil@gadgetoid.com" ]
phil@gadgetoid.com
2b694d9643bf16ae008b20db0368e0915d9f8158
0674b9d8a34036a6bbe2052e1cae0eee9a44554b
/Baekjoon/2941.py
ee51dc09161855679d9cb3d0955c5af4efebcde3
[]
no_license
timebird7/Solve_Problem
02fb54e90844a42dc69a78afb02cc10a87eda71c
2d54b6ecbe3edf9895fd8303cbca99b3f50f68f3
refs/heads/master
2020-04-14T23:37:15.354476
2019-04-15T14:32:41
2019-04-15T14:32:41
164,208,673
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
s = input() while s.find('c=') >= 0: s = s.replace('c=','1') while s.find('c-') >= 0: s = s.replace('c-','2') while s.find('dz=') >= 0: s = s.replace('dz=','3') while s.find('d-') >= 0: s = s.replace('d-','4') while s.find('lj') >= 0: s = s.replace('lj','5') while s.find('nj') >= 0: s = s.re...
[ "timebird7@gmail.com" ]
timebird7@gmail.com
fc3fdfec5df7869e6e4c00786c0cb1712f5f7405
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/p2DJ/New/program/pyquil/startPyquil191.py
5d80d7ba626c297f6554e4295cdaa0a9f0341404
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,154
py
# qubit number=2 # total number=9 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += H(0) # number=1 pr...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
be9f2bb0defc1f2082a178d6bb37135cf836224c
5b71e2952f34dd3bb20148874d952fee06d31857
/app/mf/crud/migrations/0107_auto_20210208_2328.py
37f44934ff8cd007fd1f0c5693956ab187222266
[]
no_license
isela1998/facebook
a937917cddb9ef043dd6014efc44d59d034102b1
a0f2f146eb602b45c951995a5cb44409426250c5
refs/heads/master
2023-07-18T02:14:50.293774
2021-08-28T03:26:06
2021-08-28T03:26:06
400,613,743
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
# Generated by Django 3.1.1 on 2021-02-09 03:58 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('crud', '0106_auto_20210208_1919'), ] operations = [ migrations.AlterField( model_name='cancelledinvoices', name='pro...
[ "infantefernandezisela@gmail.com" ]
infantefernandezisela@gmail.com
e46899246ef5d5ccc4e48374f590c0591205b6dc
567e89b21aca23db5f14032889fdd1cb7c7700f7
/Ia de morpion 1.py
85df14cede381f6300d00965b3de944a959dfe20
[]
no_license
MarcPartensky/Python-2018
7ab83d42eb28b34bed88fc6fb77892e62094dd8d
27d2a57a6b6d6cdaa883fd2ce55e1c5eefd13ccc
refs/heads/master
2020-04-17T13:12:41.448439
2019-01-19T23:55:05
2019-01-19T23:55:05
166,605,846
0
0
null
null
null
null
UTF-8
Python
false
false
2,487
py
import math import numpy M=[0]*9 Grille = [0]*9 Liste = np.zeros([9][8][7][6][5][4][3][2][1]) Enjeux = [[9,-5], [-9,8], [7,-4], [-8,6], [5,-3], [-7,4], [3,-2], [-6,2], [1,-1]] for a in range(0,9): M[0]=a Avantage=Avantage+Enjeux[...
[ "marc.partensky@gmail.com" ]
marc.partensky@gmail.com
1c34d14ba96c3625da9c663dd7e84a221f2a03a4
025660ec946f46cb7458abb12ce32fb4a2e437bb
/event/arguments/loss.py
60b776d0dcc85bde9d1d031e11f8f8068f8c034e
[ "Apache-2.0" ]
permissive
edvisees/DDSemantics
af22070a239ac227694b87218db5e9c2021ac57b
9044e4afa6f9d6d7504de028633295f30679278d
refs/heads/master
2022-12-01T10:50:32.221836
2020-06-18T04:29:44
2020-06-18T04:29:44
283,858,855
0
0
Apache-2.0
2020-07-30T19:19:55
2020-07-30T19:19:55
null
UTF-8
Python
false
false
224
py
import torch def cross_entropy(y_hat, y): print(y_hat) print(y) if y_hat == 1: return -torch.log(y) else: return -torch.log(1 - y) def hinge(y_hat, y): return np.max(0, 1 - y_hat * y)
[ "hunterhector@gmail.com" ]
hunterhector@gmail.com
33f283df6d6a2614a08df515391e4bc8357670c2
9c5b9e4197bfdcf74cec45dcca47d9caa3317a4b
/main.py
06e1a299d1af620fd21b58c3165b1705a3f4d14e
[]
no_license
rhuidean/terrain_data
614c1a8f5420538b74e2e72bc20e19ccce7e565f
596b2e3993d7b445c8115cd316349a026ad63dae
refs/heads/master
2021-01-25T06:36:11.245301
2017-06-07T05:21:27
2017-06-07T05:21:27
93,593,657
0
0
null
null
null
null
UTF-8
Python
false
false
1,530
py
#!/usr/bin/python """ Complete the code in ClassifyNB.py with the sklearn Naive Bayes classifier to classify the terrain data. The objective of this exercise is to recreate the decision boundary found in the lesson video, and make a plot that visually shows the decision boundary """ from prep_t...
[ "rhuidean06@gmail.com" ]
rhuidean06@gmail.com
6572a45e896e65f747dd399131d451027c8a0f8e
bfb113c3076f5b0570953583e7a2321c774d73ea
/Classes/class_example106.py
fb14ae80d41b7c5e58d8fbd7205723b8647d23bc
[]
no_license
gsudarshan1990/Training_Projects
82c48d5492cb4be94db09ee5c66142c370794e1c
2b7edfafc4e448bd558c034044570496ca68bf2d
refs/heads/master
2022-12-10T15:56:17.535096
2020-09-04T06:02:31
2020-09-04T06:02:31
279,103,151
0
0
null
null
null
null
UTF-8
Python
false
false
310
py
#This python program is about static method class Rectangle: def area(length, breadth): return length*breadth Rectangle.area=staticmethod(Rectangle.area) print(Rectangle.area(10,12)) class Square: def area(side): return side**2 area=staticmethod(area) print(Square.area(7))
[ "sudarshan2009@live.in" ]
sudarshan2009@live.in
5ec2bd27d104ad261ca02ea4c6eb402c72836eb5
e1c7c25c22c2f854aa8e3d8f6fffdf80a0b4dfbf
/CodeForces/CodeForces_Solution_In_Python/watermelon_problem.py
e4682dc0816385ec70cb341507d02ceba1752e7f
[]
no_license
roshan13ghimire/Competitive_Programming
efc85f9fe6fa46edff96931ca3a1cca78628918b
0c238a391c6acee8763968ef298b765c133b7111
refs/heads/master
2023-04-15T16:35:07.711491
2021-04-12T03:00:05
2021-04-12T03:00:05
273,682,360
4
1
null
2020-08-05T02:11:53
2020-06-20T09:59:57
Python
UTF-8
Python
false
false
132
py
#watermelon_problem n=int(input()) if(n==2): print("NO") exit() if(n%2==0): print("YES") else: print("NO")
[ "noreply@github.com" ]
roshan13ghimire.noreply@github.com
523b04f22ef940fae42d54f7acd0945edab44cd0
26c8a9bda50bb2ea9d44529d803477e788d102a2
/MODEL1302180002/model.py
a2c7fdcded362373ccd9ab2e6a9483cf516de075
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
biomodels/MODEL1302180002
20a378031da3750921062cd69752e11eb9ff6645
fd9c884345a84dcf4c75d3db87f27520d6c3853f
refs/heads/master
2020-05-31T02:54:36.073367
2014-10-16T05:49:30
2014-10-16T05:49:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
427
py
import os path = os.path.dirname(os.path.realpath(__file__)) sbmlFilePath = os.path.join(path, 'MODEL1302180002.xml') with open(sbmlFilePath,'r') as f: sbmlString = f.read() def module_exists(module_name): try: __import__(module_name) except ImportError: return False else: ret...
[ "stanleygu@gmail.com" ]
stanleygu@gmail.com
14280dd87f4eec14382e48e5062801018048ead1
99deab5f52fd7262a26de9aa5d0163bfa738590f
/python/leetcode/geometry/593_valid_square.py
10db741d5cf9151696a35d715fbce4d92f80f27b
[]
no_license
zchen0211/topcoder
e47fc07c928b83138e27fd6681b373ce499480b0
4d73e4c1f2017828ff2d36058819988146356abe
refs/heads/master
2022-01-17T16:54:35.871026
2019-05-08T19:26:23
2019-05-13T05:19:46
84,052,683
0
2
null
null
null
null
UTF-8
Python
false
false
1,474
py
""" 593. Valid Square (Medium) Given the coordinates of four points in 2D space, return whether the four points could construct a square. The coordinate (x,y) of a point is represented by an integer array with two integers. Example: Input: p1 = [0,0], p2 = [1,1], p3 = [1,0], p4 = [0,1] Output: True Note: All the in...
[ "chenzhuoyuan07@gmail.com" ]
chenzhuoyuan07@gmail.com
b7ab08da2f79c2419645422a6de099e4cd1df741
72880d033c9948098291efebf934255635f8c6ea
/pythonexamples/constructor2.py
0dec20edf9b0368a505ee3cb68138df8219450b0
[]
no_license
manutdmohit/mypythonexamples
729347aec300bda01f629224337c84d5838a71f2
b189c201d07b1a345478699bbb3852c02eb96ce5
refs/heads/master
2023-04-18T01:55:22.026867
2021-05-13T05:59:09
2021-05-13T05:59:09
366,946,854
0
0
null
null
null
null
UTF-8
Python
false
false
306
py
class Student: def __int__(self,name,rollno,marks): print('Creating instance variables and performing initialization...') self.name=name self.rollno=rollno self.marks=marks s1=Student('Ram',101,90) s2=Student('Sita',102,95) print(s1.name.s1.rollno,s1.marks) print(s2.name.s2.rollno,s2.marks)
[ "saudmohit@gmail.com" ]
saudmohit@gmail.com
070e6ab9841df7311809ebd17f01a2e542e6a9bb
7a4ed01a40e8d79126b26f5e8fca43c8e61e78fd
/Geeky Shows/Advance Pyhton/220.Module[34]/PythonProject/Example-16.py
e95b5e1423d89cfc81cdc3ab590dfb301de598a5
[]
no_license
satyam-seth-learnings/python_learning
5a7f75bb613dcd7fedc31a1567a434039b9417f8
7e76c03e94f5c314dcf1bfae6f26b4a8a6e658da
refs/heads/main
2023-08-25T14:08:11.423875
2021-10-09T13:00:49
2021-10-09T13:00:49
333,840,032
1
0
null
null
null
null
UTF-8
Python
false
false
166
py
# Example-16.py <---- Main Module from thired import Myclass,Myschool from fourth import Mycollege c=Myclass() c.name() s=Myschool() s.show() cl=Mycollege() cl.disp()
[ "satyam1998.1998@gmail.com" ]
satyam1998.1998@gmail.com
e2f30408e62e31ec33316a8fdad1c5f5e6477b7c
b95e71dcc1b42ebf3459ee57bd0119c618a79796
/HashTable/Easy/811.py
e34b3be698d497e6d4f22a44b9eb0185ba053eed
[]
no_license
anton-dovnar/LeetCode
e47eece7de28d76b0c3b997d4dacb4f151a839b5
6ed9e1bd4a0b48e343e1dd8adaebac26a3bc2ed7
refs/heads/master
2023-06-29T07:21:06.335041
2021-07-31T15:08:05
2021-07-31T15:08:05
361,205,679
0
0
null
null
null
null
UTF-8
Python
false
false
630
py
""" Subdomain Visit Count """ from collections import deque class Solution: def subdomainVisits(self, cpdomains: List[str]) -> List[str]: hash_table = dict() for record in cpdomains: count, domain = record.split() queue = deque(domain.split(".")) while queue: ...
[ "fode4cun@gmail.com" ]
fode4cun@gmail.com
9d72d1fe8cfc2b68d11f5698576f8ab92bb82e06
d66fd976d66632267551467c3df9b2fbfb8be1cd
/Interview01/100 python传参还是传址.py
ab4c8e34f9f1c32e2d62671c0823d23c97d79687
[]
no_license
bobopython/PythonInterviewQuestions
d8f580932f36bd85432aaafd5c00924183bac16a
9f38a9368bbca32d071062d59748518c0c4f0d09
refs/heads/master
2020-06-07T06:37:25.038426
2019-02-22T16:46:00
2019-02-22T16:46:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
497
py
# _*_ coding: utf-8 _*_ __author__ = 'jevoly' __date__ = '2019/2/16 0016 下午 11:29' """ python中函数参数是引用传递。 对于不可变类型(数值、字符串、元组),因变量不能修改 所以运算不会影响到变量自身; 对于可变类型(列表字典)来说,函数体运算可能会更改传入的参数变量 """ def selfAdd(a): a += a a_int = 1 print(a_int) selfAdd(a_int) print(a_int) a_list = [1, 2] print(a_list) selfAdd(a_list) print(a_...
[ "jevoly@163.com" ]
jevoly@163.com
a76f71b1b0a7bbd3e2980596c7741c93c2f0397d
6f4ee285871ee52ea4c1143d54581ead795bca87
/example/asr/preprocess_aihub.py
966a54cb9783dff1ab5f8ed68a23ec6dd026ed95
[ "MIT" ]
permissive
rosinality/imputer-pytorch
f3773074ddec615c8eaffd1b89a67402790aa3cc
7ff8f73dcd7bd62a98c5b8a126946c5fe381d895
refs/heads/master
2022-05-24T16:30:05.588670
2020-05-03T00:36:28
2020-05-03T00:36:28
257,501,256
52
8
null
null
null
null
UTF-8
Python
false
false
3,933
py
import argparse import io import re import os import string import wave import pickle from multiprocessing import Pool from functools import partial import lmdb import librosa import torch from tqdm import tqdm from audio import FilterbankFeature from text import collapse_whitespace re_pronunciation = re.compile(r'\...
[ "kim.seonghyeon@snu.ac.kr" ]
kim.seonghyeon@snu.ac.kr
3f25f208b39b728d049043a65f1698f402063b63
d4dda2e2992ca16b8fe628e417f8a4243af0ed4a
/step10_plottingutilities/nexpectedeventsDbkg0.5.py
694952c3137cf9cfe4b69eb75d783cd8b5acd850
[]
no_license
hroskes/anomalouscouplings
01f46c0d38f5332c58538b0bdea373704cf06fcc
391eb7fbd52d8605b09ca2e461b1789e019b1da0
refs/heads/production
2021-11-24T22:37:48.932830
2021-10-29T18:38:54
2021-10-29T18:38:54
60,651,233
0
2
null
2017-01-24T14:20:56
2016-06-07T22:37:23
Python
UTF-8
Python
false
false
1,170
py
#!/usr/bin/env python import os import ROOT from helperstuff import config from helperstuff.enums import analyses, channels, categories from projections import Projections assert len(config.productionsforcombine) == 1 production = config.productionsforcombine[0] class NExpected(Projections): @property def nexp...
[ "jroskes1@jhu.edu" ]
jroskes1@jhu.edu
7e18b441ca5e77bb4d99946436324fdc717db390
c8836eac0f6a20a6d3056fc3651c9daf5ce0572d
/test_hu/test_cadastro.py
dac1ceb79c100055f70f3db34a7f50d2195c4645
[]
no_license
rafaelcoelho/code_interview_training
cb44eb6701b6902a28eaf1c0025aea4921dfccb4
fa7484487bf1a2fa9fb4a4abe135c6114fd98bf8
refs/heads/master
2021-01-18T20:05:59.486916
2020-11-27T00:00:56
2020-11-27T00:00:56
100,544,717
0
0
null
2017-08-17T00:36:50
2017-08-17T00:36:49
null
UTF-8
Python
false
false
3,447
py
""" Utilizando o conceito de dicionários, faça uma ficha de cadastro de 4 funcionários utilizando a seguinte estrutura: Chave: Nome Dados: Idade, email, setor, salario Inclua os funcionários: Joao Pereira, 25, joao.pereira@hurb.com, marketing, 1950 Maria Silva, 23, maria.silva@hurb.com, comercial, 2300 Pedro Peixoto, 3...
[ "renzon@gmail.com" ]
renzon@gmail.com
7410a60093d30f7f552fe587527803a22d586e60
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/scrabble-score/4f89ec23c2c3437681d68f5c9bf4d3d9.py
ee4dbb86106d575505a2c999db6b7e251a7494d5
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
382
py
def score(phrase): score_dict = { "a": 1, "b": 3, "c": 3, "d": 2, "e": 1, "f": 4, "g": 2, "h": 4, "i": 1, "j": 8, "k": 5, "l": 1, "m": 3, "n": 1, "o": 1, "p": 3, "q": 10, "r": 1, "s": 1, "t": 1, "u": 1, "v": 4, "w": 4, "x": 8, "y": 4, "z": 10 } s = 0 for char in phrase....
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
1d945a7c1bf6726a99ca1c625db31858855c0347
5ba0e63ff6d94efbd28ed425bb6074e74d3148a0
/app.py
c9fe431141f706fd0d4bbe760be77e916c60c677
[]
no_license
SmartPracticeschool/SBSPS-Challenge-4160-Sentiment-Analysis
ad25e307f38828dd219e26a2bcbb7250a2cf023e
b448d93e8464bf5af5bd70cacf631ed124d96a18
refs/heads/master
2022-11-20T08:31:50.487634
2020-07-29T11:23:24
2020-07-29T11:23:24
272,616,702
0
0
null
null
null
null
UTF-8
Python
false
false
2,313
py
from flask import Flask, render_template,request, jsonify import tweepy from textblob import TextBlob app = Flask(__name__) app.config["DEBUG"] = True cons_key="zJQyiylJYFuutBTOzomm2ZgDc" cons_sec="gPXYZSZ7jVqjTOIG48p4CYzs7fx9fmaWHFPnmSMp4DF10Bla3D" acc_token="1269151933559762945-wZYKQZRbSRaTuDkxW29PnLVaTUJmea...
[ "noreply@github.com" ]
SmartPracticeschool.noreply@github.com
d31b596c5a1b60f72386ba04c19e591e3b4d2eca
7ef2308e51d1d5700fbd092177ee15e2a03ebdd8
/WorkLean/Python/Scrapy/testCrawler3_0/testCrawler3_0/items.py
6672b1af9e9bd24d5a6602896aef9d975422922e
[]
no_license
STAWZW/STAWZW1.0
741002eb35c2883e5739fee8d14ff430e9622c01
a835ac27aba17f968116e321bd201b26c9fb3578
refs/heads/master
2020-07-21T20:21:59.753992
2019-09-26T09:21:28
2019-09-26T09:21:28
206,965,347
2
0
null
null
null
null
UTF-8
Python
false
false
293
py
# -*- coding: utf-8 -*- # Define here the models for your scraped items # # See documentation in: # https://doc.scrapy.org/en/latest/topics/items.html import scrapy class Testcrawler30Item(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() pass
[ "1223868042@qq.com" ]
1223868042@qq.com
9eaa568ed36cd7532c669f74ff9bdcb0cae51b8e
bbefcbb5fdaa571b1bd674269a51d855eadbb2cb
/ticketing/migrations/0037_auto_20200207_1606.py
a6ef78cdee50e70b0274b2594896c195a3920f96
[]
no_license
fadhlimulyana20/event_organizer
8a0e87e71ca24f9ca82af5c90b39be1e61e7867d
4995d529a533d0a6b855e42283c2aaf441fa5a9c
refs/heads/master
2020-12-13T17:11:49.562499
2020-03-01T22:19:29
2020-03-01T22:19:29
234,480,025
0
0
null
null
null
null
UTF-8
Python
false
false
711
py
# Generated by Django 2.2.7 on 2020-02-07 09:06 import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('ticketing', '0036_auto_20200206_1445'), ] operations = [ migrations.AlterField( ...
[ "baba.fadhli@gmail.com" ]
baba.fadhli@gmail.com
140d5a49d274013ddeace0c911a004f3725a8cd0
3432efd194137e1d0cb05656eb547c9992229f02
/web_test/nineteen cookie/cookie.py
d0991972774ab8c00cf93a1c3cace275a13d7ecc
[]
no_license
zhanganxia/other_code
31747d7689ae1e91fcf3f9f758df130246e7d495
8d09d9d0b6d6a1a9b8755487f926ac6fafd761fa
refs/heads/master
2021-09-04T02:22:38.632685
2018-01-14T15:37:14
2018-01-14T15:37:14
107,007,482
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
#coding=utf-8 from selenium import webdriver import time driver = webdriver.Chrome() driver.get("http://www.youdao.com") #获得cookies信息 cookie=driver.get_cookies() #将获得cookies的信息打印 print cookie driver.quit()
[ "kk@kk.rhel.cc" ]
kk@kk.rhel.cc
5926a539dc685e3b284ebafa5e13af890c809432
5a281cb78335e06c631181720546f6876005d4e5
/openstack-cyborg-2.0.0/cyborg/accelerator/drivers/gpu/utils.py
15a926e52a1cf7a63768cf2955192eb569ff9f26
[ "Apache-2.0" ]
permissive
scottwedge/OpenStack-Stein
d25b2a5bb54a714fc23f0ff0c11fb1fdacad85e8
7077d1f602031dace92916f14e36b124f474de15
refs/heads/master
2021-03-22T16:07:19.561504
2020-03-15T01:31:10
2020-03-15T01:31:10
247,380,811
0
0
Apache-2.0
2020-03-15T01:24:15
2020-03-15T01:24:15
null
UTF-8
Python
false
false
4,150
py
# Copyright 2018 Beijing Lenovo Software Ltd. # # 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 or agre...
[ "Wayne Gong@minbgong-winvm.cisco.com" ]
Wayne Gong@minbgong-winvm.cisco.com
5b8c473a88965f160d27bbdbf6da45b8cdebd7e6
f8e778d31a83fdbacb0c498f6c71aa2c48f2d000
/scenarios/card_hold_show/executable.py
2631ad59e96fdaab9c937f252adb2b5251b792f3
[ "MIT" ]
permissive
bsmartt13/balanced-python
a254c695032a80bb1919b8e3fc5cb4c28b4ef44b
c5e192f9547f7b251486cf78d98933410a31daca
refs/heads/master
2020-12-27T15:01:01.237398
2014-03-11T00:00:22
2014-03-11T00:06:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
157
py
import balanced balanced.configure('ak-test-1kvvievk0Qqw5wQPsrlM9g7wQwNe62cyc') card_hold = balanced.CardHold.fetch('/card_holds/HL2bT9uMRkTZkfSPmA2pBD9S')
[ "ben@unfiniti.com" ]
ben@unfiniti.com
4202d20e3558a69f15aca8363391280f1b305552
bdc10ba57424040129cc72ad018ff26bc8bca66a
/ConfigDefinitions/UserConfigs/SMHTT_2018_AntiIso_Config_Deep/WZ2L2QConfig.py
202bcd9c8f5a2cfb9428c372ab52265bd277a253
[]
no_license
aloeliger/Jesterworks
61e0ac38ca325fefbbd8ccedaa8eb02d8a76ebbe
96a22bac4ce20b91aba5884eb0e5667fcea3bc9a
refs/heads/master
2021-06-09T15:39:06.976110
2021-04-23T11:25:06
2021-04-23T11:25:06
157,698,363
0
1
null
null
null
null
UTF-8
Python
false
false
1,139
py
from ConfigDefinitions.JesterworksConfigurations import JesterworksConfiguration as Config from ConfigDefinitions.BranchAdditions.UserDefinedCollections.SMHTT_2018_MC_Collection import MCCollection as BranchCollection from ConfigDefinitions.BranchAdditions.UserDefinedCollections.Differential_2018_Collection import Dif...
[ "aloelige@cern.ch" ]
aloelige@cern.ch
13229a7fa36de42831537b95efa97c775f649005
edf125be37a40caeb14c7fe32bd9f7511cf0ce9b
/09-manipulating-dataFrames-with-pandas/1-extracting-and-transforming-data/indexing_and_column_rearrangement.py
745bece0cdcb2ca968e8a8950bf5140557d4b32e
[]
no_license
vedpbharti/Datacamp
1d3d2ca0722a3a19733e91fa054f64e0c3b7114a
b6d019efebe1b46765f19212ba2d8ebb9d90de57
refs/heads/master
2020-04-05T05:47:28.528088
2019-02-10T22:34:00
2019-02-10T22:34:00
156,610,704
0
0
null
null
null
null
UTF-8
Python
false
false
1,135
py
'''Indexing and column rearrangement There are circumstances in which it's useful to modify the order of your DataFrame columns. We do that now by extracting just two columns from the Pennsylvania election results DataFrame. Your job is to read the CSV file and set the index to 'county'. You'll then assign a new Data...
[ "ved.bhartig@gmail.com" ]
ved.bhartig@gmail.com
f1771c403450a958403c400739cb654460474052
bb2a7aacab41acb8e804d823c98b9b4dd3267f0c
/modules/vector_distance.py
382c89c12b6bc1894a47194efedb0bf9387fc871
[ "MIT" ]
permissive
nicolasying/WordNet-Embeddings
7f9f5c57f534d5ea1db956a9e2d7f0dd178e4998
a6a5782dca97376e487df41fb83542729f284197
refs/heads/master
2020-04-21T16:58:48.668802
2019-06-11T14:10:10
2019-06-11T14:10:10
169,720,827
1
0
null
null
null
null
UTF-8
Python
false
false
6,003
py
# coding=utf-8 #! /usr/bin/env python3.4 """ MIT License Copyright (c) 2018 NLX-Group Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights...
[ "ruben.branco@outlook.pt" ]
ruben.branco@outlook.pt
4896c1d2ea4c5fa667528ba15bcffab3b2030178
295d37dcad3ad6f2cf71ded944eb1a86b3404e6b
/firstsite/learn/views.py
9093870d9a45add351fddacba712e9b8c63be4a4
[]
no_license
guwenfeng/Django
c47f9cd9d7d58b75867665a9574fc5d84235a970
86a3af2c50f85de0fe57d74224ac145e735aa960
refs/heads/master
2021-04-03T01:43:54.115874
2018-03-09T08:50:15
2018-03-09T08:50:15
124,513,609
0
0
null
null
null
null
UTF-8
Python
false
false
2,395
py
#coding=utf-8 from django.shortcuts import render,render_to_response,redirect from django.http import HttpResponse,HttpResponseRedirect,request from django.template import RequestContext from django import forms from .models import ResUser from django.db.models import Q #表单 class UserForm(forms.Form): ...
[ "guwenfengvip@163.com" ]
guwenfengvip@163.com
ce1f1e15dd9fb2cc99a49b1ed54484e2d655871c
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/cognitivelanguage/azure-ai-language-conversations/azure/ai/language/conversations/aio/_configuration.py
625f14a52e1f2f4aa3eb2678b58649f3107f1ead
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
3,531
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
487f69e10372f0cca2d9dc1ca97d415961b90453
a248ebfced3e5892d763c8fff1f5e5ebd0ffb02e
/src/shortener/migrations/0005_auto_20180813_1614.py
aafc0011e8f31d9f752193ba370df885856a28ff
[]
no_license
gauravsaxena1997/URLshortener
78b9a33ae1640ae27759085f47e72605ae8f0b94
d1350760dc0436c9a2eea0a549f030e6f4f734f7
refs/heads/master
2020-03-26T06:05:45.229523
2018-08-15T17:56:04
2018-08-15T17:56:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2018-08-13 16:14 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shortener', '0004_auto_20180813_1448'), ] operations = [ migrations.AddFiel...
[ "gauravsaxena.cs@gmail.com" ]
gauravsaxena.cs@gmail.com
513164c5b81b86296b7c191d7adb745634d4d6b1
3e306d0ec56608259e36c9fe28c95ab5bd58147c
/keras/layers/activation/leaky_relu.py
bc563705cd88ddff65155e02ca7ada49e1c43903
[ "Apache-2.0" ]
permissive
Alan-love/keras
8012319eb3f88bfb3806e9df913f62b442701137
6c392b5ad96fb47a05019e6dda42d2af1f1ec08e
refs/heads/master
2023-08-22T17:44:36.217261
2022-03-29T23:06:19
2022-03-29T23:06:50
209,978,278
0
0
Apache-2.0
2022-03-31T03:09:20
2019-09-21T12:05:44
Python
UTF-8
Python
false
false
2,538
py
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
22917a83efbde931e2a785846a9a92c36e59b834
704976ea552111c6a5af9cd7cb62b9d9abaf3996
/pypy/module/test_lib_pypy/ctypes_tests/conftest.py
fdc368945bef163758eaf608e7187c32b4663584
[ "BSD-3-Clause" ]
permissive
mesalock-linux/mesapy
4f02c5819ce7f2f6e249d34840f1aa097577645d
ed546d59a21b36feb93e2309d5c6b75aa0ad95c9
refs/heads/mesapy2.7
2023-08-16T21:33:02.239581
2019-08-13T10:29:43
2019-08-13T18:06:45
136,080,721
396
33
NOASSERTION
2020-04-01T03:05:18
2018-06-04T20:45:17
Python
UTF-8
Python
false
false
3,400
py
import py import pytest import sys import os def pytest_ignore_collect(path): if '__pypy__' not in sys.builtin_module_names: return True # XXX: copied from pypy/tool/cpyext/extbuild.py if os.name != 'nt': so_ext = 'so' else: so_ext = 'dll' def _build(cfilenames, outputfilename, compile_extra, lin...
[ "mssun@mesalock-linux.org" ]
mssun@mesalock-linux.org
409fdc1ded1a89799c4f089c66d3b135a74ab98c
6a34b039ededb2e1dcdc07c6976475654ca0ae0a
/code_all/day19/review01.py
8a5cedfdc9e72fce003c67cf1aa52efc1de9219f
[ "MIT" ]
permissive
testcg/python
57c62671ab1aad18205c1dee4457b55009cef098
4db4bd5d0e44af807d2df80cf8c8980b40cc03c4
refs/heads/main
2023-07-09T13:19:24.740751
2021-08-11T09:25:20
2021-08-11T09:25:20
394,932,987
0
0
null
null
null
null
UTF-8
Python
false
false
2,791
py
""" 总复习 - Python 核心 一、自动化内存管理机制 1. 引用计数: 每个对象记录被变量绑定(引用)的数量, 当为0时被销毁。 缺点-循环引用: 两个垃圾互相引用,但是计数不为0 2. 标记清除 全盘扫描,标记不再使用的数据 缺点-速度慢 3. 分代回收 程序运行时,将内存分为小0、中1、大2三块. 每次创建新数据,一定在0代分配空间. ...
[ "cheng@eaglesoftware.cn" ]
cheng@eaglesoftware.cn
bc19c45df8d46e53fc84287d52e1a50a79d9f27f
08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc
/src/mnistk/networks/resnetstyle_22.py
93fa67898bf4b568a507a10d0985d17c6c533350
[]
no_license
ahgamut/mnistk
58dadffad204602d425b18549e9b3d245dbf5486
19a661185e6d82996624fc6fcc03de7ad9213eb0
refs/heads/master
2021-11-04T07:36:07.394100
2021-10-27T18:37:12
2021-10-27T18:37:12
227,103,881
2
1
null
2020-02-19T22:07:24
2019-12-10T11:33:09
Python
UTF-8
Python
false
false
1,077
py
# -*- coding: utf-8 -*- """ resnetstyle_22.py :copyright: (c) 2019 by Gautham Venkatasubramanian. :license: MIT """ import torch from torch import nn from torchvision.models.resnet import BasicBlock class ResNetStyle_22(nn.Module): def __init__(self): nn.Module.__init__(self) self.f0 =...
[ "41098605+ahgamut@users.noreply.github.com" ]
41098605+ahgamut@users.noreply.github.com
390a58d4b13f9ee7281e3f5ab74fa8d5329df6c7
519aa4942b6eb6663811dd2a050f498c8d3e0f95
/Python 2.X/ZERO/GUI/Backup/Backup 1.0.pyw
6ba365f5534e462ebd99d91fcad5f01a8c949418
[]
no_license
jacobbridges/my-chaos
2b5aab5dcac703b268f03efb07fc54e9d4984f29
45837fc39f99b5f7f69919ed2f6732e6b7bec936
refs/heads/master
2020-05-20T03:21:32.747460
2016-08-13T02:12:25
2016-08-13T02:12:25
29,456,630
0
0
null
null
null
null
UTF-8
Python
false
false
5,008
pyw
import os import sys import Tkinter import tkFileDialog import tkMessageBox def main(): global master, source_dialog, destination_dialog, source_entry, destination_entry # Create the main window. master = Tkinter.Tk() master.title('Backup 1.0') master.resizable(False, False) # Create the file d...
[ "him@jacobandkate143.com" ]
him@jacobandkate143.com
7609647aad7ffa3b5252aa5069b284baa0eb4d7f
86813bf514f3e0257f92207f40a68443f08ee44b
/0378 有序矩阵中第K小的元素/0378 有序矩阵中第K小的元素.py
c74fd3302ed9d2435bde0f0195ed617c845e2b4e
[]
no_license
Aurora-yuan/Leetcode_Python3
4ce56679b48862c87addc8cd870cdd525c9d926c
720bb530850febc2aa67a56a7a0b3a85ab37f415
refs/heads/master
2021-07-12T13:23:19.399155
2020-10-21T03:14:36
2020-10-21T03:14:36
212,998,500
4
1
null
null
null
null
UTF-8
Python
false
false
935
py
#label: 二分查找 difficulty: medium """ 解题思路: 看到这种有序(或者部分有序)的数组,一般考虑使用二分查找进行优化。 开始时,左指针指向矩阵中最小元素,右指针指向矩阵中最大元素(注意:指针代表的是元素值,而不是位置), 计算矩阵中小于等于左右指针中间值的元素个数c,然后通过比较c与k的值,进行左指针或者右指针的移动。重复上述过程直到l >= r. """ class Solution: def kthSmallest(self, matrix: List[List[int]], k: int) -> int: l = matrix[0][0] r ...
[ "noreply@github.com" ]
Aurora-yuan.noreply@github.com
fd1bf15834426fd092f37b7667afda9bd7e54df2
d4ea1f9747799bf503523b86b8b5ee29bab65eff
/gyun/cli/iaas_client/actions/s2/enable_s2_shared_targets.py
eab03da093de332254257c250d9d7fe7bc891cbd
[ "Apache-2.0" ]
permissive
gyun-gome/gyun-cli
88b5493d90a19c5bf56a1bba4bf301d1b4a3156d
275b6664335e2ef21a01a48f8c06d6a89dd63467
refs/heads/master
2021-06-28T13:53:01.300135
2017-09-13T04:44:01
2017-09-13T04:44:01
103,353,093
0
0
null
null
null
null
UTF-8
Python
false
false
1,814
py
# encoding: utf-8 # ========================================================================= # ©2017-2018 北京国美云服科技有限公司 # ------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this work except in compliance with the ...
[ "lvyonggang@gomeholdings.com" ]
lvyonggang@gomeholdings.com
80e2f36e6bc596fd3d476900e6c9fe46833f12de
caaf1b0754db1e676c37a6f1e58f19183754e654
/sdk/tables/azure-data-tables/azure/data/tables/_entity.py
aa1ccae843a4eeb457a282f8013be5b4f718ea84
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
rdomenzain/azure-sdk-for-python
45dfb39121a0abda048c22e7309733a56259f525
58984255aeb904346b6958c5ba742749a2cc7d1b
refs/heads/master
2023-07-07T06:53:12.967120
2023-07-04T16:27:37
2023-07-04T16:27:37
258,050,134
0
0
MIT
2020-04-23T00:12:14
2020-04-23T00:12:13
null
UTF-8
Python
false
false
2,551
py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- from enum ...
[ "noreply@github.com" ]
rdomenzain.noreply@github.com
e12bb3c1b2e7f6ba0856850ff98c3e2c05ab5f88
95a2924dfbed2b07587c9c6516df4ac248f2586c
/Data Visualization/Bokeh/Streaming Real Time Data/random-generator.py
fdd31efee2d80d3eb98b68af91a68676a18d6868
[]
no_license
souviksaha97/Data-Science-Lab
49f50ef80dff3bcfed6f26d735707ec485a393ae
d18681460f51e83252d5b6a491b997a3600c7715
refs/heads/master
2020-12-18T19:50:00.327882
2019-06-24T17:41:20
2019-06-24T17:41:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
973
py
""" Created on Sat Feb 9 2019 @author: Nodar Okroshiashvili """ # Serve Random Number Generation in Bokeh Server #import libraries from bokeh.io import curdoc from bokeh.models import ColumnDataSource from bokeh.plotting import figure from random import randrange # Create Figure f = figur...
[ "n.okroshiashvili@gmail.com" ]
n.okroshiashvili@gmail.com
ce45e39c5d8bac1037969802999ef4d0ac487163
e3d969e2c9e4b57f4f7d58af5e44a00aa8fb15d3
/0886 Possible Bipartition.py
efd3c30cb3226e421b6cc27ccfa5dbea2357067a
[ "MIT" ]
permissive
kevin-fang/leetcode
2744ff01e791db6f60edf946ef71451fae92ef6f
3958f888b30bb3e29916880ecec49b3870a0bea3
refs/heads/master
2022-12-15T07:50:01.056016
2020-09-10T03:47:53
2020-09-10T03:47:53
294,296,037
3
0
MIT
2020-09-10T03:47:39
2020-09-10T03:47:38
null
UTF-8
Python
false
false
951
py
class Solution: def possibleBipartition(self, N: int, dislikes: List[List[int]]) -> bool: neighbors = defaultdict(set) for a,b in dislikes: neighbors[a].add(b) neighbors[b].add(a) colors = defaultdict(int) for i in range(1,N+1): ...
[ "mdabedincs@gmail.com" ]
mdabedincs@gmail.com
d5563aac9230b36f5b80103075450f10c7274578
2de2437bbf480f6518554bcb204106dd37262023
/office365/runtime/serviceOperationQuery.py
54dddc29343498b339aa8a62c19dcbc2079b3d14
[ "MIT" ]
permissive
stardust85/Office365-REST-Python-Client
386e5bba16cdee1472b7e23d405a4bf9b6f5e73a
cd369c607c7d137a000734e9c5e8f03ae3e3c603
refs/heads/master
2022-09-29T19:44:02.166438
2020-06-03T23:12:40
2020-06-03T23:12:40
269,356,313
0
0
MIT
2020-06-04T12:41:03
2020-06-04T12:41:02
null
UTF-8
Python
false
false
974
py
from office365.runtime.client_query import ClientQuery from office365.runtime.resource_path_service_operation import ResourcePathServiceOperation class ServiceOperationQuery(ClientQuery): def __init__(self, binding_type, method_name=None, method_params=None, parameter_type=None, parameter_name=No...
[ "Ajilon80!" ]
Ajilon80!
6ea6c324e5ab3ebb985b2079358f585f8734be93
76e7feaea74beb9d337885dcaa3ee59e26d9db70
/basics/nn2.py
6f9cbd8aea264996b27941a924761f4a52324c18
[]
no_license
sayantansatpati/dlf
8f9bec134212a6608f2b6854c120253677c71959
ce8b083f31cd1b4f67ea3718cbbad5cac1eff1f4
refs/heads/master
2021-01-11T15:47:02.118653
2017-11-14T21:04:19
2017-11-14T21:04:19
79,931,519
1
0
null
null
null
null
UTF-8
Python
false
false
619
py
import numpy as np def disp(a,msg): print '\n### {0}'.format(msg) print 'nDim: {0}, shape: {1}'.format(np.ndim(a), a.shape) print a[:5] X = np.array([ [0,0,1],[0,1,1],[1,0,1],[1,1,1] ]) disp(X,"X") y = np.array([[0,1,1,0]]).T disp(y,"y") syn0 = 2*np.random.random((3,4)) - 1 disp(syn0,"syn0") syn1 = 2*np...
[ "sayantan.satpati.sfbay@gmail.com" ]
sayantan.satpati.sfbay@gmail.com
f6cb4b6acd7359ae58644de8ce42a06ca40d370e
ce722f35f63d7e7af3e9890cbea50b05d32c34c7
/crawler/dspider/spiders/hkexSituationSpider.py
f5c24ebe06cbdf7bfa80ffba929a9fa2839a4b2a
[]
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
5,409
py
#coding=utf-8 import json import scrapy from datetime import datetime, timedelta from scrapy.spidermiddlewares.httperror import HttpError from twisted.internet.error import DNSLookupError from twisted.internet.error import TimeoutError from dspider.myspider import BasicSpider from dspider.items import HkexTradeOverview...
[ "hellobiek@gmail.com" ]
hellobiek@gmail.com
24050d06ae4154d502447a8ccfe7d229fa83e08b
2286b880df34e1bfabe79b3605de287040404560
/04-04/todolist/mahasiswa/views.py
7259eaec7ed0098020a0f8469da5bc93517f17b6
[]
no_license
iklimah27/praxis-academy-2
e5d8b08807980d6fd8ff6ab73caa6ea18083c7f8
925853b520c9a8d7a87d8980d7fedfa604d3b4c8
refs/heads/master
2022-12-25T01:54:45.572190
2020-10-15T07:22:06
2020-10-15T07:22:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,173
py
from django.shortcuts import render from django.shortcuts import render, redirect from . import models, forms def index(req): tasks = models.Mhs.objects.all() return render(req, 'mahasiswa/index.html',{ 'data': tasks, }) def new(req): form_input = forms.MhsForm() if req.POST: form_...
[ "hatami391998@gmail.com" ]
hatami391998@gmail.com
0b25adda0ddd3b445d9fee6ae58a58302663df91
f8457b044305b5ef4944ab649c44268e9a32a0bc
/data/ship/color_gen.py
7a85a179f64da38b63c1d1d1d76d5e6716e7f723
[ "MIT" ]
permissive
PcloD/PixelShipGenerator
163d2b2d7d1f9eea2d316c2d7d9c29d1c84d581a
33e4fa004890f388cd679bbbb6837bcc05465bbe
refs/heads/master
2020-05-05T08:19:39.968725
2016-12-19T00:45:10
2016-12-19T00:45:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,774
py
from random import * class ColorPalette(object): def __init__(self, num, variance=30): self.num = num self.variance = variance self.base = self.set_random_color() self.palette = self.set_palette() def set_palette(self): palette = { 1: self.base, ...
[ "marzecsean@gmail.com" ]
marzecsean@gmail.com
8d07dbb7d243048f69e7a6b17948b087345934c2
7e0cdabf1e7514fb0e3d53548eaadd7be85ae5e6
/configs/helmet/merge/faster_rcnn_mobilenetv2_64_fpn_2x.py
a668d159c1d3ba2cfd6199b16e82ba9a061d865f
[ "Apache-2.0" ]
permissive
fanqie03/mmdetection.bak
ce2697f3a0ca5603d923856fbdc8b7bb32066939
0bc0ea591b5725468f83f9f48630a1e3ad599303
refs/heads/master
2023-05-12T02:44:11.209749
2020-03-09T01:58:39
2020-03-09T01:58:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,419
py
# model settings model = dict( type='FasterRCNN', pretrained='torchvision://mobilenet_v2', backbone=dict( type='MobileNetV2', out_indices=(3, 6, 13, 18)), neck=dict( type='FPN', in_channels=[24, 32, 96, 1280], out_channels=64, num_outs=5), rpn_head=dic...
[ "1242733702@qq.com" ]
1242733702@qq.com
c5e37668b4e5631218e5d75f9260e597329993b2
7296c1214741a8cd3e2b70c90de6784d9fa53dba
/Assignments/Assignment_2/score.py
7fd043b850098a87a8580534f7d2b08d979708c8
[]
no_license
msaad1311/MLOps
949912c5417db5c08ce69df46867c3e84b90f810
484f2124cd84472c7971d428982507b9215a400f
refs/heads/main
2023-03-29T12:13:38.286713
2021-03-30T14:01:57
2021-03-30T14:01:57
349,442,396
0
0
null
null
null
null
UTF-8
Python
false
false
1,788
py
import preprocessing_functions as pf import config # =========== scoring pipeline ========= # impute categorical variables def predict(data): # extract first letter from cabin data['cabin']=pf.extract_cabin_letter(data,'cabin') # impute NA categorical data[config.CATEGORICAL_VARS]=pf.impute_na(d...
[ "50722220+msaad1311@users.noreply.github.com" ]
50722220+msaad1311@users.noreply.github.com
7dc978fbff839ff4c2fc09ba79dd84913b12d20a
fbcac9ff8664e857e1f7d5409b170a23f432763f
/tests/test_util.py
4466050d91c1fb68eb4969ac37cebed560b4c6ea
[]
no_license
claraj/iss_slack_bot
289d4af3cf108e888db3170048d7aa491984f759
8e36e81d8d571dfceb7e40ede44ca720fc699e50
refs/heads/master
2021-09-06T08:59:07.966377
2018-02-04T17:01:53
2018-02-04T17:01:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,471
py
from unittest import TestCase from utils import in_future from datetime import datetime, timedelta import time # Testing functions unrelated to GAE features class TestInFuture(TestCase): def setUp(self): self.now = datetime.today() self.add_ten_seconds = timedelta(seconds = 10) self.add_...
[ "clara@clara.com" ]
clara@clara.com
753f1bc6189e0ee7037082baa53044333b792640
275a96a33ae1f89e7b2ee0ecdbac7d78abe6d6cc
/test/test_pos_api.py
8c2788266c7397b2d42f5f30041879ecad09d054
[]
no_license
cascadiarc/cyclos-python-client
8029ce07174f2fe92350a92dda9a60976b2bb6c2
a2e22a30e22944587293d51be2b8268bce808d70
refs/heads/main
2023-04-03T16:52:01.618444
2021-04-04T00:00:52
2021-04-04T00:00:52
354,419,532
0
0
null
null
null
null
UTF-8
Python
false
false
1,602
py
# coding: utf-8 """ Cyclos 4.11.5 API The REST API for Cyclos 4.11.5 # noqa: E501 OpenAPI spec version: 4.11.5 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import swagger_client from swagger_client.api.pos_api im...
[ "dan@leftcoastfs.com" ]
dan@leftcoastfs.com
b49cd004b6a2b08e9956b2115e38c5393bc16c91
9919439783a3d9ec7a4435e50e0225ea1d6f2b69
/django_rest_json_api_example/models.py
f5f2ab812b4f5594b6975c8ef4dc23d0ff0dd16c
[]
no_license
newcontext-oss/django-rest-json-api
19c2e5210c59d02eee88afb3061761f02f4037d6
107ef896397d93715d9f3eed34fcb6f14d5893b9
refs/heads/master
2021-01-15T20:27:51.771682
2017-10-02T18:41:28
2017-10-02T18:41:28
99,850,109
1
0
null
null
null
null
UTF-8
Python
false
false
970
py
""" Django ORM models for the JSON API examples. """ import uuid from django.db import models class Person(models.Model): """ JSON API example person model. """ uuid = models.UUIDField(default=uuid.uuid4()) first_name = models.CharField(max_length=255) last_name = models.CharField(max_lengt...
[ "me@rpatterson.net" ]
me@rpatterson.net
5ceec9be34f8bee06d3162cec9aacb9cb4578b59
eb9af63f5874345c03b567a944e2cb67ec8995d5
/leetcode/binarySearch/findminimumValueinSortedRotatedWIthDuplicate.py
2731d45cce9d2ad7025bb28d97bc1d079678bb36
[]
no_license
ziqingW/pythonPlayground
262fc143c7997fb9f9a9b148359c4d2c7de84fc7
3aab1747a1e6a77de808073e8735f89704940496
refs/heads/master
2021-01-25T13:41:56.494266
2019-03-10T02:48:04
2019-03-10T02:48:04
123,607,323
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
# Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand. # (i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]). # Find the minimum element. # The array may contain duplicates. class Solution: def findMin(self, nums): """ :type nums: List[int] :...
[ "redtaq@hotmail.com" ]
redtaq@hotmail.com
2c1513fb42947cf5ca374844cd41d2a4d4ae5bfd
ad13583673551857615498b9605d9dcab63bb2c3
/output/models/ms_data/attribute_group/attg_d018_xsd/__init__.py
624bfe9285086da05657bad0b2b20d96f60e002a
[ "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
141
py
from output.models.ms_data.attribute_group.attg_d018_xsd.attg_d018 import ( AttgRef, Doc, ) __all__ = [ "AttgRef", "Doc", ]
[ "tsoulloftas@gmail.com" ]
tsoulloftas@gmail.com
2aba281c8d4b6dee7d96c653a117739563d1e6bd
89ba6569e82bfe1abbb85f58c3a264240ef5b68f
/Scripts/calc_SNA_Data_Eurasia_CDRSCE.py
375ff378a7d20bed12ffd1dcee10ec43332aa0ea
[ "MIT" ]
permissive
muskanmahajan37/AMIP_Simu
b3792c24f2f82749ac4d9df48a11bb46d2b82236
6370626fe81baf5c2280dab95fdab08a873f3a84
refs/heads/master
2022-02-08T08:09:08.575967
2019-07-25T22:29:34
2019-07-25T22:29:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,914
py
""" Script calculates Eurasian snow area index for October-November using data from the Rutgers Global Snow Lab data Notes ----- Author : Zachary Labe Date : 25 July 2019 """ ### Import modules import datetime import numpy as np import matplotlib.pyplot as plt import scipy.stats as sts import scipy.signal a...
[ "zlabe@uci.edu" ]
zlabe@uci.edu
9d57190c339f4d7c406c41b3ab2a49e9f86c568c
26e3d85a3b61219e13f794289ff2b70baa248f14
/material/frontend/views/detail.py
0bad092ff2ef47b543351b523af9a399ee2695e5
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
viewflow/django-material
ac8dd10daa8352440845c767b07cafc7f7d09216
31b1ce5f6fecc10ba4c9babe4219fb7be97dbf93
refs/heads/master
2023-08-15T23:32:58.330321
2023-04-12T06:12:07
2023-04-12T06:12:40
29,337,344
2,818
570
BSD-3-Clause
2023-03-04T02:28:50
2015-01-16T07:17:33
CSS
UTF-8
Python
false
false
5,692
py
from __future__ import unicode_literals from django.contrib.auth import get_permission_codename from django.core.exceptions import PermissionDenied, ValidationError from django.db import models from django.http import Http404 from django.urls import reverse from django.views import generic class DetailModelView(gene...
[ "kmmbvnr@gmail.com" ]
kmmbvnr@gmail.com
f0177181db3771cd7db55d41e5558003f6dee2c1
478de38a95c2729ee2ef8c77b1c5a81f23aedb59
/Programming-Algorithm/Factorial Trailing Zeroes.py
b0bbec923fa02afbe6ed300d334715b8a0dfae98
[]
no_license
shuzhancnjx/leetcode-
0c711f720ef653ddff2af3af697a453122c28403
12093c92ef33707ad8ccdd59ad040c04cad1ee3b
refs/heads/master
2020-12-24T16:32:25.976747
2016-03-03T15:36:44
2016-03-03T15:36:44
37,101,621
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
# -*- coding: utf-8 -*- """ Created on Thu Sep 24 17:00:01 2015 @author: ZSHU """ """ a simple algorithm based on the wiki. """ class Solution(object): def trailingZeroes(self, n): """ :type n: int :rtype: int """ res=0 for i in xrange(1, n): if 5**i<=...
[ "zshu@ets.org" ]
zshu@ets.org
bc7cd024c8017f602b40f68ae8f58135a8d780cf
df1306cdc82ccbe730d77d78740004abc10bb492
/src/main/python/config.py
d0b40c696caac30b756c79c5e59af50081cb0bc7
[]
no_license
richburdon/flask-demo
cc656c3c750977c8ee2a312554fda146d83919d3
16f346f77af7824807e8e30ed9c92ceab55cfa82
refs/heads/master
2020-03-27T23:17:30.220307
2015-08-02T18:07:10
2015-08-02T18:07:10
38,577,472
0
0
null
null
null
null
UTF-8
Python
false
false
438
py
# # Copyright 2015 Alien Laboratories, Inc. # import flask import flask.views from injector import Key, Module, inject, singleton CONFIG = Key('configuration') @singleton @inject(app=flask.Flask) class ConfigModule(Module): def configure(self, binder): binder.bind(CONFIG, { 'app': { ...
[ "EMAIL" ]
EMAIL
1890b3225e9fecb70d999a6c4e8c5668902b71fc
ce196aba0adde47ea2767eae1d7983a1ef548bb8
/txtFile_覆盖式生成文件3_姓名生成.py
81646a132236fad56879debd3ae1c06fee1131f6
[]
no_license
xiang-daode/Python3_codes
5d2639ffd5d65065b98d029e79b8f3608a37cf0b
06c64f85ce2c299aef7f9311e9473e0203a05b09
refs/heads/main
2023-08-30T14:59:55.123128
2021-11-03T05:12:24
2021-11-03T05:12:24
333,632,892
0
2
null
null
null
null
UTF-8
Python
false
false
326
py
# txtFile_覆盖式生成文件: import random f = "myTest.txt" a =range(200) with open(f,"w") as file: #"w"代表着每次运行都覆盖内容 for m in a: rnd1=int(20902*(random.random())) rnd2=int(20902*(random.random())) file.write(str(m)+":\t 项"+chr(0x4e00+rnd1)+chr(0x4e00+rnd2)+"\n")
[ "noreply@github.com" ]
xiang-daode.noreply@github.com
9d2c2c7b6917bdaaba2e101d20bd9c5cd9fd32c0
f58e6240965d2d3148e124dcbdcd617df879bb84
/tensorflow_datasets/core/community/load.py
2718ecb5588a9c29696143b81ddbd0feec48c6cd
[ "Apache-2.0" ]
permissive
suvarnak/datasets
b3f5913cece5c3fe41ec0dde6401a6f37bfd9303
3a46548d0c8c83b2256e5abeb483137bd549a4c1
refs/heads/master
2022-09-27T03:38:20.430405
2022-07-22T15:21:33
2022-07-22T15:27:07
176,061,377
0
0
Apache-2.0
2019-03-17T05:45:33
2019-03-17T05:45:32
null
UTF-8
Python
false
false
2,465
py
# coding=utf-8 # Copyright 2022 The TensorFlow Datasets Authors. # # 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 appl...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
415268d2f1f79abf144496915ce9c4b774eb9e79
147e022b38e05fb2f6967aa4d5e50816221f8bf5
/matches/middleware.py
e4dbf0afe8f40b927f4991ce1b29b5f4ad73d44c
[]
no_license
Shirhussain/Meet-your-match
a542f0fdcab573ba70740bfbd8d2bb6c2603bdc9
fd9a8beabe7288aca6fae07f1a7bc0b68c0223a8
refs/heads/main
2023-02-25T20:30:22.647930
2021-02-04T08:02:05
2021-02-04T08:02:05
332,492,486
0
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
from django.contrib import messages from django.urls import reverse from django.conf import settings from django.shortcuts import HttpResponseRedirect URLS = [reverse(url) for url in settings.SUBSCRIPTION_REQUIRED_URLS] class CheckMembership: def __init__(self, get_response): self.get_response = get_resp...
[ "sh.danishyar@gmail.com" ]
sh.danishyar@gmail.com
c8aff798a0c522cfd15ef26a74275128a8d4fc8a
e298bf40ae88c2bd8e0a07f3e92f3e08a92edcc6
/keystoneauth1/fixture/keystoneauth_betamax.py
724d217d4b7bddbb6cda5bc1c31935af4f359787
[]
no_license
KevinKaiQian/polar-bear
46a814c746246394f76505846166673a049f12f2
61d4e0ccd7328a6aa543af3b75e5f7fedf98bf8e
refs/heads/master
2022-04-29T02:15:35.536039
2021-05-19T12:33:07
2021-05-19T12:33:07
172,068,536
2
0
null
2022-03-29T21:56:51
2019-02-22T13:11:58
Python
UTF-8
Python
false
false
2,976
py
# 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 or agreed to in writing, software # distributed under t...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
84751391d9a0d6fb8e19ee5ccd599e6882cd26df
40e7156576ad93db1f0dcab62ec3bb6042576166
/Termux/python/Mergeall/test/ziptools/zip-extract.py
dc8a5fd4d5ae165ebb55f3e6dd9fdcb43e83d452
[]
no_license
WeilerWebServices/Gists
c5d12093d620abc8152e8e8214a2000832969421
506fae2f3f9568ecd73ba373f35ac5fda054520e
refs/heads/master
2023-02-17T18:00:07.721504
2021-01-11T02:19:44
2021-01-11T02:19:44
272,584,650
2
2
null
null
null
null
UTF-8
Python
false
false
6,823
py
#!/usr/bin/python """ ============================================================================= Command-line ziptools wrapper and client (for Python 3.X or 2.X). Extract a zip file, with: <python> zip-extract.py [zipfile [unzipto] [-nofixlinks]] Where: "zipfile" is the pathname of an existing zipfile (a ".zip...
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
73397cdefaa3f889a395f6445034301d0a731cbc
bde6ed092b7b29703737e11c5a5ff90934af3d74
/AtCoder/ABC/128/a.py
a9866e7e31e1d163626daae9c34501fc2c277bec
[]
no_license
takecian/ProgrammingStudyLog
2ab7ea601e0996b3fa502b81ec141bc3772442b6
94485d131c0cc9842f1f4799da2d861dbf09b12a
refs/heads/master
2023-04-28T16:56:18.943574
2023-04-18T06:34:58
2023-04-18T06:34:58
128,525,713
4
0
null
2022-12-09T06:15:19
2018-04-07T12:21:29
Python
UTF-8
Python
false
false
219
py
# import itertools from collections import Counter from collections import defaultdict import bisect def main(): A, P = map(int, input().split()) print((A * 3 + P) // 2) if __name__ == '__main__': main()
[ "takecian@gmail.com" ]
takecian@gmail.com
c863d3bd856aea04083da417daf952d5564beed7
0bf5e600ac0bd860919d4e43e8ccd55057a9e899
/Python Files/sunni_keydown.py
2787b80c178a36b079a878127a86adb701c19a9d
[]
no_license
AndyDeany/Sunni
3f4dc0d9ffdec864c5340d5fbc45c18f470c5165
3dbe0f0f8f25c1c3cff024ffadf1a2ca76cbadd0
refs/heads/master
2020-12-25T14:14:01.610017
2016-10-04T12:48:06
2016-10-04T12:48:06
66,398,293
0
0
null
null
null
null
UTF-8
Python
false
false
3,508
py
keys = pygame.key.get_pressed() # Miscellaneous backspace_held = keys[8] tab_held = keys[9] enter_held = keys[13] pausebreak_held = keys[19] escape_held = keys[27] space_held = keys[32] apostrophe_held = keys[39] comma_held = keys[44] minus_held = keys[45] fullstop_held = keys[46] forwardslash_held = keys[4...
[ "oneandydean@hotmail.com" ]
oneandydean@hotmail.com
c93f0d01307038fa67436b4424d1db481e3e53c9
69bf192eb08f2c49093d2b63e5ef16a5b4028848
/ved/vedomosti/MainApp/migrations/0006_auto_20160721_2321.py
b687bb0c52eb40b21ffd1d1998613a87a5bb35f6
[]
no_license
jsay-api/vedomosti
c7aac45684142f428e3ffb6cb29aff9d77a999e3
5255d44386afbe06965b79c50547dcb80a59029f
refs/heads/master
2021-01-17T18:09:02.543349
2016-07-21T20:32:34
2016-07-21T20:32:34
63,365,926
0
0
null
null
null
null
UTF-8
Python
false
false
512
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-21 20:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('MainApp', '0005_auto_20160721_2319'), ] operations = [ migrations.AlterField...
[ "julia.sayapina@me.com" ]
julia.sayapina@me.com
4ded9ca09dbfbb9b99301b5899ee6c07d0abcb31
81407be1385564308db7193634a2bb050b4f822e
/library/lib_study/112_netdata_binascii.py
842c2712049f85a402b204d0cd455f742cd69bb0
[ "MIT" ]
permissive
gottaegbert/penter
6db4f7d82c143af1209b4259ba32145aba7d6bd3
8cbb6be3c4bf67c7c69fa70e597bfbc3be4f0a2d
refs/heads/master
2022-12-30T14:51:45.132819
2020-10-09T05:33:23
2020-10-09T05:33:23
305,266,398
0
0
MIT
2020-10-19T04:56:02
2020-10-19T04:53:05
null
UTF-8
Python
false
false
435
py
# 二进制和 ASCII 码互转 https://docs.python.org/zh-cn/3/library/binascii.html """ binascii 模块包含很多在二进制和二进制表示的各种ASCII码之间转换的方法。 通常情况不会直接使用这些函数,而是使用像 uu , base64 ,或 binhex 这样的封装模块。 为了执行效率高,binascii 模块含有许多用 C 写的低级函数,这些底层函数被一些高级模块所使用。 """
[ "350840291@qq.com" ]
350840291@qq.com
21ae1362833a5c039555dc1eb6113024b53fed68
bd4535b2ff5fc80234eed709f46da53b9ab260cf
/Packs/OSQuery/Scripts/OSQueryBasicQuery/OSQueryBasicQuery.py
6efabf7dae8ae8298e237cf0d2e9bdbfe70d5657
[ "MIT" ]
permissive
vibhuabharadwaj/content
0641284c862668b577e82e32e2daecdb9fabb39a
518da763814fefce538379560282ff8c2ce661b9
refs/heads/master
2023-03-07T21:36:31.768989
2022-09-28T15:50:46
2022-09-28T15:50:46
202,795,410
1
0
MIT
2023-03-06T17:25:01
2019-08-16T20:30:23
Python
UTF-8
Python
false
false
1,188
py
import json import demistomock as demisto # noqa: F401 from CommonServerPython import * # noqa: F401 # ssh command to run, json format, param = query to execute COMMAND = 'osqueryi --json "{0}"' def main(): systems = argToList(demisto.args().get('system')) query = demisto.args().get('query') res = []...
[ "noreply@github.com" ]
vibhuabharadwaj.noreply@github.com
5f9ff53c21a585394ade8a312d386efe615fa801
def2fee9dd1476bb4d782178bffa7d5d34fbbd13
/nb_autoimports/__init__.py
83a3fd5f2332cd4681a1fe5abd646602a188e248
[ "MIT" ]
permissive
sshh12/nb_autoimports
0f6298e7d11434bb5a8ca98f44e9460129ccbf4c
693c73b07af1882f97c957a0813db42926433978
refs/heads/main
2023-05-24T08:15:48.298366
2021-06-08T23:18:12
2021-06-08T23:18:12
374,137,829
0
0
null
null
null
null
UTF-8
Python
false
false
186
py
from .auto_import import AutoImporter def load_ipython_extension(ip): # TODO: unload function ai = AutoImporter(ip) ip.events.register("post_run_cell", ai.on_post_run_cell)
[ "shrivu1122@gmail.com" ]
shrivu1122@gmail.com
10ff6d612cda6c48feb8e0551c17ebcc01eadad7
bd86f45ec9355cf1b76c25307d77c85ff98d30a8
/lib/common/color.py
1edf3cccfedc2eb0e95268f309e00c535b7eac49
[ "MIT" ]
permissive
WhySoGeeky/DroidPot
fd39abe490117283f992d80f317574f47809de8d
7c3d9e975dae3835e2ccf42c425d65b26466e82a
refs/heads/master
2021-07-02T12:47:16.269514
2015-11-03T17:49:41
2015-11-03T17:49:41
45,484,292
6
0
MIT
2021-06-10T17:59:45
2015-11-03T17:44:48
Python
UTF-8
Python
false
false
615
py
__author__ = 'RongShun' import os import sys def color(text, color_code): if sys.platform == "win32" and os.getenv("TERM") != "xterm": return text return "\x1b[%dm%s\x1b[0m" % (color_code, text) def green(text): return color(text, 32) def yellow(text): return color(text, 33) def white(text)...
[ "phobiatrs@gmail.com" ]
phobiatrs@gmail.com
43634a4192a6b1de1987f2c7343b04f81c9ab576
b62ba918b0b96e682d811aa79d0f34ffa50e784c
/shop/catalog/models.py
0e6804f4c1d6e88a043bf6d32137738765467f99
[]
no_license
MaksimLion/django-furniture-shop
8ee3edb584cf670c7893c7b836037b97aefafcb2
14a5160b29a06947fab7aae7dda15829c1dcf23f
refs/heads/master
2020-04-24T22:38:26.514663
2019-03-10T09:37:06
2019-03-10T09:37:06
172,318,760
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
from django.db import models class Furniture(models.Model): TYPES = ( ('kitchens','КУХНИ'), ('showcases','ВИТРИНЫ'), ('wardrobes','ШКАФЫ-КУПЕ'), ('offices','МЕБЕЛЬ ДЛЯ ОФИСА'), ('hallways','ПРИХОЖИЕ'), ('lounges','ГОСТИНЫЕ'), ('child','ДЕТСКИЕ'), ('...
[ "maxim226356@mail.ru" ]
maxim226356@mail.ru
08df8cd4acefaf74f1039287b5260de31247f5da
ec61946a176935044d08cf1244d2185f2460df32
/pyleecan/Methods/Slot/SlotM11/get_surface_active.py
42e164a216dc443c271c333537ee71a505c481e6
[ "Apache-2.0" ]
permissive
Lunreth/pyleecan
d3974a144cb8a6c332339ab0426f1630b7516fc9
1faedde4b24acc6361fa1fdd4e980eaec4ca3a62
refs/heads/master
2023-06-07T01:46:32.453763
2021-07-01T21:29:51
2021-07-01T21:29:51
383,880,732
1
0
Apache-2.0
2021-07-07T17:47:01
2021-07-07T17:47:01
null
UTF-8
Python
false
false
1,691
py
# -*- coding: utf-8 -*- from numpy import linspace, zeros from ....Classes.Arc1 import Arc1 from ....Classes.Segment import Segment from ....Classes.SurfLine import SurfLine def get_surface_active(self, alpha=0, delta=0): """Return the full active surface Parameters ---------- self : SlotM11 ...
[ "pierre.bonneel@gmail.com" ]
pierre.bonneel@gmail.com
af004c090784e8fe7a38327a0699f3f1bee2b802
179d8aae260d20443e6e87613cff55d42587bc16
/examples/x2oneflow/pytorch2oneflow/nodes/test_reduction.py
34c6292c3b266174d612648e742d5a682ce50c30
[]
no_license
666DZY666/oneflow_convert_tools
3b1f9d6ebaf154d7218236c332c6f9613b89a860
bb38c52954facbfe977e09c7e4706b7563a7b50c
refs/heads/main
2023-06-04T10:16:08.786531
2021-06-24T08:38:24
2021-06-24T08:38:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,206
py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
[ "1182563586@qq.com" ]
1182563586@qq.com
276d5cb7c2f08b0c622a30d2a0ad6d9e5ebab54b
55ceefc747e19cdf853e329dba06723a44a42623
/_CodeTopics/LeetCode/801-1000/000954/WA--000954.py3
12cb53000239ceb19cbc5b6fee2b54a6673848bf
[]
no_license
BIAOXYZ/variousCodes
6c04f3e257dbf87cbe73c98c72aaa384fc033690
ee59b82125f100970c842d5e1245287c484d6649
refs/heads/master
2023-09-04T10:01:31.998311
2023-08-26T19:44:39
2023-08-26T19:44:39
152,967,312
0
1
null
null
null
null
UTF-8
Python
false
false
1,274
py3
class Solution: def canReorderDoubled(self, arr: List[int]) -> bool: if arr.count(0) & 1 or sum(elem < 0 for elem in arr) & 1: return False arr = filter(lambda x : x != 0, arr) arr = map(abs, arr) ctr = Counter(arr) deleted = defaultdict(int) keys = list...
[ "noreply@github.com" ]
BIAOXYZ.noreply@github.com
7bff1f662a66130a50f13bd63bbeb32866d217a1
92187fc72f613751e9d215bc1db8fe1bba4b83bc
/src/home/migrations/0013_car.py
9c675273b9a0d56370b376e831e68bb22653c9bf
[]
no_license
bhubs-python/istehar
33cb0abeeb4c8da1f1721eee5f0f380c086f4a66
3e1679f1b1b17f6e21aff4923d1d5dbcf687fc66
refs/heads/master
2021-09-10T16:26:31.464986
2018-03-29T08:06:15
2018-03-29T08:06:15
123,160,263
0
1
null
null
null
null
UTF-8
Python
false
false
1,085
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2018-03-11 10:37 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0012_audiomp3'), ] operations = [ migrations.CreateModel( ...
[ "mubarak117136@gmail.com" ]
mubarak117136@gmail.com
9c0ecdb04410180dded57b66e4abaa2e72494082
50910ddbbbf57cdbf4d40a404fc2672e8a4b340a
/application.py
e6c3db90918404f80393c32bf61cf2ea20c5f923
[]
no_license
aes95/cs50-web-2018-x-projects-1
c5ea9255ae1a986b3ab7c9bf166267afdfea49c9
3463c48c46a2a1a849c21653a37058c54d660c96
refs/heads/master
2020-04-16T11:02:22.218936
2019-01-14T00:14:00
2019-01-14T00:14:00
165,521,869
0
0
null
null
null
null
UTF-8
Python
false
false
4,961
py
import os, requests, xml.etree.ElementTree from flask import Flask, session, render_template, request, jsonify from flask_session import Session from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker app = Flask(__name__) # Check for environment variable if not os.getenv("DATABA...
[ "you@example.com" ]
you@example.com
8c90d597c7ceb9a5f6d6cf86f71da32121e3b905
d0a84d97aaa8dcc2dff4a6b33ce98dee6d474496
/com.CheckProofing/2020/Test_w_45_HolidayDeals_T1_Actives/test_w45_CCcheck.py
a9f1f29bcb011c9ba984670d8e1baea2714e1275
[]
no_license
ahmed-test001/python
21a27248c4571a13c0ed4dccab256aede1beea3a
eab59b9a54fae1a51fbc18c391599eb3b0e28b3d
refs/heads/master
2023-03-10T21:00:54.634028
2021-02-27T05:31:58
2021-02-27T05:31:58
342,778,794
0
0
null
null
null
null
UTF-8
Python
false
false
4,821
py
import time import unittest import sys import os import logging import warnings from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from PageClass.UrlSegmentPage import URL...
[ "ahmedu.ferdous@gmail.com" ]
ahmedu.ferdous@gmail.com
65752b9d1bb71f04389f6f784306953871c845e6
51a6413af4995a221bb7cf9bce20a00acedcff9d
/snakify-problems-python/ALL/10_09_polyglotes.py
2fb598e6e525c544190b13d43f6f67e7916ff2fe
[]
no_license
famaxth/Way-to-Coding
4dff099de31c1a5870cf72a2aaaab74fdcbfed36
bcb2048898edf418b059ec506eb5ad1507889cfb
refs/heads/main
2023-08-15T19:34:16.510571
2021-10-08T04:53:42
2021-10-08T04:53:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
868
py
n = int(input()) # количество учеников lang_nums = [0] * n # количество языков для каждого ученика langs = [] # наименования языков, для каждого из учеников for i in range(n): lang_nums[i] = int(input()) l = set() for j in range(lang_nums[i]): l.add(input()) langs.append(l) uni = set.union(*lan...
[ "jobin25051999@gmail.com" ]
jobin25051999@gmail.com
566c733da6a9ca4011ffcaa3a1e35a486b6be7df
09cead98874a64d55b9e5c84b369d3523c890442
/py200727_python2/day33_py208024/module_2.py
4a804c01cc95026ad482d2195c3fca507f0ab18f
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
""" module 2 from...import from...import statement """ from py200727_python2.day33_py208024.myfunc import add print(add(1,2)) # import math from math import sqrt result = sqrt(4) print(result) # from math import * print(gcd(12,4)) print(ceil(3.4)) print(fabs(5.1))
[ "lada314@gmail.com" ]
lada314@gmail.com
2d3085eafbaea0f942754274f2975d8c59f460f2
ff487fe5f2956bac2f80ee8f515a17f4fad4bd07
/apps/alerts/urls.py
d032c1db6e513c613eead5b8c9970cbafe511ef7
[]
no_license
101t/django-lms
8c11c28321675c52a82f5111912e58ed4edf221f
4bee87f299c588b8ad0145bff3b82a51f89b4cac
refs/heads/master
2021-11-24T22:44:39.401464
2021-11-16T20:45:33
2021-11-16T20:45:33
219,135,709
1
2
null
2021-11-16T06:49:56
2019-11-02T10:07:43
HTML
UTF-8
Python
false
false
287
py
from django.urls import path from django.contrib.auth.decorators import login_required from .views import AlertList, acknowledge app_name = "alerts" urlpatterns = [ path('', login_required(AlertList.as_view()), name='list'), path('acknowledge/', acknowledge, name='acknowledge'), ]
[ "tarek.it.eng@gmail.com" ]
tarek.it.eng@gmail.com
a0126bed627d15a32c8e0da5723ce62e338341f9
de56ee2369d36c93ad802f0359f3274b9a3f0a25
/photos/utils.py
c2c4b34843b95f366d0f71718aee276495d84c97
[]
no_license
Anubhav722/asynchronous-celery-tasks
bdfd485b6c6b2777a4712ad64ebabf347e717654
a21f055e8e524db662d21f60dac2f8daab075f63
refs/heads/master
2021-01-23T00:45:41.631402
2017-05-31T10:47:44
2017-05-31T10:47:44
92,840,568
0
0
null
null
null
null
UTF-8
Python
false
false
1,083
py
import json import requests from photos.models import Photo from django.conf import settings def get_latest_flickr_image(): """ Grabs the latest image from the flick public image feed """ url = settings.FLICKR_JSON_FEED_URL r = requests.get(url) page_content = r.text # It turns out flickr escapes single quote...
[ "anubhavs286@gmail.com" ]
anubhavs286@gmail.com
55b79e0d9a0de22080a98b43b205b927f983600f
4ff8676136167cdd81d7a983272102fff86360e8
/python/面试题 08.06. 汉诺塔问题.py
5b98a8435f155bdd5b6ff5e032c3e17d3a9fbe93
[]
no_license
geniuscynic/leetcode
0ec256af2377d19fee22ce736462a7e95e3f4e67
379a8f27f8213951ee8be41bd56598036995d267
refs/heads/master
2023-07-19T07:22:20.001770
2021-09-07T14:50:40
2021-09-07T14:50:40
297,277,833
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
import sys from collections import defaultdict from collections import Counter class Solution: dicts = {} def helper(self, n, A, B, C): if n == 1: C.append(A.pop()) return self.helper(n - 1, A, C, B) C.append(A.pop()) self.helper(n - 1, B, A, C)...
[ "350810375@qq.com" ]
350810375@qq.com
aa69c7a051939ec0e565da4a832fe5aa529aee8d
8b0d9eb0c04426f544e34726981643dbe7b91bdc
/TestBotDeploy/Bot/settings.py
6e1ec557579fbb81e8b85387857ed5cf04e4e321
[]
no_license
VicGjb/bot
555777661115c3ebf33169ed9d5f61a8f2a1bbbb
ad3cecbec46f5b78dd97e9a4d04d527bed853e14
refs/heads/master
2023-03-04T07:51:38.049016
2021-02-14T19:08:10
2021-02-14T19:08:10
324,197,624
0
0
null
null
null
null
UTF-8
Python
false
false
3,306
py
""" Django settings for Bot project. Generated by 'django-admin startproject' using Django 3.1.4. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib imp...
[ "=" ]
=
39f7c29ea95996c14613d1e200fbe93a42a90aa3
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_braces.py
f13585bba0e3d0198f64068b01917659abec0f3c
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
218
py
#calss header class _BRACES(): def __init__(self,): self.name = "BRACES" self.definitions = brace self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['brace']
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
4fee162a9707bcfbb449862ff68c9713ae67654a
f0316e656767cf505b32c83eef4df13bb9f6b60c
/LeetCode/Python/Medium/1476_subrectangle_queries.py
aac76bf6f8f0c4ead16e60f36d62d2a45052f2d8
[]
no_license
AkshdeepSharma/Classroom
70ec46b35fab5fc4a9d2eac430659d7dafba93da
4e55799466c101c736de6c7e07d716ff147deb83
refs/heads/master
2022-06-13T18:14:03.236503
2022-05-17T20:16:28
2022-05-17T20:16:28
94,828,359
1
0
null
null
null
null
UTF-8
Python
false
false
646
py
class SubrectangleQueries: def __init__(self, rectangle: List[List[int]]): self.rectangle = rectangle def updateSubrectangle(self, row1: int, col1: int, row2: int, col2: int, newValue: int) -> None: for i in range(row1, row2 + 1): for j in range(col1, col2 + 1): sel...
[ "akshdeep.sharma1@gmail.com" ]
akshdeep.sharma1@gmail.com
c3452dd8aecdacf3bd2f698102e86b7017748a11
df541a802b2dfa89d3aab14af627358dc7c76e6e
/APP自动化/App/StoneUIFramework/public/setting/系统设置/退出/_Logout.py
74aa1a7a16757b9144ada4802842241e26290418
[]
no_license
gupan2018/PyAutomation
de966aff91f750c7207c9d3f3dfb488698492342
230aebe3eca5799c621673afb647d35a175c74f1
refs/heads/master
2021-09-07T19:44:20.710574
2017-12-22T15:58:23
2017-12-22T15:58:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,031
py
__author__ = 'Administrator' #登出确认页 from StoneUIFramework.public.setting.系统设置._Syssetting import _Syssetting import logging class _Logout(_Syssetting): def Syssetting_logout_confirm(self): #定位:设置-系统安全-退出-确定 try: __Syssetting_logout_confirm = self.driver.find_element_by_id("android:id/bu...
[ "610077670@qq.com" ]
610077670@qq.com
87ccf88abce864ab8fdb05be5339c0883908d290
ab621c65fc91f5194c4032d68e750efaa5f85682
/l10n_th_account_tax_detail/__openerp__.py
bd15f29f96dcd2ad04cab3560b4c476f85ba1f8a
[]
no_license
pabi2/pb2_addons
a1ca010002849b125dd89bd3d60a54cd9b9cdeef
e8c21082c187f4639373b29a7a0905d069d770f2
refs/heads/master
2021-06-04T19:38:53.048882
2020-11-25T03:18:24
2020-11-25T03:18:24
95,765,121
6
15
null
2022-10-06T04:28:27
2017-06-29T10:08:49
Python
UTF-8
Python
false
false
754
py
# -*- coding: utf-8 -*- { 'name': "Invoice Tax Detail", 'summary': "Allow editing tax table in detail", 'author': "Ecosoft", 'website': "http://ecosoft.co.th", 'category': 'Account', 'version': '0.1.0', 'depends': [ 'account', 'l10n_th_account', 'account_invoice_chec...
[ "kittiu@gmail.com" ]
kittiu@gmail.com
644fc1bf3f6b8d07653d023d8f31d01f65603566
02f0b44446d0ae1456db790866f8c184dc9b2652
/trunk/convertdialog.py
2d3c32c6b4d323b8028e177c1d5ac090a9334565
[]
no_license
BGCX261/zoomtc-svn-to-git
23d26688429d5d0db5937c630ecb6243438c3721
8937a6a53bb58c1457e6f93af619070929a4839a
refs/heads/master
2021-01-23T12:11:25.771636
2015-08-25T15:20:29
2015-08-25T15:20:29
41,591,859
0
0
null
null
null
null
UTF-8
Python
false
false
7,708
py
#!/usr/bin/env python # -*- coding: utf-8 -* import os import sys from PIL import Image from PyQt4 import QtCore, QtGui import zoomtc_rc from ui_convertdialog import Ui_convertDialog # all supported image formats list here EXTS = ('.bmp', '.im', '.msp', '.pcx', '.ppm', '.spider', '.tiff', '.xbm', '.xv', '....
[ "you@example.com" ]
you@example.com
6ffb0c65163ec92ac6eb7e8bbb2eeee963366b3e
04ad466db13a382cc679d9562e515d57b54c47e6
/scripts/maxent_priors.py
a69077dddf5e3009d6b707e0e4792d6890804360
[ "MIT" ]
permissive
shivaditya-meduri/pyprobml
d9423463ae7b352c52f3d005fbf33ee66d366971
9dbe0c95f4ec061b98bf32fa3ac1deafe2e0c04d
refs/heads/master
2023-04-12T13:09:45.572071
2021-05-07T18:22:02
2021-05-07T18:22:02
356,659,290
1
0
MIT
2021-04-11T05:04:38
2021-04-10T18:07:31
null
UTF-8
Python
false
false
1,105
py
# jeffreys prior for bernoulli using 2 paramterizatiobs # fig 1.10 of 'Bayeysian Modeling and Computation' import numpy as np import matplotlib.pyplot as plt import pyprobml_utils as pml from scipy import stats from scipy.stats import entropy from scipy.optimize import minimize C = 10 xs = np.arange(1,C+1) con...
[ "murphyk@gmail.com" ]
murphyk@gmail.com
b56e012cd852d9dee8afd57b3ff0a9a240fe1828
185bea7d9c7dc9288b021e0c27f24e087f668109
/AI/Project/Sudoku/eliminate_q5.py
472e64c213c8524b8d5000fa04d1d1df0dd7b613
[]
no_license
JasonVann/Udacity
3430fa86d9863dd0c4657b525243a91154f4b57f
9584bf90e8f1f9d4faf0973c7c36325f367558e7
refs/heads/master
2021-01-12T09:38:53.896396
2017-09-05T03:51:47
2017-09-05T03:51:47
76,217,990
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
from utils import * def eliminate(values): """Eliminate values from peers of each box with a single value. Go through all the boxes, and whenever there is a box with a single value, eliminate this value from the set of values of all its peers. Args: values: Sudoku in dictionary form. Retu...
[ "jasonvanet@gmail.com" ]
jasonvanet@gmail.com
f7afb969c707a49319ea9771a712ab4977d48f95
642f50ad3a7abc63032815847fe9a49246b03506
/setup.py
ae3cdb64db3b8ddeab1b8efb9189075e6969709a
[ "MIT" ]
permissive
circuitpython/CircuitPython_Org_DisplayIO_Annotation
f76557c616498480c2f14c6423150f6eb6aa2709
df982a2f65d8dfe77759905820f5e27aead425a7
refs/heads/main
2023-06-13T07:31:35.924175
2021-07-05T15:06:11
2021-07-05T15:06:11
358,929,751
0
2
MIT
2021-07-05T15:06:11
2021-04-17T16:34:49
Python
UTF-8
Python
false
false
2,336
py
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries # SPDX-FileCopyrightText: Copyright (c) 2021 Kevin Matocha for circuitpython # # SPDX-License-Identifier: MIT """A setuptools based setup module. See: https://packaging.python.org/en/latest/distributing.html https://github.com/pypa/sample...
[ "foamyguy@gmail.com" ]
foamyguy@gmail.com
5a27684254e81e031f857cf3f929151d09307a8b
ad553dd718a8df51dabc9ba636040da740db57cf
/.history/app_20181208180113.py
5eb0e0ff5a594f01d11592f60c728896dcfaa4e9
[]
no_license
NergisAktug/E-Commerce-PythonWithFlask-Sqlite3
8e67f12c28b11a7a30d13788f8dc991f80ac7696
69ff4433aa7ae52ef854d5e25472dbd67fd59106
refs/heads/main
2023-01-01T14:03:40.897592
2020-10-19T20:36:19
2020-10-19T20:36:19
300,379,376
0
0
null
null
null
null
UTF-8
Python
false
false
7,256
py
import datetime from flask import Flask,flash, request, render_template_string, render_template from flask import Flask, url_for, render_template, request, redirect, session, escape, render_template_string from flask_babelex import Babel from flask_sqlalchemy import SQLAlchemy from flask_user import current_user, login...
[ "nergis.aktug2014@gmail.com" ]
nergis.aktug2014@gmail.com
820ef2144d3dd85072afa1fb2bb8df44a8a3087d
006ff11fd8cfd5406c6f4318f1bafa1542095f2a
/FastSimulation/L1CaloTriggerProducer/test/test_cfg.py
817cecbd05903876f5b300c0f4b38be6b0da5ac0
[]
permissive
amkalsi/cmssw
8ac5f481c7d7263741b5015381473811c59ac3b1
ad0f69098dfbe449ca0570fbcf6fcebd6acc1154
refs/heads/CMSSW_7_4_X
2021-01-19T16:18:22.857382
2016-08-09T16:40:50
2016-08-09T16:40:50
262,608,661
0
0
Apache-2.0
2020-05-09T16:10:07
2020-05-09T16:10:07
null
UTF-8
Python
false
false
1,347
py
import FWCore.ParameterSet.Config as cms process = cms.Process("L1") process.load("FastSimulation.L1CaloTriggerProducer.fastl1calosim_cfi") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi") process.load("Geometry.CaloEventSetup.CaloGeometry_cfi") ...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
e8940800e8c4feb508acd637a11a9f70573c15ce
a1ad2715e306fd4e7eaeda5348e00e1a363e7884
/leetcode/hashmap.py
17f3ac037e825715ccd3106d80f804bebe69a9a4
[]
no_license
MayankMaheshwar/DS-and-Algo-solving
cef54a800b3e8a070a707f97b4f30fccaa17d5c6
ac6ea8f880920242a55d40c747368d68cb6f7534
refs/heads/master
2022-12-07T07:55:08.380505
2022-12-05T09:32:14
2022-12-05T09:32:14
237,103,468
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
class Solution: # @param A : list of integers # @param B : list of integers # @param C : list of integers # @return a list of integers def solve(self, A, B, C): Hash1, Hash2, Hash3 = set(A), set(B), set(C) res = set() for i in Hash1: if i in Hash2 or i in Hash3: ...
[ "mayank.maheshwari625@gmail.com" ]
mayank.maheshwari625@gmail.com
00ad4f40b3123901479230db421ad0cc1ba9fb83
3ae937aec30f413dc87a1a6398ea6ef95b90f58a
/Estrutura-Decisao/ex10.py
372887472117d1248bf3d2232b86466610e03f97
[]
no_license
lucas-sigma/Python-Brasil-Resposta-Exercicios
74f53c2531bea03fb65fa9addf8106450edb5d5e
af2df5b7d8d013ca176817af5f7bfa08ba5e33d1
refs/heads/master
2020-03-24T22:53:36.317235
2018-11-23T19:43:24
2018-11-23T19:43:24
143,107,121
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
# Faça um Programa que pergunte em que turno você estuda. Peça para digitar M-matutino ou V-Vespertino ou N- Noturno. Imprima a mensagem "Bom Dia!", "Boa Tarde!" ou "Boa Noite!" ou "Valor Inválido!", conforme o caso. print('M - Matutino | V - Vespertino | N - Noturno') turno = input('Digite o turno em que você estuda:...
[ "lucasn.sigma@gmail.com" ]
lucasn.sigma@gmail.com
92f8adefb2a72e066420f7f170628fd3531a481a
8ae2dc044d056cb9a4b0cd25fbaed977288ba926
/Python_OOP/car.py
016554f5f0206353f5ff091f7fdd5e1875e00d1a
[]
no_license
februarypython/Alex_Green
17a3c79d4e1eb751e6b5d76b2ab036506ba43a12
ad72d761c33708d80200ee896e1d145fd74009c1
refs/heads/master
2021-04-30T05:06:31.439798
2018-04-03T20:54:02
2018-04-03T20:54:02
121,407,382
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
# Create a class called Car. In the__init__(), allow the user to specify the following attributes: price, speed, fuel, mileage. # If the price is greater than 10,000, set the tax to be 15%. Otherwise, set the tax to be 12%. # Create six different instances of the class Car. In the class have a method called display...
[ "alexkenta@gmail.com" ]
alexkenta@gmail.com
e7f6ee71d68187d1c702e84d43bfe2bc4768f18f
67e817ca139ca039bd9eee5b1b789e5510119e83
/Linked_List/Swap_Nodes_in_Pairs.py
c36d59cada641e25326ec7b2bb48a3989fbbf1e3
[]
no_license
dstch/my_leetcode
0dc41e7a2526c2d85b6b9b6602ac53f7a6ba9273
48a8c77e81cd49a75278551048028c492ec62994
refs/heads/master
2021-07-25T21:30:41.705258
2021-06-06T08:58:29
2021-06-06T08:58:29
164,360,878
0
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
#!/usr/bin/env python # encoding: utf-8 """ @author: dstch @license: (C) Copyright 2013-2019, Regulus Tech. @contact: dstch@163.com @file: Swap_Nodes_in_Pairs.py @time: 2019/1/15 22:10 @desc: Given a linked list, swap every two adjacent nodes and return its head. Example: Given 1->2->3->4, you should return the list ...
[ "dstch@163.com" ]
dstch@163.com
166322ebabb0c976ace6f2e0fbdbfd220d2d019c
7d2c27662499f2c594c6f706c0d774955cd97ec9
/tensorpack/dataflow/imgaug/paste.py
73a44523297d5cd85063a71158e91e7d97d6b1d5
[ "Apache-2.0" ]
permissive
RyannnXU/tensorpack
8ce0d5166719879a6a947ec253170751f7f45c30
b335a7baa00f578a5229315a3c8841efba602dcd
refs/heads/master
2021-06-09T18:23:38.410559
2017-01-03T16:44:20
2017-01-03T16:44:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,035
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: paste.py # Author: Yuxin Wu <ppwwyyxxc@gmail.com> from .base import ImageAugmentor from abc import abstractmethod import numpy as np __all__ = ['CenterPaste', 'BackgroundFiller', 'ConstantBackgroundFiller', 'RandomPaste'] class BackgroundFiller(objec...
[ "ppwwyyxxc@gmail.com" ]
ppwwyyxxc@gmail.com
c53c7a9ab52018aad680ab9e0754c63891fb0dea
5a95daadcdf2eb4a9957be43d8231cd12615bda6
/pipeline/metric_fuc.py
a956061df328cf72cd447b7c422fcca60b80b07a
[]
no_license
fendaq/cail2018_repo
0fe7126ca052f57782aae6ce3863e6bad6833093
750c3846a678402220c8badd0c377deda277db6a
refs/heads/master
2020-03-21T19:32:58.539058
2018-06-21T12:01:55
2018-06-21T12:01:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,623
py
import mmap import numpy as np from keras.callbacks import Callback from sklearn.metrics import f1_score from tqdm import tqdm from config import * import os def predict2half(predictions): y_pred = np.zeros(predictions.shape) y_pred[predictions > 0.5] = 1 return y_pred def predict2tag(predictions): ...
[ "chongjiu.jin@tinno.com" ]
chongjiu.jin@tinno.com
2c3be747e324140bce05946aeaa349adbce9a3a5
539e4522a3a47b0234a3972b633ca8d55f0c71ec
/data2csv
40a8ad623e8b66de0133d90014f58c748f1d6b60
[ "MIT" ]
permissive
charnley/data2csv
a060c2fa4d5a239e67dd95050bc73b13f6853563
ac8b5516b0932f444203d17a270217d827633288
refs/heads/master
2020-07-03T21:50:51.715289
2018-06-15T20:43:45
2018-06-15T20:43:45
74,230,997
0
1
null
null
null
null
UTF-8
Python
false
false
3,688
#!/usr/bin/env python from __future__ import print_function import ConfigParser import sys import os import subprocess import re import numpy as np def eprint(*args, **kwargs): print(*args, file=sys.stderr, **kwargs) def get_floats(shell_cmd): """ Return all the floats for each line """ FNULL = open(os...
[ "jimmy@charnley.dk" ]
jimmy@charnley.dk
f41309b669d164c057a8575be6894c0ae30aa544
eb4f61315e8f0b139d0af3a95c59a2907845ebfd
/7-8(am)/corePython/control stmtss/cakediscount.py
177bcc1cf85eb01053c25aba35836b2d73d33abf
[]
no_license
vamsikrishna6668/python-core
c1d368792fa6f89bf51ae690d20b45cb5ae0fb98
b66ad0f6ad0deffbc350d5a7996f23220940e187
refs/heads/master
2020-04-02T10:00:39.641928
2018-10-23T12:19:14
2018-10-23T12:19:14
154,320,508
0
0
null
null
null
null
UTF-8
Python
false
false
1,136
py
veg_cake=int(input('No of Veg cakes:')) nonveg_cake=int(input('No of nonVeg cakes:')) vegcake_cost=300 nonvegcake_cost=350 vegcake_discount=(veg_cake*vegcake_cost)*0.05 nonvegcake_discount=(nonveg_cake*nonvegcake_cost)*0.04 total_vegcake_cost=(veg_cake*vegcake_cost)-vegcake_discount total_nonvegcake_cost=(nonveg_cake*n...
[ "vamsikrishna6668@gmail.com" ]
vamsikrishna6668@gmail.com