hexsha
stringlengths
40
40
size
int64
2
1.05M
ext
stringclasses
9 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
193
max_stars_repo_name
stringlengths
6
109
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
36.6k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
193
max_issues_repo_name
stringlengths
6
109
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
29.8k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
193
max_forks_repo_name
stringlengths
6
109
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
11.2k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
1.05M
avg_line_length
float64
1
404k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
fff1f8a61cc25ef4bb35bd928cebce3747740875
3,490
py
Python
modules/emulator/pytari2600/memory/riot.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
17
2016-02-23T22:44:09.000Z
2022-03-16T02:39:15.000Z
modules/emulator/pytari2600/memory/riot.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
null
null
null
modules/emulator/pytari2600/memory/riot.py
5space/nesbot
38a9e8cadf0cbe41ee25e0850c244e2834a6e12c
[ "MIT" ]
4
2018-02-24T19:52:30.000Z
2020-11-30T00:38:21.000Z
class Riot(object): CYCLES_TO_CLOCK = 3 RAMSIZE = 128 NOT_RAMSELECT = 0x200 RIOT_ADDRMASK = 0x7F RIOT_Swcha = 0x00 RIOT_Swchb = 0x02 TIMERADDR = 0x04 RIOT_Interrupt = 0x05 INT_ENABLE_MASK = 0x8 RIOT_Tim1t = 0x14 RIOT_Tim8t = 0x15 ...
34.215686
146
0.555874
fff200efab0d584d4c4580c713f8c30a64287ff3
3,739
py
Python
pyhifiberry/audiocontrol2.py
schnabel/pyhifiberry
95db6332bbff87ec5b06e13c5f564131d9118281
[ "MIT" ]
null
null
null
pyhifiberry/audiocontrol2.py
schnabel/pyhifiberry
95db6332bbff87ec5b06e13c5f564131d9118281
[ "MIT" ]
null
null
null
pyhifiberry/audiocontrol2.py
schnabel/pyhifiberry
95db6332bbff87ec5b06e13c5f564131d9118281
[ "MIT" ]
null
null
null
"""API to Hifiberry OS - audiocontrol2""" import json import asyncio import logging import aiohttp from .consts import ( DEFAULT_HOST, DEFAULT_PORT, API_PLAYER, API_PLAYER_GET_COMMANDS, API_PLAYER_POST_COMMANDS, API_PLAYER_ACTIVE, API_TRACK, API_TRACK_GET, API_TRACK_POST, API_VO...
33.088496
105
0.634662
fff20308b3df81f00e46585517bb86d7a00842e5
8,558
py
Python
data/level/level1034.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
null
null
null
data/level/level1034.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
6
2020-07-04T02:53:08.000Z
2022-03-11T23:53:14.000Z
data/level/level1034.py
levelupai/match3-level-similarity
cc9b28b8741b41bea1273c8bc9b4d265d79a1dca
[ "Apache-2.0" ]
3
2019-12-31T11:42:59.000Z
2021-03-28T20:06:13.000Z
data = { 'level_index': 1034, 'move_count': 23, 'board_info': { (0, 1): { 'base': (2, 1), 'prev': (0, -1), 'next': (0, 1), 'fall_point': (0, -1) }, (0, 2): { 'base': (4, 1), 'prev': (0, -1), 'next': (...
23.255435
33
0.199346
fff2057c82ed48d38058c029eb35a3ca376e5589
7,005
py
Python
tests/test.py
evgeni-nikolaev/DL-DB
32e75ed9235aaf5a6183d7f20cfd2dbd59ccbe18
[ "BSD-3-Clause" ]
1
2021-04-22T00:48:45.000Z
2021-04-22T00:48:45.000Z
tests/test.py
evgeni-nikolaev/DL-DB
32e75ed9235aaf5a6183d7f20cfd2dbd59ccbe18
[ "BSD-3-Clause" ]
null
null
null
tests/test.py
evgeni-nikolaev/DL-DB
32e75ed9235aaf5a6183d7f20cfd2dbd59ccbe18
[ "BSD-3-Clause" ]
null
null
null
from featuretools.tests.testing_utils import make_ecommerce_entityset from sklearn.model_selection import train_test_split from sklearn.metrics import roc_auc_score, f1_score, mean_absolute_error from sklearn.ensemble import RandomForestClassifier from sklearn.svm import SVC from sklearn.linear_model import LogisticReg...
39.801136
112
0.650393
fff21eb517a0f277f91ec349a8f5728f5bfdddc1
346
py
Python
commands/submittrivia.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
2
2015-05-20T00:42:03.000Z
2015-05-23T04:18:42.000Z
commands/submittrivia.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
null
null
null
commands/submittrivia.py
Dabomstew/goldenrod
36c4f9e5321788779840371b09a78cc6b26b38b1
[ "MIT" ]
null
null
null
# coding=utf-8 import random import time import goldenrod, config def execute(parser, bot, user, args): bot.sendInfoMessage("submittrivia", user, "If you want to submit new trivia questions go here - http://goo.gl/forms/QZnP8ZDrLr") def requiredPerm(): return "anyone" def canUseByWhisp...
23.066667
133
0.676301
fff2338b50d9b22a51c2139dae6b1e7f081bb562
4,864
py
Python
emotions_RS.py
AlexReyesR/EmotionAndGazeDetection
10c638fcc07c8c8edb801052305802332fd0b1e8
[ "MIT" ]
null
null
null
emotions_RS.py
AlexReyesR/EmotionAndGazeDetection
10c638fcc07c8c8edb801052305802332fd0b1e8
[ "MIT" ]
null
null
null
emotions_RS.py
AlexReyesR/EmotionAndGazeDetection
10c638fcc07c8c8edb801052305802332fd0b1e8
[ "MIT" ]
1
2019-12-06T06:17:07.000Z
2019-12-06T06:17:07.000Z
import cv2 import numpy as np import dlib from imutils import face_utils import face_recognition from keras.models import load_model from statistics import mode from utils.datasets import get_labels from utils.inference import detect_faces from utils.inference import draw_text from utils.inference import draw_bounding_...
32
127
0.694696
fff31d5637cd6935db8c80bf5169f16550f5b686
876
py
Python
data_structure/208_trie.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
data_structure/208_trie.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
data_structure/208_trie.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
class TrieNode: # Initialize your data structure here. def __init__(self): self.children = collections.defaultdict(TrieNode) self.is_word = False class Trie: def __init__(self): self.root = TrieNode() def insert(self, word): current = self.root for letter in wo...
27.375
57
0.589041
fff33b730a85aad6c77e2e11ee7c1e7c5e0253c1
2,851
py
Python
crankycoin/repository/peers.py
Rajatkalsotra/crankycoin
41c7ac6226842fb867b5eaa554c3604e998507c2
[ "MIT" ]
162
2017-07-11T11:27:10.000Z
2022-03-17T14:24:12.000Z
crankycoin/repository/peers.py
Rajatkalsotra/crankycoin
41c7ac6226842fb867b5eaa554c3604e998507c2
[ "MIT" ]
14
2017-09-05T08:38:55.000Z
2021-06-05T13:44:10.000Z
crankycoin/repository/peers.py
Rajatkalsotra/crankycoin
41c7ac6226842fb867b5eaa554c3604e998507c2
[ "MIT" ]
63
2017-07-16T13:35:14.000Z
2022-01-09T21:49:38.000Z
import os import sqlite3 from crankycoin import config class Peers(object): PEER_DB = config['user']['peer_db'] MAX_PEERS = config['user']['max_peers'] DOWNTIME_THRESHOLD = config['network']['downtime_threshold'] def __init__(self): self.db_init() # TODO: do a health check of each p...
32.770115
94
0.582252
fff35a64a2df5e5bcbc269621ba5bd0f2b07fc45
4,878
py
Python
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/rollout_utils.py
larsll/deepracer-simapp
9251c32ff33d49955b63ccca4f38d01a0c721d4f
[ "MIT" ]
3
2021-07-25T15:10:35.000Z
2021-10-30T02:35:33.000Z
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/rollout_utils.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
null
null
null
bundle/sagemaker_rl_agent/lib/python3.6/site-packages/markov/rollout_utils.py
Bandwidth/deepracer-simapp
9bf0a5f9c55e37ecef8e72b1b6dc15ecb0370bc1
[ "MIT" ]
3
2021-07-25T15:16:06.000Z
2022-03-28T14:13:22.000Z
'''This module should contain common utility methods for the rollout woeker that depend on ros, it should not be used in modules imported to the training worker ''' import logging import rospy from std_msgs.msg import String from std_srvs.srv import Empty, EmptyResponse from markov.agents.utils import RunPhaseSubjec...
46.018868
98
0.727757
fff36cbccc8f40169b3dbf5f9f3802a8245a7cb9
79,835
py
Python
gameanalysis/rsgame.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
gameanalysis/rsgame.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
gameanalysis/rsgame.py
calebho/gameanalysis
280726a8aa125850b827a1e10b1203e91f515461
[ "Apache-2.0" ]
null
null
null
"""Module for base role symmetric game structures Role symmetric games have a number of common attributes and functions that are defined in the RsGame class that actual RsGame interfaces should support. In addition, an implementation of an EmptyGame is provided for convenience purposes. Note, that the constructor to E...
37.962435
126
0.600902
fff379d9ad84fec92b60cafd78eba9e7106e9913
1,246
py
Python
setup.py
feghalya/covap-backend
8bce89c91fb02129f18af3e4bda2a63685b302fb
[ "Apache-2.0" ]
null
null
null
setup.py
feghalya/covap-backend
8bce89c91fb02129f18af3e4bda2a63685b302fb
[ "Apache-2.0" ]
null
null
null
setup.py
feghalya/covap-backend
8bce89c91fb02129f18af3e4bda2a63685b302fb
[ "Apache-2.0" ]
null
null
null
import os from setuptools import setup, find_packages here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.txt')) as f: README = f.read() with open(os.path.join(here, 'CHANGES.txt')) as f: CHANGES = f.read() requires = [ 'plaster_pastedeploy', 'pyramid', 'pyramid...
21.859649
63
0.589888
fff389aa1dc0e84380fb6cb30aae39e8112a47b3
9,239
py
Python
dipy/align/tests/test_metrics.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
dipy/align/tests/test_metrics.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
dipy/align/tests/test_metrics.py
martcous/dipy
6bff5655f03db19bde5aa951ffb91987983a889b
[ "MIT" ]
2
2018-07-24T21:20:54.000Z
2018-08-27T04:08:24.000Z
import numpy as np from scipy import ndimage from dipy.align import floating from dipy.align.metrics import SSDMetric, CCMetric, EMMetric from numpy.testing import (assert_array_equal, assert_array_almost_equal, assert_raises) def test_exceptions(): for invali...
38.3361
77
0.65007
fff38a53471d2b151be03abf356674cdcb8f5297
1,062
py
Python
uncorrelate/statistical_inefficiency_dhdl_all.py
danijoo/flamel
b050e3ef0b70acfa21f4d9d706400349ffca3225
[ "BSD-3-Clause" ]
6
2018-11-25T16:51:44.000Z
2021-08-16T11:44:39.000Z
uncorrelate/statistical_inefficiency_dhdl_all.py
danijoo/flamel
b050e3ef0b70acfa21f4d9d706400349ffca3225
[ "BSD-3-Clause" ]
8
2021-04-05T10:47:30.000Z
2021-09-23T16:17:26.000Z
uncorrelate/statistical_inefficiency_dhdl_all.py
danijoo/flamel
b050e3ef0b70acfa21f4d9d706400349ffca3225
[ "BSD-3-Clause" ]
2
2020-11-06T09:44:35.000Z
2021-07-31T06:14:35.000Z
import alchemlyb.preprocessing import pandas import numpy as np # Todo: Use interface here class StatisticalInefficiencyDhdlAll: name = 'dhdl_all' needs_dhdls = True needs_u_nks = False dhdl = None def set_dhdls(self, dhdls): """ :param dhdls: Series List of dH/dl va...
23.086957
126
0.618644
fff40406522812127189aa1301ff14f3dc13deb7
401
py
Python
onadata/libs/models/base_model.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/libs/models/base_model.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/libs/models/base_model.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import from django.db import models class BaseModel(models.Model): class Meta: abstract = True def reload(self): new_self = self.__class__.objects.get(pk=self.pk) # Clear and update the old dic...
26.733333
82
0.698254
fff40a005083abc9911ac6c2e8c0a83f628fe858
236
py
Python
multi_processing/process_basic.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
multi_processing/process_basic.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
multi_processing/process_basic.py
SeanSyue/PythonReferences
103b2d6934a33e56a5d8fbb14d95282f572b3af7
[ "MIT" ]
null
null
null
"""https://docs.python.org/3.6/library/multiprocessing.html""" from multiprocessing import Process def f(name): print('hello', name) if __name__ == '__main__': p = Process(target=f, args=('bob',)) p.start() p.join()
18.153846
62
0.639831
fff43010311eb2c828b738dcb020936b3f4c9010
232
py
Python
scripts/clear_devito_cache.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
11
2019-07-18T11:15:12.000Z
2021-09-14T02:20:52.000Z
scripts/clear_devito_cache.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
53
2020-11-30T07:50:14.000Z
2022-03-10T17:06:03.000Z
scripts/clear_devito_cache.py
BrunoMot/devito
b6e077857765b7b5fad812ec5774635ca4c6fbb7
[ "MIT" ]
3
2020-02-15T14:23:29.000Z
2021-02-04T01:51:02.000Z
from os import listdir, path from shutil import rmtree from tempfile import gettempdir tempdir = gettempdir() for i in listdir(tempdir): if i.startswith('devito-'): target = path.join(tempdir, i) rmtree(target)
23.2
38
0.702586
fff4d617316e938bddf4a45f4338044dddc60994
4,069
py
Python
venv/Lib/site-packages/pyrogram/methods/chats/set_administrator_title.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/methods/chats/set_administrator_title.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/methods/chats/set_administrator_title.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
34.777778
119
0.619808
fff4d9e70b954c258404aea83f4882f45b5f9060
16,968
py
Python
bitrix24_bridge/models.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
bitrix24_bridge/models.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
13
2020-02-12T00:58:41.000Z
2022-03-11T23:53:16.000Z
bitrix24_bridge/models.py
initflow/bitrix24-bridge-oscar
fd50985fa354a92d7163055c9e3adfd5c4f4d7a9
[ "BSD-3-Clause" ]
null
null
null
import re from decimal import Decimal from typing import Dict, Optional, Tuple, List from django.conf import settings from django.contrib.postgres.fields import HStoreField from django.db import models from django.utils.datetime_safe import datetime from django.utils.translation import gettext as _ from bitrix24_brid...
33.800797
120
0.598303
fff500051127f5d3abfbe768e77690a9c81d5710
3,210
py
Python
mapproxy/test/system/test_util_grids.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/test/system/test_util_grids.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
mapproxy/test/system/test_util_grids.py
kaiCu/mapproxy
9b28f9ca1286e686b8f2188dd52ce56b607427a7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# This file is part of the MapProxy project. # Copyright (C) 2010 Omniscale <http://omniscale.de> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
33.4375
80
0.674766
fff51834d02789a188b2e2270c02d8bfe5397005
45,627
py
Python
venv/lib/python2.7/site-packages/pymongo/cursor.py
deathping1994/gmail-sendmail-api
5f6cadf2a5a6a9d30581726647ca638661a040f5
[ "Apache-2.0" ]
null
null
null
venv/lib/python2.7/site-packages/pymongo/cursor.py
deathping1994/gmail-sendmail-api
5f6cadf2a5a6a9d30581726647ca638661a040f5
[ "Apache-2.0" ]
null
null
null
venv/lib/python2.7/site-packages/pymongo/cursor.py
deathping1994/gmail-sendmail-api
5f6cadf2a5a6a9d30581726647ca638661a040f5
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2015 MongoDB, 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 writin...
37.739454
80
0.59296
fff548c599287b275ad245dbe823095cfa8be42b
626
py
Python
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/middleware/correlation_id.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
1
2019-09-11T11:56:19.000Z
2019-09-11T11:56:19.000Z
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/middleware/correlation_id.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
tools/dockerize/webportal/usr/lib/python2.7/site-packages/oslo/middleware/correlation_id.py
foruy/openflow-multiopenstack
74140b041ac25ed83898ff3998e8dcbed35572bb
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # d...
44.714286
78
0.733227
fff572b32f4b7cf4f7a0f2a494264894916e097c
24,987
py
Python
halotools/mock_observables/pair_counters/test_pair_counters/test_positional_marked_npairs_3d.py
nehapjoshi/halotools
ad9e183ee7471f7876201ce83fdc36a76e653902
[ "BSD-3-Clause" ]
null
null
null
halotools/mock_observables/pair_counters/test_pair_counters/test_positional_marked_npairs_3d.py
nehapjoshi/halotools
ad9e183ee7471f7876201ce83fdc36a76e653902
[ "BSD-3-Clause" ]
null
null
null
halotools/mock_observables/pair_counters/test_pair_counters/test_positional_marked_npairs_3d.py
nehapjoshi/halotools
ad9e183ee7471f7876201ce83fdc36a76e653902
[ "BSD-3-Clause" ]
null
null
null
""" """ from __future__ import absolute_import, division, print_function, unicode_literals import numpy as np import pytest from .pure_python_positonal_marked_npairs import cos2theta_pairs from ..positional_marked_npairs_3d import positional_marked_npairs_3d from ..npairs_3d import npairs_3d from ...tests.cf_helpers...
29.640569
85
0.622644
fff5812207e2b0b125e179527c65c6669e35fdb8
229
py
Python
vnpy/amqp/test02_woker.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
323
2015-11-21T14:45:29.000Z
2022-03-16T08:54:37.000Z
vnpy/amqp/test02_woker.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
9
2017-03-21T08:26:21.000Z
2021-08-23T06:41:17.000Z
vnpy/amqp/test02_woker.py
howyu88/vnpy2
c8ae445823dc1f71abda1a79fae7d4be3dd92dd4
[ "MIT" ]
148
2016-09-26T03:25:39.000Z
2022-02-06T14:43:48.000Z
# encoding: UTF-8 from vnpy.amqp.consumer import worker if __name__ == '__main__': from time import sleep c = worker(host='192.168.0.202', user='admin', password='admin') c.start() while True: sleep(1)
19.083333
68
0.633188
fff5c72f20ce39970ccb72dbfe8bfa4cdd913859
2,003
py
Python
cli/update_tles.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
7
2019-03-29T06:05:08.000Z
2021-07-29T07:49:49.000Z
cli/update_tles.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
18
2019-02-19T05:59:34.000Z
2021-05-18T03:05:30.000Z
cli/update_tles.py
fleetspace/missioncontrol
d7116569b689875f5d149273150c3ce4c1319cd0
[ "Apache-2.0" ]
3
2019-01-31T02:07:38.000Z
2019-08-04T14:52:02.000Z
#!/usr/bin/env python import json import re from datetime import datetime, timedelta import logging import requests from mcapi import MCAPI, get_parser, handle_default_args def get_active(): """ Get current list of satellites from celestrak Cache it to disk so we're quicker and don't hit it too often (...
26.355263
85
0.615077
fff5e3705f15b2ea2e956f11b0e8eef12a49a40f
2,078
py
Python
test/test_schedule_resource_relationships_prediction.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
test/test_schedule_resource_relationships_prediction.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
test/test_schedule_resource_relationships_prediction.py
hypostulate/mbta-api-client
f18903b6269c523c733a31574ff4579349fed3f8
[ "MIT" ]
null
null
null
# coding: utf-8 """ MBTA MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api # noqa: E501 The version of the OpenAPI document: 3.0 Contact: developer@mbta.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest im...
35.220339
143
0.707892
fff618990e4307a8e49d37c91746871d58f3aa4b
4,828
py
Python
testing_ideas/try_doi_only_workflow/try_getting_paper_info_with_get_doi.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
null
null
null
testing_ideas/try_doi_only_workflow/try_getting_paper_info_with_get_doi.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
41
2021-01-01T14:01:30.000Z
2021-01-27T20:17:21.000Z
testing_ideas/try_doi_only_workflow/try_getting_paper_info_with_get_doi.py
hschilling/data-collection-and-prep
b70ab54fd887592bad05d5748f492fc2f9ef0f6f
[ "Unlicense" ]
5
2021-02-08T14:19:35.000Z
2021-10-19T12:10:55.000Z
# See if we can get paper info using just a two step process and only simple scraping: # 1. Use Jerry Qian's function to look for DOI links in a Web page # 2. If successful getting DOI, use the Semantic Search API to get the rest of the # paper info that we want # # Print out the results to see ho...
31.350649
145
0.608534
fff67d9708d6f92df489ff4c7f56f63542f34ba6
580
py
Python
oscar/lib/python2.7/site-packages/PIL/_util.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/PIL/_util.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/PIL/_util.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
import os if bytes is str: def isStringType(t): return isinstance(t, basestring) def isPath(f): return isinstance(f, basestring) else: def isStringType(t): return isinstance(t, str) def isPath(f): return isinstance(f, (bytes, str)) # Checks if an obje...
20.714286
70
0.606897
fff68761de8067bb0d0c02ddbb8865655b63316b
3,015
py
Python
code/metrics/metrics.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
14
2021-09-09T11:22:17.000Z
2022-03-14T10:06:36.000Z
code/metrics/metrics.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
1
2021-11-24T10:30:36.000Z
2021-11-24T10:30:36.000Z
code/metrics/metrics.py
96jhwei/Genetic-U-Net
25116f01afcf8ed4386cd0fc258da15e1c982cb5
[ "MIT" ]
5
2021-11-02T09:29:49.000Z
2022-03-25T09:44:25.000Z
import torch import numpy as np bce = torch.nn.BCEWithLogitsLoss(reduction='none') def _upscan(f): for i, fi in enumerate(f): if fi == np.inf: continue for j in range(1,i+1): x = fi+j*j if f[i-j] < x: break f[i-j] = x def dice_coefficient_numpy(binary_segmenta...
32.419355
129
0.66932
fff68986453cd095df09afe30693944e535122c2
5,746
py
Python
lighting.py
jasperholton/sonobe
1f18a0a4138d7646260d8879e5484ecf78774729
[ "MIT" ]
1
2020-01-29T11:13:25.000Z
2020-01-29T11:13:25.000Z
lighting.py
jasperholton/voxel
1f18a0a4138d7646260d8879e5484ecf78774729
[ "MIT" ]
null
null
null
lighting.py
jasperholton/voxel
1f18a0a4138d7646260d8879e5484ecf78774729
[ "MIT" ]
null
null
null
# encoding: utf-8 from OpenGL.GL import * from OpenGL.GLU import * import glfw import time CUBE_DEG_PER_S = 30.0 LIGHT_DEG_PER_S = 90.0 CUBE_SIZE = 9.0 flashLightPos = [ 0.0, 0.0, 0.0]; flashLightDir = [ 0.0, 0.0, -1.0 ]; flashLightColor = [ 0.2, 0.2, 0.2 ]; redLightColor = [ 0.5, 0.1, 0.2 ]; redLightPos = [ 10.0, ...
26.479263
79
0.632614
fff6b6e50ac4990938f7993d6e354c1231261659
2,219
py
Python
srfnef/functions/data_transform/pet_cylindrical.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/functions/data_transform/pet_cylindrical.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
srfnef/functions/data_transform/pet_cylindrical.py
twj2417/srf
63365cfd75199d70eea2273214a4fa580a9fdf2a
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: Minghao Guo @contact: mh.guo0111@gmail.com @software: nef @file: pet_cylindrical.py @date: 9/18/2019 @desc: ''' from srfnef.functions.geometry.pet_cylindrical_scanner import CylindricalCrystalPosToIndex, \ CylindricalIndexToCrystalPos from srfnef import PetCylindricalScanner, nef_clas...
35.790323
93
0.697612
fff6c10507afd4c1df22714a2d36b413bfe41d41
102
py
Python
lewis_emulators/Lksh218/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
2
2020-10-20T16:49:13.000Z
2021-02-19T10:41:44.000Z
lewis_emulators/Lksh218/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
9
2019-03-22T15:35:15.000Z
2021-07-28T11:05:43.000Z
lewis_emulators/Lksh218/interfaces/__init__.py
ISISComputingGroup/EPICS-DeviceEmulator
026c2a14a16bb204ea7527e3765daa182cafa814
[ "BSD-3-Clause" ]
1
2020-10-21T17:02:44.000Z
2020-10-21T17:02:44.000Z
from .stream_interface import Lakeshore218StreamInterface __all__ = ['Lakeshore218StreamInterface']
20.4
57
0.852941
fff7050a57fbd01fec440b208b85bbace4f2b3ed
2,710
py
Python
cvpr15_eval/plot_score_vs_loss.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2021-08-25T03:57:55.000Z
2021-08-25T03:57:55.000Z
cvpr15_eval/plot_score_vs_loss.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2019-04-01T13:39:09.000Z
2019-04-01T13:39:09.000Z
cvpr15_eval/plot_score_vs_loss.py
m-novikov/hytra
0dc28deaa2571fa8bea63ca178f0e53cc1cd7508
[ "MIT" ]
1
2018-11-15T13:17:26.000Z
2018-11-15T13:17:26.000Z
#!/usr/bin/env python import os.path import sys sys.path.append('.') sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../hytra/.') import numpy as np import matplotlib.pyplot as plt import argparse # need this for weighted loss loading! import structsvm def load_proposals(input_filenames): if inp...
37.638889
109
0.684133
fff7071ea1c70537711edd9e572839f6caa95f70
14,048
py
Python
scrapfly/api_response.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
3
2021-05-18T05:06:23.000Z
2021-12-19T02:57:33.000Z
scrapfly/api_response.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
5
2021-01-08T04:12:28.000Z
2021-07-14T07:53:54.000Z
scrapfly/api_response.py
scrapfly/python-scrapfly
ee3112971bc28b6a8e7039711f59da90de7025c2
[ "BSD-2-Clause" ]
1
2021-05-18T05:06:30.000Z
2021-05-18T05:06:30.000Z
import re import logging as logger import shutil from base64 import b64decode from contextlib import suppress from datetime import datetime from functools import partial try: from functools import cached_property except ImportError: from .polyfill.cached_property import cached_property from http.cookiejar im...
35.474747
164
0.553602
fff70ef8c0152594d48005979d23231917851dba
801
py
Python
fish/models/csv_document.py
ann26/kbims-fish
25facc0f27943c5fbb23a7de5df1aea231e555a8
[ "MIT" ]
null
null
null
fish/models/csv_document.py
ann26/kbims-fish
25facc0f27943c5fbb23a7de5df1aea231e555a8
[ "MIT" ]
1
2018-10-16T04:40:15.000Z
2018-10-16T04:40:15.000Z
fish/models/csv_document.py
ann26/kbims-fish
25facc0f27943c5fbb23a7de5df1aea231e555a8
[ "MIT" ]
3
2018-05-09T08:06:15.000Z
2018-09-17T07:56:32.000Z
# coding=utf-8 """Csv document model definition. """ import os from django.db import models from django.dispatch import receiver class CSVDocument(models.Model): """Csv document model """ csv_file = models.FileField(upload_to='csv/') # noinspection PyClassicStyleClass class Meta: """Met...
24.272727
59
0.684145
fff71a6fc42a9688f16836045868e3517af78318
3,089
py
Python
tests/data/test_sampler.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
tests/data/test_sampler.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
tests/data/test_sampler.py
TalhaUsuf/RetinaNet_W9_form
2a66bba1de96bebd679775b841d95ac7dcfcbbbe
[ "Apache-2.0" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import itertools import math import operator import unittest import torch from torch.utils import data from torch.utils.data.sampler import SequentialSampler from detectron.data.build import worker_init_reset_seed from detectron.data.common import DatasetFromList, ToI...
34.322222
96
0.682098
fff72da67e96221670ba8c691f7e08fe2ba6b6ec
2,220
py
Python
venv/Lib/site-packages/pyrogram/raw/functions/channels/leave_channel.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/functions/channels/leave_channel.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/functions/channels/leave_channel.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
30.833333
103
0.626577
fff7300f5d26315d1fdc50fbbc1383b52ae6112d
5,305
py
Python
asposewordscloud/models/requests/save_as_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
14
2018-07-15T17:01:52.000Z
2018-11-29T06:15:33.000Z
asposewordscloud/models/requests/save_as_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
1
2018-09-28T12:59:34.000Z
2019-10-08T08:42:59.000Z
asposewordscloud/models/requests/save_as_online_request.py
aspose-words-cloud/aspose-words-cloud-python
65c7b55fa4aac69b60d41e7f54aed231df285479
[ "MIT" ]
2
2020-12-21T07:59:17.000Z
2022-02-16T21:41:25.000Z
# coding: utf-8 # ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="save_as_online_request.py"> # Copyright (c) 2021 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy ...
45.34188
127
0.658435
fff739ea16262bbc0a537f47de5ed974b628b4dd
17,472
py
Python
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext/train4_2.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext/train4_2.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
wienerschnitzelgemeinschaft/src/Christof/models/GAPNet/13_ext/train4_2.py
guitarmind/HPA-competition-solutions
547d53aaca148fdb5f4585526ad7364dfa47967d
[ "MIT" ]
null
null
null
import os, sys #os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ["CUDA_VISIBLE_DEVICES"]="2" import numpy as np import pandas as pd import matplotlib.pyplot as plt import skimage.io from skimage.transform import resize from imgaug import augmenters as iaa from tqdm import tqdm import PIL from PIL import Image...
35.584521
123
0.658711
fff76da0867208ec1d69159a299fcf074a66ea76
3,210
py
Python
nicos_mlz/kws3/setups/resolution.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
12
2019-11-06T15:40:36.000Z
2022-01-01T16:23:00.000Z
nicos_mlz/kws3/setups/resolution.py
ess-dmsc/nicos
755d61d403ff7123f804c45fc80c7ff4d762993b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
91
2020-08-18T09:20:26.000Z
2022-02-01T11:07:14.000Z
nicos_mlz/kws3/setups/resolution.py
mlz-ictrl/nicos
a6de0bc194ba42e3dc04a033713b41b5499ba8e1
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
6
2020-01-11T10:52:30.000Z
2022-02-25T12:35:23.000Z
# -*- coding: utf-8 -*- description = 'Selector area slit setup' group = 'lowlevel' display_order = 22 excludes = ['virtual_resolution'] res_presets = configdata('config_resolution.RESOLUTION_PRESETS') tango_base = 'tango://phys.kws3.frm2:10000/kws3/' s7_motor = tango_base + 's7_motor/' devices = dict( resolut...
31.782178
71
0.588162
fff78d3bd35fa60fc54c74706b4f24ae1ac30489
9,477
py
Python
datawinners/accountmanagement/migrations/0026_auto__add_field_organization_language.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
1
2015-11-02T09:11:12.000Z
2015-11-02T09:11:12.000Z
datawinners/accountmanagement/migrations/0026_auto__add_field_organization_language.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
datawinners/accountmanagement/migrations/0026_auto__add_field_organization_language.py
ICT4H/dcs-web
fb0f53fad4401cfac1c1789ff28b9d5bda40c975
[ "Apache-2.0" ]
null
null
null
# 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 field 'Organization.language' db.add_column('accountmanagement_organization', 'language', self.gf...
70.2
182
0.573599
fff799627dc256ce4292ae7ee080d01d93d947d3
2,207
py
Python
books/python-machine-learning-book/code/ch01/perceptron_2.py
tuanvu216/machine-learning-ipython-notebooks
efc45b02420e5b6853b7f82ff37481ee971abde7
[ "MIT" ]
8
2017-02-21T06:56:30.000Z
2021-08-24T02:19:14.000Z
books/python-machine-learning-book/code/ch01/perceptron_2.py
tuanvu216/machine-learning-ipython-notebooks
efc45b02420e5b6853b7f82ff37481ee971abde7
[ "MIT" ]
null
null
null
books/python-machine-learning-book/code/ch01/perceptron_2.py
tuanvu216/machine-learning-ipython-notebooks
efc45b02420e5b6853b7f82ff37481ee971abde7
[ "MIT" ]
5
2017-06-19T18:41:03.000Z
2021-08-24T02:19:16.000Z
import numpy as np class Perceptron(object): """Perceptron classifier. Parameters ------------ eta : float Learning rate (between 0.0 and 1.0) n_iter : int Passes over the training dataset. shuffle : bool (default: True) Shuffles training data every epoch if True to pre...
29.426667
74
0.530585
fff799fe34566ad1045d30aa1ad08c16b171aa16
8,786
py
Python
factom_sdk/client/chains_client.py
FPriv/factom-harmony-connect-python-sdk
b853596e7ca15205e1b431f0d8af6ba423365fc7
[ "MIT" ]
7
2019-03-27T16:20:57.000Z
2019-04-15T18:20:41.000Z
factom_sdk/client/chains_client.py
FPriv/factom-harmony-connect-python-sdk
b853596e7ca15205e1b431f0d8af6ba423365fc7
[ "MIT" ]
11
2019-04-02T18:38:11.000Z
2020-01-02T19:14:44.000Z
factom_sdk/client/chains_client.py
FPriv/factom-harmony-connect-python-sdk
b853596e7ca15205e1b431f0d8af6ba423365fc7
[ "MIT" ]
3
2019-04-06T04:45:45.000Z
2019-08-03T12:26:17.000Z
import datetime import validators import factom_sdk.utils.consts from factom_sdk.client.entries_client import EntriesClient from factom_sdk.request_handler.request_handler import RequestHandler from factom_sdk.utils.common_util import CommonUtil from factom_sdk.utils.key_common import KeyCommon from factom_s...
46.242105
118
0.602436
fff7ae13a399faf60c9039606b2a77c8945b879d
3,249
py
Python
experiments/ashvin/exploration/pointmass/test_pointmass_new.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/exploration/pointmass/test_pointmass_new.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
experiments/ashvin/exploration/pointmass/test_pointmass_new.py
Asap7772/railrl_evalsawyer
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
[ "MIT" ]
null
null
null
import rlkit.misc.hyperparameter as hyp from rlkit.data_management.her_replay_buffer import RelabelingReplayBuffer from rlkit.envs.mujoco.sawyer_gripper_env import SawyerXYEnv from rlkit.envs.mujoco.sawyer_reach_env import SawyerReachXYEnv from multiworld.envs.pygame.point2d import Point2DWallEnv from rlkit.launchers...
30.942857
88
0.576485
fff7c50b9d735f26f2fa327791a361074a643d39
5,320
py
Python
python/default_app/reception.py
johnbayko/hicp
3b49442f7cbdf7d3b793ff011abd1f5d2c759a47
[ "MIT" ]
null
null
null
python/default_app/reception.py
johnbayko/hicp
3b49442f7cbdf7d3b793ff011abd1f5d2c759a47
[ "MIT" ]
null
null
null
python/default_app/reception.py
johnbayko/hicp
3b49442f7cbdf7d3b793ff011abd1f5d2c759a47
[ "MIT" ]
null
null
null
from hicp import HICP, newLogger, EventType, Message, Panel, Window, Label, Button, TextField, Selection, SelectionItem from hicp import App, AppInfo from apps.test.test import TestApp from apps.testml.testml import TestAppML class ButtonSwitchAppHandler: def __init__(self, app_name=None): self.logger = ne...
35
119
0.655451
fff7d6e4693f553c490d6721c0667fb369ee502d
576
py
Python
build/__init__.py
DevinCarr/artemis-build
5730ff943d6ace08606f72083262b222410277b0
[ "MIT" ]
null
null
null
build/__init__.py
DevinCarr/artemis-build
5730ff943d6ace08606f72083262b222410277b0
[ "MIT" ]
null
null
null
build/__init__.py
DevinCarr/artemis-build
5730ff943d6ace08606f72083262b222410277b0
[ "MIT" ]
null
null
null
from .main import Builder VERSION = "0.1.0" def execute(args=None): """Entry point for Artemis-core""" builder = Builder(args) if args: if args[0] == 'this' or args[0] == 'here': # Run in the current directory builder.discover(args[1]) else: # The argumen...
27.428571
52
0.583333
fff7f28ff44015d2a417deda24245827a76a3bdb
1,612
py
Python
pyroute/poi_base.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
pyroute/poi_base.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
pyroute/poi_base.py
ftrimble/route-grower
d4343ecc9b13a3e1701c8460c8a1792d08b74567
[ "Apache-2.0" ]
null
null
null
import geometry from base import pyrouteModule import listable class poi: def __init__(self,lat,lon): self.lat = lat self.lon = lon self.title = 'Untitled at %1.3f, %1.3f' % (lat,lon) def formatText(self): return(self.title) def distanceFrom(self,pos): a = (pos['lat'], pos['lon'])...
23.028571
60
0.583747
fff8229b106ae74863ae618f4c5decfe68b944a4
3,092
py
Python
dataset_creation/transliterate.py
ma7555/SOQAL
ebacc7c5cd149279361bb7168f33b61f510517ea
[ "MIT" ]
null
null
null
dataset_creation/transliterate.py
ma7555/SOQAL
ebacc7c5cd149279361bb7168f33b61f510517ea
[ "MIT" ]
null
null
null
dataset_creation/transliterate.py
ma7555/SOQAL
ebacc7c5cd149279361bb7168f33b61f510517ea
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This is Python 3.6 import json import re from polyglot.text import Text # read README for how to install ARABIC_LETTERS = 'ابتةثجحخدذرزسشصضطظعغفقكلمنهويءآأؤإئ' def has_numbers(inputString): return bool(re.search(r'\d', inputString)) def donwload_all_transliterators(): from polyglot...
38.65
704
0.645537
fff8332034b3593570c95a71b18a806968a3f5f1
17,248
py
Python
fairseq/tasks/speech_to_speech.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
1
2021-12-16T13:20:41.000Z
2021-12-16T13:20:41.000Z
fairseq/tasks/speech_to_speech.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
null
null
null
fairseq/tasks/speech_to_speech.py
MANGA-UOFA/NAUS
8c0c0815a280d0661adf588302848c7f1ecc56da
[ "MIT" ]
1
2020-10-20T03:47:43.000Z
2020-10-20T03:47:43.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from argparse import Namespace import json import logging import math from pathlib import Path import torch import torch.nn as nn from fairse...
36.465116
116
0.573632
fff83563af467a3ff4e5e543dfbae2bac5f3d760
21,542
py
Python
pump_sfd.py
dannyxn/couchbase-cli
33c2ea93a7a0ee165fadb76c216fcc8234c7d741
[ "Apache-2.0" ]
36
2015-02-12T20:32:04.000Z
2022-03-21T17:37:27.000Z
pump_sfd.py
dannyxn/couchbase-cli
33c2ea93a7a0ee165fadb76c216fcc8234c7d741
[ "Apache-2.0" ]
8
2016-09-07T16:04:16.000Z
2020-01-20T10:17:04.000Z
pump_sfd.py
dannyxn/couchbase-cli
33c2ea93a7a0ee165fadb76c216fcc8234c7d741
[ "Apache-2.0" ]
53
2015-03-13T13:23:55.000Z
2021-12-17T22:45:25.000Z
#!/usr/bin/env python3 import glob import json import logging import os import queue import re import struct import threading from collections import defaultdict from typing import Any, Dict, List, Optional, Tuple import couchstore # pylint: disable=import-error import couchbaseConstants import pump from cb_bin_cli...
41.347409
119
0.541593
fff83f482e52d0e3fc0cefa26f9189efd8a9abf5
2,375
py
Python
api_app/core/config.py
oliver7598/AzureTRE
38290b91fb694f6dc50a2af9f9376962de8026bd
[ "MIT" ]
1
2022-03-02T19:46:46.000Z
2022-03-02T19:46:46.000Z
api_app/core/config.py
frankfanslc/AzureTRE
c6ab21cfdb252b37ca23fde13cf397d519da31a7
[ "MIT" ]
1
2022-02-02T14:52:06.000Z
2022-02-02T15:00:01.000Z
api_app/core/config.py
frankfanslc/AzureTRE
c6ab21cfdb252b37ca23fde13cf397d519da31a7
[ "MIT" ]
null
null
null
from starlette.config import Config from _version import __version__ config = Config(".env") # API settings API_PREFIX = "/api" PROJECT_NAME: str = config("PROJECT_NAME", default="Azure TRE API") DEBUG: bool = config("DEBUG", cast=bool, default=False) VERSION = __version__ API_DESCRIPTION = "Welcome to the Azure TRE ...
47.5
174
0.782316
fff83f8b7c9302240751bd1cfdb106203909597a
1,089
py
Python
pyminknow/tests/client/test_manager.py
cfblaeb/pyminknow
6d74add834822893dd91bac6b2518ba6a3810f1e
[ "MIT" ]
6
2020-04-23T13:45:39.000Z
2022-01-23T08:00:10.000Z
pyminknow/tests/client/test_manager.py
cfblaeb/pyminknow
6d74add834822893dd91bac6b2518ba6a3810f1e
[ "MIT" ]
1
2022-02-23T08:49:40.000Z
2022-02-23T08:49:40.000Z
pyminknow/tests/client/test_manager.py
cfblaeb/pyminknow
6d74add834822893dd91bac6b2518ba6a3810f1e
[ "MIT" ]
2
2021-02-24T02:37:51.000Z
2022-02-15T10:31:25.000Z
import unittest import pyminknow.config import pyminknow.client class TestProtocolService(unittest.TestCase): """Test protocol service""" def setUp(self) -> None: """Initialise server""" self.channel = pyminknow.client.connect() self.client = pyminknow.client.ManagerClient(self.cha...
33
95
0.706152
fff8b6bee8b034aeaafcc38c1c3ad9698eb7d85a
9,946
py
Python
maintenances/maintenances/custom_napalm/iosxr.py
josh9730/circuit_migrations
af024fefafffca5955623b7603defc386723d71d
[ "MIT" ]
null
null
null
maintenances/maintenances/custom_napalm/iosxr.py
josh9730/circuit_migrations
af024fefafffca5955623b7603defc386723d71d
[ "MIT" ]
null
null
null
maintenances/maintenances/custom_napalm/iosxr.py
josh9730/circuit_migrations
af024fefafffca5955623b7603defc386723d71d
[ "MIT" ]
null
null
null
import copy import re import tempfile import textfsm from lxml import etree as ETREE from napalm.base.helpers import find_txt as napalm_find_txt from napalm.iosxr.iosxr import IOSXRDriver from netaddr import EUI from . import textfsm_bgp_rx, textfsm_nd, textfsm_optics class CustomIOSXRDriver(IOSXRDriver): """Ex...
35.776978
115
0.571285
fff8cd6c04ebc16622ee64067a43eb1ea403faeb
436
py
Python
sharebears/test_util.py
mgp/sharebears
aabb2c568707cea1107498a05d7f56bd772ef4fb
[ "Apache-2.0" ]
1
2015-01-17T20:02:14.000Z
2015-01-17T20:02:14.000Z
sharebears/test_util.py
mgp/sharebears
aabb2c568707cea1107498a05d7f56bd772ef4fb
[ "Apache-2.0" ]
null
null
null
sharebears/test_util.py
mgp/sharebears
aabb2c568707cea1107498a05d7f56bd772ef4fb
[ "Apache-2.0" ]
null
null
null
class TestDecoder: def __init__(self, name, matched_url_prefix): self._name = name self._matched_url_prefix = matched_url_prefix def name(self): return self._name def can_decode_url(self, url, parsed_url): return url.startswith(self._matched_url_prefix) def decode_url(self, url, parsed_url): ...
24.222222
51
0.729358
fff8d534c65afb7009024b6a3d1a3979735c4513
4,046
py
Python
bookr/reviews/models.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
bookr/reviews/models.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
bookr/reviews/models.py
paxcodes/bookr
185e2ec71da53ef8816edd90a76cc71e40b41e24
[ "MIT" ]
null
null
null
from django.db import models from django.contrib import auth class Publisher(models.Model): """A company that publishes books.""" name = models.CharField(max_length=50, help_text="The name of the Publisher.") website = models.URLField(help_text="The publisher's website.") email = models.EmailField(he...
37.119266
105
0.683885
fff9106531e2a3af4b0b9fd594360a8b46966586
8,441
py
Python
uberTaxi/script/main.py
HWNi/DATA515-Project
69d9743b3024579b249e81d7f67e03c73db32fd6
[ "MIT" ]
2
2017-05-12T05:10:05.000Z
2017-06-11T18:02:32.000Z
uberTaxi/script/main.py
HWNi/DATA515-Project
69d9743b3024579b249e81d7f67e03c73db32fd6
[ "MIT" ]
null
null
null
uberTaxi/script/main.py
HWNi/DATA515-Project
69d9743b3024579b249e81d7f67e03c73db32fd6
[ "MIT" ]
2
2017-05-25T21:31:26.000Z
2020-09-24T19:25:16.000Z
import json import os import pyodbc from collections import defaultdict import numpy as np import pandas as pd import bokeh.layouts from bokeh.io import curdoc, output_file, show from bokeh.layouts import widgetbox from bokeh.models import ( BoxSelectTool, Circle, ColumnDataSource, CustomJS, DataR...
27.67541
134
0.646132
fff9239d3ed7e625c8cb649ff7be50aea19291f0
251
py
Python
tql/algo_ml/imblearn/__init__.py
Jie-Yuan/1_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
14
2019-06-25T13:46:32.000Z
2020-10-27T02:04:59.000Z
tql/algo_ml/imblearn/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
null
null
null
tql/algo_ml/imblearn/__init__.py
Jie-Yuan/2_DataMining
f5338388b4f883233f350d4fb9c5903180883430
[ "Apache-2.0" ]
7
2019-06-25T13:26:16.000Z
2020-10-27T02:05:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Project : tql-Python. # @File : __init__.py # @Time : 2019-09-23 13:12 # @Author : yuanjie # @Email : yuanjie@xiaomi.com # @Software : PyCharm # @Description :
20.916667
36
0.521912
fff92fe8939eb45e0cd892bd54d7fb10ea56feb5
2,179
py
Python
setup.py
jhdulaney/thermopy
a413e2c18e257ea32492375a15968191520e7122
[ "BSD-3-Clause" ]
null
null
null
setup.py
jhdulaney/thermopy
a413e2c18e257ea32492375a15968191520e7122
[ "BSD-3-Clause" ]
null
null
null
setup.py
jhdulaney/thermopy
a413e2c18e257ea32492375a15968191520e7122
[ "BSD-3-Clause" ]
null
null
null
from setuptools import setup, find_packages import thermopy my_long_description = str( """ Python library for thermodynamics and other handy tools. Thermodynamics (all these properties as function of temperature for thousands of compounds): - Specific heat capacity - Enthalpy - Entropy Temperature independen...
27.2375
80
0.667737
fff95c53af4e613eb79a060d93547a7ed788728c
35,097
py
Python
tools/installer/deps/miniterm.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
11
2020-01-15T14:25:48.000Z
2021-11-25T04:21:18.000Z
tools/installer/deps/miniterm.py
Pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
8
2021-02-04T16:41:57.000Z
2022-03-29T21:57:15.000Z
tools/installer/deps/miniterm.py
pythings/PythingsOS
276b41a32af7fa0d5395b2bb308e611f784f9711
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Very simple serial terminal # # This file is part of pySerial. https://github.com/pyserial/pyserial # (C)2002-2015 Chris Liechti <cliechti@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause import codecs import os import sys import threading import serial from serial.tools.list_ports import c...
35.923234
116
0.538422
fff96e50d97ab2bb02ce220215e43d96b692f9a3
458
py
Python
python/l0630.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0630.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
python/l0630.py
daidaifan/leetcode-problem-solver
1793eada501a2a18d05f118a98ac52e2edd12ef8
[ "MIT" ]
null
null
null
class Solution(object): def scheduleCourse(self, courses): """ :type courses: List[List[int]] :rtype: int """ import heapq courses = sorted(courses, key=lambda x: (x[1], x[0])) pq = [] start = 0 for time, due in courses: start += ti...
26.941176
61
0.480349
fff9a6bce8246551ce4b6704bf9e6b4c86b55743
729
py
Python
LASER/embed_all.py
EMBEDDIA/cross-lingual-classification-of-tweet-sentiment
59be56c5e76b028ddf1948a28fa31f6a17d56941
[ "MIT" ]
3
2020-05-26T05:41:32.000Z
2021-09-03T21:32:46.000Z
LASER/embed_all.py
EMBEDDIA/cross-lingual-classification-of-tweet-sentiment
59be56c5e76b028ddf1948a28fa31f6a17d56941
[ "MIT" ]
null
null
null
LASER/embed_all.py
EMBEDDIA/cross-lingual-classification-of-tweet-sentiment
59be56c5e76b028ddf1948a28fa31f6a17d56941
[ "MIT" ]
1
2020-05-11T03:37:51.000Z
2020-05-11T03:37:51.000Z
import pandas as pd import numpy as np import subprocess # list of languages #languages = ['Albanian', 'Bosnian', 'Bulgarian', 'Croatian', 'English', 'German', 'Hungarian', 'Polish', 'Portuguese', 'Russian', 'Serbian', 'Slovak', 'Slovenian', 'Swedish'] languages = ['Slovenian', 'Swedish'] # list of language abbreviat...
40.5
175
0.633745
fff9bbd0cb35ae3e1b5d2244e636020a429214fa
28,437
py
Python
sharpy/solvers/steplinearuvlm.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
sharpy/solvers/steplinearuvlm.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
sharpy/solvers/steplinearuvlm.py
AntonioWR/sharpy
c922be8d5a1831c4624b22f39264e2f417a03deb
[ "BSD-3-Clause" ]
null
null
null
""" Time domain solver to integrate the linear UVLM aerodynamic system developed by S. Maraniello N Goizueta Nov 18 """ from sharpy.utils.solver_interface import BaseSolver, solver import numpy as np import sharpy.utils.settings as settings import sharpy.utils.generator_interface as gen_interface import sharpy.utils.al...
44.363495
139
0.601153
fff9c1634b2f8ae338fd143177d7f185749d9486
2,314
py
Python
cfnbootstrap/endpoint_tool.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
cfnbootstrap/endpoint_tool.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
cfnbootstrap/endpoint_tool.py
roberthutto/aws-cfn-bootstrap
801a16802a931fa4dae0eba4898fe1ccdb304924
[ "Apache-2.0" ]
null
null
null
#============================================================================== # Copyright 2011 Amazon.com, Inc. or its affiliates. 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 ...
37.322581
92
0.659032
fff9f89313155f16c487208389d1411c483b5074
23,128
py
Python
mmaction/models/common/tranST.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
mmaction/models/common/tranST.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
mmaction/models/common/tranST.py
visaVita/mmaction2
2d7107a2d79b990b7facd3d6f7ac0b6ad974c153
[ "Apache-2.0" ]
null
null
null
import imp import numpy import torch from torch._C import set_flush_denormal import torch.nn as nn import torch.nn.functional as F from torch import Tensor import copy from typing import Optional from einops import rearrange import math """ TranST: spatial_encoder, temporal_encoder, Args: """ class TranST(nn.Modul...
42.514706
129
0.584616
fff9fcaa7d0716aabd7eedcd98e652cd40c7ca0f
520
py
Python
Chapter16/threading_example.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
6
2017-05-17T17:51:45.000Z
2021-11-08T13:10:35.000Z
Chapter16/threading_example.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
null
null
null
Chapter16/threading_example.py
PacktPublishing/GettingStartedwithPythonfortheInternetofThings-
a5a86ae38b3a4c625dfc1213d32a3f49e1e298c6
[ "MIT" ]
14
2017-05-21T17:59:40.000Z
2021-10-02T16:58:16.000Z
#!/usr/bin/python3 """ Sensor Processing Example """ import threading import time def sensor_processing(string): for num in range(5): time.sleep(5) print("%s: Iteration: %d" %(string, num)) if __name__ == '__main__': thread_1 = threading.Thread(target=sensor_processing, args=("Sensor 1",)) thread_1...
23.636364
75
0.7
fffa364a9e03de607ef3ee87f6a39402a3903bb6
1,181
py
Python
scalability/tests/test_prometheus.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
2
2022-03-05T18:40:40.000Z
2022-03-05T18:43:09.000Z
scalability/tests/test_prometheus.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
1
2022-03-05T18:38:02.000Z
2022-03-05T18:38:02.000Z
scalability/tests/test_prometheus.py
3cL1p5e7/ic
2b6011291d900454cedcf86ec41c8c1994fdf7d9
[ "Apache-2.0" ]
1
2022-03-12T03:13:53.000Z
2022-03-12T03:13:53.000Z
"""Unit tests for prometheus.py.""" import math import time import unittest TESTNET = "mercury" MACHINES = [ "2001:920:401a:1706:5000:87ff:fe11:a9a0", "2001:920:401a:1708:5000:4fff:fe92:48f1", "2001:920:401a:1708:5000:5fff:fec1:9ddb", ] class Test_Prometheus(unittest.TestCase): """Unit tests for prom...
27.465116
78
0.65707
fffa4ca4d89125a3672dc0b55dadb40ec184641f
4,287
py
Python
large_app/python/api/migrations/versions/8caa59cacad3_.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
large_app/python/api/migrations/versions/8caa59cacad3_.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
large_app/python/api/migrations/versions/8caa59cacad3_.py
sahilGupta89/large_flask_app
e1ab54431bb935c02186f586d9246b741d9f2d33
[ "MIT" ]
null
null
null
"""empty message Revision ID: 8caa59cacad3 Revises: Create Date: 2019-10-13 02:41:49.540820 """ from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql # revision identifiers, used by Alembic. revision = '8caa59cacad3' down_revision = None branch_labels = None depends_on = None d...
43.744898
97
0.673898
fffa8dab676beed753b5dfcc240525fcc915e267
6,555
py
Python
dataloader/dual_residual_dataset.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
5
2019-12-23T05:13:15.000Z
2020-04-09T03:47:53.000Z
dataloader/dual_residual_dataset.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
null
null
null
dataloader/dual_residual_dataset.py
misads/torch_image_template
db55be6fcebdb6b0c5c739e505b8a7a2eb81c3c1
[ "MIT" ]
null
null
null
import pdb import numpy as np import torch import random import torch.utils.data as data from torchvision.transforms import transforms from PIL import Image from options import opt import cv2 from utils.misc_utils import try_make_dir from utils.torch_utils import create_summary_writer, write_image class ImageSet(dat...
34.5
102
0.593288
fffa9120d1f6a6f3133046b2b1435c819cae541b
800
py
Python
think-python/code/most_frequent.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/most_frequent.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
think-python/code/most_frequent.py
baldoinov/think-python-2e-exercises
5a5cd6e94f44e14dc567c35ebf3dd9160cf6b01b
[ "MIT" ]
null
null
null
""" Write a function called most_frequent that takes a string and prints the letters in decreasing order of frequency. Find text samples from several different languages and see how letter frequency varies between languages. Compare your results with the tables at http://en.wikipedia.org/wiki/Letter_frequencies . "...
26.666667
95
0.71375
fffaa9769948520227145d1b7df6c16718a596fc
11,638
py
Python
experiments/e2_multi_directional_model_comparison/rule_mining/mine_multi_target_rules_from_random_forests2.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
3
2020-08-03T19:25:44.000Z
2021-06-27T22:25:55.000Z
experiments/e2_multi_directional_model_comparison/rule_mining/mine_multi_target_rules_from_random_forests2.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
null
null
null
experiments/e2_multi_directional_model_comparison/rule_mining/mine_multi_target_rules_from_random_forests2.py
joschout/Multi-Directional-Rule-Set-Learning
ef0620b115f4e0fd7fba3e752d238a8020c1ca6b
[ "Apache-2.0" ]
2
2020-08-07T22:54:28.000Z
2021-02-18T06:11:01.000Z
import os import time from typing import List, Tuple, Dict import pandas as pd from dask import delayed from dask.delayed import Delayed from sklearn.ensemble import RandomForestClassifier from experiments.dask_utils.computations import compute_delayed_functions from experiments.dask_utils.dask_initialization import ...
47.117409
128
0.675202
fffabd157100c9df424032eb8ae51efaae1723c4
7,881
py
Python
pyop2/profiling.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
pyop2/profiling.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
pyop2/profiling.py
chromy/PyOP2
8a1955c628b795019485c9771709c338a806e661
[ "BSD-3-Clause" ]
null
null
null
# This file is part of PyOP2 # # PyOP2 is Copyright (c) 2012, Imperial College London and # others. Please see the AUTHORS file in the main source directory for # a full list of copyright holders. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted ...
31.778226
77
0.613374
fffad1c66e889bf0cad8b5752d8d84d2391d4b8c
592
py
Python
benchmarks/django-workload/uwsgi/files/django-workload/django_workload/urls.py
jonasbn/cloudsuite
8a10c1062a08fd130fa2dfa5d5887e4a52f9caa5
[ "PHP-3.01", "Apache-2.0" ]
103
2017-03-03T20:28:02.000Z
2022-03-31T09:29:05.000Z
benchmarks/django-workload/uwsgi/files/django-workload/django_workload/urls.py
jonasbn/cloudsuite
8a10c1062a08fd130fa2dfa5d5887e4a52f9caa5
[ "PHP-3.01", "Apache-2.0" ]
182
2017-03-01T18:11:02.000Z
2022-03-13T19:31:02.000Z
benchmarks/django-workload/uwsgi/files/django-workload/django_workload/urls.py
jonasbn/cloudsuite
8a10c1062a08fd130fa2dfa5d5887e4a52f9caa5
[ "PHP-3.01", "Apache-2.0" ]
93
2017-02-23T19:53:08.000Z
2022-03-20T03:05:15.000Z
# Copyright 2017-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from django.conf.urls import url from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^feed_ti...
29.6
71
0.685811
fffad99a5992e8b6400d8b2e43ef0a588c65cf69
150
py
Python
knx/text/kte/__init__.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
2
2017-07-27T03:50:37.000Z
2017-09-28T06:42:52.000Z
knx/text/kte/__init__.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
null
null
null
knx/text/kte/__init__.py
gofortargets/CNN_brandsafety
77c9048a7aca9458879585925e98220435c052e9
[ "Apache-2.0" ]
null
null
null
from .extract import KeyTermsExtractor, loadarff, parse_arguments, scorers __all__ = ['KeyTermsExtractor', 'loadarff', 'parse_arguments', 'scorers']
37.5
74
0.786667
fffb03a0457ba9e1664f24e5f8043dfe9a14df89
1,995
py
Python
test_autoconf/test_default.py
rhayes777/PyAutoConf
8f3d75403a53773076e59e70558f965b6ed146dc
[ "MIT" ]
1
2020-01-23T13:13:30.000Z
2020-01-23T13:13:30.000Z
test_autoconf/test_default.py
rhayes777/PyAutoConf
8f3d75403a53773076e59e70558f965b6ed146dc
[ "MIT" ]
5
2020-12-24T09:50:09.000Z
2022-01-13T08:03:50.000Z
test_autoconf/test_default.py
rhayes777/PyAutoConf
8f3d75403a53773076e59e70558f965b6ed146dc
[ "MIT" ]
3
2020-07-26T06:17:45.000Z
2022-01-21T17:39:47.000Z
from autoconf import conf from autoconf.mock.mock_real import Redshift def test_missing_logging_config( files_directory ): config = conf.Config( files_directory / "no_logging", ) config.push(new_path=files_directory / "no_logging") def test_override_file(config): hpc = config["genera...
25.253165
67
0.680702
fffb207265032b4a137d81d0a23004c674d9a91f
14,308
py
Python
venv/lib/python3.9/site-packages/igraph/summary.py
pavelberanek91/algoritmizace-python-advanced
660a2aefb15fdc19c04478132593b1a0673b904a
[ "Unlicense" ]
2
2022-02-26T11:19:40.000Z
2022-03-28T08:23:25.000Z
venv/lib/python3.9/site-packages/igraph/summary.py
pavelberanek91/algoritmizace-python-advanced
660a2aefb15fdc19c04478132593b1a0673b904a
[ "Unlicense" ]
null
null
null
venv/lib/python3.9/site-packages/igraph/summary.py
pavelberanek91/algoritmizace-python-advanced
660a2aefb15fdc19c04478132593b1a0673b904a
[ "Unlicense" ]
null
null
null
# vim:ts=4:sw=4:sts=4:et # -*- coding: utf-8 -*- """Summary representation of a graph.""" import sys from igraph.statistics import median from itertools import islice from math import ceil from texttable import Texttable from textwrap import TextWrapper __all__ = ("GraphSummary", "summary") class FakeWrapper: ...
38.053191
88
0.599734
fffb2650af878c86c6c55075ef17fe74bb4980c0
5,575
py
Python
iced/views.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
1
2020-01-13T13:49:53.000Z
2020-01-13T13:49:53.000Z
iced/views.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
8
2020-06-05T21:53:54.000Z
2022-03-11T23:53:42.000Z
iced/views.py
sharonmaswai/IceTube
98d933132ee684aa5f04926f2bcca88cd84bfbb9
[ "Unlicense" ]
1
2022-03-13T18:08:48.000Z
2022-03-13T18:08:48.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import render from django.contrib.auth.decorators import login_required from django.http import HttpResponse from django.shortcuts import render, redirect from django.contrib.auth import login, authenticate from django.contrib.sites.s...
33.787879
125
0.681794
fffb3d83b50cb7c1afec881ce11839af3ba63f71
11,606
py
Python
machin/utils/checker.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
287
2020-06-13T05:19:50.000Z
2022-03-31T04:46:32.000Z
machin/utils/checker.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
19
2020-08-19T05:33:45.000Z
2022-03-27T15:16:03.000Z
machin/utils/checker.py
lorenzosteccanella/machin
9d3ce87dbed820b5019211b0690b54613084d9e4
[ "MIT" ]
44
2020-07-06T00:41:44.000Z
2022-03-29T17:05:08.000Z
from typing import List import inspect import torch as t import torch.nn as nn from .helper_classes import Counter from .tensor_board import SummaryWriter class CheckError(Exception): pass def check_shape(tensor: t.Tensor, required_shape: List[int], name=""): """ Check whether tensor has the specified ...
31.79726
86
0.580045
fffb4d3aa013ab3cdf390042f404a552672a1e4c
17,085
py
Python
lib/svg/path/path.py
hdo/bCNC
c0c6489c80265f95b554e6566835874497cf969d
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/svg/path/path.py
hdo/bCNC
c0c6489c80265f95b554e6566835874497cf969d
[ "MIT", "BSD-3-Clause" ]
null
null
null
lib/svg/path/path.py
hdo/bCNC
c0c6489c80265f95b554e6566835874497cf969d
[ "MIT", "BSD-3-Clause" ]
null
null
null
from __future__ import division from math import sqrt, cos, sin, acos, degrees, radians, log from collections import MutableSequence # This file contains classes for the different types of SVG path segments as # well as a Path object that contains a sequence of path segments. MIN_DEPTH = 5 ERROR = 1e-12 def segmen...
34.72561
92
0.554287
fffb5c7b1e830b1863fed270963bf6e14cd0dad3
6,549
py
Python
scripts/engine/core/hourglass.py
Snayff/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
12
2020-03-24T07:10:18.000Z
2021-07-20T19:34:13.000Z
scripts/engine/core/hourglass.py
DaFluffyPotato/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
306
2020-07-08T17:28:54.000Z
2021-04-17T11:59:22.000Z
scripts/engine/core/hourglass.py
Snayff/notquiteparadise
758d8310413316abbee8e7e644ac7dd005b05cf8
[ "MIT" ]
10
2020-06-30T12:36:59.000Z
2021-11-08T09:01:00.000Z
from __future__ import annotations import logging from typing import TYPE_CHECKING from snecs.typedefs import EntityID import scripts.engine.core.matter from scripts.engine.core import query from scripts.engine.core.component import Tracked from scripts.engine.internal import library from scripts.engine.internal.dat...
24.713208
116
0.671095
fffb60d11ecfc5df0df171c8227ac0b1aa85ce67
528
py
Python
server/model/sessions.py
jonesmat/pyhttpchat
81076a401cd087fe28e44bd30f6c3e56d9a293e8
[ "MIT" ]
null
null
null
server/model/sessions.py
jonesmat/pyhttpchat
81076a401cd087fe28e44bd30f6c3e56d9a293e8
[ "MIT" ]
null
null
null
server/model/sessions.py
jonesmat/pyhttpchat
81076a401cd087fe28e44bd30f6c3e56d9a293e8
[ "MIT" ]
null
null
null
from uuid import uuid1 from datetime import datetime MAX_SESSION_AGE = 60 # seconds class Session(): def __init__(self, ip_addr: str, username: str): self.session_id = uuid1() self.created = datetime.utcnow().timestamp() self.ip_addr = ip_addr self.username = username def to...
24
52
0.590909
fffb6488425524b85363c5365bd080ce688e6263
3,589
py
Python
tensorflow/python/framework/framework_lib.py
tianyapiaozi/tensorflow
fb3ce0467766a8e91f1da0ad7ada7c24fde7a73a
[ "Apache-2.0" ]
848
2019-12-03T00:16:17.000Z
2022-03-31T22:53:17.000Z
tensorflow/python/framework/framework_lib.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
656
2019-12-03T00:48:46.000Z
2022-03-31T18:41:54.000Z
tensorflow/python/framework/framework_lib.py
shrikunjsarda/tensorflow
7e8927e7af0c51ac20a63bd4eab6ff83df1a39ae
[ "Apache-2.0" ]
506
2019-12-03T00:46:26.000Z
2022-03-30T10:34:56.000Z
# Copyright 2015 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...
47.223684
88
0.828364
fffb6b5ceed6fc7800ecb81a437cfeeba150f1a7
1,373
py
Python
src/8/making_objects_support_the_context_manager_protocol/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
14
2017-05-20T04:06:46.000Z
2022-01-23T06:48:45.000Z
src/8/making_objects_support_the_context_manager_protocol/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
1
2021-06-10T20:17:55.000Z
2021-06-10T20:17:55.000Z
src/8/making_objects_support_the_context_manager_protocol/example2.py
tuanavu/python-gitbook
948a05e065b0f40afbfd22f697dff16238163cde
[ "MIT" ]
15
2017-03-29T17:57:33.000Z
2021-08-24T02:20:08.000Z
from socket import socket, AF_INET, SOCK_STREAM class LazyConnection: def __init__(self, address, family=AF_INET, type=SOCK_STREAM): self.address = address self.family = AF_INET self.type = SOCK_STREAM self.connections = [] def __enter__(self): sock = socket(self.family...
31.204545
66
0.581209
fffb721a92d51dfc31a4f3ddb94645ae49b19d09
8,179
py
Python
plugins/maya/publish/validate_avalon_uuid.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
3
2020-04-01T10:51:17.000Z
2021-08-05T18:35:23.000Z
plugins/maya/publish/validate_avalon_uuid.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
null
null
null
plugins/maya/publish/validate_avalon_uuid.py
davidlatwe/reveries-config
4a282dd64a32a9b87bd1a070759b6425ff785d68
[ "MIT" ]
1
2020-07-05T12:06:30.000Z
2020-07-05T12:06:30.000Z
import pyblish.api from reveries import plugins class SelectMissing(plugins.MayaSelectInvalidInstanceAction): label = "沒有編號" symptom = "missing" on = "processed" class SelectDuplicated(plugins.MayaSelectInvalidInstanceAction): label = "重複編號" symptom = "duplicated" on = "processed" class...
27.446309
77
0.586624
fffb9364d400a16eda3010793a2d15b6c98d91c7
1,987
py
Python
venv/Lib/site-packages/pyrogram/raw/types/privacy_key_phone_call.py
D1ne2021/jjhhhjj
a090da30983b3ef276dfe4cef2ded4526f36002a
[ "MIT" ]
2
2021-12-13T07:09:55.000Z
2022-01-12T12:15:20.000Z
venv/Lib/site-packages/pyrogram/raw/types/privacy_key_phone_call.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pyrogram/raw/types/privacy_key_phone_call.py
hoangkiet1906/Botcie_ver1
c133b915edde06dac690a7dc6ca160f6792fc4c8
[ "MIT" ]
null
null
null
# Pyrogram - Telegram MTProto API Client Library for Python # Copyright (C) 2017-2021 Dan <https://github.com/delivrance> # # This file is part of Pyrogram. # # Pyrogram is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published # by the Free...
31.046875
103
0.632109
fffbb731dd4825c71d9c7f5f85cf6fd53ddd28e8
5,691
py
Python
style_funcs.py
eyalzk/style_transfer
bf09665db624d5b03c43cdeccfde9c9da0a08f76
[ "MIT" ]
1
2017-04-07T08:12:06.000Z
2017-04-07T08:12:06.000Z
style_funcs.py
eyalzk/style_transfer
bf09665db624d5b03c43cdeccfde9c9da0a08f76
[ "MIT" ]
null
null
null
style_funcs.py
eyalzk/style_transfer
bf09665db624d5b03c43cdeccfde9c9da0a08f76
[ "MIT" ]
2
2019-07-05T23:18:27.000Z
2019-11-10T23:06:37.000Z
import tensorflow as tf import numpy as np import matplotlib.image as mpimg from scipy import misc import matplotlib.pyplot as plt import os.path import math # Plot images def show_images(images): plt.figure() titles = ['Content Image', 'Style Image', 'Variable Image'] for i, img in enumerate(images,1): ...
32.895954
102
0.646986
fffbc001cadfecb1f3555fbd389d8c5486c136dd
263
py
Python
chapter7/exercises/EG7-04 Two Parameter Times Table.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter7/exercises/EG7-04 Two Parameter Times Table.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
chapter7/exercises/EG7-04 Two Parameter Times Table.py
munnep/begin_to_code_with_python
3ef14d90785526b6b26d262a7627eee73791d7d0
[ "MIT" ]
null
null
null
# EG7-04 Two Parameter Times Table def print_times_table(times_value, limit): count = 1 while count < limit+1: result = times_value * count print(count,'times', times_value,'equals',result) count = count + 1 print_times_table(6,5)
29.222222
57
0.665399
fffbc4f66f48b16e4ad5d06a3146a431a55a9bf0
35,726
py
Python
appengine/components/components/auth/change_log_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2017-10-30T15:08:10.000Z
2017-10-30T15:08:10.000Z
appengine/components/components/auth/change_log_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
null
null
null
appengine/components/components/auth/change_log_test.py
stefb965/luci-py
e0a8a5640c4104e5c90781d833168aa8a8d1f24d
[ "Apache-2.0" ]
1
2020-07-05T19:54:40.000Z
2020-07-05T19:54:40.000Z
#!/usr/bin/env python # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import datetime import sys import unittest from test_support import test_env test_env.setup_test_env() from google.appengi...
39.345815
80
0.612299
fffbcbfd545f0c5dc09372b66b5ce3c297dd5261
4,204
py
Python
tests/nuodb_transaction_test.py
jgetto/nuodb-python
3a22260e801d8f9d9bd33f911a694e8caeba7282
[ "BSD-3-Clause" ]
null
null
null
tests/nuodb_transaction_test.py
jgetto/nuodb-python
3a22260e801d8f9d9bd33f911a694e8caeba7282
[ "BSD-3-Clause" ]
null
null
null
tests/nuodb_transaction_test.py
jgetto/nuodb-python
3a22260e801d8f9d9bd33f911a694e8caeba7282
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import pynuodb import unittest from nuodb_base import NuoBase class NuoDBTransactionTest(NuoBase): def test_connection_isolation(self): con1 = self._connect() con2 = self._connect() cursor1 = con1.cursor() cursor2 = con2.cursor() cursor1.execute("...
28.993103
74
0.642959
fffbd7e95a037a7d1be50765b99b10d0f189acda
1,603
py
Python
examples/OfflineConversionsCreateOfflineSet.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/OfflineConversionsCreateOfflineSet.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
null
null
null
examples/OfflineConversionsCreateOfflineSet.py
pasha-r/facebook-python-ads-sdk
76feadd77baed839516b53297628e7a254c8c3c0
[ "CNRI-Python" ]
1
2018-09-24T14:04:48.000Z
2018-09-24T14:04:48.000Z
# Copyright 2014 Facebook, Inc. # You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Fa...
40.075
89
0.787898
fffbdf78f3670ac5d088ec840caace40cd934509
30,154
py
Python
packages/fetchai/protocols/tac/tac_pb2.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
packages/fetchai/protocols/tac/tac_pb2.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
packages/fetchai/protocols/tac/tac_pb2.py
valory-xyz/agents-aea
8f38efa96041b0156ed1ae328178e395dbabf2fc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: tac.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.p...
63.215933
6,189
0.736884
fffc0f715564b00dc554992de02dc1126075121a
4,927
py
Python
trax/layers/normalization.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/layers/normalization.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
trax/layers/normalization.py
modyharshit23/trax
2e6783a4674209b57482ec41e1c533a420aa6fe6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2019 The Trax Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
35.702899
88
0.673432
fffc4d05265c523ba6fb444b670e1674c83c1d87
813
py
Python
352_easy_imgur_links/test_imgur.py
dang3r/dailyprogrammer
e60efd449bb2e8e80cd09cf37f9a55ef92702e91
[ "MIT" ]
null
null
null
352_easy_imgur_links/test_imgur.py
dang3r/dailyprogrammer
e60efd449bb2e8e80cd09cf37f9a55ef92702e91
[ "MIT" ]
null
null
null
352_easy_imgur_links/test_imgur.py
dang3r/dailyprogrammer
e60efd449bb2e8e80cd09cf37f9a55ef92702e91
[ "MIT" ]
null
null
null
import pytest """ https://www.reddit.com/r/dailyprogrammer/comments/7yyt8e/20180220_challenge_352_easy_making_imgurstyle/ - was initially confused because the """ alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" base = len(alphabet) def encode(num: int) -> str: if num == 0: re...
18.066667
103
0.632226
fffc87e53c3f82706c8e80ae282a554cd211c572
220
py
Python
test11.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
test11.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
test11.py
abkumarggn/python-learning-1
df45396cd14f5762053728760953b3806d0069b6
[ "Apache-2.0" ]
null
null
null
n=50 e=20 while n>0: n-=1 if n==e: break print(n) print("The end after",e) n=20 e=15 while n>0: n-=1 if n==e: break print(n) #print("The does not end after",e) else: print(n)
11
34
0.504545
fffc89a1a71ba5ed34c7ebaac9d75239913ef340
1,011
py
Python
rod_motion_planning/rod_DiscoPygal/rod_DiscoPygal/bindings/bindings.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
rod_motion_planning/rod_DiscoPygal/rod_DiscoPygal/bindings/bindings.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
rod_motion_planning/rod_DiscoPygal/rod_DiscoPygal/bindings/bindings.py
galmw/AlgorithmicRobotics
1a616a911e74fa965f34075bc2fc683876e1a6be
[ "MIT" ]
null
null
null
import CGALPY Ker = CGALPY.Ker MN2 = CGALPY.MN2 Aos2 = CGALPY.Aos2 Pol2 = CGALPY.Pol2 SS = CGALPY.SS PP2 = CGALPY.PP2 BSO2 = CGALPY.BSO2 Point_d = SS.Point_d Euclidean_distance = SS.Euclidean_distance K_neighbor_search = SS.K_neighbor_search Kd_tree = SS.Kd_tree Fuzzy_sphere = SS.Fuzzy_sphere Point_2, FT, Gmpq, Segment...
36.107143
124
0.827893
fffc9a6626f17e92e92dd34f27f3e37bcddcfad1
3,690
py
Python
configs/_dynamic_/models/faster_rcnn_fpn_ar50to101_gsync.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
149
2021-06-21T06:18:16.000Z
2022-03-23T08:55:23.000Z
configs/_dynamic_/models/faster_rcnn_fpn_ar50to101_gsync.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
7
2021-07-11T07:52:58.000Z
2022-03-30T11:41:39.000Z
configs/_dynamic_/models/faster_rcnn_fpn_ar50to101_gsync.py
zengming16/GAIA-det
cac6b5601d63aeaa3882cea2256dcb2539fecb34
[ "Apache-2.0" ]
13
2021-06-29T06:06:13.000Z
2022-02-28T01:31:17.000Z
model = dict( type='DynamicFasterRCNN', # train from scratch backbone=dict( type='DynamicResNet', in_channels=3, stem_width=64, body_depth=[4, 6, 29, 4], body_width=[80, 160, 320, 640], num_stages=4, out_indices=(0, 1, 2, 3), conv_cfg=dict(type...
31.538462
77
0.542276
fffc9fdb7b9bfdc27537f546220537fe61137e92
404
py
Python
products/migrations/0004_alter_products_title.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
19
2022-02-16T20:00:08.000Z
2022-03-08T17:38:59.000Z
products/migrations/0004_alter_products_title.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
3
2022-02-16T20:59:11.000Z
2022-02-23T20:40:12.000Z
products/migrations/0004_alter_products_title.py
AminAliH47/PicoStyle
768daccc6f28f08aa848318d633af1a19544e499
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.9 on 2022-02-14 08:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0003_alter_products_title'), ] operations = [ migrations.AlterField( model_name='products', name='title'...
21.263158
64
0.60396
fffcb450b295114e41d55cca2365beb7fdf63f89
4,887
py
Python
segmentation_models/fpn/model.py
akashsengupta1997/segmentation_models
ac2e5f6dd9fb5833c14c4265faf985f817b27885
[ "MIT" ]
null
null
null
segmentation_models/fpn/model.py
akashsengupta1997/segmentation_models
ac2e5f6dd9fb5833c14c4265faf985f817b27885
[ "MIT" ]
null
null
null
segmentation_models/fpn/model.py
akashsengupta1997/segmentation_models
ac2e5f6dd9fb5833c14c4265faf985f817b27885
[ "MIT" ]
null
null
null
from .builder import build_fpn from ..backbones import get_backbone from ..utils import freeze_model DEFAULT_FEATURE_PYRAMID_LAYERS = { 'vgg16': ('block5_conv3', 'block4_conv3', 'block3_conv3'), 'vgg19': ('block5_conv4', 'block4_conv4', 'block3_conv4'), 'resnet18': ('stage4_u...
48.87
125
0.625742
fffcb63d87a87dfdf95e30fcea66e6c7f9da04b9
1,407
py
Python
slick_reporting/helpers.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
slick_reporting/helpers.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
slick_reporting/helpers.py
srijwalzartek/django-slick-reporting
aed9262a3dd83aa28e141301a4b3bf7041be7748
[ "BSD-3-Clause" ]
null
null
null
from collections import OrderedDict def get_calculation_annotation(calculation_field, calculation_method): """ Returns the default django annotation @param calculation_field: the field to calculate ex 'value' @param calculation_method: the aggregation method ex: Sum @return: the annotation ex valu...
29.3125
95
0.67022
fffcdabd10d010bea3e0e626b0316f82374b742c
1,408
py
Python
omaha/site_scons/site_tools/atlmfc_vc16_0.py
Gunanekza/omaha
e73cb9edffaba24bb3b7515f5b48376f922b697e
[ "Apache-2.0" ]
34
2019-11-01T04:26:40.000Z
2022-03-29T03:00:40.000Z
omaha/site_scons/site_tools/atlmfc_vc16_0.py
Gunanekza/omaha
e73cb9edffaba24bb3b7515f5b48376f922b697e
[ "Apache-2.0" ]
1
2019-04-18T20:48:54.000Z
2019-04-18T20:48:54.000Z
omaha/site_scons/site_tools/atlmfc_vc16_0.py
Gunanekza/omaha
e73cb9edffaba24bb3b7515f5b48376f922b697e
[ "Apache-2.0" ]
8
2019-11-01T04:27:53.000Z
2022-03-16T22:17:12.000Z
# Copyright 2019 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, ...
32.744186
77
0.694602
fffcf62b1deaacb994a8c0eb39a7e187d01e3400
4,738
py
Python
formatml/pipelines/codrep/run.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
2
2019-06-07T16:30:51.000Z
2019-10-09T10:10:17.000Z
formatml/pipelines/codrep/run.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
1
2019-07-02T12:55:10.000Z
2019-07-02T12:55:10.000Z
formatml/pipelines/codrep/run.py
src-d/formatml
f052313391a5a2ca47af7859520f968c423024f1
[ "Apache-2.0" ]
3
2019-05-29T13:09:18.000Z
2021-01-28T11:35:01.000Z
from argparse import ArgumentParser from bz2 import open as bz2_open from json import dump as json_dump, load as json_load from pathlib import Path from pickle import load as pickle_load from typing import Optional from torch import load as torch_load, no_grad from torch.utils.data import DataLoader from formatml.dat...
33.602837
88
0.693542
fffd153325b31b6fcb19a08b63b3699899a09489
34,942
py
Python
sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-02-01T18:50:12.000Z
2022-02-01T18:50:12.000Z
sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # -------------------------------------------------------------------------- # pylint: ...
45.616188
119
0.646557