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
655a2db3fa6c2ead3f03ffdd5feda111f37b2963
885
py
Python
Mobley_logP/pythonScripts/makeDataFile.py
MobleyLab/SAMPL5_logD_PredictionAnalysis
c7675a8f183a465bee89599a6df9e360476ef868
[ "MIT" ]
1
2018-03-21T16:48:41.000Z
2018-03-21T16:48:41.000Z
Mobley_logP/pythonScripts/makeDataFile.py
MobleyLab/SAMPL5_logD_PredictionAnalysis
c7675a8f183a465bee89599a6df9e360476ef868
[ "MIT" ]
null
null
null
Mobley_logP/pythonScripts/makeDataFile.py
MobleyLab/SAMPL5_logD_PredictionAnalysis
c7675a8f183a465bee89599a6df9e360476ef868
[ "MIT" ]
null
null
null
# Written by Caitlin C Bannan # Mobley Group, UC Irvine # January/February 2016 I don't remember # Prints calculated logD and associated solvation free energies to text file. It is the same script I used to make our SAMPL5 submission, solvation free energies were add later when discussing results with other participant...
36.875
224
0.658757
7ae8b377b8a9d82c890d09b97597c94927dfe100
481
py
Python
morepath_static/tests/test_morepath_static.py
morepath/morepath_static
77f0496d6d1119c91ebebdd683b0fd443d789596
[ "BSD-3-Clause" ]
null
null
null
morepath_static/tests/test_morepath_static.py
morepath/morepath_static
77f0496d6d1119c91ebebdd683b0fd443d789596
[ "BSD-3-Clause" ]
4
2020-09-07T13:35:53.000Z
2021-04-18T14:32:31.000Z
morepath_static/tests/test_morepath_static.py
morepath/morepath_static
77f0496d6d1119c91ebebdd683b0fd443d789596
[ "BSD-3-Clause" ]
2
2016-07-05T06:26:56.000Z
2020-09-30T16:17:28.000Z
from webtest import TestApp as Client from .. import App from ..__main__ import run def test_static_assets(): c = Client(App()) r = c.get("/") scripts = r.html.select("script") assert len(scripts) == 2 for s in scripts: c.get(s["src"]) def test_run(monkeypatch): import morepath ...
17.178571
75
0.627859
6a74fc6b55779064da01a4a98c72939870076699
3,802
py
Python
basestation/flopper.py
jakeh12/hackisu2018-flopper
46d1ea47546f36c0573e2a662b1bf717794c431c
[ "MIT" ]
1
2018-10-14T18:19:50.000Z
2018-10-14T18:19:50.000Z
basestation/flopper.py
jakeh12/hackisu2018-flopper
46d1ea47546f36c0573e2a662b1bf717794c431c
[ "MIT" ]
null
null
null
basestation/flopper.py
jakeh12/hackisu2018-flopper
46d1ea47546f36c0573e2a662b1bf717794c431c
[ "MIT" ]
null
null
null
from header_chunk import HeaderChunk from track_chunk import TrackChunk from helpers import HexArrayToDecimal from drive_system import DriveSystem import time with open('/Users/jhladik/Downloads/test.mid', 'rb') as midiFile: # Read entire file and save into a list of ascii/hex chars fileContent = list(midiFile...
36.912621
111
0.613887
fc7a44c80e51887c9363a64965d34f0f37f898ca
3,453
py
Python
src/worker/utils/flashcard.py
dailyideas/mobile-flashcards
ea9e95557471b54abd2dbec4d23c9a87ffc848cd
[ "MIT" ]
null
null
null
src/worker/utils/flashcard.py
dailyideas/mobile-flashcards
ea9e95557471b54abd2dbec4d23c9a87ffc848cd
[ "MIT" ]
null
null
null
src/worker/utils/flashcard.py
dailyideas/mobile-flashcards
ea9e95557471b54abd2dbec4d23c9a87ffc848cd
[ "MIT" ]
null
null
null
from __future__ import annotations import datetime, logging, os, pathlib, sys, time import random from dataclasses import dataclass, InitVar from os import path from typing import ClassVar #### #### #### #### #### #### Global constants #### #### #### #### #### #### SCRIPT_NAME = path.basename(__file__).split(".")...
29.262712
102
0.573414
2b56a081e1eabde51def5b0ff9c64ec1024e4fc8
5,945
py
Python
py3canvas/tests/external_tools.py
tylerclair/py3canvas
7485d458606b65200f0ffa5bbe597a9d0bee189f
[ "MIT" ]
null
null
null
py3canvas/tests/external_tools.py
tylerclair/py3canvas
7485d458606b65200f0ffa5bbe597a9d0bee189f
[ "MIT" ]
null
null
null
py3canvas/tests/external_tools.py
tylerclair/py3canvas
7485d458606b65200f0ffa5bbe597a9d0bee189f
[ "MIT" ]
null
null
null
"""ExternalTools API Tests for Version 1.0. This is a testing template for the generated ExternalToolsAPI Class. """ import unittest import requests import secrets from py3canvas.apis.external_tools import ExternalToolsAPI class TestExternalToolsAPI(unittest.TestCase): """Tests for the ExternalToolsAPI.""" ...
43.07971
126
0.721447
0ae38deeb22769dd4c74616c77ab46ebb5718512
3,152
py
Python
camp/codecs/graphviz.py
pedrovelho/camp
98105c9054b8db3377cb6a06e7b5451b97c6c285
[ "MIT" ]
null
null
null
camp/codecs/graphviz.py
pedrovelho/camp
98105c9054b8db3377cb6a06e7b5451b97c6c285
[ "MIT" ]
null
null
null
camp/codecs/graphviz.py
pedrovelho/camp
98105c9054b8db3377cb6a06e7b5451b97c6c285
[ "MIT" ]
1
2019-02-05T08:49:41.000Z
2019-02-05T08:49:41.000Z
# # CAMP # # Copyright (C) 2017, 2018 SINTEF Digital # All rights reserved. # # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE file for details. # from camp.codecs.commons import Codec class Graphviz(Codec): def __init__(self, indentation=2): sel...
27.172414
89
0.587246
ab4538d5d9786d69450483ac7a5faba0bad2cf3a
3,416
py
Python
detect_cycle.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
detect_cycle.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
detect_cycle.py
UPstartDeveloper/Problem_Solving_Practice
bd61333b3b056e82a94297e02bc05a17552e3496
[ "MIT" ]
null
null
null
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def detect_cycle(self, head: ListNode): """ detect a cycle in a linked list, return the 0-index position of the repeated node - -1 ...
32.846154
91
0.492681
576216dab94c1680fc81a5ad044ac58da271032c
12,249
py
Python
workflow/migrations/0053_auto_20191001_2329.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
null
null
null
workflow/migrations/0053_auto_20191001_2329.py
mercycorps/toladata
4d5f9b45905a81af9981b586690e020d5b3bfc60
[ "Apache-2.0" ]
268
2020-03-31T15:46:59.000Z
2022-03-31T18:01:08.000Z
workflow/migrations/0053_auto_20191001_2329.py
Falliatcom-sa/falliatcom
39fb926de072c296ed32d50cccfb8003ca870739
[ "Apache-2.0" ]
1
2021-01-05T01:58:24.000Z
2021-01-05T01:58:24.000Z
# Generated by Django 2.2.5 on 2019-10-02 06:29 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('workflow', '0052_delete_tolasites'), ] operations = [ migrations.RemoveField( model_name='adminlevelthree', name='district',...
28.419954
52
0.521675
64c6d6095b43ec8de63830ed72f230d3d2c38cc7
785
py
Python
quantum_systems/__init__.py
Benedicte/quantum-systems
31e6f78dceb03f5d01092f4008fbab38516a0623
[ "MIT" ]
null
null
null
quantum_systems/__init__.py
Benedicte/quantum-systems
31e6f78dceb03f5d01092f4008fbab38516a0623
[ "MIT" ]
null
null
null
quantum_systems/__init__.py
Benedicte/quantum-systems
31e6f78dceb03f5d01092f4008fbab38516a0623
[ "MIT" ]
null
null
null
from .system import QuantumSystem from .general_orbital_system import GeneralOrbitalSystem from .spatial_orbital_system import SpatialOrbitalSystem from .quest_system import QuestSystem from .basis_set import BasisSet from .custom_system import ( # construct_psi4_system, # construct_pyscf_system, construct_...
34.130435
64
0.83949
fee1fcaa33925dc39c10ce02a49691251c095af2
3,817
py
Python
timetrackerctl/rofi/main.py
theCapypara/timetrackerctl
791954bfb57d400b7e99ff49ce6ef3313646f51b
[ "MIT" ]
null
null
null
timetrackerctl/rofi/main.py
theCapypara/timetrackerctl
791954bfb57d400b7e99ff49ce6ef3313646f51b
[ "MIT" ]
null
null
null
timetrackerctl/rofi/main.py
theCapypara/timetrackerctl
791954bfb57d400b7e99ff49ce6ef3313646f51b
[ "MIT" ]
null
null
null
import sys import traceback from datetime import datetime from typing import Callable, Tuple, List, Dict, Optional from rofi import Rofi from zenipy import zenipy from timetrackerctl.config import Config from timetrackerctl.mngmnt.jira_tempo_manager import JiraTempoManager from timetrackerctl.mngmnt.ticket_manager im...
28.916667
131
0.651821
270f765caebd02ac86f679424d70feb7c1206c1b
5,825
py
Python
pandas/tests/util/test_assert_index_equal.py
LauraCollard/pandas
b1c3a9031569334cafc4e8d45d35408421f7dea4
[ "BSD-3-Clause" ]
5
2019-07-26T15:22:41.000Z
2021-09-28T09:22:17.000Z
pandas/tests/util/test_assert_index_equal.py
LauraCollard/pandas
b1c3a9031569334cafc4e8d45d35408421f7dea4
[ "BSD-3-Clause" ]
16
2021-03-19T09:44:52.000Z
2022-03-12T00:22:14.000Z
pandas/tests/util/test_assert_index_equal.py
LauraCollard/pandas
b1c3a9031569334cafc4e8d45d35408421f7dea4
[ "BSD-3-Clause" ]
9
2020-02-05T10:24:12.000Z
2020-02-10T13:08:50.000Z
import numpy as np import pytest from pandas import Categorical, Index, MultiIndex, NaT from pandas.util.testing import assert_index_equal def test_index_equal_levels_mismatch(): msg = """Index are different Index levels are different \\[left\\]: 1, Int64Index\\(\\[1, 2, 3\\], dtype='int64'\\) \\[right\\]: 2, ...
33.477011
81
0.61133
1ba6225c934a1dd0dba2505f2d9e1fd539e8a752
4,020
py
Python
sdk/storage/azure-storage-queue/samples/queue_samples_service_async.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-queue/samples/queue_samples_service_async.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "MIT" ]
null
null
null
sdk/storage/azure-storage-queue/samples/queue_samples_service_async.py
lmcarreiro/azure-sdk-for-python
0bde943383725320eaaa1408fa6264fb0cd0febf
[ "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. # --------------------------------------------------------------------...
43.225806
131
0.66592
f4258ed993dbe7517e7a2e4f48c930511c2d3023
2,772
py
Python
data processing/convertToJson.py
xiameng552180/SeqDynamics_V0
9a8e2f54aa09d56e74f5bb649e3e05a18a508d77
[ "MIT" ]
null
null
null
data processing/convertToJson.py
xiameng552180/SeqDynamics_V0
9a8e2f54aa09d56e74f5bb649e3e05a18a508d77
[ "MIT" ]
null
null
null
data processing/convertToJson.py
xiameng552180/SeqDynamics_V0
9a8e2f54aa09d56e74f5bb649e3e05a18a508d77
[ "MIT" ]
null
null
null
import os def read_file_as_str(file_path): if not os.path.isfile(file_path): raise TypeError(file_path + " does not exist") content = open(file_path).read() return content if __name__ == "__main__": # content = read_file_as_str("rank.json") # contentSplit = content.split("}{") # resul...
86.625
2,052
0.164141
52f0e32b43a57bc86b63f6361b89c9ee00074271
542
py
Python
python/idol/transformrules.py
epkaz93/idol
f378b7131bf2795d548382564158aec3268aa13e
[ "MIT" ]
null
null
null
python/idol/transformrules.py
epkaz93/idol
f378b7131bf2795d548382564158aec3268aa13e
[ "MIT" ]
null
null
null
python/idol/transformrules.py
epkaz93/idol
f378b7131bf2795d548382564158aec3268aa13e
[ "MIT" ]
null
null
null
from __future__ import annotations import six import abc from idol.colour import Colour import typing if typing.TYPE_CHECKING: from idol import Icon @six.add_metaclass(abc.ABCMeta) class TransformRuleBase(object): @abc.abstractmethod def execute(self, icon: Icon) -> Icon: raise NotImplemented...
18.689655
48
0.728782
2db56b406a84982b442cc056b5376cb27b355d57
2,532
py
Python
insights/util/canonical_facts.py
chrismeyersfsu/insights-core
cb5c1ec41f9c783af72cbca855b457851e57f4aa
[ "Apache-2.0" ]
null
null
null
insights/util/canonical_facts.py
chrismeyersfsu/insights-core
cb5c1ec41f9c783af72cbca855b457851e57f4aa
[ "Apache-2.0" ]
null
null
null
insights/util/canonical_facts.py
chrismeyersfsu/insights-core
cb5c1ec41f9c783af72cbca855b457851e57f4aa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from __future__ import print_function from insights import rule, make_metadata, run from insights.specs import Specs from insights.core import Parser from insights.core.plugins import parser @parser(Specs.ip_addresses) class IPs(Parser): """ Reads the output of hostname -I and construc...
23.444444
104
0.637836
77f2111f5ff173ed9511e818fe62f6e75c5ef2ee
11,324
py
Python
plugins/modules/kibana_alert.py
exp-hc/ansible-collection-elastic
668f6e7be368e0307df0514c999f330be0ead070
[ "Apache-2.0" ]
null
null
null
plugins/modules/kibana_alert.py
exp-hc/ansible-collection-elastic
668f6e7be368e0307df0514c999f330be0ead070
[ "Apache-2.0" ]
null
null
null
plugins/modules/kibana_alert.py
exp-hc/ansible-collection-elastic
668f6e7be368e0307df0514c999f330be0ead070
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # Copyright 2021 Expedient # # 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...
33.702381
189
0.682268
7dcee4add9d372dba77b8cacbf1af77b36109a14
403
py
Python
template/pc/temp.py
mob5566/dotfiles
4ebc6aa1b150640fb064f8826f50c0baba322506
[ "MIT" ]
null
null
null
template/pc/temp.py
mob5566/dotfiles
4ebc6aa1b150640fb064f8826f50c0baba322506
[ "MIT" ]
null
null
null
template/pc/temp.py
mob5566/dotfiles
4ebc6aa1b150640fb064f8826f50c0baba322506
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' ' Author: Cheng-Shih Wong ' Email: mob5566@gmail.com ' Date: ''' def main(): pass if __name__ == '__main__': import sys, os from time import time if len(sys.argv)>1 and os.path.exists(sys.argv[1]): sys.stdin = open(sys.argv[1], 'rb') st = time() main...
21.210526
79
0.560794
85c8ef2bdd7eb83d596ee6c682be5f0479449e29
1,255
py
Python
pjbbs/config.py
li765416060/li
3a158218a2a0892577bde29f75f70cce6af11be5
[ "Apache-2.0" ]
1
2019-03-07T02:17:27.000Z
2019-03-07T02:17:27.000Z
pjbbs/config.py
li765416060/li
3a158218a2a0892577bde29f75f70cce6af11be5
[ "Apache-2.0" ]
null
null
null
pjbbs/config.py
li765416060/li
3a158218a2a0892577bde29f75f70cce6af11be5
[ "Apache-2.0" ]
null
null
null
# 打开debug模式之后修改项目python代码不用重复启动 # 但是上线的时候必须要关掉 DEBUG=True # 打开之后,模板修改了也不需要重启服务器 TEMPLATES_AUTO_RELOAD=True # 数据库的配置项 # 数据库连接 DB_USERNAME='root' DB_PASSWORD="root" DB_HOST="127.0.0.1" DB_PORT="3306" DB_NAME="bbs" DB_URL="mysql+pymysql://%s:%s@%s:%s/%s?charset=utf8" % (DB_USERNAME,DB_PASSWORD,DB_HOST,DB_PORT,DB_NAME) ...
24.134615
111
0.803187
dd092dd50a08d7fa738e659fa6962c2bde76d8eb
5,353
py
Python
hydroadjust/sampling.py
NiclasHjortkjaer/dhm-hydro-adjust
30bb58a21c9d5a6d1f342e513a4a50ba24c6aa6a
[ "MIT" ]
null
null
null
hydroadjust/sampling.py
NiclasHjortkjaer/dhm-hydro-adjust
30bb58a21c9d5a6d1f342e513a4a50ba24c6aa6a
[ "MIT" ]
null
null
null
hydroadjust/sampling.py
NiclasHjortkjaer/dhm-hydro-adjust
30bb58a21c9d5a6d1f342e513a4a50ba24c6aa6a
[ "MIT" ]
2
2022-02-18T12:58:49.000Z
2022-02-18T13:18:39.000Z
from osgeo import gdal, ogr from scipy.interpolate import RegularGridInterpolator import numpy as np from collections import namedtuple # The ordering of window X and Y bounds is a mess in GDAL (compare e.g. # gdal.Translate() and gdal.Warp()). Using this little structure and # addressing the members by name should ...
37.173611
163
0.698674
4791793987badd9746bb2a6c5f6d6e776824acbf
20,052
py
Python
applyHCPAcrosswalk.py
mobalt/RedCap2NDA_withCrosswalk
8fa8c57f049cb3adb219e50f3474cd7532cee3ce
[ "MIT" ]
null
null
null
applyHCPAcrosswalk.py
mobalt/RedCap2NDA_withCrosswalk
8fa8c57f049cb3adb219e50f3474cd7532cee3ce
[ "MIT" ]
1
2020-02-27T20:57:54.000Z
2020-02-27T22:17:00.000Z
applyHCPAcrosswalk.py
mobalt/RedCap2NDA_withCrosswalk
8fa8c57f049cb3adb219e50f3474cd7532cee3ce
[ "MIT" ]
1
2020-02-27T21:19:08.000Z
2020-02-27T21:19:08.000Z
#two structures, ndarsubjects01 and edinburgh_hand01 are created by specialty # programs HCD_ndar_edinburgh.py #each of these structures requires consideration of all HCPD-redcap databases #and were used as guinea pig behavioral data structures import os, datetime import json import sys from multiprocessing.dummy impo...
57.291429
182
0.720876
0e7894f0820d257a241d1d8d0e7dc08819519908
843
py
Python
DungeonsOfNoudar586/make_palette.py
libretro/dungeons-of-noudar
40fe44c4a180d7daf3fe97eff4ddbfd2cd558c62
[ "BSD-2-Clause" ]
1
2020-12-25T01:06:43.000Z
2020-12-25T01:06:43.000Z
Wizard3D/make_palette.py
TheFakeMontyOnTheRun/wizard-of-galicia-3d
0255289758f782579aedf1055b3c790260fc65a6
[ "BSD-2-Clause" ]
null
null
null
Wizard3D/make_palette.py
TheFakeMontyOnTheRun/wizard-of-galicia-3d
0255289758f782579aedf1055b3c790260fc65a6
[ "BSD-2-Clause" ]
2
2020-08-17T16:13:01.000Z
2020-08-27T19:38:26.000Z
import glob from PIL import Image from math import floor palette = [[0,0,0]]; def transform( pixel ): return [ 20 * ( pixel[ 0 ] / 20), 20 * ( pixel[ 1 ] / 20), 20 * ( pixel[ 2 ] / 20 ) ] def add_to_palette( filename ): imgFile = Image.open( filename ) img = imgFile.load() for y in range( 0, imgFile.h...
26.34375
89
0.533808
12363ce750099de3e2dc844f72536925d7218fa7
5,474
py
Python
goatools/semantic.py
Odinidoer/goatools
475be141437b7d81dc7d03533c2b2c07974400c2
[ "BSD-2-Clause" ]
1
2019-02-07T03:35:09.000Z
2019-02-07T03:35:09.000Z
goatools/semantic.py
Odinidoer/goatools
475be141437b7d81dc7d03533c2b2c07974400c2
[ "BSD-2-Clause" ]
null
null
null
goatools/semantic.py
Odinidoer/goatools
475be141437b7d81dc7d03533c2b2c07974400c2
[ "BSD-2-Clause" ]
1
2019-02-12T13:45:42.000Z
2019-02-12T13:45:42.000Z
#!/usr/bin/env python # -*- coding: UTF-8 -*- """ Compute semantic similarities between GO terms. Borrowed from book chapter from Alex Warwick Vesztrocy and Christophe Dessimoz (thanks). For details, please check out: notebooks/semantic_similarity.ipynb """ import math from collections import Counter class TermCoun...
30.752809
97
0.637559
7c37ec44f558aae1a1f4a212ea40205c1ca93b0f
19,384
py
Python
maskrcnn_benchmark/engine/inference_aurora.py
niuchuangnn/aurora-maskrcnn
b17acd8c68f9ff3bb561d8f977893948a69c06e5
[ "MIT" ]
4
2020-02-13T16:02:33.000Z
2021-03-26T01:12:14.000Z
maskrcnn_benchmark/engine/inference_aurora.py
niuchuangnn/aurora-maskrcnn
b17acd8c68f9ff3bb561d8f977893948a69c06e5
[ "MIT" ]
1
2021-03-01T12:48:37.000Z
2021-03-04T03:11:24.000Z
maskrcnn_benchmark/engine/inference_aurora.py
niuchuangnn/aurora-maskrcnn
b17acd8c68f9ff3bb561d8f977893948a69c06e5
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import datetime import logging import tempfile import time import os from collections import OrderedDict import torch from tqdm import tqdm from ..structures.bounding_box import BoxList from ..utils.comm import is_main_process from ..utils.comm ...
34.066784
89
0.600547
d6388d08fecfd158d3274088288cb459c0068d72
2,191
py
Python
meb/MEBLibSlidingWindow.py
vibhatha/PSGDSVMPY
69ed88f5db8d9a250ee944f44b88e54351f8696f
[ "Apache-2.0" ]
null
null
null
meb/MEBLibSlidingWindow.py
vibhatha/PSGDSVMPY
69ed88f5db8d9a250ee944f44b88e54351f8696f
[ "Apache-2.0" ]
null
null
null
meb/MEBLibSlidingWindow.py
vibhatha/PSGDSVMPY
69ed88f5db8d9a250ee944f44b88e54351f8696f
[ "Apache-2.0" ]
null
null
null
import sys import os HOME=os.environ['HOME'] sys.path.insert(1,HOME+'/github/StreamingSVM') from operations import LoadLibsvm import numpy as np from matplotlib import pyplot as plt X = np.array([[1,1],[2,1],[3,1],[4,1],[1,5],[2,6],[3,7],[4,5]]) y = np.array([1,1,1,1,-1,-1,-1,-1]) X_test = np.array([[1,1.25],[2.1,1.15...
26.719512
110
0.617526
3ac9a2e0f44fca9da47e4ad0d8e4457a4cfdb12c
6,377
py
Python
train.py
ssaz5/pytorch-retinanet
6963919387d31f8c7657bec671f3dbcb22556e32
[ "Apache-2.0" ]
null
null
null
train.py
ssaz5/pytorch-retinanet
6963919387d31f8c7657bec671f3dbcb22556e32
[ "Apache-2.0" ]
null
null
null
train.py
ssaz5/pytorch-retinanet
6963919387d31f8c7657bec671f3dbcb22556e32
[ "Apache-2.0" ]
null
null
null
import time import os import copy import argparse import pdb import collections import sys import numpy as np import torch import torch.nn as nn import torch.optim as optim from torch.optim import lr_scheduler from torch.autograd import Variable from torchvision import datasets, models, transforms import torchvision ...
35.427778
232
0.674455
f3c0eea06fadf5f88784664c3998118ace7dd653
11,987
py
Python
tencentcloud/tbm/v20180129/tbm_client.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
465
2018-04-27T09:54:59.000Z
2022-03-29T02:18:01.000Z
tencentcloud/tbm/v20180129/tbm_client.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
91
2018-04-27T09:48:11.000Z
2022-03-12T08:04:04.000Z
tencentcloud/tbm/v20180129/tbm_client.py
PlasticMem/tencentcloud-sdk-python
666db85623d51d640a165907a19aef5fba53b38d
[ "Apache-2.0" ]
232
2018-05-02T08:02:46.000Z
2022-03-30T08:02:48.000Z
# -*- coding: utf8 -*- # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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...
43.118705
101
0.62134
bf21047df5516b43c4bb231a6c9dfd482ad66329
16,070
py
Python
pyinfra/api/connectors/ssh.py
blarghmatey/pyinfra
b8287618d66a4e00963c88a3ef191c94e8320f70
[ "MIT" ]
null
null
null
pyinfra/api/connectors/ssh.py
blarghmatey/pyinfra
b8287618d66a4e00963c88a3ef191c94e8320f70
[ "MIT" ]
null
null
null
pyinfra/api/connectors/ssh.py
blarghmatey/pyinfra
b8287618d66a4e00963c88a3ef191c94e8320f70
[ "MIT" ]
null
null
null
from __future__ import print_function, unicode_literals from distutils.spawn import find_executable from getpass import getpass from os import path from socket import ( error as socket_error, gaierror, ) import click import six from paramiko import ( AuthenticationException, DSSKey, ECDSAKey, ...
30.263653
128
0.628002
bc3af7951a21714669f0665803e37c96ec531a8b
3,703
py
Python
squeezeDet/src/nets/squeezeDet.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
2
2017-05-25T01:26:41.000Z
2019-08-16T13:38:57.000Z
squeezeDet/src/nets/squeezeDet.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
null
null
null
squeezeDet/src/nets/squeezeDet.py
Walter1218/Self_Driving_Car_ND
526a9583a2bc616cb19cdfc7921b5e1c0f9711bd
[ "MIT" ]
1
2019-03-15T02:19:49.000Z
2019-03-15T02:19:49.000Z
# Author: Bichen Wu (bichen@berkeley.edu) 08/25/2016 """SqueezeDet model.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys import joblib from utils import util from easydict import EasyDict as edict import numpy as np import tensorf...
34.933962
76
0.664866
5184a574c6b2ae85ee48d3894f091535a9f94b9b
3,141
py
Python
exp-visual7w/exp_test_visual7w_baseline.py
ronghanghu/cmn
85644ad56f8f62d04a5e8636ad3efe9ef7b34705
[ "MIT" ]
72
2017-04-12T17:07:36.000Z
2021-06-18T08:20:47.000Z
exp-visual7w/exp_test_visual7w_baseline.py
ronghanghu/cmn
85644ad56f8f62d04a5e8636ad3efe9ef7b34705
[ "MIT" ]
8
2017-07-06T04:24:04.000Z
2020-09-17T10:29:44.000Z
exp-visual7w/exp_test_visual7w_baseline.py
ronghanghu/cmn
85644ad56f8f62d04a5e8636ad3efe9ef7b34705
[ "MIT" ]
21
2017-04-19T07:38:09.000Z
2021-02-28T13:39:22.000Z
from __future__ import absolute_import, division, print_function import sys import os; os.environ['CUDA_VISIBLE_DEVICES'] = '0' # using GPU 0 import tensorflow as tf import numpy as np import skimage.io import skimage.transform from models import visual7w_baseline_model, spatial_feat, fastrcnn_vgg_net from util.vis...
34.516484
91
0.583572
0d11fe319391aef19291f1aa0d53255fe904ca9a
32,706
py
Python
affiliate/model/mysql_report.py
gods-view/AdclickIO
ccb73867e568aac5f40bd5890149626ce0be1897
[ "BSD-2-Clause" ]
null
null
null
affiliate/model/mysql_report.py
gods-view/AdclickIO
ccb73867e568aac5f40bd5890149626ce0be1897
[ "BSD-2-Clause" ]
null
null
null
affiliate/model/mysql_report.py
gods-view/AdclickIO
ccb73867e568aac5f40bd5890149626ce0be1897
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from peewee import * from affiliate.model.config import mysql_report import time reportDb = MySQLDatabase(mysql_report['name'], host=mysql_report['host'], port=int(mysql_report['port']), user=mysql_repor...
52.3296
76
0.694429
a61c248a1b8971396e8dd37200ef83143f941736
972
py
Python
statsmodels/tests/test_package.py
o-P-o/statsmodels
ee9f5c0bd7ee7f646bdbaf31fbc295e5a0ab02f8
[ "BSD-3-Clause" ]
1
2020-06-18T07:38:11.000Z
2020-06-18T07:38:11.000Z
statsmodels/tests/test_package.py
o-P-o/statsmodels
ee9f5c0bd7ee7f646bdbaf31fbc295e5a0ab02f8
[ "BSD-3-Clause" ]
null
null
null
statsmodels/tests/test_package.py
o-P-o/statsmodels
ee9f5c0bd7ee7f646bdbaf31fbc295e5a0ab02f8
[ "BSD-3-Clause" ]
null
null
null
import subprocess import sys import pytest from statsmodels.compat.scipy import SCIPY_11 def test_lazy_imports(): # Check that when statsmodels.api is imported, matplotlib is _not_ imported cmd = ("import statsmodels.api as sm; " "import sys; " "mods = [x for x in sys.modules if 'matpl...
31.354839
79
0.651235
13ac80afd76b9a697663b3f26daab02359439e9e
4,865
py
Python
tests_unit/models_tests/test_functional_stochastic.py
p1ndsvin/uncertainty-wizard
92a7a9bcb411e512cf6ad54e7ba226a3c66d3583
[ "MIT" ]
33
2020-12-21T20:21:21.000Z
2022-03-25T17:51:36.000Z
tests_unit/models_tests/test_functional_stochastic.py
swb19/uncertainty-wizard
5ba9bfc6ee967eb5f226abbedb6f9d5452b3cfea
[ "MIT" ]
83
2020-12-18T18:18:28.000Z
2022-03-28T21:17:29.000Z
tests_unit/models_tests/test_functional_stochastic.py
swb19/uncertainty-wizard
5ba9bfc6ee967eb5f226abbedb6f9d5452b3cfea
[ "MIT" ]
5
2021-02-13T13:27:48.000Z
2021-12-25T16:45:19.000Z
from unittest import TestCase import numpy as np import tensorflow as tf import uncertainty_wizard as uwiz from uncertainty_wizard.internal_utils import UncertaintyWizardWarning from uncertainty_wizard.models import StochasticFunctional from uncertainty_wizard.models.stochastic_utils.layers import UwizBernoulliDropou...
40.541667
94
0.679753
9e6a4aab5a9025820b1cdcfbb0bb98026d2297e1
16,766
py
Python
sympy/concrete/summations.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
sympy/concrete/summations.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
sympy/concrete/summations.py
Timeroot/sympy
f95bf4bbc548d326f4643d22faec32aca7880187
[ "BSD-3-Clause" ]
null
null
null
from sympy.core import (Expr, S, C, sympify, Wild, Dummy, Derivative, Symbol, Add) from sympy.functions.elementary.piecewise import piecewise_fold from sympy.concrete.gosper import gosper_sum from sympy.polys import apart, PolynomialError from sympy.solvers import solve def _free_symbols(function, limits): """Help...
30.046595
87
0.527377
802a54f38bc92215c9c4a55d77351d0e2407bdfa
15,292
py
Python
sasrl_env/common/env_pb2_grpc.py
sassoftware/sasrlenv
2c8039276fdfe8071582f1e5053f9cfcb4a194e9
[ "Apache-2.0" ]
1
2021-04-23T15:10:58.000Z
2021-04-23T15:10:58.000Z
sasrl_env/common/env_pb2_grpc.py
sassoftware/sasrlenv
2c8039276fdfe8071582f1e5053f9cfcb4a194e9
[ "Apache-2.0" ]
null
null
null
sasrl_env/common/env_pb2_grpc.py
sassoftware/sasrlenv
2c8039276fdfe8071582f1e5053f9cfcb4a194e9
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc import sasrl_env.common.env_pb2 as env__pb2 class EnvControlStub(object): """Missing associated documentation comment in .proto file.""" def __init__(...
39.010204
87
0.618886
eb638b05e8cea2358e954ef428e833b5ea4b6224
807
py
Python
pages/advisors_stratifi_pages/sign_in_page.py
DashkevichBy/Advisors.stratiFi.frontend
e59892e8c1ff0d15ce6ef520fe0b00355e1a6870
[ "Apache-2.0" ]
null
null
null
pages/advisors_stratifi_pages/sign_in_page.py
DashkevichBy/Advisors.stratiFi.frontend
e59892e8c1ff0d15ce6ef520fe0b00355e1a6870
[ "Apache-2.0" ]
null
null
null
pages/advisors_stratifi_pages/sign_in_page.py
DashkevichBy/Advisors.stratiFi.frontend
e59892e8c1ff0d15ce6ef520fe0b00355e1a6870
[ "Apache-2.0" ]
null
null
null
from selenium.webdriver.common.by import By from webium import Find from abstract_base_page import AbstractBasePage class SignInPage(AbstractBasePage): emailField = Find(by=By.XPATH, value='.//*[@name="email"]') passwordField = Find(by=By.XPATH, value='.//*[@name="password"]') signInButton = Find(by=By.XP...
26.9
77
0.604709
e4e6082ec1345a4222f83c29d5ac970de99d07f8
755
py
Python
diagan-pkg/diagan/datasets/get_celeba_index_with_attr.py
lee-jinhee/self-diagnosing-gan
da87dd1ef10f2d630d6904ced63ae8805b5db356
[ "Apache-2.0" ]
16
2021-02-25T06:48:51.000Z
2022-03-04T13:08:12.000Z
diagan-pkg/diagan/datasets/get_celeba_index_with_attr.py
lee-jinhee/self-diagnosing-gan
da87dd1ef10f2d630d6904ced63ae8805b5db356
[ "Apache-2.0" ]
null
null
null
diagan-pkg/diagan/datasets/get_celeba_index_with_attr.py
lee-jinhee/self-diagnosing-gan
da87dd1ef10f2d630d6904ced63ae8805b5db356
[ "Apache-2.0" ]
4
2021-03-02T02:03:17.000Z
2022-03-24T03:31:12.000Z
from functools import partial import os import pandas def get_celeba_index_with_attr(root, attr_name): base_folder = "celeba" fn = partial(os.path.join, root, base_folder) attr = pandas.read_csv(fn("list_attr_celeba.txt"), delim_whitespace=True, header=1) attribute = (attr.values + 1) // 2 # map from...
29.038462
87
0.654305
5aaf7483469f3c71a0047e0951c9ad318d028517
5,098
py
Python
gennghttpxfun.py
acesso/nghttpx-http2-push
fcd9ddc094ee5b81bf5d1cc18ba6897f7a03f12e
[ "MIT" ]
null
null
null
gennghttpxfun.py
acesso/nghttpx-http2-push
fcd9ddc094ee5b81bf5d1cc18ba6897f7a03f12e
[ "MIT" ]
null
null
null
gennghttpxfun.py
acesso/nghttpx-http2-push
fcd9ddc094ee5b81bf5d1cc18ba6897f7a03f12e
[ "MIT" ]
null
null
null
#!/usr/bin/env python from gentokenlookup import gentokenlookup OPTIONS = [ "private-key-file", "private-key-passwd-file", "certificate-file", "dh-param-file", "subcert", "backend", "frontend", "workers", "http2-max-concurrent-streams", "log-level", "daemon", "http2-pro...
27.408602
148
0.642409
210b27c3f2f6b257fc25092d7419e5aa1159f7ca
212
py
Python
python/grid_utils.py
trestoa/mazes
71466bf7bb433399c55365b9e69226a5b8fd963c
[ "Unlicense" ]
null
null
null
python/grid_utils.py
trestoa/mazes
71466bf7bb433399c55365b9e69226a5b8fd963c
[ "Unlicense" ]
null
null
null
python/grid_utils.py
trestoa/mazes
71466bf7bb433399c55365b9e69226a5b8fd963c
[ "Unlicense" ]
null
null
null
def distance_cell_body(distances): def format_body(cell): if distances[cell] is None: return ' ' else: return '{:^3}'.format(distances[cell]) return format_body
23.555556
50
0.575472
5abea5b62e6983654ee6d85a9721a38e1bfe3c9b
1,582
py
Python
authlete/conf/authlete_ini_configuration.py
authlete/authlete-python
751514c525cd04a930373de78463a1fe71b6da60
[ "Apache-2.0" ]
5
2019-07-30T01:37:04.000Z
2021-02-15T05:55:55.000Z
authlete/conf/authlete_ini_configuration.py
DestinyCall/authlete-python
751514c525cd04a930373de78463a1fe71b6da60
[ "Apache-2.0" ]
null
null
null
authlete/conf/authlete_ini_configuration.py
DestinyCall/authlete-python
751514c525cd04a930373de78463a1fe71b6da60
[ "Apache-2.0" ]
1
2021-02-15T05:55:56.000Z
2021-02-15T05:55:56.000Z
# # Copyright (C) 2019 Authlete, 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 ...
36.790698
81
0.67067
34b7d5dc779dc2f1d601578ed60be19eadf280e7
2,188
py
Python
mmdet/models/dense_heads/posenc_yolo_head.py
clintonjwang/mmdetection
f0d1aebdc162ab7e3748d7ac050b523476639818
[ "Apache-2.0" ]
null
null
null
mmdet/models/dense_heads/posenc_yolo_head.py
clintonjwang/mmdetection
f0d1aebdc162ab7e3748d7ac050b523476639818
[ "Apache-2.0" ]
1
2021-12-01T04:15:47.000Z
2021-12-01T04:15:47.000Z
mmdet/models/dense_heads/posenc_yolo_head.py
clintonjwang/mmdetection
f0d1aebdc162ab7e3748d7ac050b523476639818
[ "Apache-2.0" ]
null
null
null
from ..builder import HEADS from .yolo_head import YOLOV3Head from mmcv.cnn import ConvModule import torch, einops nn = torch.nn F = torch.nn.functional @HEADS.register_module() class PositionalEncodingYOLOV3Head(YOLOV3Head): def __init__(self, num_frequencies, **kwargs): self.L = num_frequencies s...
36.466667
118
0.587294
4b268f0b3eaecf2f80e1a4786df8069425831440
253
py
Python
tinkerforge_remote_switch/__init__.py
MoeweX/RemoteSwitchBricklet_MQTT
23c4d96dc18c6a137e6257a2ad1974310f435078
[ "MIT" ]
null
null
null
tinkerforge_remote_switch/__init__.py
MoeweX/RemoteSwitchBricklet_MQTT
23c4d96dc18c6a137e6257a2ad1974310f435078
[ "MIT" ]
null
null
null
tinkerforge_remote_switch/__init__.py
MoeweX/RemoteSwitchBricklet_MQTT
23c4d96dc18c6a137e6257a2ad1974310f435078
[ "MIT" ]
null
null
null
# coding=utf-8 from logging.config import dictConfig import toml from tinkerforge_remote_switch.Config import Config # enable logging dictConfig(toml.load("../resources/logging.toml")) # load configuration CONFIG = Config("../resources/config.toml")
21.083333
51
0.786561
a6e208e8938b3027a7afee45ef4e4d3668f46728
881
py
Python
netbox_icinga/livestatus.py
izabela1337/netbox-icinga
37ec689fe0bfc524c692a7777354c336c2a98cf2
[ "BSD-3-Clause" ]
null
null
null
netbox_icinga/livestatus.py
izabela1337/netbox-icinga
37ec689fe0bfc524c692a7777354c336c2a98cf2
[ "BSD-3-Clause" ]
null
null
null
netbox_icinga/livestatus.py
izabela1337/netbox-icinga
37ec689fe0bfc524c692a7777354c336c2a98cf2
[ "BSD-3-Clause" ]
null
null
null
import json import socket TIMEOUT = 3 # seconds BUFFER_SIZE = 4096 # bytes def hoststatus(hostname: str, livestatus_host: str, livestatus_port: int): """Fetches livestatus from icinga about hostname.""" query = ( "GET hosts\n" + "Filter: host_name = %s\n" % hostname + "OutputFormat:...
23.184211
74
0.601589
299787d80432c80b9052ccbc398de764a531c601
4,486
py
Python
sdks/python/http_client/v1/polyaxon_sdk/models/v1_hp_log_normal.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_hp_log_normal.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
null
null
null
sdks/python/http_client/v1/polyaxon_sdk/models/v1_hp_log_normal.py
rimon-safesitehq/polyaxon
c456d5bec00b36d75feabdccffa45b2be9a6346e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright 2018-2021 Polyaxon, 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 ...
27.353659
98
0.588498
caacc66453ba664512c03e32c602d3a7ebc21721
9,468
py
Python
vision_transform_codes/analysis_transforms/convolutional/ista_fista.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
vision_transform_codes/analysis_transforms/convolutional/ista_fista.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
vision_transform_codes/analysis_transforms/convolutional/ista_fista.py
spencerkent/vision-transform-codes
63258ce698e436ee3ce29def75c89337759fb98b
[ "BSD-3-Clause" ]
null
null
null
""" Iterative Shrinkage/Thresholding for convolutional sparse inference What I mean by convolutional is that the basis functions are convolved with the sparse codes to produce an image. The basis functions will be much smaller than the images. Implements both the vanilla and accelerated variant (FISTA). .. [1] Beck,...
47.818182
79
0.717892
af74c22cf779026b4d0b5884603292a51eb01b9b
25,189
py
Python
src/elf.py
madushan1000/ghidra2dwarf
51c6c3810010a564a31a2d1de93a1067d02080b7
[ "MIT" ]
null
null
null
src/elf.py
madushan1000/ghidra2dwarf
51c6c3810010a564a31a2d1de93a1067d02080b7
[ "MIT" ]
null
null
null
src/elf.py
madushan1000/ghidra2dwarf
51c6c3810010a564a31a2d1de93a1067d02080b7
[ "MIT" ]
null
null
null
import struct class ElfBase(object): def __init__(self, file_offset, map, values, **kwargs): self.__dict__['map'] = map self.file_offset = file_offset for n, v in zip(map, values): if isinstance(n, tuple): n, f = n v = f(v) setattr(self, n, v) @property def values(self): vv = (g...
41.703642
235
0.718607
cbff7f0a241e27ac588cbc07b859704fed2f931f
4,130
py
Python
pytheos/utils.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
null
null
null
pytheos/utils.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
1
2021-10-30T16:31:41.000Z
2021-10-30T16:31:41.000Z
pytheos/utils.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
1
2021-10-30T14:24:58.000Z
2021-10-30T14:24:58.000Z
#!/usr/bin/env python """ General utility functions """ from __future__ import annotations import re from socket import socket from typing import Optional import netifaces CHARACTER_REPLACE_MAP = { '&': '%26', '=': '%3D', '%': '%25', } def extract_host(url: str) -> Optional[str]: """ Extracts the ...
30.145985
109
0.67724
2f298a84489542127f81d495823158d13ea333fd
2,579
py
Python
io_scene_xray/details/types.py
vika-sonne/blender-xray
a9b9b9e3c83500e5431ec9e692ed57aff63ea43c
[ "BSD-2-Clause" ]
null
null
null
io_scene_xray/details/types.py
vika-sonne/blender-xray
a9b9b9e3c83500e5431ec9e692ed57aff63ea43c
[ "BSD-2-Clause" ]
null
null
null
io_scene_xray/details/types.py
vika-sonne/blender-xray
a9b9b9e3c83500e5431ec9e692ed57aff63ea43c
[ "BSD-2-Clause" ]
null
null
null
import bpy from . import utils class XRayObjectDetailsSlotsMeshesProperties(bpy.types.PropertyGroup): mesh_0 = bpy.props.StringProperty() mesh_1 = bpy.props.StringProperty() mesh_2 = bpy.props.StringProperty() mesh_3 = bpy.props.StringProperty() class XRayObjectDetailsSlotsLightingProperties(bpy.ty...
27.43617
76
0.645599
453150774e4ada6553f9a6fae527082c95ab8352
9,536
py
Python
sgnlp/models/lif_3way_ap/modules/layers.py
jonheng/sgnlp
aeee85b78de2e449ca1dc6b18686a060cb938d07
[ "MIT" ]
null
null
null
sgnlp/models/lif_3way_ap/modules/layers.py
jonheng/sgnlp
aeee85b78de2e449ca1dc6b18686a060cb938d07
[ "MIT" ]
null
null
null
sgnlp/models/lif_3way_ap/modules/layers.py
jonheng/sgnlp
aeee85b78de2e449ca1dc6b18686a060cb938d07
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn as nn from allennlp.nn.util import masked_softmax class CharCNNEmbedding(nn.Module): def __init__(self, num_embeddings, embedding_dim, num_filters, kernel_size, padding_idx=0, stride=1, dropout=0.3): super(CharCNNEmbedding, self).__init__() self.embe...
36.396947
118
0.586514
c4320e6ecae62d0c63235d40353267caece1fc85
13,676
py
Python
protocol/udp_chat_server.py
AntoineHus/C2W
8313ef9a8407ff6fe68cc410d6fc656966751485
[ "Apache-2.0" ]
null
null
null
protocol/udp_chat_server.py
AntoineHus/C2W
8313ef9a8407ff6fe68cc410d6fc656966751485
[ "Apache-2.0" ]
null
null
null
protocol/udp_chat_server.py
AntoineHus/C2W
8313ef9a8407ff6fe68cc410d6fc656966751485
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from twisted.internet.protocol import DatagramProtocol from c2w.main.lossy_transport import LossyTransport from c2w.main.constants import ROOM_IDS import logging import ctypes import struct import random from twisted.internet import reactor from c2w.main.movie import * from c2w.main.user import ...
37.264305
211
0.690333
8ef8360c1d179f0fa647ad68098261cbc9b6ad8b
756
py
Python
Q012_LCM_Variant.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
Q012_LCM_Variant.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
Q012_LCM_Variant.py
latika18/learning
a57c9aacc0157bf7c318f46c1e7c4971d1d55aea
[ "Unlicense" ]
null
null
null
#Find LCM (Lowest Common Multiple) of two numbers a, b #Example Inputs >>> 9, 3 o/p 9 # >>> 10, 75 o/p 150 # >>> 190, 51 o/p 9690 #Using the LCM formula LCM = a*b / gcd(a,b) def LCM(x , y): """ define a function LCM which takes two integer inputs and return their LCM using the for...
28
129
0.527778
8fa1cbc28e6a7bb986475ce16dda5a3a2fe2276e
6,389
py
Python
vjezba12/Vjezba12-Vedran Milkovic.py
Miillky/uvod_u_programiranje
209611e38c8fe84c727649df4b868a4278eb77c3
[ "MIT" ]
null
null
null
vjezba12/Vjezba12-Vedran Milkovic.py
Miillky/uvod_u_programiranje
209611e38c8fe84c727649df4b868a4278eb77c3
[ "MIT" ]
null
null
null
vjezba12/Vjezba12-Vedran Milkovic.py
Miillky/uvod_u_programiranje
209611e38c8fe84c727649df4b868a4278eb77c3
[ "MIT" ]
null
null
null
from tkinter import * def prikaziObavijest(v): messagebox.showinfo("ZAHVALA",str(v)+" hvala na suradnji!") glavni = Tk() oznaka = Label(glavni, text="Unesi ime:") oznaka.pack() unos = Entry(glavni) unos.pack() tipka = Button(glavni, text="Poruka", command=lambda:prikaziObavijest(unos.get())) tipka.pack() glavni ...
34.722826
127
0.674753
0adf6ca24287003cee5561020caa7ba36d192e85
1,665
py
Python
renewable_energy_analysis/cleaning/meridian_countries.py
Batto1300/renewable-energy-analysis
0825f024779a9469ac46175a80069f2e3ae0943a
[ "MIT" ]
1
2018-11-25T14:46:21.000Z
2018-11-25T14:46:21.000Z
renewable_energy_analysis/cleaning/meridian_countries.py
Batto1300/renewable-energy-analysis
0825f024779a9469ac46175a80069f2e3ae0943a
[ "MIT" ]
4
2018-10-10T14:48:54.000Z
2018-11-20T12:10:30.000Z
renewable_energy_analysis/cleaning/meridian_countries.py
Batto1300/renewable-energy-analysis
0825f024779a9469ac46175a80069f2e3ae0943a
[ "MIT" ]
1
2018-12-18T06:38:08.000Z
2018-12-18T06:38:08.000Z
""" This script cleans the original data set containing the latitude distance. Firsly, we filter the dataset for those countries which are common to all datasets. Secondly, just as a data manipulation exercise, we convert the latitude figures from degrees to kilometres (meridian distance). ...
40.609756
82
0.772372
d9bda51ac189f0284fe03ccff3526079dbc3137b
4,428
py
Python
kubernetes/client/models/v1_local_volume_source.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
1
2021-06-10T23:44:11.000Z
2021-06-10T23:44:11.000Z
kubernetes/client/models/v1_local_volume_source.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1_local_volume_source.py
sgwilliams-ebsco/python
35e6406536c96d4769ff7e2a02bf0fdcb902a509
[ "Apache-2.0" ]
1
2018-11-06T16:33:43.000Z
2018-11-06T16:33:43.000Z
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.12.2 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re...
28.384615
245
0.567299
1bea130de285c629059c1e70fa855ff1b261e2e7
124
py
Python
hackerrank/miniMaxSum.py
irvandindaprakoso/online-test-py
a7a6cd98ba3e0b74558ecb7e431eb2729077a38a
[ "W3C" ]
null
null
null
hackerrank/miniMaxSum.py
irvandindaprakoso/online-test-py
a7a6cd98ba3e0b74558ecb7e431eb2729077a38a
[ "W3C" ]
null
null
null
hackerrank/miniMaxSum.py
irvandindaprakoso/online-test-py
a7a6cd98ba3e0b74558ecb7e431eb2729077a38a
[ "W3C" ]
null
null
null
def miniMaxSum(arr): arr.sort() sum1 = sum(arr[0:len(arr)-1]) sum2 = sum(arr[1:len(arr)]) print(sum1, sum2)
20.666667
33
0.572581
f60747181629588d612a87e4abc99c0f764efc65
485
py
Python
env/Lib/site-packages/plotly/validators/scattercarpet/_hovertemplate.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/Lib/site-packages/plotly/validators/scattercarpet/_hovertemplate.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/Lib/site-packages/plotly/validators/scattercarpet/_hovertemplate.py
andresgreen-byte/Laboratorio-1--Inversion-de-Capital
8a4707301d19c3826c31026c4077930bcd6a8182
[ "MIT" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
import _plotly_utils.basevalidators class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): def __init__( self, plotly_name="hovertemplate", parent_name="scattercarpet", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, ...
32.333333
80
0.659794
09d31ab502ec9eacfdea44661c80aaad11c1fff3
2,359
py
Python
pybo/views/answer_views.py
PARKINHYO/pybo-docker
04e4aba61ae7b40f03f865ecf3b9a59cbaca90da
[ "MIT" ]
1
2021-09-25T23:40:53.000Z
2021-09-25T23:40:53.000Z
pybo/views/answer_views.py
PARKINHYO/pybo-docker
04e4aba61ae7b40f03f865ecf3b9a59cbaca90da
[ "MIT" ]
null
null
null
pybo/views/answer_views.py
PARKINHYO/pybo-docker
04e4aba61ae7b40f03f865ecf3b9a59cbaca90da
[ "MIT" ]
null
null
null
from django.contrib import messages from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404, redirect, resolve_url from django.utils import timezone from ..forms import AnswerForm from ..models import Question, Answer @login_required(login_url='common:login') ...
34.691176
87
0.65621
5855a6c49fdb5f15e80d23f53b524c32db1a704d
2,273
py
Python
scripts/process_TCGA_clinical.py
pdxgx/immunorx_response_pipeline
5a3faa72370e96545b46caa790090d022eaa5ece
[ "MIT" ]
4
2020-07-19T19:31:41.000Z
2020-12-18T06:46:21.000Z
scripts/process_TCGA_clinical.py
pdxgx/immunorx_response_pipeline
5a3faa72370e96545b46caa790090d022eaa5ece
[ "MIT" ]
null
null
null
scripts/process_TCGA_clinical.py
pdxgx/immunorx_response_pipeline
5a3faa72370e96545b46caa790090d022eaa5ece
[ "MIT" ]
1
2021-05-05T14:28:53.000Z
2021-05-05T14:28:53.000Z
#!/usr/bin/env python from __future__ import print_function import argparse import glob import os import pandas as pd from collections import defaultdict if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--maf-dir', '-m', type=str,required=True, help='path to directory contain...
39.189655
113
0.66564
6e824bfce6ff31500f330d14622190f045363c83
25,446
py
Python
Jupyter/ChapitresTheoriques/ReguLabFct.py
AlbanVl/ReguCoursGramme
292a063ac9a4bb23631e53bdb6fa05f5953308f8
[ "MIT" ]
null
null
null
Jupyter/ChapitresTheoriques/ReguLabFct.py
AlbanVl/ReguCoursGramme
292a063ac9a4bb23631e53bdb6fa05f5953308f8
[ "MIT" ]
null
null
null
Jupyter/ChapitresTheoriques/ReguLabFct.py
AlbanVl/ReguCoursGramme
292a063ac9a4bb23631e53bdb6fa05f5953308f8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue May 11 10:23:05 2021 Fonctions utiles pour utiliser python en régu @author: Alban Van Laethem """ from control.matlab import * #from control.freqplot import default_frequency_range import control.nichols as cn import numpy as np import matplotlib.pyplot as plt import scipy ...
31.76779
169
0.589641
ebb98d1a921c468667c4f091165a4cfc08797776
13,969
py
Python
recipes/protobuf/all/conanfile.py
dpronin/conan-center-index
5c6e41a618097d04e731c9831118a51dcb39ab3f
[ "MIT" ]
null
null
null
recipes/protobuf/all/conanfile.py
dpronin/conan-center-index
5c6e41a618097d04e731c9831118a51dcb39ab3f
[ "MIT" ]
1
2021-11-22T13:54:48.000Z
2021-11-22T14:09:45.000Z
recipes/protobuf/all/conanfile.py
dpronin/conan-center-index
5c6e41a618097d04e731c9831118a51dcb39ab3f
[ "MIT" ]
null
null
null
from conan.tools.files import rename from conan.tools.microsoft import msvc_runtime_flag from conans import ConanFile, CMake, tools from conans.errors import ConanInvalidConfiguration import functools import os import textwrap required_conan_version = ">=1.43.0" class ProtobufConan(ConanFile): name = "protobuf" ...
49.014035
213
0.654163
b85bbda1225dadb2b31cb216674462c452473c1d
18,093
py
Python
numba/cuda/tests/cudapy/test_intrinsics.py
skailasa/numba
38ab89dd369a14b8826d3fa30d080aa083aed00b
[ "BSD-2-Clause", "BSD-3-Clause" ]
6,620
2015-01-04T08:51:04.000Z
2022-03-31T12:52:18.000Z
numba/cuda/tests/cudapy/test_intrinsics.py
skailasa/numba
38ab89dd369a14b8826d3fa30d080aa083aed00b
[ "BSD-2-Clause", "BSD-3-Clause" ]
6,457
2015-01-04T03:18:41.000Z
2022-03-31T17:38:42.000Z
numba/cuda/tests/cudapy/test_intrinsics.py
skailasa/numba
38ab89dd369a14b8826d3fa30d080aa083aed00b
[ "BSD-2-Clause", "BSD-3-Clause" ]
930
2015-01-25T02:33:03.000Z
2022-03-30T14:10:32.000Z
import itertools import numpy as np import re from numba import cuda, int64 from numba.cuda.testing import unittest, CUDATestCase, skip_on_cudasim def simple_threadidx(ary): i = cuda.threadIdx.x ary[0] = i def fill_threadidx(ary): i = cuda.threadIdx.x ary[i] = i def fill3d_threadidx(ary): i = ...
34.267045
90
0.577848
9711f1393ff56670e6a9f73fac8aa90b49363fcc
3,422
py
Python
selfdrive/car/toyota/radar_interface.py
Orbbec-3DPG/openpilot
27e0adc434906e37fd7674160a0a8c2dd5c3c180
[ "MIT" ]
41
2018-07-30T17:36:37.000Z
2021-04-05T13:24:19.000Z
selfdrive/car/toyota/radar_interface.py
Orbbec-3DPG/openpilot
27e0adc434906e37fd7674160a0a8c2dd5c3c180
[ "MIT" ]
14
2018-06-18T17:47:59.000Z
2019-01-10T00:18:00.000Z
selfdrive/car/toyota/radar_interface.py
Orbbec-3DPG/openpilot
27e0adc434906e37fd7674160a0a8c2dd5c3c180
[ "MIT" ]
29
2018-07-31T07:43:25.000Z
2020-08-30T16:44:27.000Z
#!/usr/bin/env python import os import zmq import time from selfdrive.can.parser import CANParser from cereal import car from common.realtime import sec_since_boot from selfdrive.services import service_list import selfdrive.messaging as messaging from selfdrive.car.toyota.values import NO_DSU_CAR RADAR_A_MSGS = list...
31.685185
112
0.622735
c90e6f1e84e410b6925321e475251b91bbf5c7cf
7,183
py
Python
train.py
mikweeh/pyperview
3360ec318f74b434b3b21f22e798242d7862a38c
[ "MIT" ]
null
null
null
train.py
mikweeh/pyperview
3360ec318f74b434b3b21f22e798242d7862a38c
[ "MIT" ]
null
null
null
train.py
mikweeh/pyperview
3360ec318f74b434b3b21f22e798242d7862a38c
[ "MIT" ]
null
null
null
import argparse import json import os import pickle import sys import sagemaker_containers import pandas as pd import torch import torch.optim as optim import torch.utils.data from model import LSTMClassifier def model_fn(model_dir): """Load the PyTorch model from the `model_dir` directory.""" print("Loading ...
38.61828
107
0.653348
ec5e89434fc166ed3ee1439727f390f38cf029dc
8,736
py
Python
service/tests/unittests/testExceptions.py
ehenneken/metrics_service
b910e57f3a923637a71049b96ffa4ec11ec1fdea
[ "MIT" ]
null
null
null
service/tests/unittests/testExceptions.py
ehenneken/metrics_service
b910e57f3a923637a71049b96ffa4ec11ec1fdea
[ "MIT" ]
null
null
null
service/tests/unittests/testExceptions.py
ehenneken/metrics_service
b910e57f3a923637a71049b96ffa4ec11ec1fdea
[ "MIT" ]
null
null
null
import sys import os PROJECT_HOME = os.path.abspath( os.path.join(os.path.dirname(__file__), '../../')) sys.path.append(PROJECT_HOME) from flask.ext.testing import TestCase from flask import request from flask import url_for, Flask from sqlalchemy import Column, Integer, String, Float, DateTime, Boolean from sqlalc...
34.529644
79
0.632898
cee75e3085623490095d97d1193e88d8d1e175b2
121
py
Python
class and objects/Getting Parents classes of a class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
6
2020-08-13T11:49:29.000Z
2021-03-07T05:46:17.000Z
class and objects/Getting Parents classes of a class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
null
null
null
class and objects/Getting Parents classes of a class.py
ZephyrAveryl777/Python-Programs
26de85c31af28382d406d27d54186b966a7b1bfc
[ "MIT" ]
1
2021-04-24T06:12:48.000Z
2021-04-24T06:12:48.000Z
class A(object): pass class B(object): pass class C(A,B): pass print(f'Parent Classes are: {C.__bases__}')
12.1
43
0.628099
2a601ea707a20e3e958d11a989829c8062d1aef9
2,034
py
Python
matplotlib_examples/examples_src/pylab_examples/mri_with_eeg.py
xzlmark/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
3
2020-04-09T02:35:26.000Z
2021-02-27T17:00:21.000Z
matplotlib_examples/examples_src/pylab_examples/mri_with_eeg.py
colorworlds/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
null
null
null
matplotlib_examples/examples_src/pylab_examples/mri_with_eeg.py
colorworlds/webspider
133c620c65aa45abea1718b0dada09618c2115bf
[ "Apache-2.0" ]
1
2020-04-09T02:35:08.000Z
2020-04-09T02:35:08.000Z
"""Displays a set of subplots with an MRI image, its intensity histogram and some EEG traces. """ from __future__ import division, print_function import numpy as np import matplotlib.pyplot as plt import matplotlib.cbook as cbook import matplotlib.cm as cm from matplotlib.collections import LineCollection from matpl...
25.425
76
0.713864
8b6b0f9bfcc2c84236e512ae26b01ef6ff7ac3cd
23,530
py
Python
tasks-deploy/dfa/generate.py
chankruze/qctf-school-2018
1e732cf264ee0a94bc2fc1fd8cf3a20660d57605
[ "MIT" ]
null
null
null
tasks-deploy/dfa/generate.py
chankruze/qctf-school-2018
1e732cf264ee0a94bc2fc1fd8cf3a20660d57605
[ "MIT" ]
null
null
null
tasks-deploy/dfa/generate.py
chankruze/qctf-school-2018
1e732cf264ee0a94bc2fc1fd8cf3a20660d57605
[ "MIT" ]
null
null
null
TITLE = "Старый друг" STATEMENT_TEMPLATE = ''' Только что увиделись с моим давним другом. Он не богат, да и не красавец. Но говорит, что всегда носит с собой автомат. Как ни странно, оружия я у него не увидел. Удивился, переспросил. Он лишь усмехнулся и дал мне флешку с этим [файлом](/static/files/10k5ze383e/{}). ...
1,384.117647
23,012
0.739099
cc5e302b02a97e67828a50dc4996dda870ae6919
8,952
py
Python
components/isceobj/Util/ImageUtil/DemImageLib.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
1,133
2022-01-07T21:24:57.000Z
2022-01-07T21:33:08.000Z
components/isceobj/Util/ImageUtil/DemImageLib.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
276
2019-02-10T07:18:28.000Z
2022-03-31T21:45:55.000Z
components/isceobj/Util/ImageUtil/DemImageLib.py
vincentschut/isce2
1557a05b7b6a3e65abcfc32f89c982ccc9b65e3c
[ "ECL-2.0", "Apache-2.0" ]
235
2019-02-10T05:00:53.000Z
2022-03-18T07:37:24.000Z
# # Author: Eric Gurrola # Date: 2016 # import os from isceobj import createDemImage from iscesys.DataManager import createManager def createDem(usnwe, info, insar, demStitcher, useHighResOnly=False, useZeroTiles=False): """ Create a dem object given a user specified snwe lat, lon bounding box (usnwe), a ...
39.964286
100
0.64723
9ebd24f2666d8d23ba57c62d091a8533573ca5aa
7,223
py
Python
merge2.py
unis369/Mytubedownload
73011e4f18165a43f6750a4ce375885ade5f64c6
[ "MIT" ]
null
null
null
merge2.py
unis369/Mytubedownload
73011e4f18165a43f6750a4ce375885ade5f64c6
[ "MIT" ]
null
null
null
merge2.py
unis369/Mytubedownload
73011e4f18165a43f6750a4ce375885ade5f64c6
[ "MIT" ]
null
null
null
# standard library imports import argparse import os import platform import subprocess # third party imports import cursor # local library imports from pytube import YouTube video_audio = 'video codec' resolution = '' abr = '' fps = 0 args = {} fileobj = {} download_count = 1 def main(): global args global v...
27.568702
79
0.564447
90b032d8b7f3f36ba120c464a2c0d0735b0fd4ec
3,252
py
Python
create_opencv_homography_submission_example.py
hosang/ransac-tutorial-2020-data
52810309d8341d538e24a13577c44ae2b4a5ec77
[ "Apache-2.0" ]
null
null
null
create_opencv_homography_submission_example.py
hosang/ransac-tutorial-2020-data
52810309d8341d538e24a13577c44ae2b4a5ec77
[ "Apache-2.0" ]
null
null
null
create_opencv_homography_submission_example.py
hosang/ransac-tutorial-2020-data
52810309d8341d538e24a13577c44ae2b4a5ec77
[ "Apache-2.0" ]
null
null
null
# select the data import numpy as np import h5py import cv2 from utils import * from metrics import * from tqdm import tqdm def create_cv2_submission(split = 'val', inlier_th = 3.0, match_th = 0.85, n_iter=100000): DIR = 'homography' out_model = {} for ds in ['EVD', 'HPatchesSeq']: out_model[ds] = ...
39.180723
110
0.561501
3f6964479476d8bc01d036d660a8b135200e0679
661
py
Python
tests/dist1/setup.py
tirkarthi/humpty
8652cf7b18a09d1a1d73465afd38581ef4e2369e
[ "BSD-3-Clause" ]
14
2015-09-05T20:20:50.000Z
2021-04-08T08:53:20.000Z
tests/dist1/setup.py
tirkarthi/humpty
8652cf7b18a09d1a1d73465afd38581ef4e2369e
[ "BSD-3-Clause" ]
6
2017-05-12T20:46:40.000Z
2020-02-08T05:05:03.000Z
tests/dist1/setup.py
tirkarthi/humpty
8652cf7b18a09d1a1d73465afd38581ef4e2369e
[ "BSD-3-Clause" ]
8
2017-02-13T15:38:53.000Z
2020-11-11T20:16:58.000Z
# -*- coding: utf-8 -*- from setuptools import setup setup( name='dist1', version='0.1', description="A dummy distribution", long_description=u"Long description.\n\nGruß.\n", classifiers=[ "Topic :: Software Development :: Testing", ], author='Jeff Dairiki', author_email='dai...
23.607143
53
0.555219
d685bca8e6543952c82391a2c1141fb12252210f
462
py
Python
tests/test_swf/models/test_timeout.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2021-03-06T22:01:41.000Z
2021-03-06T22:01:41.000Z
tests/test_swf/models/test_timeout.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2021-12-13T20:51:54.000Z
2021-12-13T20:51:54.000Z
tests/test_swf/models/test_timeout.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2017-10-19T00:53:28.000Z
2017-10-19T00:53:28.000Z
from freezegun import freeze_time from moto.swf.models import Timeout from ..utils import make_workflow_execution def test_timeout_creation(): wfe = make_workflow_execution() # epoch 1420113600 == "2015-01-01 13:00:00" timeout = Timeout(wfe, 1420117200, "START_TO_CLOSE") with freeze_time("2015-01-...
24.315789
56
0.71645
e0c4cac8a8f82722bf27628a7d66131a0e820bed
1,526
py
Python
Model/initialize.py
Taoooo9/Cail_Text_similarity_esimtribert
10b0314fdc3fcc60e39737ac563e8538b96ceb19
[ "Apache-2.0" ]
5
2019-12-10T06:49:13.000Z
2022-03-01T15:01:09.000Z
Model/initialize.py
Taoooo9/Cail_Text_similarity_esimtribert
10b0314fdc3fcc60e39737ac563e8538b96ceb19
[ "Apache-2.0" ]
null
null
null
Model/initialize.py
Taoooo9/Cail_Text_similarity_esimtribert
10b0314fdc3fcc60e39737ac563e8538b96ceb19
[ "Apache-2.0" ]
2
2019-12-23T06:46:31.000Z
2021-03-22T11:05:52.000Z
import torch.nn as nn import numpy as np def init_embedding(input_embedding): """ 初始化embedding层权重 """ scope = np.sqrt(3.0 / input_embedding.weight.size(1)) nn.init.uniform_(input_embedding.weight, -scope, scope) def init_lstm_weight(lstm, num_layer=1): """ 初始化lstm权重 """ for i in ...
32.468085
86
0.621887
7d571f8a8ec6869005e87358fee52170db7b050a
96
py
Python
venv/lib/python3.8/site-packages/numpy/core/generate_numpy_api.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/numpy/core/generate_numpy_api.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/numpy/core/generate_numpy_api.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/91/1c/a9/f83043538eb547bf87a5df04206e96b5c1f06d71db1a312c0d9e710e38
96
96
0.895833
d27fae0ffacba3795d16b19541f7898b88f3491c
3,854
py
Python
fuzzers/afl/fuzzer.py
hsachinraj/fuzzbench
9639821132b0bfb70bc7d025ad2964d26b363b25
[ "Apache-2.0" ]
null
null
null
fuzzers/afl/fuzzer.py
hsachinraj/fuzzbench
9639821132b0bfb70bc7d025ad2964d26b363b25
[ "Apache-2.0" ]
null
null
null
fuzzers/afl/fuzzer.py
hsachinraj/fuzzbench
9639821132b0bfb70bc7d025ad2964d26b363b25
[ "Apache-2.0" ]
null
null
null
# 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 agreed to in writing, softw...
34.106195
78
0.672289
c3160832aa22fdfd7f48f3cddabdd019be2fc111
474
py
Python
prototyping/auto-segmentation/mc_old_2/config_prostate_wdsc.py
ethanio12345/pymedphys
cb34c992de8d442eced3385018a194364060092d
[ "Apache-2.0" ]
2
2020-02-04T03:21:20.000Z
2020-04-11T14:17:53.000Z
prototyping/auto-segmentation/mc_old_2/config_prostate_wdsc.py
ethanio12345/pymedphys
cb34c992de8d442eced3385018a194364060092d
[ "Apache-2.0" ]
6
2020-10-06T15:36:46.000Z
2022-02-27T05:15:17.000Z
examples/protyping/pymedphys-segmentation/config_prostate_wdsc.py
cpbhatt/pymedphys
177b3db8e2a6e83c44835d0007d1d5c7a420fd99
[ "Apache-2.0" ]
1
2020-12-20T14:14:00.000Z
2020-12-20T14:14:00.000Z
import loss as loss import tensorflow as tf # DATA DATA_PATH = "./dataset_prostate_cleaned/" MODEL_SAVE = "./prostate_wdsc/wdsc" BATCH_SIZE = 1 OUTPUT_CHANNELS = 3 # COMPILING MODEL LOSS = loss.weighted_dsc_loss INITIAL_LR = 1e-5 OPTIMIZER = tf.keras.optimizers.Adam(lr=INITIAL_LR) METRICS = [loss.dice_metric, tf.kera...
21.545455
85
0.767932
8c595cb2431bc8ce9021445aa563a5dd60c46c5f
2,753
py
Python
karbor-1.3.0/karbor/tests/unit/clients/test_glance_client.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
1
2021-05-23T01:48:25.000Z
2021-05-23T01:48:25.000Z
karbor-1.3.0/karbor/tests/unit/clients/test_glance_client.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
karbor-1.3.0/karbor/tests/unit/clients/test_glance_client.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # ...
37.712329
78
0.616782
4b58dc456b5bfc5639f9639d3a68557c0aefda6a
1,752
py
Python
coin/settings.py
bluppfisk/coindicator
4e128d5a034d39bdbac057299b9bdbc72243986a
[ "MIT" ]
null
null
null
coin/settings.py
bluppfisk/coindicator
4e128d5a034d39bdbac057299b9bdbc72243986a
[ "MIT" ]
null
null
null
coin/settings.py
bluppfisk/coindicator
4e128d5a034d39bdbac057299b9bdbc72243986a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # GSettings from gi.repository import Gio SCHEMA_ID = 'org.blf.indicator.coin' DEFAULTS = { 'refresh': 30, 'exchange': 'kraken', 'assetpair-kraken': 'XXBTZUSD', } class Settings(object): def __init__(self, manual_settings=None): self.settings = None self.man...
30.736842
113
0.603881
22e9bce56c9e7596fab0a72c4e2725b2822f8c22
5,734
py
Python
astley/transformer.py
yunruse/Astley
31ca6b438dc46b01a463b30e92e5ee930ff8452c
[ "CC-BY-4.0" ]
1
2020-11-28T23:10:38.000Z
2020-11-28T23:10:38.000Z
astley/transformer.py
yunruse/Astley
31ca6b438dc46b01a463b30e92e5ee930ff8452c
[ "CC-BY-4.0" ]
null
null
null
astley/transformer.py
yunruse/Astley
31ca6b438dc46b01a463b30e92e5ee930ff8452c
[ "CC-BY-4.0" ]
null
null
null
"""Modified stateful NodeTransformer with QOL functions.""" from ast import NodeTransformer from _ast import AST from types import CodeType from io import TextIOBase from functools import wraps from .node import Node, parse, modify from .nodes import Expression, expr __all__ = "match Language Python".split() def m...
30.994595
86
0.590862
c2a65bba5b9703851af1b63ff8427cf923e1ef5e
55
py
Python
shamus/__init__.py
vladimyr/shamus
1e7c016298e6776c258e64e07641c78dd9953ef5
[ "MIT" ]
2
2018-04-11T06:32:47.000Z
2018-04-13T18:50:54.000Z
shamus/__init__.py
vladimyr/shamus
1e7c016298e6776c258e64e07641c78dd9953ef5
[ "MIT" ]
3
2018-04-10T16:32:08.000Z
2018-04-27T01:36:49.000Z
shamus/__init__.py
marinko-peso/shamus
aac345cc4edbd7dc5a2364e8372f7dc0bc2d731d
[ "MIT" ]
null
null
null
__all__ = [ 'shamus' ] from .shamus import shamus
9.166667
26
0.636364
2f3ea452a3b95458b80f27eaa21113b627dfd053
5,268
py
Python
tests/test_client.py
wankes2000/json2parquet
b3aafdb9341b0b43018625809d6243aeeec690a7
[ "MIT" ]
null
null
null
tests/test_client.py
wankes2000/json2parquet
b3aafdb9341b0b43018625809d6243aeeec690a7
[ "MIT" ]
null
null
null
tests/test_client.py
wankes2000/json2parquet
b3aafdb9341b0b43018625809d6243aeeec690a7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import tempfile import pandas as pd import pyarrow as pa from pyarrow import parquet as pq from json2parquet import client def test_ingest(): """ Test ingesting data with a given schema """ schema = pa.schema([ pa.fi...
30.275862
117
0.606492
84bc3d5912cbbfeb6a0504c24e8d9d3b9171416c
1,526
py
Python
src/digitalmarket/mixins.py
damansinghh/digital-marketplace
3d1797716f39459950fcf10042603890335f7f55
[ "MIT" ]
104
2015-12-11T10:33:17.000Z
2022-03-26T04:36:13.000Z
src/digitalmarket/mixins.py
damansinghh/digital-marketplace
3d1797716f39459950fcf10042603890335f7f55
[ "MIT" ]
6
2020-06-06T01:20:49.000Z
2022-03-12T00:32:27.000Z
src/digitalmarket/mixins.py
damansinghh/digital-marketplace
3d1797716f39459950fcf10042603890335f7f55
[ "MIT" ]
85
2015-12-12T11:26:21.000Z
2022-03-02T21:12:50.000Z
from django.contrib.admin.views.decorators import staff_member_required from django.contrib.auth.decorators import login_required from django.utils.decorators import method_decorator from django.shortcuts import get_object_or_404 from .decorators import ajax_required class AjaxRequiredMixin(object): @method_decora...
28.259259
76
0.766055
8c1e42326e82239c36b3cdff6f051ebf1fde5ba5
2,755
py
Python
src/sphinx-rigado-theme/sphinx_rigado_theme/conf.py
mgeier/sphinx-themes.org
5c057b569e4084ac061692f0bae3685fc4267c80
[ "BSD-2-Clause" ]
null
null
null
src/sphinx-rigado-theme/sphinx_rigado_theme/conf.py
mgeier/sphinx-themes.org
5c057b569e4084ac061692f0bae3685fc4267c80
[ "BSD-2-Clause" ]
null
null
null
src/sphinx-rigado-theme/sphinx_rigado_theme/conf.py
mgeier/sphinx-themes.org
5c057b569e4084ac061692f0bae3685fc4267c80
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # import os # import sys # sys.path.insert(0, os.path.abspath('.')) # -- Project information ----------------------------------------------------- project = 'Sphinx-Themes template' copyright = '2018, sphinx-themes.org' author = 'sphinx-themes.org' # The short X.Y version version = '' # Th...
30.611111
78
0.690381
e94193bd9a1d6bee948b96c0d4a28c665bd600b8
68,078
py
Python
pysnmp-with-texts/ELTEX-TAU8.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/ELTEX-TAU8.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/ELTEX-TAU8.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 ELTEX-TAU8 (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ELTEX-TAU8 # Produced by pysmi-0.3.4 at Wed May 1 13:02:27 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:...
101.457526
7,230
0.761156
f222b124bc8b9c7b5efc886550cf878f89e07a9e
5,378
py
Python
opencamlib/scripts/cutter_shapes.py
JohnyEngine/CNC
e4c77250ab2b749d3014022cbb5eb9924e939993
[ "Apache-2.0" ]
null
null
null
opencamlib/scripts/cutter_shapes.py
JohnyEngine/CNC
e4c77250ab2b749d3014022cbb5eb9924e939993
[ "Apache-2.0" ]
null
null
null
opencamlib/scripts/cutter_shapes.py
JohnyEngine/CNC
e4c77250ab2b749d3014022cbb5eb9924e939993
[ "Apache-2.0" ]
null
null
null
import ocl import camvtk import time import vtk import datetime import math def drawLoops(myscreen, loops, loopcolor): nloop = 0 for lop in loops: n = 0 N = len(lop) first_point=ocl.Point(-1,-1,5) previous=ocl.Point(-1,-1,5) for p in lop: if n==0: # don't dra...
32.39759
138
0.594831
65260e9ceaea40f24409e0e48aa179d6d6915d49
4,446
py
Python
tests/pgshovel/replication/streams/kafka.py
disqus/pgshovel
dc8039f9fe3331a99f10b7e6309151c08a292879
[ "Apache-2.0" ]
13
2015-08-21T09:10:23.000Z
2021-08-15T20:26:00.000Z
tests/pgshovel/replication/streams/kafka.py
disqus/pgshovel
dc8039f9fe3331a99f10b7e6309151c08a292879
[ "Apache-2.0" ]
29
2015-08-14T03:09:55.000Z
2015-09-15T19:29:14.000Z
tests/pgshovel/replication/streams/kafka.py
disqus/pgshovel
dc8039f9fe3331a99f10b7e6309151c08a292879
[ "Apache-2.0" ]
1
2015-08-26T05:55:33.000Z
2015-08-26T05:55:33.000Z
from __future__ import absolute_import import pytest from itertools import islice from kafka import ( KafkaClient, SimpleProducer, ) from tests.pgshovel.fixtures import ( cluster, create_temporary_database, ) from tests.pgshovel.streams.fixtures import ( DEFAULT_PUBLISHER, begin, transacti...
28.683871
111
0.752587
f58ddb1ddf62a05f0e24140373df29ae83ad3606
712
py
Python
setup.py
xinabox/Python-SH01
7805cc375d20ebbe05d15e032b9bab61bb94f9b8
[ "MIT" ]
null
null
null
setup.py
xinabox/Python-SH01
7805cc375d20ebbe05d15e032b9bab61bb94f9b8
[ "MIT" ]
null
null
null
setup.py
xinabox/Python-SH01
7805cc375d20ebbe05d15e032b9bab61bb94f9b8
[ "MIT" ]
null
null
null
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="xinabox-SH01", version="0.0.4", author="Luqmaan Baboo", author_email="luqmaanbaboo@gmail.com", description="Capacitive touch sensor", long_description=long_description, long_descrip...
29.666667
50
0.661517
b3dfbff3d725337976a3c708ae16db1c5e2f0e20
31,340
py
Python
tools/Parser_and_Converters/python/pynmrml/nmrML.py
proccaserra/nmrML
ddddca05880c93e9f7bcdbbe5f1b2a3d0e2f8949
[ "MIT" ]
20
2015-02-04T23:23:11.000Z
2022-03-06T12:58:01.000Z
tools/Parser_and_Converters/python/pynmrml/nmrML.py
proccaserra/nmrML
ddddca05880c93e9f7bcdbbe5f1b2a3d0e2f8949
[ "MIT" ]
85
2015-03-04T19:31:03.000Z
2022-02-03T10:03:08.000Z
tools/Parser_and_Converters/python/pynmrml/nmrML.py
proccaserra/nmrML
ddddca05880c93e9f7bcdbbe5f1b2a3d0e2f8949
[ "MIT" ]
11
2015-01-19T06:19:16.000Z
2022-02-03T10:04:11.000Z
#!/usr/bin/env python # # Generated Wed Oct 30 15:59:51 2013 by generateDS.py version 2.11a. # import sys import nmrML_lib as supermod etree_ = None Verbose_import_ = False ( XMLParser_import_none, XMLParser_import_lxml, XMLParser_import_elementtree ) = range(3) XMLParser_import_library = None try: # lx...
50.224359
440
0.802074
7ecd589e27698d2148cf6f79674dfc710bf8077d
17,481
py
Python
bt/backtest.py
mirca/bt
0363e6fa100d9392dd18e32e3d8379d5e83c28fa
[ "MIT" ]
1
2021-05-07T19:40:16.000Z
2021-05-07T19:40:16.000Z
bt/backtest.py
mirca/bt
0363e6fa100d9392dd18e32e3d8379d5e83c28fa
[ "MIT" ]
null
null
null
bt/backtest.py
mirca/bt
0363e6fa100d9392dd18e32e3d8379d5e83c28fa
[ "MIT" ]
3
2021-05-07T19:40:22.000Z
2022-01-19T19:37:15.000Z
""" Contains backtesting logic and objects. """ from __future__ import division from copy import deepcopy import bt import ffn import pandas as pd import numpy as np from matplotlib import pyplot as plt import pyprind def run(*backtests): """ Runs a series of backtests and returns a Result object containi...
32.674766
79
0.59968
cc98866363e8e35e981b96bac7669d44081138cc
571
py
Python
app/models/book.py
hxj951103/fisher
25208721970e7fd2b80743fce5648683578952ca
[ "MIT" ]
null
null
null
app/models/book.py
hxj951103/fisher
25208721970e7fd2b80743fce5648683578952ca
[ "MIT" ]
null
null
null
app/models/book.py
hxj951103/fisher
25208721970e7fd2b80743fce5648683578952ca
[ "MIT" ]
null
null
null
from sqlalchemy import Column, String, Integer from flask_sqlalchemy import SQLAlchemy db = SQLAlchemy() class Book(db.Model): id = Column(Integer, primary_key=True, autoincrement=True) title = Column(String(50), nullable=False) author = Column(String(30), default="伏名") binding = Column(String(20)) ...
30.052632
62
0.69352
e0d054c1db72205e5113ae85fd80b75a499b60aa
533
py
Python
xanthosvis/tests/test_model.py
JGCRI/xanthosvis
1a8c3396881f099272c298cfacd0ae95b1cc2195
[ "BSD-2-Clause" ]
null
null
null
xanthosvis/tests/test_model.py
JGCRI/xanthosvis
1a8c3396881f099272c298cfacd0ae95b1cc2195
[ "BSD-2-Clause" ]
1
2020-12-03T15:53:35.000Z
2020-12-03T15:53:44.000Z
xanthosvis/tests/test_model.py
JGCRI/xanthosvis
1a8c3396881f099272c298cfacd0ae95b1cc2195
[ "BSD-2-Clause" ]
null
null
null
"""Tests for the main functionality. :author: Chris R. Vernon :email: chris.vernon@pnnl.gov License: BSD 2-Clause, see LICENSE and DISCLAIMER files """ import unittest import xanthosvis.main as tester class TestModel(unittest.TestCase): """Tests for the `ReadConfig` class that reads the input configura...
20.5
92
0.701689
635f78da043974a74d583768256154d7fc648719
390
py
Python
bitmovin_api_sdk/models/audio_volume_format.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
11
2019-07-03T10:41:16.000Z
2022-02-25T21:48:06.000Z
bitmovin_api_sdk/models/audio_volume_format.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
8
2019-11-23T00:01:25.000Z
2021-04-29T12:30:31.000Z
bitmovin_api_sdk/models/audio_volume_format.py
jaythecaesarean/bitmovin-api-sdk-python
48166511fcb9082041c552ace55a9b66cc59b794
[ "MIT" ]
13
2020-01-02T14:58:18.000Z
2022-03-26T12:10:30.000Z
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model class AudioVolumeFormat(Enum): U8 = "U8" S16 = "S16" S32 = "S32" U8P = "U8P" S16P = "S16P" S32P = "S32P" S64 = "S64" S64P = "S64P" FLT = "FLT" ...
17.727273
59
0.589744
ef524cd6c1a54a78b8ab3e73b6bad837db20aba6
1,220
py
Python
adv/dragonyule_cleo.py
pfleg/dl
0566bd5cac32feea7dfd082b199a44b05e8e1e04
[ "Apache-2.0" ]
null
null
null
adv/dragonyule_cleo.py
pfleg/dl
0566bd5cac32feea7dfd082b199a44b05e8e1e04
[ "Apache-2.0" ]
null
null
null
adv/dragonyule_cleo.py
pfleg/dl
0566bd5cac32feea7dfd082b199a44b05e8e1e04
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.d import * def module(): return Dragonyule_Cleo class Dragonyule_Cleo(Adv): a1 = ('a',0.13,'hp70') a3 = ('ecombo',30) conf = {} conf['slots.d'] = Gaibhne_and_Creidhne() conf['acl'] = """ `dragon.act('c3 s end') `s1 `s4 `s3, ...
27.111111
83
0.57541
48acdc5cefbedacbedcfb15402e9476c7b25226e
431
py
Python
examples/test_varargs.py
Naereen/clime
21507e263870690b42595a0dc2abee7e882079bc
[ "MIT" ]
61
2015-01-06T13:10:11.000Z
2021-01-21T07:07:23.000Z
examples/test_varargs.py
Naereen/clime
21507e263870690b42595a0dc2abee7e882079bc
[ "MIT" ]
11
2015-04-08T12:13:20.000Z
2021-08-08T08:44:59.000Z
examples/test_varargs.py
Naereen/clime
21507e263870690b42595a0dc2abee7e882079bc
[ "MIT" ]
5
2015-12-09T16:06:59.000Z
2018-11-10T00:42:06.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- def repeat(message, times=2, count=False, *args, **kargs): '''It repeats the message. options: -m=<str>, --message=<str> The description of this option. -t=<int>, --times=<int> -c, --count ''' print args, kargs s = message * ti...
22.684211
66
0.573086
7719d8da6675149a68666f7a7b27217f088de7da
2,407
py
Python
nimbleclient/v1/api/subnets.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
10
2020-03-10T20:06:36.000Z
2022-02-16T17:55:21.000Z
nimbleclient/v1/api/subnets.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
21
2020-04-07T16:00:11.000Z
2021-05-07T16:09:53.000Z
nimbleclient/v1/api/subnets.py
prachiruparelia-hpe/nimble-python-sdk
a3e99d89e647291caf7936300ae853d21d94d6e5
[ "Apache-2.0" ]
7
2020-03-11T03:45:31.000Z
2020-09-14T18:06:03.000Z
# # © Copyright 2020 Hewlett Packard Enterprise Development LP # # This file was auto-generated by the Python SDK generator; DO NOT EDIT. # from ...resource import Resource, Collection from ...exceptions import NimOSAPIOperationUnsupported class Subnet(Resource): """Search subnets information. Many networki...
42.982143
177
0.687993
3013cc41bfe35741818a47ec5e0f8726016a26ed
1,951
py
Python
allauth/socialaccount/providers/openid/provider.py
manuganji/django-allauth
e7c5fe72c9f35190113572fd0e1c163d6d5e85ef
[ "MIT" ]
2
2016-04-29T10:54:39.000Z
2021-11-17T23:43:29.000Z
allauth/socialaccount/providers/openid/provider.py
manuganji/django-allauth
e7c5fe72c9f35190113572fd0e1c163d6d5e85ef
[ "MIT" ]
null
null
null
allauth/socialaccount/providers/openid/provider.py
manuganji/django-allauth
e7c5fe72c9f35190113572fd0e1c163d6d5e85ef
[ "MIT" ]
null
null
null
try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse from django.core.urlresolvers import reverse from django.utils.http import urlencode from allauth.socialaccount import providers from allauth.socialaccount.providers.base import Provider, ProviderAccount class OpenIDAccou...
34.22807
74
0.549974
fa1268b0be73386ef19d7e32fb1c43bf437572d9
1,212
py
Python
vehicle_detection/visualize.py
ssarangi/self_driving_cars
5494ad50ece98399a3f4b718249b34ce3ede864f
[ "Apache-2.0" ]
null
null
null
vehicle_detection/visualize.py
ssarangi/self_driving_cars
5494ad50ece98399a3f4b718249b34ce3ede864f
[ "Apache-2.0" ]
null
null
null
vehicle_detection/visualize.py
ssarangi/self_driving_cars
5494ad50ece98399a3f4b718249b34ce3ede864f
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import cv2 import matplotlib.image as mpimg from sklearn.externals import joblib import glob from vehicle_detection import * def view_results(model): files = list(glob.iglob("cropped/*.png")) cols = 4 rows = len(files) // 5 + 1 fig, axis = plt.subpl...
27.545455
80
0.605611
61f2d3528d92cba2d2fd6ab0f455ba4df9e87361
11,425
py
Python
code/python/Publisher/v1/fds/sdk/Publisher/model/pa_calculation_column.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
6
2022-02-07T16:34:18.000Z
2022-03-30T08:04:57.000Z
code/python/Publisher/v1/fds/sdk/Publisher/model/pa_calculation_column.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
2
2022-02-07T05:25:57.000Z
2022-03-07T14:18:04.000Z
code/python/Publisher/v1/fds/sdk/Publisher/model/pa_calculation_column.py
factset/enterprise-sdk
3fd4d1360756c515c9737a0c9a992c7451d7de7e
[ "Apache-2.0" ]
null
null
null
""" Publisher API Allow clients to fetch Publisher Analytics through APIs. # noqa: E501 The version of the OpenAPI document: 2 Contact: analytics.api.support@factset.com Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from fds.sdk.Publisher.mod...
43.773946
121
0.571729
5a0b3b25545a353aea5a949734d7e680e83ecb16
2,080
py
Python
system_metrics_collector/test/test_topic_statistics_e2e.py
ros-tooling/system_metrics_collector
59acb990b3007210c11138ca22d34bb4a892cc05
[ "Apache-2.0" ]
19
2019-10-30T23:57:46.000Z
2021-06-11T09:24:20.000Z
system_metrics_collector/test/test_topic_statistics_e2e.py
ros-tooling/system_metrics_collector
59acb990b3007210c11138ca22d34bb4a892cc05
[ "Apache-2.0" ]
192
2019-11-04T17:32:06.000Z
2021-06-09T17:08:20.000Z
system_metrics_collector/test/test_topic_statistics_e2e.py
ros-tooling/system_metrics_collector
59acb990b3007210c11138ca22d34bb4a892cc05
[ "Apache-2.0" ]
9
2019-12-10T13:02:39.000Z
2022-01-11T20:20:16.000Z
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
35.254237
93
0.764904
07719e42dc2098d5f03540cfe4df762e06d1bc26
11,591
py
Python
avglyriccounter/musicbrainz.py
anttikyl/avglyriccounter
18da6d3fac123a1fedb68f4fca9c4482756a5fdd
[ "MIT" ]
null
null
null
avglyriccounter/musicbrainz.py
anttikyl/avglyriccounter
18da6d3fac123a1fedb68f4fca9c4482756a5fdd
[ "MIT" ]
null
null
null
avglyriccounter/musicbrainz.py
anttikyl/avglyriccounter
18da6d3fac123a1fedb68f4fca9c4482756a5fdd
[ "MIT" ]
null
null
null
import requests import threading from time import sleep import logging log = logging.getLogger("avglyriccounter") class MusicBrainzClient(): """ A class used to communicate with the MusicBrainz API. Wraps endpoints into easy to use methods. Only allows one request per second to honor MusicBrainz's r...
38.380795
165
0.632905
1d4f61b7a5a15cc09af03bee105371aba575dc67
1,926
py
Python
1d_cnn-iot/webhook.py
zibuyu1995/DeepLearning
686c33984d9fb392fdc19f8f9c4a12f6114dc82f
[ "MIT" ]
null
null
null
1d_cnn-iot/webhook.py
zibuyu1995/DeepLearning
686c33984d9fb392fdc19f8f9c4a12f6114dc82f
[ "MIT" ]
5
2021-06-08T22:32:23.000Z
2022-02-10T02:48:44.000Z
1d_cnn-iot/webhook.py
zibuyu1995/DeepLearning
686c33984d9fb392fdc19f8f9c4a12f6114dc82f
[ "MIT" ]
null
null
null
import asyncio import json import numpy as np import uvicorn from keras.models import load_model from sklearn.preprocessing import StandardScaler from starlette.applications import Starlette from starlette.background import BackgroundTask from starlette.responses import JSONResponse app = Starlette() queue = asyncio...
24.692308
93
0.643302