hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
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
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
794e12b7a8a7f3219aaa8282ecd50af508712999
1,392
py
Python
macrodensity/__init__.py
Zarand3r/MacroDensity
dc1afd60e2c3e8f6f81ef0cad85619bc1469c7ea
[ "MIT" ]
57
2016-09-19T21:40:30.000Z
2022-02-24T03:39:51.000Z
macrodensity/__init__.py
Zarand3r/MacroDensity
dc1afd60e2c3e8f6f81ef0cad85619bc1469c7ea
[ "MIT" ]
21
2017-05-25T03:15:31.000Z
2021-11-04T16:08:18.000Z
macrodensity/__init__.py
Zarand3r/MacroDensity
dc1afd60e2c3e8f6f81ef0cad85619bc1469c7ea
[ "MIT" ]
29
2016-04-11T02:01:08.000Z
2022-01-24T21:22:06.000Z
############################################################################### # Copyright Keith Butler(2014) # # # # This file MacroDensity.__init__.py is free software: you can # ...
58
79
0.498563
794e13a475f041a82d733bbdc9e85698e4c514fa
15,454
py
Python
satflow/models/gan/generators.py
mfrasco/satflow
2e56b46dfd81a05670c6d2b1bda8c9eec38301a7
[ "MIT" ]
null
null
null
satflow/models/gan/generators.py
mfrasco/satflow
2e56b46dfd81a05670c6d2b1bda8c9eec38301a7
[ "MIT" ]
null
null
null
satflow/models/gan/generators.py
mfrasco/satflow
2e56b46dfd81a05670c6d2b1bda8c9eec38301a7
[ "MIT" ]
null
null
null
import functools import torch from torch import nn as nn from typing import Union from satflow.models.gan.common import get_norm_layer, init_net from satflow.models.utils import get_conv_layer import antialiased_cnns def define_generator( input_nc, output_nc, ngf, netG: Union[str, torch.nn.Module], ...
35.939535
132
0.55662
794e14e160852403b6dfeb22aed50ef6d8b97635
532
py
Python
Taller Estructura Control Secuencial/Ejercicio_8.py
DiegoC386/Algoritmos_Diego
bb22b765ca15cb6ced5e3daae45cec300c421c18
[ "MIT" ]
null
null
null
Taller Estructura Control Secuencial/Ejercicio_8.py
DiegoC386/Algoritmos_Diego
bb22b765ca15cb6ced5e3daae45cec300c421c18
[ "MIT" ]
null
null
null
Taller Estructura Control Secuencial/Ejercicio_8.py
DiegoC386/Algoritmos_Diego
bb22b765ca15cb6ced5e3daae45cec300c421c18
[ "MIT" ]
null
null
null
""" Entradas LongitudLado1-->float-->Lado1 LongitudLado2-->float-->Lado2 LongitudLado3-->float-->Lado3 Salidas Semiperimetro-->float-->S Area-->float-->A """ import math #ENTRADA Lado1=float(input("Ingrese la longitud del primer lado: ")) Lado2=float(input("Ingrese la longitud del segundo lado: ")) Lado3=float(input("I...
28
60
0.714286
794e15eb8b5e789f522fcade043e284c5f706f1b
792
py
Python
core/urls.py
nixonsparrow/BookWorm
0248334e4b5a40e9faad5ec485e1a0abbdfe0c7a
[ "Apache-2.0" ]
1
2022-01-17T17:47:26.000Z
2022-01-17T17:47:26.000Z
core/urls.py
nixonsparrow/BookWorm
0248334e4b5a40e9faad5ec485e1a0abbdfe0c7a
[ "Apache-2.0" ]
1
2022-01-17T19:23:19.000Z
2022-01-17T19:23:19.000Z
core/urls.py
nixonsparrow/BookWorm
0248334e4b5a40e9faad5ec485e1a0abbdfe0c7a
[ "Apache-2.0" ]
null
null
null
"""core URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/4.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 vi...
34.434783
77
0.700758
794e163f3b2a7bd7df34b5370d68695cfedd93cd
1,560
py
Python
python/setup.py
yasushi-saito/wslink
25c7d3b2f6da25b100bc69efa4e06b1defe22ca1
[ "BSD-3-Clause" ]
null
null
null
python/setup.py
yasushi-saito/wslink
25c7d3b2f6da25b100bc69efa4e06b1defe22ca1
[ "BSD-3-Clause" ]
null
null
null
python/setup.py
yasushi-saito/wslink
25c7d3b2f6da25b100bc69efa4e06b1defe22ca1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re # import shutil import sys # import itertools from setuptools import setup, find_packages # from setuptools.command.install import install # from distutils.dir_util import copy_tree readme = "" with open("README.rst") as f: readme = f.read() s...
31.2
142
0.64359
794e166be9c5ab201424284bbe3f990d7b13fd11
491
py
Python
data/scripts/templates/object/tangible/ship/crafted/booster/shared_fast_charge_fuel_cell_mk3.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/ship/crafted/booster/shared_fast_charge_fuel_cell_mk3.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/ship/crafted/booster/shared_fast_charge_fuel_cell_mk3.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/ship/crafted/booster/shared_fast_charge_fuel_cell_mk3.iff" result.a...
28.882353
94
0.749491
794e16ae16a01b502f2df02442672a0f17f125c9
5,651
py
Python
src/sentinel/azext_sentinel/vendored_sdks/security_insights/operations/comments_operations.py
hpsan/azure-cli-extensions
be1589bb6dd23837796e088d28e65e873050171e
[ "MIT" ]
null
null
null
src/sentinel/azext_sentinel/vendored_sdks/security_insights/operations/comments_operations.py
hpsan/azure-cli-extensions
be1589bb6dd23837796e088d28e65e873050171e
[ "MIT" ]
null
null
null
src/sentinel/azext_sentinel/vendored_sdks/security_insights/operations/comments_operations.py
hpsan/azure-cli-extensions
be1589bb6dd23837796e088d28e65e873050171e
[ "MIT" ]
1
2020-07-16T23:49:49.000Z
2020-07-16T23:49:49.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
47.487395
241
0.668554
794e16b975142922d7dcc1b1c516bfe2b1090f7e
500
py
Python
RecoTauTag/RecoTau/python/PFRecoTauDiscriminationByIsolationUsingLeadingPion_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-24T19:10:26.000Z
2019-02-19T11:45:32.000Z
RecoTauTag/RecoTau/python/PFRecoTauDiscriminationByIsolationUsingLeadingPion_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
3
2018-08-23T13:40:24.000Z
2019-12-05T21:16:03.000Z
RecoTauTag/RecoTau/python/PFRecoTauDiscriminationByIsolationUsingLeadingPion_cfi.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
5
2018-08-21T16:37:52.000Z
2020-01-09T13:33:17.000Z
import FWCore.ParameterSet.Config as cms import copy from RecoTauTag.RecoTau.PFRecoTauDiscriminationByIsolation_cfi import pfRecoTauDiscriminationByIsolation from RecoTauTag.RecoTau.TauDiscriminatorTools import requireLeadPion pfRecoTauDiscriminationByIsolationUsingLeadingPion = copy.deepcopy(pfRecoTauDiscriminatio...
41.666667
105
0.892
794e16eb28d32f4b7ab0992ea30b6080991ffc77
141
py
Python
lib/db.py
hygoni/CNUNotifier
964a7b080ab3ec1caa3769d4c5b164fbae5161ba
[ "MIT" ]
4
2019-08-13T12:09:25.000Z
2021-05-29T15:33:55.000Z
lib/db.py
hygoni/CNUNotifier
964a7b080ab3ec1caa3769d4c5b164fbae5161ba
[ "MIT" ]
1
2019-08-18T07:59:54.000Z
2019-08-19T12:20:45.000Z
lib/db.py
hygoni/CNUNotifier
964a7b080ab3ec1caa3769d4c5b164fbae5161ba
[ "MIT" ]
1
2019-08-10T10:32:42.000Z
2019-08-10T10:32:42.000Z
import pymysql def getConn(): conn = pymysql.connect(host='localhost', user='cnunoti', password='cnunoti', db='cnunoti') return conn
23.5
92
0.702128
794e179f841bd8c4954241cef2dbc4f62f132d8e
6,166
py
Python
env/lib/python3.8/site-packages/plotly/graph_objs/volume/slices/_y.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/volume/slices/_y.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/volume/slices/_y.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Y(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "volume.slices" _path_str = "volume.slices.y" _valid_props = {"fill", "locations", "locationssrc",...
28.67907
82
0.541194
794e18468d7c43b4aaf696656dd6b4236b913101
51
py
Python
vesselregistration/moduleone.py
mjirik/vesselregistration
ed0686625560ebb69a7f2fdf527b8d1ab21ae503
[ "MIT" ]
null
null
null
vesselregistration/moduleone.py
mjirik/vesselregistration
ed0686625560ebb69a7f2fdf527b8d1ab21ae503
[ "MIT" ]
null
null
null
vesselregistration/moduleone.py
mjirik/vesselregistration
ed0686625560ebb69a7f2fdf527b8d1ab21ae503
[ "MIT" ]
null
null
null
def print_hello(name): print("Hello " + name)
12.75
26
0.627451
794e191b6141569729ce5dc653dc5e9b9fd131a4
6,079
py
Python
tests/pfcwd/test_pfcwd_all_port_storm.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
132
2016-10-19T12:34:44.000Z
2022-03-16T09:00:39.000Z
tests/pfcwd/test_pfcwd_all_port_storm.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
3,152
2016-09-21T23:05:58.000Z
2022-03-31T23:29:08.000Z
tests/pfcwd/test_pfcwd_all_port_storm.py
shubav/sonic-mgmt
0ff71b907a55489bb4ed7d17b1682380fd459bf2
[ "Apache-2.0" ]
563
2016-09-20T01:00:15.000Z
2022-03-31T22:43:54.000Z
import logging import os import pytest from tests.common.fixtures.conn_graph_facts import fanout_graph_facts from tests.common.helpers.pfc_storm import PFCMultiStorm from tests.common.plugins.loganalyzer.loganalyzer import LogAnalyzer from .files.pfcwd_helper import start_wd_on_ports TEMPLATES_DIR = os.path.join(os.p...
38.232704
124
0.691232
794e198ec6d97e867e51117264495da76ac669ad
57,633
py
Python
python/ccxt/async_support/bibox.py
ebarti/ccxt
da2770a5ec3fa6b18e789f202cdebdab71925f64
[ "MIT" ]
null
null
null
python/ccxt/async_support/bibox.py
ebarti/ccxt
da2770a5ec3fa6b18e789f202cdebdab71925f64
[ "MIT" ]
null
null
null
python/ccxt/async_support/bibox.py
ebarti/ccxt
da2770a5ec3fa6b18e789f202cdebdab71925f64
[ "MIT" ]
1
2022-03-14T18:27:32.000Z
2022-03-14T18:27:32.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.async_support.base.exchange import Exchange import hashlib import math import json from ccxt.base.errors import ExchangeError fro...
42.283933
453
0.445509
794e1a8780f1a93d897238f81e1731cb14bfddf5
283
py
Python
setup.py
edolramba/QWebview-plus
77e160d17af9d3ad203886198cd522f9a4796445
[ "MIT" ]
225
2016-03-11T06:03:41.000Z
2022-01-23T17:19:21.000Z
setup.py
edolramba/QWebview-plus
77e160d17af9d3ad203886198cd522f9a4796445
[ "MIT" ]
20
2016-03-26T05:42:15.000Z
2021-11-13T01:01:04.000Z
setup.py
edolramba/QWebview-plus
77e160d17af9d3ad203886198cd522f9a4796445
[ "MIT" ]
90
2016-03-25T04:03:18.000Z
2022-03-02T04:21:09.000Z
import sys from cx_Freeze import setup, Executable setup( name = "QWebview-plus", version = "1.0", description = "QWebview supports Kiwoom Open API+ for JavaScript", author = "sculove", executables = [Executable("qwebviewplus.py", base="Win32GUI")])
35.375
74
0.657244
794e1ac82b35d733cd03ec2f32db1785bb11d8e2
1,017
py
Python
problems/exercism/guidos-gorgeous-lasagna/lasagna.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
problems/exercism/guidos-gorgeous-lasagna/lasagna.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
problems/exercism/guidos-gorgeous-lasagna/lasagna.py
JayMonari/py-personal
ef16d030cc7fe2266d661e1378d95f588229b746
[ "MIT" ]
null
null
null
EXPECTED_BAKE_TIME = 40 def bake_time_remaining(elapsed_time: int) -> int: ''' :param elapsed_time: int baking time already elapsed :return: int remaining bake time derived from 'EXPECTED_BAKE_TIME' Function that takes the actual minutes the lasagna has been in the oven as an argument and returns...
30.818182
78
0.73353
794e1acf56a71eeb0edbc9f99239d83b79312e4e
1,105
py
Python
Masters/Color/Delete Non-Color Layers in Selected Glyphs.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
Masters/Color/Delete Non-Color Layers in Selected Glyphs.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
Masters/Color/Delete Non-Color Layers in Selected Glyphs.py
danielgamage/Mekkablue-Scripts
0b0b4468ec938f8c669b3552e2fa429080b65bf1
[ "Apache-2.0" ]
null
null
null
#MenuTitle: Delete Non-Color Layers in Selected Glyphs # -*- coding: utf-8 -*- __doc__=""" Deletes all sublayers in all glyphs that are not of type "Color X" (CPAL/COLR layers). """ import GlyphsApp thisFont = Glyphs.font # frontmost font thisFontMaster = thisFont.selectedFontMaster # active master thisFontMasterID =...
34.53125
86
0.774661
794e1aeafc4c2376798dbb423c8ab391c618291c
2,577
py
Python
setup.py
converghub/qrllib
d14ce543094fe6fb3ebe3d303b98b4d6129a5fdd
[ "MIT" ]
null
null
null
setup.py
converghub/qrllib
d14ce543094fe6fb3ebe3d303b98b4d6129a5fdd
[ "MIT" ]
null
null
null
setup.py
converghub/qrllib
d14ce543094fe6fb3ebe3d303b98b4d6129a5fdd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import os import subprocess from setuptools import setup, Extension from setuptools.command.build_ext import build_ext from distutils.sysconfig import get_python_inc import distutils.sysconfig as sysconfig class CMakeBuild(build_ext): def run(self): ...
36.814286
120
0.604191
794e1cd6f48df42f9f86d5a0127f21465e0d0e4d
2,287
py
Python
test_detector.py
ResearchingDexter/mtcnn-pytorch
a7c5eb8ed2cd984a0990d59267cbac5a83770624
[ "MIT" ]
null
null
null
test_detector.py
ResearchingDexter/mtcnn-pytorch
a7c5eb8ed2cd984a0990d59267cbac5a83770624
[ "MIT" ]
null
null
null
test_detector.py
ResearchingDexter/mtcnn-pytorch
a7c5eb8ed2cd984a0990d59267cbac5a83770624
[ "MIT" ]
null
null
null
from src.detector import detect_faces from PIL import Image,ImageDraw import os import torch import numpy as np import matplotlib.pyplot as plt import tqdm @torch.no_grad() def img_locate(path): img=Image.open(path) boundboxes,landmark=detect_faces(img.copy()) print(boundboxes,landmark) img_draw=ImageDr...
38.116667
90
0.641014
794e1d7938c075776f30fdc80065d384158e74f2
12,921
py
Python
behave/formatter/pretty.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
13
2019-10-03T19:15:14.000Z
2019-10-16T02:01:57.000Z
behave/formatter/pretty.py
wombat70/behave
c54493b0531795d946ac6754bfc643248cf3056a
[ "BSD-2-Clause" ]
2
2019-08-28T00:05:00.000Z
2020-03-09T19:43:25.000Z
behave/formatter/pretty.py
fluendo/behave
eeffde083456dcf1a0ea9b6139b32091970118c0
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf8 -*- from __future__ import absolute_import, division import sys from behave.formatter.ansi_escapes import escapes, up from behave.formatter.base import Formatter from behave.model_core import Status from behave.model_describe import escape_cell, escape_triple_quotes from behave.textutil import inden...
34.640751
83
0.565978
794e1e2b6541885954f585ef3260d03ceacd3528
1,463
py
Python
uqueue.py
aerodesic/MeshSemtech
2b59c30559309326f48f8562b6a98b43032941d2
[ "MIT" ]
1
2020-02-17T11:12:51.000Z
2020-02-17T11:12:51.000Z
uqueue.py
aerodesic/MeshSemtech
2b59c30559309326f48f8562b6a98b43032941d2
[ "MIT" ]
null
null
null
uqueue.py
aerodesic/MeshSemtech
2b59c30559309326f48f8562b6a98b43032941d2
[ "MIT" ]
null
null
null
from ulock import * class QueueException(Exception): pass class queue(): def __init__(self, maxlen=0): self._maxlen = maxlen self._lock = lock() self._fill = lock(True) self._queue = [] def __len__(self): with self._lock: return len(self._queue) de...
23.983607
70
0.524949
794e1f68d12d08b12f3a8762577a46adccdd3f4a
5,927
py
Python
train_classifier.py
abekoh/dcgan_font
85c8580ae8aaeee9b9a10793063f02fe45067894
[ "MIT" ]
null
null
null
train_classifier.py
abekoh/dcgan_font
85c8580ae8aaeee9b9a10793063f02fe45067894
[ "MIT" ]
null
null
null
train_classifier.py
abekoh/dcgan_font
85c8580ae8aaeee9b9a10793063f02fe45067894
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import cv2 import chainer from chainer import cuda from chainer import optimizers from chainer import FunctionSet from chainer import Variable from chainer import serializers from chainer import functions as F from chainer import links as L from mylib.chainer import dataset...
36.58642
119
0.625612
794e2015bfe7de13c7e6b0a303f593f02933205d
3,980
py
Python
rexchain/blockchain/views.py
Prescrypto/RexChain
abf4bb8d0ec3c906221224ba82b77cfac8b06eca
[ "Apache-2.0" ]
3
2021-04-16T21:53:41.000Z
2021-05-18T07:28:47.000Z
rexchain/blockchain/views.py
Prescrypto/RexChain
abf4bb8d0ec3c906221224ba82b77cfac8b06eca
[ "Apache-2.0" ]
34
2018-10-11T17:16:44.000Z
2021-09-08T00:31:57.000Z
rexchain/blockchain/views.py
Prescrypto/RexChain
abf4bb8d0ec3c906221224ba82b77cfac8b06eca
[ "Apache-2.0" ]
1
2019-05-07T20:11:55.000Z
2019-05-07T20:11:55.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals # Python libs import json import logging # Django packages from django.http import HttpResponse from django.shortcuts import render, redirect from django.views.generic import View # Our Models from django.conf import settings from .models import Payload,...
33.445378
107
0.61005
794e202247e07930e6dc69151ffef0dc8f934318
11,507
gyp
Python
src/session/session_test.gyp
KawaneRio/mozc
215e669e6fdac2040a28dd3f97cfa0910ee4c9df
[ "BSD-3-Clause" ]
1,144
2015-04-23T16:18:45.000Z
2022-03-29T19:37:33.000Z
src/session/session_test.gyp
KawaneRio/mozc
215e669e6fdac2040a28dd3f97cfa0910ee4c9df
[ "BSD-3-Clause" ]
291
2015-05-04T07:53:37.000Z
2022-03-22T00:09:05.000Z
src/session/session_test.gyp
KawaneRio/mozc
215e669e6fdac2040a28dd3f97cfa0910ee4c9df
[ "BSD-3-Clause" ]
301
2015-05-03T00:07:18.000Z
2022-03-21T10:48:29.000Z
# Copyright 2010-2021, Google Inc. # 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 and ...
32.597734
123
0.607717
794e20d5e43a481ab209b0e7f79b23da36df45c3
6,184
py
Python
Src/StdLib/Lib/site-packages/win32com/test/testPersist.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,078
2016-07-19T02:48:30.000Z
2022-03-30T21:22:34.000Z
Src/StdLib/Lib/site-packages/win32com/test/testPersist.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
576
2017-05-21T12:36:48.000Z
2022-03-30T13:47:03.000Z
Src/StdLib/Lib/site-packages/win32com/test/testPersist.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
269
2017-05-21T04:44:47.000Z
2022-03-31T16:18:13.000Z
import pythoncom import win32com.server.util import time import win32com, sys, string, win32api, traceback import win32com.client.dynamic import win32com.client import pythoncom from win32com.axcontrol import axcontrol from pywintypes import Unicode from win32com import storagecon from win32com.test.util import CheckC...
30.165854
170
0.645052
794e2241cfb748c4cff837583b25783cc4587e40
14,835
py
Python
modules/marriage.py
CapnS/uwu-bot
3c06badaa3c76d3f2f6949fbcc20c7b0e33a5e04
[ "MIT" ]
null
null
null
modules/marriage.py
CapnS/uwu-bot
3c06badaa3c76d3f2f6949fbcc20c7b0e33a5e04
[ "MIT" ]
null
null
null
modules/marriage.py
CapnS/uwu-bot
3c06badaa3c76d3f2f6949fbcc20c7b0e33a5e04
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from discord.ext.commands import cooldown from discord.ext.commands.cooldowns import BucketType import time import asyncio import asyncpg from datetime import datetime, timezone, timedelta from utils import errorhandler from random import randint, choice heartt = "<:hear...
41.554622
173
0.49363
794e234301e2e42c8a568c2cfd3640dce94809a7
557
py
Python
concursinhos/urls.py
gmendonc/concursinhos-dev
24e6fe6917d6a844175f64b20ba5166b88ea93b4
[ "Unlicense", "MIT" ]
null
null
null
concursinhos/urls.py
gmendonc/concursinhos-dev
24e6fe6917d6a844175f64b20ba5166b88ea93b4
[ "Unlicense", "MIT" ]
null
null
null
concursinhos/urls.py
gmendonc/concursinhos-dev
24e6fe6917d6a844175f64b20ba5166b88ea93b4
[ "Unlicense", "MIT" ]
null
null
null
from django.conf.urls import patterns, include, url from django.contrib import admin from django.conf import settings urlpatterns = patterns('', # Examples: # url(r'^$', 'concursinhos.views.home', name='home'), # url(r'^blog/', include('blog.urls')), #url(r'^$', include('quiz.urls')), url(r'^quiz/'...
29.315789
103
0.628366
794e240470229cb6a11eb83066b5147fddb11c87
10,080
py
Python
training/dataset.py
LightNormal/StyleGAN2withGUI
d2ffa81a4e7b2b779423bb854230863d57f0eb85
[ "BSD-Source-Code" ]
4
2020-07-16T00:49:03.000Z
2021-02-23T23:42:02.000Z
training/dataset.py
LightNormal/StyleGAN2withGUI
d2ffa81a4e7b2b779423bb854230863d57f0eb85
[ "BSD-Source-Code" ]
null
null
null
training/dataset.py
LightNormal/StyleGAN2withGUI
d2ffa81a4e7b2b779423bb854230863d57f0eb85
[ "BSD-Source-Code" ]
1
2020-12-09T12:02:04.000Z
2020-12-09T12:02:04.000Z
# Copyright (c) 2019, NVIDIA Corporation. All rights reserved. # # This work is made available under the Nvidia Source Code License-NC. # To view a copy of this license, visit # https://nvlabs.github.io/stylegan2/license.html """Multi-resolution input data pipeline.""" import os import glob import numpy as ...
50.4
140
0.605456
794e2422dd9cf0c29d4aa32ecdaed24ce4872b12
6,276
py
Python
3rdparty/huawei-lte-api/huawei_lte_api/Client.py
tux1c0/plugin-huawei4g
af83ce6321db23fcfd51eb204e00c287d3ea2325
[ "MIT" ]
null
null
null
3rdparty/huawei-lte-api/huawei_lte_api/Client.py
tux1c0/plugin-huawei4g
af83ce6321db23fcfd51eb204e00c287d3ea2325
[ "MIT" ]
1
2020-06-21T20:35:27.000Z
2020-07-14T20:08:55.000Z
3rdparty/huawei-lte-api/huawei_lte_api/Client.py
tux1c0/plugin-huawei4g
af83ce6321db23fcfd51eb204e00c287d3ea2325
[ "MIT" ]
3
2020-02-27T11:35:55.000Z
2021-03-25T08:51:51.000Z
from huawei_lte_api.Connection import Connection from huawei_lte_api.api.Device import Device from huawei_lte_api.api.User import User from huawei_lte_api.api.Monitoring import Monitoring from huawei_lte_api.api.Security import Security from huawei_lte_api.api.WebServer import WebServer from huawei_lte_api.api.WLan imp...
46.147059
86
0.773582
794e24f954bf9531a4ba99da6cffc088d9380a79
12,526
py
Python
scripts/NGS/plotutils.py
shivankurkapoor/moleculardating
4a72c3e92a09ab321e0d92840cc7619857bbab8a
[ "BSD-3-Clause" ]
1
2018-04-24T04:38:33.000Z
2018-04-24T04:38:33.000Z
scripts/NGS/plotutils.py
shivankurkapoor/molecular-dating
4a72c3e92a09ab321e0d92840cc7619857bbab8a
[ "BSD-3-Clause" ]
null
null
null
scripts/NGS/plotutils.py
shivankurkapoor/molecular-dating
4a72c3e92a09ab321e0d92840cc7619857bbab8a
[ "BSD-3-Clause" ]
null
null
null
cnames = { 'palegoldenrod': '#EEE8AA', 'palegreen': '#98FB98', 'paleturquoise': '#AFEEEE', 'palevioletred': '#DB7093', 'papayawhip': '#FFEFD5', 'peachpuff': '#FFDAB9', 'peru': '#CD853F', 'pink': '#FFC0CB', 'plum': '#DDA0DD', 'powderblue': '#B0E0E6', 'purple': '#800...
31.472362
96
0.357975
794e252a6923a3e368203e7308f80bf4d86aac85
3,089
py
Python
autotest/gdrivers/genbin.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
1
2015-04-21T19:52:03.000Z
2015-04-21T19:52:03.000Z
autotest/gdrivers/genbin.py
tbonfort/gdal
173e0659bc3f2e6b97c2c07332a3066478afb821
[ "MIT" ]
7
2018-04-09T09:35:42.000Z
2018-05-22T06:54:05.000Z
autotest/gdrivers/genbin.py
pramsey/gdal
965421b79fe4d3332b0f2f633b072fdcab2b700a
[ "MIT" ]
2
2018-05-08T01:51:34.000Z
2019-06-26T05:08:56.000Z
#!/usr/bin/env python ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test Generic Binary format driver. # Author: Frank Warmerdam <warmerdam@pobox.com> # ##############################################################################...
35.505747
79
0.616704
794e25acc1e2d8199bffb7b683c74d17997c4047
254
py
Python
Alba/albaproject/manage.py
marcos-sb/quick-openstacked-hadoop
ae40d842b31a16e212d1474e9cd8e8f022be99a8
[ "Apache-2.0" ]
null
null
null
Alba/albaproject/manage.py
marcos-sb/quick-openstacked-hadoop
ae40d842b31a16e212d1474e9cd8e8f022be99a8
[ "Apache-2.0" ]
null
null
null
Alba/albaproject/manage.py
marcos-sb/quick-openstacked-hadoop
ae40d842b31a16e212d1474e9cd8e8f022be99a8
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "albaproject.settings") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.090909
75
0.775591
794e26220fe4d90ac9f974ada53e62b4fe0a538b
2,123
py
Python
users/forms.py
edevars/taco_blog
b21ffee6899e07928f40ec85a8ff40872b9a77a9
[ "MIT" ]
null
null
null
users/forms.py
edevars/taco_blog
b21ffee6899e07928f40ec85a8ff40872b9a77a9
[ "MIT" ]
null
null
null
users/forms.py
edevars/taco_blog
b21ffee6899e07928f40ec85a8ff40872b9a77a9
[ "MIT" ]
null
null
null
# Django from django import forms from django.contrib.auth.models import User from users.models import Profile class SignupForm(forms.Form): """Sign up form.""" username = forms.CharField(label=False, min_length=4, max_length=50, widget=forms.TextInput( attrs={'placeholder': 'Usuario', 'class': 'inpu...
37.910714
99
0.666039
794e2659302473b0b01ac49d4338d959051e567f
51,260
py
Python
python/paddle/nn/functional/activation.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
2
2022-03-30T09:55:45.000Z
2022-03-30T09:55:49.000Z
python/paddle/nn/functional/activation.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
null
null
null
python/paddle/nn/functional/activation.py
DevilCarp/Paddle
04325d2cbefb029a4478bdc069d3279cd566ac6a
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle 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 app...
33.768116
133
0.556828
794e267eeef55a48466cf579457b30cc905c49e3
6,256
py
Python
pygsm/growing_string_methods/se_cross.py
espottesmith/pyGSM
5bf263f9ef6cbee3ec16355c5eb1839446e704e7
[ "MIT" ]
null
null
null
pygsm/growing_string_methods/se_cross.py
espottesmith/pyGSM
5bf263f9ef6cbee3ec16355c5eb1839446e704e7
[ "MIT" ]
null
null
null
pygsm/growing_string_methods/se_cross.py
espottesmith/pyGSM
5bf263f9ef6cbee3ec16355c5eb1839446e704e7
[ "MIT" ]
null
null
null
from __future__ import print_function # standard library imports import sys import os from os import path # third party import numpy as np # local application imports sys.path.append(path.dirname( path.dirname( path.abspath(__file__)))) from utilities import * from wrappers import Molecule from .base_gsm import Base_...
40.623377
147
0.585997
794e276fadef10163df8a726e8bcca57f0c8dfc8
438
py
Python
CONTENT/DS-n-Algos/ALGO/_LEETCODE/042_trapping_rain_water/42.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
CONTENT/DS-n-Algos/ALGO/_LEETCODE/042_trapping_rain_water/42.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
CONTENT/DS-n-Algos/ALGO/_LEETCODE/042_trapping_rain_water/42.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
class Solution: def trap(self, height: "List[int]") -> "int": result = 0 stack = [] for i in range(len(height)): while stack and height[i] > height[stack[-1]]: pre = stack.pop() if stack: h = min(height[stack[-1]], height[i]) ...
33.692308
69
0.440639
794e28503fcea03264b036cb01d22cdfbc53f4d8
32,394
py
Python
models/official/resnet/resnet_main_onecycle.py
henryqin1997/tpu
cf7f26bb3d2bdfa71652f0e216be35a2393ff7ef
[ "Apache-2.0" ]
null
null
null
models/official/resnet/resnet_main_onecycle.py
henryqin1997/tpu
cf7f26bb3d2bdfa71652f0e216be35a2393ff7ef
[ "Apache-2.0" ]
null
null
null
models/official/resnet/resnet_main_onecycle.py
henryqin1997/tpu
cf7f26bb3d2bdfa71652f0e216be35a2393ff7ef
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 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...
40.240994
111
0.683522
794e28c692faff4e7f74b6a5dd0f2cb2b30ea916
528
py
Python
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 90/90.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
101
2021-12-20T11:57:11.000Z
2022-03-23T09:49:13.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 90/90.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
4
2022-01-12T11:55:56.000Z
2022-02-12T04:53:33.000Z
Programming Languages/Python/Theory/100_Python_Exercises/Exercises/Exercise 90/90.py
jaswinder9051998/Resources
fd468af37bf24ca57555d153ee64693c018e822e
[ "MIT" ]
38
2022-01-12T11:56:16.000Z
2022-03-23T10:07:52.000Z
#Please download the database file database.db and use Python to access the database table rows that have an area of 2,000,000 or greater. Then export those rows to a CSV file import sqlite3 import pandas conn = sqlite3.connect("database.db") cur = conn.cursor() cur.execute("SELECT * FROM countries WHERE area >= 20000...
31.058824
175
0.751894
794e28e18a2e33ce9a76e4fc75fa3ac36954d757
532
py
Python
class_based_views/django1/django1/web/models.py
Nikoletazl/Web-Framework
a04372a305797a84cdbccde13a1e47da8d551ea3
[ "MIT" ]
null
null
null
class_based_views/django1/django1/web/models.py
Nikoletazl/Web-Framework
a04372a305797a84cdbccde13a1e47da8d551ea3
[ "MIT" ]
null
null
null
class_based_views/django1/django1/web/models.py
Nikoletazl/Web-Framework
a04372a305797a84cdbccde13a1e47da8d551ea3
[ "MIT" ]
null
null
null
from django.db import models class Category(models.Model): NAME_MAX_LEN = 15 name = models.CharField( max_length=NAME_MAX_LEN, ) def __str__(self): return self.name class Todo(models.Model): TITLE_MAX_LEN = 24 title = models.CharField( max_length=...
17.733333
37
0.597744
794e29bdd3bf64fb8d3473036f9efbc36cbf307a
6,271
py
Python
python/tests/proton_tests/connect.py
josusky/qpid-proton
122355ab5eeed05c7fe1169653387afb1c9fdd95
[ "Apache-2.0" ]
1
2021-01-20T16:04:42.000Z
2021-01-20T16:04:42.000Z
python/tests/proton_tests/connect.py
francescoraves483/qpid-proton
3eb62f51815602c86cdf0112f1154f9e29883774
[ "Apache-2.0" ]
33
2021-04-27T21:40:31.000Z
2021-06-30T17:52:17.000Z
python/tests/proton_tests/connect.py
francescoraves483/qpid-proton
3eb62f51815602c86cdf0112f1154f9e29883774
[ "Apache-2.0" ]
2
2021-01-28T17:42:06.000Z
2021-05-14T08:08:13.000Z
from __future__ import absolute_import # # 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, Ver...
36.459302
88
0.595918
794e2a6ff600c50d422e4645444f728365a478d7
5,304
py
Python
keras/benchmarks/keras_examples_benchmarks/cifar10_cnn_benchmark_test.py
winnerineast/keras
1e94c43d7ba0d7b6b629b2300e40470f495bdbe0
[ "Apache-2.0" ]
null
null
null
keras/benchmarks/keras_examples_benchmarks/cifar10_cnn_benchmark_test.py
winnerineast/keras
1e94c43d7ba0d7b6b629b2300e40470f495bdbe0
[ "Apache-2.0" ]
null
null
null
keras/benchmarks/keras_examples_benchmarks/cifar10_cnn_benchmark_test.py
winnerineast/keras
1e94c43d7ba0d7b6b629b2300e40470f495bdbe0
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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...
37.885714
93
0.692119
794e2abf5a24b34430ae8b54c3049bd20f1ea8b1
22,152
py
Python
salt/modules/win_update.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/win_update.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
salt/modules/win_update.py
skrobul/salt
ef7fb71082cce7a9783e00b9c65062fefae09263
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Module for running windows updates. :depends: - win32com - win32con - win32api - pywintypes .. versionadded: (Helium) ''' # Import Python libs import logging try: import win32com.client import pythoncom HAS_DEPENDENCIES = True except ImportError: ...
36.494234
155
0.619628
794e2b175b2064a69b919caa321bf90ef310a05d
175
py
Python
accounts/apps.py
shervinbdndev/Django-Shop
baa4e7b91fbdd01ee591049c12cd9fbfaa434379
[ "MIT" ]
13
2022-02-25T05:04:58.000Z
2022-03-15T10:55:24.000Z
accounts/apps.py
shervinbdndev/Django-Shop
baa4e7b91fbdd01ee591049c12cd9fbfaa434379
[ "MIT" ]
null
null
null
accounts/apps.py
shervinbdndev/Django-Shop
baa4e7b91fbdd01ee591049c12cd9fbfaa434379
[ "MIT" ]
1
2022-03-03T09:21:49.000Z
2022-03-03T09:21:49.000Z
from django.apps import AppConfig class AccountsConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'accounts' verbose_name = 'Users'
21.875
56
0.742857
794e2bfe5f44ea6368f9d55fe43d49288452b1b8
887
py
Python
examples/Policy/Pool_Testing/Generate_policy.py
healthbadge/episimmer
fcb3f7df812be045e2a6d031cac42080ad850d60
[ "BSD-3-Clause" ]
16
2021-04-26T14:52:32.000Z
2022-01-22T07:13:06.000Z
examples/Policy/Pool_Testing/Generate_policy.py
healthbadge/episimmer
fcb3f7df812be045e2a6d031cac42080ad850d60
[ "BSD-3-Clause" ]
34
2021-05-21T12:53:24.000Z
2022-02-09T16:30:40.000Z
examples/Policy/Pool_Testing/Generate_policy.py
healthbadge/episimmer
fcb3f7df812be045e2a6d031cac42080ad850d60
[ "BSD-3-Clause" ]
4
2021-04-08T07:52:06.000Z
2021-05-29T05:58:15.000Z
import random from episimmer.policy import lockdown_policy, testing_policy def generate_policy(): policy_list=[] # Normal Testing #Normal_Test = Testing_Policy.TestPolicy(lambda x:60) #Normal_Test.add_machine('Simple_Machine', 200, 0.0, 0.0, 0, 50, 2) #Normal_Test.set_register_agent_testtube_func(Normal_Test.r...
31.678571
104
0.800451
794e2c4069b4986db01441487d2ae21edd4852a0
515
py
Python
query.py
no13bus/bustime
998a8a4489f3ef5310d14d73c93d9fb1690d2f49
[ "MIT" ]
60
2015-02-13T01:30:46.000Z
2020-01-18T07:07:11.000Z
query.py
no13bus/bustime
998a8a4489f3ef5310d14d73c93d9fb1690d2f49
[ "MIT" ]
null
null
null
query.py
no13bus/bustime
998a8a4489f3ef5310d14d73c93d9fb1690d2f49
[ "MIT" ]
17
2015-02-13T01:48:19.000Z
2020-10-07T11:10:54.000Z
# coding: utf-8 import click from api.bustime import BusTime from config import DISTRICT if __name__ == '__main__': lineid = click.prompt(u'请输入线路id。格式为 "城市区号-线路号-0" 或者 "城市区号-线路号-1".\n1正向行使,0逆向行驶\n', value_proc=str) city = DISTRICT[lineid.split('-')[0]] search_stop_name_or_id = click.prompt(u'请输入需要查询的站点的名称...
34.333333
102
0.737864
794e2e29cb6c15bdf3470e9facce420f0f1267fb
636
py
Python
jp.atcoder/abc106/abc106_d/9341820.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc106/abc106_d/9341820.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc106/abc106_d/9341820.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
import sys import numpy as np I = np.array(sys.stdin.read().split(), dtype=np.int64) n, m, q = I[:3] l, r = I[3 : 3 + m * 2].reshape(-1, 2).T p, q = I[3 + m * 2 :].reshape(-1, 2).T def main(): res = np.zeros((n + 2, n + 2), dtype=np.int64) np.add.at(res, (np.full(m, 1), r), 1) np.add.at(r...
22.714286
59
0.484277
794e2efbc548b665a7c720c784c20d821699e399
43
py
Python
run_generator.py
amazonprimedrocomgesaxda/StyleGAN2
5440fe431a711c5f70b81f8351e968dcf48a56f3
[ "BSD-Source-Code" ]
null
null
null
run_generator.py
amazonprimedrocomgesaxda/StyleGAN2
5440fe431a711c5f70b81f8351e968dcf48a56f3
[ "BSD-Source-Code" ]
null
null
null
run_generator.py
amazonprimedrocomgesaxda/StyleGAN2
5440fe431a711c5f70b81f8351e968dcf48a56f3
[ "BSD-Source-Code" ]
null
null
null
inport os alpha alpha.system("nvidia-smi")
14.333333
26
0.767442
794e2fe9dd7db8aed2ed324869d99cbda273db82
52,262
py
Python
pyscf/cc/uccsd.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
null
null
null
pyscf/cc/uccsd.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
null
null
null
pyscf/cc/uccsd.py
azag0/pyscf
1e3e27b61b3cfd22c9679d2c9851c13b3ebc5a1b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2014-2020 The PySCF Developers. 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 # # U...
40.765991
89
0.586085
794e3018387494cb970c47ef0cdd929c7b8e2cb4
304
py
Python
tests/test_mantle/logic/mothball/reduceand2.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
tests/test_mantle/logic/mothball/reduceand2.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
tests/test_mantle/logic/mothball/reduceand2.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
from magma import wire, compile, EndCircuit from mantle import And from loam.boards.icestick import IceStick icestick = IceStick() for i in range(2): icestick.J1[i].input().on() icestick.D5.on() main = icestick.main() and2 = And(2) and2(main.J1[0], main.J1[1]) wire(and2.O, main.D5) EndCircuit()
17.882353
43
0.710526
794e309d5486036756cef688f28de112279e3e04
718
py
Python
day6/ftp-client.py
water-liu/automation
0a94b8e311f037a5624c3f376dcfdf67d8577dea
[ "Apache-2.0" ]
null
null
null
day6/ftp-client.py
water-liu/automation
0a94b8e311f037a5624c3f376dcfdf67d8577dea
[ "Apache-2.0" ]
null
null
null
day6/ftp-client.py
water-liu/automation
0a94b8e311f037a5624c3f376dcfdf67d8577dea
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # _*_coding:utf-8_*_ import socket import sys import os ip_port = ('127.0.0.1', 9999) sk = socket.socket() sk.connect(ip_port) container = {'key': '', 'data': ''} while True: inputdata = input('path:') cmd, path = inputdata.split('|') file_name = os.path.basename(path) file_size...
21.757576
68
0.559889
794e30d3827e430bc8665628c3220c37eb57d24c
6,545
py
Python
pruning/abstract.py
garion9013/shrinkbench
c460cbc371ef2673b2a3f8498ca7a8aeb60d78bb
[ "MIT" ]
null
null
null
pruning/abstract.py
garion9013/shrinkbench
c460cbc371ef2673b2a3f8498ca7a8aeb60d78bb
[ "MIT" ]
null
null
null
pruning/abstract.py
garion9013/shrinkbench
c460cbc371ef2673b2a3f8498ca7a8aeb60d78bb
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from collections import OrderedDict import numpy as np import pandas as pd from .mask import mask_module from .modules import MaskedModule from .utils import get_params import tempfile, pathlib import torch class Pruning(ABC): """Base class for Pruning operations """ ...
36.361111
102
0.628266
794e31ecc19277789a85f1457df975b39a845b96
12,473
py
Python
pettingzoo/agar/players/Bot.py
footoredo/PettingZoo
b48baf9ca459d72cdcb7013ef86c5fc470856081
[ "MIT" ]
null
null
null
pettingzoo/agar/players/Bot.py
footoredo/PettingZoo
b48baf9ca459d72cdcb7013ef86c5fc470856081
[ "MIT" ]
null
null
null
pettingzoo/agar/players/Bot.py
footoredo/PettingZoo
b48baf9ca459d72cdcb7013ef86c5fc470856081
[ "MIT" ]
null
null
null
from pettingzoo.agar.players.Player import Player import numpy as np from pettingzoo.agar.modules import * from pettingzoo.agar.entity.Cell import Cell import random from copy import deepcopy import numpy as np class Bot(Player): def __init__(self, gameServer, name='bot', id = None, pos = None): super().__...
43.764912
254
0.527058
794e3213d81b1f731ddf09e9f069f40a4f8a76b8
1,214
py
Python
leetcode/358.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
1
2019-08-28T23:15:25.000Z
2019-08-28T23:15:25.000Z
leetcode/358.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
leetcode/358.py
windniw/just-for-fun
54e5c2be145f3848811bfd127f6a89545e921570
[ "Apache-2.0" ]
null
null
null
""" link: https://leetcode-cn.com/problems/rearrange-string-k-distance-apart problem: 重新排列字符串s,问新组成的字符串s'能否满足每个相同字符间至少间隔k-1个元素 solution: 贪心。依次决定s'的每位新字符是什么,放置时优先挑选当前可以放置的(与其之前的相同字符间隔已经有k)且剩余量最大的。 用堆与队列来实现,先按重复次数入大根堆,每次抛出堆顶元素,放置后将字符入队,当队内元素已经超过k时,证明队首元素可以重新被放置, 取出重新入堆。 """ class Solution: def...
28.904762
74
0.504119
794e325d45c8960c851170436427f2508231d1c3
10,700
py
Python
randimages/randimages.py
fixator10/predacogs
575ede3bbda867222cec911debf8fa306918be22
[ "MIT" ]
38
2019-05-13T19:42:31.000Z
2022-02-28T10:09:30.000Z
randimages/randimages.py
fixator10/predacogs
575ede3bbda867222cec911debf8fa306918be22
[ "MIT" ]
39
2019-05-26T01:55:26.000Z
2022-01-28T15:53:29.000Z
randimages/randimages.py
fixator10/predacogs
575ede3bbda867222cec911debf8fa306918be22
[ "MIT" ]
50
2019-03-27T15:59:36.000Z
2022-03-12T09:33:56.000Z
from redbot.core import checks, commands from redbot.core.i18n import Translator, cog_i18n from .core import Core from . import constants as sub _ = Translator("Image", __file__) @cog_i18n(_) class RandImages(Core): """Send random images (animals, art ...) from different APIs.""" @commands.cooldown(1, 0.5...
34.85342
93
0.596355
794e3379e6ea77ac30a4e79890fff2a6d7949c45
663
py
Python
pymodels/TS_V04_01/accelerator.py
lnls-fac/models
b806c3bcca6a8a8e02c1a3c9abee92f7366c44cb
[ "MIT" ]
3
2015-04-13T23:20:31.000Z
2015-04-14T01:50:31.000Z
pymodels/TS_V04_01/accelerator.py
lnls-fac/models
b806c3bcca6a8a8e02c1a3c9abee92f7366c44cb
[ "MIT" ]
17
2015-04-14T01:50:21.000Z
2016-01-28T12:50:27.000Z
pymodels/TS_V04_01/accelerator.py
lnls-fac/sirius
b806c3bcca6a8a8e02c1a3c9abee92f7366c44cb
[ "MIT" ]
1
2022-02-08T13:11:35.000Z
2022-02-08T13:11:35.000Z
import numpy as _np import lnls as _lnls import pyaccel as _pyaccel from . import lattice as _lattice default_radiation_on = False default_vchamber_on = False def create_accelerator(optics_mode=_lattice.default_optics_mode): latt, twiss_at_start = _lattice.create_lattice(optics_mode=optics_mode) accelerato...
25.5
75
0.775264
794e34f6cd26f82dd76c136ef9fae57635c9201b
14,999
py
Python
Visualization/Gld-case_study_plotting.py
achau1/plastic-networks
6845a7d83ab9d6901dfc921e5fe7ffda965758da
[ "MIT" ]
null
null
null
Visualization/Gld-case_study_plotting.py
achau1/plastic-networks
6845a7d83ab9d6901dfc921e5fe7ffda965758da
[ "MIT" ]
null
null
null
Visualization/Gld-case_study_plotting.py
achau1/plastic-networks
6845a7d83ab9d6901dfc921e5fe7ffda965758da
[ "MIT" ]
null
null
null
## Plotting individual glacier results for case studies ## 24 Apr 2019 EHU import numpy as np import matplotlib.pyplot as plt import csv import shapefile #import collections import glob #from matplotlib.colors import LogNorm from matplotlib import cm import matplotlib.patches as mpatches from shapely.geometry import ...
47.767516
198
0.677645
794e358db9dba650df024a9239322103f0972e54
2,068
py
Python
tests/unit/output/json_out_test.py
fictivekin/salt
f4b6f815d47ab8c790028e8ddad64ee0f8bb3f00
[ "Apache-2.0" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
tests/unit/output/json_out_test.py
fictivekin/salt
f4b6f815d47ab8c790028e8ddad64ee0f8bb3f00
[ "Apache-2.0" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
tests/unit/output/json_out_test.py
fictivekin/salt
f4b6f815d47ab8c790028e8ddad64ee0f8bb3f00
[ "Apache-2.0" ]
2
2017-01-05T16:14:59.000Z
2019-01-31T23:15:25.000Z
# -*- coding: utf-8 -*- ''' unittests for json outputter ''' # Import Python Libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting import TestCase from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import Salt Libs from salt.output import json_out as js...
30.411765
112
0.608801
794e35ef9b80c36133bc0ec1ec397d1cfa0b887c
5,446
py
Python
test/cli/test_submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
1
2022-01-27T03:04:29.000Z
2022-01-27T03:04:29.000Z
test/cli/test_submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
null
null
null
test/cli/test_submit.py
tzing/python-livy
0f2b0bf7832ae8fc65399506da294f4e8e019626
[ "MIT" ]
null
null
null
import argparse import datetime import logging import unittest import unittest.mock import livy.cli.submit as module import livy.cli.config import livy class TestMain(unittest.TestCase): def setUp(self) -> None: # config getter self.config = livy.cli.config.Configuration() self.config.roo...
33.207317
87
0.608704
794e360407cf097b32fafa79d113cdba46d7f435
583
py
Python
wazimap_ng/profile/migrations/0016_auto_20200412_0544.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
11
2019-12-31T20:27:22.000Z
2022-03-10T03:55:38.000Z
wazimap_ng/profile/migrations/0016_auto_20200412_0544.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
164
2020-02-06T15:02:22.000Z
2022-03-30T22:42:00.000Z
wazimap_ng/profile/migrations/0016_auto_20200412_0544.py
arghyaiitb/wazimap-ng
2a77860526d865b8fd0c22a2204f121fdb3b28a0
[ "Apache-2.0" ]
16
2020-01-03T20:30:24.000Z
2022-01-11T11:05:15.000Z
# Generated by Django 2.2.10 on 2020-04-12 05:44 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('profile', '0015_auto_20200411_2129'), ('points', '0013_auto_20200411_2129'), ] operations = [ ] database_operations = [ migration...
18.806452
68
0.641509
794e366fd616491d3e4e742376a5307708afc112
758
py
Python
misago/misago/threads/api/postingendpoint/protect.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
2
2021-03-06T21:06:13.000Z
2021-03-09T15:05:12.000Z
misago/misago/threads/api/postingendpoint/protect.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
misago/misago/threads/api/postingendpoint/protect.py
vascoalramos/misago-deployment
20226072138403108046c0afad9d99eb4163cedc
[ "MIT" ]
null
null
null
from rest_framework import serializers from . import PostingEndpoint, PostingMiddleware class ProtectMiddleware(PostingMiddleware): def use_this_middleware(self): return self.mode == PostingEndpoint.EDIT def get_serializer(self): return ProtectSerializer(data=self.request.data) def post...
31.583333
88
0.701847
794e3928e5d961cc192bf0eac058a450eb405eee
84
py
Python
nxted/files/rotate.py
xlcteam/nxtIDE
659ace68b060682aeeb6d789d88a7b6899a56f9a
[ "MIT" ]
8
2015-02-16T23:11:30.000Z
2021-01-16T00:15:25.000Z
nxted/files/rotate.py
xlcteam/nxtIDE
659ace68b060682aeeb6d789d88a7b6899a56f9a
[ "MIT" ]
3
2016-07-16T20:47:48.000Z
2021-03-25T21:27:11.000Z
nxted/files/rotate.py
xlcteam/nxtIDE
659ace68b060682aeeb6d789d88a7b6899a56f9a
[ "MIT" ]
3
2015-08-30T18:23:51.000Z
2016-10-28T15:07:59.000Z
def main(): OnFwd(OUT_A, 100) OnRev(OUT_B, 100) while 1: pass
12
21
0.511905
794e395c965ecb4db0f6cc555342351e2d387081
9,490
py
Python
src/git_portfolio/prompt.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
src/git_portfolio/prompt.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
src/git_portfolio/prompt.py
staticdev/github-portfolio
850461eed8160e046ee16664ac3dbc19e3ec0965
[ "MIT" ]
null
null
null
"""User prompting module.""" from __future__ import annotations from typing import Any from typing import cast import inquirer import git_portfolio.domain.gh_connection_settings as gcs import git_portfolio.domain.issue as i import git_portfolio.domain.pull_request as pr import git_portfolio.domain.pull_request_merge...
34.384058
86
0.513066
794e3b37d45f4fc3326e29e616b25e67122f090b
154
py
Python
selfdrive/modeld/constants.py
Basketkase/openpilot
769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e
[ "MIT" ]
73
2017-10-28T20:52:31.000Z
2022-03-05T21:41:34.000Z
selfdrive/modeld/constants.py
Basketkase/openpilot
769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e
[ "MIT" ]
15
2021-09-03T10:11:55.000Z
2022-03-24T14:19:50.000Z
selfdrive/modeld/constants.py
Basketkase/openpilot
769e1cf7a8322ca83d1a86a2f547acf5e3a5a52e
[ "MIT" ]
130
2020-08-19T04:20:02.000Z
2022-03-24T23:05:22.000Z
IDX_N = 33 def index_function(idx, max_val=192): return (max_val/1024)*(idx**2) T_IDXS = [index_function(idx, max_val=10.0) for idx in range(IDX_N)]
19.25
68
0.707792
794e3c0378d9145c9ef4990247907bc95cdc4432
4,024
py
Python
pred.py
debunagoya/PredictVictoryofSumou
16fe94defaab2173f2ca6d0051db768b38590907
[ "MIT" ]
null
null
null
pred.py
debunagoya/PredictVictoryofSumou
16fe94defaab2173f2ca6d0051db768b38590907
[ "MIT" ]
2
2020-09-26T01:03:52.000Z
2021-06-08T21:33:08.000Z
pred.py
debunagoya/PredictVictoryofSumou
16fe94defaab2173f2ca6d0051db768b38590907
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pandas as pd import numpy as np import matplotlib.pyplot as plt import lightgbm as lgb import pickle from sklearn import metrics from sklearn.svm import SVC from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score from sklearn.preprocessing import ...
29.807407
91
0.684891
794e3c19a4bb43ecdec762ffd05a01ccf93378da
331
py
Python
getUserInput.py
yogajia/Field-Programming
19891a9fff4cf66c60a4a5d9b1bd03f8d06f884b
[ "MIT" ]
null
null
null
getUserInput.py
yogajia/Field-Programming
19891a9fff4cf66c60a4a5d9b1bd03f8d06f884b
[ "MIT" ]
null
null
null
getUserInput.py
yogajia/Field-Programming
19891a9fff4cf66c60a4a5d9b1bd03f8d06f884b
[ "MIT" ]
6
2021-10-30T00:17:23.000Z
2021-10-30T01:08:09.000Z
def getUserInput(): level = 1 print("输出:请输入你的年级") grade = input("输入:") if grade in ["一年级", "二年级"]: level = 1 if grade in ["三年级", "四年级"]: level = 2 if grade in ["五年级", "六年级"]: level = 3 print("输出:请输入题目数") num = input("输入:") return level, int(num) # print(getUs...
20.6875
31
0.504532
794e3c6584938c883a90a558379a5dbfd424b2dc
3,375
py
Python
apps/home/views.py
jjsanchezc/CONPY
c7a92f5bbf214813bc7f79baff803657fb40f3a2
[ "MIT" ]
1
2022-02-19T17:21:57.000Z
2022-02-19T17:21:57.000Z
apps/home/views.py
jjsanchezc/CONPY
c7a92f5bbf214813bc7f79baff803657fb40f3a2
[ "MIT" ]
null
null
null
apps/home/views.py
jjsanchezc/CONPY
c7a92f5bbf214813bc7f79baff803657fb40f3a2
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ Copyright (c) 2019 - present AppSeed.us """ import os from django.shortcuts import render from fileinput import filename from django import template from django.contrib.auth.decorators import login_required from django.http import HttpRequest, HttpResponse, HttpResponseRedirect from django...
30.963303
72
0.653926
794e3cfa36ad6bc80f9103a307b39cb34c3659fd
539
py
Python
tests/aio/conftest.py
cuenca-mx/mongoengine-plus
01e55db2af58477bac2621ff51708daae3416268
[ "MIT" ]
null
null
null
tests/aio/conftest.py
cuenca-mx/mongoengine-plus
01e55db2af58477bac2621ff51708daae3416268
[ "MIT" ]
43
2021-04-30T20:02:49.000Z
2022-03-30T16:16:30.000Z
tests/aio/conftest.py
cuenca-mx/mongoengine-plus
01e55db2af58477bac2621ff51708daae3416268
[ "MIT" ]
null
null
null
from typing import Generator, List import pytest from .cities import City @pytest.fixture def cities() -> Generator[List[City], None, None]: cities = [ City(name='Villahermosa', state='Tabasco'), City(name='Ciudad de México', state='CDMX'), City(name='Monterrey', state='Nuevo León'), ...
24.5
55
0.619666
794e3d0856c04f5110ffff67644f1b8c3a137c1c
1,609
py
Python
plotting.py
CSlocumWX/plotting
d13467202208a97d0a4bc487c0e001ae55690fb3
[ "BSD-3-Clause" ]
2
2019-05-17T19:36:11.000Z
2022-03-07T08:34:21.000Z
plotting.py
CSlocumWX/plotting
d13467202208a97d0a4bc487c0e001ae55690fb3
[ "BSD-3-Clause" ]
null
null
null
plotting.py
CSlocumWX/plotting
d13467202208a97d0a4bc487c0e001ae55690fb3
[ "BSD-3-Clause" ]
1
2022-03-07T08:34:22.000Z
2022-03-07T08:34:22.000Z
""" Loads my matplotlibrc file and allows me to customize additional aspects of my plots """ import os from warnings import warn import matplotlib as mpl import matplotlib.pyplot as plt _path = os.path.dirname(os.path.abspath(__file__)) mpl.rc_context(fname=_path + "/matplotlibrc") def change_style(society="utopia"):...
25.140625
79
0.620883
794e3ff805ff4ab237c24e7c1ac354053dabd05d
1,149
py
Python
twopointer/merge_sorted_array.py
dsrao711/DSA-101-HacktoberFest
0d04e2aecee224080c34146e327ff6de15d9ba16
[ "MIT" ]
16
2021-10-02T20:10:51.000Z
2022-03-06T10:31:11.000Z
twopointer/merge_sorted_array.py
dsrao711/DSA-101-HacktoberFest
0d04e2aecee224080c34146e327ff6de15d9ba16
[ "MIT" ]
55
2021-10-02T07:31:41.000Z
2021-10-30T06:19:26.000Z
twopointer/merge_sorted_array.py
dsrao711/DSA-101-HacktoberFest
0d04e2aecee224080c34146e327ff6de15d9ba16
[ "MIT" ]
36
2021-10-02T18:00:08.000Z
2022-01-03T18:50:35.000Z
# https://leetcode.com/problems/merge-sorted-array/ class Solution(object): def merge(self, nums1, m, nums2, n): """ :type nums1: List[int] :type m: int :type nums2: List[int] :type n: int :rtype: None Do not return anything, modify nums1 in-place instead. ...
35.90625
104
0.499565
794e427802e0cd8d960c3515953aa1a305794516
5,572
py
Python
ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py
mkozinenko/ambari
9cfe9559420a1f4af89a2d645af84b1ab20d6737
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py
mkozinenko/ambari
9cfe9559420a1f4af89a2d645af84b1ab20d6737
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-agent/src/main/python/ambari_agent/HostCheckReportFileHandler.py
mkozinenko/ambari
9cfe9559420a1f4af89a2d645af84b1ab20d6737
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python ''' 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")...
36.657895
113
0.681981
794e44290f9e092e01df3fa24f59906f319aec35
264
py
Python
ex13.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
ex13.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
ex13.py
ShweYeeKoKo/python-exercises
f7e0a8a5b1a55c42783d36f849c10b54932d568e
[ "MIT" ]
null
null
null
from sys import argv # read the WYSS section for how to run this script, first, second, third = argv print("The script is called:", script) print("Your first variable is:", first) print("Your second variable is:", second) print("Your third variable is:", third)
29.333333
43
0.731061
794e45aade7a6d16460934c64e28bb3e6e48c275
297
py
Python
pyhmsa_tiff/__init__.py
pyhmsa/pyhmsa-fileformat-tiff
e04bc393a899f45974ecee1e77afc78f0e48e6cb
[ "MIT" ]
null
null
null
pyhmsa_tiff/__init__.py
pyhmsa/pyhmsa-fileformat-tiff
e04bc393a899f45974ecee1e77afc78f0e48e6cb
[ "MIT" ]
null
null
null
pyhmsa_tiff/__init__.py
pyhmsa/pyhmsa-fileformat-tiff
e04bc393a899f45974ecee1e77afc78f0e48e6cb
[ "MIT" ]
null
null
null
""" Exporter of pyhMSA data to TIFF images. """ __author__ = "Philippe T. Pinard" __email__ = "philippe.pinard@gmail.com" __copyright__ = "Copyright (c) 2013-2015 Philippe T. Pinard" __license__ = "MIT" from ._version import get_versions __version__ = get_versions()['version'] del get_versions
22.846154
60
0.750842
794e45c19b797eba9dec4876a0be74c2dcbaed05
26,964
py
Python
skweak/utils.py
schopra8/skweak
e2a8fd396164b07292d86fae44e71af0fa28860a
[ "MIT" ]
null
null
null
skweak/utils.py
schopra8/skweak
e2a8fd396164b07292d86fae44e71af0fa28860a
[ "MIT" ]
null
null
null
skweak/utils.py
schopra8/skweak
e2a8fd396164b07292d86fae44e71af0fa28860a
[ "MIT" ]
null
null
null
import json import re import functools from typing import List, Dict, Tuple, Optional, TypeVar, Iterable from spacy.tokens import Doc, Token, Span, DocBin # type: ignore import numpy as np T = TypeVar('T') ############################################ # Utility functions for NLP analysis ############################...
36.339623
100
0.608812
794e45cdcb0ddec582bbd5bcba4917956e5f1d35
3,715
py
Python
code/crawler/selenium_maoyan_movie_top100.py
yuguiyang/python_demo
1be2406bfc920e22a0f92bf10d9a3665984067ba
[ "Apache-2.0" ]
null
null
null
code/crawler/selenium_maoyan_movie_top100.py
yuguiyang/python_demo
1be2406bfc920e22a0f92bf10d9a3665984067ba
[ "Apache-2.0" ]
null
null
null
code/crawler/selenium_maoyan_movie_top100.py
yuguiyang/python_demo
1be2406bfc920e22a0f92bf10d9a3665984067ba
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Spyder Editor This is a temporary script file. """ import csv from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.common.exceptions ...
28.576923
136
0.650875
794e46ed8189b9210f962129da05e25ef523a6d8
3,596
py
Python
pimdm/packet/PacketPimEncodedUnicastAddress.py
leoplo/pim_dm
e097fb8e247b14f142b6aa97d8ee34440aeba806
[ "MIT" ]
6
2020-02-04T20:59:59.000Z
2021-11-24T09:56:07.000Z
pimdm/packet/PacketPimEncodedUnicastAddress.py
leoplo/pim_dm
e097fb8e247b14f142b6aa97d8ee34440aeba806
[ "MIT" ]
4
2020-04-10T14:51:39.000Z
2022-02-14T00:59:21.000Z
pimdm/packet/PacketPimEncodedUnicastAddress.py
leoplo/pim_dm
e097fb8e247b14f142b6aa97d8ee34440aeba806
[ "MIT" ]
3
2020-08-13T17:56:35.000Z
2021-11-24T11:03:12.000Z
import ipaddress import struct import socket ''' 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Addr Family | Encoding Type | Unicast Address +-+-+-+-+-+-+-+-+-+-+-+...
44.95
162
0.688821
794e471bc3e7d44e0993fab1c14ff85b963914e7
9,198
py
Python
agent_admin_sdk/model/collector_service/alias_metric_with_one_original_metric_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
agent_admin_sdk/model/collector_service/alias_metric_with_one_original_metric_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
agent_admin_sdk/model/collector_service/alias_metric_with_one_original_metric_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: alias_metric_with_one_original_metric.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _me...
51.385475
940
0.791803
794e48e1d5f2aefda26e6c495b302a1abb79ab68
10,355
py
Python
tests/test_tutorial/test_bigger_applications/test_main.py
cdeil/fastapi
7a445402d4960d6173d76dac43393ad6c5040521
[ "MIT" ]
2
2020-01-21T10:57:59.000Z
2021-11-09T11:27:18.000Z
tests/test_tutorial/test_bigger_applications/test_main.py
cdeil/fastapi
7a445402d4960d6173d76dac43393ad6c5040521
[ "MIT" ]
null
null
null
tests/test_tutorial/test_bigger_applications/test_main.py
cdeil/fastapi
7a445402d4960d6173d76dac43393ad6c5040521
[ "MIT" ]
null
null
null
import pytest from starlette.testclient import TestClient from bigger_applications.app.main import app client = TestClient(app) openapi_schema = { "openapi": "3.0.2", "info": {"title": "Fast API", "version": "0.1.0"}, "paths": { "/users/": { "get": { "responses": { ...
34.401993
87
0.336456
794e4ceb179c309aed1103a48f26961085e0a19a
2,580
py
Python
cuboid_teleop/scripts/teleop_emotion.py
sbgisen/cuboid_sim
02a881c64ea0f7aa9770ce78c741953887dd0fc9
[ "Apache-2.0" ]
null
null
null
cuboid_teleop/scripts/teleop_emotion.py
sbgisen/cuboid_sim
02a881c64ea0f7aa9770ce78c741953887dd0fc9
[ "Apache-2.0" ]
3
2019-12-06T06:29:05.000Z
2019-12-16T10:18:35.000Z
cuboid_teleop/scripts/teleop_emotion.py
sbgisen/cuboid_sim
02a881c64ea0f7aa9770ce78c741953887dd0fc9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2019, SoftBank corp. # # 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 applicabl...
33.506494
80
0.684884
794e4f6f9b9f4f8054e6ac6751a68083c96912f9
920
py
Python
easyq/configuration.py
easyqiot/easyq
0718fdfefbbd4cb85edaa696c2d2ae9e1225ead7
[ "MIT" ]
4
2018-11-12T07:31:16.000Z
2020-03-04T08:59:58.000Z
easyq/configuration.py
pylover/easyq
0718fdfefbbd4cb85edaa696c2d2ae9e1225ead7
[ "MIT" ]
1
2018-11-02T09:38:24.000Z
2018-11-02T09:38:24.000Z
easyq/configuration.py
easyqiot/easyq
0718fdfefbbd4cb85edaa696c2d2ae9e1225ead7
[ "MIT" ]
1
2018-09-07T08:43:31.000Z
2018-09-07T08:43:31.000Z
import pymlconf settings = pymlconf.DeferredRoot() DEFAULT_ADDRESS = 'localhost:1085' BUILTIN_CONFIGURATION = f''' bind: {DEFAULT_ADDRESS} authentication: method: trust logging: level: debug queues: default: maxsize: 100 dispatchers: 1 dispatcher: messages_per_queue: 5 intervals: .3 ''' def co...
18.039216
95
0.708696
794e4f702ff8b7bd7c70e06cbbff4dd855a008ff
1,011
py
Python
relational/student_projects/2020_karkkainen/models/Baseline/Most-Frequent-Answer/model3ps.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
null
null
null
relational/student_projects/2020_karkkainen/models/Baseline/Most-Frequent-Answer/model3ps.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
11
2020-05-04T09:05:29.000Z
2021-04-08T13:22:34.000Z
relational/student_projects/2020_karkkainen/models/Baseline/Most-Frequent-Answer/model3ps.py
monthie/cogmods
62af4b8bf2effb77f26a8877d6a89949164d83f0
[ "MIT" ]
12
2020-05-02T09:36:14.000Z
2021-06-22T08:10:45.000Z
""" Implements a most frequent answer model. """ import numpy as np import ccobra import pandas as pd def createDict(): data = pd.read_csv('3ps.csv') keys = data['Task-ID'].tolist() values = data['most_frequent_response'].tolist() return dict(zip(keys, values)) class MostFreqModel(ccobra.CCobraMo...
23.511628
72
0.621167
794e4f83a1a78d257a2bd3cdb6b9aff836d88fd7
2,800
py
Python
Transformer/MHA.py
antoniorv6/Transformer-Keras
9566f4211f92922a668977e72dbb72b722d4de5e
[ "MIT" ]
null
null
null
Transformer/MHA.py
antoniorv6/Transformer-Keras
9566f4211f92922a668977e72dbb72b722d4de5e
[ "MIT" ]
null
null
null
Transformer/MHA.py
antoniorv6/Transformer-Keras
9566f4211f92922a668977e72dbb72b722d4de5e
[ "MIT" ]
null
null
null
import tensorflow as tf from tensorflow.keras.layers import Dense, Softmax class MHA(tf.keras.layers.Layer): def __init__(self, model_depth, num_heads): super(MHA, self).__init__() self.num_heads = num_heads self.model_depth = model_depth assert model_depth % self.num_heads == 0 ...
44.444444
129
0.6675
794e4fd553852fea14b2360d5386e334b97832db
9,995
py
Python
integration/common/openlineage/common/provider/bigquery.py
kedar-cz/OpenLineage
bd75b53c84fd9655f593c4f161e15c14785eb93e
[ "Apache-2.0" ]
null
null
null
integration/common/openlineage/common/provider/bigquery.py
kedar-cz/OpenLineage
bd75b53c84fd9655f593c4f161e15c14785eb93e
[ "Apache-2.0" ]
null
null
null
integration/common/openlineage/common/provider/bigquery.py
kedar-cz/OpenLineage
bd75b53c84fd9655f593c4f161e15c14785eb93e
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under th...
35.569395
95
0.62081
794e50c86281f1c318e204be96764db3bbdb104b
1,988
py
Python
2021/CVE-2021-44848/poc/pocsploit/CVE-2021-44848.py
hjyuan/reapoc
ef515e56c44c2590ff8601582bf6c08e076e7083
[ "Apache-2.0" ]
421
2021-12-07T08:46:40.000Z
2022-03-31T12:42:16.000Z
2021/CVE-2021-44848/poc/pocsploit/CVE-2021-44848.py
hjyuan/reapoc
ef515e56c44c2590ff8601582bf6c08e076e7083
[ "Apache-2.0" ]
5
2022-03-27T07:37:32.000Z
2022-03-31T13:56:11.000Z
2021/CVE-2021-44848/poc/pocsploit/CVE-2021-44848.py
hjyuan/reapoc
ef515e56c44c2590ff8601582bf6c08e076e7083
[ "Apache-2.0" ]
144
2021-12-07T11:06:14.000Z
2022-03-31T07:41:35.000Z
import requests # Vuln Base Info def info(): return { "author": "cckuailong", "name": '''Thinfinity VirtualUI User Enumeration''', "description": '''Thinfinity VirtualUI (before v3.0), /changePassword returns different responses for requests depending on whether the username exists. It may...
28.811594
219
0.552817
794e51e631823cbf3206722135293ab85a845c98
8,088
bzl
Python
unix_toolchain_config.bzl
improbable-eng/BazelCon2019-cpp-toolchains-example
0e93672d5025a97a056a3029cbf496fc3a12183f
[ "MIT" ]
null
null
null
unix_toolchain_config.bzl
improbable-eng/BazelCon2019-cpp-toolchains-example
0e93672d5025a97a056a3029cbf496fc3a12183f
[ "MIT" ]
null
null
null
unix_toolchain_config.bzl
improbable-eng/BazelCon2019-cpp-toolchains-example
0e93672d5025a97a056a3029cbf496fc3a12183f
[ "MIT" ]
null
null
null
load( "@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "action_config", "artifact_name_pattern", "env_entry", "env_set", "feature", "feature_set", "flag_group", "flag_set", "make_variable", "tool", "tool_path", "variable_with_value", "with_feature_set", ) lo...
34.564103
119
0.574184
794e522a02315848d186828f0cc557e7c8d2fe4f
15,728
py
Python
fabric/contrib/files.py
hrubi/fabric
5b7ba26915c188b7748dccd659d26e7b7e9056ae
[ "BSD-2-Clause" ]
1
2015-11-06T10:46:27.000Z
2015-11-06T10:46:27.000Z
fabric/contrib/files.py
hrubi/fabric
5b7ba26915c188b7748dccd659d26e7b7e9056ae
[ "BSD-2-Clause" ]
null
null
null
fabric/contrib/files.py
hrubi/fabric
5b7ba26915c188b7748dccd659d26e7b7e9056ae
[ "BSD-2-Clause" ]
2
2019-01-01T18:35:50.000Z
2021-03-04T10:32:03.000Z
""" Module providing easy API for working with remote files and folders. """ from __future__ import with_statement import hashlib import tempfile import re import os from StringIO import StringIO from fabric.api import * from fabric.utils import apply_lcwd def exists(path, use_sudo=False, verbose=False): """ ...
37.898795
87
0.638543
794e526cf6386534186390c02df7eff01e38325d
374
py
Python
axe/__init__.py
soasme/axe
652b8075a1fd2b3aa66392d464575ffed6a758ae
[ "MIT" ]
null
null
null
axe/__init__.py
soasme/axe
652b8075a1fd2b3aa66392d464575ffed6a758ae
[ "MIT" ]
null
null
null
axe/__init__.py
soasme/axe
652b8075a1fd2b3aa66392d464575ffed6a758ae
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Axe ~~~ A microframework based on Werkzeug. :copyright: (c) 2014 by Ju Lin. :license: MIT, see LICENSE for more details. """ __all__ = [ 'abort', 'redirect', 'exceptions', 'Axe', ] import werkzeug.exceptions as exceptions from werkzeug.utils import re...
14.96
48
0.625668
794e5424d1555685ab1a85aebfd73d84152e9a15
2,291
py
Python
ch06/50_fetch_shape_data.py
taro-masuda/nlp100
a2f73777b8215622726d040f48add9ab6b50c188
[ "MIT" ]
3
2021-06-22T10:17:56.000Z
2022-02-21T07:11:57.000Z
ch06/50_fetch_shape_data.py
taro-masuda/nlp100
a2f73777b8215622726d040f48add9ab6b50c188
[ "MIT" ]
null
null
null
ch06/50_fetch_shape_data.py
taro-masuda/nlp100
a2f73777b8215622726d040f48add9ab6b50c188
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from sklearn.model_selection import train_test_split import random import os import requests import zipfile import io def seed_everything(seed=42): random.seed(seed) os.environ['PYTHONHASHSEED'] = str(seed) np.random.seed(seed) def fetch_data(url: str, save_dir: str,...
40.192982
109
0.64557
794e54795c37bb4144ce782213781ce1e2a3330b
479
py
Python
home/migrations/0011_auto_20190604_1215.py
xni06/wagtail-CMS
defe0f46e8109e96d6d5e9fd4cf002790fbcd54b
[ "MIT" ]
4
2019-06-04T07:18:44.000Z
2020-06-15T22:27:36.000Z
home/migrations/0011_auto_20190604_1215.py
jaspotsangbam/wagtail-CMS
2ec0dd05ba1f9339b705ce529588131049aa9bc7
[ "MIT" ]
38
2019-05-09T13:14:56.000Z
2022-03-12T00:54:57.000Z
home/migrations/0011_auto_20190604_1215.py
jaspotsangbam/wagtail-CMS
2ec0dd05ba1f9339b705ce529588131049aa9bc7
[ "MIT" ]
3
2019-09-26T14:32:36.000Z
2021-05-06T15:48:01.000Z
# Generated by Django 2.1.8 on 2019-06-04 12:15 from django.db import migrations import wagtail.core.blocks import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('home', '0010_auto_20190604_1147'), ] operations = [ migrations.AlterField( model_n...
22.809524
99
0.634656
794e5586e708657cbac48ada1eb6474769c452af
18,403
py
Python
Scripts/rfpy_harmonics.py
ttkyryliuk/RfPy
727521f094fcb685622d31ae3f353c0d21713d0e
[ "MIT" ]
null
null
null
Scripts/rfpy_harmonics.py
ttkyryliuk/RfPy
727521f094fcb685622d31ae3f353c0d21713d0e
[ "MIT" ]
null
null
null
Scripts/rfpy_harmonics.py
ttkyryliuk/RfPy
727521f094fcb685622d31ae3f353c0d21713d0e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2019 Pascal Audet # # This file is part of RfPy. # # 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 rig...
34.78828
93
0.532087
794e55de4deb3edb68474389856a9397451eca32
546
py
Python
plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class ShowtickprefixValidator( _plotly_utils.basevalidators.EnumeratedValidator ): def __init__( self, plotly_name='showtickprefix', parent_name='scatterpolar.marker.colorbar', **kwargs ): super(ShowtickprefixValidator, self).__i...
24.818182
54
0.602564
794e5626a66cf60721284635c4b42aad8e7c657b
3,391
py
Python
mkt/abuse/models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/abuse/models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/abuse/models.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
import logging from django.conf import settings from django.db import models from django.utils.translation import gettext import amo.models import amo.utils from mkt.webapps.models import Addon from mkt.users.models import UserProfile log = logging.getLogger('z.abuse') class AbuseReport(amo.models.ModelBase): ...
36.074468
79
0.620466
794e562de3bc5dd0df1d69d4371d7ab13aa69398
2,140
py
Python
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/DescribeDampPoliciesByCidRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/DescribeDampPoliciesByCidRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "Apache-2.0" ]
null
null
null
aliyun-python-sdk-rds/aliyunsdkrds/request/v20140815/DescribeDampPoliciesByCidRequest.py
sdk-team/aliyun-openapi-python-sdk
384730d707e6720d1676ccb8f552e6a7b330ec86
[ "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...
35.666667
84
0.77757
794e57af1f8bc8bdd40e8594eee12551f7bd4607
8,846
py
Python
pyteomics/traml.py
superrino130/pyteomics
2d901a9f351d979628c2e3781440c4db77aac12c
[ "Apache-2.0" ]
47
2020-02-29T21:47:01.000Z
2022-03-17T13:27:30.000Z
pyteomics/traml.py
superrino130/pyteomics
2d901a9f351d979628c2e3781440c4db77aac12c
[ "Apache-2.0" ]
53
2020-04-07T01:40:31.000Z
2022-03-17T12:15:44.000Z
pyteomics/traml.py
superrino130/pyteomics
2d901a9f351d979628c2e3781440c4db77aac12c
[ "Apache-2.0" ]
23
2020-02-29T21:47:13.000Z
2021-11-26T04:32:07.000Z
""" traml - targeted MS transition data in TraML format =================================================== Summary ------- TraML is a standard rich XML-format for targeted mass spectrometry method definitions. Please refer to `psidev.info <http://www.psidev.info/traml>`_ for the detailed specification of th...
37.483051
107
0.626159
794e5954361d8fce7efee847b5cc89291be9faae
8,313
py
Python
python-package/xgboost/plotting.py
cool-RR/xgboost
306e38ff3145b559e3a7c67d071d8a4ced5f70a3
[ "Apache-2.0" ]
1
2020-12-28T06:19:54.000Z
2020-12-28T06:19:54.000Z
python-package/xgboost/plotting.py
cool-RR/xgboost
306e38ff3145b559e3a7c67d071d8a4ced5f70a3
[ "Apache-2.0" ]
1
2021-09-22T19:06:13.000Z
2021-09-22T19:06:13.000Z
python-package/xgboost/plotting.py
cool-RR/xgboost
306e38ff3145b559e3a7c67d071d8a4ced5f70a3
[ "Apache-2.0" ]
null
null
null
# pylint: disable=too-many-locals, too-many-arguments, invalid-name, # pylint: disable=too-many-branches # coding: utf-8 """Plotting Library.""" from io import BytesIO import numpy as np from .core import Booster from .sklearn import XGBModel def plot_importance(booster, ax=None, height=0.2, xlim=...
32.346304
98
0.624564
794e599b74bf3be17803e580b283e14439c9f1b4
14,302
py
Python
trainml/connections.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
1
2021-02-11T16:08:05.000Z
2021-02-11T16:08:05.000Z
trainml/connections.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
1
2021-05-04T00:20:28.000Z
2021-07-07T16:21:35.000Z
trainml/connections.py
trainML/trainml-cli
3065ed4cacf415964bcfc8c3854dd8acbc3729c5
[ "MIT" ]
null
null
null
import json import os import shutil import asyncio import aiohttp import aiodocker import zipfile import re import logging from datetime import datetime from .exceptions import ConnectionError, ApiError, SpecificationError from aiodocker.exceptions import DockerError VPN_IMAGE = "trainml/tinc:no-upnp" STORAGE_IMAGE ...
32.357466
156
0.550482
794e59abab1d60ef28544cb699deaef53af8f3c4
794
py
Python
python/tests/test_multi_bracket_validation.py
M7madMomani2/data-structures-and-algorithms
35ba48973d45f6972d097e4aaac7cfb7147a83a2
[ "MIT" ]
null
null
null
python/tests/test_multi_bracket_validation.py
M7madMomani2/data-structures-and-algorithms
35ba48973d45f6972d097e4aaac7cfb7147a83a2
[ "MIT" ]
null
null
null
python/tests/test_multi_bracket_validation.py
M7madMomani2/data-structures-and-algorithms
35ba48973d45f6972d097e4aaac7cfb7147a83a2
[ "MIT" ]
1
2021-08-29T20:16:19.000Z
2021-08-29T20:16:19.000Z
import pytest from challenges.multi_bracket_validation.multi_bracket_validation import * def test_valid_data(): actual1=multi_bracket_validation('(){}') actual2=multi_bracket_validation('()[[Extra Characters]]') actual3=multi_bracket_validation('({()}') actual4=multi_bracket_validation('({()})') e...
30.538462
74
0.720403
794e5a26a1e643dfb7d64f37e50a012b1af926e3
3,103
py
Python
x2py/case.py
jaykang920/x2py
b8bd473f94ff4b9576e984cc384f4159ab71278d
[ "MIT" ]
null
null
null
x2py/case.py
jaykang920/x2py
b8bd473f94ff4b9576e984cc384f4159ab71278d
[ "MIT" ]
1
2019-06-05T09:35:09.000Z
2020-07-02T09:46:46.000Z
x2py/case.py
jaykang920/x2py
b8bd473f94ff4b9576e984cc384f4159ab71278d
[ "MIT" ]
null
null
null
# Copyright (c) 2017, 2018 Jae-jun Kang # See the file LICENSE for details. from x2py.event_sink import EventSink from x2py.util.trace import Trace class Case(EventSink): """Represents a set of application logic.""" def __init__(self): super(Case, self).__init__() def setup_with(self, flow): ...
27.460177
85
0.588141
794e5dccdc42a5d639222239fa58a7d4cebe11a3
5,829
py
Python
ssht00ls/classes/utils/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
5
2021-02-18T17:46:39.000Z
2021-12-29T15:48:07.000Z
ssht00ls/classes/utils/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
null
null
null
ssht00ls/classes/utils/__init__.py
vandenberghinc/ssht00ls
e08081773c8da7dfac0764170bfeacb4bf421ec1
[ "CNRI-Python" ]
2
2021-03-19T14:06:20.000Z
2021-09-26T14:08:34.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # imports. from ssht00ls.classes.config import * import os, sys, requests, ast, json, pathlib, glob, string, getpass, django # save config file safely. def save_config_safely(backup=True, __loader__=None, __keyboard_interrupt__=None): if backup: save_config_backup_safe...
31.508108
288
0.692057
794e5e4e5f63fb77cd2afadace84e70c79fadffd
1,066
py
Python
main.py
igorpejic/alpha-zero-general
fcb3dff17ede2bc69706962daa8a59991e1b6395
[ "MIT" ]
null
null
null
main.py
igorpejic/alpha-zero-general
fcb3dff17ede2bc69706962daa8a59991e1b6395
[ "MIT" ]
null
null
null
main.py
igorpejic/alpha-zero-general
fcb3dff17ede2bc69706962daa8a59991e1b6395
[ "MIT" ]
null
null
null
from Coach import Coach # from othello.pytorch.NNet import NNetWrapper as nn # from othello.OthelloGame import OthelloGame as Game # from othello.tensorflow.NNet import NNetWrapper as nn from binpack.tensorflow.NNet import NNetWrapper as nn from binpack.BinPackGame import BinPackGame as Game from utils import * args ...
24.790698
80
0.669794
794e5f29c4d556af23e1605ce304a0faa801858f
889
py
Python
Extra/lcp.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
990
2018-06-05T11:49:22.000Z
2022-03-31T08:59:17.000Z
Extra/lcp.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
1
2021-11-01T01:29:38.000Z
2021-11-01T01:29:38.000Z
Extra/lcp.py
rampup01/Leetcode
8450a95a966ef83b24ffe6450f06ce8de92b3efb
[ "MIT" ]
482
2018-06-12T22:16:53.000Z
2022-03-29T00:23:29.000Z
from suffix_array import SuffixArray class LCP(object): def __init__(self, s): self.s = s self.lcp_array = [] self.suffix_array = SuffixArray(s) self.suffix_array.create_suffix_array() def lcp_w_suffix_str(self): N = len(self.suffix_array.suffix_array) array = self.suffix_array.suffix_array self.lcp_...
21.166667
101
0.685039
794e601dee15e42214a3cd408efd0dad6970d9a4
609
py
Python
tests/old_suite/basic/pkg1/a.py
yoda-vid/pyinstaller
419f349dad721a253b19d9c596e251818132d6ba
[ "Apache-2.0" ]
2
2017-02-08T22:22:09.000Z
2020-10-08T12:28:36.000Z
tests/old_suite/basic/pkg1/a.py
416426/pyinstaller
0f2b2e921433ab5a510c7efdb21d9c1d7cfbc645
[ "Apache-2.0" ]
3
2020-04-06T15:48:37.000Z
2021-03-23T10:22:21.000Z
tests/old_suite/basic/pkg1/a.py
416426/pyinstaller
0f2b2e921433ab5a510c7efdb21d9c1d7cfbc645
[ "Apache-2.0" ]
4
2018-06-04T20:40:37.000Z
2020-10-13T22:38:40.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2021, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
33.833333
78
0.538588