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
659cc327a8d71d143b1d4f60325b26e2f3b52adc
818
py
Python
pem_recover.py
EggPool/gpg-experiments
82f79fc05dbc745a84b9bb14c60161716cd08756
[ "MIT" ]
null
null
null
pem_recover.py
EggPool/gpg-experiments
82f79fc05dbc745a84b9bb14c60161716cd08756
[ "MIT" ]
null
null
null
pem_recover.py
EggPool/gpg-experiments
82f79fc05dbc745a84b9bb14c60161716cd08756
[ "MIT" ]
null
null
null
from Cryptodome.PublicKey import RSA import hashlib import json # Edit with your pem file with open('privkey.pem', 'r') as f: private_key_readable = f.read() key = RSA.importKey(private_key_readable) recover(key)
30.296296
77
0.720049
659cf1416e415156d8b4e266bad74755407e575d
316
py
Python
arcade/python/arcade-theCore/06_LabyrinthOfNestedLoops/043_IsPower.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
arcade/python/arcade-theCore/06_LabyrinthOfNestedLoops/043_IsPower.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
arcade/python/arcade-theCore/06_LabyrinthOfNestedLoops/043_IsPower.py
netor27/codefights-arcade-solutions
69701ab06d45902c79ec9221137f90b75969d8c8
[ "MIT" ]
null
null
null
def isPower(n): ''' Determine if the given number is a power of some non-negative integer. ''' if n == 1: return True sqrt = math.sqrt(n) for a in range(int(sqrt)+1): for b in range(2, int(sqrt)+1): if a ** b == n: return True return False
24.307692
74
0.506329
659ffa3c1d30e46aa593ca5d32d54d54bd7d5e35
218
py
Python
plugins/pick/choices.py
rbracken/internbot
58b802e0dd7597ace12acd9342bb938e2f33c25d
[ "BSD-2-Clause" ]
1
2016-09-24T16:00:06.000Z
2016-09-24T16:00:06.000Z
plugins/pick/choices.py
rbracken/internbot
58b802e0dd7597ace12acd9342bb938e2f33c25d
[ "BSD-2-Clause" ]
null
null
null
plugins/pick/choices.py
rbracken/internbot
58b802e0dd7597ace12acd9342bb938e2f33c25d
[ "BSD-2-Clause" ]
null
null
null
# Add your own choices here! fruit = ["apples", "oranges", "pears", "grapes", "blueberries"] lunch = ["pho", "timmies", "thai", "burgers", "buffet!", "indian", "montanas"] situations = {"fruit":fruit, "lunch":lunch}
36.333333
79
0.62844
65a027371c207094c43000aeb78dc0ce9124ddf6
1,806
py
Python
testing.py
blairg23/rename-images-to-datetime
e4fc8e34be9d651c4442b023d851bd64fd613e7f
[ "MIT" ]
null
null
null
testing.py
blairg23/rename-images-to-datetime
e4fc8e34be9d651c4442b023d851bd64fd613e7f
[ "MIT" ]
null
null
null
testing.py
blairg23/rename-images-to-datetime
e4fc8e34be9d651c4442b023d851bd64fd613e7f
[ "MIT" ]
null
null
null
''' Stolen straight from https://stackoverflow.com/a/51337247/1224827 ''' try: import PIL import PIL.Image as PILimage from PIL import ImageDraw, ImageFont, ImageEnhance from PIL.ExifTags import TAGS, GPSTAGS import os import glob except ImportError as err: exit(err) if __name__ == '__mai...
26.558824
65
0.55814
65a0da8d520c64ade98d09bb5d2663a8e3d3134d
102
py
Python
tftool/access/__init__.py
antsfamily/tftool
0de72be13b3ca43e8a95c8be726c55841b389973
[ "MIT" ]
null
null
null
tftool/access/__init__.py
antsfamily/tftool
0de72be13b3ca43e8a95c8be726c55841b389973
[ "MIT" ]
null
null
null
tftool/access/__init__.py
antsfamily/tftool
0de72be13b3ca43e8a95c8be726c55841b389973
[ "MIT" ]
null
null
null
from __future__ import absolute_import from .load import load_ckpt from .save import save_ckpt
17
39
0.794118
65a11747e48582b0ad97e6b0273c903fafd78306
1,730
py
Python
scripts/box3d_trpo/sweep_ddpg_0.py
fredshentu/public_model_based_controller
9301699bc56aa49ba5c699f7d5be299046a8aa0c
[ "MIT" ]
null
null
null
scripts/box3d_trpo/sweep_ddpg_0.py
fredshentu/public_model_based_controller
9301699bc56aa49ba5c699f7d5be299046a8aa0c
[ "MIT" ]
null
null
null
scripts/box3d_trpo/sweep_ddpg_0.py
fredshentu/public_model_based_controller
9301699bc56aa49ba5c699f7d5be299046a8aa0c
[ "MIT" ]
null
null
null
import os from rllab.envs.normalized_env import normalize from rllab.misc.instrument import stub, run_experiment_lite from sandbox.rocky.tf.envs.base import TfEnv from rllab.envs.gym_env import GymEnv from railrl.algos.ddpg import DDPG from railrl.policies.nn_policy import FeedForwardPolicy from railrl.qfunctions.nn_q...
23.378378
92
0.750289
65a1934b198c619626a687dd053ddc9910070a15
17,974
py
Python
tests/test_engine.py
popravich/hiku
4ce6b46302de61fc17016ddf3af3f378b3fce119
[ "BSD-3-Clause" ]
null
null
null
tests/test_engine.py
popravich/hiku
4ce6b46302de61fc17016ddf3af3f378b3fce119
[ "BSD-3-Clause" ]
null
null
null
tests/test_engine.py
popravich/hiku
4ce6b46302de61fc17016ddf3af3f378b3fce119
[ "BSD-3-Clause" ]
1
2022-01-20T17:03:23.000Z
2022-01-20T17:03:23.000Z
import re import pytest from hiku import query as q from hiku.graph import Graph, Node, Field, Link, Option, Root from hiku.types import Record, Sequence, Integer, Optional, TypeRef from hiku.utils import listify from hiku.engine import Engine, pass_context, Context from hiku.builder import build, Q from hiku.executo...
27.780526
80
0.476355
65a1c52735b77b5b062b18c86f7b8f8507e5e9d2
90
py
Python
helper.py
b-nguyen/cs3240-labdemo
ee8da87092bc46d6a774fa5030283224819a4b87
[ "MIT" ]
null
null
null
helper.py
b-nguyen/cs3240-labdemo
ee8da87092bc46d6a774fa5030283224819a4b87
[ "MIT" ]
null
null
null
helper.py
b-nguyen/cs3240-labdemo
ee8da87092bc46d6a774fa5030283224819a4b87
[ "MIT" ]
null
null
null
__author__ = 'Brian Nguyen'
18
41
0.655556
65a24baaac6c0fcc20473db9883448f3352703ee
6,251
py
Python
twitter_verified_blocker.py
antoinemcgrath/twitter_blocker_tool
f4c0ed866830259a5ae6844dbb5fbdac8b3674b2
[ "MIT" ]
null
null
null
twitter_verified_blocker.py
antoinemcgrath/twitter_blocker_tool
f4c0ed866830259a5ae6844dbb5fbdac8b3674b2
[ "MIT" ]
null
null
null
twitter_verified_blocker.py
antoinemcgrath/twitter_blocker_tool
f4c0ed866830259a5ae6844dbb5fbdac8b3674b2
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #### A tool for blocking all verified users on Twitter. ## You may want to create a (public or private) Twitter list named 'exceptions' and add verified users to it. ## This 'exceptions' list that you create on Twitter is for verified accounts that you like and do not want to block. #### Import dep...
38.58642
117
0.628379
65a29ad725144c4d2dc24167982660ac5a79324c
586
py
Python
src/pktmapper/common.py
Sapunov/pktmapper
9d72a42c5b756c10c7fb0debcfc6c20031626aa1
[ "MIT" ]
null
null
null
src/pktmapper/common.py
Sapunov/pktmapper
9d72a42c5b756c10c7fb0debcfc6c20031626aa1
[ "MIT" ]
null
null
null
src/pktmapper/common.py
Sapunov/pktmapper
9d72a42c5b756c10c7fb0debcfc6c20031626aa1
[ "MIT" ]
null
null
null
""" Common functions --- Package: PACKET-MAPPER Author: Sapunov Nikita <kiton1994@gmail.com> """ import netaddr import socket def ip2str(address): """ Print out an IP address given a string Args: address (inet struct): inet network address Returns: str: Printable/readable IP address...
16.742857
52
0.641638
65a7dd3e05e8bc60ee17293d906552f32358fc04
1,236
py
Python
custom_packages/CustomNeuralNetworks/test_CustomNeuralNetworks/test_resnet50_unet.py
davidelomeo/mangroves_deep_learning
27ce24fe183b65f054c1d6b41417a64355cd0c9c
[ "MIT" ]
null
null
null
custom_packages/CustomNeuralNetworks/test_CustomNeuralNetworks/test_resnet50_unet.py
davidelomeo/mangroves_deep_learning
27ce24fe183b65f054c1d6b41417a64355cd0c9c
[ "MIT" ]
null
null
null
custom_packages/CustomNeuralNetworks/test_CustomNeuralNetworks/test_resnet50_unet.py
davidelomeo/mangroves_deep_learning
27ce24fe183b65f054c1d6b41417a64355cd0c9c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # This script tests the function that builds the Un-Net model combined # with the ResNet50 model as an encoder. The test does not look for # numerical values but checks if the model returns am object or not. # This is because there are several tests within the UNet class t...
35.314286
79
0.755663
65a81a20a737d47906a247b2cf2e411a76cfdb20
1,988
py
Python
htb/Knife/exploit/49933.py
oonray/Notes
7e52bd058cce5ccf488977222fdb7d7e88aabbbf
[ "MIT" ]
null
null
null
htb/Knife/exploit/49933.py
oonray/Notes
7e52bd058cce5ccf488977222fdb7d7e88aabbbf
[ "MIT" ]
null
null
null
htb/Knife/exploit/49933.py
oonray/Notes
7e52bd058cce5ccf488977222fdb7d7e88aabbbf
[ "MIT" ]
null
null
null
# Exploit Title: PHP 8.1.0-dev - 'User-Agentt' Remote Code Execution # Date: 23 may 2021 # Exploit Author: flast101 # Vendor Homepage: https://www.php.net/ # Software Link: # - https://hub.docker.com/r/phpdaily/php # - https://github.com/phpdaily/php # Version: 8.1.0-dev # Tested on: Ubuntu 20.04 # References: ...
37.509434
267
0.667505
65a8a8d322da8f141e973ee61e8ca8e2f7c15699
2,271
py
Python
flashcards/cli.py
elliott-king/flashcards
5dd6ae3d996797b11e28b2bd8a5b0d6e038e1a5d
[ "MIT" ]
null
null
null
flashcards/cli.py
elliott-king/flashcards
5dd6ae3d996797b11e28b2bd8a5b0d6e038e1a5d
[ "MIT" ]
null
null
null
flashcards/cli.py
elliott-king/flashcards
5dd6ae3d996797b11e28b2bd8a5b0d6e038e1a5d
[ "MIT" ]
null
null
null
""" Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -mflashcards` python will execute ``__main__.py`` as a...
40.553571
80
0.65742
65a8c04b64b959ed6c434b2c56b2ea70ca122b10
744
py
Python
C2C/simple_server.py
muhammedabdelkader/python_collection
7084588ab983224ccc969f63688d62fcc988263a
[ "MIT" ]
null
null
null
C2C/simple_server.py
muhammedabdelkader/python_collection
7084588ab983224ccc969f63688d62fcc988263a
[ "MIT" ]
null
null
null
C2C/simple_server.py
muhammedabdelkader/python_collection
7084588ab983224ccc969f63688d62fcc988263a
[ "MIT" ]
null
null
null
import aiohttp import asyncio import time start_time = time.time() asyncio.run(main()) print(f"--{(time.time()-start_time)}--")
27.555556
111
0.629032
65a9792b2934e3a0bc3ead9a9eef72f6382f49c5
3,454
py
Python
Important_data/Thesis figure scripts/six_sigmoids.py
haakonvt/LearningTensorFlow
6988a15af2ac916ae1a5e23b2c5bde9630cc0519
[ "MIT" ]
5
2018-09-06T12:52:12.000Z
2020-05-09T01:40:12.000Z
Important_data/Thesis figure scripts/six_sigmoids.py
haakonvt/LearningTensorFlow
6988a15af2ac916ae1a5e23b2c5bde9630cc0519
[ "MIT" ]
null
null
null
Important_data/Thesis figure scripts/six_sigmoids.py
haakonvt/LearningTensorFlow
6988a15af2ac916ae1a5e23b2c5bde9630cc0519
[ "MIT" ]
4
2018-02-06T08:42:06.000Z
2019-04-16T11:23:06.000Z
from matplotlib import rc rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']}) rc('text', usetex=True) rc('legend',**{'fontsize':11}) # Font size for legend from mpl_toolkits.axes_grid.axislines import SubplotZero import matplotlib as mpl mpl.rcParams['lines.linewidth'] = 2.5 import matplotlib.pyplot as plt...
40.635294
116
0.630573
65aa73e15457005cd520549df842b9dc33211c7c
3,820
py
Python
src/web/modules/search/controllers/search/control.py
unkyulee/elastic-cms
3ccf4476c3523d4fefc0d8d9dee0196815b81489
[ "MIT" ]
2
2017-04-30T07:29:23.000Z
2017-04-30T07:36:27.000Z
src/web/modules/search/controllers/search/control.py
unkyulee/elastic-cms
3ccf4476c3523d4fefc0d8d9dee0196815b81489
[ "MIT" ]
null
null
null
src/web/modules/search/controllers/search/control.py
unkyulee/elastic-cms
3ccf4476c3523d4fefc0d8d9dee0196815b81489
[ "MIT" ]
null
null
null
import json import urllib2 import traceback import cgi from flask import render_template, request import web.util.tools as tools import lib.http as http import lib.es as es from web import app from lib.read import readfile
33.217391
85
0.546073
65aa8588c528dddf9da0b75de2f8177f0b66e0ef
1,043
py
Python
Go6/policy_probabilistic_player.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
Go6/policy_probabilistic_player.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
Go6/policy_probabilistic_player.py
skyu0221/cmput496
ad1e59805ab49324ec1e387ddeaf3dd3202518bc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from board_util import GoBoardUtil from gtp_connection import GtpConnection if __name__=='__main__': createPolicyPlayer()
22.673913
80
0.633749
65ac271abc5546a6ef5541faf5bc32786bb4d4dc
1,531
py
Python
test_models.py
ChirilaLaura/covid-z
f1cc0818831519404486cd2fd2e78c36b789de24
[ "MIT" ]
2
2020-05-14T03:02:22.000Z
2020-06-16T10:05:44.000Z
test_models.py
ChirilaLaura/covid-z
f1cc0818831519404486cd2fd2e78c36b789de24
[ "MIT" ]
null
null
null
test_models.py
ChirilaLaura/covid-z
f1cc0818831519404486cd2fd2e78c36b789de24
[ "MIT" ]
null
null
null
from keras.preprocessing.image import img_to_array from keras.models import load_model import numpy as np import argparse import imutils import cv2 ap = argparse.ArgumentParser() ap.add_argument("-m1", "--model1", required=True, help="path to model1") ap.add_argument("-m2", "--model2", required=True, help="path to mo...
31.895833
88
0.674722
65ac8cde7af97a0e6637820254f0d7a893315eae
143
py
Python
src/settings.py
MichaelJWelsh/bot-evolution
6d8e3449fc5350f47e91a6aa7a3e8b719c0c2f16
[ "MIT" ]
151
2017-05-01T02:47:34.000Z
2022-01-21T17:08:11.000Z
src/settings.py
MichaelJWelsh/bot-evolution
6d8e3449fc5350f47e91a6aa7a3e8b719c0c2f16
[ "MIT" ]
null
null
null
src/settings.py
MichaelJWelsh/bot-evolution
6d8e3449fc5350f47e91a6aa7a3e8b719c0c2f16
[ "MIT" ]
26
2017-05-01T21:41:02.000Z
2021-12-21T11:40:20.000Z
""" This module contains the general settings used across modules. """ FPS = 60 WINDOW_WIDTH = 1100 WINDOW_HEIGHT = 600 TIME_MULTIPLIER = 1.0
15.888889
62
0.748252
65ad5e7a545499575a16b2d06ffd961696d9832d
7,974
py
Python
katana-nbi/katana/api/nfvo.py
afoteas/katana-slice_manager
f03a8520fc06f7bed18ff5c2a01a9b8ea7da84c8
[ "Apache-2.0" ]
null
null
null
katana-nbi/katana/api/nfvo.py
afoteas/katana-slice_manager
f03a8520fc06f7bed18ff5c2a01a9b8ea7da84c8
[ "Apache-2.0" ]
null
null
null
katana-nbi/katana/api/nfvo.py
afoteas/katana-slice_manager
f03a8520fc06f7bed18ff5c2a01a9b8ea7da84c8
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import logging from logging import handlers import pickle import time import uuid from bson.binary import Binary from bson.json_util import dumps from flask import request from flask_classful import FlaskView import pymongo from requests import ConnectTimeout, ConnectionError from katana.share...
39.088235
97
0.538375
65ad681676318e198f9ba24f925ddf67a7312897
7,400
py
Python
helpers.py
mochja/ISA-DNS
463713b97329b000721be2512c9581c4881d664c
[ "MIT" ]
null
null
null
helpers.py
mochja/ISA-DNS
463713b97329b000721be2512c9581c4881d664c
[ "MIT" ]
null
null
null
helpers.py
mochja/ISA-DNS
463713b97329b000721be2512c9581c4881d664c
[ "MIT" ]
null
null
null
import threading import traceback import socketserver import struct import time import sys import http.client import json import uuid import config import dns.rdatatype import dns.rdataclass args = config.args QTYPES = {1:'A', 15: 'MX', 6: 'SOA'} custom_mx = uuid.uuid4().hex # https://github.com/shuque/pydig GNUv2...
30.578512
148
0.553514
65ad8049b22c02c19b00ee9ceab0dd889c8339c3
3,278
py
Python
convert/templatetags/convert_tags.py
aino/aino-convert
f3bd773f02a9645c75bfbd773e747dd8dc6e08f4
[ "BSD-3-Clause" ]
1
2015-07-15T07:40:19.000Z
2015-07-15T07:40:19.000Z
convert/templatetags/convert_tags.py
aino/aino-convert
f3bd773f02a9645c75bfbd773e747dd8dc6e08f4
[ "BSD-3-Clause" ]
null
null
null
convert/templatetags/convert_tags.py
aino/aino-convert
f3bd773f02a9645c75bfbd773e747dd8dc6e08f4
[ "BSD-3-Clause" ]
null
null
null
from django.template import Library, Node, TemplateSyntaxError from django.utils.encoding import force_unicode from convert.base import MediaFile, EmptyMediaFile, convert_solo from convert.conf import settings register = Library()
31.519231
73
0.589079
65ad9a16451cd40a1e7a1f6a7b00166acc44cfb1
7,826
py
Python
tests/utils_test.py
lovetrading10/tda-api
0e38c85739248fbf3b0e3386eb2fb9bf9298f93d
[ "MIT" ]
7
2020-05-03T16:25:08.000Z
2021-11-03T22:08:27.000Z
tests/utils_test.py
lovetrading10/tda-api
0e38c85739248fbf3b0e3386eb2fb9bf9298f93d
[ "MIT" ]
null
null
null
tests/utils_test.py
lovetrading10/tda-api
0e38c85739248fbf3b0e3386eb2fb9bf9298f93d
[ "MIT" ]
11
2020-06-26T22:09:05.000Z
2022-02-13T13:30:52.000Z
from unittest.mock import MagicMock import datetime import json import unittest from tda.orders import EquityOrderBuilder from tda.utils import Utils from . import test_utils
37.806763
80
0.625607
65ae5ae925181ff1d726f472dfbdd87ce820d687
9,535
py
Python
aiida/orm/entities.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
1
2019-07-31T04:08:13.000Z
2019-07-31T04:08:13.000Z
aiida/orm/entities.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
aiida/orm/entities.py
PercivalN/aiida-core
b215ed5a7ce9342bb7f671b67e95c1f474cc5940
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- ########################################################################### # Copyright (c), The AiiDA team. All rights reserved. # # This file is part of the AiiDA code. # # ...
32.431973
116
0.627687
65ae685c4283988c38775f88a233b7c8ac475f6e
2,088
py
Python
src/fullyautomatednutcracker/cogs/antiselfdeprecation.py
dovedevic/fullyautomatednutcracker
c746601f93097b88febea64adb09be5ef569adaa
[ "MIT" ]
5
2020-08-12T00:30:03.000Z
2020-08-24T08:24:34.000Z
src/fullyautomatednutcracker/cogs/antiselfdeprecation.py
dovedevic/fullyautomatednutcracker
c746601f93097b88febea64adb09be5ef569adaa
[ "MIT" ]
3
2020-08-12T19:25:00.000Z
2020-08-28T00:23:18.000Z
src/fullyautomatednutcracker/cogs/antiselfdeprecation.py
dovedevic/fullyautomatednutcracker
c746601f93097b88febea64adb09be5ef569adaa
[ "MIT" ]
8
2020-08-12T00:37:03.000Z
2020-08-20T19:49:32.000Z
from discord.ext import commands import asyncio import time
43.5
198
0.632184
65aee5c9340fded7e6ab5b1f35346dad94ab5fed
10,809
py
Python
pyaff4/lexicon.py
timbolle-unil/pyaff4
845bec2dc7a274766e3c9a96adf10a812a925cd7
[ "Apache-2.0" ]
null
null
null
pyaff4/lexicon.py
timbolle-unil/pyaff4
845bec2dc7a274766e3c9a96adf10a812a925cd7
[ "Apache-2.0" ]
null
null
null
pyaff4/lexicon.py
timbolle-unil/pyaff4
845bec2dc7a274766e3c9a96adf10a812a925cd7
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Google 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 applicable law or agre...
38.603571
85
0.753261
65af59058300b104393557367f8057f6940196d0
431
py
Python
dusted/dustforce/linux.py
AlexMorson/dustforce-tas-editor
80546ca525ba215252c23a74807857e9c7c2566c
[ "MIT" ]
1
2021-03-20T07:43:33.000Z
2021-03-20T07:43:33.000Z
dusted/dustforce/linux.py
AlexMorson/dustforce-tas-editor
80546ca525ba215252c23a74807857e9c7c2566c
[ "MIT" ]
null
null
null
dusted/dustforce/linux.py
AlexMorson/dustforce-tas-editor
80546ca525ba215252c23a74807857e9c7c2566c
[ "MIT" ]
null
null
null
import queue import threading from subprocess import PIPE, Popen procs = [] stdout = queue.Queue()
22.684211
73
0.679814
65afb03352fe6b2c1a60ffb0e33ef381c9954df6
1,834
py
Python
joplin/pages/official_documents_page/factories.py
cityofaustin/joplin
01424e46993e9b1c8e57391d6b7d9448f31d596b
[ "MIT" ]
15
2018-09-27T07:36:30.000Z
2021-08-03T16:01:21.000Z
joplin/pages/official_documents_page/factories.py
cityofaustin/joplin
01424e46993e9b1c8e57391d6b7d9448f31d596b
[ "MIT" ]
183
2017-11-16T23:30:47.000Z
2020-12-18T21:43:36.000Z
joplin/pages/official_documents_page/factories.py
cityofaustin/joplin
01424e46993e9b1c8e57391d6b7d9448f31d596b
[ "MIT" ]
12
2017-12-12T22:48:05.000Z
2021-03-01T18:01:24.000Z
import factory from pages.official_documents_page.models import OfficialDocumentPage, OfficialDocumentCollectionOfficialDocumentPage from pages.base_page.factories import JanisBasePageFactory from pages.official_documents_collection.factories import OfficialDocumentCollectionFactory from wagtail.documents.models import...
35.960784
117
0.745911
65b0c43d10ec56796ba655b95a3c9d479381e676
6,927
py
Python
flask_qa/routes/main.py
gouravdhar/youtube_video_code
ade7b8dded7992149d34137f801ebe9c26e9bcf0
[ "Unlicense" ]
null
null
null
flask_qa/routes/main.py
gouravdhar/youtube_video_code
ade7b8dded7992149d34137f801ebe9c26e9bcf0
[ "Unlicense" ]
null
null
null
flask_qa/routes/main.py
gouravdhar/youtube_video_code
ade7b8dded7992149d34137f801ebe9c26e9bcf0
[ "Unlicense" ]
null
null
null
from flask import Blueprint, render_template, request, redirect, url_for from flask_login import current_user, login_required from flask_cors import CORS from flask_qa.extensions import db from flask_qa.models import Question, User, Stats, Notes import json main = Blueprint('main', __name__)
27.379447
147
0.549877
65b1a21d6fc172f7d80c2944e861d993aee45a5a
7,453
py
Python
src/compas_rhino/utilities/misc.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
235
2017-11-07T07:33:22.000Z
2022-03-25T16:20:00.000Z
src/compas_rhino/utilities/misc.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
770
2017-09-22T13:42:06.000Z
2022-03-31T21:26:45.000Z
src/compas_rhino/utilities/misc.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
99
2017-11-06T23:15:28.000Z
2022-03-25T16:05:36.000Z
from __future__ import print_function from __future__ import absolute_import from __future__ import division try: basestring except NameError: basestring = str import os import sys import ast from compas_rhino.forms import TextForm from compas_rhino.forms import ImageForm import System import rhinoscriptsy...
27.603704
96
0.56058
65b235fdfa7ea03f6e55907463fc98d053669de0
3,539
py
Python
lib/utils/visualization/fixup_resnet.py
yandex-research/learnable-init
480627217763912e83251833df2d678c8b6ea6fd
[ "Apache-2.0" ]
4
2021-07-14T19:18:47.000Z
2022-03-21T17:50:46.000Z
lib/utils/visualization/fixup_resnet.py
yandex-research/learnable-init
480627217763912e83251833df2d678c8b6ea6fd
[ "Apache-2.0" ]
null
null
null
lib/utils/visualization/fixup_resnet.py
yandex-research/learnable-init
480627217763912e83251833df2d678c8b6ea6fd
[ "Apache-2.0" ]
null
null
null
import torch import numpy as np import matplotlib.pyplot as plt from lib.utils import moving_average, check_numpy def draw_plots(base_train_loss, base_test_loss, base_test_error, maml_train_loss, maml_test_loss, maml_test_error): plt.figure(figsize=(20, 6)) plt.subplot(1,3,1) plt.plot(mov...
39.322222
98
0.607234
65b25da916e80ac5c60ab157203cd5360dfed5f5
3,170
py
Python
DataPreprocessing/load_diabetes.py
iosifidisvasileios/CumulativeCostBoosting
05a51390c7cadb23eb47b94406b2aa509d25716d
[ "MIT" ]
null
null
null
DataPreprocessing/load_diabetes.py
iosifidisvasileios/CumulativeCostBoosting
05a51390c7cadb23eb47b94406b2aa509d25716d
[ "MIT" ]
null
null
null
DataPreprocessing/load_diabetes.py
iosifidisvasileios/CumulativeCostBoosting
05a51390c7cadb23eb47b94406b2aa509d25716d
[ "MIT" ]
null
null
null
from __future__ import division # import urllib2 import os, sys import numpy as np import pandas as pd from collections import defaultdict from sklearn import feature_extraction from sklearn import preprocessing from random import seed, shuffle # sys.path.insert(0, '../../fair_classification/') # the code for fair cla...
44.647887
121
0.613565
65b262473f8b6de6d59edf029ac0e4e27f71979d
2,300
py
Python
python/scripts/copy_pin.py
ehabnaduvi/api-quickstart
956409098cbce1bf3674d739fe64ebafaaf63ca3
[ "Apache-2.0" ]
null
null
null
python/scripts/copy_pin.py
ehabnaduvi/api-quickstart
956409098cbce1bf3674d739fe64ebafaaf63ca3
[ "Apache-2.0" ]
null
null
null
python/scripts/copy_pin.py
ehabnaduvi/api-quickstart
956409098cbce1bf3674d739fe64ebafaaf63ca3
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # # Copying a pin is not representative of typical user behavior on Pinterest. # # This script is intended to demonstrate how to use the API to developers, # and to provide functionality that might be convenient for developers. # For example, it might be used as part of a program to generate an # ...
37.096774
86
0.729565
65b30f63399f7d1910889d551fa68b83b2e4d6e6
10,308
py
Python
BL_ColorRamp4_MF.py
SpectralVectors/TransMat
590b04b273005d95f02b567562c08042c2937af4
[ "MIT" ]
31
2020-10-16T03:15:06.000Z
2022-01-31T03:06:44.000Z
BL_ColorRamp4_MF.py
SpectralVectors/TransMat
590b04b273005d95f02b567562c08042c2937af4
[ "MIT" ]
1
2020-10-16T07:02:25.000Z
2020-10-16T13:05:39.000Z
BL_ColorRamp4_MF.py
SpectralVectors/TransMat
590b04b273005d95f02b567562c08042c2937af4
[ "MIT" ]
null
null
null
import unreal BL_ColorRamp4 = unreal.AssetToolsHelpers.get_asset_tools().create_asset('BL_ColorRamp4', '/Engine/Functions/BLUI/', unreal.MaterialFunction, unreal.MaterialFunctionFactoryNew()) BL_ColorRamp4.set_editor_property("expose_to_library", True) BL_ColorRamp4.set_editor_property("library_categories_text", (...
60.994083
178
0.796954
65b36386e6a8fce39db4d492a4e6ead8f8c27f5c
6,731
py
Python
tools/log2csv.py
Haixing-Hu/lambda-tensorflow-benchmark
080a6b7fee1c651228f227f52a2bed6ff90579cf
[ "BSD-3-Clause" ]
null
null
null
tools/log2csv.py
Haixing-Hu/lambda-tensorflow-benchmark
080a6b7fee1c651228f227f52a2bed6ff90579cf
[ "BSD-3-Clause" ]
null
null
null
tools/log2csv.py
Haixing-Hu/lambda-tensorflow-benchmark
080a6b7fee1c651228f227f52a2bed6ff90579cf
[ "BSD-3-Clause" ]
null
null
null
import os import re import glob import argparse import pandas as pd list_test = ['alexnet', 'inception3', 'inception4', 'resnet152', 'resnet50', 'vgg16'] # Naming convention # Key: log name # Value: ([num_gpus], [names]) # num_gpus: Since each log...
38.028249
167
0.606002
65b8b4c75d35105b5ff106a11aa54530eaf30029
2,687
py
Python
stellar_sdk/xdr/survey_response_body.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
null
null
null
stellar_sdk/xdr/survey_response_body.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
27
2022-01-12T10:55:38.000Z
2022-03-28T01:38:24.000Z
stellar_sdk/xdr/survey_response_body.py
Shaptic/py-stellar-base
f5fa47f4d96f215889d99249fb25c7be002f5cf3
[ "Apache-2.0" ]
2
2021-12-02T12:42:03.000Z
2021-12-07T20:53:10.000Z
# This is an automatically generated file. # DO NOT EDIT or your changes may be overwritten import base64 from xdrlib import Packer, Unpacker from ..type_checked import type_checked from .survey_message_command_type import SurveyMessageCommandType from .topology_response_body import TopologyResponseBody __all__ = ["S...
32.373494
80
0.668031
65b9bd2ad1163a0006a5a233a9d9d9cd5e6a3646
763
py
Python
poll/migrations/0002_auto_20210114_2215.py
slk007/SahiGalat.com
786688e07237f3554187b90e01149225efaa1713
[ "MIT" ]
null
null
null
poll/migrations/0002_auto_20210114_2215.py
slk007/SahiGalat.com
786688e07237f3554187b90e01149225efaa1713
[ "MIT" ]
null
null
null
poll/migrations/0002_auto_20210114_2215.py
slk007/SahiGalat.com
786688e07237f3554187b90e01149225efaa1713
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-14 22:15 from django.db import migrations, models
28.259259
114
0.571429
65bb496751451a7bd133a1ac2b24c5b70ac17431
5,375
py
Python
setup.py
JakaKokosar/pysqlite3-binary
808e9689c69b1ada784eda3d5a8ea7865c8318ad
[ "Zlib" ]
null
null
null
setup.py
JakaKokosar/pysqlite3-binary
808e9689c69b1ada784eda3d5a8ea7865c8318ad
[ "Zlib" ]
null
null
null
setup.py
JakaKokosar/pysqlite3-binary
808e9689c69b1ada784eda3d5a8ea7865c8318ad
[ "Zlib" ]
null
null
null
# -*- coding: ISO-8859-1 -*- # setup.py: the distutils script # import os import setuptools import sys from distutils import log from distutils.command.build_ext import build_ext from setuptools import Extension # If you need to change anything, it should be enough to change setup.cfg. PACKAGE_NAME = 'pysqlite3' VER...
32.97546
77
0.618233
65bc3f6e1793bcf43d99a8c4a348a352385aa4a0
5,267
py
Python
gridder/gridder.py
PDFGridder/PDFGridder
94bc6e76eadc3799905c905a70228fcd6b30c4fb
[ "MIT" ]
2
2016-09-07T18:32:44.000Z
2016-11-24T19:45:06.000Z
gridder/gridder.py
PDFGridder/PDFGridder
94bc6e76eadc3799905c905a70228fcd6b30c4fb
[ "MIT" ]
null
null
null
gridder/gridder.py
PDFGridder/PDFGridder
94bc6e76eadc3799905c905a70228fcd6b30c4fb
[ "MIT" ]
null
null
null
#!/usr/bin/env python import cairo from .utils import hex_to_rgba, parse_unit def parse_size(size): """take a size as str (es: 14px), return its value in px/pt as int """ if hasattr(size, 'isdigit'): if size.isdigit(): return int(size) return parse_unit(size[:-2], size[-2:]) ...
36.324138
180
0.58838
65bc5bc0726d3703c47b9225540efbf4baf75f28
462
py
Python
wanikani_api/constants.py
peraperacafe/wanikani_api
7340fde25ef4b102545e4fa2c485339d79136e17
[ "BSD-3-Clause" ]
12
2019-04-30T13:11:52.000Z
2021-05-14T02:52:05.000Z
wanikani_api/constants.py
peraperacafe/wanikani_api
7340fde25ef4b102545e4fa2c485339d79136e17
[ "BSD-3-Clause" ]
323
2018-07-13T00:39:22.000Z
2022-03-31T19:29:08.000Z
wanikani_api/constants.py
peraperacafe/wanikani_api
7340fde25ef4b102545e4fa2c485339d79136e17
[ "BSD-3-Clause" ]
9
2020-02-14T14:56:00.000Z
2022-01-09T19:14:07.000Z
ROOT_WK_API_URL = "https://api.wanikani.com/v2/" RESOURCES_WITHOUT_IDS = ["user", "collection", "report"] SUBJECT_ENDPOINT = "subjects" SINGLE_SUBJECT_ENPOINT = r"subjects/\d+" ASSIGNMENT_ENDPOINT = "assignments" REVIEW_STATS_ENDPOINT = "review_statistics" STUDY_MATERIALS_ENDPOINT = "study_materials" REVIEWS_ENDPOINT ...
33
56
0.798701
65bd680ebf2391800df849001a9518d85eba50ba
1,943
py
Python
utils/dataloader.py
Jiaqi0602/adversarial-attack-from-leakage
90db721bed10094ac7d458b232ad5b1573884338
[ "BSD-3-Clause" ]
9
2021-06-17T00:46:19.000Z
2022-03-05T13:57:38.000Z
utils/dataloader.py
Jiaqi0602/adversarial-attack-from-leakage
90db721bed10094ac7d458b232ad5b1573884338
[ "BSD-3-Clause" ]
null
null
null
utils/dataloader.py
Jiaqi0602/adversarial-attack-from-leakage
90db721bed10094ac7d458b232ad5b1573884338
[ "BSD-3-Clause" ]
null
null
null
from inversefed import consts import torch from torchvision import datasets, transforms
39.653061
104
0.609882
65be1830984a29d7acd4c26b6de2aa0995caf8fb
10,651
py
Python
hintedhandoff_test.py
Ankou76ers/cassandra-dtest
54f5a983738a1580fbbe43bdb7201ff9b2664401
[ "Apache-2.0" ]
44
2017-07-13T14:20:42.000Z
2022-03-27T23:55:27.000Z
hintedhandoff_test.py
Ankou76ers/cassandra-dtest
54f5a983738a1580fbbe43bdb7201ff9b2664401
[ "Apache-2.0" ]
64
2017-07-26T16:06:01.000Z
2022-03-17T22:57:03.000Z
hintedhandoff_test.py
Ankou76ers/cassandra-dtest
54f5a983738a1580fbbe43bdb7201ff9b2664401
[ "Apache-2.0" ]
105
2017-07-13T14:28:14.000Z
2022-03-23T04:22:46.000Z
import os import time import pytest import logging from cassandra import ConsistencyLevel from dtest import Tester, create_ks from tools.data import create_c1c2_table, insert_c1c2, query_c1c2 from tools.assertions import assert_stderr_clean since = pytest.mark.since ported_to_in_jvm = pytest.mark.ported_to_in_jvm lo...
40.192453
118
0.648202
65be1ffede01306450a5f34b42845bf53968f1d8
248
py
Python
pre_definition/solve_caller.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
pre_definition/solve_caller.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
pre_definition/solve_caller.py
sr9000/stepik_code_task_baking
60a5197f659db1734132eeb9d82624f1b7aaeb3f
[ "MIT" ]
null
null
null
from collections.abc import Iterable as ABCIterable
22.545455
51
0.665323
65bea9d189e5ba73f3c48d6d3eae40bf9da3717b
817
py
Python
wikipedia_test.py
pedrogengo/TopicBlob
e6a7736d39c7a174d0289b21c152cd8bb02f2669
[ "Apache-2.0" ]
null
null
null
wikipedia_test.py
pedrogengo/TopicBlob
e6a7736d39c7a174d0289b21c152cd8bb02f2669
[ "Apache-2.0" ]
null
null
null
wikipedia_test.py
pedrogengo/TopicBlob
e6a7736d39c7a174d0289b21c152cd8bb02f2669
[ "Apache-2.0" ]
null
null
null
import wikipedia from topicblob import TopicBlob #get random wikipeida summaries wiki_pages = ["Facebook","New York City","Barack Obama","Wikipedia","Topic Modeling","Python (programming language)","Snapchat"] wiki_pages = ["Facebook","New York City","Barack Obama"] texts = [] for page in wiki_pages: text = ...
18.568182
128
0.71481
65c19e6d0f4a645a3e85871f601e50a70618990c
215
py
Python
component/model/dmp_model.py
12rambau/damage_proxy_maps
98a004bf4420c6ce1b7ecd77e426e8fe7d512f52
[ "MIT" ]
1
2021-09-01T18:27:19.000Z
2021-09-01T18:27:19.000Z
component/model/dmp_model.py
12rambau/damage_proxy_maps
98a004bf4420c6ce1b7ecd77e426e8fe7d512f52
[ "MIT" ]
3
2021-06-01T10:15:36.000Z
2021-10-07T10:00:16.000Z
component/model/dmp_model.py
12rambau/damage_proxy_maps
98a004bf4420c6ce1b7ecd77e426e8fe7d512f52
[ "MIT" ]
2
2021-06-01T10:16:03.000Z
2021-06-10T12:43:47.000Z
from sepal_ui import model from traitlets import Any
19.545455
39
0.693023
65c1e68e0dc7466b357152cbb876f5ad24ac99ef
9,154
py
Python
SaIL/envs/state_lattice_planner_env.py
yonetaniryo/SaIL
c7404024c7787184c3638e9730bd185373ed0bf6
[ "BSD-3-Clause" ]
12
2018-05-18T19:29:09.000Z
2020-05-15T13:47:12.000Z
SaIL/envs/state_lattice_planner_env.py
yonetaniryo/SaIL
c7404024c7787184c3638e9730bd185373ed0bf6
[ "BSD-3-Clause" ]
1
2018-05-18T19:36:42.000Z
2018-07-20T03:03:13.000Z
SaIL/envs/state_lattice_planner_env.py
yonetaniryo/SaIL
c7404024c7787184c3638e9730bd185373ed0bf6
[ "BSD-3-Clause" ]
10
2018-01-11T21:23:40.000Z
2021-11-10T04:38:07.000Z
#!/usr/bin/env python """An environment that takes as input databases of environments and runs episodes, where each episode is a search based planner. It then returns the average number of expansions, and features (if training) Author: Mohak Bhardwaj """ from collections import defaultdict import numpy as np import os...
45.093596
192
0.693358
65c266ffeb9dad82408ef950252b4d7368839fc3
966
py
Python
opi_dragon_api/auth/__init__.py
CEAC33/opi-dragon-api
8f050a0466dab4aaeec13151b9f49990bbd73640
[ "MIT" ]
null
null
null
opi_dragon_api/auth/__init__.py
CEAC33/opi-dragon-api
8f050a0466dab4aaeec13151b9f49990bbd73640
[ "MIT" ]
null
null
null
opi_dragon_api/auth/__init__.py
CEAC33/opi-dragon-api
8f050a0466dab4aaeec13151b9f49990bbd73640
[ "MIT" ]
null
null
null
from sanic_jwt import exceptions users = [User(1, "opi-user", "~Zujh*B2D`9T!<j")] username_table = {u.username: u for u in users} userid_table = {u.user_id: u for u in users}
29.272727
79
0.677019
65c2afb8b2d130681f854965474e19205bdcd378
5,087
py
Python
tests/test_observable/test_dowhile.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2018-11-16T09:07:13.000Z
2018-11-16T09:07:13.000Z
tests/test_observable/test_dowhile.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tests/test_observable/test_dowhile.py
yutiansut/RxPY
c3bbba77f9ebd7706c949141725e220096deabd4
[ "ECL-2.0", "Apache-2.0" ]
1
2020-05-08T08:23:08.000Z
2020-05-08T08:23:08.000Z
import unittest from rx.testing import TestScheduler, ReactiveTest
31.79375
68
0.525654
65c311baef365241a86f5ea9eee583a30d354076
1,459
py
Python
ZAP_Scripts/passive/14-4-2-api-content-disposition-header.py
YaleUniversity/ZAP_ASVS_Checks
f69b57f5fe0bc196ffc57fb1bb0762ffb367c1cb
[ "MIT" ]
3
2022-01-22T11:21:23.000Z
2022-03-09T06:45:55.000Z
ZAP_Scripts/passive/14-4-2-api-content-disposition-header.py
YaleUniversity/ZAP_ASVS_Checks
f69b57f5fe0bc196ffc57fb1bb0762ffb367c1cb
[ "MIT" ]
null
null
null
ZAP_Scripts/passive/14-4-2-api-content-disposition-header.py
YaleUniversity/ZAP_ASVS_Checks
f69b57f5fe0bc196ffc57fb1bb0762ffb367c1cb
[ "MIT" ]
null
null
null
""" Script testing 14.4.2 control from OWASP ASVS 4.0: 'Verify that all API responses contain a Content-Disposition: attachment; filename="api.json" header (or other appropriate filename for the content type).' The script will raise an alert if 'Content-Disposition' header is present but not follow the format - Cont...
41.685714
175
0.749143
65c34c95b750096053aaef54a2b648be5c44772c
230
py
Python
server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
1
2021-07-23T03:43:19.000Z
2021-07-23T03:43:19.000Z
server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
null
null
null
server.py
Peopple-Shopping-App/mockserver
c38c3f325e44f4eaba39cdbe24544e3181307218
[ "MIT" ]
null
null
null
import uvicorn if __name__ == '__main__': <<<<<<< HEAD uvicorn.run('app.main:app', host='0.0.0.0', port=80) ======= uvicorn.run('app.main:app', host='0.0.0.0', port=2323) >>>>>>> c583e3d93c9b7f8e76ce1d676a24740b62ef3552
23
58
0.630435
65c37b82e34797425fdb4ac383cf6c771dd605d3
399
py
Python
9020/main.py
yeonghoey/baekjoon
a3f7c0aa901ad0e2ca6a863f1867fc574feb8c8e
[ "MIT" ]
1
2018-09-20T05:15:30.000Z
2018-09-20T05:15:30.000Z
9020/main.py
yeonghoey/baekjoon
a3f7c0aa901ad0e2ca6a863f1867fc574feb8c8e
[ "MIT" ]
null
null
null
9020/main.py
yeonghoey/baekjoon
a3f7c0aa901ad0e2ca6a863f1867fc574feb8c8e
[ "MIT" ]
null
null
null
MAX_N = 10000 + 1 isprime = [True] * (MAX_N) isprime[0] = False isprime[1] = False for i in range(2, MAX_N): if not isprime[i]: continue for j in range(i+i, MAX_N, i): isprime[j] = False T = int(input()) for _ in range(T): n = int(input()) for i in range(n//2, 1, -1): if isprim...
21
39
0.513784
65c451b4c4af62ac430c54bacf4793ebfef0c2ef
48,201
py
Python
pysnmp-with-texts/DOCS-LOADBALANCING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
8
2019-05-09T17:04:00.000Z
2021-06-09T06:50:51.000Z
pysnmp-with-texts/DOCS-LOADBALANCING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
4
2019-05-31T16:42:59.000Z
2020-01-31T21:57:17.000Z
pysnmp-with-texts/DOCS-LOADBALANCING-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module DOCS-LOADBALANCING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DOCS-LOADBALANCING-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:53:17 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (d...
187.552529
4,381
0.801954
65c5048befc6241d54580f74f3551d1f18adabab
671
py
Python
src/interview-cake/permutation-palindrome/test_permutation_palindrome.py
nwthomas/code-challenges
49c2532ff597495474e67b13f2ed9b9ad93d40b5
[ "MIT" ]
1
2020-12-11T05:54:59.000Z
2020-12-11T05:54:59.000Z
src/interview-cake/permutation-palindrome/test_permutation_palindrome.py
nwthomas/code-challenges
49c2532ff597495474e67b13f2ed9b9ad93d40b5
[ "MIT" ]
1
2021-04-10T06:53:30.000Z
2021-04-10T06:53:30.000Z
src/interview-cake/permutation-palindrome/test_permutation_palindrome.py
nwthomas/code-challenges
49c2532ff597495474e67b13f2ed9b9ad93d40b5
[ "MIT" ]
7
2019-11-24T12:10:35.000Z
2020-12-14T22:36:31.000Z
from permutation_palindrome import is_permutation_palindrome import unittest if __name__ == "__main__": unittest.main()
35.315789
96
0.754098
65c5b96f2aa86a20d59448029f070a81f3667eea
3,199
py
Python
sagemaker_tidymodels/tidymodels.py
tmastny/sagemaker-tidymodels
fdb6a71d2ca54b7ffce7c5bab12067413ebb4026
[ "MIT" ]
3
2020-11-23T18:16:05.000Z
2021-03-23T16:48:24.000Z
sagemaker_tidymodels/tidymodels.py
tmastny/sagemaker-tidymodels
fdb6a71d2ca54b7ffce7c5bab12067413ebb4026
[ "MIT" ]
4
2020-07-25T21:49:55.000Z
2020-08-03T15:37:49.000Z
sagemaker_tidymodels/tidymodels.py
tmastny/sagemaker-tidymodels
fdb6a71d2ca54b7ffce7c5bab12067413ebb4026
[ "MIT" ]
null
null
null
from sagemaker.estimator import Framework from sagemaker.model import FrameworkModel from sagemaker.predictor import RealTimePredictor import subprocess
30.759615
147
0.660832
65c60fb41ff8d93478e349410ca2f8f7c41a7cea
835
py
Python
articles/pdf2bib.py
kenbeese/articles
389ed551fb5ed0c6a5c64726e527acd6154e83f5
[ "BSD-3-Clause" ]
4
2015-02-07T10:04:50.000Z
2022-01-17T18:33:26.000Z
articles/pdf2bib.py
termoshtt/articles
389ed551fb5ed0c6a5c64726e527acd6154e83f5
[ "BSD-3-Clause" ]
null
null
null
articles/pdf2bib.py
termoshtt/articles
389ed551fb5ed0c6a5c64726e527acd6154e83f5
[ "BSD-3-Clause" ]
null
null
null
# coding=utf-8
27.833333
86
0.589222
65c64d0d6e346b2c86db0238e477f1aee46d6160
2,313
py
Python
tensorflow/python/data/experimental/kernel_tests/serialization/textline_dataset_serialization_test.py
DanMitroshin/tensorflow
74aa353842f1788bdb7506ecceaf6ba99140e165
[ "Apache-2.0" ]
4
2021-06-02T03:21:44.000Z
2021-11-08T09:47:24.000Z
tensorflow/python/data/experimental/kernel_tests/serialization/textline_dataset_serialization_test.py
DanMitroshin/tensorflow
74aa353842f1788bdb7506ecceaf6ba99140e165
[ "Apache-2.0" ]
7
2021-11-10T20:21:23.000Z
2022-03-22T19:18:39.000Z
tensorflow/python/data/experimental/kernel_tests/serialization/textline_dataset_serialization_test.py
DanMitroshin/tensorflow
74aa353842f1788bdb7506ecceaf6ba99140e165
[ "Apache-2.0" ]
3
2021-05-09T13:41:29.000Z
2021-06-24T06:12:05.000Z
# Copyright 2017 The TensorFlow Authors. 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 applica...
39.20339
89
0.750108
65c8b9280ebaf25f0fb4b1658671be5a8f2ed641
228
py
Python
apps/news/forms.py
LishenZz/my_project
c2ac8199efb467e303d343ea34ed1969b64280d7
[ "Apache-2.0" ]
null
null
null
apps/news/forms.py
LishenZz/my_project
c2ac8199efb467e303d343ea34ed1969b64280d7
[ "Apache-2.0" ]
null
null
null
apps/news/forms.py
LishenZz/my_project
c2ac8199efb467e303d343ea34ed1969b64280d7
[ "Apache-2.0" ]
null
null
null
#Author:Li Shen from django import forms from apps.forms import FormMixin
22.8
46
0.79386
65c9968621cc82c96799c6059ed2551c70dfc1c5
6,446
py
Python
data_preprocessing.py
hwRG/FastSpeech2-Pytorch-old-man_city
c32ee3a09bf2a53fcd17a2d0b74e8d1c93586573
[ "MIT" ]
null
null
null
data_preprocessing.py
hwRG/FastSpeech2-Pytorch-old-man_city
c32ee3a09bf2a53fcd17a2d0b74e8d1c93586573
[ "MIT" ]
null
null
null
data_preprocessing.py
hwRG/FastSpeech2-Pytorch-old-man_city
c32ee3a09bf2a53fcd17a2d0b74e8d1c93586573
[ "MIT" ]
null
null
null
### Data Preprocessing ## 1. Json to Transcript ## 2. Aligner ## 3. Text Replace from jamo import h2j import json import os, re, tqdm import unicodedata from tqdm import tqdm import hparams as hp name = hp.dataset first_dir = os.getcwd() transcript = name + '_transcript.txt' dict_name = name + '_k...
31.910891
135
0.51691
65cb00b6e400d3acf13ccac0a2014cd803772f2a
1,435
py
Python
cachet-tools/purge-cachet.py
thearifismail/black-box-tester
23114fa73394a141bc091d6903e3ef4202f80bbf
[ "MIT" ]
null
null
null
cachet-tools/purge-cachet.py
thearifismail/black-box-tester
23114fa73394a141bc091d6903e3ef4202f80bbf
[ "MIT" ]
3
2020-01-02T13:04:07.000Z
2020-02-05T14:18:50.000Z
cachet-tools/purge-cachet.py
thearifismail/black-box-tester
23114fa73394a141bc091d6903e3ef4202f80bbf
[ "MIT" ]
5
2019-11-07T20:55:05.000Z
2020-07-15T13:59:07.000Z
#!/usr/bin/env python3 import requests import os import json CACHET_HOSTNAME = os.environ.get("CACHET_HOSTNAME") URL = f"https://{CACHET_HOSTNAME}/api/v1/components" HEADERS = { 'X-Cachet-Token': os.environ.get("CACHET_TOKEN") } with requests.Session() as session: session.headers.update(HEADERS) respon...
33.372093
82
0.622997
65cb24c821d26b2c77253d1d9836328c541460bf
489
py
Python
astrophysics_toolset/utilities/tests/test_funcs.py
cphyc/astrophysics_toolset
36be3f459a1bbca73af6f39f0957bfac0cb122eb
[ "MIT" ]
3
2020-07-19T15:46:48.000Z
2021-08-02T21:58:49.000Z
astrophysics_toolset/utilities/tests/test_funcs.py
cphyc/astrophysics_toolset
36be3f459a1bbca73af6f39f0957bfac0cb122eb
[ "MIT" ]
30
2020-05-12T11:07:47.000Z
2022-02-27T12:54:08.000Z
astrophysics_toolset/utilities/tests/test_funcs.py
cphyc/astrophysics_toolset
36be3f459a1bbca73af6f39f0957bfac0cb122eb
[ "MIT" ]
null
null
null
import numpy as np from mpmath import besselj, mpf, pi, sqrt from ..funcs import j1_over_x
21.26087
79
0.615542
65cb50fe55b88d486a160d6a37760bb1772d7906
2,176
py
Python
tools/isolate-run.py
France-ioi/taskgrader
72b043195af752d68cfee1d28fb52ae6012bc9a2
[ "MIT" ]
12
2015-02-19T20:09:04.000Z
2021-12-25T13:52:17.000Z
tools/isolate-run.py
France-ioi/taskgrader
72b043195af752d68cfee1d28fb52ae6012bc9a2
[ "MIT" ]
102
2015-08-03T14:07:46.000Z
2022-02-18T19:56:55.000Z
tools/isolate-run.py
France-ioi/taskgrader
72b043195af752d68cfee1d28fb52ae6012bc9a2
[ "MIT" ]
3
2016-05-12T15:03:16.000Z
2019-07-31T14:38:24.000Z
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # Copyright (c) 2016 France-IOI, MIT license # # http://opensource.org/licenses/MIT # This tool launches an isolated execution. It is intended as a wrapper around # the execution of any command. import argparse, os, sys DEFAULT_EXECPARAMS = { 'timeLimitMs': 60000...
35.672131
168
0.696691
65cc242de89c19efa4090dc93f9caa33777e25e0
837
py
Python
monitor/monitorlibs/sendemail.py
vaedit/-
4e68910737ac794390df05ac34a6cf46339b0002
[ "Apache-2.0" ]
1
2021-04-09T05:47:42.000Z
2021-04-09T05:47:42.000Z
monitor/monitorlibs/sendemail.py
vaedit/python-monitor-script
4e68910737ac794390df05ac34a6cf46339b0002
[ "Apache-2.0" ]
null
null
null
monitor/monitorlibs/sendemail.py
vaedit/python-monitor-script
4e68910737ac794390df05ac34a6cf46339b0002
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- import smtplib from email.mime.text import MIMEText from email.header import Header #
26.15625
54
0.577061
65ccdd74df24a36712a75efa27299093b23c6844
583
py
Python
submissions/abc146/f.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
1
2021-05-10T01:16:28.000Z
2021-05-10T01:16:28.000Z
submissions/abc146/f.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
3
2021-05-11T06:14:15.000Z
2021-06-19T08:18:36.000Z
submissions/abc146/f.py
m-star18/atcoder
08e475810516602fa088f87daf1eba590b4e07cc
[ "Unlicense" ]
null
null
null
import sys read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines sys.setrecursionlimit(10 ** 7) from collections import deque n, m = map(int, readline().split()) s = readline().rstrip().decode()[::-1] index = 0 ans = deque([]) for i in range(n): for j in range(m,...
22.423077
38
0.538593
65cd5a403032e83361e632b7cbcf870eef107bce
1,790
py
Python
src/tests/__init__.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
8
2019-04-26T04:09:40.000Z
2022-01-04T05:24:12.000Z
src/tests/__init__.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
null
null
null
src/tests/__init__.py
laichimirum/docker-appium-emulator
3549c5f1fc09bbc650dd30351ad4f509a72a90fa
[ "Apache-2.0" ]
2
2019-12-16T15:34:57.000Z
2020-10-22T07:03:15.000Z
"""Unit test to test app.""" import os from unittest import TestCase import mock from src import app
32.545455
70
0.653073
65cdd034fed36877b4031f60332f1c40cdb5f6a5
2,224
py
Python
tools/python-mock-server/python-mock-server.py
msmagnanijr/jboss-kie-modules
1ab85aa12e70db810a4d607fb6aaa85a19bb8607
[ "Apache-2.0" ]
8
2018-07-20T02:32:39.000Z
2022-03-27T10:52:55.000Z
tools/python-mock-server/python-mock-server.py
msmagnanijr/jboss-kie-modules
1ab85aa12e70db810a4d607fb6aaa85a19bb8607
[ "Apache-2.0" ]
167
2017-12-19T14:33:35.000Z
2022-03-22T11:47:20.000Z
tools/python-mock-server/python-mock-server.py
msmagnanijr/jboss-kie-modules
1ab85aa12e70db810a4d607fb6aaa85a19bb8607
[ "Apache-2.0" ]
52
2017-12-18T13:55:24.000Z
2022-02-09T14:07:14.000Z
#!/usr/bin/python3 import os import sys from http.server import HTTPServer, BaseHTTPRequestHandler httpd = HTTPServer(("localhost", 8080), MyHandler) httpd.serve_forever()
37.694915
179
0.642536
65cff554030214e04d5a8a2df9a42dced600b89e
11,487
py
Python
test/nn/test_nonlinearities_fliprotations.py
steven-lang/e2cnn
48f49760766ec958b52d0dd7b02483886dfa2096
[ "BSD-3-Clause" ]
356
2019-11-22T10:37:22.000Z
2022-03-25T14:42:45.000Z
test/nn/test_nonlinearities_fliprotations.py
steven-lang/e2cnn
48f49760766ec958b52d0dd7b02483886dfa2096
[ "BSD-3-Clause" ]
52
2020-01-20T16:51:36.000Z
2022-03-31T21:40:19.000Z
test/nn/test_nonlinearities_fliprotations.py
steven-lang/e2cnn
48f49760766ec958b52d0dd7b02483886dfa2096
[ "BSD-3-Clause" ]
48
2019-12-11T09:29:30.000Z
2022-03-18T17:51:55.000Z
import unittest from unittest import TestCase from e2cnn.nn import * from e2cnn.gspaces import * import random if __name__ == '__main__': unittest.main()
30.149606
107
0.572038
65d01a4d1ad87624330d3bcc5a359ecdd7b3f0fa
5,880
py
Python
TestModule/AnonymousPlayerTest.py
INYEONGKIM/Quattro
0fd70b08716f71404f520941791cd314d90de83a
[ "MIT" ]
null
null
null
TestModule/AnonymousPlayerTest.py
INYEONGKIM/Quattro
0fd70b08716f71404f520941791cd314d90de83a
[ "MIT" ]
null
null
null
TestModule/AnonymousPlayerTest.py
INYEONGKIM/Quattro
0fd70b08716f71404f520941791cd314d90de83a
[ "MIT" ]
null
null
null
import unittest from QuattroComponents.Player import Anonymous_player from QuattroComponents.Card import Card from TestModule.GetMethodName import get_method_name_decorator from collections import deque
43.880597
126
0.633844
65d0a80d19258c77b9d91fc06cfaa6455396ecc8
10,012
py
Python
octopus_deploy_swagger_client/models/phase_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/models/phase_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
octopus_deploy_swagger_client/models/phase_resource.py
cvent/octopus-deploy-api-client
0e03e842e1beb29b132776aee077df570b88366a
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Octopus Server API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 2019.6.7+Branch.tags-2019.6.7.Sha.aa18dc6809953218c66f57eff7d26481d9b23d6a Generated by: https://github.com/swagger-api...
33.373333
257
0.663504
65d15f45a4747bc3b8090b4f6795c908d2c9cd6a
660
py
Python
src/cryptoadvance/specter/util/common.py
jonathancross/specter-desktop
0178aa3879134415d63d62098b7f4f1b17db1d13
[ "MIT" ]
null
null
null
src/cryptoadvance/specter/util/common.py
jonathancross/specter-desktop
0178aa3879134415d63d62098b7f4f1b17db1d13
[ "MIT" ]
null
null
null
src/cryptoadvance/specter/util/common.py
jonathancross/specter-desktop
0178aa3879134415d63d62098b7f4f1b17db1d13
[ "MIT" ]
null
null
null
import re def str2bool(my_str): """returns a reasonable boolean from a string so that "False" will result in False""" if my_str is None: return False elif isinstance(my_str, str) and my_str.lower() == "false": return False elif isinstance(my_str, str) and my_str.lower() == "off": ...
27.5
89
0.645455
65d1935d60c24b3adbd4cfdad6ba81b04f4d1399
9,501
py
Python
pyspi/SPILike.py
grburgess/pyspi
084884c3fd06a09ef3a850cd19e7b751d7929e59
[ "BSD-3-Clause" ]
null
null
null
pyspi/SPILike.py
grburgess/pyspi
084884c3fd06a09ef3a850cd19e7b751d7929e59
[ "BSD-3-Clause" ]
null
null
null
pyspi/SPILike.py
grburgess/pyspi
084884c3fd06a09ef3a850cd19e7b751d7929e59
[ "BSD-3-Clause" ]
3
2018-06-05T12:57:29.000Z
2019-01-09T17:12:31.000Z
import collections from typing import Optional import numpy as np from astromodels import Parameter, Model from astromodels.functions.priors import Cosine_Prior, Uniform_prior from threeML import PluginPrototype from threeML.io.file_utils import sanitize_filename from threeML.plugins.DispersionSpectrumLike import Dis...
30.549839
83
0.592674
65d2ce3a02d1d452763725cfe14c593fd3bb7cbb
1,881
py
Python
dianna/visualization/image.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
dianna/visualization/image.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
dianna/visualization/image.py
cffbots/dianna
21e272dce2862747a5109341b622798f667d9248
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt def plot_image(heatmap, original_data=None, heatmap_cmap=None, data_cmap=None, show_plot=True, output_filename=None): # pylint: disable=too-many-arguments """ Plots a heatmap image. Optionally, the heatmap (typically a saliency map of an explainer) can be plotted on ...
34.833333
155
0.642212
65d4480d133aa88d0ea4335e0f5e5f6c3cb17894
4,680
py
Python
models/lenet.py
davidstutz/random-bit-error-robustness
59d8533c8db87ba1b220a64032cf929e5d67fbfa
[ "Unlicense" ]
null
null
null
models/lenet.py
davidstutz/random-bit-error-robustness
59d8533c8db87ba1b220a64032cf929e5d67fbfa
[ "Unlicense" ]
null
null
null
models/lenet.py
davidstutz/random-bit-error-robustness
59d8533c8db87ba1b220a64032cf929e5d67fbfa
[ "Unlicense" ]
null
null
null
import torch import common.torch from .classifier import Classifier from .utils import get_normalization2d, get_activation
37.142857
146
0.59594
65d4761a181f8a12d33c2a0e4fbbb20be034782f
309
py
Python
project/server/main/modules/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
1
2019-01-15T10:33:04.000Z
2019-01-15T10:33:04.000Z
project/server/main/modules/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
null
null
null
project/server/main/modules/__init__.py
ardikabs/dnsmanager
4d2f302ea9f54fd4d5416328dc46a1c47b573e5b
[ "MIT" ]
null
null
null
""" All Available Module on Server Belong to Here """ AVAILABLE_MODULES = ( "api", )
23.769231
53
0.614887
65d585b3c927a0a65da4783e776cd19589017f27
2,154
py
Python
slixmpp/plugins/xep_0380/eme.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0380/eme.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
slixmpp/plugins/xep_0380/eme.py
cnngimenez/slixmpp
bb61f0f39dfba205282dab50c0f3a47b26145c74
[ "BSD-3-Clause" ]
null
null
null
""" Slixmpp: The Slick XMPP Library Copyright (C) 2016 Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> This file is part of Slixmpp. See the file LICENSE for copying permission. """ import logging import slixmpp from slixmpp.stanza import Message from slixmpp.xmlstream.handler import Callback from slixm...
29.916667
90
0.659703
65d5f60d4b7acc40612bcf45d7c9efe894269057
1,050
py
Python
JSS Users Cleanup/setup.py
killahquam/JAMF
77b003a72375b9b01bdb961cb466b7519c859116
[ "MIT" ]
34
2015-06-11T16:37:54.000Z
2021-06-02T20:42:55.000Z
JSS Users Cleanup/setup.py
killahquam/JAMF
77b003a72375b9b01bdb961cb466b7519c859116
[ "MIT" ]
1
2016-01-03T04:05:30.000Z
2016-09-26T20:25:51.000Z
JSS Users Cleanup/setup.py
killahquam/JAMF
77b003a72375b9b01bdb961cb466b7519c859116
[ "MIT" ]
6
2015-12-29T20:39:56.000Z
2020-06-30T19:33:23.000Z
#!/usr/bin/python #Quam Sodji 2015 #Setup script to install the needed python modules #Installs kn/Slack and python-jss modules #We assume you have Git installed....... import subprocess import os import sys import shutil clone_jss = subprocess.check_output(['git','clone','git://github.com/sheagcraig/python-jss.git'])...
33.870968
97
0.75619
65da9cfd0758b74606005cccaa574f86bf734619
969
py
Python
sharpy/linear/utils/sselements.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
80
2018-08-30T13:01:52.000Z
2022-03-24T15:02:48.000Z
sharpy/linear/utils/sselements.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
88
2018-05-17T16:18:58.000Z
2022-03-11T21:05:48.000Z
sharpy/linear/utils/sselements.py
ACea15/sharpy
c89ecb74be3cb9e37b23ac8a282c73b9b55dd792
[ "BSD-3-Clause" ]
44
2018-01-02T14:27:28.000Z
2022-03-12T13:49:36.000Z
""" Linear State Space Element Class """
28.5
119
0.643963
65db9046fcabc0fdacbff5217e489cc008a5a30b
4,819
py
Python
pt_mesh_renderer/RasterizeTriangles.py
FuxiCV/pt_mesh_renderer
15153fbbe73d7c4c59d8f0b2bce7320173b3d396
[ "Apache-2.0" ]
61
2020-08-06T06:39:15.000Z
2022-03-25T03:48:02.000Z
pt_mesh_renderer/RasterizeTriangles.py
shty32/pt_mesh_renderer
15153fbbe73d7c4c59d8f0b2bce7320173b3d396
[ "Apache-2.0" ]
6
2020-09-08T10:30:56.000Z
2021-07-10T14:24:23.000Z
pt_mesh_renderer/RasterizeTriangles.py
shty32/pt_mesh_renderer
15153fbbe73d7c4c59d8f0b2bce7320173b3d396
[ "Apache-2.0" ]
9
2020-08-25T08:46:08.000Z
2021-07-25T04:43:41.000Z
# Copyright 2017 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
50.197917
110
0.708861
65db99db18c44b4e940ff60964e5dae8b718ca83
3,988
py
Python
datamining_assignments/datamining_assiment_3/nmf.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
1
2015-10-15T12:26:07.000Z
2015-10-15T12:26:07.000Z
datamining_assignments/datamining_assiment_3/nmf.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
null
null
null
datamining_assignments/datamining_assiment_3/nmf.py
xuerenlv/PaperWork
f096b57a80e8d771f080a02b925a22edbbee722a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Created on Oct 27, 2015 @author: nlp ''' import numpy as np import math # nmf # listlistlist; list[] i #***************** ********************************** # purity # Gini #**************************************************************************** if __name__ ...
31.15625
89
0.570963
65dca40840f63106b93a09800755e3aaddd6d379
3,834
py
Python
heat2d.py
atk91/heat-batman
ce76fa25ba56e65b842575a99a029379be54e687
[ "BSD-2-Clause" ]
null
null
null
heat2d.py
atk91/heat-batman
ce76fa25ba56e65b842575a99a029379be54e687
[ "BSD-2-Clause" ]
null
null
null
heat2d.py
atk91/heat-batman
ce76fa25ba56e65b842575a99a029379be54e687
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import numpy as np import scipy.linalg as la import matplotlib.pyplot as plt from scipy.sparse.linalg import cgs from scipy.sparse import csr_matrix fig = plt.figure() t_min = 0.0 t_max = 10.0 x_min = -10.0 x_max = 10.0 y_min = -10.0 y_max = 10.0 a = 1.0 c = 5.0 m = 400 n = 100 x = np.linspac...
28.61194
114
0.490871
65dceda09e2e4a4ab6cb1d2b5780ccbfb1f4f6c7
2,667
py
Python
DQN DDQN Dueling/network.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
2
2020-01-29T20:49:29.000Z
2020-03-27T21:45:12.000Z
DQN DDQN Dueling/network.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
null
null
null
DQN DDQN Dueling/network.py
eayvali/DeepRL
4722af0f75487dd3167faafd4eabe8f01aea4305
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Jan 19 23:19:43 2020 @author: elif.ayvali """ import torch import torch.nn as nn import torch.nn.functional as F from collections import OrderedDict
31.011628
81
0.544432
65dd2821be3445190af71c053c0a5fe0757716d8
3,352
py
Python
bin/meyer.py
leipzig/meripseqpipe
b16139dfa0805827fec54a33c2a3583d99780591
[ "MIT" ]
13
2020-06-09T05:45:11.000Z
2022-02-17T09:44:34.000Z
bin/meyer.py
leipzig/meripseqpipe
b16139dfa0805827fec54a33c2a3583d99780591
[ "MIT" ]
2
2021-04-02T21:22:19.000Z
2021-09-28T15:48:50.000Z
bin/meyer.py
leipzig/meripseqpipe
b16139dfa0805827fec54a33c2a3583d99780591
[ "MIT" ]
12
2020-06-09T05:55:51.000Z
2022-02-09T03:07:20.000Z
# -*- coding: utf-8 -*- """ Created on Tue Apr 23 18:53:30 2019 @author: zky """ from sys import argv from math import log from scipy import stats input_bin25_file = argv[1] ip_bin25_file = argv[2] input_total_reads_count = int(argv[3]) ip_total_reads_count = int(argv[4]) peak_windows_number = int(argv[5]) output_ip_f...
41.9
149
0.672136
65ddc57bb1b73bd27f58c41a027c88ec873b6740
2,541
py
Python
setup.py
jimbydamonk/jenkins-job-builder-addons
172672e25089992ed94dc223c7e30f29c46719b0
[ "Apache-2.0" ]
8
2015-08-21T15:53:22.000Z
2019-04-09T20:42:58.000Z
setup.py
jimbydamonk/jenkins-job-builder-addons
172672e25089992ed94dc223c7e30f29c46719b0
[ "Apache-2.0" ]
5
2016-03-23T17:46:16.000Z
2018-03-05T13:56:17.000Z
setup.py
jimbydamonk/jenkins-job-builder-addons
172672e25089992ed94dc223c7e30f29c46719b0
[ "Apache-2.0" ]
11
2015-10-05T21:58:33.000Z
2019-04-14T04:50:48.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools.command.test import test as TestCommand try: from setuptools import setup except ImportError: from distutils.core import setup with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: h...
28.550562
75
0.637151
65de85c428d2e16780398c226cf7243329f834fa
1,895
py
Python
arrp/utils/sanitize.py
LucaCappelletti94/arrp_dataset
bcea455a504e8ff718458ce12623c63e0314badb
[ "MIT" ]
null
null
null
arrp/utils/sanitize.py
LucaCappelletti94/arrp_dataset
bcea455a504e8ff718458ce12623c63e0314badb
[ "MIT" ]
null
null
null
arrp/utils/sanitize.py
LucaCappelletti94/arrp_dataset
bcea455a504e8ff718458ce12623c63e0314badb
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from typing import Tuple, Dict from .load_csv import load_raw_classes, load_raw_epigenomic_data, load_raw_nucleotides_sequences from .store_csv import store_raw_classes, store_raw_epigenomic_data, store_raw_nucleotides_sequences from auto_tqdm import tqdm def drop_unknown_datapoi...
67.678571
213
0.803694
65ded556650f5e35ee3489143d332a0dbd1e324c
7,857
py
Python
plugin.video.plexodus/resources/lib/indexers/fanarttv.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
1
2020-03-03T10:01:21.000Z
2020-03-03T10:01:21.000Z
plugin.video.plexodus/resources/lib/indexers/fanarttv.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
plugin.video.plexodus/resources/lib/indexers/fanarttv.py
MR-Unknown-Cm/addons
8df1ebe58c95620bb02a05dbae7bf37954915cbd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' plexOdus Add-on ''' import json from resources.lib.modules import client from resources.lib.modules import control user = control.setting('fanart.tv.user') if user == '' or user is None: user = 'cf0ebcc2f7b824bd04cf3a318f15c17d' headers = {'api-key': '3eb5ed2c401a206391ea8d1a031...
38.704433
187
0.54881
65df761ba100f14026cfc9d900fd8f340f52bd34
3,599
py
Python
nuqql/conversation/helper.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
3
2019-04-15T18:33:36.000Z
2019-04-21T19:18:10.000Z
nuqql/conversation/helper.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
15
2019-04-15T18:35:56.000Z
2019-09-14T08:24:32.000Z
nuqql/conversation/helper.py
hwipl/nuqql
410ea5bd42e455d656b1b34612c3b0d5a0b433ef
[ "MIT" ]
1
2019-06-16T12:00:30.000Z
2019-06-16T12:00:30.000Z
""" nuqql conversation helpers """ import datetime import logging from typing import TYPE_CHECKING import nuqql.win from .conversation import CONVERSATIONS from .logmessage import LogMessage if TYPE_CHECKING: # imports for typing # pylint: disable=cyclic-import from nuqql.backend import Backend # noqa ...
29.260163
74
0.624618
65df788e5e4510c44fcdee2981d1538a1d6e2abd
801
py
Python
tests/gcs_test.py
rishi1111/vaex
b3516201d04e9277b8918dadab9df33a7c83c01a
[ "MIT" ]
1
2020-08-31T17:53:01.000Z
2020-08-31T17:53:01.000Z
tests/gcs_test.py
rishi1111/vaex
b3516201d04e9277b8918dadab9df33a7c83c01a
[ "MIT" ]
null
null
null
tests/gcs_test.py
rishi1111/vaex
b3516201d04e9277b8918dadab9df33a7c83c01a
[ "MIT" ]
null
null
null
import vaex import pytest
33.375
83
0.627965
65dfc680b069d19bcf150f9f7a0bdfd6384fb313
388
py
Python
arcutils/const.py
zhuitrec/django-arcutils
4079ef641f43baab4cda4681b1f76e320f12eb38
[ "MIT" ]
null
null
null
arcutils/const.py
zhuitrec/django-arcutils
4079ef641f43baab4cda4681b1f76e320f12eb38
[ "MIT" ]
null
null
null
arcutils/const.py
zhuitrec/django-arcutils
4079ef641f43baab4cda4681b1f76e320f12eb38
[ "MIT" ]
null
null
null
"""Constants.""" # A ``None``-ish constant for use where ``None`` may be a valid value. NOT_SET = type('NOT_SET', (), { '__bool__': (lambda self: False), '__str__': (lambda self: 'NOT_SET'), '__repr__': (lambda self: 'NOT_SET'), '__copy__': (lambda self: self), })() # An alias for NOT_SET that may be...
25.866667
70
0.639175
65e0bbe0d695a274843f413dfb11aa1bde11659d
340
py
Python
students/K33422/Elizaveta_Makhotina/labs/lab1/3/server_html.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
4
2020-09-03T15:41:42.000Z
2021-12-24T15:28:20.000Z
students/K33422/Elizaveta_Makhotina/labs/lab1/3/server_html.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
48
2020-09-13T20:22:42.000Z
2021-04-30T11:13:30.000Z
students/K33422/Elizaveta_Makhotina/labs/lab1/3/server_html.py
agentofknowledge/ITMO_ICT_WebDevelopment_2020-2021
7d5eab0d68af378083f21473cbbd5e5def6aa60a
[ "MIT" ]
69
2020-09-06T10:32:37.000Z
2021-11-28T18:13:17.000Z
import socket print("Waiting for connections...") sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('', 9090)) sock.listen() n_sock, addr = sock.accept() print("Client connected! Sending HTTP-message") conn.send( b"HTTP/1.0 200 OK\nContent-Type: text/html\n\n" + open("index.html", "rb").read...
18.888889
85
0.694118
65e1870d1694528b9c38bfaea11b991273afa141
2,998
py
Python
tests/test_private_storage.py
glasslion/django-qiniu-storage
b046ec0b67ebcf8cd9eb09c60f7db4a7e4fab7ad
[ "MIT" ]
209
2015-01-04T09:24:42.000Z
2022-03-20T12:29:05.000Z
tests/test_private_storage.py
manlan2/django-qiniu-storage
b046ec0b67ebcf8cd9eb09c60f7db4a7e4fab7ad
[ "MIT" ]
39
2015-04-10T05:38:07.000Z
2021-09-09T02:26:54.000Z
tests/test_private_storage.py
manlan2/django-qiniu-storage
b046ec0b67ebcf8cd9eb09c60f7db4a7e4fab7ad
[ "MIT" ]
69
2015-03-03T14:31:20.000Z
2021-10-11T08:31:25.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals, print_function from datetime import datetime import os from os.path import dirname, join import sys import time import unittest import uuid import logging LOGGING_FORMAT = '\n%(levelname)s %(asctime)s %(message)s' logging.basicConfig(lev...
29.106796
82
0.645097
65e1926c2e3ccf0ad609aeee24520c09fc7d1f0b
1,227
py
Python
inference_sagemaker_simple.py
benayas1/MNIST-deployment
36eab6589816ca6598a42d637755ad1432cb8b1c
[ "MIT" ]
null
null
null
inference_sagemaker_simple.py
benayas1/MNIST-deployment
36eab6589816ca6598a42d637755ad1432cb8b1c
[ "MIT" ]
null
null
null
inference_sagemaker_simple.py
benayas1/MNIST-deployment
36eab6589816ca6598a42d637755ad1432cb8b1c
[ "MIT" ]
null
null
null
# This file implements functions model_fn, input_fn, predict_fn and output_fn. # Function model_fn is mandatory. The other functions can be omitted so the standard sagemaker function will be used. # An alternative to the last 3 functions is to use function transform_fn(model, data, input_content_type, output_content_ty...
37.181818
126
0.740016
65e1ff2eb00e84049f3aabe94179a02fc82570ba
802
py
Python
hw/scripts/__main__.py
jonasblixt/mongoose
4f392353f42d9c9245cdb5d9511348ec40bd936f
[ "BSD-3-Clause" ]
4
2019-07-31T17:59:14.000Z
2019-10-06T11:46:28.000Z
hw/scripts/__main__.py
jonasblixt/mongoose
4f392353f42d9c9245cdb5d9511348ec40bd936f
[ "BSD-3-Clause" ]
null
null
null
hw/scripts/__main__.py
jonasblixt/mongoose
4f392353f42d9c9245cdb5d9511348ec40bd936f
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import kicad import model from stackups import JLCPCB6Layers #from dram import lp4 # IMX8MM # Diff pairs should be matched within 1ps # CK_t/CK_c max 200 ps # CA[5:0] # CS[1:0] min: CK_t - 25ps, max: CK_t + 25ps # CKE[1:0] # DQS0_t/DQS0_c min: CK_t - 85ps, max CK_t + 85ps # DQ[7:0]...
21.675676
68
0.627182
65e2a0c64857964a543fdd7ce72cd8eee8d2cbac
165
py
Python
farms2face/subscriptions/views.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/subscriptions/views.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
null
null
null
farms2face/subscriptions/views.py
dev1farms2face/f2f
54e58187a68574bf2bd0dfb7e58a2b416336106a
[ "MIT" ]
2
2018-06-19T12:12:08.000Z
2018-06-25T18:45:36.000Z
from django.shortcuts import render # Create your views here.
20.625
44
0.636364
65e2db02f151a8da25b3c6a7203333c4f0b917f2
4,795
py
Python
scripts/runOptimizer.py
sschulz365/PhC_Optimization
9a4add4eb638d797647cabbdf0f96b29b78114f2
[ "Naumen", "Condor-1.1", "MS-PL" ]
2
2017-05-13T05:33:06.000Z
2021-02-26T14:39:44.000Z
scripts/runOptimizer.py
sschulz365/PhC_Optimization
9a4add4eb638d797647cabbdf0f96b29b78114f2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
scripts/runOptimizer.py
sschulz365/PhC_Optimization
9a4add4eb638d797647cabbdf0f96b29b78114f2
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
#Sean Billings, 2015 import random import numpy import subprocess import constraints from experiment import Experiment from objectiveFunctions import WeightedSumObjectiveFunction, IdealDifferentialObjectiveFunction from waveGuideMPBOptimizer import differentialEvolution, createPopulation, gradientDescentAlgorithm impor...
33.531469
104
0.737018
65e30ee0c4097461b20374e7d55ddbfdf3a3908e
2,781
py
Python
packages/w3af/w3af/core/data/url/handlers/cookie_handler.py
ZooAtmosphereGroup/HelloPackages
0ccffd33bf927b13d28c8f715ed35004c33465d9
[ "Apache-2.0" ]
3
2019-04-09T22:59:33.000Z
2019-06-14T09:23:24.000Z
tools/w3af/w3af/core/data/url/handlers/cookie_handler.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
tools/w3af/w3af/core/data/url/handlers/cookie_handler.py
sravani-m/Web-Application-Security-Framework
d9f71538f5cba6fe1d8eabcb26c557565472f6a6
[ "MIT" ]
null
null
null
""" cookie_handler.py Copyright 2006 Andres Riancho This file is part of w3af, http://w3af.org/ . w3af is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2 of the License. w3af is distributed in the hope t...
30.56044
78
0.678533
65e31c331679c439236e3ccff96fa39b9166d6f4
435
py
Python
setup.py
jigyasudhingra/music-recommendation-system
09c66c4f207002b200d6394cf72e853741e44b6e
[ "MIT" ]
2
2021-12-04T08:47:41.000Z
2021-12-06T16:54:36.000Z
setup.py
jigyasudhingra/music-recommendation-system
09c66c4f207002b200d6394cf72e853741e44b6e
[ "MIT" ]
null
null
null
setup.py
jigyasudhingra/music-recommendation-system
09c66c4f207002b200d6394cf72e853741e44b6e
[ "MIT" ]
1
2020-12-12T15:55:20.000Z
2020-12-12T15:55:20.000Z
import os import urllib.request from zipfile import ZipFile HOME_DIRECTORY = os.path.join('datasets','raw') ROOT_URL = 'https://os.unil.cloud.switch.ch/fma/fma_metadata.zip' if not os.path.isdir(HOME_DIRECTORY): os.makedirs(HOME_DIRECTORY) zip_path = os.path.join(HOME_DIRECTORY, 'data.zip') urllib.request.urlretr...
29
65
0.758621
65e488ce45eec9f35c2f059eb9cb3c3452d611ab
2,601
py
Python
src/thesis/parsers/utils.py
emanuelevivoli/2021-Master-Thesis-UNIFI
e702795f71ecf0e09fca64e72780f4f6367558c9
[ "MIT" ]
1
2022-02-14T00:06:21.000Z
2022-02-14T00:06:21.000Z
src/thesis/parsers/utils.py
emanuelevivoli/2021-Master-Thesis-UNIFI
e702795f71ecf0e09fca64e72780f4f6367558c9
[ "MIT" ]
null
null
null
src/thesis/parsers/utils.py
emanuelevivoli/2021-Master-Thesis-UNIFI
e702795f71ecf0e09fca64e72780f4f6367558c9
[ "MIT" ]
1
2022-02-14T00:06:14.000Z
2022-02-14T00:06:14.000Z
from thesis.parsers.classes import Args def tag_generation(args_: Args): """ Generation of the Run tags (from arguments). """ # empty tags' list tags = [] dataset_args, training_args, model_args, embedding_args, visual_args, run_args, log_args = split_args( args_) model_args = a...
35.148649
107
0.662438
65e524699bbb4c1ad2b8a3703eba4df80c4f8ec4
6,625
py
Python
tensorflow_examples/lite/model_maker/core/task/custom_model.py
Abhi1code/FaceMaskDetection
689abda8243665c218193384aa655c11d555c4e9
[ "Apache-2.0" ]
1
2022-01-08T16:02:18.000Z
2022-01-08T16:02:18.000Z
tensorflow_examples/lite/model_maker/core/task/custom_model.py
Abhi1code/MaskDetection
689abda8243665c218193384aa655c11d555c4e9
[ "Apache-2.0" ]
4
2021-06-08T21:30:20.000Z
2022-03-12T00:28:38.000Z
tensorflow_examples/lite/model_maker/core/task/custom_model.py
Abhi1code/MaskDetection
689abda8243665c218193384aa655c11d555c4e9
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The TensorFlow Authors. 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 applica...
36.401099
83
0.683321
65e60e80d09e1199bb195a86c8a1614239235c24
3,479
py
Python
src/architectures/nmp/stacked_nmp/stacked_fixed_nmp.py
isaachenrion/jets
59aeba81788d0741af448192d9dfb764fb97cf8d
[ "BSD-3-Clause" ]
9
2017-10-09T17:01:52.000Z
2018-06-12T18:06:05.000Z
src/architectures/nmp/stacked_nmp/stacked_fixed_nmp.py
isaachenrion/jets
59aeba81788d0741af448192d9dfb764fb97cf8d
[ "BSD-3-Clause" ]
31
2017-11-01T14:39:02.000Z
2018-04-18T15:34:24.000Z
src/architectures/nmp/stacked_nmp/stacked_fixed_nmp.py
isaachenrion/jets
59aeba81788d0741af448192d9dfb764fb97cf8d
[ "BSD-3-Clause" ]
10
2017-10-17T19:23:14.000Z
2020-07-05T04:44:45.000Z
import os import logging import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from src.architectures.readout import READOUTS from src.architectures.embedding import EMBEDDINGS from .attention_pooling import POOLING_LAYERS from ..message_passing import MP_LAYERS from .....
31.627273
111
0.540673
65e7b3e3e21dcd54310f063dfef34f4349a1bdff
533
py
Python
slixmpp/plugins/xep_0122/data_validation.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
86
2016-07-04T13:26:02.000Z
2022-02-19T10:26:21.000Z
slixmpp/plugins/xep_0122/data_validation.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
10
2016-09-30T18:55:41.000Z
2020-05-01T14:22:47.000Z
slixmpp/plugins/xep_0122/data_validation.py
anirudhrata/slixmpp
1fcee0e80a212eeb274d2f560e69099d8a61bf7f
[ "BSD-3-Clause" ]
45
2016-09-30T18:48:41.000Z
2022-03-18T21:39:33.000Z
from slixmpp.xmlstream import register_stanza_plugin from slixmpp.plugins import BasePlugin from slixmpp.plugins.xep_0004 import stanza from slixmpp.plugins.xep_0004.stanza import FormField from slixmpp.plugins.xep_0122.stanza import FormValidation
26.65
58
0.754221
65e86aaff0a0cc5f5a6394f9f3fd03cd47bf0ab3
497
py
Python
q037.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
q037.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
q037.py
sjf/project_euler
8514710e2018136ba8a087ae58cba35370700f6f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import lib N=1000000 sieve = lib.get_prime_sieve(N) primes = lib.primes(N, sieve) primes = primes[4:] result = [] for i in primes: if is_truncatable(i): result.append(i) if len(result) == 11: break print(sum(result))
15.53125
30
0.581489