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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
210d512330e8abd0fb7ad24944d2c9940b3f89de | 6440a113597191d3b78aa6b5cae6cea9fb057e2e | /August-Challenge/10.py | b21c3a313bebbab53721eccdafa5fcea44128377 | [] | no_license | DarshanGowda0/LC-Grind | 40c162d8894df81ea7124f66daf20f86f327b6cb | f7b9a86797d52ab1057f0300352c0c5670a59bd5 | refs/heads/master | 2023-01-28T01:27:45.195164 | 2020-12-06T03:58:14 | 2020-12-06T03:58:14 | 277,024,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py | from collections import deque
class Solution:
def orangesRotting(self, grid: List[List[int]]) -> int:
# use bfs with timestamp
directions = [(1,0), (-1,0), (0,1), (0,-1)]
m, n = len(grid), len(grid[0])
que = deque()
for i in range(m):
for j in r... | [
"darshan.gowda008@gmail.com"
] | darshan.gowda008@gmail.com |
e9b4d2a23744022658a9abdb3e3dd716b50ad8c4 | 747755833862b8e9d0f58ebc62879d6ef47c23c8 | /python-master (5)/python-master/zhilian_new.py | b2c2f638b5b2230c54dc3553c300bdd1b683b5cb | [] | no_license | tangsong41/stu_py | 98a06730dbca6e158cf81c18d98fe1317c1ae512 | d41507cd8dd9e8a54084872dfa15c36da443c02b | refs/heads/master | 2022-12-11T23:53:57.530946 | 2019-01-15T18:29:19 | 2019-01-15T18:29:19 | 163,953,100 | 3 | 0 | null | 2022-12-07T23:24:01 | 2019-01-03T09:41:29 | Jupyter Notebook | UTF-8 | Python | false | false | 5,314 | py | # encoding: utf-8
__author__ = 'zhanghe'
import requests
import json
import logging
from pyquery import PyQuery as Pq
from tools import zhilian
logging.basicConfig(level=logging.DEBUG, filename='zhilian.log', filemode='w')
# 登录页的url
url = 'https://passport.zhaopin.com/'
# 有些网站反爬虫,这里用headers把程序伪装成浏览器
header = {
'... | [
"369223985@qq.com"
] | 369223985@qq.com |
699244c39d0cfa6d0b34047b5368788825556e8d | c4ddbcb4b02c9ba487c5f128db30ac9b5cae6d92 | /vizdoomgymmaze/envs/vizdoommazeone11.py | 1615d82bff249e486a614a7cdfd0724899f32f6b | [
"MIT"
] | permissive | fanyuzeng/vizdoomgymmaze | 11d1a5b2e05ff1eb2606015e0eae128ea42425cb | 51f750405a762e3f19193c09ef34380786c11efe | refs/heads/master | 2020-07-22T20:20:29.780544 | 2019-08-27T09:51:51 | 2019-08-27T09:51:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from vizdoomgymmaze.envs.vizdoomenv import VizdoomEnv
class VizdoomMazeOne11(VizdoomEnv):
def __init__(self):
super(VizdoomMazeOne11, self).__init__(24) | [
"wangchen100@163.com"
] | wangchen100@163.com |
fe95ba1affa130825a886104f8a5791e5ceae0ac | 46f87eae767602d40b3c39ae069d33669bbd2584 | /python-prgject/venv/Scripts/easy_install-3.7-script.py | bb4e37ef0cf3542682bde0b14e6146ba865b5fc9 | [] | no_license | ADSL-Plucky/learngit | 3f59e80d13546f9e0be8aa8ba30a23cf67ff4c4d | d4aace0cf4ee249f6b29c352859644eb8f4c9236 | refs/heads/master | 2021-02-18T10:22:03.734093 | 2020-06-26T06:49:22 | 2020-06-26T06:49:22 | 244,944,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | #!E:\Python\python-prgject\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"836046238@qq.com"
] | 836046238@qq.com |
8ddbe4a4979a7f7cba769558ef23c929ef0a570b | 20abf1e776e7d95277999398985d60df34970140 | /可视化/散点图.py | 4714ecc585870c8fa46d42835918eb7442870731 | [] | no_license | NoraCarl/Python | 5f931974e3b82d5362ca41ff8a7d1ee64b07328e | 2cbdabfa16d2457d9fa2c2095774d5d7c4f36abe | refs/heads/master | 2022-12-15T11:28:42.109466 | 2020-09-21T10:17:33 | 2020-09-21T10:17:33 | 296,377,328 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
#设置中文
plt.rcParams['font.sans-serif']=['Simhei']
plt.rcParams['axes.unicode_minus']=False
# 设置随机值
N = 10000
x = np.random.randn(N)
y = np.random.randn(N)
if __name__ == "__main__":
plt.figure(figsize=(12,6))
plt.scatter(x, y,s=100,alpha... | [
"17623461751@163.com"
] | 17623461751@163.com |
43f838411752aaa7b70c2c2bc2e9885eeb519a7f | 9e637c9b101015263071526ef666f7ef3eb11831 | /scripts/wds_debug_off.py | 5d3fe843b5227464eb371fa9f3cf12882513f1a3 | [] | no_license | qiaoshouxing/crtcfg | 3314c472a650da075bf83be088f947876c4c3037 | b4d14fcb76246c17f2b7c8829cb543fc447d7af0 | refs/heads/master | 2021-01-25T11:03:28.924290 | 2017-06-10T02:15:16 | 2017-06-10T02:15:16 | 93,909,177 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | # $language = "Python"
# $interface = "1.0"
'''
crt script, update image
'''
import os
__author__ = 'sxqiao'
crt.Screen.Synchronous = True
def main():
crt.Screen.Send('\r\n')
crt.Screen.Send('exit\r\n')
crt.Screen.Send('\r\n')
crt.Screen.Send('quit\r\n')
crt.Screen.Send('\r\n')
crt.S... | [
"qiaoshouxingsdd@163.com"
] | qiaoshouxingsdd@163.com |
79cfe48d6912952f15b68446a795e5a636f8fc3a | fb88cacbaf6a983f73672ea0eb243a146d2e491f | /web_socket/__init__.py | ba62b7d7a85e8ade38692b6e74ba5d5a7596de4e | [
"MIT"
] | permissive | dtkcs01/project-loader | 860d9e114c9cffc9fba6f848cd4d73836fed297b | c33f91281d0eebd719ce43a80ad9a614735681f3 | refs/heads/master | 2023-08-17T00:30:26.094693 | 2020-08-05T15:43:46 | 2020-08-05T15:43:46 | 258,460,593 | 0 | 0 | MIT | 2023-08-14T22:15:12 | 2020-04-24T09:02:46 | Python | UTF-8 | Python | false | false | 131 | py | import os
import sys
sys.path.append(os.path.dirname(os.path.realpath(__file__)))
from web_socket_handler import WebSocketHandler
| [
"dtkcs01@gmail.com"
] | dtkcs01@gmail.com |
11eaf6953c9bfd9b109db46d19ac79e6b3682fdc | a03303e46f21697c9da87d0bb0f7b0a3077aba5c | /siswa_potongan_biaya/models/calon_siswa.py | ea4fd1771e5abc6c983546bd01d6ddd0b5a81a34 | [] | no_license | butirpadi/flectra_app_sek | fccd3e47ef261e116478e6da7f0cc544ee67f127 | 00fa36d9176511f8ffe3c7636a8434ee2ed8c756 | refs/heads/master | 2020-04-06T10:26:37.053024 | 2018-11-19T23:59:34 | 2018-11-20T00:17:02 | 157,380,460 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,405 | py | # -*- coding: utf-8 -*-
from flectra import models, fields, api, exceptions, _
from pprint import pprint
from datetime import datetime, date
import calendar
class calon_siswa(models.Model):
_inherit = 'siswa_psb_ocb11.calon_siswa'
qty = fields.Integer('Qty', default=1)
# override on generate pembayaran ... | [
"butirpadi@gmail.com"
] | butirpadi@gmail.com |
31b8ef762b0ceea39277622cf231f8ad06a54314 | b64bdb3d5e15694fceadf2dc3e303107574af3e3 | /app01/models.py | 4f51b80d79171430982f847aae640a87b92e8309 | [
"Apache-2.0"
] | permissive | lixiang30/restdemo | 31624ebe944e9d21e3856f2e74891e6287213847 | 1a01ed14a99ce15d16bc857541d0882f6727447c | refs/heads/master | 2020-04-05T12:03:21.782491 | 2018-11-22T07:31:34 | 2018-11-22T07:31:34 | 156,856,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,159 | py | from django.db import models
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=32)
price = models.IntegerField()
pub_date = models.DateField()
publish = models.ForeignKey("Publish")
authors = models.ManyToManyField("Author")
def __str__(self):
ret... | [
"534551900@qq.com"
] | 534551900@qq.com |
edf3214aa2632cb707d9e76ef68704be436c3a8b | c16ea32a4cddb6b63ad3bacce3c6db0259d2bacd | /google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/services/services/ad_group_ad_asset_view_service/transports/base.py | 02b9a075f24439fca6a2439e85ffce2d60f99f10 | [
"Apache-2.0"
] | permissive | dizcology/googleapis-gen | 74a72b655fba2565233e5a289cfaea6dc7b91e1a | 478f36572d7bcf1dc66038d0e76b9b3fa2abae63 | refs/heads/master | 2023-06-04T15:51:18.380826 | 2021-06-16T20:42:38 | 2021-06-16T20:42:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,819 | 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 or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
20b1fc1feee6f9f40bc5791f54856c882f9619b7 | 6ac36f3c59e7a65fccf90e8ab54bbfc75f655c64 | /buildURL.py | a280b96c67f50c5e2c0e365a2210ab8dfef271a6 | [] | no_license | crhodes2/JAMA-ID-Checker | 76658b020f807419423e72b29ed9c2eb98043676 | 5ad0bf4e7eddebd1f38ea91d2ef1169c737dd891 | refs/heads/master | 2020-03-28T15:00:16.759007 | 2018-09-14T21:20:41 | 2018-09-14T21:20:41 | 148,545,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | # !/usr/bin/env python3
# -*- mode: python -*-
##############################
''' BUILD URL '''
##############################
# LIST OF MODULES #########################################################################
# VARIABLES #########################################################################
id =... | [
"crhodes@jama.com"
] | crhodes@jama.com |
dc4ceb94123ac84ffc8ecc8d3b1356c819f7e211 | b36ec0cf0fe0165e643af2095d13ebaeca366d12 | /plugin.py | 0f4c5bd693c028d84a7c3597662384003cc508ae | [] | no_license | k45734/downloader_video | a90f4354cb2112ced9cb8ddfcaa66dbb1f896643 | fc656e2657756be1e969ce02b17d0074ada6b14f | refs/heads/master | 2022-12-31T03:54:02.430596 | 2020-10-17T04:12:10 | 2020-10-17T04:12:10 | 295,620,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,083 | py | # -*- coding: utf-8 -*-
# python
import os, traceback
# third-party
from flask import Blueprint
# sjva 공용
from framework.logger import get_logger
from framework import app, path_data
from framework.util import Util
from framework.common.plugin import get_model_setting, Logic, default_route
# 패키지
############... | [
"noreply@github.com"
] | k45734.noreply@github.com |
5b730de8bdcae3b2658e59b3950333c0adb23829 | 649640025ff32274b44ab8c9982a262e31d70586 | /LJstream.py | 2fe7f15d15b8cadf3f2bb8c46818287d042e9f09 | [] | no_license | jalcok1/python | 1f31275dabc8153c8431d52336a2ec1855ce4f9b | deda9b28e76b0d97291275e1ac6e47dc73732d45 | refs/heads/master | 2021-01-23T07:16:58.538247 | 2014-07-06T23:17:30 | 2014-07-06T23:17:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,732 | py | import matplotlib.pyplot as plt
import numpy as np
import u3
from time import sleep
from datetime import datetime
import struct
import traceback
plt.ion() #Turn on interaction mode for faster plotting via draw()
###############################################################################
## U3
# Uncommen... | [
"ryanalcoke@gmail.com"
] | ryanalcoke@gmail.com |
66899219064fcede1534a8b9bb9447668ae49104 | be2393c9f3ce2e443e48a03902280177d3f2ae0e | /v1/Core_2_playbook.py | f98859c3954420cebe889d7c73d9df62dfac79ac | [] | no_license | cucy/ansible_learn | 6d08a0fbbb09e68f186d0151c828efbbd8b93717 | 12967ecf804adb64fefcfa206a23ef8741f935cd | refs/heads/master | 2022-12-10T12:52:07.002644 | 2021-05-05T06:47:18 | 2021-05-05T06:47:18 | 125,711,644 | 0 | 1 | null | 2022-12-08T00:43:01 | 2018-03-18T09:56:37 | Python | UTF-8 | Python | false | false | 1,588 | py | # 核心类
from collections import namedtuple
from optparse import Values
from ansible.parsing.dataloader import DataLoader
from ansible.playbook import Playbook
from ansible.vars.manager import VariableManager
from ansible.inventory.manager import InventoryManager
from ansible.playbook.play import Play
from ansible.execut... | [
"noreply@github.com"
] | cucy.noreply@github.com |
9c2c290abf5daf75f79551d53e07a51de7e7df53 | c60be77c2805ad4e792acb11b222974562017158 | /server.py | bfd372e77910af9bcc2efa9d920900618421cfa3 | [] | no_license | sahilarora3117/SensitiveContentFiltering | 3efdfcfef04d86af7b50cac0b36f79df0393abf0 | 2a60e2face864c9c906c7bb099d78f3b0eed7379 | refs/heads/main | 2023-08-26T09:36:29.130127 | 2021-11-02T17:36:04 | 2021-11-02T17:36:04 | 408,773,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,448 | py | from fastapi import FastAPI, File, UploadFile
from tensorflow import keras
from tensorflow.keras.preprocessing.text import Tokenizer
from tensorflow.keras.preprocessing.sequence import pad_sequences
from tensorflow.keras.preprocessing.text import tokenizer_from_json
from fastapi.middleware.cors import CORSMiddleware
fr... | [
"iamsahil@protonmail.com"
] | iamsahil@protonmail.com |
2e1f5d6e080d3901d259f5438b5d089b0e036633 | 0144dfb3e42b0c0b253ebe2e9828126a19c6744b | /manage.py | 500042698c3a7945eb131e7285c5ae262debfaf6 | [] | no_license | codejoncode/Intro-Django | 253d9dc5ce31f82c21308dd2ca2acea80d70ae76 | c8eb0ee3b50a5dbcfdde45ecdd2f1e5817e2228f | refs/heads/master | 2020-04-02T08:02:24.496719 | 2018-10-25T23:41:44 | 2018-10-25T23:41:44 | 154,226,575 | 0 | 0 | null | 2018-10-22T22:38:12 | 2018-10-22T22:38:11 | null | UTF-8 | Python | false | false | 555 | py | #!/usr/bin/env python
import os
import sys
import sqlite3
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jonathan.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't imp... | [
"jonathanjholloway@gmail.com"
] | jonathanjholloway@gmail.com |
b2e5a4581a5999e0b3fdecf534691bf4d60b7d4a | 22b862e2f51e1f492ce8119349f006d255d97d54 | /python/opencv-test.py | d221a91089709efa983e9190f1c94f4a65190e8a | [] | no_license | matlab-user/code-test-site | f85c214d85098763421b2539c070c805423f73c4 | c32e4dfa66879b3a6ff92266205d1c7287dcb4b0 | refs/heads/master | 2021-01-18T22:51:13.869824 | 2015-08-23T08:47:31 | 2015-08-23T08:47:31 | 38,184,158 | 0 | 1 | null | 2016-06-13T10:03:19 | 2015-06-28T03:01:01 | C | UTF-8 | Python | false | false | 321 | py | import cv2
import numpy as np
import sys
if __name__ == '__main__':
winName = 'display image'
imagePath = 'default.jpg'
cv2.namedWindow( winName )
image=cv2.imread( imagePath )
if np.any(image):
cv2.imshow( winName, image )
cv2.waitKey( 0 )
cv2.destroyWindow( winName )
else:
print "no image found!"... | [
"bugs_anywhere@sina.com"
] | bugs_anywhere@sina.com |
0617bf496c31811ec5ac7c8d34a4b5d9c1611aca | 89510ffa453f22f1748087d74dfb88b86c354b35 | /task/action_flow.py | c36570f27b407408a303bdd4c01c23dc764c02f4 | [
"MIT"
] | permissive | TimothyGood/unicom-task | 81568c61bf5fb779e0cfd2e8962b25da2cabe8a0 | 47b7abc6ee3950be82f23e70ced75699134f4abd | refs/heads/main | 2023-08-14T06:23:56.929425 | 2021-09-29T16:09:16 | 2021-09-29T16:09:16 | 411,735,353 | 0 | 0 | MIT | 2021-09-29T15:46:14 | 2021-09-29T15:46:13 | null | UTF-8 | Python | false | false | 4,669 | py | # -*- coding: utf-8 -*-
# @Time : 2021/08/14 16:30
# @Author : srcrs
# @Email : srcrs@foxmail.com
import requests,json,time,re,login,logging,traceback,os,random,notify,datetime,util
from lxml.html import fromstring
#激活即将过期的流量包
class action_flow:
#获得我的礼包页面对象
def getQuerywinning(self, client, username):
... | [
"srcrs@foxmail.com"
] | srcrs@foxmail.com |
c0cbc2e765c78914980d687ff4a1a88f5fef91d6 | 225543bcaa194360aa66c738a99b7ad5c291434b | /PythonFEB/main_210225.py | bbf257e6aae1ea6c38eeccc57df86da41f5555fc | [] | no_license | m0100434/zendlijsten | f0eecf12ab3fc90c1db9b5c22f1163a92dcdf6f7 | 171e1c427db71dad01408072081c85035c57a2b2 | refs/heads/main | 2023-06-19T05:04:31.619139 | 2021-07-17T07:51:46 | 2021-07-17T07:51:46 | 349,770,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,370 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 6 11:56:59 2021
@author: ArxXi
"""
from selenium import webdriver
import time
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by impor... | [
"m.verschuere@ailvis.com"
] | m.verschuere@ailvis.com |
8d9383180262776e736956682035080bb7976b3c | a80159b91c24941d33dfb141562eb9b188060d9a | /leetcode/二分查找/旋转数组的最小数字.py | 4d8b71ddba5396cd50c8698b1a1852e4eb4e3fb6 | [] | no_license | rookie-LeeMC/Data_Structure_and_Algorithm | ec216e2fe30e83ec11539719c50e995cd951d5a9 | 125fd69f4968ad44757d529ba7701af5bb2092bb | refs/heads/main | 2023-06-26T14:27:54.249192 | 2021-07-25T09:22:02 | 2021-07-25T09:22:02 | 367,633,358 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | # -*- coding:UTF-8 -*-
'''
https://leetcode-cn.com/problems/xuan-zhuan-shu-zu-de-zui-xiao-shu-zi-lcof/
'''
def minArray(numbers):
if not numbers: return None
if len(numbers) == 1: return numbers[0]
start, end = 0, len(numbers) - 1
while start < end:
mid = (start + end) // 2
if number... | [
"limengchen@jd.com"
] | limengchen@jd.com |
c41686bf719d07a62eb8b42429a30b9acd99e4de | 8bd0896f8b7a201954959c82bee63701ca75b300 | /configurer.py | 376a09449ec8be3635d80b1a6faa755a28ab2a55 | [] | no_license | yellams/Setlist-to-Playlist-Generator | 201755f72285e89bfffd2c61e69ceca9076d4bac | 0e0f6f51875943eb888fab678f99e995e392e1ff | refs/heads/master | 2021-01-18T17:48:52.160798 | 2017-04-06T00:46:23 | 2017-04-06T00:46:23 | 86,815,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,017 | py | import re
import configparser
import spotipy.util as util
import os
music_dir = ''
spotify_user = ''
gpm_user = ''
gpm_pw = ''
config = configparser.ConfigParser()
print('This script only needs to be run once, before your first run of the program')
print('It will generate config.txt in this directory, a file require... | [
"nick_smalley@hotmail.co.uk"
] | nick_smalley@hotmail.co.uk |
87bbcfce9578a68f80b05ea38464493f4f179a40 | 4703b990612ece92825eec4ad7608ce8fd563f4e | /src/server_handler/change_ip.py | 30d195a7a1a007ef597869ef4d57154b1d95988c | [
"MIT"
] | permissive | robertpardillo/Funnel | 69a270ee722f05e6a23eb27d7b3268f916a0d9f8 | f45e419f55e085bbb95e17c47b4c94a7c625ba9b | refs/heads/master | 2020-03-08T10:15:24.458019 | 2018-04-04T13:52:04 | 2018-04-04T13:52:04 | 128,068,139 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py |
import re
def change_handler_IP(new_ip):
with open('static/js/webSocket.js', 'r+') as f:
text0 = f.read()
string = '// IP \nvar IP = "{}";'.format(new_ip)
text=re.sub('.*//.*IP.*\\n.*var.*IP.*=.*', string,text0)
f.seek(0)
f.write(text)
f.close()
... | [
"robertpardillo93@gmail.com"
] | robertpardillo93@gmail.com |
d3a786c7b7bd8e77a8951d9b735d4c1bef26eb7e | 4971735e54cb52189022d2f0fa6d5618856fe561 | /env/bin/genwallet | c16177e4d67d53b7d24a524aeed8f4ec68bd7fdc | [
"MIT"
] | permissive | Organizational-Proof-Of-Work/clearinghoused_build | 551d832f1b8bc5adecbf6124a3ca9d234cc65cf0 | 7bab4ccb516015913bad41cfdc9eb15d3fbfcaf4 | refs/heads/master | 2020-12-27T09:07:23.148765 | 2020-02-02T21:44:46 | 2020-02-02T21:44:46 | 237,843,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/home/xch/clearinghoused_build/env/bin/python3.4
# -*- coding: utf-8 -*-
import re
import sys
from pycoin.scripts.genwallet import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"vcgato29@gmail.com"
] | vcgato29@gmail.com | |
635d2fd6ec0cbfccb05a30d49d971ce0dd8ed9a9 | b0384631c98537f1891a1cb3251a28c2e3816cda | /python/tests/test_insertion_sort.py | 23081784c74d838ac2c41439364addb10bb0091a | [] | no_license | okayjones/data-structures-and-algorithms | b14022e554bf875d5cf36748d0f1a1922d64b11e | d923132849f799985440dd5c510e932d731b82d1 | refs/heads/master | 2023-03-31T07:41:01.276358 | 2021-04-06T03:39:56 | 2021-04-06T03:39:56 | 297,821,846 | 0 | 2 | null | 2021-04-06T03:39:56 | 2020-09-23T01:48:25 | JavaScript | UTF-8 | Python | false | false | 750 | py | from challenges.insertion_sort.insertion_sort import insertion_sort
def test_insertion_sort_simple():
arr = [8, 4, 23, 42, 16, 15]
expected = [4, 8, 15, 16, 23, 42]
actual = insertion_sort(arr)
assert actual == expected
def test_insertion_sort_reverse():
arr = [20, 18, 12, 8, 5, -2]
expected... | [
"loganemilyjones@mac.com"
] | loganemilyjones@mac.com |
2c5501bfeeb3e261c19ee83f877b202c512ea266 | 1b7d5036985f3e8f080b8cf8a5511ad73dfa1e00 | /image_recognition.py | ee165aec22d4c767fc2d989f718a501b627947fa | [] | no_license | mycityyumi/Deep-learning-by-keras | 30d5da452cf6809470fd956053a9f8f66dcb2320 | 28dd53a709a0a7699c94c578788e82f289e48cd9 | refs/heads/master | 2020-03-26T15:08:22.679921 | 2018-08-16T18:29:38 | 2018-08-16T18:29:38 | 145,024,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,164 | py | import numpy as np
from keras.preprocessing import image
from keras.applications import resnet50
# Load Keras' ResNet50 model that was pre-trained against the ImageNet database
model = resnet50.ResNet50()
# Load the image file, resizing it to 224x224 pixels (required by this model ResNet50)
img = image.load_img("bay2... | [
"noreply@github.com"
] | mycityyumi.noreply@github.com |
21f206752ebfdcc133190f1ba94d60ffc4cda891 | 8eeaecd4c66741717bafda4dae869ef11a66d7f5 | /plugins/modules/ibm_compute_vm_instance_info.py | 4011be8e64f58b52b1767e5d7c80d3ddbd84950c | [
"Apache-2.0"
] | permissive | pachvasu/ansible-collection-ibm | 13327fc968d27a1dee0c621e7f5d7a6a8f66caa4 | 3de32f396d0427b68bac114b1ebb72bb6b15837e | refs/heads/master | 2021-01-14T20:52:22.445194 | 2020-02-21T04:41:26 | 2020-02-21T04:41:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,037 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Mozilla Public License, version 2.0
1. Definitions
1.1. “Contributor”
means each individual or legal entity that creates, contributes to the
creation of, or owns Covered Software.
1.2. “Contributor Version”
means the combination of the Contributions of o... | [
"amallak1@in.ibm.com"
] | amallak1@in.ibm.com |
ffc8510fad9f4ace2d2bd04157cac3c8f167d580 | ac20ee49a06ad58279d28801d821fbd1aa6e9504 | /tests/test_stack.py | 78f1fd23a3caeb36d4673acdfba428b8fd093e64 | [] | no_license | gummoe/practice | 150ad4bd018102f2e7d6bb6cb0396c0c75199e7f | fb44a87569d06b83ab3756888f6a78c61fc3ab33 | refs/heads/master | 2023-08-19T00:23:10.264157 | 2023-08-12T20:43:47 | 2023-08-12T20:43:47 | 145,779,056 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | import unittest
from Stacks_and_Queues.stack import Stack
class StackTest(unittest.TestCase):
def test_is_empty_is_true(self):
stack = Stack()
self.assertTrue(stack.is_empty())
def test_is_empty_is_false(self):
stack = Stack()
stack.stack = [1, 2, 3]
self.assertFal... | [
"b.gummoe@gmail.com"
] | b.gummoe@gmail.com |
8c3a3ad6824443f6589a63360797ccb846b92ad8 | 5b3c10d432d7a88bfe86637c286d3bf3a55732c1 | /solutions/python3/0724.py | e4a540435f56ec6d513ba6054063da2d17f2c236 | [] | no_license | leewwe/LeetCode-1 | c0ac8ff16b925cab833dbae554a51b613450aa6c | e42bd45d134870d9a8ece3564236705c4479747f | refs/heads/master | 2021-02-12T20:55:17.363375 | 2020-03-02T14:04:35 | 2020-03-02T14:04:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | class Solution:
def pivotIndex(self, nums: List[int]) -> int:
sum_ = sum(nums)
prefixSum = 0
for i, num in enumerate(nums):
if prefixSum == sum_ - prefixSum - num:
return i
prefixSum += num
return -1
| [
"walkccray@gmail.com"
] | walkccray@gmail.com |
dd762817cc3638ccc38f499401078b5017b3d5ef | 81d6af46887bcd166fb99015a68ca001f25cd639 | /MAS location parser/Scraper.py | 26b98275663c0e0994427b684b5919dea4714568 | [] | no_license | stephenFox1911/Group-N-Go | 73ab1269b2b4f1e53de3ccbfc0c5e140181bb45a | feb8b90220d4a38ab530f6c37b9f77e895641cac | refs/heads/master | 2021-01-01T17:05:47.003666 | 2014-12-29T02:11:01 | 2014-12-29T02:11:01 | 24,345,748 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,526 | py | __author__ = 'Adam'
import bs4
import urllib.request
import re
def getBuildingList():
sourcelink = "http://www.facilities.gatech.edu/map/alpha_occupants.php"
source = urllib.request.urlopen(sourcelink).read()
soup = bs4.BeautifulSoup(source)
maindiv = soup.find(id="newsRelease")
uls = maindiv.fin... | [
"swimmadude66@gmail.com"
] | swimmadude66@gmail.com |
233e2a5963d5a426c93405fb4107477636dc4909 | 16f8fbcfd7e67abd42f4128a11d5b6134b304101 | /chapter2/creditcard2.28.py | ad4972243fe71cb06d8f8d47a84d99889579134b | [] | no_license | xiaodong-Ren/mytest | 2b64d5d8a084e5bdd5a5dcae42440866a9a0cd0b | 472d88f7f0ab3bd2a7a7998bbe15fb28b26a4c9c | refs/heads/master | 2022-11-15T09:06:36.763718 | 2020-07-22T13:35:16 | 2020-07-22T13:35:16 | 276,074,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | class CreditCard:
"""A consumer credit card."""
def __init__(self, customer, bank, acnt, limit):
"""Create a new credit card instance.
The initial balance is zero.
customer the name of the customer (e.g., 'John Bowman')
bank the name of the bank (e.g., 'Californ... | [
"2550828616@qq.com"
] | 2550828616@qq.com |
703513f83f52c79bc6a54d94e6347e41f18c5214 | a773881379e8d71f0bd1040219be44a6661ad101 | /1_hello_world/hello_world_client.py | 8aa9519e3fbbb40559361f035c0da88e7fb0210b | [] | no_license | odellus/autolector | 94816eefb0f4932e4564c4a69fba3b95404c3afa | 3bac3618beb4c5316348ac81a3414054dfa412a8 | refs/heads/main | 2023-04-27T10:04:47.627414 | 2021-05-15T07:12:50 | 2021-05-15T07:12:50 | 361,344,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | import requests
url = 'http://127.0.0.1:5005/'
res = requests.get(url)
print("If it worked it will say {'hello':'world!'}")
print(res.json())
| [
"odell.wood@gmail.com"
] | odell.wood@gmail.com |
2d6aa92846e99ddfb2b8c0021138962bb73079cb | c0898e3ca453b0053d5d9ac726080ab6d3242e67 | /app/movies/views.py | 8705567995172d8c1627a6a238c3ca8805bb0688 | [] | no_license | aftab-hussain-93/movie_api_integration | f1906d7737700ee159ba7fe876c18b6947988de8 | e6bd1f16f9ec3347bcb716fc7128b3357d735f78 | refs/heads/master | 2022-12-15T07:34:42.981491 | 2020-09-17T12:53:41 | 2020-09-17T12:53:41 | 296,215,089 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import requests
from requests.models import PreparedRequest
from werkzeug.security import generate_password_hash, check_password_hash
from flask import Blueprint, current_app, request, url_for
from app.general_utils import token_required
movie = Blueprint('movie',__name__)
@movie.route('/movies')
@token_requ... | [
"aftab.h.1993@gmail.com"
] | aftab.h.1993@gmail.com |
0dc19efe2d518e8be5fd9d82b203f9b1b4cb72ee | 0e08d6c1244c31c707eb7f2e6de4ff24c2bfe032 | /str.py | b6ca108bb61501254ff7ada2775db9d861898ec5 | [] | no_license | CrashNosok/del | 7a088069a844a9c212026c0305ca8fcc8beebb80 | 7c2f44b9b791e826f511b13c89cb53201790486b | refs/heads/master | 2021-06-28T08:26:56.055373 | 2021-05-27T16:03:17 | 2021-05-27T16:03:17 | 232,588,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | # a = int(input())
# if a == 5:
# print('молодец')
# elif a == 4:
# print('хорошо')
# elif a == 3:
# print('средне')
# elif a == 2:
# print('плохо')
# else:
# print('err')
# m = int(input())
# n = int(input())
# a = int(input())
# b = int(input())
# c = int(input())
# if (a < m a... | [
"noreply@github.com"
] | CrashNosok.noreply@github.com |
7f3b1aa13a0b19734edc82dd8b641d82ce0bec2f | fef7b3ab3a0f4403a22155b55f9259d3fcf69e44 | /training.py | abd744fe5e9949bf5a1ec2f23b23efa560804c99 | [] | no_license | codefluence/ventilator-pressure-prediction | 3af7bed55afd0def756d31deaa322ec92bff213b | c7c35e0a2a881844ec1f2a8e30e03f013fdffd57 | refs/heads/main | 2023-08-31T09:47:53.050190 | 2021-10-29T09:24:18 | 2021-10-29T09:24:18 | 411,368,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,315 | py | import math
from datetime import datetime
import os
import json
from tqdm import tqdm
import torch
import torch.nn.functional as F
import numpy as np
import pandas as pd
import pytorch_lightning as pl
from pytorch_lightning import loggers as pl_loggers
from pytorch_lightning.callbacks.early_stopping import EarlyStop... | [
"codefluence@gmail.com"
] | codefluence@gmail.com |
b3064ad095c702ca5a032d832b892a7c300da246 | 1ba3727a813280163b8442a8a5cd2de4686f716f | /spectra_audio1.py | f2cf52aeb4c0cc36990ff934992a76cc1c1b6bfd | [] | no_license | antonioam82/VOCODER | e503934bbff2e930ddbd06099b9310f7fff88ade | e113822e2126d78f3d34f866ed13afa491b3f25a | refs/heads/main | 2023-07-21T12:33:29.789855 | 2021-08-28T21:09:32 | 2021-08-28T21:09:32 | 400,249,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import pyaudio
import struct
import numpy as np
import matplotlib.pyplot as plt
import time
from matplotlib import style
from tkinter import TclError
style.use('ggplot')
CHUNK = 1024 * 4
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 44100
p = pyaudio.PyAudio()
stream = p.open(
format=FORMAT,
channels=CHANNEL... | [
"noreply@github.com"
] | antonioam82.noreply@github.com |
e5695f05dca32ee4a44d4f6f0415056694fb4748 | 45de13a618813455a3ea1e65c5dd31066b311cd7 | /llluiop/0016/number.py | fe56ace640e2080b04b956cfb56d9bbe23f65c2d | [] | permissive | luhralive/python | bbee0a3e7d0ac9845db484595362bba41923c2a4 | b74bdc4c7bc8e75aee9530c27d621a773a71ac67 | refs/heads/master | 2020-05-19T12:48:17.144882 | 2019-05-05T11:53:46 | 2019-05-05T11:53:46 | 185,023,995 | 1 | 0 | MIT | 2019-05-05T11:45:42 | 2019-05-05T11:45:41 | null | UTF-8 | Python | false | false | 454 | py | #!/usr/bin/env python
import xlwt
import json
def load_data(filepath):
f = open(filepath, "r")
return json.load(f)
def write_data_to_xls(data):
xls = xlwt.Workbook()
sheet = xls.add_sheet("number")
for i in range(len(data)):
for j in range(len(data[i])):
sheet.write(i, j, da... | [
"290522165@qq.com"
] | 290522165@qq.com |
6efba3c50f369d7a1de46821a7f56465d60273e9 | 7022a87984476aa53c52c7dccccd8acbb77565ed | /chapter4/first_numbers.py | 7005c0663de1e607f6b542d04aee88a345de9454 | [] | no_license | ChengYaoYan/python-crash-course | fb9892aaa0c496f1c08bf3589f12e87d7edec570 | 498ec1e00a45d50e9e57a036152775ddb2ff5517 | refs/heads/main | 2023-03-14T05:41:33.045307 | 2021-02-27T06:58:23 | 2021-02-27T06:58:23 | 341,420,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | for value in range(1, 5):
print(value)
numbers = list(range(1, 5))
print(numbers)
print(numbers)
| [
"1526695730@qq.com"
] | 1526695730@qq.com |
94e98751e9be3a199fbd00c203265b467571b82c | 795de2e7619a6937a8b97b95a1c117cc2aa8beac | /alien_invasion.py | 36d064f11cada2c5f44e18f6a6626c90efff58e8 | [] | no_license | zhangjialepc/Alien | b1ce39d736035e700662a4b708845615b1beb648 | 4a571a6682c20ea4f0bc5a6b91a872aa33fcbbea | refs/heads/master | 2020-08-18T14:39:39.547851 | 2019-10-17T13:55:24 | 2019-10-17T13:55:24 | 215,802,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | import pygame
from settings import Settings
from ship import Ship
import game_functions as gf
from pygame.sprite import Group
from game_stats import GameStats
from button import Button
from scoreboard import Scoreboard
def run_game():
pygame.init()
#窗口大小和名字
ai_settings=Settings()
screen=py... | [
"noreply@github.com"
] | zhangjialepc.noreply@github.com |
67869e6099abddcfe5402283bfdc577b4021833d | d0a11bddb429ba385beb4c50a7c95efe8219631c | /Augmented Reality Final.py | cb60e82cfebb1e942eca6031972368984221a210 | [] | no_license | Sakshee5/Augmented-Reality-using-OpenCV | a659b9df0f18f03f1ea72a0541946ad45adf0caf | 28e72a1f62482a74ab0f60e518ac3756a195cc8c | refs/heads/main | 2023-04-21T04:49:11.664808 | 2021-05-20T13:22:16 | 2021-05-20T13:22:16 | 369,174,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,768 | py | """
Uses code from Feature Detection.py and Overlaying Image on Image.py
"""
import cv2
import numpy as np
cap = cv2.VideoCapture(0)
imgTarget = cv2.imread('C:/Users/Sakshee/Pictures/cards1.jpg')
myVid = cv2.VideoCapture('C:/Users/Sakshee/Videos/test_video.mp4')
# Boolean to tell us whether we have the targ... | [
"noreply@github.com"
] | Sakshee5.noreply@github.com |
33bb984693a0e46d635446d8d5cb37dbc005a58d | 219588f6643881fb75b086fed64424db3b2204b7 | /src/scripts/licensecompare.py | 004352e71872a3ffb39f671e0389d3d0871705ed | [
"Apache-2.0"
] | permissive | armijnhemel/binaryanalysis | 910ded34a7c0be52dad18e0c8bf36b524b7fb94f | ea97b6b7617128ccf7cfa19244b91675d9bf66df | refs/heads/master | 2022-06-28T23:51:52.842978 | 2022-06-14T19:43:37 | 2022-06-14T19:43:37 | 68,471,787 | 81 | 54 | null | null | null | null | UTF-8 | Python | false | false | 7,935 | py | #!/usr/bin/env python
# Binary Analysis Tool
# Copyright 2014-2015 Armijn Hemel for Tjaldur Software Governance Solutions
# Licensed under Apache 2.0, see LICENSE file for details
'''
This script uses a very crude approach to compare license classifications made
with Ninka and FOSSology. It is meant to find where Nin... | [
"armijn@tjaldur.nl"
] | armijn@tjaldur.nl |
8b46157906b8047c028a01bf4f357b0433113dd4 | 614a14c538492e39dd0483cefc424527ee18791d | /DS/lab2/q11.py | 4995fe247294803d7c9b188e61703dcf74a3abb1 | [] | no_license | Arunima123/SEM-6 | 7db057c5df3a3c3eaca76c9218c7131245dbead8 | 3470c30883389b735e06c3420a4f58d1cf0836d8 | refs/heads/main | 2023-05-30T23:35:03.113372 | 2021-06-13T10:45:34 | 2021-06-13T10:45:34 | 339,344,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | x=[11, -21, 0, 45, 66, -93]
i=0
while i<len(x):
if x[i]<0:
print x[i]
i+=1 | [
"noreply@github.com"
] | Arunima123.noreply@github.com |
a66504ee17891adad91de64071af684dfaf621da | d8d1daed8162cc70a989d696adece741fad39632 | /amplify/agent/collectors/nginx/meta.py | e098d7e1a8372510d90ef31332dc67721c05518e | [
"BSD-2-Clause"
] | permissive | sakomws/nginx-amplify-agent | 16085a236f5c3eaf0e4b53cbb935c4fab3ce079b | e33eb8724a7fc06cc44137a23653da11c8c07e82 | refs/heads/master | 2020-04-03T08:10:14.812192 | 2018-09-26T13:49:52 | 2018-09-26T13:49:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,844 | py | # -*- coding: utf-8 -*-
import re
import psutil
from amplify.agent.collectors.abstract import AbstractMetaCollector
from amplify.agent.common.context import context
from amplify.agent.common.util import subp
__author__ = "Mike Belov"
__copyright__ = "Copyright (C) Nginx, Inc. All rights reserved."
__license__ = ""
_... | [
"dedm@nginx.com"
] | dedm@nginx.com |
c6bc62ff853e6e030b8cf6fab25d29e502ba9a0b | 5bc6d2f91576ef8b3c75028951860495aafad1cb | /src/fvm/test/DIALECTRIC_CHARGING/testDielectricCharging.py | 0302f0704ea75c3e167f55832f2233202b25560e | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | jamesmloy/fvm | 7b4f1ed619de52bb8215623beb3f8b2c27f628d3 | 13ba38f73da7fd19fa9eb8e44c51b0fd9c882614 | refs/heads/master | 2021-01-13T12:54:51.994777 | 2016-12-11T21:06:57 | 2016-12-11T21:06:57 | 72,786,954 | 0 | 0 | null | 2016-11-03T21:07:33 | 2016-11-03T21:07:33 | null | UTF-8 | Python | false | false | 9,334 | py | #!/usr/bin/env python
"""
the scipt is used to test the mesh dependency on tunneling model
it uses the new set of parameter from Sambit in Sep2010
"""
### import modules ###
import pdb
import sys
import fvm
fvm.set_atype('double')
from math import *
import fvm.fvmbaseExt as fvmbaseExt
import fvm.importers as importer... | [
"yildirim@8639bca7-a847-0410-9c84-802de9f82a5b"
] | yildirim@8639bca7-a847-0410-9c84-802de9f82a5b |
74f16692b8eb0af17e8869801d90123abdc33d83 | 8f56bd8e069da0029e6039c176e0a8c65dd83b10 | /assignment2/assignment2.py | 1ffb7278b91a5420bf4940abde4df8a9be1cf9c8 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | benhe119/IN4334-MiningSoftwareRepositories | 04d80f196d69ff8d229e7d5046d19ad1042996b0 | 207b0c91b68851320049d1ab902d7028a5523f4e | refs/heads/master | 2020-09-05T18:52:41.555269 | 2017-02-28T18:20:40 | 2017-02-28T18:20:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,824 | py | import sh # to interact with the shell
import re # for regular expressions
import requests # to download JIRA Bug list
import csv # to save the results
import time
from collections import Counter, defaultdict # useful structures
git = sh.git.bake(_cwd='lucene-solr')
# regex that matches path of Java files inside... | [
"gasparini.lorenzo@gmail.com"
] | gasparini.lorenzo@gmail.com |
6873c7ac96dc578c60e5e46b523024d40259f84a | f26cf8123320e7dace97286128bfbacdb541c891 | /ProductInventory.py | 404ec564cd47452d07749af1fc5755723bc4dceb | [] | no_license | brandonlow/Inventory | e946cfde6da5e54fc9684adb8e69f478c034e782 | 67ecb4c08b23cd1e657651daa79b1b759defcbf6 | refs/heads/master | 2021-10-09T11:59:39.321038 | 2018-12-27T14:48:52 | 2018-12-27T14:48:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | item=[]
product=0
number=0
total_price=0
total_amount=0
while(number!=4):
number=int(input("\nWatchmen Security Supply\n 1. Add to Inventory\n 2. View Inventory\n 3. Product Report\n 4. Exit\n"))
if(number==1):
product=int(input("\nEnter number of product to add:"))
for i in range(0,product):
... | [
"noreply@github.com"
] | brandonlow.noreply@github.com |
733f9cca0e430c4af16d6f1940b16ef86ed6c5b7 | 559fd388a1651f754bfd7613de6032eb81fcdd42 | /chapter13.py | 324402a190569283f6af4456b985561aee6cf3f1 | [] | no_license | HardBop/thinkpython | d0cf4cbdaeb1a0faa75a391ef3d7213874aa719e | ca1ae0b456f77685e399f3927e242be321028be1 | refs/heads/master | 2020-04-13T21:48:59.220141 | 2019-04-09T22:35:05 | 2019-04-09T22:35:05 | 163,464,719 | 1 | 0 | null | 2019-01-22T19:16:40 | 2018-12-29T01:43:44 | Python | UTF-8 | Python | false | false | 17,074 | py | # Excercises and notes for Chapter 13 of ThinkPythong by Allen Downy on
# Grean Tea Press
#
# change for testing branch logic
# name.strip() strips leading and trailing whitespaces out of a string
#Try removing whitespaces, punctuation, and capitalization in a loop
# and returning the letters sorted
import str... | [
"b3b6b7@gmail.com"
] | b3b6b7@gmail.com |
8764b9ddd11364370415e648788e59ed323ce23b | bb1193a058593b596b0d1a292e1524dc0adde6ed | /temp.py | 65d5675905118fa4a5e3c9195b0a4f8ee993422b | [] | no_license | hongym7/cassava-leaf-disease-classification | f3a5af0ad6e645a5eb0d7bed0dc9aeebd87797ec | 6f3b9b8fae8d57c722c7f6382f8d55205e33ee7b | refs/heads/master | 2023-03-16T20:16:21.274211 | 2021-03-08T00:27:29 | 2021-03-08T00:27:29 | 340,275,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | list = [0.8876168131828308, 0.8805795907974243, 0.8826828598976135, 0.8805795907974243, 0.8789719343185425]
import numpy as np
print(np.mean(list)) | [
"hongym7@naver.com"
] | hongym7@naver.com |
ab6965229c22d2549d2f5174c8c4006d04b11bd7 | 38f35484f1149c60d1b925946c4dff0bbcbe5e4b | /venv/Scripts/futurize-script.py | 2c62c4e6a99bc456862954dcdfe509643035ac64 | [] | no_license | wanyingchao/python | 9d6126cbe578f0a92d9f5021d92eb32cf154a403 | 96b02dfafd3e27203d073f80d024110024658f7c | refs/heads/master | 2023-04-05T21:54:14.634881 | 2021-04-26T03:30:44 | 2021-04-26T03:30:44 | 280,092,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | #!E:\python\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','futurize'
__requires__ = 'future==0.18.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"123"
] | 123 |
58f3a3519d109d183bcfe18bd78ea46010b8be6c | cac10f75d97b52e05b736ee872a166a8855afc63 | /src/fm-build.py | 69578bcd1cdc77e7c6d9873d57d2739bfc5c3a8a | [] | no_license | pombredanne/fm-index-3 | fd73d7e34959c4ebaaef6835252c528d86987827 | ec012bfc9a2973536256749fb1491d632cedfb2d | refs/heads/master | 2022-01-21T05:24:31.388019 | 2018-09-28T17:30:17 | 2018-09-28T17:30:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | #!/usr/bin/python
import os
from os.path import join, abspath, isfile, isdir, exists, basename
import sys
import fmindex
def main():
if not len(sys.argv) in [3]:
print('Usage: ')
print(' %s data index' % sys.argv[0])
os.abort()
else:
if not isfile(sys.argv[1]):
prin... | [
"egonelbre@gmail.com"
] | egonelbre@gmail.com |
7cd74fe3abf4d5b922b588c90ae475e7548cb432 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634697451274240_1/Python/Brryce/pancake.py | bab274304cad7aac423f291f3efc21c3fa94f122 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import sys
N = int(sys.stdin.readline().strip())
def decide(ll):
if len(ll) == 0:
return 0
lll = []
if ll[-1] == -1:
for number in ll[:-1]:
lll.append(-number)
return 1+decide(lll)
else:
return decide(ll[:-1])
for qw in range(1,N+1):
s = sys.stdin.readline().strip()
ll = []
for char... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
0bdfd103c4bc14faff5933fbe4b34c8b0856ad44 | f664ddbdfcc2aec278cfe63c829b97c78e5eb863 | /examples/base.py | e9ad7f2ebf116e8e81a9db1772594203e1a10d5f | [] | no_license | yolandahq/KGE_pytorch_test | 284ed2848c98c83c805ca8d9cdd4eb17f66ceea0 | ad4a410e4a25be11164e9f9b0b71ae627b9ec035 | refs/heads/master | 2023-03-26T02:21:04.811687 | 2019-08-17T18:17:16 | 2019-08-17T18:17:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,921 | py | import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from tensorboardX import SummaryWriter
from dataloader.dataloader import *
from torch.utils.data import DataLoader
import json
def adjust_learning_rate(optimizer, decay):
for param_group in optimizer.param_groups:
... | [
"811437508@qq.com"
] | 811437508@qq.com |
e4560b2e932a04bcb6d8525c9c7cc97ff7b0fdfe | 0bbf6291d0c98e8d5d84a906d24ae3098d9d90e5 | /Sites/views.py | 0fd0f0162c58c5339d08d7258951186d088e3b28 | [] | no_license | Arcrammer/28.-DWA | ad8e3b57f04189e8707f5e209ab742d6db02156e | d25eaa1e71f338da726f4cd349432b5697559d9a | refs/heads/master | 2016-09-01T10:25:01.324934 | 2016-01-13T14:19:56 | 2016-01-13T14:19:56 | 49,007,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | from django.shortcuts import render
from django.http import HttpResponse
from Sites import models
def all(request):
view_data = {
'sites': models.Site.objects.all()
}
return render(request, 'all.html', view_data)
| [
"alexander2475914@gmail.com"
] | alexander2475914@gmail.com |
5005a0f118da47b226554461ee0c39d1166964cd | 7555ea67e7c395be295dc7b81aebffeccf014dc3 | /old/esc_trial1.py | 2184565bd89a2af673ff30da8409bca536678088 | [] | no_license | RoverLiu/SelfZoomingCar | a2a3556f9d412aa7ab8ad02a220d9f78f947d693 | 736f2239c7add408f09aaf340c72cd16aedd3036 | refs/heads/master | 2022-01-12T23:31:23.182737 | 2019-07-04T02:50:46 | 2019-07-04T02:50:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 521 | py | import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BOARD)
#GPIO.setmode(GPIO.BCM)
# Use the small numbers beside the pins
GPIO.setup(37, GPIO.OUT)
p = GPIO.PWM(37, 50)
finish = 0
p.start(7.5)
# Input for speed: 500 - neutral, 1000 full forward, 0 full brake
while (finish != 1):
speed = input('Enter de... | [
"Clucini07@gmail.com"
] | Clucini07@gmail.com |
a8ae95f7f29a131f572e7b0beac8398df104ddb8 | d3a6823ffca0a58373a791fd433fffd74277ba22 | /sage/rings/polynomial/polynomial_singular_interface.pyi | 4b26fc6863e1f909cfaef1fe0063bc33a30102b8 | [
"MIT"
] | permissive | demurgos/sage-typing | c63ff9e60738b71024b82ccba9ab66c1f6874f83 | d27a80237f8656df74607a59256a2c4b8b2eb89e | refs/heads/master | 2020-09-17T04:20:46.985143 | 2016-08-25T09:09:18 | 2016-08-25T09:09:18 | 66,539,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | pyi | u"""
Python interface for the `sage.rings.polynomial.polynomial_singular_interface` module.
http://doc.sagemath.org/html/en/reference/polynomial_rings/sage/rings/polynomial/polynomial_singular_interface.html
"""
from typing import Any, List, Union, Optional
import sage.structure.factory
import sage.rings.finite_rin... | [
"demurgos.net@gmail.com"
] | demurgos.net@gmail.com |
9ad7a4d8557b5f0c2a7cb64f6ea3ffed3b18da98 | c51d4868eafb70718363c0e1e9b91c199a4850d6 | /Fedora/vehicles/views/tools.py | 6e74d7d37d940145444b4fcdada9605ae346febe | [] | no_license | digiglean/django_rest_framework_tut | 8581f29a5b6a1431889221b758d87eb0ff9301ff | f65bf96904b73aee621352d971ed9c3165fc56fb | refs/heads/main | 2023-01-19T18:19:01.697146 | 2020-12-04T21:13:16 | 2020-12-04T21:13:16 | 317,333,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 478 | py | # vehicle/views/tools.py
from rest_framework.decorators import api_view
from rest_framework.response import Response
from vehicles.models import Tool
from vehicles.serializers.tools import ToolSerializer
@api_view(["GET"])
def list_tools(request):
tools = [
Tool("hammer", "Mastercraft"),
Tool("wre... | [
"chris@CGB-iMac-2TSSD.local"
] | chris@CGB-iMac-2TSSD.local |
f01dcd6d3165306974971e6e05b8652cd8de00cc | 813a6239b8d8e0012349e45db16b08eb4c285314 | /Homework/Lab2/itunes_top_songs.py | dcfac558c2de98852649bada797d72be48f4a535 | [] | no_license | linhkent/nguyenkhuonglinh-fundamental-c4e25 | f2daaf463545fc2f087fd9adbe1c970b84300bff | 2335b3eb8423119dc3efaf85dd98ceb0947378ae | refs/heads/master | 2020-04-13T08:10:48.814771 | 2019-01-19T14:25:40 | 2019-01-19T14:25:40 | 163,074,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | url = 'https://www.apple.com/itunes/charts/songs/'
from urllib.request import urlopen
from bs4 import BeautifulSoup
from collections import OrderedDict
com = urlopen(url)
rawdata = com.read()
content = rawdata.decode('utf8')
soup = BeautifulSoup(content,'html.parser')
ul = soup.find('ul','')
li_list = ul.find_all('li')... | [
"linhkent@users.noreply.github.com"
] | linhkent@users.noreply.github.com |
e7eca5df3d2a0753e9a8954befba21091a5efdf2 | 341b809513d29a587fe5b3aa4306e119bad235db | /Pruebas/Tutorial_YouTube.py | cd27f7e06087f628a813f3a6edd4646d2dd1bc80 | [] | no_license | BrihayanF/Programacion_BSFR | 6bb5a45d66475da552f9064c2e3e5d6a505d16a1 | 7e76a77de00a77c42f009f38ddccf2f268ded828 | refs/heads/master | 2021-01-17T07:31:34.420794 | 2017-05-17T20:34:17 | 2017-05-17T20:34:17 | 83,743,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | import tkinter
from tkinter import messagebox
def accion_de_mi_boton():
print('Mi primer boton ha sido precionado :v')
def accion_de_mi_segundo_boton():
messagebox.showinfo('Primer dialogo emergente','Mi segundo boton ha sido precionado')
def accion_advertencia():
messagebox.showwarning('Cuidado O.o','No ... | [
"brayanforero97@gmail.com"
] | brayanforero97@gmail.com |
4d75de869f66f5c115f64c370a69045b8d7daaf4 | 2d7918e30792358fa5c1b6aa010300e5060450bb | /Python Basics April 2018/Drawing Figures with Loops/12.Butterfly.py | a3cb5cea5e64277e5669517b7f37972cc88a288a | [] | no_license | skipter/Programming-Basics-Python | acf6dfaa28c341f33c1109ad35e4a01c2269bb81 | 9845bd0e41b96096a83c1d30140f6cd33e8eab67 | refs/heads/master | 2020-03-27T22:45:28.448180 | 2019-10-15T09:15:01 | 2019-10-15T09:15:01 | 147,257,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | n = int(input())
for x in range(n - 2):
if x % 2 == 0:
print(f"{'*' * (n - 2)}\ /{'*' * (n - 2)}")
else:
print(f"{'-' * (n - 2)}\ /{'-' * (n - 2)}")
print(f"{' ' * (n - 1)}@{' ' * (n - 1)}")
for x in range(n - 2):
if x % 2 == 0:
print(f"{'*' * (n - 2)}/ \{'*' * (n - 2)}")
else... | [
"skipter@abv.bg"
] | skipter@abv.bg |
4a6723a62403cf723e2c51f41684b375d0508fe1 | cfb784c57367ed759eefc22b23f90b8538145f5c | /Pertemuan3/range.py | a7eeed21e1fdf4893194db40188b5e9fef2469fa | [] | no_license | erikoang/basic-python-b4-c | 97e37e776ce48d43805e3a90dc9fa0fa0f53f1d4 | 04a4eda2b20dc6339671748ec64d90f89034e37d | refs/heads/main | 2023-03-19T02:21:05.208412 | 2021-03-04T19:02:27 | 2021-03-04T19:02:27 | 338,513,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | x = range(6)
for a in x:
print("Perulangan scenario 1:",a)
y= range(3, 6)
for b in y:
print("Perulangan scenario 2:",b)
z = range(3, 20, 2)
for c in z:
print("Perulangan scenario 3:",c) | [
"eriko.a@agiletechnica.com"
] | eriko.a@agiletechnica.com |
6b4029e2668157ea18569e6b62bc69791286dfb2 | f2afb853d456761f824ef0159ffb1fa4125d8684 | /NetworkDetection/segment_cellpose_helpers.py | 1744206e7d8691515a67f0cb10de65a6be0ec3b5 | [] | no_license | lukasvandenheuvel/CellContactNetwork | 89fa02faf6f435da7a648af24c2c0f7162186c0c | 08454f61a2932217efd893cf5fd21243a8a94244 | refs/heads/main | 2023-06-12T04:06:08.940866 | 2021-07-02T07:36:27 | 2021-07-02T07:36:27 | 372,474,485 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,384 | py | # -*- coding: utf-8 -*-
"""
Created on Wed May 26 17:03:32 2021
@author: lukasvandenheu
"""
import numpy as np
from numba import jit
from scipy import ndimage as ndi
from joblib import Parallel, delayed
import multiprocessing
from cellpose import models
use_GPU = models.use_gpu()
#%%
@jit(nopython=True) # Function... | [
"C.L.M.vandenHeuvel@tudelft.nl"
] | C.L.M.vandenHeuvel@tudelft.nl |
4d924781fb2e425d87633db2e3383355f071c98c | 875415543924eba9506c0bd3fd92739edb2e5717 | /static/MLModels/faceid/extract_embeddings.py | e1db7f7f0c9815a9de7885554e5d83a17c08590d | [] | no_license | leematthewshome/robotAI_version4 | 0845cc325e9c1887e78398d0253df343f7fc0002 | a62dbe795c67d8f5f8c152f2cb9827f5f44c6f75 | refs/heads/master | 2023-08-26T16:50:52.520028 | 2021-11-07T09:10:03 | 2021-11-07T09:10:03 | 279,801,918 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,452 | py | # USAGE
# python3 extract_embeddings.py
# import the necessary packages
from imutils import paths
import numpy as np
import imutils
import pickle
import cv2
import os
# setup paths to the various files and parameters required
thisdir = os.path.dirname(os.path.realpath(__file__))
dataset = os.path.join(thisdir, 'data... | [
"noreply@github.com"
] | leematthewshome.noreply@github.com |
569e0a217f503efe80f95513dc0f87bf862b56d3 | a0fea99a5f72f0e12d6907b0228d5687d91e4cac | /Chapter02_PythonBasics/05_pr_add2numbers.py | d12cbeba55db217b10e571615a4ec650b63d8206 | [] | no_license | AshwineeKSharma/PythonLearning | 3bf405ee81b0cb0f77f0549d33660a95b9e6ac97 | 8cf731e98e26ae17bffd3e439b60698e67b62693 | refs/heads/main | 2023-05-09T10:46:58.183411 | 2021-06-01T16:22:34 | 2021-06-01T16:22:34 | 372,888,091 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | a=input("Enter Your First Number : ")
a=int(a)
b=input("Enter Your Second Number : ")
b=int(b)
print("The Sum of given two numbers is : ",a+b)
| [
"noreply@github.com"
] | AshwineeKSharma.noreply@github.com |
b31fc159bed009e0da9ef527edc234ed909b9940 | 82fef9bd3ee9d0d1c8208061a4deb0a1ffe4343a | /init_generator.py | f6c54814aef426df3b5b5782b91d3497fe1ccbfa | [] | no_license | simonkurek/init-py-files-generator | 1140a801b27cc7ecad843024decd090214dafa4a | a9be45f95ff8f0c1f374eb0c18bc0e46e156352e | refs/heads/main | 2023-07-30T17:58:34.360462 | 2021-10-05T10:05:05 | 2021-10-05T10:05:05 | 413,763,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | import os
class InitBuilder:
def __init__(self):
self.counter = 0
def run(self):
print('\n === generating __init__ files === \n')
self.generate()
print('\n === done === ')
print(f': Created {self.counter} new files :')
def generate(self, cur_dir=None):
if... | [
"noreply@github.com"
] | simonkurek.noreply@github.com |
52dd006fb14a08d3b2ea787352a7f9a93f7ba1bf | 3db59f640dca238c666961a54f67d8f1177b8424 | /marina.py | 7a4fb94af83aa50eafc197e73a5cb38ed900c339 | [] | no_license | Prodject/marina-testing | 36eec697d3b697e408d5c9e21c0122314d11cef7 | cd872c2b5233e9dcfc3624d98138286f63401dd6 | refs/heads/master | 2022-03-21T08:38:50.674991 | 2019-12-06T15:46:13 | 2019-12-06T15:46:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,486 | py | #!/data/data/com.thecrackertechnology.andrax/ANDRAX/bin/python3
import os
if(os.getuid() >0):
print("Be root, motherfucker!")
exit()
from marina_modules.info import *
from marina_modules.scan import *
from ctypes import *
import readline
import socket
###
#
NRM = "\x1B[0m"
RED = "\x1B[31m"
GRN = "\x1B[32... | [
"noreply@github.com"
] | Prodject.noreply@github.com |
bc9425286a08128bbb6915d4e98ee4325111ca80 | d01319983ddaa533a16dbba0d486934788666590 | /tests/integration/test_database/test_model/test_user.py | 9ca1a91156f3edc58da76c241a97ad7dca404d2a | [
"Apache-2.0"
] | permissive | Feliconut/refitt | 790899d46a7dc84cf099cceba609e68ff52754c1 | 3f226912ec8d303a067b7c2b794afbb15af00cf9 | refs/heads/master | 2023-02-28T13:51:46.050580 | 2021-01-27T20:58:28 | 2021-01-27T20:58:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,151 | py | # Copyright REFITT Team 2019. All rights reserved.
#
# This program is free software: you can redistribute it and/or modify it under the
# terms of the Apache License (v2.0) as published by the Apache Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; wi... | [
"glentner@purdue.edu"
] | glentner@purdue.edu |
4be7bcbe50f4766ad9eab4a0c255e7daccaa85e3 | eec0c7536df052bd4db0be7baf81800fd8f8b8b1 | /user/models.py | 8a31192d3a7f926082a4e9d88750efa1104a09b2 | [] | no_license | ProstoyVadila/stud_fastapi | 10d1359217958488fab2885fab4cb2aefa0e01fd | f477ca777cc3fe9db8d65defe43f6ea57e072550 | refs/heads/main | 2023-03-25T00:33:47.527305 | 2021-03-18T17:17:27 | 2021-03-18T17:17:27 | 349,032,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | from sqlalchemy import Column, String, Integer, DateTime, Boolean
from sqlalchemy.orm import relationship
from core.db import Base
class User(Base):
__tablename__ = 'user'
id = Column(Integer, primary_key=True, index=True, unique=True)
name = Column(String, unique=True)
email = Column(String, unique... | [
"vadim.gorbachev.main@yandex.ru"
] | vadim.gorbachev.main@yandex.ru |
bf86f7c4a309efc2fa55aea60cc521355ebcc6bd | cd1616ec531e9afbd8fab83b23c00425e6cc31fb | /accounts/views.py | fc5152871bb721b19ecc4eb2294de822cad7963b | [] | no_license | muhtutorials/marketplace | 5a7497211687633afdb99289af72e76856d3410a | 3c9305d1c04f7ef1978678158320f331ddc35eac | refs/heads/master | 2022-04-30T22:50:28.943067 | 2019-10-17T18:55:07 | 2019-10-17T18:55:07 | 215,484,246 | 0 | 0 | null | 2022-04-22T22:34:47 | 2019-10-16T07:25:30 | Python | UTF-8 | Python | false | false | 1,018 | py | from django.shortcuts import render, redirect, HttpResponse
from django.contrib import messages
from django.contrib.auth import authenticate, login
from .forms import UserSignupForm
def signup(request):
if request.method == 'POST':
form = UserSignupForm(request.POST)
if form.is_valid():
... | [
"igorwho@yandex.ru"
] | igorwho@yandex.ru |
8a1ef89217200299ffd45a3c2847028343e7e4b7 | 1188692057ea5ec79600f72a94dd5477d1e499dc | /myprotfolio/settings.py | 714b7d1f3ba501e05bf18407fdcbed14f7309168 | [] | no_license | MuizZer07/myportfolio | 87a37604e889d505bd52f19357d3f8696831dae1 | 5ce48f3346632b5f9771f70b827df71c00613656 | refs/heads/master | 2021-09-22T17:16:35.969843 | 2021-09-10T19:25:15 | 2021-09-10T19:25:15 | 165,716,334 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,314 | py | """
Django settings for myprotfolio project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import o... | [
"muizxzer07@gmail.com"
] | muizxzer07@gmail.com |
7d53521e051587f422a5351a91ca2fbc95c0fa26 | 5eb165f282956ba646c1b11bf10856f9bb9c0196 | /core_business.py | ac3da46601fca1791e5f46c4211586f269aecd7b | [] | no_license | rakamoviz/crdjst-py | 915e0aa55f9acb7f1394dd460ecdecbc0737d400 | 213e4053e26b572f4f7469d34a060009c0fd20e5 | refs/heads/master | 2023-01-04T02:45:25.140576 | 2020-10-27T21:38:06 | 2020-10-27T21:38:06 | 307,812,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | import glob
import functools
import re
import importlib
class CoreBusiness:
def __init__ (self, logger):
self.logger = logger
self.rate_fetchers = functools.reduce(
lambda rate_fetchers, filename: CoreBusiness._filename_to_rate_fetchers(
logger, rate_fetchers, filename
), glob.glob('rate_... | [
"raka.moviz@gmail.com"
] | raka.moviz@gmail.com |
410b063e5d57e9ed360e356f1551b8542fa392ad | af7043a61ccd0264c076388e8e6536ba12f6f8ee | /icp9/Source/icp_9.3.py | fb940929d0db6a3187a0a1ab405d63176a60377e | [] | no_license | BhavanaDeepthi/python-deep-learning | 36606ae85d4b783dfddcb5f37ed74f1ae64bbd9a | fd36c3a5f4ae77306acb26453ccc6a69700e5173 | refs/heads/master | 2020-04-18T16:18:35.483377 | 2019-05-03T22:16:52 | 2019-05-03T22:16:52 | 167,630,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,701 | py | from keras import Sequential
from keras.datasets import mnist
import numpy as np
import matplotlib.pyplot as plt
from keras.layers import Dense
from keras.utils import to_categorical
(train_images,train_labels),(test_images, test_labels) = mnist.load_data()
#display the first image in the training data
plt.imshow(trai... | [
"47044736+BhavanaDeepthi@users.noreply.github.com"
] | 47044736+BhavanaDeepthi@users.noreply.github.com |
98e9d6f2db08bf6cf86941a5f918b71b15225973 | 5b10b6efa049014f0d00f81b148d94c429286b66 | /Normal Serialization/withRestApi_1/test.py | c48f766bf72faa08a15eec0ca7534391eefe6d65 | [] | no_license | Ruchika-Munde/Rest_Task | dff657aed041ac6925590f423301f0cae7599f6c | ea741889927ed0fa2a1ba9c2311304671680c6bf | refs/heads/master | 2022-12-21T05:21:00.623464 | 2020-09-09T08:06:24 | 2020-09-09T08:06:24 | 294,044,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import requests
import json
BASE_URL='http://127.0.0.1:8000/'
ENDPOINT='api/'
# def get_resources(id=None):
# data={}
# if id is not None:
# data={
# 'id':id
# }
# resp=requests.get(BASE_URL+ENDPOINT,data=json.dumps(data))
# print(resp.status_code)
# print(resp.json())
#... | [
"ruchamunde@gmail.com"
] | ruchamunde@gmail.com |
cf2892f4fa4b409121851f316950b77e8e641749 | afbc18c477f414db1c6f402a520943fce36db427 | /measures/DLcoloc/models.py | adcba1282dfce3894663ca79073f3c86b4febf73 | [
"Apache-2.0"
] | permissive | metaspace2020/coloc | 465b68806bbff66607b7b6c64776fea36dc19aa7 | 3941b285a73b9685fd44856e59149acff273f705 | refs/heads/master | 2021-07-09T13:28:02.599807 | 2020-10-07T15:27:04 | 2020-10-07T15:27:04 | 199,397,256 | 6 | 4 | Apache-2.0 | 2019-12-23T21:16:47 | 2019-07-29T07:02:24 | Vue | UTF-8 | Python | false | false | 10,621 | py | from keras.models import Model
from keras.layers import Dense, Input
from keras.layers import Convolution2D, GlobalAveragePooling2D
from keras.layers import Average, Subtract, Concatenate, Lambda
from keras import backend as K
from keras.losses import mean_squared_error
from keras.optimizers import Adam, SGD
fro... | [
"e.ovchinnikova@gmail.com"
] | e.ovchinnikova@gmail.com |
8eef5fee2874938c330cee1a9bbdf1b6b2d5d338 | 38c883b1938950dd57c76d038b2b7eba6e459aef | /date_parser.py | fdef24ac87d375afe8a67f36146e5c27d1a05797 | [] | no_license | lizstarin/anachronometer | 8905ca66ea1edb59f240e24dbe234de480f04916 | f8397ee209d2ed20c4cc0a2294b0e7e2aa10e60e | refs/heads/master | 2021-01-10T08:15:51.289954 | 2016-03-24T20:39:48 | 2016-03-24T20:39:48 | 54,151,540 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,436 | py | import re
class WordDate(object):
def __init__(self, date_string):
self.date_string = date_string
self.earliest = self.__find_earliest()
self.latest = self.__find_latest()
def __is_year(self):
p = re.compile('^\d+$')
return True if p.match(self.date_string) else False
def __find_earliest(self):
if se... | [
"liz.starin@gmail.com"
] | liz.starin@gmail.com |
cb13521055d2bf2be99a141738706b8157641aa7 | 0e50f1d6c43e7f5124a30a08494837d3bb6963da | /api/is_exit.py | a3e3ea24a1fdb85fa0d7b40875fb2cf86c3d69b9 | [] | no_license | SemenovAV/MyDoc | 68c2b2aaccbd8cec197de49e212607915d7ddadd | c0145d06329ff4ff1a4633ab5e04d9dca801fa00 | refs/heads/master | 2020-12-10T10:52:06.255944 | 2020-01-14T10:32:13 | 2020-01-14T10:32:13 | 233,572,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | def is_exit(command, elem):
if elem == -1:
command['message'] = 'Отмена команды'
return True
| [
"7.on.off@bk.ru"
] | 7.on.off@bk.ru |
ce00165da005d73dafaa9570b1a00169c3bbe5c4 | c698018fc3c769ce56371405be8e698538c82971 | /Reactive/setup.py | 2b0a99abb2b7c033ecedbfdb69aee9093d861eaa | [] | no_license | Abhi-1725/ROS | 10fe29192a8867596a060e12bebc347a35dcd7b1 | ef3576d811430845b810ba95c8d398eb30f8a245 | refs/heads/master | 2022-12-17T14:06:07.698813 | 2020-09-21T08:01:07 | 2020-09-21T08:01:07 | 297,264,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | ## ! DO NOT MANUALLY INVOKE THIS setup.py, USE CATKIN INSTEAD
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
# fetch values from package.xml
setup_args = generate_distutils_setup(
packages=['ibx0020_control'],
package_dir={'': 'include'}
)
setup(**setup_args)
| [
"noreply@github.com"
] | Abhi-1725.noreply@github.com |
bf62f7461e96c2e0e3d70d379744fefe5953e5ff | b42850bc3e36bbd1683070393582617f2b3cd8e6 | /Encapsulation/restaurant/food/salmon.py | 52b4959c4da8031b664b37ae1b1e31f7c6944eac | [] | no_license | marianidchenko/Python_OOP | aecca18be6df3850c0efbf2fa6d25bf3ff53ae96 | 547c12cbdad5b8c16fa55bba6c03b71db181ad2b | refs/heads/main | 2023-07-09T05:42:43.863681 | 2021-08-14T14:55:51 | 2021-08-14T14:55:51 | 381,572,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | from Encapsulation.restaurant.food import MainDish
class Salmon(MainDish):
GRAMS = 22
def __init__(self, name, price):
super().__init__(name, price, Salmon.GRAMS)
| [
"marianidchenko@gmail.com"
] | marianidchenko@gmail.com |
0e9f9cdf7df5800aae94c2577cb1c3bf85e88d22 | ba8541f29c0ea3903b8dc9361b2192ab20ff099c | /src/bl_bert_biencoder/train_bert_crossencoder.py | 7d6d64c87ccaa7b29c72a17bbbb2e09f3713f371 | [] | no_license | ujiuji1259/wiki_en | 1ff3613ef855fd4105198bdf1e5b0f172517803a | 217d30029f15f3f38ed7e5e92d575537e66e41da | refs/heads/master | 2023-04-20T19:17:16.860518 | 2021-05-11T09:17:09 | 2021-05-11T09:17:09 | 357,447,137 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,386 | py | #import cProfile
import sys
sys.path.append('../')
from line_profiler import LineProfiler
import argparse
from logging import getLogger, StreamHandler, DEBUG, Formatter, FileHandler
import numpy as np
import mlflow
import torch
from transformers import AutoTokenizer, AutoModel
import apex
from apex import amp
from da... | [
"suzzz428@gmail.com"
] | suzzz428@gmail.com |
570eb3fab94f2b5a22a4c3db27b78477f5f78f25 | 9cb7670c64c13f09abee315f85f1f6b67b8eb1ad | /ptp/components/language/__init__.py | 751b15e51e39d08a530a5e22dfdab74a2fca8e1a | [
"Apache-2.0"
] | permissive | ConnectionMaster/pytorchpipe | 057325a5d4e8e6ce2198a953a705721388531add | 9cb17271666061cb19fe24197ecd5e4c8d32c5da | refs/heads/develop | 2023-04-07T17:46:26.451692 | 2019-11-05T23:36:13 | 2019-11-05T23:36:13 | 183,084,219 | 1 | 0 | Apache-2.0 | 2023-04-03T23:18:43 | 2019-04-23T19:38:29 | Python | UTF-8 | Python | false | false | 422 | py | from .bow_encoder import BOWEncoder
from .label_indexer import LabelIndexer
from .sentence_indexer import SentenceIndexer
from .sentence_one_hot_encoder import SentenceOneHotEncoder
from .sentence_tokenizer import SentenceTokenizer
from .word_decoder import WordDecoder
__all__ = [
'BOWEncoder',
'LabelIndexer',... | [
"tkornut@us.ibm.com"
] | tkornut@us.ibm.com |
4be8775aa66d28cead0828a35fd300d2b5860e9b | 81cabe1833537c23a200981d2d4e3ad97cf16699 | /apps/search/tests/tests_views.py | 6ea75af44cc1a855568d76ea83c0a1ee4d10384d | [
"BSD-3-Clause"
] | permissive | Mozilla-GitHub-Standards/93f18f14efcf5fdfc0e04f9bf247f66baf46663f37b1d2087ab8d850abc90803 | ec186ac82670f5020083a543edd4f2d99d7de7dd | 4e374b4d52dfb9039ebe543e7f27682189022307 | refs/heads/master | 2020-05-02T18:12:47.394246 | 2019-03-29T04:45:24 | 2019-03-29T04:45:24 | 178,122,067 | 0 | 0 | BSD-3-Clause | 2019-03-28T03:49:18 | 2019-03-28T03:49:17 | null | UTF-8 | Python | false | false | 3,120 | py | from datetime import datetime, timedelta
from challenges.models import Submission, SubmissionParent
from challenges.tests.fixtures.ignite_fixtures import (setup_ignite_challenge,
teardown_ignite_challenge,
set... | [
"alfredo@madewithbyt.es"
] | alfredo@madewithbyt.es |
a3f7f4e0d3bb4a64c3a7f8c50018c5876765a56d | 98b3f736bf4565e8853bebe0b8554ad82d991fe7 | /python/alp/lectures/stack_examples.py | a387e1110b8b525064b0802336590734520a4a14 | [] | no_license | TomasBahnik/pslib | 0fcf3fdd54059384498cabd0c5a26e7b87321484 | 9c47ea66524676b5f24b7daadc2ecead66ae70d6 | refs/heads/master | 2023-02-20T19:52:46.509321 | 2023-02-12T20:31:02 | 2023-02-12T20:31:02 | 150,961,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,913 | py | # -*- coding: utf-8 -*-
# příklad na použití zásobníku
from alp.lectures.stack import Stack
s = Stack()
s.push(1)
s.push(2)
s.push(3)
print(s.pop())
print(s.pop())
s.push(10)
print(s.pop())
print(s.is_empty())
print(s.pop())
print(s.is_empty())
def to_str(n, base):
""" Převede číslo 'n' na řetězec pro soustavu s... | [
"tomas.bahnik@ataccama.com"
] | tomas.bahnik@ataccama.com |
5d688b376b314301c2bfbbe1ea88c567b4009b51 | f7806230f48f30b2ad468218663eb91d9a1311f8 | /tests/dataset_readers/jsonl_dataset_reader_test.py | aa979f3f0ffc3d167ad51fe2cfdda3965fac053d | [
"MIT"
] | permissive | ChristophAlt/StAn | 246c1350716af50604341f4c217825c72827d92a | abb115b9f245c66edbb3bb89ee45cdc654a48709 | refs/heads/master | 2020-04-27T21:07:38.934768 | 2020-04-08T20:04:51 | 2020-04-08T20:04:51 | 174,685,088 | 3 | 2 | MIT | 2019-04-23T20:21:08 | 2019-03-09T11:21:56 | Python | UTF-8 | Python | false | false | 507 | py | import os
from tests import FIXTURES_ROOT
from stan.dataset_readers.jsonl import JsonlDatasetReader
def test_read():
path = os.path.join(FIXTURES_ROOT, "test_data.jsonl")
reader = JsonlDatasetReader()
instances = reader.read(path)
assert len(instances) == 2
instance = instances[0]
metadata... | [
"ChristophAlt@users.noreply.github.com"
] | ChristophAlt@users.noreply.github.com |
7a75e3aa8a8a12b0de49233f63ee22c0fb296524 | 864602310fc298cfb85a81fcfc8f14e89681ecde | /fooof/tests/test_core_funcs.py | c737a0f7877ad6127d18fd9f0d8a4c353c0ff5bd | [
"Apache-2.0"
] | permissive | TheCheeseToast/fooof | 3c426fd204bcaccb87c567b9f3f6822eb237e13f | f3f8422af7d87fa73772e083deaf8439ca59908d | refs/heads/master | 2020-03-10T19:51:07.813027 | 2018-04-14T22:03:04 | 2018-04-14T22:03:04 | 129,557,004 | 0 | 0 | Apache-2.0 | 2018-04-14T21:49:45 | 2018-04-14T21:49:45 | null | UTF-8 | Python | false | false | 2,736 | py | """Tests for FOOOF core.funcs."""
from py.test import raises
import numpy as np
from scipy.stats import norm, linregress
from fooof.core.funcs import *
###################################################################################################
################################################################... | [
"tdonoghue@ucsd.edu"
] | tdonoghue@ucsd.edu |
b632d54426edc5038274807bd1a451eeb284ab5d | ac67fa39118e57d08ddcff4abaf027c96a079dc3 | /0x0F-python-object_relational_mapping/8-model_state_fetch_first.py | 28d8431c8e5da807166404e03f08d2fad0401c47 | [] | no_license | tomasgvgt/holbertonschool-higher_level_programming | 7a444b5807fcd04a2c79347f69027662b181578c | 4b819977d294432f458054e45ed16061454ff43d | refs/heads/master | 2023-04-25T11:47:38.260585 | 2021-05-14T02:28:32 | 2021-05-14T02:28:32 | 291,826,662 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | #!/usr/bin/python3
"""
script that prints the first State object from the database hbtn_0e_6_usa
"""
from sys import argv
from model_state import State, Base
from sqlalchemy import (create_engine)
from sqlalchemy.orm import sessionmaker
if __name__ == "__main__":
# Create an engine
engine = create_engine('mys... | [
"tomasgvg.t@gmail.com"
] | tomasgvg.t@gmail.com |
560b201e879016b123882a37fe847e1619168c06 | fa938567a8a7eb183a972709b695d8932330e3be | /Exercicio_Lista/exercicio_8.py | a89f0ba1fa83c0c86bd4a39c05f456448634f51d | [] | no_license | murilonerdx/exercicios-python | 7d76a8eb9f9a158f2f7c304a3ecff806c7603281 | 1eb79db5c80105ff462423a98d19207134d6414c | refs/heads/master | 2022-12-19T15:23:32.844996 | 2020-09-22T05:28:55 | 2020-09-22T05:28:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | num1 = float(input("Digite um numero: "))
num2 = float(input("Digite um numero: "))
soma = num1 + num2
if soma>10:
print("Numero maior que 10")
elif soma <=10:
print("Numero menor ou igual a 10")
| [
"noreply@github.com"
] | murilonerdx.noreply@github.com |
02dcbfba14ea8f005a32b4a9641908224a807ecd | 9bb31d98ea1066d6f5538638e3398aba203cf815 | /astrojc/spectra/plot_idents.py | 161058bec055a1a6fdaa2db6ead92d480e0f502c | [] | no_license | juliotux/astrojc | 2e78445fb55ae26030a06110af0dbc264f9e8a47 | 0581cd5fd456a5d4d0d6d529a66dc1f20b09e80f | refs/heads/master | 2022-02-20T00:40:51.174167 | 2022-02-17T10:52:16 | 2022-02-17T10:52:16 | 75,884,051 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #plot bokeh line ids
from line_ident import specID
import lineid_plot
import numpy as np
import pandas as pd
def plot_line_ids(ax, spec, spec_ids, min_weq=None, **kwargs):
'''
Plots the line IDs in an graph if the equivalent width of the line is bigger
then min_weq.
'''
#TODO: implantar sistema d... | [
"juliocampagnolo@gmail.com"
] | juliocampagnolo@gmail.com |
a34f57852df5161e484925536923600bcfdead3e | 466912406272829982f75854cf0104c6ce8c9814 | /data/spider2/aggregator/company/company_info_expand_mongo.py | c9f58d10f7dd355bbb12504f304988f6b8b4e548 | [] | no_license | logonmy/Codes | 9631fa103fc499663361fa7eeccd7cedb9bb08e4 | 92723efdeccfc193f9ee5d0ab77203c254f34bc2 | refs/heads/master | 2021-09-21T18:07:22.985184 | 2018-08-30T05:53:26 | 2018-08-30T05:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,334 | py | # -*- coding: utf-8 -*-
import os, sys, time
import datetime
import json
reload(sys)
sys.setdefaultencoding("utf-8")
sys.path.append(os.path.join(os.path.split(os.path.realpath(__file__))[0], '../../../util'))
import config
import db
import loghelper
import url_helper
import name_helper
import util
sys.path.append(o... | [
"hush_guo@163.com"
] | hush_guo@163.com |
e265117edf1e18840b0f614b32faeba6cead8cc0 | 8d77b272cea0122bcaccfba66028408f01d3a9a5 | /models/option.py | 961dc3a0c0a19d77b38ef503de9dd32759f39bd0 | [] | no_license | cho0op/polls_psycopg2_curse | 0ca0a2cfeff0948180dfdc6a41495bfa4fde2095 | 93a84ad458472b9b3d381996a3448e390ca2365e | refs/heads/master | 2022-12-01T04:14:06.963430 | 2020-08-13T10:53:25 | 2020-08-13T10:53:25 | 284,676,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,309 | py | import datetime
import pytz
from typing import List
from connections import create_connection, connection_pool, get_cursor
import database
class Option:
def __init__(self, option_text: str, poll_id: int, _id: int = None):
self.text = option_text
self.poll_id = poll_id
self.id = _id
d... | [
"sorintema@gmail.com"
] | sorintema@gmail.com |
3fbd022c9b737e0b105895511171b4ecff43caeb | 6e8c00162af72a10c0e8da52bc2543a9821ab72b | /Contador_mayusculas.py | adfa421cb563f164090d0019c82502918e10fc58 | [] | no_license | TomasNiessner/Mi_primer_programa | 79485bf574190b47ed701d0cbeb63c0b6243cd86 | ddf82a8aaef47f624cbd190019472c03c71ab532 | refs/heads/master | 2020-05-03T12:17:08.932208 | 2019-10-05T15:08:58 | 2019-10-05T15:08:58 | 178,621,549 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | frase_usuario = input("Ingrese una frase")
n_mayusculas = 0
for letra in frase_usuario:
if (letra.isupper()) == True:
n_mayusculas +=1
print("Hay {} mayusculas".format(n_mayusculas))
| [
"tomasniessner@outlook.com"
] | tomasniessner@outlook.com |
820f2256a3f8d5d229f565d0358fb1ded5c31812 | 30bb84a7545a11c6d9f788933a0907de2fbfd59b | /spider/libs/database/database.py | adefd2e54c4975d4fcf56b4f5c168202caa53138 | [] | no_license | sumex630/xiyou | db4db3d42e53768ae2459587520e260362134803 | a4d31567a7ae8f7b308e9ff97b28c81bc4047b54 | refs/heads/master | 2022-04-09T01:51:43.801145 | 2020-03-25T07:43:33 | 2020-03-25T07:43:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,412 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/6/10 16:07
# @Author : sunny
# @File : database.py
# @Software: PyCharm
from pymysql import connect
from setting import DATABASES
class DB(object):
"""连接数据库的上下文管理器"""
def __init__(self, db_name='default'):
"""初始化数据库连接"""
se... | [
"sunny@163.com"
] | sunny@163.com |
6d2f817bbb31eb6fbe71f8daec2472c5937a3f76 | bd6b7f461716a406a57fea21ff999a2ab249b086 | /app.py | 3963e636959d929dedd0c404c7eaac2cede47d84 | [
"MIT"
] | permissive | jonatan5524/doodle-classifier | ddc6660e8b9d809a433cb8a9c4082c7faf43fd9b | f531502d2a70779518062705850b1afb2bf41259 | refs/heads/main | 2023-07-27T11:53:01.749437 | 2021-09-11T17:14:48 | 2021-09-11T17:14:48 | 334,482,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 930 | py | from flask import Flask
from flask import render_template
from flask_cors import CORS, cross_origin
from flask import request
from model import Model
app = Flask(__name__)
cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'
model = Model()
@app.route('/')
def index():
""" Index route of the server
... | [
"jonatan5524@gmail.com"
] | jonatan5524@gmail.com |
05b2af316903dbb16da40ad952f4ecf0ba4d8489 | 1ee4a6aea7c0f12be92b51c45284796ddd3b0df4 | /music_controller/urls.py | fd75bde2224a86a7f1ab219531636324afc331f3 | [] | no_license | sharma-kshitij/spotify-room | dd8b9eca09407564d682c2a717ab3fb796e8a571 | c02a231ba0d3cc89bbf2c5eab289e594a5ae4a52 | refs/heads/main | 2023-06-27T12:59:17.086376 | 2021-07-23T09:04:21 | 2021-07-23T09:04:21 | 388,739,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """music_controller URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/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')
Cl... | [
"sharmakshitij250@gmail.com"
] | sharmakshitij250@gmail.com |
71b1f81c6ad4e5e50160513309e242c535862526 | 025109af645ffed4def9158aea8ff60439100e7e | /ukko/monitor.py | 4d5c83fb3b9cfff74a30eb72518a8b3b867bf314 | [
"MIT"
] | permissive | ryanrhymes/personal | 0cb1101df5658cae5fbf6d5994d7ba17616311d0 | ace3e82cf0c48547d461d3343690506276232fd1 | refs/heads/master | 2021-04-24T17:44:39.824391 | 2018-04-18T08:08:44 | 2018-04-18T08:08:44 | 28,007,504 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,120 | py | #!/usr/bin/env python
# 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 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that ... | [
"ryanrhymes@gmail.com"
] | ryanrhymes@gmail.com |
1ef5dd4a594547acfcde8263b5d9eceae207d423 | c74c6e49660c5a7d4c25f5ae6316ac5c88acd285 | /XRD_Tool/XRD_Tool/bin/Debug/CalcResult.py | 7e4988874a8244fdb9d8909f66b4e1fcdfe2b088 | [] | no_license | weiqizhang001/xrd | 3376f54d42fb4255bf9aee4bfb379e09c3cab0d4 | 2245030eb8b9a05732928f1e2401d13eb551faae | refs/heads/master | 2020-03-21T00:23:49.163710 | 2018-06-23T14:26:14 | 2018-06-23T14:26:14 | 137,891,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | 154.9517099587937,730.4206675142866,7.339115606065661,0.19782585965270286,7.3391156060656595
| [
"weiqizhang_002@163.com"
] | weiqizhang_002@163.com |
0db7de4bffc15fa525f2edaa13ba5f6288ae1253 | 208c32c1943085ad8f2c01a15bd924c6725e72b3 | /venv/Scripts/easy_install-2.7-script.py | 490b29f63b6e41e0837988e623f1c03a9472c851 | [] | no_license | abraaobarros/urbbox-python | a055bcd2d39fb4250e836007d7bcdbefddf63472 | ef167a0e1b2ace5ecf4854520ff12e482467d56c | refs/heads/master | 2021-01-01T05:32:22.873256 | 2012-12-07T06:36:17 | 2012-12-07T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | #!C:\Users\Abraao\python_workspace\urbbox-python\venv\Scripts\python2.7.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'distribute==0.6.15','console_scripts','easy_install-2.7'
__requires__ = 'distribute==0.6.15'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point(... | [
"abraaobarros3@gmail.com"
] | abraaobarros3@gmail.com |
76c72f6b180c96b7300689c850bcd0b6258a31c9 | 3ca76b01ff8fd067ad5913bc1585de6bdc19de20 | /server.py | 67a0be01af8aa6cc41dc544fe588c97855db675f | [] | no_license | Rookieokky/robottop | 3aaca0bbcbfab0f0885c954b8daea6095af05f82 | 8665598c5f59c8ce1798ce659e455191c4f9a1b4 | refs/heads/master | 2021-01-20T09:40:57.066876 | 2014-08-09T22:36:31 | 2014-08-09T22:36:31 | 22,587,228 | 1 | 0 | null | 2014-08-09T22:36:31 | 2014-08-04T00:37:53 | Python | UTF-8 | Python | false | false | 1,597 | py | #!/usr/bin/python
import web
import smbus
import math
urls = (
'/', 'index'
)
# Power management registers
power_mgmt_1 = 0x6b
power_mgmt_2 = 0x6c
bus = smbus.SMBus(1) # or bus = smbus.SMBus(1) for Revision 2 boards
address = 0x68 # This is the address value read via the i2cdetect command
def read_b... | [
"okkificrada10@gmail.com"
] | okkificrada10@gmail.com |
267d596ed47e833a2df4db36a097b38ad3bcd3d1 | 477442bf4ef317b8e7024c229e7de5b3a11ddbc9 | /Design-Patterns/Behaviour-Design-Patterns/chain-of-responsibility.py | b95dedfcea2a3208714a4989afaebbf6c28cad95 | [] | no_license | counterjack/Python | d856375ab49d6b09eb26938c61eef8d3dd4b6c29 | 0e3cd2364001f8db06714cbd68ffbb23063f2039 | refs/heads/master | 2022-12-10T07:47:36.359514 | 2020-09-04T05:05:36 | 2020-09-04T05:05:36 | 262,550,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,656 | py | from __future__ import annotations
from abc import ABC, abstractmethod
from typing import Any, Optional
class Handler(ABC):
"""
The Handler interface declares a method for building the chain of handlers.
It also declares a method for executing a request.
"""
@abstractmethod
def set_next(self,... | [
"ankur@spotdraft.com"
] | ankur@spotdraft.com |
bf172275a43ccaa79fefcb145c3931c849f36341 | 0850be21f17c487880f2b2297205c4cce1bdf7c1 | /lib/modeling/roi_xfrom/roi_align/functions/roi_align.py | a0cb497f1eb434ae3146f9c10ea3adcae5af7a56 | [
"MIT"
] | permissive | aniket-agarwal1999/LTVRR | 68f29758d2e176e4f10fbc196e1b10c8278bf93d | 1ea3a6fba92e6c40990565587e9096cdd7b0049d | refs/heads/master | 2022-12-28T22:24:39.087180 | 2020-09-25T12:01:59 | 2020-09-25T12:01:59 | 282,016,022 | 0 | 0 | MIT | 2020-07-23T17:33:47 | 2020-07-23T17:33:46 | null | UTF-8 | Python | false | false | 1,869 | py | import torch
from torch.autograd import Function
from .._ext import roi_align
# TODO use save_for_backward instead
class RoIAlignFunction(Function):
def __init__(self, aligned_height, aligned_width, spatial_scale, sampling_ratio):
self.aligned_width = int(aligned_width)
self.aligned_height = int(a... | [
"zhangjiapply@gmail.com"
] | zhangjiapply@gmail.com |
12cc25a2bf1e524c6958fbd245bbaab2e8f0c23f | 29fa8a1c845c9ccd2149d1f62d0375360dcc1c53 | /Capturing/trail2.py | 496e2a50641ba4c052e2bf0ea8ce337cc5e3df95 | [] | no_license | bsreenath-r7/FaceDetection | dd506368de578f2d78d2165f8b0465d28fa19571 | de35afac833121edfd38d9a940ceb62f0e75ad6d | refs/heads/master | 2020-03-23T04:42:20.093788 | 2018-07-17T10:02:36 | 2018-07-17T10:02:36 | 141,100,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | # This script will detect faces via your webcam.
# Tested with OpenCV3
import cv2
cap = cv2.VideoCapture(0)
# Create the haar cascade
faceCascade = cv2.CascadeClassifier("C:\\Users\\AL2041\\FaceDetecion\\cascades\\haarcascade_frontalface_default.xml")
while(True):
# Capture frame-by-frame
ret, fram... | [
"sreenath.bandi888@gmail.com"
] | sreenath.bandi888@gmail.com |
8185d326029d7d4ea30f6b04b8b1f60344fbe5f3 | 7e0a8eb74ea03b8da41b79b21227a916beed1e1b | /handlers/topics.py | e76f7698401ac92037d5b781b6c6758c985d5128 | [] | no_license | rok-povsic/17-2-predavanje12 | 2416de15ec0d5b1493008b10ea37742ff1b1dcf5 | eebbfb0538f8d4b80aca29a6876aaaec1ab0f6be | refs/heads/master | 2021-01-23T14:55:52.949308 | 2017-06-03T17:17:44 | 2017-06-03T17:17:44 | 93,262,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | import cgi
from google.appengine.api import users
from google.appengine.api import memcache
from handlers.base import BaseHandler
from models.topic import Topic
from models.comment import Comment
class TopicAddHandler(BaseHandler):
def get(self):
return self.render_template_with_csrf("topic_add.html")
... | [
"rok.povsic@gmail.com"
] | rok.povsic@gmail.com |
874ba6f9a9e6da14fd395ec5d1c6e026c1aca7f0 | b75b1b85a2529c3bfdeb6e6a84a056e5835f4a9c | /Init.py | 97446e6e760d337178a530fa0f2497ec504ca31c | [] | no_license | drmorale/WIPpsychophysics | c8de5ce710accb2ea359632ea4fafeab8c9acc2a | 18ec40ddc04f9cc4bb7e40defba12883ed90fb40 | refs/heads/master | 2020-04-27T08:07:15.751927 | 2014-11-20T06:49:30 | 2014-11-20T06:49:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,016 | py | from bge import logic
from random import randrange
import random
def init():
logic.globalDict["randNum"] = randrange(0,1000)
random.seed(0)
logic.globalDict["saveString"] = '{"trials":['
positions = []
arrayList = []
array1 = [(1,50),(-5,47),(.5,15),(-3,60),(-7,20),(6,35),(1,55)]
array2 = [... | [
"timothy_parsons@brown.edu"
] | timothy_parsons@brown.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.