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
40b2c91082ea21890c36b449104ec87a0b8d9b4b
266
py
Python
tests/test_app/rest_app/rest_app/controllers/config_controller.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
12
2018-09-06T06:14:59.000Z
2021-04-18T06:30:44.000Z
tests/test_app/rest_app/rest_app/controllers/config_controller.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
null
null
null
tests/test_app/rest_app/rest_app/controllers/config_controller.py
jadbin/guniflask
36253a962c056abf34884263c6919b02b921ad9c
[ "MIT" ]
2
2019-09-08T22:01:26.000Z
2020-08-03T07:23:29.000Z
from guniflask.config import settings from guniflask.web import blueprint, get_route @blueprint class ConfigController: def __init__(self): pass @get_route('/settings/<name>') def get_setting(self, name): return {name: settings[name]}
20.461538
46
0.703008
167
0.62782
0
0
178
0.669173
0
0
18
0.067669
40b4eef32d47c4960807376665ec44995d7e4116
14,062
py
Python
model/_UNet_trainer.py
yasahi-hpc/AMRNet
5858d464bdfe409a5ab50889104768dda3c70508
[ "MIT" ]
null
null
null
model/_UNet_trainer.py
yasahi-hpc/AMRNet
5858d464bdfe409a5ab50889104768dda3c70508
[ "MIT" ]
null
null
null
model/_UNet_trainer.py
yasahi-hpc/AMRNet
5858d464bdfe409a5ab50889104768dda3c70508
[ "MIT" ]
null
null
null
from ._base_trainer import _BaseTrainer, MeasureMemory import pathlib import torch.multiprocessing as mp import torch from torch import nn import horovod.torch as hvd import numpy as np import xarray as xr import itertools from .flow_dataset import FlowDataset from .unet import UNet import sys from .visualization impor...
39.061111
147
0.595435
13,689
0.973475
0
0
0
0
0
0
2,514
0.17878
40b61330deb7990837ff7794fbef7bc995f41538
5,557
py
Python
agents/vpg_policy_translation_with_dislocation.py
pjarosik/rlus
5804a37ed9221362c470ad4eb0e6b03e533bf1d8
[ "Apache-2.0" ]
3
2020-09-20T20:02:43.000Z
2022-01-14T09:37:46.000Z
agents/vpg_policy_translation_with_dislocation.py
pjarosik/rlus
5804a37ed9221362c470ad4eb0e6b03e533bf1d8
[ "Apache-2.0" ]
null
null
null
agents/vpg_policy_translation_with_dislocation.py
pjarosik/rlus
5804a37ed9221362c470ad4eb0e6b03e533bf1d8
[ "Apache-2.0" ]
1
2021-06-29T07:02:19.000Z
2021-06-29T07:02:19.000Z
from spinup import vpg import tensorflow as tf import numpy as np from gym.spaces import Box, Discrete from envs.focal_point_task_us_env import FocalPointTaskUsEnv from envs.phantom import ( ScatterersPhantom, Ball, Teddy ) from envs.imaging import ImagingSystem, Probe from envs.generator import ConstPhanto...
31.936782
81
0.620659
0
0
0
0
0
0
0
0
535
0.096275
40b7ac2bc7f8f3621a710ed64cc2cd9096f796f1
791
py
Python
lib/losses/dice.py
zongdaoming/CMT
fc3773bb6c6b1ab091688addfffca3fb1e382ae4
[ "MIT" ]
3
2021-05-10T20:12:23.000Z
2021-11-24T18:01:13.000Z
lib/losses/dice.py
zongdaoming/CMT
fc3773bb6c6b1ab091688addfffca3fb1e382ae4
[ "MIT" ]
null
null
null
lib/losses/dice.py
zongdaoming/CMT
fc3773bb6c6b1ab091688addfffca3fb1e382ae4
[ "MIT" ]
null
null
null
import sys,os sys.path.append('/home/zongdaoming/cv/multi-organ/multi-organ-ijcai') from lib.losses.BaseClass import _AbstractDiceLoss from lib.losses.basic import * class DiceLoss(_AbstractDiceLoss): """Computes Dice Loss according to https://arxiv.org/abs/1606.04797. For multi-class segmentation `weight` pa...
35.954545
102
0.737042
619
0.782554
0
0
0
0
0
0
231
0.292035
40b7ae2027514475dd06028f5df19e3941be6b6d
1,190
py
Python
icons.py
jasantunes/alfred-golinks
f35fa87adedf07329469c0161c8808401a6925d0
[ "MIT" ]
312
2015-01-02T12:44:03.000Z
2020-06-21T03:53:29.000Z
icons.py
jasantunes/alfred-golinks
f35fa87adedf07329469c0161c8808401a6925d0
[ "MIT" ]
7
2015-03-22T11:57:50.000Z
2020-02-09T08:35:05.000Z
icons.py
jasantunes/alfred-golinks
f35fa87adedf07329469c0161c8808401a6925d0
[ "MIT" ]
35
2015-09-06T09:36:32.000Z
2020-06-21T19:17:55.000Z
# encoding: utf-8 # # Copyright (c) 2019 Dean Jackson <deanishe@deanishe.net> # # MIT Licence. See http://opensource.org/licenses/MIT # # Created on 2019-09-06 # """Overlay check mark on icons.""" from __future__ import print_function, absolute_import from Cocoa import ( NSBitmapImageRep, NSPNGFileType, ...
25.869565
70
0.691597
0
0
0
0
0
0
0
0
412
0.346218
40b9ac7b9f67d52c5c73796669c1ff5e0996665b
2,491
py
Python
project/python/Main/CTRL/tracker.py
warak/IOT-GrannyWarden
54ad51b7bf7377ce7b87e72091c9dbf7f686050d
[ "MIT" ]
null
null
null
project/python/Main/CTRL/tracker.py
warak/IOT-GrannyWarden
54ad51b7bf7377ce7b87e72091c9dbf7f686050d
[ "MIT" ]
null
null
null
project/python/Main/CTRL/tracker.py
warak/IOT-GrannyWarden
54ad51b7bf7377ce7b87e72091c9dbf7f686050d
[ "MIT" ]
null
null
null
import datetime from threading import Thread from time import sleep import DBC.dbcreate as dbc class Tracker(Thread): max_idle_time = 720 # minutes default_sleep = 3600 # secs def track(self): dbcl = dbc.DBClient() # print(dbcl.getlasttime()) print("Tracker activated") ...
30.753086
91
0.470092
2,400
0.960769
0
0
0
0
0
0
314
0.125701
40ba1c6c5aded5c9a1f75bcde2e5830a948185e5
39,197
py
Python
tests/unit/test_snapshot.py
cnnradams/python-spanner
33055e577288cbcc848aa9abf43ccd382c9907a9
[ "Apache-2.0" ]
null
null
null
tests/unit/test_snapshot.py
cnnradams/python-spanner
33055e577288cbcc848aa9abf43ccd382c9907a9
[ "Apache-2.0" ]
null
null
null
tests/unit/test_snapshot.py
cnnradams/python-spanner
33055e577288cbcc848aa9abf43ccd382c9907a9
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Google LLC 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 ag...
37.725698
88
0.672858
37,973
0.968773
0
0
0
0
0
0
1,685
0.042988
40ba39e3f0879514163c0009fb4d3d4f6df2004d
592
py
Python
hashtable.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
hashtable.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
hashtable.py
quake0day/oj
c09333d1738f8735de0d5d825db6f4b707585670
[ "MIT" ]
null
null
null
A = ['a','b'] B = ['c','b','a'] def generatehash(A): hashA = {} for item in A: if item not in hashA: hashA[item] = 1 else: hashA[item] += 1 return hashA def compareHash(A, B): lenA = len(A) lenB = len(B) hashA = generatehash(A) if lenB < lenA: ...
19.733333
43
0.496622
0
0
0
0
0
0
0
0
15
0.025338
40bab880835594679397baae0088587d6d0269a6
2,904
py
Python
Manipulation of PDF Files/pandf_gui.py
clair513/DIY
843770590a729c6aabf63367a3ab848e21ab78b9
[ "MIT" ]
1
2019-12-18T17:28:11.000Z
2019-12-18T17:28:11.000Z
Manipulation of PDF Files/pandf_gui.py
clair513/DIY
843770590a729c6aabf63367a3ab848e21ab78b9
[ "MIT" ]
null
null
null
Manipulation of PDF Files/pandf_gui.py
clair513/DIY
843770590a729c6aabf63367a3ab848e21ab78b9
[ "MIT" ]
null
null
null
# Importing required packages: import pandas as pd from tkinter import * from tkinter.ttk import * root = Tk() # To visualize input DataFrame: def generate_plot(gui_root, df, x_axis, y_axis=None, plot={'type':None, 'hue':None}, aesthetics={'style':'whitegrid', 'palette':'...
38.72
107
0.587466
0
0
0
0
0
0
0
0
876
0.301653
40bac90ddb15602100d2d54bde81a9850ed02d27
4,737
py
Python
utils/get_dataset.py
gautierdag/pytorch-attentive-lm
d08ce1813a5ee575c0aac86773cd95aa174ab5e1
[ "MIT" ]
16
2019-01-28T16:39:52.000Z
2021-12-25T11:07:55.000Z
utils/get_dataset.py
MarkWuCL/pytorch-attentive-lm
d08ce1813a5ee575c0aac86773cd95aa174ab5e1
[ "MIT" ]
1
2021-09-14T22:14:28.000Z
2021-09-15T16:12:43.000Z
utils/get_dataset.py
MarkWuCL/pytorch-attentive-lm
d08ce1813a5ee575c0aac86773cd95aa174ab5e1
[ "MIT" ]
6
2019-01-25T00:08:33.000Z
2022-02-15T06:47:54.000Z
import os import torch from torch.utils.data import DataLoader, TensorDataset import requests import io import zipfile from .data_reader import read_vocabulary, read_lm_data, lm_data_producer from .pre_process_wikitext import pre_process def get_dataset(dataset, batch_size, device): """ Returns data iterator...
37.896
90
0.677222
0
0
0
0
0
0
0
0
1,333
0.281402
40bb7183ce1df8b018466acd5e09bcd49d75d2d5
289
py
Python
Conteudo das Aulas/087/calc_est.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
Conteudo das Aulas/087/calc_est.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
Conteudo das Aulas/087/calc_est.py
cerberus707/lab-python
ebba3c9cde873d70d4bb61084f79ce30b7f9e047
[ "Apache-2.0" ]
null
null
null
from tkinter import * #Cria a nossa tela instancia = Tk() #Dá um título a tela instancia.title('Calculadora para Estatística') #Dá um tamanho a tela instancia.geometry("800x600") #Dá um ícone ao aplicativo #instancia.wm_iconbitmap('icone.ico') #Inicia o programa instancia.mainloop()
17
47
0.761246
0
0
0
0
0
0
0
0
185
0.627119
40bb7e3f95f2a2dc9b27a2c8dd06c761ef722a37
6,235
py
Python
property_scraper.py
iplaughlin/property_scraping
739d05a272eddb5f2b48f9fc85f407904067b931
[ "MIT" ]
null
null
null
property_scraper.py
iplaughlin/property_scraping
739d05a272eddb5f2b48f9fc85f407904067b931
[ "MIT" ]
null
null
null
property_scraper.py
iplaughlin/property_scraping
739d05a272eddb5f2b48f9fc85f407904067b931
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Mar 19 09:42:09 2022 @author: iaala """ import requests import sql_configs import datetime import os from bs4 import BeautifulSoup import time from find_tables import ( table_information_one, table_information_two, table_information_three, table_information_...
42.705479
121
0.559262
0
0
0
0
0
0
0
0
935
0.14996
40bc7b5a674a2b504a89d6769ec57fdcc5fda4af
357
py
Python
Chapter03/Activity11/fibonacci.py
vumaasha/python-workshop
0fbc21c514a8df5bfffb8db926e451232c6c08bf
[ "MIT" ]
null
null
null
Chapter03/Activity11/fibonacci.py
vumaasha/python-workshop
0fbc21c514a8df5bfffb8db926e451232c6c08bf
[ "MIT" ]
null
null
null
Chapter03/Activity11/fibonacci.py
vumaasha/python-workshop
0fbc21c514a8df5bfffb8db926e451232c6c08bf
[ "MIT" ]
null
null
null
def fibonacci_iterative(n): previous = 0 current = 1 for i in range(n - 1): current_old = current current = previous + current previous = current_old return current def fibonacci_recursive(n): if n == 0 or n == 1: return n else: return fibonacci_recursive...
23.8
70
0.602241
0
0
0
0
0
0
0
0
0
0
40be64921673daa0d8c5613e61a252c64c6e744e
1,002
py
Python
matches/tests/test_view_index.py
ToxaZ/nostradamus
adda478685d60df24da106c15d734d02f01ed339
[ "WTFPL" ]
null
null
null
matches/tests/test_view_index.py
ToxaZ/nostradamus
adda478685d60df24da106c15d734d02f01ed339
[ "WTFPL" ]
4
2021-06-02T23:01:40.000Z
2021-07-25T15:02:42.000Z
matches/tests/test_view_index.py
ToxaZ/nostradamus
adda478685d60df24da106c15d734d02f01ed339
[ "WTFPL" ]
null
null
null
from django.urls import resolve, reverse from django.test import TestCase from matches.views import matches_index from matches.models import Match class AllMatchesTests(TestCase): def setUp(self): self.match = Match.objects.create( match_id=1, home_team='Netherlands', g...
33.4
77
0.675649
852
0.850299
0
0
0
0
0
0
118
0.117764
40be6781a367fb391b4b06b4f46533ac8dd9e99d
5,871
py
Python
hmc/applications/banana/banana.py
JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo
7ee1b530db0eb536666dbc872fbf8200e53dd49b
[ "MIT" ]
1
2021-11-23T15:40:07.000Z
2021-11-23T15:40:07.000Z
hmc/applications/banana/banana.py
JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo
7ee1b530db0eb536666dbc872fbf8200e53dd49b
[ "MIT" ]
null
null
null
hmc/applications/banana/banana.py
JamesBrofos/Thresholds-in-Hamiltonian-Monte-Carlo
7ee1b530db0eb536666dbc872fbf8200e53dd49b
[ "MIT" ]
null
null
null
from typing import Callable, Tuple import numpy as np def posterior_factory(y: np.ndarray, sigma_y: float, sigma_theta: float) -> Tuple[Callable]: """The banana distribution is a distribution that exhibits a characteristic banana-shaped ridge that resembles the posterior that can emerge from models that ...
35.36747
106
0.62698
0
0
0
0
0
0
0
0
3,598
0.612843
40c04be7b7e97b73786d758981e90307e422880f
3,141
py
Python
msp430.py
sprout42/binaryninja-msp430
9bc5a79b1c6232260c2abc3bb4334e5ca3478baf
[ "MIT" ]
null
null
null
msp430.py
sprout42/binaryninja-msp430
9bc5a79b1c6232260c2abc3bb4334e5ca3478baf
[ "MIT" ]
null
null
null
msp430.py
sprout42/binaryninja-msp430
9bc5a79b1c6232260c2abc3bb4334e5ca3478baf
[ "MIT" ]
null
null
null
from binaryninja import ( Architecture, BranchType, FlagRole, InstructionInfo, LowLevelILFlagCondition, RegisterInfo, ) from .instructions import TYPE3_INSTRUCTIONS, Instruction, Registers from .lifter import Lifter class MSP430(Architecture): name = "msp430" address_size = 2 defa...
30.794118
86
0.617638
2,897
0.922318
0
0
0
0
0
0
380
0.120981
40c0c0515519976b7d3396916ff20c4b1d6edd0a
126
py
Python
app/domain/__init__.py
emge1/tracardi
0a4a8a38f0f769464f50d3c1113b798107810810
[ "MIT" ]
null
null
null
app/domain/__init__.py
emge1/tracardi
0a4a8a38f0f769464f50d3c1113b798107810810
[ "MIT" ]
null
null
null
app/domain/__init__.py
emge1/tracardi
0a4a8a38f0f769464f50d3c1113b798107810810
[ "MIT" ]
null
null
null
__all__ = [ 'session', 'event', 'profile', 'consent', 'segment', 'source', 'rule', 'entity' ]
11.454545
14
0.444444
0
0
0
0
0
0
0
0
65
0.515873
40c32fb91113902b7c534e034974797ba31567b9
3,868
py
Python
metric_calculation/faster_metrics.py
imatge-upc/saliency-2018-videosalgan
5e4bf3892d55d8b9f37490e119113c2094be3bce
[ "MIT" ]
10
2018-09-06T03:56:59.000Z
2020-07-26T11:02:50.000Z
metric_calculation/faster_metrics.py
imatge-upc/saliency-2018-videosalgan
5e4bf3892d55d8b9f37490e119113c2094be3bce
[ "MIT" ]
null
null
null
metric_calculation/faster_metrics.py
imatge-upc/saliency-2018-videosalgan
5e4bf3892d55d8b9f37490e119113c2094be3bce
[ "MIT" ]
3
2019-01-07T19:34:12.000Z
2019-07-03T07:41:48.000Z
from salience_metrics import auc_judd, auc_shuff, cc, nss, similarity, normalize_map """ DHF1K paper: "we employ five classic met-rics, namely Normalized Scanpath Saliency (NSS), Sim-ilarity Metric (SIM), Linear Correlation Coefficient (CC),AUC-Judd (AUC-J), and shuffled AUC (s-AUC)."" """ import cv2 import o...
39.876289
207
0.668046
0
0
0
0
0
0
0
0
1,199
0.309979
40c346f9a8e289985909d8a308d6ecd6f7e032ea
1,061
py
Python
tests/rules/test_pacman_invalid_option.py
RogueScholar/thefuck-termux
cc33d5fa0077b2b2323b8a62f3478ff8efef3fba
[ "MIT" ]
null
null
null
tests/rules/test_pacman_invalid_option.py
RogueScholar/thefuck-termux
cc33d5fa0077b2b2323b8a62f3478ff8efef3fba
[ "MIT" ]
null
null
null
tests/rules/test_pacman_invalid_option.py
RogueScholar/thefuck-termux
cc33d5fa0077b2b2323b8a62f3478ff8efef3fba
[ "MIT" ]
null
null
null
import pytest from thefuck.rules.pacman_invalid_option import get_new_command from thefuck.rules.pacman_invalid_option import match from thefuck.types import Command good_output = """community/shared_meataxe 1.0-3 A set of programs for working with matrix representations over finite fields """ bad_output = "erro...
31.205882
80
0.748351
0
0
0
0
707
0.666352
0
0
307
0.28935
40c37866ffff9cefa653877b146a68fc96c42ddf
11,329
py
Python
dimod/reference/composites/scalecomposite.py
joseppinilla/dimod
e33ca5045e31ee2d9d58515f017fb6be5276cd8e
[ "Apache-2.0" ]
1
2022-02-01T14:40:05.000Z
2022-02-01T14:40:05.000Z
dimod/reference/composites/scalecomposite.py
xpin/dimod
5e399317b0bfaae6ed20e22b9f2ef242f5fa5e6c
[ "Apache-2.0" ]
null
null
null
dimod/reference/composites/scalecomposite.py
xpin/dimod
5e399317b0bfaae6ed20e22b9f2ef242f5fa5e6c
[ "Apache-2.0" ]
1
2022-02-01T14:40:31.000Z
2022-02-01T14:40:31.000Z
# Copyright 2019 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
37.637874
101
0.603231
6,975
0.615677
0
0
527
0.046518
0
0
4,796
0.423338
40c4517b7bccc080e6b7ec11639bdde005bb213a
739
py
Python
tests/test_config.py
savilard/flask-ecom-api
d94ee7873b9ec80645c05422e3355e8dc045ebeb
[ "MIT" ]
1
2021-04-17T15:25:36.000Z
2021-04-17T15:25:36.000Z
tests/test_config.py
savilard/flask-ecom-api
d94ee7873b9ec80645c05422e3355e8dc045ebeb
[ "MIT" ]
null
null
null
tests/test_config.py
savilard/flask-ecom-api
d94ee7873b9ec80645c05422e3355e8dc045ebeb
[ "MIT" ]
1
2021-04-18T15:47:02.000Z
2021-04-18T15:47:02.000Z
import os def test_development_config(test_app): test_app.config.from_object('flask_ecom_api.config.DevelopmentConfig') assert not test_app.config['TESTING'] assert test_app.config['SQLALCHEMY_DATABASE_URI'] == os.environ.get('DATABASE_URL') def test_testing_config(test_app): test_app.config.from_ob...
36.95
92
0.783491
0
0
0
0
0
0
0
0
267
0.361299
40c6d377ec913783afe6edc196ecab48e0003b36
6,122
py
Python
leasing/forms.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
1
2021-01-12T08:14:10.000Z
2021-01-12T08:14:10.000Z
leasing/forms.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
249
2017-04-18T14:00:13.000Z
2022-03-30T12:18:03.000Z
leasing/forms.py
suutari-ai/mvj
c39dbc692afcb3b26366783414c2d5a88a57b25a
[ "MIT" ]
7
2017-04-18T08:43:54.000Z
2021-07-28T07:29:30.000Z
from django import forms from django.core import validators from django.core.exceptions import ValidationError from leasing.enums import ( InfillDevelopmentCompensationState, LeaseState, TenantContactType, ) from leasing.models import Contact, DecisionMaker, District, LeaseType, Municipality from leasing.v...
36.658683
87
0.679353
5,749
0.939072
0
0
0
0
0
0
704
0.114995
40c712bda8811c80835db84231a9e91605ae40b6
675
py
Python
src/main/management/commands/create_admin_user.py
LokotamaTheMastermind/website-portfolio-django-project
932d509428d592ee573ff82821b9490c8da9600a
[ "Apache-2.0" ]
null
null
null
src/main/management/commands/create_admin_user.py
LokotamaTheMastermind/website-portfolio-django-project
932d509428d592ee573ff82821b9490c8da9600a
[ "Apache-2.0" ]
null
null
null
src/main/management/commands/create_admin_user.py
LokotamaTheMastermind/website-portfolio-django-project
932d509428d592ee573ff82821b9490c8da9600a
[ "Apache-2.0" ]
null
null
null
# polls/management/commands/create_admin_user.py import sys import logging from django.core.management.base import BaseCommand, CommandError from django.contrib.auth.models import User from django.conf import settings class Command(BaseCommand): help = 'Creates the initial admin user' def handle(self, *args...
28.125
65
0.642963
453
0.671111
0
0
0
0
0
0
150
0.222222
40c7452a82c23c82f183d4188dfd8d42aa979d41
1,597
py
Python
app.py
jdanper/incredipaper
4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449
[ "MIT" ]
null
null
null
app.py
jdanper/incredipaper
4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449
[ "MIT" ]
null
null
null
app.py
jdanper/incredipaper
4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449
[ "MIT" ]
null
null
null
import unirest import json import requests import os import subprocess import time import argparse rootUrl = "https://api.unsplash.com/" unirest.default_header("Accept", "application/json") unirest.default_header("Accept-Version", "v1") unirest.default_header("Authorization","<CLIENT-ID>") def downloadPic(randomPic_...
40.948718
204
0.707577
0
0
0
0
0
0
0
0
695
0.435191
40c7af774d2446afa75acb06651e91eb7c9447fd
2,358
py
Python
tests/client_asyncio_test.py
ninchat/ninchat-python
7e5fcadb7389ca8c7722c32d69839289675d7baa
[ "BSD-2-Clause" ]
null
null
null
tests/client_asyncio_test.py
ninchat/ninchat-python
7e5fcadb7389ca8c7722c32d69839289675d7baa
[ "BSD-2-Clause" ]
4
2017-10-12T21:05:12.000Z
2018-05-17T22:19:08.000Z
tests/client_asyncio_test.py
ninchat/ninchat-python
7e5fcadb7389ca8c7722c32d69839289675d7baa
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2017, Somia Reality Oy # 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 of conditions an...
38.655738
133
0.725615
0
0
0
0
0
0
777
0.329517
1,578
0.669211
40c853daa30d56c941424e6324401a40fa450528
878
py
Python
msgraph/base.py
jstacoder/python-msgraph
be9a93f4baa2d89c97a8454ab1d31b8e5fdda38e
[ "Apache-2.0" ]
2
2020-09-23T18:26:22.000Z
2021-03-10T14:12:49.000Z
msgraph/base.py
jstacoder/python-msgraph
be9a93f4baa2d89c97a8454ab1d31b8e5fdda38e
[ "Apache-2.0" ]
4
2020-09-23T18:25:32.000Z
2021-03-22T11:07:32.000Z
msgraph/base.py
jstacoder/python-msgraph
be9a93f4baa2d89c97a8454ab1d31b8e5fdda38e
[ "Apache-2.0" ]
1
2020-09-23T18:28:14.000Z
2020-09-23T18:28:14.000Z
from datetime import datetime class Base(object): date_format = '%Y-%m-%d' time_format = '%H:%M:%S' datetime_format = date_format + 'T%s' % time_format full_datetime_format = date_format + 'T' + time_format + '.%f' iso_format = date_format + 'T%sZ' % time_format standard_datetime_format = date...
35.12
158
0.633257
845
0.962415
0
0
453
0.515945
0
0
51
0.058087
40c934e19e6344f536502d3f0e951d55cb483721
5,641
py
Python
nc/models.py
caktus/Traffic-Stops
2c6eda9477f1770c5ad1208a1937c3e828fbfb28
[ "MIT" ]
1
2021-12-10T14:58:11.000Z
2021-12-10T14:58:11.000Z
nc/models.py
caktus/Traffic-Stops
2c6eda9477f1770c5ad1208a1937c3e828fbfb28
[ "MIT" ]
5
2020-08-12T15:20:31.000Z
2021-06-10T13:43:02.000Z
nc/models.py
caktus/Traffic-Stops
2c6eda9477f1770c5ad1208a1937c3e828fbfb28
[ "MIT" ]
null
null
null
from caching.base import CachingManager, CachingMixin from django.db import models from tsdata.models import CensusProfile PURPOSE_CHOICES = ( (1, "Speed Limit Violation"), (2, "Stop Light/Sign Violation"), (3, "Driving While Impaired"), (4, "Safe Movement Violation"), (5, "Vehicle Equipment Violat...
34.607362
99
0.710867
4,223
0.748626
0
0
234
0.041482
0
0
825
0.146251
40cc65a33578c41b6882d9360507c431c3bb4a45
74
py
Python
flasky/auth/forms/__init__.py
by46/fasky
c6941972b57284c2167dfacf022f981939249256
[ "MIT" ]
null
null
null
flasky/auth/forms/__init__.py
by46/fasky
c6941972b57284c2167dfacf022f981939249256
[ "MIT" ]
null
null
null
flasky/auth/forms/__init__.py
by46/fasky
c6941972b57284c2167dfacf022f981939249256
[ "MIT" ]
null
null
null
from .login import LoginForm from .registration import RegistrationForm
24.666667
43
0.837838
0
0
0
0
0
0
0
0
0
0
40ce727b047c06c9d0537e694ab36bc40c4d524b
552
py
Python
API_SIMIT_Mail/multapp/urls.py
profefonso/Services-SM
98b9949a237121451a13fce5bc8f2945fa5a3cee
[ "MIT" ]
null
null
null
API_SIMIT_Mail/multapp/urls.py
profefonso/Services-SM
98b9949a237121451a13fce5bc8f2945fa5a3cee
[ "MIT" ]
16
2019-12-04T23:02:52.000Z
2022-02-10T11:57:03.000Z
API_SIMIT_Mail/multapp/urls.py
profefonso/Services-SM
98b9949a237121451a13fce5bc8f2945fa5a3cee
[ "MIT" ]
null
null
null
from django.urls import path from django.contrib import admin from rest_framework_swagger.views import get_swagger_view from .views import notification schema_view = get_swagger_view(title='MAIL API') urlpatterns = [ path('front/betsy/irish/embargo/admin/', admin.site.urls), # Swagger API path( ...
21.230769
62
0.681159
0
0
0
0
0
0
0
0
97
0.175725
40d10458dee4b20d938050badf13c455b5c17307
1,097
py
Python
tests/legacy_mocket.py
jepler/Adafruit_CircuitPython_Requests
9a9527110726036bfad94b14166e62aa61c1276e
[ "MIT" ]
null
null
null
tests/legacy_mocket.py
jepler/Adafruit_CircuitPython_Requests
9a9527110726036bfad94b14166e62aa61c1276e
[ "MIT" ]
null
null
null
tests/legacy_mocket.py
jepler/Adafruit_CircuitPython_Requests
9a9527110726036bfad94b14166e62aa61c1276e
[ "MIT" ]
null
null
null
from unittest import mock SOCK_STREAM = 0 set_interface = mock.Mock() interface = mock.MagicMock() getaddrinfo = mock.Mock() socket = mock.Mock() class Mocket: def __init__(self, response): self.settimeout = mock.Mock() self.close = mock.Mock() self.connect = mock.Mock() self.sen...
26.756098
61
0.610757
946
0.862352
0
0
0
0
0
0
20
0.018232
40d10aff20e4192696c984a95bd52419f7e1299a
2,228
py
Python
run.py
romeroyakovlev/ii
ae9485df2c3565871994c146001a72db511f3700
[ "CC0-1.0" ]
1
2017-09-29T09:35:04.000Z
2017-09-29T09:35:04.000Z
run.py
romeroyakovlev/ii
ae9485df2c3565871994c146001a72db511f3700
[ "CC0-1.0" ]
null
null
null
run.py
romeroyakovlev/ii
ae9485df2c3565871994c146001a72db511f3700
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- import api,points from api.bottle import * II_PATH=os.path.dirname(__file__) or '.' TEMPLATE_PATH.insert(0,II_PATH) @route('/list.txt') def list_txt(): response.set_header ('content-type','text/plain; charset=utf-8') lst = api.load_echo(False)[1:] if request.query.n: retur...
29.706667
84
0.62702
0
0
0
0
1,323
0.588261
0
0
628
0.279235
40d1ab4064e3ebc59780f56e6705f5033ef843d8
2,080
py
Python
learning_labs/yang/01-yang/add_loopback_ip.py
hpreston/sbx_nxos
8952d369b80810d22e0c86485b667cde1519272d
[ "MIT" ]
33
2017-05-19T19:47:33.000Z
2021-05-16T07:33:39.000Z
learning_labs/yang/01-yang/add_loopback_ip.py
AJNOURI/sbx_nxos
449ee3c1c88cbd831fd3f90490fc28dd7e02d448
[ "MIT" ]
13
2017-08-25T16:48:16.000Z
2021-09-23T23:21:58.000Z
learning_labs/yang/01-yang/add_loopback_ip.py
vbohinc/sbx_nxos
744c34fffd32b1c973ac791123afd6cc811e0d8b
[ "MIT" ]
20
2017-06-19T09:32:20.000Z
2022-02-20T05:33:14.000Z
#!/usr/bin/env python from ncclient import manager import sys from lxml import etree # Set the device variables DEVICES = ['172.16.30.101', '172.16.30.102'] USER = 'admin' PASS = 'admin' PORT = 830 LOOPBACK_IP = { '172.16.30.101': '10.99.99.1/24', '172.16.30.102': '10.99.99.2/24' } DEVICE_NAMES = {'172.16.3...
30.144928
117
0.479327
0
0
0
0
0
0
0
0
1,212
0.582692
40d1e35fdcc4995890f4efabdc25434ef9f00eb5
5,704
py
Python
Plotly_Dash/spacex_dash_app.py
AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone
2659fcae1a8d5fec13ab632aee1492a29e9585ee
[ "MIT" ]
null
null
null
Plotly_Dash/spacex_dash_app.py
AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone
2659fcae1a8d5fec13ab632aee1492a29e9585ee
[ "MIT" ]
null
null
null
Plotly_Dash/spacex_dash_app.py
AtypicalLogic/Coursera-IBM_DS-Applied_Data_Science_Capstone
2659fcae1a8d5fec13ab632aee1492a29e9585ee
[ "MIT" ]
null
null
null
# To run this file, Win Start > cmd > file dir > run: python spacex_dash_app.py # Import required libraries import pandas as pd import dash from dash import html from dash import dcc from dash.dependencies import Input, Output import plotly.express as px # Read the airline data into pandas dataframe spacex_df = pd.rea...
52.330275
223
0.58082
0
0
0
0
2,301
0.403401
0
0
2,568
0.45021
40d2f193783c709a9e4416360cda1c6098d93420
1,430
py
Python
configs/mnist_paper_residual_cnn_gp.py
rhaps0dy/cnn-gp
5726bd10debbddcffb3dc1f5c671f5dceedf007d
[ "BSD-2-Clause" ]
23
2019-06-21T15:03:45.000Z
2022-01-24T11:34:16.000Z
configs/mnist_paper_residual_cnn_gp.py
rhaps0dy/cnn-gp
5726bd10debbddcffb3dc1f5c671f5dceedf007d
[ "BSD-2-Clause" ]
null
null
null
configs/mnist_paper_residual_cnn_gp.py
rhaps0dy/cnn-gp
5726bd10debbddcffb3dc1f5c671f5dceedf007d
[ "BSD-2-Clause" ]
10
2019-06-21T14:52:55.000Z
2021-12-01T19:05:38.000Z
""" The best randomly-searched ResNet reported in the paper. In the original paper there is a bug. This network sums together layers after the ReLU nonlinearity, which are not Gaussian, and also do not have mean 0. As a result, the overall network does not converge to a Gaussian process. The defined kernel is still va...
31.086957
79
0.702098
0
0
0
0
0
0
0
0
612
0.427972
40d397efdfc75b4459bce3aac322fa920256a163
2,956
py
Python
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec08_scatterplot.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
null
null
null
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec08_scatterplot.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
null
null
null
python/learn/PythonDataVisualizationCookbookSE_Code/Chapter 07/ch07_rec08_scatterplot.py
flyingwjw/Documentation
567608f388ca369b864c2d75a94647801b5dfa1e
[ "Unlicense" ]
2
2020-09-22T18:37:46.000Z
2021-09-02T11:02:59.000Z
import matplotlib.pyplot as plt import numpy as np # daily search trend for keyword 'flowers' for a year d = [ 1.04, 1.04, 1.16, 1.22, 1.46, 2.34, 1.16, 1.12, 1.24, 1.30, 1.44, 1.22, 1.26, 1.34, 1.26, 1.40, 1.52, 2.56, 1.36, 1.30, 1.20, 1.12, 1.12, 1.12, 1.06, 1.06, 1.00, 1.02, 1.04, 1.02, 1.06, 1.02, 1.04, 0.98, 0...
46.1875
78
0.552436
0
0
0
0
0
0
0
0
209
0.070704
40d5469fd32315fb7f4708a40672a155712e5afb
22,427
py
Python
src/thespian/tweaks.py
mtttech/dndpersonae
c4fa129d1e940c9f9a5e29d703e3988b45d90356
[ "MIT" ]
1
2022-03-28T16:10:15.000Z
2022-03-28T16:10:15.000Z
src/thespian/tweaks.py
mtttech/dndpersonae
c4fa129d1e940c9f9a5e29d703e3988b45d90356
[ "MIT" ]
null
null
null
src/thespian/tweaks.py
mtttech/dndpersonae
c4fa129d1e940c9f9a5e29d703e3988b45d90356
[ "MIT" ]
null
null
null
from dataclasses import dataclass import logging from attributes import get_ability_modifier from sourcetree.utils import ( get_feats_list, get_feat_perks, get_feat_proficiencies, get_feat_requirements, ) from stdio import prompt log = logging.getLogger("thespian.tweaks") class AbilityScoreImproveme...
40.481949
101
0.514112
22,113
0.985999
0
0
10,438
0.465421
0
0
6,347
0.283007
40d5a5d08da3928cd30de9755f828a4c98f498bf
4,135
py
Python
atomic1D/ImpuritySpecies.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
1
2019-05-18T22:32:21.000Z
2019-05-18T22:32:21.000Z
atomic1D/ImpuritySpecies.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
null
null
null
atomic1D/ImpuritySpecies.py
TBody/atomic1D
fcab88f3b303468f23ac75b847c76244593f4b7f
[ "MIT" ]
null
null
null
class ImpuritySpecies(object): # For storing OpenADAS data related to a particular impurity species # Loosely based on cfe316/atomic/atomic_data.py/AtomicData class (although with much less code since # all of the F77 importing is done in the seperate <<make json_update>> code since BOUT++ protocol # requires fort...
47.528736
163
0.680774
4,134
0.999758
0
0
0
0
0
0
2,130
0.515115
40d5ed5ea76d8603996be2780920650b434417e6
9,213
py
Python
Utils/Matrix.py
valavanisleonidas/Machine_Learning_Toolkit
4a66e1419189e279a82fa6a7ff7945153308842a
[ "MIT" ]
null
null
null
Utils/Matrix.py
valavanisleonidas/Machine_Learning_Toolkit
4a66e1419189e279a82fa6a7ff7945153308842a
[ "MIT" ]
null
null
null
Utils/Matrix.py
valavanisleonidas/Machine_Learning_Toolkit
4a66e1419189e279a82fa6a7ff7945153308842a
[ "MIT" ]
null
null
null
import os import platform import numpy class Matrix: def __init__(self): if platform.system() == "Windows": self.delimiterForPath = "\\" else: self.delimiterForPath = "/" self.labelsDType = numpy.int32 self.imagesDType = numpy.float32 def deleteRows(se...
43.457547
151
0.64485
6,917
0.750787
0
0
0
0
0
0
2,875
0.312059
40d66ffe931947e9a30f4f5ac4f0646b982e924f
7,906
py
Python
networking_calico/plugins/ml2/drivers/calico/policy.py
manojcode/networking-calico
db709fb27b492d3be3c094fa43e8c696962369b7
[ "Apache-2.0" ]
null
null
null
networking_calico/plugins/ml2/drivers/calico/policy.py
manojcode/networking-calico
db709fb27b492d3be3c094fa43e8c696962369b7
[ "Apache-2.0" ]
null
null
null
networking_calico/plugins/ml2/drivers/calico/policy.py
manojcode/networking-calico
db709fb27b492d3be3c094fa43e8c696962369b7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2018 Tigera, 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 re...
39.728643
79
0.611055
2,598
0.328611
0
0
0
0
0
0
2,856
0.361245
40d757b3788e8715de2cff8adf8b1027f7b43c6d
4,359
py
Python
25/main.py
gosha20777/mipt-bioinfo-2021
ed14975e9f597e7b2427bc589f12ac08d451c509
[ "MIT" ]
null
null
null
25/main.py
gosha20777/mipt-bioinfo-2021
ed14975e9f597e7b2427bc589f12ac08d451c509
[ "MIT" ]
null
null
null
25/main.py
gosha20777/mipt-bioinfo-2021
ed14975e9f597e7b2427bc589f12ac08d451c509
[ "MIT" ]
null
null
null
def global_alignment(seq1, seq2, score_matrix, penalty): len1, len2 = len(seq1), len(seq2) s = [[0] * (len2 + 1) for i in range(len1 + 1)] backtrack = [[0] * (len2 + 1) for i in range(len1 + 1)] for i in range(1, len1 + 1): s[i][0] = - i * penalty for j in range(1, len2 + 1): s[0][j]...
39.990826
115
0.532003
0
0
0
0
0
0
0
0
62
0.014223
40d75b3cb34c1d537273d852cc304bd850526e28
10,039
py
Python
utils/visualize_tree.py
moyiming1/Retrosynthesis-pathway-ranking
380f31189d09395d0de911759b8bcea436b559b2
[ "MIT" ]
10
2021-02-24T02:31:40.000Z
2022-02-17T07:58:46.000Z
utils/visualize_tree.py
wangxr0526/Retrosynthesis-pathway-ranking
380f31189d09395d0de911759b8bcea436b559b2
[ "MIT" ]
1
2022-02-14T16:13:59.000Z
2022-02-14T16:13:59.000Z
utils/visualize_tree.py
wangxr0526/Retrosynthesis-pathway-ranking
380f31189d09395d0de911759b8bcea436b559b2
[ "MIT" ]
3
2021-01-05T11:43:03.000Z
2022-02-17T08:52:27.000Z
import os, sys project_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(project_path) import pickle def construct_tree_for_visual(tree, node_info_key, depth=0): tree_for_visual = {'smiles': 'http://askcos.mit.edu/draw/smiles/' + str(tree['smiles']).replace('#', '%23'), ...
47.131455
123
0.574858
0
0
0
0
0
0
0
0
4,899
0.487802
40d7ebe962811bafc69c16d6ae16e6cb4f35d53d
3,955
py
Python
python-is-easy/assignments/snowman/main.py
eDyablo/pirple
08910c7574203f685a0971cba61a54166d805a1c
[ "MIT" ]
null
null
null
python-is-easy/assignments/snowman/main.py
eDyablo/pirple
08910c7574203f685a0971cba61a54166d805a1c
[ "MIT" ]
null
null
null
python-is-easy/assignments/snowman/main.py
eDyablo/pirple
08910c7574203f685a0971cba61a54166d805a1c
[ "MIT" ]
null
null
null
''' Homework assignment for the 'Python is easy' course by Pirple. Written be Ed Yablonsky. Snowman(Hangman) game. ''' from os import ( name as os_name, system as system_call, ) from os.path import ( abspath, dirname, join as join_path, ) ''' Screen displays game output ''' class Screen: de...
23.682635
81
0.551707
3,378
0.854109
0
0
0
0
0
0
546
0.138053
40d82abf6ddc30ada008f9205fa131b2828d8ba2
2,569
py
Python
src/GenericTsvReader.py
getzlab/ABSOLUTE
cd443ec9370df98778d98227bb9a11c3e24c00cb
[ "BSD-3-Clause" ]
null
null
null
src/GenericTsvReader.py
getzlab/ABSOLUTE
cd443ec9370df98778d98227bb9a11c3e24c00cb
[ "BSD-3-Clause" ]
null
null
null
src/GenericTsvReader.py
getzlab/ABSOLUTE
cd443ec9370df98778d98227bb9a11c3e24c00cb
[ "BSD-3-Clause" ]
null
null
null
""" Created on Jul 5, 2012 @author: lichtens """ import csv import os class GenericTsvReader(object): """ Read a TSV file. This class wraps a DictReader, but handles comments, which are not handled gracefully in the python csv library. The next() method assumes user is interested in the ...
33.802632
124
0.652005
2,488
0.96847
0
0
0
0
0
0
1,020
0.397042
40db83a1176151c4bc0bdff2477e10a8b1ab20a4
12,376
py
Python
examples/applications/plot_impact_imbalanced_classes.py
cdchushig/imbalanced-learn
f02e7c7c2c021c85823cace405ca2c58ad4ff147
[ "MIT" ]
5,678
2016-07-19T10:22:35.000Z
2022-03-31T22:46:41.000Z
examples/applications/plot_impact_imbalanced_classes.py
cdchushig/imbalanced-learn
f02e7c7c2c021c85823cace405ca2c58ad4ff147
[ "MIT" ]
759
2016-07-19T05:41:59.000Z
2022-03-28T11:00:10.000Z
examples/applications/plot_impact_imbalanced_classes.py
cdchushig/imbalanced-learn
f02e7c7c2c021c85823cace405ca2c58ad4ff147
[ "MIT" ]
1,165
2016-07-19T22:56:42.000Z
2022-03-31T22:46:45.000Z
""" ========================================================== Fitting model on imbalanced datasets and how to fight bias ========================================================== This example illustrates the problem induced by learning on datasets having imbalanced classes. Subsequently, we compare different approac...
33.906849
87
0.747253
0
0
0
0
0
0
0
0
7,178
0.579994
40dc4792e5546b69652c162537bffd53c76ae2d8
3,949
py
Python
python/fix-page-breaks.py
utcompling/GeoAnnotate
a864106d9595e8426339f1d34432a54e04cee66a
[ "Apache-2.0" ]
9
2015-11-19T06:03:08.000Z
2021-02-16T19:14:42.000Z
python/fix-page-breaks.py
utcompling/GeoAnnotate
a864106d9595e8426339f1d34432a54e04cee66a
[ "Apache-2.0" ]
null
null
null
python/fix-page-breaks.py
utcompling/GeoAnnotate
a864106d9595e8426339f1d34432a54e04cee66a
[ "Apache-2.0" ]
1
2018-10-09T23:12:34.000Z
2018-10-09T23:12:34.000Z
#!/usr/bin/python import argparse import re parser = argparse.ArgumentParser(description='Fix page breaks in War of The Rebellion text') parser.add_argument('files', nargs='*', help='Files to process') args = parser.parse_args() for file in args.files: outfile = open(file + ".joined-pagebreak", ...
36.564815
171
0.52469
0
0
0
0
0
0
0
0
1,443
0.365409
40dd78243c51556a2be73588a2b4ac205cbb6f28
570
py
Python
2021/02/part2.py
FranciscoAT/advent-of-code
69f20696e4c59ff6dfa010b22dd3593ea3d12208
[ "MIT" ]
null
null
null
2021/02/part2.py
FranciscoAT/advent-of-code
69f20696e4c59ff6dfa010b22dd3593ea3d12208
[ "MIT" ]
null
null
null
2021/02/part2.py
FranciscoAT/advent-of-code
69f20696e4c59ff6dfa010b22dd3593ea3d12208
[ "MIT" ]
null
null
null
def main(file: str) -> None: depth = 0 distance = 0 aim = 0 with open(f"{file}.in") as f: for line in f.readlines(): line = line.rstrip().split(" ") command = line[0] unit = int(line[1]) if command == "forward": distance += unit ...
23.75
43
0.436842
0
0
0
0
0
0
0
0
83
0.145614
40dd84dd99f72ec266d9a45433b99fd282b94576
6,068
py
Python
tf_seal/python/tensor.py
karlhigley/tf-seal
74a38e3ff71d29e862881d56bca84aaa23efd710
[ "Apache-2.0" ]
94
2019-08-06T16:03:27.000Z
2022-03-24T18:19:07.000Z
tf_seal/python/tensor.py
karlhigley/tf-seal
74a38e3ff71d29e862881d56bca84aaa23efd710
[ "Apache-2.0" ]
23
2019-08-19T16:22:12.000Z
2022-03-31T15:09:58.000Z
tf_seal/python/tensor.py
karlhigley/tf-seal
74a38e3ff71d29e862881d56bca84aaa23efd710
[ "Apache-2.0" ]
17
2019-08-08T22:45:46.000Z
2022-03-22T08:05:16.000Z
import numpy as np import tensorflow as tf import tf_seal.python.ops.seal_ops as ops from tensorflow.python.keras.utils import tf_utils from tensorflow.python.client import session as tf_session from tensorflow.python.framework import ops as tf_ops class Tensor(object): def __init__(self, value, secret_key, publ...
30.492462
102
0.742914
1,529
0.251978
0
0
179
0.029499
0
0
1,229
0.202538
40de3e3ad949140a43a1a19f490e5fc039aedb2f
25,087
py
Python
program/admin.py
Dumbaz/autoradio-pv
8aae293e58b2e79a05956c535bb109f74edc89c3
[ "BSD-3-Clause" ]
null
null
null
program/admin.py
Dumbaz/autoradio-pv
8aae293e58b2e79a05956c535bb109f74edc89c3
[ "BSD-3-Clause" ]
null
null
null
program/admin.py
Dumbaz/autoradio-pv
8aae293e58b2e79a05956c535bb109f74edc89c3
[ "BSD-3-Clause" ]
null
null
null
from django.core.exceptions import ObjectDoesNotExist from django.contrib import admin from django.utils.translation import ugettext_lazy as _ from django.shortcuts import render from django.conf import settings from .models import Language, Type, MusicFocus, Category, Topic, RTRCategory, Host, Note, RRule, Schedule, ...
42.305228
173
0.585363
24,146
0.962491
0
0
0
0
0
0
7,658
0.305258
40de4834e40d2116182061d040e90ff70baa0986
2,177
py
Python
test/logic/test_block_features.py
Sam-prog-sudo/Sam.github.io
75f41ec26b4b3aafcb117e467e38fca1e69f5c87
[ "MIT" ]
3
2020-07-06T21:03:03.000Z
2020-07-18T07:02:59.000Z
test/logic/test_block_features.py
Sam-prog-sudo/Sam.github.io
75f41ec26b4b3aafcb117e467e38fca1e69f5c87
[ "MIT" ]
null
null
null
test/logic/test_block_features.py
Sam-prog-sudo/Sam.github.io
75f41ec26b4b3aafcb117e467e38fca1e69f5c87
[ "MIT" ]
4
2020-07-17T11:16:05.000Z
2020-10-01T08:57:21.000Z
import hashlib import json from time import time import pytest from app.chaine.blockchain import Blockchain @pytest.fixture def first_block(): return { 'index': 1, 'timestamp': time(), 'transactions': [], 'proof': 1989, 'previous_hash': 1, } def test_initialization_...
23.408602
76
0.622876
0
0
0
0
1,076
0.494258
0
0
419
0.192467
40e031fd64128f14855fedd41208af0c66f89410
886
py
Python
urls.py
cartologic/cartoview_graduated_styler
f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3
[ "BSD-2-Clause" ]
null
null
null
urls.py
cartologic/cartoview_graduated_styler
f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3
[ "BSD-2-Clause" ]
16
2017-08-06T09:49:01.000Z
2021-09-01T08:40:58.000Z
urls.py
cartologic/cartoview_graduated_styler
f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3
[ "BSD-2-Clause" ]
null
null
null
# from django.conf.urls import patterns, url, include # from django.views.generic import TemplateView # from . import views, APP_NAME # # urlpatterns = patterns('', # url(r'^$', views.index, name='%s.index' % APP_NAME), # ) from django.urls import path, re_path, include from . import views, APP_NAME from .api impo...
34.076923
110
0.705418
0
0
0
0
0
0
0
0
399
0.450339
40e07b3163c543bc0b7215aac128eae673625978
1,721
py
Python
core/rest/wscdn.py
cybert79/Osmedeus
684d853144e2f85343c3367440120142455f296b
[ "MIT" ]
1
2019-06-13T09:14:11.000Z
2019-06-13T09:14:11.000Z
core/rest/wscdn.py
KbaHaxor/Osmedeus
0894d52ad5949e9151b0fd05d9746ecafc8057b5
[ "MIT" ]
null
null
null
core/rest/wscdn.py
KbaHaxor/Osmedeus
0894d52ad5949e9151b0fd05d9746ecafc8057b5
[ "MIT" ]
2
2020-01-09T17:48:23.000Z
2020-01-09T17:48:24.000Z
import os import glob import json from pathlib import Path from flask_restful import Api, Resource, reqparse from flask_jwt_extended import jwt_required from flask import Flask, request, escape, make_response, send_from_directory import utils # incase you can't install ansi2html it's won't break the api try: from ...
30.732143
91
0.654852
1,253
0.728065
0
0
0
0
0
0
264
0.153399
40e08ff17bc877d0938f412ad22362a39a6d45db
13,534
py
Python
custom_components/hahm/services.py
noxhirsch/custom_homematic
afc03c813f44d342f75477e6fcce85fc78515258
[ "MIT" ]
null
null
null
custom_components/hahm/services.py
noxhirsch/custom_homematic
afc03c813f44d342f75477e6fcce85fc78515258
[ "MIT" ]
null
null
null
custom_components/hahm/services.py
noxhirsch/custom_homematic
afc03c813f44d342f75477e6fcce85fc78515258
[ "MIT" ]
null
null
null
"""Module with hahomematic services.""" from __future__ import annotations from datetime import datetime import logging from hahomematic.const import ( ATTR_ADDRESS, ATTR_INTERFACE_ID, ATTR_NAME, ATTR_PARAMETER, ATTR_VALUE, HmPlatform, ) from hahomematic.device import HmDevice from hahomematic...
32.455635
85
0.691813
0
0
0
0
874
0.064578
7,014
0.51825
1,446
0.106842
40e0c14f05e9b921525413c2427c2d6661b5419f
865
py
Python
app/migrations/0001_initial.py
MariaAlice00/ifpi-tds-projeto-integrador
e2ce73279c9bf31de0b33b105723ae7a24deac54
[ "MIT" ]
null
null
null
app/migrations/0001_initial.py
MariaAlice00/ifpi-tds-projeto-integrador
e2ce73279c9bf31de0b33b105723ae7a24deac54
[ "MIT" ]
null
null
null
app/migrations/0001_initial.py
MariaAlice00/ifpi-tds-projeto-integrador
e2ce73279c9bf31de0b33b105723ae7a24deac54
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-03 00:35 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Livro', fields=[ ('id', models.BigAutoField...
30.892857
117
0.564162
772
0.892486
0
0
0
0
0
0
129
0.149133
40e13f8b874a94920da4e07d42899e93081c3e2f
4,284
py
Python
graalpython/com.oracle.graal.python.parser.antlr/postprocess.py
transposit/graalpython
adadf5f211cc67a14bb3aca7c61219513d036b13
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
1
2019-05-28T13:04:32.000Z
2019-05-28T13:04:32.000Z
graalpython/com.oracle.graal.python.parser.antlr/postprocess.py
transposit/graalpython
adadf5f211cc67a14bb3aca7c61219513d036b13
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
graalpython/com.oracle.graal.python.parser.antlr/postprocess.py
transposit/graalpython
adadf5f211cc67a14bb3aca7c61219513d036b13
[ "UPL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. # # The Universal Permissive License (UPL), Version 1.0 # # Subject to the condition set forth below, permission is hereby granted to any # person obtaining a copy of this softw...
37.911504
88
0.722222
0
0
0
0
0
0
0
0
3,399
0.793417
40e2d06c8105c95bcdc7c6b4d3475a48fa240fbc
6,284
py
Python
scripts/ape_protocol_deploy.py
coordinape/coordinape-protocol
8c90de1b1fbc19bab05e1c5848813d022492753a
[ "MIT" ]
22
2021-10-17T23:19:38.000Z
2022-03-24T05:13:56.000Z
scripts/ape_protocol_deploy.py
coordinape/coordinape-protocol
8c90de1b1fbc19bab05e1c5848813d022492753a
[ "MIT" ]
12
2021-09-29T16:27:03.000Z
2022-03-30T17:54:08.000Z
scripts/ape_protocol_deploy.py
coordinape/coordinape-protocol
8c90de1b1fbc19bab05e1c5848813d022492753a
[ "MIT" ]
4
2021-10-14T19:08:36.000Z
2022-03-29T16:42:21.000Z
from brownie import accounts, Wei, chain, ApeToken, ApeVaultFactory, ApeDistributor, ApeRegistry, ApeRouter, FeeRegistry, MockRegistry, MockVaultFactory, MockToken, MockVault def deploy_token(): funds = accounts.load('moist', '\0') user = accounts.load('ape_deployer', '\0') multi_sig = '0x15B513F658f7390D8720dCE32...
56.107143
174
0.732336
0
0
0
0
0
0
0
0
2,269
0.361076
40e6bbe29a59bd4a98298179d233b2bfddb4c1e0
971
py
Python
groups/views.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
10
2017-11-25T01:47:20.000Z
2020-03-24T18:28:24.000Z
groups/views.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
319
2017-11-16T09:56:03.000Z
2022-03-28T00:24:37.000Z
groups/views.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
6
2017-11-12T14:04:08.000Z
2021-03-10T09:41:18.000Z
from django.contrib.auth.mixins import PermissionRequiredMixin from django.urls import reverse_lazy from django.views.generic import DetailView, ListView, UpdateView from .models import Committee class CommitteeList(ListView): model = Committee template_name = 'groups/committee_list.html' context_object_...
30.34375
65
0.77137
762
0.784758
0
0
0
0
0
0
226
0.23275
40e730ac41b56af4d3f51d091a10e9b22fdce408
2,200
py
Python
src/programy/braintree.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/braintree.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
null
null
null
src/programy/braintree.py
motazsaad/fit-bot-fb-clt
580477aa1ec91855b621d9ae276f2705962f6a87
[ "MIT" ]
4
2019-04-01T15:42:23.000Z
2020-11-05T08:14:27.000Z
""" Copyright (c) 2016-2019 Keith Sterling http://www.keithsterling.com 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 without restriction, including without limitation the rights to use, copy, m...
55
120
0.782727
923
0.419545
0
0
0
0
0
0
1,143
0.519545
40ea3c645ea543c1874475b7543e5383d030798e
6,095
py
Python
reana_commons/publisher.py
marcdiazsan/reana-commons
6e3a64db6798ab86aa521da02fa889459a382083
[ "MIT" ]
null
null
null
reana_commons/publisher.py
marcdiazsan/reana-commons
6e3a64db6798ab86aa521da02fa889459a382083
[ "MIT" ]
null
null
null
reana_commons/publisher.py
marcdiazsan/reana-commons
6e3a64db6798ab86aa521da02fa889459a382083
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # This file is part of REANA. # Copyright (C) 2018 CERN. # # REANA is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """REANA-Commons module to manage AMQP connections on REANA.""" import json import logging fr...
34.828571
85
0.620673
5,571
0.914028
0
0
0
0
0
0
2,785
0.456932
40ea5c5e0176d43f5d51fa89b969ce72cc0fce56
1,219
py
Python
model/commit.py
uniaim-event-team/pullre-kun
60ee86c399d34254c82974a5debcdcb7d332f2a1
[ "MIT" ]
3
2020-03-24T08:06:37.000Z
2020-03-29T08:53:55.000Z
model/commit.py
uniaim-event-team/pullre-kun
60ee86c399d34254c82974a5debcdcb7d332f2a1
[ "MIT" ]
7
2020-03-23T12:36:01.000Z
2020-04-11T08:14:06.000Z
model/commit.py
uniaim-event-team/pullre-kun
60ee86c399d34254c82974a5debcdcb7d332f2a1
[ "MIT" ]
null
null
null
from sqlalchemy import ( BigInteger, Column, DateTime, Text, String, Integer, ) from sqlalchemy.sql.functions import current_timestamp from model.base import BaseObject class Commit(BaseObject): __tablename__ = 'commits' id = Column(BigInteger, primary_key=True, autoincrement=True) ...
31.25641
108
0.721903
1,019
0.835931
0
0
0
0
0
0
17
0.013946
40eaa3da9e931ca4a3dcce107069762aa322fa53
24
py
Python
drae/__init__.py
hso/drae.py
b78772fa055fe5f8acb2bb44d7e7573af277226b
[ "MIT" ]
null
null
null
drae/__init__.py
hso/drae.py
b78772fa055fe5f8acb2bb44d7e7573af277226b
[ "MIT" ]
null
null
null
drae/__init__.py
hso/drae.py
b78772fa055fe5f8acb2bb44d7e7573af277226b
[ "MIT" ]
null
null
null
from drae import search
12
23
0.833333
0
0
0
0
0
0
0
0
0
0
40ead0d637c17ba1e4a9c64f3e4137d28ac75a83
13,825
py
Python
tests/components/template/test_select.py
JeffersonBledsoe/core
3825f80a2dd087ae70654079cd9f3071289b8423
[ "Apache-2.0" ]
5
2017-01-26T16:33:09.000Z
2018-07-20T13:50:47.000Z
tests/components/template/test_select.py
JeffersonBledsoe/core
3825f80a2dd087ae70654079cd9f3071289b8423
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
tests/components/template/test_select.py
yuvalkob/home-assistant
6a5895222ec908acad3cf478897ca2455f88f730
[ "Apache-2.0" ]
3
2021-05-31T15:32:08.000Z
2021-08-10T22:08:42.000Z
"""The tests for the Template select platform.""" import pytest from homeassistant import setup from homeassistant.components.input_select import ( ATTR_OPTION as INPUT_SELECT_ATTR_OPTION, ATTR_OPTIONS as INPUT_SELECT_ATTR_OPTIONS, DOMAIN as INPUT_SELECT_DOMAIN, SERVICE_SELECT_OPTION as INPUT_SELECT_SE...
32.529412
132
0.502351
0
0
0
0
131
0.009476
12,354
0.893599
3,294
0.238264
40eb080a05a597358c0a6ee395b1cbd8baf803e7
7,211
py
Python
corefacility/core/test/models/test_application_access.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
corefacility/core/test/models/test_application_access.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
corefacility/core/test/models/test_application_access.py
serik1987/corefacility
78d84e19403361e83ef562e738473849f9133bef
[ "RSA-MD" ]
null
null
null
import os import random import string import base64 from django.utils import timezone from django.contrib.auth.hashers import make_password, check_password from django.test import TestCase from parameterized import parameterized from core.models import Module, EntryPoint, ExternalAuthorizationSession, User AUTHORIZA...
43.969512
113
0.627791
6,840
0.948551
0
0
5,029
0.697407
0
0
1,229
0.170434
40eb7e71257ab84eead04db6c8b696939ea7b84e
6,729
py
Python
cmsfix/lib/macro.py
trmznt/cmsfix
18d0be238f9247421db9603f1946478452336afb
[ "BSD-2-Clause" ]
null
null
null
cmsfix/lib/macro.py
trmznt/cmsfix
18d0be238f9247421db9603f1946478452336afb
[ "BSD-2-Clause" ]
null
null
null
cmsfix/lib/macro.py
trmznt/cmsfix
18d0be238f9247421db9603f1946478452336afb
[ "BSD-2-Clause" ]
null
null
null
from rhombus.lib.utils import get_dbhandler from rhombus.lib.tags import * from cmsfix.models.node import Node import re # the pattern below is either # ///123 # <<MacroName>> # [[MacroName]] pattern = re.compile('///(\d+)|///\{([\w-]+)\}|\&lt\;\&lt\;(.+)\&gt\;\&gt\;|\[\[(.+)\]\]') # syntax for Macro is: # [[MacroN...
24.558394
96
0.541537
40
0.005944
0
0
3,956
0.587903
0
0
1,788
0.265716
40ed1faf7a529d9d2608043132523587818592bc
2,629
py
Python
xastropy/sdss/qso.py
bpholden/xastropy
66aff0995a84c6829da65996d2379ba4c946dabe
[ "BSD-3-Clause" ]
3
2015-08-23T00:32:58.000Z
2020-12-31T02:37:52.000Z
xastropy/sdss/qso.py
Kristall-WangShiwei/xastropy
723fe56cb48d5a5c4cdded839082ee12ef8c6732
[ "BSD-3-Clause" ]
104
2015-07-17T18:31:54.000Z
2018-06-29T17:04:09.000Z
xastropy/sdss/qso.py
Kristall-WangShiwei/xastropy
723fe56cb48d5a5c4cdded839082ee12ef8c6732
[ "BSD-3-Clause" ]
16
2015-07-17T15:50:37.000Z
2019-04-21T03:42:47.000Z
''' #;+ #; NAME: #; sdss.qso #; Version 1.1 #; #; PURPOSE: #; Class for SDSS QSO #; 2015 Written by JXP #;- #;------------------------------------------------------------------------------ ''' # Import libraries import numpy as np import os from astropy.table import QTable, Column from astropy.coordinates i...
30.218391
80
0.573602
2,145
0.8159
0
0
0
0
0
0
993
0.37771
40ee9a52429bac1502e511dda17968ae00643dd6
41
py
Python
ez_sten/__init__.py
deadlift1226/ez-sten
7f754e5648ce6b7d5207a901618b77a8e4382c86
[ "MIT" ]
null
null
null
ez_sten/__init__.py
deadlift1226/ez-sten
7f754e5648ce6b7d5207a901618b77a8e4382c86
[ "MIT" ]
null
null
null
ez_sten/__init__.py
deadlift1226/ez-sten
7f754e5648ce6b7d5207a901618b77a8e4382c86
[ "MIT" ]
null
null
null
name = "module" from .module import func
13.666667
24
0.731707
0
0
0
0
0
0
0
0
8
0.195122
40ef2f9956caa7a12ca34a8e2817ab06584f9a11
3,110
py
Python
wisdem/test/test_optimization_drivers/test_dakota_driver.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
81
2015-01-19T18:17:31.000Z
2022-03-17T07:14:43.000Z
wisdem/test/test_optimization_drivers/test_dakota_driver.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
159
2015-02-05T01:54:52.000Z
2022-03-30T22:44:39.000Z
wisdem/test/test_optimization_drivers/test_dakota_driver.py
johnjasa/WISDEM
a4571e71cb5b9869c81790f8abb1bb7fba8fdb02
[ "Apache-2.0" ]
70
2015-01-02T15:22:39.000Z
2022-02-11T00:33:07.000Z
import unittest import numpy as np from openmdao.utils.assert_utils import assert_near_equal from wisdem.optimization_drivers.dakota_driver import DakotaOptimizer try: import dakota except ImportError: dakota = None @unittest.skipIf(dakota is None, "only run if Dakota is installed.") class Te...
40.921053
112
0.630868
2,743
0.881994
0
0
2,813
0.904502
0
0
714
0.229582
40f05be8c6d026f9f65c428c8494f859b10c0a2f
6,848
py
Python
lab4_runTFCurveFitting.py
pskdev/EveryBodyTensorFlow
5166a366fca850a72de66e5ac48c421d4bb766f4
[ "Unlicense" ]
1
2018-04-15T07:36:22.000Z
2018-04-15T07:36:22.000Z
lab4_runTFCurveFitting.py
pskdev/EveryBodyTensorFlow
5166a366fca850a72de66e5ac48c421d4bb766f4
[ "Unlicense" ]
null
null
null
lab4_runTFCurveFitting.py
pskdev/EveryBodyTensorFlow
5166a366fca850a72de66e5ac48c421d4bb766f4
[ "Unlicense" ]
null
null
null
#-*- coding: utf-8 -*- #! /usr/bin/env python ''' #------------------------------------------------------------ filename: lab4_runTFCurveFitting.py This is an example for linear regression in tensorflow Which is a curve fitting example written by Jaewook Kang @ Aug 2017 #---------------------------------------...
32.923077
131
0.631425
0
0
0
0
0
0
0
0
3,057
0.446408
40f1379ab73e0f4b4e9297a1caebe96d0365e7e2
577
py
Python
app/route/stats/route.py
LifeLaboratory/finopolis_backend
56aac8e0b92193c627b68f3d029f6f804d001db3
[ "MIT" ]
null
null
null
app/route/stats/route.py
LifeLaboratory/finopolis_backend
56aac8e0b92193c627b68f3d029f6f804d001db3
[ "MIT" ]
null
null
null
app/route/stats/route.py
LifeLaboratory/finopolis_backend
56aac8e0b92193c627b68f3d029f6f804d001db3
[ "MIT" ]
null
null
null
# coding=utf-8 from app.route.stats.processor import * from app.api.base.base_router import BaseRouter from app.api.base import base_name as names class Stats(BaseRouter): def __init__(self): super().__init__() self.args = [names.face, names.post, names.socnet, names.likes, names.views, names.com...
25.086957
100
0.646447
427
0.740035
0
0
0
0
0
0
14
0.024263
40f148fc7af6cb3cf9e625820f51746d54b4fd9d
1,168
py
Python
script/calculate_correct_percentage_kingdom.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
4
2021-12-18T20:33:16.000Z
2022-01-03T02:54:13.000Z
script/calculate_correct_percentage_kingdom.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
null
null
null
script/calculate_correct_percentage_kingdom.py
xie186/dragmap-meth
6e9ccfd281bd317a56b8c4e87b5386978eb8de45
[ "MIT" ]
null
null
null
from Bio import TogoWS import argparse import sys import os def summary(options): num_reads = 0 num_correct = 0 with open(options.input) as file_input: for line in file_input: line = line.rstrip() ele = line.split("\t") if "FAILED" in line: contin...
29.948718
77
0.5625
0
0
0
0
0
0
0
0
253
0.21661
40f24ffc2a5ce750fd7226190ea187a0e43d6f6d
296
py
Python
borax/patterns/singleton.py
kinegratii/borax
3595f554b788c31d0f07be4099db68c854db65f7
[ "MIT" ]
51
2018-04-18T13:52:15.000Z
2022-03-23T13:46:02.000Z
borax/patterns/singleton.py
kinegratii/borax
3595f554b788c31d0f07be4099db68c854db65f7
[ "MIT" ]
26
2019-05-26T02:22:34.000Z
2022-03-14T07:50:32.000Z
borax/patterns/singleton.py
kinegratii/borax
3595f554b788c31d0f07be4099db68c854db65f7
[ "MIT" ]
7
2018-09-30T08:17:29.000Z
2020-12-16T01:49:24.000Z
# coding=utf8 class MetaSingleton(type): def __init__(cls, *args): type.__init__(cls, *args) cls.instance = None def __call__(cls, *args, **kwargs): if not cls.instance: cls.instance = type.__call__(cls, *args, **kwargs) return cls.instance
22.769231
62
0.597973
279
0.942568
0
0
0
0
0
0
13
0.043919
40f2de4fdec91fb98024a2bfc2b3ed4d725f2c72
5,108
py
Python
aiida/backends/general/migrations/utils.py
pranavmodx/aiida-core
0edbbf82dfb97ab130914d1674a6f2217eba5971
[ "BSD-2-Clause", "MIT" ]
null
null
null
aiida/backends/general/migrations/utils.py
pranavmodx/aiida-core
0edbbf82dfb97ab130914d1674a6f2217eba5971
[ "BSD-2-Clause", "MIT" ]
2
2019-03-06T11:23:42.000Z
2020-03-09T09:34:07.000Z
aiida/backends/general/migrations/utils.py
lorisercole/aiida-core
84c2098318bf234641219e55795726f99dc25a16
[ "MIT", "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
34.053333
119
0.66758
0
0
0
0
0
0
0
0
2,808
0.549726
40f3ddcdfc03bc9856328d9f89786ad5e9dd0772
88
py
Python
src/models/__init__.py
DwaraknathT/sparsity
705f2cba074e6ab4f7655c6af98882773cd826bf
[ "MIT" ]
null
null
null
src/models/__init__.py
DwaraknathT/sparsity
705f2cba074e6ab4f7655c6af98882773cd826bf
[ "MIT" ]
null
null
null
src/models/__init__.py
DwaraknathT/sparsity
705f2cba074e6ab4f7655c6af98882773cd826bf
[ "MIT" ]
null
null
null
__all__ = ["transformers", "vision"] from .transformers import * from .vision import *
17.6
36
0.715909
0
0
0
0
0
0
0
0
22
0.25
40f4220eb6198005a87664aaa2c6ba2fd068a95c
350
py
Python
packages/pyright-internal/src/tests/samples/genericTypes12.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
4,391
2019-05-07T01:18:57.000Z
2022-03-31T20:45:44.000Z
packages/pyright-internal/src/tests/samples/genericTypes12.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
2,740
2019-05-07T03:29:30.000Z
2022-03-31T12:57:46.000Z
packages/pyright-internal/src/tests/samples/genericTypes12.py
sasano8/pyright
e804f324ee5dbd25fd37a258791b3fd944addecd
[ "MIT" ]
455
2019-05-07T12:55:14.000Z
2022-03-31T17:09:15.000Z
# This sample tests the checker's ability to enforce # type invariance for type arguments. # pyright: strict from typing import Dict, Union foo: Dict[Union[int, str], str] = {} bar: Dict[str, str] = {} # This should generate an error because # both type parameters for Dict are invariant, # and str isn't assignable ...
23.333333
52
0.72
0
0
0
0
0
0
0
0
237
0.677143
40f50e67874d55319f2743b79ff2d604900796f7
224
py
Python
test.py
Naveenkhasyap/udacity-ml
6df851f7b21dee120a8e8f246df7961ea065eeac
[ "MIT" ]
null
null
null
test.py
Naveenkhasyap/udacity-ml
6df851f7b21dee120a8e8f246df7961ea065eeac
[ "MIT" ]
null
null
null
test.py
Naveenkhasyap/udacity-ml
6df851f7b21dee120a8e8f246df7961ea065eeac
[ "MIT" ]
null
null
null
how_many_snakes = 1 snake_string = """ Welcome to Python3! ____ / . .\\ \\ ---< \\ / __________/ / -=:___________/ <3, Juno """ print(snake_string * how_many_snakes)
14
37
0.473214
0
0
0
0
0
0
0
0
149
0.665179
40f5c3fea77f91c61ea3a74c27daae2c26011e43
658
py
Python
Nelson_Alvarez/Assignments/flask_fund/ninja_turtle/turtle.py
webguru001/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
5
2019-05-17T01:30:02.000Z
2021-06-17T21:02:58.000Z
Nelson_Alvarez/Assignments/flask_fund/ninja_turtle/turtle.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
Nelson_Alvarez/Assignments/flask_fund/ninja_turtle/turtle.py
curest0x1021/Python-Django-Web
6264bc4c90ef1432ba0902c76b567cf3caaae221
[ "MIT" ]
null
null
null
from flask import Flask from flask import render_template, redirect, session, request app = Flask(__name__) app.secret_key = 'ThisIsSecret' @app.route('/') def nothing(): return render_template('index.html') @app.route('/ninja') def ninja(): x = 'tmnt' return render_template('ninjas.html', x=x) @app.route...
22.689655
102
0.682371
0
0
0
0
490
0.744681
0
0
177
0.268997
40f5d8bb4fa97a86898d698a3335896827401fd2
941
py
Python
neo/Network/Inventory.py
BSathvik/neo-python
90eddde0128f8ba41207d88fd68041682e307315
[ "MIT" ]
15
2018-02-27T13:07:00.000Z
2021-01-29T10:27:41.000Z
neo/Network/Inventory.py
BSathvik/neo-python
90eddde0128f8ba41207d88fd68041682e307315
[ "MIT" ]
3
2021-03-20T05:43:51.000Z
2022-02-11T03:47:50.000Z
neo/Network/Inventory.py
BSathvik/neo-python
90eddde0128f8ba41207d88fd68041682e307315
[ "MIT" ]
6
2018-07-13T05:00:44.000Z
2020-10-28T19:41:54.000Z
# -*- coding:utf-8 -*- """ Description: Inventory Class Usage: from neo.Network.Inventory import Inventory """ from neo.IO.MemoryStream import MemoryStream from neocore.IO.BinaryWriter import BinaryWriter class Inventory(object): """docstring for Inventory""" def __init__(self): """ ...
18.82
48
0.587673
724
0.769394
0
0
0
0
0
0
271
0.287991
40f5e193e0cc75def4b2ba8e4e082e5183a4bea7
4,748
py
Python
tests/test_api_gateway/test_common/test_exceptions.py
Clariteia/api_gateway_common
e68095f31091699fc6cc4537bd6acf97a8dc6c3e
[ "MIT" ]
3
2021-05-14T08:13:09.000Z
2021-05-26T11:25:35.000Z
tests/test_api_gateway/test_common/test_exceptions.py
Clariteia/api_gateway_common
e68095f31091699fc6cc4537bd6acf97a8dc6c3e
[ "MIT" ]
27
2021-05-13T08:43:19.000Z
2021-08-24T17:19:36.000Z
tests/test_api_gateway/test_common/test_exceptions.py
Clariteia/api_gateway_common
e68095f31091699fc6cc4537bd6acf97a8dc6c3e
[ "MIT" ]
null
null
null
""" Copyright (C) 2021 Clariteia SL This file is part of minos framework. Minos framework can not be copied and/or distributed without the express permission of Clariteia SL. """ import unittest from minos.api_gateway.common import ( EmptyMinosModelSequenceException, MinosAttributeValidationException, Mi...
39.566667
117
0.771272
3,737
0.787068
0
0
0
0
0
0
607
0.127843
40f7a744294465f0d9fa2d8e7fd481a7d36370d7
977
py
Python
native_prophet.py
1143048123/cddh
52d91f02359af659343b8c4ad4f2ba349de20852
[ "MIT" ]
177
2018-01-05T01:46:07.000Z
2018-03-09T05:32:45.000Z
native_prophet.py
1143048123/cddh
52d91f02359af659343b8c4ad4f2ba349de20852
[ "MIT" ]
15
2018-01-05T03:28:38.000Z
2018-01-17T03:04:06.000Z
native_prophet.py
1143048123/cddh
52d91f02359af659343b8c4ad4f2ba349de20852
[ "MIT" ]
55
2018-01-05T05:24:55.000Z
2018-01-25T11:53:38.000Z
# coding: utf-8 # quote from kmaiya/HQAutomator # 谷歌搜索部分原版搬运,未做修改 import time import json import requests import webbrowser questions = [] def get_answer(): resp = requests.get('http://htpmsg.jiecaojingxuan.com/msg/current',timeout=4).text resp_dict = json.loads(resp) if resp_dict['msg']...
25.710526
87
0.58956
0
0
0
0
0
0
0
0
293
0.290387
40f82a11d157a4c060d3cd0a073c10873cb2a999
21,936
py
Python
src/utils/TensorflowModel_pb2.py
nicolas-ivanov/MimicAndRephrase
446674e1e6af133618e0e9888c3650c0ce9012e4
[ "MIT" ]
12
2019-06-17T19:41:35.000Z
2022-02-17T19:51:45.000Z
src/utils/TensorflowModel_pb2.py
nicolas-ivanov/MimicAndRephrase
446674e1e6af133618e0e9888c3650c0ce9012e4
[ "MIT" ]
1
2021-02-23T15:28:32.000Z
2021-02-23T15:28:32.000Z
src/utils/TensorflowModel_pb2.py
isabella232/MimicAndRephrase
bd29a995b211cb4f7933fa990b0bba1564c22450
[ "MIT" ]
3
2020-09-07T16:44:11.000Z
2020-11-14T19:00:05.000Z
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: TensorflowModel.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import messa...
42.594175
2,175
0.746034
0
0
0
0
0
0
0
0
5,887
0.268372
40f93ae054bebaa285f8c2f48242d86d8297b31f
8,460
py
Python
python/ht/nodes/styles/styles.py
Hengle/Houdini-Toolbox
a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3
[ "MIT" ]
136
2015-01-03T04:03:23.000Z
2022-02-07T11:08:57.000Z
python/ht/nodes/styles/styles.py
Hengle/Houdini-Toolbox
a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3
[ "MIT" ]
11
2017-02-09T20:05:04.000Z
2021-01-24T22:25:59.000Z
python/ht/nodes/styles/styles.py
Hengle/Houdini-Toolbox
a1fd7d3dd73d3fc4cea78e29aeff1d190c41bae3
[ "MIT" ]
26
2015-08-18T12:11:02.000Z
2020-12-19T01:53:31.000Z
"""Classes representing color entries and mappings.""" # ============================================================================= # IMPORTS # ============================================================================= from __future__ import annotations # Standard Library import re from typing import TYPE_CHEC...
28.389262
87
0.450473
7,904
0.934279
0
0
1,463
0.172931
0
0
3,959
0.467967
40f9e62c7e463cdddcd04524566bd56b8cb59940
1,407
py
Python
src/sntk/kernels/ntk.py
gear/s-ntk
3cd72cef4c941941750e03820c9c2850b81d529e
[ "MIT" ]
null
null
null
src/sntk/kernels/ntk.py
gear/s-ntk
3cd72cef4c941941750e03820c9c2850b81d529e
[ "MIT" ]
null
null
null
src/sntk/kernels/ntk.py
gear/s-ntk
3cd72cef4c941941750e03820c9c2850b81d529e
[ "MIT" ]
null
null
null
import math import numpy as np # return an array K of size (d_max, d_max, N, N), K[i][j] is kernel value of depth i + 1 with first j layers fixed def kernel_value_batch(X, d_max): K = np.zeros((d_max, d_max, X.shape[0], X.shape[0])) for fix_dep in range(d_max): S = np.matmul(X, X.T) H = np.ze...
40.2
115
0.509595
0
0
0
0
0
0
0
0
190
0.135039
40fbdeebc9d14240c78ed2bb4a08d9c0a87ce714
1,509
py
Python
nlpproject/main/words.py
Hrishi2312/IR-reimagined
2bcaf207a402bdae9fc39be516ccb607ce78d174
[ "MIT" ]
null
null
null
nlpproject/main/words.py
Hrishi2312/IR-reimagined
2bcaf207a402bdae9fc39be516ccb607ce78d174
[ "MIT" ]
null
null
null
nlpproject/main/words.py
Hrishi2312/IR-reimagined
2bcaf207a402bdae9fc39be516ccb607ce78d174
[ "MIT" ]
null
null
null
import nltk from nltk.corpus import stopwords from nltk.stem import WordNetLemmatizer, PorterStemmer from nltk.tokenize import sent_tokenize , word_tokenize import glob import re import os import numpy as np import sys nltk.download('stopwords') nltk.download('punkt') Stopwords = set(stopwords.words('english')) all_w...
28.471698
64
0.705765
0
0
0
0
0
0
0
0
72
0.047714
40fd39b618c9cae6572cdfad086049a95c4b491f
4,911
py
Python
oseoserver/operations/describeresultaccess.py
pyoseo/oseoserver
8c97ee5a7d698cc989e1c8cab8cfe0db78491307
[ "Apache-2.0" ]
null
null
null
oseoserver/operations/describeresultaccess.py
pyoseo/oseoserver
8c97ee5a7d698cc989e1c8cab8cfe0db78491307
[ "Apache-2.0" ]
10
2015-02-10T17:10:33.000Z
2018-04-05T10:05:01.000Z
oseoserver/operations/describeresultaccess.py
pyoseo/oseoserver
8c97ee5a7d698cc989e1c8cab8cfe0db78491307
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Ricardo Garcia Silva # # 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 agree...
34.584507
76
0.696192
0
0
0
0
0
0
0
0
1,851
0.376909
40feb012148cebe6483dabf37d02607456645a00
2,210
py
Python
utils/decorator/dasyncio.py
masonsxu/red-flask
e8b978ee08072efcb2b3b7964065f272d8c875ab
[ "MIT" ]
null
null
null
utils/decorator/dasyncio.py
masonsxu/red-flask
e8b978ee08072efcb2b3b7964065f272d8c875ab
[ "MIT" ]
null
null
null
utils/decorator/dasyncio.py
masonsxu/red-flask
e8b978ee08072efcb2b3b7964065f272d8c875ab
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 基于python Threading模块封装的异步函数装饰器 import time from functools import wraps from threading import Thread def async_call(fn): """一次简单的异步处理操作,装饰在要异步执行的函数前,再调用该函数即可执行单次异步操作(开辟一条新的线程) Args: :fn(function):需要异步处理的方法 Return: :wrapper(function): """ @wraps(fn) # 解决...
19.557522
69
0.570588
0
0
0
0
757
0.28523
0
0
1,582
0.596081
40ff8361da6ba11cdb915421c267126671120831
872
py
Python
oo/pessoa.py
wfs18/pythonbirds
aa3332763f9109c1fb7f1140a82a4b51c6402fdb
[ "MIT" ]
null
null
null
oo/pessoa.py
wfs18/pythonbirds
aa3332763f9109c1fb7f1140a82a4b51c6402fdb
[ "MIT" ]
null
null
null
oo/pessoa.py
wfs18/pythonbirds
aa3332763f9109c1fb7f1140a82a4b51c6402fdb
[ "MIT" ]
null
null
null
class Person: olhos = 2 def __init__(self, *children, name=None, year=0): self.year = year self.name = name self.children = list(children) def cumprimentar(self): return 'Hello' @staticmethod def metodo_estatico(): return 123 @classmethod def metod...
22.947368
53
0.605505
372
0.426606
0
0
137
0.15711
0
0
101
0.115826
40ff943d89da7510322d2d4989457bad5b652c0f
179
py
Python
tests/integration/test_combined.py
jonathan-winn-geo/new-repo-example
2fbc54b1d42c57ca1105b1066e47627832cc8185
[ "BSD-3-Clause" ]
null
null
null
tests/integration/test_combined.py
jonathan-winn-geo/new-repo-example
2fbc54b1d42c57ca1105b1066e47627832cc8185
[ "BSD-3-Clause" ]
85
2020-08-12T15:59:48.000Z
2022-01-17T10:28:56.000Z
tests/integration/test_combined.py
cma-open/cmatools
ce5743dca7c5bf1f6ab7fe3af24893a65d0c2db7
[ "BSD-3-Clause" ]
null
null
null
"""Test combined function.""" from cmatools.combine.combine import combined def test_combined(): """Test of combined function""" assert combined() == "this hello cma"
17.9
45
0.692737
0
0
0
0
0
0
0
0
76
0.424581
dc002c294c966dc124207adcde546a050c2603e1
1,323
py
Python
elastalert_modules/top_count_keys_enhancement.py
OpenCoreCH/elastalert
28502d8e81e67649976a6a3d2ccc198a5dd60631
[ "Apache-2.0" ]
null
null
null
elastalert_modules/top_count_keys_enhancement.py
OpenCoreCH/elastalert
28502d8e81e67649976a6a3d2ccc198a5dd60631
[ "Apache-2.0" ]
1
2018-10-05T14:38:22.000Z
2018-10-05T14:38:22.000Z
elastalert_modules/top_count_keys_enhancement.py
OpenCoreCH/elastalert
28502d8e81e67649976a6a3d2ccc198a5dd60631
[ "Apache-2.0" ]
4
2018-10-05T12:11:42.000Z
2022-01-31T10:31:26.000Z
"""Enhancement to reformat `top_events_X` from match in order to reformat and put it back to be able to use in alert message. New format: top_events_keys_XXX -- contains array of corresponding key values defined in `top_count_keys`, where `XXX` key from `top_count_keys` array. top_events_values_XXX -- contains arra...
31.5
94
0.675737
501
0.378685
0
0
0
0
0
0
839
0.634165
dc0041528fa6c63f72d3e18e309efd1fc5282e9f
4,054
py
Python
nets.py
koreyou/SWEM-chainer
728443fb5fc53409648d8bff3ae3e545fb9ac36c
[ "MIT" ]
null
null
null
nets.py
koreyou/SWEM-chainer
728443fb5fc53409648d8bff3ae3e545fb9ac36c
[ "MIT" ]
null
null
null
nets.py
koreyou/SWEM-chainer
728443fb5fc53409648d8bff3ae3e545fb9ac36c
[ "MIT" ]
null
null
null
import numpy import chainer import chainer.functions as F import chainer.links as L from chainer import reporter embed_init = chainer.initializers.Uniform(.25) def block_embed(embed, x, dropout=0.): """Embedding function followed by convolution Args: embed (callable): A :func:`~chainer.functions.em...
34.355932
88
0.620868
2,945
0.726443
0
0
0
0
0
0
1,668
0.411445
dc00b897bcfec50069749b3f13a2b807436fbaab
904
py
Python
src/entities/users.py
MillaKelhu/ohtu-lukuvinkkikirjasto
d195e53824bc5d13ded97112a8c388e05775666c
[ "MIT" ]
null
null
null
src/entities/users.py
MillaKelhu/ohtu-lukuvinkkikirjasto
d195e53824bc5d13ded97112a8c388e05775666c
[ "MIT" ]
null
null
null
src/entities/users.py
MillaKelhu/ohtu-lukuvinkkikirjasto
d195e53824bc5d13ded97112a8c388e05775666c
[ "MIT" ]
null
null
null
from flask_login import UserMixin class Users(UserMixin): # Luodaan näennäinen tietokanta käyttäjistä user_database = {"kayttaja": ("kayttaja", "salasana"), "tunnus": ("tunnus", "passu")} def __init__(self, id, username, password): self.id = id self.username = username self.pas...
23.179487
60
0.634956
872
0.959296
0
0
343
0.377338
0
0
114
0.125413
dc00c9713e8a8c4632743cc1feb90632ddde0bf5
13,726
py
Python
artifacts/kernel_db/autotvm_scripts/tune_tilling_dense_select_codegen.py
LittleQili/nnfusion
6c1a25db5be459a1053798f1c75bfbd26863ed08
[ "MIT" ]
null
null
null
artifacts/kernel_db/autotvm_scripts/tune_tilling_dense_select_codegen.py
LittleQili/nnfusion
6c1a25db5be459a1053798f1c75bfbd26863ed08
[ "MIT" ]
null
null
null
artifacts/kernel_db/autotvm_scripts/tune_tilling_dense_select_codegen.py
LittleQili/nnfusion
6c1a25db5be459a1053798f1c75bfbd26863ed08
[ "MIT" ]
1
2021-08-11T09:09:53.000Z
2021-08-11T09:09:53.000Z
""" matmul autotvm [batch,in_dim] x [in_dim,out_dim] search_matmul_config(batch,in_dim,out_dim,num_trials): input: batch,in_dim,out_dim,num_trials [batch,in_dim] x [in_dim,out_dim] num_trials: num of trials, default: 1000 output: log (json format) use autotvm to search configs for the matm...
35.4677
159
0.633396
0
0
0
0
2,431
0.177109
0
0
3,245
0.236413
dc00d047f5d2f7ce7b721b7c45d3556d9ebe4b5d
2,240
py
Python
src/olympia/activity/admin.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
src/olympia/activity/admin.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
src/olympia/activity/admin.py
dante381/addons-server
9702860a19ecca1cb4e4998f37bc43c1b2dd3aa7
[ "BSD-3-Clause" ]
null
null
null
from django.contrib import admin from .models import ActivityLog, ReviewActionReasonLog from olympia.reviewers.models import ReviewActionReason class ActivityLogAdmin(admin.ModelAdmin): list_display = ( 'created', 'user', '__str__', ) raw_id_fields = ('user',) readonly_fields ...
26.666667
87
0.634821
1,965
0.877232
0
0
0
0
0
0
372
0.166071
dc01dc4bc345b863361dbfcbff2946a74c676b49
1,261
py
Python
modules/nmap_script/address_info.py
naimkowshik/reyna-eye
f729ec964e586ae3f63ff29fd524f7aed3748a74
[ "MIT" ]
4
2021-04-22T19:19:13.000Z
2022-02-10T09:26:58.000Z
modules/nmap_script/address_info.py
naimkowshik/reyna-eye
f729ec964e586ae3f63ff29fd524f7aed3748a74
[ "MIT" ]
null
null
null
modules/nmap_script/address_info.py
naimkowshik/reyna-eye
f729ec964e586ae3f63ff29fd524f7aed3748a74
[ "MIT" ]
1
2022-02-03T19:29:46.000Z
2022-02-03T19:29:46.000Z
import subprocess import sys import time import os ############################# # COLORING YOUR SHELL # ############################# R = "\033[1;31m" # B = "\033[1;34m" # Y = "\033[1;33m" # G = "\033[1;32m" # RS = "\033[0m" # W = "\033[1;37m" ...
32.333333
120
0.57732
0
0
0
0
0
0
0
0
949
0.743148
dc022c593385d4751afcdb05a041b275d5e72149
2,041
py
Python
tests/utilities/test_upgrade_checkpoint.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
null
null
null
tests/utilities/test_upgrade_checkpoint.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
null
null
null
tests/utilities/test_upgrade_checkpoint.py
cuent/pytorch-lightning
b50ad528e69618d831aa01ee69f29b4f2a6a3e84
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
40.82
110
0.677609
0
0
0
0
1,265
0.619794
0
0
1,065
0.521803
dc02390fc5cc8acb642fb9142268442719d14ed1
4,258
py
Python
rnn/train_rnn_oneflow.py
XinYangDong/models
ea1ab12add5812c8a3e14ecfad6b39fa56a779a9
[ "Apache-2.0" ]
null
null
null
rnn/train_rnn_oneflow.py
XinYangDong/models
ea1ab12add5812c8a3e14ecfad6b39fa56a779a9
[ "Apache-2.0" ]
null
null
null
rnn/train_rnn_oneflow.py
XinYangDong/models
ea1ab12add5812c8a3e14ecfad6b39fa56a779a9
[ "Apache-2.0" ]
null
null
null
import oneflow.experimental as flow from oneflow.experimental import optim import oneflow.experimental.nn as nn from utils.dataset import * from utils.tensor_utils import * from models.rnn_model import RNN import argparse import time import math import numpy as np flow.env.init() flow.enable_eager_execution() def ...
30.198582
113
0.615782
0
0
0
0
0
0
0
0
606
0.14212
dc0343ffb97fa10db053e01b9eed2a7adc7c042b
4,763
py
Python
metaflow/datastore/local_storage.py
RobBlumberg/metaflow
9f737e6026eee250c1593a2cb1d1c4b19a00adf4
[ "Apache-2.0" ]
2
2020-03-05T08:33:05.000Z
2021-05-31T12:54:40.000Z
metaflow/datastore/local_storage.py
RobBlumberg/metaflow
9f737e6026eee250c1593a2cb1d1c4b19a00adf4
[ "Apache-2.0" ]
5
2021-12-12T21:04:10.000Z
2022-01-22T21:05:58.000Z
metaflow/datastore/local_storage.py
RobBlumberg/metaflow
9f737e6026eee250c1593a2cb1d1c4b19a00adf4
[ "Apache-2.0" ]
2
2020-04-18T22:45:03.000Z
2020-06-25T14:36:20.000Z
import json import os from ..metaflow_config import DATASTORE_LOCAL_DIR, DATASTORE_SYSROOT_LOCAL from .datastore_storage import CloseAfterUse, DataStoreStorage from .exceptions import DataException class LocalStorage(DataStoreStorage): TYPE = "local" METADATA_DIR = "_meta" @classmethod def get_datas...
34.766423
88
0.515431
4,561
0.95759
563
0.118203
1,667
0.34999
0
0
233
0.048919
dc03c7056424871c088a27b25411021c5ef255a8
669
py
Python
src/Models/tools/quality.py
rahlk/MOOSE
e45b64cf625bb90aa8c1c24ab1c8f52ab485a316
[ "MIT" ]
null
null
null
src/Models/tools/quality.py
rahlk/MOOSE
e45b64cf625bb90aa8c1c24ab1c8f52ab485a316
[ "MIT" ]
9
2015-09-14T21:07:06.000Z
2015-12-08T01:38:08.000Z
src/Models/tools/quality.py
rahlk/MAPGen
25bc1a84f07e30ab0dbb638cd2aa1ce416c510ff
[ "MIT" ]
null
null
null
from __future__ import division, print_function from scipy.spatial.distance import euclidean from numpy import mean from pdb import set_trace class measure: def __init__(self,model): self.mdl = model def convergence(self, obtained): """ Calculate the convergence metric with respect to ideal soluti...
30.409091
76
0.693572
526
0.786248
0
0
0
0
0
0
163
0.243647
dc0442493abb70d64838a4469e6b402804bec72d
2,499
py
Python
script/spider/www_chinapoesy_com.py
gitter-badger/poetry-1
faf50558852d5d37d4fee68a8c5a114aba149689
[ "MIT" ]
1
2021-08-03T03:07:41.000Z
2021-08-03T03:07:41.000Z
script/spider/www_chinapoesy_com.py
gitter-badger/poetry-1
faf50558852d5d37d4fee68a8c5a114aba149689
[ "MIT" ]
null
null
null
script/spider/www_chinapoesy_com.py
gitter-badger/poetry-1
faf50558852d5d37d4fee68a8c5a114aba149689
[ "MIT" ]
null
null
null
''' pip3 install BeautifulSoup4 pip3 install pypinyin ''' import requests import re import os import shutil from bs4 import BeautifulSoup from util import Profile, write_poem def parse_poem_profile_td(td): container = td.find('div') if container is None: container = td title_a = contain...
25.5
77
0.609444
0
0
0
0
0
0
0
0
612
0.239906
dc05bab78000f85994987b7714d00eddf5ea82d2
439
py
Python
design-patterns-101/Animal.py
stealthanthrax/python-design-patterns
100884e1c5fe0fedaa0f1afa978ae79e53878f6b
[ "MIT" ]
null
null
null
design-patterns-101/Animal.py
stealthanthrax/python-design-patterns
100884e1c5fe0fedaa0f1afa978ae79e53878f6b
[ "MIT" ]
4
2020-10-01T15:56:00.000Z
2020-10-08T12:34:17.000Z
design-patterns-101/Animal.py
stealthanthrax/python-design-patterns
100884e1c5fe0fedaa0f1afa978ae79e53878f6b
[ "MIT" ]
2
2020-10-02T06:50:34.000Z
2020-10-02T10:17:25.000Z
class Animal: def __init__(self): self.name = "" self.weight = 0 self.sound = "" def setName(self, name): self.name = name def getName(self): return self.name def setWeight(self, weight): self.weight = weight def getWeight(self): return sel...
18.291667
32
0.560364
438
0.997722
0
0
0
0
0
0
4
0.009112
dc06b7c456a20378a588b26699aae0b601ae716d
5,086
py
Python
tests/test_events.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
tests/test_events.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
tests/test_events.py
hhtong/dwave-cloud-client
45e4d1d4f187b10495e38d47478f2c8d87514434
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 D-Wave Systems Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
34.835616
87
0.592411
4,365
0.858238
0
0
0
0
0
0
1,972
0.387731
dc06e2ba70d0080f14386cfea2dd13fc3ab64b71
12,084
py
Python
ex3_nn_TF2.py
Melykuti/Ng_Machine_learning_exercises
c561190ee2705b6af9432323d7639f6655c973e5
[ "BSD-3-Clause" ]
3
2020-03-06T19:15:28.000Z
2020-03-09T10:29:38.000Z
ex3_nn_TF2.py
Melykuti/Ng_Machine_learning_exercises
c561190ee2705b6af9432323d7639f6655c973e5
[ "BSD-3-Clause" ]
null
null
null
ex3_nn_TF2.py
Melykuti/Ng_Machine_learning_exercises
c561190ee2705b6af9432323d7639f6655c973e5
[ "BSD-3-Clause" ]
null
null
null
''' Neural networks. Forward propagation in an already trained network in TensorFlow 2.0-2.1 (to use the network for classification). TF 2.0: Option 0 takes 0.08 sec. Option 1 takes 0.08 sec. Option 6 takes 0.08 sec. Option 2 takes 4.7 sec. Option 3 takes 1.6 sec. Option 4 takes 5.2 sec. Option 5 takes 0.08 sec. Optio...
48.923077
347
0.70043
763
0.063131
0
0
1,223
0.101191
0
0
7,636
0.631805