hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
8cc589b6aacef8f45330b91b841767184bdc1a72
1,848
py
Python
preprocessing/twitterData.py
aldifahrezi/NLP_3A
66e1e7fa84bf4af0b0760cf350c43ef75ff72542
[ "Apache-2.0" ]
null
null
null
preprocessing/twitterData.py
aldifahrezi/NLP_3A
66e1e7fa84bf4af0b0760cf350c43ef75ff72542
[ "Apache-2.0" ]
null
null
null
preprocessing/twitterData.py
aldifahrezi/NLP_3A
66e1e7fa84bf4af0b0760cf350c43ef75ff72542
[ "Apache-2.0" ]
null
null
null
import re import csv import nltk """docstring for twitterClean"""
26.782609
71
0.588745
8cc61c995bb4f660479b7eb7a1926b0e87dfaec1
894
py
Python
wwwroot/cgi-bin/NetDict/format_conversion.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
1
2019-04-15T04:23:53.000Z
2019-04-15T04:23:53.000Z
wwwroot/cgi-bin/NetDict/format_conversion.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
null
null
null
wwwroot/cgi-bin/NetDict/format_conversion.py
fenshitianyue/WebDict
fc04133c3921d6c98f31c1e8608b6e1255088a10
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import pymysql import sys reload(sys) sys.setdefaultencoding('utf8') base = {} if __name__ == '__main__': db = pymysql.connect("localhost", "root", "nihao.","Dict", charset = "utf8") cursor = db.cursor() find(cursor) write_file() db.close()
23.526316
80
0.558166
8cc6690d4201d4fa3d78af7391584f7477660468
2,161
py
Python
app/old/results_to_csv-mo.py
jpenney78/usabmx_results
7301ba82c8c24f978d9d2196f6cb4311cb85b033
[ "MIT" ]
null
null
null
app/old/results_to_csv-mo.py
jpenney78/usabmx_results
7301ba82c8c24f978d9d2196f6cb4311cb85b033
[ "MIT" ]
null
null
null
app/old/results_to_csv-mo.py
jpenney78/usabmx_results
7301ba82c8c24f978d9d2196f6cb4311cb85b033
[ "MIT" ]
null
null
null
#!/usr/bin/env python from bs4 import BeautifulSoup import urllib2 import re import sys import collections #with open('grands.html') as f: # soup = BeautifulSoup(f, 'html.parser') url = sys.argv[-1] page = urllib2.urlopen(url) soup = BeautifulSoup(page, 'html.parser') groups = soup.findAll('h4', class_='race-resul...
28.064935
139
0.541416
8cc70168627807f49cf2b5d78f4a3cbbdad4ed64
46
py
Python
bmcs_beam/mxn/scripts/__init__.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
1
2021-05-07T11:10:27.000Z
2021-05-07T11:10:27.000Z
bmcs_beam/mxn/scripts/__init__.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
bmcs_beam/mxn/scripts/__init__.py
bmcs-group/bmcs_beam
b53967d0d0461657ec914a3256ec40f9dcff80d5
[ "MIT" ]
null
null
null
''' Created on Dec 18, 2016 @author: rch '''
7.666667
23
0.586957
8cc8bbe3155b2a365f5d5828b375c3db252991ed
28,180
py
Python
upvote_post_comments_timebased.py
YuurinBee/steemrewarding
3bec63381e3ebe6a5131b4694237e27258251551
[ "MIT" ]
13
2019-01-27T05:53:46.000Z
2021-07-25T23:24:38.000Z
upvote_post_comments_timebased.py
YuurinBee/steemrewarding
3bec63381e3ebe6a5131b4694237e27258251551
[ "MIT" ]
1
2019-08-22T09:29:34.000Z
2019-08-22T09:29:34.000Z
upvote_post_comments_timebased.py
YuurinBee/steemrewarding
3bec63381e3ebe6a5131b4694237e27258251551
[ "MIT" ]
13
2019-04-04T04:17:25.000Z
2021-08-02T12:55:24.000Z
from beem.utils import formatTimeString, resolve_authorperm, construct_authorperm, addTzInfo from beem.nodelist import NodeList from beem.comment import Comment from beem import Steem from beem.account import Account from beem.instance import set_shared_steem_instance from beem.blockchain import Blockchain import time ...
67.740385
282
0.610752
8cca8d879ebb48981faec1a262d979d1e0c2e298
13,639
py
Python
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
1
2021-03-30T20:49:54.000Z
2021-03-30T20:49:54.000Z
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
null
null
null
py_src/mlpiot/proto/scene_description_pb2.py
machine2learn/mlpiot.base
da0b77fccbb0e42d1ddbb6dbc490313433dc7575
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: mlpiot/proto/scene_description.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbo...
45.768456
1,384
0.768311
8ccaa31f1cc37e58d280f157b7d7178e0c6240da
6,385
py
Python
main.py
Gaurav3009/SoftCoputingpROJECT
9ece2cbe9d191308cad4166d9c68bc5bc748532c
[ "CC0-1.0" ]
null
null
null
main.py
Gaurav3009/SoftCoputingpROJECT
9ece2cbe9d191308cad4166d9c68bc5bc748532c
[ "CC0-1.0" ]
null
null
null
main.py
Gaurav3009/SoftCoputingpROJECT
9ece2cbe9d191308cad4166d9c68bc5bc748532c
[ "CC0-1.0" ]
null
null
null
import pygame import random import math import numpy as np from pygame import mixer x = np.array(([723, 123.4000000000003], [121, 133.40000000000038], [586, 125.40000000000032]), dtype=float ) y = np.array(([99], [86], [89]), dtype=float ) # Scaled Units x = x / np.amax ( x, axis=0 ) y = y / 100 # max...
26.168033
109
0.549883
8ccc3f085556e9b031c98cfec64f5d267b519580
3,771
py
Python
include/fetchfile.py
dongniu/cadnano2
6805fe2af856c59b06373c0ee0142ad6bc286262
[ "Unlicense" ]
17
2015-02-07T03:46:49.000Z
2021-09-25T09:23:41.000Z
include/fetchfile.py
scholer/cadnano2
0b8bba1ab3277ac9859ef78615890d351561784c
[ "Unlicense" ]
2
2017-08-22T03:17:16.000Z
2021-07-03T14:42:41.000Z
include/fetchfile.py
scholer/cadnano2
0b8bba1ab3277ac9859ef78615890d351561784c
[ "Unlicense" ]
9
2015-09-06T22:41:38.000Z
2022-03-27T13:57:37.000Z
#!/usr/bin/env python # encoding: utf-8 # The MIT License # # Copyright (c) 2011 Wyss Institute at Harvard University # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, i...
33.669643
79
0.629011
8ccc7527ffc47c5ff344fbc2004901e2de010bf4
242
py
Python
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
null
null
null
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
2
2021-03-25T22:14:36.000Z
2021-06-01T22:51:34.000Z
core/exception.py
simyy/flask_app
ec34a4e939620b2d261364b40e85f8211f8f9e9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8
20.166667
63
0.607438
8cccebd0d964c1db537e29204485613a1e3bfc4a
4,410
py
Python
pyjs/tests/test-report.py
allbuttonspressed/pyjs
c726fdead530eb63ee4763ae15daaa58d84cd58f
[ "ECL-2.0", "Apache-2.0" ]
1
2018-09-19T09:14:16.000Z
2018-09-19T09:14:16.000Z
pyjs/tests/test-report.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
pyjs/tests/test-report.py
andreyvit/pyjamas
1154abe3340a84dba7530b8174aaddecfc1a0944
[ "ECL-2.0", "Apache-2.0" ]
1
2019-11-18T14:17:59.000Z
2019-11-18T14:17:59.000Z
#!/usr/bin/env python import sys import difflib differ = difflib.HtmlDiff() print """ <html> <head> <style> .diff_add { background: #9F9; } .diff_sub { background: #F99; } .diff_chg { background: #FF9; } .diff_header { background: #DDD; padding: 0px 3px; } .diff_next { padding: 0px 3px; } ta...
23.089005
162
0.506576
8ccdb14c011a11d11901d7ef7caff934dda6ac3a
763
py
Python
datasets/pytorch_provider.py
ikhlestov/XNOR-Net
b95a57911858b9d750366c0d9d5e46ab3c7bf220
[ "MIT" ]
13
2017-08-25T07:45:48.000Z
2022-02-06T14:46:37.000Z
datasets/pytorch_provider.py
ikhlestov/XNOR-Net
b95a57911858b9d750366c0d9d5e46ab3c7bf220
[ "MIT" ]
null
null
null
datasets/pytorch_provider.py
ikhlestov/XNOR-Net
b95a57911858b9d750366c0d9d5e46ab3c7bf220
[ "MIT" ]
6
2017-08-10T19:53:09.000Z
2018-04-21T03:31:33.000Z
import torch import torchvision import torchvision.transforms as transforms transform = transforms.Compose( [transforms.ToTensor(), transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))])
28.259259
61
0.686763
8ccf7d8c58166e297f3266ddf7b93c9e740f2087
1,582
py
Python
pymilvus_orm/__init__.py
PahudPlus/pymilvus-orm
78e2e38e71cff92ed6d243dcac85314230ce0fdc
[ "Apache-2.0" ]
null
null
null
pymilvus_orm/__init__.py
PahudPlus/pymilvus-orm
78e2e38e71cff92ed6d243dcac85314230ce0fdc
[ "Apache-2.0" ]
null
null
null
pymilvus_orm/__init__.py
PahudPlus/pymilvus-orm
78e2e38e71cff92ed6d243dcac85314230ce0fdc
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2019-2020 Zilliz. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except # in compliance with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
29.849057
99
0.73641
8ccfac24e337defd5868156614ec3178f582fb2f
1,550
py
Python
test/python/test_preemptive.py
plandes/util
20290b88406c7d4787857a80503af2de92b04cab
[ "MIT" ]
null
null
null
test/python/test_preemptive.py
plandes/util
20290b88406c7d4787857a80503af2de92b04cab
[ "MIT" ]
null
null
null
test/python/test_preemptive.py
plandes/util
20290b88406c7d4787857a80503af2de92b04cab
[ "MIT" ]
null
null
null
from typing import Iterable, Any import unittest from zensols.persist import ReadOnlyStash, PreemptiveStash
28.181818
66
0.589032
8cd077908bea63bee9a58db575f3f5c0a02eb319
2,937
py
Python
scripts/tokenize_corpora.py
Mrpatekful/Pytorch-MT
65c53245a9ab0bf4f5d933a239de1bfd7be79c3f
[ "MIT" ]
7
2018-02-15T10:54:57.000Z
2018-03-07T16:53:35.000Z
scripts/tokenize_corpora.py
Mrpatekful/nmt-BMEVIAUAL01
65c53245a9ab0bf4f5d933a239de1bfd7be79c3f
[ "MIT" ]
null
null
null
scripts/tokenize_corpora.py
Mrpatekful/nmt-BMEVIAUAL01
65c53245a9ab0bf4f5d933a239de1bfd7be79c3f
[ "MIT" ]
null
null
null
""" """ import tqdm import argparse DEFAULT_INPUT = '/media/patrik/1EDB65B8599DD93E/data/eng/test' DEFAULT_OUTPUT = '/media/patrik/1EDB65B8599DD93E/data/eng/test_tok' DEFAULT_MIN = 3 DEFAULT_MAX = 60 if __name__ == '__main__': main()
35.817073
111
0.578141
8cd09fbcc54d1551c8b23bec979629192ae13b6e
4,192
py
Python
linux/lib/python2.7/dist-packages/samba/tests/ntacls.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
3
2015-10-31T10:39:25.000Z
2019-04-27T20:19:33.000Z
linux/lib/python2.7/dist-packages/samba/tests/ntacls.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
null
null
null
linux/lib/python2.7/dist-packages/samba/tests/ntacls.py
nmercier/linux-cross-gcc
a5b0028fd2b72ec036a4725e93ba29d73cb753a6
[ "BSD-3-Clause" ]
null
null
null
# Unix SMB/CIFS implementation. Tests for ntacls manipulation # Copyright (C) Matthieu Patou <mat@matws.net> 2009-2010 # Copyright (C) Andrew Bartlett 2012 # # 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 ...
50.506024
179
0.70062
8cd0f31842c087bd945dcd13f2623103459a5e00
4,930
py
Python
data_filter_azure/data_filter_azure/documentdb_server.py
abhushansahu/contrib
c95f68c9dbb48507a06dab4a070efd892765a3a4
[ "Apache-2.0" ]
238
2017-04-27T20:53:16.000Z
2022-03-29T15:27:58.000Z
data_filter_azure/data_filter_azure/documentdb_server.py
abhushansahu/contrib
c95f68c9dbb48507a06dab4a070efd892765a3a4
[ "Apache-2.0" ]
88
2017-04-26T02:58:57.000Z
2022-03-30T20:05:25.000Z
data_filter_azure/data_filter_azure/documentdb_server.py
abhushansahu/contrib
c95f68c9dbb48507a06dab4a070efd892765a3a4
[ "Apache-2.0" ]
152
2017-04-27T18:28:25.000Z
2022-03-30T21:44:24.000Z
#!/usr/bin/env python import requests import base64 import json from flask import Flask,redirect, jsonify, abort, make_response, g import config from flask_bootstrap import Bootstrap import azure.common from data_filter_azure import opa import azure.cosmos.cosmos_client as cosmos_client app = Flask(__name__) Bootstrap...
28.333333
124
0.539351
8cd2916e88df0cf37c009472aa1b72d1e430bae2
4,310
py
Python
Database_Development/RunningSQLBackEnd/training.py
data-intelligence-analysis/dataworks_scripts
5148c33c42bef6d092fb1466b8970cb6961b97f0
[ "Apache-2.0" ]
3
2020-03-24T17:19:02.000Z
2020-04-28T05:18:50.000Z
Database_Development/RunningSQLBackEnd/training.py
data-intelligence-analysis/dataworks_scripts
5148c33c42bef6d092fb1466b8970cb6961b97f0
[ "Apache-2.0" ]
1
2021-06-29T17:19:03.000Z
2021-06-29T17:19:03.000Z
Database_Development/RunningSQLBackEnd/training.py
data-intelligence-analysis/dataworks_scripts
5148c33c42bef6d092fb1466b8970cb6961b97f0
[ "Apache-2.0" ]
null
null
null
from sqlite3 import connect ##Dennis Osafo print("\nWelcome To Training Application!!!") indicator = True while indicator ==True: show_menu() option = input("Select an option....") if option =="1": try: add_student() except: print("Error: function is unsuccessful") ...
32.651515
224
0.578422
8cd34bcdcf56fd743fbd7490bad25836dd4f32f3
1,723
py
Python
res_mods/mods/packages/xvm_battle/python/battleloading.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
res_mods/mods/packages/xvm_battle/python/battleloading.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
1
2016-04-03T13:31:39.000Z
2016-04-03T16:48:26.000Z
res_mods/mods/packages/xvm_battle/python/battleloading.py
peterbartha/ImmunoMod
cbf8cd49893d7082a347c1f72c0e39480869318a
[ "MIT" ]
null
null
null
""" XVM (c) www.modxvm.com 2013-2017 """ ##################################################################### # imports import cgi import re import traceback import BigWorld from gui.Scaleform.daapi.view.battle.shared.battle_loading import BattleLoading from xfw import * from xvm_main.python.logger import * impor...
35.163265
112
0.608241
8cd36528540894945ddf92821a73804199e18f8f
3,021
py
Python
CV1_assignment3/problem1_Loesung.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
CV1_assignment3/problem1_Loesung.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
CV1_assignment3/problem1_Loesung.py
cjy513203427/CV_Assignment
ac837dcd67f0d237017ef0124210bf9da0151487
[ "MIT" ]
null
null
null
import numpy as np from scipy.ndimage import convolve, maximum_filter def gauss2d(sigma, fsize): """ Create a 2D Gaussian filter Args: sigma: width of the Gaussian filter fsize: (w, h) dimensions of the filter Returns: *normalized* Gaussian filter as (h, w) np.array """ m,...
26.5
92
0.604436
8cd3b7d036cac276f28d4d2b1c5af63da168cbbd
15,856
py
Python
assignment2/comp411/classifiers/fc_net.py
kukalbriiwa7/COMP511_CS231n
1537e98cdca43fad906e56a22f48d884523414b0
[ "MIT" ]
1
2022-02-06T19:35:05.000Z
2022-02-06T19:35:05.000Z
assignment2/comp411/classifiers/fc_net.py
kukalbriiwa7/COMP511_CS231n
1537e98cdca43fad906e56a22f48d884523414b0
[ "MIT" ]
null
null
null
assignment2/comp411/classifiers/fc_net.py
kukalbriiwa7/COMP511_CS231n
1537e98cdca43fad906e56a22f48d884523414b0
[ "MIT" ]
null
null
null
from builtins import range from builtins import object import numpy as np from comp411.layers import * from comp411.layer_utils import *
50.336508
138
0.48663
8cd402c900cdc390c47cfb466e6d949a84a0cc3b
1,476
py
Python
py/cloud_server_del.py
AlohaPoster/MyActilife_win
7922839b6444f63f87b8f9584ad5d89101fa8432
[ "ISC" ]
null
null
null
py/cloud_server_del.py
AlohaPoster/MyActilife_win
7922839b6444f63f87b8f9584ad5d89101fa8432
[ "ISC" ]
null
null
null
py/cloud_server_del.py
AlohaPoster/MyActilife_win
7922839b6444f63f87b8f9584ad5d89101fa8432
[ "ISC" ]
null
null
null
import os from socket import * from time import ctime HOST = '' PORT = 9733 BUFSIZ = 1024 ADDR = (HOST, PORT) tcpSerSock = socket(AF_INET, SOCK_STREAM) tcpSerSock.bind(ADDR) tcpSerSock.listen(32) while True: print('waiting for connection...') tcpCliSock, addr = tcpSerSock.accept() print ('...
25.016949
54
0.579268
8cd43ca8bd2a786d14de4833789bfb393dcd55d1
1,552
py
Python
setup.py
PureTryOut/pico-wizard
d5ffe9a777a33c5f5ab5772db84315595d19a50a
[ "MIT" ]
11
2021-02-05T13:49:44.000Z
2022-02-24T14:14:46.000Z
setup.py
PureTryOut/pico-wizard
d5ffe9a777a33c5f5ab5772db84315595d19a50a
[ "MIT" ]
26
2021-02-12T17:25:34.000Z
2021-12-30T07:47:18.000Z
setup.py
PureTryOut/pico-wizard
d5ffe9a777a33c5f5ab5772db84315595d19a50a
[ "MIT" ]
6
2021-06-21T17:37:15.000Z
2022-01-15T16:07:47.000Z
# SPDX-FileCopyrightText: 2021 Anupam Basak <anupam.basak27@gmail.com> # # SPDX-License-Identifier: MIT import setuptools setuptools.setup( name="pico-wizard", version="0.1.0", author="Anupam Basak", author_email="anupam.basak27@gmail.com", description="A Post Installation COnfiguration tool", ...
29.846154
77
0.589562
8cd52c1779c479941f4c615d82fabed36c62bce2
6,769
py
Python
modules/weather_forecast_manager.py
algon-320/tenki.py
e1ad137b49f9b93fc350200528a9ccf8de2f1517
[ "MIT" ]
null
null
null
modules/weather_forecast_manager.py
algon-320/tenki.py
e1ad137b49f9b93fc350200528a9ccf8de2f1517
[ "MIT" ]
null
null
null
modules/weather_forecast_manager.py
algon-320/tenki.py
e1ad137b49f9b93fc350200528a9ccf8de2f1517
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import datetime import pickle import lxml.html import urllib.request, urllib.error import re from modules.weather import Weather from modules.print_util import String
44.24183
132
0.626385
8cd675d43aba0a61eff6ca1dd6e1d5350ca4da8d
2,299
py
Python
app/fiftycents/entities/player.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
app/fiftycents/entities/player.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
app/fiftycents/entities/player.py
Cinquiom/fifty-cents-frontend
946f564a87127f5820111321cd48441cc414d277
[ "MIT" ]
null
null
null
import math from collections import Counter from itertools import dropwhile
33.318841
89
0.558504
8cd6adc7013685ced3271a7d83a19d006061f4cb
4,137
py
Python
day03.py
dylanbrodiefafard/aoc2019
fb92517f298c4bfab8be0d615deaa7953aa60c71
[ "MIT" ]
null
null
null
day03.py
dylanbrodiefafard/aoc2019
fb92517f298c4bfab8be0d615deaa7953aa60c71
[ "MIT" ]
null
null
null
day03.py
dylanbrodiefafard/aoc2019
fb92517f298c4bfab8be0d615deaa7953aa60c71
[ "MIT" ]
null
null
null
from util import get_lines if __name__ == '__main__': # Part 1 examples assert minimum_manhatten_distace(make_lines('R75,D30,R83,U83,L12,D49,R71,U7,L72'.split(',')), make_lines('U62,R66,U55,R34,D71,R55,D58,R83'.split(','))) == 159 assert minimum_manhatten_distace...
41.37
110
0.597051
8cd9ed3c436765c3683fb3296f85b163ac9cc4e2
6,162
py
Python
ezflow/models/pwcnet.py
NeelayS/ezflow
b93a48c4adf5021f7eacbfc43220c7efa5ae55cd
[ "MIT" ]
94
2021-11-18T18:31:18.000Z
2022-03-04T02:30:13.000Z
ezflow/models/pwcnet.py
NeelayS/ezflow
b93a48c4adf5021f7eacbfc43220c7efa5ae55cd
[ "MIT" ]
72
2021-11-19T16:59:10.000Z
2022-03-02T14:39:10.000Z
ezflow/models/pwcnet.py
neu-vig/ezflow
1eb6f675e72b1de6db7b35d61ca4ef0082bae890
[ "MIT" ]
5
2021-11-18T18:42:38.000Z
2022-03-03T11:35:26.000Z
import torch import torch.nn as nn import torch.nn.functional as F from ..decoder import ConvDecoder from ..encoder import build_encoder from ..modules import conv, deconv from ..similarity import CorrelationLayer from ..utils import warp from .build import MODEL_REGISTRY
28.009091
112
0.500649
8cda02454cc4767296a2ee587812bf506b372867
1,361
py
Python
setup.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
11
2016-02-08T11:45:26.000Z
2017-05-19T16:07:31.000Z
setup.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
5
2016-02-11T22:11:54.000Z
2016-06-09T20:54:07.000Z
setup.py
hackebrot/cibopath
7b341cb92942a0ed70e21c9e5f23d281a625e30c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import pathlib from setuptools import setup setup( name='cibopath', version='0.1.0', author='Raphael Pierzina', author_email='raphael@hackebrot.de', maintainer='Raphael Pierzina', maintainer_email='raphael@hackebrot.de', license='BSD', url='https://github.com...
26.686275
73
0.61058
8cda297e14662b818246dabf96df5f485117391e
1,448
py
Python
core/tests/test_models.py
maneeshbabu/recipe
8cb02bf524f7676b11ec68fb4e6e518dea6b3456
[ "MIT" ]
null
null
null
core/tests/test_models.py
maneeshbabu/recipe
8cb02bf524f7676b11ec68fb4e6e518dea6b3456
[ "MIT" ]
null
null
null
core/tests/test_models.py
maneeshbabu/recipe
8cb02bf524f7676b11ec68fb4e6e518dea6b3456
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model
37.128205
73
0.619475
8cddfb293ba557275c826d5a51078f1b1456befd
5,980
py
Python
CIF_Assembly_Entry_debug.py
cschlick/cif-assembly
84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382
[ "MIT" ]
null
null
null
CIF_Assembly_Entry_debug.py
cschlick/cif-assembly
84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382
[ "MIT" ]
null
null
null
CIF_Assembly_Entry_debug.py
cschlick/cif-assembly
84c24b6d1dd4c878be8b9fba69d3a0c7e2d81382
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 from mmtbx.ncs.ncs import ncs from phenix.programs import map_symmetry as map_symmetry_program from cctbx.maptbx.segment_and_split_map import run_get_ncs_from_map from iotbx import phil from iotbx.data_manager import DataManager # initialize data manager dm = DataManager() # f...
32.150538
141
0.756355
8cde5b4f2684c24920a0982cb1a8680ed1ad64f4
1,839
py
Python
SanGuoSha/SGS-Official/assets/images/plotters.py
fyabc/GamesDiy
b1d8dbc735a0fde42e7d216932d1d91ea4477176
[ "MIT" ]
null
null
null
SanGuoSha/SGS-Official/assets/images/plotters.py
fyabc/GamesDiy
b1d8dbc735a0fde42e7d216932d1d91ea4477176
[ "MIT" ]
null
null
null
SanGuoSha/SGS-Official/assets/images/plotters.py
fyabc/GamesDiy
b1d8dbc735a0fde42e7d216932d1d91ea4477176
[ "MIT" ]
null
null
null
# coding: utf-8 import matplotlib import matplotlib.pyplot as plt import matplotlib.ticker as mticker import numpy as np def card_num_distribution(): """Plot `Std-CardNumDistribution.png`.""" total = np.fromstring('12 14 12 12 13 12 12 12 12 12 12 14 12', sep=' ') jb = np.fromstring('0 6 6 6 6 8 9 11 11 ...
24.851351
76
0.573681
8cdedf2105a7978025f71cf15096d9366805d58f
1,969
py
Python
tests/test_model/test_tasks/test_tuning.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
1
2021-02-21T00:44:06.000Z
2021-02-21T00:44:06.000Z
tests/test_model/test_tasks/test_tuning.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
22
2021-02-21T16:41:39.000Z
2021-11-27T16:12:33.000Z
tests/test_model/test_tasks/test_tuning.py
ak-gupta/nbaspa
db961717bb23854e0373b7732638021a18d909f5
[ "MIT" ]
null
null
null
"""Test hyperparameter tuning.""" import pytest from nbaspa.model.tasks import ( LifelinesTuning, SegmentData, SurvivalData, XGBoostTuning, ) def test_lifelines_tuning(survivaldata): """Test running hyperparameter tuning with Lifelines.""" train, tune, _ = survivaldata # Drop nulls becaus...
29.833333
95
0.657186
8ce0ee53bb5fb1aa40bed29ff3cb17d7bb85ac52
524
py
Python
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
trace_feature/models/simple_scenario.py
trace-features-bdd/trace_feature
e372b3188d5d77c58789afdb1e39d25e2cf84785
[ "MIT" ]
null
null
null
from trace_feature.models.scenario import Scenario
20.153846
50
0.593511
8ce17a97e863e42c948a052d4db20da7594b80e9
6,771
py
Python
EMLABPY/modules/makefinancialreports.py
TradeRES/toolbox-amiris-emlab
11e6e7101bfbc0d71753e3892d4463c4955d2c34
[ "Unlicense" ]
null
null
null
EMLABPY/modules/makefinancialreports.py
TradeRES/toolbox-amiris-emlab
11e6e7101bfbc0d71753e3892d4463c4955d2c34
[ "Unlicense" ]
null
null
null
EMLABPY/modules/makefinancialreports.py
TradeRES/toolbox-amiris-emlab
11e6e7101bfbc0d71753e3892d4463c4955d2c34
[ "Unlicense" ]
null
null
null
from domain.import_object import * from modules.defaultmodule import DefaultModule from domain.financialReports import FinancialPowerPlantReport from domain.powerplant import PowerPlant from domain.cashflow import CashFlow from domain.technologies import * import logging
69.091837
287
0.742136
8ce2f056900cdd54d05f6b392b7b1f1788adf0cb
3,174
py
Python
guess_number.py
redlinger/Guess_Number
ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7
[ "MIT" ]
null
null
null
guess_number.py
redlinger/Guess_Number
ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7
[ "MIT" ]
null
null
null
guess_number.py
redlinger/Guess_Number
ce0a08159b66b9c5bf8e2c529f02fc2a5f7071b7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Guess a Number between 1 and 100 Setup: The computer generates a random number between 1 and 100. The human's goal is to guess that number in 5 or fewer guesses. """ import random import time # human number guess hum_num = 0 # 5 trys to guess the right number guesses =...
28.854545
82
0.538122
8ce539fa15c7f52a1ef7d6cae1f6f6a6ff2664fe
708
py
Python
3_drop_additional_road_usages_measurements.py
IntroDS2017/SteamingPlayers
992876c09ee6905bf4de1ea94b4ddad6321c8bb8
[ "MIT" ]
null
null
null
3_drop_additional_road_usages_measurements.py
IntroDS2017/SteamingPlayers
992876c09ee6905bf4de1ea94b4ddad6321c8bb8
[ "MIT" ]
null
null
null
3_drop_additional_road_usages_measurements.py
IntroDS2017/SteamingPlayers
992876c09ee6905bf4de1ea94b4ddad6321c8bb8
[ "MIT" ]
null
null
null
import pandas as pd if __name__ == '__main__': main()
23.6
83
0.618644
8ce5694206f368d9b4bcbdda12bca0c06528e33e
4,418
py
Python
tests/application/files/parsers/test_dsv.py
alphagov-mirror/performanceplatform-admin
b63ae42b1276699623ef208b7d6edd3e0ce4ca59
[ "MIT" ]
1
2017-05-14T21:31:33.000Z
2017-05-14T21:31:33.000Z
tests/application/files/parsers/test_dsv.py
alphagov-mirror/performanceplatform-admin
b63ae42b1276699623ef208b7d6edd3e0ce4ca59
[ "MIT" ]
33
2015-01-05T12:23:45.000Z
2021-03-24T10:59:47.000Z
tests/application/files/parsers/test_dsv.py
alphagov-mirror/performanceplatform-admin
b63ae42b1276699623ef208b7d6edd3e0ce4ca59
[ "MIT" ]
4
2017-03-16T15:52:33.000Z
2021-04-10T20:14:53.000Z
# -*- coding: utf-8 -*- from application.files.parsers.dsv import parse_csv, lines from application.files.parsers import ParseError import unittest from cStringIO import StringIO from hamcrest import assert_that, only_contains, is_, contains def _string_io(content, encoding=None): if encoding is not None: ...
25.102273
78
0.564056
8ce591611d3e31d6c0cca2832c1850b12c745822
16,225
py
Python
sdk/python/pulumi_azure/waf/policy.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/waf/policy.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/waf/policy.py
pulumi-bot/pulumi-azure
64d5c30a77b3f4de117068add359ef85293cef8e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables
51.671975
223
0.593467
8ce83244a55e8bc68a89ac42669afba7cecbc338
1,961
py
Python
tests/test__file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
tests/test__file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
tests/test__file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' FileName: test__file_importer.py Author: John Delgado Created Date: 8/7/2020 Version: 1.0 Initial Development This is the testing file for the file_importer script ''' import os import sys import inspect functions_dir = os.path.dirname(os.path.dirname(os.path.abspath(inspect.getfile(inspect.curr...
35.654545
137
0.570117
8ce85526db08143d6f7b5fd20f02640f67bf4970
1,058
py
Python
ProjectEuler/p049.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-01-30T13:21:30.000Z
2018-01-30T13:21:30.000Z
ProjectEuler/p049.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
null
null
null
ProjectEuler/p049.py
TISparta/competitive-programming-solutions
31987d4e67bb874bf15653565c6418b5605a20a8
[ "MIT" ]
1
2018-08-29T13:26:50.000Z
2018-08-29T13:26:50.000Z
# Execution time : 0.440223 seconds # Solution Explanation # We can simplily iterate through all the 4-digits numbers # Then generate all the permutation of this number and check # if the desirable sequence, distinct from the given one, is found import time width = 40 import itertools import math if __name__=="__...
31.117647
87
0.591682
8ce9041cde0ebb1b404234f645d889fe9d5bf906
955
py
Python
session7/Keypad.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
19
2017-09-26T04:37:55.000Z
2021-12-15T05:39:57.000Z
session7/Keypad.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
44
2017-11-22T04:56:26.000Z
2018-03-17T14:30:00.000Z
session7/Keypad.py
rezafari/raspberry
e6720780f3c65ee1809040fc538f793fe44f0111
[ "MIT" ]
21
2017-09-23T05:25:59.000Z
2021-05-31T10:24:49.000Z
###################################################################### # Keypad.py # # This program read matrix keypad and print label of pressed button ###################################################################### import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) rows = [17, 27, 22, 18] cols...
23.292683
70
0.479581
8cea1e3a37d9a781638564690e38de965b9f82ad
106
py
Python
apps.py
qcoumes/django-dummy-app
e53266e4128cfada992e0d5938083603b25c4e84
[ "MIT" ]
null
null
null
apps.py
qcoumes/django-dummy-app
e53266e4128cfada992e0d5938083603b25c4e84
[ "MIT" ]
null
null
null
apps.py
qcoumes/django-dummy-app
e53266e4128cfada992e0d5938083603b25c4e84
[ "MIT" ]
null
null
null
from django.apps import AppConfig
15.142857
38
0.783019
8ceb714b7a4d53f34b6d75b19bb0ad8dddc83171
2,236
py
Python
src/VulnSituation/DownloadLinuxKernel.py
LeoneChen/VulnSituation
155e1849e2d13ef12068c9474efe760ba917844a
[ "Apache-2.0" ]
null
null
null
src/VulnSituation/DownloadLinuxKernel.py
LeoneChen/VulnSituation
155e1849e2d13ef12068c9474efe760ba917844a
[ "Apache-2.0" ]
null
null
null
src/VulnSituation/DownloadLinuxKernel.py
LeoneChen/VulnSituation
155e1849e2d13ef12068c9474efe760ba917844a
[ "Apache-2.0" ]
null
null
null
# Author: 14281055 Liheng Chen CIT BJTU # File Name: DownloadLinuxKernel.py import Repository import random import bs4 import os import re if __name__ == '__main__': download_linux_kernel(r'D:\Linux Kernel\All Zip', r'v\d+\.(\d+|x)')
43.843137
107
0.576029
8cec8ca187df1c877444afc96cfcd6107c908805
3,950
py
Python
v7/upgrade_metadata/upgrade_metadata.py
MattiooFR/plugins
90a686609fb5be2e83221c1f0e8fce18cb2b6021
[ "MIT" ]
53
2015-08-14T20:28:05.000Z
2021-06-02T00:38:23.000Z
v7/upgrade_metadata/upgrade_metadata.py
MattiooFR/plugins
90a686609fb5be2e83221c1f0e8fce18cb2b6021
[ "MIT" ]
280
2015-01-10T15:57:44.000Z
2022-03-27T20:47:08.000Z
v7/upgrade_metadata/upgrade_metadata.py
MattiooFR/plugins
90a686609fb5be2e83221c1f0e8fce18cb2b6021
[ "MIT" ]
93
2015-01-26T19:39:02.000Z
2022-03-24T17:12:42.000Z
# -*- coding: utf-8 -*- # Copyright 20142015, Chris Warrick. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the # Software without restriction, including without limitation # the rights to use, copy, ...
41.145833
112
0.580253
8ceeb04c27c60808e7308fa7e85058c9b847f524
9,118
py
Python
code/visualization/visualizer.py
JRMfer/GangRivalry
c621ec5d5e19de08a750800e27a62a942c2237b1
[ "MIT" ]
null
null
null
code/visualization/visualizer.py
JRMfer/GangRivalry
c621ec5d5e19de08a750800e27a62a942c2237b1
[ "MIT" ]
null
null
null
code/visualization/visualizer.py
JRMfer/GangRivalry
c621ec5d5e19de08a750800e27a62a942c2237b1
[ "MIT" ]
1
2020-02-09T16:17:26.000Z
2020-02-09T16:17:26.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ This script contains functions to visualize the development of the statistics over the total iterations per simulation and it contains functions to plot an arbitrary graph and all the graphs generated by all the simulations for a given human mobility algorithm. """ ...
40.167401
80
0.645427
8cef6e357eeb4cff94f77de03b2338959c11b5e2
1,347
py
Python
numpytorch/losses.py
Samyak2/numpytorch
b508c8c2169c6c94f5bee915a12beff0790da5f8
[ "MIT" ]
2
2021-04-14T07:14:50.000Z
2021-04-14T17:22:55.000Z
numpytorch/losses.py
Samyak2/numpytorch
b508c8c2169c6c94f5bee915a12beff0790da5f8
[ "MIT" ]
null
null
null
numpytorch/losses.py
Samyak2/numpytorch
b508c8c2169c6c94f5bee915a12beff0790da5f8
[ "MIT" ]
null
null
null
import numpy as np EPS = 1e-06
32.071429
83
0.639941
8cf00123ba48dd1a021707f90e31886c363b468e
6,202
py
Python
appengine/monorail/features/test/hotlistcreate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/monorail/features/test/hotlistcreate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/monorail/features/test/hotlistcreate_test.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd """Unit test for Hotlist creation servlet.""" from __future__ import print_function from __futu...
41.624161
77
0.685263
8cf0b1c18c5375055000e88060d4e4637f6ec81e
3,123
py
Python
PocketBeagle/Grove/Start_the_Party.py
zhanglongqi/cloud9-examples
db73b843a807361153a00e17a703206202cf73f8
[ "MIT" ]
37
2019-05-30T16:40:01.000Z
2021-11-29T10:34:36.000Z
PocketBeagle/Grove/Start_the_Party.py
silver2row/cloud9-examples
741198a2b7a3c625fc4d877bdc5f60949ddf724d
[ "MIT" ]
35
2019-04-03T17:35:26.000Z
2022-03-23T12:28:08.000Z
PocketBeagle/Grove/Start_the_Party.py
silver2row/cloud9-examples
741198a2b7a3c625fc4d877bdc5f60949ddf724d
[ "MIT" ]
40
2019-05-13T00:25:42.000Z
2022-03-23T05:13:15.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- # [Grove - 12 Key Capacitive I2C Touch Sensor V2] # (http://wiki.seeedstudio.com/Grove-12_Key_Capacitive_I2C_Touch_Sensor_V2-MPR121/) on I2C2 # [Grove Speaker](http://wiki.seeedstudio.com/Grove-Speaker/) # on UART2 # [Grove - Chainable RGB LED X 2](http://wiki.seeedstudi...
34.7
105
0.540826
8cf1600e5f77551d25752ca057e78d7b4032d079
518
py
Python
host/rdmem.py
flowswitch/phison
d9415a8d5c62354d09cd6410754c9d8bb65e164f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
host/rdmem.py
flowswitch/phison
d9415a8d5c62354d09cd6410754c9d8bb65e164f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
host/rdmem.py
flowswitch/phison
d9415a8d5c62354d09cd6410754c9d8bb65e164f
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
"""read XDATA memory""" import sys import PyScsi as drv import Phison as ph from util import BinFile if len(sys.argv)!=4: sys.exit("Read chip internal memory\nUsage: %s <file> <addr> <size>\nExample: %s ram.bin 0 0x10000" % (sys.argv[0], sys.argv[0])) addr = int(sys.argv[2], 0) size = int(sys.argv[3], 0) disk = ph....
23.545455
130
0.69305
8cf1b63f0ee0ab41801ca7a509ae506ce2873aca
2,672
py
Python
zapper/context.py
alfuananzo/zapper
8a87e332ebdad8803058793c036a1426b9240b98
[ "MIT" ]
1
2019-05-07T09:56:49.000Z
2019-05-07T09:56:49.000Z
zapper/context.py
alfuananzo/zapper
8a87e332ebdad8803058793c036a1426b9240b98
[ "MIT" ]
null
null
null
zapper/context.py
alfuananzo/zapper
8a87e332ebdad8803058793c036a1426b9240b98
[ "MIT" ]
null
null
null
#TODO: Kill scans if overwrite is set. from zapper.helpers import report_to_cli
44.533333
188
0.611901
8cf42e6fb01de06121f96bde9ffd0a653f7105a5
2,718
py
Python
absl/flags/tests/argparse_flags_test_helper.py
alexhagen/abseil-py
240f85b0fa45acd95ca0157146245e7fb5453337
[ "Apache-2.0" ]
1,969
2017-04-24T22:21:29.000Z
2022-03-30T13:27:09.000Z
absl/flags/tests/argparse_flags_test_helper.py
alexhagen/abseil-py
240f85b0fa45acd95ca0157146245e7fb5453337
[ "Apache-2.0" ]
111
2017-09-27T05:45:53.000Z
2022-03-29T16:48:49.000Z
third_party/abseil/py/absl/flags/tests/argparse_flags_test_helper.py
InclusiveTechNU/v11
d32357bf52f5d6cf4ad3002235d1144f1f347d96
[ "Apache-2.0" ]
240
2017-09-26T01:18:10.000Z
2022-03-31T06:24:40.000Z
# Copyright 2018 The Abseil Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
30.2
75
0.74209
8cf584f118c9548fb028818f411c0541e04b73fa
580
py
Python
utf8.py
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
3
2019-05-04T03:26:02.000Z
2019-08-29T01:20:44.000Z
utf8.py
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
null
null
null
utf8.py
softarts/oj
2f51f360a7a6c49e865461755aec2f3a7e721b9e
[ "Apache-2.0" ]
null
null
null
import glob, codecs #configfiles = glob.glob(r'C:\Users\sam\Desktop\**\*.txt', recursive=True) #fn="ojcpp/company/amazon_memo.txt" for fn in glob.glob("ojcpp/company/*.cpp",recursive=True): print(fn) ret=True try: data = open(fn, "r", encoding="gbk").read() open(fn, "w", encoding...
20.714286
74
0.525862
8cf7205decff15f66c7b82d0402b54b1a61e8918
476
py
Python
setup.py
Emrys-Merlin/monitor_airquality
40a734c8a2cc24d826b61f26e863a5c0913b7106
[ "MIT" ]
null
null
null
setup.py
Emrys-Merlin/monitor_airquality
40a734c8a2cc24d826b61f26e863a5c0913b7106
[ "MIT" ]
null
null
null
setup.py
Emrys-Merlin/monitor_airquality
40a734c8a2cc24d826b61f26e863a5c0913b7106
[ "MIT" ]
null
null
null
from importlib.metadata import entry_points from setuptools import find_packages, setup setup( name='monitor_airquality', version='0.1', url='', author='Tim Adler', author_email='tim+github@emrys-merlin.de', description='Measure airquality using some sensors connected to a raspberry pi', p...
26.444444
84
0.712185
8cf74af9632143ddcfbd48ed22ead989c9000359
8,557
py
Python
os_migrate/plugins/module_utils/reference.py
mrnold/os-migrate
2aa04ad4c2cf6d1e8abb24f845c7c9009fcd58fd
[ "Apache-2.0" ]
null
null
null
os_migrate/plugins/module_utils/reference.py
mrnold/os-migrate
2aa04ad4c2cf6d1e8abb24f845c7c9009fcd58fd
[ "Apache-2.0" ]
null
null
null
os_migrate/plugins/module_utils/reference.py
mrnold/os-migrate
2aa04ad4c2cf6d1e8abb24f845c7c9009fcd58fd
[ "Apache-2.0" ]
null
null
null
from __future__ import (absolute_import, division, print_function) __metaclass__ = type def network_name(conn, id_, required=True): """Fetch name of Network identified by ID `id_`. Use OpenStack SDK connection `conn` to fetch the info. If `required`, ensure the fetch is successful. Returns: the name,...
35.213992
81
0.714736
8cf86bfb6eec122aaf737782baf668c53d57edad
363
py
Python
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
Task1E.py
dan7267/1a-flood-risk-project-93
d95cee987f5673d637626e1804f719371a25daa8
[ "MIT" ]
null
null
null
from floodsystem.stationdata import MonitoringStation from floodsystem.geo import rivers_by_station_number def run(): """Requirements for Task1E""" rivers_station_number = rivers_by_station_number(MonitoringStation, 9) print(rivers_station_number) if __name__ == "__main__": print("*** Task 1E: CUED P...
30.25
74
0.752066
8cf8d6f44600fb995dd1f41219e9e6510db6f3d8
998
py
Python
test/test_util.py
konfiger/konfiger-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
4
2019-09-25T02:18:43.000Z
2020-01-21T19:16:05.000Z
test/test_util.py
keyvaluedb/key-value-db-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
null
null
null
test/test_util.py
keyvaluedb/key-value-db-python
294fb2fed8a46f7e242825fc0b723b0ff7132c8c
[ "MIT" ]
null
null
null
#!python import unittest import os import sys sys.path.insert(0, os.getcwd()) from src import escape_string, un_escape_string if __name__ == '__main__': unittest.main()
33.266667
64
0.655311
8cfbc2509615626710ec962d624548fc6620ce7a
16,310
py
Python
src/insulaudit/devices/clmm/proto.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
1
2020-11-28T13:23:58.000Z
2020-11-28T13:23:58.000Z
src/insulaudit/devices/clmm/proto.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
null
null
null
src/insulaudit/devices/clmm/proto.py
kakoni/insulaudit
18fe0802bafe5764882ac4e65e472fdc840baa45
[ "MIT" ]
null
null
null
import struct import sys import serial import time import logging from pprint import pprint, pformat import doctest from insulaudit.core import Command from insulaudit.clmm.usbstick import * from insulaudit import lib #logging.basicConfig( stream=sys.stdout ) log = logging.getLogger(__name__) #log.setLevel( logging.D...
25.604396
91
0.62385
8cfc14873a8e3827bbe126057b1811e7460db3fe
300
py
Python
examples/interrupts.py
nodesign/electripy
6765dccd93b4d71e77ae258f560a1e2eb6645128
[ "Unlicense", "MIT" ]
3
2017-06-20T11:50:47.000Z
2019-10-28T15:14:53.000Z
examples/interrupts.py
nodesign/electripy
6765dccd93b4d71e77ae258f560a1e2eb6645128
[ "Unlicense", "MIT" ]
null
null
null
examples/interrupts.py
nodesign/electripy
6765dccd93b4d71e77ae258f560a1e2eb6645128
[ "Unlicense", "MIT" ]
null
null
null
from lib.electripy import * print "Board name : ", getBoardName() print "INTERRUPTS TEST **************************" attachInterrupt(25, CHANGE, hello) for a in range(0,15): delay(1000) print a detachInterrupt(25) stop()
17.647059
50
0.63
8cfc82cb9558f36c262b30e77dc6228a934d7ef7
15,691
py
Python
Contents/Code/interface/menu.py
tomerblecher/Sub-Zero.bundle
afc7614095fe6b0e1d15f40671f8cc1de37b4402
[ "MIT" ]
2
2020-12-06T19:40:10.000Z
2020-12-26T13:20:10.000Z
Contents/Code/interface/menu.py
PlexIL/Sub-Zero.bundle
e74af913f13b390fc5271def4fdc55066358d3e3
[ "MIT" ]
null
null
null
Contents/Code/interface/menu.py
PlexIL/Sub-Zero.bundle
e74af913f13b390fc5271def4fdc55066358d3e3
[ "MIT" ]
null
null
null
# coding=utf-8 import locale import logging import os import platform import traceback import logger import copy from requests import HTTPError from item_details import ItemDetailsMenu from refresh_item import RefreshItem from menu_helpers import add_incl_excl_options, dig_tree, set_refresh_menu_state, \ default_...
41.510582
132
0.636734
8cfca3b3f7b05a6aebdc8eea726b3a320cf8a4ca
7,643
py
Python
gsicrawler_pipeline.py
antoniofll/sefarad4.0-testing
1b50f479ee503e5e23345ab0388eb6c2608ab73d
[ "Apache-2.0" ]
null
null
null
gsicrawler_pipeline.py
antoniofll/sefarad4.0-testing
1b50f479ee503e5e23345ab0388eb6c2608ab73d
[ "Apache-2.0" ]
null
null
null
gsicrawler_pipeline.py
antoniofll/sefarad4.0-testing
1b50f479ee503e5e23345ab0388eb6c2608ab73d
[ "Apache-2.0" ]
null
null
null
import luigi from luigi import configuration from luigi.s3 import S3Target, S3PathTask import threading from time import sleep import os import json import imp import random import datetime import uuid from bottle import route, run, template, static_file, response, request, install import luigi import urllib2 pendin...
33.230435
114
0.697501
8cfdf25e9a8b70f9400ed44ee8c791ade7d45ab5
1,117
py
Python
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
6
2016-08-20T23:39:42.000Z
2020-11-06T23:08:03.000Z
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
null
null
null
farnsworth/peewee_extensions.py
mechaphish/farnsworth
7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3
[ "BSD-2-Clause" ]
5
2016-08-21T13:16:00.000Z
2020-11-06T23:08:17.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from peewee import Field, SQL import itertools """Extend Peewee basic types."""
28.641026
82
0.642793
8cfdfa798899384c0733d181291fe22066a3493e
3,461
py
Python
interprete/src/models/graphcodebert/model.py
serjtroshin/PLBART
58e5de3041a2fc8b98e54648c6489fb3c23db9cb
[ "MIT" ]
null
null
null
interprete/src/models/graphcodebert/model.py
serjtroshin/PLBART
58e5de3041a2fc8b98e54648c6489fb3c23db9cb
[ "MIT" ]
null
null
null
interprete/src/models/graphcodebert/model.py
serjtroshin/PLBART
58e5de3041a2fc8b98e54648c6489fb3c23db9cb
[ "MIT" ]
null
null
null
from pathlib import Path from typing import List import torch from transformers import AutoModel, AutoTokenizer from interprete.src.models.model import Model, ModelOutput from interprete.src.models.utils import to_cpu
33.601942
102
0.546952
5065da5be5ef82985ad4ecf2e734a4a164b47ddc
2,170
py
Python
src/core/game.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
src/core/game.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
src/core/game.py
Swartz-42/Irale_Game_Py
c29412ffb3e77aa5837b743c5e2f439a2c021940
[ "BSD-2-Clause" ]
null
null
null
import pygame from src.entities import Player from src.utils import DialogBox from src.map import MapManager
27.468354
78
0.552074
506778d35138226ccfa52203c940b8202f3138b6
6,776
py
Python
diagnnose/models/transformer_lm.py
Kalsir/diagNNose
06363ffe8050f792c8e6bfd8c13e51c68d327f32
[ "MIT" ]
null
null
null
diagnnose/models/transformer_lm.py
Kalsir/diagNNose
06363ffe8050f792c8e6bfd8c13e51c68d327f32
[ "MIT" ]
null
null
null
diagnnose/models/transformer_lm.py
Kalsir/diagNNose
06363ffe8050f792c8e6bfd8c13e51c68d327f32
[ "MIT" ]
null
null
null
from functools import reduce from typing import List, Optional, Union import torch from torch import Tensor from transformers import ( AutoModel, AutoModelForCausalLM, AutoModelForMaskedLM, AutoModelForQuestionAnswering, AutoModelForSequenceClassification, AutoModelForTokenClassification, D...
35.47644
86
0.643152
506906ff6a85d3dd74305ee68d4ad5ec97a8dca5
5,216
py
Python
usbcan/somebus.py
laigui/usbcan
a58e8f4a7d757fdadc4dd57a039cd4afa016d585
[ "MIT" ]
null
null
null
usbcan/somebus.py
laigui/usbcan
a58e8f4a7d757fdadc4dd57a039cd4afa016d585
[ "MIT" ]
null
null
null
usbcan/somebus.py
laigui/usbcan
a58e8f4a7d757fdadc4dd57a039cd4afa016d585
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' somebus.py: Somebus USBCAN-II adaptor driver class. Copyright (C) 2019 Laigui Qin <laigui@gmail.com>''' from ctypes import *
31.612121
89
0.551189
50695771cffd15a76d764cc359fe32d149466b8a
2,285
py
Python
PyFlow/Ui/StyleSheetEditor.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
7
2018-06-24T15:55:00.000Z
2021-07-13T08:11:25.000Z
PyFlow/Ui/StyleSheetEditor.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
32
2019-02-18T20:47:46.000Z
2019-05-30T12:51:10.000Z
PyFlow/Ui/StyleSheetEditor.py
pedroCabrera/PyFlow
8b439d9b47fff450e91c09d40c7b286e88cb624f
[ "MIT" ]
5
2019-02-19T23:26:21.000Z
2020-12-23T00:32:59.000Z
from Qt import QtWidgets from Qt import QtCore from widgets.pc_HueSlider import pc_HueSlider,pc_GradientSlider if __name__ == '__main__': import sys sys.path.append("..") import stylesheet else: from .. import stylesheet from .. import resources if __name__ == '__main__': import sys app = QtWidgets.QApplicati...
29.675325
71
0.760175
5069c552bceb85ec98f646d7fca3218a5cca5f2d
1,511
gyp
Python
test/win/compiler-flags/calling-convention.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
test/win/compiler-flags/calling-convention.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
1,432
2017-06-21T04:08:48.000Z
2020-08-25T16:21:15.000Z
test/win/compiler-flags/calling-convention.gyp
chlorm-forks/gyp
a8921fcaab1a18c8cf7e4ab09ceb940e336918ec
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
# Copyright (c) 2014 Google Inc. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { 'target_name': 'test_cdecl', 'type': 'loadable_module', 'msvs_settings': { 'VCCLCompilerTool': { 'Calling...
22.552239
72
0.483786
506a7ef933c52555e333134521cbf1974676bc2c
1,417
py
Python
integrationtest/vm/virtualrouter/volume/test_add_volume.py
sherry546/zstack-woodpecker
54a37459f2d72ce6820974feaa6eb55772c3d2ce
[ "Apache-2.0" ]
2
2016-03-23T08:45:44.000Z
2017-06-26T02:40:46.000Z
integrationtest/vm/virtualrouter/volume/test_add_volume.py
KevinDavidMitnick/zstack-woodpecker
96257faaf3c362168d008bdb47002025ad669b24
[ "Apache-2.0" ]
null
null
null
integrationtest/vm/virtualrouter/volume/test_add_volume.py
KevinDavidMitnick/zstack-woodpecker
96257faaf3c362168d008bdb47002025ad669b24
[ "Apache-2.0" ]
2
2020-03-12T03:11:28.000Z
2021-07-26T01:57:58.000Z
''' @author: Youyk ''' import zstackwoodpecker.test_util as test_util import zstackwoodpecker.test_lib as test_lib import zstackwoodpecker.test_state as test_state import os test_stub = test_lib.lib_get_test_stub() test_obj_dict = test_state.TestStateDict() #Will be called only if exception happens in te...
28.918367
99
0.723359
506c907cacd0c8e8e93832785451ebe1451a8d30
175
py
Python
malpi/dkwm/gym_envs/__init__.py
Bleyddyn/malpi
9315f19366bd56da12c6dc7a84d830bbec530753
[ "MIT" ]
5
2017-03-27T22:15:54.000Z
2022-01-19T23:46:46.000Z
malpi/dkwm/gym_envs/__init__.py
Bleyddyn/malpi
9315f19366bd56da12c6dc7a84d830bbec530753
[ "MIT" ]
10
2017-01-19T19:22:06.000Z
2022-02-27T21:29:50.000Z
malpi/dkwm/gym_envs/__init__.py
Bleyddyn/malpi
9315f19366bd56da12c6dc7a84d830bbec530753
[ "MIT" ]
null
null
null
from gym.envs.registration import register from malpi.dkwm.gym_envs.dkwm_env import DKWMEnv register( id='dkwm-v0', entry_point='malpi.dkwm.gym_envs:DKWMEnv', )
19.444444
48
0.742857
506c9a44405c77c7273d7106b363a07835a96fae
814
py
Python
ProjectEuler100/Problem_003.py
shiv-1998/EulerProject
f10a7cc935a9cf9be45b639056a229b262b8709e
[ "MIT" ]
null
null
null
ProjectEuler100/Problem_003.py
shiv-1998/EulerProject
f10a7cc935a9cf9be45b639056a229b262b8709e
[ "MIT" ]
null
null
null
ProjectEuler100/Problem_003.py
shiv-1998/EulerProject
f10a7cc935a9cf9be45b639056a229b262b8709e
[ "MIT" ]
null
null
null
#!/bin/python3 import sys import math t = int(input().strip()) for a0 in range(t): n = int(input().strip()) if isPrime(n): print(n) else: factors = [] upperLimit = math.ceil(math.sqrt(n)) + 1 for i in range(2,upperLimit): if n%i==0: factors.appen...
24.666667
81
0.486486
506d74f909789d8ddf4cf808fbde73c70bc1832a
9,579
py
Python
opcua/__init__.py
minix1234/hacore_opcua
b77d1611416ebc6cc823562f81d758915672aa49
[ "MIT" ]
4
2021-01-10T21:13:30.000Z
2021-11-13T09:22:48.000Z
opcua/__init__.py
minix1234/hacore_opcua
b77d1611416ebc6cc823562f81d758915672aa49
[ "MIT" ]
7
2021-03-06T05:14:26.000Z
2021-12-29T04:38:46.000Z
opcua/__init__.py
minix1234/hacore_opcua
b77d1611416ebc6cc823562f81d758915672aa49
[ "MIT" ]
null
null
null
"""Support for OPCUA""" import logging import voluptuous as vol from opcua import Client, ua from homeassistant.const import ( ATTR_STATE, CONF_URL, CONF_NAME, CONF_TIMEOUT, CONF_USERNAME, CONF_PASSWORD, EVENT_HOMEASSISTANT_STOP, EVENT_HOMEASSISTANT_START, ) import homeassistant.hel...
28.679641
161
0.637854
506ec8d37920dc02fb0964cd084a15f385c1f491
2,210
py
Python
pysnmp-with-texts/RBT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/RBT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/RBT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module RBT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RBT-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:18:46 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)...
88.4
505
0.776923
506f3419eb908bd049908e74833faca71688b303
1,160
py
Python
fixture/take_datetime.py
dondemonz/audit_lite
754f4fef15fbd8db5c6c420dbfa6bd3ece39a50a
[ "Apache-2.0" ]
null
null
null
fixture/take_datetime.py
dondemonz/audit_lite
754f4fef15fbd8db5c6c420dbfa6bd3ece39a50a
[ "Apache-2.0" ]
null
null
null
fixture/take_datetime.py
dondemonz/audit_lite
754f4fef15fbd8db5c6c420dbfa6bd3ece39a50a
[ "Apache-2.0" ]
null
null
null
import datetime as dt from datetime import timedelta
33.142857
68
0.627586
50705e4a528d8b646477227beb32216708a0b850
3,894
py
Python
shelly-static-ip.py
asillye/shelly-static-ip
2f697b081f9ea10393686fd7f243ea3de8cfca20
[ "MIT" ]
null
null
null
shelly-static-ip.py
asillye/shelly-static-ip
2f697b081f9ea10393686fd7f243ea3de8cfca20
[ "MIT" ]
null
null
null
shelly-static-ip.py
asillye/shelly-static-ip
2f697b081f9ea10393686fd7f243ea3de8cfca20
[ "MIT" ]
null
null
null
import threading import traceback import logging import requests from json.decoder import JSONDecodeError from ping3 import ping logging.basicConfig(level=logging.INFO) GATEWAY_IP = "192.168.100.1" STATIC_IP_MIN = 200 STATIC_IP_MAX = 254 lastDot = GATEWAY_IP.rfind(".") ipAddressBase = GATEWAY_IP[0:lastDot+1] threadL...
33.86087
137
0.642527
5070624cc56ad0773dad1ee66cbdce5a6d58ebcf
743
py
Python
src/problems/other/nearest_square.py
E1mir/PySandbox
44b39b98a41add433f0815cd3cde4d7554629eea
[ "MIT" ]
null
null
null
src/problems/other/nearest_square.py
E1mir/PySandbox
44b39b98a41add433f0815cd3cde4d7554629eea
[ "MIT" ]
null
null
null
src/problems/other/nearest_square.py
E1mir/PySandbox
44b39b98a41add433f0815cd3cde4d7554629eea
[ "MIT" ]
null
null
null
if __name__ == '__main__': a = solution(99898) print(a) a = best_solution(19) print(a)
15.808511
37
0.442799
5070e419f2d08a1bc9a7ca9e0d7ce7f4c5f2424a
1,503
py
Python
src/tarski/fstrips/hybrid/differential_constraints.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
29
2018-11-26T20:31:04.000Z
2021-12-29T11:08:40.000Z
src/tarski/fstrips/hybrid/differential_constraints.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
101
2018-06-07T13:10:01.000Z
2022-03-11T11:54:00.000Z
src/tarski/fstrips/hybrid/differential_constraints.py
phoeft670/tarski
7d955e535fbbca012bfd1a12402b97febc6b35b9
[ "Apache-2.0" ]
18
2018-11-01T22:44:39.000Z
2022-02-28T04:57:15.000Z
from ...syntax import BuiltinFunctionSymbol, CompoundTerm from . import errors as err
35.785714
108
0.596806
507245b633d156f4473e06ba288a5567ea2cdb8d
5,915
py
Python
imix/models/encoder/lcgnencoder.py
linxi1158/iMIX
af87a17275f02c94932bb2e29f132a84db812002
[ "Apache-2.0" ]
23
2021-06-26T08:45:19.000Z
2022-03-02T02:13:33.000Z
imix/models/encoder/lcgnencoder.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
null
null
null
imix/models/encoder/lcgnencoder.py
XChuanLee/iMIX
99898de97ef8b45462ca1d6bf2542e423a73d769
[ "Apache-2.0" ]
9
2021-06-10T02:36:20.000Z
2021-11-09T02:18:16.000Z
import numpy as np import torch.nn.functional as F from torch import Tensor from typing import Tuple from ..builder import ENCODER import torch.nn as nn import torch
43.175182
119
0.669653
5072a03141c6bb10b8a98835580689e3de8cd922
8,947
py
Python
USB/python/test-usb2020.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
100
2016-11-08T15:41:43.000Z
2022-02-20T19:37:32.000Z
USB/python/test-usb2020.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
37
2017-01-05T17:48:14.000Z
2022-01-06T17:43:27.000Z
USB/python/test-usb2020.py
wjasper/Linix_Drivers
9c5443f3c9d249f341b6b8580929f8cdbdba4079
[ "JasPer-2.0" ]
65
2016-12-20T07:03:44.000Z
2022-03-14T21:48:35.000Z
#! /usr/bin/python3 # # Copyright (c) 2020 Warren J. Jasper <wjasper@ncsu.edu> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) a...
36.222672
126
0.579077
50732e512e8aa60eef305eb3f7a68cdf0138b721
1,186
py
Python
archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
archive/lym_project/treeano-master/benchmarks/fractional_max_pooling.py
peterdonnelly1/u24_lymphocyte
dff7ceed404c38582feb81aa9b8a55d80ada0f77
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import numpy as np import theano import theano.tensor as T import treeano.nodes as tn from treeano.sandbox.nodes import fmp fX = theano.config.floatX # TODO change me node = "fmp2" compute_grad = True if node == "mp": n = tn.MaxPool2DNode("mp", pool_size=(2, 2)) elif node == "fmp": n = fmp.DisjointPseudorando...
21.178571
78
0.559022
507377bdb80d620ea7bb76b4c3004a6064e282e7
1,271
py
Python
warranty.py
TannerFilip/dell-warranty
4118154c13b52f66a0a8e37f89abe2ca793f50ba
[ "Unlicense" ]
null
null
null
warranty.py
TannerFilip/dell-warranty
4118154c13b52f66a0a8e37f89abe2ca793f50ba
[ "Unlicense" ]
null
null
null
warranty.py
TannerFilip/dell-warranty
4118154c13b52f66a0a8e37f89abe2ca793f50ba
[ "Unlicense" ]
null
null
null
#!/bin/python3 ''' USAGE: $ python warranty.py list.txt 1. Set "apikey" to the API key obtained from Dell TechDirect. 2. Create file with serial numbers, one per line, no line endings ''' import time import requests import fileinput import sys fileName = sys.argv[1] api_url = 'https://sandbo...
29.55814
132
0.576711
507554c410c6294385578ca1eb9a80f4ffa123e6
683
py
Python
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
3
2020-03-20T20:04:37.000Z
2021-08-23T20:11:10.000Z
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
2
2019-06-10T08:02:05.000Z
2019-06-10T08:02:22.000Z
tests/telemetry/decorators_test.py
trevorgrayson/telemetry
efeca1b2062f40a2557f2c030dc687f546f3c60b
[ "MIT" ]
null
null
null
from pytest import raises import telemetry REPORT_NAME = 'some.key' meter = telemetry.get_telemeter(__name__)
18.459459
42
0.645681
5075a5097a61b674035f729519e126cb8f5c9b76
15,683
py
Python
SVGPs/kernels.py
vincentadam87/SVGPs
0de1194bf0f24997148dfce0cd6fbffae16fb3bc
[ "Apache-2.0" ]
3
2017-09-28T21:02:58.000Z
2018-02-06T17:58:48.000Z
SVGPs/kernels.py
vincentadam87/SVGPs
0de1194bf0f24997148dfce0cd6fbffae16fb3bc
[ "Apache-2.0" ]
null
null
null
SVGPs/kernels.py
vincentadam87/SVGPs
0de1194bf0f24997148dfce0cd6fbffae16fb3bc
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 James Hensman, alexggmatthews # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
38.723457
124
0.58184
5078031a29f9c615ac065fdda79ac390f846ff12
1,708
py
Python
setup.py
schoenemeyer/pyheatmagic
c7e1dbaf1ff01fc990cd519f93449cae20fc2bab
[ "MIT" ]
null
null
null
setup.py
schoenemeyer/pyheatmagic
c7e1dbaf1ff01fc990cd519f93449cae20fc2bab
[ "MIT" ]
null
null
null
setup.py
schoenemeyer/pyheatmagic
c7e1dbaf1ff01fc990cd519f93449cae20fc2bab
[ "MIT" ]
null
null
null
#!/usr/bin/env python try: from setuptools import setup except ImportError: from distutils.core import setup from os import path here = path.abspath(path.dirname(__file__)) # Get the long description from the README file with open(path.join(here, "README.rst")) as f: long_description = f.read() setup( ...
27.548387
71
0.597775
507808c6821aee8867cf4c8684a2d08868e253a3
1,104
py
Python
certificator/meetup/__init__.py
lamenezes/certificator
fdb3d6f31499da8705de5453b8f55c0d313761bd
[ "MIT" ]
19
2017-09-26T14:03:33.000Z
2021-09-11T18:18:53.000Z
certificator/meetup/__init__.py
lamenezes/certificator
fdb3d6f31499da8705de5453b8f55c0d313761bd
[ "MIT" ]
12
2017-10-01T20:10:51.000Z
2019-05-22T01:39:48.000Z
certificator/meetup/__init__.py
lamenezes/certificator
fdb3d6f31499da8705de5453b8f55c0d313761bd
[ "MIT" ]
5
2017-10-24T22:14:26.000Z
2021-09-11T18:18:55.000Z
from datetime import datetime as dt from .client import MeetupClient from ..certificator import BaseCertificator from .models import Event
32.470588
85
0.624094
507882446718b2c00a42bfdd52f4470e8480586d
5,583
py
Python
kolab/yk/yk2.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
null
null
null
kolab/yk/yk2.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
1
2021-11-14T05:38:27.000Z
2021-11-14T05:38:27.000Z
kolab/yk/yk2.py
KuramitsuLab/kolab
91fa4bae4a440a15291ba2d2690e4e335cbfd21e
[ "MIT" ]
7
2020-11-02T13:05:44.000Z
2022-01-09T11:06:04.000Z
from os import read import random import sys import pegtree as pg import argparse import csv from pegtree.optimizer import optimize peg = pg.grammar('yk.tpeg') parse = pg.generate(peg) parser = argparse.ArgumentParser(description='yk for Parameter Handling') parser.add_argument('--notConv', action='store_true') # ...
32.649123
111
0.506538
5078b6e119c9edbe09ab52c04f0e4fca017f3a0f
3,491
py
Python
Lesson_6_Homework.py
verafes/python_training
3cf989e5924d40f78f218de323c07efa85f2edcf
[ "Apache-2.0" ]
null
null
null
Lesson_6_Homework.py
verafes/python_training
3cf989e5924d40f78f218de323c07efa85f2edcf
[ "Apache-2.0" ]
null
null
null
Lesson_6_Homework.py
verafes/python_training
3cf989e5924d40f78f218de323c07efa85f2edcf
[ "Apache-2.0" ]
null
null
null
# Homework #6. Loops print("--- Task #1. 10 monkeys") # Task #1. Write a program that output the following string: "1 monkey 2 monkeys ... 10 monkeys". for x in range(1, 11): if x == 1: monkey = f"{x} monkey " else: monkey = monkey + f"{x} monkeys " print(monkey.strip()) print("\n--- Task #2. Countdow...
33.247619
274
0.630765
5078d56ccc790f70f1e43a28737794a0f83dfcac
1,022
py
Python
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
creel_portal/api/filters/FN125Tag_Filter.py
AdamCottrill/CreelPortal
5ec867c4f11b4231c112e8209116b6b96c2830ec
[ "MIT" ]
null
null
null
import django_filters from .filter_utils import ValueInFilter from ...models import FN125_Tag from .FishAttr_Filter import FishAttrFilters
30.969697
74
0.736791
50798cd80915d992ba6dd1be2547207b24526dd0
858
py
Python
testing/test_file_path.py
xapple/autopaths
4b9bdf220454c38d53c90e2375c00eee036dd02b
[ "MIT" ]
null
null
null
testing/test_file_path.py
xapple/autopaths
4b9bdf220454c38d53c90e2375c00eee036dd02b
[ "MIT" ]
null
null
null
testing/test_file_path.py
xapple/autopaths
4b9bdf220454c38d53c90e2375c00eee036dd02b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Some simple tests for the autopaths package. You can run this file like this: ipython -i -- ~/repos/autopaths/test/test_file_path.py """ # Built-in modules # import os, inspect # Get current directory (works always) # file_name = os.path.abspath((inspect.stack()...
26
79
0.564103
507ab70263733fd377475d2677b804a7e98a6466
350
py
Python
RecoEgamma/EgammaPhotonProducers/python/propOppoMomentumWithMaterialForElectrons_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
RecoEgamma/EgammaPhotonProducers/python/propOppoMomentumWithMaterialForElectrons_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
RecoEgamma/EgammaPhotonProducers/python/propOppoMomentumWithMaterialForElectrons_cfi.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms import TrackingTools.MaterialEffects.OppositeMaterialPropagator_cfi #PropagatorWithMaterialESProducer oppositeToMomElePropagator = TrackingTools.MaterialEffects.OppositeMaterialPropagator_cfi.OppositeMaterialPropagator.clone( Mass = 0.000511, ComponentName = '...
38.888889
123
0.845714
507af7b7c926d5ad374babb7e525c9985c6d28d6
155
py
Python
test/__init__.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
112
2015-02-21T15:56:34.000Z
2022-02-22T12:10:26.000Z
test/__init__.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
64
2015-01-22T12:40:11.000Z
2021-12-27T19:15:14.000Z
test/__init__.py
gjhiggins/rdflib-sqlalchemy
d4c057934cd2675083d3df943103bdffb20341d4
[ "BSD-3-Clause" ]
28
2015-06-22T08:06:58.000Z
2022-02-16T11:17:49.000Z
from rdflib import plugin from rdflib import store plugin.register( "SQLAlchemy", store.Store, "rdflib_sqlalchemy.store", "SQLAlchemy", )
15.5
30
0.703226
507b62f01d2d7eb84fda5bfb12a25df2f50e5d9b
943
py
Python
Others/jsc/jsc2019-qual/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/jsc/jsc2019-qual/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/jsc/jsc2019-qual/b.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- if __name__ == '__main__': main()
19.645833
67
0.448568
507cca4ec63870b93d1cdafab433d17c43eeaf55
1,494
py
Python
Python-Programs/dicord.py-bot-suggest-commands/main.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
71
2021-09-30T11:25:12.000Z
2021-10-03T11:33:22.000Z
Python-Programs/dicord.py-bot-suggest-commands/main.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
186
2021-09-30T12:25:16.000Z
2021-10-03T13:45:04.000Z
Python-Programs/dicord.py-bot-suggest-commands/main.py
adityaverma121/Simple-Programs
8450560b97f89e0fa3da16a623ad35c0b26409c9
[ "MIT" ]
385
2021-09-30T11:34:23.000Z
2021-10-03T13:41:00.000Z
import difflib import discord from discord.ext import commands from discord.ext.commands import CommandNotFound intents = discord.Intents.all() client = commands.Bot(command_prefix="+", intents=intents, help_command=None) async def send_command_suggestion(ctx: commands.Context, command_name: str) -> None: """...
28.730769
88
0.678715
507e76ba862e5ec623301b68c6d97748d8e7260c
2,898
py
Python
hummingbot/connector/exchange/bitfinex/bitfinex_api_user_stream_data_source.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
37
2020-07-08T03:44:26.000Z
2022-01-16T12:35:26.000Z
hummingbot/connector/exchange/bitfinex/bitfinex_api_user_stream_data_source.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
17
2022-01-28T14:19:30.000Z
2022-03-31T08:54:28.000Z
hummingbot/connector/exchange/bitfinex/bitfinex_api_user_stream_data_source.py
joedomino874/hummingbot
cb3ee5a30a2feb0a55ceca9d200c59662d7e3057
[ "Apache-2.0" ]
17
2021-04-07T21:29:46.000Z
2022-02-03T02:01:04.000Z
import asyncio import logging import time from typing import Optional, List from hummingbot.core.data_type.user_stream_tracker_data_source import \ UserStreamTrackerDataSource from hummingbot.logger import HummingbotLogger from hummingbot.connector.exchange.bitfinex.bitfinex_order_book import BitfinexOrderBook fro...
37.153846
117
0.677709
5080d44c3782fcef3563b3dbf70986c2e7c13739
283
py
Python
test_mersenne.py
Crulzor/algorithms-python-intro-ex
b3c10eff978a2f0f20e41c6d5aba24746ec07076
[ "Apache-2.0" ]
null
null
null
test_mersenne.py
Crulzor/algorithms-python-intro-ex
b3c10eff978a2f0f20e41c6d5aba24746ec07076
[ "Apache-2.0" ]
null
null
null
test_mersenne.py
Crulzor/algorithms-python-intro-ex
b3c10eff978a2f0f20e41c6d5aba24746ec07076
[ "Apache-2.0" ]
null
null
null
from mersenne import generatePotentialMP, isPrime
25.727273
49
0.710247
50817a3d79676d6cf698802c15669fffcdb668b3
18,873
py
Python
sim21/provider/base.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
7
2021-08-23T18:46:27.000Z
2022-01-26T07:10:22.000Z
sim21/provider/base.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
null
null
null
sim21/provider/base.py
kpatvt/sim21
4cbbfcbef6371d3dc5404429545e003a48c69ba5
[ "Artistic-2.0" ]
null
null
null
import math import sys import numpy as np from numpy import ndarray from sim21.data import chemsep from sim21.data.chemsep_consts import GAS_CONSTANT from numba import njit from sim21.provider.generic import calc_ig_props from sim21.provider.flash.basic import basic_flash_temp_press_2phase from sim21.provider.flash.i...
45.808252
128
0.612303
5081e2e48236509a27ddba158c1b708d27b5b395
2,516
py
Python
server/routers/auth.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
server/routers/auth.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
server/routers/auth.py
CraftyChimera/nittfest-site
71754a0f282dff247e9b5ef8bc992718c6643576
[ "MIT" ]
null
null
null
""" Auth route """ import requests from fastapi import APIRouter, HTTPException from fastapi.param_functions import Depends from sqlalchemy.orm import Session from config.database import get_database from config.logger import logger from config.settings import settings from server.controllers.auth import get_departme...
30.682927
78
0.595787
50826185ee7d341557b552bde864d1a94b521ad3
3,480
py
Python
isc_dhcp_leases/test_lease6.py
dholl/python-isc-dhcp-leases
7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced
[ "MIT" ]
111
2015-02-11T21:36:40.000Z
2022-03-18T13:36:12.000Z
isc_dhcp_leases/test_lease6.py
dholl/python-isc-dhcp-leases
7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced
[ "MIT" ]
36
2015-05-05T12:04:07.000Z
2021-06-17T12:58:30.000Z
isc_dhcp_leases/test_lease6.py
dholl/python-isc-dhcp-leases
7bd07a3a4a7965bd7a6e0a45de7b30914e1bbced
[ "MIT" ]
52
2015-05-02T19:31:20.000Z
2022-03-18T13:36:29.000Z
import datetime from unittest import TestCase from isc_dhcp_leases.iscdhcpleases import Lease6, utc from freezegun import freeze_time __author__ = 'Martijn Braam <martijn@brixit.nl>'
43.5
107
0.60977
5082b9694adff95b4f7e54e0b6bed0eb02d39395
7,599
py
Python
dril_pack/dril.py
RuohanW/il_baseline_fork
824d5117e573292e707d648b087f1e10253cc8d6
[ "MIT" ]
null
null
null
dril_pack/dril.py
RuohanW/il_baseline_fork
824d5117e573292e707d648b087f1e10253cc8d6
[ "MIT" ]
null
null
null
dril_pack/dril.py
RuohanW/il_baseline_fork
824d5117e573292e707d648b087f1e10253cc8d6
[ "MIT" ]
null
null
null
import os import numpy as np import torch import gym import pandas as pd from stable_baselines3.common.running_mean_std import RunningMeanStd from collections import defaultdict from torch.utils.data import DataLoader, TensorDataset # This file creates the reward function used by dril. Both reinforcement algorithms...
44.964497
115
0.614818
5086e67eb9871f894ec3e82717bcf87e2d9b440a
20,226
py
Python
graphlearn/python/values.py
hansugu/graph-learn
d20edf7734cc0246a7e38dd8c553237b04c6b897
[ "Apache-2.0" ]
1
2020-03-30T07:49:22.000Z
2020-03-30T07:49:22.000Z
graphlearn/python/values.py
Sunsj2014/graph-learn
7bbffceed2c69a7acf903d80ee5bbc7e3fec6ca1
[ "Apache-2.0" ]
null
null
null
graphlearn/python/values.py
Sunsj2014/graph-learn
7bbffceed2c69a7acf903d80ee5bbc7e3fec6ca1
[ "Apache-2.0" ]
1
2020-08-10T08:25:52.000Z
2020-08-10T08:25:52.000Z
# Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ...
30.278443
88
0.60442
50871214482998dd46fb289bdd14022510cc1714
10,360
py
Python
.github/scripts/version_number_update.py
wattch/FreeRTOS
52cabc06846daef817959b800650e251a5e2aafb
[ "MIT" ]
null
null
null
.github/scripts/version_number_update.py
wattch/FreeRTOS
52cabc06846daef817959b800650e251a5e2aafb
[ "MIT" ]
3
2020-09-18T00:55:54.000Z
2020-10-30T02:32:16.000Z
.github/scripts/version_number_update.py
wattch/FreeRTOS
52cabc06846daef817959b800650e251a5e2aafb
[ "MIT" ]
null
null
null
import os import re import argparse from collections import defaultdict _AFR_COMPONENTS = [ 'demos', 'freertos_kernel', os.path.join('libraries','abstractions','ble_hal'), os.path.join('libraries','abstractions','common_io'), os.path.join('libraries','abstractions','pkcs11'), os.path.join('lib...
41.94332
145
0.584653
50879439035ca2e6d3397d74ace1320560aeb002
2,232
py
Python
Medium/452.MinimumNumberofArrowstoBurstBalloons.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
39
2020-07-04T11:15:13.000Z
2022-02-04T22:33:42.000Z
Medium/452.MinimumNumberofArrowstoBurstBalloons.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
1
2020-07-15T11:53:37.000Z
2020-07-15T11:53:37.000Z
Medium/452.MinimumNumberofArrowstoBurstBalloons.py
YuriSpiridonov/LeetCode
2dfcc9c71466ffa2ebc1c89e461ddfca92e2e781
[ "MIT" ]
20
2020-07-14T19:12:53.000Z
2022-03-02T06:28:17.000Z
""" There are some spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the horizontal diameter. Since it's horizontal, y-coordinates don't matter, and hence the x-coordinates of start and end of the diameter suffice. The start is al...
33.818182
118
0.59991