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
d5b52472e7e5df33cf0c5865ffdc86c08a3ea627
1,881
py
Python
dhf_wrapper/base_client.py
Enflow-io/dhf-pay-python
7c32461d3b2a5018151b2a16a0cc0ad6850b88b1
[ "Apache-2.0" ]
null
null
null
dhf_wrapper/base_client.py
Enflow-io/dhf-pay-python
7c32461d3b2a5018151b2a16a0cc0ad6850b88b1
[ "Apache-2.0" ]
null
null
null
dhf_wrapper/base_client.py
Enflow-io/dhf-pay-python
7c32461d3b2a5018151b2a16a0cc0ad6850b88b1
[ "Apache-2.0" ]
null
null
null
from typing import Optional, Callable import requests from requests.auth import AuthBase from requests.exceptions import RequestException class BearerAuth(AuthBase): def __init__(self, token): self.token = token def __call__(self, r): r.headers['Authorization'] = f'Bearer {self.token}' ...
25.767123
94
0.576289
1,736
0.922913
0
0
0
0
0
0
456
0.242424
d5b58f8a34e9535374ceecc69e4b47358c97ddb9
1,395
py
Python
flametree/utils.py
Edinburgh-Genome-Foundry/Flametree
a189de5d83ca1eb3526a439320e41df9e2a1162e
[ "MIT" ]
165
2017-02-04T00:40:01.000Z
2021-06-08T03:51:58.000Z
flametree/utils.py
Edinburgh-Genome-Foundry/Flametree
a189de5d83ca1eb3526a439320e41df9e2a1162e
[ "MIT" ]
8
2017-02-10T00:47:09.000Z
2021-05-30T04:38:41.000Z
flametree/utils.py
Edinburgh-Genome-Foundry/Flametree
a189de5d83ca1eb3526a439320e41df9e2a1162e
[ "MIT" ]
19
2017-02-09T17:38:31.000Z
2021-03-23T16:04:32.000Z
import os import shutil from .ZipFileManager import ZipFileManager from .DiskFileManager import DiskFileManager from .Directory import Directory import string printable = set(string.printable) - set("\x0b\x0c") def is_hex(s): return any(c not in printable for c in s) def file_tree(target, replace=False): ...
32.44186
86
0.703226
0
0
0
0
0
0
0
0
615
0.44086
d5b74bc11e212074f29e2869fb5c41c2c3cd585b
628
py
Python
audio/audio_client.py
artigianitecnologici/marrtino_apps
b58bf4daa1d06db2f1c8a47be02b29948d41f48d
[ "BSD-4-Clause" ]
null
null
null
audio/audio_client.py
artigianitecnologici/marrtino_apps
b58bf4daa1d06db2f1c8a47be02b29948d41f48d
[ "BSD-4-Clause" ]
null
null
null
audio/audio_client.py
artigianitecnologici/marrtino_apps
b58bf4daa1d06db2f1c8a47be02b29948d41f48d
[ "BSD-4-Clause" ]
null
null
null
import sys import socket import time ip = '127.0.0.1' port = 9001 if (len(sys.argv)>1): ip = sys.argv[1] if (len(sys.argv)>2): port = int(sys.argv[2]) sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((ip,port)) sock.send('bip\n\r') data = sock.recv(80) print data sock.send('TTS[it-IT...
14.604651
56
0.66879
0
0
0
0
0
0
0
0
138
0.219745
d5b8242c634dcf60f9e745fdadd1c86fe716bf6e
3,461
py
Python
qmotor/message/matcher.py
yulinfeng000/qmotor
ad3e9eea291f5b87e09fcdd5e42f1eb13d752565
[ "MIT" ]
null
null
null
qmotor/message/matcher.py
yulinfeng000/qmotor
ad3e9eea291f5b87e09fcdd5e42f1eb13d752565
[ "MIT" ]
null
null
null
qmotor/message/matcher.py
yulinfeng000/qmotor
ad3e9eea291f5b87e09fcdd5e42f1eb13d752565
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from typing import List from .common import ( AtCell, BasicMessage, GroupMessage, FriendMessage, MsgCellType, MessageType, PlainCell, ) from ..utils import is_str_blank, str_contains class MsgMatcher(ABC): def msg_chain_from_ctx(self, ctx): r...
25.637037
74
0.612251
2,754
0.795724
0
0
62
0.017914
0
0
165
0.047674
d5b8367e1c83c38e170646eb1abb34d55d607542
240
py
Python
invert-binary-tree/invert-binary-tree.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
1
2021-10-10T20:21:18.000Z
2021-10-10T20:21:18.000Z
invert-binary-tree/invert-binary-tree.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
invert-binary-tree/invert-binary-tree.py
Atri10/Leet-code---Atri_Patel
49fc59b9147a44ab04a66128fbb2ef259b5f7b7c
[ "MIT" ]
null
null
null
class Solution: def invertTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: if root: root.left,root.right = self.invertTree(root.right),self.invertTree(root.left) return root return None
40
89
0.641667
240
1
0
0
0
0
0
0
0
0
d5b96915a161658ab58f977d3518461eda8624b2
1,407
py
Python
main/admin.py
sinahmr/childf
4e01f46867425b36b6431713b79debf585d69d37
[ "MIT" ]
null
null
null
main/admin.py
sinahmr/childf
4e01f46867425b36b6431713b79debf585d69d37
[ "MIT" ]
null
null
null
main/admin.py
sinahmr/childf
4e01f46867425b36b6431713b79debf585d69d37
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin from django.contrib.auth.models import Group from django.utils.translation import ugettext_lazy as _ from main.models import UserInfo, User, Child, Volunteer, Donor, Letter, Need, PurchaseForInstitute, PurchaseForNeed, ...
31.977273
119
0.687278
714
0.507463
0
0
736
0.523099
0
0
267
0.189765
d5b9d02c239d39cdf1dcff5670b5cc5e359e73a5
2,515
py
Python
hunting/display/render.py
MoyTW/RL_Arena_Experiment
fb79c67576cd4de3e4a58278b4515098f38fb584
[ "MIT" ]
null
null
null
hunting/display/render.py
MoyTW/RL_Arena_Experiment
fb79c67576cd4de3e4a58278b4515098f38fb584
[ "MIT" ]
null
null
null
hunting/display/render.py
MoyTW/RL_Arena_Experiment
fb79c67576cd4de3e4a58278b4515098f38fb584
[ "MIT" ]
null
null
null
import tdl import time import hunting.constants as c class Renderer: def __init__(self, main_console=None, level_display_width=c.SCREEN_WIDTH, level_display_height=c.SCREEN_HEIGHT): if main_console is None: self.main_console = tdl.init(level_display_width, level_display_height, 'From Renderer ...
36.985294
120
0.603579
2,364
0.93996
0
0
0
0
0
0
216
0.085885
d5ba579f0453b95d1e8c11d5b88d94830943af72
1,732
py
Python
ideas/models.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
1
2021-02-12T10:25:28.000Z
2021-02-12T10:25:28.000Z
ideas/models.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
7
2020-02-21T00:53:38.000Z
2022-02-10T12:22:53.000Z
ideas/models.py
neosergio/hackatrix-api
27f0180415efa97bd7345d100b314d8807486b67
[ "Apache-2.0" ]
null
null
null
from django.db import models class Idea(models.Model): title = models.CharField(max_length=255, unique=True) description = models.TextField() author = models.OneToOneField('events.Registrant', related_name='author_idea', on_delete=models....
39.363636
108
0.560624
1,697
0.979792
0
0
0
0
0
0
193
0.111432
d5ba81a91490ddb0a286042ea3d0c0e723e0af52
2,348
py
Python
section2/out/src/data_prep/SlicesDataset.py
ssheikh85/AIHCND_c3_3d_imaging
6502985d4199244328a683459b4d819090d58f3c
[ "MIT" ]
null
null
null
section2/out/src/data_prep/SlicesDataset.py
ssheikh85/AIHCND_c3_3d_imaging
6502985d4199244328a683459b4d819090d58f3c
[ "MIT" ]
null
null
null
section2/out/src/data_prep/SlicesDataset.py
ssheikh85/AIHCND_c3_3d_imaging
6502985d4199244328a683459b4d819090d58f3c
[ "MIT" ]
null
null
null
""" Module for Pytorch dataset representations """ import torch from torch.utils.data import Dataset class SlicesDataset(Dataset): """ This class represents an indexable Torch dataset which could be consumed by the PyTorch DataLoader class """ def __init__(self, data): self.data = data ...
35.044776
103
0.609881
2,244
0.955707
0
0
0
0
0
0
1,514
0.644804
d5bb9bbb0fed4afc892e132a8963124e532f19f2
845
py
Python
zenslackchat/zendesk_webhooks.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
2
2020-12-30T07:46:12.000Z
2022-02-01T16:37:34.000Z
zenslackchat/zendesk_webhooks.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
7
2021-04-14T16:17:29.000Z
2022-01-25T11:48:18.000Z
zenslackchat/zendesk_webhooks.py
uktrade/zenslackchat
8071757e1ea20a433783c6a7c47f25b046692682
[ "MIT" ]
1
2021-06-06T09:46:47.000Z
2021-06-06T09:46:47.000Z
from zenslackchat.zendesk_base_webhook import BaseWebHook from zenslackchat.zendesk_email_to_slack import email_from_zendesk from zenslackchat.zendesk_comments_to_slack import comments_from_zendesk class CommentsWebHook(BaseWebHook): """Handle Zendesk Comment Events. """ def handle_event(self, event, slac...
33.8
72
0.744379
641
0.75858
0
0
0
0
0
0
285
0.337278
d5bbaeac59cde7e794de669fe4ec0942d528fc8d
699
py
Python
Examples/PagesOperations/MovePage.py
groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples
af736c94240eeefef28bd81012c96ab2ea779088
[ "MIT" ]
null
null
null
Examples/PagesOperations/MovePage.py
groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples
af736c94240eeefef28bd81012c96ab2ea779088
[ "MIT" ]
null
null
null
Examples/PagesOperations/MovePage.py
groupdocs-merger-cloud/groupdocs-merger-cloud-python-samples
af736c94240eeefef28bd81012c96ab2ea779088
[ "MIT" ]
null
null
null
# Import modules import groupdocs_merger_cloud from Common import Common # This example demonstrates how to move document page to a new position class MovePage: @classmethod def Run(cls): pagesApi = groupdocs_merger_cloud.PagesApi.from_config(Common.GetConfig()) options = groupdocs_merger_cl...
36.789474
93
0.711016
553
0.79113
0
0
533
0.762518
0
0
164
0.234621
d5bbb325b8069e32756e2756a7150bcc81d9e24f
221
py
Python
src/models/predict_model.py
joseluistello/Regression-Analysis-Apple-Data
85952edd22ba8c382f43357efc510763185fd6d1
[ "MIT" ]
null
null
null
src/models/predict_model.py
joseluistello/Regression-Analysis-Apple-Data
85952edd22ba8c382f43357efc510763185fd6d1
[ "MIT" ]
null
null
null
src/models/predict_model.py
joseluistello/Regression-Analysis-Apple-Data
85952edd22ba8c382f43357efc510763185fd6d1
[ "MIT" ]
null
null
null
y_pred=ml.predict(x_test) print(y_pred) from sklearn.metrics import r2_score r2_score(y_test,y_pred) pred_y_df=pd.DataFrame({'Actual Value':y_test,'Predicted Value':y_pred, 'Difference': y_test-y_pred}) pred_y_df[0:20]
24.555556
101
0.791855
0
0
0
0
0
0
0
0
43
0.19457
d5bd90ba6b204f06ed13dd7eaecdd9ec577e33cb
5,512
py
Python
src/models/utils_func.py
Soufiane-Fartit/cars-prices
8eee8aa168251adab7f4947c45a78752e4145041
[ "MIT" ]
null
null
null
src/models/utils_func.py
Soufiane-Fartit/cars-prices
8eee8aa168251adab7f4947c45a78752e4145041
[ "MIT" ]
null
null
null
src/models/utils_func.py
Soufiane-Fartit/cars-prices
8eee8aa168251adab7f4947c45a78752e4145041
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ This module offers util functions to be called and used in other modules """ from datetime import datetime import os import json import pickle import string import random import numpy as np import pandas as pd from matplotlib import pyplot as plt import seaborn as sns from sklearn impo...
33.815951
90
0.649492
0
0
0
0
0
0
0
0
2,524
0.45791
d5c0292ca1d781849b4c6bb27642731423800d86
7,504
py
Python
modules/finance.py
KpaBap/palbot
38d2b7958e310f45a28cf1b3173967b92f819946
[ "MIT" ]
null
null
null
modules/finance.py
KpaBap/palbot
38d2b7958e310f45a28cf1b3173967b92f819946
[ "MIT" ]
null
null
null
modules/finance.py
KpaBap/palbot
38d2b7958e310f45a28cf1b3173967b92f819946
[ "MIT" ]
null
null
null
import asyncio import discord from discord.ext import commands import re import sqlite3 from urllib.parse import quote as uriquote import html CURR = ["AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "P...
40.344086
166
0.518124
7,043
0.938566
0
0
4,489
0.598214
6,685
0.890858
2,330
0.310501
d5c051b72ce68a91896ab21b2fd4b6e93e7e9a10
174
py
Python
SG_GetDataForClassifier.py
shubha1593/MovieReviewAnalysis
c485eea0c8b35e554027cce7a431212b406e672c
[ "MIT" ]
7
2015-04-01T12:41:55.000Z
2019-08-01T18:13:56.000Z
SG_GetDataForClassifier.py
shubha1593/MovieReviewAnalysis
c485eea0c8b35e554027cce7a431212b406e672c
[ "MIT" ]
null
null
null
SG_GetDataForClassifier.py
shubha1593/MovieReviewAnalysis
c485eea0c8b35e554027cce7a431212b406e672c
[ "MIT" ]
null
null
null
from SG_GetFeatureMatrix import * from SG_VectorY import * featureMatrix = featureMatrixFromReviews() Y = getYVector() def getDataForClassifier() : return featureMatrix, Y
21.75
42
0.804598
0
0
0
0
0
0
0
0
0
0
d5c05a70d2bfb21530d973639155b0914281d250
1,882
py
Python
greenbounty/bounties/migrations/0001_initial.py
Carnales/green-bounty
beb765082b32c096139463bf75ccc1ec3d530692
[ "MIT" ]
1
2021-01-18T21:43:05.000Z
2021-01-18T21:43:05.000Z
greenbounty/bounties/migrations/0001_initial.py
Thinkr3/green-bounty
c74fe79121d211728c9f70ffd87e239c8ba5d131
[ "MIT" ]
1
2021-01-18T06:35:07.000Z
2021-01-18T06:35:07.000Z
greenbounty/bounties/migrations/0001_initial.py
Thinkr3/green-bounty
c74fe79121d211728c9f70ffd87e239c8ba5d131
[ "MIT" ]
2
2021-01-18T06:22:50.000Z
2021-01-18T06:24:22.000Z
# Generated by Django 3.1.4 on 2021-01-17 19:12 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
40.042553
144
0.584485
1,723
0.915515
0
0
0
0
0
0
197
0.104676
d5c06f16c3fcc96993938e0c35fe7c62d8dfa422
8,621
py
Python
nova/tests/virt/docker/test_driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/virt/docker/test_driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/tests/virt/docker/test_driver.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # # Copyright (c) 2013 dotCloud, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache...
40.85782
79
0.629741
7,522
0.872521
0
0
483
0.056026
0
0
2,047
0.237443
d5c1a9c69d580b85cf1676ca01e443acef7eb239
9,048
py
Python
pyx/tests/test_http.py
l04m33/pyx
b70efec605832ba3c7079e991584db3f5d1da8cb
[ "MIT" ]
2
2015-08-25T11:31:42.000Z
2015-10-16T11:30:15.000Z
pyx/tests/test_http.py
l04m33/pyx
b70efec605832ba3c7079e991584db3f5d1da8cb
[ "MIT" ]
null
null
null
pyx/tests/test_http.py
l04m33/pyx
b70efec605832ba3c7079e991584db3f5d1da8cb
[ "MIT" ]
null
null
null
import unittest import unittest.mock as mock import asyncio import pyx.http as http def create_dummy_message(): msg = http.HttpMessage(None) msg.headers = [ http.HttpHeader('Server', 'Pyx'), http.HttpHeader('Cookie', 'a'), http.HttpHeader('Cookie', 'b'), ] return msg def crea...
33.511111
92
0.59527
8,228
0.909372
375
0.041446
81
0.008952
0
0
1,507
0.166556
d5c40e739be914cd8694a4a6735e497e975d7778
1,791
py
Python
tests/test_webdriver_chrome.py
kidosoft/splinter
6d5052fd73c0a626299574cea76924e367c67faa
[ "BSD-3-Clause" ]
1
2016-09-21T19:32:47.000Z
2016-09-21T19:32:47.000Z
tests/test_webdriver_chrome.py
kidosoft/splinter
6d5052fd73c0a626299574cea76924e367c67faa
[ "BSD-3-Clause" ]
null
null
null
tests/test_webdriver_chrome.py
kidosoft/splinter
6d5052fd73c0a626299574cea76924e367c67faa
[ "BSD-3-Clause" ]
1
2019-12-02T15:19:07.000Z
2019-12-02T15:19:07.000Z
# -*- coding: utf-8 -*- # Copyright 2013 splinter authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. import os import unittest from splinter import Browser from .fake_webapp import EXAMPLE_APP from .base import WebDriverTests from selen...
25.225352
69
0.672808
1,288
0.719151
0
0
305
0.170296
0
0
314
0.175321
d5c480f55405e4b344842fed3a1082b875de03dd
1,349
py
Python
main.py
DuskXi/ArkX
7b416ae0c4ec2b383c6f414ed475930dd228909f
[ "Apache-2.0" ]
2
2022-02-18T03:08:38.000Z
2022-03-03T04:20:08.000Z
main.py
DuskXi/ArkX
7b416ae0c4ec2b383c6f414ed475930dd228909f
[ "Apache-2.0" ]
null
null
null
main.py
DuskXi/ArkX
7b416ae0c4ec2b383c6f414ed475930dd228909f
[ "Apache-2.0" ]
null
null
null
import os import json from File.file import File os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' def fileRead(fileName, encoding='utf-8'): with open(fileName, encoding=encoding) as f: return f.read() def main(): from Automation.distributor import Distributor from Performance import recoder from ...
30.659091
127
0.681987
0
0
0
0
0
0
0
0
538
0.392988
d5c5f4f5c79da67180264a12457b76158e4ccc4b
4,814
py
Python
tests/test_simple.py
cprogrammer1994/miniglm
696764ff200dd106dd533264ff45a060d5f7b230
[ "MIT" ]
4
2017-11-03T14:48:52.000Z
2019-03-07T03:48:11.000Z
tests/test_simple.py
cprogrammer1994/miniglm
696764ff200dd106dd533264ff45a060d5f7b230
[ "MIT" ]
2
2017-11-27T15:40:01.000Z
2021-01-30T08:40:51.000Z
tests/test_simple.py
cprogrammer1994/miniglm
696764ff200dd106dd533264ff45a060d5f7b230
[ "MIT" ]
3
2017-11-27T15:25:07.000Z
2021-03-02T10:31:30.000Z
import struct import numpy as np import pytest import miniglm def test_add_vec_vec(): res = miniglm.add((1.0, 2.0, 3.0), (1.5, 1.8, 1.2)) np.testing.assert_almost_equal(res, (2.5, 3.8, 4.2)) assert type(res) is tuple def test_add_vec_scalar(): res = miniglm.add((1.0, 2.0, 3.0), 0.5) np.testing...
28.826347
91
0.623598
0
0
0
0
0
0
0
0
36
0.007478
d5c61844c85a34a814f44efd7ddfec47f1e2a5e5
1,131
py
Python
flaskbb/plugins/news/views.py
konstantin1985/forum
7d4de24ccc932e9764699d89c8cc9d210b7fac7f
[ "BSD-3-Clause" ]
null
null
null
flaskbb/plugins/news/views.py
konstantin1985/forum
7d4de24ccc932e9764699d89c8cc9d210b7fac7f
[ "BSD-3-Clause" ]
null
null
null
flaskbb/plugins/news/views.py
konstantin1985/forum
7d4de24ccc932e9764699d89c8cc9d210b7fac7f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from flask import Blueprint, redirect from flaskbb.utils.helpers import render_template from .forms import AddForm, DeleteForm from .models import MyPost from flaskbb.extensions import db news = Blueprint("news", __name__, template_folder="templates") def inject_news_link(): return rende...
26.928571
72
0.660477
0
0
0
0
763
0.674624
0
0
154
0.136163
d5c64f687d9f59ed689fc14b8df6d5ee61f23931
23,742
py
Python
stix_shifter_modules/aws_athena/tests/stix_translation/test_aws_athena_json_to_stix.py
nkhetia31/stix-shifter
ace07581cb227fd35e450b2f8871475227a041d0
[ "Apache-2.0" ]
33
2018-05-25T17:07:28.000Z
2019-09-30T10:08:53.000Z
stix_shifter_modules/aws_athena/tests/stix_translation/test_aws_athena_json_to_stix.py
nkhetia31/stix-shifter
ace07581cb227fd35e450b2f8871475227a041d0
[ "Apache-2.0" ]
54
2018-06-01T18:17:24.000Z
2019-09-30T18:36:15.000Z
stix_shifter_modules/aws_athena/tests/stix_translation/test_aws_athena_json_to_stix.py
subbyte/stix-shifter
36d71c172a5fc5b97d872e623753b0dd1bf4fe6c
[ "Apache-2.0" ]
37
2018-07-24T13:29:46.000Z
2019-09-29T19:06:27.000Z
from stix_shifter_utils.stix_translation.src.json_to_stix import json_to_stix_translator from stix_shifter_utils.stix_translation.src.utils.transformer_utils import get_module_transformers from stix_shifter_modules.aws_athena.entry_point import EntryPoint import unittest MODULE = "aws_athena" entry_point = EntryPoint(...
52.18022
126
0.539087
23,188
0.976666
0
0
481
0.020259
0
0
10,930
0.460366
d5c68966a759ee86d163e95dee1679657c063de3
2,236
py
Python
Python Spider/xpath/03 login.py
CodingGorit/Coding-with-Python
b0f1d5d704b816a85b0ae57b46d00314de2a67b9
[ "Apache-2.0" ]
1
2020-01-31T15:57:29.000Z
2020-01-31T15:57:29.000Z
Python Spider/xpath/03 login.py
CodingGorit/Coding-with-Python
b0f1d5d704b816a85b0ae57b46d00314de2a67b9
[ "Apache-2.0" ]
null
null
null
Python Spider/xpath/03 login.py
CodingGorit/Coding-with-Python
b0f1d5d704b816a85b0ae57b46d00314de2a67b9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- #file: 03 login.py #@author: Gorit #@contact: [email protected] #@time: 2020/1/20 12:44 import requests from lxml import etree # 封装类,进行学习猿地的登录和订单的获取 class lMonKey(): # 登录请求地址 loginUrl = "https://www.lmonkey.com/login" # 账户中心地址 orderUrl = "https://www.lmonkey.com/my...
27.268293
175
0.549195
2,388
0.907295
0
0
0
0
0
0
1,247
0.473784
d5c72a3c1f9827cd7d71f3da809f2313db6f0a32
9,730
py
Python
src/gui/MultiplayerPlayerInfo.py
fireclawthefox/AnkandoraLight
05b71e1a2919141cce02cb1aade95fbac682614b
[ "BSD-2-Clause" ]
3
2020-07-31T10:27:06.000Z
2022-01-11T20:28:55.000Z
src/gui/MultiplayerPlayerInfo.py
fireclawthefox/AnkandoraLight
05b71e1a2919141cce02cb1aade95fbac682614b
[ "BSD-2-Clause" ]
null
null
null
src/gui/MultiplayerPlayerInfo.py
fireclawthefox/AnkandoraLight
05b71e1a2919141cce02cb1aade95fbac682614b
[ "BSD-2-Clause" ]
1
2020-07-30T08:23:28.000Z
2020-07-30T08:23:28.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # This file was created using the DirectGUI Designer from direct.gui import DirectGuiGlobals as DGG from direct.gui.DirectFrame import DirectFrame from direct.gui.DirectLabel import DirectLabel from direct.gui.DirectButton import DirectButton from direct.gui.DirectOptionMenu...
35.126354
104
0.528777
9,295
0.955293
0
0
0
0
0
0
419
0.043063
d5c7e9662e071c24633307f69bc18856ffa49ecf
634
py
Python
publications/time_mag.py
mkoo21/rss-review-scraper
4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5
[ "BSD-3-Clause" ]
null
null
null
publications/time_mag.py
mkoo21/rss-review-scraper
4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5
[ "BSD-3-Clause" ]
1
2021-06-01T23:47:57.000Z
2021-06-01T23:47:57.000Z
publications/time_mag.py
mkoo21/rss-review-scraper
4adde8586ce55d7bb211bcfbb9bcccd1edc8b6a5
[ "BSD-3-Clause" ]
null
null
null
from . import FROM_FEED_PUBLISHED_TODAY, STRINGIFY def filter_by_tag(tag, entries): matches = list(filter( lambda x: any(list(map( lambda y: y.term == tag, x.tags ))), entries )) if len(matches) == 0: return "" return "<h2>TIME {} - {} result...
28.818182
93
0.594637
0
0
0
0
0
0
0
0
111
0.175079
d5c8ad01f8962aad9216b71e8846b60294d68306
3,017
py
Python
2020/21/code.py
irobin591/advent-of-code-2019
279c28a2863558bd014b289802fff4b444c5d6cf
[ "MIT" ]
null
null
null
2020/21/code.py
irobin591/advent-of-code-2019
279c28a2863558bd014b289802fff4b444c5d6cf
[ "MIT" ]
null
null
null
2020/21/code.py
irobin591/advent-of-code-2019
279c28a2863558bd014b289802fff4b444c5d6cf
[ "MIT" ]
null
null
null
# Advent of Code 2020 # Day 21 # Author: irobin591 import os import doctest import re re_entry = re.compile(r'^([a-z ]+) \(contains ([a-z, ]*)\)$') with open(os.path.join(os.path.dirname(__file__), "input.txt"), 'r') as input_file: input_data = input_file.read().strip().split('\n') def part1(input_data): "...
30.785714
114
0.599271
0
0
0
0
0
0
0
0
808
0.267816
d5c9c3dcfd93144a733bdffa2a7d7a7dc364d51d
2,807
py
Python
tests/test_html_escaping.py
copart/pandoc-mustache
f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa
[ "CC0-1.0" ]
43
2017-12-27T05:57:00.000Z
2022-03-18T10:07:28.000Z
tests/test_html_escaping.py
copart/pandoc-mustache
f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa
[ "CC0-1.0" ]
10
2018-02-07T11:20:37.000Z
2021-04-22T21:44:19.000Z
tests/test_html_escaping.py
copart/pandoc-mustache
f6ace29cd0c8d6b4d8f182eedcf36ad38a2412fa
[ "CC0-1.0" ]
8
2018-11-05T13:10:35.000Z
2021-08-30T18:14:02.000Z
""" Test that escaping characters for HTML is disabled. """ import os, subprocess def test_escape_singlequote(tmpdir): # Define empty dictionaries doc = {} template = {} # Prepare file names doc['path'] = tmpdir.join("document.md") template['path'] = tmpdir.join("template.yaml") # Prepar...
28.642857
139
0.617385
0
0
0
0
0
0
0
0
1,322
0.470965
d5cb7cb45edf1a90b51258da74fc6a1d2b6758fa
2,761
py
Python
app.py
iandees/microdata2osm
1505b8072880055033ddbb85626fcdb857c97d4e
[ "MIT" ]
1
2019-11-05T16:02:17.000Z
2019-11-05T16:02:17.000Z
app.py
iandees/microdata2osm
1505b8072880055033ddbb85626fcdb857c97d4e
[ "MIT" ]
null
null
null
app.py
iandees/microdata2osm
1505b8072880055033ddbb85626fcdb857c97d4e
[ "MIT" ]
null
null
null
from flask import Flask, jsonify, request from w3lib.html import get_base_url import extruct import requests app = Flask(__name__) def extract_osm_tags(data): tags = {} schema_org_type = data.get('@type') if schema_org_type == 'Restaurant': tags['amenity'] = 'restaurant' serves_cuisine...
25.803738
75
0.589279
0
0
0
0
942
0.341181
0
0
646
0.233973
d5cdc3a0f5e46ad0ab740a282e0265f0e1bb27d5
702
py
Python
dags/simple_python_taskflow_api.py
davemasino/airflow101
f940e169b9c562e3834a201827b615744a99b86d
[ "Apache-2.0" ]
null
null
null
dags/simple_python_taskflow_api.py
davemasino/airflow101
f940e169b9c562e3834a201827b615744a99b86d
[ "Apache-2.0" ]
null
null
null
dags/simple_python_taskflow_api.py
davemasino/airflow101
f940e169b9c562e3834a201827b615744a99b86d
[ "Apache-2.0" ]
null
null
null
""" A simple Python DAG using the Taskflow API. """ import logging import time from datetime import datetime from airflow import DAG from airflow.decorators import task log = logging.getLogger(__name__) with DAG( dag_id='simple_python_taskflow_api', schedule_interval=None, start_date=datetime(2021, 1, 1)...
20.057143
43
0.665242
0
0
0
0
217
0.309117
0
0
178
0.253561
d5cdc4a618ee4e3bc14a1bf765626931e9530f36
1,744
py
Python
pyunmarked/roylenichols.py
kenkellner/pyunmarked
485bd96b4ca12a019b478fc19f68f577279ac9b8
[ "MIT" ]
null
null
null
pyunmarked/roylenichols.py
kenkellner/pyunmarked
485bd96b4ca12a019b478fc19f68f577279ac9b8
[ "MIT" ]
null
null
null
pyunmarked/roylenichols.py
kenkellner/pyunmarked
485bd96b4ca12a019b478fc19f68f577279ac9b8
[ "MIT" ]
null
null
null
from . import model import numpy as np from scipy import special, stats class RoyleNicholsModel(model.UnmarkedModel): def __init__(self, det_formula, abun_formula, data): self.response = model.Response(data.y) abun = model.Submodel("Abundance", "abun", abun_formula, np.exp, data.site_covs) ...
37.913043
91
0.544151
1,670
0.957569
0
0
0
0
0
0
66
0.037844
d5cdf640db99a0e2d2dcf804807be669d9939f1e
75,933
py
Python
proc_chords_xarray.py
pgriewank/ASR_tools
306a7d92725888485a35f8824433ad7b0451b569
[ "MIT" ]
null
null
null
proc_chords_xarray.py
pgriewank/ASR_tools
306a7d92725888485a35f8824433ad7b0451b569
[ "MIT" ]
null
null
null
proc_chords_xarray.py
pgriewank/ASR_tools
306a7d92725888485a35f8824433ad7b0451b569
[ "MIT" ]
null
null
null
#Contains the functions needed to process both chords and regularized beards # proc_chords is used for chords #proc_beard_regularize for generating beards #proc_pdf saves pdfs of a variable below cloud base #Both have a large overlap, but I split them in two to keep the one script from getting to confusing. import nu...
40.605882
218
0.563326
0
0
0
0
0
0
0
0
24,414
0.32152
d5ce012afb2ebb7c4522ad96e38d4259432b472d
1,656
py
Python
expression-atlas-wf/scripts/dmel_tau_housekeeping.py
jfear/larval_gonad
624a71741864b74e0372f89bdcca578e5cca3722
[ "MIT" ]
1
2019-09-13T13:24:18.000Z
2019-09-13T13:24:18.000Z
expression-atlas-wf/scripts/dmel_tau_housekeeping.py
jfear/larval_gonad
624a71741864b74e0372f89bdcca578e5cca3722
[ "MIT" ]
65
2019-07-24T16:23:08.000Z
2020-03-06T22:18:47.000Z
expression-atlas-wf/scripts/dmel_tau_housekeeping.py
jfear/larval_gonad
624a71741864b74e0372f89bdcca578e5cca3722
[ "MIT" ]
1
2021-06-02T19:09:35.000Z
2021-06-02T19:09:35.000Z
"""D. mel housekeeping genes based on tau. Uses the intersection of w1118 and orgR to create a list of D. mel housekeeping genes. """ import os from functools import partial import pandas as pd from larval_gonad.io import pickle_load, pickle_dump def main(): # Load mapping of YOgn to FBgn annot = pickle_loa...
30.109091
96
0.630435
0
0
0
0
0
0
0
0
524
0.316425
d5ce93a21169fedfe3df6edeca6f8d5d29633b0f
2,226
py
Python
api-server/server/core/key.py
TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021
7a3d78d4067303d61c4a25d45c0671ae7e984222
[ "MIT" ]
75
2020-07-22T15:24:56.000Z
2022-03-30T08:34:06.000Z
api-server/server/core/key.py
TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021
7a3d78d4067303d61c4a25d45c0671ae7e984222
[ "MIT" ]
null
null
null
api-server/server/core/key.py
TK-IBM-Call-for-Code-Challange-2021/call-for-code-challenge-2021
7a3d78d4067303d61c4a25d45c0671ae7e984222
[ "MIT" ]
34
2020-07-23T02:54:03.000Z
2022-03-29T09:51:21.000Z
""" Api Key validation """ from typing import Optional from fastapi.security.api_key import APIKeyHeader from fastapi import HTTPException, Security, Depends from starlette.status import HTTP_401_UNAUTHORIZED, HTTP_400_BAD_REQUEST, HTTP_403_FORBIDDEN from server.core.security import verify_key from server.db.mongodb ...
33.223881
92
0.666667
0
0
0
0
0
0
1,614
0.725067
383
0.172058
d5cee84d7663e55b77b23428667b37ccfb80fbf9
1,253
py
Python
scripts/kconfig-split.py
Osirium/linuxkit
b710224cdf9a8425a7129cdcb84fc1af00f926d7
[ "Apache-2.0" ]
7,798
2017-04-18T15:19:24.000Z
2022-03-30T19:34:42.000Z
scripts/kconfig-split.py
Osirium/linuxkit
b710224cdf9a8425a7129cdcb84fc1af00f926d7
[ "Apache-2.0" ]
1,673
2017-04-18T16:15:20.000Z
2022-03-31T06:14:17.000Z
scripts/kconfig-split.py
Osirium/linuxkit
b710224cdf9a8425a7129cdcb84fc1af00f926d7
[ "Apache-2.0" ]
1,099
2017-04-18T15:19:33.000Z
2022-03-31T20:23:20.000Z
#!/usr/bin/env python # This is a slightly modified version of ChromiumOS' splitconfig # https://chromium.googlesource.com/chromiumos/third_party/kernel/+/stabilize-5899.B-chromeos-3.14/chromeos/scripts/splitconfig """See this page for more details: http://dev.chromium.org/chromium-os/how-tos-and-troubleshooting/kern...
27.844444
127
0.651237
0
0
0
0
0
0
0
0
505
0.403033
d5cef9720c8cb2b94870da749da3f4cf31757f01
1,631
py
Python
src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
2
2021-06-05T17:51:26.000Z
2021-11-17T11:17:56.000Z
src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
3
2020-05-27T20:16:26.000Z
2020-07-23T19:46:49.000Z
src/synapse/azext_synapse/vendored_sdks/azure_synapse/models/livy_statement_output.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
5
2020-05-09T17:47:09.000Z
2020-10-01T19:52:06.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
33.285714
76
0.563458
1,115
0.68363
0
0
0
0
0
0
1,040
0.637646
d5d04044860f90c923e15fee006637515d70252d
6,215
py
Python
src/main.py
mafshar/sub-puppo
20fe5bf3ca3d250d846c545085f748e706c4a33e
[ "MIT" ]
1
2018-03-02T04:24:33.000Z
2018-03-02T04:24:33.000Z
src/main.py
mafshar/sub-puppo
20fe5bf3ca3d250d846c545085f748e706c4a33e
[ "MIT" ]
null
null
null
src/main.py
mafshar/sub-puppo
20fe5bf3ca3d250d846c545085f748e706c4a33e
[ "MIT" ]
null
null
null
#!/usr/bin/env python ''' Notes: - Weak implies weakly supervised learning (4 classes) - Strong implies strongly (fully) superversied learning (10 classes) - frame number is set to 22ms (default); that is the "sweet spot" based on dsp literature - sampling rate is 16kHz (for the MFCC of each track) ...
32.710526
187
0.665809
0
0
0
0
0
0
0
0
1,295
0.208367
d5d07c6912264faadbd6b41b6918a6a30e91f2bc
8,638
py
Python
plugins/Operations/Crypto/blowfish_encrypt_dialog.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
120
2015-02-28T14:49:12.000Z
2022-03-27T07:13:24.000Z
plugins/Operations/Crypto/blowfish_encrypt_dialog.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
null
null
null
plugins/Operations/Crypto/blowfish_encrypt_dialog.py
nmantani/FileInsight-plugins
a6b036672e4c72ed06678729a86293212b7213db
[ "BSD-2-Clause", "CC0-1.0", "MIT" ]
17
2016-04-04T15:53:03.000Z
2021-12-10T18:07:59.000Z
# # Blowfish encrypt - Encrypt selected region with Blowfish # # Copyright (c) 2019, Nobutaka Mantani # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code...
44.297436
210
0.678629
0
0
0
0
0
0
0
0
2,705
0.313151
d5d16bd87f7bfb96643e0e75dbd1d494645de558
5,734
py
Python
dns/rdtypes/IN/IPSECKEY.py
preo/dnspython
465785f85f87508209117264c677080e901e957c
[ "0BSD" ]
null
null
null
dns/rdtypes/IN/IPSECKEY.py
preo/dnspython
465785f85f87508209117264c677080e901e957c
[ "0BSD" ]
null
null
null
dns/rdtypes/IN/IPSECKEY.py
preo/dnspython
465785f85f87508209117264c677080e901e957c
[ "0BSD" ]
null
null
null
# Copyright (C) 2006, 2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
38.743243
81
0.591734
4,859
0.847401
0
0
0
0
0
0
1,472
0.256714
d5d20f7a81be3ee7ffae45e074584da66ec78259
210
py
Python
multistream_select/__init__.py
Projjol/py-multistream-select
624becaaeefa0a76d6841e27fbf7dea3240d2fe0
[ "MIT" ]
null
null
null
multistream_select/__init__.py
Projjol/py-multistream-select
624becaaeefa0a76d6841e27fbf7dea3240d2fe0
[ "MIT" ]
null
null
null
multistream_select/__init__.py
Projjol/py-multistream-select
624becaaeefa0a76d6841e27fbf7dea3240d2fe0
[ "MIT" ]
null
null
null
__version = '0.1.0' __all__ = ['MultiStreamSelect', 'hexify'] __author__ = 'Natnael Getahun ([email protected])' __name__ = 'multistream' from .multistream import MultiStreamSelect from .utils import hexify
26.25
52
0.766667
0
0
0
0
0
0
0
0
86
0.409524
d5d2163f998824781f4cf67aa89ebfc2260b9f51
42,648
py
Python
python/input_reader.py
dagesundholm/DAGE
0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138
[ "MIT" ]
3
2018-03-29T08:48:57.000Z
2020-02-16T22:40:22.000Z
python/input_reader.py
dagesundholm/DAGE
0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138
[ "MIT" ]
null
null
null
python/input_reader.py
dagesundholm/DAGE
0d0ef1d3e74ba751ca4d288db9f1ac7f9a822138
[ "MIT" ]
1
2019-04-08T14:40:57.000Z
2019-04-08T14:40:57.000Z
"""---------------------------------------------------------------------------------* * Copyright (c) 2010-2018 Pauli Parkkinen, Eelis Solala, Wen-Hua Xu, * * Sergio Losilla, Elias Toivanen, Jonas Juselius * * ...
47.020948
179
0.559487
40,078
0.939739
0
0
480
0.011255
0
0
11,432
0.268055
d5d27a9aec4e8518393324c6681b93cf4f6993a5
506
py
Python
tests/test_mate_hashes_methods.py
MacHu-GWU/pathlib_mate-project
5b8f5441e681730d02209211cce7f46986147418
[ "MIT" ]
9
2017-09-07T21:21:43.000Z
2020-10-11T09:47:24.000Z
tests/test_mate_hashes_methods.py
MacHu-GWU/pathlib_mate-project
5b8f5441e681730d02209211cce7f46986147418
[ "MIT" ]
2
2018-10-16T14:30:26.000Z
2020-12-05T02:40:46.000Z
tests/test_mate_hashes_methods.py
MacHu-GWU/pathlib_mate-project
5b8f5441e681730d02209211cce7f46986147418
[ "MIT" ]
2
2017-09-05T14:06:01.000Z
2021-06-29T15:31:13.000Z
# -*- coding: utf-8 -*- import pytest from pathlib_mate.pathlib2 import Path class TestHashesMethods(object): def test(self): p = Path(__file__) assert len({ p.md5, p.get_partial_md5(nbytes=1 << 20), p.sha256, p.get_partial_sha256(nbytes=1 << 20), p.sha512, p.g...
23
59
0.592885
290
0.573123
0
0
0
0
0
0
50
0.098814
d5d2a60bb0dcf9c3c7f564f0707f97c252020d5c
4,183
py
Python
tools/lib/auth.py
shoes22/openpilot
a965de3c96a53b67d106cfa775e3407db82dd0e1
[ "MIT" ]
121
2019-03-27T06:34:51.000Z
2021-06-15T14:37:29.000Z
tools/lib/auth.py
shoes22/openpilot
a965de3c96a53b67d106cfa775e3407db82dd0e1
[ "MIT" ]
54
2019-04-11T08:51:58.000Z
2021-06-13T17:04:22.000Z
tools/lib/auth.py
shoes22/openpilot
a965de3c96a53b67d106cfa775e3407db82dd0e1
[ "MIT" ]
139
2019-07-16T07:25:05.000Z
2021-06-09T11:27:53.000Z
#!/usr/bin/env python3 """ Usage:: usage: auth.py [-h] [{google,apple,github,jwt}] [jwt] Login to your comma account positional arguments: {google,apple,github,jwt} jwt optional arguments: -h, --help show this help message and exit Examples:: ./auth.py # Log in with google accou...
28.650685
140
0.672962
667
0.159455
0
0
0
0
0
0
1,739
0.41573
d5d313602da6567472c45152b7f1fb43db070947
901
py
Python
datedfolder.py
IgorRidanovic/flapi
7eb35cc670a5d1a06b01fb13982ffa63345369de
[ "MIT" ]
3
2020-09-21T13:07:05.000Z
2021-01-29T19:44:02.000Z
datedfolder.py
IgorRidanovic/flapi
7eb35cc670a5d1a06b01fb13982ffa63345369de
[ "MIT" ]
null
null
null
datedfolder.py
IgorRidanovic/flapi
7eb35cc670a5d1a06b01fb13982ffa63345369de
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- ''' Create a Baselight folder with current date and time stamp. You must refresh the Job Manager after running the script. Copyright (c) 2020 Igor Riđanović, Igor [at] hdhead.com, www.metafide.com ''' import flapi from getflapi import getflapi from datetime import dateti...
23.710526
73
0.662597
0
0
0
0
0
0
0
0
347
0.384275
d5d51d8a99234145a06442d575334e8b8cd54c32
4,762
py
Python
elastica/wrappers/callbacks.py
zhidou2/PyElastica
0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6
[ "MIT" ]
71
2020-04-15T17:02:42.000Z
2022-03-26T04:53:51.000Z
elastica/wrappers/callbacks.py
zhidou2/PyElastica
0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6
[ "MIT" ]
59
2020-05-15T03:51:46.000Z
2022-03-28T13:53:01.000Z
elastica/wrappers/callbacks.py
zhidou2/PyElastica
0f5502bc5349ab5e5dc794d8dfc82b7c2bd69eb6
[ "MIT" ]
57
2020-06-17T20:34:02.000Z
2022-03-16T08:09:54.000Z
__doc__ = """ CallBacks ----------- Provides the callBack interface to collect data over time (see `callback_functions.py`). """ from elastica.callback_functions import CallBackBaseClass class CallBacks: """ CallBacks class is a wrapper for calling callback functions, set by the user. If the user wants ...
29.214724
94
0.584208
4,567
0.959051
0
0
0
0
0
0
2,779
0.583578
d5d580ea25dd4fecd8cfeb8103bdbe268c389416
2,961
py
Python
vitrage/evaluator/template_data.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
vitrage/evaluator/template_data.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
vitrage/evaluator/template_data.py
HoonMinJeongUm/Hunmin-vitrage
37d43d6b78e8b76fa6a2e83e5c739e9e4917a7b6
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 - Nokia # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, sof...
27.933962
77
0.667342
2,094
0.707194
0
0
942
0.318136
0
0
701
0.236744
d5d5b53df6261a4974bd6d3bb678fc4435a6413e
15,032
py
Python
scripts/summarize-kmer-counts.py
rpetit3/anthrax-metagenome-study
b4a6f2c4d49b57aeae898afd6a95c8f6cb437945
[ "MIT" ]
null
null
null
scripts/summarize-kmer-counts.py
rpetit3/anthrax-metagenome-study
b4a6f2c4d49b57aeae898afd6a95c8f6cb437945
[ "MIT" ]
null
null
null
scripts/summarize-kmer-counts.py
rpetit3/anthrax-metagenome-study
b4a6f2c4d49b57aeae898afd6a95c8f6cb437945
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 """Parse through the simulated sequencing group specific kmer counts.""" import argparse as ap from collections import OrderedDict import glob import gzip import os import sys import time import numpy as np import multiprocessing as mp SAMPLES = OrderedDict() KMERS = {} HAMMING = OrderedDict() ...
40.408602
87
0.549494
0
0
0
0
0
0
0
0
4,349
0.289316
d5d6cadbdf0418e7793af6364477d1005bd12ded
327
py
Python
movies/exceptions.py
te0dor/netguru-movies
8e2cc4585851ad31794ec9e6a3e4dd70cc0980c5
[ "MIT" ]
null
null
null
movies/exceptions.py
te0dor/netguru-movies
8e2cc4585851ad31794ec9e6a3e4dd70cc0980c5
[ "MIT" ]
null
null
null
movies/exceptions.py
te0dor/netguru-movies
8e2cc4585851ad31794ec9e6a3e4dd70cc0980c5
[ "MIT" ]
null
null
null
from marshmallow.exceptions import ValidationError class ObjectDoesNotExist(Exception): """Exception if not found results""" pass class CommunicationError(Exception): """Exception for diferents problem with communications.""" pass __all__ = ('ValidationError', 'ObjectDoesNotExist', 'CommunicationE...
21.8
73
0.75841
194
0.593272
0
0
0
0
0
0
151
0.461774
d5d747b80a8ea5e6c6c092c35a44d7f1c0635eb8
117
py
Python
music_api/apps/music_app/admin.py
fejiroofficial/Simple_music
2dd9dcf8e5c7374e29dcf96987c053eebf1cba2a
[ "MIT" ]
null
null
null
music_api/apps/music_app/admin.py
fejiroofficial/Simple_music
2dd9dcf8e5c7374e29dcf96987c053eebf1cba2a
[ "MIT" ]
8
2019-12-04T23:40:12.000Z
2022-02-10T07:58:28.000Z
music_api/apps/music_app/admin.py
fejiroofficial/simple_music
2dd9dcf8e5c7374e29dcf96987c053eebf1cba2a
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Songs admin.site.register(Songs) # Register your models here.
16.714286
32
0.794872
0
0
0
0
0
0
0
0
28
0.239316
d5d9540eff941a339f643e59edbea5708ee6a194
2,354
py
Python
scripts/generate_image_series.py
JIC-Image-Analysis/senescence-in-field
f310e34df377eb807423c38cf27d1ade0782f5a2
[ "MIT" ]
null
null
null
scripts/generate_image_series.py
JIC-Image-Analysis/senescence-in-field
f310e34df377eb807423c38cf27d1ade0782f5a2
[ "MIT" ]
null
null
null
scripts/generate_image_series.py
JIC-Image-Analysis/senescence-in-field
f310e34df377eb807423c38cf27d1ade0782f5a2
[ "MIT" ]
null
null
null
# Draw image time series for one or more plots from jicbioimage.core.image import Image import dtoolcore import click from translate_labels import rack_plot_to_image_plot from image_utils import join_horizontally, join_vertically def identifiers_where_match_is_true(dataset, match_function): return [i for i i...
26.75
75
0.712404
0
0
0
0
257
0.109176
0
0
361
0.153356
d5d98de44dcdd3336c05cb1bd2a44010685446b0
4,505
py
Python
pytpp/properties/response_objects/system_status.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
4
2022-02-04T23:58:55.000Z
2022-02-15T18:53:08.000Z
pytpp/properties/response_objects/system_status.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
pytpp/properties/response_objects/system_status.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
from pytpp.properties.response_objects.dataclasses import system_status from pytpp.tools.helpers.date_converter import from_date_string class SystemStatus: @staticmethod def Engine(response_object: dict): if not isinstance(response_object, dict): response_object = {} return system_...
42.102804
116
0.668368
4,366
0.969145
0
0
4,300
0.954495
0
0
483
0.107214
d5d9b42548010e4777afbfec7a0536b09a13b146
1,883
py
Python
src/data/dataModule.py
mikkelfo/Title-prediction-from-abstract
45c9b64c963ae9b00c6b34a3f2b9f7c25496350e
[ "MIT" ]
null
null
null
src/data/dataModule.py
mikkelfo/Title-prediction-from-abstract
45c9b64c963ae9b00c6b34a3f2b9f7c25496350e
[ "MIT" ]
null
null
null
src/data/dataModule.py
mikkelfo/Title-prediction-from-abstract
45c9b64c963ae9b00c6b34a3f2b9f7c25496350e
[ "MIT" ]
null
null
null
from typing import Optional import pytorch_lightning as pl import torch from omegaconf import OmegaConf from torch.utils.data import DataLoader, random_split from transformers import T5Tokenizer from src.data.PaperDataset import PaperDataset class ArvixDataModule(pl.LightningDataModule): def __init__(self, conf...
32.465517
73
0.669676
1,580
0.839087
0
0
0
0
0
0
159
0.08444
d5d9d4fd434e21de06a534a9b7ddf3881191564e
10,573
py
Python
shs/gui/RootFrame.py
ansobolev/shs
7a5f61bd66fe1e8ae047a4d3400b055175a53f4e
[ "MIT" ]
1
2016-06-22T13:30:25.000Z
2016-06-22T13:30:25.000Z
shs/gui/RootFrame.py
ansobolev/shs
7a5f61bd66fe1e8ae047a4d3400b055175a53f4e
[ "MIT" ]
1
2017-12-01T04:49:45.000Z
2017-12-01T04:49:45.000Z
shs/gui/RootFrame.py
ansobolev/shs
7a5f61bd66fe1e8ae047a4d3400b055175a53f4e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import sys import time import subprocess import wx import ConfigParser from wx.lib.mixins.listctrl import getListCtrlSelection from wx.lib.pubsub import pub from gui.RootGUI import RootGUI from StepsDialog import StepsDialog from PlotFrame import PlotFuncFrame, PlotCorrFrame import i...
39.01476
120
0.608909
10,229
0.967464
0
0
2,037
0.192661
0
0
1,876
0.177433
d5da19776d7a24ff632b755eb644da772dbdd1cc
6,063
py
Python
saleor/order/migrations/0015_auto_20170206_0407.py
acabezasg/urpi-master
7c9cd0fbe6d89dad70652482712ca38b21ba6f84
[ "BSD-3-Clause" ]
6
2019-01-06T08:39:20.000Z
2022-03-04T18:07:47.000Z
saleor/order/migrations/0015_auto_20170206_0407.py
valentine217/saleor
323963748e6a2702265ec6635b930a234abde4f5
[ "BSD-3-Clause" ]
5
2021-03-09T16:22:37.000Z
2022-02-10T19:10:03.000Z
saleor/order/migrations/0015_auto_20170206_0407.py
valentine217/saleor
323963748e6a2702265ec6635b930a234abde4f5
[ "BSD-3-Clause" ]
1
2020-12-26T10:25:37.000Z
2020-12-26T10:25:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-06 10:07 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django_prices.models class Migration(migrations.Migration): dependencies = [ ...
45.586466
181
0.626752
5,811
0.958436
0
0
0
0
0
0
1,441
0.237671
d5dac56aef00dcc6cc7a0b56db80a25f82caafb4
3,357
py
Python
testrail_client/api/configurations.py
tonybearpan/testrail-lib
267070bd017bb1d80ac40e1b84ea40dc2c2e3956
[ "MIT" ]
null
null
null
testrail_client/api/configurations.py
tonybearpan/testrail-lib
267070bd017bb1d80ac40e1b84ea40dc2c2e3956
[ "MIT" ]
null
null
null
testrail_client/api/configurations.py
tonybearpan/testrail-lib
267070bd017bb1d80ac40e1b84ea40dc2c2e3956
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from .base import TestRailAPIBase class Config(TestRailAPIBase): """ Use the following API methods to request details ...
36.48913
165
0.597557
3,128
0.931784
0
0
0
0
0
0
2,186
0.651177
d5db929efd07ee76ec7142cbf1f91188279ae61e
1,104
py
Python
tests/asserts_wrapper.py
QARancher/k8s_client
b290caa5db12498ed9fbb2c972ab20141ff2c401
[ "Unlicense" ]
null
null
null
tests/asserts_wrapper.py
QARancher/k8s_client
b290caa5db12498ed9fbb2c972ab20141ff2c401
[ "Unlicense" ]
4
2020-05-05T14:42:33.000Z
2020-05-10T08:15:28.000Z
tests/asserts_wrapper.py
QARancher/k8s_client
b290caa5db12498ed9fbb2c972ab20141ff2c401
[ "Unlicense" ]
null
null
null
def assert_not_none(actual_result, message=""): if not message: message = f"{actual_result} resulted with None" assert actual_result, message def assert_equal(actual_result, expected_result, message=""): if not message: message = f"{actual_result} is not equal to expected " \ ...
35.612903
78
0.701087
0
0
0
0
0
0
0
0
311
0.281703
d5dbc4975d95ff84c0f9a2e3857f8af1ed9103e1
40,713
py
Python
tools/proto/transaction_pb2.py
ctring/Detock
a1171a511d9cd1f79cc3a8d54ec17f759d088de4
[ "MIT" ]
null
null
null
tools/proto/transaction_pb2.py
ctring/Detock
a1171a511d9cd1f79cc3a8d54ec17f759d088de4
[ "MIT" ]
null
null
null
tools/proto/transaction_pb2.py
ctring/Detock
a1171a511d9cd1f79cc3a8d54ec17f759d088de4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: proto/transaction.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from goo...
42.277259
4,079
0.759315
0
0
0
0
0
0
0
0
9,048
0.222239
d5dc3b0ac30486b996b5ad01fe0ad1a247834e86
1,411
py
Python
srl/simulation_test.py
google/simple-reinforcement-learning
9bdac29427cd5c556d7ea7531b807645f043aae3
[ "Apache-2.0" ]
60
2017-01-10T06:35:11.000Z
2020-12-19T07:33:40.000Z
srl/simulation_test.py
google/simple-reinforcement-learning
9bdac29427cd5c556d7ea7531b807645f043aae3
[ "Apache-2.0" ]
null
null
null
srl/simulation_test.py
google/simple-reinforcement-learning
9bdac29427cd5c556d7ea7531b807645f043aae3
[ "Apache-2.0" ]
29
2017-01-11T22:15:36.000Z
2022-03-17T02:17:37.000Z
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
32.068182
74
0.722892
722
0.511694
0
0
0
0
0
0
577
0.40893
d5dc76ad37d386c3045e8ed5404e25dd2364d605
26,564
py
Python
src/xmltollvm.py
Tejvinder/thesis-ghidra
2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216
[ "MIT" ]
101
2019-10-22T09:48:19.000Z
2022-03-30T07:03:40.000Z
src/xmltollvm.py
Tejvinder/thesis-ghidra
2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216
[ "MIT" ]
4
2020-03-06T14:18:47.000Z
2021-11-05T04:10:59.000Z
src/xmltollvm.py
Tejvinder/thesis-ghidra
2e59bc48d6bb820ecf6b390e5cf5893fc6ea0216
[ "MIT" ]
15
2019-10-22T13:12:39.000Z
2022-03-04T20:08:06.000Z
from llvmlite import ir import xml.etree.ElementTree as et int32 = ir.IntType(32) int64 = ir.IntType(64) int1 = ir.IntType(1) void_type = ir.VoidType() function_names = [] registers, functions, uniques, extracts = {}, {}, {}, {} internal_functions = {} memory = {} flags = ["ZF", "CF", "OF", "SF"] pointers = ["RSP", "R...
49.932331
118
0.571074
0
0
0
0
0
0
0
0
3,472
0.130703
d5dc93546bee372b907de208f03583a6f68c3b62
925
py
Python
modules/WPSeku/modules/discovery/generic/wplisting.py
Farz7/Darkness
4f3eb5fee3d8a476d001ad319ca22bca274eeac9
[ "MIT" ]
18
2020-04-24T06:50:23.000Z
2022-03-14T08:00:38.000Z
modules/WPSeku/modules/discovery/generic/wplisting.py
Farz7/Darkness
4f3eb5fee3d8a476d001ad319ca22bca274eeac9
[ "MIT" ]
null
null
null
modules/WPSeku/modules/discovery/generic/wplisting.py
Farz7/Darkness
4f3eb5fee3d8a476d001ad319ca22bca274eeac9
[ "MIT" ]
5
2020-06-28T16:21:22.000Z
2022-01-30T14:17:32.000Z
#/usr/bin/env python # -*- Coding: UTF-8 -*- # # WPSeku: Wordpress Security Scanner # # @url: https://github.com/m4ll0k/WPSeku # @author: Momo Outaadi (M4ll0k) import re from lib import wphttp from lib import wpprint class wplisting: chk = wphttp.UCheck() out = wpprint.wpprint() def __init__(self,agent,proxy...
24.342105
82
0.656216
705
0.762162
0
0
0
0
0
0
274
0.296216
d5deac526ab7e57ca5c90998d8462e6ef3d52eff
350
py
Python
tw2/jit/widgets/__init__.py
toscawidgets/tw2.jit
c5e8059975115385f225029ba5c7380673524122
[ "MIT" ]
1
2020-01-12T05:11:24.000Z
2020-01-12T05:11:24.000Z
tw2/jit/widgets/__init__.py
toscawidgets/tw2.jit
c5e8059975115385f225029ba5c7380673524122
[ "MIT" ]
null
null
null
tw2/jit/widgets/__init__.py
toscawidgets/tw2.jit
c5e8059975115385f225029ba5c7380673524122
[ "MIT" ]
null
null
null
from tw2.jit.widgets.chart import (AreaChart, BarChart, PieChart) from tw2.jit.widgets.graph import (ForceDirectedGraph, RadialGraph) from tw2.jit.widgets.tree import (SpaceTree, HyperTree, Sunburst, Icicle, TreeMap) from tw2.jit.widgets.ajax import AjaxRadialGraph from tw2.jit.widget...
43.75
67
0.742857
0
0
0
0
0
0
0
0
0
0
d5dfc52594a99b2ee5b9d8578f257b3fdecb0fcf
4,726
py
Python
bot.py
tiianprb/TikTok-Downloader-Bot
91b6fd64d5a151c3e439772c69850a18b7562ceb
[ "MIT" ]
null
null
null
bot.py
tiianprb/TikTok-Downloader-Bot
91b6fd64d5a151c3e439772c69850a18b7562ceb
[ "MIT" ]
null
null
null
bot.py
tiianprb/TikTok-Downloader-Bot
91b6fd64d5a151c3e439772c69850a18b7562ceb
[ "MIT" ]
null
null
null
import json, requests, os, shlex, asyncio, uuid, shutil from typing import Tuple from pyrogram import Client, filters from pyrogram.types import InlineKeyboardButton, InlineKeyboardMarkup, CallbackQuery # Configs API_HASH = os.environ['API_HASH'] APP_ID = int(os.environ['APP_ID']) BOT_TOKEN = os.environ['BOT_T...
33.757143
152
0.643039
0
0
0
0
3,223
0.681972
3,492
0.738891
857
0.181337
d5e12ba6cbfd755e451e70540ba00bbbd7d6bc8c
24,254
py
Python
frontend-gui/rpanel.py
skyu0221/660-iot
d31f973c93871bfa8122f1b83364d0147d402e9e
[ "Apache-2.0" ]
null
null
null
frontend-gui/rpanel.py
skyu0221/660-iot
d31f973c93871bfa8122f1b83364d0147d402e9e
[ "Apache-2.0" ]
8
2021-03-19T01:36:06.000Z
2022-03-12T00:22:43.000Z
frontend-gui/rpanel.py
skyu0221/660-iot
d31f973c93871bfa8122f1b83364d0147d402e9e
[ "Apache-2.0" ]
null
null
null
import wx import wx.adv import random import util import config import time import datetime import threading import requests import json from functools import partial class ReqeusterThread(threading.Thread): # https://www.oreilly.com/library/view/python-cookbook/0596001673/ch06s03.html def __init__(self, ...
34.599144
158
0.580564
24,075
0.99262
0
0
0
0
0
0
5,125
0.211305
d5e19c75c00ba0d6d2f1c4a0eb15f229a98c4904
7,259
py
Python
webapp/search.py
henchan/memfinity
3860985e29b203f0569f60eea68ffb22aaf34b1f
[ "MIT" ]
null
null
null
webapp/search.py
henchan/memfinity
3860985e29b203f0569f60eea68ffb22aaf34b1f
[ "MIT" ]
null
null
null
webapp/search.py
henchan/memfinity
3860985e29b203f0569f60eea68ffb22aaf34b1f
[ "MIT" ]
null
null
null
"""High-level search API. This module implements application-specific search semantics on top of App Engine's search API. There are two chief operations: querying for entities, and managing entities in the search facility. Add and remove Card entities in the search facility: insert_cards([models.Card]) delete_ca...
37.035714
81
0.667998
1,823
0.251137
0
0
0
0
0
0
3,270
0.450475
d5e280ff84ed8b441621c5c137faf53691c8d37c
3,422
py
Python
Bot/Bot/board.py
Baidi96/AI-Agent-for-Light-Rider
6ae0cd4ea07248751c0f015ed74123ae3dec33d1
[ "MIT" ]
1
2019-12-18T08:24:22.000Z
2019-12-18T08:24:22.000Z
Bot/Bot/board.py
Baidi96/AI-Agent-for-Light-Rider
6ae0cd4ea07248751c0f015ed74123ae3dec33d1
[ "MIT" ]
null
null
null
Bot/Bot/board.py
Baidi96/AI-Agent-for-Light-Rider
6ae0cd4ea07248751c0f015ed74123ae3dec33d1
[ "MIT" ]
null
null
null
import copy import sys PLAYER1, PLAYER2, EMPTY, BLOCKED = [0, 1, 2, 3] S_PLAYER1, S_PLAYER2, S_EMPTY, S_BLOCKED, = ['0', '1', '.', 'x'] CHARTABLE = [(PLAYER1, S_PLAYER1), (PLAYER2, S_PLAYER2), (EMPTY, S_EMPTY), (BLOCKED, S_BLOCKED)] DIRS = [ ((-1, 0), "up"), ((1, 0), "down"), ((0, 1), "right"), ((0, ...
29.247863
124
0.504383
3,050
0.891292
0
0
0
0
0
0
88
0.025716
d5e2b128cd1d2cb827ad4460d329a4ebc4a12998
884
py
Python
baekjoon/1012.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
baekjoon/1012.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
baekjoon/1012.py
wonnerky/coteMaster
360e491e6342c1ee42ff49750b838a2ead865613
[ "Apache-2.0" ]
null
null
null
import sys sys.setrecursionlimit(10000) def dfs(r, c): global visit visit[r][c] = True mov = [(-1, 0), (0, -1), (1, 0), (0, 1)] for i in range(4): dr, dc = mov[i] nr, nc = r + dr, c + dc if 0 <= nr < N and 0 <= nc < M and visit[nr][nc] == False and board[nr][nc] == 1: ...
27.625
90
0.417421
0
0
0
0
0
0
0
0
0
0
d5e2b817212060ef7c5fee7505c4febd057adc71
5,827
py
Python
collection/cp/algorithms-master/python/binary_tree.py
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
1
2019-03-24T13:12:01.000Z
2019-03-24T13:12:01.000Z
collection/cp/algorithms-master/python/binary_tree.py
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
null
null
null
collection/cp/algorithms-master/python/binary_tree.py
daemonslayer/Notebook
a9880be9bd86955afd6b8f7352822bc18673eda3
[ "Apache-2.0" ]
null
null
null
""" Binary Tree and basic properties 1. In-Order Traversal 2. Pre-Order Traversal 3. Post-Order Traversal 4. Level-Order Traversal """ from collections import deque class BinaryTree(object): """ Representation of a general binary tree data: value of element left: Left subtree right: Right subtree ...
33.488506
120
0.579372
5,069
0.869916
0
0
0
0
0
0
2,801
0.480693
d5e30ec5517ff0e5f54798d022557ddc8306de32
445
py
Python
custom_components/vaddio_conferenceshot/const.py
rohankapoorcom/vaddio_conferenceshot
71744710df10f77e21e9e7568e3f6c7175b0d11d
[ "Apache-2.0" ]
null
null
null
custom_components/vaddio_conferenceshot/const.py
rohankapoorcom/vaddio_conferenceshot
71744710df10f77e21e9e7568e3f6c7175b0d11d
[ "Apache-2.0" ]
null
null
null
custom_components/vaddio_conferenceshot/const.py
rohankapoorcom/vaddio_conferenceshot
71744710df10f77e21e9e7568e3f6c7175b0d11d
[ "Apache-2.0" ]
null
null
null
import voluptuous as vol import homeassistant.helpers.config_validation as cv from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_PATH, CONF_USERNAME DOMAIN = "vaddio_conferenceshot" DATA_SCHEMA = vol.Schema( { vol.Required(CONF_HOST): cv.string, vol.Required(CONF_USERNAME): cv.string,...
24.722222
82
0.750562
0
0
0
0
0
0
0
0
47
0.105618
d5e3869d32d3fe51b72766bc724a95897a33b8c9
32,841
py
Python
lightonml/opu.py
lightonai/lightonml
451327cccecdca4e8ec65df30f30d3fd8ad2194f
[ "Apache-2.0" ]
27
2021-02-24T15:37:20.000Z
2022-01-12T00:28:22.000Z
lightonml/opu.py
lightonai/lightonml
451327cccecdca4e8ec65df30f30d3fd8ad2194f
[ "Apache-2.0" ]
4
2021-02-26T12:58:21.000Z
2021-09-10T09:54:49.000Z
lightonml/opu.py
lightonai/lightonml
451327cccecdca4e8ec65df30f30d3fd8ad2194f
[ "Apache-2.0" ]
9
2021-02-26T15:58:32.000Z
2021-06-21T09:18:48.000Z
# Copyright (c) 2020 LightOn, All Rights Reserved. # This file is subject to the terms and conditions defined in # file 'LICENSE.txt', which is part of this source code package. """ This module contains the OPU class """ import time from math import sqrt import pkg_resources from lightonml.encoding.base import NoEnco...
44.319838
114
0.645595
31,548
0.960628
0
0
4,431
0.134923
0
0
16,797
0.511464
d5e4c8d6143747e9fa0113815e838834d857b208
1,022
py
Python
example/shovel/bar.py
demiurgestudios/shovel
3db497164907d3765fae182959147d19064671c7
[ "MIT" ]
202
2015-01-12T13:47:29.000Z
2022-02-09T19:13:36.000Z
example/shovel/bar.py
demiurgestudios/shovel
3db497164907d3765fae182959147d19064671c7
[ "MIT" ]
14
2017-04-09T17:04:53.000Z
2021-05-16T11:08:34.000Z
example/shovel/bar.py
demiurgestudios/shovel
3db497164907d3765fae182959147d19064671c7
[ "MIT" ]
22
2015-09-11T18:35:10.000Z
2021-05-16T11:04:56.000Z
from shovel import task @task def hello(name='Foo'): '''Prints "Hello, " followed by the provided name. Examples: shovel bar.hello shovel bar.hello --name=Erin http://localhost:3000/bar.hello?Erin''' print('Hello, %s' % name) @task def args(*args): '''Echos back all the ar...
27.621622
65
0.614481
0
0
0
0
993
0.971624
0
0
779
0.762231
d5e5a12f0690f68a0f2da693b51965dfe681eeea
22,938
py
Python
scripts/external_libs/scapy-2.4.3/scapy/config.py
timgates42/trex-core
efe94752fcb2d0734c83d4877afe92a3dbf8eccd
[ "Apache-2.0" ]
956
2015-06-24T15:04:55.000Z
2022-03-30T06:25:04.000Z
scripts/external_libs/scapy-2.4.3/scapy/config.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
782
2015-09-20T15:19:00.000Z
2022-03-31T23:52:05.000Z
scripts/external_libs/scapy-2.4.3/scapy/config.py
angelyouyou/trex-core
fddf78584cae285d9298ef23f9f5c8725e16911e
[ "Apache-2.0" ]
429
2015-06-27T19:34:21.000Z
2022-03-23T11:02:51.000Z
# This file is part of Scapy # See http://www.secdev.org/projects/scapy for more information # Copyright (C) Philippe Biondi <[email protected]> # This program is published under a GPLv2 license """ Implementation of the configuration object. """ from __future__ import absolute_import from __future__ import print_funct...
33.584187
122
0.624161
15,639
0.681794
0
0
203
0.00885
0
0
5,969
0.260223
d5e70f438163ee68472f800dcc1f45bfb446e30f
5,797
py
Python
tests/base/test_server.py
Prodigy123/rasa_nlu_zh
b85717063a493f6b148504ee550a0642c6c379ae
[ "Apache-2.0" ]
4
2017-07-20T03:06:29.000Z
2021-04-20T03:25:17.000Z
tests/base/test_server.py
imsakshi/rasa_nlu
6dafc37825b99139248fdea9e9745f416734d4dd
[ "Apache-2.0" ]
null
null
null
tests/base/test_server.py
imsakshi/rasa_nlu
6dafc37825b99139248fdea9e9745f416734d4dd
[ "Apache-2.0" ]
2
2017-10-03T00:56:22.000Z
2018-08-15T10:41:41.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import import tempfile import pytest import time from treq.testing import StubTreq from rasa_nlu.config import RasaNLUConfig import json import io fr...
32.205556
104
0.656719
0
0
2,893
0.496652
5,369
0.921717
0
0
1,825
0.313305
d5e7507528f57c95fde0e247aa2531f1d8579112
15,277
py
Python
bugsnag/configuration.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
null
null
null
bugsnag/configuration.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
null
null
null
bugsnag/configuration.py
ForroKulcs/bugsnag-python
107c1add31a2202cc08ef944aa00ab96996b247a
[ "MIT" ]
null
null
null
import os import platform import socket import sysconfig from typing import List, Any, Tuple, Union import warnings from bugsnag.sessiontracker import SessionMiddleware from bugsnag.middleware import DefaultMiddleware, MiddlewareStack from bugsnag.utils import (fully_qualified_class_name, validate_str_setter, ...
31.695021
99
0.636185
14,287
0.935197
0
0
8,563
0.560516
0
0
4,459
0.291877
d5e7f6433ef2aafee2885217cc2a65201e60c31e
587
py
Python
secret_injector/secret.py
failk8s/failk8s-operator
457890a09a2551b9002eec73386b11a37469569f
[ "Apache-2.0" ]
null
null
null
secret_injector/secret.py
failk8s/failk8s-operator
457890a09a2551b9002eec73386b11a37469569f
[ "Apache-2.0" ]
null
null
null
secret_injector/secret.py
failk8s/failk8s-operator
457890a09a2551b9002eec73386b11a37469569f
[ "Apache-2.0" ]
null
null
null
import kopf from .functions import global_logger, reconcile_secret @kopf.on.event("", "v1", "secrets") def injector_secret_event(type, event, logger, **_): obj = event["object"] namespace = obj["metadata"]["namespace"] name = obj["metadata"]["name"] # If secret already exists, indicated by type bein...
30.894737
67
0.67632
0
0
0
0
516
0.879046
0
0
251
0.427598
d5e86c6edc684a9da3a98d63325e3f3c6ab77abb
25,390
py
Python
src/py/gee/utils.py
openforis/collectearthonline
1af48e373c393a1d8c48b17472f6aa6c41f65769
[ "MIT" ]
null
null
null
src/py/gee/utils.py
openforis/collectearthonline
1af48e373c393a1d8c48b17472f6aa6c41f65769
[ "MIT" ]
null
null
null
src/py/gee/utils.py
openforis/collectearthonline
1af48e373c393a1d8c48b17472f6aa6c41f65769
[ "MIT" ]
null
null
null
import datetime import os import ee import math import sys import json from ee.ee_exception import EEException from gee.inputs import getLandsat, getS1 ########## Helper functions ########## def initialize(ee_account='', ee_key_path=''): try: if ee_account and ee_key_path and os.path.exis...
38.704268
130
0.605593
0
0
0
0
0
0
0
0
4,657
0.183419
d5e8cedec4a5704ab1636f88d9b806e93b86ff8a
1,186
py
Python
userManagement/management/urls.py
shubhamguptaorg/user_managementl
ad98e0e4886d9b0547b05ae424c10d8f6268d470
[ "MIT" ]
null
null
null
userManagement/management/urls.py
shubhamguptaorg/user_managementl
ad98e0e4886d9b0547b05ae424c10d8f6268d470
[ "MIT" ]
4
2021-03-19T03:22:44.000Z
2022-03-11T23:58:10.000Z
userManagement/management/urls.py
shubhamguptaorg/user_managementl
ad98e0e4886d9b0547b05ae424c10d8f6268d470
[ "MIT" ]
null
null
null
from django.contrib import admin from django.urls import path,include from django.views.generic import TemplateView from .views import Index,SignUp,UserDashboard,AdminDashboard,logout,showAdminData,deleteuser,activeUser,deactiveUser,UserDetailEdit,uploadImage # from .views import Index,UserDashboard,SignUp,AdminDashboa...
49.416667
143
0.764755
0
0
0
0
0
0
0
0
502
0.423272
d5e96b9312873b5f396a18010caddd4d11bd8888
16,962
py
Python
sickbeard/lib/hachoir_parser/container/riff.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/lib/hachoir_parser/container/riff.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
sickbeard/lib/hachoir_parser/container/riff.py
Branlala/docker-sickbeardfr
3ac85092dc4cc8a4171fb3c83e9682162245e13e
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ RIFF parser, able to parse: * AVI video container * WAV audio container * CDA file Documents: - libavformat source code from ffmpeg library http://ffmpeg.mplayerhq.hu/ - Video for Windows Programmer's Guide http://www.opennet.ru/docs/formats/avi.txt - What is an animated curso...
38.55
103
0.614432
7,825
0.461217
9,419
0.555169
0
0
0
0
6,627
0.390605
d5eae8227c1380d3fce1267b4a1949ca968db82b
1,041
py
Python
Utils.py
MartinEngen/NaiveBayesianClassifier
a28813708a4d2adcdcd629e6d4d8b4f438a9c799
[ "MIT" ]
null
null
null
Utils.py
MartinEngen/NaiveBayesianClassifier
a28813708a4d2adcdcd629e6d4d8b4f438a9c799
[ "MIT" ]
null
null
null
Utils.py
MartinEngen/NaiveBayesianClassifier
a28813708a4d2adcdcd629e6d4d8b4f438a9c799
[ "MIT" ]
null
null
null
import os import re def get_subfolder_paths(folder_relative_path: str) -> list: """ Gets all subfolders of a given path :param folder_relative_path: Relative path of folder to find subfolders of :return: list of relative paths to any subfolders """ return [f.path for f in os.scandir(folder_rel...
30.617647
83
0.659942
0
0
0
0
0
0
0
0
258
0.247839
d5eb56662663b212c6709a52f8fbe61a75880b3c
800
py
Python
tools/ldbc_benchmark/neo4j/load_scripts/time_index.py
carlboudreau007/ecosys
d415143837a85ceb6213a0f0588128a86a4a3984
[ "Apache-2.0" ]
245
2018-04-07T00:14:56.000Z
2022-03-28T05:51:35.000Z
tools/ldbc_benchmark/neo4j/load_scripts/time_index.py
carlboudreau007/ecosys
d415143837a85ceb6213a0f0588128a86a4a3984
[ "Apache-2.0" ]
47
2018-04-02T16:41:22.000Z
2022-03-24T01:40:46.000Z
tools/ldbc_benchmark/neo4j/load_scripts/time_index.py
carlboudreau007/ecosys
d415143837a85ceb6213a0f0588128a86a4a3984
[ "Apache-2.0" ]
140
2018-08-09T15:54:47.000Z
2022-03-30T12:44:48.000Z
from datetime import datetime with open('/home/neo4j/neo4j-community-3.5.1/logs/debug.log', 'r') as log: begin = [] end = [] for line in log: if 'Index population started' in line: begin.append(line[:23]) elif 'Index creation finished' in line: end.append(line[:23]) if len(begin) == 0 or le...
34.782609
77
0.6175
0
0
0
0
0
0
0
0
245
0.30625
d5ec93a99d9c113668c2693c8d65499328f692cd
1,489
py
Python
zf-setup.py
Ziki2001/new-school-sdk
b606e666888e1c9813e2f1a6a64bbede3744026e
[ "MIT" ]
null
null
null
zf-setup.py
Ziki2001/new-school-sdk
b606e666888e1c9813e2f1a6a64bbede3744026e
[ "MIT" ]
null
null
null
zf-setup.py
Ziki2001/new-school-sdk
b606e666888e1c9813e2f1a6a64bbede3744026e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' :file: setup.py :author: -Farmer :url: https://blog.farmer233.top :date: 2021/09/20 11:11:54 ''' from os import path from setuptools import setup, find_packages basedir = path.abspath(path.dirname(__file__)) with open(path.join(basedir, "README.md"), encoding='utf-8') as f...
26.589286
70
0.620551
0
0
0
0
0
0
0
0
784
0.526528
d5ecb68fc8ba51b00e1a946759c8f1a77d41211f
1,635
py
Python
RunIt/airt/poker_cards.py
antx-code/funcode
a8a9b99274e169562771b488a3a9551277ef4b99
[ "MIT" ]
3
2021-09-27T08:07:07.000Z
2022-03-11T04:46:30.000Z
RunIt/airt/poker_cards.py
antx-code/funcode
a8a9b99274e169562771b488a3a9551277ef4b99
[ "MIT" ]
null
null
null
RunIt/airt/poker_cards.py
antx-code/funcode
a8a9b99274e169562771b488a3a9551277ef4b99
[ "MIT" ]
null
null
null
# Square 方片 => sq => RGB蓝色(Blue) # Plum 梅花 => pl => RGB绿色(Green) # Spade 黑桃 => sp => RGB黑色(Black) # Heart 红桃 => he => RGB红色(Red) init_poker = { 'local': { 'head': [-1, -1, -1], 'mid': [-1, -1, -1, -1, -1], 'tail': [-1, -1, -1, -1, -1], 'drop': [-1, -1...
14.469027
40
0.263609
0
0
0
0
0
0
0
0
529
0.317337
d5edbea518993ed30402ca6ed7151f569ce035ff
42
py
Python
main.py
reflective21/iportfolio
39db626a9754c1df44ac698f3d8988fdc4e7c6d5
[ "MIT" ]
null
null
null
main.py
reflective21/iportfolio
39db626a9754c1df44ac698f3d8988fdc4e7c6d5
[ "MIT" ]
null
null
null
main.py
reflective21/iportfolio
39db626a9754c1df44ac698f3d8988fdc4e7c6d5
[ "MIT" ]
null
null
null
name = "David Asiru Adetomiwa" print(name)
21
30
0.761905
0
0
0
0
0
0
0
0
23
0.547619
d5edd2119227be04c5621c163a6292b04c441de0
10,716
py
Python
tcex/services/api_service.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
null
null
null
tcex/services/api_service.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
null
null
null
tcex/services/api_service.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
null
null
null
"""TcEx Framework API Service module.""" # standard library import json import sys import threading import traceback from io import BytesIO from typing import Any from .common_service import CommonService class ApiService(CommonService): """TcEx Framework API Service module.""" def __init__(self, tcex: obje...
38.271429
100
0.535741
10,507
0.980496
0
0
257
0.023983
0
0
4,400
0.410601
d5ee43eaf3c3033dcd289654572ab9b3e0e7b99a
1,540
py
Python
mmpose/core/optimizer/builder.py
vsatyakumar/mmpose
2fffccb19dad3b59184b41be94653f75523b8585
[ "Apache-2.0" ]
1
2021-05-06T08:40:13.000Z
2021-05-06T08:40:13.000Z
mmpose/core/optimizer/builder.py
CV-IP/mmpose
3ef8e6dbbeb6262b7ed6c51faa74b83c23f4c6a1
[ "Apache-2.0" ]
null
null
null
mmpose/core/optimizer/builder.py
CV-IP/mmpose
3ef8e6dbbeb6262b7ed6c51faa74b83c23f4c6a1
[ "Apache-2.0" ]
null
null
null
from mmcv.runner import build_optimizer def build_optimizers(model, cfgs): """Build multiple optimizers from configs. If `cfgs` contains several dicts for optimizers, then a dict for each constructed optimizers will be returned. If `cfgs` only contains one optimizer config, the constructed optimizer ...
29.056604
78
0.635065
0
0
0
0
0
0
0
0
1,074
0.697403
d5eeb5cec1758e31f96e4ef111f8b5ec32383697
1,189
py
Python
register/views.py
angel-vazquez25/My-Backlog-Handler
60880cfc6bcc5a7fb2d5c752c11bdfe741f76531
[ "MIT" ]
3
2021-05-11T20:56:41.000Z
2022-03-15T01:26:13.000Z
register/views.py
angel-vazquez25/My-Backlog-Handler
60880cfc6bcc5a7fb2d5c752c11bdfe741f76531
[ "MIT" ]
null
null
null
register/views.py
angel-vazquez25/My-Backlog-Handler
60880cfc6bcc5a7fb2d5c752c11bdfe741f76531
[ "MIT" ]
1
2021-05-19T15:46:32.000Z
2021-05-19T15:46:32.000Z
import datetime from django.contrib.auth import logout from django.shortcuts import render, redirect from .forms import RegisterForm from django.http import HttpResponse from django.contrib.auth.forms import AuthenticationForm from django.conf import settings from django.contrib.auth import authenticate, login from dj...
33.971429
91
0.641716
0
0
0
0
0
0
0
0
177
0.148865
d5eefeb4c414f13bc2793346ebb57b29f5de79db
572
py
Python
forum/migrations/0001_initial.py
Aerodlyn/mu
2c3b95e5a83d0f651dd8ad287b471803e1fec3a1
[ "MIT" ]
1
2021-06-25T22:27:39.000Z
2021-06-25T22:27:39.000Z
forum/migrations/0001_initial.py
Aerodlyn/mu
2c3b95e5a83d0f651dd8ad287b471803e1fec3a1
[ "MIT" ]
1
2022-03-12T00:55:31.000Z
2022-03-12T00:55:31.000Z
forum/migrations/0001_initial.py
Aerodlyn/mu
2c3b95e5a83d0f651dd8ad287b471803e1fec3a1
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-26 01:27 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Community', fields=[ ('name', models.CharFi...
23.833333
93
0.552448
479
0.837413
0
0
0
0
0
0
92
0.160839
d5efef002e68abbec6057f8677301ab26bdc9a66
16,846
py
Python
custom_train.py
shirley-wu/text_to_table
44cb100b8ff2543b5b4efe1461502c00c34ef846
[ "MIT" ]
3
2022-03-17T05:55:23.000Z
2022-03-30T08:34:14.000Z
custom_train.py
shirley-wu/text_to_table
44cb100b8ff2543b5b4efe1461502c00c34ef846
[ "MIT" ]
1
2022-03-30T09:04:54.000Z
2022-03-30T09:04:54.000Z
custom_train.py
shirley-wu/text_to_table
44cb100b8ff2543b5b4efe1461502c00c34ef846
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 -u # 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. """ Train a new model on one or across multiple GPUs. """ import collections import logging import math import os im...
36.306034
114
0.633919
4,408
0.261664
0
0
2,531
0.150243
0
0
2,899
0.172088
d5eff585130a0defb51fd844556d3dea1143c55d
18,862
py
Python
src/ucar/unidata/idv/resources/python/griddiag.py
JessicaWiedemeier/IDV
e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64
[ "CNRI-Jython" ]
1
2021-06-09T11:24:48.000Z
2021-06-09T11:24:48.000Z
src/ucar/unidata/idv/resources/python/griddiag.py
JessicaWiedemeier/IDV
e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64
[ "CNRI-Jython" ]
null
null
null
src/ucar/unidata/idv/resources/python/griddiag.py
JessicaWiedemeier/IDV
e5f67c755cc95f8ad2123bdc45a91f0e5eca0d64
[ "CNRI-Jython" ]
null
null
null
""" This is the doc for the Grid Diagnostics module. These functions are based on the grid diagnostics from the GEneral Meteorological PAcKage (GEMPAK). Note that the names are case sensitive and some are named slightly different from GEMPAK functions to avoid conflicts with Jython built-ins (e.g. st...
26.75461
89
0.584721
0
0
0
0
0
0
0
0
12,392
0.656982
d5effb4acc4b4904be8e5099e47cd060230843fe
2,376
py
Python
app.py
DevilBit/Twitter-Bot
6f1b285aeb5faf37906d575775a927e69a5321d6
[ "MIT" ]
null
null
null
app.py
DevilBit/Twitter-Bot
6f1b285aeb5faf37906d575775a927e69a5321d6
[ "MIT" ]
null
null
null
app.py
DevilBit/Twitter-Bot
6f1b285aeb5faf37906d575775a927e69a5321d6
[ "MIT" ]
1
2021-03-08T20:05:23.000Z
2021-03-08T20:05:23.000Z
from selenium import webdriver #to get the browser from selenium.webdriver.common.keys import Keys #to send key to browser import getpass #to get password safely import time #to pause the program #a calss to store all twetter related objects and functions class twitter_bot: def __init__(self, username, pas...
34.941176
95
0.603114
1,842
0.775253
0
0
0
0
0
0
734
0.308923
d5f13f54fb0bf75e7d45a4d1bb426a38fb3fb255
3,403
py
Python
visualization.py
shyhyawJou/GradCAM-pytorch
8159f077552fc71055fe97c17bf8544d32cc8b0f
[ "Apache-2.0" ]
null
null
null
visualization.py
shyhyawJou/GradCAM-pytorch
8159f077552fc71055fe97c17bf8544d32cc8b0f
[ "Apache-2.0" ]
null
null
null
visualization.py
shyhyawJou/GradCAM-pytorch
8159f077552fc71055fe97c17bf8544d32cc8b0f
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from torch.nn import functional as F from PIL import Image import cv2 as cv from matplotlib import cm import numpy as np class GradCAM: """ #### Args: layer_name: module name (not child name), if None, will use the last layer befor...
34.72449
85
0.528945
3,210
0.943285
0
0
0
0
0
0
449
0.131942
d5f302c5d8d693812839ea69e155909e598db642
19,149
py
Python
frame_2D_alg/alternative versions/intra_blob_xy.py
Mechachleopteryx/CogAlg
723104e1f57010e52f1dc249ba53ba58db0a991b
[ "MIT" ]
null
null
null
frame_2D_alg/alternative versions/intra_blob_xy.py
Mechachleopteryx/CogAlg
723104e1f57010e52f1dc249ba53ba58db0a991b
[ "MIT" ]
null
null
null
frame_2D_alg/alternative versions/intra_blob_xy.py
Mechachleopteryx/CogAlg
723104e1f57010e52f1dc249ba53ba58db0a991b
[ "MIT" ]
null
null
null
''' 2D version of 1st-level algorithm is a combination of frame_blobs, intra_blob, and comp_P: optional raster-to-vector conversion. intra_blob recursively evaluates each blob for two forks of extended internal cross-comparison and sub-clustering: der+: incremental derivation cross-comp in high-variati...
44.740654
144
0.576584
784
0.040942
0
0
0
0
0
0
7,051
0.368218
d5f33371ef4b57ee6f5f8e58e37840bbabd0819e
10,275
py
Python
examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
9,136
2015-01-02T00:41:45.000Z
2022-03-31T15:30:02.000Z
examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,424
2015-01-05T08:55:58.000Z
2022-03-30T19:34:55.000Z
examples/pybullet/gym/pybullet_envs/minitaur/envs/env_randomizers/minitaur_terrain_randomizer.py
felipeek/bullet3
6a59241074720e9df119f2f86bc01765917feb1e
[ "Zlib" ]
2,921
2015-01-02T10:19:30.000Z
2022-03-31T02:48:42.000Z
"""Generates a random terrain at Minitaur gym environment reset.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) parentdir = os.path.dirname(os.path...
35.309278
98
0.706667
9,480
0.922628
0
0
0
0
0
0
4,851
0.472117
d5f35dd267171d89db5d5ed7c57d46dbcf723ae2
2,502
py
Python
polecat/db/sql/expression/values.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
4
2019-08-10T12:56:12.000Z
2020-01-21T09:51:20.000Z
polecat/db/sql/expression/values.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
71
2019-04-09T05:39:21.000Z
2020-05-16T23:09:24.000Z
polecat/db/sql/expression/values.py
furious-luke/polecat
7be5110f76dc42b15c922c1bb7d49220e916246d
[ "MIT" ]
null
null
null
from functools import partial from polecat.db.query import query as query_module from psycopg2.sql import SQL, Placeholder from .expression import Expression class Values(Expression): def __init__(self, values, relation=None): self.values = values self.relation = relation self.keyword = ...
34.75
79
0.61311
2,339
0.934852
0
0
0
0
0
0
33
0.013189
d5f3f84aa262b2485923b0060a6795013deae56c
1,292
py
Python
python/day3p1.py
swilcox/2019adventofcode
b67261aae74805ba8c2f4b72f09dd79277224ebb
[ "MIT" ]
1
2020-01-18T18:24:18.000Z
2020-01-18T18:24:18.000Z
python/day3p1.py
swilcox/2019adventofcode
b67261aae74805ba8c2f4b72f09dd79277224ebb
[ "MIT" ]
null
null
null
python/day3p1.py
swilcox/2019adventofcode
b67261aae74805ba8c2f4b72f09dd79277224ebb
[ "MIT" ]
null
null
null
# 2019 advent day 3 MOVES = { 'R': (lambda x: (x[0], x[1] + 1)), 'L': (lambda x: (x[0], x[1] - 1)), 'U': (lambda x: (x[0] + 1, x[1])), 'D': (lambda x: (x[0] - 1, x[1])), } def build_route(directions: list) -> list: current_location = (0, 0) route = [] for d in directions: directio...
26.367347
79
0.600619
0
0
0
0
0
0
0
0
310
0.239938
d5f42d830df55813fe6234674e4d597dccbd7f59
1,054
py
Python
examples/demo/python/catalog.py
JavDomGom/mist
83ae9f67df61ff2387a7d424cff0f8591a6a645f
[ "Apache-2.0" ]
1
2021-04-23T17:13:31.000Z
2021-04-23T17:13:31.000Z
examples/demo/python/catalog.py
JavDomGom/mist
83ae9f67df61ff2387a7d424cff0f8591a6a645f
[ "Apache-2.0" ]
null
null
null
examples/demo/python/catalog.py
JavDomGom/mist
83ae9f67df61ff2387a7d424cff0f8591a6a645f
[ "Apache-2.0" ]
null
null
null
import asyncio async def searchDomains(domain, q): domains = [] proc = await asyncio.create_subprocess_shell(f"dnsrecon -d {domain} -t crt", stdout=asyncio.subprocess.PIPE) line = True while line: line = (await proc.stdout.readline()).decode('utf-8') fields = line.split() if len...
36.344828
112
0.588235
0
0
0
0
0
0
1,035
0.981973
122
0.11575
d5f5577604a264eefbdbdf102a315e607e68f2da
15,156
py
Python
tests/api/v3_1_0/test_security_groups_acls.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
36
2021-05-18T16:24:19.000Z
2022-03-05T13:44:41.000Z
tests/api/v3_1_0/test_security_groups_acls.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
15
2021-06-08T19:03:37.000Z
2022-02-25T14:47:33.000Z
tests/api/v3_1_0/test_security_groups_acls.py
CiscoISE/ciscoisesdk
860b0fc7cc15d0c2a39c64608195a7ab3d5f4885
[ "MIT" ]
6
2021-06-10T09:32:01.000Z
2022-01-12T08:34:39.000Z
# -*- coding: utf-8 -*- """IdentityServicesEngineAPI security_groups_acls API fixtures and tests. Copyright (c) 2021 Cisco and/or its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software w...
31.509356
109
0.720375
0
0
0
0
6,552
0.432304
0
0
2,163
0.142716
d5f5d714834d96889f873a0d7ec900fdf1926bca
21,522
py
Python
geomstats/geometry/riemannian_metric.py
stefanheyder/geomstats
c4e6d959db7b1bcc99b00b535b8aa5d832b62e28
[ "MIT" ]
null
null
null
geomstats/geometry/riemannian_metric.py
stefanheyder/geomstats
c4e6d959db7b1bcc99b00b535b8aa5d832b62e28
[ "MIT" ]
null
null
null
geomstats/geometry/riemannian_metric.py
stefanheyder/geomstats
c4e6d959db7b1bcc99b00b535b8aa5d832b62e28
[ "MIT" ]
null
null
null
"""Riemannian and pseudo-Riemannian metrics.""" import math import warnings import autograd import geomstats.backend as gs from geomstats.geometry.connection import Connection EPSILON = 1e-4 N_CENTERS = 10 TOLERANCE = 1e-5 N_REPETITIONS = 20 N_MAX_ITERATIONS = 50000 N_STEPS = 10 def loss(y_pred, y_true, metric):...
33.315789
79
0.557987
20,404
0.948053
0
0
0
0
0
0
7,155
0.332451
d5f67147c5059c64bf2090a7f0dd93d9aec0092b
9,842
py
Python
app/main/pages/instrument/hrs/red/order/plots.py
hettlage/salt-data-quality-site
da9ff4a51e8affa47e0bc1c0383c7fdeaac2155e
[ "MIT" ]
null
null
null
app/main/pages/instrument/hrs/red/order/plots.py
hettlage/salt-data-quality-site
da9ff4a51e8affa47e0bc1c0383c7fdeaac2155e
[ "MIT" ]
null
null
null
app/main/pages/instrument/hrs/red/order/plots.py
hettlage/salt-data-quality-site
da9ff4a51e8affa47e0bc1c0383c7fdeaac2155e
[ "MIT" ]
null
null
null
import pandas as pd from bokeh.models import HoverTool from bokeh.models.formatters import DatetimeTickFormatter from bokeh.palettes import Plasma256 from bokeh.plotting import figure, ColumnDataSource from app import db from app.decorators import data_quality # creates your plot date_formatter = DatetimeTickFormatt...
35.530686
109
0.517984
0
0
0
0
8,103
0.823308
0
0
5,782
0.587482
d5f72b6bb8de932265e3494ed6520e23b33d2b72
705
py
Python
p6e8.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
p6e8.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
p6e8.py
yannickbf-prog/python
da4bd2c8668966359b829a8ac2a896afeca2b150
[ "MIT" ]
null
null
null
#Yannick p6e8 Escribe un programa que te pida primero un número y luego te pida números hasta que la suma de los números introducidos coincida con el número inicial. El programa termina escribiendo la lista de números. limite = int(input("Escribe limite:")) valores = int(input("Escribe un valor:")) listavalore...
30.652174
219
0.704965
0
0
0
0
0
0
0
0
397
0.559155
d5f73b66aea43800edd9e2977d37ade872174872
1,574
py
Python
.venv/lib/python3.8/site-packages/cleo/application.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
1
2020-08-07T16:09:57.000Z
2020-08-07T16:09:57.000Z
.venv/lib/python3.8/site-packages/cleo/application.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
null
null
null
.venv/lib/python3.8/site-packages/cleo/application.py
RivtLib/replit01
ce1ae18b446a9c844f40e88a51c71fbc45ab3ad7
[ "MIT" ]
null
null
null
from typing import Optional from typing import Tuple from clikit.console_application import ConsoleApplication from .commands import BaseCommand from .commands.completions_command import CompletionsCommand from .config import ApplicationConfig class Application(ConsoleApplication, object): """ A...
29.148148
77
0.623888
1,314
0.834816
0
0
0
0
0
0
475
0.301779