hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
86ab2a7a0d57050e80f3f20e1f2f61131ca45a9a
487
py
Python
new-influx-client.py
benlamonica/energy-monitor
86714a365c91cc05c265de81bce191ff4ab585f8
[ "MIT" ]
null
null
null
new-influx-client.py
benlamonica/energy-monitor
86714a365c91cc05c265de81bce191ff4ab585f8
[ "MIT" ]
null
null
null
new-influx-client.py
benlamonica/energy-monitor
86714a365c91cc05c265de81bce191ff4ab585f8
[ "MIT" ]
null
null
null
import influxdb_client from influxdb_client import InfluxDBClient bucket = "python-client-sandbox" org = "Energy Monitor" token = "miQdAvNXHiNDVVzPzV5FpkCaR_8qdQ-L1FlPCOXQPI325Kbrh1fgfhkcDUZ4FepaebDdpZ-A1gmtnnjU0_hViA==" url = "http://localhost:9999" client = InfluxDBClient(url=url, token=token, org=org) writeApi = c...
40.583333
148
0.755647
0
0
0
0
0
0
0
0
251
0.5154
86ab8849571d80e31e545baaa8fc3a7e45faa001
6,176
py
Python
tests/test_agent/test_manhole.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
tests/test_agent/test_manhole.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
tests/test_agent/test_manhole.py
guidow/pyfarm-agent
bb5d464f9f6549a3db3529a93e3d9f388b365586
[ "Apache-2.0" ]
null
null
null
# No shebang line, this module is meant to be imported # # Copyright 2014 Oliver Palmer # # 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 # # Unle...
32.505263
79
0.615771
4,864
0.787565
0
0
177
0.028659
0
0
1,433
0.232027
86abdce88613d6ee71e638ae7487297146c3e7a8
338
py
Python
func-button/klSigmode.py
xcgoo/uiKLine
80683401d7dc66262ae645db4c2780d6e71be551
[ "MIT" ]
232
2017-10-11T09:19:03.000Z
2022-03-09T01:34:49.000Z
func-button/klSigmode.py
DON-2020-LEE/uiKLine-2
fd1d0dca5fd6b1542af4b10c110e39361b29d378
[ "MIT" ]
8
2017-12-09T09:10:15.000Z
2021-04-22T03:35:26.000Z
func-button/klSigmode.py
DON-2020-LEE/uiKLine-2
fd1d0dca5fd6b1542af4b10c110e39361b29d378
[ "MIT" ]
132
2017-10-11T09:16:29.000Z
2022-02-09T10:37:57.000Z
# coding: utf-8 """ 插入所有需要的库,和函数 """ #---------------------------------------------------------------------- def klSigmode(self): """查找模式""" if self.mode == 'deal': self.canvas.updateSig(self.signalsOpen) self.mode = 'dealOpen' else: self.canvas.updateSig(self.signals) se...
21.125
71
0.446746
0
0
0
0
0
0
0
0
170
0.459459
86acd0c8a74d48d7a1cf116cc0a40300ec411cd2
16,459
py
Python
utils/thin.py
BnF-jadis/projet
212b1e7b179a564650fb959d9c2565648178f6b6
[ "CC-BY-3.0" ]
5
2021-06-17T12:48:45.000Z
2022-01-22T22:23:44.000Z
utils/thin.py
BnF-jadis/projet
212b1e7b179a564650fb959d9c2565648178f6b6
[ "CC-BY-3.0" ]
7
2020-11-13T18:42:14.000Z
2022-02-10T01:31:07.000Z
utils/thin.py
BnF-jadis/projet
212b1e7b179a564650fb959d9c2565648178f6b6
[ "CC-BY-3.0" ]
1
2021-10-17T10:49:45.000Z
2021-10-17T10:49:45.000Z
# 2020, BackThen Maps # Coded by Remi Petitpierre https://github.com/RPetitpierre # For Bibliothèque nationale de France (BnF) import cv2, thinning, os import numpy as np import pandas as pd import shapefile as shp from skimage.measure import approximate_polygon from PIL import Image, ImageDraw from utils.utils im...
37.663616
125
0.584118
0
0
0
0
0
0
0
0
4,610
0.279903
86acd82b514b30458fa54cefc7db6d72f32e8646
875
py
Python
easy2fa/tests/test_checkinput.py
lutostag/otp
0792548fa51c489cdc5fcb01a3c6dad1cd453154
[ "MIT" ]
3
2018-01-22T13:45:12.000Z
2022-01-27T04:17:52.000Z
easy2fa/tests/test_checkinput.py
lutostag/otp
0792548fa51c489cdc5fcb01a3c6dad1cd453154
[ "MIT" ]
1
2017-01-24T23:57:51.000Z
2017-12-11T14:33:32.000Z
easy2fa/tests/test_checkinput.py
lutostag/otp
0792548fa51c489cdc5fcb01a3c6dad1cd453154
[ "MIT" ]
null
null
null
from unittest import TestCase from unittest.mock import patch from easy2fa import cli class TestCheckInput(TestCase): @patch('builtins.input') def test_default(self, mock_input): mock_input.return_value = '' self.assertEquals(cli.check_input('prompt', default='one'), 'one') mock_input...
33.653846
74
0.634286
785
0.897143
0
0
743
0.849143
0
0
172
0.196571
86ad342de7b5dfdb142a5dff63b155f6c655c5c6
2,845
py
Python
bert_finetuning/data_loader.py
nps1ngh/adversarial-bert-german-attacks-defense
3cca292ec4c3c07945f4198ae81e1f671462ed90
[ "Apache-2.0" ]
null
null
null
bert_finetuning/data_loader.py
nps1ngh/adversarial-bert-german-attacks-defense
3cca292ec4c3c07945f4198ae81e1f671462ed90
[ "Apache-2.0" ]
null
null
null
bert_finetuning/data_loader.py
nps1ngh/adversarial-bert-german-attacks-defense
3cca292ec4c3c07945f4198ae81e1f671462ed90
[ "Apache-2.0" ]
null
null
null
from torch.utils.data import TensorDataset, DataLoader, RandomSampler, SequentialSampler from bert_finetuning.data import GermanData class GermanDataLoader: def __init__( self, data_paths, model_name, do_cleansing, max_sequence_length, batch_size=8, ...
31.966292
89
0.634798
1,852
0.650967
0
0
0
0
0
0
963
0.338489
86ae167dd0746f0077e0b0c327435fcca99f837b
1,973
py
Python
data/dirty_mnist.py
Karthik-Ragunath/DDU
b9daae9304bdeb222857884ef8cb3b6b3d004d33
[ "MIT" ]
43
2021-05-20T14:07:53.000Z
2022-03-23T12:58:26.000Z
data/dirty_mnist.py
Karthik-Ragunath/DDU
b9daae9304bdeb222857884ef8cb3b6b3d004d33
[ "MIT" ]
3
2021-09-19T20:49:21.000Z
2022-03-07T10:25:47.000Z
data/dirty_mnist.py
Karthik-Ragunath/DDU
b9daae9304bdeb222857884ef8cb3b6b3d004d33
[ "MIT" ]
8
2021-06-26T15:28:45.000Z
2022-02-19T02:07:05.000Z
import torch import numpy as np import torch.utils.data as data from torch.utils.data import Subset from data.fast_mnist import create_MNIST_dataset from data.ambiguous_mnist.ambiguous_mnist_dataset import AmbiguousMNIST def get_train_valid_loader(root, batch_size, val_seed=1, val_size=0.1, **kwargs): error_msg...
34.017241
113
0.737456
0
0
0
0
0
0
0
0
147
0.074506
86ae868b0b9598e5f2e99607cce26d99b3a34dc3
4,147
py
Python
vantage6/server/resource/recover.py
jaspersnel/vantage6-server
88ad40d23cc36eaba57c170929f7ccdd0011720a
[ "Apache-2.0" ]
2
2020-10-19T08:59:08.000Z
2022-03-07T10:30:21.000Z
vantage6/server/resource/recover.py
jaspersnel/vantage6-server
88ad40d23cc36eaba57c170929f7ccdd0011720a
[ "Apache-2.0" ]
67
2020-04-15T09:43:31.000Z
2022-03-18T08:29:17.000Z
vantage6/server/resource/recover.py
jaspersnel/vantage6-server
88ad40d23cc36eaba57c170929f7ccdd0011720a
[ "Apache-2.0" ]
2
2021-01-21T15:09:26.000Z
2021-04-19T14:58:10.000Z
# -*- coding: utf-8 -*- import logging import datetime from flask import request, render_template from flask_jwt_extended import ( create_access_token, decode_token ) from jwt.exceptions import DecodeError from flasgger import swag_from from http import HTTPStatus from pathlib import Path from sqlalchemy.orm.e...
30.718519
80
0.590306
2,911
0.701953
0
0
2,708
0.653002
0
0
1,384
0.333735
86b032b82ee76fccb3eab7e57dd8b06b6868e592
2,633
py
Python
examples/basic_examples/aws_sns_sqs_middleware_service.py
tranvietanh1991/tomodachi
a815fc718b6cc42dc3fe241abb0e5a5829eba0e8
[ "MIT" ]
1
2021-11-01T02:18:55.000Z
2021-11-01T02:18:55.000Z
examples/basic_examples/aws_sns_sqs_middleware_service.py
tranvietanh1991/tomodachi
a815fc718b6cc42dc3fe241abb0e5a5829eba0e8
[ "MIT" ]
1
2020-12-28T16:16:53.000Z
2020-12-28T16:16:53.000Z
examples/basic_examples/aws_sns_sqs_middleware_service.py
tranvietanh1991/tomodachi
a815fc718b6cc42dc3fe241abb0e5a5829eba0e8
[ "MIT" ]
null
null
null
import os from typing import Any, Callable, Dict import tomodachi from tomodachi import aws_sns_sqs, aws_sns_sqs_publish from tomodachi.discovery import AWSSNSRegistration from tomodachi.envelope import JsonBase async def middleware_function( func: Callable, service: Any, message: Any, topic: str, context: Dict,...
39.298507
122
0.692366
1,874
0.710656
0
0
152
0.057641
941
0.356845
1,355
0.513841
86b0a422c8bc9f85b86cb962da85b578f24f06e1
425
py
Python
ex9.py
ThitsarAung/python-exercises
bca97875e25f9621fc5f58ab1d360426a21efc7f
[ "MIT" ]
null
null
null
ex9.py
ThitsarAung/python-exercises
bca97875e25f9621fc5f58ab1d360426a21efc7f
[ "MIT" ]
null
null
null
ex9.py
ThitsarAung/python-exercises
bca97875e25f9621fc5f58ab1d360426a21efc7f
[ "MIT" ]
null
null
null
types_of_people = 10 x = f"There are {types_of_people} types of people." binary = "binary" do_not = "don't" y = f"Those who know {binary} and those who {do_not}." print(x) print(y) print(f"I said: {x}") print(f"I also said: '{y}'") hilarious = False joke_evaluation = "Isn't that joke so funny?! {}" print(joke_eval...
18.478261
54
0.672941
0
0
0
0
0
0
0
0
236
0.555294
86b2f2b4446116811cbd5f27739dd93c92634c93
7,182
py
Python
mmdnn/conversion/caffe/writer.py
2yz/MMdnn
13d909e4b591a5043b74b611e412c3c0a5eba0cc
[ "MIT" ]
3,442
2017-11-20T08:39:51.000Z
2019-05-06T10:51:19.000Z
mmdnn/conversion/caffe/writer.py
2yz/MMdnn
13d909e4b591a5043b74b611e412c3c0a5eba0cc
[ "MIT" ]
430
2017-11-29T04:21:48.000Z
2019-05-06T05:37:37.000Z
mmdnn/conversion/caffe/writer.py
2yz/MMdnn
13d909e4b591a5043b74b611e412c3c0a5eba0cc
[ "MIT" ]
683
2017-11-20T08:50:34.000Z
2019-05-04T04:25:14.000Z
import base64 from google.protobuf import json_format from importlib import import_module import json import numpy as np import os import sys from mmdnn.conversion.caffe.errors import ConversionError from mmdnn.conversion.caffe.common_graph import fetch_attr_value from mmdnn.conversion.caffe.utils import get_lower_cas...
35.731343
92
0.589112
6,814
0.948761
0
0
0
0
0
0
1,036
0.14425
86b35d8336f90b1f441624f230053b48e0260a33
1,258
py
Python
week1/85-maximal-rectangle.py
LionTao/algo_weekend
d25756761d47491b8c78ecf8a857080497910c76
[ "Unlicense" ]
null
null
null
week1/85-maximal-rectangle.py
LionTao/algo_weekend
d25756761d47491b8c78ecf8a857080497910c76
[ "Unlicense" ]
null
null
null
week1/85-maximal-rectangle.py
LionTao/algo_weekend
d25756761d47491b8c78ecf8a857080497910c76
[ "Unlicense" ]
null
null
null
""" leetcode-85 给定一个仅包含 0 和 1 , 大小为 rows x cols 的二维二进制矩阵, 找出只包含 1 的最大矩形, 并返回其面积。 """ from typing import List class Solution: def maximalRectangle(self, matrix: List[List[str]]) -> int: """ 统计直方图然后单调递增栈 """ rows = len(matrix) if rows == 0: return 0 columns ...
32.25641
81
0.509539
1,183
0.867302
0
0
0
0
0
0
235
0.172287
86b35f885b38c215bfc2684f695ba3ae9b742e9a
9,347
py
Python
pandapower/test/opf/test_costs_pwl.py
mathildebadoual/pandapower
9ba4bcb78e84b644d2ba6df0c08e285c54af8ddc
[ "BSD-3-Clause" ]
1
2020-10-19T06:39:15.000Z
2020-10-19T06:39:15.000Z
pandapower/test/opf/test_costs_pwl.py
miek770/pandapower
de004efc1b7432a633792af4f551f7635a02db47
[ "BSD-3-Clause" ]
null
null
null
pandapower/test/opf/test_costs_pwl.py
miek770/pandapower
de004efc1b7432a633792af4f551f7635a02db47
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016-2018 by University of Kassel and Fraunhofer Institute for Energy Economics # and Energy System Technology (IEE), Kassel. All rights reserved. import numpy as np import pytest from pandapower.optimal_powerflow import OPFNotConverged import pandapower as pp try: impo...
37.09127
99
0.644378
0
0
0
0
0
0
0
0
1,645
0.175992
86b3d8112beb6b385c29392912e1d48581db14c2
680
py
Python
cookie_refresh.py
guoxianru/cookie_pool_lite
02c4b2009b4c8aa3306ae1f5f7c5decde1eb5f3f
[ "Apache-2.0" ]
null
null
null
cookie_refresh.py
guoxianru/cookie_pool_lite
02c4b2009b4c8aa3306ae1f5f7c5decde1eb5f3f
[ "Apache-2.0" ]
null
null
null
cookie_refresh.py
guoxianru/cookie_pool_lite
02c4b2009b4c8aa3306ae1f5f7c5decde1eb5f3f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: GXR # @CreateTime: 2022-01-20 # @UpdateTime: 2022-01-20 import redis import config import cookie_login from cookie_api import app red = redis.Redis( host=config.REDIS_HOST, port=config.REDIS_PORT, db=config.REDIS_DB, decode_responses=True, ) # 刷新cookie数量 def cooki...
18.888889
59
0.679412
0
0
0
0
0
0
0
0
144
0.206897
86b46d24f10eba79c88afa632d31ceb83f18b3b1
292
py
Python
feemodel/app/__init__.py
bitcoinfees/feemodel
5d582d87eca6e54eb20b81f4e21c81273a59b468
[ "MIT" ]
12
2015-08-12T03:00:59.000Z
2017-06-08T11:01:09.000Z
feemodel/app/__init__.py
bitcoinfees/feemodel
5d582d87eca6e54eb20b81f4e21c81273a59b468
[ "MIT" ]
6
2015-11-10T04:02:25.000Z
2016-03-16T02:57:14.000Z
feemodel/app/__init__.py
bitcoinfees/feemodel
5d582d87eca6e54eb20b81f4e21c81273a59b468
[ "MIT" ]
3
2016-03-10T17:08:41.000Z
2022-02-24T18:51:21.000Z
from feemodel.app.transient import TransientOnline from feemodel.app.pools import PoolsOnlineEstimator from feemodel.app.predict import Prediction from feemodel.app.simonline import SimOnline __all__ = [ 'TransientOnline', 'PoolsOnlineEstimator', 'Prediction', 'SimOnline' ]
24.333333
51
0.784247
0
0
0
0
0
0
0
0
62
0.212329
86b4af0033c71e00f4e30f0ac3bfd045c1932aa8
760
py
Python
examples/server/models/image_file_upload.py
ParikhKadam/django-angular
1fdd2ab3211ed1655acc2d172d826ed7f3ad0574
[ "MIT" ]
941
2015-01-01T18:17:43.000Z
2022-02-26T07:45:40.000Z
examples/server/models/image_file_upload.py
ParikhKadam/django-angular
1fdd2ab3211ed1655acc2d172d826ed7f3ad0574
[ "MIT" ]
228
2015-01-11T16:36:34.000Z
2022-03-11T23:17:15.000Z
examples/server/models/image_file_upload.py
ParikhKadam/django-angular
1fdd2ab3211ed1655acc2d172d826ed7f3ad0574
[ "MIT" ]
294
2015-01-04T09:01:33.000Z
2022-02-26T07:45:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals # start tutorial from django.db import models from djng.forms import NgModelFormMixin, NgFormValidationMixin from djng.styling.bootstrap3.forms import Bootstrap3ModelForm class SubscribeUser(models.Model): full_name = models.CharField( "Full ...
28.148148
82
0.728947
519
0.682895
0
0
0
0
0
0
118
0.155263
86b6adb997cbd21ec9e8e9a5843dcd2235408ae3
2,997
py
Python
python/tvm/topi/hexagon/slice_ops/add_subtract_multiply.py
yangulei/tvm
d2cbdf381b68134951bfd7525c6a3a67838e5bdf
[ "Apache-2.0" ]
4,640
2017-08-17T19:22:15.000Z
2019-11-04T15:29:46.000Z
python/tvm/topi/hexagon/slice_ops/add_subtract_multiply.py
dmlc/tvm
1e0e9548a6875241267481a4223b4dbf29fa1641
[ "Apache-2.0" ]
2,863
2017-08-17T19:55:50.000Z
2019-11-04T17:18:41.000Z
python/tvm/topi/hexagon/slice_ops/add_subtract_multiply.py
yelite/tvm
7ae919292d42f5858d4db04533bca67b4b5bb44f
[ "Apache-2.0" ]
1,352
2017-08-17T19:30:38.000Z
2019-11-04T16:09:29.000Z
# 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 ...
34.056818
97
0.703704
0
0
0
0
0
0
0
0
1,343
0.448115
86b7ef11958dc926cec50bcec5a016a3d479c413
6,634
py
Python
python_modules/automation/automation/docker/dagster_docker.py
jrouly/dagster
2b3104db2fc6439050f7825d4b9ebaf39ddf6c0c
[ "Apache-2.0" ]
null
null
null
python_modules/automation/automation/docker/dagster_docker.py
jrouly/dagster
2b3104db2fc6439050f7825d4b9ebaf39ddf6c0c
[ "Apache-2.0" ]
1
2021-06-21T18:30:02.000Z
2021-06-25T21:18:39.000Z
python_modules/automation/automation/docker/dagster_docker.py
jrouly/dagster
2b3104db2fc6439050f7825d4b9ebaf39ddf6c0c
[ "Apache-2.0" ]
null
null
null
import contextlib import os from collections import namedtuple import yaml from dagster import __version__ as current_dagster_version from dagster import check from .ecr import ecr_image, get_aws_account_id, get_aws_region from .utils import ( execute_docker_build, execute_docker_push, execute_docker_tag,...
38.569767
100
0.655412
6,024
0.908049
31
0.004673
318
0.047935
0
0
1,774
0.26741
86b8aba13af33d7534f429cc7d5eda4e95f58299
13,716
py
Python
chrome/test/telemetry/chromeos/login_unittest.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
231
2015-01-08T09:04:44.000Z
2021-12-30T03:03:10.000Z
chrome/test/telemetry/chromeos/login_unittest.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
1
2018-02-10T21:00:08.000Z
2018-03-20T05:09:50.000Z
chrome/test/telemetry/chromeos/login_unittest.py
Fusion-Rom/android_external_chromium_org
d8b126911c6ea9753e9f526bee5654419e1d0ebd
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
268
2015-01-21T05:53:28.000Z
2022-03-25T22:09:01.000Z
# Copyright (c) 2012 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import logging import os import unittest from telemetry.core import browser_finder from telemetry.core import exceptions from telemetry.core ...
42.203077
80
0.646544
13,226
0.964275
0
0
0
0
0
0
5,069
0.369568
86b8d88ae37a5647339fb11a5a98693e6a0c570d
790
py
Python
generator/database.py
Neotrinost/Neotrinost.ir
f501b8cf410c1e6ec6cc4e5fce935147b8be1e61
[ "MIT" ]
4
2021-05-02T17:35:30.000Z
2021-11-08T12:55:14.000Z
generator/database.py
Neotrinost/Flask_Neotrinost
f501b8cf410c1e6ec6cc4e5fce935147b8be1e61
[ "MIT" ]
4
2021-07-12T19:08:01.000Z
2021-08-13T19:37:50.000Z
generator/database.py
Neotrinost/Neotrinost.ir
f501b8cf410c1e6ec6cc4e5fce935147b8be1e61
[ "MIT" ]
2
2021-08-08T15:10:07.000Z
2021-11-15T08:59:22.000Z
import sqlite3 class Database: def get_connection(self): return sqlite3.connect("./db.sqlite") def add_card(self, card_title, card_text, card_link_text, card_link_url): con = self.get_connection() cur = con.cursor() create_table_query = "CREATE TABLE IF NOT EXISTS cards('card...
35.909091
106
0.596203
772
0.977215
0
0
0
0
0
0
264
0.334177
86babfbac8b5c2af0dd5e02e52be427fd0ffce35
3,688
py
Python
crits/backdoors/forms.py
frbapolkosnik/crits
1278c034f2238e2fe34e65e32ce241128a014df2
[ "MIT" ]
22
2015-01-14T19:49:32.000Z
2022-01-26T12:18:52.000Z
crits/backdoors/forms.py
frbapolkosnik/crits
1278c034f2238e2fe34e65e32ce241128a014df2
[ "MIT" ]
null
null
null
crits/backdoors/forms.py
frbapolkosnik/crits
1278c034f2238e2fe34e65e32ce241128a014df2
[ "MIT" ]
6
2015-01-22T21:25:52.000Z
2021-04-12T23:24:14.000Z
from django import forms from django.forms.utils import ErrorList from crits.campaigns.campaign import Campaign from crits.core.forms import add_bucketlist_to_form, add_ticket_to_form from crits.core.handlers import get_item_names, get_source_names from crits.core.user_tools import get_user_organization from crits.cor...
44.97561
117
0.629067
3,203
0.868492
0
0
0
0
0
0
352
0.095445
86bb18dffc0306993885a2bc13f98c2bb5b4a5b0
7,471
py
Python
src/aprl/agents/monte_carlo.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
211
2019-02-22T08:07:25.000Z
2022-03-14T10:44:20.000Z
src/aprl/agents/monte_carlo.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
51
2019-02-08T01:39:49.000Z
2022-02-15T21:21:46.000Z
src/aprl/agents/monte_carlo.py
fkamrani/adversarial-policies
53e129c2083f6557ddc18dbb39e4e633a2d7ab9b
[ "MIT" ]
41
2019-04-23T05:01:49.000Z
2022-03-16T06:51:19.000Z
"""Monte Carlo receding horizon control.""" from abc import ABC, abstractmethod from multiprocessing import Pipe, Process import gym from stable_baselines.common.vec_env import CloudpickleWrapper from aprl.common.mujoco import MujocoState, ResettableEnv class MujocoResettableWrapper(ResettableEnv, gym.Wrapper): ...
37.355
99
0.63191
6,006
0.803908
434
0.058091
1,086
0.145362
0
0
3,105
0.415607
86bb2ac534bb948d97b846d6681e205945c4c9dd
2,063
py
Python
machineLearnInAction/bayes.py
xuwening/tensorflowDemo
65687a61e16f947b7ec8a85d12213f954a71542b
[ "MIT" ]
null
null
null
machineLearnInAction/bayes.py
xuwening/tensorflowDemo
65687a61e16f947b7ec8a85d12213f954a71542b
[ "MIT" ]
null
null
null
machineLearnInAction/bayes.py
xuwening/tensorflowDemo
65687a61e16f947b7ec8a85d12213f954a71542b
[ "MIT" ]
null
null
null
import numpy as np def loadDataSet(): postingList = [['my', 'dog', 'has', 'flea', 'problems', 'help', 'please'], #[0,0,1,1,1......] ['maybe', 'not', 'take', 'him', 'to', 'dog', 'park', 'stupid'], ['my', 'dalmation', 'is', 'so', 'cute', 'I', 'love', 'him'], ...
31.738462
97
0.573921
0
0
0
0
0
0
0
0
405
0.196316
86bbd227d8b7715b6a7438754f63aeb34b54d300
169
py
Python
py/debug/__init__.py
segrids/arduino_due
f375020b81459eae9b325aa3646ff84efc2853e8
[ "MIT" ]
3
2021-08-20T16:03:37.000Z
2022-03-23T20:23:30.000Z
py/debug/__init__.py
segrids/testbench
f375020b81459eae9b325aa3646ff84efc2853e8
[ "MIT" ]
null
null
null
py/debug/__init__.py
segrids/testbench
f375020b81459eae9b325aa3646ff84efc2853e8
[ "MIT" ]
null
null
null
from .swd import SWD from .ahb import AHB from .debugger import Debugger, HaltError, NotHaltedError try: from .dwarf import ELFDebugger except ImportError: pass
21.125
57
0.775148
0
0
0
0
0
0
0
0
0
0
86bc2f5f9e49100c67489c79936cc4b670708f66
72
py
Python
HAP-NodeJS/Switch3_1.py
cbdunc2/pi-kit
bf7e9e118af7853d509e0a10c95ba5d8564bb157
[ "MIT" ]
null
null
null
HAP-NodeJS/Switch3_1.py
cbdunc2/pi-kit
bf7e9e118af7853d509e0a10c95ba5d8564bb157
[ "MIT" ]
null
null
null
HAP-NodeJS/Switch3_1.py
cbdunc2/pi-kit
bf7e9e118af7853d509e0a10c95ba5d8564bb157
[ "MIT" ]
null
null
null
import subprocess subprocess.Popen(['sh', '../Switches/Switch3_On.sh'])
24
53
0.736111
0
0
0
0
0
0
0
0
31
0.430556
86bcd2890d4f11513d628469a8efe8d1af2d7195
65
py
Python
src/cicd_sim/artifact/__init__.py
Software-Natives-OSS/cicd_sim
19452a5b06a6c6d99322c9b6777c501025e954f1
[ "MIT" ]
null
null
null
src/cicd_sim/artifact/__init__.py
Software-Natives-OSS/cicd_sim
19452a5b06a6c6d99322c9b6777c501025e954f1
[ "MIT" ]
8
2020-03-12T05:51:56.000Z
2020-03-15T17:31:12.000Z
src/cicd_sim/artifact/__init__.py
Software-Natives-OSS/cicd_sim
19452a5b06a6c6d99322c9b6777c501025e954f1
[ "MIT" ]
null
null
null
from . artifactory import Artifactory __all__ = ['Artifactory']
16.25
37
0.769231
0
0
0
0
0
0
0
0
13
0.2
86bd70e7874de4b570ed32325f28d65eaa058486
4,544
py
Python
mandoline/line_segment3d.py
Spiritdude/mandoline-py
702cd1f9264c7d5d814600ff919406387fd86185
[ "BSD-2-Clause" ]
5
2021-09-16T10:41:44.000Z
2021-11-04T14:45:24.000Z
mandoline/line_segment3d.py
Spiritdude/mandoline-py
702cd1f9264c7d5d814600ff919406387fd86185
[ "BSD-2-Clause" ]
null
null
null
mandoline/line_segment3d.py
Spiritdude/mandoline-py
702cd1f9264c7d5d814600ff919406387fd86185
[ "BSD-2-Clause" ]
null
null
null
class LineSegment3D(object): """A class to represent a 3D line segment.""" def __init__(self, p1, p2): """Initialize with two endpoints.""" if p1 > p2: p1, p2 = (p2, p1) self.p1 = p1 self.p2 = p2 self.count = 1 def __len__(self): """Line segment...
28.223602
79
0.53015
4,476
0.985035
262
0.057658
0
0
0
0
1,203
0.264745
86bd7ed417f64120a297b91ba487086bf72ccb3f
2,328
py
Python
cacheable/adapter/PeeweeAdapter.py
d1hotpep/cacheable
9ea97d6504965179f8fe495b67e466c068719445
[ "MIT" ]
null
null
null
cacheable/adapter/PeeweeAdapter.py
d1hotpep/cacheable
9ea97d6504965179f8fe495b67e466c068719445
[ "MIT" ]
null
null
null
cacheable/adapter/PeeweeAdapter.py
d1hotpep/cacheable
9ea97d6504965179f8fe495b67e466c068719445
[ "MIT" ]
null
null
null
import peewee import playhouse.kv from time import time from . import CacheableAdapter class PeeweeAdapter(CacheableAdapter, peewee.Model): key = peewee.CharField(max_length=256, unique=True) value = playhouse.kv.JSONField() mtime = peewee.IntegerField(default=time) ttl = peewee.IntegerField(default=...
24.25
72
0.537371
2,237
0.960911
0
0
374
0.160653
0
0
100
0.042955
86bf8dc5885e11ca632362fcec2e79f7e5e74050
6,006
py
Python
mmgen/models/architectures/arcface/helpers.py
plutoyuxie/mmgeneration
0a7f5d16c970de1766ebf049d7a0264fe506504b
[ "Apache-2.0" ]
null
null
null
mmgen/models/architectures/arcface/helpers.py
plutoyuxie/mmgeneration
0a7f5d16c970de1766ebf049d7a0264fe506504b
[ "Apache-2.0" ]
null
null
null
mmgen/models/architectures/arcface/helpers.py
plutoyuxie/mmgeneration
0a7f5d16c970de1766ebf049d7a0264fe506504b
[ "Apache-2.0" ]
null
null
null
from collections import namedtuple import torch from torch.nn import (AdaptiveAvgPool2d, BatchNorm2d, Conv2d, MaxPool2d, Module, PReLU, ReLU, Sequential, Sigmoid) # yapf: disable """ ArcFace implementation from [TreB1eN](https://github.com/TreB1eN/InsightFace_Pytorch) # isort:skip # noqa """ # ...
30.180905
106
0.585914
3,400
0.566101
0
0
0
0
0
0
1,915
0.318848
86bfaf5a13f46371cddc52c365f2b99eb199e27e
1,694
py
Python
createplaylist.py
mahi0601/SpotifyPlaylist
55e30bb4c13f291693b892d6eeccc70b4a769805
[ "MIT" ]
47
2020-09-21T11:35:10.000Z
2022-01-17T21:25:39.000Z
createplaylist.py
mahi0601/SpotifyPlaylist
55e30bb4c13f291693b892d6eeccc70b4a769805
[ "MIT" ]
2
2021-03-31T17:02:24.000Z
2021-07-30T08:17:37.000Z
createplaylist.py
mahi0601/SpotifyPlaylist
55e30bb4c13f291693b892d6eeccc70b4a769805
[ "MIT" ]
24
2020-09-21T16:45:38.000Z
2022-03-02T10:50:47.000Z
import os from spotifyclient import SpotifyClient def main(): spotify_client = SpotifyClient(os.getenv("SPOTIFY_AUTHORIZATION_TOKEN"), os.getenv("SPOTIFY_USER_ID")) # get last played tracks num_tracks_to_visualise = int(input("How many tracks would you like to visualis...
42.35
118
0.725502
0
0
0
0
0
0
0
0
791
0.466942
86c0f5e44bffc70a506881987c3f56e4e3ef7cdd
30,797
py
Python
tests/contrib/flask/test_request.py
thieman/dd-trace-py
1e87c9bdf7769032982349c4ccc0e1c2e6866a16
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/flask/test_request.py
thieman/dd-trace-py
1e87c9bdf7769032982349c4ccc0e1c2e6866a16
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
tests/contrib/flask/test_request.py
thieman/dd-trace-py
1e87c9bdf7769032982349c4ccc0e1c2e6866a16
[ "Apache-2.0", "BSD-3-Clause" ]
1
2021-02-11T10:20:14.000Z
2021-02-11T10:20:14.000Z
# -*- coding: utf-8 -*- from ddtrace.compat import PY2 from ddtrace.constants import ANALYTICS_SAMPLE_RATE_KEY from ddtrace.contrib.flask.patch import flask_version from ddtrace.ext import http from ddtrace.propagation.http import HTTP_HEADER_TRACE_ID, HTTP_HEADER_PARENT_ID from flask import abort from . import BaseFl...
39.892487
117
0.618437
30,359
0.984212
0
0
1,156
0.037476
0
0
9,775
0.316897
86c23c7616ed380cf3c80ae082afe689a1c8e0b9
7,318
py
Python
ConvDR/data/preprocess_cast19.py
blazejdolicki/CHEDAR
e4819775e7f6ffa2d6f1ad798ee262f01370b236
[ "MIT" ]
1
2021-11-10T13:39:16.000Z
2021-11-10T13:39:16.000Z
ConvDR/data/preprocess_cast19.py
blazejdolicki/CHEDAR
e4819775e7f6ffa2d6f1ad798ee262f01370b236
[ "MIT" ]
null
null
null
ConvDR/data/preprocess_cast19.py
blazejdolicki/CHEDAR
e4819775e7f6ffa2d6f1ad798ee262f01370b236
[ "MIT" ]
null
null
null
import argparse from trec_car import read_data from tqdm import tqdm import pickle import os import json import copy from utils.util import NUM_FOLD def parse_sim_file(filename): """ Reads the deduplicated documents file and stores the duplicate passage ids into a dictionary """ sim_dict = {} ...
39.556757
104
0.562859
0
0
0
0
0
0
0
0
1,249
0.170675
86c253258ad8f50c39a576db2e17ac13da5ea1c7
15,207
py
Python
coord_convert/geojson_utils.py
brandonxiang/example-pyQGIS
a61d0321d223d0b82e44bb809521965858fde857
[ "MIT" ]
3
2017-02-23T08:35:30.000Z
2018-12-11T05:50:54.000Z
coord_convert/geojson_utils.py
brandonxiang/example-pyQGIS
a61d0321d223d0b82e44bb809521965858fde857
[ "MIT" ]
null
null
null
coord_convert/geojson_utils.py
brandonxiang/example-pyQGIS
a61d0321d223d0b82e44bb809521965858fde857
[ "MIT" ]
2
2019-10-22T02:16:50.000Z
2020-09-28T11:37:48.000Z
__doc__ = 'github: https://github.com/brandonxiang/geojson-python-utils' import math from coordTransform_utils import wgs84togcj02 from coordTransform_utils import gcj02tobd09 def linestrings_intersect(line1, line2): """ To valid whether linestrings from geojson are intersected with each other. reference:...
31.290123
125
0.572105
0
0
0
0
0
0
0
0
5,403
0.355297
86c29a98e5b655839d8db00b70a6a8da9b1ef8d8
388
py
Python
config.py
Rinku92/Mini_Project3
eab11ce3743fddda2ccc158367a37d4522ba1e39
[ "MIT" ]
null
null
null
config.py
Rinku92/Mini_Project3
eab11ce3743fddda2ccc158367a37d4522ba1e39
[ "MIT" ]
null
null
null
config.py
Rinku92/Mini_Project3
eab11ce3743fddda2ccc158367a37d4522ba1e39
[ "MIT" ]
null
null
null
import os ''' user = os.environ['POSTGRES_USER'] password = os.environ['POSTGRES_PASSWORD'] host = os.environ['POSTGRES_HOST'] database = os.environ['POSTGRES_DB'] port = os.environ['POSTGRES_PORT'] ''' user = 'test' password = 'password' host = 'localhost' database = 'example' port = '5432' DATABASE_CONNECTION_URI =...
24.25
93
0.716495
0
0
0
0
0
0
0
0
302
0.778351
86c368ef733994c7aa8778c60fbe8e4bdf94dac9
347
py
Python
10_days_of_statistics_8_1.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
10_days_of_statistics_8_1.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
10_days_of_statistics_8_1.py
sercangul/HackerRank
e6d7056babe03baafee8d7f1cacdca7c28b72ded
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Jun 3 19:26:47 2019 @author: sercangul """ n = 5 xy = [map(int, input().split()) for _ in range(n)] sx, sy, sx2, sxy = map(sum, zip(*[(x, y, x**2, x * y) for x, y in xy])) b = (n * sxy - sx * sy) / (n * sx2 - sx**2) a = (sy / n) - b * (sx / n) print('...
24.785714
71
0.501441
0
0
0
0
0
0
0
0
116
0.334294
86c4016c71680c25695f7a5d4e332b95ab4759b0
450
py
Python
rlutils/gym/envs/reset_obs/hopper.py
vermouth1992/rl-util
4c06ab8f5c96a44e58f88cf30146bcb837057112
[ "Apache-2.0" ]
null
null
null
rlutils/gym/envs/reset_obs/hopper.py
vermouth1992/rl-util
4c06ab8f5c96a44e58f88cf30146bcb837057112
[ "Apache-2.0" ]
null
null
null
rlutils/gym/envs/reset_obs/hopper.py
vermouth1992/rl-util
4c06ab8f5c96a44e58f88cf30146bcb837057112
[ "Apache-2.0" ]
null
null
null
import gym.envs.mujoco.hopper as hopper import numpy as np class HopperEnv(hopper.HopperEnv): def _get_obs(self): return np.concatenate([ self.sim.data.qpos.flat[1:], self.sim.data.qvel.flat, ]) def reset_obs(self, obs): state = np.insert(obs, 0, 0.) qp...
25
40
0.591111
388
0.862222
0
0
0
0
0
0
0
0
86c445a03cb1fedcfaa9af4175640a3d81afd9b9
8,505
py
Python
reco_utils/recommender/deeprec/io/iterator.py
yutian-zhao/recommenders
17b9c1280a79019dd91f50b3a7e66f25cb5004b1
[ "MIT" ]
null
null
null
reco_utils/recommender/deeprec/io/iterator.py
yutian-zhao/recommenders
17b9c1280a79019dd91f50b3a7e66f25cb5004b1
[ "MIT" ]
null
null
null
reco_utils/recommender/deeprec/io/iterator.py
yutian-zhao/recommenders
17b9c1280a79019dd91f50b3a7e66f25cb5004b1
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. import numpy as np # import tensorflow as tf import abc class BaseIterator(object): @abc.abstractmethod def parser_one_line(self, line): pass @abc.abstractmethod def load_data_from_file(self, infile...
38.310811
112
0.55485
345
0.040564
0
0
295
0.034685
0
0
7,894
0.92816
86c60d6dd1a1d7d8e36a571eddb9e98fee94282b
108
py
Python
HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW6/YuliiaKutsyk/3_ unfinished_loop_bug_fixing.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
def create_array(n): res=[] i=1 while i<=n: res.append(i) i += 1 return res
13.5
21
0.453704
0
0
0
0
0
0
0
0
0
0
86c692ea321aa5d6632c79b6a92f458cad0e5a70
2,723
py
Python
ncm/api.py
SDhuangao/netease-cloud-music-dl
4a970504e1fec0a9848f3920b392aa507d6b3879
[ "MIT" ]
null
null
null
ncm/api.py
SDhuangao/netease-cloud-music-dl
4a970504e1fec0a9848f3920b392aa507d6b3879
[ "MIT" ]
null
null
null
ncm/api.py
SDhuangao/netease-cloud-music-dl
4a970504e1fec0a9848f3920b392aa507d6b3879
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import requests from ncm.encrypt import encrypted_request from ncm.constants import headers from ncm.constants import song_download_url from ncm.constants import get_song_url from ncm.constants import get_album_url from ncm.constants import get_artist_url from ncm.constants import get_playlist...
27.505051
84
0.589791
2,392
0.878443
0
0
0
0
0
0
748
0.274697
86c7301877ec46ff5d214d67d7d24373229e91aa
15,337
py
Python
book/trees/binary_search_tree.py
Web-Dev-Collaborative/algos
d280581d74ded382094283d931a202eb55fd8369
[ "CC0-1.0" ]
153
2015-12-24T00:32:23.000Z
2022-02-24T06:00:29.000Z
book/trees/binary_search_tree.py
Web-Dev-Collaborative/algos
d280581d74ded382094283d931a202eb55fd8369
[ "CC0-1.0" ]
78
2015-11-17T11:46:15.000Z
2021-06-28T18:37:58.000Z
book/trees/binary_search_tree.py
rhivent/algo-books-python
c4fa29616ca9a8a15ba40fa12d21fd8f35096d40
[ "CC0-1.0" ]
66
2015-11-02T03:38:02.000Z
2022-03-05T17:36:26.000Z
# -*- coding: utf-8 -*- """ The `TreeNode` class provides many helper functions that make the work done in the `BinarySearchTree` class methods much easier. The constructor for a `TreeNode`, along with these helper functions, is shown below. As you can see, many of these helper functions help to classify a node acco...
37.775862
78
0.684684
13,906
0.905987
339
0.022086
0
0
0
0
10,189
0.663822
86c7d4acbb62e0447380b9c4c68ef07bbf5ead1b
28,677
py
Python
fire/core.py
adamruth/python-fire
6912ccd56f50e0f4bb30a0725d95858ef29f3bde
[ "Apache-2.0" ]
1
2020-02-05T04:43:03.000Z
2020-02-05T04:43:03.000Z
fire/core.py
chesnjak/python-fire
72604f40314008e562ba47936dcc183b51166b72
[ "Apache-2.0" ]
null
null
null
fire/core.py
chesnjak/python-fire
72604f40314008e562ba47936dcc183b51166b72
[ "Apache-2.0" ]
1
2020-07-15T22:58:25.000Z
2020-07-15T22:58:25.000Z
# Copyright (C) 2017 Google 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 in writing, ...
36.577806
80
0.706873
901
0.031419
0
0
0
0
0
0
14,202
0.49524
86c845d512d008bf07b10c93c9a059cfaa7474a0
1,668
py
Python
app.py
AmirValeev/auto-ml-classifier
e803fe92d1ec71e87509845ea61ecc46b363bae6
[ "Apache-2.0" ]
null
null
null
app.py
AmirValeev/auto-ml-classifier
e803fe92d1ec71e87509845ea61ecc46b363bae6
[ "Apache-2.0" ]
null
null
null
app.py
AmirValeev/auto-ml-classifier
e803fe92d1ec71e87509845ea61ecc46b363bae6
[ "Apache-2.0" ]
null
null
null
import os, ast import pandas as pd from sklearn.svm import SVC from sklearn.model_selection import train_test_split from sklearn.preprocessing import OneHotEncoder from sklearn.compose import make_column_transformer from sklearn.pipeline import make_pipeline import pickle def main(): # Get the dataset from the us...
33.36
126
0.668465
0
0
0
0
0
0
0
0
557
0.333933
86c8b4810cb292d6be03cbb1ee7d68143bb6929f
512
py
Python
util/headers.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
util/headers.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
util/headers.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import base64 def parse_basic_auth(header_value): """ Attempts to parse the given header value as a Base64-encoded Basic auth header. """ if not header_value: return None parts = header_value.split(" ") if len(parts) != 2 or parts[0].lower() != "basic": return None try: ...
21.333333
83
0.599609
0
0
0
0
0
0
0
0
108
0.210938
86c9f566a6eb8b7449c2eceeae4f2a4b402b56f5
3,115
py
Python
indico/core/signals/event/core.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
indico/core/signals/event/core.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
indico/core/signals/event/core.py
tobiashuste/indico
c1e6ec0c8c84745988e38c9b1768142a6feb9e0e
[ "MIT" ]
null
null
null
# This file is part of Indico. # Copyright (C) 2002 - 2020 CERN # # Indico is free software; you can redistribute it and/or # modify it under the terms of the MIT License; see the # LICENSE file for more details. from indico.core.signals.event import _signals sidemenu = _signals.signal('sidemenu', """ Expected to re...
35.804598
81
0.741252
0
0
0
0
0
0
0
0
2,544
0.816693
86ca3287dbcbbef744a382d06122c372e95e738d
3,294
py
Python
cinder/tests/unit/volume/drivers/emc/scaleio/test_delete_volume.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-08-25T13:11:18.000Z
2020-10-15T11:29:20.000Z
cinder/tests/unit/volume/drivers/emc/scaleio/test_delete_volume.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
5
2018-01-25T11:31:56.000Z
2019-05-06T23:13:35.000Z
cinder/tests/unit/volume/drivers/emc/scaleio/test_delete_volume.py
aarunsai81/netapp
8f0f7bf9be7f4d9fb9c3846bfc639c90a05f86ba
[ "Apache-2.0" ]
11
2015-02-20T18:48:24.000Z
2021-01-30T20:26:18.000Z
# Copyright (c) 2013 - 2015 EMC Corporation. # 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 # # Unle...
39.686747
78
0.610808
2,348
0.712811
0
0
0
0
0
0
1,211
0.367638
86ca3cb4e460e6fa964047e9d8e3d1c032b0dafb
1,233
py
Python
example-package/transportation_tutorials/__init__.py
chrisc20042001/python-for-transportation-modeling
677129daa390fcaa6e5cde45960e27d9bd6ca4bf
[ "BSD-3-Clause" ]
null
null
null
example-package/transportation_tutorials/__init__.py
chrisc20042001/python-for-transportation-modeling
677129daa390fcaa6e5cde45960e27d9bd6ca4bf
[ "BSD-3-Clause" ]
null
null
null
example-package/transportation_tutorials/__init__.py
chrisc20042001/python-for-transportation-modeling
677129daa390fcaa6e5cde45960e27d9bd6ca4bf
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- __version__ = '1.0.2' import os import appdirs import osmnx as ox import joblib import requests from .files import load_vars, save_vars, cached, inflate_tar, download_zipfile from .data import data, list_data, problematic from .tools.view_code import show_file from . import mapping cache_dir ...
20.55
79
0.721006
0
0
0
0
0
0
0
0
331
0.268451
86ca8c2e422d5ab12a80680e14af6535e5befd05
2,146
py
Python
common/common.py
czajowaty/curry-bot
91bfbd884342a02c6defd057d27d5b1fcd78cb21
[ "MIT" ]
3
2019-10-09T23:17:55.000Z
2022-02-01T17:34:27.000Z
common/common.py
czajowaty/curry-bot
91bfbd884342a02c6defd057d27d5b1fcd78cb21
[ "MIT" ]
19
2019-10-09T20:42:05.000Z
2022-02-01T08:22:25.000Z
common/common.py
czajowaty/curry-bot
91bfbd884342a02c6defd057d27d5b1fcd78cb21
[ "MIT" ]
6
2020-08-09T20:17:13.000Z
2022-01-27T23:59:28.000Z
from requests.models import PreparedRequest def is_valid_url(url): prepared_request = PreparedRequest() try: prepared_request.prepare_url(url, None) return True except Exception as e: return False class Timestamp: # a speedrun.com style timestamp e.g. "3h 53m 233s 380ms" def...
32.029851
152
0.56384
1,908
0.889096
0
0
292
0.136067
0
0
99
0.046132
86cbceec04afe24550cbee582258380f822dc77d
5,265
py
Python
hendrix/test/test_ux.py
anthonyalmarza/hendrix
eebd2a2183cc18ec2267d96a53a70d41b1630ce6
[ "MIT" ]
null
null
null
hendrix/test/test_ux.py
anthonyalmarza/hendrix
eebd2a2183cc18ec2267d96a53a70d41b1630ce6
[ "MIT" ]
null
null
null
hendrix/test/test_ux.py
anthonyalmarza/hendrix
eebd2a2183cc18ec2267d96a53a70d41b1630ce6
[ "MIT" ]
null
null
null
import os import sys from . import HendrixTestCase, TEST_SETTINGS from hendrix.contrib import SettingsError from hendrix.options import options as hx_options from hendrix import ux from mock import patch class TestMain(HendrixTestCase): def setUp(self): super(TestMain, self).setUp() self.DEFAULTS...
35.816327
77
0.637607
5,058
0.960684
0
0
0
0
0
0
673
0.127825
86cc1ac4bd0be7cfc736232b574de4d27f85e0ca
6,656
py
Python
discord/types/interactions.py
Voxel-Fox-Ltd/Novus
3e254115daf1c09455b26dc7819b73fbf5ee56e5
[ "MIT" ]
61
2021-08-30T05:30:31.000Z
2022-03-24T11:24:38.000Z
discord/types/interactions.py
Voxel-Fox-Ltd/Novus
3e254115daf1c09455b26dc7819b73fbf5ee56e5
[ "MIT" ]
30
2021-08-31T10:16:42.000Z
2022-03-09T22:53:15.000Z
discord/types/interactions.py
Voxel-Fox-Ltd/Novus
3e254115daf1c09455b26dc7819b73fbf5ee56e5
[ "MIT" ]
15
2021-09-02T09:40:58.000Z
2022-02-25T12:19:02.000Z
""" The MIT License (MIT) Copyright (c) 2015-2021 Rapptz 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, ...
27.618257
99
0.790415
4,448
0.668269
0
0
0
0
0
0
1,125
0.16902
86cc747c2e5f0caead634114a98e5f4a747d16ea
15,163
py
Python
local/local_sign.py
EVAyo/chaoxing_auto_sign
7ae91a5e9aa4d15f57a5419ff3f5a455e151930a
[ "MIT" ]
null
null
null
local/local_sign.py
EVAyo/chaoxing_auto_sign
7ae91a5e9aa4d15f57a5419ff3f5a455e151930a
[ "MIT" ]
null
null
null
local/local_sign.py
EVAyo/chaoxing_auto_sign
7ae91a5e9aa4d15f57a5419ff3f5a455e151930a
[ "MIT" ]
null
null
null
# -*- coding: utf8 -*- import os import re import time import json import random import asyncio from typing import Optional, List, Dict from aiohttp import ClientSession from aiohttp.cookiejar import SimpleCookie from lxml import etree from bs4 import BeautifulSoup from config import * from message import server_chan...
33.770601
149
0.485722
15,455
0.979218
0
0
0
0
12,853
0.814357
3,573
0.226383
86ccfd65a1bb34c39113feed67502cda22587b34
4,240
py
Python
build/scripts-3.6/fit_background_model.py
stahlberggroup/umierrorcorrect
8ceabe30a87811dad467d04eb5a08d0213065946
[ "MIT" ]
null
null
null
build/scripts-3.6/fit_background_model.py
stahlberggroup/umierrorcorrect
8ceabe30a87811dad467d04eb5a08d0213065946
[ "MIT" ]
null
null
null
build/scripts-3.6/fit_background_model.py
stahlberggroup/umierrorcorrect
8ceabe30a87811dad467d04eb5a08d0213065946
[ "MIT" ]
1
2022-01-12T13:51:59.000Z
2022-01-12T13:51:59.000Z
#!python import numpy as np from numpy import inf from numpy import nan from scipy.optimize import fmin from scipy.stats import beta from scipy.special import beta as B from scipy.special import comb import argparse import sys def parseArgs(): '''Function for parsing arguments''' parser = argparse.ArgumentPars...
35.932203
154
0.566274
0
0
0
0
0
0
0
0
1,290
0.304245
86cdf766574c9c743ff631f5d4070feb9f763d2a
7,654
py
Python
caffe2/python/operator_test/partition_ops_test.py
KevinKecc/caffe2
a2b6c6e2f0686358a84277df65e9489fb7d9ddb2
[ "Apache-2.0" ]
585
2015-08-10T02:48:52.000Z
2021-12-01T08:46:59.000Z
caffe2/python/operator_test/partition_ops_test.py
mingzhe09088/caffe2
8f41717c46d214aaf62b53e5b3b9b308b5b8db91
[ "Apache-2.0" ]
27
2018-04-14T06:44:22.000Z
2018-08-01T18:02:39.000Z
caffe2/python/operator_test/partition_ops_test.py
mingzhe09088/caffe2
8f41717c46d214aaf62b53e5b3b9b308b5b8db91
[ "Apache-2.0" ]
183
2015-08-10T02:49:04.000Z
2021-12-01T08:47:13.000Z
# Copyright (c) 2016-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...
38.852792
80
0.468774
6,645
0.868174
0
0
0
0
0
0
1,118
0.146067
86ce2b47e96edc2e4a65e6684b182564c236c3d3
11,195
py
Python
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fib_common_cfg.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fib_common_cfg.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_fib_common_cfg.py
Maikor/ydk-py
b86c4a7c570ae3b2c5557d098420446df5de4929
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
""" Cisco_IOS_XR_fib_common_cfg This module contains a collection of YANG definitions for Cisco IOS\-XR fib\-common package configuration. This module contains definitions for the following management objects\: fib\: CEF configuration Copyright (c) 2013\-2018 by Cisco Systems, Inc. All rights reserved. """ from ...
34.875389
184
0.609915
10,552
0.942564
0
0
0
0
0
0
5,356
0.478428
86ce2bcecdfa6edd6bc5db700d444829470b263a
2,888
py
Python
action/combo.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
action/combo.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
action/combo.py
dl-stuff/dl9
1cbe98afc53a1de9d413797fb130946acc4b6ba4
[ "MIT" ]
null
null
null
"""Series of actions that form a combo chain""" from __future__ import annotations from typing import Optional, Sequence, TYPE_CHECKING from action import Action from core.utility import Array from core.constants import PlayerForm, SimActKind, MomentType from core.database import FromDB if TYPE_CHECKING: from ent...
42.470588
138
0.649584
2,531
0.876385
0
0
0
0
0
0
271
0.093837
86ce3c0225876fe3453133a9a0965f8f30c17a84
5,447
py
Python
flask_unchained/bundles/session/config.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
flask_unchained/bundles/session/config.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
flask_unchained/bundles/session/config.py
achiang/flask-unchained
12788a6e618904a25ff2b571eb05ff1dc8f1840f
[ "MIT" ]
null
null
null
import os from datetime import timedelta from flask_unchained import BundleConfig try: from flask_unchained.bundles.sqlalchemy import db except ImportError: db = None class _DefaultFlaskConfigForSessions(BundleConfig): SESSION_COOKIE_NAME = 'session' """ The name of the session cookie. Defa...
27.371859
111
0.668258
5,264
0.966404
0
0
0
0
0
0
4,285
0.786672
86ce9b178e942f833e8db993afdcf0aface18b4a
3,845
py
Python
sktime/forecasting/base/adapters/_statsmodels.py
tombh/sktime
53df0b9ed9d1fd800539165c414cc5611bcc56b3
[ "BSD-3-Clause" ]
1
2020-06-02T22:24:44.000Z
2020-06-02T22:24:44.000Z
sktime/forecasting/base/adapters/_statsmodels.py
abhishek-parashar/sktime
1dfce6b41c2acdb576acfc04b09d11bf115c92d1
[ "BSD-3-Clause" ]
1
2020-11-20T13:51:20.000Z
2020-11-20T13:51:20.000Z
sktime/forecasting/base/adapters/_statsmodels.py
abhishek-parashar/sktime
1dfce6b41c2acdb576acfc04b09d11bf115c92d1
[ "BSD-3-Clause" ]
3
2020-10-18T04:54:30.000Z
2021-02-15T18:04:18.000Z
#!/usr/bin/env python3 -u # -*- coding: utf-8 -*- __author__ = ["Markus Löning"] __all__ = ["_StatsModelsAdapter"] import numpy as np import pandas as pd from sktime.forecasting.base._base import DEFAULT_ALPHA from sktime.forecasting.base._sktime import _OptionalForecastingHorizonMixin from sktime.forecasting.base._...
32.310924
79
0.628349
3,024
0.786271
0
0
0
0
0
0
1,811
0.470879
86cf3a0a9a0e45685f04435a33dcecfd088782c9
12,924
py
Python
melodic/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkProperties.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
melodic/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkProperties.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
1
2021-07-08T10:26:06.000Z
2021-07-08T10:31:11.000Z
melodic/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkProperties.py
Dieptranivsr/Ros_Diep
d790e75e6f5da916701b11a2fdf3e03b6a47086b
[ "MIT" ]
null
null
null
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from gazebo_msgs/GetLinkPropertiesRequest.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct class GetLinkPropertiesRequest(genpy.Message): _md5sum = "7d82d6...
37.031519
284
0.638502
12,024
0.930362
0
0
0
0
0
0
5,175
0.400418
86cfbb57e1ec13e6ae0711449af6c95612ae3139
2,268
py
Python
jupytext/kernels.py
st--/jupytext
f8e8352859cc22e17b11154d0770fd946c4a430a
[ "MIT" ]
5,378
2018-09-01T22:03:43.000Z
2022-03-31T06:51:42.000Z
jupytext/kernels.py
st--/jupytext
f8e8352859cc22e17b11154d0770fd946c4a430a
[ "MIT" ]
812
2018-08-31T08:26:13.000Z
2022-03-30T18:12:11.000Z
jupytext/kernels.py
st--/jupytext
f8e8352859cc22e17b11154d0770fd946c4a430a
[ "MIT" ]
380
2018-09-02T01:40:07.000Z
2022-03-25T13:57:23.000Z
"""Find kernel specifications for a given language""" import os import sys from .languages import same_language from .reraise import reraise try: # I prefer not to take a dependency on jupyter_client from jupyter_client.kernelspec import find_kernel_specs, get_kernel_spec except ImportError as err: find_...
36
116
0.622575
0
0
0
0
0
0
0
0
680
0.299824
86d025f02ce51457ef476e760c051f7660045f69
5,333
py
Python
scipy/sparse/_matrix_io.py
dhruv9vats/scipy
48e1dd7e604df3ae57d104b407c5b7a2a6a3247d
[ "BSD-3-Clause" ]
1
2021-08-16T09:32:42.000Z
2021-08-16T09:32:42.000Z
scipy/sparse/_matrix_io.py
dhruv9vats/scipy
48e1dd7e604df3ae57d104b407c5b7a2a6a3247d
[ "BSD-3-Clause" ]
44
2019-06-27T15:56:14.000Z
2022-03-15T22:21:10.000Z
scipy/sparse/_matrix_io.py
dhruv9vats/scipy
48e1dd7e604df3ae57d104b407c5b7a2a6a3247d
[ "BSD-3-Clause" ]
4
2020-06-13T10:32:25.000Z
2021-12-03T15:48:16.000Z
import numpy as np import scipy.sparse __all__ = ['save_npz', 'load_npz'] # Make loading safe vs. malicious input PICKLE_KWARGS = dict(allow_pickle=False) def save_npz(file, matrix, compressed=True): """ Save a sparse matrix to a file using ``.npz`` format. Parameters ---------- file : str or file...
35.553333
114
0.615976
0
0
0
0
0
0
0
0
3,608
0.676542
86d07b07d670dc9caa0bd92708721764a364d527
1,423
py
Python
src/simulator/services/resources/atlas.py
ed741/PathBench
50fe138eb1f824f49fe1a862705e435a1c3ec3ae
[ "BSD-3-Clause" ]
46
2020-12-25T04:09:15.000Z
2022-03-25T12:32:42.000Z
src/simulator/services/resources/atlas.py
ed741/PathBench
50fe138eb1f824f49fe1a862705e435a1c3ec3ae
[ "BSD-3-Clause" ]
36
2020-12-21T16:10:02.000Z
2022-01-03T01:42:01.000Z
src/simulator/services/resources/atlas.py
judicaelclair/PathBenchURO
101e67674efdfa8e27e1cf7787dac9fdf99552fe
[ "BSD-3-Clause" ]
11
2021-01-06T23:34:12.000Z
2022-03-21T17:21:47.000Z
from typing import Dict, List from simulator.services.resources.directory import Directory from simulator.services.services import Services class Atlas(Directory): def __init__(self, services: Services, name: str, parent: str, create: bool = False) -> None: super().__init__(services, name, parent, create...
29.040816
97
0.579761
1,279
0.898805
0
0
0
0
0
0
61
0.042867
86d18fa6bf233db205e6db3a19952144dd79aa36
1,427
py
Python
ingestion/src/metadata/great_expectations/builders/table/row_count_to_equal.py
ulixius9/OpenMetadata
f121698d968717f0932f685ef2a512c2a4d92438
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/great_expectations/builders/table/row_count_to_equal.py
ulixius9/OpenMetadata
f121698d968717f0932f685ef2a512c2a4d92438
[ "Apache-2.0" ]
null
null
null
ingestion/src/metadata/great_expectations/builders/table/row_count_to_equal.py
ulixius9/OpenMetadata
f121698d968717f0932f685ef2a512c2a4d92438
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Collate # 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...
41.970588
86
0.756833
491
0.344078
0
0
0
0
0
0
726
0.50876
86d22671738e4b0cf43566c5aeec7cd2a5f04193
6,899
py
Python
tensorflow/bbox/jrieke-tf-parse-v2/jrieke_tf_dataset.py
gustavovaliati/obj-det-experiments
e81774a18b34c22d971ad15d7ac6eb8663ac6f22
[ "Apache-2.0" ]
null
null
null
tensorflow/bbox/jrieke-tf-parse-v2/jrieke_tf_dataset.py
gustavovaliati/obj-det-experiments
e81774a18b34c22d971ad15d7ac6eb8663ac6f22
[ "Apache-2.0" ]
null
null
null
tensorflow/bbox/jrieke-tf-parse-v2/jrieke_tf_dataset.py
gustavovaliati/obj-det-experiments
e81774a18b34c22d971ad15d7ac6eb8663ac6f22
[ "Apache-2.0" ]
null
null
null
''' This code is based on https://github.com/jrieke/shape-detection/ ''' import matplotlib.pyplot as plt import matplotlib import numpy as np import tensorflow as tf import datetime class JriekeBboxDataset: def generate(self): print('Generating...') self.WIDTH = 8 self.HEIGHT = 8 ...
40.582353
142
0.59052
6,714
0.973185
0
0
0
0
0
0
1,478
0.214234
86d39cbeb38ed832359d8101e1462aeccc15eee8
1,400
py
Python
src/knownnodes.py
skeevey/PyBitmessage
196d688b138393d1d540df3322844dfe7e7c02ba
[ "MIT" ]
1
2018-04-25T08:08:47.000Z
2018-04-25T08:08:47.000Z
src/knownnodes.py
skeevey/PyBitmessage
196d688b138393d1d540df3322844dfe7e7c02ba
[ "MIT" ]
null
null
null
src/knownnodes.py
skeevey/PyBitmessage
196d688b138393d1d540df3322844dfe7e7c02ba
[ "MIT" ]
1
2018-04-25T08:08:48.000Z
2018-04-25T08:08:48.000Z
import pickle import threading from bmconfigparser import BMConfigParser import state knownNodesLock = threading.Lock() knownNodes = {} knownNodesTrimAmount = 2000 def saveKnownNodes(dirName = None): if dirName is None: dirName = state.appdata with knownNodesLock: with open(dirName + 'knownn...
30.434783
120
0.648571
0
0
0
0
0
0
0
0
84
0.06
86d3d194e9e0137871f97d1ad57cf24e9f4a90e3
1,672
py
Python
chroma_agent/action_plugins/manage_node.py
whamcloud/iml-agent
fecb2468fd6edc822f3ab37ced444d98d8725730
[ "MIT" ]
1
2020-04-22T16:43:09.000Z
2020-04-22T16:43:09.000Z
chroma_agent/action_plugins/manage_node.py
AlexTalker/iml-agent
5ebcfe96be670912d9a9b7fbb23431af0d54f768
[ "MIT" ]
53
2018-07-07T18:17:50.000Z
2021-03-19T23:15:28.000Z
chroma_agent/action_plugins/manage_node.py
AlexTalker/iml-agent
5ebcfe96be670912d9a9b7fbb23431af0d54f768
[ "MIT" ]
6
2018-06-18T08:51:38.000Z
2019-10-24T12:16:42.000Z
# Copyright (c) 2018 DDN. All rights reserved. # Use of this source code is governed by a MIT-style # license that can be found in the LICENSE file. import os from chroma_agent.lib.shell import AgentShell from chroma_agent.log import console_log from chroma_agent.device_plugins.action_runner import CallbackAfterResp...
27.866667
75
0.703947
0
0
0
0
0
0
0
0
615
0.367823
86d45952adaab5e1d25729182d1ca80f64803a29
8,103
py
Python
census_data_downloader/core/tables.py
ian-r-rose/census-data-downloader
f8ac9d773e6d3f52be87bf916a2e32249391f966
[ "MIT" ]
null
null
null
census_data_downloader/core/tables.py
ian-r-rose/census-data-downloader
f8ac9d773e6d3f52be87bf916a2e32249391f966
[ "MIT" ]
null
null
null
census_data_downloader/core/tables.py
ian-r-rose/census-data-downloader
f8ac9d773e6d3f52be87bf916a2e32249391f966
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -* """ A base class that governs how to download and process tables from a Census API table. """ import os import logging import pathlib from . import geotypes from . import decorators logger = logging.getLogger(__name__) class BaseTableConfig(object): """ Configures...
28.038062
96
0.60817
7,835
0.966926
0
0
4,126
0.509194
0
0
2,944
0.363322
86d61d512c3c9d47b1f63fe91873604a549e077d
5,422
py
Python
sgf2ebook.py
loujine/sgf2ebook
13c87056646cc6c06485b129221ab2028e67ef95
[ "MIT" ]
null
null
null
sgf2ebook.py
loujine/sgf2ebook
13c87056646cc6c06485b129221ab2028e67ef95
[ "MIT" ]
null
null
null
sgf2ebook.py
loujine/sgf2ebook
13c87056646cc6c06485b129221ab2028e67ef95
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import os from pathlib import Path import shutil import subprocess import sys from tempfile import TemporaryDirectory from uuid import uuid4 from zipfile import ZipFile import jinja2 import sente # type: ignore __version__ = (1, 0, 0) SGF_RENDER_EXECUTABLE = './sgf-render' TE...
34.75641
142
0.574511
0
0
0
0
0
0
0
0
1,310
0.241608
86d6728bc96a31ea175e93ab91aadcc559c13053
1,788
py
Python
vmis_sql_python/evaluation/metrics/popularity.py
bolcom/serenade-experiments-sigmod
0a4c7f19d800d1c2784ea5536abb1a628cb12f7a
[ "Apache-2.0" ]
null
null
null
vmis_sql_python/evaluation/metrics/popularity.py
bolcom/serenade-experiments-sigmod
0a4c7f19d800d1c2784ea5536abb1a628cb12f7a
[ "Apache-2.0" ]
null
null
null
vmis_sql_python/evaluation/metrics/popularity.py
bolcom/serenade-experiments-sigmod
0a4c7f19d800d1c2784ea5536abb1a628cb12f7a
[ "Apache-2.0" ]
null
null
null
class Popularity: ''' Popularity( length=20 ) Used to iteratively calculate the average overall popularity of an algorithm's recommendations. Parameters ----------- length : int Coverage@length training_df : dataframe determines how many distinct item_ids there are in the ...
33.735849
100
0.597315
1,779
0.994966
0
0
0
0
0
0
911
0.509508
86d75a7478a79891b6baf0f18c7802c22b104725
918
py
Python
dandeliondiary/household/urls.py
amberdiehl/dandeliondiary_project
e9bace5bd7980def6ca763840ab5b38f1e05cd3d
[ "FSFAP" ]
null
null
null
dandeliondiary/household/urls.py
amberdiehl/dandeliondiary_project
e9bace5bd7980def6ca763840ab5b38f1e05cd3d
[ "FSFAP" ]
6
2020-04-29T23:54:15.000Z
2022-03-11T23:25:24.000Z
dandeliondiary/household/urls.py
amberdiehl/dandeliondiary_project
e9bace5bd7980def6ca763840ab5b38f1e05cd3d
[ "FSFAP" ]
null
null
null
from django.conf.urls import include, url from . import views urlpatterns = [ url(r'^settings$', views.household_dashboard, name='household_dashboard'), url(r'^myinfo$', views.my_info, name='my_info'), url(r'^profile$', views.household_profile, name='maintain_household'), url(r'^members$', views.househ...
54
95
0.683007
0
0
0
0
0
0
0
0
408
0.444444
86d75f7e9a302f49289d9be8498b550dc47650fa
79,634
py
Python
private/templates/NYC/config.py
devinbalkind/eden
d5a684eae537432eb2c7d954132484a4714ca8fb
[ "MIT" ]
null
null
null
private/templates/NYC/config.py
devinbalkind/eden
d5a684eae537432eb2c7d954132484a4714ca8fb
[ "MIT" ]
null
null
null
private/templates/NYC/config.py
devinbalkind/eden
d5a684eae537432eb2c7d954132484a4714ca8fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- try: # Python 2.7 from collections import OrderedDict except: # Python 2.6 from gluon.contrib.simplejson.ordered_dict import OrderedDict from gluon import current from gluon.html import A, URL from gluon.storage import Storage from s3 import s3_fullname T = current.T settings...
39.422772
187
0.470226
0
0
0
0
0
0
0
0
24,746
0.310743
86d782fd2d0c71e606843e5d70887529cd2c5a40
106
py
Python
experiments/issue561/v2.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2019-04-23T10:41:35.000Z
2019-10-27T05:14:42.000Z
experiments/issue561/v2.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
null
null
null
experiments/issue561/v2.py
nitinkaveriappa/downward
5c9a1b5111d667bb96f94da61ca2a45b1b70bb83
[ "MIT" ]
4
2018-01-16T00:00:22.000Z
2019-11-01T23:35:01.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- from main import main main("issue561-v1", "issue561-v2")
15.142857
34
0.632075
0
0
0
0
0
0
0
0
71
0.669811
86d8ff6a04670083ea5d1c4de998cdc6916ada2c
4,207
py
Python
q2_qemistree/tests/test_fingerprint.py
tgroth97/q2-qemistree
289c447a6c3a29478bb84212281ef0d7ffc1387a
[ "BSD-2-Clause" ]
null
null
null
q2_qemistree/tests/test_fingerprint.py
tgroth97/q2-qemistree
289c447a6c3a29478bb84212281ef0d7ffc1387a
[ "BSD-2-Clause" ]
null
null
null
q2_qemistree/tests/test_fingerprint.py
tgroth97/q2-qemistree
289c447a6c3a29478bb84212281ef0d7ffc1387a
[ "BSD-2-Clause" ]
null
null
null
# ---------------------------------------------------------------------------- # Copyright (c) 2016-2018, QIIME 2 development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
45.728261
78
0.548134
3,473
0.825529
0
0
0
0
0
0
752
0.17875
86d90c0ca6a5dbc266bca705498a4a9e3c8d3aac
721
py
Python
chroma-manager/tests/utils/__init__.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
chroma-manager/tests/utils/__init__.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
chroma-manager/tests/utils/__init__.py
GarimaVishvakarma/intel-chroma
fdf68ed00b13643c62eb7480754d3216d9295e0b
[ "MIT" ]
null
null
null
import time import datetime import contextlib @contextlib.contextmanager def patch(obj, **attrs): "Monkey patch an object's attributes, restoring them after the block." stored = {} for name in attrs: stored[name] = getattr(obj, name) setattr(obj, name, attrs[name]) try: yield ...
24.033333
74
0.629681
0
0
615
0.852982
669
0.927878
0
0
132
0.183079
86d90c692c5aa920f75d361edbf2de1c22109ec8
3,518
py
Python
tempo/worker.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
4
2015-04-26T01:46:51.000Z
2020-11-10T13:07:59.000Z
tempo/worker.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
null
null
null
tempo/worker.py
rackerlabs/Tempo
60c2adaf5b592ae171987b999e0b9cc46b80c54e
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright 2012 Rackspace # 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/licen...
29.563025
77
0.673394
0
0
0
0
0
0
0
0
1,213
0.344798
86d979010cd46ef001009b94be4cbd36b5242fa0
24,187
py
Python
bin/basenji_motifs.py
AndyPJiang/basenji
64e43570c8bece156b4ab926608014f489b7965e
[ "Apache-2.0" ]
1
2020-05-22T20:53:37.000Z
2020-05-22T20:53:37.000Z
bin/basenji_motifs.py
AndyPJiang/basenji
64e43570c8bece156b4ab926608014f489b7965e
[ "Apache-2.0" ]
null
null
null
bin/basenji_motifs.py
AndyPJiang/basenji
64e43570c8bece156b4ab926608014f489b7965e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright 2017 Calico LLC # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agr...
29.282082
99
0.585687
0
0
0
0
0
0
0
0
9,345
0.386365
86db53b7a1cf34f8c926e78563b430e45842c3b8
1,337
py
Python
apps/shop/urls.py
Joetib/jshop
810ce5dcf2cf2d23b45536dd0c8806efd3b7fc91
[ "MIT" ]
1
2021-09-29T18:48:00.000Z
2021-09-29T18:48:00.000Z
apps/shop/urls.py
Joetib/jshop
810ce5dcf2cf2d23b45536dd0c8806efd3b7fc91
[ "MIT" ]
null
null
null
apps/shop/urls.py
Joetib/jshop
810ce5dcf2cf2d23b45536dd0c8806efd3b7fc91
[ "MIT" ]
null
null
null
from django.urls import path from . import views app_name = "shop" urlpatterns = [ path('', views.HomePage.as_view(), name="home-page"), path('shop/', views.ProductListView.as_view(), name="product-list"), path('shop/<int:category_pk>/', views.ProductListView.as_view(), name="product-list"), path('sho...
58.130435
109
0.691847
0
0
0
0
0
0
0
0
530
0.39641
86db5b39f7333cdce223e5a0be6e734eb216f5d2
11,028
py
Python
surpyval/parametric/expo_weibull.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
surpyval/parametric/expo_weibull.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
surpyval/parametric/expo_weibull.py
dfm/SurPyval
014fba8f1d4a0f43218a3713ce80a78191ad8be9
[ "MIT" ]
null
null
null
import autograd.numpy as np from scipy.stats import uniform from autograd import jacobian from numpy import euler_gamma from scipy.special import gamma as gamma_func from scipy.special import ndtri as z from scipy import integrate from scipy.optimize import minimize from surpyval import parametric as para from surpyva...
32.151603
228
0.537087
10,528
0.954661
0
0
0
0
0
0
7,347
0.666213
86db8d66e4f0f969e4dab6cb93ed65e00e44883f
3,292
py
Python
tests/test_base_table.py
stjordanis/datar
4e2b5db026ad35918954576badef9951928c0cb1
[ "MIT" ]
110
2021-03-09T04:10:40.000Z
2022-03-13T10:28:20.000Z
tests/test_base_table.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
54
2021-06-20T18:53:44.000Z
2022-03-29T22:13:07.000Z
tests/test_base_table.py
sthagen/datar
1218a549e2f0547c7b5a824ca6d9adf1bf96ba46
[ "MIT" ]
11
2021-06-18T03:03:14.000Z
2022-02-25T11:48:26.000Z
import pytest from datar import stats from datar.base import * from datar import f from datar.datasets import warpbreaks, state_division, state_region, airquality from .conftest import assert_iterable_equal def test_table(): # https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/table z = stats...
31.056604
79
0.564702
0
0
0
0
0
0
0
0
482
0.146416
86dbc8be4491e9aac31a1a68443d62ca3e952415
1,922
py
Python
cqlengine/tests/statements/test_update_statement.py
dokai/cqlengine
a080aff3a73351d37126b14eef606061b445aa37
[ "BSD-3-Clause" ]
null
null
null
cqlengine/tests/statements/test_update_statement.py
dokai/cqlengine
a080aff3a73351d37126b14eef606061b445aa37
[ "BSD-3-Clause" ]
null
null
null
cqlengine/tests/statements/test_update_statement.py
dokai/cqlengine
a080aff3a73351d37126b14eef606061b445aa37
[ "BSD-3-Clause" ]
null
null
null
from unittest import TestCase from cqlengine.statements import UpdateStatement, WhereClause, AssignmentClause from cqlengine.operators import * class UpdateStatementTests(TestCase): def test_table_rendering(self): """ tests that fields are properly added to the select statement """ us = UpdateSta...
44.697674
104
0.648283
1,774
0.922997
0
0
0
0
0
0
359
0.186785
86dbf2f275a336e7d12bde00e6cd729b126ef190
1,883
py
Python
packages/facilities/diagnostics/py/custom_checkbox.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
2
2021-01-15T13:27:19.000Z
2021-08-04T08:40:52.000Z
packages/facilities/diagnostics/py/custom_checkbox.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
null
null
null
packages/facilities/diagnostics/py/custom_checkbox.py
Falcons-Robocup/code
2281a8569e7f11cbd3238b7cc7341c09e2e16249
[ "Apache-2.0" ]
5
2018-05-01T10:39:31.000Z
2022-03-25T03:02:35.000Z
# Copyright 2020 Jan Feitsma (Falcons) # SPDX-License-Identifier: Apache-2.0 #!/usr/bin/python import matplotlib.pyplot as plt from matplotlib.patches import Rectangle class Checkbox(): def __init__(self, name, position, default=False, label=None, rsize=0.6, enabled=True): self.name = name # unique ID a...
33.625
117
0.601699
1,709
0.907594
0
0
0
0
0
0
425
0.225704
86dc7d357b174d6a4843f8edef2436d8cf30c367
742
py
Python
generator.py
Axonny/HexagonalHitori
582cb50b751796c30ed273f66c8ac9fa6f3dd089
[ "MIT" ]
null
null
null
generator.py
Axonny/HexagonalHitori
582cb50b751796c30ed273f66c8ac9fa6f3dd089
[ "MIT" ]
null
null
null
generator.py
Axonny/HexagonalHitori
582cb50b751796c30ed273f66c8ac9fa6f3dd089
[ "MIT" ]
null
null
null
from hitori_generator import Generator from argparse import ArgumentParser def generate(n: int, output_file: str) -> None: if n < 3 or n > 8: print("It isn't valid size") exit(4) generator = Generator(n) data = generator.generate() lines = map(lambda x: ' '.join(map(str, x)), data) ...
27.481481
120
0.628032
0
0
0
0
0
0
0
0
149
0.200809
86dd7f5030a8b0c0b8c5d1166bbac51638b7d539
25,946
py
Python
opaflib/xmlast.py
feliam/opaf
f9908c26af1bf28cc29f3d647dcd9f55d631d732
[ "MIT" ]
2
2019-11-23T14:46:35.000Z
2022-01-21T16:09:47.000Z
opaflib/xmlast.py
feliam/opaf
f9908c26af1bf28cc29f3d647dcd9f55d631d732
[ "MIT" ]
null
null
null
opaflib/xmlast.py
feliam/opaf
f9908c26af1bf28cc29f3d647dcd9f55d631d732
[ "MIT" ]
1
2019-09-06T21:04:39.000Z
2019-09-06T21:04:39.000Z
from lxml import etree from opaflib.filters import defilterData #Logging facility import logging,code logger = logging.getLogger("OPAFXML") class PDFXML(etree.ElementBase): ''' Base pdf-xml class. Every pdf token xml representation will have a span wich indicates where the original token layed in the file...
37.332374
172
0.582248
24,921
0.960495
0
0
0
0
0
0
6,454
0.248747
86dd8cfba25399e11b5e6b0c69e97eec2cc7d779
1,590
py
Python
course-code/imooc-tf-mnist-flask/mnist/module.py
le3t/ko-repo
50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5
[ "Apache-2.0" ]
30
2018-12-06T02:17:45.000Z
2021-04-07T09:03:36.000Z
course-code/imooc-tf-mnist-flask/mnist/module.py
Artister/tutorials-java
50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5
[ "Apache-2.0" ]
3
2019-08-26T13:41:57.000Z
2019-08-26T13:44:21.000Z
course-code/imooc-tf-mnist-flask/mnist/module.py
Artister/tutorials-java
50eb0b4cadb9db9bf608a9e5d36376f38ff5cce5
[ "Apache-2.0" ]
20
2018-12-27T08:31:02.000Z
2020-12-03T08:35:28.000Z
import tensorflow as tf # y=ax+b linear model def regression(x): a = tf.Variable(tf.zeros([784, 10]), name="a") b = tf.Variable(tf.zeros([10]), name="b") y = tf.nn.softmax(tf.matmul(x, a) + b) return y, [a, b] # 定义卷积模型 def convolutional(x, keep_prob): def conv2d(x, w): return tf.nn.conv...
30.576923
72
0.620755
0
0
0
0
0
0
0
0
73
0.045342
86dfb9b0ac538e587eb0952c661e061a843edff2
1,544
py
Python
src/sol/handle_metaplex.py
terra-dashboard/staketaxcsv
5793105488bf799c61aee64a45f44e9ae8fef397
[ "MIT" ]
140
2021-12-11T23:37:46.000Z
2022-03-29T23:04:36.000Z
src/sol/handle_metaplex.py
terra-dashboard/staketaxcsv
5793105488bf799c61aee64a45f44e9ae8fef397
[ "MIT" ]
80
2021-12-17T15:13:47.000Z
2022-03-31T13:33:53.000Z
src/sol/handle_metaplex.py
terra-dashboard/staketaxcsv
5793105488bf799c61aee64a45f44e9ae8fef397
[ "MIT" ]
52
2021-12-12T00:37:17.000Z
2022-03-29T23:25:09.000Z
from common.make_tx import make_swap_tx from sol.handle_simple import handle_unknown_detect_transfers def handle_metaplex(exporter, txinfo): transfers_in, transfers_out, _ = txinfo.transfers_net if len(transfers_in) == 1 and len(transfers_out) == 1: sent_amount, sent_currency, _, _ = transfers_out[0]...
34.311111
98
0.709845
0
0
0
0
0
0
0
0
16
0.010363
86e079c3cae2dd930094e58b47942d7cc71d011d
11,293
py
Python
dcor/independence.py
lemiceterieux/dcor
205682a71463a2c6ab8f5b8b215ec12d44f0b5a6
[ "MIT" ]
null
null
null
dcor/independence.py
lemiceterieux/dcor
205682a71463a2c6ab8f5b8b215ec12d44f0b5a6
[ "MIT" ]
null
null
null
dcor/independence.py
lemiceterieux/dcor
205682a71463a2c6ab8f5b8b215ec12d44f0b5a6
[ "MIT" ]
null
null
null
""" Functions for testing independence of several distributions. The functions in this module provide methods for testing if the samples generated from two random vectors are independent. """ import numpy as np import scipy.stats from . import _dcor_internals, _hypothesis from ._dcor import u_distance_correlation_sqr...
33.411243
79
0.609493
0
0
0
0
0
0
0
0
8,806
0.779775
86e150137bde5dca549d0321cdc857bd542bc500
3,878
py
Python
cinemasci/cis/__init__.py
cinemascience/cinemasc
5b00a0c2e3c886f65cfbf1f59e914fc458d7068b
[ "BSD-3-Clause" ]
null
null
null
cinemasci/cis/__init__.py
cinemascience/cinemasc
5b00a0c2e3c886f65cfbf1f59e914fc458d7068b
[ "BSD-3-Clause" ]
3
2020-04-22T16:26:44.000Z
2020-04-22T16:30:12.000Z
cinemasci/cis/__init__.py
cinemascience/cinemasc
5b00a0c2e3c886f65cfbf1f59e914fc458d7068b
[ "BSD-3-Clause" ]
1
2020-03-06T21:21:19.000Z
2020-03-06T21:21:19.000Z
from . import imageview from . import cisview from . import renderer from . import convert class cis: """Composible Image Set Class The data structure to hold properties of a Composible Image Set. """ def __init__(self, filename): """ The constructor. """ self.fname = filenam...
29.603053
84
0.555183
3,784
0.975761
337
0.0869
0
0
0
0
1,087
0.280299
86e1817f75ca21dff7ecb06d87908e9887be1bfd
2,172
py
Python
applications/spaghetti.py
fos/fos-legacy
db6047668781a0615abcebc7d55a7164f3105047
[ "BSD-3-Clause" ]
2
2016-08-03T10:33:08.000Z
2021-06-23T18:50:14.000Z
applications/spaghetti.py
fos/fos-legacy
db6047668781a0615abcebc7d55a7164f3105047
[ "BSD-3-Clause" ]
null
null
null
applications/spaghetti.py
fos/fos-legacy
db6047668781a0615abcebc7d55a7164f3105047
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import nibabel as nib import os.path as op import pyglet #pyglet.options['debug_gl'] = True #pyglet.options['debug_x11'] = True #pyglet.options['debug_gl_trace'] = True #pyglet.options['debug_texture'] = True #fos modules from fos.actor.axes import Axes from fos import World, Window, WindowManager ...
31.941176
122
0.675414
0
0
0
0
0
0
0
0
931
0.428637
86e1dc1697df65dd8302b1c8457579ff83a8e10d
1,074
py
Python
faceai/gender.py
dlzdy/faceai
4b1e41d4c394c00da51533562b76306d86493f72
[ "MIT" ]
1
2021-05-18T07:31:14.000Z
2021-05-18T07:31:14.000Z
faceai/gender.py
dlzdy/faceai
4b1e41d4c394c00da51533562b76306d86493f72
[ "MIT" ]
null
null
null
faceai/gender.py
dlzdy/faceai
4b1e41d4c394c00da51533562b76306d86493f72
[ "MIT" ]
null
null
null
#coding=utf-8 #性别识别 import cv2 from keras.models import load_model import numpy as np import chineseText img = cv2.imread("img/gather.png") face_classifier = cv2.CascadeClassifier( "d:\Python36\Lib\site-packages\opencv-master\data\haarcascades\haarcascade_frontalface_default.xml" ) gray = cv2.cvtColor(img, cv2.CO...
30.685714
103
0.691806
0
0
0
0
0
0
0
0
208
0.191529
86e1dfa0c33f00a823a44b2f6b5cc3f12ae76c76
5,872
py
Python
csm_web/scheduler/tests/utils.py
mudit2103/csm_web
3b7fd9ca7269ad4cb57bf264cf62a620e02d3780
[ "MIT" ]
null
null
null
csm_web/scheduler/tests/utils.py
mudit2103/csm_web
3b7fd9ca7269ad4cb57bf264cf62a620e02d3780
[ "MIT" ]
null
null
null
csm_web/scheduler/tests/utils.py
mudit2103/csm_web
3b7fd9ca7269ad4cb57bf264cf62a620e02d3780
[ "MIT" ]
null
null
null
from django.test import TestCase from os import path from rest_framework import status from rest_framework.test import APIClient import random from scheduler.models import Profile from scheduler.factories import ( CourseFactory, SpacetimeFactory, UserFactory, ProfileFactory, SectionFactory, Att...
32.804469
88
0.647309
2,022
0.344346
208
0.035422
0
0
0
0
2,040
0.347411
86e1fd3bf7ee00e117356675760b13ae01e5890a
3,282
py
Python
coldtype/beziers.py
tallpauley/coldtype
c1811e1d3713ff9c3c804511d6cd607b1d802065
[ "Apache-2.0" ]
null
null
null
coldtype/beziers.py
tallpauley/coldtype
c1811e1d3713ff9c3c804511d6cd607b1d802065
[ "Apache-2.0" ]
null
null
null
coldtype/beziers.py
tallpauley/coldtype
c1811e1d3713ff9c3c804511d6cd607b1d802065
[ "Apache-2.0" ]
null
null
null
import math from fontTools.pens.recordingPen import RecordingPen, replayRecording from fontTools.misc.bezierTools import calcCubicArcLength, splitCubicAtT from coldtype.geometry import Rect, Point def raise_quadratic(start, a, b): c0 = start c1 = (c0[0] + (2/3)*(a[0] - c0[0]), c0[1] + (2/3)*(a[1] - c0[1])) ...
31.557692
85
0.482937
2,249
0.685253
0
0
0
0
0
0
111
0.033821
86e21cfc54ba4f492a89adb3a5ddc21c8d452d78
3,930
py
Python
p1_navigation/train.py
nick0lay/deep-reinforcement-learning
5af4daca9850b4e12aec5d8b0dad87f1e22a1f98
[ "MIT" ]
null
null
null
p1_navigation/train.py
nick0lay/deep-reinforcement-learning
5af4daca9850b4e12aec5d8b0dad87f1e22a1f98
[ "MIT" ]
null
null
null
p1_navigation/train.py
nick0lay/deep-reinforcement-learning
5af4daca9850b4e12aec5d8b0dad87f1e22a1f98
[ "MIT" ]
null
null
null
""" Project for Udacity Danaodgree in Deep Reinforcement Learning This script train an agent to navigate (and collect bananas!) in a large, square world. A reward of +1 is provided for collecting a yellow banana, and a reward of -1 is provided for collecting a blue banana. Thus, the goal of your agent is to collect a...
42.717391
279
0.689567
0
0
0
0
0
0
0
0
2,075
0.52799
86e5087a507beef54f4930afdd98c56727fc0500
2,869
py
Python
models/model_factory.py
jac99/Egonn
075e00368a1676df741a35f42f6f38497da9d58f
[ "MIT" ]
9
2021-10-31T07:11:58.000Z
2022-03-29T14:06:49.000Z
models/model_factory.py
jac99/Egonn
075e00368a1676df741a35f42f6f38497da9d58f
[ "MIT" ]
null
null
null
models/model_factory.py
jac99/Egonn
075e00368a1676df741a35f42f6f38497da9d58f
[ "MIT" ]
3
2021-11-12T17:42:41.000Z
2022-03-11T00:41:47.000Z
# Warsaw University of Technology from layers.eca_block import ECABasicBlock from models.minkgl import MinkHead, MinkTrunk, MinkGL from models.minkloc import MinkLoc from third_party.minkloc3d.minkloc import MinkLoc3D from misc.utils import ModelParams def model_factory(model_params: ModelParams): in_channels ...
36.782051
100
0.694319
0
0
0
0
0
0
0
0
207
0.072151
86e596ecc94466fc1c8a56bb395c9ae7c14904e6
19,380
py
Python
mdns/Phidget22Python/Phidget22/Phidget.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
mdns/Phidget22Python/Phidget22/Phidget.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
mdns/Phidget22Python/Phidget22/Phidget.py
rabarar/phidget_docker
ceca56c86d27f291a4300a1257c02096862335ec
[ "MIT" ]
null
null
null
import sys import ctypes from Phidget22.PhidgetSupport import PhidgetSupport from Phidget22.Async import * from Phidget22.ChannelClass import ChannelClass from Phidget22.ChannelSubclass import ChannelSubclass from Phidget22.DeviceClass import DeviceClass from Phidget22.DeviceID import DeviceID from Phidget22.ErrorEvent...
26.083445
113
0.757482
18,975
0.979102
0
0
1,103
0.056914
0
0
163
0.008411
86e5ef7ddc4f844bf23ef6fa4d846ed9f0547af6
1,826
py
Python
openprocurement/auctions/geb/tests/blanks/create.py
oleksiyVeretiuk/openprocurement.auctions.geb
2965b52bf8826b9a8f8870c9a4d2052f945f5799
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/geb/tests/blanks/create.py
oleksiyVeretiuk/openprocurement.auctions.geb
2965b52bf8826b9a8f8870c9a4d2052f945f5799
[ "Apache-2.0" ]
null
null
null
openprocurement/auctions/geb/tests/blanks/create.py
oleksiyVeretiuk/openprocurement.auctions.geb
2965b52bf8826b9a8f8870c9a4d2052f945f5799
[ "Apache-2.0" ]
null
null
null
def create_auction(self): expected_http_status = '201 Created' request_data = {"data": self.auction} entrypoint = '/auctions' response = self.app.post_json(entrypoint, request_data) self.assertEqual(response.status, expected_http_status) def create_auction_check_minNumberOfQualifiedBids(self): ...
33.814815
71
0.728916
0
0
0
0
0
0
0
0
288
0.157722
86e649d303431093f68ab23ef3215809292e639b
4,872
py
Python
tests/integration/test_celery.py
crossscreenmedia/scout_apm_python
5cd31bf21f5acd0be0df4f40ec0bd29ec050ec01
[ "MIT" ]
null
null
null
tests/integration/test_celery.py
crossscreenmedia/scout_apm_python
5cd31bf21f5acd0be0df4f40ec0bd29ec050ec01
[ "MIT" ]
null
null
null
tests/integration/test_celery.py
crossscreenmedia/scout_apm_python
5cd31bf21f5acd0be0df4f40ec0bd29ec050ec01
[ "MIT" ]
null
null
null
# coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from contextlib import contextmanager import celery import pytest from celery.signals import setup_logging import scout_apm.celery from scout_apm.api import Config # http://docs.celeryproject.org/en/latest/userguide/te...
34.553191
82
0.70936
0
0
699
0.143473
3,345
0.686576
0
0
1,401
0.287562
86e65c540055ab2f761c3c998b140c5377b7f0c6
10,865
py
Python
molly/apps/places/migrations/0001_initial.py
mollyproject/mollyproject
3247c6bac3f39ce8d275d19aa410b30c6284b8a7
[ "Apache-2.0" ]
7
2015-05-16T13:27:21.000Z
2019-08-06T11:09:24.000Z
molly/apps/places/migrations/0001_initial.py
mollyproject/mollyproject
3247c6bac3f39ce8d275d19aa410b30c6284b8a7
[ "Apache-2.0" ]
null
null
null
molly/apps/places/migrations/0001_initial.py
mollyproject/mollyproject
3247c6bac3f39ce8d275d19aa410b30c6284b8a7
[ "Apache-2.0" ]
4
2015-11-27T13:36:36.000Z
2021-03-09T17:55:53.000Z
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Source' db.create_table('places_source', ( ('id', self.gf('django.db.models.fields.Aut...
60.698324
211
0.620985
10,739
0.988403
0
0
0
0
0
0
6,248
0.575058
86e6c529a13c62833d2d9d91e683f2c9cc85c2b8
16,246
py
Python
sdk/python/pulumi_azure_native/servicebus/v20210601preview/get_subscription.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicebus/v20210601preview/get_subscription.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/servicebus/v20210601preview/get_subscription.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
45.253482
595
0.70048
13,331
0.820571
1,373
0.084513
11,871
0.730703
0
0
5,362
0.33005
86e708b4a5fa05856a6c8d0dde3c26f2006621e1
4,340
py
Python
py_cfeve/module/CFAF240400E0-030TN-A1.py
crystalfontz/CFA-EVE-Python-Library
c5aca10b9b6ee109d4df8a9a692dcef083dafc88
[ "Unlicense" ]
1
2021-12-08T00:12:02.000Z
2021-12-08T00:12:02.000Z
py_cfeve/module/CFAF240400E0-030TN-A1.py
crystalfontz/CFA-EVE-Python-Library
c5aca10b9b6ee109d4df8a9a692dcef083dafc88
[ "Unlicense" ]
null
null
null
py_cfeve/module/CFAF240400E0-030TN-A1.py
crystalfontz/CFA-EVE-Python-Library
c5aca10b9b6ee109d4df8a9a692dcef083dafc88
[ "Unlicense" ]
null
null
null
#=========================================================================== # # Crystalfontz Raspberry-Pi Python example library for FTDI / BridgeTek # EVE graphic accelerators. # #--------------------------------------------------------------------------- # # This file is part of the port/adaptation of existin...
38.070175
78
0.645392
0
0
0
0
0
0
0
0
3,670
0.845622
86e79f3939b52fb2b048dd2d47804d7ba195c64a
12,893
py
Python
quapy/model_selection.py
OneToolsCollection/HLT-ISTI-QuaPy
6a5c528154c2d6d38d9f3258e667727bf692fc8b
[ "BSD-3-Clause" ]
null
null
null
quapy/model_selection.py
OneToolsCollection/HLT-ISTI-QuaPy
6a5c528154c2d6d38d9f3258e667727bf692fc8b
[ "BSD-3-Clause" ]
null
null
null
quapy/model_selection.py
OneToolsCollection/HLT-ISTI-QuaPy
6a5c528154c2d6d38d9f3258e667727bf692fc8b
[ "BSD-3-Clause" ]
null
null
null
import itertools import signal from copy import deepcopy from typing import Union, Callable import numpy as np import quapy as qp from quapy.data.base import LabelledCollection from quapy.evaluation import artificial_prevalence_prediction, natural_prevalence_prediction, gen_prevalence_prediction from quapy.method.agg...
48.65283
119
0.649732
12,487
0.96851
0
0
237
0.018382
0
0
6,573
0.509812
86e7d2f1d51490654abf153935c59b83db56caad
597
py
Python
flasky.py
ZxShane/slam_hospital
302704b3a188cea07dddfb23595dd75f8d3cd636
[ "Apache-2.0" ]
null
null
null
flasky.py
ZxShane/slam_hospital
302704b3a188cea07dddfb23595dd75f8d3cd636
[ "Apache-2.0" ]
1
2020-11-17T16:47:19.000Z
2021-01-26T10:16:33.000Z
flasky.py
ZxShane/slam_hospital
302704b3a188cea07dddfb23595dd75f8d3cd636
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import os from flask_migrate import Migrate from app import create_app, db from app.models import User, Role, PoseToLocation app = create_app(os.getenv('FLASK_CONFIG') or 'default') migrate = Migrate(app, db) # migrate 的新建 我们需要扫描到这些文件我们才能创建 @app.shell_context_processor def make_shell_conte...
22.111111
75
0.730318
0
0
0
0
315
0.488372
0
0
164
0.254264
86e7e28fd96ba38477835a4f1f9a0169efabb855
2,841
py
Python
python/day09/smoke_basin.py
aesdeef/advent-of-code-2021
4561bcf12ac03d360f5b28c48ef80134f97613b9
[ "MIT" ]
2
2021-12-03T06:18:27.000Z
2021-12-06T11:28:33.000Z
python/day09/smoke_basin.py
aesdeef/advent-of-code-2021
4561bcf12ac03d360f5b28c48ef80134f97613b9
[ "MIT" ]
null
null
null
python/day09/smoke_basin.py
aesdeef/advent-of-code-2021
4561bcf12ac03d360f5b28c48ef80134f97613b9
[ "MIT" ]
null
null
null
INPUT_FILE = "../../input/09.txt" Point = tuple[int, int] Heightmap = dict[Point, int] Basin = set[Point] def parse_input() -> Heightmap: """ Parses the input and returns a Heightmap """ with open(INPUT_FILE) as f: heights = [[int(x) for x in line.strip()] for line in f] heightmap: Heigh...
27.852941
77
0.642027
0
0
0
0
0
0
0
0
483
0.170011