hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
04e146c21411c3b5089f8cfa04a7e495e7e00322
3,818
py
Python
vmanager_apps/VMgr_UserCreate-Delete.py
minarady1/blink-1
4453cf9a9bc4f4ba72b48f569ab9b33d5de177a0
[ "BSD-3-Clause" ]
2
2021-03-03T05:03:56.000Z
2021-03-03T05:03:58.000Z
vmanager_apps/VMgr_UserCreate-Delete.py
minarady1/blink-1
4453cf9a9bc4f4ba72b48f569ab9b33d5de177a0
[ "BSD-3-Clause" ]
104
2016-04-10T19:22:20.000Z
2018-11-20T15:47:14.000Z
libs/smartmeshsdk-REL-1.3.0.1/vmanager_apps/VMgr_UserCreate-Delete.py
realms-team/solmanager
95fa049df041add5f8d37c053ef560d0e5d06dff
[ "BSD-3-Clause" ]
2
2019-03-13T11:43:04.000Z
2019-04-30T13:54:52.000Z
#!/usr/bin/python ''' Basic example. This script queries the manager and prints out the current users, then creates a user named user1 (if it does not already exist), then deletes it again. Note how these settings are done by writing to the "Config" space, then doing a "reload" to activate. ''' #======================...
35.351852
99
0.61891
786380254c1529409c0efebdf34f5312a22d5cb2
135,384
py
Python
pysnmp-with-texts/Nortel-Magellan-Passport-BitTransparentMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/Nortel-Magellan-Passport-BitTransparentMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/Nortel-Magellan-Passport-BitTransparentMIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module Nortel-Magellan-Passport-BitTransparentMIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Nortel-Magellan-Passport-BitTransparentMIB # Produced by pysmi-0.3.4 at Wed May 1 14:26:38 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user ...
216.961538
9,048
0.796712
81f4cdca204a4928ce4956798c3048b4a229759c
81
py
Python
eosjs_python/tests/test_generate_keys.py
ankitwandx/eosjs_python
07e5bc8f8508aa83a7d6bde4f54e9e6728d97b30
[ "MIT" ]
45
2018-06-04T20:19:17.000Z
2021-12-24T16:44:43.000Z
eosjs_python/tests/test_generate_keys.py
ankitwandx/eosjs_python
07e5bc8f8508aa83a7d6bde4f54e9e6728d97b30
[ "MIT" ]
11
2018-08-31T13:56:13.000Z
2022-03-09T21:26:43.000Z
eosjs_python/tests/test_generate_keys.py
ankitwandx/eosjs_python
07e5bc8f8508aa83a7d6bde4f54e9e6728d97b30
[ "MIT" ]
15
2018-06-18T10:22:29.000Z
2022-03-16T06:23:09.000Z
from eosjs_python import Eos key_pair = Eos.generate_key_pair() print(key_pair)
16.2
34
0.814815
b44092d6a14de213e87641112d8ed18d55e015d0
13,594
py
Python
frappe/twofactor.py
MohammadAhmad1990/frappe
27af065bbba0cf2aeaaefba77c71ee7b7bb6efd7
[ "MIT" ]
null
null
null
frappe/twofactor.py
MohammadAhmad1990/frappe
27af065bbba0cf2aeaaefba77c71ee7b7bb6efd7
[ "MIT" ]
null
null
null
frappe/twofactor.py
MohammadAhmad1990/frappe
27af065bbba0cf2aeaaefba77c71ee7b7bb6efd7
[ "MIT" ]
null
null
null
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors # MIT License. See license.txt from __future__ import unicode_literals import frappe from frappe import _ import pyotp, os from frappe.utils.background_jobs import enqueue from pyqrcode import create as qrcreate from six import BytesIO from base64 i...
34.41519
159
0.737605
24feaff3d89d6f4e55692abfeb66d35dcc8752ad
2,520
py
Python
tests/test_metric/test_kerr.py
Aditya7799/einsteinpy
ab218d30f0d86af113e60a1626cacb0cc3ab8b49
[ "MIT" ]
485
2019-02-04T09:15:22.000Z
2022-03-19T13:50:17.000Z
tests/test_metric/test_kerr.py
Aditya7799/einsteinpy
ab218d30f0d86af113e60a1626cacb0cc3ab8b49
[ "MIT" ]
570
2019-02-02T10:57:27.000Z
2022-02-26T16:37:05.000Z
tests/test_metric/test_kerr.py
Aditya7799/einsteinpy
ab218d30f0d86af113e60a1626cacb0cc3ab8b49
[ "MIT" ]
250
2019-01-30T14:14:14.000Z
2022-02-28T21:18:18.000Z
import collections import pytest import astropy.units as u import numpy as np from numpy.testing import assert_allclose from einsteinpy.coordinates import BoyerLindquistDifferential from einsteinpy.metric import Kerr def test_nonzero_christoffels(): """ Compares count of non-zero Christoffel Symbols List in...
26.526316
100
0.578968
75832180f59651e77fdc5fc1213848ca6cc34dc2
86,384
py
Python
src/datasets/load.py
abhi-mosaic/datasets
a15d864813cf06ef01419166a7060f458c64d819
[ "Apache-2.0" ]
null
null
null
src/datasets/load.py
abhi-mosaic/datasets
a15d864813cf06ef01419166a7060f458c64d819
[ "Apache-2.0" ]
null
null
null
src/datasets/load.py
abhi-mosaic/datasets
a15d864813cf06ef01419166a7060f458c64d819
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The HuggingFace Datasets Authors and the TensorFlow Datasets Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
48.286193
209
0.666258
0afde62cd2fb7f1f094ae7ee8d1638059241b452
1,159
py
Python
tests/test_bld.py
sandeep-gh/PySimpleGui_UI_Generator
602daef1035e0ea7173c8f3dd124ee806e6eb2bd
[ "MIT" ]
null
null
null
tests/test_bld.py
sandeep-gh/PySimpleGui_UI_Generator
602daef1035e0ea7173c8f3dd124ee806e6eb2bd
[ "MIT" ]
1
2021-01-18T00:47:26.000Z
2021-01-18T16:45:10.000Z
tests/test_bld.py
sandeep-gh/PySimpleGui_UI_generator
602daef1035e0ea7173c8f3dd124ee806e6eb2bd
[ "MIT" ]
null
null
null
import time import pickle import PySimpleGUI as sg from layout_directive_definitions import Gelem, BlockLD, BlockLI, TreeNodeLI import layout_generator_step_by_step as lg button_gelem = Gelem(sg.Button, sty={"auto_size_button": 'False', "size": (8, 4) ...
28.975
83
0.601381
c54de5d42c099deee5a87d414fa607c24cebe421
3,230
py
Python
src/grocsvs/stages/barcodes_from_graphs.py
Uditgulati/grocsvs
e7225b0e65e40138053a214130ebaeec1e1448d8
[ "MIT" ]
39
2016-09-11T03:11:09.000Z
2021-04-27T17:08:05.000Z
src/grocsvs/stages/barcodes_from_graphs.py
Uditgulati/grocsvs
e7225b0e65e40138053a214130ebaeec1e1448d8
[ "MIT" ]
34
2016-10-24T22:24:49.000Z
2021-04-12T14:08:54.000Z
src/grocsvs/stages/barcodes_from_graphs.py
Uditgulati/grocsvs
e7225b0e65e40138053a214130ebaeec1e1448d8
[ "MIT" ]
7
2017-10-26T00:55:47.000Z
2020-07-28T10:57:28.000Z
import gzip import numpy import os import pandas import random from grocsvs import step from grocsvs import utilities from grocsvs import structuralvariants from grocsvs.stages import cluster_svs MAX_BARCODES = 200 class BarcodesFromGraphsStep(step.StepChunk): """ Collect barcodes supporting each candidate...
31.666667
121
0.573065
5acf24f896da0061ab35d0e7024cad4ed3a82f36
1,133
py
Python
generated-libraries/python/netapp/fcp/fcp_port_name_get_iter_key_td.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
2
2017-03-28T15:31:26.000Z
2018-08-16T22:15:18.000Z
generated-libraries/python/netapp/fcp/fcp_port_name_get_iter_key_td.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
generated-libraries/python/netapp/fcp/fcp_port_name_get_iter_key_td.py
radekg/netapp-ontap-lib-get
6445ebb071ec147ea82a486fbe9f094c56c5c40d
[ "MIT" ]
null
null
null
from netapp.netapp_object import NetAppObject class FcpPortNameGetIterKeyTd(NetAppObject): """ Key typedef for table fcp_portname """ _key_1 = None @property def key_1(self): """ Field lif """ return self._key_1 @key_1.setter def key_1(self, val): ...
22.66
87
0.519859
a1c06e5443d6e14eb58cd9ff17dc1f7a37ecb950
3,737
py
Python
hupu_scrapy/hupu_scrapy/pipelines.py
CharlesZhong/HupuMiner
e742069874f267487f7f866b38eb5b6ee9b96ea2
[ "MIT" ]
null
null
null
hupu_scrapy/hupu_scrapy/pipelines.py
CharlesZhong/HupuMiner
e742069874f267487f7f866b38eb5b6ee9b96ea2
[ "MIT" ]
1
2015-05-12T13:31:57.000Z
2015-05-12T13:31:57.000Z
hupu_scrapy/hupu_scrapy/pipelines.py
CharlesZhong/HupuMiner
e742069874f267487f7f866b38eb5b6ee9b96ea2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import json from scrapy import log import pymongo from scrapy.exceptions import DropItem import re from datetime import datetim...
28.310606
115
0.607974
f97cdbc07f515215ef46c3407b7580288d65cb7c
9,922
py
Python
pynq_agc/AgcDashView.py
jogomojo/pynq_agc
87b9ceee89ef2b944c86de1123d3b81d8afa7a4c
[ "BSD-3-Clause" ]
null
null
null
pynq_agc/AgcDashView.py
jogomojo/pynq_agc
87b9ceee89ef2b944c86de1123d3b81d8afa7a4c
[ "BSD-3-Clause" ]
null
null
null
pynq_agc/AgcDashView.py
jogomojo/pynq_agc
87b9ceee89ef2b944c86de1123d3b81d8afa7a4c
[ "BSD-3-Clause" ]
null
null
null
# catch dash deprecation warnings import warnings with warnings.catch_warnings(): warnings.simplefilter("ignore") from dash import dcc from dash import html import dash_bootstrap_components as dbc _in_control_panel = lambda state : dbc.Container([ dbc.Row( dbc.Col([ dbc.ListGro...
38.30888
154
0.427031
3b82a70cebcff642205e71e507447cf920a7e0ae
371
py
Python
apps/category/migrations/0002_auto_20181122_0014.py
pjpv/python_django_video
0cfa5c568ed2e1b6adea2b2c27aa0dd4f74b417f
[ "MIT" ]
null
null
null
apps/category/migrations/0002_auto_20181122_0014.py
pjpv/python_django_video
0cfa5c568ed2e1b6adea2b2c27aa0dd4f74b417f
[ "MIT" ]
null
null
null
apps/category/migrations/0002_auto_20181122_0014.py
pjpv/python_django_video
0cfa5c568ed2e1b6adea2b2c27aa0dd4f74b417f
[ "MIT" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-21 16:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('category', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='categorymodel', options={'verbose_name': '分...
20.611111
72
0.601078
67cb642227ba5fc03a3480c43c81ee508a0f0890
4,874
py
Python
backend/galvanalyser/database/harvester/harvester_row.py
Battery-Intelligence-Lab/galvanalyser
3b7198df1caf015fcb802ba94df999aa36c08f4f
[ "BSD-2-Clause" ]
13
2021-11-11T10:59:12.000Z
2022-02-02T18:27:48.000Z
backend/galvanalyser/database/harvester/harvester_row.py
Battery-Intelligence-Lab/galvanalyser
3b7198df1caf015fcb802ba94df999aa36c08f4f
[ "BSD-2-Clause" ]
19
2021-11-11T14:20:53.000Z
2022-02-16T09:49:27.000Z
backend/galvanalyser/database/harvester/harvester_row.py
Battery-Intelligence-Lab/galvanalyser
3b7198df1caf015fcb802ba94df999aa36c08f4f
[ "BSD-2-Clause" ]
1
2022-01-14T08:10:08.000Z
2022-01-14T08:10:08.000Z
import psycopg2 from galvanalyser.database import Row class HarvesterRow(Row): def __init__(self, machine_id, harvester_name, is_running=False, last_successful_run=None, periodic_hour=None, id_=None): self.machine_id = machine_id s...
33.156463
70
0.46943
eb09d83986ff8a9105c706bb877c6ae53d932a0e
36,119
py
Python
cea/demand/hourly_procedure_heating_cooling_system_load.py
justinfmccarty/CityEnergyAnalyst_bigmacc
a7f2d6085e83730bdc4bcb2321e1613070372027
[ "MIT" ]
null
null
null
cea/demand/hourly_procedure_heating_cooling_system_load.py
justinfmccarty/CityEnergyAnalyst_bigmacc
a7f2d6085e83730bdc4bcb2321e1613070372027
[ "MIT" ]
null
null
null
cea/demand/hourly_procedure_heating_cooling_system_load.py
justinfmccarty/CityEnergyAnalyst_bigmacc
a7f2d6085e83730bdc4bcb2321e1613070372027
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import warnings import numpy as np from cea.demand import airconditioning_model, rc_model_SIA, control_heating_cooling_systems, \ space_emission_systems, latent_loads, constants __author__ = "Gabriel Happle" __copyright__ = "Copyright 2016, Architecture and Building Systems - ETH Zuri...
36.557692
141
0.658767
70ee6e07d246a63a0a1b63708159544c73b3c78e
2,573
py
Python
xTool/backoff.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
2
2020-09-02T13:46:06.000Z
2020-10-11T16:11:02.000Z
xTool/backoff.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
null
null
null
xTool/backoff.py
luciferliu/xTools
324ef1388be13ece0d952e3929eb685212d573f1
[ "Apache-2.0" ]
4
2018-10-15T07:08:34.000Z
2019-11-26T01:52:47.000Z
# -*- coding: utf-8 -*- import asyncio from functools import wraps from typing import Callable, Optional, Type, TypeVar, Union from xTool.decorators.timeout import timeout Number = Union[int, float] T = TypeVar("T") # noinspection SpellCheckingInspection def asyncbackoff( attempt_timeout: Optional[Number], ...
28.910112
72
0.526234
0d419059dd9be7b4e2fb10e4d8e633da4855057f
876
py
Python
pokemonfans/migrations/0019_pokemon_type_2.py
lowdensh/pokefan
553be197c014f6f145c578b0aececeb06b47016d
[ "MIT" ]
1
2020-11-04T21:14:50.000Z
2020-11-04T21:14:50.000Z
pokemonfans/migrations/0019_pokemon_type_2.py
lowdensh/pokefan
553be197c014f6f145c578b0aececeb06b47016d
[ "MIT" ]
null
null
null
pokemonfans/migrations/0019_pokemon_type_2.py
lowdensh/pokefan
553be197c014f6f145c578b0aececeb06b47016d
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-27 20:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pokemonfans', '0018_remove_pokemon_description'), ] operations = [ migrations.AddField( model_name='pokemon', name='...
46.105263
529
0.573059
b35cd8128d8752dd27deed73a71acf123912266e
4,447
py
Python
Navigation-DRL/simulate.py
paperstiger/MoE-public
0f6f89d25dbbc83058e4f2750c70d79a3744856e
[ "MIT" ]
null
null
null
Navigation-DRL/simulate.py
paperstiger/MoE-public
0f6f89d25dbbc83058e4f2750c70d79a3744856e
[ "MIT" ]
null
null
null
Navigation-DRL/simulate.py
paperstiger/MoE-public
0f6f89d25dbbc83058e4f2750c70d79a3744856e
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ In this file, I will randomly generate initial states, perform rollout on the learned model and statistically record the final state that I could get. I hope it is bad. """ import argparse import os import types import numpy as np import matplotlib.pyplot as plt import torch from baselines....
34.207692
120
0.629638
40e8036c1f8b30124f694e39d76e91abe3a2f8fc
987
py
Python
server/app/auth/routes.py
aryaniyaps/todos
06e18717dfc1139d5ab2fdd71f8baf0d08548c33
[ "BSD-3-Clause" ]
2
2021-11-05T05:19:55.000Z
2021-11-05T07:07:50.000Z
server/app/auth/routes.py
aryaniyaps/todos
06e18717dfc1139d5ab2fdd71f8baf0d08548c33
[ "BSD-3-Clause" ]
184
2021-11-11T04:34:30.000Z
2022-03-28T08:25:51.000Z
server/app/auth/routes.py
aryaniyaps/todos
06e18717dfc1139d5ab2fdd71f8baf0d08548c33
[ "BSD-3-Clause" ]
null
null
null
from http import HTTPStatus from flask import Blueprint, request, session from flask.typing import ResponseReturnValue from app.auth.decorators import auth_required from app.auth.schemas import authenticate_schema from app.auth.services import AuthService from app.users.schemas import user_schema auth_blueprint = B...
24.073171
49
0.722391
8f939dfe72bfd835138ef6558782b49ed85b6ae5
1,975
py
Python
loudml/metrics.py
toni-moreno/loudml
0252b6792393fc46f2dc9c1da25dd89fc27a5fa4
[ "Apache-2.0" ]
245
2018-01-30T08:11:53.000Z
2022-03-26T07:17:42.000Z
loudml/metrics.py
robcowart/loudml
0008baef02259a8ae81dd210d3f91a51ffc9ed9f
[ "Apache-2.0" ]
620
2018-01-28T22:58:24.000Z
2022-03-13T13:40:42.000Z
loudml/metrics.py
robcowart/loudml
0008baef02259a8ae81dd210d3f91a51ffc9ed9f
[ "Apache-2.0" ]
97
2018-03-06T14:44:26.000Z
2022-03-24T01:57:31.000Z
""" Collect and send metrics about program usage """ from configparser import ( ConfigParser, NoSectionError ) import io import pkg_resources import requests from loudml.misc import my_host_id # Workaround for ConfigParser requiring sections # https://mail.python.org/pipermail/python-dev/2002-November/029987.ht...
27.430556
78
0.623291
b0a8f76fff75b104fb26d71a131803f0288010ee
3,918
py
Python
spconv/functional.py
idenovix/bu_spconv
7b6dfb4c7078100137bfe9981c566865a8401356
[ "Apache-2.0" ]
18
2020-10-12T07:36:47.000Z
2022-03-09T08:48:53.000Z
spconv/functional.py
idenovix/bu_spconv
7b6dfb4c7078100137bfe9981c566865a8401356
[ "Apache-2.0" ]
1
2020-07-09T09:20:54.000Z
2020-07-16T08:13:34.000Z
spconv/functional.py
idenovix/bu_spconv
7b6dfb4c7078100137bfe9981c566865a8401356
[ "Apache-2.0" ]
12
2020-09-23T09:06:16.000Z
2022-03-09T08:49:48.000Z
# Copyright 2019 Yan Yan # # 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, ...
32.92437
131
0.666156
0b7fdf491f4d73fa0ebb42aad410eb03831ac159
39,975
py
Python
test/functional/p2p_compactblocks.py
PenTesting/bitcoin-abc
28fa7e2db7d986e63d70e41b8f1d29d5fdf724d2
[ "MIT" ]
35
2019-02-23T06:21:13.000Z
2021-11-15T11:35:13.000Z
test/functional/p2p_compactblocks.py
PenTesting/bitcoin-abc
28fa7e2db7d986e63d70e41b8f1d29d5fdf724d2
[ "MIT" ]
60
2019-02-25T18:17:03.000Z
2021-07-13T00:14:00.000Z
test/functional/p2p_compactblocks.py
PenTesting/bitcoin-abc
28fa7e2db7d986e63d70e41b8f1d29d5fdf724d2
[ "MIT" ]
24
2019-02-20T05:37:02.000Z
2021-10-29T18:42:10.000Z
#!/usr/bin/env python3 # Copyright (c) 2016 The Bitcoin Core developers # Copyright (c) 2017 The Bitcoin developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. import random from test_framework.blocktools import create_block,...
42.754011
115
0.65526
1dcf2960aa488aa1203e43459a3cec7872395eed
1,992
py
Python
examples/graph_unet.py
mrmotallebi/pytorch_geometric
5d768659d2a54544219c057ad05172ca55b43119
[ "MIT" ]
12,651
2017-10-28T15:14:24.000Z
2021-09-12T07:22:57.000Z
examples/graph_unet.py
mrmotallebi/pytorch_geometric
5d768659d2a54544219c057ad05172ca55b43119
[ "MIT" ]
2,472
2017-10-30T23:38:47.000Z
2021-09-12T06:41:44.000Z
examples/graph_unet.py
mrmotallebi/pytorch_geometric
5d768659d2a54544219c057ad05172ca55b43119
[ "MIT" ]
2,363
2017-12-01T13:25:05.000Z
2021-09-12T07:23:09.000Z
import os.path as osp import torch import torch.nn.functional as F from torch_geometric.datasets import Planetoid from torch_geometric.nn import GraphUNet from torch_geometric.utils import dropout_adj dataset = 'Cora' path = osp.join(osp.dirname(osp.realpath(__file__)), '..', 'data', dataset) dataset = Planetoid(path...
31.125
77
0.621988
ed221b83c30a5e0d0b7f02c863d93e4c10ee0d5f
2,667
py
Python
app/controllers/default.py
jrfercar/sistema_login
d9b488080a3de4117c9b47833893f591b53a8fc1
[ "MIT" ]
null
null
null
app/controllers/default.py
jrfercar/sistema_login
d9b488080a3de4117c9b47833893f591b53a8fc1
[ "MIT" ]
null
null
null
app/controllers/default.py
jrfercar/sistema_login
d9b488080a3de4117c9b47833893f591b53a8fc1
[ "MIT" ]
null
null
null
import bcrypt from app import app from app.models.tables import User from bottle import template, static_file, request, redirect # static routes @app.get('/<filename:re:.*\.css>') def stylesheets(filename): return static_file(filename, root='app/static/css') @app.get('/<filename:re:.*\.js>') def javascripts(filen...
28.98913
71
0.653543
1874d8752d7bb8018dba0aaa5696ceaa0a6f1d09
1,655
py
Python
src/plugins/nonebot_bison/platform/rss.py
58563528/nonebot-hk-reporter
35424085a52362e5911d766890b51ace631f4fd6
[ "MIT" ]
32
2021-02-10T11:47:09.000Z
2021-11-16T20:18:35.000Z
src/plugins/nonebot_bison/platform/rss.py
58563528/nonebot-hk-reporter
35424085a52362e5911d766890b51ace631f4fd6
[ "MIT" ]
16
2021-02-26T08:45:45.000Z
2021-10-21T08:12:16.000Z
src/plugins/nonebot_bison/platform/rss.py
58563528/nonebot-hk-reporter
35424085a52362e5911d766890b51ace631f4fd6
[ "MIT" ]
4
2021-02-18T06:00:43.000Z
2021-09-09T02:49:33.000Z
import calendar from typing import Any, Optional from bs4 import BeautifulSoup as bs import feedparser import httpx from ..post import Post from ..types import RawPost, Target from .platform import NewMessage, TargetMixin class Rss(NewMessage, TargetMixin): categories = {} enable_tag = False platform_na...
33.1
105
0.635045
078dfa7af625fc6f8f783ac69c5c3ca55696f48c
932
py
Python
programs/pyeos/tests/python/cryptokitties/auction.py
learnforpractice/pyeos
4f04eb982c86c1fdb413084af77c713a6fda3070
[ "MIT" ]
144
2017-10-18T16:38:51.000Z
2022-01-09T12:43:57.000Z
programs/pyeos/tests/python/cryptokitties/auction.py
openchatproject/safeos
2c8dbf57d186696ef6cfcbb671da9705b8f3d9f7
[ "MIT" ]
60
2017-10-11T13:07:43.000Z
2019-03-26T04:33:27.000Z
programs/pyeos/tests/python/cryptokitties/auction.py
learnforpractice/pyeos
4f04eb982c86c1fdb413084af77c713a6fda3070
[ "MIT" ]
38
2017-12-05T01:13:56.000Z
2022-01-07T07:06:53.000Z
#Represents an auction on an NFT from backend import * class Auction: def __init__(self): self.seller = address(0) #Price (in wei) at beginning of auction self.startingPrice = uint128(0) #Price (in wei) at end of auction self.endingPrice = uint128(0) #Duration (in sec...
25.189189
51
0.623391
4680cc364523524beaef5c51108e98e7c0236933
8,947
py
Python
datasets/mrqa/mrqa.py
WojciechKusa/datasets
1406a04c3e911cec2680d8bc513653e0cafcaaa4
[ "Apache-2.0" ]
10,608
2020-09-10T15:47:50.000Z
2022-03-31T22:51:47.000Z
datasets/mrqa/mrqa.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
2,396
2020-09-10T14:55:31.000Z
2022-03-31T19:41:04.000Z
datasets/mrqa/mrqa.py
realChainLife/datasets
98261e8b0b7be4dbaaa71ae188b950f7fbe51bbd
[ "Apache-2.0" ]
1,530
2020-09-10T21:43:10.000Z
2022-03-31T01:59:12.000Z
# coding=utf-8 # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor. # # 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/lice...
45.416244
123
0.547781
2c914a5f17935bf1f622021743ae82e410569272
7,869
py
Python
qa/L0_storage_GCS/infer_test.py
DonnieKim411/triton-inference-server
933e5afe1d40c4801186dabdc2ee613e4f0769c6
[ "BSD-3-Clause" ]
null
null
null
qa/L0_storage_GCS/infer_test.py
DonnieKim411/triton-inference-server
933e5afe1d40c4801186dabdc2ee613e4f0769c6
[ "BSD-3-Clause" ]
null
null
null
qa/L0_storage_GCS/infer_test.py
DonnieKim411/triton-inference-server
933e5afe1d40c4801186dabdc2ee613e4f0769c6
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditi...
44.457627
80
0.457619
3ae87aef1c45734c3a2d3e752f24f3e04e3f8ec1
644
py
Python
examples/weather_to_csv.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-15T21:30:36.000Z
2022-02-15T21:30:36.000Z
examples/weather_to_csv.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
null
null
null
examples/weather_to_csv.py
microsoft/jacdac-python
712ad5559e29065f5eccb5dbfe029c039132df5a
[ "MIT" ]
1
2022-02-08T19:32:45.000Z
2022-02-08T19:32:45.000Z
from jacdac import Bus from jacdac.humidity import HumidityClient from jacdac.temperature import TemperatureClient import csv from time import sleep if __name__ == '__main__': def main(): bus = Bus() humidity_sensor = HumidityClient(bus, "weather.hum") temperature = TemperatureClient(bus, "...
32.2
61
0.608696
6005e3c71c7144c14d3435aff0c72791715ffaa3
5,927
py
Python
mapproxy/wsgiapp.py
autra/mapproxy
718448cc890173704d11e75674e31011991247fe
[ "ECL-2.0", "Apache-2.0" ]
347
2015-01-19T15:47:08.000Z
2022-03-23T20:33:17.000Z
mapproxy/wsgiapp.py
autra/mapproxy
718448cc890173704d11e75674e31011991247fe
[ "ECL-2.0", "Apache-2.0" ]
374
2015-01-05T07:54:31.000Z
2022-03-24T08:23:10.000Z
mapproxy/wsgiapp.py
autra/mapproxy
718448cc890173704d11e75674e31011991247fe
[ "ECL-2.0", "Apache-2.0" ]
188
2015-01-07T00:59:28.000Z
2022-03-15T09:05:57.000Z
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # 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...
36.140244
115
0.638097
9ef9c0b34ce89dccba1d3b77433ad469ba01c9d7
1,669
py
Python
iostat.py
Come1LLF00/cifostoolbox
8dc351f2d8059621c2929dda816012abca1f2044
[ "MIT" ]
null
null
null
iostat.py
Come1LLF00/cifostoolbox
8dc351f2d8059621c2929dda816012abca1f2044
[ "MIT" ]
null
null
null
iostat.py
Come1LLF00/cifostoolbox
8dc351f2d8059621c2929dda816012abca1f2044
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys # to get cmd options import time # to sleep import subprocess as sp # to run external processes from datetime import datetime # to watch the time from lss import lsthreads, is_running, list_threads import re from pipe import select # sudo iotop -bkp {pid} -n 1 | grep -Eo "%.*" | grep -Eo...
39.738095
130
0.603954
8701085ad40d7a45c4d67a2a2d2a05efe0e468d1
1,629
py
Python
test/dom/test_attr.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
2
2018-05-28T23:01:20.000Z
2018-05-29T03:59:38.000Z
test/dom/test_attr.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
test/dom/test_attr.py
jkloth/pyxml
de15b3ad0fe095f6ce36b1c5ad7438046aae8d3d
[ "MIT" ]
null
null
null
from TestSuite import EMPTY_NAMESPACE def test(tester): tester.startGroup('Attr') tester.startTest('Checking syntax') try: from xml.dom import Attr from xml.dom.Attr import Attr except: tester.error('Error in syntax', 1) tester.testDone() tester.startTest('Creating te...
24.681818
70
0.641498
bf390b9c25e1f385fc02c48dfe3a2d32bb36375f
28,500
py
Python
venv/Lib/site-packages/pandas/core/indexes/range.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/indexes/range.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/core/indexes/range.py
OliviaNabbosa89/Disaster_Responses
1e66d77c303cec685dfc2ca94f4fca4cc9400570
[ "MIT" ]
null
null
null
from datetime import timedelta import operator from sys import getsizeof from typing import Any, List, Optional import warnings import numpy as np from pandas._libs import index as libindex from pandas._libs.lib import no_default from pandas._typing import Label import pandas.compat as compat from pandas....
34.587379
88
0.545263
72913347411bc1efe4fd9f7930db39eb1873fe05
691
py
Python
build/hector_slam/hector_mapping/catkin_generated/pkg.develspace.context.pc.py
EurobotMDX/eurobot_2020_odroid_cam
ddd9a17d53899f1c615816fd74512c112ecad188
[ "MIT" ]
4
2019-10-26T18:48:51.000Z
2020-02-27T19:31:36.000Z
build/hector_slam/hector_mapping/catkin_generated/pkg.develspace.context.pc.py
EurobotMDX/eurobot_2020_odroid_cam
ddd9a17d53899f1c615816fd74512c112ecad188
[ "MIT" ]
null
null
null
build/hector_slam/hector_mapping/catkin_generated/pkg.develspace.context.pc.py
EurobotMDX/eurobot_2020_odroid_cam
ddd9a17d53899f1c615816fd74512c112ecad188
[ "MIT" ]
1
2019-10-26T18:50:48.000Z
2019-10-26T18:50:48.000Z
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/ros/lidar_ws/devel/include;/home/ros/lidar_ws/src/hector_slam/hector_mapping/include;/usr/include/eigen3".split(';') if "/home/ros/lidar_ws/devel/include;/home/ros/lidar_ws/src/hector_slam/hector...
76.777778
287
0.781476
5d0dbb7868a959435a53c455691ccf5dc5a2ea16
576
py
Python
setup.py
CBitLabs/hapipy
d4b1a589b7ae8ad8974f5774e5b7d779424df116
[ "Apache-2.0" ]
1
2017-11-03T16:07:33.000Z
2017-11-03T16:07:33.000Z
setup.py
CBitLabs/hapipy
d4b1a589b7ae8ad8974f5774e5b7d779424df116
[ "Apache-2.0" ]
2
2018-03-16T18:03:59.000Z
2019-12-06T16:18:25.000Z
setup.py
CBitLabs/hapipy
d4b1a589b7ae8ad8974f5774e5b7d779424df116
[ "Apache-2.0" ]
1
2016-12-19T12:38:08.000Z
2016-12-19T12:38:08.000Z
#!/usr/bin/env python from setuptools import setup setup( name='hapipy', version='2.10.5.4+bs1', description="A python wrapper around HubSpot's APIs", long_description=open('README.md').read(), author='HubSpot Dev Team', author_email='devteam+hapi@hubspot.com', url='https://github.com/HubSp...
27.428571
69
0.631944
0f6fec4bb0f67d3a7b26fca40c1ca281212f58e3
986
py
Python
blog/migrations/0001_initial.py
estellehlustiksmith/my-first-blog
cdf9c9edbebe0c61425c418c97c8684cea3412ce
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
estellehlustiksmith/my-first-blog
cdf9c9edbebe0c61425c418c97c8684cea3412ce
[ "MIT" ]
null
null
null
blog/migrations/0001_initial.py
estellehlustiksmith/my-first-blog
cdf9c9edbebe0c61425c418c97c8684cea3412ce
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-24 16:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUT...
32.866667
120
0.634888
c1439363b7951e0426aa78bdcf6c1ee35d27a152
4,930
py
Python
TesteDeVelocidade.py
gutomelo/SpeedTest
b1d3b3006894113287f048f8ef4217047a234eb6
[ "MIT" ]
null
null
null
TesteDeVelocidade.py
gutomelo/SpeedTest
b1d3b3006894113287f048f8ef4217047a234eb6
[ "MIT" ]
null
null
null
TesteDeVelocidade.py
gutomelo/SpeedTest
b1d3b3006894113287f048f8ef4217047a234eb6
[ "MIT" ]
null
null
null
from datetime import datetime, timezone, timedelta import statistics, subprocess, time, json, os # Variável que irá armazenar todos os testes numa lista para o cálculo da média Testes_Ping = [] Testes_Jitter = [] Testes_Download = [] Testes_Upload = [] # Irá buscar os servidores mais próximos usando o aplicativo d...
47.864078
158
0.651521
1e27f18ab5ef993c02caa01656b29f1ecbe96024
11,458
py
Python
yegsecbot.py
jershmagersh/yegsecbot
147c1ad4e0bbf7688f55ee0075b9c03fddf4223c
[ "Apache-2.0" ]
1
2019-02-20T23:24:02.000Z
2019-02-20T23:24:02.000Z
yegsecbot.py
jershmagersh/yegsecbot
147c1ad4e0bbf7688f55ee0075b9c03fddf4223c
[ "Apache-2.0" ]
null
null
null
yegsecbot.py
jershmagersh/yegsecbot
147c1ad4e0bbf7688f55ee0075b9c03fddf4223c
[ "Apache-2.0" ]
3
2019-02-20T01:43:10.000Z
2019-06-19T00:08:29.000Z
#!/usr/bin/python """ I wrote this in a couple afternoons while watching Netflix, so it can probably be better. -jmag """ from slackclient import SlackClient import sys, json, sqlite3, time, re, datetime MENTION_REGEX = "^<@(|[WU][A-Z0-9]+?)>(.*)" class ConfigException(Exception): pass class Connection...
42.913858
239
0.56598
be2a074ca84d873cbec0bf55f785082fb8b04f15
15,090
py
Python
django_js_reverse/tests/unit_tests.py
thread/django-js-reverse
d3dc73879a2a61e9149c8c9f200c0fbc0e52e6c0
[ "MIT" ]
492
2015-01-05T15:04:27.000Z
2022-03-31T19:53:06.000Z
django_js_reverse/tests/unit_tests.py
thread/django-js-reverse
d3dc73879a2a61e9149c8c9f200c0fbc0e52e6c0
[ "MIT" ]
88
2015-01-09T02:49:51.000Z
2022-01-11T01:28:26.000Z
django_js_reverse/tests/unit_tests.py
thread/django-js-reverse
d3dc73879a2a61e9149c8c9f200c0fbc0e52e6c0
[ "MIT" ]
82
2015-01-20T19:58:28.000Z
2022-03-06T11:04:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import unicode_literals import io import json import os import re import subprocess import sys import unittest import tempfile import contextlib import shutil import six import django from django.conf import settings from django.core.exceptions import Impr...
43.866279
120
0.689264
f9af2b0539e9d2d3d5492735ff8e683496ca5495
2,669
py
Python
utils/utils.py
WoojuLee24/APR
8bfafcfa5c7b1747d555362b84a1ebe0bb3fbdbd
[ "MIT" ]
35
2021-08-19T11:12:20.000Z
2022-03-16T07:21:38.000Z
utils/utils.py
WoojuLee24/APR
8bfafcfa5c7b1747d555362b84a1ebe0bb3fbdbd
[ "MIT" ]
6
2021-08-25T12:40:30.000Z
2022-03-16T01:47:44.000Z
utils/utils.py
WoojuLee24/APR
8bfafcfa5c7b1747d555362b84a1ebe0bb3fbdbd
[ "MIT" ]
5
2021-08-21T09:16:22.000Z
2022-01-20T00:59:28.000Z
import os import sys import errno import os.path as osp import numpy as np import torch def mkdir_if_missing(directory): if not osp.exists(directory): try: os.makedirs(directory) except OSError as e: if e.errno != errno.EEXIST: raise class AverageMeter(objec...
28.393617
100
0.612214
139933498c24fba4ba437f6629286b7e8500f7e9
308
py
Python
quickml/__init__.py
onuohasilver/quickml
010d8c6b849fed8079d2ab13f55d6fe4f1ea1d92
[ "MIT" ]
1
2020-04-28T02:17:13.000Z
2020-04-28T02:17:13.000Z
quickml/__init__.py
onuohasilver/quickml
010d8c6b849fed8079d2ab13f55d6fe4f1ea1d92
[ "MIT" ]
null
null
null
quickml/__init__.py
onuohasilver/quickml
010d8c6b849fed8079d2ab13f55d6fe4f1ea1d92
[ "MIT" ]
null
null
null
from quickml.ColumnEncoder import MultiColumnLabelEncoder from quickml.DataObjects import DataObjects from quickml.Imbalanced import Imbalanced from quickml.Utility import Utility from quickml.Visual import Visual from quickml.WorkSpace import WorkSpace from quickml.ExtraInteractions import Add_interactions
44
57
0.88961
48544007d83e725234d4d5c3b1bd9014073a8fb2
1,088
py
Python
roadslink/overrides/web_page.py
premkanish/rl
d6fc42619e756dcbee0a6003bf976c9b6dbaab9f
[ "MIT" ]
null
null
null
roadslink/overrides/web_page.py
premkanish/rl
d6fc42619e756dcbee0a6003bf976c9b6dbaab9f
[ "MIT" ]
null
null
null
roadslink/overrides/web_page.py
premkanish/rl
d6fc42619e756dcbee0a6003bf976c9b6dbaab9f
[ "MIT" ]
null
null
null
import frappe from frappe import _ from frappe.utils import cint, flt from frappe.website.doctype.web_page.web_page import WebPage,get_web_blocks_html class CustomWebPage(WebPage): def get_context(self, context): super(CustomWebPage, self).get_context(context) context.update({ "page_div_class":...
31.085714
92
0.644301
b77c593d85c948ca797e36b3d21c267ca431331e
8,220
py
Python
plotly/graph_objs/pie/_outsidetextfont.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/graph_objs/pie/_outsidetextfont.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
null
null
null
plotly/graph_objs/pie/_outsidetextfont.py
omridanan/plotly.py
a8d26670cba49ce15ce9b7639ae0f55a6088a825
[ "MIT" ]
1
2019-02-18T04:12:56.000Z
2019-02-18T04:12:56.000Z
from plotly.basedatatypes import BaseTraceHierarchyType import copy class Outsidetextfont(BaseTraceHierarchyType): # color # ----- @property def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba ...
37.363636
79
0.571168
c1521963c2b2201d44124e4cf4532ec54068c130
976
py
Python
Image_Play/urls.py
yash98/Image_Play
77129195471226b2beb994c70f319272940bf012
[ "MIT" ]
null
null
null
Image_Play/urls.py
yash98/Image_Play
77129195471226b2beb994c70f319272940bf012
[ "MIT" ]
null
null
null
Image_Play/urls.py
yash98/Image_Play
77129195471226b2beb994c70f319272940bf012
[ "MIT" ]
null
null
null
"""Image_Play URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-ba...
34.857143
80
0.723361
423124319c9b133b1dbf22c09554bb75e6dc5605
355
py
Python
tests/test_import.py
hkclark/attrs
c960c4f9ca87e1be3c65e11fb965c1d79172357d
[ "MIT" ]
null
null
null
tests/test_import.py
hkclark/attrs
c960c4f9ca87e1be3c65e11fb965c1d79172357d
[ "MIT" ]
112
2021-09-27T14:39:02.000Z
2022-03-30T14:26:35.000Z
tools/third_party/attrs/tests/test_import.py
clopez/wpt
4ba8a4a1f41e166289c0a7feaa5665e1385e90f3
[ "BSD-3-Clause" ]
null
null
null
# SPDX-License-Identifier: MIT class TestImportStar(object): def test_from_attr_import_star(self): """ import * from attr """ # attr_import_star contains `from attr import *`, which cannot # be done here because *-imports are only allowed on module level. from . imp...
29.583333
74
0.647887
1ce67856604631bbed5c01a46bf47705e0543639
2,160
py
Python
storage/database-cookbook/relational/oracle/connection_oracle.py
brunocampos01/job-challenges
62cb3b63bec1659fe3dbb9c68afa9a0e19bdebcc
[ "MIT" ]
1
2022-01-09T03:18:45.000Z
2022-01-09T03:18:45.000Z
storage/database-cookbook/relational/oracle/connection_oracle.py
brunocampos01/job-challenges
62cb3b63bec1659fe3dbb9c68afa9a0e19bdebcc
[ "MIT" ]
null
null
null
storage/database-cookbook/relational/oracle/connection_oracle.py
brunocampos01/job-challenges
62cb3b63bec1659fe3dbb9c68afa9a0e19bdebcc
[ "MIT" ]
1
2022-01-07T21:04:45.000Z
2022-01-07T21:04:45.000Z
# documentation: https://cx-oracle.readthedocs.io/en/latest/index.html # Set environment variables as: # ORACLE_HOME=<PATH_TO_INSTANTCLIENT> # PATH=$ORACLE_HOME:$PATH # LD_LIBRARY_PATH=<PATH_TO_INSTANTCLIENT>:$LD_LIBRARY_PATH import os import sys import cx_Oracle here = os.path.abspath(os.path.dirname(_...
24.545455
73
0.596296
5b6940de984b19157d422a1d6034451d73dec5c0
9,224
py
Python
Lib/site-packages/pythonwin/pywin/scintilla/configui.py
rbuzatu90/hyperv-python
82bf5a72b4d956ea05affe1644b47e378dec0f4e
[ "bzip2-1.0.6" ]
3
2020-06-18T16:57:44.000Z
2020-07-21T17:52:06.000Z
Lib/site-packages/pythonwin/pywin/scintilla/configui.py
rbuzatu90/hyperv-python
82bf5a72b4d956ea05affe1644b47e378dec0f4e
[ "bzip2-1.0.6" ]
9
2019-09-06T18:21:59.000Z
2022-01-13T03:04:11.000Z
Lib/site-packages/pythonwin/pywin/scintilla/configui.py
rbuzatu90/hyperv-python
82bf5a72b4d956ea05affe1644b47e378dec0f4e
[ "bzip2-1.0.6" ]
2
2019-09-02T08:39:24.000Z
2019-09-02T18:39:32.000Z
from pywin.mfc import dialog import win32api import win32con import win32ui import copy import string import scintillacon # Used to indicate that style should use default color from win32con import CLR_INVALID ###################################################### # Property Page for syntax formatting options # ...
34.546816
99
0.729944
1bd44336cd4d5c2f54a7d86126d95643bb36e2dd
1,048
py
Python
votenow/views.py
thesaihan/ytu-su-voting
72116cf303572f19eae15d3e7c46412c60c52953
[ "MIT" ]
null
null
null
votenow/views.py
thesaihan/ytu-su-voting
72116cf303572f19eae15d3e7c46412c60c52953
[ "MIT" ]
1
2019-12-14T16:18:45.000Z
2019-12-14T16:18:45.000Z
votenow/views.py
thesaihan/ytu-su-voting
72116cf303572f19eae15d3e7c46412c60c52953
[ "MIT" ]
null
null
null
from django.shortcuts import render,redirect from ajax.common import * from ajax.models import Vote def successFunc(request): if classifyAdmin(request,specific=Constant.VOTER): return render(request, 'votenow/success.html') else: return redirect('/login/') def indexFuncGET(request): if cla...
29.942857
67
0.666985
cb99a744aff50264981d7c3b0cb4dd640b326b4f
324
py
Python
deezload/settings.py
vanyakosmos/deezload
8a25f4657d648a3c70b6287a9828cec724c8fa0e
[ "MIT" ]
5
2018-09-22T15:04:25.000Z
2020-06-02T11:38:27.000Z
deezload/settings.py
vanyakosmos/deezload
8a25f4657d648a3c70b6287a9828cec724c8fa0e
[ "MIT" ]
null
null
null
deezload/settings.py
vanyakosmos/deezload
8a25f4657d648a3c70b6287a9828cec724c8fa0e
[ "MIT" ]
2
2019-09-06T07:59:34.000Z
2020-06-02T11:38:32.000Z
import os from pathlib import Path ROOT_PATH = os.path.dirname(os.path.realpath(__file__)) DEBUG = os.environ.get('DEEZLOAD_DEBUG', '0') == '1' UI_TYPE = os.environ.get('DEEZLOAD_UI', 'tk').lower() default_home_dir = os.path.join(str(Path.home()), 'deezload') HOME_DIR = os.environ.get('DEEZLOAD_HOME', default_home_d...
29.454545
61
0.731481
7380668993400767160316ae6fe53ab7d3186d22
7,968
py
Python
ope/nworacle.py
dsroche/pope
81960ba39d6d3522fae2f94a9dad359085ec130b
[ "CC0-1.0" ]
7
2018-06-15T00:58:55.000Z
2022-01-09T05:00:37.000Z
ope/nworacle.py
dsroche/pope
81960ba39d6d3522fae2f94a9dad359085ec130b
[ "CC0-1.0" ]
null
null
null
ope/nworacle.py
dsroche/pope
81960ba39d6d3522fae2f94a9dad359085ec130b
[ "CC0-1.0" ]
11
2017-02-23T15:30:18.000Z
2022-03-22T05:35:17.000Z
#!/usr/bin/env python3 ################################################################## # This file is part of the POPE implementation. # # Paper at https://eprint.iacr.org/2015/1106 # # U.S. Government work product, in the public domain. # # Written in 2015 by Daniel ...
29.294118
88
0.57505
08bcee7b0b0f4917cdcd42f941f8f0249275b62c
6,744
py
Python
robonomicsinterface/classes/service_functions.py
Multi-Agent-io/robonomics-interface
139276c93b25e39ff0bf537cf6e5632234dbbc50
[ "Apache-2.0" ]
3
2022-01-14T13:50:01.000Z
2022-02-19T19:02:47.000Z
robonomicsinterface/classes/service_functions.py
Multi-Agent-io/robonomics-interface
139276c93b25e39ff0bf537cf6e5632234dbbc50
[ "Apache-2.0" ]
18
2021-11-10T12:11:26.000Z
2022-03-23T14:17:37.000Z
robonomicsinterface/classes/service_functions.py
Multi-Agent-io/robonomics-interface
139276c93b25e39ff0bf537cf6e5632234dbbc50
[ "Apache-2.0" ]
2
2021-12-29T09:17:16.000Z
2022-03-18T14:06:03.000Z
import typing as tp from logging import getLogger from scalecodec.types import GenericCall, GenericExtrinsic from substrateinterface import Keypair, SubstrateInterface, ExtrinsicReceipt from substrateinterface.exceptions import ExtrinsicFailedException from .account import Account from ..decorators import check_socke...
40.872727
142
0.679419
1851fc95fe6c6571f0459c6fc7bde20c72727cb8
8,012
py
Python
scripts/tests/test_asciidoc_fields.py
P1llus/ecs
87e8122f01bda8651c9de9e108dfceead2fa1806
[ "Apache-2.0" ]
1
2019-01-11T00:49:48.000Z
2019-01-11T00:49:48.000Z
scripts/tests/test_asciidoc_fields.py
P1llus/ecs
87e8122f01bda8651c9de9e108dfceead2fa1806
[ "Apache-2.0" ]
null
null
null
scripts/tests/test_asciidoc_fields.py
P1llus/ecs
87e8122f01bda8651c9de9e108dfceead2fa1806
[ "Apache-2.0" ]
null
null
null
import os import sys import unittest sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from scripts.generators import asciidoc_fields from scripts.generators import intermediate_files from scripts.schema import cleaner from scripts.schema import loader from scripts.schema import finalizer class TestGen...
36.752294
100
0.415502
558822a3b2d5ff6877363c5707dc16d62b49c0a8
3,763
py
Python
configs/free_anchor/retinanet_free_anchor_r50_fpn_1x.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
configs/free_anchor/retinanet_free_anchor_r50_fpn_1x.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
configs/free_anchor/retinanet_free_anchor_r50_fpn_1x.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='RetinaNet', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), style='pytorch'), n...
29.865079
77
0.621844
144180d9056401e67916c1cbe353927ba5006f3d
420
py
Python
school/migrations/0029_auto_20211030_1325.py
ntwaliandy/school-system
93b81f62a21ae477ac524a99d2fbb6f16ef2efae
[ "MIT" ]
null
null
null
school/migrations/0029_auto_20211030_1325.py
ntwaliandy/school-system
93b81f62a21ae477ac524a99d2fbb6f16ef2efae
[ "MIT" ]
null
null
null
school/migrations/0029_auto_20211030_1325.py
ntwaliandy/school-system
93b81f62a21ae477ac524a99d2fbb6f16ef2efae
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2021-10-30 13:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('school', '0028_auto_20211030_1324'), ] operations = [ migrations.AlterField( model_name='grading', name='total', ...
22.105263
85
0.609524
95886d739e840962a8f96c19d3c3385e2adec824
1,808
py
Python
stdplugins/openweathermap.py
Hopsins/PornHub
eb4eed9e18bdace04a948321186804330e809ddd
[ "Apache-2.0" ]
2
2019-09-13T08:05:22.000Z
2019-09-14T06:12:56.000Z
stdplugins/openweathermap.py
Hopsins/PornHub
eb4eed9e18bdace04a948321186804330e809ddd
[ "Apache-2.0" ]
null
null
null
stdplugins/openweathermap.py
Hopsins/PornHub
eb4eed9e18bdace04a948321186804330e809ddd
[ "Apache-2.0" ]
8
2019-10-06T11:13:43.000Z
2022-01-19T12:29:21.000Z
"""Get weather data using OpenWeatherMap Syntax: .weather <Location> """ import aiohttp import time from datetime import tzinfo, datetime from uniborg.util import admin_cmd @borg.on(admin_cmd("weather (.*)")) async def _(event): if event.fwd_from: return sample_url = "https://api.openweathermap.or...
36.16
106
0.58573
3ba9ada4f3cd6e41578fc0068ad626e53a2dcbb2
10,036
py
Python
egs/librispeech/ASR/transducer_stateless_multi_datasets/asr_datamodule.py
zhu-han/icefall
9f6c748b3098e3e32c704c27c40ec31f2e9d376c
[ "Apache-2.0" ]
null
null
null
egs/librispeech/ASR/transducer_stateless_multi_datasets/asr_datamodule.py
zhu-han/icefall
9f6c748b3098e3e32c704c27c40ec31f2e9d376c
[ "Apache-2.0" ]
null
null
null
egs/librispeech/ASR/transducer_stateless_multi_datasets/asr_datamodule.py
zhu-han/icefall
9f6c748b3098e3e32c704c27c40ec31f2e9d376c
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Piotr Żelasko # 2022 Xiaomi Corp. (authors: Fangjun Kuang) # # See ../../../../LICENSE for clarification regarding multiple authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...
33.013158
86
0.572738
dbf7c64f75d8b6009bf3d78da7d5925f66631c2a
1,067
py
Python
setup.py
jhogan4288/coinmarketcap-history
1f98679cb2a92512df36e2ce8fd97ea491f8e5aa
[ "MIT" ]
106
2017-10-09T00:14:14.000Z
2018-07-02T23:46:51.000Z
setup.py
johnjdailey/coinmarketcap-history
62ba1e21e2ab78abfdf5c1bc4a2a98176a49b801
[ "MIT" ]
15
2017-10-09T10:27:31.000Z
2018-06-15T06:36:18.000Z
setup.py
johnjdailey/coinmarketcap-history
62ba1e21e2ab78abfdf5c1bc4a2a98176a49b801
[ "MIT" ]
34
2017-10-09T10:49:39.000Z
2018-07-03T09:58:52.000Z
import setuptools requires = [ # asyncio was added to the stdlib in Python v3.4 'asyncio; python_version < "3.4"', 'aiohttp', 'aiodns', 'pandas', 'tqdm', 'requests', ] with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="cmc", version="2.0.3....
28.078947
100
0.656045
b00b872dbe31e27063e515dbe07f3fcf5eb1926e
4,375
py
Python
sorting_algs.py
amrmetwaly/python-sorting-algo-visualizer
0bbac7930130b147d7f3ffaa7696ecaf649d4908
[ "MIT" ]
null
null
null
sorting_algs.py
amrmetwaly/python-sorting-algo-visualizer
0bbac7930130b147d7f3ffaa7696ecaf649d4908
[ "MIT" ]
null
null
null
sorting_algs.py
amrmetwaly/python-sorting-algo-visualizer
0bbac7930130b147d7f3ffaa7696ecaf649d4908
[ "MIT" ]
null
null
null
"""Sorting Algorithms in Visualized in Python using Tkinter.""" import random from bubble_sort import bubble_sort from merge_sort import merge_sort from quick_sort import quick_sort from tkinter import * from tkinter import ttk # region Tk initialize root = Tk() root.title('Sorting Algorithms Visualization') root.max...
32.894737
80
0.632686
458982ee091873e4f4b76ce4841c40a12dbab783
1,821
py
Python
src/python/library/tritonclientutils/__init__.py
BobLiu20/client
fb291d78595fe69624f9c220eb6654f98ab4202f
[ "BSD-3-Clause" ]
107
2021-04-20T03:14:18.000Z
2022-03-29T02:53:26.000Z
src/python/library/tritonclientutils/__init__.py
BobLiu20/client
fb291d78595fe69624f9c220eb6654f98ab4202f
[ "BSD-3-Clause" ]
28
2021-05-05T12:05:57.000Z
2022-03-30T21:10:11.000Z
src/python/library/tritonclientutils/__init__.py
BobLiu20/client
fb291d78595fe69624f9c220eb6654f98ab4202f
[ "BSD-3-Clause" ]
90
2021-04-20T14:12:34.000Z
2022-03-30T02:40:14.000Z
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice, this list of conditions a...
49.216216
73
0.778144
5a0a07ea5aa41a8a02651e6ed0e8b36f5da4509c
5,955
py
Python
src/electionguard/ballot_compact.py
hodgesmr/electionguard-python
a29590262260db0e9ee0b080c7ed75d278c1478c
[ "MIT" ]
null
null
null
src/electionguard/ballot_compact.py
hodgesmr/electionguard-python
a29590262260db0e9ee0b080c7ed75d278c1478c
[ "MIT" ]
1
2021-11-01T19:37:32.000Z
2021-11-01T19:37:32.000Z
src/electionguard/ballot_compact.py
hodgesmr/electionguard-python
a29590262260db0e9ee0b080c7ed75d278c1478c
[ "MIT" ]
1
2021-11-01T19:15:31.000Z
2021-11-01T19:15:31.000Z
from dataclasses import dataclass from typing import Dict, List from .ballot import ( CiphertextBallot, SubmittedBallot, ExtendedData, PlaintextBallot, PlaintextBallotContest, PlaintextBallotSelection, create_ballot_hash, ) from .ballot_box import BallotBoxState from .election import Ciphe...
31.342105
87
0.719395
d0115c90a3fba188d29c1c26426c96af499cd451
27,418
py
Python
python/ccxt/rightbtc.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
2
2019-05-30T21:49:40.000Z
2019-05-31T13:12:23.000Z
python/ccxt/rightbtc.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
1
2021-01-27T12:10:31.000Z
2021-01-27T12:11:16.000Z
python/ccxt/rightbtc.py
diwenshi61/ccxt
ebdda10e7c4ed8841d572f3bfe198b5f0e949cf6
[ "MIT" ]
1
2021-02-03T10:27:04.000Z
2021-02-03T10:27:04.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.base.exchange import Exchange import math from ccxt.base.errors import ExchangeError from ccxt.base.errors import AuthenticationE...
38.616901
240
0.453133
e4b83d7755a0c99bb92f8f731cea569cf906c117
374
py
Python
__init__.py
OmsinKrissada/spaceac_tools
770464d958d3f0163a51f64f9dd8646beff3b2c4
[ "MIT" ]
2
2021-09-28T08:13:18.000Z
2022-03-19T03:17:00.000Z
__init__.py
Retaehc-pop/SpaceAc_tools
5fbc7699797ac579b9e1794b747d5f2f2d31102c
[ "MIT" ]
null
null
null
__init__.py
Retaehc-pop/SpaceAc_tools
5fbc7699797ac579b9e1794b747d5f2f2d31102c
[ "MIT" ]
1
2021-12-21T14:39:59.000Z
2021-12-21T14:39:59.000Z
''' Space AC Ground Control Station ~~~~~~~~~~~~~~~~~~~ A basic ground control station need for the Space AC. :copyright: (c) 2021-present Retaehc_pop :license: MIT, see LICENSE for more details. ''' from ._global import * __title__ = 'Spaceac tools' __author__ = 'Retaehc_pop' __license__ = 'MIT' __copyright__ = 'Cop...
24.933333
53
0.713904
d60d936c01c55d39a21c2e04c0da428de5f78440
1,276
py
Python
tests/test_format.py
dfm/black_nbconvert
2ffdbb3c05e0a97b2610407875200069fbf6d96b
[ "MIT" ]
46
2019-10-02T05:34:50.000Z
2022-03-29T12:39:50.000Z
tests/test_format.py
dfm/black_nbconvert
2ffdbb3c05e0a97b2610407875200069fbf6d96b
[ "MIT" ]
6
2020-08-19T11:48:04.000Z
2021-09-02T17:02:12.000Z
tests/test_format.py
dfm/black_nbconvert
2ffdbb3c05e0a97b2610407875200069fbf6d96b
[ "MIT" ]
3
2019-10-03T06:45:16.000Z
2021-07-20T12:26:57.000Z
# -*- coding: utf-8 -*- import json import shutil import subprocess as sp from pathlib import Path def get_temp_path(subdir=""): root = Path(__file__).parent / "data" source = root / subdir / "input.ipynb" expected = root / subdir / "expected.ipynb" target = root / subdir / ".temp.ipynb" shutil.c...
26.583333
77
0.659875
dba3b886a13d53d94ec998bf499955b8aa86c011
1,109
py
Python
pipelines/error_rate_pipeline_extract.py
MatMoore/app-performance-summary
e94c63c26dec5da39b8458b1e46bcc4f922ab7dc
[ "MIT" ]
null
null
null
pipelines/error_rate_pipeline_extract.py
MatMoore/app-performance-summary
e94c63c26dec5da39b8458b1e46bcc4f922ab7dc
[ "MIT" ]
10
2018-03-05T17:56:11.000Z
2018-03-13T16:50:51.000Z
pipelines/error_rate_pipeline_extract.py
MatMoore/app-performance-summary
e94c63c26dec5da39b8458b1e46bcc4f922ab7dc
[ "MIT" ]
1
2021-04-10T19:50:33.000Z
2021-04-10T19:50:33.000Z
''' Extract step for application error rates pipeline ''' import luigi from pipeline_steps.production_error_rates_source import ProductionErrorRatesSource from base import BaseTask class ErrorRatePipelineExtract(BaseTask): application = luigi.Parameter( default='whitehall-admin', always_in_help=Tru...
29.184211
83
0.70514
7dd947accfb12a9415e72e6935af96eb463db65d
2,060
py
Python
ops-implementations/sagemaker-service/swagger_server/models/capabilities.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
1
2021-09-14T18:40:33.000Z
2021-09-14T18:40:33.000Z
ops-implementations/sagemaker-service/swagger_server/models/capabilities.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
7
2021-04-23T13:41:39.000Z
2021-08-12T09:33:10.000Z
ops-implementations/wml-service/swagger_server/models/capabilities.py
IBM/open-prediction-service-hub
8b7db98f46a81b731d0dddfde8e3fb6f91ebc71a
[ "Apache-2.0" ]
5
2020-12-10T14:27:23.000Z
2022-03-29T08:44:22.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server.models.capability import Capability # noqa: F401,E501 from swagger_server import util class C...
30.294118
98
0.652913
b3c21dde051780a1260d1b1d0cce822ef9c55486
12,741
py
Python
server/apps/property/tests/test_property_api.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/property/tests/test_property_api.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
server/apps/property/tests/test_property_api.py
iotile/iotile_cloud
9dc65ac86d3a730bba42108ed7d9bbb963d22ba6
[ "MIT" ]
null
null
null
import json from django.contrib.auth import get_user_model from rest_framework import status from rest_framework.reverse import reverse from rest_framework.test import APITestCase from apps.datablock.models import DataBlock from apps.physicaldevice.models import Device from apps.utils.test_util import TestMixin fro...
42.755034
120
0.589828
7ac782658dbc74f58b12e77efdac8388df5f467b
104
py
Python
solvers/__init__.py
GoRoadster/syslineq
329a2ffe6222fb4f90a558a423613c495bba877a
[ "MIT" ]
4
2020-03-09T11:57:39.000Z
2021-03-28T09:16:19.000Z
solvers/__init__.py
GoRoadster/syslineq
329a2ffe6222fb4f90a558a423613c495bba877a
[ "MIT" ]
null
null
null
solvers/__init__.py
GoRoadster/syslineq
329a2ffe6222fb4f90a558a423613c495bba877a
[ "MIT" ]
null
null
null
from solvers.methods.gauss import gaussian_elimination from solvers.methods.cholesky import cholesky_LU
34.666667
54
0.884615
4e98089814dd4c3e57cbad9d5d3e54773edd37b9
2,088
py
Python
bayehem/rsem/detonate-1.11/ref-eval/test_against_paper/compare_results.py
fmaguire/BayeHem
f4594926e672a7af596716cb40464ccc06567c15
[ "Apache-2.0" ]
null
null
null
bayehem/rsem/detonate-1.11/ref-eval/test_against_paper/compare_results.py
fmaguire/BayeHem
f4594926e672a7af596716cb40464ccc06567c15
[ "Apache-2.0" ]
null
null
null
bayehem/rsem/detonate-1.11/ref-eval/test_against_paper/compare_results.py
fmaguire/BayeHem
f4594926e672a7af596716cb40464ccc06567c15
[ "Apache-2.0" ]
null
null
null
import sys, os, argparse, csv, assemblies_meta from collections import namedtuple p = argparse.ArgumentParser() p.add_argument("--workdir", required=True) args = p.parse_args() # Read old results. They are stored as a map from (reads_id, # assembly_id) to a record. script_dir = os.path.dirname(os.path.abspath(__file_...
38.666667
114
0.648946
a3c01d542b37535b2cde07154c57380a5a58423e
3,513
py
Python
pytest_lint.py
rygwdn/pytest-lint
6e5385531af1a60043d77a6de441ff112084c1dc
[ "MIT" ]
null
null
null
pytest_lint.py
rygwdn/pytest-lint
6e5385531af1a60043d77a6de441ff112084c1dc
[ "MIT" ]
null
null
null
pytest_lint.py
rygwdn/pytest-lint
6e5385531af1a60043d77a6de441ff112084c1dc
[ "MIT" ]
null
null
null
from pylint import lint from pylint.interfaces import IReporter from pylint.reporters import BaseReporter import _ast import re import py import pytest import sys HISTKEY = "lint/mtimes" def pytest_addoption(parser): group = parser.getgroup("general") group.addoption( '--lint', action='store_true',...
27.023077
74
0.62653
7378b0239c0decae2020b1b149ddb0474089ce28
188
py
Python
JetMETAnalysis/METSkims/python/metLow_Sequences_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
JetMETAnalysis/METSkims/python/metLow_Sequences_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
JetMETAnalysis/METSkims/python/metLow_Sequences_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms from JetMETAnalysis.METSkims.metLow_HLTPaths_cfi import * metLowSkimHLTFilter = cms.Sequence(metPre1HLTFilter+metPre2HLTFilter+metPre3HLTFilter)
31.333333
86
0.87234
404b194c24efd36f27041ad9265c171ddd44b55b
3,223
py
Python
graphql_project/users/tests/test_views.py
gp-shubham/django-graphql-boilerplate
0d19aa1bd0bac23d993d91942685f75d8bf0a238
[ "MIT" ]
null
null
null
graphql_project/users/tests/test_views.py
gp-shubham/django-graphql-boilerplate
0d19aa1bd0bac23d993d91942685f75d8bf0a238
[ "MIT" ]
null
null
null
graphql_project/users/tests/test_views.py
gp-shubham/django-graphql-boilerplate
0d19aa1bd0bac23d993d91942685f75d8bf0a238
[ "MIT" ]
1
2021-07-03T05:36:11.000Z
2021-07-03T05:36:11.000Z
import pytest from django.conf import settings from django.contrib import messages from django.contrib.auth.models import AnonymousUser from django.contrib.messages.middleware import MessageMiddleware from django.contrib.sessions.middleware import SessionMiddleware from django.http import HttpRequest from django.test i...
31.598039
75
0.694384
384256e58cf03f0b1d6bb433a0382bf22c558045
1,343
py
Python
src/backend/aspen/workflows/ingest_gisaid/save.py
chanzuckerberg/czgenepi
87bd2b1739acdfe2c7c25663fafb01dc24c5e2fd
[ "MIT" ]
5
2021-02-04T20:18:46.000Z
2021-09-09T13:42:42.000Z
src/backend/aspen/workflows/ingest_gisaid/save.py
chanzuckerberg/aspen
9853778a7ef68b0446751657af5a835f98dde3dc
[ "MIT" ]
422
2021-01-30T04:16:00.000Z
2022-01-31T23:18:44.000Z
src/backend/aspen/workflows/ingest_gisaid/save.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
1
2021-05-20T14:54:39.000Z
2021-05-20T14:54:39.000Z
import datetime import click from aspen.config.config import Config from aspen.database.connection import ( get_db_uri, init_db, session_scope, SqlAlchemyInterface, ) from aspen.database.models import RawGisaidDump @click.command("save") @click.option("--aspen-workflow-rev", type=str, required=True)...
25.339623
69
0.693969
6328ec6f4ec388e6414057f5452ecceef429cfaa
1,647
py
Python
final/backend/chat/models.py
w5151381guy/chatroom-exercise
389ac30b1678be0843b487147dcb9e3fbbb5dd1a
[ "MIT" ]
null
null
null
final/backend/chat/models.py
w5151381guy/chatroom-exercise
389ac30b1678be0843b487147dcb9e3fbbb5dd1a
[ "MIT" ]
7
2020-06-05T18:16:04.000Z
2022-02-12T13:31:54.000Z
final/backend/chat/models.py
w5151381guy/chatroom-exercise
389ac30b1678be0843b487147dcb9e3fbbb5dd1a
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from django.utils import timezone from datetime import datetime class Room(models.Model): # name = models.TextField() # name = models.CharField(max_length=100, default="房間名稱") # gameId = models.CharField(max_length=100, default="...
36.6
102
0.673345
4f23da1cddd9f5be404bbc2c59639b42d552d986
12,267
py
Python
multiprocessing_distributed.py
liangzhendong123/pytorch-distributed
e45f4e08bb25283e68c20817091c700652e2a90c
[ "MIT" ]
2
2020-07-15T15:12:46.000Z
2020-08-03T12:08:00.000Z
multiprocessing_distributed.py
liangzhendong123/pytorch-distributed
e45f4e08bb25283e68c20817091c700652e2a90c
[ "MIT" ]
null
null
null
multiprocessing_distributed.py
liangzhendong123/pytorch-distributed
e45f4e08bb25283e68c20817091c700652e2a90c
[ "MIT" ]
null
null
null
# https://github.com/pytorch/examples/blob/master/imagenet/main.py import csv import argparse import os import random import shutil import time import warnings import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.distributed as dist import torch.optim import t...
35.453757
119
0.58368
729546dc378b1526b34ad6e507e3b8ac5f101c2e
257,271
py
Python
instances/passenger_demand/pas-20210422-1717-int8e-1/77.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int8e-1/77.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
instances/passenger_demand/pas-20210422-1717-int8e-1/77.py
LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure
bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11
[ "BSD-3-Clause" ]
null
null
null
""" PASSENGERS """ numPassengers = 15360 passenger_arriving = ( (2, 5, 3, 2, 3, 0, 1, 0, 4, 1, 0, 0, 0, 4, 5, 3, 3, 4, 0, 0, 1, 4, 2, 0, 0, 0), # 0 (3, 4, 3, 4, 3, 1, 3, 2, 2, 0, 1, 0, 0, 6, 4, 0, 4, 10, 4, 5, 1, 4, 0, 0, 1, 0), # 1 (6, 3, 0, 3, 1, 5, 5, 3, 3, 1, 0, 1, 0, 6, 6, 1, 5, 5, 0, 0, 0, 1, 0, 1, 0, 0),...
275.15615
493
0.768633
6687bf4f31b1b54a213fab289ae60ab1729749de
11,833
py
Python
neurokit/signal/events.py
DerickMatheus/ECG-interpretation
70904b7de3d7f0756eedd11253ea49b23c319727
[ "MIT" ]
1
2020-06-23T18:19:20.000Z
2020-06-23T18:19:20.000Z
neurokit/signal/events.py
DerickMatheus/ECG-interpretation
70904b7de3d7f0756eedd11253ea49b23c319727
[ "MIT" ]
null
null
null
neurokit/signal/events.py
DerickMatheus/ECG-interpretation
70904b7de3d7f0756eedd11253ea49b23c319727
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd import numpy as np import matplotlib.pyplot as plt from itertools import groupby # ============================================================================== # ============================================================================== # ==========================...
39.976351
287
0.481957
eef3be52f2c738dde692cdcb4f1908f26d5dc046
2,653
py
Python
tests/test_ssd1327.py
Gadgetoid/luma.oled
e1388e9562338833ebc6ced571b97b08885e3bef
[ "MIT" ]
4
2018-08-01T12:28:54.000Z
2021-01-28T02:49:35.000Z
tests/test_ssd1327.py
pimoroni/luma.oled
c6bcfcea1528577298f3194e40f2b6633966b30e
[ "MIT" ]
null
null
null
tests/test_ssd1327.py
pimoroni/luma.oled
c6bcfcea1528577298f3194e40f2b6633966b30e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014-18 Richard Hull and contributors # See LICENSE.rst for details. from luma.oled.device import ssd1327 from luma.core.render import canvas from baseline_data import get_json_data, primitives from helpers import call, serial, setup_function, assert_inval...
28.223404
89
0.673954
34af748e18df398d1daac1f76aa8fef53cc6fc7a
1,283
py
Python
webshotapi/setup.py
webshotapi/website-screenshot-python-client
f2a958b360e4e3f5954f01d40eda62835e8e49ae
[ "MIT" ]
null
null
null
webshotapi/setup.py
webshotapi/website-screenshot-python-client
f2a958b360e4e3f5954f01d40eda62835e8e49ae
[ "MIT" ]
null
null
null
webshotapi/setup.py
webshotapi/website-screenshot-python-client
f2a958b360e4e3f5954f01d40eda62835e8e49ae
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md','r') as r: long_description = r.read() setup( name='webshotapi', version='1.0.3', packages=find_packages(), author="WebShotApi.com", author_email="contact@webshotapi.com", description="Api client for WebShotApi.com. \ ...
34.675676
95
0.651598
ae7d24578f3301267d04d0da0ad719d527ca9bcc
1,214
py
Python
setup.py
kirbybrianj/grading
4fe36f015e8ad269fc8e4ec21fd50cec26406763
[ "MIT" ]
null
null
null
setup.py
kirbybrianj/grading
4fe36f015e8ad269fc8e4ec21fd50cec26406763
[ "MIT" ]
null
null
null
setup.py
kirbybrianj/grading
4fe36f015e8ad269fc8e4ec21fd50cec26406763
[ "MIT" ]
null
null
null
import setuptools import os import re with open("README.md", "r") as fh: long_description = fh.read() with open(os.path.join("cornellGrading", "__init__.py"), "r") as f: version_file = f.read() version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M) if version_match: version...
31.128205
94
0.669687
f5eee53fe903ac3cf648c01ddd0bcfc521a36650
7,456
py
Python
helper/hr_helper.py
monakhova/starlight_denoising
98137b1f1de990a18843dbfbecd076d192a02cef
[ "BSD-3-Clause" ]
1
2022-03-10T04:31:14.000Z
2022-03-10T04:31:14.000Z
helper/hr_helper.py
monakhova/starlight_denoising
98137b1f1de990a18843dbfbecd076d192a02cef
[ "BSD-3-Clause" ]
null
null
null
helper/hr_helper.py
monakhova/starlight_denoising
98137b1f1de990a18843dbfbecd076d192a02cef
[ "BSD-3-Clause" ]
null
null
null
def load_3d_hrnet(num_channels=4): from models.seg_hrnet3d import HighResolutionNet from yacs.config import CfgNode as CN _C= CN() _C.MODEL = CN() _C.MODEL.NAME = 'seg_hrnet' _C.MODEL.PRETRAINED = '' _C.MODEL.ALIGN_CORNERS = True _C.MODEL.NUM_INPUT_CHANNELS = num_channels _C.M...
33.285714
58
0.685622
eab218fa3db4d982f908cf31a1bbd99c7f5572ea
2,095
py
Python
aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/SetVsStreamsNotifyUrlConfigRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2021-03-08T02:59:17.000Z
2021-03-08T02:59:17.000Z
aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/SetVsStreamsNotifyUrlConfigRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
1
2020-05-31T14:51:47.000Z
2020-05-31T14:51:47.000Z
aliyun-python-sdk-vs/aliyunsdkvs/request/v20181212/SetVsStreamsNotifyUrlConfigRequest.py
jia-jerry/aliyun-openapi-python-sdk
e90f3683a250cfec5b681b5f1d73a68f0dc9970d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
33.790323
84
0.760382
b2f1f29e4cf3a402054d14932a0f5155d5f156a1
1,112
py
Python
test/test_http_www_form_url_encoded_parameter.py
Cloudmersive/Cloudmersive.APIClient.Python.Configuration
01ab35d057254295cbd358e5549031fd1ba3c984
[ "Apache-2.0" ]
null
null
null
test/test_http_www_form_url_encoded_parameter.py
Cloudmersive/Cloudmersive.APIClient.Python.Configuration
01ab35d057254295cbd358e5549031fd1ba3c984
[ "Apache-2.0" ]
null
null
null
test/test_http_www_form_url_encoded_parameter.py
Cloudmersive/Cloudmersive.APIClient.Python.Configuration
01ab35d057254295cbd358e5549031fd1ba3c984
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ configapi Config API lets you easily manage configuration at scale. # noqa: E501 OpenAPI spec version: v1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import cloudmersive_configuration_api_cli...
27.121951
145
0.765288
08983337fccc138d40eb959cecc5bf9e47cf6cac
12,705
py
Python
tensorflow/contrib/session_bundle/exporter.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
71
2017-05-25T16:02:15.000Z
2021-06-09T16:08:08.000Z
tensorflow/contrib/session_bundle/exporter.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
133
2017-04-26T16:49:49.000Z
2019-10-15T11:39:26.000Z
tensorflow/contrib/session_bundle/exporter.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
31
2018-09-11T02:17:17.000Z
2021-12-15T10:33:35.000Z
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
38.153153
80
0.710901
71e87cb9bbd313d096963ff8131a650ad5df57c6
3,781
py
Python
main.py
oldhanddev/python-generate-Bread-prereveal
1509bc1bea778a65e3c72321a8f11916f1679836
[ "MIT" ]
1
2021-12-01T16:22:16.000Z
2021-12-01T16:22:16.000Z
main.py
oldhanddev/python-generate-Bread-prereveal
1509bc1bea778a65e3c72321a8f11916f1679836
[ "MIT" ]
null
null
null
main.py
oldhanddev/python-generate-Bread-prereveal
1509bc1bea778a65e3c72321a8f11916f1679836
[ "MIT" ]
null
null
null
from PIL import Image from IPython.display import display import random import json # Each image is made up a series of traits # The weightings for each trait drive the rarity and add up to 100% back = [ "pre_reveal_ticket", "pre_revealticket2" ] back_weights = [45, 55] none = [ "none" ] none_weights...
22.777108
97
0.638455
9e9f7e3be0d10e6e67c2f04f433a25392ecf8c09
1,180
py
Python
docs/source/sphinxext/updatedocs.py
grotheer/pyAFQ
3a531b5bdc3d53f4a76d5d604a26fde488e1aaf6
[ "BSD-2-Clause" ]
28
2016-09-10T01:25:41.000Z
2022-03-22T21:05:11.000Z
docs/source/sphinxext/updatedocs.py
grotheer/pyAFQ
3a531b5bdc3d53f4a76d5d604a26fde488e1aaf6
[ "BSD-2-Clause" ]
688
2016-02-03T19:56:37.000Z
2022-03-16T21:21:18.000Z
docs/source/sphinxext/updatedocs.py
grotheer/pyAFQ
3a531b5bdc3d53f4a76d5d604a26fde488e1aaf6
[ "BSD-2-Clause" ]
21
2016-02-03T18:47:22.000Z
2022-01-27T15:38:05.000Z
# This updates usage/config.rst to the latest cli # Developers can run this after modifying any arguments the user can see from AFQ.utils.bin import func_dict_to_arg_dict, dict_to_toml prologue = """ The pyAFQ configuration file ---------------------------- This file should be a `toml <https://github.com/toml-lang/t...
28.780488
77
0.712712
4990528758964ac791a72e2c4ae68efe7c0564f3
1,939
py
Python
data_preprocessing.py
maimemo/SSP-MMC
b5c7ba583d10c9f26b9bd5bc6cb3c9c887ca8e6f
[ "MIT" ]
2
2022-03-18T14:23:39.000Z
2022-03-19T23:47:21.000Z
data_preprocessing.py
maimemo/SSP-MMC
b5c7ba583d10c9f26b9bd5bc6cb3c9c887ca8e6f
[ "MIT" ]
null
null
null
data_preprocessing.py
maimemo/SSP-MMC
b5c7ba583d10c9f26b9bd5bc6cb3c9c887ca8e6f
[ "MIT" ]
1
2022-02-16T03:57:54.000Z
2022-02-16T03:57:54.000Z
import pandas as pd import numpy as np from tqdm import tqdm def halflife_forgetting_curve(x, h): return np.power(2, - x / h) def cal_halflife(group): if group['i'].values[0] > 1: r_ivl_cnt = sum(group['delta_t'] * group['p_recall'].map(np.log) * group['total_cnt']) ivl_ivl_cnt = sum(group['...
42.152174
102
0.614234
c679b1d30df71050fbf68fba580ff53aab055749
204
py
Python
nbexchange/handlers/pages.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
7
2020-04-30T20:16:18.000Z
2021-09-11T20:31:51.000Z
nbexchange/handlers/pages.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
86
2020-03-06T15:34:55.000Z
2022-03-07T11:58:06.000Z
nbexchange/handlers/pages.py
jgwerner/nbexchange
510aa8fdff04b0873cec5dd75d3dfb0eac820c1b
[ "BSD-3-Clause" ]
1
2020-07-25T23:04:51.000Z
2020-07-25T23:04:51.000Z
from nbexchange import __version__ from nbexchange.handlers.base import BaseHandler class HomeHandler(BaseHandler): urls = ["/"] def get(self): self.finish(f"NbExchange {__version__}")
20.4
48
0.720588
2889fe13f01975aef2a6bfebd9ac99f34c20dd1d
946
py
Python
Magic_8ball.py
Xenoframes008/magic-8-ball
4fa528f9cece0a06a631c9bf180cc78b4beb2005
[ "Apache-2.0" ]
null
null
null
Magic_8ball.py
Xenoframes008/magic-8-ball
4fa528f9cece0a06a631c9bf180cc78b4beb2005
[ "Apache-2.0" ]
null
null
null
Magic_8ball.py
Xenoframes008/magic-8-ball
4fa528f9cece0a06a631c9bf180cc78b4beb2005
[ "Apache-2.0" ]
null
null
null
import random random_number = random.randint(1,12) #print(random_number) name = "Rahul" question = "" answer = "" if question == "": print("Please ask a question") elif name == "": print("Question :" +question) else: print(name + " asks : " + question) print("Magic 8-Ball's answer: "+ answer) if random_number==1...
21.5
41
0.67759
111d74ccc60252a14f9220d0f5772dc15f93d779
226
py
Python
venv/Scripts/ex029.py
SamuelNunesDev/starting_point_in_python
9a9e39cabb5f3526ee0037012e3943898c1d9dfa
[ "MIT" ]
null
null
null
venv/Scripts/ex029.py
SamuelNunesDev/starting_point_in_python
9a9e39cabb5f3526ee0037012e3943898c1d9dfa
[ "MIT" ]
null
null
null
venv/Scripts/ex029.py
SamuelNunesDev/starting_point_in_python
9a9e39cabb5f3526ee0037012e3943898c1d9dfa
[ "MIT" ]
null
null
null
v = int(input('Qual a velocidade atual do veículo? ')) if v > 80: print(f'VELOCIDADE MÁXIMA EXCEDIDA! Multa de R${(v - 80) * 7:.2f} aplicada!') else: print(f'Velocidade atual: {v}kmh. Dirija com cuidado! Boa viagem!')
37.666667
81
0.659292
8eb2de0f900c9e4820e043711c0b03033b312fdc
4,812
py
Python
optuna_core/samplers/_search_space.py
hvy/optuna-core
be9df49424aa4022cfcec7d9423768cc39c73ae6
[ "MIT" ]
1
2020-10-09T02:35:25.000Z
2020-10-09T02:35:25.000Z
optuna_core/samplers/_search_space.py
hvy/optuna-core
be9df49424aa4022cfcec7d9423768cc39c73ae6
[ "MIT" ]
null
null
null
optuna_core/samplers/_search_space.py
hvy/optuna-core
be9df49424aa4022cfcec7d9423768cc39c73ae6
[ "MIT" ]
null
null
null
from collections import OrderedDict import copy from typing import Dict from typing import Optional import optuna_core from optuna_core.distributions import BaseDistribution class IntersectionSearchSpace(object): """A class to calculate the intersection search space of a :class:`~optuna.study.Study`. Inters...
40.436975
99
0.664381
b23d24699710729a02e22b9d5db9101d87a2f831
1,060
py
Python
day09_01.py
yunjung-lee/class_python_data
67ceab73e67ec63d408894a6ab016a8d25a4e30b
[ "MIT" ]
null
null
null
day09_01.py
yunjung-lee/class_python_data
67ceab73e67ec63d408894a6ab016a8d25a4e30b
[ "MIT" ]
null
null
null
day09_01.py
yunjung-lee/class_python_data
67ceab73e67ec63d408894a6ab016a8d25a4e30b
[ "MIT" ]
null
null
null
#SQLite접속하기 import sqlite3 con = sqlite3.connect('c:/temp/userDB') #데이터베이스 지정(또는 연결) #sqlite3 는 본인 폴더에 있는 것을 접속하기 때문에 주소, 이름, 비번이 필요 없다. cur = con.cursor() #연결 통로 생성(쿼리문을 날릴 통로=cursor) #테이블 만들기 (실무에서는 데이터베이스를 만들 일이 거의 없다.-없다고 보면 된다.) #만들기는 두번 할 수 없다(중복이 되기 때문에) ==> 오류 : 예외처리가 필요한 이...
7.51773
83
0.556604
9bbdd84e32827f61f7abbb30e67b12d3e47955c8
1,405
py
Python
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20180510/ListUserCustomLogConfigRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20180510/ListUserCustomLogConfigRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20180510/ListUserCustomLogConfigRequest.py
liumihust/aliyun-openapi-python-sdk
c7b5dd4befae4b9c59181654289f9272531207ef
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
37.972973
75
0.770819
aee2dd15dacb682286977e6ddfa2f0b7f738259d
58
py
Python
src/vis/__init__.py
intelligenerator/aquila
c65da891d24c805e46784b7ea4ec1209a472590f
[ "MIT" ]
2
2020-10-01T12:39:35.000Z
2020-10-08T09:05:03.000Z
src/vis/__init__.py
intelligenerator/aquila
c65da891d24c805e46784b7ea4ec1209a472590f
[ "MIT" ]
null
null
null
src/vis/__init__.py
intelligenerator/aquila
c65da891d24c805e46784b7ea4ec1209a472590f
[ "MIT" ]
null
null
null
from .vis import draw_bbox from .utils import add_padding
19.333333
30
0.827586
06ca289b7a0cd174979d69b66a0db161a63f3e9b
16,010
py
Python
internal_functions/valkyrie_utils.py
oeg-upm/AI4EU_raidologist
2d93e3aa265b5cbf169a50de96c4563d474983fb
[ "Apache-2.0" ]
null
null
null
internal_functions/valkyrie_utils.py
oeg-upm/AI4EU_raidologist
2d93e3aa265b5cbf169a50de96c4563d474983fb
[ "Apache-2.0" ]
null
null
null
internal_functions/valkyrie_utils.py
oeg-upm/AI4EU_raidologist
2d93e3aa265b5cbf169a50de96c4563d474983fb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Oct 15 14:40:40 2021 @author: Pablo """ # coding=utf-8 # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2....
38.578313
160
0.576827
28e703c1c79995a6cb523ee5ae0d47c0761ba9d1
4,980
py
Python
DeGrammaticalizer.py
patriziobellan86/DeGrammaticalizer
74bfe85f3432b3656915df52bfcbc2067d50f155
[ "MIT" ]
null
null
null
DeGrammaticalizer.py
patriziobellan86/DeGrammaticalizer
74bfe85f3432b3656915df52bfcbc2067d50f155
[ "MIT" ]
null
null
null
DeGrammaticalizer.py
patriziobellan86/DeGrammaticalizer
74bfe85f3432b3656915df52bfcbc2067d50f155
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ DeGrammaticalizer.py This module allows to insert this project into a pipeline Vesion: 1.0-c stable CODE TESTED ON Python 3.5 and Python 2.7 #============================================================================= Università degli studi di T...
38.015267
80
0.586345
d128f09f6abb2ac40634d87caa1908163a2dc786
3,217
py
Python
detection/configs/focalnet/mask_rcnn_focalnet_small_patch4_mstrain_480-800_adamw_1x_coco_srf.py
microsoft/FocalNet
92913f0482ab79f05f2d31af1dbdf31ab72dd016
[ "MIT" ]
76
2022-03-23T01:30:30.000Z
2022-03-31T06:59:56.000Z
detection/configs/focalnet/mask_rcnn_focalnet_small_patch4_mstrain_480-800_adamw_1x_coco_srf.py
microsoft/FocalNet
92913f0482ab79f05f2d31af1dbdf31ab72dd016
[ "MIT" ]
2
2022-03-23T05:45:26.000Z
2022-03-30T18:49:26.000Z
detection/configs/focalnet/mask_rcnn_focalnet_small_patch4_mstrain_480-800_adamw_1x_coco_srf.py
microsoft/FocalNet
92913f0482ab79f05f2d31af1dbdf31ab72dd016
[ "MIT" ]
4
2022-03-23T00:51:36.000Z
2022-03-30T10:41:14.000Z
_base_ = [ '../_base_/models/mask_rcnn_focalnet_fpn.py', '../_base_/datasets/coco_instance.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict( backbone=dict( type='FocalNet', embed_dim=96, depths=[2, 2, 18, 2], drop_path_rate=0.2, ...
35.744444
101
0.507616
3264ffce27e1f9657c9b1bf2d5e597b07704e334
1,071
py
Python
backup/2/leetcode/python/archive/5.py
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
21
2019-11-16T19:08:35.000Z
2021-11-12T12:26:01.000Z
backup/2/leetcode/python/archive/5.py
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
1
2022-02-04T16:02:53.000Z
2022-02-04T16:02:53.000Z
backup/2/leetcode/python/archive/5.py
yangyanzhan/code-camp
4272564e916fc230a4a488f92ae32c07d355dee0
[ "Apache-2.0" ]
4
2020-05-15T19:39:41.000Z
2021-10-30T06:40:31.000Z
#!/usr/bin/env python __author__ = "yangyanzhan" __email__ = "yangyanzhan@gmail.com" __url__ = "https://github.com/yangyanzhan/code-camp" __blog__ = "https://yanzhan.site" __youtube__ = "https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber" __twitter__ = "https://twitter.com/YangYanzhan" class ...
31.5
91
0.469655
24c6a0b7e4b4a78c33f9cdff2cd5643835da1aa5
788
py
Python
SIF/summarization/return_chunked.py
franciscojavierarceo/DQN-Event-Summarization
6e651dc511affc8883d656a5b9e909f10266f41d
[ "MIT" ]
6
2016-10-30T20:22:28.000Z
2020-11-28T08:59:48.000Z
SIF/summarization/return_chunked.py
franciscojavierarceo/DQN-Event-Summarization
6e651dc511affc8883d656a5b9e909f10266f41d
[ "MIT" ]
null
null
null
SIF/summarization/return_chunked.py
franciscojavierarceo/DQN-Event-Summarization
6e651dc511affc8883d656a5b9e909f10266f41d
[ "MIT" ]
1
2020-03-12T04:57:43.000Z
2020-03-12T04:57:43.000Z
import glob import os import struct from nltk.tokenize import sent_tokenize from tensorflow.core.example import example_pb2 def getsentences(file0): reader = open(file0, 'rb') len_bytes = reader.read(8) str_len = struct.unpack('q', len_bytes)[0] example_str = struct.unpack("%ds" % str_len, reader.read...
30.307692
87
0.729695
da129b68a6ef10a64088cae2bda7a839b3cc5514
10,816
py
Python
tensorflow/contrib/rnn/python/tools/checkpoint_convert.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
384
2017-02-21T18:38:04.000Z
2022-02-22T07:30:25.000Z
tensorflow/contrib/rnn/python/tools/checkpoint_convert.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
15
2017-03-01T20:18:43.000Z
2020-05-07T10:33:51.000Z
tensorflow/contrib/rnn/python/tools/checkpoint_convert.py
DEVESHTARASIA/tensorflow
d3edb8c60ed4fd831d62833ed22f5c23486c561c
[ "Apache-2.0" ]
81
2017-02-21T19:31:19.000Z
2022-02-22T07:30:24.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
41.282443
80
0.710521
9289f59d7040610dc90b343aa3c3f462865b334a
1,423
py
Python
projects/cookie/hupun_cookie_pool_cron.py
kingking888/crawler-pyspider
29ba13905c73081097df9ef646a5c8194eb024be
[ "Apache-2.0" ]
1
2021-12-07T15:48:51.000Z
2021-12-07T15:48:51.000Z
projects/cookie/hupun_cookie_pool_cron.py
GongSong/crawler-pyspider
b6dcec4afa4e1cd393f94627290a21ed95238676
[ "Apache-2.0" ]
null
null
null
projects/cookie/hupun_cookie_pool_cron.py
GongSong/crawler-pyspider
b6dcec4afa4e1cd393f94627290a21ed95238676
[ "Apache-2.0" ]
1
2021-11-10T07:12:02.000Z
2021-11-10T07:12:02.000Z
from cookie.config import HUPUN_COOKIE_POOL_KEY from cookie.model.data import Data as CookieData from cookie.platform.taobao.TmallLogin import TmallLogin from cookie.platform.taobao.tmall_product_price import TmallProductPrice from pyspider.core.model.storage import default_storage_redis import hashlib import fire cl...
38.459459
92
0.669712
6cfd4f0847c70a5025c0db55847f81f7bfea6d34
4,995
py
Python
magi/machine.py
bcho/magi
ec5c936ad48c1db1fef042768da728b229b28210
[ "MIT" ]
1
2019-08-24T20:36:41.000Z
2019-08-24T20:36:41.000Z
magi/machine.py
bcho/magi
ec5c936ad48c1db1fef042768da728b229b28210
[ "MIT" ]
null
null
null
magi/machine.py
bcho/magi
ec5c936ad48c1db1fef042768da728b229b28210
[ "MIT" ]
null
null
null
# coding: utf-8 ''' magi.machine ~~~~~~~~~~~~ A simple virtual machine implement. ''' from magi import const, utils from magi.instruction import Instruction class MachineRunError(RuntimeError): '''Machine runtime error.''' class MachineHalt(StopIteration): '''Halt machine.''' machine_state_...
25.100503
79
0.563964