hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
247
max_forks_repo_name
stringlengths
4
130
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
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
5f230d76e6828208abb98ffbb36828dc5533f469
1,463
py
Python
main.py
Beatrix-droid/python_dev_jobs_web_scraper
1f80a35e9d13a7629dbfc696b2e6afe86aa43951
[ "MIT" ]
null
null
null
main.py
Beatrix-droid/python_dev_jobs_web_scraper
1f80a35e9d13a7629dbfc696b2e6afe86aa43951
[ "MIT" ]
null
null
null
main.py
Beatrix-droid/python_dev_jobs_web_scraper
1f80a35e9d13a7629dbfc696b2e6afe86aa43951
[ "MIT" ]
null
null
null
import time if __name__ == "__main__": while True: find_jobs() time_wait = 10 time.sleep(time_wait*60) print(f"waiting {time_wait} minutes")
26.6
73
0.656186
from bs4 import BeautifulSoup import requests import time def find_jobs(): html_text = requests.get("https://www.reed.co.uk/jobs/python-jobs").text soup = BeautifulSoup(html_text, "lxml") jobs = soup.find_all("article", class_="job-result") for index, job in enumerate(jobs): with open(f"job_posts/{index}.txt"...
0
0
0
0
0
1,242
0
2
67
9a938c1d687d5da888500b5d97ff161b9267ea52
301
py
Python
awesome_autodl/utils/__init__.py
yashsmehta/Awesome-AutoDL
8c6b626a81398d71bbc8b8e28e13307279b8281e
[ "MIT" ]
null
null
null
awesome_autodl/utils/__init__.py
yashsmehta/Awesome-AutoDL
8c6b626a81398d71bbc8b8e28e13307279b8281e
[ "MIT" ]
null
null
null
awesome_autodl/utils/__init__.py
yashsmehta/Awesome-AutoDL
8c6b626a81398d71bbc8b8e28e13307279b8281e
[ "MIT" ]
null
null
null
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2021 # ##################################################
37.625
50
0.534884
################################################## # Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2021 # ################################################## from .yaml import load_yaml from .yaml import dump_yaml from .check import check_paper_and_correct_format from .check import check_and_sort_by_date
0
0
0
0
0
0
0
60
88
1fdf77585fd1a3f6d2f1ed1af3d89d4e505f2e73
112
py
Python
archon/model/orders.py
tebzzz/archon
5276e06ccc2e08e034473108a4dd8e36b6ba6078
[ "MIT" ]
78
2018-09-20T12:50:42.000Z
2021-12-17T11:44:03.000Z
archon/model/orders.py
tebzzz/archon
5276e06ccc2e08e034473108a4dd8e36b6ba6078
[ "MIT" ]
49
2018-11-18T16:58:27.000Z
2019-09-29T18:41:51.000Z
archon/model/orders.py
tebzzz/archon
5276e06ccc2e08e034473108a4dd8e36b6ba6078
[ "MIT" ]
21
2018-09-20T11:31:50.000Z
2021-10-19T17:01:47.000Z
ORDER_SIDE_BUY = "BUY" ORDER_SIDE_SELL = "SELL" BITMEX_ORDER_SIDE_BUY = "Buy" BITMEX_ORDER_SIDE_SELL = "Sell"
16
31
0.767857
ORDER_SIDE_BUY = "BUY" ORDER_SIDE_SELL = "SELL" BITMEX_ORDER_SIDE_BUY = "Buy" BITMEX_ORDER_SIDE_SELL = "Sell"
0
0
0
0
0
0
0
0
0
64a76364d75e50bdd41656b3feafc9d81e9fc40d
748
py
Python
helpers/PlotSolution.py
alonw/image-classifier-102
f7b6415a7992fdb766d45f3200e49d0e8453bff8
[ "MIT" ]
null
null
null
helpers/PlotSolution.py
alonw/image-classifier-102
f7b6415a7992fdb766d45f3200e49d0e8453bff8
[ "MIT" ]
null
null
null
helpers/PlotSolution.py
alonw/image-classifier-102
f7b6415a7992fdb766d45f3200e49d0e8453bff8
[ "MIT" ]
null
null
null
# TODO: Display an image along with the top 5 classes
35.619048
78
0.680481
# TODO: Display an image along with the top 5 classes def plot_solution(image_path, model): # Sets up our plot plt.figure(figsize = (6,10)) ax = plt.subplot(2,1,1) # Set up title flower_num = image_path.split('/')[2] title_ = cat_to_name[flower_num] # Calls dictionary for name # Plot flower ...
0
0
0
0
0
673
0
0
22
eeb847d7dfcb9a42c65709f96bd5a4de568765ca
260
py
Python
backend/apps/tags/handlers.py
brainless/sanctuary
1d157b8e9105ee426d9ef8655623a4ef17ae0a37
[ "MIT" ]
null
null
null
backend/apps/tags/handlers.py
brainless/sanctuary
1d157b8e9105ee426d9ef8655623a4ef17ae0a37
[ "MIT" ]
null
null
null
backend/apps/tags/handlers.py
brainless/sanctuary
1d157b8e9105ee426d9ef8655623a4ef17ae0a37
[ "MIT" ]
null
null
null
from fastapi import APIRouter tags_router = APIRouter()
15.294118
47
0.676923
from typing import List from fastapi import APIRouter from .tags import tags tags_router = APIRouter() @tags_router.get("/", response_model=List[str]) async def list_tags(): """ List of all tag slugs :return: List[str] """ return tags
0
130
0
0
0
0
0
3
68
2d66141a687845a166453cab40a540edfd8e9e5c
6,037
py
Python
tests/parser/test_nightscout.py
simli26/tconnectsync
1314c4e6746e5943ed9cb601200cb28ff3361f6a
[ "MIT" ]
47
2021-02-06T05:52:43.000Z
2022-03-26T17:20:53.000Z
tests/parser/test_nightscout.py
simli26/tconnectsync
1314c4e6746e5943ed9cb601200cb28ff3361f6a
[ "MIT" ]
33
2021-03-15T22:36:47.000Z
2022-03-18T13:06:30.000Z
tests/parser/test_nightscout.py
simli26/tconnectsync
1314c4e6746e5943ed9cb601200cb28ff3361f6a
[ "MIT" ]
37
2021-03-15T03:39:03.000Z
2022-02-26T00:39:53.000Z
#!/usr/bin/env python3 import unittest if __name__ == '__main__': unittest.main()
30.80102
85
0.43134
#!/usr/bin/env python3 import unittest from tconnectsync.parser.nightscout import NightscoutEntry, InvalidBolusTypeException class TestNightscoutEntry(unittest.TestCase): def test_basal(self): self.assertEqual( NightscoutEntry.basal( value=1.05, duration_mins=30...
0
0
0
5,840
0
0
0
64
45
b4921781a101064b578b45079ea65e008f3c4763
2,178
py
Python
kerosene_mnist/main.py
banctilrobitaille/kerosene-mnist
6f1f39c575e9b32df254b2ae9b1e7ff25ea99378
[ "MIT" ]
null
null
null
kerosene_mnist/main.py
banctilrobitaille/kerosene-mnist
6f1f39c575e9b32df254b2ae9b1e7ff25ea99378
[ "MIT" ]
null
null
null
kerosene_mnist/main.py
banctilrobitaille/kerosene-mnist
6f1f39c575e9b32df254b2ae9b1e7ff25ea99378
[ "MIT" ]
null
null
null
import logging import torchvision from kerosene.config.parsers import YamlConfigurationParser from kerosene.config.trainers import RunConfiguration from kerosene.events import Event from kerosene.events.handlers.console import PrintTrainingStatus, PrintModelTrainersStatus from kerosene.events.handlers.visdom import Pl...
51.857143
120
0.79798
import logging import torchvision from kerosene.config.parsers import YamlConfigurationParser from kerosene.config.trainers import RunConfiguration from kerosene.events import Event from kerosene.events.handlers.console import PrintTrainingStatus, PrintModelTrainersStatus from kerosene.events.handlers.visdom import Pl...
0
0
0
0
0
0
0
0
0
8169cad7f51c512b76782c551c8321dea37ccacf
12,606
py
Python
youtube-8m-ensemble/inference-pre-ensemble.py
wangheda/youtube-8m
07e54b387ee027cb58b0c14f5eb7c88cfa516d58
[ "Apache-2.0" ]
196
2017-06-16T12:06:56.000Z
2022-02-18T10:50:43.000Z
youtube-8m-ensemble/inference-pre-ensemble.py
wangheda/youtube-8m
07e54b387ee027cb58b0c14f5eb7c88cfa516d58
[ "Apache-2.0" ]
5
2017-08-04T02:37:34.000Z
2018-10-27T18:32:38.000Z
youtube-8m-ensemble/inference-pre-ensemble.py
wangheda/youtube-8m
07e54b387ee027cb58b0c14f5eb7c88cfa516d58
[ "Apache-2.0" ]
71
2017-06-20T15:04:13.000Z
2021-10-06T16:43:32.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
38.432927
138
0.682373
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
0
0
0
0
0
7,514
0
-40
359
34781f9f6c68c42580f01b8e1e3ecd122d840d09
736
py
Python
code-slicer/joern/projects/octopus/python/octopus-tools/octopus/shelltool/ResultProcessor.py
bstee615/ReVeal
fc22d0d54a3a23d4e0bc45a249b7eea22749685e
[ "MIT" ]
63
2020-09-24T07:51:45.000Z
2022-03-24T03:34:43.000Z
code-slicer/joern/projects/octopus/python/octopus-tools/octopus/shelltool/ResultProcessor.py
smartcontract-detect-yzu/ReVeal
ca31b783384b4cdb09b69950e48f79fa0748ef1d
[ "MIT" ]
16
2020-08-04T16:26:46.000Z
2022-03-08T03:13:33.000Z
code-slicer/joern/projects/octopus/python/octopus-tools/octopus/shelltool/ResultProcessor.py
smartcontract-detect-yzu/ReVeal
ca31b783384b4cdb09b69950e48f79fa0748ef1d
[ "MIT" ]
29
2020-09-08T17:27:07.000Z
2022-03-31T22:32:39.000Z
#!/usr/bin/env python3
25.37931
53
0.535326
#!/usr/bin/env python3 class BaseResultProcessor: def __init__(self, result): self.result = result @staticmethod def value(element,key): prop = element['properties'].get(key,[]) if len(prop) == 0: return None return prop[0]['value'] @staticmethod def id(e...
0
194
0
472
0
0
0
0
46
4cc95b5f1eb7d150eba879c8c9c2bf603b7f95be
39,673
py
Python
upvote/gae/cron/bit9_syncing.py
farmersbusinessnetwork/upvote
a59653db40fabc43807e6f82cf68161fc50a7305
[ "Apache-2.0" ]
null
null
null
upvote/gae/cron/bit9_syncing.py
farmersbusinessnetwork/upvote
a59653db40fabc43807e6f82cf68161fc50a7305
[ "Apache-2.0" ]
1
2018-11-06T20:51:36.000Z
2018-11-06T20:51:36.000Z
upvote/gae/cron/bit9_syncing.py
farmersbusinessnetwork/upvote
a59653db40fabc43807e6f82cf68161fc50a7305
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
36.734259
113
0.729489
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
0
14,691
0
5,066
0
624
0
181
591
1d7c053ab9249d12fae51a17d8280053c3c25c61
9,594
py
Python
docker/src/clawpack-5.3.1/pyclaw/examples/euler_gravity_3d/visitHDF5XDMF.py
ian-r-rose/visualization
ed6d9fab95eb125e7340ab3fad3ed114ed3214af
[ "CC-BY-4.0" ]
11
2017-01-04T18:19:48.000Z
2021-02-21T01:46:33.000Z
docker/src/clawpack-5.3.1/pyclaw/examples/euler_gravity_3d/visitHDF5XDMF.py
ian-r-rose/visualization
ed6d9fab95eb125e7340ab3fad3ed114ed3214af
[ "CC-BY-4.0" ]
8
2016-09-22T20:49:51.000Z
2019-09-06T23:28:13.000Z
docker/src/clawpack-5.3.1/pyclaw/examples/euler_gravity_3d/visitHDF5XDMF.py
ian-r-rose/visualization
ed6d9fab95eb125e7340ab3fad3ed114ed3214af
[ "CC-BY-4.0" ]
13
2016-09-22T20:20:06.000Z
2020-07-13T14:48:32.000Z
#!/usr/bin/env python # encoding: utf-8 """ !----------------------------------------------------------------------- ! HDF5 and XDMF routines for creating output files for VisIt. !----------------------------------------------------------------------- """ # Write a 2D HDF5 File for Rectilinear Mesh # Write ...
46.8
149
0.526579
#!/usr/bin/env python # encoding: utf-8 """ !----------------------------------------------------------------------- ! HDF5 and XDMF routines for creating output files for VisIt. !----------------------------------------------------------------------- """ import os,sys import h5py from numpy import * # Write a 2D HD...
0
0
0
0
0
8,764
0
-20
220
037eba463814fc7430e8893db1753ffa0b4e0111
3,471
py
Python
softnms_rotate.py
ZhangGongjie/Soft-NMS-for-Rotated-Rectangles
52f274c16e68685f894ca0c5154a046ac658e490
[ "MIT" ]
16
2019-05-09T13:51:46.000Z
2022-03-20T15:58:28.000Z
softnms_rotate.py
DefTruth/Soft-NMS-for-Rotated-Rectangles
52f274c16e68685f894ca0c5154a046ac658e490
[ "MIT" ]
null
null
null
softnms_rotate.py
DefTruth/Soft-NMS-for-Rotated-Rectangles
52f274c16e68685f894ca0c5154a046ac658e490
[ "MIT" ]
2
2019-08-05T03:03:29.000Z
2022-03-20T15:59:08.000Z
# -*- coding: utf-8 -*- # Soft NMS for rotated rectangle, cpu implementation. # Author: Gongjie Zhang # GongjieZhang@ntu.edu.sg # or GongjieZhang007@gmail.com import numpy as np import cv2 def softnms_rotate_cpu(boxes, scores, iou_threshold, final_threshold=0.001): """ :param boxes: format [x_c, y_c, w, h, t...
30.447368
158
0.516854
# -*- coding: utf-8 -*- # Soft NMS for rotated rectangle, cpu implementation. # Author: Gongjie Zhang # GongjieZhang@ntu.edu.sg # or GongjieZhang007@gmail.com import numpy as np import cv2 def softnms_rotate_cpu(boxes, scores, iou_threshold, final_threshold=0.001): """ :param boxes: format [x_c, y_c, w, h, t...
0
0
0
0
0
0
0
0
0
54fbc656c3c2d700d937d8f62c82c50a0001ec0c
2,289
py
Python
SUMMARIZING-DATA-WITH-STATISTICS_Rajan_06Apr/code.py
rajan19933/ga-learner-dsmp-repo
c0b77164236b6f3f5cecd598351e557d9ed5d5a1
[ "MIT" ]
null
null
null
SUMMARIZING-DATA-WITH-STATISTICS_Rajan_06Apr/code.py
rajan19933/ga-learner-dsmp-repo
c0b77164236b6f3f5cecd598351e557d9ed5d5a1
[ "MIT" ]
null
null
null
SUMMARIZING-DATA-WITH-STATISTICS_Rajan_06Apr/code.py
rajan19933/ga-learner-dsmp-repo
c0b77164236b6f3f5cecd598351e557d9ed5d5a1
[ "MIT" ]
null
null
null
# -------------- #Header files import pandas as pd import matplotlib.pyplot as plt #path of the data file- path data = pd.read_csv(path) #Code starts here data['Gender'] = data['Gender'].replace('-','Agender') #print(data['Gender']) gender_count = data['Gender'].value_counts() #print(gender_count) gender...
23.357143
88
0.691568
# -------------- #Header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #path of the data file- path data = pd.read_csv(path) #Code starts here data['Gender'] = data['Gender'].replace('-','Agender') #print(data['Gender']) gender_count = data['Gender'].value_counts() #print(g...
0
0
0
0
0
0
0
-3
23
2fb7b7ee2bb27c9dd256235c93f0786ae6402924
1,570
py
Python
setup.py
priya1puresoftware/jsons
65092a0a99a89abb0bd1aa0e68a99e25b12d96c4
[ "MIT" ]
null
null
null
setup.py
priya1puresoftware/jsons
65092a0a99a89abb0bd1aa0e68a99e25b12d96c4
[ "MIT" ]
null
null
null
setup.py
priya1puresoftware/jsons
65092a0a99a89abb0bd1aa0e68a99e25b12d96c4
[ "MIT" ]
null
null
null
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) meta_info = {} with open(os.path.join(here, 'jsons', '_package_info.py'), 'r') as f: exec(f.read(), meta_info) with open('README.md', 'r') as f: long_description = f.read() setup( name=meta_info['__title__'], ve...
27.54386
69
0.589809
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) meta_info = {} with open(os.path.join(here, 'jsons', '_package_info.py'), 'r') as f: exec(f.read(), meta_info) with open('README.md', 'r') as f: long_description = f.read() setup( name=meta_info['__title__'], ve...
0
0
0
0
0
0
0
0
0
923873e2632c557346e117fac64715848e5fd1d8
1,442
py
Python
Toolbox/divide_and_conquer/inversions.py
felipe1120gomez/Data_Structures_and_Algorithms
168e56f39201cadf375476a3bec976e99a391d4a
[ "MIT" ]
null
null
null
Toolbox/divide_and_conquer/inversions.py
felipe1120gomez/Data_Structures_and_Algorithms
168e56f39201cadf375476a3bec976e99a391d4a
[ "MIT" ]
null
null
null
Toolbox/divide_and_conquer/inversions.py
felipe1120gomez/Data_Structures_and_Algorithms
168e56f39201cadf375476a3bec976e99a391d4a
[ "MIT" ]
null
null
null
# Uses python3 import sys def sort_list(left, right): '''MergeSort() returns a sorted array and the number of inversions in .''' sort_a = list() count = 0 while left and right: first_l = left[0] first_r = right[0] if first_l <= first_r: sort_a.append(first_l) ...
26.703704
82
0.613731
# Uses python3 import sys def sort_list(left, right): '''MergeSort(𝐴) returns a sorted array 𝐴 and the number of inversions in 𝐴.''' sort_a = list() count = 0 while left and right: first_l = left[0] first_r = right[0] if first_l <= first_r: sort_a.append(first_l...
58
0
0
0
0
0
0
0
0
8b149f8492a472a2de223f896423db1f86d6ef81
2,080
py
Python
fss17/project/Utils/StatsUtils/CrossVal.py
rahlk/fss17
49e22c4ad01ff751f24c3e5702b7fa36a3a18e96
[ "Apache-2.0" ]
null
null
null
fss17/project/Utils/StatsUtils/CrossVal.py
rahlk/fss17
49e22c4ad01ff751f24c3e5702b7fa36a3a18e96
[ "Apache-2.0" ]
null
null
null
fss17/project/Utils/StatsUtils/CrossVal.py
rahlk/fss17
49e22c4ad01ff751f24c3e5702b7fa36a3a18e96
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division
31.044776
120
0.561058
from __future__ import print_function, division from pdb import set_trace import pandas as pd from sklearn.model_selection import StratifiedKFold from sklearn.model_selection import LeaveOneOut from itertools import islice class TrainTestValidate: def __init__(self): pass @classmeth...
0
1,549
0
218
0
0
0
65
193
48b735ba732200fe4cd9410a128d4d624bbf2075
11,496
py
Python
src/cnn/train.py
jordiae/DeepLearning-MAI
e12b6975d8de6cbe89f812bf691a7f7e95213552
[ "MIT" ]
1
2021-02-25T04:54:01.000Z
2021-02-25T04:54:01.000Z
src/cnn/train.py
jordiae/DeepLearning-MAI
e12b6975d8de6cbe89f812bf691a7f7e95213552
[ "MIT" ]
2
2021-04-30T21:15:57.000Z
2021-09-08T01:58:29.000Z
src/cnn/train.py
jordiae/DeepLearning-MAI
e12b6975d8de6cbe89f812bf691a7f7e95213552
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.optim as optim if __name__ == '__main__': main()
44.215385
117
0.592641
import torch import argparse import os import logging import torch.nn as nn import torch.optim as optim import albumentations as A from albumentations.pytorch import ToTensorV2 from cnn.evaluate import evaluate, prettify_eval from cnn.dataset import Mit67Dataset import json from torch.utils.tensorboard import SummaryWr...
0
0
0
0
0
10,989
0
83
332
10763705c0db7d612a40657e4801c6b4ce299bf8
4,238
py
Python
thatkitebot/__main__.py
GalacticB69/thatkitebot
d07ca24d5906c504d4275e9efe1c0713510b8c44
[ "MIT" ]
null
null
null
thatkitebot/__main__.py
GalacticB69/thatkitebot
d07ca24d5906c504d4275e9efe1c0713510b8c44
[ "MIT" ]
null
null
null
thatkitebot/__main__.py
GalacticB69/thatkitebot
d07ca24d5906c504d4275e9efe1c0713510b8c44
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # MIT License # # Copyright (c) 2019-2021 ThatRedKite # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software with...
35.024793
118
0.674611
# ------------------------------------------------------------------------------ # MIT License # # Copyright (c) 2019-2021 ThatRedKite # # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the Software with...
0
0
64
1,004
0
0
0
4
111
7fa8560456f0f722c33e89eeccc198dfbfe6e7b2
3,910
py
Python
Emotions/src/spark-queries.py
kksante/Earths_Emotion_Tracker
49011d35dc875302851172b30755592c2b35ed4f
[ "Apache-2.0" ]
null
null
null
Emotions/src/spark-queries.py
kksante/Earths_Emotion_Tracker
49011d35dc875302851172b30755592c2b35ed4f
[ "Apache-2.0" ]
null
null
null
Emotions/src/spark-queries.py
kksante/Earths_Emotion_Tracker
49011d35dc875302851172b30755592c2b35ed4f
[ "Apache-2.0" ]
null
null
null
from pyspark import SparkContext, SparkConf from pyspark.sql import SQLContext from pyspark.sql.functions import udf from pyspark.sql.functions import col from pyspark.sql.types import StringType, DoubleType, IntegerType from abbreviations_dict import tofullname, toevent from operator import itemgetter from pyspark imp...
37.238095
108
0.592583
from pyspark import SparkContext, SparkConf from pyspark.sql import SQLContext from pyspark.sql.types import * from pyspark.sql.functions import udf from pyspark.sql.functions import col from pyspark.sql.types import StringType, DoubleType, IntegerType from abbreviations_dict import tofullname, toevent from operator im...
0
0
0
0
0
196
0
10
91
9c6d398844e7f0a0aececa3d63321ff80550891b
5,127
py
Python
higgins/datasets/messaging_datasets.py
bfortuner/higgins
c8ab098c1496ee9b45efc3fc667d894d86031f67
[ "MIT" ]
null
null
null
higgins/datasets/messaging_datasets.py
bfortuner/higgins
c8ab098c1496ee9b45efc3fc667d894d86031f67
[ "MIT" ]
null
null
null
higgins/datasets/messaging_datasets.py
bfortuner/higgins
c8ab098c1496ee9b45efc3fc667d894d86031f67
[ "MIT" ]
null
null
null
SEND_MESSAGE_DATASET_TRAIN = [ { "query": "Text mom I love her", "actions": [ { "action": "SendMessage", "params": { "recipient": "mom", "body": "I love her", "application": "???" ...
31.262195
152
0.401989
SEND_MESSAGE_DATASET_TRAIN = [ { "query": "Text mom I love her", "actions": [ { "action": "SendMessage", "params": { "recipient": "mom", "body": "I love her", "application": "???" ...
0
0
0
0
0
0
0
0
0
accf4f94c1bf8bd6bc70f29aaae0873dee3797a9
707
py
Python
examples/geomopt/01-geomeTRIC.py
pavanell/pyscf
c0d19e499685e95dbf4c879539ad3a3ceb6934e2
[ "Apache-2.0" ]
2
2019-05-28T05:25:56.000Z
2019-11-09T02:16:43.000Z
examples/geomopt/01-geomeTRIC.py
pavanell/pyscf
c0d19e499685e95dbf4c879539ad3a3ceb6934e2
[ "Apache-2.0" ]
2
2019-09-16T17:58:31.000Z
2019-09-22T17:26:01.000Z
examples/geomopt/01-geomeTRIC.py
pavanell/pyscf
c0d19e499685e95dbf4c879539ad3a3ceb6934e2
[ "Apache-2.0" ]
1
2019-11-09T02:13:16.000Z
2019-11-09T02:13:16.000Z
#!/usr/bin/env python ''' Use geomeTRIC library to optimize the molecular geometry. ''' from pyscf import gto, scf from pyscf.geomopt.geometric_solver import optimize mol = gto.M(atom='N 0 0 0; N 0 0 1.2', basis='ccpvdz') mf = scf.RHF(mol) # # geometry optimization for HF # mol_eq = optimize(mf) print(mol_eq.atom_c...
20.794118
57
0.680339
#!/usr/bin/env python ''' Use geomeTRIC library to optimize the molecular geometry. ''' from pyscf import gto, scf from pyscf.geomopt.geometric_solver import optimize mol = gto.M(atom='N 0 0 0; N 0 0 1.2', basis='ccpvdz') mf = scf.RHF(mol) # # geometry optimization for HF # mol_eq = optimize(mf) print(mol_eq.atom_c...
0
0
0
0
0
0
0
0
0
2ddc2c560b265ea8691154025e3045e9c0599aa7
3,110
py
Python
ppmessage/core/utils/randomidenticon.py
gamert/ppmessage
dd4aaf29154679a093b2431d5e34af889ab16932
[ "Apache-2.0" ]
6
2017-11-03T17:31:52.000Z
2020-06-14T09:14:36.000Z
ppmessage/core/utils/randomidenticon.py
gamert/ppmessage
dd4aaf29154679a093b2431d5e34af889ab16932
[ "Apache-2.0" ]
1
2017-02-21T01:07:22.000Z
2017-04-07T04:48:02.000Z
ppmessage/core/utils/randomidenticon.py
gamert/ppmessage
dd4aaf29154679a093b2431d5e34af889ab16932
[ "Apache-2.0" ]
16
2017-08-08T01:25:47.000Z
2019-09-17T16:32:06.000Z
# -*- coding: utf-8 -*- # # Copyright (C) 2010-2016 PPMessage. # Guijin Ding, dingguijin@gmail.com. # All rights reserved. # # core/utils/randomidenticon.py # IDENTICON_PPMESSAGE_STORE = True _global_random_identicon_list = None if __name__ == "__main__": print(random_identicon("dingguijin@gmail.com"))
28.272727
100
0.70836
# -*- coding: utf-8 -*- # # Copyright (C) 2010-2016 PPMessage. # Guijin Ding, dingguijin@gmail.com. # All rights reserved. # # core/utils/randomidenticon.py # import os import json import logging IDENTICON_PPMESSAGE_STORE = True _global_random_identicon_list = None def _ppmessage_identicon_prefix(_string): from...
0
0
0
0
0
2,502
0
-29
325
f5a013fee13c4f1ea41cca392174e431d5c5dad5
184
py
Python
Functions/Global Variable/Global.py
Adi-19/Python
734b5c4c1008233f93a18a500dd47d03583c52be
[ "MIT" ]
null
null
null
Functions/Global Variable/Global.py
Adi-19/Python
734b5c4c1008233f93a18a500dd47d03583c52be
[ "MIT" ]
null
null
null
Functions/Global Variable/Global.py
Adi-19/Python
734b5c4c1008233f93a18a500dd47d03583c52be
[ "MIT" ]
1
2020-10-07T08:51:00.000Z
2020-10-07T08:51:00.000Z
var = "Good" show() print("outside function var1 is ", var1) print("var is ",var)
16.727273
41
0.570652
var = "Good" def show(): global var1 var1 = "morning" print("In function var is", var) show() print("outside function var1 is ", var1) print("var is ",var)
0
0
0
0
0
67
0
0
23
65eb7be400705909dd0ab0d284dc05e7d8a8441c
8,625
py
Python
npc_engine/server/control_service.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
12
2021-11-10T21:03:19.000Z
2022-03-21T21:55:34.000Z
npc_engine/server/control_service.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
1
2021-12-05T14:51:44.000Z
2021-12-05T14:51:44.000Z
npc_engine/server/control_service.py
npc-engine/npc-engine
0047794e96369c23515f794a1e77009c516a382c
[ "MIT" ]
null
null
null
"""Module that implements control service.""" import zmq import zmq.asyncio from npc_engine import services from npc_engine.server.metadata_manager import MetadataManager def set_logger(logger_): """Set the logger for the service.""" global logger logger = logger_ def service_process(me...
39.383562
93
0.606029
"""Module that implements control service.""" from multiprocessing import Process import asyncio import json import zmq import zmq.asyncio from npc_engine import services from npc_engine.server.metadata_manager import MetadataManager from jsonrpc import JSONRPCResponseManager, Dispatcher from loguru import l...
0
0
2,316
5,384
0
0
0
34
165
072340015e4276671f71e15e65e1bff755ea7a74
4,133
py
Python
contrib/inventory/vagrant.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
contrib/inventory/vagrant.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
contrib/inventory/vagrant.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
#!/usr/bin/env python """ Vagrant external inventory script. Automatically finds the IP of the booted vagrant vm(s), and returns it under the host group 'vagrant' Example Vagrant configuration using this script: config.vm.provision :ansible do |ansible| ansible.playbook = "./provision/your_playbook.yml" ...
30.614815
112
0.676264
#!/usr/bin/env python """ Vagrant external inventory script. Automatically finds the IP of the booted vagrant vm(s), and returns it under the host group 'vagrant' Example Vagrant configuration using this script: config.vm.provision :ansible do |ansible| ansible.playbook = "./provision/your_playbook.yml" ...
0
0
0
0
0
374
0
-12
66
9c565f64c6d04ccc5d1c5457f4cf3faae6c884f1
2,903
py
Python
examples/language_model/gpt/predict.py
JeremyZhao1998/PaddleNLP
5a34684a7f0c8a186043fed386be4b62cb85fb15
[ "Apache-2.0" ]
7,091
2021-02-05T13:56:25.000Z
2022-03-31T11:42:50.000Z
examples/language_model/gpt/predict.py
JeremyZhao1998/PaddleNLP
5a34684a7f0c8a186043fed386be4b62cb85fb15
[ "Apache-2.0" ]
844
2021-02-10T01:09:29.000Z
2022-03-31T12:12:58.000Z
examples/language_model/gpt/predict.py
JeremyZhao1998/PaddleNLP
5a34684a7f0c8a186043fed386be4b62cb85fb15
[ "Apache-2.0" ]
1,035
2021-02-05T14:26:48.000Z
2022-03-31T11:42:57.000Z
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 TsinghuaAI Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
35.839506
94
0.68102
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # Copyright (c) 2020 TsinghuaAI Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
153
0
0
1,354
0
0
0
10
112
919f8645cec215ba1b51f210805ac9085cc7dbd3
17,200
py
Python
tools/compbio/dotknot/mwis.py
PeterKoza/Galaxy-fmfi
2c201b7cca694905412452a707ec69b2111f72c7
[ "CC-BY-3.0" ]
null
null
null
tools/compbio/dotknot/mwis.py
PeterKoza/Galaxy-fmfi
2c201b7cca694905412452a707ec69b2111f72c7
[ "CC-BY-3.0" ]
null
null
null
tools/compbio/dotknot/mwis.py
PeterKoza/Galaxy-fmfi
2c201b7cca694905412452a707ec69b2111f72c7
[ "CC-BY-3.0" ]
null
null
null
""" DotKnot: software for RNA pseudoknot prediction Copyright (C) 2010-2011 Jana Sperschneider This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the L...
50.292398
184
0.552674
""" DotKnot: software for RNA pseudoknot prediction Copyright (C) 2010-2011 Jana Sperschneider This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the L...
0
0
0
0
0
0
0
0
0
08394270021b47ba07ca3670928bf58c6f8e4d7d
5,760
py
Python
COMET/misc_plugins/TelegramResponderPlugins/RaspberryPiPlugins.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/misc_plugins/TelegramResponderPlugins/RaspberryPiPlugins.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
COMET/misc_plugins/TelegramResponderPlugins/RaspberryPiPlugins.py
dallaval5u/COMET
8c5793faafe2797dd4100507aa0fe1e71cf9f6c0
[ "MIT" ]
null
null
null
import re, os def do_get_light_config(value, TelegramResponder): """Light? - Gives you the possible light configurations""" for val in value.values(): if val.strip() == "Light?": if ( "433MHz_Transiever" in TelegramResponder.main.default_values_dict["setting...
43.308271
85
0.448785
import re, os def do_get_light_config(value, TelegramResponder): """Light? - Gives you the possible light configurations""" for val in value.values(): if val.strip() == "Light?": if ( "433MHz_Transiever" in TelegramResponder.main.default_values_dict["setting...
0
0
0
0
0
0
0
0
0
22604bd2360d68fb2805721ecafb4bc2248fa39e
1,778
py
Python
master/test_master.py
moon657/IEEE1588-PTP
0d52eebb893d194b09842985dbbfe66740a71e0e
[ "MIT" ]
1
2017-05-12T03:10:56.000Z
2017-05-12T03:10:56.000Z
master/test_master.py
moon657/IEEE1588-PTP
0d52eebb893d194b09842985dbbfe66740a71e0e
[ "MIT" ]
null
null
null
master/test_master.py
moon657/IEEE1588-PTP
0d52eebb893d194b09842985dbbfe66740a71e0e
[ "MIT" ]
null
null
null
#------------------------------------------------------------------------------- # Name: Raspberry Pi Socket Client # Purpose: # # Author: Vaibhav # # Created: 20/08/2014 # Copyright: (c) Vaibhav 2014 # Licence: <your licence> #-------------------------------------------------------------...
25.4
81
0.556243
#------------------------------------------------------------------------------- # Name: Raspberry Pi Socket Client # Purpose: # # Author: Vaibhav # # Created: 20/08/2014 # Copyright: (c) Vaibhav 2014 # Licence: <your licence> #-------------------------------------------------------------...
0
0
0
0
0
1,089
0
-21
197
d81dc5d957479d6adb2759654e5e7c34d411e4cc
4,780
py
Python
FaedoGuerraBot.py
Delfad0r/faedo-guerra-bot
9a1318d48bb7eaab63bbffa5ef68e9076146d9ad
[ "Apache-2.0" ]
1
2019-05-22T12:49:06.000Z
2019-05-22T12:49:06.000Z
FaedoGuerraBot.py
Delfad0r/faedo-guerra-bot
9a1318d48bb7eaab63bbffa5ef68e9076146d9ad
[ "Apache-2.0" ]
null
null
null
FaedoGuerraBot.py
Delfad0r/faedo-guerra-bot
9a1318d48bb7eaab63bbffa5ef68e9076146d9ad
[ "Apache-2.0" ]
null
null
null
import copy import getpass import numpy as np import pickle import time import random import game_engine channel_name = '@FaedoGuerraBotChannel' print('Username UZ: ', end = '') username = input() password = getpass.getpass() state0 = pickle.load(open(save_file, 'rb')) while 'random_state' not in state0: state0...
40.854701
211
0.669456
import copy import getpass import numpy as np import pickle import time import shutil import subprocess import os import random import sys from FGBconstants import * import game_engine, game_graphics, telegram_bot, report channel_name = '@FaedoGuerraBotChannel' def upload_image_ssh(src, dest): global username, ...
10
0
0
0
0
3,154
0
7
355
37ad5f842b5780cbb5a3acccbecc643655c2e5de
47
py
Python
__init__.py
yinziyan1206/nado_utils
ab73776945ded94d86f632750514fae448e98a60
[ "MIT" ]
null
null
null
__init__.py
yinziyan1206/nado_utils
ab73776945ded94d86f632750514fae448e98a60
[ "MIT" ]
null
null
null
__init__.py
yinziyan1206/nado_utils
ab73776945ded94d86f632750514fae448e98a60
[ "MIT" ]
null
null
null
__author__ = 'ziyan.yin' __version__ = '1.0.2'
15.666667
24
0.680851
__author__ = 'ziyan.yin' __version__ = '1.0.2'
0
0
0
0
0
0
0
0
0
aef7b74fb803248391c3a1f3bd1810d91cef610d
1,991
py
Python
unsorted_map.py
carlb15/Python
fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2
[ "MIT" ]
2
2017-05-04T05:44:24.000Z
2019-09-29T23:32:28.000Z
unsorted_map.py
carlb15/Python
fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2
[ "MIT" ]
null
null
null
unsorted_map.py
carlb15/Python
fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2
[ "MIT" ]
null
null
null
"""Unsorted Table Map Implementation.""" if __name__=="__main__": unsortedmap = UnsortedTableMap() unsortedmap[4] = 'hello' unsortedmap[5] = 'world' unsortedmap[8] = 'joe' print(len(unsortedmap)) print(unsortedmap) del unsortedmap[4] it = iter(unsortedmap) print(next(it)) print(next(it)) ...
20.739583
64
0.607233
"""Unsorted Table Map Implementation.""" from MapBase import MapBase class UnsortedTableMap(MapBase): """ Class that relies on storing key-value pairs in arbitrary order within a Python list. """ def __init__(self): """Initialize the unsorted list.""" self._table = [] def __getitem__(self, k):...
0
0
0
1,618
0
0
0
6
45
67b80703825e3ad040cdcf72d8dd2707ed85b70d
3,447
py
Python
SVM/Kernel.py
ruiyuanlu/MachineLearningImplementation
22f3d6869b5a1cb48dd8db4388420ad3e3ef7aa6
[ "MIT" ]
null
null
null
SVM/Kernel.py
ruiyuanlu/MachineLearningImplementation
22f3d6869b5a1cb48dd8db4388420ad3e3ef7aa6
[ "MIT" ]
null
null
null
SVM/Kernel.py
ruiyuanlu/MachineLearningImplementation
22f3d6869b5a1cb48dd8db4388420ad3e3ef7aa6
[ "MIT" ]
null
null
null
# coding=utf8 import warnings def kernel(kernel_name=None, **kernel_params): ''' ''' name2kernel = { None: LinearKernel, 'linear': LinearKernel, 'rbf': RBFKernel, 'poly': PolynomialKernal, 'sigmoid':SigmoidKernel, } assert kernel_...
25.533333
87
0.504497
# coding=utf8 import warnings import numpy as np class AbstractSVMKernel(object): ''' 核函数类的基类, 计算核函数与内积 ''' def __init__(self, **kernel_params): pass def __call__(self, xi, xj): raise NotImplementedError('Abstract inner product not implemented.') class LinearK...
564
0
0
2,158
0
0
0
-3
148
6cdfba992a8dacb54f15f2c59663fef80bde65af
3,457
py
Python
datasets/TwoByTwoLines.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
4
2020-12-07T19:13:13.000Z
2022-01-30T18:52:18.000Z
datasets/TwoByTwoLines.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
12
2020-09-25T22:41:28.000Z
2022-02-09T23:46:34.000Z
datasets/TwoByTwoLines.py
rist-ro/argo
a10c33346803239db8a64c104db7f22ec4e05bef
[ "MIT" ]
2
2021-03-02T18:31:04.000Z
2021-03-02T21:56:43.000Z
""" Module for managing the IRIS dataset """ DATASET_SIZE = 15
27.436508
93
0.590686
""" Module for managing the IRIS dataset """ import numpy as np from .Dataset import Dataset DATASET_SIZE = 15 class TwoByTwoLines(Dataset): """ This class manage the dataset , properties of the datasets are uniquely determined by the params dictionary It compares the parameters and complete t...
0
1,183
0
2,136
0
0
0
4
69
485cad4ffcc5f0b345efb170b142918fceded062
189
py
Python
Lesson9/programming_lang.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
2
2021-06-01T13:24:04.000Z
2021-06-01T13:27:47.000Z
Lesson9/programming_lang.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
null
null
null
Lesson9/programming_lang.py
shinkai-tester/python_beginner
a934328c9a50241cc3f02a423060e16aab53b425
[ "Apache-2.0" ]
null
null
null
N = int(input()) lang = set(input().split()) one = set(lang) alll = set(lang) for i in range(N - 1): lang = set(input().split()) one |= lang alll &= lang print(alll) print(one)
17.181818
31
0.57672
N = int(input()) lang = set(input().split()) one = set(lang) alll = set(lang) for i in range(N - 1): lang = set(input().split()) one |= lang alll &= lang print(alll) print(one)
0
0
0
0
0
0
0
0
0
dc292b2fc1a41eabb71fc274884841527fb8c7fd
5,264
py
Python
pkr/environment.py
splisson-altair/pkr
be2135a8eec96e8ede0d47536aaac9872cf60edd
[ "Apache-2.0" ]
null
null
null
pkr/environment.py
splisson-altair/pkr
be2135a8eec96e8ede0d47536aaac9872cf60edd
[ "Apache-2.0" ]
null
null
null
pkr/environment.py
splisson-altair/pkr
be2135a8eec96e8ede0d47536aaac9872cf60edd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 1986-2018 Altair Engineering Inc. """Module with the pkr environment""" ENV_FOLDER = 'env'
30.08
79
0.590995
# -*- coding: utf-8 -*- # Copyright© 1986-2018 Altair Engineering Inc. """Module with the pkr environment""" import yaml from builtins import object from .utils import HashableDict, ensure_definition_matches, get_pkr_path, merge ENV_FOLDER = 'env' class Environment(object): """Class for loading and holding pk...
2
344
0
4,644
0
0
0
54
91
fde68e3b33daa8bcf6c0783cf0106af348d1c158
743
py
Python
tests/test_core.py
sugatoray/genespeak
c3f57ad9fbedd5845fd279adcd83826b9a32e952
[ "MIT" ]
5
2022-01-16T12:12:09.000Z
2022-03-11T23:17:43.000Z
tests/test_core.py
sugatoray/genespeak
c3f57ad9fbedd5845fd279adcd83826b9a32e952
[ "MIT" ]
3
2022-01-21T05:00:18.000Z
2022-01-30T10:00:30.000Z
tests/test_core.py
sugatoray/genespeak
c3f57ad9fbedd5845fd279adcd83826b9a32e952
[ "MIT" ]
null
null
null
# TODO: write proper tests if __name__ == "__main__": test_reconstruction()
28.576923
164
0.561238
# TODO: write proper tests def test_reconstruction(): from genespeak import text_to_dna, dna_to_text texts = {"ascii": "A good life", "utf-8": "A good life 👍!..."} schemas = [ "ACGT", "GATC", "ATGC", ] for schema in schemas: for strategy, text in texts.items(): ...
4
0
0
0
0
637
0
0
22
7f0760d5362fd41e3874df975e4ed7df8ec29971
3,057
py
Python
tuesmon_ncurses/ui/views/projects.py
tuesmoncom/tuesmon-ncurses
21cd4c39f2eed13e7fe42cac0e70d752f76382ca
[ "Apache-2.0" ]
null
null
null
tuesmon_ncurses/ui/views/projects.py
tuesmoncom/tuesmon-ncurses
21cd4c39f2eed13e7fe42cac0e70d752f76382ca
[ "Apache-2.0" ]
null
null
null
tuesmon_ncurses/ui/views/projects.py
tuesmoncom/tuesmon-ncurses
21cd4c39f2eed13e7fe42cac0e70d752f76382ca
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ tuesmon_ncurses.ui.views.projects ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """
31.515464
86
0.635918
# -*- coding: utf-8 -*- """ tuesmon_ncurses.ui.views.projects ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ """ import functools import urwid from tuesmon_ncurses.ui.widgets import generic, projects from . import base from .backlog import ProjectBacklogSubView from .milestones import ProjectMilestoneSubView from .issues import...
0
0
0
2,606
0
0
0
99
250
82ad07ac41b7eebbea882cc6f11f501fe34982a5
590
py
Python
packages/mono-upnp.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
packages/mono-upnp.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
packages/mono-upnp.py
mhutch/bockbuild
0d989e2d0259d17d41a195f8d28b3844a4652e7b
[ "MIT" ]
null
null
null
MonoUpnpPackage ()
26.818182
59
0.679661
class MonoUpnpPackage (GitHubTarballPackage): def __init__ (self): GitHubTarballPackage.__init__ (self, 'mono', 'mono-upnp', '0.1.2', 'b374ed41c566bc6ad50b3513218458b711e508db', configure = './autogen.sh --prefix="%{prefix}"') self.configure_flags = [ '--disable-tests', ] self.sources.extend ([ #...
0
0
0
548
0
0
0
0
22
21bb640e91c6d85eefe42b8c0956dd1ef3d64645
10,525
py
Python
Legify/Holes.py
vectronic/freecad-legify-macros
ff5782adcc2f1e0724432ffb58ccdea91d594add
[ "MIT" ]
18
2019-01-22T10:40:26.000Z
2022-02-27T23:42:39.000Z
Legify/Holes.py
vectronic/freecad-legify-macros
ff5782adcc2f1e0724432ffb58ccdea91d594add
[ "MIT" ]
3
2018-10-16T18:15:06.000Z
2020-03-15T16:15:52.000Z
Legify/Holes.py
vectronic/freecad-legify-macros
ff5782adcc2f1e0724432ffb58ccdea91d594add
[ "MIT" ]
3
2019-09-22T18:27:19.000Z
2021-04-14T10:47:04.000Z
# coding: UTF-8
49.413146
117
0.646841
# coding: UTF-8 from FreeCAD import Console, Placement, Rotation, Vector import Part import Sketcher from Legify.Common import * class HolesRenderer: def __init__(self): Console.PrintMessage("HolesRenderer\n") self.doc = None self.brick = None self.width = None self.dep...
0
3,771
0
6,600
0
0
0
25
112
bce66ef1d5acf2467c683fae70f1ea66f6ccd9b2
23,406
py
Python
poium/wda/__init__.py
yaoJeffer/poium
68bce81c8648c184f4349543e97630fb92c7138b
[ "Apache-2.0" ]
174
2019-11-28T02:01:55.000Z
2022-03-13T03:20:42.000Z
poium/wda/__init__.py
yaoJeffer/poium
68bce81c8648c184f4349543e97630fb92c7138b
[ "Apache-2.0" ]
20
2020-01-14T16:28:51.000Z
2022-03-25T11:47:05.000Z
poium/wda/__init__.py
yaoJeffer/poium
68bce81c8648c184f4349543e97630fb92c7138b
[ "Apache-2.0" ]
82
2019-12-22T07:43:15.000Z
2022-03-13T03:20:43.000Z
LOCATOR_LIST = [ "id", "name", "text", "nameContains", "label", "xpath", "labelContains", "className", "predicate", "classChain" ]
31.502019
105
0.510425
import time from poium.common import logging from poium.settings import Setting from poium.processing import processing, screenshots_name from poium.common.assert_des import insert_assert LOCATOR_LIST = [ "id", "name", "text", "nameContains", "label", "xpath", "labelContains", "classNa...
2,856
1,504
0
20,542
0
0
0
78
156
967013f1e42eb89a6abe48e06320ccc9aa157768
11,435
py
Python
tf_kde/benchmark/runner.py
AstroViking/tf-kde
a13deff0384b8d91af1d71909762242ff9b3e54e
[ "WTFPL" ]
1
2021-11-19T03:00:47.000Z
2021-11-19T03:00:47.000Z
tf_kde/benchmark/runner.py
AstroViking/tf-kde
a13deff0384b8d91af1d71909762242ff9b3e54e
[ "WTFPL" ]
2
2020-11-06T14:05:46.000Z
2021-02-12T17:39:00.000Z
tf_kde/benchmark/runner.py
AstroViking/tf-kde
a13deff0384b8d91af1d71909762242ff9b3e54e
[ "WTFPL" ]
2
2021-06-14T09:25:16.000Z
2021-11-19T03:00:49.000Z
import matplotlib.pyplot as plt import seaborn as sns import inspect from tf_kde.benchmark import methods as available_methods sns.set() sns.set_context("paper") plt.rc('axes', titlesize=8) plt.rc('axes', labelsize=6) plt.rc('xtick', labelsize=6) plt.rc('ytick', labelsize=6) plt.rc('legend', fontsize=6) plt.rc('figu...
33.931751
211
0.664801
import tensorflow as tf import numpy as np from zfit import ztypes from zfit_benchmark.timer import Timer import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import inspect from decimal import Decimal from scipy.interpolate import UnivariateSpline from tf_kde.benchmark import distributions as ava...
0
0
0
0
0
10,117
0
95
499
c4c4d5718bf617ce233d777af7e5cf10f6aac908
458
py
Python
test.py
mwhavens/chess
1f472caea9e314b4dc1ca074d6312e094b8b9c59
[ "MIT" ]
null
null
null
test.py
mwhavens/chess
1f472caea9e314b4dc1ca074d6312e094b8b9c59
[ "MIT" ]
null
null
null
test.py
mwhavens/chess
1f472caea9e314b4dc1ca074d6312e094b8b9c59
[ "MIT" ]
null
null
null
if __name__ == '__main__': print(MyClass.__dict__['var3']) clzz = MyClass() clzz.my_method()
18.32
36
0.59607
class MyClass: __var2 = 'var2' var3 = 'var3' def __init__(self): self.__var1 = 'var1' def normal_method(self): print(self.__var1) @classmethod def class_method(cls): print(cls.__var2) def my_method(self): print(self.__var1) print(self.__var2) ...
0
43
0
286
0
0
0
0
22
a1f74c658b35e8e1718e81c568876b01cb135a61
431
py
Python
changes/api/node_details.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
443
2015-01-03T16:28:39.000Z
2021-04-26T16:39:46.000Z
changes/api/node_details.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
12
2015-07-30T19:07:16.000Z
2016-11-07T23:11:21.000Z
changes/api/node_details.py
vault-the/changes
37e23c3141b75e4785cf398d015e3dbca41bdd56
[ "Apache-2.0" ]
47
2015-01-09T10:04:00.000Z
2020-11-18T17:58:19.000Z
from __future__ import absolute_import
25.352941
65
0.682135
from __future__ import absolute_import from changes.api.base import APIView from changes.models.node import Node class NodeDetailsAPIView(APIView): def get(self, node_id): node = Node.query.get(node_id) if node is None: return '', 404 context = self.serialize(node) co...
0
0
0
293
0
0
0
30
68
a15a2c976ee18c3117b30ea41926c8f499328569
13,308
py
Python
GlobalPhone/dictionaries.py
MontrealCorpusTools/MFA-reorganization-scripts
8c7a2bdbee6b17b5d06e9d5d267386f37773a70d
[ "MIT" ]
28
2018-02-27T08:36:48.000Z
2022-03-17T15:29:34.000Z
GlobalPhone/dictionaries.py
MontrealCorpusTools/MFA-reorganization-scripts
8c7a2bdbee6b17b5d06e9d5d267386f37773a70d
[ "MIT" ]
null
null
null
GlobalPhone/dictionaries.py
MontrealCorpusTools/MFA-reorganization-scripts
8c7a2bdbee6b17b5d06e9d5d267386f37773a70d
[ "MIT" ]
5
2017-01-06T19:39:24.000Z
2022-01-15T08:32:52.000Z
import os full_names = { 'AR': 'Arabic', 'BG': 'Bulgarian', 'CH': 'Mandarin', 'CH_char': 'Mandarin', 'EN': 'English', 'WU': 'Cantonese', 'CR': 'Croatian', 'CZ': 'Czech', 'FR':...
41.981073
235
0.53404
import os from collections import defaultdict full_names = { 'AR': 'Arabic', 'BG': 'Bulgarian', 'CH': 'Mandarin', 'CH_char': 'Mandarin', 'EN': 'English', 'WU': 'Cantonese', 'CR': 'Croatian', ...
130
0
0
0
0
1,435
0
14
68
fef2dbdf7939029991a9ebb80a5192eda981285e
24,234
py
Python
docs/notebooks/05_reconstructing_the_light_curve_of_stars.py
eserie/wax-ml
9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e
[ "MIT", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
42
2021-06-14T16:27:54.000Z
2022-03-23T09:51:42.000Z
docs/notebooks/05_reconstructing_the_light_curve_of_stars.py
eserie/wax-ml
9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e
[ "MIT", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
1
2021-10-01T12:45:29.000Z
2021-10-03T18:06:39.000Z
docs/notebooks/05_reconstructing_the_light_curve_of_stars.py
eserie/wax-ml
9cf92ff5c41ea681fd3eaaf4560b3380f986ee1e
[ "MIT", "ECL-2.0", "Apache-2.0", "BSD-3-Clause" ]
5
2021-06-11T12:32:41.000Z
2022-02-17T16:13:15.000Z
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py,md # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.13.3 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python...
29.662179
268
0.682966
# -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # formats: ipynb,py,md # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.13.3 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python...
8
1,369
0
1,006
0
3,920
0
75
418
45b55261b26fa5ae0d0a6aa3d7d59813e6759301
1,345
py
Python
data-structures/graphs.py
Flor91/Data-Structures-and-Algorithms
0bfac03d3714417adff7545c589f48f6b91ede8b
[ "MIT" ]
8
2020-05-17T16:57:35.000Z
2022-01-27T12:27:23.000Z
data-structures/graphs.py
Flor91/Data-Structures-and-Algorithms
0bfac03d3714417adff7545c589f48f6b91ede8b
[ "MIT" ]
null
null
null
data-structures/graphs.py
Flor91/Data-Structures-and-Algorithms
0bfac03d3714417adff7545c589f48f6b91ede8b
[ "MIT" ]
5
2020-05-17T16:56:54.000Z
2021-11-24T16:25:11.000Z
# Generate a graph with: # Vertices V = {"a", "b", "c", "d", "e"} # Edges E = {"ab", "ac", "bd", "cd", "de"} # Create the dictionary with graph elements graph_elements = { "a" : ["b","c"], "b" : ["a", "d"], "c" : ["a", "d"], "d" : ["e"], "e" : ["d"] ...
24.017857
62
0.450558
# Generate a graph with: # Vertices V = {"a", "b", "c", "d", "e"} # Edges E = {"ab", "ac", "bd", "cd", "de"} class graph: def __init__(self, gdict=None): if gdict is None: gdict = [] self.gdict = gdict def get_vertices(self): """ Print graph vertices """...
0
0
0
762
0
0
0
0
23
578a9c6c4953951a7de387cd1fed25ac967fc995
5,046
py
Python
demo.py
EdwardjkFeng/RAFT
756902fa429283218969a8285324a7dfbe81020e
[ "BSD-3-Clause" ]
null
null
null
demo.py
EdwardjkFeng/RAFT
756902fa429283218969a8285324a7dfbe81020e
[ "BSD-3-Clause" ]
null
null
null
demo.py
EdwardjkFeng/RAFT
756902fa429283218969a8285324a7dfbe81020e
[ "BSD-3-Clause" ]
null
null
null
import sys import argparse import os sys.path.append('core') DEVICE = 'cuda' def make_dir_if_not_exist(path): """ Make a directory if the input path does not exist Args: path (str): path to check and eventually create """ if not os.path.exists(path): os.makedirs(path) # ToDo: f...
35.286713
148
0.624851
import sys import argparse import os import cv2 import glob import numpy as np import torch from PIL import Image import gc from torch.profiler import profile, record_function, ProfilerActivity import time sys.path.append('core') from core.raft import RAFT from core.utils import flow_viz from core.utils.utils impor...
0
0
0
0
0
3,593
0
27
335
e52e4119be8d73e02db8ef1c246118c123dfa913
2,163
py
Python
ostester/ccodegen.py
benstreb/os-test-harness
2ebf63b0518534ca740a41280723d9e5fd75a4b6
[ "0BSD" ]
null
null
null
ostester/ccodegen.py
benstreb/os-test-harness
2ebf63b0518534ca740a41280723d9e5fd75a4b6
[ "0BSD" ]
null
null
null
ostester/ccodegen.py
benstreb/os-test-harness
2ebf63b0518534ca740a41280723d9e5fd75a4b6
[ "0BSD" ]
null
null
null
from jinja2 import Environment, PackageLoader from . import utils env = Environment(loader=PackageLoader('ostester', 'templates'), trim_blocks=True, lstrip_blocks=True) env.filters['header_to_function_name'] = utils.header_to_function_name env.filters['function_test_case_name'] = ...
33.276923
71
0.679149
import logging import shutil import os.path from jinja2 import Environment, PackageLoader from . import utils import ostester env = Environment(loader=PackageLoader('ostester', 'templates'), trim_blocks=True, lstrip_blocks=True) env.filters['header_to_function_name'] = utils.heade...
0
0
0
0
0
1,061
0
-28
134
cbc121b9e37f2a9a03a4309e4cd2396dfd7a42e2
1,173
py
Python
tests/test_model_run.py
LucaCappelletti94/keras_metrics
2af59d26f7134a65e8332a29a3f7ae712b928f0e
[ "MIT" ]
null
null
null
tests/test_model_run.py
LucaCappelletti94/keras_metrics
2af59d26f7134a65e8332a29a3f7ae712b928f0e
[ "MIT" ]
null
null
null
tests/test_model_run.py
LucaCappelletti94/keras_metrics
2af59d26f7134a65e8332a29a3f7ae712b928f0e
[ "MIT" ]
null
null
null
import numpy as np from extra_keras_metrics import (get_complete_binary_metrics, get_minimal_multiclass_metrics) from tensorflow.keras.layers import Dense from tensorflow.keras.models import Sequential def test_binary_model_run(): """Test that all metrics actually work when used with a Keras model.""" model =...
29.325
75
0.637681
import numpy as np from extra_keras_metrics import (get_complete_binary_metrics, get_minimal_multiclass_metrics) from tensorflow.keras.layers import Dense from tensorflow.keras.models import Sequential def test_binary_model_run(): """Test that all metrics actually work when used w...
0
0
0
0
0
0
0
33
0
35f754bfaf6ed81e41a059a2e8875bf26e576809
51
py
Python
ddu_dirty_mnist/__init__.py
BlackHC/ddu_dirty_mnist
fdd4e0a4d5496bc3e3ba80359dd7cd67f564d955
[ "Apache-2.0" ]
3
2021-06-30T13:57:59.000Z
2021-12-05T18:55:35.000Z
ddu_dirty_mnist/__init__.py
BlackHC/ddu_dirty_mnist
fdd4e0a4d5496bc3e3ba80359dd7cd67f564d955
[ "Apache-2.0" ]
null
null
null
ddu_dirty_mnist/__init__.py
BlackHC/ddu_dirty_mnist
fdd4e0a4d5496bc3e3ba80359dd7cd67f564d955
[ "Apache-2.0" ]
1
2021-07-09T16:36:11.000Z
2021-07-09T16:36:11.000Z
__version__ = "1.0.1"
10.2
26
0.686275
__version__ = "1.0.1" from .dirty_mnist import *
0
0
0
0
0
0
0
5
23
5dfd46f6c293126c9b934ec77f0c1d85d804407b
1,288
py
Python
compute.py
mpi3d/sigfm
5bdcf5df70616ce1e4371c67b46bb06c88dd5924
[ "MIT" ]
2
2021-10-12T17:32:24.000Z
2021-11-19T12:09:15.000Z
compute.py
mpi3d/sigfm
5bdcf5df70616ce1e4371c67b46bb06c88dd5924
[ "MIT" ]
null
null
null
compute.py
mpi3d/sigfm
5bdcf5df70616ce1e4371c67b46bb06c88dd5924
[ "MIT" ]
null
null
null
if __name__ == "__main__": compute_finger('fingerprints/finger-0', 'fingerprints/clear.png', 'fingerprints/finger-0.npz')
32.2
78
0.528727
import os import cv2 as cv import numpy as np def compute_finger(images_path: str, clear_path: str, save_path: str) -> None: finger = [] sift = cv.SIFT_create() clear: np.ndarray = cv.imread(clear_path, 0) for root, _, files in os.walk(images_path): for file in files: if file.ends...
0
0
0
0
0
1,070
0
-20
90
13888b5d56c53c05586ca7dbbbcd8dadda43b2ba
4,849
py
Python
habitat_baselines/rl/models/rnn_state_encoder.py
yilundu/crl
6adf009d30f292cdc995eb70bab500b0033c11d4
[ "MIT" ]
17
2021-05-07T20:32:45.000Z
2021-12-09T13:31:08.000Z
habitat_baselines/rl/models/rnn_state_encoder.py
yilundu/crl
6adf009d30f292cdc995eb70bab500b0033c11d4
[ "MIT" ]
null
null
null
habitat_baselines/rl/models/rnn_state_encoder.py
yilundu/crl
6adf009d30f292cdc995eb70bab500b0033c11d4
[ "MIT" ]
1
2021-09-20T08:51:37.000Z
2021-09-20T08:51:37.000Z
import torch.nn as nn
32.986395
136
0.570633
import torch import torch.nn as nn class RNNStateEncoder(nn.Module): def __init__( self, input_size: int, hidden_size: int, num_layers: int = 1, rnn_type: str = "GRU", ): r"""An RNN for encoding the state in RL. Supports masking the hidden state during ...
0
129
0
4,661
0
0
0
-9
45
ab925ae7a31f712afc2f0cd972122c4d672df630
1,930
py
Python
dashboard/migrations/0053_auto_20210916_2210.py
chennisden/otis-web
57a1de9c1c3baa2cda09d30c59462a528aa3ba00
[ "MIT" ]
15
2021-08-28T18:18:37.000Z
2022-03-13T07:48:15.000Z
dashboard/migrations/0053_auto_20210916_2210.py
chennisden/otis-web
57a1de9c1c3baa2cda09d30c59462a528aa3ba00
[ "MIT" ]
65
2021-08-20T02:37:27.000Z
2022-02-07T17:19:23.000Z
dashboard/migrations/0053_auto_20210916_2210.py
chennisden/otis-web
57a1de9c1c3baa2cda09d30c59462a528aa3ba00
[ "MIT" ]
31
2020-01-09T02:35:29.000Z
2022-03-13T07:48:18.000Z
# Generated by Django 3.2.7 on 2021-09-17 02:10
41.956522
257
0.653368
# Generated by Django 3.2.7 on 2021-09-17 02:10 import dashboard.models import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dashboard', '0052_auto_20210916_2115'), ] operations = [ migrations.AlterField( ...
0
0
0
1,762
0
0
0
29
90
19209b415b12634958f1efb8484a45b0d4088f88
10
py
Python
dataset/imageGenerateDataset.py
RickyDoge/WFGN
88c70ad623f370fa76eb0b75a452c8f2c527ca6e
[ "MIT" ]
null
null
null
dataset/imageGenerateDataset.py
RickyDoge/WFGN
88c70ad623f370fa76eb0b75a452c8f2c527ca6e
[ "MIT" ]
null
null
null
dataset/imageGenerateDataset.py
RickyDoge/WFGN
88c70ad623f370fa76eb0b75a452c8f2c527ca6e
[ "MIT" ]
null
null
null
# For GAN
5
9
0.6
# For GAN
0
0
0
0
0
0
0
0
0
414515dcdbf131e12ab0825125c8f7e1da0e8704
1,688
py
Python
thelper/routes.py
jpsolanet/thelper
38ee164748ef36eb300afa7960f8f8c38150a20b
[ "MIT" ]
null
null
null
thelper/routes.py
jpsolanet/thelper
38ee164748ef36eb300afa7960f8f8c38150a20b
[ "MIT" ]
null
null
null
thelper/routes.py
jpsolanet/thelper
38ee164748ef36eb300afa7960f8f8c38150a20b
[ "MIT" ]
null
null
null
"""sqlaclhemy models for tracker and class"""
28.610169
87
0.668246
"""sqlaclhemy models for tracker and class""" import random import pandas as pd import numpy as np import pdfkit from flask import url_for, make_response, render_template, request from thelper import APP, DB, admin_views from thelper import models @APP.route("/") def hello(): periods = DB.session.query(models.Per...
0
1,344
0
0
0
0
0
48
246
2ac62715c1cf6ce9866d22cf897644d3db36a361
762
py
Python
ircawp-learn.py
Fortyseven/ircawp2020-markov
4ba1f84ff6813a36fade009c5152a81b4e220243
[ "CC0-1.0" ]
null
null
null
ircawp-learn.py
Fortyseven/ircawp2020-markov
4ba1f84ff6813a36fade009c5152a81b4e220243
[ "CC0-1.0" ]
null
null
null
ircawp-learn.py
Fortyseven/ircawp2020-markov
4ba1f84ff6813a36fade009c5152a81b4e220243
[ "CC0-1.0" ]
null
null
null
#!/bin/python3 import sys import os import Markov if __name__ == "__main__": if (len(sys.argv) < 2 or len(sys.argv) > 3): print("usage: {} sourcefile.txt [existingbrain.json]".format( sys.argv[0])) sys.exit(-1) if (not os.path.exists(sys.argv[1])): print("Can't find sourc...
25.4
76
0.585302
#!/bin/python3 import sys import os import Markov if __name__ == "__main__": if (len(sys.argv) < 2 or len(sys.argv) > 3): print("usage: {} sourcefile.txt [existingbrain.json]".format( sys.argv[0])) sys.exit(-1) if (not os.path.exists(sys.argv[1])): print("Can't find sourc...
0
0
0
0
0
0
0
0
0
e5f104aef22df762ef1a4cce4e0ce10773df3a89
1,066
py
Python
test/test_verify_model.py
Loniks/RoundRobinDNSAtackDetector
d8c9c9e953f360ff67ffe05af67943329760e20c
[ "MIT" ]
null
null
null
test/test_verify_model.py
Loniks/RoundRobinDNSAtackDetector
d8c9c9e953f360ff67ffe05af67943329760e20c
[ "MIT" ]
null
null
null
test/test_verify_model.py
Loniks/RoundRobinDNSAtackDetector
d8c9c9e953f360ff67ffe05af67943329760e20c
[ "MIT" ]
1
2017-11-28T08:24:56.000Z
2017-11-28T08:24:56.000Z
protocol_names = [ 'QUIC', 'DNS', 'ARP', 'TCP', 'UDP', 'SSDP', 'IGMPv2', 'SSL', 'TLSv1.2', 'DB-LSP-DISC', 'MDNS', 'TLSv1', 'BROWSER', 'ICMP', 'HTTP', 'HTTP/XML' ]
33.3125
79
0.556285
import os import csv import joblib protocol_names = [ 'QUIC', 'DNS', 'ARP', 'TCP', 'UDP', 'SSDP', 'IGMPv2', 'SSL', 'TLSv1.2', 'DB-LSP-DISC', 'MDNS', 'TLSv1', 'BROWSER', 'ICMP', 'HTTP', 'HTTP/XML' ] def test_verify_model(): # arrange test by loading model current_path = os.path.abspath(os.path...
0
0
0
0
0
827
0
-31
89
a213a5d00d9d3a04c6bee6c48f3bebf7a5dbb766
1,028
py
Python
{{cookiecutter.project_folder}}/code/add_this_dir_to_site-packages.py
gaulinmp/cookiecutter-research-project-template
7d5feff90d2303d8bfd8a2916c8dac9fa1ba185c
[ "MIT" ]
null
null
null
{{cookiecutter.project_folder}}/code/add_this_dir_to_site-packages.py
gaulinmp/cookiecutter-research-project-template
7d5feff90d2303d8bfd8a2916c8dac9fa1ba185c
[ "MIT" ]
null
null
null
{{cookiecutter.project_folder}}/code/add_this_dir_to_site-packages.py
gaulinmp/cookiecutter-research-project-template
7d5feff90d2303d8bfd8a2916c8dac9fa1ba185c
[ "MIT" ]
2
2021-07-01T14:44:06.000Z
2022-02-05T22:57:39.000Z
#!python import os import sys site_packages_folder_name = 'site-packages' site_package_dir = [c for c in sys.path if site_packages_folder_name in c[-len(site_packages_folder_name):]] if site_package_dir: site_package_dir = site_package_dir[0] {{ cookiecutter.python_libname }}_pth_file = os.path.join(si...
42.833333
130
0.705253
#!python import os import sys site_packages_folder_name = 'site-packages' site_package_dir = [c for c in sys.path if site_packages_folder_name in c[-len(site_packages_folder_name):]] if site_package_dir: site_package_dir = site_package_dir[0] {{ cookiecutter.python_libname }}_pth_file = os.path.join(si...
0
0
0
0
0
0
0
0
0
8f9a2c2701c01e458cb636d205efbc6987b320ae
11,623
py
Python
data_processing/tournament_txt_to_csv.py
Andrew-Talley/seven-oh-two
73a78e0f6d82bba6f80f7655afb6ed3a2c783486
[ "MIT" ]
null
null
null
data_processing/tournament_txt_to_csv.py
Andrew-Talley/seven-oh-two
73a78e0f6d82bba6f80f7655afb6ed3a2c783486
[ "MIT" ]
null
null
null
data_processing/tournament_txt_to_csv.py
Andrew-Talley/seven-oh-two
73a78e0f6d82bba6f80f7655afb6ed3a2c783486
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import os import re import traceback record_reg = r'(\d{1,2}) ?- (\d{1,2}) - ?(\d{1,2})' school_record = r'Team\sSchool\sRecord' if __name__ == "__main__": # tournament_text_to_results(2020, "invitationals", "crimson_classic") names = [] for dir, subdirs, files in os....
36.665615
143
0.709197
import numpy as np import pandas as pd import os import re import functools import itertools import json import traceback from collections import deque, defaultdict from Tournament_Iterator import Tournament_Iterator from parse_results_rows import parse_results_rows from get_outstanding_students import get_outstanding...
0
0
0
0
0
9,993
0
148
475
766d36bc9b401dcaa299cd9f9b1e2101f6b371a5
1,327
py
Python
nvflare/private/fed/server/server_cmd_modules.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
nvflare/private/fed/server/server_cmd_modules.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
nvflare/private/fed/server/server_cmd_modules.py
drbeh/NVFlare
efea2c04e641051537604a4de2f85e570fb4f3a7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2021, NVIDIA CORPORATION. # # 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.029412
79
0.754333
# Copyright (c) 2021, NVIDIA CORPORATION. # # 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...
0
108
0
269
0
0
0
227
134
db145964edc404f9728296e74053393638f1cd91
8,122
py
Python
DGSQP/solvers/PID.py
zhu-edward/DGSQP
b907d961f292695e4cddbc1266313e0e1030c4f0
[ "MIT" ]
null
null
null
DGSQP/solvers/PID.py
zhu-edward/DGSQP
b907d961f292695e4cddbc1266313e0e1030c4f0
[ "MIT" ]
null
null
null
DGSQP/solvers/PID.py
zhu-edward/DGSQP
b907d961f292695e4cddbc1266313e0e1030c4f0
[ "MIT" ]
null
null
null
#!/usr/bin python3 from DGSQP.solvers.solver_types import PIDParams # Test script to ensure controller object is functioning properly if __name__ == "__main__": params = PIDParams(dt=0.1, Kp=3.7, Ki=7, Kd=0.5) x_ref = 5 pid = PID(params) # pdb.set_trace() pid.initialize(x_ref=x_ref) # pdb.set_...
32.230159
174
0.582615
#!/usr/bin python3 import numpy as np import time from typing import Tuple from DGSQP.types import VehicleState from DGSQP.solvers.abstract_solver import AbstractSolver from DGSQP.solvers.solver_types import PIDParams class PID(): ''' Base class for PID controller Meant to be packaged for use in actual...
0
0
0
7,528
0
0
0
29
186
84a707b07afe3b537b10fca5f8c71aed1cce1db3
9,420
py
Python
tests/geneartpingertest.py
Global-Biofoundries-Alliance/DNA-scanner
8001fcf486de415ac469170fe459f8df29e86685
[ "MIT" ]
12
2019-11-08T17:23:24.000Z
2021-12-18T02:28:31.000Z
tests/geneartpingertest.py
Zulko/DNA-scanner
65907a0d8eaa162ca8d4fa85b3330e3fd454047d
[ "MIT" ]
41
2019-10-30T08:33:05.000Z
2022-02-26T21:01:55.000Z
tests/geneartpingertest.py
Global-Biofoundries-Alliance/DNA-scanner
8001fcf486de415ac469170fe459f8df29e86685
[ "MIT" ]
5
2019-11-05T11:35:12.000Z
2020-11-11T16:19:40.000Z
import unittest import json import yaml from Pinger import Entities # Test file which can be successfully valideted by the API. with open('./examples/seqinf_geneart.json') as json_file: data = json.load(json_file) example_list = [] # Create a list of 'SequenceInformation' objects where each object is a sequence f...
46.176471
118
0.666242
import unittest import json import yaml from Pinger import Pinger, Entities, GeneArt, Validator # Test file which can be successfully valideted by the API. with open('./examples/seqinf_geneart.json') as json_file: data = json.load(json_file) example_list = [] # Create a list of 'SequenceInformation' objects where...
0
0
0
8,633
0
0
0
28
27
e4ddbdebb6ad60bd0ac6d32b26c0e0b8c43fedc9
1,036
py
Python
actualite/models.py
Kgermando/ev-ccnsc
ad8710014ab11aec18d72cbb97462efbba28dc85
[ "Apache-2.0" ]
null
null
null
actualite/models.py
Kgermando/ev-ccnsc
ad8710014ab11aec18d72cbb97462efbba28dc85
[ "Apache-2.0" ]
null
null
null
actualite/models.py
Kgermando/ev-ccnsc
ad8710014ab11aec18d72cbb97462efbba28dc85
[ "Apache-2.0" ]
null
null
null
# Create your models here.
41.44
98
0.750965
from django.db import models from ccnsc.constant import CATEGORIES, PROVINCES # Create your models here. class Actualite(models.Model): actu_titre = models.CharField(max_length=300) auteur = models.CharField(max_length=300) actu_content = models.TextField() actu_province = models.CharField(max_length=...
0
0
0
906
0
0
0
34
68
1304534d80b2dff7e32c9acf5d7838faeb29410b
3,700
py
Python
voa_and_megadata.py
cdoolin/labtools
867a2726f5a707a8f5e698bf4a6bb4de40cfbe27
[ "MIT" ]
1
2021-06-07T16:51:09.000Z
2021-06-07T16:51:09.000Z
voa_and_megadata.py
cdoolin/labtools
867a2726f5a707a8f5e698bf4a6bb4de40cfbe27
[ "MIT" ]
null
null
null
voa_and_megadata.py
cdoolin/labtools
867a2726f5a707a8f5e698bf4a6bb4de40cfbe27
[ "MIT" ]
null
null
null
import argparse parser = argparse.ArgumentParser(description="control voa and take megadata") parser.add_argument("--power", default=5, type=float, help="On voltage of VOA") parser.add_argument("--delay", default=10, type=float, help="Delay between starting megadaq and turning on voa (in ms)") parser.add_argument(...
26.428571
170
0.657838
import argparse parser = argparse.ArgumentParser(description="control voa and take megadata") parser.add_argument("--power", default=5, type=float, help="On voltage of VOA") parser.add_argument("--delay", default=10, type=float, help="Delay between starting megadaq and turning on voa (in ms)") parser.add_argument(...
0
0
0
0
0
48
0
0
23
736bfde148e48f0e5e3ee39dde77d4591eca9d9f
4,606
py
Python
utils.py
garvm7/TransUNet
f330ff264680f035e84e4b3142f9188304d06c48
[ "Apache-2.0" ]
null
null
null
utils.py
garvm7/TransUNet
f330ff264680f035e84e4b3142f9188304d06c48
[ "Apache-2.0" ]
null
null
null
utils.py
garvm7/TransUNet
f330ff264680f035e84e4b3142f9188304d06c48
[ "Apache-2.0" ]
null
null
null
import torch.nn as nn
38.705882
127
0.547112
import numpy as np import torch from medpy import metric from scipy.ndimage import zoom import torch.nn as nn import SimpleITK as sitk class DiceLoss(nn.Module): def __init__(self, n_classes): super(DiceLoss, self).__init__() self.n_classes = n_classes def _one_hot_encoder(self, input_tensor)...
0
0
0
1,452
0
2,947
0
3
179
ca01e2d44643a8dff671f968cb9acbc1adf392b1
12,700
py
Python
examples/gb1/vae.py
ayushkarnawat/profit
f3c4d601078b52513af6832c3faf75ddafc59ac5
[ "MIT" ]
null
null
null
examples/gb1/vae.py
ayushkarnawat/profit
f3c4d601078b52513af6832c3faf75ddafc59ac5
[ "MIT" ]
1
2021-09-15T13:13:12.000Z
2021-09-15T13:13:12.000Z
examples/gb1/vae.py
ayushkarnawat/profit
f3c4d601078b52513af6832c3faf75ddafc59ac5
[ "MIT" ]
null
null
null
r"""Train GB1 variational autoencoder (VAE) model. The model encodes information about the input `x` into a latent variable `z` (through `mu` and `logvar`) so that the decoder network can generate the reconstructed output `x'` (such that `x \approx x'`) [1]. The latent variable `z` allows us to generate samples from ...
46.691176
86
0.606693
r"""Train GB1 variational autoencoder (VAE) model. The model encodes information about the input `x` into a latent variable `z` (through `mu` and `logvar`) so that the decoder network can generate the reconstructed output `x'` (such that `x \approx x'`) [1]. The latent variable `z` allows us to generate samples from ...
0
0
0
0
0
7,634
0
197
358
24979e4e53de2b2ce07c5e10f742ff0fa787a88c
7,081
py
Python
introduction/matlab_plot/python/11.grid.py
LeandroTk/intro-data-science
36a8bf2c080a94526c2f71e5773dd451ca371d38
[ "MIT" ]
9
2019-01-01T17:44:18.000Z
2021-02-08T06:30:03.000Z
introduction/matlab_plot/python/11.grid.py
kemojal/machine-learning-degree
b27f21854b7df9fbac3a801087c0f2c3ff0a6b63
[ "MIT" ]
null
null
null
introduction/matlab_plot/python/11.grid.py
kemojal/machine-learning-degree
b27f21854b7df9fbac3a801087c0f2c3ff0a6b63
[ "MIT" ]
3
2019-02-23T04:22:23.000Z
2021-02-08T06:30:04.000Z
# defining "gross_domestic_product_per_capita" and "life_expectancy" lists gross_domestic_product_per_capita = [ 974.5803384, 5937.029525999998, 6223.367465, 4797.231267, 12779.37964, 34435.367439999995, 36126.4927, 29796.04834, 1391.253792, 33692.60508, 1441.284873, 3822.137084, 7446.298803, 12569.85177, 9065.8008...
114.209677
1,952
0.696794
# defining "gross_domestic_product_per_capita" and "life_expectancy" lists gross_domestic_product_per_capita = [ 974.5803384, 5937.029525999998, 6223.367465, 4797.231267, 12779.37964, 34435.367439999995, 36126.4927, 29796.04834, 1391.253792, 33692.60508, 1441.284873, 3822.137084, 7446.298803, 12569.85177, 9065.8008...
0
0
0
0
0
0
0
0
0
76b0b7caf13e99d3aaa206eefe95f234032dd2fc
1,560
py
Python
profiles_api/models.py
Aashutosh3804/profile_rest_apis
0b54cddf996bb61acb5930b6ff4631801ce5547d
[ "MIT" ]
null
null
null
profiles_api/models.py
Aashutosh3804/profile_rest_apis
0b54cddf996bb61acb5930b6ff4631801ce5547d
[ "MIT" ]
3
2020-06-06T01:35:22.000Z
2021-04-08T21:30:49.000Z
profiles_api/models.py
Aashutosh3804/profile_rest_apis
0b54cddf996bb61acb5930b6ff4631801ce5547d
[ "MIT" ]
null
null
null
# Create your models here.
31.836735
89
0.680128
from django.db import models from django.contrib.auth.models import AbstractBaseUser, PermissionsMixin,BaseUserManager # Create your models here. class UserProfileManager(BaseUserManager): """Manager For user Profiles""" def create_user(self,email,name,password=None): """Create a NEw SUer Profile""" ...
0
0
0
1,366
0
0
0
75
90
dce94a6ace55ef22c6e6e2de483e66b2f9f04f7f
8,512
py
Python
spambayes/Outlook2000/export.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
13
2015-07-03T06:53:47.000Z
2021-02-19T13:21:56.000Z
spambayes/Outlook2000/export.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
5
2015-07-16T07:33:46.000Z
2021-04-05T20:27:52.000Z
spambayes/Outlook2000/export.py
alexeip0/spambayes
0c7d12cf4702ef82974ab16d2a36fa9ccedf185a
[ "PSF-2.0" ]
20
2015-05-16T22:42:14.000Z
2021-09-18T17:46:40.000Z
# Exports your ham and spam folders to a standard SpamBayes test directory. NUM_BUCKETS = 10 DEFAULT_DIRECTORY = "..\\testtools\\Data" import re mime_header_re = re.compile(r""" ^ content- (type | transfer-encoding) : [^\n]* \n ([ \t] [^\n]* \n)* # suck up adjacent continuation lines """, re.VERBOSE | re.MUL...
36.376068
80
0.617011
# Exports your ham and spam folders to a standard SpamBayes test directory. import sys, os, shutil from manager import GetManager NUM_BUCKETS = 10 DEFAULT_DIRECTORY = "..\\testtools\\Data" import re mime_header_re = re.compile(r""" ^ content- (type | transfer-encoding) : [^\n]* \n ([ \t] [^\n]* \n)* # suck ...
0
0
0
0
0
6,981
0
10
200
56eed8550ea27f693fcab9cfb8ecd4aceda49e2f
2,392
py
Python
Data fetching script.py
mohamedsaadmoustafa/Arabic_Dialect_Classification
a13e92ddaa8fda5afcc40d1ce97946174f9a4674
[ "BSD-3-Clause" ]
null
null
null
Data fetching script.py
mohamedsaadmoustafa/Arabic_Dialect_Classification
a13e92ddaa8fda5afcc40d1ce97946174f9a4674
[ "BSD-3-Clause" ]
null
null
null
Data fetching script.py
mohamedsaadmoustafa/Arabic_Dialect_Classification
a13e92ddaa8fda5afcc40d1ce97946174f9a4674
[ "BSD-3-Clause" ]
1
2022-03-14T19:41:57.000Z
2022-03-14T19:41:57.000Z
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) # Import dataset with text ids. df = pd.read_csv("../input/dialect-datasetcsv/dialect_dataset.csv") # create a new column to store feched text in df['tweets'] = np.nan # change 'id' column type to string. df.id =...
34.171429
85
0.700669
import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) import requests import json import os # Import dataset with text ids. df = pd.read_csv("../input/dialect-datasetcsv/dialect_dataset.csv") # create a new column to store feched text in df['tweets'] = np.nan # chan...
0
0
0
0
0
861
0
-28
110
fd952ee9d4b5eb67bb14f64b38abf73e85b2e79a
18,232
py
Python
nlp_label_quality/nlp_label_quality/analysis/analysis_utils.py
jwiltfang/bachelor-thesis
a15bdd1a6dec527624085640436748a545cee370
[ "MIT" ]
null
null
null
nlp_label_quality/nlp_label_quality/analysis/analysis_utils.py
jwiltfang/bachelor-thesis
a15bdd1a6dec527624085640436748a545cee370
[ "MIT" ]
null
null
null
nlp_label_quality/nlp_label_quality/analysis/analysis_utils.py
jwiltfang/bachelor-thesis
a15bdd1a6dec527624085640436748a545cee370
[ "MIT" ]
null
null
null
import numpy as np import pm4py from pm4py.objects.log.log import EventLog from nlp_label_quality.analysis import matrix_eval from typing import Dict, List, Tuple, Union, Any from nlp_label_quality.analysis.attribute_value import Attribute, AttributeValue import logging logger = logging.getLogger(__name__) def f...
42.301624
172
0.599331
from nltk.corpus import wordnet as wn import nltk import numpy as np import pm4py from pm4py.objects.log.log import EventLog from nlp_label_quality.analysis import matrix_eval from typing import Dict, List, Tuple, Union, Any from nlp_label_quality.analysis.attribute_value import Attribute, AttributeValue import tim...
0
0
0
0
0
4,307
0
-4
136
5b3a3b5d61e677e816fc3f066fa360eebf0bc8b9
3,206
py
Python
atis_simulator.py
ashishrao7/Neuromorphic-Sampling
ab921456ebcada361c64f24cd0fd727771d1acd8
[ "MIT" ]
null
null
null
atis_simulator.py
ashishrao7/Neuromorphic-Sampling
ab921456ebcada361c64f24cd0fd727771d1acd8
[ "MIT" ]
null
null
null
atis_simulator.py
ashishrao7/Neuromorphic-Sampling
ab921456ebcada361c64f24cd0fd727771d1acd8
[ "MIT" ]
null
null
null
############################################################################################################################## # This program simulates a DVS sensor. The input images are specified as a directory in the program # Author: Ashish Rao M # email: ashish.rao.m@gmail.com ######################################...
30.826923
126
0.52932
############################################################################################################################## # This program simulates a DVS sensor. The input images are specified as a directory in the program # Author: Ashish Rao M # email: ashish.rao.m@gmail.com ######################################...
0
0
0
0
0
0
0
28
49
e3e6312937486725b68bad4e6f68a31a4c015bb9
850
py
Python
app/lib/overrides/common/raw_cluster_role_bindings.py
cisco-sso/mh2-poc
a476c9e119e2e15834dc04242504049b9fc7e8e5
[ "Apache-2.0" ]
null
null
null
app/lib/overrides/common/raw_cluster_role_bindings.py
cisco-sso/mh2-poc
a476c9e119e2e15834dc04242504049b9fc7e8e5
[ "Apache-2.0" ]
null
null
null
app/lib/overrides/common/raw_cluster_role_bindings.py
cisco-sso/mh2-poc
a476c9e119e2e15834dc04242504049b9fc7e8e5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3
25.757576
56
0.434118
#!/usr/bin/env python3 def raw_cluster_role_bindings(callback_values): data = { '__meta': { 'chart': 'cisco-sso/raw', 'version': '0.1.0' }, 'resources': [{ 'apiVersion': 'rbac.authorization.k8s.io/v1', 'kind': 'Cluster...
0
0
0
0
0
803
0
0
23
114812efcc3174485ae2199f16a9e47803cc121f
916
py
Python
livestyled/schemas/tests/test_ticket_integration.py
andrelopez/python-sdk
3c83d4698ecf6b5b59003d20cb26644e0dd77f61
[ "MIT" ]
null
null
null
livestyled/schemas/tests/test_ticket_integration.py
andrelopez/python-sdk
3c83d4698ecf6b5b59003d20cb26644e0dd77f61
[ "MIT" ]
1
2021-07-09T10:59:21.000Z
2021-07-09T10:59:21.000Z
livestyled/schemas/tests/test_ticket_integration.py
andrelopez/python-sdk
3c83d4698ecf6b5b59003d20cb26644e0dd77f61
[ "MIT" ]
3
2021-02-01T10:13:36.000Z
2022-02-11T17:47:30.000Z
import os FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'fixtures') TEST_API_DOMAIN = 'test.livestyled.com'
33.925926
98
0.636463
import os from livestyled.schemas.ticket_integration import TicketIntegrationSchema FIXTURES_DIR = os.path.join(os.path.dirname(__file__), 'fixtures') TEST_API_DOMAIN = 'test.livestyled.com' def test_deserialize_ticket_integration(): with open(os.path.join(FIXTURES_DIR, 'example_ticket_integration.json'), 'r')...
0
0
0
0
0
698
0
52
46
290ea24da1d1eae66b04c26acdf95a3b6d5bbf1e
1,865
py
Python
tutorial/part2/ch9_files/final_app.py
open-resources/dash_curriculum
cd9b7db3f357edeed2d027a23fceb85eabbffb7e
[ "MIT" ]
3
2022-02-23T22:16:25.000Z
2022-02-25T01:23:40.000Z
tutorial/part2/ch9_files/final_app.py
open-resources/dash_curriculum
cd9b7db3f357edeed2d027a23fceb85eabbffb7e
[ "MIT" ]
15
2022-02-23T22:12:51.000Z
2022-03-23T21:51:49.000Z
tutorial/part2/ch9_files/final_app.py
open-resources/dash_curriculum
cd9b7db3f357edeed2d027a23fceb85eabbffb7e
[ "MIT" ]
2
2022-02-25T20:57:59.000Z
2022-03-26T15:29:01.000Z
# Import libraries from dash import Dash, dash_table, dcc import dash_bootstrap_components as dbc import plotly.express as px # Import data into Pandas dataframe df = px.data.gapminder() # Filter data with a list of countries we're interested in exploring country_list = ['Canada', 'Brazil', 'Norway', 'Germany'] df =...
28.692308
77
0.674531
# Import libraries from dash import Dash, dash_table, dcc, Input, Output, State import dash_bootstrap_components as dbc import pandas as pd import plotly.express as px # Import data into Pandas dataframe df = px.data.gapminder() # Filter data with a list of countries we're interested in exploring country_list = ['Ca...
0
438
0
0
0
0
0
20
44
b56b656c50472636928bf236304449bc7270a77a
1,217
py
Python
ynlu/sdk/test/test_client.py
hsiaoyi0504/yoctol-nlu-py
4cec8d52ba3dd7827bddde152c95e814e533c0f2
[ "MIT" ]
null
null
null
ynlu/sdk/test/test_client.py
hsiaoyi0504/yoctol-nlu-py
4cec8d52ba3dd7827bddde152c95e814e533c0f2
[ "MIT" ]
null
null
null
ynlu/sdk/test/test_client.py
hsiaoyi0504/yoctol-nlu-py
4cec8d52ba3dd7827bddde152c95e814e533c0f2
[ "MIT" ]
null
null
null
TEST_MODEL_ID = ['5566', '7788', '1024'] TEST_MODEL_NAME = ['random', 'name', 'here']
27.659091
100
0.683648
from unittest import TestCase from ..client import NLUClient TEST_MODEL_ID = ['5566', '7788', '1024'] TEST_MODEL_NAME = ['random', 'name', 'here'] def mock_client(_, retries): return 'Some random client' def mock_fetch_all_available_clf_ids_and_names(_): return TEST_MODEL_ID, TEST_MODEL_NAME class NLUC...
0
0
0
885
0
110
0
17
114
0cea6ee79a99de1a790f701a85ae58a4c6b59c7d
6,506
py
Python
mesh.py
zjucxh/mesh-meanshift
d21e5f49b1085f1013258a925e6245b5c68661fe
[ "MIT" ]
null
null
null
mesh.py
zjucxh/mesh-meanshift
d21e5f49b1085f1013258a925e6245b5c68661fe
[ "MIT" ]
null
null
null
mesh.py
zjucxh/mesh-meanshift
d21e5f49b1085f1013258a925e6245b5c68661fe
[ "MIT" ]
null
null
null
import numpy as np import open3d as o3d #o3d.geometry.TriangleMesh.compute_vertex_normals # write mesh to obj # normalize mesh # visualize FPS algorithms # farthest point sampling algorithm # given array of vertices and adjacency matrix, return neighbouring vertices #def vertex_neighbors(vertices, adjacent_matrix,...
35.358696
110
0.637873
import numpy as np import meshio from gdist import compute_gdist as geo_dist from matplotlib import pyplot as plt from mpl_toolkits.mplot3d import Axes3D import open3d as o3d from scipy import sparse from scipy.stats import uniform #o3d.geometry.TriangleMesh.compute_vertex_normals # write mesh to obj def write_mesh(f...
0
0
0
0
0
4,882
0
60
288
563fb5ca9b675c935bfc915e5745df0f3ea2e074
274
py
Python
tests/test_graph_iterator.py
Jarino/pycgp
c3281c0deff3388cb7cfd79339b84391f6499ae1
[ "MIT" ]
4
2018-02-08T17:34:58.000Z
2021-09-20T01:37:32.000Z
tests/test_graph_iterator.py
Jarino/pycgp
c3281c0deff3388cb7cfd79339b84391f6499ae1
[ "MIT" ]
1
2018-02-09T09:59:09.000Z
2018-02-09T10:52:26.000Z
tests/test_graph_iterator.py
Jarino/pycgp
c3281c0deff3388cb7cfd79339b84391f6499ae1
[ "MIT" ]
1
2018-12-12T03:51:33.000Z
2018-12-12T03:51:33.000Z
""" test for individual iterators """
22.833333
54
0.733577
""" test for individual iterators """ from pycgp.graph_iterator import iterate_active_nodes def test_iterate_active_nodes(individual): iterator = iterate_active_nodes(individual) visited_ids = [x.id for x in iterator] assert visited_ids == [7, 6, 3, 0, 0]
0
0
0
0
0
156
0
32
47
4069be0bb36a8f8fc11cbd2cb9b0d77f32b887bc
1,430
py
Python
aiopening/client/client.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
aiopening/client/client.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
aiopening/client/client.py
ducandu/aiopening
214d8d6dfc928ab4f8db634018092dc43eaf0e3c
[ "MIT" ]
null
null
null
""" ------------------------------------------------------------------------- AIOpener - client command line client for aiopener-server operations - allows login, start/list projects - submission of games for solving - check job status created: 2017/06/05 in PyCharm (c) 2017 Sven - ducandu GmbH --------...
30.425532
134
0.644755
""" ------------------------------------------------------------------------- AIOpener - client command line client for aiopener-server operations - allows login, start/list projects - submission of games for solving - check job status created: 2017/06/05 in PyCharm (c) 2017 Sven - ducandu GmbH --------...
0
0
0
0
0
0
0
0
0
821610d176c232df04f951041810e8721219f6a5
54,329
py
Python
examples/speech_recognition/infer.py
SeunghyunSEO/seosh_fairseq
443b2a8effb6b8fba5758989076cf992470ccb62
[ "MIT" ]
null
null
null
examples/speech_recognition/infer.py
SeunghyunSEO/seosh_fairseq
443b2a8effb6b8fba5758989076cf992470ccb62
[ "MIT" ]
2
2022-02-22T08:28:06.000Z
2022-02-22T09:26:26.000Z
examples/speech_recognition/infer.py
SeunghyunSEO/seosh_fairseq
443b2a8effb6b8fba5758989076cf992470ccb62
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Run inference for pre-processed data with a trained model. """ import logging logging.basicConfig() logging.ro...
45.539816
272
0.532588
#!/usr/bin/env python3 -u # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Run inference for pre-processed data with a trained model. """ import ast import logging import math import os ...
189
0
0
500
0
51,703
0
133
632
0bd93f88d9451f2a7f0864e82e017e730575b137
1,491
py
Python
antiword_test.py
AmanBudhraja/Multi-Format-Text-Extraction-and-Text-to-Speech-Synthesis
c49eafaaf0be62b2183e27f499aa8cb4d4856447
[ "MIT" ]
1
2020-03-23T07:22:30.000Z
2020-03-23T07:22:30.000Z
antiword_test.py
AmanBudhraja/M.engProject
c49eafaaf0be62b2183e27f499aa8cb4d4856447
[ "MIT" ]
null
null
null
antiword_test.py
AmanBudhraja/M.engProject
c49eafaaf0be62b2183e27f499aa8cb4d4856447
[ "MIT" ]
null
null
null
filepath = "A:/ECE9013A_Fall2019.pdf" text = get_doc_text(filepath) print(text)
33.886364
102
0.565392
import os, docx2txt, PyPDF2 def get_doc_text(filepath): if filepath.endswith('.docx'): text = docx2txt.process(filepath) return text elif filepath.endswith('.doc'): # converting .doc to .docx doc_file = filepath docx_file = filepath + 'x' if not os.path.exists(...
0
0
0
0
0
1,350
0
6
46
9a10b93b1e8fde26008b598c2634361fc129b639
828
py
Python
problems/test_0075_countingsort.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
1
2017-06-17T23:47:17.000Z
2017-06-17T23:47:17.000Z
problems/test_0075_countingsort.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
problems/test_0075_countingsort.py
chrisxue815/leetcode_python
dec3c160d411a5c19dc8e9d96e7843f0e4c36820
[ "Unlicense" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
23
74
0.497585
import unittest class Solution: def sortColors(self, nums): """ :type nums: List[int] :rtype: void Do not return anything, modify nums in-place instead. """ counts = [0] * 3 for num in nums: counts[num] += 1 sum_ = 0 for i in range(3): ...
0
0
0
715
0
0
0
0
46
9a0a2a0ac163d946d7fabbd3be202d2575f75952
5,148
py
Python
RegressionModels/LinearRegression/HousePriceEstimation.py
mohansaimandalapu/MachineLearningProjects
6d5e325a0b6edafd0e41e07c977090f68850f491
[ "MIT" ]
null
null
null
RegressionModels/LinearRegression/HousePriceEstimation.py
mohansaimandalapu/MachineLearningProjects
6d5e325a0b6edafd0e41e07c977090f68850f491
[ "MIT" ]
1
2021-05-18T06:26:33.000Z
2021-05-18T11:02:14.000Z
RegressionModels/LinearRegression/HousePriceEstimation.py
mohansaimandalapu/MachineLearningProjects
6d5e325a0b6edafd0e41e07c977090f68850f491
[ "MIT" ]
1
2020-10-26T13:34:01.000Z
2020-10-26T13:34:01.000Z
import pandas as pd from sklearn.linear_model import LinearRegression from sklearn.metrics import mean_squared_error from sklearn import preprocessing import sklearn import matplotlib.pyplot as plt from sklearn.preprocessing import RobustScaler import math from sklearn.metrics import mean_absolute_error file_path ="/...
34.092715
234
0.736208
import pandas as pd from sklearn.linear_model import LinearRegression import numpy as np from sklearn.metrics import mean_squared_error from sklearn import preprocessing from sklearn.model_selection import train_test_split import sklearn from pathlib import Path import matplotlib.pyplot as plt from sklearn.preprocessin...
0
0
0
0
0
0
0
58
88
8533e395982bc717c66dbd4cbb9efa3d688eedc5
675
py
Python
tests/factories.py
DevOpsWishlist/wishlists
5275003e9278a012c2e2d2a8d75db41971c58220
[ "Apache-2.0" ]
null
null
null
tests/factories.py
DevOpsWishlist/wishlists
5275003e9278a012c2e2d2a8d75db41971c58220
[ "Apache-2.0" ]
57
2021-02-22T21:52:52.000Z
2021-05-24T10:17:02.000Z
tests/factories.py
DevOpsWishlist/wishlists
5275003e9278a012c2e2d2a8d75db41971c58220
[ "Apache-2.0" ]
null
null
null
""" Test Factory to make fake objects for testing """
21.774194
59
0.671111
""" Test Factory to make fake objects for testing """ import factory from datetime import datetime from factory.fuzzy import FuzzyChoice from service.models import WishList, Item class ItemFactory(factory.Factory): """ Creates fake Addresses """ class Meta: model = Item id = factory.Sequence(lamb...
0
0
0
448
0
0
0
37
134
bd4f73859f255272632f914e37b56bda35c7a0fb
1,005
py
Python
daemon/start_daemon.py
Robert-Kolmos/GitUp1
5a4bbbbd6f4ad82dfea7a78fb988eba25b574ee9
[ "MIT" ]
null
null
null
daemon/start_daemon.py
Robert-Kolmos/GitUp1
5a4bbbbd6f4ad82dfea7a78fb988eba25b574ee9
[ "MIT" ]
null
null
null
daemon/start_daemon.py
Robert-Kolmos/GitUp1
5a4bbbbd6f4ad82dfea7a78fb988eba25b574ee9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.7 # The repository information is stored in this file. if __name__ == "__main__": start_daemon()
29.558824
66
0.595025
#!/usr/bin/env python3.7 from daemon import GitUpDaemon import os # The repository information is stored in this file. def start_daemon(): repofile = "/tmp/gitup/repositories.csv" logs_dir = '/tmp/gitup/' out = '/tmp/gitup/daemon.out' err = '/tmp/gitup/daemon.err' # make sure the directory to write...
0
0
0
0
0
812
0
-3
66
fc1ee74f746bc8e00e83204ee018fcd480e507fa
1,020
py
Python
projects/OpenNeuroSample/example.py
cocozhao321/rt-cloud
4293f65f86730eb97c13aafdca02b710d3fe1173
[ "Apache-2.0" ]
null
null
null
projects/OpenNeuroSample/example.py
cocozhao321/rt-cloud
4293f65f86730eb97c13aafdca02b710d3fe1173
[ "Apache-2.0" ]
null
null
null
projects/OpenNeuroSample/example.py
cocozhao321/rt-cloud
4293f65f86730eb97c13aafdca02b710d3fe1173
[ "Apache-2.0" ]
null
null
null
""" An example to download OpenNeuro dataset and stream it as BIDS-I. This example uses OpenNeuro Dataset ds003030_sub01 """ if __name__ == "__main__": main()
37.777778
121
0.762745
""" An example to download OpenNeuro dataset and stream it as BIDS-I. This example uses OpenNeuro Dataset ds003030_sub01 """ from projects.OpenNeuroSample.OpenNeuroProto import OpenNeuroOverview from projects.OpenNeuroSample.openNeuroUpdate import OutputUpdate def main(): # checkout the dataset overview = Op...
0
0
0
0
0
697
0
92
68
b9a08f27f60b92a9f66adfdddbe2110ddc0b80da
2,871
py
Python
math/0x03-probability/binomial.py
sebaslherrera/holbertonschool-machine_learning
a4c09230688700aee199f4099de32261104918be
[ "MIT" ]
null
null
null
math/0x03-probability/binomial.py
sebaslherrera/holbertonschool-machine_learning
a4c09230688700aee199f4099de32261104918be
[ "MIT" ]
null
null
null
math/0x03-probability/binomial.py
sebaslherrera/holbertonschool-machine_learning
a4c09230688700aee199f4099de32261104918be
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Project 0x03. Probability"""
25.184211
78
0.516545
#!/usr/bin/env python3 """Project 0x03. Probability""" class Binomial: """Class that represents an Binomial distribution""" e = 2.7182818285 pi = 3.1415926536 def __init__(self, data=None, n=1, p=0.5): """Constructor of Binomial Parameters: data (list): list of the data to ...
6
949
0
1,840
0
0
0
0
23
2d2e2e14a7265b0780d811febdb96a16b1f5c7af
674
py
Python
test/basic.py
hugoprudente/pycritic
201d9fa01ebf6a103b70738d2bd92d556d519073
[ "MIT" ]
9
2015-07-14T16:07:33.000Z
2021-03-31T18:41:16.000Z
test/basic.py
hugoprudente/pycritic
201d9fa01ebf6a103b70738d2bd92d556d519073
[ "MIT" ]
null
null
null
test/basic.py
hugoprudente/pycritic
201d9fa01ebf6a103b70738d2bd92d556d519073
[ "MIT" ]
5
2016-05-04T17:53:44.000Z
2022-01-08T08:31:42.000Z
if __name__ == "__main__": main()
30.636364
80
0.700297
import pycritic def print_resource_data(resource): print "Name: " + resource.name print "Release date: " + resource.date print "Metascore: " + str(resource.metascore) print "Userscore: " + str(resource.userscore) print "Description: " + resource.description def main(): scraper = pycritic.Scra...
0
0
0
0
0
572
0
-6
68
0849699776956afc0dc990e8d7267f47912de6ac
3,182
py
Python
yozuch/config.py
akrylysov/yozuch
0eb6206c8c2fff806a8901456cfc4cc338052a95
[ "BSD-3-Clause" ]
32
2015-02-01T16:35:21.000Z
2022-03-14T00:50:32.000Z
yozuch/config.py
akrylysov/yozuch
0eb6206c8c2fff806a8901456cfc4cc338052a95
[ "BSD-3-Clause" ]
6
2015-06-19T10:58:35.000Z
2019-04-07T16:38:01.000Z
yozuch/config.py
akrylysov/yozuch
0eb6206c8c2fff806a8901456cfc4cc338052a95
[ "BSD-3-Clause" ]
1
2017-01-21T18:51:11.000Z
2017-01-21T18:51:11.000Z
""" Default configuration and configuration related helpers. """ import os PACKAGE_DIR = os.path.dirname(__file__)
29.192661
107
0.576681
""" Default configuration and configuration related helpers. """ import copy import os import importlib.util from yozuch.view import view PACKAGE_DIR = os.path.dirname(__file__) class DefaultConfig(object): DEBUG = False TITLE = 'Site title' URL = 'http://localhost:8000' DESCRIPTION = 'Site descr...
0
0
0
2,953
0
0
0
-3
113
6f6ffe2cc228494bc9c5ea6d4e92b29788e1fe6d
1,328
py
Python
src/ci_workflow/ci_input_manifest.py
boktorbb-amzn/opensearch-build
ea5a964b2a570ac518b380ef6efd42c38ae9f911
[ "Apache-2.0" ]
62
2021-05-14T04:06:09.000Z
2022-03-23T03:30:13.000Z
src/ci_workflow/ci_input_manifest.py
boktorbb-amzn/opensearch-build
ea5a964b2a570ac518b380ef6efd42c38ae9f911
[ "Apache-2.0" ]
1,590
2021-05-07T20:21:19.000Z
2022-03-31T23:57:53.000Z
src/ci_workflow/ci_input_manifest.py
mch2/opensearch-build
39464ae1ded2b628d5b6cacb22064b715906520d
[ "Apache-2.0" ]
134
2021-05-07T19:27:56.000Z
2022-03-24T23:06:17.000Z
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license.
36.888889
126
0.725904
# SPDX-License-Identifier: Apache-2.0 # # The OpenSearch Contributors require contributions made to # this file be licensed under the Apache-2.0 license or a # compatible open source license. import logging from ci_workflow.ci_check_lists import CiCheckLists from ci_workflow.ci_manifest import CiManifest from ci_work...
0
0
0
844
0
0
0
134
157
f0fb6a2538f33841224a7ecc9b974600b1e5efc6
443
py
Python
src/GUI/compile_space/line.py
gitter-badger/GeoMetrics
8f33a7da1db88ea49f10772c4bf63b357e9f066c
[ "MIT" ]
1
2018-10-19T12:35:27.000Z
2018-10-19T12:35:27.000Z
src/GUI/compile_space/line.py
gitter-badger/GeoMetrics
8f33a7da1db88ea49f10772c4bf63b357e9f066c
[ "MIT" ]
null
null
null
src/GUI/compile_space/line.py
gitter-badger/GeoMetrics
8f33a7da1db88ea49f10772c4bf63b357e9f066c
[ "MIT" ]
null
null
null
name = "Line"
17.038462
69
0.659142
import matplotlib.pyplot as plt from matplotlib import * from numpy import * from matplotlib.animation import * name = "Line" def shape(fig, slope, a, b): def x_(y): x = 2*y return x y = linspace(a, b, 100) #y = meshgrid(y) x = x_(y) plt.axis(grid) plt.axis('equal') line = plt.plot(x,y) #...
0
0
0
0
0
292
0
24
111
073be6d009b44ee5ab834a0e374db634c56b9903
36,392
py
Python
odoo/base-addons/survey/models/survey_survey.py
LucasBorges-Santos/docker-odoo
53987bbd61f6119669b5f801ee2ad54695084a21
[ "MIT" ]
null
null
null
odoo/base-addons/survey/models/survey_survey.py
LucasBorges-Santos/docker-odoo
53987bbd61f6119669b5f801ee2ad54695084a21
[ "MIT" ]
null
null
null
odoo/base-addons/survey/models/survey_survey.py
LucasBorges-Santos/docker-odoo
53987bbd61f6119669b5f801ee2ad54695084a21
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details.
49.178378
196
0.619724
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. import uuid from collections import Counter, OrderedDict from itertools import product from werkzeug import urls import random from odoo import api, fields, models, _ from odoo.exceptions import UserError from odoo.osv...
0
10,489
0
25,540
0
0
0
61
202
5c6f0052b67e99312353d8f258a9203e7198bf74
3,539
py
Python
camping_server2/database/review_table.py
solyourock/crawling_project
068525f299eb180d46f1537ee2a02648bbec61ec
[ "MIT" ]
null
null
null
camping_server2/database/review_table.py
solyourock/crawling_project
068525f299eb180d46f1537ee2a02648bbec61ec
[ "MIT" ]
null
null
null
camping_server2/database/review_table.py
solyourock/crawling_project
068525f299eb180d46f1537ee2a02648bbec61ec
[ "MIT" ]
null
null
null
import config as config
46.565789
144
0.556937
import pandas as pd import re import config as config class ReviewInsert: def __init__(self): self.naver = config.Config.NAVER self.kakao = config.Config.KAKAO self.camp=config.Config.CAMP # 네이버 리뷰 전처리 def naver_review(self): naver = self.naver naver['user_info'] =...
129
0
0
3,403
0
0
0
-14
67
c5ecbb8f4093c9d1b57a4f9aefd519132d4e198c
505
py
Python
gitconfig_parser/metadata.py
seanfisk/gitconfig-parser
f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8
[ "MIT" ]
null
null
null
gitconfig_parser/metadata.py
seanfisk/gitconfig-parser
f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8
[ "MIT" ]
null
null
null
gitconfig_parser/metadata.py
seanfisk/gitconfig-parser
f747a4263bdd7fc4ffd6b6a0fe34ef7cf7e935a8
[ "MIT" ]
2
2019-03-07T04:55:29.000Z
2019-03-28T00:59:55.000Z
""":mod:`gitconfig_parser.metadata` --- Project metadata Information describing the project. """ # The package name, which is also the "UNIX name" for the project. package = 'gitconfig_parser' project = "gitconfig parser" project_no_spaces = project.replace(' ', '') version = '0.1' description = 'Parse a .gitconfig f...
28.055556
66
0.710891
""":mod:`gitconfig_parser.metadata` --- Project metadata Information describing the project. """ # The package name, which is also the "UNIX name" for the project. package = 'gitconfig_parser' project = "gitconfig parser" project_no_spaces = project.replace(' ', '') version = '0.1' description = 'Parse a .gitconfig f...
0
0
0
0
0
0
0
0
0
7f811144d31029ae77dbeca057082d4bb9bfc049
5,819
py
Python
bilana/files/pofn.py
azadeha83/BilayAna
1150a148da2864b88eff2bfb8204a5f51ace0b9a
[ "MIT" ]
null
null
null
bilana/files/pofn.py
azadeha83/BilayAna
1150a148da2864b88eff2bfb8204a5f51ace0b9a
[ "MIT" ]
null
null
null
bilana/files/pofn.py
azadeha83/BilayAna
1150a148da2864b88eff2bfb8204a5f51ace0b9a
[ "MIT" ]
null
null
null
def pofn(systeminfo, neiblist, fname="neighbortype_distribution.dat"): ''' Creates datafile < fname > with columns: < time > < residue > < resname > < N comp 1 > < N comp 2 > ... < N comp i > ''' components = systeminfo.molecules with open(fname, "w") as outf: print("{: <12}{:...
44.761538
115
0.488744
import numpy as np import bisect from ..common import exec_gromacs def write_pofn_file(outfilename, pofn, typeset, averageing='off', count_type='Ntot'): with open(outfilename, "w") as outf: print("{: <10}{: <5}{: <20}".format('Scd', count_type, ' '.join(sorted(typeset))), file=outf) for scdval in s...
0
0
0
0
0
1,064
0
1
89
dcd4cad40b670e6ad008de32199693584c038c27
16,037
py
Python
src/triage/cli.py
DataFactorTOP/triage
f8d16c745fcb81740cb402671117d647e497c5a7
[ "MIT" ]
null
null
null
src/triage/cli.py
DataFactorTOP/triage
f8d16c745fcb81740cb402671117d647e497c5a7
[ "MIT" ]
null
null
null
src/triage/cli.py
DataFactorTOP/triage
f8d16c745fcb81740cb402671117d647e497c5a7
[ "MIT" ]
null
null
null
import verboselogs logger = verboselogs.VerboseLogger(__name__)
36.365079
218
0.616761
import argparse import importlib.util import os import yaml from datetime import datetime from descriptors import cachedproperty from argcmdr import RootCommand, Command, main, cmdmethod from sqlalchemy.engine.url import URL from triage.component.architect.feature_generators import FeatureGenerator from triage.compo...
0
13,333
0
1,126
0
362
0
558
583
aab24a27b3201d7176b6d735e9eeae34b34971d2
15,903
py
Python
gpt/gpt_util.py
etherlabsio/hinton
eedd99f6a5fbbc38283bbf945dff4f4006a3d1f5
[ "MIT" ]
null
null
null
gpt/gpt_util.py
etherlabsio/hinton
eedd99f6a5fbbc38283bbf945dff4f4006a3d1f5
[ "MIT" ]
null
null
null
gpt/gpt_util.py
etherlabsio/hinton
eedd99f6a5fbbc38283bbf945dff4f4006a3d1f5
[ "MIT" ]
1
2020-04-19T11:08:02.000Z
2020-04-19T11:08:02.000Z
import csv from tqdm import tqdm import numpy as np import torch import torch.nn as nn from pytorch_pretrained_bert import (OpenAIGPTDoubleHeadsModel) ############################################################################## # Defining constants over here seed = 42 model_name = 'openai-gpt' #train_dataset = '/...
50.485714
239
0.749481
import argparse import os import csv import random import logging from tqdm import tqdm, trange import numpy as np import torch import torch.nn as nn from torch.utils.data import (DataLoader, RandomSampler, SequentialSampler, TensorDataset) from pytorch_pretrained_bert import (OpenAIGPTDoubleHeadsModel, OpenA...
0
0
0
8,554
0
1,784
0
283
270
5b21054650292a232b0a2123e23f4300d1188808
11,421
py
Python
data_processing/filter_aichallenge2018_only_single_person.py
tucan9389/mobile-pose-estimation-for-TF2
82a01359820c1797505a13bc663df49b717cc696
[ "Apache-2.0" ]
122
2019-04-08T04:20:26.000Z
2021-03-22T05:32:29.000Z
data_processing/filter_aichallenge2018_only_single_person.py
tucan9389/mobile-pose-estimation-for-TF2
82a01359820c1797505a13bc663df49b717cc696
[ "Apache-2.0" ]
45
2019-03-31T22:29:31.000Z
2021-03-21T07:00:08.000Z
data_processing/filter_aichallenge2018_only_single_person.py
tucan9389/mobile-pose-estimation-for-TF2
82a01359820c1797505a13bc663df49b717cc696
[ "Apache-2.0" ]
35
2019-05-24T03:43:11.000Z
2021-03-09T08:22:22.000Z
import os, json, shutil # coco_annotation_json_path = "/home/centos/datasets/ai_challenger_2018/ai_challenger_keypoint_train_20170909/keypoint_train_annotations_20170909.json" # image_source_dir_path = "/home/centos/datasets/ai_challenger_2018/ai_challenger_keypoint_train_20170909/keypoint_train_images_201...
47.987395
875
0.687068
import os, json, shutil # coco_annotation_json_path = "/home/centos/datasets/ai_challenger_2018/ai_challenger_keypoint_train_20170909/keypoint_train_annotations_20170909.json" # image_source_dir_path = "/home/centos/datasets/ai_challenger_2018/ai_challenger_keypoint_train_20170909/keypoint_train_images_201...
0
0
0
0
0
0
0
0
0
ad6fccd97c42913f9a12c342b71ce5c7c1616c3d
8,231
py
Python
mGui/events.py
theodox/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
105
2015-01-13T10:52:55.000Z
2022-03-23T12:49:01.000Z
mGui/events.py
techartorg/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
84
2015-01-15T14:56:08.000Z
2019-04-15T17:03:51.000Z
mGui/events.py
techartorg/mGui
d2cd8c48ae1d51c9587b0aaab5b1d296a0561625
[ "MIT" ]
22
2015-01-11T11:25:37.000Z
2021-12-24T06:34:46.000Z
""" events.py Defines a simple event handler system similar to that used in C#. Events allow multicast delegates and arbitrary message passing. They use weak references so they don't keep their handlers alive if they are otherwise out of scope. """ import inspect # # create weak references to both bound and unb...
28.679443
113
0.604422
""" events.py Defines a simple event handler system similar to that used in C#. Events allow multicast delegates and arbitrary message passing. They use weak references so they don't keep their handlers alive if they are otherwise out of scope. """ import weakref import maya.utils from functools import partial, wrap...
0
36
0
7,111
0
0
0
4
208