hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c3bc2d295b0c7c6a0688ac9664dcc6f7bdb64144
2,632
py
Python
machines/migrations/0008_auto_20180504_0933.py
mkschu/greensManagerDjango
842f6cc0e5bc9fa5f36e5d996960900886d3370a
[ "Apache-2.0" ]
null
null
null
machines/migrations/0008_auto_20180504_0933.py
mkschu/greensManagerDjango
842f6cc0e5bc9fa5f36e5d996960900886d3370a
[ "Apache-2.0" ]
null
null
null
machines/migrations/0008_auto_20180504_0933.py
mkschu/greensManagerDjango
842f6cc0e5bc9fa5f36e5d996960900886d3370a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.12 on 2018-05-04 14:33 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('machines', '0007_auto_20180504_0930'), ] operatio...
42.451613
150
0.629179
d592564fe27117560ef20952eca27febb6dcfce6
2,216
py
Python
app/api/endpoints/urls.py
Junkkk/short_url
0cbbba27edfd29e017dcd8fa05dacd32268a27f9
[ "Unlicense" ]
null
null
null
app/api/endpoints/urls.py
Junkkk/short_url
0cbbba27edfd29e017dcd8fa05dacd32268a27f9
[ "Unlicense" ]
null
null
null
app/api/endpoints/urls.py
Junkkk/short_url
0cbbba27edfd29e017dcd8fa05dacd32268a27f9
[ "Unlicense" ]
null
null
null
import validators import short_url from fastapi.responses import RedirectResponse from fastapi import APIRouter, Depends, HTTPException from app.models.url import schema, service from sqlalchemy.orm import Session from sqlalchemy.exc import IntegrityError from app.api.utils.db import get_db from app.const import * ro...
30.777778
77
0.662455
8961324f06e19227daf13ffa936dd12bf4b4d581
283
py
Python
configs/deeplabv3/deeplabv3_r18-d8_769x769_80k_cityscapes.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
configs/deeplabv3/deeplabv3_r18-d8_769x769_80k_cityscapes.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
configs/deeplabv3/deeplabv3_r18-d8_769x769_80k_cityscapes.py
Xlinford/mmsegmentation
8b444de5e6db2af2538a73a93ac75204f5c3bb2f
[ "Apache-2.0" ]
null
null
null
_base_ = './deeplabv3_r50-d8_769x769_80k_cityscapes.py' model = dict( pretrained='open-mmlab://resnet18_v1c', backbone=dict(depth=18), decode_head=dict( in_channels=512, channels=128, ), auxiliary_head=dict(in_channels=256, channels=64))
28.3
56
0.660777
927be141ec7071bed4eeac56d1e457bc18975047
2,979
py
Python
plura_dl/cache.py
josdan/pluradl.py
611566c3dbeec03f0357b826ceee6e89c0a07ada
[ "MIT" ]
10
2020-08-14T03:17:53.000Z
2021-08-14T13:58:11.000Z
plura_dl/cache.py
josdan/pluradl.py
611566c3dbeec03f0357b826ceee6e89c0a07ada
[ "MIT" ]
null
null
null
plura_dl/cache.py
josdan/pluradl.py
611566c3dbeec03f0357b826ceee6e89c0a07ada
[ "MIT" ]
6
2020-09-15T18:44:45.000Z
2021-04-15T10:59:00.000Z
from __future__ import unicode_literals import errno import io import json import os import re import shutil import traceback from .compat import compat_getenv from .utils import ( expand_path, write_json_file, ) class Cache(object): def __init__(self, ydl): self._pdl = ydl def _get_root_di...
30.71134
105
0.559919
7d6479a6e0a32014da9d9492a733ab7b8504b13c
1,350
py
Python
setup.py
danieldop/spotinst-sdk-python
c7c97811e48359a5b8c146633091cf25235d1ae2
[ "MIT" ]
null
null
null
setup.py
danieldop/spotinst-sdk-python
c7c97811e48359a5b8c146633091cf25235d1ae2
[ "MIT" ]
null
null
null
setup.py
danieldop/spotinst-sdk-python
c7c97811e48359a5b8c146633091cf25235d1ae2
[ "MIT" ]
null
null
null
# Always prefer setuptools over distutils from codecs import open from os import path from setuptools import setup import spotinst_sdk here = path.abspath(path.dirname(__file__)) # Get the long description from the README.md file with open(path.join(here, 'README.md'), encoding='utf-8') as f: long_description =...
27.55102
103
0.684444
8940628fca0cbc19c487c4569d9a89ce7ca7ec75
756
py
Python
deep-rl/lib/python2.7/site-packages/OpenGL/GLES2/EXT/blend_minmax.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
3
2019-04-01T11:03:04.000Z
2019-12-31T02:17:15.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GLES2/EXT/blend_minmax.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
1
2021-02-08T20:34:54.000Z
2021-02-08T20:34:54.000Z
deep-rl/lib/python2.7/site-packages/OpenGL/GLES2/EXT/blend_minmax.py
ShujaKhalid/deep-rl
99c6ba6c3095d1bfdab81bd01395ced96bddd611
[ "MIT" ]
1
2021-09-23T13:43:07.000Z
2021-09-23T13:43:07.000Z
'''OpenGL extension EXT.blend_minmax This module customises the behaviour of the OpenGL.raw.GLES2.EXT.blend_minmax to provide a more Python-friendly API The official definition of this extension is available here: http://www.opengl.org/registry/specs/EXT/blend_minmax.txt ''' from OpenGL import platform, constant, a...
32.869565
71
0.805556
c7684fbef65c37e540d235ad562ed0de15860dcf
14,799
py
Python
texar/torch/modules/pretrained/t5.py
qinzzz/texar-pytorch
d66258a599a291418004170e62864b001b650926
[ "Apache-2.0" ]
746
2019-06-09T12:38:52.000Z
2022-03-23T12:40:55.000Z
texar/torch/modules/pretrained/t5.py
qinzzz/texar-pytorch
d66258a599a291418004170e62864b001b650926
[ "Apache-2.0" ]
247
2019-06-11T18:32:44.000Z
2022-02-17T20:12:04.000Z
texar/torch/modules/pretrained/t5.py
qinzzz/texar-pytorch
d66258a599a291418004170e62864b001b650926
[ "Apache-2.0" ]
143
2019-06-10T19:38:30.000Z
2022-03-13T09:43:10.000Z
# Copyright 2019 The Texar 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 applicable ...
39.047493
92
0.534833
abe29d0c0519e6b957e930b39b418818d3584c2d
1,006
py
Python
django_comments/feeds.py
lilerjee/django-contrib-comments
b54e954914b948379d0ae033184919cc6aad1240
[ "BSD-3-Clause" ]
487
2015-01-02T20:56:31.000Z
2022-03-31T09:02:03.000Z
django_comments/feeds.py
lilerjee/django-contrib-comments
b54e954914b948379d0ae033184919cc6aad1240
[ "BSD-3-Clause" ]
142
2015-02-06T18:21:15.000Z
2022-03-26T14:48:30.000Z
django_comments/feeds.py
lilerjee/django-contrib-comments
b54e954914b948379d0ae033184919cc6aad1240
[ "BSD-3-Clause" ]
203
2015-01-17T19:10:04.000Z
2022-03-30T21:23:12.000Z
from django.contrib.sites.shortcuts import get_current_site from django.contrib.syndication.views import Feed from django.utils.translation import gettext as _ import django_comments class LatestCommentFeed(Feed): """Feed of latest comments on the current site.""" def __call__(self, request, *args, **kwargs...
29.588235
85
0.66004
2522bb98adb936ec772ed7fd2cfe8e65c8f27599
5,935
py
Python
trpo.py
Kaixhin/spinning-up-basic
ac5f2219c3c6c657b460c3150572d8deb3abfba0
[ "MIT" ]
190
2019-01-18T16:20:05.000Z
2022-01-20T05:28:03.000Z
trpo.py
Kaixhin/spinning-up-basic
ac5f2219c3c6c657b460c3150572d8deb3abfba0
[ "MIT" ]
2
2019-01-26T18:16:33.000Z
2019-03-03T23:05:06.000Z
trpo.py
Kaixhin/spinning-up-basic
ac5f2219c3c6c657b460c3150572d8deb3abfba0
[ "MIT" ]
17
2019-01-24T11:17:59.000Z
2021-06-27T10:08:44.000Z
from functools import partial import torch from torch import autograd, optim from torch.distributions import Independent, Normal from torch.distributions.kl import kl_divergence from torch.nn.utils import parameters_to_vector, vector_to_parameters from tqdm import tqdm from env import Env from hyperparams import BACKTR...
54.449541
333
0.703117
430faa042bd635c424b4e26dba01c2872bb27992
567
py
Python
vispy/app/_config.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
vispy/app/_config.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
vispy/app/_config.py
MatthieuDartiailh/vispy
09d429be361a148b0614a192f56d4070c624072c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014, Vispy Development Team. # Distributed under the (new) BSD License. See LICENSE.txt for more info. from copy import deepcopy _default_dict = dict(red_size=8, green_size=8, blue_size=8, alpha_size=8, depth_size=16, stencil_size=0, double_buffer=True, ...
27
73
0.650794
8c7d63a125706d9ad310aeecaf3c952969778e38
251
py
Python
calender/calender/doctype/alaqoal/alaqoal.py
bahaaabed/AumAlqura
9d12d7917225d9e82b4a480c3bc8f7acf8edab77
[ "MIT" ]
null
null
null
calender/calender/doctype/alaqoal/alaqoal.py
bahaaabed/AumAlqura
9d12d7917225d9e82b4a480c3bc8f7acf8edab77
[ "MIT" ]
null
null
null
calender/calender/doctype/alaqoal/alaqoal.py
bahaaabed/AumAlqura
9d12d7917225d9e82b4a480c3bc8f7acf8edab77
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2022, bahaa and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class Alaqoal(Document): pass
22.818182
49
0.768924
87777717a177dd5f53b7efdd9d8775b99172fbee
1,441
py
Python
libs/PiM25_config.py
SCWhite/NextGEN_AirBox
570800aecf23ac7f5e8d1cd4c774a5b85d39ce5b
[ "MIT" ]
null
null
null
libs/PiM25_config.py
SCWhite/NextGEN_AirBox
570800aecf23ac7f5e8d1cd4c774a5b85d39ce5b
[ "MIT" ]
null
null
null
libs/PiM25_config.py
SCWhite/NextGEN_AirBox
570800aecf23ac7f5e8d1cd4c774a5b85d39ce5b
[ "MIT" ]
null
null
null
import re import os import commands G5T_GPIO = 23 GPS_GPIO = 24 DEVICE_IP = commands.getoutput("hostname -I") data_path = "/home/pi/Data/" # Restful_API env_file = open("/home/pi/Local/env.txt").readlines() Restful_URL = env_file[0].split(",")[1].replace("\n", "") # MAC address mac = open('/sys/class/net/eth0/addres...
27.188679
68
0.401804
00c2ca30cb26fe29432100eeb0ea185bdcbdae5b
5,193
py
Python
serverblock/serverblock.py
LeOctavius/Kreusada-Cogs
911308c2605d56a5817a7dcb224330c6d8fa4bb1
[ "MIT" ]
1
2021-12-29T01:10:34.000Z
2021-12-29T01:10:34.000Z
serverblock/serverblock.py
LeOctavius/Kreusada-Cogs
911308c2605d56a5817a7dcb224330c6d8fa4bb1
[ "MIT" ]
1
2021-06-09T19:19:14.000Z
2021-06-09T19:19:14.000Z
serverblock/serverblock.py
LeOctavius/Kreusada-Cogs
911308c2605d56a5817a7dcb224330c6d8fa4bb1
[ "MIT" ]
null
null
null
import asyncio import contextlib import logging import discord from redbot.core import Config, commands from redbot.core.utils.chat_formatting import box from redbot.core.utils.predicates import MessagePredicate log = logging.getLogger("red.kreusada.serverblock") class ServerBlock(commands.Cog): """ Blockli...
37.630435
116
0.590988
76169bcd67b102454424aa8a5985f76b1f8f20e4
947
py
Python
floodsystem/flood.py
k12ish/IA-Flood-Warning
8f2ed0aaf51903a6a30d41456a3c45dfb9de566b
[ "MIT" ]
null
null
null
floodsystem/flood.py
k12ish/IA-Flood-Warning
8f2ed0aaf51903a6a30d41456a3c45dfb9de566b
[ "MIT" ]
null
null
null
floodsystem/flood.py
k12ish/IA-Flood-Warning
8f2ed0aaf51903a6a30d41456a3c45dfb9de566b
[ "MIT" ]
null
null
null
from .utils import sorted_by_key def stations_level_over_threshold(stations, tol): """ return a sorted list of tuples of (station, relative water level) sorted based on water level, descending, and only where water level > tol """ return sorted_by_key( [ (station, station.relat...
29.59375
115
0.6283
d0526a556981dc3ed20aa14de4ae751eaa7918de
1,119
py
Python
adversarial_search/agents/mcts.py
ucu-fit-intart1/adversarial_search
929f50164a74b86e54c3755fee4aea16e64a8bf8
[ "MIT" ]
1
2019-04-30T14:57:30.000Z
2019-04-30T14:57:30.000Z
adversarial_search/agents/mcts.py
ucu-fit-intart1/adversarial_search
929f50164a74b86e54c3755fee4aea16e64a8bf8
[ "MIT" ]
null
null
null
adversarial_search/agents/mcts.py
ucu-fit-intart1/adversarial_search
929f50164a74b86e54c3755fee4aea16e64a8bf8
[ "MIT" ]
6
2018-04-10T21:57:25.000Z
2020-08-15T17:11:10.000Z
from .agent import Agent class MCTSAgent(Agent): """ An agent implementing flat MonteCarlo Tree Search. """ def __init__(self, name="MCTSAgent", simulation_count=3, random=None, heuristic=None): Agent.__init__(self, name) self.simulationCount = simulation_count self.random = self....
38.586207
97
0.640751
f99016a0aa9b44be9b7e70ccd06e8a224485cbed
37,808
py
Python
nova/tests/unit/api/openstack/compute/test_server_groups.py
huaqiangwang/nova
ba3147420c0a6f8b17a46b1a493b89bcd67af6f1
[ "Apache-2.0" ]
1
2016-07-18T22:05:01.000Z
2016-07-18T22:05:01.000Z
nova/tests/unit/api/openstack/compute/test_server_groups.py
huaqiangwang/nova
ba3147420c0a6f8b17a46b1a493b89bcd67af6f1
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/api/openstack/compute/test_server_groups.py
huaqiangwang/nova
ba3147420c0a6f8b17a46b1a493b89bcd67af6f1
[ "Apache-2.0" ]
1
2021-11-12T03:55:41.000Z
2021-11-12T03:55:41.000Z
# Copyright (c) 2014 Cisco Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless r...
43.457471
79
0.600508
4f042972143dddd108c391e36698977053ed0bbf
8,945
py
Python
compss/programming_model/bindings/python/src/pycompss/tests/util/test_jvm_parser.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/tests/util/test_jvm_parser.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
compss/programming_model/bindings/python/src/pycompss/tests/util/test_jvm_parser.py
eflows4hpc/compss
c497f6d34722103c6c8f83ebc314b495573ce054
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2002-2021 Barcelona Supercomputing Center (www.bsc.es) # # 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 ...
53.562874
487
0.723644
cbcd1010b1c54b8bced2d61d6786e6a44a8da3ea
7,501
py
Python
tboneDeepRacerUtils.py
thh0003/DeepRacer
0e639585e8d33a9157c262b7d7cb99e60b0dffc8
[ "Apache-2.0" ]
null
null
null
tboneDeepRacerUtils.py
thh0003/DeepRacer
0e639585e8d33a9157c262b7d7cb99e60b0dffc8
[ "Apache-2.0" ]
null
null
null
tboneDeepRacerUtils.py
thh0003/DeepRacer
0e639585e8d33a9157c262b7d7cb99e60b0dffc8
[ "Apache-2.0" ]
1
2021-02-12T10:06:51.000Z
2021-02-12T10:06:51.000Z
import math def calcDistanceFromCenter(closest_waypoints,location,stepParams, params): waypoints = params["waypoints"] segGH = (location[1]-waypoints[closest_waypoints[0]][1]) if closest_waypoints[0] != -1 else (location[1]-waypoints[0][1]) segOG = (location[0]-waypoints[closest_waypoints[0]][0]) if closes...
40.766304
146
0.67351
2b1f49960ef4490f09e72a2fa06249307f3e62ec
609
py
Python
build/pan_tilt_msg/cmake/pan_tilt_msg-genmsg-context.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/pan_tilt_msg/cmake/pan_tilt_msg-genmsg-context.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
build/pan_tilt_msg/cmake/pan_tilt_msg-genmsg-context.py
FProgrammerLIU/caster_man_ros
a75b503fad3a470f985072a2b3953e89074f3223
[ "MIT" ]
null
null
null
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/caster/ros_ws/caster/src/iqr_pan_tilt/pan_tilt_msg/msg/PanTiltCmd.msg" services_str = "" pkg_name = "pan_tilt_msg" dependencies_str = "std_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_str = "pan_tilt_msg;/home/caster/r...
50.75
153
0.789819
7e56cf76700764f81bf1875cd97ac391aade1743
9,691
py
Python
max_sub_tree/decoder.py
draplater/empty-parser
05eb8c596c4e5ba26b5c954161e52bb1490ee402
[ "Apache-2.0" ]
3
2021-07-07T07:16:09.000Z
2021-07-07T18:04:21.000Z
max_sub_tree/decoder.py
draplater/empty-parser
05eb8c596c4e5ba26b5c954161e52bb1490ee402
[ "Apache-2.0" ]
null
null
null
max_sub_tree/decoder.py
draplater/empty-parser
05eb8c596c4e5ba26b5c954161e52bb1490ee402
[ "Apache-2.0" ]
null
null
null
# This file contains routines from Lisbon Machine Learning summer school. # The code is freely distributed under a MIT license. https://github.com/LxMLS/lxmls-toolkit/ from six.moves import range import itertools import numpy as np min_float = -10000000.0 def eisner2nd(scores, scores2nd2, scores2nd3, gold=None): ...
35.892593
147
0.579197
f77405d6c84fdff733da1be86366704e0bce99db
17,446
py
Python
torch/profiler/profiler.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
1
2021-09-29T13:45:07.000Z
2021-09-29T13:45:07.000Z
torch/profiler/profiler.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
null
null
null
torch/profiler/profiler.py
edward-io/pytorch
04caef8e1d4f951cc380d6cebb9967b71695de13
[ "Intel" ]
null
null
null
import gzip import json import os import tempfile from enum import Enum from typing import Any, Callable, Iterable, Optional from warnings import warn import torch import torch.autograd.profiler as prof from torch.autograd import kineto_available, ProfilerActivity class ProfilerAction(Enum): """ Profiler act...
39.204494
118
0.622836
8e750da3ec21de0ed30a53b13ecee4cd4eb83c11
6,236
py
Python
davarocr/davarocr/davar_rcg/models/transformations/affine_transformation.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
387
2021-01-02T07:50:15.000Z
2022-03-31T04:30:03.000Z
davarocr/davarocr/davar_rcg/models/transformations/affine_transformation.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
70
2021-05-04T18:28:18.000Z
2022-03-31T14:14:52.000Z
davarocr/davarocr/davar_rcg/models/transformations/affine_transformation.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
83
2021-01-05T08:28:26.000Z
2022-03-31T07:14:03.000Z
""" ################################################################################################## # Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved. # Filename : affine_transformation.py # Abstract : Implementations of the affine transformation # C...
35.033708
112
0.560135
621761648351ae9f59f80f1f31be4a6fdd5bfe53
1,550
py
Python
mindspore/ops/vm_impl_registry.py
unseenme/mindspore
4ba052f0cd9146ac0ccc4880a778706f1b2d0af8
[ "Apache-2.0" ]
7
2020-05-24T03:19:26.000Z
2020-05-24T03:20:00.000Z
mindspore/ops/vm_impl_registry.py
liyong126/mindspore
930a1fb0a8fa9432025442c4f4732058bb7af592
[ "Apache-2.0" ]
7
2020-03-30T08:31:56.000Z
2020-04-01T09:54:39.000Z
mindspore/ops/vm_impl_registry.py
liyong126/mindspore
930a1fb0a8fa9432025442c4f4732058bb7af592
[ "Apache-2.0" ]
1
2020-03-30T17:07:43.000Z
2020-03-30T17:07:43.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # 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...
29.807692
100
0.678065
0b3e50be93b2de0e5e2e6201876068227bae5fd6
1,477
py
Python
stack.py
paul3bin/DataStructures
3cb41df8a375e2d647d2f83d637692b2a5ffadc7
[ "MIT" ]
1
2020-08-02T14:22:41.000Z
2020-08-02T14:22:41.000Z
stack.py
paul3bin/DataStructures
3cb41df8a375e2d647d2f83d637692b2a5ffadc7
[ "MIT" ]
null
null
null
stack.py
paul3bin/DataStructures
3cb41df8a375e2d647d2f83d637692b2a5ffadc7
[ "MIT" ]
null
null
null
''' Python code for stack data-structure ''' class Stack: # Initialization function def __init__(self): self.stack = [] # Function to push a value into the stack def Push(self): self.stack.append(input('Enter value: ')) print(f'{self.stack[-1]} pushed to stack') # Functi...
27.351852
80
0.553825
3bd13be490ce6ea68323327c9c0ec5054660d04b
2,791
py
Python
scripts/notify.py
sergiomb2/lpf
4f414697e6977da5fdeff7632ec3ea86ffdfbdfb
[ "MIT" ]
null
null
null
scripts/notify.py
sergiomb2/lpf
4f414697e6977da5fdeff7632ec3ea86ffdfbdfb
[ "MIT" ]
1
2021-04-06T14:14:26.000Z
2021-04-06T14:14:26.000Z
scripts/notify.py
sergiomb2/lpf
4f414697e6977da5fdeff7632ec3ea86ffdfbdfb
[ "MIT" ]
null
null
null
''' Simple notification dialog. ''' import os import os.path import subprocess os.environ['NO_AT_BRIDGE'] = '0' import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk # pylint: disable=no-name-in-module from gi.repository import GObject # pylint: disable=no-name-in-module def here(pat...
28.479592
74
0.6134
c77db59a39412d5056d404fdc63d86402e2fd6c4
697
py
Python
adv/pecorine.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
22
2020-04-04T17:34:16.000Z
2021-09-25T00:22:23.000Z
adv/pecorine.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
92
2020-04-04T15:30:34.000Z
2022-03-24T01:43:11.000Z
adv/pecorine.py
dl-stuff/dl
185cc8a16339c47ed873768ff30804f8d06090a2
[ "Apache-2.0" ]
37
2020-04-16T02:47:07.000Z
2021-03-28T23:18:50.000Z
from core.advbase import * class Pecorine(Adv): def prerun(self): self.gourmand_gauge = 0 self.gourmand_mode = ModeManager(group="gourmand", fs=True, s1=True, duration=20, pause=("s", "dragon")) def a1_update(self, gauge): if not self.gourmand_mode.get(): self.gourmand_gau...
31.681818
112
0.621234
4a6ad59f0bb3332018ad93a8158e32803201ae9a
964
py
Python
tests/integration/test_enabling_access_management/test.py
fuwhu/ClickHouse
f60267a383a8436855f941f74658b3380c9d2c09
[ "Apache-2.0" ]
1
2022-02-15T22:44:14.000Z
2022-02-15T22:44:14.000Z
tests/integration/test_enabling_access_management/test.py
cloudflare/ClickHouse
4581e3a18a722c940255a671055b7788c824a5a4
[ "Apache-2.0" ]
null
null
null
tests/integration/test_enabling_access_management/test.py
cloudflare/ClickHouse
4581e3a18a722c940255a671055b7788c824a5a4
[ "Apache-2.0" ]
null
null
null
import pytest from helpers.cluster import ClickHouseCluster cluster = ClickHouseCluster(__file__) instance = cluster.add_instance('instance', user_configs=["configs/users.d/extra_users.xml"]) @pytest.fixture(scope="module", autouse=True) def started_cluster(): try: cluster.start() yield cluster ...
38.56
120
0.735477
9758c26601a33e7b55bffa2bf22b971191d16caf
130
py
Python
ChromProcess/Writers/chromatogram/__init__.py
thijsdejong10/ChromProcess
aba9c261824d0f29e0a92d7ca7c4a78e03249d62
[ "BSD-3-Clause" ]
null
null
null
ChromProcess/Writers/chromatogram/__init__.py
thijsdejong10/ChromProcess
aba9c261824d0f29e0a92d7ca7c4a78e03249d62
[ "BSD-3-Clause" ]
null
null
null
ChromProcess/Writers/chromatogram/__init__.py
thijsdejong10/ChromProcess
aba9c261824d0f29e0a92d7ca7c4a78e03249d62
[ "BSD-3-Clause" ]
null
null
null
from .chromatogram_to_csv import chromatogram_to_csv from .chromatogram_to_peak_collection import chromatogram_to_peak_collection
43.333333
76
0.923077
3e2c5d051cedfe93ee401424020ee5958e98d7a9
14,027
py
Python
test/core/prior/conditional_test.py
LBJ-Wade/bilby
b1e02f1dfae03d4939cae9c95eff300c22919689
[ "MIT" ]
31
2019-02-28T00:48:23.000Z
2022-03-29T09:41:28.000Z
test/core/prior/conditional_test.py
LBJ-Wade/bilby
b1e02f1dfae03d4939cae9c95eff300c22919689
[ "MIT" ]
8
2018-12-27T09:15:03.000Z
2022-03-28T19:02:10.000Z
test/core/prior/conditional_test.py
LBJ-Wade/bilby
b1e02f1dfae03d4939cae9c95eff300c22919689
[ "MIT" ]
32
2018-11-30T00:58:53.000Z
2022-03-29T09:41:30.000Z
import unittest import mock import numpy as np import bilby class TestConditionalPrior(unittest.TestCase): def setUp(self): self.condition_func_call_counter = 0 def condition_func(reference_parameters, test_variable_1, test_variable_2): self.condition_func_call_counter += 1 ...
37.305851
107
0.629358
ba3cc8accefc92c9939c6955d36859d120583be9
917
py
Python
commands/char-pwr.py
fabianschuiki/potstill
5e867cb6ab5a5b65d9af024e704a90b5f2288f52
[ "Apache-2.0" ]
9
2016-09-06T18:43:53.000Z
2022-02-07T03:13:07.000Z
commands/char-pwr.py
fabianschuiki/potstill
5e867cb6ab5a5b65d9af024e704a90b5f2288f52
[ "Apache-2.0" ]
null
null
null
commands/char-pwr.py
fabianschuiki/potstill
5e867cb6ab5a5b65d9af024e704a90b5f2288f52
[ "Apache-2.0" ]
2
2019-11-23T07:47:31.000Z
2022-03-03T05:26:18.000Z
#!/usr/bin/env python3 # Copyright (c) 2016 Fabian Schuiki # # This script provides the means to prepare, execute, and analyze the results of # a power characterization. import sys, os, argparse from potstill.char.util import CommonArgs from potstill.char.pwr import Input, Run # Parse the command line arguments. par...
32.75
144
0.763359
fb348fc3d4a0145c0673f6bb3b16a1d1c994d3cd
77
py
Python
EulerProject/0xx/00x/006/main.py
mathtimes/math-lab
33b23a0f484174281daeff3ea6c80f56e32188df
[ "MIT" ]
1
2022-03-23T03:29:51.000Z
2022-03-23T03:29:51.000Z
EulerProject/0xx/00x/006/main.py
mathtimes/math-lab
33b23a0f484174281daeff3ea6c80f56e32188df
[ "MIT" ]
null
null
null
EulerProject/0xx/00x/006/main.py
mathtimes/math-lab
33b23a0f484174281daeff3ea6c80f56e32188df
[ "MIT" ]
null
null
null
i1 = i2 = 0 for i in range(1,101): i1 += i i2 += i**2 print(i1**2-i2)
15.4
22
0.480519
21d3f3d962fbad274b35178968a012749a699339
18,091
py
Python
ras/CreateDataset/create_dataset.py
hobbitsyfeet/RemoteAnimalScan
c5384bdbeb03aa350a4ffa35f4c0fe8bb86c233b
[ "MIT" ]
null
null
null
ras/CreateDataset/create_dataset.py
hobbitsyfeet/RemoteAnimalScan
c5384bdbeb03aa350a4ffa35f4c0fe8bb86c233b
[ "MIT" ]
null
null
null
ras/CreateDataset/create_dataset.py
hobbitsyfeet/RemoteAnimalScan
c5384bdbeb03aa350a4ffa35f4c0fe8bb86c233b
[ "MIT" ]
null
null
null
import os import sys import open3d as o3d from PyQt5.QtCore import QSize from PyQt5.QtGui import QIcon, QIntValidator, QPixmap from PyQt5.QtWidgets import (QAbstractItemView, QApplication, QCheckBox, QComboBox, QDockWidget, QDoubleSpinBox, QFileDialog, QGroupBo...
36.47379
269
0.627329
ca81e52da7b4281c5826fc00b651c53cea194612
1,351
py
Python
coderkearns_quicklog/base.py
coderkearns/quicklog
5f8c35e0fd2d50ecccf7cd66d16fc0e9a68bb557
[ "MIT" ]
null
null
null
coderkearns_quicklog/base.py
coderkearns/quicklog
5f8c35e0fd2d50ecccf7cd66d16fc0e9a68bb557
[ "MIT" ]
null
null
null
coderkearns_quicklog/base.py
coderkearns/quicklog
5f8c35e0fd2d50ecccf7cd66d16fc0e9a68bb557
[ "MIT" ]
null
null
null
class BaseLogger(object): LEVELS = { "DEBUG": 0, "INFO": 1, "WARNING": 2, "ERROR": 3, "CRITICAL": 4, "FATAL": 5 } REVERSE_LEVELS = dict((v, k) for k, v in LEVELS.items()) def __init__(self, level=1): if type(level) == str: level = sel...
24.563636
64
0.560326
b9fdec223bc3dacddcfd17e58a4c34929dde4b6c
5,990
py
Python
MNN/python/ultraface_py_mnn.py
Yucao42/Ultra-Light-Fast-Generic-Face-Detector-1MB
3982d9a430bf96186554c0a3c67cb974e021c8a9
[ "MIT" ]
6,602
2019-10-10T10:41:34.000Z
2022-03-31T01:16:18.000Z
MNN/python/ultraface_py_mnn.py
Yucao42/Ultra-Light-Fast-Generic-Face-Detector-1MB
3982d9a430bf96186554c0a3c67cb974e021c8a9
[ "MIT" ]
258
2019-10-12T03:21:57.000Z
2022-03-17T08:54:50.000Z
MNN/python/ultraface_py_mnn.py
Yucao42/Ultra-Light-Fast-Generic-Face-Detector-1MB
3982d9a430bf96186554c0a3c67cb974e021c8a9
[ "MIT" ]
1,529
2019-10-11T01:39:57.000Z
2022-03-31T05:06:45.000Z
#!/usr/bin/env/ python # -*- coding: utf-8 -*- """ @author:linzai @file: ultraface_py_mnn.py @time: 2019-11-25 """ from __future__ import print_function import os import argparse import sys import time from math import ceil import MNN import cv2 import numpy as np import torch sys.path.append('../../') import vi...
39.150327
130
0.633723
7560ac157713cb0b1979af40dada551862fcbd3b
363
py
Python
Python-basic/basic-week1/Shape.py
SmartManMa/python-learning
55cdb7ca58b4b005d5e6c103b2dee82129a925c0
[ "Apache-2.0" ]
null
null
null
Python-basic/basic-week1/Shape.py
SmartManMa/python-learning
55cdb7ca58b4b005d5e6c103b2dee82129a925c0
[ "Apache-2.0" ]
null
null
null
Python-basic/basic-week1/Shape.py
SmartManMa/python-learning
55cdb7ca58b4b005d5e6c103b2dee82129a925c0
[ "Apache-2.0" ]
null
null
null
import turtle import time turtle.pensize(5) turtle.pencolor("yellow") turtle.fillcolor("red") turtle.begin_fill() for _ in range(5): turtle.forward(200) turtle.right(144) turtle.end_fill() time.sleep(2) turtle.penup() turtle.goto(-150,-120) turtle.color("violet") turtle.write("Done", font...
20.166667
51
0.666667
9d11fc2218da5a0a4b694d861d44df1453ed87e3
424
py
Python
setting/migrations/0004_setting_preferred_language.py
ianahart/devtrove
b743881a5a4b470ffb235bb2311b9a71952ad05b
[ "MIT" ]
null
null
null
setting/migrations/0004_setting_preferred_language.py
ianahart/devtrove
b743881a5a4b470ffb235bb2311b9a71952ad05b
[ "MIT" ]
null
null
null
setting/migrations/0004_setting_preferred_language.py
ianahart/devtrove
b743881a5a4b470ffb235bb2311b9a71952ad05b
[ "MIT" ]
null
null
null
# Generated by Django 4.0.3 on 2022-04-27 18:43 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('setting', '0003_alter_setting_theme'), ] operations = [ migrations.AddField( model_name='setting', name='preferred_l...
22.315789
76
0.620283
98f0148de6df35eb523a31e78433ead09e04c032
3,130
py
Python
graphene/types/inputobjecttype.py
tompao/graphene
3f6f4269462ba0f90c62de1140a9e49e0cda2fa5
[ "MIT" ]
7,451
2015-10-07T07:17:19.000Z
2022-03-30T21:56:42.000Z
graphene/types/inputobjecttype.py
tompao/graphene
3f6f4269462ba0f90c62de1140a9e49e0cda2fa5
[ "MIT" ]
1,218
2015-10-08T23:58:37.000Z
2022-03-27T20:47:58.000Z
graphene/types/inputobjecttype.py
tompao/graphene
3f6f4269462ba0f90c62de1140a9e49e0cda2fa5
[ "MIT" ]
985
2015-10-13T03:15:30.000Z
2022-03-29T08:30:54.000Z
from .base import BaseOptions, BaseType from .inputfield import InputField from .unmountedtype import UnmountedType from .utils import yank_fields_from_attrs # For static type checking with Mypy MYPY = False if MYPY: from typing import Dict, Callable # NOQA class InputObjectTypeOptions(BaseOptions): fields ...
34.395604
96
0.676358
c1a394133fb99f221a3b2dee2932a9a1a0b5a97e
47,535
py
Python
sanic/app.py
hz/sanic
643d22bec7912399ef7453c98b3695502e737d05
[ "MIT" ]
null
null
null
sanic/app.py
hz/sanic
643d22bec7912399ef7453c98b3695502e737d05
[ "MIT" ]
null
null
null
sanic/app.py
hz/sanic
643d22bec7912399ef7453c98b3695502e737d05
[ "MIT" ]
null
null
null
import logging import logging.config import os import re import warnings from asyncio import CancelledError, Protocol, ensure_future, get_event_loop from collections import defaultdict, deque from functools import partial from inspect import getmodulename, isawaitable, signature, stack from socket import socket from s...
35.421013
79
0.548312
aec90a2f40c4dc5ee0dcfc7cbdda59d0b6da3a6b
834
py
Python
gaphor/C4Model/modelinglanguage.py
sz332/gaphor
64b5ee40a7be3ceedcf3db1f9a9aeef9801d7bcd
[ "Apache-2.0" ]
42
2015-01-21T09:52:32.000Z
2017-12-29T08:15:28.000Z
gaphor/C4Model/modelinglanguage.py
sz332/gaphor
64b5ee40a7be3ceedcf3db1f9a9aeef9801d7bcd
[ "Apache-2.0" ]
null
null
null
gaphor/C4Model/modelinglanguage.py
sz332/gaphor
64b5ee40a7be3ceedcf3db1f9a9aeef9801d7bcd
[ "Apache-2.0" ]
15
2015-01-02T15:23:03.000Z
2017-12-15T11:43:10.000Z
"""C4 Model Language entrypoint.""" import gaphor.C4Model.grouping # noqa import gaphor.C4Model.iconname # noqa import gaphor.C4Model.propertypages # noqa from gaphor.abc import ModelingLanguage from gaphor.C4Model import c4model, diagramitems from gaphor.C4Model.toolbox import c4model_toolbox_actions from gaphor.c...
30.888889
60
0.748201
76cf0e3c2ca1f5b1dc4297c6ca7b606c51c3eee3
15,190
py
Python
darling_ansible/python_venv/lib/python3.7/site-packages/oci/identity/models/compartment.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/identity/models/compartment.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
null
null
null
darling_ansible/python_venv/lib/python3.7/site-packages/oci/identity/models/compartment.py
revnav/sandbox
f9c8422233d093b76821686b6c249417502cf61d
[ "Apache-2.0" ]
1
2020-06-25T03:12:58.000Z
2020-06-25T03:12:58.000Z
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
35.490654
245
0.656616
9fba7569fdb9dab75f662f82faf141c777d55d0c
3,504
py
Python
pypy/module/_cffi_backend/errorbox.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
1
2021-06-02T23:02:09.000Z
2021-06-02T23:02:09.000Z
pypy/module/_cffi_backend/errorbox.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
1
2021-03-30T18:08:41.000Z
2021-03-30T18:08:41.000Z
pypy/module/_cffi_backend/errorbox.py
pymtl/pypy-pymtl3
d2f66f87686e48aeb1eecabeaa3de1381a149f2c
[ "Apache-2.0", "OpenSSL" ]
null
null
null
# for Windows only import sys from rpython.rlib import jit from rpython.rtyper.lltypesystem import lltype, rffi from rpython.translator.tool.cbuild import ExternalCompilationInfo MESSAGEBOX = sys.platform == "win32" MODULE = r""" #include <Windows.h> #pragma comment(lib, "user32.lib") static void *volatile _cffi_bo...
29.948718
79
0.552797
fb73d8c22c7f7f49f81fcec1828edf09ad13ca65
972
py
Python
parser/fase2/team17/Traduccion/InterpreteF2/DML/show/show.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team17/Traduccion/InterpreteF2/DML/show/show.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team17/Traduccion/InterpreteF2/DML/show/show.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from InterpreteF2.NodoAST import NodoArbol from InterpreteF2.Tabla_de_simbolos import Tabla_de_simbolos from InterpreteF2.Arbol import Arbol from InterpreteF2.Valor.Valor import Valor from InterpreteF2.Primitivos.TIPO import TIPO from InterpreteF2.Primitivos.COMPROBADOR_deTipos import COMPROBADOR_deTipos class Show(N...
32.4
80
0.717078
e37af858a8061c4574e1c1ca71f36ec8771120dc
4,929
py
Python
onsets_and_frames/transcriber.py
brianc118/onsets-and-frames
40ae19f7c44454a7ebb7414761e718fcffa7d400
[ "MIT" ]
null
null
null
onsets_and_frames/transcriber.py
brianc118/onsets-and-frames
40ae19f7c44454a7ebb7414761e718fcffa7d400
[ "MIT" ]
null
null
null
onsets_and_frames/transcriber.py
brianc118/onsets-and-frames
40ae19f7c44454a7ebb7414761e718fcffa7d400
[ "MIT" ]
null
null
null
""" A rough translation of Magenta's Onsets and Frames implementation [1]. missing: - Harmonic decaying weights on frame loss. See https://github.com/tensorflow/magenta/blob/c514486c75e370248186c7e26771d631aeb06d3a/magenta/models/onsets_frames_transcription/model.py#L370 [1] https://github.com/tensorflow/...
37.340909
144
0.618381
484b11e27b3c04141d2a372adc9822ee79839e1d
14,384
py
Python
skl2onnx/common/data_types.py
janjagusch/sklearn-onnx
cac2081b5c20695941631bb0342899b6887c106b
[ "Apache-2.0" ]
null
null
null
skl2onnx/common/data_types.py
janjagusch/sklearn-onnx
cac2081b5c20695941631bb0342899b6887c106b
[ "Apache-2.0" ]
null
null
null
skl2onnx/common/data_types.py
janjagusch/sklearn-onnx
cac2081b5c20695941631bb0342899b6887c106b
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 import numpy as np from onnxconverter_common.data_types import ( # noqa DataType, Int64Type, FloatType, # noqa StringType, TensorType, # noqa Int64TensorType, Int32TensorType, BooleanTensorType, # noqa FloatTensorType, StringTensorType, DoubleTensorType, # noq...
35.60396
92
0.673387
c87a0a5abc8613c5bd9f96a79f634192b74184de
2,093
py
Python
package/spack-py-mpi4py/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
1
2018-07-17T07:45:09.000Z
2018-07-17T07:45:09.000Z
package/spack-py-mpi4py/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
package/spack-py-mpi4py/package.py
ctuning/ck-spack
307934efce1be2d4f104251275c82fbc70127105
[ "BSD-3-Clause" ]
null
null
null
############################################################################## # Copyright (c) 2013-2018, Lawrence Livermore National Security, LLC. # Produced at the Lawrence Livermore National Laboratory. # # This file is part of Spack. # Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved. # LLNL-CODE-64...
44.531915
83
0.676541
b6813ca85a82b78a5835ddcbdca002b84c861144
17,893
py
Python
src/m4_sequences.py
LiChen2000/20-Exam3Practice
eb0b0e7841504fd67e7e8c2c0c4420e5b9ad7432
[ "MIT" ]
null
null
null
src/m4_sequences.py
LiChen2000/20-Exam3Practice
eb0b0e7841504fd67e7e8c2c0c4420e5b9ad7432
[ "MIT" ]
null
null
null
src/m4_sequences.py
LiChen2000/20-Exam3Practice
eb0b0e7841504fd67e7e8c2c0c4420e5b9ad7432
[ "MIT" ]
null
null
null
""" PRACTICE Exam 3. This problem provides practice at: *** SEQUENCES. *** Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Amanda Stouder, Aaron Wilkin, their colleagues, and Chen Li. """ # DONE: 1. PUT YOUR NAME IN THE ABOVE LINE. ################################...
41.038991
79
0.468954
6af047910f7d5ecf090233d3f0f3f3731de7541d
391
py
Python
lnbits/extensions/lnurlpayout/migrations.py
blackcoffeexbt/lnbits-legend
a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64
[ "MIT" ]
76
2021-11-02T22:19:59.000Z
2022-03-30T18:01:33.000Z
lnbits/extensions/lnurlpayout/migrations.py
blackcoffeexbt/lnbits-legend
a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64
[ "MIT" ]
100
2021-11-04T16:33:28.000Z
2022-03-30T15:03:52.000Z
lnbits/extensions/lnurlpayout/migrations.py
blackcoffeexbt/lnbits-legend
a9f2877af77ea56d1900e2b5bc1c21b9b7ac2f64
[ "MIT" ]
57
2021-11-08T06:43:59.000Z
2022-03-31T08:53:16.000Z
async def m001_initial(db): """ Initial lnurlpayouts table. """ await db.execute( """ CREATE TABLE lnurlpayout.lnurlpayouts ( id TEXT PRIMARY KEY, title TEXT NOT NULL, wallet TEXT NOT NULL, admin_key TEXT NOT NULL, lnurlpay TEXT...
23
47
0.514066
95d35be3badbf8f5af935f35af6f62f3293c38e4
204
py
Python
skhyper/process/__init__.py
tensor-strings/scikit-hyper
795a0b48d92c644ef3662e9957c04e5a9a6f85b2
[ "BSD-3-Clause" ]
null
null
null
skhyper/process/__init__.py
tensor-strings/scikit-hyper
795a0b48d92c644ef3662e9957c04e5a9a6f85b2
[ "BSD-3-Clause" ]
null
null
null
skhyper/process/__init__.py
tensor-strings/scikit-hyper
795a0b48d92c644ef3662e9957c04e5a9a6f85b2
[ "BSD-3-Clause" ]
null
null
null
from skhyper.process._process import Process from skhyper.process._normalization import normalize from skhyper.process._smoothing import savgol_filter __all__ = ['Process', 'normalize', 'savgol_filter']
34
52
0.828431
7a1e6bd6871720bccabc153f3ce901543c740d89
104,345
py
Python
contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/stack_advisor.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
16
2018-05-24T10:28:24.000Z
2021-08-05T03:13:26.000Z
contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/stack_advisor.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
3
2021-05-09T12:37:16.000Z
2022-03-02T10:13:24.000Z
contrib/management-packs/odpi-ambari-mpack/src/main/resources/stacks/ODPi/2.0/services/stack_advisor.py
panfeiyy/ambari
24077510723ede93d3024784f0b04422adaf56d6
[ "Apache-2.0" ]
17
2018-07-06T08:57:00.000Z
2021-11-04T11:00:36.000Z
#!/usr/bin/env ambari-python-wrap """ 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...
53.565195
222
0.681767
58b8d4acb9a37cdc4241d58e286f0301eb770245
384
py
Python
tests/test_ice40/test_ff.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
33
2018-06-11T22:58:23.000Z
2021-11-22T04:16:36.000Z
tests/test_ice40/test_ff.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
90
2017-08-31T01:12:13.000Z
2021-09-17T04:07:07.000Z
tests/test_ice40/test_ff.py
splhack/mantle
42fe81df22f4556f891f77b9c9acfd7e8bbe648b
[ "MIT" ]
12
2017-09-01T03:25:36.000Z
2020-10-14T21:43:12.000Z
import magma as m from magma.backend.verilog import compile from mantle.lattice.ice40 import SB_DFF def test_dff(): main = m.DefineCircuit('main', 'I', m.In(m.Bit), "O", m.Out(m.Bit), "CLK", m.In(m.Clock)) dff = SB_DFF() m.wire(main.I, dff.D) m.wire(dff.Q, main.O) m.EndCircuit() print(compile(...
24
93
0.640625
cdf8f446f05db73a6050abdc50f93ef312ce8c6f
1,209
py
Python
awx/main/tests/functional/test_rbac_organization.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
1
2021-06-11T20:01:06.000Z
2021-06-11T20:01:06.000Z
awx/main/tests/functional/test_rbac_organization.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
4
2020-04-29T23:03:16.000Z
2022-03-01T23:56:09.000Z
awx/main/tests/functional/test_rbac_organization.py
gitEdouble/awx
5885654405ccaf465f08df4db998a6dafebd9b4d
[ "Apache-2.0" ]
2
2018-09-03T19:10:02.000Z
2019-06-12T07:07:16.000Z
import mock import pytest from awx.main.access import ( BaseAccess, OrganizationAccess, ) @mock.patch.object(BaseAccess, 'check_license', return_value=None) @pytest.mark.django_db def test_organization_access_admin(cl, organization, user): '''can_change because I am an admin of that org''' a = user('...
31
66
0.732837
f9c92243f772a243e222b4af0090befce9b47af3
514
py
Python
board/migrations/0007_auto_20201023_1437.py
powerticket/heroku
d214a3758efbf185e4a533f8373033ed558209dd
[ "MIT" ]
null
null
null
board/migrations/0007_auto_20201023_1437.py
powerticket/heroku
d214a3758efbf185e4a533f8373033ed558209dd
[ "MIT" ]
4
2020-10-20T15:13:32.000Z
2021-02-24T09:04:49.000Z
board/migrations/0007_auto_20201023_1437.py
powerticket/heroku
d214a3758efbf185e4a533f8373033ed558209dd
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-23 05:37 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('board', '0006_comment_author'), ] operations = [ migrations.AlterField( model_name='comment', ...
25.7
149
0.64786
a0eb59144ca8f0fb07ab7e922ad13d886430bc2d
1,037
py
Python
examples/hierarchical_dialog/config_model_biminor.py
eridgd/texar
59442e21a2394489d3eed8135b5378069adfa912
[ "Apache-2.0" ]
1
2019-08-07T02:41:13.000Z
2019-08-07T02:41:13.000Z
examples/hierarchical_dialog/config_model_biminor.py
ysglh/texar
9c699e8143fd8ecb5d65a41ceef09c45832b9258
[ "Apache-2.0" ]
null
null
null
examples/hierarchical_dialog/config_model_biminor.py
ysglh/texar
9c699e8143fd8ecb5d65a41ceef09c45832b9258
[ "Apache-2.0" ]
1
2018-09-06T01:27:05.000Z
2018-09-06T01:27:05.000Z
beam_width = 5 encoder_hparams = { "encoder_minor_type": "BidirectionalRNNEncoder", "encoder_minor_hparams": { "rnn_cell_fw": { "type": "GRUCell", "kwargs": { "num_units": 300 }, "dropout": { "input_keep_prob": 0.9, ...
21.163265
53
0.422372
09b26ea58dc2894dc4cdb049de6514192fd4e83e
20,890
py
Python
neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py
rahularora19911/contrail-neutron-plugin
472a91617fa10dff7d04ebaae7e767794e20c8d8
[ "Apache-2.0" ]
null
null
null
neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py
rahularora19911/contrail-neutron-plugin
472a91617fa10dff7d04ebaae7e767794e20c8d8
[ "Apache-2.0" ]
null
null
null
neutron_plugin_contrail/plugins/opencontrail/contrail_plugin_base.py
rahularora19911/contrail-neutron-plugin
472a91617fa10dff7d04ebaae7e767794e20c8d8
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Juniper Networks. 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...
36.649123
79
0.649545
8f27cff7003a41f41f3725a72743003a8a31032c
2,433
py
Python
programs/fixes/source_only_abi/javautils.py
xmfan/buck
1e755494263bfa4b68e62fd61d86a711b9febc3a
[ "Apache-2.0" ]
null
null
null
programs/fixes/source_only_abi/javautils.py
xmfan/buck
1e755494263bfa4b68e62fd61d86a711b9febc3a
[ "Apache-2.0" ]
null
null
null
programs/fixes/source_only_abi/javautils.py
xmfan/buck
1e755494263bfa4b68e62fd61d86a711b9febc3a
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-present Facebook, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
28.964286
84
0.630908
19c5daf2f2df80781cc4062d5b1752ca9647844d
410
py
Python
userprofile/migrations/0019_auto_20190506_1935.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
25
2016-04-13T20:25:37.000Z
2021-11-26T14:41:00.000Z
userprofile/migrations/0019_auto_20190506_1935.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
358
2016-02-20T21:13:27.000Z
2022-03-31T20:06:03.000Z
userprofile/migrations/0019_auto_20190506_1935.py
Riphiphip/website
dc5bf64f24d5cf78661686af0281705f4d1d2576
[ "MIT" ]
7
2016-04-18T14:03:15.000Z
2022-02-04T14:19:47.000Z
# Generated by Django 2.0.10 on 2019-05-06 19:35 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('userprofile', '0018_profile_limit_social'), ] operations = [ migrations.AlterModelOptions( name='profile', options={'permis...
22.777778
100
0.62439
48ddb621ccbb9a74c4f49f5c81dbed77159c4203
34
py
Python
src/defpsd.py
Almas-Ali/Almas
3cd14e170078401e38563bc727b9b215135b81ba
[ "MIT" ]
null
null
null
src/defpsd.py
Almas-Ali/Almas
3cd14e170078401e38563bc727b9b215135b81ba
[ "MIT" ]
null
null
null
src/defpsd.py
Almas-Ali/Almas
3cd14e170078401e38563bc727b9b215135b81ba
[ "MIT" ]
null
null
null
defpsd = 'toor' # default password
34
34
0.735294
0b7d51380dc26af4665adfc88457f19756271171
40,335
py
Python
disturbance/components/organisations/api.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
null
null
null
disturbance/components/organisations/api.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
16
2020-03-11T08:25:46.000Z
2022-03-02T08:14:40.000Z
disturbance/components/organisations/api.py
jawaidm/disturbance
4188e816239b9447a58a987d16dd0f05bc6aad53
[ "Apache-2.0" ]
9
2020-01-30T17:37:38.000Z
2021-09-30T02:22:24.000Z
import traceback import base64 import geojson from six.moves.urllib.parse import urlparse from wsgiref.util import FileWrapper from django.db.models import Q, Min from django.db import transaction from django.http import HttpResponse from django.core.files.base import ContentFile from django.core.exceptions import Vali...
42.324239
151
0.611677
5a1209a833c124c358a9e557b4b0dfe48cd92f0f
1,136
py
Python
weekly.py
Fatman13/gta_swarm
1c4603f39cd7831f5907fd619594452b3320f75f
[ "MIT" ]
null
null
null
weekly.py
Fatman13/gta_swarm
1c4603f39cd7831f5907fd619594452b3320f75f
[ "MIT" ]
null
null
null
weekly.py
Fatman13/gta_swarm
1c4603f39cd7831f5907fd619594452b3320f75f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 import pprint # import csv import click # import requests # import datetime as datetime # from datetime import date # from xml.etree import ElementTree as ET import os # from random import sample # import random # import json # import logging import subprocess import glob import t...
21.433962
67
0.684859
21e4508ccd88e9bd71aed6907601ed9c0ba4d296
1,744
py
Python
scripts/export_data_09.py
potchangelo/python-mysql-excel
9a9ccdc9c97b40191012642813fda583ce1f3e98
[ "MIT" ]
1
2021-08-09T14:26:52.000Z
2021-08-09T14:26:52.000Z
scripts/export_data_09.py
potchangelo/python-mysql-excel
9a9ccdc9c97b40191012642813fda583ce1f3e98
[ "MIT" ]
null
null
null
scripts/export_data_09.py
potchangelo/python-mysql-excel
9a9ccdc9c97b40191012642813fda583ce1f3e98
[ "MIT" ]
1
2021-07-26T03:53:34.000Z
2021-07-26T03:53:34.000Z
# Export ข้อมูลจาก Database MySQL ออกมาเป็นไฟล์ Excel (.xlsx) # เป็นการ Export ข้อมูลสินค้าทุกแถว # รวมประเภทสินค้า, แฮชแท็กทั้งหมด, และโน้ตของสินค้าแต่ละอัน มาแสดงด้วย import mysql.connector from openpyxl import Workbook def run(): # Database # - เชื่อมต่อ Database (เปลี่ยนค่า Connection เป็นของเครื่องตัวเอง...
29.559322
81
0.59805
811ccdbb0956907a2a151ebe72e5c8720b1979d6
3,295
py
Python
scripts/data_libraries/build_whoosh_index.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
scripts/data_libraries/build_whoosh_index.py
tsungjui/fusionline
26d5d41e82ac83822ba41df1cd14c54afa112655
[ "CC-BY-3.0" ]
4
2017-05-24T19:36:34.000Z
2019-08-23T02:49:18.000Z
scripts/data_libraries/build_whoosh_index.py
abretaud/galaxy
1ad89511540e6800cd2d0da5d878c1c77d8ccfe9
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python """ Build index for full-text whoosh search of files in data libraries. Requires configuration settings in galaxy.ini. See the whoosh settings in the data library search section for more details. Run from the ~/scripts/data_libraries directory: %sh build_whoosh_index.sh """ from __future__ impor...
35.430108
114
0.672231
4a91c319a89239fbe8459f16a801fb64a61d2566
11,782
py
Python
intersight/model/virtualization_host_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
5
2021-12-16T15:13:32.000Z
2022-03-29T16:09:54.000Z
intersight/model/virtualization_host_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
4
2022-01-25T19:05:51.000Z
2022-03-29T20:18:37.000Z
intersight/model/virtualization_host_response.py
CiscoDevNet/intersight-python
04b721f37c3044646a91c185c7259edfb991557a
[ "Apache-2.0" ]
2
2020-07-07T15:01:08.000Z
2022-01-31T04:27:35.000Z
""" Cisco Intersight Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advan...
47.128
1,678
0.638092
52c2b19bba8a1abf6def9388d5636d78b57d5b6b
5,405
py
Python
srunner/tools/scenario_config_parser.py
matthewcoyle-cpc/scenario_runner
a6062ac05b908c748688eb770acd78e0d4769edd
[ "MIT" ]
6
2020-03-22T09:39:30.000Z
2021-04-12T12:01:44.000Z
srunner/tools/scenario_config_parser.py
matthewcoyle-cpc/scenario_runner
a6062ac05b908c748688eb770acd78e0d4769edd
[ "MIT" ]
9
2020-09-25T22:35:07.000Z
2022-03-12T00:20:21.000Z
srunner/tools/scenario_config_parser.py
matthewcoyle-cpc/scenario_runner
a6062ac05b908c748688eb770acd78e0d4769edd
[ "MIT" ]
2
2020-12-20T12:59:14.000Z
2021-05-25T06:28:50.000Z
#!/usr/bin/env python # Copyright (c) 2019 Intel Corporation # # This work is licensed under the terms of the MIT license. # For a copy, see <https://opensource.org/licenses/MIT>. """ This module provides access to a scenario configuration parser """ import glob import os import xml.etree.ElementTree as ET from sru...
38.884892
119
0.637928
1c84c6198e8fd98553ea2eea5e75b132e37f1398
16,327
py
Python
chalice/config.py
gallmerci/chalice
b67c5e57e811afe34648e0d32c08d1cfcf663cee
[ "Apache-2.0" ]
null
null
null
chalice/config.py
gallmerci/chalice
b67c5e57e811afe34648e0d32c08d1cfcf663cee
[ "Apache-2.0" ]
null
null
null
chalice/config.py
gallmerci/chalice
b67c5e57e811afe34648e0d32c08d1cfcf663cee
[ "Apache-2.0" ]
null
null
null
import os import sys import json from typing import Dict, Any, Optional, List # noqa from chalice import __version__ as current_chalice_version from chalice.app import Chalice # noqa from chalice.constants import DEFAULT_STAGE_NAME from chalice.constants import DEFAULT_HANDLER_NAME StrMap = Dict[str, Any] class ...
37.276256
78
0.583573
3f225418baef7c45e7194dd977ec3cc38e1c564d
61
py
Python
ansible_navigator/image_manager/__init__.py
KB-perByte/ansible-navigator
8210fa9fd5ed4fa4bbf90d1daa1ac025779220e0
[ "Apache-2.0", "MIT" ]
null
null
null
ansible_navigator/image_manager/__init__.py
KB-perByte/ansible-navigator
8210fa9fd5ed4fa4bbf90d1daa1ac025779220e0
[ "Apache-2.0", "MIT" ]
null
null
null
ansible_navigator/image_manager/__init__.py
KB-perByte/ansible-navigator
8210fa9fd5ed4fa4bbf90d1daa1ac025779220e0
[ "Apache-2.0", "MIT" ]
null
null
null
""" image manager """ from .image_puller import ImagePuller
15.25
37
0.737705
3b1a2b17eeb26542962c03d671dc9ca493ba59a9
7,429
py
Python
iotbx/regression/tst_mtz_as_cif.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
iotbx/regression/tst_mtz_as_cif.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
iotbx/regression/tst_mtz_as_cif.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function import os import libtbx.load_env if (libtbx.env.has_module("ccp4io")): from iotbx import mtz else: mtz = None from libtbx.test_utils import approx_equal import iotbx.cif def get_array_by_label(miller_arrays, label): for ma in miller_arrays: if ...
43.19186
109
0.738996
f84a50bb13d03dfad76367d0bb00f50546a21391
1,197
py
Python
Tampereen Koirapuistot/Django/config/urls.py
tuomak/web
f6fbfeacc11118fd264433410596479e5772b6b0
[ "MIT" ]
null
null
null
Tampereen Koirapuistot/Django/config/urls.py
tuomak/web
f6fbfeacc11118fd264433410596479e5772b6b0
[ "MIT" ]
null
null
null
Tampereen Koirapuistot/Django/config/urls.py
tuomak/web
f6fbfeacc11118fd264433410596479e5772b6b0
[ "MIT" ]
null
null
null
"""config URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.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-based ...
33.25
77
0.696742
5d9534db90928e68fbc5314e02eccb017351665c
256
py
Python
pyensemble/importers/__init__.py
janatalab/pyensemble
aa0312598f79e8d334822913671d5bb7088fac5f
[ "MIT" ]
1
2021-07-03T20:37:49.000Z
2021-07-03T20:37:49.000Z
pyensemble/importers/__init__.py
janatalab/pyensemble
aa0312598f79e8d334822913671d5bb7088fac5f
[ "MIT" ]
2
2020-07-30T13:45:29.000Z
2020-10-24T19:31:50.000Z
pyensemble/importers/__init__.py
janatalab/pyensemble
aa0312598f79e8d334822913671d5bb7088fac5f
[ "MIT" ]
null
null
null
# __init__.py # # These are generic importers that for materials to be imported via PyEnsemble's import interfaces # # Place experiment-specific importers in the experiment's module in pyensemble.experiments from pyensemble.importers import import_stimuli
36.571429
98
0.828125
6545e4bd0276ed23e7e19b25292395b3b7ad819d
644
py
Python
lesson01/chenfei/guess.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson01/chenfei/guess.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
lesson01/chenfei/guess.py
herrywen-nanj/51reboot
1130c79a360e1b548a6eaad176eb60f8bed22f40
[ "Apache-2.0" ]
null
null
null
import random # 导入随机数模块 print('\n——————猜数字游戏——————\n') random = random.randint(1, 100) # 生成1到10之间的随机数 print("请输入1~100之间的任意一个数:") count = 0; while count < 6: guess = input() # 获取输入的数字 if int(guess)!=0 and int(guess) < random: # 若猜测的数字小于基准数,则提示用户输入的数太小,并让用户重新输入 print('太小,请重新输入:') if int(guess...
32.2
81
0.57764
eadc73ca52f57972d0b7cb313abd7b564cb3ae5b
2,839
py
Python
synthesise.py
andrewgolman/YSDA_PracticalDS_Synthesis
24d370f13a09dd387de0f0c8be9d7fa0dd06e2b1
[ "MIT" ]
1
2021-11-03T12:45:40.000Z
2021-11-03T12:45:40.000Z
synthesise.py
andrewgolman/YSDA_PracticalDS_Synthesis
24d370f13a09dd387de0f0c8be9d7fa0dd06e2b1
[ "MIT" ]
null
null
null
synthesise.py
andrewgolman/YSDA_PracticalDS_Synthesis
24d370f13a09dd387de0f0c8be9d7fa0dd06e2b1
[ "MIT" ]
null
null
null
import torch import numpy as np from scipy.io import wavfile from utils import get_list_from_lengths, pad_1D, process_text def get_vocoder(): vocoder = torch.hub.load( "descriptinc/melgan-neurips", "load_melgan", "multi_speaker" ) vocoder.mel2wav.eval() vocoder.mel2wav.cuda() return vocode...
29.884211
98
0.630856
6263a84f4933bccaad743c6613fb3f3099d86b4c
623
py
Python
cv-lab11/task2.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
1
2021-08-31T18:57:26.000Z
2021-08-31T18:57:26.000Z
cv-lab11/task2.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
1
2021-08-25T09:44:15.000Z
2021-08-25T09:44:15.000Z
cv-lab11/task2.py
TroddenSpade/Computer-Vision-notes
3d16b37a8ed577af821d9dae11864ee8e0b82c73
[ "MIT" ]
null
null
null
import numpy as np import cv2 I = cv2.imread('sign.jpg') p1 = (135,105) p2 = (331,143) p3 = (356,292) p4 = (136,290) points1 = np.array([p1,p2,p3,p4], dtype=np.float32) n = 480 m = 320 output_size = (n,m) points2 = np.array([ (0,0), (n,0), (n,m), (0,m) ], dtype=np.float32) H = cv2.getPerspectiveTr...
16.394737
63
0.608347
ffea1d5cf2c74323ddee3bab349254d0d3f12dd6
8,083
py
Python
mmskeleton/models/backbones/ALN.py
niujunyu/mmskeleton
0936b610f0c44e87f6886d34a9f43eda872ed6d8
[ "Apache-2.0" ]
null
null
null
mmskeleton/models/backbones/ALN.py
niujunyu/mmskeleton
0936b610f0c44e87f6886d34a9f43eda872ed6d8
[ "Apache-2.0" ]
null
null
null
mmskeleton/models/backbones/ALN.py
niujunyu/mmskeleton
0936b610f0c44e87f6886d34a9f43eda872ed6d8
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from mmskeleton.ops.st_gcn import ConvTemporalGraphicalBatchA, Graph def zero(x): return 0 def iden(x): return x class ANet(torch.nn.Module): # 继承 torch 的 Module def __init__(self, n_feature, n_hid...
33.820084
95
0.531115
de314f9dd385bf512ccfe6bc62b01253c6e40a41
1,600
py
Python
historia/intercept/select_handler.py
thatdevsherry/historia
232026b38479fd855c1d8eff543d95e144bfdfe2
[ "MIT" ]
10
2020-12-12T23:00:27.000Z
2022-02-09T18:01:40.000Z
historia/intercept/select_handler.py
ShehriyarQureshi/historia
feb48e1489563e4770d32d4e6465d3931407a345
[ "MIT" ]
3
2018-11-01T11:36:55.000Z
2018-11-09T04:43:54.000Z
historia/intercept/select_handler.py
ShehriyarQureshi/temporalite
feb48e1489563e4770d32d4e6465d3931407a345
[ "MIT" ]
null
null
null
""" Copyright (c) 2019 Muhammad Shehriyar Qureshi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,...
37.209302
80
0.75875
6e290c7dc0deb80c74f6e062ca4bd1405b40296b
1,703
py
Python
tests/functional/arno/derived_tables/test_05.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/arno/derived_tables/test_05.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/arno/derived_tables/test_05.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: functional.arno.derived_tables.05 # title: Simple derived table 5 # decription: Derived table column names must be unique. # tracker_id: # min_versions: [] # versions: 2.5.0 # qmid: functional.arno.derived_tables.derived_tables_05 import pytest from firebird.qa i...
27.031746
70
0.714621
f3646bfaeb048f5bd949ef86e580bfbc4f87b854
567
py
Python
svdbs/migrations/0003_auto_20190723_0934.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
14
2019-09-30T12:44:17.000Z
2022-02-04T14:45:16.000Z
svdbs/migrations/0003_auto_20190723_0934.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
244
2021-03-26T15:13:15.000Z
2022-03-31T15:48:04.000Z
svdbs/migrations/0003_auto_20190723_0934.py
brand-fabian/varfish-server
6a084d891d676ff29355e72a29d4f7b207220283
[ "MIT" ]
8
2020-05-19T21:55:13.000Z
2022-03-31T07:02:58.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.20 on 2019-07-23 09:34 from __future__ import unicode_literals import django.contrib.postgres.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [("svdbs", "0002_auto_20190619_1529")] operations = [ ...
25.772727
69
0.643739
c03e5a73a272025047ce1abab2f0dc11357d4b14
4,377
py
Python
wagtail/search/tests/test_mysql_backend.py
melisayu/wagtail
614ec3fc2a656b25db710b80f9e60f1c8effd7a4
[ "BSD-3-Clause" ]
8,851
2016-12-09T19:01:45.000Z
2022-03-31T04:45:06.000Z
wagtail/search/tests/test_mysql_backend.py
melisayu/wagtail
614ec3fc2a656b25db710b80f9e60f1c8effd7a4
[ "BSD-3-Clause" ]
5,197
2016-12-09T19:24:37.000Z
2022-03-31T22:17:55.000Z
wagtail/search/tests/test_mysql_backend.py
melisayu/wagtail
614ec3fc2a656b25db710b80f9e60f1c8effd7a4
[ "BSD-3-Clause" ]
2,548
2016-12-09T18:16:55.000Z
2022-03-31T21:34:38.000Z
import unittest from unittest import skip from django.db import connection from django.test.testcases import TransactionTestCase from django.test.utils import override_settings from wagtail.search.query import Not, PlainText from wagtail.search.tests.test_backends import BackendTests from wagtail.tests.search import...
44.663265
359
0.687686
c5a726c1f8cd2f91a27b576c769722accd0a220a
135
py
Python
oosc/oosc/history/apps.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
oosc/oosc/history/apps.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
oosc/oosc/history/apps.py
C4DLabOrg/da_api
3d876576a189ce35c6b4b2f1c728f4b91e4b2ed0
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.apps import AppConfig class HistoryConfig(AppConfig): name = 'oosc.history'
16.875
39
0.792593
4e26c1dbdda9ed3eb46be33b2913f339f7ca7e3f
794
py
Python
server/migrations/0081_auto_20190204_1423.py
nathandarnell/sal
464414a2666e39bdf5b4b0033a84d5129c93c053
[ "Apache-2.0" ]
215
2015-05-04T16:57:56.000Z
2022-03-07T12:58:12.000Z
server/migrations/0081_auto_20190204_1423.py
nathandarnell/sal
464414a2666e39bdf5b4b0033a84d5129c93c053
[ "Apache-2.0" ]
243
2015-07-04T18:10:56.000Z
2022-02-27T18:52:40.000Z
server/migrations/0081_auto_20190204_1423.py
nathandarnell/sal
464414a2666e39bdf5b4b0033a84d5129c93c053
[ "Apache-2.0" ]
90
2015-06-29T19:26:58.000Z
2022-02-17T19:03:00.000Z
# Generated by Django 2.1.4 on 2019-02-04 19:23 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('server', '0080_auto_20190202_1020'), ] operations = [ migrations.AddField( model_name='fact', ...
31.76
155
0.65869
bee16d5eecce8809f0505c0e33756cbe5899237f
2,843
py
Python
mmdet/core/bbox/samplers/rbbox_base_sampler.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
643
2020-01-28T11:29:49.000Z
2022-03-31T08:28:32.000Z
mmdet/core/bbox/samplers/rbbox_base_sampler.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
148
2021-03-18T09:44:02.000Z
2022-03-31T06:01:39.000Z
mmdet/core/bbox/samplers/rbbox_base_sampler.py
TJUsym/TJU_Advanced_CV_Homework
2d85943390e9ba53b80988e0ab8d50aef0cd17da
[ "Apache-2.0" ]
197
2020-01-29T09:58:27.000Z
2022-03-25T12:08:56.000Z
from abc import ABCMeta, abstractmethod import torch from .sampling_result import SamplingResult class RbboxBaseSampler(metaclass=ABCMeta): def __init__(self, num, pos_fraction, neg_pos_ub=-1, add_gt_as_proposals=True, **kwargs...
30.244681
78
0.607457
75209dce5f87095317e693f8bf0ce73b69eaa44e
2,673
py
Python
jtyoui/baidu/baiduwenku.py
vanton/Jtyoui
c44d66b038ac5f4e2d75b68b3493d02f7b7b385e
[ "MIT" ]
1
2019-12-24T00:57:47.000Z
2019-12-24T00:57:47.000Z
jtyoui/baidu/baiduwenku.py
liangxioa/Jtyoui
5a584cbf12d644b6c4fb13167d8841a383afbbac
[ "MIT" ]
null
null
null
jtyoui/baidu/baiduwenku.py
liangxioa/Jtyoui
5a584cbf12d644b6c4fb13167d8841a383afbbac
[ "MIT" ]
null
null
null
#!/usr/bin/python3.7 # -*- coding: utf-8 -*- # @Time : 2019/7/20 13:17 # @Email : jtyoui@qq.com # @Software: PyCharm from jtyoui.web import get from urllib.request import urlretrieve import tempfile import json import re import os import shutil import time class BaiDuWenKu: """下载百度文库资料 url是下载百度文库的文档链接 ...
29.7
110
0.567527
d7650f6dfdd285e7b4a2ae7f0f89cb59d33019ed
8,333
py
Python
audio.py
DaijobuDes/daijobuudes
0a6eb2a25ee930b45bc1504108d5d36167f7a4cd
[ "MIT" ]
11
2020-07-16T01:53:19.000Z
2021-12-13T10:59:01.000Z
audio.py
DaijobuDes/daijobuudes
0a6eb2a25ee930b45bc1504108d5d36167f7a4cd
[ "MIT" ]
4
2020-07-17T14:57:43.000Z
2020-09-20T16:23:57.000Z
audio.py
DaijobuDes/daijobuudes
0a6eb2a25ee930b45bc1504108d5d36167f7a4cd
[ "MIT" ]
1
2020-08-14T11:22:44.000Z
2020-08-14T11:22:44.000Z
import discord import youtube_dl import shutil import os from discord.ext import commands from discord.utils import get queues = {} class Audio(commands.Cog): def __init__(self, client): self.client = client @commands.command(pass_context=True, aliases=['j']) async def join(self, ctx): ...
32.678431
98
0.531381
06a81b0eab37980fa099501d2bdddbf949439123
442
py
Python
Mass_DM.py
PiggyAwesome/Telegram-Mass-DM
b5fb34235f03f798c0835700534c17d208510c23
[ "MIT" ]
6
2021-08-30T16:48:41.000Z
2022-03-15T10:17:19.000Z
Mass_DM.py
bryonpokemon/Telegram-Mass-DM
b5fb34235f03f798c0835700534c17d208510c23
[ "MIT" ]
null
null
null
Mass_DM.py
bryonpokemon/Telegram-Mass-DM
b5fb34235f03f798c0835700534c17d208510c23
[ "MIT" ]
4
2021-09-08T06:00:46.000Z
2022-02-08T15:34:54.000Z
from telethon import TelegramClient, events api_id = 00000 # api_id here api_hash = 'HASH HERE' message = "" file_ = open("tele_ids.txt", "r") ids = file_.read() ids = ids.splitlines() try: with TelegramClient('MassDM', api_id, api_hash) as client: for line in ids: response = client....
20.090909
60
0.647059
2f76c2945d01899d4097bd08932d95acd3699ba4
45
py
Python
topnotchdev/files_widget/forms/__init__.py
otstanteplz/django-files-widget
9bd0f7f388bfc310820735187bdf238cad46620b
[ "MIT" ]
56
2015-01-02T20:46:28.000Z
2022-02-05T14:36:53.000Z
djmoney/forms/__init__.py
reinbach/django-money
85739b1349b7f2d9e8c8bf0ab1e519ed39b3a40b
[ "BSD-3-Clause" ]
15
2015-01-22T21:25:33.000Z
2022-01-28T14:59:27.000Z
djmoney/forms/__init__.py
reinbach/django-money
85739b1349b7f2d9e8c8bf0ab1e519ed39b3a40b
[ "BSD-3-Clause" ]
33
2015-01-06T08:21:26.000Z
2022-01-06T20:40:57.000Z
from .fields import * from .widgets import *
15
22
0.733333
bfb7d8d90f0957619678e7a73d7514cb7d5acf08
380
py
Python
labinfo9/Binary heap.py
MatiwsxD/ayed-2019-1
a5fdbe3a055405150122cf3875cdb0c6afd9eff0
[ "MIT" ]
null
null
null
labinfo9/Binary heap.py
MatiwsxD/ayed-2019-1
a5fdbe3a055405150122cf3875cdb0c6afd9eff0
[ "MIT" ]
null
null
null
labinfo9/Binary heap.py
MatiwsxD/ayed-2019-1
a5fdbe3a055405150122cf3875cdb0c6afd9eff0
[ "MIT" ]
null
null
null
from sys import stdin def isHeap(arr, n): for i in range(int((n - 2) / 2) + 1): if arr[2 * i + 1] > arr[i]: return False if (2 * i + 2 < n and arr[2 * i + 2] > arr[i]): return False return True if __name__ == '__main__': arr = [int(x) for x in stdin.re...
29.230769
52
0.481579
a737850466fda0d0f37c5a36720debe454714cd2
3,917
py
Python
.circleci/regenerate.py
martinruenz/pytorch3d
7f1e63aed1252ba8145d4a66ce2272331d60cdae
[ "BSD-3-Clause" ]
1
2020-08-13T03:08:38.000Z
2020-08-13T03:08:38.000Z
.circleci/regenerate.py
martinruenz/pytorch3d
7f1e63aed1252ba8145d4a66ce2272331d60cdae
[ "BSD-3-Clause" ]
null
null
null
.circleci/regenerate.py
martinruenz/pytorch3d
7f1e63aed1252ba8145d4a66ce2272331d60cdae
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. """ This script is adapted from the torchvision one. """ import os.path import jinja2 import yaml # The CUDA versions which have pytorch conda packages available for linux for each # version of pytorch. CONDA_CUDA_VERSIO...
26.288591
86
0.567781
c753f718ce51e77d89385260e88c7163ec39ea9f
3,710
py
Python
src/spaceone/inventory/connector/aws_efs_connector/schema/service_type.py
jean1042/plugin-aws-cloud-services
1cf192557b03478af33ae81f40b2a49f735716bb
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/connector/aws_efs_connector/schema/service_type.py
jean1042/plugin-aws-cloud-services
1cf192557b03478af33ae81f40b2a49f735716bb
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/connector/aws_efs_connector/schema/service_type.py
jean1042/plugin-aws-cloud-services
1cf192557b03478af33ae81f40b2a49f735716bb
[ "Apache-2.0" ]
null
null
null
from spaceone.inventory.libs.schema.dynamic_field import TextDyField, DateTimeDyField, EnumDyField, SearchField, \ SizeField from spaceone.inventory.libs.schema.resource import CloudServiceTypeResource, CloudServiceTypeResponse, \ CloudServiceTypeMeta cst_filesystem = CloudServiceTypeResource() cst_filesystem....
53
160
0.618059
a53f3edd3f7b0e5e2b43eebea413adfc4fcf1158
683
py
Python
Worker/WebCheck/wafw00f/plugins/safedog.py
p4sschen/Toy4Recon
e4fa6a512b238cca6d6d072ed5c66899de60bb06
[ "MIT" ]
1
2020-12-16T13:14:05.000Z
2020-12-16T13:14:05.000Z
Worker/WebCheck/wafw00f/plugins/safedog.py
p4sschen/Toy4Recon
e4fa6a512b238cca6d6d072ed5c66899de60bb06
[ "MIT" ]
null
null
null
Worker/WebCheck/wafw00f/plugins/safedog.py
p4sschen/Toy4Recon
e4fa6a512b238cca6d6d072ed5c66899de60bb06
[ "MIT" ]
null
null
null
#!/usr/bin/env python NAME = 'Safedog (SafeDog)' def is_waf(self): if self.matchcookie(r'^safedog\-flow\-item='): return True if self.matchheader(('server', 'Safedog')): return True for attack in self.attacks: r = attack(self) if r is None: return _, r...
29.695652
91
0.543192
63621357e362dc4cefdbe29daf3ebe07944ed87c
7,777
py
Python
downloader.py
liblaf/thu-learn-downloader
19ae9c10a2c1c1ad455d73ae744c90abe8f25178
[ "Apache-2.0" ]
null
null
null
downloader.py
liblaf/thu-learn-downloader
19ae9c10a2c1c1ad455d73ae744c90abe8f25178
[ "Apache-2.0" ]
null
null
null
downloader.py
liblaf/thu-learn-downloader
19ae9c10a2c1c1ad455d73ae744c90abe8f25178
[ "Apache-2.0" ]
null
null
null
from numbers import Number import os from thu_learn_lib import LearnSession from thu_learn_lib import types from tqdm import tqdm def Escape(path: str, is_filename=True) -> str: for ch in '<>:"/\\|?* ' if is_filename else '<>:"|?* ': path = path.replace(ch, "_") return path class Downloader(LearnSes...
37.033333
104
0.542369
3e6acaa8b06033faf668bbc90e94ce680b63162a
7,015
py
Python
litepkg/litepkg.py
charlesdaniels/litepkg
88ced4acfdd920f27a923eb71af6b4fb8b0399f9
[ "BSD-3-Clause" ]
null
null
null
litepkg/litepkg.py
charlesdaniels/litepkg
88ced4acfdd920f27a923eb71af6b4fb8b0399f9
[ "BSD-3-Clause" ]
10
2017-11-26T02:35:57.000Z
2017-11-26T15:36:13.000Z
litepkg/litepkg.py
charlesdaniels/litepkg
88ced4acfdd920f27a923eb71af6b4fb8b0399f9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import os import sys import subprocess import argparse import logging import logger import litepkg import pkgutils import imp import re import config import tempfile import shutil def ensure_dir_exists(directory): """ensure_dir_exists Make sure the directory exists, creating it if it d...
28.51626
79
0.617249
d3d804da404ca30a7ee6a1de2b2ac0871fa71d9a
3,363
py
Python
tartist/app/rl/utils/math.py
vacancy/TensorArtist
7654eb026f6d87f64e28ca152d006ef7625b0f45
[ "MIT" ]
54
2017-03-31T08:46:18.000Z
2022-03-09T14:37:19.000Z
tartist/app/rl/utils/math.py
vacancy/TensorArtist
7654eb026f6d87f64e28ca152d006ef7625b0f45
[ "MIT" ]
1
2017-08-21T07:29:33.000Z
2017-08-21T09:52:40.000Z
tartist/app/rl/utils/math.py
vacancy/TensorArtist
7654eb026f6d87f64e28ca152d006ef7625b0f45
[ "MIT" ]
3
2017-05-24T17:43:35.000Z
2018-09-19T11:18:23.000Z
# -*- coding:utf8 -*- # File : math.py # Author : Jiayuan Mao # Email : maojiayuan@gmail.com # Date : 10/08/2017 # # This file is part of TensorArtist. import scipy import scipy.signal import numpy as np def discount_cumsum(x, gamma): """Compute the discounted cumulative summation of an 1-d array. From...
31.138889
116
0.598573
8314556d045a645666c7677743bae82f18ae15ec
8,426
py
Python
rllib/train.py
Crissman/ray
2092b097eab41b118a117fdfadd0fe664db41f63
[ "Apache-2.0" ]
1
2021-11-22T00:59:33.000Z
2021-11-22T00:59:33.000Z
rllib/train.py
tjcommV2X/ray
3965310f939cfbb0d700174529ee5bc7d4871de8
[ "Apache-2.0" ]
84
2021-03-06T08:02:56.000Z
2022-03-05T08:07:19.000Z
rllib/train.py
majacQ/ray
bc08c6cdcc7ddf4da751ca2a972defd3db509061
[ "Apache-2.0" ]
1
2020-01-16T20:52:25.000Z
2020-01-16T20:52:25.000Z
#!/usr/bin/env python import argparse import os from pathlib import Path import yaml import ray from ray.cluster_utils import Cluster from ray.tune.config_parser import make_parser from ray.tune.progress_reporter import CLIReporter, JupyterNotebookReporter from ray.tune.result import DEFAULT_RESULTS_DIR from ray.tune...
35.552743
79
0.621647
9aec4cc9525e085ef2da666cb31f77482ea46177
5,217
py
Python
ansible_shell_monitoring/bsd_netstat.py
nortics/python
3093a5c3cf3e8813d40a6253e8526459c848bb70
[ "MIT" ]
null
null
null
ansible_shell_monitoring/bsd_netstat.py
nortics/python
3093a5c3cf3e8813d40a6253e8526459c848bb70
[ "MIT" ]
null
null
null
ansible_shell_monitoring/bsd_netstat.py
nortics/python
3093a5c3cf3e8813d40a6253e8526459c848bb70
[ "MIT" ]
null
null
null
#!/usr/local/etc/ansible/venv/top/bin/python import json,os,psycopg2,time,subprocess,yaml from datetime import datetime playbook_file = '/usr/local/etc/ansible/playbooks/netstat.yml' def get_file_list(top_playbook_file = 'top.yml'): with open(top_playbook_file) as f: file_list = {} yml = (yaml.sa...
39.824427
198
0.608396
e449bed554d5d6130ebca158898090709b50832c
135
py
Python
LeetCodeSolutions/LeetCode_0191.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
24
2020-03-28T06:10:25.000Z
2021-11-23T05:01:29.000Z
LeetCodeSolutions/LeetCode_0191.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
null
null
null
LeetCodeSolutions/LeetCode_0191.py
lih627/python-algorithm-templates
a61fd583e33a769b44ab758990625d3381793768
[ "MIT" ]
8
2020-05-18T02:43:16.000Z
2021-05-24T18:11:38.000Z
class Solution: def hammingWeight(self, n: int) -> int: n &= 0xFFFFFFFF n = bin(n)[2:] return n.count('1')
22.5
43
0.518519
9ad4c93c5b1b0485f6573089fe1bc884e92378ac
15,067
py
Python
google/cloud/sql/v1beta4/sql-v1beta4-py/google/cloud/sql_v1beta4/services/sql_users_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
7
2021-02-21T10:39:41.000Z
2021-12-07T07:31:28.000Z
google/cloud/sql/v1beta4/sql-v1beta4-py/google/cloud/sql_v1beta4/services/sql_users_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
6
2021-02-02T23:46:11.000Z
2021-11-15T01:46:02.000Z
google/cloud/sql/v1beta4/sql-v1beta4-py/google/cloud/sql_v1beta4/services/sql_users_service/transports/grpc.py
googleapis/googleapis-gen
d84824c78563d59b0e58d5664bfaa430e9ad7e7a
[ "Apache-2.0" ]
4
2021-01-28T23:25:45.000Z
2021-08-30T01:55:16.000Z
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
44.709199
99
0.626402
fb55a1dffe434380a4d2c353cb25812579232425
570
py
Python
tests/pypint/plugins_tests/timers_tests/timer_base_test.py
DiMoser/PyPinT
3cba394d0fd87055ab412d35fe6dbf4a3b0dbe73
[ "MIT" ]
null
null
null
tests/pypint/plugins_tests/timers_tests/timer_base_test.py
DiMoser/PyPinT
3cba394d0fd87055ab412d35fe6dbf4a3b0dbe73
[ "MIT" ]
null
null
null
tests/pypint/plugins_tests/timers_tests/timer_base_test.py
DiMoser/PyPinT
3cba394d0fd87055ab412d35fe6dbf4a3b0dbe73
[ "MIT" ]
null
null
null
# coding=utf-8 import unittest from pypint.plugins.timers.timer_base import TimerBase class TimerBaseTest(unittest.TestCase): def setUp(self): self.__timer = TimerBase() def test_start_stop_timing(self): self.__timer.start() self.__timer.stop() self.assertGreater(self.__timer...
24.782609
85
0.682456
7ebdc6013aceb7a3eaed57ae516566fd536a9461
29,577
py
Python
ms_deisotope/data_source/thermo_raw_net.py
mobiusklein/ms_deisotope
5b05b40b3f75ace38d03b823499ea3ebc74efad4
[ "Apache-2.0" ]
18
2017-09-01T12:26:12.000Z
2022-02-23T02:31:29.000Z
ms_deisotope/data_source/thermo_raw_net.py
mobiusklein/ms_deisotope
5b05b40b3f75ace38d03b823499ea3ebc74efad4
[ "Apache-2.0" ]
19
2017-03-12T20:40:36.000Z
2022-03-31T22:50:47.000Z
ms_deisotope/data_source/thermo_raw_net.py
mobiusklein/ms_deisotope
5b05b40b3f75ace38d03b823499ea3ebc74efad4
[ "Apache-2.0" ]
14
2016-05-06T02:25:30.000Z
2022-03-31T14:40:06.000Z
'''Thermo RAW file reading implementation using the pure .NET RawFileReader library released in 2017. This module provides :class:`ThermoRawLoader`, a :class:`~.RandomAccessScanSource` implementation. Depends upon the ``pythonnet`` project which provides the :mod:`clr` module, enabling nearly seamless interoperation ...
36.514815
114
0.639619
6a9884c0202c76990ad57f1a9deb1575dd81f9b6
3,125
py
Python
src/help.py
stevenpitts/makubot
49c8514fdd1370c28c8bae6b9918a75d7f43c31c
[ "MIT" ]
null
null
null
src/help.py
stevenpitts/makubot
49c8514fdd1370c28c8bae6b9918a75d7f43c31c
[ "MIT" ]
13
2022-02-01T19:23:55.000Z
2022-02-19T18:02:03.000Z
src/help.py
stevenpitts/makubot
49c8514fdd1370c28c8bae6b9918a75d7f43c31c
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import logging logger = logging.getLogger() SHOWOFF_COMMANDS = [ "addimage", "mycommands", "myimagecount", "bigten", "listreactions", "randomimage", "howbig", "", "invite", "support", "", "evaluate", "poll", "remi...
27.412281
79
0.63712
3fe7a7c9136879eff3c8e26d8b9daeda24b002b4
25,189
py
Python
Fill.py
GhostlyDark/OoT-Randomizer
a153f4fdffd6e971137b2f2df5813db218287ce0
[ "MIT" ]
null
null
null
Fill.py
GhostlyDark/OoT-Randomizer
a153f4fdffd6e971137b2f2df5813db218287ce0
[ "MIT" ]
null
null
null
Fill.py
GhostlyDark/OoT-Randomizer
a153f4fdffd6e971137b2f2df5813db218287ce0
[ "MIT" ]
null
null
null
import random import logging from State import State from Rules import set_shop_rules from Location import DisableType from ItemPool import remove_junk_items from Item import ItemFactory, ItemInfo from Search import Search logger = logging.getLogger('') class ShuffleError(RuntimeError): pass class FillError(Sh...
49.197266
278
0.677836
83f911f047ca3138032b4eee1091e19ee487cb9b
735
py
Python
payment/migrations/0002_auto_20210910_0851.py
mahbd/brur-payment
cb9812e1d2f8c22c7015708ca9bb4fc05bfb1452
[ "MIT" ]
null
null
null
payment/migrations/0002_auto_20210910_0851.py
mahbd/brur-payment
cb9812e1d2f8c22c7015708ca9bb4fc05bfb1452
[ "MIT" ]
null
null
null
payment/migrations/0002_auto_20210910_0851.py
mahbd/brur-payment
cb9812e1d2f8c22c7015708ca9bb4fc05bfb1452
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-09-10 08:51 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('payment', '0001_initial'), ] operations = [ migrations.AddField( model_name='payment', name='pay_code', ...
26.25
88
0.576871
ce162ef79739dca6fb9ab15c671d9dae57816638
132
py
Python
main.py
nibir404/Linear-Solve
64af9f5447287a73380885877ee1e88222f1f12f
[ "Apache-2.0" ]
null
null
null
main.py
nibir404/Linear-Solve
64af9f5447287a73380885877ee1e88222f1f12f
[ "Apache-2.0" ]
null
null
null
main.py
nibir404/Linear-Solve
64af9f5447287a73380885877ee1e88222f1f12f
[ "Apache-2.0" ]
null
null
null
import numpy as np A = np.array([[3, -9], [2, 4]]) print(A) B = np.array([4, 9]) Z = np.linalg.solve(A, B) print(Z)
11
32
0.492424