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
4d52174dea07f449946604a9e3b3a0ae9531e302
436
py
Python
build/lib/more/scikit_helper/common.py
ngupta23/more
c8d867d280c5c88be7d1ddfac37ff670a2dcaa29
[ "MIT" ]
6
2019-07-18T20:26:30.000Z
2021-06-10T17:20:19.000Z
more/scikit_helper/common.py
ngupta23/more
c8d867d280c5c88be7d1ddfac37ff670a2dcaa29
[ "MIT" ]
null
null
null
more/scikit_helper/common.py
ngupta23/more
c8d867d280c5c88be7d1ddfac37ff670a2dcaa29
[ "MIT" ]
null
null
null
# For Time Logging import time from contextlib import contextmanager import logging @contextmanager # Timing Function def time_usage(name=""): """ log the time usage in a code block """ # print ("In time_usage runID = {}".format(runID)) start = time.time() yield end = time.time() elaps...
22.947368
71
0.651376
0
0
315
0.722477
349
0.800459
0
0
174
0.399083
4d52bec8cefe73d9a93266481e15f6cb3b5e3a2d
416
py
Python
preprocess/rename.py
pprp/faster-rcnn.Supernova
583bc9f6efd80d5a7fa88189a1c817d92d6018a6
[ "MIT" ]
15
2019-04-19T12:40:09.000Z
2020-06-03T07:56:37.000Z
preprocess/rename.py
Zxl19990529/faster-rcnn.Supernova
583bc9f6efd80d5a7fa88189a1c817d92d6018a6
[ "MIT" ]
2
2019-04-19T13:21:44.000Z
2020-06-03T07:49:31.000Z
preprocess/rename.py
Zxl19990529/faster-rcnn.Supernova
583bc9f6efd80d5a7fa88189a1c817d92d6018a6
[ "MIT" ]
5
2019-04-19T13:06:22.000Z
2021-01-19T03:31:58.000Z
import os import shutil path = './ALL/' outpath = "./rename/" outb = "./b/" outc = "./c/" for f in os.listdir(path): print(f) name,ext = os.path.splitext(f) a,ext2 = name.split('_') if ext2.endswith('b'): print(outb+f) shutil.copy(path+f,outb+f) elif ext2.endswith('c'): prin...
21.894737
38
0.567308
0
0
0
0
0
0
0
0
74
0.177885
4d54d76c9267e5c02660af45e6cfbf3a771acab1
970
py
Python
FALL/core/port_scanner.py
DevanshRaghav75/FALL
643c19db18d76b850e427c026ff54dae547e69a5
[ "MIT" ]
1
2021-06-22T10:43:12.000Z
2021-06-22T10:43:12.000Z
FALL/core/port_scanner.py
DevanshRaghav75/FALL
643c19db18d76b850e427c026ff54dae547e69a5
[ "MIT" ]
2
2021-06-23T01:47:59.000Z
2021-06-25T12:07:02.000Z
FALL/core/port_scanner.py
DevanshRaghav75/FALL
643c19db18d76b850e427c026ff54dae547e69a5
[ "MIT" ]
null
null
null
import socket import threading import concurrent.futures from colorama import Fore, Style def port_scanner(): print_lock = threading.Lock() print('') ip = input(Fore.CYAN + "[PORT_SCANNER]" + Style.RESET_ALL + "[>] Target: ") port_range = input(Fore.CYAN + "[PORT_SCANNER]" + Style.RESET_ALL + "[>] Sca...
31.290323
159
0.609278
0
0
0
0
0
0
0
0
147
0.151546
4d54e80804f63b1496a93c52549fb653034591c2
3,720
py
Python
ui/main_window.py
Iorveth/min_surfaces_modelling
279a091e12f98c0a7fc8054c6eadaafaec5a1258
[ "MIT" ]
null
null
null
ui/main_window.py
Iorveth/min_surfaces_modelling
279a091e12f98c0a7fc8054c6eadaafaec5a1258
[ "MIT" ]
null
null
null
ui/main_window.py
Iorveth/min_surfaces_modelling
279a091e12f98c0a7fc8054c6eadaafaec5a1258
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled.ui' # # Created by: PyQt5 UI code generator 5.12.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWi...
50.958904
190
0.706452
3,645
0.937018
0
0
0
0
0
0
990
0.254499
4d551b7eecd229efc3cad0fcf4d4e3f7b53e292a
2,056
py
Python
pyecharts/charts/scatter.py
chfw/pyecharts
51de9d6f17946a356ff8b94c62a70404e4f55266
[ "MIT" ]
16
2018-01-24T00:56:15.000Z
2022-03-18T09:00:42.000Z
pyecharts/charts/scatter.py
chfw/bryecharts
51de9d6f17946a356ff8b94c62a70404e4f55266
[ "MIT" ]
null
null
null
pyecharts/charts/scatter.py
chfw/bryecharts
51de9d6f17946a356ff8b94c62a70404e4f55266
[ "MIT" ]
4
2018-01-21T17:49:49.000Z
2021-03-13T22:08:49.000Z
#!/usr/bin/env python # coding=utf-8 from pyecharts.chart import Chart from pyecharts.option import get_all_options class Scatter(Chart): """ <<< 散点图 >>> 直角坐标系上的散点图可以用来展现数据的 x,y 之间的关系,如果数据项有多个维度, 可以用颜色来表现,利用 geo 组件。 """ def __init__(self, title="", subtitle="", **kwargs): super(Scatt...
27.413333
70
0.543288
2,350
0.951417
0
0
0
0
0
0
1,285
0.520243
4d556c14bf4ff80e91105975794bd70a02997423
1,799
py
Python
alice.py
Tigven/benedict
c15620e7df573ad05cd25628d7cf55f6558968b8
[ "MIT" ]
1
2019-05-08T15:33:21.000Z
2019-05-08T15:33:21.000Z
alice.py
Tigven/benedict
c15620e7df573ad05cd25628d7cf55f6558968b8
[ "MIT" ]
null
null
null
alice.py
Tigven/benedict
c15620e7df573ad05cd25628d7cf55f6558968b8
[ "MIT" ]
null
null
null
import json class AliceRequest(object): def __init__(self, request_dict): self._request_dict = request_dict @property def version(self): return self._request_dict['version'] @property def session(self): return self._request_dict['session'] @property def user_id(s...
24.310811
70
0.591996
1,781
0.989994
0
0
542
0.301278
0
0
257
0.142857
4d5681b659a285c56598406e0b757f35ff94c449
869
py
Python
pythonSEC/Utils/useapi.py
hpcc-systems/EDGAR-SEC-Filings
1727820ffa2216ed2447bb6a265a54ef6503f001
[ "Apache-2.0" ]
1
2020-08-02T13:08:14.000Z
2020-08-02T13:08:14.000Z
pythonSEC/Utils/useapi.py
hpcc-systems/EDGAR-SEC-Filings
1727820ffa2216ed2447bb6a265a54ef6503f001
[ "Apache-2.0" ]
null
null
null
pythonSEC/Utils/useapi.py
hpcc-systems/EDGAR-SEC-Filings
1727820ffa2216ed2447bb6a265a54ef6503f001
[ "Apache-2.0" ]
null
null
null
import yfinance as yf import pandas as pd import Utils from Utils import scrape_utils def qtrlabels(tick,date,comp='plain'): stock = yf.Ticker(tick.upper()) hist = stock.history(interval="1d",start=scrape_utils.dashdate(scrape_utils.fixdate(date)),end=scrape_utils.qenddate(date)) stkchg = hist.iloc[-1].Close/hi...
36.208333
134
0.698504
0
0
0
0
0
0
0
0
141
0.162255
4d56ddb615e06e9e1805753500a2cd6d9b81e048
8,014
py
Python
src/pymor/reductors/parabolic.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/reductors/parabolic.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
src/pymor/reductors/parabolic.py
JuliaBru/pymor
46343b527267213f4279ea36f208b542ab291c4e
[ "Unlicense" ]
null
null
null
# This file is part of the pyMOR project (http://www.pymor.org). # Copyright 2013-2016 pyMOR developers and contributors. All rights reserved. # License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) import numpy as np from pymor.core.interfaces import ImmutableInterface from pymor.core.logger im...
48.569697
114
0.671949
2,256
0.281507
0
0
0
0
0
0
3,755
0.468555
4d572a2dac2905d58624d731de31416194c06588
3,050
py
Python
frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
frappe/core/doctype/scheduled_job_type/test_scheduled_job_type.py
ektai/erp2Dodock
5ad64b01cba9b07437f9a27751101258679379e8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest from frappe.utils import get_datetime from frappe.core.doctype.scheduled_job_type.scheduled_job_type import sync_jobs class TestScheduledJobType(u...
45.522388
138
0.754754
2,758
0.904262
0
0
0
0
0
0
1,205
0.395082
4d57caac42b99c0bec97612a491e63a139339081
1,750
py
Python
projects/2_bike_share_data/menu_text.py
ssi112/programming-data-science-python
6f70743a89f286f5eb4c13765098f18cf050d7a7
[ "MIT" ]
1
2020-10-20T20:34:53.000Z
2020-10-20T20:34:53.000Z
projects/2_bike_share_data/menu_text.py
ssi112/programming-data-science-python
6f70743a89f286f5eb4c13765098f18cf050d7a7
[ "MIT" ]
null
null
null
projects/2_bike_share_data/menu_text.py
ssi112/programming-data-science-python
6f70743a89f286f5eb4c13765098f18cf050d7a7
[ "MIT" ]
null
null
null
# menu_text.py # # simple python menu # https://stackoverflow.com/questions/19964603/creating-a-menu-in-python # city_menu = { '1': 'Chicago', '2': 'New York', '3': 'Washington', 'x': 'Exit'} month_menu = {'0': 'All', '1': 'January', '2': 'February...
26.515152
72
0.489714
0
0
0
0
0
0
0
0
564
0.322286
4d5862aa5b9a7ab6497cf927fcc9eb557781d081
213
py
Python
src/books/api.py
lukecyx/lms
eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c
[ "MIT" ]
null
null
null
src/books/api.py
lukecyx/lms
eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c
[ "MIT" ]
null
null
null
src/books/api.py
lukecyx/lms
eff57c4026e63cd7dd7ea5ac1f061fa0a9ec1a4c
[ "MIT" ]
null
null
null
from src.books.models import Book from src.books.schema import BookOut from ninja import Router router = Router() @router.get("/", response=list[BookOut]) def get_books(request): return Book.objects.all()
17.75
40
0.746479
0
0
0
0
94
0.441315
0
0
3
0.014085
4d5afb3a4a38cc784e6e3fd2bab719ca1b2bdd90
6,545
py
Python
loldib/getratings/models/NA/na_khazix/na_khazix_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_khazix/na_khazix_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
loldib/getratings/models/NA/na_khazix/na_khazix_sup.py
koliupy/loldib
c9ab94deb07213cdc42b5a7c26467cdafaf81b7f
[ "Apache-2.0" ]
null
null
null
from getratings.models.ratings import Ratings class NA_Khazix_Sup_Aatrox(Ratings): pass class NA_Khazix_Sup_Ahri(Ratings): pass class NA_Khazix_Sup_Akali(Ratings): pass class NA_Khazix_Sup_Alistar(Ratings): pass class NA_Khazix_Sup_Amumu(Ratings): pass class NA_Khazix_Sup_Anivia(Ratings): ...
15.695444
46
0.766692
5,944
0.908174
0
0
0
0
0
0
0
0
4d5be74386b958660be296261cac18d84c28239e
297
py
Python
tests/data/expected/main/main_jsonschema_ids/id.py
roadsync/datamodel-code-generator
c22ea471d46300771c15cfaf21864cbe23bfbba4
[ "MIT" ]
null
null
null
tests/data/expected/main/main_jsonschema_ids/id.py
roadsync/datamodel-code-generator
c22ea471d46300771c15cfaf21864cbe23bfbba4
[ "MIT" ]
null
null
null
tests/data/expected/main/main_jsonschema_ids/id.py
roadsync/datamodel-code-generator
c22ea471d46300771c15cfaf21864cbe23bfbba4
[ "MIT" ]
null
null
null
# generated by datamodel-codegen: # filename: Organization.schema.json # timestamp: 1985-10-26T08:21:00+00:00 from __future__ import annotations from pydantic import BaseModel, Field class Schema(BaseModel): __root__: str = Field(..., description='Identifier string of this object.')
24.75
79
0.750842
104
0.350168
0
0
0
0
0
0
147
0.494949
4d5d0cd3a4c4b3b0b3187dfacf67f623810fd0f8
776
py
Python
tablo/migrations/0006_alter_geom_col_type.py
consbio/tablo
8d70bd3fe3449c3298ad69cc7c85bb2d8e83fad8
[ "BSD-3-Clause" ]
4
2017-04-26T10:30:56.000Z
2019-06-13T03:20:44.000Z
tablo/migrations/0006_alter_geom_col_type.py
nrdsdata/tablo
628bcde8071229485438def01ff3b0da0ef9e502
[ "BSD-3-Clause" ]
23
2016-07-18T21:40:29.000Z
2019-06-04T20:08:57.000Z
tablo/migrations/0006_alter_geom_col_type.py
nrdsdata/tablo
628bcde8071229485438def01ff3b0da0ef9e502
[ "BSD-3-Clause" ]
3
2016-11-21T18:47:33.000Z
2019-05-15T23:29:56.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations from tablo import GEOM_FIELD_NAME, WEB_MERCATOR_SRID forward_sql = """ DO $$ DECLARE table_name name; BEGIN FOR table_name IN SELECT tablo_featureservicelayer.table FROM tablo_...
23.515152
118
0.657216
180
0.231959
0
0
0
0
0
0
427
0.550258
4d5d0e78c95a6644e5c54d7d327b95b2ebfd2692
23,755
py
Python
tests/test_atise.py
tkg-framework/TKG-framework
98586b7199bda0e96d74b2ea02c62226901822cc
[ "MIT", "Unlicense" ]
null
null
null
tests/test_atise.py
tkg-framework/TKG-framework
98586b7199bda0e96d74b2ea02c62226901822cc
[ "MIT", "Unlicense" ]
null
null
null
tests/test_atise.py
tkg-framework/TKG-framework
98586b7199bda0e96d74b2ea02c62226901822cc
[ "MIT", "Unlicense" ]
null
null
null
import torch import torch.nn as nn from torch.autograd import Variable import torch.functional as F from torch.nn.init import xavier_normal_ import os import sys BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(BASE_DIR) import numpy as np from numpy.random import RandomState f...
39.52579
144
0.540097
16,593
0.698476
0
0
0
0
0
0
2,842
0.119633
4d5dd414ac863f8b7e031913598446b42eb6a1d4
1,265
py
Python
tests/security_test.py
smarkets/bravado-core
5d9c7eff417118462893c08accc40e27b066e2f6
[ "BSD-3-Clause" ]
null
null
null
tests/security_test.py
smarkets/bravado-core
5d9c7eff417118462893c08accc40e27b066e2f6
[ "BSD-3-Clause" ]
null
null
null
tests/security_test.py
smarkets/bravado-core
5d9c7eff417118462893c08accc40e27b066e2f6
[ "BSD-3-Clause" ]
1
2022-03-26T12:14:35.000Z
2022-03-26T12:14:35.000Z
# -*- coding: utf-8 -*- import pytest from six import iteritems def test_security_definition_property_extraction(security_dict, security_spec): security_definitions = security_dict['securityDefinitions'] for security_name, security_spec_dict in iteritems(security_definitions): security_object = securi...
39.53125
88
0.679842
0
0
0
0
752
0.594466
0
0
294
0.232411
4d5f2fae7694343130816ebc7bceb8f26a914a6d
79
py
Python
The Core/At the Crossroads/willYou.py
shanemichaelarcaro/codesignal
69b0460dbc163091dc115634bbb730da5caf65a9
[ "MIT" ]
null
null
null
The Core/At the Crossroads/willYou.py
shanemichaelarcaro/codesignal
69b0460dbc163091dc115634bbb730da5caf65a9
[ "MIT" ]
null
null
null
The Core/At the Crossroads/willYou.py
shanemichaelarcaro/codesignal
69b0460dbc163091dc115634bbb730da5caf65a9
[ "MIT" ]
null
null
null
def willYou(young, beautiful, loved): return loved != (young and beautiful)
39.5
41
0.721519
0
0
0
0
0
0
0
0
0
0
4d6009ffc4ef0b627d157000658c61a9b68d4726
3,555
py
Python
training/data_splits.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
training/data_splits.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
training/data_splits.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
import json from typing import Union, Optional, Tuple, List import numpy as np from sklearn.feature_extraction import DictVectorizer from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer, TfidfTransformer from sklearn.model_selection import train_test_split from sklearn.preprocessing import Stan...
41.337209
211
0.663854
3,189
0.897046
0
0
0
0
0
0
34
0.009564
4d6063eae63c8ba714bea0a997b134856f495196
31,868
py
Python
GAPP.py
timhartley/GAPP
ddd3b3c29b50bc5a9eb3d7f84403e425072145bb
[ "Apache-2.0" ]
null
null
null
GAPP.py
timhartley/GAPP
ddd3b3c29b50bc5a9eb3d7f84403e425072145bb
[ "Apache-2.0" ]
null
null
null
GAPP.py
timhartley/GAPP
ddd3b3c29b50bc5a9eb3d7f84403e425072145bb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python #Sorts based on top 50 CMetric, all callPaths - CMetric #, all call paths - call path count and all samples from __future__ import print_function from bcc import BPF, PerfType, PerfSWConfig from bcc import BPF import sys import ctypes as ct # For mapping the 'C' structure to Python import argparse #...
34.414687
197
0.614096
370
0.01161
0
0
0
0
0
0
17,271
0.541954
4d610d4a0f33ed82366186a1ab547fe19c1f9cea
4,484
py
Python
data/activitynet_feature_cuhk/data_process.py
NEUdeep/BSN
e987cc159976ebe54027b562d833a92a5aadf864
[ "MIT" ]
1
2021-04-21T08:09:59.000Z
2021-04-21T08:09:59.000Z
data/activitynet_feature_cuhk/data_process.py
NEUdeep/BSN
e987cc159976ebe54027b562d833a92a5aadf864
[ "MIT" ]
null
null
null
data/activitynet_feature_cuhk/data_process.py
NEUdeep/BSN
e987cc159976ebe54027b562d833a92a5aadf864
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import random import numpy as np import scipy import pandas as pd import pandas import numpy import json def resizeFeature(inputData,newSize): # inputX: (temporal_length,feature_dimension) # originalSize=len(inputData) #print originalSize if originalSize==1: inputData=...
32.970588
103
0.674398
0
0
0
0
0
0
0
0
476
0.106155
4d616609d3a6fbee45f8cfdcce708b41d046091c
1,622
py
Python
examples/cloud-test.py
Ferris-Labs/ferris-cli
6a34706ab9163471bf2e03f31ba4018143f26d51
[ "Apache-2.0" ]
null
null
null
examples/cloud-test.py
Ferris-Labs/ferris-cli
6a34706ab9163471bf2e03f31ba4018143f26d51
[ "Apache-2.0" ]
1
2020-12-15T13:18:40.000Z
2020-12-15T13:18:40.000Z
examples/cloud-test.py
Integration-Alpha/ferris-cli
6a34706ab9163471bf2e03f31ba4018143f26d51
[ "Apache-2.0" ]
null
null
null
from cloudevents.sdk.event import v03 import json from ferris_cli.ferris_cli import CloudEventsAPI import uuid import os import consul from ferris_cli.ferris_cli import ApplicationConfigurator from datetime import datetime def send_direct_loading_event(hdfs_path): data = {"file_location": hdfs_path } event =...
28.45614
106
0.7127
0
0
0
0
0
0
0
0
446
0.274969
4d65330a040ed957f51a1f95089f84709aa653c7
2,355
py
Python
REL_dashboarSERVIDORES.py
tiagotouso/TALENTOS_HUMANOS
c391f7d7a331d5f8b186b27af6a9b61448620cc6
[ "MIT" ]
null
null
null
REL_dashboarSERVIDORES.py
tiagotouso/TALENTOS_HUMANOS
c391f7d7a331d5f8b186b27af6a9b61448620cc6
[ "MIT" ]
null
null
null
REL_dashboarSERVIDORES.py
tiagotouso/TALENTOS_HUMANOS
c391f7d7a331d5f8b186b27af6a9b61448620cc6
[ "MIT" ]
null
null
null
''' GERADOR DE RELATÓRIO DOS SERVIDORES (DASHBOARD SERVIDORES) ''' from SQL import sqlpandas from MENSAGEM import mensagemInformacao, mensagemErro from AUXILIAR import salvarPandas def dashboardServidores(): ''' FUNÇÃO PARA CRIAR OS DASHDOARD ENTRA ENTRA NULL SAI PLANILHA COM OS DADOS...
32.260274
120
0.525265
0
0
0
0
0
0
0
0
1,317
0.55406
4d656673d216ce0be4fe64d21204d4348b38598e
60
py
Python
pyroombaadapter/__init__.py
ymollard/PyRoombaAdapter
a4b63e9b97ac2e27a8b472f596a1111eb3c254b9
[ "MIT" ]
null
null
null
pyroombaadapter/__init__.py
ymollard/PyRoombaAdapter
a4b63e9b97ac2e27a8b472f596a1111eb3c254b9
[ "MIT" ]
null
null
null
pyroombaadapter/__init__.py
ymollard/PyRoombaAdapter
a4b63e9b97ac2e27a8b472f596a1111eb3c254b9
[ "MIT" ]
null
null
null
from pyroombaadapter.pyroombaadapter import PyRoombaAdapter
30
59
0.916667
0
0
0
0
0
0
0
0
0
0
4d66d1254740f9bb3086a9048334ac1404d1dea1
2,189
py
Python
torchkit/head/localfc/curricularface.py
sarvex/TFace
b3d8a1392816e0d941425c30ad843d185e286431
[ "PSF-2.0" ]
764
2021-05-26T15:40:25.000Z
2022-03-30T03:26:31.000Z
torchkit/head/localfc/curricularface.py
Charlee-du/TFace
490cf90a1f042b86d7d03042f26d0a7cf6b1f0c0
[ "PSF-2.0" ]
45
2021-06-07T12:57:19.000Z
2022-03-25T16:04:54.000Z
torchkit/head/localfc/curricularface.py
Charlee-du/TFace
490cf90a1f042b86d7d03042f26d0a7cf6b1f0c0
[ "PSF-2.0" ]
139
2021-06-04T09:25:21.000Z
2022-03-31T22:49:23.000Z
from __future__ import print_function from __future__ import division import torch import torch.nn as nn from torch.nn import Parameter import math from torchkit.util.utils import l2_norm from torchkit.head.localfc.common import calc_logits class CurricularFace(nn.Module): """ Implement of CurricularFace (https:/...
37.741379
108
0.634536
1,945
0.888534
0
0
0
0
0
0
294
0.134308
4d69852609dac731ffb1bbf364bfde4e5a34166e
390
py
Python
lmsapi/api_cash/views.py
orkasolutions-develop/lms-api-new
c9e5a2d98874a4a7415002397048258526a94644
[ "MIT" ]
null
null
null
lmsapi/api_cash/views.py
orkasolutions-develop/lms-api-new
c9e5a2d98874a4a7415002397048258526a94644
[ "MIT" ]
null
null
null
lmsapi/api_cash/views.py
orkasolutions-develop/lms-api-new
c9e5a2d98874a4a7415002397048258526a94644
[ "MIT" ]
null
null
null
from core.views import BaseViewSet from .models import Cash from .serializers import CashSerializer class CashViewSet(BaseViewSet): """ - Vybirame jen typ 4 coz jsou platby z Banky - Setridime nenovejsim datem na zacatek """ queryset = Cash.objects.all().filter(type=4).order_by('-time') serial...
27.857143
66
0.717949
287
0.735897
0
0
0
0
0
0
128
0.328205
4d6a8be82f4b05e6fd5305e91364bc1db446eb68
3,730
py
Python
front_end/migration_scripts/1_to_2.py
zacheliason/CodeBuddy
18694771ccbb74e6966e08f1247aadda2d5d06f7
[ "MIT" ]
null
null
null
front_end/migration_scripts/1_to_2.py
zacheliason/CodeBuddy
18694771ccbb74e6966e08f1247aadda2d5d06f7
[ "MIT" ]
11
2020-06-12T19:13:12.000Z
2021-08-28T23:47:57.000Z
front_end/migration_scripts/1_to_2.py
zacheliason/CodeBuddy
18694771ccbb74e6966e08f1247aadda2d5d06f7
[ "MIT" ]
3
2020-05-12T16:54:16.000Z
2021-04-30T16:19:46.000Z
import atexit import sqlite3 import traceback ################# import sys sys.path.append('/app') from helper import * settings_dict = load_yaml_dict(read_file("/Settings.yaml")) conn = sqlite3.connect(f"/database/{settings_dict['db_name']}", isolation_level=None, detect_types=sqlite3.PARSE_DECLTYPES|sqlite3.PARSE_C...
41.910112
146
0.571314
0
0
0
0
0
0
0
0
2,633
0.705898
4d6aba53be016dfafeb618c7972f5e2504c99521
809
py
Python
examples/example_tbl.py
alexmaragko/pyPAHdb
54cbf11748185d800e06cde603e93275bdd059f4
[ "BSD-3-Clause" ]
4
2018-03-13T23:44:48.000Z
2022-01-28T15:27:24.000Z
examples/example_tbl.py
alexmaragko/pyPAHdb
54cbf11748185d800e06cde603e93275bdd059f4
[ "BSD-3-Clause" ]
35
2018-03-14T22:47:03.000Z
2021-10-21T12:08:38.000Z
examples/example_tbl.py
alexmaragko/pyPAHdb
54cbf11748185d800e06cde603e93275bdd059f4
[ "BSD-3-Clause" ]
6
2018-03-13T17:50:17.000Z
2021-07-16T02:42:50.000Z
#!/usr/bin/env python3 """ example.py Example of using pypahdb to decompose an astronomical PAH spectrum. """ import pkg_resources from pypahdb.decomposer import Decomposer from pypahdb.observation import Observation if __name__ == '__main__': # The sample data (IPAC table). file_path = 'resources/sample_...
27.896552
78
0.754017
0
0
0
0
0
0
0
0
419
0.517923
4d6b1faba00fbb5e279ded48969722c18dfa7079
10,448
py
Python
homeassistant/components/zha/core/registries.py
headcode/home-assistant
ef338fa8803c9691c545cb335503723d271c652c
[ "Apache-2.0" ]
null
null
null
homeassistant/components/zha/core/registries.py
headcode/home-assistant
ef338fa8803c9691c545cb335503723d271c652c
[ "Apache-2.0" ]
null
null
null
homeassistant/components/zha/core/registries.py
headcode/home-assistant
ef338fa8803c9691c545cb335503723d271c652c
[ "Apache-2.0" ]
null
null
null
""" Mapping registries for Zigbee Home Automation. For more details about this component, please refer to the documentation at https://home-assistant.io/components/zha/ """ from .const import ( DEVICE_CLASS, SINGLE_INPUT_CLUSTER_DEVICE_CLASS, SINGLE_OUTPUT_CLUSTER_DEVICE_CLASS, COMPONENT_CLUSTERS, HUMIDITY, ...
38.411765
77
0.656011
0
0
0
0
0
0
0
0
1,478
0.141462
4d6b39d23d412e44e53a7dcf8c8b360f9c624422
3,292
py
Python
contrib/EISeg/eiseg/data/base.py
haoyuying/PaddleSeg
6607d88df39500330a7b6ed160b4626d9f38df66
[ "ECL-2.0", "Apache-2.0" ]
1
2021-08-04T02:47:33.000Z
2021-08-04T02:47:33.000Z
contrib/EISeg/eiseg/data/base.py
isshf/PaddleSeg
6607d88df39500330a7b6ed160b4626d9f38df66
[ "Apache-2.0" ]
null
null
null
contrib/EISeg/eiseg/data/base.py
isshf/PaddleSeg
6607d88df39500330a7b6ed160b4626d9f38df66
[ "Apache-2.0" ]
2
2021-08-04T02:48:50.000Z
2021-11-16T08:13:41.000Z
import random import pickle import cv2 import numpy as np import paddle import paddleseg.transforms as T from .points_sampler import MultiPointSampler def get_unique_labels(x, exclude_zero=False): obj_sizes = np.bincount(x.flatten()) labels = np.nonzero(obj_sizes)[0].tolist() if exclude_zero: la...
33.591837
110
0.630316
2,915
0.88548
0
0
591
0.179526
0
0
102
0.030984
4d6be0364dfeb7a10616e3c99f46ad7c4e3cb501
1,008
py
Python
handler/createThumbnail.py
brainlife/ezbids
886c69942d19d59dc48d5049f226bd7bb98a8cb8
[ "MIT" ]
7
2020-08-07T20:46:27.000Z
2022-03-21T12:08:20.000Z
handler/createThumbnail.py
brainlife/ezbids
886c69942d19d59dc48d5049f226bd7bb98a8cb8
[ "MIT" ]
36
2020-10-18T15:17:17.000Z
2022-03-31T14:41:26.000Z
handler/createThumbnail.py
brainlife/ezbids
886c69942d19d59dc48d5049f226bd7bb98a8cb8
[ "MIT" ]
4
2020-07-29T16:48:55.000Z
2021-11-17T22:13:19.000Z
#!/usr/bin/env python3 """ Created on Wed Feb 17 08:32:55 2021 Deface anatomical image(s) @author: dlevitas """ import os, sys import nibabel as nib import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt plt.style.use('dark_background') from math import floor os.environ[ 'MPLCONFIGDIR' ] = '/tmp...
24.585366
71
0.717262
0
0
0
0
0
0
0
0
243
0.241071
4d6cac5c33887bd192cb3cbbad427835d929fc30
4,511
py
Python
IPython/core/events.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
1
2020-12-18T01:07:55.000Z
2020-12-18T01:07:55.000Z
IPython/core/events.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/core/events.py
pyarnold/ipython
c4797f7f069d0a974ddfa1e4251c7550c809dba0
[ "BSD-3-Clause-Clear" ]
null
null
null
"""Infrastructure for registering and firing callbacks on application events. Unlike :mod:`IPython.core.hooks`, which lets end users set single functions to be called at specific times, or a collection of alternative methods to try, callbacks are designed to be used by extension authors. A number of callbacks can be r...
30.275168
94
0.643095
2,348
0.520505
0
0
1,004
0.222567
0
0
3,161
0.700732
4d6e2c5b304d30fabd691d7b3a8dc9cf98b02a31
290
py
Python
api/routes/topic.py
quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS
445de0d169fd2b0005726f8d12b5844ea3a69ca4
[ "Unlicense" ]
null
null
null
api/routes/topic.py
quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS
445de0d169fd2b0005726f8d12b5844ea3a69ca4
[ "Unlicense" ]
null
null
null
api/routes/topic.py
quyenthucdoan/CUSTOMER-EMOTION-ANALYSIS-SYSTEM-BASED-ON-VIETNAMESE-COMMENTS
445de0d169fd2b0005726f8d12b5844ea3a69ca4
[ "Unlicense" ]
null
null
null
from app import app from services import TopicServices from flask import jsonify, request @app.route('/topic/terms', methods=['GET']) def getTerms(): numOfTerms = request.args.get("numOfTerms") results = TopicServices.getTerms(numOfTerms) return jsonify({ 'results': results })
32.222222
48
0.737931
0
0
0
0
199
0.686207
0
0
40
0.137931
4d6eb4361eb99ba59182cf00398ec7253f4ded06
4,602
py
Python
test/functional/feature_uaclient.py
syedrizwanmy/bitcoin-abc
1241ef50e90d183421504fd783b9fd4dd6c1386a
[ "MIT" ]
1,266
2017-05-02T07:02:29.000Z
2022-03-31T17:15:44.000Z
test/functional/feature_uaclient.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
426
2017-05-07T12:40:52.000Z
2022-03-29T18:12:01.000Z
test/functional/feature_uaclient.py
EGYVOICE/bitcoin-abc-avalanche
e0f1fe857e1fc85f01903f1c323c2d5c54aecc1c
[ "MIT" ]
721
2017-05-07T10:36:11.000Z
2022-03-15T09:07:48.000Z
#!/usr/bin/env python3 # Copyright (c) 2021 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the -uaclientname and -uaclientversion option.""" import re from test_framework.test_framework import Bitc...
48.442105
156
0.63342
4,118
0.893857
0
0
0
0
0
0
1,777
0.385717
4d6f1a664c1307c758152f80bcc30999ef1ce302
5,619
py
Python
tests/test_dispersion_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
1
2021-08-04T05:09:16.000Z
2021-08-04T05:09:16.000Z
tests/test_dispersion_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
4
2021-08-16T07:15:10.000Z
2021-09-04T08:47:47.000Z
tests/test_dispersion_formulas.py
mnishida/refractiveindex.info-Pandas
05317271ee9e550287887536ee03485164949ba2
[ "MIT" ]
1
2021-08-04T05:09:13.000Z
2021-08-04T05:09:13.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import annotations import unittest import numpy as np import numpy.testing as npt import pandas as pd from riip.material import RiiMaterial class KnownValues(unittest.TestCase): known_values = [ (1, [0.0 for _ in range(17)], 1.0, 1.0), ...
36.487013
88
0.433707
5,362
0.954262
0
0
0
0
0
0
448
0.079729
4d71a5d711522e37eda93e8de3bbe07019f81e95
3,832
py
Python
neutron/tests/unit/services/logapi/rpc/test_server.py
mcadariu/neutron
35494af5a25efb8b314941ab85b44923654f6acc
[ "Apache-2.0" ]
1
2018-07-04T07:59:31.000Z
2018-07-04T07:59:31.000Z
neutron/tests/unit/services/logapi/rpc/test_server.py
ljzjohnson/neutron
d78664321482c15981a09642985a540195e754e3
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/services/logapi/rpc/test_server.py
ljzjohnson/neutron
d78664321482c15981a09642985a540195e754e3
[ "Apache-2.0" ]
1
2018-08-28T17:13:16.000Z
2018-08-28T17:13:16.000Z
# Copyright (c) 2017 Fujitsu 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 requi...
40.765957
79
0.686587
2,874
0.75
0
0
2,431
0.634395
0
0
998
0.260438
4d72a1c0cc4948586f7b3056d01b428148d2c15b
942
py
Python
src/ipyradiant/tests/test_servicepatch_rdflib.py
sanbales/ipyradiant
e798f3575cb08b539c04129b0c7ee74771246101
[ "BSD-3-Clause" ]
null
null
null
src/ipyradiant/tests/test_servicepatch_rdflib.py
sanbales/ipyradiant
e798f3575cb08b539c04129b0c7ee74771246101
[ "BSD-3-Clause" ]
null
null
null
src/ipyradiant/tests/test_servicepatch_rdflib.py
sanbales/ipyradiant
e798f3575cb08b539c04129b0c7ee74771246101
[ "BSD-3-Clause" ]
null
null
null
""" Unit Tests for Service Patch """ # Copyright (c) 2021 ipyradiant contributors. # Distributed under the terms of the Modified BSD License. import ipyradiant import rdflib LINKEDDATA_QUERY = """ SELECT DISTINCT ?s ?p ?o WHERE { SERVICE <http://linkeddata.uriburner.com/sparql> { ...
22.97561
65
0.569002
0
0
0
0
0
0
0
0
574
0.609342
4d72f8b8e24cd048f0649233ff63ab5878c4cdbc
6,552
py
Python
tests/plugins/project/test_git.py
cloudblue/connect-cli
4b0b460782a27e5d96a106579f082cbccfe10c67
[ "Apache-2.0" ]
12
2020-10-10T10:53:16.000Z
2022-02-16T10:15:56.000Z
tests/plugins/project/test_git.py
cloudblue/connect-cli
4b0b460782a27e5d96a106579f082cbccfe10c67
[ "Apache-2.0" ]
37
2020-09-28T12:00:52.000Z
2021-12-20T12:38:25.000Z
tests/plugins/project/test_git.py
cloudblue/connect-cli
4b0b460782a27e5d96a106579f082cbccfe10c67
[ "Apache-2.0" ]
11
2020-11-04T18:17:01.000Z
2022-02-23T08:18:07.000Z
import subprocess from collections import OrderedDict import pytest from connect.cli.plugins.project import git @pytest.mark.parametrize( ('str', 'result'), ( ('0.0.0', True), ('0.0.4', True), ('1.0.0', True), ('1.2.0', True), ('1.2.3', True), ('0.0', True), ...
32.117647
108
0.498626
0
0
0
0
5,146
0.785409
0
0
2,667
0.407051
4d7317541546d8bbcf5ef1e2b7e13eb1d36a67cc
737
py
Python
src/dao/user.py
lokaimoma/Flask-QR-Code-Web-APP
5789753757aa1939119a799cbc6bda023ea75bbc
[ "MIT" ]
2
2022-03-05T18:54:15.000Z
2022-03-24T12:19:22.000Z
src/dao/user.py
lokaimoma/Flask-QR-Code-Web-APP
5789753757aa1939119a799cbc6bda023ea75bbc
[ "MIT" ]
null
null
null
src/dao/user.py
lokaimoma/Flask-QR-Code-Web-APP
5789753757aa1939119a799cbc6bda023ea75bbc
[ "MIT" ]
null
null
null
# Created by Kelvin_Clark on 3/5/2022, 6:37 PM from typing import Optional from src.models.entities.user import User from src import database as db class UserDao: @staticmethod def get_user_by_email(email: str) -> Optional[User]: return User.query.filter_by(email=email).first() @staticmethod ...
24.566667
56
0.640434
585
0.793758
0
0
553
0.750339
0
0
156
0.211669
4d735b8b416b377c0ccb95d07dcbca87d8a4365f
839
py
Python
dmoj/dmpg18g1.py
pi-guy-in-the-sky/competitive-programming
e079f6caf07b5de061ea4f56218f9b577e49a965
[ "MIT" ]
null
null
null
dmoj/dmpg18g1.py
pi-guy-in-the-sky/competitive-programming
e079f6caf07b5de061ea4f56218f9b577e49a965
[ "MIT" ]
null
null
null
dmoj/dmpg18g1.py
pi-guy-in-the-sky/competitive-programming
e079f6caf07b5de061ea4f56218f9b577e49a965
[ "MIT" ]
1
2020-10-25T05:46:57.000Z
2020-10-25T05:46:57.000Z
# Problem ID: dmpg18g1 # By Alexander Cai 2019-12-09 # Solved import sys FILLED = -1 EMPTY = 0 data = sys.stdin.read().split('\n') n, k = map(int, data[0].split()) chairs = [FILLED for _ in range(n)] for j in map(int, data[1].split()): chairs[j-1] = EMPTY for i, j in enumerate(map(int, data[2].split())): i...
20.975
62
0.555423
0
0
0
0
0
0
0
0
152
0.181168
4d735bc291be770b9f45354d1d88f6bbaa19cdc6
25,884
py
Python
tests/test_base.py
tailhook/trafaret
1968a0561e42d98094a5b90adbd6b0de49e7a4d9
[ "BSD-2-Clause" ]
null
null
null
tests/test_base.py
tailhook/trafaret
1968a0561e42d98094a5b90adbd6b0de49e7a4d9
[ "BSD-2-Clause" ]
null
null
null
tests/test_base.py
tailhook/trafaret
1968a0561e42d98094a5b90adbd6b0de49e7a4d9
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import unittest import trafaret as t from collections import Mapping as AbcMapping from trafaret import extract_error, ignore, DataError from trafaret.extras import KeysSubset class TestAnyTrafaret(unittest.TestCase): def test_any(self): self.assertEqual( (t.Any() >> ig...
37.731778
112
0.564789
22,424
0.865792
1,645
0.063514
0
0
0
0
7,873
0.303977
4d73ae8092a1ed93a90f98b70314fba1d7c65aff
6,107
py
Python
libdesktop/desktopfile.py
bharadwaj-raju/libdesktop
4d6b815755c76660b6ef4d2db6f54beff38c0db7
[ "MIT" ]
12
2016-07-08T12:59:24.000Z
2021-03-29T01:01:56.000Z
libdesktop/desktopfile.py
bharadwaj-raju/libdesktop
4d6b815755c76660b6ef4d2db6f54beff38c0db7
[ "MIT" ]
4
2016-10-12T10:28:19.000Z
2016-11-08T10:04:30.000Z
libdesktop/desktopfile.py
bharadwaj-raju/libdesktop
4d6b815755c76660b6ef4d2db6f54beff38c0db7
[ "MIT" ]
1
2016-10-02T00:15:21.000Z
2016-10-02T00:15:21.000Z
# coding: utf-8 # This file is part of libdesktop # The MIT License (MIT) # # Copyright (c) 2016 Bharadwaj Raju # # 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, includ...
31
136
0.713935
0
0
0
0
0
0
0
0
3,452
0.565253
4d74aef73934a96f618c4d0192a7d28c451a6713
2,887
py
Python
losses.py
abhinav-2912/Polyp-Segmentation
82f2a309bafb073dc7c12ec85d196c9367b4c702
[ "MIT" ]
null
null
null
losses.py
abhinav-2912/Polyp-Segmentation
82f2a309bafb073dc7c12ec85d196c9367b4c702
[ "MIT" ]
null
null
null
losses.py
abhinav-2912/Polyp-Segmentation
82f2a309bafb073dc7c12ec85d196c9367b4c702
[ "MIT" ]
null
null
null
import os import cv2 import keras import numpy as np import albumentations as A import tensorflow as tf from keras import backend as K def jaccard_distance(y_true, y_pred, smooth=100): intersection = K.sum(K.abs(y_true * y_pred), axis=-1) sum_ = K.sum(K.abs(y_true) + K.abs(y_pred), axis=-1) jac = (intersec...
37.012821
108
0.66124
0
0
0
0
0
0
0
0
1,160
0.401801
4d74b34c2ad769580f0628389b7964d48ab6bbb5
1,119
py
Python
opsramp/monitoring.py
gauravphagrehpe/python-opsramp
9ed8397cff70f866b9ed9bd1d7010a189481c62c
[ "Apache-2.0" ]
6
2020-03-30T12:53:44.000Z
2022-03-05T11:37:12.000Z
opsramp/monitoring.py
gauravphagrehpe/python-opsramp
9ed8397cff70f866b9ed9bd1d7010a189481c62c
[ "Apache-2.0" ]
20
2019-07-10T13:24:00.000Z
2021-01-25T14:26:23.000Z
opsramp/monitoring.py
gauravphagrehpe/python-opsramp
9ed8397cff70f866b9ed9bd1d7010a189481c62c
[ "Apache-2.0" ]
21
2019-06-26T12:05:33.000Z
2022-03-28T11:44:39.000Z
#!/usr/bin/env python # # A minimal Python language binding for the OpsRamp REST API. # # monitoring.py # Classes related to monitoring templates and similar things. # # (c) Copyright 2019-2021 Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not us...
31.083333
74
0.74084
300
0.268097
0
0
0
0
0
0
785
0.701519
4d756cbf6b405451463d1b3c51d20e4b11805c50
5,045
py
Python
tests/sources/doctest/load_test.py
akshitdewan/ok-client
3c5eca17100eed808023a815654cfe1c95179080
[ "Apache-2.0" ]
30
2018-07-10T17:32:49.000Z
2022-01-03T16:50:56.000Z
tests/sources/doctest/load_test.py
akshitdewan/ok-client
3c5eca17100eed808023a815654cfe1c95179080
[ "Apache-2.0" ]
62
2018-08-07T18:43:33.000Z
2022-02-17T20:53:03.000Z
tests/sources/doctest/load_test.py
akshitdewan/ok-client
3c5eca17100eed808023a815654cfe1c95179080
[ "Apache-2.0" ]
26
2018-11-13T22:12:47.000Z
2022-03-20T00:42:26.000Z
from client import exceptions as ex from client.sources import doctest from client.sources.doctest import models import mock import unittest import os.path class LoadTest(unittest.TestCase): VALID_FILE = 'valid.py' VALID_MODULE = os.path.splitext(VALID_FILE)[0] INVALID_FILE = 'invalid.ext' FUNCTION = ...
34.087838
90
0.643409
4,886
0.968484
0
0
0
0
0
0
316
0.062636
4d77116fa77002bdedc5a81cb80ae1a9e3ac2069
19,585
py
Python
lib/python3.8/site-packages/ansible_collections/community/azure/plugins/modules/azure_rm_cosmosdbaccount_info.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/community/azure/plugins/modules/azure_rm_cosmosdbaccount_info.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
lib/python3.8/site-packages/ansible_collections/community/azure/plugins/modules/azure_rm_cosmosdbaccount_info.py
cjsteel/python3-venv-ansible-2.10.5
c95395c4cae844dc66fddde9b4343966f4b2ecd5
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2019 Zim Kalinowski, (@zikalino) # # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', ...
37.591171
150
0.531223
7,417
0.378708
0
0
0
0
0
0
13,509
0.689763
4d781dcbcf008c3f1865cdc43e7018be27ebf9f4
382
py
Python
process.py
seiferteric/readon
f4926b8c382bb3dfd6076c50ac0250aaabfab248
[ "MIT" ]
null
null
null
process.py
seiferteric/readon
f4926b8c382bb3dfd6076c50ac0250aaabfab248
[ "MIT" ]
null
null
null
process.py
seiferteric/readon
f4926b8c382bb3dfd6076c50ac0250aaabfab248
[ "MIT" ]
null
null
null
from rdflib import Graph import json import glob books = {} rdf_files = glob.glob("gutindex/cache/epub/*/*.rdf") i = 1 for rdf_file in rdf_files: g = Graph() g.parse(rdf_file) for s,p,o in g: if 'title' in p: books[str(o)] = str(s) print(i, str(o)) i+=1 with open("g...
17.363636
52
0.565445
0
0
0
0
0
0
0
0
61
0.159686
4d7873d4b9675dd4cab3d904b988b8e5a2734851
3,188
py
Python
qrand/caches/cache.py
LaurentAjdnik/qrand
69a4fb049e1d50af5aaa52a6b417d58490169769
[ "Apache-2.0" ]
18
2020-10-28T19:04:39.000Z
2022-03-02T17:23:32.000Z
qrand/caches/cache.py
LaurentAjdnik/qrand
69a4fb049e1d50af5aaa52a6b417d58490169769
[ "Apache-2.0" ]
25
2021-04-05T01:11:24.000Z
2022-02-10T16:13:43.000Z
qrand/caches/cache.py
LaurentAjdnik/qrand
69a4fb049e1d50af5aaa52a6b417d58490169769
[ "Apache-2.0" ]
16
2020-12-02T14:59:12.000Z
2022-01-04T19:17:47.000Z
## _____ _____ ## | __ \| __ \ AUTHOR: Pedro Rivero ## | |__) | |__) | --------------------------------- ## | ___/| _ / DATE: May 18, 2021 ## | | | | \ \ --------------------------------- ## |_| |_| \_\ https://github.com/pedrorrivero ## ## Copyright 2021 Pedro Rivero ## ## Licen...
26.131148
79
0.500627
2,102
0.659348
0
0
1,457
0.457026
0
0
2,697
0.845985
4d78fa2ba57faef589529bf708bb570e9f71a9a8
203
py
Python
logger/logger.py
BraunPhilipp/sentiment-analyzer
de1528c924b7015bafda56196b264523b64dc7c1
[ "MIT" ]
4
2016-09-24T22:09:49.000Z
2017-05-17T12:51:48.000Z
logger/logger.py
BraunPhilipp/sentiment-analyzer
de1528c924b7015bafda56196b264523b64dc7c1
[ "MIT" ]
2
2016-11-29T05:50:01.000Z
2021-02-13T18:07:20.000Z
logger/logger.py
BraunPhilipp/sentiment-analyzer
de1528c924b7015bafda56196b264523b64dc7c1
[ "MIT" ]
null
null
null
""" Log multiple instances to same file. """ def log(msg): f = open('error.log', 'a') f.write(msg+'\n') f.close() def clear(): f = open('error.log', 'w') f.write('') f.close()
13.533333
36
0.507389
0
0
0
0
0
0
0
0
78
0.384236
4d793706457e29ac7c89f01a4a25bd52a787ecca
3,959
py
Python
Stream/TransportStream.py
SeuSQ/SimpleShark
a7da2aa26b3e6f67f160008c0a19078ccfd3ab98
[ "MIT" ]
1
2019-10-18T15:44:58.000Z
2019-10-18T15:44:58.000Z
Stream/TransportStream.py
SeuSQ/SimpleShark
a7da2aa26b3e6f67f160008c0a19078ccfd3ab98
[ "MIT" ]
null
null
null
Stream/TransportStream.py
SeuSQ/SimpleShark
a7da2aa26b3e6f67f160008c0a19078ccfd3ab98
[ "MIT" ]
null
null
null
from Stream.Stream import Stream class TransportStream(Stream): """ 传输层流对象 代表一个传输层流,包含这个流中的所有数据包以及流的基本信息 protocol: 传输层的具体协议,UDP或TCP side_a: A端IP地址(流的第一条报文的src) side_b: B端IP地址(流的第一条报文的dst) port_a: A端端口号 port_b: B端端口号 packets:流的报文列表 stream_id: wireshark内的stream index direct: ...
36.657407
96
0.417782
4,361
0.991813
0
0
0
0
0
0
1,333
0.303161
4d79c1863feabc09d18bc9b268afe13bc22098ed
9,775
py
Python
cea_calibration/validation.py
cooling-singapore/CalibCEA
63013d46ec92faf8c28c3e937944ae803a3a9088
[ "MIT" ]
1
2020-10-08T08:24:47.000Z
2020-10-08T08:24:47.000Z
cea_calibration/validation.py
cooling-singapore/CalibCEA
63013d46ec92faf8c28c3e937944ae803a3a9088
[ "MIT" ]
2
2020-11-04T15:59:54.000Z
2021-11-16T02:22:30.000Z
cea_calibration/validation.py
cooling-singapore/CalibCEA
63013d46ec92faf8c28c3e937944ae803a3a9088
[ "MIT" ]
1
2020-11-04T15:48:13.000Z
2020-11-04T15:48:13.000Z
""" This tool compares measured data (observed) with model outputs (predicted), used in procedures of calibration and validation """ from __future__ import division from __future__ import print_function import os from math import sqrt import pandas as pd from sklearn.metrics import mean_squared_error as calc_mean_squar...
47.916667
190
0.69289
0
0
0
0
0
0
0
0
4,094
0.418824
4d7ab81b22aae5458f8deb86c17e6d6e000d4ad5
1,337
py
Python
apps/jobs/settings/config.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
349
2020-08-04T10:21:01.000Z
2022-03-23T08:31:29.000Z
apps/jobs/settings/config.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
2
2021-01-07T06:17:05.000Z
2021-04-01T06:01:30.000Z
apps/jobs/settings/config.py
rainydaygit/testtcloudserver
8037603efe4502726a4d794fb1fc0a3f3cc80137
[ "MIT" ]
70
2020-08-24T06:46:14.000Z
2022-03-25T13:23:27.000Z
try: from public_config import * except ImportError: pass HOST = '0.0.0.0' PORT = 9038 SERVICE_NAME = 'jobs' SERVER_ENV = 'prod' SQLALCHEMY_POOL_SIZE = 10 SQLALCHEMY_POOL_RECYCLE = 3600 JOBS = [ { # 任务 信用积分每日检查, 每周一到每周五 早上 10:30 分运行 # 检查每个设备的借用日期是否超时 :发送提醒邮件,扣除信用分 1分 'id': 'credit-check...
27.285714
89
0.535527
0
0
0
0
0
0
0
0
1,071
0.653447
4d7ad64476a0364d8dddccf7527a5fab1bf906d6
918
py
Python
exercieses/openInventory/mouseTrial.py
SimSam115/orsr_bbb
6b81f0637fedc00258114d4660ceadb9dd286909
[ "MIT" ]
null
null
null
exercieses/openInventory/mouseTrial.py
SimSam115/orsr_bbb
6b81f0637fedc00258114d4660ceadb9dd286909
[ "MIT" ]
null
null
null
exercieses/openInventory/mouseTrial.py
SimSam115/orsr_bbb
6b81f0637fedc00258114d4660ceadb9dd286909
[ "MIT" ]
null
null
null
import pyautogui, pygetwindow, time screen = pygetwindow.getWindowsWithTitle('Old School RuneScape')[0] centerRatio = (2.8,2.8) def move(direction,spaces): vel = [0,0] if direction == "up": vel[1] = 0.32; if direction == "down": vel[1] = -0.32; if direction == "left": vel[0] = 0.3; if direct...
28.6875
100
0.603486
0
0
0
0
0
0
0
0
162
0.176471
4d7eddf6f9e62ec0bab631e8436135068d6e2ad3
2,251
py
Python
cmake/make_geant4_env.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
cmake/make_geant4_env.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
cmake/make_geant4_env.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
#!/usr/bin/python ''' Produces POSIX commands to setup the environment variables for Geant4. Required command line arguments: 1: Location of geant4.sh script. 2: Version of Geant4. ''' import os import sys import re import subprocess as subp from codecs import encode,decode geant4_sh, geant4_version = sys.argv[1:] ...
31.263889
90
0.60462
0
0
0
0
0
0
0
0
977
0.434029
4d8114110ca0855b70f6d4767fc2d9b841ade8dd
454
py
Python
bin/run_server.py
syedwaseemjan/EXIFExtractor
97da85c0552bb0a616f04bab1bc0785ae8b35fb6
[ "MIT" ]
null
null
null
bin/run_server.py
syedwaseemjan/EXIFExtractor
97da85c0552bb0a616f04bab1bc0785ae8b35fb6
[ "MIT" ]
null
null
null
bin/run_server.py
syedwaseemjan/EXIFExtractor
97da85c0552bb0a616f04bab1bc0785ae8b35fb6
[ "MIT" ]
null
null
null
#! /usr/bin/env python from __future__ import absolute_import import os import sys PROJECT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir)) sys.path.append(PROJECT_DIR) sys.path.append(os.path.abspath(os.path.join(PROJECT_DIR, "app"))) if __name__ == "__main__": from app.main import Mai...
23.894737
81
0.722467
0
0
0
0
0
0
0
0
37
0.081498
4d8164d0a3cb6cea0dddeadbc81ca630b7412f3a
4,906
py
Python
src/python/nimbusml/internal/core/feature_extraction/image/pixelextractor.py
justinormont/NimbusML-1
110b0f9577f3eb2886897c9a0e7632b400239c8a
[ "MIT" ]
2
2019-03-01T01:22:54.000Z
2019-07-10T19:57:38.000Z
src/python/nimbusml/internal/core/feature_extraction/image/pixelextractor.py
justinormont/NimbusML-1
110b0f9577f3eb2886897c9a0e7632b400239c8a
[ "MIT" ]
null
null
null
src/python/nimbusml/internal/core/feature_extraction/image/pixelextractor.py
justinormont/NimbusML-1
110b0f9577f3eb2886897c9a0e7632b400239c8a
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------------------------- # - Generated by tools/entrypoint_co...
31.651613
94
0.58459
4,298
0.87607
0
0
2,446
0.498573
0
0
2,408
0.490828
4d81eb54f286004b0054b57c3655bf67b6dd1eb6
2,019
py
Python
leetcode/17.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
1
2018-11-29T01:01:32.000Z
2018-11-29T01:01:32.000Z
leetcode/17.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
null
null
null
leetcode/17.py
1005281342/learn
c9d1e2e256842d9b4846c4870ac72e83d172b20e
[ "Apache-2.0" ]
null
null
null
# # @lc app=leetcode.cn id=17 lang=python3 # # [17] 电话号码的字母组合 # # https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/description/ # # algorithms # Medium (47.70%) # Total Accepted: 18K # Total Submissions: 37.5K # Testcase Example: '"23"' # # 给定一个仅包含数字 2-9 的字符串,返回所有它能表示的字母组合。 # # 给出数字到字母的映射如下(与...
22.943182
85
0.430411
1,608
0.669164
0
0
0
0
0
0
1,436
0.597586
4d831472f18b104577a3fb6f299305d975452191
15,031
py
Python
mujoco/setup1/re_split_demo.py
EvieQ01/Learning-Feasibility-Different-Dynamics
73786b11137b8ba9840d00ec4d258c1296b0a595
[ "MIT" ]
null
null
null
mujoco/setup1/re_split_demo.py
EvieQ01/Learning-Feasibility-Different-Dynamics
73786b11137b8ba9840d00ec4d258c1296b0a595
[ "MIT" ]
null
null
null
mujoco/setup1/re_split_demo.py
EvieQ01/Learning-Feasibility-Different-Dynamics
73786b11137b8ba9840d00ec4d258c1296b0a595
[ "MIT" ]
null
null
null
import random import argparse from ast import Global from dis import dis from glob import glob from itertools import count from math import dist from logger import * import json import gym from matplotlib.pyplot import axis import scipy.optimize import pdb import torch from torch.autograd import Variable from jax_rl....
38.940415
132
0.635487
0
0
0
0
0
0
0
0
6,059
0.397546
4d8333c69b2cee30bebf3bc76fe51963641f9990
7,500
py
Python
slicer/bin/Python/tpycl/tpycl.py
pabloduque0/WMH_AttGatedUnet_CustomLoss
3503b40c031494ca866dced1421d95f7b2e311fe
[ "MIT" ]
null
null
null
slicer/bin/Python/tpycl/tpycl.py
pabloduque0/WMH_AttGatedUnet_CustomLoss
3503b40c031494ca866dced1421d95f7b2e311fe
[ "MIT" ]
null
null
null
slicer/bin/Python/tpycl/tpycl.py
pabloduque0/WMH_AttGatedUnet_CustomLoss
3503b40c031494ca866dced1421d95f7b2e311fe
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # tpycl.py is the python support code to allow calling of python-wrapped # vtk code from tcl scripts # # the main class is tpycl, and scripts can # import sys import os import Tkinter from __main__ import slicer import qt class tpycl(object): def __init__(self): self.verbose = False ...
29.761905
124
0.6212
7,183
0.957733
0
0
0
0
0
0
2,981
0.397467
4d848e3435cc8a2b14ed24badeae8ae87d28d72a
473
py
Python
0171 [Easy] Hex to Bmp/script.py
jwthomson/dailyprogrammer
44eb1c4e0ec9e8c8660721b24c949013fe3acdc6
[ "MIT" ]
null
null
null
0171 [Easy] Hex to Bmp/script.py
jwthomson/dailyprogrammer
44eb1c4e0ec9e8c8660721b24c949013fe3acdc6
[ "MIT" ]
null
null
null
0171 [Easy] Hex to Bmp/script.py
jwthomson/dailyprogrammer
44eb1c4e0ec9e8c8660721b24c949013fe3acdc6
[ "MIT" ]
null
null
null
hex_strings = [ "FF 81 BD A5 A5 BD 81 FF", "AA 55 AA 55 AA 55 AA 55", "3E 7F FC F8 F8 FC 7F 3E", "93 93 93 F3 F3 93 93 93", ] def hex_data_to_image(hex_data): for hex_pair in hex_data: for divisor in reversed(range(len(hex_data))): print("X" if (int(hex_pair, 16) >> divisor & 1) == 1 else " ", end=...
26.277778
76
0.623679
0
0
0
0
0
0
0
0
121
0.255814
4d865dc35190b4ae2e09f8e09f56d08962508268
264
py
Python
core/kryptos/scripts/strat.py
czr1803/kryptos
2e8e20b81c7486283ab39df053146048f5496474
[ "MIT" ]
45
2019-01-27T13:47:51.000Z
2022-03-13T00:25:21.000Z
core/kryptos/scripts/strat.py
czr1803/kryptos
2e8e20b81c7486283ab39df053146048f5496474
[ "MIT" ]
64
2019-01-24T06:43:13.000Z
2020-03-09T17:14:52.000Z
core/kryptos/scripts/strat.py
produvia/kryptos
2e8e20b81c7486283ab39df053146048f5496474
[ "MIT" ]
4
2019-11-21T10:49:17.000Z
2021-09-30T03:33:00.000Z
import click from kryptos.scripts import build_strategy, stress_worker, kill_strat @click.group(name="strat") def cli(): pass cli.add_command(build_strategy.run, "build") cli.add_command(stress_worker.run, "stress") cli.add_command(kill_strat.run, "kill")
20.307692
69
0.772727
0
0
0
0
46
0.174242
0
0
28
0.106061
4d869dccaeface891a8710af79793bcca714b0e5
2,334
py
Python
scripts/album_times.py
TypicalFence/lainonlife
7af0cf3fe8e48e6affdb3e79d2a89e1c399371b3
[ "MIT" ]
48
2017-04-29T20:13:52.000Z
2022-03-23T09:48:56.000Z
scripts/album_times.py
ech1/lainonlife
c5bee94d8dec03d586c62e241d2af5c250e1dde9
[ "MIT" ]
46
2017-04-27T18:39:43.000Z
2022-03-29T13:09:53.000Z
scripts/album_times.py
TypicalFence/lainonlife
7af0cf3fe8e48e6affdb3e79d2a89e1c399371b3
[ "MIT" ]
12
2017-04-29T20:20:13.000Z
2021-09-20T11:29:14.000Z
#!/usr/bin/env python3 """Radio scheduling program. Usage: album_times.py [--host=HOST] PORT Options: --host=HOST Hostname of MPD [default: localhost] -h --help Show this text Prints out the last scheduling time of every album. """ from datetime import datetime from docopt import docopt from mpd import M...
28.120482
84
0.652099
0
0
0
0
0
0
0
0
849
0.363753
4d8737a112ba3cd3448b92d237da96606f4b3fb2
1,116
py
Python
pico-examples/usb/device/dev_lowlevel/dev_lowlevel_loopback.py
TheMindVirus/tinyusb
397f5f916d84841d878ab75cadae007af13220a1
[ "MIT" ]
null
null
null
pico-examples/usb/device/dev_lowlevel/dev_lowlevel_loopback.py
TheMindVirus/tinyusb
397f5f916d84841d878ab75cadae007af13220a1
[ "MIT" ]
null
null
null
pico-examples/usb/device/dev_lowlevel/dev_lowlevel_loopback.py
TheMindVirus/tinyusb
397f5f916d84841d878ab75cadae007af13220a1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (c) 2020 Raspberry Pi (Trading) Ltd. # # SPDX-License-Identifier: BSD-3-Clause # # sudo pip3 install pyusb import usb.core import usb.util # find our device dev = usb.core.find(idVendor=0x0000, idProduct=0x0001) # was it found? if dev is None: raise ValueE...
22.77551
72
0.646057
0
0
0
0
0
0
0
0
317
0.28405
4d87cbb67ddde96fe36f99d2c52da4c04b9e08f6
1,426
py
Python
aiidalab_sssp/inspect/subwidgets/summary.py
aiidalab/aiidalab-sssp
4f06d7fdff32b86996e85b6c65b372a41f0192a4
[ "MIT" ]
null
null
null
aiidalab_sssp/inspect/subwidgets/summary.py
aiidalab/aiidalab-sssp
4f06d7fdff32b86996e85b6c65b372a41f0192a4
[ "MIT" ]
1
2022-03-28T10:22:31.000Z
2022-03-28T10:22:31.000Z
aiidalab_sssp/inspect/subwidgets/summary.py
aiidalab/aiidalab-sssp
4f06d7fdff32b86996e85b6c65b372a41f0192a4
[ "MIT" ]
1
2021-09-30T08:47:39.000Z
2021-09-30T08:47:39.000Z
import ipywidgets as ipw import traitlets from IPython.display import clear_output class SummaryWidget(ipw.VBox): """output the convergence summary""" selected_pseudos = traitlets.Dict(allow_none=True) def __init__(self): # Delta mesure self.output = ipw.Output() super().__init_...
30.340426
86
0.590463
542
0.380084
0
0
222
0.15568
0
0
500
0.350631
4d88b9099339ce1c59838e9b514d20d29f9eb74a
2,846
py
Python
src/ska_pst_lmc/management/management_device.py
ska-telescope/ska-pst-lmc
d567f874bf55f49269416d0d83b5a80373a1281c
[ "BSD-3-Clause" ]
null
null
null
src/ska_pst_lmc/management/management_device.py
ska-telescope/ska-pst-lmc
d567f874bf55f49269416d0d83b5a80373a1281c
[ "BSD-3-Clause" ]
null
null
null
src/ska_pst_lmc/management/management_device.py
ska-telescope/ska-pst-lmc
d567f874bf55f49269416d0d83b5a80373a1281c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of the SKA PST LMC project # # Distributed under the terms of the BSD 3-clause new license. # See LICENSE for more info. """This module implements the PstManagement device.""" from __future__ import annotations from typing import Optional from ska_tango_base.csp.control...
26.849057
91
0.641251
1,854
0.651441
0
0
0
0
0
0
1,737
0.61033
4d895a735abdd884483a6e9345d2c27f5444c080
1,469
py
Python
change_mac_ip.py
Anon123-tech/WiFi_Pentest_Guide
969c5018645bc22fce663c42d709320eece1837a
[ "MIT" ]
null
null
null
change_mac_ip.py
Anon123-tech/WiFi_Pentest_Guide
969c5018645bc22fce663c42d709320eece1837a
[ "MIT" ]
1
2021-10-01T04:19:27.000Z
2021-10-01T04:19:27.000Z
change_mac_ip.py
Anon123-tech/WiFi_Pentest_Guide
969c5018645bc22fce663c42d709320eece1837a
[ "MIT" ]
null
null
null
import sys,os import argparse as arg import nmap import urllib2 parser = arg.ArgumentParser() parser.add_argument("-a", "--address", help="IP address", required=True) parser.add_argument("-i", "--interface", help="Interface", required=True) argument = parser.parse_args() def scan_(ip): dict_ = [] scan = nmap.PortS...
27.716981
89
0.645337
0
0
0
0
0
0
0
0
388
0.264125
4d8a3cc2d4d2015a3e0297d36d0b96dcf9279316
713
py
Python
cartografo/argument_parser.py
mendrugory/cartografo
2cd58dfa3c954447f39f084abd28031a47d924d7
[ "MIT" ]
4
2019-01-16T07:49:51.000Z
2020-02-14T21:25:21.000Z
cartografo/argument_parser.py
mendrugory/cartografo
2cd58dfa3c954447f39f084abd28031a47d924d7
[ "MIT" ]
null
null
null
cartografo/argument_parser.py
mendrugory/cartografo
2cd58dfa3c954447f39f084abd28031a47d924d7
[ "MIT" ]
null
null
null
import argparse from cartografo import DEFAULT_OBJECT, DEFAULT_TARGET def __get_argparser(): __parser.add_argument('--k8s-object', help='Output Kubernetes objet: secrets or configmap') __parser.add_argument('--target', help='Target file. If it exists, it will be modified') __parser.add_argument('files_fo...
35.65
95
0.750351
0
0
0
0
0
0
0
0
193
0.270687
4d8becef069dc2415fd75f8eb057517bc3d380a9
343
py
Python
Python_lxf/Python_Basic_Operation/Python_Basic/basicValueAndFunc/slice.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
2
2019-01-24T15:06:59.000Z
2019-01-25T07:34:45.000Z
Python_lxf/Python_Basic_Operation/Python_Basic/basicValueAndFunc/slice.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
1
2019-12-23T09:45:11.000Z
2019-12-23T09:45:11.000Z
Python_lxf/Python_Basic_Operation/Python_Basic/basicValueAndFunc/slice.py
QAlexBall/Learning_Py
8a5987946928a9d86f6807555ed435ac604b2c44
[ "MIT" ]
1
2019-07-18T14:21:35.000Z
2019-07-18T14:21:35.000Z
L = ['michael', 'sarah', 'tracy', 'bob', 'jack'] # 取前N个元素 r = [] n = 3 for i in range(n): r.append(L[i]) print(r) # python提供slice操作符简化. m = 0 print(L[m:n], L[:n], L[-n:-1]) L = list(range(100)) print(L[:10], '\r', L[-10:], '\r', L[10:20], '\r', L[:10:2], '\r', L[::5]) print((0, 1, 2, 3, 4, 5)[:3]) print('ABCDEFG'[:3...
16.333333
74
0.483965
0
0
0
0
0
0
0
0
121
0.3297
4d8d2dfaa3afe8aa6965d0899dc098740dc88c7a
3,330
py
Python
test/test_timematcher.py
magus0219/clockwork
78c08afdd14f226d7f5c13af633d41a2185ebb7f
[ "MIT" ]
null
null
null
test/test_timematcher.py
magus0219/clockwork
78c08afdd14f226d7f5c13af633d41a2185ebb7f
[ "MIT" ]
null
null
null
test/test_timematcher.py
magus0219/clockwork
78c08afdd14f226d7f5c13af633d41a2185ebb7f
[ "MIT" ]
null
null
null
''' Created on Feb 17, 2014 @author: magus0219 ''' import unittest,datetime from util.dateutil import DateUtil from core.timematcher import TimeMatcher from core.timepattern import TimePattern class TimeMatcherTest(unittest.TestCase): @unittest.expectedFailure def testUnvaidValueNotInt(self): TimeMat...
47.571429
102
0.562162
3,029
0.90961
0
0
540
0.162162
0
0
474
0.142342
4d8dccb89c879711e7ed922439a880fb09054040
276
py
Python
pets/api/urls.py
tekodan/DaleLaPata
7a998f617d88c3f71fe5da896f2197fc0043a731
[ "MIT" ]
1
2019-05-06T18:44:43.000Z
2019-05-06T18:44:43.000Z
pets/api/urls.py
tekodan/DaleLaPata
7a998f617d88c3f71fe5da896f2197fc0043a731
[ "MIT" ]
10
2021-03-18T21:20:55.000Z
2022-03-11T23:33:03.000Z
pets/api/urls.py
koyoo-maxwel/findyourpet
ae5978f9ddd9e116d332734d2a45c76d7c6ac1f6
[ "MIT" ]
null
null
null
from django.conf.urls import url from api import views urlpatterns = [ url(r'^pets/$', views.ListPets.as_view(), name='list_pets'), url(r'^cities/$', views.CityList.as_view(), name='city-list'), url(r'^states/$', views.StateList.as_view(), name='state-list'), ]
27.6
68
0.663043
0
0
0
0
0
0
0
0
68
0.246377
4d8e2ab661763c22c669a9c4b0bb47f144d56291
1,503
py
Python
app-engine-utility-service/toggleIndex.py
isabella232/gov-meetings-made-searchable
bcbb13544fbfb8e5d5a12c66885fdb54ae52584a
[ "Apache-2.0" ]
26
2019-03-06T15:47:21.000Z
2022-03-30T17:25:20.000Z
app-engine-utility-service/toggleIndex.py
google/gov-meetings-made-searchable
bcbb13544fbfb8e5d5a12c66885fdb54ae52584a
[ "Apache-2.0" ]
4
2021-02-08T20:27:35.000Z
2021-09-08T00:50:23.000Z
app-engine-utility-service/toggleIndex.py
isabella232/gov-meetings-made-searchable
bcbb13544fbfb8e5d5a12c66885fdb54ae52584a
[ "Apache-2.0" ]
8
2019-03-06T18:48:16.000Z
2021-08-14T14:33:33.000Z
#!/usr/bin/env python # This is not an officially supported Google product, though support # will be provided on a best-effort basis. # Copyright 2018 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 co...
25.913793
77
0.727878
657
0.437126
0
0
0
0
0
0
891
0.592814
4d8e30f69b17eb91d913983be8d413e7774df4f1
1,131
py
Python
app.py
Jianghuchengphilip/Master-art-punk
4102d82148bf571e0cd418e363c51fa8486c5a43
[ "Apache-2.0" ]
37
2022-01-12T07:07:59.000Z
2022-03-31T10:25:46.000Z
app.py
Jianghuchengphilip/Master-art-punk
4102d82148bf571e0cd418e363c51fa8486c5a43
[ "Apache-2.0" ]
1
2022-01-25T12:24:57.000Z
2022-02-03T10:45:00.000Z
app.py
Jianghuchengphilip/Master-art-punk
4102d82148bf571e0cd418e363c51fa8486c5a43
[ "Apache-2.0" ]
10
2022-01-12T07:29:37.000Z
2022-03-28T23:37:42.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- """================================================= @Author :蒋虎成 @Date :2021/9/22 17:04 @Desc :主接口 ==================================================""" from colors import ColorMultiImage import settings from model import training import csv if __name__ == '__main__': ...
41.888889
139
0.640141
0
0
0
0
0
0
0
0
467
0.375704
4d8fb7a2d431e379774da24a3d509b9f7f50930d
3,345
py
Python
indivsims-dist.py
LohmuellerLab/Forward_Neanderthal
bee8b9ab6afc61942526a3e842c499fbe9cf6fdc
[ "MIT" ]
3
2016-04-02T14:02:36.000Z
2018-11-07T18:36:02.000Z
indivsims-dist.py
LohmuellerLab/Forward_Neanderthal
bee8b9ab6afc61942526a3e842c499fbe9cf6fdc
[ "MIT" ]
null
null
null
indivsims-dist.py
LohmuellerLab/Forward_Neanderthal
bee8b9ab6afc61942526a3e842c499fbe9cf6fdc
[ "MIT" ]
null
null
null
#! /usr/bin/env python """ usage: demoselsim.py outfilename popn h pct """ import numpy import sys def pnext(AC, N, Nout, h, s): AC = float(AC); N = float(N); h = float(h); s = float(s) p = AC/(2*N) w11 = 1+s; w12 = 1+h*s; w22 = 1 wbar = ((p**2) * w11) + (2*p*(1-p)*w12) + (((1-p)**2) * w22) pdet = p*(p*w11 + (1...
21.862745
70
0.581764
0
0
0
0
0
0
0
0
451
0.134828
4d90bf3108f4644d16656af50720d7f25c3d7eaf
4,692
py
Python
core/modules.py
egecakmak/SAnD
73cc3560450312cd2916b45ac043cc763539e5ad
[ "MIT" ]
43
2019-12-27T12:46:31.000Z
2022-03-12T06:52:01.000Z
core/modules.py
LuisMoralesAlonso/SAnD
d6d214b3681ef2f14b76a6e32f86c0c69022e2ee
[ "MIT" ]
7
2020-04-27T13:16:45.000Z
2021-12-13T13:06:47.000Z
core/modules.py
LuisMoralesAlonso/SAnD
d6d214b3681ef2f14b76a6e32f86c0c69022e2ee
[ "MIT" ]
8
2020-01-11T17:08:59.000Z
2021-04-10T15:15:21.000Z
import math import torch import numpy as np import torch.nn as nn class PositionalEncoding(nn.Module): def __init__(self, d_model, seq_len) -> None: super(PositionalEncoding, self).__init__() self.d_model = d_model pe = torch.zeros(seq_len, d_model) for pos in range(seq_len): ...
32.358621
95
0.589301
4,604
0.981245
0
0
0
0
0
0
238
0.050725
4d92c6dffc16135c5125b569d46c22e978986d36
4,350
py
Python
samcli/commands/local/cli_common/options.py
trenton/aws-sam-cli
11db934d3584c17fb5ba94d0e92e291c2c91d7c9
[ "Apache-2.0" ]
1
2019-12-24T17:27:09.000Z
2019-12-24T17:27:09.000Z
samcli/commands/local/cli_common/options.py
ShreyaGangishetty/aws-sam-cli
f896920468770f3407a3035b9c8e04902578d556
[ "Apache-2.0" ]
1
2021-06-02T02:44:08.000Z
2021-06-02T02:44:08.000Z
samcli/commands/local/cli_common/options.py
CavHack/aws-sam-cli
9355b7b613af907055b9ea5fb199f5d6d501c490
[ "Apache-2.0" ]
null
null
null
""" Common CLI options for invoke command """ import click from samcli.commands._utils.options import template_click_option, docker_click_options, parameter_override_click_option try: from pathlib import Path except ImportError: from pathlib2 import Path def get_application_dir(): """ Returns -...
31.294964
119
0.570115
0
0
0
0
0
0
0
0
2,166
0.497931
4d9318a61357e8ed5c3736eac9a6f69296fcd981
3,083
py
Python
Leetcode/week_6/multi_threaded_merge_sort.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
1
2021-07-07T00:55:23.000Z
2021-07-07T00:55:23.000Z
Leetcode/week_6/multi_threaded_merge_sort.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
null
null
null
Leetcode/week_6/multi_threaded_merge_sort.py
SamSamhuns/wallbreakers_projekts
c07b555127ee89d6f461cea7cd87811c382086ff
[ "MIT" ]
null
null
null
import threading def merge_sort(arr): def _merge(arr1, arr2): i, j = 0, 0 l1, l2 = len(arr1), len(arr2) arr_sorted = [0] * (l1 + l2) idx = 0 while i < l1 and j < l2: if arr1[i] < arr2[j]: arr_sorted[idx] = arr1[i] i += 1 ...
25.907563
76
0.472267
0
0
0
0
0
0
0
0
209
0.067791
4d93299efc0720f63f6f0dc30928e10e3a67f707
830
py
Python
examples/reactjs-nodejs/deploy.py
py-mina-deploy/py-mina
029bbe6f183afece1ccc2e2d3d11873c5560e8f4
[ "MIT" ]
7
2017-09-21T17:00:59.000Z
2021-06-18T06:03:19.000Z
examples/reactjs-nodejs/deploy.py
py-mina-deploy/py-mina
029bbe6f183afece1ccc2e2d3d11873c5560e8f4
[ "MIT" ]
null
null
null
examples/reactjs-nodejs/deploy.py
py-mina-deploy/py-mina
029bbe6f183afece1ccc2e2d3d11873c5560e8f4
[ "MIT" ]
2
2018-03-20T07:51:37.000Z
2020-05-03T14:30:55.000Z
""" Deploy NodeJs application https://github.com/react-boilerplate/react-boilerplate """ from py_mina import * from py_mina.subtasks import git_clone, create_shared_paths, link_shared_paths, rollback_release # Settings - shared set('verbose', True) set('shared_dirs', ['node_modules', 'tmp']) set('shared_files', ...
13.606557
96
0.708434
0
0
0
0
484
0.583133
0
0
430
0.518072
4d9622c35c6cf1b3dd5d13ccfc59f523a7821253
4,653
py
Python
altair_saver/savers/_saver.py
RoyalTS/altair_saver
31febb5faf7c3d6d27c2f5fe4045635099143042
[ "BSD-3-Clause" ]
null
null
null
altair_saver/savers/_saver.py
RoyalTS/altair_saver
31febb5faf7c3d6d27c2f5fe4045635099143042
[ "BSD-3-Clause" ]
null
null
null
altair_saver/savers/_saver.py
RoyalTS/altair_saver
31febb5faf7c3d6d27c2f5fe4045635099143042
[ "BSD-3-Clause" ]
null
null
null
import abc import json from typing import Any, Dict, IO, Iterable, List, Optional, Union import altair as alt from altair_saver.types import Mimebundle, MimebundleContent, JSONDict from altair_saver._utils import ( extract_format, fmt_to_mimetype, infer_mode_from_spec, maybe_open, ) class Saver(meta...
33.235714
92
0.573823
4,348
0.934451
0
0
243
0.052224
0
0
1,688
0.362777
4d9a26770685da502961cca228e3f8b5f696e2a2
172
py
Python
tests/conftest.py
s0undt3ch/mommas-cookbook
ccca526eee9241f12674cad8c1e1da1a900cef82
[ "Apache-2.0" ]
2
2022-01-02T23:47:32.000Z
2022-01-07T11:14:15.000Z
tests/conftest.py
UfSoft/mommas-cookbook
ccca526eee9241f12674cad8c1e1da1a900cef82
[ "Apache-2.0" ]
1
2022-01-17T12:47:37.000Z
2022-01-17T12:47:37.000Z
tests/conftest.py
s0undt3ch/mommas-cookbook
ccca526eee9241f12674cad8c1e1da1a900cef82
[ "Apache-2.0" ]
1
2022-01-10T18:49:36.000Z
2022-01-10T18:49:36.000Z
# Import our project so that our custom logging gets setup early enough from __future__ import annotations import mcookbook # noqa: F401 # pylint: disable=unused-import
34.4
71
0.796512
0
0
0
0
0
0
0
0
116
0.674419
4d9a39367847fba7d83c619b3792a5d2c6b7b745
401
py
Python
shoottikala/privileges.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
null
null
null
shoottikala/privileges.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
9
2017-02-15T20:36:49.000Z
2017-05-26T12:10:43.000Z
shoottikala/privileges.py
conikuvat/shootti-ilmo
bf5ab15e20173994bac25e6b5cd3aec42f671f05
[ "MIT" ]
null
null
null
from .exceptions import AccessDenied class AccessControlMixin(object): def user_can_edit(self, user): return (user.is_superuser or self.user == user) def check_write_privileges(self, user): if not self.user_can_edit(user): raise AccessDenied() def check_read_privileges(self, ...
26.733333
55
0.678304
361
0.900249
0
0
0
0
0
0
0
0
4d9ba15c517c23c2ecfacb361d428d6f96edb488
1,976
py
Python
scrape-scripts/co2-coalition.py
ClimateMisinformation/infrastructure
f0940b6f1814b302ff328d2f1d8a04ffa2acde64
[ "Apache-2.0" ]
null
null
null
scrape-scripts/co2-coalition.py
ClimateMisinformation/infrastructure
f0940b6f1814b302ff328d2f1d8a04ffa2acde64
[ "Apache-2.0" ]
null
null
null
scrape-scripts/co2-coalition.py
ClimateMisinformation/infrastructure
f0940b6f1814b302ff328d2f1d8a04ffa2acde64
[ "Apache-2.0" ]
null
null
null
import os from bs4 import BeautifulSoup import html2text import pandas data_dir = 'co2-coalition' data_text_dir = os.path.join(data_dir, 'text') data_file_name = 'co2-coalition.csv' def make_file_name(index): return f'{index:02d}' def save_text(data_dir, file_path, content): f = open(os.path.join(data_dir, file...
22.976744
84
0.723178
0
0
0
0
0
0
0
0
391
0.197874
4d9e067a4c732861782bebe97c9870ee7872595c
218
py
Python
tareas/3/FranciscoRodrigo-SanchezBeatriz/common/random_proc.py
Miguelp-rez/sistop-2019-2
428444217ba0cc98030a9d84d8b415dcddad9b65
[ "CC-BY-4.0" ]
null
null
null
tareas/3/FranciscoRodrigo-SanchezBeatriz/common/random_proc.py
Miguelp-rez/sistop-2019-2
428444217ba0cc98030a9d84d8b415dcddad9b65
[ "CC-BY-4.0" ]
null
null
null
tareas/3/FranciscoRodrigo-SanchezBeatriz/common/random_proc.py
Miguelp-rez/sistop-2019-2
428444217ba0cc98030a9d84d8b415dcddad9b65
[ "CC-BY-4.0" ]
null
null
null
import random def rand_proc(num_proc): procesos = [] for j in range(0,num_proc): t_0 = random.randint(1,10+1) t =random.randint(1,10+1) procesos.append([j,t_0,t]) return procesos
19.818182
36
0.600917
0
0
0
0
0
0
0
0
0
0
4d9e28ca22e75c89217adddb5f64ba79edc5981d
1,753
py
Python
fooof/tests/test_analysis.py
anchandm/fooof
dcc93b14c4a6987ce7e394696af3221dd2a7bbd6
[ "Apache-2.0" ]
1
2019-03-26T16:30:43.000Z
2019-03-26T16:30:43.000Z
fooof/tests/test_analysis.py
anchandm/fooof
dcc93b14c4a6987ce7e394696af3221dd2a7bbd6
[ "Apache-2.0" ]
null
null
null
fooof/tests/test_analysis.py
anchandm/fooof
dcc93b14c4a6987ce7e394696af3221dd2a7bbd6
[ "Apache-2.0" ]
null
null
null
"""Test functions for FOOOF analysis.""" import numpy as np from fooof.analysis import * ################################################################################################### ################################################################################################### def test_get_band_peak_fm(t...
28.274194
99
0.551055
0
0
0
0
0
0
0
0
360
0.205362
4d9ef0e46af27e7dc0c401a2f1d44362cba6b228
2,677
py
Python
dary_heap.py
fepz/AyCC
72a184c3da075677a2a7e5aebe50d1ceb6627ccf
[ "MIT" ]
null
null
null
dary_heap.py
fepz/AyCC
72a184c3da075677a2a7e5aebe50d1ceb6627ccf
[ "MIT" ]
null
null
null
dary_heap.py
fepz/AyCC
72a184c3da075677a2a7e5aebe50d1ceb6627ccf
[ "MIT" ]
null
null
null
import math # The code is based on from http://www.cs.cmu.edu/~ckingsf/class/02713-s13/src/mst.py # Heap item class HeapItem(object): """Represents an item in the heap""" def __init__(self, key, value): self.key = key self.pos = None self.value = value # d-ary Heap cl...
30.770115
89
0.537542
2,524
0.942846
0
0
0
0
0
0
608
0.22712
4d9f5affe61b40083c20917f0cdf236631978825
679
py
Python
S1c_Option2.py
tatytita20/TatianaOrtizG
bfc9e4a84fe16063871ca3210373f5cd5d05ec00
[ "BSD-2-Clause" ]
null
null
null
S1c_Option2.py
tatytita20/TatianaOrtizG
bfc9e4a84fe16063871ca3210373f5cd5d05ec00
[ "BSD-2-Clause" ]
null
null
null
S1c_Option2.py
tatytita20/TatianaOrtizG
bfc9e4a84fe16063871ca3210373f5cd5d05ec00
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[5]: import cv2 import numpy as np imagen = cv2.imread('wheel.png') gray = cv2.cvtColor(imagen,cv2.COLOR_BGR2GRAY) _,th = cv2.threshold(gray,100,255,cv2.THRESH_BINARY) #Para versiones OpenCV3: img1,contornos1,hierarchy1 = cv2.findContours(th, cv2.RETR_EXTERNAL,cv2.CHAIN_AP...
21.903226
92
0.73785
0
0
0
0
0
0
0
0
141
0.207658
4da1078413c6ede4c933c888d3cfb359e4bb4c92
2,014
py
Python
PythonFSDAM/combine_works.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
PythonFSDAM/combine_works.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
PythonFSDAM/combine_works.py
MauriceKarrenbrock/PythonFSDAM
efd4a1717af37d6598aaaca0fa520f735cf254b0
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################# # Copyright (c) 2020-2021 Maurice Karrenbrock # # # # This software is open-source and is distributed under the # # BSD 3-Clause "New" or "Revised" License ...
30.059701
72
0.604767
0
0
0
0
0
0
0
0
1,603
0.795929
4da13726f32134c310d04e7e245dd18f5b4f2d9a
8,622
py
Python
modules/pointrnn_cell_impl.py
hehefan/PointRNN-PyTorch
4d32a3dbb03ca423d5b79c6c9ae848b75cee724a
[ "MIT" ]
35
2020-03-16T08:40:57.000Z
2022-03-14T21:14:56.000Z
modules/pointrnn_cell_impl.py
hehefan/PointRNN-PyTorch
4d32a3dbb03ca423d5b79c6c9ae848b75cee724a
[ "MIT" ]
4
2021-02-23T12:33:47.000Z
2021-12-29T06:44:34.000Z
modules/pointrnn_cell_impl.py
hehefan/PointRNN-PyTorch
4d32a3dbb03ca423d5b79c6c9ae848b75cee724a
[ "MIT" ]
5
2020-08-12T05:37:45.000Z
2021-12-13T02:51:34.000Z
import torch import torch.nn as nn import torch.nn.functional as F import os import sys BASE_DIR = os.path.dirname(os.path.abspath(__file__)) sys.path.append(BASE_DIR) import pointnet2_utils import pytorch_utils as pt_utils from typing import List class PointSpatioTemporalCorrelation(nn.Module): def __init__( ...
34.488
163
0.588727
7,600
0.881466
0
0
0
0
0
0
619
0.071793
4da267cbfd8f27c90210ee8dd60a31e0b0b8e755
347
py
Python
rssplus/forms.py
Davidhw/infocatch
ddeb5d31b1eb353f41f444c5c6eec2c5d1b1ba72
[ "BSD-2-Clause" ]
null
null
null
rssplus/forms.py
Davidhw/infocatch
ddeb5d31b1eb353f41f444c5c6eec2c5d1b1ba72
[ "BSD-2-Clause" ]
null
null
null
rssplus/forms.py
Davidhw/infocatch
ddeb5d31b1eb353f41f444c5c6eec2c5d1b1ba72
[ "BSD-2-Clause" ]
null
null
null
from django import forms class URLForm(forms.Form): siteUrl = forms.CharField(label='Website Address', max_length=100,required=True) ''' javascriptChoices = ((2,"Keep Javascript",),(1,"Remove Some Javascript"),(0,"Remove All Javascript")) keepJavascript = forms.ChoiceField(choices=javascriptChoices,label="...
34.7
105
0.737752
111
0.319885
0
0
0
0
0
0
225
0.648415
4da29c483d3fd7e63823596e88d9d101fcad2df3
78
py
Python
wsgi.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
12
2021-12-18T10:41:10.000Z
2022-03-29T23:00:29.000Z
wsgi.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
103
2021-12-07T08:51:15.000Z
2022-03-31T13:28:48.000Z
wsgi.py
FlexMeasures/flexmeasures
a4367976d37ac5721b8eb3ce8a2414595e52c678
[ "Apache-2.0" ]
3
2022-01-18T04:45:48.000Z
2022-03-14T09:48:22.000Z
from flexmeasures.app import create as create_app application = create_app()
19.5
49
0.820513
0
0
0
0
0
0
0
0
0
0
4da2cd364bac0f635be3f42e807ba80193bddce5
839
py
Python
mbus/MBusAddress.py
droid4control/python-mbus
8e26c1847c06e57bc0e878ef3d6610dc9ba913b4
[ "BSD-3-Clause" ]
23
2015-05-19T15:57:40.000Z
2021-03-18T11:33:22.000Z
mbus/MBusAddress.py
Sensenode/python-mbus
9b598ada5b3da17bb513cf78e5b4a8f2a3f9a1f1
[ "BSD-3-Clause" ]
14
2015-09-20T20:26:22.000Z
2020-05-13T16:39:15.000Z
mbus/MBusAddress.py
neurobat/python-mbus
8e26c1847c06e57bc0e878ef3d6610dc9ba913b4
[ "BSD-3-Clause" ]
22
2015-07-27T08:50:44.000Z
2022-03-19T01:17:18.000Z
from ctypes import Structure, Union, c_int, c_byte, c_char_p # Inner union class MBusAddressInternal(Union): _fields_ = [ ('primary', c_int), ('secondary', c_char_p), ] class MBusAddress(Structure): _fields_ = [ ('is_primary', c_byte), ('_address', ...
22.675676
60
0.605483
758
0.903456
0
0
464
0.553039
0
0
55
0.065554
4da3d5ac7b735f55566862fbadcd345f662d67b0
1,162
py
Python
settings_template.py
Pierre-Thibault/memberCardGenerator
e05b421d3f50453d3603fd5513383e77378e9ccb
[ "MIT" ]
2
2017-09-29T17:06:19.000Z
2021-05-10T22:30:50.000Z
settings_template.py
Pierre-Thibault/memberCardGenerator
e05b421d3f50453d3603fd5513383e77378e9ccb
[ "MIT" ]
1
2021-09-07T23:43:40.000Z
2021-09-07T23:43:40.000Z
settings_template.py
Pierre-Thibault/memberCardGenerator
e05b421d3f50453d3603fd5513383e77378e9ccb
[ "MIT" ]
1
2022-01-10T13:42:54.000Z
2022-01-10T13:42:54.000Z
# -*- coding: utf-8 -*- # Copy this file and renamed it settings.py and change the values for your own project # The csv file containing the information about the member. # There is three columns: The name, the email and the member type: 0 regular, 1 life time CSV_FILE = "path to csv file" # The svg file for regular...
36.3125
117
0.766781
0
0
0
0
0
0
0
0
949
0.816695
4da52c1e9bb8246e1bfb4b704fffa7ba5aef097c
633
py
Python
korea_client_prospect.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
1
2019-10-04T18:20:43.000Z
2019-10-04T18:20:43.000Z
korea_client_prospect.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
null
null
null
korea_client_prospect.py
DataFinnovation/api-demos-python
1b5cf3334c537b9a09bcb8973c030ad7f19dd2ba
[ "Apache-2.0" ]
null
null
null
"""the names of companies which filed fields with certain words in them""" from df_wrappers import facts_stringquery def main(): """example code lives in one function""" # this one is easier in the script language query_string = """ filingsource:"Korea FSS" AND fieldname:(hedge OR (foreign AND ex...
26.375
74
0.680885
0
0
0
0
0
0
0
0
372
0.587678
4da5665c468aeff1b89db108dda338732a06bdb4
2,413
py
Python
libs/CacheSimulator.py
architecture-helper/architecture-helper-python
89c8e2c8ed051f5d5bcbe2283c5228a745c05e4c
[ "MIT" ]
2
2020-06-15T13:08:10.000Z
2020-06-16T13:56:04.000Z
libs/CacheSimulator.py
architecture-helper/architecture-helper-python
89c8e2c8ed051f5d5bcbe2283c5228a745c05e4c
[ "MIT" ]
null
null
null
libs/CacheSimulator.py
architecture-helper/architecture-helper-python
89c8e2c8ed051f5d5bcbe2283c5228a745c05e4c
[ "MIT" ]
2
2020-10-31T13:21:55.000Z
2020-10-31T13:26:34.000Z
DEBUG = False from typing import List, Tuple class LRU: _values:List _lastIndex:int def __init__(self, ways): #values = 3,2,1,0, so the cache will use 0 as the first self._values = list(range(ways-1,-1,-1)) self._lastIndex = ways -1 def getLeastRecentlyUsed(self): ret...
30.935897
106
0.613344
2,363
0.979279
0
0
0
0
0
0
441
0.18276
4da56c87210d815ae3ce12ef22d4660f4c50a5e6
4,015
py
Python
src/db_triggers.py
serong/saypy
19118fcf34093389c689bf540cf53521667b59f7
[ "MIT" ]
null
null
null
src/db_triggers.py
serong/saypy
19118fcf34093389c689bf540cf53521667b59f7
[ "MIT" ]
null
null
null
src/db_triggers.py
serong/saypy
19118fcf34093389c689bf540cf53521667b59f7
[ "MIT" ]
null
null
null
""" db_triggers.py ~~~~~~~~~~~~~~ :aciklama: Veritabanina veri girisi ve gerekli triggerlar icin :yazar: github.com/serong """ import sqlite3 import db as saydb class SayisalDBT(object): def __init__(self, week, the_date, numbers): self.db_name = "sayisal.db" self.weeks...
27.128378
100
0.547696
3,824
0.952428
0
0
0
0
0
0
1,638
0.40797
4da617061fb7260c745a228403e1f72dc1155bd6
17,088
py
Python
phathom/utils.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
1
2018-04-18T11:54:29.000Z
2018-04-18T11:54:29.000Z
phathom/utils.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
2
2018-04-05T20:53:52.000Z
2018-11-01T16:37:39.000Z
phathom/utils.py
chunglabmit/phathom
304db7a95e898e9b03d6b2640172752d21a7e3ed
[ "MIT" ]
null
null
null
import contextlib import os import pickle import numpy as np from itertools import product, starmap import multiprocessing import tqdm import sys if sys.platform.startswith("linux"): is_linux = True import tempfile else: is_linux = False import mmap # import pyina.launchers # from pyina.ez_map import e...
30.031634
110
0.617743
2,495
0.146009
714
0.041784
429
0.025105
0
0
9,189
0.537746
4da7f0dcc82002a84f867e9fa7df76c1807a4a95
4,706
py
Python
ys_code/src/skin_mb/data/diff_abun.py
sverbanic/ps2-npjBM
646585d787e5ae2d553a04ea4960b36e9d05bf29
[ "CC0-1.0" ]
null
null
null
ys_code/src/skin_mb/data/diff_abun.py
sverbanic/ps2-npjBM
646585d787e5ae2d553a04ea4960b36e9d05bf29
[ "CC0-1.0" ]
null
null
null
ys_code/src/skin_mb/data/diff_abun.py
sverbanic/ps2-npjBM
646585d787e5ae2d553a04ea4960b36e9d05bf29
[ "CC0-1.0" ]
null
null
null
from .result import Result import numpy as np import pandas as pd class DiffAbunRes(Result): def __init__(self, otu_table, transform_pipe=None, percent=False, **kwargs): super().__init__() self.pre_vs_skin = diff_rel_abun(otu_table, compare='pre_vs_skin', transform_pipe=transform_pipe, ...
36.48062
128
0.627922
2,666
0.566511
0
0
622
0.132172
0
0
379
0.080535
4da96c829ebc724feb06739ebe6a1d31d5dda9bf
49
py
Python
while.py
egriswol/astr-119-hw-1
e290355de8f48b9def3fdacf4779ac4a3c51a003
[ "MIT" ]
null
null
null
while.py
egriswol/astr-119-hw-1
e290355de8f48b9def3fdacf4779ac4a3c51a003
[ "MIT" ]
1
2018-10-18T17:49:41.000Z
2018-10-18T17:49:41.000Z
while.py
egriswol/astr-119-hw-1
e290355de8f48b9def3fdacf4779ac4a3c51a003
[ "MIT" ]
1
2018-10-18T01:31:32.000Z
2018-10-18T01:31:32.000Z
i = 0 while (i<119): print(i) i+=10
7
14
0.408163
0
0
0
0
0
0
0
0
0
0
4da98c7999598efa40ea85ebd1e548863fec9e17
15,783
py
Python
coremltools/test/neural_network/test_graph_passes.py
domcorvasce/coremltools
391114169687b6ac9122174ff77d8072e6bf6b68
[ "BSD-3-Clause" ]
65
2019-10-02T09:56:22.000Z
2022-03-16T22:41:14.000Z
coremltools/test/neural_network/test_graph_passes.py
domcorvasce/coremltools
391114169687b6ac9122174ff77d8072e6bf6b68
[ "BSD-3-Clause" ]
51
2020-01-13T07:54:13.000Z
2022-03-17T09:11:56.000Z
coremltools/test/neural_network/test_graph_passes.py
domcorvasce/coremltools
391114169687b6ac9122174ff77d8072e6bf6b68
[ "BSD-3-Clause" ]
16
2020-03-06T09:26:03.000Z
2022-02-05T05:35:05.000Z
import numpy as np import unittest import coremltools.models.datatypes as datatypes from coremltools.models import neural_network as neural_network from coremltools.models import MLModel from coremltools.models.neural_network.printer import print_network_spec from coremltools.converters.nnssa.coreml.graph_pass.mlmodel_...
50.264331
120
0.593677
15,037
0.952734
0
0
4,442
0.281442
0
0
2,873
0.182031
4da9f7a9d46841bf7af0a4af66fd041f70367d1f
575
py
Python
accounting_tech/migrations/0018_auto_20190403_1456.py
Tim-Ilin/asup_corp_site
02a9573f2490ef8f31b3ba95bc351c2458d049e5
[ "MIT" ]
null
null
null
accounting_tech/migrations/0018_auto_20190403_1456.py
Tim-Ilin/asup_corp_site
02a9573f2490ef8f31b3ba95bc351c2458d049e5
[ "MIT" ]
8
2021-03-19T11:12:07.000Z
2022-03-12T00:32:27.000Z
accounting_tech/migrations/0018_auto_20190403_1456.py
Tim-Ilin/asup_corp_site
02a9573f2490ef8f31b3ba95bc351c2458d049e5
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-04-03 11:56 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('accounting_tech', '0017_auto_20190403_1434'), ] operations = [ migrations.AlterField( model_nam...
28.75
177
0.678261
454
0.782759
0
0
0
0
0
0
183
0.315517
4dac488dd2d30d64a8f251641aa08b45ff93ef4d
500
py
Python
tests/bgzip_test.py
Swiffers/puretabix
5f0895c9b17560e76dd962a20844fffb565a4aed
[ "MIT" ]
1
2021-07-07T00:18:47.000Z
2021-07-07T00:18:47.000Z
tests/bgzip_test.py
Swiffers/puretabix
5f0895c9b17560e76dd962a20844fffb565a4aed
[ "MIT" ]
null
null
null
tests/bgzip_test.py
Swiffers/puretabix
5f0895c9b17560e76dd962a20844fffb565a4aed
[ "MIT" ]
null
null
null
from puretabix import get_bgzip_lines_parallel class TestBlockGZip: def test_get_lines(self, vcf_filename, vcf_gz): lines = tuple(sorted(map(bytes.decode, vcf_gz.readlines()))) lines_parsed = tuple(sorted(get_bgzip_lines_parallel(vcf_filename))) for line_in, line_out in zip(lines, lines_p...
35.714286
76
0.676
450
0.9
0
0
0
0
0
0
0
0
4dae657468dbf8a1f6bf472d8e316e6a356158ca
887
py
Python
setup.py
Eawag-SWW/datapool_client
a43c38f0f858a687d6354ef4d857beee59882c8a
[ "MIT" ]
null
null
null
setup.py
Eawag-SWW/datapool_client
a43c38f0f858a687d6354ef4d857beee59882c8a
[ "MIT" ]
null
null
null
setup.py
Eawag-SWW/datapool_client
a43c38f0f858a687d6354ef4d857beee59882c8a
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name="datapool_client", version="1.0", description="Designed to access the datapool software developed by ETH Zurich - SIS and Eawag. " "Find out more under https://datapool.readthedocs.io/en/latest/.", author="Christian Foerster", ...
28.612903
100
0.611048
0
0
0
0
0
0
0
0
477
0.537768