hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
251
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
4915e964647e8f80103fac2c1f5e742bca3ba265
809
py
Python
data_io/export_camera_poses.py
tumcms/aerial2pdsm
1dc4f9c49d3f682dac4a665d081d547baaa0c877
[ "BSD-3-Clause" ]
null
null
null
data_io/export_camera_poses.py
tumcms/aerial2pdsm
1dc4f9c49d3f682dac4a665d081d547baaa0c877
[ "BSD-3-Clause" ]
null
null
null
data_io/export_camera_poses.py
tumcms/aerial2pdsm
1dc4f9c49d3f682dac4a665d081d547baaa0c877
[ "BSD-3-Clause" ]
1
2021-11-30T13:02:26.000Z
2021-11-30T13:02:26.000Z
import plyfile from config import SparseModel, project_path from colmap_scripts.read_model import Image import numpy as np project = SparseModel("/home/felix/pointclouds/_working/2019_11_07_Muenchen_26_10_2018", model_path="/home/felix/pointclouds/_working/2019_11_07_Muenchen_26_10_2018/sparse/1...
32.36
108
0.697157
491612be631c7616e895777f18a1f1f4ec09ba72
15,815
py
Python
src/goesrecv/support/generate_interpolator_taps.py
codient/goestools
862600960681a1a1f3942f18f40b1f17dcdffc40
[ "BSD-2-Clause" ]
244
2017-11-07T12:12:23.000Z
2022-03-24T07:24:53.000Z
src/goesrecv/support/generate_interpolator_taps.py
codient/goestools
862600960681a1a1f3942f18f40b1f17dcdffc40
[ "BSD-2-Clause" ]
116
2018-03-07T04:02:26.000Z
2022-03-27T12:08:01.000Z
src/goesrecv/support/generate_interpolator_taps.py
codient/goestools
862600960681a1a1f3942f18f40b1f17dcdffc40
[ "BSD-2-Clause" ]
65
2018-05-28T02:44:21.000Z
2022-03-18T12:27:58.000Z
#!/usr/bin/env python # # Create filter taps to use for interpolation filter in # clock recovery algorithm. These taps are copied from # GNU Radio at gnuradio/filter/interpolator_taps.h. # # This file includes them in natural order and I want # them stored in reversed order such that they can be # used directly. # fil...
104.735099
117
0.613152
49172233318b11d598754579aedad36e5f01b8f1
1,688
py
Python
openpype/hosts/blender/plugins/publish/extract_blend_animation.py
jonclothcat/OpenPype
d1208cbebc0a7f378de0062ccd653295c6399195
[ "MIT" ]
1
2022-02-08T15:40:41.000Z
2022-02-08T15:40:41.000Z
openpype/hosts/blender/plugins/publish/extract_blend_animation.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
2
2022-03-18T01:46:03.000Z
2022-03-18T01:46:16.000Z
openpype/hosts/blender/plugins/publish/extract_blend_animation.py
zafrs/OpenPype
4b8e7e1ed002fc55b31307efdea70b0feaed474f
[ "MIT" ]
null
null
null
import os import bpy import openpype.api
30.690909
79
0.566943
4917259ce7d453d0c463913b457ccefb5c69c0f6
2,772
py
Python
src/TamaTou.py
hirmiura/starsector-mod-Font_Replacement_for_Orbitron
ad7b5e3f4d8afd1a2aa97a420a2ec9a3aaf9b3d7
[ "MIT" ]
1
2022-01-17T02:58:46.000Z
2022-01-17T02:58:46.000Z
src/TamaTou.py
hirmiura/starsector-mod-Font_Replacement_for_Orbitron
ad7b5e3f4d8afd1a2aa97a420a2ec9a3aaf9b3d7
[ "MIT" ]
null
null
null
src/TamaTou.py
hirmiura/starsector-mod-Font_Replacement_for_Orbitron
ad7b5e3f4d8afd1a2aa97a420a2ec9a3aaf9b3d7
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT # Copyright 2022 hirmiura (https://github.com/hirmiura) # # TamaTou # # # 1. fontforge(fontforge-console.bat) # 2. # 3. ffpython TamaTou.py # 4. # # Orbitron Tama # Noto No Toufu Tou # TamaTou # import fontforge for weight in ['Regular', 'Bold']: print('') fn ...
30.461538
114
0.636724
4918381c344c6f579cf53ea1bf560dc12227d2bf
2,623
py
Python
bambu/bambu.py
westurner/pandasrdf
c194b1eb9928488bc19b82d3cab409158cd413a3
[ "BSD-3-Clause" ]
2
2016-07-01T10:48:04.000Z
2017-01-24T16:53:44.000Z
bambu/bambu.py
westurner/pandasrdf
c194b1eb9928488bc19b82d3cab409158cd413a3
[ "BSD-3-Clause" ]
1
2016-06-20T10:54:53.000Z
2017-02-07T05:47:38.000Z
bambu/bambu.py
westurner/pandasrdf
c194b1eb9928488bc19b82d3cab409158cd413a3
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function """ bambu ------ pandas RDF functionality Installation -------------- :: # pip install pandas pip install rdflib """ import sys import pandas as pd import rdflib def bambu(): """ mainfunc """ pass def to...
18.602837
63
0.552421
491871e30f2b60781d5b69aef6ac73571b60d676
19,637
py
Python
homework1/problem3/local/mort_icu.py
criticaldata/hst953-2021
b18c8235a6c878a4a7d3d330a9b69421f0217273
[ "MIT" ]
1
2022-03-15T15:52:45.000Z
2022-03-15T15:52:45.000Z
homework1/problem3/local/mort_icu.py
MDenu/HST-homework
fff0f277ee18735acbe84dfe8c428e92991b28fa
[ "MIT" ]
null
null
null
homework1/problem3/local/mort_icu.py
MDenu/HST-homework
fff0f277ee18735acbe84dfe8c428e92991b28fa
[ "MIT" ]
3
2021-09-10T19:14:54.000Z
2021-09-26T22:23:05.000Z
# Generates the following data files from MIMIC: # adult_icu.gz: data from adult ICUs # n_icu.gz: data from neonatal ICUs # adult_notes.gz: clinical notes from adult ICUs # Import libraries import numpy as np import pandas as pd import psycopg2 from scipy.stats import ks_2samp import os import random # Ouput direct...
41.254202
202
0.685135
4918d6d679945db227bfcba68023e986105933df
14,098
py
Python
release/alert.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
21,382
2016-09-26T23:12:52.000Z
2022-03-31T21:47:45.000Z
release/alert.py
77loopin/ray
9322f6aab53f4ca5baf5a3573e1ffde12feae519
[ "Apache-2.0" ]
19,689
2016-09-17T08:21:25.000Z
2022-03-31T23:59:30.000Z
release/alert.py
gramhagen/ray
c18caa4db36d466718bdbcb2229aa0b2dc03da1f
[ "Apache-2.0" ]
4,114
2016-09-23T18:54:01.000Z
2022-03-31T15:07:32.000Z
import argparse from collections import defaultdict, Counter from typing import Any, List, Tuple, Mapping, Optional import datetime import hashlib import json import logging import os import requests import sys import boto3 from e2e import GLOBAL_CONFIG from alerts.default import handle_result as default_handle_resu...
34.724138
79
0.589658
4918f13347223ad7457de28e1dde690394ca0299
2,176
py
Python
bios-token.py
emahear/openusm
96bb62b91f4b5520e14d86ae86e1b320404134e6
[ "MIT" ]
4
2019-08-04T05:50:46.000Z
2020-04-16T19:24:11.000Z
bios-token.py
emahear/openusm
96bb62b91f4b5520e14d86ae86e1b320404134e6
[ "MIT" ]
null
null
null
bios-token.py
emahear/openusm
96bb62b91f4b5520e14d86ae86e1b320404134e6
[ "MIT" ]
6
2019-08-03T12:57:47.000Z
2020-06-08T01:50:43.000Z
import os import argparse if __name__ == '__main__': main()
32.477612
306
0.552849
491929694fdf621f13fc8f553f27ac207d5a59c5
333
py
Python
Examples/user_data/sharptrack.py
FedeClaudi/brainrender
b1d8adcef52615fcd86a083be4dc48c68a8b0bb9
[ "MIT" ]
null
null
null
Examples/user_data/sharptrack.py
FedeClaudi/brainrender
b1d8adcef52615fcd86a083be4dc48c68a8b0bb9
[ "MIT" ]
null
null
null
Examples/user_data/sharptrack.py
FedeClaudi/brainrender
b1d8adcef52615fcd86a083be4dc48c68a8b0bb9
[ "MIT" ]
null
null
null
import brainrender brainrender.SHADER_STYLE = 'cartoon' from brainrender.scene import Scene sharptrack_file = 'Examples/example_files/sharptrack_probe_points.mat' scene = Scene(use_default_key_bindings=True) scene.add_brain_regions('TH', alpha=.2, wireframe=True) scene.add_probe_from_sharptrack(sharptrack_file) s...
23.785714
70
0.831832
4919e36bd5888cd73891195c85651a0ab2da447b
7,910
py
Python
homeassistant/components/metoffice/sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
7
2019-08-15T13:36:58.000Z
2020-03-18T10:46:29.000Z
homeassistant/components/metoffice/sensor.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/metoffice/sensor.py
winning1120xx/home-assistant
53d4c0ce2d374b5e97bbdc37742656c27adf8eea
[ "Apache-2.0" ]
11
2020-12-16T13:48:14.000Z
2022-02-01T00:28:05.000Z
"""Support for UK Met Office weather service.""" from __future__ import annotations from homeassistant.components.sensor import SensorEntity, SensorEntityDescription from homeassistant.const import ( ATTR_ATTRIBUTION, DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_TEMPERATURE, LENGTH_KILOMETERS, PERCENTAGE, ...
30.898438
93
0.643236
491bbb7a18db6baa7c684edc4d966b84daa2ba53
3,513
py
Python
examples/advanced.py
ajrichardson/formlayout
4b267ad29cbbdab9baf1bef3fcc48f23c699eebc
[ "MIT" ]
null
null
null
examples/advanced.py
ajrichardson/formlayout
4b267ad29cbbdab9baf1bef3fcc48f23c699eebc
[ "MIT" ]
null
null
null
examples/advanced.py
ajrichardson/formlayout
4b267ad29cbbdab9baf1bef3fcc48f23c699eebc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2009 Pierre Raybaut # Licensed under the terms of the MIT License # (see formlayout.py for details) """ Simple formlayout example Please take a look at formlayout.py for more examples (at the end of the script, after the 'if __name__ == "__main__":' line) """ import datetime # ...
36.216495
79
0.542841
491c2d65ca77e28affc08be455a8dcb0f85ffc8e
1,527
py
Python
PyBank/main.py
jackaloppy/python-challenge
71690ca4059fee9c31334347275866431f5d9155
[ "RSA-MD" ]
null
null
null
PyBank/main.py
jackaloppy/python-challenge
71690ca4059fee9c31334347275866431f5d9155
[ "RSA-MD" ]
null
null
null
PyBank/main.py
jackaloppy/python-challenge
71690ca4059fee9c31334347275866431f5d9155
[ "RSA-MD" ]
null
null
null
# Import Modules import os import csv # Set the path filepath = os.path.join("Resources","budget_data.csv") # Open the CSV file with open(filepath) as csvfile: csvreader = csv.reader(csvfile, delimiter=",") # Skip the header row next(csvreader) # Set up some numbers month = 0 total = 0 max...
33.933333
92
0.579568
491cf38094ed0cb56e1412d6daa74c8867a4538f
4,103
py
Python
odoo-13.0/addons/web/models/ir_http.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
12
2021-03-26T08:39:40.000Z
2022-03-16T02:20:10.000Z
odoo-13.0/addons/web/models/ir_http.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
13
2020-12-20T16:00:21.000Z
2022-03-14T14:55:30.000Z
odoo-13.0/addons/web/models/ir_http.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
17
2020-08-31T11:18:49.000Z
2022-02-09T05:57:31.000Z
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import hashlib import json from odoo import api, models from odoo.http import request from odoo.tools import ustr from odoo.addons.web.controllers.main import module_boot, HomeStaticTemplateHelpers import odoo
48.845238
172
0.6427
491db1b8d8dc21a65a486fcf67ecab8e646adeff
1,500
py
Python
anonymize-attributes.py
thormeier-fhnw-repos/sna-holaspirit-to-gephi
e83d44e887608d4d584ded825be9cd950d87e590
[ "MIT" ]
2
2018-11-12T22:10:54.000Z
2021-08-30T10:13:53.000Z
anonymize-attributes.py
thormeier-fhnw-repos/sna-holaspirit-to-gephi
e83d44e887608d4d584ded825be9cd950d87e590
[ "MIT" ]
null
null
null
anonymize-attributes.py
thormeier-fhnw-repos/sna-holaspirit-to-gephi
e83d44e887608d4d584ded825be9cd950d87e590
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import argparse sys.path.append('./') from src.utils.list_to_dict import list_to_dict from src.utils.read_csv import read_csv from src.utils.map_to_list_csv import map_to_list_csv from src.gephi.write_csv import write_csv print("") print("-----------------------------") print("Anonymiz...
28.846154
140
0.744
491f6d6d11d857e14ccaa0306230176130993c29
5,487
py
Python
custom_laboratory/custom_laboratory/doctype/vaccination/vaccination.py
panhavad/custom_laboratory
a86d24bd955dc078ded044e714955cdf0c257176
[ "MIT" ]
null
null
null
custom_laboratory/custom_laboratory/doctype/vaccination/vaccination.py
panhavad/custom_laboratory
a86d24bd955dc078ded044e714955cdf0c257176
[ "MIT" ]
1
2021-01-12T08:27:54.000Z
2021-01-12T08:27:54.000Z
custom_laboratory/custom_laboratory/doctype/vaccination/vaccination.py
panhavad/custom_laboratory
a86d24bd955dc078ded044e714955cdf0c257176
[ "MIT" ]
1
2021-01-12T08:34:12.000Z
2021-01-12T08:34:12.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2020, Duk Panhavad and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from frappe.utils import getdate, cstr from datetime import timedelta def...
38.104167
121
0.755786
491fd8107e4c9d56c5674e827165e680a0067c06
4,445
py
Python
FinalRound_ImprovedAccuracy_Functionality/training/utils/detectingCARColor.py
tejasmagia/DetectCarParkingSlot_Contest
e9e38f12347aa3cc40234efb000959df20d28f21
[ "MIT" ]
9
2019-10-20T15:15:06.000Z
2020-09-07T09:44:37.000Z
FinalRound_ImprovedAccuracy_Functionality/training/utils/detectingCARColor.py
tejasmagia/DetectCarParkingSlot_Contest
e9e38f12347aa3cc40234efb000959df20d28f21
[ "MIT" ]
null
null
null
FinalRound_ImprovedAccuracy_Functionality/training/utils/detectingCARColor.py
tejasmagia/DetectCarParkingSlot_Contest
e9e38f12347aa3cc40234efb000959df20d28f21
[ "MIT" ]
null
null
null
from sklearn.cluster import KMeans import cv2 import PIL import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np from matplotlib import image as img1 import pandas as pd from scipy.cluster.vq import whiten import os if __name__ == '__main__': _main_()
28.49359
99
0.566479
49206ede4930182521d4ce9c6b49dda8aef894c6
97
py
Python
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
18
2019-01-04T01:58:03.000Z
2021-06-25T09:03:58.000Z
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
3
2019-02-26T16:24:40.000Z
2020-04-04T10:41:38.000Z
cash/settings/product.py
anshengme/cash
7b24338ea2f3f92fe82f668335bb2eb6e6479f9e
[ "MIT" ]
5
2019-02-26T15:32:52.000Z
2019-04-22T09:35:27.000Z
from .base import * DEBUG = False SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', SECRET_KEY)
16.166667
60
0.752577
492186225f16d44bf92c164978829eca7c8d9540
2,807
py
Python
seqpos/lib/python2.7/site-packages/mercurial/lsprofcalltree.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mercurial/lsprofcalltree.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
seqpos/lib/python2.7/site-packages/mercurial/lsprofcalltree.py
guanjue/seqpos
ab9308ad128547ca968a1d944490710e583703bc
[ "MIT" ]
null
null
null
""" lsprofcalltree.py - lsprof output which is readable by kcachegrind Authors: * David Allouche <david <at> allouche.net> * Jp Calderone & Itamar Shtull-Trauring * Johan Dahlin This software may be used and distributed according to the terms of the GNU General Public License, incorporated herein by refer...
29.861702
77
0.586035
4921f463d2a5ff012c886046b237e9741fc7a1a8
2,328
py
Python
nats/aio/errors.py
sr34/asyncio-nats
347a8e4b3eab275085858a6c8016feb3457905a3
[ "Apache-2.0" ]
null
null
null
nats/aio/errors.py
sr34/asyncio-nats
347a8e4b3eab275085858a6c8016feb3457905a3
[ "Apache-2.0" ]
null
null
null
nats/aio/errors.py
sr34/asyncio-nats
347a8e4b3eab275085858a6c8016feb3457905a3
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2018 The NATS 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 agreed to in writi...
24.25
74
0.717354
492207457366b7b786ff7beb4e298c9226ecc040
1,912
py
Python
sqlite/app/elephant_queries.py
CurdtMillion/DS-Unit-3-Sprint-2-SQL-and-Databases
ba300b2da1e5fff153d8db76fdf1f67e82cefb9b
[ "MIT" ]
null
null
null
sqlite/app/elephant_queries.py
CurdtMillion/DS-Unit-3-Sprint-2-SQL-and-Databases
ba300b2da1e5fff153d8db76fdf1f67e82cefb9b
[ "MIT" ]
null
null
null
sqlite/app/elephant_queries.py
CurdtMillion/DS-Unit-3-Sprint-2-SQL-and-Databases
ba300b2da1e5fff153d8db76fdf1f67e82cefb9b
[ "MIT" ]
null
null
null
import os import psycopg2 import sqlite3 from psycopg2.extras import DictCursor from dotenv import load_dotenv DB_FILEPATH = os.path.join(os.path.dirname(__file__), "..", "data", "rpg.db") connection = sqlite3.connect(DB_FILEPATH) load_dotenv() DB_NAME = os.getenv("DB_NAME", default="OOPS") DB_USER = os.getenv("DB_U...
25.157895
99
0.710251
49227b0882dd3d460d38e78e915ad62615d5837a
12,852
py
Python
models/EmbracementLayer.py
gcunhase/EmbraceBERT
01f04f8e2362c5425359c5758f22794937708095
[ "MIT" ]
7
2020-10-30T06:36:23.000Z
2022-01-07T11:08:49.000Z
models/EmbracementLayer.py
gcunhase/EmbraceBERT
01f04f8e2362c5425359c5758f22794937708095
[ "MIT" ]
null
null
null
models/EmbracementLayer.py
gcunhase/EmbraceBERT
01f04f8e2362c5425359c5758f22794937708095
[ "MIT" ]
null
null
null
import torch from torch import nn import numpy as np from models.AttentionLayer import AttentionLayer from models.SelfAttentionLayer import SelfAttention, SelfAttentionPytorch,\ BertSelfAttentionScores, BertSelfAttentionScoresP, BertMultiSelfAttentionScoresP,\ BertMultiAttentionScoresP, BertAttentionClsQuery fr...
69.847826
151
0.662621
4922ee0740ccdfdc837d0e1e02e2f0bf4fe6c81f
8,227
py
Python
tests/test_csv2bufr.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
null
null
null
tests/test_csv2bufr.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
8
2021-11-04T12:44:46.000Z
2021-11-23T02:23:05.000Z
tests/test_csv2bufr.py
tomkralidis/CSV2BUFR
ba7ce4ed2bb41e42fcb9d03f10049ffc6a2073f8
[ "Apache-2.0" ]
2
2021-11-10T14:43:08.000Z
2021-11-23T01:54:46.000Z
############################################################################### # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this fi...
34.422594
138
0.579312
49233a1586edace305f6bd1e93ae01acb6ace60f
4,381
py
Python
map_methods_to_mach_ports/parseXcodeLogs.py
malus-security/kobold
2ae23b75ec503ef3702ad297ddbb7824ac4da53c
[ "BSD-3-Clause" ]
3
2020-06-26T19:44:46.000Z
2021-03-25T07:00:04.000Z
map_methods_to_mach_ports/parseXcodeLogs.py
malus-security/kobold
2ae23b75ec503ef3702ad297ddbb7824ac4da53c
[ "BSD-3-Clause" ]
null
null
null
map_methods_to_mach_ports/parseXcodeLogs.py
malus-security/kobold
2ae23b75ec503ef3702ad297ddbb7824ac4da53c
[ "BSD-3-Clause" ]
1
2020-09-14T23:46:31.000Z
2020-09-14T23:46:31.000Z
#Input #Xcode logs output by autogenerated method invocations #Requirements #Infer which invocation numbers failed/succeeded #Infer apparent entitlement requirements based on error message from completion handlers #Detect which invocation numbers should have had completion handlers #Map new information to mach-port a...
40.564815
132
0.716047
49245578c9299525db939b3fe79e00703d3dcb25
10,298
py
Python
inferelator_ng/tests/test_design_response.py
asistradition/inferelator_ng
56ef2ce3b1ace35b9b2b2821a0e78746563c309a
[ "BSD-2-Clause" ]
1
2019-01-10T17:04:43.000Z
2019-01-10T17:04:43.000Z
inferelator_ng/tests/test_design_response.py
asistradition/inferelator_ng
56ef2ce3b1ace35b9b2b2821a0e78746563c309a
[ "BSD-2-Clause" ]
1
2019-01-21T21:05:19.000Z
2019-01-21T21:05:19.000Z
inferelator_ng/tests/test_design_response.py
asistradition/inferelator_ng
56ef2ce3b1ace35b9b2b2821a0e78746563c309a
[ "BSD-2-Clause" ]
null
null
null
import unittest, os import pandas as pd import numpy as np import pdb from .. import design_response_translation from .. import utils my_dir = os.path.dirname(__file__) class TestDRAboveDeltMax(TestDR): class TestDRMicro(TestDR): class TestDRBelowDeltMin(TestDR):
46.809091
150
0.604098
4924946192a3e01f6cc5df5f86d6a37b39e0f8e7
94
py
Python
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
flights/urls.py
olubiyiontheweb/travelworld
ca9d2206108bd59fd222e384bcaab7efd6832e24
[ "MIT" ]
null
null
null
from django.urls import path from flights import views urlpatterns = [path("", views.index)]
18.8
37
0.755319
4924d0f3858273f23eb72e262ac3af691158f5e6
835
py
Python
invenio_app_ils/ill/loaders/jsonschemas/borrowing_request.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
invenio_app_ils/ill/loaders/jsonschemas/borrowing_request.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
invenio_app_ils/ill/loaders/jsonschemas/borrowing_request.py
equadon/invenio-app-ils
42ba282968d0aa28fb1bfc71d0709685165aaec4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019-2020 CERN. # # invenio-app-ils is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """BorrowingRequest schema for marshmallow loader.""" from invenio_records_rest.schemas import RecordMetadat...
29.821429
76
0.718563
4925282781ec37ab8cc1089001ebc7822dc2c473
366
py
Python
systemtest/users/apps.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
1
2022-03-09T18:07:11.000Z
2022-03-09T18:07:11.000Z
systemtest/users/apps.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
null
null
null
systemtest/users/apps.py
IBM-Power-SystemTest/systemtest
a29e6d54500ca13f554073cc66a4a2d403ea5b14
[ "BSD-3-Clause" ]
null
null
null
""" Users app config References: https://docs.djangoproject.com/en/3.1/ref/applications/ """ from django.apps import AppConfig
19.263158
63
0.628415
49252e8b63616c3d05ff08bd21ef0e85c4a7e7b9
1,675
py
Python
setup.py
grigi/configy
86f6bdd3164f39e83e82e3527f5863032c0ed1e7
[ "MIT" ]
3
2015-09-18T13:06:04.000Z
2021-08-10T16:37:21.000Z
setup.py
grigi/configy
86f6bdd3164f39e83e82e3527f5863032c0ed1e7
[ "MIT" ]
null
null
null
setup.py
grigi/configy
86f6bdd3164f39e83e82e3527f5863032c0ed1e7
[ "MIT" ]
null
null
null
import sys from setuptools import setup, find_packages setup( name='configy', version=get_version('configy/__init__.py'), description='Simple Configuration manager, plays well with testing', long_description=open('README.rst').read(), author='Nickolas Grigoriadis', author_email='nagrigoriadis@g...
28.389831
77
0.62209
4925bdb182506624c0e0646cabaacc310b61faa3
2,755
py
Python
opentelemetry-sdk/tests/trace/export/test_in_memory_span_exporter.py
vmihailenco/opentelemetry-python
0a9eba3bb62f4ddf686b55b68286979a5ec84de5
[ "Apache-2.0" ]
2
2020-08-13T21:10:48.000Z
2020-09-30T00:55:05.000Z
opentelemetry-sdk/tests/trace/export/test_in_memory_span_exporter.py
vmihailenco/opentelemetry-python
0a9eba3bb62f4ddf686b55b68286979a5ec84de5
[ "Apache-2.0" ]
1
2021-02-24T01:32:32.000Z
2021-02-24T01:32:32.000Z
opentelemetry-sdk/tests/trace/export/test_in_memory_span_exporter.py
vmihailenco/opentelemetry-python
0a9eba3bb62f4ddf686b55b68286979a5ec84de5
[ "Apache-2.0" ]
2
2020-06-01T12:38:23.000Z
2021-01-07T10:55:47.000Z
# Copyright The OpenTelemetry 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 agreed to in ...
36.25
79
0.717604
49289bb9e651ac9eb5d083a6d7aaea07feb28a79
2,417
py
Python
lib/acli/commands/ec2.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
9
2015-10-06T01:33:39.000Z
2017-08-23T22:32:50.000Z
lib/acli/commands/ec2.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
6
2016-05-06T07:30:01.000Z
2020-06-22T08:11:40.000Z
lib/acli/commands/ec2.py
jonhadfield/acli
d14abf3ad67bb8cb5ecac93c380544a16eddc7fb
[ "MIT" ]
1
2020-06-01T10:44:23.000Z
2020-06-01T10:44:23.000Z
# -*- coding: utf-8 -*- """Usage: acli ec2 (ls | list | summary) [options] [--region=<region>] acli ec2 (start | stop | reboot | terminate | info | cpu | vols | net) <instance_id> [options] -f, --filter=<term> filter results by term -s, --start=<start_date> metrics start-date -e,...
45.603774
98
0.595366
4929eddd19df20bbf2ed2c78fc54f5d2edf96f51
7,630
py
Python
pharedox/gui/gui.py
omarvaneer/pharynx_redox
ffcd5733fd0823244f50590951e9af0bc9ae2518
[ "MIT" ]
2
2018-06-08T12:45:03.000Z
2018-07-13T04:17:01.000Z
pharedox/gui/gui.py
omarvaneer/pharynx_redox
ffcd5733fd0823244f50590951e9af0bc9ae2518
[ "MIT" ]
17
2020-03-18T11:43:39.000Z
2020-07-21T18:04:25.000Z
pharedox/gui/gui.py
half-adder/pharynx_redox
a5b99f6afb4a36a021d0439bb15d2c826de605b1
[ "MIT" ]
3
2021-07-21T16:14:28.000Z
2021-07-27T15:38:39.000Z
""" A Basic GUI based on napari """ import logging import multiprocessing as mp import sys from multiprocessing import Process from pathlib import Path from typing import Optional import matplotlib import napari import numpy as np import xarray as xr from napari.qt.threading import thread_worker from PyQt5.QtCore impo...
31.399177
96
0.636697
4929f7cf615e61de5c4f61ef44c5340e9ac4492a
3,290
py
Python
python/paddle/v2/fluid/tests/book/test_understand_sentiment_conv.py
QingshuChen/Paddle
25a92be3e123ed21fd98c7be6bd7e3a6320756a3
[ "Apache-2.0" ]
null
null
null
python/paddle/v2/fluid/tests/book/test_understand_sentiment_conv.py
QingshuChen/Paddle
25a92be3e123ed21fd98c7be6bd7e3a6320756a3
[ "Apache-2.0" ]
9
2017-09-13T07:39:31.000Z
2017-10-18T05:58:23.000Z
python/paddle/v2/fluid/tests/book/test_understand_sentiment_conv.py
QingshuChen/Paddle
25a92be3e123ed21fd98c7be6bd7e3a6320756a3
[ "Apache-2.0" ]
null
null
null
import numpy as np import paddle.v2 as paddle import paddle.v2.fluid.core as core import paddle.v2.fluid.evaluator as evaluator import paddle.v2.fluid.framework as framework import paddle.v2.fluid.layers as layers import paddle.v2.fluid.nets as nets from paddle.v2.fluid.executor import Executor from paddle.v2.fluid.opt...
32.254902
73
0.620669
492b44bce7d8334fd49f7ee0f9eda198e717c6cb
6,847
py
Python
sem.py
sree314/simple-abstract-interpreter
6445db9ea2c8418ece4ec1436e552fb427d7ae2f
[ "CC0-1.0" ]
3
2020-05-04T20:09:30.000Z
2022-01-29T20:34:03.000Z
sem.py
sree314/simple-abstract-interpreter
6445db9ea2c8418ece4ec1436e552fb427d7ae2f
[ "CC0-1.0" ]
null
null
null
sem.py
sree314/simple-abstract-interpreter
6445db9ea2c8418ece4ec1436e552fb427d7ae2f
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 # # sem.py # # An implementation of the concrete semantics, including an # interpreter # # Author: Sreepathi Pai # # Written for CSC2/455 Spring 2020 # # To the extent possible under law, Sreepathi Pai has waived all # copyright and related or neighboring rights to sem.py. This work # is publishe...
30.162996
97
0.590916
492e98f0563190adbf1aba90431f35623fa73162
4,925
py
Python
python_script/neutron.py
namptit307/openstack_upgrade_test
a6a4ce57a931ce6959f85b7bafa95e10a0d0ed52
[ "MIT" ]
1
2018-06-26T03:37:17.000Z
2018-06-26T03:37:17.000Z
python_script/neutron.py
namptit307/openstack_upgrade_test
a6a4ce57a931ce6959f85b7bafa95e10a0d0ed52
[ "MIT" ]
null
null
null
python_script/neutron.py
namptit307/openstack_upgrade_test
a6a4ce57a931ce6959f85b7bafa95e10a0d0ed52
[ "MIT" ]
null
null
null
import json from requests import ConnectionError from config import * from utils import * from get_auth import TOKEN # Create network create_network_url = "http://{}:9696/v2.0/networks".format(IP) token_headers = { 'X-Auth-Token': TOKEN, 'Content-Type': 'application/json' } # Create router create_router_url ...
39.087302
97
0.552081
492f40da8141b4f392fd82f2242b755c0bb7c8b7
1,406
py
Python
app/view/forms.py
weizy1981/WatsonRobot
bb718a589a8f2d394fbc86582bff29c1015e79fc
[ "Apache-2.0" ]
null
null
null
app/view/forms.py
weizy1981/WatsonRobot
bb718a589a8f2d394fbc86582bff29c1015e79fc
[ "Apache-2.0" ]
null
null
null
app/view/forms.py
weizy1981/WatsonRobot
bb718a589a8f2d394fbc86582bff29c1015e79fc
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, PasswordField, SubmitField, FileField from wtforms.validators import DataRequired from app.view import errormessage
43.9375
109
0.753201
492f4214ee6f18acfc6f5dd9c2a40c4761fa8d61
2,519
py
Python
setup.py
alexweav/nisystemlink-clients-python
f19a30907a7fef536043ecbddc5a755e5fedf846
[ "MIT" ]
null
null
null
setup.py
alexweav/nisystemlink-clients-python
f19a30907a7fef536043ecbddc5a755e5fedf846
[ "MIT" ]
null
null
null
setup.py
alexweav/nisystemlink-clients-python
f19a30907a7fef536043ecbddc5a755e5fedf846
[ "MIT" ]
null
null
null
from setuptools import find_namespace_packages, find_packages, setup # type: ignore from setuptools.command.test import test as TestCommand # type: ignore pypi_name = "nisystemlink-clients" packages = find_namespace_packages(include=["systemlink.*"]) + find_packages( exclude=["systemlink", "examples", "tests"...
31.4875
84
0.639143
492f9041b41552075a47cd3267bbbce97f7550d5
13,534
py
Python
shell_ui/__init__.py
conducto/conducto
b480780905f5a25e8c803b60ca7cdf6976ce5ef6
[ "Apache-2.0" ]
25
2020-05-07T22:51:11.000Z
2021-11-17T16:14:42.000Z
shell_ui/__init__.py
conducto/conducto
b480780905f5a25e8c803b60ca7cdf6976ce5ef6
[ "Apache-2.0" ]
3
2020-04-21T06:38:02.000Z
2020-05-31T01:57:19.000Z
shell_ui/__init__.py
conducto/conducto
b480780905f5a25e8c803b60ca7cdf6976ce5ef6
[ "Apache-2.0" ]
2
2020-05-14T01:47:32.000Z
2020-06-03T21:58:12.000Z
import os import sys import signal import asyncio import json import time import traceback import typing import socket import re import select import websockets if sys.platform != "win32": import termios import tty else: import msvcrt import win32api from .. import api from ..shared import constants, ...
33.417284
88
0.547362
492f97e1b2f70e9fa3789d450a9a566094a9d2fe
8,772
py
Python
processing_components/simulation/ionospheric_screen.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
processing_components/simulation/ionospheric_screen.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
processing_components/simulation/ionospheric_screen.py
cnwangfeng/algorithm-reference-library
9605eb01652fbfcb9ff003cc12b44c84093b7fb1
[ "Apache-2.0" ]
null
null
null
""" Functions for ionospheric modelling: see SDP memo 97 """ import astropy.units as u import numpy from astropy.coordinates import SkyCoord from data_models.memory_data_models import BlockVisibility from processing_components.calibration.operations import create_gaintable_from_blockvisibility, \ create_gaintabl...
40.611111
118
0.621181
4930f596737a00ba148f8145ee070ebfb4b9133d
7,311
py
Python
build.py
Slaals/narval
3b811fb3854760a34a3875b35bd6088d4299ce8f
[ "CNRI-Python" ]
null
null
null
build.py
Slaals/narval
3b811fb3854760a34a3875b35bd6088d4299ce8f
[ "CNRI-Python" ]
null
null
null
build.py
Slaals/narval
3b811fb3854760a34a3875b35bd6088d4299ce8f
[ "CNRI-Python" ]
null
null
null
''' This file is part of Narval : an opensource and free rights static blog generator. ''' #!/usr/bin/python3 #-*- coding: utf-8 -*- import os, filecmp, random, webbrowser from shutil import copyfile params = __import__('config') helpers = __import__('helpers') tmps = __import__('template') build(params, helpers,...
39.518919
148
0.646286
493212d8687f50b52ca98a00b02e9f83e3d17403
247
py
Python
examples/simple/regression/sample_skipped.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
null
null
null
examples/simple/regression/sample_skipped.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
1
2022-03-12T19:43:00.000Z
2022-03-12T19:43:00.000Z
examples/simple/regression/sample_skipped.py
jonwesneski/end2
708c7b96c1086959565e2889a0818451e6e2c931
[ "MIT" ]
null
null
null
from src import ( RunMode, setup ) __run_mode__ = RunMode.PARALLEL
14.529412
65
0.712551
49328cd4da5fd3b0c69d9699b45e853d2628cbd7
9,297
py
Python
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
null
null
null
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
6
2020-03-20T18:10:01.000Z
2021-09-29T17:31:17.000Z
reference_parsing/scripts/reference_script.py
ScholarIndex/LinkedBooks
0cae008427ed1eb34a882e9d85f24b42b3ee3a28
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ USED una tantum to refactor the journal_references collection. Note that the old collection references (monograph reference lists) is discarded: monographs are going to ba parsed again. this script: 1- copies the journal_references collection to another collection: sand, test and production...
43.443925
179
0.64182
493417e0fff28d76a0a6a6c06dec19aa851fdaf9
20,534
py
Python
simpysql/Eloquent/SqlServerBuilder.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
29
2019-05-22T08:08:34.000Z
2021-11-16T08:15:10.000Z
simpysql/Eloquent/SqlServerBuilder.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
4
2019-05-20T08:34:07.000Z
2019-09-11T11:26:57.000Z
simpysql/Eloquent/SqlServerBuilder.py
wjtxlliubin/simpysql
c135ce42d0bda8b11632f4003bb60995d24a7392
[ "MIT" ]
5
2019-05-20T09:15:49.000Z
2021-09-04T19:08:59.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import collections from simpysql.Util.Expression import expression as expr, Expression from simpysql.Util.Response import Response from .BaseBuilder import BaseBuilder from simpysql.Util.Dynamic import Dynamic
39.564547
150
0.564868
49352eca9c4b127887b5b697dac9363a8f43de19
18,955
py
Python
openBMC/terminal_cmd.py
kevinkellyspacey/openBMC-rpi
468f3ec39a29e7d89e0601ba6d51279cd4617b93
[ "MIT" ]
null
null
null
openBMC/terminal_cmd.py
kevinkellyspacey/openBMC-rpi
468f3ec39a29e7d89e0601ba6d51279cd4617b93
[ "MIT" ]
null
null
null
openBMC/terminal_cmd.py
kevinkellyspacey/openBMC-rpi
468f3ec39a29e7d89e0601ba6d51279cd4617b93
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from openBMC.smbpbi import smbpbi_read import smbus from openBMC.fan_control import set_dbus_data,get_dbus_data,pwm_reqest_set,TMP451_7bit_ADDR,GPU0_7bit_ADDR,GPU1_7bit_ADDR import dbus import argparse import socket import sys import os if __name__ == '__ma...
39.737945
171
0.482564
4935f536cd95ba674ac2e9ef0ae15b9cb27cb00e
5,436
py
Python
other/wget_files.py
arlewis/galaxy_cutouts
02c7eac9a6251a36290e7c620ff6a76c012fd53b
[ "MIT" ]
null
null
null
other/wget_files.py
arlewis/galaxy_cutouts
02c7eac9a6251a36290e7c620ff6a76c012fd53b
[ "MIT" ]
null
null
null
other/wget_files.py
arlewis/galaxy_cutouts
02c7eac9a6251a36290e7c620ff6a76c012fd53b
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import astropy.io.fits import gal_data import config import argparse import os import sys from collections import defaultdict from pdb import set_trace _WORK_DIR = '/Users/lewis.1590/research/galbase' _GALDATA_DIR = '/Users/lewis.1590/python/galbase/gal_data' _...
36.979592
116
0.625276
49373d99cd60462ee40755d32e9fd17e9129e6bd
478
py
Python
jessie_bot/help/help.py
KNNCreative/jessie-bot
de6994b6a58b742f1e943cdfbd84af6c0c183851
[ "MIT" ]
1
2017-08-06T06:08:29.000Z
2017-08-06T06:08:29.000Z
jessie_bot/help/help.py
KNNCreative/jessie-bot
de6994b6a58b742f1e943cdfbd84af6c0c183851
[ "MIT" ]
null
null
null
jessie_bot/help/help.py
KNNCreative/jessie-bot
de6994b6a58b742f1e943cdfbd84af6c0c183851
[ "MIT" ]
null
null
null
import json import logging from pathlib import Path from hermes.common.lex_utils import success, error logger = logging.getLogger(__name__) script_path = Path.cwd().joinpath('hermes/help/script.json') with script_path.open() as f: script = json.load(f) if __name__ == '__main__': res = handler(event={}, context...
22.761905
60
0.719665
493744bd4e38a4f634bfc5490a7a5a2f5c5b9cc9
4,733
py
Python
MyStudy/app/Stateful_Firewall.py
OucMan/ryu
6ca460ec16f967945643fc7b3846898c571ad6cf
[ "Apache-2.0" ]
null
null
null
MyStudy/app/Stateful_Firewall.py
OucMan/ryu
6ca460ec16f967945643fc7b3846898c571ad6cf
[ "Apache-2.0" ]
null
null
null
MyStudy/app/Stateful_Firewall.py
OucMan/ryu
6ca460ec16f967945643fc7b3846898c571ad6cf
[ "Apache-2.0" ]
null
null
null
from ryu.base import app_manager from ryu.ofproto import ofproto_v1_3 from ryu.controller import ofp_event from ryu.controller.handler import set_ev_cls, MAIN_DISPATCHER, CONFIG_DISPATCHER from ryu.lib.packet.packet import packet, ether_types from ryu.lib.packet.ethernet import ethernet from ryu.lib.packet.ethernet imp...
45.509615
110
0.592225
493827951fe9c01069f538a18ee56a8c22b8b962
1,355
py
Python
screenpy/questions/body_of_the_last_response.py
perrygoy/screenpy
862c0d7e5ff9f1265e520ab383c04ddbd4d060eb
[ "MIT" ]
39
2019-03-22T15:18:23.000Z
2022-02-23T17:32:03.000Z
screenpy/questions/body_of_the_last_response.py
perrygoy/screenpy
862c0d7e5ff9f1265e520ab383c04ddbd4d060eb
[ "MIT" ]
63
2019-07-17T06:25:19.000Z
2022-01-13T07:03:53.000Z
screenpy/questions/body_of_the_last_response.py
bandophahita/screenpy
db0f3ef91a891b9d095016d83fa4b589620808ce
[ "MIT" ]
15
2019-07-09T11:02:56.000Z
2021-12-24T07:43:56.000Z
""" Investigate the body of the last API response received by the Actor. """ from json.decoder import JSONDecodeError from typing import Union from screenpy import Actor from screenpy.abilities import MakeAPIRequests from screenpy.exceptions import UnableToAnswer from screenpy.pacing import beat
30.111111
88
0.667159
493855de80e96da6e183d61540552721c4471e12
2,973
py
Python
d3rlpy/algos/torch/td3_impl.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
565
2020-08-01T02:44:28.000Z
2022-03-30T15:00:54.000Z
d3rlpy/algos/torch/td3_impl.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
144
2020-08-01T03:45:10.000Z
2022-03-30T14:51:16.000Z
d3rlpy/algos/torch/td3_impl.py
ningyixue/AIPI530_Final_Project
b95353ffd003692a37a59042dfcd744a18b7e802
[ "MIT" ]
103
2020-08-26T13:27:34.000Z
2022-03-31T12:24:27.000Z
from typing import Optional, Sequence import torch from ...gpu import Device from ...models.encoders import EncoderFactory from ...models.optimizers import OptimizerFactory from ...models.q_functions import QFunctionFactory from ...preprocessing import ActionScaler, RewardScaler, Scaler from ...torch_utility import T...
36.703704
73
0.670703
49389ecac90c405c9c35bd0a48479aa66ba8e1c6
9,086
py
Python
mod_modPackInformer/source/mod_modPackInformer.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
null
null
null
mod_modPackInformer/source/mod_modPackInformer.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
null
null
null
mod_modPackInformer/source/mod_modPackInformer.py
stealthz67/spoter-mods-1
4ebd859fbb705b085ae5c4cb621edfbab476e378
[ "WTFPL" ]
1
2019-12-10T19:11:55.000Z
2019-12-10T19:11:55.000Z
# -*- coding: utf-8 -*- import json import os import threading import urllib import urllib2 import BigWorld import ResMgr from gui.Scaleform.daapi.view.dialogs import DIALOG_BUTTON_ID, ConfirmDialogButtons, SimpleDialogMeta from gui.Scaleform.daapi.view.lobby.LobbyView import LobbyView from gui import DialogsInterface,...
38.5
195
0.575171
49397d33975fc946c23e0dd90e4f51ce16027f86
1,978
py
Python
tests/dummypredictor/predictors.py
kiconiaworks/igata
1d8a4b82a65eb936d5d8f8ff70747ba82ddef31a
[ "BSD-2-Clause" ]
1
2021-12-31T14:29:44.000Z
2021-12-31T14:29:44.000Z
tests/dummypredictor/predictors.py
kiconiaworks/igata
1d8a4b82a65eb936d5d8f8ff70747ba82ddef31a
[ "BSD-2-Clause" ]
6
2019-11-25T04:20:26.000Z
2021-12-13T05:23:16.000Z
tests/dummypredictor/predictors.py
kiconiaworks/igata
1d8a4b82a65eb936d5d8f8ff70747ba82ddef31a
[ "BSD-2-Clause" ]
null
null
null
from time import sleep from igata.predictors import PredictorBase
27.859155
76
0.68453
493a4dbeaaa60cda9d709c7b5d41a2f09db7205c
2,134
py
Python
ML/wrapper.py
NVombat/ReadAssist
11e107a7387f97024fa9e16d58a5b25e8291d343
[ "MIT" ]
5
2021-04-27T09:18:42.000Z
2022-03-22T17:24:33.000Z
ML/wrapper.py
SanahSidhu/ReadAssist
abbe910d0583bc504c3f2b318ccf263bb7170900
[ "MIT" ]
null
null
null
ML/wrapper.py
SanahSidhu/ReadAssist
abbe910d0583bc504c3f2b318ccf263bb7170900
[ "MIT" ]
4
2021-03-30T06:18:09.000Z
2021-04-05T08:05:16.000Z
#Encapsulates all models #Caches the models and uses the preexisting model instead of reloading it from .OCR import get_text from .ptt import get_pdf import pytesseract from .question import secondary_pipeline from transformers import pipeline if __name__ == '__main__': # gpt = pipeline('text-generation', model='...
54.717949
894
0.735708
493bd803d4c7823847afa2537f0ada612dffc26a
154
py
Python
unicode_urls/cms/__init__.py
Alexx-G/django-unicode-urls
fd4f89181c7172412ddf499efd050119c16c7d43
[ "MIT" ]
null
null
null
unicode_urls/cms/__init__.py
Alexx-G/django-unicode-urls
fd4f89181c7172412ddf499efd050119c16c7d43
[ "MIT" ]
null
null
null
unicode_urls/cms/__init__.py
Alexx-G/django-unicode-urls
fd4f89181c7172412ddf499efd050119c16c7d43
[ "MIT" ]
null
null
null
from .urlutils import any_path_re
19.25
45
0.792208
493bdcbcdb59f9dfe146c2a5250f13347ddc9c85
4,242
py
Python
mailpile/plugins/demos.py
pyarnold/Mailpile
a7c0a0c6257da167207200f3b214b0e66bb93a10
[ "Apache-2.0" ]
2
2017-02-03T07:00:57.000Z
2020-12-18T01:07:34.000Z
mailpile/plugins/demos.py
cz8s/Mailpile
a7c0a0c6257da167207200f3b214b0e66bb93a10
[ "Apache-2.0" ]
null
null
null
mailpile/plugins/demos.py
cz8s/Mailpile
a7c0a0c6257da167207200f3b214b0e66bb93a10
[ "Apache-2.0" ]
null
null
null
# This is a collection of very short demo-plugins to illustrate how # to create and register hooks into the various parts of Mailpile # # To start creating a new plugin, it may make sense to copy this file, # globally search/replace the word "Demo" with your preferred plugin # name and then go delete sections you aren'...
32.883721
78
0.599481
493d7925c52f4ec18bce691a24e25dd57a737ace
2,523
py
Python
cqi_cpp/src/wrapper/cqi_test.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
cqi_cpp/src/wrapper/cqi_test.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
cqi_cpp/src/wrapper/cqi_test.py
AMR-/Conservative-Q-Improvement
f9d47b33fe757475d3216d3c406d147206738c90
[ "MIT" ]
null
null
null
import argparse import gym import math from qtree_wrapper import PyBox as Box from qtree_wrapper import PyDiscrete as Discrete from qtree_wrapper import PyQTree as QTree from qtree_wrapper import PyVector as Vector from train import Train from utils import convert_to_pybox env = gym.make('CartPole-v0') box = conve...
31.148148
88
0.752675
493e1e1955403325340bec49f18afa1cd0849a0e
621
py
Python
mcu-controller/main.py
KongoPL/lego-rc-car
6e731cd8a6787d69a83d5a92a290bbea074ef588
[ "BSD-3-Clause" ]
null
null
null
mcu-controller/main.py
KongoPL/lego-rc-car
6e731cd8a6787d69a83d5a92a290bbea074ef588
[ "BSD-3-Clause" ]
null
null
null
mcu-controller/main.py
KongoPL/lego-rc-car
6e731cd8a6787d69a83d5a92a290bbea074ef588
[ "BSD-3-Clause" ]
null
null
null
# Yea, there is probably some good framework waiting for me, # but I just want to have fun. Sometimes reinventing the wheel will serve you. # But...don't do that in professional work :) import config import time from Controller import Controller print("Hello!") root = Controller() # try: if True: lastLoopExecution...
20.7
78
0.742351
493f41de8fbe0f2e07f4b04ada75db7783d58023
803
py
Python
thread_test.py
mrabedini/playground_threading
664bcae4a9328779170551d7d0e271707635e85d
[ "MIT" ]
null
null
null
thread_test.py
mrabedini/playground_threading
664bcae4a9328779170551d7d0e271707635e85d
[ "MIT" ]
null
null
null
thread_test.py
mrabedini/playground_threading
664bcae4a9328779170551d7d0e271707635e85d
[ "MIT" ]
null
null
null
import concurrent.futures import logging from logging import StreamHandler import time import timeit logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", ) logger = logging.getLogger(__name__) start = timeit.default_timer() with concurrent.futures.ThreadP...
25.09375
71
0.716065
4940523067b88b49cb6f2210898a5f21bd9601ae
1,249
py
Python
iv/Backtracking/combinations.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
2
2020-09-19T22:28:15.000Z
2020-10-03T01:44:53.000Z
iv/Backtracking/combinations.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
null
null
null
iv/Backtracking/combinations.py
iamsuman/iv
bf68d3fd45455b6041e74b09272f69503bf7a8ac
[ "MIT" ]
1
2020-10-03T01:43:30.000Z
2020-10-03T01:43:30.000Z
a = Combo() A = 4 B = 2 # print(a.combine(A,B)) print(a.comb([1,2,3,4], 2)) print(a.comb([1,2,3,4,5], 2))
22.709091
58
0.506005
4941a07b8598fcd71acf4d8decca54a679038504
1,257
py
Python
urlbrevity/test_urlconf.py
kezabelle/django-urlbrevity
a8b779587986c60c4e0597aead908d954480f0f9
[ "BSD-2-Clause-FreeBSD" ]
4
2015-02-13T16:20:41.000Z
2020-07-02T18:45:50.000Z
urlbrevity/test_urlconf.py
kezabelle/django-urlbrevity
a8b779587986c60c4e0597aead908d954480f0f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
urlbrevity/test_urlconf.py
kezabelle/django-urlbrevity
a8b779587986c60c4e0597aead908d954480f0f9
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
# -*- coding: utf-8 -*- from pytest import raises from django.contrib import admin from django.core.urlresolvers import reverse from django.core.urlresolvers import resolve from django.core.urlresolvers import NoReverseMatch from django.core.urlresolvers import Resolver404 from django.http import HttpResponse import ur...
28.568182
73
0.703262
4945214eb5cf61ec5b89774833abf449ace18614
7,845
py
Python
test/unittest/datafinder_test/persistence/metadata/value_mapping/custom_format_test.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
9
2016-05-25T06:12:52.000Z
2021-04-30T07:22:48.000Z
test/unittest/datafinder_test/persistence/metadata/value_mapping/custom_format_test.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
6
2016-03-29T13:38:18.000Z
2017-01-18T15:57:42.000Z
test/unittest/datafinder_test/persistence/metadata/value_mapping/custom_format_test.py
schlauch/DataFinder
958fda4f3064f9f6b2034da396a20ac9d9abd52f
[ "BSD-3-Clause" ]
7
2016-06-15T12:01:22.000Z
2022-03-05T08:50:25.000Z
# $Filename$ # $Authors$ # Last Changed: $Date$ $Committer$ $Revision-Id$ # # Copyright (c) 2003-2011, German Aerospace Center (DLR) # # All rights reserved. #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are # #met: # ...
42.405405
88
0.653792
49477b4b9fb8484c659b6dfe9a98235bbdb4b218
3,629
py
Python
programmers/kakao2022/kakao2022/grader.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
programmers/kakao2022/kakao2022/grader.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
programmers/kakao2022/kakao2022/grader.py
jiyolla/StudyForCodingTestWithDongbinNa
c070829dd9c7b02b139e56511832c4a3b9f5982f
[ "MIT" ]
null
null
null
import random from .api import put_change_grade # grades[id] = grade for user #{id}. # grades[0] is not used. Since user id starts from 1.
36.656566
120
0.673188
4947e1cc23f3c7930219fe180c751c514d914052
2,188
py
Python
resources/benchmark.py
HPI-SWA-Lab/TargetSpecific-ICOOOLPS
2936fe010103cfbe4b0131313abcee3a59bb8fbc
[ "MIT" ]
1
2015-04-10T17:25:56.000Z
2015-04-10T17:25:56.000Z
resources/benchmark.py
HPI-SWA-Lab/TargetSpecific-ICOOOLPS
2936fe010103cfbe4b0131313abcee3a59bb8fbc
[ "MIT" ]
null
null
null
resources/benchmark.py
HPI-SWA-Lab/TargetSpecific-ICOOOLPS
2936fe010103cfbe4b0131313abcee3a59bb8fbc
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt N = 4 ind = np.arange(N) # the x locations for the groups width = 0.4 # the width of the bars fig, ax = plt.subplots() ax.set_ylim(0,11) # outliers only #ax2.set_ylim(0,35) # most of the data #ax.spines['bottom'].set_visible(False) #ax2.spines['top'].set_vi...
32.656716
202
0.66042
4948d466851a602b9bcffdd7a6596bee89b1c959
3,829
py
Python
talktracker/analysis.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
1
2018-08-22T09:07:04.000Z
2018-08-22T09:07:04.000Z
talktracker/analysis.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
1
2018-10-14T20:06:51.000Z
2018-10-14T20:06:51.000Z
talktracker/analysis.py
alTeska/talktracker
7d2c507bda78a6faf92568291190ea9300e878dc
[ "MIT" ]
3
2018-09-21T15:09:26.000Z
2018-10-13T13:58:06.000Z
from datetime import timedelta from random import sample, randint import talktracker as tt def time_diff(time1, time2): """calculate the time different""" time1_info = timedelta(hours=time1[0], minutes=time1[1], seconds=time1[2]) time2_info = timedelta(hours=time2[0], minutes=time2[1], seconds=time2[2]) ...
36.122642
154
0.629146
494aa2d4e0d2a060a9ff51a1b37123a087e51342
2,692
py
Python
app/internal/module/video_del/queue.py
penM000/eALPluS-video-api
4ec8f850bd98450b76279f5e30da854dbfaed776
[ "MIT" ]
null
null
null
app/internal/module/video_del/queue.py
penM000/eALPluS-video-api
4ec8f850bd98450b76279f5e30da854dbfaed776
[ "MIT" ]
null
null
null
app/internal/module/video_del/queue.py
penM000/eALPluS-video-api
4ec8f850bd98450b76279f5e30da854dbfaed776
[ "MIT" ]
null
null
null
import asyncio from dataclasses import dataclass, field from typing import Any from .encode import encoder from .database import database from ..logger import logger queue = None encode_tasks = []
29.26087
75
0.609955
494b2faa96115baf8681d111a98a087de5ebcb59
476
py
Python
lib/dyson/utils/module.py
luna-test/luna
6d94439f2747daf96e295837684bdc6607f507dc
[ "Apache-2.0" ]
3
2018-05-21T14:35:11.000Z
2021-03-25T12:32:25.000Z
lib/dyson/utils/module.py
dyson-framework/dyson
e5a2e12c7bb0ba21ff274feff34c184576d08ff5
[ "Apache-2.0" ]
13
2018-05-22T01:01:08.000Z
2018-09-16T22:12:10.000Z
lib/dyson/utils/module.py
luna-test/luna
6d94439f2747daf96e295837684bdc6607f507dc
[ "Apache-2.0" ]
1
2018-05-21T14:35:17.000Z
2018-05-21T14:35:17.000Z
import os from dyson import constants from abc import abstractmethod import sys from dyson.constants import to_boolean
18.307692
62
0.686975
494cefc1f9462c0538e6c405bcec6cc75cbab494
1,136
py
Python
misc/texteditor.py
disc0nnctd/myPythonCodesDC
378b0cf749124ef8b7f8d70f6f298faa6c9f73de
[ "MIT" ]
1
2017-04-30T18:20:32.000Z
2017-04-30T18:20:32.000Z
misc/texteditor.py
disc0nnctd/myPythonCodesDC
378b0cf749124ef8b7f8d70f6f298faa6c9f73de
[ "MIT" ]
1
2017-04-30T10:09:45.000Z
2017-04-30T12:39:19.000Z
misc/texteditor.py
disc0nnctd/myPythonCodesDC
378b0cf749124ef8b7f8d70f6f298faa6c9f73de
[ "MIT" ]
1
2017-04-30T09:54:08.000Z
2017-04-30T09:54:08.000Z
"""A simple text editor made in Python 2.7.""" from os import path, chdir workingdir = path.join(path.dirname(__file__), 'texts') chdir(workingdir) from Tkinter import Tk, Text, Button import tkFileDialog root = Tk("Text Editor") text = Text(root) text.grid() def saveas(): """Save file.""" tr...
25.244444
73
0.611796
494e2056309882919070e0989e358cb4f828bbd0
397
py
Python
21_DivdeConquer/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
21_DivdeConquer/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
3
2020-11-04T05:38:53.000Z
2021-03-02T02:15:19.000Z
21_DivdeConquer/Step05/gamjapark.py
StudyForCoding/BEAKJOON
84e1c5e463255e919ccf6b6a782978c205420dbf
[ "MIT" ]
null
null
null
import sys n, k= map(int, sys.stdin.readline().split()) P = 1000000007 f = [1 for _ in range(n + 1)] for i in range(2, n + 1): f[i] = (f[i - 1] * i) % P A = f[n] B = (f[n-k]*f[k])%P print((A % P) * (power(B, P-2) %P) % P) # : N!%P * (K!(N-K)!)^(p-2)%P
18.045455
76
0.476071
494e7be275c169f4f4b49f4a379016a1594a2a8b
135
py
Python
quicksilver.py
binaryflesh/quicksilver
0d65259f305beb05efe00f096e48c41b62bfdf57
[ "MIT" ]
1
2018-12-01T07:52:13.000Z
2018-12-01T07:52:13.000Z
quicksilver.py
binaryflesh/quicksilver
0d65259f305beb05efe00f096e48c41b62bfdf57
[ "MIT" ]
7
2018-12-02T23:31:38.000Z
2018-12-03T07:44:41.000Z
quicksilver.py
binaryflesh/quicksilver
0d65259f305beb05efe00f096e48c41b62bfdf57
[ "MIT" ]
null
null
null
# Quicksilver.py - Agnostic project analyzer that generates resourceful diagrams. WIP # Copyright (C) 2018 Logan Campos - @binaryflesh
45
85
0.792593
494e987723a6b2a0236a0a1b1f66efc147868431
4,830
py
Python
action_controller/scripts/ActionControllerNode.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
1
2021-09-23T09:42:32.000Z
2021-09-23T09:42:32.000Z
action_controller/scripts/ActionControllerNode.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
null
null
null
action_controller/scripts/ActionControllerNode.py
FablabHome/The_Essense_of_the_Grey_Region
6385ada0879bdc6c00cb707192841fdab9ab7bf1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ MIT License Copyright (c) 2020 rootadminWalker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
37.44186
105
0.561698
494ed3dffeb5ac99649e1cc394c891c7296dc5fc
5,174
py
Python
model.py
Wentao-Shi/Molecule-RNN
e00d89c7a6c0c341fb790da800087b9e34be5ab8
[ "MIT" ]
3
2021-08-22T21:26:38.000Z
2022-01-09T11:16:40.000Z
model.py
shiwentao00/Molecule-RNN
e00d89c7a6c0c341fb790da800087b9e34be5ab8
[ "MIT" ]
null
null
null
model.py
shiwentao00/Molecule-RNN
e00d89c7a6c0c341fb790da800087b9e34be5ab8
[ "MIT" ]
null
null
null
# Copyright: Wentao Shi, 2021 import torch import torch.nn as nn from torch.nn.utils.rnn import pack_padded_sequence from torch.nn.functional import softmax
32.3375
71
0.55547
49503dbeb658d944f139ed75ff92cfc671b7acd3
86
py
Python
day5.py
GuiltyD/Python_code
db03c491824b66d842a7b4ff8aa45644233526a6
[ "MIT" ]
null
null
null
day5.py
GuiltyD/Python_code
db03c491824b66d842a7b4ff8aa45644233526a6
[ "MIT" ]
null
null
null
day5.py
GuiltyD/Python_code
db03c491824b66d842a7b4ff8aa45644233526a6
[ "MIT" ]
null
null
null
f = open('./day4.py') for chunk in iter(lambda :f.read(10),''): print(chunk)
17.2
41
0.55814
4950672898e66d691bf307ac9e23c9fb67819cb1
701
py
Python
Latest/venv/Lib/site-packages/apptools/io/h5/utils.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-01-09T20:04:31.000Z
2022-01-09T20:04:31.000Z
Latest/venv/Lib/site-packages/apptools/io/h5/utils.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
1
2022-02-15T12:01:57.000Z
2022-03-24T19:48:47.000Z
Latest/venv/Lib/site-packages/apptools/io/h5/utils.py
adamcvj/SatelliteTracker
49a8f26804422fdad6f330a5548e9f283d84a55d
[ "Apache-2.0" ]
null
null
null
from contextlib import contextmanager from .file import H5File
24.172414
73
0.611983
4950f58ba8e9dd8055eb104d658977925fab01b1
202
py
Python
src/success_backup_check/tests/test_success_backup_check.py
linuxluigi/success-backup-check
aa3be2dbd8b0106b931bf226614e05af68034077
[ "MIT" ]
null
null
null
src/success_backup_check/tests/test_success_backup_check.py
linuxluigi/success-backup-check
aa3be2dbd8b0106b931bf226614e05af68034077
[ "MIT" ]
7
2017-10-20T08:14:08.000Z
2017-10-31T10:04:19.000Z
src/success_backup_check/tests/test_success_backup_check.py
linuxluigi/success-backup-check
aa3be2dbd8b0106b931bf226614e05af68034077
[ "MIT" ]
null
null
null
import pytest import success_backup_check
25.25
55
0.826733
4953b0d0a882cec4862d24ffe94ed3594bc14dec
1,816
py
Python
insighioNode/lib/networking/modem/modem_sequans.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
5
2021-06-11T09:03:12.000Z
2021-12-22T09:04:57.000Z
insighioNode/lib/networking/modem/modem_sequans.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
1
2021-06-11T14:15:05.000Z
2021-06-11T14:15:33.000Z
insighioNode/lib/networking/modem/modem_sequans.py
insighio/insighioNode
396b0858ffb265ac66075e8b9d90713ffae7ffb8
[ "MIT" ]
null
null
null
from modem_base import Modem from network import LTE import logging
24.540541
81
0.601872
4953cc8e9258070e70193f6a8e92ffeda65bac35
1,824
py
Python
ravendb/tests/jvm_migrated_tests/crud_tests/test_track_entity.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
8
2016-10-08T17:45:44.000Z
2018-05-29T12:16:43.000Z
ravendb/tests/jvm_migrated_tests/crud_tests/test_track_entity.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
5
2017-02-12T15:50:53.000Z
2017-09-18T12:25:01.000Z
ravendb/tests/jvm_migrated_tests/crud_tests/test_track_entity.py
ravendb/RavenDB-Python-Client
6286b459b501e755fe8e8591a48acf8616605ccd
[ "MIT" ]
8
2016-07-03T07:59:12.000Z
2017-09-18T11:22:23.000Z
from ravendb.exceptions.exceptions import NonUniqueObjectException, InvalidOperationException from ravendb.tests.test_base import UserWithId, TestBase
44.487805
109
0.679276
4953e3a0846206727edbbb495ede380b618ab266
1,781
py
Python
PluginSDK/PythonRecon/Python/excel_helper.py
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
20
2016-07-05T05:23:04.000Z
2021-11-07T14:25:59.000Z
PluginSDK/PythonRecon/Python/excel_helper.py
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
20
2016-06-08T06:36:55.000Z
2018-04-25T09:52:18.000Z
PluginSDK/PythonRecon/Python/excel_helper.py
PengJinFa/YAPNew
fafee8031669b24d0cc74876a477c97d0d7ebadc
[ "MIT" ]
21
2016-05-31T15:34:09.000Z
2021-11-07T14:26:03.000Z
from openpyxl import Workbook from openpyxl.utils import get_column_letter import numbers wb = Workbook() # save to excel data
30.706897
83
0.60977
4955e96c4c0b436986516c1c0b6010caa5dbeec8
1,971
py
Python
src/semantic_segmentation/utils/image.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
7
2022-01-10T19:04:34.000Z
2022-03-16T03:19:48.000Z
src/semantic_segmentation/utils/image.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
null
null
null
src/semantic_segmentation/utils/image.py
alteia-ai/ICSS
088ddb7a8b92c71cc0b95e55d186069b8af50b0a
[ "MIT" ]
null
null
null
import colorsys import itertools import numpy as np import torch def random_colors(n, bright=True): """ Generate random colors. To get visually distinct colors, generate them in HSV space then convert to RGB. """ brightness = 1.0 if bright else 0.7 hsv = [(i / n, 1, brightness) for i in...
31.790323
99
0.609335
4958f00172a7990bcba76c17970e13446ea6dcfc
8,498
py
Python
backend/src/contaxy/operations/deployment.py
ml-tooling/contaxy
3317a866c2ef641667a2d318885c8b0f5096b56a
[ "MIT" ]
3
2021-10-17T23:25:05.000Z
2022-02-03T21:40:59.000Z
backend/src/contaxy/operations/deployment.py
ml-tooling/contaxy
3317a866c2ef641667a2d318885c8b0f5096b56a
[ "MIT" ]
14
2021-11-09T15:24:29.000Z
2022-03-11T13:26:04.000Z
backend/src/contaxy/operations/deployment.py
ml-tooling/contaxy
3317a866c2ef641667a2d318885c8b0f5096b56a
[ "MIT" ]
3
2022-01-27T08:31:57.000Z
2022-02-11T13:38:00.000Z
from abc import ABC, abstractmethod from datetime import datetime from typing import Any, List, Literal, Optional from contaxy.schema import Job, JobInput, ResourceAction, Service, ServiceInput from contaxy.schema.deployment import DeploymentType # TODO: update_service functionality
29.922535
166
0.619087
4959390b2ca88e67ed8b8674132fbee54a9cccd4
15,604
py
Python
perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
3
2018-04-28T13:06:14.000Z
2020-06-09T02:39:44.000Z
perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
1
2018-03-15T21:01:27.000Z
2018-03-15T21:01:27.000Z
perfkitbenchmarker/providers/openstack/os_virtual_machine.py
Nowasky/PerfKitBenchmarker
cfa88e269eb373780910896ed4bdc8db09469753
[ "Apache-2.0" ]
6
2019-06-11T18:59:57.000Z
2021-03-02T19:14:42.000Z
# Copyright 2015 PerfKitBenchmarker 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 appli...
36.543326
80
0.692771
49594197e0bf3a8d4220d5dcfdcb6644bf95fa9a
5,933
py
Python
model.py
kevincho840430/CarND-Behavioral-Cloning-P3-master-1
042707a17c6dffb19717737b3f78169428bf31f6
[ "MIT" ]
null
null
null
model.py
kevincho840430/CarND-Behavioral-Cloning-P3-master-1
042707a17c6dffb19717737b3f78169428bf31f6
[ "MIT" ]
null
null
null
model.py
kevincho840430/CarND-Behavioral-Cloning-P3-master-1
042707a17c6dffb19717737b3f78169428bf31f6
[ "MIT" ]
null
null
null
## Self-driven car project based on nvidia's CNN model ## Package #torch = 0.4.1.post2 #torchvision = 0.2.1 #numpy = 1.15.2 #opencv-python =3.4.3 # -*- coding: utf-8 -*- # Import the Stuff import torch import torch.nn as nn import torch.optim as optim from torch.utils import data from torch.utils.data import DataLoa...
31.062827
118
0.632901
4959b0c95664f6b5e44804e1d10f0d164fcb9038
2,335
py
Python
setup.py
sankethvedula/flowtorch
44a0f0eff842dd33ca17b01f4e02d8cdda005aa8
[ "MIT" ]
29
2020-12-19T00:29:42.000Z
2021-08-12T19:11:47.000Z
setup.py
sankethvedula/flowtorch
44a0f0eff842dd33ca17b01f4e02d8cdda005aa8
[ "MIT" ]
30
2020-12-29T04:42:38.000Z
2021-02-19T22:29:38.000Z
setup.py
sankethvedula/flowtorch
44a0f0eff842dd33ca17b01f4e02d8cdda005aa8
[ "MIT" ]
1
2021-05-06T21:25:45.000Z
2021-05-06T21:25:45.000Z
# Copyright (c) Meta Platforms, Inc import os import sys from setuptools import find_packages, setup REQUIRED_MAJOR = 3 REQUIRED_MINOR = 7 TEST_REQUIRES = ["numpy", "pytest", "pytest-cov", "scipy"] DEV_REQUIRES = TEST_REQUIRES + [ "black", "flake8", "flake8-bugbear", "mypy", "toml", "usort"...
26.534091
72
0.616702
495c1efa0fbbd4eda9cf54a8e5e4784dac2375f0
12,923
py
Python
nn/train.py
julian-carpenter/airynet
7ad87bbc717107f72d69547e4243373c05dadf70
[ "MIT" ]
8
2019-03-17T10:45:19.000Z
2022-01-13T17:36:54.000Z
nn/train.py
julian-carpenter/airynet
7ad87bbc717107f72d69547e4243373c05dadf70
[ "MIT" ]
null
null
null
nn/train.py
julian-carpenter/airynet
7ad87bbc717107f72d69547e4243373c05dadf70
[ "MIT" ]
1
2019-07-24T05:59:38.000Z
2019-07-24T05:59:38.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function import nn import tensorflow as tf from tensorflow.python.client import device_lib from numpy import min, max def model_fn(features, labels, mode, params): """Model function for airynet network""" if ...
40.384375
79
0.583998
495c925b5444da2267f89a8db3c5a875669b6a75
310
py
Python
retrobiocat_web/app/db_analysis/__init__.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
9
2020-12-01T16:33:02.000Z
2022-01-19T20:02:42.000Z
retrobiocat_web/app/db_analysis/__init__.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
4
2020-10-02T14:38:32.000Z
2021-08-02T09:23:58.000Z
retrobiocat_web/app/db_analysis/__init__.py
ihayhurst/RetroBioCat
d674897459c0ab65faad5ed3017c55cf51bcc020
[ "MIT" ]
6
2021-01-14T07:48:36.000Z
2022-03-20T17:34:27.000Z
from flask import Blueprint bp = Blueprint('db_analysis', __name__, template_folder='templates', static_folder='static', static_url_path='/db_analysis/static' ) from retrobiocat_web.app.db_analysis.routes import bioinformatics, ssn
25.833333
70
0.616129
495d8b60f3e72589eb60ba4876bee12c223e7de1
10,249
py
Python
tasks.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "Apache-2.0" ]
null
null
null
tasks.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "Apache-2.0" ]
null
null
null
tasks.py
pycopia/devtest
9ec93045ba4bab5b20ce99dc61cebd5b5a234d01
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3.9 """Tasks file used by the *invoke* command. This simplifies some common development tasks. Run these tasks with the `invoke` tool. """ from __future__ import annotations import sys import os import shutil import getpass from glob import glob from pathlib import Path import keyring import s...
28.469444
100
0.623085
495dad09c3d51139d0567841ccbcb4d16adb5840
3,846
py
Python
sandbox/lib/jumpscale/Jumpscale/servers/gedis/tests/3_threebot_redis_registration.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/servers/gedis/tests/3_threebot_redis_registration.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/servers/gedis/tests/3_threebot_redis_registration.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j from io import BytesIO import binascii def main(self): """ kosmos -p 'j.servers.gedis.test("threebot_redis_registration")' """ ####THREEBOT REGISTRATION phonebook = j.threebot.package.phonebook.client_get() if j.sal.nettools.tcpPortConnectionTest("www.google.com", 44...
32.871795
118
0.607904
495f237d0412eaba51c51ff1ebcf25e4b6ae6465
2,803
py
Python
font/gen.py
smaji-org/cjkv_info_sample
12440b938a58b2384a3c9d11c0897dd4101d6fe6
[ "MIT" ]
null
null
null
font/gen.py
smaji-org/cjkv_info_sample
12440b938a58b2384a3c9d11c0897dd4101d6fe6
[ "MIT" ]
null
null
null
font/gen.py
smaji-org/cjkv_info_sample
12440b938a58b2384a3c9d11c0897dd4101d6fe6
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding:utf-8 -*- import os import argparse import glob from functools import partial import fontforge import psMat import source opt_parser= argparse.ArgumentParser() opt_parser.add_argument("--cjkv_info", type= str, help= u"the path of cjkv_info") opt_parser.add_argument("--region"...
26.951923
72
0.662861
496001f2e20c60b98e9d4d0701aee95ac8df87b1
3,692
py
Python
alarm_control_panel.py
rs1932/homeassistant-ring_alarm_component
b65b8ee1bc7e7408c3bc1adb6fd4e3f4ebf330d6
[ "Apache-2.0" ]
4
2019-09-07T23:15:54.000Z
2020-04-20T22:47:37.000Z
alarm_control_panel.py
rs1932/homeassistant-ring_alarm_component
b65b8ee1bc7e7408c3bc1adb6fd4e3f4ebf330d6
[ "Apache-2.0" ]
3
2019-09-10T00:03:24.000Z
2020-10-02T13:26:08.000Z
alarm_control_panel.py
rs1932/homeassistant-ring_alarm_component
b65b8ee1bc7e7408c3bc1adb6fd4e3f4ebf330d6
[ "Apache-2.0" ]
3
2019-11-19T11:03:01.000Z
2021-05-12T20:11:16.000Z
import logging import pandas as pd from homeassistant.components.alarm_control_panel import ( AlarmControlPanel ) from homeassistant.core import callback from homeassistant.util import convert from .ringalarmdevice import RingAlarmDevice from .constants import * from homeassistant.const import ( STATE_ALARM_...
31.288136
93
0.54117
4960a6159309ea3987628a9491068ccbc097d8ac
4,224
py
Python
bot/game.py
thequeenofspades/AlphaGOLADZero
f057f249bcda21ef570a5d8d8753544bf743aaec
[ "Apache-2.0" ]
1
2018-11-01T01:56:26.000Z
2018-11-01T01:56:26.000Z
bot/game.py
thequeenofspades/AlphaGOLADZero
f057f249bcda21ef570a5d8d8753544bf743aaec
[ "Apache-2.0" ]
7
2018-02-17T00:35:26.000Z
2018-06-06T23:55:22.000Z
bot/game.py
thequeenofspades/AlphaGOLADZero
f057f249bcda21ef570a5d8d8753544bf743aaec
[ "Apache-2.0" ]
null
null
null
from sys import stdin, stdout, stderr import traceback import time from player import Player from field.field import Field
33
98
0.529356
4960c8757588886d5cee0b290cbf124fc76beb18
552
py
Python
config/ConfigSices.py
atosborges00/sereno_bot
06bedb02847eff050adeadb6bcc5440bcd2283c3
[ "FSFAP" ]
null
null
null
config/ConfigSices.py
atosborges00/sereno_bot
06bedb02847eff050adeadb6bcc5440bcd2283c3
[ "FSFAP" ]
null
null
null
config/ConfigSices.py
atosborges00/sereno_bot
06bedb02847eff050adeadb6bcc5440bcd2283c3
[ "FSFAP" ]
null
null
null
from os import path from config.ConfigPaths import ConfigPaths
26.285714
83
0.697464
4961b43029a0917649b5f3a648e7d599051b3b4f
757
py
Python
main.py
leonli/codename-gen
53a66124184e9691d22bfd7db6274f1d44fe0a75
[ "MIT" ]
null
null
null
main.py
leonli/codename-gen
53a66124184e9691d22bfd7db6274f1d44fe0a75
[ "MIT" ]
null
null
null
main.py
leonli/codename-gen
53a66124184e9691d22bfd7db6274f1d44fe0a75
[ "MIT" ]
null
null
null
import click import random from pyfiglet import Figlet from termcolor import colored, cprint import imagenet if __name__ == '__main__': codename_gen()
32.913043
95
0.611625
4961cb44515f6694bce4182b84680ae488d272d1
14,882
py
Python
binder/plugins/views/userview.py
asma-oueslati/django-binder
0a16a928664b4be2b2b8e3f5f65c29301f0096fe
[ "MIT" ]
null
null
null
binder/plugins/views/userview.py
asma-oueslati/django-binder
0a16a928664b4be2b2b8e3f5f65c29301f0096fe
[ "MIT" ]
null
null
null
binder/plugins/views/userview.py
asma-oueslati/django-binder
0a16a928664b4be2b2b8e3f5f65c29301f0096fe
[ "MIT" ]
null
null
null
import logging import json from abc import ABCMeta, abstractmethod from django.contrib import auth from django.contrib.auth import update_session_auth_hash, password_validation from django.contrib.auth.tokens import default_token_generator from django.core.exceptions import ValidationError, PermissionDenied from djang...
27.009074
118
0.73216
4961f5ae237c556abd210443e12861307b7068fa
362
py
Python
libra_client/crypto/x25519.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/crypto/x25519.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
null
null
null
libra_client/crypto/x25519.py
violas-core/violas-client
e8798f7d081ac218b78b81fd7eb2f8da92631a16
[ "MIT" ]
1
2022-01-05T06:49:42.000Z
2022-01-05T06:49:42.000Z
from libra_client.canoser import DelegateT, BytesT # Size of a X25519 private key PRIVATE_KEY_SIZE = 32 # Size of a X25519 public key PUBLIC_KEY_SIZE = 32 # Size of a X25519 shared secret SHARED_SECRET_SIZE = 32
22.625
50
0.787293
49633e3a1fe78865b9e181ac00df94f57d6194b3
3,303
py
Python
plenum/test/plugin/demo_plugin/main.py
SchwiftyRick/indy-plenum
d23b99423eb805971e50446d7e89ada892aa6811
[ "Apache-2.0" ]
null
null
null
plenum/test/plugin/demo_plugin/main.py
SchwiftyRick/indy-plenum
d23b99423eb805971e50446d7e89ada892aa6811
[ "Apache-2.0" ]
1
2021-07-14T17:10:04.000Z
2021-07-14T17:10:04.000Z
plenum/test/plugin/demo_plugin/main.py
SchwiftyRick/indy-plenum
d23b99423eb805971e50446d7e89ada892aa6811
[ "Apache-2.0" ]
2
2021-02-19T15:36:50.000Z
2021-07-20T11:37:54.000Z
from plenum.common.constants import DOMAIN_LEDGER_ID from plenum.server.client_authn import CoreAuthNr from plenum.test.plugin.demo_plugin import AUCTION_LEDGER_ID from plenum.test.plugin.demo_plugin.batch_handlers.auction_batch_handler import AuctionBatchHandler from plenum.test.plugin.demo_plugin.config import get_co...
58.982143
101
0.693612
496648c5898f258ebf19c8b06ad31502f0290680
5,213
py
Python
biobakery_workflows/document_templates/quality_control_paired_dna_rna.template.py
shbrief/biobakery_workflows
2037f45caa8e4af9a40b5c1d2886cde15bc00381
[ "MIT" ]
1
2020-11-16T20:04:15.000Z
2020-11-16T20:04:15.000Z
biobakery_workflows/document_templates/quality_control_paired_dna_rna.template.py
mlwright97/biobakery_workflows
b3e74f25253d7354bebd02936ac25986281e85d6
[ "MIT" ]
null
null
null
biobakery_workflows/document_templates/quality_control_paired_dna_rna.template.py
mlwright97/biobakery_workflows
b3e74f25253d7354bebd02936ac25986281e85d6
[ "MIT" ]
null
null
null
#+ echo=False import numpy from biobakery_workflows import utilities, visualizations, files from anadama2 import PweaveDocument document=PweaveDocument() # get the variables for this document generation task vars = document.get_vars() # determine the document format pdf_format = True if vars["format"] == "pdf" ...
38.330882
156
0.782851
49665a0b0e4dd98e4c598bd1960650361ca30dc7
1,604
py
Python
Other_notebooks/Shapefile_Demo.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
Other_notebooks/Shapefile_Demo.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
null
null
null
Other_notebooks/Shapefile_Demo.py
gamedaygeorge/datacube-applications-library
1b6314ee3465f9f17930391a4c241e981a9e200e
[ "Apache-2.0" ]
1
2021-02-25T14:19:05.000Z
2021-02-25T14:19:05.000Z
# Code behind module for Shapefile_Demo.ipynb ################################ ## ## Import Statments ## ################################ # Import standard Python modules import sys import datacube import numpy as np import fiona import xarray as xr from rasterio.features import geometry_mask import shapely from sha...
28.642857
86
0.596633
496664e291d159374bf05460e543caa52023fc6f
272
py
Python
Day 02/Day 02.1.py
Mraedis/AoC2021
4d198f8b227ce8f8f2f3fd2fed9396d7898e9d2a
[ "Apache-2.0" ]
1
2021-11-30T22:41:09.000Z
2021-11-30T22:41:09.000Z
Day 02/Day 02.1.py
Mraedis/AoC2021
4d198f8b227ce8f8f2f3fd2fed9396d7898e9d2a
[ "Apache-2.0" ]
null
null
null
Day 02/Day 02.1.py
Mraedis/AoC2021
4d198f8b227ce8f8f2f3fd2fed9396d7898e9d2a
[ "Apache-2.0" ]
null
null
null
linelist = [line for line in open('Day 02.input').readlines()] hor = 0 dep = 0 for line in linelist: mov, amount = line.split(' ') if mov == 'forward': hor += int(amount) else: dep += int(amount) * (-1 if mov == 'up' else 1) print(hor * dep)
20.923077
62
0.555147
49670dd8b225f1420aba3e75006477f4bfe63dc1
1,879
py
Python
examples/simple1d/driver.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
1
2019-11-09T15:13:38.000Z
2019-11-09T15:13:38.000Z
examples/simple1d/driver.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
3
2016-10-05T22:57:46.000Z
2016-10-06T06:26:22.000Z
examples/simple1d/driver.py
michael-a-hansen/jalapeno
2f0d47467a78395e42854e11abebcf1b7721e0be
[ "MIT" ]
null
null
null
''' This example provides three examples of a simple plot of 1-D data. 1. a publication-ready single column figure, which is printed to png (600 dpi), pdf, and svg 2. a presentation-ready figure on a black background Four steps are involved in each figure: - load/generate the data - construct a 1d plot (figure, axis,...
33.553571
104
0.581692
4968c48330c18edd322258fb79f85333f213b40b
2,306
py
Python
process/1_embed_keep_ge.py
omarmaddouri/GCNCC_1
ec858bbe8246e4af15f7b870ca0ccafdea93d627
[ "MIT" ]
4
2020-12-03T11:57:15.000Z
2021-12-09T05:20:44.000Z
process/1_embed_keep_ge.py
alkaidone/GCNCC
3270b4c2d48e0090a18a0ab1df3b9fd81627029d
[ "MIT" ]
5
2020-01-28T23:14:40.000Z
2021-08-25T15:55:23.000Z
process/1_embed_keep_ge.py
alkaidone/GCNCC
3270b4c2d48e0090a18a0ab1df3b9fd81627029d
[ "MIT" ]
3
2021-11-23T05:13:27.000Z
2021-12-30T08:12:48.000Z
from __future__ import division from __future__ import print_function from pathlib import Path import sys project_path = Path(__file__).resolve().parents[1] sys.path.append(str(project_path)) from keras.layers import Dense, Activation, Dropout from keras.models import Model, Sequential from keras.regularize...
38.433333
139
0.685603
496956f2c24db98208ca44b218ea029a5dcff3f8
832
py
Python
docs/modelserving/detect/aif/germancredit/simulate_predicts.py
chinhuang007/website
c5324e9ee3e7f202c226836de0aca9ebd33b61b2
[ "Apache-2.0" ]
1,146
2019-03-27T21:14:34.000Z
2021-09-22T08:36:46.000Z
docs/modelserving/detect/aif/germancredit/simulate_predicts.py
chinhuang007/website
c5324e9ee3e7f202c226836de0aca9ebd33b61b2
[ "Apache-2.0" ]
1,803
2019-03-27T22:16:02.000Z
2021-09-22T15:27:44.000Z
docs/modelserving/detect/aif/germancredit/simulate_predicts.py
chinhuang007/website
c5324e9ee3e7f202c226836de0aca9ebd33b61b2
[ "Apache-2.0" ]
573
2019-03-27T21:14:58.000Z
2021-09-20T21:15:52.000Z
import sys import json import time import requests if len(sys.argv) < 3: raise Exception("No endpoint specified. ") endpoint = sys.argv[1] headers = { 'Host': sys.argv[2] } with open('input.json') as file: sample_file = json.load(file) inputs = sample_file["instances"] # Split inputs into chunks of size ...
25.212121
74
0.689904
496a50df8aab51c7339b1ff94cb179d8c9744ace
1,272
py
Python
sdc/ysdc_dataset_api/utils/serialization.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
156
2021-07-16T08:54:39.000Z
2022-03-24T11:49:36.000Z
sdc/ysdc_dataset_api/utils/serialization.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
18
2021-07-21T14:02:46.000Z
2022-02-26T04:07:12.000Z
sdc/ysdc_dataset_api/utils/serialization.py
sty61010/shifts
d3bb3086d8f2581f74644585701f4b1db4338483
[ "Apache-2.0" ]
41
2021-07-21T05:38:07.000Z
2022-01-13T15:25:51.000Z
import io import zlib import numpy as np def serialize_numpy(arr: np.ndarray, compress: bool = False) -> str: """Serializes numpy array to string with optional zlib compression. Args: arr (np.ndarray): Numpy array to serialize. compress (bool, optional): Whether to compress resulting strin...
27.06383
91
0.687893
496b0cdd9c9c0a2581d8be6db775211985c0614c
278
py
Python
hubspot/discovery/crm/extensions/videoconferencing/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
117
2020-04-06T08:22:53.000Z
2022-03-18T03:41:29.000Z
hubspot/discovery/crm/extensions/videoconferencing/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
62
2020-04-06T16:21:06.000Z
2022-03-17T16:50:44.000Z
hubspot/discovery/crm/extensions/videoconferencing/discovery.py
fakepop/hubspot-api-python
f04103a09f93f5c26c99991b25fa76801074f3d3
[ "Apache-2.0" ]
45
2020-04-06T16:13:52.000Z
2022-03-30T21:33:17.000Z
import hubspot.crm.extensions.videoconferencing as api_client from ....discovery_base import DiscoveryBase
30.888889
68
0.78777