hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
d1c48b5c347d67ffd046cdeddd8592dec9342813
1,926
py
Python
tests/unit_tests/crud/test_base.py
Georgi2704/vidpit-authentication
521505a3b4e77db512227688558dab5605822626
[ "Apache-2.0" ]
16
2021-06-08T05:47:59.000Z
2022-01-29T22:39:16.000Z
tests/unit_tests/crud/test_base.py
Georgi2704/vidpit-authentication
521505a3b4e77db512227688558dab5605822626
[ "Apache-2.0" ]
6
2021-09-30T14:45:37.000Z
2022-01-28T13:27:00.000Z
tests/unit_tests/crud/test_base.py
Georgi2704/vidpit-authentication
521505a3b4e77db512227688558dab5605822626
[ "Apache-2.0" ]
3
2021-06-24T14:13:36.000Z
2022-01-29T22:39:32.000Z
from server import crud def test_filter(product_1, product_2): result, content_range = crud.product_crud.get_multi(filter_parameters=["name:duct 1"], sort_parameters=[]) assert len(result) == 1 assert content_range == "products 0-100/1" # Will not filter but return all results result, content_ran...
39.306122
114
0.711838
0
0
0
0
0
0
0
0
458
0.237799
d1c51e9ef39f4d3feeb1e7c57ea1abdeb37eef20
18,815
py
Python
src/data/SatelitteSolarPowerSystemV4.py
j1996/EPM_UCC
cf2218c7681966963a179aea043328a2343f92fb
[ "MIT" ]
null
null
null
src/data/SatelitteSolarPowerSystemV4.py
j1996/EPM_UCC
cf2218c7681966963a179aea043328a2343f92fb
[ "MIT" ]
null
null
null
src/data/SatelitteSolarPowerSystemV4.py
j1996/EPM_UCC
cf2218c7681966963a179aea043328a2343f92fb
[ "MIT" ]
null
null
null
import numpy as np import trimesh try: from Satellite_Panel_Solar import Panel_Solar from SatelitteActitud import SatelitteActitud except: from src.data.Satellite_Panel_Solar import Panel_Solar from src.data.SatelitteActitud import SatelitteActitud # noinspection SpellCheckingInspection """Sa...
39.116424
160
0.557906
17,134
0.910608
0
0
0
0
0
0
6,781
0.360385
d1c5a27d9a9982b68feaf9dde43f823499bf62ab
744
py
Python
odoo-13.0/addons/l10n_in/models/res_partner.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_in/models/res_partner.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_in/models/res_partner.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.exceptions import ValidationError class ResPartner(models.Model): _inherit = 'res.partner' # Use in view attrs. Need to required state_id if Country is India. ...
41.333333
131
0.706989
557
0.748656
0
0
329
0.442204
0
0
292
0.392473
d1c5cfefd7363489dfaa63b0a0dd5fcfd287ee0f
5,037
py
Python
Corrfunc/bases.py
dfm/suave
51c192f450821d9ebb0f3e7eef7461dfb1b2af5f
[ "MIT" ]
7
2021-03-03T15:44:35.000Z
2021-03-21T09:01:12.000Z
Corrfunc/bases.py
dfm/suave
51c192f450821d9ebb0f3e7eef7461dfb1b2af5f
[ "MIT" ]
3
2020-07-17T01:06:48.000Z
2021-01-20T02:59:26.000Z
Corrfunc/bases.py
dfm/suave
51c192f450821d9ebb0f3e7eef7461dfb1b2af5f
[ "MIT" ]
2
2021-03-20T00:47:51.000Z
2021-03-21T09:01:03.000Z
import numpy as np from scipy.interpolate import BSpline from colossus.cosmology import cosmology """ Helper routines for basis functions for the continuous-function estimator. """ ################ # Spline basis # ################ def spline_bases(rmin, rmax, projfn, ncomponents, ncont=2000, order=3): ''' Co...
29.115607
120
0.638674
0
0
0
0
0
0
0
0
2,631
0.522335
d1c635399d92b3e1526049c9830b5922d5577a91
17,587
py
Python
src/data/tree_matches.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/data/tree_matches.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
null
null
null
src/data/tree_matches.py
behavioral-data/multiverse
82b7265de0aa3e9d229ce9f3f86b8b48435ca365
[ "MIT" ]
1
2021-08-19T15:21:50.000Z
2021-08-19T15:21:50.000Z
import glob import os import pandas as pd import json import ast from tqdm import tqdm import click import pickle from multiprocessing import Pool, cpu_count, Queue from functools import partial import itertools import sys sys.setrecursionlimit(15000) import logging logpath = "./tree_matches.log" logger = loggin...
36.112936
189
0.591289
1,227
0.069767
0
0
1,834
0.104282
0
0
3,419
0.194405
d1c6823ee90be6b6904c09a99dc9b3ef3c77d40d
3,273
py
Python
opencdms/process/r_instat.py
dannyparsons/pyopencdms
94addc5009a0a68e17fb443607d876540a46afcc
[ "MIT" ]
null
null
null
opencdms/process/r_instat.py
dannyparsons/pyopencdms
94addc5009a0a68e17fb443607d876540a46afcc
[ "MIT" ]
11
2021-07-28T09:18:20.000Z
2022-02-24T09:48:53.000Z
opencdms/process/r_instat.py
dannyparsons/pyopencdms
94addc5009a0a68e17fb443607d876540a46afcc
[ "MIT" ]
2
2021-12-19T19:38:06.000Z
2022-01-14T16:46:36.000Z
# ================================================================= # # Authors: Stephen Lloyd # Ian Edwards # # Copyright (c) 2020, OpenCDMS Project # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software"), to dea...
34.09375
79
0.643752
0
0
0
0
0
0
0
0
2,983
0.911396
d1c81880771dc78be0ce9b1719c11a105c654a6c
663
py
Python
examples/accessibility/test_sa11y.py
echo2477/demo-python
adc55aa8075dbd46f94d1ae68f2acfd8f20720d5
[ "MIT" ]
42
2019-02-27T03:28:52.000Z
2022-01-25T21:18:45.000Z
examples/accessibility/test_sa11y.py
echo2477/demo-python
adc55aa8075dbd46f94d1ae68f2acfd8f20720d5
[ "MIT" ]
12
2019-05-10T23:43:55.000Z
2021-11-05T21:20:02.000Z
examples/accessibility/test_sa11y.py
echo2477/demo-python
adc55aa8075dbd46f94d1ae68f2acfd8f20720d5
[ "MIT" ]
38
2019-02-27T03:28:52.000Z
2022-02-17T07:27:08.000Z
import os from selenium import webdriver from sa11y.analyze import Analyze import urllib3 urllib3.disable_warnings() class TestAccessibilitySa11y(object): def test_analysis(self): capabilities = { 'browserName': 'chrome', 'sauce:options': { 'username': os.enviro...
22.862069
69
0.612368
540
0.81448
0
0
0
0
0
0
168
0.253394
d1ca40f0376f7b0e97f60f4e474395644c035a44
653
py
Python
275_hindex_ii.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
275_hindex_ii.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
275_hindex_ii.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 275. H-Index II # Follow up for H-Index: What if the citations array is sorted in ascending order? Could you optimize your algorithm? class Solution(object): # http://blog.csdn.net/titan0427/article/details/50650006 def hIndex(self, citations): """ :type citations: List[int] :rtype: i...
29.681818
117
0.509954
515
0.788668
0
0
0
0
0
0
261
0.399694
d1cad5eb72fd592bce4b7879f6c49c197729b99c
6,172
py
Python
base/site-packages/news/templatetags/news_tags.py
edisonlz/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
285
2019-12-23T09:50:21.000Z
2021-12-08T09:08:49.000Z
base/site-packages/news/templatetags/news_tags.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
null
null
null
base/site-packages/news/templatetags/news_tags.py
jeckun/fastor
342078a18363ac41d3c6b1ab29dbdd44fdb0b7b3
[ "Apache-2.0" ]
9
2019-12-23T12:59:25.000Z
2022-03-15T05:12:11.000Z
from django.conf import settings from django import template from news.models import NewsItem, NewsAuthor, NewsCategory register = template.Library() @register.tag def get_news(parser, token): """ {% get_news 5 as news_items %} """ bits = token.split_contents() if len(bits) == 3: limit = None elif len(bits)...
30.107317
137
0.70431
2,197
0.355962
0
0
3,047
0.493681
0
0
2,202
0.356773
d1cc9f6841588916d3d185d0c46b0a187fc51e4e
1,731
py
Python
generics/models.py
morfat/falcon-quick-start
e2940d7bbf2f687627fcc18aa9440abc144f3e5c
[ "MIT" ]
null
null
null
generics/models.py
morfat/falcon-quick-start
e2940d7bbf2f687627fcc18aa9440abc144f3e5c
[ "MIT" ]
null
null
null
generics/models.py
morfat/falcon-quick-start
e2940d7bbf2f687627fcc18aa9440abc144f3e5c
[ "MIT" ]
null
null
null
import math import falcon import jsonschema class Model(object): db_table=""# db table name properties={} #schema properties schema={} #to hold schema for each model required=[] #list of required fields def __init__(self,db): self._db=db self.validated_data={} self.r...
21.6375
122
0.601964
1,652
0.954362
0
0
0
0
0
0
340
0.196418
d1d0fe4d85e8f06718ad484d0653f8f1487b2d32
155
py
Python
main.py
adael/goldminer
47571c71c7f815eccb455a7d9e11d0e3892e9a5d
[ "MIT" ]
2
2016-11-08T14:32:40.000Z
2018-06-12T11:44:24.000Z
main.py
adael/goldminer
47571c71c7f815eccb455a7d9e11d0e3892e9a5d
[ "MIT" ]
null
null
null
main.py
adael/goldminer
47571c71c7f815eccb455a7d9e11d0e3892e9a5d
[ "MIT" ]
null
null
null
import os from goldminer import game if __name__ == "__main__": print("Initializing") print("Working directory: " + os.getcwd()) game.start()
19.375
46
0.670968
0
0
0
0
0
0
0
0
45
0.290323
d1d19c31d7a08cd05475c969fbf2328d027248cd
15,337
py
Python
zed-align.py
zyndagj/zed-align
143b0043b0bfc88f553dc141f4873715bfabc379
[ "BSD-3-Clause" ]
1
2017-03-17T15:57:04.000Z
2017-03-17T15:57:04.000Z
zed-align.py
zyndagj/ZED-bsmap-align
143b0043b0bfc88f553dc141f4873715bfabc379
[ "BSD-3-Clause" ]
null
null
null
zed-align.py
zyndagj/ZED-bsmap-align
143b0043b0bfc88f553dc141f4873715bfabc379
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from math import ceil import os import sys import argparse import multiprocessing import subprocess as sp import re #from pprint import pprint from array import array from yaml import load, dump contexts = ('CG','CHG','CHH') def main(): fCheck = fileCheck() #class for checking parameters pars...
43.447592
207
0.57671
448
0.02921
0
0
0
0
0
0
7,780
0.50727
d1d212dc12933a4a0f21c68d34b67d74f7e46ad2
4,316
py
Python
tests/test_metadata_model.py
statisticsnorway/microdata-validator
c6b6788ab3ba7a3dad889db9120ad2decc598e76
[ "Apache-2.0" ]
1
2022-03-23T09:15:51.000Z
2022-03-23T09:15:51.000Z
tests/test_metadata_model.py
statisticsnorway/microdata-validator
c6b6788ab3ba7a3dad889db9120ad2decc598e76
[ "Apache-2.0" ]
4
2022-02-17T08:41:30.000Z
2022-02-28T14:08:47.000Z
tests/test_metadata_model.py
statisticsnorway/microdata-validator
c6b6788ab3ba7a3dad889db9120ad2decc598e76
[ "Apache-2.0" ]
null
null
null
import json import pytest from microdata_validator import Metadata, PatchingError RESOURCE_DIR = 'tests/resources/metadata_model' with open(f'{RESOURCE_DIR}/KREFTREG_DS_described.json') as f: TRANSFORMED_METADATA = json.load(f) with open(f'{RESOURCE_DIR}/KREFTREG_DS_described_update.json') as f: UPDATED_METAD...
37.530435
96
0.765524
0
0
0
0
0
0
0
0
1,328
0.307692
d1d24bde4b14a7385a88eadfd5830d39f6ecfb75
127
py
Python
metrics/__init__.py
rizwan09/Tagger
7622f10561a0f6074abde0c9c26a4f25405b204b
[ "BSD-3-Clause" ]
null
null
null
metrics/__init__.py
rizwan09/Tagger
7622f10561a0f6074abde0c9c26a4f25405b204b
[ "BSD-3-Clause" ]
null
null
null
metrics/__init__.py
rizwan09/Tagger
7622f10561a0f6074abde0c9c26a4f25405b204b
[ "BSD-3-Clause" ]
null
null
null
# metrics/__init__.py # author: Playinf # email: [email protected] from .metrics import create_tagger_evaluation_metrics
21.166667
53
0.80315
0
0
0
0
0
0
0
0
69
0.543307
d1d273fedbebba3a9ba1430c685e07560c2562dd
680
py
Python
tests/platforms/macOS/dmg/test_mixin.py
chuckyQ/briefcase
06e84e7b1c3af016c828a5a640d277809de6644b
[ "BSD-3-Clause" ]
3
2020-09-29T15:32:35.000Z
2021-11-08T09:41:04.000Z
tests/platforms/macOS/dmg/test_mixin.py
CuPidev/briefcase
35619cbe4b512c8521ad3733341e6bc3422efb58
[ "BSD-3-Clause" ]
null
null
null
tests/platforms/macOS/dmg/test_mixin.py
CuPidev/briefcase
35619cbe4b512c8521ad3733341e6bc3422efb58
[ "BSD-3-Clause" ]
1
2021-03-26T11:52:02.000Z
2021-03-26T11:52:02.000Z
import sys import pytest from briefcase.platforms.macOS.dmg import macOSDmgCreateCommand if sys.platform != 'darwin': pytest.skip("requires macOS", allow_module_level=True) def test_binary_path(first_app_config, tmp_path): command = macOSDmgCreateCommand(base_path=tmp_path) binary_path = command.binary...
29.565217
76
0.772059
0
0
0
0
0
0
0
0
85
0.125
d1d2b7418ea4360c01e3e7cac48267d8b72eae4a
336
py
Python
app/__init__.py
Lijah-Tech-Solution/flask_structure
f1c31043f5756db66624f47b6ae4e7f869064d19
[ "MIT" ]
1
2020-07-22T15:00:53.000Z
2020-07-22T15:00:53.000Z
app/__init__.py
Lijah-Tech-Solution/flask_structure
f1c31043f5756db66624f47b6ae4e7f869064d19
[ "MIT" ]
null
null
null
app/__init__.py
Lijah-Tech-Solution/flask_structure
f1c31043f5756db66624f47b6ae4e7f869064d19
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) if app.config["ENV"] == "production": app.config.from_object("config.ProductionConfig") elif app.config["ENV"] == "testing": app.config.from_object("config.TestingConfig") else: app.config.from_object("config.DevelopmentConfig") from app import views from app im...
17.684211
51
0.752976
0
0
0
0
0
0
0
0
104
0.309524
d1d4630b4a1d77b92aebe2079bfb6cc0bd824f76
674
py
Python
meutils/clis/conf.py
Jie-Yuan/MeUtils
2bb191b0d35b809af037c0f65b37570b8828bea3
[ "Apache-2.0" ]
3
2020-12-03T07:30:02.000Z
2021-02-07T13:37:33.000Z
meutils/clis/conf.py
Jie-Yuan/MeUtils
2bb191b0d35b809af037c0f65b37570b8828bea3
[ "Apache-2.0" ]
null
null
null
meutils/clis/conf.py
Jie-Yuan/MeUtils
2bb191b0d35b809af037c0f65b37570b8828bea3
[ "Apache-2.0" ]
1
2021-02-07T13:37:38.000Z
2021-02-07T13:37:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : MeUtils. # @File : conf # @Time : 2021/1/31 10:20 下午 # @Author : yuanjie # @Email : [email protected] # @Software : PyCharm # @Description : from meutils.pipe import * # 定义参数 class TrainConf(BaseConfig): epoch = ...
18.216216
75
0.587537
64
0.086253
0
0
0
0
0
0
421
0.567385
d1d6ddc5133d35a051f353823254a3acc14e9b2b
888
py
Python
BeautifulSoup/request.py
madhubalajain/code_snippets
7cd4f79d94ced097efcc651dd0fd878a52fffad1
[ "MIT" ]
null
null
null
BeautifulSoup/request.py
madhubalajain/code_snippets
7cd4f79d94ced097efcc651dd0fd878a52fffad1
[ "MIT" ]
null
null
null
BeautifulSoup/request.py
madhubalajain/code_snippets
7cd4f79d94ced097efcc651dd0fd878a52fffad1
[ "MIT" ]
null
null
null
install Request module pip install requests import requests r = requests.get('https://xkcd.com/353/') print(r) print(r.text) #Download image r = requests.get('https://xkcd.com/comics/python.png') print(r.content) with open('comic.png', 'wb') as f: f.write(r.content) print(r.status_code) print(r.ok)...
17.76
66
0.643018
0
0
0
0
0
0
0
0
368
0.414414
d1d6ec176f56d2655e5c7c5a56574d4a35207716
1,231
py
Python
facturador/facturador/urls.py
crodriguezud/Facturador
1a1e08072ae1d54f3f7963cdd202444618a0fa2e
[ "Apache-2.0" ]
null
null
null
facturador/facturador/urls.py
crodriguezud/Facturador
1a1e08072ae1d54f3f7963cdd202444618a0fa2e
[ "Apache-2.0" ]
9
2020-06-05T17:25:18.000Z
2022-03-11T23:15:36.000Z
facturador/facturador/urls.py
crodriguezud/Facturador
1a1e08072ae1d54f3f7963cdd202444618a0fa2e
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from django.contrib import admin from rest_framework_jwt.views import obtain_jwt_token from rest_framework_jwt.views import refresh_jwt_token from rest_framework_jwt.views import verify_jwt_token # Configuration API Router from rest_framework import routers #router = routers...
32.394737
82
0.736799
0
0
0
0
0
0
0
0
428
0.347685
d1d7dba700dc5f0d195179566af837041f1113d5
13,432
py
Python
dynaphopy/analysis/fitting/fitting_functions.py
faradaymahe/DynaPhopy
8519ff616386651acf71166bee02c1a2aef89312
[ "MIT" ]
76
2015-02-24T02:55:09.000Z
2022-03-31T09:38:09.000Z
dynaphopy/analysis/fitting/fitting_functions.py
jianskerh/DynaPhoPy
e1201f6de62b4303c68a7808ed19175364409586
[ "MIT" ]
14
2017-07-21T12:37:28.000Z
2021-09-15T08:50:55.000Z
dynaphopy/analysis/fitting/fitting_functions.py
jianskerh/DynaPhoPy
e1201f6de62b4303c68a7808ed19175364409586
[ "MIT" ]
38
2015-07-02T01:17:27.000Z
2022-03-25T14:24:33.000Z
import numpy as np from scipy.optimize import curve_fit, minimize_scalar h_planck = 4.135667662e-3 # eV/ps h_planck_bar = 6.58211951e-4 # eV/ps kb_boltzmann = 8.6173324e-5 # eV/K def get_standard_errors_from_covariance(covariance): # return np.linalg.eigvals(covariance) return np.sqrt(np.diag(covariance)) ...
34.979167
112
0.542064
12,712
0.946397
0
0
0
0
0
0
1,926
0.143389
d1d82814692baf55384c0af692ceedac9c370b19
4,517
py
Python
edualgo/circular-linked-list.py
VaishnaviNandakumar/eduAlgo
5eb24058d969ab6dae2cbd19f9048ea1a353b48e
[ "MIT" ]
22
2021-02-25T04:35:57.000Z
2022-02-14T13:33:19.000Z
edualgo/circular-linked-list.py
VaishnaviNandakumar/eduAlgo
5eb24058d969ab6dae2cbd19f9048ea1a353b48e
[ "MIT" ]
40
2021-02-26T06:59:41.000Z
2021-11-10T07:40:29.000Z
edualgo/circular-linked-list.py
VaishnaviNandakumar/eduAlgo
5eb24058d969ab6dae2cbd19f9048ea1a353b48e
[ "MIT" ]
17
2021-02-25T00:58:57.000Z
2021-11-08T23:46:06.000Z
from __init__ import print_msg_box class Node: def __init__(self, dataValue=None): self.dataValue = dataValue self.next = None class singleLinkedList: def __init__(self): self.headValue = None self.temp = None def insertLast(self, *elements): for data in elements...
23.404145
75
0.579367
3,858
0.854107
0
0
0
0
0
0
2,159
0.477972
d1de025379609a12a3f05f1bd0a39e4f01a64269
407
py
Python
core/migrations/0007_item_paystack_link.py
adesiyanoladipo/django-referral-system
7cc4b41338289ecff78f7a50c9eee4bd47986215
[ "MIT" ]
6
2020-09-03T20:05:00.000Z
2021-07-02T11:49:46.000Z
core/migrations/0007_item_paystack_link.py
adesiyan-ifedayo/django-referral-system
7cc4b41338289ecff78f7a50c9eee4bd47986215
[ "MIT" ]
null
null
null
core/migrations/0007_item_paystack_link.py
adesiyan-ifedayo/django-referral-system
7cc4b41338289ecff78f7a50c9eee4bd47986215
[ "MIT" ]
4
2020-09-03T10:52:20.000Z
2021-01-13T16:13:45.000Z
# Generated by Django 2.2.14 on 2020-08-23 10:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0006_referral_amount'), ] operations = [ migrations.AddField( model_name='item', name='paystack_link', ...
21.421053
73
0.604423
313
0.769042
0
0
0
0
0
0
97
0.238329
d1deb1b97db88859b62d8246e63346725b35b7ec
798
py
Python
messenger/server/src/auth/decorators.py
v-v-d/Python_client-server_apps
5741c92dc5324ae8af2c7102d95f63c57e71b4c7
[ "MIT" ]
null
null
null
messenger/server/src/auth/decorators.py
v-v-d/Python_client-server_apps
5741c92dc5324ae8af2c7102d95f63c57e71b4c7
[ "MIT" ]
null
null
null
messenger/server/src/auth/decorators.py
v-v-d/Python_client-server_apps
5741c92dc5324ae8af2c7102d95f63c57e71b4c7
[ "MIT" ]
1
2020-02-27T08:08:26.000Z
2020-02-27T08:08:26.000Z
"""Decorators for auth module.""" from functools import wraps from src.protocol import make_response from src.database import session_scope from .models import Session def login_required(func): """Check that user is logged in based on the valid token exists in request.""" @wraps(func) def wrapper(reques...
33.25
98
0.689223
0
0
0
0
493
0.617794
0
0
179
0.224311
d1def20a029952342126d505b499c5a421976187
3,607
py
Python
proj06_functions/proj06.py
hawiab/VSA18
852902f96f97d62e4cfbc8e997c96b305754bf5b
[ "MIT" ]
null
null
null
proj06_functions/proj06.py
hawiab/VSA18
852902f96f97d62e4cfbc8e997c96b305754bf5b
[ "MIT" ]
null
null
null
proj06_functions/proj06.py
hawiab/VSA18
852902f96f97d62e4cfbc8e997c96b305754bf5b
[ "MIT" ]
null
null
null
# Name: # Date: # proj05: functions and lists # Part I def divisors(num): """ Takes a number and returns all divisors of the number, ordered least to greatest :param num: int :return: list (int) """ # Fill in the function and change the return statment. numlist = [] check = 1 whil...
26.91791
90
0.609093
0
0
0
0
0
0
0
0
2,566
0.711395
d1df1905cca6f1b65e50adab041641c51732a082
2,034
py
Python
bqplot/__init__.py
jasongrout/bqplot
2416a146296419340b8d5998bf9d1538e6750579
[ "Apache-2.0" ]
null
null
null
bqplot/__init__.py
jasongrout/bqplot
2416a146296419340b8d5998bf9d1538e6750579
[ "Apache-2.0" ]
1
2019-04-16T04:54:14.000Z
2019-04-16T09:13:08.000Z
bqplot/__init__.py
jasongrout/bqplot
2416a146296419340b8d5998bf9d1538e6750579
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Bloomberg Finance L.P. # # 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 i...
31.292308
426
0.681416
0
0
0
0
0
0
0
0
1,902
0.935103
d1e1409d73a3d66b1d9667d3a5d80cc9f1d444f5
1,915
py
Python
modele/Case.py
JordanSamhi/BricksBreaker
e2efb28e5ec43056e9665479920523576c692a6b
[ "MIT" ]
null
null
null
modele/Case.py
JordanSamhi/BricksBreaker
e2efb28e5ec43056e9665479920523576c692a6b
[ "MIT" ]
null
null
null
modele/Case.py
JordanSamhi/BricksBreaker
e2efb28e5ec43056e9665479920523576c692a6b
[ "MIT" ]
null
null
null
''' Une case est definie par sa couleur, ses coordonnees et un acces a la grille pour recuperer ses voisins ''' class Case(): def __init__(self, x, y, couleur, grille): self._x = x self._y = y self._couleur = couleur self._grille = grille self.GREY = "g...
26.232877
79
0.515927
1,786
0.932637
0
0
0
0
0
0
145
0.075718
d1e1bcedb2edbb2d5f4a7e0929b4350832d56cb6
1,280
py
Python
keypoints_SIFT_Descriptor.py
praxitelisk/OpenCV_Image_Mining
8fb6af58a677e9acd9711164080910e4f62f7de8
[ "MIT" ]
null
null
null
keypoints_SIFT_Descriptor.py
praxitelisk/OpenCV_Image_Mining
8fb6af58a677e9acd9711164080910e4f62f7de8
[ "MIT" ]
null
null
null
keypoints_SIFT_Descriptor.py
praxitelisk/OpenCV_Image_Mining
8fb6af58a677e9acd9711164080910e4f62f7de8
[ "MIT" ]
null
null
null
#import Libraries import cv2 import sys import numpy as np from matplotlib import pyplot as plt import matplotlib.image as mpimg ################################################## ''' This example illustrates how to extract interesting key points as features from an image Usage: keypointsSIFTDescriptor.py [<image...
28.444444
92
0.603906
0
0
0
0
0
0
0
0
652
0.509375
d1e232b6f4bcb98d057d8080fd878bcc9a488c24
1,103
py
Python
lib/getHostInfoResponse.py
jacksitlab/esxi-client
0d9c815a2638fb9ed2c559a6ec9bdeb6ff9f033e
[ "MIT" ]
null
null
null
lib/getHostInfoResponse.py
jacksitlab/esxi-client
0d9c815a2638fb9ed2c559a6ec9bdeb6ff9f033e
[ "MIT" ]
null
null
null
lib/getHostInfoResponse.py
jacksitlab/esxi-client
0d9c815a2638fb9ed2c559a6ec9bdeb6ff9f033e
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from .baseVmWareXmlResponse import BaseVmWareXmlResponse class GetHostInfoResponse(BaseVmWareXmlResponse): def __str__(self): return ('GetHostInfoResponse[vendor={} model={} vCPUs={} memory={}]').format( self.vendor, self.model, self.vCPUs, self.memory) ...
40.851852
95
0.676337
1,008
0.913871
0
0
0
0
0
0
205
0.185857
d1e30a27cb089668fb5805462b206c1f85c6621d
2,900
py
Python
tests/test_markdown.py
tripleee/ChatExchange
5509c7ec1efd5b55d4051d6966bcae7d72e84620
[ "Apache-2.0", "MIT" ]
64
2015-02-26T02:56:57.000Z
2021-11-07T20:40:11.000Z
tests/test_markdown.py
tripleee/ChatExchange
5509c7ec1efd5b55d4051d6966bcae7d72e84620
[ "Apache-2.0", "MIT" ]
53
2015-01-29T03:37:23.000Z
2021-08-15T11:09:05.000Z
tests/test_markdown.py
tripleee/ChatExchange
5509c7ec1efd5b55d4051d6966bcae7d72e84620
[ "Apache-2.0", "MIT" ]
39
2015-02-11T16:37:40.000Z
2021-01-12T18:53:40.000Z
import sys import logging if sys.version_info[:2] <= (2, 6): logging.Logger.getChild = lambda self, suffix:\ self.manager.getLogger('.'.join((self.name, suffix)) if self.root is not self else suffix) import pytest from chatexchange.markdown_detector import markdown logger = logging.getLogger(__name__) ...
48.333333
98
0.671724
0
0
0
0
0
0
0
0
1,482
0.511034
d1e35468812dfeba245515055cc9981eeb5b168b
313
py
Python
test.py
QBitor/Neuromorphic_AE_Tools
b20f5f931e82888dfc4eebd7b19b2746d142d4bb
[ "MIT" ]
4
2019-02-19T14:19:14.000Z
2019-07-29T02:46:47.000Z
test.py
ndouard/Neuromorphic_AE_Tools
b20f5f931e82888dfc4eebd7b19b2746d142d4bb
[ "MIT" ]
null
null
null
test.py
ndouard/Neuromorphic_AE_Tools
b20f5f931e82888dfc4eebd7b19b2746d142d4bb
[ "MIT" ]
2
2018-03-05T22:52:53.000Z
2018-09-13T21:47:00.000Z
x_indexes = [i for i, j in enumerate(xaddr)] if j == myxaddr] y_indexes = [i for i, j in enumerate(yaddr)] if j == myyaddr] print('x_indexes: ' + str(x_indexes)) print('y_indexes:' +str(y_indexes)) # keep common indexes common = [i for i, j in zip(x_indexes, y_indexes) if i == j] print('common: ' + str(common))
39.125
61
0.670927
0
0
0
0
0
0
0
0
56
0.178914
d1e50fb8283a579fbdd6f28ea13ffe7026e7416d
1,651
py
Python
pyefriend_api/app/v1/setting/router.py
softyoungha/pyefriend
43a9db224be50308458f0b939ac0181b3bd63d0b
[ "MIT" ]
8
2021-11-26T14:22:21.000Z
2022-03-26T03:32:51.000Z
pyefriend_api/app/v1/setting/router.py
softyoungha/pyefriend
43a9db224be50308458f0b939ac0181b3bd63d0b
[ "MIT" ]
1
2021-12-19T13:08:26.000Z
2021-12-19T13:22:28.000Z
pyefriend_api/app/v1/setting/router.py
softyoungha/pyefriend
43a9db224be50308458f0b939ac0181b3bd63d0b
[ "MIT" ]
5
2022-01-12T17:54:40.000Z
2022-03-25T10:22:36.000Z
import os from typing import Optional, List from fastapi import APIRouter, Request, Response, status, Depends from pyefriend_api.models.setting import Setting as SettingModel from pyefriend_api.app.auth import login_required from .schema import SettingOrm, SettingUpdate r = APIRouter(prefix='/setting', ...
30.018182
78
0.65536
0
0
0
0
1,415
0.8017
1,212
0.686686
468
0.265156
d1e715c85a2185a84c7545eb4958d65bd238b0ac
20,031
py
Python
dsi/tests/test_multi_analysis.py
mongodb/dsi
8cfc845156561d698fb01da93464392caca40644
[ "Apache-2.0" ]
9
2020-05-19T21:39:44.000Z
2022-02-11T10:03:36.000Z
dsi/tests/test_multi_analysis.py
mongodb/dsi
8cfc845156561d698fb01da93464392caca40644
[ "Apache-2.0" ]
1
2021-03-25T23:37:22.000Z
2021-03-25T23:37:22.000Z
dsi/tests/test_multi_analysis.py
mongodb/dsi
8cfc845156561d698fb01da93464392caca40644
[ "Apache-2.0" ]
3
2020-03-05T10:49:10.000Z
2021-03-02T11:15:45.000Z
"""Unit tests for util/multi_analysis.py""" import os import unittest from dsi.multi_analysis import MultiEvergreenAnalysis, main from test_lib.fixture_files import FixtureFiles from test_lib.test_requests_parent import TestRequestsParent FIXTURE_FILES = FixtureFiles() class TestMultiEvergreenAnalysis(TestRequest...
45.421769
97
0.403924
19,705
0.983725
0
0
0
0
0
0
4,474
0.223354
d1e75fc6ed9f9190b3412688570aefced2173499
6,356
py
Python
src/tratamientos/migrations/0001_initial.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
src/tratamientos/migrations/0001_initial.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
32
2016-05-09T19:37:08.000Z
2022-01-13T01:00:52.000Z
src/tratamientos/migrations/0001_initial.py
mava-ar/sgk
cb8b3abf243b4614e6a45e4e2db5bb7cce94dee4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-05-08 03:42 from __future__ import unicode_literals import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('pacientes'...
67.617021
209
0.645374
6,170
0.965571
0
0
0
0
0
0
2,151
0.33662
d1e84365ce59a1577648a2034fb246335760f7cf
7,308
py
Python
panel/tasks/tests/test_utils.py
freejooo/vigilio
d21bf4f9d39e5dcde5d7c21476d8650e914c3c66
[ "MIT" ]
137
2021-03-26T18:19:45.000Z
2022-03-06T07:48:23.000Z
panel/tasks/tests/test_utils.py
rrosajp/vigilio
d21bf4f9d39e5dcde5d7c21476d8650e914c3c66
[ "MIT" ]
11
2021-03-28T00:07:00.000Z
2021-05-04T12:54:58.000Z
panel/tasks/tests/test_utils.py
rrosajp/vigilio
d21bf4f9d39e5dcde5d7c21476d8650e914c3c66
[ "MIT" ]
16
2021-03-27T23:58:53.000Z
2022-03-20T14:52:13.000Z
from typing import Any, List, Dict RAW_INFO: Dict[str, List[Dict[str, Any]]] = { "streams": [ { "index": 0, "codec_name": "h264", "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10", "profile": "High", "codec_type": "video", ...
33.369863
359
0.491516
0
0
0
0
0
0
0
0
3,864
0.528736
d1e88bdba0945c9b9cc4455b24e5747284f786b4
368
py
Python
circular_rings.py
irahorecka/Diffraction-Simulations--Angular-Spectrum-Method
c2eb1de944685018f887c7861301f7098354e9f5
[ "MIT" ]
1
2021-01-04T17:04:55.000Z
2021-01-04T17:04:55.000Z
circular_rings.py
irahorecka/Diffraction-Simulations--Angular-Spectrum-Method
c2eb1de944685018f887c7861301f7098354e9f5
[ "MIT" ]
null
null
null
circular_rings.py
irahorecka/Diffraction-Simulations--Angular-Spectrum-Method
c2eb1de944685018f887c7861301f7098354e9f5
[ "MIT" ]
null
null
null
from simulator import PolychromaticField, cf, mm F = PolychromaticField( spectrum=1.5 * cf.illuminant_d65, extent_x=12.0 * mm, extent_y=12.0 * mm, Nx=1200, Ny=1200, ) F.add_aperture_from_image( "./apertures/circular_rings.jpg", pad=(9 * mm, 9 * mm), Nx=1500, Ny=1500 ) rgb = F.compute_colors_at...
23
76
0.649457
0
0
0
0
0
0
0
0
32
0.086957
d1ee95da457c4546117cb03bfe6b449dcdd2ad26
2,581
py
Python
res/scripts/client/gui/mods/ScoreViewTools_Init.py
JoshuaEN/World-of-Tanks-ScoreViewTools-Data-Export-Mods
fb424b5bfa3a1e212ef39805f9b3afb750cec82f
[ "MIT" ]
null
null
null
res/scripts/client/gui/mods/ScoreViewTools_Init.py
JoshuaEN/World-of-Tanks-ScoreViewTools-Data-Export-Mods
fb424b5bfa3a1e212ef39805f9b3afb750cec82f
[ "MIT" ]
null
null
null
res/scripts/client/gui/mods/ScoreViewTools_Init.py
JoshuaEN/World-of-Tanks-ScoreViewTools-Data-Export-Mods
fb424b5bfa3a1e212ef39805f9b3afb750cec82f
[ "MIT" ]
null
null
null
from items import vehicles, _xml from gui.Scaleform.daapi.view.lobby.trainings.training_room import TrainingRoom; from helpers.statistics import StatisticsCollector; from game import init import ScoreViewTools def exportAll(): ScoreViewTools.Export.init() ScoreViewTools.Export.cleanup() ScoreVi...
40.328125
86
0.798915
0
0
0
0
0
0
0
0
142
0.055017
d1efcc031c8bf6f3a8fed9857aad8b4235615828
897
py
Python
merge-sort.py
bauluk/algorithms
9020d2a6150e58ad26d18b8fede32ded966f8a8b
[ "MIT" ]
null
null
null
merge-sort.py
bauluk/algorithms
9020d2a6150e58ad26d18b8fede32ded966f8a8b
[ "MIT" ]
null
null
null
merge-sort.py
bauluk/algorithms
9020d2a6150e58ad26d18b8fede32ded966f8a8b
[ "MIT" ]
null
null
null
import random def mergeSort(numbers): if len(numbers) <= 1: return numbers left = numbers[:len(numbers)//2] right = numbers[len(numbers)//2:] left = mergeSort(left) right = mergeSort(right) numbers = merge(left, right, numbers) return numbers def merge(left, right, numbers): ...
19.933333
43
0.518395
0
0
0
0
0
0
0
0
23
0.025641
d1f02ab69517e03a599a2beb69e3009f8624f7cc
1,586
py
Python
W2/task4.py
mcv-m6-video/mcv-m6-2021-team6
701fc1420930342f3b3733e8f8fc4675c21d8f3f
[ "Unlicense" ]
null
null
null
W2/task4.py
mcv-m6-video/mcv-m6-2021-team6
701fc1420930342f3b3733e8f8fc4675c21d8f3f
[ "Unlicense" ]
2
2021-03-23T10:34:33.000Z
2021-03-23T18:54:28.000Z
W2/task4.py
mcv-m6-video/mcv-m6-2021-team6
701fc1420930342f3b3733e8f8fc4675c21d8f3f
[ "Unlicense" ]
1
2021-03-08T21:13:15.000Z
2021-03-08T21:13:15.000Z
from utilsw2 import * from Reader import * from Adapted_voc_evaluation import * import glob path_to_video = 'datasets/AICity_data/train/S03/c010/vdo.avi' path_to_frames = 'datasets/frames/' results_path = 'Results/Task1_1' def task4(color_space=cv2.COLOR_BGR2GRAY, mu_file = f"W2/task1_1/mu.pkl",sigma_file= f"W2/task...
38.682927
167
0.655107
0
0
0
0
0
0
0
0
276
0.174023
d1f0cff2e554ccf456ca71299fa80fb9f25a8ffe
3,207
py
Python
src/dictstore/file_handler.py
sampathbalivada/dictstore
d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6
[ "Apache-2.0" ]
1
2021-12-21T14:23:50.000Z
2021-12-21T14:23:50.000Z
src/dictstore/file_handler.py
sampathbalivada/dictstore
d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6
[ "Apache-2.0" ]
null
null
null
src/dictstore/file_handler.py
sampathbalivada/dictstore
d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Sai Sampath Kumar Balivada # 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 ...
33.061856
74
0.640474
2,131
0.664484
0
0
0
0
0
0
1,520
0.473963
d1f1be9cfd0e8788923ad96d397bd4e298d8a339
2,432
py
Python
tests/mappers/test_action_mapper.py
mik-laj/oozie-to-airflow
c04952ddc8354bcafa340703b30f7ff33f844f4e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/mappers/test_action_mapper.py
mik-laj/oozie-to-airflow
c04952ddc8354bcafa340703b30f7ff33f844f4e
[ "ECL-2.0", "Apache-2.0" ]
1
2019-07-01T21:57:45.000Z
2019-07-01T21:57:45.000Z
tests/mappers/test_action_mapper.py
mik-laj/oozie-to-airflow
c04952ddc8354bcafa340703b30f7ff33f844f4e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agr...
41.931034
106
0.702303
1,600
0.657895
0
0
0
0
0
0
826
0.339638
d1f1e91e085496f9d5527679e19a038eaba7f62a
1,265
py
Python
euclidean_gcd/Python/euclidean_gcd.py
parammittal16/Algorithms
b9c3b6086ebf9f96bacaa55c2c29961be42676f6
[ "MIT" ]
1
2018-10-04T13:10:23.000Z
2018-10-04T13:10:23.000Z
euclidean_gcd/Python/euclidean_gcd.py
Rajeev00021/Algorithms
2aeeff13b63f17bae2145ffc9583dacbe2070994
[ "MIT" ]
2
2019-10-15T06:31:33.000Z
2019-10-15T06:32:19.000Z
euclidean_gcd/Python/euclidean_gcd.py
Rajeev00021/Algorithms
2aeeff13b63f17bae2145ffc9583dacbe2070994
[ "MIT" ]
1
2019-10-05T18:24:04.000Z
2019-10-05T18:24:04.000Z
def euclidean_gcd(first, second): """ Calculates GCD of two numbers using the division-based Euclidean Algorithm :param first: First number :param second: Second number """ while(second): first, second = second, first % second return first def euclidean_gcd_recursive(first, seco...
34.189189
79
0.480632
0
0
0
0
0
0
0
0
416
0.328854
d1f402dc0bcbd7349f6046e391a89f06ba005aeb
1,627
py
Python
util/metrics/covariance.py
jamesoneill12/LayerFusion
99cba1030ed8c012a453bc7715830fc99fb980dc
[ "Apache-2.0" ]
null
null
null
util/metrics/covariance.py
jamesoneill12/LayerFusion
99cba1030ed8c012a453bc7715830fc99fb980dc
[ "Apache-2.0" ]
null
null
null
util/metrics/covariance.py
jamesoneill12/LayerFusion
99cba1030ed8c012a453bc7715830fc99fb980dc
[ "Apache-2.0" ]
null
null
null
""" Distances metrics based on the covariance matrix (mostly in the context of merging and compress)""" import torch import numpy as np import torch.nn.functional as F np.random.seed(0) def cov(m, y=None): """computes covariance of m""" if y is not None: m = torch.cat((m, y), dim=0) m_exp = torch....
23.926471
103
0.562999
0
0
0
0
0
0
0
0
389
0.23909
d1f4b4fbb3b683f57ba6d1034a8a600f1e9bf050
3,415
py
Python
tfhub_context.py
thingumajig/simple_flask_tfhub
75daae03299b43310b674664d41c273b6e3994c0
[ "Apache-2.0" ]
null
null
null
tfhub_context.py
thingumajig/simple_flask_tfhub
75daae03299b43310b674664d41c273b6e3994c0
[ "Apache-2.0" ]
6
2020-01-28T22:42:39.000Z
2022-02-10T00:10:23.000Z
tfhub_context.py
thingumajig/simple_flask_tfhub
75daae03299b43310b674664d41c273b6e3994c0
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import tensorflow_hub as hub import numpy as np class TFHubContext: def __init__(self, url="https://tfhub.dev/google/universal-sentence-encoder-large/3") -> None: super().__init__() print('Initialize graph:') # Create graph and finalize (finalizing optional but recommended). ...
36.72043
103
0.685505
2,427
0.710688
0
0
0
0
0
0
1,337
0.391508
d1f6e12efd38a6684f9d520d31da3aa92782ab6e
117
py
Python
netmiko/endace/__init__.py
jcinma/netmiko
0cf0aa6a57719c78f2cdd54d98951d5dc8189654
[ "MIT" ]
null
null
null
netmiko/endace/__init__.py
jcinma/netmiko
0cf0aa6a57719c78f2cdd54d98951d5dc8189654
[ "MIT" ]
null
null
null
netmiko/endace/__init__.py
jcinma/netmiko
0cf0aa6a57719c78f2cdd54d98951d5dc8189654
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from netmiko.endace.endace_ssh import EndaceSSH __all__ = ['EndaceSSH']
23.4
48
0.803419
0
0
0
0
0
0
0
0
11
0.094017
d1f8ab1e5dcd509c7bb1c75102e032a178319bb7
1,020
py
Python
src/genemap/main/map_ids.py
jrderuiter/genemap
0413474294cae9e17252d88c8b9ff1382e4a2f0f
[ "MIT" ]
null
null
null
src/genemap/main/map_ids.py
jrderuiter/genemap
0413474294cae9e17252d88c8b9ff1382e4a2f0f
[ "MIT" ]
2
2018-05-25T17:28:21.000Z
2019-01-07T19:14:01.000Z
src/genemap/main/map_ids.py
jrderuiter/genemap
0413474294cae9e17252d88c8b9ff1382e4a2f0f
[ "MIT" ]
3
2018-05-25T16:49:13.000Z
2018-05-25T16:51:45.000Z
# -*- coding: utf-8 -*- # pylint: disable=wildcard-import,redefined-builtin,unused-wildcard-import from __future__ import absolute_import, division, print_function from builtins import * # pylint: enable=wildcard-import,redefined-builtin,unused-wildcard-import from genemap.mappers import get_mappers def main(args):...
28.333333
74
0.732353
0
0
0
0
0
0
0
0
260
0.254902
d1f8f6e84f58dfa799a34b9718329b0459fc7d49
3,463
py
Python
project_gendl/splice42.py
KorfLab/datacore
f6eb04650d8257a8e2eecd44928a60368d374d38
[ "MIT" ]
null
null
null
project_gendl/splice42.py
KorfLab/datacore
f6eb04650d8257a8e2eecd44928a60368d374d38
[ "MIT" ]
null
null
null
project_gendl/splice42.py
KorfLab/datacore
f6eb04650d8257a8e2eecd44928a60368d374d38
[ "MIT" ]
null
null
null
import gzip import random import subprocess import sys def get_acceptors(filename): accs = [] with gzip.open(filename, 'rt') as fp: for line in fp.readlines(): (exon1, intron, exon2, expression, gene) = line.split() s1 = intron[-22:-2] s2 = intron[-2:] s3 = exon2[0:20] accs.append((s1, s2, s3, expre...
24.913669
70
0.634421
0
0
0
0
0
0
0
0
876
0.25296
d1f924e262151141ecf3892ae5654b295df1f760
1,300
py
Python
old-stuff/crimes/atividade.py
paulopieczarka/DataScience-Uni
4013fe97f2a40da8923f11a8ce5907423ed8addd
[ "MIT" ]
null
null
null
old-stuff/crimes/atividade.py
paulopieczarka/DataScience-Uni
4013fe97f2a40da8923f11a8ce5907423ed8addd
[ "MIT" ]
null
null
null
old-stuff/crimes/atividade.py
paulopieczarka/DataScience-Uni
4013fe97f2a40da8923f11a8ce5907423ed8addd
[ "MIT" ]
null
null
null
from sklearn.cluster import KMeans import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt def get_columns(db, col1, col2): inputs = db[[col1, col2]] coords = inputs.as_matrix(columns=None) return np.array(coords) def plot_colored_graph(inputs, kmeans_result): x = inputs.t...
23.636364
81
0.707692
0
0
0
0
0
0
0
0
173
0.133077
d1f9ffd286225f029ae5ec4ee93beabb47e019b6
783
py
Python
example/testapi/migrations/0001_initial.py
Albatrous/django-slack-forms
baee37942085bf2f9e35beb9a4a4aa767b319b35
[ "MIT" ]
1
2019-06-20T00:11:58.000Z
2019-06-20T00:11:58.000Z
example/testapi/migrations/0001_initial.py
Albatrous/django-slack-forms
baee37942085bf2f9e35beb9a4a4aa767b319b35
[ "MIT" ]
3
2020-02-11T23:46:14.000Z
2021-06-10T21:10:37.000Z
example/testapi/migrations/0001_initial.py
Albatrous/django-slack-forms
baee37942085bf2f9e35beb9a4a4aa767b319b35
[ "MIT" ]
3
2019-12-13T06:53:18.000Z
2021-06-04T07:12:56.000Z
# Generated by Django 2.1.4 on 2018-12-12 16:51 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Test', fields=[ ('id', models.AutoField(aut...
30.115385
114
0.573436
690
0.881226
0
0
0
0
0
0
98
0.12516
d1fb7ac3548bddd8881f407edfa6134b66678d18
19,216
py
Python
search_sampler/__init__.py
gserapio/search_sampler
38c8a5c7414edb21126e767ea70e7cd355223f2a
[ "MIT" ]
1
2021-02-09T19:50:17.000Z
2021-02-09T19:50:17.000Z
search_sampler/__init__.py
gserapio/search_sampler
38c8a5c7414edb21126e767ea70e7cd355223f2a
[ "MIT" ]
null
null
null
search_sampler/__init__.py
gserapio/search_sampler
38c8a5c7414edb21126e767ea70e7cd355223f2a
[ "MIT" ]
null
null
null
import os import pandas import time from datetime import datetime, timedelta from collections import defaultdict from copy import deepcopy from googleapiclient.discovery import build """ All functions that are used for querying, processing, and saving the data are located here. """ VALID_PERIOD_LENGTHS = ["day", "w...
40.454737
119
0.585762
18,878
0.98241
0
0
0
0
0
0
9,132
0.475229
d1fd6f1f588ff407c01adf35cb99c44793ba7e08
659
py
Python
ami/config/__init__.py
NCKU-CCS/energy-blockchain
1b87b74579d2e5d658b92bb7ee656a246e4b2380
[ "MIT" ]
null
null
null
ami/config/__init__.py
NCKU-CCS/energy-blockchain
1b87b74579d2e5d658b92bb7ee656a246e4b2380
[ "MIT" ]
4
2019-08-15T11:54:35.000Z
2020-11-26T10:56:02.000Z
ami/config/__init__.py
NCKU-CCS/energy-blockchain
1b87b74579d2e5d658b92bb7ee656a246e4b2380
[ "MIT" ]
null
null
null
import os from dotenv import load_dotenv from Cryptodome.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5 from Cryptodome.Signature import PKCS1_v1_5 as Signature_pkcs1_v1_5 from Cryptodome.PublicKey import RSA load_dotenv() API_URI = os.environ.get("API_URI", "https://nodes.thetangle.org:443").split(",") API_OPEN = ...
29.954545
81
0.798179
0
0
0
0
0
0
0
0
158
0.239757
d1fdd3005698252bde84e97c3ad5be6bf947e18b
3,620
py
Python
google-cloud-sdk/lib/surface/compute/users/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/users/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
null
null
null
google-cloud-sdk/lib/surface/compute/users/delete.py
bopopescu/searchparty
afdc2805cb1b77bd5ac9fdd1a76217f4841f0ea6
[ "Apache-2.0" ]
3
2017-07-27T18:44:13.000Z
2020-07-25T17:48:53.000Z
# Copyright 2015 Google Inc. 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...
33.518519
80
0.690331
2,619
0.723481
0
0
383
0.105801
0
0
1,449
0.400276
d1ff7ff41f8abda906716eb125ac0014f5c4aa8f
34
py
Python
graph_rl/global_algorithms/__init__.py
nicoguertler/graphrl
21a1cefc53e5c457745570460de0d99e68622e57
[ "MIT" ]
1
2022-01-04T15:21:55.000Z
2022-01-04T15:21:55.000Z
graph_rl/global_algorithms/__init__.py
nicoguertler/graph_rl
21a1cefc53e5c457745570460de0d99e68622e57
[ "MIT" ]
null
null
null
graph_rl/global_algorithms/__init__.py
nicoguertler/graph_rl
21a1cefc53e5c457745570460de0d99e68622e57
[ "MIT" ]
null
null
null
from .global_hac import GlobalHAC
17
33
0.852941
0
0
0
0
0
0
0
0
0
0
d1fff7908412416073cac969804d096355f1b2f7
3,195
py
Python
hexomino-core/gen_hexos/gen.py
chmnchiang/hexomino
483a86c11bc0ccf9cdaae4ad6e102168be3cf320
[ "Apache-2.0", "MIT" ]
null
null
null
hexomino-core/gen_hexos/gen.py
chmnchiang/hexomino
483a86c11bc0ccf9cdaae4ad6e102168be3cf320
[ "Apache-2.0", "MIT" ]
null
null
null
hexomino-core/gen_hexos/gen.py
chmnchiang/hexomino
483a86c11bc0ccf9cdaae4ad6e102168be3cf320
[ "Apache-2.0", "MIT" ]
null
null
null
from dataclasses import dataclass from functools import total_ordering from collections import Counter import typing import textwrap @dataclass(frozen=True) @total_ordering class Point: x: int y: int def __add__(self, they): return Point(self.x + they.x, self.y + they.y) def __sub__(self, the...
27.782609
75
0.553678
407
0.127387
580
0.181534
447
0.139906
0
0
419
0.131142
06011cb6cfe74f34fcd631c875b63cc52bf2717f
3,270
py
Python
beartype_test/a00_unit/data/hint/data_hintref.py
jonathanmorley/beartype
0d1207210220807d5c5848033d13657afa307983
[ "MIT" ]
null
null
null
beartype_test/a00_unit/data/hint/data_hintref.py
jonathanmorley/beartype
0d1207210220807d5c5848033d13657afa307983
[ "MIT" ]
null
null
null
beartype_test/a00_unit/data/hint/data_hintref.py
jonathanmorley/beartype
0d1207210220807d5c5848033d13657afa307983
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # --------------------( LICENSE )-------------------- # Copyright (c) 2014-2021 Beartype authors. # See "LICENSE" for further details. ''' **Beartype forward reference data submodule.** This submodule exercises **forward reference type hints** (i.e., strings whose valu...
44.794521
80
0.731804
43
0.01315
0
0
549
0.16789
0
0
2,481
0.758716
06031868a0bff21742dab627fcdc748961bfd19b
1,701
py
Python
pywss/statuscode.py
CzaOrz/Pyws
4b5e9ba6244ea348321446ea5c491f5c19a1d389
[ "MIT" ]
25
2019-10-16T02:57:54.000Z
2021-08-05T06:52:05.000Z
pywss/statuscode.py
CzaOrz/Pyws
4b5e9ba6244ea348321446ea5c491f5c19a1d389
[ "MIT" ]
7
2019-11-16T04:06:39.000Z
2021-04-11T06:24:45.000Z
pywss/statuscode.py
CzaOrz/Pyws
4b5e9ba6244ea348321446ea5c491f5c19a1d389
[ "MIT" ]
7
2019-12-02T02:57:38.000Z
2021-02-05T16:54:22.000Z
# coding: utf-8 StatusContinue = 100 StatusSwitchingProtocols = 101 StatusProcessing = 102 StatusEarlyHints = 103 StatusOK = 200 StatusCreated = 201 StatusAccepted = 202 StatusNonAuthoritativeInfo = 203 StatusNoContent = 204 StatusResetContent = 205 StatusPartialContent = 206 StatusMultiStatus = 207 StatusAlreadyRepor...
24.652174
41
0.847737
0
0
0
0
0
0
0
0
15
0.008818
0603e6bbd9ecddad191163178ca4161b1b3decfd
1,064
py
Python
digsby/src/oscar/snac/family_x0a.py
ifwe/digsby
f5fe00244744aa131e07f09348d10563f3d8fa99
[ "Python-2.0" ]
35
2015-08-15T14:32:38.000Z
2021-12-09T16:21:26.000Z
digsby/src/oscar/snac/family_x0a.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
4
2015-09-12T10:42:57.000Z
2017-02-27T04:05:51.000Z
digsby/src/oscar/snac/family_x0a.py
niterain/digsby
16a62c7df1018a49eaa8151c0f8b881c7e252949
[ "Python-2.0" ]
15
2015-07-10T23:58:07.000Z
2022-01-23T22:16:33.000Z
import logging import oscar x0a_name="User lookup" log = logging.getLogger('oscar.snac.x0a') subcodes = {} def x0a_init(o, sock, cb): log.info('initializing') cb() log.info('finished initializing') def x0a_x01(o, sock, data): ''' SNAC (xa, x1): User lookup Family Error refere...
25.95122
75
0.62594
0
0
0
0
0
0
0
0
448
0.421053
060485709baa0b9492d85e40f90068c48154acf0
2,928
py
Python
setup.py
rochacon/punch
7f6fb81221049ab74ef561fb40a4174bdb3e77ef
[ "MIT" ]
null
null
null
setup.py
rochacon/punch
7f6fb81221049ab74ef561fb40a4174bdb3e77ef
[ "MIT" ]
null
null
null
setup.py
rochacon/punch
7f6fb81221049ab74ef561fb40a4174bdb3e77ef
[ "MIT" ]
null
null
null
#!/usr/bin/env python """setup.py Defines the setup instructions for the punch framework Copyright (C) 2016 Rodrigo Chacon 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, in...
39.04
112
0.663934
290
0.099044
0
0
0
0
0
0
1,876
0.64071
060586b3e64df98e8e03ed3e370e39181a0e31b4
13,664
py
Python
wellAnalysis.py
Jeffalltogether/well_decline_curve_analysis
0507813d85bdabbf52c4d92afec6af06e5228b26
[ "Apache-2.0" ]
53
2018-03-25T03:29:44.000Z
2022-01-28T16:18:14.000Z
wellAnalysis.py
Jeffalltogether/well_decline_curve_analysis
0507813d85bdabbf52c4d92afec6af06e5228b26
[ "Apache-2.0" ]
null
null
null
wellAnalysis.py
Jeffalltogether/well_decline_curve_analysis
0507813d85bdabbf52c4d92afec6af06e5228b26
[ "Apache-2.0" ]
34
2018-05-26T21:15:59.000Z
2021-11-11T09:07:56.000Z
''' Drilling info analysis This program reads well header data and production logs (e.g. exported from Drilling Info as .csv files) and walks the user through the genreation of decline curves for each well provided in the input data. Decine curves are fit with a the hyperbolic curve that is estimated using an iterativ...
35.490909
137
0.663422
9,079
0.664447
0
0
0
0
0
0
6,160
0.45082
0607341543b37f814977e95ae2726476134dd618
2,745
py
Python
manage.py
Zauberer2/touchresume
c558f6383722f289cf8087a15f6e049b4213c010
[ "MIT" ]
3
2020-02-25T04:18:22.000Z
2021-12-25T17:03:50.000Z
manage.py
Zauberer2/touchresume
c558f6383722f289cf8087a15f6e049b4213c010
[ "MIT" ]
3
2019-09-02T07:49:35.000Z
2021-12-19T17:46:31.000Z
manage.py
Zauberer2/touchresume
c558f6383722f289cf8087a15f6e049b4213c010
[ "MIT" ]
1
2021-12-23T18:11:07.000Z
2021-12-23T18:11:07.000Z
#!/usr/bin/env python import os import re import unittest from git import Repo from semver import match from click import option, argument, echo, ClickException from touchresume.cli import cli from touchresume import __version__ @cli.command(with_appcontext=False) @option('-d', '--dir', default='tests', help='Dire...
32.294118
78
0.668488
0
0
0
0
2,468
0.899089
0
0
805
0.29326
06076fc2131eb37f5f2f55c95d8358153da24655
485
py
Python
reb/scrape.py
vibya/Economic-Downturn
03df854f4c314d5a944cd99474b980a95f088f39
[ "MIT" ]
1
2018-09-18T01:07:53.000Z
2018-09-18T01:07:53.000Z
reb/scrape.py
aidinhass/reb
33fc9d9781e2c0fce8faa6240ec2d56899ee2c07
[ "MIT" ]
null
null
null
reb/scrape.py
aidinhass/reb
33fc9d9781e2c0fce8faa6240ec2d56899ee2c07
[ "MIT" ]
3
2018-09-18T01:08:01.000Z
2019-03-10T10:06:41.000Z
from reb.src import pynyt from reb.conf import APIKEY_NYT_ARTICLE nyt = pynyt.ArticleSearch(APIKEY_NYT_ARTICLE) nytArchive = pynyt.ArchiveApi(APIKEY_NYT_ARTICLE) # # get 1000 news articles from the Foreign newsdesk from 1987 # results_obama = nyt.query( # q='obama', # begin_date="20170101", # end_date="...
23.095238
62
0.692784
0
0
0
0
0
0
0
0
262
0.540206
06086e5e3711066ed31d842f20d1b8ffa81bf793
1,403
py
Python
cm/services/data/cvmfs.py
almahmoud/cloudman
41067dfd66c6334313069874f5f26e5a06884b71
[ "MIT" ]
1
2021-02-28T18:59:50.000Z
2021-02-28T18:59:50.000Z
cm/services/data/cvmfs.py
almahmoud/cloudman
41067dfd66c6334313069874f5f26e5a06884b71
[ "MIT" ]
null
null
null
cm/services/data/cvmfs.py
almahmoud/cloudman
41067dfd66c6334313069874f5f26e5a06884b71
[ "MIT" ]
null
null
null
"""A file system service for managing CVMFS-based client file systems.""" import os from cm.services import service_states import logging log = logging.getLogger('cloudman') class CVMFS(object): def __init__(self, filesystem, fs_type): self.fs = filesystem # File system encapsulating this implementati...
28.632653
79
0.605132
1,224
0.872416
0
0
0
0
0
0
457
0.325731
0609649120551f07f42eaf40f08ee2c468af7cdf
3,240
py
Python
regional.py
relet/pygeohashing
aa04b167f1f0d5a26a011073d3e97013328f209c
[ "MIT" ]
4
2018-06-13T22:28:20.000Z
2021-07-21T10:59:45.000Z
regional.py
relet/pygeohashing
aa04b167f1f0d5a26a011073d3e97013328f209c
[ "MIT" ]
3
2016-12-14T20:34:25.000Z
2021-10-29T23:43:13.000Z
regional.py
relet/pygeohashing
aa04b167f1f0d5a26a011073d3e97013328f209c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import re, web, datetime, hashlib, struct, yaml, sys, wikipedia import xml.etree.ElementTree as ET re_NUMERIC = re.compile("(-?\d+)[ ,]+(-?\d+)") re_NUMERICF = re.compile("(-?[\.\d]+)[ ,]+(-?[\.\d]+)") #fractions allowed re_EXPEDITION = re.compile('\[\[(\d{4}-\d{2}-\d{2} -?\d+ -?\d+)') def g...
29.454545
91
0.624074
0
0
0
0
0
0
0
0
829
0.255864
0609bb1f315036f7099bd541b54241e33b6fa051
1,034
py
Python
challenges/stack/nearest_smallest_element.py
lukasmartinelli/sharpen
6f314fc2aa17990ede04055e7c3ac9394a6c12c0
[ "CC0-1.0" ]
13
2017-04-24T23:27:16.000Z
2020-05-25T22:41:42.000Z
challenges/stack/nearest_smallest_element.py
lukasmartinelli/sharpen
6f314fc2aa17990ede04055e7c3ac9394a6c12c0
[ "CC0-1.0" ]
null
null
null
challenges/stack/nearest_smallest_element.py
lukasmartinelli/sharpen
6f314fc2aa17990ede04055e7c3ac9394a6c12c0
[ "CC0-1.0" ]
2
2017-05-27T08:55:28.000Z
2018-08-11T08:54:51.000Z
def nearest_smallest_element(arr): """ Given an array arr, find the nearest smaller element for each element. The index of the smaller element must be smaller than the current element. """ smaller_numbers = [] def nearest(n): def find_previous_num(): for previous_num in reve...
33.354839
85
0.636364
0
0
0
0
0
0
0
0
165
0.159574
060a86f44e032bdb0deaf25d27674c930c7491c8
3,385
py
Python
hooks/relations.py
projectcalico/charm-bird
3224e887329c527f6bed2520346e66fb4e795fe8
[ "Apache-2.0" ]
null
null
null
hooks/relations.py
projectcalico/charm-bird
3224e887329c527f6bed2520346e66fb4e795fe8
[ "Apache-2.0" ]
null
null
null
hooks/relations.py
projectcalico/charm-bird
3224e887329c527f6bed2520346e66fb4e795fe8
[ "Apache-2.0" ]
1
2022-03-16T16:12:32.000Z
2022-03-16T16:12:32.000Z
# -*- coding: utf-8 -*- ''' Relations for BIRD. ''' import socket import netaddr import netifaces from charmhelpers.core import hookenv from charmhelpers.core.services.helpers import RelationContext def router_id(): ''' Determine the router ID that should be used. This function uses the common logic of...
27.298387
74
0.578139
1,381
0.407976
732
0.216248
0
0
0
0
906
0.267651
060b2a571442e70a179db487667f330e3647e19a
1,136
py
Python
common/cache.py
govtrack/django-lorien-common
27241ff72536b442dfd64fad8589398b8a6e9f4d
[ "BSD-3-Clause" ]
1
2020-08-17T06:24:56.000Z
2020-08-17T06:24:56.000Z
common/cache.py
govtrack/django-lorien-common
27241ff72536b442dfd64fad8589398b8a6e9f4d
[ "BSD-3-Clause" ]
null
null
null
common/cache.py
govtrack/django-lorien-common
27241ff72536b442dfd64fad8589398b8a6e9f4d
[ "BSD-3-Clause" ]
null
null
null
from hashlib import sha1 from django.core.cache import cache from django.utils.encoding import smart_str def cached(key=None, timeout=300): """ Cache the result of function call. Args: key: the key with which value will be saved. If key is None then it is calculated automatically ...
32.457143
80
0.564261
0
0
0
0
0
0
0
0
357
0.314261
060d03c63bb8152f4e45ecb98502c75a5900990a
1,417
py
Python
dtecsv.py
varnav/dte-usage-plotter
cfeca2db8ccb4c4f0564d9f0b493edd26f68e1ca
[ "MIT" ]
null
null
null
dtecsv.py
varnav/dte-usage-plotter
cfeca2db8ccb4c4f0564d9f0b493edd26f68e1ca
[ "MIT" ]
null
null
null
dtecsv.py
varnav/dte-usage-plotter
cfeca2db8ccb4c4f0564d9f0b493edd26f68e1ca
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ 1. Go to: https://usage.dteenergy.com/?interval=hour 2. Download CSV 3. Run: python dtecsv.py .\electric_usage_report_05-31-2021_to_06-05-2021.csv """ import csv import datetime import click import matplotlib.pyplot as plt x = [] y = [] @click.command() @click.argument('file', type=c...
23.616667
104
0.614679
0
0
0
0
1,103
0.778405
0
0
752
0.530699
060ddb65bbe8989145f472ee9db47a8d7aff5843
12,598
py
Python
model_navigator/model_analyzer/profiler.py
triton-inference-server/model_navigator
ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7
[ "ECL-2.0", "Apache-2.0" ]
49
2021-04-09T18:32:07.000Z
2022-03-29T07:32:24.000Z
model_navigator/model_analyzer/profiler.py
triton-inference-server/model_navigator
ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7
[ "ECL-2.0", "Apache-2.0" ]
7
2021-07-13T09:00:12.000Z
2021-11-15T17:16:35.000Z
model_navigator/model_analyzer/profiler.py
triton-inference-server/model_navigator
ec2915f4f5a6b9ed7e1b59290899e2b56b98bcc7
[ "ECL-2.0", "Apache-2.0" ]
7
2021-04-09T18:31:56.000Z
2022-03-01T08:08:04.000Z
# Copyright (c) 2021, NVIDIA CORPORATION. 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 applic...
44.992857
115
0.710192
10,644
0.844896
0
0
104
0.008255
0
0
2,029
0.161057
061117f2066d00451f5045f7338796a6dddd1a21
906
py
Python
IOPool/Input/test/PrePool2FileInputTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
IOPool/Input/test/PrePool2FileInputTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
IOPool/Input/test/PrePool2FileInputTest_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
# The following comments couldn't be translated into the new config version: # Test storing OtherThing as well # Configuration file for PrePoolInputTest import FWCore.ParameterSet.Config as cms process = cms.Process("TEST2ND") process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") #process.maxEvents = cms.un...
28.3125
91
0.733996
0
0
0
0
0
0
0
0
459
0.506623
0611b8f8b1f08d15f75771f8b58463a12ef35fc0
24,165
py
Python
scripts/old_scripts/compare_svo_multiple.py
noambuckman/mpc-multiple-vehicles
a20949c335f1af97962569eed112e6cef46174d9
[ "MIT" ]
1
2021-11-02T15:16:17.000Z
2021-11-02T15:16:17.000Z
scripts/old_scripts/compare_svo_multiple.py
noambuckman/mpc-multiple-vehicles
a20949c335f1af97962569eed112e6cef46174d9
[ "MIT" ]
5
2021-04-14T17:08:59.000Z
2021-05-27T21:41:02.000Z
scripts/old_scripts/compare_svo_multiple.py
noambuckman/mpc-multiple-vehicles
a20949c335f1af97962569eed112e6cef46174d9
[ "MIT" ]
2
2022-02-07T08:16:05.000Z
2022-03-09T23:30:17.000Z
import datetime import os, sys import numpy as np import matplotlib.pyplot as plt import casadi as cas ##### For viewing the videos in Jupyter Notebook import io import base64 from IPython.display import HTML # from ..</src> import car_plotting # from .import src.car_plotting PROJECT_PATH = '/home/nbuckman/Dropbox (...
39.679803
192
0.665798
0
0
0
0
0
0
0
0
10,060
0.416305
0613ddb7599b3120261ade10d3011d5c27649921
2,082
py
Python
AI_maker/celule_leucemie.py
pamintandrei/Tiroidaptinfoed
2671f219de2ef8ecf68ae7a932ed82462365d889
[ "MIT" ]
5
2019-06-10T10:42:22.000Z
2019-07-10T14:05:13.000Z
AI_maker/celule_leucemie.py
pamintandrei/Tiroidaptinfoed
2671f219de2ef8ecf68ae7a932ed82462365d889
[ "MIT" ]
null
null
null
AI_maker/celule_leucemie.py
pamintandrei/Tiroidaptinfoed
2671f219de2ef8ecf68ae7a932ed82462365d889
[ "MIT" ]
2
2018-08-30T14:36:20.000Z
2019-06-17T13:07:18.000Z
import numpy as np from tensorflow.keras.callbacks import TensorBoard import cv2 import sys import threading import keras from keras.layers import Conv2D,Dense,MaxPooling2D,Flatten,BatchNormalization,Dropout from IPython.display import display from PIL import Image import tensorflow as tf np.random.seed(1) with tf.dev...
50.780488
146
0.739193
0
0
0
0
0
0
0
0
280
0.134486
061412d3ce5243bc277fe70e0a5760f272906364
233
py
Python
Django/env_python3.6.1/Lib/site-packages/setupfiles/__init__.py
archu2020/python-2
19c626ca9fd37168db8a7ac075fd80c8e2971313
[ "Apache-2.0" ]
48
2017-12-24T12:19:55.000Z
2022-02-26T13:14:27.000Z
Django/env_python3.6.1/Lib/site-packages/setupfiles/__init__.py
17610178081/python
3975c678d985c468deecd03560d882e9d316bb63
[ "Apache-2.0" ]
6
2017-11-10T19:45:18.000Z
2017-11-12T14:50:42.000Z
Django/env_python3.6.1/Lib/site-packages/setupfiles/__init__.py
17610178081/python
3975c678d985c468deecd03560d882e9d316bb63
[ "Apache-2.0" ]
113
2017-08-09T03:10:04.000Z
2022-03-26T16:05:01.000Z
#!/usr/bin/env python import distutils from setupfiles.dist import DistributionMetadata from setupfiles.setup import setup __all__ = ["setup"] distutils.dist.DistributionMetadata = DistributionMetadata distutils.core.setup = setup
23.3
58
0.824034
0
0
0
0
0
0
0
0
28
0.120172
06155bb97d79c4a708e108ac4d37d0955dc2bd9c
3,002
py
Python
test.py
mricaldone/Gramatica
a7e2ff933fe875f5b8a95338c2c312f403ba5679
[ "MIT" ]
null
null
null
test.py
mricaldone/Gramatica
a7e2ff933fe875f5b8a95338c2c312f403ba5679
[ "MIT" ]
null
null
null
test.py
mricaldone/Gramatica
a7e2ff933fe875f5b8a95338c2c312f403ba5679
[ "MIT" ]
null
null
null
import Gramatica def testSeparadorDeSilabas(entrada, esperado): try: salida = Gramatica.separarEnSilabas(entrada) except Gramatica.NoHayVocal: print("[ERROR]","Salida esperada:", "\"" + esperado + "\"", "|", "Salida obtenida:", "Excepcion: No hay vocal") return if esperado != salid...
50.033333
134
0.72052
0
0
0
0
0
0
0
0
1,420
0.469887
061561270f389e6138b7861cea448dfbc7f9b7ae
1,201
py
Python
web/scripts/minify_json.py
albertomh/SqueezeCompass
30365fd6f1bf8ceca2c2fa7e4c8e15d4d9a85f1f
[ "MIT" ]
null
null
null
web/scripts/minify_json.py
albertomh/SqueezeCompass
30365fd6f1bf8ceca2c2fa7e4c8e15d4d9a85f1f
[ "MIT" ]
null
null
null
web/scripts/minify_json.py
albertomh/SqueezeCompass
30365fd6f1bf8ceca2c2fa7e4c8e15d4d9a85f1f
[ "MIT" ]
null
null
null
# # Minify JSON data files in the `/dist` directory. # Script invoked by the npm postbuild script after building the project with `npm run build`. # from os import ( path, listdir, fsdecode ) import json from datetime import datetime class JSONMinifier: DIST_CONSTITUENT_DATA_DIRECTORY = path.abspath(...
34.314286
117
0.623647
761
0.633639
0
0
0
0
0
0
291
0.242298
ae044bb52fdc9d56a4ae83f40e90c43b75adb5a4
13,751
py
Python
CPU-Name.py
acidburn0zzz/CPU-Name
2322da712a9ac47f38f22a43bf9bcbc0240e062b
[ "MIT" ]
1
2021-11-30T18:35:46.000Z
2021-11-30T18:35:46.000Z
CPU-Name.py
acidburn0zzz/CPU-Name
2322da712a9ac47f38f22a43bf9bcbc0240e062b
[ "MIT" ]
null
null
null
CPU-Name.py
acidburn0zzz/CPU-Name
2322da712a9ac47f38f22a43bf9bcbc0240e062b
[ "MIT" ]
null
null
null
import subprocess import platform from Scripts import plist, utils class CPUName: def __init__(self, **kwargs): self.u = utils.Utils("CPU-Name") self.plist_path = None self.plist_data = {} self.clear_empty = True self.detected = self.detect_cores() self.cpu_model = s...
49.464029
172
0.563304
13,658
0.993237
0
0
0
0
0
0
3,719
0.270453
ae046c38a2e79a1620b18d8e95f3afd8af8e8031
3,853
py
Python
solvcon/parcel/gasplus/probe.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
16
2015-12-09T02:54:42.000Z
2021-04-20T11:26:39.000Z
solvcon/parcel/gasplus/probe.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
95
2015-12-09T00:49:40.000Z
2022-02-14T13:34:55.000Z
solvcon/parcel/gasplus/probe.py
j8xixo12/solvcon
a8bf3a54d4b1ed91d292e0cdbcb6f2710d33d99a
[ "BSD-3-Clause" ]
13
2015-05-08T04:16:42.000Z
2021-01-15T09:28:06.000Z
# -*- coding: UTF-8 -*- # # Copyright (c) 2016, Yung-Yu Chen <[email protected]> # BSD 3-Clause License, see COPYING import os import numpy as np import solvcon as sc class Probe(object): """ Represent a point in the mesh. """ def __init__(self, *args, **kw): self.speclst = kw.pop('speclst'...
30.101563
79
0.534908
3,608
0.936413
0
0
0
0
0
0
459
0.119128
ae055c5b84f622a233b0f246dba69a36833cf570
134
py
Python
topCoder/srms/200s/srm270/div2/buying_cheap.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
25
2015-01-21T16:39:18.000Z
2021-05-24T07:01:24.000Z
topCoder/srms/200s/srm270/div2/buying_cheap.py
gauravsingh58/algo
397859a53429e7a585e5f6964ad24146c6261326
[ "WTFPL" ]
2
2020-09-30T19:39:36.000Z
2020-10-01T17:15:16.000Z
topCoder/srms/200s/srm270/div2/buying_cheap.py
ferhatelmas/algo
a7149c7a605708bc01a5cd30bf5455644cefd04d
[ "WTFPL" ]
15
2015-01-21T16:39:27.000Z
2020-10-01T17:00:22.000Z
class BuyingCheap: def thirdBestPrice(self, prices): ls = sorted(set(prices)) return -1 if len(ls) < 3 else ls[2]
26.8
43
0.61194
133
0.992537
0
0
0
0
0
0
0
0
ae059eac36d79675fbab914a2bbf4174d3306bb6
8,600
py
Python
data/dataset.py
1chimaruGin/EfficientDet
8adf636db1f7c5c64b65c1e897a0d18f682e6251
[ "Apache-2.0" ]
9
2020-09-02T09:53:04.000Z
2022-01-16T11:16:57.000Z
data/dataset.py
1chimaruGin/EfficientDet
8adf636db1f7c5c64b65c1e897a0d18f682e6251
[ "Apache-2.0" ]
null
null
null
data/dataset.py
1chimaruGin/EfficientDet
8adf636db1f7c5c64b65c1e897a0d18f682e6251
[ "Apache-2.0" ]
1
2021-06-15T15:55:46.000Z
2021-06-15T15:55:46.000Z
""" COCO dataset (quick and dirty) Hacked together by Ross Wightman """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import torch.utils.data as data import os import cv2 import random import torch import numpy as np from PIL import Image from pycocotool...
37.391304
136
0.546395
8,257
0.960116
0
0
0
0
0
0
1,143
0.132907
ae06e563dacfb2f601bc91857ad8c0255bdbcc8b
1,292
py
Python
env/Lib/site-packages/OpenGL/GLES2/EXT/sRGB_write_control.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
env/Lib/site-packages/OpenGL/GLES2/EXT/sRGB_write_control.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
env/Lib/site-packages/OpenGL/GLES2/EXT/sRGB_write_control.py
5gconnectedbike/Navio2
8c3f2b5d8bbbcea1fc08739945183c12b206712c
[ "BSD-3-Clause" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
'''OpenGL extension EXT.sRGB_write_control This module customises the behaviour of the OpenGL.raw.GLES2.EXT.sRGB_write_control to provide a more Python-friendly API Overview (from the spec) This extension's intent is to expose new functionality which allows an application the ability to decide if the conversion...
39.151515
76
0.813467
0
0
0
0
0
0
0
0
894
0.69195
ae074bc52a086a244bf599cb6b758a858b0ae56e
241
py
Python
cgn_framework/imagenet/models/__init__.py
anonymous-user-256/mlrc-cgn
64f43fcb89b3a13c0ae46db4f19060d9f204a6b1
[ "MIT" ]
78
2021-01-15T09:22:21.000Z
2022-03-06T12:15:36.000Z
cgn_framework/imagenet/models/__init__.py
anonymous-user-256/mlrc-cgn
64f43fcb89b3a13c0ae46db4f19060d9f204a6b1
[ "MIT" ]
3
2021-03-26T07:33:16.000Z
2022-01-17T14:49:51.000Z
cgn_framework/imagenet/models/__init__.py
anonymous-user-256/mlrc-cgn
64f43fcb89b3a13c0ae46db4f19060d9f204a6b1
[ "MIT" ]
14
2021-01-17T10:08:49.000Z
2022-01-14T06:32:11.000Z
from imagenet.models.biggan import BigGAN from imagenet.models.u2net import U2NET from imagenet.models.cgn import CGN from imagenet.models.classifier_ensemble import InvariantEnsemble __all__ = [ CGN, InvariantEnsemble, BigGAN, U2NET ]
26.777778
65
0.821577
0
0
0
0
0
0
0
0
0
0
ae07a130b3eed404ad6c84e0c2e825a8a33c151b
595
bzl
Python
source/bazel/deps/osdialog/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
33
2019-05-30T07:43:32.000Z
2021-12-30T13:12:32.000Z
source/bazel/deps/osdialog/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
371
2019-05-16T15:23:50.000Z
2021-09-04T15:45:27.000Z
source/bazel/deps/osdialog/get.bzl
luxe/unilang
6c8a431bf61755f4f0534c6299bd13aaeba4b69e
[ "MIT" ]
6
2019-08-22T17:37:36.000Z
2020-11-07T07:15:32.000Z
# Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def osdialog(): http_archive( name="osdialog" , build_file="//bazel/deps/osdialog:build.BUILD" , sha256="3fc6dabcf...
35
106
0.714286
0
0
0
0
0
0
0
0
419
0.704202
ae091378dcfbc21471f5642e52eb0d041d0b3c94
529
py
Python
src/dnsblock_update/config.py
raynigon/dnsblock-update
258ca7c9934d21e6367ab2b282b24be5c06d9116
[ "Apache-2.0" ]
null
null
null
src/dnsblock_update/config.py
raynigon/dnsblock-update
258ca7c9934d21e6367ab2b282b24be5c06d9116
[ "Apache-2.0" ]
null
null
null
src/dnsblock_update/config.py
raynigon/dnsblock-update
258ca7c9934d21e6367ab2b282b24be5c06d9116
[ "Apache-2.0" ]
null
null
null
from yaml import safe_load from .blocklist import Blocklist class Configuration: def __init__(self, location): self.__location = location with open(location) as file: data = safe_load(file) self.repo_path = data["repository"]["path"] self.dnsmasq_path = data["dnsmasq"][...
35.266667
82
0.644612
468
0.884688
0
0
0
0
0
0
92
0.173913
ae09bb3a14c1ed49e2d5726423fbf824ac0d0220
5,532
py
Python
pySPACE/run/scripts/md_creator.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
32
2015-02-20T09:03:09.000Z
2022-02-25T22:32:52.000Z
pySPACE/run/scripts/md_creator.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
5
2015-05-18T15:08:40.000Z
2020-03-05T19:18:01.000Z
pySPACE/run/scripts/md_creator.py
pyspace/pyspace
763e62c0e7fa7cfcb19ccee1a0333c4f7e68ae62
[ "BSD-3-Clause" ]
18
2015-09-28T07:16:38.000Z
2021-01-20T13:52:19.000Z
""" Create meta data file 'metadata.yaml' for :class:`~pySPACE.resources.dataset_defs.feature_vector.FeatureVectorDataset` Used for external files, which can not be read directly in pySPACE. Eg. csv files without names. To be called in the dataset directory. """ def main(md_file): # Request all necessary data fr...
33.731707
122
0.537419
0
0
0
0
0
0
0
0
2,050
0.370571
ae0b04625ca9a862eb715fd13d3b553a6fb19211
12,715
py
Python
test/abstract_lut_test.py
sgtm/ColorPipe-tools
971b546f77b0d1a6e5ee3aa7e4077a9d41c6e59b
[ "BSD-3-Clause" ]
1
2021-06-21T13:35:20.000Z
2021-06-21T13:35:20.000Z
test/abstract_lut_test.py
sgtm/ColorPipe-tools
971b546f77b0d1a6e5ee3aa7e4077a9d41c6e59b
[ "BSD-3-Clause" ]
null
null
null
test/abstract_lut_test.py
sgtm/ColorPipe-tools
971b546f77b0d1a6e5ee3aa7e4077a9d41c6e59b
[ "BSD-3-Clause" ]
null
null
null
""" Testing Abstract LUT model """ import unittest import os import shutil import tempfile from PyOpenColorIO.Constants import INTERP_LINEAR, INTERP_TETRAHEDRAL from utils import lut_presets as presets from utils.lut_presets import PresetException, OUT_BITDEPTH import utils.abstract_lut_helper as alh from utils.colors...
42.811448
83
0.533464
11,851
0.932049
0
0
0
0
0
0
1,496
0.117656
ae0e1342adc959978ce2df9edec93bd093cab6fe
4,704
py
Python
booktracker.py
stonewell/booktracker
8fc324f10b4bc9d8a0a22a40871282bbef00e5ad
[ "MIT" ]
null
null
null
booktracker.py
stonewell/booktracker
8fc324f10b4bc9d8a0a22a40871282bbef00e5ad
[ "MIT" ]
null
null
null
booktracker.py
stonewell/booktracker
8fc324f10b4bc9d8a0a22a40871282bbef00e5ad
[ "MIT" ]
null
null
null
import argparse import sys import logging import json def args_parser(): parser = argparse.ArgumentParser(prog='booktracker', description='book update tracker in python') parser.add_argument('-f', '--urls_file', type=argparse.FileType('r'), help='a file contains book urls,...
40.904348
199
0.60119
0
0
0
0
0
0
0
0
815
0.173257
ae0e3edf6f720a4fb2dd231e188dd1e1fa7fe663
667
py
Python
06-python-functions-1.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
06-python-functions-1.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
06-python-functions-1.py
reysmerwvr/python-playgrounds
1e039639d96044986ba5cc894a210180cc2b08e0
[ "MIT" ]
null
null
null
import math def rectangle_area(b=None, h=None): if b is None or b is None: print("Error wrong parameters") return return b * h def circle_area(radium): return (radium ** 2) * math.pi print(circle_area(5)) def intermediate_number(a, b): return (a + b) / 2 print(intermediate_numb...
16.675
39
0.610195
0
0
0
0
0
0
0
0
24
0.035982
ae0ef85218f1bd293decfce58f18a3dbb6559d3c
3,647
py
Python
cloudfront/resource.py
iPlantCollaborativeOpenSource/iPlant-Atmosphere
d67b953561e813dd30ffa52c8440af7cc2d990cf
[ "Unlicense" ]
1
2017-10-05T08:03:37.000Z
2017-10-05T08:03:37.000Z
cloudfront/resource.py
iPlantCollaborativeOpenSource/iPlant-Atmosphere
d67b953561e813dd30ffa52c8440af7cc2d990cf
[ "Unlicense" ]
null
null
null
cloudfront/resource.py
iPlantCollaborativeOpenSource/iPlant-Atmosphere
d67b953561e813dd30ffa52c8440af7cc2d990cf
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python # # Copyright (c) 2010, iPlant Collaborative, University of Arizona, Cold Spring Harbor Laboratories, University of Texas at Austin # This software is licensed under the CC-GNU GPL version 2.0 or later. # License: http://creativecommons.org/licenses/GPL/2.0/ # # Author: Seung-jin Kim # Contact: s...
32.855856
158
0.716753
0
0
0
0
0
0
0
0
1,038
0.284617
ae0f034944c35cf482cef502709dd21969753521
554
py
Python
py/jsontoimgmd_all.py
zhouhaixian/Twikoo-Magic
e5ff88bfb58ab97ffa9c395ab302e696ddefc66f
[ "MIT" ]
59
2021-01-06T01:32:07.000Z
2022-03-26T04:56:46.000Z
py/jsontoimgmd_all.py
zhouhaixian/Twikoo-Magic
e5ff88bfb58ab97ffa9c395ab302e696ddefc66f
[ "MIT" ]
5
2021-01-14T17:31:12.000Z
2022-03-26T05:25:40.000Z
py/jsontoimgmd_all.py
zhouhaixian/Twikoo-Magic
e5ff88bfb58ab97ffa9c395ab302e696ddefc66f
[ "MIT" ]
22
2021-02-15T12:06:59.000Z
2022-02-11T05:51:43.000Z
import json import os classlist = os.listdir("./image/") for classname in classlist: # "./Classification/"+classname+"/" try: os.mkdir("./Classification/"+classname+"/") except: pass filenamelist = os.listdir("./image/"+classname) url = "https://cdn.jsdelivr.net/gh/2x-ercha/twikoo-magic/image/" +...
30.777778
86
0.606498
0
0
0
0
0
0
0
0
196
0.353791
ae0f418d25ef8016cb9f505cbfcc08043b51e1d4
4,964
py
Python
calculator.py
xizhongzhao/challenge5
fd4535479a0466eb0dec3c5f0078efea5fa40401
[ "BSD-3-Clause" ]
null
null
null
calculator.py
xizhongzhao/challenge5
fd4535479a0466eb0dec3c5f0078efea5fa40401
[ "BSD-3-Clause" ]
null
null
null
calculator.py
xizhongzhao/challenge5
fd4535479a0466eb0dec3c5f0078efea5fa40401
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import sys from multiprocessing import Queue,Process,Lock from datetime import datetime import getopt import configparser class Config(object): def __init__(self,filename,arg='DEFAULT'): self._filename = filename self._arg = arg self._obj = configparser.ConfigParser(...
27.88764
91
0.52357
2,479
0.499396
0
0
1,764
0.355359
0
0
393
0.07917
ae0f8d2404360860d62fb249f2d3aa6934c5170c
1,730
py
Python
scripts/financials.py
pwaring/125-accounts
a8d577110184e5f833368977c36b1e407c7357f6
[ "MIT" ]
null
null
null
scripts/financials.py
pwaring/125-accounts
a8d577110184e5f833368977c36b1e407c7357f6
[ "MIT" ]
7
2017-04-30T11:11:26.000Z
2020-09-24T15:23:24.000Z
scripts/financials.py
pwaring/125-accounts
a8d577110184e5f833368977c36b1e407c7357f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import yaml import pathlib import decimal import datetime import os decimal.getcontext().prec = 10 parser = argparse.ArgumentParser() parser.add_argument('--data', help='path to data directory', required=True) args = parser.parse_args() script_path = os.path.dirname(os.path.re...
28.833333
181
0.695954
0
0
0
0
0
0
0
0
457
0.264162
ae10738b2828081524171edff4d9e154279c3a52
4,131
py
Python
index.py
welshonion/GB_Tweet_Eraser
5ba77864e12bbdfc0f44fd417e1584a672120dd6
[ "MIT" ]
null
null
null
index.py
welshonion/GB_Tweet_Eraser
5ba77864e12bbdfc0f44fd417e1584a672120dd6
[ "MIT" ]
null
null
null
index.py
welshonion/GB_Tweet_Eraser
5ba77864e12bbdfc0f44fd417e1584a672120dd6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #for local #import config #config.write_environ() import os,json from flask import Flask, render_template, request, redirect, url_for, session from requests_oauthlib import OAuth1Session from datetime import timedelta import twitter_auth import twitter_delete import postTweet import databaseI...
27
139
0.641007
0
0
0
0
2,726
0.656393
0
0
1,613
0.388394
ae111d2701de32e61ae648826dd4e4b4b1370654
882
py
Python
angr-management/angrmanagement/ui/menus/disasm_insn_context_menu.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
angr-management/angrmanagement/ui/menus/disasm_insn_context_menu.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
angr-management/angrmanagement/ui/menus/disasm_insn_context_menu.py
Ruide/angr-dev
964dc80c758e25c698c2cbcc454ef5954c5fa0a0
[ "BSD-2-Clause" ]
null
null
null
from PySide.QtGui import QKeySequence from PySide.QtCore import Qt from .menu import Menu, MenuEntry, MenuSeparator class DisasmInsnContextMenu(Menu): def __init__(self, disasm_view): super(DisasmInsnContextMenu, self).__init__("", parent=disasm_view) self.insn_addr = None self.entries....
32.666667
107
0.717687
762
0.863946
0
0
64
0.072562
0
0
71
0.080499
ae11598e927b79f190c3f53d990ca4e8744816b6
21,209
py
Python
shades/shades.py
benrrutter/Shades
06c1d2e9b7ba6044892a6bf7529e706574fb923c
[ "MIT" ]
1
2020-11-28T19:41:39.000Z
2020-11-28T19:41:39.000Z
shades/shades.py
benrrutter/Shades
06c1d2e9b7ba6044892a6bf7529e706574fb923c
[ "MIT" ]
null
null
null
shades/shades.py
benrrutter/Shades
06c1d2e9b7ba6044892a6bf7529e706574fb923c
[ "MIT" ]
null
null
null
""" shades contains classes and functions relating to Shades' shade object """ from abc import ABC, abstractmethod from typing import Tuple, List import numpy as np from PIL import Image from .noise_fields import NoiseField, noise_fields from .utils import color_clamp class Shade(ABC): """ An Abstract bas...
34.768852
95
0.588571
20,912
0.985997
0
0
182
0.008581
0
0
6,174
0.291103
ae131115e85d42f0478a7f770cbcfcd854b30f6f
4,104
py
Python
BCAWT/CA.py
AliYoussef96/BCAW-Tool
a296a52f8795325f08e0c6f00838b9e851f9459e
[ "MIT" ]
3
2019-10-22T07:08:40.000Z
2021-07-27T14:12:25.000Z
BCAWT/CA.py
AliYoussef96/BCAW-Tool
a296a52f8795325f08e0c6f00838b9e851f9459e
[ "MIT" ]
13
2019-06-26T07:21:25.000Z
2021-07-23T15:01:31.000Z
BCAWT/CA.py
AliYoussef96/BCAW-Tool
a296a52f8795325f08e0c6f00838b9e851f9459e
[ "MIT" ]
3
2019-07-25T00:13:36.000Z
2020-09-25T01:58:34.000Z
def CA(file): """correspondence analysis. Args: file (directory): csv file contains genes' RSCU values Returns: - csv file contains genes' values for the first 4 axes of the correspondence analysis result - csv file contains codons' values for the first 4 axes o...
32.832
157
0.615497
0
0
0
0
0
0
0
0
1,346
0.327973
ae131e4cfe7f41c7e3b760f7d7833d99b7a223bd
32
py
Python
renderchan/__init__.py
decipher-media/RenderChan
6aa6b90403f87e8aa41cc487c62ad8e4ac149a6a
[ "BSD-3-Clause" ]
30
2015-02-12T13:21:30.000Z
2019-12-09T07:29:47.000Z
renderchan/__init__.py
decipher-media/RenderChan
6aa6b90403f87e8aa41cc487c62ad8e4ac149a6a
[ "BSD-3-Clause" ]
53
2015-12-20T17:04:00.000Z
2019-11-11T07:54:50.000Z
renderchan/__init__.py
decipher-media/RenderChan
6aa6b90403f87e8aa41cc487c62ad8e4ac149a6a
[ "BSD-3-Clause" ]
7
2015-08-10T01:38:28.000Z
2020-02-14T20:06:28.000Z
""" Main RenderChan package """
8
23
0.65625
0
0
0
0
0
0
0
0
31
0.96875
ae149f58a8d124a1863b191cb6116f6a91fb3bc3
5,110
py
Python
test/test_package.py
TheJacksonLaboratory/chia_rep
fe774259bfa3a045cc5189c61110a07c8f5eaa26
[ "MIT" ]
1
2019-09-14T02:44:40.000Z
2019-09-14T02:44:40.000Z
test/test_package.py
TheJacksonLaboratory/chia_rep
fe774259bfa3a045cc5189c61110a07c8f5eaa26
[ "MIT" ]
null
null
null
test/test_package.py
TheJacksonLaboratory/chia_rep
fe774259bfa3a045cc5189c61110a07c8f5eaa26
[ "MIT" ]
1
2021-07-10T12:00:05.000Z
2021-07-10T12:00:05.000Z
import sys import os import shutil sys.path.append('.') import chia_rep def test_filter_peaks(): sample_dict = chia_rep.read_data('test/sample_input_file.txt', 'test/test_files/hg38.chrom.sizes', output_dir='test/output') for sample in...
39.921875
79
0.626027
0
0
0
0
0
0
0
0
2,204
0.431311
ae14d95fbddd637652559526a0abec1bcbb1d2a1
4,343
py
Python
src/jibo_animation_ui.py
marketneutral/jibo-teleop
dce5e131a364b2dc8108dd766a74cb7547077eed
[ "MIT" ]
3
2019-06-03T15:12:15.000Z
2019-06-24T03:44:40.000Z
src/jibo_animation_ui.py
marketneutral/jibo-teleop
dce5e131a364b2dc8108dd766a74cb7547077eed
[ "MIT" ]
null
null
null
src/jibo_animation_ui.py
marketneutral/jibo-teleop
dce5e131a364b2dc8108dd766a74cb7547077eed
[ "MIT" ]
1
2019-04-24T13:15:57.000Z
2019-04-24T13:15:57.000Z
# Jacqueline Kory Westlund # May 2016 # # The MIT License (MIT) # # Copyright (c) 2016 Personal Robots Group # # 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 w...
39.844037
125
0.686162
3,009
0.692839
0
0
0
0
0
0
2,018
0.464656
ae14fd8d5a20f5e39dfb519bebc015197b1abd83
7,470
py
Python
scans/migrations/0001_initial.py
Cashiuus/nmap-manager
6d53bb4464f6b74ca40d5685a44f36942e5462b0
[ "MIT" ]
null
null
null
scans/migrations/0001_initial.py
Cashiuus/nmap-manager
6d53bb4464f6b74ca40d5685a44f36942e5462b0
[ "MIT" ]
9
2022-01-25T05:27:42.000Z
2022-03-31T05:30:02.000Z
scans/migrations/0001_initial.py
Cashiuus/nmap-manager
6d53bb4464f6b74ca40d5685a44f36942e5462b0
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-11 19:00 from django.db import migrations, models import django.db.models.deletion import scans.models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Host', ...
63.305085
158
0.6
7,324
0.980455
0
0
0
0
0
0
1,984
0.265596
ae160d8656b4e6e4a094903dfd38d5d1ed77aedf
1,447
py
Python
es_common/command/check_reservations_command.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
1
2021-03-07T12:36:13.000Z
2021-03-07T12:36:13.000Z
es_common/command/check_reservations_command.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
null
null
null
es_common/command/check_reservations_command.py
ES-TUDelft/interaction-design-tool-ir
d6fffa8d76c9e3df4ed1f505ee9427e5af5b8082
[ "MIT" ]
1
2021-02-20T15:10:37.000Z
2021-02-20T15:10:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # ** # # ======================== # # CHECK_RESERVATIONS_COMMAND # # ======================== # # Command for checking reservations. # # @author ES # ** import logging from collections import OrderedDict from es_common.command.es_command import ESCommand from es_common.enu...
24.525424
91
0.591569
1,086
0.750518
0
0
0
0
0
0
395
0.272979
ae16f26a49eb3ff276ad91bfaa98b238072f3c5f
2,471
py
Python
mr/hermes/tests.py
dokai/mr.hermes
a7809af6ebeebc7e2df4aea7d69c571e78abce03
[ "MIT" ]
null
null
null
mr/hermes/tests.py
dokai/mr.hermes
a7809af6ebeebc7e2df4aea7d69c571e78abce03
[ "MIT" ]
null
null
null
mr/hermes/tests.py
dokai/mr.hermes
a7809af6ebeebc7e2df4aea7d69c571e78abce03
[ "MIT" ]
null
null
null
# coding: utf-8 from email.mime.text import MIMEText from email.parser import Parser import os import pytest @pytest.fixture def debugsmtp(request, tmpdir): from mr.hermes import DebuggingServer debugsmtp = DebuggingServer(('localhost', 0), ('localhost', 0)) debugsmtp.path = str(tmpdir) yield debugsmt...
29.070588
79
0.631728
0
0
471
0.190457
1,006
0.406793
0
0
445
0.179943
ae18dc2b432f7078f03eeb502869d0c99af4f1dd
21,967
py
Python
src/lib/pipeline.py
nelhage/data
50a1ab91b786c9f89a8ff6ff10ea57ea5335490d
[ "Apache-2.0" ]
null
null
null
src/lib/pipeline.py
nelhage/data
50a1ab91b786c9f89a8ff6ff10ea57ea5335490d
[ "Apache-2.0" ]
1
2022-03-02T14:54:27.000Z
2022-03-02T14:54:27.000Z
src/lib/pipeline.py
nelhage/data
50a1ab91b786c9f89a8ff6ff10ea57ea5335490d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
42.489362
99
0.628488
20,592
0.937406
0
0
1,802
0.082032
0
0
9,058
0.412346