hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d9ba685306c9e411a69887a2a301808cbaa104cb
340
py
Python
configs/_base_/models/efficientnet_b0.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-03-22T02:54:57.000Z
2022-03-22T02:54:57.000Z
configs/_base_/models/efficientnet_b0.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
null
null
null
configs/_base_/models/efficientnet_b0.py
YuxinZou/mmclassification
2037260ea6c98a3b115e97727e1151a1c2c32f7a
[ "Apache-2.0" ]
1
2022-03-25T08:40:07.000Z
2022-03-25T08:40:07.000Z
# model settings model = dict( type='ImageClassifier', backbone=dict(type='EfficientNet', arch='b0'), neck=dict(type='GlobalAveragePooling'), head=dict( type='LinearClsHead', num_classes=1000, in_channels=1280, loss=dict(type='CrossEntropyLoss', loss_weight=1.0), ...
26.153846
60
0.614706
c957806cafff3e442413bd33645f1403291dee75
6,723
py
Python
pebbleGame.py
CharlesLiu7/Pebble-Game
1978a6ff1aeedc69af8074992fc9ea29bae5eb44
[ "MIT" ]
2
2020-04-30T02:59:55.000Z
2021-06-06T17:57:12.000Z
pebbleGame.py
CharlesLiu7/Pebble-Game
1978a6ff1aeedc69af8074992fc9ea29bae5eb44
[ "MIT" ]
null
null
null
pebbleGame.py
CharlesLiu7/Pebble-Game
1978a6ff1aeedc69af8074992fc9ea29bae5eb44
[ "MIT" ]
null
null
null
#! /usr/bin/python # -*- coding: utf-8 -*- __author__ = 'Charles' import json import logging import sys logging.basicConfig( level=logging.INFO, format=''.join(['[%(asctime)s] ', '%(message)s']), datefmt='%m-%d %T', stream=sys.stdout, ) logger = logging.getLogger(__name__) def f...
35.384211
109
0.493381
6bc393f2a2a96d3bd2e341c4d494b53d3b1bdc6e
4,577
py
Python
dispersion_curves.py
czdong2001/JointInv
d4327e2cb7332d28f19f06a26662dcbd9215de75
[ "MIT" ]
6
2017-09-07T04:35:18.000Z
2022-01-18T13:46:19.000Z
dispersion_curves.py
SeisPider/JointInv
d4327e2cb7332d28f19f06a26662dcbd9215de75
[ "MIT" ]
null
null
null
dispersion_curves.py
SeisPider/JointInv
d4327e2cb7332d28f19f06a26662dcbd9215de75
[ "MIT" ]
7
2018-06-23T00:29:09.000Z
2019-12-24T08:21:16.000Z
#!/usr/bin/python -u """ [Advice: run this script using python with unbuffered output: `python -u dispersion_curves.py`] This script implements the two-step frequency-time analysis (FTAN) on a set of cross-correlations, as described by Levshin & Ritzwoller, "Automated detection, extraction, and measurement of regional...
44.436893
86
0.742189
5359ea5acd3b7e2bf04c72ffc3d88f8d1147e5e4
11,483
py
Python
uviewsd/gl/shape.py
DanielSpringall/UViewSD
9adb24be660496b28382aa4fdd0fbe596e696acc
[ "MIT" ]
null
null
null
uviewsd/gl/shape.py
DanielSpringall/UViewSD
9adb24be660496b28382aa4fdd0fbe596e696acc
[ "MIT" ]
null
null
null
uviewsd/gl/shape.py
DanielSpringall/UViewSD
9adb24be660496b28382aa4fdd0fbe596e696acc
[ "MIT" ]
null
null
null
# Copyright 2021 by Daniel Springall. # This file is part of UViewSD, and is released under the "MIT License Agreement". # Please see the LICENSE file that should have been included as part of this package. from uviewsd.gl import utils as ug_utils from ctypes import c_void_p from OpenGL import GL import numpy as np i...
33.576023
127
0.579552
25538f43bdc59ae0fd5757b93d0c11eaf16d0079
1,084
py
Python
human_services/services/models.py
DarwishMenna/pathways-backend
e9825e0373c586ce8f07ee8b70aecc7de679fb41
[ "BSD-3-Clause" ]
null
null
null
human_services/services/models.py
DarwishMenna/pathways-backend
e9825e0373c586ce8f07ee8b70aecc7de679fb41
[ "BSD-3-Clause" ]
null
null
null
human_services/services/models.py
DarwishMenna/pathways-backend
e9825e0373c586ce8f07ee8b70aecc7de679fb41
[ "BSD-3-Clause" ]
null
null
null
from common.models import ValidateOnSaveMixin, RequiredCharField from django.core import validators from django.db import models from parler.models import TranslatableModel, TranslatedFields from human_services.organizations.models import Organization from taxonomies.models import TaxonomyTerm class Service(ValidateO...
41.692308
88
0.651292
1bb219236def2036b4b2c1a764d19f9863791935
48,830
py
Python
env/Lib/site-packages/arrow/arrow.py
assafse/extract-news-api
9e23333094117655146c0e4c128f19173d0a77a2
[ "MIT" ]
1
2021-03-28T14:16:03.000Z
2021-03-28T14:16:03.000Z
env/Lib/site-packages/arrow/arrow.py
assafse/extract-news-api
9e23333094117655146c0e4c128f19173d0a77a2
[ "MIT" ]
6
2020-09-05T01:40:23.000Z
2022-03-12T00:40:58.000Z
env/Lib/site-packages/arrow/arrow.py
assafse/extract-news-api
9e23333094117655146c0e4c128f19173d0a77a2
[ "MIT" ]
1
2020-09-05T00:19:03.000Z
2020-09-05T00:19:03.000Z
# -*- coding: utf-8 -*- """ Provides the :class:`Arrow <arrow.arrow.Arrow>` class, an enhanced ``datetime`` replacement. """ from __future__ import absolute_import import calendar import sys from datetime import datetime, timedelta from datetime import tzinfo as dt_tzinfo from math import trunc from dateutil import...
32.705961
138
0.549293
fa362368af5a8f2b7236b4da31abb8f9fce20392
1,165
py
Python
NLP/hyeonSu/hs_test/model.py
defwdahyun0/FindMap
e0fd142e906eb8f58064804e55659fff3fe106fa
[ "Apache-2.0" ]
3
2021-12-23T14:05:19.000Z
2022-03-25T03:12:34.000Z
NLP/hyeonSu/hs_test/model.py
defwdahyun0/FindMap
e0fd142e906eb8f58064804e55659fff3fe106fa
[ "Apache-2.0" ]
null
null
null
NLP/hyeonSu/hs_test/model.py
defwdahyun0/FindMap
e0fd142e906eb8f58064804e55659fff3fe106fa
[ "Apache-2.0" ]
null
null
null
from pororo import Pororo class Categorize : def __init__ (self,search_idx) : self.search_idx = search_idx self.db_ctg_list = ['문학/책', '영화', '미술/디자인', '공연/전시', '음악', '드라마', '스타/연예인', '만화/애니', '방송', '일상/생각', '육아/결혼', '애완/반려동물', '좋은글/이미지', '패션/미용', '인테리어/DIY', ...
32.361111
108
0.442918
db67d6a64795da1ff592ecd36f35515c35065d7e
2,381
py
Python
Bot/Helpers/cache.py
wurgo/Mecha-Karen-Source-Code
90776bc0e9e259ff62b47f71057d17826056d164
[ "Apache-2.0" ]
null
null
null
Bot/Helpers/cache.py
wurgo/Mecha-Karen-Source-Code
90776bc0e9e259ff62b47f71057d17826056d164
[ "Apache-2.0" ]
null
null
null
Bot/Helpers/cache.py
wurgo/Mecha-Karen-Source-Code
90776bc0e9e259ff62b47f71057d17826056d164
[ "Apache-2.0" ]
null
null
null
import json, asyncio class Cache: def __init__(self, cache = None): self.cache = cache or {} ## Load pre-exising cache if you like async def base_template(self, user_id: int) -> bool: if user_id in self.cache: return False self.cache.update({user_id: { ...
29.7625
89
0.539689
abcf9517a7c4db3f9181cb9258af606957c5612d
7,509
py
Python
dds_web/development/factories.py
talavis/dds_web
576b5e36e981182cc7f3440c96bf7d1a038dfaef
[ "BSD-3-Clause" ]
3
2021-06-18T09:38:28.000Z
2022-02-28T19:37:54.000Z
dds_web/development/factories.py
talavis/dds_web
576b5e36e981182cc7f3440c96bf7d1a038dfaef
[ "BSD-3-Clause" ]
610
2021-05-12T08:33:31.000Z
2022-03-31T14:55:05.000Z
dds_web/development/factories.py
MatthiasZepper/dds_web
28c297f15017eaf17328b607ba242c9587c24eb9
[ "BSD-3-Clause" ]
12
2021-05-19T10:33:45.000Z
2022-03-16T10:23:27.000Z
import factory import os import itertools import random import flask import dds_web.database.models as models from dds_web import db from dds_web.crypt import key_gen STATUSES_PER_PROJECT = 5 FILES_PER_PROJECT = 100 NR_UNITS = 10 USERS_PER_UNIT = 10 PROJECTS_PER_UNIT = 100 EMAILS_PER_USER = 3 class UnitFactory(fact...
30.52439
95
0.657611
2f4b232313275f3f862b29c188158457bdfbd471
5,882
py
Python
haystack/nodes/reader/base.py
OmniscienceAcademy/haystack
46fa166c36d4b2fb0f428041fb048e50613553a9
[ "Apache-2.0" ]
null
null
null
haystack/nodes/reader/base.py
OmniscienceAcademy/haystack
46fa166c36d4b2fb0f428041fb048e50613553a9
[ "Apache-2.0" ]
null
null
null
haystack/nodes/reader/base.py
OmniscienceAcademy/haystack
46fa166c36d4b2fb0f428041fb048e50613553a9
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Sequence, Dict, Tuple import numpy as np from scipy.special import expit from abc import abstractmethod from copy import deepcopy from functools import wraps from time import perf_counter from haystack.schema import Document, Answer, Span, MultiLabel from haystack.nodes.base import ...
40.847222
177
0.631418
8ed659715ea33db745291ae5a5858cb507568e56
1,569
py
Python
vis_data.py
DLR-RM/SyntheticDataLocalization
68eda127a0ae7d6a2c98e9b6fc8b49d0e761af9c
[ "MIT" ]
3
2021-06-08T14:57:32.000Z
2021-12-03T17:20:11.000Z
vis_data.py
DLR-RM/SyntheticDataLocalization
68eda127a0ae7d6a2c98e9b6fc8b49d0e761af9c
[ "MIT" ]
null
null
null
vis_data.py
DLR-RM/SyntheticDataLocalization
68eda127a0ae7d6a2c98e9b6fc8b49d0e761af9c
[ "MIT" ]
null
null
null
import argparse import matplotlib.pyplot as plt import numpy as np from src.data.Data import Data from src.utils.Config import Config parser = argparse.ArgumentParser(description="") parser.add_argument('config') args = parser.parse_args() config = Config.from_file(args.config) data = Data(config.get_with_prefix("d...
34.108696
131
0.643722
ec6f82f7f48fccfd3274e9abd35917bddb652b68
30
py
Python
src/primer_tk/constants.py
drkennetz/PrimerTK
5a511f25bd9898bd37b236f74e5b52df02475226
[ "Apache-2.0" ]
9
2019-09-27T20:29:39.000Z
2022-02-18T19:53:13.000Z
src/primer_tk/constants.py
drkennetz/PrimerTK
5a511f25bd9898bd37b236f74e5b52df02475226
[ "Apache-2.0" ]
9
2019-11-22T18:16:44.000Z
2021-08-17T21:17:17.000Z
src/primer_tk/constants.py
drkennetz/PrimerTK
5a511f25bd9898bd37b236f74e5b52df02475226
[ "Apache-2.0" ]
6
2020-03-16T07:37:23.000Z
2021-03-30T18:25:54.000Z
START_POS=10000 END_POS=11000
10
15
0.866667
ba8488f3ab7456f31ef8f95fc5843b08dcf4921b
3,310
py
Python
readers/labjack.py
dayne/mini-monitor
7d6cc8af8877152a04a6deeb9940101f9dcade56
[ "Apache-2.0" ]
null
null
null
readers/labjack.py
dayne/mini-monitor
7d6cc8af8877152a04a6deeb9940101f9dcade56
[ "Apache-2.0" ]
null
null
null
readers/labjack.py
dayne/mini-monitor
7d6cc8af8877152a04a6deeb9940101f9dcade56
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python """Module used to read temperature sensors connected to the thermistor board on a Labjack U3. """ import time import base_reader, myU3, thermistor def readTemp(dev, th, ch, vref): """Returns a temperature value from a thermistor connected to a Labjack U3 device. 'dev' is an open MyU3 Lab...
37.613636
101
0.582175
61d356c01171972c2b1e5225a5884e336089345a
873
py
Python
tools/gen_list.py
guoqingMeng/facedetection-train
b11570fd615556520c83910a698678e4dc3b3aae
[ "MIT" ]
1
2020-07-11T02:47:40.000Z
2020-07-11T02:47:40.000Z
tools/gen_list.py
guoqingMeng/facedetection-train
b11570fd615556520c83910a698678e4dc3b3aae
[ "MIT" ]
1
2020-07-11T02:47:35.000Z
2020-07-11T02:47:35.000Z
tools/gen_list.py
guoqingMeng/facedetection-train
b11570fd615556520c83910a698678e4dc3b3aae
[ "MIT" ]
null
null
null
import os def ReadFileDir(path, pattern = ".json"): file = [] pfile = [] dirs = os.listdir(path) # 获取指定路径下的文件 for i in dirs: # 循环读取路径下的文件并筛选输出 if os.path.splitext(i)[1] == pattern: # 筛选json文件 file.append(i) pfile.append(os...
26.454545
64
0.526919
fd95c7b25da00b6726559e828f93e9e12bbb3129
5,615
py
Python
configs/pascal_voc/faster_rcnn_r50_fpn_1x_voc0712.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
configs/pascal_voc/faster_rcnn_r50_fpn_1x_voc0712.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
configs/pascal_voc/faster_rcnn_r50_fpn_1x_voc0712.py
AiLvv/mmdetection
2489aa4fc8df3b4c39c1cc72571a677e4451a44c
[ "Apache-2.0" ]
null
null
null
# model settings model = dict( type='FasterRCNN', pretrained='torchvision://resnet50', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), style='pytorch'), ...
31.544944
78
0.586109
c61b1aad1e75b75e5c8957ba392fa990b04241e7
208
py
Python
Nombres/Base10.py
Krolov18/Languages
549952886f73f0b8e1b9e6393875f5473b591407
[ "Apache-2.0" ]
1
2019-12-11T14:56:09.000Z
2019-12-11T14:56:09.000Z
Nombres/Base10.py
Krolov18/Languages
549952886f73f0b8e1b9e6393875f5473b591407
[ "Apache-2.0" ]
null
null
null
Nombres/Base10.py
Krolov18/Languages
549952886f73f0b8e1b9e6393875f5473b591407
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import NumberSyntax10 import NumberLexicon class Base10(NumberLexicon.NumberLexicon, NumberSyntax10.NumberSyntaxe10): pass def main(): pass if __name__ == '__main__': main()
13
74
0.730769
d45cc48672622c24a1d46a101b348129b6347436
4,382
py
Python
automox_console_sdk/models/user_id_api_keys_body.py
ax-ncolyer/automox-console-sdk-python
27ba2279e2d59e3f0cbfc00e34eddb51838e402e
[ "MIT" ]
null
null
null
automox_console_sdk/models/user_id_api_keys_body.py
ax-ncolyer/automox-console-sdk-python
27ba2279e2d59e3f0cbfc00e34eddb51838e402e
[ "MIT" ]
null
null
null
automox_console_sdk/models/user_id_api_keys_body.py
ax-ncolyer/automox-console-sdk-python
27ba2279e2d59e3f0cbfc00e34eddb51838e402e
[ "MIT" ]
null
null
null
# coding: utf-8 """ Automox Console API API for use with the Automox Console # noqa: E501 OpenAPI spec version: 2021-09-01 Contact: support@automox.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class UserIdApiKeysBody...
30.859155
138
0.582154
8976e6fd6cdc70e1ff96cf743b069d14673e665e
3,645
py
Python
Extended_Methods/Downstream_analysis/scripts/2_generate_random_pair_from_bg.py
heyuan7676/ts_eQTLs
62b04f5477183f5c0cb60f21264b3147fd8bd82a
[ "CC-BY-4.0" ]
19
2019-10-02T20:50:08.000Z
2021-07-21T16:49:21.000Z
Extended_Methods/Downstream_analysis/scripts/2_generate_random_pair_from_bg.py
heyuan7676/ts_eQTLs
62b04f5477183f5c0cb60f21264b3147fd8bd82a
[ "CC-BY-4.0" ]
2
2020-04-07T10:53:35.000Z
2021-05-15T15:35:51.000Z
Extended_Methods/Downstream_analysis/scripts/2_generate_random_pair_from_bg.py
heyuan7676/ts_eQTLs
62b04f5477183f5c0cb60f21264b3147fd8bd82a
[ "CC-BY-4.0" ]
1
2020-09-14T11:40:55.000Z
2020-09-14T11:40:55.000Z
from GLOBAL_VAR import * from METHOD_VAR import * from collections import Counter def append_df_change_index(gi_dat, mm, nn, mm_l, nn_l): try: df_temp = gi_dat.loc[mm_l, nn_l] except: return gi_dat index_array = [[int(mm)] * len(df_temp), [int(nn)] * len(df_temp)] df_temp.index = index_array ...
30.375
146
0.632099
3c719f3a4d79e8519b7ace13a893ee52b8433355
2,865
py
Python
rest-api-example.py
Devops-as-a-Service-Project/python-api
1a67bb57521915634629932bfc6d3451aed40c31
[ "Apache-2.0" ]
null
null
null
rest-api-example.py
Devops-as-a-Service-Project/python-api
1a67bb57521915634629932bfc6d3451aed40c31
[ "Apache-2.0" ]
null
null
null
rest-api-example.py
Devops-as-a-Service-Project/python-api
1a67bb57521915634629932bfc6d3451aed40c31
[ "Apache-2.0" ]
null
null
null
from flask import Flask, jsonify, request app = Flask(__name__) stores = [ #list of dictionaries { 'name': 'amit store', 'items': [ { 'name': 'My item', 'price': 15.99 } ] }, { 'name': 'itamar store', ...
33.705882
140
0.599651
67458c2ad45b7bfaef99ffb3e4f71d984acdcc1c
28,578
py
Python
Python_OCR_JE/venv/Lib/site-packages/numpy/core/tests/test_array_coercion.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/core/tests/test_array_coercion.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/numpy/core/tests/test_array_coercion.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
""" Tests for array coercion, mainly through testing `np.array` results directly. Note that other such tests exist e.g. in `test_api.py` and many corner-cases are tested (sometimes indirectly) elsewhere. """ import pytest from pytest import param from itertools import product import numpy as np from nump...
38.934605
84
0.584611
06b8f328257a8c296b30909d5ae051bbd019817b
4,577
py
Python
vega/algorithms/nas/auto_lane/utils/resnext_all_variant_codec.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
724
2020-06-22T12:05:30.000Z
2022-03-31T07:10:54.000Z
vega/algorithms/nas/auto_lane/utils/resnext_all_variant_codec.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
147
2020-06-30T13:34:46.000Z
2022-03-29T11:30:17.000Z
vega/algorithms/nas/auto_lane/utils/resnext_all_variant_codec.py
jie311/vega
1bba6100ead802697e691403b951e6652a99ccae
[ "MIT" ]
160
2020-06-29T18:27:58.000Z
2022-03-23T08:42:21.000Z
# -*- coding:utf-8 -*- # Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved. # This program is free software; you can redistribute it and/or modify # it under the terms of the MIT License. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the ...
34.413534
120
0.575923
6badaf3c15932ba62a40638121ca0afdd4849e82
1,339
py
Python
Python/find-k-th-smallest-pair-distance.py
ruikunl/LeetCode
dae98754eb02d68139028f72f894411a3ed12305
[ "MIT" ]
5
2017-11-14T09:32:33.000Z
2020-05-11T05:15:41.000Z
Python/find-k-th-smallest-pair-distance.py
ruikunl/LeetCode
dae98754eb02d68139028f72f894411a3ed12305
[ "MIT" ]
null
null
null
Python/find-k-th-smallest-pair-distance.py
ruikunl/LeetCode
dae98754eb02d68139028f72f894411a3ed12305
[ "MIT" ]
8
2020-02-20T08:21:12.000Z
2022-02-17T05:53:21.000Z
# Time: O(nlogn + nlogw), n = len(nums), w = max(nums)-min(nums) # Space: O(1) # Given an integer array, return the k-th smallest distance among all the pairs. # The distance of a pair (A, B) is defined as the absolute difference between A and B. # # Example 1: # Input: # nums = [1,3,1] # k = 1 # Output: 0 # Explana...
26.78
86
0.519791
a97e92695eb2430569450ba821cbce38be91d10a
1,985
py
Python
tests/importer/tflite/basic/test_batch_to_space.py
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
tests/importer/tflite/basic/test_batch_to_space.py
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
tests/importer/tflite/basic/test_batch_to_space.py
louareg/nncase
0125654eb57b7ff753fe9c396c84b264c01f34d3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2021 Canaan 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 writ...
28.768116
111
0.70529
1142e5a76c6d118c4912e1f0ad1ee395073459c0
1,460
py
Python
db/search_indexes.py
TelferLab/mofdb-web
91e70ca2e1414e6b830e02b736426636449da772
[ "MIT" ]
1
2018-02-20T23:50:27.000Z
2018-02-20T23:50:27.000Z
db/search_indexes.py
TelferLab/mofdb-web
91e70ca2e1414e6b830e02b736426636449da772
[ "MIT" ]
null
null
null
db/search_indexes.py
TelferLab/mofdb-web
91e70ca2e1414e6b830e02b736426636449da772
[ "MIT" ]
null
null
null
from haystack import indexes from db.models import Reaction from db.models import Mof from db.models import Ligand from db.models import ChemicalCompound class MofIndex(indexes.SearchIndex, indexes.Indexable): text = indexes.CharField(document=True, use_template=True) date_creation = indexes.DateTimeField(mod...
34.761905
79
0.780822
253ad4b03b37960acc72de0d1260a13d11cd2227
55
py
Python
utilbox/pdf_utils/__init__.py
jensonjose/utilbox
f47ac1c97fdd3f7caf8ea1c6b693ea115076f0e8
[ "MIT" ]
1
2017-07-08T17:59:09.000Z
2017-07-08T17:59:09.000Z
utilbox/pdf_utils/__init__.py
jensonjose/utilbox
f47ac1c97fdd3f7caf8ea1c6b693ea115076f0e8
[ "MIT" ]
1
2017-08-12T13:51:37.000Z
2017-08-12T13:51:37.000Z
utilbox/pdf_utils/__init__.py
jensonjose/utilbox
f47ac1c97fdd3f7caf8ea1c6b693ea115076f0e8
[ "MIT" ]
1
2018-10-27T06:13:22.000Z
2018-10-27T06:13:22.000Z
from pdf_utils import PdfUtils __all__ = ["PdfUtils"]
13.75
30
0.763636
9142fbf9413ca8a423cc9c96075096989c82c987
7,530
py
Python
bdlb/diabetic_retinopathy_diagnosis/tfds_adapter.py
uai-paper-839/bdlb
0530f4cd90c868de7edaeb26b34c4f9a64165650
[ "Apache-2.0" ]
1
2020-07-15T22:21:52.000Z
2020-07-15T22:21:52.000Z
bdlb/diabetic_retinopathy_diagnosis/tfds_adapter.py
uai-paper-839/bdlb
0530f4cd90c868de7edaeb26b34c4f9a64165650
[ "Apache-2.0" ]
4
2020-09-25T19:06:35.000Z
2021-11-10T19:40:34.000Z
bdlb/diabetic_retinopathy_diagnosis/tfds_adapter.py
icml-paper-2959/bdlb
de746d1911d6f8373435856a551a17773d6f25f7
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 BDL Benchmarks 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...
34.700461
91
0.599734
e455aeb5aab7543b54bdd8f4af3e12a97f080e73
4,764
py
Python
configs/guided_anchoring/ga_retinanet_r101_caffe_fpn_mstrain_2x.py
AgatheMo/DetectoRS
4ec4b91c2b9b2bba7b6f828d3e49866af31242e8
[ "Apache-2.0" ]
1,141
2020-06-04T01:11:22.000Z
2022-03-31T07:12:52.000Z
configs/guided_anchoring/ga_retinanet_r101_caffe_fpn_mstrain_2x.py
drcut/mmdetection
cd4e716b0470bde842c20c00f18cffa20c2673c1
[ "Apache-2.0" ]
98
2020-01-21T09:41:30.000Z
2022-03-12T00:53:06.000Z
configs/guided_anchoring/ga_retinanet_r101_caffe_fpn_mstrain_2x.py
drcut/mmdetection
cd4e716b0470bde842c20c00f18cffa20c2673c1
[ "Apache-2.0" ]
233
2020-01-18T03:46:27.000Z
2022-03-19T03:17:47.000Z
# model settings model = dict( type='RetinaNet', pretrained='open-mmlab://resnet101_caffe', backbone=dict( type='ResNet', depth=101, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=False), norm_eval=True,...
29.407407
75
0.598866
49fa0d0e6d53b255326d962be416fc7ad3a0ad1c
6,552
py
Python
trainer.py
mathsam/DeepLearningCFD
d2c31223f87745c45c1d91d2d169d95861339337
[ "MIT" ]
3
2021-09-09T17:07:17.000Z
2021-10-02T20:51:05.000Z
trainer.py
mathsam/DeepLearningCFD
d2c31223f87745c45c1d91d2d169d95861339337
[ "MIT" ]
null
null
null
trainer.py
mathsam/DeepLearningCFD
d2c31223f87745c45c1d91d2d169d95861339337
[ "MIT" ]
null
null
null
import time import os import torch from torch import nn from ml_models import SuperResolutionNet from datasets import SRDataset from utils import * from torch.utils.tensorboard import SummaryWriter # Data parameters exp_name = "GAN_Sep10_exp2" summary_writer = SummaryWriter(log_dir=exp_name) data_folder = './exp2' #...
38.541176
140
0.608822
a609c4c18429f3393a00a4d7cb6bdffa3a033937
2,253
py
Python
tests/basetestcase.py
sioliv/University
275f3ab7be238c6cbd3a54070172adb3c567c36f
[ "BSD-2-Clause", "MIT" ]
210
2016-04-09T14:26:00.000Z
2022-03-25T18:36:19.000Z
tests/basetestcase.py
sioliv/University
275f3ab7be238c6cbd3a54070172adb3c567c36f
[ "BSD-2-Clause", "MIT" ]
72
2016-09-04T09:30:19.000Z
2022-03-27T17:06:53.000Z
tests/basetestcase.py
sioliv/University
275f3ab7be238c6cbd3a54070172adb3c567c36f
[ "BSD-2-Clause", "MIT" ]
64
2016-04-09T14:26:49.000Z
2022-03-21T11:19:47.000Z
from __future__ import print_function import unittest, pygame, pygame.display, time, os import logging logging.basicConfig(level=logging.INFO) HERE = os.path.dirname( __file__ ) import pickle try: import cPickle except ImportError as err: cPickle = pickle try: from numpy import * except ImportError as err...
27.814815
65
0.676431
8d693e0861149c969f26cbab2a03c6fbfb145554
51
py
Python
python/8Kyu/Beginner Series 4 Cockroach.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
python/8Kyu/Beginner Series 4 Cockroach.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
python/8Kyu/Beginner Series 4 Cockroach.py
athasv/Codewars-data
5e106466e709fd776f23585ad9f652d0d65b48d3
[ "MIT" ]
null
null
null
def cockroach_speed(s): return int(s * 27.7778)
25.5
27
0.686275
45ddb567319f81eacebbd378693f10cc3abf909c
25,113
py
Python
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/job/operations/job_operations.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/job/operations/job_operations.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
azure-mgmt-datalake-analytics/azure/mgmt/datalake/analytics/job/operations/job_operations.py
HydAu/AzureSDKForPython
5cbe34e9e0b8ea1faacc9f205633ccc0b885c0f3
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft and contributors. 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 ...
45.994505
243
0.644447
d572837df894f41d14d1723ab038b13149b385f3
2,297
py
Python
azure-quantum/azure/quantum/target/honeywell.py
jplewa/qdk-python
0c48b2a2123ca47f004e5a121c050d5908eec4f4
[ "MIT" ]
53
2021-01-21T23:38:09.000Z
2022-03-29T16:34:42.000Z
azure-quantum/azure/quantum/target/honeywell.py
jplewa/qdk-python
0c48b2a2123ca47f004e5a121c050d5908eec4f4
[ "MIT" ]
152
2021-01-23T07:01:49.000Z
2022-03-31T19:43:21.000Z
azure-quantum/azure/quantum/target/honeywell.py
slowy07/qdk-python
e4ce0c433cc986bc1c746e9a58f3f05733c657e2
[ "MIT" ]
47
2021-01-30T20:15:46.000Z
2022-03-25T23:35:28.000Z
## # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. ## import io from typing import Any, Dict from azure.quantum.target.target import Target from azure.quantum.job.job import Job from azure.quantum.workspace import Workspace class Honeywell(Target): """Honeywell target.""" target_name...
28.012195
65
0.583805
9350b958914889ebd48f583df37c20bfb216c1ad
12,959
py
Python
test/unit/test_cache.py
cwkrebs/dbt
0b135772d2db2549225365eeeb465b5316930145
[ "Apache-2.0" ]
1
2022-01-09T19:33:25.000Z
2022-01-09T19:33:25.000Z
test/unit/test_cache.py
cwkrebs/dbt
0b135772d2db2549225365eeeb465b5316930145
[ "Apache-2.0" ]
null
null
null
test/unit/test_cache.py
cwkrebs/dbt
0b135772d2db2549225365eeeb465b5316930145
[ "Apache-2.0" ]
null
null
null
from unittest import TestCase from dbt.adapters.cache import RelationsCache from dbt.adapters.default.relation import DefaultRelation from multiprocessing.dummy import Pool as ThreadPool import dbt.exceptions import random import time def make_relation(schema, identifier): return DefaultRelation.create(schema=sc...
39.509146
79
0.591481
c0dd026f51251ce00898d87622997423cc56198c
7,444
py
Python
src/plasticorigins/tracking/track_video.py
surfriderfoundationeurope/surfnet
ddbfa3e1b4e156febedc71992fe9a049c04504be
[ "MIT" ]
4
2022-01-24T11:19:43.000Z
2022-01-31T16:24:05.000Z
src/plasticorigins/tracking/track_video.py
surfriderfoundationeurope/surfnet
ddbfa3e1b4e156febedc71992fe9a049c04504be
[ "MIT" ]
1
2022-02-07T08:30:10.000Z
2022-02-07T08:30:10.000Z
src/plasticorigins/tracking/track_video.py
surfriderfoundationeurope/surfnet
ddbfa3e1b4e156febedc71992fe9a049c04504be
[ "MIT" ]
2
2022-01-28T21:31:59.000Z
2022-03-22T17:52:57.000Z
import numpy as np from scipy.optimize import linear_sum_assignment from scipy.spatial.distance import euclidean from plasticorigins.tools.optical_flow import compute_flow from plasticorigins.tracking.utils import in_frame def init_trackers( engine, detections, confs, labels, frame_nb, state_...
32.50655
101
0.562198
254b91cac81b43fe8d658b36b382dc3fdb404788
155
py
Python
linkedin_api/utils/helpers.py
xiaoyongzhu/linkedin-api
5dd1016f455b583ff6710f89db5f1069c219747e
[ "MIT" ]
5
2019-10-14T03:52:53.000Z
2021-12-25T23:06:16.000Z
linkedin_api/utils/helpers.py
xiaoyongzhu/linkedin-api
5dd1016f455b583ff6710f89db5f1069c219747e
[ "MIT" ]
1
2020-04-10T15:06:36.000Z
2020-04-10T15:06:36.000Z
linkedin_api/utils/helpers.py
xiaoyongzhu/linkedin-api
5dd1016f455b583ff6710f89db5f1069c219747e
[ "MIT" ]
3
2019-11-23T08:19:06.000Z
2020-03-06T03:54:35.000Z
def get_id_from_urn(urn): """ Return the ID of a given Linkedin URN. Example: urn:li:fs_miniProfile:<id> """ return urn.split(":")[3]
19.375
42
0.606452
13910e17dc41d923866362a4d413fe1ec41e487c
801
py
Python
benchmarks/test.py
AishwaryaSeth/kdg
d3c146919c930f6598408b5518ccd8e1dd771867
[ "MIT" ]
2
2021-09-05T22:16:35.000Z
2021-09-28T16:33:46.000Z
benchmarks/test.py
AishwaryaSeth/kdg
d3c146919c930f6598408b5518ccd8e1dd771867
[ "MIT" ]
null
null
null
benchmarks/test.py
AishwaryaSeth/kdg
d3c146919c930f6598408b5518ccd8e1dd771867
[ "MIT" ]
1
2021-11-02T23:43:37.000Z
2021-11-02T23:43:37.000Z
#%% from kdg import kdf from kdg.utils import get_ece import openml import multiprocessing from joblib import Parallel, delayed import numpy as np import pandas as pd from sklearn.model_selection import StratifiedKFold from sklearn.ensemble import RandomForestClassifier as rf from sklearn.metrics import cohen_kappa_sco...
26.7
67
0.766542
fea13937911da04ed901115c66c6d5e9d8724cf4
4,673
py
Python
src/updater/Updater.py
chpoit/utsushis-charm
5c7389543bedbc61ccb938c6879e7155bb2fd3d2
[ "MIT" ]
14
2021-05-09T06:41:49.000Z
2021-07-15T02:50:42.000Z
src/updater/Updater.py
chpoit/utsushis-charm
5c7389543bedbc61ccb938c6879e7155bb2fd3d2
[ "MIT" ]
7
2021-05-12T13:35:34.000Z
2022-02-03T18:17:52.000Z
src/updater/Updater.py
chpoit/utsushis-charm
5c7389543bedbc61ccb938c6879e7155bb2fd3d2
[ "MIT" ]
4
2021-05-16T05:07:29.000Z
2021-05-25T02:26:46.000Z
import webbrowser import json import os from ..resources import ( get_latest_url, get_language_url, get_corrections_url, get_corrections_path, get_translation_location, get_english_skill_mapping_url, get_english_skill_mappping_location, ) from .VersionChecker import VersionChecker from urlli...
38.619835
88
0.636422
fd5baf8f301a4912b1bd454e66076c35529db625
1,358
py
Python
shopyo/modules/www/view.py
Bnseamster/shopyo
945b4cf1ac9b4a4c33f6616c252a9ad22a197246
[ "MIT" ]
null
null
null
shopyo/modules/www/view.py
Bnseamster/shopyo
945b4cf1ac9b4a4c33f6616c252a9ad22a197246
[ "MIT" ]
null
null
null
shopyo/modules/www/view.py
Bnseamster/shopyo
945b4cf1ac9b4a4c33f6616c252a9ad22a197246
[ "MIT" ]
null
null
null
import json import os # from flask import url_for # from flask import redirect # from flask import flash # from flask import request from flask import Blueprint from flask import render_template # # from shopyoapi.html import notify_success # from shopyoapi.forms import flash_errors # from shopyoapi.enhance import ge...
26.627451
79
0.743004
70b1eea2df939d4e73cb11bf2b0b2c275363545c
1,387
py
Python
nomadgram/notifications/migrations/0001_initial.py
syoung19940/nomadgram
8556ac51d6ee6c49079086d6785accf440758037
[ "MIT" ]
null
null
null
nomadgram/notifications/migrations/0001_initial.py
syoung19940/nomadgram
8556ac51d6ee6c49079086d6785accf440758037
[ "MIT" ]
13
2020-06-05T18:23:55.000Z
2022-03-03T22:32:50.000Z
nomadgram/notifications/migrations/0001_initial.py
syoung19940/nomadgram
8556ac51d6ee6c49079086d6785accf440758037
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2018-06-27 07:18 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('imag...
40.794118
145
0.627974
fd8490cd0736b3be5cef8d4a5c5fa0917c4dc052
2,064
py
Python
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_my_sql_source.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
4
2016-06-17T23:25:29.000Z
2022-03-30T22:37:45.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_my_sql_source.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
54
2016-03-25T17:25:01.000Z
2018-10-22T17:27:54.000Z
azure-mgmt-datafactory/azure/mgmt/datafactory/models/azure_my_sql_source.py
v-Ajnava/azure-sdk-for-python
a1f6f80eb5869c5b710e8bfb66146546697e2a6f
[ "MIT" ]
3
2016-05-03T20:49:46.000Z
2017-10-05T21:05:27.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
40.470588
167
0.633236
870c1b59349c3cbf31d5a5b258418a0dd47dd9e8
1,401
py
Python
molsysmt/tools/file_pdb/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
molsysmt/tools/file_pdb/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
molsysmt/tools/file_pdb/__init__.py
dprada/molsysmt
83f150bfe3cfa7603566a0ed4aed79d9b0c97f5d
[ "MIT" ]
null
null
null
from .is_file_pdb import is_file_pdb from .download import download from .replace_HETATM_by_ATOM_in_terminal_cappings import replace_HETATM_by_ATOM_in_terminal_cappings from .has_atoms_with_alternate_locations import has_atoms_with_alternate_locations from .to_string_pdb_text import to_string_pdb_text from .to_file_mol...
53.884615
100
0.910778
63d10d734e5cce3f42c3a80e769716c5b84a244a
13,054
py
Python
carsus/io/tests/test_output_tardis.py
parikshit14/carsus
3f67e8068829829361d7b1da9020e1fde9dcac2e
[ "BSD-3-Clause" ]
21
2016-06-01T16:12:03.000Z
2022-02-04T09:03:38.000Z
carsus/io/tests/test_output_tardis.py
parikshit14/carsus
3f67e8068829829361d7b1da9020e1fde9dcac2e
[ "BSD-3-Clause" ]
149
2016-05-03T17:50:42.000Z
2022-03-25T14:48:51.000Z
carsus/io/tests/test_output_tardis.py
parikshit14/carsus
3f67e8068829829361d7b1da9020e1fde9dcac2e
[ "BSD-3-Clause" ]
34
2016-05-03T16:39:11.000Z
2022-02-03T16:39:49.000Z
import pytest import os import numpy as np from numpy.testing import assert_almost_equal from astropy import units as u from astropy.tests.helper import assert_quantity_allclose from sqlalchemy import and_ from carsus.io.output.tardis_ import AtomData from carsus.model import DataSource, Ion with_test_db = pytest.mar...
36.261111
121
0.676881
cd4a2777a2a6e89adfb281f6808a4f2a03c9ab99
2,168
py
Python
doc/conf.py
wrgl/python-sdk
65ccd2797927fcb27cf32e0b06884046c15d85f5
[ "Apache-2.0" ]
null
null
null
doc/conf.py
wrgl/python-sdk
65ccd2797927fcb27cf32e0b06884046c15d85f5
[ "Apache-2.0" ]
null
null
null
doc/conf.py
wrgl/python-sdk
65ccd2797927fcb27cf32e0b06884046c15d85f5
[ "Apache-2.0" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
30.971429
79
0.667435
88999a8708bc94c51132e60e73d8ec01c918a369
3,217
py
Python
gale/databases/populateMongo.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
gale/databases/populateMongo.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
gale/databases/populateMongo.py
adamrpah/GALE
94ab2613c5d53ea471f664a75c7d780a2689302f
[ "WTFPL" ]
null
null
null
''' File: populateMongo.py Author: Adam Pah Description: Populating mongo collections from standard types ''' def from_list(settings, data, naming_scheme, exclusions = [], chunk_size = 100000, inclusion = {}): ''' input: settings - mongo connection settings (mongoConnect standard) data - list o...
32.826531
99
0.627914
a831fb7d8af6065f670728598bfe947fbc24eff7
4,694
py
Python
src/single_image_inference.py
georghess/probdet
d44aa3115cf6c0b31a2570f9593d6fcd1adb09a4
[ "Apache-2.0" ]
null
null
null
src/single_image_inference.py
georghess/probdet
d44aa3115cf6c0b31a2570f9593d6fcd1adb09a4
[ "Apache-2.0" ]
null
null
null
src/single_image_inference.py
georghess/probdet
d44aa3115cf6c0b31a2570f9593d6fcd1adb09a4
[ "Apache-2.0" ]
null
null
null
""" Probabilistic Detectron Single Image Inference Script """ import json import os import sys import cv2 import torch import tqdm import core # This is very ugly. Essential for now but should be fixed. sys.path.append(os.path.join(core.top_dir(), "src", "detr")) from detectron2.data import MetadataCatalog from det...
33.29078
94
0.622923
83e3bcd63ef190a4b256be5f12593a79fc7cecae
1,990
py
Python
ez_epub.py
RishabhBhatnagar/wattpad-ebook-scraper
4b7eb5751e1ded26b696363c67d4da50eeec6842
[ "MIT" ]
29
2015-02-03T00:28:12.000Z
2021-11-23T11:10:49.000Z
ez_epub.py
RishabhBhatnagar/wattpad-ebook-scraper
4b7eb5751e1ded26b696363c67d4da50eeec6842
[ "MIT" ]
17
2015-06-17T22:17:28.000Z
2019-01-04T04:08:15.000Z
ez_epub.py
RishabhBhatnagar/wattpad-ebook-scraper
4b7eb5751e1ded26b696363c67d4da50eeec6842
[ "MIT" ]
13
2015-07-14T18:18:44.000Z
2020-04-24T10:32:58.000Z
# Copyright (c) 2012, Bin Tan # This file is distributed under the BSD Licence. # See python-epub-builder-license.txt for details. import epub from genshi.template import TemplateLoader class Section: def __init__(self): self.title = '' self.subsections = [] self.css = '' self.tex...
33.728814
73
0.59799
f64e31bfd0f6648dd28ee1ba49ec0b4c5d992504
9,496
py
Python
benchmark/mutual_information/classifier_test.py
dizcza/entropy-estimators
a12b9c5a0be5e7314a8392f1eafefd76a78b82f9
[ "MIT" ]
1
2021-04-13T06:41:14.000Z
2021-04-13T06:41:14.000Z
benchmark/mutual_information/classifier_test.py
dizcza/entropy-estimators
a12b9c5a0be5e7314a8392f1eafefd76a78b82f9
[ "MIT" ]
null
null
null
benchmark/mutual_information/classifier_test.py
dizcza/entropy-estimators
a12b9c5a0be5e7314a8392f1eafefd76a78b82f9
[ "MIT" ]
2
2020-05-13T11:59:49.000Z
2020-07-30T08:41:36.000Z
from collections import defaultdict import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn from functools import partial from torch.utils.data import TensorDataset from tqdm import tqdm, trange from benchmark.mutual_information.mutual_information import MutualInfoTest from estimators im...
38.759184
79
0.615206
bd7ecdde99447760e2b853b7877be131c0143735
490
py
Python
correct_programs/ethz_eprog_2019/exercise_10/__init__.py
ProLoD/aocdbc
b857e8deff87373039636c12a170c0086b19f04c
[ "MIT" ]
8
2021-05-07T17:37:37.000Z
2022-02-26T15:08:42.000Z
correct_programs/ethz_eprog_2019/exercise_10/__init__.py
ProLoD/aocdbc
b857e8deff87373039636c12a170c0086b19f04c
[ "MIT" ]
22
2021-04-28T21:55:48.000Z
2022-03-04T07:41:37.000Z
correct_programs/ethz_eprog_2019/exercise_10/__init__.py
ProLoD/aocdbc
b857e8deff87373039636c12a170c0086b19f04c
[ "MIT" ]
3
2021-03-26T22:29:12.000Z
2021-04-11T20:45:45.000Z
""" Provide problems and solutions for Exercise 10. The original exercises can be retrieved from: https://ethz.ch/content/dam/ethz/special-interest/infk/inst-cs/lst-dam/documents/Education/Classes/Fall2019/0027_Intro/Homework/u10.pdf We intentionally skipped the problems of this exercise. Please see the following pag...
40.833333
135
0.818367
20415df44e64adc9128a3d9a1f4357c6a4d1d296
22,956
py
Python
redactedapi.py
btchmistry/REDbetter3
1544f7ed013457568ec536301d8b3e35d2c9b718
[ "Unlicense" ]
2
2021-12-29T00:43:57.000Z
2021-12-30T13:59:46.000Z
redactedapi.py
btchmistry/REDbetter3
1544f7ed013457568ec536301d8b3e35d2c9b718
[ "Unlicense" ]
2
2022-01-06T17:56:18.000Z
2022-01-07T23:59:23.000Z
redactedapi.py
btchmistry/REDbetter3
1544f7ed013457568ec536301d8b3e35d2c9b718
[ "Unlicense" ]
1
2022-02-15T22:32:53.000Z
2022-02-15T22:32:53.000Z
#!/usr/bin/env python3 import re import json import time import requests from utils import Utilities from static import Static import logging # for later use: categories = {1: 'Music', 2: 'Applications', 3: 'E-Books', # 4: 'Audiobooks', 5: 'E-Learning Videos', 6: 'Comedy', 7: 'Comics'} ut = Utilities() st = Static()...
37.571195
146
0.502352
37fec3b4da1762b69c5b0bb0cb54e0ee36cb8be4
2,460
py
Python
myfunds/tgbot/utils.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
myfunds/tgbot/utils.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
myfunds/tgbot/utils.py
anzodev/myfunds
9f6cda99f443cec064d15d7ff7780f297cbdfe10
[ "MIT" ]
null
null
null
import json import logging import threading import time from datetime import date as dt_date from typing import List from typing import Tuple class InlineKeyboard: def __init__(self, rows: int): self._buttons = list([] for i in range(rows)) def add_button(self, row: int, text: str, callback_data: str...
25.360825
88
0.627236
b7c88ec1fe26267c59a17aef3b50985e8c4e8b9b
2,801
py
Python
booktags/crawlers/base.py
MagicSword/Booktags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
null
null
null
booktags/crawlers/base.py
MagicSword/Booktags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
9
2019-12-20T15:24:38.000Z
2021-12-13T20:28:48.000Z
booktags/crawlers/base.py
MagicSword/BookTags
44142e19aec5ce75266233964d7ab21503bbe57c
[ "Apache-1.1" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ example.py ~~~~~~~~~ A simple command line application to run flask apps. :copyright: 2019 Miller :license: BSD-3-Clause """ # Known bugs that can't be fixed here: # - synopsis() cannot be prevented from clobbering existing # loaded modules. ...
28.292929
75
0.549804
c23834055a2794d7ef2571405fb30601b477eee7
463
py
Python
apps/contactmessages/migrations/0004_auto_20180109_1139.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
apps/contactmessages/migrations/0004_auto_20180109_1139.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
apps/contactmessages/migrations/0004_auto_20180109_1139.py
iamjdcollins/districtwebsite
89e2aea47ca3d221665bc23586a4374421be5800
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2018-01-09 18:39 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('contactmessages', '0003_contactmessage_confirm_set'), ] operations = [ migrations.R...
22.047619
63
0.634989
e2b0953e7e74745ad718c1192c12cbb15c106e84
9,383
py
Python
sklearn/sklearn learning/demonstration/auto_examples_python/manifold/plot_lle_digits.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
1
2020-06-04T11:10:27.000Z
2020-06-04T11:10:27.000Z
sklearn/sklearn learning/demonstration/auto_examples_python/manifold/plot_lle_digits.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
sklearn/sklearn learning/demonstration/auto_examples_python/manifold/plot_lle_digits.py
wangyendt/deeplearning_models
47883b6c65b8d05a0d1c5737f1552df6476ded34
[ "MIT" ]
null
null
null
""" ============================================================================= Manifold learning on handwritten digits: Locally Linear Embedding, Isomap... ============================================================================= An illustration of various embeddings on the digits dataset. The RandomTreesEmbed...
37.834677
79
0.572631
e045cad3b352f58f5314ad95653a929c697580bd
1,300
py
Python
easyrequest/commands/start_spider.py
4379711/easyrequest
ece4020ed11f0c8a8a97f0dcfbb615754ed210f7
[ "MIT" ]
1
2020-02-18T02:53:54.000Z
2020-02-18T02:53:54.000Z
easyrequest/commands/start_spider.py
4379711/easyrequest
ece4020ed11f0c8a8a97f0dcfbb615754ed210f7
[ "MIT" ]
null
null
null
easyrequest/commands/start_spider.py
4379711/easyrequest
ece4020ed11f0c8a8a97f0dcfbb615754ed210f7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from easyrequest.engine import SpiderEngine from easyrequest.engine.load_all_modules import LoadAllModules from easyrequest.error import LoadError from easyrequest.utils import * def start_spider(spider_name): """ Run a spider . """ if not check_spider_name(spider_...
29.545455
85
0.714615
d964cad87cab19d77d05e6d69dd66611cd5f9539
805
py
Python
manage.py
gxyp/indabom
114991be2471eda2cf658c68706ab7bb05b06959
[ "MIT" ]
17
2017-03-02T04:55:16.000Z
2022-01-24T02:32:19.000Z
manage.py
gxyp/indabom
114991be2471eda2cf658c68706ab7bb05b06959
[ "MIT" ]
33
2018-02-28T06:34:28.000Z
2022-03-17T22:36:33.000Z
manage.py
gxyp/indabom
114991be2471eda2cf658c68706ab7bb05b06959
[ "MIT" ]
11
2017-03-02T04:55:49.000Z
2022-01-24T02:36:18.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "indabom.settings") try: from django.core.management import execute_from_command_line except ImportError: # The above import may fail for some other reason. Ensure that the ...
35
77
0.642236
c3aa1bf2c2969b137dfd51104765901c744cdd56
22,288
py
Python
src/sentry/api/serializers/models/group.py
phillipgraniero/sentry
e0cd92edbd4b65fd83ac5a1ffcb75aa9bb495d50
[ "BSD-3-Clause" ]
null
null
null
src/sentry/api/serializers/models/group.py
phillipgraniero/sentry
e0cd92edbd4b65fd83ac5a1ffcb75aa9bb495d50
[ "BSD-3-Clause" ]
1
2020-05-12T05:44:07.000Z
2020-05-12T05:44:07.000Z
src/sentry/api/serializers/models/group.py
phillipgraniero/sentry
e0cd92edbd4b65fd83ac5a1ffcb75aa9bb495d50
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import, print_function import itertools from collections import defaultdict from datetime import timedelta import six from django.core.urlresolvers import reverse from django.db.models import Q from django.utils import timezone from sentry import tagstore, tsdb from sentry.api.seriali...
38.761739
124
0.564698
d027adb5ca0184ac4ac16608a08197c9d9766958
624
py
Python
tests/test_task_go.py
jduff/devbuddy
9ae6d66ad79baedbde2fdb70f568b89ddd89d2a4
[ "MIT" ]
null
null
null
tests/test_task_go.py
jduff/devbuddy
9ae6d66ad79baedbde2fdb70f568b89ddd89d2a4
[ "MIT" ]
null
null
null
tests/test_task_go.py
jduff/devbuddy
9ae6d66ad79baedbde2fdb70f568b89ddd89d2a4
[ "MIT" ]
null
null
null
import pytest @pytest.fixture def gopath(tmpdir_factory): return tmpdir_factory.mktemp("gopath") def test_env(cmd, project, gopath): cmd.run(f"export GOPATH={gopath}") project.write_devyml(""" up: - go: '1.5' """) cmd.run("bud up") output = cmd.run("go version") assert...
18.909091
68
0.621795
7e5fa08b720d9c0c634f78a0a41dab115606c53a
133
py
Python
bindings/python/ensmallen_graph/utils/__init__.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen_graph/utils/__init__.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen_graph/utils/__init__.py
caufieldjh/ensmallen_graph
14e98b1cdbc73193a84a913d7d4f2b2b3eb2c43a
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
"""Sub-module with holdouts utilities.""" from .holdouts_generator import holdouts_generator __all__ = [ "holdouts_generator" ]
19
50
0.759398
6f4c8adccf53f2e8083daf1f1aa9ed59b4fb3d85
8,990
py
Python
api/tacticalrmm/software/tests.py
meyerje/tacticalrmm
40a68bafb6ee85de586c23b9c3f7387553188eed
[ "MIT" ]
null
null
null
api/tacticalrmm/software/tests.py
meyerje/tacticalrmm
40a68bafb6ee85de586c23b9c3f7387553188eed
[ "MIT" ]
null
null
null
api/tacticalrmm/software/tests.py
meyerje/tacticalrmm
40a68bafb6ee85de586c23b9c3f7387553188eed
[ "MIT" ]
null
null
null
from tacticalrmm.test import TacticalTestCase from .serializers import InstalledSoftwareSerializer from model_bakery import baker from itertools import cycle from unittest.mock import patch from .models import InstalledSoftware, ChocoLog from agents.models import Agent class TestSoftwareViews(TacticalTestCase): d...
35.393701
85
0.63604
13474edc4bdda6c1ee8a6913b533f452f13e289b
297
py
Python
client.py
daxixi/Mentor-Relate
418820efaad10fb9bda1402ae5b2d0f2370570da
[ "Apache-2.0" ]
null
null
null
client.py
daxixi/Mentor-Relate
418820efaad10fb9bda1402ae5b2d0f2370570da
[ "Apache-2.0" ]
null
null
null
client.py
daxixi/Mentor-Relate
418820efaad10fb9bda1402ae5b2d0f2370570da
[ "Apache-2.0" ]
null
null
null
import socket import pickle import sys import os key_words=sys.argv[1] client= socket.socket(socket.AF_INET,socket.SOCK_STREAM) client.connect(('127.0.0.1',1883)) key_words=pickle.dumps(key_words) client.sendall(key_words) outputs=client.recv(10240) outputs=pickle.loads(outputs) print(outputs)
19.8
56
0.804714
a8324541fff45242bd834221c9c58f56eb912875
10,920
py
Python
Util.py
zzs1324/BO-DBA
6afaa32be2b28a9a411422797809e423d9df7805
[ "MIT" ]
2
2021-07-13T13:26:33.000Z
2021-11-18T16:57:07.000Z
Util.py
zzs1324/BO-DBA
6afaa32be2b28a9a411422797809e423d9df7805
[ "MIT" ]
1
2021-10-05T02:55:24.000Z
2021-10-05T02:55:24.000Z
Util.py
zzs1324/BO-DBA
6afaa32be2b28a9a411422797809e423d9df7805
[ "MIT" ]
null
null
null
import cv2 import random import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from PIL import Image from shared import norm import os from scipy import ndimage import yaml import time import keras def millis(): return int(round(time.time() * 1000)) #Load data and model with open(f'./Configur...
33.191489
121
0.624725
81763a439358ef13bc0cb1e6985c0e9cdaf54aed
4,224
py
Python
examples/python_naive_matmul/matmul_plot.py
dSandley20/KomputeParticles
099073c6db4b5345e80eaaebe97d97e0f8256849
[ "Apache-2.0" ]
445
2020-09-13T14:21:48.000Z
2021-07-18T13:50:37.000Z
examples/python_naive_matmul/matmul_plot.py
dSandley20/KomputeParticles
099073c6db4b5345e80eaaebe97d97e0f8256849
[ "Apache-2.0" ]
148
2020-09-20T09:06:49.000Z
2021-06-28T11:44:27.000Z
examples/python_naive_matmul/matmul_plot.py
dSandley20/KomputeParticles
099073c6db4b5345e80eaaebe97d97e0f8256849
[ "Apache-2.0" ]
42
2020-09-27T15:43:59.000Z
2021-07-05T11:53:06.000Z
from argparse import ArgumentParser import cv2 import numpy as np def plot_tensor(window_name: str, tensor: np.ndarray, coord_highlight: tuple[int, int] = None): font_size = 48 image = np.zeros((tensor.shape[1] * font_size, tensor.shape[0] * font_size, 3), dtype=np.uint8) for y in range(tensor.shape[1])...
43.102041
106
0.609848
d8b490b780d63b503eadfbfe31259a13230da9aa
7,219
py
Python
lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
lldb/test/API/python_api/value/change_values/TestChangeValueAPI.py
LaudateCorpus1/llvm-project
ff2e0f0c1112558b3f30d8afec7c9882c33c79e3
[ "Apache-2.0" ]
null
null
null
""" Test some SBValue APIs. """ import lldb from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class ChangeValueAPITestCase(TestBase): mydir = TestBase.compute_mydir(__file__) def setUp(self): # Call super's setUp(). TestBase....
40.105556
92
0.652029
05faf584c3513a352f4d4988fb7f65024b36fda2
5,714
py
Python
examples/json_producer.py
woodlee/confluent-kafka-python
c8a05dbd73e06ea310de7f28267fd4714f90ef8c
[ "Apache-2.0" ]
2,838
2016-05-24T12:41:06.000Z
2022-03-31T13:24:16.000Z
examples/json_producer.py
woodlee/confluent-kafka-python
c8a05dbd73e06ea310de7f28267fd4714f90ef8c
[ "Apache-2.0" ]
1,202
2016-05-25T20:52:51.000Z
2022-03-31T23:59:57.000Z
examples/json_producer.py
woodlee/confluent-kafka-python
c8a05dbd73e06ea310de7f28267fd4714f90ef8c
[ "Apache-2.0" ]
824
2016-05-26T19:59:43.000Z
2022-03-31T10:14:04.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2020 Confluent 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 requi...
33.028902
86
0.641932
5d5081d474722c1fed689bc623e84d468d52abd3
3,992
py
Python
mod_marksOnGunExtended/.release.py
spoter/spoter-mods
f76e278429cbfdfe674044556cd1ecb1a77ca4db
[ "WTFPL" ]
150
2015-11-07T12:58:06.000Z
2022-03-19T17:52:34.000Z
mod_marksOnGunExtended/.release.py
StranikS-Scan/spoter-mods
b2923d95b03751ee09b6cb4ebc5be348d90cfd3c
[ "WTFPL" ]
62
2015-12-17T02:11:18.000Z
2021-02-07T11:37:22.000Z
mod_marksOnGunExtended/.release.py
spoter/spoter-mods
f76e278429cbfdfe674044556cd1ecb1a77ca4db
[ "WTFPL" ]
97
2015-11-10T18:43:02.000Z
2022-01-28T20:58:23.000Z
# -*- coding: utf-8 -*- import glob import os import shutil import subprocess import _build as build ZIP = 'mods_marksOnGunExtended.zip' class Release(object): def __init__(self, build, zip): self.data = build self.zipPath = os.path.join('zip', zip) self.modsPath = os.path.join(self.data...
59.58209
267
0.641533
4024595d308ed40c015073348c0d520a8da3d66d
2,043
py
Python
drivers/audios_manager.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
null
null
null
drivers/audios_manager.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
null
null
null
drivers/audios_manager.py
ndkjing/usv
132e021432a0344a22914aaf68da7d7955d7331f
[ "MIT" ]
1
2021-09-04T10:27:30.000Z
2021-09-04T10:27:30.000Z
""" 声音播放管理 gps : GPS接收不到信号 network:无法连接服务器 register: 船还没有注册 battery:电池电量过低 """ import os,sys sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) import config import enum import sys import random # sys.path.append(os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) audios...
27.986301
148
0.651982
080b5f3ce34e7da3c1929794e8b7f33a148944d7
2,253
py
Python
GUI/PyQt/configGUI/LabelChoose.py
thomaskuestner/CNNArt
c2fc639dd2ce035f6ca90113290682a0ccd26fb8
[ "Apache-2.0" ]
22
2018-04-27T21:28:46.000Z
2021-12-24T06:44:55.000Z
GUI/PyQt/configGUI/LabelChoose.py
thomaskuestner/CNNArt
c2fc639dd2ce035f6ca90113290682a0ccd26fb8
[ "Apache-2.0" ]
81
2017-11-09T17:23:15.000Z
2020-01-28T22:54:13.000Z
GUI/PyQt/configGUI/LabelChoose.py
thomaskuestner/CNNArt
c2fc639dd2ce035f6ca90113290682a0ccd26fb8
[ "Apache-2.0" ]
18
2017-11-13T16:12:17.000Z
2020-08-27T10:17:34.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'LabelChoose.ui' # # Created by: PyQt5 UI code generator 5.11.3 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5.QtWidgets import QDialog class Ui_Dialog(QDialog): def setup...
40.232143
106
0.702619
c5eb8c97d74160e7473b28b47c6fcd3f85bd2581
1,497
py
Python
control_cpu_usage.py
biezhi/runcat_pyside
14ecfcda1fa25fecc2c636f50190c9d524825f14
[ "MIT" ]
6
2021-11-19T23:01:07.000Z
2021-11-22T12:21:19.000Z
control_cpu_usage.py
hellokaton/runcat_pyside
14ecfcda1fa25fecc2c636f50190c9d524825f14
[ "MIT" ]
1
2021-11-22T12:12:36.000Z
2021-11-23T13:26:16.000Z
control_cpu_usage.py
biezhi/runcat_pyside
14ecfcda1fa25fecc2c636f50190c9d524825f14
[ "MIT" ]
null
null
null
""" 使用方法:命令行模式 python control_cpu_usage.py -c 20 -t 0.1 -c 指定cpu核数:不指定-c参数默认为所有核数。 -t 数值越大,cpu使用率越低。 """ import argparse import time from multiprocessing import Process from multiprocessing import cpu_count def exec_func(bt): while True: for i in range(0, 9600000): pass try: ...
21.084507
91
0.557782
fc631eff306bae98c00293dd0937004e36ea81f2
18,568
py
Python
tests/test_sphinx_autodoc_typehints.py
ooliver1/sphinx-autodoc-typehints
a7bee398c45d0f8ee541dd8e88e9d2ac7cc3d475
[ "MIT" ]
1
2021-11-04T13:20:33.000Z
2021-11-04T13:20:33.000Z
tests/test_sphinx_autodoc_typehints.py
ooliver1/sphinx-autodoc-typehints
a7bee398c45d0f8ee541dd8e88e9d2ac7cc3d475
[ "MIT" ]
null
null
null
tests/test_sphinx_autodoc_typehints.py
ooliver1/sphinx-autodoc-typehints
a7bee398c45d0f8ee541dd8e88e9d2ac7cc3d475
[ "MIT" ]
null
null
null
import pathlib import re import sys import textwrap import typing from typing import ( IO, Any, AnyStr, Callable, Dict, Generic, Mapping, Match, NewType, Optional, Pattern, Tuple, Type, TypeVar, Union) import pytest import typing_extensions from sphinx_autodoc_typehints_updated import ( format_annotation,...
34.069725
99
0.506355
50b40a40f4c9c0d5ced2876309da70560a1e6ef4
30,254
py
Python
sdk/storagepool/azure-mgmt-storagepool/azure/mgmt/storagepool/operations/_iscsi_targets_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
3
2020-06-23T02:25:27.000Z
2021-09-07T18:48:11.000Z
sdk/storagepool/azure-mgmt-storagepool/azure/mgmt/storagepool/operations/_iscsi_targets_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
510
2019-07-17T16:11:19.000Z
2021-08-02T08:38:32.000Z
sdk/storagepool/azure-mgmt-storagepool/azure/mgmt/storagepool/operations/_iscsi_targets_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
5
2019-09-04T12:51:37.000Z
2020-09-16T07:28:40.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
52.072289
222
0.667912
8499c1b3fec0041e9bec9d545e7b062c3e80fdd4
23,729
py
Python
enaml/qt/docking/q_guide_rose.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
null
null
null
enaml/qt/docking/q_guide_rose.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
1
2019-08-22T14:38:24.000Z
2019-08-22T14:38:24.000Z
enaml/qt/docking/q_guide_rose.py
timgates42/enaml
054efe6a4047d84f2fff718d656a64a2363884dc
[ "BSD-3-Clause-Clear" ]
null
null
null
#------------------------------------------------------------------------------ # Copyright (c) 2013-2017, Nucleic Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #--------------------------------------------...
30.189567
79
0.574529
d2019cd95601cd6c11188a8e30bb68cd8d06e9d8
713
py
Python
configs/aam_configs.py
rafaat/audiencemanager-api-lab
5890854cd4a085bbaf9e13f21d7d70cca25254f4
[ "Apache-2.0" ]
1
2019-02-20T16:44:35.000Z
2019-02-20T16:44:35.000Z
configs/aam_configs.py
rafaat/audiencemanager-api-lab
5890854cd4a085bbaf9e13f21d7d70cca25254f4
[ "Apache-2.0" ]
null
null
null
configs/aam_configs.py
rafaat/audiencemanager-api-lab
5890854cd4a085bbaf9e13f21d7d70cca25254f4
[ "Apache-2.0" ]
4
2017-03-22T16:03:30.000Z
2020-10-03T09:32:22.000Z
# API Credentials AAM_API_ACCESS_TOKEN = 'PLACE-YOUR-ACCESS-TOKEN-HERE' # API Paths AAM_BASE_API_PATH = 'https://api-sandbox.demdex.com' AAM_OAUTH_TOKEN_API_PATH = AAM_BASE_API_PATH + '/oauth/token' AAM_SELF_USER_API_PATH = AAM_BASE_API_PATH + '/v1/users/self' AAM_DATASOURCE_API_PATH = AAM_BASE_API_PATH + '/v1/dataso...
39.611111
72
0.807854
895a582304d76d87c6716cc2e970f9361a22d2b2
4,772
py
Python
main.py
AKI-maggie/adapted_deep_embeddings
7f58900cf31398f7bb23295c1d4854f1ae941bcd
[ "MIT" ]
24
2018-10-19T07:48:16.000Z
2021-06-29T08:44:16.000Z
main.py
AKI-maggie/adapted_deep_embeddings
7f58900cf31398f7bb23295c1d4854f1ae941bcd
[ "MIT" ]
8
2019-01-12T02:55:13.000Z
2022-03-11T23:32:01.000Z
main.py
garyCC227/thesis
a93c5061c09fa1a42d54053cd82e71cef447e4b8
[ "MIT" ]
10
2018-12-04T11:39:01.000Z
2020-11-10T06:57:35.000Z
import argparse import logging import os from run_model import run def get_opts(): class MyArgumentParser(argparse.ArgumentParser): def convert_arg_line_to_args(self, arg_line): return arg_line.split() parser = MyArgumentParser(fromfile_prefix_chars='@') # Dataset parameters pars...
45.447619
125
0.695935
2dcece43f229f40fd6702026006040d5db262bb8
2,933
py
Python
examples/tour_examples/bootstrap_google_tour.py
mdmintz/seleniumbase
30eafb00d2023e2c4833e34e4636c8147554963e
[ "MIT" ]
null
null
null
examples/tour_examples/bootstrap_google_tour.py
mdmintz/seleniumbase
30eafb00d2023e2c4833e34e4636c8147554963e
[ "MIT" ]
null
null
null
examples/tour_examples/bootstrap_google_tour.py
mdmintz/seleniumbase
30eafb00d2023e2c4833e34e4636c8147554963e
[ "MIT" ]
null
null
null
from seleniumbase import BaseCase class MyTourClass(BaseCase): def test_google_tour(self): self.open("https://google.com/ncr") self.wait_for_element('input[title="Search"]') self.create_bootstrap_tour() # OR self.create_tour(theme="bootstrap") self.add_tour_step("Welcome to Googl...
38.090909
79
0.599386
8178a6c51cb161e157f5927f7a5b68f9d5b2a937
17,455
py
Python
setup.py
lgeiger/numpy
be8ab91f789c3b688d707940016b4c2d262913e9
[ "BSD-3-Clause" ]
2
2022-02-02T05:40:47.000Z
2022-03-05T11:04:24.000Z
setup.py
lgeiger/numpy
be8ab91f789c3b688d707940016b4c2d262913e9
[ "BSD-3-Clause" ]
null
null
null
setup.py
lgeiger/numpy
be8ab91f789c3b688d707940016b4c2d262913e9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 """ NumPy is the fundamental package for array computing with Python. It provides: - a powerful N-dimensional array object - sophisticated (broadcasting) functions - tools for integrating C/C++ and Fortran code - useful linear algebra, Fourier transform, and random number capabilities - and muc...
35.262626
84
0.607219
197e5834c1b90efd2a731164049ed7b6e004308f
1,100
py
Python
sdk/python/pulumi_azure_native/changeanalysis/v20200401preview/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/changeanalysis/v20200401preview/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/changeanalysis/v20200401preview/__init__.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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! *** # Export this package's modules as members: from ._enums import * from .configuration_profile import * from .get_configuration_profile import * from ._...
32.352941
112
0.699091
588bfbcf07123baee25f674a38b6b2ae369b9347
1,322
py
Python
app/core/tests/test_admin.py
alexander2g3/my-recipe-app
4587378a65422ed961dc43f20460c2cca2c3ebdc
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
alexander2g3/my-recipe-app
4587378a65422ed961dc43f20460c2cca2c3ebdc
[ "MIT" ]
null
null
null
app/core/tests/test_admin.py
alexander2g3/my-recipe-app
4587378a65422ed961dc43f20460c2cca2c3ebdc
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from django.contrib.auth import get_user_model from django.urls import reverse class AdminSiteTests(TestCase): def setUp(self): self.client = Client() self.admin_user = get_user_model().objects.create_superuser( email='admin@eyosolutions.com', ...
31.47619
68
0.640696
f52e44bbab4e437da0daa0ac7ec2d8f9a4044979
2,759
py
Python
Leetcode_Interview100/palindromic_substrings.py
kittenman29/Algo-Problems
b156e6de13467e26b97c5ac95d6b92eda5114399
[ "MIT" ]
null
null
null
Leetcode_Interview100/palindromic_substrings.py
kittenman29/Algo-Problems
b156e6de13467e26b97c5ac95d6b92eda5114399
[ "MIT" ]
null
null
null
Leetcode_Interview100/palindromic_substrings.py
kittenman29/Algo-Problems
b156e6de13467e26b97c5ac95d6b92eda5114399
[ "MIT" ]
null
null
null
# Given a string, your task is to count how many palindromic substrings in this string. # The substrings with different start indexes or end indexes are counted as different substrings even they consist of same characters. # Example 1: # Input: "abc" # Output: 3 # Explanation: Three palindromic strings: "a", "b", "c...
29.666667
134
0.481696
e536aa2eee3757cb24c2ef37ceda1ea67ae64f28
40
py
Python
utils/plot.py
magicly/sample-factory
32cd44a907653fdad40c026ba0a4fa4cca68554b
[ "MIT" ]
320
2020-01-24T17:57:32.000Z
2022-03-30T08:15:10.000Z
utils/plot.py
magicly/sample-factory
32cd44a907653fdad40c026ba0a4fa4cca68554b
[ "MIT" ]
69
2020-02-29T19:14:30.000Z
2022-03-28T17:45:44.000Z
utils/plot.py
magicly/sample-factory
32cd44a907653fdad40c026ba0a4fa4cca68554b
[ "MIT" ]
53
2020-04-22T01:46:54.000Z
2022-03-26T03:01:51.000Z
MAP_FIGURE_ID = 2 HEATMAP_FIGURE_ID = 3
13.333333
21
0.8
aef420c14980b186a0be4a3479e7bc11bc915aaa
832
py
Python
main.py
eye-sigil/embedshell
cafe08a2da4fdb48e6836822830fd3bb6a548dbb
[ "MIT" ]
2
2017-06-14T14:21:54.000Z
2017-06-19T12:25:01.000Z
main.py
eye-sigil/embedshell
cafe08a2da4fdb48e6836822830fd3bb6a548dbb
[ "MIT" ]
null
null
null
main.py
eye-sigil/embedshell
cafe08a2da4fdb48e6836822830fd3bb6a548dbb
[ "MIT" ]
null
null
null
print("Starting up...\n") import discord from discord.ext import commands print("imports finalized.\n") bot = commands.Bot(command_prefix='embed!', description='Wrapped up EmbedShell', self_bot=True) print("bot created.\n") startup_extensions=['embedshell'] print("globals cre...
24.470588
75
0.605769
625a6f01d8eae8b395d4f1937d857e5422d315d2
38,769
py
Python
Lib/test/test_typing.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
1
2018-06-21T18:21:24.000Z
2018-06-21T18:21:24.000Z
Lib/test/test_typing.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
Lib/test/test_typing.py
sireliah/polish-python
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
[ "PSF-2.0" ]
null
null
null
z collections zaimportuj namedtuple zaimportuj re zaimportuj sys z unittest zaimportuj TestCase, main spróbuj: z unittest zaimportuj mock wyjąwszy ImportError: zaimportuj mock # 3rd party install, dla PY3.2. z typing zaimportuj Any z typing zaimportuj TypeVar, AnyStr z typing zaimportuj T, KT, VT # Not w __a...
30.817965
82
0.589466
29574780d3124b663dbb296d133c33fc9d944b0a
2,716
py
Python
azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/azure_firewall_application_rule_collection.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/azure_firewall_application_rule_collection.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2018_06_01/models/azure_firewall_application_rule_collection.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2018-08-28T14:36:47.000Z
2018-08-28T14:36:47.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
41.784615
87
0.638071
3e1470d6d025c1949334fde27ac7673b771f5d3d
1,191
py
Python
Linux jdt keyboard/add_rule.py
dyelsey/Juhuri-Keyboard
c264a12151d62332584f7235ee174a914e36f382
[ "MIT" ]
null
null
null
Linux jdt keyboard/add_rule.py
dyelsey/Juhuri-Keyboard
c264a12151d62332584f7235ee174a914e36f382
[ "MIT" ]
null
null
null
Linux jdt keyboard/add_rule.py
dyelsey/Juhuri-Keyboard
c264a12151d62332584f7235ee174a914e36f382
[ "MIT" ]
null
null
null
#David Yelsey #Adds keyboard in evdev.xml right before </layoutList> l = [] for i in range(16): l.append('') l[0] = " <layout>\n" l[1] = " <configItem>\n" l[2] = " <name>jdt-cyr</name>\n" l[3] = " <shortDescription>jdt-cyr</shortDescription>\n" l[4] = " <description>Judeo-Tat (Cyrillic)<...
32.189189
109
0.575147
9c25ba40907e589f0b9d2f143b9b0c935606d5a0
12,729
py
Python
fsed/tests/test_ahocorasick.py
pombredanne/fsed
78f9e5c252a7ac66a7f26f05d37157a491026b7b
[ "MIT" ]
null
null
null
fsed/tests/test_ahocorasick.py
pombredanne/fsed
78f9e5c252a7ac66a7f26f05d37157a491026b7b
[ "MIT" ]
null
null
null
fsed/tests/test_ahocorasick.py
pombredanne/fsed
78f9e5c252a7ac66a7f26f05d37157a491026b7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' test_ahocorasick.py (c) Will Roberts 12 December, 2015 Unit tests for the ``ahocorasick`` module. ''' from __future__ import absolute_import, print_function, unicode_literals from .. import ahocorasick import unittest class TestAhocorasick(unittest.TestCase): '...
37.548673
98
0.490533
af7ba3bf41dd3d8299f259433d806c68d5fa2665
20,695
py
Python
pysnmp/OMNI-gx2litePS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/OMNI-gx2litePS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/OMNI-gx2litePS-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module OMNI-gx2litePS-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/OMNI-gx2litePS-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:24:42 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, ...
172.458333
2,370
0.76144
48be970e3d5d1480734f74a7220dccce689d7dd4
585
py
Python
entrymanagementsoftware/app1/migrations/0002_auto_20191126_2311.py
mishraatul549/EntryManagement
b9431761138997fc1679d622d1f405b832180140
[ "MIT" ]
null
null
null
entrymanagementsoftware/app1/migrations/0002_auto_20191126_2311.py
mishraatul549/EntryManagement
b9431761138997fc1679d622d1f405b832180140
[ "MIT" ]
null
null
null
entrymanagementsoftware/app1/migrations/0002_auto_20191126_2311.py
mishraatul549/EntryManagement
b9431761138997fc1679d622d1f405b832180140
[ "MIT" ]
null
null
null
# Generated by Django 2.1.7 on 2019-11-26 17:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app1', '0001_initial'), ] operations = [ migrations.AlterField( model_name='meeting', name='checkInTime', ...
23.4
61
0.576068
ee18ce3794378ba30d89538e29fc2a06692dce48
1,158
py
Python
systems/thermal.py
ymiftah/energysys
99d4be8385f5f500339547386b630b5e7861b400
[ "MIT" ]
null
null
null
systems/thermal.py
ymiftah/energysys
99d4be8385f5f500339547386b630b5e7861b400
[ "MIT" ]
null
null
null
systems/thermal.py
ymiftah/energysys
99d4be8385f5f500339547386b630b5e7861b400
[ "MIT" ]
null
null
null
from .core import Unit import numpy as np class ThermalUnit(Unit): def __init__(self, name, input_output, fuel_cost, min_power=-np.inf, max_power=np.inf, start_up_cost=0, ramp_up=None, ramp_down=None, min_uptime = None, min_rest=None): super().__i...
34.058824
80
0.6019
3729e54ed0ae80f486287954312ed4d3f0acd122
665
py
Python
network/multigpu/utils.py
zhusiling/AAF-TF
8488aa6ad16022ab4b89fb8626386997559cb951
[ "MIT" ]
261
2018-08-14T23:06:58.000Z
2022-03-06T08:44:52.000Z
network/multigpu/utils.py
zhusiling/AAF-TF
8488aa6ad16022ab4b89fb8626386997559cb951
[ "MIT" ]
15
2018-08-27T11:59:33.000Z
2021-11-01T19:15:41.000Z
network/multigpu/utils.py
zhusiling/AAF-TF
8488aa6ad16022ab4b89fb8626386997559cb951
[ "MIT" ]
63
2018-08-23T01:32:20.000Z
2021-05-10T06:20:27.000Z
import tensorflow as tf def on_each_gpu(func): """A Decorator which perform func independently on each gpu. This function will call func on each gpu, which is useful for multi-gpu computations. The decorator takes a list of tensor as inputs. See examples in network/multigpu/layers.py. Args: func: A t...
25.576923
72
0.679699
3504280e5be76de87a9bed3dbd5cd9ec69ad07af
1,466
py
Python
superset/migrations/versions/bf706ae5eb46_cal_heatmap_metric_to_metrics.py
sssswangzi/superset
3ff53b20bbe8ecc80d7dd3bf91d5d7af7c6c43cb
[ "Apache-2.0" ]
18
2018-11-21T16:38:55.000Z
2020-11-26T07:38:24.000Z
superset/migrations/versions/bf706ae5eb46_cal_heatmap_metric_to_metrics.py
7nRyan/incubator-superset
5616d7bdd72cb6d41caaf8733823d5d7dbe26abb
[ "Apache-2.0" ]
16
2019-12-30T04:58:10.000Z
2022-03-08T23:41:14.000Z
superset/migrations/versions/bf706ae5eb46_cal_heatmap_metric_to_metrics.py
7nRyan/incubator-superset
5616d7bdd72cb6d41caaf8733823d5d7dbe26abb
[ "Apache-2.0" ]
16
2018-09-25T08:16:52.000Z
2020-11-11T05:12:17.000Z
"""cal_heatmap_metric_to_metrics Revision ID: bf706ae5eb46 Revises: f231d82b9b26 Create Date: 2018-04-10 11:19:47.621878 """ from alembic import op import json from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, Integer, String, Text from superset import db from superset.legacy im...
25.719298
78
0.662347
21d7cc6a078108fdd87079180daf8f9121b48734
1,000
py
Python
docs/examples/tools/render.py
SamWarden/aiogram_dialog
76dea8c71f9b75dd0df74b9c1e0913e3d7a9e2dc
[ "Apache-2.0" ]
null
null
null
docs/examples/tools/render.py
SamWarden/aiogram_dialog
76dea8c71f9b75dd0df74b9c1e0913e3d7a9e2dc
[ "Apache-2.0" ]
null
null
null
docs/examples/tools/render.py
SamWarden/aiogram_dialog
76dea8c71f9b75dd0df74b9c1e0913e3d7a9e2dc
[ "Apache-2.0" ]
1
2022-02-07T00:09:12.000Z
2022-02-07T00:09:12.000Z
from aiogram.dispatcher.filters.state import StatesGroup, State from aiogram.types import Message from aiogram_dialog import Dialog, Window, DialogManager from aiogram_dialog.tools import render_transitions from aiogram_dialog.widgets.input import MessageInput from aiogram_dialog.widgets.kbd import Next, Back from aio...
23.255814
71
0.679
72b9880c5d988a3e79d110e0e810642130e17725
14,963
py
Python
cpselect/cpselect.py
adal02/phg_cpselect
bec400370d15bb06474632aac8d033210dfd3fe1
[ "MIT" ]
3
2021-03-18T11:55:05.000Z
2022-03-31T09:26:17.000Z
cpselect/cpselect.py
adal02/phg_cpselect
bec400370d15bb06474632aac8d033210dfd3fe1
[ "MIT" ]
1
2021-08-08T02:13:05.000Z
2021-11-14T21:38:20.000Z
cpselect/cpselect.py
adal02/phg_cpselect
bec400370d15bb06474632aac8d033210dfd3fe1
[ "MIT" ]
2
2019-05-13T06:40:12.000Z
2020-04-27T12:10:56.000Z
import sys, os from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from matplotlib import pyplot as plt from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar from matplotli...
37.595477
1,459
0.602352
7e92ce25221a59b84bb1c4d04286d6a98fbb2c1b
6,818
py
Python
behavenet/fitting/hyperparam_utils.py
nihaarshah/behavenet
35bf5360e136075ca5ec30b3f98a2112a53e992c
[ "MIT" ]
null
null
null
behavenet/fitting/hyperparam_utils.py
nihaarshah/behavenet
35bf5360e136075ca5ec30b3f98a2112a53e992c
[ "MIT" ]
null
null
null
behavenet/fitting/hyperparam_utils.py
nihaarshah/behavenet
35bf5360e136075ca5ec30b3f98a2112a53e992c
[ "MIT" ]
null
null
null
import commentjson import datetime import sys import os from subprocess import call from test_tube import HyperOptArgumentParser from test_tube.hpc import SlurmCluster, AbstractCluster from behavenet import get_user_dir from behavenet.models.ae_model_architecture_generator import load_handcrafted_arches def get_all_p...
40.826347
98
0.643884
163418427222e63f3e012df78735c018fb0e9785
570
py
Python
src/Calculating_PC/build/controller_calc/catkin_generated/pkg.develspace.context.pc.py
anducnguyen/behavior_cloning_pwarx
a1f07dd8ff77ec289bd15a878a949b4c05df0eab
[ "Apache-2.0" ]
null
null
null
src/Calculating_PC/build/controller_calc/catkin_generated/pkg.develspace.context.pc.py
anducnguyen/behavior_cloning_pwarx
a1f07dd8ff77ec289bd15a878a949b4c05df0eab
[ "Apache-2.0" ]
1
2021-07-27T06:40:20.000Z
2021-07-27T06:40:20.000Z
src/Calculating_PC/build/controller_calc/catkin_generated/pkg.develspace.context.pc.py
anducnguyen/behavior_cloning_pwarx
a1f07dd8ff77ec289bd15a878a949b4c05df0eab
[ "Apache-2.0" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/arun/Desktop/an_ws/test_cacc/src/Calculating_PC/src/controller_calc/include".split(';') if "/home/arun/Desktop/an_ws/test_cacc/src/Calculating_PC/src/controller_calc/include" != "" else [] PROJEC...
63.333333
229
0.764912
d528a00ccfd025509ef2404f9c5988087f1753e5
2,386
py
Python
SNACC_Mapper/trend_node.py
emariwileslee/SNACC
02bd1826eb77b6a397446d7db503d449dc2102a7
[ "MIT" ]
null
null
null
SNACC_Mapper/trend_node.py
emariwileslee/SNACC
02bd1826eb77b6a397446d7db503d449dc2102a7
[ "MIT" ]
null
null
null
SNACC_Mapper/trend_node.py
emariwileslee/SNACC
02bd1826eb77b6a397446d7db503d449dc2102a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Apr 7 09:58:55 2021 @author: emari """ import numpy as np import pandas as pd class node(): def __init__(self): self.parent_node = "" self.child_connections = [np.array([],dtype=object),np.array([],dtype=object),np.array([],dtype=object),np.array([],dty...
36.707692
190
0.647946
2272c96038f4ab285f4e8eef7613ae92dc493707
362
py
Python
maskrcnn_benchmark/modeling/detector/detectors.py
FanShuixing/maskrcnn-benchmark
97072a1d3ceda8eacaf922b87eedea11d351ad83
[ "MIT" ]
null
null
null
maskrcnn_benchmark/modeling/detector/detectors.py
FanShuixing/maskrcnn-benchmark
97072a1d3ceda8eacaf922b87eedea11d351ad83
[ "MIT" ]
null
null
null
maskrcnn_benchmark/modeling/detector/detectors.py
FanShuixing/maskrcnn-benchmark
97072a1d3ceda8eacaf922b87eedea11d351ad83
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. from .generalized_rcnn import GeneralizedRCNN # _DETECTION_META_ARCHITECTURES = {"GeneralizedRCNN": GeneralizedRCNN} def build_detection_model(cfg): # meta_arch = _DETECTION_META_ARCHITECTURES[cfg.MODEL.META_ARCHITECTURE] # return meta_...
30.166667
76
0.790055
890ecc7520fefef5e66a9edced29e28515862210
431
py
Python
incidents/migrations/0023_alert_link.py
SINTEF-Infosec/Incident-Information-Sharing-Tool
9845ab75839ac49429e936ecc42a8d816a5b4040
[ "Apache-2.0" ]
null
null
null
incidents/migrations/0023_alert_link.py
SINTEF-Infosec/Incident-Information-Sharing-Tool
9845ab75839ac49429e936ecc42a8d816a5b4040
[ "Apache-2.0" ]
null
null
null
incidents/migrations/0023_alert_link.py
SINTEF-Infosec/Incident-Information-Sharing-Tool
9845ab75839ac49429e936ecc42a8d816a5b4040
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('incidents', '0022_auto_20150421_0847'), ] operations = [ migrations.AddField( model_name='alert', na...
20.52381
49
0.591647
a4794d1f2f1e4fbcb7df52571cf8454864c8c015
588
py
Python
aprendi com guanabara/Ex 091.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 091.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
aprendi com guanabara/Ex 091.py
GustinSilva/python
fa1d4213771a2edc8dec8c08d0d19ada44e5e2f2
[ "MIT" ]
null
null
null
""" Crie um programa que onde 4 jogadores joguem um dado e tenham resultados aleatorios guarde os resultados em um dicionario. no final coloque o dicionario em ordem, sabendo que o vencedos tirou o maior numero do dado """ from random import randint sorteado = {} a = 1 for c in range(0, 4): dado = randint(1, 6) ...
32.666667
91
0.695578
5681eb33d8fbfcf29bcd0ad1ce725fc1ad87f2d0
8,957
py
Python
keras/utils/multi_gpu_utils.py
Halo9Pan/dive-keras
7d4c5572fa3a9fc2542a1314d06c555f67575cb0
[ "Apache-2.0" ]
37,222
2017-12-13T00:52:55.000Z
2022-03-31T22:34:35.000Z
keras/utils/multi_gpu_utils.py
amirsadafi/keras
f1e9c76675981ee6683f54a3ce569212d551d12d
[ "Apache-2.0" ]
7,624
2017-12-13T01:03:40.000Z
2022-03-31T23:57:24.000Z
keras/utils/multi_gpu_utils.py
amirsadafi/keras
f1e9c76675981ee6683f54a3ce569212d551d12d
[ "Apache-2.0" ]
14,914
2017-12-13T02:30:46.000Z
2022-03-30T14:49:16.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
34.988281
80
0.637379
a6525093991de4601bf895a119eabb7d0066046f
1,080
py
Python
studies/awkward-forth-performance/forth-read-jagged1-root.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
519
2019-10-17T12:36:22.000Z
2022-03-26T23:28:19.000Z
studies/awkward-forth-performance/forth-read-jagged1-root.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
924
2019-11-03T21:05:01.000Z
2022-03-31T22:44:30.000Z
studies/awkward-forth-performance/forth-read-jagged1-root.py
BioGeek/awkward-1.0
0cfb4e43c41d5c7d9830cc7b1d750485c0a93eb2
[ "BSD-3-Clause" ]
56
2019-12-17T15:49:22.000Z
2022-03-09T20:34:06.000Z
import time import uproot import awkward.forth import awkward as ak import numpy as np jagged1 = awkward.forth.ForthMachine32(""" input data input byte_offsets output offsets0 int32 output content float32 0 offsets0 <- stack begin byte_offsets i-> stack 6 + data seek data !i-> stack dup offsets0 +<- stack ...
22.978723
114
0.699074
830be6c80f9a4d06f0077b25ff9c933a6c76f230
1,672
py
Python
capitulo3_listas/listasDentroDeLista.py
julioccg/exercicios-python-fiap
73a9f5342b0df198f6ecbe1a2a8af35fe4a45e3a
[ "MIT" ]
null
null
null
capitulo3_listas/listasDentroDeLista.py
julioccg/exercicios-python-fiap
73a9f5342b0df198f6ecbe1a2a8af35fe4a45e3a
[ "MIT" ]
null
null
null
capitulo3_listas/listasDentroDeLista.py
julioccg/exercicios-python-fiap
73a9f5342b0df198f6ecbe1a2a8af35fe4a45e3a
[ "MIT" ]
null
null
null
inventario = [] resposta = 'S' while resposta == 'S': equipamento = [input("Equipamento: "), float(input('Valor: ')), int(input('Numero Serial: ')), input('Departamento: ')] inventario.append(equipamento) resposta = input('Digite \'S\' para continuar: ').upper() for elemento in inventario: ...
34.833333
76
0.604067