hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
9d68975702955b40381a81581441db52c47f67ab
43
py
Python
src/network/__init__.py
ThomasRanvier/faces_recognition_nn
b9177134169b6e05d9d9b6ea3206628bdb127a5e
[ "MIT" ]
null
null
null
src/network/__init__.py
ThomasRanvier/faces_recognition_nn
b9177134169b6e05d9d9b6ea3206628bdb127a5e
[ "MIT" ]
null
null
null
src/network/__init__.py
ThomasRanvier/faces_recognition_nn
b9177134169b6e05d9d9b6ea3206628bdb127a5e
[ "MIT" ]
null
null
null
from .neural_network import Neural_network
21.5
42
0.883721
0
0
0
0
0
0
0
0
0
0
9d6b7d2817a9a11d4f368ca09bd16da81be04b5f
1,496
py
Python
rides/forms.py
andrenbrandao/pirauber
d7c5647ec6df698fa3d7397907ff629c74cc76b9
[ "MIT" ]
null
null
null
rides/forms.py
andrenbrandao/pirauber
d7c5647ec6df698fa3d7397907ff629c74cc76b9
[ "MIT" ]
6
2020-06-05T23:27:38.000Z
2022-02-10T08:14:16.000Z
rides/forms.py
andrenbrandao/pirauber
d7c5647ec6df698fa3d7397907ff629c74cc76b9
[ "MIT" ]
null
null
null
from django import forms from crispy_forms.helper import FormHelper from crispy_forms.layout import Submit from django.utils.translation import ugettext_lazy as _ from .models import Ride class RideForm(forms.ModelForm): date = forms.DateField( label=_('Date'), widget=forms.DateInput(format=('%Y...
31.166667
91
0.592914
1,303
0.870989
0
0
0
0
0
0
376
0.251337
9d6dfe9a0fb4cf150a1dbedc9b781a51974ddeed
843
py
Python
tests/testdata/models.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
tests/testdata/models.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
tests/testdata/models.py
dtpryce/MLServer
02744b3c770141b0b1d9dad2a0256d243051de61
[ "Apache-2.0" ]
null
null
null
import asyncio from mlserver import MLModel from mlserver.codecs import NumpyCodec from mlserver.types import InferenceRequest, InferenceResponse class SumModel(MLModel): async def predict(self, payload: InferenceRequest) -> InferenceResponse: decoded = self.decode(payload.inputs[0]) total = dec...
31.222222
87
0.71293
689
0.817319
0
0
0
0
624
0.740214
7
0.008304
9d6f477bb8496ccbe8298b0d502cfaf9b42c5d1c
10,459
py
Python
PERFORMER.py
ShivamRajSharma/Transformer-Architecure_From_Scratch
f7f24cb5146c09e6cf38a41e5e5ef721389803c1
[ "MIT" ]
17
2020-09-13T07:53:41.000Z
2022-03-17T09:58:23.000Z
PERFORMER.py
ShivamRajSharma/Transformer-Architecure_From_Scratch
f7f24cb5146c09e6cf38a41e5e5ef721389803c1
[ "MIT" ]
null
null
null
PERFORMER.py
ShivamRajSharma/Transformer-Architecure_From_Scratch
f7f24cb5146c09e6cf38a41e5e5ef721389803c1
[ "MIT" ]
3
2020-12-15T14:20:47.000Z
2022-01-24T02:26:04.000Z
from time import time import torch import torch.nn as nn class FastAttention(nn.Module): def __init__(self, input_shape, head, n_features): super(FastAttention, self).__init__() self.head = head self.input_shape = input_shape self.depth = int(input_shape // head) self.n_f...
30.852507
95
0.581222
9,513
0.909552
0
0
0
0
0
0
345
0.032986
9d6fa2ce7adb3f0d8fb6ff64a2befb7535e72eca
28,970
py
Python
nogo/gtp_connection.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
nogo/gtp_connection.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
nogo/gtp_connection.py
douglasrebstock/alpha-zero-general
2237522be5a1bbfebbc2fc1b2a8e8a6bcb6d5aab
[ "MIT" ]
null
null
null
""" gtp_connection.py Module for playing games of Go using GoTextProtocol Parts of this code were originally based on the gtp module in the Deep-Go project by Isaac Henrion and Amos Storkey at the University of Edinburgh. """ import signal, os import traceback from sys import stdin, stdout, stderr from board_util im...
34.736211
150
0.542975
26,059
0.899517
0
0
0
0
0
0
7,236
0.249776
9d70c2235e5fc849eb97316fd49d7acf1fb36a6a
2,634
py
Python
seamless/highlevel/SubCell.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
15
2017-06-07T12:49:12.000Z
2020-07-25T18:06:04.000Z
seamless/highlevel/SubCell.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
110
2016-06-21T23:20:44.000Z
2022-02-24T16:15:22.000Z
seamless/highlevel/SubCell.py
sjdv1982/seamless
1b814341e74a56333c163f10e6f6ceab508b7df9
[ "MIT" ]
6
2016-06-21T11:19:22.000Z
2019-01-21T13:45:39.000Z
import weakref from .Cell import Cell class SubCell(Cell): def __init__(self, parent, cell, subpath, readonly): assert isinstance(cell, Cell) assert not isinstance(cell, SubCell) fullpath = cell._path + subpath super().__init__(parent=parent, path=fullpath) self._cell = wea...
30.988235
96
0.602885
2,593
0.984434
0
0
887
0.33675
0
0
239
0.090737
9d70ca280f4f08aef01023da8fb208958fa5803b
460
py
Python
colos/sfbx/__init__.py
asmodehn/colos
8894c3a758489b639638ba9aa9c83f7d621648eb
[ "MIT" ]
null
null
null
colos/sfbx/__init__.py
asmodehn/colos
8894c3a758489b639638ba9aa9c83f7d621648eb
[ "MIT" ]
4
2018-04-11T09:13:05.000Z
2018-04-11T09:28:18.000Z
colos/sfbx/__init__.py
asmodehn/colos
8894c3a758489b639638ba9aa9c83f7d621648eb
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # The aim of this package is to : # - guarantee protected code execution is safe and *will* happen (eventually) # - report usage via colosstat # - recover when code fails ( possibly recording previous state, for example ) # one possibility is to implement another levelof ...
41.818182
96
0.741304
0
0
0
0
0
0
0
0
452
0.978355
9d71192a0442b7eef7acad0763b92e91ecac841f
965
py
Python
plugins/help.py
A0vanc01/Frisky
d4d7f9892858b5412755c9dee594e5b60b6d2b94
[ "MIT" ]
5
2020-01-22T18:16:59.000Z
2021-06-14T13:23:57.000Z
plugins/help.py
A0vanc01/Frisky
d4d7f9892858b5412755c9dee594e5b60b6d2b94
[ "MIT" ]
104
2020-02-12T00:36:14.000Z
2022-02-10T08:18:28.000Z
plugins/help.py
A0vanc01/Frisky
d4d7f9892858b5412755c9dee594e5b60b6d2b94
[ "MIT" ]
4
2020-01-30T15:44:04.000Z
2020-08-27T19:22:57.000Z
from frisky.events import MessageEvent from frisky.plugin import FriskyPlugin, PluginRepositoryMixin from frisky.responses import FriskyResponse class HelpPlugin(FriskyPlugin, PluginRepositoryMixin): commands = ['help'] def command_help(self, message: MessageEvent) -> FriskyResponse: if len(message....
40.208333
96
0.643523
817
0.846632
0
0
0
0
0
0
220
0.227979
9d712c380762c48dece9d6503dff8952414ca037
1,663
py
Python
cadnano/tests/testgroup.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
69
2015-01-13T02:54:40.000Z
2022-03-27T14:25:51.000Z
cadnano/tests/testgroup.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
127
2015-01-01T06:26:34.000Z
2022-03-02T12:48:05.000Z
cadnano/tests/testgroup.py
mctrinh/cadnano2.5
d8254f24eef5fd77b4fb2b1a9642a8eea2e3c736
[ "BSD-3-Clause" ]
48
2015-01-22T19:57:49.000Z
2022-03-27T14:27:53.000Z
# -*- coding: utf-8 -*- from PyQt5.QtWidgets import QGraphicsItem, QGraphicsRectItem, QGraphicsItemGroup from PyQt5.QtCore import pyqtSlot class MyItemGroup(QGraphicsItemGroup): Type = QGraphicsItem.UserType + 3 def __init__(self, parent=None): super(MyItemGroup, self).__init__(parent) def __rep...
26.822581
80
0.683103
913
0.549008
0
0
0
0
0
0
294
0.176789
9d71751143901cbe72d8513a42c3b74da3d29bf0
998
py
Python
composer/models/ssd/ssd_hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
composer/models/ssd/ssd_hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
composer/models/ssd/ssd_hparams.py
anisehsani/composer
42599682d50409b4a4eb7c91fad85d67418cee13
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 MosaicML. All Rights Reserved. from dataclasses import dataclass import yahp as hp from composer.models.model_hparams import ModelHparams @dataclass class SSDHparams(ModelHparams): input_size: int = hp.optional( doc="input size", default=300, ) num_classes: int = hp.opt...
22.681818
55
0.617234
826
0.827655
0
0
837
0.838677
0
0
120
0.12024
9d73808fab2e4c633d3b7d43187bc4821f1bfb77
1,303
py
Python
src/lib/base_dataset.py
CvHadesSun/Camera-Calibration
5c054672749aa0b3be1bdff8b8f4f3d2fcf3ee85
[ "MIT" ]
null
null
null
src/lib/base_dataset.py
CvHadesSun/Camera-Calibration
5c054672749aa0b3be1bdff8b8f4f3d2fcf3ee85
[ "MIT" ]
null
null
null
src/lib/base_dataset.py
CvHadesSun/Camera-Calibration
5c054672749aa0b3be1bdff8b8f4f3d2fcf3ee85
[ "MIT" ]
null
null
null
from os.path import join from utils import getFileList class ImageFolder: def __init__(self, path, sub=None, annot='annot') -> None: self.root = path self.image = 'images' self.annot = annot self.image_root = join(path, self.image) self.annot_root = join(path, self.annot) ...
40.71875
80
0.61934
1,247
0.957022
0
0
0
0
0
0
47
0.036071
9d73d6f049758b5497d67b41cd027577eaf0250d
1,704
py
Python
main.py
sunkr1995/genetic-drawing
6e5cc755a55c1994770c3f18fb14f1cc651bb700
[ "MIT" ]
null
null
null
main.py
sunkr1995/genetic-drawing
6e5cc755a55c1994770c3f18fb14f1cc651bb700
[ "MIT" ]
null
null
null
main.py
sunkr1995/genetic-drawing
6e5cc755a55c1994770c3f18fb14f1cc651bb700
[ "MIT" ]
null
null
null
''' Author: your name Date: 2021-06-18 10:13:00 LastEditTime: 2021-07-08 14:13:07 LastEditors: Please set LastEditors Description: In User Settings Edit FilePath: /genetic-drawing/main.py ''' import cv2 import os import time from IPython.display import clear_output from genetic_drawing import * gen = GeneticDrawing('0...
34.08
87
0.669601
0
0
0
0
0
0
0
0
694
0.407277
9d740fa3ec721433e495424e2743d9af67d910eb
10,991
py
Python
flair/models/sandbox/simple_sequence_tagger_model.py
bratao/flair
67b53cc2a615a2e2a4e552d6f787c2efa708a939
[ "MIT" ]
null
null
null
flair/models/sandbox/simple_sequence_tagger_model.py
bratao/flair
67b53cc2a615a2e2a4e552d6f787c2efa708a939
[ "MIT" ]
null
null
null
flair/models/sandbox/simple_sequence_tagger_model.py
bratao/flair
67b53cc2a615a2e2a4e552d6f787c2efa708a939
[ "MIT" ]
null
null
null
import logging from typing import List, Union, Optional import torch import torch.nn import torch.nn.functional as F from tqdm import tqdm import flair.nn from flair.data import Dictionary, Sentence, Label from flair.datasets import SentenceDataset, DataLoader from flair.embeddings import TokenEmbeddings from flair....
35.569579
111
0.592849
10,596
0.964062
0
0
777
0.070694
0
0
2,647
0.240833
9d7508b796c963b53ae0eb9f9680e4518db45e86
1,708
py
Python
exercise/xiaohuar/spider-xiaohuar.com.py
PorYoung/bigData-camp-8d
8fa31b48065da27fd1c4f8432232342cede6f56c
[ "MIT" ]
1
2019-12-27T06:34:06.000Z
2019-12-27T06:34:06.000Z
exercise/xiaohuar/spider-xiaohuar.com.py
PorYoung/bigData-camp-8d
8fa31b48065da27fd1c4f8432232342cede6f56c
[ "MIT" ]
1
2021-12-14T20:40:06.000Z
2021-12-14T20:40:06.000Z
exercise/xiaohuar/spider-xiaohuar.com.py
PorYoung/bigData-camp-8d
8fa31b48065da27fd1c4f8432232342cede6f56c
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup def spider_xiaohuar_content(url, headers): response = requests.get(url=url, headers=headers) print(response.status_code) if response.status_code == 200: response.encoding = 'utf-8' html = response.content # 参数:网页内容,解析器 soup = B...
38.818182
136
0.538056
0
0
0
0
0
0
0
0
519
0.295222
9d75c627939ebcaa3bf24644789f819936e04c59
749
py
Python
v1.1/auc_csv_merge.py
lz-pku-1997/so-many-tricks-for-Image-classification
3df7a0672f88219f893b0fa23c31ae6b30d01264
[ "MIT" ]
2
2020-04-21T06:06:28.000Z
2020-12-27T12:35:57.000Z
v1.1/auc_csv_merge.py
lz-pku-1997/so-many-tricks-for-Image-classification
3df7a0672f88219f893b0fa23c31ae6b30d01264
[ "MIT" ]
null
null
null
v1.1/auc_csv_merge.py
lz-pku-1997/so-many-tricks-for-Image-classification
3df7a0672f88219f893b0fa23c31ae6b30d01264
[ "MIT" ]
null
null
null
#尝试直接读取文件夹内所有csv,记得看看列表,是不是读对了 import glob import pandas as pd import numpy as np io = glob.glob(r"*.csv") len_io=len(io) print('总共输入表的数量为:',len_io) prob_list=[] for i in range(len_io): sub_1 = pd.read_csv(io[i]) denominator=len(sub_1) for my_classes in ['healthy','multiple_diseases','rust',...
31.208333
69
0.663551
0
0
0
0
0
0
0
0
201
0.244823
9d76b727796967801234a59f7efe009b01c9e636
10,468
py
Python
masakari-7.0.0/masakari/objects/base.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
masakari-7.0.0/masakari/objects/base.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
masakari-7.0.0/masakari/objects/base.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright 2016 NTT Data. # 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 app...
35.364865
79
0.664215
6,713
0.641288
181
0.017291
1,174
0.112151
0
0
4,964
0.474207
9d7a01fbe97c35ca79d4cd01911da8cd9570eceb
53
py
Python
malaya/text/bahasa/news.py
ebiggerr/malaya
be757c793895522f80b929fe82353d90762f7fff
[ "MIT" ]
88
2021-01-06T10:01:31.000Z
2022-03-30T17:34:09.000Z
malaya/text/bahasa/news.py
zulkiflizaki/malaya
2358081bfa43aad57d9415a99f64c68f615d0cc4
[ "MIT" ]
43
2021-01-14T02:44:41.000Z
2022-03-31T19:47:42.000Z
malaya/text/bahasa/news.py
zulkiflizaki/malaya
2358081bfa43aad57d9415a99f64c68f615d0cc4
[ "MIT" ]
38
2021-01-06T07:15:03.000Z
2022-03-19T05:07:50.000Z
news = ['klik untuk membaca', 'klik untuk maklumat']
26.5
52
0.698113
0
0
0
0
0
0
0
0
41
0.773585
9d7a0f0018ec32fb50d147552cd1d3e28431140d
306
py
Python
sonosscripts/modules.py
RobinDeBaets/SonosScripts
e3a4f27259d9881ebdc3176069e7fe428f88c244
[ "WTFPL" ]
null
null
null
sonosscripts/modules.py
RobinDeBaets/SonosScripts
e3a4f27259d9881ebdc3176069e7fe428f88c244
[ "WTFPL" ]
1
2019-11-21T20:22:01.000Z
2019-11-21T20:22:01.000Z
sonosscripts/modules.py
RobinDeBaets/SonosScripts
e3a4f27259d9881ebdc3176069e7fe428f88c244
[ "WTFPL" ]
1
2020-08-01T18:02:21.000Z
2020-08-01T18:02:21.000Z
from sonosscripts import stop, play_pause, previous, next, change_bass, change_volume, mute_volume modules = { "stop": stop, "play_pause": play_pause, "previous": previous, "next": next, "change_bass": change_bass, "change_volume": change_volume, "mute_volume": mute_volume }
23.538462
98
0.69281
0
0
0
0
0
0
0
0
75
0.245098
9d7ad5477f4bf8f12192323e1ee2103954aa57db
3,925
py
Python
twitter_bot/MyBot.py
diem-ai/datascience-projects
deef93217bd3b0cfc2ca7802933142d1dad7fcba
[ "MIT" ]
null
null
null
twitter_bot/MyBot.py
diem-ai/datascience-projects
deef93217bd3b0cfc2ca7802933142d1dad7fcba
[ "MIT" ]
null
null
null
twitter_bot/MyBot.py
diem-ai/datascience-projects
deef93217bd3b0cfc2ca7802933142d1dad7fcba
[ "MIT" ]
null
null
null
""" Class SaleBot It is initialised by nlp model (bag-of-word, tf-idf, word2vec) It returns response with a question as the input """ from gensim.corpora import Dictionary #from gensim.models import FastText from gensim.models import Word2Vec , WordEmbeddingSimilarityIndex from gensim.similarities import SoftCo...
37.380952
105
0.592866
3,384
0.862166
0
0
0
0
0
0
995
0.253503
9d7c94008fdd0c290d0ad7ba8082f2beff2eb070
2,452
py
Python
Tensorflow_2X_PythonFiles/demo123_convolution_visualization.py
mahnooranjum/Tensorflow_DeepLearning
65ab178d4c17efad01de827062d5c85bdfb9b1ca
[ "MIT" ]
null
null
null
Tensorflow_2X_PythonFiles/demo123_convolution_visualization.py
mahnooranjum/Tensorflow_DeepLearning
65ab178d4c17efad01de827062d5c85bdfb9b1ca
[ "MIT" ]
null
null
null
Tensorflow_2X_PythonFiles/demo123_convolution_visualization.py
mahnooranjum/Tensorflow_DeepLearning
65ab178d4c17efad01de827062d5c85bdfb9b1ca
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Demo123_Convolution_Visualization.ipynb # **Spit some [tensor] flow** We need to learn the intricacies of tensorflow to master deep learning `Let's get this over with` """ import numpy as np import pandas as pd import matplotlib.pyplot as plt import tensorflow as tf print(tf.__version__) ...
21.137931
98
0.69168
0
0
0
0
0
0
0
0
405
0.165171
9d8165f8ce202fddd44b2d3bc70e29ad7d9245a2
1,482
py
Python
hail_scripts/v01/convert_tsv_to_vds.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
hail_scripts/v01/convert_tsv_to_vds.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
hail_scripts/v01/convert_tsv_to_vds.py
NLSVTN/hail-elasticsearch-pipelines
8b895a2e46a33d347dd2a1024101a6d515027a03
[ "MIT" ]
null
null
null
import argparse as ap import hail from pprint import pprint import time from hail_scripts.v01.utils.vds_utils import write_vds p = ap.ArgumentParser(description="Convert a tsv table to a .vds") p.add_argument("-c", "--chrom-column", required=True) p.add_argument("-p", "--pos-column", required=True) p.add_argument("-r...
36.146341
150
0.690958
0
0
0
0
0
0
0
0
412
0.278003
9d81808e7a83247fd981f349fc73abe0b9de1e1e
4,649
py
Python
scripts/Old/fixSequenceIDs.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
4
2015-10-10T19:09:49.000Z
2021-09-02T00:58:06.000Z
scripts/Old/fixSequenceIDs.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
null
null
null
scripts/Old/fixSequenceIDs.py
paepcke/json_to_relation
acfa58d540f8f51d1d913d0c173ee3ded1b6c2a9
[ "BSD-3-Clause" ]
8
2015-05-16T14:33:33.000Z
2019-10-24T08:56:25.000Z
#!/usr/bin/env python # Copyright (c) 2014, Stanford University # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this list ...
54.05814
757
0.687245
0
0
0
0
0
0
0
0
2,982
0.641428
9d818b86a7daa5558c49d73a26208235e0d52b89
8,433
py
Python
tests/test_logger_device.py
ska-telescope/lmc-base-classes
e3ac46a731aca4d49d53747b4352ec4be089ff5d
[ "BSD-3-Clause" ]
3
2019-04-18T20:46:02.000Z
2019-07-30T17:47:40.000Z
tests/test_logger_device.py
ska-telescope/lmc-base-classes
e3ac46a731aca4d49d53747b4352ec4be089ff5d
[ "BSD-3-Clause" ]
26
2018-10-30T07:50:50.000Z
2020-07-13T12:50:36.000Z
tests/test_logger_device.py
ska-telescope/lmc-base-classes
e3ac46a731aca4d49d53747b4352ec4be089ff5d
[ "BSD-3-Clause" ]
4
2019-01-16T07:47:59.000Z
2021-06-01T11:17:32.000Z
######################################################################################### # -*- coding: utf-8 -*- # # This file is part of the SKALogger project # # # ######################################################################################### """Contain the tests for the SKALogger.""" import re import py...
44.856383
94
0.681727
6,304
0.747539
0
0
7,485
0.887584
0
0
4,591
0.544409
9d83b4f58893d59845ef72aeb0870f92b39fa121
2,053
py
Python
baseline/find_pairs.py
parallelcrawl/DataCollection
4308473e6b53779159a15c1416bff3f2291dd1f2
[ "Apache-2.0" ]
8
2018-02-08T16:03:00.000Z
2022-01-19T11:41:38.000Z
baseline/find_pairs.py
christianbuck/CorpusMining
f9248c3528a415a1e5af2c5a54a60c16cd79ff1d
[ "Apache-2.0" ]
3
2017-08-08T10:53:29.000Z
2017-08-08T10:58:51.000Z
baseline/find_pairs.py
parallelcrawl/DataCollection
4308473e6b53779159a15c1416bff3f2291dd1f2
[ "Apache-2.0" ]
4
2018-06-09T21:53:09.000Z
2022-01-19T11:41:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import re import urlparse def process_buffer(buffer): if not buffer or len(buffer) < 2: return buffer = [line.decode('utf-8', 'ignore') for line in buffer] split_buffer = [line.strip().lower().split("\t") for line in buff...
31.106061
77
0.580614
0
0
0
0
0
0
0
0
380
0.185095
9d84b7b6381a6f3c016023bcfd74caa6a922fa9b
625
py
Python
tests/test_jupyter_integration.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
null
null
null
tests/test_jupyter_integration.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
null
null
null
tests/test_jupyter_integration.py
boeddeker/graphviz
acf79bca4518781cad02c102e89ec4e9ce757088
[ "MIT" ]
null
null
null
import pytest from graphviz import jupyter_integration def test_get_jupyter_format_mimetype_invalid_raises_unknown(): with pytest.raises(ValueError, match=r'unknown'): jupyter_integration.get_jupyter_format_mimetype('Brian!') def test_get_jupyter_mimetype_format_normalizes(): assert jupyter_integra...
32.894737
78
0.808
0
0
0
0
0
0
0
0
63
0.1008
9d872c11430e2faa3e970e4a406f2f735e7a91bc
122
py
Python
gaussianmean.py
rjw57/fear-python-example
b95440fff6471d2555dce63ed8b26a0a7c8d2ed1
[ "MIT" ]
1
2016-06-27T08:28:23.000Z
2016-06-27T08:28:23.000Z
gaussianmean.py
rjw57/fear-python-example
b95440fff6471d2555dce63ed8b26a0a7c8d2ed1
[ "MIT" ]
null
null
null
gaussianmean.py
rjw57/fear-python-example
b95440fff6471d2555dce63ed8b26a0a7c8d2ed1
[ "MIT" ]
null
null
null
import numpy as np def main(): s = np.mean(np.random.randn(100)) print(s) if __name__ == '__main__': main()
13.555556
37
0.598361
0
0
0
0
0
0
0
0
10
0.081967
9d874b69262d199893f7832d8c3dfc78745d2cab
544
py
Python
sarsa.py
lukaspestalozzi/URLNN-Project2
425d3a14f063d91ae4b6183aa866fa074dc1d791
[ "MIT" ]
null
null
null
sarsa.py
lukaspestalozzi/URLNN-Project2
425d3a14f063d91ae4b6183aa866fa074dc1d791
[ "MIT" ]
null
null
null
sarsa.py
lukaspestalozzi/URLNN-Project2
425d3a14f063d91ae4b6183aa866fa074dc1d791
[ "MIT" ]
null
null
null
import mountaincar as mc import numpy as np from collections import namedtuple from collections import defaultdict import matplotlib.pylab as plb import matplotlib.pyplot as plt from time import time State = namedtuple('State', ['x', 'v']) class SarsaMountainCar(object): def __init__(self, learning_rate=0.1, rew...
24.727273
85
0.740809
301
0.553309
0
0
0
0
0
0
13
0.023897
9d87c99f7edc4a51975ce4aad83b2a68eca0165b
4,931
py
Python
utils.py
nea23/greek_alphabets_tf-idf
94094dd6d7383400e0f0a9d4a1b05744dd2f3ba9
[ "MIT" ]
null
null
null
utils.py
nea23/greek_alphabets_tf-idf
94094dd6d7383400e0f0a9d4a1b05744dd2f3ba9
[ "MIT" ]
null
null
null
utils.py
nea23/greek_alphabets_tf-idf
94094dd6d7383400e0f0a9d4a1b05744dd2f3ba9
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import numpy as np import pandas as pd """ The following functions are used to create an annotated heatmap and they were copied from: https://matplotlib.org/stable/gallery/images_contours_and_fields/image_annotated_heatmap.html#using-the-helper-function-code-style ""...
34.725352
131
0.651592
0
0
0
0
0
0
0
0
2,661
0.539647
9d87fe4b4c7aa76322c36b84c9220f5fee728c3d
6,675
py
Python
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/src/launch.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
12
2020-12-13T08:34:24.000Z
2022-03-20T15:17:17.000Z
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/src/launch.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
3
2021-03-31T20:15:40.000Z
2022-02-09T23:50:46.000Z
built-in/MindSpore/Official/cv/detection/CenterFace_for_MindSpore/src/launch.py
Huawei-Ascend/modelzoo
df51ed9c1d6dbde1deef63f2a037a369f8554406
[ "Apache-2.0" ]
2
2021-07-10T12:40:46.000Z
2021-12-17T07:55:15.000Z
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
43.914474
315
0.61588
0
0
0
0
0
0
0
0
2,550
0.382022
9d88690768c73f37df5f9308e7658f80de5bdba2
1,475
py
Python
orange3/Orange/widgets/credentials.py
rgschmitz1/BioDepot-workflow-builder
f74d904eeaf91ec52ec9b703d9fb38e9064e5a66
[ "MIT" ]
54
2017-01-08T17:21:49.000Z
2021-11-02T08:46:07.000Z
orange3/Orange/widgets/credentials.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
22
2017-03-28T06:03:14.000Z
2021-07-28T05:43:55.000Z
orange3/Orange/widgets/credentials.py
Synthia-3/BioDepot-workflow-builder
4ee93abe2d79465755e82a145af3b6a6e1e79fd4
[ "MIT" ]
21
2017-01-26T21:12:09.000Z
2022-01-31T21:34:59.000Z
import logging import keyring SERVICE_NAME = "Orange3 - {}" log = logging.getLogger(__name__) class CredentialManager: """ Class for storage of passwords in the system keyring service. All attributes of this class are safely stored. Args: service_name (str): service name used for storing i...
27.830189
88
0.614237
1,375
0.932203
0
0
84
0.056949
0
0
584
0.395932
9d886ff7c8fb1d674ed9db521c7c448a657e5fe1
3,799
py
Python
Incident-Response/Tools/cyphon/cyphon/responder/actions/tests/test_models.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
1
2021-07-24T17:22:50.000Z
2021-07-24T17:22:50.000Z
Incident-Response/Tools/cyphon/cyphon/responder/actions/tests/test_models.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-28T03:40:31.000Z
2022-02-28T03:40:52.000Z
Incident-Response/Tools/cyphon/cyphon/responder/actions/tests/test_models.py
sn0b4ll/Incident-Playbook
cf519f58fcd4255674662b3620ea97c1091c1efb
[ "MIT" ]
2
2022-02-25T08:34:51.000Z
2022-03-16T17:29:44.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2019 ControlScan, Inc. # # This file is part of Cyphon Engine. # # Cyphon Engine 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, version 3 of the License. # # Cyphon En...
30.886179
72
0.630692
2,777
0.730982
0
0
0
0
0
0
1,550
0.408002
9d8881a2641e3115485a61059c62987f2d27bf5d
4,805
py
Python
predictions/lambda/handler.py
aaronshim/alexa-github-today
4f3e7adffa9bb9f3d63cfc1f4a79f396078c787c
[ "MIT" ]
null
null
null
predictions/lambda/handler.py
aaronshim/alexa-github-today
4f3e7adffa9bb9f3d63cfc1f4a79f396078c787c
[ "MIT" ]
null
null
null
predictions/lambda/handler.py
aaronshim/alexa-github-today
4f3e7adffa9bb9f3d63cfc1f4a79f396078c787c
[ "MIT" ]
null
null
null
import json import requests from collections import defaultdict from fuzzywuzzy import process from random import sample # Constants """ Constants for default responses that do not need any further computation. """ DEFAULT_STOP_RESPONSE = 'All right. See you next time!' DEFAULT_ERROR_MESSAGE = "I'm sorry. I don't kn...
33.838028
125
0.624766
0
0
0
0
0
0
0
0
2,092
0.43538
9d88973447a6fc9a97038839f4db33428c51196b
12,649
py
Python
Train.py
prattcmp/speakerembedding
5ed051261e69aaf7a1306c390b36cedb8da3f095
[ "MIT" ]
null
null
null
Train.py
prattcmp/speakerembedding
5ed051261e69aaf7a1306c390b36cedb8da3f095
[ "MIT" ]
null
null
null
Train.py
prattcmp/speakerembedding
5ed051261e69aaf7a1306c390b36cedb8da3f095
[ "MIT" ]
null
null
null
import torch import numpy as np import logging, yaml, os, sys, argparse, time from tqdm import tqdm from collections import defaultdict from Logger import Logger import matplotlib matplotlib.use('agg') matplotlib.rcParams['agg.path.chunksize'] = 10000 import matplotlib.pyplot as plt from scipy.io import wavfile from ra...
35.233983
137
0.591035
11,077
0.875721
0
0
580
0.045853
0
0
1,243
0.098269
9d8b9ee2c96a9f3f72e8c6e40b49a6ccfdc17590
2,247
py
Python
steamstore/client.py
saucesteals/steam.py
b1017f85f23c0eccafc6f35814d2e57cb4aa23e7
[ "MIT" ]
null
null
null
steamstore/client.py
saucesteals/steam.py
b1017f85f23c0eccafc6f35814d2e57cb4aa23e7
[ "MIT" ]
null
null
null
steamstore/client.py
saucesteals/steam.py
b1017f85f23c0eccafc6f35814d2e57cb4aa23e7
[ "MIT" ]
1
2021-04-11T00:38:19.000Z
2021-04-11T00:38:19.000Z
import logging import asyncio import aiohttp from .defaults import * from .app import App from .featured import FeaturedList log = logging.getLogger(__name__) class Client: """Main class for the Steam API""" def __init__(self, *, loop=None, **opts): self.loop = asyncio.get_event_loop() if loop is ...
26.127907
122
0.587895
2,082
0.926569
0
0
0
0
1,187
0.52826
167
0.074321
9d8c97671a23367d026ea52b147ffe064cc2939a
881
py
Python
ga/gen_graph.py
k4t0mono/exercicios-ia
06f76db20f519b8d7e9b5ee2cf5c7a72b21e188c
[ "BSD-3-Clause" ]
1
2018-09-23T15:38:04.000Z
2018-09-23T15:38:04.000Z
ga/gen_graph.py
k4t0mono/exercicios-ia
06f76db20f519b8d7e9b5ee2cf5c7a72b21e188c
[ "BSD-3-Clause" ]
null
null
null
ga/gen_graph.py
k4t0mono/exercicios-ia
06f76db20f519b8d7e9b5ee2cf5c7a72b21e188c
[ "BSD-3-Clause" ]
null
null
null
import sys import numpy as np import matplotlib.pyplot as plt f = open(sys.argv[1], 'r') lines = f.readlines() f.close() pop_size = int(lines.pop(0)) pops = [] for l in lines: if l[0] == '[': pops.append(l.strip()) for j in range(len(pops)): p = [] for n in pops[j][1:-1].split(','): p.a...
17.979592
52
0.506243
0
0
0
0
0
0
0
0
116
0.131669
9d8f0a7d44e8c877c0f58c7e9fe5bd054fd5c40a
7,486
py
Python
src/analyses/analyses.py
zahariaa/disentangled-dynamics
2dbdf9884f6f90ff67073f571191227e7abce81d
[ "MIT" ]
null
null
null
src/analyses/analyses.py
zahariaa/disentangled-dynamics
2dbdf9884f6f90ff67073f571191227e7abce81d
[ "MIT" ]
null
null
null
src/analyses/analyses.py
zahariaa/disentangled-dynamics
2dbdf9884f6f90ff67073f571191227e7abce81d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ analyses for bVAE entanglement, etc """ import torch import sys sys.path.append("..") # Adds higher directory to python modules path. import matplotlib.pyplot as plt import numpy as np from data.dspritesb import dSpriteBackgroundDataset from torchvision import tran...
36.339806
119
0.593909
0
0
0
0
0
0
0
0
3,038
0.405824
9d9030a3ab27bda98f5076efe7e1d4f4d61c1b31
2,684
py
Python
Chapter_BestPractices/Centering_Scaling.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
2
2022-02-20T18:57:46.000Z
2022-03-03T07:07:12.000Z
Chapter_BestPractices/Centering_Scaling.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
null
null
null
Chapter_BestPractices/Centering_Scaling.py
ML-PSE/Machine_Learning_for_PSE
b53578d7cc0e0eca4907527b188a60de06d6710e
[ "Apache-2.0" ]
null
null
null
##%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ## Centering & Scaling ## %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% #%% Standard scaling import numpy as np from sklearn.preprocessing import StandardScaler X = np.array([[ 100...
31.209302
80
0.592399
0
0
0
0
0
0
0
0
1,399
0.521237
9d9115d7ba282f909762763e4412827f039f107a
943
py
Python
pbtaskrunner/models.py
arxcruz/pbtaskrunner
26aff681593aae0d72520509fd1fbecbc3c8a9a6
[ "Apache-2.0" ]
null
null
null
pbtaskrunner/models.py
arxcruz/pbtaskrunner
26aff681593aae0d72520509fd1fbecbc3c8a9a6
[ "Apache-2.0" ]
null
null
null
pbtaskrunner/models.py
arxcruz/pbtaskrunner
26aff681593aae0d72520509fd1fbecbc3c8a9a6
[ "Apache-2.0" ]
null
null
null
from pbtaskrunner import db from pbtaskrunner import app from datetime import datetime def date_time_now(): return datetime.now class TestTask(db.Model): """Database representation of a Task test""" __tablename__ = 'test_task' request_id = db.Column(db.Integer, primary_key=True) requester = db....
31.433333
64
0.710498
802
0.850477
0
0
0
0
0
0
188
0.199364
9d91be2759fba448a3db8257c92c32db569fc6fc
2,244
py
Python
web/addons/mass_mailing/models/mass_mailing_report.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/addons/mass_mailing/models/mass_mailing_report.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/addons/mass_mailing/models/mass_mailing_report.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# -*- coding: utf-8 -*- from openerp.osv import fields, osv from openerp import tools class MassMailingReport(osv.Model): _name = 'mail.statistics.report' _auto = False _description = 'Mass Mailing Statistics' _columns = { 'scheduled_date': fields.datetime('Scheduled Date', readonly=True), ...
42.339623
101
0.572638
2,154
0.959893
0
0
0
0
0
0
1,486
0.66221
9d92cc65827cd5fd979d0843a2269e9633857396
97
py
Python
main.py
chengxianga2008/abn_amro
66172747328b33a591ea4e4fcbb902cb823b91e0
[ "BSD-2-Clause" ]
null
null
null
main.py
chengxianga2008/abn_amro
66172747328b33a591ea4e4fcbb902cb823b91e0
[ "BSD-2-Clause" ]
null
null
null
main.py
chengxianga2008/abn_amro
66172747328b33a591ea4e4fcbb902cb823b91e0
[ "BSD-2-Clause" ]
null
null
null
import app if __name__ == "__main__": app.daily_summary("data/Input.txt", "data/Output.csv")
24.25
58
0.701031
0
0
0
0
0
0
0
0
43
0.443299
9d934505c9a5de277afc3e1a3c4cc83a509daf62
2,750
py
Python
modules/springerlink.py
Christoph-D/paperget
9887936039ecc9fafe4dcce7988e75e964a05bcd
[ "MIT" ]
3
2016-06-17T15:52:02.000Z
2017-12-21T02:44:49.000Z
modules/springerlink.py
Christoph-D/paperget
9887936039ecc9fafe4dcce7988e75e964a05bcd
[ "MIT" ]
null
null
null
modules/springerlink.py
Christoph-D/paperget
9887936039ecc9fafe4dcce7988e75e964a05bcd
[ "MIT" ]
1
2021-02-16T21:10:33.000Z
2021-02-16T21:10:33.000Z
import urllib, re class FakeUseragentURLopener(urllib.FancyURLopener): version = "Mozilla/5.0 (Ubuntu; X11; Linux i686; rv:9.0.1) Gecko/20100101 Firefox/9.0.1" urllib._urlopener = FakeUseragentURLopener() download_pdf_regex = re.compile('.*<li class="pdf"><a class="sprite pdf-resource-sprite" href="([^"]*)" title...
49.107143
129
0.651273
145
0.052727
0
0
0
0
0
0
1,169
0.425091
9d956d3bf237c9754179486589b614a0b07bc05b
1,533
py
Python
app/__init__.py
alexander-emelyanov/microblog
f549768b410f1ce70fbfcbcdf89fb945793168e2
[ "MIT" ]
null
null
null
app/__init__.py
alexander-emelyanov/microblog
f549768b410f1ce70fbfcbcdf89fb945793168e2
[ "MIT" ]
null
null
null
app/__init__.py
alexander-emelyanov/microblog
f549768b410f1ce70fbfcbcdf89fb945793168e2
[ "MIT" ]
null
null
null
import os from flask import Flask from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import LoginManager from flask.ext.openid import OpenID from config import basedir, ADMINS, MAIL_SERVER, MAIL_PORT, MAIL_USERNAME, MAIL_PASSWORD, MAIL_SECURE app = Flask(__name__) app.config.from_object('config') db = S...
26.894737
121
0.739726
0
0
0
0
76
0.049576
0
0
233
0.15199
9d99ee239305997e26415c20f473a94ad6005845
330
py
Python
PersonalWebApp/Blog/migrations/0002_remove_post_wallpaper_representation.py
CiganOliviu/personal_website
abedf67efc2e7e212c32815f645d3b3709f9f177
[ "MIT" ]
1
2021-04-02T16:45:56.000Z
2021-04-02T16:45:56.000Z
PersonalWebApp/Blog/migrations/0002_remove_post_wallpaper_representation.py
CiganOliviu/personal_website
abedf67efc2e7e212c32815f645d3b3709f9f177
[ "MIT" ]
null
null
null
PersonalWebApp/Blog/migrations/0002_remove_post_wallpaper_representation.py
CiganOliviu/personal_website
abedf67efc2e7e212c32815f645d3b3709f9f177
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-09-03 17:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('Blog', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='post', name='wallpaper_representation', ...
18.333333
47
0.593939
245
0.742424
0
0
0
0
0
0
99
0.3
9d9caa03a4ae2fbdbadf5bfc3fd2600ade753a1b
3,460
py
Python
modules/colors.py
trybefore/discordbot
1ffce8149cde586e8c5883e8200b02937c5a15f6
[ "MIT" ]
3
2020-09-15T23:19:18.000Z
2021-02-17T10:24:54.000Z
modules/colors.py
trybefore/discordbot
1ffce8149cde586e8c5883e8200b02937c5a15f6
[ "MIT" ]
3
2021-06-22T10:57:14.000Z
2021-06-22T10:57:15.000Z
modules/colors.py
trybefore/discordbot
1ffce8149cde586e8c5883e8200b02937c5a15f6
[ "MIT" ]
2
2020-05-03T20:54:57.000Z
2020-09-12T18:49:13.000Z
from threading import Lock import discord from discord.ext import commands from loguru import logger from local_types import Snowflake from modules import is_bot_admin class Colors(commands.Cog): bot: discord.ext.commands.Bot colorRoles = {} mutex = Lock() def __init__(self, bot): self.bo...
31.454545
161
0.57948
3,287
0.95
0
0
1,741
0.503179
2,054
0.593642
533
0.154046
9d9d2695df7ed5d007311b6af26fc83339dd2f8b
526
py
Python
src/test/python/loader_native.py
dlech/xlang
ace2c924cc1fbecd05804866e183124cbb73bd48
[ "MIT" ]
null
null
null
src/test/python/loader_native.py
dlech/xlang
ace2c924cc1fbecd05804866e183124cbb73bd48
[ "MIT" ]
null
null
null
src/test/python/loader_native.py
dlech/xlang
ace2c924cc1fbecd05804866e183124cbb73bd48
[ "MIT" ]
1
2022-01-23T06:01:40.000Z
2022-01-23T06:01:40.000Z
import sys sys.path.append("./generated") sys.path.append("../../package/pywinrt/projection/pywinrt") import _winrt _winrt.init_apartment(_winrt.MTA) def import_ns(ns): import importlib.machinery import importlib.util module_name = "_winrt_" + ns.replace('.', '_') loader = importlib.machinery.Extensio...
30.941176
82
0.747148
0
0
0
0
0
0
0
0
70
0.13308
9d9de2c097d8a8da90ec0340d6b529e57bfc179c
2,247
py
Python
src/main/scripts/evalDelly.py
cwhelan/cloudbreak
bcff41d5309cfffb1faffc1d46e3f85007f84981
[ "MIT" ]
4
2015-02-10T07:10:28.000Z
2016-09-18T19:29:53.000Z
src/main/scripts/evalDelly.py
cwhelan/cloudbreak
bcff41d5309cfffb1faffc1d46e3f85007f84981
[ "MIT" ]
null
null
null
src/main/scripts/evalDelly.py
cwhelan/cloudbreak
bcff41d5309cfffb1faffc1d46e3f85007f84981
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import subprocess import evalBedFile # Delly file format (when only del summaries in file - cat *.del.txt | grep Deletion) # The summary line contains the chromosome, the estimated start and end of the structural variant, # the size of the variant, the number of supporting pairs, the ...
31.208333
125
0.652425
0
0
0
0
0
0
0
0
565
0.251446
9d9e064b6bf0f12b09cc360b5115a0ae4d5fbeff
1,645
py
Python
examples/basic_dsp_example.py
Camotubi/basic_dsp
38a380439cc8936c64febbc12227df78d95fce7f
[ "Apache-2.0", "MIT" ]
40
2015-11-23T02:23:35.000Z
2022-03-18T11:19:11.000Z
examples/basic_dsp_example.py
Camotubi/basic_dsp
38a380439cc8936c64febbc12227df78d95fce7f
[ "Apache-2.0", "MIT" ]
47
2015-11-23T01:58:38.000Z
2021-01-11T07:53:37.000Z
examples/basic_dsp_example.py
Camotubi/basic_dsp
38a380439cc8936c64febbc12227df78d95fce7f
[ "Apache-2.0", "MIT" ]
9
2018-05-19T07:25:26.000Z
2022-01-09T20:51:40.000Z
import ctypes import struct import time # # A small example how to use basic_dsp in a different language. # class VecResult(ctypes.Structure): _fields_ = [("resultCode", ctypes.c_int), ("result", ctypes.c_void_p)] lib = ctypes.WinDLL('basic_dsp.dll') new64Proto = ctypes.WINFUNCTYPE ( ctypes...
26.967213
100
0.677204
125
0.075988
0
0
0
0
0
0
346
0.210334
9da16db4956d4af0439ae0a5ca6c02568b1d609f
53,171
py
Python
src/pytris.py
CSID-DGU/2019-2-OSSPC-MDJ-1
2987e11b65bc9e31a30cadd39eea4214e2261998
[ "MIT" ]
1
2019-09-24T04:55:29.000Z
2019-09-24T04:55:29.000Z
src/pytris.py
CSID-DGU/2019-2-OSSPC-MDJ-1
2987e11b65bc9e31a30cadd39eea4214e2261998
[ "MIT" ]
null
null
null
src/pytris.py
CSID-DGU/2019-2-OSSPC-MDJ-1
2987e11b65bc9e31a30cadd39eea4214e2261998
[ "MIT" ]
7
2019-09-24T05:14:24.000Z
2019-12-10T04:15:28.000Z
#!/usr/bin/env python # coding: utf-8 import pygame import operator from mino import * from random import * from pygame.locals import * from ui import * from screeninfo import get_monitors from pygame.surface import Surface import sys from function import * #화면크기 조정 screen_width = 0 screen_height = 0 for m in get_m...
41.313908
179
0.514134
0
0
0
0
0
0
0
0
3,275
0.060938
9da1a92cdcf88a9e292d7bdc3fb0eeb027139777
2,305
py
Python
chemex/experiments/cpmg/fast/liouvillian.py
marcuscangussu/chemex_bouvignies
ce9ec20a42604eb5995abb0f8a84094b29747651
[ "BSD-3-Clause" ]
null
null
null
chemex/experiments/cpmg/fast/liouvillian.py
marcuscangussu/chemex_bouvignies
ce9ec20a42604eb5995abb0f8a84094b29747651
[ "BSD-3-Clause" ]
null
null
null
chemex/experiments/cpmg/fast/liouvillian.py
marcuscangussu/chemex_bouvignies
ce9ec20a42604eb5995abb0f8a84094b29747651
[ "BSD-3-Clause" ]
null
null
null
""" Created on Sep 1, 2011 @author: guillaume """ from scipy import zeros from chemex.bases.two_states.fast import R_IXY, DR_IXY, DW, KAB, KBA def compute_liouvillians(pb=0.0, kex=0.0, dw=0.0, r_ixy=5.0, dr_ixy=0.0): """ Compute the exchange matrix (Liouvillian) The function a...
21.745283
81
0.59436
0
0
0
0
0
0
0
0
1,686
0.731453
9da1d621b03730a6eb8d7bba6dfd398419916f66
7,261
py
Python
test/nba/test_fzrs.py
jgershen/sportsball
8aa2a599091fb14d1897f2e4b77384e9ee6b0eed
[ "MIT" ]
21
2016-03-12T00:59:04.000Z
2022-03-01T21:32:51.000Z
test/nba/test_fzrs.py
jgershen/sportsball
8aa2a599091fb14d1897f2e4b77384e9ee6b0eed
[ "MIT" ]
1
2017-04-17T04:39:46.000Z
2017-04-17T04:39:46.000Z
test/nba/test_fzrs.py
jgershen/sportsball
8aa2a599091fb14d1897f2e4b77384e9ee6b0eed
[ "MIT" ]
4
2016-07-25T11:55:52.000Z
2019-06-19T20:55:53.000Z
import tempfile import shutil import os import pandas import numpy as np import datetime import pkg_resources from unittest import TestCase from dfs.nba.featurizers import feature_generators from dfs.nba.featurizers import fantasy_points_fzr, last5games_fzr, nf_stats_fzr, vegas_fzr, \ opp_ffpg_fzr, salary_fzr class...
49.060811
115
0.450764
6,946
0.956618
0
0
0
0
0
0
465
0.064041
9da1ed6becdb22c4f8292e530b55e6268710e72f
1,346
py
Python
tests/test_status.py
ehdgua01/blocksync
da0198dde87d284ea3c9472c10f51028e05014a0
[ "MIT" ]
5
2020-06-03T09:30:15.000Z
2021-12-14T23:48:47.000Z
tests/test_status.py
ehdgua01/blocksync
da0198dde87d284ea3c9472c10f51028e05014a0
[ "MIT" ]
2
2021-03-19T07:37:57.000Z
2021-06-18T11:54:46.000Z
tests/test_status.py
ehdgua01/blocksync
da0198dde87d284ea3c9472c10f51028e05014a0
[ "MIT" ]
null
null
null
from blocksync._consts import ByteSizes from blocksync._status import Blocks def test_initialize_status(fake_status): # Expect: Set chunk size assert fake_status.chunk_size == fake_status.src_size // fake_status.workers def test_add_block(fake_status): # Expect: Add each blocks and calculate done block ...
30.590909
80
0.724368
0
0
0
0
0
0
0
0
324
0.240713
9da20747a22e24702a7eb51c79e588aff84309dd
275
py
Python
tests/helpers.py
hawkfish/sudoku
eaae1aa3080032266db0fcfc8a6520a9cb5690fe
[ "MIT" ]
null
null
null
tests/helpers.py
hawkfish/sudoku
eaae1aa3080032266db0fcfc8a6520a9cb5690fe
[ "MIT" ]
null
null
null
tests/helpers.py
hawkfish/sudoku
eaae1aa3080032266db0fcfc8a6520a9cb5690fe
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import os def readFixture(sdk): f = open(os.path.join('tests', 'fixtures', sdk), 'r') lines = f.readlines() f.close() return [ line.strip('\n') for line in lines] def valuesFromDisplay(display): return [value-1 for value in display]
21.153846
57
0.643636
0
0
0
0
0
0
0
0
42
0.152727
9da26db5109dcd203a39bfcab1fbaa5c755f0368
33,787
py
Python
Software/python/config_dialog.py
edavalosanaya/SKORE
72e742611ba96b0df542781ded0685f525bea82b
[ "MIT" ]
1
2020-09-20T19:00:17.000Z
2020-09-20T19:00:17.000Z
Software/python/config_dialog.py
MrCodingRobot/SKORE
72e742611ba96b0df542781ded0685f525bea82b
[ "MIT" ]
null
null
null
Software/python/config_dialog.py
MrCodingRobot/SKORE
72e742611ba96b0df542781ded0685f525bea82b
[ "MIT" ]
null
null
null
# General Utility Libraries import sys import os import warnings # PyQt5, GUI Library from PyQt5 import QtCore, QtGui, QtWidgets # Serial and Midi Port Library import rtmidi import serial import serial.tools.list_ports # SKORE Library from lib_skore import read_config, update_config import globals #----------------...
48.336195
184
0.671797
33,135
0.980703
0
0
0
0
0
0
6,610
0.195637
9da270a879210ead826c86bdc8c185c7e2c0effa
1,814
py
Python
valorant/caller.py
frissyn/valorant.py
49abceab5cc1f3af016ce0b1d253d10089aeb0b4
[ "MIT" ]
56
2021-01-22T01:48:23.000Z
2022-03-31T20:44:23.000Z
valorant/caller.py
Tominous/valorant.py
b462441ab4ab403123ad245cab30f3abbd891a66
[ "MIT" ]
20
2021-02-03T10:40:37.000Z
2022-03-24T11:23:57.000Z
valorant/caller.py
Tominous/valorant.py
b462441ab4ab403123ad245cab30f3abbd891a66
[ "MIT" ]
15
2021-03-24T01:17:58.000Z
2022-02-01T02:10:27.000Z
import requests from .values import ROUTES from .values import LOCALES from .values import REGIONS from .values import ENDPOINTS def value_check(*args): KEYS = ROUTES + LOCALES + REGIONS for arg in args: if arg not in KEYS: raise ValueError else: return True class W...
27.484848
85
0.555678
1,497
0.825248
0
0
0
0
0
0
290
0.159868
9da470ea36af0b767f746d020e41a7f0c5dba94a
153
py
Python
python/niveau1/2-Repetitions/6.py
ThomasProg/France-IOI
03ea502e03f686d74ecf31a17273aded7b8e8a1f
[ "MIT" ]
2
2022-02-13T13:35:13.000Z
2022-03-31T21:02:11.000Z
python/niveau1/2-Repetitions/6.py
ThomasProg/France-IOI
03ea502e03f686d74ecf31a17273aded7b8e8a1f
[ "MIT" ]
null
null
null
python/niveau1/2-Repetitions/6.py
ThomasProg/France-IOI
03ea502e03f686d74ecf31a17273aded7b8e8a1f
[ "MIT" ]
1
2020-11-15T15:21:24.000Z
2020-11-15T15:21:24.000Z
for i in range(30): print("a_", end="") print() for i in range(30): print("b_", end="") print() for i in range(30): print("c_", end="")
15.3
23
0.51634
0
0
0
0
0
0
0
0
18
0.117647
9da846794dabe811239a290251111e03ccfb593a
1,256
py
Python
test_LearnSubtitles.py
heitor31415/LearnSubtitles
153178ea11d700a49a1f3692de39e8fc81e3cc4e
[ "MIT" ]
8
2020-02-13T03:08:25.000Z
2021-01-11T20:28:39.000Z
test_LearnSubtitles.py
heitor31415/LearnSubtitles
153178ea11d700a49a1f3692de39e8fc81e3cc4e
[ "MIT" ]
1
2020-04-28T19:48:16.000Z
2020-04-29T12:28:15.000Z
test_LearnSubtitles.py
heitor31415/LearnSubtitles
153178ea11d700a49a1f3692de39e8fc81e3cc4e
[ "MIT" ]
1
2020-03-14T00:46:36.000Z
2020-03-14T00:46:36.000Z
import os import pytest from typing import Any, Callable, Dict, List import LearnSubtitles as ls def prepare(language: str) -> List: """ Create LearnSubtitles objects for every subtitle in folder 'language' """ test_dir = "testfiles/" + language subs = [ ls.LearnSubtitles(os.path.abspath(os.path...
26.723404
85
0.648089
0
0
0
0
0
0
0
0
260
0.206349
9daad46c18973b22ab6ea33d444cd0187d68fcac
2,455
py
Python
programs/graduation-project/featureselection.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
2
2017-02-19T15:11:06.000Z
2017-02-22T18:34:10.000Z
programs/graduation-project/featureselection.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
null
null
null
programs/graduation-project/featureselection.py
Dilmuratjan/MyProject
26f4ee708eb4a7ceef780842ad737fef64a39d7e
[ "WTFPL" ]
4
2017-02-26T08:10:30.000Z
2017-05-02T10:02:03.000Z
import pandas as pd import numpy as np from time import time import matplotlib.pyplot as plt from sklearn.ensemble import ExtraTreesClassifier train = pd.read_excel('stats.xls', sheet_name='train') test = pd.read_excel('stats.xls', sheet_name='test') array_train = train.values array_test = test.values X = array_trai...
27.277778
81
0.638697
0
0
0
0
0
0
0
0
1,662
0.675885
9dabb9b1903ea38cf40c186f6bcbd195fb25dff0
618
py
Python
logpot/admin/file.py
moremorefor/logpot
26a48766dc764f93aa29f6d949af8a05de5d9152
[ "MIT" ]
4
2016-08-31T08:03:09.000Z
2019-03-15T07:11:49.000Z
logpot/admin/file.py
moremorefor/logpot
26a48766dc764f93aa29f6d949af8a05de5d9152
[ "MIT" ]
4
2021-05-10T00:34:14.000Z
2022-03-11T23:22:06.000Z
logpot/admin/file.py
moremorefor/logpot
26a48766dc764f93aa29f6d949af8a05de5d9152
[ "MIT" ]
1
2017-08-08T22:51:13.000Z
2017-08-08T22:51:13.000Z
#-*- coding: utf-8 -*- from logpot.admin.base import AuthenticateView from logpot.utils import ImageUtil from flask import flash, redirect from flask_admin import expose from flask_admin.contrib.fileadmin import FileAdmin from flask_admin.babel import gettext import os import os.path as op from operator import itemg...
24.72
53
0.775081
259
0.419094
0
0
0
0
0
0
22
0.035599
9dabcfa6524e1e4a0e2b51dbe24a327024815ea3
24
py
Python
emailutil/__init__.py
cityofaustin/atd-utils-email
bcf2c55fe770745a2ed6da22e44971ef6ceaae37
[ "CC0-1.0" ]
null
null
null
emailutil/__init__.py
cityofaustin/atd-utils-email
bcf2c55fe770745a2ed6da22e44971ef6ceaae37
[ "CC0-1.0" ]
null
null
null
emailutil/__init__.py
cityofaustin/atd-utils-email
bcf2c55fe770745a2ed6da22e44971ef6ceaae37
[ "CC0-1.0" ]
null
null
null
from .emailutil import *
24
24
0.791667
0
0
0
0
0
0
0
0
0
0
9dacec32c244293fcf0c09720725cd6c562e10da
4,888
py
Python
fast_downloader_mt/main.py
Kirozen/fast-downloader
febdcc8b6a6ad3b8d263a8923b8f24e8402df618
[ "MIT" ]
null
null
null
fast_downloader_mt/main.py
Kirozen/fast-downloader
febdcc8b6a6ad3b8d263a8923b8f24e8402df618
[ "MIT" ]
null
null
null
fast_downloader_mt/main.py
Kirozen/fast-downloader
febdcc8b6a6ad3b8d263a8923b8f24e8402df618
[ "MIT" ]
null
null
null
from __future__ import annotations import multiprocessing import os import re import sys from concurrent.futures import ThreadPoolExecutor from dataclasses import dataclass, field from itertools import chain from pathlib import Path from urllib.parse import urlparse import click import requests from requests.models i...
28.091954
88
0.625818
263
0.053739
0
0
1,471
0.300572
0
0
401
0.081937
9dad12fdcaa78561145c587bd080d424b377a384
1,060
py
Python
backend/app/core/security.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
2
2021-11-13T08:05:14.000Z
2021-12-02T11:36:11.000Z
backend/app/core/security.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
44
2021-11-23T10:06:11.000Z
2021-12-18T07:23:22.000Z
backend/app/core/security.py
rufusnufus/BTSParking
3bb6e7fd20943f258e297428ab1624c4f2786444
[ "MIT" ]
null
null
null
import os import time from hashlib import sha256 import requests from dotenv import load_dotenv from fastapi.security import OAuth2PasswordBearer BASE_DIR = os.path.dirname(os.path.abspath(__file__)) load_dotenv(os.path.join(BASE_DIR, "../.env")) oauth2_scheme = OAuth2PasswordBearer(tokenUrl="api/v1/activate-login-c...
30.285714
84
0.724528
0
0
0
0
0
0
0
0
161
0.151887
9dad8057a50b53867020fcecaeb0676d2cfff102
4,362
py
Python
sitch/sitchlib/geo_correlator.py
codecuisine/sensor
06fb0908178af1ab673b95e7f435b873cc62e61b
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause" ]
68
2016-08-08T17:28:59.000Z
2021-11-26T09:31:52.000Z
sitch/sitchlib/geo_correlator.py
codecuisine/sensor
06fb0908178af1ab673b95e7f435b873cc62e61b
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause" ]
61
2016-08-20T21:01:01.000Z
2020-07-22T06:10:45.000Z
sitch/sitchlib/geo_correlator.py
codecuisine/sensor
06fb0908178af1ab673b95e7f435b873cc62e61b
[ "ECL-2.0", "Apache-2.0", "BSD-2-Clause" ]
40
2017-01-28T23:06:22.000Z
2021-08-13T15:09:43.000Z
"""Correlate based on geograpgic information.""" from alert_manager import AlertManager from utility import Utility class GeoCorrelator(object): """Geographic correlator.""" def __init__(self, device_id): """Initialize the Geographic Correlator.""" self.geo_anchor = {} self.threshold...
44.969072
208
0.570381
4,242
0.97249
0
0
2,058
0.471802
0
0
2,066
0.473636
9dadf1bb28dc34ec81f4c906780d3dcd3137e862
1,697
py
Python
grid_search_results_v1/get_vals_heatmap.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
1
2020-11-29T12:42:30.000Z
2020-11-29T12:42:30.000Z
grid_search_results_v1/get_vals_heatmap.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
null
null
null
grid_search_results_v1/get_vals_heatmap.py
malfarasplux/pnet2019
ae34d5c84fb4d3985634b237a14dfb69e98b8339
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt N =[20,40,50,75,100,150,200] scale = [0.0001, 0.001, 0.005, 0.01, 0.1, 1, 10] ...
38.568182
160
0.476134
0
0
0
0
0
0
0
0
186
0.109605
9daef14a7cdf5e935df51508fb1293fad577407c
72
py
Python
build/scripts-3.5/mooc_anon.py
acheamponge/mooc_anon
b06dec9c4c47011f69ff4f6e21a0f5862e2ffd5c
[ "MIT" ]
3
2019-07-08T01:16:57.000Z
2021-09-23T12:44:02.000Z
build/scripts-3.5/mooc_anon.py
acheamponge/mooc_anon
b06dec9c4c47011f69ff4f6e21a0f5862e2ffd5c
[ "MIT" ]
null
null
null
build/scripts-3.5/mooc_anon.py
acheamponge/mooc_anon
b06dec9c4c47011f69ff4f6e21a0f5862e2ffd5c
[ "MIT" ]
null
null
null
#!/usr/bin/env python print("hey there, this is my first pip package")
18
48
0.708333
0
0
0
0
0
0
0
0
62
0.861111
9daf2e07854e8ace58237146dcb7ca501dc5a1ae
111
py
Python
odata_query/django/__init__.py
itd-fsc/odata-query
7d5239b775633594ce52d4eda5754c2ad078eb75
[ "MIT" ]
26
2021-06-11T07:42:08.000Z
2022-02-16T04:42:45.000Z
odata_query/django/__init__.py
itd-fsc/odata-query
7d5239b775633594ce52d4eda5754c2ad078eb75
[ "MIT" ]
13
2021-08-07T21:38:22.000Z
2022-03-28T17:25:47.000Z
odata_query/django/__init__.py
itd-fsc/odata-query
7d5239b775633594ce52d4eda5754c2ad078eb75
[ "MIT" ]
6
2021-07-28T04:46:14.000Z
2022-03-15T08:22:19.000Z
from .django_q import AstToDjangoQVisitor from .django_q_ext import * from .shorthand import apply_odata_query
27.75
41
0.855856
0
0
0
0
0
0
0
0
0
0
9dafa0a196d3c478e9ef8c55c4f9dd2dd56b60ad
1,457
py
Python
_snippets/scrape_RAND_pdfs.py
vashu1/data_snippets
b0ae5230d60c2054c7b9278093533b7f71f3758b
[ "MIT" ]
1
2021-02-10T20:33:43.000Z
2021-02-10T20:33:43.000Z
_snippets/scrape_RAND_pdfs.py
vashu1/data_snippets
b0ae5230d60c2054c7b9278093533b7f71f3758b
[ "MIT" ]
null
null
null
_snippets/scrape_RAND_pdfs.py
vashu1/data_snippets
b0ae5230d60c2054c7b9278093533b7f71f3758b
[ "MIT" ]
null
null
null
# scrape articles from RAND site, see https://vashu11.livejournal.com/20523.html import re import requests from bs4 import BeautifulSoup import os content = ['https://www.rand.org/pubs/papers.html'] + ['https://www.rand.org/pubs/papers.{}.html'.format(i) for i in range(2, 108)] def get_articles(page): page = requ...
38.342105
180
0.577213
0
0
0
0
0
0
0
0
401
0.275223
9db042c12b1460a61eed0c0cb77f85501b0f72a1
215
py
Python
plugins/dbnd-snowflake/src/dbnd_snowflake/__init__.py
FHoffmannCode/dbnd
82beee1a8c752235bf21b4b0ceace5ab25410e52
[ "Apache-2.0" ]
null
null
null
plugins/dbnd-snowflake/src/dbnd_snowflake/__init__.py
FHoffmannCode/dbnd
82beee1a8c752235bf21b4b0ceace5ab25410e52
[ "Apache-2.0" ]
null
null
null
plugins/dbnd-snowflake/src/dbnd_snowflake/__init__.py
FHoffmannCode/dbnd
82beee1a8c752235bf21b4b0ceace5ab25410e52
[ "Apache-2.0" ]
null
null
null
from dbnd._core.commands.metrics import log_snowflake_table from dbnd_snowflake.snowflake_resources import log_snowflake_resource_usage __all__ = [ "log_snowflake_resource_usage", "log_snowflake_table", ]
23.888889
75
0.827907
0
0
0
0
0
0
0
0
51
0.237209
9db66809b3f7cfe04fff2e0d4fd9725d23130f54
2,422
py
Python
inputs/fino2_dats.py
a2edap/WE-Validate
6e4be8228c9b4f66fb1a056f7566030b79441f2e
[ "BSD-3-Clause" ]
1
2022-01-21T08:09:03.000Z
2022-01-21T08:09:03.000Z
inputs/fino2_dats.py
a2edap/WE-Validate
6e4be8228c9b4f66fb1a056f7566030b79441f2e
[ "BSD-3-Clause" ]
null
null
null
inputs/fino2_dats.py
a2edap/WE-Validate
6e4be8228c9b4f66fb1a056f7566030b79441f2e
[ "BSD-3-Clause" ]
1
2021-06-14T09:32:36.000Z
2021-06-14T09:32:36.000Z
# A parser for multiple FINO2 .dat files in a directory. import os import pathlib import pandas as pd import numpy as np import glob import sys class fino2_dats: """FINO2 data class """ def __init__(self, info, conf): self.path = os.path.join( (pathlib.Path(os.getcwd()).parent), str...
31.051282
78
0.514038
2,274
0.938893
0
0
0
0
0
0
815
0.336499
9db67e536e2a5337dee11670942d6aa03db5b908
2,481
py
Python
bin/ess/dependencies.py
clu3bot/cora
de4d1af983c135184ebaf557271fa14c7c0e1849
[ "MIT" ]
null
null
null
bin/ess/dependencies.py
clu3bot/cora
de4d1af983c135184ebaf557271fa14c7c0e1849
[ "MIT" ]
null
null
null
bin/ess/dependencies.py
clu3bot/cora
de4d1af983c135184ebaf557271fa14c7c0e1849
[ "MIT" ]
null
null
null
import subprocess as sp import os import time import platform from os.path import exists #colar vars class color: lightblue='\033[1;34m' #light blue lightred='\033[1;31m' #light red lightgreen='\033[1;32m' #lightgreen red='\033[0;31m' #red yellow='\033[1;33m' #yellow none='\033[0m' #no color ...
20.675
84
0.584442
442
0.178154
0
0
0
0
0
0
738
0.297461
9db6de217e5adf7d8e64871e558fa7b849812773
3,880
py
Python
calculate_Total-Hetero.py
evodify/population-genetic-analyses
5295f9d68736ac02fc5f3ece43dadd5bf4e98e6f
[ "MIT" ]
3
2018-01-31T09:57:10.000Z
2021-02-03T18:34:01.000Z
calculate_Total-Hetero.py
evodify/population-genetic-analyses
5295f9d68736ac02fc5f3ece43dadd5bf4e98e6f
[ "MIT" ]
null
null
null
calculate_Total-Hetero.py
evodify/population-genetic-analyses
5295f9d68736ac02fc5f3ece43dadd5bf4e98e6f
[ "MIT" ]
1
2019-09-02T06:13:29.000Z
2019-09-02T06:13:29.000Z
#! /usr/bin/env python ''' This script calculates total heterozygosity. #Example input: CHROM POS REF sample1 sample2 sample3 sample4 sample5 sample6 sample7 sample8 chr_1 1 A W N N A N N N N chr_1 2 C Y Y N C C N C N chr_1 3 C N C N C C C C C chr_1 4 ...
30.077519
130
0.549227
0
0
0
0
0
0
0
0
2,586
0.666495
9db72ff4ce32323ddaf8107b708ab0ac40987bfc
2,748
py
Python
src/bfh.py
Pella86/Snake4d
cdf3773b42efc888affa33dd22ebe56a48f6d979
[ "MIT" ]
79
2018-05-23T09:39:00.000Z
2021-11-29T02:26:07.000Z
src/bfh.py
Pella86/Snake4d
cdf3773b42efc888affa33dd22ebe56a48f6d979
[ "MIT" ]
1
2020-06-13T17:57:14.000Z
2020-06-16T15:53:40.000Z
src/bfh.py
Pella86/Snake4d
cdf3773b42efc888affa33dd22ebe56a48f6d979
[ "MIT" ]
6
2018-06-28T13:03:38.000Z
2021-03-06T14:24:32.000Z
# -*- coding: utf-8 -*- """ Created on Wed Jun 27 17:24:58 2018 @author: Mauro """ #============================================================================== # Imports #============================================================================== import struct #=================================================...
26.941176
79
0.409025
1,734
0.631004
0
0
0
0
0
0
1,423
0.517831
9db736834f35ad283117ff978c76815cc0ba771c
8,726
py
Python
bin/read_analysis.py
louperelo/longmetarg
026b66c3621a4bcc71f5bc8a73955faf57978985
[ "MIT" ]
null
null
null
bin/read_analysis.py
louperelo/longmetarg
026b66c3621a4bcc71f5bc8a73955faf57978985
[ "MIT" ]
null
null
null
bin/read_analysis.py
louperelo/longmetarg
026b66c3621a4bcc71f5bc8a73955faf57978985
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pandas as pd from scipy import stats import numpy as np #import seaborn as sns #import matplotlib.pyplot as plt import math from Bio import SeqIO import io import re import pysam from functools import reduce import argparse import os parser = argparse.ArgumentParser() parser.add_argum...
47.68306
180
0.655168
0
0
0
0
0
0
0
0
4,503
0.516044
9db737d0aa2bbc9904ff5f6209cdc235a2493a9c
6,315
py
Python
parkinglot/admin.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
1
2018-08-02T04:00:44.000Z
2018-08-02T04:00:44.000Z
parkinglot/admin.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
null
null
null
parkinglot/admin.py
YangWanjun/areaparking
b08bc9b8f8d5f602d823115263b9d040edb9f245
[ "Apache-2.0" ]
null
null
null
import datetime from django.contrib import admin from django.core.exceptions import ObjectDoesNotExist from django.db.models import Max from . import models, forms from address.biz import geocode from utils import common from utils.django_base import BaseAdmin # Register your models here. class ParkingPositionInlin...
33.951613
133
0.62977
5,525
0.857254
0
0
4,728
0.733592
0
0
1,433
0.222343
9db76eb5840b9b7ac5d4ffae358c55f69c7c5da4
965
py
Python
graficas.py
dianuchitop/el26
e84bb35ca9d6a603d515a624a85dae27cd4d10f2
[ "MIT" ]
null
null
null
graficas.py
dianuchitop/el26
e84bb35ca9d6a603d515a624a85dae27cd4d10f2
[ "MIT" ]
null
null
null
graficas.py
dianuchitop/el26
e84bb35ca9d6a603d515a624a85dae27cd4d10f2
[ "MIT" ]
null
null
null
import matplotlib import matplotlib.pyplot as plt import numpy as np filenames=["euler.dat","rk4.dat","leapfrog.dat"] fig, axs = plt.subplots(nrows=3, ncols=3) ax=axs[0][0] ax.set_title('Euler') ax=axs[0][1] ax.set_title('RK4') ax=axs[0][2] ax.set_title('Leap_frog') for i in range(3): f=open(filenames[i],"r") s...
24.74359
48
0.635233
0
0
0
0
0
0
0
0
127
0.131606
9db821a6f16092b02b4cd4951deab910f4dfd292
565
py
Python
__scraping__/zipnet.in - requests/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
140
2017-02-21T22:49:04.000Z
2022-03-22T17:51:58.000Z
__scraping__/zipnet.in - requests/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
5
2017-12-02T19:55:00.000Z
2021-09-22T23:18:39.000Z
__scraping__/zipnet.in - requests/main.py
whitmans-max/python-examples
881a8f23f0eebc76816a0078e19951893f0daaaa
[ "MIT" ]
79
2017-01-25T10:53:33.000Z
2022-03-11T16:13:57.000Z
import requests from bs4 import BeautifulSoup from time import sleep url = "http://zipnet.in/index.php?page=missing_person_search&criteria=browse_all&Page_No=1" r = requests.get(url) soup = BeautifulSoup(r.content, 'html.parser') all_tables = soup.findAll('table') for table in all_tables: print('--- table ---')...
26.904762
91
0.660177
0
0
0
0
0
0
0
0
128
0.226549
9dbc6591cdea251b119f8bcead36767b18ac8b75
4,654
py
Python
mailpile/plugins/contacts.py
k0nsl/Mailpile
556f5f9040c4e01b005b4d633f3213668a474936
[ "Apache-2.0" ]
null
null
null
mailpile/plugins/contacts.py
k0nsl/Mailpile
556f5f9040c4e01b005b4d633f3213668a474936
[ "Apache-2.0" ]
null
null
null
mailpile/plugins/contacts.py
k0nsl/Mailpile
556f5f9040c4e01b005b4d633f3213668a474936
[ "Apache-2.0" ]
null
null
null
import mailpile.plugins from mailpile.commands import Command from mailpile.mailutils import Email, ExtractEmails from mailpile.util import * class VCard(Command): """Add/remove/list/edit vcards""" ORDER = ('Internals', 6) KIND = '' SYNOPSIS = '<nickname>' def command(self, save=True): session, config =...
30.220779
84
0.613666
4,375
0.940052
0
0
0
0
0
0
687
0.147615
9dbe26545533c7c7d397d2847ba2a1eeca8ad8ef
1,663
py
Python
hw2/codes/plot.py
Trinkle23897/Artificial-Neural-Network-THU-2018
3326ed131298caaaf3fd0b6af80de37fd1ff9526
[ "MIT" ]
38
2019-01-23T07:14:19.000Z
2022-03-07T06:03:21.000Z
hw2/codes/plot.py
ywythu/Artificial-Neural-Network-THU-2018
3326ed131298caaaf3fd0b6af80de37fd1ff9526
[ "MIT" ]
null
null
null
hw2/codes/plot.py
ywythu/Artificial-Neural-Network-THU-2018
3326ed131298caaaf3fd0b6af80de37fd1ff9526
[ "MIT" ]
17
2019-03-30T06:33:06.000Z
2021-12-24T10:42:39.000Z
import numpy as np from pylab import * D = 10 acc1 = np.load('res/small/acc.npy').reshape(D, -1).mean(axis=0) loss1 = np.load('res/small/loss.npy').reshape(D, -1).mean(axis=0) acc2 = np.load('res/large/acc.npy').reshape(D, -1).mean(axis=0) loss2 = np.load('res/large/loss.npy').reshape(D, -1).mean(axis=0) cut = int(acc...
41.575
91
0.654841
0
0
0
0
0
0
0
0
821
0.493686
9dbe2a0458905fed950a4384ff34ad0dc77f394d
696
py
Python
app/helpers/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
1
2020-07-28T13:28:42.000Z
2020-07-28T13:28:42.000Z
app/helpers/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
null
null
null
app/helpers/__init__.py
jaywonder20/Flask_Api_Starter
d3cf69f4742923737e826261f5e737f00d1c6270
[ "MIT" ]
null
null
null
from flask_restful import reqparse def send_api_response(response_code, response_message, http_status, response_data={}): if http_status not in [200, 201]: return {'responseCode': response_code, 'responseMessage': response_message }, int(http_status), \ {"Acc...
33.142857
86
0.616379
0
0
0
0
0
0
0
0
171
0.24569
9dc09ed0aa1f145f5e2a90e86cf3072696bbd4e9
3,435
py
Python
tests/fakedb.py
justinfay/dbkit
2aef6376a60965d7820c91692046f4bcf7d43640
[ "MIT" ]
4
2016-02-08T05:43:39.000Z
2020-08-25T21:37:55.000Z
tests/fakedb.py
justinfay/dbkit
2aef6376a60965d7820c91692046f4bcf7d43640
[ "MIT" ]
8
2015-04-24T13:39:42.000Z
2016-04-07T01:58:53.000Z
tests/fakedb.py
justinfay/dbkit
2aef6376a60965d7820c91692046f4bcf7d43640
[ "MIT" ]
null
null
null
""" A fake DB-API 2 driver. """ # DB names used to trigger certain behaviours. INVALID_DB = 'invalid-db' INVALID_CURSOR = 'invalid-cursor' HAPPY_OUT = 'happy-out' apilevel = '2.0' threadsafety = 2 paramstyle = 'qmark' def connect(database): return Connection(database) class Connection(object): """ A f...
22.598684
71
0.604076
3,122
0.908879
0
0
0
0
0
0
410
0.11936
9dc60e93e26c2a9f12204a366a70cced0bf9b339
4,081
py
Python
chapter_3_featurization/text_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
1
2020-03-05T01:19:17.000Z
2020-03-05T01:19:17.000Z
chapter_3_featurization/text_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
chapter_3_featurization/text_features.py
fancyerii/voicebook
def82da8577086d0361643a05fec2463006533a9
[ "Apache-2.0" ]
null
null
null
''' ================================================ ## VOICEBOOK REPOSITORY ## ================================================ repository name: voicebook repository version: 1.0 repository link: https://github.com/jim-schwoebel/voicebook author: Jim Schwoebel author contact: js@neur...
34.584746
121
0.639304
0
0
0
0
0
0
0
0
2,880
0.705709
9dc760639ffd67ca1391d622bcca50ed7b1b5700
5,178
py
Python
neurotin/logs/scores.py
mscheltienne/neurotin-analysis
841b7d86c0c990169cceb02b40d9eb6bd0d07612
[ "MIT" ]
null
null
null
neurotin/logs/scores.py
mscheltienne/neurotin-analysis
841b7d86c0c990169cceb02b40d9eb6bd0d07612
[ "MIT" ]
null
null
null
neurotin/logs/scores.py
mscheltienne/neurotin-analysis
841b7d86c0c990169cceb02b40d9eb6bd0d07612
[ "MIT" ]
null
null
null
from typing import List, Tuple, Union import pandas as pd import seaborn as sns from matplotlib import pyplot as plt from ..utils._checks import ( _check_participant, _check_participants, _check_type, ) from ..utils._docs import fill_doc @fill_doc def boxplot_scores_evolution( csv, participant: ...
28.295082
79
0.609888
0
0
0
0
4,457
0.860757
0
0
2,380
0.459637
9dcad228e81ec6b0f9a3bb86c1710900d1f1972c
1,755
py
Python
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/22.08.2020/project/everland.py
kzborisov/SoftUni
ccb2b8850adc79bfb2652a45124c3ff11183412e
[ "MIT" ]
1
2021-02-07T07:51:12.000Z
2021-02-07T07:51:12.000Z
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/22.08.2020/project/everland.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
3. Python Advanced (September 2021)/3.2 Python OOP (October 2021)/24. Exam Preparation/22.08.2020/project/everland.py
kzborisov/softuni
9c5b45c74fa7d9748e9b3ea65a5ae4e15c142751
[ "MIT" ]
null
null
null
class Everland: def __init__(self): self.rooms = [] def add_room(self, room): self.rooms.append(room) def get_monthly_consumptions(self): total_consumption = 0 for room in self.rooms: total_consumption += room.expenses + room.room_cost return f"Monthly c...
39
100
0.520228
1,754
0.99943
0
0
0
0
0
0
513
0.292308
9dcae389894300bd7f91c57ac11fc79ac0e2fd30
14,770
py
Python
backend/core/migrations/0001_initial.py
mashuq/academia
571b3db58de4a70210ebd9d92c0f152016aec861
[ "Unlicense" ]
null
null
null
backend/core/migrations/0001_initial.py
mashuq/academia
571b3db58de4a70210ebd9d92c0f152016aec861
[ "Unlicense" ]
null
null
null
backend/core/migrations/0001_initial.py
mashuq/academia
571b3db58de4a70210ebd9d92c0f152016aec861
[ "Unlicense" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-25 05:46 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('cont...
47.491961
207
0.561882
14,611
0.989235
0
0
0
0
0
0
2,499
0.169194
9dcd01c7a81f81cad912ec87f997c4e5ba58f9bb
2,448
py
Python
minifold/log.py
nokia/minifold
3687d32ab6119dc8293ae370c8c4ba9bbbb47deb
[ "BSD-3-Clause" ]
15
2018-09-03T09:40:59.000Z
2021-07-16T16:14:46.000Z
src/log.py
Infinite-Blue-1042/minifold
cd0aa9207f9e1819ed2ecbb24373cdcfe27abd16
[ "BSD-3-Clause" ]
null
null
null
src/log.py
Infinite-Blue-1042/minifold
cd0aa9207f9e1819ed2ecbb24373cdcfe27abd16
[ "BSD-3-Clause" ]
8
2019-01-25T07:18:59.000Z
2021-04-07T17:54:54.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # This file is part of the minifold project. # https://github.com/nokia/minifold __author__ = "Marc-Olivier Buob" __maintainer__ = "Marc-Olivier Buob" __email__ = "[email protected]" __copyright__ = "Copyright (C) 2018, Nokia" __license__ ...
24
114
0.562908
1,818
0.742647
0
0
1,319
0.538807
0
0
503
0.205474
9dcdcb702db69a33b8fb22a29cccef585723a801
4,515
py
Python
cardgame_channels_app/migrations/0001_initial.py
cyface/cardgame_channels
22f2bef190ee20999eae27e6aa9ce138a78ae47f
[ "MIT" ]
null
null
null
cardgame_channels_app/migrations/0001_initial.py
cyface/cardgame_channels
22f2bef190ee20999eae27e6aa9ce138a78ae47f
[ "MIT" ]
null
null
null
cardgame_channels_app/migrations/0001_initial.py
cyface/cardgame_channels
22f2bef190ee20999eae27e6aa9ce138a78ae47f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-18 11:31 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.Crea...
43.834951
169
0.575858
4,324
0.957697
0
0
0
0
0
0
1,066
0.236102
9dce2d32fa35d3b007796ab403b5019d5baeeffb
2,820
py
Python
data_collection/omscs_website/omscs_cleaner.py
yashchitalia/jack-holmes
1ce3c65c1477390fb15d99a14f608f62745548b1
[ "Apache-2.0" ]
1
2017-03-30T02:25:18.000Z
2017-03-30T02:25:18.000Z
data_collection/omscs_website/omscs_cleaner.py
yashchitalia/jack-holmes
1ce3c65c1477390fb15d99a14f608f62745548b1
[ "Apache-2.0" ]
null
null
null
data_collection/omscs_website/omscs_cleaner.py
yashchitalia/jack-holmes
1ce3c65c1477390fb15d99a14f608f62745548b1
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import re import urllib import pickle as pkl def cleanhtml(raw_html): cleanr = re.compile('<.*?>') cleantext = re.sub(cleanr, '', raw_html) cleanr_still = re.compile('\\xa0') cleanertext = re.sub(cleanr_still, '', cleantext) cleanr_even = re.compile('\\u2019s') cle...
40.285714
91
0.575887
0
0
0
0
0
0
0
0
365
0.129433
9dce34cc1f5685467f230a6aaddab0a3ca10dd09
1,116
py
Python
testinfra/test_hypervisor-runc.py
devbox-tools/sfc
0a5a9c3db165b35506f84d4c2dbfc1dace3fcea1
[ "Apache-2.0" ]
1
2019-02-26T13:25:17.000Z
2019-02-26T13:25:17.000Z
testinfra/test_hypervisor-runc.py
devbox-tools/sfc
0a5a9c3db165b35506f84d4c2dbfc1dace3fcea1
[ "Apache-2.0" ]
null
null
null
testinfra/test_hypervisor-runc.py
devbox-tools/sfc
0a5a9c3db165b35506f84d4c2dbfc1dace3fcea1
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
39.857143
75
0.713262
542
0.485663
0
0
0
0
0
0
725
0.649642
9dcee3a8fc687322519c4ee6dd19ea787ec8d273
280
py
Python
Frameworks/urls.py
MiniJez/TP_Django
e7540f3178d44efeab69a8c8bea14a70fdaa9b4e
[ "MIT" ]
null
null
null
Frameworks/urls.py
MiniJez/TP_Django
e7540f3178d44efeab69a8c8bea14a70fdaa9b4e
[ "MIT" ]
null
null
null
Frameworks/urls.py
MiniJez/TP_Django
e7540f3178d44efeab69a8c8bea14a70fdaa9b4e
[ "MIT" ]
null
null
null
from django.urls import path from .views import index, create, delete, update urlpatterns = [ path('', index, name='index'), path('create/', create, name='create'), path('delete/<int:pk>', delete, name='delete'), path('update/<int:pk>', update, name='update'), ]
28
51
0.639286
0
0
0
0
0
0
0
0
76
0.271429
9dd02fb84f2d21edf2c3f482fb528f7ff864783d
1,831
py
Python
scrape.py
valvoda/holjplus
6a214911b477adf1253b43e46f7f5afc3076a86a
[ "MIT" ]
null
null
null
scrape.py
valvoda/holjplus
6a214911b477adf1253b43e46f7f5afc3076a86a
[ "MIT" ]
null
null
null
scrape.py
valvoda/holjplus
6a214911b477adf1253b43e46f7f5afc3076a86a
[ "MIT" ]
null
null
null
""" Adapted from https://realpython.com/python-web-scraping-practical-introduction/ for the purpose of scraping https://publications.parliament.uk/pa/ld/ldjudgmt.HTML to create an expanded HOLJ+ corpus """ import requests from requests import get from requests.exceptions import RequestException from contextlib import ...
30.516667
84
0.616057
1,158
0.632441
0
0
0
0
0
0
860
0.469689
9dd06c5c9ed12f49b25dc9756a8a419ae3530b18
1,881
py
Python
emotional_ai/model.py
fuluny/Emotional-AI
1372933ec410f72cd500513ea560f43167382e34
[ "MIT" ]
null
null
null
emotional_ai/model.py
fuluny/Emotional-AI
1372933ec410f72cd500513ea560f43167382e34
[ "MIT" ]
null
null
null
emotional_ai/model.py
fuluny/Emotional-AI
1372933ec410f72cd500513ea560f43167382e34
[ "MIT" ]
null
null
null
# #!/usr/bin/python import os import numpy as np import pandas as pd from keras.models import load_model from keras.models import Sequential from keras.utils import np_utils from keras.layers.core import Dense, Activation, Dropout from keras import optimizers from matplotlib import pyplot as plt print('Loading data...
25.767123
81
0.747475
0
0
0
0
0
0
0
0
499
0.265284
9dd27bec72ba1ef4b5afcb916eaaa9109718bd5c
2,487
py
Python
detect_port_services.py
amir78729/penetration-test-project
c85376303ce0451e2e3a3150617484d5e6837168
[ "MIT" ]
1
2022-02-04T19:29:18.000Z
2022-02-04T19:29:18.000Z
detect_port_services.py
amir78729/penetration-test-project
c85376303ce0451e2e3a3150617484d5e6837168
[ "MIT" ]
null
null
null
detect_port_services.py
amir78729/penetration-test-project
c85376303ce0451e2e3a3150617484d5e6837168
[ "MIT" ]
null
null
null
from socket import socket, gaierror, getservbyport, AF_INET, SOCK_STREAM, setdefaulttimeout from tqdm import tqdm from datetime import datetime def detect_port_services(ip, range_start, range_end): port_services = {} port_detecting_progress = tqdm(range(range_start, range_end + 1)) try: for port i...
38.859375
115
0.556494
0
0
0
0
0
0
0
0
508
0.20418
9dd2a344fe4c04f0564d9da26c93b7f70200954e
14,829
py
Python
zvdata/apps/data_app.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
1
2019-10-28T08:03:26.000Z
2019-10-28T08:03:26.000Z
zvdata/apps/data_app.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
null
null
null
zvdata/apps/data_app.py
freedom6xiaobai/zvt
f4ba510a30f1014cc0e48b85370b0d3936bd851a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json from collections import OrderedDict from typing import List import dash_core_components as dcc import dash_html_components as html import dash_table import pandas as pd from dash import dash from dash.dependencies import Input, Output, State from zvdata import IntervalLevel from zv...
36.796526
120
0.52458
0
0
0
0
8,032
0.541641
0
0
3,243
0.218693
9dd308c092689ec19be480b950fd1043adb5873d
1,139
py
Python
api-gateway/fcgi/handwritten/python/fcgi_codec.py
intel/cloud-client-ai-service-framework
01676b08878f7a58201854aedb181134eafef7a2
[ "Apache-2.0" ]
3
2022-03-25T17:28:53.000Z
2022-03-29T03:30:25.000Z
api-gateway/fcgi/handwritten/python/fcgi_codec.py
intel/cloud-client-ai-service-framework
01676b08878f7a58201854aedb181134eafef7a2
[ "Apache-2.0" ]
null
null
null
api-gateway/fcgi/handwritten/python/fcgi_codec.py
intel/cloud-client-ai-service-framework
01676b08878f7a58201854aedb181134eafef7a2
[ "Apache-2.0" ]
1
2022-03-27T12:44:19.000Z
2022-03-27T12:44:19.000Z
import numpy as np class CTCCodec(object): """ Convert index to label """ def __init__(self, char_label, top_k): # char_label : all the characters. self.top_k = top_k self.index = {} list_character = list(char_label) for i, char in enumerate(list_character): ...
30.783784
127
0.600527
1,117
0.980685
0
0
0
0
0
0
175
0.153644
9dd3506fa61a6efdbedcfd729d5128ff929686bf
4,333
py
Python
src/hmmmr/non_batched_functions.py
carojasq/HMMMR
f94846d8f02fe8993a0e5fb55e936dd1c1596187
[ "MIT" ]
null
null
null
src/hmmmr/non_batched_functions.py
carojasq/HMMMR
f94846d8f02fe8993a0e5fb55e936dd1c1596187
[ "MIT" ]
1
2019-11-01T08:32:04.000Z
2019-11-01T08:32:04.000Z
src/hmmmr/non_batched_functions.py
carojasq/HMMMR
f94846d8f02fe8993a0e5fb55e936dd1c1596187
[ "MIT" ]
1
2019-04-05T00:06:31.000Z
2019-04-05T00:06:31.000Z
from common_libs import * from cublas_functions import * linalg.init() def cublas_calculate_transpose_non_batched(h, a_gpu): cublas_transpose = get_single_transpose_function(a_gpu) m, k = a_gpu.shape at_gpu = gpuarray.empty((k, m), a_gpu.dtype) k, n = at_gpu.shape # Calculate transpose transa =...
41.663462
120
0.686591
0
0
0
0
0
0
0
0
728
0.168013
9dd7404e8264756d1a9d92df88241f2bdb03e559
793
py
Python
tools/run/mrcnnalt.py
MartinPlantinga/TomatoNet
52f3f993665865d1e74b24c43bf4a722c470eac1
[ "BSD-2-Clause" ]
1
2022-03-13T23:52:22.000Z
2022-03-13T23:52:22.000Z
tools/run/mrcnnalt.py
MartinPlantinga/TomatoNet
52f3f993665865d1e74b24c43bf4a722c470eac1
[ "BSD-2-Clause" ]
null
null
null
tools/run/mrcnnalt.py
MartinPlantinga/TomatoNet
52f3f993665865d1e74b24c43bf4a722c470eac1
[ "BSD-2-Clause" ]
null
null
null
import os from time import localtime, strftime pwd = os.curdir root_dir = pwd + './../' weights_path = '{}data/imagenet_models/VGG16.v2.caffemodel'.format(root_dir) cfg_path = '{}experiments/cfgs/mask_rcnn_alt_opt.yml'.format(root_dir) log_file="{}experiments/logs/mask_rcnn_alt_opt_{}".format(root_dir, strfti...
41.736842
158
0.696091
0
0
0
0
0
0
0
0
415
0.523329
9dd7a2e49e2ed72a4a6612efc5a036e4272aa367
1,325
py
Python
toontown/ai/DistributedTrashcanZeroMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
99
2019-11-02T22:25:00.000Z
2022-02-03T03:48:00.000Z
toontown/ai/DistributedTrashcanZeroMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
42
2019-11-03T05:31:08.000Z
2022-03-16T22:50:32.000Z
toontown/ai/DistributedTrashcanZeroMgr.py
TheFamiliarScoot/open-toontown
678313033174ea7d08e5c2823bd7b473701ff547
[ "BSD-3-Clause" ]
57
2019-11-03T07:47:37.000Z
2022-03-22T00:41:49.000Z
from direct.directnotify import DirectNotifyGlobal from direct.distributed import DistributedObject from toontown.ai import DistributedPhaseEventMgr class DistributedTrashcanZeroMgr(DistributedPhaseEventMgr.DistributedPhaseEventMgr): neverDisable = 1 notify = DirectNotifyGlobal.directNotify.newCategory('Distri...
42.741935
87
0.768302
1,174
0.886038
0
0
0
0
0
0
159
0.12
9dd862d583434b6ed73a9e6519551c5f6c54561e
1,575
py
Python
examples/run_fieldtrip_IF.py
annapasca/ephypype
6dbacdd6913234a28b690b401862ff062accecc7
[ "BSD-3-Clause" ]
18
2018-04-18T12:14:52.000Z
2022-02-25T19:31:44.000Z
examples/run_fieldtrip_IF.py
annapasca/ephypype
6dbacdd6913234a28b690b401862ff062accecc7
[ "BSD-3-Clause" ]
106
2017-12-09T13:34:30.000Z
2022-03-12T01:02:17.000Z
examples/run_fieldtrip_IF.py
annapasca/ephypype
6dbacdd6913234a28b690b401862ff062accecc7
[ "BSD-3-Clause" ]
13
2017-05-28T20:38:56.000Z
2022-03-06T15:58:02.000Z
""" .. _ft_seeg_example: ========================================= Apply bipolar montage to depth electrodes ========================================= This scripts shows a very simple example on how to create an Interface wrapping a desired function of a Matlab toolbox (|FieldTrip|). .. |FieldTrip| raw:: html <a...
32.8125
95
0.665397
0
0
0
0
0
0
0
0
987
0.626667
9dd8b07faafc812e62e163fe5ae0d1616164fd3e
2,224
py
Python
tree.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
tree.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
tree.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
1
2021-12-20T12:03:49.000Z
2021-12-20T12:03:49.000Z
# Simple tree structure import numpy as np import math class Node: ''' Class defining a node for the game tree. Nodes store their position on the board, their reward, their visits and their children. ''' def __init__(self, parent, boardposition, current_player): self.parent = parent ...
35.870968
87
0.616007
2,167
0.974371
0
0
0
0
0
0
658
0.295863
9dd8bbfb2717a06b4b3ec45eb064716d069fb7b0
269
py
Python
vibrant_frequencies/cli.py
garstka/vibrant-frequencies
e237bf97089c87ca3e9335ba0d2abd09756b98fc
[ "MIT" ]
2
2019-01-31T15:13:37.000Z
2020-11-19T03:24:12.000Z
vibrant_frequencies/cli.py
garstka/vibrant-frequencies
e237bf97089c87ca3e9335ba0d2abd09756b98fc
[ "MIT" ]
null
null
null
vibrant_frequencies/cli.py
garstka/vibrant-frequencies
e237bf97089c87ca3e9335ba0d2abd09756b98fc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Console script for vibrant_frequencies.""" import logging import click from .prototype import visualize @click.command() def main(): logging.getLogger('').setLevel(logging.WARN) visualize() if __name__ == "__main__": main()
14.944444
48
0.67658
0
0
0
0
93
0.345725
0
0
80
0.297398
9dda3faed30d9ee945694fcad8f057ec177bc507
6,568
py
Python
rak_net/protocol/handler.py
L0RD-ZER0/aio-rak-net
0ec0b6ac4daf6a4b146ac94ac2d0313c13975363
[ "MIT" ]
1
2021-12-02T04:37:08.000Z
2021-12-02T04:37:08.000Z
rak_net/protocol/handler.py
L0RD-ZER0/aio-rak-net
0ec0b6ac4daf6a4b146ac94ac2d0313c13975363
[ "MIT" ]
null
null
null
rak_net/protocol/handler.py
L0RD-ZER0/aio-rak-net
0ec0b6ac4daf6a4b146ac94ac2d0313c13975363
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import TYPE_CHECKING from .packet import ( ConnectionRequest, ConnectionRequestAccepted, NewIncomingConnection, OfflinePing, OfflinePong, OnlinePing, OnlinePong, OpenConnectionRequest1, OpenConnectionReply1, OpenConnectionRequest2, ...
40.294479
134
0.676309
6,037
0.919153
0
0
0
0
5,754
0.876066
2,001
0.304659