hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
f13af7308893eb6dd4208f6a9361b6902679648a
433
py
Python
pyxel_book/sample02.py
scnsh/pyxelGames
058a4c0ad0b421cffc5746bfed2a6eddb3d85949
[ "MIT" ]
null
null
null
pyxel_book/sample02.py
scnsh/pyxelGames
058a4c0ad0b421cffc5746bfed2a6eddb3d85949
[ "MIT" ]
null
null
null
pyxel_book/sample02.py
scnsh/pyxelGames
058a4c0ad0b421cffc5746bfed2a6eddb3d85949
[ "MIT" ]
null
null
null
import pyxel WIDTH = 128 HEIGHT = 128 IMG_NO = 0 class App: my_x = 0 my_y = 0 def __init__(self): pyxel.init(WIDTH, HEIGHT) pyxel.load("mychara.pyxres") pyxel.run(self.update, self.draw) def update(self): self.my_x = pyxel.mouse_x self.my_y = pyxel.mouse_y ...
16.037037
64
0.575058
372
0.859122
0
0
0
0
0
0
16
0.036952
f13af8576792323da6a71722fc4b7ac0926a65e0
588
py
Python
purchase_order/views.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
8
2019-04-13T14:08:55.000Z
2022-03-06T10:53:44.000Z
purchase_order/views.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
16
2019-03-31T20:22:21.000Z
2022-01-15T11:43:57.000Z
purchase_order/views.py
Um9i/ERPv
f4bf8d801ad8f800107c92625123c1e59b439c40
[ "MIT" ]
null
null
null
from .models import PurchaseOrder, PurchaseOrderLine from .serializers import PurchaseOrderSerializer, PurchaseOrderLineSerializer from rest_framework import viewsets, permissions class PurchaseOrderViewSet(viewsets.ModelViewSet): queryset = PurchaseOrder.objects.all() serializer_class = PurchaseOrderSerializ...
36.75
77
0.833333
402
0.683673
0
0
0
0
0
0
0
0
f13b60a1da860ddec297fecdd34c2372b3ccd802
15,253
py
Python
code/python/lib/mg_viz/stats_large.py
alguru/metagenemark-2
3389a6bb306acea87ab3ccb63c47281aadafb273
[ "MIT" ]
null
null
null
code/python/lib/mg_viz/stats_large.py
alguru/metagenemark-2
3389a6bb306acea87ab3ccb63c47281aadafb273
[ "MIT" ]
1
2022-03-30T10:18:15.000Z
2022-03-30T10:18:15.000Z
code/python/lib/mg_viz/stats_large.py
gatech-genemark/MetaGeneMark-2-exp
99f8cf091911b9200af97e722543ad84a247770f
[ "MIT" ]
1
2021-04-06T12:43:12.000Z
2021-04-06T12:43:12.000Z
# Author: Karl Gemayel # Created: 8/5/20, 8:25 AM import logging import math import os from textwrap import wrap import pandas as pd from typing import * import seaborn import matplotlib.pyplot as plt from matplotlib.ticker import FuncFormatter from mg_general import Environment from mg_io.general import load_obj, ...
38.811705
133
0.61719
0
0
0
0
0
0
0
0
3,639
0.238576
f13b704fd8d0df2530e8a9f2950ab903d8a850f5
44,784
py
Python
Heavylifting.py
Dnshbbu/RulesView-Backend
09d47e600f9a3e815b5c60241817ce4d98e7ba7b
[ "MIT" ]
null
null
null
Heavylifting.py
Dnshbbu/RulesView-Backend
09d47e600f9a3e815b5c60241817ce4d98e7ba7b
[ "MIT" ]
null
null
null
Heavylifting.py
Dnshbbu/RulesView-Backend
09d47e600f9a3e815b5c60241817ce4d98e7ba7b
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, abort, make_response from flask_restful import Api, Resource, reqparse, fields, marshal, abort from py2neo import * import json from flask_cors import CORS from ipaddress import * import werkzeug import os from netaddr import * import re import random import time import CSVSplit_genera...
40.345946
174
0.49741
0
0
0
0
0
0
0
0
12,356
0.275902
f13ba3b7c19b139da995ed439ad5c64bd1341cb8
3,020
py
Python
TestSlice6.py
TecnicoSSof/Software-Security
9c31f5f59a1d1c21c2c9876d09bbbd9823d96357
[ "Apache-2.0" ]
null
null
null
TestSlice6.py
TecnicoSSof/Software-Security
9c31f5f59a1d1c21c2c9876d09bbbd9823d96357
[ "Apache-2.0" ]
null
null
null
TestSlice6.py
TecnicoSSof/Software-Security
9c31f5f59a1d1c21c2c9876d09bbbd9823d96357
[ "Apache-2.0" ]
null
null
null
import os import unittest from searcher.Vulnerability import Vulnerability from searcher.Searcher import Searcher import json from static_analyzer import file_get_contents class TestSlice6(unittest.TestCase): def test_rules(self): parsed_snippet = json.loads(file_get_contents(os.getcwd() + "/tests/slice...
50.333333
100
0.700993
2,795
0.925497
0
0
0
0
0
0
591
0.195695
f13c81c52509028ac8d8c36865997afd83cbf32b
367
py
Python
src/final_exam/q_survey/histogram_main.py
acc-cosc-1336/cosc-1336-spring-2018-jjmareck
7abfd79cb9a63192c965f828a185ccd981820bae
[ "MIT" ]
null
null
null
src/final_exam/q_survey/histogram_main.py
acc-cosc-1336/cosc-1336-spring-2018-jjmareck
7abfd79cb9a63192c965f828a185ccd981820bae
[ "MIT" ]
null
null
null
src/final_exam/q_survey/histogram_main.py
acc-cosc-1336/cosc-1336-spring-2018-jjmareck
7abfd79cb9a63192c965f828a185ccd981820bae
[ "MIT" ]
null
null
null
from histogram import display_histogram def main(): infile = open('survey.dat', 'r') line1 = infile.readline().split() line2 = infile.readline().split() line3 = infile.readline().split() infile.close() display_histogram(line1) print('') display_histogram(line2) prin...
19.315789
40
0.615804
0
0
0
0
0
0
0
0
19
0.051771
f13d9608f48b0c24994ffc9597596e461e4ed4e2
1,632
py
Python
mysite/home/models.py
Rudancy/My_Business
f2c5f51e697214a2699b40d37f206307d19af84b
[ "MIT" ]
null
null
null
mysite/home/models.py
Rudancy/My_Business
f2c5f51e697214a2699b40d37f206307d19af84b
[ "MIT" ]
null
null
null
mysite/home/models.py
Rudancy/My_Business
f2c5f51e697214a2699b40d37f206307d19af84b
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class home_page(models.Model): masthead_image = models.ImageField(upload_to='static/images', default='', blank=True) masthead = models.CharField(max_length=30, default='', blank=True) description = models.TextField(max_length=200, default='', blank=T...
58.285714
91
0.741422
1,573
0.963848
0
0
0
0
0
0
122
0.074755
f13dfa24c8f93e4de3743cfda3f5e390d7c85332
2,613
py
Python
falconRaspberry/vehicle/engine.py
omarsy/Falcon
ef762e4ec2affa2873e30d8b5d59d8897d422597
[ "MIT" ]
1
2019-04-21T20:41:04.000Z
2019-04-21T20:41:04.000Z
falconRaspberry/vehicle/engine.py
MessasKouseila/falcon
8b6ba22797877d7c7613c772a2a1f91d234f7dec
[ "MIT" ]
null
null
null
falconRaspberry/vehicle/engine.py
MessasKouseila/falcon
8b6ba22797877d7c7613c772a2a1f91d234f7dec
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO class Engine: FREQUENCY = 100 BOOT_FEQUENCY = 10 def __init__(self, high, mid, low ): self.high = high self.mid = mid self.low = low self.pwmHigh = None self.pwmMid = None self.pwmLow = None def getHigh(self): return self.high def getMid(self): return self.mid def getLow(...
24.885714
45
0.722924
2,587
0.99005
0
0
0
0
0
0
0
0
f13e7b6e0e1bf6512e5b87efce7ea8384bfd3c4d
587
py
Python
dtt/kubectl/pod.py
ymizushi/dtt
a7be7466bcda9644594394ab8c16e794f514b15c
[ "MIT" ]
3
2019-09-28T02:01:17.000Z
2020-05-23T06:27:57.000Z
dtt/kubectl/pod.py
ymizushi/dtt
a7be7466bcda9644594394ab8c16e794f514b15c
[ "MIT" ]
11
2019-07-26T12:30:47.000Z
2019-08-06T13:45:10.000Z
dtt/kubectl/pod.py
ymizushi/dtt
a7be7466bcda9644594394ab8c16e794f514b15c
[ "MIT" ]
null
null
null
class Pods: def __init__(self, pods): self._index = 0 self._pods = pods.items self._metadata = pods.metadata @property def index(self): return self._index @property def current_pod(self): return self._pods[self._index] @property def list(self): ...
24.458333
45
0.565588
586
0.998296
0
0
187
0.318569
0
0
0
0
f140e6306cd4b9c5bc97fbd6d7c36b197a7b90cf
3,158
py
Python
apps/reports/views.py
AnimeshRy/gymrocket
c15aed03607f57a7fb01facb826f82d77e0332b7
[ "MIT" ]
4
2021-03-15T12:08:51.000Z
2022-03-30T14:48:16.000Z
apps/reports/views.py
AnimeshRy/gymrocket
c15aed03607f57a7fb01facb826f82d77e0332b7
[ "MIT" ]
null
null
null
apps/reports/views.py
AnimeshRy/gymrocket
c15aed03607f57a7fb01facb826f82d77e0332b7
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect from django.http import HttpResponse import csv from apps.members.models import Member from .models import GenerateReportForm from django.db.models import Q from django.contrib.auth.decorators import login_required def export_all(user_obj): # Generate Users.csv file w...
38.512195
100
0.58993
0
0
0
0
2,217
0.702027
0
0
841
0.266308
f1418f6a18565d695a2a58d62afc3f91de80db3a
401
py
Python
setup.py
ysglh/evolute
ea868e5d04e6bb59760a9b6dec709303637b9f10
[ "MIT" ]
174
2018-08-15T21:48:30.000Z
2022-03-13T01:34:48.000Z
setup.py
ysglh/evolute
ea868e5d04e6bb59760a9b6dec709303637b9f10
[ "MIT" ]
null
null
null
setup.py
ysglh/evolute
ea868e5d04e6bb59760a9b6dec709303637b9f10
[ "MIT" ]
27
2018-05-16T16:25:36.000Z
2021-11-02T20:51:38.000Z
from setuptools import setup, find_packages setup( name='evolute', version='0.9.0', packages=find_packages(), url='https://github.com/csxeba/evolute.git', license='MIT', author='Csaba Gór', author_email='csxeba@gmail.com', description='Evolutionary algorithm toolbox', long_descripti...
26.733333
49
0.698254
0
0
0
0
0
0
0
0
148
0.368159
f141c618f7f5e93e7eb5c8ee22854c6063df694c
4,044
py
Python
grabNdays.py
brianvan555/Stock
f0115ef0773153cd8df361556e398935cdd1bdde
[ "BSD-2-Clause" ]
null
null
null
grabNdays.py
brianvan555/Stock
f0115ef0773153cd8df361556e398935cdd1bdde
[ "BSD-2-Clause" ]
null
null
null
grabNdays.py
brianvan555/Stock
f0115ef0773153cd8df361556e398935cdd1bdde
[ "BSD-2-Clause" ]
null
null
null
# %% import datetime import time import pandas as pd from io import StringIO from function_grab import grab_price import numpy as np import warnings import random data = {} n_days = 120 date = datetime.datetime.now() fail_count = 0 allow_continuous_fail_count = 15 # 近五年最長連續12天休市 while len(data) < n_day...
29.955556
79
0.629327
0
0
0
0
0
0
0
0
1,983
0.42408
f14245be4031d7387f3b61db91e9fdbcd0da8f5b
1,811
py
Python
CONTENT/Resources/guides/__UNSORTED/297_serialize_and_deserialize_binary_tree/serialize_and_desialize_binary_tree.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
13
2021-03-11T00:25:22.000Z
2022-03-19T00:19:23.000Z
CONTENT/Resources/guides/__UNSORTED/297_serialize_and_deserialize_binary_tree/serialize_and_desialize_binary_tree.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
162
2021-03-09T01:52:11.000Z
2022-03-12T01:09:07.000Z
CONTENT/Resources/guides/__UNSORTED/297_serialize_and_deserialize_binary_tree/serialize_and_desialize_binary_tree.py
impastasyndrome/DS-ALGO-OFFICIAL
c85ec9cf0af0009f038b7a571a7ac1fb466b7f3a
[ "Apache-2.0" ]
12
2021-04-26T19:43:01.000Z
2022-01-31T08:36:29.000Z
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None import json class Codec: def serialize(self, root): """Encodes a tree to a single string. :type root: TreeNode ...
24.146667
60
0.47101
1,502
0.829376
0
0
0
0
0
0
536
0.295969
f14272e90c89cf6a167f3389d2119044ece31836
1,832
py
Python
lhc/collections/interval_map.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
lhc/collections/interval_map.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
lhc/collections/interval_map.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
from collections import defaultdict from lhc.interval import IntervalBinner class IntervalMap(object): def __init__(self, key_value_pairs=None): self.len = 0 self.binner = IntervalBinner() self.bins = defaultdict(list) self.values = defaultdict(list) if key_value_pairs is ...
30.032787
84
0.556223
1,753
0.956878
855
0.466703
0
0
0
0
0
0
f142be6f64ce84f706ae93f6e0a3bfff599295dc
3,031
py
Python
control_layer/uuv_control_utils/scripts/apply_body_wrench.py
shubhamkorde/AnahitaPlus
0fc99ad774640c8dc8572ffb58d10fa18bb1a4b1
[ "BSD-3-Clause" ]
2
2020-09-21T19:45:07.000Z
2020-09-22T15:46:45.000Z
control_layer/uuv_control_utils/scripts/apply_body_wrench.py
shubhamkorde/AnahitaPlus
0fc99ad774640c8dc8572ffb58d10fa18bb1a4b1
[ "BSD-3-Clause" ]
2
2019-06-13T10:58:38.000Z
2019-09-24T14:09:05.000Z
control_layer/uuv_control_utils/scripts/apply_body_wrench.py
shubhamkorde/AnahitaPlus
0fc99ad774640c8dc8572ffb58d10fa18bb1a4b1
[ "BSD-3-Clause" ]
11
2019-12-05T05:18:10.000Z
2020-04-06T13:01:39.000Z
#!/usr/bin/env python # Copyright (c) 2016 The UUV Simulator Authors. # All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
29.427184
87
0.635104
0
0
0
0
0
0
0
0
1,206
0.397888
f1432fbe7e4b709efdff7049c6c10eeddba93d8f
11,788
py
Python
bin/consolidate-preempted-logs.py
phyletica/ecoevolity-experiments
bb16e34c4c7495feaa68653df98d5fbead93cf44
[ "CC-BY-4.0" ]
null
null
null
bin/consolidate-preempted-logs.py
phyletica/ecoevolity-experiments
bb16e34c4c7495feaa68653df98d5fbead93cf44
[ "CC-BY-4.0" ]
null
null
null
bin/consolidate-preempted-logs.py
phyletica/ecoevolity-experiments
bb16e34c4c7495feaa68653df98d5fbead93cf44
[ "CC-BY-4.0" ]
null
null
null
#! /usr/bin/env python import sys import os import re import glob import argparse import project_util batch_number_pattern = re.compile(r'batch(?P<batch_number>\d+)') sim_number_pattern = re.compile(r'-sim-(?P<sim_number>\d+)-') run_number_pattern = re.compile(r'-run-(?P<sim_number>\d+)\.log') def line_count(path)...
49.529412
98
0.462335
0
0
0
0
0
0
0
0
1,759
0.14922
f144647a79fb401204bd68db25162da1d4a3b39a
303
py
Python
web/util/dateutil.py
weerapatbook/studentmonitor
82d3f5f3ce123b447ba4e4930765319734eab223
[ "Apache-2.0" ]
null
null
null
web/util/dateutil.py
weerapatbook/studentmonitor
82d3f5f3ce123b447ba4e4930765319734eab223
[ "Apache-2.0" ]
4
2020-02-12T00:58:14.000Z
2021-06-10T21:43:33.000Z
web/util/dateutil.py
weerapatbook/studentmonitor
82d3f5f3ce123b447ba4e4930765319734eab223
[ "Apache-2.0" ]
null
null
null
import datetime class DateUtil(object): @classmethod def convertDateToString(cls, date): print(type(date)) value = '' try: value = date.strftime('%d/%m/%Y') except Exception as ex: print (ex) value = date return value
21.642857
45
0.528053
285
0.940594
0
0
257
0.848185
0
0
12
0.039604
f14465b2943d9c01982ead5e862581f5c9a9e84c
356
py
Python
django_traceback/models.py
andrewp-as-is/django-traceback.py
286094e329e0395e7f40a5e77216c2d03b0fb385
[ "Unlicense" ]
1
2020-10-03T06:07:35.000Z
2020-10-03T06:07:35.000Z
django_traceback/models.py
andrewp-as-is/django-traceback.py
286094e329e0395e7f40a5e77216c2d03b0fb385
[ "Unlicense" ]
null
null
null
django_traceback/models.py
andrewp-as-is/django-traceback.py
286094e329e0395e7f40a5e77216c2d03b0fb385
[ "Unlicense" ]
1
2020-10-03T06:07:39.000Z
2020-10-03T06:07:39.000Z
from django.db import models class Traceback(models.Model): type = models.TextField() value = models.TextField() traceback = models.TextField() path = models.TextField(blank=True,null=True) created_at = models.DateTimeField(auto_now_add=True) class Meta: db_table = 'django_traceback'...
23.733333
56
0.685393
324
0.910112
0
0
0
0
0
0
31
0.087079
f1448f06373972137c6c53b889b91b947ea395f4
752
py
Python
corehq/apps/ota/migrations/0007_update_blob_paths.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/ota/migrations/0007_update_blob_paths.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/ota/migrations/0007_update_blob_paths.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
# Generated by Django 1.11.14 on 2018-08-03 13:24 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('ota', '0006_one_reinstall_measure'), ] operations = [ migrations.RunSQL( # This migration is not reversible because blobs created ...
28.923077
73
0.595745
665
0.884309
0
0
0
0
0
0
492
0.654255
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 class my_UpNDownEnv(AtariEnv): def __init__(self): super(my_UpNDownEnv, self).\ __init__(game = 'up_n_down', obs_type = 'image', frameskip = 1, repeat_action_probability = 0.25) self.observation_space...
38.583333
109
0.521238
1,246
0.897048
0
0
0
0
0
0
301
0.216703
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 class site: def __init__(self): pass def parse_team(self, url: str) -> dict: pass class bangumi_moe_site(site): def __init__(self): self.logger = logging.ge...
35.635514
159
0.552583
3,684
0.966168
0
0
0
0
0
0
1,208
0.316811
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 class FailTC1(EZTestCase): FIXTURE = "twousers" def runTest(self): self.navigate_to_endpoint('index_two') try: self.assert_full_fixture_exists() self.f...
26.166667
87
0.66515
972
0.88444
0
0
0
0
0
0
220
0.200182
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
0
0
0
0
0
0
0
0
1,188
0.368144
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
37,966
0.990039
0
0
2,328
0.060707
0
0
23,158
0.603891
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) """ def parse_input() -> List[Tuple[int, int]]: with open('day02.txt', 'rb') as f: INPUT = map(lambda x: x.strip(), map(lambda x: x.decode("utf-8"), f.readlines())) moves = [] for entry in INPUT: direction, siz...
22.803571
89
0.539546
0
0
0
0
0
0
0
0
125
0.097886
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
0
0
0
0
0
0
0
0
668
0.513846
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 class Migration(migrations.Migration): dependencies = [ ('interest', '0001_initial'), ] operations = [ migrations.AlterField( model_name='interest', name='name', ...
26.583333
121
0.60815
547
0.854688
0
0
0
0
0
0
159
0.248438
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
291
0.309904
0
0
0
0
0
0
65
0.069223
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
0
0
0
0
0
0
0
0
1,191
0.575919
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. # def f_gold ( s ) : n = len ( s ) count = 0 ; for i in range ( 0 , n , 1 ) : if ( s [ i ] == '4' or s [ i ] =...
26.692308
90
0.480307
0
0
0
0
0
0
0
0
336
0.322767
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 test_component(name): if not os.path.exists(os.path.join(components_dir,name)): components() def components()...
27.290323
93
0.674941
0
0
0
0
0
0
0
0
268
0.316785
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
0
0
0
0
1,332
0.656805
0
0
518
0.255424
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") def run_script(app, name, options): cwd = os.getcwd() os.chdir('{0}/uploads'.format(app.root_path)) conf_obj = app.config['my_scripts'][name] command = [':'] if conf_obj['type'] == 'python': ...
30.722222
115
0.644665
0
0
0
0
0
0
0
0
217
0.196203
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
4,680
0.908385
0
0
1,385
0.268828
0
0
1,722
0.334239
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
0
0
0
0
0
0
0
0
23
0.333333
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 class ExpenseProto(models.Model): tags = models.ManyToManyField('tags.Tag') kit = models.ForeignKey('categories.Kit', on_delete=models.SET_NULL, blank=True, null=True) title = models.CharField(max_length=255) ...
34.378378
129
0.749214
1,164
0.915094
0
0
56
0.044025
0
0
82
0.064465
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 class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Image', fields=[ (...
29.807692
115
0.609032
657
0.847742
0
0
0
0
0
0
120
0.154839
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_...
29.5
89
0.754237
0
0
0
0
2,600
0.864362
0
0
1,041
0.346077
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
0
0
0
0
0
0
0
0
164
0.308271
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 def work(command, logfile, job_id, tot): line_info = f'\n{time.asctime()} Starting Job {job_id} (out of {tot})' line_command = f'\n{time.asctime()} Job {job_id} command: {command}\...
34.506024
118
0.651885
0
0
0
0
0
0
0
0
1,143
0.399092
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 * class Topology(object): def __init__(self, conf_file): ...
35.0375
86
0.585801
2,549
0.909383
0
0
0
0
0
0
1,423
0.50767
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 class DoubanItem(scrapy.Item): # 定义一个类DoubanItem,它继承自scrapy.Item title = scrapy.Field() # 定义书名的数据属性 publish = scrapy.Field() # 定义出版信息的数据属性 score = scrapy.Field() # 定义评分的数据属性
17.857143
37
0.68
279
0.792614
0
0
0
0
0
0
200
0.568182
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
0
0
0
0
0
0
0
0
280
0.117253
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
0
0
0
0
0
0
0
0
544
0.937931
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__) class RemediationResult(object): def __init__(self, address, message_id, mailbox_type, action, success=True, message=None): self.address = address self.message_id = message_id self.mailbox_type = mailbox_type self.success = success ...
28.238095
94
0.640809
541
0.91231
0
0
0
0
0
0
0
0
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
0
0
0
0
0
0
0
0
1,396
0.133563
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 def total_time(fun): def f(): before_time=time.time() fun() current_time=time.time() t_time=current_time-before_time print(t_time) return f @total_time def add(): time.sleep(1) return 3 #为函数添加装饰器,统计时间 @total_time def sub(): print('睡不好') time.sl...
15.64
39
0.598465
0
0
0
0
150
0.351288
0
0
69
0.161593
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
0
0
0
0
0
0
0
0
214
0.32084
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
0
0
0
0
875
0.085458
0
0
733
0.071589
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
2,571
0.84628
0
0
0
0
0
0
1,272
0.418697
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
5,596
0.933912
0
0
2,318
0.386849
0
0
1,564
0.261015
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
34,433
0.949509
0
0
1,481
0.040839
0
0
6,389
0.17618
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.""" class Team: def __init__(self, name): """A Team in a football tournament. Keeps track of a teams matches, wins, draws, losses and points. Parameters ---------- arg1 : string Name of the Team. """ self.name = n...
26.18
73
0.531958
2,742
0.698243
0
0
0
0
0
0
1,470
0.374332
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' class PrefixDBHandler(Databa...
34.923077
98
0.701542
673
0.370595
0
0
593
0.326542
470
0.258811
539
0.296806
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 def add(job): uwsgi = importlib.import_module('uwsgi') gws.log.info("SPOOLING", job.uid) d = {b'job_uid': gws.as_bytes(job.uid)} uwsgi.spool(d)
19
44
0.663158
0
0
0
0
0
0
0
0
27
0.142105
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
3,764
0.91448
0
0
3,790
0.920797
0
0
777
0.188776
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 def check(content): cno=['many','few','a few','a number of','the number of','numbers of','a quantity of','quantities of','a good many','a great many','a large number of','a great number of','scores of','dozens of'] uno=['much','little','a...
35.681818
264
0.564331
0
0
0
0
0
0
0
0
554
0.352866
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
3,542
0.877167
145
0.035909
0
0
0
0
616
0.152551
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
1,076
0.520309
0
0
0
0
0
0
1,029
0.497582
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
11,143
0.882684
0
0
925
0.073273
0
0
2,482
0.19661
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 class AuthenticatedTelnetConnection: """Allow authenticated telnet sessions to be established with a \ unit's serial ports by OpenGear server. If a board is connected serially to a OpenGear t...
34.681159
92
0.617635
2,276
0.951107
0
0
0
0
0
0
1,164
0.486419
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 def parse(data): start = data.find("<tbody>") end = data.find("</tbody>") data = data[start+7:end] for chunk in re.findall(r"<tr>.+?</tr>", data, re.DOTALL): fields = re.findall(r"<td>(.+?)</td>", chunk, re.DOTALL) parsedFields = [] for field in fields: ...
32
76
0.535675
0
0
715
0.197732
0
0
0
0
950
0.262721
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
0
0
0
0
0
0
0
0
62
0.257261
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, ) @pytest.fixture def middleware(mocker: MockerFixture) -> RequestLog...
30.075188
94
0.48975
0
0
0
0
3,118
0.7795
0
0
923
0.23075
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 class NaiveBayesClassifier: def __init__(self, k=0.5): self.k = k self.words_probs = [] def train(self, training_set): # count spam and non-spam messages num_spams = len( [is_spam for message, is_spam in training_set if is_spam]) num_...
31.363636
70
0.671014
665
0.963768
0
0
0
0
0
0
76
0.110145
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 def get_memory_percentage(): while True: r = psutil.virtual_memory().percent print(r) sys.stdout.flush() time.sleep(1) if __name__ == '__main__': get_memory_percentage()
19.4375
43
0.665595
0
0
0
0
0
0
0
0
70
0.22508
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
0
0
0
0
0
0
0
0
605
0.57346
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
931
0.364812
0
0
0
0
0
0
589
0.230799
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 def test_123(): assert True
12.75
42
0.784314
0
0
0
0
0
0
0
0
0
0
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
1,132
0.542146
0
0
0
0
0
0
1,220
0.584291
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
0
0
0
0
0
0
0
0
353
0.125311
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 class TestAutoCompletion(ExtTestCase): def test_completion...
34.582418
133
0.57674
2,840
0.902447
0
0
0
0
0
0
669
0.212583
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
0
0
0
0
0
0
0
0
0
0
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 class BundleCliTest(unittest.TestCase): def setUp(self) -> None: self.bundle_cli = BundleCLI def tearDown(self) -> None: del self.bundle_cli def test_collapse_bare_command_empty_args(self): argv = ['cl', 'run', '---', '...
38.931034
78
0.667848
1,065
0.943313
0
0
0
0
0
0
152
0.134632
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
0
0
0
0
0
0
0
0
33
0.284483
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
0
0
0
0
0
0
0
0
1,586
0.165848
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
0
0
0
0
0
0
0
0
42
0.43299
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
0
0
0
0
0
0
0
0
59
0.517544
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. Таблицы должны иметь два с...
33.692308
77
0.625571
0
0
0
0
0
0
0
0
1,492
0.647851
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 def getfile(file): dcm = pydicom.dcmread(file) img2 = dcm.pixel_array * dcm.RescaleSlope + dcm.RescaleIntercept return img2 def get_window_size(window_type): if window_type =='lung':#肺窗...
26.890909
68
0.634212
0
0
0
0
0
0
0
0
122
0.080956
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
0
0
0
0
0
0
0
0
922
0.652512
74b08192a0962af59339ae5fc75dfd53de367b84
1,600
py
Python
utils/ansi_text.py
hkkwok/MachOTool
469c0fd06199356fcc6d68809c7ba15a12eac1fd
[ "Apache-2.0" ]
12
2016-01-08T22:35:14.000Z
2019-07-29T11:50:41.000Z
utils/ansi_text.py
uvbs/MachOTool
469c0fd06199356fcc6d68809c7ba15a12eac1fd
[ "Apache-2.0" ]
2
2015-12-10T21:28:04.000Z
2019-10-15T10:05:19.000Z
utils/ansi_text.py
uvbs/MachOTool
469c0fd06199356fcc6d68809c7ba15a12eac1fd
[ "Apache-2.0" ]
6
2016-10-10T05:29:41.000Z
2019-10-15T09:59:17.000Z
class AnsiText(object): ENABLE_COLOR = True COLORS = {'black': 30, 'red': 31, 'green': 32, 'yellow': 33, 'blue': 34, 'magenta': 35, 'cyan': 36, 'white': 37} BOLD = 1 UNDERLINE = 4 def __init__(self, ...
30.769231
89
0.5025
1,599
0.999375
0
0
0
0
0
0
185
0.115625
74b16a53c0b40e421151135394463431087aac11
600
py
Python
groupy/exc.py
zorkian/groupy
c5d112a936e246cba1af14738a7201dfd1257069
[ "Apache-2.0" ]
null
null
null
groupy/exc.py
zorkian/groupy
c5d112a936e246cba1af14738a7201dfd1257069
[ "Apache-2.0" ]
null
null
null
groupy/exc.py
zorkian/groupy
c5d112a936e246cba1af14738a7201dfd1257069
[ "Apache-2.0" ]
null
null
null
class Error(Exception): pass class BackendError(Error): def __init__(self, message, server): self.message = message self.server = server def __str__(self): return "({}:{}) - {}" % ( self.server.hostname, self.server.port, self.message ) class BackendConnectio...
15.789474
64
0.67
578
0.963333
0
0
0
0
0
0
14
0.023333
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
0
0
0
0
0
0
0
0
83
0.251515
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
0
0
0
0
0
0
0
0
291
0.429204
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
0
0
0
0
0
0
0
0
1,122
0.482788
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
0
0
0
0
0
0
0
0
802
0.480527
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
949
0.669252
0
0
0
0
0
0
568
0.400564
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", ) def load(base_path, template_name): with (base_path / template_name).open() as input_fd: input_yaml = y...
29.607843
70
0.662914
0
0
0
0
0
0
0
0
187
0.123841
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
0
0
0
0
16,841
0.930442
0
0
5,440
0.300552
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
0
0
0
0
0
0
0
0
1,609
0.418357
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
0
0
0
0
0
0
0
0
3,796
0.627542
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 class CombineSystems: def __init__(self): self.utilities = Utilities() self.storage_path = 'comment-level-datasets-2/' # self.storage_path = 'r-combine-outputs/' # self.ra...
38.419492
149
0.545715
8,951
0.987206
0
0
0
0
0
0
1,663
0.183412
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
0
0
0
0
0
0
0
0
162
0.268657
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
0
0
0
0
0
0
0
0
576
0.539326
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 @ctask def mytask(c): eq_(c.hooray, 'yaml')
10.777778
25
0.690722
0
0
0
0
47
0.484536
0
0
6
0.061856
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 class VideoDBBuilder: def __init__(self, stimulus_id, lmdb_path, temporal_depth, fpv=75, video_strt_offset=15 , clips_overlap...
35.313636
164
0.740378
7,579
0.975544
0
0
0
0
0
0
2,222
0.286008
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
12,500
0.958736
0
0
6,180
0.473999
0
0
1,141
0.087513
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
0
0
0
0
0
0
0
0
221
0.051878
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
class Stick: def __init__(self, length=None, location=None): self._length = length self._loc = location self._id = id(self) self._color = None # fixme: Verilere setter metodu ile yükleme yapılması! @property def length(self): return self._length @pr...
19.962963
70
0.569573
946
0.875116
0
0
655
0.60592
0
0
67
0.06198