blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
283
content_id
stringlengths
40
40
detected_licenses
listlengths
0
91
license_type
stringclasses
2 values
repo_name
stringlengths
3
135
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
68
visit_date
timestamp[ns]date
2015-07-25 20:53:29
2023-09-06 10:46:05
revision_date
timestamp[ns]date
1970-01-01 00:00:00
2037-05-03 13:00:00
committer_date
timestamp[ns]date
1970-01-01 00:00:00
2036-02-09 17:40:36
github_id
int64
1.61k
691M
⌀
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
24 values
gha_event_created_at
timestamp[ns]date
2012-06-03 10:21:33
2023-09-14 21:59:50
⌀
gha_created_at
timestamp[ns]date
2008-03-27 23:40:48
2023-09-13 22:40:33
⌀
gha_language
stringclasses
250 values
src_encoding
stringclasses
27 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
6
10M
extension
stringclasses
289 values
filename
stringlengths
1
218
content
stringlengths
6
10M
6960fc6d949512ffc783b085041f86cb791160a3
c5d5993c8336914325099c3fa2030d464ee87a09
/tornado.py
49b1ab74d8f75c5ffd88be7b199ec76bd2c5c6c9
[]
no_license
Spectren/OneCase
322a014bd9f7e7bb33834eef866bbb2b61930a74
e2137bd40648d1ee4251b27a859c3f3957ab93f0
refs/heads/main
2023-04-04T16:23:33.251305
2021-04-09T13:38:39
2021-04-09T13:38:39
356,283,963
0
0
null
null
null
null
UTF-8
Python
false
false
596
py
tornado.py
import tornado import copy class DjangoHandler(tornado.web.RequestHandler): async def reroute(self): http = tornado.httpclient.AsyncHTTPClient() new_request = copy.deepcopy(self.request) url_obj = copy.urlparse(new_request.url) new_request.url = f"{url_obj.scheme}://localhost:9000...
7ad5e803afa42790e878bfb923eddcfde2d21928
e3f18e3ddbb140d08b2c0ecac457f8a16df25766
/metadata-ingestion/examples/library/add_ownership.py
d609fd25fa05bdb6371764d95cec99ff1dc48eba
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause", "MIT" ]
permissive
snandigh/datahub
4a8a2b125e8888c18a35809cf67560c4bed3e3fe
a24b3624718600f08d0a1f5950d3d85433ec5cd5
refs/heads/master
2023-09-04T15:02:49.913717
2021-11-05T23:04:17
2021-11-05T23:04:17
402,228,136
1
0
null
null
null
null
UTF-8
Python
false
false
2,647
py
add_ownership.py
env = 'DEV' ## this had to be in uppercase platform = 'hive' from datahub.emitter.kafka_emitter import DatahubKafkaEmitter, KafkaEmitterConfig from datahub.emitter.rest_emitter import DatahubRestEmitter from datahub.ingestion.extractor.schema_util import * from datahub.metadata.schema_classes import ( DatasetSn...
6239cb08509b8e84a88db95479af05845876d9b6
8806910efbd8625d4f88c9cf4887822d27bb6af9
/app/alias/migrations/0001_initial.py
9fb546f6153dbe14c9cbeec9e7d2e09318808a57
[]
no_license
DanilJr/Test_app
23f61b43251306ab81a38a83862a7e5c30456c09
3fc8bd158c0104d1359bd892d93a64750d0a94d6
refs/heads/main
2023-03-08T08:14:10.442691
2021-02-18T11:32:16
2021-02-18T11:32:16
339,113,875
0
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
0001_initial.py
# Generated by Django 3.1.6 on 2021-02-15 12:13 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Book', fields=[ ...
99ddc00bf1d0141118748aa98bcc3e7b8a0ff29e
a7a39aeb0f436baa919f466760290fa6584beaad
/wli_update_system_resources.py
2046eec7d178895a1619c8f37efacb5515472ec9
[]
no_license
deffer/python-scripts
af57002a96345d73b90de284e1e716f1632aa110
0093620bebdae8050dcce148313e2aa0076c5e5a
refs/heads/master
2021-06-02T01:21:38.224878
2019-04-19T09:14:09
2019-04-19T09:14:09
28,161,585
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
wli_update_system_resources.py
# Generic function for updating Weblogic system resources def update_system_resources(clusterName): print "Cluster name is " + clusterName startTransaction() create_JMSSystemResource("/", "DummyJMSModule") delete_JMSModule("/JMSSystemResources", "DummyJMSModule") endTransaction() print "update_s...
69eb62ba47a63cf007334c777709b0513d75f396
d6c76637aa6a7d820634751e3a6b6de3c1587ca4
/Parsetextfile.py
8c02e79d581b2a19a806ae0cb5fe821fb3a22156
[]
no_license
kniemann1/Astro-Play
e908f0f433b96b6f9fad3bbd91f335abc599a8da
dd6b5771b8d9765d99a896ee72145e53363126f8
refs/heads/master
2021-01-10T08:33:41.350170
2015-12-20T03:44:29
2015-12-20T03:44:29
46,676,016
0
1
null
2015-12-20T06:18:15
2015-11-22T19:26:18
Python
UTF-8
Python
false
false
1,250
py
Parsetextfile.py
""" Looks up values in createresistorvaluesdbm.py. Outputs string value ( cmd ). """ import dbm # Open a DB. The c option opens in read/write mode and creates the file if needed. db = dbm.open( 'resistorvalues', 'c' ) with open( "dummyoutput.txt", "r" ) as file_object: #print (file_object.readli...
e36d2426fb8a268ab9ff4f3d6135aa72697e6326
0acb16f27885a71df93d145c5f15917827294808
/getdata.py
d9b4b0db4b18e120db3a651c245c4fcce7834bba
[]
no_license
liyc17/Auto-hearthstone
2b2f34efd86e2a6c8586dd612c4cb632aa1068be
db3b79ed3028af04dfe7f4e4760a072d1f5da0f5
refs/heads/main
2023-01-24T04:29:48.030902
2020-11-20T05:44:05
2020-11-20T05:44:05
314,457,581
0
0
null
null
null
null
UTF-8
Python
false
false
1,585
py
getdata.py
#%% import numpy as np import cv2 import matplotlib.pyplot as plt import win32gui,win32ui,win32con,win32api import pyautogui as pg from PIL import ImageGrab import time import pandas as pd # %% def get_window(lpClassName='UnityWndClass', lpWindowName='炉石传说'): handle_of_hearthstone=win32gui.FindWindow(...
d8fb5aeb5453b986cc698165749992e4a7677257
ab0e5013fc396e219da5be3643fcda22497c23dc
/utils/logging.py
42f55286d547ef51f15b0c28da5e77f10ab96f3c
[ "MIT" ]
permissive
yoshum/lower-bounded-proper-losses
1713102f22445a692d6fd79a9a368a4db3d9f722
725c333bf24c0ae9e0218a6dae767f043a9548a3
refs/heads/main
2023-06-22T09:27:11.288303
2021-07-22T04:24:08
2021-07-22T04:24:08
344,389,291
2
0
null
null
null
null
UTF-8
Python
false
false
1,582
py
logging.py
from datetime import datetime from logging import Logger from pathlib import Path from typing import Dict import ignite import ignite.distributed as idist import torch from omegaconf import OmegaConf from config_schema import ConfigSchema def log_metrics( logger: Logger, epoch: int, elapsed: float, tag: str, me...
0baa133bd9eb8a162a82b23ba4d26cdd34f701c4
590bc12e706317c328f90fabfd1d02d71e4f2c93
/tests/app/main/views/test_accept_invite.py
aa7b14da7fce14bf5f790eed21a0d88b17ea20fa
[ "MIT" ]
permissive
ljy0user0admin/notifications-admin
17772da9b997c84ea83b6b9152b0700ab7be988d
8ec50971eb0aea360be6d3a174af65bbfd6b6f10
refs/heads/master
2021-07-20T10:14:18.031543
2017-10-27T14:00:20
2017-10-27T14:00:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,704
py
test_accept_invite.py
from flask import url_for from bs4 import BeautifulSoup from unittest.mock import ANY import app from app.notify_client.models import InvitedUser from tests.conftest import sample_invite as create_sample_invite from tests.conftest import mock_check_invite_token as mock_check_token_invite def test_existing_user_acce...
319af5232c043d77a9d63ab1efa62d857da6db23
646d6b4e2070e25721c74ab92eed6e7dee0f0b2d
/cLineGraph.py
d963485965a5d6fb2754ab746d7b2a9dc3fefba6
[ "MIT" ]
permissive
thelegend831/ControlApp---EyeReader
2ec68f4fc436cd6c1b67fabd9ef6d58c1e8dd831
74f959363671d1c593b8647f8ee49e00ec28134f
refs/heads/master
2021-05-30T05:27:07.722616
2015-11-21T18:26:33
2015-11-21T18:26:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,008
py
cLineGraph.py
import matplotlib import matplotlib.pyplot as plt from matplotlib.transforms import Bbox from matplotlib.path import Path import json def cLineGraph(j_file): data = [] with open(j_file) as f: for line in f: data.append(json.loads(line)) data = data[0] in_other = 0 in_picture =...
4d87c3f70809bbd488159f0b55131af903c7e7b4
beb867359c6a664f68ce1d40840673eff55b6e39
/devnet_forum/test.py
b4d532a8fbb507869caf07c91ee76933e7777d3a
[]
no_license
angusba/code
4da84fb81bf079f53784e3a0ae71b2e726f88c52
5526a006f9635759b39c49712200e07fdb12076f
refs/heads/master
2021-03-06T21:16:53.412487
2020-03-10T06:36:16
2020-03-10T06:36:16
246,223,825
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
test.py
print ("hello guys") print ("hello everyone")
89fc7af9c8b24e056ad7c0eaf823a3d3d7f2570c
6b7475021551cce91aaaaa342f20ef92bbed34a8
/run_vehicle_tracker.py
35a2aa89756634ac4a3665f2266d97b459426e25
[]
no_license
cnmy-ro/Enhanced-DeepSORT
9a66c97bc768d6e61d73af262b52a17cc759cb31
016d57c254378684710bf5059804a84354504d4b
refs/heads/master
2022-10-28T10:45:08.151170
2020-06-10T17:41:54
2020-06-10T17:41:54
255,162,744
3
0
null
null
null
null
UTF-8
Python
false
false
18,033
py
run_vehicle_tracker.py
''' Main code file for re-purposed DeepSORT vehicle tracker. Arguments: --mode : 'test' or 'eval' --video_path : path to input video file, if using 'test' mode --detector : 'DPM', 'RCNN' or 'SSD' --online_detection : 'True' for running SSD on the fly --min_confidence : 0-1 float --max_cosine_distance : 0-1 floa...
c3ca775d6a576a897f052f7f1e39537d77d0b98d
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/0b677738a4b5648d307c/snippet.py
b23f7dc9eb80db69b3869912300405e566e64306
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
1,015
py
snippet.py
#!/usr/bin/env python from codecs import open from contextlib import nested import re import sys from os import path # The regex ranges below may not work on narrow builds of python < 3.3 # see http://stackoverflow.com/a/25417872/1711188 EMOJI_RE = re.compile(ur""" [\U0001F600-\U0001F64F] # emoticons | [\...
7d82779fd7f178d4db3172cfbe0d3c66658e40e1
2f22bc81e3d2833c178b2f2f750bea545e9fa3bf
/py3/sound163/sound.py
6173317dffbeee6ace7cdf0d9d53a5974c05a9ab
[ "MIT" ]
permissive
SherryZhu240/python-exercise
325efc93490528637e4c2bf9e787302ebbfd4340
4dc703368ac385d4d412587bc672de09a33a0381
refs/heads/master
2022-03-21T23:35:03.171644
2019-12-10T10:22:27
2019-12-10T10:22:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,677
py
sound.py
# author lamyoung import os import json from selenium import webdriver import time import random import jieba from wordcloud import WordCloud from PIL import Image import numpy as np CONFIG = {} with open(f'config.json', 'r') as f: CONFIG = json.load(f) print(CONFIG) SOUND_ID = CONFIG['id'] PAGES = CONFIG['page'] ...
36507fdd4992f4dadf8cde469b24a4a21dad0ad5
d26bbee616757e53eac312e1e4ba1a475f512f94
/software/control_system/sensors/power_switch.py
200faa62084e5e6f67cbfe923b78e6ea9b72fc80
[ "MIT" ]
permissive
VentCU/bbwtb
48e5c0a4b8905d47bfc2fab9a3c338b446c1be85
0884b4299652635801765d5c679d589938036da4
refs/heads/master
2021-05-24T14:39:48.705335
2021-03-25T19:13:00
2021-03-25T19:13:00
253,609,465
5
3
null
null
null
null
UTF-8
Python
false
false
714
py
power_switch.py
import RPi.GPIO as GPIO from time import sleep class PowerSwitch(): def __init__(self, PIN): self.switch_pin = PIN self.callback = None # Broadcom GPIO #s, NOT straight pin numbers on board GPIO.setmode(GPIO.BCM) GPIO.setup(PIN, GPIO.IN, pull_up_down=GPIO.PUD_UP) ...
946d847d8c522db3aecb0ea486dbadac95644197
ae0e452ec333e7d279be10ba7fa2f3780ae7a636
/controllers/clients_controller.py
3a24f38c7e509884cc6d84844b3d7457864bf21f
[]
no_license
nocrater/shelter_oop
fc05f622b4e78091a58400625990aa49c106c950
60aa85b777f1e8a0cf975c8f6cbfcebb03710395
refs/heads/master
2021-05-22T15:39:02.163822
2020-05-07T13:37:53
2020-05-07T13:37:53
252,985,264
0
0
null
null
null
null
UTF-8
Python
false
false
2,266
py
clients_controller.py
from PyQt5.QtWidgets import QMessageBox from views.clients import * from pony.orm import * from models.client import Client from controllers.client_controller import ClientController class ClientsController(QtWidgets.QMainWindow): def __init__(self, parent): super(ClientsController, self).__init__(parent...
a8a4d5aa2ca6e12e3f4a67bcc6dbeabce75be2da
860e5f0ae398f587bb169a7547d8d39e4f6667a7
/algorithms/L13/L13_C.py
1c2a7e2eee129111e540c44142d2f647221cb8e5
[]
no_license
Fianketto/MADE_2020-2021
43223936dbcc0d96216b2b5f7ee590f409f253d0
f0b363eddf3e098dde2b35630e3da406181bcfe2
refs/heads/main
2023-06-04T02:30:48.566922
2021-06-28T16:00:10
2021-06-28T16:00:10
314,250,713
0
0
null
null
null
null
UTF-8
Python
false
false
2,726
py
L13_C.py
import sys INF = float('inf') class Edge: def __init__(self, from_vert, to_vert, capacity, link): self.from_vert = from_vert self.to_vert = to_vert self.capacity = capacity self.link = link self.flow = 0 def __repr__(self): repr = f"|{self.from...
d8c1d8efa501864408b1f67369809350be68af8a
57d5f53ebcb7b7f2591a083d48a0af0c0d24e5e3
/laplacian.py
7527c024450da9b0371cac6334e45094a632fb1c
[]
no_license
jedhelmers/SudokuSolver
a8d6f13482444285c8fced22e847b8b31114cd13
ffd9a0f122f59fe9ce07ae10915fd87f772217cd
refs/heads/master
2021-09-02T01:06:31.965818
2017-12-29T14:52:27
2017-12-29T14:52:27
115,436,819
0
0
null
null
null
null
UTF-8
Python
false
false
460
py
laplacian.py
#python3 import cv2 import numpy as np from matplotlib import pyplot as plt img = cv2.imread('/Users/jlhelmers/Desktop/sudokubig.jpg',0) laplacian = cv2.Laplacian(img,cv2.CV_64F, ksize=7) #lines = cv2.Canny(laplacian, 100,) # pre-process the image by resizing it, converting it to # graycale, blurring it, and comput...
176242dab95a09bb4132c52e9f3b69d3c7704c05
98c32b6ba7dfb53415ce57458942f1acdace91a0
/setup.py
c59c763d1662bb6e2713cecd102b9612f7aeaf45
[]
no_license
nshipman-io/mssql-account-manager
6ec3d366a973b111768997d9b6085f52ede38622
f446cde66670bec4e5461ab6bffc264a0acb1842
refs/heads/master
2020-06-04T11:25:45.098074
2019-06-21T17:53:07
2019-06-21T17:53:07
192,002,134
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
setup.py
from setuptools import setup, find_packages with open('README.rst', encoding='UTF-8') as f: readme = f.read() setup( name='mssql-account-manager', version='0.2.0', description='Commandline tool to manage MS SQL user accounts', long_description=readme, author = 'Norman Shipman', author_emai...
5ae6ab6fd1610e04fce7eacaed0476a47ed7b60a
179df23b49e212196ce04bb4958b9f8623bc7856
/PyTestClient/myrequests.py
dc375ce6e3a4e19dd946c18aebe5f76871bd6be7
[]
no_license
xiaohaili/short-url
b3c2d06cae3c62adf217fd605ad5a7ea8bd5a0eb
e48d9af421f36596067709bdfb1e7a709c4360bb
refs/heads/master
2020-03-30T22:15:37.480267
2018-10-05T08:37:36
2018-10-05T08:37:36
151,660,344
0
0
null
null
null
null
UTF-8
Python
false
false
290
py
myrequests.py
import requests import json data = {'shorturl':'cosmosfading','longurl':'https://cosmosmagazine.com/space/universe-slowly-fading-away'} r = requests.post('http://localhost:5100/Create',data=json.dumps(data)) print "Status code received: " + str(r.status_code) + " response body: " + r.text
2e1fcbe4b4598d5d542ae1da6e54d3377c3d2f57
cbd842d1ce3a6046279db9bbefa0c4bca8f0c962
/tasks/2020/day13.py
dae672f3ab69421e6a88b1d1b0492788e83cf4d9
[]
no_license
ffoxin/advent_of_code
319a83356d98eca7f4bd71e3559174753d8f7a98
ae7f8070d8b181db3181f6057ff9b03308b21188
refs/heads/master
2022-12-21T21:02:45.038615
2022-12-12T16:14:20
2022-12-12T16:14:20
75,533,830
0
0
null
null
null
null
UTF-8
Python
false
false
1,826
py
day13.py
from itertools import product from pathlib import Path DATA = (Path(__file__).parent / "data" / "day13.txt").read_text() def puzzle1(): entries = [i for i in DATA.split("\n") if i] timestamp = int(entries[0]) buses = [int(i) for i in entries[1].split(",") if i != "x"] bus_found = None bus_wait ...
88999cefbd91ae03073c1e1aefeffc7a2187a221
f701c14032644e72d97067a1eea3823257218fcb
/Program69.py
22ffbf404b9685aa001062e1e8065e4548e7d7ca
[]
no_license
AkshayaK04/7-Day-Coding-Challenge
d8b9209d93efe96cbad8d8cd30a00245b385393c
4653f5ac5eb369c0d69e2f5f57516fada0fb786a
refs/heads/master
2022-12-03T02:02:12.924731
2020-08-10T12:46:15
2020-08-10T12:46:15
281,128,860
0
0
null
null
null
null
UTF-8
Python
false
false
541
py
Program69.py
def construct(n, m, a): ind = 0 for i in range(n): if (a[i]!=-1): ind = i break for i in range(ind-1, -1, -1): if (a[i]==-1): a[i]=(a[i + 1]-1 + m)% m for i in range(ind + 1, n): if(a[i]==-1): a[i]=(a[i-1...
25eec55ce3791dddd3f05888ee9258170a155d9c
9538f6b1fe6670d6d45b1ef76cdf6ca167335e27
/ProcessData/generate_patent_table.py
7f699249ff10b12363b0e9f79a83d6ce8a495d09
[]
no_license
mvail/info6850-final-project
177f68342bf503c0189935772efb04d0fe5ae414
90558403a2b117abae1c4e56225fd62dffde4e73
refs/heads/master
2021-01-19T11:41:56.570503
2017-04-21T16:23:35
2017-04-21T16:23:35
87,989,578
0
0
null
null
null
null
UTF-8
Python
false
false
1,845
py
generate_patent_table.py
import sqlite3 # Database location dbpath = '/home/margaretvail/mysite/db.sqlite3' # Data location path = "/home/margaretvail/data/" # Function to connect to sqlite database def connectDB(): dblocation = dbpath conn = sqlite3.connect(dblocation) return conn; # Parse and insert metadata.csv data into sqli...
7f6a76dfe0d334b69131314a79ebcbdf382beefc
ecff1058b9bb64a6308e80d27bb3c10513576305
/2017-07/0716批量合并数据.py
aba2233cd1775ed02794afa7031309a2485914f5
[]
no_license
wutong0810/2017-10before
7f648f58e78035524148c009c44e7c1f77aecb49
4639561cac8df44daf5bffa414d7e8f71730894c
refs/heads/master
2021-07-14T09:27:42.342491
2017-10-14T13:59:22
2017-10-14T13:59:22
105,959,069
0
0
null
null
null
null
UTF-8
Python
false
false
1,753
py
0716批量合并数据.py
# -*- coding: utf-8 -*- """ Created on Sun Jul 16 21:36:24 2017 @author: wutongshu """ import os #获取目标文件夹的路径 def pathGet(path1=r'E:\华为数据\测试',dataFomat='.txt'): path2=unicode(path1,"utf8") filename_total=[] for dirpath, dirnames, filenames in os.walk(path2): for filename in filenames: ...
bd3128dfc2b7f17918d26b06fb8f248f969fda4b
62c7d68af09b3f9307ee8bd15afdc17aaa4ed450
/feature_extractor/run.py
b583a5fd155298c386af8315c0b01322b92c4318
[]
no_license
gangeshwark/QbE_System
36e19db305490e79947fe103f1ec61d4211fa543
42e745053f1c360df0f4eeaf426179d0fce1963a
refs/heads/master
2021-01-20T11:34:25.361684
2018-11-29T14:15:00
2018-11-29T14:15:00
82,385,283
1
1
null
null
null
null
UTF-8
Python
false
false
1,476
py
run.py
import subprocess, inspect import os from os.path import basename import feature_extractor.readArk from feature_extractor.data_preparation import prepare_dir class FeatureExtractor(): @staticmethod def bnf(file_path): os.chdir(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))...
debd06b54c3c2644d7b677a41d8c6ba3d860220f
ad173991f47ba60fd9f8f70c7ced7843cbf62dab
/my_model.py
4a64dd4a7b8a203f13027710c3316b20f54b0b08
[]
no_license
HenryBalthier/rnndemo
443b67ca18d5b7167fe3228d2692d099fc8feda1
314673bb8c9ddcd11c433e3d23fd4b15877d6e28
refs/heads/master
2021-01-22T12:57:34.205661
2017-09-12T08:18:08
2017-09-12T08:18:08
102,360,418
2
1
null
null
null
null
UTF-8
Python
false
false
3,052
py
my_model.py
import tensorflow as tf class Model(object): def __init__(self, model, batch_size, step, learning_rate, learning_decay, rnn_size, gradient_norm, net_layer, vocab_size, datatype): # you can read more about these models on main.py if model == 'simple lstm': hidden_cell =...
f83f2055b911546f191e98378616a112a87ecec8
1f8c4e85bccb09b92aab2e22a2f64ba3c4a1f554
/sarcoma/adda/tfmodels/unet_whole.py
a494b591f7ab2224b779fc4623eec098ded26e3e
[]
no_license
Strauman/Masters-thesis
afbd7718692a85ddd7c5b762f4704d9076290814
9ed86d0c461b278ada4aac4f393a236a1aeb2e23
refs/heads/master
2020-06-19T02:08:14.909279
2019-07-19T12:47:00
2019-07-19T12:47:00
196,527,573
1
0
null
null
null
null
UTF-8
Python
false
false
15,395
py
unet_whole.py
from . import TFModel from tensorflow.keras.layers import Conv2D, Activation, MaxPooling2D, Conv2DTranspose, Lambda, InputLayer, concatenate, BatchNormalization,Dropout, Dense,Flatten from tensorflow.keras.layers import Reshape, LeakyReLU, ReLU # from tensorflow.keras.models import Sequential from . import UpdModel as ...
0adc796807ee1630e13b49624efde4f639e61361
ce7705150777688ba2c40ba7d7c67ea1ed3d5281
/grizly/cli/git_s3.py
5a710f345989422042efd1c662da5164f91f9257
[]
no_license
bing9/grizly
2e01e4d5cb83490a78d190e71bcccdc8eb66f3d7
78657d0309731d4cb3d0f6cbdcbc8ece549d562b
refs/heads/master
2021-07-09T05:37:23.228180
2020-12-23T10:54:50
2020-12-23T10:54:50
220,925,602
0
0
null
2020-04-05T13:27:08
2019-11-11T07:32:02
Python
UTF-8
Python
false
false
6,672
py
git_s3.py
#!/usr/bin/env python import subprocess import click import os #chmod a+x ptest def get_blocks(): with open(".gitignore", "r") as f: lines = [line.replace("\n", "") for line in f.readlines()] try: indx = lines.index('#GITS3') except ValueError: ...
f863f264cf09b3d71bb5a191e4c05dbcfea3833d
dbf885048468afb2e41ed233ba682e71a451ccb8
/pre_mg07a.py
ab77f9a03ffc4c7b941d961f3936d39c83d9db2b
[]
no_license
nikosft/IB-PRE
f2d52258daa407666b0692880ae8eecf136db6a6
1fd8051f999b9b4ab054f277156c5bbfe0b9e4aa
refs/heads/master
2022-08-14T21:43:21.453048
2022-07-22T13:02:16
2022-07-22T13:02:16
6,938,010
22
11
null
null
null
null
UTF-8
Python
false
false
4,918
py
pre_mg07a.py
''' Identity-Based Proxy Re-Encryption | From: "M. Green, G. Ateniese Identity-Based Proxy Re-Encryption", Section 4.1. | Published in: Applied Cryptography and Network Security. Springer Berlin/Heidelberg, 2007 | Available from: http://link.springer.com/chapter/10.1007%2F978-3-540-72738-5_19 * type: proxy ...
2572bf3059fa211b95e5b4b457e1802fc542913c
14ecceeea9ae5fb192b90ab8a3805e9e8cb186de
/cosSimilar.py
7a23cafe174d5432cd0aac281a1182e3ab72fecb
[ "BSD-2-Clause" ]
permissive
tz28/cosine_similarity
5a3d216f661e97e8d051a4b21928aca50d2d12aa
a5febdc130f0f07f7bd9c6daa695dfc214af472f
refs/heads/master
2021-05-07T14:42:33.259909
2018-04-08T13:47:04
2018-04-08T13:47:04
109,851,766
0
0
null
null
null
null
UTF-8
Python
false
false
368
py
cosSimilar.py
import numpy as np def cosine_similarity(a,b): a=np.mat(a)#把list转换为matrix b=np.mat(b) num=float(a * b.T) #linalg.norm()计算向量的范数 denom=np.linalg.norm(a)*np.linalg.norm(a) return 0.5+0.5*(num/denom)#cosine similarity的范围为[-1,1],先把他归一化至[0,1] if __name__ == '__main__': cosine_similarity([1,2],[2,...
b6c1d3cc3d1a572596a13ee441540938168b2317
fae8f9cf5e72cf85eeff42cc9a00cb439708e107
/claseAlumno.py
d74850b032ad6471cfb7c1dc135689dc94f506c6
[]
no_license
rodrigoo730/ejercicio5_un2
676a27775bfa2b2511851f2427494ee496482323
ecd9b2da4d2d14b846c2f524f9534cda79897c1b
refs/heads/main
2023-04-30T00:49:09.236229
2021-05-12T22:55:31
2021-05-12T22:55:31
366,873,930
0
0
null
null
null
null
UTF-8
Python
false
false
783
py
claseAlumno.py
class Alumno: cantMaxInasistencia = 5 totalClases = 120 __nombre=0 __anio=0 __division=0 __cantInasistencia=0 def __init__(self,nombre,anio,division,cantInasistencia): self.__nombre = nombre self.__anio = anio self.__division = division self.__c...
29253758b837288de81d8d464adf04a5a0780809
1da0631a9f5bc9a6e85584df02db80700c243741
/instagram_web/blueprints/images/views.py
660cbbb78e01fcd23071655bffa87e10146504ac
[]
no_license
ahmadridza/curriculum-nextagram-template
94c56fd269fd23aa32607e876c408d41422829c4
32daa963a43439090c243deecba5398b3dd50dfd
refs/heads/master
2021-01-16T14:44:17.127442
2020-03-06T11:58:42
2020-03-06T11:58:42
243,157,238
0
0
null
2020-02-26T03:13:56
2020-02-26T03:13:56
null
UTF-8
Python
false
false
1,349
py
views.py
from flask import Flask, render_template, request, flash, Blueprint, redirect, url_for from flask_login import login_required, current_user from werkzeug.utils import secure_filename from models.user import User from models.image import Image from instagram_web.util.helpers import upload_files_to_s3 from config import ...
51e87e09ef5fdbb795933fb776dd9136f92e7b77
3306db40765ac9c1860e1fd15e11276bcedc53b8
/activemq/stomp/activemq_test.py
a42543cb17c860336b97845d8e75badad588fa5f
[]
no_license
dennis-zheng/python
dec2832341a863ea0aabd0b03a6c9bfc64a78eaa
82e4db7335bb8ae170d59af764026029e37f0445
refs/heads/master
2021-07-21T16:18:49.411108
2021-07-07T10:52:14
2021-07-07T10:52:14
136,100,573
0
0
null
null
null
null
UTF-8
Python
false
false
2,071
py
activemq_test.py
# -*- coding: utf-8 -*- import time import glob import sys import os import threading import uuid import stomp #import logging #logging.basicConfig() import logDS logDS.init('activemq.log') is_stop = False gindex = 0 class MyListener(stomp.ConnectionListener): def on_error(self, headers, message): print...
954056f1bbb1ac8708b0be2228a757f35602ed60
20e0d602ebca4972588f4821d4525c5dae55b89e
/src/azure-cli-core/azure/cli/core/azclierror.py
97fc2d4c4a990e6f28e4c6caea1b594b836806cf
[ "MIT", "LGPL-2.1-only", "GPL-1.0-or-later", "BSD-3-Clause", "MPL-2.0", "LGPL-2.1-or-later", "Apache-2.0", "BSD-2-Clause" ]
permissive
hackathon-cli-recommendation/azure-cli
bc5fb5cb5b3a186489176774e0d8bff01020b97b
b9df3c9cfd400627912e5751bb6dcd429670b2c7
refs/heads/dev
2023-02-26T07:03:32.482255
2020-11-12T07:41:23
2020-11-12T08:33:18
283,122,074
0
0
MIT
2020-11-18T10:09:52
2020-07-28T06:30:06
Python
UTF-8
Python
false
false
3,543
py
azclierror.py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
a73d5b3ab225a71d0f55e3b6007c313f5d9be614
59d1265f364f24344d69b9f4e52974a94832915c
/nbmolviz/__init__.py
9a15d747b6f5fd16408414b06144d31e42d07d4a
[ "Apache-2.0" ]
permissive
am-official/notebook-molecular-visualization
a6fe314c8d0c6fe3ff67cf2c6d1b99cbe289651d
2dd61fedcf363d7362b727669b86c5f1c07656fd
refs/heads/master
2021-03-28T19:58:21.996453
2017-08-24T17:29:11
2017-08-24T17:29:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,243
py
__init__.py
from __future__ import print_function # Copyright 2017 Autodesk Inc. # # 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 ...
bef27f3d9f610712dfc514e87fe7f7d9ea23a42c
44abd024f162383716d5f8f9109d2fc7041eb779
/app.py
6c2138ec0bf09db68c52495932441fda158faeef
[]
no_license
wstcpyt/viz_flask
0a324612d3c492c2ffbfebbf9bbfb30a9265d585
305d04162a217929bde47a9846c1388eec231c67
refs/heads/master
2021-01-01T05:17:29.752285
2016-05-06T23:21:46
2016-05-06T23:21:46
58,237,166
0
0
null
null
null
null
UTF-8
Python
false
false
448
py
app.py
from flask import Flask, render_template, request, redirect from flask_restful import Resource, Api app = Flask(__name__) app.config['DEBUG'] = False @app.route('/') def main(): return redirect('/index') @app.route('/index') def index(): return render_template('index.html') api = Api(app) class Vizq1(Resource):...
4479ba1d4cb9bb6d358f0b265c15b794a5ae2673
f5905e9434b17e294388323041c9a9630cb0c4ec
/hackathon/column1/test_15_4.py
9cd7d8c66a23a0b7458643fd3b91dbb106f28b7f
[ "MIT" ]
permissive
abdurahmanadilovic/elements-of-programming-interviews
3909fc82c8a37debe0363b4b65c412a8e7d1feac
14d05935aa901f453ea2086e449b670e993a4c83
refs/heads/master
2020-05-22T15:18:26.702885
2019-09-10T06:02:13
2019-09-10T06:02:13
186,404,928
1
0
null
null
null
null
UTF-8
Python
false
false
600
py
test_15_4.py
from unittest import TestCase from .problem_15_4_largest_k_values_bst import solution, Node class TestSolution(TestCase): def testSimpleCase(self): leftRightLeft = Node() leftRightLeft.value = 29 leftRight = Node() leftRight.value = 37 leftRight.left = leftRightLeft ...
62a7a5ffc6a044973a1dbd3424adbe31ee442043
dc0f99683064633b507d040a9b243fb3fe07c628
/tabl.py
3cb3660962d3fa5ffaa7745a4b7ab53ca1cffa82
[]
no_license
dmitriipolushin/finworkers
03e1434556efbb21d9654ed2d46e98c4516f3822
2a4bbb261eb994006b2eff920f99bda5cc053932
refs/heads/master
2021-06-27T02:03:41.821850
2019-06-16T18:45:17
2019-06-16T18:45:17
150,883,878
1
1
null
2018-09-29T17:41:53
2018-09-29T16:43:31
null
UTF-8
Python
false
false
772
py
tabl.py
import random def LevelCount(Lvl): Count=0 Count=random.randint(1,12) if (2<=Lvl<=4): if (Count in range(2,5,1)): Lvl+=4 elif (5<=Count<=8): Lvl+=5 elif (9<=Count<=11): Lvl+=1 elif (Count==12): Lvl+=2 else: Lvl+=3 if...
304ccd2d2e0e7721220a5d5f7eb985ab70caac45
c990ba64b77b7b4034772fb15a5520a28f1ea5e7
/copasi/bindings/python/examples/example2.py
4c3ecd5344d1a6c881600b02a2b58de3470ad44a
[ "LicenseRef-scancode-other-copyleft", "Artistic-2.0", "LicenseRef-scancode-proprietary-license" ]
permissive
copasi/COPASI
a3fb515b4d9c667519ad756c52d8b82747a26e64
3ddf61e95191f2db09256dddc013f12041719a2c
refs/heads/develop
2023-09-01T19:32:39.004552
2023-06-02T15:01:23
2023-06-02T15:01:23
4,810,881
75
34
Artistic-2.0
2022-09-14T13:13:20
2012-06-27T16:35:48
Component Pascal
UTF-8
Python
false
false
2,625
py
example2.py
# -*- coding: utf-8 -*- # Copyright (C) 2017 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc., University of Heidelberg, and University of # of Connecticut School of Medicine. # All rights reserved. # Copyright (C) 2010 - 2016 by Pedro Mendes, Virginia Tech Intellectual # Properties, Inc., Universit...
8a3bbc006bbe7178e648ee88afead344270f6784
50e39f12a6a9d44da920324320bda9c3bf7c1f89
/code/python/elbow.py
50eb6602be557204d35bef97cf9eb77dfe5d48ce
[]
no_license
yguimaraes/pfc_botnets
6a4f72086bb5d2b3139788b9bd114165ec22e934
fc840f683443aa6b51764d5e115ddc28ffb05e30
refs/heads/master
2020-04-16T10:27:46.339861
2016-10-05T14:19:20
2016-10-05T14:19:20
52,274,797
3
0
null
2016-10-05T14:19:21
2016-02-22T13:20:44
TeX
UTF-8
Python
false
false
429
py
elbow.py
import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(111) t = range(1,10) s = [500.0/(i**2) for i in range(1,10)] line, = ax.plot(t, s) ax.annotate('cotovelo', xy=(3*1.03,500.0/(3**2)*1.03), xytext=(4, 100), arrowprops=dict(facecolor='black', shrink=0.05), ) plt.plot(3,5...
9bc8f37a3fc7ea280086253c9e88e3face29d84d
b56db8ba4956078f25f468fa987177e00ea7a296
/src/vswarm/relative_localization/__init__.py
ee15b3ee35b1d1aee1011a10a9743253af4ad118
[ "MIT" ]
permissive
lis-epfl/vswarm
04e5fc9bfe3095ce3f3abe93f52cd542d5d52078
9683ca168bbc636fefec7c5f935f65e0512cf81d
refs/heads/master
2023-05-22T23:27:44.721218
2022-08-09T11:40:50
2022-08-09T11:40:50
338,046,892
40
14
null
null
null
null
UTF-8
Python
false
false
204
py
__init__.py
from .relative_localization import RelativeLocalizer from .relative_localization import detection_to_bearing, point_to_bearing __all__ = ['RelativeLocalizer', 'detection_to_bearing', 'point_to_bearing']
b35608ad4aeb820c74b35b687b81f25e0bc40dc8
70865d6866b0631e80d550408dde37dc7343f336
/codes/ui.py
4e41ed2ef20a402b7868f805aa12b9d131f65e77
[]
no_license
jackandsnow/MovieAnalysis
02edf263efc81a6d07cbf12ed4888e35358d6b1c
a3644e683eb5c4f71331b90697fb2297c9d35f46
refs/heads/master
2020-12-07T22:26:11.398008
2020-01-11T13:07:57
2020-01-11T13:07:57
232,816,330
1
0
null
null
null
null
UTF-8
Python
false
false
14,111
py
ui.py
import collections import os import imageio import jieba import matplotlib.pyplot as plt import pandas as pd from PyQt5 import QtCore, QtWidgets from pyecharts import Geo, Line, Bar, Overlap from wordcloud import WordCloud, ImageColorGenerator from codes.constant import movie_list, get_json_data # 主窗口 class UI_Form...
5b68bbf4c46be2badbb8223e0683701788f52360
a570fc650e5f06730b91bafad74e803fa91dd24b
/Python/kraken/core/objects/operators/canvas_operator.py
8dcaf2c27462b6f2b62cf2aaea14933a5c9a3554
[ "BSD-3-Clause" ]
permissive
r4inm4ker/Kraken
d78580ecc14fd63fac625576de991bbac4c6ee61
65799f56ceb055c261d6d9a5399c0969c20090d9
refs/heads/develop2.X
2020-12-28T21:06:31.400353
2016-05-06T15:05:48
2016-05-06T15:05:48
58,533,679
2
0
null
2016-05-11T09:57:28
2016-05-11T09:57:28
null
UTF-8
Python
false
false
8,741
py
canvas_operator.py
"""Kraken - objects.operators.kl_operator module. Classes: CanvasOperator - Splice operator object. """ import json import pprint from kraken.core.maths import MathObject, Mat44, Xfo from kraken.core.objects.object_3d import Object3D from kraken.core.objects.operators.operator import Operator from kraken.core.objec...
3ac94e651eff63cf3121bda9f59c841130269c4c
4ba18540bfd8c523fe39bbe7d6c8fa29d4ec0947
/atlas/foundations_events/src/foundations_events/notifiers/job_notifier.py
4de42ec0c3147b13a5a1f0efffc4c85a85a802bd
[ "BSD-3-Clause", "MIT", "CC0-1.0", "Apache-2.0", "BSD-2-Clause", "MPL-2.0" ]
permissive
yottabytt/atlas
c9d8ef45a0921c9f46d3ed94d42342f11488a85e
b040e574fbc64c833039b003f8a90345dd98e0eb
refs/heads/master
2022-10-14T11:12:12.311137
2020-06-13T13:19:35
2020-06-13T13:19:35
272,008,756
0
0
Apache-2.0
2020-06-13T12:55:29
2020-06-13T12:55:28
null
UTF-8
Python
false
false
495
py
job_notifier.py
class JobNotifier(object): def __init__(self, config_manager, slack_notifier): self._slack_notifier = slack_notifier self._config_manager = config_manager def send_message(self, message): channel = self._get_channel() for _ in range(5): if self._slack_notifier....
20f607f871e7ff3c535938db25167cbc3227faf2
7229c7c01e1e5b5f3c9448fc943714e494461e02
/Tests/mnist_test_conv.py
aef742ac28e8d2df371fa969a6e9deda90206799
[]
no_license
menwhitehead/NPANN
0415356d74fda54e46025dd28348b47f646a9f8b
1f6b245302e87c410cb77be12d813352af3eeb04
refs/heads/master
2021-01-20T20:29:02.899825
2017-12-08T00:17:22
2017-12-08T00:17:22
63,726,759
0
0
null
null
null
null
UTF-8
Python
false
false
1,179
py
mnist_test_conv.py
from npann.Utilities.misc_functions import * from npann.Models.Sequential import Sequential from npann.Layers.Dense import Dense from npann.Layers.Convolution import Convolution from npann.Layers.Flatten import Flatten from npann.Layers.Activations.Sigmoid import Sigmoid from npann.Losses.CategoricalCrossEntropy import...
1389969a7ea79682e94750c2faf226a85dbad7ae
3d0a2b6b7bade174148f40454c73b1bc581c3f97
/dump_grep.py
6b07191d4e501af4e1cd4cf79231d2cde335d8a5
[ "LicenseRef-scancode-public-domain" ]
permissive
cdbeland/moss
725c38a378b3a3bb171f2cebebdc3b68cf037693
8533535e90f5a91d813043937f66b4fc98465dcf
refs/heads/main
2023-07-16T02:19:41.339254
2023-07-05T17:58:04
2023-07-05T17:58:04
28,994,418
11
0
null
null
null
null
UTF-8
Python
false
false
851
py
dump_grep.py
from moss_dump_analyzer import read_en_article_text import sys from xml.sax.saxutils import escape if len(sys.argv) != 2: print("Please specify exactly one search term on the command line") exit(1) search_term = sys.argv[1] def grep_callback(article_title, article_text): if search_term in article_titl...
4e955b8a44dc02bc2ba17b5c78cdf0eefa9ad1e8
2c09c131378374386a05911f827129087a933c3c
/HW1/__init__.py
f8ee5ed6bf48de2cdd30a76855a6eb3905d03486
[]
no_license
eedoudou/eedoudou
92b7d1586cd49ffb4b0021141d443cfda71ab907
4c8f75de90f44693f4b1348143d3209be2c306a5
refs/heads/master
2021-07-06T07:24:10.185545
2017-10-01T06:02:29
2017-10-01T06:02:29
105,415,036
0
0
null
null
null
null
UTF-8
Python
false
false
47
py
__init__.py
print(len([a for a in 'aeiou' if a in'thias']))
a2e5504d0c534cfcf2e3ba936e2309988de315e4
e7a19d4dda4c770492a832b1c2c1e1f47cc3b339
/laboratory1/gameColorLines.py
396aeb74beb7015b21e81491a318525b3f0722f1
[]
no_license
ajerit/python-projects
cc859a9d8144d409a8c16a53348458c6d5a5f7bd
de16e655bac9ff6fd8fb8f81581fb88311b2f95b
refs/heads/master
2021-01-01T05:12:53.083469
2016-04-29T00:39:16
2016-04-29T00:39:16
57,335,702
0
0
null
null
null
null
UTF-8
Python
false
false
33,683
py
gameColorLines.py
# -*- coding: utf-8 -*- # # Adolfo Jeritson 12-10523 # Luis Carlos Marval 12-10620 # # Laboratorio de Algoritmos y Estructuras I # Proyecto: Lineas de colores y Rectangulos # import pygame, random # ANALISIS DESCENDENTE def InicializarGraficos(panel:'Pantalla', fondo: (int), negro: (int), ancho: int, alto: in...
1c3d5e3a9b1d9cc130da90c5bf8f67f945a0c894
10489995e85d6259da47473201700ccd5b0c2c80
/11.盛最多水的容器_mid.py
1e3361a393602931faf0e15c9208b0b539a0ca21
[]
no_license
Vivhchj/LeeeCode_Notes
1c40b96e20e54f2cb4fb98e8d272848916989cb5
b8a9ec7fd7918a09009acd2dedee8dff30439a30
refs/heads/master
2022-08-27T23:12:02.753782
2020-06-02T02:29:48
2020-06-02T02:29:48
210,487,515
0
0
null
null
null
null
UTF-8
Python
false
false
1,451
py
11.盛最多水的容器_mid.py
### content: ### 给定 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0)。 ### 找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。 ### 说明:你不能倾斜容器,且 n 的值至少为 2。 ### solution: ### 暴力法:果然超时,我就不应该写出来 class Solution: def maxArea(self, height: List[int]) -> int: # n = len(height) # most =...
ad2b001160968cfc2ace938c4cb60848f6ae65a4
51733a4b2fab6c3e3f8cb15b7beb4a7a63979025
/blog/views.py
7c4897e3f7a46c5b02c55fb0c8095cc8aab1be68
[]
no_license
Kan-j/cpblog
2afdfad015710398c936d1bf187036996707fc29
3c8e67970e00b916568334ed45145847fe7923d9
refs/heads/main
2023-05-31T02:18:53.533543
2021-06-15T19:17:33
2021-06-15T19:17:33
377,268,492
1
0
null
null
null
null
UTF-8
Python
false
false
4,959
py
views.py
# -*- coding: utf-8 -*- from django.contrib import messages from django.db.models import Q from django.shortcuts import redirect, render, reverse from django.urls import reverse_lazy from django.shortcuts import render, get_object_or_404 from django.views.generic import ( CreateView, DeleteView, DetailView,...
bea2cbc5d93c21c11e0ac7e91dac2624365d7634
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2362/60622/286829.py
1e8b6c163bcd78202cea02c189138de035148f1c
[]
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
146
py
286829.py
n=int(input()) ans = 0; a = [0, 1, 1, -2]; b = [1, 2, 6, 7]; if (n >= 5): ans = n + 1 + a[n % 4]; if (n < 5): ans = b[n - 1]; print(ans)
6f44619825ea25c25c8810af5758aa534d737a46
92364c3d12fcd9d6a24c9bba7383d89a4c39be19
/iwgan-synthetic-mult-min.py
e700420b7bdddaa6f52145262d844377e7878d33
[]
no_license
code-submission/imbalanced-sequence-classification
73324f3982ea0d0f1ee5a0a0ba0b2c0a1bc185b8
14b5593bb0909fede8063977c65ba503f2340371
refs/heads/master
2021-03-31T09:18:43.258166
2020-03-18T00:56:57
2020-03-18T00:56:57
248,096,100
3
1
null
null
null
null
UTF-8
Python
false
false
1,358
py
iwgan-synthetic-mult-min.py
import sys from utils.tf_models import * import numpy as np import os ''' Use this script to generate synthetic data on minority given a GAN model trained on minority for non-sequence label vectors. Inputs: data_dir: directory where training data is located data: data type to invoke the correct Config file, either '...
e5ffe4f88835dc3c8c12b99fe544674292f7d814
44c245a0ee585eeaf0be5d62c6eead2ee1421470
/python1.py
c59c42cf7bae0c1ef5d10dc8ed9b3640a8e00221
[]
no_license
muffin-king/Git-python
e433795ac8011f6837c249481de1b5de1b428350
71b2500e542b08ea3b5ab889467fbe7a3386d36a
refs/heads/master
2023-01-21T12:15:18.703474
2020-05-19T00:58:27
2020-05-19T00:58:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
67
py
python1.py
#poopybutt import random i=random.randstr("poopy","butt") print(i)
06523a9aeafc660b691573886d95e08bf291be76
af99a1faa999a52c1cbb46e6089e4172dc47c5d3
/tests/test_subject_hierachy.py
7b49ac44bc769125ad90ba7fc072e7c287a70933
[]
no_license
DBCDK/bibdk
69aaa19caa343b765b8fdca5bf5d89675e23243c
a93fe15edb371e62047924f22d2498989746588b
refs/heads/master
2023-08-31T06:12:53.073108
2023-08-10T08:35:08
2023-08-10T08:35:08
3,569,473
3
0
null
2023-08-24T11:29:34
2012-02-28T08:50:34
PHP
UTF-8
Python
false
false
12,991
py
test_subject_hierachy.py
from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.common.action_chains import ActionChains import time __author__ = 'hrmoller' import helpers class TestBibdkSubjectHierachy(helpers....
3fff2a4874377cf9e39ad70c80a437a28a822a1a
d119565f750a2437cc12cf995464e16846ed65f9
/pybufrkit/mdquery.py
85529f6ec0633bbf7e81d6f051bc3f5e4e28586a
[ "MIT" ]
permissive
ywangd/pybufrkit
7af625c033f1fcd519829f47d68e9ec184c46d20
fbc0db04a4f92a6df484eee7e958499ede25d936
refs/heads/master
2023-05-18T16:53:23.568690
2023-04-29T11:21:51
2023-04-29T11:21:51
66,844,307
72
29
MIT
2023-04-29T11:21:52
2016-08-29T13:05:24
Python
UTF-8
Python
false
false
1,958
py
mdquery.py
""" pybufrkit.mdquery ~~~~~~~~~~~~~~~~~ """ from __future__ import absolute_import from __future__ import print_function import logging from pybufrkit.errors import MetadataExprParsingError __all__ = ['MetadataExprParser', 'MetadataQuerent', 'METADATA_QUERY_INDICATOR_CHAR'] log = logging.getLogger(__file__) METADA...
0919f88e7a7ee5cc5c6c8599221828734e77b654
88fef57e6842ab221e1cf039d645d0676ca61147
/release/specs/mitmweb
14188a33a94f674a65f4dcc1745d9368549c9cd5
[ "MIT" ]
permissive
magnologan/mitmproxy
a3b2ea45b99ad8c7137f929a9965377ccfeb3ffa
18dd84b9081fb5552d5b5b2560405496445e2110
refs/heads/master
2022-01-27T18:35:19.627870
2016-07-19T10:23:40
2016-07-19T10:23:40
63,716,259
0
0
MIT
2021-09-01T07:08:25
2016-07-19T17:57:19
Python
UTF-8
Python
false
false
68
mitmweb
#!/usr/bin/env python from mitmproxy.main import mitmweb mitmweb()
ce0873b7639649f407cf9f69fd5fba3e347e812b
e5c97b710707d2b9ad0f20fdc27f160be0492711
/python/scripts/transcribe.py
ed924e4f6bc99ea05a971b1089fafbe30e9ed550
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
janaab11/kaldi-serve
e02c9d74f6b636e693ed6c72d0d71922e885174c
2aa6036e6ed87f0846aef804a2cb2cd56c031594
refs/heads/master
2022-11-29T02:40:46.862261
2020-08-05T05:46:41
2020-08-05T05:46:41
265,179,404
0
0
Apache-2.0
2020-05-19T07:41:43
2020-05-19T07:41:42
null
UTF-8
Python
false
false
1,199
py
transcribe.py
""" Audio Transcription script using kalidserve. Usage: transcribe.py <model-spec-toml> <audio-file> """ import time from io import BytesIO from typing import List, Text from docopt import docopt import kaldiserve as ks def transcribe(decoder: ks.Decoder, wav_stream: bytes) -> List[ks.Alternative]: with ks.sta...
a898a0b5afdbabb639ff9dc31f2b17a28535c824
0b5f4e15e66dc6c391fea72e4f7f3c777d3ae6aa
/tests/pytorch_pfn_extras_tests/training_tests/extensions_tests/test_snapshot_writers.py
41b9ecfd97d9640ec37940210e1e35d5e8e9f849
[ "MIT" ]
permissive
somisawa/pytorch-pfn-extras
b62c278aaccf85de7e9cbb7ed63a2dadad720437
4f017294b2dde7cdb2cbec7c1e1b897b4491645f
refs/heads/master
2023-07-07T02:19:07.360337
2021-08-11T04:58:21
2021-08-11T04:58:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,532
py
test_snapshot_writers.py
import multiprocessing import threading import tempfile from unittest import mock import pytest from pytorch_pfn_extras import writing spshot_writers_path = 'pytorch_pfn_extras.writing' def test_simple_writer(): target = mock.MagicMock() w = writing.SimpleWriter(foo=True) savefun = mock.MagicMock() ...
73dc661d58d23e0c2e2b88a4c720bdc37c0dfa71
6e554ad790c69ecc2c5ce0b602947bdc9bcb8a3b
/websiteobj.py
fcaa8e76c91bf8e86ef4fb5669fffa56eca5285b
[]
no_license
greg19735/qlikCrawler
b6c71ef57ac55d56bc7baad5103e8baf0c4d832e
6fba05f287b1ba7dc13179ef8f7d0465a3034c4f
refs/heads/master
2021-06-18T15:48:26.435612
2019-08-20T06:23:18
2019-08-20T06:23:18
202,674,060
0
0
null
2019-10-01T05:42:19
2019-08-16T06:47:39
Python
UTF-8
Python
false
false
308
py
websiteobj.py
class WebsiteObj(object): def __init__(self,url,filename, domain , sitename , ext, folder, active): self.url = url self.filename = filename self.ext = ext self.sitename = sitename self.domain = domain self.folder = folder self.active = active
ca54bfb348036ffc835df47bd6661ade1b9ecd40
4a667474901bddc75009a669c0d1ecf474259b85
/sort/selection_sort.py
00c5d0e99c4fe618455c50f4faf701e867893370
[ "MIT" ]
permissive
johannah/interview_practice
0e753e2154564baa81a44d3ee8860bb711d7fdd6
2f1d1bc6402e6f129b7fd185897a4845865ee9c9
refs/heads/master
2020-09-11T08:30:47.709830
2019-11-15T21:35:49
2019-11-15T21:35:49
222,005,949
0
0
null
null
null
null
UTF-8
Python
false
false
590
py
selection_sort.py
# O(n^2) def find_min_index(array): min_value = array[0] min_index = 0 for i, val in enumerate(array[1:]): if val < min_value: min_value = val min_index = i+1 return min_index def selection_sort(array): for i in range(0, len(array)-1): min_index = i+find_m...
01e19561eb47aff23bcea1f9d075a24c82cb4c2e
286a49d0360ee2eb718dd9a496be88555cef3227
/dp动态规划/股票问题/188. 买卖股票的最佳时机 IV.py
d22fdd90189f2ec2016a3414b2457471b2ea372c
[]
no_license
NaiveteYaYa/data-structrue
0618ab6bb7accc99c40e39a3ca60bbc0a9723c2f
a376863c1a8e007efafd5c1ed84929a80321b1b9
refs/heads/master
2023-07-02T03:15:33.523855
2021-08-14T02:02:07
2021-08-14T02:02:07
395,857,543
0
0
null
null
null
null
UTF-8
Python
false
false
1,050
py
188. 买卖股票的最佳时机 IV.py
# -*- coding: utf-8 -*- # @Time : 2020/3/10 14:45 # @Author : WuxieYaYa """ 给定一个数组,它的第 i 个元素是一支给定的股票在第 i 天的价格。设计一个算法来计算你所能获取的最大利润。你最多可以完成 k 笔交易。 注意: 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 示例 1: 输入: [2,4,1], k = 2 输出: 2 解释: 在第 1 天 (股票价格 = 2) 的时候买入,在第 2 天 (股票价格 = 4) 的时候卖出,这笔交易所能获得利润 = 4-2 = 2 。 示例 2: 输入: [3,2,6,...
71f9d9d7973809654db3ea613073f2d431f2d65f
fae681f6ec8810b0143b24656c561b146f2b8f1c
/tests/test_managers.py
b6484eb09134fbf84b0b76c318fa740ca9a9d976
[]
no_license
simodalla/django-custom-email-user
d5362bc3d421ca590b51106ca7dd095c18e04777
a8e91b655a03ea4b8bb58c52d892f7a369bb556c
refs/heads/master
2020-03-31T09:41:59.678787
2015-05-27T10:30:18
2015-05-27T10:30:18
32,853,675
0
0
null
null
null
null
UTF-8
Python
false
false
2,964
py
test_managers.py
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import from datetime import datetime try: from unittest.mock import patch except ImportError: from mock import patch import pytest from django.test import TestCase try: from django.test import override_settings except ImportError: ...
05bd95966d72dd40b9b828932b0bf70e40ddb573
f3732298f444df3525bec944cc3949e54fc343d0
/Raspberry_code.py
4223541782ff9f28f7e2d9de0e223711e70f4161
[]
no_license
FEDE9326/SmartBed
cc339d655ebb1686e21261d19b4b8c785e37b6fa
35cdcb34cf79ee3098266dba137d6bc2a2c2319f
refs/heads/master
2021-06-06T15:01:02.978140
2020-05-12T15:43:57
2020-05-12T15:43:57
57,149,810
0
0
null
null
null
null
UTF-8
Python
false
false
7,914
py
Raspberry_code.py
''' Created on 14 november 2015 @author: federico ''' import paho.mqtt.client as mosquitto import json import urllib,urllib2 import datetime import threading import time from pygame import mixer from datetime import timedelta #ALARM SOUND PATH alarm_path="/home/pi/SmartBed/Smart_Bed/src/Rooster.wav" #DWEET&FREEBOA...
076d9f0c14a8070993039bbda2ffe4d52c8d2273
e590cdf21a6a2123bbb5388b711670e41f31c06f
/Homework4/measles.py
73c2e6a06ef28b26421c7ce66bff9118172ba818
[]
no_license
Certinax/cst383-data-science
0161aa58c2634a8a316e9f22b660493011a24957
a723a387e5390a629e77e6a9d68cd738e1ee93d2
refs/heads/master
2023-01-05T23:31:46.458067
2020-11-06T05:44:25
2020-11-06T05:44:25
205,760,235
0
0
null
null
null
null
UTF-8
Python
false
false
9,686
py
measles.py
# -*- coding: utf-8 -*- """ CST 383, measles simulation homework # Here's a question. Suppose 1% of people have measles, that the # test for measles if 98% accurate if you do have measles, and 98% # accurate if you don't have measles. Then what is the probability # that you have measles, given that you have...
c23bd136991bfb41f153321420c2fcfba0c843f4
47ae0df8f983b051f090875bc71f615e8e98f8c7
/main/run.py
84295fa3b461b3ea4717b594c33d2701d62f7b12
[]
no_license
tungnnt/Midterm-NLP-Homework
a911344ff4dd46bc84633f336d64c87faac07b0c
0e473ea07b067908dbe8a19f4f503c73779be757
refs/heads/master
2023-01-23T00:34:38.005341
2020-11-19T23:01:01
2020-11-19T23:01:01
314,289,320
0
0
null
null
null
null
UTF-8
Python
false
false
9,065
py
run.py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os, pickle, json, ast import pandas as pd from scipy import spatial import numpy as np from scipy import stats from sklearn.model_selection import train_test_split from sklearn import preprocessing from sklearn.svm import LinearSVC from sklearn.metrics import preci...
9fa534664056a8cf9e9a64ccc7d6dd4de2ec0936
cad91ae76d2746a6c28ddda0f33a58f9d461378f
/CUDA-Optimized/FastSpeech/fastspeech/trainer/trainer.py
e9d12ca927b859f1cf55c74faf66564c84d40b48
[]
no_license
NVIDIA/DeepLearningExamples
fe677521e7e2a16e3cb0b77e358f9aab72f8c11a
a5388a45f71a949639b35cc5b990bd130d2d8164
refs/heads/master
2023-08-31T20:57:08.798455
2023-08-23T10:09:12
2023-08-23T10:09:12
131,881,622
11,838
3,124
null
2023-08-28T16:57:33
2018-05-02T17:04:05
Jupyter Notebook
UTF-8
Python
false
false
9,132
py
trainer.py
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditio...
e07bd4cd13209bff8bc1119a619a2954abd52592
97ff9057b63c134ea167304252d10126aa92f25b
/src/Heuristic.py
c9863b05651e50bda4c00ab2ddd7142540f9cbeb
[]
no_license
chengyingyuan/ImageAutoAnnotation
ad8aa465800f8bf687d50167d46151641b8c19ae
d5bfb92f9c2a8c7351bcb14cf32d71c80657fc7f
refs/heads/master
2021-01-16T17:52:52.120420
2017-08-11T10:07:19
2017-08-11T10:07:19
100,018,676
2
0
null
null
null
null
UTF-8
Python
false
false
760
py
Heuristic.py
import time class SequenceHeuristic(object): def __init__(self, minChanges, minDuration, noMotionDelay): self._minChanges = minChanges self._minDuration = minDuration self._noMotionDelay = noMotionDelay self._duration = 0 def isValid(self, image, data): numOfChanges...
8e8c72362dfb1587150aadaa6b8a0aeb77c3641a
6b15f5cab9091792024f8756e2cf0bab554bcfe2
/Tedwebsite/blog/migrations/0006_auto_20200111_1520.py
a7f8b6b8c3acd4541c94d05b372c426e355063bc
[]
no_license
Jaikishan30/Website
df1f4e853af99099bc4de70dd61ee50c3df6bfe0
bb3467dc4283de02592c80836b001308d77f2172
refs/heads/master
2023-08-29T07:23:02.276495
2021-10-25T18:32:47
2021-10-25T18:32:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
396
py
0006_auto_20200111_1520.py
# Generated by Django 3.0.1 on 2020-01-11 09:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0005_auto_20200111_1513'), ] operations = [ migrations.AlterField( model_name='post', name='photo', ...
b7007778ea9dfac3af8c31d66d32d8157dc0d69b
a368dc2d013e09c14a902780271755ae94c2320e
/translate/test.py
0020ad0e8ad6aa774b4c118f235a5046e335c75d
[]
no_license
zhuguangfei/ReadBookAi
cd86a36f05236dfe8a87b441ae7855a2727a4c2f
3a18b015b13b0dc1c407768e3b262cc3b0d3ce7c
refs/heads/master
2020-03-26T03:48:10.261760
2018-09-17T14:10:30
2018-09-17T14:10:30
144,471,353
0
0
null
null
null
null
UTF-8
Python
false
false
3,125
py
test.py
# -*- coding:utf-8 -*- import os import numpy as np import tensorflow as tf from translate import datautil import seq2seq_model _buckets = [] convo_hist_limit = 1 max_source_length = 1 max_target_length = 2 flags = tf.app.flags FLAGS = flags.FLAGS tf.reset_default_graph max_train_data_size = 0 data_dir = 'datacn...
943e8be7a9ee4e494c0a42e1368555f3df3de897
3f41bafb8012f264605724dbe9b1a6ee11a1f767
/source/classification/ResNet50_augmentation.py
f75dfa44261873530b8b202f619aa15230993c45
[]
no_license
pervin0527/pervinco
6d0c9aad8dbf6d944960b2e2c963054d1d91b29a
9ced846438130341726e31954cc7e45a887281ef
refs/heads/master
2022-11-26T02:11:00.848871
2022-11-24T00:56:14
2022-11-24T00:56:14
223,062,903
5
3
null
null
null
null
UTF-8
Python
false
false
11,307
py
ResNet50_augmentation.py
import pathlib, random, cv2 import tensorflow as tf import numpy as np import tensorflow.keras.backend as K import albumentations as A from matplotlib import pyplot as plt from functools import partial from sklearn.model_selection import train_test_split # GPU setup gpus = tf.config.experimental.list_physical_devices(...
a238175c94764137bfc8fac1ce67436016b1591a
56939ddccf722903ef6cc7ebc6aa85ee6b80b6dc
/orders/admin.py
e62f80d137a3b22a01fcc9ddb9478fc4d01d389c
[]
no_license
Colibri7/felix_shop
d519b038446a49fc33cb1ce1c9108291e949c848
d9d635ad7797505503b56df2b36b4333bfa86b31
refs/heads/master
2023-07-21T03:30:36.714548
2021-08-30T11:03:53
2021-08-30T11:03:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
admin.py
from django.contrib import admin from orders.models import OrderModel @admin.register(OrderModel) class OrderAdmin(admin.ModelAdmin): list_display = ['first_name', 'phone']
36c0dedd20245be73002336c9960c01be6541f65
850b63a103520e36a35796ff872714a7eff94672
/finding_donors-master/ensamble.py
84322826cb902ce2a670f02b95e9bea43d3d2580
[]
no_license
Aleric-w/mechine-learning
335502552a124068646db0f7c16726e47dee1c7e
2ea0d27add9c6480ea58e0e55249b77ada39b40e
refs/heads/master
2022-11-07T14:27:26.491218
2018-05-10T06:15:22
2018-05-10T06:15:22
108,705,538
0
1
null
2022-11-01T22:11:59
2017-10-29T04:39:59
HTML
UTF-8
Python
false
false
6,332
py
ensamble.py
# -*- coding: utf-8 -*- """ Created on Tue Dec 19 10:56:56 2017 @author: wangpeng02 """ # -*- coding: utf-8 -*- """ Created on Fri Nov 17 14:53:00 2017 @author: wangpeng02 """ import warnings import numpy as np import pandas as pd from scipy.sparse import coo_matrix from scipy.sparse import csr_matrix from sklearn...
7e479024d2ca87ab5a5656a2cba90a59a3a05493
1e82343083300fc6a8d81c2b0628b7f22a254a0a
/06_test/my_calc_class.py
10e06745e6b1c69a2f1f0a6c7ae746aca3fb1edd
[ "BSD-2-Clause" ]
permissive
zzz0072/Python_Exercises
e6b6e71550551c3d35844a2c85f35209252f815f
9918aa8197a77ef237e5e60306c7785eca5cb1d3
refs/heads/master
2020-12-24T14:27:10.216002
2015-01-11T02:04:57
2015-01-11T02:04:57
18,864,894
0
0
null
null
null
null
UTF-8
Python
false
false
929
py
my_calc_class.py
#/usr/bin/env python import unittest class my_calc: def my_add(self, x, y): return x + y def my_sub(self, x, y): return x - y def my_mul(self, x, y): return x * y def my_div(self, x, y): return x / y class test_func(unittest.TestCase): def setUp(self): self.m...
274a3d9a530a06a545295060158265a32b1aa63c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03146/s950522444.py
b3fd5c69547e0df1a869b51e215550a6cf2b0dd8
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
166
py
s950522444.py
s = int(input()) a = [s] for i in range(1, 1000001): s = s//2 if s%2 == 0 else 3*s+1 if s in a: print(i+1) break else: a.append(s)
fdbdb91dd2739dd642e46f5c41257f44021469a6
3e3e6a3cc350210d16395642880b7e3a2c6bd0a1
/CV/Histogram.py
54fdde745564887a4ff18c49379a4eb72c622f40
[]
no_license
HeeEun9/Project
3e73f0e11ce728d64b0e16a0edb2ad45ef33d67d
307fed09a47ba4ee743be8155f30d1a85f6b80ed
refs/heads/main
2023-07-03T07:45:00.735618
2021-08-07T12:33:21
2021-08-07T12:33:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,104
py
Histogram.py
# 히스토그램 정규화 import cv2 import numpy as np import matplotlib.pylab as plt #그레이 스케일로 영상 읽기 img = cv2.imread('tem4.jpg') #직접 연산한 정규화 img_f = img.astype(np.float32) img_norm = ((img_f - img_f.min()) * (255) / (img_f.max() - img_f.min())) img_norm = img_norm.astype(np.uint8) #OpenCV를 이용한 정규화 img_norm2 = cv2.normalize(im...
056ad9ed1f075dfe39c7566bdd4f31f0673adbce
16f3db6edef00d245030505c78b41cb4be70022f
/clientimage.py
58aa8aff926164176a7e9aa17b16d62add067f83
[]
no_license
putriwuland17/python_flask
2275ef6dd65dec294263f452d6d31f1fde33c127
6344a81cc1f92617b114c0cc7940e0a8d4e8b85b
refs/heads/main
2023-04-28T07:58:18.699749
2021-05-22T16:07:53
2021-05-22T16:07:53
369,827,885
0
0
null
null
null
null
UTF-8
Python
false
false
171
py
clientimage.py
import requests resp = requests.post("http://localhost:5000/predict", files={"file":open('C://olahcitra//kelinci.jpg','rb')}) print(resp.json())
af4c9f34ebbf93743c8aab0a76b800d24e4661bb
9b6ef63b59ae5641836def92a93ccff78f958183
/tests/tdynamic_bwt.py
d053010f67dfed3e27ca37e1702487792bbdb1f6
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
disa-mhembere/Guided-Assembler
ba4bfa58a86f5ed5895048258be215c2f230e6c6
af9eae6e4fbf38507fc413fb7d5613e9ab558766
refs/heads/master
2021-01-16T21:52:11.556773
2014-05-06T16:02:34
2014-05-06T16:02:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,704
py
tdynamic_bwt.py
#!/usr/bin/python # tdynamic_bwt.py # Created by Disa Mhembere on 2013-12-06. # Email: disa@jhu.edu # Copyright (c) 2013. All rights reserved. from src.dynamic_bwt import dBWT def test_move_row(): """ Test the functionality of dbwt moverow """ print "Testing dBWT.moverow ..." f = dBWT("CGTAACGT") print "Be...
5acf99afe3974eeb820206317aa5ae30c7bc69da
2084fd977b41983d3e7039e55dccabc3140c123b
/scripts/slave/recipe_modules/chromite/__init__.py
61c65372ad71a089d4e64d57c68d6aca2e38e661
[ "BSD-3-Clause" ]
permissive
eunchong/build
14c0404ac3a9821bd88513afbc315ab18dbdd0ab
4e95fd33456e552bfaf7d94f7d04b19273d1c534
refs/heads/master
2021-01-21T14:06:13.614193
2016-05-28T05:12:07
2016-05-28T05:12:07
55,701,415
0
1
NOASSERTION
2020-07-23T11:05:04
2016-04-07T14:29:36
Python
UTF-8
Python
false
false
237
py
__init__.py
DEPS = [ 'depot_tools/bot_update', 'depot_tools/gclient', 'depot_tools/git', 'gitiles', 'recipe_engine/json', 'recipe_engine/path', 'recipe_engine/properties', 'recipe_engine/python', 'repo', 'recipe_engine/step', ]
3fbf250e8ed5fc37353193b7930aa92c2dce9c85
020a43e781c19f0e6177c0b1be2a4ad75fb9bfbf
/wce_triage/backend/disk_portal_instance.py
6455b58d58776e2b73a564fc00fb65a88662b874
[ "MIT" ]
permissive
ntai/wce-triage-v2
f2a29a93656647eb21c166d260daf3cd8560864e
108802602ab8495b388fc2c8a395608233e19eed
refs/heads/master
2023-08-02T16:25:29.311539
2023-04-08T03:11:38
2023-04-08T03:11:38
187,088,190
3
2
MIT
2023-07-20T15:04:06
2019-05-16T19:20:48
Python
UTF-8
Python
false
false
68
py
disk_portal_instance.py
from ..components.disk import DiskPortal disk_portal = DiskPortal()
7bcd18203068e402c7cb9394eb3359bf7aad559e
72141a527aeca59b2afb68d84f027ecb475a0142
/tull/node.py
0beb908552d2c38a327fd993d3d0f0c33d7e42b6
[]
no_license
borgebj/IN1000-Python
4d4a102032b6d15887d33a889dd029fea500ea1e
ffa686d11116d315dca7962e7a6c3e3767e0d720
refs/heads/master
2021-01-04T04:45:00.223550
2020-12-09T20:06:09
2020-12-09T20:06:09
240,392,581
0
0
null
2020-12-09T20:06:10
2020-02-14T00:00:45
Python
UTF-8
Python
false
false
2,649
py
node.py
## Klasse for representasjon av noder i en dataklynge # class Node: ## Oppretter en node med gitt minne-storrelse og antall prosessorer # @param minne GB minne i den nye noden # @param antPros antall prosessorer i den nye noden def __init__(self, minne, antPros): pass ...
efe7234ef67c823d870ff3710f4f566aabccc96d
ad638c443eb942d5b93cc2ea3a0d88317031a185
/rating_network/predict_classification.py
09e18bbc08fd6c91c89c1e703b6c36cc7c5a4da2
[]
no_license
Spacetoaster/Viewport-CNN
3de4b7cc0649eab14b62f3eb6c972e785749c349
25f73cf45e46a4bbe1a556f3e68f76be587a62dc
refs/heads/master
2021-07-17T10:35:17.936884
2017-10-25T13:13:46
2017-10-25T13:13:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,249
py
predict_classification.py
""" prediction with a trained rating-model (classification) on a tfrecords-file """ import argparse import tensorflow as tf import ratings_reader from networks import * from tf_helper.network import Network import sklearn.metrics import pickle def parseArguments(): parser = argparse.ArgumentParser(description='P...
c65e03f570993723e7a9b9d2721db065f605bfff
2af946f45eaefbb9652428544c2f5cc6fff16f46
/02-Math/math_1.py
63fa0ce0a6ce9c38faca6d7c987c2ed26597e87f
[]
no_license
lmxuwork/dp_demo_code
7bee467b16f68bdf9e3dc28dacd2344c54a71e33
4ef5b08032d8a187c7241496a0805b9bdd0a1367
refs/heads/master
2021-03-10T22:56:28.090374
2020-03-12T05:41:25
2020-03-12T05:41:25
246,492,937
0
0
null
null
null
null
UTF-8
Python
false
false
2,600
py
math_1.py
#第二天: 数学作业 import numpy as np import matplotlib.pyplot as plt import matplotlib # 引入中文字库 matplotlib.rcParams['font.sans-serif'] = 'SimHei' #01 读取数据: “homework.npz” file = np.load("homework.npz") X = file['X'] d = file['d'] #02 预处理:数据中是否存在异常数据,并进行排除, 空。 #03 观察:观察给定数据X与d的形式,并进行绘图 # print("X Shape:{}; d Shape:{}".f...
4fa653c06404baf509870a5941c963eb75223188
05647253a2532b3c2b321e362e534c2533fcfdc3
/QDeblend/gui/dlgSaveCubes.py
d2599d03fcdbed875e46cbe5d606d9f4341c2f28
[ "MIT" ]
permissive
brandherd/QDeblend3D
d5f97ab627285866dec332b77ab596376877af3e
4e195ca027cf9fb65962ce66bf5d1f3e119b4f18
refs/heads/main
2023-02-14T17:29:27.386551
2021-01-08T13:08:00
2021-01-08T13:08:00
326,937,217
0
0
null
null
null
null
UTF-8
Python
false
false
1,746
py
dlgSaveCubes.py
import os from PyQt4.QtCore import * from PyQt4.QtGui import * from QDeblend.ui import ui_dlgSaveCubes class dlgSaveCubes(QDialog, ui_dlgSaveCubes.Ui_dlgSaveCubes): def __init__(self, QSOcube, EELRcube, parent=None): super(dlgSaveCubes, self ).__init__(parent) self.setupUi(self) self.QSOC...
8b43aa281a076b97b5da752aee58b908f8688e6d
b1c1c67921914d2b942fc9c2bec5b1c11f5d0072
/tests/GitLab/test_gitlab_merge_request.py
c70bf870edfc9ea34968d966a51e9df4aecc0b2e
[ "MIT" ]
permissive
theendsofinvention/igit
365ddf7eef0454b12d9a1dbd207915e174de115d
2ae1a60a19fbc3b83191358a1ea7482623050f6e
refs/heads/master
2021-06-11T00:53:28.405637
2020-06-25T08:26:46
2020-06-25T08:26:46
155,460,007
0
0
MIT
2021-03-19T04:24:09
2018-10-30T21:42:15
Python
UTF-8
Python
false
false
7,226
py
test_gitlab_merge_request.py
import os import datetime from IGitt.GitLab import GitLabOAuthToken from IGitt.GitLab.GitLabMergeRequest import GitLabMergeRequest from IGitt.GitLab.GitLabUser import GitLabUser from IGitt.Interfaces import MergeRequestStates from IGitt.GitLab.GitLabProjectMilestone import GitLabProjectMilestone from tests import IGi...
60ad3d652312fc600228cdb5f89ccdf84551d109
da7eb8a9e9d207c481f19f980c7481b727e8ba85
/times.py
d800ce25c23aa668d0e97c608124d36c157b2f3f
[]
no_license
26cs099/suhacodekata
766a3eb4986e9b35d6bd87cc9ebfe67a47dee19d
c60427bd491de28d554ab838a45e6669d72974a6
refs/heads/master
2020-05-23T01:00:55.148526
2019-08-07T10:38:13
2019-08-07T10:38:13
186,580,711
0
0
null
null
null
null
UTF-8
Python
false
false
82
py
times.py
# your code goes here a=str(input()) n=int(input()) for i in range(0,n): print(a)
bdc51a0631ed9c5617d1ecc434e8bf31b8f2a84e
e58a972b9aac2041b1efb70efe64bd4681438efc
/app/models/Inscription.py
bddf95455a42c982961848897580f5c03023253e
[]
no_license
epigraphic-database-heidelberg/linked_open_data
e3afbdc252e94d12b8efe6e60716a3c8fee397d1
a33685f77ba4303f7bcbed8899291d6e9f0bccc9
refs/heads/master
2020-05-09T10:16:06.113621
2020-01-29T09:49:01
2020-01-29T09:49:01
181,034,699
1
0
null
null
null
null
UTF-8
Python
false
false
2,167
py
Inscription.py
from rdflib import Graph from SPARQLWrapper import SPARQLWrapper, JSON class Inscription: def __init__(self, hd_nr, provinz, land, bearbeiter, datum, beleg, **kwargs): prop_defaults = { ...
4e0e92f0c5695e39a59b2bda0df5895d89466661
7cc00759622cfd2616024d6035dda68c2528a72e
/codes/attacker codes/dnsspoof.py
434094ea96bb8180b7732f092047e675666e9a83
[]
no_license
voebe25/NTMIDS
6affeab1bba83a61ab940728d195e4a95ec5f145
b0ffcbf9ff80129ed943f48d25306b5ea6a7befe
refs/heads/master
2021-01-11T16:04:24.748361
2017-01-29T05:09:31
2017-01-29T05:09:31
79,999,610
0
0
null
null
null
null
UTF-8
Python
false
false
977
py
dnsspoof.py
from scapy.all import * hosts = {} for line in open("hostfile.txt","r"): line = line.rstrip("\n") if line: (ip,host) = line.split() hosts[host] = ip def packet_handler(packet): ip = packet.getlayer(IP) udp = packet.getlayer(UDP) dns = packet.getlayer(DNS) if dns.qr == 0 and dns.opcode...
ad2f584ee074116da4537ded1249ece5da7102dc
91c702af361deb5301c7f7f420cd09383480878a
/gastrack/partsplit.py
b0e62aebe06e6443cc43f3379c85492e4b3dd3ce
[ "MIT", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
myinxd/gastrack
88baff1972d21c48cfd5419a0f6136b029c7e28b
da2f7390eace2ba231f6d3b28968be0ca7331a44
refs/heads/master
2021-01-12T11:44:49.618338
2017-11-24T01:17:37
2017-11-24T01:17:37
72,290,045
1
0
null
null
null
null
UTF-8
Python
false
false
5,391
py
partsplit.py
# Copyright (C) 2016 Zhixian MA <zxma_sjtu@qq.com> # MIT license """ This module split simulated galaxy particles hdf5 file into two sub hdf5 files. """ import os import re import h5py import numpy as np class PartSplit: """ The partticle split class Parameters ---------- input_dir: string ...
df77249b0cb3594256ed3b90774a7547d72a8e9c
fb16a2a07ab5ee75cf828655add4b918a93c4597
/algo-2/test_3.py
86d3517bf1f9798e0abc152c6cd8e45c9dd6e534
[]
no_license
felixzhao/WordSegmentation
d04f4728caf79d996bce4ac60e8385ee87a88514
b16bbcbc07a9115e630126e0f25ffba1f3b92e6d
refs/heads/master
2021-01-01T15:59:52.544328
2014-01-23T06:32:29
2014-01-23T06:32:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
302
py
test_3.py
from left_process import * if __name__ == '__main__': s = 'u1 b c'.split() W_d = ['hbc','hb'] C_d = {'u1':['h','u']} Expected = 3 Actual = process_in_s(s, 0, W_d, C_d) print >> log, Actual print >> log, Actual == Expected print Actual print Actual == Expected
f37854fc69420aa5daa8de399f8aaada7a5c4f0f
c98d259c515b573f6f21af0eaddf71b01f5c103d
/viewer_app/tests/test_data_source.py
3990450655529cc96f394710cc620c33104dd8d8
[]
no_license
ArushiJeloka/scouting2020
e12fb0e1f5c7e744c823631f40e6682cf07a9dcd
bf5d2975c69ecf97d8af0e2da0461133710b6fdf
refs/heads/master
2021-01-14T15:40:19.307426
2020-02-24T06:26:44
2020-02-24T06:26:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,316
py
test_data_source.py
import os import os.path import pandas as pd import viewer_app.data_source as va_data_source import viewer_app.oneteam as va_oneteam test_event_name = 'test_event_2' test_season = '2020' test_file_name = r'\data_write_test.pickle' def test_data_source(): data = va_data_source.DataSource(event=test_event_name, ...
0d058955965aeb1719b4c57cdf3728ffa5168992
ae93e168fc26e82d69fc6573b39bc87eaa1a2d40
/code/code1.py
05a92fa35ffaf2f4cd55ffd5dd35023d47c38131
[ "CC0-1.0" ]
permissive
Daniel-M/doconce_demo
2f8a5aa572668042cd027c2380bcd6ab4f606d4e
8466d3ac24d95a9c8c11e69682c2784a70fc69fd
refs/heads/master
2021-06-22T10:47:15.169857
2017-09-07T06:12:54
2017-09-07T06:12:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
80
py
code1.py
total = 0 for number in range(10): total = total + (number + 1) print(total)
dbeea0486aee9bfdf0485dd5dfce4f1bc1cdcd15
69405f722fef7c6d5da88792fa7888eff5e1356c
/blog/views.py
8faa6365f600d94973d74b2b52359955087a21e1
[]
no_license
qiwsir/practice
c646f5ae9c3d17ce4bd28fb5acf8229a93ab34ad
040e1064027e4618fcf1042ea203fdf8ed4fcc17
refs/heads/master
2021-01-19T06:42:25.885371
2016-10-03T13:20:24
2016-10-03T13:20:24
59,896,719
0
0
null
null
null
null
UTF-8
Python
false
false
2,796
py
views.py
from django.shortcuts import render from django.http import HttpResponse from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.db.models import F from django.views.generic.list import ListView from django.views.generic.edit import FormView from django.views.generic.detail import DetailV...
a4b1de4a2fdda195096e181fb92355f562d02f8a
543876fe5e7e13108cdb569af16da8d1630a1717
/ripechilliapp/urls.py
f6201c8d5174aa19222d071a185ba1d7c2405681
[]
no_license
AnasNadeem/ripechilli
bc4e0d4a4e270b413153408e2113077154ad97a0
7c05957e98fd8319d3c93ad4fff34c1c8606ddf3
refs/heads/main
2023-08-12T06:58:38.571754
2021-10-14T09:30:28
2021-10-14T09:30:28
337,769,451
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
urls.py
from django.urls import path from .views import SampleView, WebView, LogoView, AboutView, IndexView, ContactView, intern, mailSendCom urlpatterns = [ path('', IndexView.as_view(), name='Index'), path('webSample/', SampleView.as_view(), name='WebSamples'), path('logo/', LogoView.as_view(), name='Logo'), ...
f38cc00ad82a413b76647c5caa88fe1251c98cc1
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_248/ch5_2020_03_09_10_55_08_754962.py
95daa6ed5a77754b4b3fa033ddf3371c9050dc82
[]
no_license
gabriellaec/desoft-analise-exercicios
b77c6999424c5ce7e44086a12589a0ad43d6adca
01940ab0897aa6005764fc220b900e4d6161d36b
refs/heads/main
2023-01-31T17:19:42.050628
2020-12-16T05:21:31
2020-12-16T05:21:31
306,735,108
0
0
null
null
null
null
UTF-8
Python
false
false
84
py
ch5_2020_03_09_10_55_08_754962.py
def libras_para_kg(x): y=x/2.2046 return y fx=libras_para_kg(1000) print(fx)
3a32beabd1a1590874a868dda28e06a64bd5e0b7
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_201/2816.py
449c4629a7bea879fa2b5163d45823e49c653677
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
2816.py
import heapq def lower_median(t): # lower exclusive # higher inclusive return (t[0]+t[1]+1)/2 def partition(t): lm = lower_median(t) return (t[0],lm-1),(lm,t[1]) def size(t): return t[1]-t[0] T = int(raw_input()) for t in xrange(T): n, k = map(int,raw_input().split(' ')) heap = [(-n,0...
71e1be43326c49aca3c03fcd644e1f3c4c37d7cc
1f289a05064f75a69577be7797db5e23cff31b79
/appengine/swarming/server/task_scheduler_test.py
a917bad15f896a92c675d7ae028d600f666fee32
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
mellowdistrict/luci-py
f7081100e4269b96f8f8f60bd70d20479cd9507c
a2349b78d2dce6aa4e131e6f7afaa202ccd72ea8
refs/heads/master
2020-12-25T22:20:20.957384
2016-04-28T23:45:31
2016-04-28T23:45:31
57,380,794
1
0
null
2016-04-29T11:56:59
2016-04-29T11:56:59
null
UTF-8
Python
false
false
58,397
py
task_scheduler_test.py
#!/usr/bin/env python # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed by the Apache v2.0 license that can be # found in the LICENSE file. import datetime import inspect import logging import os import random import sys import unittest import test_env test_env.setup_test_e...
6b97f2d66fd829668e91f923a50a981c81c40ab6
1a9dc873bff5570831b61d57d0e256e95097ed43
/Controller Modules/screen2.py
ab53c0ba05450794f29a017b435d23071a0019dc
[]
no_license
KastureeK/Mood-based-Music-Recommendation-System
0faefae01a66ff9d4b1c230cc049923b0e207439
d78e29283ca69a0dfb8c6035af4c80eabea39a0a
refs/heads/main
2023-08-23T03:37:27.043275
2021-10-23T09:15:41
2021-10-23T09:15:41
420,348,209
0
1
null
null
null
null
UTF-8
Python
false
false
547
py
screen2.py
from Controls import apiconnect,camera from database import usermood import os,sys from datetime import datetime def camera1(userid): camob = camera.camera() camob.capture("temp.jpg") r = apiconnect.connectandget("temp.jpg") hour = datetime.now() period=hour.hour print r moodob = usermood.a...
0e28235e132f7eba2e1d8992c3759f3f8e745fb1
efdfb4ee822eac81e982dd632fb349722dbefee3
/check_max_player.py
853ee59c44b5a052238979d1b7a21ae5938ab901
[]
no_license
jy-cds/robustRL_LQGames
da0c0ee08f17d21e412d2069e70b4fbd0fdbcc60
7fa29a7cc9a88458b53143608ce6148478ed2aae
refs/heads/master
2023-01-23T22:45:05.497820
2020-11-24T07:08:37
2020-11-24T07:08:37
314,677,353
0
0
null
null
null
null
UTF-8
Python
false
false
1,572
py
check_max_player.py
import numpy as np import scipy.linalg as LA import matplotlib.pyplot as plt from potential import DP_inv, DP,D2P from functions import gradient, proj import statistics # DATA # A = np.array([[0.956488, 0.0816012,-0.0005],[0.0741349, 0.94121, -0.000708383],[0,0,0.132655]]) # B = np.array([[-0.00550808], [-0.096], [0....
3fc42bc85ccf7807fbdc03db9fd7d317494a8fe7
18460831de74f4d0a8d363b4b4967c9f05945432
/tests/unit/aws/test_batch.py
d3e3a452446d5f91fb5cf350b8c9d05a9bba541a
[]
no_license
bitintheskud/python-utils
919c79f055029490c8e0b4b9cdd1a07cf5d339ae
ee9fbf20aa6c25b79af32fab0953ba799cb2a94e
refs/heads/master
2023-01-11T10:03:05.080262
2020-11-17T20:22:20
2020-11-17T20:22:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,305
py
test_batch.py
from unittest import TestCase import botocore.session from botocore.stub import Stubber from qa_python_utils.aws.batch import BatchClient class AWSBatchTest(TestCase): def setUp(self): self.batch_session = botocore.session.get_session().create_client('batch') self.batch_stubber = Stubber(self.ba...
b2e57561fa269bfb7ea8b573368bf74a912308ff
3466f755cae93d2b58e8ee69b00c42b493236dc0
/SQL_local_training/SQLALchemy - NOT WORKING/update_database_SQLITE3.py
1853edce6c04cb9867cacd8df8a78b3b5ca213f6
[]
no_license
Ondrej-Martinek/Dash
6c60d37e449c453bc6bd8732efc254bc90de9df0
d2fef51f65d4b88a87e5e25d9abf763c8504eb90
refs/heads/master
2023-02-18T15:53:49.028805
2021-01-09T18:29:01
2021-01-09T18:29:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,019
py
update_database_SQLITE3.py
import sqlite3 import os import pandas as pd basedir = os.path.dirname(os.path.abspath(__file__)) path = str(basedir)+'/data.db' conn = sqlite3.connect(path) c = conn.cursor() url = 'https://www.cnb.cz/cnb/STAT.ARADY_PKG.VYSTUP?p_period=1&p_sort=1&p_des=50&p_sestuid=1538&p_uka=1%2C2%2C3&p_strid=AAD&p_od=200512&p_do=...
0fc7b60f131f14c518067c3f8bee117547e45d85
cc98f0527bf94a70cf8327b1ee9e1bc66f9f9fde
/delete.py
a48d059686028f1ee295683bd805e355b2faacf6
[]
no_license
radensyarif/Python-MYSQL
a2914a0067fed6b92fb59572c4bfdf6ff050d82f
f7ed9bdc76e8935aa80728ee924ecb43d2071bce
refs/heads/master
2020-04-24T07:27:50.582859
2019-02-21T04:22:55
2019-02-21T04:22:55
171,799,678
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
delete.py
#!/usr/bin/python import MySQLdb as mdb import sys con = mdb.connect('localhost', 'USERNAME MYSQL', 'PASSWORD MYSQL', 'DATABASE MYSQL'); cur = con.cursor() sql = "DELETE FROM `user` WHERE `id` = '%s'" % ("6") try: cur.execute(sql) con.commit() print "Hapus Data Berhasil" print cur._last_executed except: con...