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
18ad36444d5128007b08506ac3f31875adc10b4d
127
py
Python
books/SystemProgramming/ch4_advanced/echo_command.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch4_advanced/echo_command.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
books/SystemProgramming/ch4_advanced/echo_command.py
zeroam/TIL
43e3573be44c7f7aa4600ff8a34e99a65cbdc5d1
[ "MIT" ]
null
null
null
from subprocess import Popen, PIPE cmd = "echo hello world" p = Popen(cmd, shell=True, stdout=PIPE) ret, err = p.communicate()
25.4
39
0.724409
0
0
0
0
0
0
0
0
18
0.141732
18ad5089ae1f33994da7db7c1701301bde09c817
2,238
py
Python
NiaPy/algorithms/basic/bbfwa.py
Flyzoor/NiaPy
fec1faee0f215cc3a6c2c967ec77dcbe2cbffa42
[ "MIT" ]
null
null
null
NiaPy/algorithms/basic/bbfwa.py
Flyzoor/NiaPy
fec1faee0f215cc3a6c2c967ec77dcbe2cbffa42
[ "MIT" ]
null
null
null
NiaPy/algorithms/basic/bbfwa.py
Flyzoor/NiaPy
fec1faee0f215cc3a6c2c967ec77dcbe2cbffa42
[ "MIT" ]
null
null
null
# encoding=utf8 # pylint: disable=mixed-indentation, trailing-whitespace, multiple-statements, attribute-defined-outside-init, logging-not-lazy import logging from numpy import apply_along_axis, argmin from NiaPy.algorithms.algorithm import Algorithm logging.basicConfig() logger = logging.getLogger('NiaPy.algorithms.b...
32.434783
204
0.707328
1,786
0.797678
0
0
0
0
0
0
1,280
0.571684
18ae5fde1fdfdd5b09f5207f83e23ef0e8f54a07
854
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/configelement/stack/ripng_template.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files class RIPng(Base): __slots__ = () _SDM_NAME = 'ripng' _SDM_ATT_MAP = { 'RIPng Header': 'ripng.header.ripngHeader', 'Route Table entries': 'ripng.header.routeTableEntries', } def __init__(self, parent):...
30.5
94
0.701405
771
0.90281
0
0
382
0.447307
0
0
135
0.15808
18af0a7d2a7ce2d43b7672a9c24d93c96068fd61
1,083
py
Python
backend/feedback/migrations/0001_initial.py
kylecarter/ict4510-advwebdvlp
0360b2353535611a6b3dd79cefe2d5780d027511
[ "Apache-2.0" ]
null
null
null
backend/feedback/migrations/0001_initial.py
kylecarter/ict4510-advwebdvlp
0360b2353535611a6b3dd79cefe2d5780d027511
[ "Apache-2.0" ]
null
null
null
backend/feedback/migrations/0001_initial.py
kylecarter/ict4510-advwebdvlp
0360b2353535611a6b3dd79cefe2d5780d027511
[ "Apache-2.0" ]
null
null
null
# Generated by Django 2.1.3 on 2018-11-18 02:34 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Conversation', fields=[ ('id', models.AutoF...
40.111111
152
0.626962
990
0.914127
0
0
0
0
0
0
286
0.264081
18b132a361a1a147d36815958a1a5e8956b159fc
6,050
py
Python
ktaned/bomb.py
MartinHarding/ktaned
b38fb91b4e2d370d20310e472863766007d4adb3
[ "MIT" ]
1
2017-12-02T21:21:37.000Z
2017-12-02T21:21:37.000Z
ktaned/bomb.py
MartinHarding/ktaned
b38fb91b4e2d370d20310e472863766007d4adb3
[ "MIT" ]
22
2017-12-02T05:15:32.000Z
2018-07-24T02:04:56.000Z
ktaned/bomb.py
MartinHarding/ktaned
b38fb91b4e2d370d20310e472863766007d4adb3
[ "MIT" ]
2
2017-12-01T23:49:17.000Z
2017-12-27T17:05:03.000Z
import random class Bomb(object): """Represents the Bomb context that modules should compute against""" def __init__(self): super(Bomb, self).__init__() self.valid_battery_types = ['AA', 'D'] self.valid_ports = ['DVI-D', 'Parallel', 'PS/2', 'RJ-45', 'Seria...
31.842105
79
0.571074
6,033
0.99719
0
0
0
0
0
0
2,773
0.458347
18b146154d393893b10c35ac0c235675a70fdc26
1,377
py
Python
Aula19/ex09.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
Aula19/ex09.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
Aula19/ex09.py
danicon/MD3-Curso_Python
3d419d440d3b28adb5c019268f4b217e7d0ce45a
[ "MIT" ]
null
null
null
jogador = dict() partidas = list() jogador['nome'] = str(input('Nome do jogador: ')) tot = int(input(f'Quantas partidas {jogador["nome"]} jogou? ')) for c in range(0, tot): partidas.append(int(input(f' Quantos gols na partida {c}? '))) jogador['gols'] = partidas[:] jogador['total'] = sum(partidas) print(30*'-=')...
31.295455
76
0.600581
0
0
0
0
0
0
0
0
1,014
0.736383
18b187b96d4e16d8219c2f6163b45c5b1b15ce59
2,832
py
Python
hummingbot/core/data_type/kline_stream_tracker.py
gmfang/hummingbot
fbdf516903c3b98c8447e4dc1bdceee6607b20ab
[ "Apache-2.0" ]
null
null
null
hummingbot/core/data_type/kline_stream_tracker.py
gmfang/hummingbot
fbdf516903c3b98c8447e4dc1bdceee6607b20ab
[ "Apache-2.0" ]
null
null
null
hummingbot/core/data_type/kline_stream_tracker.py
gmfang/hummingbot
fbdf516903c3b98c8447e4dc1bdceee6607b20ab
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import asyncio from abc import abstractmethod, ABC from enum import Enum import logging from typing import ( Optional, List, Deque ) from hummingbot.logger import HummingbotLogger from hummingbot.core.data_type.kline_stream_tracker_data_source import \ KlineStreamTrackerDataSource...
28.897959
166
0.67161
2,393
0.844986
0
0
871
0.307556
56
0.019774
355
0.125353
18b20197ca16f4d94391b3685611593c8849a3d6
23,599
py
Python
cogs/management.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
cogs/management.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
cogs/management.py
xthecoolboy/MizaBOT
fb8a449bde29fdf1d32b5a597e48e6b3463dd867
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import asyncio from datetime import datetime, timedelta import psutil # Bot related commands class Management(commands.Cog): """Bot related commands. Might require some mod powers in your server""" def __init__(self, bot): self.bot = bot ...
59.593434
695
0.604221
23,575
0.993594
0
0
22,665
0.955241
20,855
0.878956
4,933
0.207907
18b252f0addcf4c4512b055a5ed661c24cb4f654
3,658
py
Python
interpreter.py
Wheatwizard/Lost
59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350
[ "MIT" ]
13
2017-08-10T21:54:12.000Z
2021-12-08T12:50:31.000Z
interpreter.py
Wheatwizard/Lost
59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350
[ "MIT" ]
null
null
null
interpreter.py
Wheatwizard/Lost
59281e2e8ab6f0fd35b8496b5f04b2a4a8d7b350
[ "MIT" ]
null
null
null
from Stack import Stack from random import randint class Interpreter(object): def __init__(self,source,input,startx=None,starty=None,dir=None): source = source.strip().split("\n") dim = max(map(len,source)+[len(source)]) self.source = [list(x.ljust(dim,"."))for x in source] self.dim = (len(self.source),len(se...
29.983607
70
0.617824
3,605
0.985511
0
0
0
0
0
0
115
0.031438
18b25e53c1ed1abb7bdec386aaba62360b44deb4
1,826
py
Python
masterStock.py
Coway/premeStock
27106fd581b71df1729f94a79f5a6a10b41ece00
[ "MIT" ]
69
2017-03-09T00:24:09.000Z
2021-11-15T05:52:09.000Z
masterStock.py
Coway/premeStock
27106fd581b71df1729f94a79f5a6a10b41ece00
[ "MIT" ]
12
2017-03-11T04:31:29.000Z
2018-06-21T03:54:28.000Z
masterStock.py
supthunder/premeStock
27106fd581b71df1729f94a79f5a6a10b41ece00
[ "MIT" ]
19
2017-03-05T22:16:37.000Z
2020-06-23T22:41:33.000Z
import requests from bs4 import BeautifulSoup import json def loadMasterStock(): url = "http://www.supremenewyork.com/mobile_stock.json" user = {"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.4.6 (KHTML, like Gecko) Version/10.0 Mobile/14D27 Safari/602.1"} # user = {"User-Ag...
41.5
161
0.680723
0
0
0
0
0
0
0
0
845
0.46276
18b566b173e3af542df61de7dc132ac1fb281305
231
py
Python
tests/WebkitGtkDriverBenchmarkTest.py
hiroshitoda/WebDriverBenchmark.py
74b643b9f299436ef6fb50741a60f04c0c69cf8c
[ "Apache-2.0" ]
null
null
null
tests/WebkitGtkDriverBenchmarkTest.py
hiroshitoda/WebDriverBenchmark.py
74b643b9f299436ef6fb50741a60f04c0c69cf8c
[ "Apache-2.0" ]
null
null
null
tests/WebkitGtkDriverBenchmarkTest.py
hiroshitoda/WebDriverBenchmark.py
74b643b9f299436ef6fb50741a60f04c0c69cf8c
[ "Apache-2.0" ]
null
null
null
import unittest from selenium import webdriver from tests import Base class WebKitGTKDriverBenchmarkTest(Base.Base): def getDriver(self): return webdriver.WebKitGTK() if __name__ == "__main__": unittest.main()
16.5
46
0.74026
109
0.471861
0
0
0
0
0
0
10
0.04329
18b58622c0bb04c070be5b53bb5876f7354aa18d
18,442
py
Python
utils/create_cropped_motion_dataset.py
maheriya/tennisLabels
d363addcd043dba731aebf1f4a5abb86ef434ac5
[ "MIT" ]
null
null
null
utils/create_cropped_motion_dataset.py
maheriya/tennisLabels
d363addcd043dba731aebf1f4a5abb86ef434ac5
[ "MIT" ]
null
null
null
utils/create_cropped_motion_dataset.py
maheriya/tennisLabels
d363addcd043dba731aebf1f4a5abb86ef434ac5
[ "MIT" ]
null
null
null
#!/usr/bin/env python # # Given a VOC dataset of TENNIS videos dumped at 1920x1080 resolution, this script creates a # scaled and cropped dataset. Even though the cropped zone size is static (1280x720/640x360) # crop scale), the zones themselves are dynamically selected based on the objects locations # (by reading the...
46.570707
131
0.612244
0
0
0
0
0
0
0
0
8,258
0.447782
18b5cd9e5d6c9c3f826dbcf798680d452eb2f577
5,454
py
Python
tests/unit/core/test_core_config.py
Mbompr/fromconfig
eb34582c79a9a9e3b9e60d41fec2ac6a619e9c27
[ "Apache-2.0" ]
19
2021-03-18T16:48:03.000Z
2022-03-02T13:09:21.000Z
tests/unit/core/test_core_config.py
Mbompr/fromconfig
eb34582c79a9a9e3b9e60d41fec2ac6a619e9c27
[ "Apache-2.0" ]
3
2021-04-23T23:03:29.000Z
2021-05-11T14:09:16.000Z
tests/unit/core/test_core_config.py
Mbompr/fromconfig
eb34582c79a9a9e3b9e60d41fec2ac6a619e9c27
[ "Apache-2.0" ]
3
2021-04-19T22:05:34.000Z
2022-02-21T11:32:16.000Z
"""Tests for core.config.""" import json import yaml from pathlib import Path import pytest import fromconfig def test_core_config_no_jsonnet(tmpdir, monkeypatch): """Test jsonnet missing handling.""" monkeypatch.setattr(fromconfig.core.config, "_jsonnet", None) # No issue to dump even if missing ...
31.894737
113
0.565457
0
0
0
0
4,088
0.749542
0
0
1,666
0.305464
18b6001fed8371bb91ce9e52ae604dbe21d1ea14
5,353
py
Python
release.py
dhleong/beholder
1459c67907c436f6abc2abcd82c817e177fcd85f
[ "MIT" ]
4
2020-03-11T01:35:42.000Z
2021-08-31T20:18:22.000Z
release.py
dhleong/beholder
1459c67907c436f6abc2abcd82c817e177fcd85f
[ "MIT" ]
15
2018-04-29T20:25:14.000Z
2020-03-14T13:44:59.000Z
release.py
dhleong/beholder
1459c67907c436f6abc2abcd82c817e177fcd85f
[ "MIT" ]
1
2020-10-27T22:43:46.000Z
2020-10-27T22:43:46.000Z
#!/usr/bin/env python # # Release script for beholder # import hashlib import urllib from collections import OrderedDict try: from hostage import * #pylint: disable=unused-wildcard-import,wildcard-import except ImportError: print "!! Release library unavailable." print "!! Use `pip install hostage` to fi...
27.172589
82
0.64618
0
0
0
0
0
0
0
0
1,964
0.366897
18b65fdb2a140d38c3ae1d51c5156e9061a7ade5
881
py
Python
cmsplugin_cascade/migrations/0003_inlinecascadeelement.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
cmsplugin_cascade/migrations/0003_inlinecascadeelement.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
cmsplugin_cascade/migrations/0003_inlinecascadeelement.py
aDENTinTIME/djangocms-cascade
c38c1c5ad052dbe233b50fb833ad8e9a919014f2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import jsonfield.fields class Migration(migrations.Migration): dependencies = [ ('cmsplugin_cascade', '0002_auto_20150530_1018'), ] operations = [ migrations.CreateModel( ...
31.464286
152
0.611805
748
0.849035
0
0
0
0
0
0
211
0.239501
18b6ab1df2a80e856e7bccdd1594333d60103c4a
366
py
Python
SmartWaiterAPI/API/collections/goeswellwith_operations.py
KyrumX/project78-api
334b4781a4488cf53b360f75b9f3265e40ebf8b4
[ "MIT" ]
null
null
null
SmartWaiterAPI/API/collections/goeswellwith_operations.py
KyrumX/project78-api
334b4781a4488cf53b360f75b9f3265e40ebf8b4
[ "MIT" ]
null
null
null
SmartWaiterAPI/API/collections/goeswellwith_operations.py
KyrumX/project78-api
334b4781a4488cf53b360f75b9f3265e40ebf8b4
[ "MIT" ]
null
null
null
from API.models import GoesWellWith, Menu def get_goeswellwith_items(menuitem1): entries = GoesWellWith.objects.filter(menuitem1=menuitem1) result = [] if entries.count() <= 0: result.append('None') return result else: for e in entries: result.append(Menu.objects.g...
24.4
67
0.661202
0
0
0
0
0
0
0
0
6
0.016393
18b77fe12dbcd84b5d365548128c4a03151b1396
3,949
py
Python
src/simulator/simulator.py
ed741/PathBench
50fe138eb1f824f49fe1a862705e435a1c3ec3ae
[ "BSD-3-Clause" ]
46
2020-12-25T04:09:15.000Z
2022-03-25T12:32:42.000Z
src/simulator/simulator.py
ed741/PathBench
50fe138eb1f824f49fe1a862705e435a1c3ec3ae
[ "BSD-3-Clause" ]
36
2020-12-21T16:10:02.000Z
2022-01-03T01:42:01.000Z
src/simulator/simulator.py
judicaelclair/PathBenchURO
101e67674efdfa8e27e1cf7787dac9fdf99552fe
[ "BSD-3-Clause" ]
11
2021-01-06T23:34:12.000Z
2022-03-21T17:21:47.000Z
from typing import Optional from algorithms.basic_testing import BasicTesting from simulator.controllers.main_controller import MainController from simulator.controllers.map.map_controller import MapController from simulator.controllers.gui.gui_controller import GuiController from simulator.models.main_model import M...
34.640351
95
0.683971
3,072
0.777918
0
0
76
0.019245
0
0
594
0.150418
18b7fbb4733a21ef838f96c25af5f53f3a7b8f73
1,445
py
Python
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp_byproduct/models/mrp_subproduct.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
1
2019-12-19T01:53:13.000Z
2019-12-19T01:53:13.000Z
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp_byproduct/models/mrp_subproduct.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
apps/odoo/lib/odoo-10.0.post20170615-py2.7.egg/odoo/addons/mrp_byproduct/models/mrp_subproduct.py
gtfarng/Odoo_migrade
9cc28fae4c379e407645248a29d22139925eafe7
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo import api, fields, models, _ from odoo.addons import decimal_precision as dp class MrpSubProduct(models.Model): _name = 'mrp.subproduct' _description = 'Byproduct' product_id = fields.Many2one('...
40.138889
125
0.665744
1,254
0.86782
0
0
687
0.475433
0
0
482
0.333564
18b95560e12ae1f8ecbf164d50ad646b8d18c3b3
126
py
Python
contacts/urls.py
HaraDev001/RealEstate-Backend
db2ae8d143bd15fbb49432ae8b14fd3bf8e6dd1c
[ "MIT" ]
2
2021-05-17T18:02:36.000Z
2021-05-17T18:02:44.000Z
contacts/urls.py
HaraDev001/RealEstate-Backend
db2ae8d143bd15fbb49432ae8b14fd3bf8e6dd1c
[ "MIT" ]
null
null
null
contacts/urls.py
HaraDev001/RealEstate-Backend
db2ae8d143bd15fbb49432ae8b14fd3bf8e6dd1c
[ "MIT" ]
null
null
null
from django.urls import path from .views import ContactCreateView urlpatterns = [ path('',ContactCreateView.as_view()), ]
21
41
0.753968
0
0
0
0
0
0
0
0
2
0.015873
18b9e35412962cc6d7d17f54bab50f62ce2c5c9d
410
py
Python
Python_do_zero_Guanabara/04_CondiçõesEmPython/aula/aula15.py
HenriqueSOliver/Projetos_Python
f18c5a343ad1b746a12bd372298b2debe9bc65ec
[ "MIT" ]
null
null
null
Python_do_zero_Guanabara/04_CondiçõesEmPython/aula/aula15.py
HenriqueSOliver/Projetos_Python
f18c5a343ad1b746a12bd372298b2debe9bc65ec
[ "MIT" ]
null
null
null
Python_do_zero_Guanabara/04_CondiçõesEmPython/aula/aula15.py
HenriqueSOliver/Projetos_Python
f18c5a343ad1b746a12bd372298b2debe9bc65ec
[ "MIT" ]
null
null
null
# modelo anterior - Enquanto cont até 10 for verdade, será repetido cont = 1 while cont <= 10: print(cont, ' ...', end='') cont += 1 print('FIM') # Usando o Enquanto VERDADE ele vai repetir para sempre, temos que colocar uma condição PARA=BREAK n = s = 0 while True: n = int(input('Digite um número: [Digi...
27.333333
98
0.62439
0
0
0
0
0
0
0
0
245
0.590361
18bb4104d3cd6b1e910557e18aee65ea9222b8ce
1,124
py
Python
internal/handlers/lebanon.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
null
null
null
internal/handlers/lebanon.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
20
2019-10-20T11:27:38.000Z
2022-03-12T00:28:17.000Z
internal/handlers/lebanon.py
fillingthemoon/cartogram-web
58b645bca0c22b9bccdb2a5a8213a5a24a7e5958
[ "MIT" ]
16
2019-08-22T04:49:44.000Z
2021-06-09T04:44:57.000Z
import settings import handlers.base_handler import csv class CartogramHandler(handlers.base_handler.BaseCartogramHandler): def get_name(self): return "Lebanon" def get_gen_file(self): return "{}/lbn_processedmap.json".format(settings.CARTOGRAM_DATA_DIR) def validate_values(self, val...
28.1
319
0.623665
1,066
0.948399
0
0
0
0
0
0
340
0.302491
18bbd1f2f3931ba0aa7f9a0bc9c67949e29e02ad
11,184
py
Python
routes/GetFeed/insta_crawling 복사본/ScrollFeed.py
akalswl14/styltebox_manageweb
5d0e33435a7456387d28b6b58762912d0552a717
[ "MIT" ]
null
null
null
routes/GetFeed/insta_crawling 복사본/ScrollFeed.py
akalswl14/styltebox_manageweb
5d0e33435a7456387d28b6b58762912d0552a717
[ "MIT" ]
2
2021-03-31T20:20:47.000Z
2021-12-13T20:50:07.000Z
routes/GetFeed/insta_crawling 복사본/ScrollFeed.py
akalswl14/styltebox_manageweb
5d0e33435a7456387d28b6b58762912d0552a717
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import urllib.request from urllib.request import urlopen # 인터넷 url를 열어주는 패키지 from urllib.parse import quote_plus # 한글을 유니코드 형식으로 변환해줌 from bs4 import BeautifulSoup from selenium import webdriver # webdriver 가져오기 import time # 크롤링 중 시간 대기를 위한 패키지 from time import sleep import warn...
36.429967
109
0.630097
0
0
0
0
0
0
0
0
3,386
0.288465
18bca4227b43e8db0e3b74e9fc679d7c822dc33c
358
py
Python
option.py
ujiro99/python_cli_sample
34e39e05722ebba3b539861b6567aeecb93a818f
[ "MIT" ]
null
null
null
option.py
ujiro99/python_cli_sample
34e39e05722ebba3b539861b6567aeecb93a818f
[ "MIT" ]
null
null
null
option.py
ujiro99/python_cli_sample
34e39e05722ebba3b539861b6567aeecb93a818f
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import click @click.command() @click.option('-n', '--name', default='World', help='Greeting partner') def cmd(name): """ Show greeting message. :type name: str """ msg = 'Hello, {name}!'.format(name=name) click.echo(msg) def main(): cmd() ...
14.916667
71
0.572626
0
0
0
0
231
0.645251
0
0
165
0.460894
18bcc995a7294c17a7102d9ddff9a88a24d958f1
27
py
Python
itsnp/__init__.py
CaffeineDuck/itsnp-discord-bot
73d8fddc282c0fbc3cdaef81eef3efa9dccacfd8
[ "MIT" ]
null
null
null
itsnp/__init__.py
CaffeineDuck/itsnp-discord-bot
73d8fddc282c0fbc3cdaef81eef3efa9dccacfd8
[ "MIT" ]
null
null
null
itsnp/__init__.py
CaffeineDuck/itsnp-discord-bot
73d8fddc282c0fbc3cdaef81eef3efa9dccacfd8
[ "MIT" ]
null
null
null
from .bot import ItsnpBot
13.5
26
0.777778
0
0
0
0
0
0
0
0
0
0
18be667bef982c766e8e51b2444d4138ae324879
7,182
py
Python
mojo/public/tools/bindings/pylib/parse/mojo_lexer_unittest.py
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
mojo/public/tools/bindings/pylib/parse/mojo_lexer_unittest.py
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
mojo/public/tools/bindings/pylib/parse/mojo_lexer_unittest.py
Acidburn0zzz/chromium-1
4c08f442d2588a2c7cfaa117a55bd87d2ac32f9a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2014 The Chromium 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 mojo_lexer import unittest # Try to load the ply module, if not, then assume it is in the third_party # directory. try: # Disable lint check which ...
44.608696
80
0.632693
5,523
0.769006
0
0
0
0
0
0
1,928
0.268449
18c2d8a09f275424cdb15f2a256534524b3fa369
59
py
Python
glue/admin.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
1
2015-07-29T04:28:26.000Z
2015-07-29T04:28:26.000Z
glue/admin.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
null
null
null
glue/admin.py
Valchris/AngularJS-Django-Template
10c90087984dcd9e6d29380eb4380824e65bcecf
[ "MIT" ]
null
null
null
from django.contrib import admin from glue.models import *
19.666667
32
0.813559
0
0
0
0
0
0
0
0
0
0
18c72218e5a46e6e788b195ce2de8f4c86c23159
444
py
Python
qmt/geometry/geo_data_base.py
basnijholt/qmt
68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4
[ "MIT" ]
null
null
null
qmt/geometry/geo_data_base.py
basnijholt/qmt
68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4
[ "MIT" ]
null
null
null
qmt/geometry/geo_data_base.py
basnijholt/qmt
68f781ff489fd9f5ddc817dacfc8ff3a8fdeb2b4
[ "MIT" ]
null
null
null
from typing import Any, Dict, List from qmt.infrastructure import WithParts class GeoData(WithParts): def __init__(self, lunit: str = "nm"): """Base class for geometry data objects. Parameters ---------- lunit : str, optional Length unit for this geometry, by d...
26.117647
58
0.572072
365
0.822072
0
0
0
0
0
0
192
0.432432
18c9fc293f4846928246ba71ec2d917b2627fc7c
20,166
py
Python
ANSIBLE/library/eos_routemap.py
ayosef/pynet_test
1b750a62467fbbcb2436c035ce49d41b435f45ba
[ "Apache-2.0" ]
null
null
null
ANSIBLE/library/eos_routemap.py
ayosef/pynet_test
1b750a62467fbbcb2436c035ce49d41b435f45ba
[ "Apache-2.0" ]
null
null
null
ANSIBLE/library/eos_routemap.py
ayosef/pynet_test
1b750a62467fbbcb2436c035ce49d41b435f45ba
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # # Copyright (c) 2015, Arista Networks, Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # Redistributions of source code must retain the above copyright notice, # t...
33.1133
82
0.611475
11,540
0.57225
0
0
670
0.033224
0
0
8,028
0.398096
18cbef6584ee81c511138c2578efbf19d3e08e5c
890
py
Python
setup.py
colinfrei/furystoolbox
2a8613393a46ad6ae2ad2c2fa86fd255fea96796
[ "MIT" ]
1
2020-01-03T00:32:35.000Z
2020-01-03T00:32:35.000Z
setup.py
colinfrei/furystoolbox
2a8613393a46ad6ae2ad2c2fa86fd255fea96796
[ "MIT" ]
1
2020-02-08T08:54:31.000Z
2020-02-08T09:31:30.000Z
setup.py
colinfrei/furystoolbox
2a8613393a46ad6ae2ad2c2fa86fd255fea96796
[ "MIT" ]
1
2020-02-08T06:54:29.000Z
2020-02-08T06:54:29.000Z
"""Setup configuration.""" import setuptools from furystoolbox import __version__ with open("README.md", "r") as fh: LONG = fh.read() REQUIRES = ['click>=7.0', 'requests>=2.21.0', 'PyGithub>=1.43.4'] setuptools.setup( name="furystoolbox", version=__version__, author="Joakim So...
26.176471
50
0.62809
0
0
0
0
0
0
0
0
381
0.42809
18cca0ce2ddedc77fe6c967bfef7de9a4fb88942
2,120
py
Python
pythran/tests/cases/sobelfilter.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
1
2018-03-24T00:33:03.000Z
2018-03-24T00:33:03.000Z
pythran/tests/cases/sobelfilter.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
null
null
null
pythran/tests/cases/sobelfilter.py
SylvainCorlay/pythran
908ec070d837baf77d828d01c3e35e2f4bfa2bfa
[ "BSD-3-Clause" ]
1
2017-03-12T20:32:36.000Z
2017-03-12T20:32:36.000Z
#skip.runas import Image; im = Image.open("Scribus.gif"); image_list = list(im.getdata()); cols, rows = im.size; res = range(len(image_list)); sobelFilter(image_list, res, cols, rows) #runas cols = 100; rows = 100 ;image_list=[x%10+y%20 for x in xrange(cols) for y in xrange(rows)]; sobelFilter(image_list, cols, rows) #...
49.302326
183
0.544811
0
0
0
0
0
0
0
0
619
0.291981
18cd66ae12672c4f05fb7afeb5ea83419646d0b9
7,110
py
Python
occam_utils/occam_datasets.py
dschinagl/occam
f001cc3a0bf56687dc4c4bb79385f5d010cdd43e
[ "BSD-3-Clause" ]
1
2022-03-29T07:05:23.000Z
2022-03-29T07:05:23.000Z
occam_utils/occam_datasets.py
dschinagl/occam
f001cc3a0bf56687dc4c4bb79385f5d010cdd43e
[ "BSD-3-Clause" ]
null
null
null
occam_utils/occam_datasets.py
dschinagl/occam
f001cc3a0bf56687dc4c4bb79385f5d010cdd43e
[ "BSD-3-Clause" ]
null
null
null
import numpy as np import torch from spconv.pytorch.utils import PointToVoxel from scipy.spatial.transform import Rotation from pcdet.datasets import DatasetTemplate class BaseDataset(DatasetTemplate): """ OpenPCDet dataset to load and preprocess the point cloud """ def __init__(self, data_config, c...
35.909091
87
0.610689
6,936
0.975527
0
0
0
0
0
0
2,112
0.297046
18ceea770cb8f269d967cd89240a6533d6cf62a5
5,840
py
Python
utils/calibration_module.py
choushunn/holography_test
79100f8b955683afd47e63e2762d6945d6b14e34
[ "CC-BY-3.0" ]
null
null
null
utils/calibration_module.py
choushunn/holography_test
79100f8b955683afd47e63e2762d6945d6b14e34
[ "CC-BY-3.0" ]
null
null
null
utils/calibration_module.py
choushunn/holography_test
79100f8b955683afd47e63e2762d6945d6b14e34
[ "CC-BY-3.0" ]
1
2021-12-24T04:18:22.000Z
2021-12-24T04:18:22.000Z
""" This is the script containing the calibration module, basically calculating homography matrix. This code and data is released under the Creative Commons Attribution-NonCommercial 4.0 International license (CC BY-NC.) In a nutshell: # The license is only for non-commercial use (commercial licenses can be obtain...
37.677419
136
0.638185
1,374
0.235274
0
0
0
0
0
0
2,004
0.343151
18ceea954bda99122d17bf7b1a926a3bf8227da9
270
py
Python
Main/apps.py
Naretto95/Django-Vault
36fac69873c844bf72732ff635513f0204b7d61a
[ "MIT" ]
null
null
null
Main/apps.py
Naretto95/Django-Vault
36fac69873c844bf72732ff635513f0204b7d61a
[ "MIT" ]
null
null
null
Main/apps.py
Naretto95/Django-Vault
36fac69873c844bf72732ff635513f0204b7d61a
[ "MIT" ]
null
null
null
from django.apps import AppConfig from django.contrib.admin.apps import AdminConfig class AdminSiteConfig(AdminConfig): default_site = 'Main.admin.MyAdminSite' class MainConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'Main'
27
56
0.781481
182
0.674074
0
0
0
0
0
0
61
0.225926
18d163664110bd63d5393ef2d5efd9b345f52613
38
py
Python
researchutils/task/__init__.py
yuishihara/researchutils
bb3ec467386d43a1e2282ec6d024216ce4dae841
[ "MIT" ]
1
2018-09-06T00:54:49.000Z
2018-09-06T00:54:49.000Z
researchutils/task/__init__.py
yuishihara/researchutils
bb3ec467386d43a1e2282ec6d024216ce4dae841
[ "MIT" ]
28
2018-08-25T03:54:30.000Z
2018-10-14T12:09:47.000Z
researchutils/task/__init__.py
yuishihara/researchutils
bb3ec467386d43a1e2282ec6d024216ce4dae841
[ "MIT" ]
null
null
null
from researchutils.task import plotter
38
38
0.894737
0
0
0
0
0
0
0
0
0
0
18d43cd8f5f88ffb19e9b4a5bb9e768fb2646c67
220,532
py
Python
venv/lib/python3.8/site-packages/aws_cdk/aws_kinesis/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
venv/lib/python3.8/site-packages/aws_cdk/aws_kinesis/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
venv/lib/python3.8/site-packages/aws_cdk/aws_kinesis/__init__.py
harun-vit/aws-cdk-pipelines-demo
7e7faeee112c3dca718613fa8a1fba80d2116bac
[ "MIT-0" ]
null
null
null
''' # Amazon Kinesis Construct Library <!--BEGIN STABILITY BANNER-->--- ![cfn-resources: Stable](https://img.shields.io/badge/cfn--resources-stable-success.svg?style=for-the-badge) ![cdk-constructs: Stable](https://img.shields.io/badge/cdk--constructs-stable-success.svg?style=for-the-badge) --- <!--END STABILITY B...
60.635689
468
0.68824
210,958
0.956587
0
0
211,844
0.960604
0
0
138,807
0.629419
18d5365ed6c594ed06788598b0b869b72340bab9
2,752
py
Python
model.py
nupurbaghel/Image_Captioning_CV
2af5abe1464006113e38a911ace62faacb9cbbd4
[ "MIT" ]
null
null
null
model.py
nupurbaghel/Image_Captioning_CV
2af5abe1464006113e38a911ace62faacb9cbbd4
[ "MIT" ]
null
null
null
model.py
nupurbaghel/Image_Captioning_CV
2af5abe1464006113e38a911ace62faacb9cbbd4
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torchvision.models as models from torch.nn.utils.rnn import pack_padded_sequence class EncoderCNN(nn.Module): def __init__(self, embed_size): super(EncoderCNN, self).__init__() resnet = models.resnet50(pretrained=True) for param in resnet.parameters...
43
125
0.62936
2,620
0.952035
0
0
0
0
0
0
356
0.12936
18d56845b92528becf4631678e4c6ca21b008e41
965
py
Python
BaseTest/click_button_chrome.py
lloydtawanda/AzurePriceListWebScrapper
0d6e7a38af13cb780a7b04a8832b67a22727e3bc
[ "Apache-2.0" ]
2
2019-07-16T13:49:35.000Z
2021-06-17T22:21:17.000Z
BaseTest/click_button_chrome.py
lloydtawanda/AzurePriceListWebScrapper
0d6e7a38af13cb780a7b04a8832b67a22727e3bc
[ "Apache-2.0" ]
null
null
null
BaseTest/click_button_chrome.py
lloydtawanda/AzurePriceListWebScrapper
0d6e7a38af13cb780a7b04a8832b67a22727e3bc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Jul 16 14:36:46 2019 @author: Tawanda """ import sys import argparse from selenium import webdriver from selenium.common.exceptions import NoSuchElementException if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_arg...
28.382353
85
0.660104
0
0
0
0
0
0
0
0
338
0.350259
18d5b7387f5bbbe02061b184773c4b0590414bd7
22,854
py
Python
hymo/swmmreport.py
lucashtnguyen/hymo
956661401b2ac5220a83349ed15bc1d4bb7d60f4
[ "BSD-3-Clause" ]
4
2017-12-18T17:43:54.000Z
2021-09-29T01:05:33.000Z
hymo/swmmreport.py
lucashtnguyen/hymo
956661401b2ac5220a83349ed15bc1d4bb7d60f4
[ "BSD-3-Clause" ]
30
2017-09-26T22:23:33.000Z
2021-09-03T16:38:18.000Z
hymo/swmmreport.py
lucashtnguyen/hymo
956661401b2ac5220a83349ed15bc1d4bb7d60f4
[ "BSD-3-Clause" ]
2
2017-10-03T01:41:16.000Z
2019-12-17T23:42:42.000Z
from .base_reader import BaseReader import pandas as pd class SWMMReportFile(BaseReader): """ A class to read a SWMM model report file. """ def __init__(self, path): """ Requires: - path: str, the full file path to the existing SWMM model .inp. """ BaseReader.__...
36.801932
141
0.586899
22,792
0.997287
0
0
19,559
0.855824
0
0
7,279
0.3185
18d5cbf8a3d63285ac1fed2569f0fc69a3422e0e
25,917
py
Python
tbip.py
n-longuetmarx/tbip
c6f137167aec8075c2ae98183cdf4c5e7dbc700a
[ "MIT" ]
null
null
null
tbip.py
n-longuetmarx/tbip
c6f137167aec8075c2ae98183cdf4c5e7dbc700a
[ "MIT" ]
null
null
null
tbip.py
n-longuetmarx/tbip
c6f137167aec8075c2ae98183cdf4c5e7dbc700a
[ "MIT" ]
null
null
null
"""Learn ideal points with the text-based ideal point model (TBIP). Let y_{dv} denote the counts of word v in document d. Let x_d refer to the ideal point of the author of document d. Then we model: theta, beta ~ Gamma(alpha, alpha) x, eta ~ N(0, 1) y_{dv} ~ Pois(sum_k theta_dk beta_kv exp(x_d * eta_kv). We perform...
42.141463
80
0.680904
0
0
0
0
0
0
0
0
8,396
0.323957
18d6578d8c4bdcf3e1695a1c9ddbac250283e282
6,138
py
Python
calc/gui.py
tatarskiy-welder/tax_calc
827ec6e174ffc9cfc13e24427307a8a6b85123e0
[ "MIT" ]
null
null
null
calc/gui.py
tatarskiy-welder/tax_calc
827ec6e174ffc9cfc13e24427307a8a6b85123e0
[ "MIT" ]
null
null
null
calc/gui.py
tatarskiy-welder/tax_calc
827ec6e174ffc9cfc13e24427307a8a6b85123e0
[ "MIT" ]
null
null
null
from tkinter import * from tax_profiler import TaxProfile from tkinter import messagebox as mb class Example(Frame, TaxProfile): def __init__(self, parent): TaxProfile.__init__(self) Frame.__init__(self, parent, background="lightblue") parent.minsize(width=500, height=200) parent.m...
33.540984
81
0.564679
6,133
0.954998
0
0
0
0
0
0
1,122
0.174712
18d67d5d9fabdd711ac5fef81a528edb66bc9e9b
136
py
Python
lms_python/lms_app/admin.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
lms_python/lms_app/admin.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
lms_python/lms_app/admin.py
gabrielmdsantos/LMSBD
dff3001a560f8cccb938957bf2d5732d4ae3d163
[ "Apache-2.0" ]
null
null
null
from django.contrib import admin from lms_app.models import Professor admin.site.register(Professor) # Register your models here.
22.666667
37
0.794118
0
0
0
0
0
0
0
0
29
0.213235
18d7a6360616dabd7740bc58273af43b8634ecfa
5,573
py
Python
pymedextcore/normalize.py
equipe22/pymedext_core
578e32fdc015c9b75f566d9e58a8fade889879e7
[ "Apache-2.0" ]
1
2021-02-04T10:33:00.000Z
2021-02-04T10:33:00.000Z
pymedextcore/normalize.py
equipe22/pymedext_core
578e32fdc015c9b75f566d9e58a8fade889879e7
[ "Apache-2.0" ]
4
2020-12-17T09:16:24.000Z
2021-03-26T10:40:30.000Z
pymedextcore/normalize.py
equipe22/pymedext_core
578e32fdc015c9b75f566d9e58a8fade889879e7
[ "Apache-2.0" ]
1
2020-12-17T12:32:50.000Z
2020-12-17T12:32:50.000Z
#!/usr/bin/env python3 from .document import Document from intervaltree import Interval,IntervalTree # from .annotationGraph import AnnotationGraph import logging logger = logging.getLogger(__name__) class normalize: def __setSentencesAndRawText(Document,rootNode): """Build an intervalTree of Annotation...
42.869231
145
0.61134
5,369
0.963395
0
0
902
0.161852
0
0
1,647
0.295532
18d8e4a9db3824bc1bf6d57f22782a4ffcc36549
93
py
Python
phr/dnireniec/apps.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/dnireniec/apps.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/dnireniec/apps.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
from django.apps import AppConfig class DnireniecConfig(AppConfig): name = 'dnireniec'
15.5
33
0.763441
56
0.602151
0
0
0
0
0
0
11
0.11828
18d91850121d98d86b712bda14df3f044488a26e
479
py
Python
Exercício feitos pela primeira vez/ex004colorido.py
Claayton/pythonExerciciosLinux
696cdb16983638418bd0d0d4fe44dc72662b9c97
[ "MIT" ]
1
2021-01-23T15:43:34.000Z
2021-01-23T15:43:34.000Z
Exercício feitos pela primeira vez/ex004colorido.py
Claayton/pythonExerciciosLinux
696cdb16983638418bd0d0d4fe44dc72662b9c97
[ "MIT" ]
null
null
null
Exercício feitos pela primeira vez/ex004colorido.py
Claayton/pythonExerciciosLinux
696cdb16983638418bd0d0d4fe44dc72662b9c97
[ "MIT" ]
null
null
null
#Ex004b algo = (input('\033[34m''Digite algo: ''\033[m')) print('São letras ou palavras?: \033[33m{}\033[m'.format(algo.isalpha())) print('Está em maiúsculo?: \033[34m{}\033[m'.format(algo.isupper())) print('Está em minúsculo?: \033[35m{}\033[m'.format(algo.islower())) print('Está captalizada?: \033[36m{}\033[m'.format...
47.9
73
0.668058
0
0
0
0
0
0
0
0
275
0.562372
18da93de7ae1c7f1f8c72d039c0ee8611ca41811
1,444
py
Python
utilities_common/util_base.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
null
null
null
utilities_common/util_base.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
null
null
null
utilities_common/util_base.py
pettershao-ragilenetworks/sonic-utilities
553936b61a677b95a45a797c0e3ccdaf015cce94
[ "Apache-2.0" ]
null
null
null
import os import sonic_platform # Constants ==================================================================== PDDF_SUPPORT_FILE = '/usr/share/sonic/platform/pddf_support' # Helper classs class UtilHelper(object): def __init__(self): pass # try get information from platform API and return a defa...
28.88
100
0.606648
1,248
0.864266
0
0
0
0
0
0
670
0.463989
18dbd268ee84904b28a7b1eab62ddc99c40934ff
2,900
py
Python
consensus_engine/tests/test_view_create_proposal.py
jonsaunders-git/consensus_engine
6fc2b3df7b342d4dff919969329c8b586e33a9d3
[ "MIT" ]
null
null
null
consensus_engine/tests/test_view_create_proposal.py
jonsaunders-git/consensus_engine
6fc2b3df7b342d4dff919969329c8b586e33a9d3
[ "MIT" ]
4
2021-06-05T00:03:14.000Z
2021-09-22T19:41:03.000Z
consensus_engine/tests/test_view_create_proposal.py
jonsaunders-git/consensus_engine
6fc2b3df7b342d4dff919969329c8b586e33a9d3
[ "MIT" ]
null
null
null
from django.test import TestCase, RequestFactory from .mixins import TwoUserMixin, ProposalGroupMixin, ViewMixin from django.utils import timezone from consensus_engine.views import CreateProposalView from consensus_engine.forms import ProposalForm from consensus_engine.models import Proposal from django.core.exceptio...
46.774194
106
0.632759
2,550
0.87931
0
0
0
0
0
0
481
0.165862
18dc89f687d6010723363d00fb4079f119453e21
290
py
Python
tests/jdi_uitests_webtests/main/page_objects/w3c_site/w3c_site.py
jdi-testing/jdi-python
7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7
[ "MIT" ]
5
2020-02-14T10:32:01.000Z
2021-07-22T08:20:28.000Z
tests/jdi_uitests_webtests/main/page_objects/w3c_site/w3c_site.py
jdi-testing/jdi-python
7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7
[ "MIT" ]
54
2018-07-27T14:07:33.000Z
2021-11-08T09:24:16.000Z
tests/jdi_uitests_webtests/main/page_objects/w3c_site/w3c_site.py
jdi-testing/jdi-python
7c0607b97d4d44b27ea8f532d47c68b8dd00e6f7
[ "MIT" ]
1
2021-01-20T14:31:52.000Z
2021-01-20T14:31:52.000Z
from JDI.web.selenium.elements.composite.web_site import WebSite from tests.jdi_uitests_webtests.main.page_objects.w3c_site.frame_page import FramePage class W3cSite(WebSite): domain = "https://www.w3schools.com" frame_page = FramePage(url="/tags/tag_button.asp", domain=domain)
32.222222
86
0.793103
135
0.465517
0
0
0
0
0
0
49
0.168966
18dca1ce28f6ce9649a6e926a3f6be554544907d
1,382
py
Python
tests/scrapers/test_scraper_composite.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
tests/scrapers/test_scraper_composite.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
tests/scrapers/test_scraper_composite.py
oluiscabral/stockopedia-scraper
1050206d7a534f0e57eee84a5187615dc0af6bd9
[ "MIT" ]
null
null
null
''' @author: oluiscabral ''' import unittest from creationals.scraper_factory import ScraperFactory from helpers.webdriver_factory import WebdriverFactory from actioners.login_control import LoginControl from ui.login_ui import LoginUI from data_structure.data_ref import DataRef class Test(unittest.TestCase): @cla...
34.55
86
0.700434
1,004
0.726483
0
0
265
0.191751
0
0
152
0.109986
18dcab3c94de533e1fad537525409735b1a45b43
22,917
py
Python
deepx/backend/tensorflow.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
74
2015-11-13T02:26:37.000Z
2021-07-29T11:00:45.000Z
deepx/backend/tensorflow.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
21
2015-12-12T20:33:55.000Z
2019-04-03T02:49:42.000Z
deepx/backend/tensorflow.py
sharadmv/deepx
07470e7a579a63427de1d5ff90b9fd00d3f54b61
[ "MIT" ]
19
2015-11-23T10:07:01.000Z
2021-08-30T17:06:00.000Z
import copy import logging import numpy as np import six import tensorflow as tf from functools import wraps from contextlib import contextmanager from .backend_base import BackendBase, FunctionBase, DeviceDecorator try: from tensorflow.contrib.distributions import fill_triangular except: print("Cannot find fi...
33.455474
116
0.595322
22,541
0.983593
211
0.009207
22,018
0.960771
0
0
1,613
0.070384
18dcc7a079d7a14db43a4e9f8cd6c7a80e6794d0
90,257
py
Python
netharn/util/mplutil.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
netharn/util/mplutil.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
netharn/util/mplutil.py
JoshuaBeard/netharn
90773542c47363e663ee58f20fd151eb89bc313b
[ "Apache-2.0" ]
null
null
null
from __future__ import absolute_import, division, print_function import cv2 import pandas as pd import numpy as np import six import ubelt as ub from six.moves import zip_longest from os.path import join, dirname import warnings def multi_plot(xdata=None, ydata=[], **kwargs): r""" plots multiple lines, bars, ...
33.943964
139
0.566649
11,590
0.128391
1,691
0.018732
4,393
0.048665
0
0
34,573
0.382991
18dcca6339890714a53a527f99f816d155ae5c43
4,876
py
Python
mmdeploy/codebase/mmdet/models/roi_heads/test_mixins.py
zhiqwang/mmdeploy
997d111a6f4ca9624ab3b36717748e6ce002037d
[ "Apache-2.0" ]
746
2021-12-27T10:50:28.000Z
2022-03-31T13:34:14.000Z
mmdeploy/codebase/mmdet/models/roi_heads/test_mixins.py
zhiqwang/mmdeploy
997d111a6f4ca9624ab3b36717748e6ce002037d
[ "Apache-2.0" ]
253
2021-12-28T05:59:13.000Z
2022-03-31T18:22:25.000Z
mmdeploy/codebase/mmdet/models/roi_heads/test_mixins.py
zhiqwang/mmdeploy
997d111a6f4ca9624ab3b36717748e6ce002037d
[ "Apache-2.0" ]
147
2021-12-27T10:50:33.000Z
2022-03-30T10:44:20.000Z
# Copyright (c) OpenMMLab. All rights reserved. import torch from mmdeploy.core import FUNCTION_REWRITER @FUNCTION_REWRITER.register_rewriter( 'mmdet.models.roi_heads.test_mixins.BBoxTestMixin.simple_test_bboxes') def bbox_test_mixin__simple_test_bboxes(ctx, self, ...
41.322034
75
0.611567
0
0
0
0
4,764
0.97703
0
0
2,227
0.456727
18dd011d855404f1d1af53f818b57ec996f325ba
1,060
py
Python
examples/props.py
SandNerd/notional
ccab44bc4c5d19d4546156f0d72b22b93e28e2ed
[ "MIT" ]
23
2021-08-03T08:13:14.000Z
2022-03-27T13:13:54.000Z
examples/props.py
SandNerd/notional
ccab44bc4c5d19d4546156f0d72b22b93e28e2ed
[ "MIT" ]
15
2021-08-03T04:04:23.000Z
2022-03-31T14:27:26.000Z
examples/props.py
SandNerd/notional
ccab44bc4c5d19d4546156f0d72b22b93e28e2ed
[ "MIT" ]
3
2021-08-08T04:47:48.000Z
2022-03-06T23:13:52.000Z
#!/usr/bin/env python3 """This script demonstrates setting properties on a page manually. The script accepts a single command line option, which is a page ID. It will then display information about the properties and update a few of them. Note that this script assumes the database has already been created with requ...
25.853659
82
0.756604
0
0
0
0
0
0
0
0
692
0.65283
18dd1d1444e3f06d7820ae1bbcacd5a56dc12c2e
1,116
py
Python
retroroot.py
retroroot-linux/retroroo
07ae0a93f6ea781fa6330a8defdabac9bda82adc
[ "MIT" ]
null
null
null
retroroot.py
retroroot-linux/retroroo
07ae0a93f6ea781fa6330a8defdabac9bda82adc
[ "MIT" ]
null
null
null
retroroot.py
retroroot-linux/retroroo
07ae0a93f6ea781fa6330a8defdabac9bda82adc
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Use this file to setup a build environment.""" import os import argparse from support.linux.log import Log from support.docker_wrapper.retroroot import RetrorootDocker CWD = os.getcwd() def parse_args(args): """Parse arguments. :return: The argument object. """ parser = argp...
24.8
60
0.556452
0
0
0
0
0
0
0
0
290
0.259857
18dd3cd341f57a8da1bfa888190207388f947eb8
1,796
py
Python
grr/test_bench.py
kecho/grr
b6554f20bc8a279bc946a2a0da54d028160d880d
[ "MIT" ]
8
2021-11-08T16:12:25.000Z
2021-12-16T06:41:01.000Z
grr/test_bench.py
kecho/grr
b6554f20bc8a279bc946a2a0da54d028160d880d
[ "MIT" ]
null
null
null
grr/test_bench.py
kecho/grr
b6554f20bc8a279bc946a2a0da54d028160d880d
[ "MIT" ]
null
null
null
import coalpy.gpu as g import numpy as np import math import functools from . import prefix_sum as gpu_prefix_sum def prefix_sum(input_data, is_exclusive = False): accum = 0 output = [] for i in range(0, len(input_data), 1): if is_exclusive: output.append(accum) accum += inp...
32.654545
114
0.698218
0
0
0
0
0
0
0
0
87
0.048441
18dd6ac52fd7ae55fdafeac9d413e2a786dc94b3
3,633
py
Python
code/train.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
code/train.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
code/train.py
ty-on-h12/srgan-pytorch
de0972782200a052a615754b14466f0c495f8b80
[ "MIT" ]
null
null
null
from torchvision.transforms import transforms from torch.utils.data import DataLoader from torchvision.datasets import ImageFolder import torch as T import torch.optim as optim from model import Generator, Discriminator from loss_fn import GeneratorLoss, TVLoss from utils import show_progress, save import datetime impo...
31.318966
138
0.619048
265
0.072942
0
0
0
0
0
0
323
0.088907
18dd7f23d5115fd8f4284ee064ed94347d9523f8
497
py
Python
utils/Formatting.py
levindoneto/lmGen
ffe2150ebff577135efa3d65a845dd3b806a94ed
[ "MIT" ]
5
2018-11-17T17:16:24.000Z
2019-10-17T15:16:37.000Z
utils/Formatting.py
levindoneto/lanGen
ffe2150ebff577135efa3d65a845dd3b806a94ed
[ "MIT" ]
6
2018-02-06T23:05:29.000Z
2019-10-14T02:23:38.000Z
utils/Formatting.py
levindoneto/lmGen
ffe2150ebff577135efa3d65a845dd3b806a94ed
[ "MIT" ]
4
2018-10-29T06:37:58.000Z
2019-10-06T13:51:18.000Z
import re ''' Function for Formatting n-grams. @Parameters: Tuple: n-gram to be formatted. @Return: String: formatted gram. ''' def formatGram(ngram): return re.sub("[(',)]", '', str(ngram)) ''' Function for Formatting sentences. @Parameters: Sentence: unformatted sentence. @Return: String: format...
26.157895
48
0.661972
0
0
0
0
0
0
0
0
274
0.551308
18de55269df5672d53cc5989addf4883d366d066
1,735
py
Python
mkt/users/tasks.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/users/tasks.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
mkt/users/tasks.py
ngokevin/zamboni
a33dcd489175d8e7ba1c02ee4dabb6cfdc405e69
[ "BSD-3-Clause" ]
null
null
null
from datetime import timedelta import commonware.log from celeryutils import task from django.utils.encoding import force_text from tower import ugettext_lazy as _ from mkt.account.utils import fxa_preverify_url from mkt.site.mail import send_html_mail_jinja from mkt.users.models import UserProfile fxa_email_subje...
32.12963
72
0.673199
0
0
0
0
959
0.552738
0
0
429
0.247262
18df2c4ff7c83fc2ff4c4df2ad5efb199366fdfd
82
wsgi
Python
jpmorgan.wsgi
mrukhlov/jpmorgan
ef8f49054772c3f07161f4eaf7c119019ce600e2
[ "Apache-2.0" ]
null
null
null
jpmorgan.wsgi
mrukhlov/jpmorgan
ef8f49054772c3f07161f4eaf7c119019ce600e2
[ "Apache-2.0" ]
null
null
null
jpmorgan.wsgi
mrukhlov/jpmorgan
ef8f49054772c3f07161f4eaf7c119019ce600e2
[ "Apache-2.0" ]
null
null
null
import sys sys.path.insert(0, '/srv/jpmorgan') from app import app as application
20.5
35
0.768293
0
0
0
0
0
0
0
0
15
0.182927
18e485c0872cf9f87d1144effd64d6706192e11d
449
py
Python
examples/plot_voronoi.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
6
2018-03-02T21:02:32.000Z
2020-05-26T08:23:24.000Z
examples/plot_voronoi.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
9
2018-03-02T21:19:26.000Z
2021-07-26T13:54:30.000Z
examples/plot_voronoi.py
smsaladi/msmexplorer
7880545c239c8f33ababdd111f58fd553b8bbdde
[ "MIT" ]
5
2018-02-07T18:42:23.000Z
2021-04-29T07:01:50.000Z
""" Voronoi Plot ============ """ import numpy as np from sklearn.cluster import KMeans import msmexplorer as msme # Create a random dataset across several variables rs = np.random.RandomState(42) n, p = 1000, 2 d = rs.normal(0, 2, (n, p)) d += np.log(np.arange(1, p + 1)) * -5 + 10 # Cluster data using KMeans kmeans...
20.409091
63
0.701559
0
0
0
0
0
0
0
0
132
0.293987
18e6697372af7e5090bad7d69e9278ea7660cfcd
40,586
py
Python
algo_sherbend.py
ymoisan/GeoSim
84f1482c885d7d3b1e07b92dee9580e4bcacf9cb
[ "MIT" ]
null
null
null
algo_sherbend.py
ymoisan/GeoSim
84f1482c885d7d3b1e07b92dee9580e4bcacf9cb
[ "MIT" ]
null
null
null
algo_sherbend.py
ymoisan/GeoSim
84f1482c885d7d3b1e07b92dee9580e4bcacf9cb
[ "MIT" ]
null
null
null
"""This algorithm implements the Wang Generalization algotithm with constraint checking This algorithm simplifies lines. It detects for each line the bends. It analyze the bend and remove the bends that are below a certain diameter. The point and lines that do not need to be simplified are still used to...
33.486799
130
0.567708
39,508
0.973415
0
0
6,966
0.171631
0
0
17,096
0.421219
18e68b384996aec6ddd93fd4e05675ce4c043545
393
py
Python
src/Server/Py_Easy_TCP_Server.py
Moguf/Py_Network
13e351e9955464a5d65bd3dee3642438cfe9ed92
[ "MIT" ]
null
null
null
src/Server/Py_Easy_TCP_Server.py
Moguf/Py_Network
13e351e9955464a5d65bd3dee3642438cfe9ed92
[ "MIT" ]
null
null
null
src/Server/Py_Easy_TCP_Server.py
Moguf/Py_Network
13e351e9955464a5d65bd3dee3642438cfe9ed92
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket port = 12345 MAX_SIZE = 65535 target_address = '127.0.0.1' s = socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.bind((target_address,port)) s.listen(2) conn, addr = s.accept() # conn: socket is the client socket. print(addr, "Now Connected") text = "Thank you for connecting fro...
19.65
52
0.725191
0
0
0
0
0
0
0
0
134
0.340967
18e718827e2560736ccb159689ee15cc3157f2a5
4,084
py
Python
empyric/collection/controllers.py
dmerthe/empyric
7553b71e241709836cdef156afa7dd2a1c1edf5a
[ "MIT" ]
3
2021-01-17T14:05:27.000Z
2022-03-03T06:25:39.000Z
empyric/collection/controllers.py
dmerthe/empyric
7553b71e241709836cdef156afa7dd2a1c1edf5a
[ "MIT" ]
null
null
null
empyric/collection/controllers.py
dmerthe/empyric
7553b71e241709836cdef156afa7dd2a1c1edf5a
[ "MIT" ]
1
2021-01-17T14:05:29.000Z
2021-01-17T14:05:29.000Z
from empyric.adapters import * from empyric.collection.instrument import * class OmegaCN7500(Instrument): """ Omega model CN7500 PID temperature controller """ name = 'OmegaCN7500' supported_adapters = ( (Modbus, {'slave_mode': 'rtu', 'baud_rate': 38400, ...
22.31694
117
0.588149
4,000
0.979432
0
0
2,745
0.672135
0
0
730
0.178746
18e80ab1f054cab4110f82ef2bcc62a0377ee9cd
2,468
py
Python
bot/main.py
the-rango/Discord-Python-Bot-Tutorial
5afa7b0b6b2397a0d566bc6009bb7cac2e4354de
[ "Apache-2.0" ]
null
null
null
bot/main.py
the-rango/Discord-Python-Bot-Tutorial
5afa7b0b6b2397a0d566bc6009bb7cac2e4354de
[ "Apache-2.0" ]
null
null
null
bot/main.py
the-rango/Discord-Python-Bot-Tutorial
5afa7b0b6b2397a0d566bc6009bb7cac2e4354de
[ "Apache-2.0" ]
null
null
null
# APACHE LICENSE # Copyright 2020 Stuart Paterson # # 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 a...
29.380952
82
0.66329
0
0
0
0
1,339
0.542545
1,297
0.525527
1,156
0.468395
18e81c7e28ba4d13c0ba77aba68314299f3e766e
4,945
py
Python
src/main.py
LucidtechAI/auth_example
a370833a16f8345e1e595f1ade3e830f8371157c
[ "Apache-2.0" ]
null
null
null
src/main.py
LucidtechAI/auth_example
a370833a16f8345e1e595f1ade3e830f8371157c
[ "Apache-2.0" ]
null
null
null
src/main.py
LucidtechAI/auth_example
a370833a16f8345e1e595f1ade3e830f8371157c
[ "Apache-2.0" ]
1
2019-03-08T09:52:05.000Z
2019-03-08T09:52:05.000Z
import argparse import json import requests import pathlib from urllib.parse import urlparse from auth import AWSSignatureV4 def create_auth(): return AWSSignatureV4( region='eu-west-1', service='execute-api', aws_access_key=args.access_key_id, aws_secret_key=args.secret_access_ke...
37.180451
121
0.70455
0
0
0
0
0
0
0
0
1,137
0.229929
18e8661bfba7a01963831fc9dac3f2b59f8ea633
2,074
py
Python
examples/set_holidaydates.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
examples/set_holidaydates.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
examples/set_holidaydates.py
ultratolido/ekmmetters
e15325023262e228b4dc037021c28a8d2b9b9b03
[ "MIT" ]
null
null
null
""" Simple example set holiday dates (c) 2016 EKM Metering. """ import random from ekmmeters import * #port setup my_port_name = "COM3" my_meter_address = "300001162" #log to console ekm_set_log(ekm_print_log) # init port and meter port = SerialPort(my_port_name) if (port.initPort() == True): my_meter = V4Meter(...
27.289474
49
0.747348
0
0
0
0
0
0
0
0
887
0.427676
18e9b27e387d5cd010bbb4d876619abf03cb83f9
4,242
py
Python
FCN.py
alexandrefelipemuller/timeseries_shapelet_transferlearning
be19c05ae88c5bf733fedcfed24a7140168f9727
[ "Apache-2.0" ]
null
null
null
FCN.py
alexandrefelipemuller/timeseries_shapelet_transferlearning
be19c05ae88c5bf733fedcfed24a7140168f9727
[ "Apache-2.0" ]
null
null
null
FCN.py
alexandrefelipemuller/timeseries_shapelet_transferlearning
be19c05ae88c5bf733fedcfed24a7140168f9727
[ "Apache-2.0" ]
1
2021-03-31T07:46:37.000Z
2021-03-31T07:46:37.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Sun Oct 30 20:11:19 2016 @author: stephen """ from __future__ import print_function from keras.models import Model from keras.utils import np_utils import numpy as np import os from keras.callbacks import ModelCheckpoint import pandas as pd import sys i...
40.018868
169
0.677982
0
0
0
0
0
0
0
0
1,453
0.342527
18e9e49334b24d6e872726b2848571c7d6855286
624
py
Python
localpackage/calcs.py
chapmanwilliam/Ogden8
e17b26609fc3cdd5650bfeba387bd7253513e00e
[ "Apache-2.0" ]
null
null
null
localpackage/calcs.py
chapmanwilliam/Ogden8
e17b26609fc3cdd5650bfeba387bd7253513e00e
[ "Apache-2.0" ]
null
null
null
localpackage/calcs.py
chapmanwilliam/Ogden8
e17b26609fc3cdd5650bfeba387bd7253513e00e
[ "Apache-2.0" ]
null
null
null
import os indentSize=1 #size of the indent class calcs(): def __init__(self): self.indent=0 self.txt=[] #text for each line def clear(self): self.txt.clear() self.indent=0 def addCalcs(self,calc): s=[' ' * self.indent+ t for t in calc.txt] self.txt += s ...
20.8
50
0.56891
579
0.927885
0
0
0
0
0
0
44
0.070513
18ea5f7f2758aa0649c55416dd1e9152a5f44a15
7,146
py
Python
src/cops_and_robots/fusion/probability.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
3
2016-01-19T17:54:51.000Z
2019-10-21T12:09:03.000Z
src/cops_and_robots/fusion/probability.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
null
null
null
src/cops_and_robots/fusion/probability.py
COHRINT/cops_and_robots
1df99caa1e38bde1b5ce2d04389bc232a68938d6
[ "Apache-2.0" ]
5
2015-02-19T02:53:24.000Z
2019-03-05T20:29:12.000Z
#!/usr/bin/env python from __future__ import division """MODULE_DESCRIPTION""" __author__ = "Nick Sweet" __copyright__ = "Copyright 2015, Cohrint" __credits__ = ["Nick Sweet", "Nisar Ahmed"] __license__ = "GPL" __version__ = "1.0.0" __maintainer__ = "Nick Sweet" __email__ = "[email protected]" __status__ = "Deve...
34.191388
102
0.502379
6,666
0.93283
0
0
0
0
0
0
3,244
0.45396
18ea77727f1cb2220f22073ef4e4393ab431d65a
7,952
py
Python
vulnman/tests/mixins.py
blockomat2100/vulnman
835ff3aae1168d8e2fa5556279bc86efd2e46472
[ "MIT" ]
null
null
null
vulnman/tests/mixins.py
blockomat2100/vulnman
835ff3aae1168d8e2fa5556279bc86efd2e46472
[ "MIT" ]
23
2021-12-01T10:00:38.000Z
2021-12-11T11:43:13.000Z
vulnman/tests/mixins.py
blockomat2100/vulnman
835ff3aae1168d8e2fa5556279bc86efd2e46472
[ "MIT" ]
null
null
null
from django.contrib.auth.models import User, Group from django.utils import timezone from django.conf import settings from django.urls import reverse_lazy from apps.projects.models import Project, Client, ProjectContributor from ddf import G from guardian.shortcuts import assign_perm class VulnmanTestMixin(object): ...
47.616766
111
0.692027
7,661
0.963405
0
0
0
0
0
0
675
0.084884
18ea8109933fbbfe2b0922e33bce91ae934e86e1
2,010
py
Python
StateTracing/tester_helper.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
StateTracing/tester_helper.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
null
null
null
StateTracing/tester_helper.py
junchenfeng/diagnosis_tracing
4e26e2ad0c7abc547f22774b6c9c299999a152c3
[ "MIT" ]
1
2020-09-08T13:42:16.000Z
2020-09-08T13:42:16.000Z
# -*- coding: utf-8 -*- import numpy as np from torch import load as Tload from torch import tensor from dataloader import read_data,DataLoader,load_init from cdkt import CDKT if 'model' not in dir(): model = CDKT() model.load_state_dict(Tload('model.pkl')) # inits = load_init() data = """0...
35.892857
60
0.783085
0
0
0
0
0
0
0
0
1,503
0.747761
18eaed4c6444d0552d8dc7a9cc73624816ce21fa
3,958
py
Python
grpc-errors/stub/hello_pb2.py
twotwo/tools-python
b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4
[ "MIT" ]
null
null
null
grpc-errors/stub/hello_pb2.py
twotwo/tools-python
b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4
[ "MIT" ]
null
null
null
grpc-errors/stub/hello_pb2.py
twotwo/tools-python
b9e7a97e58fb0a3f3fb5e8b674e64a997669c2c4
[ "MIT" ]
1
2016-10-21T07:51:24.000Z
2016-10-21T07:51:24.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: hello.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.protobuf impor...
27.678322
348
0.741031
0
0
0
0
0
0
0
0
1,047
0.264528
18eb73361ec3feb33d8a12b5b8881d917685a4cc
504
py
Python
ckanext-sitemap/ckanext/sitemap/plugin.py
alexandru-m-g/hdx-ckan
647f1f23f0505fa195601245b758edcaf4d25985
[ "Apache-2.0" ]
1
2020-03-07T02:47:15.000Z
2020-03-07T02:47:15.000Z
ckanext-sitemap/ckanext/sitemap/plugin.py
datopian/hdx-ckan
2d8871c035a18e48b53859fec522b997b500afe9
[ "Apache-2.0" ]
null
null
null
ckanext-sitemap/ckanext/sitemap/plugin.py
datopian/hdx-ckan
2d8871c035a18e48b53859fec522b997b500afe9
[ "Apache-2.0" ]
null
null
null
''' Sitemap plugin for CKAN ''' from ckan.plugins import implements, SingletonPlugin from ckan.plugins import IRoutes class SitemapPlugin(SingletonPlugin): implements(IRoutes, inherit=True) def before_map(self, map): controller='ckanext.sitemap.controller:SitemapController' map.connect('sitem...
29.647059
96
0.712302
374
0.742063
0
0
0
0
0
0
147
0.291667
18ebf74aba4efdef03b71cc4501701981953cbd1
3,049
py
Python
experiment_wrapper/__init__.py
stonkens/experiment_wrapper
78b02a09d412097834bc81bba4452db1738b99da
[ "MIT" ]
2
2022-03-24T22:31:20.000Z
2022-03-25T03:26:01.000Z
experiment_wrapper/__init__.py
stonkens/experiment_wrapper
78b02a09d412097834bc81bba4452db1738b99da
[ "MIT" ]
null
null
null
experiment_wrapper/__init__.py
stonkens/experiment_wrapper
78b02a09d412097834bc81bba4452db1738b99da
[ "MIT" ]
null
null
null
from typing import Any, Dict, List class Dynamics: """Provides a template for the functionality required from a dynamics class to interface with the experiment wrapper functionality. A dynamics class must implement the following methods: - n_dims: returns the number of dimensions of the state space ...
32.094737
119
0.700886
2,707
0.887832
0
0
286
0.093801
0
0
1,629
0.534274
18ecd7bb8ba5638e693807de98d542a164bfce66
2,870
py
Python
Figure_2/panel_a_Count_mC_bin.py
Wustl-Zhanglab/Placenta_Epigenome
227f2a42e5c0af821d372b42c9bcf9e561e4627c
[ "MIT" ]
2
2021-06-28T09:16:17.000Z
2021-07-15T02:39:35.000Z
Figure_2/panel_a_Count_mC_bin.py
Wustl-Zhanglab/Placenta_Epigenome
227f2a42e5c0af821d372b42c9bcf9e561e4627c
[ "MIT" ]
null
null
null
Figure_2/panel_a_Count_mC_bin.py
Wustl-Zhanglab/Placenta_Epigenome
227f2a42e5c0af821d372b42c9bcf9e561e4627c
[ "MIT" ]
2
2020-05-29T01:06:19.000Z
2021-07-02T01:04:50.000Z
#!/usr/bin/python # programmer : Bo # usage: Count_Reads_bin.py file_list import sys import re import random import string import time def main(X): try: print 'opening file :',X infile = open(X,"r").readlines() print 'Total ',len(infile),' lines.' return infile except IOError...
27.075472
94
0.444599
0
0
0
0
0
0
0
0
401
0.139721
18ed346e6be46b5b4a74b44f23d751e2dd5b808b
6,648
py
Python
slm_lab/agent/memory/replay.py
jmribeiro/SLM-Lab
7cf7a10e56c9558764544e7683023945c72a42a7
[ "MIT" ]
1,074
2017-11-10T02:20:09.000Z
2022-03-31T18:14:02.000Z
slm_lab/agent/memory/replay.py
jmribeiro/SLM-Lab
7cf7a10e56c9558764544e7683023945c72a42a7
[ "MIT" ]
98
2017-11-04T22:00:01.000Z
2022-03-31T14:13:45.000Z
slm_lab/agent/memory/replay.py
jmribeiro/SLM-Lab
7cf7a10e56c9558764544e7683023945c72a42a7
[ "MIT" ]
229
2018-01-07T22:39:09.000Z
2022-03-20T12:04:31.000Z
from collections import deque from copy import deepcopy from slm_lab.agent.memory.base import Memory from slm_lab.lib import logger, math_util, util from slm_lab.lib.decorator import lab_api import numpy as np import pydash as ps logger = logger.get_logger(__name__) def sample_next_states(head, max_size, ns_idx_offs...
43.168831
170
0.646811
4,864
0.731649
0
0
1,225
0.184266
0
0
3,096
0.465704
18ee4afcda48045a6b4b58a5f641a2905cb15b51
1,958
py
Python
misc/docker/GenDockerfile.py
Wheest/atJIT
7e29862db7b5eb9cee470edeb165380f881903c9
[ "BSD-3-Clause" ]
47
2018-08-03T09:15:08.000Z
2022-02-14T07:06:12.000Z
misc/docker/GenDockerfile.py
Wheest/atJIT
7e29862db7b5eb9cee470edeb165380f881903c9
[ "BSD-3-Clause" ]
15
2018-06-18T19:50:50.000Z
2019-08-29T16:52:11.000Z
misc/docker/GenDockerfile.py
Wheest/atJIT
7e29862db7b5eb9cee470edeb165380f881903c9
[ "BSD-3-Clause" ]
5
2018-08-28T02:35:44.000Z
2021-11-01T06:54:51.000Z
import yaml import sys Head = "# Dockerfile derived from easy::jit's .travis.yml" From = "ubuntu:latest" Manteiner = "Juan Manuel Martinez Caamaño [email protected]" base_packages = ['build-essential', 'python', 'python-pip', 'git', 'wget', 'unzip', 'cmake'] travis = yaml.load(open(sys.argv[1])) travis_source...
35.6
152
0.704801
0
0
0
0
0
0
0
0
1,220
0.622767
18eebda43ebee826c1945694815a04fc15eb96ef
278
py
Python
howareyoutwitter/api/tasks.py
tyheise/how-are-you-twitter
1e4b938381e7d552486e981b0f696f330635ba82
[ "MIT" ]
1
2019-10-24T20:47:24.000Z
2019-10-24T20:47:24.000Z
howareyoutwitter/api/tasks.py
tyheise/how-are-you-twitter
1e4b938381e7d552486e981b0f696f330635ba82
[ "MIT" ]
12
2019-10-22T22:32:40.000Z
2021-01-07T05:13:25.000Z
howareyoutwitter/api/tasks.py
tyheise/how-are-you-twitter
1e4b938381e7d552486e981b0f696f330635ba82
[ "MIT" ]
1
2020-01-02T22:28:52.000Z
2020-01-02T22:28:52.000Z
from api import models from api.twitter_tools.tweet_seeker import TweetSeeker def retrieve_tweets(): tokens = models.Token.objects.all() try: token = tokens[0] except IndexError: token = None t_s = TweetSeeker(token) t_s.run('#vancouver')
19.857143
54
0.672662
0
0
0
0
0
0
0
0
12
0.043165
18ef5021800d056c99fea4a85de29d3c6771923f
390
py
Python
examples/example1.py
wallrj/twisted-names-talk
d3098ab6745abd0d14bb0b6eef41727e5a89de1f
[ "MIT" ]
2
2017-12-01T00:14:25.000Z
2020-07-01T00:27:44.000Z
examples/example1.py
wallrj/twisted-names-talk
d3098ab6745abd0d14bb0b6eef41727e5a89de1f
[ "MIT" ]
null
null
null
examples/example1.py
wallrj/twisted-names-talk
d3098ab6745abd0d14bb0b6eef41727e5a89de1f
[ "MIT" ]
null
null
null
from twisted.internet import task from twisted.names import dns def main(reactor): proto = dns.DNSDatagramProtocol(controller=None) reactor.listenUDP(0, proto) d = proto.query(('8.8.8.8', 53), [dns.Query('www.example.com', dns.AAAA)]) d.addCallback(printResult) return d def printResult(res): ...
24.375
78
0.697436
0
0
0
0
0
0
0
0
37
0.094872
18f0e1c869c59304bc5b9379e901a05831726491
5,975
py
Python
utility.py
ying-wen/pmln
76d82dd620504ac00035d9d0dc9d752cd53518d4
[ "MIT" ]
1
2019-09-10T16:42:34.000Z
2019-09-10T16:42:34.000Z
utility.py
ying-wen/pmln
76d82dd620504ac00035d9d0dc9d752cd53518d4
[ "MIT" ]
null
null
null
utility.py
ying-wen/pmln
76d82dd620504ac00035d9d0dc9d752cd53518d4
[ "MIT" ]
null
null
null
from __future__ import print_function import numpy as np import pandas as pd from sklearn import metrics class Options(object): """Options used by the model.""" def __init__(self): # Model options. # Embedding dimension. self.embedding_size = 32 # The initial learning rate. ...
36.882716
89
0.60887
547
0.091548
2,269
0.379749
0
0
0
0
379
0.063431
18f0f41a4a703e23e45d0e7b9b74208ed5cbd775
1,294
py
Python
setup.py
jeremycline/crochet
ecfc22cefa90f3dfbafa71883c1470e7294f2b6d
[ "MIT" ]
null
null
null
setup.py
jeremycline/crochet
ecfc22cefa90f3dfbafa71883c1470e7294f2b6d
[ "MIT" ]
null
null
null
setup.py
jeremycline/crochet
ecfc22cefa90f3dfbafa71883c1470e7294f2b6d
[ "MIT" ]
1
2020-01-25T18:00:31.000Z
2020-01-25T18:00:31.000Z
try: from setuptools import setup except ImportError: from distutils.core import setup import versioneer def read(path): """ Read the contents of a file. """ with open(path) as f: return f.read() setup( classifiers=[ 'Intended Audience :: Developers', 'License ::...
28.130435
71
0.616692
0
0
0
0
0
0
0
0
675
0.521638
18f12f8a5d648308d20dd8053de45efc7d50fb10
1,071
py
Python
polling_test.py
ngocdh236/pypusu
2453ca4236e4467d4fc0b7dea062ae195183b293
[ "MIT" ]
null
null
null
polling_test.py
ngocdh236/pypusu
2453ca4236e4467d4fc0b7dea062ae195183b293
[ "MIT" ]
null
null
null
polling_test.py
ngocdh236/pypusu
2453ca4236e4467d4fc0b7dea062ae195183b293
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import print_function from builtins import range from past.utils import old_div from pypusu.polling import PuSuClient from time import sleep, time if __name__ == "__main__": print("Connecting") c = PuSuClient("ws://127.0.0.1:55000") count = 0 def listen...
22.3125
74
0.601307
0
0
0
0
0
0
0
0
260
0.242764
18f2ad5a7c870598e6dec3394ee47ca770ec9558
3,289
py
Python
tests/test_nacl.py
intangere/NewHope_X25519_XSalsa20_Poly1305
459914e520bcb5aa207a11533ae217d50719307d
[ "MIT" ]
null
null
null
tests/test_nacl.py
intangere/NewHope_X25519_XSalsa20_Poly1305
459914e520bcb5aa207a11533ae217d50719307d
[ "MIT" ]
1
2021-06-21T03:07:13.000Z
2021-06-21T03:07:13.000Z
tests/test_nacl.py
intangere/NewHope_X25519_XSalsa20_Poly1305
459914e520bcb5aa207a11533ae217d50719307d
[ "MIT" ]
null
null
null
# Import libnacl libs import libnacl import libnacl.utils # Import python libs import unittest class TestPublic(unittest.TestCase): ''' Test public functions ''' def test_gen(self): pk1, sk1 = libnacl.crypto_box_keypair() pk2, sk2 = libnacl.crypto_box_keypair() pk3, sk3 = libn...
38.244186
72
0.663728
3,155
0.959258
0
0
0
0
0
0
254
0.077227
18f2c7ccc01f817c8542ea8ba418a16fde40bf5a
2,815
py
Python
gui.py
flifloo/PyTchat
89e0305557cfedba7637f061184d020ac7f71eeb
[ "MIT" ]
1
2019-07-27T08:43:05.000Z
2019-07-27T08:43:05.000Z
gui.py
flifloo/PyTchat
89e0305557cfedba7637f061184d020ac7f71eeb
[ "MIT" ]
5
2019-07-19T15:11:16.000Z
2019-07-24T15:11:00.000Z
gui.py
flifloo/PyTchat
89e0305557cfedba7637f061184d020ac7f71eeb
[ "MIT" ]
null
null
null
from tkinter import Tk, Frame, Scrollbar, Label, Text, Button, Entry, StringVar, IntVar, TclError from tkinter.messagebox import showerror, showwarning from client import Client from threading import Thread from socket import error as socket_error destroy = False def on_closing(): global destroy destroy = Tr...
27.067308
97
0.628064
0
0
0
0
0
0
0
0
379
0.134636
18f342f2a9acba64d1ea5575f081da8b2ad4064d
281
py
Python
nautobot_secrets_providers/urls.py
jifox/nautobot-plugin-secrets-providers
4d6ca51d0c78b4785f78909b04cf7c7b33c02e5d
[ "Apache-2.0" ]
6
2021-12-22T21:26:12.000Z
2022-02-16T10:00:04.000Z
nautobot_secrets_providers/urls.py
jifox/nautobot-plugin-secrets-providers
4d6ca51d0c78b4785f78909b04cf7c7b33c02e5d
[ "Apache-2.0" ]
9
2021-12-14T13:43:13.000Z
2022-03-29T18:49:55.000Z
nautobot_secrets_providers/urls.py
jifox/nautobot-plugin-secrets-providers
4d6ca51d0c78b4785f78909b04cf7c7b33c02e5d
[ "Apache-2.0" ]
2
2022-02-04T19:11:09.000Z
2022-03-22T16:23:31.000Z
"""Django urlpatterns declaration for nautobot_secrets_providers plugin.""" from django.urls import path from nautobot_secrets_providers import views app_name = "nautobot_secrets_providers" urlpatterns = [ path("", views.SecretsProvidersHomeView.as_view(), name="home"), ]
23.416667
75
0.786477
0
0
0
0
0
0
0
0
111
0.395018
18f380451d6001349051a85381a7ca31b31818f6
1,920
py
Python
nadlogar/quizzes/views.py
LenartBucar/nadlogar
2aba693254d56896419d09e066f91551492f8980
[ "MIT" ]
null
null
null
nadlogar/quizzes/views.py
LenartBucar/nadlogar
2aba693254d56896419d09e066f91551492f8980
[ "MIT" ]
null
null
null
nadlogar/quizzes/views.py
LenartBucar/nadlogar
2aba693254d56896419d09e066f91551492f8980
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.shortcuts import get_object_or_404, redirect, render from .forms import QuizForm from .models import Quiz def _get_quiz_if_allowed(request, quiz_id): quiz = get_object_or_404( Quiz.ob...
28.656716
73
0.690625
0
0
0
0
1,414
0.736458
0
0
210
0.109375
18f4895ff656c51b070791d34f8e28cf58f2c463
6,757
py
Python
cogs/vote.py
FFrost/CBot
aee077ee36462cfef14a3fb2fa5e3c1ffe741064
[ "MIT" ]
4
2018-06-26T08:15:04.000Z
2019-10-09T22:49:38.000Z
cogs/vote.py
FFrost/CBot
aee077ee36462cfef14a3fb2fa5e3c1ffe741064
[ "MIT" ]
null
null
null
cogs/vote.py
FFrost/CBot
aee077ee36462cfef14a3fb2fa5e3c1ffe741064
[ "MIT" ]
null
null
null
import discord from discord.ext import commands import asyncio import time from enum import Enum class VoteType(Enum): POLL = 1 MUTE = 2 class Vote(commands.Cog): def __init__(self, bot): self.bot = bot self.emojis = { "yes": "\N{WHITE HEAVY CHECK MARK}", "no": "\...
35.563158
168
0.557052
6,611
0.978393
0
0
1,928
0.285334
4,735
0.700755
1,396
0.206601
18f4a88074003325bea709addb8e527765d91168
5,227
py
Python
async_limits/storage/memcached.py
anomit/limits
a02d3234664d2b4da9968fd5ad25899ce106517a
[ "MIT" ]
1
2021-06-21T13:51:56.000Z
2021-06-21T13:51:56.000Z
async_limits/storage/memcached.py
anomit/limits
a02d3234664d2b4da9968fd5ad25899ce106517a
[ "MIT" ]
null
null
null
async_limits/storage/memcached.py
anomit/limits
a02d3234664d2b4da9968fd5ad25899ce106517a
[ "MIT" ]
null
null
null
import inspect import threading import time from six.moves import urllib from ..errors import ConfigurationError from ..util import get_dependency from .base import Storage class MemcachedStorage(Storage): """ Rate limit storage with memcached as backend. Depends on the `pymemcache` library. """ ...
32.465839
79
0.543524
5,049
0.965946
0
0
572
0.109432
0
0
1,568
0.299981
18f6a37e4dfb35bf57b4cd1ecadb7071de8cbf6b
4,617
py
Python
floreal/views/view_purchases.py
caracole-io/circuitscourts
4e9279226373ae41eb4d0e0f37f84f12197f34ff
[ "MIT" ]
null
null
null
floreal/views/view_purchases.py
caracole-io/circuitscourts
4e9279226373ae41eb4d0e0f37f84f12197f34ff
[ "MIT" ]
null
null
null
floreal/views/view_purchases.py
caracole-io/circuitscourts
4e9279226373ae41eb4d0e0f37f84f12197f34ff
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import os from django.http import HttpResponse, HttpResponseForbidden from django.shortcuts import render_to_response from django.contrib.auth.decorators import login_required from caracole import settings from .decorators import nw_admin_required from .getters import get_de...
41.972727
118
0.706953
0
0
0
0
3,623
0.782336
0
0
1,172
0.253077
18f75103fffe006c35337768f20ad10b43a5b636
411
py
Python
hack_today_2017/web/web_time_solver.py
runsel/CTF_Writeups
df3d8469b981265d4d43bfc90e75075a95acb1dd
[ "MIT" ]
4
2019-01-07T03:15:45.000Z
2021-01-10T04:58:15.000Z
hack_today_2017/web/web_time_solver.py
runsel/CTF_Writeups
df3d8469b981265d4d43bfc90e75075a95acb1dd
[ "MIT" ]
null
null
null
hack_today_2017/web/web_time_solver.py
runsel/CTF_Writeups
df3d8469b981265d4d43bfc90e75075a95acb1dd
[ "MIT" ]
3
2018-10-21T19:17:34.000Z
2020-07-07T08:58:25.000Z
import requests charset = "abcdefghijklmnopqrstuvwxyz0123456789_{}" password = "HackToday{" url = "http://sawah.ittoday.web.id:40137/" while(password[-1]!="}"): for i in charset: r = requests.get(url) payload = {'password': password+i, 'submit': 'Submit+Query'} r = requests.post(url, data=...
27.4
68
0.615572
0
0
0
0
0
0
0
0
124
0.301703
18f9f056fd0c54a5b1e0f0f03ecf846e53698354
484
py
Python
mayan/__init__.py
sneha-rk/drawings-version-control
4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497
[ "Apache-2.0" ]
1
2021-05-14T18:40:37.000Z
2021-05-14T18:40:37.000Z
mayan/__init__.py
sneha-rk/drawings-version-control
4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497
[ "Apache-2.0" ]
null
null
null
mayan/__init__.py
sneha-rk/drawings-version-control
4e5a2bf0fd8b8026f1d3d56917b5be4b5c7be497
[ "Apache-2.0" ]
null
null
null
from __future__ import unicode_literals <<<<<<< HEAD __title__ = 'Mayan EDMS' __version__ = '2.7.3' __build__ = 0x020703 ======= __title__ = 'IITH DVC' __version__ = '2.7.2' __build__ = 0x020702 >>>>>>> 4cedd41ab6b9750abaebc35d1970556408d83cf5 __author__ = 'Roberto Rosario' __author_email__ = 'roberto.rosario@mayan-ed...
28.470588
74
0.760331
0
0
0
0
0
0
0
0
190
0.392562
18fa914340e673af7a09db0d4d032b0e04e6bdee
5,728
py
Python
ldt/utils/usaf/bcsd_preproc/lib_bcsd_metrics/BCSD_function.py
rkim3/LISF
afaf6a228d2b29a1d26111acc951204f0b436387
[ "Apache-2.0" ]
67
2018-11-13T21:40:54.000Z
2022-02-23T08:11:56.000Z
ldt/utils/usaf/bcsd_preproc/lib_bcsd_metrics/BCSD_function.py
dmocko/LISF
08d024d6d5fe66db311e43e78740842d653749f4
[ "Apache-2.0" ]
679
2018-11-13T20:10:29.000Z
2022-03-30T19:55:25.000Z
ldt/utils/usaf/bcsd_preproc/lib_bcsd_metrics/BCSD_function.py
dmocko/LISF
08d024d6d5fe66db311e43e78740842d653749f4
[ "Apache-2.0" ]
119
2018-11-08T15:53:35.000Z
2022-03-28T10:16:01.000Z
from __future__ import division import pandas as pd import numpy as np import calendar import os.path as op import sys from datetime import datetime from dateutil.relativedelta import relativedelta from scipy.stats import percentileofscore from scipy.stats import scoreatpercentile, pearsonr from math import * import t...
61.591398
191
0.662884
0
0
0
0
0
0
0
0
1,900
0.331704
18fd4c8c14d7b745e7af13adc4fd4221571ac4a2
1,212
py
Python
charybde/parsers/dump_parser.py
m09/charybde
3f8d7d17ed7b9df4bc42743bbd953f61bc807b81
[ "Apache-2.0" ]
1
2020-03-12T12:58:30.000Z
2020-03-12T12:58:30.000Z
charybde/parsers/dump_parser.py
m09/charybde
3f8d7d17ed7b9df4bc42743bbd953f61bc807b81
[ "Apache-2.0" ]
24
2019-10-28T07:21:19.000Z
2020-04-13T22:38:37.000Z
charybde/parsers/dump_parser.py
m09/charybde
3f8d7d17ed7b9df4bc42743bbd953f61bc807b81
[ "Apache-2.0" ]
null
null
null
from bz2 import BZ2File from pathlib import Path from queue import Queue from threading import Thread from typing import Any, Callable, Dict, Iterator, List, Tuple from xmltodict import parse as xmltodict_parse def parse(dump: Path) -> Iterator[Dict[str, Any]]: def filter(path: List[Tuple[str, Dict[str, str]]], ...
28.857143
88
0.615512
0
0
520
0.429043
0
0
0
0
23
0.018977
18fdbb6a59afbc92dbdea6d53c5bce95efda434c
5,321
py
Python
server/py/camera.py
sreyas/Attendance-management-system
eeb57bcc942f407151b71bfab528e817c6806c74
[ "MIT" ]
null
null
null
server/py/camera.py
sreyas/Attendance-management-system
eeb57bcc942f407151b71bfab528e817c6806c74
[ "MIT" ]
null
null
null
server/py/camera.py
sreyas/Attendance-management-system
eeb57bcc942f407151b71bfab528e817c6806c74
[ "MIT" ]
null
null
null
import cv2 import sys,json,numpy as np import glob,os import face_recognition import datetime from pathlib import Path from pymongo import MongoClient from flask_mongoengine import MongoEngine from bson.objectid import ObjectId face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') client = MongoCl...
41.248062
100
0.595001
4,432
0.832926
0
0
0
0
0
0
850
0.159744
18fe1679223211eeb9c906c7f88442b62f5fd7cf
929
py
Python
scgrn/src/utils.py
Fassial/nibs-intern
493a340f431c11712723db89476cae4056c6ef5b
[ "MIT" ]
null
null
null
scgrn/src/utils.py
Fassial/nibs-intern
493a340f431c11712723db89476cae4056c6ef5b
[ "MIT" ]
null
null
null
scgrn/src/utils.py
Fassial/nibs-intern
493a340f431c11712723db89476cae4056c6ef5b
[ "MIT" ]
null
null
null
################################### # Created on 22:20, Nov. 16th, 2020 # Author: fassial # Filename: utils.py ################################### # dep import os import pandas as pd import scanpy as sp from collections import defaultdict # local dep # macro # def get_data_lm func def get_data_lm(sce_fname, sparse = ...
19.765957
62
0.603875
0
0
0
0
0
0
0
0
295
0.317546
18feec8ad8d14751af185b1bf50263837f32d416
1,376
py
Python
PQencryption/pub_key/pk_signature/quantum_vulnerable/signing_Curve25519_PyNaCl.py
OleMussmann/PQencryption
e9a550e285c4b5145210425fbaa2cac338f3d266
[ "Apache-2.0" ]
null
null
null
PQencryption/pub_key/pk_signature/quantum_vulnerable/signing_Curve25519_PyNaCl.py
OleMussmann/PQencryption
e9a550e285c4b5145210425fbaa2cac338f3d266
[ "Apache-2.0" ]
null
null
null
PQencryption/pub_key/pk_signature/quantum_vulnerable/signing_Curve25519_PyNaCl.py
OleMussmann/PQencryption
e9a550e285c4b5145210425fbaa2cac338f3d266
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Created on Mon Jul 10 16:26:41 CEST 2017 @author: BMMN """ import gc # garbage collector import nacl.signing import nacl.encoding def sign(signing_key, message): return signing_key.sign(message) def key_gen(): signing_key = nacl.signing.SigningKey.generate...
25.018182
75
0.699855
0
0
0
0
0
0
0
0
495
0.359738
18ff8d36aadc1e7329aa5016280d4db4c68e6086
17,187
py
Python
app.py
otsaloma/bort-proxy
28ac4ab2c249d4a47f71a4e39cf21c44d2fdf991
[ "MIT" ]
2
2016-10-02T01:33:24.000Z
2016-12-12T09:20:06.000Z
app.py
otsaloma/bort-proxy
28ac4ab2c249d4a47f71a4e39cf21c44d2fdf991
[ "MIT" ]
2
2019-12-15T20:17:09.000Z
2020-12-28T01:10:26.000Z
app.py
otsaloma/bort-proxy
28ac4ab2c249d4a47f71a4e39cf21c44d2fdf991
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2016 Osmo Salomaa # # 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 restriction, including without limitation the rights # to use, copy, modif...
38.535874
98
0.615872
0
0
926
0.053878
9,446
0.549601
0
0
4,986
0.290103
18ffb685c2a877f7f518f970f9a6eafbcd304771
2,099
py
Python
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
10
2015-01-18T02:39:35.000Z
2021-11-09T22:53:10.000Z
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
52
2015-03-02T17:46:23.000Z
2022-02-10T13:23:11.000Z
apps/comments/migrations/0001_initial.py
puertoricanDev/horas
28597af13409edd088a71143d2f4c94cd7fd83f5
[ "MIT" ]
7
2015-03-02T01:23:35.000Z
2021-11-09T22:58:39.000Z
# Generated by Django 1.10.6 on 2017-03-13 04:46 # Modified by Raúl Negrón on 2019-06-22 16:48 import django.db.models.deletion import django.utils.timezone from django.conf import settings from django.db import migrations, models import apps.core.models class Migration(migrations.Migration): initial = True ...
31.328358
85
0.45212
1,839
0.875297
0
0
0
0
0
0
283
0.134698
18ffb7e91b90c1915102493dee2fe7ea4b7d621d
9,607
py
Python
IRIS_data_download/IRIS_download_support/obspy/io/nied/knet.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-03-05T01:03:01.000Z
2020-12-17T05:04:07.000Z
IRIS_data_download/IRIS_download_support/obspy/io/nied/knet.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
4
2021-03-31T19:25:55.000Z
2021-12-13T20:32:46.000Z
IRIS_data_download/IRIS_download_support/obspy/io/nied/knet.py
earthinversion/Fnet_IRIS_data_automated_download
09a6e0c992662feac95744935e038d1c68539fa1
[ "MIT" ]
2
2020-09-08T19:33:40.000Z
2021-04-05T09:47:50.000Z
# -*- coding: utf-8 -*- """ obspy.io.nied.knet - K-NET/KiK-net read support for ObsPy ========================================================= Reading of the K-NET and KiK-net ASCII format as defined on http://www.kyoshin.bosai.go.jp. """ from __future__ import (absolute_import, division, print_function, ...
31.498361
78
0.613407
40
0.004164
0
0
0
0
0
0
4,214
0.438638
7a0036f8904ef04950506fa3bb65a2bb9ab285ce
159
py
Python
great_expectations/dataset/__init__.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
1
2021-01-10T18:00:06.000Z
2021-01-10T18:00:06.000Z
great_expectations/dataset/__init__.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
null
null
null
great_expectations/dataset/__init__.py
avanderm/great_expectations
e4619a890700a492441a7ed3cbb9e5abb0953268
[ "Apache-2.0" ]
null
null
null
from .base import Dataset from .pandas_dataset import MetaPandasDataset, PandasDataset from .sqlalchemy_dataset import MetaSqlAlchemyDataset, SqlAlchemyDataset
53
72
0.886792
0
0
0
0
0
0
0
0
0
0
7a00d530de18db23fd30cafb2ab4bd712d82beb0
379
py
Python
app/main/routes.py
theambidextrous/digitalemployeeapp
2c8b593a590621a34c1fa033a720f1e412c76b96
[ "MIT" ]
null
null
null
app/main/routes.py
theambidextrous/digitalemployeeapp
2c8b593a590621a34c1fa033a720f1e412c76b96
[ "MIT" ]
null
null
null
app/main/routes.py
theambidextrous/digitalemployeeapp
2c8b593a590621a34c1fa033a720f1e412c76b96
[ "MIT" ]
null
null
null
from flask import Blueprint, jsonify, request, redirect, abort, url_for, render_template main = Blueprint('main', __name__) # routes @main.route('/', methods = ['GET']) def Abort(): return redirect(url_for('main.index')) # abort(403) @main.route('/default.tpl', methods = ['GET']) def index(): title = 'DE A...
29.153846
88
0.672823
0
0
0
0
243
0.641161
0
0
84
0.221636