hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
c716d21edeb7bede12f942c3dac5be788aa014df
4,614
py
Python
research/active_learning/active_learning_methods/constants.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
402
2019-05-08T17:28:25.000Z
2022-03-27T19:30:07.000Z
research/active_learning/active_learning_methods/constants.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
72
2019-05-07T18:33:32.000Z
2022-03-10T07:48:39.000Z
research/active_learning/active_learning_methods/constants.py
dnarqq/WildHack
4fb9e4545cb47a4283ebc1dec955c0817b1664c0
[ "MIT" ]
162
2019-05-18T15:45:27.000Z
2022-03-25T20:17:45.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
34.954545
97
0.685739
b3462836a5d149bad87d3fd900c97bb899642d84
931
py
Python
desktop/core/ext-py/Twisted/doc/core/examples/echoclient_udp.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
19
2015-05-01T19:59:03.000Z
2021-12-09T08:03:16.000Z
desktop/core/ext-py/Twisted/doc/core/examples/echoclient_udp.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
1
2018-01-03T15:26:49.000Z
2018-01-03T15:26:49.000Z
desktop/core/ext-py/Twisted/doc/core/examples/echoclient_udp.py
civascu/hue
82f2de44789ff5a981ed725175bae7944832d1e9
[ "Apache-2.0" ]
30
2015-03-25T19:40:07.000Z
2021-05-28T22:59:26.000Z
#!/usr/bin/python # Copyright (c) 2001-2004 Twisted Matrix Laboratories. # See LICENSE for details. from twisted.internet.protocol import DatagramProtocol from twisted.internet import reactor class EchoClientDatagramProtocol(DatagramProtocol): strings = [ "Hello, world!", "What a fine day it is."...
24.5
54
0.633727
069d147cc4a8ca71e88687b19d1dff1c57d08a1c
22,889
py
Python
tests/test_pdf_manager.py
Ganondolf/bibmanager
9c0bf1b1a6294ddfeec7c44c0b32d66f8b305456
[ "MIT" ]
50
2019-06-26T18:21:06.000Z
2022-03-28T11:17:23.000Z
tests/test_pdf_manager.py
Ganondolf/bibmanager
9c0bf1b1a6294ddfeec7c44c0b32d66f8b305456
[ "MIT" ]
57
2018-12-09T16:46:38.000Z
2022-01-30T12:30:17.000Z
tests/test_pdf_manager.py
Ganondolf/bibmanager
9c0bf1b1a6294ddfeec7c44c0b32d66f8b305456
[ "MIT" ]
8
2019-08-04T02:10:58.000Z
2021-02-26T14:42:30.000Z
# Copyright (c) 2018-2021 Patricio Cubillos. # bibmanager is open-source software under the MIT license (see LICENSE). import os import pytest import pathlib import bibmanager.bib_manager as bm import bibmanager.pdf_manager as pm import bibmanager.config_manager as cm import bibmanager.utils as u def test_guess_nam...
37.217886
141
0.672332
62ba5b21be88b6b36a97d998e0d55469afc53d19
1,895
py
Python
samples/server/petstore/flaskConnexion/swagger_server/models/tag.py
derBiggi/swagger-codegen
99dad052ec506796f3ed13b19364cf827ff0f256
[ "Apache-2.0" ]
14,570
2015-01-01T21:46:46.000Z
2022-03-31T22:28:15.000Z
samples/server/petstore/flaskConnexion/swagger_server/models/tag.py
derBiggi/swagger-codegen
99dad052ec506796f3ed13b19364cf827ff0f256
[ "Apache-2.0" ]
9,058
2015-01-08T15:49:17.000Z
2022-03-31T13:10:01.000Z
samples/server/petstore/flaskConnexion/swagger_server/models/tag.py
LaudateCorpus1/swagger-codegen
e4f322ce197f1d6a0643de80f9a20bb521480426
[ "Apache-2.0" ]
6,907
2015-01-02T05:29:47.000Z
2022-03-31T00:55:45.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from swagger_server.models.base_model_ import Model from swagger_server import util class Tag(Model): """NOTE: This class is auto generated by the swagger code ge...
20.824176
80
0.531398
fbc8d86a87f9ec37687c5f39ef06f8378e839d00
247
py
Python
src/estimator.py
ronjones340/andelas
8d5212f211eb9735db3d154fff942f0fccdb6d48
[ "MIT" ]
null
null
null
src/estimator.py
ronjones340/andelas
8d5212f211eb9735db3d154fff942f0fccdb6d48
[ "MIT" ]
1
2021-05-11T10:32:40.000Z
2021-05-11T10:32:40.000Z
src/estimator.py
ronjones340/andelas
8d5212f211eb9735db3d154fff942f0fccdb6d48
[ "MIT" ]
null
null
null
from periodtype import days,weeks,months def estimator(data): ptype = data['periodType'] if (ptype == 'days'): results = days(data) elif (ptype == 'weeks'): results = weeks(data) else: results = months(data) return results
20.583333
40
0.647773
f14dde7b9b6181f9cef5571761edbd3fd0fd972d
24,605
py
Python
google/cloud/dialogflowcx_v3/services/intents/async_client.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3/services/intents/async_client.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "Apache-2.0" ]
null
null
null
google/cloud/dialogflowcx_v3/services/intents/async_client.py
galz10/python-dialogflow-cx
e24bdfd499952199dfbdaa5634061653da8ae1db
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
41.774194
126
0.635399
ca24c470eeaf79922c46b11efe866f36ec9cf33b
2,458
py
Python
launch/test/launch/test_on_shutdown.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
67
2015-06-12T21:17:24.000Z
2022-03-30T07:19:52.000Z
launch/test/launch/test_on_shutdown.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
516
2015-03-20T02:22:59.000Z
2022-03-30T12:33:33.000Z
launch/test/launch/test_on_shutdown.py
bedieber/launch
4dfe69763379e405df7a21bde536aad7e39fdd93
[ "Apache-2.0" ]
101
2016-01-12T16:56:54.000Z
2022-03-09T12:35:37.000Z
# Copyright 2019 Open Source Robotics Foundation, 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...
35.623188
96
0.78926
8a222609534924ca048a51a7354567e773986da4
8,832
py
Python
memory_benchmarking/keras_only_benchmarking/benchmark_model.py
ravi9/topologies
ef85db625d6d40afb4040bb5e35a0b893fa9eb04
[ "Apache-2.0" ]
null
null
null
memory_benchmarking/keras_only_benchmarking/benchmark_model.py
ravi9/topologies
ef85db625d6d40afb4040bb5e35a0b893fa9eb04
[ "Apache-2.0" ]
null
null
null
memory_benchmarking/keras_only_benchmarking/benchmark_model.py
ravi9/topologies
ef85db625d6d40afb4040bb5e35a0b893fa9eb04
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # ---------------------------------------------------------------------------- # Copyright 2018 Intel # 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.apac...
30.666667
103
0.689198
218f86d7a82e8e9f8b355d7ddea11bda93e311d5
9,931
py
Python
unit_test/burn_cell/burn_cell_testing.py
doreenfan/Microphysics
bbfabaae0a98af32dbf353a7747a8ca787710ac6
[ "BSD-3-Clause" ]
null
null
null
unit_test/burn_cell/burn_cell_testing.py
doreenfan/Microphysics
bbfabaae0a98af32dbf353a7747a8ca787710ac6
[ "BSD-3-Clause" ]
null
null
null
unit_test/burn_cell/burn_cell_testing.py
doreenfan/Microphysics
bbfabaae0a98af32dbf353a7747a8ca787710ac6
[ "BSD-3-Clause" ]
null
null
null
# This code operates the same way as burn_cell.py except it will save all # arrays created to a batch of files named <runprefix>_<testprefix>___.txt # This can be used with other codes that open these saved files to process # and analyze the information they hold. #!/usr/bin/env python from __future__ import print_f...
30.46319
112
0.597926
2b2b39318f62a5b3b6be3a8e03ea48c6f907ace2
11,592
py
Python
goose3/crawler.py
Pradhvan/goose3
bcddd802d0196f9b57ec80172740fa4a76379a9b
[ "Apache-2.0" ]
575
2017-03-13T18:34:07.000Z
2022-03-28T07:06:42.000Z
goose3/crawler.py
Pradhvan/goose3
bcddd802d0196f9b57ec80172740fa4a76379a9b
[ "Apache-2.0" ]
101
2017-03-22T11:35:58.000Z
2022-03-29T17:23:28.000Z
goose3/crawler.py
Pradhvan/goose3
bcddd802d0196f9b57ec80172740fa4a76379a9b
[ "Apache-2.0" ]
86
2017-03-28T17:02:24.000Z
2022-03-28T07:06:53.000Z
# -*- coding: utf-8 -*- """\ This is a python port of "Goose" orignialy licensed to Gravity.com under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Python port was written by Xavier Grangier for Recrutae Gravity.co...
34.602985
106
0.674603
36e9e7d9f197d818f418b3713c03593b8617cdb4
5,693
py
Python
cirq-core/cirq/protocols/json_test_data/spec.py
melonwater211/Cirq
e9ec70d3ed7e7e4dbc36418743faba170e488364
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/protocols/json_test_data/spec.py
melonwater211/Cirq
e9ec70d3ed7e7e4dbc36418743faba170e488364
[ "Apache-2.0" ]
null
null
null
cirq-core/cirq/protocols/json_test_data/spec.py
melonwater211/Cirq
e9ec70d3ed7e7e4dbc36418743faba170e488364
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Cirq Developers # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
29.806283
79
0.617952
724792e9e2a68370b125a8cf066a498fd91518f6
553
py
Python
setup.py
perimosocordiae/picross
f5525b9975d007f280c95aba391f7a3a3c7e69fb
[ "MIT" ]
1
2017-04-01T19:35:08.000Z
2017-04-01T19:35:08.000Z
setup.py
perimosocordiae/picross
f5525b9975d007f280c95aba391f7a3a3c7e69fb
[ "MIT" ]
1
2017-03-25T23:45:21.000Z
2017-03-27T18:14:47.000Z
setup.py
perimosocordiae/picross
f5525b9975d007f280c95aba391f7a3a3c7e69fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python from setuptools import setup setup( name='picross', version='0.1.0', author='CJ Carey', author_email='perimosocordiae@gmail.com', description='Picross puzzle solver', url='http://github.com/perimosocordiae/picross', license='MIT', packages=['picross'], install_...
22.12
52
0.562387
b92b1fe985550b4a2041004cfc9935bbd3662485
33,048
py
Python
examples/utils_glue.py
Hadjerkhd/k-adater_updated
19b410c091e97219fa9424519ab8e97eedd329c9
[ "MIT" ]
null
null
null
examples/utils_glue.py
Hadjerkhd/k-adater_updated
19b410c091e97219fa9424519ab8e97eedd329c9
[ "MIT" ]
null
null
null
examples/utils_glue.py
Hadjerkhd/k-adater_updated
19b410c091e97219fa9424519ab8e97eedd329c9
[ "MIT" ]
null
null
null
# coding=utf-8 # Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team. # Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not u...
41.002481
141
0.57946
4a75dfcdc7e0f85830527eaee76a9f027feae8b7
1,250
py
Python
models.py
NoahBlack012/ntcscDiscordBot
dd52ad19f577e2fc6e0b624a976798c4c347379a
[ "MIT" ]
null
null
null
models.py
NoahBlack012/ntcscDiscordBot
dd52ad19f577e2fc6e0b624a976798c4c347379a
[ "MIT" ]
null
null
null
models.py
NoahBlack012/ntcscDiscordBot
dd52ad19f577e2fc6e0b624a976798c4c347379a
[ "MIT" ]
8
2021-12-09T21:26:27.000Z
2022-03-24T20:45:32.000Z
try: from database import db, User, engine # Create a new session Session = sessionmaker(bind=engine) session = Session() except NameError: # If database URI cannot be accessed print ("You must set up the database URI to use models.py") from sqlalchemy.orm import sessionmaker from sqlalchemy imp...
40.322581
104
0.7256
d9969b411a8e8c3a5621b9682c3f72d438bf196a
3,474
py
Python
neorv32load.py
islandcontroller/neorv32load
ac7e73998a83c630617d8df502e5918bdd1f8c15
[ "MIT" ]
3
2021-11-01T20:34:56.000Z
2021-11-02T00:07:39.000Z
neorv32load.py
islandcontroller/neorv32load
ac7e73998a83c630617d8df502e5918bdd1f8c15
[ "MIT" ]
null
null
null
neorv32load.py
islandcontroller/neorv32load
ac7e73998a83c630617d8df502e5918bdd1f8c15
[ "MIT" ]
1
2021-11-23T02:21:58.000Z
2021-11-23T02:21:58.000Z
# ------------------------------------------------------------------------------ # neorv32load # # Cross-platform compatible firmware download tool for use with the NEORV32 # bootloader. # Targeted project: The NEORV32 RISC-V Processor by S. Nolting # (https://github.com/stnolting/neorv32) # # # Copyright © 2...
34.058824
141
0.631261
dfa005930e43f6c96175e6f8c7c6ab129476e45d
3,206
py
Python
lib-src/lv2/lv2/waflib/extras/syms.py
joshrose/audacity
e2b1a2be6b92661628bbb054f915bc50b211c020
[ "CC-BY-3.0" ]
7,892
2015-03-31T09:24:05.000Z
2022-03-31T12:30:32.000Z
lib-src/lv2/lv2/waflib/extras/syms.py
joshrose/audacity
e2b1a2be6b92661628bbb054f915bc50b211c020
[ "CC-BY-3.0" ]
2,050
2015-04-03T13:27:52.000Z
2022-03-31T19:14:10.000Z
lib-src/lv2/lv2/waflib/extras/syms.py
joshrose/audacity
e2b1a2be6b92661628bbb054f915bc50b211c020
[ "CC-BY-3.0" ]
2,613
2015-03-26T11:28:10.000Z
2022-03-30T13:17:03.000Z
#! /usr/bin/env python # encoding: utf-8 """ This tool supports the export_symbols_regex to export the symbols in a shared library. by default, all symbols are exported by gcc, and nothing by msvc. to use the tool, do something like: def build(ctx): ctx(features='c cshlib syms', source='a.c b.c', export_symbols_rege...
37.717647
109
0.679039
feda8652557ba5cfbf1fdf57ddee80034b67176c
511
py
Python
home/models.py
jongwooo/TruckWassup
553a940062c1aa13bc26bb99b8357470cc21dfdb
[ "MIT" ]
1
2020-07-23T03:22:47.000Z
2020-07-23T03:22:47.000Z
home/models.py
jongwooo/TruckWassup
553a940062c1aa13bc26bb99b8357470cc21dfdb
[ "MIT" ]
7
2020-06-05T22:47:48.000Z
2022-03-11T23:55:47.000Z
home/models.py
jongwooo/TruckWassup
553a940062c1aa13bc26bb99b8357470cc21dfdb
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class FoodTruck(models.Model): name = models.CharField(max_length=255) image = models.ImageField(upload_to='images/') description = models.CharField(max_length=500) def __str__(self): return self.name class Menu(models.Model): foodtr...
26.894737
73
0.716243
bd7c0e42632c99d65d3bcfa19bc41bd76dec536d
472
py
Python
typeidea/blog/migrations/0004_post_is_md.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
null
null
null
typeidea/blog/migrations/0004_post_is_md.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
4
2020-06-06T01:37:34.000Z
2021-09-08T01:49:56.000Z
typeidea/blog/migrations/0004_post_is_md.py
Phoenix-sy/typeidea
e913218872c7f4e9afc290eb42b4ca8c8e4523be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2020-03-04 05:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('blog', '0003_post_content_html'), ] operations = [ migrations.AddField( ...
22.47619
80
0.622881
306e0239b7cfb306e810b15c0f6e3c68e80844e7
5,158
py
Python
benchmark/Spell_benchmark.py
tyronevb/logparser
3dcd1e1892fb65c344f3b5010298e3dfd88f33ed
[ "MIT" ]
null
null
null
benchmark/Spell_benchmark.py
tyronevb/logparser
3dcd1e1892fb65c344f3b5010298e3dfd88f33ed
[ "MIT" ]
null
null
null
benchmark/Spell_benchmark.py
tyronevb/logparser
3dcd1e1892fb65c344f3b5010298e3dfd88f33ed
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys sys.path.append('../') from logparser import Spell, evaluator import os import pandas as pd input_dir = '../logs/' # The input directory of log file output_dir = 'Spell_result/' # The output directory of parsing results benchmark_settings = { 'HDFS': { 'l...
34.61745
126
0.472664
7f7a3a5630cf2cf1c41f07e1fc125bff1efc3c79
8,853
py
Python
src/engine.py
Szomeszp/Area-D17---Fight-For-Your-ECTS
29c15e1feb6378e19247f0a5a8c936bc94045167
[ "MIT" ]
1
2021-06-28T18:33:17.000Z
2021-06-28T18:33:17.000Z
src/engine.py
Szomeszp/Area-D17---Fight-For-Your-ECTS
29c15e1feb6378e19247f0a5a8c936bc94045167
[ "MIT" ]
null
null
null
src/engine.py
Szomeszp/Area-D17---Fight-For-Your-ECTS
29c15e1feb6378e19247f0a5a8c936bc94045167
[ "MIT" ]
1
2021-06-08T11:23:25.000Z
2021-06-08T11:23:25.000Z
from sys import path, exit from src.items import HealthPotion from src.sprites import * from src.tilemap import * from src.arena import * from src.player import Player class Game: def __init__(self): pg.init() pg.key.set_repeat(500, 100) pg.display.set_caption(TITLE) self.map_img =...
40.058824
117
0.553146
19f626a33403c2b63d5596fe146df982e465dd74
785
py
Python
opencv_project_python-master/opencv_project_python-master/02.interface/02_06_video_play_fps.py
dongrami0425/Python_OpenCV-Study
c7faee4f63720659280c3222ba5abfe27740d1f4
[ "MIT" ]
null
null
null
opencv_project_python-master/opencv_project_python-master/02.interface/02_06_video_play_fps.py
dongrami0425/Python_OpenCV-Study
c7faee4f63720659280c3222ba5abfe27740d1f4
[ "MIT" ]
null
null
null
opencv_project_python-master/opencv_project_python-master/02.interface/02_06_video_play_fps.py
dongrami0425/Python_OpenCV-Study
c7faee4f63720659280c3222ba5abfe27740d1f4
[ "MIT" ]
null
null
null
# [예제2-6] FPS를 지정해서 동영상 재생 import cv2 video_file = "img/big_buck.avi" # 동영상 파일 경로 cap = cv2.VideoCapture(video_file) # 동영상 캡쳐 객체 생성 if cap.isOpened(): # 캡쳐 객체 초기화 확인 fps = cap.get(cv2.CAP_PROP_FPS) # 프레임 수 구하기 delay = int(1000/fps) print("FPS: %f, Delay: %dms" %(fps, delay)) while T...
30.192308
59
0.521019
e88f61aeb5197293202eeb2da9446476e9f2917d
269
py
Python
tests/artificial/transf_BoxCox/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_BoxCox_ConstantTrend_7__0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_BoxCox/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_BoxCox_ConstantTrend_7__0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_BoxCox/trend_ConstantTrend/cycle_7/ar_/test_artificial_128_BoxCox_ConstantTrend_7__0.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "ConstantTrend", cycle_length = 7, transform = "BoxCox", sigma = 0.0, exog_count = 0, ar_order = 0);
38.428571
164
0.732342
788e013f8e12a265d4fa3b6b172beb781ee2f833
3,360
py
Python
src/app/util/dataverse_client.py
CLARIAH/wp4-csdh-api
8f5d75c82a77a62545fa091da238b17691eab1c3
[ "MIT" ]
1
2018-09-30T06:48:03.000Z
2018-09-30T06:48:03.000Z
src/app/util/dataverse_client.py
CLARIAH/wp4-csdh-api
8f5d75c82a77a62545fa091da238b17691eab1c3
[ "MIT" ]
10
2016-01-22T13:18:52.000Z
2016-04-19T10:08:54.000Z
src/app/util/dataverse_client.py
CLARIAH/wp4-csdh-api
8f5d75c82a77a62545fa091da238b17691eab1c3
[ "MIT" ]
null
null
null
import requests from copy import copy import app.config as config import os class Connection(object): def __init__(self, host=config.DATAVERSE_HOST, token=config.DATAVERSE_TOKEN): self.host = host self.token = token self.params = { 'key': token } # Setup conn...
32.307692
104
0.570238
52d2abf15e2f589fa245d20f860dbe3996cd1c6a
1,414
py
Python
src/backend/tests/models/charge_types/test_felony_unclassified.py
sico/recordexpungPDX
c2f18322014add7c78b27736bde2d29d1d086aa8
[ "MIT" ]
null
null
null
src/backend/tests/models/charge_types/test_felony_unclassified.py
sico/recordexpungPDX
c2f18322014add7c78b27736bde2d29d1d086aa8
[ "MIT" ]
1
2020-04-05T15:44:34.000Z
2020-04-05T15:44:34.000Z
src/backend/tests/models/charge_types/test_felony_unclassified.py
kenichi/recordexpungPDX
100d9249473a01953451b83a72ec1b74574acc43
[ "MIT" ]
null
null
null
from expungeservice.models.charge_types.felony_class_a import FelonyClassA from expungeservice.models.expungement_result import EligibilityStatus from tests.factories.charge_factory import ChargeFactory from tests.models.test_charge import Dispositions from expungeservice.record_merger import RecordMerger def test_f...
42.848485
151
0.789958
06892a6f52945aded50e7c75fe8c596ce7453676
7,417
py
Python
parser.py
chk1/stw2openmensa
df91dc6ddbc17f7248d5d29e82a0c90c7c92277a
[ "MIT" ]
3
2018-04-27T14:45:27.000Z
2019-04-01T09:50:28.000Z
parser.py
chk1/stw2openmensa
df91dc6ddbc17f7248d5d29e82a0c90c7c92277a
[ "MIT" ]
10
2017-06-16T12:35:22.000Z
2020-11-16T20:34:11.000Z
parser.py
chk1/stw2openmensa
df91dc6ddbc17f7248d5d29e82a0c90c7c92277a
[ "MIT" ]
4
2019-04-01T09:17:24.000Z
2019-10-28T23:39:19.000Z
# -*- coding: utf-8 -*- from __future__ import print_function import config import re import os try: import urllib2 except ImportError: import urllib.request as urllib2 from bs4 import BeautifulSoup from datetime import datetime import traceback additives_expr = re.compile(r' ?\(((?:[0-9a-zA-Z]|[A-Z]{3}|10|Alk...
34.821596
120
0.692598
71832ed45ab4a46128b9208bd88d7220deb9605a
90
py
Python
crescent/policy/__init__.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
1
2020-03-26T19:20:03.000Z
2020-03-26T19:20:03.000Z
crescent/policy/__init__.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
null
null
null
crescent/policy/__init__.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
null
null
null
from .actions import Actions from .policy import Policy __all__ = ["Policy", "Actions"]
15
31
0.733333
13d66a6a6281fa5d6027bbdb416ccc6844d92fbc
1,243
py
Python
statsmodels/sandbox/examples/try_multiols.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
20
2015-01-28T21:52:59.000Z
2022-01-24T01:24:26.000Z
statsmodels/sandbox/examples/try_multiols.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
6
2015-08-28T16:59:03.000Z
2019-04-12T22:29:01.000Z
statsmodels/sandbox/examples/try_multiols.py
yarikoptic/statsmodels
f990cb1a1ef0c9883c9394444e6f9d027efabec6
[ "BSD-3-Clause" ]
28
2015-04-01T20:02:25.000Z
2021-07-03T00:09:28.000Z
# -*- coding: utf-8 -*- """ Created on Sun May 26 13:23:40 2013 Author: Josef Perktold, based on Enrico Giampieri's multiOLS """ #import numpy as np import pandas as pd import statsmodels.api as sm from statsmodels.sandbox.multilinear import multiOLS, multigroup data = sm.datasets.longley.load_pandas() df = data.e...
27.622222
74
0.70716
64b9c6194d0058ba7a11eb4887abd410a87d819d
2,199
py
Python
GTSRB_Script/ppm2Image_TB.py
dhzzy88/Bike2Car
9d0b0ff9b27e0e6cedc0344d8614fb4661499ff0
[ "Apache-2.0" ]
2
2020-08-09T06:50:13.000Z
2021-07-05T02:39:03.000Z
GTSRB_Script/ppm2Image_TB.py
dhzzy88/Bike2Car
9d0b0ff9b27e0e6cedc0344d8614fb4661499ff0
[ "Apache-2.0" ]
null
null
null
GTSRB_Script/ppm2Image_TB.py
dhzzy88/Bike2Car
9d0b0ff9b27e0e6cedc0344d8614fb4661499ff0
[ "Apache-2.0" ]
null
null
null
import os import numpy as numpy import PIL import matplotlib.pyplot as plt import csv import cv2 import numpy as np class PPM2Image(object): def __init__(self,ppm_rpath,image_rpath): self.ppm_rpath = ppm_rpath self.image_rpath =image_rpath self.image_num =0 self.ppm =None ...
26.178571
97
0.582992
df7874d2c0db967b1a567e4ee3970304c9f759a1
5,063
py
Python
driftbase/api/players/playergroups.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
1
2021-09-04T01:45:44.000Z
2021-09-04T01:45:44.000Z
driftbase/api/players/playergroups.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
30
2020-12-09T04:10:26.000Z
2022-03-02T02:34:49.000Z
driftbase/api/players/playergroups.py
directivegames/drift-base
5fc7d4686c56e93fc22178f3b1bb49239d7eee45
[ "MIT" ]
null
null
null
import logging import uuid import marshmallow as ma from drift.core.extensions.jwt import current_user from drift.utils import Url from flask import url_for, g from flask.views import MethodView from flask_smorest import Blueprint, abort, utils import http.client as http_client from driftbase.models.db import CorePla...
38.946154
99
0.635394
97633186866e3005d0aaace51e4d5c5a9f82e478
203
py
Python
examples/sample_1/messages.py
sujavarghese/data-validator
e0c5d94da797cb43b17d6ee193d337cbcb602f49
[ "MIT" ]
null
null
null
examples/sample_1/messages.py
sujavarghese/data-validator
e0c5d94da797cb43b17d6ee193d337cbcb602f49
[ "MIT" ]
null
null
null
examples/sample_1/messages.py
sujavarghese/data-validator
e0c5d94da797cb43b17d6ee193d337cbcb602f49
[ "MIT" ]
null
null
null
from file_validator.validator import Messages class ValidatorMessages(Messages): FILE_EXTN_VALIDATION_FAILED = "Failed" class ReaderMessages(Messages): FILE_EXTN_VALIDATION_FAILED = "Failed"
20.3
45
0.807882
6842a55e9f70cef12713a49cefb9ce5330141ff2
1,243
py
Python
day3.py
tb120/adventofcode2018
597f320fea36af0ad433c0aa309172346c35e44b
[ "MIT" ]
null
null
null
day3.py
tb120/adventofcode2018
597f320fea36af0ad433c0aa309172346c35e44b
[ "MIT" ]
null
null
null
day3.py
tb120/adventofcode2018
597f320fea36af0ad433c0aa309172346c35e44b
[ "MIT" ]
null
null
null
from collections import defaultdict with open('input/day3', 'r') as f: claims = [line.split('@')[1].strip() for line in f] corners = [claim.split(':')[0] for claim in claims] dimensions = [claim.split(':')[1] for claim in claims] dimensions_tuples = [(int(dimension.split('x')[0]), int(dimension.split(...
33.594595
114
0.563958
172825157779b0cf2eea90c80f0a88b1141a465b
1,154
py
Python
venv/bin/rst2html5.py
56kyle/SQRL
0815f84a0ff2aee6e8e369247071f9c61d26b10d
[ "MIT" ]
null
null
null
venv/bin/rst2html5.py
56kyle/SQRL
0815f84a0ff2aee6e8e369247071f9c61d26b10d
[ "MIT" ]
null
null
null
venv/bin/rst2html5.py
56kyle/SQRL
0815f84a0ff2aee6e8e369247071f9c61d26b10d
[ "MIT" ]
1
2019-03-02T19:43:29.000Z
2019-03-02T19:43:29.000Z
#!/home/kyle/hackathon/venv/bin/python # -*- coding: utf8 -*- # :Copyright: © 2015 Günter Milde. # :License: Released under the terms of the `2-Clause BSD license`_, in short: # # Copying and distribution of this file, with or without modification, # are permitted in any medium without royalty provided the copyri...
32.055556
78
0.720104
3b8dfe3a003066cb43ab7d46ce07d7cd0eabd12f
854
py
Python
corehq/apps/translations/management/commands/populate_smstranslations.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
1
2020-07-14T13:00:23.000Z
2020-07-14T13:00:23.000Z
corehq/apps/translations/management/commands/populate_smstranslations.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
94
2020-12-11T06:57:31.000Z
2022-03-15T10:24:06.000Z
corehq/apps/translations/management/commands/populate_smstranslations.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
null
null
null
from corehq.apps.cleanup.management.commands.populate_sql_model_from_couch_model import PopulateSQLCommand class Command(PopulateSQLCommand): @classmethod def couch_doc_type(self): return 'StandaloneTranslationDoc' @classmethod def sql_class(self): from corehq.apps.translations.models...
31.62963
106
0.662763
5f74bdcd732fb5de13921ae1622b902da1613cdb
1,775
py
Python
velkozz_web_api/apps/social_media_api/migrations/0004_worldnewsposts.py
velkoz-data-ingestion/velkozz_web_api
519a6a90e5fdf5bab8ba2daf637768c5fd424a12
[ "MIT" ]
null
null
null
velkozz_web_api/apps/social_media_api/migrations/0004_worldnewsposts.py
velkoz-data-ingestion/velkozz_web_api
519a6a90e5fdf5bab8ba2daf637768c5fd424a12
[ "MIT" ]
null
null
null
velkozz_web_api/apps/social_media_api/migrations/0004_worldnewsposts.py
velkoz-data-ingestion/velkozz_web_api
519a6a90e5fdf5bab8ba2daf637768c5fd424a12
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-03-27 04:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('social_media_api', '0003_auto_20210216_0116'), ] operations = [ migrations.CreateModel( name='WorldNewsPosts', field...
42.261905
106
0.562817
ba84d545f95b0b24b8f2df91d2f20d5135a3394c
4,203
py
Python
dcos_launch/gcp.py
jbarrick-mesosphere/dcos-launch
965a877ab641ab39733887188ed8f86d1a8c696c
[ "Apache-2.0" ]
null
null
null
dcos_launch/gcp.py
jbarrick-mesosphere/dcos-launch
965a877ab641ab39733887188ed8f86d1a8c696c
[ "Apache-2.0" ]
null
null
null
dcos_launch/gcp.py
jbarrick-mesosphere/dcos-launch
965a877ab641ab39733887188ed8f86d1a8c696c
[ "Apache-2.0" ]
null
null
null
""" Launcher functionality for the Google Compute Engine (GCE) """ import json import logging import os from dcos_launch import onprem, util from dcos_launch.platforms import gcp from dcos_test_utils.helpers import Host from googleapiclient.errors import HttpError log = logging.getLogger(__name__) def get_credentia...
40.028571
117
0.640733
c6cb05017a7b0a6baf4e18e7157fcdcca44e11b4
1,995
py
Python
clase4/funcE.py
blacksubmarine/kaans_it_python_essentials
7763ecbf6adbc9561a665716b99380545ff46846
[ "MIT" ]
null
null
null
clase4/funcE.py
blacksubmarine/kaans_it_python_essentials
7763ecbf6adbc9561a665716b99380545ff46846
[ "MIT" ]
null
null
null
clase4/funcE.py
blacksubmarine/kaans_it_python_essentials
7763ecbf6adbc9561a665716b99380545ff46846
[ "MIT" ]
null
null
null
#/////////////////////// # Realiza una función llamada area_rectangulo(base, altura) que devuelva el # área del rectangulo a partir de una base y una altura. Calcula el área de # un rectángulo de 15 de base y 10 de altura: # def area_rectangulo(base, altura): # return base*altura # print( area_rectangulo(15,10...
24.329268
87
0.634586
a687149f3b37e2d807cf619a8c4c2324a1e2288b
6,560
py
Python
sdk/python/pulumi_spotinst/ecs/ocean_launch_spec.py
timmyers/pulumi-spotinst
3d071aaff57f7549403aca8587b1892f40e85d6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_spotinst/ecs/ocean_launch_spec.py
timmyers/pulumi-spotinst
3d071aaff57f7549403aca8587b1892f40e85d6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_spotinst/ecs/ocean_launch_spec.py
timmyers/pulumi-spotinst
3d071aaff57f7549403aca8587b1892f40e85d6c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import json import warnings import pulumi import pulumi.runtime from typing import Union from .. import utilities, tables class OceanL...
47.536232
225
0.673628
06ca11fd25ab08056ded1a2e2b30c160d5e2b34a
13,252
py
Python
tests/hardware_report/test_summarize_json.py
linacambridge/python_mozetl
df0b0adf6e249098314e9a0fcc05c275d02c259b
[ "MIT" ]
null
null
null
tests/hardware_report/test_summarize_json.py
linacambridge/python_mozetl
df0b0adf6e249098314e9a0fcc05c275d02c259b
[ "MIT" ]
null
null
null
tests/hardware_report/test_summarize_json.py
linacambridge/python_mozetl
df0b0adf6e249098314e9a0fcc05c275d02c259b
[ "MIT" ]
null
null
null
"""Test suite for Hardware Report.""" from pyspark.sql import SparkSession from datetime import datetime import mozetl.hardware_report.summarize_json as summarize_json def test_run_tests(): """Test if helper functions work as expected.""" # Does |get_OS_arch| work as expected? assert summarize_json.get_O...
40.036254
100
0.59508
bf2ee592c4c06c4552a96e955a2e819b292fb87d
98
py
Python
business/gen.py
gorel/hscc2016
87a508e6acbb2a0fb8f2e9e8ad1acb9fda6bfe76
[ "MIT" ]
1
2017-05-19T19:31:39.000Z
2017-05-19T19:31:39.000Z
business/gen.py
gorel/hscc2016
87a508e6acbb2a0fb8f2e9e8ad1acb9fda6bfe76
[ "MIT" ]
null
null
null
business/gen.py
gorel/hscc2016
87a508e6acbb2a0fb8f2e9e8ad1acb9fda6bfe76
[ "MIT" ]
null
null
null
import random n = random.randint(10,20) print(n) for i in range(n): print(random.randint(1,30))
14
28
0.704082
a922a11b312be565eeb26f86f4019a07016d189b
1,192
py
Python
solutions/solution133.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
3
2018-11-22T10:31:09.000Z
2019-05-05T15:53:48.000Z
solutions/solution133.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
null
null
null
solutions/solution133.py
Satily/leetcode_python_solution
3f05fff7758d650469862bc28df9e4aa7b1d3203
[ "MIT" ]
null
null
null
from data_structure.graph_node import Node from queue import Queue class Solution: def cloneGraph(self, node: 'Node') -> 'Node': old_graph = {} scaned_queue = Queue() scaned_queue.put(node) while not scaned_queue.empty(): current_node = scaned_queue.get() ...
32.216216
78
0.616611
8b2c461b28dbf27841595aa9841b16674c2db9e6
1,218
py
Python
picco/picco.py
mateuszz0000/picco
6bd8c86981306b2aef20a50a8921e2e42752fc1e
[ "MIT" ]
1
2020-05-11T04:44:41.000Z
2020-05-11T04:44:41.000Z
picco/picco.py
mateuszz0000/picco
6bd8c86981306b2aef20a50a8921e2e42752fc1e
[ "MIT" ]
3
2018-09-04T10:50:13.000Z
2020-04-26T11:00:32.000Z
picco/picco.py
mateuszz0000/picco
6bd8c86981306b2aef20a50a8921e2e42752fc1e
[ "MIT" ]
null
null
null
#!/usr/bin/python import os import argparse import sys import logging from validators import CommandArgsValidator from application import Application logger = logging.getLogger(__name__) DESCRIPTION = """ Here will be more detailed picco description with more information, for no it's for testing :) """ de...
31.230769
102
0.701149
16dd84849f188343f016528ad147b5e073ea0f68
4,569
py
Python
operators/enmasse/python/pulumi_pulumi_kubernetes_crds_operators_enmasse/admin/v1beta1/AuthenticationService.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
operators/enmasse/python/pulumi_pulumi_kubernetes_crds_operators_enmasse/admin/v1beta1/AuthenticationService.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
2
2020-09-18T17:12:23.000Z
2020-12-30T19:40:56.000Z
operators/enmasse/python/pulumi_pulumi_kubernetes_crds_operators_enmasse/admin/v1beta1/AuthenticationService.py
pulumi/pulumi-kubernetes-crds
372c4c0182f6b899af82d6edaad521aa14f22150
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by crd2pulumi. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outp...
40.794643
190
0.65835
34a30fba0efdee33c747ce6c14ec34b888d776ab
76
py
Python
tests/test_basic.py
Peilonrayz/envee
66f5b6b1ff7f5966be794e1e3878418c560c1f65
[ "MIT" ]
null
null
null
tests/test_basic.py
Peilonrayz/envee
66f5b6b1ff7f5966be794e1e3878418c560c1f65
[ "MIT" ]
null
null
null
tests/test_basic.py
Peilonrayz/envee
66f5b6b1ff7f5966be794e1e3878418c560c1f65
[ "MIT" ]
null
null
null
"""Basic test.""" def test_basic(): """Basic test.""" assert True
10.857143
21
0.539474
6ad22a3dcf07f28f90050ddf83d57ea2c68f9d0e
9,859
py
Python
seq_obfuscator/model_file/model_8.py
zlijingtao/Neurobfuscator
39fc8eaa1819bdaba4a64ca86cd5a340343ac94a
[ "Apache-2.0" ]
3
2021-07-20T21:01:43.000Z
2022-01-02T03:33:05.000Z
seq_obfuscator/model_file/model_8.py
zlijingtao/Neurobfuscator
39fc8eaa1819bdaba4a64ca86cd5a340343ac94a
[ "Apache-2.0" ]
null
null
null
seq_obfuscator/model_file/model_8.py
zlijingtao/Neurobfuscator
39fc8eaa1819bdaba4a64ca86cd5a340343ac94a
[ "Apache-2.0" ]
1
2021-12-10T03:15:52.000Z
2021-12-10T03:15:52.000Z
import numpy as np import argparse import torch import torch.nn as nn import torch.nn.functional as F import math assert torch.cuda.is_available() cuda_device = torch.device("cuda") # device object representing GPU #This model stands for resnet-32 on CIFAR-100 #model_id = 7 (1 less than the file name) class custom_...
33.879725
178
0.559185
5ba7f52610599dbb8dbed54fcdd45224f3976d4d
11,907
py
Python
baselines/ggnn/polyvore_dataset.py
zyyang/fashion_compatibility_mcn
33d64cc5e14f10cc4e25495a7fcc22a8fe9104bf
[ "MIT" ]
1
2021-04-01T07:42:38.000Z
2021-04-01T07:42:38.000Z
baselines/ggnn/polyvore_dataset.py
zyyang/fashion_compatibility_mcn
33d64cc5e14f10cc4e25495a7fcc22a8fe9104bf
[ "MIT" ]
null
null
null
baselines/ggnn/polyvore_dataset.py
zyyang/fashion_compatibility_mcn
33d64cc5e14f10cc4e25495a7fcc22a8fe9104bf
[ "MIT" ]
1
2021-03-31T12:43:42.000Z
2021-03-31T12:43:42.000Z
import csv import gzip import itertools import json import os import random import numpy as np import torch import torch.nn as nn import torch.nn.utils.rnn as rnn_utils import torchvision from PIL import Image from torch.autograd import Variable from torch.utils.data import DataLoader, Dataset import dgl class Categ...
37.8
116
0.580415
c53fc179761c93b92cac8f746d2294fdc9cf76be
936
py
Python
Special Programs in Python/Guess the number game (python).py
Rohit-554/PYTHON
958148d3d44d188da89aedf34afcd95c0dddf43e
[ "MIT" ]
2
2021-04-27T18:04:25.000Z
2021-10-02T11:55:25.000Z
Special Programs in Python/Guess the number game (python).py
Rohit-554/PYTHON
958148d3d44d188da89aedf34afcd95c0dddf43e
[ "MIT" ]
null
null
null
Special Programs in Python/Guess the number game (python).py
Rohit-554/PYTHON
958148d3d44d188da89aedf34afcd95c0dddf43e
[ "MIT" ]
1
2021-12-13T11:22:33.000Z
2021-12-13T11:22:33.000Z
import random lb = 1 ub = 500 g = 9 print("\n* * * * * * * * Guess a number between {} to {} in {} gusses * * * * * * * * * * *".format(lb, ub, g)) n = random.randint(lb, ub) # n = 395 i = 0 while(i < g): i += 1 num = int(input("\nEnter your guessed number -: ")) if num > ub or num < lb: print("Plea...
36
179
0.478632
8a25b66e1d23d88e2897f8e40b8d28ba4812d0fd
777
py
Python
coding_interviews/leetcode/116_populate_next_right_pointer_each_node.py
tahe0203/JobPrep
90dfbb664f9aa85358c25fc9be254eb18672c81f
[ "MIT" ]
null
null
null
coding_interviews/leetcode/116_populate_next_right_pointer_each_node.py
tahe0203/JobPrep
90dfbb664f9aa85358c25fc9be254eb18672c81f
[ "MIT" ]
null
null
null
coding_interviews/leetcode/116_populate_next_right_pointer_each_node.py
tahe0203/JobPrep
90dfbb664f9aa85358c25fc9be254eb18672c81f
[ "MIT" ]
null
null
null
""" # Definition for a Node. class Node: def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None): self.val = val self.left = left self.right = right self.next = next """ # pre-order traverse # then use binary tree properties to link: node.l...
23.545455
105
0.53668
a17ac59304d8a54b8ec92f251e5c12ab18bf97bc
4,650
py
Python
misc/spyder/spyder_kernel.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
90
2019-06-25T15:33:22.000Z
2022-03-31T03:50:58.000Z
misc/spyder/spyder_kernel.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
223
2019-06-24T13:47:38.000Z
2022-03-29T21:37:10.000Z
misc/spyder/spyder_kernel.py
pgcudahy/sos
ee902841003c7630db501101038f370650955ef9
[ "BSD-3-Clause" ]
26
2019-06-27T19:24:23.000Z
2022-03-24T03:41:37.000Z
#!/usr/bin/env python3 # # Copyright (c) Bo Peng and the University of Texas MD Anderson Cancer Center # Distributed under the terms of the 3-clause BSD License. # A complete rewritten will be needed after spyder officially supports # third-party kernel. # # Note that this kernel is only used by Spyder, not by jupyter...
41.150442
120
0.647097
73dc10ec9f3821ba5c977be6de0e8f55240e834a
12,039
py
Python
bak/clusterRepT2D.py
nlapier2/multiInstanceLearning
564a90e01a65b6f1464256fa5a2daff25eece6d1
[ "MIT" ]
4
2016-12-10T16:40:50.000Z
2021-12-09T07:36:13.000Z
cirrhosisTests/bak/clusterRepT2D.py
nlapier2/multiInstanceLearning
564a90e01a65b6f1464256fa5a2daff25eece6d1
[ "MIT" ]
null
null
null
cirrhosisTests/bak/clusterRepT2D.py
nlapier2/multiInstanceLearning
564a90e01a65b6f1464256fa5a2daff25eece6d1
[ "MIT" ]
null
null
null
# Author: Nathan LaPierre # Date: March 17, 2016 import argparse import os import shlex import subprocess import sys import time def option1(indir, output, alpha, alphaopt, uclustid, uclustpath, verbose): print indir + output + alpha + alphaopt + uclustid + uclustpath + verbose print "Option not yet implemen...
50.797468
120
0.53443
f78b129213545af854f9ed5570576438e8d934ae
1,516
py
Python
checkout/forms.py
alissatroiano/Hue
1251755dfc4a06ea7168e2878bd3409284730141
[ "FTL" ]
1
2021-04-10T23:23:37.000Z
2021-04-10T23:23:37.000Z
checkout/forms.py
alissatroiano/Hue
1251755dfc4a06ea7168e2878bd3409284730141
[ "FTL" ]
null
null
null
checkout/forms.py
alissatroiano/Hue
1251755dfc4a06ea7168e2878bd3409284730141
[ "FTL" ]
1
2021-07-28T12:13:08.000Z
2021-07-28T12:13:08.000Z
from django import forms from .models import Order class OrderForm(forms.ModelForm): class Meta: model = Order fields = ('user_full_name', 'email', 'phone_number', 'street_address1', 'street_address2', 'town_or_city', 'postcode', 'country', 'county' ) def ...
37.9
106
0.552111
39372c16338fe986b5167407598a6476a9f1b506
2,026
py
Python
resize.py
autocycle/AutoCycleNet
7b385f78211819a41e0165735f1a11ea0c5125be
[ "MIT" ]
null
null
null
resize.py
autocycle/AutoCycleNet
7b385f78211819a41e0165735f1a11ea0c5125be
[ "MIT" ]
null
null
null
resize.py
autocycle/AutoCycleNet
7b385f78211819a41e0165735f1a11ea0c5125be
[ "MIT" ]
null
null
null
import os import constants import numpy as np from scipy import misc, ndimage import os ORIGINAL = 'dataset-original' BRAND_NEW = 'dataset-resized' FILE_NAME = 'test_img' cwd = os.getcwd() img_path = cwd + '/' + FILE_NAME + '.jpg' def single_img_resize(image): if len(image) > 4 and image[-4:] == '.jpg': ...
25.012346
64
0.674235
48ab724357b9587f9c6f5ac65385f0c77ee26cde
2,114
py
Python
test/Depends/no-Builder.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2017-01-28T15:39:07.000Z
2017-01-28T15:39:07.000Z
test/Depends/no-Builder.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
1
2020-05-19T02:59:19.000Z
2020-05-21T09:05:19.000Z
test/Depends/no-Builder.py
moroten/scons
20927b42ed4f0cb87f51287fa3b4b6cf915afcf8
[ "MIT" ]
2
2018-01-16T11:29:16.000Z
2020-05-13T16:48:26.000Z
#!/usr/bin/env python # # __COPYRIGHT__ # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, ...
31.552239
74
0.736518
a49c35152f9f3735a2d0ecb9bdff81133845adb4
600
py
Python
Python-Leetcode/Array/2.py
HughesZhang73/Python-Master
607110e4326f4b51ffa7e2ade4edcecd26e52298
[ "MIT" ]
2
2020-11-05T02:32:14.000Z
2020-12-22T14:06:38.000Z
Python-Leetcode/Array/2.py
HughesZhang73/Python-Master
607110e4326f4b51ffa7e2ade4edcecd26e52298
[ "MIT" ]
null
null
null
Python-Leetcode/Array/2.py
HughesZhang73/Python-Master
607110e4326f4b51ffa7e2ade4edcecd26e52298
[ "MIT" ]
null
null
null
# coding=utf-8 # def reverse_print_multi(): # for i in range(1, 10): # for x in range(1, i): # print(end=" ") # for k in range(i, 10): # print("{0} * {1} = {2} ".format(i, k, i * k), end="") # print("") def reverse2(): start = 9 ans = [] ...
22.222222
83
0.423333
e429a285cc21bd075b862e8e78e010c96269e800
3,742
py
Python
vplexapi-7.0.0/vplexapi/models/wan_com_health.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2020-12-01T11:22:13.000Z
2021-02-16T17:38:42.000Z
vplexapi-7.0.0/vplexapi/models/wan_com_health.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
null
null
null
vplexapi-7.0.0/vplexapi/models/wan_com_health.py
dell/python-vplex
02c5df5e7f9ed61a13a2838f21ca6467a25dd392
[ "Apache-2.0" ]
3
2021-01-01T21:07:55.000Z
2021-02-20T07:07:40.000Z
# coding: utf-8 """ VPlex REST API A definition for the next-gen VPlex API # noqa: E501 OpenAPI spec version: 0.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from vplexapi.models.com_status import ComStatus # noqa: F...
25.986111
80
0.555051
0dc80f71c89c4f2640e02484770a72bbd17f1110
4,181
py
Python
tensorflow_datasets/text/snli.py
SiegeLordEx/datasets
8e903c178eff14108a8b539ee88c6483669dbac1
[ "Apache-2.0" ]
2
2019-11-23T18:41:58.000Z
2020-08-12T21:00:39.000Z
tensorflow_datasets/text/snli.py
SiegeLordEx/datasets
8e903c178eff14108a8b539ee88c6483669dbac1
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/text/snli.py
SiegeLordEx/datasets
8e903c178eff14108a8b539ee88c6483669dbac1
[ "Apache-2.0" ]
1
2019-12-14T00:32:08.000Z
2019-12-14T00:32:08.000Z
# coding=utf-8 # Copyright 2019 The TensorFlow Datasets 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 appl...
35.432203
110
0.640038
f356ee5790006caadcd47ec618024de1dfaef31e
1,990
py
Python
DeepLearning/DeepLearning/09_Deep_SongJW/ch4/gradient_method.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
1
2019-06-27T04:05:59.000Z
2019-06-27T04:05:59.000Z
DeepLearning/DeepLearning/09_Deep_SongJW/ch4/gradient_method.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
DeepLearning/DeepLearning/09_Deep_SongJW/ch4/gradient_method.py
ghost9023/DeepLearningPythonStudy
4d319c8729472cc5f490935854441a2d4b4e8818
[ "MIT" ]
null
null
null
''' 4.4.1 경사법(경사 하강법) gradient method 손실함수의 값이 최솟값이 되는 가중치와 편향을 찾는것이 목표. 기울기를 이용해 손실함수의 최솟값을 찾는 방법이 경사법. 다만 기울기가 가리키는 방향이 항상 손실함수의 최솟값이 존재하는 방향은 아니다. 최솟값에 도달할수도, 극솟값(특정 범위내에서의 최솟값)에 도달할수도, 안장점에 도달할수도, 최악으로는 고원 : 플래토 plateau 에 도달하여 학습이 정체기에 빠질수도 있다. 기울기의 방향이 항상 의도한대로 손실함수의 최솟값을 찾는것은 아니지만 일단은 기울기의 방향으로 가는것이 손실함수의 값을 ...
29.264706
125
0.675377
2f80e37d174403d7b13a86f3514873644ed9a9ba
14,255
py
Python
python/example_code/cloudwatch/cloudwatch_basics.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
5,166
2016-09-02T08:48:38.000Z
2022-03-31T19:12:43.000Z
python/example_code/cloudwatch/cloudwatch_basics.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
1,186
2016-09-28T23:05:19.000Z
2022-03-31T18:07:47.000Z
python/example_code/cloudwatch/cloudwatch_basics.py
iconara/aws-doc-sdk-examples
52706b31b4fce8fb89468e56743edf5369e69628
[ "Apache-2.0" ]
4,003
2016-08-29T19:51:40.000Z
2022-03-31T16:40:02.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 """ Purpose Shows how to use the AWS SDK for Python (Boto3) with Amazon CloudWatch to create and manage custom metrics and alarms. """ # snippet-start:[python.example_code.cloudwatch.imports] from datetime impo...
42.807808
88
0.633813
67dcb083db417d6f4a2d492edc168f1a0630e837
1,294
py
Python
tests/test_context.py
nmaier/xpisign.py
3a7107ae08c49a9d49e65e0f5f038944bd6a85d2
[ "CC0-1.0" ]
13
2015-03-19T15:05:41.000Z
2021-10-16T01:28:23.000Z
tests/test_context.py
nmaier/xpisign.py
3a7107ae08c49a9d49e65e0f5f038944bd6a85d2
[ "CC0-1.0" ]
1
2017-01-02T14:00:40.000Z
2017-01-02T14:00:40.000Z
tests/test_context.py
nmaier/xpisign.py
3a7107ae08c49a9d49e65e0f5f038944bd6a85d2
[ "CC0-1.0" ]
4
2015-08-28T23:34:28.000Z
2016-10-31T20:31:59.000Z
from zipfile import ZIP_DEFLATED as DEFLATED from xpisign.compat import BytesIO, ZipFile from xpisign.context import * from helper import * def test_StreamPositionRestore(): """StreamPositionRestore actually restores streams.""" with BytesIO() as bi: assert bi.tell() == 0 with StreamPosition...
32.35
69
0.597372
56e438e5667d7d8946535aab5163a1cecd57cb74
3,102
py
Python
otter/run/run_autograder/runners/abstract_runner.py
afspies/otter-grader
5d5ba1b049596eaee1fd9c039bb1cd15f6786f4f
[ "BSD-3-Clause" ]
76
2020-01-24T07:18:34.000Z
2022-03-16T01:16:28.000Z
otter/run/run_autograder/runners/abstract_runner.py
afspies/otter-grader
5d5ba1b049596eaee1fd9c039bb1cd15f6786f4f
[ "BSD-3-Clause" ]
413
2019-10-07T03:49:51.000Z
2022-03-29T18:23:05.000Z
otter/run/run_autograder/runners/abstract_runner.py
afspies/otter-grader
5d5ba1b049596eaee1fd9c039bb1cd15f6786f4f
[ "BSD-3-Clause" ]
41
2020-01-24T21:45:43.000Z
2022-03-14T16:11:55.000Z
"""Abstract runner class for the autograder""" import os import shutil from abc import ABC, abstractmethod from ..constants import DEFAULT_OPTIONS class AbstractLanguageRunner(ABC): """ A class defining the logic of running the autograder and generating grading results. Args: otter_config (``d...
33.354839
99
0.622824
96bbab3696a68963e2fe6f584461041098a2da64
2,418
py
Python
auth/main.py
NFuller721/YoutubeStyledTwitter
87311ed92d462fb28da7a0c1c0b2e63b4f09a3fa
[ "MIT" ]
null
null
null
auth/main.py
NFuller721/YoutubeStyledTwitter
87311ed92d462fb28da7a0c1c0b2e63b4f09a3fa
[ "MIT" ]
null
null
null
auth/main.py
NFuller721/YoutubeStyledTwitter
87311ed92d462fb28da7a0c1c0b2e63b4f09a3fa
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, jsonify, current_app, url_for, session, redirect from authlib.integrations.flask_client import OAuth from MySQLPackage import * Auth = Blueprint( "Auth", __name__ ) Connection = Connection( host="127.0.0.1", username="Noah721", password="Satchel21", ...
28.116279
94
0.643507
58b5598815082771068d3b9c66b45cf723daf491
1,237
py
Python
cli/gardener_ci/notify.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
null
null
null
cli/gardener_ci/notify.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
null
null
null
cli/gardener_ci/notify.py
zkdev/cc-utils
042c6632ca6f61a484bc0a71f85957aeba7f7278
[ "BSD-3-Clause" ]
null
null
null
import mailutil import ci.util import concourse.util def send_mail( notification_config_path: str, source_dirs: [str]=[], codeowners_files: [str]=[], component_names: [str]=[], ): if not ci.util._running_on_ci(): raise RuntimeError('This command can only be used from within our CI-infrastr...
31.717949
94
0.680679
2ff347fe86964cd25fb16d8d4cf97e317b6c8a7d
964
py
Python
samples/client/petstore/python/test/test_enum_class.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
1
2020-09-06T18:36:28.000Z
2020-09-06T18:36:28.000Z
samples/client/petstore/python/test/test_enum_class.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
null
null
null
samples/client/petstore/python/test/test_enum_class.py
Cadcorp/swagger-codegen
23b64dd5e5266a7d0d7fb7a5c800d618c12696de
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Swagger Petstore This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ # noqa: E501 OpenAPI spec version: 1.0.0 Contact: apiteam@swagger.io Generated by: https://github.com/...
24.1
174
0.69917
5448d690d0d4006a44ad05f9f7cf809f8c60f56c
17,667
py
Python
PikachuRobot/modules/qoutly.py
PROHackerr/Pikachu-Robot
4e035065198c3e58b6f4a64be61e1e00a68b8c99
[ "MIT" ]
3
2020-12-22T08:46:08.000Z
2020-12-23T04:37:32.000Z
PikachuRobot/modules/qoutly.py
PROHackerr/Pikachu-Robot
4e035065198c3e58b6f4a64be61e1e00a68b8c99
[ "MIT" ]
2
2020-12-22T09:13:58.000Z
2020-12-26T12:29:30.000Z
PikachuRobot/modules/qoutly.py
PROHackerr/Pikachu-Robot
4e035065198c3e58b6f4a64be61e1e00a68b8c99
[ "MIT" ]
6
2020-12-22T08:52:27.000Z
2022-02-13T04:41:57.000Z
from PIL import Image, ImageDraw, ImageFont, ImageOps from telethon.tl import types, functions from fontTools.ttLib import TTFont from fontTools.unicode import Unicode import emoji import textwrap import urllib import logging import random import json import os import re from PikachuRobot.event import register COLO...
45.068878
132
0.559235
afe7930b056aab95e6a6c8f342c15fc610bd6d75
9,221
py
Python
lib/model/test_train.py
Frostinassiky/mlod.tf
89541ac32cf648a2927223f5516073a5f1d4ab8c
[ "MIT" ]
4
2019-08-12T10:44:25.000Z
2020-02-27T06:36:16.000Z
lib/model/test_train.py
frostinassiky/mlod.tf
89541ac32cf648a2927223f5516073a5f1d4ab8c
[ "MIT" ]
3
2020-07-01T03:22:00.000Z
2021-07-25T08:56:52.000Z
lib/model/test_train.py
frostinassiky/mlod.tf
89541ac32cf648a2927223f5516073a5f1d4ab8c
[ "MIT" ]
2
2021-01-09T23:45:20.000Z
2021-04-11T14:03:15.000Z
# -------------------------------------------------------- # Tensorflow Faster R-CNN # Licensed under The MIT License [see LICENSE for details] # Written by Xinlei Chen # -------------------------------------------------------- from __future__ import absolute_import from __future__ import division from __future__ impor...
36.160784
108
0.568702
2dc5ecfa7d8f4a13267490cef92842abcdc4ad6a
7,204
py
Python
treadmill/bootstrap/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
2
2017-03-20T07:13:33.000Z
2017-05-03T03:39:53.000Z
treadmill/bootstrap/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
12
2017-07-10T07:04:06.000Z
2017-07-26T09:32:54.000Z
treadmill/bootstrap/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
2
2017-05-04T11:25:32.000Z
2017-07-11T09:10:01.000Z
"""Treadmill bootstrap module.""" from __future__ import absolute_import import os import errno import logging import tempfile import importlib import pkgutil import stat import six import pkg_resources import jinja2 from treadmill import fs # This is required so that symlink API (os.symlink and other link related)...
28.931727
76
0.619239
841f215c0a7b7dcc2260903bd83152533a40cbe5
315
py
Python
fdk_client/platform/models/Bold.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/Bold.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
fdk_client/platform/models/Bold.py
kavish-d/fdk-client-python
a1023eb530473322cb52e095fc4ceb226c1e6037
[ "MIT" ]
null
null
null
"""Platform Models.""" from marshmallow import fields, Schema from marshmallow.validate import OneOf from ..enums import * from ..models.BaseSchema import BaseSchema class Bold(BaseSchema): # Theme swagger.json name = fields.Str(required=False) file = fields.Str(required=False)
14.318182
42
0.695238
de88695c586509204003f6a2d795342efc28c195
4,227
py
Python
app.py
iwg101-2020/ejemplo
14a97b60977bf5d920ef42a066349ab3edd878c3
[ "MIT" ]
1
2021-06-28T15:38:26.000Z
2021-06-28T15:38:26.000Z
app.py
iwg101-2020/ejemplo
14a97b60977bf5d920ef42a066349ab3edd878c3
[ "MIT" ]
null
null
null
app.py
iwg101-2020/ejemplo
14a97b60977bf5d920ef42a066349ab3edd878c3
[ "MIT" ]
null
null
null
import uuid import requests from flask import Flask, render_template, session, request, redirect, url_for from flask_session import Session # https://pythonhosted.org/Flask-Session import msal import app_config app = Flask(__name__) app.config.from_object(app_config) Session(app) # This section is needed for url_fo...
39.877358
102
0.715638
73ed5effd9443babc149b43193467b020fbd7975
40
py
Python
starterlite/util/__init__.py
gjsun/starterlite
4838c0b9837e0012157596984f9e39ed52f9c86c
[ "MIT" ]
null
null
null
starterlite/util/__init__.py
gjsun/starterlite
4838c0b9837e0012157596984f9e39ed52f9c86c
[ "MIT" ]
null
null
null
starterlite/util/__init__.py
gjsun/starterlite
4838c0b9837e0012157596984f9e39ed52f9c86c
[ "MIT" ]
null
null
null
from .ParameterFile import ParameterFile
40
40
0.9
3bdff1930e49f7935a55a9f7925fea286e71d950
38,987
py
Python
FWCore/GuiBrowsers/python/Vispa/Views/PropertyView.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
FWCore/GuiBrowsers/python/Vispa/Views/PropertyView.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
FWCore/GuiBrowsers/python/Vispa/Views/PropertyView.py
nistefan/cmssw
ea13af97f7f2117a4f590a5e654e06ecd9825a5b
[ "Apache-2.0" ]
null
null
null
import logging import sys import os.path from PyQt4.QtCore import Qt,SIGNAL,QCoreApplication,QSize from PyQt4.QtGui import QTableWidget,QTableWidgetItem,QCheckBox,QWidget,QSpinBox,QHBoxLayout,QVBoxLayout,QLineEdit,QSizePolicy,QTextEdit,QTextOption,QFrame,QToolButton,QPalette,QComboBox, QFileDialog,QTextCursor,QInputDi...
38.185113
278
0.611742
a9dad34f248c2a7832c2c85ec84f843b240fe707
3,004
py
Python
lib/ansible/plugins/lookup/vars.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
ansible/ansible/plugins/lookup/vars.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
ansible/ansible/plugins/lookup/vars.py
SergeyCherepanov/ansible
875711cd2fd6b783c812241c2ed7a954bf6f670f
[ "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ lookup: vars author: Ansible Core version_added: "2.5" short_description: L...
30.969072
117
0.625166
90eb7e186170a6e2cffca660ed23c1e171442dd9
9,966
py
Python
Python/libraries/recognizers-number/recognizers_number/number/extractors.py
aitelint/Recognizers-Text
b2d7ba09f5e72786322c9e4cdb903f54d190d28f
[ "MIT" ]
10
2019-05-11T18:07:14.000Z
2021-08-20T03:02:47.000Z
Python/libraries/recognizers-number/recognizers_number/number/extractors.py
aitelint/Recognizers-Text
b2d7ba09f5e72786322c9e4cdb903f54d190d28f
[ "MIT" ]
1
2020-07-10T08:25:36.000Z
2020-07-10T08:25:36.000Z
Python/libraries/recognizers-number/recognizers_number/number/extractors.py
aitelint/Recognizers-Text
b2d7ba09f5e72786322c9e4cdb903f54d190d28f
[ "MIT" ]
18
2019-08-19T12:11:00.000Z
2021-10-12T09:36:27.000Z
from abc import abstractmethod from typing import List, Pattern, Dict, Match from collections import namedtuple import regex from recognizers_text.utilities import RegExpUtility from recognizers_text.extractor import Extractor, ExtractResult from recognizers_number.resources.base_numbers import BaseNumbers from recogn...
39.705179
95
0.522075
1690da2be65319bb6696ac8f2ce11540524171c2
14,922
py
Python
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
src/week2-mlflow/AutoML/XGBoost-fake-news-automl.py
xzhnshng/databricks-zero-to-mlops
f1691c6f6137ad8b938e64cea4700c7011efb800
[ "CC0-1.0" ]
null
null
null
# Databricks notebook source # MAGIC %md # MAGIC # XGBoost training # MAGIC This is an auto-generated notebook. To reproduce these results, attach this notebook to the **10-3-ML-Cluster** cluster and rerun it. # MAGIC - Compare trials in the [MLflow experiment](#mlflow/experiments/406583024052808/s?orderByKey=metrics.%...
36.753695
461
0.743399
728a9589e9a50f5d1532da9603be7c8b8f6c1467
612
py
Python
crimes/crimes.py
e-io/playground
448a8d41ac1839c66d204b7d9b2f9784f87eb60f
[ "Apache-2.0" ]
2
2020-05-18T17:26:00.000Z
2020-05-18T17:26:03.000Z
crimes/crimes.py
e-io/playground
448a8d41ac1839c66d204b7d9b2f9784f87eb60f
[ "Apache-2.0" ]
null
null
null
crimes/crimes.py
e-io/playground
448a8d41ac1839c66d204b7d9b2f9784f87eb60f
[ "Apache-2.0" ]
null
null
null
# python 3-7-4 import csv crimes = dict() with open("crimes.csv") as file: detective = csv.reader(file) for row in detective: date = row[2] if "2015" in date: crime = row[5] if crime not in crimes: crimes[crime] = 1 else: cri...
19.741935
35
0.52451
e2bd6d6ad6e394d4029cf90a50bf93bb166c8ca1
377
py
Python
tools.py
Nazruden/L3-ProjetReseau
c21163867c83ea9f3c970bdff73ff32ac045ae77
[ "MIT" ]
1
2017-01-04T12:35:36.000Z
2017-01-04T12:35:36.000Z
tools.py
Nazruden/L3-ProjetReseau
c21163867c83ea9f3c970bdff73ff32ac045ae77
[ "MIT" ]
null
null
null
tools.py
Nazruden/L3-ProjetReseau
c21163867c83ea9f3c970bdff73ff32ac045ae77
[ "MIT" ]
null
null
null
# Tools used by both server and client def formalizedata(msg, cmd): return msg.replace(cmd, "").replace("\n", "") def split_data(data): try: return data.split('\n') except: return data.decode().split('\n') def sendAll(clients, msg): for client in clients: client.send(msg) def...
20.944444
49
0.618037
7597bb9fd801922554084f79705d9710c6431a70
2,985
py
Python
src/data_processing/config_dut.py
schulz89/Verification-Platform-for-Star-Trackers
5216feb8036506503713c0c1f89728ecc40b3d5c
[ "Apache-2.0" ]
3
2020-03-06T10:32:00.000Z
2022-01-18T21:14:26.000Z
src/data_processing/config_dut.py
schulz89/Verification-Platform-for-Star-Trackers
5216feb8036506503713c0c1f89728ecc40b3d5c
[ "Apache-2.0" ]
1
2020-10-30T06:25:21.000Z
2020-10-30T06:25:21.000Z
src/data_processing/config_dut.py
schulz89/Verification-Platform-for-Star-Trackers
5216feb8036506503713c0c1f89728ecc40b3d5c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2019 Victor Hugo Schulz # 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 l...
36.402439
84
0.628811
9ea3cd329778823e488378f3fb3773b26232081f
14,572
py
Python
singan_seg_polyp/SinGAN/functions.py
vlbthambawita/singan-seg-polyp
8764cf1d813c99f9e646419ff219b34ad8a8e1f5
[ "MIT" ]
10
2021-07-12T00:07:33.000Z
2022-03-25T09:53:21.000Z
singan_seg_polyp/SinGAN/functions.py
vlbthambawita/singan-seg-polyp
8764cf1d813c99f9e646419ff219b34ad8a8e1f5
[ "MIT" ]
1
2021-12-03T10:10:30.000Z
2022-01-19T20:03:21.000Z
singan_seg_polyp/SinGAN/functions.py
vlbthambawita/singan-seg-polyp
8764cf1d813c99f9e646419ff219b34ad8a8e1f5
[ "MIT" ]
2
2021-07-12T00:07:39.000Z
2021-07-19T05:55:32.000Z
import torch import matplotlib.pyplot as plt import matplotlib.patches as patches import numpy as np import torch.nn as nn import scipy.io as sio import math from skimage import io as img from skimage import color, morphology, filters #from skimage import morphology #from skimage import filters from singan_seg_polyp.Si...
37.460154
158
0.632652
d9bf9bda737cdfa11a7c43723e91f4223688d7f8
1,340
py
Python
queue_services/entity-emailer/tests/unit/email_processors/test_mras_notification.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
8
2019-06-19T16:16:15.000Z
2021-08-28T23:56:40.000Z
queue_services/entity-emailer/tests/unit/email_processors/test_mras_notification.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
796
2019-03-07T19:25:50.000Z
2022-03-31T20:32:57.000Z
queue_services/entity-emailer/tests/unit/email_processors/test_mras_notification.py
argush3/lear
804820ea93a9ca44d1a474ce7a903bb0a808aacb
[ "Apache-2.0" ]
82
2019-01-30T20:06:14.000Z
2022-03-29T20:38:31.000Z
# Copyright © 2020 Province of British Columbia # # 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 agr...
43.225806
86
0.729104
39ed80e9a2ad2751f35a4f48a435a64234bc3c77
8,095
py
Python
lib/python3.6/site-packages/statsmodels/tsa/kalmanf/kalmanfilter.py
KshitizSharmaV/Quant_Platform_Python
d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39
[ "BSD-3-Clause" ]
1
2020-05-09T08:42:52.000Z
2020-05-09T08:42:52.000Z
statsmodels/tsa/kalmanf/kalmanfilter.py
yanzhenxiong/statsmodels
e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tsa/kalmanf/kalmanfilter.py
yanzhenxiong/statsmodels
e56c4046ff8807c3c16d6a9293b5cb5dfe6f0cd0
[ "BSD-3-Clause" ]
1
2020-05-09T08:42:58.000Z
2020-05-09T08:42:58.000Z
""" State Space Analysis using the Kalman Filter References ----------- Durbin., J and Koopman, S.J. `Time Series Analysis by State Space Methods`. Oxford, 2001. Hamilton, J.D. `Time Series Analysis`. Princeton, 1994. Harvey, A.C. `Forecasting, Structural Time Series Models and the Kalman Filter`. Cambrid...
34.742489
80
0.595553
5b7a2a768bbc2648da116b529ef7b13c70861a0d
127,914
py
Python
dask/dataframe/io/tests/test_parquet.py
eric-bonfadini/dask
c2278fece0d4fb4af1e63b6ca26e6a90f63b0fc3
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/io/tests/test_parquet.py
eric-bonfadini/dask
c2278fece0d4fb4af1e63b6ca26e6a90f63b0fc3
[ "BSD-3-Clause" ]
null
null
null
dask/dataframe/io/tests/test_parquet.py
eric-bonfadini/dask
c2278fece0d4fb4af1e63b6ca26e6a90f63b0fc3
[ "BSD-3-Clause" ]
null
null
null
import glob import math import os import sys import warnings from decimal import Decimal import numpy as np import pandas as pd import pytest from packaging.version import parse as parse_version import dask import dask.dataframe as dd import dask.multiprocessing from dask.blockwise import Blockwise, optimize_blockwis...
32.984528
114
0.604062
5e2875144e2f50640a98961e0b2870ac5ed1487b
1,004
py
Python
YandexPages/YandexResultsPage.py
PesyCorm/TestTask
2ae4c96ffe92a9d77dba8af537a1941d723edf25
[ "MIT" ]
null
null
null
YandexPages/YandexResultsPage.py
PesyCorm/TestTask
2ae4c96ffe92a9d77dba8af537a1941d723edf25
[ "MIT" ]
null
null
null
YandexPages/YandexResultsPage.py
PesyCorm/TestTask
2ae4c96ffe92a9d77dba8af537a1941d723edf25
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By from .BasePage import BasePage # Работает на странице результатов поиска # В аргумент принимает драйвер # Возвращает список с текстом, ссылками результатов поиска, проверкой на рекламу # *если результат является рекламой, check_ad будет True class ResultsPage(BasePage): ...
40.16
107
0.641434
6735454497a437731a7599ea75b8ff475bc5a7d0
554
py
Python
titan/react_state_pkg/behavior/__init__.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
titan/react_state_pkg/behavior/__init__.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
titan/react_state_pkg/behavior/__init__.py
mnieber/gen
65f8aa4fb671c4f90d5cbcb1a0e10290647a31d9
[ "MIT" ]
null
null
null
import moonleap.resource.props as P from moonleap import Prop, empty_rule, extend, named from moonleap.verbs import has from titan.api_pkg.itemlist.resources import ItemList from titan.react_pkg.nodepackage import StoreNodePackageConfigs from . import props from .resources import Behavior rules = [ (("x+item~list...
24.086957
63
0.774368
0d77d55d484c27a5186dffff494fe8993214dfb2
1,626
py
Python
tests/test_get_block.py
stealth-startup/pybit
4447303813138dee0b7768c92db7c7781128bed3
[ "MIT" ]
null
null
null
tests/test_get_block.py
stealth-startup/pybit
4447303813138dee0b7768c92db7c7781128bed3
[ "MIT" ]
null
null
null
tests/test_get_block.py
stealth-startup/pybit
4447303813138dee0b7768c92db7c7781128bed3
[ "MIT" ]
null
null
null
__author__ = 'Rex' import sys sys.path.append('../src') import pybit from pybit import settings if __name__ == "__main__": settings.USE_FAKE_DATA = False print 'getting block 247326 from blockchain.info ...' block = pybit.get_block_by_height(247326, source=settings.SOURCE_BLOCKCHAIN_INFO, test_net=Fal...
34.595745
118
0.714637
378831c2188793556b4e7e2c50e122be9c7f531c
3,145
py
Python
bot_rider_server.py
joonamo/maze_robot
bddedfa6b9cef4065660df07dd741be76c74f988
[ "MIT" ]
null
null
null
bot_rider_server.py
joonamo/maze_robot
bddedfa6b9cef4065660df07dd741be76c74f988
[ "MIT" ]
null
null
null
bot_rider_server.py
joonamo/maze_robot
bddedfa6b9cef4065660df07dd741be76c74f988
[ "MIT" ]
null
null
null
import urllib.parse import http.server import socketserver import json import traceback import sys import serial import re import os import getopt PORT = 8000 opts, args = getopt.getopt(sys.argv[1:], "p:", ["cvd="]) for o, a in opts: if o == "-p": PORT = int(a) elif o == "--cvd": os.chdir(a) l...
35.337079
174
0.551033
8596721dd9b4a371e549890a6ffc5b704b2ebfa3
13,760
py
Python
gradefast/grader/banners.py
jhartz/gradefast
0390eb605c56bfc8a02cfb34340fa4dbd52b4c44
[ "MIT" ]
5
2017-09-10T22:11:01.000Z
2018-08-28T23:08:27.000Z
gradefast/grader/banners.py
jhartz/gradefast
0390eb605c56bfc8a02cfb34340fa4dbd52b4c44
[ "MIT" ]
1
2018-09-06T12:53:45.000Z
2018-09-11T15:37:26.000Z
gradefast/grader/banners.py
jhartz/gradefast
0390eb605c56bfc8a02cfb34340fa4dbd52b4c44
[ "MIT" ]
null
null
null
""" Obviously the most important part of GradeFast :p Licensed under the MIT License. For more, see the LICENSE file. Author: Jake Hartz <jake@hartz.io> """ BANNERS = [ r""" /$$$$$$ /$$ /$$__ $$ | $$ | $$ \__/ /$$$$$$ /$$$$$$ /$$$$$$$ /$$$$$$ | $$ /$$$$ /$$...
44.102564
96
0.23452
edfffb879cbc45a91d312d4a26531f3e1c49271b
414
py
Python
lib/spack/spack/test/cmd/python.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
2
2018-11-27T03:39:44.000Z
2021-09-06T15:50:35.000Z
lib/spack/spack/test/cmd/python.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-01-11T20:11:52.000Z
2019-01-11T20:11:52.000Z
lib/spack/spack/test/cmd/python.py
HaochengLIU/spack
26e51ff1705a4d6234e2a0cf734f93f7f95df5cb
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-10-14T14:20:17.000Z
2020-10-14T14:20:17.000Z
# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import spack from spack.main import SpackCommand python = SpackCommand('python') def test_python(): out = python('-...
27.6
73
0.748792
8f07eb1904135c4d28d1c9f12d7cf202f3bdee2b
2,015
py
Python
esmvalcore/cmor/_fixes/cmip5/inmcm4.py
Peter9192/ESMValCore
febd96a39480cc837afbf4e1f5b0ef61571af76a
[ "Apache-2.0" ]
1
2019-11-28T13:09:42.000Z
2019-11-28T13:09:42.000Z
esmvalcore/cmor/_fixes/cmip5/inmcm4.py
Peter9192/ESMValCore
febd96a39480cc837afbf4e1f5b0ef61571af76a
[ "Apache-2.0" ]
null
null
null
esmvalcore/cmor/_fixes/cmip5/inmcm4.py
Peter9192/ESMValCore
febd96a39480cc837afbf4e1f5b0ef61571af76a
[ "Apache-2.0" ]
1
2019-11-29T00:50:30.000Z
2019-11-29T00:50:30.000Z
"""Fixes for inmcm4 model.""" import iris from ..fix import Fix class Gpp(Fix): """Fixes for gpp.""" def fix_data(self, cube): """ Fix data. Fixes discrepancy between declared units and real units Parameters ---------- cube: iris.cube.Cube Returns ...
18.831776
76
0.502233
72ec3c055096f33d5a7b7ba8023ff4c5946847fe
10,105
py
Python
externals/skia/platform_tools/android/bin/gyp_to_android.py
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
1
2019-10-29T14:36:32.000Z
2019-10-29T14:36:32.000Z
externals/skia/platform_tools/android/bin/gyp_to_android.py
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
1
2017-06-18T00:25:03.000Z
2017-11-29T16:01:48.000Z
externals/skia/platform_tools/android/bin/gyp_to_android.py
terrajobst/linux-packaging-skiasharp
47dbb2ff9ae01305b190f409ccea00b3b4f0bc79
[ "MIT" ]
5
2017-11-30T06:06:50.000Z
2022-03-31T21:48:49.000Z
#!/usr/bin/python # Copyright 2014 Google Inc. # # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Script for generating the Android framework's version of Skia from gyp files. """ import argparse import os import shutil import sys import tempfile # Find the t...
44.515419
80
0.648392
2b5080f0e371b69aaec213036719bc277221d968
2,075
py
Python
src/__main__.py
rajeshhdp/facialFeatures
0e252ab16b5136ca57fb84ecb2694261bf08807f
[ "BSD-2-Clause" ]
null
null
null
src/__main__.py
rajeshhdp/facialFeatures
0e252ab16b5136ca57fb84ecb2694261bf08807f
[ "BSD-2-Clause" ]
null
null
null
src/__main__.py
rajeshhdp/facialFeatures
0e252ab16b5136ca57fb84ecb2694261bf08807f
[ "BSD-2-Clause" ]
null
null
null
# Importing standard libraries import cv2 import math import numpy as np import sys # Importing custom libraries import displayUtils import faceFeatures # Defining the main method def main(): # Check if a command-line argument has been passed to the program if len(sys.argv) < 2: print 'Please specify a valid i...
28.819444
76
0.765301
cc7531b2598e12e5d6132ddaa47f38a66dc727e2
5,787
py
Python
libp2p/network/swarm.py
magniff/py-libp2p
98f6ce2fab5a7dade292865aa0a38e5f68310a8e
[ "Apache-2.0", "MIT" ]
null
null
null
libp2p/network/swarm.py
magniff/py-libp2p
98f6ce2fab5a7dade292865aa0a38e5f68310a8e
[ "Apache-2.0", "MIT" ]
null
null
null
libp2p/network/swarm.py
magniff/py-libp2p
98f6ce2fab5a7dade292865aa0a38e5f68310a8e
[ "Apache-2.0", "MIT" ]
null
null
null
from libp2p.protocol_muxer.multiselect_client import MultiselectClient from libp2p.protocol_muxer.multiselect import Multiselect from .network_interface import INetwork from .stream.net_stream import NetStream from .connection.raw_connection import RawConnection class Swarm(INetwork): # pylint: disable=too-many...
35.944099
100
0.630551
16a57fcf2d8c001fbe9b390ff344077620a735a2
1,387
py
Python
examples/setup_sockets.py
cicada-mpc/cicada-mpc
3b4a1e6b950e90e43e56d9c0f7d11e639f462d81
[ "Apache-2.0" ]
5
2021-06-30T17:31:56.000Z
2022-03-21T18:59:57.000Z
examples/setup_sockets.py
cicada-mpc/cicada-mpc
3b4a1e6b950e90e43e56d9c0f7d11e639f462d81
[ "Apache-2.0" ]
36
2021-07-06T16:38:32.000Z
2022-03-28T03:14:20.000Z
examples/setup_sockets.py
cicada-mpc/cicada-mpc
3b4a1e6b950e90e43e56d9c0f7d11e639f462d81
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 National Technology & Engineering Solutions # of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, # the U.S. Government retains certain rights in this software. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance ...
30.822222
78
0.713771
253e17bfd80045f00a8a6555c88d3ac7eb2223d1
6,129
py
Python
assoc/bin/plinkDraw.py
lvclark/h3agwas
5e42e60123b819d3c331a91b25ee50846e55af3b
[ "MIT" ]
null
null
null
assoc/bin/plinkDraw.py
lvclark/h3agwas
5e42e60123b819d3c331a91b25ee50846e55af3b
[ "MIT" ]
8
2019-11-14T18:04:46.000Z
2021-08-10T15:09:30.000Z
assoc/bin/plinkDraw.py
lvclark/h3agwas
5e42e60123b819d3c331a91b25ee50846e55af3b
[ "MIT" ]
3
2019-01-25T10:59:43.000Z
2021-11-04T03:00:31.000Z
#!/usr/bin/env python3 # (c) University of the Witwatersand, Johannesburg on behalf of the H3ABioinformatics Network Consortium # 2016-2018 # Licensed under the Creative Commons Attribution 4.0 International Licence. # See the "LICENSE" file for details import pandas as pd import sys import numpy as np import glob i...
30.645
121
0.62653
b6512a9d5a528eb80a27e256cf88b6a3e21804af
2,913
py
Python
micro_framework/rpc/formatters.py
Mendes11/micro_framework
dfb9f7a55922284e70f6937dd478a1edaacd83b7
[ "Apache-2.0" ]
7
2020-05-20T21:19:02.000Z
2021-12-28T17:50:50.000Z
micro_framework/rpc/formatters.py
Mendes11/micro_framework
dfb9f7a55922284e70f6937dd478a1edaacd83b7
[ "Apache-2.0" ]
30
2020-06-07T20:20:11.000Z
2021-06-03T14:58:41.000Z
micro_framework/rpc/formatters.py
Mendes11/micro_framework
dfb9f7a55922284e70f6937dd478a1edaacd83b7
[ "Apache-2.0" ]
null
null
null
import importlib import inspect import json from typing import Union, Any from micro_framework import exceptions from micro_framework.exceptions import RPCException def import_exception(exception): fw_exceptions = dict(inspect.getmembers( exceptions, lambda x: inspect.isclass(x) and issubclass(x,...
30.989362
95
0.659458
ddb5b1e3b70145b9d9071b3210261ae529bd6974
7,586
py
Python
train.py
bastianwandt/CanonPose
95ee5591d24982389e8a9264e188c699264d6f9f
[ "MIT" ]
21
2021-05-06T02:50:18.000Z
2022-03-30T02:45:20.000Z
train.py
bastianwandt/CanonPose
95ee5591d24982389e8a9264e188c699264d6f9f
[ "MIT" ]
9
2021-07-14T00:48:56.000Z
2022-02-12T00:43:06.000Z
train.py
bastianwandt/CanonPose
95ee5591d24982389e8a9264e188c699264d6f9f
[ "MIT" ]
4
2021-08-12T13:53:16.000Z
2021-12-06T19:15:08.000Z
import torch import torch.nn import torch.optim import numpy as np from torch.utils import data from utils.data import H36MDataset import torch.optim as optim import model_confidences from utils.print_losses import print_losses from types import SimpleNamespace from pytorch3d.transforms import so3_exponential_map as ro...
41.681319
237
0.646059
a09206b7ac21756c1daed69900c95c6a2783f2bb
10,568
py
Python
trac/tests/attachment.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
trac/tests/attachment.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
trac/tests/attachment.py
CoRfr/trac
31509d77aa7cd3c6c0057a607313ceaed1f7a20b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2005-2013 Edgewall Software # All rights reserved. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms # are also available at http://trac.edgewall.org/wiki/TracLicense. # # This software consi...
43.669421
84
0.600303
afe96730096362113faf63e36dcae55a9df1657f
982
py
Python
features/steps/Visualize_lyrics.py
ProjecteWeb/Lyricfy
ed52c12f8a9b8feebb69a5acc8dc0dedab082198
[ "MIT" ]
null
null
null
features/steps/Visualize_lyrics.py
ProjecteWeb/Lyricfy
ed52c12f8a9b8feebb69a5acc8dc0dedab082198
[ "MIT" ]
3
2021-09-07T23:50:03.000Z
2022-03-11T23:18:48.000Z
features/steps/Visualize_lyrics.py
ProjecteWeb/Lyricfy
ed52c12f8a9b8feebb69a5acc8dc0dedab082198
[ "MIT" ]
null
null
null
from behave import * use_step_matcher("parse") @given('I see the songs list that contained "Perfect"') def step_impl(context): context.browser.visit(context.get_url('/lyricfy_app/search?song=Perfect')) @when("I press one song from the list") def step_impl(context): context.browser.find_link_by_partial_text...
27.277778
78
0.742363
fc5b798cc1470e440d2b6098006cb85cdc528846
594
py
Python
micropython-maixpy-0_6_2-66/stubs/_thread.py
mongonta0716/stub_for_maixpy
f8f29454668919873f9a0f14bb5a9b01ab103bc8
[ "MIT" ]
1
2021-08-22T09:10:43.000Z
2021-08-22T09:10:43.000Z
micropython-maixpy-0_6_2-66/stubs/_thread.py
mongonta0716/stub_for_maixpy
f8f29454668919873f9a0f14bb5a9b01ab103bc8
[ "MIT" ]
null
null
null
micropython-maixpy-0_6_2-66/stubs/_thread.py
mongonta0716/stub_for_maixpy
f8f29454668919873f9a0f14bb5a9b01ab103bc8
[ "MIT" ]
null
null
null
""" Module: '_thread' on micropython-maixpy-0.6.2-66 """ # MCU: {'ver': '0.6.2-66', 'build': '66', 'sysname': 'MaixPy', 'platform': 'MaixPy', 'version': '0.6.2', 'release': '0.6.2', 'port': 'MaixPy', 'family': 'micropython', 'name': 'micropython', 'machine': 'Sipeed_M1 with kendryte-k210', 'nodename': 'MaixPy'} # Stubb...
18
255
0.574074
83fbfe94451c9a9fbcb84add7d2a74ee9e891436
1,764
py
Python
nlcpy/wrapper/__init__.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
11
2020-07-31T02:21:55.000Z
2022-03-10T03:12:11.000Z
nlcpy/wrapper/__init__.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
nlcpy/wrapper/__init__.py
SX-Aurora/nlcpy
0a53eec8778073bc48b12687b7ce37ab2bf2b7e0
[ "BSD-3-Clause" ]
null
null
null
# # * The source code in this file is developed independently by NEC Corporation. # # # NLCPy License # # # Copyright (c) 2020-2021 NEC Corporation # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following cond...
53.454545
88
0.744898
c065b205105137f53c98df968d2b2d6a3aa5385f
20,714
py
Python
tests/unit/api/metadata/test_v0.py
alexopoulos7/amundsenfrontendlibrary
ad9ffc442aec8334cef1eb22ff7461985da24dd4
[ "Apache-2.0" ]
null
null
null
tests/unit/api/metadata/test_v0.py
alexopoulos7/amundsenfrontendlibrary
ad9ffc442aec8334cef1eb22ff7461985da24dd4
[ "Apache-2.0" ]
null
null
null
tests/unit/api/metadata/test_v0.py
alexopoulos7/amundsenfrontendlibrary
ad9ffc442aec8334cef1eb22ff7461985da24dd4
[ "Apache-2.0" ]
null
null
null
import json import responses import unittest from http import HTTPStatus from amundsen_application import create_app from amundsen_application.api.metadata.v0 import \ TABLE_ENDPOINT, LAST_INDEXED_ENDPOINT, POPULAR_TABLES_ENDPOINT, TAGS_ENDPOINT, USER_ENDPOINT local_app = create_app('amundsen_application.config....
38.790262
120
0.526987
a585711ff7217d63466cbed7a86541f5606cd007
2,770
py
Python
python/athena/gpu_ops/Opposite.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
2
2021-05-29T11:18:14.000Z
2021-09-09T14:29:21.000Z
python/athena/gpu_ops/Opposite.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
null
null
null
python/athena/gpu_ops/Opposite.py
DMALab/TSplit
8f86f987163aa06521bfeeb174616eb4a0a81b47
[ "Apache-2.0" ]
1
2021-05-01T16:34:37.000Z
2021-05-01T16:34:37.000Z
from __future__ import absolute_import from .Node import Op, NAME_RULE, PROFILING_MODE from .. import profiler from .._base import get_array_memory class OppositeOp(Op): def __call__(self, node_A): new_node = Op.__call__(self) new_node.inputs = [node_A] new_node.profiler = None if P...
34.197531
105
0.609747
52515ab25077b667c5d82414375c019f2a67ddd1
2,805
py
Python
docs/conf.py
schubergphilis/outpost24hiablib
8bb9224ae9a3f58853f18ac54c0dc6a8db2d2530
[ "MIT" ]
null
null
null
docs/conf.py
schubergphilis/outpost24hiablib
8bb9224ae9a3f58853f18ac54c0dc6a8db2d2530
[ "MIT" ]
null
null
null
docs/conf.py
schubergphilis/outpost24hiablib
8bb9224ae9a3f58853f18ac54c0dc6a8db2d2530
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ...
35.0625
81
0.683066