hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
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
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
251
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
3
251
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
f14589148cdcd887c0aef6b10b5a56f95ad59841
1,389
py
Python
my_UpNDown/UpNDown_env.py
yifjiang/UCB-review
e5c96c0cf1977012edb7d6ea02ac5362e766980e
[ "MIT" ]
6
2018-05-01T14:25:37.000Z
2021-07-19T15:36:57.000Z
my_UpNDown/UpNDown_env.py
yifjiang/UCB-review
e5c96c0cf1977012edb7d6ea02ac5362e766980e
[ "MIT" ]
null
null
null
my_UpNDown/UpNDown_env.py
yifjiang/UCB-review
e5c96c0cf1977012edb7d6ea02ac5362e766980e
[ "MIT" ]
null
null
null
from gym.envs.atari.atari_env import AtariEnv from gym import spaces import numpy as np # return observation, reward_sum/4, done, info
38.583333
109
0.521238
f14691bf0dfdd285e473f195a1a0b4f5ae79472f
3,813
py
Python
src/anima_site.py
TheNetAdmin/AniMaid
54e6b593f49561d7bfd08e117675f69ad059132a
[ "MIT" ]
null
null
null
src/anima_site.py
TheNetAdmin/AniMaid
54e6b593f49561d7bfd08e117675f69ad059132a
[ "MIT" ]
4
2021-04-01T00:36:06.000Z
2021-12-11T02:08:49.000Z
src/anima_site.py
TheNetAdmin/AniMaid
54e6b593f49561d7bfd08e117675f69ad059132a
[ "MIT" ]
null
null
null
import logging import re import requests from dateutil.parser import parse as parse_time from json import JSONDecodeError
35.635514
159
0.552583
f14762183446dcbbb15ac368035ea80f2d697fd9
1,099
py
Python
test/fail_testcases.py
cmorterud/flask-eztest
3d0827c64e09c7787ec00f62ef8a94bb153ae9a5
[ "MIT" ]
1
2018-06-22T04:56:14.000Z
2018-06-22T04:56:14.000Z
test/fail_testcases.py
cmorterud/flask-eztest
3d0827c64e09c7787ec00f62ef8a94bb153ae9a5
[ "MIT" ]
null
null
null
test/fail_testcases.py
cmorterud/flask-eztest
3d0827c64e09c7787ec00f62ef8a94bb153ae9a5
[ "MIT" ]
2
2018-08-30T08:56:17.000Z
2019-05-08T15:20:26.000Z
from flaskeztest import EZTestCase from flaskeztest.exceptions import FixtureDoesNotExistError, EztestidNotInFixture
26.166667
87
0.66515
f147c644059fdd73863ea4fdd99a9a3c68be91b0
3,227
py
Python
datareduction/TestLinearRegression.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
datareduction/TestLinearRegression.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
datareduction/TestLinearRegression.py
andresmasegosa/PRML-CoreSets
fb768debb15e3ff6f5b65b7224915a41c1493f3d
[ "MIT" ]
null
null
null
import inferpy as inf import matplotlib.animation as animation import matplotlib.pyplot as plt import numpy as np from sklearn.cluster import KMeans from datareduction.variational_linear_regressor_DR import VariationalLinearRegressor_DR from prml.rv import VariationalGaussianMixture from prml.features import Polynom...
31.330097
164
0.704059
f14b4723145eab9e4983e1e31682b70ef51514f9
38,348
py
Python
tests/test_worldpop.py
mcarans/hdxscraper-worldpop
dcfd73df5af2fffb927a6ad39129f744a6f5debb
[ "MIT" ]
1
2017-09-02T15:07:43.000Z
2017-09-02T15:07:43.000Z
tests/test_worldpop.py
mcarans/hdxscraper-worldpop
dcfd73df5af2fffb927a6ad39129f744a6f5debb
[ "MIT" ]
1
2021-09-21T15:44:59.000Z
2021-09-22T22:47:42.000Z
tests/test_worldpop.py
mcarans/hdxscraper-worldpop
dcfd73df5af2fffb927a6ad39129f744a6f5debb
[ "MIT" ]
null
null
null
#!/usr/bin/python """ Unit tests for worldpop. """ from os.path import join import pytest from hdx.data.vocabulary import Vocabulary from hdx.hdx_configuration import Configuration from hdx.hdx_locations import Locations from hdx.location.country import Country from worldpop import ( generate_datasets_and_showca...
45.81601
183
0.541541
f14b7fd1ac391cc7123c9a3508a739a92e9a94f9
1,277
py
Python
fast/day02/day02.py
JerryDot/advent-2021-py
c3eb44b5989c276de0b5e721d3b8dfa1698796f1
[ "MIT" ]
null
null
null
fast/day02/day02.py
JerryDot/advent-2021-py
c3eb44b5989c276de0b5e721d3b8dfa1698796f1
[ "MIT" ]
null
null
null
fast/day02/day02.py
JerryDot/advent-2021-py
c3eb44b5989c276de0b5e721d3b8dfa1698796f1
[ "MIT" ]
null
null
null
from typing import Iterable, List, Tuple """ ----------> (1,0) | | | | v (0,1) """ if __name__ == "__main__": print(part_one(parse_input())) print(part_two(parse_input()))
22.803571
89
0.539546
f14c0cd89a3a51b3ae10b34f33f09e21ce1188ac
1,300
py
Python
a.py
sarthak7838/Music-Recommender-Web-App
cda0d1a73915495b05ef9b094fad509f34afc2b6
[ "MIT" ]
null
null
null
a.py
sarthak7838/Music-Recommender-Web-App
cda0d1a73915495b05ef9b094fad509f34afc2b6
[ "MIT" ]
null
null
null
a.py
sarthak7838/Music-Recommender-Web-App
cda0d1a73915495b05ef9b094fad509f34afc2b6
[ "MIT" ]
1
2021-12-03T20:51:50.000Z
2021-12-03T20:51:50.000Z
import requests as req from bs4 import BeautifulSoup import os import os.path import shutil try: r1=req.get("https://gaana.com/playlist/gaana-dj-best-of-badshah") c1=r1.content print(r) soup1=BeautifulSoup(c1,"html.parser") F1=soup1.find_all("a",{"class":"sng_c "}) #print(F1) namelist=[] #count=0 for i in F...
19.402985
82
0.636923
f14c3a534b6e2ff42a0b00e89103520a3c797b9c
638
py
Python
interest/migrations/0002_auto_20210523_2111.py
ianpierreg/recroom
86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe
[ "MIT" ]
null
null
null
interest/migrations/0002_auto_20210523_2111.py
ianpierreg/recroom
86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe
[ "MIT" ]
4
2021-05-02T01:14:59.000Z
2022-02-13T17:58:36.000Z
interest/migrations/0002_auto_20210523_2111.py
ianpierreg/recroom
86c21332ab533ea6aaf7b4a3428f18ba2c4d1ebe
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-05-23 21:11 from django.db import migrations, models
26.583333
121
0.60815
f14cca8920c13babdb5f450b2a03d4a66aa045bd
897
py
Python
utils.py
TrueNobility303/image-classification-CIFAR10
e0200d9b4d4f6ceaf058177abebd3f6510aebd9a
[ "MIT" ]
2
2021-06-10T16:19:50.000Z
2021-06-16T10:55:14.000Z
utils.py
TrueNobility303/image-classification-CIFAR10
e0200d9b4d4f6ceaf058177abebd3f6510aebd9a
[ "MIT" ]
null
null
null
utils.py
TrueNobility303/image-classification-CIFAR10
e0200d9b4d4f6ceaf058177abebd3f6510aebd9a
[ "MIT" ]
null
null
null
import numpy as np import torchvision import torch import matplotlib.pyplot as plt import torch import torchvision import torchvision.transforms as transforms from torch.utils.data import Dataset from torch.utils.data.dataloader import DataLoader from config import device import torch.nn as nn import torch.optim as opt...
27.181818
51
0.769231
f14e4386fd51245a77e8a6b909a18b755412d9be
2,068
py
Python
setup.py
xguse/holographer
d389655772afc5a5c4e458c763d59c25a8508f18
[ "MIT" ]
null
null
null
setup.py
xguse/holographer
d389655772afc5a5c4e458c763d59c25a8508f18
[ "MIT" ]
null
null
null
setup.py
xguse/holographer
d389655772afc5a5c4e458c763d59c25a8508f18
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ 'Click>=6.0', 'logzero', ...
30.865672
325
0.648936
f150530daa19fd258ee7528230b71a750194f14d
1,041
py
Python
data/transcoder_evaluation_gfg/python/NUMBER_SUBSTRINGS_DIVISIBLE_4_STRING_INTEGERS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
241
2021-07-20T08:35:20.000Z
2022-03-31T02:39:08.000Z
data/transcoder_evaluation_gfg/python/NUMBER_SUBSTRINGS_DIVISIBLE_4_STRING_INTEGERS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
49
2021-07-22T23:18:42.000Z
2022-03-24T09:15:26.000Z
data/transcoder_evaluation_gfg/python/NUMBER_SUBSTRINGS_DIVISIBLE_4_STRING_INTEGERS.py
mxl1n/CodeGen
e5101dd5c5e9c3720c70c80f78b18f13e118335a
[ "MIT" ]
71
2021-07-21T05:17:52.000Z
2022-03-29T23:49:28.000Z
# Copyright (c) 2019-present, Facebook, Inc. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. # #TOFILL if __name__ == '__main__': param = [ ('Qaq',), ('9400761825850',), ('0011001111',), ('lasWqrLRq',...
26.692308
90
0.480307
f156bf8245bfd78557645c9f4c7188cd9870a78f
846
py
Python
IPython/frontend/html/notebook/fabfile.py
3kwa/ipython
a5922fd39ed4b2067d64b285125278a850bb129f
[ "BSD-3-Clause-Clear" ]
1
2022-03-13T23:06:43.000Z
2022-03-13T23:06:43.000Z
IPython/frontend/html/notebook/fabfile.py
3kwa/ipython
a5922fd39ed4b2067d64b285125278a850bb129f
[ "BSD-3-Clause-Clear" ]
null
null
null
IPython/frontend/html/notebook/fabfile.py
3kwa/ipython
a5922fd39ed4b2067d64b285125278a850bb129f
[ "BSD-3-Clause-Clear" ]
null
null
null
""" fabfile to prepare the notebook """ from fabric.api import local,lcd from fabric.utils import abort import os static_dir = 'static' components_dir = os.path.join(static_dir,'components') def components(): """install components with bower""" with lcd(static_dir): local('bower install') def css(mi...
27.290323
93
0.674941
f15902568327420d51680a127a7bed4e1c5d6fac
2,028
py
Python
qchem/tests/test_molecular_hamiltonian.py
ryanlevy/pennylane
fb03b09d17267ebd0b9050432f9eeb84b5dff200
[ "Apache-2.0" ]
3
2021-02-22T18:30:55.000Z
2021-02-23T10:54:58.000Z
qchem/tests/test_molecular_hamiltonian.py
ryanlevy/pennylane
fb03b09d17267ebd0b9050432f9eeb84b5dff200
[ "Apache-2.0" ]
null
null
null
qchem/tests/test_molecular_hamiltonian.py
ryanlevy/pennylane
fb03b09d17267ebd0b9050432f9eeb84b5dff200
[ "Apache-2.0" ]
1
2021-03-27T09:03:15.000Z
2021-03-27T09:03:15.000Z
import os import pytest from pennylane import qchem from pennylane.vqe import Hamiltonian import numpy as np symbols = ["C", "C", "N", "H", "H", "H", "H", "H"] coordinates = np.array( [ 0.68219113, -0.85415621, -1.04123909, -1.34926445, 0.23621577, 0.61794044, ...
22.043478
95
0.569527
f1595406821dd1cc1d957a18aeecca6864b3bc11
1,106
py
Python
lims_dashboard/utils.py
alneberg/lims_dashboard
7a833a7d8e9548fb5012dad814e6c9b807454fe7
[ "MIT" ]
null
null
null
lims_dashboard/utils.py
alneberg/lims_dashboard
7a833a7d8e9548fb5012dad814e6c9b807454fe7
[ "MIT" ]
null
null
null
lims_dashboard/utils.py
alneberg/lims_dashboard
7a833a7d8e9548fb5012dad814e6c9b807454fe7
[ "MIT" ]
null
null
null
import os import subprocess import traceback import logging logger = logging.getLogger("lims_dashboard")
30.722222
115
0.644665
f15a182c95aa4785e3fe9ddf7f1191498aa88c8a
5,152
py
Python
chat/indico_chat/models/chatrooms.py
aristofanischionis/indico-plugins
abd67d8f5173aa0e2d80613cf8bef415e332d773
[ "MIT" ]
null
null
null
chat/indico_chat/models/chatrooms.py
aristofanischionis/indico-plugins
abd67d8f5173aa0e2d80613cf8bef415e332d773
[ "MIT" ]
null
null
null
chat/indico_chat/models/chatrooms.py
aristofanischionis/indico-plugins
abd67d8f5173aa0e2d80613cf8bef415e332d773
[ "MIT" ]
null
null
null
# This file is part of the Indico plugins. # Copyright (C) 2002 - 2019 CERN # # The Indico plugins are free software; you can redistribute # them and/or modify them under the terms of the MIT License; # see the LICENSE file for more details. from __future__ import unicode_literals from indico.core.db.sqlalchemy impor...
26.694301
93
0.60132
f15d8051b598f82bae1097c948afd6ba6185c62e
69
py
Python
test_settings.py
praekelt/django-richcomments
e1b2e123bf46135fd2bdf8fa810e4995e641db72
[ "BSD-3-Clause" ]
2
2015-01-22T19:16:06.000Z
2015-04-28T19:12:45.000Z
test_settings.py
praekelt/django-richcomments
e1b2e123bf46135fd2bdf8fa810e4995e641db72
[ "BSD-3-Clause" ]
null
null
null
test_settings.py
praekelt/django-richcomments
e1b2e123bf46135fd2bdf8fa810e4995e641db72
[ "BSD-3-Clause" ]
null
null
null
DATABASE_ENGINE = 'sqlite3' INSTALLED_APPS = [ 'richcomments' ]
11.5
27
0.695652
f15fcf355f967e1d7ebc0044368b9e8988697682
1,272
py
Python
fiasco_api/expenses/models.py
xelnod/fiasco_backend
edeca8cac8c7b1a1cc53051d4443cc2996eba37c
[ "MIT" ]
null
null
null
fiasco_api/expenses/models.py
xelnod/fiasco_backend
edeca8cac8c7b1a1cc53051d4443cc2996eba37c
[ "MIT" ]
null
null
null
fiasco_api/expenses/models.py
xelnod/fiasco_backend
edeca8cac8c7b1a1cc53051d4443cc2996eba37c
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings from core.mixins import Trackable
34.378378
129
0.749214
f1619cbdb55c21eebfd2ca8844452a484636f5b9
775
py
Python
photos/migrations/0001_initial.py
erastus-1/Gallery
67a8d61d6d017cb8a78462678b54da782150d2c9
[ "MIT" ]
null
null
null
photos/migrations/0001_initial.py
erastus-1/Gallery
67a8d61d6d017cb8a78462678b54da782150d2c9
[ "MIT" ]
null
null
null
photos/migrations/0001_initial.py
erastus-1/Gallery
67a8d61d6d017cb8a78462678b54da782150d2c9
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-09 06:50 import cloudinary.models from django.db import migrations, models
29.807692
115
0.609032
f1630ee487947a7bff056c1c6a14584627e28798
2,832
py
Python
circle_core/web/api/replication_masters.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
3
2019-01-11T04:30:18.000Z
2019-01-11T04:31:18.000Z
circle_core/web/api/replication_masters.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
16
2018-11-21T11:47:18.000Z
2021-09-01T03:52:35.000Z
circle_core/web/api/replication_masters.py
glucoseinc/CircleCore
577f814ce2944efb6e5997f3d7838c71ce9aea6a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """API.""" # community module from flask import abort, request import sqlalchemy.exc # project module from circle_core.models import MetaDataSession, ReplicationMaster from .api import api from .utils import respond_failure, respond_success from ..utils import (oauth_require_read_schema_scop...
29.5
89
0.754237
f163e4eec92c5b9acccead12e1775a3ab901332a
532
py
Python
src/Blog/assets.py
sadmanbd/wagtailblog
adeccb29826200cb1bedc658a0f1c57c2f705d0e
[ "MIT" ]
1
2020-04-20T05:38:01.000Z
2020-04-20T05:38:01.000Z
src/Blog/assets.py
sadmanbd/wagtailblog
adeccb29826200cb1bedc658a0f1c57c2f705d0e
[ "MIT" ]
8
2020-02-11T21:41:52.000Z
2022-01-13T00:33:02.000Z
src/Blog/assets.py
sadmanbd/wagtailblog
adeccb29826200cb1bedc658a0f1c57c2f705d0e
[ "MIT" ]
null
null
null
from django.conf import settings from django_assets import Bundle, register from webassets.filter import get_filter libsass = get_filter("libsass", style="compressed") css_libs = Bundle( settings.BASE_DIR + "/assets/styles/css/libs/normalize.css", filters="cssutils", output="css/libs.css" ) css_custom ...
21.28
64
0.716165
f165f215e0f29ecdf542caf1a3d19feab64687a9
2,864
py
Python
lib/tools/job_launcher.py
anonconda/RTDmaker
ac2a070ba26933194aa13041e1fdf92cbc39f201
[ "MIT" ]
1
2021-04-13T18:30:14.000Z
2021-04-13T18:30:14.000Z
lib/tools/job_launcher.py
anonconda/RTDmaker
ac2a070ba26933194aa13041e1fdf92cbc39f201
[ "MIT" ]
null
null
null
lib/tools/job_launcher.py
anonconda/RTDmaker
ac2a070ba26933194aa13041e1fdf92cbc39f201
[ "MIT" ]
null
null
null
import os import sys import time import multiprocessing from subprocess import Popen from multiprocessing.pool import ThreadPool
34.506024
118
0.651885
f1677483d30c15fa4a7bd2f5195ec1678c9aa75b
2,803
py
Python
1c_GT_Computer_Networks/Project-3/Topology.py
yevheniyc/Python
262842477793d65c2b382ca810867fd24a415576
[ "MIT" ]
4
2016-08-28T03:21:36.000Z
2021-01-19T01:59:17.000Z
1c_GT_Computer_Networks/Project-3/Topology.py
yevheniyc/Python
262842477793d65c2b382ca810867fd24a415576
[ "MIT" ]
null
null
null
1c_GT_Computer_Networks/Project-3/Topology.py
yevheniyc/Python
262842477793d65c2b382ca810867fd24a415576
[ "MIT" ]
1
2018-05-20T12:33:23.000Z
2018-05-20T12:33:23.000Z
# Assignment 3 for OMS6250 # # Defines a Topology, which is a collection of Nodes. Students should not # modify this file. This is NOT a topology like the ones defined in Mininet projects. # # Copyright 2015 Sean Donovan from DistanceVector import *
35.0375
86
0.585801
f168e53e39bdfc41294178fc34531c937c9a2329
250
py
Python
code2/day13/demo03.py
picktsh/python
0f758dcdf9eee3580d8f6e2241ef557b6320ef54
[ "MIT" ]
1
2019-12-31T16:44:06.000Z
2019-12-31T16:44:06.000Z
code2/day13/demo03.py
picktsh/python
0f758dcdf9eee3580d8f6e2241ef557b6320ef54
[ "MIT" ]
null
null
null
code2/day13/demo03.py
picktsh/python
0f758dcdf9eee3580d8f6e2241ef557b6320ef54
[ "MIT" ]
1
2022-01-13T10:32:22.000Z
2022-01-13T10:32:22.000Z
# items.py import scrapy # scrapy
17.857143
37
0.68
f1698183cab47657356ca5d40e4c3268c220a1ca
2,388
py
Python
malware.py
c0zzy/semi-supervised-ann
5b458774388d79f64b19ca696afb0d42ed403731
[ "MIT" ]
null
null
null
malware.py
c0zzy/semi-supervised-ann
5b458774388d79f64b19ca696afb0d42ed403731
[ "MIT" ]
null
null
null
malware.py
c0zzy/semi-supervised-ann
5b458774388d79f64b19ca696afb0d42ed403731
[ "MIT" ]
null
null
null
import copy from alg.semi_supervised import SemiSupervised from lib.ops import evaluate from lib.utils import load_avast_weeks_pca, parse_arguments args = parse_arguments() dataset_avast_pca = { 'name': 'avast_pca', 'input_size': 128, 'num_classes': 5, 'mlp_arch': [96, 64, 32], 'visualise_funcs':...
27.767442
98
0.652429
f16a774d5548b032544d49f97e7b259834c08fa6
580
py
Python
one cmd creator/defaults.py
JustRedTTG/one-command-block-creator
81f57da5be04d6b19332b7b0da2db6b2cee088a1
[ "MIT" ]
null
null
null
one cmd creator/defaults.py
JustRedTTG/one-command-block-creator
81f57da5be04d6b19332b7b0da2db6b2cee088a1
[ "MIT" ]
null
null
null
one cmd creator/defaults.py
JustRedTTG/one-command-block-creator
81f57da5be04d6b19332b7b0da2db6b2cee088a1
[ "MIT" ]
null
null
null
functions = { 'default-start':"""@minecraft:activator_rail\n""", 'default-end':"""setblock ~ ~1 ~ minecraft:chain_command_block[facing=up]{auto:1,Command:"fill ~ ~ ~ ~ ~-2 ~ air"} setblock ~ ~ ~ minecraft:command_block[facing=up]{auto:1,Command:"kill @e[type=minecraft:command_block_minecart,distance=..2]"}\n"""...
72.5
133
0.687931
f16aaf2fc0ac983255c89745ef68d2c5983e2b39
593
py
Python
phishfry/remediation_result.py
krayzpipes/phishfry
6da69548ae6970e2bc773d112509a7c94ce0e265
[ "Apache-2.0" ]
null
null
null
phishfry/remediation_result.py
krayzpipes/phishfry
6da69548ae6970e2bc773d112509a7c94ce0e265
[ "Apache-2.0" ]
3
2019-12-31T00:12:12.000Z
2020-01-03T13:43:30.000Z
phishfry/remediation_result.py
krayzpipes/phishfry
6da69548ae6970e2bc773d112509a7c94ce0e265
[ "Apache-2.0" ]
2
2019-02-12T21:01:20.000Z
2019-04-22T17:41:46.000Z
import logging log = logging.getLogger(__name__)
28.238095
94
0.640809
f16b40ca452b4c54cacfb36dfaca7d833512d61a
10,452
py
Python
psyIP.py
chocosobo/psypy
ebaa9e59a70117acf3182f86d7ab7fc3c40338c3
[ "MIT" ]
6
2015-07-24T05:08:52.000Z
2017-12-08T04:39:22.000Z
psyIP.py
chocosobo/psypy
ebaa9e59a70117acf3182f86d7ab7fc3c40338c3
[ "MIT" ]
1
2017-08-23T21:40:17.000Z
2017-09-27T00:32:55.000Z
psyIP.py
chocosobo/psypy
ebaa9e59a70117acf3182f86d7ab7fc3c40338c3
[ "MIT" ]
7
2019-09-14T18:16:05.000Z
2021-11-26T15:34:26.000Z
import math as m # All functions expect base SI units for any arguments given # DBT - Dry bulb temperature - Degrees Rankine, R # DPT - Dew point temperature - Degress Rankine, R # H - Specific enthalpy - British thermal unit per pound mass, # ...
28.557377
80
0.540088
f16b53621b6f62b6b1717b1dbba16b70894bb004
391
py
Python
newday2/App/hello.py
greatfirsty/hellopython
f12aacf36b8f208d6c5622ffd6b4c1927f37b45a
[ "Apache-2.0" ]
1
2019-05-04T01:25:43.000Z
2019-05-04T01:25:43.000Z
newday2/App/hello.py
greatfirsty/hellopython
f12aacf36b8f208d6c5622ffd6b4c1927f37b45a
[ "Apache-2.0" ]
null
null
null
newday2/App/hello.py
greatfirsty/hellopython
f12aacf36b8f208d6c5622ffd6b4c1927f37b45a
[ "Apache-2.0" ]
null
null
null
import time # if __name__=='__main__': sub()
15.64
39
0.598465
f16cd046c1d5bc8c482c76596f8d465b56eb49c5
667
py
Python
too_simple_server/__main__.py
outcatcher/Simple-Mock-Webserver
315bccca9dea9e821bb0a02878187058cd1fe38f
[ "MIT" ]
null
null
null
too_simple_server/__main__.py
outcatcher/Simple-Mock-Webserver
315bccca9dea9e821bb0a02878187058cd1fe38f
[ "MIT" ]
3
2019-09-04T13:22:46.000Z
2019-09-13T09:35:51.000Z
too_simple_server/__main__.py
opentelekomcloud-infra/Simple-Mock-Webserver
315bccca9dea9e821bb0a02878187058cd1fe38f
[ "MIT" ]
null
null
null
"""Run server as module""" from argparse import ArgumentParser from too_simple_server.configuration import DEFAULT_CFG_PATH from too_simple_server.run import main AGP = ArgumentParser(description="Mock server with simple DB interactions") AGP.add_argument("--debug", action="store_true", default=None) AGP.add_argument...
41.6875
100
0.758621
f16d85b67524c6dca5cdb704cfed6566472ca5d7
10,239
py
Python
tests/test_vmtkScripts/test_vmtksurfacecelldatatopointdata.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
null
null
null
tests/test_vmtkScripts/test_vmtksurfacecelldatatopointdata.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
null
null
null
tests/test_vmtkScripts/test_vmtksurfacecelldatatopointdata.py
ramtingh/vmtk
4d6f58ce65d73628353ba2b110cbc29a2e7aa7b3
[ "Apache-2.0" ]
1
2019-06-18T23:41:11.000Z
2019-06-18T23:41:11.000Z
## Program: VMTK ## Language: Python ## Date: February 12, 2018 ## Version: 1.4 ## Copyright (c) Richard Izzo, Luca Antiga, All rights reserved. ## See LICENSE file for details. ## This software is distributed WITHOUT ANY WARRANTY; without even ## the implied warranty of MERCHANTABILITY or FITNE...
61.680723
97
0.377381
f1729eaefd848cb322cd91bf8c15356b94b4a070
3,038
py
Python
SIM_utils/SIM.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
14
2021-06-01T16:45:19.000Z
2022-03-08T20:07:00.000Z
SIM_utils/SIM.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
null
null
null
SIM_utils/SIM.py
facebookresearch/Project_FARSI
12b40e4f16ba7418a0f3b997ad124cdb51f4e7f4
[ "MIT" ]
3
2021-08-05T16:37:47.000Z
2022-01-06T00:25:49.000Z
#Copyright (c) Facebook, Inc. and its affiliates. #This source code is licensed under the MIT license found in the #LICENSE file in the root directory of this source tree. from SIM_utils.components.perf_sim import * from SIM_utils.components.pow_sim import * #from OSSIM_utils.components.pow_knob_sim import * from desi...
40.506667
114
0.629032
f1743c6ed7aff9eadd1ebcb064f885173f6e5cef
5,992
py
Python
netbox_graphql/tests/ipam/tests_vlans.py
ninech/django-netbox-graphql
8383570bdf3a8ce8d9d912c5b8f7b053b31c7363
[ "MIT" ]
17
2017-08-17T02:38:09.000Z
2022-01-05T15:36:20.000Z
netbox_graphql/tests/ipam/tests_vlans.py
ninech/django-netbox-graphql
8383570bdf3a8ce8d9d912c5b8f7b053b31c7363
[ "MIT" ]
2
2017-09-13T14:53:56.000Z
2018-02-08T14:06:54.000Z
netbox_graphql/tests/ipam/tests_vlans.py
ninech/django-netbox-graphql
8383570bdf3a8ce8d9d912c5b8f7b053b31c7363
[ "MIT" ]
2
2020-03-04T11:51:10.000Z
2021-03-11T19:24:37.000Z
from string import Template from graphene.test import Client from django.test import TestCase from ipam.models import VLAN from netbox_graphql.schema import schema from netbox_graphql.tests.utils import obj_to_global_id from netbox_graphql.tests.factories.ipam_factories import VLANFactory, RoleFactory from netbox_g...
30.571429
99
0.524866
f175d2c9f715e287b74b3835941c2fefef41cc0e
36,264
py
Python
ncdiff/src/yang/ncdiff/gnmi.py
tahigash/yang
f74d4549421a4ca3b9bc9ee46194d9c3810fd32a
[ "Apache-2.0" ]
null
null
null
ncdiff/src/yang/ncdiff/gnmi.py
tahigash/yang
f74d4549421a4ca3b9bc9ee46194d9c3810fd32a
[ "Apache-2.0" ]
null
null
null
ncdiff/src/yang/ncdiff/gnmi.py
tahigash/yang
f74d4549421a4ca3b9bc9ee46194d9c3810fd32a
[ "Apache-2.0" ]
null
null
null
import re import json import logging from lxml import etree from copy import deepcopy from xmljson import Parker from ncclient import xml_ from xml.etree import ElementTree from collections import OrderedDict, defaultdict from .errors import ModelError from .composer import Tag, Composer from .calculator import BaseCa...
41.875289
90
0.506866
f177e6a7009b15c338ed0becd47586ed6aaec891
3,927
py
Python
tournament/tournament.py
ross-schlie/exercism-Python-track
4db690d11377377fc6f5cef6422da497272bbb31
[ "MIT" ]
null
null
null
tournament/tournament.py
ross-schlie/exercism-Python-track
4db690d11377377fc6f5cef6422da497272bbb31
[ "MIT" ]
null
null
null
tournament/tournament.py
ross-schlie/exercism-Python-track
4db690d11377377fc6f5cef6422da497272bbb31
[ "MIT" ]
null
null
null
"""exercism tournament module.""" def tally(rows): """Tally the results of a small football competition. Parameters ---------- arg1 : list A list of the results of matches in the competition Example: "Allegoric Alaskans;Blithering Badgers;win" Returns ------ string ...
26.18
73
0.531958
f17945798753686fc982268f9cb799a7cdccba0f
1,816
py
Python
extensions/prefix_handler.py
Elfein7Night/ElfBot
5967b2b87569badab3ad60d2ecaa139d86bbb093
[ "MIT" ]
null
null
null
extensions/prefix_handler.py
Elfein7Night/ElfBot
5967b2b87569badab3ad60d2ecaa139d86bbb093
[ "MIT" ]
null
null
null
extensions/prefix_handler.py
Elfein7Night/ElfBot
5967b2b87569badab3ad60d2ecaa139d86bbb093
[ "MIT" ]
null
null
null
import logging from discord import Message from discord.ext.commands import Cog, Context, command, has_permissions, Bot from utils.utils import log_event, db, get_dict from extensions.extension_templates import DatabaseHandler DEFAULT_PREFIX = '?' PREFIXES_DB_KEY = 'prefixes_for_servers' ###########################...
34.923077
98
0.701542
f17afddf883e4061f0668498c50ef2b1d40f471f
190
py
Python
app/gws/server/spool.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/gws/server/spool.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/gws/server/spool.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
import gws import importlib
19
44
0.663158
f17b300d0d9a14ab776efbe26b4bf7268c4f862a
4,116
py
Python
snakeskin/config.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
5
2019-08-08T17:16:02.000Z
2021-05-15T07:28:31.000Z
snakeskin/config.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
4
2019-08-20T15:07:12.000Z
2020-07-31T17:50:51.000Z
snakeskin/config.py
healthverity/snakeskin-fabric
31ba7fa5a71445eba76f89723c998d603704e0f9
[ "Apache-2.0" ]
2
2019-08-20T15:22:48.000Z
2019-12-17T19:38:55.000Z
""" Blockchain configuration """ import os import json from dataclasses import dataclass, field, replace from typing import List, Mapping, Optional import yaml import dacite from .models import Peer, Channel, User, Orderer, ChaincodeSpec from .models.gateway import Gateway from .constants import ChaincodeLanguag...
34.3
89
0.617104
f17d0d49e5fc9b163d91e5df674590e6e4cad918
1,570
py
Python
quantifier.py
daibiaoxuwu/cnn-text-classification-tf
595008c44acef7fa4dd45d1d943f0b8314e6b635
[ "Apache-2.0" ]
null
null
null
quantifier.py
daibiaoxuwu/cnn-text-classification-tf
595008c44acef7fa4dd45d1d943f0b8314e6b635
[ "Apache-2.0" ]
null
null
null
quantifier.py
daibiaoxuwu/cnn-text-classification-tf
595008c44acef7fa4dd45d1d943f0b8314e6b635
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import nltk from papersmith.editor.issue import Issue
35.681818
264
0.564331
f17d6fabf9fa920276d161547a20c9812814326f
4,038
py
Python
doc/ansible/__init__.py
jansenm/ansible-jenkins-roles
73330c53d197b5161d2b46dd27aa609e03902485
[ "BSD-3-Clause" ]
10
2015-12-30T17:49:19.000Z
2019-12-16T15:58:11.000Z
doc/ansible/__init__.py
jansenm/ansible-jenkins-roles
73330c53d197b5161d2b46dd27aa609e03902485
[ "BSD-3-Clause" ]
null
null
null
doc/ansible/__init__.py
jansenm/ansible-jenkins-roles
73330c53d197b5161d2b46dd27aa609e03902485
[ "BSD-3-Clause" ]
8
2016-10-21T04:13:14.000Z
2020-11-10T19:48:06.000Z
import docutils import docutils.nodes import docutils.parsers.rst import docutils.parsers.rst.directives import sphinx.addnodes import sphinx.application import sphinx.directives import sphinx.domains import sphinx.environment import sphinx.locale import sphinx.roles import sphinx.util.compat import sphinx.util.docfiel...
28.041667
82
0.567112
f17fd326827766f921f6b7614a4cdc197d55723b
2,068
py
Python
odps/pai/nodes/transform_nodes.py
ZZHGit/aliyun-odps-python-sdk
e1c39378863ec7a1947487acab38125ac77f178e
[ "Apache-2.0" ]
null
null
null
odps/pai/nodes/transform_nodes.py
ZZHGit/aliyun-odps-python-sdk
e1c39378863ec7a1947487acab38125ac77f178e
[ "Apache-2.0" ]
null
null
null
odps/pai/nodes/transform_nodes.py
ZZHGit/aliyun-odps-python-sdk
e1c39378863ec7a1947487acab38125ac77f178e
[ "Apache-2.0" ]
1
2019-09-18T05:35:29.000Z
2019-09-18T05:35:29.000Z
# encoding: utf-8 # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "Licens...
50.439024
121
0.729207
f17fd5450289443b6d91376201627bb8e37f188a
12,302
py
Python
kk/api/views.py
icw82/django-kk
b84c41ceb9f6de4fc94ef4b353583bfec70d6fed
[ "MIT" ]
null
null
null
kk/api/views.py
icw82/django-kk
b84c41ceb9f6de4fc94ef4b353583bfec70d6fed
[ "MIT" ]
null
null
null
kk/api/views.py
icw82/django-kk
b84c41ceb9f6de4fc94ef4b353583bfec70d6fed
[ "MIT" ]
null
null
null
import re import datetime import time import urllib import json from inspect import ismethod from django.views import generic from django.utils import timezone from django.utils.decorators import classonlymethod from django.db.models import ( Model, Manager, AutoField, CharField ) from django.db.models.query impo...
27.037363
78
0.520728
f180d4f03f7e3782891a070c90168ee6769dbd4b
2,393
py
Python
boardfarm/devices/authenticated_telnet.py
nickberry17/boardfarm
80f24fc97eff9a987250a6334b76eff08e001189
[ "BSD-3-Clause-Clear" ]
17
2018-04-19T08:35:47.000Z
2021-11-01T01:38:33.000Z
boardfarm/devices/authenticated_telnet.py
nickberry17/boardfarm
80f24fc97eff9a987250a6334b76eff08e001189
[ "BSD-3-Clause-Clear" ]
190
2018-04-19T07:00:18.000Z
2022-02-11T01:42:51.000Z
boardfarm/devices/authenticated_telnet.py
nickberry17/boardfarm
80f24fc97eff9a987250a6334b76eff08e001189
[ "BSD-3-Clause-Clear" ]
30
2018-04-12T01:49:21.000Z
2022-02-11T14:53:19.000Z
import pexpect import boardfarm.config as config from boardfarm.lib.bft_pexpect_helper import bft_pexpect_helper
34.681159
92
0.617635
f182e3c76127620cdb609d77542bf57fc763d905
3,616
py
Python
Scripts/generateOTTagsModule.py
justvanrossum/fontgoggles
0054f17d3c82938f62468c0cdb7d90b68c76d396
[ "Apache-2.0" ]
308
2020-02-17T10:08:17.000Z
2022-03-27T19:47:49.000Z
Scripts/generateOTTagsModule.py
justvanrossum/fontgoggles
0054f17d3c82938f62468c0cdb7d90b68c76d396
[ "Apache-2.0" ]
147
2020-02-17T10:03:56.000Z
2022-03-28T17:37:09.000Z
Scripts/generateOTTagsModule.py
justvanrossum/fontgoggles
0054f17d3c82938f62468c0cdb7d90b68c76d396
[ "Apache-2.0" ]
41
2020-02-25T16:15:51.000Z
2022-03-12T00:02:11.000Z
import os import re # https://docs.microsoft.com/en-us/typography/opentype/spec/featurelist # https://docs.microsoft.com/en-us/typography/opentype/spec/scripttags # https://docs.microsoft.com/en-us/typography/opentype/spec/languagetags if __name__ == "__main__": import sys import time baseURL = "http...
32
76
0.535675
f182fcd36ab8f4942153a6e6391bae9fda5d3a4a
241
py
Python
core/test.py
tianyaqu/guess-your-song
3655ca2091b49c5934235c3fd8dd4442eed200d6
[ "MIT" ]
15
2015-08-01T01:57:14.000Z
2021-10-30T10:09:19.000Z
core/test.py
tianyaqu/guess-your-song
3655ca2091b49c5934235c3fd8dd4442eed200d6
[ "MIT" ]
null
null
null
core/test.py
tianyaqu/guess-your-song
3655ca2091b49c5934235c3fd8dd4442eed200d6
[ "MIT" ]
6
2016-04-10T14:49:15.000Z
2020-03-09T04:15:41.000Z
from melody_feature import * if __name__ == '__main__': file = 'alphaville-forever_young.mid' for k,note in note_from_midi_test(file): print k name = 'forever_youngy' + str(k)+'.txt' vector_to_file(note,name)
30.125
47
0.655602
f183e8d9598657f18e0da5ccceacb5083a04c145
4,000
py
Python
tests/test_request_logging_middleware.py
quoth/fastapi-cloud-logging
680f5ab6d90a6d06d1037845a23f355cc6d3b0fe
[ "MIT" ]
null
null
null
tests/test_request_logging_middleware.py
quoth/fastapi-cloud-logging
680f5ab6d90a6d06d1037845a23f355cc6d3b0fe
[ "MIT" ]
null
null
null
tests/test_request_logging_middleware.py
quoth/fastapi-cloud-logging
680f5ab6d90a6d06d1037845a23f355cc6d3b0fe
[ "MIT" ]
null
null
null
import pytest from fastapi import Request from pytest_mock import MockerFixture from starlette.datastructures import Headers from fastapi_cloud_logging.request_logging_middleware import ( _FASTAPI_REQUEST_CONTEXT, RequestLoggingMiddleware, )
30.075188
94
0.48975
f1848a6a488cda88f054bb7571aceea97a0b3d14
690
py
Python
spam-filter/NaiveBayesClassifier.py
sevmardi/ml-projects
0eb218c77cda61285cfcf599599ff28a8a8deba7
[ "MIT" ]
null
null
null
spam-filter/NaiveBayesClassifier.py
sevmardi/ml-projects
0eb218c77cda61285cfcf599599ff28a8a8deba7
[ "MIT" ]
7
2020-06-06T01:26:08.000Z
2022-02-10T11:26:58.000Z
spam-filter/NaiveBayesClassifier.py
sevmardi/ml-projects
0eb218c77cda61285cfcf599599ff28a8a8deba7
[ "MIT" ]
null
null
null
import MailSpamFilter
31.363636
70
0.671014
f18699f6bd3e257501ff398db9ec35282969ef93
311
py
Python
app/middleware/python/ram_usage.py
anhquoctran/node-rpi-monsys
5c0e7c5b4b7bf6de966dfb6ffe32bd283fb8fb7a
[ "MIT" ]
null
null
null
app/middleware/python/ram_usage.py
anhquoctran/node-rpi-monsys
5c0e7c5b4b7bf6de966dfb6ffe32bd283fb8fb7a
[ "MIT" ]
null
null
null
app/middleware/python/ram_usage.py
anhquoctran/node-rpi-monsys
5c0e7c5b4b7bf6de966dfb6ffe32bd283fb8fb7a
[ "MIT" ]
null
null
null
#!/usr/bin/env python import psutil import sys import time # Return Virtual Memory Usage as a JSON if __name__ == '__main__': get_memory_percentage()
19.4375
43
0.665595
f186dbe8c5a6f32bd57f511982e06c3f8a0977c9
1,055
py
Python
api/tests/snapshots/snap_test_api.py
City-of-Helsinki/notification-service-api
1c4c6d900de5f2ce9ce9becb6774d10892084ede
[ "MIT" ]
null
null
null
api/tests/snapshots/snap_test_api.py
City-of-Helsinki/notification-service-api
1c4c6d900de5f2ce9ce9becb6774d10892084ede
[ "MIT" ]
17
2020-07-07T12:08:34.000Z
2021-06-10T20:26:20.000Z
api/tests/snapshots/snap_test_api.py
City-of-Helsinki/notification-service-api
1c4c6d900de5f2ce9ce9becb6774d10892084ede
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots["test_send_sms 1"] = { "errors": [], "messages": {"+358461231231": {"converted": "+358461231231", "status": "CREATED"}}, "warnings"...
25.731707
87
0.563033
f18777bf37a356b77a08bfd81442ba10cd669ef2
2,552
py
Python
metrics.py
alexjercan/normals-estimation
6f18f9248b7c01842f0d4ba57cde5227a893f506
[ "MIT" ]
null
null
null
metrics.py
alexjercan/normals-estimation
6f18f9248b7c01842f0d4ba57cde5227a893f506
[ "MIT" ]
null
null
null
metrics.py
alexjercan/normals-estimation
6f18f9248b7c01842f0d4ba57cde5227a893f506
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Developed by Alex Jercan <jercan_alex27@yahoo.com> # # References: # - https://github.com/XinJCheng/CSPN/blob/b3e487bdcdcd8a63333656e69b3268698e543181/cspn_pytorch/utils.py#L19 # - https://web.eecs.umich.edu/~fouhey/2016/evalSN/evalSN.html # from math import radians import torch import torc...
35.444444
138
0.653605
f18793cae2b85ec27dc63fa7682a9e35d2982e31
102
py
Python
test/test_parse.py
aagnone3/edit-learn
1e033e3e358510f5400f1c7cc5687cafdcef1a00
[ "Apache-2.0" ]
null
null
null
test/test_parse.py
aagnone3/edit-learn
1e033e3e358510f5400f1c7cc5687cafdcef1a00
[ "Apache-2.0" ]
2
2018-06-17T21:16:37.000Z
2018-06-17T23:38:31.000Z
test/test_parse.py
aagnone3/edit-learn
1e033e3e358510f5400f1c7cc5687cafdcef1a00
[ "Apache-2.0" ]
null
null
null
import numpy import ielearn from ielearn import extract, predict, util
12.75
42
0.784314
f188a72c45fc5d13f8ee8845ece06a14fed39304
2,088
py
Python
pyfarm/models/statistics/task_count.py
guidow/pyfarm-master
d41c8f1eb5bfefb8400d400bcecadf197bcfb80a
[ "Apache-2.0" ]
null
null
null
pyfarm/models/statistics/task_count.py
guidow/pyfarm-master
d41c8f1eb5bfefb8400d400bcecadf197bcfb80a
[ "Apache-2.0" ]
null
null
null
pyfarm/models/statistics/task_count.py
guidow/pyfarm-master
d41c8f1eb5bfefb8400d400bcecadf197bcfb80a
[ "Apache-2.0" ]
null
null
null
# No shebang line, this module is meant to be imported # # Copyright 2015 Ambient Entertainment GmbH & Co. KG # # 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/lice...
29.408451
77
0.690134
f189b87dcc3283704fc6b747b9d51de15714a10a
2,817
py
Python
malware prediction.py
Highcourtdurai/AI-prediction
bea4c19c0c9bf3432be6cf61f9a4992d3070746c
[ "Apache-2.0" ]
null
null
null
malware prediction.py
Highcourtdurai/AI-prediction
bea4c19c0c9bf3432be6cf61f9a4992d3070746c
[ "Apache-2.0" ]
null
null
null
malware prediction.py
Highcourtdurai/AI-prediction
bea4c19c0c9bf3432be6cf61f9a4992d3070746c
[ "Apache-2.0" ]
null
null
null
import warnings warnings.filterwarnings('ignore') import pandas as pd import numpy as np import seaborn as sns #from sklearn.svm import SVC #from sklearn.model_selection import KFold from sklearn import preprocessing import matplotlib.pyplot as plt data=pd.read_csv('android.csv') print(data.shape) da...
23.475
102
0.746539
f18ade7811c36ebc2634566008604890a3cd1f7b
3,147
py
Python
_unittests/ut_ipythonhelper/test_ipythonhelper.py
janjagusch/pyquickhelper
d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b
[ "MIT" ]
18
2015-11-10T08:09:23.000Z
2022-02-16T11:46:45.000Z
_unittests/ut_ipythonhelper/test_ipythonhelper.py
janjagusch/pyquickhelper
d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b
[ "MIT" ]
321
2015-06-14T21:34:28.000Z
2021-11-28T17:10:03.000Z
_unittests/ut_ipythonhelper/test_ipythonhelper.py
janjagusch/pyquickhelper
d42e1579ea20f5add9a9cd2b6d2d0a3533aee40b
[ "MIT" ]
10
2015-06-20T01:35:00.000Z
2022-01-19T15:54:32.000Z
""" @brief test log(time=2s) """ import sys import os import unittest from pyquickhelper.pycode import ExtTestCase from pyquickhelper.ipythonhelper import AutoCompletion, AutoCompletionFile, MagicCommandParser, MagicClassWithHelpers, open_html_form if __name__ == "__main__": unittest.main()
34.582418
133
0.57674
f18bd24ea799cc66f95a6e5ba34ff5211de2b387
30
py
Python
time_execution/__init__.py
snelis/py-timeexecution
f08bf6b9c5307a50b3ee1190f79bf74dc920f8da
[ "Apache-2.0" ]
null
null
null
time_execution/__init__.py
snelis/py-timeexecution
f08bf6b9c5307a50b3ee1190f79bf74dc920f8da
[ "Apache-2.0" ]
null
null
null
time_execution/__init__.py
snelis/py-timeexecution
f08bf6b9c5307a50b3ee1190f79bf74dc920f8da
[ "Apache-2.0" ]
null
null
null
from .time_execution import *
15
29
0.8
f18f7a49dc45e6932d4b5a8e61c3228a5317f294
1,129
py
Python
tests/unit/lib/bundle_cli_test.py
kl-chou/codalab-worksheets
101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7
[ "Apache-2.0" ]
236
2015-12-29T22:50:03.000Z
2022-03-28T21:12:34.000Z
tests/unit/lib/bundle_cli_test.py
kl-chou/codalab-worksheets
101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7
[ "Apache-2.0" ]
2,628
2015-12-27T09:45:13.000Z
2022-03-30T16:18:25.000Z
tests/unit/lib/bundle_cli_test.py
kl-chou/codalab-worksheets
101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7
[ "Apache-2.0" ]
87
2015-12-30T01:36:46.000Z
2022-03-08T15:21:30.000Z
import unittest from codalab.lib.bundle_cli import BundleCLI
38.931034
78
0.667848
f18f9e7f23115fa084cf6bfe20683d0f105bb79e
116
py
Python
src/bgpfu/io.py
bgpfu/bgpfu
6dcb236914d49ab8fb595d8a6d300f36ecf1e152
[ "Apache-2.0" ]
12
2017-08-18T14:39:43.000Z
2021-11-21T16:50:45.000Z
src/bgpfu/io.py
bgpfu/bgpfu
6dcb236914d49ab8fb595d8a6d300f36ecf1e152
[ "Apache-2.0" ]
17
2017-04-03T22:51:30.000Z
2021-06-17T12:48:58.000Z
src/bgpfu/io.py
bgpfu/bgpfu
6dcb236914d49ab8fb595d8a6d300f36ecf1e152
[ "Apache-2.0" ]
2
2017-04-04T18:25:22.000Z
2019-07-29T08:36:38.000Z
# import to namespace from gevent import select, socket # noqa from gevent.queue import Empty, Full, Queue # noqa
29
51
0.758621
f1902cfe2ebb699e8ddbec6e13ef11d2cb8b9555
9,563
py
Python
pysnmp/ZYXEL-CLUSTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ZYXEL-CLUSTER-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ZYXEL-CLUSTER-MIB.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 ZYXEL-CLUSTER-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ZYXEL-CLUSTER-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:43:09 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Ma...
122.602564
1,687
0.768901
74ac7e93339846ec0bad689ce1665d3b13a2fec4
97
py
Python
config.py
interactionlab/android-notification-drawers
30c40282f57c3c57b5d906997426b23147b87277
[ "MIT" ]
2
2020-09-11T15:39:39.000Z
2020-10-19T16:14:27.000Z
config.py
interactionlab/android-notification-drawers
30c40282f57c3c57b5d906997426b23147b87277
[ "MIT" ]
null
null
null
config.py
interactionlab/android-notification-drawers
30c40282f57c3c57b5d906997426b23147b87277
[ "MIT" ]
null
null
null
NUM_CORES = 8 PATH_VALID_DEVICES = '/path/to/valid.pkl.gz' PATH_DEVICES_DIR = '/path/to/devices/'
32.333333
44
0.752577
74adb9d1b6713668874e8ffff93d9e51a052d41f
114
py
Python
main.py
panzihan/comic-spider
2566ed8f725c11fa3f87d7b53da479a530a1bc75
[ "Apache-2.0" ]
null
null
null
main.py
panzihan/comic-spider
2566ed8f725c11fa3f87d7b53da479a530a1bc75
[ "Apache-2.0" ]
null
null
null
main.py
panzihan/comic-spider
2566ed8f725c11fa3f87d7b53da479a530a1bc75
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- from scrapy import cmdline cmdline.execute("scrapy crawl dmzj".split())
22.8
44
0.692982
74aed0a79651f3031398772075cf7ed206fd3979
1,752
py
Python
hypersand/plot.py
deverte/HyperSand
8e1fa4db68689ec9fe108ecc4759a221122a9a80
[ "MIT" ]
1
2020-01-31T15:55:01.000Z
2020-01-31T15:55:01.000Z
hypersand/plot.py
deverte/HyperSand
8e1fa4db68689ec9fe108ecc4759a221122a9a80
[ "MIT" ]
null
null
null
hypersand/plot.py
deverte/HyperSand
8e1fa4db68689ec9fe108ecc4759a221122a9a80
[ "MIT" ]
1
2020-06-24T23:59:54.000Z
2020-06-24T23:59:54.000Z
import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D """ . """ def plt2d(data, types): """ . : data - pandas.DataFrame. - X Y. - list. types - . : "plot" - , , "scatter" - . """ # , ax = plt.figure...
33.692308
77
0.625571
74af94c08770ecd85e6abea27c4f5fa08a581c3a
1,479
py
Python
dcm2lungwin.py
hbuck1996/CT-Window-adjustment
fc5387d42cb4f4299a074aad7aff43cf396578d3
[ "MIT" ]
1
2021-11-05T08:37:09.000Z
2021-11-05T08:37:09.000Z
dcm2lungwin.py
hbuck1996/CT-Window-adjustment
fc5387d42cb4f4299a074aad7aff43cf396578d3
[ "MIT" ]
null
null
null
dcm2lungwin.py
hbuck1996/CT-Window-adjustment
fc5387d42cb4f4299a074aad7aff43cf396578d3
[ "MIT" ]
null
null
null
# -*- coding=utf-8 -*- import pydicom import os import numpy from os.path import splitext import PIL.Image as Image #CT pathin = 'dcmin/' pathout = 'dcmout/' for root, dirs, files in os.walk(pathin): for i in range(len(files)): filename = files[i] im = getfile(pathin + filename) im1 = set...
26.890909
68
0.634212
74afe6d7dc2aacf9fcf663af7925235779355a78
1,413
py
Python
setup.py
legale/prepack
8ad82fb252bc7e985175b2b9966aa7c0d217f72c
[ "MIT" ]
null
null
null
setup.py
legale/prepack
8ad82fb252bc7e985175b2b9966aa7c0d217f72c
[ "MIT" ]
null
null
null
setup.py
legale/prepack
8ad82fb252bc7e985175b2b9966aa7c0d217f72c
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='prepack', version='0.4.2', description='Python excel based data preparation library', long_description="Library for preparing data for analysis. " "Allows you to load and easily filter many same structure csv or xls, xlsx files. " ...
48.724138
114
0.604388
74b378062d50de8d6fa4de92edd93991772320d6
330
py
Python
Python/Learn Python The Hard Way/ex32.py
Vayne-Lover/Effective
05f0a08bec8eb112fdb4e7a489d0e33bc81522ff
[ "MIT" ]
null
null
null
Python/Learn Python The Hard Way/ex32.py
Vayne-Lover/Effective
05f0a08bec8eb112fdb4e7a489d0e33bc81522ff
[ "MIT" ]
null
null
null
Python/Learn Python The Hard Way/ex32.py
Vayne-Lover/Effective
05f0a08bec8eb112fdb4e7a489d0e33bc81522ff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- the_count = [1, 2, 3, 4, 5] fruits = ['apples', 'oranges', 'pears', 'apricots'] change = [1, 'pennies', 2, 'dimes', 3, 'quarters'] for i in the_count: print(i) for j in fruits: print(j) for k in change: print(k) element=[] for i in range(6): element.append(i) for e in element: ...
13.2
51
0.587879
74b3f7e3888622737e8eff19f6ae59cf2977b401
678
py
Python
agr0_sh0p/sendemail/sg_verify.py
Mikhail-Kushnerev/agr0-sh0p
b0bea7aef7166ae04691a6b575658a1fb16543ca
[ "BSD-3-Clause" ]
null
null
null
agr0_sh0p/sendemail/sg_verify.py
Mikhail-Kushnerev/agr0-sh0p
b0bea7aef7166ae04691a6b575658a1fb16543ca
[ "BSD-3-Clause" ]
null
null
null
agr0_sh0p/sendemail/sg_verify.py
Mikhail-Kushnerev/agr0-sh0p
b0bea7aef7166ae04691a6b575658a1fb16543ca
[ "BSD-3-Clause" ]
null
null
null
# using SendGrid's Python Library # https://github.com/sendgrid/sendgrid-python import os from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import Mail APIKEY = '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' message = Mail( from_email='muxa2k11@gmail.com', to_emails='...
28.25
80
0.756637
74b48488924a2302ea18239cc158782bc978ef6c
2,324
py
Python
setup.py
rhys-newbury/swift
60154b0441c468e3c15225c6820158d52ade98bf
[ "MIT" ]
25
2020-10-09T05:20:21.000Z
2022-02-27T19:28:14.000Z
setup.py
rhys-newbury/swift
60154b0441c468e3c15225c6820158d52ade98bf
[ "MIT" ]
19
2020-10-28T22:56:55.000Z
2022-03-23T11:26:41.000Z
setup.py
rhys-newbury/swift
60154b0441c468e3c15225c6820158d52ade98bf
[ "MIT" ]
8
2021-03-02T16:13:46.000Z
2021-12-22T10:50:35.000Z
from setuptools import setup, find_packages, Extension from os import path import os # fmt: off import pip pip.main(['install', 'numpy>=1.18.0']) import numpy # fmt: on here = path.abspath(path.dirname(__file__)) req = ["numpy>=1.18.0", "spatialgeometry>=0.2.0", "websockets"] # Get the long description from the REA...
29.794872
77
0.654905
74b4dd2e89725f56b4afa9fad54d5b059478cdab
1,669
py
Python
exception_reports/decorators.py
CircleUp/exception-reports
283d1700020c8d2558cbb2ac2a398409de31f442
[ "BSD-3-Clause" ]
1
2018-01-05T06:53:11.000Z
2018-01-05T06:53:11.000Z
exception_reports/decorators.py
CircleUp/exception-reports
283d1700020c8d2558cbb2ac2a398409de31f442
[ "BSD-3-Clause" ]
6
2018-01-05T14:40:03.000Z
2019-04-10T22:42:55.000Z
exception_reports/decorators.py
CircleUp/exception-reports
283d1700020c8d2558cbb2ac2a398409de31f442
[ "BSD-3-Clause" ]
null
null
null
import sys from decorator import decorator from exception_reports.reporter import append_to_exception_message, create_exception_report from exception_reports.storages import LocalErrorStorage def exception_report(storage_backend=LocalErrorStorage(), output_format="html", data_processor=None): """ Decorator ...
31.490566
157
0.672259
74b7830f4dda15ada9843cfeaccea42f032c1f19
1,408
py
Python
E9/contact_manager/contact/forms.py
wendy006/Web-Dev-Course
2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720
[ "MIT" ]
null
null
null
E9/contact_manager/contact/forms.py
wendy006/Web-Dev-Course
2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720
[ "MIT" ]
null
null
null
E9/contact_manager/contact/forms.py
wendy006/Web-Dev-Course
2f0cfddb7ab4db88ffb4483c7cd4a00abf36c720
[ "MIT" ]
null
null
null
from django import forms # class RenewBookForm(forms.Form): # renewal_date = forms.DateField(help_text="Enter a date between now and 4 weeks (default 3).") # class NameForm(forms.Form): # your_name = forms.CharField(label='Your name', max_length=100) # class UserForm(forms.Form): # username = forms...
36.102564
99
0.715199
74ba731ff054eb15ac2f02bf27cba0343a1c4050
1,510
py
Python
src/opera/parser/tosca/__init__.py
sstanovnik/xopera-opera
06031d37268913c6ba6dbc30ec6b4acb3a17dc5a
[ "Apache-2.0" ]
null
null
null
src/opera/parser/tosca/__init__.py
sstanovnik/xopera-opera
06031d37268913c6ba6dbc30ec6b4acb3a17dc5a
[ "Apache-2.0" ]
null
null
null
src/opera/parser/tosca/__init__.py
sstanovnik/xopera-opera
06031d37268913c6ba6dbc30ec6b4acb3a17dc5a
[ "Apache-2.0" ]
null
null
null
from pathlib import PurePath import importlib from opera import stdlib from opera.error import ParseError from opera.parser import yaml SUPPORTED_VERSIONS = dict( tosca_simple_yaml_1_3="v_1_3", )
29.607843
70
0.662914
74bab9faf0636dab82e5b1e9553de1e5cede8ce6
18,100
py
Python
project/upload/views.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
31
2019-12-08T14:22:52.000Z
2021-12-27T04:58:12.000Z
project/upload/views.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
193
2019-12-07T23:27:43.000Z
2022-03-05T08:05:46.000Z
project/upload/views.py
beijbom/coralnet
c3f4a44eeb60cb41a079329a0068dc8b34096e89
[ "BSD-2-Clause" ]
null
null
null
import json from datetime import timedelta from django.conf import settings from django.http import HttpResponseRedirect, JsonResponse from django.shortcuts import get_object_or_404, render from django.urls import reverse from django.utils.timezone import now from accounts.utils import get_imported_user from annotati...
35.559921
88
0.673149
74bb9cc1b76d05a1ca8fad8227db7488f5dc77ca
3,846
py
Python
medgen/annotate/variant.py
text2gene/medgen
e2327bdf8f2c9e35da177fbbd0d217790c0ae361
[ "Apache-2.0" ]
null
null
null
medgen/annotate/variant.py
text2gene/medgen
e2327bdf8f2c9e35da177fbbd0d217790c0ae361
[ "Apache-2.0" ]
null
null
null
medgen/annotate/variant.py
text2gene/medgen
e2327bdf8f2c9e35da177fbbd0d217790c0ae361
[ "Apache-2.0" ]
null
null
null
""" Variant-level annotation functions requiring ClinvarDB and Metapub (NCBI/eutils). """ import requests, json, urllib from metapub.text_mining import is_pmcid, is_ncbi_bookID from metapub.pubmedcentral import get_pmid_for_otherid from ..db.clinvar import ClinVarDB from ..log import log ##########################...
34.035398
110
0.583983
74bbb875400925fd99ab218e4498bdd041de47bc
6,049
py
Python
microdf/custom_taxes.py
MaxGhenis/taxcalc-helpers
85d2739d1c96882424cb51ef1806c9e51f88c085
[ "MIT" ]
6
2019-06-26T14:37:49.000Z
2020-08-10T22:26:34.000Z
microdf/custom_taxes.py
MaxGhenis/taxcalc-helpers
85d2739d1c96882424cb51ef1806c9e51f88c085
[ "MIT" ]
94
2019-06-22T14:57:58.000Z
2020-09-08T16:35:38.000Z
microdf/custom_taxes.py
MaxGhenis/taxcalc-helpers
85d2739d1c96882424cb51ef1806c9e51f88c085
[ "MIT" ]
6
2020-09-08T18:29:36.000Z
2021-04-01T18:31:42.000Z
""" Functions and data for estimating taxes outside the income tax system. Examples include value added tax, financial transaction tax, and carbon tax. """ import microdf as mdf import numpy as np import pandas as pd # Source: # https://www.taxpolicycenter.org/briefing-book/who-would-bear-burden-vat VAT_INCIDENCE =...
33.41989
119
0.65515
74bd2bcc47cfe5b8be22decac84de616312a386c
9,067
py
Python
system_c/scripts/combine_two_systems.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
system_c/scripts/combine_two_systems.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
system_c/scripts/combine_two_systems.py
hkayesh/depend_clean
1d4bfdaf9a4d323582ab36e3ec0f9b4f2faae851
[ "Apache-2.0" ]
null
null
null
from utilities import Utilities # from comment_level_evaluation import CommentLevelEvaluation import operator
38.419492
149
0.545715
74bdf4ce11cc1cf0cef84ffadb758b63eccf4b5b
603
py
Python
python/ops/lekcija 24/program01.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
python/ops/lekcija 24/program01.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
python/ops/lekcija 24/program01.py
jasarsoft/examples
d6fddfcb8c50c31fbfe170a3edd2b6c07890f13e
[ "MIT" ]
null
null
null
import json student = { "ime" : "Milan", "prezime" : "Tair", "indeks" : 2008213514, "ispiti" : [ { "predmet" : "Programiranje 1", "datum" : "2008-01-05", "ocjena" : 10 }, { "predmet" : "Informatika", ...
20.1
44
0.480929
74be7f88c0d0fd7163d55362678d0731ca6c0782
1,066
py
Python
___Python/Carsten/p11_Excel/m01_Excel_einlesen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p11_Excel/m01_Excel_einlesen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
___Python/Carsten/p11_Excel/m01_Excel_einlesen.py
uvenil/PythonKurs201806
85afa9c9515f5dd8bec0c546f077d8cc39568fe8
[ "Apache-2.0" ]
null
null
null
import pandas as pd import xlrd import xlsxwriter from p01_kennenlernen import meinebibliothek df = pd.read_excel("O:\___Python\personen.xlsx") # importieren von excel nach python mit datumsangabe in Timestamp print(df) print() df1 = pd.to_datetime(df["Geburtsdatum"]) # umwandeln von Timestamp in datetime ...
34.387097
135
0.766417
74bf45dcb4a434eeeff395649e73785dadc6d3a6
97
py
Python
tests/_support/configs/yaml/tasks.py
tyewang/invoke
e40b3ef3b8e9a9b275b2964c65e2ce878fec4349
[ "BSD-2-Clause" ]
null
null
null
tests/_support/configs/yaml/tasks.py
tyewang/invoke
e40b3ef3b8e9a9b275b2964c65e2ce878fec4349
[ "BSD-2-Clause" ]
null
null
null
tests/_support/configs/yaml/tasks.py
tyewang/invoke
e40b3ef3b8e9a9b275b2964c65e2ce878fec4349
[ "BSD-2-Clause" ]
null
null
null
from spec import eq_ from invoke import ctask
10.777778
25
0.690722
74bf6f3b5de8a5799156e1034c8878c020d100c2
7,769
py
Python
vmz_interface/extractor/build_lmdb.py
fksato/vmz_interface
985e7129f4bf266a6226dbc2b7e108dafc8b917a
[ "Apache-2.0" ]
null
null
null
vmz_interface/extractor/build_lmdb.py
fksato/vmz_interface
985e7129f4bf266a6226dbc2b7e108dafc8b917a
[ "Apache-2.0" ]
null
null
null
vmz_interface/extractor/build_lmdb.py
fksato/vmz_interface
985e7129f4bf266a6226dbc2b7e108dafc8b917a
[ "Apache-2.0" ]
null
null
null
import os import csv import numpy as np import pandas as pd import pickle as pk from glob import glob from math import ceil from vmz_interface.data.db_video_create import create_video_db
35.313636
164
0.740378
74c04ac95cf162be1b2cc7dbd708d0513446fe97
13,038
py
Python
tests/test_pyoidc_facade.py
Titotix/Flask-pyoidc
87b8059617304ec634d7b6d3f5f649c40d9cdb4c
[ "Apache-2.0" ]
64
2017-01-31T09:08:15.000Z
2021-12-21T21:05:45.000Z
tests/test_pyoidc_facade.py
Titotix/Flask-pyoidc
87b8059617304ec634d7b6d3f5f649c40d9cdb4c
[ "Apache-2.0" ]
99
2017-02-08T22:38:54.000Z
2022-03-31T22:03:27.000Z
tests/test_pyoidc_facade.py
Titotix/Flask-pyoidc
87b8059617304ec634d7b6d3f5f649c40d9cdb4c
[ "Apache-2.0" ]
33
2017-02-09T18:19:51.000Z
2021-12-24T17:48:52.000Z
import time import base64 import pytest import responses from oic.oic import AuthorizationResponse, AccessTokenResponse, TokenErrorResponse, OpenIDSchema, \ AuthorizationErrorResponse from urllib.parse import parse_qsl, urlparse from flask_pyoidc.provider_configuration import ProviderConfiguration, ClientMetadata...
49.763359
118
0.649409
74c236bbb346149e0b60b81086ce4a68adb25d83
4,260
py
Python
INIT.py
db260179/mullion
3ed599f624ab308f5a6ffe4c51aa372252430aa1
[ "WTFPL" ]
null
null
null
INIT.py
db260179/mullion
3ed599f624ab308f5a6ffe4c51aa372252430aa1
[ "WTFPL" ]
null
null
null
INIT.py
db260179/mullion
3ed599f624ab308f5a6ffe4c51aa372252430aa1
[ "WTFPL" ]
null
null
null
# Thanks to zecoxao and flatz <3 import struct from binascii import unhexlify as uhx from binascii import hexlify as hx from Crypto.Cipher import AES from Crypto.Hash import SHA, HMAC, CMAC import os import sys EID1KEYS = [ '88228B0F92C4C36AF097F1FE948D27CE', '5794BC8C2131B1E3E7EC61EF14C32EB5', ] I...
38.035714
129
0.559155
74c33b8ce76256cd1afd8372053d4ddff47c2092
1,078
py
Python
src/SortingSim/stick.py
berkayaslan/Sorting_Simulation
16cfcd404063b060191dab244025012271edacd8
[ "MIT" ]
2
2020-01-26T09:42:03.000Z
2020-05-26T13:57:02.000Z
src/SortingSim/stick.py
berkayaslan/Sorting_Simulation
16cfcd404063b060191dab244025012271edacd8
[ "MIT" ]
null
null
null
src/SortingSim/stick.py
berkayaslan/Sorting_Simulation
16cfcd404063b060191dab244025012271edacd8
[ "MIT" ]
null
null
null
if __name__ == "__main__": stick = Stick() stick.length(120) stick.location(0) print(stick.length, stick.location)
19.962963
70
0.569573
74c3c58b7c52752273d5091bfab02b92f9e98a85
10,549
py
Python
dgi/code2graph/class_graph_builder.py
konveyor/tackle-data-gravity-insights
97a3eb6a04a2bca7f7e3422581a8fad055d90c04
[ "Apache-2.0" ]
3
2022-03-28T20:54:34.000Z
2022-03-31T15:14:39.000Z
dgi/code2graph/class_graph_builder.py
rofrano/tackle-data-gravity-insights
f734f023dc46ca8e038b5ba8029e5c1177a1d34f
[ "Apache-2.0" ]
9
2022-03-01T13:29:50.000Z
2022-03-31T13:04:36.000Z
dgi/code2graph/class_graph_builder.py
rofrano/tackle-data-gravity-insights
f734f023dc46ca8e038b5ba8029e5c1177a1d34f
[ "Apache-2.0" ]
3
2022-03-28T14:41:45.000Z
2022-03-30T19:17:31.000Z
################################################################################ # Copyright IBM Corporation 2021, 2022 # # 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.ap...
40.263359
98
0.567921
74c471d1d72ba31b703ea6a15dd25e610bf41cfa
5,972
py
Python
evernotecheck.py
scpedicini/evernotecheck
32663a577d22f2bdb9c9bac9c5f741e40efd18a7
[ "MIT" ]
null
null
null
evernotecheck.py
scpedicini/evernotecheck
32663a577d22f2bdb9c9bac9c5f741e40efd18a7
[ "MIT" ]
null
null
null
evernotecheck.py
scpedicini/evernotecheck
32663a577d22f2bdb9c9bac9c5f741e40efd18a7
[ "MIT" ]
null
null
null
import logging from evernote.api.client import EvernoteClient from evernote.edam.notestore.ttypes import NoteFilter, NotesMetadataResultSpec from evernote.edam.error.ttypes import (EDAMSystemException, EDAMErrorCode) import pickle import sys from datetime import datetime from time import sleep import os logger = logg...
33.550562
267
0.682853
74c5c6595e58e5ebc6c9bd0923ccb47fb28a9fb2
3,025
py
Python
tcfcli/cmds/local/common/options.py
dorasang/tcfcli
a24f14aa5a0281822de580479471bd3e83a8778b
[ "Apache-2.0" ]
14
2019-03-01T09:47:36.000Z
2019-11-28T01:58:54.000Z
tcfcli/cmds/local/common/options.py
dorasang/tcfcli
a24f14aa5a0281822de580479471bd3e83a8778b
[ "Apache-2.0" ]
8
2019-03-12T10:22:53.000Z
2020-08-20T08:15:51.000Z
tcfcli/cmds/local/common/options.py
dorasang/tcfcli
a24f14aa5a0281822de580479471bd3e83a8778b
[ "Apache-2.0" ]
7
2019-03-01T09:47:52.000Z
2020-06-13T12:14:48.000Z
import click import os _DEAFULT_TEMPLATE_FILE = 'template.[yaml|yml]' def template_click_option(): """ Click Option for template option """ return click.option('--template', '-t', default=_DEAFULT_TEMPLATE_FILE, type=click.Path(exists=True), ...
32.880435
125
0.551736
74c605ad56148f8243d56a13d2c1c91bf87be5fb
1,126
py
Python
GoPiGo_J/src/server/daemons/server2.py
theplatypus/GoPiGo_Java
85544c93146d898bf08f0898350a9ef80da6754f
[ "Unlicense", "MIT" ]
1
2016-01-22T20:35:24.000Z
2016-01-22T20:35:24.000Z
GoPiGo_J/src/server/daemons/server2.py
theplatypus/GoPiGo_Java
85544c93146d898bf08f0898350a9ef80da6754f
[ "Unlicense", "MIT" ]
null
null
null
GoPiGo_J/src/server/daemons/server2.py
theplatypus/GoPiGo_Java
85544c93146d898bf08f0898350a9ef80da6754f
[ "Unlicense", "MIT" ]
null
null
null
#!/usr/bin/env python # This is a basic example for a socket server for the GoPiGo. # This allows the client to connects can be used to respond to the commands and run the GoPiGo # the socket server is running on Port 5005 on localhost # Send a single byte command to the server from the client: # # fwd #Move forwar...
31.277778
94
0.753996
74c76ee9a4a603fbe963cba6d550995d33315088
302
py
Python
python100/problems/003.py
zerlous/morning-python
8ef8b5602ece9f74da870f3588ad7c2f734792b3
[ "MIT" ]
null
null
null
python100/problems/003.py
zerlous/morning-python
8ef8b5602ece9f74da870f3588ad7c2f734792b3
[ "MIT" ]
null
null
null
python100/problems/003.py
zerlous/morning-python
8ef8b5602ece9f74da870f3588ad7c2f734792b3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : zerlous # @File : 003.py # @Time : 2019-04-02 23:15 # 100168 # x + 100 = m^2 , x + 268 = n^2 # => n^2 - m^2 = 168 # => (m+n)(m-n) = 168 # => i = m+n, j = m -n, i*j=168 # => m=(i+j)/2, n =(i-j)/2 i,j
25.166667
47
0.519868
74c8da5877fedaee54944d0a1f1f838582ece639
2,049
py
Python
apis/news/query_helper.py
lannguyen0910/SAB
12c787cf592cb26c2a91829038ad1c2f9bac1f16
[ "MIT" ]
3
2021-11-03T14:36:53.000Z
2021-11-18T17:21:28.000Z
apis/news/query_helper.py
lannguyen0910/SAB
12c787cf592cb26c2a91829038ad1c2f9bac1f16
[ "MIT" ]
null
null
null
apis/news/query_helper.py
lannguyen0910/SAB
12c787cf592cb26c2a91829038ad1c2f9bac1f16
[ "MIT" ]
null
null
null
ERROR_TEXT = "Sources can not be set if country or category is set."
49.97561
87
0.617862
74c973a8e5ee64795c61fcb8c64b1477242ab749
1,666
py
Python
final_project/accounts/forms.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
final_project/accounts/forms.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
final_project/accounts/forms.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
from django.contrib.auth import forms as auth_forms, get_user_model from django.core.validators import MinLengthValidator from final_project.accounts.helpers import BootstrapFormMixin from final_project.accounts.models import Profile from django import forms from final_project.main.validators import validate_only_let...
29.75
76
0.67587
74c9ebcbbf685433e3347e934c9eb9cfdc882fb1
1,931
py
Python
mobile-analytics/visualisations/funnel_plots.py
trangqdo/mobile-analytics
097bb4596bb11ea186048ba5bc925e84c7fd37cc
[ "Apache-2.0" ]
null
null
null
mobile-analytics/visualisations/funnel_plots.py
trangqdo/mobile-analytics
097bb4596bb11ea186048ba5bc925e84c7fd37cc
[ "Apache-2.0" ]
null
null
null
mobile-analytics/visualisations/funnel_plots.py
trangqdo/mobile-analytics
097bb4596bb11ea186048ba5bc925e84c7fd37cc
[ "Apache-2.0" ]
null
null
null
from plotly import graph_objs as go from stats.funnel import create_funnel_df, group_funnel_dfs def plot_stacked_funnel(events, steps, col=None, from_date=None, to_date=None, step_interval=0): """ Function used for producing a funnel plot :param events: (DataFrame) events dataframe ...
33.293103
118
0.520974
74cb877c97af60c6e4b5a8e17a82bc5b28994b1e
1,016
py
Python
segregation/tests/test_local_relative_centralization.py
noahbouchier/segregation
88bd9608251b8bc42eae9265adb7941279b9868c
[ "BSD-3-Clause" ]
92
2019-02-17T02:36:29.000Z
2022-01-22T04:29:10.000Z
segregation/tests/test_local_relative_centralization.py
noahbouchier/segregation
88bd9608251b8bc42eae9265adb7941279b9868c
[ "BSD-3-Clause" ]
128
2019-02-22T03:52:40.000Z
2022-02-28T18:39:01.000Z
segregation/tests/test_local_relative_centralization.py
noahbouchier/segregation
88bd9608251b8bc42eae9265adb7941279b9868c
[ "BSD-3-Clause" ]
29
2019-02-17T02:36:50.000Z
2022-03-17T04:15:49.000Z
import unittest import geopandas as gpd import numpy as np from libpysal.examples import load_example from segregation.local import LocalRelativeCentralization if __name__ == "__main__": unittest.main()
29.028571
87
0.538386
74ce8c8a200f28440567b9bb992acb489cd7d1a9
107
py
Python
office365/sharepoint/utilities/wopi_web_app_properties.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
544
2016-08-04T17:10:16.000Z
2022-03-31T07:17:20.000Z
office365/sharepoint/utilities/wopi_web_app_properties.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
438
2016-10-11T12:24:22.000Z
2022-03-31T19:30:35.000Z
office365/sharepoint/utilities/wopi_web_app_properties.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
202
2016-08-22T19:29:40.000Z
2022-03-30T20:26:15.000Z
from office365.runtime.client_value import ClientValue
17.833333
54
0.831776
74cf3cdf2e8551d93b756d1f90473ad3386552cc
819
py
Python
python3-ardubus/setup.py
rambo/arDuBUS
d68ec05d75b3f463254039b31c31afec7e752f83
[ "MIT" ]
3
2016-01-31T21:48:37.000Z
2021-01-17T00:39:22.000Z
python3-ardubus/setup.py
rambo/arDuBUS
d68ec05d75b3f463254039b31c31afec7e752f83
[ "MIT" ]
null
null
null
python3-ardubus/setup.py
rambo/arDuBUS
d68ec05d75b3f463254039b31c31afec7e752f83
[ "MIT" ]
null
null
null
"""Packaging script for ardubus""" import os import subprocess import setuptools GIT_VERSION = 'UNKNOWN' try: GIT_VERSION = subprocess.check_output(['git', 'rev-parse', '--verify', '--short', 'HEAD']).decode('ascii').strip() except subprocess.CalledProcessError: pass setuptools.setup( name='ardubus', ...
31.5
118
0.695971
74cf57d813aedb4d1919443807aec8fd07bf82ec
6,247
py
Python
utils/validation.py
gykovacs/ideal_binning_mv
536ed9f897e5470568b2a2768eb4a119c7df1fff
[ "MIT" ]
null
null
null
utils/validation.py
gykovacs/ideal_binning_mv
536ed9f897e5470568b2a2768eb4a119c7df1fff
[ "MIT" ]
null
null
null
utils/validation.py
gykovacs/ideal_binning_mv
536ed9f897e5470568b2a2768eb4a119c7df1fff
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jul 9 19:49:52 2020 @author: gykovacs """ import numpy as np # dimensionality n_d = 8 # bins n_bins = 3 t= generate_template() print('t', t) A= generate_A(t) print('A', A) S_u = generate_S_unique(t) print('S_u', S_u) m= generate_m(t) print('...
19.045732
122
0.60317
74cf89eb0f06c514d58868658f9cede0db7a9aaa
2,210
py
Python
LeetCode/LC003_bruteForce.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
LeetCode/LC003_bruteForce.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
LeetCode/LC003_bruteForce.py
JeffreyAsuncion/CodingProblems_Python
db71cb46b2579c1c65767a644a0ea989da4fa559
[ "MIT" ]
null
null
null
""" 3. Longest Substring Without Repeating Characters Given a string s, find the length of the longest substring without repeating characters. Example 1: Input: s = "abcabcbb" Output: 3 Explanation: The answer is "abc", with the length of 3. Example 2: Input: s = "bbbbb" Output: 1 Explanation: The answer is "b", wi...
25.402299
95
0.615385
74d068093d0ae6b5a5ba2737ff2398f7a073b853
10,913
py
Python
pattoo/agent.py
palisadoes/pattoo-os
cccf0ddb50a8bb971c0c527b4ea5ef96c6819fac
[ "Apache-2.0" ]
null
null
null
pattoo/agent.py
palisadoes/pattoo-os
cccf0ddb50a8bb971c0c527b4ea5ef96c6819fac
[ "Apache-2.0" ]
null
null
null
pattoo/agent.py
palisadoes/pattoo-os
cccf0ddb50a8bb971c0c527b4ea5ef96c6819fac
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """Pattoo .Agent class. Description: This script: 1) Processes a variety of information from agents 2) Posts the data using HTTP to a server listed in the configuration file """ # Standard libraries import textwrap import sys import time import argparse import ip...
24.802273
79
0.550078
74d0de2d8da21d05590e9e49b38f27e37b7c316e
5,359
py
Python
utils/create_dmg_masks.py
deg4uss3r/xview2-baseline
ae3b63003efe5ffd712a32b0083e044f595f0d3e
[ "BSD-3-Clause" ]
null
null
null
utils/create_dmg_masks.py
deg4uss3r/xview2-baseline
ae3b63003efe5ffd712a32b0083e044f595f0d3e
[ "BSD-3-Clause" ]
null
null
null
utils/create_dmg_masks.py
deg4uss3r/xview2-baseline
ae3b63003efe5ffd712a32b0083e044f595f0d3e
[ "BSD-3-Clause" ]
1
2020-02-13T14:02:26.000Z
2020-02-13T14:02:26.000Z
##################################################################################################################################################################### # xView2 ...
54.131313
166
0.53816
74d1fba55e38668fb6474e6c5a72b31dae8639fa
147
py
Python
feersum_nlu_util/__init__.py
praekelt/feersum-nlu-api-wrappers
6580e2bab2c8a764fe868a505330b3fee6029074
[ "BSD-3-Clause" ]
9
2017-10-10T12:24:23.000Z
2021-08-18T14:07:51.000Z
feersum_nlu_util/__init__.py
praekelt/feersum-nlu-api-wrappers
6580e2bab2c8a764fe868a505330b3fee6029074
[ "BSD-3-Clause" ]
1
2020-12-06T11:03:25.000Z
2021-04-14T05:21:23.000Z
feersum_nlu_util/__init__.py
praekelt/feersum-nlu-api-wrappers
6580e2bab2c8a764fe868a505330b3fee6029074
[ "BSD-3-Clause" ]
2
2019-02-12T08:26:06.000Z
2022-02-01T09:39:47.000Z
# coding: utf-8 # flake8: noqa """ FeersumNLU API Utils """ from feersum_nlu_util import transfer from feersum_nlu_util import image_utils
12.25
40
0.741497
74d2a0a4ac8360f6243b2b0575a3f4eccdc09c49
6,240
py
Python
generate_playlist.py
renoc/python-rpifo
8c9fa6eca8129836447f712eb74d660d900a1c84
[ "0BSD" ]
null
null
null
generate_playlist.py
renoc/python-rpifo
8c9fa6eca8129836447f712eb74d660d900a1c84
[ "0BSD" ]
null
null
null
generate_playlist.py
renoc/python-rpifo
8c9fa6eca8129836447f712eb74d660d900a1c84
[ "0BSD" ]
null
null
null
from random import randint, shuffle from time import time import os import re gen_playlist()
32.842105
79
0.584776
74d30db42e4e43fd40ce31aa9b1b2da29831eebb
29,244
py
Python
setup.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
12
2019-07-23T08:07:53.000Z
2022-03-09T06:13:16.000Z
setup.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
7
2019-08-30T07:00:00.000Z
2021-12-30T08:02:56.000Z
setup.py
Viech/cynetworkx
01a37859c67b752392e9e783c949084964eef2cf
[ "BSD-3-Clause" ]
5
2020-10-10T03:40:32.000Z
2021-11-23T12:28:53.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Setup script for cynetworkx You can install cynetworkx with python setup.py install """ from glob import glob import os import sys if os.path.exists('MANIFEST'): os.remove('MANIFEST') from setuptools import setup from setuptools.extension import Extension from Cy...
70.980583
155
0.752086
74d31461bcce0238b0f60063f66c21a9b0d11bb5
4,914
py
Python
tests/master/test_idle_slaves.py
WillChilds-Klein/mistress-mapreduce
c991a502545bd0d3ec4f914cdc63faf6a40e77ae
[ "Apache-2.0" ]
2
2018-12-02T11:10:15.000Z
2019-02-21T22:24:00.000Z
tests/master/test_idle_slaves.py
WillChilds-Klein/mistress-mapreduce
c991a502545bd0d3ec4f914cdc63faf6a40e77ae
[ "Apache-2.0" ]
1
2019-02-21T22:23:36.000Z
2019-02-21T22:23:36.000Z
tests/master/test_idle_slaves.py
WillChilds-Klein/mistress-mapreduce
c991a502545bd0d3ec4f914cdc63faf6a40e77ae
[ "Apache-2.0" ]
3
2018-04-26T16:02:10.000Z
2018-12-02T11:10:16.000Z
# Mrs # Copyright 2008-2012 Brigham Young University # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
26.138298
74
0.664225
74d4070cc857186b6a593db78097011098c36c45
2,577
py
Python
examples/source_TestLibraBot.py
kensoi/libragram
a0119244dceb09edca36b23c95f3e97a28ddae9a
[ "Apache-2.0" ]
null
null
null
examples/source_TestLibraBot.py
kensoi/libragram
a0119244dceb09edca36b23c95f3e97a28ddae9a
[ "Apache-2.0" ]
null
null
null
examples/source_TestLibraBot.py
kensoi/libragram
a0119244dceb09edca36b23c95f3e97a28ddae9a
[ "Apache-2.0" ]
null
null
null
import typing from libragram import librabot from libragram.objects.decorators import callback from libragram.objects.filters import * bot = librabot(token = "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11", trust_env=True) bot.run(bot.start_polling())
28.318681
104
0.668607
74d43131a7fc8558fde515471cde4f6a43cbcff0
4,542
py
Python
utils.py
brain-bzh/videoannotation
d75d3261967a134854a16956fea602cad51949a2
[ "MIT" ]
3
2020-02-19T09:54:27.000Z
2020-10-13T14:02:28.000Z
utils.py
courtois-neuromod/videoannotation
d75d3261967a134854a16956fea602cad51949a2
[ "MIT" ]
null
null
null
utils.py
courtois-neuromod/videoannotation
d75d3261967a134854a16956fea602cad51949a2
[ "MIT" ]
2
2020-03-13T12:23:13.000Z
2021-02-01T16:14:04.000Z
##Author : Nicolas Farrugia, February 2020 from torchvision.models.detection import fasterrcnn_resnet50_fpn import torch from torchvision.io import read_video,read_video_timestamps import matplotlib.patches as patches from matplotlib import pyplot as plt import datetime import os #### imagenet categories cat...
31.985915
150
0.627257