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
393f1dae7f66e2378ca21c870e8999d47cde8d9f
3,868
py
Python
Sem-10-T2-Q5.py
daianasousa/Atividade-Remota-10
824ee93de32d7e93d836b1ac3b5b78eac8a2eea7
[ "MIT" ]
null
null
null
Sem-10-T2-Q5.py
daianasousa/Atividade-Remota-10
824ee93de32d7e93d836b1ac3b5b78eac8a2eea7
[ "MIT" ]
null
null
null
Sem-10-T2-Q5.py
daianasousa/Atividade-Remota-10
824ee93de32d7e93d836b1ac3b5b78eac8a2eea7
[ "MIT" ]
null
null
null
agenda = { 'João': '86988102987', } # (C)RUD def criar(): # ler o nome nome = input('Nome: ') # ler o telefone e adiciona em uma lista telefonica telefone = [input("Número de telefone: ")] # empacota nome e telefone com uma variável lista = (nome, telefone) # adiciona o aluno ao dicioá...
29.082707
83
0.572389
0
0
0
0
0
0
0
0
1,963
0.502946
3942c26296f00630ee50c69c002e490850562b67
14,568
py
Python
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
1
2020-04-02T11:51:20.000Z
2020-04-02T11:51:20.000Z
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
src/the_tale/the_tale/game/actions/tests/test_meta_action_arena_pvp_1x1.py
devapromix/the-tale
2a10efd3270734f8cf482b4cfbc5353ef8f0494c
[ "BSD-3-Clause" ]
null
null
null
import smart_imports smart_imports.all() class ArenaPvP1x1Test(utils_testcase.TestCase, pvp_helpers.PvPTestsMixin): def setUp(self): super(ArenaPvP1x1Test, self).setUp() game_logic.create_test_map() self.account_1 = self.accounts_factory.create_account() self.account_2 = self....
45.102167
162
0.737095
14,522
0.996842
0
0
978
0.067133
0
0
707
0.048531
3945918df30a9ed54072945849738662d8767f6a
461
py
Python
sources/t08/t08ej08.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t08/t08ej08.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
sources/t08/t08ej08.py
workready/pythonbasic
59bd82caf99244f5e711124e1f6f4dec8de22141
[ "MIT" ]
null
null
null
from functools import wraps def debug(func): msg = func.__qualname__ @wraps(func) def wrapper(*args, **kwargs): print(msg) return func(*args, **kwargs) return wrapper @debug def add(x, y): """ Función que suma dos números """ return x + y @debug def sub(x, y): r...
14.40625
36
0.566161
0
0
0
0
309
0.667387
0
0
50
0.107991
3945df9845ecf9ada82d2ae164bf467f497ebb1b
1,918
py
Python
administration/views.py
mwinamijr/school-management-system-backend
7ec0ab674f524964214fc0abc39cef752eff4f9b
[ "MIT" ]
null
null
null
administration/views.py
mwinamijr/school-management-system-backend
7ec0ab674f524964214fc0abc39cef752eff4f9b
[ "MIT" ]
4
2021-06-05T00:11:13.000Z
2022-01-13T03:47:17.000Z
administration/views.py
mwinamijr/school-management-system-backend
7ec0ab674f524964214fc0abc39cef752eff4f9b
[ "MIT" ]
1
2021-04-20T18:05:56.000Z
2021-04-20T18:05:56.000Z
from rest_framework import generics, views, viewsets from rest_framework.decorators import api_view from rest_framework.parsers import FileUploadParser from rest_framework.response import Response from rest_framework import status from django.http import Http404 from openpyxl import load_workbook, Workbook from openpyx...
33.068966
72
0.792492
1,431
0.74609
0
0
0
0
0
0
69
0.035975
39464a019cb985cdafeee6f4d457d7fc18ed469a
377
py
Python
DjangoAPI/MyAPI/urls.py
ashishmenkudale/django_poc
16f30a10f497f653062ec923d3510f7530ecbedd
[ "MIT" ]
null
null
null
DjangoAPI/MyAPI/urls.py
ashishmenkudale/django_poc
16f30a10f497f653062ec923d3510f7530ecbedd
[ "MIT" ]
null
null
null
DjangoAPI/MyAPI/urls.py
ashishmenkudale/django_poc
16f30a10f497f653062ec923d3510f7530ecbedd
[ "MIT" ]
null
null
null
from django.urls import path, include from . import views from rest_framework import routers router = routers.DefaultRouter() router.register('MyAPI', views.ApprovalsView) urlpatterns = [ path('api/', include(router.urls)), path('status/', views.approvereject), path('form/', views.cxcontact, name='cxform')...
31.416667
53
0.71618
0
0
0
0
0
0
0
0
54
0.143236
39497691ceabd3784d606785b4a899f237208ed4
38,631
py
Python
arelle/plugin/sphinx/FormulaGenerator.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
292
2015-01-27T03:31:51.000Z
2022-03-26T07:00:05.000Z
arelle/plugin/sphinx/FormulaGenerator.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
94
2015-04-18T23:03:00.000Z
2022-03-28T17:24:55.000Z
arelle/plugin/sphinx/FormulaGenerator.py
DataFinnovation/Arelle
d4bf45f56fc9249f75ab22e6217dbe55f0510841
[ "Apache-2.0" ]
200
2015-01-13T03:55:47.000Z
2022-03-29T12:38:56.000Z
''' formulaGenerator generates XBRL formula linkbases for a subset of the Sphinx language. (c) Copyright 2013 Mark V Systems Limited, California US, All rights reserved. Mark V copyright applies to this software, which is licensed according to the terms of Arelle(r). Sphinx is a Rules Language for XBRL described by...
46.543373
125
0.551422
177
0.004582
0
0
0
0
0
0
16,228
0.420077
3949804a27d13ac40bfeeab53fe441faa29640de
2,900
py
Python
backend/core/management/commands/load_fixtures.py
Swapnil070797/falco
2576bee2e385aa62cf93ab5f27234bb51313b416
[ "MIT" ]
796
2019-10-19T19:58:12.000Z
2022-03-22T14:02:37.000Z
backend/core/management/commands/load_fixtures.py
Swapnil070797/falco
2576bee2e385aa62cf93ab5f27234bb51313b416
[ "MIT" ]
224
2019-10-19T17:45:12.000Z
2022-03-24T20:46:29.000Z
backend/core/management/commands/load_fixtures.py
Swapnil070797/falco
2576bee2e385aa62cf93ab5f27234bb51313b416
[ "MIT" ]
33
2019-10-22T21:17:09.000Z
2021-12-23T06:08:26.000Z
from datetime import timedelta from django.core.management.base import BaseCommand from django.utils import timezone from audits.factories import ( AuditFactory, AuditResultsFactory, AuditStatusHistoryFactory, ) from audits.models import Audit, AuditResults from core.factories import AdminFactory, UserFact...
42.647059
84
0.704483
2,388
0.823448
0
0
0
0
0
0
215
0.074138
3949fe35326199497ec243fad616b2c474910cea
409
py
Python
palindrome_program.py
shubham13202/Palindrome_number
af01bb105ea8bd1cef0311f084ba1ad409d0cf59
[ "MIT" ]
null
null
null
palindrome_program.py
shubham13202/Palindrome_number
af01bb105ea8bd1cef0311f084ba1ad409d0cf59
[ "MIT" ]
null
null
null
palindrome_program.py
shubham13202/Palindrome_number
af01bb105ea8bd1cef0311f084ba1ad409d0cf59
[ "MIT" ]
null
null
null
"""n = int(input("Enter ThE number :")) temp = n new = 0 while temp > 0: d = temp % 10 new = new * 10 + d temp = temp //10 if n == new: print("Number is palindrome") else: print("Number is not palindrome") #print(palindrome(101)) """ var1=str(input("Enter the sequence")) x=var1[::-1] if(var1==x):...
17.782609
42
0.599022
0
0
0
0
0
0
0
0
334
0.816626
394a8e23225b11ac893797de835089f91e2b99ae
368
py
Python
euler273/273.py
evilmucedin/project-euler
08ed51a5ff0d05f60271d99d35b3e601bcddf85d
[ "MIT" ]
3
2020-03-23T04:31:14.000Z
2021-01-17T09:03:09.000Z
euler273/273.py
evilmucedin/project-euler
08ed51a5ff0d05f60271d99d35b3e601bcddf85d
[ "MIT" ]
null
null
null
euler273/273.py
evilmucedin/project-euler
08ed51a5ff0d05f60271d99d35b3e601bcddf85d
[ "MIT" ]
3
2018-03-28T20:53:27.000Z
2020-04-27T07:03:02.000Z
#!/usr/bin/env python import math erato = [True]*150 primes = [] for i in xrange(2, 150): if erato[i]: if i % 4 == 1: primes.append(i) j = i + i while j < 150: erato[j] = False j += i print primes print len(primes) print 2**len(primes) mul = 1 for p in p...
16.727273
28
0.516304
0
0
0
0
0
0
0
0
21
0.057065
394ab9998819718496fb6f7b44cc4fce8aaac5ee
2,869
py
Python
pysnmp-with-texts/TOS-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/TOS-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/TOS-SMI.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module TOS-SMI (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TOS-SMI # Produced by pysmi-0.3.4 at Wed May 1 15:24:00 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)...
102.464286
505
0.758801
0
0
0
0
0
0
0
0
1,374
0.478913
394ae53df762a37668f92d5a8c275bd8a607f470
7,493
py
Python
test/units/plugins/inventory/test_inventory.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
test/units/plugins/inventory/test_inventory.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
test/units/plugins/inventory/test_inventory.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# Copyright 2015 Abhijit Menon-Sen <ams@2ndQuadrant.com> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any ...
36.730392
113
0.577472
6,240
0.832777
0
0
1,220
0.162819
0
0
2,538
0.338716
394b500f95084d103ffa03aaf2953feafa9712f2
2,354
py
Python
translation.py
drmhdh/dtpdftools
a45876cc95dff4f0742ea47a4a940ac770955139
[ "Apache-2.0" ]
null
null
null
translation.py
drmhdh/dtpdftools
a45876cc95dff4f0742ea47a4a940ac770955139
[ "Apache-2.0" ]
null
null
null
translation.py
drmhdh/dtpdftools
a45876cc95dff4f0742ea47a4a940ac770955139
[ "Apache-2.0" ]
null
null
null
class Translation(object): START_TEXT = """Hello <i><b>{}</b></i>, I Can rename ✍ with custom thumbnail and upload as video/file Type /help for more details.""" DOWNLOAD_START_VIDEO = "Downloading Video to my server.....📥" DOWNLOAD_START = "Downloading File to my server.....📥" UPLOAD_START_VIDEO = "Up...
69.235294
200
0.723025
2,421
0.999587
0
0
0
0
0
0
1,771
0.731214
394c0a95f80ca6b5a6459e883027f6e8484a36c9
116
py
Python
djmoney/models/__init__.py
toudi/django-money
44878b26f05351a55ec97d2b437de48875ea6cee
[ "BSD-3-Clause" ]
null
null
null
djmoney/models/__init__.py
toudi/django-money
44878b26f05351a55ec97d2b437de48875ea6cee
[ "BSD-3-Clause" ]
null
null
null
djmoney/models/__init__.py
toudi/django-money
44878b26f05351a55ec97d2b437de48875ea6cee
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8 from django.core import serializers serializers.register_serializer('json', 'djmoney.serializers')
19.333333
62
0.801724
0
0
0
0
0
0
0
0
41
0.353448
394deac2c0648e3ff3bc3f9137803ed2f4273593
409
py
Python
c12/p349_stdout.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
c12/p349_stdout.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
c12/p349_stdout.py
HiAwesome/dive-into-python3-practice
e57504cb0683ebca9c80b20ff0cb3878bdcc3f87
[ "Apache-2.0" ]
null
null
null
import sys class RedirectStdoutTo: def __init__(self, out_new): self.out_new = out_new def __enter__(self): self.out_old = sys.stdout sys.stdout = self.out_new def __exit__(self, *args): sys.stdout = self.out_old print('A') with open('../resource/txt/output/out.log', mo...
20.45
108
0.638142
247
0.603912
0
0
0
0
0
0
51
0.124694
394e6287c45dd4b169b78862df54b129511b5346
1,495
py
Python
test_pyparsing_3_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
test_pyparsing_3_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
test_pyparsing_3_1.py
luluci/gui_env
9c2ffe331c2dc8a7e128474ce9590498082de569
[ "MIT" ]
null
null
null
import pyparsing as pp def act_comment(token): print("comment: " + str(token)) def act_keyword(token): print("keyword: " + str(token)) def act_sc(token): print("semicolon: " + str(token)) def act_parser_start(token): print("parser_start: " + str(token)) def act_parser_end(token): print("parser_end: " + s...
19.166667
69
0.646154
0
0
0
0
0
0
0
0
710
0.474916
394ecf34ca7686c2864f4d097b99dc46fa95d1e2
1,537
py
Python
tests/todo/dot.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
304
2021-11-05T13:13:08.000Z
2022-03-27T17:53:37.000Z
tests/todo/dot.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
62
2021-11-02T15:59:16.000Z
2022-03-31T18:23:15.000Z
tests/todo/dot.py
bryevdv/cunumeric
7965ceb96d3252371c22cf32d38ac91c4db77a38
[ "Apache-2.0" ]
26
2021-11-09T09:01:04.000Z
2022-02-25T15:57:22.000Z
# Copyright 2021-2022 NVIDIA Corporation # # 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 ...
27.945455
77
0.62069
0
0
0
0
0
0
0
0
942
0.612882
39512081e501bea95e39139b8a09e836d559e349
61
py
Python
ninja_schema/types.py
eadwinCode/django-schema
94280270aa4f9c8ed08808c938283a4e217d17f0
[ "MIT" ]
9
2021-10-31T22:03:00.000Z
2022-03-27T19:40:40.000Z
ninja_schema/types.py
eadwinCode/django-schema
94280270aa4f9c8ed08808c938283a4e217d17f0
[ "MIT" ]
null
null
null
ninja_schema/types.py
eadwinCode/django-schema
94280270aa4f9c8ed08808c938283a4e217d17f0
[ "MIT" ]
null
null
null
from typing import Any, Dict DictStrAny = Dict[str, Any]
15.25
29
0.704918
0
0
0
0
0
0
0
0
0
0
39514311e1de0c6b9b8fe2b0f0b8804f4d55eecd
1,005
py
Python
mocasin/maps/platform/__init__.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
1
2022-03-13T19:27:50.000Z
2022-03-13T19:27:50.000Z
mocasin/maps/platform/__init__.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
null
null
null
mocasin/maps/platform/__init__.py
tud-ccc/mocasin
6cf0a169e24d65d0fc859398f181dd500f928340
[ "0BSD" ]
null
null
null
# Copyright (C) 2017 TU Dresden # Licensed under the ISC license (see LICENSE.txt) # # Authors: Christian Menard import logging from hydra.utils import to_absolute_path from .convert import convert from .parse import parse from mocasin.common.platform import Platform log = logging.getLogger(__name__) class MapsP...
28.714286
66
0.664677
695
0.691542
0
0
0
0
0
0
266
0.264677
3952128fa2c00ebcf9dc48dfa06c1ee5269ac448
866
py
Python
Backend/apps/trade/migrations/0002_auto_20190224_0327.py
BeanWei/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
84
2019-02-22T08:19:52.000Z
2022-02-08T03:36:32.000Z
Backend/apps/trade/migrations/0002_auto_20190224_0327.py
GinCho-Max/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
16
2019-09-06T10:25:40.000Z
2022-02-12T06:37:41.000Z
Backend/apps/trade/migrations/0002_auto_20190224_0327.py
GinCho-Max/Dailyfresh-B2C
7c94e9a4428e5116c91bf27cf696e6eee430748a
[ "Apache-2.0" ]
61
2019-03-20T02:29:23.000Z
2021-07-09T08:14:25.000Z
# Generated by Django 2.0.2 on 2019-02-24 03:27 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('trade', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='shoppingcart', ...
29.862069
121
0.613164
760
0.857788
0
0
0
0
0
0
227
0.256208
3952324dfb1c3711021424481c4d89c71b0f8d7a
2,020
py
Python
autoelective/captcha/classifier.py
12f23eddde/PKUAutoElective
1a7094ea14a90fb23a3bd33d013bf5a46127394f
[ "MIT" ]
24
2019-09-13T11:58:32.000Z
2022-02-22T02:38:25.000Z
autoelective/captcha/classifier.py
yzy-pku/PKUAutoElective
309f8472fc5ba751d46373ea51fa72e1aa3148b0
[ "MIT" ]
5
2020-09-21T16:23:20.000Z
2022-01-13T01:37:13.000Z
autoelective/captcha/classifier.py
yzy-pku/PKUAutoElective
309f8472fc5ba751d46373ea51fa72e1aa3148b0
[ "MIT" ]
5
2019-09-20T15:36:54.000Z
2021-09-10T14:32:19.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # filename: classifier.py # modified: 2019-09-08 __all__ = ["KNN","SVM","RandomForest"] import os import re from sklearn.neighbors.classification import KNeighborsClassifier from sklearn.svm import SVC from sklearn.ensemble.forest import RandomForestClassifier from sklea...
24.047619
80
0.630198
851
0.421287
0
0
0
0
0
0
336
0.166337
395356aa8466e0891ace69c5be1b3f0fde3e4501
1,077
py
Python
test/perf/perf.py
wkearn/Kalman.jl
a080e4e18b2f27af60fa3142be843d09541cbf7d
[ "MIT" ]
44
2015-02-11T14:27:24.000Z
2021-07-30T20:51:38.000Z
test/perf/perf.py
wkearn/Kalman.jl
a080e4e18b2f27af60fa3142be843d09541cbf7d
[ "MIT" ]
2
2015-10-02T11:47:41.000Z
2018-02-02T09:45:46.000Z
test/perf/perf.py
wkearn/Kalman.jl
a080e4e18b2f27af60fa3142be843d09541cbf7d
[ "MIT" ]
21
2015-03-18T21:46:30.000Z
2021-07-30T20:51:42.000Z
import numpy as np import sys import timeit from pykalman import KalmanFilter N = int(sys.argv[1]) random_state = np.random.RandomState(0) transition_matrix = [[1, 0.01], [-0.01, 1]] transition_offset = [0.0,0.0] observation_matrix = [1.0,0] observation_offset = [0.0] transition_covariance = 1e-10*np.eye(2) observatio...
35.9
128
0.785515
0
0
0
0
0
0
0
0
93
0.086351
1a2f0cb42c5e281612c2dd86f9dc9461dd6f0c31
46
py
Python
galaxy/__init__.py
jmchilton/lwr
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
[ "Apache-2.0" ]
1
2016-08-17T06:36:03.000Z
2016-08-17T06:36:03.000Z
galaxy/__init__.py
jmchilton/lwr
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
[ "Apache-2.0" ]
null
null
null
galaxy/__init__.py
jmchilton/lwr
cd1e51b0b9b1a9fa01b92b0026e7b535d954e03b
[ "Apache-2.0" ]
null
null
null
""" Compat. layer between LWR and Galaxy. """
11.5
37
0.652174
0
0
0
0
0
0
0
0
45
0.978261
1a31cbe01406213bfcaaf90c2882397642fc68d4
3,419
py
Python
test/test_system.py
Enteee/pdml2flow
2e5da6f03bc799f0e8ef77dd987031b969d4a5df
[ "Apache-2.0" ]
12
2016-04-01T10:59:14.000Z
2022-01-27T04:05:43.000Z
test/test_system.py
Enteee/pdml2flow
2e5da6f03bc799f0e8ef77dd987031b969d4a5df
[ "Apache-2.0" ]
16
2016-03-18T10:44:00.000Z
2019-08-12T05:52:24.000Z
test/test_system.py
Enteee/pdml2flow
2e5da6f03bc799f0e8ef77dd987031b969d4a5df
[ "Apache-2.0" ]
2
2016-09-08T11:49:39.000Z
2020-09-09T04:39:15.000Z
# vim: set fenc=utf8 ts=4 sw=4 et : import os import io import json import unittest from shlex import split from .testcase import TestCase from pdml2flow.conf import Conf import pdml2flow TEST_DIR_PDML2FLOW="test/pdml2flow_tests/" TEST_DIR_PDML2FRAME="test/pdml2frame_tests/" class TestSystem(TestCase): def rea...
28.491667
71
0.488154
349
0.102077
0
0
0
0
0
0
412
0.120503
1a32119c70c0d1383a924bfd29be201dc7093bcb
3,258
py
Python
subprojects/sno-snapshot/src/common.py
azh412/ci-artifacts
cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0
[ "Apache-2.0" ]
null
null
null
subprojects/sno-snapshot/src/common.py
azh412/ci-artifacts
cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0
[ "Apache-2.0" ]
null
null
null
subprojects/sno-snapshot/src/common.py
azh412/ci-artifacts
cd8d39f6fcc8f12d76afe1bbe242d59857e2b1a0
[ "Apache-2.0" ]
null
null
null
import time, datetime print("Importing OpenShift/Kubernetes packages ...") import kubernetes import ocp_resources import openshift from ocp_resources.node import Node from ocp_resources.machine import Machine from ocp_resources.node import Node from openshift.dynamic import DynamicClient try: client_k8s = Dynam...
28.330435
89
0.664825
0
0
0
0
0
0
0
0
747
0.229282
1a3258cf7badd255a9307d5f3956237fbeb82bff
446
py
Python
artists/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
artists/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
artists/urls.py
flannerykj/urbanapplause
c9b6c0f9a2f65b869fe1e6fa921972e7236e4fe5
[ "MIT" ]
null
null
null
from django.conf.urls import url from . import views app_name = 'artists' urlpatterns = [ url(r'^$', views.IndexView.as_view(), name='index'), url(r'^(?P<pk>[0-9]+)/$', views.DetailView.as_view(), name='detail'), url(r'^edit/(?P<pk>\d+)/$', views.UpdateArtist.as_view(), name='edit'), url(r'^create/$',...
37.166667
77
0.625561
0
0
0
0
0
0
0
0
128
0.286996
1a32a66412ac752dfef1346767dada6ace8dbe66
280
py
Python
tests/send_update.py
ZenLighting/ZenLightSimulator
974e2806106e534aede35b5a9efd8667c55a6a25
[ "MIT" ]
null
null
null
tests/send_update.py
ZenLighting/ZenLightSimulator
974e2806106e534aede35b5a9efd8667c55a6a25
[ "MIT" ]
null
null
null
tests/send_update.py
ZenLighting/ZenLightSimulator
974e2806106e534aede35b5a9efd8667c55a6a25
[ "MIT" ]
null
null
null
import socket import struct send_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, 0) data_bytes = struct.pack("!BBBB", 0, 0, 255, 255) header = struct.pack("!BIIH", 0, 0, 0, len(data_bytes)) message = header + data_bytes send_sock.sendto(message, ("localhost", 42000))
23.333333
63
0.721429
0
0
0
0
0
0
0
0
25
0.089286
1a33590146501a5c20b0ff147ebe8e77a6b706a7
26,634
py
Python
editor/widgets/toolbox_EPICS.py
despiegk/remi
cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4
[ "Apache-2.0" ]
null
null
null
editor/widgets/toolbox_EPICS.py
despiegk/remi
cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4
[ "Apache-2.0" ]
6
2020-04-05T04:58:15.000Z
2020-04-05T05:39:37.000Z
editor/widgets/toolbox_EPICS.py
despiegk/remi
cf41c44c32f4efbdc6d34e6df318fc0fc5ebefe4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import remi import remi.gui as gui from remi.gui import * from threading import Timer import traceback import time import math import epics #from epics import caget, caput, cainfo style_inheritance_dict = {'opacity':'inherit', 'overflow':'inherit', 'background-color':'inherit', 'background-ima...
69.722513
3,039
0.756176
25,554
0.95945
0
0
3,519
0.132124
0
0
13,978
0.524818
1a3459ee78d5b57a83665367b43a2ebae445c84e
3,001
py
Python
app/mover.py
uk-gov-mirror/ONSdigital.blaise-nisra-case-mover
6bc3af5eec43ee543bcfed428779ca57f903007f
[ "MIT" ]
null
null
null
app/mover.py
uk-gov-mirror/ONSdigital.blaise-nisra-case-mover
6bc3af5eec43ee543bcfed428779ca57f903007f
[ "MIT" ]
null
null
null
app/mover.py
uk-gov-mirror/ONSdigital.blaise-nisra-case-mover
6bc3af5eec43ee543bcfed428779ca57f903007f
[ "MIT" ]
null
null
null
from typing import Dict import pysftp from flask import Blueprint, current_app from paramiko import SSHException from models import Instrument from pkg.case_mover import CaseMover from pkg.google_storage import GoogleStorage from pkg.sftp import SFTP from util.service_logging import log mover = Blueprint("batch", __...
31.925532
83
0.71876
0
0
0
0
1,604
0.534489
0
0
585
0.194935
1a35308e3e1033d1025ac934d26add8ef584b069
3,156
py
Python
pytjson/_tjson/datatype.py
anupsv/tjson
672dcb6a5161260620df880f2828ae3c445fc6b8
[ "MIT" ]
null
null
null
pytjson/_tjson/datatype.py
anupsv/tjson
672dcb6a5161260620df880f2828ae3c445fc6b8
[ "MIT" ]
3
2017-11-17T12:38:57.000Z
2021-11-15T17:46:44.000Z
pytjson/_tjson/datatype.py
anupsv/pytjson
672dcb6a5161260620df880f2828ae3c445fc6b8
[ "MIT" ]
1
2016-11-15T08:19:17.000Z
2016-11-15T08:19:17.000Z
import re, datetime from Helpers.freezable_list import FrozenDict from pytjson.Exceptions import ParseError class Datatype: # Initializer, will be overriden below TAGS = {} isScalar = re.compile(r'^[a-z0-9]*$') isBin = re.compile('^[01]{8}$') isOnlyNumbers = re.compile('^\-?(0|[1-9][0-9]*)$') i...
26.745763
88
0.596641
2,733
0.86597
0
0
1,766
0.559569
0
0
341
0.108048
1a3613dff1cdfc6a420222a030f7083c34976694
864
py
Python
Code Challenges/python/checkPalindrome_codesignal.py
lineality/Coding-Challenges-Study-Practice
76d868b11b42b3bd3634f9a62abecb2e1eaac76d
[ "MIT" ]
null
null
null
Code Challenges/python/checkPalindrome_codesignal.py
lineality/Coding-Challenges-Study-Practice
76d868b11b42b3bd3634f9a62abecb2e1eaac76d
[ "MIT" ]
1
2021-06-24T17:39:48.000Z
2021-06-24T17:39:48.000Z
Code Challenges/python/checkPalindrome_codesignal.py
lineality/Coding-Study
76d868b11b42b3bd3634f9a62abecb2e1eaac76d
[ "MIT" ]
null
null
null
# not working, not sure why (as parts work separately # outside of function) # (User's) Problem # We have: # a string # We need: # is that string a paindrome? yes/no # We must: # boolean output # name of function is # checkPalindrome # Solution (Product) # Strategy 1: # turn string into a list...
24
66
0.664352
0
0
0
0
0
0
0
0
593
0.686343
1a37bfae9bd13611e15a98b21e3b6c87ccdce595
13,296
py
Python
airflow/dags/sentinel1/S1_GRD_1SDV.py
geosolutions-it/evo-odas
983912614317c28ba88fe078f5069266dd8469bb
[ "MIT" ]
29
2018-01-03T18:41:03.000Z
2022-02-03T01:15:46.000Z
airflow/dags/sentinel1/S1_GRD_1SDV.py
geosolutions-it/evo-odas
983912614317c28ba88fe078f5069266dd8469bb
[ "MIT" ]
226
2016-10-05T10:01:12.000Z
2021-07-20T18:47:59.000Z
airflow/dags/sentinel1/S1_GRD_1SDV.py
geosolutions-it/evo-odas
983912614317c28ba88fe078f5069266dd8469bb
[ "MIT" ]
13
2016-10-13T14:55:33.000Z
2022-02-03T01:15:33.000Z
""" /*********************************************************************************/ * The MIT License (MIT) * * * * Copyright (c) 2014 EOX IT Services GmbH ...
47.655914
273
0.571224
0
0
0
0
0
0
0
0
3,819
0.287229
1a37c7ba2d228caef670de2aefc502f114329be0
579
py
Python
cfn_model/model/EC2NetworkInterface.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
6
2018-08-07T01:58:16.000Z
2020-09-10T14:40:35.000Z
cfn_model/model/EC2NetworkInterface.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
1
2018-10-16T20:40:27.000Z
2018-10-17T02:18:05.000Z
cfn_model/model/EC2NetworkInterface.py
jaymecd/cloudformation-validator
4f6951a002f338010b63fa3fbd23ddd8022558fa
[ "MIT" ]
1
2019-01-17T21:35:47.000Z
2019-01-17T21:35:47.000Z
from __future__ import absolute_import, division, print_function from cfn_model.model.ModelElement import ModelElement class EC2NetworkInterface(ModelElement): """ Ec2 network interface model lement """ def __init__(self, cfn_model): """ Initialize :param cfn_model: ""...
23.16
64
0.637306
454
0.784111
0
0
0
0
0
0
139
0.240069
1a37f2bd5fe18531b4032a37a702ab6810656fed
1,125
py
Python
tests/mock.py
kklein/icontract
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
[ "MIT" ]
244
2018-08-15T22:58:58.000Z
2022-03-12T16:10:39.000Z
tests/mock.py
kklein/icontract
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
[ "MIT" ]
157
2018-08-29T21:36:47.000Z
2022-02-14T19:30:24.000Z
tests/mock.py
kklein/icontract
718ef1733cc2cce6d3c8f59a5a37de96f8be6664
[ "MIT" ]
23
2019-04-24T11:09:10.000Z
2022-02-14T15:56:26.000Z
"""Provide mock structures used accross the tests.""" from typing import List, Union class NumpyArray: """Represent a class that mocks a numpy.array and it's behavior on less-then operator.""" def __init__(self, values: List[Union[int, bool]]) -> None: """Initialize with the given values.""" ...
36.290323
96
0.634667
1,037
0.921778
0
0
0
0
0
0
504
0.448
1a39f0ac1b52e80601d37b28ec8d2bbc57258c03
24,381
py
Python
gff_to_gbk.py
ArnaudBelcour/gbk_from_gff
addf14c55cc5845c68a985c3d9b613bf3153071c
[ "MIT" ]
3
2019-06-08T11:48:11.000Z
2021-11-29T19:58:48.000Z
gff_to_gbk.py
ArnaudBelcour/gbk_from_gff
addf14c55cc5845c68a985c3d9b613bf3153071c
[ "MIT" ]
null
null
null
gff_to_gbk.py
ArnaudBelcour/gbk_from_gff
addf14c55cc5845c68a985c3d9b613bf3153071c
[ "MIT" ]
2
2020-05-15T12:58:17.000Z
2020-08-05T06:13:23.000Z
#!/usr/bin/env python3 # coding: utf8 """ Description: Using fasta files (scaffold/chromosme/contig file, protein file), gff file, annotation tsv file and the species name this script writes a genbank file. The annotation tsv file contains association between gene and annotation (EC number, GO term, Interpro) to add ...
46.617591
162
0.632132
0
0
0
0
0
0
0
0
8,039
0.32971
1a3e9d713d8d312ad682cee9b4c6fc31735f9eac
14,362
py
Python
Anchors/AdjustAnchors.py
davelab6/fontlab-scripts-1
2e59280a2af5dfe708e9ad112b7286f7bf92eb48
[ "MIT" ]
33
2015-02-25T11:40:08.000Z
2021-11-12T05:41:09.000Z
Anchors/AdjustAnchors.py
davelab6/fontlab-scripts-1
2e59280a2af5dfe708e9ad112b7286f7bf92eb48
[ "MIT" ]
1
2015-03-07T09:10:20.000Z
2015-03-08T08:32:57.000Z
Anchors/AdjustAnchors.py
davelab6/fontlab-scripts-1
2e59280a2af5dfe708e9ad112b7286f7bf92eb48
[ "MIT" ]
15
2015-04-03T03:48:36.000Z
2021-08-30T08:18:26.000Z
#FLM: Adjust Anchors __copyright__ = __license__ = """ Copyright (c) 2010-2012 Adobe Systems Incorporated. All rights reserved. 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 without restrictio...
34.033175
125
0.694402
11,132
0.775101
0
0
0
0
0
0
3,140
0.218633
1a40884f8e3655b3dfc6d99906ed6b026d45047f
661
py
Python
Objects/Repeater.py
Camaendir/JB-LED
c6dba7264af3f6f9bc3b312d8afa24e2edebec5b
[ "MIT" ]
3
2020-07-29T10:40:02.000Z
2021-01-02T15:18:00.000Z
Objects/Repeater.py
Camaendir/JB-LED
c6dba7264af3f6f9bc3b312d8afa24e2edebec5b
[ "MIT" ]
5
2020-10-01T18:28:39.000Z
2020-10-08T19:17:44.000Z
Objects/Repeater.py
Camaendir/JB-LED
c6dba7264af3f6f9bc3b312d8afa24e2edebec5b
[ "MIT" ]
null
null
null
import copy from math import floor from Objects.Object import Object class Repeater(Object): def __init__(self, isVisible, position, content, pixellength, numRepeats=-1, spacing=0): super().__init__(isVisible, position, content) self.numRepeats = numRepeats self.spacing = spacing ...
31.47619
92
0.67171
588
0.889561
0
0
0
0
0
0
0
0
1a41f91574cc97294c624d878bae98006410b2d3
627
py
Python
web/django/bookLib/bookLib/forms.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
web/django/bookLib/bookLib/forms.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
web/django/bookLib/bookLib/forms.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
from django import forms class SearchForm(forms.Form): CHOICES = [ (u'ISBN', u'ISBN'), (u'书名', u'书名'), (u'作者', u'作者') ] search_by = forms.ChoiceField( label='', choices=CHOICES, widget=forms.RadioSelect(), ini...
24.115385
49
0.432217
644
0.959762
0
0
0
0
0
0
160
0.23845
1a424da371a77f49cafcf1b25908551d82fcf1e6
7,173
py
Python
simpleview_pytorch/resnet.py
isaaccorley/simpleview-pytorch
84a3e493905491feaed849a8bd5ddd240b2d04f2
[ "MIT" ]
9
2021-04-27T01:15:13.000Z
2022-02-01T11:22:35.000Z
simpleview_pytorch/resnet.py
IsaacCorley/simpleview-pytorch
84a3e493905491feaed849a8bd5ddd240b2d04f2
[ "MIT" ]
1
2021-05-18T12:24:04.000Z
2021-06-12T05:09:27.000Z
simpleview_pytorch/resnet.py
IsaacCorley/simpleview-pytorch
84a3e493905491feaed849a8bd5ddd240b2d04f2
[ "MIT" ]
1
2022-02-01T11:22:36.000Z
2022-02-01T11:22:36.000Z
""" Modified from https://github.com/pytorch/vision/blob/master/torchvision/models/resnet.py Edits: ResNet: - Changed input layer from 3 channel -> 1 channel (depth images) - Divided inplanes, planes, and width_per_group by 4 BasicBlock: - Commented out ValueError triggered by base_width ...
37.554974
107
0.577304
6,246
0.870765
0
0
0
0
0
0
1,414
0.197128
1a428b3cebba37ae0405317bd4d0e2bbdb0b64a7
717
py
Python
DB_resource/code/insertMongodb.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
null
null
null
DB_resource/code/insertMongodb.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
1
2021-11-29T03:38:21.000Z
2021-11-29T03:38:21.000Z
DB_resource/code/insertMongodb.py
DaiShuHeng/shiyizhonghua_resource
6faa284292102ab97438f356cf9bf69d2472335b
[ "Apache-2.0" ]
13
2021-11-06T03:17:45.000Z
2021-12-02T15:12:54.000Z
# -*- coding: utf-8 -*- """ Author:by 王林清 on 2021/11/2 21:32 FileName:insertMongodb.py in shiyizhonghua_resource Tools:PyCharm python3.8.4 """ from pymongo import MongoClient from util import * if __name__ == '__main__': dir_name = r'./../database_json' paths = get_file_path(dir_name) host = '114.55.236....
26.555556
61
0.608089
0
0
0
0
0
0
0
0
244
0.337483
1a43a46c11649f880078bee3e46cde206645701e
641
py
Python
contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py
muzmu/atheris
7339163c634367dada8e5bca5bcceab8ada2b312
[ "Apache-2.0" ]
null
null
null
contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py
muzmu/atheris
7339163c634367dada8e5bca5bcceab8ada2b312
[ "Apache-2.0" ]
null
null
null
contrib/libprotobuf_mutator/atheris_libprotobuf_mutator/proto_fuzz_test.py
muzmu/atheris
7339163c634367dada8e5bca5bcceab8ada2b312
[ "Apache-2.0" ]
null
null
null
import unittest import atheris import atheris_libprotobuf_mutator from atheris import fuzz_test_lib from google.protobuf import wrappers_pb2 @atheris.instrument_func def simple_proto_comparison(msg): if msg.value == "abc": raise RuntimeError("Solved") class AtherisLibprotobufMutatorTests(unittest.TestCase): ...
22.892857
57
0.762871
330
0.514821
0
0
116
0.180967
0
0
39
0.060842
1a43e33d04e3f0eaf830b974bf544c32498255dc
13,028
py
Python
notebooks/generative.py
jacobdeasy/geometric-js
c4fd9d17672ac1aef2a95daeb7514ce7c20a469a
[ "MIT" ]
14
2020-06-18T14:14:10.000Z
2021-08-18T01:59:48.000Z
notebooks/generative.py
jacobdeasy/geometric-js
c4fd9d17672ac1aef2a95daeb7514ce7c20a469a
[ "MIT" ]
null
null
null
notebooks/generative.py
jacobdeasy/geometric-js
c4fd9d17672ac1aef2a95daeb7514ce7c20a469a
[ "MIT" ]
2
2021-03-23T23:43:36.000Z
2021-05-04T08:35:36.000Z
import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np import os import pdb from tqdm import tqdm import argparse import pandas as pd import sys BASE_DIR=os.path.dirname(os.getcwd()) sys.path.append(BASE_DIR) sys.path.append('/home/tam63/geometric-js') import torch import scipy.stats from scipy....
35.595628
130
0.623043
0
0
0
0
0
0
0
0
4,671
0.358535
1a467cffc666f7d4209f357092ce125a04accdd5
1,234
py
Python
News_chat_bot/News_scraper.py
amansharmma/News_Chat_Bot
f3342da9f20c5ff9037111a358b4e70c294a6a5b
[ "MIT" ]
null
null
null
News_chat_bot/News_scraper.py
amansharmma/News_Chat_Bot
f3342da9f20c5ff9037111a358b4e70c294a6a5b
[ "MIT" ]
null
null
null
News_chat_bot/News_scraper.py
amansharmma/News_Chat_Bot
f3342da9f20c5ff9037111a358b4e70c294a6a5b
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests,datetime top_news = {"world":[],"business":[],"technology":[],"sports":[],"entertainment":[]} def Scraper_news(): new_dic = {} URLS_of_menu = {"world":"http://www.newzcone.com/world/","business":"http://www.newzcone.com/business/","technology":"http://www.newzcone.com/te...
33.351351
275
0.670178
0
0
0
0
0
0
0
0
402
0.32577
1a46d0a115b32d7ff6c6db2d71f59e05c37b173c
2,388
py
Python
telraam_data/tests/test_download.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
telraam_data/tests/test_download.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
telraam_data/tests/test_download.py
Duam/telraam-data
fd1bda4a0be3f858015470a6cb9a3d64e140ce32
[ "MIT" ]
null
null
null
import telraam_data.query as query import telraam_data.download as download from .utils import get_data_keys import datetime as dt import shutil import pandas as pd import pathlib as pl import random import pytest @pytest.fixture() def one_segment(): all_segments = query.query_active_segments() segment_idx = ...
33.166667
95
0.725712
0
0
95
0.039782
308
0.128978
0
0
445
0.186348
1a47a619909d8c68e7ff3f55a7292b76dc36728b
4,544
py
Python
kashgari/tasks/abs_task_model.py
SharpKoi/Kashgari
ef8c4b4d17dbd69616b9cc744489181909e313c3
[ "Apache-2.0" ]
null
null
null
kashgari/tasks/abs_task_model.py
SharpKoi/Kashgari
ef8c4b4d17dbd69616b9cc744489181909e313c3
[ "Apache-2.0" ]
null
null
null
kashgari/tasks/abs_task_model.py
SharpKoi/Kashgari
ef8c4b4d17dbd69616b9cc744489181909e313c3
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 # author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: abs_task_model.py # time: 1:43 下午 import json import os import pathlib from abc import ABC, abstractmethod from typing import Dict, Any, TYPE_CHECKING, Union import tensorflow as tf import kashgari from kashgari...
38.184874
114
0.665493
3,854
0.847405
0
0
2,081
0.457564
0
0
1,288
0.283201
1a47bdd4053aca36705ed4d58e60c21aacfb2da2
1,915
py
Python
pyram/utils/make_info_from_amr.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
pyram/utils/make_info_from_amr.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
6
2020-02-17T13:44:43.000Z
2020-06-25T15:35:05.000Z
pyram/utils/make_info_from_amr.py
Hoseung/pyRamAn
f9386fa5a9f045f98590039988d3cd50bc488dc2
[ "MIT" ]
1
2021-11-25T16:11:56.000Z
2021-11-25T16:11:56.000Z
# coding: utf-8 def write_info(amr): #import fortranformat as ff #nout = amr.nout aexp = amr.aexp h0 = amr.h0 * 1e-2 rhoc = 1.88e-29 boxlen = 1.0 f = open("info_" + str(nout).zfill(5) + ".txt", 'w') for name, val in zip(["ncpu", "ndim", "levelmin", "levelmax", "ngridmax", "ns...
31.393443
111
0.565535
0
0
0
0
0
0
0
0
714
0.372846
1a48273fcffbd81bf82e527381a62c49f570d938
3,794
py
Python
2021/d25/d25.py
btharper/aoc
c4e265515da4b61b9e6704652a1d1175ddfd3f92
[ "Apache-2.0" ]
null
null
null
2021/d25/d25.py
btharper/aoc
c4e265515da4b61b9e6704652a1d1175ddfd3f92
[ "Apache-2.0" ]
null
null
null
2021/d25/d25.py
btharper/aoc
c4e265515da4b61b9e6704652a1d1175ddfd3f92
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict, Counter, deque from functools import cache from itertools import product, pairwise from multiprocessing import Pool import math import re non_digits = re.compile('[^0-9]+') def sign(a, b, step=1): return int(math.copysign(step, b-a)) def autorange(a,b, step=1): if a == b:re...
29.410853
82
0.495783
0
0
0
0
0
0
0
0
877
0.231154
1a49cf0573ed943c6db81fa5fa001609a4e4757e
4,773
py
Python
Hermes.py
jax777/Hermes
55defa1640b2d8f14a63878b8bbff41272779c75
[ "Unlicense" ]
null
null
null
Hermes.py
jax777/Hermes
55defa1640b2d8f14a63878b8bbff41272779c75
[ "Unlicense" ]
null
null
null
Hermes.py
jax777/Hermes
55defa1640b2d8f14a63878b8bbff41272779c75
[ "Unlicense" ]
null
null
null
#!/usr/bin/python # coding: utf-8 # __author__ jax777 import os import cgi import json import urllib import hashlib import datetime import tornado.ioloop import tornado.web import traceback from tornado.escape import json_decode from multiprocessing import Process from sqllitedb import * from DnsServer import dns_serv...
27.75
119
0.57511
3,361
0.702991
0
0
0
0
0
0
874
0.182807
1a4a79766214bce2c54862f0ba91b60a1d34cf35
1,348
py
Python
landdegradation/download.py
gdaldegan/landdegradation
08860179eb4fa5dcd4572b75dd2ce343e3575295
[ "MIT" ]
null
null
null
landdegradation/download.py
gdaldegan/landdegradation
08860179eb4fa5dcd4572b75dd2ce343e3575295
[ "MIT" ]
null
null
null
landdegradation/download.py
gdaldegan/landdegradation
08860179eb4fa5dcd4572b75dd2ce343e3575295
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function import ee from landdegradation.util import TEImage from landdegradation.schemas.schemas import BandInfo def download(asset, name, temporal_resolution, start_year, end_year, EXECUTION_ID, logger)...
36.432432
117
0.669881
0
0
0
0
0
0
0
0
620
0.459941
1a4b90bcaa04099413775127fbdb065ea1e2bdcf
1,344
py
Python
tensorflow_datasets/core/logging/logging_logger.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:34.000Z
2021-07-04T11:07:34.000Z
tensorflow_datasets/core/logging/logging_logger.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/core/logging/logging_logger.py
sourcery-ai-bot/datasets
b623ab0abf3f03bacf6a7ba22c8d37bf76a4db28
[ "Apache-2.0" ]
1
2021-07-04T11:07:35.000Z
2021-07-04T11:07:35.000Z
# coding=utf-8 # Copyright 2021 The TensorFlow Datasets Authors. # # 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 appl...
38.4
79
0.72619
485
0.360863
0
0
0
0
0
0
701
0.521577
1a4be22543af73441ad4c9ced85adf6351a9df98
100
py
Python
zeeko/cyloop/tests/conftest.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
2
2017-07-23T22:06:05.000Z
2020-02-28T07:54:15.000Z
zeeko/cyloop/tests/conftest.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
1
2020-10-29T19:54:06.000Z
2020-10-29T19:54:06.000Z
zeeko/cyloop/tests/conftest.py
alexrudy/Zeeko
fb4992724620ed548dd32c3201f79f5b7bebfe32
[ "BSD-3-Clause" ]
null
null
null
import pytest import numpy as np @pytest.fixture def n(): """Number of arrays""" return 3
11.111111
26
0.65
0
0
0
0
64
0.64
0
0
22
0.22
1a4c10dd268c18ea7f80bb6c81bca827718cd899
865
py
Python
conformance/tests/ot_labels.py
jordan2lee/grip
64c4ae923ae8819569fe584c6750a24e51932aec
[ "MIT" ]
null
null
null
conformance/tests/ot_labels.py
jordan2lee/grip
64c4ae923ae8819569fe584c6750a24e51932aec
[ "MIT" ]
null
null
null
conformance/tests/ot_labels.py
jordan2lee/grip
64c4ae923ae8819569fe584c6750a24e51932aec
[ "MIT" ]
null
null
null
def test_list_labels(man): errors = [] G = man.setGraph("swapi") resp = G.listLabels() print(resp) if len(resp["vertex_labels"]) != 6: errors.append("listLabels returned an unexpected number of vertex labels; %d != 2" % (len(resp["vertex_labels"]))) if sorted(resp["vertex_labels"])...
36.041667
155
0.645087
0
0
0
0
0
0
0
0
465
0.537572
1a4c9682da4b81a0f168d8e9419bc7e161393b09
26,025
py
Python
build/releases/release-0.573py3/ob/ltr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
26
2019-02-01T19:12:21.000Z
2022-03-25T04:40:38.000Z
build/releases/release-0.572py3/ob/ltr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
3
2019-10-29T17:49:19.000Z
2022-03-20T21:21:31.000Z
build/releases/release-0.569/ob/ltr.py
farinacci/lispers.net
e1ed6e0f0a242b13ad629afb0fc1c7072b19b30c
[ "Apache-2.0" ]
4
2019-02-02T16:50:48.000Z
2020-10-29T03:10:58.000Z
#!/usr/bin/python # ----------------------------------------------------------------------------- # # Copyright 2013-2019 lispers.net - Dino Farinacci <farinacci@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may o...
44.035533
152
0.621134
0
0
0
0
0
0
0
0
6,423
0.246801
1a4d09aa09e2665f13f249c5708fdd7192001e99
2,409
py
Python
web/blog/migrations/0001_initial.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
null
null
null
web/blog/migrations/0001_initial.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
22
2019-03-23T21:08:08.000Z
2019-03-25T07:34:58.000Z
web/blog/migrations/0001_initial.py
CleyFaye/gtlive-info
9e54e81b47f4292586211e83b776eec24214ab46
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.10 on 2018-03-06 16:44 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrati...
48.18
227
0.635949
2,184
0.9066
0
0
0
0
0
0
752
0.312163
1a4e44fa1437f33e3868edd4c85aa17b157bd285
311
py
Python
Scraping/DarkWebScraper/main.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
12
2020-04-05T10:01:11.000Z
2022-02-05T08:11:54.000Z
Scraping/DarkWebScraper/main.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
null
null
null
Scraping/DarkWebScraper/main.py
Shokr/Python_Playbook
e29ba874890349742f198982cc40763b30a58842
[ "MIT" ]
6
2020-04-03T22:24:34.000Z
2022-01-28T12:22:34.000Z
# https://justhackerthings.com/post/building-a-dark-web-scraper/ import sys def main(): # Disable SSL warnings try: import requests.packages.urllib3 requests.packages.urllib3.disable_warnings() except: pass START = sys.argv[1] if __name__ == "__main__": main()
16.368421
64
0.646302
0
0
0
0
0
0
0
0
96
0.308682
1a4f1c919b299942a82c6932d7f00aabeb8479d0
316
py
Python
tests/data/formulas/foo/foo-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
3
2016-04-20T21:24:59.000Z
2021-11-17T10:58:49.000Z
tests/data/formulas/foo/foo-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
null
null
null
tests/data/formulas/foo/foo-1.0.py
pmuller/ipkg
9e3df803e0f16035a7552f63bbf54886244827d8
[ "MIT" ]
null
null
null
from os.path import dirname from ipkg.build import Formula, File class foo(Formula): name = 'foo' version = '1.0' sources = File(dirname(__file__) + '/../../sources/foo-1.0.tar.gz') platform = 'any' def install(self): self.run_cp(['README', self.environment.prefix + '/foo.README'])
21.066667
72
0.626582
247
0.781646
0
0
0
0
0
0
67
0.212025
1a5061fa8eaa75165019221d64224e6c9602ed66
778
py
Python
prob0002.py
chadhs/project-euler
c19a81a98efee991cadb6a66eb1865088416201e
[ "BSD-3-Clause" ]
null
null
null
prob0002.py
chadhs/project-euler
c19a81a98efee991cadb6a66eb1865088416201e
[ "BSD-3-Clause" ]
null
null
null
prob0002.py
chadhs/project-euler
c19a81a98efee991cadb6a66eb1865088416201e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python def sum_even_fib(limit): fib_list = [1, 2] even_fib_list = [2] next_fib = fib_list[-1] + fib_list[-2] while(next_fib <= limit): next_fib = fib_list[-1] + fib_list[-2] fib_list.append(next_fib) if next_fib % 2 == 0: even_fib_list.append(next_fi...
21.611111
46
0.618252
0
0
0
0
0
0
0
0
21
0.026992
1a52dc51601a35116aee6d656ad33ca1c1841e16
7,660
py
Python
tests/integration/test_autocommit.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
1
2021-05-18T14:11:39.000Z
2021-05-18T14:11:39.000Z
tests/integration/test_autocommit.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
null
null
null
tests/integration/test_autocommit.py
michaelcraige/neo4j-python-driver
27d0ce3f1941c4b29d0f050c6186a4f48ae4d30a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- # Copyright (c) 2002-2019 "Neo4j," # Neo4j Sweden AB [http://neo4j.com] # # This file is part of Neo4j. # # 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 L...
33.160173
78
0.607441
0
0
0
0
0
0
0
0
2,386
0.311488
1a5431d37ebda58e5b218f10d2b25e4f51243a49
1,596
py
Python
bokeh/serve_through_api/flask_api/html_generator.py
eshanMewantha/data-visualization
d9cdd5551092d90572e34af1ebd82af414f16aaf
[ "MIT" ]
null
null
null
bokeh/serve_through_api/flask_api/html_generator.py
eshanMewantha/data-visualization
d9cdd5551092d90572e34af1ebd82af414f16aaf
[ "MIT" ]
null
null
null
bokeh/serve_through_api/flask_api/html_generator.py
eshanMewantha/data-visualization
d9cdd5551092d90572e34af1ebd82af414f16aaf
[ "MIT" ]
null
null
null
import pandas as pd from bokeh.plotting import figure from bokeh.sampledata.stocks import AAPL def get_template(): df = pd.DataFrame(AAPL) df['date'] = pd.to_datetime(df['date']) import jinja2 from bokeh.embed import components # IMPORTANT NOTE!! The version of BokehJS loaded in the template sh...
26.163934
92
0.615915
0
0
0
0
0
0
0
0
1,097
0.687343
1a55793e5089f89d8e094d3d19b917c7ca92caad
1,728
py
Python
app/nanoleaf/layout.py
kyleposluns/nanoleaf
b83fcf6d92a54b7ce2d92b04355cedf63f09e13b
[ "MIT" ]
null
null
null
app/nanoleaf/layout.py
kyleposluns/nanoleaf
b83fcf6d92a54b7ce2d92b04355cedf63f09e13b
[ "MIT" ]
null
null
null
app/nanoleaf/layout.py
kyleposluns/nanoleaf
b83fcf6d92a54b7ce2d92b04355cedf63f09e13b
[ "MIT" ]
null
null
null
from app.nanoleaf.model import AuroraObject class PanelLayout(AuroraObject): def __init__(self, requester, rhythm): super().__init__(requester) self.rhythm = rhythm @property def orientation(self): """Returns the orientation of the device (0-360)""" return self._requester....
37.565217
100
0.678241
1,683
0.973958
0
0
1,506
0.871528
0
0
778
0.450231
1a5c80ab6f0c06783f4d0e9551701ed39a95c25b
3,243
py
Python
classes/data_handler.py
GorillaBus/tf-translate
2cc23fb32cb1d78cb82c8c894e25f5e709d01b78
[ "MIT" ]
null
null
null
classes/data_handler.py
GorillaBus/tf-translate
2cc23fb32cb1d78cb82c8c894e25f5e709d01b78
[ "MIT" ]
null
null
null
classes/data_handler.py
GorillaBus/tf-translate
2cc23fb32cb1d78cb82c8c894e25f5e709d01b78
[ "MIT" ]
null
null
null
import tensorflow as tf from sklearn.model_selection import train_test_split import unicodedata import re import io ''' Handles data loading, pre-processing and tokenizing ''' class DataHandler(): ''' Creates a tf.data.Dataset object to feed the network with tensors and in batches X: (tensor) with inpu...
26.153226
101
0.670675
3,065
0.94453
0
0
0
0
0
0
1,658
0.51094
1a5e520e42f56529133381c93cca81b7e91fe302
4,060
py
Python
tests/db/test_client.py
wxnacy/lfsdb
ff200e682ebafb9c806b8d5935c535d77b439981
[ "MIT" ]
null
null
null
tests/db/test_client.py
wxnacy/lfsdb
ff200e682ebafb9c806b8d5935c535d77b439981
[ "MIT" ]
null
null
null
tests/db/test_client.py
wxnacy/lfsdb
ff200e682ebafb9c806b8d5935c535d77b439981
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: wxnacy@gmail.com """ 随机方法 """ import pytest import os from wpy.path import read_dict from wpy.randoms import ( random_str ) from lfsdb import FileStorage from lfsdb.db import FileStorageError from lfsdb.db.errors import FSQueryError from lfsdb.d...
22.065217
82
0.599754
0
0
0
0
0
0
0
0
603
0.146005
1a5fe65ea13d858d4fe548293ae1aefcbe8c803b
865
py
Python
days/dec6/dec6.py
denysvitali/aoc-2020
b0b3460c5043e4ce78a6ef00a40cc817953f6c43
[ "MIT" ]
null
null
null
days/dec6/dec6.py
denysvitali/aoc-2020
b0b3460c5043e4ce78a6ef00a40cc817953f6c43
[ "MIT" ]
null
null
null
days/dec6/dec6.py
denysvitali/aoc-2020
b0b3460c5043e4ce78a6ef00a40cc817953f6c43
[ "MIT" ]
null
null
null
import re example = "".join(open("example.txt").readlines()) puzzle = "".join(open("puzzle.txt").readlines()) problem_input = puzzle def parse_group(input: str): votes = input.split("\n") votes_map = dict() for vote in votes: for el in vote: if el not in votes_map: vo...
20.116279
50
0.552601
0
0
0
0
0
0
0
0
69
0.079769
1a60a5f260cfd69458005fdf8f18f4a31de9980c
1,154
py
Python
integration_tests/web/test_issue_378.py
KharchenkoDmitriy/python-slack-sdk
5340ee337a2364e84c38d696c107f19c341dd6eb
[ "MIT" ]
null
null
null
integration_tests/web/test_issue_378.py
KharchenkoDmitriy/python-slack-sdk
5340ee337a2364e84c38d696c107f19c341dd6eb
[ "MIT" ]
null
null
null
integration_tests/web/test_issue_378.py
KharchenkoDmitriy/python-slack-sdk
5340ee337a2364e84c38d696c107f19c341dd6eb
[ "MIT" ]
null
null
null
import asyncio import logging import os import unittest from integration_tests.env_variable_names import SLACK_SDK_TEST_USER_TOKEN from integration_tests.helpers import async_test from slack import WebClient class TestWebClient(unittest.TestCase): """Runs integration tests with real Slack API https://github...
32.055556
118
0.740035
942
0.816291
0
0
213
0.184575
197
0.170711
176
0.152513
1a6106088407de4e7e1d70c09e88f77cac779b4b
7,199
py
Python
tune/iterative/asha.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
14
2021-03-03T20:02:09.000Z
2021-11-10T20:32:22.000Z
tune/iterative/asha.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
26
2021-04-30T19:56:06.000Z
2022-01-18T04:40:00.000Z
tune/iterative/asha.py
fugue-project/tune
bf2288ddcb29c8345d996a9b22c0910da9002da1
[ "Apache-2.0" ]
2
2021-04-30T03:12:21.000Z
2022-02-05T12:13:37.000Z
from threading import RLock from typing import Any, Callable, Dict, Iterable, List, Optional, Set, Tuple from triad import to_uuid from tune.concepts.flow import ( Monitor, Trial, TrialDecision, TrialJudge, TrialReport, TrialReportHeap, ) class RungHeap: def __init__(self, n: int): ...
33.640187
87
0.592999
6,664
0.925684
0
0
591
0.082095
0
0
356
0.049451
1a617a21f77fb7f52b6d11e5c92d2818e85cb8ab
326
py
Python
powerwiki/markup/md.py
radiac/django-powerwiki
3df80384261bdef8d25b1df9459073f0ae928a86
[ "BSD-3-Clause" ]
4
2020-09-10T20:36:02.000Z
2021-11-03T17:09:11.000Z
powerwiki/markup/md.py
radiac/django-powerwiki
3df80384261bdef8d25b1df9459073f0ae928a86
[ "BSD-3-Clause" ]
null
null
null
powerwiki/markup/md.py
radiac/django-powerwiki
3df80384261bdef8d25b1df9459073f0ae928a86
[ "BSD-3-Clause" ]
null
null
null
from django.contrib.auth.models import AbstractUser import markdown from .base import MarkupEngine class Markdown(MarkupEngine): label = "Markdown" extensions = ["extra"] def to_html(self, raw: str, user: AbstractUser) -> str: md = markdown.markdown(raw, extensions=self.extensions) retu...
21.733333
63
0.705521
222
0.680982
0
0
0
0
0
0
17
0.052147
1a67fad9931909e49275c4b3f5a5ee8cc9517384
75
py
Python
driver27/urls/team.py
SRJ9/driver27
3fd32005a89112fe9f94281b33a497d4ab1ebb55
[ "MIT" ]
1
2016-10-12T22:49:09.000Z
2016-10-12T22:49:09.000Z
driver27/urls/team.py
SRJ9/driver27
3fd32005a89112fe9f94281b33a497d4ab1ebb55
[ "MIT" ]
1
2016-10-12T22:47:08.000Z
2016-10-12T22:47:08.000Z
driver27/urls/team.py
SRJ9/driver27
3fd32005a89112fe9f94281b33a497d4ab1ebb55
[ "MIT" ]
null
null
null
from .default import dr27_stats_urls urlpatterns = dr27_stats_urls('team')
25
37
0.826667
0
0
0
0
0
0
0
0
6
0.08
1a68ae4c6daaddebc3deeeeee768f2c7fe6d1bdb
1,936
py
Python
cuppa/methods/markdown_to_html.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
25
2015-09-24T07:04:45.000Z
2022-02-19T03:31:03.000Z
cuppa/methods/markdown_to_html.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
46
2015-05-20T12:48:12.000Z
2022-01-10T10:38:55.000Z
cuppa/methods/markdown_to_html.py
pwj58/cuppa
6c598a124c5aa52b459637ca1865cda2e2d300bd
[ "BSL-1.0" ]
13
2015-07-12T09:55:03.000Z
2021-07-02T15:32:12.000Z
# Copyright Jamie Allsop 2015-2015 # Distributed under the Boost Software License, Version 1.0. # (See accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) #------------------------------------------------------------------------------- # MarkdownToHtmlMethod #--...
29.333333
154
0.547521
1,461
0.754649
0
0
106
0.054752
0
0
528
0.272727
1a68c8384b519235047d4e9148d15734f7c8bc80
3,718
py
Python
WIN_EventLog/OS_gathering/files/extracting.py
exastro-playbook-collection/OS-Windows2019
79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf
[ "Apache-2.0" ]
null
null
null
WIN_EventLog/OS_gathering/files/extracting.py
exastro-playbook-collection/OS-Windows2019
79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf
[ "Apache-2.0" ]
null
null
null
WIN_EventLog/OS_gathering/files/extracting.py
exastro-playbook-collection/OS-Windows2019
79c4f13e75ae1d4380d30f503f04ffb4dcf52ecf
[ "Apache-2.0" ]
1
2021-09-29T05:39:41.000Z
2021-09-29T05:39:41.000Z
import re import json import sys import os args = sys.argv if (len(args) < 2): sys.exit(1) path = args[1] if(path[-1:] == "/"): path = path[:-1] result_filedata_list = [] registry_info = {} target_filepath_list = [] target_filepath_list.append('/1/stdout.txt') target_filepath_list.append('/3/stdout.txt') f...
39.553191
84
0.516945
0
0
0
0
0
0
0
0
339
0.091178
1a6a4b81633f72d324dbf4acc99d2ef2ff1a4ab9
5,603
py
Python
src/datamanager/dataset.py
iN1k1/deep-pyramidal-representations-peron-re-identification
18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe
[ "MIT" ]
13
2019-08-09T08:33:27.000Z
2020-12-21T08:51:33.000Z
src/datamanager/dataset.py
iN1k1/deep-pyramidal-representations-peron-re-identification
18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe
[ "MIT" ]
5
2021-03-19T02:17:23.000Z
2022-03-11T23:53:44.000Z
src/datamanager/dataset.py
iN1k1/deep-pyramidal-representations-peron-re-identification
18eacd3b7bde2c4767ba290b655cb0f5c72ed8fe
[ "MIT" ]
4
2019-11-06T08:02:21.000Z
2021-01-13T20:34:23.000Z
import pickle import os import numpy as np from .utils import make_dataset_images, find_classes from operator import itemgetter import copy class Dataset(object): def __init__(self, name, root_folder, im_size=None, in_memory=False): super(Dataset, self).__init__() self.name = name self.ima...
33.35119
130
0.598786
5,457
0.973943
0
0
0
0
0
0
686
0.122434
1a6aa4d0a786d3e399ee18bc2e9e652bb27f3099
1,108
py
Python
video/main.py
ArseniKavalchuk/ffmpeg-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
1
2020-10-23T15:56:31.000Z
2020-10-23T15:56:31.000Z
video/main.py
ArseniKavalchuk/ffmpeg-rtsp-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
null
null
null
video/main.py
ArseniKavalchuk/ffmpeg-rtsp-hls-view
943e8eb5de7357c720d332a3ef13be98fd1efdf5
[ "Apache-2.0" ]
null
null
null
from video.segment import CodecCopyHLSFormatSegmenter from video.segment import CodecX264HLSFormatSegmenter from video.segment import CodecX264SegmentFormatSegmenter from video.segment import CodecX264ResizeHLSFormatSegmenter from video.snapshot import take_snapshot import os import pathlib import argparse PROJECT_ROO...
38.206897
116
0.758123
0
0
0
0
0
0
0
0
61
0.055054
1a6b3b67a196647e34aaaebda16a46305f5a9bec
1,565
py
Python
ada_loss/chainer_impl/ada_loss_transforms.py
kumasento/gradient-scaling
0ca435433b9953e33656173c4d60ebd61c5c5e87
[ "MIT" ]
7
2020-08-12T12:04:28.000Z
2021-11-22T15:56:08.000Z
ada_loss/chainer_impl/ada_loss_transforms.py
kumasento/gradient-scaling
0ca435433b9953e33656173c4d60ebd61c5c5e87
[ "MIT" ]
1
2021-10-07T08:37:39.000Z
2021-10-08T02:41:39.000Z
ada_loss/chainer_impl/ada_loss_transforms.py
kumasento/gradient-scaling
0ca435433b9953e33656173c4d60ebd61c5c5e87
[ "MIT" ]
null
null
null
""" Implement the transformations we need to use to convert a link to an adaptive loss scaled link. """ # NOTE: this file is deprecated import chainer import chainer.links as L import chainer.initializers as I # pylint: disable=unused-wildcard-import from ada_loss.chainer_impl.links import * __all__ = [ "Ada...
24.84127
86
0.623642
1,175
0.750799
0
0
0
0
0
0
333
0.21278
1a6c38fe3eac0c9e9490bdee1d1414080a4cb623
2,294
py
Python
services/flask/project/elasticSearch/query_builder.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
services/flask/project/elasticSearch/query_builder.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
services/flask/project/elasticSearch/query_builder.py
eseerigha/countries-api
31ec8865a1e67e8bcf2ddb8939f5ccfb1e85f9e4
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod from elasticsearch_dsl import query from elasticsearch_dsl.query import MatchPhrasePrefix, Term, Bool, Match, MatchAll class QueryBuilderStrategy(ABC): def __init__(self, searchInput): self.name = searchInput.get('name') self.region = searchInput.get('region') ...
26.367816
101
0.6068
2,124
0.925894
0
0
115
0.050131
0
0
90
0.039233
1a6d2886a4a7ffe920b3a6389b89764f7a3428c8
2,002
py
Python
run.py
RitvikSardana/ekatraone-backend
13d4fc95de749b13bac6491c46eb471214b08e9a
[ "MIT" ]
null
null
null
run.py
RitvikSardana/ekatraone-backend
13d4fc95de749b13bac6491c46eb471214b08e9a
[ "MIT" ]
null
null
null
run.py
RitvikSardana/ekatraone-backend
13d4fc95de749b13bac6491c46eb471214b08e9a
[ "MIT" ]
3
2021-12-16T14:14:58.000Z
2022-01-24T10:49:48.000Z
""" The main app where all the routes are initiated here and runs the flask app """ from resources.auth import * from resources.reset import * from resources.userdetails import * from resources.course import * from resources.groups import * from resources.delivery import * from resources.dashboard_api import * from re...
38.5
75
0.766234
0
0
0
0
201
0.1004
0
0
622
0.310689
1a6d9e1b1f6a95c204998e268f6dedde3030bfcb
4,451
py
Python
atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
296
2020-03-16T19:55:00.000Z
2022-01-10T19:46:05.000Z
atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
57
2020-03-17T11:15:57.000Z
2021-07-10T14:42:27.000Z
atlas/foundations_rest_api/src/acceptance/v2beta/test_artifact_loading.py
DeepLearnI/atlas
8aca652d7e647b4e88530b93e265b536de7055ed
[ "Apache-2.0" ]
38
2020-03-17T21:06:05.000Z
2022-02-08T03:19:34.000Z
from foundations_spec import * from acceptance.api_acceptance_test_case_base import APIAcceptanceTestCaseBase from acceptance.v2beta.jobs_tests_helper_mixin_v2 import JobsTestsHelperMixinV2 class TestArtifactLoading(JobsTestsHelperMixinV2, APIAcceptanceTestCaseBase): url = '/api/v2beta/projects/{_project_name}/...
38.704348
121
0.682768
4,257
0.956414
0
0
2,538
0.570209
0
0
912
0.204898
1a6deb9d77ae7f9dd3a6a89e5e68c8dd4e802884
16,234
py
Python
model/state_encoder_model.py
lil-lab/cerealbar_generation
41153537c0bd8aed97f2ea841165477a8c480d58
[ "MIT" ]
null
null
null
model/state_encoder_model.py
lil-lab/cerealbar_generation
41153537c0bd8aed97f2ea841165477a8c480d58
[ "MIT" ]
null
null
null
model/state_encoder_model.py
lil-lab/cerealbar_generation
41153537c0bd8aed97f2ea841165477a8c480d58
[ "MIT" ]
null
null
null
import os, sys, copy import pickle import math import time import numpy as np from typing import Dict, Any, List, Set, Tuple import torch import torch.nn.functional as F from torch import nn from torch.nn.utils.rnn import pad_sequence import torch.nn.utils.rnn as rnn_utils from agent.environment.position import Pos...
44.721763
132
0.620549
14,863
0.915548
0
0
0
0
0
0
1,884
0.116053
1a6e8546353af8e6a5051dfc50d1bb801c40b2af
2,247
py
Python
tensorlayer/layers/noise.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
4,484
2017-12-27T03:28:35.000Z
2021-12-02T14:42:58.000Z
tensorlayer/layers/noise.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
549
2017-12-28T07:19:52.000Z
2021-11-05T02:34:20.000Z
tensorlayer/layers/noise.py
Howdy-Personally/tensorlayer-master
bb92e4e187419d5e7ded8331d5c7cbf5615ee744
[ "Apache-2.0" ]
1,076
2017-12-27T12:25:46.000Z
2021-11-24T09:12:36.000Z
#! /usr/bin/python # -*- coding: utf-8 -*- import tensorflow as tf import tensorlayer as tl from tensorlayer import logging from tensorlayer.decorators import deprecated_alias from tensorlayer.layers.core import Layer __all__ = [ 'GaussianNoise', ] class GaussianNoise(Layer): """ The :class:`GaussianNo...
27.072289
114
0.595461
1,988
0.884735
0
0
0
0
0
0
1,071
0.476636
1a6ed059d7b1feb8a9fc1f37a0a29d603590be28
447
py
Python
aiautomation/testcase/scenarios_recovery.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
aiautomation/testcase/scenarios_recovery.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
aiautomation/testcase/scenarios_recovery.py
marvinren/aiautomation
639f57f502104dd170dca24dd9ff15d80c031e21
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # coding=utf-8 import abc from aiautomation.testcase.browser import Browser class ScenariosRecovery: """ 场景恢复的基类 """ __metaclass__ = abc.ABCMeta def __init__(self, logger, config): self._browser = None self._logger = logger self._config = config @ab...
17.88
49
0.60179
393
0.800407
0
0
159
0.323829
0
0
163
0.331976
1a700cc75c7db30432b3bee2d9bb6579a2ada503
2,195
py
Python
examples/example_plots.py
lupify/pynverse
b943b49a0a398a00d4e712f492721f3dfa77ed52
[ "MIT" ]
46
2016-10-30T19:59:36.000Z
2022-03-01T10:59:11.000Z
examples/example_plots.py
Phibedy/pynverse
afa62d1f8f59110cced17471e57d7a1b6ab4f1df
[ "MIT" ]
3
2018-04-04T10:50:57.000Z
2021-12-03T16:55:57.000Z
examples/example_plots.py
Phibedy/pynverse
afa62d1f8f59110cced17471e57d7a1b6ab4f1df
[ "MIT" ]
9
2016-12-09T00:32:26.000Z
2022-01-17T12:24:29.000Z
from pynverse import inversefunc, piecewise import numpy as np import matplotlib.pyplot as plt import scipy cube = lambda x: x**3 invcube = inversefunc(cube) invcube_a = lambda x: scipy.special.cbrt(x) square = lambda x: x**2 invsquare = inversefunc(square, domain=0) invsquare_a = lambda x: x**(1/2.) ...
30.486111
102
0.62779
0
0
0
0
0
0
0
0
130
0.059226
1a70a409960397bfd1f99c4022d1a0d3e8addf9d
174
py
Python
modulo 3/aulas/5.5 - Funcao fatorial.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
modulo 3/aulas/5.5 - Funcao fatorial.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
modulo 3/aulas/5.5 - Funcao fatorial.py
GabrielBrotas/Python
9441b6b86ff3cb7fa5921b508c484075adac08b3
[ "MIT" ]
null
null
null
def fatorial(num=1): f = 1 for c in range(num, 1, -1): f *= c return f n = int(input('Digite um numero: ')) print(f'O fatorial de {n}: {fatorial(n)}')
15.818182
42
0.528736
0
0
0
0
0
0
0
0
55
0.316092
1a712905e9ec638daa721b6a4b9b79d609dea3fe
686
py
Python
tests/nevermind_test.py
Arna-Maity/corobo
856989ada0eb56edd8a2232a4ada12d90fc33c85
[ "MIT" ]
81
2017-05-09T13:20:10.000Z
2021-04-11T14:56:24.000Z
tests/nevermind_test.py
Arna-Maity/corobo
856989ada0eb56edd8a2232a4ada12d90fc33c85
[ "MIT" ]
648
2017-05-09T13:57:07.000Z
2021-04-27T12:44:26.000Z
tests/nevermind_test.py
Arna-Maity/corobo
856989ada0eb56edd8a2232a4ada12d90fc33c85
[ "MIT" ]
137
2017-05-28T04:11:00.000Z
2021-09-04T17:46:38.000Z
from tests.isolated_testcase import IsolatedTestCase class NevermindTest(IsolatedTestCase): def test_nevermind(self): self.assertCommand('!nevermind', 'I\'m sorry :(') self.assertCommand('!nm', 'I\'m sorry :(') self.assertCommand('!nEverMINd', 'I\'m sorry :(') self.assertCommand('...
42.875
80
0.616618
630
0.918367
0
0
0
0
0
0
286
0.41691
1a714779778dd4a1ce1758b9319d7fbb68580ce1
6,017
py
Python
Kijiji-Scraper.py
YounesZ/Kijiji-Scraper
23d19a8551e18d7478e814d0e71669ae7087f248
[ "MIT" ]
null
null
null
Kijiji-Scraper.py
YounesZ/Kijiji-Scraper
23d19a8551e18d7478e814d0e71669ae7087f248
[ "MIT" ]
null
null
null
Kijiji-Scraper.py
YounesZ/Kijiji-Scraper
23d19a8551e18d7478e814d0e71669ae7087f248
[ "MIT" ]
null
null
null
#!C:\Python34\scrapper\Scripts # Place url, linking to ad list, with desired search filters here. url_to_scrape = "http://www.kijiji.ca/b-canot-kayak-paddle-board/quebec/kayak/k0c329l9001" # Set the delay in (s) that the programs waits before scraping again. scrape_delay = 600 # 600 = 10 mins # Set filename to stor...
31.668421
114
0.592156
0
0
0
0
0
0
0
0
2,212
0.367381
1a721b84f67bae06186b9dfd9e9eef0d47fea1c9
10,303
py
Python
v2gcalendar/main.py
felixb/v2gcalendar
2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a
[ "Apache-2.0" ]
1
2017-08-18T01:17:16.000Z
2017-08-18T01:17:16.000Z
v2gcalendar/main.py
felixb/v2gcalendar
2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a
[ "Apache-2.0" ]
null
null
null
v2gcalendar/main.py
felixb/v2gcalendar
2bcd92e4f36d5783f2df06c7d7d9d73a65cab22a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import argparse import datetime import json import re import sys from calendar_service import CalendarService from icalendar import Calendar, Event, vDatetime, vText from logger import Logger from oauth2client.client import AccessTokenRefreshError from pytz import reference logger = Logger() ...
34.0033
77
0.510337
0
0
0
0
0
0
0
0
2,010
0.195089
1a72bf1b8ebe20d868f1d3cc9bd23715f706abbd
13,401
py
Python
kikimr/public/api/protos/ydb_discovery_pb2.py
MihanixA/ydb-python-sdk
d1b93c6d2409a87c350acd604915576891d1e4f3
[ "Apache-2.0" ]
null
null
null
kikimr/public/api/protos/ydb_discovery_pb2.py
MihanixA/ydb-python-sdk
d1b93c6d2409a87c350acd604915576891d1e4f3
[ "Apache-2.0" ]
null
null
null
kikimr/public/api/protos/ydb_discovery_pb2.py
MihanixA/ydb-python-sdk
d1b93c6d2409a87c350acd604915576891d1e4f3
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: kikimr/public/api/protos/ydb_discovery.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.proto...
36.514986
1,078
0.753526
0
0
0
0
0
0
0
0
3,660
0.273114
1a74249a03f2cae7503b71c858c78b242c87a346
424
py
Python
tests/test_rrpproxy_check_contact.py
ByteInternet/rrpproxy
9f644c8ed31f963f4eadc1dafea35e59006f89fc
[ "MIT" ]
3
2020-10-20T12:12:36.000Z
2021-12-11T19:10:20.000Z
tests/test_rrpproxy_check_contact.py
ByteInternet/rrpproxy
9f644c8ed31f963f4eadc1dafea35e59006f89fc
[ "MIT" ]
null
null
null
tests/test_rrpproxy_check_contact.py
ByteInternet/rrpproxy
9f644c8ed31f963f4eadc1dafea35e59006f89fc
[ "MIT" ]
null
null
null
from unittest.mock import patch from tests.test_rrpproxy_base import TestRRPProxyBase class TestRRPProxyCheckContact(TestRRPProxyBase): @patch('rrpproxy.RRPProxy.call') def test_calls_call_correctly(self, call_mock): response = self.proxy.check_contact('CONTACT-A') call_mock.assert_called_on...
32.615385
78
0.773585
334
0.787736
0
0
280
0.660377
0
0
60
0.141509
1a74a1e8b0ee6169f83c1660ff3489436c1f2d88
209
py
Python
20190724-hello-world-flask/hello-world-flask.py
rmoralesdelgado/python-scripts
0ec6e4d73bc5a2303fb668feba8f1c71f02dd630
[ "MIT" ]
null
null
null
20190724-hello-world-flask/hello-world-flask.py
rmoralesdelgado/python-scripts
0ec6e4d73bc5a2303fb668feba8f1c71f02dd630
[ "MIT" ]
null
null
null
20190724-hello-world-flask/hello-world-flask.py
rmoralesdelgado/python-scripts
0ec6e4d73bc5a2303fb668feba8f1c71f02dd630
[ "MIT" ]
null
null
null
''' Script to run a "Hello World" using Python 3.X and Flask. ''' from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, World!" if __name__ == "__main__": app.run()
13.933333
57
0.645933
0
0
0
0
53
0.253589
0
0
93
0.444976
1a75d4ccd2e54ea0708b468c31e7fe2bd3fd2f92
310
py
Python
docker-wrapper/parse_docker_args.py
Duke-GCB/docker-wrapper
004ca5cd067a177ec96ac40702b2f8cb9d57e440
[ "MIT" ]
null
null
null
docker-wrapper/parse_docker_args.py
Duke-GCB/docker-wrapper
004ca5cd067a177ec96ac40702b2f8cb9d57e440
[ "MIT" ]
null
null
null
docker-wrapper/parse_docker_args.py
Duke-GCB/docker-wrapper
004ca5cd067a177ec96ac40702b2f8cb9d57e440
[ "MIT" ]
null
null
null
import os def parse_mount(volume_spec): # Docker volumes may be "/src:dest:ro" or simply "/src" components = volume_spec.split(':') perm = 'w' # assume write perm if not specified src_path = components[0] # check if ro specified if components[-1] == 'ro': perm = 'r' return (src_path, perm)
25.833333
57
0.664516
0
0
0
0
0
0
0
0
127
0.409677
1a76a52e6e7d5bdeb177ef8e685d702c16d3b2ac
20,415
py
Python
find_dups.py
colinrcooper/filedups
7a2271c84df85f45c9f67ab18976bebe347bc256
[ "MIT" ]
null
null
null
find_dups.py
colinrcooper/filedups
7a2271c84df85f45c9f67ab18976bebe347bc256
[ "MIT" ]
null
null
null
find_dups.py
colinrcooper/filedups
7a2271c84df85f45c9f67ab18976bebe347bc256
[ "MIT" ]
null
null
null
from __future__ import print_function import os, sys if sys.version_info[0] != 3 or sys.version_info[1] < 0: print('Your Python version is too old! Please use Python 3.0 or higher.') sys.exit(1) import hashlib import fnmatch import configparser import argparse import platform os.chdir(os.path.di...
48.262411
235
0.611903
0
0
0
0
0
0
0
0
5,871
0.287583
1a79ab06520a99ff01196eabd99831377f229eee
13,208
py
Python
devday/devday/tests/test_utils_devdata.py
stefanbethke/devday_website
c4820e03b9dbb22a63b84f9d338f3a165a6d0354
[ "BSD-3-Clause" ]
null
null
null
devday/devday/tests/test_utils_devdata.py
stefanbethke/devday_website
c4820e03b9dbb22a63b84f9d338f3a165a6d0354
[ "BSD-3-Clause" ]
null
null
null
devday/devday/tests/test_utils_devdata.py
stefanbethke/devday_website
c4820e03b9dbb22a63b84f9d338f3a165a6d0354
[ "BSD-3-Clause" ]
null
null
null
from io import StringIO from cms.constants import TEMPLATE_INHERITANCE_MAGIC from cms.models import Page from cms.models.pluginmodel import CMSPlugin from cms.models.static_placeholder import StaticPlaceholder from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.sites.mod...
43.022801
79
0.619397
12,416
0.940036
0
0
136
0.010297
0
0
1,972
0.149303
1a79eeac88453654638db9192535898ef31080d0
2,499
py
Python
xmantissa/suspension.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
6
2016-02-17T15:04:53.000Z
2021-08-20T09:44:10.000Z
xmantissa/suspension.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
62
2015-02-04T23:40:55.000Z
2021-02-18T19:56:02.000Z
xmantissa/suspension.py
jonathanj/mantissa
53e5502aba23ce99be78b27f923a276593033fe8
[ "MIT" ]
8
2015-11-15T17:26:42.000Z
2020-12-02T06:36:52.000Z
from twisted.python.components import registerAdapter from axiom.attributes import reference from axiom.item import Item from nevow.page import Element from xmantissa.ixmantissa import INavigableElement, INavigableFragment from xmantissa.webnav import Tab from zope.interface import implements, Interface class ISuspend...
32.454545
81
0.683473
856
0.342537
378
0.151261
0
0
0
0
352
0.140856
1a7b4acea6211e0f11b6ce0b1340e0ebd3c19df0
1,889
py
Python
setup.py
brianredbeard/mischief
b58210eae304614ee6102fc4e29af4ce4d07de8f
[ "MIT" ]
null
null
null
setup.py
brianredbeard/mischief
b58210eae304614ee6102fc4e29af4ce4d07de8f
[ "MIT" ]
null
null
null
setup.py
brianredbeard/mischief
b58210eae304614ee6102fc4e29af4ce4d07de8f
[ "MIT" ]
null
null
null
############################################## # The MIT License (MIT) # Copyright (c) 2019 Kevin Walchko # see LICENSE for full details ############################################## from __future__ import print_function from setuptools import setup from build_utils import BuildCommand from build_utils import Publis...
30.467742
78
0.654314
0
0
0
0
0
0
0
0
840
0.44468
1a7bf867c1b1bbf1814a6ce1e2bd6f07d0bcafef
9,244
py
Python
metadamage/main.py
ChristianMichelsen/metadamage
f2cd8b24ae93f50c8e64202b484c5cba973ae167
[ "MIT" ]
3
2021-01-18T12:12:01.000Z
2021-01-18T15:10:43.000Z
metadamage/main.py
ChristianMichelsen/metadamage
f2cd8b24ae93f50c8e64202b484c5cba973ae167
[ "MIT" ]
7
2021-03-03T08:35:56.000Z
2021-11-04T08:34:54.000Z
metadamage/main.py
ChristianMichelsen/metadamage
f2cd8b24ae93f50c8e64202b484c5cba973ae167
[ "MIT" ]
1
2021-03-25T11:34:49.000Z
2021-03-25T11:34:49.000Z
# Scientific Library import matplotlib.pyplot as plt import numpy as np import pandas as pd # Standard Library from collections import defaultdict from concurrent.futures import ThreadPoolExecutor from functools import partial from importlib import reload import logging import os from pathlib import Path # Third Part...
23.521628
93
0.545219
0
0
0
0
0
0
0
0
1,865
0.201752
1a7ca17c8fac0cea02df710a8598ac8c259e6344
1,152
py
Python
python/sklk_widgets/StringValueComboBox.py
skylarkwireless/sklk-demos
9de3c05377f46576186a61035497fcf2a2ced324
[ "Apache-2.0" ]
2
2019-05-12T02:57:58.000Z
2021-06-18T08:54:59.000Z
python/sklk_widgets/StringValueComboBox.py
skylarkwireless/sklk-demos
9de3c05377f46576186a61035497fcf2a2ced324
[ "Apache-2.0" ]
null
null
null
python/sklk_widgets/StringValueComboBox.py
skylarkwireless/sklk-demos
9de3c05377f46576186a61035497fcf2a2ced324
[ "Apache-2.0" ]
3
2020-04-13T21:16:07.000Z
2021-03-24T17:52:39.000Z
######################################################################## ## Combo box with string value interface ######################################################################## from PyQt5.QtWidgets import QComboBox from PyQt5.QtCore import pyqtSignal class StringValueComboBox(QComboBox): valueChanged = p...
41.142857
88
0.604167
889
0.771701
0
0
0
0
0
0
234
0.203125
1a7d17cec7b26d8f082204fb03126fadc5b321d1
274
py
Python
docker_monitor/checks/active_build.py
cfpb/docker-monitor
b2073fcf79816744b3d3915b410f105b72b29f54
[ "CC0-1.0" ]
1
2021-07-14T02:36:43.000Z
2021-07-14T02:36:43.000Z
docker_monitor/checks/active_build.py
cfpb/docker-monitor
b2073fcf79816744b3d3915b410f105b72b29f54
[ "CC0-1.0" ]
null
null
null
docker_monitor/checks/active_build.py
cfpb/docker-monitor
b2073fcf79816744b3d3915b410f105b72b29f54
[ "CC0-1.0" ]
1
2021-02-18T11:38:52.000Z
2021-02-18T11:38:52.000Z
import logging from docker_monitor.policy import PolicyCheck logger = logging.getLogger(__name__) class ActiveBuildCheck(PolicyCheck): description = "is actively building" def __call__(self, container): # return self.PASS_FAST return self.PASS
18.266667
45
0.737226
170
0.620438
0
0
0
0
0
0
45
0.164234
1a7e3e87f84ae18c2e3e70c21079daec01376fa1
2,433
py
Python
compaction.py
robbassi/kvs
3242a70f9f214f90b2fa540f1049e836b62932d2
[ "MIT" ]
1
2020-10-07T16:47:07.000Z
2020-10-07T16:47:07.000Z
compaction.py
robbassi/kvs
3242a70f9f214f90b2fa540f1049e836b62932d2
[ "MIT" ]
7
2020-10-07T17:42:13.000Z
2020-12-15T00:43:41.000Z
compaction.py
robbassi/kvs
3242a70f9f214f90b2fa540f1049e836b62932d2
[ "MIT" ]
1
2020-10-07T16:49:06.000Z
2020-10-07T16:49:06.000Z
import sys from common import TOMBSTONE, Value from binio import kv_iter, kv_writer from typing import List, Optional, Tuple from os import scandir, stat from sstable import SSTable MIN_THRESHOLD = 4 MIN_SIZE = 50000000 class Bucket: def __init__(self): self.min = 0 self.max = 0 self.avg ...
31.192308
86
0.594328
855
0.351418
0
0
0
0
0
0
115
0.047267
1a7ee06ae12edb30e9d03447739bff0ec37db3b6
8,002
py
Python
mrl/configs/make_continuous_agents.py
nicolascastanet/mrl
0623c40c3e03c6a4d3e495426eae765d9f8aa751
[ "MIT" ]
null
null
null
mrl/configs/make_continuous_agents.py
nicolascastanet/mrl
0623c40c3e03c6a4d3e495426eae765d9f8aa751
[ "MIT" ]
null
null
null
mrl/configs/make_continuous_agents.py
nicolascastanet/mrl
0623c40c3e03c6a4d3e495426eae765d9f8aa751
[ "MIT" ]
null
null
null
from mrl.import_all import * from argparse import Namespace import gym import time def make_ddpg_agent(base_config=default_ddpg_config, args=Namespace(env='InvertedPendulum-v2', tb='', parent_folder='/tmp/mrl', ...
35.564444
142
0.622969
0
0
0
0
0
0
0
0
2,423
0.302799
1a80808d8e9e323c40e1bbd90918908a6dd8d9e0
4,036
py
Python
gpuexperiments/old/sharedmemory.py
hughperkins/gpu-experiments
3e5064e45682494be97190558807672b602f1c76
[ "BSD-2-Clause" ]
2
2016-07-05T05:52:18.000Z
2018-04-14T07:35:36.000Z
gpuexperiments/old/sharedmemory.py
hughperkins/gpu-experiments
3e5064e45682494be97190558807672b602f1c76
[ "BSD-2-Clause" ]
null
null
null
gpuexperiments/old/sharedmemory.py
hughperkins/gpu-experiments
3e5064e45682494be97190558807672b602f1c76
[ "BSD-2-Clause" ]
null
null
null
# Note that this will erase your nvidia cache, ~/.nv/ComputeCache This may or may not be an undesirable side-effect for you. For example, cutorch will take 1-2 minutes or so to start after this cache has been emptied. from __future__ import print_function, division import time import string import random import nump...
27.834483
219
0.652131
0
0
0
0
0
0
0
0
1,909
0.472993
1a80cfa10b9df2618d9406f7d94897169d17a59a
4,827
py
Python
activities/boss_db.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
1
2018-08-04T21:57:34.000Z
2018-08-04T21:57:34.000Z
activities/boss_db.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
16
2018-05-21T16:28:10.000Z
2021-03-17T20:15:25.000Z
activities/boss_db.py
jhuapl-boss/boss-tools
2ace8ce2985ffa3c442ed85134d26c76fb5d984f
[ "Apache-2.0" ]
3
2018-02-08T16:45:59.000Z
2018-03-22T15:26:14.000Z
# Copyright 2020 The Johns Hopkins University Applied Physics Laboratory # # 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...
33.061644
117
0.617982
0
0
0
0
0
0
0
0
3,053
0.632484
1a81385c1aeda3274db449a3e0247ddc02d27f2f
15,454
py
Python
DataWrangler.py
AlexLamson/DataWrangler
3d4b64c30d708a55f4423a486ec9559f087c5acd
[ "MIT" ]
12
2018-08-15T15:12:52.000Z
2021-11-21T16:04:52.000Z
DataWrangler.py
AlexLamson/DataWrangler
3d4b64c30d708a55f4423a486ec9559f087c5acd
[ "MIT" ]
19
2018-06-04T15:11:01.000Z
2019-10-09T13:16:02.000Z
DataWrangler.py
AlexLamson/DataWrangler
3d4b64c30d708a55f4423a486ec9559f087c5acd
[ "MIT" ]
1
2019-04-09T16:23:30.000Z
2019-04-09T16:23:30.000Z
import sublime import sublime_plugin from collections import defaultdict from math import log10, floor, ceil import threading from subprocess import check_output import re import itertools # pass in a variable name and an optional default value # to get what that value is set to in settings def settings(name, default...
32.81104
123
0.631616
12,588
0.814546
0
0
0
0
0
0
4,088
0.264527
1a8180645e23b18d704d5f3aab84f4eda829d302
507
py
Python
resources/rasanlu/test.py
pmelet/tcnlu
4ad9267de4f2d3d269be5e7adb70686d4935865c
[ "Apache-2.0" ]
1
2018-09-13T08:36:15.000Z
2018-09-13T08:36:15.000Z
resources/rasanlu/test.py
pmelet/tcnlu
4ad9267de4f2d3d269be5e7adb70686d4935865c
[ "Apache-2.0" ]
6
2018-09-13T09:37:32.000Z
2018-09-26T07:54:59.000Z
resources/rasanlu/test.py
pmelet/tcnlu
4ad9267de4f2d3d269be5e7adb70686d4935865c
[ "Apache-2.0" ]
null
null
null
import sys, json, random from rasa_nlu.model import Interpreter from pprint import pprint interpreter = Interpreter.load("models\\current\\nlu") responses_file = sys.argv[1] responses = json.load(open(responses_file)) while True: question = input("> ") response = interpreter.parse(question) pprint(respo...
24.142857
54
0.70217
0
0
0
0
0
0
0
0
40
0.078895
1a823f974ae1e361b95b99be09d1646e08691c04
204
py
Python
Dataset/Leetcode/test/125/253.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/125/253.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
Dataset/Leetcode/test/125/253.py
kkcookies99/UAST
fff81885aa07901786141a71e5600a08d7cb4868
[ "MIT" ]
null
null
null
class Solution(object): def XXX(self, s): """ :type s: str :rtype: bool """ s = "".join([ch.lower() for ch in s if ch.isalnum()]) return s == s[::-1]
20.4
61
0.426471
201
0.985294
0
0
0
0
0
0
59
0.289216