hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
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
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
8e4c91eb7d8d3d7397dac30febf5dc19a985e1a2
1,622
py
Python
src/ethereum/utils/transaction.py
norswap/execution-specs
c2274790e8ac2d637c7dbe092477a1b21243916c
[ "CC0-1.0" ]
1
2021-09-07T21:30:14.000Z
2021-09-07T21:30:14.000Z
src/ethereum/utils/transaction.py
norswap/execution-specs
c2274790e8ac2d637c7dbe092477a1b21243916c
[ "CC0-1.0" ]
null
null
null
src/ethereum/utils/transaction.py
norswap/execution-specs
c2274790e8ac2d637c7dbe092477a1b21243916c
[ "CC0-1.0" ]
null
null
null
""" Utility Functions For Transactions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ..contents:: Table of Contents :backlinks: none :local: Introduction ------------ Transactions specific utility functions used in this application. """ from typing import Any, Dict, Tuple from ethereum.base_types import Bytes0 from et...
28.964286
79
0.618372
0
0
0
0
0
0
0
0
617
0.380395
8e4d2378510bf7404cee1326167ef3d70dae42b8
2,383
py
Python
Norm.py
GeospatialDaryl/Norm
51e3427e230be89bdedc1c789c1ddad918149e9f
[ "MIT" ]
null
null
null
Norm.py
GeospatialDaryl/Norm
51e3427e230be89bdedc1c789c1ddad918149e9f
[ "MIT" ]
null
null
null
Norm.py
GeospatialDaryl/Norm
51e3427e230be89bdedc1c789c1ddad918149e9f
[ "MIT" ]
null
null
null
import os import subprocess import sys folderSRT = 'C:\\Users\\repos\\7910_Subliminal\\SRT\\' lenS1 = 22 # 1 - 22 lenS2 = 22 # 23 - 44 lenS3 = 25 # 45 - 69 lenS4 = 26 # 70 - 95 lenS5 = 26 # 96 - 121 lenS6 = 25 # 122 - 146 lenS7 = 22 # 147 - 168 lenS8 = 26 # 169 - 194 lenS9 = 27 # 195 - 221 *double episode* len...
28.369048
109
0.51112
0
0
0
0
0
0
0
0
382
0.160302
8e4dfeb28c1428a1a26134bdf83eecff4fc5db13
153
py
Python
form/email_parser/forms.py
LL06-Reports-Analysis-Dowell/100043-exhibitorlist
036a9f4f826cb7ebd8615c237a23c792edd18f9f
[ "Apache-2.0" ]
null
null
null
form/email_parser/forms.py
LL06-Reports-Analysis-Dowell/100043-exhibitorlist
036a9f4f826cb7ebd8615c237a23c792edd18f9f
[ "Apache-2.0" ]
2
2021-09-22T20:11:17.000Z
2021-11-04T05:37:51.000Z
form/email_parser/forms.py
LL06-Reports-Analysis-Dowell/100043-exhibitorlist
036a9f4f826cb7ebd8615c237a23c792edd18f9f
[ "Apache-2.0" ]
null
null
null
from django import forms from .models import Event class EventForm(forms.ModelForm): class Meta: model = Event fields = '__all__'
15.3
33
0.666667
99
0.647059
0
0
0
0
0
0
9
0.058824
8e4ed343e3d684c83160112816408464927af7e8
10,031
py
Python
allenopt/optimize.py
teffland/allenopt
b1959697e6d3f4c5b0841e27348766c73d2d14bd
[ "MIT" ]
null
null
null
allenopt/optimize.py
teffland/allenopt
b1959697e6d3f4c5b0841e27348766c73d2d14bd
[ "MIT" ]
null
null
null
allenopt/optimize.py
teffland/allenopt
b1959697e6d3f4c5b0841e27348766c73d2d14bd
[ "MIT" ]
null
null
null
""" Optimize a base allennlp configuration with a gaussian process by providing a hyperparam search file. """ from argparse import ArgumentParser import os import numpy as np import json import _jsonnet import subprocess from datetime import datetime from collections import OrderedDict, defaultdict import skopt from ...
41.970711
204
0.676303
0
0
0
0
0
0
0
0
3,674
0.366265
8e4ef574544502590c24383501c76b2bcfc69ec0
279
py
Python
print_backwards.py
brupoon/mustachedNinja
7a44167fa2655ffa206b7f68808efc979b2b6e16
[ "MIT" ]
null
null
null
print_backwards.py
brupoon/mustachedNinja
7a44167fa2655ffa206b7f68808efc979b2b6e16
[ "MIT" ]
null
null
null
print_backwards.py
brupoon/mustachedNinja
7a44167fa2655ffa206b7f68808efc979b2b6e16
[ "MIT" ]
null
null
null
#print_backwards # @brupoon 2014 def print_backwards(string): index = len(string) while index > 0: letter = string[index-1] print(letter) index = index - 1 if __name__ == '__main__': print_backwards("antidisestablishmentarianism")
23.25
51
0.630824
0
0
0
0
0
0
0
0
73
0.261649
8e5060c6fbeb55661750affb00d02656e4130063
970
py
Python
fiblary3/common/net.py
epenet/fiblary
e332289320857c837b7e68f8d969e2338280116c
[ "Apache-2.0" ]
8
2015-04-05T22:12:57.000Z
2021-12-01T22:50:07.000Z
fiblary3/common/net.py
epenet/fiblary
e332289320857c837b7e68f8d969e2338280116c
[ "Apache-2.0" ]
2
2020-09-05T13:03:02.000Z
2022-02-13T14:06:33.000Z
fiblary3/common/net.py
epenet/fiblary
e332289320857c837b7e68f8d969e2338280116c
[ "Apache-2.0" ]
7
2020-07-18T15:20:10.000Z
2022-03-31T06:18:43.000Z
# Copyright 2014 Klaudiusz Staniek # # 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...
26.944444
76
0.707216
0
0
0
0
0
0
0
0
782
0.806186
8e5178728ed7355a5dbc403949cae55f35408aca
1,498
py
Python
api/animals.py
Super-Serious/bot
6cee736848e8beb7c8d004fd21301809a11b2cba
[ "MIT" ]
5
2020-07-19T19:07:27.000Z
2021-12-15T11:30:03.000Z
api/animals.py
Super-Serious/bot
6cee736848e8beb7c8d004fd21301809a11b2cba
[ "MIT" ]
136
2020-07-25T19:29:37.000Z
2022-03-09T15:16:49.000Z
api/animals.py
Super-Serious/bot
6cee736848e8beb7c8d004fd21301809a11b2cba
[ "MIT" ]
5
2020-07-19T18:12:03.000Z
2021-02-22T10:35:11.000Z
from typing import Callable, Dict, Tuple, TYPE_CHECKING, Union from requests import get from telegram import MessageEntity if TYPE_CHECKING: import telegram import telegram.ext def animal(update: 'telegram.Update', _context: 'telegram.ext.CallbackContext') -> None: """Get animal""" if update.message...
32.565217
101
0.618158
0
0
0
0
0
0
0
0
316
0.210948
f3cb8f307948086da941c1c7eb13a063fbf80941
5,030
py
Python
appgate/bytes.py
appgate/sdp-operator
289927e07eca84003aa4bd4631b57dc9955eee23
[ "MIT" ]
6
2020-09-22T13:21:05.000Z
2022-01-06T01:49:22.000Z
appgate/bytes.py
appgate/sdp-operator
289927e07eca84003aa4bd4631b57dc9955eee23
[ "MIT" ]
36
2020-09-23T06:38:51.000Z
2022-02-09T13:53:32.000Z
appgate/bytes.py
appgate/sdp-operator
289927e07eca84003aa4bd4631b57dc9955eee23
[ "MIT" ]
3
2021-07-27T18:16:52.000Z
2022-03-01T22:18:15.000Z
import base64 import binascii import datetime import hashlib import re from typing import Optional, Any, Dict, List, Callable from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat from cryptography.x509 import load_pem_x509_certificate from a...
42.991453
99
0.648111
1,021
0.202982
0
0
0
0
0
0
611
0.121471
f3cba118a37558869d34642f72693aa5c0e2130e
2,422
py
Python
rate_limit/tests/test_actiongroups.py
sapcc/openstack-rate-limit-middleware
107de6130887ecffa91d1d788a3215beb3aab7e1
[ "Apache-2.0" ]
4
2019-05-28T19:40:29.000Z
2021-08-02T23:52:29.000Z
rate_limit/tests/test_actiongroups.py
sapcc/openstack-rate-limit-middleware
107de6130887ecffa91d1d788a3215beb3aab7e1
[ "Apache-2.0" ]
7
2019-06-07T11:59:28.000Z
2021-02-23T09:56:08.000Z
rate_limit/tests/test_actiongroups.py
sapcc/openstack-rate-limit-middleware
107de6130887ecffa91d1d788a3215beb3aab7e1
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 SAP SE # # 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, soft...
24.969072
90
0.551197
1,586
0.654831
0
0
0
0
0
0
952
0.393064
f3cbf2ce4c2a5e6f06d0cb9cd4033d69edef90ae
274
py
Python
Algorithms/Strings/Super Reduced String/solution.py
kitarp29/ds-algo-solutions
c06effdaec2ff014248ca399268934cd8a639b5a
[ "MIT" ]
48
2020-12-04T17:48:47.000Z
2022-02-26T17:56:52.000Z
Algorithms/Strings/Super Reduced String/solution.py
kitarp29/ds-algo-solutions
c06effdaec2ff014248ca399268934cd8a639b5a
[ "MIT" ]
465
2020-12-04T02:12:56.000Z
2021-12-07T16:09:51.000Z
Algorithms/Strings/Super Reduced String/solution.py
kitarp29/ds-algo-solutions
c06effdaec2ff014248ca399268934cd8a639b5a
[ "MIT" ]
199
2020-12-04T02:39:56.000Z
2021-12-07T10:10:50.000Z
#input the string n = input().strip() x = 0 while x+1 < len(n): if n[x] == n[x+1]: n = n[:x]+n[x+2:] if x > 0: x-= 1 else: x += 1 # output the reduced string or Empty String if n == "": print("Empty String") else: print(n)
18.266667
43
0.463504
0
0
0
0
0
0
0
0
76
0.277372
f3cc0089dc85cf890dfb47d6fdaaefffe5ba01cb
5,350
py
Python
corehq/motech/openmrs/forms.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/motech/openmrs/forms.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/motech/openmrs/forms.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.core.exceptions import ValidationError from django.utils.translation import ugettext as _ from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from corehq.apps.userreports.ui.fields import JsonField from corehq.motech.openmrs.const import ( ADDRESS...
52.45098
115
0.605234
4,826
0.902056
0
0
0
0
0
0
1,515
0.283178
f3cce023c21f1bb035661f1e33b8822f11f74165
258
py
Python
11 new lesson STRING/11.25 family.py
zarina494/fisrt_git_lesson
169fc205b3a99a84f1041d578c4c120555162a66
[ "MIT" ]
null
null
null
11 new lesson STRING/11.25 family.py
zarina494/fisrt_git_lesson
169fc205b3a99a84f1041d578c4c120555162a66
[ "MIT" ]
null
null
null
11 new lesson STRING/11.25 family.py
zarina494/fisrt_git_lesson
169fc205b3a99a84f1041d578c4c120555162a66
[ "MIT" ]
null
null
null
def relation_to_Luke(name): if name == 'Darv': return 'Luke, I am your father' elif name == 'Leila': return ' Luke, i am your sister' elif name == 'Han': return ' Luke, i am your brother' print(relation_to_Luke('Leila'))
25.8
41
0.593023
0
0
0
0
0
0
0
0
100
0.387597
f3cf3b7afcc85c390bb7674416c046fd4a943621
5,583
py
Python
tflite2onnx/op/conv.py
briangrifiin/tflite2onnx
e0a30f23d8236673c6a31a9a2a67913ae4cb8644
[ "Apache-2.0" ]
87
2020-09-23T01:16:36.000Z
2022-03-26T01:10:32.000Z
tflite2onnx/op/conv.py
briangrifiin/tflite2onnx
e0a30f23d8236673c6a31a9a2a67913ae4cb8644
[ "Apache-2.0" ]
57
2020-09-23T01:26:13.000Z
2022-01-26T07:58:29.000Z
tflite2onnx/op/conv.py
briangrifiin/tflite2onnx
e0a30f23d8236673c6a31a9a2a67913ae4cb8644
[ "Apache-2.0" ]
23
2020-10-17T11:58:21.000Z
2022-03-24T06:15:18.000Z
import logging import tflite from tflite2onnx.layout import Layout from tflite2onnx.op.activation import handleFusedActivation from tflite2onnx.op.common import Operator from tflite2onnx.op.padding import computePaddingSize logger = logging.getLogger('tflite2onnx') class Conv(Operator): TypeMapping = { ...
33.035503
96
0.610604
5,309
0.950922
0
0
314
0.056242
0
0
1,530
0.274046
f3d037d5110ce4fe3c95a2c0735e768dd5e5b62e
34,349
py
Python
py/Channel.py
cu-madc/vacuum
017315490e7d8cb1fc4f2c99db3b3db316702494
[ "BSD-3-Clause" ]
1
2020-05-19T02:44:55.000Z
2020-05-19T02:44:55.000Z
py/Channel.py
cu-madc/vacuum
017315490e7d8cb1fc4f2c99db3b3db316702494
[ "BSD-3-Clause" ]
null
null
null
py/Channel.py
cu-madc/vacuum
017315490e7d8cb1fc4f2c99db3b3db316702494
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python # # Channel.py # # Created on: 2 Feb, 2011 # Author: Skufka - adapted by black - adapted by PW # # class definition for the channel object not using sockets # # This material is based on research sponsored by DARPA under agreement # number FA8750-10-2-0165. The U.S. Government is a...
33.774828
137
0.692859
25,794
0.750939
0
0
0
0
0
0
13,996
0.407465
f3d6aa2c699fa498e72e587a3c219e9bf3a8b3fb
498
py
Python
registers/migrations/0007_auto_20181023_1338.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
registers/migrations/0007_auto_20181023_1338.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
registers/migrations/0007_auto_20181023_1338.py
mohdbakhrayba/it-assets
ea03882ffd70e40c82f5684dc4980ff46520843b
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.9 on 2018-10-23 05:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('registers', '0006_auto_20181023_1117'), ] operations = [ migrations.AlterField( model_name='changerequest', name='de...
26.210526
148
0.644578
405
0.813253
0
0
0
0
0
0
189
0.379518
f3d95f3840b2b76823ff5d706e05c2d4667f29b6
19,826
py
Python
packages/arb-compiler-evm/arbitrum/ast.py
JesseAbram/arbitrum
fc3b96bf165a201d930af65d6ad93777d897e951
[ "Apache-2.0" ]
1
2021-05-29T11:11:01.000Z
2021-05-29T11:11:01.000Z
packages/arb-compiler-evm/arbitrum/ast.py
JesseAbram/arbitrum
fc3b96bf165a201d930af65d6ad93777d897e951
[ "Apache-2.0" ]
120
2021-02-18T07:19:59.000Z
2022-03-30T12:08:45.000Z
packages/arb-compiler-evm/arbitrum/ast.py
JesseAbram/arbitrum
fc3b96bf165a201d930af65d6ad93777d897e951
[ "Apache-2.0" ]
1
2020-09-20T19:25:23.000Z
2020-09-20T19:25:23.000Z
# Copyright 2019, Offchain Labs, 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 ...
27.536111
87
0.59079
17,984
0.907092
0
0
0
0
0
0
1,892
0.09543
f3da9bfd5a83d4bff0b4a850cbb5746a074cbc82
3,850
bzl
Python
bazel/linux/bundles.bzl
pete-enf/enkit
fe262bef2bdad27bb61135263f10ec848234a9c2
[ "BSD-3-Clause" ]
null
null
null
bazel/linux/bundles.bzl
pete-enf/enkit
fe262bef2bdad27bb61135263f10ec848234a9c2
[ "BSD-3-Clause" ]
null
null
null
bazel/linux/bundles.bzl
pete-enf/enkit
fe262bef2bdad27bb61135263f10ec848234a9c2
[ "BSD-3-Clause" ]
null
null
null
load("//bazel/linux:providers.bzl", "KernelBundleInfo", "KernelImageInfo", "RuntimeBundleInfo", "RuntimeInfo") load("//bazel/linux:utils.bzl", "expand_deps", "get_compatible") load("//bazel/utils:messaging.bzl", "location", "package") load("//bazel/utils:files.bzl", "files_to_dir") load("@bazel_skylib//lib:shell.bzl", ...
38.118812
180
0.603636
0
0
0
0
0
0
0
0
1,307
0.339481
f3daf2d50e0303551f8d62b9050f38bb85c076ce
1,562
py
Python
python/pyqt/LearnPyQt/stack_layout.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pyqt/LearnPyQt/stack_layout.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
python/pyqt/LearnPyQt/stack_layout.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
import sys from PyQt5.QtWidgets import ( QApplication, QMainWindow, QWidget, QVBoxLayout, QStackedLayout, QPushButton, ) from PyQt5.QtGui import ( QPalette, QColor, ) class Color(QWidget): def __init__(self, color, *args, **kwargs): super(Color, self).__init__(*args, **kwa...
23.313433
59
0.644686
1,278
0.818182
0
0
0
0
0
0
56
0.035851
f3db40ee19ad9d3809c14342569f7d2caaa362d3
17,581
py
Python
phase_3_learning/models/seq2seq.py
rpryzant/nmt
fd4aee254aef4a61ca9ed4bc6926f163a94f26e3
[ "MIT" ]
3
2018-03-12T14:29:21.000Z
2018-11-13T07:32:04.000Z
phase_3_learning/models/seq2seq.py
rpryzant/nmt
fd4aee254aef4a61ca9ed4bc6926f163a94f26e3
[ "MIT" ]
null
null
null
phase_3_learning/models/seq2seq.py
rpryzant/nmt
fd4aee254aef4a61ca9ed4bc6926f163a94f26e3
[ "MIT" ]
null
null
null
""" http://arxiv.org/abs/1412.7449 and https://arxiv.org/abs/1508.04025 (mostly the latter) TODO: read from model path if provided beam search decoding unk replacement from attention scores """ import encoders import decoders import tensorflow as tf import numpy as np import os from msc.constants import C...
45.311856
114
0.545532
17,239
0.980547
0
0
0
0
0
0
4,140
0.235481
f3ddd665e60d0bf2e360d9f1687c0e8c2fbb5966
2,376
py
Python
src/estimagic/shared/check_option_dicts.py
PaulBehler/estimagic
c14f743986262d508e55738c90737cb504fe987b
[ "MIT" ]
7
2019-05-11T07:19:46.000Z
2019-05-31T07:03:13.000Z
src/estimagic/shared/check_option_dicts.py
PaulBehler/estimagic
c14f743986262d508e55738c90737cb504fe987b
[ "MIT" ]
14
2019-05-04T14:15:52.000Z
2019-06-10T11:45:27.000Z
src/estimagic/shared/check_option_dicts.py
PaulBehler/estimagic
c14f743986262d508e55738c90737cb504fe987b
[ "MIT" ]
1
2019-05-21T08:44:37.000Z
2019-05-21T08:44:37.000Z
"""Check option dictionaries for minimize, maximize and first_derivative.""" def check_optimization_options(options, usage, algorithm_mandatory=True): """Check optimize_options or maximize_options for usage in estimation functions.""" options = {} if options is None else options if algorithm_mandatory: ...
32.108108
87
0.63931
0
0
0
0
0
0
0
0
1,088
0.457912
f3e1253dea65e55b992c34afad185934a10cd9ae
760
py
Python
model_testing.py
rafaelfrieri1/Optimization-Project
20db5200cd361d358e213310c6eb2997c893ff27
[ "MIT" ]
null
null
null
model_testing.py
rafaelfrieri1/Optimization-Project
20db5200cd361d358e213310c6eb2997c893ff27
[ "MIT" ]
null
null
null
model_testing.py
rafaelfrieri1/Optimization-Project
20db5200cd361d358e213310c6eb2997c893ff27
[ "MIT" ]
null
null
null
from sklearn.model_selection import train_test_split from sklearn.neural_network import MLPClassifier from sklearn.metrics import recall_score, f1_score, precision_score #X and y should be defined from the data. X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=3) mlp = MLPClassifier(max_iter=1000...
47.5
122
0.785526
0
0
0
0
0
0
0
0
209
0.275
f3e127752334b9fc6796ea686021ce802492f31a
80
py
Python
src/pypidata/utils.py
pfmoore/temp
3266ff516d919e3deb7027dbcc710259985f24d4
[ "MIT" ]
1
2021-05-12T07:01:27.000Z
2021-05-12T07:01:27.000Z
src/pypidata/utils.py
pfmoore/temp
3266ff516d919e3deb7027dbcc710259985f24d4
[ "MIT" ]
null
null
null
src/pypidata/utils.py
pfmoore/temp
3266ff516d919e3deb7027dbcc710259985f24d4
[ "MIT" ]
null
null
null
import re def normalize(name): return re.sub(r"[-_.]+", "-", name).lower()
16
47
0.575
0
0
0
0
0
0
0
0
12
0.15
f3e22536d8067ee66cd64d241c6e69d240f5996c
3,392
py
Python
test/pharma/supply_chain/pharma/depharmadatamanager.py
IBM/dse-do-dashboard
30348da5414ef03890e6f3b92a36afc77757a021
[ "Apache-2.0" ]
1
2022-03-24T13:05:22.000Z
2022-03-24T13:05:22.000Z
test/pharma/supply_chain/pharma/depharmadatamanager.py
mgorjis/dse-do-dashboard
8982433ef02d335603469f798c9f110e14bb3af1
[ "Apache-2.0" ]
18
2022-01-13T15:14:52.000Z
2022-03-09T22:58:36.000Z
test/pharma/supply_chain/pharma/depharmadatamanager.py
mgorjis/dse-do-dashboard
8982433ef02d335603469f798c9f110e14bb3af1
[ "Apache-2.0" ]
2
2022-01-19T21:34:58.000Z
2022-01-19T21:35:20.000Z
from typing import Optional, Dict import pandas as pd # from supply_chain.water.supply_chain_schema import SCNFO_SCHEMA # from supply_chain.abbott.abbottdatamanager import AbbottDataManager from supply_chain.pharma.pharmadatamanager import PharmaDataManager from utils.dash_common_utils import ScenarioTableSchema # fro...
45.226667
111
0.62441
2,494
0.735259
0
0
0
0
0
0
1,491
0.439564
f3e34a856aa1b320193e636ce72fc1a183de8078
7,077
py
Python
e/mail-relay/fabfile.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
e/mail-relay/fabfile.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
18
2020-06-05T18:17:40.000Z
2022-03-11T23:25:21.000Z
e/mail-relay/fabfile.py
zhouli121018/nodejsgm
0ccbc8acf61badc812f684dd39253d55c99f08eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import StringIO from fabric.api import env, put, run from fabric.contrib.files import append, contains, exists supervisord_config_template = '''\ [unix_http_server] file={work_dir}/run/supervisor.sock [supervisord] logfile={work_dir}/log/supervisord.log logfile_maxbytes...
32.168182
119
0.614102
0
0
0
0
0
0
0
0
4,280
0.604776
f3e4ad2f418725e124d33f4ea0ae41ca21cc361b
3,124
py
Python
autocomplete/lib/argutils.py
cap-ntu/Autocomplete
3cd85cb8974fba55bbece0cb78beb46dcac265e5
[ "Apache-2.0" ]
7
2019-02-27T09:48:39.000Z
2021-11-30T19:01:01.000Z
zerogercrnn/lib/argutils.py
ZeRoGerc/rnn-autocomplete
39dc8dd7c431cb8ac9e15016388ec823771388e4
[ "Apache-2.0" ]
16
2020-03-10T14:08:35.000Z
2022-02-27T02:56:46.000Z
zerogercrnn/lib/argutils.py
ZeRoGerc/rnn-autocomplete
39dc8dd7c431cb8ac9e15016388ec823771388e4
[ "Apache-2.0" ]
null
null
null
def add_general_arguments(parser): parser.add_argument('--title', type=str, help='Title for this run. Used in tensorboard and in saving of models.') parser.add_argument('--train_file', type=str, help='File with training data') parser.add_argument('--eval_file', type=str, help='File with eval data') pars...
63.755102
120
0.75032
0
0
0
0
0
0
0
0
1,616
0.517286
f3e74f0279ac7b565e15ae42cae38266be347e34
11,178
py
Python
modules/dipmath.py
mavost/boreholetools
0b6caae86cd4e30794e5ec469383914d101d5ee3
[ "MIT" ]
10
2020-03-04T00:55:19.000Z
2021-11-16T17:23:44.000Z
modules/dipmath.py
mavost/boreholetools
0b6caae86cd4e30794e5ec469383914d101d5ee3
[ "MIT" ]
null
null
null
modules/dipmath.py
mavost/boreholetools
0b6caae86cd4e30794e5ec469383914d101d5ee3
[ "MIT" ]
1
2020-12-07T19:49:27.000Z
2020-12-07T19:49:27.000Z
#!/usr/bin/python #Linux shebang plus chmod to make executable # ------------------------------------------------------------ # FILENAME: dipmath.py # VERSION: 1.0 - Python 3.6 # PURPOSE: # AUTHOR: MVS # LAST CHANGE: 04/09/2018 # ------------------------------------------------------------ # tools for manipulating dipm...
39.638298
119
0.565933
8,195
0.733137
0
0
1,071
0.095813
0
0
5,005
0.447755
f3e860a7ce40aa332a6b28696a7ba5588e33d25d
2,579
py
Python
scraper/items.py
jheasly/open-health-inspection-scraper
95c17782626041286996c6384a461c0798a7c61c
[ "Apache-2.0" ]
2
2016-06-06T17:40:42.000Z
2019-06-18T23:12:54.000Z
scraper/items.py
jheasly/open-health-inspection-scraper
95c17782626041286996c6384a461c0798a7c61c
[ "Apache-2.0" ]
15
2015-01-14T23:44:56.000Z
2017-02-15T18:31:35.000Z
scraper/items.py
jheasly/open-health-inspection-scraper
95c17782626041286996c6384a461c0798a7c61c
[ "Apache-2.0" ]
6
2015-01-22T22:49:54.000Z
2019-06-18T23:22:36.000Z
from scrapy.item import Item, Field from scrapy.loader import ItemLoader from scrapy.loader.processors import Identity, MapCompose, TakeFirst, Join from scraper.helpers.vendor_helpers import * from slugify import slugify from datetime import datetime import re def format_date(date_string): return datetime.strptime(da...
22.426087
74
0.766964
2,226
0.863125
0
0
0
0
0
0
143
0.055448
f3e876544f718223952354b4ac3f13e220acfbeb
12,000
py
Python
dependency_wxwidgets.py
madeso/build
79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db
[ "MIT" ]
null
null
null
dependency_wxwidgets.py
madeso/build
79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db
[ "MIT" ]
null
null
null
dependency_wxwidgets.py
madeso/build
79f1d4e592e0f6ebd6bfa3db39cf4ba2b5ef98db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import urllib.request import os import zipfile import sys import argparse import re import subprocess ############################################################################### ## Classes class TextReplacer: def __init__(self): self.res = [] def add(self, reg: str, rep:...
32.171582
216
0.660583
1,352
0.112667
0
0
0
0
0
0
3,109
0.259083
f3ea11353d04c8773687b0313a1924daddc2f149
1,814
py
Python
raw2dataset.py
CoderSLZhang/-LTSM-
c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a
[ "MIT" ]
4
2018-06-20T08:16:19.000Z
2019-01-18T04:44:53.000Z
raw2dataset.py
CoderSLZhang/-LTSM-
c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a
[ "MIT" ]
null
null
null
raw2dataset.py
CoderSLZhang/-LTSM-
c163d53d5177d59e18b88ae5f05b0cf3a8aecf6a
[ "MIT" ]
2
2018-06-15T09:55:12.000Z
2018-06-20T08:16:19.000Z
# zhangshulin # 2018-3-17 # e-mail: zhangslwork@yeah.net TRAIN_IN_PATH = './datasets/rawdata/train/in.txt' TRAIN_OUT_PATH = './datasets/rawdata/train/out.txt' TEST_IN_PATH = './datasets/rawdata/test/in.txt' TEST_OUT_PATH = './datasets/rawdata/test/out.txt' TOTAL_PATH = './datasets/all_couplets.txt' def create_data_...
34.226415
93
0.681367
0
0
0
0
0
0
0
0
333
0.183168
f3ebfa36492777ce768867625106b72c8d70ef9a
13,623
py
Python
rayvision_c4d/analyze_c4d.py
renderbus/rayvision_c4d
e040d91c8f19c62d9722cd165bc0bedb657340b7
[ "Apache-2.0" ]
null
null
null
rayvision_c4d/analyze_c4d.py
renderbus/rayvision_c4d
e040d91c8f19c62d9722cd165bc0bedb657340b7
[ "Apache-2.0" ]
null
null
null
rayvision_c4d/analyze_c4d.py
renderbus/rayvision_c4d
e040d91c8f19c62d9722cd165bc0bedb657340b7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """A interface for c4d.""" # Import built-in models from __future__ import print_function from __future__ import unicode_literals import base64 import hashlib import logging import os import sys import time from builtins import str from rayvision_c4d.constants import PACKAGE_NAME from rayvisi...
36.328
107
0.585701
12,943
0.950084
0
0
568
0.041694
0
0
3,655
0.268296
f3ecd4d330691845861c24d37aaea5f8c3a8ca9b
1,502
py
Python
openr/py/openr/clients/decision_client.py
tejashri29/openrfork1
ab4ef26993903fe1cf909aeb38701e9ada374c13
[ "MIT" ]
6
2018-04-29T00:28:03.000Z
2021-01-18T15:29:41.000Z
openr/py/openr/clients/decision_client.py
tejashri29/openrfork1
ab4ef26993903fe1cf909aeb38701e9ada374c13
[ "MIT" ]
null
null
null
openr/py/openr/clients/decision_client.py
tejashri29/openrfork1
ab4ef26993903fe1cf909aeb38701e9ada374c13
[ "MIT" ]
4
2018-02-14T20:47:10.000Z
2019-01-17T08:45:31.000Z
# # Copyright (c) 2014-present, Facebook, Inc. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals from __future__ import divi...
31.957447
86
0.721704
1,070
0.712383
0
0
0
0
0
0
173
0.11518
f3ef89e91876433fd644f579cc48aa7c9c57a992
656
py
Python
main/xdg-utils/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
46
2021-06-10T02:27:32.000Z
2022-03-27T11:33:24.000Z
main/xdg-utils/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
58
2021-07-03T13:58:20.000Z
2022-03-13T16:45:35.000Z
main/xdg-utils/template.py
RoastVeg/cports
803c7f07af341eb32f791b6ec1f237edb2764bd5
[ "BSD-2-Clause" ]
6
2021-07-04T10:46:40.000Z
2022-01-09T00:03:59.000Z
pkgname = "xdg-utils" pkgver = "1.1.3" pkgrel = 0 _commit = "d11b33ec7f24cfb1546f6b459611d440013bdc72" build_style = "gnu_configure" make_cmd = "gmake" make_dir = "." hostmakedepends = ["xmlto", "lynx", "gmake"] depends = ["xset"] pkgdesc = "Basic desktop integration scripts" maintainer = "q66 <q66@chimera-linux.org>" ...
31.238095
83
0.742378
0
0
0
0
0
0
0
0
407
0.620427
f3f055d2d43051b7e1d0b360516d537f45dd36e6
591
py
Python
setup.py
goosechooser/file-manip-toolkit
2a1a14b3e53b63ae2224e62d1a2184249e4af440
[ "MIT" ]
null
null
null
setup.py
goosechooser/file-manip-toolkit
2a1a14b3e53b63ae2224e62d1a2184249e4af440
[ "MIT" ]
3
2017-04-05T08:08:42.000Z
2017-04-05T09:58:10.000Z
setup.py
goosechooser/file-manip-toolkit
2a1a14b3e53b63ae2224e62d1a2184249e4af440
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open('README.md') as f: readme = f.read() with open('LICENSE') as f: license = f.read() setup( name='file-manip-toolkit', version='1.1', description='collection of tools for low level binary manipulations of files', long_description=readme, ...
24.625
82
0.641286
0
0
0
0
0
0
0
0
225
0.380711
f3f25f5d972972cc7fc6131be78ccaf5e519a99c
6,603
py
Python
src/pyfinlab/backtesting.py
vishalbelsare/pyfinlab
63c0d3f639e4cdae19096a2069967fdf7f66d8ab
[ "BSD-3-Clause" ]
8
2021-07-19T21:08:26.000Z
2021-12-04T22:10:01.000Z
src/pyfinlab/backtesting.py
vishalbelsare/pyfinlab
63c0d3f639e4cdae19096a2069967fdf7f66d8ab
[ "BSD-3-Clause" ]
null
null
null
src/pyfinlab/backtesting.py
vishalbelsare/pyfinlab
63c0d3f639e4cdae19096a2069967fdf7f66d8ab
[ "BSD-3-Clause" ]
4
2021-07-19T21:08:37.000Z
2021-10-05T19:34:30.000Z
import bt import pandas as pd import numpy as np import matplotlib.pyplot as plt from datetime import datetime from pyfinlab import data_api as api """ These functions backtest the efficient frontier portfolios. """ class OrderedWeights(bt.Algo): def __init__(self, weights): self.target_weights = weights...
46.174825
129
0.681508
243
0.036801
0
0
0
0
0
0
3,871
0.586249
f3f2c852678fa5d35b8d2a46acf9b6507ca1bf3d
2,318
py
Python
sent/sentiment.py
RA-VI-RUS/senti
bccfdfe7033be263d34258b44f6527c39d857719
[ "MIT" ]
1
2016-03-25T01:57:41.000Z
2016-03-25T01:57:41.000Z
sent/sentiment.py
RA-VI-RUS/senti
bccfdfe7033be263d34258b44f6527c39d857719
[ "MIT" ]
null
null
null
sent/sentiment.py
RA-VI-RUS/senti
bccfdfe7033be263d34258b44f6527c39d857719
[ "MIT" ]
null
null
null
""" Sentiment prediction module """ import nltk import numpy as np from cPickle import load def get_word_index_array(words, word2index): u""" Transform the words into list of int(word index) Note: Unknown words are dropped >>> words = [u"I", u"love", u"you", u"RANDOM STUFF"] >>> word2ind...
29.341772
188
0.633305
0
0
0
0
0
0
0
0
1,151
0.496549
f3f5715946eab9fedb592e1f0e7140af27f37fbd
2,362
py
Python
scripts/results-processing/generate_cmc_curves.py
Dou-Yu-xuan/pykinship
f81f6667fa08a08fe726736d05476168b2a3e2f0
[ "MIT" ]
12
2020-02-19T02:50:49.000Z
2022-03-31T19:39:35.000Z
scripts/results-processing/generate_cmc_curves.py
Dou-Yu-xuan/pykinship
f81f6667fa08a08fe726736d05476168b2a3e2f0
[ "MIT" ]
68
2020-03-23T00:07:28.000Z
2022-03-28T10:02:16.000Z
scripts/results-processing/generate_cmc_curves.py
Dou-Yu-xuan/pykinship
f81f6667fa08a08fe726736d05476168b2a3e2f0
[ "MIT" ]
3
2020-02-11T19:07:08.000Z
2020-11-04T18:48:00.000Z
from pathlib import Path import numpy as np import pandas as pd import torch from matplotlib import pyplot as plt from src.tools.metrics import evaluate def load_dataframes(din, wildcard="*fusion*.csv"): data = {} for f in din.glob(wildcard): print(f) ref = "-".join(f.with_name("").name.spli...
29.525
87
0.629551
0
0
0
0
0
0
0
0
406
0.171888
f3f694c253c50689ab808a6179d10da6fe162e10
1,615
py
Python
calendarium/templatetags/calendarium_tags.py
Reston/django-calendarium
7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8
[ "MIT" ]
null
null
null
calendarium/templatetags/calendarium_tags.py
Reston/django-calendarium
7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8
[ "MIT" ]
null
null
null
calendarium/templatetags/calendarium_tags.py
Reston/django-calendarium
7b12b1d6845002378bcd18d91f8ce9c46ef6c9d8
[ "MIT" ]
1
2019-02-21T16:47:58.000Z
2019-02-21T16:47:58.000Z
"""Templatetags for the ``calendarium`` project.""" try: from django.core.urlresolvers import reverse except ImportError: # >= django 2.0 from django.urls import reverse from django import template from django.utils.timezone import datetime, now, timedelta, utc from ..models import Event, EventCategory regis...
29.363636
74
0.693498
0
0
0
0
923
0.571517
0
0
397
0.24582
f3f6c330726703c29f916def57634b16201374b3
61
py
Python
tests/integration/__init__.py
hotenov/playlist-along
fad876ebf907571abb58766e0d51a18d4cc50a67
[ "MIT" ]
null
null
null
tests/integration/__init__.py
hotenov/playlist-along
fad876ebf907571abb58766e0d51a18d4cc50a67
[ "MIT" ]
71
2021-04-18T05:29:22.000Z
2022-03-15T15:41:28.000Z
tests/integration/__init__.py
hotenov/playlist-along
fad876ebf907571abb58766e0d51a18d4cc50a67
[ "MIT" ]
1
2021-05-29T02:25:25.000Z
2021-05-29T02:25:25.000Z
"""Integration test suite for the playlist_along package."""
30.5
60
0.770492
0
0
0
0
0
0
0
0
60
0.983607
f3f76ea7dcdcc266d9e1570f7c62dd6bd1aaa371
6,104
py
Python
leetcode/200.number_of_islands/200.NumberofIslands_yhwhu.py
henrytien/AlgorithmSolutions
62339269f4fa698ddd2e73458caef875af05af8f
[ "MIT" ]
15
2020-06-27T03:28:39.000Z
2021-08-13T10:42:24.000Z
leetcode/200.number_of_islands/200.NumberofIslands_yhwhu.py
henrytien/AlgorithmSolutions
62339269f4fa698ddd2e73458caef875af05af8f
[ "MIT" ]
40
2020-06-27T03:29:53.000Z
2020-11-05T12:29:49.000Z
leetcode/200.number_of_islands/200.NumberofIslands_yhwhu.py
henrytien/AlgorithmSolutions
62339269f4fa698ddd2e73458caef875af05af8f
[ "MIT" ]
22
2020-07-16T03:23:43.000Z
2022-02-19T16:00:55.000Z
# Source : https://leetcode.com/problems/number-of-islands/ # Author : yhwhu # Date : 2020-07-29 ##################################################################################################### # # Given a 2d grid map of '1's (land) and '0's (water), count the number of islands. An island is # surrounded by w...
43.913669
1,652
0.37926
3,413
0.559142
0
0
0
0
0
0
2,093
0.34289
f3f790579d8ef665c2b11e24dc6a07c6cc75c46f
10,135
py
Python
tests/resources/lib/routes/test_animelist.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
tests/resources/lib/routes/test_animelist.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
tests/resources/lib/routes/test_animelist.py
jdollarKodi/plugin.video.animepie
874e58e153e2df53e5a47ec963584de16584ae52
[ "MIT" ]
null
null
null
import sys import os import json import unittest from mock import call, patch, MagicMock, Mock, ANY # TODO: Check get params of request to ensure those match what is expected class TestAnimeList(unittest.TestCase): def setUp(self): self.dir_path = os.path.dirname(os.path.realpath(__file__)) self....
35.812721
108
0.569906
9,957
0.982437
0
0
0
0
0
0
2,656
0.262062
f3f87273a6ab084e7b2486de9cda1728e1c1a45f
9,266
py
Python
objectModel/Python/tests/cdm/resolution_guidance/common_test.py
CBA-Consult/CDM
892bceac7a15167c85342cc1c61d7ecdf5f1b78d
[ "CC-BY-4.0", "MIT" ]
1
2020-10-17T14:07:55.000Z
2020-10-17T14:07:55.000Z
objectModel/Python/tests/cdm/resolution_guidance/common_test.py
CBA-Consult/CDM
892bceac7a15167c85342cc1c61d7ecdf5f1b78d
[ "CC-BY-4.0", "MIT" ]
5
2021-07-05T15:32:15.000Z
2022-01-04T16:51:11.000Z
objectModel/Python/tests/cdm/resolution_guidance/common_test.py
lukeenterprise/CDM
96c1da8b4bafe132eaee7243d9b7c6e42e87fc18
[ "CC-BY-4.0", "MIT" ]
1
2021-09-24T16:51:04.000Z
2021-09-24T16:51:04.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. import os import unittest from typing import TYPE_CHECKING from cdm.enums import CdmStatusLevel from cdm.objectmodel import CdmCorpusDefinition from cdm.storage im...
66.661871
205
0.745521
8,581
0.926074
0
0
0
0
7,781
0.839737
1,679
0.1812
f3fe9cadd102e32ca06c472d5c44ec2934c88eb6
4,592
py
Python
research/cv/PGAN/src/optimizer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/PGAN/src/optimizer.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/PGAN/src/optimizer.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...
31.027027
90
0.647213
3,552
0.773519
0
0
213
0.046385
0
0
1,151
0.250653
f3fea566bd58a6db7a62a13724c682b6bf3c61d3
3,032
py
Python
pyfronius/tests/web_raw/v1/web_state.py
mgrela/pyfronius
0ed5b0d4032870292576336b66922360a1fcd4a2
[ "MIT" ]
null
null
null
pyfronius/tests/web_raw/v1/web_state.py
mgrela/pyfronius
0ed5b0d4032870292576336b66922360a1fcd4a2
[ "MIT" ]
null
null
null
pyfronius/tests/web_raw/v1/web_state.py
mgrela/pyfronius
0ed5b0d4032870292576336b66922360a1fcd4a2
[ "MIT" ]
null
null
null
GET_POWER_FLOW_REALTIME_DATA = { "timestamp": {"value": "2019-01-10T23:33:12+01:00"}, "status": {"Code": 0, "Reason": "", "UserMessage": ""}, "energy_day": {"value": 0, "unit": "Wh"}, "energy_total": {"value": 26213502, "unit": "Wh"}, "energy_year": {"value": 12400.100586, "unit": "Wh"}, "meter_...
37.432099
87
0.520449
0
0
0
0
0
0
0
0
1,677
0.5531
f3fec431861c0ae27a970571bbb718d20a7f68e6
5,774
py
Python
lda-training.py
Bekyilma/Personalized-Visual-Art-Recommendation
60049ffe20302c6f510dff1dc297848e2208ec94
[ "MIT" ]
6
2020-11-30T13:34:53.000Z
2022-01-30T16:45:34.000Z
lda-training.py
Bekyilma/Personalized-Visual-Art-Recommendation
60049ffe20302c6f510dff1dc297848e2208ec94
[ "MIT" ]
null
null
null
lda-training.py
Bekyilma/Personalized-Visual-Art-Recommendation
60049ffe20302c6f510dff1dc297848e2208ec94
[ "MIT" ]
2
2020-11-30T05:38:15.000Z
2021-08-30T20:38:57.000Z
import pandas as pd import numpy as np from gensim.models.wrappers import LdaMallet from sklearn.metrics.pairwise import cosine_similarity from gensim.corpora import Dictionary from gensim import corpora import pickle import os """This class trains the Latent Dirichlet Allocation (LDA) Model on painting descripti...
41.84058
145
0.59283
5,192
0.899203
0
0
0
0
0
0
1,989
0.344475
f3fff2b8f3f509e2dc362a994e0cf8b4578c863c
2,130
py
Python
scripts/convert_logos.py
TechLoaf/ServerMappings
bf3a00533514c3d684a039e797debaa4432bff8f
[ "MIT" ]
37
2021-11-10T22:34:26.000Z
2022-03-28T21:21:06.000Z
scripts/convert_logos.py
TechLoaf/ServerMappings
bf3a00533514c3d684a039e797debaa4432bff8f
[ "MIT" ]
55
2021-11-15T05:54:09.000Z
2022-03-30T15:19:21.000Z
scripts/convert_logos.py
TechLoaf/ServerMappings
bf3a00533514c3d684a039e797debaa4432bff8f
[ "MIT" ]
301
2021-11-12T04:22:34.000Z
2022-03-31T09:46:04.000Z
import os import argparse import json import webptools # Grant permissions to Webptools webptools.grant_permission() def main(): parser = argparse.ArgumentParser() parser.add_argument('--servers', required=True, type=str) parser.add_argument('--servers_logos_source', required=True, type=str) parser.ad...
28.4
74
0.63615
0
0
0
0
0
0
0
0
687
0.322535
6d019390c83aab6ce4e1c381cc60c695d75c0f7c
5,396
py
Python
__init__.py
raulbarbosa1996/CreateService
61a5419819274d4c1c461b2e93ddbc34d5398112
[ "Apache-2.0" ]
null
null
null
__init__.py
raulbarbosa1996/CreateService
61a5419819274d4c1c461b2e93ddbc34d5398112
[ "Apache-2.0" ]
null
null
null
__init__.py
raulbarbosa1996/CreateService
61a5419819274d4c1c461b2e93ddbc34d5398112
[ "Apache-2.0" ]
null
null
null
from mycroft import MycroftSkill, intent_file_handler from mycroft.skills.context import adds_context, removes_context from mycroft import intent_handler from adapt.intent import IntentBuilder import json import requests import base64 class Createservice(MycroftSkill): def __init__(self): MycroftSkill._...
40.878788
271
0.662528
5,117
0.943052
0
0
4,421
0.814781
0
0
1,639
0.302064
6d0269097886931199b82c35d6059adcc53136ef
2,076
py
Python
Public/utils.py
zouning68/ner-demo
ffdbf95fd0354766bd2f882ecb02d55a9b14b74d
[ "Apache-2.0" ]
2
2020-12-27T06:17:28.000Z
2020-12-27T06:17:33.000Z
Public/utils.py
zouning68/ner-demo
ffdbf95fd0354766bd2f882ecb02d55a9b14b74d
[ "Apache-2.0" ]
null
null
null
Public/utils.py
zouning68/ner-demo
ffdbf95fd0354766bd2f882ecb02d55a9b14b74d
[ "Apache-2.0" ]
null
null
null
import logging import keras import os from Public.path import path_log_dir def create_log(path, stream=False): """ 获取日志对象 :param path: 日志文件路径 :param stream: 是否输出控制台 False: 不输出到控制台 True: 输出控制台,默认为输出到控制台 :return:日志对象 """ logger = logging.getLogger() logger...
30.529412
165
0.601638
1,300
0.594694
0
0
0
0
0
0
768
0.351327
6d038419707958a2fa00724fc654a8686b2ab7a9
104
py
Python
dpipe/dataset/__init__.py
samokhinv/deep_pipe
9461b02f5f32c3e9f24490619ebccf417979cffc
[ "MIT" ]
38
2017-09-08T04:51:17.000Z
2022-03-29T17:34:22.000Z
dpipe/dataset/__init__.py
samokhinv/deep_pipe
9461b02f5f32c3e9f24490619ebccf417979cffc
[ "MIT" ]
41
2017-09-29T22:06:21.000Z
2021-12-03T09:31:57.000Z
dpipe/dataset/__init__.py
samokhinv/deep_pipe
9461b02f5f32c3e9f24490619ebccf417979cffc
[ "MIT" ]
12
2017-09-08T04:40:39.000Z
2021-01-19T19:19:37.000Z
""" Datasets are used for data and metadata loading. """ from .base import Dataset from .csv import CSV
17.333333
48
0.740385
0
0
0
0
0
0
0
0
56
0.538462
6d04a81bea04c3629213ca9bfb9d02a5dc7d0ce8
61
py
Python
tests/python/for_items.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
10
2020-03-10T12:01:01.000Z
2021-05-23T19:47:06.000Z
tests/python/for_items.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
null
null
null
tests/python/for_items.py
jacereda/py2nim
56fc2699d31241c60bed726f59efea4bf46be238
[ "MIT" ]
1
2020-07-17T11:20:56.000Z
2020-07-17T11:20:56.000Z
a = {2: 4} for k, v in a.items(): print(k) print(v)
10.166667
22
0.459016
0
0
0
0
0
0
0
0
0
0
6d060b5da617547297f6d4722b0d799b84785cb9
9,726
py
Python
appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py
mithro/chromium-infra
d27ac0b230bedae4bc968515b02927cf9e17c2b7
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import copy import logging import time from common.pipeline_wrapper import BasePipeline from gae_libs.http.http_client_appengine import HttpClientAppengine ...
40.024691
80
0.709336
9,234
0.949414
0
0
0
0
0
0
4,649
0.477997
6d073d3768c551aa336b995cf48211e2b0f38b55
2,636
py
Python
python/bhpnet.py
Es7evam/Security-Studies
1b1a47d9011121c2c76db4ac19bd876cf1da5010
[ "MIT" ]
9
2018-05-06T22:48:03.000Z
2021-01-08T22:18:26.000Z
python/bhpnet.py
Es7evam/Security-Studies
1b1a47d9011121c2c76db4ac19bd876cf1da5010
[ "MIT" ]
null
null
null
python/bhpnet.py
Es7evam/Security-Studies
1b1a47d9011121c2c76db4ac19bd876cf1da5010
[ "MIT" ]
null
null
null
#!/bin/python2 import sys import socket import getopt import threading import subprocess # global variables listen = False command = False upload = False execute = "" target = "" upload_destination = "" port = 0 def usage...
29.288889
73
0.514036
0
0
0
0
0
0
0
0
1,103
0.418437
6d07dc8d3bf17c04b1120ccbfce102189ead1586
664
py
Python
hotstepper/core/data_model.py
TangleSpace/hotstepper
4d8a278d94f19fee2bc4d3ba25628fa69ed3653d
[ "MIT" ]
12
2021-03-06T23:32:12.000Z
2021-11-06T20:58:43.000Z
hotstepper/core/data_model.py
TangleSpace/hotstepper
4d8a278d94f19fee2bc4d3ba25628fa69ed3653d
[ "MIT" ]
5
2021-03-06T01:55:12.000Z
2021-03-13T23:01:32.000Z
hotstepper/core/data_model.py
TangleSpace/hotstepper
4d8a278d94f19fee2bc4d3ba25628fa69ed3653d
[ "MIT" ]
1
2021-03-13T14:34:43.000Z
2021-03-13T14:34:43.000Z
import enum #a tracking class for our numpy data model class DataModel(enum.Enum): """ An enum class that defines the numpy array data model for the step data used throughout the HotStepper library. This class represents the layout of the steps data by index. **START** : The step key value index within t...
30.181818
176
0.694277
608
0.915663
0
0
0
0
0
0
552
0.831325
6d09d5ec13de0292be6a2a4a47b48d16da6f42ee
19,740
py
Python
contrib/futaba_to_jinja.py
weedy/wakarimasen
6984dd50de66bc8784a180a3cee685ce98c93aec
[ "WTFPL" ]
4
2016-03-02T17:11:50.000Z
2020-01-25T21:57:58.000Z
contrib/futaba_to_jinja.py
weedy/wakarimasen
6984dd50de66bc8784a180a3cee685ce98c93aec
[ "WTFPL" ]
null
null
null
contrib/futaba_to_jinja.py
weedy/wakarimasen
6984dd50de66bc8784a180a3cee685ce98c93aec
[ "WTFPL" ]
3
2016-06-27T19:12:45.000Z
2021-01-03T06:08:19.000Z
#!/usr/bin/env python import os import re import optparse try: from cStringIO import StringIO except ImportError: from StringIO import StringIO try: import config, config_defaults except ImportError: config = None TEMPLATES_DIR = 'new_templates' HTDOCS_HARDCODED_PATH = '/home/desuchan/public_html/des...
33.80137
82
0.528875
12,441
0.630243
0
0
0
0
0
0
5,838
0.295745
6d0a6c7c39afb1420e793306938adb7daf4564ab
3,253
py
Python
pipeline.py
AngelFA04/newspapers_pipeline_scraping
283cf7fdea283ad17a5db419bdd271ab1504feae
[ "MIT" ]
null
null
null
pipeline.py
AngelFA04/newspapers_pipeline_scraping
283cf7fdea283ad17a5db419bdd271ab1504feae
[ "MIT" ]
null
null
null
pipeline.py
AngelFA04/newspapers_pipeline_scraping
283cf7fdea283ad17a5db419bdd271ab1504feae
[ "MIT" ]
null
null
null
import logging logging.basicConfig(level=logging.INFO) import subprocess import os import shutil import re from extract.common import config_dict as config logger = logging.getLogger(__name__) #List of all the news websites stored in extract/config.yaml news_sites_uids = [site for site in config()['new...
36.144444
111
0.609284
0
0
0
0
0
0
0
0
1,621
0.498309
6d0b6747f2e0ed70b58670bd13ac67dc8b1e6354
1,149
py
Python
setup.py
newnativeabq/mendeley-python-sdk
bbdcb3520ac23d56566407bbe3f976a097dcfa45
[ "Apache-2.0" ]
103
2015-01-12T00:40:51.000Z
2022-03-29T07:02:06.000Z
setup.py
mnpopcenter/mendeley-python-sdk
bffd2ed5945a47f67be54049b1bac812a4bc7dfc
[ "Apache-2.0" ]
26
2015-01-10T04:08:41.000Z
2021-02-05T16:31:37.000Z
setup.py
mnpopcenter/mendeley-python-sdk
bffd2ed5945a47f67be54049b1bac812a4bc7dfc
[ "Apache-2.0" ]
43
2015-03-04T18:11:06.000Z
2022-03-13T02:33:34.000Z
from setuptools import setup __version__ = None with open('mendeley/version.py') as f: exec(f.read()) setup( name='mendeley', version=__version__, packages=['mendeley', 'mendeley.models', 'mendeley.resources'], url='http://dev.mendeley.com', license='Apache', author='Mendeley', author_...
26.72093
70
0.582245
0
0
0
0
0
0
0
0
671
0.583986
6d0bebe5d9c8a55be30fdd8295e43dbdffe078b9
14,002
py
Python
Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py
PacktPublishing/Ansible-for-Real-life-Automation
35c0d92ea08a5dbf3bea749e1971cffabd5e6de4
[ "MIT" ]
7
2021-11-16T04:05:42.000Z
2022-02-19T21:14:29.000Z
Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py
PacktPublishing/Ansible-for-Real-life-Automation
35c0d92ea08a5dbf3bea749e1971cffabd5e6de4
[ "MIT" ]
1
2022-03-12T02:25:26.000Z
2022-03-12T02:25:26.000Z
Chapter-11/collections/ansible_collections/kubernetes/core/plugins/module_utils/copy.py
PacktPublishing/Ansible-for-Real-life-Automation
35c0d92ea08a5dbf3bea749e1971cffabd5e6de4
[ "MIT" ]
1
2022-03-01T05:43:07.000Z
2022-03-01T05:43:07.000Z
# Copyright [2021] [Red Hat, Inc.] # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
34.318627
100
0.536638
11,594
0.828025
0
0
47
0.003357
0
0
2,220
0.158549
6d0d8400dda85593833348d99b940ce42c8b67f1
10,002
py
Python
src/mist/api/networks/models.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
1
2019-04-10T11:37:25.000Z
2019-04-10T11:37:25.000Z
src/mist/api/networks/models.py
d-mo/mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
3
2021-04-07T23:15:17.000Z
2021-09-23T23:21:45.000Z
src/mist/api/networks/models.py
cc-daveloper/mist.io_mist.api
d3f9b8d478f23bf811c0bc6d3078e512aa975f86
[ "Apache-2.0" ]
null
null
null
import re import uuid import netaddr import mongoengine as me from mist.api.exceptions import RequiredParameterMissingError from mist.api.clouds.models import Cloud from mist.api.clouds.models import CLOUDS from mist.api.networks.controllers import SubnetController from mist.api.networks.controllers import NetworkCo...
34.371134
79
0.59778
8,916
0.891422
0
0
2,341
0.234053
0
0
3,720
0.371926
6d0e0a77100ddff32d6eea302bdb6b7fa790b104
2,518
py
Python
test/std/database_test.py
cybergarage/uecho-py
6b0dc72b9c3770d79b812bad75ea201c820b089a
[ "Apache-2.0" ]
null
null
null
test/std/database_test.py
cybergarage/uecho-py
6b0dc72b9c3770d79b812bad75ea201c820b089a
[ "Apache-2.0" ]
null
null
null
test/std/database_test.py
cybergarage/uecho-py
6b0dc72b9c3770d79b812bad75ea201c820b089a
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2021 Satoshi Konno. 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...
32.701299
76
0.67355
0
0
0
0
0
0
0
0
642
0.254964
6d0e7e5991799e6245502ea38de2db6d6e4bb46d
541
py
Python
ThenWhatTree/lib/twt_node/node_metrics_data.py
intel/ThenWhatTree
ddcd5af58e55705ba2dd6a824828f3fc48bd68da
[ "BSD-3-Clause" ]
3
2018-05-23T17:15:39.000Z
2019-03-17T18:44:19.000Z
ThenWhatTree/lib/twt_node/node_metrics_data.py
intel/ThenWhatTree
ddcd5af58e55705ba2dd6a824828f3fc48bd68da
[ "BSD-3-Clause" ]
null
null
null
ThenWhatTree/lib/twt_node/node_metrics_data.py
intel/ThenWhatTree
ddcd5af58e55705ba2dd6a824828f3fc48bd68da
[ "BSD-3-Clause" ]
4
2019-11-02T01:15:21.000Z
2021-09-16T11:01:29.000Z
# Copyright (C) 2018 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause """Module description here""" # Import built in modules # Import 3rd party modules # Import local modules # Module authorship metadata __author__ = "Erik W Berg" __copyright__ = "Copyright 2018, Intel Corporation" __credits__ = [""] _...
18.655172
64
0.733826
39
0.072089
0
0
0
0
0
0
358
0.661738
6d1132aa2e29241cd896c2e57d8bd511396c582a
1,207
py
Python
ml-agents/mlagents/trainers/tests/torch/test_layers.py
J-Travnik/ml-agents
c392380ab32bd762536a83501483dd5e7d1898c8
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/trainers/tests/torch/test_layers.py
J-Travnik/ml-agents
c392380ab32bd762536a83501483dd5e7d1898c8
[ "Apache-2.0" ]
null
null
null
ml-agents/mlagents/trainers/tests/torch/test_layers.py
J-Travnik/ml-agents
c392380ab32bd762536a83501483dd5e7d1898c8
[ "Apache-2.0" ]
null
null
null
import torch from mlagents.trainers.torch.layers import ( Swish, linear_layer, lstm_layer, Initialization, ) def test_swish(): layer = Swish() input_tensor = torch.Tensor([[1, 2, 3], [4, 5, 6]]) target_tensor = torch.mul(input_tensor, torch.sigmoid(input_tensor)) assert torch.all(torc...
29.439024
86
0.664457
0
0
0
0
0
0
0
0
45
0.037283
6d118933bbe84c3f01f6686bf85c8155c9b55417
563
py
Python
jsinclude/tests/argument_value_test.py
cobbdb/jsinclude
7a979677359df18b755190ed569b09d0ea8dad07
[ "MIT" ]
null
null
null
jsinclude/tests/argument_value_test.py
cobbdb/jsinclude
7a979677359df18b755190ed569b09d0ea8dad07
[ "MIT" ]
null
null
null
jsinclude/tests/argument_value_test.py
cobbdb/jsinclude
7a979677359df18b755190ed569b09d0ea8dad07
[ "MIT" ]
null
null
null
from jsinclude.templatetags.pkg.ArgumentValue import ArgumentValue class TestArgumentValue: def test_true_number_arg(self): arg = ArgumentValue(1234) assert arg == 1234 def test_string_number_arg(self): arg = ArgumentValue('1234') assert arg == '1234' def test_string_arg(s...
25.590909
66
0.628774
494
0.877442
0
0
0
0
0
0
56
0.099467
6d12b9597693069db63e21ca3c42a4f99c2c9aa0
11,562
py
Python
discordbot.py
ootomo2680/discordpy-startup
4df5f728a2b2338ac2a4a146b22787c87b4b9aae
[ "MIT" ]
null
null
null
discordbot.py
ootomo2680/discordpy-startup
4df5f728a2b2338ac2a4a146b22787c87b4b9aae
[ "MIT" ]
null
null
null
discordbot.py
ootomo2680/discordpy-startup
4df5f728a2b2338ac2a4a146b22787c87b4b9aae
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import os import random import cv2 import numpy as np import re import pandas as pd import codecs as cd token = "Njg1MTgxMTU3NTc0MzExOTc0.XmE6rg.5Gyfl0WZSsVa8UEw14qmLinQpyg" prefix = '$' client = discord.Client() ''' df0 = pd.read_csv('0.csv') df0 = pd.read_csv('0.csv') ...
38.798658
180
0.527504
0
0
0
0
4,342
0.285133
4,314
0.283294
7,279
0.478001
6d16d0a9149a82836ebda93b94a662f0aa549423
1,488
py
Python
process_msg.py
oudoubleyang/Dragalia
01e327aed55bdf585b573862c63d013860b32444
[ "MIT" ]
1
2019-07-04T06:40:56.000Z
2019-07-04T06:40:56.000Z
process_msg.py
oudoubleyang/Dragalia
01e327aed55bdf585b573862c63d013860b32444
[ "MIT" ]
1
2020-01-01T19:04:56.000Z
2020-01-01T19:04:58.000Z
process_msg.py
oudoubleyang/Dragalia
01e327aed55bdf585b573862c63d013860b32444
[ "MIT" ]
null
null
null
from session import dra from info import self_id special_ids = [ 100, 1000, 10000, 100000, 1000000 ] for i in special_ids.copy(): for j in range(1, 10): special_ids.append(i*j) special_ids.extend([114514, 1919, 810, 1919810]) done = ['好了', '可以'] thanks = ['\u8C22', '\u5C04'] extension = { 'image...
24
90
0.611559
0
0
0
0
0
0
0
0
256
0.165911
6d18302a31bc755d30f8c893405032c00082c9ee
15,608
py
Python
Python_Projects/Global_Model/Working/calculation.py
GUNU-GO/SNUPI
a73137699d9fc6ae8fa3d1522f341c04d8d43052
[ "MIT" ]
null
null
null
Python_Projects/Global_Model/Working/calculation.py
GUNU-GO/SNUPI
a73137699d9fc6ae8fa3d1522f341c04d8d43052
[ "MIT" ]
null
null
null
Python_Projects/Global_Model/Working/calculation.py
GUNU-GO/SNUPI
a73137699d9fc6ae8fa3d1522f341c04d8d43052
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 import xs import numpy as np from scipy.integrate import odeint from math import isclose from constants import * class Global_model: def __init__(self, p, input_power, duty, period, time_resolution=1e-8): self.p = p self.input_power = input_power*6.241509e18 ...
44.467236
475
0.577076
15,547
0.989247
0
0
0
0
0
0
1,443
0.091817
6d1986c9c48d05cbd15742e3d5d7b7917e61b373
2,764
py
Python
neo/code-snippets/python/hcp-iot-services/https/insert.py
jmilkiewicz/iot-starterkit
649310a4cafea10c4473bb7f099d2e64b5099c1b
[ "Apache-2.0" ]
301
2015-05-05T17:42:33.000Z
2019-11-29T16:43:11.000Z
neo/code-snippets/python/hcp-iot-services/https/insert.py
jmilkiewicz/iot-starterkit
649310a4cafea10c4473bb7f099d2e64b5099c1b
[ "Apache-2.0" ]
43
2015-05-25T13:04:17.000Z
2019-11-28T02:50:00.000Z
neo/code-snippets/python/hcp-iot-services/https/insert.py
jmilkiewicz/iot-starterkit
649310a4cafea10c4473bb7f099d2e64b5099c1b
[ "Apache-2.0" ]
232
2015-05-13T13:54:49.000Z
2019-12-27T11:03:45.000Z
import urllib3 import certifi # It is absolutely CRITICAL that you use certificate validation to ensure and guarantee that # 1. you are indeed sending the message to *.hanatrial.ondemand.com and # 2. that you avoid the possibility of TLS/SSL MITM attacks which would allow a malicious person to capture the OAuth token ...
58.808511
244
0.763025
0
0
0
0
0
0
0
0
2,411
0.872287
6d1aa146a37c0c8ebc3fe202336c4bbf48972e99
8,086
py
Python
vframe/vframe/settings/vframe_cfg.py
kant/vframe
28e49ca62d9036a78a25b26eb0fb7e3cf8c79031
[ "MIT" ]
1
2021-04-18T10:42:10.000Z
2021-04-18T10:42:10.000Z
vframe/vframe/settings/vframe_cfg.py
vframeio/_vframe_v0_archived
28e49ca62d9036a78a25b26eb0fb7e3cf8c79031
[ "MIT" ]
null
null
null
vframe/vframe/settings/vframe_cfg.py
vframeio/_vframe_v0_archived
28e49ca62d9036a78a25b26eb0fb7e3cf8c79031
[ "MIT" ]
null
null
null
import os from os.path import join import logging import collections import cv2 as cv from vframe.settings import types from vframe.models.video_item import VideoQuality from vframe.utils import click_utils # ----------------------------------------------------------------------------- # Enun lists used for custom ...
41.045685
137
0.621692
0
0
0
0
0
0
0
0
3,600
0.445214
6d1b3a5b5c7282e31a8ca8c0ccf7698bc4b17bce
2,082
py
Python
courses/models.py
Rakib1508/django-school
b76fa8442878944fe73ed4a49503d442a3093acb
[ "MIT" ]
1
2021-07-31T09:29:36.000Z
2021-07-31T09:29:36.000Z
courses/models.py
Rakib1508/django-school
b76fa8442878944fe73ed4a49503d442a3093acb
[ "MIT" ]
null
null
null
courses/models.py
Rakib1508/django-school
b76fa8442878944fe73ed4a49503d442a3093acb
[ "MIT" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from teachers.models import Teacher from students.models import Student STATUS = ( ('Passed', 'Passed'), ('Failed', 'Failed'), ('Pending', 'Pending'), ) class Course(models.Model): title = models.Ch...
30.617647
89
0.629683
1,804
0.866475
0
0
0
0
0
0
233
0.111912
6d1bd2567505fd7431beff18db9cced450b93185
2,507
py
Python
gcloud_sync_ssh/gcloud_auth.py
mrzor/gcloud_sync_ssh
f064f524648d42a9199ebc6c916e5f72ca2ca45e
[ "MIT" ]
7
2020-10-01T19:39:41.000Z
2022-03-18T15:28:01.000Z
gcloud_sync_ssh/gcloud_auth.py
mrzor/gcloud_sync_ssh
f064f524648d42a9199ebc6c916e5f72ca2ca45e
[ "MIT" ]
null
null
null
gcloud_sync_ssh/gcloud_auth.py
mrzor/gcloud_sync_ssh
f064f524648d42a9199ebc6c916e5f72ca2ca45e
[ "MIT" ]
null
null
null
import json from loguru import logger from .gcloud_config import gcloud_config_get from .util.cmd import cmd class _GCloudSavedAuth(object): """A ContextManager that will save currently used gcloud authentication upon entering and restore the saved authentication upon exiting.""" def __enter__(self): ...
41.098361
94
0.701635
2,387
0.952134
0
0
0
0
0
0
1,368
0.545672
6d1dbeb738603858ee39d12d84b249a97091c528
174
py
Python
practice/calendar/calendar/calendar/calendar_project.py
thekaranjit/pythonpractice
c87f535f694ee259a4d9de317f5b2eacd0e3748f
[ "Unlicense" ]
1
2018-06-21T23:15:18.000Z
2018-06-21T23:15:18.000Z
practice/calendar/calendar/calendar/calendar_project.py
thekaranjit/pythonpractice
c87f535f694ee259a4d9de317f5b2eacd0e3748f
[ "Unlicense" ]
null
null
null
practice/calendar/calendar/calendar/calendar_project.py
thekaranjit/pythonpractice
c87f535f694ee259a4d9de317f5b2eacd0e3748f
[ "Unlicense" ]
null
null
null
# import module import calendar # ask of month and year yy = int(input("Enter year: ")) mm = int(input("Enter month: ")) # display the calendar print(calendar.month(yy,mm))
19.333333
32
0.701149
0
0
0
0
0
0
0
0
89
0.511494
6d1eabc30c14eeb063f1344e1bd06f3cedd34eda
4,656
py
Python
backend/regions/gen_summary_files.py
rushikeshphalke137/rushikeshchatbot
f9e4e8205dd695815e056422be5a4fc56ab7bf08
[ "Apache-2.0" ]
null
null
null
backend/regions/gen_summary_files.py
rushikeshphalke137/rushikeshchatbot
f9e4e8205dd695815e056422be5a4fc56ab7bf08
[ "Apache-2.0" ]
null
null
null
backend/regions/gen_summary_files.py
rushikeshphalke137/rushikeshchatbot
f9e4e8205dd695815e056422be5a4fc56ab7bf08
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ For a set of data files used in our dashboard, generate: 1. a summary file called nssac-ncov-sd-summary.csv with below headers: (for all countries) date,totalConfirmed,totalDeaths,totalRecovered,newConfirmed,newDeaths,newRecovered date in mm-dd-yyyy format total stands for cumulative amo...
37.248
134
0.601804
0
0
0
0
0
0
0
0
2,178
0.467784
6d1f4b2c6fa4351760dc466834cf6bd3fbffaa60
10,040
py
Python
project/firewall/mainFirewall.py
flyflyinit/GUI-admin-tool
1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6
[ "MIT" ]
3
2020-06-15T18:57:41.000Z
2020-09-28T14:30:36.000Z
project/firewall/mainFirewall.py
flyflyinit/GUI-admin-tool
1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6
[ "MIT" ]
null
null
null
project/firewall/mainFirewall.py
flyflyinit/GUI-admin-tool
1fa97393ee2a39a65f5b7bbe95eb5b5f04bc6ad6
[ "MIT" ]
1
2020-06-06T23:34:16.000Z
2020-06-06T23:34:16.000Z
import qtmodern.styles import qtmodern.windows from project.firewall.configFirewall import CreateFwWindow, EditFwWindow, DeleteFwWindow from project.firewall.firewallScripts import firewallGlobalInfo, setDefaultZone, defaultZone from project.firewall.tableFirewall import * from PyQt5 import QtCore from PyQt5.QtWidgets...
36.245487
114
0.668327
3,925
0.390936
0
0
0
0
0
0
843
0.083964
6d20163867ce78900f3085c931841cc9a71d2294
20,397
py
Python
piCamMovecpu.py
pootle/piCameraWeb
3422a21ed62d0a231d6d26bd5c59914f57ebe1a6
[ "Unlicense" ]
1
2019-05-04T10:34:23.000Z
2019-05-04T10:34:23.000Z
piCamMovecpu.py
pootle/piCameraWeb
3422a21ed62d0a231d6d26bd5c59914f57ebe1a6
[ "Unlicense" ]
1
2019-04-01T08:16:05.000Z
2019-04-01T08:16:05.000Z
piCamMovecpu.py
pootle/piCameraWeb
3422a21ed62d0a231d6d26bd5c59914f57ebe1a6
[ "Unlicense" ]
null
null
null
#!/usr/bin/python3 import threading, queue, time import picamera.array as picamarray, numpy, pathlib import numpy.ma as nma import png, io from pootlestuff import watchables as wv class piCamCPU(wv.watchablesmart): """ a base class for things that want to analyse images in detail for movement detection, expos...
49.149398
186
0.566897
18,286
0.896504
1,594
0.078149
0
0
0
0
6,511
0.319214
6d204183e5cd741d9554eb163777278f904f7099
3,380
py
Python
mowl/graph/walking_rdf_and_owl/triples.py
bio-ontology-research-group/mlwo
cbe390d37a34355fe9cb969149a5c7775c5bb46a
[ "BSD-3-Clause" ]
null
null
null
mowl/graph/walking_rdf_and_owl/triples.py
bio-ontology-research-group/mlwo
cbe390d37a34355fe9cb969149a5c7775c5bb46a
[ "BSD-3-Clause" ]
15
2019-09-04T07:49:40.000Z
2022-02-10T11:31:17.000Z
mowl/graph/walking_rdf_and_owl/triples.py
bio-ontology-research-group/mlwo
cbe390d37a34355fe9cb969149a5c7775c5bb46a
[ "BSD-3-Clause" ]
1
2019-09-03T03:31:28.000Z
2019-09-03T03:31:28.000Z
from random import random class Triplet(): def __init__(self, entity_1, relation, entity_2, score = random()): self.__entity_1 = entity_1 self.__relation = relation self.__entity_2 = entity_2 self.__score = float(score) # for developing purposes def __repr__(self): ...
28.888889
195
0.589941
3,353
0.992012
0
0
2,404
0.711243
0
0
612
0.181065
6d20ccc88bf55d948a139763f89ca798ffc5719d
1,225
py
Python
src/websitemailer/screenshots.py
city-of-baltimore/website-mailer
178bb01ccea2a7887fc03c50b97ef1ad4f5ae986
[ "MIT" ]
null
null
null
src/websitemailer/screenshots.py
city-of-baltimore/website-mailer
178bb01ccea2a7887fc03c50b97ef1ad4f5ae986
[ "MIT" ]
null
null
null
src/websitemailer/screenshots.py
city-of-baltimore/website-mailer
178bb01ccea2a7887fc03c50b97ef1ad4f5ae986
[ "MIT" ]
null
null
null
"""Takes a screenshot of a webpage""" from pathlib import Path from tempfile import NamedTemporaryFile from time import sleep from loguru import logger from selenium import webdriver # type: ignore from selenium.webdriver.chrome.options import Options # type: ignore def take_screenshot(url, driver_path, dest_file:...
37.121212
102
0.723265
0
0
0
0
0
0
0
0
554
0.452245
6d217ceadcf8a03c2628a8cb1265b1858ebe33bf
619
py
Python
tests/integration_tests/edges_tests/test_copy.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
3
2020-07-06T04:28:19.000Z
2021-04-20T07:50:53.000Z
tests/integration_tests/edges_tests/test_copy.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
tests/integration_tests/edges_tests/test_copy.py
lycantropos/seidel
d4514f1041fe64c7faf3fd9a3f61769449070b51
[ "MIT" ]
null
null
null
import copy from hypothesis import given from tests.utils import (BoundPortedEdgesPair, are_bound_ported_edges_equal) from . import strategies @given(strategies.edges_pairs) def test_shallow(edges_pair: BoundPortedEdgesPair) -> None: bound, ported = edges_pair assert are_bound_port...
26.913043
76
0.714055
0
0
0
0
443
0.71567
0
0
0
0
6d220e80a6442156d54665ed445cceb1c31a96d2
6,950
py
Python
IslanderDataPreprocessing/datacorrelation.py
Islanderrobotics/IslanderDataPreprocessing
a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2
[ "MIT" ]
null
null
null
IslanderDataPreprocessing/datacorrelation.py
Islanderrobotics/IslanderDataPreprocessing
a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2
[ "MIT" ]
null
null
null
IslanderDataPreprocessing/datacorrelation.py
Islanderrobotics/IslanderDataPreprocessing
a8de863fe0d7d855da7d51c3e06c6fd7360ae9b2
[ "MIT" ]
null
null
null
from pandas.plotting import scatter_matrix import matplotlib.pyplot as plt from PyQt5 import QtWidgets import sys from .DataVisulization import DataVisulization class DataCorrelation: '''this module allows you to be able to view the correlation values of your dataset allowing you the ability to prevent simple ...
44.551282
139
0.543453
6,787
0.976547
0
0
0
0
0
0
2,460
0.353957
6d22c1587af4dfa165e56fe18dddcbb2dee5f664
73
py
Python
k3d/_version.py
annefou/K3D-jupyter
daeb38680ec1bfa49e80b59912aab15b959052de
[ "MIT" ]
null
null
null
k3d/_version.py
annefou/K3D-jupyter
daeb38680ec1bfa49e80b59912aab15b959052de
[ "MIT" ]
null
null
null
k3d/_version.py
annefou/K3D-jupyter
daeb38680ec1bfa49e80b59912aab15b959052de
[ "MIT" ]
null
null
null
version_info = (2, 4, 19) __version__ = '.'.join(map(str, version_info))
24.333333
46
0.671233
0
0
0
0
0
0
0
0
3
0.041096
6d2329b8d31eee10bb5684e2f20c9950da9ce10b
51
py
Python
asaplib/util/__init__.py
BingqingCheng/ASAP
a92dd34eaa092dcbe46163e000ebd2ccee22f8ae
[ "MIT" ]
74
2020-01-09T10:38:39.000Z
2022-03-04T15:09:05.000Z
asaplib/util/__init__.py
FelixFaber/ASAP
951d9667143095e42f1566816b4ab90d901b56a8
[ "MIT" ]
31
2020-01-30T13:15:42.000Z
2022-03-03T05:42:51.000Z
asaplib/util/__init__.py
FelixFaber/ASAP
951d9667143095e42f1566816b4ab90d901b56a8
[ "MIT" ]
14
2020-02-23T15:03:31.000Z
2022-03-04T15:04:04.000Z
from .util_fft import * from .util_gettcv import *
17
26
0.764706
0
0
0
0
0
0
0
0
0
0
6d235624dd54cd2de5b4269e1d88562233f30c47
3,460
py
Python
data/process_data.py
Lydiafz/Udacity_DisasterPipeline
5673530e187c679c87569e826c131c256d0b6ed3
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
data/process_data.py
Lydiafz/Udacity_DisasterPipeline
5673530e187c679c87569e826c131c256d0b6ed3
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
data/process_data.py
Lydiafz/Udacity_DisasterPipeline
5673530e187c679c87569e826c131c256d0b6ed3
[ "FTL", "CNRI-Python", "blessing" ]
null
null
null
import sys import pandas as pd import numpy as np from sqlalchemy import create_engine def load_data(messages_filepath, categories_filepath): ''' Load the message and category .csv data files Input: the filepath of the two .csv files Output: return the two data frames ''' messages = ...
38.444444
87
0.656936
0
0
0
0
0
0
0
0
1,711
0.494509
6d259abd8da45ace7606cac7534ce7fe136ed21c
1,181
py
Python
back-end/src/db-fixer.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
1
2022-03-13T04:24:00.000Z
2022-03-13T04:24:00.000Z
back-end/src/db-fixer.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
back-end/src/db-fixer.py
gfxcc/san11-platform-back-end
74f60d201e21396c5c8601ddc404077ebd97871f
[ "MIT" ]
null
null
null
import logging import os from typing import Optional from handler.model.base.base_db import ListOptions from handler.model.model_activity import ModelActivity from handler.model.model_user import ModelUser from handler.util.time_util import get_now def _get_earlist_activity(user: ModelUser) -> Optional[ModelActivity...
32.805556
93
0.740051
0
0
0
0
0
0
0
0
297
0.251482
6d25dd8315415bc01639dca3ddce639aabe687fe
3,612
py
Python
test/dbgen_skew/dbgen-skew.py
xiaomengbai/NestGPU
7137aac5719fd95847c46b9cf5e8f2267aecfcae
[ "Apache-2.0" ]
2
2021-03-05T05:45:12.000Z
2021-07-05T08:34:56.000Z
test/dbgen_skew/dbgen-skew.py
xiaomengbai/NestGPU
7137aac5719fd95847c46b9cf5e8f2267aecfcae
[ "Apache-2.0" ]
null
null
null
test/dbgen_skew/dbgen-skew.py
xiaomengbai/NestGPU
7137aac5719fd95847c46b9cf5e8f2267aecfcae
[ "Apache-2.0" ]
2
2020-08-27T01:57:49.000Z
2021-07-05T08:35:03.000Z
#!/usr/bin/python import sys import os import string import argparse import math #Description #------------------------------- # This is an script that generates TPC-H skewed data. # # To see the parameters use "-h" or "--help". # # Run script Example : # python ./dbgen-skew.py -d ~/workspace/subquery/test/tables/ -t...
25.8
106
0.614895
0
0
0
0
0
0
0
0
1,463
0.405039
6d26941eb40fda35e6cbb0aab9a6f55f70706908
2,438
py
Python
dgp/cli.py
weihaosky/dgp
b221534ea5515d03dce5c29dc6e60c1eee129785
[ "MIT" ]
1
2021-05-14T09:16:58.000Z
2021-05-14T09:16:58.000Z
dgp/cli.py
weihaosky/dgp
b221534ea5515d03dce5c29dc6e60c1eee129785
[ "MIT" ]
null
null
null
dgp/cli.py
weihaosky/dgp
b221534ea5515d03dce5c29dc6e60c1eee129785
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2019-2020 Toyota Research Institute. All rights reserved. """DGP command line interface """ import glob import itertools import os import sys from multiprocessing import Pool, cpu_count import click from dgp.proto.dataset_pb2 import SceneDataset from dgp.utils.aws import (convert_ur...
32.945946
108
0.720263
0
0
0
0
1,658
0.680066
0
0
645
0.264561
6d27de3ea1df20faf1119ca0ed0da09f458bca8f
32,185
wsgi
Python
databrowse_wsgi/databrowse.wsgi
limatix/Databrowse
af33bc6cca930e59acc3762beeec2409d8fd8634
[ "BSD-3-Clause" ]
3
2016-09-20T07:04:09.000Z
2018-07-17T17:31:21.000Z
databrowse_wsgi/databrowse.wsgi
limatix/Databrowse
af33bc6cca930e59acc3762beeec2409d8fd8634
[ "BSD-3-Clause" ]
19
2016-10-25T07:05:28.000Z
2018-08-07T23:18:16.000Z
databrowse_wsgi/databrowse.wsgi
limatix/Databrowse
af33bc6cca930e59acc3762beeec2409d8fd8634
[ "BSD-3-Clause" ]
2
2016-10-28T00:12:42.000Z
2016-10-28T00:18:03.000Z
#!/usr/bin/env python ############################################################################### ## Databrowse: An Extensible Data Management Platform ## ## Copyright (C) 2012-2016 Iowa State University Research Foundation, Inc. ## ## All rights reserved. ...
54.550847
298
0.578655
1,364
0.04238
0
0
0
0
0
0
20,871
0.64847
6d28289012166b79e101e010e38b5f25d78c2a26
2,124
py
Python
app/game.py
d4glushko/task_puzzle_15
ca308e2f07dfbe8aac50dbf3110443a274199018
[ "MIT" ]
null
null
null
app/game.py
d4glushko/task_puzzle_15
ca308e2f07dfbe8aac50dbf3110443a274199018
[ "MIT" ]
null
null
null
app/game.py
d4glushko/task_puzzle_15
ca308e2f07dfbe8aac50dbf3110443a274199018
[ "MIT" ]
null
null
null
import curses from app.environment import PuzzleEnvironment, PuzzleEnvironmentSettings, PuzzleAction from app.views import TerminalView, AbstractView from app.inputs import TerminalInput, AbstractInput class CursesKeysWrapper: Q = 113 ESC = 27 R = 114 W = 119 KEY_UP = curses.KEY_UP D = 100 ...
32.181818
92
0.618644
1,915
0.901601
0
0
0
0
0
0
0
0
6d28e0d64eb546a2315a51ec091aa3a19a839e37
1,038
py
Python
hackerrank/contest/101hack2015_6_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
1
2018-11-12T15:18:55.000Z
2018-11-12T15:18:55.000Z
hackerrank/contest/101hack2015_6_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
hackerrank/contest/101hack2015_6_b.py
knuu/competitive-programming
16bc68fdaedd6f96ae24310d697585ca8836ab6e
[ "MIT" ]
null
null
null
from heapq import heapify, heappush, heappop from collections import Counter, defaultdict, deque, OrderedDict from sys import setrecursionlimit, maxsize from bisect import bisect_left, bisect, insort_left, insort from math import ceil, log, factorial, hypot, pi from fractions import gcd from copy import deepcopy from f...
35.793103
96
0.686898
0
0
0
0
0
0
0
0
18
0.017341
6d28e87999e663608b066185ce3b54411a954c2f
14,797
py
Python
src/nninst/backend/tensorflow/attack/foolbox_attack_resnet_50.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
null
null
null
src/nninst/backend/tensorflow/attack/foolbox_attack_resnet_50.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
null
null
null
src/nninst/backend/tensorflow/attack/foolbox_attack_resnet_50.py
uchuhimo/Ptolemy
5c8ae188af30ee49d38f27d54c67af2eab9489e7
[ "Apache-2.0" ]
null
null
null
import os import numpy as np from foolbox.attacks import ( FGSM, DeepFoolAttack, IterativeGradientSignAttack, SaliencyMapAttack, ) from nninst import mode from nninst.backend.tensorflow.attack.common import ( get_overlay_summary_compare, get_overlay_summary_compare_detail, resnet_50_imagen...
59.906883
158
0.640738
0
0
0
0
0
0
0
0
9,851
0.665743
6d292b42033212ab18a570d3499c1c82bd8e4752
4,599
py
Python
test/test_tracker.py
TechnicallyWilliams/sync-week-austin-2018
6b1b4f5ebf34253a7694cceaae8eda450c926312
[ "MIT" ]
null
null
null
test/test_tracker.py
TechnicallyWilliams/sync-week-austin-2018
6b1b4f5ebf34253a7694cceaae8eda450c926312
[ "MIT" ]
null
null
null
test/test_tracker.py
TechnicallyWilliams/sync-week-austin-2018
6b1b4f5ebf34253a7694cceaae8eda450c926312
[ "MIT" ]
null
null
null
import cv2 import os import sys import unittest import threading if __name__ == '__main__': sys.path.append(os.path.join(os.path.dirname(__file__), '..')) import leapvision.tracker class SingleObjectTrackerTest(unittest.TestCase): def setUp(self): self.video_path = os.path.join( os.path.d...
34.840909
87
0.554903
2,922
0.635356
0
0
0
0
0
0
1,557
0.338552
6d29a3925f9a06b7fb05c693887c0a51b39f8c6f
2,228
py
Python
Python/main/store.py
ihongs/HongsCode
ade690b187acafdb67ee861c941c4c8a3d7434c0
[ "MIT" ]
1
2018-12-20T10:05:26.000Z
2018-12-20T10:05:26.000Z
Python/main/store.py
ihongs/HongsCode
ade690b187acafdb67ee861c941c4c8a3d7434c0
[ "MIT" ]
null
null
null
Python/main/store.py
ihongs/HongsCode
ade690b187acafdb67ee861c941c4c8a3d7434c0
[ "MIT" ]
null
null
null
#!/usr/bin/python #coding=utf-8 # 目录文件备份工具 # 用于备份特定的数据目录或文件 # 作者: kevin.hongs@gmail.com # 修订: 2016/03/03 import os import re import sys import time import shutil import tarfile from getopt import getopt if __name__ == "__main__": def cmd_help(): print "Usage: cleat.py SRC_PATH DST_PATH" print "A...
22.969072
81
0.467684
0
0
0
0
0
0
0
0
840
0.364583
6d2b6494460f181733e9edcda853c431b0c53cb5
443
py
Python
template_mathing_6methods.py
dmeseguerw/ImageDetection
fd18fa81514a9745a5e3138c360b0d878f2a6606
[ "MIT", "Unlicense" ]
null
null
null
template_mathing_6methods.py
dmeseguerw/ImageDetection
fd18fa81514a9745a5e3138c360b0d878f2a6606
[ "MIT", "Unlicense" ]
null
null
null
template_mathing_6methods.py
dmeseguerw/ImageDetection
fd18fa81514a9745a5e3138c360b0d878f2a6606
[ "MIT", "Unlicense" ]
null
null
null
import cv2 import numpy as np img_rgb = cv2.imread('mainimage.jpg') img_gray = cv2.cvtColor(img_rgb, cv2.COLOR_BGR2GRAY) template = cv2.imread('template.jpg',0) w, h = template.shape[::-1] res = cv2.matchTemplate(img_gray,template,cv2.TM_CCOEFF_NORMED) threshold = 0.8 loc = np.where( res >= threshold) for pt in zip(*...
27.6875
70
0.693002
0
0
0
0
0
0
0
0
34
0.076749
6d2befe5ea7c58a4f8bc6f563a72998b31c89000
7,607
py
Python
line_class.py
jackiele07/CarND-Advanced-Lane-Lines
0ee629fbaff6db42b6cf12c90c06e0b5fabbde40
[ "MIT" ]
null
null
null
line_class.py
jackiele07/CarND-Advanced-Lane-Lines
0ee629fbaff6db42b6cf12c90c06e0b5fabbde40
[ "MIT" ]
null
null
null
line_class.py
jackiele07/CarND-Advanced-Lane-Lines
0ee629fbaff6db42b6cf12c90c06e0b5fabbde40
[ "MIT" ]
null
null
null
import numpy as np import cv2 from matplotlib import pyplot as plt class window(): def __init__(self, nwindow, margin, mpixel, centroid): self.nwindow = nwindow self.margin = margin self.mpixel = mpixel self.centroid = centroid # Function to return the point within boundarys of ...
45.825301
190
0.593269
7,519
0.988432
0
0
0
0
0
0
1,552
0.204023
6d2dc51a6684f0eee600755a8aa65da621a005ab
550
py
Python
Learning/8.2-recursion.py
DishantIsrani/Python-Learning
f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6
[ "MIT" ]
null
null
null
Learning/8.2-recursion.py
DishantIsrani/Python-Learning
f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6
[ "MIT" ]
null
null
null
Learning/8.2-recursion.py
DishantIsrani/Python-Learning
f810fd64adeecd34fd2d95182f6be2bdfb4f9ac6
[ "MIT" ]
null
null
null
# ITERATIVE FUNCTION FOR FACTORIAL # def factorial_iterative(n): # fact=1 # for b in range(1, n+1): # fact=fact*b # return fact # a = int(input("enter the number you want the factorial of: ")) # print(f"the factorial of {a} is {factorial_iterative(a)}") # RECURSIVE FUNCTION FOR FACTORIAL def ...
20.37037
64
0.652727
0
0
0
0
0
0
0
0
399
0.725455
6d2dd5987d25fe961e9ce14c281afd1822603edd
415
py
Python
mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py
zzrose/MXonline
3274195f748517a47dfa7e47f7fa164f9bb34c82
[ "Apache-2.0" ]
1
2019-02-25T23:17:32.000Z
2019-02-25T23:17:32.000Z
mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py
zzrose/MXonline
3274195f748517a47dfa7e47f7fa164f9bb34c82
[ "Apache-2.0" ]
null
null
null
mxonline-master/untitled1/apps/courses/migrations/0005_video_url.py
zzrose/MXonline
3274195f748517a47dfa7e47f7fa164f9bb34c82
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-20 05:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0004_course_tag'), ] operations = [ migrations.AddField( model_name='video', name='url', fiel...
21.842105
93
0.6
322
0.775904
0
0
0
0
0
0
102
0.245783
6d2e03e276bae7527bce92f21abff29448cd794b
5,943
py
Python
futaba/cogs/welcome/role_reapplication.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
23
2018-09-17T09:06:27.000Z
2021-05-27T15:21:37.000Z
futaba/cogs/welcome/role_reapplication.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
257
2018-08-18T21:27:54.000Z
2020-12-29T23:27:10.000Z
futaba/cogs/welcome/role_reapplication.py
Hoffs/futaba
4d07c421c4229c81ddd42da1a49594b8cf11832d
[ "MIT" ]
22
2018-09-09T09:03:13.000Z
2021-11-09T03:34:34.000Z
# # cogs/welcome/role_reapplication.py # # futaba - A Discord Mod bot for the Programming server # Copyright (c) 2017-2020 Jake Richardson, Ammon Smith, jackylam5 # # futaba is available free of charge under the terms of the MIT # License. You are free to redistribute and/or modify it under those # terms. It is distrib...
33.576271
99
0.621235
5,075
0.853946
0
0
1,135
0.190981
3,430
0.57715
1,619
0.272421
6d2e1a90ddfac3c804d234d5ca9b2888a866f064
9,292
py
Python
app/common/util.py
openstreetmap-polska/gugik2osm
60ebd0660ed55e3b3db0f034486a607975c5eb45
[ "MIT" ]
18
2020-01-31T11:19:28.000Z
2022-01-05T08:58:51.000Z
app/common/util.py
openstreetmap-polska/gugik2osm
60ebd0660ed55e3b3db0f034486a607975c5eb45
[ "MIT" ]
103
2019-12-11T11:35:01.000Z
2022-03-01T21:10:50.000Z
app/common/util.py
openstreetmap-polska/gugik2osm
60ebd0660ed55e3b3db0f034486a607975c5eb45
[ "MIT" ]
6
2020-12-06T14:53:43.000Z
2021-04-18T18:09:29.000Z
import logging from dataclasses import dataclass from typing import List, Union, Dict, Any, Tuple from lxml import etree @dataclass class Feature: id: str tags: Dict[str, Any] geojson_geometry: Dict[str, Any] def to_geojson_dict(features: List[Feature]) -> Dict[str, Any]: results = { 'type':...
34.287823
133
0.62344
2,793
0.300581
0
0
2,428
0.2613
0
0
1,000
0.107619
6d30e5200b0df52892d77fbbb3bc4df9f13ca5c1
477
py
Python
Infra/Library/Uteis.py
buenex/Desafio-Nilo
64a4452e847020d54eb4b0d5ab7bbc86c1afa546
[ "MIT" ]
null
null
null
Infra/Library/Uteis.py
buenex/Desafio-Nilo
64a4452e847020d54eb4b0d5ab7bbc86c1afa546
[ "MIT" ]
null
null
null
Infra/Library/Uteis.py
buenex/Desafio-Nilo
64a4452e847020d54eb4b0d5ab7bbc86c1afa546
[ "MIT" ]
null
null
null
import random class Uteis(): def gerar_nome(self,length): letters ="AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" result = "" for n in range(int(length)): result += letters[random.randint(0,len(letters)-1)] return result def gerar_email(self): ...
31.8
87
0.616352
462
0.968553
0
0
0
0
0
0
94
0.197065
6d347d3d8c5eab23a280b9984b4d6b87b6a813a8
1,111
py
Python
test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NotifySwUpgradeStateChangedDTO.py
yuanyi-thu/AIOT-
27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e
[ "BSD-3-Clause" ]
128
2018-10-29T04:11:47.000Z
2022-03-07T02:19:14.000Z
test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NotifySwUpgradeStateChangedDTO.py
yuanyi-thu/AIOT-
27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e
[ "BSD-3-Clause" ]
40
2018-11-02T00:40:48.000Z
2021-12-07T09:33:56.000Z
test/hlt/pytest/python/com/huawei/iotplatform/client/dto/NotifySwUpgradeStateChangedDTO.py
yuanyi-thu/AIOT-
27f67d98324593c4c6c66bbd5e2a4aa7b9a4ac1e
[ "BSD-3-Clause" ]
118
2018-10-29T08:43:57.000Z
2022-01-07T06:49:25.000Z
class NotifySwUpgradeStateChangedDTO(object): def __init__(self): self.notifyType = None self.deviceId = None self.appId = None self.operationId = None self.subOperationId = None self.swUpgradeState = None def getNotifyType(self): return self.notifyType ...
24.152174
48
0.667867
1,110
0.9991
0
0
0
0
0
0
0
0
6d37521917a96e585d2c7b2a5706f3b67f69c2e6
476
py
Python
app/overpass/nodes.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/overpass/nodes.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
app/overpass/nodes.py
wolfhardfehre/guide-io
cf076bad0634bcaf4ad0be4822539b7c8d254e76
[ "MIT" ]
null
null
null
from app.overpass.overpass import Overpass from app.overpass.location import Location class Nodes(Overpass): TYPE = 'node' if __name__ == '__main__': import pandas as pd pd.options.display.max_columns = None pd.options.display.width = 800 nodes = Nodes() nodes.location = Location(13.383333,...
21.636364
51
0.682773
40
0.084034
0
0
0
0
0
0
42
0.088235
6d3a17f93af9411f77fe80338222e338fcd3284e
6,229
py
Python
client-cli/client_cli/api/client_api.py
sndnv/stasis
ee99e8995f29b5b1c1689b87a84a60f01382bfd6
[ "Apache-2.0" ]
3
2021-01-12T22:40:30.000Z
2021-06-09T04:33:19.000Z
client-cli/client_cli/api/client_api.py
sndnv/stasis
ee99e8995f29b5b1c1689b87a84a60f01382bfd6
[ "Apache-2.0" ]
12
2019-06-04T16:42:19.000Z
2022-03-06T23:11:47.000Z
client-cli/client_cli/api/client_api.py
sndnv/stasis
ee99e8995f29b5b1c1689b87a84a60f01382bfd6
[ "Apache-2.0" ]
1
2021-01-12T22:40:10.000Z
2021-01-12T22:40:10.000Z
"""Interface for managing interactions between a client frontend (this CLI) and backend (API).""" from abc import ABC, abstractmethod class ClientApi(ABC): """Interface for managing interactions between a client frontend (this CLI) and backend (API).""" @abstractmethod def is_active(self): """ ...
28.972093
118
0.645529
6,091
0.977846
0
0
5,830
0.935945
0
0
4,493
0.721304
6d3a6948bd5e57b6f976e39bbd2a75b6e3d5c0bc
25,302
py
Python
src/olympia/blocklist/tests/test_views.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
src/olympia/blocklist/tests/test_views.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
src/olympia/blocklist/tests/test_views.py
jpetto/olympia
f4e9badac9634657068dfbd4733ab5d17798e3f6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import base64 from datetime import datetime from xml.dom import minidom from django.conf import settings from django.core.cache import cache from nose.tools import eq_, ok_ from olympia import amo from olympia.amo.tests import TestCase from olympia.amo.urlresolvers import reverse from olympia...
40.41853
79
0.624891
24,700
0.975436
0
0
0
0
0
0
4,321
0.170642
6d3c5b57f422635a9012537f0c3536a9e6c2b607
1,821
py
Python
RobotController.py
Y-miura-ta/Nyanko
4a6216c68fb727908fa8d296f01dbbb2cbcc2775
[ "MIT" ]
null
null
null
RobotController.py
Y-miura-ta/Nyanko
4a6216c68fb727908fa8d296f01dbbb2cbcc2775
[ "MIT" ]
null
null
null
RobotController.py
Y-miura-ta/Nyanko
4a6216c68fb727908fa8d296f01dbbb2cbcc2775
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np import time import IK import DynamixelController as dc import TimerIMU as ti import GaitGenerator as gg # ロボットの関節を直接動かして座標を確認 def posPrint(): pos_list = dc.syncreadPos(dc.DXL_ID_LIST) pos_leg = np.array([ [pos_list[0], pos_list[1], pos_list[2]], [pos...
28.453125
102
0.551895
0
0
0
0
0
0
0
0
189
0.101668