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
adf5010e2eb3251e44ea356dea336e814bd17e53
7,903
py
Python
prototype/c4_trainer/c4_trainer.py
cwoodall/c4-android-app
9148d50417f0dc4ed28fc75ff5dc908bdf8ec5bc
[ "MIT" ]
1
2016-08-03T01:35:41.000Z
2016-08-03T01:35:41.000Z
prototype/c4_trainer/c4_trainer.py
cwoodall/c4-android-app
9148d50417f0dc4ed28fc75ff5dc908bdf8ec5bc
[ "MIT" ]
null
null
null
prototype/c4_trainer/c4_trainer.py
cwoodall/c4-android-app
9148d50417f0dc4ed28fc75ff5dc908bdf8ec5bc
[ "MIT" ]
null
null
null
#!/usr/bin/python from random import uniform import os import csv class ConnectFourBoard(object): def __init__(self, rows=6, cols=7, placeholder=" "): self.rows=rows self.cols=cols self.placeholder=placeholder self.reset() self.last_move = [0,0] def __str__(self...
32.657025
101
0.457042
e17299bd039a2f6bb4ba4e745c77d1cbb2498ebf
31,054
py
Python
script.py
vulporuza/3D-printed-mirror-array
bbce0806684b94e6853f25660333eecf93ceceea
[ "MIT" ]
null
null
null
script.py
vulporuza/3D-printed-mirror-array
bbce0806684b94e6853f25660333eecf93ceceea
[ "MIT" ]
null
null
null
script.py
vulporuza/3D-printed-mirror-array
bbce0806684b94e6853f25660333eecf93ceceea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import numpy as np from numpy import sin, cos, tan, pi import matplotlib.pyplot as plt import stl # pip install numpy-stl import hexy as hx #pip install hexy # vPython is only required for visualization code. # If you just want to generate the models, you can disable this. import...
46.280179
233
0.6499
c03c9da41945d624ac34a9fa50272c2c55304d66
435
py
Python
test-sniff.py
n1cfury/ViolentPython
c758de753bd56fe8b5c5b6db6f0f1b134023bf6f
[ "MIT" ]
null
null
null
test-sniff.py
n1cfury/ViolentPython
c758de753bd56fe8b5c5b6db6f0f1b134023bf6f
[ "MIT" ]
null
null
null
test-sniff.py
n1cfury/ViolentPython
c758de753bd56fe8b5c5b6db6f0f1b134023bf6f
[ "MIT" ]
null
null
null
from scapy.all import * def banner(): print "#### Wireless Sniffer p173 #####" def pktPrint(pkt): if pkt.haslayer(Dot11Beacon): print '[+] Detected 802.11 Beacon Frame ' elif pkt.haslayer(Dot11ProbeReq): print '[+] Detected 802.11 Probe Request Frame ' elif pkt.haslayer(TCP): print '[+] Detected a TCP...
18.913043
50
0.671264
c738381df757939f9b1bd85bc05ed20fad06f1f7
546
py
Python
manage.py
iafisher/writingstreak
1f9781dd56974b6870c16b9980b9cf0e65f493f6
[ "MIT" ]
2
2020-05-20T03:31:43.000Z
2020-09-01T20:12:21.000Z
manage.py
iafisher/writingstreak
1f9781dd56974b6870c16b9980b9cf0e65f493f6
[ "MIT" ]
8
2018-08-03T02:48:26.000Z
2019-11-01T03:14:24.000Z
manage.py
iafisher/writingstreak
1f9781dd56974b6870c16b9980b9cf0e65f493f6
[ "MIT" ]
1
2019-10-14T12:45:09.000Z
2019-10-14T12:45:09.000Z
#!/usr/bin/env python3 import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "writingstreak.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Djang...
34.125
77
0.690476
6904405bca3ab7270bcbc26b2e2783500d994233
63
py
Python
_solutions/numpy/attributes/numpy_dtype_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/numpy/attributes/numpy_dtype_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
_solutions/numpy/attributes/numpy_dtype_a.py
sages-pl/2022-01-pythonsqlalchemy-aptiv
1d6d856608e9dbe25b139e8968c48b7f46753b84
[ "MIT" ]
null
null
null
result_int = DATA.astype(int) result_bool = DATA.astype(bool)
15.75
31
0.761905
ee45b6cae3ba28754551ab96081baad6dd4dc823
1,800
py
Python
pagemonitor/producer.py
pavdmyt/pagemonitor
ae2153d6356f75b9b116a3cb79f9072acd9966f1
[ "MIT" ]
null
null
null
pagemonitor/producer.py
pavdmyt/pagemonitor
ae2153d6356f75b9b116a3cb79f9072acd9966f1
[ "MIT" ]
23
2020-09-05T09:18:36.000Z
2020-10-06T14:54:04.000Z
pagemonitor/producer.py
pavdmyt/pagemonitor
ae2153d6356f75b9b116a3cb79f9072acd9966f1
[ "MIT" ]
1
2020-09-06T06:55:38.000Z
2020-09-06T06:55:38.000Z
import json from asyncio import Queue from confluent_kafka import Producer from .config import DotDict from .logger import producer_log def new_producer(conf: DotDict) -> Producer: """ Create pre-configured instance of confluent_kafka.Producer. Configuration options: https://github.com/edenhill/lib...
24
71
0.597778
2a93bf578c10f2e4e5263886fa77e9182730f197
2,457
py
Python
app/model/features_parallel.py
ajit2688/crypto
6cbdfea43af9690d289f92db6b1b3b371abbd2fb
[ "Apache-2.0" ]
320
2017-02-25T15:39:00.000Z
2022-03-22T18:38:55.000Z
app/model/features_parallel.py
OpenSourceMasta/CryptoBot
6cbdfea43af9690d289f92db6b1b3b371abbd2fb
[ "Apache-2.0" ]
2
2017-09-19T15:04:33.000Z
2022-02-20T17:12:33.000Z
app/model/features_parallel.py
OpenSourceMasta/CryptoBot
6cbdfea43af9690d289f92db6b1b3b371abbd2fb
[ "Apache-2.0" ]
97
2017-03-06T01:05:49.000Z
2022-03-21T18:34:43.000Z
#python -W ignore -u features_parallel.py <initial skip> <limit in ascending (earlier to later), 0 for all> <output file> #python -W ignore -u features_parallel.py 0 1231625 ./data1.pkl && python -W ignore -u features_parallel.py 1231625-150 1231625 ./data2.pkl (-150 on the second command's split because from the first...
39
228
0.708588
ed54d88d4da741c66beb87e2e0f6d392a5ea3349
1,879
py
Python
backend/python/db/print_db.py
fridgeresearch/kitchen
0bbe864e6418da3bda5b55ceb292763406d149ea
[ "MIT" ]
null
null
null
backend/python/db/print_db.py
fridgeresearch/kitchen
0bbe864e6418da3bda5b55ceb292763406d149ea
[ "MIT" ]
null
null
null
backend/python/db/print_db.py
fridgeresearch/kitchen
0bbe864e6418da3bda5b55ceb292763406d149ea
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2016 Jake Lussier (Stanford University) 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...
39.145833
102
0.761043
5e536d6bd679151835cab56cbd4dd6037d561c86
2,318
bzl
Python
test/com/facebook/buck/core/starlark/rule/testdata/implementation_has_correct_attrs_in_ctx/defs.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
8,027
2015-01-02T05:31:44.000Z
2022-03-31T07:08:09.000Z
test/com/facebook/buck/core/starlark/rule/testdata/implementation_has_correct_attrs_in_ctx/defs.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
2,355
2015-01-01T15:30:53.000Z
2022-03-30T20:21:16.000Z
test/com/facebook/buck/core/starlark/rule/testdata/implementation_has_correct_attrs_in_ctx/defs.bzl
Unknoob/buck
2dfc734354b326f2f66896dde7746a11965d5a13
[ "Apache-2.0" ]
1,280
2015-01-09T03:29:04.000Z
2022-03-30T15:14:14.000Z
""" Module docstring """ def _impl(ctx): # Make sure that hidden attrs have default values enabled, and that # they are coerced properly if ctx.attr._hidden[0].short_path.replace("\\", "/") != "foo/main.cpp": fail("expected attr._hidden to equal 'foo/main.cpp'") if ctx.label.name == "no_default...
38.633333
87
0.556083
69e3b0bb6e7616a41d88c44eb92d8a06e08a5866
3,926
py
Python
doc/display/e-Paper-master/RaspberryPi_JetsonNano/python/examples/epd_7in5b_V2_test.py
bartoszp1992/Tacho2
b8bf0928775c648b6191b7d90890d09bd87799f0
[ "MIT" ]
null
null
null
doc/display/e-Paper-master/RaspberryPi_JetsonNano/python/examples/epd_7in5b_V2_test.py
bartoszp1992/Tacho2
b8bf0928775c648b6191b7d90890d09bd87799f0
[ "MIT" ]
null
null
null
doc/display/e-Paper-master/RaspberryPi_JetsonNano/python/examples/epd_7in5b_V2_test.py
bartoszp1992/Tacho2
b8bf0928775c648b6191b7d90890d09bd87799f0
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import sys import os picdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'pic') libdir = os.path.join(os.path.dirname(os.path.dirname(os.path.realpath(__file__))), 'lib') if os.path.exists(libdir): sys.path.append(libdir) import logging from ...
38.871287
90
0.652827
417dda351d434fd31aeba2e2315ddf2dfc670074
1,584
py
Python
blog/models.py
AnkitSingh18/blogpost
3d60dc44e7a13d065ae68cc13591aaf5203b7478
[ "MIT" ]
null
null
null
blog/models.py
AnkitSingh18/blogpost
3d60dc44e7a13d065ae68cc13591aaf5203b7478
[ "MIT" ]
7
2020-06-06T01:36:31.000Z
2022-03-12T00:19:30.000Z
blog/models.py
AnkitSingh18/blogpost
3d60dc44e7a13d065ae68cc13591aaf5203b7478
[ "MIT" ]
8
2020-01-28T15:20:00.000Z
2022-02-22T13:34:45.000Z
from django.db import models from django.contrib.auth.models import User from django.conf import settings from django.db.models.signals import post_save from django.dispatch import receiver from django.core.exceptions import ObjectDoesNotExist from django.contrib.auth import get_user_model # Create your models here. ...
31.058824
69
0.744949
fc656e6a03c549daadc8ce348580dd1517fa520e
657
py
Python
python/02-strings/12-the-minion-game.py
atalaydev/hacker-rank
494f1cd1f4e299f6b622afe2c1b338ad82dd5d29
[ "MIT" ]
null
null
null
python/02-strings/12-the-minion-game.py
atalaydev/hacker-rank
494f1cd1f4e299f6b622afe2c1b338ad82dd5d29
[ "MIT" ]
null
null
null
python/02-strings/12-the-minion-game.py
atalaydev/hacker-rank
494f1cd1f4e299f6b622afe2c1b338ad82dd5d29
[ "MIT" ]
null
null
null
def minion_game(string): kevin, stuart = 0, 0 for i in range(len(string)): # b[a]nana, if you see 'a' at the indis 1 then you can # generate 5 words as ['a', 'an', 'ana', 'anan', 'ananan'] and # all of them will start with a vowel and each one adds 1 point. # So sum them togethe...
25.269231
72
0.534247
b516596de6e63cd721cb1904e83450fbc6f69416
3,283
py
Python
form_auto_fill_in/forms/office.py
iwasakishuto/Form-Auto-Fill-In
3281374fa26001d04890e2824cba38b500ab8393
[ "MIT" ]
7
2021-06-22T08:42:00.000Z
2021-07-04T07:34:32.000Z
form_auto_fill_in/forms/office.py
iwasakishuto/Form-Auto-Fill-In
3281374fa26001d04890e2824cba38b500ab8393
[ "MIT" ]
null
null
null
form_auto_fill_in/forms/office.py
iwasakishuto/Form-Auto-Fill-In
3281374fa26001d04890e2824cba38b500ab8393
[ "MIT" ]
6
2021-06-22T07:58:27.000Z
2021-11-29T07:33:00.000Z
# coding: utf-8 import copy import time from collections import deque from typing import Any, Dict, List from selenium.webdriver.remote.webdriver import WebDriver from selenium.webdriver.remote.webelement import WebElement from ..utils.driver_utils import get_chrome_driver, try_find_element_func, try_find_element_tex...
35.301075
99
0.621383
b7ac1e1fdb54e1cb3bfb311a15847bdc89cae208
576
py
Python
backend/alembic/versions/d898dc181fa0_added_user_solution_failed_attemptsn.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2022-02-20T12:45:04.000Z
2022-02-20T12:45:04.000Z
backend/alembic/versions/d898dc181fa0_added_user_solution_failed_attemptsn.py
JamesNeumann/learning-by-annotations
c2b5e4b653eeb1c973aa5a7dad35ac8be18cb1ad
[ "MIT" ]
21
2021-11-01T10:13:56.000Z
2021-12-02T10:02:13.000Z
backend/alembic/versions/d898dc181fa0_added_user_solution_failed_attemptsn.py
jinnn-dev/patholearn
b4e6a18cfbf963e71640ed6cac3fc3a618a7ae15
[ "MIT" ]
1
2021-12-16T18:20:55.000Z
2021-12-16T18:20:55.000Z
"""Added user solution failed attemptsn Revision ID: d898dc181fa0 Revises: e2bc3f87f9c3 Create Date: 2021-10-11 22:36:52.245391 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = "d898dc181fa0" down_revision = "e2bc3f87f9c3" branch_labels = None depends_on = None ...
19.862069
65
0.694444
3dffd64c8a248f94d40a8eb9fe85eb994ed7c587
390
py
Python
camera.py
mberutti/smart-toilet
213b24dc3bc7faac4730b227f469c1d7193e527c
[ "MIT" ]
null
null
null
camera.py
mberutti/smart-toilet
213b24dc3bc7faac4730b227f469c1d7193e527c
[ "MIT" ]
8
2020-02-24T22:37:46.000Z
2020-04-30T20:20:56.000Z
camera.py
mberutti/smart-toilet
213b24dc3bc7faac4730b227f469c1d7193e527c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 24 16:24:05 2020 @author: mberutti """ class Camera: """ Class for managing the camera. """ def __init__(self): pass def capture(self): """ Method for capturing image. This is based on what camera is used and so it mu...
18.571429
76
0.538462
04bc1fa0e8ca077c2ae50d7731d0bee7302a826b
15,731
py
Python
photogrammetry_importer/importers/camera_utility.py
clayne/Blender-Addon-Photogrammetry-Importer
d964ef04cefde73320749cc346113e16be5bd73b
[ "MIT" ]
452
2019-05-01T21:45:17.000Z
2022-03-31T08:20:14.000Z
photogrammetry_importer/importers/camera_utility.py
clayne/Blender-Addon-Photogrammetry-Importer
d964ef04cefde73320749cc346113e16be5bd73b
[ "MIT" ]
38
2019-08-12T10:52:16.000Z
2022-03-28T19:33:20.000Z
photogrammetry_importer/importers/camera_utility.py
clayne/Blender-Addon-Photogrammetry-Importer
d964ef04cefde73320749cc346113e16be5bd73b
[ "MIT" ]
54
2019-05-12T15:44:11.000Z
2022-02-28T06:19:46.000Z
import os import bpy import colorsys from mathutils import Matrix from mathutils import Vector from photogrammetry_importer.blender_utility.object_utility import ( add_collection, add_obj, ) from photogrammetry_importer.opengl.utility import draw_coords from photogrammetry_importer.utility.timing_utility impo...
35.2713
91
0.667599
ab1896858ff2392dcb31de67148186b67da08a01
5,074
py
Python
docs/conf.py
lbdvriesGT/cardio
da6c478739bd254ccc04ee0ba327fd1610d07a42
[ "Apache-2.0" ]
1
2018-04-27T15:13:14.000Z
2018-04-27T15:13:14.000Z
docs/conf.py
phucynwa/cardio
67f8794381458424ad7b4d1b7832fb0f6937d008
[ "Apache-2.0" ]
null
null
null
docs/conf.py
phucynwa/cardio
67f8794381458424ad7b4d1b7832fb0f6937d008
[ "Apache-2.0" ]
1
2021-11-24T08:52:43.000Z
2021-11-24T08:52:43.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # CardIO documentation build configuration file, created by # hand on Tue Nov 9 12:49:55 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated fil...
27.726776
79
0.668703
a81673237c8a63e2d786f5e1c4f49141ab6b3a11
22,532
py
Python
python/dynamic_graph/sot/torque_control/identification/pos_ctrl/compress_adm_ctrl_data.py
nim65s/sot-torque-control
0277baa065e6addf16df804676d47597cf1b4b06
[ "BSD-2-Clause" ]
6
2017-11-01T20:14:53.000Z
2020-04-03T04:51:07.000Z
python/dynamic_graph/sot/torque_control/identification/pos_ctrl/compress_adm_ctrl_data.py
nim65s/sot-torque-control
0277baa065e6addf16df804676d47597cf1b4b06
[ "BSD-2-Clause" ]
52
2017-03-31T21:24:38.000Z
2021-11-03T08:27:46.000Z
python/dynamic_graph/sot/torque_control/identification/pos_ctrl/compress_adm_ctrl_data.py
nim65s/sot-torque-control
0277baa065e6addf16df804676d47597cf1b4b06
[ "BSD-2-Clause" ]
14
2017-04-06T20:03:27.000Z
2020-07-28T14:20:42.000Z
# -*- coding: utf-8 -*- """ Created on Mon Feb 23 09:02:21 2015 @author: adelpret q.shape""" import matplotlib.pyplot as plt import numpy as np import plot_utils as plut from compute_estimates_from_sensors import compute_delta_q_components, compute_estimates_from_sensors def plotForceTracking(time, f, fRef): m...
51.678899
119
0.619963
b6a42a69316b19003020a067394bf4ee6e3f6788
13,615
py
Python
jarviscli/CmdInterpreter.py
InEdited/Jarvis
68dbefde455e363bb88020409715032722302769
[ "MIT" ]
null
null
null
jarviscli/CmdInterpreter.py
InEdited/Jarvis
68dbefde455e363bb88020409715032722302769
[ "MIT" ]
null
null
null
jarviscli/CmdInterpreter.py
InEdited/Jarvis
68dbefde455e363bb88020409715032722302769
[ "MIT" ]
null
null
null
import signal from os import system from cmd import Cmd from time import ctime from platform import architecture, dist, release, system as sys from functools import partial import six from requests import ConnectionError from six.moves import input from colorama import Fore from PluginManager import PluginManager f...
35
111
0.601469
a165aec00f74c0f3eb320ca206a1ae23a6190127
1,962
py
Python
python3/eval-expr.py
Balu423/python
19207e38232d5049bd406e30a0e38e3f90c2449d
[ "MIT" ]
198
2015-03-25T20:35:07.000Z
2021-12-26T03:54:51.000Z
python3/eval-expr.py
Balu423/python
19207e38232d5049bd406e30a0e38e3f90c2449d
[ "MIT" ]
4
2015-03-25T22:19:41.000Z
2017-04-24T09:05:17.000Z
python3/eval-expr.py
Balu423/python
19207e38232d5049bd406e30a0e38e3f90c2449d
[ "MIT" ]
128
2015-03-29T09:27:27.000Z
2022-03-20T22:45:36.000Z
#!/usr/bin/env python3 __author__ = ['J. Sebastian', '[Brandon Amos](http://bamos.github.io)'] __date__ = '2013.08.01' """ A module to evaluate a mathematical expression using Python's AST. + Original by: J. Sebastian at http://stackoverflow.com/questions/2371436. + Modifications by: [Brandon Amos](http://bamos.gith...
32.163934
79
0.589195
547a69d1913d88487b8e3a1d59b752555047fc2c
1,345
py
Python
tests/importer/onnx/basic/test_sigmoid.py
annosoo/nncase
898bd4075a0f246bca7b62a912051af3d890aff4
[ "Apache-2.0" ]
1
2021-07-29T11:50:27.000Z
2021-07-29T11:50:27.000Z
tests/importer/onnx/basic/test_sigmoid.py
annosoo/nncase
898bd4075a0f246bca7b62a912051af3d890aff4
[ "Apache-2.0" ]
3
2021-05-27T06:08:30.000Z
2021-06-02T10:39:35.000Z
tests/importer/onnx/basic/test_sigmoid.py
annosoo/nncase
898bd4075a0f246bca7b62a912051af3d890aff4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019-2021 Canaan Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
26.372549
74
0.707807
144f87418a53087f140a8676260337e8987ba205
7,412
py
Python
exps/experimental/GeMOSA/baselines/slbm-nof.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
817
2020-01-15T00:23:41.000Z
2022-03-31T14:52:03.000Z
exps/experimental/GeMOSA/baselines/slbm-nof.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
77
2020-01-14T14:02:45.000Z
2022-03-25T07:06:02.000Z
exps/experimental/GeMOSA/baselines/slbm-nof.py
Joey61Liuyi/AutoDL-Projects
2092e144920e82d74753a7ac31e1890a150d41cf
[ "MIT" ]
176
2020-01-15T10:39:41.000Z
2022-03-31T04:24:53.000Z
##################################################### # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2021.04 # ##################################################### # python exps/GeMOSA/baselines/slbm-nof.py --env_version v1 --hidden_dim 16 --epochs 500 --init_lr 0.1 --device cuda # python exps/GeMOSA/baselines/slbm-nof.p...
32.508772
118
0.601457
0b40c666c348aa78b59052f7c64bef8d327d2849
626
py
Python
Bistro/manage.py
Dheer08/canopy
6b28ef1f638d4408e372536653d4959ba7defae0
[ "MIT" ]
null
null
null
Bistro/manage.py
Dheer08/canopy
6b28ef1f638d4408e372536653d4959ba7defae0
[ "MIT" ]
null
null
null
Bistro/manage.py
Dheer08/canopy
6b28ef1f638d4408e372536653d4959ba7defae0
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Bistro.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportE...
28.454545
73
0.682109
5f9dbfd63f4feb46c80c3eceefa0735508d1c8fb
22,554
py
Python
packages/eclipse/plugins/org.python.pydev_4.4.0.201510052309/pysrc/_pydev_imps/_pydev_BaseHTTPServer.py
liangazhou/django-rdp
cc5db1b12fff137f849254e0f153c1f9d99f08df
[ "Apache-2.0" ]
null
null
null
packages/eclipse/plugins/org.python.pydev_4.4.0.201510052309/pysrc/_pydev_imps/_pydev_BaseHTTPServer.py
liangazhou/django-rdp
cc5db1b12fff137f849254e0f153c1f9d99f08df
[ "Apache-2.0" ]
null
null
null
packages/eclipse/plugins/org.python.pydev_4.4.0.201510052309/pysrc/_pydev_imps/_pydev_BaseHTTPServer.py
liangazhou/django-rdp
cc5db1b12fff137f849254e0f153c1f9d99f08df
[ "Apache-2.0" ]
null
null
null
"""HTTP server base class. Note: the class in this module doesn't implement any HTTP request; see SimpleHTTPServer for simple implementations of GET, HEAD and POST (including CGI scripts). It does, however, optionally implement HTTP/1.1 persistent connections, as of version 0.3. Contents: - BaseHTTPRequestHandler: ...
37.279339
87
0.611776
6b400b7efcfd9edb1dbdcfed37630e4147158a46
11,784
py
Python
thelper/train/segm.py
sfoucher/thelper
235406f3166f03ba6eb77f4a7289188aebc9b2c4
[ "Apache-2.0" ]
null
null
null
thelper/train/segm.py
sfoucher/thelper
235406f3166f03ba6eb77f4a7289188aebc9b2c4
[ "Apache-2.0" ]
null
null
null
thelper/train/segm.py
sfoucher/thelper
235406f3166f03ba6eb77f4a7289188aebc9b2c4
[ "Apache-2.0" ]
null
null
null
"""Segmentation trainer/evaluator implementation module.""" import logging from typing import AnyStr # noqa: F401 import torch import torch.optim import thelper.concepts import thelper.typedefs as typ # noqa: F401 import thelper.utils from thelper.train.base import Trainer logger = logging.getLogger(__name__) @t...
60.430769
129
0.609131
b557607c4c5d644b2d01f6d20df2f5126312982d
18,292
py
Python
BiblioMeter_GUI/BiblioMeter_PageOne.py
LuDesmeuzes/BiblioMeter
60b2b14279ccd456ebfd1e51cc339b501ecb6421
[ "MIT" ]
null
null
null
BiblioMeter_GUI/BiblioMeter_PageOne.py
LuDesmeuzes/BiblioMeter
60b2b14279ccd456ebfd1e51cc339b501ecb6421
[ "MIT" ]
null
null
null
BiblioMeter_GUI/BiblioMeter_PageOne.py
LuDesmeuzes/BiblioMeter
60b2b14279ccd456ebfd1e51cc339b501ecb6421
[ "MIT" ]
null
null
null
__all__ = ['create_PageOne'] def _data_parsing(corpus_year, database_type, bibliometer_path): """ Description : Parses corpuses from wos or scopus (depending on the arg database_type using the function biblio_parser from BiblioAnalysis_Utils. Uses the following globals : - DIC_OUTIR_PARSING ...
43.243499
173
0.667013
03a2bc777931f8434c4b2ca73c8228c974c237f9
966
py
Python
packages/Mock/EffectPreview/EffectPreview.py
tommo/gii
03624a57cf74a07e38bfdc7f53c50bd926b7b5a7
[ "MIT" ]
7
2016-02-13T18:47:23.000Z
2020-07-03T13:47:49.000Z
packages/Mock/EffectPreview/EffectPreview.py
tommo/gii
03624a57cf74a07e38bfdc7f53c50bd926b7b5a7
[ "MIT" ]
1
2018-06-13T04:55:27.000Z
2021-11-05T05:52:51.000Z
packages/Mock/EffectPreview/EffectPreview.py
tommo/gii
03624a57cf74a07e38bfdc7f53c50bd926b7b5a7
[ "MIT" ]
4
2016-02-15T13:32:46.000Z
2019-12-12T17:22:31.000Z
from gii.core import * from gii.moai.MOAIEditCanvas import MOAIEditCanvas from gii.AssetEditor import AssetPreviewer from gii.qt.helpers import addWidgetWithLayout from PyQt4 import uic from PyQt4 import QtGui def _getModulePath( path ): import os.path return os.path.dirname( __f...
28.411765
76
0.733954
8b2d33dc9fa7bd4bc58f278d0fdd2853af2877bd
4,176
py
Python
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/application_gateway_web_application_firewall_configuration.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/application_gateway_web_application_firewall_configuration.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-mgmt-network/azure/mgmt/network/v2019_02_01/models/application_gateway_web_application_firewall_configuration.py
xiafu-msft/azure-sdk-for-python
4d9560cfd519ee60667f3cc2f5295a58c18625db
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
49.714286
119
0.681034
653c68400b8317a6b2bb95ed85f26040a9f1e07b
490
py
Python
inspector-pkg/src/shminspector/api/validator.py
sha1n/macos-devenv-dump-poc
be439ad4a0c0ac265fe62d44bded73eab1a0c31d
[ "MIT" ]
null
null
null
inspector-pkg/src/shminspector/api/validator.py
sha1n/macos-devenv-dump-poc
be439ad4a0c0ac265fe62d44bded73eab1a0c31d
[ "MIT" ]
null
null
null
inspector-pkg/src/shminspector/api/validator.py
sha1n/macos-devenv-dump-poc
be439ad4a0c0ac265fe62d44bded73eab1a0c31d
[ "MIT" ]
null
null
null
from abc import abstractmethod from enum import Enum from shminspector.api.context import Context class Status(Enum): OK = 0 WARNING = 1 ERROR = 2 NOT_FOUND = 3 UPGRADE_REQUIRED = 4 DOWNGRADE_REQUIRED = 5 class ValidationResult: def __init__(self, input_data, status: Status): se...
19.6
74
0.7
1112394e7dc9fa8b00fc24d2209943e4d07d6e62
20,700
py
Python
pysnmp-with-texts/FECLIENT827x-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/FECLIENT827x-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/FECLIENT827x-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module FECLIENT827x-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/FECLIENT827x-MIB # Produced by pysmi-0.3.4 at Wed May 1 13:13:40 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar ...
175.423729
1,758
0.777246
f448fb9b93a5ad2cc7cbc5be060b138d6bbbffd2
3,170
py
Python
src/streamlink/plugins/nimotv.py
TheDrHax/streamlink
4dfd0d516fd8484438389518985e3b5131b7a253
[ "BSD-2-Clause" ]
4
2020-10-17T06:35:39.000Z
2021-05-14T20:00:01.000Z
src/streamlink/plugins/nimotv.py
TheDrHax/streamlink
4dfd0d516fd8484438389518985e3b5131b7a253
[ "BSD-2-Clause" ]
null
null
null
src/streamlink/plugins/nimotv.py
TheDrHax/streamlink
4dfd0d516fd8484438389518985e3b5131b7a253
[ "BSD-2-Clause" ]
null
null
null
import logging import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import useragents, validate from streamlink.stream import HLSStream from streamlink.utils import parse_json log = logging.getLogger(__name__) @pluginmatcher(re.compile( r'https?://(?:www\.|m\.)?nimo\.tv/(?P<u...
30.190476
90
0.537855
4855f58f578e9efd191036ea922d711496fe0104
20,562
py
Python
Tests/ttLib/tables/C_O_L_R_test.py
gregdavill/fonttools
8ab6af03c89726cf80ca3c4b755ae1bd0038b5da
[ "Apache-2.0", "MIT" ]
null
null
null
Tests/ttLib/tables/C_O_L_R_test.py
gregdavill/fonttools
8ab6af03c89726cf80ca3c4b755ae1bd0038b5da
[ "Apache-2.0", "MIT" ]
74
2020-01-30T07:27:54.000Z
2021-08-03T05:47:17.000Z
Tests/ttLib/tables/C_O_L_R_test.py
gregdavill/fonttools
8ab6af03c89726cf80ca3c4b755ae1bd0038b5da
[ "Apache-2.0", "MIT" ]
1
2020-01-22T20:06:09.000Z
2020-01-22T20:06:09.000Z
from fontTools import ttLib from fontTools.misc.testTools import getXML, parseXML from fontTools.ttLib.tables.C_O_L_R_ import table_C_O_L_R_ import binascii import pytest COLR_V0_SAMPLE = ( (b"\x00\x00", "Version (0)"), (b"\x00\x01", "BaseGlyphRecordCount (1)"), ( b"\x00\x00\x00\x0e", "Of...
40.081871
155
0.542408
3093524b90d6362bf357ae76245d13fa3dccf0ab
1,653
py
Python
final_project/machinetranslation/translator.py
infspce/xzceb-flask_eng_fr
12226fc3fa7e4cf9681a09cd9260ca9b7db986c7
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
infspce/xzceb-flask_eng_fr
12226fc3fa7e4cf9681a09cd9260ca9b7db986c7
[ "Apache-2.0" ]
null
null
null
final_project/machinetranslation/translator.py
infspce/xzceb-flask_eng_fr
12226fc3fa7e4cf9681a09cd9260ca9b7db986c7
[ "Apache-2.0" ]
null
null
null
""" Create instance of IBM translator Define english to french and french to english translation functions """ import json import os from ibm_watson import LanguageTranslatorV3 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from dotenv import load_dotenv load_dotenv() apikey = os.environ['apikey'] url...
29.517857
100
0.727768
e78980e7835c170d3f14ba69f9e6bae172ebf682
1,091
py
Python
test/rep.py
Qiaochu-Song/FLAML
28511340528dfc9def29862f5076b4516eb7305f
[ "MIT" ]
null
null
null
test/rep.py
Qiaochu-Song/FLAML
28511340528dfc9def29862f5076b4516eb7305f
[ "MIT" ]
1
2021-12-28T20:47:54.000Z
2021-12-28T20:47:54.000Z
test/rep.py
Qiaochu-Song/FLAML
28511340528dfc9def29862f5076b4516eb7305f
[ "MIT" ]
null
null
null
from flaml.data import load_openml_dataset from flaml.ml import ExtraTreesEstimator from flaml import AutoML X_train, X_test, y_train, y_test = load_openml_dataset(dataset_id=1169, data_dir="./") X_train = X_train.iloc[:1000] y_train = y_train.iloc[:1000] class ExtraTreesEstimatorSeeded(ExtraTreesEstimator): """...
29.486486
86
0.704858
753ed5a53f5630a2ab7e9e6c9499e0403e294f86
692
py
Python
venv/bin/rstpep2html.py
abualrubbaraa/Baraa-Validator
bff356f4e35ea7de66de799e7f063c383e298d1f
[ "MIT" ]
null
null
null
venv/bin/rstpep2html.py
abualrubbaraa/Baraa-Validator
bff356f4e35ea7de66de799e7f063c383e298d1f
[ "MIT" ]
null
null
null
venv/bin/rstpep2html.py
abualrubbaraa/Baraa-Validator
bff356f4e35ea7de66de799e7f063c383e298d1f
[ "MIT" ]
null
null
null
#!/home/baraa/PosRocket/venv/bin/python3 # $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML from PEP (Python Enhancement Proposal) docume...
26.615385
76
0.728324
f65ce5296d6646eb1a19650a0e63a943b415a52b
1,663
py
Python
make-jwks.py
gyorgybalazsi/ex-secure-daml-infra
487ed79b1a62f0bd543ee7213e63337245dcbcb7
[ "0BSD" ]
6
2020-10-22T15:33:00.000Z
2021-09-28T08:59:36.000Z
make-jwks.py
gyorgybalazsi/ex-secure-daml-infra
487ed79b1a62f0bd543ee7213e63337245dcbcb7
[ "0BSD" ]
2
2021-03-23T15:06:53.000Z
2021-08-18T20:57:43.000Z
make-jwks.py
gyorgybalazsi/ex-secure-daml-infra
487ed79b1a62f0bd543ee7213e63337245dcbcb7
[ "0BSD" ]
4
2021-02-06T16:03:02.000Z
2021-04-16T02:59:34.000Z
#!/usr/local/bin/python # Copyright (c) 2020 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. # SPDX-License-Identifier: Apache-2.0 import sys import json import base64 from jwcrypto import jwk,jwt, jws def main(domain, certificate, signing_der, intermediate_der, root_der): key : "jwcr...
31.980769
144
0.684305
b09a32ea492e5a286c52e8728a6c0f24b28e6a50
1,781
py
Python
solutions/S0_TicTacToe.py
pabair/rl-course-ss22
e9efe0378d73094d8f41c93173b9531f50fb8f77
[ "MIT" ]
null
null
null
solutions/S0_TicTacToe.py
pabair/rl-course-ss22
e9efe0378d73094d8f41c93173b9531f50fb8f77
[ "MIT" ]
null
null
null
solutions/S0_TicTacToe.py
pabair/rl-course-ss22
e9efe0378d73094d8f41c93173b9531f50fb8f77
[ "MIT" ]
null
null
null
import random game_state = ["_" for i in range(0, 9)] def print_board(): print(game_state[0:3]) print(game_state[3:6]) print(game_state[6:9]) def opponents_move(): if "_" not in game_state: return r = random.randint(0, 8) while game_state[r] != "_": r = random.randint(0, 8) ...
23.434211
88
0.540707
2778ab1e4866466d306afc95c70b7618b0128dd3
5,095
py
Python
.ycm_extra_conf.py
Arjung27/Irona
456d6cbddafbdca5ba6a8a862614e07a536bdb17
[ "MIT" ]
1
2021-06-15T16:53:47.000Z
2021-06-15T16:53:47.000Z
.ycm_extra_conf.py
Arjung27/Irona
456d6cbddafbdca5ba6a8a862614e07a536bdb17
[ "MIT" ]
null
null
null
.ycm_extra_conf.py
Arjung27/Irona
456d6cbddafbdca5ba6a8a862614e07a536bdb17
[ "MIT" ]
3
2019-11-25T16:45:07.000Z
2021-11-27T02:56:43.000Z
# Generated by YCM Generator at 2016-10-18 10:13:21.653665 # This file is NOT licensed under the GPLv3, which is the license for the rest # of YouCompleteMe. # # Here's the license text for this file: # # This is free and unencumbered software released into the public domain. # # Anyone is free to copy, modify, publi...
34.425676
83
0.718155
2ae6e736e81ca167b1ce180df5c6afb09fb11452
493
py
Python
practice13.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
practice13.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
practice13.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
from turtle import Turtle import random #connected with practice11.py class Food(Turtle): def __init__(self) -> None: super().__init__() self.shape("circle") self.penup() self.shapesize(0.5,0.5) self.color("red") self.speed("fast...
29
67
0.557809
840d692c25feba3a374c60487aaba5a05c2f5e12
1,587
py
Python
opencv/sources/modules/ml/misc/python/test/test_goodfeatures.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
opencv/sources/modules/ml/misc/python/test/test_goodfeatures.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
opencv/sources/modules/ml/misc/python/test/test_goodfeatures.py
vrushank-agrawal/opencv-x64-cmake
3f9486510d706c8ac579ac82f5d58f667f948124
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Python 2/3 compatibility from __future__ import print_function import cv2 as cv import numpy as np from tests_common import NewOpenCVTests class TestGoodFeaturesToTrack_test(NewOpenCVTests): def test_goodFeaturesToTrack(self): arr = self.get_sample('samples/data/lena....
38.707317
123
0.603655
9b777caf15d8075a14e56ea40b220ef208ece6ff
1,034
py
Python
tests/unit/test_params.py
Honzys/dvc
8205c84077a7e07b48c768d07710108078a78149
[ "Apache-2.0" ]
null
null
null
tests/unit/test_params.py
Honzys/dvc
8205c84077a7e07b48c768d07710108078a78149
[ "Apache-2.0" ]
null
null
null
tests/unit/test_params.py
Honzys/dvc
8205c84077a7e07b48c768d07710108078a78149
[ "Apache-2.0" ]
null
null
null
import os from dvc.utils.serialize import dumps_yaml def test_params_order(tmp_dir, dvc, dummy_stage): tmp_dir.gen( { "params.yaml": dumps_yaml({"p1": 1}), "p1.yaml": dumps_yaml({"p2": 1}), "sub": {"p2.yaml": dumps_yaml({"p3": 1})}, } ) p2_path = os.pa...
29.542857
77
0.601547
3d7631cfbca60e87f8e149b42624e00c913f7dbb
258
py
Python
zxc/mainapp/admin.py
shadowsmain/zxc123
d37cf145b266a00d016f51292c5c8a7c7a61ea87
[ "MIT" ]
2
2020-10-18T16:59:22.000Z
2020-10-18T21:03:22.000Z
zxc/mainapp/admin.py
shadowsmain/zxc123
d37cf145b266a00d016f51292c5c8a7c7a61ea87
[ "MIT" ]
null
null
null
zxc/mainapp/admin.py
shadowsmain/zxc123
d37cf145b266a00d016f51292c5c8a7c7a61ea87
[ "MIT" ]
null
null
null
from django.contrib import admin from mainapp.models import Category, Fantasy, Shounen, Cyberpank, Thriller admin.site.register(Category) admin.site.register(Fantasy) admin.site.register(Shounen) admin.site.register(Cyberpank) admin.site.register(Thriller)
28.666667
74
0.829457
b00acbd19eb8bc17b5d73c3d211f512a1b4ed8d0
7,412
py
Python
ibm_cloud_sdk_core/iam_token_manager.py
rmkeezer/python-sdk-core
a9e4806d633a856ff0b480389d0a6857970e8c2b
[ "Apache-2.0" ]
null
null
null
ibm_cloud_sdk_core/iam_token_manager.py
rmkeezer/python-sdk-core
a9e4806d633a856ff0b480389d0a6857970e8c2b
[ "Apache-2.0" ]
null
null
null
ibm_cloud_sdk_core/iam_token_manager.py
rmkeezer/python-sdk-core
a9e4806d633a856ff0b480389d0a6857970e8c2b
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # Copyright 2019 IBM 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 applicabl...
43.857988
119
0.658527
2d44649d59428203c5a74493412d17181a49d6ec
1,735
py
Python
examples/ad_manager/v201802/user_service/create_users.py
khanhnhk/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
1
2021-12-30T15:21:42.000Z
2021-12-30T15:21:42.000Z
examples/ad_manager/v201802/user_service/create_users.py
benlistyg/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
null
null
null
examples/ad_manager/v201802/user_service/create_users.py
benlistyg/googleads-python-lib
1e882141b8eb663b55dd582ce0f4fbf3cd2f672d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
29.913793
74
0.713545
a0812c2237029da245ed6dc89abe6493a9cfc122
906
py
Python
Gfg/Python/search_elements_in_a_matrix.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
289
2021-05-15T22:56:03.000Z
2022-03-28T23:13:25.000Z
Gfg/Python/search_elements_in_a_matrix.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
1,812
2021-05-09T13:49:58.000Z
2022-01-15T19:27:17.000Z
Gfg/Python/search_elements_in_a_matrix.py
abdzitter/Daily-Coding-DS-ALGO-Practice
26ddbf7a3673608039a07d26d812fce31b69871a
[ "MIT" ]
663
2021-05-09T16:57:58.000Z
2022-03-27T14:15:07.000Z
class Solution: def searchMatrix(self, matrix, target): output = False if len(matrix) == 1 and len(matrix[0]) == 1: if target == matrix[0][0]:return True else:return False j = len(matrix[0]) - 1 for i in range(len(matrix)): i...
30.2
55
0.461369
9caa2b4985c35364293421671570810129cf74c6
1,651
py
Python
src/foreign_if/python/examples/graph_bfs.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
63
2018-06-21T14:11:59.000Z
2022-03-30T11:24:36.000Z
src/foreign_if/python/examples/graph_bfs.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
5
2018-09-22T14:01:53.000Z
2021-12-27T16:11:05.000Z
src/foreign_if/python/examples/graph_bfs.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
12
2018-08-23T15:59:44.000Z
2022-02-20T06:47:22.000Z
import sys import numpy as np from frovedis.exrpc.server import * import networkx as nx import frovedis.graph as fnx # initializing the Frovedis server argvs = sys.argv argc = len(argvs) if (argc < 2): print ('Please give frovedis_server calling command as the first argument \n(e.g. "mpirun -np 2 /opt/nec/frovedis...
40.268293
144
0.760145
a066889feb8ffa55aef7ba1eb7127a74d42c7726
37,559
py
Python
IBMQuantumExperience/IBMQuantumExperience.py
vraoresearch/qiskit-api-py
3b2d49023df08aa7f25ea0a2e151765734b043ff
[ "Apache-2.0" ]
2
2022-01-11T19:21:09.000Z
2022-01-11T19:52:44.000Z
IBMQuantumExperience/IBMQuantumExperience.py
viannaandreBR/qiskit-api-py
3b2d49023df08aa7f25ea0a2e151765734b043ff
[ "Apache-2.0" ]
null
null
null
IBMQuantumExperience/IBMQuantumExperience.py
viannaandreBR/qiskit-api-py
3b2d49023df08aa7f25ea0a2e151765734b043ff
[ "Apache-2.0" ]
1
2020-12-13T23:04:36.000Z
2020-12-13T23:04:36.000Z
""" IBM Quantum Experience Python API Client """ try: import simplejson as json except ImportError: import json import time import logging from datetime import datetime import sys import traceback import requests import re from requests_ntlm import HttpNtlmAuth # from .HTTPProxyDigestAuth import HTTPProxyDi...
37.596597
102
0.54855
90e3cfb1af2f0cdb465ef2619f79e93f0fc5269f
6,406
py
Python
discovery-infra/bm_inventory_api.py
nmagnezi/assisted-test-infra
a31dc4350d77681038a16c05d9a1e09fa992578a
[ "Apache-2.0" ]
null
null
null
discovery-infra/bm_inventory_api.py
nmagnezi/assisted-test-infra
a31dc4350d77681038a16c05d9a1e09fa992578a
[ "Apache-2.0" ]
null
null
null
discovery-infra/bm_inventory_api.py
nmagnezi/assisted-test-infra
a31dc4350d77681038a16c05d9a1e09fa992578a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import json import consts import utils import shutil import waiting from bm_inventory_client import ApiClient, Configuration, api, models from logger import log class InventoryClient(object): def __init__(self, inventory_url): self.inventory_url = inventory_url configs = C...
39.060976
88
0.678583
ec1be8df79cdee4fd5d9143962fe62bda7eda7c8
811
py
Python
qplex_smac/smac/bin/map_list.py
LAMDA-RL/MAIC
715ab22b531f9a6867276f85e1d8c1342d8b6d00
[ "Apache-2.0" ]
666
2019-01-15T18:41:58.000Z
2022-03-30T21:41:34.000Z
qplex_smac/smac/bin/map_list.py
LAMDA-RL/MAIC
715ab22b531f9a6867276f85e1d8c1342d8b6d00
[ "Apache-2.0" ]
76
2019-01-16T00:46:35.000Z
2022-03-31T10:30:08.000Z
qplex_smac/smac/bin/map_list.py
LAMDA-RL/MAIC
715ab22b531f9a6867276f85e1d8c1342d8b6d00
[ "Apache-2.0" ]
189
2019-01-15T17:22:26.000Z
2022-03-24T07:07:54.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from smac.env.starcraft2.maps import smac_maps from pysc2 import maps as pysc2_maps def main(): smac_map_registry = smac_maps.get_smac_map_registry() all_maps = pysc2_maps.get_maps() print("{:<15...
27.965517
79
0.578298
93eb42db587d9165e5c0ff743e3f76aac2287bb0
1,572
py
Python
nipype/interfaces/spm/tests/test_auto_ThresholdStatistics.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
7
2017-02-17T08:54:26.000Z
2022-03-10T20:57:23.000Z
nipype/interfaces/spm/tests/test_auto_ThresholdStatistics.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
1
2016-04-25T15:07:09.000Z
2016-04-25T15:07:09.000Z
nipype/interfaces/spm/tests/test_auto_ThresholdStatistics.py
moloney/nipype
a7a9c85c79cb1412ba03406074f83200447ef50b
[ "Apache-2.0" ]
2
2017-09-23T16:22:00.000Z
2019-08-01T14:18:52.000Z
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT from __future__ import unicode_literals from ..model import ThresholdStatistics def test_ThresholdStatistics_inputs(): input_map = dict( contrast_index=dict(mandatory=True, ), extent_threshold=dict(usedefault=True, ), height_threshold=d...
30.230769
67
0.602417
e2346cf0d9da627023486ea2a46cb090c26829f3
4,666
py
Python
starthinker/task/sdf/run.py
dvandra/starthinker
07a8c1f8bf3c7493b1833d54ca0acc9305a04bc9
[ "Apache-2.0" ]
1
2019-07-02T18:25:25.000Z
2019-07-02T18:25:25.000Z
starthinker/task/sdf/run.py
dvandra/starthinker
07a8c1f8bf3c7493b1833d54ca0acc9305a04bc9
[ "Apache-2.0" ]
null
null
null
starthinker/task/sdf/run.py
dvandra/starthinker
07a8c1f8bf3c7493b1833d54ca0acc9305a04bc9
[ "Apache-2.0" ]
null
null
null
########################################################################### # # Copyright 2018 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 # # https://www.apache.org/...
32.402778
141
0.65195
75ee9324ee2edd88255a3cad13713bd647b9d5d0
14,803
py
Python
tools/cpuunclaimed.py
Birch-san/bcc
b374be886b555ead8feaad9ec2d86ccd39d748dd
[ "Apache-2.0" ]
1
2021-07-07T12:38:15.000Z
2021-07-07T12:38:15.000Z
tools/cpuunclaimed.py
Birch-san/bcc
b374be886b555ead8feaad9ec2d86ccd39d748dd
[ "Apache-2.0" ]
null
null
null
tools/cpuunclaimed.py
Birch-san/bcc
b374be886b555ead8feaad9ec2d86ccd39d748dd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # @lint-avoid-python-3-compatibility-imports # # cpuunclaimed Sample CPU run queues and calculate unclaimed idle CPU. # For Linux, uses BCC, eBPF. # # This samples the length of the run queues and determine when there are idle # CPUs, yet queued threads waiting their turn. Report the ...
35.929612
90
0.625008
641d6e3b404acbf3357759290175b196af2a5baa
7,311
py
Python
core/dbs/voc.py
tanik12/CornerNet-Lite
9c56c368747481809727e46d844fe189ebbb6659
[ "BSD-3-Clause" ]
null
null
null
core/dbs/voc.py
tanik12/CornerNet-Lite
9c56c368747481809727e46d844fe189ebbb6659
[ "BSD-3-Clause" ]
null
null
null
core/dbs/voc.py
tanik12/CornerNet-Lite
9c56c368747481809727e46d844fe189ebbb6659
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2019/8/27 10:48 # @Author :Rock # @File : voc.py # just for object detection import os import json import numpy as np from .detection import DETECTION from ..paths import get_file_path import xml.etree.ElementTree as ET import json class VOC(DETECTION): def __init__...
38.277487
142
0.519628
6e5e0675b6525aa8f73b50e6330dc72967d3d5d5
1,408
py
Python
ca/forms.py
SvenRoederer/freifunk-berlin-ca.berlin.freifunk.net
63f73e8cbf70c6e10c26f9aee066d76c66bbe48e
[ "MIT" ]
6
2015-09-16T13:33:02.000Z
2018-10-13T18:49:58.000Z
ca/forms.py
SvenRoederer/freifunk-berlin-ca.berlin.freifunk.net
63f73e8cbf70c6e10c26f9aee066d76c66bbe48e
[ "MIT" ]
61
2015-09-17T10:58:29.000Z
2019-12-17T23:37:56.000Z
ca/forms.py
sys3175/ca.berlin.freifunk.net
ad21564a006ffe4c75e268b0d6d3c9143c2502d5
[ "MIT" ]
12
2015-10-09T07:34:21.000Z
2018-10-12T19:01:20.000Z
# -*- coding: utf-8 -*- from wtforms import Form, StringField, validators, ValidationError from ca.models import Request from ca import db def id_does_not_exist(form, field): if db.session.query(Request.id).filter(Request.id == field.data).count(): raise ValidationError('Id already exists.') class Req...
29.957447
101
0.49929
d0072caaa5d975770bdfec1ee767dc24159e46c8
7,544
py
Python
conda/gateways/disk/read.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
null
null
null
conda/gateways/disk/read.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
null
null
null
conda/gateways/disk/read.py
astrojuanlu/conda
badf048f5e8287250ef1940249a048f9bde08477
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals from base64 import b64encode from collections import namedtuple from errno import ENOENT from functools import partial import hashlib from itertools import chain import json from logging import getLogger from os ...
35.252336
96
0.646341
992dd5c67c0191dc2cdd4a2cc3e379b4a1ea6f42
1,840
py
Python
Discrete_Algo/networks/actor_critic.py
NemoHimma/ZeroRL
c37cb3105981b7d9331749941df3e3f449976fde
[ "MIT" ]
null
null
null
Discrete_Algo/networks/actor_critic.py
NemoHimma/ZeroRL
c37cb3105981b7d9331749941df3e3f449976fde
[ "MIT" ]
null
null
null
Discrete_Algo/networks/actor_critic.py
NemoHimma/ZeroRL
c37cb3105981b7d9331749941df3e3f449976fde
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F class CNNActorCritic(nn.Module): def __init__(self, input_shape, num_actions): super(CNNActorCritic, self).__init__() # Initialize conv layer weight orthogonally with relu gain and bias 0 init_ = lambda m: self.init(m , ...
32.280702
128
0.631522
4462c97437bc2633fd00f625e98649576bec2677
908
py
Python
neighbours/migrations/0004_auto_20190529_1722.py
lizKimita/Neighbourhoods
fb0ab33f8107550ddb17a3a16206cf47dc0c2401
[ "MIT" ]
null
null
null
neighbours/migrations/0004_auto_20190529_1722.py
lizKimita/Neighbourhoods
fb0ab33f8107550ddb17a3a16206cf47dc0c2401
[ "MIT" ]
2
2021-03-19T00:56:37.000Z
2021-06-08T19:56:50.000Z
neighbours/migrations/0004_auto_20190529_1722.py
lizKimita/Neighbourhoods
fb0ab33f8107550ddb17a3a16206cf47dc0c2401
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-05-29 14:22 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('neighbours', '0003_auto_2019...
28.375
121
0.634361
d2350eae5c2528bd617d839dd22d7d78af2a4510
149
py
Python
Round #544 (Div 3)/A.py
julianferres/Codeforces
ac80292a4d53b8078fc1a85e91db353c489555d9
[ "MIT" ]
4
2020-01-31T15:49:25.000Z
2020-07-07T11:44:03.000Z
Round #544 (Div 3)/A.py
julianferres/CodeForces
14e8369e82a2403094183d6f7824201f681c9f65
[ "MIT" ]
null
null
null
Round #544 (Div 3)/A.py
julianferres/CodeForces
14e8369e82a2403094183d6f7824201f681c9f65
[ "MIT" ]
null
null
null
a , b = map(int , input().split(':')) c , d = map(int , input().split(':')) aux = (60*(a+c)+b+d)//2 print('{:02d}:{:02d}'.format((aux)//60,aux%60))
24.833333
47
0.489933
e47a2085cb2f19f18ce09905b4977af2c034253b
195
py
Python
code/readings-02.py
cac-staff/summer-school-2016-Python
e0419ddf02e6340552ea994a55e8c11481d5aa13
[ "CC-BY-4.0" ]
null
null
null
code/readings-02.py
cac-staff/summer-school-2016-Python
e0419ddf02e6340552ea994a55e8c11481d5aa13
[ "CC-BY-4.0" ]
null
null
null
code/readings-02.py
cac-staff/summer-school-2016-Python
e0419ddf02e6340552ea994a55e8c11481d5aa13
[ "CC-BY-4.0" ]
null
null
null
import sys import numpy def main(): script = sys.argv[0] filename = sys.argv[1] data = numpy.loadtxt(filename, delimiter=',') for m in data.mean(axis=1): print m main()
16.25
49
0.610256
1e6a5c6969af8502f3b39aab6f445a5ca3d5838f
1,735
py
Python
tests/expected/coverage.py
div72/py2many
60277bc13597bd32d078b88a7390715568115fc6
[ "MIT" ]
345
2021-01-28T17:33:08.000Z
2022-03-25T16:07:56.000Z
tests/expected/coverage.py
mkos11/py2many
be6cfaad5af32c43eb24f182cb20ad63b979d4ef
[ "MIT" ]
291
2021-01-31T13:15:06.000Z
2022-03-23T21:28:49.000Z
tests/expected/coverage.py
mkos11/py2many
be6cfaad5af32c43eb24f182cb20ad63b979d4ef
[ "MIT" ]
23
2021-02-09T17:15:03.000Z
2022-02-03T05:57:44.000Z
from typing import Callable, Dict, List, Set, Optional from ctypes import c_int8 as i8, c_int16 as i16, c_int32 as i32, c_int64 as i64 from ctypes import c_uint8 as u8, c_uint16 as u16, c_uint32 as u32, c_uint64 as u64 import sys from typing import List def inline_pass(): pass def inline_ellipsis(): ... d...
19.715909
83
0.518732
dbcd25faa2999ede8e6293b8b0771ba32577ba99
7,937
py
Python
oscar/lib/python2.7/site-packages/pip/commands/wheel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/commands/wheel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
oscar/lib/python2.7/site-packages/pip/commands/wheel.py
sainjusajan/django-oscar
466e8edc807be689b0a28c9e525c8323cc48b8e1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import import logging import os import warnings from pip.basecommand import RequirementCommand from pip.exceptions import CommandError, PreviousBuildDirError from pip.req import RequirementSet from pip.utils import import_or_raise from pip.utils.build...
37.976077
80
0.568225
2821b103c54ff96c36f8c0d237986058bc2d9e96
795
py
Python
tests/testapp/widgets/migrations/0001_initial.py
tuky/django-map-widgets
5db0652640c404223142c00224cd83dd9bd0a9e4
[ "MIT" ]
null
null
null
tests/testapp/widgets/migrations/0001_initial.py
tuky/django-map-widgets
5db0652640c404223142c00224cd83dd9bd0a9e4
[ "MIT" ]
null
null
null
tests/testapp/widgets/migrations/0001_initial.py
tuky/django-map-widgets
5db0652640c404223142c00224cd83dd9bd0a9e4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-14 22:37 from __future__ import unicode_literals import django.contrib.gis.db.models.fields from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migra...
29.444444
114
0.61761
dee7764226ef2b964e10aeb2648146f394472703
7,159
py
Python
hal/labeler/decoders.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
hal/labeler/decoders.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
hal/labeler/decoders.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research 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 applicab...
34.418269
80
0.691996
4b1a11bc78dfb05ef0abde7010aab2f8cb1f634e
6,719
py
Python
aqt/jax/imagenet/configs/base_config.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
23,901
2018-10-04T19:48:53.000Z
2022-03-31T21:27:42.000Z
aqt/jax/imagenet/configs/base_config.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
891
2018-11-10T06:16:13.000Z
2022-03-31T10:42:34.000Z
aqt/jax/imagenet/configs/base_config.py
DionysisChristopoulos/google-research
7f59ef421beef32ca16c2a7215be74f7eba01a0f
[ "Apache-2.0" ]
6,047
2018-10-12T06:31:02.000Z
2022-03-31T13:59:28.000Z
# coding=utf-8 # Copyright 2021 The Google Research 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 applicab...
34.45641
86
0.724066
45b7211424a9785f1900fd8d9b5eb9d52b78404d
11,241
py
Python
dimod/generators/gates.py
AkashNarayanan/dimod
5d4a61cd13be7f126992c5e7f905c293399b9817
[ "Apache-2.0" ]
101
2017-08-30T20:08:46.000Z
2022-03-23T23:40:32.000Z
dimod/generators/gates.py
AkashNarayanan/dimod
5d4a61cd13be7f126992c5e7f905c293399b9817
[ "Apache-2.0" ]
862
2017-09-27T19:56:43.000Z
2022-03-30T18:00:43.000Z
dimod/generators/gates.py
AkashNarayanan/dimod
5d4a61cd13be7f126992c5e7f905c293399b9817
[ "Apache-2.0" ]
78
2017-09-13T23:01:10.000Z
2022-02-22T02:40:40.000Z
# Copyright 2021 D-Wave Systems 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...
36.26129
108
0.606619
729d8f7ed39be5cbd00b5a617461ad5ff1487743
8,919
py
Python
examples/faster-rcnn/tests/test_proposal_layer.py
rohitbhio/neon
4fb5ff6a4b622facfb07b28da94b992159aac8cc
[ "Apache-2.0" ]
1
2020-12-30T10:13:41.000Z
2020-12-30T10:13:41.000Z
examples/faster-rcnn/tests/test_proposal_layer.py
rohitbhio/neon
4fb5ff6a4b622facfb07b28da94b992159aac8cc
[ "Apache-2.0" ]
null
null
null
examples/faster-rcnn/tests/test_proposal_layer.py
rohitbhio/neon
4fb5ff6a4b622facfb07b28da94b992159aac8cc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # ---------------------------------------------------------------------------- # Copyright 2016 Nervana Systems 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 # # ...
40.540909
98
0.652427
c9a9ac0066164d49ce50ff84686e62077507d572
838
py
Python
dataOps/confidenceDistribution.py
kiwipeace01/Sample
60f760fefb3c872925ad5d06acfd64c32c304d29
[ "MIT" ]
1
2022-03-26T19:17:07.000Z
2022-03-26T19:17:07.000Z
dataOps/confidenceDistribution.py
kiwipeace01/Sample
60f760fefb3c872925ad5d06acfd64c32c304d29
[ "MIT" ]
null
null
null
dataOps/confidenceDistribution.py
kiwipeace01/Sample
60f760fefb3c872925ad5d06acfd64c32c304d29
[ "MIT" ]
5
2020-11-12T22:17:38.000Z
2021-12-30T04:24:55.000Z
import json import matplotlib.pyplot as plt import seaborn as sns #load json file with open('11-11-2020Test1.json') as f: data = json.load(f) groundtruth = [1,1,1,1,1,1,1,0,0,0,0,0,0,0] correctDist = [] classes = [] for i in range(len(data)): correct = 0 for j in range(14): response = data[i][str...
23.942857
68
0.624105
9da08d4db70fc469bdb4c5776c45d693e3868d0a
9,980
py
Python
env/lib/python2.7/site-packages/twilio/rest/preview/bulk_exports/export_configuration.py
jlwysf/onduty
20d90583a6996d037912af08eb29a6d6fa06bf66
[ "MIT" ]
null
null
null
env/lib/python2.7/site-packages/twilio/rest/preview/bulk_exports/export_configuration.py
jlwysf/onduty
20d90583a6996d037912af08eb29a6d6fa06bf66
[ "MIT" ]
null
null
null
env/lib/python2.7/site-packages/twilio/rest/preview/bulk_exports/export_configuration.py
jlwysf/onduty
20d90583a6996d037912af08eb29a6d6fa06bf66
[ "MIT" ]
null
null
null
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource fr...
30.802469
99
0.640782
e6df75973924b4e28c97a5f1dcc7c98bbbc9c9d3
3,870
py
Python
test/functional/mock_box/util/chaos_utils.py
takeontom/box-python-sdk
4a748077abca6cb54b7fd78c616daab9479ac580
[ "Apache-2.0" ]
367
2015-02-10T05:55:45.000Z
2022-03-16T23:39:58.000Z
test/functional/mock_box/util/chaos_utils.py
takeontom/box-python-sdk
4a748077abca6cb54b7fd78c616daab9479ac580
[ "Apache-2.0" ]
686
2015-02-10T01:21:28.000Z
2022-03-31T11:40:22.000Z
test/functional/mock_box/util/chaos_utils.py
takeontom/box-python-sdk
4a748077abca6cb54b7fd78c616daab9479ac580
[ "Apache-2.0" ]
260
2015-02-16T17:35:06.000Z
2022-03-20T17:45:28.000Z
# coding: utf-8 from __future__ import absolute_import, unicode_literals from functools import wraps import json from time import sleep from bottle import template import six from test.functional.mock_box.util.http_utils import abort try: import jsonpatch except ValueError: # jsonpatch==1.14 on Python 3.6...
34.247788
127
0.655814
675641885207944773c89cbc59ef0d503c33fde7
1,123
py
Python
pretalx_orcid/signals.py
pretalx/pretalx-orcid
a10adf5bf5579bd7818db7697d49176114c9714e
[ "Apache-2.0" ]
1
2020-02-07T12:32:15.000Z
2020-02-07T12:32:15.000Z
pretalx_orcid/signals.py
pretalx/pretalx-orcid
a10adf5bf5579bd7818db7697d49176114c9714e
[ "Apache-2.0" ]
4
2019-11-26T04:02:02.000Z
2022-03-06T02:06:54.000Z
pretalx_orcid/signals.py
pretalx/pretalx-orcid
a10adf5bf5579bd7818db7697d49176114c9714e
[ "Apache-2.0" ]
null
null
null
from django.dispatch import receiver from django.urls import reverse from django.utils.translation import gettext_lazy as _ from pretalx.cfp.signals import cfp_steps from pretalx.orga.signals import activate_event, nav_event_settings @receiver(cfp_steps) def orcid_cfp_steps(sender, **kwargs): from .views import O...
28.794872
90
0.65984
4d3867d8d70aec406429390222736d1d21b0fceb
183
py
Python
makeup_service/server/common.py
Art95/makeup_service
b3c2dc2845ac52925a6535d4454ea6cd7c1aa4c8
[ "MIT" ]
1
2021-05-15T12:20:20.000Z
2021-05-15T12:20:20.000Z
makeup_service/server/common.py
Art95/makeup_service
b3c2dc2845ac52925a6535d4454ea6cd7c1aa4c8
[ "MIT" ]
null
null
null
makeup_service/server/common.py
Art95/makeup_service
b3c2dc2845ac52925a6535d4454ea6cd7c1aa4c8
[ "MIT" ]
3
2021-02-16T08:49:13.000Z
2022-02-14T13:56:15.000Z
import os from pathlib import Path def get_data_folder(): root_folder = Path(__file__).parent.parent data_folder = os.path.join(root_folder, 'data') return data_folder
18.3
51
0.737705
0a9feb8ca4e22d1078463ae59015a083f98e72ab
1,652
py
Python
js2c/codegen/type_cache.py
Omcsesz/json_schema_to_c
f3f01740edb016cbde8f53d9c61e55f846771981
[ "MIT" ]
null
null
null
js2c/codegen/type_cache.py
Omcsesz/json_schema_to_c
f3f01740edb016cbde8f53d9c61e55f846771981
[ "MIT" ]
null
null
null
js2c/codegen/type_cache.py
Omcsesz/json_schema_to_c
f3f01740edb016cbde8f53d9c61e55f846771981
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # MIT License # # Copyright (c) 2020 Alex Badics # # 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 u...
41.3
132
0.725182
af3767cc95df146208ec09fa03310c419ef26291
9,001
py
Python
utils/server.py
insane2kill/10-man-bot
a3c0916483e9f466ea60c504594c9f516171c100
[ "MIT" ]
34
2020-09-07T04:49:54.000Z
2022-03-13T21:00:53.000Z
utils/server.py
insane2kill/10-man-bot
a3c0916483e9f466ea60c504594c9f516171c100
[ "MIT" ]
101
2020-09-10T09:05:58.000Z
2022-01-13T03:21:49.000Z
utils/server.py
insane2kill/10-man-bot
a3c0916483e9f466ea60c504594c9f516171c100
[ "MIT" ]
18
2020-08-18T11:09:57.000Z
2022-02-23T23:35:36.000Z
import discord import logging import os import pprint import socket import traceback import uuid import valve.rcon from aiohttp import web from json import JSONDecodeError from logging.config import fileConfig from typing import List, Union from utils.csgo_server import CSGOServer class WebServer: def __init__(s...
45.231156
133
0.531052
1e14bcb62b776852f124caede98d282620357fd3
3,543
py
Python
PythonLinearNonlinearControl/plotters/plot_objs.py
Geonhee-LEE/PythonLinearNonlinearControl
2a2467098108641483778c09ceb7906cb49f6cee
[ "MIT" ]
425
2020-03-31T07:17:48.000Z
2022-03-30T09:44:41.000Z
PythonLinearNonlinearControl/plotters/plot_objs.py
Geonhee-LEE/PythonLinearNonlinearControl
2a2467098108641483778c09ceb7906cb49f6cee
[ "MIT" ]
6
2020-06-22T23:50:41.000Z
2021-11-19T08:48:35.000Z
PythonLinearNonlinearControl/plotters/plot_objs.py
Geonhee-LEE/PythonLinearNonlinearControl
2a2467098108641483778c09ceb7906cb49f6cee
[ "MIT" ]
88
2020-04-03T12:58:54.000Z
2022-03-28T07:01:22.000Z
import os import numpy as np import matplotlib.pyplot as plt from ..common.utils import rotate_pos def circle(center_x, center_y, radius, start=0., end=2*np.pi, n_point=100): """ Create circle matrix Args: center_x (float): the center x position of the circle center_y (float): the center y ...
34.067308
76
0.627999
fcf2c60170f49a2d0aba816e4c34b962c22b5ab9
2,965
py
Python
Lesson13/ladder.py
nawang87/codility_lessons
30ee069fcf743acba636fdf5ac0b8b7f43fd0ccc
[ "MIT" ]
114
2019-02-13T10:52:44.000Z
2022-03-08T18:44:11.000Z
Lesson13/ladder.py
nawang87/codility_lessons
30ee069fcf743acba636fdf5ac0b8b7f43fd0ccc
[ "MIT" ]
1
2020-02-25T01:51:46.000Z
2020-02-25T01:52:56.000Z
Lesson13/ladder.py
nawang87/codility_lessons
30ee069fcf743acba636fdf5ac0b8b7f43fd0ccc
[ "MIT" ]
38
2019-02-18T17:09:04.000Z
2022-02-15T02:45:01.000Z
""" Task:Ladder Count the number of different ways of climbing to the top of a ladder. You have to climb up a ladder. The ladder has exactly N rungs, numbered from 1 to N. With each step, you can ascend by one or two rungs. More precisely: with your first step you can stand on rung 1 or 2, if you are on rung K, you c...
34.08046
241
0.669477
c368fd730635949b066c0ff57171af924fb92da1
5,436
py
Python
core/views.py
EderMiqueias/SistemaEstoqueVendas
ec517319fb78283efc0d866083c1e117edb9e024
[ "MIT" ]
null
null
null
core/views.py
EderMiqueias/SistemaEstoqueVendas
ec517319fb78283efc0d866083c1e117edb9e024
[ "MIT" ]
5
2020-06-11T18:53:37.000Z
2021-09-22T18:57:38.000Z
core/views.py
EderMiqueias/SistemaEstoqueVendas
ec517319fb78283efc0d866083c1e117edb9e024
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.contrib import messages from django.contrib.auth import login, authenticate, logout from django.contrib.auth.decorators import login_required, permission_required from .models import Produto, Imagem from .forms import ProdutoModelForm, VendaModelForm, BuscarMo...
32.16568
85
0.646615
e5450a5e7ed938f0cb30cc33257645b839544398
4,250
py
Python
src/sdia_python/lab2/ball_window.py
aurelienO/sdia-python-1
ac51505ca3656c9fab111f7088b69ba53bd4579d
[ "MIT" ]
null
null
null
src/sdia_python/lab2/ball_window.py
aurelienO/sdia-python-1
ac51505ca3656c9fab111f7088b69ba53bd4579d
[ "MIT" ]
null
null
null
src/sdia_python/lab2/ball_window.py
aurelienO/sdia-python-1
ac51505ca3656c9fab111f7088b69ba53bd4579d
[ "MIT" ]
null
null
null
import numpy as np from sdia_python.lab2.utils import get_random_number_generator class BallWindow: """This class represents a ball of dimension one, two or three""" def __init__(self, center, radius=1): """Constructor of the class : build a ball whose dimension is given by the size of the center ar...
34.552846
143
0.577412
52b1b6fb11eb4bf1dd815ba61a8f18b5a793378f
2,543
py
Python
src/notion/tests/test_notion_block_list.py
Abdujabbar/education-backend
ab2d2b5e4f315f0e0e01be6e402b41c59c22df0d
[ "MIT" ]
null
null
null
src/notion/tests/test_notion_block_list.py
Abdujabbar/education-backend
ab2d2b5e4f315f0e0e01be6e402b41c59c22df0d
[ "MIT" ]
null
null
null
src/notion/tests/test_notion_block_list.py
Abdujabbar/education-backend
ab2d2b5e4f315f0e0e01be6e402b41c59c22df0d
[ "MIT" ]
null
null
null
import pytest from notion.block import NotionBlock, NotionBlockList @pytest.fixture def block_without_content() -> NotionBlock: return NotionBlock(id='without_content', data={}) @pytest.fixture def block_with_content() -> NotionBlock: return NotionBlock(id='with_content', data={ 'value': { ...
32.189873
139
0.70468
f4d171558c5e9a665d44c3a8709437928966e2eb
1,354
py
Python
demo/text_matching/predict.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
8,360
2019-01-18T10:46:45.000Z
2022-03-31T14:50:02.000Z
demo/text_matching/predict.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
1,158
2019-04-11T09:22:43.000Z
2022-03-31T12:12:09.000Z
demo/text_matching/predict.py
chunzhang-hub/PaddleHub
c5cfd021f77fd59340fb26e223e09a592e6a345f
[ "Apache-2.0" ]
1,677
2019-04-09T15:07:40.000Z
2022-03-31T06:41:10.000Z
# Copyright (c) 2021 PaddlePaddle 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...
38.685714
90
0.669129
5a1d9c8beca7e6018be534dfd7bd0942cca68af2
4,562
py
Python
resources/jupyter/jupyter_notebook_config.py
Bpowers4/ml-workspace
6154b1875f59d9a1e793f511a5bbde5de446ee38
[ "Apache-2.0" ]
1
2019-09-30T03:41:38.000Z
2019-09-30T03:41:38.000Z
resources/jupyter/jupyter_notebook_config.py
0r0i/ml-workspace
033149c1e64eeb727f8a0bb0250ecef4e2852470
[ "Apache-2.0" ]
null
null
null
resources/jupyter/jupyter_notebook_config.py
0r0i/ml-workspace
033149c1e64eeb727f8a0bb0250ecef4e2852470
[ "Apache-2.0" ]
1
2020-11-19T06:32:44.000Z
2020-11-19T06:32:44.000Z
from jupyter_core.paths import jupyter_data_dir import subprocess import os import psutil import errno import stat c = get_config() # https://jupyter-notebook.readthedocs.io/en/stable/config.html c.NotebookApp.ip = '*' c.NotebookApp.port = 8090 c.NotebookApp.notebook_dir="./" c.NotebookApp.open_browser = False c.Noteb...
38.661017
166
0.731916
bc9209a7abecbe7ceb0775e81e50ea3c8c4c176c
10,017
py
Python
parser/fase2/team28/Optimizador/reglas.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
35
2020-12-07T03:11:43.000Z
2021-04-15T17:38:16.000Z
parser/fase2/team28/Optimizador/reglas.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
47
2020-12-09T01:29:09.000Z
2021-01-13T05:37:50.000Z
parser/fase2/team28/Optimizador/reglas.py
webdev188/tytus
847071edb17b218f51bb969d335a8ec093d13f94
[ "MIT" ]
556
2020-12-07T03:13:31.000Z
2021-06-17T17:41:10.000Z
from Optimizador.clases3d import AsignacionID, Goto, LabelIF, Relop, ifStatement from controllers.optimization_controller import OptimizationController def regla1(result, list_instrucciones, index): if isinstance(result, AsignacionID): id1 = result.id value = result.value if index + 1 > len...
45.949541
169
0.489867
03f6db758d4ac90b925f05f7ed80259e5c379680
238
py
Python
tests/my_test.py
LyubovTatur/elgamal
265cf0a41aa098ce10b3ca1c390e56c32e731381
[ "MIT" ]
null
null
null
tests/my_test.py
LyubovTatur/elgamal
265cf0a41aa098ce10b3ca1c390e56c32e731381
[ "MIT" ]
null
null
null
tests/my_test.py
LyubovTatur/elgamal
265cf0a41aa098ce10b3ca1c390e56c32e731381
[ "MIT" ]
null
null
null
import elgamal keys = elgamal.generate_keys() priv = keys['privateKey'] pub = keys['publicKey'] message = "ya popochka" print(message) cipher = elgamal.encrypt(pub, message) print(cipher) plain = elgamal.decrypt(priv, cipher) print(plain)
23.8
38
0.756303
1b45377727bb462238ceb6140e0e63974ce3cd13
978
py
Python
tutorial/quickstart/views.py
jonathadv/drf-feautures-testintg
63b63cc4052c4e2f6f9750ac01748366fe545581
[ "MIT" ]
1
2021-05-25T23:46:02.000Z
2021-05-25T23:46:02.000Z
tutorial/quickstart/views.py
jonathadv/drf-feautures-testintg
63b63cc4052c4e2f6f9750ac01748366fe545581
[ "MIT" ]
null
null
null
tutorial/quickstart/views.py
jonathadv/drf-feautures-testintg
63b63cc4052c4e2f6f9750ac01748366fe545581
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User, Group from rest_framework import viewsets from rest_framework.permissions import BasePermission, IsAuthenticated, SAFE_METHODS from tutorial.quickstart.serializers import UserSerializer, GroupSerializer class ReadOnly(BasePermission): def has_permission(self, request, ...
27.942857
84
0.745399
829298e047344dec02653dd435e98575d5492ca0
862
py
Python
streamlit/abc.py
annaho124/atom-assignments
212682f8b76f2689d73cb9615364d47964ed2b57
[ "MIT" ]
null
null
null
streamlit/abc.py
annaho124/atom-assignments
212682f8b76f2689d73cb9615364d47964ed2b57
[ "MIT" ]
null
null
null
streamlit/abc.py
annaho124/atom-assignments
212682f8b76f2689d73cb9615364d47964ed2b57
[ "MIT" ]
null
null
null
import streamlit as st from google.oauth2 import service_account from google.cloud import bigquery # Create API client. credentials = service_account.Credentials.from_service_account_info( st.secrets["gcp_service_account"] ) client = bigquery.Client(credentials=credentials) # Perform query. # Uses st.cache to onl...
30.785714
88
0.74478
2bc34ca444d5991eb97f5d355698ed636893ada5
332
py
Python
bke/bke_mobile/serializers/podcaster.py
Ntermast/BKE
5a9b71c7c81102a2a3759bfa720d15e27ec96726
[ "MIT" ]
null
null
null
bke/bke_mobile/serializers/podcaster.py
Ntermast/BKE
5a9b71c7c81102a2a3759bfa720d15e27ec96726
[ "MIT" ]
null
null
null
bke/bke_mobile/serializers/podcaster.py
Ntermast/BKE
5a9b71c7c81102a2a3759bfa720d15e27ec96726
[ "MIT" ]
null
null
null
from .user_guest import UserGuestSerializer class PodcasterSerializer(UserGuestSerializer): def to_representation(self, instance): return { **super().to_representation(instance=instance), 'channels': instance.channel_set.count(), 'podcasts': instance.podcast_set.count()...
30.181818
59
0.668675
923553dfb03cdc0c3d698688c0bda0027b8d9f48
7,141
py
Python
infoblox_netmri/api/remote/models/device_physical_remote.py
infobloxopen/infoblox_netmri
aa1c744df7e439dbe163bb9edd165e4e85a9771b
[ "Apache-2.0" ]
12
2016-02-19T12:37:54.000Z
2022-03-04T20:11:08.000Z
infoblox_netmri/api/remote/models/device_physical_remote.py
azinfoblox/infoblox-netmri
02372c5231e2677ab6299cb659a73c9a41b4b0f4
[ "Apache-2.0" ]
18
2015-11-12T18:37:00.000Z
2021-05-19T07:59:55.000Z
infoblox_netmri/api/remote/models/device_physical_remote.py
azinfoblox/infoblox-netmri
02372c5231e2677ab6299cb659a73c9a41b4b0f4
[ "Apache-2.0" ]
18
2016-01-07T12:04:34.000Z
2022-03-31T11:05:41.000Z
from ..remote import RemoteModel from infoblox_netmri.utils.utils import check_api_availability class DevicePhysicalRemote(RemoteModel): """ Physical device components (chassis, module, port, etc.) | ``DataSourceID:`` The internal NetMRI identifier for the collector NetMRI that collected this data reco...
47.291391
356
0.675536
b7ecaabe38cc786ea837214bd4a7ed12fca0b9f7
683
py
Python
tests/test_gds_metrics.py
alphagov-mirror/gds_metrics_python
8e350f067765a57fd3f86d949caa786eadb3c982
[ "MIT" ]
1
2018-10-30T09:54:50.000Z
2018-10-30T09:54:50.000Z
tests/test_gds_metrics.py
alphagov-mirror/gds_metrics_python
8e350f067765a57fd3f86d949caa786eadb3c982
[ "MIT" ]
10
2018-04-20T10:35:44.000Z
2020-12-31T10:12:41.000Z
tests/test_gds_metrics.py
alphagov-mirror/gds_metrics_python
8e350f067765a57fd3f86d949caa786eadb3c982
[ "MIT" ]
5
2019-01-08T13:35:07.000Z
2021-04-10T20:20:05.000Z
from unittest.mock import Mock from gds_metrics import GDSMetrics from flask import Flask, g def test_teardown_requests_doesnt_record_duration_metric_if_gds_metrics_start_time_not_set(mocker): app = Flask(__name__) with app.test_request_context(): assert not hasattr(g, "_gds_metrics_start_time") ...
34.15
99
0.768668
469b86240ffa852864eadad926d2c956882cace3
2,324
py
Python
listener.py
dustingrady/RadioListener
a917ffaf7e59f5827946d6857c59114fce8266b5
[ "MIT" ]
null
null
null
listener.py
dustingrady/RadioListener
a917ffaf7e59f5827946d6857c59114fce8266b5
[ "MIT" ]
null
null
null
listener.py
dustingrady/RadioListener
a917ffaf7e59f5827946d6857c59114fce8266b5
[ "MIT" ]
null
null
null
# Author: Dustin Grady # Purpose: Detect signal strength for a given frequency # Status: In development from rtlsdr import RtlSdr from pylab import * import datetime import threading class Listener: def __init__(self, target_freqs={'None': 0}, debug=False): self.sdr = RtlSdr() self.sdr.sample_rat...
34.686567
198
0.584768
f9ee2f986d033d5e92e2ae0739d417560c651eb7
12,778
py
Python
Codes/OET_interface_v0.9.1.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
Codes/OET_interface_v0.9.1.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
Codes/OET_interface_v0.9.1.py
zaman13/Optoelectronic-tweezers-interface
a43440b9035a69ee54c5b34fe49e8b3dd0ac8d11
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Nov 15 20:34:23 2021 @author: Mohammad Asif Zaman Keyboard commands: x : Quit/exit program Arrow keys: Movement q : Increase object size a : Decrease object size w : Increase width of the object d : Decrease width of the ob...
29.442396
139
0.566912
5fbcefc34d4e0a183a08903bdb07d050056203cc
634
py
Python
app/commands/log/rerun.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-06-22T21:25:52.000Z
2020-06-22T21:25:52.000Z
app/commands/log/rerun.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
1
2020-05-21T02:46:24.000Z
2020-05-25T07:19:23.000Z
app/commands/log/rerun.py
venturiscm/hcp
74ad18180822301274daa9218d7bd9fbdb7807f7
[ "Apache-2.0" ]
null
null
null
from systems.commands.index import Command import copy class Rerun(Command('log.rerun')): def exec(self): def rerun_command(log_key): log = self._log.retrieve(log_key) if log: options = copy.deepcopy(log.config) options['push_queue'] = True ...
30.190476
109
0.591483
4644639b0095ead3a05f8b0dd9cce73dfe6ab52c
6,688
py
Python
app_backend/forms/customer.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
1
2020-06-21T04:08:26.000Z
2020-06-21T04:08:26.000Z
app_backend/forms/customer.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
13
2019-10-18T17:19:32.000Z
2022-01-13T00:44:43.000Z
app_backend/forms/customer.py
zhanghe06/bearing_project
78a20fc321f72d3ae05c7ab7e52e01d02904e3fc
[ "MIT" ]
5
2019-02-07T03:15:16.000Z
2021-09-04T14:06:28.000Z
#!/usr/bin/env python # encoding: utf-8 """ @author: zhanghe @software: PyCharm @file: customer.py @time: 2018-03-16 14:41 """ from __future__ import unicode_literals from copy import deepcopy from flask_babel import lazy_gettext as _ from flask_wtf import FlaskForm from six import iteritems from wtforms import Str...
26.125
132
0.524372
e41aef67c3ac8fdcef69f120792084091c74a30e
502
py
Python
venv/Lib/site-packages/pandas/tests/util/conftest.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/util/conftest.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pandas/tests/util/conftest.py
arnoyu-hub/COMP0016miemie
59af664dcf190eab4f93cefb8471908717415fea
[ "MIT" ]
1
2021-04-26T22:41:56.000Z
2021-04-26T22:41:56.000Z
import pytest @pytest.fixture(params=[True, False]) def check_dtype(request): return request.param @pytest.fixture(params=[True, False]) def check_exact(request): return request.param @pytest.fixture(params=[True, False]) def check_index_type(request): return request.param @pytest....
18.592593
41
0.697211
92e1f397801aca56b0c4d39ae788cdaa47df400b
2,140
py
Python
examples/speaker_recognition/kaldi_plda.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
1
2020-08-04T08:29:41.000Z
2020-08-04T08:29:41.000Z
examples/speaker_recognition/kaldi_plda.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
1
2020-06-11T00:54:42.000Z
2020-06-11T00:54:42.000Z
examples/speaker_recognition/kaldi_plda.py
ParikhKadam/NeMo
ee11f7c4666d410d91f9da33c61f4819ea625013
[ "Apache-2.0" ]
3
2020-03-10T05:10:07.000Z
2020-12-08T01:33:35.000Z
# Copyright 2020 NVIDIA. 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 applicable law or agree...
37.54386
114
0.706542
f4df34e14431337694c1f1448f0752eeaa63c613
7,008
py
Python
hugs/imtools/core.py
johnnygreco/hugs-pipe
c91b5462e75a5d8ad25e0481b5c7df46684b2bed
[ "MIT" ]
7
2018-05-10T18:14:16.000Z
2022-03-08T18:47:09.000Z
hugs/imtools/core.py
johnnygreco/hugs-pipe
c91b5462e75a5d8ad25e0481b5c7df46684b2bed
[ "MIT" ]
null
null
null
hugs/imtools/core.py
johnnygreco/hugs-pipe
c91b5462e75a5d8ad25e0481b5c7df46684b2bed
[ "MIT" ]
2
2017-04-08T11:05:22.000Z
2017-07-27T15:42:38.000Z
from __future__ import division, print_function import os import numpy as np import lsst.daf.persistence import lsst.afw.image as afwImage import lsst.afw.display as afwDisp import lsst.afw.geom as afwGeom import lsst.afw.math as afwMath import scipy.ndimage as ndi hscdir = os.environ.get('HSC_DIR') __all__ = ['get_i...
29.694915
74
0.634989
74170cce0ead984850f541357822455f543fe7f5
560
py
Python
old/UG/tests/blackbox/syndicate-httpd/DELETE.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
16
2015-01-02T15:39:04.000Z
2016-03-17T06:38:46.000Z
old/UG/tests/blackbox/syndicate-httpd/DELETE.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
37
2015-01-28T20:58:05.000Z
2016-03-22T04:01:32.000Z
old/UG/tests/blackbox/syndicate-httpd/DELETE.py
jcnelson/syndicate
4837265be3e0aa18cdf4ee50316dbfc2d1f06e5b
[ "Apache-2.0" ]
8
2015-04-08T02:26:03.000Z
2016-03-04T05:56:24.000Z
#!/usr/bin/python import socket import time import sys import urllib2 hostname = sys.argv[1] port = int(sys.argv[2] ) filename = sys.argv[3] s = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) s.connect( (hostname, port) ) http_header = "" http_header += "DELETE %s HTTP/1.0\r\n" % filename http_header += "Host:...
17.5
55
0.5625
79f620ab94b9d3e2b90448cfe1cb554fff66cdaf
1,158
py
Python
Python Fundamentals/Mid Exam/Mid Exam 04/Task_02_2.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Mid Exam/Mid Exam 04/Task_02_2.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
null
null
null
Python Fundamentals/Mid Exam/Mid Exam 04/Task_02_2.py
DonikaChervenkova/SoftUni
bff579c037ec48f39ed193b34bc3502a32e90732
[ "MIT" ]
1
2021-12-04T12:30:57.000Z
2021-12-04T12:30:57.000Z
def urgent(shop_list, itm): shop_list.insert(0, itm) return shop_list def unnecessary(shop_list, itm): shop_list.remove(itm) return shop_list def correct(shop_list, itm, comm): new_item = comm.split(" ")[2] index_old_item = shop_list.index(itm) shop_list[index_old_item] = new_item re...
23.16
65
0.647668
27424df2cc861978fdb0b32200dc5dd94288d5b4
11,720
py
Python
airmozilla/manage/views/dashboard.py
mozilla/airmozilla
fa6acbbbacc1e22553457807bcea7ce7a9ef6fe3
[ "BSD-3-Clause" ]
115
2015-01-06T18:45:39.000Z
2022-02-07T10:56:49.000Z
airmozilla/manage/views/dashboard.py
april/airmozilla
ee357f5396cdcb50147c72ff1e81a610f9cb292c
[ "BSD-3-Clause" ]
321
2015-01-02T15:19:25.000Z
2018-07-05T14:58:50.000Z
airmozilla/manage/views/dashboard.py
april/airmozilla
ee357f5396cdcb50147c72ff1e81a610f9cb292c
[ "BSD-3-Clause" ]
101
2015-01-13T17:59:15.000Z
2020-12-15T02:58:38.000Z
import datetime from collections import defaultdict from django.contrib.auth.models import User from django.shortcuts import render from django.utils import timezone from django.db.models import Sum from django.template.defaultfilters import filesizeformat from jsonview.decorators import json_view from airmozilla.ma...
30.761155
78
0.566553
b53c93d5ec8d8cebe523e2b4a19174577a25cae4
3,294
py
Python
profiles_project/settings.py
NitiKaur/API-rest
49541e0301acafad752917fabb4b87c1bc85ec25
[ "MIT" ]
null
null
null
profiles_project/settings.py
NitiKaur/API-rest
49541e0301acafad752917fabb4b87c1bc85ec25
[ "MIT" ]
null
null
null
profiles_project/settings.py
NitiKaur/API-rest
49541e0301acafad752917fabb4b87c1bc85ec25
[ "MIT" ]
null
null
null
""" Django settings for profiles_project project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ impor...
25.734375
91
0.698239
b7c5529bf72a7fbe569cb5c558716ad2160af3b3
4,138
py
Python
tools/linux_dist_support/linux_distribution_support.py
polina-c/sdk
0571cfe6552bbfccc167fdc23cc685ab79def613
[ "BSD-Source-Code" ]
null
null
null
tools/linux_dist_support/linux_distribution_support.py
polina-c/sdk
0571cfe6552bbfccc167fdc23cc685ab79def613
[ "BSD-Source-Code" ]
null
null
null
tools/linux_dist_support/linux_distribution_support.py
polina-c/sdk
0571cfe6552bbfccc167fdc23cc685ab79def613
[ "BSD-Source-Code" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file # for details. All rights reserved. Use of this source code is governed by a # BSD-style license that can be found in the LICENSE file. """ Buildbot steps for src tarball generation and debian package generation Packag...
30.880597
77
0.638231
8fd3941df829dcf0398775f47bd3bccb46b8e342
5,315
py
Python
Predict Closed Questions on Stackoverflow/stack-baseline.py
rupakc/Kaggle-Compendium
61634ba742f9a0239f2d1e45973c4bb477ac6306
[ "MIT" ]
17
2018-01-11T05:49:06.000Z
2021-08-22T16:50:10.000Z
Predict Closed Questions on Stackoverflow/stack-baseline.py
Tuanlase02874/Machine-Learning-Kaggle
c31651acd8f2407d8b60774e843a2527ce19b013
[ "MIT" ]
null
null
null
Predict Closed Questions on Stackoverflow/stack-baseline.py
Tuanlase02874/Machine-Learning-Kaggle
c31651acd8f2407d8b60774e843a2527ce19b013
[ "MIT" ]
8
2017-11-27T06:58:50.000Z
2021-08-22T16:50:13.000Z
import pandas as pd from sklearn.ensemble import RandomForestClassifier from sklearn.ensemble import GradientBoostingClassifier from sklearn.ensemble import BaggingClassifier from sklearn.ensemble import AdaBoostClassifier from sklearn.ensemble import ExtraTreesClassifier from sklearn.neural_network import MLPClassifie...
42.862903
124
0.759737