hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
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
251
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
251
max_forks_repo_name
stringlengths
4
130
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
1
1.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
3aa3c3abf98c6d1ad3b59e984112889aa463ffaf
4,251
py
Python
inocybe_dhcp/rfc2131.py
kot-begemot-uk/opx-dhcp
683c7c52f19eedc57196403213c9695ac3439526
[ "Apache-2.0" ]
null
null
null
inocybe_dhcp/rfc2131.py
kot-begemot-uk/opx-dhcp
683c7c52f19eedc57196403213c9695ac3439526
[ "Apache-2.0" ]
null
null
null
inocybe_dhcp/rfc2131.py
kot-begemot-uk/opx-dhcp
683c7c52f19eedc57196403213c9695ac3439526
[ "Apache-2.0" ]
2
2018-09-05T07:59:21.000Z
2018-09-14T07:15:17.000Z
#!/usr/bin/env python3 '''RFC 2131 DHCP message structures.''' # Copyright (c) 2018 Inocybe Technologies. # # 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/LICE...
42.51
119
0.639379
3aa5d9d21b6bad4cb5b8740e530181d78e841342
1,883
py
Python
src/data/get_raw_data.py
vivek1739/titanic
39058f7ecef3ae0e1962fc1dfc550b654e97e1f0
[ "MIT" ]
null
null
null
src/data/get_raw_data.py
vivek1739/titanic
39058f7ecef3ae0e1962fc1dfc550b654e97e1f0
[ "MIT" ]
null
null
null
src/data/get_raw_data.py
vivek1739/titanic
39058f7ecef3ae0e1962fc1dfc550b654e97e1f0
[ "MIT" ]
null
null
null
# encoding utf-8 import os from dotenv import find_dotenv,load_dotenv from requests import session import logging #payload for login to kaggle payload = { 'action':'login', 'username': os.environ.get("KAGGLE_USERNAME"), 'password': os.environ.get("KAGGLE_PASSWORD") } def extract_data(url, file_path): ...
30.868852
77
0.668083
3aa64d8b8830c4c3c052d815f3baf34b10969969
168
py
Python
core/admin.py
yasminfarza/country-state-address-api
39c8d349095dcca4f2411f7097497d6a8f39c1e1
[ "MIT" ]
4
2021-06-06T14:16:33.000Z
2021-06-09T03:42:11.000Z
core/admin.py
yasminfarza/country-state-address-api
39c8d349095dcca4f2411f7097497d6a8f39c1e1
[ "MIT" ]
null
null
null
core/admin.py
yasminfarza/country-state-address-api
39c8d349095dcca4f2411f7097497d6a8f39c1e1
[ "MIT" ]
null
null
null
from django.contrib import admin from core.models import Country, State, Address admin.site.register(Country) admin.site.register(State) admin.site.register(Address)
21
47
0.815476
3aa8e8a10f90ca6b21d728f7a1f51b3d5e590506
770
py
Python
apps/splash/migrations/0006_auto_20151213_0309.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
32
2017-02-22T13:38:38.000Z
2022-03-31T23:29:54.000Z
apps/splash/migrations/0006_auto_20151213_0309.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
694
2017-02-15T23:09:52.000Z
2022-03-31T23:16:07.000Z
apps/splash/migrations/0006_auto_20151213_0309.py
Kpaubert/onlineweb4
9ac79f163bc3a816db57ffa8477ea88770d97807
[ "MIT" ]
35
2017-09-02T21:13:09.000Z
2022-02-21T11:30:30.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import django_extensions.db.fields from django.db import migrations, models
27.5
72
0.614286
3aaa3f49b8735100881fb406c235065fe7efe4e9
314
py
Python
Ekeopara_Praise/Phase 1/Python Basic 1/Day 3 Tasks/Task 10.py
nkem1010/python-challenge-solutions
203cedc691094a83b110fc75764aac51dbbc1a03
[ "MIT" ]
null
null
null
Ekeopara_Praise/Phase 1/Python Basic 1/Day 3 Tasks/Task 10.py
nkem1010/python-challenge-solutions
203cedc691094a83b110fc75764aac51dbbc1a03
[ "MIT" ]
null
null
null
Ekeopara_Praise/Phase 1/Python Basic 1/Day 3 Tasks/Task 10.py
nkem1010/python-challenge-solutions
203cedc691094a83b110fc75764aac51dbbc1a03
[ "MIT" ]
null
null
null
'''10. Write a Python program to get a string which is n (non-negative integer) copies of a given string. Tools: input function, slicing''' word = str(input("Type in any string or word: ")) n = int(input("Enter the number of repititions: ")) ans = "" for i in range(n): ans = ans + word print(ans)
24.153846
105
0.656051
3aab0f40c2920df9397a92bef8cc72257b4908bd
19,245
py
Python
hajosUtil.py
eej/hajos-search
9a8e80b3002e814475c61e8d6aa7e5b860c04e83
[ "FSFAP" ]
1
2021-04-10T21:29:39.000Z
2021-04-10T21:29:39.000Z
hajosUtil.py
eej/hajos-search
9a8e80b3002e814475c61e8d6aa7e5b860c04e83
[ "FSFAP" ]
null
null
null
hajosUtil.py
eej/hajos-search
9a8e80b3002e814475c61e8d6aa7e5b860c04e83
[ "FSFAP" ]
null
null
null
#!/usr/bin/env python """ Hajos utilities. """ from util import * # Hajos Sum # identify vertex def edgesToVerts(s): """ Turn a list of edges into a list of verticies """ o = set() for e in s: o.add(e[0]) o.add(e[1]) return o # Return a list of edges that would turn kites...
31.809917
108
0.412679
3aac3f6414867b633dea9c7d45394cdd79f87b50
39
py
Python
cont.py
peterkimutai/continue1
fe6dd88f6beeb0a93a41deef942d753b0d914cbc
[ "Unlicense" ]
null
null
null
cont.py
peterkimutai/continue1
fe6dd88f6beeb0a93a41deef942d753b0d914cbc
[ "Unlicense" ]
null
null
null
cont.py
peterkimutai/continue1
fe6dd88f6beeb0a93a41deef942d753b0d914cbc
[ "Unlicense" ]
null
null
null
i="meee" u="you" print(i," and ",u)
5.571429
18
0.487179
3aac4e1d77f4bf335aa448746527f97c1db73e42
2,085
py
Python
tests/test_api.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
tests/test_api.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
tests/test_api.py
sebaacuna/bigcommerce-api-python
59ef206d7296c196a0ae0400b6bf9bdb5c2f72af
[ "MIT" ]
null
null
null
import unittest import bigcommerce.api from bigcommerce.connection import Connection, OAuthConnection from bigcommerce.resources import ApiResource from mock import MagicMock, patch, Mock
36.578947
130
0.729976
3aad54a74724c543c7739f87f3d7419f9de3dd0e
638
py
Python
media.py
anuraglahon16/Make_a_movie_website
4d5371b7cc1286f2444376a221595d8c6bb0d492
[ "MIT" ]
null
null
null
media.py
anuraglahon16/Make_a_movie_website
4d5371b7cc1286f2444376a221595d8c6bb0d492
[ "MIT" ]
null
null
null
media.py
anuraglahon16/Make_a_movie_website
4d5371b7cc1286f2444376a221595d8c6bb0d492
[ "MIT" ]
null
null
null
"""Defines the Movie class""" import webbrowser
33.578947
72
0.677116
3aad9a8258616eab59c6be93afe08dd7ebf88b02
722
py
Python
slalom/migrations/0003_auto_20210502_2148.py
caro-oviedo/DjangoApp2-UserProgress-Salom
5f3adf796764dd880f4761c818997f75516f2c24
[ "Apache-2.0" ]
null
null
null
slalom/migrations/0003_auto_20210502_2148.py
caro-oviedo/DjangoApp2-UserProgress-Salom
5f3adf796764dd880f4761c818997f75516f2c24
[ "Apache-2.0" ]
null
null
null
slalom/migrations/0003_auto_20210502_2148.py
caro-oviedo/DjangoApp2-UserProgress-Salom
5f3adf796764dd880f4761c818997f75516f2c24
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.2 on 2021-05-02 21:48 from django.db import migrations, models
24.896552
64
0.558172
3ab1c994ef22b2ed6be0bfd91c5d34915c683650
629
py
Python
sync_binlog/output_log.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
3
2018-09-18T03:29:33.000Z
2020-01-13T03:34:39.000Z
sync_binlog/output_log.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
null
null
null
sync_binlog/output_log.py
liusl104/py_sync_binlog
33a67f545159767d38a522d28d2f79b3ac3802ca
[ "Apache-2.0" ]
1
2022-01-25T09:39:17.000Z
2022-01-25T09:39:17.000Z
# encoding=utf8 import logging # logging from logging.handlers import TimedRotatingFileHandler from sync_conf import log_bese_path, log_backup_count, log_msg_level # logfile = log_bese_path + '/logs/' + 'binlog_sync.log' logger = logging.getLogger() logger.setLevel(log_msg_level) # 7 fh = TimedRotatingFileHandle...
28.590909
90
0.761526
3ab2efc455ab899be68173e51b6cd65e6052c754
12,208
py
Python
src/LDPC/pycodes/build/lib.cygwin-1.5.10-i686-2.3/pycodes/utils/CodeMaker.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
1
2019-04-24T15:24:48.000Z
2019-04-24T15:24:48.000Z
src/LDPC/pycodes/utils/CodeMaker.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
src/LDPC/pycodes/utils/CodeMaker.py
Horacehxw/Multi-label
76095c72327e9aa379eaa653dbbb775ca638e6db
[ "MIT" ]
null
null
null
""" Copyright 2003 Mitsubishi Electric Research Laboratories All Rights Reserved. Permission to use, copy and modify this software and its documentation without fee for educational, research and non-profit purposes, is hereby granted, provided that the above copyright notice and the following...
38.755556
117
0.648263
3ab3e2941b6f403af41700077d7767ce4d038166
457
py
Python
catalyst/contrib/nn/modules/__init__.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
1
2020-09-24T00:34:06.000Z
2020-09-24T00:34:06.000Z
catalyst/contrib/nn/modules/__init__.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
null
null
null
catalyst/contrib/nn/modules/__init__.py
denyhoof/catalyst
a340450076f7846007bc5695e5163e15b7ad9575
[ "Apache-2.0" ]
1
2020-09-24T00:34:07.000Z
2020-09-24T00:34:07.000Z
# flake8: noqa from torch.nn.modules import * from .common import Flatten, GaussianNoise, Lambda, Normalize from .lama import LamaPooling, TemporalAttentionPooling, TemporalConcatPooling from .pooling import ( GlobalAttnPool2d, GlobalAvgAttnPool2d, GlobalAvgPool2d, GlobalConcatAttnPool2d, GlobalCon...
21.761905
78
0.750547
3ab4a94d8c1d32caca854e9194abb1b42f0cfa0c
1,559
py
Python
pogopowerupcost/pogopowerupcost.py
HankB/pogopowerupcost
348f2414029b15909b82ea109429b8f96937f019
[ "MIT" ]
null
null
null
pogopowerupcost/pogopowerupcost.py
HankB/pogopowerupcost
348f2414029b15909b82ea109429b8f96937f019
[ "MIT" ]
null
null
null
pogopowerupcost/pogopowerupcost.py
HankB/pogopowerupcost
348f2414029b15909b82ea109429b8f96937f019
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 """ Strategy to eliminate redundant lines. - remove redundant lines - calculate the correct key for a given level """ NORMAL_COST_PER_POWERUP = { # level: [stardust, candy] 2.5: [ 200, 1], 4.5: [ 400, 1], 6.5: [ 600, 1], 8.5: [ 800, 1], 10.5: [ 1000, 1], 12.5:...
21.067568
85
0.550994
3ab542c9882e6ca1b34d6c4578175afe66cf3890
516
py
Python
Source/Ventanas/login.py
NicolasTangredi/grupo4
4261f34c6600409434fc548d764dbb43bfb9c2f1
[ "MIT" ]
null
null
null
Source/Ventanas/login.py
NicolasTangredi/grupo4
4261f34c6600409434fc548d764dbb43bfb9c2f1
[ "MIT" ]
null
null
null
Source/Ventanas/login.py
NicolasTangredi/grupo4
4261f34c6600409434fc548d764dbb43bfb9c2f1
[ "MIT" ]
null
null
null
import PySimpleGUI as sg def build_login(): """ Construye la ventana del inicio de sesion del usuario""" layout =[[sg.T("Usuario", size=(8,1)), sg.InputText(key='-USER-')], [sg.T("Contrasea", size=(8,1)), sg.InputText(key='-PASS-')], [sg.Submit("LogIn", size=(15,1), pad=(0,15))], ...
34.4
82
0.585271
3ab65f9233f5b33fe212c56ac9a65bed2532c487
446
py
Python
tests/core/test_formatter.py
My-Novel-Management/storybuilderunite
c003d3451e237f574c54a87ea7d4fd8da8e833be
[ "MIT" ]
1
2020-06-18T01:38:55.000Z
2020-06-18T01:38:55.000Z
tests/core/test_formatter.py
My-Novel-Management/storybuilder
1f36e56a74dbb55a25d60fce3ce81f3c650f521a
[ "MIT" ]
143
2019-11-13T00:21:11.000Z
2020-08-15T05:47:41.000Z
tests/core/test_formatter.py
My-Novel-Management/storybuilderunite
c003d3451e237f574c54a87ea7d4fd8da8e833be
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Formatter class test ==================== ''' import unittest from tests.testutils import print_testtitle, validate_with_fail from builder.core import formatter as fm
20.272727
63
0.674888
3ab8056bbcfb11d7cb0f257beb6843279b5e80cf
86
py
Python
reliabilipy/__init__.py
rafaelvalero/omegapy
5cc6288f9b0d6101de87229ce0f3a392ff3d1e8a
[ "MIT" ]
1
2022-01-08T20:46:43.000Z
2022-01-08T20:46:43.000Z
reliabilipy/__init__.py
rafaelvalero/omegapy
5cc6288f9b0d6101de87229ce0f3a392ff3d1e8a
[ "MIT" ]
null
null
null
reliabilipy/__init__.py
rafaelvalero/omegapy
5cc6288f9b0d6101de87229ce0f3a392ff3d1e8a
[ "MIT" ]
null
null
null
from ._reliabili import reliability_analysis __all__ = [ "reliability_analysis", ]
21.5
44
0.77907
3aba1d78d37e1173705ea143efeb8730018f6cb1
1,296
py
Python
pynasqm/trajectories/get_reference_job.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
1
2020-03-13T22:34:03.000Z
2020-03-13T22:34:03.000Z
pynasqm/trajectories/get_reference_job.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
null
null
null
pynasqm/trajectories/get_reference_job.py
PotentialParadox/pynasqm
1bd51299b6ca7f8229d8a15428515d53a358903c
[ "MIT" ]
null
null
null
from functools import singledispatch from pynasqm.trajectories.fluorescence import Fluorescence from pynasqm.trajectories.absorption import Absorption
35.027027
91
0.765432
3aba773aa612d9acfa1ae100f08af08822858dc4
6,283
py
Python
tests/fire_groups/test_damage_profile.py
spascou/ps2-analysis
00f99b009d15d4c401a3338ddd0408ac7eedcc0b
[ "MIT" ]
2
2020-06-25T17:19:05.000Z
2020-10-13T06:08:39.000Z
tests/fire_groups/test_damage_profile.py
spascou/ps2-analysis
00f99b009d15d4c401a3338ddd0408ac7eedcc0b
[ "MIT" ]
null
null
null
tests/fire_groups/test_damage_profile.py
spascou/ps2-analysis
00f99b009d15d4c401a3338ddd0408ac7eedcc0b
[ "MIT" ]
null
null
null
from ps2_census.enums import ResistType from ps2_analysis.enums import DamageTargetType from ps2_analysis.fire_groups.damage_profile import DamageLocation, DamageProfile
29.087963
87
0.665287
3aba7ed065768797a2e46990d868b26246bb0ccc
5,418
py
Python
EM6436_singlephasemode.py
saishibu/EM6400_Modbus_RPi
9025d159d84407b92275208b874c140f86f1d306
[ "MIT" ]
2
2021-09-15T11:14:18.000Z
2021-09-19T23:40:09.000Z
EM6436_singlephasemode.py
saishibu/EM6400_Modbus_RPi
9025d159d84407b92275208b874c140f86f1d306
[ "MIT" ]
null
null
null
EM6436_singlephasemode.py
saishibu/EM6400_Modbus_RPi
9025d159d84407b92275208b874c140f86f1d306
[ "MIT" ]
3
2017-09-23T05:28:21.000Z
2019-12-26T01:29:17.000Z
#ModBUS Communication between Schneider EM6436 Meter and Raspberry Pi #First beta version. #The meter is set with the following settings #Communication : (RS484 to RS232 to USB) - BaudRate = 19200, Parity = N, Stopbits = 1, Device ID=1 (Hardcode in meter) #Electical Settings: APri:50, Asec: 5, VPri: 415, Vsec:415, SYS:...
30.1
118
0.622924
3abaf7778575fb33671c68f93238545045ace437
2,350
py
Python
webapp.py
eyan02/WebApp
4df02491dc6c27985e39c9d003eca1e662740000
[ "MIT" ]
null
null
null
webapp.py
eyan02/WebApp
4df02491dc6c27985e39c9d003eca1e662740000
[ "MIT" ]
null
null
null
webapp.py
eyan02/WebApp
4df02491dc6c27985e39c9d003eca1e662740000
[ "MIT" ]
null
null
null
from flask import Flask, render_template, json, request, redirect, session, jsonify from flaskext.mysql import MySQL from werkzeug import generate_password_hash, check_password_hash mysql = MySQL() app = Flask(__name__) # randomly generated encryption & decryption key, ensures security of a communications session app...
35.074627
94
0.514043
3ac0403526cc926b39bbe5158b35b86efdd85742
1,359
py
Python
core/models.py
RafaelAparecidoSilva/Projeto_Django_DIO
430b0166b39bc74f895805e51b1332c9184eccad
[ "MIT" ]
null
null
null
core/models.py
RafaelAparecidoSilva/Projeto_Django_DIO
430b0166b39bc74f895805e51b1332c9184eccad
[ "MIT" ]
null
null
null
core/models.py
RafaelAparecidoSilva/Projeto_Django_DIO
430b0166b39bc74f895805e51b1332c9184eccad
[ "MIT" ]
null
null
null
from django.db import models # Importamos o User do sistema para utilizar os dados dos usurios que registramos no admin do django # (desta forma no precisamos criar uma tabela especfica no models para representar os usurios). from django.contrib.auth.models import User from datetime import datetime
41.181818
132
0.717439
3ac339e728b9d10c187e2b092542a9efcdb4b687
2,264
py
Python
backend/utils.py
wanghaiqing2015/fastapi-vue-cms
0cd1f8e08ea2389287530d04872c7d5bfccdeb62
[ "MIT" ]
7
2020-08-07T23:51:57.000Z
2022-02-12T05:13:18.000Z
backend/utils.py
wanghaiqing2015/fastapi-vue-cms
0cd1f8e08ea2389287530d04872c7d5bfccdeb62
[ "MIT" ]
2
2020-04-12T16:50:55.000Z
2020-08-08T06:04:00.000Z
backend/utils.py
hjlarry/fastapi-vue-cms
4157b2064ce77e35fc280573a2198cbc9a5db9b4
[ "MIT" ]
null
null
null
import json from datetime import datetime, timedelta from typing import Any import jwt from starlette.requests import Request from starlette.responses import JSONResponse from starlette.status import HTTP_403_FORBIDDEN from passlib.context import CryptContext from fastapi import Depends, Security, HTTPException from f...
29.402597
83
0.706714
3ac6b31791c0cfaed3de6874a765f1f48fec4c3e
741
py
Python
tunobase/social_media/facebook/utils.py
unomena/tunobase
9219e6c5a49eecd1c66dd1b518640c5d678acab6
[ "BSD-3-Clause" ]
null
null
null
tunobase/social_media/facebook/utils.py
unomena/tunobase
9219e6c5a49eecd1c66dd1b518640c5d678acab6
[ "BSD-3-Clause" ]
null
null
null
tunobase/social_media/facebook/utils.py
unomena/tunobase
9219e6c5a49eecd1c66dd1b518640c5d678acab6
[ "BSD-3-Clause" ]
null
null
null
''' Created on 09 Nov 2013 @author: michael ''' import json import urllib2 import urllib from django.conf import settings import facebook def validate_access_token(access_token): ''' Validate a Facebook access token ''' # Get an app access token app_token = facebook.get_app_access_token( ...
19.5
74
0.645074
3ac803ff9e5c1fc42b5e6459752425d80c4ba39a
2,776
py
Python
src/list_ideas.py
lxk1170/ideas-with-emotion
89f5322189faca0ba2c00de8a87168ab54f2caa0
[ "MIT" ]
null
null
null
src/list_ideas.py
lxk1170/ideas-with-emotion
89f5322189faca0ba2c00de8a87168ab54f2caa0
[ "MIT" ]
null
null
null
src/list_ideas.py
lxk1170/ideas-with-emotion
89f5322189faca0ba2c00de8a87168ab54f2caa0
[ "MIT" ]
null
null
null
import db from pen import Pen from idea import Idea MIN_ENJOYMENT = 0.5 MIN_RELEVANT = 2 MAX_DEPTH = 3 MIN_ACCEPTABLE_SCORE = 0.5 # score each of the ideas by evaluating neighbors if __name__ == '__main__': list_ideas(Pen())
31.908046
92
0.636527
3acea141522edbabbe9dcfc8fdb02306077a23f4
6,988
py
Python
pysc2/agents/myAgent/myAgent_6/decisionMaker/hierarchical_learning_structure.py
Hotpotfish/pysc2
3d7f7ffc01a50ab69d435b65c892cd0bc11265a8
[ "Apache-2.0" ]
null
null
null
pysc2/agents/myAgent/myAgent_6/decisionMaker/hierarchical_learning_structure.py
Hotpotfish/pysc2
3d7f7ffc01a50ab69d435b65c892cd0bc11265a8
[ "Apache-2.0" ]
null
null
null
pysc2/agents/myAgent/myAgent_6/decisionMaker/hierarchical_learning_structure.py
Hotpotfish/pysc2
3d7f7ffc01a50ab69d435b65c892cd0bc11265a8
[ "Apache-2.0" ]
null
null
null
import datetime import pysc2.agents.myAgent.myAgent_6.config.config as config from pysc2.agents.myAgent.myAgent_6.decisionMaker.DQN import DQN import pysc2.agents.myAgent.myAgent_6.smart_actions as sa import pysc2.agents.myAgent.myAgent_6.tools.handcraft_function as handcraft_function from pysc2.env.environment impor...
50.637681
148
0.680309
3acee6b394ee9cc776b0a34e348bdc806db4720e
2,064
py
Python
brudnopis.py
Shandelier/py-tf-movenet-fork
f3eb866665f9e23ec313edf68df6302dd5786ed6
[ "Apache-2.0" ]
1
2021-06-09T07:05:23.000Z
2021-06-09T07:05:23.000Z
brudnopis.py
Shandelier/python-movenet
f3eb866665f9e23ec313edf68df6302dd5786ed6
[ "Apache-2.0" ]
null
null
null
brudnopis.py
Shandelier/python-movenet
f3eb866665f9e23ec313edf68df6302dd5786ed6
[ "Apache-2.0" ]
null
null
null
# from sklearn.utils import shuffle # import util as ut # import os # import pandas as pd # import training_util as tut # import numpy as np # def sample_2000(): # file_paths, file_names, pose_type = ut.get_csvs_paths( # os.path.join("5-people-csvs")) # init = list.pop(file_paths) # ds = pd.read_...
23.724138
89
0.601744
3acef1e57e1e1cdd81c2829c115eefd77da35670
8,696
py
Python
tfx/components/transform/executor_utils_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1
2021-08-22T21:10:48.000Z
2021-08-22T21:10:48.000Z
tfx/components/transform/executor_utils_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
null
null
null
tfx/components/transform/executor_utils_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1
2020-12-13T22:07:53.000Z
2020-12-13T22:07:53.000Z
# Copyright 2021 Google LLC. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
39.889908
80
0.722516
3ad380b2ffcde7df6679cbb1d4378e9417a3ee46
5,675
py
Python
modules/decompressor/uatg_decompressor_floating_01.py
incoresemi/chromite_uatg_tests
ff3116407c16eef0e73a1f3527075efdb2a4eb14
[ "BSD-3-Clause" ]
3
2021-09-17T04:53:08.000Z
2021-09-17T06:14:23.000Z
modules/decompressor/uatg_decompressor_floating_01.py
incoresemi/chromite_uatg_tests
ff3116407c16eef0e73a1f3527075efdb2a4eb14
[ "BSD-3-Clause" ]
3
2022-01-04T06:52:50.000Z
2022-02-09T13:25:29.000Z
modules/decompressor/uatg_decompressor_floating_01.py
incoresemi/chromite_uatg_tests
ff3116407c16eef0e73a1f3527075efdb2a4eb14
[ "BSD-3-Clause" ]
2
2022-01-04T04:36:40.000Z
2022-01-04T05:32:24.000Z
# python program to generate an assembly file which checks if mis-predictions # occur In addition to this, the GHR is also filled with ones (additional # test case) uses assembly macros from typing import Dict, List, Union, Any # To-Do -> Create another function which prints the includes and other # assembler directi...
37.091503
91
0.514185
3ad446c1b07e34f2fa0ee1ef1453cf07206ea6ad
975
py
Python
backend/account_request/migrations/0002_auto_20190214_2145.py
adabutch/account_tracker
2ae6e287266262557268f080cff821a736d6ec8b
[ "MIT" ]
null
null
null
backend/account_request/migrations/0002_auto_20190214_2145.py
adabutch/account_tracker
2ae6e287266262557268f080cff821a736d6ec8b
[ "MIT" ]
2
2020-02-11T15:45:51.000Z
2020-07-17T16:47:06.000Z
backend/account_request/migrations/0002_auto_20190214_2145.py
adabutch/account_tracker
2ae6e287266262557268f080cff821a736d6ec8b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.5 on 2019-02-14 21:45 from django.db import migrations, models
28.676471
73
0.585641
3ad6ff269fcd4396a9cf1a6ea13465342af4b41c
2,017
py
Python
kingfisher_scrapy/spiders/uruguay_historical.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
7
2020-07-24T13:15:37.000Z
2021-12-11T22:40:07.000Z
kingfisher_scrapy/spiders/uruguay_historical.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
418
2020-04-27T22:15:27.000Z
2022-03-31T23:49:34.000Z
kingfisher_scrapy/spiders/uruguay_historical.py
open-contracting/kingfisher-collect
2fbbd6361a0ec959e0603343a4b363f97fae3815
[ "BSD-3-Clause" ]
6
2020-05-28T16:06:53.000Z
2021-03-16T02:54:15.000Z
import datetime import scrapy from kingfisher_scrapy.base_spider import CompressedFileSpider from kingfisher_scrapy.util import components, handle_http_error
38.056604
110
0.644522
3ad6ff65fc6e55b853f7c971880fa3dab4b97d0c
1,136
py
Python
toSpcy/toSpacy.py
patrick013/toSpcy
8c10bc01e4a549dc177e1efb18c9c87a4dbd6f4c
[ "Apache-2.0" ]
3
2019-11-07T17:29:57.000Z
2022-03-21T01:45:04.000Z
toSpcy/toSpacy.py
patrick013/toSpcy
8c10bc01e4a549dc177e1efb18c9c87a4dbd6f4c
[ "Apache-2.0" ]
null
null
null
toSpcy/toSpacy.py
patrick013/toSpcy
8c10bc01e4a549dc177e1efb18c9c87a4dbd6f4c
[ "Apache-2.0" ]
null
null
null
import re
31.555556
80
0.491197
3ad7245b008d3289d24d032c2d3cd8b153b127c9
634
py
Python
main.py
iarwain8a/pydlbot
3d471795da3f5f17f2e784a9fa508f9dd5613bd3
[ "MIT" ]
null
null
null
main.py
iarwain8a/pydlbot
3d471795da3f5f17f2e784a9fa508f9dd5613bd3
[ "MIT" ]
null
null
null
main.py
iarwain8a/pydlbot
3d471795da3f5f17f2e784a9fa508f9dd5613bd3
[ "MIT" ]
null
null
null
import pydlbot_ui as Ui import sys from PyQt5 import QtGui, QtCore, QtWidgets from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * import time import threading if __name__ == '__main__': p = threading.Thread(target=main) p.start() for i in range(3): t = th...
22.642857
56
0.656151
3ad734bd68154710d060d7aea6f8d2354fbd9080
6,832
py
Python
src/view/deprecated/files.py
fred-yu-2013/Elastos.Hive.Node
1dcc9178c12efefc786bc653bacec50a1f79161b
[ "MIT" ]
5
2020-11-18T09:14:24.000Z
2021-08-17T13:55:49.000Z
src/view/deprecated/files.py
fred-yu-2013/Elastos.Hive.Node
1dcc9178c12efefc786bc653bacec50a1f79161b
[ "MIT" ]
45
2020-11-09T03:40:53.000Z
2021-11-02T08:43:49.000Z
src/view/deprecated/files.py
fred-yu-2013/Elastos.Hive.Node
1dcc9178c12efefc786bc653bacec50a1f79161b
[ "MIT" ]
5
2021-01-25T16:25:59.000Z
2021-09-23T20:18:12.000Z
# -*- coding: utf-8 -*- """ The view of files module. """ from flask import Blueprint, request from src.modules.files.files import Files from src.utils.http_exception import BadRequestException blueprint = Blueprint('files-deprecated', __name__) files: Files = None def init_app(app): """ This will be called by...
17.884817
102
0.562207
3ad8fecb1b29ee0733883fd90b75697788d9e406
2,109
py
Python
backend_final/apartacho/users/views.py
cenavia/skylynx
6286294a8cd57279e3c176d8fcae656cef4b40a8
[ "MIT" ]
3
2020-04-29T18:07:40.000Z
2020-05-20T20:52:52.000Z
backend_final/apartacho/users/views.py
cenavia/Apartacho
6286294a8cd57279e3c176d8fcae656cef4b40a8
[ "MIT" ]
53
2020-05-13T03:27:41.000Z
2022-03-12T00:32:46.000Z
backend_final/apartacho/users/views.py
cenavia/Apartacho
6286294a8cd57279e3c176d8fcae656cef4b40a8
[ "MIT" ]
2
2020-05-16T05:34:45.000Z
2020-06-11T14:47:50.000Z
"""Users views.""" # Django REST Framework from rest_framework.viewsets import GenericViewSet from rest_framework.mixins import (ListModelMixin, RetrieveModelMixin, UpdateModelMixin) from rest_framework import status from rest_framework.decorators i...
31.954545
69
0.662399
3ad9ef77b1856ec357338eec91418078b9e1ee31
1,069
py
Python
examples/cpp/simplicial_complex.py
TripleEss/TDALayer
25a2da5eab50fad2d006167c2d1c97ec5efb53e0
[ "MIT" ]
null
null
null
examples/cpp/simplicial_complex.py
TripleEss/TDALayer
25a2da5eab50fad2d006167c2d1c97ec5efb53e0
[ "MIT" ]
null
null
null
examples/cpp/simplicial_complex.py
TripleEss/TDALayer
25a2da5eab50fad2d006167c2d1c97ec5efb53e0
[ "MIT" ]
null
null
null
from __future__ import print_function from topologylayer.functional.persistence import SimplicialComplex, persistenceForwardCohom from topologylayer.util.process import remove_zero_bars import torch # first, we build our complex s = SimplicialComplex() # a cycle graph on vertices 1,2,3,4 # cone with vertex...
20.960784
92
0.669785
3ada4a4b168c9f32d42b44792e037eaf4b8ba00b
4,020
py
Python
python/featureextraction/subscriber.py
JonathanCamargo/Eris
34c389f0808c8b47933605ed19d98e62280e56dd
[ "MIT" ]
null
null
null
python/featureextraction/subscriber.py
JonathanCamargo/Eris
34c389f0808c8b47933605ed19d98e62280e56dd
[ "MIT" ]
null
null
null
python/featureextraction/subscriber.py
JonathanCamargo/Eris
34c389f0808c8b47933605ed19d98e62280e56dd
[ "MIT" ]
null
null
null
import rospy import threading import importlib from collections import deque from custom_msgs.msg import * # A generic subscriber class for interfacing any type of message into the GUI
34.358974
116
0.615672
3adcb0e64f1098771d6fe0dddfcf3ecb6a0a3c9a
19,324
py
Python
scripts/condinst.py
Spritaro/condinst_tensorrt
22063a75e015bba45b588cdb6ebf1ac663ff1924
[ "MIT" ]
3
2021-11-14T14:11:10.000Z
2022-02-16T11:42:40.000Z
scripts/condinst.py
datomi79/condinst_tensorrt
22063a75e015bba45b588cdb6ebf1ac663ff1924
[ "MIT" ]
null
null
null
scripts/condinst.py
datomi79/condinst_tensorrt
22063a75e015bba45b588cdb6ebf1ac663ff1924
[ "MIT" ]
1
2022-02-14T21:47:55.000Z
2022-02-14T21:47:55.000Z
import math import numpy as np import torch import torch.nn.functional as F from torch import nn from torch.utils.data import DataLoader, random_split from torch.utils.tensorboard import SummaryWriter import torchvision # from torchvision.models.detection.backbone_utils import resnet_fpn_backbone # from torchvision.o...
48.431078
188
0.644328
3adcf1fe5d6dea4fb1870fe9017321b2ad54e8fe
3,278
py
Python
Blocky-autoPWN.py
z3rObyte/HackTheBox-Autopwn
6477f43a0a845adee715ffe1bc4ade62aeb3e679
[ "Apache-2.0" ]
1
2021-08-25T14:01:13.000Z
2021-08-25T14:01:13.000Z
Blocky-autoPWN.py
z3rObyte/HackTheBox-Autopwn
6477f43a0a845adee715ffe1bc4ade62aeb3e679
[ "Apache-2.0" ]
null
null
null
Blocky-autoPWN.py
z3rObyte/HackTheBox-Autopwn
6477f43a0a845adee715ffe1bc4ade62aeb3e679
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import zipfile from pwn import * # pip3 install pwn banner = """ ____ __ __ __ ____ _ ___ __ / __ )/ /___ _____/ /____ __ ____ ___ __/ /_____ / __ \ | / / | / / / __ / / __ \/ ___/ //_/ / / /_____/ __ `/ / / / __/ __ \/ /_/ ...
28.017094
136
0.566809
3add20f0867b88372260c1d964a87cf06a4f4b64
1,621
py
Python
verification/conf.py
HosseinMohammadii/django-rest-verification
0e0d4633f4420896fbfa0005f9df49eb4ed68f88
[ "MIT" ]
1
2020-10-23T08:20:59.000Z
2020-10-23T08:20:59.000Z
verification/conf.py
HosseinMohammadii/django-rest-verification
0e0d4633f4420896fbfa0005f9df49eb4ed68f88
[ "MIT" ]
null
null
null
verification/conf.py
HosseinMohammadii/django-rest-verification
0e0d4633f4420896fbfa0005f9df49eb4ed68f88
[ "MIT" ]
null
null
null
from django.conf import settings from django.utils import timezone from .base import default_config, numeric, lowercase_alphabetic, uppercase_alphabetic config = default_config config.update(settings.VERIFICATION) VERIFICATION_CODE_FIELD = 'verification_code' VERIFICATIONS = config.get('VERIFICATIONS') CODE_LENGTH = ...
33.770833
85
0.805676
3adedc706a3e7e55655cf8dce7e7f4c1476ebd61
13,078
py
Python
nxbt/controller/server.py
Yamakaky/nxbt
0fe9acaaf0fac8014f9aaee53943711a106b572c
[ "MIT" ]
null
null
null
nxbt/controller/server.py
Yamakaky/nxbt
0fe9acaaf0fac8014f9aaee53943711a106b572c
[ "MIT" ]
null
null
null
nxbt/controller/server.py
Yamakaky/nxbt
0fe9acaaf0fac8014f9aaee53943711a106b572c
[ "MIT" ]
null
null
null
import socket import fcntl import os import time import queue import logging import traceback from .controller import Controller, ControllerTypes from ..bluez import BlueZ from .protocol import ControllerProtocol from .input import InputParser from .utils import format_msg_controller, format_msg_switch
34.415789
90
0.558878
3adefdd3fa592b7c580b21e49f739074251c1d6b
391
py
Python
mfi_customization/mfi/patch/set_first_responded_on_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_first_responded_on_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_first_responded_on_issue.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
import frappe from datetime import datetime # bench execute mfi_customization.mfi.patch.set_first_responded_on_issue.execute
35.545455
93
0.749361
3adf36991cec5979dbe14a96fcb6614f4fd9f191
12,144
py
Python
team_9/cocos/utest/test_euclid.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
1
2019-09-15T18:59:49.000Z
2019-09-15T18:59:49.000Z
team_9/cocos/utest/test_euclid.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
null
null
null
team_9/cocos/utest/test_euclid.py
Donnyvdm/dojo19
3cf043a84e3ad6d3c4d59cd9c50b160e1ff03400
[ "BSD-3-Clause" ]
null
null
null
from __future__ import division, print_function, unicode_literals import cocos.euclid as eu import unittest import copy try: import cPickle as pickle except Exception: import pickle import io if __name__ == '__main__': unittest.main()
30.512563
81
0.525115
3adf530cc79f1ef10e5ff6f32271340c43c7203b
3,769
py
Python
main.py
aHeraud/cgp-tetris
a3483b279bf0bc53edcb3a871873dd576a33c01c
[ "MIT" ]
null
null
null
main.py
aHeraud/cgp-tetris
a3483b279bf0bc53edcb3a871873dd576a33c01c
[ "MIT" ]
null
null
null
main.py
aHeraud/cgp-tetris
a3483b279bf0bc53edcb3a871873dd576a33c01c
[ "MIT" ]
null
null
null
#!/usr/local/bin/python3 import sys from multiprocessing import Pool from timeit import default_timer as timer from config import Config from cgp.functionset import FunctionSet from cgp.genome import Genome import numpy as np import numpy.random from random import randint from tetris_learning_environment import E...
30.395161
137
0.644733
3ae00d3abfc861f7559fd9d0fd444be28cadc9c5
3,175
py
Python
test/molecular_map_test/single_protein_explicit_mapping/test_single_protein_explicit_mapping.py
fieryd/cgmap
8b09cf1392d22be4f735d3259ee9d624f3e45210
[ "Apache-2.0" ]
5
2018-03-05T07:10:09.000Z
2019-09-11T19:33:56.000Z
test/molecular_map_test/single_protein_explicit_mapping/test_single_protein_explicit_mapping.py
fieryd/cgmap
8b09cf1392d22be4f735d3259ee9d624f3e45210
[ "Apache-2.0" ]
3
2017-05-02T21:47:38.000Z
2020-07-16T20:12:19.000Z
test/molecular_map_test/single_protein_explicit_mapping/test_single_protein_explicit_mapping.py
fieryd/cgmap
8b09cf1392d22be4f735d3259ee9d624f3e45210
[ "Apache-2.0" ]
4
2017-09-18T20:02:33.000Z
2021-11-01T15:51:51.000Z
#!/usr/bin/env python2 import sys sys.path.append('../../../src/') import cgmap as cg import mdtraj as md import md_check as check ############################### config ##################################### input_traj = "protein.trr" input_top = "protein.pdb" output_traj = "protein.trr" output_top = "protein.pdb...
28.097345
128
0.589606
3ae33afc12f8987d0c85ee05a95ac1ec3a4be0c6
3,726
py
Python
image_classifier/model_lib.py
JMarcan/computer_vision_perception
a5aa7bfb316e7b45596d8c5916638f5ce2b6d654
[ "MIT" ]
null
null
null
image_classifier/model_lib.py
JMarcan/computer_vision_perception
a5aa7bfb316e7b45596d8c5916638f5ce2b6d654
[ "MIT" ]
null
null
null
image_classifier/model_lib.py
JMarcan/computer_vision_perception
a5aa7bfb316e7b45596d8c5916638f5ce2b6d654
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Function that loads a checkpoint and rebuilds the model import torch from torch import nn from collections import OrderedDict from torchvision import datasets, transforms, models def save_checkpoint(model, checkpoint_path, output_categories): ''' Save the trained deep...
31.846154
165
0.630972
3ae4b2634727a7a3c18f2473fe0c51212182326b
7,689
py
Python
pytorch/utils/utils.py
XinyiYS/CollaborativeFairFederatedLearning
1372f74230b366a41243f809ce0fc15586cd40fe
[ "MIT" ]
25
2020-07-29T03:46:12.000Z
2022-03-23T07:15:53.000Z
pytorch/utils/utils.py
lingjuanlv/CollaborativeFairFederatedLearning
1372f74230b366a41243f809ce0fc15586cd40fe
[ "MIT" ]
null
null
null
pytorch/utils/utils.py
lingjuanlv/CollaborativeFairFederatedLearning
1372f74230b366a41243f809ce0fc15586cd40fe
[ "MIT" ]
7
2020-09-15T19:06:27.000Z
2022-02-22T06:51:52.000Z
import copy import torch from torch import nn from torch.utils.data import DataLoader from torchtext.data import Batch ''' def one_on_one_evaluate(participants, federated_model, grad_updates, unfiltererd_grad_updates, eval_loader, device): val_accs = [] for i, participant in enumerate(participants): if participa...
35.109589
123
0.757836
3ae65789d9458479266b8a51662e5436d0fc02db
525
py
Python
TNP Cell Website/classroom/views/classroom.py
kaustubh240897/Quizapplication
dcdf05670da649b602f26013a95b89b5c3a1585a
[ "MIT" ]
2
2018-11-04T06:44:58.000Z
2018-11-15T19:19:19.000Z
TNP Cell Website/classroom/views/classroom.py
kaustubh240897/Quizapplication
dcdf05670da649b602f26013a95b89b5c3a1585a
[ "MIT" ]
2
2018-10-29T15:27:16.000Z
2018-10-30T08:38:37.000Z
TNP Cell Website/classroom/views/classroom.py
kaustubh240897/Training_and_Placement_cell_IIITV
dcdf05670da649b602f26013a95b89b5c3a1585a
[ "MIT" ]
3
2018-10-29T15:00:44.000Z
2020-10-14T13:05:10.000Z
from django.shortcuts import redirect, render from django.views.generic import TemplateView #homePage def home(request): if request.user.is_authenticated: if request.user.is_teacher: return redirect('teachers:my_jobs') else: return redirect('students:quiz_list') return ...
25
52
0.72
3ae6ca75f3d3a8c0e269c42286630443d12eadfe
102
py
Python
fseval/pipelines/rank_and_validate/__init__.py
dunnkers/fseval
49a11a63e09e65b1f14389b6ba3a9ae3aeae086d
[ "MIT" ]
5
2020-07-08T11:58:46.000Z
2022-01-26T13:58:00.000Z
fseval/pipelines/rank_and_validate/__init__.py
shenlong95/fseval
4d2e6618b8838f9e52fe60621b08595dc4c5b4fb
[ "MIT" ]
63
2021-05-09T06:18:24.000Z
2022-03-27T18:05:58.000Z
fseval/pipelines/rank_and_validate/__init__.py
shenlong95/fseval
4d2e6618b8838f9e52fe60621b08595dc4c5b4fb
[ "MIT" ]
1
2022-02-11T03:24:14.000Z
2022-02-11T03:24:14.000Z
from .rank_and_validate import BootstrappedRankAndValidate __all__ = ["BootstrappedRankAndValidate"]
25.5
58
0.862745
3ae8972b7f0c8d8ea6d2f5706159829160fedc21
6,119
py
Python
kolab/yk/yk.py
roy029/kolab
10a3054da5e7c96c575de1336056eee65368c087
[ "MIT" ]
null
null
null
kolab/yk/yk.py
roy029/kolab
10a3054da5e7c96c575de1336056eee65368c087
[ "MIT" ]
1
2021-11-14T05:38:27.000Z
2021-11-14T05:38:27.000Z
kolab/yk/yk.py
roy029/kolab
10a3054da5e7c96c575de1336056eee65368c087
[ "MIT" ]
7
2020-11-02T13:05:44.000Z
2022-01-09T11:06:04.000Z
from os import read import sys import pegtree as pg import csv from pegtree.optimizer import optimize peg = pg.grammar('yk.tpeg') parse = pg.generate(peg) VAR_literal = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' NAME_literal = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ' VAL_literal = 'abcdefgh...
32.897849
86
0.484393
3ae9c27cb433dee341880c12a91958034dceafbb
270
py
Python
Task2/02_list-dicts.py
telecomprofi/Cisco-DevOps-MDP-02
f44173d468319a90dc6b7c5ea92cd6b8b3762b45
[ "Apache-2.0" ]
null
null
null
Task2/02_list-dicts.py
telecomprofi/Cisco-DevOps-MDP-02
f44173d468319a90dc6b7c5ea92cd6b8b3762b45
[ "Apache-2.0" ]
null
null
null
Task2/02_list-dicts.py
telecomprofi/Cisco-DevOps-MDP-02
f44173d468319a90dc6b7c5ea92cd6b8b3762b45
[ "Apache-2.0" ]
null
null
null
country=["Brazil","Russia","India","China","South Africa"] capitals={"Brazil":"Brasilia","Russia":"Moscow","India":"New Delhi", "China":"Beijing","South Africa":["Pretoria","Cape Town","Bloemfontein"]} print(country) print(capitals) print(capitals["South Africa"][1])
33.75
74
0.696296
3aea02ea9b227434bbb8b250a3ff42f885040255
17,501
py
Python
Interface/Windows/WildernessTravelManagerWindow.py
Snackhole/SerpentRPG
9e5ae019893592a46dd7681daba56af8e8e29744
[ "MIT" ]
1
2021-02-27T16:33:53.000Z
2021-02-27T16:33:53.000Z
Interface/Windows/WildernessTravelManagerWindow.py
Snackhole/SerpentRPG
9e5ae019893592a46dd7681daba56af8e8e29744
[ "MIT" ]
null
null
null
Interface/Windows/WildernessTravelManagerWindow.py
Snackhole/SerpentRPG
9e5ae019893592a46dd7681daba56af8e8e29744
[ "MIT" ]
null
null
null
import math import os from PyQt5 import QtCore from PyQt5.QtWidgets import QGridLayout, QLabel, QPushButton, QFrame, QTextEdit, QInputDialog, QSizePolicy, QAction, QMessageBox from Core.DieClock import DieClock from Core.WildernessTravelManager import WildernessTravelManager from Interface.Widgets.LineEditMouseWheelE...
52.241791
203
0.746186
3aeaaea0220995b51a401a8289992641fdab006b
238
py
Python
ytdl_gui/__init__.py
Aakodal/ytdl-python
fa40b7722fb51c8cad17d690b83b0f08f36c203a
[ "MIT" ]
null
null
null
ytdl_gui/__init__.py
Aakodal/ytdl-python
fa40b7722fb51c8cad17d690b83b0f08f36c203a
[ "MIT" ]
null
null
null
ytdl_gui/__init__.py
Aakodal/ytdl-python
fa40b7722fb51c8cad17d690b83b0f08f36c203a
[ "MIT" ]
null
null
null
import bottle root = __import__("pathlib").Path(__file__).resolve().parent bottle.TEMPLATE_PATH = [str(root / "views")] app = bottle.default_app() host = "127.0.0.1" port = "65534" from . import controller from . import download_video
19.833333
60
0.722689
3aeb5f1a3b042dd49ac3276109266415fd562f10
2,045
py
Python
src/emutils/geometry/ball.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
src/emutils/geometry/ball.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
src/emutils/geometry/ball.py
emanuele-albini/emutils
d5e3939da8a14b629879f06d87d4bd371e7117ab
[ "MIT" ]
null
null
null
import logging import numpy as np __all__ = [ 'generate_random_points_inside_balls', 'generate_random_point_inside_balls', 'generate_random_points_inside_ball', 'generate_random_point_inside_ball', ] # %% # %%
28.402778
116
0.6489
3aec38a277d65b28e5bc3af20165517902bdb701
1,189
py
Python
day03/part1.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
day03/part1.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
day03/part1.py
mtn/advent19
15d4ae84d248fcf66cb5ebdefee7cad4e6c4a9c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 with open("input.txt") as f: directions = f.read() path1, path2 = map(lambda x: x.split(","), directions.strip().split("\n")) pts1 = getpts(path1) pts2 = getpts(path2) intersections = pts1.intersection(pts2) min_dist = None closest = None for i in intersections: dist = abs(i[0])...
23.78
78
0.502103
3aece6336549f29b4f897302ef630eedb4bbc785
609
py
Python
tests/plugins/test_openrectv.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
5
2017-03-21T19:43:17.000Z
2018-10-03T14:04:29.000Z
tests/plugins/test_openrectv.py
hymer-up/streamlink
f09bf6e04cddc78eceb9ded655f716ef3ee4b84f
[ "BSD-2-Clause" ]
7
2016-10-13T23:29:31.000Z
2018-06-28T14:04:32.000Z
tests/plugins/test_openrectv.py
bumplzz69/streamlink
34abc43875d7663ebafa241573dece272e93d88b
[ "BSD-2-Clause" ]
2
2016-11-24T18:37:33.000Z
2017-03-21T19:43:49.000Z
import unittest from streamlink.plugins.openrectv import OPENRECtv
29
59
0.648604
3aedb392cb14830050e8adbbfe3be5d562d42189
2,264
py
Python
spotify/migrations/0001_initial.py
FattyMango/Syncfy
291bda024d91f9c6fd5f59c073ecf16c90325d8a
[ "Apache-2.0" ]
null
null
null
spotify/migrations/0001_initial.py
FattyMango/Syncfy
291bda024d91f9c6fd5f59c073ecf16c90325d8a
[ "Apache-2.0" ]
null
null
null
spotify/migrations/0001_initial.py
FattyMango/Syncfy
291bda024d91f9c6fd5f59c073ecf16c90325d8a
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.3 on 2021-05-07 18:57 from django.conf import settings from django.db import migrations, models import django.db.models.deletion
47.166667
146
0.628534
3aedf299041cb35f549d54f7d93a4515346863a2
6,474
py
Python
paginas/insights.py
Campos1989/AssureNextDataApp
65023e3e34a8bd8f80d53fce46778d2f4cf9b640
[ "MIT" ]
1
2021-06-25T08:53:31.000Z
2021-06-25T08:53:31.000Z
paginas/insights.py
Campos1989/AssureNextDataApp
65023e3e34a8bd8f80d53fce46778d2f4cf9b640
[ "MIT" ]
null
null
null
paginas/insights.py
Campos1989/AssureNextDataApp
65023e3e34a8bd8f80d53fce46778d2f4cf9b640
[ "MIT" ]
null
null
null
# Script de criao do dashboard # https://dash.plotly.com/dash-html-components # Imports import traceback import pandas as pd import plotly.express as px import dash_core_components as dcc import dash_bootstrap_components as dbc import dash_html_components as html from dash.dependencies import Input, Output # Mdulos c...
78.95122
998
0.605653
3aef6a1d97b22b7334946b3961dc63d93d47db28
752
py
Python
api/serializers.py
isabella232/urlprompt
b689ed0f2e82633653d181959af304590fea8b02
[ "Apache-2.0" ]
null
null
null
api/serializers.py
isabella232/urlprompt
b689ed0f2e82633653d181959af304590fea8b02
[ "Apache-2.0" ]
6
2021-09-30T11:31:58.000Z
2022-03-21T15:12:28.000Z
api/serializers.py
isabella232/urlprompt
b689ed0f2e82633653d181959af304590fea8b02
[ "Apache-2.0" ]
1
2022-03-27T16:53:05.000Z
2022-03-27T16:53:05.000Z
from rest_framework import serializers from core.models import Prompt, CustomUser
31.333333
93
0.682181
3aef79b3128b41665021c29aae4c84fa02130963
246
py
Python
tests/test-config.py
kjdoyle/elyra
bfb79a8e84c85b7d0f39bb168224aed69dbbd808
[ "Apache-2.0" ]
2
2020-05-23T11:21:31.000Z
2020-06-03T22:52:09.000Z
tests/test-config.py
kjdoyle/elyra
bfb79a8e84c85b7d0f39bb168224aed69dbbd808
[ "Apache-2.0" ]
null
null
null
tests/test-config.py
kjdoyle/elyra
bfb79a8e84c85b7d0f39bb168224aed69dbbd808
[ "Apache-2.0" ]
1
2020-05-17T15:19:13.000Z
2020-05-17T15:19:13.000Z
c.Session.debug = True c.LabApp.token = 'test' c.LabApp.open_browser = False c.NotebookApp.port_retries = 0 c.LabApp.workspaces_dir = './build/cypress-tests' c.FileContentsManager.root_dir = './build/cypress-tests' c.LabApp.quit_button = False
30.75
56
0.764228
3af126e2b1c1da6fe4b8a9b65f8ca9e789c79dde
191
py
Python
apps/access/admin.py
usdigitalresponse/rtovid-encampments
b9d0b6ff27c0b47e31b5db5b0f2f92a1da446f86
[ "MIT" ]
1
2021-06-22T10:11:10.000Z
2021-06-22T10:11:10.000Z
apps/access/admin.py
usdigitalresponse/rtovid-encampments
b9d0b6ff27c0b47e31b5db5b0f2f92a1da446f86
[ "MIT" ]
23
2020-05-28T01:00:01.000Z
2020-06-23T12:49:55.000Z
apps/access/admin.py
RTCovid/encampments
b9d0b6ff27c0b47e31b5db5b0f2f92a1da446f86
[ "MIT" ]
null
null
null
from django.contrib.gis import admin from apps.access.models import InvitedEmail admin.site.register(InvitedEmail, InvitedEmailAdmin)
17.363636
52
0.816754
3af3501863237636c8ad601e7b05518a6b063f13
1,550
py
Python
phr/ciudadano/migrations/0053_antecedentereaccionadversamedicamento.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0053_antecedentereaccionadversamedicamento.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
phr/ciudadano/migrations/0053_antecedentereaccionadversamedicamento.py
richardqa/django-ex
e5b8585f28a97477150ac5daf5e55c74b70d87da
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2017-10-02 14:10 from __future__ import unicode_literals from django.db import migrations, models import uuid
41.891892
140
0.593548
3af623d8cb194fe7d9a3384310c51e0b984f4828
302
py
Python
Tracking/Image/pygui1.py
RoosterQMonee/GTAG-PyAI
1bef3cfc85da034f9129a008bd6c5e9114ce3cfd
[ "MIT" ]
null
null
null
Tracking/Image/pygui1.py
RoosterQMonee/GTAG-PyAI
1bef3cfc85da034f9129a008bd6c5e9114ce3cfd
[ "MIT" ]
1
2022-03-30T14:11:13.000Z
2022-03-30T14:11:37.000Z
Tracking/Image/pygui1.py
RoosterQMonee/GTAG-PyAI
1bef3cfc85da034f9129a008bd6c5e9114ce3cfd
[ "MIT" ]
null
null
null
from pyautogui import * import pyautogui import time while 1: if pyautogui.locateOnScreen('img.png', region=(150,175,350,600), grayscale=True, confidence=0.8) != None: print("I can see it") time.sleep(0.5) else: print("I am unable to see it") time.sleep(0.5)
25.166667
109
0.625828
3af692d7975c4dc7bec14dbb6e213b560c3130d8
7,526
py
Python
harvest/detailedreports.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
null
null
null
harvest/detailedreports.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
null
null
null
harvest/detailedreports.py
rzuris/python-harvest_apiv2
1a4915c2772aa9d27b74a545b14138d418566832
[ "MIT" ]
1
2022-03-28T10:47:37.000Z
2022-03-28T10:47:37.000Z
# Copyright 2020 Bradbase import itertools from datetime import datetime, timedelta, date from calendar import monthrange from harvest import Harvest from .harvestdataclasses import *
40.245989
622
0.558464
3af6f1205b131d37a985d1c51f9e6d5d18cb4383
328
py
Python
bibliopixel/commands/kill.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
253
2015-01-03T23:17:57.000Z
2021-12-14T02:31:08.000Z
bibliopixel/commands/kill.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
879
2015-01-11T16:07:25.000Z
2021-12-10T16:24:31.000Z
bibliopixel/commands/kill.py
rec/leds
ed5fd11ed155e7008d4ef6d5b3d82cd7f8b3ed6a
[ "MIT" ]
71
2015-01-04T01:02:47.000Z
2022-03-25T18:30:10.000Z
""" Send a kill signal to a BiblioPixel process running on this machine to abruptly kill it DEPRECATED: use .. code-block:: bash $ kill -kill `bpa-pid` """ DESCRIPTION = """ Example: .. code-block:: bash $ bp kill """ from .. util.signal_handler import make_command add_arguments, run = make_command('SI...
13.666667
59
0.682927
3af703dc54a66f683dbd47d8d1a850161cd49620
5,645
py
Python
DataProcessing.py
manohar9600/The-Movies-Recommendation
138587220ff6bef4c856ea905af5b7e9574e5964
[ "MIT" ]
null
null
null
DataProcessing.py
manohar9600/The-Movies-Recommendation
138587220ff6bef4c856ea905af5b7e9574e5964
[ "MIT" ]
null
null
null
DataProcessing.py
manohar9600/The-Movies-Recommendation
138587220ff6bef4c856ea905af5b7e9574e5964
[ "MIT" ]
null
null
null
# Standard imports import json import ast # Third party imports import pandas as pd from tabulate import tabulate # Local application imports from utils.logger import logger if __name__ == '__main__': data = Dataloding()
37.384106
81
0.583702
aae5f1d79a16e11baab64d302ca2965536e5380a
95
py
Python
coremodels/apps.py
pakponj/coursing-field
0368c2fc546b3955dc1fef1fc00252d8f015f56d
[ "Apache-2.0" ]
null
null
null
coremodels/apps.py
pakponj/coursing-field
0368c2fc546b3955dc1fef1fc00252d8f015f56d
[ "Apache-2.0" ]
null
null
null
coremodels/apps.py
pakponj/coursing-field
0368c2fc546b3955dc1fef1fc00252d8f015f56d
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig
15.833333
34
0.768421
aae681f8c4e041d774adeeb9e3c2ebb127572c89
688
py
Python
scripts/forms.py
ansa-aboudou/resumex
8c546403495c6d0045af4530a3f8601f69035528
[ "MIT" ]
null
null
null
scripts/forms.py
ansa-aboudou/resumex
8c546403495c6d0045af4530a3f8601f69035528
[ "MIT" ]
null
null
null
scripts/forms.py
ansa-aboudou/resumex
8c546403495c6d0045af4530a3f8601f69035528
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from wtforms import Form, StringField, validators
49.142857
119
0.710756
aae69a1c9858fa2062e072c3ac6fac72ce0dc685
334
py
Python
OpenCV/assign1_2.py
Aanal2901/Autumn-of-Automation
c6ea432d3608652254b841c392dde6aa466b2df4
[ "MIT" ]
null
null
null
OpenCV/assign1_2.py
Aanal2901/Autumn-of-Automation
c6ea432d3608652254b841c392dde6aa466b2df4
[ "MIT" ]
null
null
null
OpenCV/assign1_2.py
Aanal2901/Autumn-of-Automation
c6ea432d3608652254b841c392dde6aa466b2df4
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Jul 24 00:44:49 2020 @author: Aanal Sonara """ import cv2 cap = cv2.VideoCapture(0) while cap.isOpened(): _, frame = cap.read() cv2.imshow("live video", frame) k = cv2.waitKey(1) and 0xFF if k==27: break cap.release() cv2.destr...
17.578947
36
0.577844
aae6ab08212b4b7afe1925bc3ddbf0db7587516e
5,515
py
Python
site_parser/site_parser.py
TheStalkerDen/Comp-Architecture-Lab1
ad92aed0c639cb223adc033aba5f79cc6a8f5344
[ "MIT" ]
null
null
null
site_parser/site_parser.py
TheStalkerDen/Comp-Architecture-Lab1
ad92aed0c639cb223adc033aba5f79cc6a8f5344
[ "MIT" ]
null
null
null
site_parser/site_parser.py
TheStalkerDen/Comp-Architecture-Lab1
ad92aed0c639cb223adc033aba5f79cc6a8f5344
[ "MIT" ]
null
null
null
import configparser import os import tempfile import urllib.request import xml.dom.minidom import xml.etree.ElementTree as ET from urllib.error import HTTPError, URLError from urllib.parse import urlparse from bs4 import BeautifulSoup from tinytag import TinyTag import gevent dir_path = os.path.dirname(os.path.realpa...
36.282895
114
0.677244
aae7a8e4bea1bfaeb77207d29d33884bce510446
4,341
py
Python
project/encoder_toy.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
project/encoder_toy.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
project/encoder_toy.py
tkosht/wikiencoder
c1744e60e902949e1926c9efe0c24eb3ac5f00fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import numpy import torch import torchnet from tqdm import tqdm from torchnet.engine import Engine from torchnet.logger import VisdomPlotLogger, VisdomLogger import project.deco as deco from project.sequoder import SequenceEncoder, get_loss if __name__...
31.919118
95
0.628657
aae827e1c08cf7a4934daf6680f0a298b8d6f043
18,420
py
Python
families/supplychain_python/sawtooth_supplychain/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
families/supplychain_python/sawtooth_supplychain/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
families/supplychain_python/sawtooth_supplychain/processor/handler.py
trust-tech/sawtooth-core
fcd66ff2f13dba51d7642049e0c0306dbee3b07d
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Intel 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 in wri...
40.394737
80
0.591205
aaebe47258a943fd8be9436d233e4c883e9d3710
13,212
py
Python
iarm_kernel/iarmkernel.py
howardjp/iMCS-48
b545a37a9b15fdcdacb4e2ba263f45a9c62df079
[ "MIT" ]
20
2016-05-16T18:23:49.000Z
2021-08-06T17:15:34.000Z
iarm_kernel/iarmkernel.py
howardjp/iMCS-48
b545a37a9b15fdcdacb4e2ba263f45a9c62df079
[ "MIT" ]
11
2016-07-14T17:57:10.000Z
2020-11-18T21:11:21.000Z
iarm_kernel/iarmkernel.py
howardjp/iMCS-48
b545a37a9b15fdcdacb4e2ba263f45a9c62df079
[ "MIT" ]
4
2016-08-14T19:11:21.000Z
2021-08-18T09:38:25.000Z
from ipykernel.kernelbase import Kernel from iarm.arm import Arm import re import warnings import iarm.exceptions if __name__ == '__main__': from ipykernel.kernelapp import IPKernelApp IPKernelApp.launch_instance(kernel_class=ArmKernel)
37.748571
128
0.546776
aaecb8a64722e04f0363e0de885f9fecd7b99152
383
py
Python
pyweb/com/xsqt/Student.py
zhougithui/python
fbac0b2508545083044eafde4bf6eb58d4606eb5
[ "Apache-2.0" ]
null
null
null
pyweb/com/xsqt/Student.py
zhougithui/python
fbac0b2508545083044eafde4bf6eb58d4606eb5
[ "Apache-2.0" ]
null
null
null
pyweb/com/xsqt/Student.py
zhougithui/python
fbac0b2508545083044eafde4bf6eb58d4606eb5
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/evn python if __name__ == '__main__': stu = Student() stu.birth = 1991 print(stu.age)
15.958333
36
0.587467
aaee23ba02e2df2083e1a2d6aa2430790b04b2a3
35
py
Python
src/utils/__init__.py
Columbine21/Hierarchical-Attention-Networks
623840970cb302c7f74515ffff1560c0131b975e
[ "MIT" ]
1
2021-03-15T02:45:28.000Z
2021-03-15T02:45:28.000Z
src/utils/__init__.py
Columbine21/Hierarchical-Attention-Networks
623840970cb302c7f74515ffff1560c0131b975e
[ "MIT" ]
null
null
null
src/utils/__init__.py
Columbine21/Hierarchical-Attention-Networks
623840970cb302c7f74515ffff1560c0131b975e
[ "MIT" ]
null
null
null
from .vocab import gloveVocabulary
17.5
34
0.857143
aaf0aa3cbdbb1c81c191ac04d6a56e4b822a4b99
980
py
Python
src/weapon.py
gcairesdev/zelda
33fce4196c306d0a840aa189b0213f2879058090
[ "MIT" ]
2
2022-03-10T22:22:19.000Z
2022-03-24T14:42:55.000Z
src/weapon.py
gcairesdev/zelda
33fce4196c306d0a840aa189b0213f2879058090
[ "MIT" ]
null
null
null
src/weapon.py
gcairesdev/zelda
33fce4196c306d0a840aa189b0213f2879058090
[ "MIT" ]
null
null
null
import pygame
36.296296
75
0.586735
aaf11ccf2412c6e3efada30eaecd8bb0db6b297a
3,052
py
Python
Assignment1/initial/src/main/mp/utils/AST.py
jimcbl/ppl_hcmut_assignment
7a06d61e4cda8c76f62a1da5b93ef66d98198b80
[ "MIT" ]
1
2019-11-27T13:41:07.000Z
2019-11-27T13:41:07.000Z
Assignment1/initial/src/main/mp/utils/AST.py
jimodayne/ppl_hcmut_assignment
7a06d61e4cda8c76f62a1da5b93ef66d98198b80
[ "MIT" ]
null
null
null
Assignment1/initial/src/main/mp/utils/AST.py
jimodayne/ppl_hcmut_assignment
7a06d61e4cda8c76f62a1da5b93ef66d98198b80
[ "MIT" ]
1
2019-12-03T05:33:13.000Z
2019-12-03T05:33:13.000Z
from abc import ABC, abstractmethod, ABCMeta from Visitor import Visitor
23.476923
154
0.572412
aaf368c0cbb0ab66f42b16908ff73d7af84048da
1,224
py
Python
humans-in-the-loop-files/machine-learning-scripts/ImageDownloader.py
LibraryOfCongress/hitl
8b054f1433b2129bfbaf16fcb09df637335a04a0
[ "MIT" ]
3
2021-12-06T16:44:16.000Z
2022-03-30T05:45:48.000Z
humans-in-the-loop-files/machine-learning-scripts/ImageDownloader.py
LibraryOfCongress/hitl
8b054f1433b2129bfbaf16fcb09df637335a04a0
[ "MIT" ]
8
2022-02-14T22:39:19.000Z
2022-03-31T01:54:06.000Z
humans-in-the-loop-files/machine-learning-scripts/ImageDownloader.py
LibraryOfCongress/hitl
8b054f1433b2129bfbaf16fcb09df637335a04a0
[ "MIT" ]
1
2022-02-15T18:59:44.000Z
2022-02-15T18:59:44.000Z
# # Download images from the LOC IIIF server and store them locally # import requests from pathlib import Path import shutil import time base = 'https://www.loc.gov/' iiifbase = 'https://tile.loc.gov/image-services/iiif/'
36
146
0.607843
aaf4cca94bb840d24c6ed43cf92a6175ba126324
1,291
py
Python
Task2E.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
Task2E.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
Task2E.py
bendomb/IA-Flood-Warning-System
8e476010e83b64aca8a05dc31f88fe2d6fbd3c9f
[ "MIT" ]
null
null
null
from floodsystem.datafetcher import fetch_measure_levels from floodsystem.stationdata import build_station_list, update_water_levels import floodsystem.flood as flood import floodsystem.plot as plot from datetime import datetime, timedelta import datetime stations = build_station_list() update_water_levels(stations) ...
32.275
120
0.691712
aaf7c70154f36b59a8bb5810940a58d3ac7062c0
2,007
py
Python
cracker.py
alin-dinescu/WPA2-HalfHandshake-Crack
fc8e31dd0e34c3ac9c7e95fceb222a4212bd1342
[ "OpenSSL", "MIT" ]
null
null
null
cracker.py
alin-dinescu/WPA2-HalfHandshake-Crack
fc8e31dd0e34c3ac9c7e95fceb222a4212bd1342
[ "OpenSSL", "MIT" ]
null
null
null
cracker.py
alin-dinescu/WPA2-HalfHandshake-Crack
fc8e31dd0e34c3ac9c7e95fceb222a4212bd1342
[ "OpenSSL", "MIT" ]
null
null
null
import hmac, hashlib, binascii from hashlib import sha1 from binascii import a2b_hex, b2a_hex, unhexlify from pbkdf2_ctypes import pbkdf2_bin from multiprocessing import Pool, Queue, cpu_count from datetime import datetime from time import sleep numOfPs = cpu_count()
33.45
163
0.605879
aaf844dccdd148febc58c248704051fea8ef7efb
1,256
py
Python
gui_components/cell.py
FilipRistic2922/SudokuPy
7098530d2fd9d82cc2e66649c993630ef6e5774a
[ "MIT" ]
null
null
null
gui_components/cell.py
FilipRistic2922/SudokuPy
7098530d2fd9d82cc2e66649c993630ef6e5774a
[ "MIT" ]
null
null
null
gui_components/cell.py
FilipRistic2922/SudokuPy
7098530d2fd9d82cc2e66649c993630ef6e5774a
[ "MIT" ]
null
null
null
import pygame from gui_components.gui_util import get_font, BLACK, BLUE, GRAY
27.304348
105
0.527866
aaf88ec65f719215938c906b09236be307dd6034
2,246
py
Python
chapter2/remove_dups.py
MubashirullahD/cracking-the-coding-interview
f9595886967e7c63cec19028239e4289e9cd1f9e
[ "MIT" ]
1
2021-12-01T13:26:10.000Z
2021-12-01T13:26:10.000Z
chapter2/remove_dups.py
MubashirullahD/cracking-the-coding-interview
f9595886967e7c63cec19028239e4289e9cd1f9e
[ "MIT" ]
null
null
null
chapter2/remove_dups.py
MubashirullahD/cracking-the-coding-interview
f9595886967e7c63cec19028239e4289e9cd1f9e
[ "MIT" ]
null
null
null
""" Remove Dups: Write code to remove duplicates from an unsorted linked list. FOLLOW UP How would you solve this problem if a temporary buffer is not allowed? """ from linkedlist import linkedlist if __name__ == "__main__": test_list = linkedlist(10) test_list.top.append_to_tail(20) test_list....
27.060241
77
0.629564
aaf93a0fc8d0fd36a7282b6699c6daddec972081
1,172
py
Python
examples/sample.py
odra/habet
cb791c3367f06fff0a6557fe5697033b2262bfc8
[ "MIT" ]
null
null
null
examples/sample.py
odra/habet
cb791c3367f06fff0a6557fe5697033b2262bfc8
[ "MIT" ]
null
null
null
examples/sample.py
odra/habet
cb791c3367f06fff0a6557fe5697033b2262bfc8
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import sys sys.path.append('../') from habet import Application, Response, Handler, errors import json #custom error register #root handler #name handler #application setup app = Application(some_var='my var') app.route('/', RootHandler) app.route('/{name}', NameHandler) #run app if ...
21.309091
63
0.672355
aafaed7bd2fdeb1c2bbe286e7b1293532edfc8c8
2,516
py
Python
api/models.py
mz-techops/banhammer
02476db3d2bb617dbe50827687065fbea7553caf
[ "BSD-3-Clause" ]
3
2018-03-09T23:29:25.000Z
2020-11-25T15:34:13.000Z
api/models.py
whyallyn/banhammer
59fc81b15d9950a7a40279a9d1df8101c58df569
[ "BSD-3-Clause" ]
3
2018-05-08T01:10:43.000Z
2021-03-19T21:56:36.000Z
api/models.py
whyallyn/banhammer
59fc81b15d9950a7a40279a9d1df8101c58df569
[ "BSD-3-Clause" ]
2
2018-05-10T15:07:24.000Z
2018-06-20T16:24:00.000Z
"""API Django models.""" from __future__ import unicode_literals from django.db import models from django.utils.encoding import python_2_unicode_compatible
31.848101
76
0.636328
aafb1cf5d24f222fa6f06ff100c89a778fe48350
179
py
Python
accounts/urls.py
Julmgc/Course-Organizer
b383f2845474314186a2ac6589885af890889da8
[ "MIT" ]
null
null
null
accounts/urls.py
Julmgc/Course-Organizer
b383f2845474314186a2ac6589885af890889da8
[ "MIT" ]
null
null
null
accounts/urls.py
Julmgc/Course-Organizer
b383f2845474314186a2ac6589885af890889da8
[ "MIT" ]
null
null
null
from django.urls import path from .views import UserLogin, UserRegister urlpatterns = [ path("accounts/", UserRegister.as_view()), path("login/", UserLogin.as_view()), ]
22.375
46
0.709497
aafb2505abc576fb91ec98a082757451092677b3
1,795
py
Python
src/ranking_utils/scripts/preprocess.py
fknauf/ranking-utils
ce1a0be4e560d5f156a76cb5c0e3751793c67648
[ "MIT" ]
null
null
null
src/ranking_utils/scripts/preprocess.py
fknauf/ranking-utils
ce1a0be4e560d5f156a76cb5c0e3751793c67648
[ "MIT" ]
null
null
null
src/ranking_utils/scripts/preprocess.py
fknauf/ranking-utils
ce1a0be4e560d5f156a76cb5c0e3751793c67648
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import argparse from pathlib import Path from pytorch_lightning import seed_everything from ranking_utils.datasets.antique import ANTIQUE from ranking_utils.datasets.fiqa import FiQA from ranking_utils.datasets.insuranceqa import InsuranceQA from ranking_utils.datasets.trecdl import TRECDL20...
29.42623
88
0.690808
aafc4992c92b83ce538e9440118f026965da7bbf
6,158
py
Python
camshot.py
corerd/camshot
b85787a27eac97ed6c9617203aab0e0a62a4960a
[ "MIT" ]
1
2020-06-14T11:01:34.000Z
2020-06-14T11:01:34.000Z
camshot.py
corerd/camshot
b85787a27eac97ed6c9617203aab0e0a62a4960a
[ "MIT" ]
null
null
null
camshot.py
corerd/camshot
b85787a27eac97ed6c9617203aab0e0a62a4960a
[ "MIT" ]
null
null
null
#!/usr/bin/python # # The MIT License (MIT) # # Copyright (c) 2014 Corrado Ubezio # # 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 rig...
39.729032
142
0.709159
aafcb95092c87ce209c68768cc38ba847d90f715
945
py
Python
lightcycle-backend/lightcycle/basebot.py
Onapsis/pytron
2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58
[ "MIT" ]
null
null
null
lightcycle-backend/lightcycle/basebot.py
Onapsis/pytron
2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58
[ "MIT" ]
null
null
null
lightcycle-backend/lightcycle/basebot.py
Onapsis/pytron
2ed0622ae13f010bcd8fdbbd2f1e9cba3d2e3d58
[ "MIT" ]
null
null
null
# encoding=utf-8 import random from collections import namedtuple Point = namedtuple('Point', 'x y') DIRECTIONS = { 'N': Point(0, -1), 'E': Point(1, 0), 'S': Point(0, 1), 'W': Point(-1, 0), }
27
73
0.583069
aafd6a05995c3be1c704460d3a42582a855ce32e
6,629
py
Python
TD1/utils/extrinsic.py
AntoineOrgerit/Web-Scrapping
552f2f85d775ada9e85f897713d20de09c0919ed
[ "BSD-3-Clause" ]
null
null
null
TD1/utils/extrinsic.py
AntoineOrgerit/Web-Scrapping
552f2f85d775ada9e85f897713d20de09c0919ed
[ "BSD-3-Clause" ]
null
null
null
TD1/utils/extrinsic.py
AntoineOrgerit/Web-Scrapping
552f2f85d775ada9e85f897713d20de09c0919ed
[ "BSD-3-Clause" ]
null
null
null
""" This module allows to perform a specific extrinsic evaluation of files by a specified criteria. Antoine Orgerit - Franois Grau - Lisa Fougeron La Rochelle Universit - 2019-2020 """ import langid import json import copy import subprocess from os import listdir, remove from os.path import isfile, join from utils.da...
38.994118
276
0.629808
aafdf4b1d0c84500a3e64c7af727b3f3bc824d1a
5,002
py
Python
cinder/tests/unit/policies/test_quotas.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/tests/unit/policies/test_quotas.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/tests/unit/policies/test_quotas.py
arunvinodqmco/cinder
62cb72c6890e458427ba0601646b186b7b36dc01
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# Copyright 2021 Red Hat, Inc. # All Rights Reserved. # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by a...
33.797297
78
0.595162
aafe6ad15866307b4277788796934306b2fe5812
2,207
py
Python
build/lib/like_spider/excel.py
wuyingjie1002/like_spider
379354a362a693d45513aee4a8d871e79d7f8de4
[ "MIT" ]
3
2019-02-23T08:19:41.000Z
2021-01-07T08:05:29.000Z
build/lib/like_spider/excel.py
wuyingjie1002/like_spider
379354a362a693d45513aee4a8d871e79d7f8de4
[ "MIT" ]
null
null
null
build/lib/like_spider/excel.py
wuyingjie1002/like_spider
379354a362a693d45513aee4a8d871e79d7f8de4
[ "MIT" ]
1
2019-02-23T08:19:43.000Z
2019-02-23T08:19:43.000Z
import time, os from openpyxl import load_workbook from openpyxl import Workbook from .config import *
33.439394
63
0.487993
aafefeb23bc5b42fc6c15fe4bf23b8763287d5b4
357
py
Python
carbontracker/predictor.py
leondz/carbontracker
f8b4542f4a0f803d053401b53a3cc367281b31a9
[ "MIT" ]
186
2020-05-02T20:51:48.000Z
2022-03-30T09:33:44.000Z
carbontracker/predictor.py
johnjdailey/carbontracker
1c9307b5fc2a408667f3a19c12c2b45be08354b2
[ "MIT" ]
43
2020-05-10T12:44:26.000Z
2022-03-09T11:12:11.000Z
carbontracker/predictor.py
johnjdailey/carbontracker
1c9307b5fc2a408667f3a19c12c2b45be08354b2
[ "MIT" ]
10
2020-05-04T11:20:04.000Z
2022-02-16T03:02:39.000Z
import numpy as np # TODO: Do advanced prediction based on profiling work.
27.461538
55
0.792717
c900a339bfb670f70e69fd6eb2b9f7f8d65dd5a7
946
py
Python
city_scrapers/spiders/det_downtown_development_authority.py
just-hugo/city-scrapers-det
76b52f11506c99e19b7fcaf135cc7570257a2b62
[ "MIT" ]
1
2020-10-01T18:27:59.000Z
2020-10-01T18:27:59.000Z
city_scrapers/spiders/det_downtown_development_authority.py
just-hugo/city-scrapers-det
76b52f11506c99e19b7fcaf135cc7570257a2b62
[ "MIT" ]
9
2019-11-30T21:33:24.000Z
2021-04-07T19:26:47.000Z
city_scrapers/spiders/det_downtown_development_authority.py
just-hugo/city-scrapers-det
76b52f11506c99e19b7fcaf135cc7570257a2b62
[ "MIT" ]
5
2019-12-20T17:29:10.000Z
2021-02-14T01:32:26.000Z
from city_scrapers_core.constants import BOARD from city_scrapers_core.spiders import CityScrapersSpider from city_scrapers.mixins import DetAuthorityMixin
35.037037
83
0.663848
c90218f051fff4ea8d9d74263bd6864628d0ed69
2,172
py
Python
code/parsing/parsing_args.py
mdheller/SPARQA
3678798491abeb350d9500182291b9a73da75bed
[ "MIT" ]
1
2020-06-20T12:27:11.000Z
2020-06-20T12:27:11.000Z
code/parsing/parsing_args.py
mdheller/SPARQA
3678798491abeb350d9500182291b9a73da75bed
[ "MIT" ]
null
null
null
code/parsing/parsing_args.py
mdheller/SPARQA
3678798491abeb350d9500182291b9a73da75bed
[ "MIT" ]
null
null
null
from common.bert_args import BertArgs from sutime import SUTime from parsing.nltk_nlp_utils import NLTK_NLP from common import globals_args from common import hand_files parser_mode = globals_args.parser_mode wh_words_set = {"what", "which", "whom", "who", "when", "where", "why", "how", "how many", "how large",...
65.818182
133
0.683702
c90237976b3a9200b3841c1dddf956cf22c21271
1,378
py
Python
torchtext/datasets/amazonreviewfull.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
3,172
2017-01-18T19:47:03.000Z
2022-03-27T17:06:03.000Z
torchtext/datasets/amazonreviewfull.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
1,228
2017-01-18T20:09:16.000Z
2022-03-31T04:42:35.000Z
torchtext/datasets/amazonreviewfull.py
parmeet/text
1fb2aedb48b5ecc5e81741e7c8504486b91655c6
[ "BSD-3-Clause" ]
850
2017-01-19T03:19:54.000Z
2022-03-29T15:29:52.000Z
from torchtext.data.datasets_utils import ( _RawTextIterableDataset, _wrap_split_argument, _add_docstring_header, _download_extract_validate, _create_dataset_directory, _create_data_from_csv, ) import os import logging URL = 'https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbZVhsUnRWR...
30.622222
125
0.716255
c90243bd480bf830b8eea8819352fe119d1a48da
2,962
py
Python
code/examples/VsevolodTymofyeyev/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
code/examples/VsevolodTymofyeyev/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
code/examples/VsevolodTymofyeyev/example.py
TrackerSB/MasterThesis
2792203d28d6c7b62f54545344ee6772d2ec5b64
[ "MIT" ]
null
null
null
import os from threading import Thread from typing import List from aiExchangeMessages_pb2 import SimulationID if __name__ == "__main__": from AIExchangeService import get_service from aiExchangeMessages_pb2 import SimStateResponse, Control, SimulationID, VehicleID, DataRequest from keyboard import is_p...
36.121951
102
0.581702
c903dd831993098c836cb5e931cb47ef98a3829d
4,869
py
Python
python/aocrecs/logic/minimap.py
Rotzbua/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
7
2019-10-08T09:04:48.000Z
2021-02-06T00:05:53.000Z
python/aocrecs/logic/minimap.py
happyleavesaoc/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
10
2020-01-18T22:14:09.000Z
2021-07-31T21:43:05.000Z
python/aocrecs/logic/minimap.py
happyleavesaoc/aocrecs.com
2f03ece75e7367a99e5f36874727cd5bb90508f7
[ "MIT" ]
5
2020-05-08T11:35:14.000Z
2022-01-16T12:41:57.000Z
"""Generate SVG minimap.""" from aioify import wrap as aiowrap from subprocess import Popen, PIPE import math import xml.etree.ElementTree as ET from aocrecs.consts import PREDATOR_IDS, HERDABLE_IDS, HUNT_IDS, BOAR_IDS, FISH_IDS, FORAGE_ID, TC_IDS GOLD_COLOR = '#FFC700' STONE_COLOR = '#919191' FOOD_COLOR = '#A5C46C'...
36.609023
142
0.59047
c9050ca554b19fd1e3228026b793070703e19ae1
150
py
Python
NewspaperSpider/NewspaperSpider/items.py
sidharthk9/NewspaperScraper
9a8d608c55cc6fdfa6492d2ca58739066d65b16e
[ "Unlicense" ]
null
null
null
NewspaperSpider/NewspaperSpider/items.py
sidharthk9/NewspaperScraper
9a8d608c55cc6fdfa6492d2ca58739066d65b16e
[ "Unlicense" ]
null
null
null
NewspaperSpider/NewspaperSpider/items.py
sidharthk9/NewspaperScraper
9a8d608c55cc6fdfa6492d2ca58739066d65b16e
[ "Unlicense" ]
null
null
null
import scrapy from scrapy.item import Field
15
29
0.72
c90520de032ac5944e1b5e55e1cdb770212939a5
3,526
py
Python
Application/views.py
gdimitris/FleetManagerBackend
1a5f0c26a4279894b6ed6507cf729f88502d0883
[ "MIT" ]
null
null
null
Application/views.py
gdimitris/FleetManagerBackend
1a5f0c26a4279894b6ed6507cf729f88502d0883
[ "MIT" ]
null
null
null
Application/views.py
gdimitris/FleetManagerBackend
1a5f0c26a4279894b6ed6507cf729f88502d0883
[ "MIT" ]
1
2020-05-05T05:42:00.000Z
2020-05-05T05:42:00.000Z
import os from datetime import datetime from flask import render_template, request, jsonify, send_from_directory, url_for from Application import app, db from Application.db_operations import update_researcher_timestamp, insert_location_point_in_db, \ insert_or_update_existing_researcher, get_all_researchers_from_d...
33.903846
99
0.731707
c905ade7488a7156992eba8440fe0b587bb04770
347
py
Python
app/app.py
JulesGrd/Twitter-Dog-Bot
d0b8a12afbf7ca1c42c540032d1ad9ff5681701b
[ "MIT" ]
2
2021-10-08T21:43:44.000Z
2021-10-08T22:19:22.000Z
app/app.py
JulesGrd/Twitter-Dog-Bot
d0b8a12afbf7ca1c42c540032d1ad9ff5681701b
[ "MIT" ]
1
2021-11-07T20:07:53.000Z
2021-11-07T20:07:53.000Z
app/app.py
JulesGrd/Twitter-Dog-Bot
d0b8a12afbf7ca1c42c540032d1ad9ff5681701b
[ "MIT" ]
1
2021-11-07T18:05:19.000Z
2021-11-07T18:05:19.000Z
import tweepy import dog from postDog import postDog from config import data if __name__ == '__main__': auth = tweepy.OAuthHandler(data["OAUTH_HANDLER_1"], data["OAUTH_HANDLER_2"]) auth.set_access_token(data["API_KEY_1"], data["API_KEY_2"]) api = tweepy.API(auth) dogPic = dog.getDog(filename='assets...
21.6875
80
0.717579