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
ba3d14185541e8c15e9893b318d33f3a291b4fb0
20,940
py
Python
backend/mlarchive/archive/thread.py
dkg/mailarch
562757c09e212c202c35231d7e7c588cd4d3fb65
[ "BSD-3-Clause" ]
6
2022-03-09T23:10:28.000Z
2022-03-21T05:32:40.000Z
backend/mlarchive/archive/thread.py
dkg/mailarch
562757c09e212c202c35231d7e7c588cd4d3fb65
[ "BSD-3-Clause" ]
5
2022-03-11T09:39:47.000Z
2022-03-30T16:48:09.000Z
backend/mlarchive/archive/thread.py
dkg/mailarch
562757c09e212c202c35231d7e7c588cd4d3fb65
[ "BSD-3-Clause" ]
4
2022-03-04T15:36:19.000Z
2022-03-28T23:45:44.000Z
'''This module implements the Zawinksi threading algorithm. https://www.jwz.org/doc/threading.html The main function is process(), which takes a queryset, ie. all messages in a list, and returns the root_node of a container tree representing the thread. Use root_node.walk() to walk the container tree. NOTE: There ar...
33.397129
86
0.600621
3,153
0.150573
613
0.029274
0
0
0
0
6,232
0.297612
ba3d64caf9b23b40b170a7ff0947a7ebfbb45f53
105
py
Python
app.py
dhain/sample-flask
0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0
[ "MIT" ]
null
null
null
app.py
dhain/sample-flask
0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0
[ "MIT" ]
null
null
null
app.py
dhain/sample-flask
0c5f9bbaad80d409cda91164b2f8b2746d9a4fb0
[ "MIT" ]
null
null
null
from flask import Flask app = Flask(__name__) @app.route('/') def index(): i = 0 return str(i)
11.666667
23
0.609524
0
0
0
0
56
0.533333
0
0
3
0.028571
ba3d6d86036397b9fc9ae01e0520c0aaed2cc04e
2,942
py
Python
AIRtaxi-server/taxi.py
manuelnaranjo/AIRtaxi
a168c3f239b01274bc5c85dbe1e05ddd28fb4596
[ "Apache-2.0" ]
1
2015-09-19T06:45:23.000Z
2015-09-19T06:45:23.000Z
AIRtaxi-server/taxi.py
manuelnaranjo/AIRtaxi
a168c3f239b01274bc5c85dbe1e05ddd28fb4596
[ "Apache-2.0" ]
null
null
null
AIRtaxi-server/taxi.py
manuelnaranjo/AIRtaxi
a168c3f239b01274bc5c85dbe1e05ddd28fb4596
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2011 Manuel Francisco Naranjo <manuel at aircable dot net> # # 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....
23.725806
77
0.657716
0
0
0
0
0
0
0
0
1,072
0.364378
ba3dee974a940c282171ed9e43e895bc5c1ce3fc
370
py
Python
mjpoll/__init__.py
DarkWizarD24/mjpoll
877eb45ca713a2e03a84deff4765f282b870e635
[ "MIT" ]
null
null
null
mjpoll/__init__.py
DarkWizarD24/mjpoll
877eb45ca713a2e03a84deff4765f282b870e635
[ "MIT" ]
null
null
null
mjpoll/__init__.py
DarkWizarD24/mjpoll
877eb45ca713a2e03a84deff4765f282b870e635
[ "MIT" ]
null
null
null
# coding: utf-8 from flask import Flask from flask_babel import Babel from flask_bootstrap import Bootstrap app = Flask(__name__) app.config.from_pyfile('application.cfg') app.secret_key = '_\xeb\xaa9\xea\xb9&\xe8\xdfx\xd4oKu\x01\xf3\x94d\x08\xdeGs\x11<' #TODO get if from config babel = Babel(app) Bootstrap(app) ...
19.473684
107
0.775676
0
0
0
0
0
0
0
0
121
0.327027
ba3e99a2d1a0148697392807082e928f2f44d6e9
10,039
py
Python
ci/scripts/python/nrf5_cmake/library.py
perfectco/cmake-nRF5x
08b9158fa7bfa0c8641df468d48917dec46fb115
[ "MIT" ]
111
2017-11-21T06:21:18.000Z
2022-03-30T07:40:03.000Z
ci/scripts/python/nrf5_cmake/library.py
perfectco/cmake-nRF5x
08b9158fa7bfa0c8641df468d48917dec46fb115
[ "MIT" ]
41
2018-01-09T15:44:11.000Z
2021-10-31T08:45:24.000Z
ci/scripts/python/nrf5_cmake/library.py
giuliocorradini/cmake-nRF5x
a5b5d489768dc397a7eddc57d4ad65e6b3039b08
[ "MIT" ]
39
2018-03-13T14:03:10.000Z
2022-02-28T17:46:17.000Z
from __future__ import annotations from unittest import TestCase from enum import Enum from typing import Dict, Iterable, Optional, Set, List from jsonschema import validate as validate_json from nrf5_cmake.property import Access, Property from nrf5_cmake.version import Version class LibraryProperty(Enum): DEPE...
30.237952
87
0.526248
9,749
0.971113
0
0
1,944
0.193645
0
0
793
0.078992
ba3fa1f81fc3f907994226a859f6bf6f9f5f75f2
1,149
py
Python
Estacionamento/core/migrations/0007_auto_20180826_1328.py
1ricardo66/Django2.0
e29afefc908723525d60ea40da353a7ab5b27d1c
[ "Apache-2.0" ]
1
2018-08-21T12:26:02.000Z
2018-08-21T12:26:02.000Z
Estacionamento/core/migrations/0007_auto_20180826_1328.py
1ricardo66/Django2.0
e29afefc908723525d60ea40da353a7ab5b27d1c
[ "Apache-2.0" ]
null
null
null
Estacionamento/core/migrations/0007_auto_20180826_1328.py
1ricardo66/Django2.0
e29afefc908723525d60ea40da353a7ab5b27d1c
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.7 on 2018-08-26 13:28 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('core', '0006_parametros'), ] operations = [ migrations.CreateModel( name='MovRotativo', ...
30.236842
114
0.562228
1,023
0.890339
0
0
0
0
0
0
195
0.169713
ba3faff0153dfc6fc7c4666344478aeca4379d35
246
py
Python
gamla/data.py
0xnurl/gamla
f3903ef5138a6fd94b910abf6ee7665e744d8537
[ "MIT" ]
null
null
null
gamla/data.py
0xnurl/gamla
f3903ef5138a6fd94b910abf6ee7665e744d8537
[ "MIT" ]
null
null
null
gamla/data.py
0xnurl/gamla
f3903ef5138a6fd94b910abf6ee7665e744d8537
[ "MIT" ]
null
null
null
import dataclasses import json import dataclasses_json def get_encode_config(): return dataclasses.field( metadata=dataclasses_json.config( encoder=lambda lst: sorted(lst, key=json.dumps, reverse=False) ) )
18.923077
74
0.691057
0
0
0
0
0
0
0
0
0
0
ba40978bf21bdd4277341b0362355d60c177f3a7
2,069
py
Python
src/installer/src/tortuga/package/rpm.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
33
2018-03-02T17:07:39.000Z
2021-05-21T18:02:51.000Z
src/installer/src/tortuga/package/rpm.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
201
2018-03-05T14:28:24.000Z
2020-11-23T19:58:27.000Z
src/installer/src/tortuga/package/rpm.py
sutasu/tortuga
48d7cde4fa652346600b217043b4a734fa2ba455
[ "Apache-2.0" ]
23
2018-03-02T17:21:59.000Z
2020-11-18T14:52:38.000Z
# Copyright 2008-2018 Univa Corporation # # 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...
31.348485
78
0.628323
1,353
0.653939
0
0
0
0
0
0
1,205
0.582407
ba41ba647531a6e0fb784e885f85d47c2246f90c
1,022
py
Python
where/estimation/rejectors/gnss_pdop_cov.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
16
2018-08-31T10:31:11.000Z
2022-03-15T16:07:24.000Z
where/estimation/rejectors/gnss_pdop_cov.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
5
2018-07-13T14:04:24.000Z
2021-06-17T02:14:44.000Z
where/estimation/rejectors/gnss_pdop_cov.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
15
2018-06-07T05:45:24.000Z
2022-03-15T16:07:27.000Z
"""Reject observations based on PDOP, which is based on estimated covariance matrix of unknowns Description: ------------ Identifies observations from the dataset with PDOP greater than a configured limit. """ # External library imports import numpy as np # Midgard imports from midgard.dev import plugins # Where i...
24.333333
95
0.726027
0
0
0
0
526
0.514677
0
0
572
0.559687
ba41f739b5b8880b18c2364e081ff83f4ded08cc
1,248
py
Python
main.py
TobisMa/GUI
b88ea203378be464f1daaad5c5d41baaecd43f82
[ "MIT" ]
null
null
null
main.py
TobisMa/GUI
b88ea203378be464f1daaad5c5d41baaecd43f82
[ "MIT" ]
null
null
null
main.py
TobisMa/GUI
b88ea203378be464f1daaad5c5d41baaecd43f82
[ "MIT" ]
null
null
null
import pygame, time from pygame.constants import QUIT, WINDOWCLOSE #from src import * win = pygame.display.set_mode([800,600], 16) pygame.init() quitcount = 0 while True: win.fill([200, 200, 200]) for event in pygame.event.get(): if event.type in ( #pygame.QUIT, #pygame.WINDOWCL...
27.130435
95
0.559295
0
0
0
0
0
0
0
0
522
0.418269
ba4270166ab265fb092eb79d9e9b77ce2ea5445d
376
py
Python
code/glucocheck/homepage/migrations/0009_auto_20210316_2008.py
kmcgreg5/Glucocheck
4ab4ada7f967ae41c1241c94523d14e693e05dd4
[ "FSFAP" ]
null
null
null
code/glucocheck/homepage/migrations/0009_auto_20210316_2008.py
kmcgreg5/Glucocheck
4ab4ada7f967ae41c1241c94523d14e693e05dd4
[ "FSFAP" ]
null
null
null
code/glucocheck/homepage/migrations/0009_auto_20210316_2008.py
kmcgreg5/Glucocheck
4ab4ada7f967ae41c1241c94523d14e693e05dd4
[ "FSFAP" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-16 20:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('homepage', '0008_auto_20210316_0229'), ] operations = [ migrations.AlterField( model_name='insulin', name='dosage', ...
19.789474
48
0.590426
283
0.75266
0
0
0
0
0
0
99
0.263298
ba43ab4474fde3f20ff82136cb2e5742c53c8ff0
4,838
py
Python
qc3/libpango/fonts.py
wtfo-guru/queconverter
fc3529e46d5af1d90840c52ed9f58fb3c255523b
[ "BSD-2-Clause" ]
null
null
null
qc3/libpango/fonts.py
wtfo-guru/queconverter
fc3529e46d5af1d90840c52ed9f58fb3c255523b
[ "BSD-2-Clause" ]
null
null
null
qc3/libpango/fonts.py
wtfo-guru/queconverter
fc3529e46d5af1d90840c52ed9f58fb3c255523b
[ "BSD-2-Clause" ]
null
null
null
# # Copyright (C) 2016-2020 by Ihor E. Novikov # Copyright (C) 2020 by Krzysztof Broński # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License # as published by the Free Software Foundation, either version 3 # of the License, or (at ...
30.427673
84
0.713725
0
0
0
0
0
0
0
0
2,400
0.49597
ba43edc0fc43df598c8d46e089a42825fd6726ad
2,137
py
Python
runserver.py
charbec1/pokemapfuntimesyay
d8301930c7733041114ca33fe26117d7157d9149
[ "MIT" ]
null
null
null
runserver.py
charbec1/pokemapfuntimesyay
d8301930c7733041114ca33fe26117d7157d9149
[ "MIT" ]
null
null
null
runserver.py
charbec1/pokemapfuntimesyay
d8301930c7733041114ca33fe26117d7157d9149
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os import logging from threading import Thread from pogom import config from pogom.app import Pogom from pogom.utils import get_args, insert_mock_data, load_credentials from pogom.search import search_loop from pogom.models import create_tables, Pokemon from pogom.pgo...
30.971014
109
0.697707
0
0
0
0
0
0
0
0
377
0.176416
ba45bd44680c7dc2e0849f1579c858f34a20a5ed
3,695
py
Python
feature/plot/label_window.py
yatszhash/kaggle-grasp-and-lift-eeg-detection
fd1785d20234579ab75e8bc3aa987baf46678cc9
[ "MIT" ]
null
null
null
feature/plot/label_window.py
yatszhash/kaggle-grasp-and-lift-eeg-detection
fd1785d20234579ab75e8bc3aa987baf46678cc9
[ "MIT" ]
null
null
null
feature/plot/label_window.py
yatszhash/kaggle-grasp-and-lift-eeg-detection
fd1785d20234579ab75e8bc3aa987baf46678cc9
[ "MIT" ]
null
null
null
import re from multiprocessing.pool import Pool from pathlib import Path from typing import Union import numpy as np import pandas as pd from google.cloud import storage from feature.plot.to_images import PlotWriter from utils.data.eegdataloader import EegDataLoader gs_client = storage.Client() LABEL_FILE_NAME = "ev...
39.731183
105
0.660081
3,116
0.843302
0
0
0
0
0
0
301
0.081461
ba45fe8e373630e80ff13ce801d49d7f931b8428
1,244
py
Python
volatility/contrib/plugins/disablewarnings.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
2
2018-07-16T13:30:40.000Z
2018-07-17T12:02:05.000Z
volatility/contrib/plugins/disablewarnings.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
null
null
null
volatility/contrib/plugins/disablewarnings.py
williamclot/MemoryVisualizer
2ff9f30f07519d6578bc36c12f8d08acc9cb4383
[ "MIT" ]
null
null
null
# Volatility # # Authors: # Mike Auty <[email protected]> # # This file is part of Volatility. # # Volatility is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your op...
34.555556
78
0.716238
0
0
0
0
0
0
0
0
834
0.670418
ba461124d0a9ab2a2e0ef88850964f9e884cd6d4
1,471
py
Python
tests/test_application_support.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
22
2018-03-05T20:02:46.000Z
2021-04-09T12:00:18.000Z
tests/test_application_support.py
sturmianseq/thundra-agent-python
4cee02d790eb7b8e4dea4e2e9dcd1f67533b1c56
[ "Apache-2.0" ]
13
2018-03-26T07:57:57.000Z
2021-06-29T14:22:52.000Z
tests/test_application_support.py
thundra-io/thundra-agent-python
448e18c17d8730c381b2e2a773782cf80c5a7cfb
[ "Apache-2.0" ]
3
2021-08-07T14:19:23.000Z
2021-12-08T15:35:40.000Z
from thundra.application.application_info_provider import ApplicationInfoProvider from thundra.config import config_names from thundra.config.config_provider import ConfigProvider def test_if_can_get_integer_tag(): tag_name = 'integerField' (env_key, env_val) = (config_names.THUNDRA_APPLICATION_TAG_PREFIX + t...
33.431818
91
0.78518
0
0
0
0
0
0
0
0
58
0.039429
ba47aae912bab03eeec32d53c9d7b3b8de1668c7
54,161
py
Python
rubikscolorresolver/cube_555.py
jmsutariya/cube-tracker
2296d68883acbd3430110318420d09f98c186e91
[ "MIT" ]
29
2017-03-03T23:47:53.000Z
2021-12-20T19:43:35.000Z
rubikscolorresolver/cube_555.py
jmsutariya/cube-tracker
2296d68883acbd3430110318420d09f98c186e91
[ "MIT" ]
6
2017-03-12T05:25:27.000Z
2022-03-27T08:20:25.000Z
rubikscolorresolver/cube_555.py
jmsutariya/cube-tracker
2296d68883acbd3430110318420d09f98c186e91
[ "MIT" ]
18
2017-08-31T13:28:58.000Z
2021-12-20T19:43:09.000Z
corner_tuples = ( (1, 26, 105), (5, 101, 80), (21, 51, 30), (25, 76, 55), (126, 50, 71), (130, 75, 96), (146, 125, 46), (150, 100, 121), ) edge_orbit_id = { 2: 0, 3: 1, 4: 0, 6: 0, 11: 1, 16: 0, 10: 0, 15: 1, 20: 0, 22: 0, 23: 1, 24: 0, #...
27.96128
44
0.255848
0
0
0
0
0
0
0
0
15,718
0.290209
ba4893ab88ff1d7c68c6773f7219ebc4e78b9dfe
697
py
Python
icekit_events/migrations/0018_auto_20170314_1401.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
52
2016-09-13T03:50:58.000Z
2022-02-23T16:25:08.000Z
icekit_events/migrations/0018_auto_20170307_1458.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
304
2016-08-11T14:17:30.000Z
2020-07-22T13:35:18.000Z
icekit_events/migrations/0018_auto_20170314_1401.py
ic-labs/django-icekit
c507ea5b1864303732c53ad7c5800571fca5fa94
[ "MIT" ]
12
2016-09-21T18:46:35.000Z
2021-02-15T19:37:50.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import colorful.fields class Migration(migrations.Migration): dependencies = [ ('icekit_events', '0017_eventtype_color'), ] operations = [ migrations.AlterField( model_na...
33.190476
317
0.61406
565
0.810617
0
0
0
0
0
0
288
0.413199
ba48ba24fda8aa0f77aea9998163750beb72aff6
566
py
Python
staff_erp/models/salary_info.py
saurabh-0777/odoo_project
c400ce051fcb69e7649285231080f6f6eddb2f8f
[ "MIT" ]
null
null
null
staff_erp/models/salary_info.py
saurabh-0777/odoo_project
c400ce051fcb69e7649285231080f6f6eddb2f8f
[ "MIT" ]
null
null
null
staff_erp/models/salary_info.py
saurabh-0777/odoo_project
c400ce051fcb69e7649285231080f6f6eddb2f8f
[ "MIT" ]
null
null
null
from odoo import api, fields, models class SalaryInfo(models.Model): _name = 'salary.info' _rec_name = 'salary' name = fields.Many2one(comodel_name='staff.info') staff_type = fields.Selection([('std_1', 'teaching'), ('std_2', 'account'), ...
33.294118
59
0.503534
526
0.929329
0
0
0
0
0
0
126
0.222615
ba495e193a583955eddeccb6fd82723a1f293193
1,217
py
Python
backend/apps/accounts/models.py
tingyeeh/Full-Backend
a4338019ed7e6c7e5059cb3c6f805d3c589588b1
[ "MIT" ]
null
null
null
backend/apps/accounts/models.py
tingyeeh/Full-Backend
a4338019ed7e6c7e5059cb3c6f805d3c589588b1
[ "MIT" ]
null
null
null
backend/apps/accounts/models.py
tingyeeh/Full-Backend
a4338019ed7e6c7e5059cb3c6f805d3c589588b1
[ "MIT" ]
null
null
null
from django.db import models class Account(models.Model): """ Account for or """ name = models.CharField(pgettext_lazy( "Name of Account", "Name"), max_length=64) email = models.EmailField() phone = PhoneNumberField(null=True) industry = models.CharField( _("Industry Type"), ...
32.026316
108
0.685292
100
0.082169
0
0
0
0
0
0
400
0.328677
ba49b434abc0426d76176a6199f207345e908862
2,318
py
Python
data/datagen/explicit_1d.py
verdverm/pypge
7f94595735c08e147bd17056f15d944da61eec6d
[ "MIT" ]
43
2015-09-09T21:22:01.000Z
2021-05-04T08:15:10.000Z
data/datagen/explicit_1d.py
verdverm/pypge
7f94595735c08e147bd17056f15d944da61eec6d
[ "MIT" ]
10
2016-03-31T21:54:06.000Z
2019-11-26T22:40:32.000Z
data/datagen/explicit_1d.py
verdverm/pypge
7f94595735c08e147bd17056f15d944da61eec6d
[ "MIT" ]
9
2016-06-13T16:14:32.000Z
2020-02-26T14:26:42.000Z
from pypge.benchmarks import explicit import numpy as np # visualization libraries import matplotlib.pyplot as plt # Set your output directories img_dir = "../img/explicit/" data_dir = "../benchmarks/explicit/" names = [ "koza_01", "koza_02", "koza_03", "lipson_01", "lipson_02", "lipson_03", "nguyen_01", ...
21.462963
74
0.672994
0
0
0
0
0
0
0
0
583
0.25151
ba4ba7e002ea6d31161dc21ca21b7718fc4b612c
1,193
py
Python
build.py
ShawnFrueh/actions_test
c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9
[ "MIT" ]
null
null
null
build.py
ShawnFrueh/actions_test
c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9
[ "MIT" ]
null
null
null
build.py
ShawnFrueh/actions_test
c0fdfce36970a1d7e9620871d6a9de2b5c5ed1e9
[ "MIT" ]
null
null
null
from os import mkdir from pathlib import Path from shutil import rmtree from zipfile import ZipFile, ZIP_DEFLATED # Get the root path to this repo repo_dir = Path(__file__).parent # Get the kit directory kit_dir = repo_dir / "test_kit" # Get the build directory build_dir = repo_dir / "build" # Get the license file lic...
30.589744
92
0.732607
0
0
0
0
0
0
0
0
457
0.383068
ba4bfbd9b48331c0a448707899792ff20164dd6d
4,557
py
Python
examples/salesforce_to_bigquery_example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
138
2018-11-28T21:42:44.000Z
2022-03-30T17:26:35.000Z
examples/salesforce_to_bigquery_example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
36
2019-02-19T18:33:20.000Z
2022-01-24T18:02:44.000Z
examples/salesforce_to_bigquery_example.py
Ressmann/starthinker
301c5cf17e382afee346871974ca2f4ae905a94a
[ "Apache-2.0" ]
54
2018-12-06T05:47:32.000Z
2022-02-21T22:01:01.000Z
########################################################################### # # Copyright 2021 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 # # https://www.apache.org/l...
42.194444
175
0.675664
0
0
0
0
0
0
0
0
2,845
0.624314
ba4cb12b8de5610b0cb63dfb5d497fc87e99f2ea
1,965
py
Python
cortaswamp/authentication/models.py
parthakonda/cortaswamp-backend
5e6875cbe994931cd747ac0d614250e3a6649500
[ "MIT" ]
null
null
null
cortaswamp/authentication/models.py
parthakonda/cortaswamp-backend
5e6875cbe994931cd747ac0d614250e3a6649500
[ "MIT" ]
null
null
null
cortaswamp/authentication/models.py
parthakonda/cortaswamp-backend
5e6875cbe994931cd747ac0d614250e3a6649500
[ "MIT" ]
null
null
null
import uuid from django.db import models from cortaswamp import enums from django.contrib.auth.models import AbstractBaseUser, UserManager from django.contrib.postgres.fields import JSONField class UserAccountManager(UserManager): def get_by_natural_key(self, username): """ To match against case i...
33.87931
79
0.690076
1,765
0.898219
0
0
0
0
0
0
399
0.203053
ba4d573b166c76762e7e2415d9817e7041d732f6
341
py
Python
tweetsender/util.py
Udomomo/tweetsender
ac26da8d43945031c62f194ee41652fa819ed02f
[ "MIT" ]
null
null
null
tweetsender/util.py
Udomomo/tweetsender
ac26da8d43945031c62f194ee41652fa819ed02f
[ "MIT" ]
8
2019-01-15T02:15:02.000Z
2021-06-25T15:33:11.000Z
tweetsender/util.py
Udomomo/tweetsender
ac26da8d43945031c62f194ee41652fa819ed02f
[ "MIT" ]
null
null
null
import os, json CONFIG_PATH = os.path.expanduser('~') + os.sep + '.tweetsender_config.json' def load_config(path): if not os.path.exists(path): return {} with open(path, 'r') as f: config = json.load(f) return config def update_config(config, path): with open(path, 'w') as f: ...
22.733333
75
0.618768
0
0
0
0
0
0
0
0
35
0.102639
ba4d64f567cc59042b33bbd3df817e5e5f04d4b3
619
py
Python
src/telegram/views/messages.py
Roboy/tss19-funboy
7d4341ea3be506c43e8dd23c11cd8403905ddf8a
[ "BSD-3-Clause" ]
null
null
null
src/telegram/views/messages.py
Roboy/tss19-funboy
7d4341ea3be506c43e8dd23c11cd8403905ddf8a
[ "BSD-3-Clause" ]
15
2020-03-21T00:33:11.000Z
2022-03-12T00:19:42.000Z
src/telegram/views/messages.py
Roboy/tss19-funboy
7d4341ea3be506c43e8dd23c11cd8403905ddf8a
[ "BSD-3-Clause" ]
1
2021-05-06T17:32:02.000Z
2021-05-06T17:32:02.000Z
def start_message(): return f"* Welcome to Funboy Joker bot! *\n" \ f"\n" \ f"*DISCLAIMER:*\n" \ f"This is a research experiment aiming to improve computer-generated humour. \n" \ f"It may contain offensive language! \n" \ f"This bot will ask you to rate autom...
47.615385
94
0.597738
0
0
0
0
0
0
0
0
459
0.741519
ba4e5a47df9a1c04c2352fe65ad51bdbf29bb5ea
42
py
Python
Blinkee/Utils/__init__.py
terenaa/is-blinkee-nearby
0ebf4d3007395ebe6f9283dd09ab325b8f361be2
[ "MIT" ]
1
2019-09-18T03:30:59.000Z
2019-09-18T03:30:59.000Z
Blinkee/Utils/__init__.py
terenaa/is-blinkee-nearby
0ebf4d3007395ebe6f9283dd09ab325b8f361be2
[ "MIT" ]
3
2018-08-27T11:55:36.000Z
2021-08-24T16:54:36.000Z
Blinkee/Utils/__init__.py
terenaa/is-blinkee-nearby
0ebf4d3007395ebe6f9283dd09ab325b8f361be2
[ "MIT" ]
null
null
null
from .Cache import * from .Utils import *
14
20
0.714286
0
0
0
0
0
0
0
0
0
0
ba4ed8f42161c47e07364d23da358704878de3a9
539
py
Python
app/controller/yushu_book.py
dollarkillerx/PyFlaskLearning
b2c7d76572f9ec4a5ad17541f47aa06d22a2d153
[ "MIT" ]
null
null
null
app/controller/yushu_book.py
dollarkillerx/PyFlaskLearning
b2c7d76572f9ec4a5ad17541f47aa06d22a2d153
[ "MIT" ]
null
null
null
app/controller/yushu_book.py
dollarkillerx/PyFlaskLearning
b2c7d76572f9ec4a5ad17541f47aa06d22a2d153
[ "MIT" ]
null
null
null
from utils.http import HTTP class YuShuBook: isbn_url = 'http://t.yushu.im/v2/book/isbn/{}' keyword_url = 'http://t.yushu.im/v2/book/search?q={}&count={}&start={}' @classmethod def search_by_isbn(cls, isbn): url = YuShuBook.isbn_url.format(isbn) result = HTTP.get(url) # dict j...
26.95
75
0.634508
508
0.942486
0
0
353
0.654917
0
0
103
0.191095
ba4f1ca539168f2211232cbdac786ec39f55d895
2,724
py
Python
data_management/test/test_network_data_prep/TestAddOrientationAngleToLines.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
null
null
null
data_management/test/test_network_data_prep/TestAddOrientationAngleToLines.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
null
null
null
data_management/test/test_network_data_prep/TestAddOrientationAngleToLines.py
conklinbd/solutions-geoprocessing-toolbox
7afab793ea34b7e7cb7e32757e8a150b6637ffd2
[ "Apache-2.0" ]
1
2018-10-25T15:52:41.000Z
2018-10-25T15:52:41.000Z
#------------------------------------------------------------------------------ # Copyright 2013 Esri # 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/LICENS...
33.62963
101
0.653451
39
0.014317
0
0
0
0
0
0
1,730
0.635095
ba502f35836768f2cffa7616e7935f29ca032480
623
py
Python
learn/services/repetition.py
Aigrefin/py3learn
8104315689caff2523bda3b4ad70a807f4a43fa7
[ "MIT" ]
null
null
null
learn/services/repetition.py
Aigrefin/py3learn
8104315689caff2523bda3b4ad70a807f4a43fa7
[ "MIT" ]
1
2021-06-10T19:05:49.000Z
2021-06-10T19:05:49.000Z
learn/services/repetition.py
Aigrefin/py3learn
8104315689caff2523bda3b4ad70a807f4a43fa7
[ "MIT" ]
null
null
null
import datetime import math import django from py3njection import inject from learn.infrastructure.configuration import LearnConfiguration from learn.learn_base_settings import available_settings @inject def compute_next_repetition(successes, conf: LearnConfiguration): next_repetition_delta = float(conf.get_con...
36.647059
110
0.760835
0
0
0
0
422
0.677368
0
0
0
0
ba50f0e38be2ab31ee4582ffc578be5f6fbd27ec
632
py
Python
apps/publications/migrations/0026_title_type_data_migration.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
1
2019-12-12T15:38:42.000Z
2019-12-12T15:38:42.000Z
apps/publications/migrations/0026_title_type_data_migration.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
apps/publications/migrations/0026_title_type_data_migration.py
techlib/czechelib-stats
ca132e326af0924740a525710474870b1fb5fd37
[ "MIT" ]
null
null
null
# Generated by Django 3.1.8 on 2021-06-15 08:51 from django.db import migrations def fix_unknown_pub_types(apps, schema_editor): Title = apps.get_model('publications', 'Title') Title.objects.filter(pub_type='U', issn='', eissn='').exclude(isbn='').update(pub_type='B') Title.objects.filter(pub_type='U', i...
25.28
95
0.681962
211
0.333861
0
0
0
0
0
0
138
0.218354
ba54fc81a6a32822f3703f1f0570b73ce483b245
196
py
Python
torchtable/operator/__init__.py
keitakurita/torchtable
e3ae98b5c5b2e809a43787a111bb30ca7f0240b9
[ "MIT" ]
2
2019-05-14T13:23:58.000Z
2020-01-16T03:50:24.000Z
torchtable/operator/__init__.py
keitakurita/torchtable
e3ae98b5c5b2e809a43787a111bb30ca7f0240b9
[ "MIT" ]
null
null
null
torchtable/operator/__init__.py
keitakurita/torchtable
e3ae98b5c5b2e809a43787a111bb30ca7f0240b9
[ "MIT" ]
1
2019-04-28T20:13:43.000Z
2019-04-28T20:13:43.000Z
from .core import * __all__ = ["Operator", "LambdaOperator", "TransformerOperator", "Normalize", "FillMissing", "Vocab", "Categorize", "ToTensor", "UnknownCategoryError", ]
32.666667
63
0.637755
0
0
0
0
0
0
0
0
122
0.622449
ba591954fd47661d8b51e8d547bd2d12229468b7
1,358
py
Python
trainer/model.py
Antoine-BL/chess-ai.py
c68ca76063c14b1b8b91d338c8cead9f411521ca
[ "MIT" ]
2
2019-08-21T15:52:29.000Z
2021-09-11T23:07:17.000Z
trainer/model.py
Antoine-BL/chess-ai.py
c68ca76063c14b1b8b91d338c8cead9f411521ca
[ "MIT" ]
5
2020-09-25T23:15:31.000Z
2022-02-10T00:07:33.000Z
trainer/model.py
Antoine-BL/EuroTruck-ai.py
c68ca76063c14b1b8b91d338c8cead9f411521ca
[ "MIT" ]
null
null
null
from tensorflow.python.keras.layers import Lambda, Convolution2D, BatchNormalization, Flatten, Dense, Cropping2D from tensorflow.python.keras.models import Sequential from tensorflow.python.keras.optimizers import Adam from trainer.util import normalize, resize def model(): m = Sequential() m.add(Convolutio...
28.291667
112
0.67894
0
0
0
0
0
0
0
0
73
0.053756
ba5a6263e9060a2bbe3f845d221d8dd4af1cb784
3,292
py
Python
node/blockchain/utils/lock.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
18
2021-11-30T04:02:13.000Z
2022-03-24T12:33:57.000Z
node/blockchain/utils/lock.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
1
2022-02-04T17:07:38.000Z
2022-02-04T17:07:38.000Z
node/blockchain/utils/lock.py
thenewboston-developers/Node
e71a405f4867786a54dd17ddd97595dd3a630018
[ "MIT" ]
5
2022-01-31T05:28:13.000Z
2022-03-08T17:25:31.000Z
import functools import logging import time from typing import Optional from django.conf import settings from django.db import transaction from pymongo.errors import DuplicateKeyError from node.core.database import get_database from node.core.exceptions import BlockchainIsNotLockedError, BlockchainLockingError, Block...
29.132743
109
0.662515
0
0
0
0
1,038
0.31531
0
0
467
0.141859
ba5bd16d958d549e745c8628fc70adf5078acfe8
1,272
py
Python
researches/ocr/textbox/tb_preset.py
loveorchids/sroie2019
d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05
[ "Apache-2.0" ]
14
2019-05-06T11:28:29.000Z
2020-05-18T22:36:09.000Z
researches/ocr/textbox/tb_preset.py
loveorchids/sroie2019
d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05
[ "Apache-2.0" ]
3
2019-09-02T16:11:32.000Z
2019-10-22T14:47:03.000Z
researches/ocr/textbox/tb_preset.py
whq-hqw/sroie2019
d6bec71cdf0d4b4f7fc24a9ed6f1838da6fada05
[ "Apache-2.0" ]
5
2020-06-10T05:13:46.000Z
2021-07-29T03:38:55.000Z
def GeneralPattern(args): args.path = "~/Downloads/dataset/ocr" # this will create a folder named "_text_detection" under "~/Pictures/dataset/ocr" args.code_name = "_text_detection" # Set it to True to make experiment result reproducible args.deterministic_train = False args.cudnn_benchmark = Fa...
28.266667
86
0.673742
0
0
0
0
0
0
0
0
446
0.350629
ba5bf2bbd4612e848682a3b4059b75e3c19f0d5e
5,243
py
Python
src/ml_things/text_functions.py
techthiyanes/ml_things
ddeeb16c55cf1d55cf80963217a8d1bffd0913cc
[ "Apache-2.0" ]
153
2020-10-10T05:12:16.000Z
2022-03-17T07:48:42.000Z
src/ml_things/text_functions.py
techthiyanes/ml_things
ddeeb16c55cf1d55cf80963217a8d1bffd0913cc
[ "Apache-2.0" ]
21
2020-09-15T22:52:43.000Z
2022-02-21T15:27:16.000Z
src/ml_things/text_functions.py
techthiyanes/ml_things
ddeeb16c55cf1d55cf80963217a8d1bffd0913cc
[ "Apache-2.0" ]
42
2020-10-11T07:33:32.000Z
2022-03-11T01:43:54.000Z
# coding=utf-8 # Copyright 2020 George Mihaila. # # 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...
37.719424
119
0.682815
0
0
0
0
0
0
0
0
3,746
0.714476
ba5efff6aa38c2a1a87edc12bea27198aedf9cbd
1,027
py
Python
samples/timeit_3.py
thierrydecker/learning-python
d67242740c33037e1ff270a8e2107f915e0fd44a
[ "Apache-2.0" ]
1
2020-11-05T13:34:30.000Z
2020-11-05T13:34:30.000Z
samples/timeit_3.py
thierrydecker/learning-python
d67242740c33037e1ff270a8e2107f915e0fd44a
[ "Apache-2.0" ]
null
null
null
samples/timeit_3.py
thierrydecker/learning-python
d67242740c33037e1ff270a8e2107f915e0fd44a
[ "Apache-2.0" ]
1
2019-01-21T08:46:37.000Z
2019-01-21T08:46:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import timeit import ssl from urllib.request import Request, urlopen class Timer(object): def __init__(self, verbose=False): self.verbose = verbose self.timer = timeit.default_timer def __enter__(self): self.start = timeit.default_timer()...
24.452381
88
0.642648
471
0.458617
0
0
0
0
0
0
152
0.148004
ba600423f3d623956a76156da8b2dffa5d6cebec
368
py
Python
pajbot/migration_revisions/db/0006_create_user_rank_materialized_view.py
MrBean355/pajbot
3f27aabccfb242f5e3e8eedd20c97633b0d39950
[ "MIT" ]
145
2019-06-08T15:38:40.000Z
2022-03-29T22:51:47.000Z
pajbot/migration_revisions/db/0006_create_user_rank_materialized_view.py
MrBean355/pajbot
3f27aabccfb242f5e3e8eedd20c97633b0d39950
[ "MIT" ]
671
2019-05-26T22:19:08.000Z
2022-03-31T06:00:49.000Z
pajbot/migration_revisions/db/0006_create_user_rank_materialized_view.py
MrBean355/pajbot
3f27aabccfb242f5e3e8eedd20c97633b0d39950
[ "MIT" ]
105
2019-05-25T18:22:13.000Z
2022-02-23T00:57:27.000Z
def up(cursor, bot): cursor.execute( """ CREATE MATERIALIZED VIEW user_rank AS ( SELECT id as user_id, RANK() OVER (ORDER BY points DESC) points_rank, RANK() OVER (ORDER BY num_lines DESC) num_lines_rank FROM "user" ) """ ) cursor.execu...
26.285714
64
0.57337
0
0
0
0
0
0
0
0
291
0.790761
ba6167c779919c2246e1ee1cf2219ff1f87621e9
9,594
py
Python
lib/plugins/pcap/pcapsummary.py
7h3rAm/rudra
bfbd5b81e6b262052e0810574a59d99903170f6a
[ "CC-BY-4.0" ]
22
2015-08-10T04:47:45.000Z
2021-02-28T06:15:30.000Z
lib/plugins/pcap/pcapsummary.py
7h3rAm/rudra
bfbd5b81e6b262052e0810574a59d99903170f6a
[ "CC-BY-4.0" ]
2
2015-11-22T15:48:37.000Z
2019-01-07T19:49:06.000Z
lib/plugins/pcap/pcapsummary.py
7h3rAm/rudra
bfbd5b81e6b262052e0810574a59d99903170f6a
[ "CC-BY-4.0" ]
19
2015-09-20T16:31:25.000Z
2020-03-04T10:04:48.000Z
from lib.external.PluginManager import PluginInterface, Manager from prettytable import PrettyTable from aayudh import utils, fileutils import sys import os current_dir = os.path.abspath(os.path.dirname(__file__)) root_dir = os.path.normpath(os.path.join(current_dir, "..")) sys.path.insert(0, root_dir) class pcaps...
52.42623
157
0.607046
9,242
0.96331
0
0
0
0
0
0
2,488
0.259329
ba61b5bc2650055217908e9853377121e0e5e11e
5,321
py
Python
wilson/translate/__init__.py
bednya/wilson
2cd803bc298c3f967401aed119f617fc5d7ba5c0
[ "MIT" ]
24
2018-04-16T15:01:39.000Z
2022-01-26T07:16:22.000Z
wilson/translate/__init__.py
bednya/wilson
2cd803bc298c3f967401aed119f617fc5d7ba5c0
[ "MIT" ]
85
2018-04-27T08:17:00.000Z
2022-02-22T16:47:14.000Z
wilson/translate/__init__.py
bednya/wilson
2cd803bc298c3f967401aed119f617fc5d7ba5c0
[ "MIT" ]
17
2018-04-27T07:59:35.000Z
2022-02-09T22:46:05.000Z
"""Provides basis translators for SMEFT and and WET that can be used with the `wcxf` Python package.""" from . import smeft, smeft_higgs from . import wet from wilson import wcxf @wcxf.translator('SMEFT', 'Higgs-Warsaw up', 'Warsaw up') def higgs_up_to_warsaw_up(C, scale, parameters, sectors=None): return smeft...
33.677215
77
0.7352
0
0
0
0
5,053
0.949634
0
0
762
0.143206
ba65bc096367d297da217b8327a7fdb4c4c548e9
7,928
py
Python
tests/test_nakfa.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
2
2021-03-26T18:19:57.000Z
2021-07-27T01:15:50.000Z
tests/test_nakfa.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
tests/test_nakfa.py
fscm/multicurrency
5eabdcbfbf427dcafe08d4d05cfce8c9348aeb91
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- # # copyright: 2020-2022, Frederico Martins # author: Frederico Martins <http://github.com/fscm> # license: SPDX-License-Identifier: MIT """Tests for the Nakfa currency representation(s).""" from decimal import Context from pytest import raises from multicurrency import Currency from multicurr...
34.620087
79
0.531282
7,398
0.932443
0
0
0
0
0
0
2,107
0.265566
ba672fe8169d4c84126ede0b40af978dffb4452d
6,314
py
Python
src/output/statements.py
williamstein/jpython
31175f97f42381f612b0b9661beb6b5e5c356d5c
[ "BSD-2-Clause" ]
null
null
null
src/output/statements.py
williamstein/jpython
31175f97f42381f612b0b9661beb6b5e5c356d5c
[ "BSD-2-Clause" ]
null
null
null
src/output/statements.py
williamstein/jpython
31175f97f42381f612b0b9661beb6b5e5c356d5c
[ "BSD-2-Clause" ]
null
null
null
# vim:fileencoding=utf-8 # License: BSD Copyright: 2016, Kovid Goyal <kovid at kovidgoyal.net> from __python__ import hash_literals from ast import ( AST_Definitions, AST_Scope, AST_Method, AST_Except, AST_EmptyStatement, AST_Statement, AST_Seq, AST_BaseCall, AST_Dot, AST_Sub, AST_ItemAccess, AST_Condition...
35.077778
118
0.605163
0
0
0
0
0
0
0
0
837
0.132019
ba673bdb3cd7a82d7bc50d66607572efdb6a45e2
3,443
py
Python
server.py
dataculturegroup/news-entity-server
e0726098a46b70dac5a97dcd927e5f39c68e68d1
[ "MIT" ]
null
null
null
server.py
dataculturegroup/news-entity-server
e0726098a46b70dac5a97dcd927e5f39c68e68d1
[ "MIT" ]
1
2022-03-14T21:01:33.000Z
2022-03-29T13:54:35.000Z
server.py
dataculturegroup/news-entity-server
e0726098a46b70dac5a97dcd927e5f39c68e68d1
[ "MIT" ]
null
null
null
import logging import os from dotenv import load_dotenv import sentry_sdk from sentry_sdk.integrations.asgi import SentryAsgiMiddleware from sentry_sdk.integrations.logging import ignore_logger from typing import Optional import helpers import helpers.content as content import helpers.entities as entities from helpers...
34.089109
174
0.689805
0
0
0
0
1,804
0.523962
0
0
1,410
0.409527
ba676614bbcce93369400054be1dfe970a2717d6
1,319
py
Python
tele_saavn.py
rsoorajs/Champ
eb6811bcb5bd0aff3464b1f996514419465dabfd
[ "MIT" ]
17
2018-06-28T03:17:46.000Z
2021-07-15T13:22:35.000Z
tele_saavn.py
rsoorajs/Champ
eb6811bcb5bd0aff3464b1f996514419465dabfd
[ "MIT" ]
null
null
null
tele_saavn.py
rsoorajs/Champ
eb6811bcb5bd0aff3464b1f996514419465dabfd
[ "MIT" ]
23
2018-09-10T08:02:43.000Z
2021-09-09T07:07:18.000Z
from bs4 import BeautifulSoup import requests def songs_info(res): soup = BeautifulSoup(res.text, 'lxml') data = soup.find('ol', {'class': 'content-list'}) return data def get_songs(data, limit=10): song_list = [] count = 0 for i, count in zip(data.find_all('div', {'class': 'details'}), ran...
30.674419
195
0.666414
0
0
0
0
0
0
0
0
482
0.365428
ba6793f0192c80fc3bbd8b3d89303af7d816aba0
17,457
py
Python
obsolete/profile_vs_profile.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
87
2015-01-01T03:48:19.000Z
2021-11-23T16:23:24.000Z
obsolete/profile_vs_profile.py
861934367/cgat
77fdc2f819320110ed56b5b61968468f73dfc5cb
[ "BSD-2-Clause", "BSD-3-Clause" ]
189
2015-01-06T15:53:11.000Z
2019-05-31T13:19:45.000Z
obsolete/profile_vs_profile.py
CGATOxford/cgat
326aad4694bdfae8ddc194171bb5d73911243947
[ "BSD-2-Clause", "BSD-3-Clause" ]
56
2015-01-13T02:18:50.000Z
2022-01-05T10:00:59.000Z
################################################################################ # # MRC FGU Computational Genomics Group # # $Id$ # # Copyright (C) 2009 Andreas Heger # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as publish...
37.063694
156
0.539955
6,651
0.380993
0
0
0
0
0
0
5,316
0.30452
ba69035771c043a913fe7ffd868ffbc5084fb0f1
386
py
Python
myforum/usercenter/models.py
zalax303/test_django
5728e26c7b6a6287d126ba4058ba54680a9bace4
[ "Apache-2.0" ]
null
null
null
myforum/usercenter/models.py
zalax303/test_django
5728e26c7b6a6287d126ba4058ba54680a9bace4
[ "Apache-2.0" ]
null
null
null
myforum/usercenter/models.py
zalax303/test_django
5728e26c7b6a6287d126ba4058ba54680a9bace4
[ "Apache-2.0" ]
null
null
null
#coding:utf-8 from django.db import models from django.contrib.auth.models import User class ActivateCode(models.Model): owner = models.ForeignKey(User, verbose_name="用户") code = models.CharField(verbose_name="激活码", max_length=100) expire_timestamp = models.DateTimeField() create_time = models.DateTimeField(auto...
29.692308
60
0.797927
306
0.772727
0
0
0
0
0
0
32
0.080808
ba69a75af6fe44e2f9b818fc23054a99d5ef6411
6,735
py
Python
bin/calc_word.py
hasibaasma/alfpy
c8c0c1300108015746320cede2207ac57e630d3e
[ "MIT" ]
19
2017-02-20T17:42:02.000Z
2021-12-16T19:07:17.000Z
bin/calc_word.py
eggleader/alfpy
e0782e9551458ef17ab29df8af13fc0f8925e894
[ "MIT" ]
3
2018-03-12T23:54:27.000Z
2020-12-09T21:53:19.000Z
bin/calc_word.py
eggleader/alfpy
e0782e9551458ef17ab29df8af13fc0f8925e894
[ "MIT" ]
6
2016-12-06T09:12:04.000Z
2021-09-24T14:40:47.000Z
#! /usr/bin/env python # Copyright (c) 2016 Zielezinski A, combio.pl import argparse import sys from alfpy import word_distance from alfpy import word_pattern from alfpy import word_vector from alfpy.utils import distmatrix from alfpy.utils import seqrecords from alfpy.version import __version__ def get_parser(): ...
37.837079
79
0.580401
0
0
0
0
0
0
0
0
1,816
0.269636
ba69c5e73ad4a27f76fcd447918d6d125e088cb9
357
py
Python
Exercicio-03.py
IvamFSouza/ExerciciosPython
6ff13df65c6c6912e14256322a491ed1d5b1fe50
[ "MIT" ]
null
null
null
Exercicio-03.py
IvamFSouza/ExerciciosPython
6ff13df65c6c6912e14256322a491ed1d5b1fe50
[ "MIT" ]
null
null
null
Exercicio-03.py
IvamFSouza/ExerciciosPython
6ff13df65c6c6912e14256322a491ed1d5b1fe50
[ "MIT" ]
null
null
null
# Fazer com que o interpretador leia duas notas de um aluno, calcule e mostre a sua média. n1 = float(input('\nDigite a primeira nota: ')) n2 = float(input('Digite a segunda nota: ')) media = (n1 + n2) / 2 print('\nA primeira nota é: {:.1f}.'.format(n1)) print('A segunda nota é: {:.1f}.'.format(n2)) print('Portanto, s...
44.625
90
0.661064
0
0
0
0
0
0
0
0
239
0.660221
ba6a125993c48f123b66d0160468797d1cdb1777
9,712
py
Python
rels/relations.py
sobolevn/rels
3b0afb11f2b4325c8ede961809f151dacfa257ef
[ "BSD-2-Clause-FreeBSD" ]
7
2015-04-05T19:21:06.000Z
2018-11-04T06:06:42.000Z
rels/relations.py
sobolevn/rels
3b0afb11f2b4325c8ede961809f151dacfa257ef
[ "BSD-2-Clause-FreeBSD" ]
2
2015-06-08T07:41:45.000Z
2018-11-03T07:15:40.000Z
rels/relations.py
sobolevn/rels
3b0afb11f2b4325c8ede961809f151dacfa257ef
[ "BSD-2-Clause-FreeBSD" ]
2
2015-06-17T11:35:11.000Z
2018-11-03T07:12:43.000Z
# coding: utf-8 # TODO: check full mapping of one enum to another (is every value of mapped enum has pair and vice versa) # TODO: pep8 # TODO: pylint # TODO: generate docs # TODO: rewrite exceptions texts & rename exception classes import random from rels import exceptions class Column(object): __slots__ = ('_cr...
33.034014
151
0.611717
9,424
0.970346
0
0
2,205
0.227039
0
0
854
0.087932
ba6aeda61d95d834eae2422e11670a7111135c85
18,770
py
Python
dd_pose/evaluation_helpers.py
kevinsu628/dd-pose
889d117170fd0bc86e1ca7fd5b429c54b225f35b
[ "MIT" ]
null
null
null
dd_pose/evaluation_helpers.py
kevinsu628/dd-pose
889d117170fd0bc86e1ca7fd5b429c54b225f35b
[ "MIT" ]
null
null
null
dd_pose/evaluation_helpers.py
kevinsu628/dd-pose
889d117170fd0bc86e1ca7fd5b429c54b225f35b
[ "MIT" ]
null
null
null
import numpy as np import zipfile from io import StringIO import os import json import pandas as pd import transformations as tr from multiprocess import Pool import plotly import plotly.graph_objs as go from dd_pose.dataset_item import DatasetItem, StampedTransforms # a coordinate frame which allows for identity tr...
35.752381
190
0.533724
18,012
0.959616
0
0
419
0.022323
0
0
2,888
0.153863
ba6b4ad51525e09923ed5cb2a1d71dc3c0634e6a
1,376
py
Python
fw-rde/mnist/test_adver.py
morgankohler/FrankWolfe.jl
b878dc2c2038a3b4486d5f7cec47f1a8e024192e
[ "MIT" ]
null
null
null
fw-rde/mnist/test_adver.py
morgankohler/FrankWolfe.jl
b878dc2c2038a3b4486d5f7cec47f1a8e024192e
[ "MIT" ]
null
null
null
fw-rde/mnist/test_adver.py
morgankohler/FrankWolfe.jl
b878dc2c2038a3b4486d5f7cec47f1a8e024192e
[ "MIT" ]
null
null
null
import os import tensorflow as tf import numpy as np import matplotlib.pyplot as plt import tensorflow.keras.backend as K from models import load_model, load_adfmodel from PIL import Image # GENERAL PARAMETERS MODE = 'diag' # 'diag', 'half', or 'full' # LOAD MODEL print(os.getcwd()) adfmodel = load...
27.52
96
0.653343
0
0
0
0
0
0
0
0
581
0.422238
ba6bc29f591786e97baca19f293cddeea2e887b4
2,210
py
Python
dataApp.py
gauravpgaurav/CS412_HW5
0aee3fed7f0f1314d1f67ca59c73f137335b05fc
[ "MIT" ]
null
null
null
dataApp.py
gauravpgaurav/CS412_HW5
0aee3fed7f0f1314d1f67ca59c73f137335b05fc
[ "MIT" ]
null
null
null
dataApp.py
gauravpgaurav/CS412_HW5
0aee3fed7f0f1314d1f67ca59c73f137335b05fc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 29 20:03:22 2018 @author: gauravpant """ import numpy as np import pandas as pd df=pd.read_csv('data/responses.csv', sep=',',header=0) #f = open('data/responses.csv') #csv_f = csv.reader(f) # #headers = [] #data = [] # # #for i, row in enumerate(...
26.309524
75
0.658824
0
0
0
0
0
0
0
0
1,199
0.542534
ba6f8c76a23c650a23be073851e814f43b243d61
3,388
py
Python
src/analysis/directionAnalysis.py
mortbopet/NetCracker
8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0
[ "MIT" ]
9
2021-02-21T13:27:03.000Z
2021-12-22T17:21:43.000Z
src/analysis/directionAnalysis.py
mortbopet/NetCracker
8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0
[ "MIT" ]
null
null
null
src/analysis/directionAnalysis.py
mortbopet/NetCracker
8b5c1dbe1780c111d1f6810d3ef13400f26f9cb0
[ "MIT" ]
5
2021-02-22T02:55:44.000Z
2021-12-22T17:23:09.000Z
from src.switchbox import * from src.point import * from src.netcrackerformat import * from src.sbhelper import * from src.direction import * from src.logger import * from src.analysis.posBasedFilter import * from src.analysis.analysispass import * from src.analysis.directionAnalysis import * # =====================...
41.317073
111
0.61157
2,567
0.757674
0
0
0
0
0
0
779
0.229929
ba70c1544876182a4809d2b55655af0fcfecfac0
422
py
Python
actions/get_project_components.py
AnushkaKamerkar/stackstorm-jira
44063968dcfa2e117599b3afaa67007bade9e4ae
[ "Apache-2.0" ]
null
null
null
actions/get_project_components.py
AnushkaKamerkar/stackstorm-jira
44063968dcfa2e117599b3afaa67007bade9e4ae
[ "Apache-2.0" ]
null
null
null
actions/get_project_components.py
AnushkaKamerkar/stackstorm-jira
44063968dcfa2e117599b3afaa67007bade9e4ae
[ "Apache-2.0" ]
null
null
null
from lib.base import BaseJiraAction from lib.formatters import to_project_dict __all__ = [ 'GetJiraProjectComponentsAction' ] class GetJiraProjectComponentsAction(BaseJiraAction): def run(self, project_key): projects = self._client.project_components(project_key) print(projects) results = [] for project...
22.210526
64
0.78436
286
0.677725
0
0
0
0
0
0
32
0.075829
ba711fe318893ea8e97e7dc75d344bc0d3740047
2,773
py
Python
mwcp_parsers/_blzpack.py
CybercentreCanada/assemblyline-service-configextractor
ab456ed6bac2ae60dea56890b0e5d0cc42c7c519
[ "MIT" ]
2
2021-06-18T14:53:21.000Z
2021-07-03T11:45:42.000Z
mwcp_parsers/_blzpack.py
CybercentreCanada/assemblyline-service-configextractor
ab456ed6bac2ae60dea56890b0e5d0cc42c7c519
[ "MIT" ]
5
2020-11-04T16:06:38.000Z
2022-01-28T16:17:38.000Z
mwcp_parsers/_blzpack.py
CybercentreCanada/assemblyline-service-configextractor
ab456ed6bac2ae60dea56890b0e5d0cc42c7c519
[ "MIT" ]
2
2021-05-30T11:37:25.000Z
2021-06-24T12:57:35.000Z
#included from https://github.com/sysopfb/brieflz import os from ctypes import * import binascii import zlib import struct CURR_DIR = os.path.abspath(os.path.dirname(__file__)) LIB_PATH = os.path.join(CURR_DIR, 'blzpack_lib.so') brieflz = cdll.LoadLibrary(LIB_PATH) DEFAULT_BLOCK_SIZE = 1024 * 1024 def compress_dat...
36.973333
157
0.658853
0
0
0
0
0
0
0
0
326
0.117562
ba7274fdeb109e756700ed964fe5bf59624cafdd
27,897
py
Python
reader/bidafv1/model.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
166
2018-08-07T03:35:02.000Z
2022-01-11T10:40:09.000Z
reader/bidafv1/model.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
16
2018-08-17T09:53:37.000Z
2019-06-17T12:58:00.000Z
reader/bidafv1/model.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
45
2018-08-27T06:38:42.000Z
2021-01-17T11:12:39.000Z
#!/usr/bin/env python3 # Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. """DrQA Document Reader model""" import math import random import ipdb import torch import torch.optim as opt...
39.570213
90
0.521633
27,341
0.98007
0
0
4,755
0.170448
0
0
6,195
0.222067
ba73f67adbc8b73a37bc38ab585323628b65c5c4
414
py
Python
firstApp/migrations/0006_alter_registration_degree.py
sayan706/SchoolWebsite
8a3faea4582e3c15f0d33347e6c0793a78481c52
[ "MIT" ]
null
null
null
firstApp/migrations/0006_alter_registration_degree.py
sayan706/SchoolWebsite
8a3faea4582e3c15f0d33347e6c0793a78481c52
[ "MIT" ]
null
null
null
firstApp/migrations/0006_alter_registration_degree.py
sayan706/SchoolWebsite
8a3faea4582e3c15f0d33347e6c0793a78481c52
[ "MIT" ]
null
null
null
# Generated by Django 4.0.1 on 2022-01-10 09:29 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('firstApp', '0005_alter_registration_firstname'), ] operations = [ migrations.AlterField( model_name='registration', ...
21.789474
61
0.618357
321
0.775362
0
0
0
0
0
0
114
0.275362
ba74d6985832776a9d24326b66b17b4e74388e84
10,385
py
Python
tests/reports/test_controls_reporter.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
2
2019-10-13T21:42:14.000Z
2019-10-16T19:08:49.000Z
tests/reports/test_controls_reporter.py
FoxoTech/methylcheck
881d14d78e6086aab184716e0b79cdf87e9be8bf
[ "MIT" ]
11
2021-04-08T16:14:54.000Z
2022-03-09T00:22:13.000Z
tests/reports/test_controls_reporter.py
LifeEGX/methQC
2b4f960e7e5c7baca9dc778ca05ee332e2f27653
[ "MIT" ]
1
2020-01-09T14:26:02.000Z
2020-01-09T14:26:02.000Z
from pathlib import Path import pandas as pd import numpy as np import logging #patching import unittest try: # python 3.4+ should use builtin unittest.mock not mock package from unittest.mock import patch except ImportError: from mock import patch #app import methylcheck import methylprep TESTPATH = 'te...
68.774834
375
0.658739
3,361
0.32364
0
0
0
0
0
0
4,158
0.400385
ba7602227a8f014510f10efc052090714dcb5668
8,261
py
Python
home-assistant/custom_components/yahoofinance/__init__.py
square-spade/SmartHouse
1566fe6153321908ff4cda48f6ff5cdf5de8fe67
[ "MIT" ]
136
2019-06-27T08:11:47.000Z
2022-03-11T12:26:53.000Z
home-assistant/custom_components/yahoofinance/__init__.py
square-spade/SmartHouse
1566fe6153321908ff4cda48f6ff5cdf5de8fe67
[ "MIT" ]
5
2020-05-30T00:19:22.000Z
2022-03-25T18:49:47.000Z
home-assistant/custom_components/yahoofinance/__init__.py
square-spade/SmartHouse
1566fe6153321908ff4cda48f6ff5cdf5de8fe67
[ "MIT" ]
63
2019-07-15T21:11:58.000Z
2022-03-13T09:43:24.000Z
""" The Yahoo finance component. https://github.com/iprak/yahoofinance """ from datetime import timedelta import logging from typing import Union import async_timeout from homeassistant.const import CONF_SCAN_INTERVAL from homeassistant.helpers import discovery from homeassistant.helpers.aiohttp_client import async_...
31.056391
89
0.642658
3,371
0.408062
0
0
441
0.053383
3,260
0.394625
1,798
0.217649
ba77c3decd45da528d69e289a995dee1a225f06b
651
py
Python
Exercicios/ex109 - Formatando moedas em python.py
anderdot/curso-em-video-python
ea295cf0afa914ff9ab9acb87c458d77e3fb62ad
[ "MIT" ]
null
null
null
Exercicios/ex109 - Formatando moedas em python.py
anderdot/curso-em-video-python
ea295cf0afa914ff9ab9acb87c458d77e3fb62ad
[ "MIT" ]
null
null
null
Exercicios/ex109 - Formatando moedas em python.py
anderdot/curso-em-video-python
ea295cf0afa914ff9ab9acb87c458d77e3fb62ad
[ "MIT" ]
null
null
null
# Desafio 109: Modifique as funções que form criadas no desafio 107 para que # elas aceitem um parâmetro a mais, informando se o valor retornado por elas # vai ser ou não formatado pela função moeda(), desenvolvida no desafio 108. from rotinas import titulo from modulos.ex109 import moeda as m valor = int(input('Dig...
50.076923
80
0.709677
0
0
0
0
0
0
0
0
528
0.797583
ba78d40a2e3b13b764928d8aba27030d20c5d6fc
2,485
py
Python
dev/backend/src/mod_audio_recognition/bean.py
dannyphan2910/music-lyrics
19ca60793648a12f62ed92f3198c1e8cf12a4af4
[ "MIT" ]
null
null
null
dev/backend/src/mod_audio_recognition/bean.py
dannyphan2910/music-lyrics
19ca60793648a12f62ed92f3198c1e8cf12a4af4
[ "MIT" ]
6
2021-03-10T12:32:51.000Z
2022-03-02T06:32:13.000Z
dev/backend/src/mod_audio_recognition/bean.py
dannyphan2910/music-lyrics
19ca60793648a12f62ed92f3198c1e8cf12a4af4
[ "MIT" ]
1
2021-04-23T15:55:54.000Z
2021-04-23T15:55:54.000Z
import json import tempfile from acrcloud.recognizer import ACRCloudRecognizeType from acrcloud.recognizer import ACRCloudRecognizer from mod_track_search.bean import get_track_id from model.Track import Track def get_tracks_from_audio(file): response = ({}, 404) if file is None or file == '': print...
24.85
89
0.55171
0
0
0
0
0
0
0
0
526
0.21167
ba7944516d0e09575b93381855069585973ab4f1
460
py
Python
tests/test_timedelete.py
giuliocalzolari/pse_timecard
5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c
[ "WTFPL" ]
11
2019-08-21T09:21:53.000Z
2022-02-06T21:41:34.000Z
tests/test_timedelete.py
giuliocalzolari/pse_timecard
5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c
[ "WTFPL" ]
22
2019-08-21T09:17:58.000Z
2022-03-14T20:04:10.000Z
tests/test_timedelete.py
giuliocalzolari/pse_timecard
5eb835ad88a8ee2eb8a97a5fcfe30dd83d6cbf7c
[ "WTFPL" ]
9
2019-08-21T11:43:34.000Z
2021-11-08T15:36:24.000Z
from freezegun import freeze_time from salesforce_timecard.core import TimecardEntry import pytest import json @freeze_time("2020-9-18") @pytest.mark.vcr() @pytest.mark.block_network def test_delete_timecard(): te = TimecardEntry("tests/fixtures/cfg_user_password.json") rs = te.list_timecard(False, "2020-09-1...
27.058824
63
0.730435
0
0
0
0
346
0.752174
0
0
102
0.221739
ba7ad226bb8b4632a379714c4c4d790425eadeb6
390
py
Python
OptimizationAlgorithms/LearningAlgorithm.py
AhmedHani/Python-Neural-Networks-API
ead1e53403e078bb807dafceca70d785514507e1
[ "MIT" ]
1
2015-05-01T00:56:53.000Z
2015-05-01T00:56:53.000Z
OptimizationAlgorithms/LearningAlgorithm.py
AhmedHani/Python-Neural-Networks-API
ead1e53403e078bb807dafceca70d785514507e1
[ "MIT" ]
null
null
null
OptimizationAlgorithms/LearningAlgorithm.py
AhmedHani/Python-Neural-Networks-API
ead1e53403e078bb807dafceca70d785514507e1
[ "MIT" ]
2
2017-08-11T17:02:52.000Z
2018-07-21T10:40:43.000Z
__author__ = 'Ahmed Hani Ibrahim' import abc class LearningAlgorithm(object): # __metaclass__ = abc.ABCMeta @abc.abstractmethod def learn(self, learningRate, input, output, network): """ :param learningRate: double :param input: list :param output: list :param netwo...
21.666667
58
0.597436
342
0.876923
0
0
271
0.694872
0
0
218
0.558974
ba7c58e3f8b1ffafeeabbe872253fc40a288cb72
4,359
py
Python
backend/app/app/api/api_v1/endpoints/auth.py
dmitritruf/distiller-django-react
ec4c3837194306e725d8a2437ace10a899a254d2
[ "BSD-3-Clause" ]
2
2021-11-04T16:27:33.000Z
2021-11-04T20:09:19.000Z
backend/app/app/api/api_v1/endpoints/auth.py
OpenChemistry/distiller
67da87672654555f9821590f42b108d70a55c1a6
[ "BSD-3-Clause" ]
70
2021-11-04T16:34:52.000Z
2022-03-30T02:52:17.000Z
backend/app/app/api/api_v1/endpoints/auth.py
dmitritruf/distiller-django-react
ec4c3837194306e725d8a2437ace10a899a254d2
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime, timedelta, timezone from typing import Optional from fastapi import (APIRouter, Depends, HTTPException, Request, Response, status) from jose import JWTError, jwt from sqlalchemy.orm import Session from app.api.deps import get_current_user, get_db from app.api.utils ...
31.135714
88
0.699014
0
0
0
0
3,119
0.715531
3,007
0.689837
429
0.098417
ba7d6a9e7d22a756e68ebfce9d1c8d488b047ed1
222
py
Python
String/058. Length of Last Word.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
138
2020-02-08T05:25:26.000Z
2021-11-04T11:59:28.000Z
String/058. Length of Last Word.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
null
null
null
String/058. Length of Last Word.py
beckswu/Leetcode
480e8dc276b1f65961166d66efa5497d7ff0bdfd
[ "MIT" ]
24
2021-01-02T07:18:43.000Z
2022-03-20T08:17:54.000Z
""" 58. Length of Last Word """ class Solution: def lengthOfLastWord(self, s): """ :type s: str :rtype: int """ li = s.split() return len(li[-1]) if li else 0
18.5
39
0.45045
185
0.833333
0
0
0
0
0
0
92
0.414414
ba7f1880c2b90a49559f5960814c055b80809594
5,201
py
Python
federatedscope/gfl/fedsageplus/utils.py
alibaba/FederatedScope
fcf6d237624769ea094cfd68803901622f14fc23
[ "Apache-2.0" ]
9
2022-03-24T07:59:37.000Z
2022-03-31T06:47:52.000Z
federatedscope/gfl/fedsageplus/utils.py
alibaba/FederatedScope
fcf6d237624769ea094cfd68803901622f14fc23
[ "Apache-2.0" ]
1
2022-03-28T13:52:17.000Z
2022-03-28T13:52:17.000Z
federatedscope/gfl/fedsageplus/utils.py
alibaba/FederatedScope
fcf6d237624769ea094cfd68803901622f14fc23
[ "Apache-2.0" ]
null
null
null
import torch from torch_geometric.data import Data from torch_geometric.transforms import BaseTransform from torch_geometric.utils import to_networkx, from_networkx import networkx as nx import numpy as np from federatedscope.core.configs.config import global_cfg class HideGraph(BaseTransform): r""" Genera...
38.813433
87
0.594886
2,542
0.488752
0
0
635
0.122092
0
0
957
0.184003
ba808edd6b754acefb4ce6a96df843f114f8d03a
4,259
py
Python
samples/update_esxi_advanced_settings.py
whchoi98/whchoi_pyvmomi-community-samples
4bc90d0780267d9c14382ae72b50ef3475a96e46
[ "Apache-2.0" ]
null
null
null
samples/update_esxi_advanced_settings.py
whchoi98/whchoi_pyvmomi-community-samples
4bc90d0780267d9c14382ae72b50ef3475a96e46
[ "Apache-2.0" ]
null
null
null
samples/update_esxi_advanced_settings.py
whchoi98/whchoi_pyvmomi-community-samples
4bc90d0780267d9c14382ae72b50ef3475a96e46
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # William Lam # www.virtuallyghetto.com """ vSphere Python SDK program for updating ESXi Advanced Settings Usage: python update_esxi_advanced_settings.py -s 192.168.1.200 \ -u '[email protected]' \ -p VMware1! -c VSAN-Cluster -k VSAN.ClomRepairDelay -v 120 """ import argpa...
31.087591
76
0.532285
0
0
0
0
0
0
0
0
1,232
0.28927
ba85db38c48467a473b1f5022b7dfe1c25bcc9e4
15,516
py
Python
adversarials/test_attack.py
vergilus/NJUNMT-pytorch
85cc8d4f1aae04541d2e30ec2ca2b9b9fe2bea60
[ "MIT" ]
2
2020-02-16T02:56:55.000Z
2020-03-08T15:04:31.000Z
adversarials/test_attack.py
vergilus/NJUNMT-pytorch
85cc8d4f1aae04541d2e30ec2ca2b9b9fe2bea60
[ "MIT" ]
null
null
null
adversarials/test_attack.py
vergilus/NJUNMT-pytorch
85cc8d4f1aae04541d2e30ec2ca2b9b9fe2bea60
[ "MIT" ]
null
null
null
from adversarials.adversarial_utils import * from adversarials import attacker from src.utils.logging import * from src.utils.common_utils import * from src.data.dataset import TextLineDataset from src.data.data_iterator import DataIterator from src.models import build_model from src.decoding import beam_search import...
51.892977
200
0.586685
0
0
0
0
0
0
0
0
3,870
0.24942
ba860ef0bbb9998d184a5e1d2b2471f8886f1c2c
1,373
py
Python
plots.py
shreyasnikte/semi-supervised-learning-methods
b60409cdbcb441d7749934f8984fc31d74b86de6
[ "MIT" ]
2
2019-02-12T01:47:24.000Z
2019-02-12T01:47:30.000Z
plots.py
shreyasnikte/semi-supervised-learning-methods
b60409cdbcb441d7749934f8984fc31d74b86de6
[ "MIT" ]
null
null
null
plots.py
shreyasnikte/semi-supervised-learning-methods
b60409cdbcb441d7749934f8984fc31d74b86de6
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt n = [0,10,20,40,80,160,320,640] error_rate_knn = [0.352873876328,0.387737617135,0.453305017255,0.458524980174,0.474808757584,0.470144927536,0.473847774559,0.467094872065] error_rate_svm = [0.357722691365,0.355341365462,0.355402176799,0.352894528152,0.352941176471,0....
27.46
138
0.761835
0
0
0
0
0
0
0
0
238
0.173343
ba86b3218164d82acdf2e535950af7f6a5fd6761
1,845
py
Python
gs-engine/gse_api_server/controller/service_mesh.py
gedge-platform/GEdge-Platform
b5cbe63089cf3d3263683cbcd5ec3d10ad85779b
[ "Apache-2.0" ]
13
2020-10-14T07:45:08.000Z
2021-10-01T08:19:56.000Z
gs-engine/gse_api_server/controller/service_mesh.py
gedge-platform/GEdge-Platform
b5cbe63089cf3d3263683cbcd5ec3d10ad85779b
[ "Apache-2.0" ]
null
null
null
gs-engine/gse_api_server/controller/service_mesh.py
gedge-platform/GEdge-Platform
b5cbe63089cf3d3263683cbcd5ec3d10ad85779b
[ "Apache-2.0" ]
17
2020-11-09T05:16:42.000Z
2021-12-28T08:04:33.000Z
from flask import Blueprint, request, jsonify import json import yaml import app_conf from tools.db_connector import DBConnector as mysql from service import service_mesh as sm_service service_mesh = Blueprint('service_mesh', __name__) # set logger logger = app_conf.Log.get_logger(__name__) conn = my...
30.245902
100
0.694851
0
0
0
0
1,485
0.804878
0
0
232
0.125745
ba87a2336a8f0ec71ea84a395469860438887992
2,363
py
Python
tests/test_multiple_pubtopics.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
7
2016-09-27T00:21:46.000Z
2017-03-18T20:04:29.000Z
tests/test_multiple_pubtopics.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
null
null
null
tests/test_multiple_pubtopics.py
mpi-sws-rse/antevents-python
5b9226813583141986014fc83f6f74342a5f271e
[ "Apache-2.0" ]
2
2017-03-16T21:47:43.000Z
2020-10-20T22:58:03.000Z
# Copyright 2016 by MPI-SWS and Data-Ken Research. # Licensed under the Apache 2.0 License. """ Build a filter that takes an input stream and dispatches to one of several output topics based on the input value. """ import asyncio import unittest from antevents.base import Publisher, DefaultSubscriber, Scheduler from ...
35.80303
75
0.64452
1,891
0.800254
0
0
0
0
0
0
885
0.374524
ba886223d7d5b936770b403beef641b7928034bb
12,515
py
Python
pe/packrat.py
goodmami/pe
ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa
[ "MIT" ]
18
2020-03-25T09:10:24.000Z
2022-02-21T02:46:10.000Z
pe/packrat.py
goodmami/pe
ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa
[ "MIT" ]
21
2020-03-18T08:03:04.000Z
2021-10-11T04:29:09.000Z
pe/packrat.py
goodmami/pe
ea2ff69742c7f76f370cdfa8e3f7ae0860d5e6fa
[ "MIT" ]
1
2021-09-02T16:09:29.000Z
2021-09-02T16:09:29.000Z
""" Packrat Parsing """ # NOTE: attempting to use exceptions instead of FAIL codes resulted in # almost a 2x slowdown, so it's probably not a good idea from typing import (Union, List, Dict, Callable, Iterable, Any) from collections import defaultdict import re import inspect from pe._constants import ( FAIL, ...
32.42228
79
0.54159
11,135
0.889732
0
0
64
0.005114
0
0
1,151
0.09197
ba8a3d42e7689a2e026e951ecc04b58e3c117678
582
py
Python
tests/utils.py
davidmcnabnz/aiohttp-rpc
25c3b61f48e45a8f2c5586f3e97ac16fd15f2c86
[ "MIT" ]
22
2020-05-24T08:54:51.000Z
2022-02-16T13:03:14.000Z
tests/utils.py
davidmcnabnz/aiohttp-rpc
25c3b61f48e45a8f2c5586f3e97ac16fd15f2c86
[ "MIT" ]
7
2020-08-31T19:40:21.000Z
2021-08-02T06:50:05.000Z
tests/utils.py
davidmcnabnz/aiohttp-rpc
25c3b61f48e45a8f2c5586f3e97ac16fd15f2c86
[ "MIT" ]
2
2020-05-24T12:18:19.000Z
2021-08-01T11:30:43.000Z
import aiohttp from aiohttp import web import aiohttp_rpc async def make_client(aiohttp_client, rpc_server: aiohttp_rpc.JsonRpcServer) -> aiohttp.ClientSession: app = web.Application() app.router.add_post('/rpc', rpc_server.handle_http_request) return await aiohttp_client(app) async def make_ws_client(...
32.333333
107
0.785223
0
0
0
0
0
0
517
0.888316
12
0.020619
ba8b351fb6919d43ebf9cf7d016dae641fd9b448
14,346
py
Python
examples/learning_fix/analysis/run_analysis.py
bingrao/Bug-Transformer
9e39dc553c281f6372b7a8cfc8205aa186645899
[ "MIT" ]
null
null
null
examples/learning_fix/analysis/run_analysis.py
bingrao/Bug-Transformer
9e39dc553c281f6372b7a8cfc8205aa186645899
[ "MIT" ]
null
null
null
examples/learning_fix/analysis/run_analysis.py
bingrao/Bug-Transformer
9e39dc553c281f6372b7a8cfc8205aa186645899
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ usage: put under source folder, required files: evolving_state.txt, calib_state.txt, state.txt After first run, integration_states.txt, vio_states.txt are generated and figures are saved in current dir You can move the figures and state.txt, integration_states.txt, vio_states.txt into a fold...
33.59719
112
0.548724
0
0
0
0
0
0
0
0
3,137
0.218667
ba8cbf1e8f33b4e6ae6ea6fa33a6606299a26211
767
py
Python
util/path.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
3
2020-02-21T21:35:07.000Z
2020-09-29T15:20:00.000Z
util/path.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
27
2020-02-20T21:00:23.000Z
2020-05-22T15:23:25.000Z
util/path.py
cassianobecker/dnn
bb2ea04f77733de9df10f795bb049ac3b9d30478
[ "MIT" ]
null
null
null
import os import shutil def get_root(): root_dir = os.path.dirname(os.path.abspath(__file__)) return os.path.split(root_dir)[0] def absolute_path(relative_path): return os.path.join(get_root(), relative_path) def append_path(module, relative_path): return os.path.join(get_dir(module), relative_pat...
21.305556
66
0.720991
0
0
0
0
0
0
0
0
10
0.013038
ba8d939b382a63a60f2698d61f7d191c80c42ac1
1,204
py
Python
CursoEmVideo/curso em video/ex45.py
elisio-ricardo/ExerciciosPythonCursoEmVideo
47a10b2118a76f4f95a762876ef9ab90e92f4fd3
[ "MIT" ]
null
null
null
CursoEmVideo/curso em video/ex45.py
elisio-ricardo/ExerciciosPythonCursoEmVideo
47a10b2118a76f4f95a762876ef9ab90e92f4fd3
[ "MIT" ]
null
null
null
CursoEmVideo/curso em video/ex45.py
elisio-ricardo/ExerciciosPythonCursoEmVideo
47a10b2118a76f4f95a762876ef9ab90e92f4fd3
[ "MIT" ]
null
null
null
from random import randint from time import sleep itens = ('Pedra', 'Papel', 'Tesoura') computador = randint(0, 2) print('''Suas opções: [ 0 ] PEDRA [ 1 ] PAPEL [ 2 ] TESOURA''') jogador = int(input('Qual é a sua jogada? ')) print('JO') sleep(1) print('KEN') sleep(1) print('POOO') print('#x#' * 13) print('O computador ...
26.173913
70
0.593023
0
0
0
0
0
0
0
0
445
0.368683
ba90813dd087e4a5ae66ed2dd627c0ad91bad8ca
227
py
Python
s06_estruturas_de_repeticao/s06_exercicios/s06_exercicio_05.py
adeogliari/GeekUniversity_Python
1b6badc45ca1dfbaa2f42196fb2dedac417b866e
[ "MIT" ]
null
null
null
s06_estruturas_de_repeticao/s06_exercicios/s06_exercicio_05.py
adeogliari/GeekUniversity_Python
1b6badc45ca1dfbaa2f42196fb2dedac417b866e
[ "MIT" ]
null
null
null
s06_estruturas_de_repeticao/s06_exercicios/s06_exercicio_05.py
adeogliari/GeekUniversity_Python
1b6badc45ca1dfbaa2f42196fb2dedac417b866e
[ "MIT" ]
null
null
null
""" 5) Faça um programa que peça ao usuário para digitar 10 valores e some-os. """ soma = 0 for n in range(10): num = float(input(f'Digite o valor {n + 1} de 10 para ser somado \n')) soma = soma + num print(f'{soma}')
22.7
74
0.629956
0
0
0
0
0
0
0
0
144
0.626087
ba90dc2cb2e51a3de479c4158575a47f4042bca2
852
py
Python
LeetCode/01_Easy/lc_243.py
Zubieta/CPP
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
8
2017-03-02T07:56:45.000Z
2021-08-07T20:20:19.000Z
LeetCode/01_Easy/lc_243.py
zubie7a/Algorithms
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
null
null
null
LeetCode/01_Easy/lc_243.py
zubie7a/Algorithms
fb4a3cbf2e4edcc590df15663cd28fb9ecab679c
[ "MIT" ]
1
2021-08-07T20:20:20.000Z
2021-08-07T20:20:20.000Z
# 243 - Shortest Word Distance (Easy) # https://leetcode.com/problems/shortest-word-distance/ class Solution(object): def shortestDistance(self, words, word1, word2): """ :type words: List[str] :type word1: str :type word2: str :rtype: int """ # Find the short...
34.08
70
0.524648
745
0.874413
0
0
0
0
0
0
376
0.441315
ba91558aefd2df242fdc6737e72408a5090c1f04
2,539
py
Python
showdetector.py
squeakus/motiontracker
9a3e744893de691f2af8f33372911ccf9c6ee5e0
[ "BSD-2-Clause" ]
1
2017-03-17T12:43:26.000Z
2017-03-17T12:43:26.000Z
showdetector.py
squeakus/motiontracker
9a3e744893de691f2af8f33372911ccf9c6ee5e0
[ "BSD-2-Clause" ]
null
null
null
showdetector.py
squeakus/motiontracker
9a3e744893de691f2af8f33372911ccf9c6ee5e0
[ "BSD-2-Clause" ]
null
null
null
from __future__ import print_function import numpy as np import cv2 import sys import imutils from imutils.video import VideoStream import argparse import time def main(): ap = argparse.ArgumentParser() ap.add_argument("-p", "--picamera", type=int, default=-1, help="whether or not the Raspberry Pi cam...
29.183908
97
0.620717
0
0
0
0
0
0
0
0
470
0.185112
ba918a951cdd349ee4cd6bbade1526c24a7533de
2,106
py
Python
parse/bsoup.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
4
2016-12-17T20:06:10.000Z
2021-11-19T04:45:29.000Z
parse/bsoup.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
11
2021-01-06T05:35:11.000Z
2022-03-11T23:28:31.000Z
parse/bsoup.py
thorwhalen/ut
353a4629c35a2cca76ef91a4d5209afe766433b4
[ "MIT" ]
3
2015-06-12T10:44:16.000Z
2021-07-26T18:39:47.000Z
__author__ = 'thorwhalen' """ functions that work on soup, soup tags, etc. """ import bs4 from ut.pgenerator.get import last_element from tempfile import mkdtemp import os import ut.pstr.to as strto import ut.parse.util as parse_util import ut.pstr.trans as pstr_trans def root_parent(s): return last_element(s.p...
28.459459
114
0.623457
0
0
0
0
0
0
0
0
442
0.209877
ba918ece5de60730c0129575be92e67c044ff8ec
1,130
py
Python
interview_query/utils/faker_sat_scores.py
mhetrerajat/ds-challenge
3208df5c29612b0dfe60c1c082da1f31ad220b49
[ "MIT" ]
null
null
null
interview_query/utils/faker_sat_scores.py
mhetrerajat/ds-challenge
3208df5c29612b0dfe60c1c082da1f31ad220b49
[ "MIT" ]
1
2021-05-18T07:30:16.000Z
2021-05-18T07:30:16.000Z
interview_query/utils/faker_sat_scores.py
mhetrerajat/ds-challenge
3208df5c29612b0dfe60c1c082da1f31ad220b49
[ "MIT" ]
null
null
null
from faker import Faker from sqlalchemy import Column, Date, ForeignKey, Integer, String, Table, create_engine from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm.session import sessionmaker from sqlalchemy_utils import create_database, database_exists connection_string = "mysql+mysqlconnector:...
25.111111
86
0.679646
176
0.155752
0
0
0
0
0
0
108
0.095575
ba93a8b482897b7fb3cc384944adb1b34a68cd4c
254
py
Python
easy_ThirdGreatest.py
GabrielGhe/CoderbyteChallenges
5601dbc24c95a65fed04896de2f534417c2e730d
[ "MIT" ]
1
2020-11-04T15:30:18.000Z
2020-11-04T15:30:18.000Z
easy_ThirdGreatest.py
GabrielGhe/CoderbyteChallenges
5601dbc24c95a65fed04896de2f534417c2e730d
[ "MIT" ]
null
null
null
easy_ThirdGreatest.py
GabrielGhe/CoderbyteChallenges
5601dbc24c95a65fed04896de2f534417c2e730d
[ "MIT" ]
null
null
null
""" Return the 3rd longest string in an array of strings """ def ThirdGreatest(strArr): #have to reverse because timsort is stable strArr = sorted(strArr, key = len, reverse = True) return strArr[2] print ThirdGreatest(raw_input())
21.166667
52
0.688976
0
0
0
0
0
0
0
0
102
0.401575
ba93fd1478bd06284c76c1ea6935491739d75c91
347
py
Python
rackio/workers/__init__.py
crivero7/rackio-framework
d3362041b1fc4c3af7eb51ac06b1f0f1b5aa497c
[ "MIT" ]
null
null
null
rackio/workers/__init__.py
crivero7/rackio-framework
d3362041b1fc4c3af7eb51ac06b1f0f1b5aa497c
[ "MIT" ]
null
null
null
rackio/workers/__init__.py
crivero7/rackio-framework
d3362041b1fc4c3af7eb51ac06b1f0f1b5aa497c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """rackio/workers/__init__.py This module implements all Rackio Workers. """ from .alarms import AlarmWorker from .api import APIWorker from .continuos import _ContinuosWorker from .controls import ControlWorker from .functions import FunctionWorker from .logger import LoggerWorker from .state...
24.785714
42
0.801153
0
0
0
0
0
0
0
0
100
0.288184
ba9443740a1bddede8f3fe0b990e93d6b3615856
2,319
py
Python
scripts/leetcode-submission.py
ZihuanLing/zihuanling.github.io
d1c308039bab43bf4966100e1783c486ec2f105d
[ "MIT" ]
1
2022-02-24T07:05:19.000Z
2022-02-24T07:05:19.000Z
scripts/leetcode-submission.py
ZihuanLing/zihuanling.github.io
d1c308039bab43bf4966100e1783c486ec2f105d
[ "MIT" ]
null
null
null
scripts/leetcode-submission.py
ZihuanLing/zihuanling.github.io
d1c308039bab43bf4966100e1783c486ec2f105d
[ "MIT" ]
null
null
null
# coding: utf-8 # 爬取leetcode刷题记录 import os import json import requests import time def parse_submissions(leetcode_session): url = "https://leetcode.cn/api/submissions/" headers = { "accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/...
32.208333
156
0.580854
0
0
0
0
0
0
0
0
1,034
0.443586
ba94a64403dabcab291a47f945af3b92e3234033
3,179
py
Python
milestone1.py
kaiicheng/United-States-Population-Name-Dashboard
9019538fcb58c7e97a3dc67d3b27cb8ad180e448
[ "MIT" ]
null
null
null
milestone1.py
kaiicheng/United-States-Population-Name-Dashboard
9019538fcb58c7e97a3dc67d3b27cb8ad180e448
[ "MIT" ]
null
null
null
milestone1.py
kaiicheng/United-States-Population-Name-Dashboard
9019538fcb58c7e97a3dc67d3b27cb8ad180e448
[ "MIT" ]
null
null
null
""" File: Milestone1.py Name: ----------------------- This file tests the milestone 1 for our babyname.py project """ import sys def add_data_for_name(name_data, year, rank, name): # Compare the rank of certain name which already exists in the name_data dictionary. final_rank = int(rank) #print(name_dat...
31.475248
88
0.493551
0
0
0
0
0
0
0
0
1,449
0.452954
ba951d4ecafedfb08c55ff85b92950bc2b527ea0
1,003
py
Python
Ballot.py
robbierobinette/rcv-tensorflow
984852902f465bb6f61ba863e4b76092249911d0
[ "MIT" ]
null
null
null
Ballot.py
robbierobinette/rcv-tensorflow
984852902f465bb6f61ba863e4b76092249911d0
[ "MIT" ]
null
null
null
Ballot.py
robbierobinette/rcv-tensorflow
984852902f465bb6f61ba863e4b76092249911d0
[ "MIT" ]
null
null
null
from typing import List, Set from CandidateScore import CandidateScore from Candidate import Candidate from Voter import Voter from ElectionConfig import ElectionConfig class Ballot: def __init__(self, voter: Voter, candidates: List[Candidate], config: ElectionConfig): self.voter = voter scores =...
37.148148
120
0.680957
830
0.827517
0
0
0
0
0
0
74
0.073779
ba9b2619a41c953c21ce58a65c8f71171bae6e85
5,853
py
Python
experiments/RASF_pretraining/reconstruction.py
seanywang0408/RASF
2437ace3f19812d1fe852651358b3cbb9325efb7
[ "Apache-2.0" ]
14
2022-03-16T13:00:38.000Z
2022-03-28T11:53:34.000Z
experiments/RASF_pretraining/reconstruction.py
seanywang0408/RASF
2437ace3f19812d1fe852651358b3cbb9325efb7
[ "Apache-2.0" ]
null
null
null
experiments/RASF_pretraining/reconstruction.py
seanywang0408/RASF
2437ace3f19812d1fe852651358b3cbb9325efb7
[ "Apache-2.0" ]
null
null
null
import os import time from tqdm import tqdm import trimesh import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from torch.utils.data import DataLoader import _init_path from config import cfg from RASF import RASF from pointclouds.datasets.shapenetpart import ShapenetPartDataset, to...
32.337017
152
0.653169
906
0.154792
0
0
0
0
0
0
425
0.072612
ba9c65d98c4bb9faaef93d07f4f1dd876514f4a1
1,697
py
Python
geoware/models/timezone.py
un33k/django-geoware
cd7c51e358e5b2d2c3ca92626edbdd7e4f573ab8
[ "MIT" ]
4
2017-01-02T21:38:45.000Z
2017-01-31T09:59:30.000Z
geoware/models/timezone.py
un33k/django-geoware
cd7c51e358e5b2d2c3ca92626edbdd7e4f573ab8
[ "MIT" ]
null
null
null
geoware/models/timezone.py
un33k/django-geoware
cd7c51e358e5b2d2c3ca92626edbdd7e4f573ab8
[ "MIT" ]
null
null
null
from django.utils.translation import ugettext as _ from slugify import slugify from .base import models class Timezone(models.Model): """ Timezone Model Class. """ created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) country = models.ForeignK...
20.695122
72
0.558044
1,588
0.935769
0
0
0
0
0
0
237
0.139658
ba9cab0a86eada80999c888eaab2f667c62be16c
1,905
py
Python
tools/ransac.py
OhJaeKwang/gaze_estimation
8fefa9ccb353ae5c164251a61221c369c1a825d2
[ "MIT" ]
null
null
null
tools/ransac.py
OhJaeKwang/gaze_estimation
8fefa9ccb353ae5c164251a61221c369c1a825d2
[ "MIT" ]
null
null
null
tools/ransac.py
OhJaeKwang/gaze_estimation
8fefa9ccb353ae5c164251a61221c369c1a825d2
[ "MIT" ]
null
null
null
import os import sys import cv2 import numpy as np import matplotlib.pyplot as plt sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) from lib.utils import utils_inference from lib.utils import utils_landmarks from lib.ransac import ransac ### Eye Landmarks Detection method = 'unityeyes_angle' ckpt = 13...
36.634615
193
0.709186
0
0
0
0
0
0
0
0
842
0.438313
ba9d5fcab89a1398779538800ea4c82f1e9c755c
241
py
Python
test_scripts/pub100.py
talih0/dps-for-iot
e16f61da15d1d06f13cfce8a667c710f45441d4b
[ "Apache-2.0" ]
57
2017-12-14T01:37:02.000Z
2021-11-08T11:19:32.000Z
test_scripts/pub100.py
talih0/dps-for-iot
e16f61da15d1d06f13cfce8a667c710f45441d4b
[ "Apache-2.0" ]
30
2017-11-03T18:40:51.000Z
2021-06-30T13:47:16.000Z
test_scripts/pub100.py
talih0/dps-for-iot
e16f61da15d1d06f13cfce8a667c710f45441d4b
[ "Apache-2.0" ]
15
2018-03-14T05:56:08.000Z
2021-04-25T21:29:09.000Z
#!/usr/bin/python from common import * import atexit atexit.register(cleanup) subs = [ sub('1.1.#'), sub('1.1.#'), sub('1.1.#') ] for i in range(100): pub('1.1.{}'.format(i)) expect_pub_received(subs, ['1.1.\d+'] * 100)
13.388889
44
0.560166
0
0
0
0
0
0
0
0
55
0.228216
ba9d99b33e51af7c8fc9a8456d443439f7486391
1,103
py
Python
population.py
SSebigo/Gomoku
cc7195e3696a614119beb7ec1942f28a23b155b7
[ "MIT" ]
null
null
null
population.py
SSebigo/Gomoku
cc7195e3696a614119beb7ec1942f28a23b155b7
[ "MIT" ]
null
null
null
population.py
SSebigo/Gomoku
cc7195e3696a614119beb7ec1942f28a23b155b7
[ "MIT" ]
null
null
null
from typing import List from neural_network import NeuralNetwork class Population(object): _individuals: list _layers: int _neurons: int population: list def __init__(self, layers: int, neurons: int, max_individuals: int): self._layers = layers self._neurons = neurons self...
26.902439
75
0.606528
1,035
0.93835
0
0
258
0.233908
0
0
98
0.088849
ba9f502bd80efd70b9e6648ecf3e02c644ef98ef
4,601
py
Python
borda.py
thesis-wisard/thesis_libs
a5643775092fdb4322c28ff3793075c86694025d
[ "MIT" ]
null
null
null
borda.py
thesis-wisard/thesis_libs
a5643775092fdb4322c28ff3793075c86694025d
[ "MIT" ]
null
null
null
borda.py
thesis-wisard/thesis_libs
a5643775092fdb4322c28ff3793075c86694025d
[ "MIT" ]
null
null
null
import wisardpkg as wp import random import numpy as np import time from astropy.stats import bootstrap from astropy.utils import NumpyRNGContext LOW_N = 5 HIGH_N = 31 MIN_SCORE = 0.1 GROW_INTERVAL = 100 MAX_DISCRIMINATOR_LIMIT = 10 class BordaBagging(object): def __init__(self, train_dataset, learners, part...
33.583942
111
0.564008
4,365
0.948707
0
0
1,791
0.389263
0
0
46
0.009998
ba9ff79eed66de8a976604f59d5d1e814bf57989
21,116
py
Python
cloudroast/objectstorage/smoke/container_smoke.py
kurhula/cloudroast
dcccce6b3af9d150cb667fc05bd051e97b5f6e2c
[ "Apache-2.0" ]
null
null
null
cloudroast/objectstorage/smoke/container_smoke.py
kurhula/cloudroast
dcccce6b3af9d150cb667fc05bd051e97b5f6e2c
[ "Apache-2.0" ]
null
null
null
cloudroast/objectstorage/smoke/container_smoke.py
kurhula/cloudroast
dcccce6b3af9d150cb667fc05bd051e97b5f6e2c
[ "Apache-2.0" ]
1
2020-04-13T17:47:04.000Z
2020-04-13T17:47:04.000Z
""" Copyright 2013 Rackspace 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, software dist...
33.305994
79
0.617446
20,377
0.965003
0
0
0
0
0
0
4,316
0.204395
baa043ba112c1db1f058e902f2a7ddaf2805cded
254
py
Python
ui/experimental.py
miguelgarciaarribas/multroaster
eb3a17e8257cd184cb91d53a2a61c6d3481ac206
[ "MIT" ]
1
2020-04-18T09:13:18.000Z
2020-04-18T09:13:18.000Z
ui/experimental.py
miguelgarciaarribas/multroaster
eb3a17e8257cd184cb91d53a2a61c6d3481ac206
[ "MIT" ]
18
2020-04-24T07:22:54.000Z
2020-08-28T10:33:18.000Z
ui/experimental.py
miguelgarciaarribas/multroaster
eb3a17e8257cd184cb91d53a2a61c6d3481ac206
[ "MIT" ]
null
null
null
from PyQt5.QtGui import QImage, QPixmap # review class ExperimentalContent(): def __init__(self, mainWindow): print("Loading Experimental content") self.mainWindow = mainWindow self.mainWindow.expLabel.setText("hello world")
31.75
55
0.716535
203
0.799213
0
0
0
0
0
0
51
0.200787
baa0b245e76c44193e4e6bd7bfd85355edd44a65
3,683
py
Python
py2neo/exceptions.py
AYCHTECH/PY2NEO
fa0d296c13acb1697f4e112995eea9492e8e6159
[ "Apache-2.0" ]
null
null
null
py2neo/exceptions.py
AYCHTECH/PY2NEO
fa0d296c13acb1697f4e112995eea9492e8e6159
[ "Apache-2.0" ]
null
null
null
py2neo/exceptions.py
AYCHTECH/PY2NEO
fa0d296c13acb1697f4e112995eea9492e8e6159
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2011-2013, Nigel Small # # 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...
25.054422
77
0.660874
2,817
0.764866
0
0
812
0.220472
0
0
793
0.215314
baa0fbddbd32d3ef3694797a1f0547612c46e0e3
163
py
Python
old/07/04.py
systemquant/book-pandas-for-finance
90b7eb9be1de20a12ae72b9bb5d51424a979b174
[ "MIT" ]
10
2021-02-04T12:49:56.000Z
2022-03-26T11:28:11.000Z
old/07/04.py
systemquant/book-pandas-for-finance
90b7eb9be1de20a12ae72b9bb5d51424a979b174
[ "MIT" ]
1
2022-03-24T03:47:14.000Z
2022-03-24T03:54:52.000Z
old/07/04.py
systemquant/book-pandas-for-finance
90b7eb9be1de20a12ae72b9bb5d51424a979b174
[ "MIT" ]
4
2021-07-17T16:50:15.000Z
2022-03-22T05:55:34.000Z
import pybithumb df = pybithumb.get_ohlcv("BTC", interval="day") df["변동성"] = (df['high'] - df['low']) * 0.5 df["목표가"] = df["open"] + df["변동성"].shift(1) print(df)
23.285714
47
0.588957
0
0
0
0
0
0
0
0
60
0.331492
baa1caa8e9bdbac6ca15b15bf9f64230c965b99a
23,105
bzl
Python
repositories.bzl
jesseschalken/rules_proto_grpc
2e8be8e27cc82203794f14dbdcf37189b02ab722
[ "Apache-2.0" ]
null
null
null
repositories.bzl
jesseschalken/rules_proto_grpc
2e8be8e27cc82203794f14dbdcf37189b02ab722
[ "Apache-2.0" ]
null
null
null
repositories.bzl
jesseschalken/rules_proto_grpc
2e8be8e27cc82203794f14dbdcf37189b02ab722
[ "Apache-2.0" ]
null
null
null
"""Common dependencies for rules_proto_grpc.""" load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file") load("//internal:common.bzl", "check_bazel_minimum_version") # Versions MINIMUM_BAZEL_VERSION = "3.0.0" ENABLE_VERSION_NAGS = False PROTOBUF_VERSION = "3.19.1" # When updating, also updat...
36.328616
142
0.639602
0
0
0
0
0
0
0
0
12,780
0.553127
baa49d25bf46be87576157d1dc079d66786d0226
437
py
Python
ws_assets/routers.py
Ragnaruk/ws_assets
f593eb0e5c5fe2bf2945b488d7ab10be34d6b5cd
[ "MIT" ]
null
null
null
ws_assets/routers.py
Ragnaruk/ws_assets
f593eb0e5c5fe2bf2945b488d7ab10be34d6b5cd
[ "MIT" ]
null
null
null
ws_assets/routers.py
Ragnaruk/ws_assets
f593eb0e5c5fe2bf2945b488d7ab10be34d6b5cd
[ "MIT" ]
null
null
null
from fastapi import APIRouter from ws_assets.routes import ui from ws_assets.routes.api.v1 import websocket from ws_assets.settings import Settings settings = Settings() # /api/v1 api_v1_router = APIRouter(tags=["v1"]) for endpoints in (websocket,): api_v1_router.include_router(endpoints.router, prefix="/api/v1...
20.809524
68
0.759725
0
0
0
0
0
0
0
0
30
0.06865
baa5ec809f693db6d15b2be48cd628a88b94983c
5,279
py
Python
adventuredocs/adocs.py
hypatia-software-org/adventuredocs
bba007855e464cd95945b8a5cce73ebaa25f487f
[ "MIT" ]
7
2016-02-20T00:38:10.000Z
2016-04-18T16:45:20.000Z
adventuredocs/adocs.py
lily-seabreeze/adventuredocs
bba007855e464cd95945b8a5cce73ebaa25f487f
[ "MIT" ]
19
2016-02-20T20:22:43.000Z
2016-04-17T19:07:10.000Z
adventuredocs/adocs.py
lillian-gardenia-seabreeze/adventuredocs
bba007855e464cd95945b8a5cce73ebaa25f487f
[ "MIT" ]
2
2016-03-26T01:57:37.000Z
2016-03-28T18:06:43.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """AdventureDocs Choose Your Own Adventure style software documentation from markdown. Use markdown files to represent a section of instructions, and options to skip to a section, or just go to the next section. Load a directory of markdown files, which also includes a ...
28.846995
249
0.638757
4,212
0.797878
0
0
2,427
0.459746
0
0
1,814
0.343626
baa74fba93f9d044432ac0ced5081ee63ebaa072
3,095
py
Python
examples/tutorial/tutorial_part_signatures.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
examples/tutorial/tutorial_part_signatures.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
examples/tutorial/tutorial_part_signatures.py
PhilippBoeing/synbioweaver
23efdf79a325885a43e82ba13e6ccefb8eb3d733
[ "MIT" ]
null
null
null
# This example runs the examples from figure 5 of the manuscript from synbioweaver import * class BBa_B0030(RBS): def __init__(self): super(BBa_B0030, self).__init__() self.type = "biobrick" self.sequence = "attaaagaggagaaa" declareNewMolecule('GFP') declareNewMolecule('TetR') declareNew...
40.194805
136
0.685622
2,093
0.676252
0
0
0
0
0
0
563
0.181906