hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
80d4ab9196ae0d1428afc7cb93d38dd105b47bce
3,717
py
Python
ikalog/utils/icon_recoginizer/weapon.py
fetus-hina/IkaLog
bd476da541fcc296f792d4db76a6b9174c4777ad
[ "Apache-2.0" ]
285
2015-08-15T14:38:38.000Z
2022-02-18T15:00:06.000Z
ikalog/utils/icon_recoginizer/weapon.py
fetus-hina/IkaLog
bd476da541fcc296f792d4db76a6b9174c4777ad
[ "Apache-2.0" ]
323
2015-09-24T12:21:34.000Z
2018-05-06T16:34:54.000Z
ikalog/utils/icon_recoginizer/weapon.py
fetus-hina/IkaLog
bd476da541fcc296f792d4db76a6b9174c4777ad
[ "Apache-2.0" ]
72
2015-08-22T00:18:54.000Z
2022-02-18T14:44:20.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # IkaLog # ====== # Copyright (C) 2015 Takeshi HASEGAWA # # 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/l...
31.235294
75
0.641377
2,122
0.570891
0
0
0
0
0
0
741
0.199354
80d598d25cb928d4e75ce7a8868f16d8dbc96650
11,867
py
Python
code/pytorch/utils/mujoco_solver.py
hzm2016/assistive-gym-robosuite
5c529f4444cc386383618bfa584341740a8468f9
[ "MIT" ]
1
2021-11-22T07:45:28.000Z
2021-11-22T07:45:28.000Z
code/pytorch/utils/mujoco_solver.py
hzm2016/assistive-gym-robosuite
5c529f4444cc386383618bfa584341740a8468f9
[ "MIT" ]
null
null
null
code/pytorch/utils/mujoco_solver.py
hzm2016/assistive-gym-robosuite
5c529f4444cc386383618bfa584341740a8468f9
[ "MIT" ]
null
null
null
import math import os import random import numpy as np import torch from tensorboardX import SummaryWriter from tqdm import tqdm from ..methods import DDPG, TD3, SAC from envs.abb.models import utils class Solver(object): def __init__(self, args, env, project_path): self.args = args self.env = e...
42.08156
109
0.555911
10,767
0.907306
0
0
0
0
0
0
1,933
0.162889
80d5c63ff69dba8134d7d97f4b5da991272fad1f
8,536
py
Python
test/partial_log/test_partial_log.py
splunk/docker-logging-plugin
6a5816b4ccba58c33e431b3c763442da65c2a5b3
[ "Apache-2.0" ]
63
2017-10-19T16:44:05.000Z
2022-02-18T23:22:12.000Z
test/partial_log/test_partial_log.py
splunk/docker-logging-plugin
6a5816b4ccba58c33e431b3c763442da65c2a5b3
[ "Apache-2.0" ]
41
2017-12-05T12:30:05.000Z
2022-01-11T21:06:58.000Z
test/partial_log/test_partial_log.py
splunk/docker-logging-plugin
6a5816b4ccba58c33e431b3c763442da65c2a5b3
[ "Apache-2.0" ]
27
2017-11-21T09:45:25.000Z
2022-03-27T09:45:42.000Z
""" Copyright 2018 Splunk, 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, softwar...
39.88785
121
0.606256
0
0
0
0
6,326
0.741097
0
0
3,659
0.428655
80d633265d624cde24edd4834e3b41df832a67e1
639
py
Python
executables/pickle_dictionary_structure_viewer.py
mjvandermeulen/rpi-automation
0b328cab8876929e46235482d217dc4771dfdc6a
[ "MIT" ]
null
null
null
executables/pickle_dictionary_structure_viewer.py
mjvandermeulen/rpi-automation
0b328cab8876929e46235482d217dc4771dfdc6a
[ "MIT" ]
null
null
null
executables/pickle_dictionary_structure_viewer.py
mjvandermeulen/rpi-automation
0b328cab8876929e46235482d217dc4771dfdc6a
[ "MIT" ]
null
null
null
#!/usr/local/bin/env python3 import sys # TODO: This is more generic than just for temperatures! import temperature.temperature_file_tools try: filename = sys.argv[1] except IndexError: print("please provide filename as first and only argument") else: try: data_gen = temperature.temperature_file_...
29.045455
111
0.674491
0
0
0
0
0
0
0
0
210
0.328638
80d6549d6455eb3b023025b15786be0473b6bbe6
641
py
Python
code_example/w2_genMeanSd.py
koonyook/unsupervised-phase-supplementary
09ee8000c79465da8731b5323f2db9a25d7252ab
[ "MIT" ]
null
null
null
code_example/w2_genMeanSd.py
koonyook/unsupervised-phase-supplementary
09ee8000c79465da8731b5323f2db9a25d7252ab
[ "MIT" ]
null
null
null
code_example/w2_genMeanSd.py
koonyook/unsupervised-phase-supplementary
09ee8000c79465da8731b5323f2db9a25d7252ab
[ "MIT" ]
null
null
null
import numpy as np import pickle #this file will do #1. read from list of .pkl files that will become training data #2. save wMean.dat and wSd.dat for input in ["inputHeart/","inputBow/","inputAcrobat/"]: fileList=[ 'data_train.pkl', ] collect=[] for f in fileList: #data=np.load('input/'+f) #(2,-) dataLis...
22.103448
63
0.687988
0
0
0
0
0
0
0
0
240
0.374415
80d6b3fdb21cbf34c945220abf23ee4dc73841af
10,553
py
Python
metadrive/component/road_network/node_road_network.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
125
2021-08-30T06:33:57.000Z
2022-03-31T09:02:44.000Z
metadrive/component/road_network/node_road_network.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
72
2021-08-30T16:23:41.000Z
2022-03-31T19:17:16.000Z
metadrive/component/road_network/node_road_network.py
liuzuxin/metadrive
850c207536531bc85179084acd7c30ab14a66111
[ "Apache-2.0" ]
20
2021-09-09T08:20:25.000Z
2022-03-24T13:24:07.000Z
import copy import logging from typing import List, Tuple, Dict import numpy as np from metadrive.component.lane.abs_lane import AbstractLane from metadrive.component.road_network.road import Road from metadrive.component.road_network.base_road_network import BaseRoadNetwork from metadrive.constants import Decoration ...
39.376866
120
0.607221
10,006
0.948166
670
0.063489
0
0
0
0
2,328
0.220601
80d8125a476591f35f2ad71b32650a81f028ecab
1,468
py
Python
generic_ui/RawTextWidget.py
STMicroelectronics/stm32ai-datalogger
0ba92ced44248e606a5cc68139fdfdc84489fa17
[ "BSD-3-Clause" ]
3
2021-06-28T13:41:12.000Z
2021-07-21T13:06:34.000Z
generic_ui/RawTextWidget.py
STMicroelectronics/stm32ai-datalogger
0ba92ced44248e606a5cc68139fdfdc84489fa17
[ "BSD-3-Clause" ]
null
null
null
generic_ui/RawTextWidget.py
STMicroelectronics/stm32ai-datalogger
0ba92ced44248e606a5cc68139fdfdc84489fa17
[ "BSD-3-Clause" ]
null
null
null
################################################################################### # Copyright (c) 2020-2021 STMicroelectronics. # All rights reserved. # This software is licensed under terms that can be found in the LICENSE file in # the root directory of this software component. # If no LICENSE file c...
38.631579
84
0.620572
522
0.355586
0
0
96
0.065395
0
0
820
0.558583
80d85c5b681feaaae88320d1df947e572214adbf
1,905
py
Python
apps/trade/api/views.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
2
2021-08-17T13:29:21.000Z
2021-09-04T05:00:01.000Z
apps/trade/api/views.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-07-16T11:22:32.000Z
2020-07-16T11:22:32.000Z
apps/trade/api/views.py
dryprojects/MyBlog
ec04ba2bc658e96cddeb1d4766047ca8e89ff656
[ "BSD-3-Clause" ]
1
2020-09-18T10:41:59.000Z
2020-09-18T10:41:59.000Z
#!usr/bin/env python # -*- coding:utf-8 -*- """ @author: nico @file: views.py @time: 2018/08/16 """ from rest_framework import viewsets, mixins, filters, permissions, status, response from rest_framework.decorators import action from dry_rest_permissions.generics import DRYPermissions, DRYGlobalPer...
30.725806
150
0.733333
1,622
0.800988
0
0
445
0.219753
0
0
433
0.213827
80d88468c8e7365b40222afca17976c053b6b8f3
7,243
py
Python
test_QueryPharos.py
kevinxin90/RTX_BioThings_Explorer
16de49de9e0db75c7616a85c2592166ea055faa7
[ "Apache-2.0" ]
1
2018-05-24T13:16:57.000Z
2018-05-24T13:16:57.000Z
test_QueryPharos.py
kevinxin90/RTX_BioThings_Explorer
16de49de9e0db75c7616a85c2592166ea055faa7
[ "Apache-2.0" ]
1
2018-06-01T02:04:23.000Z
2018-06-01T20:21:32.000Z
test_QueryPharos.py
kevinxin90/RTX_BioThings_Explorer
16de49de9e0db75c7616a85c2592166ea055faa7
[ "Apache-2.0" ]
null
null
null
import unittest from QueryPharos import QueryPharos class QueryPharosTestCase(unittest.TestCase): @classmethod def setUpClass(cls): cls.pharos = QueryPharos() def test_query_drug_name_to_targets(self): # bte_result = self.pharos.query_drug_name_to_targets('paclitaxel') # # TODO: B...
52.107914
114
0.54425
7,139
0.985641
0
0
72
0.009941
0
0
3,983
0.54991
80d969efc16e2fceb81dc2c5f9ae3ec495eea52f
2,016
py
Python
setup.py
MyGodIsHe/..-pytest-neo
5a7d3ef6754c03afeb01db189a80c55bba538de6
[ "MIT" ]
45
2019-03-07T12:12:11.000Z
2022-02-01T09:36:30.000Z
setup.py
MyGodIsHe/..-pytest-neo
5a7d3ef6754c03afeb01db189a80c55bba538de6
[ "MIT" ]
6
2019-03-14T09:37:51.000Z
2020-12-01T21:30:15.000Z
setup.py
MyGodIsHe/..-pytest-neo
5a7d3ef6754c03afeb01db189a80c55bba538de6
[ "MIT" ]
1
2019-03-30T22:45:58.000Z
2019-03-30T22:45:58.000Z
from setuptools import setup import codecs # Copied from (and hacked): # https://github.com/pypa/virtualenv/blob/develop/setup.py#L42 def get_version(filename): import os import re here = os.path.dirname(os.path.abspath(__file__)) f = codecs.open(os.path.join(here, filename), encoding='utf-8') ve...
31.5
68
0.609623
0
0
0
0
0
0
0
0
1,007
0.499504
80da5c32e637d7a9cc6af9fdd36bc9ca02fad468
10,646
py
Python
ref_bot/cog/articlerefs.py
tser0f/ref_bot
8945992ec8802a88546494b503d7658cc53d80c5
[ "MIT" ]
null
null
null
ref_bot/cog/articlerefs.py
tser0f/ref_bot
8945992ec8802a88546494b503d7658cc53d80c5
[ "MIT" ]
1
2020-07-02T13:37:44.000Z
2020-07-07T03:09:50.000Z
ref_bot/cog/articlerefs.py
tser0f/ref_bot
8945992ec8802a88546494b503d7658cc53d80c5
[ "MIT" ]
null
null
null
import discord from discord.ext import commands from ref_bot.data_models import Article, Tag, ArticleOwner from ref_bot.article_scraper import scrape_article class ArticleRefs(commands.Cog): def __init__(self, bot, db_session): self.bot = bot self.db_session = db_session self._last_member =...
43.453061
191
0.603231
10,486
0.984971
0
0
7,701
0.72337
7,343
0.689743
2,536
0.238212
80db105d2fbce95f913926d6c0488904c36ac253
694
py
Python
utils/metrics.py
mhubrich/parkingCV
258b60d6cdaa57e47b4f2e79c9afc654d0e930fc
[ "MIT" ]
null
null
null
utils/metrics.py
mhubrich/parkingCV
258b60d6cdaa57e47b4f2e79c9afc654d0e930fc
[ "MIT" ]
null
null
null
utils/metrics.py
mhubrich/parkingCV
258b60d6cdaa57e47b4f2e79c9afc654d0e930fc
[ "MIT" ]
null
null
null
import numpy as np import sklearn.metrics def log_loss(y_true, y_pred): return sklearn.metrics.log_loss(y_true, y_pred, eps=1e-6) def accuracy_score(y_true, y_pred): return sklearn.metrics.accuracy_score(y_true, np.round(y_pred)) def roc_auc_score(y_true, y_pred): return sklearn.metrics.roc_auc_score(...
23.931034
69
0.721902
0
0
0
0
0
0
0
0
0
0
80dbb36c04a0a7b7f2f8a91aa3f142e7ee6319a9
3,015
py
Python
baxter_ras_interface/scripts/backuplistgame.py
gabrieldiaz94/RAS-Baxter-Interface
7766d012617bffd09e42b6b76ea105fb3fe24481
[ "Apache-2.0" ]
1
2022-03-06T15:47:33.000Z
2022-03-06T15:47:33.000Z
baxter_ras_interface/scripts/backuplistgame.py
willandru/RAS-Baxter-Interface
7766d012617bffd09e42b6b76ea105fb3fe24481
[ "Apache-2.0" ]
null
null
null
baxter_ras_interface/scripts/backuplistgame.py
willandru/RAS-Baxter-Interface
7766d012617bffd09e42b6b76ea105fb3fe24481
[ "Apache-2.0" ]
1
2022-03-06T15:46:37.000Z
2022-03-06T15:46:37.000Z
#!/usr/bin/env python #Reference: the baxter_stocking_stuffer project by students in Northwestern's MSR program - Josh Marino, Sabeen Admani, Andrew Turchina and Chu-Chu Igbokwe #Service provided - ObjLocation service - contains x,y,z coordinates of object in baxter's stationary body frame, whether it is ok to grasp an...
31.736842
187
0.698176
0
0
0
0
0
0
0
0
557
0.184743
80ddf655508d2be40c8e5c54e5d6ece64390a188
410
py
Python
smartcar/__init__.py
matteosandrin/python-sdk
45499d5787e4df5e908b6efa52ef95847c7bb6b6
[ "MIT" ]
null
null
null
smartcar/__init__.py
matteosandrin/python-sdk
45499d5787e4df5e908b6efa52ef95847c7bb6b6
[ "MIT" ]
null
null
null
smartcar/__init__.py
matteosandrin/python-sdk
45499d5787e4df5e908b6efa52ef95847c7bb6b6
[ "MIT" ]
null
null
null
__version__ = '1.0.12' from .smartcar import (AuthClient, is_expired, get_user_id, get_vehicle_ids) from .vehicle import Vehicle from .exceptions import ( SmartcarException, ValidationException, AuthenticationException, PermissionException, ResourceNotFoundException, StateException, RateLimitingException, ...
37.272727
76
0.82439
0
0
0
0
0
0
0
0
8
0.019512
80ddf73885657b81588970d4b5f8599da4c9b6a7
2,060
py
Python
Discord Webhook Automation/discord_webhook.py
zYxDevs/Python_Scripts
74ed7df97c9287b966b4139f585ed3a1702f2d29
[ "MIT" ]
14
2021-10-02T14:17:06.000Z
2021-11-08T10:17:14.000Z
Discord Webhook Automation/discord_webhook.py
Naik-G/Python_Scripts
cd975036e126982aaa01da48c94cec1759af6d61
[ "MIT" ]
4
2021-10-03T05:35:11.000Z
2021-10-06T18:05:05.000Z
Discord Webhook Automation/discord_webhook.py
Naik-G/Python_Scripts
cd975036e126982aaa01da48c94cec1759af6d61
[ "MIT" ]
47
2021-10-02T12:07:07.000Z
2021-11-07T11:49:50.000Z
#!/usr/bin/env python3 # Path: Discord Webhook Automation/discord_webhook.py import requests discord_webhook_url = 'your webhook url' Message = { "content": "./Hello_World", "username": "Name for your discord webhook", "avatar_url": "Your Avatar Image URL", "tts": False, "embeds": [ { "title": "Tit...
29.428571
112
0.647087
0
0
0
0
0
0
0
0
1,601
0.777184
80ddf8c8d244690e44871a0fc5d1f5d9d7730557
298
py
Python
Advertising/advertising.py
narenzhang/learnml
c6d5f4b84a7c9c23f93d03b06087f28772a52236
[ "Apache-2.0" ]
null
null
null
Advertising/advertising.py
narenzhang/learnml
c6d5f4b84a7c9c23f93d03b06087f28772a52236
[ "Apache-2.0" ]
null
null
null
Advertising/advertising.py
narenzhang/learnml
c6d5f4b84a7c9c23f93d03b06087f28772a52236
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # _*_ coding : utf-8 _*_ import pandas as pd def run_main(): csv_path = 'Advertising.csv' # pandas 读取数据 data = pd.read_csv(csv_path) x = data[['TV', 'Radio', 'Newspaper']] y = data['Sales'] # 绘制1 plt.plot if __name__ == '__main__': run_main()
16.555556
42
0.583893
0
0
0
0
0
0
0
0
127
0.409677
80df428c3bf27d5c6635b075ac58b6ddf1c4e21a
561
py
Python
python/Python - Settrade Open API Example - Equity.py
settrade/stt-open-api-sdk-example
b2644985ef41957df85a239a033a101435dff2c1
[ "MIT" ]
1
2022-03-03T20:15:34.000Z
2022-03-03T20:15:34.000Z
python/Python - Settrade Open API Example - Equity.py
settrade/stt-open-api-sdk-example
b2644985ef41957df85a239a033a101435dff2c1
[ "MIT" ]
null
null
null
python/Python - Settrade Open API Example - Equity.py
settrade/stt-open-api-sdk-example
b2644985ef41957df85a239a033a101435dff2c1
[ "MIT" ]
null
null
null
import settrade.openapi from settrade.openapi import Investor ############################# login ############################# investor = Investor( app_id="8uuaMP1npccDixrg", app_secret="APX6wnqzk/yoVLIRyQ4ps4Fm13uzbC4tL5nyjAwwCKue", app_code="SANDBOX", broker_id="SANDBOX", is_auto_qu...
28.05
67
0.538324
0
0
0
0
0
0
0
0
245
0.43672
80dfe6a1ff36490beaa2733bf4a9c540f4667373
2,135
py
Python
tests/examples/test_examples.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
63
2018-06-06T11:56:40.000Z
2022-03-22T08:00:59.000Z
tests/examples/test_examples.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
39
2018-07-04T12:40:53.000Z
2022-02-09T23:48:44.000Z
tests/examples/test_examples.py
897615138/tfsnippet-jill
2fc898a4def866c8d3c685168df1fa22083bb143
[ "MIT" ]
34
2018-06-25T09:59:22.000Z
2022-02-23T12:46:33.000Z
import codecs import copy import os import re import subprocess import sys import time import unittest from tfsnippet.utils import TemporaryDirectory, humanize_duration from tests.examples.helper import skipUnlessRunExamplesTests class ExamplesTestCase(unittest.TestCase): """ Test case to ensure all examples...
33.888889
78
0.526464
1,901
0.890398
0
0
1,769
0.828571
0
0
423
0.198126
80e0a8a07fe90eb98c565503e2de90aa68b3020f
705
py
Python
solution-8.py
NiamhOL/pands-problem-set
5a6a8f465cdda89c37321fa78f27eb869ee8fa03
[ "Apache-2.0" ]
2
2019-03-04T19:56:20.000Z
2019-03-28T15:42:26.000Z
solution-8.py
NiamhOL/pands-problem-set
5a6a8f465cdda89c37321fa78f27eb869ee8fa03
[ "Apache-2.0" ]
null
null
null
solution-8.py
NiamhOL/pands-problem-set
5a6a8f465cdda89c37321fa78f27eb869ee8fa03
[ "Apache-2.0" ]
null
null
null
# Solution to problem # # Student: Niamh O'Leary# #ID: GG00376339 # # Write a program that outputs today's date and time in the format. "Monday, January 19th 2019 at 1.15pm"# import datetime now = datetime.datetime.now() #selects todays date and time# print ("Current date and time: " print (now.s...
29.375
125
0.693617
0
0
0
0
0
0
0
0
498
0.706383
80e26fef5bf7a0643771413edee2aa1b4c6728e2
1,888
py
Python
013_Klassen in Micropython/Code/quadrat_klasse.py
hobbyelektroniker/Micropython-Grundlagen
65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27
[ "Unlicense" ]
1
2021-03-31T18:31:52.000Z
2021-03-31T18:31:52.000Z
013_Klassen in Micropython/Code/quadrat_klasse.py
hobbyelektroniker/Micropython-Grundlagen
65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27
[ "Unlicense" ]
null
null
null
013_Klassen in Micropython/Code/quadrat_klasse.py
hobbyelektroniker/Micropython-Grundlagen
65cc6152e2b5b1c1fcb9d5e3150d34bc4cacaa27
[ "Unlicense" ]
1
2020-12-08T08:37:43.000Z
2020-12-08T08:37:43.000Z
''' Objektorientiert Programmierung Eine Klasse für ein Quadrat Version 1.00, 27.02.2021 Der Hobbyelektroniker https://community.hobbyelektroniker.ch https://www.youtube.com/c/HobbyelektronikerCh Der Code kann mit Quellenangabe frei verwendet werden. ''' # Quadrat import math from bewegt_klasse impo...
31.466667
79
0.591631
1,295
0.684461
0
0
0
0
0
0
746
0.394292
80e29a5b17063378ea11a9ba5ec63b825ffd1e08
2,858
py
Python
Utils/fetcher.py
EchoAbstract/soma-fm-player
c1418033998c3fab74a649db98e230ced102e5fc
[ "MIT" ]
1
2019-03-04T10:35:42.000Z
2019-03-04T10:35:42.000Z
Utils/fetcher.py
EchoAbstract/soma-fm-player
c1418033998c3fab74a649db98e230ced102e5fc
[ "MIT" ]
null
null
null
Utils/fetcher.py
EchoAbstract/soma-fm-player
c1418033998c3fab74a649db98e230ced102e5fc
[ "MIT" ]
null
null
null
import urllib2 from bs4 import BeautifulSoup from collections import defaultdict def fetch_html(): resp = urllib2.urlopen("http://somafm.com/listen/") html = resp.read() return html def make_soup(ingredients): return BeautifulSoup(ingredients, 'html.parser') def get_stations(soup): stations =...
27.747573
81
0.586424
0
0
0
0
0
0
0
0
419
0.146606
80e3d5f21275645dfb4b04506fb537a7e5daed1f
5,015
py
Python
Django elements/charts/data_preparation.py
LouisdeBruijn/Medium
afc66ee061c10b7107ba1661d2b9dfed0559dfc3
[ "MIT" ]
41
2020-05-03T19:32:37.000Z
2022-02-02T22:03:07.000Z
Django elements/charts/data_preparation.py
LouisdeBruijn/Medium
afc66ee061c10b7107ba1661d2b9dfed0559dfc3
[ "MIT" ]
2
2021-11-11T03:11:52.000Z
2021-12-16T01:51:13.000Z
Django elements/charts/data_preparation.py
LouisdeBruijn/Medium
afc66ee061c10b7107ba1661d2b9dfed0559dfc3
[ "MIT" ]
45
2020-03-29T02:43:24.000Z
2022-03-15T02:14:27.000Z
from .models import * from nltk.tokenize import TweetTokenizer from nltk.corpus import stopwords from sklearn.feature_extraction.text import TfidfVectorizer import seaborn as sns import numpy as np import time import re import json def hashtag_demographics(route, label): """Return most-used hashtags.""" data...
37.992424
137
0.637488
0
0
0
0
0
0
0
0
696
0.138784
80e57ac43f1c3e92e78c3a47d232135e483fe654
2,838
py
Python
TaxiBJ/src/model/cnn.py
panzheyi/MF-STN
70d875d6b287a398b783e74031bb8237d44e5f8c
[ "MIT" ]
19
2019-10-28T09:41:51.000Z
2022-03-09T02:37:01.000Z
TaxiNYC/src/model/cnn.py
yoshall/MF-STN
70d875d6b287a398b783e74031bb8237d44e5f8c
[ "MIT" ]
null
null
null
TaxiNYC/src/model/cnn.py
yoshall/MF-STN
70d875d6b287a398b783e74031bb8237d44e5f8c
[ "MIT" ]
8
2020-11-20T09:02:30.000Z
2021-08-12T05:50:54.000Z
import numpy as np import mxnet as mx from mxnet import nd from mxnet.gluon import Block, HybridBlock, nn, rnn from config import ROWS, COLUMES, FLOW_OUTPUT_DIM, FLOW_OUTPUT_LEN from model.structure import MFDense, ResUnit N_LOC = ROWS * COLUMES class CNN(Block): """ Convolutional neural network """ ...
39.416667
125
0.559549
2,298
0.809725
0
0
0
0
0
0
702
0.247357
80e5a8f7d466eabb7b526d7540686453e5296d92
883
py
Python
scrape/pull.py
rmilne/wURF
598f73b196f4f134a093f5f501af1f061584e8e7
[ "MIT" ]
null
null
null
scrape/pull.py
rmilne/wURF
598f73b196f4f134a093f5f501af1f061584e8e7
[ "MIT" ]
null
null
null
scrape/pull.py
rmilne/wURF
598f73b196f4f134a093f5f501af1f061584e8e7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # import urllib2 import datetime import time import os APIKEY = 'c881ae04-2d79-46f4-8857-900a0ba71f5e' URLBASE = 'https://na.api.pvp.net/api/lol/na/v4.1/game/ids?beginDate=' start = datetime.date(year=2015, month=4, day=1) epoch = int(start.strftime("%s")) now = int(time.time()) #print epoch cu...
21.536585
85
0.587769
0
0
0
0
0
0
0
0
262
0.296716
80e7b35470ae7027078edaf6b4a8639438f64588
129
py
Python
module05/inflation.py
deepcloudlabs/dcl702-2021-jul-12
1b8442ddfb507f4bdc5fc3e2d1c9188c26f1834b
[ "MIT" ]
null
null
null
module05/inflation.py
deepcloudlabs/dcl702-2021-jul-12
1b8442ddfb507f4bdc5fc3e2d1c9188c26f1834b
[ "MIT" ]
null
null
null
module05/inflation.py
deepcloudlabs/dcl702-2021-jul-12
1b8442ddfb507f4bdc5fc3e2d1c9188c26f1834b
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd df = pd.read_csv("eurostat_hicpv2.csv") eu_inflations = df.iloc[6:] print(eu_inflations)
18.428571
39
0.767442
0
0
0
0
0
0
0
0
21
0.162791
80e89147ce7b44ce4bd4468078ab29db90b94ca9
543
py
Python
pmp/utils/ilp/solvers.py
Koozco/pmp
3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf
[ "MIT" ]
1
2020-03-30T18:56:02.000Z
2020-03-30T18:56:02.000Z
pmp/utils/ilp/solvers.py
Koozco/pmp
3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf
[ "MIT" ]
9
2018-11-19T00:04:52.000Z
2022-03-11T23:51:18.000Z
pmp/utils/ilp/solvers.py
Koozco/pmp
3ad96b01afb2ce6644eb1917ae88ee6d72adc8cf
[ "MIT" ]
2
2018-12-02T10:43:34.000Z
2020-03-30T10:15:50.000Z
from enum import Enum from importlib import import_module class Solvers(Enum): CPLEX = 1 GUROBI = 2 class MissingSolver(Exception): pass def init_solver(solver): try: module = import_module(__solver_module_names[solver], __package__) return module except (ImportError, NameError...
20.884615
109
0.707182
89
0.163904
0
0
0
0
0
0
104
0.191529
80eb165a96cff968c89b9f3c537a4b8ba8c0ae1a
7,315
py
Python
mujpy/muplot.py
RDeRenzi/mujpy
f7aa0eb97c3db668a1b099d00aba8e1bd41d4444
[ "MIT" ]
1
2017-09-10T15:55:23.000Z
2017-09-10T15:55:23.000Z
mujpy/muplot.py
RDeRenzi/mujpy
f7aa0eb97c3db668a1b099d00aba8e1bd41d4444
[ "MIT" ]
1
2019-04-08T21:13:38.000Z
2019-04-08T21:13:38.000Z
mujpy/muplot.py
RDeRenzi/mujpy
f7aa0eb97c3db668a1b099d00aba8e1bd41d4444
[ "MIT" ]
2
2019-03-26T11:47:29.000Z
2021-02-16T22:42:31.000Z
class multiplot(object): ''' plot class (let's see) ''' def __init__(self,time,asymm,title,nscan,histoLength): ''' input: if suite is the multiple run instance time, asymm - 1d and 2d numpy arrays e.g. from rebin(suite.time,suite.asymmetry_multirun(),(0,200...
43.541667
111
0.513192
7,313
0.999727
0
0
0
0
0
0
2,826
0.386329
80eb66e87e9597516ec5942a88129b383f122135
1,308
py
Python
tenning/layers/svdo.py
guilherme9820/Tenning
c0fe7695ef3dd791ea1083f39d6b312266fb0512
[ "MIT" ]
null
null
null
tenning/layers/svdo.py
guilherme9820/Tenning
c0fe7695ef3dd791ea1083f39d6b312266fb0512
[ "MIT" ]
null
null
null
tenning/layers/svdo.py
guilherme9820/Tenning
c0fe7695ef3dd791ea1083f39d6b312266fb0512
[ "MIT" ]
null
null
null
from tensorflow.keras.layers import Layer from tensorflow.keras.layers import Conv2D from tenning.generic_utils import get_object_config import tensorflow as tf class SVDO(Layer): """ Performs symmetric orthogonalization as detailed in the paper 'An Analysis of SVD for Deep Rotation Estimation' (h...
30.418605
99
0.632263
1,144
0.874618
0
0
0
0
0
0
479
0.366208
80eb9de023cd6936eabda295cdecf52af930ed93
3,836
py
Python
App/Graphic/app.py
Joey-Boivin/newegg-tracker
a0ed9337903d0b0a32ddb5713e79313eaf972e28
[ "MIT" ]
null
null
null
App/Graphic/app.py
Joey-Boivin/newegg-tracker
a0ed9337903d0b0a32ddb5713e79313eaf972e28
[ "MIT" ]
null
null
null
App/Graphic/app.py
Joey-Boivin/newegg-tracker
a0ed9337903d0b0a32ddb5713e79313eaf972e28
[ "MIT" ]
null
null
null
""" This is the module containing the graphical user interface for my Newegg tracker application """ from tkinter import * from tkinter import ttk import webbrowser from PIL import ImageTk, Image #Tkinter's image management is outdated root = Tk() root.config(bg="#2D2D2D") root.title("Newegg tracker by Joey-Boivin ...
33.649123
147
0.62122
2,913
0.759385
0
0
178
0.046403
0
0
855
0.222888
80ec147109819e66e84d7d1ec4c6fd44c7807724
1,344
py
Python
MultiLevelForecast/TwoDayAhead/SeasonalPredict.py
AmateurZhang/EnjoyWithDataOnPowerSystems
64227d0505012d2b5650874c65268e85d9751a17
[ "MIT" ]
null
null
null
MultiLevelForecast/TwoDayAhead/SeasonalPredict.py
AmateurZhang/EnjoyWithDataOnPowerSystems
64227d0505012d2b5650874c65268e85d9751a17
[ "MIT" ]
null
null
null
MultiLevelForecast/TwoDayAhead/SeasonalPredict.py
AmateurZhang/EnjoyWithDataOnPowerSystems
64227d0505012d2b5650874c65268e85d9751a17
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Nov 5 21:31:02 2017 @author: thuzhang """ import numpy as np import pandas as pd from matplotlib import pyplot as plt from sklearn.model_selection import train_test_split from sklearn.ensemble import RandomForestRegressor from sklearn.ensemble import GradientBoostingRegres...
24.888889
72
0.770833
0
0
0
0
0
0
0
0
250
0.186012
80ed64fdce9e1b564ee1842e39bc09c80184b169
3,072
py
Python
goto_cloud/migration_commander/tests/test_filesystem_mounting.py
jdepoix/goto_cloud
59bb9923026e1b1dc6e8e08fb6b21300c8e8854a
[ "MIT" ]
2
2018-02-04T23:22:17.000Z
2019-04-15T12:06:04.000Z
goto_cloud/migration_commander/tests/test_filesystem_mounting.py
jdepoix/goto_cloud
59bb9923026e1b1dc6e8e08fb6b21300c8e8854a
[ "MIT" ]
null
null
null
goto_cloud/migration_commander/tests/test_filesystem_mounting.py
jdepoix/goto_cloud
59bb9923026e1b1dc6e8e08fb6b21300c8e8854a
[ "MIT" ]
null
null
null
from unittest.mock import patch, Mock from remote_host_event_logging.public import RemoteHostEventLogger from ..filesystem_mounting import FilesystemMountCommand from ..device_identification import DeviceIdentificationCommand from .utils import MigrationCommanderTestCase class TestFilesystemMountCommand(MigrationC...
34.909091
88
0.624349
2,794
0.909505
0
0
441
0.143555
0
0
728
0.236979
80f056ed61bb17bd4239371c1a53a38aef1a13a6
7,416
py
Python
curvipy/graphing_calculator.py
dylannalex/curvipy
04a03ae270051503cdb583ce0545152eb555a01f
[ "MIT" ]
27
2022-02-22T03:09:22.000Z
2022-03-20T21:12:52.000Z
curvipy/graphing_calculator.py
dylannalex/curvipy
04a03ae270051503cdb583ce0545152eb555a01f
[ "MIT" ]
null
null
null
curvipy/graphing_calculator.py
dylannalex/curvipy
04a03ae270051503cdb583ce0545152eb555a01f
[ "MIT" ]
null
null
null
from typing import Any, Callable from math import sqrt, sin, acos, cos, pi import turtle def _is_int(result: Any) -> bool: try: int(result) return True except Exception: return False def _is_float(result: Any) -> bool: try: float(result) return True except Exc...
31.159664
85
0.58603
7,064
0.952535
0
0
0
0
0
0
1,546
0.208468
80f09cadf4fef85309af1bc1f2bfff6d59c73d5d
6,820
py
Python
hybridq/noise/channel/utils.py
jsmarsha11/hybridq-nasa
42f2998a059e5615dce6ccdbf7ae6dc4954bbce9
[ "Apache-2.0" ]
null
null
null
hybridq/noise/channel/utils.py
jsmarsha11/hybridq-nasa
42f2998a059e5615dce6ccdbf7ae6dc4954bbce9
[ "Apache-2.0" ]
null
null
null
hybridq/noise/channel/utils.py
jsmarsha11/hybridq-nasa
42f2998a059e5615dce6ccdbf7ae6dc4954bbce9
[ "Apache-2.0" ]
null
null
null
""" Authors: Salvatore Mandra (salvatore.mandra@nasa.gov), Jeffrey Marshall (jeffrey.s.marshall@nasa.gov) Copyright © 2021, United States Government, as represented by the Administrator of the National Aeronautics and Space Administration. All rights reserved. The HybridQ: A Hybrid Simulator for Quantum Circ...
34.795918
79
0.630645
0
0
0
0
0
0
0
0
3,296
0.483214
80f195beff11afd51fc9bce5c53d58fbb8eb372a
693
py
Python
anchore_manager/util/proc.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
1
2020-06-22T07:27:41.000Z
2020-06-22T07:27:41.000Z
anchore_manager/util/proc.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
4
2020-11-07T00:16:02.000Z
2020-11-08T20:52:06.000Z
anchore_manager/util/proc.py
dspalmer99/anchore-engine
8c61318be6fec5d767426fa4ccd98472cc85b5cd
[ "Apache-2.0" ]
null
null
null
""" Operations for process things like exit codes, forking etc """ import enum import sys class ExitCode(enum.Enum): """ Exit codes and conditions for consistency in the CLI """ ok = 0 failed = 2 obj_store_failed = 5 # Special value for compat with the object store ops return codes def doe...
15.065217
90
0.600289
217
0.313131
0
0
0
0
0
0
342
0.493506
80f1c40e1c743906487eb873e07151031bc687f3
10,299
py
Python
parser/team23/instruccion/insert_into.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/team23/instruccion/insert_into.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/team23/instruccion/insert_into.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from abstract.instruccion import * from tools.console_text import * from tools.tabla_tipos import * from tools.tabla_simbolos import * from storage import jsonMode as funciones from error.errores import * from instruccion.P_Key import * from instruccion.F_Key import * from instruccion.unique_simple import * from instru...
50.239024
240
0.585202
9,895
0.959469
0
0
0
0
0
0
2,766
0.268205
80f3461d49e869eada5dfdd059bc69af1f558b56
1,079
py
Python
api/python/list_devices/main.py
MvdLande/demos
85d4271ab61c5ff8cef2a3b91785355a935d5aca
[ "MIT" ]
2
2021-11-11T13:47:51.000Z
2021-11-28T03:30:30.000Z
api/python/list_devices/main.py
MvdLande/demos
85d4271ab61c5ff8cef2a3b91785355a935d5aca
[ "MIT" ]
3
2020-05-11T12:18:02.000Z
2022-03-17T13:41:07.000Z
api/python/list_devices/main.py
MvdLande/demos
85d4271ab61c5ff8cef2a3b91785355a935d5aca
[ "MIT" ]
4
2021-08-02T08:42:10.000Z
2022-02-25T23:15:06.000Z
#!/usr/bin/env python # Copyright (C) 2020 Toitware ApS. All rights reserved. import grpc import os import sys import getpass from toit.api import auth_pb2_grpc, auth_pb2, device_pb2_grpc, device_pb2 def create_channel(access_token=None): credentials = grpc.ssl_channel_credentials() if access_token is not None: ...
27.666667
73
0.757183
0
0
0
0
0
0
0
0
173
0.160334
80f7bc024b85ee0e8080b2883866b323df39445c
3,771
py
Python
gym_modular/sensors/gripper_velocity_2d_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/sensors/gripper_velocity_2d_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
gym_modular/sensors/gripper_velocity_2d_sensor.py
TimSchneider42/mbpo
736ba90bbdaddb2a40a6233bc0b78da72235100a
[ "MIT" ]
null
null
null
from typing import Dict, Tuple, List import numpy as np from .continuous_sensor import ContinuousSensor from ..ball_placing_task import BallPlacingTask class GripperVelocity2DSensor(ContinuousSensor[BallPlacingTask]): def __init__(self, robot_name: str, linear_limit_lower: np.ndarray, linear_limit_upper: np.nda...
49.618421
118
0.664015
3,614
0.958366
0
0
1,783
0.472819
0
0
926
0.245558
80f9db9ba96db0e2f07ff84b33c7d8eabf660cf2
1,986
py
Python
src/scrape_tweets.py
chef55555/MSDS692
3d31b1aada18d7781ed42983179333132e5a6584
[ "MIT" ]
null
null
null
src/scrape_tweets.py
chef55555/MSDS692
3d31b1aada18d7781ed42983179333132e5a6584
[ "MIT" ]
null
null
null
src/scrape_tweets.py
chef55555/MSDS692
3d31b1aada18d7781ed42983179333132e5a6584
[ "MIT" ]
null
null
null
import tweepy import csv import time consumer_key = 'YOUR_KEY_HERE' consumer_secret = 'YOUR_SECRET_HERE' access_token = 'YOUR_TOKEN_HERE' access_token_secret = 'YOUR_ACCESS_TOKEN_SECRET_HERE' auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_token_secret) api = twe...
38.192308
126
0.723061
0
0
277
0.139476
0
0
0
0
917
0.461732
80fa599a04868da515185f5ef67ddee93b107047
19,434
py
Python
src/transe.py
DanielSun94/kgenlu
bbf377c6740040cb1a8b656785e7c5bfdb8371d5
[ "MIT" ]
null
null
null
src/transe.py
DanielSun94/kgenlu
bbf377c6740040cb1a8b656785e7c5bfdb8371d5
[ "MIT" ]
null
null
null
src/transe.py
DanielSun94/kgenlu
bbf377c6740040cb1a8b656785e7c5bfdb8371d5
[ "MIT" ]
null
null
null
# the source codes of transE are from https://github.com/mklimasz/TransE-PyTorch from absl import app from absl import flags import os import numpy as np import torch.optim as optim from torch.utils import data as torch_data from torch.utils import tensorboard from collections import Counter from torch.utils import dat...
45.727059
120
0.679016
4,925
0.253422
0
0
334
0.017186
0
0
3,962
0.20387
80fb338cada946f58190ce2610fb07b263d9785b
5,361
py
Python
arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py
agonmer/Saildrone
47e618390be6ef160382bd22bb3bdf2482a8644a
[ "Apache-2.0" ]
3
2019-07-08T11:55:44.000Z
2021-10-06T15:11:18.000Z
arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py
agonmer/Saildrone
47e618390be6ef160382bd22bb3bdf2482a8644a
[ "Apache-2.0" ]
null
null
null
arctic_cruise/saildrone_sentinel2_true_color_image_each_usv.py
agonmer/Saildrone
47e618390be6ef160382bd22bb3bdf2482a8644a
[ "Apache-2.0" ]
3
2020-06-08T06:29:22.000Z
2020-06-16T15:43:46.000Z
#!/usr/bin/env python # coding: utf-8 # In[3]: import gdal import urllib.request import xarray as xr import numpy as np import time from datetime import datetime, date, time, timedelta from matplotlib.pyplot import figure import matplotlib.pyplot as plt import cartopy.crs as ccrs import urllib import requests import...
34.587097
355
0.688864
0
0
0
0
0
0
0
0
1,915
0.357209
80fbb0bb49bd69b0d4c6b4cd19dfc72ce812fabe
896
py
Python
tests/snapshots/snapshots/snap_test_query_snapshots.py
adeoke/django-quarantine-workout-graphql
7d53bb17f8ee9e5276b496d00ff92c4b458af31f
[ "MIT" ]
1
2020-06-01T11:41:52.000Z
2020-06-01T11:41:52.000Z
tests/snapshots/snapshots/snap_test_query_snapshots.py
adeoke/django-quarantine-workout-graphql
7d53bb17f8ee9e5276b496d00ff92c4b458af31f
[ "MIT" ]
5
2020-06-06T15:14:21.000Z
2021-06-10T19:25:55.000Z
tests/snapshots/snapshots/snap_test_query_snapshots.py
adeoke/django-quarantine-workout-graphql
7d53bb17f8ee9e5276b496d00ff92c4b458af31f
[ "MIT" ]
1
2022-01-19T22:17:44.000Z
2022-01-19T22:17:44.000Z
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots['TestAppQueriesSnapshot::test_equipment_against_snapshot equipment_snapshot_resp'] = { 'data': { 'levels': [ { ...
21.853659
99
0.482143
0
0
0
0
0
0
0
0
398
0.444196
80fc4ddd97fb95cbb42815223da62558449dfb21
3,753
py
Python
healthtools/tests/nurse.py
DavidLemayian/HealthTools.KE-api
a0848784985adb91cb0107655186fad81febb054
[ "MIT" ]
9
2019-07-05T12:39:30.000Z
2020-10-02T05:20:36.000Z
healthtools/tests/nurse.py
ChrisAchinga/HealthTools.API
3aeac2e95732d876a720b6681f3f251f81025e3f
[ "MIT" ]
49
2017-07-14T12:33:48.000Z
2019-01-13T18:44:53.000Z
healthtools/tests/nurse.py
ChrisAchinga/HealthTools.API
3aeac2e95732d876a720b6681f3f251f81025e3f
[ "MIT" ]
9
2019-10-09T11:12:05.000Z
2021-07-23T23:19:00.000Z
""" This test for nurses end point """ import unittest from healthtools.manage import app from healthtools.search.nurses import get_nurses_from_nc_registry class TestSetup(unittest.TestCase): def setUp(self): self.client = app.test_client() class TestNurseRegistery(TestSetup): """ This tests nurse...
36.086538
95
0.679456
3,582
0.954436
0
0
0
0
0
0
1,475
0.393019
80fc711d831d4747a33d2fccf9dfb1487eab792f
2,626
py
Python
src/beehive/controls/datamaker.py
i-pan/honeycomb
1f5f8c6c37f2a66b3109412e803994a9dc6ad10d
[ "MIT" ]
2
2020-11-09T05:32:59.000Z
2021-07-06T07:51:50.000Z
src/beehive/controls/datamaker.py
i-pan/honeycomb
1f5f8c6c37f2a66b3109412e803994a9dc6ad10d
[ "MIT" ]
null
null
null
src/beehive/controls/datamaker.py
i-pan/honeycomb
1f5f8c6c37f2a66b3109412e803994a9dc6ad10d
[ "MIT" ]
1
2020-12-10T19:20:22.000Z
2020-12-10T19:20:22.000Z
import logging import numpy as np import pandas as pd import os, os.path as osp from ..builder import build_dataset, build_dataloader def get_train_val_test_splits(cfg, df): if 'split' in df.columns and cfg.data.use_fixed_splits: train_df = df[df.split == 'train'] valid_df = df[df.split == 'vali...
33.240506
68
0.640518
0
0
0
0
0
0
0
0
271
0.103199
037dc06068dc0af9522cd2267f30af8e21e1a997
376
py
Python
Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
1
2018-06-25T19:20:48.000Z
2018-06-25T19:20:48.000Z
Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
null
null
null
Previous_State_On_Repo/WordLevelDataAndProcessing/English/toggler.py
rohun-tripati/pythonRepo
91a7d536f7be05adc15e4d5add0a8a4a08c28c62
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python import os, sys, time import Image import pprint import numpy as np def imgtotoggle (path, outpath): image = Image.open(path) image = image.convert("L") pixels = image.load() size = image.size for j in range(size[0]): for i in range(size[1]): if pixels[j, i] < 200: pixels[j, i] = ...
16.347826
32
0.643617
0
0
0
0
0
0
0
0
24
0.06383
038103ef2240aabfd8cc0c60138c47f1f616f668
1,578
py
Python
libs/Python_Server.py
yingshaoxo/E_Python
1d971e5e16681a5a641d5362e1f2f719fd828fd5
[ "MIT" ]
17
2018-08-24T14:34:20.000Z
2021-02-24T02:40:14.000Z
libs/Python_Server.py
yingshaoxo/E_Python
1d971e5e16681a5a641d5362e1f2f719fd828fd5
[ "MIT" ]
1
2018-06-20T19:11:19.000Z
2018-06-21T13:47:00.000Z
libs/Python_Server.py
yingshaoxo/E_Python
1d971e5e16681a5a641d5362e1f2f719fd828fd5
[ "MIT" ]
6
2019-03-24T15:34:50.000Z
2021-09-30T07:42:20.000Z
import sys import os import subprocess EXEC = sys.executable #local pythonw.exe def run_py_file(py_path): result = subprocess.run([EXEC, py_path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True) return str(result.stdout) def run_py_codes(py_codes): codes = str(py_codes) if ...
27.206897
119
0.612801
0
0
0
0
721
0.456907
0
0
346
0.219265
0382a0bf6c523947842fd109b2d9bb5a190e9498
7,796
py
Python
data.py
domfarolino/memory-cache-experiments
a84bf2138478396a4f3df8023618bea6690b537a
[ "Apache-2.0" ]
null
null
null
data.py
domfarolino/memory-cache-experiments
a84bf2138478396a4f3df8023618bea6690b537a
[ "Apache-2.0" ]
null
null
null
data.py
domfarolino/memory-cache-experiments
a84bf2138478396a4f3df8023618bea6690b537a
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import sys import csv ########################################### # [HISTOGRAM]: Data for HISTOGRAM event. async_script_histogram_data = {"kLoad": 0, "kUse": 0, "kReload": 0, "kRevalidate": 0} def PlotRevalidationPolicyHistogramData(): x_name = async_script_histog...
28.452555
105
0.68843
0
0
0
0
0
0
0
0
2,192
0.28117
0382db25417fae1cb9a82dae1650705be38a3663
2,062
py
Python
paramikosshrsa/learntossh_updated_Sam.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
paramikosshrsa/learntossh_updated_Sam.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
paramikosshrsa/learntossh_updated_Sam.py
ryankimball/pyna
86b67e775925953abdc8d3ecaf786dda08d91bfa
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ## std library imports on top import os ## 3rd party imports below import paramiko ## work assigned to a junior programming asset on our team from jrprogrammer import cmdissue def get_creds(): ip = input("IP: ") user = input("Username: ") # return [ip, user] # return {"ip": i...
26.779221
125
0.56741
0
0
0
0
0
0
0
0
947
0.459263
0384d896ee9aa5e8128b188d58ec411b0796b93b
4,909
py
Python
src/elchempy/indexer/EC_index.py
MyPyDavid/ECpy
b74842b64eca86d2181067fdb22bfa8fa4b2c8bb
[ "MIT" ]
3
2022-01-04T09:06:15.000Z
2022-03-05T08:24:01.000Z
src/elchempy/indexer/EC_index.py
MyPyDavid/ECpy
b74842b64eca86d2181067fdb22bfa8fa4b2c8bb
[ "MIT" ]
null
null
null
src/elchempy/indexer/EC_index.py
MyPyDavid/ECpy
b74842b64eca86d2181067fdb22bfa8fa4b2c8bb
[ "MIT" ]
1
2022-03-05T12:17:49.000Z
2022-03-05T12:17:49.000Z
""" Collects the files of index files of a folder""" from pathlib import Path from collections import Counter from functools import wraps import datetime from typing import Tuple, List, Dict, Union, Collection # import re # import copy import logging logger = logging.getLogger(__name__) logger.setLevel(logging.DEB...
29.220238
94
0.65716
3,424
0.697494
0
0
0
0
0
0
1,316
0.268079
038576c4c54a502ae3fea546a14b8861fa4938ab
1,271
py
Python
Finance_Project/login/migrations/0001_initial.py
Sharvil24600/Personal-Finance-Manager
18f6621422e475cdf262958125f4247d5e208d6d
[ "Apache-2.0" ]
null
null
null
Finance_Project/login/migrations/0001_initial.py
Sharvil24600/Personal-Finance-Manager
18f6621422e475cdf262958125f4247d5e208d6d
[ "Apache-2.0" ]
null
null
null
Finance_Project/login/migrations/0001_initial.py
Sharvil24600/Personal-Finance-Manager
18f6621422e475cdf262958125f4247d5e208d6d
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-26 19:53 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Employee', fields=[ ('empid', models.Intege...
31
84
0.52557
1,178
0.926829
0
0
0
0
0
0
216
0.169945
0385d5fe370d2f68ea94283b4a443ec6d8a7e020
4,102
py
Python
inference_evaluation/inference_utils/image_utils.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
inference_evaluation/inference_utils/image_utils.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
inference_evaluation/inference_utils/image_utils.py
embedded-machine-learning/eml-tools
9c9d12f9b970a42360bc6ca350f3b67ad822b141
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Image handling utilities License_info: # ============================================================================== # ISC License (ISC) # Copyright 2020 Christian Doppler Laboratory for Embedded Machine Learning # # Permission to use, copy, modify, and/or distribu...
35.059829
115
0.684057
0
0
0
0
0
0
0
0
2,987
0.728181
038616b45c12c7c5aab0395285a81ab4509f1b05
2,013
py
Python
molecule/upgrade/tests/test_default.py
cmu-sei/ansible-role-yaf
5fed4a5805e0751e37d8b05d459556b9367041e6
[ "Apache-2.0" ]
null
null
null
molecule/upgrade/tests/test_default.py
cmu-sei/ansible-role-yaf
5fed4a5805e0751e37d8b05d459556b9367041e6
[ "Apache-2.0" ]
1
2021-02-22T15:48:44.000Z
2021-02-22T15:48:44.000Z
molecule/upgrade/tests/test_default.py
cmu-sei/ansible-role-yaf
5fed4a5805e0751e37d8b05d459556b9367041e6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Carnegie Mellon University. # NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING # INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON # UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS # TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANT...
38.711538
87
0.762047
0
0
0
0
164
0.08147
0
0
1,578
0.783905
03895f641c1dcc508acc7bfd2ad2e29b29a5ad04
18,329
py
Python
fuel_agent/fuel_agent/tests/test_nailgun.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
1
2021-04-06T16:13:35.000Z
2021-04-06T16:13:35.000Z
fuel_agent/fuel_agent/tests/test_nailgun.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
fuel_agent/fuel_agent/tests/test_nailgun.py
Axam/nsx-web
4f60d71c05e08740cbdf19b6c9bb0c4cb1e29ad5
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Mirantis, 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...
37.482618
78
0.420809
5,532
0.301817
0
0
1,687
0.09204
0
0
6,622
0.361285
038b2ae476e554b9904f92fe273204412a8e43f0
1,143
py
Python
myblog/myblog/models.py
610yilingliu/blog_for_fun
a4e7b93ec1bbdd4722ea1178910b8c967832b6ec
[ "MIT" ]
null
null
null
myblog/myblog/models.py
610yilingliu/blog_for_fun
a4e7b93ec1bbdd4722ea1178910b8c967832b6ec
[ "MIT" ]
7
2021-03-18T22:47:42.000Z
2022-03-12T00:12:00.000Z
myblog/myblog/models.py
610yilingliu/blog_for_fun
a4e7b93ec1bbdd4722ea1178910b8c967832b6ec
[ "MIT" ]
null
null
null
from django.db import models from django.urls import reverse class Category(models.Model): name = models.CharField(max_length = 100,unique=True) def __str__(self): return self.name class Tag(models.Model): name = models.CharField(max_length = 50,unique=True) def __str__(self): ...
27.878049
70
0.694663
1,071
0.937008
0
0
0
0
0
0
86
0.075241
038c2d87bdf66ab34919ec05d38821c57168aa89
3,100
py
Python
examples/proxy/broadcast.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
1
2021-04-16T14:53:47.000Z
2021-04-16T14:53:47.000Z
examples/proxy/broadcast.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
2
2020-12-15T09:13:43.000Z
2020-12-16T08:02:41.000Z
examples/proxy/broadcast.py
KangFengjian/maro
2694a75731d5174ba5b33780670ba38d776d8c5a
[ "MIT" ]
1
2021-10-01T09:17:43.000Z
2021-10-01T09:17:43.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import multiprocessing as mp from maro.communication import Proxy, SessionType def worker(group_name): """ The main worker logic includes initialize proxy and handle jobs from the master. Args: group_name (str): Identifie...
36.904762
117
0.662903
0
0
0
0
0
0
0
0
1,636
0.527742
038c3b268e2edad7c0c53700732f427733b24ccf
475
py
Python
pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
4
2020-02-14T10:50:03.000Z
2022-03-25T04:15:06.000Z
pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
60
2020-09-14T09:10:20.000Z
2022-03-25T17:51:42.000Z
pyobs/comm/xmpp/xep_0009_timeout/stanza/RPC.py
pyobs/pyobs-core
e3401e63eb31587c2bc535f7346b7e4ef69d64ab
[ "MIT" ]
2
2020-10-14T09:34:57.000Z
2021-04-27T09:35:57.000Z
from sleekxmpp.xmlstream.stanzabase import ElementBase class MethodTimeout(ElementBase): name = 'methodTimeout' namespace = 'jabber:iq:rpc' plugin_attrib = 'method_timeout' interfaces = set(('timeout',)) subinterfaces = set(()) plugin_attrib_map = {} plugin_tag_map = {} def get_timeou...
26.388889
58
0.684211
417
0.877895
0
0
0
0
0
0
73
0.153684
038cf33c1d7fd6155754a4405e0fe8c36ec12927
543
py
Python
rospy-builder/setup.py
timlukins/simple
c1ed66d79167f04e09e17f61cb2f3c0259c24da0
[ "Apache-2.0" ]
null
null
null
rospy-builder/setup.py
timlukins/simple
c1ed66d79167f04e09e17f61cb2f3c0259c24da0
[ "Apache-2.0" ]
null
null
null
rospy-builder/setup.py
timlukins/simple
c1ed66d79167f04e09e17f61cb2f3c0259c24da0
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup( name="rospy-builder", version="0.2.0", description="rospy package build tool", author="Tamamki Nishino", author_email="otamachan@gmail.com", url="https://rospypi.github.io/simple", packages=["rospy_builder"], install_requires=[ "catkin_pkg", ...
22.625
70
0.581952
0
0
0
0
0
0
0
0
261
0.480663
038e61fc70b89533f7fa02d99b0ce5d016a01e70
270
py
Python
gatenlp/processing/matcher.py
gitter-badger/python-gatenlp
bfed863b404cfd62c98a6cb08ad287c3b4b6ccae
[ "Apache-2.0" ]
30
2020-04-18T12:28:15.000Z
2022-02-18T21:31:18.000Z
gatenlp/processing/matcher.py
gitter-badger/python-gatenlp
bfed863b404cfd62c98a6cb08ad287c3b4b6ccae
[ "Apache-2.0" ]
133
2019-10-16T07:41:59.000Z
2022-03-31T07:27:07.000Z
gatenlp/processing/matcher.py
gitter-badger/python-gatenlp
bfed863b404cfd62c98a6cb08ad287c3b4b6ccae
[ "Apache-2.0" ]
4
2021-01-20T08:12:19.000Z
2021-10-21T13:29:44.000Z
""" Module that defines classes for matchers other than gazetteers which match e.g. regular expressions of strings or annotations. """ class StringRegexMatcher: """ NOT YET IMPLEMENTED """ pass # class AnnotationRegexMatcher: # """ """ # pass
15
99
0.67037
75
0.277778
0
0
0
0
0
0
221
0.818519
038e6d50ab6c21396044a16b0e1fba76ef2bb5a3
5,045
py
Python
bacpypes/bvll/bip_simple.py
cbergmiller/bacpypes
7b1f2e989787c2c1f807680fee5ee7a71b3689ab
[ "MIT" ]
1
2018-01-11T13:10:15.000Z
2018-01-11T13:10:15.000Z
bacpypes/bvll/bip_simple.py
cbergmiller/bacpypes
7b1f2e989787c2c1f807680fee5ee7a71b3689ab
[ "MIT" ]
null
null
null
bacpypes/bvll/bip_simple.py
cbergmiller/bacpypes
7b1f2e989787c2c1f807680fee5ee7a71b3689ab
[ "MIT" ]
null
null
null
import logging from ..comm import Client, Server from ..link import Address, LocalBroadcast, PDU from .bvlpdu import ForwardedNPDU, OriginalBroadcastNPDU, OriginalUnicastNPDU, ReadBroadcastDistributionTableAck, \ ReadForeignDeviceTableAck, Result, WriteBroadcastDistributionTable, ReadBroadcastDistributionTable, \ ...
45.863636
117
0.636075
4,507
0.89336
0
0
0
0
0
0
928
0.183944
038f3d71a5ee7441b570179467e32a175ce1b735
8,174
py
Python
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
classifier.py
maxvays/TCGA_classifier
ad3b92ac76273e0701e9b41ce2e4aa3688f597a5
[ "MIT" ]
null
null
null
''' Trains TensorFlow DNNClassifier on training examples in TFRecord format, with each training example comprising methylation betas for one aliquot and the 0/1 label. Outputs statistics on the number of input features with non-zero weights in the hidden layer (dnn/hiddenlayer_0/kernel). Upon completion of training, wr...
33.363265
148
0.661488
0
0
0
0
0
0
0
0
2,770
0.338879
038f505b334cb3a60e56c15adf216d9924d30d0c
4,721
py
Python
pytint/interpreters.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
1
2020-08-14T19:41:45.000Z
2020-08-14T19:41:45.000Z
pytint/interpreters.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
null
null
null
pytint/interpreters.py
semicolonTransistor/PyTint
0f70fe756c285cda38b3a91318af02382a505263
[ "MIT" ]
null
null
null
from typing import List, Deque, Dict, Set, Iterable Symbol = str State = str class FAConfiguration: def __init__(self, tape: List[Symbol], state: State, symbol_read: Symbol, prev_index: int, epsilon_set=None): if epsilon_set is None: epsilon_set = set() self.tape = tape self....
38.696721
113
0.606863
4,493
0.951101
0
0
0
0
0
0
711
0.150508
03931adf4192a67a2e5bf6d1a7a219b56c9a984e
5,893
py
Python
src/prediction_knn.py
pedrohenriquebr/web-face-recognition
5a1fac7ce6e4186bca33f7e0ead2de42670786e0
[ "MIT" ]
1
2020-09-14T03:46:12.000Z
2020-09-14T03:46:12.000Z
src/prediction_knn.py
pedrohenriquebr/web-face-recognition
5a1fac7ce6e4186bca33f7e0ead2de42670786e0
[ "MIT" ]
13
2019-01-21T22:11:33.000Z
2019-08-18T18:47:26.000Z
src/prediction_knn.py
pedrohenriquebr/web-face-recognition
5a1fac7ce6e4186bca33f7e0ead2de42670786e0
[ "MIT" ]
null
null
null
import math from sklearn import neighbors import os from os import environ import os.path import pickle import face_recognition from face_recognition.face_recognition_cli import image_files_in_folder import sys ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'} THRESHOLD = os.getenv('THRESHOLD', 'TRUE') def predict_frame(...
42.092857
119
0.686408
0
0
0
0
0
0
0
0
2,523
0.428135
039335152213cd42a81495fdc65184f34dc5e488
510
py
Python
pip_services_runtime/cache/__init__.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
pip_services_runtime/cache/__init__.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
pip_services_runtime/cache/__init__.py
pip-services-archive/pip-services-runtime-python
70eca1ffc44bfdc45c9c65b0ee347fa578368849
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pip_services_runtime.cache.__init__ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cache module initialization :copyright: Digital Living Software Corp. 2015-2016, see AUTHORS for more details. :license: MIT, see LICENSE for more details. """ __all__ = ['CacheEntry', 'Ab...
26.842105
86
0.67451
0
0
0
0
0
0
0
0
340
0.666667
03942ff247857cfc7ab89958bfa86b31937706ed
269
py
Python
mytime/mytime.py
lamter/mydealutil
26934e6e61b40327cb9cabc43e41cd01caf5bd2b
[ "MIT" ]
null
null
null
mytime/mytime.py
lamter/mydealutil
26934e6e61b40327cb9cabc43e41cd01caf5bd2b
[ "MIT" ]
null
null
null
mytime/mytime.py
lamter/mydealutil
26934e6e61b40327cb9cabc43e41cd01caf5bd2b
[ "MIT" ]
null
null
null
# coding: utf-8 import doctest import datetime def d2s(date): """ 日期转为字符串 >>> d2s(datetime.date(2016, 8, 16)) '2016-08-16' :param date: :return: """ return date.strftime("%Y-%m-%d") if __name__ == "__mian__": doctest.testmod()
12.809524
39
0.565056
0
0
0
0
0
0
0
0
161
0.568905
039430910e7060e427d541a78522663bedae56d1
4,342
py
Python
lejian/apis/user.py
PuZheng/LEJAIN-backend
1647b63cb409842566f3d2cd9771f8b8856c1a03
[ "MIT" ]
null
null
null
lejian/apis/user.py
PuZheng/LEJAIN-backend
1647b63cb409842566f3d2cd9771f8b8856c1a03
[ "MIT" ]
13
2015-10-23T04:43:51.000Z
2015-12-19T14:30:33.000Z
lejian/apis/user.py
PuZheng/lejian-backend
1647b63cb409842566f3d2cd9771f8b8856c1a03
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- import os.path from flask import _request_ctx_stack, current_app, request, url_for from flask.ext import login from flask.ext.principal import identity_changed, Identity, AnonymousIdentity from itsdangerous import URLSafeTimedSerializer, BadTimeSignature from sqlalchemy.orm.exc import NoResultFo...
31.23741
79
0.638415
2,446
0.557175
0
0
1,600
0.364465
0
0
773
0.176082
03949fe3c139236ce23fd812f327cdb38c04a7b6
9,449
py
Python
pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py
pymtl/pymtl3
1cb7ade157a20c8264e777c0992f4751236c085b
[ "BSD-3-Clause" ]
152
2020-06-03T02:34:11.000Z
2022-03-30T04:16:45.000Z
pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py
pymtl/pymtl3
1cb7ade157a20c8264e777c0992f4751236c085b
[ "BSD-3-Clause" ]
33
2020-05-19T15:42:52.000Z
2022-03-03T20:56:41.000Z
pymtl3/passes/backends/verilog/translation/structural/VStructuralTranslatorL4.py
pymtl/pymtl3
1cb7ade157a20c8264e777c0992f4751236c085b
[ "BSD-3-Clause" ]
22
2020-05-18T13:42:05.000Z
2022-03-11T08:37:51.000Z
#========================================================================= # VStructuralTranslatorL4.py #========================================================================= """Provide SystemVerilog structural translator implementation.""" from textwrap import dedent from pymtl3.passes.backends.generic.structura...
40.728448
97
0.610223
8,695
0.920203
0
0
0
0
0
0
2,583
0.273362
0396a6b05dfc7e436c9b8b5a48d97d3c46c80580
4,822
py
Python
utils/load.py
KyleDavisSA/pde-surrogate
41ad2c9eb73c323e389174080f4b3df6cbd3c900
[ "MIT" ]
null
null
null
utils/load.py
KyleDavisSA/pde-surrogate
41ad2c9eb73c323e389174080f4b3df6cbd3c900
[ "MIT" ]
null
null
null
utils/load.py
KyleDavisSA/pde-surrogate
41ad2c9eb73c323e389174080f4b3df6cbd3c900
[ "MIT" ]
null
null
null
""" Load args and model from a directory """ import torch from torch.utils.data import DataLoader, TensorDataset from argparse import Namespace import h5py import json import meshio import numpy as np def load_args(run_dir): with open(run_dir + '/args.txt') as args_file: args = Namespace(**json.load(arg...
38.576
115
0.592285
0
0
0
0
0
0
0
0
1,214
0.251763
03970b2533b2ca57d1a6281354a0bf6b80e84225
2,324
py
Python
tests/fs/test_base.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
tests/fs/test_base.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
tests/fs/test_base.py
mikiec84/mrjob
801fffffdc6af860edd7813c948f9da341305b21
[ "Apache-2.0" ]
null
null
null
# Copyright 2009-2015 Yelp and Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
34.176471
74
0.61833
1,502
0.646299
0
0
0
0
0
0
944
0.406196
0397f4e8843e1786622b1eaaa945cb10043ae58c
931
py
Python
WebODM-master/app/templatetags/plugins.py
abhinavsri000/UAVision
895fd883c1f5f492b4dcb573568b60ef03132cf6
[ "MIT" ]
null
null
null
WebODM-master/app/templatetags/plugins.py
abhinavsri000/UAVision
895fd883c1f5f492b4dcb573568b60ef03132cf6
[ "MIT" ]
8
2019-11-24T14:15:19.000Z
2020-04-19T09:06:04.000Z
WebODM-master/app/templatetags/plugins.py
abhinavsri000/UAVision
895fd883c1f5f492b4dcb573568b60ef03132cf6
[ "MIT" ]
null
null
null
from django import template from app.plugins import get_active_plugins import itertools register = template.Library() @register.simple_tag(takes_context=False) def get_plugins_js_includes(): # Flatten all urls for all plugins js_urls = list(itertools.chain(*[plugin.get_include_js_urls() for plugin in get_acti...
40.478261
112
0.745435
0
0
0
0
806
0.865736
0
0
178
0.191192
03998c5d830b7f944385c3c0a7a6f0123d3a1156
1,114
py
Python
dask/store/tests/test_store.py
rolando-contribute/dask
a7e7ef16475e0486f3d3e8e80016f9a23f62c710
[ "BSD-3-Clause" ]
null
null
null
dask/store/tests/test_store.py
rolando-contribute/dask
a7e7ef16475e0486f3d3e8e80016f9a23f62c710
[ "BSD-3-Clause" ]
null
null
null
dask/store/tests/test_store.py
rolando-contribute/dask
a7e7ef16475e0486f3d3e8e80016f9a23f62c710
[ "BSD-3-Clause" ]
1
2021-11-11T13:45:57.000Z
2021-11-11T13:45:57.000Z
from dask.store import Store from operator import add, mul from dask.utils import raises def inc(x): return x + 1 def test_basic(): s = Store() s['x'] = 1 s['y'] = (inc, 'x') s['z'] = (add, 'x', 'y') assert s.data == set(['x']) assert s['z'] == 3 assert 'x' in s.data assert s.c...
21.018868
60
0.528725
0
0
0
0
0
0
0
0
90
0.08079
0399f8d11a55a533cbe1bcfb45223a3acc4ce972
4,132
py
Python
omh_nbi/handlers/uni_set.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
omh_nbi/handlers/uni_set.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
omh_nbi/handlers/uni_set.py
BroadbandForum/obbaa-vomci
949ad64e1b0521a892f223b7cf97e4e792b2ea1f
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Broadband Forum # # 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 writi...
37.225225
121
0.669409
2,626
0.635528
0
0
0
0
0
0
2,040
0.493708
039bf52827205dd5799cf017fb621c4a333c409f
4,269
py
Python
application/dash_application/views/runreport.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
2
2020-03-27T21:20:20.000Z
2022-02-09T07:42:51.000Z
application/dash_application/views/runreport.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
89
2019-06-06T18:31:19.000Z
2022-03-07T20:38:36.000Z
application/dash_application/views/runreport.py
oicr-gsi/dashi
34bf96a7d447095df525df3ad27dbe10f4e3dde0
[ "MIT" ]
2
2019-06-06T17:50:53.000Z
2019-06-06T17:52:32.000Z
import dash_html_components as html import dash_core_components as core from dash.dependencies import Input, Output from ..dash_id import init_ids import json import pandas import numpy import plotly.figure_factory as ff import gsiqcetl.load from gsiqcetl.runreport.constants import CacheSchema page_name = "runreport/...
31.160584
88
0.635278
0
0
0
0
2,276
0.533146
0
0
767
0.179667
039d26f5b0893b66b5a9af6d7de3662450287ccc
4,570
py
Python
app.py
learnTech/tass-calendar
c0f130438d594b5856e9f24917d864a1fa5dfeda
[ "MIT" ]
null
null
null
app.py
learnTech/tass-calendar
c0f130438d594b5856e9f24917d864a1fa5dfeda
[ "MIT" ]
null
null
null
app.py
learnTech/tass-calendar
c0f130438d594b5856e9f24917d864a1fa5dfeda
[ "MIT" ]
null
null
null
from flask import Flask, escape, request, make_response import os import requests from Crypto.Cipher import AES import urllib import base64 from datetime import datetime, timedelta # These variables should be configured as per your own parameters for each application in your API Gateway Maintanence portal. # They can ...
35.426357
126
0.650109
0
0
0
0
317
0.069365
0
0
1,855
0.405908
039d58f8df8f1a6c6b5b34a51d35079ea0d2d111
948
py
Python
oppoudpsdk/async_helpers.py
simbaja/oppoudpsdk
e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59
[ "MIT" ]
1
2022-02-17T20:17:21.000Z
2022-02-17T20:17:21.000Z
oppoudpsdk/async_helpers.py
simbaja/oppoudpsdk
e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59
[ "MIT" ]
null
null
null
oppoudpsdk/async_helpers.py
simbaja/oppoudpsdk
e2b08ce51a15ced6c4e96583a9b61b21f6a8cc59
[ "MIT" ]
null
null
null
import asyncio from typing import AsyncIterator class OppoStreamIterator: def __init__(self, reader: asyncio.StreamReader): self._reader = reader def __aiter__(self): return self async def __anext__(self): val = await self._reader.readuntil(b'\r') if val == b'': raise StopAsyncIterati...
29.625
118
0.712025
288
0.303797
604
0.637131
0
0
741
0.781646
8
0.008439
039ddd7ec3fbf7309dac9c7083e3a7f3f5c0a95b
3,455
py
Python
Project-2/Ishan Pandey/google_search.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
1
2021-06-03T16:08:33.000Z
2021-06-03T16:08:33.000Z
Project-2/Ishan Pandey/google_search.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
16
2021-04-27T12:58:03.000Z
2021-05-28T14:02:14.000Z
Project-2/Ishan Pandey/google_search.py
Mercury1508/IEEE-LEAD-2.0
91d24ccf2f24c62f92f0d23bcfcb3988e6d5acd8
[ "MIT" ]
70
2021-04-26T13:48:35.000Z
2021-05-28T21:04:34.000Z
from PIL import ImageTk import PIL.Image from tkinter import * import urllib from bs4 import BeautifulSoup import requests from selenium import webdriver # -------URL generator---------- def url_gen(search_term): search_term = (urllib.parse.quote(search_term, safe='')) template = f"https://www.google.com/sea...
30.307018
139
0.707959
0
0
0
0
0
0
0
0
652
0.188712
039ffde3f9ae262159889d92dcb803cf3d4e8069
1,910
py
Python
cooper/demo/sweep_weights.py
ajclaros/rl_legged_walker
26d0e124ef38045943449c2772b966571117683b
[ "MIT" ]
null
null
null
cooper/demo/sweep_weights.py
ajclaros/rl_legged_walker
26d0e124ef38045943449c2772b966571117683b
[ "MIT" ]
null
null
null
cooper/demo/sweep_weights.py
ajclaros/rl_legged_walker
26d0e124ef38045943449c2772b966571117683b
[ "MIT" ]
null
null
null
""" To run this module, execute `python -m cooper.demo.sweep_weights` from this repository's base directory. To save the outputs to a file, use stdout redirection: `python -m cooper.demo.sweep_weights > data.csv` """ from typing import List from typing_extensions import TypeAlias from multiprocessing import P...
26.527778
89
0.669634
0
0
0
0
0
0
0
0
533
0.279058
03a0253a80d8409783b6104ce76182534fc2fd5c
494
py
Python
en/add_symbol.py
Gabriel-Chen/Narcissus
998a9d9c4dfed0e537c934acd94389aeeb35cf6b
[ "MIT" ]
null
null
null
en/add_symbol.py
Gabriel-Chen/Narcissus
998a9d9c4dfed0e537c934acd94389aeeb35cf6b
[ "MIT" ]
null
null
null
en/add_symbol.py
Gabriel-Chen/Narcissus
998a9d9c4dfed0e537c934acd94389aeeb35cf6b
[ "MIT" ]
null
null
null
import json words_sheet = open('key_words_en.json', 'r') try: reader = json.load(words_sheet) words_sheet.close() for item in reader: key_word = item['Environmental Keywords in English'] symbol = item['symbol'] f = open(key_word + '.json', 'r') gf = json.load(f) f.cl...
26
60
0.566802
0
0
0
0
0
0
0
0
100
0.202429
03a07eb534129cfd4a3571d4128f4f075810e968
866
py
Python
code/dextrems-independence/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py
humancomputerintegration/dextrEMS
7a355ee5138d56998ccc99011e5ad4c26a6fd944
[ "MIT" ]
4
2021-09-30T19:22:36.000Z
2022-01-11T05:20:37.000Z
code/dextrems-pose-precision/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py
humancomputerintegration/dextrEMS
7a355ee5138d56998ccc99011e5ad4c26a6fd944
[ "MIT" ]
null
null
null
code/dextrems-pose-precision/rehastim-integration-lib/ems_interface/tools-and-abstractions/sweepdown.py
humancomputerintegration/dextrEMS
7a355ee5138d56998ccc99011e5ad4c26a6fd944
[ "MIT" ]
null
null
null
#!/sr/bin/python # Filename: sweepdown.py import singlepulse import time version = '0.1' def sweepdown(channel,pulse_width,min_amp_val,max_amp_val,slope_decay,delay_val,repetitions,ems): min_val = min_amp_val max_val = max_amp_val slope = slope_decay delay = delay_val reps = re...
33.307692
97
0.569284
0
0
0
0
0
0
0
0
81
0.093533
03a15bc2b5fae16f8bf2447da7c6452fa67788e4
12,718
py
Python
ml/tensorflow/iris/pipeline.py
obulpathi/cloud
17d5f5cf78209868cec42de912fdfa5631283b1e
[ "Apache-2.0" ]
4
2015-10-29T13:15:54.000Z
2016-10-11T13:43:24.000Z
ml/tensorflow/iris/pipeline.py
datalabai/cloud
5f2ef4abb8458f948414d28b4830de74b55a0636
[ "Apache-2.0" ]
null
null
null
ml/tensorflow/iris/pipeline.py
datalabai/cloud
5f2ef4abb8458f948414d28b4830de74b55a0636
[ "Apache-2.0" ]
null
null
null
#/!/usr/bin/env python # Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
37.964179
80
0.647193
0
0
0
0
0
0
0
0
3,930
0.309011
03a171ff1e04756ab7e71d65f6b4386a31a3421e
2,453
py
Python
volatility/volatility_compare.py
larrys54321/quant_corner
3dc6f3f3d1ce1fa002c226bd5c5f845b91710687
[ "MIT" ]
null
null
null
volatility/volatility_compare.py
larrys54321/quant_corner
3dc6f3f3d1ce1fa002c226bd5c5f845b91710687
[ "MIT" ]
null
null
null
volatility/volatility_compare.py
larrys54321/quant_corner
3dc6f3f3d1ce1fa002c226bd5c5f845b91710687
[ "MIT" ]
null
null
null
import yfinance as yf from datetime import datetime import pandas as pd import matplotlib.pyplot as plt import numpy as np from arch import arch_model from volatility.utils import get_percent_chg, Option, set_plot, get_ATR start = datetime(2000, 1, 1) end = datetime(2021, 3, 17) symbol = 'QQQ' tickerData = yf.Ticker(...
42.293103
110
0.653893
0
0
0
0
0
0
0
0
305
0.124338
03a24ae5d5f90ce732d9ff0c7b909cd8a3827243
1,588
py
Python
enhanced_purchase.py
RadekD/gmp
5b413ef71f09389f80afdd94750189c4b34fde99
[ "BSD-2-Clause" ]
null
null
null
enhanced_purchase.py
RadekD/gmp
5b413ef71f09389f80afdd94750189c4b34fde99
[ "BSD-2-Clause" ]
null
null
null
enhanced_purchase.py
RadekD/gmp
5b413ef71f09389f80afdd94750189c4b34fde99
[ "BSD-2-Clause" ]
null
null
null
from .event import event def enhanced_item(name, unit_price, quantity=None, item_id=None, category=None, brand=None, variant=None, **extra_data): payload = { 'nm': name, 'pr': str(unit_price), 'qt': quantity or 1 } if item_id: payload['id'] = item_id if category: paylo...
26.032787
76
0.612091
0
0
872
0.549118
0
0
0
0
149
0.093829
03a35033c40c291fd45a784eb8bab0f9516b6496
5,022
py
Python
modules/manager.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
modules/manager.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
modules/manager.py
horsy-ml/horsy
1161df2e83c201784ea674bd1d53e76831b15a0f
[ "MIT" ]
null
null
null
import json import threading from rich import print from modules.request import request import modules.vars as horsy_vars import os import zipfile from modules.virustotal import scan_to_cli from modules.http_status import handle from ezzdl import dl def install(package): """ Install an app :param package:...
35.617021
110
0.545599
0
0
0
0
0
0
0
0
1,869
0.372162
03a4223d11ef6ce96b39c23302d12d9c2d63b9be
1,310
py
Python
setup.py
aheadlead/download_wrapper
036bc7cb071eadc0bc24a445bcaa5c2305d48083
[ "MIT" ]
1
2021-06-20T14:22:11.000Z
2021-06-20T14:22:11.000Z
setup.py
aheadlead/download_wrapper
036bc7cb071eadc0bc24a445bcaa5c2305d48083
[ "MIT" ]
null
null
null
setup.py
aheadlead/download_wrapper
036bc7cb071eadc0bc24a445bcaa5c2305d48083
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 import sys import download_wrapper from setuptools import setup, find_packages cmdclass = {} try: from sphinx.setup_command import BuildDoc cmdclass = {'build_sphinx': BuildDoc} except ImportError: pass name = download_wrapper.__NAME__ version = download_wrapper.__V...
26.734694
51
0.654198
0
0
0
0
0
0
0
0
403
0.307634
03a5e21dafdefde75656c0d87df88f69357dab32
167
py
Python
pandas_xyz/__init__.py
aaron-schroeder/pandas-xyz
1620ee48c4da937abd5a5cba21daac6cfe10f9bd
[ "MIT" ]
null
null
null
pandas_xyz/__init__.py
aaron-schroeder/pandas-xyz
1620ee48c4da937abd5a5cba21daac6cfe10f9bd
[ "MIT" ]
null
null
null
pandas_xyz/__init__.py
aaron-schroeder/pandas-xyz
1620ee48c4da937abd5a5cba21daac6cfe10f9bd
[ "MIT" ]
null
null
null
from .accessor import PositionAccessor # from .algorithms import * # from .scalar import flat_earth, great_circle __version__ = '0.0.5' __all__ = ['PositionAccessor']
27.833333
46
0.772455
0
0
0
0
0
0
0
0
98
0.586826
03a72e466e1226d0b6e3c163d098b311997359d4
149
py
Python
tubbs/formatter/scala/__init__.py
tek/tubbs
cd4c174c31b6c58a6935ca8a5f0f141377a9a04c
[ "MIT" ]
null
null
null
tubbs/formatter/scala/__init__.py
tek/tubbs
cd4c174c31b6c58a6935ca8a5f0f141377a9a04c
[ "MIT" ]
null
null
null
tubbs/formatter/scala/__init__.py
tek/tubbs
cd4c174c31b6c58a6935ca8a5f0f141377a9a04c
[ "MIT" ]
null
null
null
from tubbs.formatter.scala.breaker import VimBreaker from tubbs.formatter.scala.indenter import VimIndenter __all__ = ('VimBreaker', 'VimIndenter')
29.8
54
0.818792
0
0
0
0
0
0
0
0
25
0.167785
03a8d439dddaf2665f37e662edaa92e5c9ecce9c
9,055
py
Python
tests/yuv_test.py
antmicro/raviewer
7529664d37e994d4c2f4c450a5577b79d73c4bb0
[ "Apache-2.0" ]
12
2021-11-18T09:38:34.000Z
2022-03-24T19:33:44.000Z
tests/yuv_test.py
antmicro/raviewer
7529664d37e994d4c2f4c450a5577b79d73c4bb0
[ "Apache-2.0" ]
1
2022-02-14T12:07:02.000Z
2022-03-21T19:29:11.000Z
tests/yuv_test.py
antmicro/raviewer
7529664d37e994d4c2f4c450a5577b79d73c4bb0
[ "Apache-2.0" ]
null
null
null
import unittest import numpy import os from unittest.mock import (Mock, patch) from raviewer.parser.yuv import ParserYUV420, ParserYUV422, ParserYUV420Planar, ParserYUV422Planar from enum import Enum class DummyPixelFormat(Enum): YUV = 1 YVU = 2 UYVY = 3 YUYV = 4 class DummyEndianness(Enum): LIT...
42.313084
98
0.570955
8,791
0.970845
0
0
5,616
0.62021
0
0
538
0.059415
03ab0016f0b0391b66c8b9b3187fa06f886fc4f6
7,179
py
Python
combo_e2e/pages/uicomponents/datepicker.py
AdCombo/combo-e2e
7b28240ef749d36f78342610f8c8d10312b2733b
[ "MIT" ]
2
2021-06-23T07:25:37.000Z
2021-06-23T07:32:22.000Z
combo_e2e/pages/uicomponents/datepicker.py
AdCombo/combo-e2e
7b28240ef749d36f78342610f8c8d10312b2733b
[ "MIT" ]
5
2021-08-02T16:54:17.000Z
2022-03-17T15:04:58.000Z
combo_e2e/pages/uicomponents/datepicker.py
AdCombo/combo-e2e
7b28240ef749d36f78342610f8c8d10312b2733b
[ "MIT" ]
1
2021-07-06T14:31:42.000Z
2021-07-06T14:31:42.000Z
""" This class wraps date-picker(ngx-daterangepicker-material) input and allows to interact with it. Time is set accoring to client time zone! """ from datetime import date, datetime from typing import Callable, Optional from combo_e2e.helpers.exceptions import DatePickerNotFound, DatePickerException, DatePickerAttri...
39.229508
113
0.675164
6,603
0.919766
0
0
225
0.031341
0
0
2,149
0.299345
03ab4c838a6711fc02fa4100be3e33b67cda97d6
542
py
Python
timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py
snapsnap123/TimeWeb
9e3a3459fa71f6edf730addf3c7e15d87b6c80b5
[ "Apache-2.0" ]
1
2021-11-29T18:37:02.000Z
2021-11-29T18:37:02.000Z
timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py
renardtnt1/TimeWeb
3684bb2ba368b55a4d50995e7e0e3b9405cba004
[ "Apache-2.0" ]
null
null
null
timeweb/timewebapp/migrations/0077_settingsmodel_default_dropdown_assignment_tags.py
renardtnt1/TimeWeb
3684bb2ba368b55a4d50995e7e0e3b9405cba004
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2.7 on 2021-09-30 23:04 from django.db import migrations, models import timewebapp.models class Migration(migrations.Migration): dependencies = [ ('timewebapp', '0076_alter_timewebmodel_funct_round'), ] operations = [ migrations.AddField( model_name='...
27.1
135
0.684502
424
0.782288
0
0
0
0
0
0
180
0.332103
03ac01fd1a6c4846aeb2f1e3b6476d9fc533c05d
2,249
py
Python
saefportal/datalakes/models/local_datalake.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datalakes/models/local_datalake.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datalakes/models/local_datalake.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
1
2020-12-16T15:02:52.000Z
2020-12-16T15:02:52.000Z
import io import json import logging import os import shutil from pathlib import Path import pandas as pd from django.db import models from datalakes.util import get_wanted_file logger = logging.getLogger(__name__) class LocalDatalake(models.Model): root_path = models.CharField(max_length=500, default="", blan...
33.567164
120
0.655847
2,028
0.901734
0
0
0
0
0
0
541
0.240551
03ae81522e3beb368f2e7e1784f87746e2f971d3
766
py
Python
tracing/tracing/value/add_device_info.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
null
null
null
tracing/tracing/value/add_device_info.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
null
null
null
tracing/tracing/value/add_device_info.py
ravitejavalluri/catapult
246a39a82c2213d913a96fff020a263838dc76e6
[ "BSD-3-Clause" ]
1
2020-07-24T05:13:01.000Z
2020-07-24T05:13:01.000Z
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import json import tempfile from tracing.value import add_shared_diagnostic def AddDeviceInfo(histograms_json_filename, chrome_version, os_name, os_version...
30.64
80
0.721932
0
0
0
0
0
0
0
0
221
0.288512
03afdcb8ce074b115b45a4eebc1daa532aca42d3
9,803
py
Python
fast_knn_nmt/data/utils.py
Crazy-Chick/fast-knn-nmt
7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff
[ "Apache-2.0" ]
null
null
null
fast_knn_nmt/data/utils.py
Crazy-Chick/fast-knn-nmt
7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff
[ "Apache-2.0" ]
null
null
null
fast_knn_nmt/data/utils.py
Crazy-Chick/fast-knn-nmt
7336bbe0be1240e70d3c3ac71c4e7cfb4f4ea4ff
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 """ @desc: """ import numpy as np import math from fairseq.data import data_utils from fairseq.tasks.translation import TranslationTask from fairseq.data.language_pair_dataset import LanguagePairDataset from tqdm import tqdm from multiprocessing import Pool from typing import Tuple from fast_k...
37.703846
137
0.624605
0
0
0
0
0
0
0
0
1,350
0.137713
03b09e85b4641e24b2163f9fb84c1ad44350f628
334
py
Python
src/algorithms/crush.py
apierr/_hackerrank
5bea44fed2fc6b454b31566c36c9bf66c04fa11e
[ "MIT" ]
null
null
null
src/algorithms/crush.py
apierr/_hackerrank
5bea44fed2fc6b454b31566c36c9bf66c04fa11e
[ "MIT" ]
5
2019-09-25T11:20:07.000Z
2020-06-30T09:58:05.000Z
src/algorithms/crush.py
apierr/hackerrank
5bea44fed2fc6b454b31566c36c9bf66c04fa11e
[ "MIT" ]
1
2021-02-02T15:06:58.000Z
2021-02-02T15:06:58.000Z
n, inputs = [int(n) for n in input().split(" ")] list = [0]*(n+1) for _ in range(inputs): print('\n') x, y, incr = [int(n) for n in input().split(" ")] list[x-1] += incr if((y) <= len(list)): list[y] -= incr print(list) max = x = 0 for i in list: x = x+i if(max < x): max =...
17.578947
53
0.47006
0
0
0
0
0
0
0
0
10
0.02994
03b2c8c3274e13294cf562d33c9027f75adff0b9
1,993
py
Python
app.py
royhzq/sg-headlines-rnn
cef84f1ffe7f18a37386e9602166082c10e9020b
[ "MIT" ]
null
null
null
app.py
royhzq/sg-headlines-rnn
cef84f1ffe7f18a37386e9602166082c10e9020b
[ "MIT" ]
13
2020-01-28T23:05:24.000Z
2022-02-10T00:34:57.000Z
app.py
royhzq/sg-headlines-rnn
cef84f1ffe7f18a37386e9602166082c10e9020b
[ "MIT" ]
null
null
null
from flask import Flask, request, jsonify from utils import generate_headlines import tensorflow as tf import json tf.enable_eager_execution() import numpy as np app = Flask(__name__) char2idx = json.loads(open("./data/st_char2idx.txt", 'br').read().decode(encoding='utf-8')) idx2char = np.array(json.loads(open("./da...
30.661538
103
0.656297
0
0
0
0
1,256
0.630206
0
0
608
0.305068
03b48010ad3cd8943b83873c6007c3a73442461a
9,572
py
Python
crits/emails/email.py
dicato/crits
8d500f7175855f1aeefa94caa783f981062ba869
[ "MIT" ]
null
null
null
crits/emails/email.py
dicato/crits
8d500f7175855f1aeefa94caa783f981062ba869
[ "MIT" ]
null
null
null
crits/emails/email.py
dicato/crits
8d500f7175855f1aeefa94caa783f981062ba869
[ "MIT" ]
null
null
null
import datetime from dateutil.parser import parse as date_parser from mongoengine import Document, StringField, ListField from django.conf import settings from cybox.common import String, DateTime from cybox.core import Observable from cybox.objects.address_object import Address, EmailAddress from cybox.objects.email_...
38.910569
125
0.570205
8,957
0.93575
0
0
1,077
0.112516
0
0
3,436
0.358964
03b7e0e6620e7937b8035ee5d2db08dc54dcd32a
18,147
py
Python
scratchpad/tomostream_roi/tomostream/tomostream3d.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
scratchpad/tomostream_roi/tomostream/tomostream3d.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
scratchpad/tomostream_roi/tomostream/tomostream3d.py
arshadzahangirchowdhury/TomoEncoders
9c2b15fd515d864079f198546821faee5d78df17
[ "BSD-3-Clause" ]
null
null
null
''' Adaptation of Tomostream orthoslice code for doing full 3d reconstructions Then to apply DL-based image processing or computer vision steps. ''' import pvaccess as pva import numpy as np import queue import time import h5py import threading import signal import util import log from epics import PV import so...
42.698824
175
0.58737
17,542
0.966661
0
0
0
0
0
0
6,816
0.375599
03b8734c360f66455710a790f4a8290958137378
1,351
py
Python
userbot/modules/help.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/help.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
userbot/modules/help.py
masbentoooredoo/WeebProject
d34c14b42801915518a87831f952e5ade95183e2
[ "Naumen", "Condor-1.1", "MS-PL" ]
10
2020-12-13T14:32:47.000Z
2021-04-11T06:45:35.000Z
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # """Userbot help command""" from userbot import CMD_HELP from userbot.events import register @register(out...
33.775
79
0.513694
0
0
0
0
1,048
0.772292
991
0.730287
749
0.551953
03b9f80c573256626bf4885c7bbd2f75f05f862a
4,076
py
Python
vistrails/packages/spreadsheet/spreadsheet_registry.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
1
2015-05-11T16:46:49.000Z
2015-05-11T16:46:49.000Z
vistrails/packages/spreadsheet/spreadsheet_registry.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
null
null
null
vistrails/packages/spreadsheet/spreadsheet_registry.py
celiafish/VisTrails
d8cb575b8b121941de190fe608003ad1427ef9f6
[ "BSD-3-Clause" ]
null
null
null
############################################################################### ## ## Copyright (C) 2011-2014, NYU-Poly. ## Copyright (C) 2006-2011, University of Utah. ## All rights reserved. ## Contact: contact@vistrails.org ## ## This file is part of VisTrails. ## ## "Redistribution and use in source and binary for...
38.819048
80
0.609176
1,908
0.468106
0
0
0
0
0
0
3,088
0.757605
03bb6948a075551b1b577cc28c8637a3fab83ee4
5,300
py
Python
cognite/experimental/_api/transformation_notifications.py
AlexThunder/cognite-sdk-python-experimental
468d29e7809793ed45cef5da25dca22418839972
[ "Apache-2.0" ]
null
null
null
cognite/experimental/_api/transformation_notifications.py
AlexThunder/cognite-sdk-python-experimental
468d29e7809793ed45cef5da25dca22418839972
[ "Apache-2.0" ]
null
null
null
cognite/experimental/_api/transformation_notifications.py
AlexThunder/cognite-sdk-python-experimental
468d29e7809793ed45cef5da25dca22418839972
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Union from cognite.client import utils from cognite.client._api_client import APIClient from cognite.experimental._constants import HANDLER_FILE_NAME, LIST_LIMIT_CEILING, LIST_LIMIT_DEFAULT, MAX_RETRIES from cognite.experimental.data_classes import ( OidcCredentials, Transfo...
42.4
231
0.675472
4,774
0.900755
0
0
0
0
0
0
3,440
0.649057
03bb90b3312fca9d9a089bd4f563f11678d9d344
2,110
py
Python
2020/day13.py
PintarM/AdventOfCode
5837c42ab1ce98efb02aec1ac17967611e2a3851
[ "MIT" ]
null
null
null
2020/day13.py
PintarM/AdventOfCode
5837c42ab1ce98efb02aec1ac17967611e2a3851
[ "MIT" ]
null
null
null
2020/day13.py
PintarM/AdventOfCode
5837c42ab1ce98efb02aec1ac17967611e2a3851
[ "MIT" ]
1
2020-12-02T13:27:52.000Z
2020-12-02T13:27:52.000Z
# -*- coding: utf-8 -*- """Advent Of Code 2020, Day 13 @author: Matevz """ from sympy.ntheory.modular import crt def get_input(file_name): """Process input text file.""" try: file = open(file_name, 'r') content = file.read() except IOError: print('Cannot read file {}'.format(fil...
27.402597
79
0.652133
0
0
0
0
0
0
0
0
559
0.264929
03bc2db31d5b23278c12c999b5cd41ea7128ebff
276
py
Python
logging/__init__.py
ligz08/pdqa
b2af027daf544e30d58358de20281d4648322b87
[ "Apache-2.0" ]
null
null
null
logging/__init__.py
ligz08/pdqa
b2af027daf544e30d58358de20281d4648322b87
[ "Apache-2.0" ]
null
null
null
logging/__init__.py
ligz08/pdqa
b2af027daf544e30d58358de20281d4648322b87
[ "Apache-2.0" ]
null
null
null
def make_log_msg(title, status, detail=None, extra=None, sep='::'): """ Make a message that looks like this: Title::status::detail::extra Any None will be skipped. """ strings = [title, status, detail, extra] return sep.join(filter(None, strings))
30.666667
67
0.644928
0
0
0
0
0
0
0
0
119
0.431159
03bc7308d95fe63376ad94bd08a689fdbb65b6f5
49
py
Python
bigbrain/__init__.py
gmischl1/bigbrain
1920363e19c296fa69c27be0dcdf2b5b6c4ababb
[ "Apache-2.0" ]
2
2020-03-13T22:08:27.000Z
2020-03-13T22:08:47.000Z
bigbrain/__init__.py
gmischl1/bigbrain
1920363e19c296fa69c27be0dcdf2b5b6c4ababb
[ "Apache-2.0" ]
null
null
null
bigbrain/__init__.py
gmischl1/bigbrain
1920363e19c296fa69c27be0dcdf2b5b6c4ababb
[ "Apache-2.0" ]
1
2020-03-13T22:09:07.000Z
2020-03-13T22:09:07.000Z
from bigbrain.ai import AI __version__ = "0.1.2"
16.333333
26
0.734694
0
0
0
0
0
0
0
0
7
0.142857