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
7f5f8e7da675ccdf94c2845ab889407163f48cad
16,914
py
Python
ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py
satish1901/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
27
2020-06-11T21:59:54.000Z
2022-03-22T03:10:50.000Z
ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py
N-NSH/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
7
2020-09-25T22:41:18.000Z
2022-02-09T23:41:04.000Z
ensemble_detectors/src/Algorithm_1_matchfilter/spectral_lib/spectral/algorithms/perceptron.py
N-NSH/Methane-detection-from-hyperspectral-imagery
741dee02e76931f572cf3e06af8faabe871e8e4a
[ "MIT" ]
4
2021-01-18T15:57:13.000Z
2022-03-12T20:51:27.000Z
######################################################################### # # perceptron.py - This file is part of the Spectral Python (SPy) package. # # Copyright (C) 2001-2014 Thomas Boggs # # Spectral Python is free software; you can redistribute it and/ # or modify it under the terms of the GNU General Publ...
35.910828
82
0.541504
13,899
0.821745
0
0
0
0
0
0
8,997
0.531926
7f5fc1c9185cffc53700f1f1d9e3856530dd7fe5
1,075
py
Python
sportsdataverse/cfb/cfb_teams.py
saiemgilani/sportsdataverse-py
77ae3accbb071b5308335b931e4e55a65e1500cd
[ "MIT" ]
12
2021-10-15T01:24:18.000Z
2022-03-15T17:00:22.000Z
sportsdataverse/cfb/cfb_teams.py
saiemgilani/sportsdataverse-py
77ae3accbb071b5308335b931e4e55a65e1500cd
[ "MIT" ]
19
2021-11-02T05:53:41.000Z
2022-03-16T14:16:51.000Z
sportsdataverse/cfb/cfb_teams.py
saiemgilani/sportsdataverse-py
77ae3accbb071b5308335b931e4e55a65e1500cd
[ "MIT" ]
1
2021-12-21T14:49:25.000Z
2021-12-21T14:49:25.000Z
import pandas as pd import json from sportsdataverse.dl_utils import download from urllib.error import URLError, HTTPError, ContentTooShortError def espn_cfb_teams(groups=None) -> pd.DataFrame: """espn_cfb_teams - look up the college football teams Args: groups (int): Used to define different division...
32.575758
117
0.646512
0
0
0
0
0
0
0
0
417
0.387907
7f61254a89ebbce054e77ea23ac41a27c30888e5
407
py
Python
src/solutions/solution013.py
samtcwong/daily-coding-problems
bd7da8e64a74a04f69a8b5b930100754e99b63f7
[ "MIT" ]
null
null
null
src/solutions/solution013.py
samtcwong/daily-coding-problems
bd7da8e64a74a04f69a8b5b930100754e99b63f7
[ "MIT" ]
null
null
null
src/solutions/solution013.py
samtcwong/daily-coding-problems
bd7da8e64a74a04f69a8b5b930100754e99b63f7
[ "MIT" ]
null
null
null
from typing import List # Problem #13 [Hard] # Good morning! Here's your coding interview problem for today. # This problem was asked by Amazon. # Given an integer k and a string s, find the length of the longest substring # that contains at most k distinct characters. # For example, given s = "abcba" and k = 2, # ...
25.4375
77
0.734644
0
0
0
0
0
0
0
0
344
0.845209
7f63663f06ed07834a3d2142ee1d260868e3df08
3,636
py
Python
vnpy/example.py
0x1be20/vnpy
51e3439570aefc67986078dd80a452b5f40f5653
[ "MIT" ]
null
null
null
vnpy/example.py
0x1be20/vnpy
51e3439570aefc67986078dd80a452b5f40f5653
[ "MIT" ]
null
null
null
vnpy/example.py
0x1be20/vnpy
51e3439570aefc67986078dd80a452b5f40f5653
[ "MIT" ]
null
null
null
import math import numpy as np import os import sys import csv import datetime import pandas as pd from vnpy.app.cta_strategy.backtesting import BacktestingEngine, OptimizationSetting from vnpy.app.cta_strategy.base import BacktestingMode from vnpy.app.cta_strategy import ( CtaTemplate, TickData, TradeData...
27.134328
84
0.596535
1,901
0.508289
0
0
0
0
0
0
443
0.118449
7f63e32605c44b6294e52e86fda5185cf150b67e
4,368
py
Python
tests/test_weekdays_list.py
mafrosis/dataclass_property
bd9680bcbf3221691227c5e056a9b1f5f999c849
[ "MIT" ]
null
null
null
tests/test_weekdays_list.py
mafrosis/dataclass_property
bd9680bcbf3221691227c5e056a9b1f5f999c849
[ "MIT" ]
null
null
null
tests/test_weekdays_list.py
mafrosis/dataclass_property
bd9680bcbf3221691227c5e056a9b1f5f999c849
[ "MIT" ]
null
null
null
def check_days(weekdays, *valid_days, is_valid=True): from dataclass_property.weekdays_list import Weekdays if len(valid_days) == 0: valid_days = list(Weekdays.DAYS) elif len(valid_days) == 0 and isinstance(valid_days[0], list): valid_days = valid_days[0] valid_days = [Weekdays.as_attr...
29.12
102
0.641484
277
0.063416
0
0
0
0
0
0
979
0.22413
7f651f1517a0884732ef21c2c571ce9f78614a71
304
py
Python
thenewboston_node/core/management/commands/generate_signing_key.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
30
2021-03-05T22:08:17.000Z
2021-09-23T02:45:45.000Z
thenewboston_node/core/management/commands/generate_signing_key.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
148
2021-03-05T23:37:50.000Z
2021-11-02T02:18:58.000Z
thenewboston_node/core/management/commands/generate_signing_key.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
14
2021-03-05T21:58:46.000Z
2021-10-15T17:27:52.000Z
from django.core.management import BaseCommand from thenewboston_node.core.utils.cryptography import generate_key_pair class Command(BaseCommand): help = 'Generate signing (private) key' # noqa: A003 def handle(self, *args, **options): self.stdout.write(generate_key_pair().private)
27.636364
71
0.753289
181
0.595395
0
0
0
0
0
0
44
0.144737
7f6542a305f9398e37131670f91383a3e41725e7
1,864
py
Python
Application/datasources/datapod_facebook/settings.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
Application/datasources/datapod_facebook/settings.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
Application/datasources/datapod_facebook/settings.py
GraphicalDot/datapod-backend-layer
ab38a5b0e969cd0d762e9d7720ab89174c333c37
[ "Apache-2.0" ]
null
null
null
#-*- coding: utf-8 -*- from playhouse.sqlite_ext import SqliteExtDatabase, FTSModel import sqlite3 from .db_initialize import initialize from .api import parse, images, stats, status, get_chats, dashboard, delete_original_path, cancel_parse import os from .variables import DATASOURCE_NAME class Routes: def __...
38.040816
177
0.578863
1,549
0.831009
0
0
0
0
0
0
341
0.18294
7f66fab2551c1200a99084dcebcddfcbb6ae6f04
347
py
Python
lab4/id.py
TypeKazt/CS265_Class
6db5f21cfc51961b71a85d95451cf986f60d47a4
[ "MIT" ]
null
null
null
lab4/id.py
TypeKazt/CS265_Class
6db5f21cfc51961b71a85d95451cf986f60d47a4
[ "MIT" ]
null
null
null
lab4/id.py
TypeKazt/CS265_Class
6db5f21cfc51961b71a85d95451cf986f60d47a4
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys if len(sys.argv) > 2 or len(sys.argv) < 2: print sys.argv[0] + "accepts 1 argument" sys.exit(1) accounts = {} with open(sys.argv[1],'r') as f: for i in f: temp = i.split(" ", 1) accounts[temp[0]] = temp[1] accounts.keys().sort() print "ID Name" for i in accounts: print str(i...
20.411765
42
0.596542
0
0
0
0
0
0
0
0
61
0.175793
7f6784f614c657d64ff55a4aaa604588f7cc578a
501
py
Python
router.py
spookybear0/website
200eb0e56512d134cd5a52727a073a47077cf280
[ "MIT" ]
null
null
null
router.py
spookybear0/website
200eb0e56512d134cd5a52727a073a47077cf280
[ "MIT" ]
null
null
null
router.py
spookybear0/website
200eb0e56512d134cd5a52727a073a47077cf280
[ "MIT" ]
null
null
null
import aiohttp import importlib routes = {"/": "index", "/users/{username}": "user", "/rankings": "rankings", "/level/{levelname}": "level", "/search": "search"} def add_all_routes(app: aiohttp.web.Application): for route, modulename in routes.items(): modulepath = ...
35.785714
109
0.610778
0
0
0
0
0
0
0
0
120
0.239521
7f69183ea142839ce779dbe7bfbef3bdf9530b88
415
py
Python
Remove Duplicates From Sorted Array 2.py
MetinKONUK/LeetCode
ba65bf2b43a3309da560cc2d8d742b3afe3894cb
[ "MIT" ]
null
null
null
Remove Duplicates From Sorted Array 2.py
MetinKONUK/LeetCode
ba65bf2b43a3309da560cc2d8d742b3afe3894cb
[ "MIT" ]
null
null
null
Remove Duplicates From Sorted Array 2.py
MetinKONUK/LeetCode
ba65bf2b43a3309da560cc2d8d742b3afe3894cb
[ "MIT" ]
null
null
null
def removeDuplicates(self, nums: List[int]) -> int: p = 0 for i in range(len(nums)): if not nums[i] in nums[:i]: nums[p] = nums[i] p += 1 return p """ Just iterating through every element and appending every first unique element to head of the list...
34.583333
97
0.60241
0
0
0
0
0
0
0
0
195
0.46988
7f69703f8f809116b21206029c85b39cc24652df
3,967
py
Python
golly-4.0-win-64bit/Scripts/Python/tile.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
golly-4.0-win-64bit/Scripts/Python/tile.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
golly-4.0-win-64bit/Scripts/Python/tile.py
larayeung/gollywithlocusts
e7adbaaa691fe46f22e88fb4d13e42b3d702a871
[ "Apache-2.0" ]
null
null
null
# Tile current selection with pattern inside selection. # Author: Andrew Trevorrow (andrew@trevorrow.com), March 2006. # Updated to use exit command, Nov 2006. # Updated to handle multi-state patterns, Aug 2008. from glife import * import golly as g selrect = rect( g.getselrect() ) if selrect.empty: g.exit("There is ...
26.986395
80
0.526594
0
0
0
0
0
0
0
0
1,229
0.309806
7f6978f707c126c136ad39f3b45816a9df89b466
968
py
Python
workflow/scripts/process.py
IMS-Bio2Core-Facility/GTExSnake
aefe96f70dd815036b1456c08a7b7068400f79a5
[ "MIT" ]
1
2021-07-13T09:18:36.000Z
2021-07-13T09:18:36.000Z
workflow/scripts/process.py
IMS-Bio2Core-Facility/GTExSnake
aefe96f70dd815036b1456c08a7b7068400f79a5
[ "MIT" ]
2
2021-07-14T09:32:29.000Z
2021-07-21T07:49:02.000Z
workflow/scripts/process.py
IMS-Bio2Core-Facility/GTExSnake
aefe96f70dd815036b1456c08a7b7068400f79a5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Process data to xlsx. Here, the input data from the previous three steps is combined and written to XLSX. The GTEx data is merged BioMart data using an outer merge, so as to keep all entries. Then, the MANE data is added using a left merge, so as to only keep the data from the GTEx query. ""...
30.25
87
0.682851
0
0
0
0
0
0
0
0
406
0.419421
7f6b2102a8e6ad3d81dcdc4da0012a459e68c9a9
2,943
py
Python
gamespy-serverlister.py
cetteup/battlefield-serverlisters
2176a11fda9e8c5be48dea1daed304db1c83f8a7
[ "MIT" ]
1
2021-01-04T01:30:37.000Z
2021-01-04T01:30:37.000Z
gamespy-serverlister.py
cetteup/battlefield-serverlisters
2176a11fda9e8c5be48dea1daed304db1c83f8a7
[ "MIT" ]
null
null
null
gamespy-serverlister.py
cetteup/battlefield-serverlisters
2176a11fda9e8c5be48dea1daed304db1c83f8a7
[ "MIT" ]
null
null
null
import argparse import logging import os import sys from src.constants import GSLIST_CONFIGS, GAMESPY_PRINCIPALS from src.serverlisters import GameSpyServerLister parser = argparse.ArgumentParser(description='Retrieve a list of game servers for GameSpy-based games ' 'and w...
45.984375
118
0.706422
0
0
0
0
0
0
0
0
1,254
0.426096
7f6c024bdbf80eb668baada9c5fe81bccdb1140e
398
py
Python
cornerstone_widget/__init__.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
24
2018-09-07T10:40:07.000Z
2022-02-01T21:18:00.000Z
cornerstone_widget/__init__.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
26
2018-09-04T16:32:46.000Z
2018-10-08T09:11:50.000Z
cornerstone_widget/__init__.py
betatim/cornerstone_widget
c22fafd4d8fe148f6b2349518188eb0bee5f18f1
[ "Apache-2.0" ]
3
2018-09-17T12:56:16.000Z
2019-12-03T06:30:34.000Z
from .cs_widget import CornerstoneWidget, CornerstoneToolbarWidget from .utils import get_bbox_handles from ._version import get_versions def _jupyter_nbextension_paths(): return [{ 'section': 'notebook', 'src': 'static', 'dest': 'cornerstone_widget', 'require': 'cornerstone_widget...
23.411765
66
0.70603
0
0
0
0
0
0
0
0
106
0.266332
7f6cc4d210e49a95321ceda8b2d2d8db78daf491
4,872
py
Python
go/channel/tests.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/channel/tests.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
go/channel/tests.py
lynnUg/vumi-go
852f906c46d5d26940bd6699f11488b73bbc3742
[ "BSD-3-Clause" ]
null
null
null
from uuid import uuid4 import urllib from django.core.urlresolvers import reverse from go.base.tests.helpers import GoDjangoTestCase, DjangoVumiApiHelper from go.channel.views import get_channel_view_definition class TestChannelViews(GoDjangoTestCase): def setUp(self): self.vumi_helper = self.add_helpe...
43.891892
78
0.677545
4,656
0.955665
0
0
0
0
0
0
754
0.154762
7f6f22b310867bcb23d6e02764ed6534fb15c5dd
4,715
py
Python
analysis/malware/oleDeobf/xdeobf.py
fritzemeier/skeletoncode
6c2c7de16f588c0856dd2f9770862126979b2620
[ "MIT" ]
null
null
null
analysis/malware/oleDeobf/xdeobf.py
fritzemeier/skeletoncode
6c2c7de16f588c0856dd2f9770862126979b2620
[ "MIT" ]
null
null
null
analysis/malware/oleDeobf/xdeobf.py
fritzemeier/skeletoncode
6c2c7de16f588c0856dd2f9770862126979b2620
[ "MIT" ]
null
null
null
import sys from chardet.universaldetector import UniversalDetector def parse_args(INFO): MENU = { \ "OBF":"Obfuscated algorithm file", \ "OF":"Output file (Not implemented)" } for NUM in range(1,len(sys.argv)): CURR = sys.argv[NUM] if CURR[:2] == "--": if CURR[2:] == "help": print_dict(MENU)...
21.828704
146
0.532768
0
0
0
0
0
0
0
0
1,029
0.21824
7f6f5b004757129f756542df01444d1d418496a6
309
py
Python
examples/demo/demo_payments/models.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
1
2015-11-05T10:26:46.000Z
2015-11-05T10:26:46.000Z
examples/demo/demo_payments/models.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
null
null
null
examples/demo/demo_payments/models.py
bartels/satchless
4d333014333dc4fd5815f9e0bbea565959919a30
[ "BSD-4-Clause" ]
null
null
null
from django.db import models from orders.app import order_app from satchless.contrib.payment.django_payments_provider.models import DjangoPaymentsPayment class Payment(DjangoPaymentsPayment): order = models.OneToOneField(order_app.Order, related_name='paymentvariant')
30.9
91
0.754045
152
0.491909
0
0
0
0
0
0
16
0.05178
7f72a5fd650666ecdf104589c2aeeb5a8a97ff0a
9,184
py
Python
typescript/libs/node_client.py
fongandrew/TypeScript-Sublime-JSX-Plugin
ee22b220a9874bb365aa84c2ffb3670ac7e9c97a
[ "Apache-2.0" ]
null
null
null
typescript/libs/node_client.py
fongandrew/TypeScript-Sublime-JSX-Plugin
ee22b220a9874bb365aa84c2ffb3670ac7e9c97a
[ "Apache-2.0" ]
null
null
null
typescript/libs/node_client.py
fongandrew/TypeScript-Sublime-JSX-Plugin
ee22b220a9874bb365aa84c2ffb3670ac7e9c97a
[ "Apache-2.0" ]
null
null
null
import os import subprocess import threading import time import json import sublime import sublime_plugin from .logger import log from . import json_helpers from . import global_vars # queue module name changed from Python 2 to 3 if int(sublime.version()) < 3000: import Queue as queue else: import queue cla...
34.656604
119
0.532883
8,863
0.965048
0
0
2,922
0.318162
0
0
2,056
0.223868
7f72e22697b47412c2e86ac9d6f29061040b3ceb
3,980
py
Python
Calculator.py
NOVAglow/basecalc
3f40a1d59266239edacd80c3046f78731cba9432
[ "Apache-2.0" ]
null
null
null
Calculator.py
NOVAglow/basecalc
3f40a1d59266239edacd80c3046f78731cba9432
[ "Apache-2.0" ]
null
null
null
Calculator.py
NOVAglow/basecalc
3f40a1d59266239edacd80c3046f78731cba9432
[ "Apache-2.0" ]
null
null
null
# Command dictionary, used for the help command and the ? command cmd_dict = { "help": "Show help.", "?": "Get help on a command. 1 argument required: name of the command. Example: \"? dec\"", "dec": "Convert a number to decimal. 2 arguments required: one is the number itself, second is the base.", ...
42.795699
156
0.484673
0
0
0
0
0
0
0
0
1,420
0.356784
7f72e3f0415454b4d930b826553fdc4856d0a5fd
1,240
py
Python
nablapps/com/migrations/0002_committee.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/com/migrations/0002_committee.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
nablapps/com/migrations/0002_committee.py
pettaroni/nablaweb
5e610698a276884b9cd779a718dfdee641713636
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), migrations.swappable_dependency(settings.AUTH_USER_MODEL),...
38.75
149
0.620968
1,101
0.88576
0
0
0
0
0
0
255
0.205149
7f7356dcac238b97ce72ba31683942264a22953e
543
py
Python
preprocessing/label_ordianl_encoding.py
Kunal614/Machine-Learning
26b3e0f3397ddb524c96c5b6c99b173b6fc80501
[ "MIT" ]
null
null
null
preprocessing/label_ordianl_encoding.py
Kunal614/Machine-Learning
26b3e0f3397ddb524c96c5b6c99b173b6fc80501
[ "MIT" ]
null
null
null
preprocessing/label_ordianl_encoding.py
Kunal614/Machine-Learning
26b3e0f3397ddb524c96c5b6c99b173b6fc80501
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.preprocessing import LabelEncoder df = pd.read_csv('train(2).csv') df2 = df[["KitchenQual" , "BldgType"]] #LAbel Encoder le = LabelEncoder() data = le.fit_transform(df2["BldgType"]) print(data) df2["BldType_l_enc"] = data #count number of class in a column pr...
18.1
66
0.710866
0
0
0
0
0
0
0
0
203
0.373849
7f761293833e609b7440a654c809853058049750
306
py
Python
Files/Exceptions.py
MPCodeWriter21/Member21
1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70
[ "MIT" ]
2
2021-01-31T04:11:20.000Z
2021-03-01T05:47:34.000Z
Files/Exceptions.py
MPCodeWriter21/Member21
1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70
[ "MIT" ]
null
null
null
Files/Exceptions.py
MPCodeWriter21/Member21
1db91e24a1e48ea8dbe0b59e0493a6e67a0acc70
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # Exceptions # CodeWriter21 class APIConfigNotFoundException(Exception): pass class APIConfigDamagedException(Exception): pass class NoBotConfigFoundException(Exception): pass class NoBotEnabledConfigFoundException(Exception): pass class ButtonsNotSetException(Exception): pass
17
50
0.833333
250
0.816993
0
0
0
0
0
0
44
0.143791
7f7743c91e5d5443c9e37cdb6ce585839d9a7946
493
py
Python
01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
01 Basics/011 - Functions and Examples/011 -f- Example-Circle area.py
TheUnicum/CorsoPython
06cb2b58d46b26fc6d1cf4a585ff2666ab4b5c19
[ "Apache-2.0" ]
null
null
null
#!/usr/local/bin/python # -*- coding: utf-8 -*- # # Copyright 2018 Mattia Benedetti # All rights reserved. # # Author: Mattia Benedetti """ - FUNCTIONs - Calculate the area of a circle with radius input by user -> run on pront command <- Note : -1 to EXIT! """ from math import pi def circle_ar...
15.40625
56
0.636917
0
0
0
0
0
0
0
0
298
0.604462
7f777087518551b0eec6e2af3c5f3d647f6bd44e
1,143
py
Python
install/app_store/tk-framework-shotgunutils/v5.2.4/tests/fixtures/config/bundles/test_engine/engine.py
JoanAzpeitia/lp_sg
e0ee79555e419dd2ae3a5f31e5515b3f40b22a62
[ "MIT" ]
4
2019-01-11T03:41:28.000Z
2019-09-12T06:57:17.000Z
bundle_cache/app_store/tk-multi-breakdown/v1.5.0/tests/fixtures/config/bundles/test_engine/engine.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
null
null
null
bundle_cache/app_store/tk-multi-breakdown/v1.5.0/tests/fixtures/config/bundles/test_engine/engine.py
ColinKennedy/tk-config-default2-respawn
855fb8033daa549b92615792442f19a7f9c4f55c
[ "Linux-OpenIB" ]
2
2019-01-10T05:00:18.000Z
2020-02-15T16:32:56.000Z
# Copyright (c) 2013 Shotgun Software Inc. # # CONFIDENTIAL AND PROPRIETARY # # This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit # Source Code License included in this distribution package. See LICENSE. # By accessing, using, copying or modifying this work you indicate your # agreement to t...
28.575
94
0.608924
584
0.510936
0
0
0
0
0
0
660
0.577428
7f7775f0c9376f63e26adcbd22385f3c36c24f47
401
py
Python
gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
17
2021-05-18T01:58:06.000Z
2022-03-22T20:49:32.000Z
gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
29
2021-05-17T21:43:16.000Z
2022-02-28T22:50:48.000Z
gehomesdk/erd/converters/ac/erd_ac_target_temperature_converter.py
willhayslett/gehome
7e407a1d31cede1453656eaef948332e808484ea
[ "MIT" ]
9
2021-05-17T04:40:58.000Z
2022-02-02T17:26:13.000Z
from ..abstract import ErdReadWriteConverter from ..primitives import * from gehomesdk.erd.values.ac import * class ErdAcTargetTemperatureConverter(ErdReadWriteConverter[int]): def erd_decode(self, value: str) -> int: try: return erd_decode_int(value) except: return 86 ...
28.642857
66
0.680798
289
0.720698
0
0
0
0
0
0
0
0
7f79226a907e0920d92118e3fb487482028c8ebf
3,533
py
Python
src/pyams_utils/session.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/session.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
src/pyams_utils/session.py
Py-AMS/pyams-utils
65b166596a8b9f66fb092a69ce5d53ac6675685e
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2008-2015 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
34.300971
97
0.668271
0
0
0
0
0
0
0
0
2,416
0.683838
7f793f0055dfba9774cbf31309fc492d7d2ba7e5
1,543
py
Python
Picturedom/tests/photo/views/test_category_photos.py
Azzarox/Picturedom
69d1b77dcdd89d63b12c7c56e25d43955d906b98
[ "MIT" ]
null
null
null
Picturedom/tests/photo/views/test_category_photos.py
Azzarox/Picturedom
69d1b77dcdd89d63b12c7c56e25d43955d906b98
[ "MIT" ]
null
null
null
Picturedom/tests/photo/views/test_category_photos.py
Azzarox/Picturedom
69d1b77dcdd89d63b12c7c56e25d43955d906b98
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from django.core.files.uploadedfile import SimpleUploadedFile from django.urls import reverse from Picturedom.photo.models import Category, Photo class TestCategoryPhotos(TestCase): def setUp(self): self.user = User.objects.creat...
41.702703
95
0.670123
1,317
0.853532
0
0
0
0
0
0
260
0.168503
7f79688fd9e51a672dbdb62bdcea05a28ae5e3cf
418
py
Python
ch_03/task7.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
ch_03/task7.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
ch_03/task7.py
berchev/python_learning
5b99065cade53c64b4ede3d0e583c58573ca654c
[ "MIT" ]
null
null
null
#!/usr/bin/env python def top_three_avg(grade1, grade2, grade3, grade4): """ :param grade1: number :param grade2: number :param grade3: number :param grade4: number :return: number """ total = grade1 + grade2 + grade3 + grade4 top_three = total - min(grade1, grade2, grade3, grade4)...
23.222222
59
0.65311
0
0
0
0
0
0
0
0
157
0.375598
7f79c6850dcf67dcb5170d3847119265d3968e00
1,062
py
Python
Diena_8_dictionaries/d8_a16_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
8
2020-08-31T16:10:54.000Z
2021-11-24T06:37:37.000Z
Diena_8_dictionaries/d8_a16_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
8
2021-06-08T22:30:29.000Z
2022-03-12T00:48:55.000Z
Diena_8_dictionaries/d8_a16_u1.py
MarisKuz/Python-RTU
12261d06dc81fa0d98190ca0eb5133d43d517070
[ "MIT" ]
12
2020-09-28T17:06:52.000Z
2022-02-17T12:12:46.000Z
from collections import Counter import string print(string.digits) def get_char_count(text): text = str(text) # letters = {} # for i in text: # if i in letters: # letters[i] += 1 # else: # letters[i] = 1 letters = Counter(text) print(letters) return lette...
23.086957
74
0.60452
0
0
0
0
0
0
0
0
662
0.623352
7f7ba3780cb3b133493e7602db98985a3c01774a
2,441
py
Python
manage.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
manage.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
manage.py
clouserw/zamboni
c4a568b69c1613f27da41d46328b2975cbdc1c07
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import logging import os import sys from django.core.management import execute_from_command_line if 'DJANGO_SETTINGS_MODULE' not in os.environ: if len(sys.argv) > 1 and sys.argv[1] == 'test': os.environ['DJANGO_SETTINGS_MODULE'] = 'settings_test' else: os.environ.setdefau...
28.383721
79
0.745596
0
0
0
0
0
0
0
0
1,077
0.441213
7f7c838f8641a32bb524bcbc48cd108587b15c84
1,636
py
Python
recommenders/recommenders/models/ranking_model.py
hojinYang/tfrs-movierec-serving
bef4f19a8be99cde510d761082de7602151a7d99
[ "Apache-2.0" ]
17
2020-11-14T07:03:06.000Z
2022-02-21T00:56:49.000Z
recommenders/recommenders/models/ranking_model.py
hojinYang/tfrs-movierec-serving
bef4f19a8be99cde510d761082de7602151a7d99
[ "Apache-2.0" ]
null
null
null
recommenders/recommenders/models/ranking_model.py
hojinYang/tfrs-movierec-serving
bef4f19a8be99cde510d761082de7602151a7d99
[ "Apache-2.0" ]
1
2021-05-20T06:00:51.000Z
2021-05-20T06:00:51.000Z
from typing import Callable, Dict, Tuple, Text from recommenders.datasets import Dataset import numpy as np import tensorflow as tf import tensorflow_recommenders as tfrs from pathlib import Path SAVE_PATH = Path(__file__).resolve().parents[1] / "weights" class RankingModel(tfrs.models.Model): def __init__( ...
32.72
103
0.630196
1,370
0.837408
0
0
0
0
0
0
76
0.046455
7f7e5421cd569f07ea56ab7d15d596eb794887ff
1,687
py
Python
vulntracker/vulnalert/util.py
jonaustin/advisoryscan
ba452c155f0d478450e0c91de5ea00f404e98616
[ "MIT" ]
null
null
null
vulntracker/vulnalert/util.py
jonaustin/advisoryscan
ba452c155f0d478450e0c91de5ea00f404e98616
[ "MIT" ]
null
null
null
vulntracker/vulnalert/util.py
jonaustin/advisoryscan
ba452c155f0d478450e0c91de5ea00f404e98616
[ "MIT" ]
1
2018-12-06T12:50:52.000Z
2018-12-06T12:50:52.000Z
""" Utility Functions """ ### From the Python Cookbook ## Generate a human readable 'random' password ## password will be generated in the form 'word'+digits+'word' ## eg.,nice137pass ## parameters: number of 'characters' , number of 'digits' ## Pradeep Kishore Gowda <pradeep at btbytes.com > ## License : GPL ## Da...
26.777778
98
0.567279
0
0
0
0
0
0
0
0
726
0.43035
7f7f165be9eb0ca7213a02ea5cc2e9b6e4418888
32,951
py
Python
api/custom_components/custom_nodes.py
phucnh22/mapintel_dev
492c077177fe96b2c975c350d9f3bd1dc61691dd
[ "MIT" ]
null
null
null
api/custom_components/custom_nodes.py
phucnh22/mapintel_dev
492c077177fe96b2c975c350d9f3bd1dc61691dd
[ "MIT" ]
null
null
null
api/custom_components/custom_nodes.py
phucnh22/mapintel_dev
492c077177fe96b2c975c350d9f3bd1dc61691dd
[ "MIT" ]
null
null
null
""" See https://github.com/deepset-ai/haystack/issues/955 for further context """ import os import logging from copy import deepcopy from typing import Dict, Generator, List, Optional, Union import numpy as np from elasticsearch.helpers import bulk, scan from tqdm.auto import tqdm from haystack.utils import get_batche...
45.956764
149
0.603654
32,151
0.975722
2,265
0.068738
0
0
0
0
13,164
0.399502
7f811161ced4a1cebb10b296dd174d5c70763adb
886
py
Python
commands.py
rsmelo/speech_test
ad5fc5605c453f6db33c1a725edae03672951eb1
[ "MIT" ]
null
null
null
commands.py
rsmelo/speech_test
ad5fc5605c453f6db33c1a725edae03672951eb1
[ "MIT" ]
null
null
null
commands.py
rsmelo/speech_test
ad5fc5605c453f6db33c1a725edae03672951eb1
[ "MIT" ]
null
null
null
import subprocess import os from get_answer import Fetcher class Commander: def __init__(self): self.confirm = [ "yes", "affimartive", "si", "sure", "do it", "yeah", "confirm" ] self.cancel = [ "no", "negative", "negative soldier", "don't", "wait", "cancel" ...
30.551724
76
0.538375
824
0.930023
0
0
0
0
0
0
263
0.29684
7f8164659ef1ccd20d9bceb9a6bfd362f063f6e1
2,073
py
Python
day-3/part1.py
bwheel/AdventOfCode2018
efd5c59c67453e5388a9d38022890affcb3265cf
[ "MIT" ]
null
null
null
day-3/part1.py
bwheel/AdventOfCode2018
efd5c59c67453e5388a9d38022890affcb3265cf
[ "MIT" ]
null
null
null
day-3/part1.py
bwheel/AdventOfCode2018
efd5c59c67453e5388a9d38022890affcb3265cf
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re regex = "^(#(?P<ClaimId>[0-9]{0,}) @ (?P<FromLeftEdge>[0-9]{0,}),(?P<FromTopEdge>[0-9]{0,}): (?P<Width>[0-9]{0,4})x(?P<Height>[0-9]{0,4}).*)$" class Claim(object): def __init__(self, line): match = re.search(regex, line) self.ClaimId = match.group('ClaimId') ...
36.368421
205
0.593343
820
0.395562
0
0
0
0
0
0
476
0.229619
7f827544721ffdb6dabf9bf15e8a94b059ad6a71
736
py
Python
trampill_backend/mainapp/forms.py
trampill-backend/trampill-backend
0cf98414d3ecd489657de42cb91431e8bfae945c
[ "MIT" ]
2
2020-03-04T19:03:55.000Z
2020-03-08T09:10:21.000Z
trampill_backend/mainapp/forms.py
trampill-backend/trampill-backend
0cf98414d3ecd489657de42cb91431e8bfae945c
[ "MIT" ]
null
null
null
trampill_backend/mainapp/forms.py
trampill-backend/trampill-backend
0cf98414d3ecd489657de42cb91431e8bfae945c
[ "MIT" ]
1
2020-03-08T10:54:10.000Z
2020-03-08T10:54:10.000Z
from django import forms from . import models class CourseItemForm(forms.ModelForm): class Meta: model = models.CourseItem fields = [ "published", "episode_url", "episode", "episode_note", "episode_title", "episode_archive", ...
19.368421
38
0.475543
681
0.925272
0
0
0
0
0
0
146
0.19837
7f837f1cd2f19a02fd36eec3fc46b1adb29677fc
3,962
py
Python
utils.py
vitalProjects/curse_project
5768d7413db86b1d1054f0ff1102acfbea773fc7
[ "Apache-2.0" ]
1
2021-03-14T21:38:41.000Z
2021-03-14T21:38:41.000Z
utils.py
vitalfect/columnsAgent
5768d7413db86b1d1054f0ff1102acfbea773fc7
[ "Apache-2.0" ]
null
null
null
utils.py
vitalfect/columnsAgent
5768d7413db86b1d1054f0ff1102acfbea773fc7
[ "Apache-2.0" ]
null
null
null
from math import log import pickle import numpy from numpy import array from math import log10 # beam_search def beam_search(data: numpy.array, k: int) -> numpy.array: sequences = [[list(), 0.0]] for row in data: all_candidates = list() for i in range(len(sequences)): seq, score = ...
28.919708
74
0.542655
790
0.199394
0
0
0
0
0
0
263
0.066381
7f840adfb6c161bcb8644492958f69399fd4eb2f
176
py
Python
Code/L016/cc.py
iot-makers-code/IoT_prototype
b6524a78756643230cc7073285ae8c2cc7563a4d
[ "MIT" ]
null
null
null
Code/L016/cc.py
iot-makers-code/IoT_prototype
b6524a78756643230cc7073285ae8c2cc7563a4d
[ "MIT" ]
null
null
null
Code/L016/cc.py
iot-makers-code/IoT_prototype
b6524a78756643230cc7073285ae8c2cc7563a4d
[ "MIT" ]
null
null
null
import time import os for i in range(50): print("Update data.") with open("DATA", "wt") as f: f.write("DATA, ") f.write( str(time.time()) ) time.sleep(2)
17.6
33
0.568182
0
0
0
0
0
0
0
0
32
0.181818
7f84dc432af3744e58df34fefd202e89d5feb1eb
1,125
py
Python
graphene_protector/django.py
Grenadingue/graphene-protector
f6d8a93100d080923aefe6ad7c0c8a65fb882673
[ "MIT" ]
null
null
null
graphene_protector/django.py
Grenadingue/graphene-protector
f6d8a93100d080923aefe6ad7c0c8a65fb882673
[ "MIT" ]
null
null
null
graphene_protector/django.py
Grenadingue/graphene-protector
f6d8a93100d080923aefe6ad7c0c8a65fb882673
[ "MIT" ]
null
null
null
from django.conf import settings import graphene from . import base class ProtectorBackend(base.ProtectorBackend): def __init__(self, *args, **kwargs): if hasattr(settings, "GRAPHENE_PROTECTOR_DEPTH_LIMIT"): kwargs.setdefault( "depth_limit", settings.GRAPHENE_PROTECTOR_DEPTH_...
32.142857
70
0.633778
1,049
0.932444
0
0
0
0
0
0
173
0.153778
7f85a86c36b65042bb52fa6bb39cd317aa2eeda3
488
py
Python
02-FaceDetect.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
02-FaceDetect.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
02-FaceDetect.py
amandureja/Important-Content
d222bbd65f3cf7b40a6766905baa160576b6d295
[ "Apache-2.0" ]
null
null
null
import cv2 face_data = cv2.CascadeClassifier("haarcascade_frontalface_default.xml") cap = cv2.VideoCapture(0) while True: ret, img = cap.read() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_data.detectMultiScale(gray, 1.3, 5) for x,y,w,h in faces: cv2.rectangle(img, (...
22.181818
73
0.610656
0
0
0
0
0
0
0
0
42
0.086066
7f861c4a85065cb19ee05620bdec96aa88122e49
12,446
py
Python
src/models/train_BDRRAA.py
ChristianDjurhuus/RAA
b2eb1db527bcb09f35598c2bbf8dff2689ad599b
[ "MIT" ]
1
2022-03-16T16:09:22.000Z
2022-03-16T16:09:22.000Z
src/models/train_BDRRAA.py
ChristianDjurhuus/RAA
b2eb1db527bcb09f35598c2bbf8dff2689ad599b
[ "MIT" ]
null
null
null
src/models/train_BDRRAA.py
ChristianDjurhuus/RAA
b2eb1db527bcb09f35598c2bbf8dff2689ad599b
[ "MIT" ]
1
2022-02-18T17:10:27.000Z
2022-02-18T17:10:27.000Z
import torch import torch.nn as nn import matplotlib.pyplot as plt import torch.nn.functional as F from sklearn import metrics import seaborn as sns from torch_sparse import spspmm import numpy as np from src.visualization.visualize import Visualization from src.features.link_prediction import Link_prediction class B...
48.807843
187
0.625422
5,823
0.467786
0
0
0
0
0
0
4,737
0.380543
7f869c0af68af9c1d7d792cbc21f501afee6f342
185
py
Python
testName.py
zafar21/Automatic-Form-Filler
4cb7f7d62e5b0927309eb17411ffd14343fcdeb4
[ "MIT" ]
null
null
null
testName.py
zafar21/Automatic-Form-Filler
4cb7f7d62e5b0927309eb17411ffd14343fcdeb4
[ "MIT" ]
null
null
null
testName.py
zafar21/Automatic-Form-Filler
4cb7f7d62e5b0927309eb17411ffd14343fcdeb4
[ "MIT" ]
null
null
null
import pyautogui import time pyautogui.click(300, 400) pyautogui.hotkey('ctrl', 'f') time.sleep(.200) pyautogui.typewrite('email') time.sleep(.200) pyautogui.locateOnScreen('mail.png')
20.555556
36
0.767568
0
0
0
0
0
0
0
0
26
0.140541
7f8755703317e0969ef5e60e9a3552a3020e20c1
1,263
py
Python
Frame/GameView.py
FCWYzzr/py-entertain
ddc5b5df9962a4b51d15bff805961f0ed151fe23
[ "MIT" ]
null
null
null
Frame/GameView.py
FCWYzzr/py-entertain
ddc5b5df9962a4b51d15bff805961f0ed151fe23
[ "MIT" ]
null
null
null
Frame/GameView.py
FCWYzzr/py-entertain
ddc5b5df9962a4b51d15bff805961f0ed151fe23
[ "MIT" ]
null
null
null
from pygame.display import set_mode, update, set_caption from pygame.time import Clock from pygame import init, quit, QUIT from pygame.event import get as events from GameStage import GameStages from sys import exit as end class window: def __init__(self): init() Name = "Title" ...
27.456522
62
0.511481
1,026
0.812352
0
0
0
0
0
0
40
0.031671
7f87609b319d11eb19d09b2679873ad7399e930b
1,268
py
Python
test/test_sources.py
PSD79/avaland
142547e48b1728db6efe8a6b9f02af18a1b42bc5
[ "MIT" ]
27
2020-05-12T22:02:57.000Z
2021-07-27T10:53:24.000Z
test/test_sources.py
PSD79/avaland
142547e48b1728db6efe8a6b9f02af18a1b42bc5
[ "MIT" ]
null
null
null
test/test_sources.py
PSD79/avaland
142547e48b1728db6efe8a6b9f02af18a1b42bc5
[ "MIT" ]
2
2020-05-13T18:40:03.000Z
2020-05-14T15:01:07.000Z
import inspect import unittest from avaland import sources from avaland import MusicBase from avaland.search import SearchResult def test_search(self): query = self.source.search.test source = self.source({}).search(query) self.assertIsInstance(source, SearchResult) def test_artist_id(self): artist...
24.862745
60
0.702681
0
0
0
0
0
0
0
0
67
0.052839
7f8763673577a30d433ba355c7239e3606ba5069
236
py
Python
vspkgenerator/vanilla/python/__overrides/nume.override.py
pdumais/vspkgenerator
b8fff474f4ef3d8a4278f9c116df01d057c56995
[ "BSD-3-Clause" ]
2
2015-10-10T08:59:39.000Z
2015-10-22T09:33:01.000Z
vspkgenerator/vanilla/python/__overrides/nume.override.py
rajeshnokia/vspkgenerator
b8fff474f4ef3d8a4278f9c116df01d057c56995
[ "BSD-3-Clause" ]
16
2015-11-05T13:15:30.000Z
2019-09-24T23:48:54.000Z
vspkgenerator/vanilla/python/__overrides/nume.override.py
pdumais/vspkgenerator
b8fff474f4ef3d8a4278f9c116df01d057c56995
[ "BSD-3-Clause" ]
13
2015-11-18T08:03:44.000Z
2020-12-24T03:39:29.000Z
def save(self, as_async=False, callback=None, **kwargs): """ """ if 'async' in kwargs.keys() and not as_async: as_async = kwargs['async'] super(NUMe, self).save(as_async=as_async, callback=callback, encrypted=False)
39.333333
81
0.665254
0
0
0
0
0
0
0
0
21
0.088983
7f88a5b5649c62584bb4e5058103dfe3ee699bde
382
py
Python
db.py
dcronqvist/restberry-api
35a2698ae946fc392e5e7d56dbc22b0719d6f5b6
[ "MIT" ]
1
2020-09-18T23:17:27.000Z
2020-09-18T23:17:27.000Z
db.py
dcronqvist/restberry-api
35a2698ae946fc392e5e7d56dbc22b0719d6f5b6
[ "MIT" ]
7
2020-09-29T14:21:24.000Z
2021-06-15T22:04:47.000Z
db.py
dcronqvist/restberry-api
35a2698ae946fc392e5e7d56dbc22b0719d6f5b6
[ "MIT" ]
null
null
null
from pymongo import MongoClient import config as config db_conn = MongoClient(config.get_setting("mongo-db-conn", "null")) db = db_conn.restberry_api coll_trans = db.transactions coll_accounts = db.accounts def stringify_ids(docs): """ Expects docs to be a list of documents, not a cursor. """ for doc...
23.875
66
0.693717
0
0
0
0
0
0
0
0
100
0.26178
7f88d3f2996bb1d9a7bdfe7b4b07037563dd2710
3,847
py
Python
Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py
maistrovas/My-Courses-Solutions
7a74add8e853f6c609d1f2656492e1c7c676a7e9
[ "MIT" ]
null
null
null
Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py
maistrovas/My-Courses-Solutions
7a74add8e853f6c609d1f2656492e1c7c676a7e9
[ "MIT" ]
null
null
null
Udacity_Fullstack_Nanodegree/vagrant/catalog/project.py
maistrovas/My-Courses-Solutions
7a74add8e853f6c609d1f2656492e1c7c676a7e9
[ "MIT" ]
null
null
null
from flask import Flask, render_template, url_for, request, redirect, flash, jsonify from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import datetime from database_setup import Base, Restaurant, MenuItem app = Flask(__name__) engine = create_engine('sqlite:///restaurantmenu.db') Base.metada...
31.793388
84
0.710164
0
0
0
0
2,942
0.764752
0
0
1,051
0.2732
7f88fb7cac6580e430925045266e0c4ac360b0d2
213
py
Python
ppci/graph/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/graph/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
ppci/graph/__init__.py
jsdelivrbot/ppci-mirror
67195d628275e2332ceaf44c9e13fc58d0877157
[ "BSD-2-Clause" ]
null
null
null
""" Graph algorithms module. """ from .graph import Graph, Node from .digraph import DiGraph, DiNode from .maskable_graph import MaskableGraph __all__ = ('Graph', 'Node', 'DiGraph', 'DiNode', 'MaskableGraph')
19.363636
65
0.723005
0
0
0
0
0
0
0
0
78
0.366197
7f89d6f19aa8fe7e4a2b47ac44b71ea6a1395fce
19,122
py
Python
garnett/shapes.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
4
2019-07-30T00:12:44.000Z
2020-03-03T19:58:34.000Z
garnett/shapes.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
62
2019-07-29T20:05:46.000Z
2022-02-16T15:22:01.000Z
garnett/shapes.py
glotzerlab/garne
f9cb7bad391299e28feb4010eb77447fdc4512cb
[ "BSD-3-Clause" ]
2
2020-03-03T19:59:09.000Z
2021-03-22T14:48:56.000Z
# Copyright (c) 2020 The Regents of the University of Michigan # All rights reserved. # This software is licensed under the BSD 3-Clause License. """Abstract shape definitions used to read/write particle shapes.""" import json import logging import numpy as np __all__ = [ 'FallbackShape', 'Shape', 'Spher...
31.65894
108
0.563278
14,996
0.784228
0
0
6,651
0.347819
0
0
9,273
0.484939
7f89ef2283ab13bb046619397b197275189da323
24,174
py
Python
swagger_client/apis/organization_api.py
ESIPFed/corpy
e1eec577f15934c6969784c4025d2c29eb7c32ca
[ "Apache-2.0" ]
null
null
null
swagger_client/apis/organization_api.py
ESIPFed/corpy
e1eec577f15934c6969784c4025d2c29eb7c32ca
[ "Apache-2.0" ]
null
null
null
swagger_client/apis/organization_api.py
ESIPFed/corpy
e1eec577f15934c6969784c4025d2c29eb7c32ca
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ ORR API Documentation The main ORR documentation is located at: https://mmisw.org/orrdoc/ __Please note__: - The ORR API is approaching a stable version but is still work in progress. Please [let us know](https://github.com/mmisw/mmiorr-docs/issues) if you have any questions or sugges...
43.090909
1,710
0.577108
22,080
0.913378
0
0
0
0
0
0
12,863
0.532101
7f8b06b9284f0d519a5edeab7410a71507203f87
7,146
py
Python
cre8/layout.py
dekarrin/cre8orforge
b93801da140ed245d4a0f7129bde0d3e655752c9
[ "MIT" ]
null
null
null
cre8/layout.py
dekarrin/cre8orforge
b93801da140ed245d4a0f7129bde0d3e655752c9
[ "MIT" ]
4
2021-12-06T14:06:34.000Z
2021-12-21T13:12:17.000Z
cre8/layout.py
dekarrin/cre8mancer
b93801da140ed245d4a0f7129bde0d3e655752c9
[ "MIT" ]
null
null
null
import math from .format import format_timer, pad_middle, pad_right, pad_left from . import format from .activities import Activity, OwnedActivities DefaultTextCardWidth = 65 _RightColumnWidth = 14 def progress_bar( width: int, progress: float, end_char: str = '|', fill_char: str = '-', empty_cha...
42.790419
106
0.623566
0
0
0
0
0
0
0
0
2,976
0.416457
7f8d5a04fa22a72def6576019a66f48aed48a68f
1,831
py
Python
roblox/utilities/shared.py
Boegie19/ro.py
68b8acb506ab3057670168434fbf90ea0d05943f
[ "MIT" ]
null
null
null
roblox/utilities/shared.py
Boegie19/ro.py
68b8acb506ab3057670168434fbf90ea0d05943f
[ "MIT" ]
null
null
null
roblox/utilities/shared.py
Boegie19/ro.py
68b8acb506ab3057670168434fbf90ea0d05943f
[ "MIT" ]
1
2021-06-28T14:57:39.000Z
2021-06-28T14:57:39.000Z
""" This module contains the ClientSharedObject, which is shared between the client and all objects it generates. """ from __future__ import annotations from typing import TYPE_CHECKING, Optional from .requests import Requests from .url import URLGenerator if TYPE_CHECKING: from ..client import Client fro...
34.54717
109
0.713271
1,302
0.711087
0
0
0
0
0
0
833
0.454943
7f8dc9d86f37042f9bf2a72c821d1fb648b7c645
3,281
py
Python
app.py
gakunkel/sqlalchemy-challenge
f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947
[ "MIT" ]
null
null
null
app.py
gakunkel/sqlalchemy-challenge
f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947
[ "MIT" ]
null
null
null
app.py
gakunkel/sqlalchemy-challenge
f7fa8ae4e7d5f4ed77446ddd57b5695e8ca69947
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[ ]: import datetime as dt import pandas as pd import numpy as np import sqlalchemy from sqlalchemy.ext.automap import automap_base from sqlalchemy.orm import Session from sqlalchemy import create_engine, func from flask import Flask, jsonify # Establishing a connection e...
28.530435
121
0.682414
0
0
0
0
1,964
0.598598
0
0
1,282
0.390735
7f8e9b2d12abccfba6d15231cb1a8950c8371c66
6,330
py
Python
src/Model.py
colombelli/whatsapp-nlp
64b54b35a2fefc7bed76e4c16841202252ea8a96
[ "MIT" ]
2
2021-05-31T16:58:15.000Z
2021-10-02T23:21:01.000Z
src/Model.py
colombelli/whatsapp-nlp
64b54b35a2fefc7bed76e4c16841202252ea8a96
[ "MIT" ]
null
null
null
src/Model.py
colombelli/whatsapp-nlp
64b54b35a2fefc7bed76e4c16841202252ea8a96
[ "MIT" ]
null
null
null
import tensorflow as tf from tqdm import tqdm from DataProcessing import DataProcessing # Based on MIT's introduction to Deep Learning course class Model: """ LSTM model for learning from the data and generating a conversation. The model recognizes all different possible words and map them to a number...
38.363636
108
0.615166
6,185
0.977093
0
0
338
0.053397
0
0
2,032
0.321011
7f8ec6323597a615a6b8ab14e3b12a4175f2d4c5
1,989
py
Python
ionyweb/page_app/page_agenda/tests.py
makinacorpus/ionyweb
2f18e3dc1fdc86c7e19bae3778e67e28a37567be
[ "BSD-3-Clause" ]
4
2015-09-28T10:07:39.000Z
2019-10-18T20:14:07.000Z
ionyweb/page_app/page_agenda/tests.py
makinacorpus/ionyweb
2f18e3dc1fdc86c7e19bae3778e67e28a37567be
[ "BSD-3-Clause" ]
1
2021-03-19T21:41:33.000Z
2021-03-19T21:41:33.000Z
ionyweb/page_app/page_agenda/tests.py
makinacorpus/ionyweb
2f18e3dc1fdc86c7e19bae3778e67e28a37567be
[ "BSD-3-Clause" ]
1
2017-10-12T09:25:19.000Z
2017-10-12T09:25:19.000Z
# -*- coding: utf-8 -*- import datetime from django.conf import settings from django.contrib.auth.models import User from django.contrib.sites.models import Site from ionyweb.website.models import WebSite from ionyweb.page.models import Page from ionyweb.page_app.page_agenda.models import PageApp_Agenda, Event from ...
33.711864
82
0.609351
1,588
0.798391
0
0
0
0
0
0
315
0.158371
7f8f2d9c3b262383ed821e25ae5cb5c7380f6cde
12,256
py
Python
test/test_decorator.py
dcartman/pygame-menu
52a823b9121aadd6893fb878150d613ab516fcac
[ "MIT" ]
null
null
null
test/test_decorator.py
dcartman/pygame-menu
52a823b9121aadd6893fb878150d613ab516fcac
[ "MIT" ]
null
null
null
test/test_decorator.py
dcartman/pygame-menu
52a823b9121aadd6893fb878150d613ab516fcac
[ "MIT" ]
null
null
null
""" pygame-menu https://github.com/ppizarror/pygame-menu TEST DECORATOR Decorator API. """ __all__ = ['DecoratorTest'] from test._utils import MenuUtils, surface, TEST_THEME, BaseTest import copy import pygame import pygame_menu import timeit # Configure the tests TEST_TIME_DRAW = False class DecoratorTest(BaseTe...
35.941349
116
0.593995
11,961
0.97593
0
0
1,298
0.105907
0
0
1,903
0.155271
7f8f89b4e07ea9a13fed5571bee4f061b94852e5
1,380
py
Python
PythonLearn/pandas/basic2.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
PythonLearn/pandas/basic2.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
PythonLearn/pandas/basic2.py
OKKyu/PythonLearn
48dc4cc2a1a34d99b09f8d37a5566d448dcf987c
[ "MIT" ]
null
null
null
#!python3 # -*- coding:utf-8 -*- import numpy as np import pandas as pd import urllib.parse ''' This soure code is a sample of using pandas library. Reading from external file to DataFrame. ''' #Method of CSV Reading df = pd.read_csv("./201704health.csv", encoding="utf-8") print("read csv") print(df.head(4)) prin...
30.666667
94
0.741304
0
0
0
0
0
0
0
0
969
0.690171
7f8fedeabf571a4542f1688e973043c53b7ef3b3
8,279
py
Python
libs/helpers.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
3
2018-12-06T03:09:16.000Z
2021-02-25T01:13:05.000Z
libs/helpers.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
9
2018-12-10T18:44:14.000Z
2019-02-06T21:13:31.000Z
libs/helpers.py
lbahtarliev/MalwareScan
495e2fd3ceb3498c651ddd360a4cc2eb9571a10b
[ "Unlicense" ]
4
2019-06-04T13:46:24.000Z
2021-02-25T02:23:50.000Z
# -*- coding: utf-8 -*- import os import re import shutil import sys import time from datetime import datetime as dtime from datetime import timedelta as tdelta from hashlib import md5, sha1, sha256 from dateutil.parser import parse as dtparser # Some RegExes re_md5 = re.compile("^([0-9]|[a-f]){32}$", re.I) re_sha1 = ...
30.549815
113
0.578452
1,168
0.14108
0
0
0
0
0
0
2,915
0.352096
7f933adecbe017e770aa506f0488152882940d45
12,364
py
Python
pyaviso/cli_aviso.py
mpejcoch/aviso
250b5646220fae85725278b3ca80fed4e15a103a
[ "Apache-2.0" ]
6
2021-02-03T17:55:05.000Z
2022-02-20T08:05:42.000Z
pyaviso/cli_aviso.py
mpejcoch/aviso
250b5646220fae85725278b3ca80fed4e15a103a
[ "Apache-2.0" ]
1
2021-04-26T14:42:39.000Z
2021-04-26T14:42:39.000Z
pyaviso/cli_aviso.py
mpejcoch/aviso
250b5646220fae85725278b3ca80fed4e15a103a
[ "Apache-2.0" ]
2
2021-02-09T15:07:41.000Z
2021-08-13T09:55:30.000Z
# (C) Copyright 1996- ECMWF. # # This software is licensed under the terms of the Apache Licence Version 2.0 # which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. # In applying this licence, ECMWF does not waive the privileges and immunities # granted to it by virtue of its status as an intergovernment...
32.882979
120
0.663054
772
0.062439
0
0
7,518
0.608056
0
0
4,996
0.404076
7f93d54e8a447a4241851eb2750b969c33fadc5a
1,726
py
Python
utils/registrar.py
glusa8/navygem
be437f3ce89d2edc5a565d7903e80171abec6929
[ "MIT" ]
1
2018-05-17T13:05:06.000Z
2018-05-17T13:05:06.000Z
utils/registrar.py
glusa8/navygem
be437f3ce89d2edc5a565d7903e80171abec6929
[ "MIT" ]
null
null
null
utils/registrar.py
glusa8/navygem
be437f3ce89d2edc5a565d7903e80171abec6929
[ "MIT" ]
null
null
null
from navygem.settings import BASE_DIR import glob import json import os class ResourceRegistrarMeta(type): file = __file__ def __new__(cls, name, parents, dct): if 'types' in dct: files = {} for root, _, filenames in os.walk(os.path.dirname(os.path.realpath(cls.file))): ...
33.192308
96
0.61124
1,135
0.65759
0
0
227
0.131518
0
0
176
0.10197
7f94213e1a3c5afa69993b7cc233426e39793984
171
py
Python
280/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
1
2020-03-17T21:18:59.000Z
2020-03-17T21:18:59.000Z
280/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
null
null
null
280/solution.py
Pedram-Parsian/quera-answers
bbdbe613266358482c394f6f80731a23c3ac738d
[ "MIT" ]
null
null
null
inp = map(int, [input() for _ in range(3)]) square = sorted([i ** 2 for i in inp], reverse=True) if square[0] == sum(square[1:]): print('YES') else: print('NO')
19
52
0.573099
0
0
0
0
0
0
0
0
9
0.052632
7f956d5f8233b1c96361f43fdbe16032f4c6826a
4,412
py
Python
rank_predictor/rank_predictor/model/graph_only_models.py
Simsso/Vision-Based-Page-Rank-Estimation
424d80031501701ebe1ab1473b0fb09ccd6f6453
[ "MIT" ]
3
2019-05-27T05:59:40.000Z
2021-06-03T20:10:49.000Z
rank_predictor/rank_predictor/model/graph_only_models.py
Simsso/Vision-Based-Page-Rank-Estimation
424d80031501701ebe1ab1473b0fb09ccd6f6453
[ "MIT" ]
null
null
null
rank_predictor/rank_predictor/model/graph_only_models.py
Simsso/Vision-Based-Page-Rank-Estimation
424d80031501701ebe1ab1473b0fb09ccd6f6453
[ "MIT" ]
1
2020-02-18T16:27:30.000Z
2020-02-18T16:27:30.000Z
from copy import deepcopy import torch from graph_nets.data_structures.edge import Edge from graph_nets.functions.aggregation import AvgAggregation, MaxAggregation from graph_nets.block import GNBlock from graph_nets.data_structures.graph import Graph from torch import nn, Tensor from graph_nets.functions.update impo...
31.741007
118
0.625793
3,789
0.858794
0
0
756
0.171351
0
0
664
0.150499
7f96bdf44dc60de6bbd40effad99317503200d41
620
py
Python
hs_core/migrations/0054_auto_20201028_1432.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
178
2015-01-08T23:03:36.000Z
2022-03-03T13:56:45.000Z
hs_core/migrations/0054_auto_20201028_1432.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
4,125
2015-01-01T14:26:15.000Z
2022-03-31T16:38:55.000Z
hs_core/migrations/0054_auto_20201028_1432.py
hydroshare/hydroshare
bf9888bbe61507aff070b1dfcec2fdec1921468d
[ "BSD-3-Clause" ]
53
2015-03-15T17:56:51.000Z
2022-03-17T00:32:16.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.29 on 2020-10-28 14:32 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hs_core', '0053_auto_20200826_1629'), ] operations = [ migrations.AlterFie...
29.52381
208
0.627419
461
0.743548
0
0
0
0
0
0
240
0.387097
7f971fac68abf046c70d17ff216b21ac6dd5fe7d
3,337
py
Python
plotting.py
oytundemirbilek/ReMI-Net-Star
fd7412e08bbdc1ee66053f17e4e781bdf319cd73
[ "MIT" ]
1
2021-12-13T11:16:59.000Z
2021-12-13T11:16:59.000Z
plotting.py
oytundemirbilek/ReMI-Net-Star
fd7412e08bbdc1ee66053f17e4e781bdf319cd73
[ "MIT" ]
null
null
null
plotting.py
oytundemirbilek/ReMI-Net-Star
fd7412e08bbdc1ee66053f17e4e781bdf319cd73
[ "MIT" ]
1
2022-01-03T16:20:14.000Z
2022-01-03T16:20:14.000Z
import matplotlib.pyplot as plt import numpy as np import pandas as pd import networkx as nx from matplotlib._color_data import BASE_COLORS from nxviz.api import CircosPlot def save_csv(name, data, columns, index): saving = pd.DataFrame(data=data,columns=columns,index=index) saving.to_csv(name) d...
37.920455
144
0.641594
0
0
0
0
0
0
0
0
765
0.229248
7f97dbd9f97f19001752071be1afe254daea44e0
4,925
py
Python
datasets/single_file_dataset.py
AiPBAND/OmiTrans
8e5d9198a1ee422eb805e5ead068c1a2523aeed5
[ "MIT" ]
3
2021-11-26T04:43:05.000Z
2022-02-23T20:18:10.000Z
datasets/single_file_dataset.py
AiPBAND/OmiTrans
8e5d9198a1ee422eb805e5ead068c1a2523aeed5
[ "MIT" ]
1
2022-03-02T03:39:29.000Z
2022-03-02T03:39:29.000Z
datasets/single_file_dataset.py
AiPBAND/OmiTrans
8e5d9198a1ee422eb805e5ead068c1a2523aeed5
[ "MIT" ]
3
2021-11-26T06:25:46.000Z
2022-03-09T13:16:45.000Z
import torch import os.path import numpy as np import pandas as pd from util import preprocess from datasets import load_file from datasets.basic_dataset import BasicDataset class SingleFileDataset(BasicDataset): """ A dataset class for single file paired omics dataset. The data should be two single files...
38.779528
117
0.586802
4,746
0.963655
0
0
0
0
0
0
1,351
0.274315
7f989baf22457d064a80cc2874de7f09184bd835
416
py
Python
src/logs/logs.py
StevenVuong/twitter_scraper_sentiment_analysis
6306dcb7e43d53da8d53c9d90d81d70dae442665
[ "MIT" ]
2
2020-05-11T16:48:40.000Z
2020-05-11T21:03:10.000Z
src/logs/logs.py
StevenVuong/twitter_scraper_sentiment_analysis
6306dcb7e43d53da8d53c9d90d81d70dae442665
[ "MIT" ]
null
null
null
src/logs/logs.py
StevenVuong/twitter_scraper_sentiment_analysis
6306dcb7e43d53da8d53c9d90d81d70dae442665
[ "MIT" ]
null
null
null
import logging formatting = "%(levelname)s: " \ "%(asctime)s -> " \ "%(name)s - " \ "line %(lineno)d: " \ "%(message)s" def add_stream_handler(logger: logging.Logger): formatter = logging.Formatter(formatting) handler = logging.StreamHandler() handler....
23.111111
47
0.588942
0
0
0
0
0
0
0
0
79
0.189904
7f98bb6fd3647e5453adea196efd86f8d2809974
401
py
Python
plugins/addtodb.py
jasperazerbaijan/gpytranslator-bot
51bf686885afdce450ce6cb1af9f8f0a06caf143
[ "MIT" ]
null
null
null
plugins/addtodb.py
jasperazerbaijan/gpytranslator-bot
51bf686885afdce450ce6cb1af9f8f0a06caf143
[ "MIT" ]
null
null
null
plugins/addtodb.py
jasperazerbaijan/gpytranslator-bot
51bf686885afdce450ce6cb1af9f8f0a06caf143
[ "MIT" ]
1
2021-07-21T20:09:23.000Z
2021-07-21T20:09:23.000Z
from pyrogram import Client, filters from pyrogram.types import Message from db import functions as db @Client.on_message(filters.private, group=-1) async def check_chat(bot: Client, message: Message): chat_id = message.chat.id chat_type = message.chat.type if not db.chat_exists(chat_id, chat_type): ...
30.846154
52
0.735661
0
0
0
0
296
0.738155
250
0.623441
4
0.009975
7f9a1b01235ac13ec73615626dff07dcf5e1e468
364
py
Python
inventories/models.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
inventories/models.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
7
2021-03-19T03:09:53.000Z
2022-01-13T02:48:44.000Z
inventories/models.py
amado-developer/ReadHub-RestfulAPI
8d8b445c4a84810d52bbf78a2593e0b48351590c
[ "MIT" ]
null
null
null
from django.db import models class Inventory(models.Model): for_sale = models.BooleanField(default=True) price = models.FloatField(null=False) digital_book = models.ForeignKey( to='digital_books.digital_book', on_delete=models.CASCADE, default=0 ) class Meta: verbose_name = 'Invento...
28
76
0.717033
331
0.909341
0
0
0
0
0
0
52
0.142857
7f9a44704bf28caed583acc9794de18d82642fff
1,004
py
Python
tests/test_main.py
thiaghenr/pokemon-api
f915b2db0a73133dd13b0529ec25fdc602334829
[ "MIT" ]
3
2021-04-28T14:37:22.000Z
2022-01-20T20:16:57.000Z
tests/test_main.py
thiaghenr/pokemon-api
f915b2db0a73133dd13b0529ec25fdc602334829
[ "MIT" ]
null
null
null
tests/test_main.py
thiaghenr/pokemon-api
f915b2db0a73133dd13b0529ec25fdc602334829
[ "MIT" ]
null
null
null
import sys sys.path.append('/home/user/Desktop/app') #/home/user/Desktop/app import sys from fastapi.testclient import TestClient from test_database import test_engine, override_get_db from app.main import app, pokemon, pokemon_type, user, team from app.routers.pokemon import get_db pokemon.Base.metadata.create_all(te...
37.185185
65
0.815737
0
0
0
0
0
0
0
0
47
0.046813
7f9b1d895482976485b1998550d8af3dc65dcd05
1,544
py
Python
miniworld/model/network/backends/InterfaceFilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
5
2019-05-11T14:57:15.000Z
2021-07-05T00:35:25.000Z
miniworld/model/network/backends/InterfaceFilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
27
2017-03-17T07:11:02.000Z
2019-05-26T23:36:56.000Z
miniworld/model/network/backends/InterfaceFilter.py
miniworld-project/miniworld_core
c591bad232b78eae99e8f55cb1b907c1e228484b
[ "MIT" ]
6
2017-05-03T12:11:33.000Z
2020-04-03T11:44:27.000Z
class InterfaceFilter: def __init__(self, *args, **kwargs): pass def get_interfaces(self, emulation_node_x, emulation_node_y): """ Attributes ---------- emulation_node_x: EmulationNode emulation_node_y: EmulationNode Returns ------- ge...
28.592593
103
0.695596
1,533
0.992876
826
0.534974
0
0
0
0
381
0.246762
7f9c5084f89538634a98df1c39e0e6893ba8074f
1,490
py
Python
test/facet_extraction_test.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
null
null
null
test/facet_extraction_test.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
3
2018-10-20T23:10:14.000Z
2018-12-15T00:44:49.000Z
test/facet_extraction_test.py
Coveochatbot/megageniale-mlapi
61666c33a4313c9906d874fa04dd6c6bd45df583
[ "MIT" ]
1
2018-11-12T14:38:09.000Z
2018-11-12T14:38:09.000Z
import unittest from mlapi.facet_extractor import FacetExtractor from definitions import Definitions from pathlib import Path class TestFacetExtractor(unittest.TestCase): TEST_FILE_A = Path(Definitions.ROOT_DIR + "/test/test_files/facets/facet_extraction_test_file_a.json") TEST_FILE_B = Path(Definitions.ROOT_...
40.27027
115
0.710067
1,361
0.913423
0
0
0
0
0
0
270
0.181208
7f9c8dc6502277cee6d449f6878ecff4b464a9ee
1,782
py
Python
assets/lib/functions/database.py
Nuk3lar/NATO-Bot
3775ae42055c5e91f8c071af5f5973b17abccc31
[ "MIT" ]
null
null
null
assets/lib/functions/database.py
Nuk3lar/NATO-Bot
3775ae42055c5e91f8c071af5f5973b17abccc31
[ "MIT" ]
null
null
null
assets/lib/functions/database.py
Nuk3lar/NATO-Bot
3775ae42055c5e91f8c071af5f5973b17abccc31
[ "MIT" ]
null
null
null
# SQL Module import MySQLdb def TEST_RUN(): from config.confmain import dbconnect db = dbconnect() db[0].close() def get_users(db): get_users = "SELECT id FROM users" db[1].execute(get_users) return [item[0] for item in db[1].fetchall()] def add_user(db, user, rank): query = "INSERT INT...
26.597015
85
0.609428
0
0
0
0
0
0
0
0
433
0.242985
7f9cccab203776821b2694f234e1f2bff5bb56c8
913
py
Python
urizen/core/thing.py
vurmux/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
107
2020-01-08T21:27:59.000Z
2022-03-19T07:59:23.000Z
urizen/core/thing.py
hanok2/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
1
2020-05-22T17:54:12.000Z
2021-06-27T01:02:39.000Z
urizen/core/thing.py
hanok2/urizen
28b1e60cf8fa2f15622537f6df0290e2ac890d5f
[ "Apache-2.0" ]
7
2020-01-08T21:12:11.000Z
2022-03-19T07:59:27.000Z
#!/usr/bin/python3 class Thing(object): """ Thing class Attributes: thing_type -- Thing type symbol -- Symbol to print in terminal visualizers bg_color -- Background color in terminal visualizers fg_color -- Foreground color in terminal visualizers pixel_color -- Pixel color for pixel...
25.361111
66
0.631982
891
0.975904
0
0
69
0.075575
0
0
480
0.525739
7f9cd9fd3b819d0be208a54f23cb4903da617f11
1,306
py
Python
src/utils/data_utils.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
1
2019-07-27T00:32:02.000Z
2019-07-27T00:32:02.000Z
src/utils/data_utils.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
null
null
null
src/utils/data_utils.py
vikigenius/neural_speaker_identification
a723290808d748daf65163b71aef2c5376319db3
[ "MIT" ]
1
2019-07-27T00:32:06.000Z
2019-07-27T00:32:06.000Z
#!/usr/bin/env python import os def get_hash(path: str): hashpath = os.path.dirname(path) return os.path.basename(hashpath) def get_cid(path: str): idpath = os.path.dirname(os.path.dirname(path)) cidstr = os.path.basename(idpath) cid = int(cidstr.replace('id1', '').replace('id0', '')) return...
30.372093
76
0.573507
840
0.643185
323
0.24732
0
0
0
0
47
0.035988
7f9daeb349895404f5b7f1caac11b430bed8be01
9,428
py
Python
orpheus/clt/click_entry.py
ailyntong/implementation
ef535bf9dcff6b97252fb6b27614c7d262d05ea6
[ "MIT", "Unlicense" ]
84
2017-01-06T14:30:45.000Z
2021-10-08T18:13:40.000Z
orpheus/clt/click_entry.py
ailyntong/implementation
ef535bf9dcff6b97252fb6b27614c7d262d05ea6
[ "MIT", "Unlicense" ]
9
2017-06-13T02:04:45.000Z
2021-03-24T20:21:33.000Z
orpheus/clt/click_entry.py
ailyntong/implementation
ef535bf9dcff6b97252fb6b27614c7d262d05ea6
[ "MIT", "Unlicense" ]
11
2017-09-10T16:10:25.000Z
2021-01-19T20:03:52.000Z
import os import yaml import click from orpheus.core.executor import Executor from orpheus.core.user_control import UserManager from orpheus.core.orpheus_exceptions import BadStateError, NotImplementedError, BadParametersError from orpheus.core.orpheus_sqlparse import SQLParser from db import DatabaseManager class Co...
39.283333
152
0.66398
1,158
0.122826
0
0
7,406
0.785532
0
0
3,252
0.34493
7f9e407ceecae71657a1dd2344249aa874aaa1dc
6,150
py
Python
lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
48
2021-11-27T05:28:31.000Z
2022-02-06T16:08:30.000Z
lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
15
2021-03-03T10:50:59.000Z
2021-06-21T07:47:47.000Z
lecture_11/2_your_own_function_SOLUTION/2_your_own_function.py
farzanehesk/COMPAS-II-FS2022
857eb40000f0532d0c04689331eadefd38dce6b7
[ "MIT" ]
25
2021-03-02T15:08:11.000Z
2022-03-29T14:34:20.000Z
import time import os import logging import compas_slicer.utilities as utils from compas_slicer.pre_processing import move_mesh_to_point from compas_slicer.slicers import PlanarSlicer from compas_slicer.post_processing import generate_brim from compas_slicer.post_processing import generate_raft from compas_slicer.post...
46.946565
100
0.457886
0
0
0
0
0
0
0
0
3,951
0.642439
7f9eb6f7adcc1dc6f1a2c4b1891e1af52de709d2
566
py
Python
library/lib/library/genre.py
efulet/library-sample
d855247028a8b1c5408fc54a5a39c4abe73d24e7
[ "MIT" ]
null
null
null
library/lib/library/genre.py
efulet/library-sample
d855247028a8b1c5408fc54a5a39c4abe73d24e7
[ "MIT" ]
null
null
null
library/lib/library/genre.py
efulet/library-sample
d855247028a8b1c5408fc54a5a39c4abe73d24e7
[ "MIT" ]
null
null
null
""" Define the implementation for Genre. Enums have been added to Python 3.4 as described in PEP 435. It has also been backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4 on pypi. Please install: $> pip install enum34 @created_at 2015-05-16 @author Exequiel Fuentes Lettura <efulet@gmail.com> """ from enum import ...
21.769231
78
0.69258
238
0.420495
0
0
0
0
0
0
426
0.75265
7f9ee4cce3e5875aad64421d7f4c59c9aad2f69d
2,809
py
Python
zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
2
2019-02-22T03:33:26.000Z
2019-02-23T03:29:26.000Z
zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
null
null
null
zfused_maya/zfused_maya/tool/utility/assemblymanage/assetlistwidget/assetlistwidget.py
qinningfx/zfused_outsource
bfc5558f05e3d6005653794a47bd863b61b009b1
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 # --author-- lanhua.zhou from __future__ import print_function import logging from qtpy import QtWidgets, QtGui, QtCore import zfused_api import zfused_maya.core.record as record import zfused_maya.core.resource as resource import zfused_maya.widgets.widgets as widgets from . import assetlistmodel fr...
31.561798
99
0.684229
2,364
0.832688
0
0
0
0
0
0
374
0.131737
7fa00aca19352a3c3bb64086161e93228165267a
12,275
py
Python
CombineFomApp.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
5
2017-03-24T21:05:22.000Z
2021-09-15T18:18:05.000Z
CombineFomApp.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
null
null
null
CombineFomApp.py
johnmgregoire/JCAPDataProcess
c8120e5b2f8fc840a6307b40293dccaf94bd8c2c
[ "BSD-3-Clause" ]
null
null
null
import csv import os, os.path import sys import numpy from PyQt4.QtCore import * from PyQt4.QtGui import * if __name__ == "__main__": import os, sys projectpath=os.path.split(os.path.abspath(__file__))[0] sys.path.append(os.path.join(projectpath,'AuxPrograms')) from fcns_math import * from fcns_io import ...
35.37464
157
0.582892
9,133
0.744033
0
0
0
0
0
0
1,260
0.102648
7fa05b2a5eaa254783f5987a4ee647edeaf6173a
2,467
py
Python
eland/tests/series/test_hist_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
eland/tests/series/test_hist_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
eland/tests/series/test_hist_pytest.py
redNixon/eland
1b9cb1db6d30f0662fe3679c7bb31e2c0865f0c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Elasticsearch BV # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
33.794521
83
0.689501
1,642
0.665586
0
0
0
0
0
0
867
0.351439
7fa1255aeed1640b6a22639a447638509e1708d4
2,108
py
Python
glitchtip/pagination.py
rh-cssre/glitchtip-backend
ae12fbd54532cff5fd3d7a72631ba18625bbf1de
[ "MIT" ]
null
null
null
glitchtip/pagination.py
rh-cssre/glitchtip-backend
ae12fbd54532cff5fd3d7a72631ba18625bbf1de
[ "MIT" ]
null
null
null
glitchtip/pagination.py
rh-cssre/glitchtip-backend
ae12fbd54532cff5fd3d7a72631ba18625bbf1de
[ "MIT" ]
null
null
null
import logging import urllib.parse as urlparse from urllib.parse import parse_qs from rest_framework.exceptions import ValidationError from rest_framework.pagination import CursorPagination from rest_framework.response import Response logger = logging.getLogger(__name__) class LinkHeaderPagination(CursorPagination)...
34
85
0.604839
1,831
0.868596
0
0
0
0
0
0
470
0.22296
7fa2950d2c1947708703dac582e56abc5bd22d7c
1,336
py
Python
rzeczownik_zwiazek.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
3
2015-01-06T22:00:22.000Z
2016-08-14T08:07:32.000Z
rzeczownik_zwiazek.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
56
2015-07-12T10:21:38.000Z
2020-02-23T18:51:01.000Z
rzeczownik_zwiazek.py
alkamid/wiktionary
ce242da609a1001ae7462b07da2f6e83f1a7281b
[ "MIT" ]
2
2015-01-06T21:25:06.000Z
2018-01-17T12:03:17.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys sys.path.append('/home/adam/wikt/pywikipedia') #sys.path.append('/home/alkamid/wikt/pywikipedia') import pywikibot from pywikibot import Category from pywikibot import pagegenerators import re from pywikibot import xmlreader from klasa import * def main(): dat...
29.688889
104
0.567365
0
0
0
0
0
0
0
0
409
0.305909
7fa45120566f6e66b1161eb3ddc49d8249a2ea66
3,901
py
Python
mi/dataset/parser/flort_kn__stc_imodem.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
1
2015-05-10T01:08:44.000Z
2015-05-10T01:08:44.000Z
mi/dataset/parser/flort_kn__stc_imodem.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
null
null
null
mi/dataset/parser/flort_kn__stc_imodem.py
rmanoni/mi-dataset
c1012a0cd8f2ea075e008cdd1ab291ed54f44d43
[ "BSD-2-Clause" ]
9
2015-04-15T21:09:08.000Z
2019-11-15T03:18:53.000Z
#!/usr/bin/env python """ @package mi.dataset.parser.flort_kn__stc_imodem @file marine-integrations/mi/dataset/parser/flort_kn__stc_imodem.py @author Emily Hahn @brief Parser for the FLORT_KN__STC_IMODEM dataset driver (both recovered and telemetered) Release notes: initial release """ __author__ = 'Emil...
37.873786
118
0.719046
3,120
0.799795
0
0
0
0
0
0
1,310
0.335811
7fa52d2551135b3c9ef42b725887c7c6e432166a
834
py
Python
kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
kyper/nbconvert/tests/files/nbconvert_v4_kyper_config_1.py
wusung/ipython-notebook-tabs
ee7b3922c7d01cf6182bce63ef69e8a20f7229f9
[ "Apache-2.0" ]
null
null
null
c = get_config() #Export all the notebooks in the current directory to the sphinx_howto format. c.NbConvertApp.notebooks = ['Untitled.ipynb'] c.NbConvertApp.export_format = 'notebook' #c.NbConvertApp.writer = 'stdoutwriter' c.Exporter.default_preprocessors = ['kyper.nbconvert.preprocessors.coalesce_streams', 'kyper.nb...
75.818182
424
0.833333
0
0
0
0
0
0
0
0
667
0.79976
7fa541c36336e94cfd1cde616a593d1859f31c6d
962
py
Python
scripts/reader/extract_eval_results.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
166
2018-08-07T03:35:02.000Z
2022-01-11T10:40:09.000Z
scripts/reader/extract_eval_results.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
16
2018-08-17T09:53:37.000Z
2019-06-17T12:58:00.000Z
scripts/reader/extract_eval_results.py
lixinsu/RCZoo
37fcb7962fbd4c751c561d4a0c84173881ea8339
[ "MIT" ]
45
2018-08-27T06:38:42.000Z
2021-01-17T11:12:39.000Z
#!/usr/bin/env python # coding: utf-8 import os import sys import re import numpy as np import pandas as pd def extract_file(logfile, max_epoch=40): with open(logfile) as infp: pat = re.compile(r"Epoch = ([0-9]+) \| EM = ([0-9]+\.[0-9]+) \| F1 = ([0-9]+\.[0-9]+)") res = [] for line in infp...
28.294118
95
0.564449
0
0
0
0
0
0
0
0
174
0.180873
7fa656207915017887d981061398ba3f4a5e4115
1,332
py
Python
tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
27
2015-03-30T14:17:26.000Z
2022-02-19T17:30:44.000Z
tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
483
2015-03-09T16:58:03.000Z
2022-03-14T09:29:06.000Z
tests/conversion/converters/inside_worker_test/transliterate_sql_function_learning_test.py
tyrasd/osmaxx
da4454083d17b2ef8b0623cad62e39992b6bd52a
[ "MIT" ]
6
2015-04-07T07:38:30.000Z
2020-04-01T12:45:53.000Z
from contextlib import closing import pytest import sqlalchemy from tests.conversion.converters.inside_worker_test.conftest import slow international_text_strings = [ ('ascii', 'some normal ascii', 'some normal ascii'), ('umlaut', 'öäüüäüö', 'öäüüäüö'), ('special_chars', "*+?'^'%ç#", "*+?'^'%ç#"), ('...
35.052632
161
0.688438
0
0
0
0
706
0.487233
0
0
542
0.374051
7fa65a7d3751f2bd316d7300a9d99b95b40fb832
979
py
Python
info/models.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
2
2021-04-25T07:01:01.000Z
2021-05-07T10:17:26.000Z
info/models.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
null
null
null
info/models.py
ycy-tw/python-django-stock
263a926ae6aa8248fd4c4e8d767c5dc9d522e4c0
[ "MIT" ]
null
null
null
from django.db import models class StockBasic(models.Model): symbol = models.IntegerField() name = models.CharField(max_length=150) capital = models.IntegerField() industry = models.CharField(max_length=150) listed_date = models.DateField() class StockPrice(models.Model): date = models.Dat...
25.763158
47
0.695608
941
0.961185
0
0
0
0
0
0
0
0
7fa71b0b3f054bcdd23fb5a4941606959b1e3af7
1,123
py
Python
python/example_code/iam/get_pub_keys.py
dlo/aws-doc-sdk-examples
305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c
[ "Apache-2.0" ]
9
2018-09-29T11:44:19.000Z
2019-11-06T21:41:34.000Z
python/example_code/iam/get_pub_keys.py
dlo/aws-doc-sdk-examples
305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c
[ "Apache-2.0" ]
1
2018-10-30T06:11:07.000Z
2018-10-30T06:11:07.000Z
python/example_code/iam/get_pub_keys.py
dlo/aws-doc-sdk-examples
305e5c4f6cf268cafad7e1603aa5d2909fcd9c0c
[ "Apache-2.0" ]
2
2018-12-25T10:13:56.000Z
2021-06-24T11:26:38.000Z
# Copyright 2010-2018 Amazon.com, Inc. or its affiliates. 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. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file ac...
32.085714
78
0.741763
0
0
0
0
0
0
0
0
677
0.60285
7fa7f852d4cb0a061dab991f8c7bedad11c82bbc
727
py
Python
tests/test_tools/test_sort.py
Massiil/wordlistools
45edc94200130e87b444fd5c04e24e6093160f93
[ "MIT" ]
17
2022-02-06T21:23:27.000Z
2022-02-07T22:33:40.000Z
tests/test_tools/test_sort.py
Massiil/wordlistools
45edc94200130e87b444fd5c04e24e6093160f93
[ "MIT" ]
1
2022-02-06T21:52:30.000Z
2022-02-06T21:52:30.000Z
tests/test_tools/test_sort.py
Massiil/wordlistools
45edc94200130e87b444fd5c04e24e6093160f93
[ "MIT" ]
2
2022-02-06T21:29:42.000Z
2022-02-06T21:31:06.000Z
from wordlistools.helpertest import AsStdinWordlist, AsWordlist, runtest def test_simple(): runtest("sort", args=(AsStdinWordlist(["a", "b"]),), ret=AsWordlist(["a", "b"])) runtest("sort", args=(AsStdinWordlist(["b", "a"]),), ret=AsWordlist(["a", "b"])) def test_multiple_wordlists(): runtest( "...
25.964286
84
0.518569
0
0
0
0
0
0
0
0
114
0.156809
7fa94d0c36ae17fb7490233a6caf6c47c8509aba
5,305
py
Python
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
1
2020-04-02T17:03:39.000Z
2020-04-02T17:03:39.000Z
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
supports/pyload/src/pyload/plugins/decrypters/SexuriaCom.py
LuckyNicky/pycrawler
4b3fe2f6e8e51f236d95a64a89a44199e4e97743
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import re from ..base.decrypter import BaseDecrypter class SexuriaCom(BaseDecrypter): __name__ = "SexuriaCom" __type__ = "decrypter" __version__ = "0.15" __status__ = "testing" __pyload_version__ = "0.5" __pattern__ = r"http://(?:www\.)?sexuria\.com/(v1/)?(Pornos_Kos...
38.165468
141
0.531008
5,224
0.984731
0
0
0
0
0
0
1,651
0.311216
7fa9f0e8cb2ce25f47bfafc2286cfa382e9eef68
62,700
py
Python
build_rdkit_csharp.py
kazuyaujihara/playfield
2ef34dcfde820461c1f7fa47415f83dbea4481cc
[ "BSD-3-Clause" ]
null
null
null
build_rdkit_csharp.py
kazuyaujihara/playfield
2ef34dcfde820461c1f7fa47415f83dbea4481cc
[ "BSD-3-Clause" ]
null
null
null
build_rdkit_csharp.py
kazuyaujihara/playfield
2ef34dcfde820461c1f7fa47415f83dbea4481cc
[ "BSD-3-Clause" ]
null
null
null
"""Script to make RDKit.DotNetWrapper. Notes: This is developed with rdkit-Release_2021_09_4. """ from enum import Enum import argparse import glob import logging import os import platform import re import shutil import subprocess import sys import typing import xml.etree.ElementTree as ET from os import PathLike ...
37.299227
120
0.567321
47,189
0.752616
441
0.007033
5,406
0.08622
0
0
14,143
0.225566
7faa85dd7164abc5cf2a876e02a9cd836cf45628
5,624
py
Python
DataVisualization/GraphGenerator.py
DavidHdezU/TwitterDataAnalyser
a003c046a39cdb18f8b4efe7f7db1a5959736fe5
[ "MIT" ]
null
null
null
DataVisualization/GraphGenerator.py
DavidHdezU/TwitterDataAnalyser
a003c046a39cdb18f8b4efe7f7db1a5959736fe5
[ "MIT" ]
null
null
null
DataVisualization/GraphGenerator.py
DavidHdezU/TwitterDataAnalyser
a003c046a39cdb18f8b4efe7f7db1a5959736fe5
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import os from PIL import Image from wordcloud import WordCloud, STOPWORDS, ImageColorGenerator import matplotlib.pyplot as plt import seaborn as sns class GraphGenerator(): """ A class that generates graphs to visualize data """ def create_wordcloud(self, freq_di...
33.278107
153
0.602596
5,392
0.958407
0
0
0
0
0
0
2,703
0.480448
7fae89a2e7b33a8349cff26d3637eccd5dfa7ee7
2,734
py
Python
pkg/win/build_pillow-simd.py
milkey-mouse/swood.exe
6e691c2e9c4a42845b13c83d216022897aca97c5
[ "MIT" ]
12
2016-06-09T22:08:49.000Z
2022-01-15T16:58:42.000Z
pkg/win/build_pillow-simd.py
milkey-mouse/swood.exe
6e691c2e9c4a42845b13c83d216022897aca97c5
[ "MIT" ]
29
2016-04-17T01:25:09.000Z
2021-03-12T23:22:35.000Z
pkg/win/build_pillow-simd.py
milkey-mouse/swood.exe
6e691c2e9c4a42845b13c83d216022897aca97c5
[ "MIT" ]
1
2020-12-22T00:16:05.000Z
2020-12-22T00:16:05.000Z
import subprocess import requests import tempfile import tarfile import shutil import sys import os if os.name != "nt": print("Error: Can only build pillow-simd on a Windows system") repo_url = "https://api.github.com/repos/uploadcare/pillow-simd/tags" tarball_url = requests.get(repo_url).json()[0]["tarball_url"]...
36.453333
94
0.63387
0
0
0
0
0
0
0
0
778
0.284565
7faef27d00dc089e93362f99e786f4406c15fa41
559
py
Python
irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
null
null
null
irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
null
null
null
irco/migrations/versions/52b38830e4f1_add_ambiguous_affiliation_flag.py
GaretJax/irco
e5df3cf1a608dc813011a1ee7e920637e5bd155c
[ "MIT" ]
1
2015-12-17T19:18:28.000Z
2015-12-17T19:18:28.000Z
"""add ambiguous affiliation flag Revision ID: 52b38830e4f1 Revises: None Create Date: 2014-08-23 20:08:30.702574 """ # revision identifiers, used by Alembic. revision = '52b38830e4f1' down_revision = None from alembic import op # NOQA import sqlalchemy as sa # NOQA def upgrade(): op.add_column( 'pu...
20.703704
77
0.699463
0
0
0
0
0
0
0
0
267
0.477639
7faf000a12cfb8382d4089e48ea4a9fb68db6a0d
7,118
py
Python
DSN/config_DSN.py
JerrySchonenberg/DSN
4b79ac4beada888a859f76bfdcb1c08cefd4f02d
[ "MIT" ]
4
2021-03-18T13:02:28.000Z
2021-12-02T14:49:39.000Z
DSN/config_DSN.py
JerrySchonenberg/DSN
4b79ac4beada888a859f76bfdcb1c08cefd4f02d
[ "MIT" ]
null
null
null
DSN/config_DSN.py
JerrySchonenberg/DSN
4b79ac4beada888a859f76bfdcb1c08cefd4f02d
[ "MIT" ]
1
2021-07-21T06:19:08.000Z
2021-07-21T06:19:08.000Z
#configure DSN based on the velocities of the commands import configparser import os import time import tensorflow as tf import subprocess import numpy as np import cv2 import sys import math import matplotlib.pyplot as plt sys.path.append("../coppelia_sim") from API_coppeliasim import CoppeliaSim from PIL import Ima...
32.208145
107
0.618573
0
0
0
0
0
0
0
0
1,482
0.208205
7faf132493fb997a22585fcc1b6f5221296ea124
1,012
py
Python
spammer/vcspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
null
null
null
spammer/vcspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
null
null
null
spammer/vcspam.py
00-00-00-11/Raid-Toolbox
4d24841de5ef112dc15b858f62607e0d6b5277cd
[ "0BSD" ]
1
2021-05-15T11:32:24.000Z
2021-05-15T11:32:24.000Z
import discord import asyncio import sys import random import aiohttp token = sys.argv[1] tokenno = sys.argv[2] voice_id = sys.argv[3] useproxies = sys.argv[4] # proxies for voice chats smh if useproxies == 'True': proxy_list = open("proxies.txt").read().splitlines() proxy = random.choice(proxy_...
27.351351
60
0.657115
0
0
0
0
462
0.456522
447
0.4417
76
0.075099
7faf5789a456612c7591dd05136e4084bf218d95
4,912
py
Python
recommendation_engines/movie_recommendation/movie_recommender.py
DKMalungu/python_ml
4df7b6ddaa7ae072db27799a9226f6f8fab40452
[ "Apache-2.0" ]
null
null
null
recommendation_engines/movie_recommendation/movie_recommender.py
DKMalungu/python_ml
4df7b6ddaa7ae072db27799a9226f6f8fab40452
[ "Apache-2.0" ]
null
null
null
recommendation_engines/movie_recommendation/movie_recommender.py
DKMalungu/python_ml
4df7b6ddaa7ae072db27799a9226f6f8fab40452
[ "Apache-2.0" ]
null
null
null
""" The dataset can be downloaded from: https://grouplens.org/datasets/movielens/100k/ """ # Importing Libraries import pandas as pd import numpy as np # Step 1: Loading the dataset into python # Loading users file """ This information is from the read me doc of the dataset u.user -- Demographic information about...
43.087719
140
0.643119
0
0
0
0
0
0
0
0
4,134
0.841612
7fb292a14c4c1af1a6114d6ef6dda19af9eebf1c
673
py
Python
266_palindrome_permutation.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
266_palindrome_permutation.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
266_palindrome_permutation.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 266. Palindrome Permutation # # Given a string, determine if a permutation of the string could form a palindrome. # # Example 1: # # Input: "code" # Output: false # # Example 2: # # Input: "aab" # Output: true # # Example 3: # # Input: "carerac" # Output: true # https://leetcode.com/articles/palindrome-permutation/ ...
17.710526
83
0.579495
350
0.520059
0
0
0
0
0
0
357
0.530461
7fb2f08441bee9b4f2cc7afeea8869dbc1d391ef
312
py
Python
setup.py
allrod5/extra-trees
ba7d94bd8a77daaa2357241f343c3b571a900131
[ "MIT" ]
4
2017-08-18T04:07:43.000Z
2022-01-17T01:41:29.000Z
setup.py
allrod5/extra-trees
ba7d94bd8a77daaa2357241f343c3b571a900131
[ "MIT" ]
2
2017-08-15T06:42:05.000Z
2017-08-24T16:44:49.000Z
setup.py
allrod5/extra-trees
ba7d94bd8a77daaa2357241f343c3b571a900131
[ "MIT" ]
3
2019-08-15T06:21:59.000Z
2021-11-25T09:55:38.000Z
#!/usr/bin/env python3 from distutils.core import setup setup(name='Extremely Randomized Trees', version='0.2', description='Implementation of Extremely Randomized Trees', author='Rodrigo', author_email='allrod5@gmail.com', packages=['extra_trees.ensemble', 'extra_trees.tree'] )
26
65
0.701923
0
0
0
0
0
0
0
0
169
0.541667
7fb526a62b477c606c93725191f3522b82d53a95
10,522
py
Python
mediumbackup/__init__.py
lucafrance/mediumbackup
7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192
[ "MIT" ]
null
null
null
mediumbackup/__init__.py
lucafrance/mediumbackup
7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192
[ "MIT" ]
null
null
null
mediumbackup/__init__.py
lucafrance/mediumbackup
7a5abd67e1b072bfbd86a01fbfdfb5d9153d8192
[ "MIT" ]
null
null
null
import os import logging import medium from markdownify import markdownify as md from bs4 import BeautifulSoup as bs import requests MAX_FILENAME_LENGTH = 30 # Ignores date and extension, e.g. 2020-10-31<-- 30 characthers -->.md FORBIDDEN_FILENAME_CHARS = "*?" DEFAULT_BACKUP_DIR = "backup" DEFAULT_FORMAT = "html" c...
39.70566
133
0.563676
9,244
0.87854
0
0
0
0
0
0
4,152
0.394602