blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
ef467bca48eebe77e034672f59ad0d7f8f0914da
57b4ee27801c23cdd6a6d974dbc278f49740f770
/0CTF_monkey.py
b6c42ded368e7a888c38de1f5bf4e6114416a26c
[]
no_license
zwhubuntu/CTF-chal-code
4de9fc0fe9ee85eab3906b36b8798ec959db628c
8c912e165f9cc294b3b85fab3d776cd63acc203e
refs/heads/master
2021-01-20T18:39:26.961563
2017-09-25T14:07:56
2017-09-25T14:07:56
62,563,092
7
2
null
null
null
null
UTF-8
Python
false
false
585
py
''' Created on 2016-3-12 @author: wenhuizone ''' import itertools,hashlib test='' if __name__ == '__main__': chars = '0123456789abcdefghijklmnopqrstuvwxyz_{}()!@#$%^&*[] ' print "cracking....." for t in itertools.product(chars, repeat=5): w = ''.join(t) # print w test=hashlib.md5(w)...
[ "zwhubuntu@hotmail.com" ]
zwhubuntu@hotmail.com
162a693e0392a3ae21c96a1416cd8980fb3c2af3
4dfa6232cf91f1c04d50809915078dc71fb371b4
/python_module/test/unit/module/test_batchnorm.py
7f1b1b04a2a257bb51d9d399a8be48fb04e8f52c
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
hookex/MegEngine
81c0539a3247873bdabe0e6f22e265e22249e98a
47fd33880d2db3cae98c55911bb29328cdd5d7e4
refs/heads/master
2022-08-01T02:04:06.431689
2020-05-22T11:10:17
2020-05-22T11:10:17
250,200,281
1
0
NOASSERTION
2020-03-26T08:22:39
2020-03-26T08:22:39
null
UTF-8
Python
false
false
5,952
py
# -*- coding: utf-8 -*- # MegEngine is Licensed under the Apache License, Version 2.0 (the "License") # # Copyright (c) 2014-2020 Megvii Inc. All rights reserved. # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT ARRANTI...
[ "megengine@megvii.com" ]
megengine@megvii.com
ddcabf5550bee338cf143d60b1f0f8e2e9dd7548
ad40134e2e3114b99d579286da5fe07afcca207d
/reindeergames.py
0f3b1aaeb9c3768369f7882ec751956b072e1ef7
[]
no_license
mamday/scripts
b645f061a0400f48ae6f37672de22e45a44b7dca
ba5a987879ecab2d873e01b69df114fc3227da55
refs/heads/master
2021-01-24T10:12:37.568669
2017-10-05T03:48:42
2017-10-05T03:48:42
44,767,372
0
0
null
null
null
null
UTF-8
Python
false
false
1,856
py
import sys import copy from copy import deepcopy r_list = [{'speed':8,'m_time':8,'res_time':53,'r_dist':0,'r_base':0,'r_time':0}, {'speed':13,'m_time':4,'res_time':49,'r_dist':0,'r_base':0,'r_time':0}, {'speed':20,'m_time':7,'res_time':132,'r_dist':0,'r_base':0,'r_time':0}, {'speed':12,'m_time':4,'res_time':43,'r_dist'...
[ "m.amday@gmail.com" ]
m.amday@gmail.com
69bba9d656616befba7ab765730050172ddb641f
548839b575be41eb2eef827ce1ce75d5592db87a
/semana-09/Extra/2-2-sin_senales.py
fc1a46d3af74d091d8587cb853aeef205a3803c4
[]
no_license
fpaez7/contenidos
52287ec4240eaf6f3b6c64f86c654f070f6c1c3b
db9b74781294eb699a9e4d43640fbf07bb78bf16
refs/heads/master
2022-04-16T18:10:29.729349
2020-03-24T21:09:51
2020-03-24T21:09:51
202,588,563
0
0
null
null
null
null
UTF-8
Python
false
false
2,896
py
from PyQt5.QtWidgets import QLabel, QMainWindow, QApplication from PyQt5.QtCore import QThread, QTimer from PyQt5.QtGui import QPixmap from time import sleep from random import randint class Food(QThread): def __init__(self, parent, x, y, max_width, max_height): """ Un Food es un QThread que move...
[ "fpaez1@uc.cl" ]
fpaez1@uc.cl
c0af91abcbacbb0d27b4e56aab17dcf7fa001e01
a7f4cffdd43bc94c1f8b2a989537331aaedcd63f
/POCs/RegressionAnalysis/LinearRegression.py
9aef9439847fc60711c68481a60569cc4b770c32
[ "Apache-2.0" ]
permissive
rkthakur/mediamixmodeling
57753670ad1add5917467d6e684031f75b0467db
a9438381c411fcbd33824529986aa6f34d97b4d0
refs/heads/development
2022-12-15T03:00:26.168473
2020-02-10T17:34:17
2020-02-10T17:34:17
61,939,680
23
7
Apache-2.0
2022-12-09T05:49:29
2016-06-25T11:09:55
JavaScript
UTF-8
Python
false
false
2,897
py
import pymongo from pymongo import MongoClient import json import time from datetime import datetime # imports import pandas as pd import matplotlib.pyplot as plt # this allows plots to appear directly in the notebook import matplotlib.pyplot as plt import statsmodels.formula.api as smf # Connect mongodb client = Mong...
[ "rthakur@sapient.com" ]
rthakur@sapient.com
23346caa347aaaa963958b7c4215bb7e724269fe
060ee3619ef23ab6e1f332ed9e445f132c8065d4
/talkProject/wsgi.py
777cf6a350193f32e23637ae33e3b6bff65c433c
[]
no_license
venothx7/talkDjango
788fe95b3a11574bcc31d4e5def50943b9f23964
bb0113465eb9638e11606b237aad8060696f85e3
refs/heads/master
2020-06-01T02:47:27.086580
2019-06-06T15:20:56
2019-06-06T15:20:56
190,603,020
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
""" WSGI config for talkProject project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_S...
[ "venothx7@hotmail.com" ]
venothx7@hotmail.com
cceb7fc372778448efd0c51666c8a0332506ecd1
6ec08db44ab78b73a0e5d07521906935504daf3a
/data/data_processor.py
0809b27f6267e83ae55750f0c3cdb6f7a4b23402
[]
no_license
michaellu2019/Frens-Where-U-At
0938ba1a28d4ad7b8ec09a362e82a9064e6c5e5b
e8fc0b556d2220a21baf24fd2c4f509e0d896499
refs/heads/master
2021-01-28T00:15:54.912472
2020-02-27T10:42:29
2020-02-27T10:42:29
243,489,843
1
0
null
null
null
null
UTF-8
Python
false
false
1,245
py
import requests import json import googlemaps # load scraped data to process for locations print('Loading Data...') with open('data.json') as json_file: data = json.load(json_file) coordinates = { 'schools': {}, 'current_cities': {}, 'hometowns': {} } raw_place_data = { 'schools': {}, 'current_cities': {}, '...
[ "porkythemorky@gmail.com" ]
porkythemorky@gmail.com
d7fb914ef8dd85bf7fe70d3541f4377878c43c33
352bd9f2d9857e48cf81873c2079e50651125d55
/tkinter/读写csv.py
68b60c37d155bf009a0742729b10b36b1c324118
[]
no_license
xxzzxxzzzzs/pythonDemo
0e0534ce05c40d9dc608c3a37f082b67b42408a5
124cbac4a9dd66e239e144c1819e2f697e4200f0
refs/heads/master
2020-03-18T19:45:15.480756
2019-06-17T16:25:22
2019-06-17T16:25:22
135,175,726
0
0
null
null
null
null
UTF-8
Python
false
false
618
py
# -*- coding: UTF-8 -*- import csv # "/Users/zzs/Downloads/淘宝综合数据包.csv" path="/Users/zzs/Desktop/python/淘宝综合数据包.csv" def readCsv(path): infolist=[] with open(path,"r") as f: allFileInfo=csv.reader(f) for row in allFileInfo: infolist.append(row) # print(row) # pr...
[ "740866631@qq.com" ]
740866631@qq.com
eac74402b6f6bf1efcd4230ca20fa1805c7b8b4b
4bd9117f24600b3190f7310f9fea111157583e5b
/study/migrations/0003_auto_20200724_1602.py
b184eec0328dcf76ea0abaa46ad199769ed43b39
[]
no_license
mohammadamin16/school-back
3e36a23c556b16069aef967b1cdcee4edd0cae52
c55071c01e86786829bca2fd3a262ab580ae8859
refs/heads/master
2023-08-02T04:14:44.435841
2020-08-06T08:31:12
2020-08-06T08:31:12
280,162,641
0
0
null
2021-09-22T19:32:24
2020-07-16T13:34:00
Python
UTF-8
Python
false
false
374
py
# Generated by Django 3.0.8 on 2020-07-24 16:02 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('study', '0002_day_items'), ] operations = [ migrations.AlterField( model_name='item', name='course', fie...
[ "toutounchi.ma@gmail.com" ]
toutounchi.ma@gmail.com
263d1c4b93e145ea7b16c3d3daa27d2ee2247f69
2f54faa8fea018a369caa74983083197cab0ee8d
/0-50/000012.py
3a332e4c07d03ed1e6fe4d4c5334a3f4d37b5f84
[]
no_license
davaponte/ProjectEuler
629f9213b35c6c83a1476c55f672db3b83d2678d
c7ac1fd6c23b18a63c3ec59fa6dcf32103f7aa26
refs/heads/master
2020-09-20T16:04:53.684519
2019-12-17T23:06:16
2019-12-17T23:06:16
224,531,684
0
0
null
null
null
null
UTF-8
Python
false
false
1,410
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # 000001.py # # Copyright 2019 data <data@ASUS-LAPTOP> # # 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 version 2 of the License,...
[ "david.aponte@outlook.com" ]
david.aponte@outlook.com
ddd4cbb0a7b8393ee3cfebe119f7e8e653b7b937
ee63f0bace8d31da3383b9a5c89f3bc1a3b98807
/Facebook/Facebook-101/main.py
b2943325d0485df8795ad57e15c2a5357ee54405
[ "Unlicense" ]
permissive
Alain-T/SocialNetworks
cf3468bb3be61e8c193105747ab4958332c27a9b
6e51c5d9d33ebededc54f438ea4aa2cc4ac68886
refs/heads/master
2021-05-12T15:42:04.934451
2018-06-14T09:58:47
2018-06-14T09:58:47
116,991,357
0
0
Unlicense
2018-01-21T22:29:16
2018-01-10T17:50:46
Python
UTF-8
Python
false
false
814
py
from urllib2 import urlopen, Request import time import datetime # https://github.com/minimaxir/facebook-page-post-scraper/ # https://www.norconex.com/how-to-crawl-facebook/ # https://developers.facebook.com/tools-and-support/ def request_until_succeed(url): req = Request(url) success = False while succes...
[ "noreply@github.com" ]
Alain-T.noreply@github.com
ecdede69f1d6e9cb1acc5fb71ce4e15015937bb8
a544ea4c2faeabd722ba5f4968b348270a16f789
/i5_only_index_counter/testCountIndexes_i5_only.py
e241aba754390ca173f381f91e1bd66b5acb61ca
[ "MIT" ]
permissive
faircloth-lab/index-counters
1a963e7e85d0364b996f9e31cabb0f9faac4e7df
8f16239f9e5e7c53915133988a0857eeea05cdc0
refs/heads/master
2021-01-02T09:36:12.132783
2017-08-03T17:26:02
2017-08-03T17:26:02
99,258,269
0
0
null
null
null
null
UTF-8
Python
false
false
2,818
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ (c) 2014 Brant Faircloth || http://faircloth-lab.org/ All rights reserved. This code is distributed under a 3-clause BSD license. Please see LICENSE.txt for more information. Created on 14 October 2014 09:35 CDT (-0500) print commands & additional comments for id...
[ "brant@faircloth-lab.org" ]
brant@faircloth-lab.org
f4bc8aff58f087289a76c4ac2394b45010138259
34bffe1c0b2443535415adfe6d3bc6e880da4ab7
/sim_setups/random_mating.py
c98d1bfdd23b19281300ec416e78c6fd5e5d04b8
[]
no_license
JeDeveloper/SimulationThingy
ad0f73ae7e498cb6eab17ff7b91e7a053c8ad968
f2aea97b172fb9f0488f7f0e6570dddcf45d36b0
refs/heads/master
2023-06-12T19:09:43.921800
2021-07-02T04:42:18
2021-07-02T04:42:18
381,186,772
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
from random import uniform def choose_mates(e, options): """ :param e: :param options: :return: """ options.sort(key=lambda x: uniform(0, 1)) return options[:min(e.num_mates(), len(options))]
[ "joshuaevanslowell@gmail.com" ]
joshuaevanslowell@gmail.com
95126c4364b3bc4a15ad640c598a3e1a6da0b4bd
3b16925760bfe1797a33b7cf20a090ac807e7683
/gdal223/autotest/ogr/ogr_dgnv8.py
cb05b40e201d3042493707832dcbbf607414efab
[]
no_license
ghsourcecode/rastershp_gdal_python
a0a751989adf45c5e5f714e29af234d79a3f485b
506f11625aa0b72350e6b64619c6809fc0ee476a
refs/heads/master
2020-03-17T17:42:28.340585
2018-09-26T03:02:56
2018-09-26T03:02:56
133,798,972
0
0
null
null
null
null
UTF-8
Python
false
false
7,545
py
#!/usr/bin/env python ############################################################################### # $Id: ogr_dgnv8.py 40618 2017-11-02 15:30:27Z goatbar $ # # Project: GDAL/OGR Test Suite # Purpose: Test DGNv8 Driver. # Author: Even Rouault <even dot rouault at spatialys dot com> # #############################...
[ "daih1632010@163.com" ]
daih1632010@163.com
0f6943101c367d3d517ed0b139238eed0b1d44ed
d71687efd35e51d205b5a3bbc3c9b8e1aedb2208
/testing/test_add.py
c982ed6ca4c1cc5e939df5115dda0d9c409daf3e
[]
no_license
SusanLovely/Test
bcbf1a162deebef4b20d9a55762dbd09abd67109
f71b073d0c523f9c1c30f7a23d7b711046f72245
refs/heads/master
2023-01-31T00:25:11.486487
2020-12-10T08:18:38
2020-12-10T09:11:57
320,149,218
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
from decimal import Decimal import pytest import yaml from study.calc import Calc class Test_Cal: with open('../datas/cal.yml') as f: params = yaml.safe_load(f) def setup_class(self): self.cal = Calc() @pytest.mark.add @pytest.mark.parametrize(params[0], params[1], ids=params[2]['i...
[ "1192456213@qq.com" ]
1192456213@qq.com
c1d762b0170e9348bee48f2ccb9ab99dfd859ee7
6ff85b80c6fe1b3ad5416a304b93551a5e80de10
/Python/Algorithm/Prefixes.py
b9c8303dc674d2cf957a9ff6995ef153d7d51559
[ "MIT" ]
permissive
maniero/SOpt
c600cc2333e0a47ce013be3516bbb8080502ff2a
5d17e1a9cbf115eaea6d30af2079d0c92ffff7a3
refs/heads/master
2023-08-10T16:48:46.058739
2023-08-10T13:42:17
2023-08-10T13:42:17
78,631,930
1,002
136
MIT
2023-01-28T12:10:01
2017-01-11T11:19:24
C#
UTF-8
Python
false
false
214
py
prefixes = "JKLMNOPQ" for letter in prefixes: if letter[0] == "Q" or letter[0] == "O": print(letter + "uack") else: print(letter + "ack") #https://pt.stackoverflow.com/q/305011/101
[ "noreply@github.com" ]
maniero.noreply@github.com
599ef1d079eeed1fde99eb731ce24ed5d4279016
98f04386bc12c5f6419a217f6651d25f363f6e13
/pgame-16070/code71.py
78e9745c8bc6975208f4944a635f07f668c17417
[]
no_license
iintrn/pgame
3070c71d8dd61f54fceb2c5483b641fd2c1813cb
18a1ed0856f58bbc3ee6b5e116733fe5e2a45a1a
refs/heads/master
2020-08-27T01:07:34.423386
2020-01-08T06:27:02
2020-01-08T06:27:02
217,201,600
0
0
null
2019-10-24T03:15:43
2019-10-24T03:15:43
null
UTF-8
Python
false
false
385
py
# Pemrograman Game Praktikum 7 # latihan code 7.1 : PyGame import pygame, sys from pygame.locals import * pygame.init() DISPLAYSURF = pygame.display.set_mode((400, 300)) pygame.display.set_caption('Hello World!') while True: # main game loop for event in pygame.event.get(): if event.type == pygame...
[ "noreply@github.com" ]
iintrn.noreply@github.com
af93c42439155456b892ec46aa14067158094b57
776c8a5821eb8cd1357439454c9c20c9da239afb
/November,2020~July,2021/2020-12-25/10708_이승민_크리스마스파티.py
b3b2a0dd0f360771834e24cb3dc3d05a2dfb197f
[]
no_license
JinYeJin/algorithm-study
85d84a726e0f7bb78a2da37504bc04a42b3906ea
538c911e6adcdad3bfed3d9f76ccb30804dfb768
refs/heads/master
2023-07-04T16:09:12.101837
2021-08-14T02:23:44
2021-08-14T02:23:44
272,363,049
8
2
null
null
null
null
UTF-8
Python
false
false
633
py
# 크리스마스 파티 import sys def solution(): input = sys.stdin.readline n = int(input()) m = int(input()) target = list(map(int, input().split())) ans = [0] * n for i in range(m): guys = list(map(int, input().split())) for j in range(n): if guys[j] == target[i]: ...
[ "yeen0606@gmail.com" ]
yeen0606@gmail.com
3326d1f0d7a904c49e75028dbb4d9a1ab3146e7a
e9aa329640c6286d0e48fb411ec93fec8a3cb44b
/Bucles_While.py
f51661096a69af083870bb958aec7b2007345b24
[]
no_license
francechi/Python
4c16c8db32a4c44007407679f2ed0bc0a294a966
d3872fb4fec61dbf1702c502d1d4fbb18722056d
refs/heads/master
2020-04-17T21:38:17.861852
2019-01-22T13:01:32
2019-01-22T13:02:32
166,959,239
0
0
null
null
null
null
UTF-8
Python
false
false
1,236
py
i=1 while i<=10: print('Ejecución ' + str(i)) i=i+1 print('Terminó la Ejecución') # While = mientras edad=int(input("indroduce tu edad: ")) while edad<15 or edad>100: print("Has introducido una edad Incorrecta, Vuelve a intentarlo") edad=int(input("indroduce tu edad: ")) print("Gracias por colaborar. Puedes p...
[ "ivanfrancechi@hotmail.com" ]
ivanfrancechi@hotmail.com
47b2feab087e40048eb404c8146b5b18431e88af
1cfafec5935522b386d40ab7bb7246f39da89fcc
/algorithm/swacademy/no-complete/voca.py
7724fa2c60d882916c60be7ee596f8e0ea8a83c4
[]
no_license
madfalc0n/my_coding_labs
0d9e13e2d1579607d5481c6a78baa70a2c7c374a
b38fd988a5e3ebb8d8b66bf5a0b15eb3eaa20578
refs/heads/master
2021-07-03T17:33:16.801207
2021-06-18T06:24:09
2021-06-18T06:24:09
241,097,976
1
0
null
null
null
null
UTF-8
Python
false
false
454
py
""" 단어 몇개를 뽑아 단어셋트를 만들어야 함 셋트 안에는 모든 소문자 알파벳 26개가 포함되어야 함 """ for test_case in range(1,int(input())+1): voca_list = int(input()) temp_list = [] for _ in range(voca_list): temp_list.append(input()) temp_set = {} for v in temp_list: for vv in v: temp_set[vv] = temp_set.ge...
[ "chadool116@naver.com" ]
chadool116@naver.com
41df512f180bf0ac765027cf3822f77c24b3f9a2
dc562b8400662f2987c56a42d4504c18adf507ef
/rmtk/plotting/loss_curves/parse_loss_curves.py
b5174a5a909996b9c53fc1cc93476f4c8b48ffc1
[]
no_license
VSilva/RMTK
34da956a779e1de3cf8b5bc42597d7094b6afba5
99aa1c93026ff56cd602a020fca42e80ce3048ac
refs/heads/master
2021-01-22T16:31:10.295963
2015-02-24T14:21:37
2015-02-24T14:22:06
25,680,488
0
0
null
2014-11-07T16:21:21
2014-10-24T09:10:38
Python
UTF-8
Python
false
false
4,277
py
''' Post-process risk calculation data to convert loss curves into different formats ''' import os import csv import argparse import numpy as np from lxml import etree from collections import OrderedDict xmlNRML='{http://openquake.org/xmlns/nrml/0.4}' xmlGML = '{http://www.opengis.net/gml}' def parse_single_loss_cur...
[ "anirudh.rao@globalquakemodel.org" ]
anirudh.rao@globalquakemodel.org
c7567cd22bf7fd8094c4bdba7cbd5810a54004c8
08f863cadbec37e05f3bb732353742ddc3301f52
/connection.py
c5ee383f5de8bb27cff145a80417060662513260
[]
no_license
chches/hackathon06_reto1
e034f77576f8789b77b1ad1116e8cf5affa1dc4f
470a61a14aa0c420c4464a6e1f7b98e32b329e6f
refs/heads/master
2022-12-15T21:13:29.127230
2020-09-17T03:22:40
2020-09-17T03:22:40
295,168,451
0
0
null
null
null
null
UTF-8
Python
false
false
745
py
from psycopg2 import connect class Connection: def __init__(self, server='127.0.0.1', user='postgres', password='R0s@N3gr@', database='colegio_reto_6_g2_prueba', port=5432): self.db = connect(host=server, user=user, password=password, database=database, po...
[ "charlycris.che@gmail.com" ]
charlycris.che@gmail.com
07360f528871877e82963e232c3aca6d8f857861
7bde204fc269b3a28983194f7856928603f4762c
/zvt/domain/quotes/stock/stock_5m_kdata.py
ca4ed3497fc930328183528abe95919208787457
[ "MIT" ]
permissive
joyjarod163/zvt
e0b01333854b1751f3f9361331618d2467e1b588
3e03af11c7043bd5f848621219d3485662fc5132
refs/heads/master
2020-09-28T22:53:29.190824
2019-12-17T10:56:38
2019-12-17T10:56:38
224,348,018
1
0
MIT
2019-12-09T12:05:55
2019-11-27T05:00:05
Python
UTF-8
Python
false
false
430
py
# -*- coding: utf-8 -*- from sqlalchemy.ext.declarative import declarative_base from zvdata.contract import register_schema from zvt.domain.quotes.stock import StockKdataCommon # 股票5分钟k线 Stock5MKdataBase = declarative_base() class Stock5mKdata(Stock5MKdataBase, StockKdataCommon): __tablename__ = 'stock_5m_kdata'...
[ "5533061@qq.com" ]
5533061@qq.com
7b82da4dcc2cdc39dd5ca121bde166722940279b
fc39420bab255421ace7057eab3cbc5c51eac508
/Hari 14/Catatan14.py
13b2d64ec3074193dfe77347c114053250eb22a9
[]
no_license
MuhamadAhsanul/JCDS_-_Modul_1_Fundamental
27d3e32a7237b36e435458d5092386060e3962b5
f3def06b727ffd056a274b187d9c1ba99303a4c5
refs/heads/master
2020-09-08T04:52:38.265190
2019-11-11T16:03:05
2019-11-11T16:03:05
221,021,041
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
# Fibonacci # 0,1,1,2,3,5,8,13,21,34,55,89,144 class fibo: def fibo1(self, x): a = range(101) ac = [] for i in a: if i <= 1: ac.append(1) else: rumus = ac[i - 1]+ac[i - 2] ac.append(rumus) Fi = ac[x] ret...
[ "aahsaann@gmail.com" ]
aahsaann@gmail.com
974a7bc8b7e11cd5af7140176e44fd5e366c4a1f
60502a0f6337a710de6fd28354482981708af658
/setup.py
694424495c8e1e5282c9fe30c16d80e52e3a0eeb
[ "MIT" ]
permissive
inventree/inventree-python
373f0c710617e9c8127351c25067b96b6149db4f
eddb2ad4920236ca9155abccc2e4c3ae0637a8ef
refs/heads/master
2023-08-09T22:05:56.363714
2023-07-26T04:31:51
2023-07-26T04:31:51
187,025,596
13
26
MIT
2023-08-23T08:38:57
2019-05-16T12:40:50
Python
UTF-8
Python
false
false
939
py
# -*- coding: utf-8 -*- import setuptools from inventree.base import INVENTREE_PYTHON_VERSION with open('README.md', encoding='utf-8') as f: long_description = f.read() setuptools.setup( name="inventree", version=INVENTREE_PYTHON_VERSION, author="Oliver Walters", author_email="oliver.henry.w...
[ "oliver.henry.walters@gmail.com" ]
oliver.henry.walters@gmail.com
7e0d037a89c0b43fe54356a1e8bed2819deaa4ab
34b03f704a948ac4b7d63ad7a79c413422e4fe9a
/main.py
00e71282e694c6e61c028fb637f59e337475ce1e
[]
no_license
Ksenouter/cbps
580c87149318df7a58149760700b62db974196ea
817a307a0f804a70cdf0c5fa2197ec74a1e823d4
refs/heads/main
2023-04-20T21:49:11.362391
2021-05-05T21:00:48
2021-05-05T21:00:48
314,164,076
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
from scraper import Scraper from dbf_parser import Parser def main(): scraper = Scraper() scraper.download_files(reload=False) scraper.extract_downloads() Parser.pars_forms(recreate_sources=False) if __name__ == '__main__': main()
[ "ProhorovIlyaDm@gmail.com" ]
ProhorovIlyaDm@gmail.com
604e479c7d19f3b1f557d2bbff9fee052f9743ef
51f887286aa3bd2c3dbe4c616ad306ce08976441
/pybind/slxos/v17s_1_02/brocade_mpls_rpc/show_mpls_bypass_lsp_name_debug/output/bypass_lsp/show_mpls_lsp_extensive_info/show_mpls_lsp_sec_path_info/sec_path/lsp_sec_path_config_admin_groups/__init__.py
391e3e1c63903ed7744664646f5f08830e3d3613
[ "Apache-2.0" ]
permissive
b2220333/pybind
a8c06460fd66a97a78c243bf144488eb88d7732a
44c467e71b2b425be63867aba6e6fa28b2cfe7fb
refs/heads/master
2020-03-18T09:09:29.574226
2018-04-03T20:09:50
2018-04-03T20:09:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,560
py
from operator import attrgetter import pyangbind.lib.xpathhelper as xpathhelper from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType from pyangbind.lib.base import PybindBase from d...
[ "badaniya@brocade.com" ]
badaniya@brocade.com
04a716c52c72639bc03bee083069585c9f503a1a
f3eae017c3c0206cdac604e40ef3b1fc9e7e62f6
/20200303/21.py
c7a84d61eed7412b6c1da482c583bcf293f98773
[]
no_license
doonguk/algorithm
b6d126286f7fff170979c62f2b2378d5a03438e9
981a1457106c244a13ef3cde8e944cb81888755f
refs/heads/master
2021-02-08T09:54:40.185496
2020-04-15T14:30:53
2020-04-15T14:30:53
244,138,985
0
0
null
null
null
null
UTF-8
Python
false
false
872
py
import sys sys.stdin = open("input21.txt", "rt") a = [list(map(int, input().split())) for _ in range(7)] cnt = 0 for i in range(3): for j in range(7): tmp = a[j][i:i+5] if tmp == tmp[::-1]: cnt += 1 for k in range(2): if a[i+k][j] != a[i+5-k-1][j]: br...
[ "mbxd1@naver.com" ]
mbxd1@naver.com
61574607016da36d0a3ad71604696ea90676f6a1
02dcaae5131ce4349c27a8b832d9f414c48f98d7
/src/collective/folderlogo/docs/conf.py
c694b1872c80c8bcfaf178247284f3415ec3971a
[ "BSD-3-Clause" ]
permissive
collective/collective.folderlogo
2f1712970ad9bde380850d39969e63e8e901b6ab
b6bb9a2fd2e7525b9c88ed7fff73f79075326e4f
refs/heads/master
2023-09-02T02:15:12.158430
2013-05-06T16:39:20
2013-05-06T16:39:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,158
py
# -*- coding: utf-8 -*- # TODO documentation build configuration file, created by # sphinx-quickstart on Tue May 3 09:45:38 2011. # This file is execfile()d with the current directory set to its containing dir. # Note that not all possible configuration values are present in this # autogenerated file. # All configurat...
[ "taito.horiuchi@gmail.com" ]
taito.horiuchi@gmail.com
741ff6d16f64f666b5fe9cf731a9824f463ac9ca
599bf1b841520e11d0449f7d1578e015d7509e43
/rps.py
6272e19fe43ff285a5c0539217a06706e9019dc9
[]
no_license
spencerleff/rock-paper-scissors
832dcfbe80910d9cf18dccf2d0fe8faaba223737
7fb70391b5d0d7d30032faf4d8b8a813fdf5afa5
refs/heads/master
2022-11-18T20:48:14.277830
2020-07-16T22:12:49
2020-07-16T22:12:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,909
py
#!/usr/bin/env python3 import random import time #output print("\n") print("Welcome to Rock, Paper, Scissors!") print("=================================") #for winner text bold = '\033[1m' end = '\033[0m' #variable to determine whether the user wishes to play again or not play = "y" #scoreboard variables wins=0 los...
[ "noreply@github.com" ]
spencerleff.noreply@github.com
9f0846571f7f6f33eb7b3942c0efdb24085ae717
df8a2399a4221cc6a26599da2b54f7514c92c12b
/workers/admin.py
7a5de1c377536f47c6c01883010b6ed7dffe6627
[]
no_license
arviesan24/work-order
0b01a188e36c70a9f8c643d28f4ab850187cd3bd
8eb7c627ec184825775fac8e003136d9901e0e69
refs/heads/master
2022-12-10T12:33:30.376655
2019-07-05T12:39:58
2019-07-05T12:39:58
194,810,230
0
0
null
null
null
null
UTF-8
Python
false
false
140
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin from . import models admin.site.register(models.Worker)
[ "ctechnology24@gmail.com" ]
ctechnology24@gmail.com
1052fda9f08b17c87f2793ce873de2d347081517
e4a05504b7e60dc0cae94d3490970f67892bc2cb
/portal/settings/__init__.py
ab0db52b4263617d19492e102f6174207c55042b
[]
no_license
e-kolpakov/enforta
74d86a6b26a0154f7e19a8d051b78da2443f08db
d2251ff0918d3f4db44010e140837e0012347964
refs/heads/master
2016-08-07T08:50:32.069579
2014-07-24T09:35:03
2014-07-24T09:35:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,141
py
__author__ = 'john' import os import sys from base import * local_settings_file = os.environ.get('EnvironmentType', 'development') suppress_logging = ('migrate' in sys.argv or 'syncdb' in sys.argv) or \ os.environ.get('SuppressLogging', 'false') != 'false' if 'test' in sys.argv: local_setting...
[ "_john_@bk.ru" ]
_john_@bk.ru
a2100cac7941cd19dcee2530c093b2b1ba6b137b
a684cabb6db764055494e744752599c2d978f26b
/Lista 3/1.31.py
54260f51f99bff0df033339b54cc7049a7d748c2
[]
no_license
jarelio/FUP
c603c2264d160aca2a2e8a6dc7ba3af2baf6c04c
78555fe49e9046937483f7e4fcc6f1f135746d50
refs/heads/master
2020-04-17T04:53:04.097058
2019-01-17T18:06:38
2019-01-17T18:06:38
166,250,981
0
0
null
null
null
null
UTF-8
Python
false
false
112
py
N = int(input("Digite o valor de N: ")) S = 0 for i in range(1,N+1): S = S + (1/(i**i)) print("S =",S)
[ "jareliofilho@gmail.com" ]
jareliofilho@gmail.com
b6b46f05cb8776a297280f6cf9e0595b66791878
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startQiskit_Class3145.py
bb869a4f4a295214050862418c101162c39b79c1
[ "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
4,412
py
# qubit number=4 # total number=47 import cirq import qiskit from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister from qiskit import BasicAer, execute, transpile from pprint import pprint from qiskit.test.mock import FakeVigo from math import log2 import numpy as np import networkx as nx def bitwise_...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
dccdeed268be18dba9142290de732b5e20ad30c8
3e7fc64d3498229b8d4dcf7d12a2e90788f84e94
/python/basic/numpy/test02_array.py
3a6beff98aa8b84795429f83e2aaed9bb915b46e
[]
no_license
elim168/study
22574bdd30eace794238f3dcc226e5ea9f482245
370e5bd3dc89bc68ac1f2f2f3af816db60da6f43
refs/heads/master
2023-03-30T16:10:20.783312
2022-03-05T15:05:15
2022-03-05T15:05:15
164,266,016
2
1
null
2023-03-08T17:28:40
2019-01-06T01:38:03
Java
UTF-8
Python
false
false
498
py
import numpy # 创建一维的数组,基于一维的列表 ndarray = numpy.array([1, 2, 3, 4, 5, 6]) print(ndarray) print(type(ndarray)) # <class 'numpy.ndarray'> # 创建二维的数组,基于二维的列表。三维/四维等也是类似的道理 ndarray = numpy.array([[1, 2, 3, 4, 5], [2, 3, 4, 5, 6], [3, 4, 5, 6, 7]]) print(ndarray) # 通过ndmin指定最小维度 ndarray = numpy.array([1, 2, 3], ndmin=5...
[ "yeelimzhang@163.com" ]
yeelimzhang@163.com
341a80e3c6a827e23cdef7a5523dfa7ecd574848
1bad7d2b7fc920ecf2789755ed7f44b039d4134d
/ABC/49/C.py
be898c73880a7966daa9ae201ead9692637f967a
[]
no_license
kanekyo1234/AtCoder_solve
ce95caafd31f7c953c0fc699f0f4897dddd7a159
e5ea7b080b72a2a2fd3fcb826cd10c4ab2e2720e
refs/heads/master
2023-04-01T04:01:15.885945
2021-04-06T04:03:31
2021-04-06T04:03:31
266,151,065
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
print("日本語を入力してください:", end="") s = input() while 0 < len(s): if s[-5:] == 'erase' or s[-5:] == 'dream': s = s[0:-5] elif s[-6:] == 'eraser': s = s[0:-6] elif s[-7:] == 'dreamer': s = s[0:-7] else: print("NO") exit() print("YES")
[ "kanekyohunter.0314@softbank.ne.jp" ]
kanekyohunter.0314@softbank.ne.jp
e0b5cf36da9ef9b9aefe160d824197ecb05c33ee
a09b1ce1122f93d16d8169d8422261bd0123aeb9
/Konjac.py
29d7d79b8806d0c521c9d904be0fd7852ccbacc8
[]
no_license
ZhouYunYong/ChatBot_Wiki
4e888fd97a86c8577a525a497348b5c5d8c51663
4d04e35336ab36964af18e4668e3ac7ce7748e26
refs/heads/master
2020-03-28T22:59:53.728295
2018-10-05T02:02:58
2018-10-05T02:02:58
149,270,136
0
0
null
null
null
null
UTF-8
Python
false
false
435
py
# -*- coding: utf8 -*- import ChatBot_Wiki # 安裝套件 pip install googletrans from googletrans import Translator trans_lang = 'ja' # zh-tw, ja translator = Translator() # 建立翻譯物件 #result = translator.translate('你好嗎', dest='en').text #print(result) speech = ChatBot_Wiki.stt() print(speech) result = translator.translat...
[ "u9822113@gm.nuu.edu.tw" ]
u9822113@gm.nuu.edu.tw
c72a9cb5585570868125f3f330690dd77f6a82be
f4ae212a2c5698e761b6b58fdf9a18031ec724b0
/mini_fb/admin.py
8b0825d2de5882c44bb661e81eb82ab3b0121bf0
[]
no_license
jnothaft/Biobank-Covid19
47dc3748c7e22d5a8f6e91a56675bf5b99764e0a
5b7b4625e126862769cb3893700b6682738e6baf
refs/heads/main
2023-04-19T10:49:13.607248
2021-04-29T02:26:43
2021-04-29T02:26:43
343,625,827
0
0
null
null
null
null
UTF-8
Python
false
false
229
py
# mini_fb/admin.py # Julia Santos Nothaft (jnothaft@bu.edu) # Register models from django.contrib import admin # Register your models here. from .models import * admin.site.register(Profile) admin.site.register(StatusMessage)
[ "jnothaft@bu.edu" ]
jnothaft@bu.edu
55b854f4988479288a26767419ba9b1ecdade4aa
12e09350c484ac3e9858c8f6799d575ad5cff449
/baselines/baselines/ppo_moba/defaults.py
2490804008470b4a12c040b03469e29444e569e6
[ "MIT" ]
permissive
gerrysonx/moba_env
94e0e5cca7202be103523a8d91b1003af6eb6f56
b1426397d8863f72d4db5db52208509e745a175d
refs/heads/master
2023-06-13T09:03:39.493833
2021-07-01T09:24:22
2021-07-01T09:24:22
218,009,980
4
2
null
2022-06-13T20:17:06
2019-10-28T09:25:29
Python
UTF-8
Python
false
false
237
py
def gym_moba(): return dict( nsteps=2048*8, nminibatches=32, lam=0.95, gamma=0.99, noptepochs=4, log_interval=1, ent_coef=0.01, vf_coef=1.0, lr=lambda f : f * 3e-3, cliprange=0.2, )
[ "1755914811@qq.com" ]
1755914811@qq.com
d8d29bd818c802f35d4fc7e835f9d9be37379d3b
d5468f9cc80f2de38e871e232fa85a1e9b61e9f5
/python練習/GeometricObject_Inheritance/GeometricObject.py
7d45008c8fffc5c63b007d48d7e10a2af6dec996
[]
no_license
SamSSY/ObjectAndClass
1cf46368c6301b61eb0e2d942b92a7d191dc6d90
13a3db7349df38a77806009ddfbb1e748f4ee453
refs/heads/master
2023-06-02T21:07:25.463620
2021-06-23T13:14:55
2021-06-23T13:14:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
569
py
class GeometricObject: def __init__(self, color, filled): self.__color = color self.__filled = filled def setColor(self, color): self.__color = color def setFilled(self, filled): self.__filled = filled def getColor(self): return self.__c...
[ "45253893+hoopizs1452@users.noreply.github.com" ]
45253893+hoopizs1452@users.noreply.github.com
5f00af26807bbbde59d01c330e96f1d5daa3d74c
7559c169f9460a0806c7c1976f1dca7edd1ed1df
/metabolinks/elementcomp.py
c7fe86b1b4bc742d969137089ac73866c719e3f7
[ "MIT" ]
permissive
AspirinCode/metabolinks
88615d0a5479d2e1b76e54db4ed80d549cb74406
60d3e8f462801078ad0759cee191ab144daf2982
refs/heads/master
2020-04-17T17:29:20.859008
2018-05-01T18:35:43
2018-05-01T18:35:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,019
py
from collections import Counter def element_composition(df, column=None, compositions = ('CHO', 'CHOS', 'CHON', 'CHONS', 'CHOP', 'CHONP', 'CHONSP')...
[ "ferreiae@gmail.com" ]
ferreiae@gmail.com
9e24893392a09c88810197dace74fcdb4efaefbe
94fe232eb83cad3dac43f1e629f4aef8f5018d58
/recursive_index.py
4b4a0c0cc5cd2eceb499bf9edd8cacc994589946
[]
no_license
anulachoudhary/Leetcode
64717840a2e0cd01f44ca10c8acabbcc91a4b5df
9bc48cb0bfa747f0334ed996db8565edbfb50135
refs/heads/master
2020-03-08T01:17:09.859569
2018-04-04T15:51:18
2018-04-04T15:51:18
127,826,559
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
# Find the index of an item in a list using recursion. # Given a list of items: # >>> lst = ["hey", "there", "you"] # You should have a function that returns the 0-based index of a sought item: # >>> recursive_search("hey", lst) # 0 # >>> recursive_search("you") # 2 # If the item isn’t in the list, return None: # >...
[ "vagrant@vagrant.vm" ]
vagrant@vagrant.vm
db844400490fdc527aed8075c5134890918470b2
5bc13c594a855601c1498dbd5631c203b5741521
/Examples/pandasTesting.py
dd73c3820beb1c0dd315a3423728e2b725c25bf5
[ "MIT" ]
permissive
shinn5112/Load-Testing
68debd0eebc1136291cab7136484468d76c01b7a
582210974aca1acf79ce216a64cd830c8c1b313a
refs/heads/master
2022-05-04T04:59:40.651619
2018-05-21T22:47:03
2018-05-21T22:47:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
484
py
# @author Patrick Shinn # @version 5/21/18 from pandas import read_csv from matplotlib import pyplot as plt # reading in the data df = read_csv("/home/patrick/Github/research/Load-Testing/LoadTest/n1/linux_bare/test1/Driver-2017-07-19_16:15:26.csv", sep='\t') print(type(df)) # shows that df is a pand...
[ "shinn16@marshall.edu" ]
shinn16@marshall.edu
f90ecbb09813f36f5339f1a1046d8b79103e6efd
4d24ec56c1ca3f65ab2ef07e3053bf940da45ca3
/utils/word_util.py
c02d02b5e790824e942fccfc486e92b556aeb5d5
[]
no_license
ming99999/docs
3e1b34267f7cdd0fe9e56e0c2a6cc495d6451692
d981e251e557486fab18907e9d1987c17cf0e552
refs/heads/main
2023-07-28T03:35:12.914130
2021-09-07T05:46:08
2021-09-07T05:46:08
349,616,941
0
0
null
null
null
null
UTF-8
Python
false
false
3,441
py
import re, os, math import collections from collections import Counter from pymongo import MongoClient doublespace_pattern = re.compile(u"\s+", re.UNICODE) bracket_pattern = re.compile(r"\([^()]*?\)|\[.*?\]|\<.*?\>|\{.*?\}|\【.*?】|\(.*?\(.*?\).*?\)") junk_filter = re.compile(u"^[a-zA-Z0-9?><;,.{}()[\]\-_+=!@#$%\^&*|/\...
[ "mink99999@gmail.com" ]
mink99999@gmail.com
e695c19a5f1f720efecf7d4107bf3b879b05aeeb
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/0/ac6.py
6fea4f057dfb2a21d646372ebf21d889ec20e7f7
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
75e2f4092285301045763dea8c953c8f952bf37d
a2b6bc9bdd2bdbe5871edb613065dd2397175cb3
/简单/汉明距离.py
d3bf05069015bf75a53db11d6434f6872af53a63
[]
no_license
Asunqingwen/LeetCode
ed8d2043a31f86e9e256123439388d7d223269be
b7c59c826bcd17cb1333571eb9f13f5c2b89b4ee
refs/heads/master
2022-09-26T01:46:59.790316
2022-09-01T08:20:37
2022-09-01T08:20:37
95,668,066
0
0
null
null
null
null
UTF-8
Python
false
false
672
py
""" 两个整数之间的汉明距离指的是这两个数字对应二进制位不同的位置的数目。 给出两个整数 x 和 y,计算它们之间的汉明距离。 注意: 0 ≤ x, y < 231. 示例: 输入: x = 1, y = 4 输出: 2 解释: 1 (0 0 0 1) 4 (0 1 0 0) ↑ ↑ 上面的箭头指出了对应二进制位不同的位置。 """ class Solution: def hammingDistance(self, x: int, y: int) -> int: num = x ^ y res = 0 while num > 0: ...
[ "sqw123az@sina.com" ]
sqw123az@sina.com
248b7891fe92ae3a3344e30b2e68e718f14b7542
7d999d526e8fd1b0face4ee52da55f75c64319d2
/test/servo-test-3.py
5943848c456760c23425a93f1bd4fb81956bf51c
[]
no_license
katiehsieh/candy-machine
6c23c6e67454c7ccb5033786aaa4e3f4dd396631
5e409de8579cfcdc1da93f63f1b8e7783c24af47
refs/heads/main
2023-04-29T08:48:43.814739
2021-05-23T03:00:36
2021-05-23T03:00:36
364,779,614
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
# https://www.instructables.com/Servo-Motor-Control-With-Raspberry-Pi/ import RPi.GPIO as GPIO import time servoPIN = 16 GPIO.setmode(GPIO.BCM) GPIO.setup(servoPIN, GPIO.OUT) p = GPIO.PWM(servoPIN, 50) # GPIO 16 for PWM with 50Hz p.start(2.5) # Initialization def SetAngle(angle): duty = angle / 18 + 2 GPIO.output...
[ "kjhsieh@ucsd.edu" ]
kjhsieh@ucsd.edu
32346064c822176b39158d2eb263b3fe1878a121
9cbd523cdedc727f62c887612e8ae2c25c909964
/tests/lib/steps/check_TID_030.py
1c1345b2ce0889bd6a26b58d396a7d1d3e99fb1e
[]
no_license
louiscklaw/QA_test_scripts
8a71d0bed99fae3b0dac4cd9414b3e34dcf5beed
58b73594332053272d8dce2c812c93297259c782
refs/heads/master
2023-01-27T15:48:29.477848
2020-12-06T10:05:19
2020-12-06T10:05:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
954
py
import random from pprint import pprint import please_take_seat_first_dialogue import line_up_page import food_menu import line_up_confirmation_dialogue import item_add_page import cart_page from config import * from time import sleep from assert_check_point import assertCheckPoint from stubs.server.assign_table.as...
[ "louiscklaw@gmail.com" ]
louiscklaw@gmail.com
6ea5632e8877e1819cf57e9d53cbf6fb9de7992c
17d9c5801970d8e3a6d24465c061ef34e40290ee
/probe/lib/__init__.py
65a9980f069319334f016e173f1eea1366176395
[ "MIT" ]
permissive
krstnschwpwr/speedcontrol
02490ab5d769e26579f7b0a4cbef76892db1ae5d
2de5900a6a74038ea1f36739d26a6fd815732c2f
refs/heads/master
2021-01-13T15:00:40.435914
2017-03-06T08:35:49
2017-03-06T08:35:49
79,347,058
2
1
null
null
null
null
UTF-8
Python
false
false
12
py
flags="test"
[ "schwabauer.kristine@me.com" ]
schwabauer.kristine@me.com
2b42014f9e3ae9cecc498c3bdd0888eab9c42893
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/requests/requests/status_codes.py
9c9c3a6459327f4822ea365551f103b1e4a25db5
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
88
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/requests/requests/status_codes.py
[ "ron.y.kagan@gmail.com" ]
ron.y.kagan@gmail.com
f215a56a4eb5cbe10b5b04efa4c7762c7c08897a
056ce350bf4f56a8047e673a5458632debd9802b
/benchmark/experiments/submission_scripts/2_systems.py
3bf14e562e244561b91f97fb59672b5c42715822
[ "MIT" ]
permissive
LaYeqa/integrator-benchmark
a2402d37754682f442298fbe2554ae25f7af063d
bb307e6ebf476b652e62e41ae49730f530732da3
refs/heads/master
2021-09-10T15:41:31.040482
2018-02-12T19:49:29
2018-02-12T19:49:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,686
py
import os import numpy as np from simtk import unit from benchmark import DATA_PATH from benchmark.experiments.driver import ExperimentDescriptor, Experiment from benchmark.testsystems import dhfr_constrained, alanine_constrained, t4_constrained, waterbox_constrained splittings = {"OVRVO": "O V R V O", ...
[ "jf694@cornell.edu" ]
jf694@cornell.edu
eebd4a56a759ebbe78f353d92cd9279ccfc73aa7
dc9283f4ce9bc5b7be3685970c477f7058251531
/python/omnisci/thrift/OmniSci.py
fd2d7dfeb4e52b67872b3ae4b946187f56cfa3df
[ "Apache-2.0", "LicenseRef-scancode-generic-cla" ]
permissive
ngocbd/omniscidb
24df8b02c656d2682f59b8fa2f42c6ffd18c3ded
9dd4500d9d1d635cccf770b69f7ee236ea4ef9dc
refs/heads/master
2023-01-19T16:53:47.721143
2020-11-24T09:36:44
2020-11-24T09:36:44
283,070,278
0
0
Apache-2.0
2020-11-24T09:36:45
2020-07-28T02:03:42
null
UTF-8
Python
false
true
670,378
py
# # Autogenerated by Thrift Compiler (0.13.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py # from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException from thrift.TRecursive impo...
[ "dev@aas.io" ]
dev@aas.io
4b2efa07e52cebade9b8cc24cd219a9bc1b74941
b3e99aa9ceea0bdfb762080ad96d65d741fdea47
/hacker_rank/30_days_of_code/day_17.py
d5e736590574bd2eb242902abb44f57265231af7
[]
no_license
nomanarshad94/online_coding_problems_and_solutions
6f921a982b2c931772c8c36434eb2cccf364f5eb
b87d0979bd916337cd8785ffe093e8b4c4f44774
refs/heads/master
2020-12-21T18:49:02.630224
2020-02-25T18:26:44
2020-02-25T18:26:44
236,527,159
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
# Write your code here class Calculator(): def power(self, a, b): if a >= 0 and b >= 0: return a ** b else: raise Exception("n and p should be non-negative") myCalculator = Calculator() T = int(input()) for i in range(T): n, p = map(int, input().split()) try: ...
[ "nomanarshad94@yahoo.com" ]
nomanarshad94@yahoo.com
154cf1aec35d056d7902662bbff1559c033d649d
acf12c7c1c89a80e34cf13dc8355f432bb189fdb
/automation/zip/view_creation3.py
d88342780a17ccc3c4a3184526bbb2106a395742
[]
no_license
louis-noname/COMP90019-Distributed-Computing-Project
5b1d6e514462aad0de44df0a221f28a5a111355b
3b02234599b4cdd65f0c869a76ee8246ef0d701f
refs/heads/master
2023-04-08T10:50:38.714330
2018-10-30T06:08:28
2018-10-30T06:08:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
303
py
import couchdb from couchdb.design import ViewDefinition #abc couch = couchdb.Server('http://admin:password@115.146.85.196:5984/') database = couch['distance'] view = ViewDefinition('topuser', 'distance', 'function (doc) { emit(doc.user_id, doc.user_id);}') view.get_doc(database) view.sync(database)
[ "noreply@github.com" ]
louis-noname.noreply@github.com
f9b52cd3f2f046e1e518a37954c436cd8ac2a1ff
728d616ffb33a27ba00bd1a331d199f4434029b2
/msgpack/_version.py
e7504851aab50ecce7f7c3a747243c6b8a36f2d0
[ "Apache-2.0" ]
permissive
Lion4ee/msgpack-python
4a81670b7c38977f9bd2d636f9caba34c1613f40
301ad4cd54522bc49b16e5b1b65e7ecbb7864572
refs/heads/master
2021-01-17T08:46:21.675629
2013-02-04T06:21:15
2013-02-04T06:21:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
28
py
version = (0, 3, 0, 'dev1')
[ "inada-n@klab.com" ]
inada-n@klab.com
1bd3de69a046b08bd7b6387d19269886e8c9f96d
33530d8d56379832c5bcfa36f7d48f977bdbf1e8
/Vowpal_Wabbit/auc.py
aa591b53268532334b773e8a80edefc56b0ce802
[]
no_license
allensussman/Kaggle_StumbleUpon
310ee9d00f054364a8268f0a7c94ee65353c7ff1
69078b515ac91efe9d3f27c093d1cb7ea0e47f79
refs/heads/master
2020-04-02T16:45:13.356070
2014-02-14T07:24:34
2014-02-14T07:24:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
529
py
'compute AUC from VW validation and predictions file' import sys, csv, math # from ml_metrics import auc test_file = sys.argv[1] predictions_file = sys.argv[2] test_reader = csv.reader( open( test_file ), delimiter = " " ) p_reader = csv.reader( open( predictions_file ), delimiter = "\n" ) ys = [] ps = [] for p_li...
[ "allen.sussman@gmail.com" ]
allen.sussman@gmail.com
3c53fb8611b15d1f11a492d30ed3328312fca0ae
e8df26dcf93f6f43ba2581d3fdaa6d190dd9c5f1
/evaluate_resnet_pytorch_valid_set.py
159e3d5238c00d4b79af51f050bf401e94ae28fb
[]
no_license
SealLive/ISIC2017
9c5d20d48ab155c3af603e0c39caf6ea95a2e5ff
abf12aa1fad7727e259da1179627c561cdded1ef
refs/heads/main
2023-02-17T07:33:18.852535
2021-01-18T03:19:34
2021-01-18T03:19:34
330,538,187
0
0
null
null
null
null
UTF-8
Python
false
false
6,634
py
import torch import torch.nn as nn from global_variables import GVS from seal_datasets import get_filename_list, MalignantFolder from seal_utils import MyConfusionMatrix import torchvision.transforms as transforms from net_model import NetModel import datetime, time, os import logging import numpy as np from sklearn.me...
[ "noreply@github.com" ]
SealLive.noreply@github.com
3e3b184fda790b57c61441e8c6985db9d1337f2a
9644a76350bee937eb3342f8ff468acbf561742d
/env/Scripts/f2py.py
6d7a1584658e188c6a2aacd2c9a1d80741af5236
[]
no_license
maxyo11/YOOP
1e476d0e211ad9a5581596d3129db52fbbba6364
232ea9a5cf16920b7701c7e841aa8dd4a2435862
refs/heads/master
2021-07-06T23:18:58.745257
2018-05-22T03:23:02
2018-05-22T03:23:02
131,172,002
0
1
null
2020-07-23T02:42:03
2018-04-26T14:59:03
Python
UTF-8
Python
false
false
772
py
#!c:\yoop\env\scripts\python.exe # See http://cens.ioc.ee/projects/f2py2e/ from __future__ import division, print_function import os import sys for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]: try: i = sys.argv.index("--" + mode) del sys.argv[i] break except ValueError...
[ "38761335+CarimK@users.noreply.github.com" ]
38761335+CarimK@users.noreply.github.com
223fe59a9f035cb41b6bc268e2d99ed9bfe74511
2919e89b3f1ab0b40ad39b4759725b5bab45d864
/articles/migrations/0002_auto_20181226_0112.py
69a49b98edb7fd0ebc293463942711182d8cdb54
[]
no_license
AbelKinkela/ahmedBlog
89eb0c51d22d8f9aa137c9857eb73c010fb1cc0f
2cd8fd6d89448817f0a295079d68f939afe03805
refs/heads/master
2021-07-17T17:26:14.536228
2020-05-25T18:39:48
2020-05-25T18:39:48
164,930,607
0
0
null
null
null
null
UTF-8
Python
false
false
965
py
# Generated by Django 2.1.2 on 2018-12-25 21:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0001_initial'), ] operations = [ migrations.AddField( model_name='article', name='fithSect...
[ "akinkela16@alustudent.com" ]
akinkela16@alustudent.com
f7c39da94c4554f4f1ba61961bc25568815ef7ad
88a81e5f8f0b18412e25b34e5b16ba74cc0df59e
/src/test_radix_sort.py
3bd24676c281972679e3cc501c57ad7c01dcbef9
[ "MIT" ]
permissive
thejohnjensen/data-structures
b83feadaef1d0f11a2520d32cf574042d27fb8af
94e1d1cd4ac793e995910812d78fa1b46fd88a4d
refs/heads/master
2021-09-09T09:48:44.526977
2018-03-14T21:34:28
2018-03-14T21:34:28
111,492,248
0
0
MIT
2018-02-27T04:13:27
2017-11-21T03:09:04
Python
UTF-8
Python
false
false
895
py
"""Test mod for radix sort.""" from radix_sort import radix_sort from random import randint import pytest def test_insertion(): """Test with random list.""" unsorted = [randint(0, 1000000) for i in range(1000)] assert radix_sort(unsorted) == sorted(unsorted) def test_radix_sort_worse_case(): """Tes...
[ "johnnyj2439@gmail.com" ]
johnnyj2439@gmail.com
a391d624b84e5e8a7196058cf4ed8c984669f4fc
e802bb0c63a6715665dfadd6750946e338ee66c4
/market/listeners.py
065b0a5788a412a9b9648645836e8e2590c079b9
[ "MIT" ]
permissive
bankonme/OpenBazaar-Server
d0073cf1dcfc07bb1c3b90bbc2cc6c72ef284c87
462e15c41e67c3382b07aa9bd02d6858c37a8473
refs/heads/master
2021-01-17T11:45:35.963453
2015-08-22T00:52:24
2015-08-22T00:52:24
41,285,818
1
2
null
2015-08-24T06:19:24
2015-08-24T06:19:23
Python
UTF-8
Python
false
false
2,637
py
__author__ = 'chris' import json import time from interfaces import MessageListener, NotificationListener from zope.interface import implements from db.datastore import MessageStore, NotificationStore, FollowData from protos.objects import Plaintext_Message, Following class MessageListenerImpl(object): implements(...
[ "ctpacia@gmail.com" ]
ctpacia@gmail.com
a281db91c2e186f510ec71dd5308d6c22ea95189
ee3f85669ba34b189a15d05a6e0bb18ccfef8f3c
/Kaggle_Project/Crimes_on_friday.py
5fafaa37c3175270126a3092b6ab22c7700225b8
[ "Unlicense" ]
permissive
SatyaChipp/Kaggle
649d93f35a2264dc3d6801dd80240b7d05d0399b
e4f1d444c0493c29d26bfb1f6216a8d755609e5f
refs/heads/master
2020-03-23T23:47:49.781404
2018-07-25T06:25:11
2018-07-25T06:25:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,931
py
#!/usr/bin/env python ''' Program for bar plot for the crimes occurring on friday after 7 PM Larceny/Theft have the highest occurance on friday nights ''' import pandas as pd import matplotlib.pyplot as plt try: df = pd.read_csv('C:\\Users\\Jen\\Desktop\\train.csv', parse_dates=['Dates']) except (IOEr...
[ "noreply@github.com" ]
SatyaChipp.noreply@github.com
9469b92fa6341ff3e1abe6415bd17e8da6597b66
dd5aa34eb734a26539319bf55ad1c385d9483fab
/stack/EqualStacks.py
a31f06dc48da9516d9979127f570903002962d07
[]
no_license
wsapiens/PyCodeChallenge
3e09c7c7946a4b1b78c373dab84cf3390b5b6f84
c74beb2630c34ab603244c91dc923bb86aa0605b
refs/heads/master
2021-01-10T01:55:16.389477
2019-06-13T01:30:20
2019-06-13T01:30:20
45,787,684
0
0
null
null
null
null
UTF-8
Python
false
false
1,346
py
#!/bin/python3 import os import sys # # Complete the equalStacks function below. # def equalStacks(h1, h2, h3): # # Write your code here. # s1 = [] s2 = [] s3 = [] th1 = 0 th2 = 0 th3 = 0 for i in range(len(h1)-1, -1, -1): th1 += h1[i] s1.append(h1[i]) for ...
[ "wsapiens@hotmail.com" ]
wsapiens@hotmail.com
b0bf37071936a9adc0ab5a9a1a8c1472e43a370c
e1e08ca2df1caadc30b5b62263fa1e769d4904d8
/cba/models/db_wizard_30.py
0494b23f1ef46cd9f768dbcdf1d1d3811a6dc832
[]
no_license
tiench189/ClassbookStore
509cedad5cc4109b8fb126ad59e25b922dfae6be
4fff9bc6119d9ec922861cbecf23a3f676551485
refs/heads/master
2020-12-02T07:48:26.575023
2017-07-10T02:45:09
2017-07-10T02:45:09
96,728,874
0
0
null
null
null
null
UTF-8
Python
false
false
30,196
py
# -*- coding: utf-8 -*- """ Định nghĩa databases cho store 3.0 """ __author__ = 'manhtd' ######################################### db.define_table('clsb30_product_history', Field('product_title', type='string', notnull=True, label=T('Product Title')), Field('product_price', type='intege...
[ "caotien189@gmail.com" ]
caotien189@gmail.com
3c39b60b248281ff45d4d0f90c7cd1fdb5d4f4d2
c9bc27f70a4bca5ce6acf346bfc25b5407502d00
/ATIVIDADE G - FÁBIO 2b - CONDICIONAIS/fabio2b_q05.py
986a3386bed0356330b24f60799aab2cbf26c521
[]
no_license
lucascoelho33/ifpi-ads-algoritmos2020
2197bbc84ce9c027b3f1da006728448a846d7ffb
1ce20a489adbfe7321817acd98d35f2efc0360ca
refs/heads/master
2021-03-01T23:03:10.293013
2020-10-17T14:35:19
2020-10-17T14:35:19
245,650,273
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
#5. Leia o preço de três produtos e informe qual produto deve ser comprado, sabendo que a decisão é sempre pelo mais barato. def main(): p1 = float(input()) p2 = float(input()) p3 = float(input()) if p1 < p2 and p1 < p3: print('O primeiro produto é o mais barato') elif p2 < p1 and p2 < p3...
[ "llucascoelho33@gmail.com" ]
llucascoelho33@gmail.com
c6ccf5fcc4798e7c370ac339fd224954e2d13a9b
3e2cc503f713ffdd6cbb24d47e21323221f80a64
/test/test_av.py
cd1f6e58b3f518946094f4df264bde51987f5635
[ "MIT" ]
permissive
cosmin/siti
05a6105cb4df932ad47190437f4dd30eed1aee47
0b93fdf0ba0dad02764e1889963b9e61ef638878
refs/heads/master
2022-12-28T12:36:50.919298
2020-10-17T13:13:55
2020-10-17T13:13:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
592
py
#!/usr/bin/env python3 import numpy as np import av import sys import skvideo.io input_file = sys.argv[1] container = av.open(input_file) for packet in container.demux(): for frame in packet.decode(): if isinstance(frame, av.video.frame.VideoFrame): frame_data_raw = np.frombuffer(frame.planes...
[ "werner.robitza@gmail.com" ]
werner.robitza@gmail.com
b32210a47d8437c66aec6b911d96a76f2395c4b1
1446ba991034652370c9d64df08caa817735e1f6
/office365/graph/one_drive_actions.py
a7a9df006ac576aed602e26d3c2f69199385e31a
[ "MIT" ]
permissive
kakaruna/Office365-REST-Python-Client
3ab949bc8d48a604e534c902883af62fd089a87d
9f2f564972b988f1f41a3080c99684b4f6ce2164
refs/heads/master
2022-09-26T15:32:40.326036
2020-06-02T13:24:04
2020-06-02T13:24:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,234
py
from office365.graph.onedrive.driveItem import DriveItem from office365.runtime.client_result import ClientResult from office365.graph.resource_path_url import ResourcePathUrl from office365.runtime.serviceOperationQuery import ServiceOperationQuery class DownloadContentQuery(ServiceOperationQuery): def __init__(...
[ "Ajilon80!" ]
Ajilon80!
cc57e8637846f5c1bded34264f35dce145782036
e5afbbd2b8d6c05ade1ca62114f20e1d1415924c
/cryptocurrency/user/migrations/0005_auto_20210305_0052.py
c0a4dcf0a8913a5c0c332f04abd258087654de38
[]
no_license
Quuuops/CryptBtc3
dcd6f83981fe3a8958c12da40ecdcd92ca2867c9
51c26f54eb8745e0751251be171cc5622d4098f1
refs/heads/master
2023-03-27T04:25:55.590362
2021-03-18T16:46:21
2021-03-18T16:46:21
349,109,488
1
0
null
null
null
null
UTF-8
Python
false
false
990
py
# Generated by Django 3.1.7 on 2021-03-05 00:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('user', '0004_auto_20210305_0050'), ] operations = [ migrations.RemoveField( model_name='profile', name='bio', ...
[ "artur7borisovskiy@gmail.com" ]
artur7borisovskiy@gmail.com
2b26374d479945853d623e1cb319db8080a8e511
990e7c8f8132af3ff23bba649d35baf3fab6e7ed
/game/flappy_bird_utils.py
653179228d6b0c5a2c81fa391d039bc6c6f95bd4
[]
no_license
LeslieHoloway/RL_FlappyBird
53e0447e4b20b7179842c292398fd27c54789d03
66fac22b735507550d6630dd3772b5598f7c99c2
refs/heads/master
2022-11-16T16:46:18.638827
2020-06-28T06:50:59
2020-06-28T06:50:59
274,094,380
0
0
null
null
null
null
UTF-8
Python
false
false
3,037
py
import pygame import sys def load(): # path of player with different states PLAYER_PATH = ( 'assets/sprites/redbird-upflap.png', 'assets/sprites/redbird-midflap.png', 'assets/sprites/redbird-downflap.png' ) # path of background # BACKGROUND_PATH = 'assets/sprites...
[ "894018067@qq.com" ]
894018067@qq.com
7ad286cb647d8bb131896f8e84f1434b9fbd7613
fcc66636d1b2032d7b4978595148b2c98ccd9b07
/Javascript/Plotly/app.py
73067f6241d426d5c8a065744706053dca15c308
[]
no_license
Eric-Pacheco95/BootCampProjects
e2c76ee5fde91c1dcd7ed6b6ea04a521bf7d952f
a96503b664f769158c1678124199e9239d2bdfbd
refs/heads/master
2022-12-14T02:26:49.407484
2020-09-14T03:47:15
2020-09-14T03:47:15
295,289,623
0
0
null
null
null
null
UTF-8
Python
false
false
1,843
py
from flask import Flask, render_template, url_for, jsonify import json import pandas as pd #Load samples.json file into variable 'data' with open('data/samples.json') as f: data = json.load(f) #Create dataframes for metadata & samples which can easily filtered through with .loc Metadata = pd.DataFrame(data['metad...
[ "eric.pacheco@mail.utoronto.ca" ]
eric.pacheco@mail.utoronto.ca
83d41da79e82c1992c1e3a6b6b82a11294284546
a984dd21746880890da72c39cd4163dc4f7b97f3
/tools/book_test.py
6efe84e2e3bdd4bef2de30ff124e6e0735936611
[ "Python-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
stan-xrex/cryptofeed
c28c3970e09ddf5f2a252553b2367a6124863951
6ce30a7640f8078ffa0f355e6875b3d12b98c488
refs/heads/master
2020-07-05T16:18:03.531433
2019-10-09T06:54:25
2019-10-09T06:54:25
202,696,966
0
1
NOASSERTION
2019-08-16T09:13:09
2019-08-16T09:13:09
null
UTF-8
Python
false
false
1,304
py
''' Copyright (C) 2017-2019 Bryant Moscon - bmoscon@gmail.com Please see the LICENSE file for the terms and conditions associated with this software. ''' import time from cryptofeed.callback import BookCallback from cryptofeed import FeedHandler from cryptofeed.exchanges import Bitmex from cryptofeed.defines import ...
[ "bmoscon@gmail.com" ]
bmoscon@gmail.com
28e44bb620ec87fdb7022b6ac69466fe944a1eb3
fad23cd35e5b2d353916ac65981b50fbcad3c0d6
/arguebuf/load/_load_microtexts.py
acc90b14016a17b9243253e36646dde43720cc91
[ "MIT" ]
permissive
recap-utr/arguebuf-python
95e699a6f32894d2f8939e154a135845d38e5823
a7e27c188e58694b0d4bf42b7d64f19e4630af01
refs/heads/main
2023-09-04T06:08:03.668923
2023-07-18T06:20:22
2023-07-18T06:20:22
224,925,689
4
7
MIT
2023-09-12T09:09:15
2019-11-29T21:42:14
Python
UTF-8
Python
false
false
4,208
py
import typing as t from dataclasses import dataclass from lxml import etree from arguebuf.model import Graph, utils from arguebuf.model.node import Attack, Support from arguebuf.schemas.microtexts import EdgeType from ._config import Config, DefaultConfig __all__ = ("load_microtexts",) @dataclass class _Edge: ...
[ "mirko@mirkolenz.com" ]
mirko@mirkolenz.com
42efa7b5c841e6dd1b95847db303f55bd4e5e1a7
293a28855e66358a454e2d8d38d84394a3cf0ede
/Yeast, Wheat and Rice/noise_contamination/std/gbm.py
6383c782669f947cc2762c874f8fd548e6ddafdd
[]
no_license
juanelenter/DNAi
cbfe8aa3424f57d93c9e6250a8fb153090514a7c
5d41961df6efcde5ead5003b247d7d5260e25128
refs/heads/main
2023-02-18T09:15:50.994200
2021-01-23T18:39:30
2021-01-23T18:39:30
331,697,588
0
0
null
null
null
null
UTF-8
Python
false
false
2,932
py
import pandas as pd import numpy as np import os import pickle from sklearn.ensemble import GradientBoostingRegressor from sklearn.model_selection import train_test_split from sklearn.metrics import r2_score from IPython.display import clear_output from add_noise import add_noise pheno = pd.read_csv(r"../feno.txt")...
[ "pachi@pablosmac.local" ]
pachi@pablosmac.local
695f78552d98fbe3cbfc38700c1d30124e0ede41
b1ae970407052db7527bdf0372653ad2ee2f19b2
/module_1/case_study_1.1.2/svilda.py
761c6cf09a849b30d2d943a3605409e485d713c7
[]
no_license
ganijon/mitx-ds
c51707d4159445ee6b25fa040e6b8c6329018cdf
d3182b65048f8717b81c41febc001d796343f736
refs/heads/master
2020-07-23T17:55:18.812908
2019-09-12T22:14:23
2019-09-12T22:14:23
207,657,488
0
0
null
null
null
null
UTF-8
Python
false
false
7,744
py
import sys, re, time, string, random, csv, argparse import numpy as n from scipy.special import psi from nltk.tokenize import wordpunct_tokenize from utils import * # import matplotlib.pyplot as plt n.random.seed(10000001) meanchangethresh = 1e-3 MAXITER = 10000 class SVILDA(): def __init__(self, vocab, K, D, alph...
[ "ganijon.rahimov@se.com" ]
ganijon.rahimov@se.com
261e7f6822153e865e474c711d1184319e3a594d
85f14b16182e49027bc0b1214efd49bcfd1163a1
/admm_research/dataset/remap_values.py
8ea16e371d31bdf928b12fc99f534271344f7d03
[]
no_license
jizongFox/DGA1033
83d1b4f5a68e3483864bdbddebd3da5f176e061b
3b1849d986df06b68d4b55adbb49aeecccf2e002
refs/heads/master
2022-02-27T18:55:18.129274
2019-01-17T20:12:13
2019-01-17T20:43:41
153,524,259
2
1
null
2019-01-02T13:12:52
2018-10-17T21:11:00
Python
UTF-8
Python
false
false
933
py
#!/usr/bin/env python3.6 import warnings from sys import argv from typing import Dict, Iterable from pathlib import Path from functools import partial from multiprocessing import Pool import numpy as np from skimage.io import imread, imsave def mmap_(func, iter): return Pool(1).map(func, iter) def remap(change...
[ "jizong.peng.1@etsmtl.net" ]
jizong.peng.1@etsmtl.net
2d710a0bc85d1d5158d4683f0182cd1ab61baa52
903d7f9286e82905472da316a6185f8f44d7a10e
/code/car.spec
030c278e1b99f3366c4f7e2b8cb54bfef0afdda8
[]
no_license
paul1015/NCU_CE6126_Assignment1
9eabb0769e07397e82e89c045bc6a860e2915ebc
5097b0de91cefcc1fd342ca4c41b20b03cd4124d
refs/heads/master
2022-12-31T07:56:02.843107
2020-10-26T02:52:52
2020-10-26T02:52:52
250,200,558
0
0
null
null
null
null
UTF-8
Python
false
false
897
spec
# -*- mode: python ; coding: utf-8 -*- block_cipher = None a = Analysis(['car.py'], pathex=['C:\\Users\\paul\\Desktop\\computing tellegence\\NCU_CE6126_Assignment1\\code'], binaries=[], datas=[], hiddenimports=[], hookspath=[], runtime_hoo...
[ "chungpaul1015@gmail.com" ]
chungpaul1015@gmail.com
519e5f41a029fe97c0b2ae69dd541aad6bc2cf78
b3995c0ef04833f348be8bdc85d877fe9342663b
/imbreports.py
8a1d0d1c44fe0954160704f2b35d35c631d79bc2
[ "Apache-2.0" ]
permissive
dgilros/TFM-Fraude
6f428433f761ffbdd911c9f554a983543e47146d
777fb054c0a687edb7baa6522ffe9cc067036299
refs/heads/main
2023-02-20T09:14:15.479555
2021-01-19T14:14:36
2021-01-19T14:14:36
308,249,757
0
0
null
null
null
null
UTF-8
Python
false
false
14,197
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 16 10:44:39 2020 @author: David Gil del Rosal """ #imbreports.py from collections import defaultdict import numpy as np import pandas as pd import matplotlib.pyplot as plt """Genera una tabla LaTeX a partir de un diccionario con informes.""" def r...
[ "noreply@github.com" ]
dgilros.noreply@github.com
934f6cc65bb5102cb2a33a42e4ac7d5b7bd08355
b5c92150b0fb76daf9b8725c7a64ba1b54f2d9c7
/auth_ldap_update/models/__init__.py
11fcf5522c5097f4417cf1c613fb658948a8730c
[]
no_license
hashemalycore/CMNT_00107_2017_SAR_addons
63da3c66eddc99b585671cc85a53661a497771aa
071646e495fcd9563f72a02f6630ee4d70afa438
refs/heads/master
2020-04-02T10:25:32.457793
2018-02-12T13:09:16
2018-02-12T13:09:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
65
py
# -*- coding: utf-8 -*- import res_company_ldap import res_user
[ "javierjcf@gmail.com" ]
javierjcf@gmail.com
ad014d37a3f02b6d7adf9e256074512d236d625d
8ffd9c444be1c4f836fe2a0d39199a4c8a495632
/Rnn_mcmc/elman_rnn_mcmc.py
22e62afe026e307815f56af7056ee648ab23f9f9
[]
no_license
sydney-machine-learning/Elman-RNN-python
fbe334fb45c3668876813c86384db3b6ec68eb80
23452cd48db8aa507887626c7a78e520b5e41fcf
refs/heads/master
2020-05-23T12:07:41.808307
2019-06-14T06:19:03
2019-06-14T06:19:03
186,751,551
4
3
null
null
null
null
UTF-8
Python
false
false
21,270
py
# Rohitash Chandra, 2017 c.rohitash@gmail.conm #!/usr/bin/python #Feedforward Neural Network in Python (Classification Problem used for teaching and learning purpose) #Sigmoid units used in hidden and output layer. gradient descent and stocastic gradient descent functions implemented # this is best for teaching and...
[ "ashray17aman@gmail.com" ]
ashray17aman@gmail.com
aa37c08251b42c8f761de3d567435b29526433cb
49cd7186494471d560b19630b63628e13397e4c2
/ptools.py
e65da902c6c41f947046dd70a3c43f6b48c26252
[]
no_license
Naeemkh/seismtools
65a33af6cd274bb6850c77302e67293462418cce
aa40ed59ffd9f59cf9f5a02c00c0e7a8fe75aed8
refs/heads/master
2021-05-14T13:18:38.919757
2017-11-09T17:48:36
2017-11-09T17:48:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,332
py
#!/usr/bin/env python """ # =================================================================================== # The program contains general functions what may be used by other programs. # =================================================================================== """ from __future__ import division, print_fu...
[ "fsilva@usc.edu" ]
fsilva@usc.edu
80559b83f3e770ba73cc305ec047ba029df26fd9
a7906a7fa7b8570c1abe4861e846f12aeac82035
/Automation/find_difference.py
90c020db79b176887dffcc0fd3dce4ab851ef768
[]
no_license
Paradiddle131/Scrabble-Solver
42a4e6f1539e9e7d497beba2af94c89d63f6ca34
e96fe2512d4e5108fd6934c3d6ff72398aac5c02
refs/heads/master
2020-06-26T03:45:29.225361
2019-08-24T20:42:16
2019-08-24T20:42:16
199,517,931
1
1
null
null
null
null
UTF-8
Python
false
false
1,266
py
from skimage.measure import compare_ssim import imutils import cv2 def compare(path_img1, path_img2): imageA = cv2.imread("path_img1")[:380, :] imageB = cv2.imread("path_img2")[:380, :] grayA = cv2.cvtColor(imageA, cv2.COLOR_BGR2GRAY) grayB = cv2.cvtColor(imageB, cv2.COLOR_BGR2GRAY) (score, diff...
[ "ebhan96@hotmail.com" ]
ebhan96@hotmail.com
44568cce554fff4f7e1cdfaf4d92ab3481056d71
2dcfe2b1892afc55927fe822fe2bb179bf277376
/test/com/dvsnier/git/branch/test_branch.py
4cd953eddf0ad114c20933cab7295c545f5e7727
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Alinvor/Python-DeMo
cc0aff609a6e1afbe09121618d5cfe188239a806
e7b5e56eac86c03460f83a3a682cc9ad351f74fc
refs/heads/deploy
2022-03-15T08:34:15.261500
2021-07-08T06:14:36
2021-07-08T06:14:36
224,807,399
1
0
MIT
2022-02-14T06:49:21
2019-11-29T08:12:00
Python
UTF-8
Python
false
false
1,603
py
# -*- coding:utf-8 -*- from com.dvsnier.git.branch.branch import Branch import unittest class Test_Branch(unittest.TestCase): ''' the test branch ''' @classmethod def setUpClass(cls): print("...the set up...") print def setUp(self): return super(Test_Branch, self).setUp() ...
[ "zhenwei-li@qq.com" ]
zhenwei-li@qq.com
5f0f95f556f85312cf7976e4fe23d559d665d9d3
c9299c10a175a8d925839adc58bbc7f86d4650f5
/tracker/migrations/0008_auto_20200923_0928.py
e574d9eee0257ff0d9fb4b17dec64974990148d2
[]
no_license
bartwroblewski/strava_gear_wear_tracker
e2e082a04cfdd226b24f59d64f1a0651224eba68
e12e3cd559d096668525ce2e0bd6047d3d508c4c
refs/heads/master
2023-09-04T13:58:42.909991
2023-08-20T18:52:06
2023-08-20T18:52:06
296,386,864
0
0
null
null
null
null
UTF-8
Python
false
false
355
py
# Generated by Django 3.0.9 on 2020-09-23 07:28 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tracker', '0007_gear_athlete'), ] operations = [ migrations.RenameField( model_name='athlete', old_name='ref', n...
[ "barti.wroblewski@gmail.com" ]
barti.wroblewski@gmail.com
49bca84529a5aaba8437382334746031792f4317
0b824e5b74927043cb4eb1cc6cbd5ce272509500
/eventkit_cloud/management/commands/clear_rabbitmq.py
6798273af8c4bd32e4bbf4b21db238189b797a09
[]
no_license
sandhillgeo/eventkit-cloud
dcfe69fc02de7eef49981568ae0354cd74188dc2
5b57506073f36e883e1b8c01d823b1bb40dc2f99
refs/heads/master
2023-08-31T16:07:51.081199
2023-03-22T18:20:19
2023-03-22T18:20:19
138,497,211
1
0
null
null
null
null
UTF-8
Python
false
false
773
py
from django.conf import settings from django.core.management import BaseCommand from eventkit_cloud.tasks.helpers import delete_rabbit_objects class Command(BaseCommand): help = "Deletes the queues (and optionally exchanges) in rabbitmq." def add_arguments(self, parser): parser.add_argument("--force...
[ "noreply@github.com" ]
sandhillgeo.noreply@github.com
8a08164dec033ea229b3f614f80e9bd29061445f
fedcfb2a7dfdffdc87979f46c8df9605897b7546
/request.py
189aff2de29177aa7c1b948e61854a8d705b433d
[]
no_license
omsmruti/rent-predicton
de82484c9e20dae9be2c281eac411698e6134c51
36eadd4f4eba19f7a55a038effb88241d22a4b74
refs/heads/main
2023-08-01T06:16:03.284652
2021-09-26T10:47:38
2021-09-26T10:47:38
331,343,526
0
0
null
null
null
null
UTF-8
Python
false
false
160
py
import requests url = 'http://localhost:5000/predict_api' r = requests.post(url,json={'experience':2, 'test_score':9, 'interview_score':6}) print(r.json())
[ "noreply@github.com" ]
omsmruti.noreply@github.com
a0494aea564e47411668a3233912483a5cc2c136
9eb74a86c49ad1fc8808c4162c92684efa177007
/Predict_packge/ex.py
bcbe564e4ea4f3ce5d9153670187b331c196502f
[]
no_license
sih2020admin/RK305_GuardianOfSecurity
6fd4fe317e4ba79aaf771fefe4f958844c551ec6
c533e15cad7dc29de4016a935e80b7aa052ebfe8
refs/heads/master
2022-11-28T02:22:26.993803
2020-08-03T08:45:51
2020-08-03T08:45:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
from predictor import predictor while True: print(predictor(input('enter url: ')))
[ "noreply@github.com" ]
sih2020admin.noreply@github.com
6587bab7164322da3cff51a756b2605e699c2dc9
87abf2d776ae18d727960e111233f3c08ac334e2
/Calculator.py
5cf777cab2a235cda9cd9723a428e3380361de88
[]
no_license
Abusiddique/learning_python
b3d3ee391098960bff63c68ed7421a8b4af63c1a
fe5ddf915c33424454dc1664fba7b747481154d0
refs/heads/master
2020-09-08T15:13:14.468538
2019-11-13T20:41:02
2019-11-13T20:41:02
221,169,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,654
py
""" Script to perform few operations like Addition, subtraction, multiplication, division """ import sys from functools import reduce def get_input(): """Get inputs from the user""" list_of_numbers = input("Enter the numbers") list_of_numbers = list_of_numbers.split(',') list_of_numbers = [float(numb...
[ "noreply@github.com" ]
Abusiddique.noreply@github.com
6debb1e5d989e8158ec1b32b631755d2bfbd2e8d
dc54551511ef3727e68c3fb2816885282c608fb3
/blog/migrations/0001_initial.py
deff4b6fb56dc7ef5c050abf6f0ee6a522791f88
[]
no_license
namsa87/my-first-blog
8dbbe937feb2dde66ac284b4fd71fa060aa05e94
ed8e3e3443a2da870e75319de2dd691c0d58874b
refs/heads/master
2020-04-11T11:05:11.748421
2018-12-14T05:38:46
2018-12-14T05:38:46
161,736,848
0
0
null
null
null
null
UTF-8
Python
false
false
986
py
# Generated by Django 2.1.4 on 2018-12-12 08:04 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
[ "namsa87@naver.com" ]
namsa87@naver.com
9b2d29f4fff76ec86524f13f2e06d002aa05c6f5
81e146400d2f20e4a074c6a6d6959c869db02af5
/paint.py
bb3d08f563f948bb8ce1ff38c0ccc4a591699031
[]
no_license
Iljanikolaev/-Classifier-of-handwritten-numbers
60fedc25d2b11e72045f9254074abd44ae361b8e
95bebbfd561bb50301bf742306d0be1a5489f46f
refs/heads/master
2023-01-09T02:13:31.955638
2020-11-12T19:42:20
2020-11-12T19:42:20
312,378,262
1
0
null
null
null
null
UTF-8
Python
false
false
5,297
py
import pygame import sys from nn_pred import net_predict, retrain class Paint(): """Класс для рисования""" def __init__(self, screen, ai_settings, infob): '''Инициализирует атрибуты Paint''' self.screen = screen self.ai_settings = ai_settings self.infob = infob #Создание доски для рисования self.blackboa...
[ "Iljanikolaev@users.noreply.github.com" ]
Iljanikolaev@users.noreply.github.com
457e16e30d9d18d0a338af9cd2170263202442fe
c41dae9f23a4c01aa8997e77eda3a232ff581b93
/dendropy/distributions.py
d6d185b410ad332543228cd86276b567735f3ea7
[]
no_license
dtneves/SuperFine
56ee0dc00490eac50b8435612f39332a813dc2d1
40979405a43703506b84925b26bb9d2c7c9c021b
refs/heads/master
2021-01-11T04:19:27.253474
2016-11-19T15:10:22
2016-11-19T15:10:22
71,179,608
7
1
null
null
null
null
UTF-8
Python
false
false
7,919
py
#! /usr/bin/env python ############################################################################ ## distribtions.py ## ## Part of the DendroPy library for phylogenetic computing. ## ## Copyright 2008 Jeet Sukumaran and Mark T. Holder. ## ## This program is free software; you can redistribute it and/or modify ##...
[ "dneves@di.uminho.pt" ]
dneves@di.uminho.pt
0013e4a03b6caa7288d822b12bf24df9573c2bc8
88a7914816e506f8e355b820db742a0817551ff5
/flask/SCIM/tests/users/UpdateUserTest.py
1323ec2c771d480ec55f15801cbc35966f7613b2
[]
no_license
OktaAlliance/SCIM-Connectors
b49c53e275affc075ded81ce70fa9da1cbe4b4c9
1582d2cd23207642370032ff901016fb3078a6f2
refs/heads/master
2023-02-06T20:19:07.249598
2023-01-25T19:04:59
2023-01-25T19:04:59
252,565,297
0
2
null
2023-01-25T19:05:00
2020-04-02T21:13:00
Python
UTF-8
Python
false
false
2,863
py
from logging import DEBUG from unittest import TestCase, TestSuite, TextTestRunner from SCIM.helpers import set_up_logger from SCIM.tests.common import TestHelper logger = set_up_logger(__name__, level=DEBUG) test_helper = TestHelper('/Users', logger) logger.info("These tests use the sample data in SCIM/examples/us...
[ "michaallen@deloitte.com" ]
michaallen@deloitte.com
e48e33dd8d2b1aae89f00510dddfd5da027df19b
b53f736c173776cc41617334dd4b133e1434a67a
/feedManager.py
871af0192923985a818d6f56db282ad07e79dcdb
[]
no_license
aRivieraDream/rss
90f3d96065d52350dfae18211ff00c8090934245
6940f9552dda11765d9df122c16ae49e036fbdf9
refs/heads/master
2016-09-14T01:24:29.637229
2016-04-30T19:59:59
2016-04-30T19:59:59
57,459,544
0
0
null
null
null
null
UTF-8
Python
false
false
17
py
#feedManager.py
[ "808pierce@gmail.com" ]
808pierce@gmail.com
9262d61d0f5457035294c6c1e95ee65fe5cdd72d
3ed5bc4db4387d41524b33cd4130316ec861ccfd
/test_case/login.py
af3b9ca4923ddc4a8e6737b895e64bdfe4ae7fb8
[]
no_license
wujide/testcase
7cc02f950e29e8b1f9ea6dfdea46971fc28d4f31
4ad2a843bb12236eee7950aff7963afbe480539e
refs/heads/master
2021-09-18T07:48:50.639773
2018-07-11T09:28:24
2018-07-11T09:28:24
105,023,414
0
0
null
null
null
null
UTF-8
Python
false
false
537
py
# coding=utf-8 # __author__='wujide' from flask import json from interface_test_class import InterfaceTest def login(): # 初始化login 实例 login_obj = InterfaceTest(r"../info/login_para.txt") # 获取参数 values = login_obj.data_get() # <type 'dict'> response = login_obj.data_post(values) data = respons...
[ "wujide2015@126.com" ]
wujide2015@126.com
5709d2a81a6cc6dd23607c5183a47eaf1be2e861
38fda0c667f1a58aab1aac8473614c240e8f9caa
/day_02/timing_function.py
9f02e685228024f310dabfb84f8429caabe77017
[]
no_license
KeithC113/python_course
a32218d4e0beadd153af795e9326d1e304913953
6213e08adc9e501ac62910b7c5e852a8eca43332
refs/heads/master
2022-12-24T06:24:44.060083
2020-09-29T12:56:44
2020-09-29T12:56:44
299,559,132
0
0
null
null
null
null
UTF-8
Python
false
false
268
py
import time def timing_function(callback): def wrapper(): time1 = time.time() # before function call callback() time2 = time.time() # after function call return f"here is how long it took {time2 - time1} secs" return wrapper
[ "campbell_ka@yahoo.co.uk" ]
campbell_ka@yahoo.co.uk
ffb0d0bca4435856f8d0d4ba9831a9b8078ce14c
7745d38989396297583ec1012844e3e1bc2ac31f
/HW06/kmeans.py
cf9b9b2c2fed1b23f7bd2b9ff443ccda6d37bcf0
[]
no_license
yan-roo/NCTU-ML-class
94b5db041bef1303669466b48b4df1e6b411abe7
abf0a4a88d692476e90789f477cf600d4656e9e3
refs/heads/master
2022-11-07T23:37:43.376395
2020-06-30T05:44:09
2020-06-30T05:44:09
255,879,423
0
0
null
2020-04-15T10:13:31
2020-04-15T10:13:30
null
UTF-8
Python
false
false
2,823
py
import numpy as np from util import * EPS=1e-9 def initial_mean(X,k,initType): ''' @param X: (#datapoint,#features) ndarray @param k: #clusters @param initType: 'random','pick','k_means_plusplus' @return: (k,#features) ndarray, Kij: cluster i's j-dim value ''' Cluster = np.zeros((k, X.shap...
[ "chiha8888@gmail.com" ]
chiha8888@gmail.com
9e518e3261015d01854fb8c1cb3f4890143be3d3
e391234621066b334ec298c524118f9bff401123
/Sesi_Workspace/ml_service/ml_service/urls.py
1ef8ada7ffdc322aa6f6e6eebb18f19ea89a2e3f
[]
no_license
tb1015/Ngoding
a9098ab9767584f0a697b2791f3dd0c86919e534
633a626fdd2a803edb27f7b9b1c12a6b0af20904
refs/heads/main
2023-08-28T14:05:37.123370
2021-10-16T05:48:08
2021-10-16T05:48:08
393,733,240
0
0
null
null
null
null
UTF-8
Python
false
false
861
py
"""ml_service URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
[ "thoms1015@gmail.com" ]
thoms1015@gmail.com
1771b90fa501b6fb068d128d4546d5d84fb9cbe7
0cf5ade651ad671e6c7b84335b5ae7510df2b5ed
/M3Coursework/gillespieMK11.py
54ec8b4b1a9412f91a243deb022b264d2aec289e
[ "MIT" ]
permissive
GKAW/share
35898170eb22cfa62c8fb94c821bb5fabcebd0b5
2e22ce09deb1986e2e60d0bb53aafd48b1173603
refs/heads/master
2020-09-03T03:30:30.996902
2019-11-21T10:16:12
2019-11-21T10:16:12
219,375,021
0
0
null
null
null
null
UTF-8
Python
false
false
6,680
py
import os import numpy as np import matplotlib.pyplot as plt import scipy.integrate import pandas as pd import math #===INITIALISE=== pltno = 100 # how many gillespie sims do you want? endTime = 1000 # When should Gillespie stop? 25k seconds is ca 20 cycles (24000) k0 = 0.2 #s^-1 k1 = 0.01 #s^-1 m0 = 20 # initial c...
[ "gkw16@ic.ac.uk" ]
gkw16@ic.ac.uk
7fec2706466fe1c1870db5cfe0ec39559e11d0db
3925a36faf828a695c751a88bd99dc24f38ddb29
/web_app/settings.py
a9211f5e8891d862f185e6177a854e48fe2cd0ad
[]
no_license
dlaredorazo/ml_api
b67bf7dd72eae880a53f0afc0231958e399338cf
a7a71abfaa88df6e367aba9584774ea753c3a1ed
refs/heads/master
2022-12-29T20:13:54.908740
2020-10-20T05:17:49
2020-10-20T05:17:49
305,581,216
0
0
null
null
null
null
UTF-8
Python
false
false
169
py
import pathlib appGlobals = {} def init(): global appGlobals appGlobals['app_root'] = pathlib.Path(__file__).parent.absolute() appGlobals['ml_models'] = {}
[ "davidlaredo1@gmail.com" ]
davidlaredo1@gmail.com
6f7883d25929d75290d6e07e7e20f1853024ad0d
475b1bd5f07bf002dbe855dda98b318b75637f21
/tutorial/snippets/permissions.py
a5a4ae961f125bc8a739d9dbe470eed20c565734
[]
no_license
danieldcl/django-rest-practice
4a9e53a592dbd328e33daa04c70ee6b51eead1d9
ee636f8fcdb08b153b424e392c5799bb247239ab
refs/heads/master
2020-11-26T10:07:36.019349
2019-12-19T11:28:58
2019-12-19T11:28:58
229,038,781
0
0
null
null
null
null
UTF-8
Python
false
false
339
py
from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): """ only allow owners of an object to edit it """ def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj.owner ==...
[ "dcliao@Dcs-MBP.local" ]
dcliao@Dcs-MBP.local
d5eae104ed1dbca0437560f286226681863db8e6
12ed28c03ecb2b0b8eba651454467ea2dfd8b28f
/app/venv/lib/python3.7/site-packages/azure/iot/device/common/mqtt_transport.py
964a714fd0ad1da9a396d74b6307d4f21f2be6cb
[]
no_license
nsnyder1992/rpi-iot-test
93edb068881dc8c9c3990806fd721156b2827518
e8a44ca7e09a0f3d27efc472458a49a2ae6f84de
refs/heads/main
2023-01-27T13:26:58.447897
2020-12-10T22:56:28
2020-12-10T22:56:28
319,775,348
0
0
null
null
null
null
UTF-8
Python
false
false
29,465
py
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- imp...
[ "nsnyder1992@gmail.com" ]
nsnyder1992@gmail.com