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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
70382ba6c8a70c367c6fcdd7091ab0658b52622e | 96 | py | Python | project/search_info/apps.py | Kaiser-Zheng/Lawsuit_Searching_Platform | 68a51141a4b3230471df16b89fe5762099a5c052 | [
"MIT"
] | null | null | null | project/search_info/apps.py | Kaiser-Zheng/Lawsuit_Searching_Platform | 68a51141a4b3230471df16b89fe5762099a5c052 | [
"MIT"
] | null | null | null | project/search_info/apps.py | Kaiser-Zheng/Lawsuit_Searching_Platform | 68a51141a4b3230471df16b89fe5762099a5c052 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
| 16 | 34 | 0.770833 |
70384a2cc1df0e02dedd4b43b4487effab21a9f3 | 502 | py | Python | src/test_generator/ast_assertion.py | AAU-PSix/canary | 93b07d23cd9380adc03a6aa1291a13eaa3b3008c | [
"MIT"
] | null | null | null | src/test_generator/ast_assertion.py | AAU-PSix/canary | 93b07d23cd9380adc03a6aa1291a13eaa3b3008c | [
"MIT"
] | null | null | null | src/test_generator/ast_assertion.py | AAU-PSix/canary | 93b07d23cd9380adc03a6aa1291a13eaa3b3008c | [
"MIT"
] | null | null | null | from typing import Any
from .ast_expression import Expression
from .ast_statement import Statement | 26.421053 | 73 | 0.693227 |
7038e8c67cee5c73a9e42f465cd67f99a3c00a05 | 7,864 | py | Python | pyrt/radiation.py | kconnour/planetary_disort | ccdb0694d4146ef52003fdcec4deb5f65ec72306 | [
"BSD-3-Clause"
] | 10 | 2021-10-09T03:08:58.000Z | 2022-03-19T16:16:20.000Z | pyrt/radiation.py | kconnour/planetary_disort | ccdb0694d4146ef52003fdcec4deb5f65ec72306 | [
"BSD-3-Clause"
] | 12 | 2021-04-26T21:48:00.000Z | 2022-03-28T21:58:30.000Z | pyrt/radiation.py | kconnour/planetary_disort | ccdb0694d4146ef52003fdcec4deb5f65ec72306 | [
"BSD-3-Clause"
] | 2 | 2021-02-03T13:22:15.000Z | 2022-03-19T19:31:57.000Z | """The :code:`radiation` module contains data structures for holding the
radiation variables used in DISORT.
"""
import numpy as np
| 34.951111 | 80 | 0.625381 |
70393e1cf864065d1ebbb03ff2d70b9e6c33b9bf | 9,212 | py | Python | src/core/src/tortuga/cli/tortugaCli.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 33 | 2018-03-02T17:07:39.000Z | 2021-05-21T18:02:51.000Z | src/core/src/tortuga/cli/tortugaCli.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 201 | 2018-03-05T14:28:24.000Z | 2020-11-23T19:58:27.000Z | src/core/src/tortuga/cli/tortugaCli.py | sutasu/tortuga | 48d7cde4fa652346600b217043b4a734fa2ba455 | [
"Apache-2.0"
] | 23 | 2018-03-02T17:21:59.000Z | 2020-11-18T14:52:38.000Z | # Copyright 2008-2018 Univa 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... | 31.656357 | 75 | 0.582284 |
703968d6bb5c8776534827509ccf35dfd741dc05 | 21,393 | py | Python | scientificpaperoperations/papersearchengine/django_paper_search.py | michaelfaerber/paperhunter | b743444eb7b77503bc9c0950b4cf19fbbd9a177b | [
"Apache-2.0"
] | 4 | 2020-09-15T10:54:37.000Z | 2022-02-23T12:35:32.000Z | scientificpaperoperations/papersearchengine/django_paper_search.py | michaelfaerber/paperhunter | b743444eb7b77503bc9c0950b4cf19fbbd9a177b | [
"Apache-2.0"
] | null | null | null | scientificpaperoperations/papersearchengine/django_paper_search.py | michaelfaerber/paperhunter | b743444eb7b77503bc9c0950b4cf19fbbd9a177b | [
"Apache-2.0"
] | 1 | 2020-11-08T11:03:47.000Z | 2020-11-08T11:03:47.000Z | #-------------------------------------------------------------------------------
# Name: Research papers search engine
# Purpose: A search engine which can search different fields.
#
# Author: Ashwath Sampath
#
# Created: 14-05-2018
# Copyright: (c) Ashwath Sampath ... | 57.048 | 160 | 0.651148 |
703c18b3d77e9deeb40500573ea0b2b61e8d29d8 | 12,733 | py | Python | src/evaluation_system/model/user.py | FREVA-CLINT/Freva | 53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2020-06-12T18:18:48.000Z | 2021-12-18T03:35:08.000Z | src/evaluation_system/model/user.py | FREVA-CLINT/Freva | 53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/evaluation_system/model/user.py | FREVA-CLINT/Freva | 53c6d0951a8dcfe985c8f33cbb3fbac7e8a3db04 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | '''
.. moduleauthor:: Sebastian Illing / estani
This module manages the abstraction of a user providing thus all information about him/her that
might be required anywhere else.
'''
import pwd
import os
import sys
from ConfigParser import SafeConfigParser as Config
from evaluation_system.misc import config, utils
from ... | 42.872054 | 130 | 0.641404 |
703c2951dba5449a5db47926cbcfb472f6a8c13d | 622 | py | Python | python/sortalgorithm/quickSort.py | Turingu/leetcode | ac75c14604b29df394b768b23a94bb7bf310777b | [
"MIT"
] | 1 | 2020-01-01T17:46:11.000Z | 2020-01-01T17:46:11.000Z | python/sortalgorithm/quickSort.py | Turingu/leetcode | ac75c14604b29df394b768b23a94bb7bf310777b | [
"MIT"
] | null | null | null | python/sortalgorithm/quickSort.py | Turingu/leetcode | ac75c14604b29df394b768b23a94bb7bf310777b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
if __name__ == '__main__':
print(QuickSort().quicksort([5, 6, 1, 3, 4, 2]))
| 19.4375 | 76 | 0.5 |
703fb1e27a52d3ffb8f5d5d2c4f8cf3cf7bf0867 | 14,590 | py | Python | autoprover/gp/model.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | null | null | null | autoprover/gp/model.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | null | null | null | autoprover/gp/model.py | nclab-admin/autoprover | 3fe5a0bb6132ae320461d538bb06c4f0fd604b27 | [
"MIT"
] | null | null | null | """
define model for gp
"""
# from threading import Thread
# from queue import Queue
from multiprocessing import Pool
from random import random, randint
from math import floor
import operator
from autoprover.gp.gene import Gene
from autoprover.gp.rule import GeneRule
from autoprover.gp.action import GeneAction
from aut... | 34.57346 | 90 | 0.586703 |
7041579baafc29131802d05ec39c94205b748e47 | 7,465 | py | Python | dgts_base.py | amirhertz/dgst | 087c967a74b023bae3cd874816ab8e0e5e30ddd7 | [
"MIT"
] | 39 | 2020-08-17T21:50:08.000Z | 2022-03-31T07:03:10.000Z | dgts_base.py | amirhertz/dgst | 087c967a74b023bae3cd874816ab8e0e5e30ddd7 | [
"MIT"
] | 1 | 2021-04-15T21:45:53.000Z | 2021-04-15T21:45:53.000Z | dgts_base.py | amirhertz/dgst | 087c967a74b023bae3cd874816ab8e0e5e30ddd7 | [
"MIT"
] | 5 | 2020-12-12T00:37:05.000Z | 2021-11-10T12:39:18.000Z | from custom_types import *
import options as options
from process_data import mesh_utils
import models.factory as factory
from models.single_mesh_models import SingleMeshGenerator
from models.mesh_handler import MeshHandler, MeshInference, load_template_mesh
if __name__ == '__main__':
opt_ = options.Options()
... | 43.401163 | 136 | 0.604823 |
7041ada191d0f5730f5d5dde284d632d5177384a | 24,098 | py | Python | src/SegnetModel.py | JasonChu1313/Satellite-Segmentation | c41727af305d09ce93f745b841d228b7a4f24a9c | [
"MIT"
] | 1 | 2019-01-29T04:35:39.000Z | 2019-01-29T04:35:39.000Z | src/SegnetModel.py | JasonChu1313/Satellite-Segmentation | c41727af305d09ce93f745b841d228b7a4f24a9c | [
"MIT"
] | null | null | null | src/SegnetModel.py | JasonChu1313/Satellite-Segmentation | c41727af305d09ce93f745b841d228b7a4f24a9c | [
"MIT"
] | null | null | null | from Model import Model
from Config import Config
from math import ceil
import readfile
import customer_init
import numpy as np
import time
import datetime
import util
import os
import random
from tempfile import TemporaryFile
from customer_init import orthogonal_initializer
import tensorflow as tf
from tensorflow.core... | 48.196 | 146 | 0.586314 |
70451f302a73ad31961fa26c06b2569898d2f01a | 24 | py | Python | tests/dbshell/fake_client.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 61,676 | 2015-01-01T00:05:13.000Z | 2022-03-31T20:37:54.000Z | tests/dbshell/fake_client.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 8,884 | 2015-01-01T00:12:05.000Z | 2022-03-31T19:53:11.000Z | tests/dbshell/fake_client.py | jpmallarino/django | 659d2421c7adbbcd205604002d521d82d6b0b465 | [
"BSD-3-Clause",
"0BSD"
] | 33,143 | 2015-01-01T02:04:52.000Z | 2022-03-31T19:42:46.000Z | import sys
sys.exit(1)
| 6 | 11 | 0.708333 |
70452cacee3231986c156c0451cdad71cf0c3278 | 6,904 | py | Python | src/settings.py | matheuslins/instacartcrawl | cfa715758857134ce3a2fcc0fdb3cc4bb1dde114 | [
"MIT"
] | 3 | 2020-12-19T20:22:48.000Z | 2022-01-31T03:15:59.000Z | src/settings.py | matheuslins/instacartcrawl | cfa715758857134ce3a2fcc0fdb3cc4bb1dde114 | [
"MIT"
] | null | null | null | src/settings.py | matheuslins/instacartcrawl | cfa715758857134ce3a2fcc0fdb3cc4bb1dde114 | [
"MIT"
] | null | null | null | from decouple import config
CAPTCHA = {
"2CAPTCHA_API_KEY": config("2CAPTCHA_API_KEY"),
"2CAPTCHA_URL": config("2CAPTCHA_URL")
}
SPIDERS_SETTINGS = {
"instacart": {
"START_URL": "http://instacart.com",
"LOGIN_URL": "https://www.instacart.com/v3/dynamic_data/authenticate/login?source=web&c... | 150.086957 | 2,930 | 0.839368 |
70474720aff7dcf7a5a4c61d68b746a8c74298dc | 51,753 | py | Python | pythonjs/runtime/builtins.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 319 | 2015-01-02T11:34:16.000Z | 2022-03-25T00:43:33.000Z | pythonjs/runtime/builtins.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 10 | 2015-02-03T02:33:09.000Z | 2021-11-09T21:41:00.000Z | pythonjs/runtime/builtins.py | bpmbank/PythonJS | 591a80afd8233fb715493591db2b68f1748558d9 | [
"BSD-3-Clause"
] | 61 | 2015-01-02T12:01:56.000Z | 2021-12-08T07:16:16.000Z | # PythonJS builtins
# by Amirouche Boubekki and Brett Hartshorn - copyright 2013
# License: "New BSD"
pythonjs.configure( runtime_exceptions=False )
pythonjs.configure( direct_operator='+' )
pythonjs.configure( direct_operator='*' )
pythonjs.configure( direct_keys=True )
_PythonJS_UID = 0
inline('IndexError = functi... | 25.14723 | 177 | 0.638591 |
704898ebecbbd9155f7d6b166429c2459741b79f | 1,714 | py | Python | feedmapper/migrations/0001_initial.py | benwhalley/django-feedmapper | 23eeabeda4d7ab6c3404f96348905c2ca12e964e | [
"BSD-3-Clause"
] | null | null | null | feedmapper/migrations/0001_initial.py | benwhalley/django-feedmapper | 23eeabeda4d7ab6c3404f96348905c2ca12e964e | [
"BSD-3-Clause"
] | null | null | null | feedmapper/migrations/0001_initial.py | benwhalley/django-feedmapper | 23eeabeda4d7ab6c3404f96348905c2ca12e964e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-11-26 10:42
from __future__ import unicode_literals
from django.db import migrations, models
import jsonfield.fields
| 51.939394 | 234 | 0.658693 |
7048c4e22df4e28d615e6cb3c66edb19918a9647 | 1,264 | py | Python | static/_source.py | Manazius/blacksmith-bot | c31ebdc8f8df1ab79ea1cc833e2c5c2266a231ea | [
"Apache-2.0"
] | 3 | 2015-10-15T15:40:17.000Z | 2021-06-08T05:39:21.000Z | static/_source.py | Manazius/blacksmith-bot | c31ebdc8f8df1ab79ea1cc833e2c5c2266a231ea | [
"Apache-2.0"
] | 1 | 2019-04-06T11:54:56.000Z | 2019-04-07T00:57:49.000Z | static/_source.py | Manazius/blacksmith-bot | c31ebdc8f8df1ab79ea1cc833e2c5c2266a231ea | [
"Apache-2.0"
] | 3 | 2015-10-26T14:49:57.000Z | 2018-03-04T15:34:11.000Z | # coding: utf-8
# BlackSmith general configuration file
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
# Jabber server to connect
SERVER = 'example.com'
# Connecting Port
PORT = 5222
# Jabber server`s connecting Host
HOST = 'example.com'
# Using TLS (True - to enable, False - to disable)
SECURE ... | 22.175439 | 72 | 0.58307 |
7049080fe6f9363a6dc30511fae5d03bdb374568 | 33 | py | Python | config.py | jahosp/telegram-bot-startkit | 1d786a1162671b83d16d9b4f643e3d12698b1215 | [
"MIT"
] | null | null | null | config.py | jahosp/telegram-bot-startkit | 1d786a1162671b83d16d9b4f643e3d12698b1215 | [
"MIT"
] | null | null | null | config.py | jahosp/telegram-bot-startkit | 1d786a1162671b83d16d9b4f643e3d12698b1215 | [
"MIT"
] | null | null | null | BOT_TOKEN='write here your token' | 33 | 33 | 0.818182 |
7049a5622940d03f7b60f4459b7d5d09a8e992b4 | 327 | py | Python | adversarial_music_generator/tune_finder_interface.py | hq9000/adversarial-music-generator | 2a47db96d2659d66dca14c075b185819a875dcfe | [
"MIT"
] | null | null | null | adversarial_music_generator/tune_finder_interface.py | hq9000/adversarial-music-generator | 2a47db96d2659d66dca14c075b185819a875dcfe | [
"MIT"
] | 9 | 2020-12-14T08:25:12.000Z | 2021-02-23T07:33:44.000Z | adversarial_music_generator/tune_finder_interface.py | hq9000/adversarial-music-generator | 2a47db96d2659d66dca14c075b185819a875dcfe | [
"MIT"
] | null | null | null | from abc import abstractmethod, ABC
from typing import List
from adversarial_music_generator.find_tunes_task import FindTunesTask
from adversarial_music_generator.models.tune import Tune
| 27.25 | 71 | 0.807339 |
704bb79cb43d8621a88aa46b38180d530b5d697f | 2,862 | py | Python | markdownreveal/tests/test_local.py | markdownreveal/markdownreveal | a225a89854cb88937926d8cfc54ac51f90be0d66 | [
"BSD-3-Clause"
] | 30 | 2017-03-25T22:38:13.000Z | 2022-01-28T11:37:17.000Z | markdownreveal/tests/test_local.py | markdownreveal/markdownreveal | a225a89854cb88937926d8cfc54ac51f90be0d66 | [
"BSD-3-Clause"
] | 49 | 2017-03-25T18:21:28.000Z | 2021-01-19T13:40:41.000Z | markdownreveal/tests/test_local.py | markdownreveal/markdownreveal | a225a89854cb88937926d8cfc54ac51f90be0d66 | [
"BSD-3-Clause"
] | 17 | 2017-03-27T15:46:44.000Z | 2020-10-16T13:03:44.000Z | """
Markdownreveal local module tests.
"""
import json
import time
from hashlib import sha1
from pathlib import Path
from shutil import rmtree
from tarfile import TarInfo
from tempfile import mkdtemp
import pytest
from markdownreveal.local import clean_tar_members
from markdownreveal.local import initialize_localdir
f... | 28.62 | 75 | 0.634521 |
704c2153fa8d91e12d420a68efc08384b40b0410 | 2,025 | py | Python | src/ndn/app_support/light_versec/grammar.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | null | null | null | src/ndn/app_support/light_versec/grammar.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | null | null | null | src/ndn/app_support/light_versec/grammar.py | tianyuan129/python-ndn | f390b3122d2a233a9a22a1ee9468b1241c46ef86 | [
"Apache-2.0"
] | 1 | 2020-09-25T18:38:23.000Z | 2020-09-25T18:38:23.000Z | # -----------------------------------------------------------------------------
# This piece of work is inspired by Pollere' VerSec:
# https://github.com/pollere/DCT
# But this code is implemented independently without using any line of the
# original one, and released under Apache License.
#
# Copyright (C) 2019-2022 ... | 36.818182 | 79 | 0.609877 |
704cabda89b5d269374a451dc6cd376d6afbd59b | 1,441 | py | Python | aoc2020/day8.py | Satertek/adventofcode | 9282d99bb9f74e02217b24b07421f48103a12b47 | [
"MIT"
] | null | null | null | aoc2020/day8.py | Satertek/adventofcode | 9282d99bb9f74e02217b24b07421f48103a12b47 | [
"MIT"
] | null | null | null | aoc2020/day8.py | Satertek/adventofcode | 9282d99bb9f74e02217b24b07421f48103a12b47 | [
"MIT"
] | null | null | null | import copy
if __name__ == "__main__":
part1, part2 = get_day8()
print(f"Part 1: {part1}")
print(f"Part 2: {part2}") | 24.844828 | 53 | 0.48508 |
704ef5cbb00dc09bf9e5d9ba95eb3d66d7ebd0a3 | 1,766 | py | Python | drink_partners/conftest.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | drink_partners/conftest.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | 22 | 2020-05-02T19:32:24.000Z | 2021-10-17T21:19:46.000Z | drink_partners/conftest.py | henriquebraga/drink-partners | 4702263ae3e43ea9403cff5a72b68245d61880c7 | [
"Apache-2.0"
] | null | null | null | import asyncio
import pytest
from aiohttp.client_reqrep import ClientRequest
from simple_settings.utils import settings_stub
from yarl import URL
from drink_partners import app as _app
from drink_partners.contrib.mongo.client import MongoClient
| 21.277108 | 84 | 0.710646 |
704ef90a1eda0b853ed398648b6b2a1777d6297f | 48 | py | Python | download/__init__.py | Vinaypatil-Ev/wantas | 3e501d979a8422ba628e3454ec703b27428e0bb1 | [
"MIT"
] | null | null | null | download/__init__.py | Vinaypatil-Ev/wantas | 3e501d979a8422ba628e3454ec703b27428e0bb1 | [
"MIT"
] | null | null | null | download/__init__.py | Vinaypatil-Ev/wantas | 3e501d979a8422ba628e3454ec703b27428e0bb1 | [
"MIT"
] | null | null | null | from .gdrive import download_from_gdrive_with_id | 48 | 48 | 0.916667 |
704f02f9e22e2c5f1ec53cdab281afc673828cb1 | 32 | py | Python | TOPSIS-ARNAV-101803005/__init__.py | arnav2236/xtff-topsis | c1d17c80834eb308755b267c72559c1003636bfa | [
"MIT"
] | null | null | null | TOPSIS-ARNAV-101803005/__init__.py | arnav2236/xtff-topsis | c1d17c80834eb308755b267c72559c1003636bfa | [
"MIT"
] | null | null | null | TOPSIS-ARNAV-101803005/__init__.py | arnav2236/xtff-topsis | c1d17c80834eb308755b267c72559c1003636bfa | [
"MIT"
] | null | null | null | #version no.
__version__ =1.0.0 | 10.666667 | 18 | 0.71875 |
705075e331d10e16badf9723f5efa77d8383e83b | 2,842 | py | Python | pmfp/entrypoint/grpc/build_/core.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 4 | 2017-09-15T03:38:56.000Z | 2019-12-16T02:03:14.000Z | pmfp/entrypoint/grpc/build_/core.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 1 | 2021-04-27T10:51:42.000Z | 2021-04-27T10:51:42.000Z | pmfp/entrypoint/grpc/build_/core.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | null | null | null | from pmfp.utils.endpoint import EndPoint
from ..core import grpc
grpc_build = grpc.regist_sub(Build)
| 30.55914 | 79 | 0.385996 |
705192f35163826fea01dedd97766893e72e2319 | 7,406 | py | Python | test/modules/tls/env.py | samkenxstream/httpd | 622fed589cef3eff746f54ef0eab91da058b90d6 | [
"Apache-2.0"
] | null | null | null | test/modules/tls/env.py | samkenxstream/httpd | 622fed589cef3eff746f54ef0eab91da058b90d6 | [
"Apache-2.0"
] | null | null | null | test/modules/tls/env.py | samkenxstream/httpd | 622fed589cef3eff746f54ef0eab91da058b90d6 | [
"Apache-2.0"
] | null | null | null | import inspect
import logging
import os
import re
import subprocess
from datetime import timedelta, datetime
from typing import List, Optional, Dict, Tuple, Union
from pyhttpd.certs import CertificateSpec
from pyhttpd.env import HttpdTestEnv, HttpdTestSetup
from pyhttpd.result import ExecResult
log = logging.getLogg... | 39.393617 | 101 | 0.593843 |
7051a25721f1b3c0108c42e4e6a9b15c83af70d4 | 56 | py | Python | textattack/goal_functions/text/__init__.py | fighting41love/TextAttack | 24e48f0022dc3a7bdcd5cbb3430f1c72cfcb522d | [
"MIT"
] | 2 | 2020-07-08T08:55:37.000Z | 2020-09-03T00:57:38.000Z | textattack/goal_functions/text/__init__.py | SatoshiRobatoFujimoto/TextAttack | a809a9bddddff9f41750949e26edde26c8af6cfa | [
"MIT"
] | null | null | null | textattack/goal_functions/text/__init__.py | SatoshiRobatoFujimoto/TextAttack | a809a9bddddff9f41750949e26edde26c8af6cfa | [
"MIT"
] | null | null | null | from .non_overlapping_output import NonOverlappingOutput | 56 | 56 | 0.928571 |
7051d8d5b08e1cd038e60381417bb0edd3c29c57 | 5,913 | py | Python | scenarios/Gramineae.py | 865699871/IAGS_version1.0 | f5b2f30cef9b809a9ece91abf5b1d56367512f58 | [
"AFL-1.1"
] | 5 | 2021-08-04T07:38:04.000Z | 2022-03-07T16:56:57.000Z | scenarios/Gramineae.py | xjtu-omics/IAGS | 1e9de501e1f7875e0cea6da5954aa034445eae77 | [
"AFL-1.1"
] | null | null | null | scenarios/Gramineae.py | xjtu-omics/IAGS | 1e9de501e1f7875e0cea6da5954aa034445eae77 | [
"AFL-1.1"
] | 2 | 2022-03-03T03:10:01.000Z | 2022-03-28T01:49:19.000Z | from models.MultiGMPmodel import MultiCopyGMPmodel
from models.MultiGGHPmodel import MultiCopyGGHPmodel
from util.calculatedCRBrateAndEstimationAccuracy import calculatedCRBrateAndEstimationAccuracy
from util.cutCircularChromosomes import cutCircularChromosomes
"""
Inferring ancestor species for Gramineae species.
An... | 44.126866 | 126 | 0.770506 |
7052230dd2fbe62419de26e704bc3a6fc7f8c7d8 | 335 | py | Python | service/models.py | robscarvalho8/currency_converter | 21ac36583da15271bfbae9ee511093948af37534 | [
"MIT"
] | null | null | null | service/models.py | robscarvalho8/currency_converter | 21ac36583da15271bfbae9ee511093948af37534 | [
"MIT"
] | null | null | null | service/models.py | robscarvalho8/currency_converter | 21ac36583da15271bfbae9ee511093948af37534 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, Date, Integer, String, Float
from database import Base
| 23.928571 | 62 | 0.728358 |
705394b59f01873e93addfd88b0e870c6288738d | 1,062 | py | Python | ads/opctl/constants.py | oracle/accelerated-data-science | d594ed0c8c1365daf4cf9e860daebc760fa9a24b | [
"UPL-1.0",
"Apache-2.0"
] | 20 | 2022-02-22T19:07:09.000Z | 2022-03-16T17:21:42.000Z | ads/opctl/constants.py | oracle/accelerated-data-science | d594ed0c8c1365daf4cf9e860daebc760fa9a24b | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null | ads/opctl/constants.py | oracle/accelerated-data-science | d594ed0c8c1365daf4cf9e860daebc760fa9a24b | [
"UPL-1.0",
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8; -*-
# Copyright (c) 2022 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
DEFAULT_OCI_CONFIG_FILE = "~/.oci/config"
DEFAULT_PROFILE = "DEFAULT"
DEFAULT_CONDA_PACK_FOLDER = "~/conda"
CONDA_P... | 40.846154 | 104 | 0.792844 |
70547d38421cec77e2dcac74cdf76ff56dcb6062 | 775 | py | Python | Threading/camera_thread.py | Oreowong/usv-based-on-raspberry | 574fde9336b2362a3b99c2e8cef5e0d9368b726f | [
"MulanPSL-1.0"
] | null | null | null | Threading/camera_thread.py | Oreowong/usv-based-on-raspberry | 574fde9336b2362a3b99c2e8cef5e0d9368b726f | [
"MulanPSL-1.0"
] | null | null | null | Threading/camera_thread.py | Oreowong/usv-based-on-raspberry | 574fde9336b2362a3b99c2e8cef5e0d9368b726f | [
"MulanPSL-1.0"
] | null | null | null | import os
import threading
import time
if __name__=="__main__":
c = Camthread()
c.start()
while True:
time.sleep(1)
| 27.678571 | 307 | 0.72 |
7054ea56b3a0bbbc22343b4173c61e1bf7c362f8 | 3,852 | py | Python | app/controllers/labels_controller.py | diegofigs/ths-client | f15a5b94d7541faef63e56c632ec47c93b1e125c | [
"MIT"
] | null | null | null | app/controllers/labels_controller.py | diegofigs/ths-client | f15a5b94d7541faef63e56c632ec47c93b1e125c | [
"MIT"
] | 27 | 2017-05-16T12:07:57.000Z | 2017-07-11T16:35:15.000Z | app/controllers/labels_controller.py | diegofigs/ths-client | f15a5b94d7541faef63e56c632ec47c93b1e125c | [
"MIT"
] | 2 | 2017-05-19T06:51:14.000Z | 2020-02-23T02:01:45.000Z | from flask import request, Blueprint, Response
# Import the database object (db) from the main application module
# and the app object to initialize the flask_login manager
from app import app, db
# Import module models (i.e. User)
from app.models.tweets_model import Tweet
from app.models.labels_model import Label
imp... | 33.495652 | 111 | 0.676532 |
7055e9bdeeea00b88731d10f9f645b5f2d10ded1 | 3,640 | py | Python | stanCode_Projects/boggle_game_solver/boggle.py | yjchang-tw/sc-projects | 474f10ec740b8ce9dedcdd01f8c285f58d642ec8 | [
"MIT"
] | null | null | null | stanCode_Projects/boggle_game_solver/boggle.py | yjchang-tw/sc-projects | 474f10ec740b8ce9dedcdd01f8c285f58d642ec8 | [
"MIT"
] | null | null | null | stanCode_Projects/boggle_game_solver/boggle.py | yjchang-tw/sc-projects | 474f10ec740b8ce9dedcdd01f8c285f58d642ec8 | [
"MIT"
] | null | null | null | """
File: boggle.py
Name:
----------------------------------------
TODO:
"""
# This is the file name of the dictionary txt file
# we will be checking if a word exists by searching through it
FILE = 'dictionary.txt'
dict_list = []
final = []
def main():
"""
TODO:
"""
read_dictionary()
temp = ''
word_lst = []
for... | 21.162791 | 96 | 0.545055 |
7056d18658c61757b2d33f0ad939e77a9975faf5 | 207 | py | Python | tags/urls.py | jrdbnntt/FaceTags | 0d2e9a78521d90f19f3feb6440421a42f0327472 | [
"Apache-2.0"
] | null | null | null | tags/urls.py | jrdbnntt/FaceTags | 0d2e9a78521d90f19f3feb6440421a42f0327472 | [
"Apache-2.0"
] | null | null | null | tags/urls.py | jrdbnntt/FaceTags | 0d2e9a78521d90f19f3feb6440421a42f0327472 | [
"Apache-2.0"
] | null | null | null | from django.conf.urls import url
import views
urlpatterns = [
url(r'^user/', views.get_user, name='user'),
url(r'^all/', views.get_all, name='all'),
url(r'^fix/$', views.get_fix, name='fix'),
]
| 23 | 48 | 0.628019 |
7058837d948dfec694e445c3c022d55160de284b | 8,695 | py | Python | Day3/day3.py | Boreeas/advent-of-code | 6fad386af05ae3370cf71be174bbc9864d02f94e | [
"Unlicense"
] | null | null | null | Day3/day3.py | Boreeas/advent-of-code | 6fad386af05ae3370cf71be174bbc9864d02f94e | [
"Unlicense"
] | null | null | null | Day3/day3.py | Boreeas/advent-of-code | 6fad386af05ae3370cf71be174bbc9864d02f94e | [
"Unlicense"
] | null | null | null | INPUT = ">^^v^<>v<<<v<v^>>v^^^<v<>^^><^<<^vv>>>^<<^>><vv<<v^<^^><>>><>v<><>^^<^^^<><>>vv>vv>v<<^>v<>^>v<v^<>v>><>^v<<<<v^vv^><v>v^>>>vv>v^^^<^^<>>v<^^v<>^<vv^^<^><<>^>><^<>>><><vv><>v<<<><><>v><<>^^^^v>>^>^<v<<vv^^<v<^<^>^^v^^^^^v<><^v><<><^v^>v<<>^<>^^v^<>v<v^>v>^^<vv^v><^<>^v<><^><v^><><><<<<>^vv^>^vvvvv><><^<vv^v^v>... | 289.833333 | 8,202 | 0.27142 |
705bceb586f971716c3f9cf6650b1e8effd0a456 | 4,463 | py | Python | rpse_count.py | Alejowilches0112/rpse | 2714a3cafd03496bda22b1e417c034facad1db2a | [
"MIT"
] | null | null | null | rpse_count.py | Alejowilches0112/rpse | 2714a3cafd03496bda22b1e417c034facad1db2a | [
"MIT"
] | null | null | null | rpse_count.py | Alejowilches0112/rpse | 2714a3cafd03496bda22b1e417c034facad1db2a | [
"MIT"
] | null | null | null | # coding=UTF-8
import re
from collections import Counter
import unicodedata
import json as js
import ujson as json
from pyspark.sql.types import StructType, StructField, StringType, LongType
from sparkcc import CCSparkJob
from bs4 import BeautifulSoup
from bs4.dammit import EncodingDetector
from palabrasclave impor... | 39.848214 | 185 | 0.550527 |
705c42c02eee24ad63d65a1412a711fc1a3dbabb | 377 | py | Python | code/utils.py | Riccorl/ml-malware-classifier | f07d40f395bf11169d6eb57b9975760e625eb092 | [
"MIT"
] | 5 | 2018-11-26T13:34:20.000Z | 2019-10-22T03:25:24.000Z | code/utils.py | Riccorl/ml-malware-classificator | f07d40f395bf11169d6eb57b9975760e625eb092 | [
"MIT"
] | 2 | 2019-06-01T05:28:14.000Z | 2019-06-02T10:55:42.000Z | code/utils.py | Riccorl/ml-malware-classificator | f07d40f395bf11169d6eb57b9975760e625eb092 | [
"MIT"
] | 2 | 2020-09-20T21:22:59.000Z | 2021-05-26T02:57:41.000Z | def timer(start: float, end: float) -> str:
"""
Timer function. Compute execution time from strart to end (end - start).
:param start: start time
:param end: end time
:return: end - start
"""
hours, rem = divmod(end - start, 3600)
minutes, seconds = divmod(rem, 60)
return "{:0>2}:{:0... | 31.416667 | 77 | 0.607427 |
705c9f9377f58874df215bc59198a58737356ae2 | 224 | py | Python | sky/tools/webkitpy/tool/commands/__init__.py | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2019-05-24T01:25:34.000Z | 2020-04-06T05:07:01.000Z | sky/tools/webkitpy/tool/commands/__init__.py | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | null | null | null | sky/tools/webkitpy/tool/commands/__init__.py | domenic/mojo | 53dda76fed90a47c35ed6e06baf833a0d44495b8 | [
"BSD-3-Clause"
] | 5 | 2016-12-23T04:21:10.000Z | 2020-06-18T13:52:33.000Z | # Required for Python to search this directory for module files
from webkitpy.tool.commands.prettydiff import PrettyDiff
from webkitpy.tool.commands.queries import *
from webkitpy.tool.commands.rebaseline import Rebaseline
| 37.333333 | 63 | 0.84375 |
705ee0994dbc497d7e2fc942701380ee4d22e0a3 | 1,385 | py | Python | program_synthesis/scripts/evaluate_beams_result.py | sunblaze-ucb/SED | ab7772927aae81e4ea8bd92980d7b64281467bd8 | [
"MIT"
] | 6 | 2020-10-19T05:22:00.000Z | 2022-02-26T01:27:54.000Z | program_synthesis/scripts/evaluate_beams_result.py | sunblaze-ucb/SED | ab7772927aae81e4ea8bd92980d7b64281467bd8 | [
"MIT"
] | 1 | 2021-11-24T04:51:43.000Z | 2021-11-24T05:04:13.000Z | program_synthesis/scripts/evaluate_beams_result.py | sunblaze-ucb/SED | ab7772927aae81e4ea8bd92980d7b64281467bd8 | [
"MIT"
] | 2 | 2020-12-08T06:48:55.000Z | 2020-12-28T00:22:21.000Z |
import os
import argparse
import json
import tqdm
import numpy as np
from program_synthesis.datasets import dataset, executor
parser = argparse.ArgumentParser()
parser.add_argument("--data-pickle", default='data/karel/val.pkl')
parser.add_argument("--input-file", required=True, help="file containing list of beams,... | 27.7 | 125 | 0.705415 |
7060539b2e45ee14195f9314ca889a6ddf2387b8 | 695 | py | Python | malib/envs/gr_football/__init__.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | 5 | 2021-11-17T03:11:13.000Z | 2021-12-23T09:04:21.000Z | malib/envs/gr_football/__init__.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | null | null | null | malib/envs/gr_football/__init__.py | ReinholdM/play_football_with_human | 9ac2f0a8783aede56f4ac1f6074db7daa41b6b6c | [
"MIT"
] | null | null | null | from .grf_env import BaseGFootBall as base_env, ParameterSharingWrapper
from .encoders import encoder_basic, encoder_highpass, rewarder_basic
default_config = {
# env building config
"use_built_in_GK": True,
"scenario_config": {
"env_name": "5_vs_5",
"number_of_left_players_agent_controls":... | 28.958333 | 71 | 0.661871 |
7060e89f6aa6d393191d0bf176d41124f585d957 | 2,915 | py | Python | flowsa/NOAA_FisheryLandings.py | cchiq/flowsa | fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0 | [
"CC0-1.0"
] | null | null | null | flowsa/NOAA_FisheryLandings.py | cchiq/flowsa | fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0 | [
"CC0-1.0"
] | null | null | null | flowsa/NOAA_FisheryLandings.py | cchiq/flowsa | fc21e8da7c3ba66ca4ae4a0c72f568af7ef5e6c0 | [
"CC0-1.0"
] | null | null | null | # write_NOAA_fisheries_from_csv.py (scripts)
# !/usr/bin/env python3
# coding=utf-8
# ingwersen.wesley@epa.gov
"""
This script is run on it's own, not through flowbyactivity.py, as data pulled from csv in flowsa.
NOAA fisheries data obtained from: https://foss.nmfs.noaa.gov/apexfoss/f?p=215:200
... | 35.54878 | 97 | 0.678559 |
706338e7331b1562584249f362b42d600f79a095 | 1,215 | py | Python | tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | tools/perf/contrib/cluster_telemetry/rasterize_and_record_micro_ct.py | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | # Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from contrib.cluster_telemetry import ct_benchmarks_util
from contrib.cluster_telemetry import page_set
from contrib.cluster_telemetry import repaint_helpers... | 34.714286 | 73 | 0.8107 |
7065094604018c3e97e800985e5e8522f759b2fd | 4,076 | py | Python | invenio_vocabularies/datastreams/datastreams.py | mitsosf/invenio-vocabularies | 5247062cdd1a8e368b357648d53ee65ff37fc1c5 | [
"MIT"
] | null | null | null | invenio_vocabularies/datastreams/datastreams.py | mitsosf/invenio-vocabularies | 5247062cdd1a8e368b357648d53ee65ff37fc1c5 | [
"MIT"
] | null | null | null | invenio_vocabularies/datastreams/datastreams.py | mitsosf/invenio-vocabularies | 5247062cdd1a8e368b357648d53ee65ff37fc1c5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (C) 2021-2022 CERN.
#
# Invenio-Vocabularies is free software; you can redistribute it and/or
# modify it under the terms of the MIT License; see LICENSE file for more
# details.
"""Base data stream."""
from .errors import ReaderError, TransformerError, WriterError
| 35.443478 | 79 | 0.572866 |
70653e3c1ead8d6fa0116b40309c35503e75d31e | 4,896 | py | Python | api/models/datasets.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 5 | 2020-07-30T02:35:20.000Z | 2020-12-24T01:26:47.000Z | api/models/datasets.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 6 | 2021-03-04T10:30:11.000Z | 2022-03-16T16:47:47.000Z | api/models/datasets.py | weng-lab/SCREEN | e8e7203e2f9baa2de70e2f75bdad3ae24b568367 | [
"MIT"
] | 2 | 2020-12-08T10:05:02.000Z | 2022-03-10T09:41:19.000Z | #!/usr/bin/env python3
# SPDX-License-Identifier: MIT
# Copyright (c) 2016-2020 Michael Purcaro, Henry Pratt, Jill Moore, Zhiping Weng
import requests
import json
import os
import sys
if __name__ == '__main__':
main()
| 46.188679 | 394 | 0.415441 |
706720f9584247fe1387ca09ddee93c7af47920a | 2,024 | py | Python | tead/event.py | JeFaProductions/TextAdventure2 | 4ae690a1e41f30a564a77015f76346d55466c325 | [
"MIT"
] | 2 | 2016-08-28T21:32:39.000Z | 2016-09-02T05:56:53.000Z | tead/event.py | JeFaProductions/TextAdventure2 | 4ae690a1e41f30a564a77015f76346d55466c325 | [
"MIT"
] | 7 | 2016-09-01T22:03:13.000Z | 2019-06-13T21:38:05.000Z | tead/event.py | JeFaProductions/TextAdventure2 | 4ae690a1e41f30a564a77015f76346d55466c325 | [
"MIT"
] | null | null | null | import queue
ROOM_ENTERED = 'roomEntered'
| 30.666667 | 80 | 0.651186 |
706805448fbe690132ad8bfcf7bf991c1dfc79ff | 1,178 | py | Python | quantmotion/convert.py | jmcph4/quantmotion | 84ec703be327c9f06019677ba17687df1e71b624 | [
"MIT"
] | null | null | null | quantmotion/convert.py | jmcph4/quantmotion | 84ec703be327c9f06019677ba17687df1e71b624 | [
"MIT"
] | null | null | null | quantmotion/convert.py | jmcph4/quantmotion | 84ec703be327c9f06019677ba17687df1e71b624 | [
"MIT"
] | 2 | 2018-09-05T12:55:11.000Z | 2021-12-14T01:58:46.000Z | from datetime import datetime
import csv
from io import StringIO
from .ohlcvdata import OHLCVData
from .timeseries import TimeSeries
DEFAULT_CSV_DELIMITER = ","
DEFAULT_CSV_QUOTE = '"'
def convert_csv_to_time_series(csv_data, dt_fmt):
"""
convert_csv_to_time_series(csv_data) -- parse csv_data to TimeSeries t... | 26.177778 | 109 | 0.573005 |
7068c40ce02ee96b26e6f537f74279681fce4973 | 2,395 | py | Python | Tutorials/tao-python/tao2.py | fovtran/PyGame_samples | 5364181136a0b56eb6e57db5998f49913b596b61 | [
"BSD-2-Clause"
] | null | null | null | Tutorials/tao-python/tao2.py | fovtran/PyGame_samples | 5364181136a0b56eb6e57db5998f49913b596b61 | [
"BSD-2-Clause"
] | null | null | null | Tutorials/tao-python/tao2.py | fovtran/PyGame_samples | 5364181136a0b56eb6e57db5998f49913b596b61 | [
"BSD-2-Clause"
] | 1 | 2021-10-09T23:31:28.000Z | 2021-10-09T23:31:28.000Z | import sys, time
import clr
clr.AddReferenceToFile("./libs/Tao.OpenGl.dll")
clr.AddReferenceToFile("./libs/Tao.FreeGlut.dll")
import Tao.OpenGl.Gl as Gl
import Tao.OpenGl.Glu as Glu
import Tao.FreeGlut.Glut as Glut
if "__main__" == __name__:
main()
| 26.032609 | 78 | 0.739457 |
706b25980ee2d029ed154f69eaf32c982f84e6ce | 2,077 | py | Python | tool/rst2html_pygments.py | Tonhoko/cmemo | 75dff698b087a4986ea20d82f66387ce4e95c8b9 | [
"bzip2-1.0.6",
"MIT"
] | 138 | 2015-02-28T02:42:54.000Z | 2022-03-18T08:45:47.000Z | tool/rst2html_pygments.py | Tonhoko/cmemo | 75dff698b087a4986ea20d82f66387ce4e95c8b9 | [
"bzip2-1.0.6",
"MIT"
] | 46 | 2015-02-04T04:20:37.000Z | 2021-10-01T08:29:55.000Z | tool/rst2html_pygments.py | crftwr/lredit | 3d12912c34cf65d632fbded7dcebac1aa54e874c | [
"BSD-2-Clause",
"bzip2-1.0.6",
"MIT"
] | 18 | 2015-07-02T06:15:59.000Z | 2022-01-11T17:17:16.000Z | #!/usr/bin/python
# :Author: David Goodger, the Pygments team, Guenter Milde
# :Date: $Date: $
# :Copyright: This module has been placed in the public domain.
# This is a merge of the docutils_ `rst2html` front end with an extension
# suggestion taken from the pygments_ documentation.
"""
A front end to docutils, pr... | 34.04918 | 78 | 0.732788 |
706dc5229bf8cd54713279d8caa6a4266c5ca965 | 2,304 | py | Python | Validation/RecoTau/python/config_costom.py | jolim97/cmssw | 5bbca6aa49462c08ef9e5e61f9dc628d9f142466 | [
"Apache-2.0"
] | null | null | null | Validation/RecoTau/python/config_costom.py | jolim97/cmssw | 5bbca6aa49462c08ef9e5e61f9dc628d9f142466 | [
"Apache-2.0"
] | null | null | null | Validation/RecoTau/python/config_costom.py | jolim97/cmssw | 5bbca6aa49462c08ef9e5e61f9dc628d9f142466 | [
"Apache-2.0"
] | 2 | 2020-03-20T18:46:13.000Z | 2021-03-12T09:23:07.000Z | import os
import FWCore.ParameterSet.Config as cms
process = cms.Process('TauDQMOffline')
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 1000
# import of standard configurations
from Configuration.StandardSequences.GeometryRecoDB_cff import *
process.load(... | 35.446154 | 108 | 0.813802 |
706e04d6ec9e8da6c51a9f6c58f84eb9714001e8 | 691 | py | Python | 2016/python/day20.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | 2016/python/day20.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | 2016/python/day20.py | astonshane/AdventOfCode | 25c7380e73eede3f79287de6a9dedc8314ab7965 | [
"MIT"
] | null | null | null | MAX = 4294967295
blacklist = []
with open("inputs/day20.txt") as f:
for line in f:
line = line.strip().split('-')
blacklist.append([int(x) for x in line])
blacklist.sort()
part1()
part2()
| 16.452381 | 48 | 0.47178 |
706ea26767591f55086ae39d2e508fd9d39b0070 | 3,926 | py | Python | Optuna.py | Dekakhrone/EEGNet | f5b0092d6b29ea51465119733b333068d2c941a0 | [
"MIT"
] | 2 | 2020-05-21T13:06:00.000Z | 2021-04-11T02:58:42.000Z | Optuna.py | Dekakhrone/EEGNet | f5b0092d6b29ea51465119733b333068d2c941a0 | [
"MIT"
] | null | null | null | Optuna.py | Dekakhrone/EEGNet | f5b0092d6b29ea51465119733b333068d2c941a0 | [
"MIT"
] | null | null | null | import os
import numpy as np
import tensorflow as tf
import tensorflow_addons as tfa
from loguru import logger
import config
from Train import train
from Model import EEGNet
| 26.527027 | 99 | 0.698675 |
70701834bede3cd031dc5a720e18f2c95088c0d6 | 2,446 | py | Python | cmdpy.py | Sujaykumarh/CmdPy | b01eb2af2bf414d4370ef073a7bf39723fcaae34 | [
"Apache-2.0"
] | null | null | null | cmdpy.py | Sujaykumarh/CmdPy | b01eb2af2bf414d4370ef073a7bf39723fcaae34 | [
"Apache-2.0"
] | null | null | null | cmdpy.py | Sujaykumarh/CmdPy | b01eb2af2bf414d4370ef073a7bf39723fcaae34 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
import argparse, subprocess
_appName = "CmdPy" # App Name
_appVer = "0.0.1" # App Version
_input_file = '' # Global Variable for input file location
_output_file = '' # Global Variable for output file location
_command = '' # Global Variable for command
_overwrite_file = False # GLobal Variabl... | 40.098361 | 125 | 0.659444 |
70704ff821d11d24641fcbcadc2dfc59b6c5bdf1 | 720 | py | Python | pixstyle.py | dancer69/2048pyqt | 047ac639e13d1f68a0722ddfc71075f88deb13d2 | [
"MIT"
] | 2 | 2020-12-26T16:25:42.000Z | 2021-01-02T01:34:40.000Z | pixstyle.py | dancer69/2048pyqt | 047ac639e13d1f68a0722ddfc71075f88deb13d2 | [
"MIT"
] | null | null | null | pixstyle.py | dancer69/2048pyqt | 047ac639e13d1f68a0722ddfc71075f88deb13d2 | [
"MIT"
] | null | null | null | from PyQt5 import QtGui, QtWidgets, QtCore
| 37.894737 | 88 | 0.665278 |
7072f0682ec70bfbb13200a6029b730d82339cf2 | 1,741 | py | Python | qcodes/instrument_drivers/QuTech/D4.py | generalui/Qcodes-Package | f167b33f9ab562f68783e582561ba915a81efd2b | [
"MIT"
] | 5 | 2017-02-14T09:14:18.000Z | 2021-11-09T11:40:51.000Z | qcodes/instrument_drivers/QuTech/D4.py | generalui/Qcodes-Package | f167b33f9ab562f68783e582561ba915a81efd2b | [
"MIT"
] | 50 | 2017-04-12T04:03:15.000Z | 2022-03-09T00:41:43.000Z | qcodes/instrument_drivers/QuTech/D4.py | generalui/Qcodes-Package | f167b33f9ab562f68783e582561ba915a81efd2b | [
"MIT"
] | 6 | 2017-03-31T21:01:08.000Z | 2019-08-20T09:25:22.000Z | from qcodes import Instrument
try:
from spirack import D4_module
except ImportError:
raise ImportError(('The D4_module class could not be found. '
'Try installing it using pip install spirack'))
from functools import partial
| 30.017241 | 76 | 0.566916 |
70752c8aa24baba4eb2c056c245bcf6dc16e0095 | 6,184 | py | Python | test/test_centerline_operations.py | KVSlab/vascularManipulationToolkit | 981ab029be61f472bfff922eeb0c87400dbd92f6 | [
"Apache-2.0"
] | 19 | 2018-10-06T16:49:22.000Z | 2022-02-12T18:49:38.000Z | test/test_centerline_operations.py | KVSlab/vascularManipulationToolkit | 981ab029be61f472bfff922eeb0c87400dbd92f6 | [
"Apache-2.0"
] | 31 | 2018-10-10T09:09:44.000Z | 2022-01-05T14:40:06.000Z | test/test_centerline_operations.py | KVSlab/vascularManipulationToolkit | 981ab029be61f472bfff922eeb0c87400dbd92f6 | [
"Apache-2.0"
] | 12 | 2018-10-14T23:11:37.000Z | 2021-05-06T07:45:51.000Z | ## Copyright (c) Aslak W. Bergersen, Henrik A. Kjeldsberg. All rights reserved.
## See LICENSE file for details.
## This software is distributed WITHOUT ANY WARRANTY; without even
## the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
## PURPOSE. See the above copyright notices for ... | 34.165746 | 97 | 0.749515 |
7078232e22e2bb93b204e190c50f705e32457541 | 1,664 | py | Python | typistry/validators/yaml.py | kyprifog/typistry | aab285d909791106154874eb5331b65fc03849ae | [
"Apache-2.0"
] | null | null | null | typistry/validators/yaml.py | kyprifog/typistry | aab285d909791106154874eb5331b65fc03849ae | [
"Apache-2.0"
] | null | null | null | typistry/validators/yaml.py | kyprifog/typistry | aab285d909791106154874eb5331b65fc03849ae | [
"Apache-2.0"
] | null | null | null | from typing import Optional
import yaml
from returns.result import Result, Success, Failure
from typistry.protos.invalid_object import InvalidObject, IgnorableObject
from typistry.protos.typed_dict import TypedDict
| 48.941176 | 150 | 0.582933 |
7079d592d3692099180dbebc7dd4c79d080683a6 | 67,931 | py | Python | pysnmp-with-texts/CISCO-IMAGE-UPGRADE-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/CISCO-IMAGE-UPGRADE-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/CISCO-IMAGE-UPGRADE-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 CISCO-IMAGE-UPGRADE-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IMAGE-UPGRADE-MIB
# Produced by pysmi-0.3.4 at Wed May 1 12:01:48 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 ... | 222.72459 | 4,682 | 0.794453 |
707a3e62b09c918fbc0487c62e22db25da2fc184 | 1,737 | py | Python | data/county_level/raw/cmu_covidcast/load.py | csinva/covid-19-analysis | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | 2 | 2020-03-24T16:50:02.000Z | 2020-03-24T17:00:50.000Z | data/county_level/raw/cmu_covidcast/load.py | Yu-Group/covid-19-ventillator-demand-prediction | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | 1 | 2020-03-28T15:34:28.000Z | 2020-03-28T19:22:27.000Z | data/county_level/raw/cmu_covidcast/load.py | Yu-Group/covid-19-ventilator-demand-prediction | e7b1e82cb6b25d62a868ff61025d88e17452de28 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import pandas as pd
from os.path import join as oj
import os
import covidcast
from datetime import date
def load_cmu_covidcast(data_dir='.'):
''' Load in CMU COVIDcast (county-level) data set (pulled directly from source)
Parameters
----------
data_dir : str; path to the data d... | 30.473684 | 120 | 0.605066 |
707ec1c3259689996b0f1d5296d93991b84f7ca1 | 2,307 | py | Python | src/sites/nefilim.py | LAC-Japan/ransomwatch | 211b3bc8670d9fe38b915cac6befbe149cecae43 | [
"MIT"
] | 244 | 2021-04-14T18:20:55.000Z | 2022-03-31T12:35:47.000Z | src/sites/nefilim.py | LAC-Japan/ransomwatch | 211b3bc8670d9fe38b915cac6befbe149cecae43 | [
"MIT"
] | 62 | 2021-04-19T02:04:37.000Z | 2022-03-29T17:56:53.000Z | src/sites/nefilim.py | LAC-Japan/ransomwatch | 211b3bc8670d9fe38b915cac6befbe149cecae43 | [
"MIT"
] | 51 | 2021-04-20T04:54:45.000Z | 2022-03-30T05:03:38.000Z | from datetime import datetime
import logging
from bs4 import BeautifulSoup
from db.models import Victim
from net.proxy import Proxy
from .sitecrawler import SiteCrawler
import time | 35.492308 | 102 | 0.539228 |
707f2e96048822ebc61af551711d5b289dab5523 | 4,550 | py | Python | model.py | Riksi/nerf | 4cbc0a19f2abd80465b4fba9ba2d6dbfd4ab08ea | [
"MIT"
] | null | null | null | model.py | Riksi/nerf | 4cbc0a19f2abd80465b4fba9ba2d6dbfd4ab08ea | [
"MIT"
] | null | null | null | model.py | Riksi/nerf | 4cbc0a19f2abd80465b4fba9ba2d6dbfd4ab08ea | [
"MIT"
] | null | null | null | import tensorflow as tf
import math
from helpers import get_rays, ndc_rays
4
| 25.561798 | 96 | 0.526154 |
70835d3043da389a933c6f4fb7d3c80b37959050 | 3,056 | py | Python | diagnostics/diagnostic_analysis/scripts/export_csv.py | zhj-buffer/ROS2-driver-for-Realsense | 936cf27be4e7dc3d699ff99499e72ea8638cc622 | [
"Apache-2.0"
] | 2 | 2021-07-14T12:33:55.000Z | 2021-11-21T07:14:13.000Z | melodic/src/diagnostics/diagnostic_analysis/scripts/export_csv.py | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | 1 | 2021-07-08T10:26:06.000Z | 2021-07-08T10:31:11.000Z | melodic/src/diagnostics/diagnostic_analysis/scripts/export_csv.py | disorn-inc/ROS-melodic-python3-Opencv-4.1.1-CUDA | 3d265bb64712e3cd7dfa0ad56d78fcdebafdb4b0 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
#
# Software License Agreement (BSD License)
#
# Copyright (c) 2008, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code m... | 39.179487 | 96 | 0.708115 |
7083a86c612b80669b93d39d4a5588edc2004192 | 2,057 | py | Python | lessons/02_spacetime/working/space_time.py | PaulM5406/numerical-mooc | 8d58349b5bf6f543514d2c17311df2c1282ba297 | [
"CC-BY-3.0"
] | null | null | null | lessons/02_spacetime/working/space_time.py | PaulM5406/numerical-mooc | 8d58349b5bf6f543514d2c17311df2c1282ba297 | [
"CC-BY-3.0"
] | null | null | null | lessons/02_spacetime/working/space_time.py | PaulM5406/numerical-mooc | 8d58349b5bf6f543514d2c17311df2c1282ba297 | [
"CC-BY-3.0"
] | null | null | null | import numpy
import sympy
from matplotlib import pyplot
from sympy.utilities.lambdify import lambdify
# Set the font family and size to use for Matplotlib figures.
pyplot.rcParams['font.family'] = 'serif'
pyplot.rcParams['font.size'] = 16
sympy.init_printing()
x, nu, t = sympy.symbols('x nu t')
phi = (sympy.exp(-(x ... | 27.426667 | 70 | 0.566845 |
708483b4e64ccc48ece3d2a1ecd16bbdc9fd90b7 | 1,277 | py | Python | tests/test_emulator.py | maldieve/luma.emulator | f036d9a596ddba338fad2b6db2875d83a69f0b6b | [
"MIT"
] | null | null | null | tests/test_emulator.py | maldieve/luma.emulator | f036d9a596ddba338fad2b6db2875d83a69f0b6b | [
"MIT"
] | null | null | null | tests/test_emulator.py | maldieve/luma.emulator | f036d9a596ddba338fad2b6db2875d83a69f0b6b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2017-18 Richard Hull and contributors
# See LICENSE.rst for details.
"""
Tests for :py:class:`luma.emulator.device.emulator`.
"""
from luma.emulator.device import emulator
import pytest
import pygame
from PIL import Image, ImageDraw
from helpers import... | 22.803571 | 74 | 0.627251 |
7084db86248022329a93791876ae956973fe9671 | 842 | py | Python | src/schedulers/capacity_coefficient_scheduler.py | jp172/covid19-hospital-scheduler | 0931ac7b91f3e7fdbad741c5fc92577278dfc823 | [
"MIT"
] | 5 | 2020-03-22T22:46:15.000Z | 2020-03-25T14:16:49.000Z | src/schedulers/capacity_coefficient_scheduler.py | jp172/covid19-hospital-scheduler | 0931ac7b91f3e7fdbad741c5fc92577278dfc823 | [
"MIT"
] | null | null | null | src/schedulers/capacity_coefficient_scheduler.py | jp172/covid19-hospital-scheduler | 0931ac7b91f3e7fdbad741c5fc92577278dfc823 | [
"MIT"
] | 1 | 2020-03-22T20:44:01.000Z | 2020-03-22T20:44:01.000Z | from .utils import get_feasible_hospitals
from ..objects.proposal import RankedProposal
| 36.608696 | 101 | 0.709026 |
70855b3dc786603fc81ca670fb90be336edaa6a8 | 643 | py | Python | picha/forms.py | amon-wanyonyi/gallery-app | 89b1e9f68cdb112e732f902e4d2bd5d89f2eb5d7 | [
"MIT"
] | null | null | null | picha/forms.py | amon-wanyonyi/gallery-app | 89b1e9f68cdb112e732f902e4d2bd5d89f2eb5d7 | [
"MIT"
] | null | null | null | picha/forms.py | amon-wanyonyi/gallery-app | 89b1e9f68cdb112e732f902e4d2bd5d89f2eb5d7 | [
"MIT"
] | null | null | null | from django import forms
from django.forms import ModelForm
from .models import Category,Image, Location
CATEGORIES =(
("1", "Cars"),
("2", "Food"),
("3", "Travel"),
("4", "Animals"),
("5", "Nature"),
("6", "Sports"),
) | 26.791667 | 71 | 0.645412 |
708790091a12aee567660820ffa2657a5e6dd316 | 1,947 | py | Python | functional_tests/test_simple_list_creation.py | migglu/todo-lists | 1a9cbdd2b2ff5240ef40946f8e07d18537cd3a12 | [
"MIT"
] | null | null | null | functional_tests/test_simple_list_creation.py | migglu/todo-lists | 1a9cbdd2b2ff5240ef40946f8e07d18537cd3a12 | [
"MIT"
] | null | null | null | functional_tests/test_simple_list_creation.py | migglu/todo-lists | 1a9cbdd2b2ff5240ef40946f8e07d18537cd3a12 | [
"MIT"
] | null | null | null | from .base import FunctionalTest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
| 34.767857 | 70 | 0.680534 |
7089bbc4b72df271ca39b8a72e8fa87a746a5c9c | 106 | py | Python | ltr/actors/__init__.py | Jee-King/ICCV2021_Event_Frame_Tracking | ea86cdd331748864ffaba35f5efbb3f2a02cdb03 | [
"MIT"
] | 15 | 2021-08-31T13:32:12.000Z | 2022-03-24T01:55:41.000Z | ltr/actors/__init__.py | Jee-King/ICCV2021_Event_Frame_Tracking | ea86cdd331748864ffaba35f5efbb3f2a02cdb03 | [
"MIT"
] | 2 | 2022-01-13T12:53:29.000Z | 2022-03-31T08:14:42.000Z | ltr/actors/__init__.py | Jee-King/ICCV2021_Event_Frame_Tracking | ea86cdd331748864ffaba35f5efbb3f2a02cdb03 | [
"MIT"
] | 2 | 2021-11-08T16:27:16.000Z | 2021-12-08T14:24:27.000Z | from .base_actor import BaseActor
from .bbreg import AtomActor
from .tracking import DiMPActor, KYSActor | 35.333333 | 41 | 0.830189 |
708a5b2019c15309a0d19d434e0322b1d3a4cda7 | 325 | py | Python | unit_06/car7.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | null | null | null | unit_06/car7.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | null | null | null | unit_06/car7.py | janusnic/21v-pyqt | 8ee3828e1c6e6259367d6cedbd63b9057cf52c24 | [
"MIT"
] | 2 | 2019-11-14T15:04:22.000Z | 2021-10-31T07:34:46.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
import sqlite3 as lite
import sys
uId = 1
uPrice = 62300
con = lite.connect('test.db')
with con:
cur = con.cursor()
cur.execute("UPDATE Cars SET Price=? WHERE Id=?", (uPrice, uId))
con.commit()
print "Number of rows updated: %d" % cur.row... | 17.105263 | 76 | 0.593846 |
708bbd25e61d35b9491c1726c60c1df1e062f0af | 8,292 | py | Python | reservoir_nn/keras/rewiring_test.py | keras-team/reservoir_nn | fac109de75389f541b7741080a673301a67d6850 | [
"Apache-2.0"
] | 3 | 2021-12-17T16:50:06.000Z | 2021-12-18T16:21:52.000Z | reservoir_nn/keras/rewiring_test.py | keras-team/reservoir_nn | fac109de75389f541b7741080a673301a67d6850 | [
"Apache-2.0"
] | 1 | 2021-12-23T00:18:26.000Z | 2021-12-23T00:18:26.000Z | reservoir_nn/keras/rewiring_test.py | keras-team/reservoir_nn | fac109de75389f541b7741080a673301a67d6850 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 28.108475 | 80 | 0.651592 |
708d4783f37fe395cf1ee8655517528fd5c86267 | 29,897 | py | Python | src/lib/debuggers/trictdet.py | ivalab/GraspKpNet | d4b6186d74ac82a745d778892742d52a204bd1cf | [
"MIT"
] | 16 | 2021-05-04T23:08:47.000Z | 2022-01-19T08:33:14.000Z | src/lib/debuggers/trictdet.py | ivalab/GraspKpNet | d4b6186d74ac82a745d778892742d52a204bd1cf | [
"MIT"
] | 2 | 2021-06-22T22:54:44.000Z | 2021-10-04T19:23:35.000Z | src/lib/debuggers/trictdet.py | ivalab/GraspKpNet | d4b6186d74ac82a745d778892742d52a204bd1cf | [
"MIT"
] | 2 | 2021-07-10T12:51:29.000Z | 2022-02-17T06:45:54.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import cv2
import numpy as np
from progress.bar import Bar
import torch
import math
import copy
from .base_debugger import BaseDebugger
from models.utils import _tranpose_and_gather_feat, _gather_feat
from mo... | 46.351938 | 133 | 0.556979 |
708ddb951ae7cdc4d261f043827396558a075007 | 1,470 | py | Python | packages/pyright-internal/src/tests/samples/properties3.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 3,934 | 2019-03-22T09:26:41.000Z | 2019-05-06T21:03:08.000Z | packages/pyright-internal/src/tests/samples/properties3.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 107 | 2019-03-24T04:09:37.000Z | 2019-05-06T17:00:04.000Z | packages/pyright-internal/src/tests/samples/properties3.py | Jasha10/pyright | 0ce0cfa10fe7faa41071a2cc417bb449cf8276fe | [
"MIT"
] | 119 | 2019-03-23T10:48:04.000Z | 2019-05-06T08:57:56.000Z | # This sample tests the type checker's ability to handle
# custom subclasses of property.
from typing import Any, Callable
m1 = Custom1()
a1: int = m1.x
# This should generate an error because m.x is
# an int and cannot be assigned to str.
b1: str = m1.x
c1: float = m1.y
# This should generate an error becaus... | 15.638298 | 64 | 0.627211 |
70933348aac81016d0954e21ab757e240c327af2 | 9,962 | py | Python | azul/base_price_manager.py | brettelliot/azul | b63a7e55e14e0adcd5a4fab1ad82ec5ce5a7ae6e | [
"MIT"
] | 7 | 2019-02-23T04:08:04.000Z | 2021-11-12T11:16:45.000Z | azul/base_price_manager.py | brettelliot/azul | b63a7e55e14e0adcd5a4fab1ad82ec5ce5a7ae6e | [
"MIT"
] | 5 | 2021-03-18T21:50:51.000Z | 2022-03-11T23:37:34.000Z | azul/base_price_manager.py | brettelliot/azul | b63a7e55e14e0adcd5a4fab1ad82ec5ce5a7ae6e | [
"MIT"
] | 2 | 2019-05-21T00:02:21.000Z | 2020-04-02T17:33:05.000Z | import logbook
import pandas as pd
import zipline as zl
from datetime import datetime, timedelta
import pathlib
import azul
import numpy as np
from typing import List, Tuple
log = logbook.Logger('BasePriceManager')
| 40.169355 | 117 | 0.60259 |
709401ddc74af63e357581ecf22e614beabffcfd | 8,893 | py | Python | maxwellbloch/ob_base.py | amcdawes/maxwellbloch | 48b5301ccfa24704a4240125d377b1448d5591d9 | [
"MIT"
] | null | null | null | maxwellbloch/ob_base.py | amcdawes/maxwellbloch | 48b5301ccfa24704a4240125d377b1448d5591d9 | [
"MIT"
] | null | null | null | maxwellbloch/ob_base.py | amcdawes/maxwellbloch | 48b5301ccfa24704a4240125d377b1448d5591d9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
from maxwellbloch import sigma
import numpy as np
import qutip as qu
| 34.468992 | 79 | 0.574384 |
70969f7ab736ab78863c0e6bab4837e1e429bf7c | 5,035 | py | Python | cs3api4lab/tests/test_cs3_share_api.py | SoftwareMind-ScienceMesh/cs3api4lab | 2b77e9d13854e91afea6982a9ad3be24205f6b7e | [
"Apache-2.0"
] | 2 | 2020-08-10T13:12:57.000Z | 2020-11-26T15:44:48.000Z | cs3api4lab/tests/test_cs3_share_api.py | SoftwareMind-ScienceMesh/cs3api4lab | 2b77e9d13854e91afea6982a9ad3be24205f6b7e | [
"Apache-2.0"
] | 73 | 2020-06-15T22:58:47.000Z | 2022-03-31T08:24:36.000Z | cs3api4lab/tests/test_cs3_share_api.py | SoftwareMind-ScienceMesh/cs3api4lab | 2b77e9d13854e91afea6982a9ad3be24205f6b7e | [
"Apache-2.0"
] | 11 | 2020-06-22T10:10:36.000Z | 2022-02-03T14:05:16.000Z | from unittest import TestCase
from unittest import skip
from cs3api4lab.api.cs3_share_api import Cs3ShareApi
from cs3api4lab.api.cs3_file_api import Cs3FileApi
from cs3api4lab.config.config_manager import Cs3ConfigManager
from traitlets.config import LoggingConfigurable
| 35.964286 | 111 | 0.611122 |
7096da20769702a8b269c204ee171fd838d82322 | 5,227 | py | Python | Dcard.py | funkman56/Dcard | 27fb90f2b12c6ef4df8fc1a3a8e2247bbd36ea7d | [
"MIT"
] | null | null | null | Dcard.py | funkman56/Dcard | 27fb90f2b12c6ef4df8fc1a3a8e2247bbd36ea7d | [
"MIT"
] | null | null | null | Dcard.py | funkman56/Dcard | 27fb90f2b12c6ef4df8fc1a3a8e2247bbd36ea7d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 1 23:11:03 2019
@author: Relieak
"""
'''
DCARD
BeautifulSoup
'''
from bs4 import BeautifulSoup
import requests
import re
url = "https://www.dcard.tw/f/"
html = requests.get(url)
html.encoding = "utf-8"
#print(html.text)
sp = BeautifulSoup(html.text,"html.parser... | 34.163399 | 132 | 0.382437 |
709734f62c450dbb008318046826ef94d036bd91 | 2,261 | py | Python | python/statrollers/4d6droplowest.py | exposit/katamoiran | f5ad354c102e3e24a666777a1a934fe79b73aea8 | [
"BSD-Source-Code"
] | 6 | 2017-10-09T05:07:50.000Z | 2019-07-11T05:10:15.000Z | python/statrollers/4d6droplowest.py | exposit/katamoiran | f5ad354c102e3e24a666777a1a934fe79b73aea8 | [
"BSD-Source-Code"
] | 1 | 2018-09-18T13:40:55.000Z | 2018-11-22T16:41:04.000Z | python/statrollers/4d6droplowest.py | exposit/katamoiran | f5ad354c102e3e24a666777a1a934fe79b73aea8 | [
"BSD-Source-Code"
] | 2 | 2017-11-05T19:50:28.000Z | 2019-03-10T08:35:50.000Z | import random
import sys
print("")
print("4d6, drop lowest:")
print("")
try:
global target_met, threshold
target = 0
count = 1
if "-" in sys.argv[1]:
# count
tag, threshold = sys.argv[1].split("-")
for i in range(int(threshold)):
print("")
... | 28.987179 | 130 | 0.481645 |
7098ca24735c5f1cd2d9922fd491568187701a0d | 864 | py | Python | mct_xml_tools/src/mct_xml_tools/machine.py | iorodeo/mct | fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11 | [
"Apache-2.0"
] | null | null | null | mct_xml_tools/src/mct_xml_tools/machine.py | iorodeo/mct | fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11 | [
"Apache-2.0"
] | null | null | null | mct_xml_tools/src/mct_xml_tools/machine.py | iorodeo/mct | fa8b85f36533c9b1486ca4f6b0c40c3daa6f4e11 | [
"Apache-2.0"
] | null | null | null | from __future__ import print_function
import os
import os.path
from xml.etree import ElementTree
def read_machine_file():
"""
Reads the machine definition xml ROS launch file MCT_CONFIG/machine/mct.machine
Returns a list containg a dictionary of attributes for each machine in the
machine file.
... | 26.181818 | 84 | 0.658565 |
7099681c301a1f06df23784f85d73222f6e9466c | 1,706 | py | Python | flask/sqlitDb.py | ddgvv/SMDA | 37abf896e89adb01833133d6345f6bbb239838ac | [
"MIT"
] | null | null | null | flask/sqlitDb.py | ddgvv/SMDA | 37abf896e89adb01833133d6345f6bbb239838ac | [
"MIT"
] | null | null | null | flask/sqlitDb.py | ddgvv/SMDA | 37abf896e89adb01833133d6345f6bbb239838ac | [
"MIT"
] | null | null | null | import json
import sqlite3
#-----------------------TABLE CREATION -------------------------
#runQuery(0,"create")
#runQuery(1,"create")
#runQuery(2,"create")
#----------------------TABLE INSERT------------------------------
#runQueryWithArgs(0,"insert",(1,'Expence'))
#runQueryWithArgs(0,"insert",(2,'Income'))
#runQ... | 26.65625 | 66 | 0.603751 |
709bd29e4f267e71e1b865ccc316469cb3336383 | 4,900 | py | Python | checkFailedImages.py | NGTS/frame-movies | fe666a73fef56cb94f6b3b65ebc40300d40bfcac | [
"MIT"
] | null | null | null | checkFailedImages.py | NGTS/frame-movies | fe666a73fef56cb94f6b3b65ebc40300d40bfcac | [
"MIT"
] | 11 | 2015-03-18T14:49:17.000Z | 2015-04-22T13:53:07.000Z | checkFailedImages.py | NGTS/frame-movies | fe666a73fef56cb94f6b3b65ebc40300d40bfcac | [
"MIT"
] | 1 | 2015-07-01T09:29:26.000Z | 2015-07-01T09:29:26.000Z | #!/usr/local/python/bin/python
# script to check the previously unsolved files
#
# to do:
# Sanity check all the image_ids in the table actually have a png
# quick check shows 1349 in DB and 1353 pngs, 4 out, not bad
#
from create_movie import create_movie
import os,sys,getpass,time
import glob as g
from astropy.io... | 33.333333 | 212 | 0.611837 |
709cbf91c09450e28d0be350571d5ee29d4cdeae | 1,750 | py | Python | merger/download-all-docs.py | andyil/baguette | ba20905172f3504bc55c4f3213b18995ad39e491 | [
"MIT"
] | null | null | null | merger/download-all-docs.py | andyil/baguette | ba20905172f3504bc55c4f3213b18995ad39e491 | [
"MIT"
] | null | null | null | merger/download-all-docs.py | andyil/baguette | ba20905172f3504bc55c4f3213b18995ad39e491 | [
"MIT"
] | null | null | null |
from csv import DictReader
from os.path import dirname, join, exists
from os import makedirs, stat
from concurrent.futures import ThreadPoolExecutor, as_completed
import urllib.request
from time import time
f = r'C:\Users\andy\supreme-court-scrap\answers-13.csv'
f = open(f, 'r', encoding='utf-8')
f = DictReader(f)
fu... | 28.225806 | 76 | 0.657714 |
709e017745cfe13df0c2b279b159620f932d6cca | 460 | py | Python | get_pop/modules/helper/move.py | SimmonsRitchie/get-pop | e54e966e1d2841eea09ba297ae421bb37b1530e3 | [
"MIT"
] | 1 | 2020-05-07T14:56:25.000Z | 2020-05-07T14:56:25.000Z | get_pop/modules/helper/move.py | SimmonsRitchie/get-pop | e54e966e1d2841eea09ba297ae421bb37b1530e3 | [
"MIT"
] | 3 | 2020-07-14T01:58:59.000Z | 2020-07-15T02:43:30.000Z | get_pop/modules/helper/move.py | SimmonsRitchie/us_pop_extracter | e54e966e1d2841eea09ba297ae421bb37b1530e3 | [
"MIT"
] | null | null | null | from pathlib import Path
from shutil import copyfile
import logging
| 30.666667 | 65 | 0.671739 |
709fe27d50ba719fda046fc7aeeace91beb76030 | 1,546 | py | Python | emotion.py | im2856813/Sentistock-core | ec2f8b39c01e2e3e21665ef9a1c5d3d19cf0442e | [
"Apache-2.0"
] | 2 | 2016-10-12T09:26:40.000Z | 2020-04-21T02:58:29.000Z | emotion.py | im2856813/Sentistock-core | ec2f8b39c01e2e3e21665ef9a1c5d3d19cf0442e | [
"Apache-2.0"
] | null | null | null | emotion.py | im2856813/Sentistock-core | ec2f8b39c01e2e3e21665ef9a1c5d3d19cf0442e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#-*-coding=utf-8-*-
import json
import jieba
#test
#emo = emo("emodata")
#print emo.dict
#txt = "2011"
#test_txts = jieba.cut(txt)
#print emo.getEmo(test_txts,"")
| 29.730769 | 98 | 0.516171 |
70a1684fb88e63e0907be1bba1399d11eb060a74 | 150 | py | Python | Project_Euler/01_mults_3_or_5/find_sum.py | perlygatekeeper/glowing-robot | 7ef5eb089f552a1de309092606c95e805e6723a0 | [
"Artistic-2.0"
] | 2 | 2015-06-05T15:40:06.000Z | 2020-03-19T17:08:37.000Z | Project_Euler/01_mults_3_or_5/find_sum.py | perlygatekeeper/glowing-robot | 7ef5eb089f552a1de309092606c95e805e6723a0 | [
"Artistic-2.0"
] | null | null | null | Project_Euler/01_mults_3_or_5/find_sum.py | perlygatekeeper/glowing-robot | 7ef5eb089f552a1de309092606c95e805e6723a0 | [
"Artistic-2.0"
] | null | null | null | #!/opt/local/bin/python
sum_3_5 = 0
for i in range(1,1000):
if i % 3 == 0 or i % 5 == 0:
print(i)
sum_3_5 += i
print(sum_3_5)
| 12.5 | 32 | 0.513333 |
70a458ef5d514e80b836d6a4d4d0e88079fee18d | 5,569 | py | Python | project/agents/agent.py | msaska9/gym-multigrid | 363fd2788d2f786e80ea4f131e74de2a7c3f7dfe | [
"Apache-2.0"
] | null | null | null | project/agents/agent.py | msaska9/gym-multigrid | 363fd2788d2f786e80ea4f131e74de2a7c3f7dfe | [
"Apache-2.0"
] | null | null | null | project/agents/agent.py | msaska9/gym-multigrid | 363fd2788d2f786e80ea4f131e74de2a7c3f7dfe | [
"Apache-2.0"
] | null | null | null | import random
import numpy as np
from gym_multigrid.multigrid import World
from gym_multigrid.multigrid import DIR_TO_VEC
from gym_multigrid.multigrid import Actions
"""
actions:
still = 0
left = 1
right = 2
forward = 3
pickup = 4
"""
def sign(x):
if x > 0:
return 1
elif x < 0:
return -1
... | 32.758824 | 118 | 0.639612 |
70a519e84ace4ea743e801d80cfc9c16a3a76337 | 529 | py | Python | mnu_gsheets/utils/user_agent.py | seanbreckenridge/mnu_gsheets | 4b531497003a790a2fd0bce2e892bfcb58da9e76 | [
"Apache-2.0"
] | 1 | 2021-04-24T22:45:17.000Z | 2021-04-24T22:45:17.000Z | mnu_gsheets/utils/user_agent.py | seanbreckenridge/mnu_gsheets | 4b531497003a790a2fd0bce2e892bfcb58da9e76 | [
"Apache-2.0"
] | null | null | null | mnu_gsheets/utils/user_agent.py | seanbreckenridge/mnu_gsheets | 4b531497003a790a2fd0bce2e892bfcb58da9e76 | [
"Apache-2.0"
] | null | null | null | from random import choice
user_agents = [
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108",
"Mozilla/5.0 (Windows NT 5.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90",
"Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537... | 40.692308 | 108 | 0.693762 |
70a686cc59a45782a2cc398e0fbf3901bf5aebd6 | 315 | py | Python | db_upgrade.py | dnaroid/laser-server | ad250b54847c3807127ea33493f66bd5b15b1034 | [
"BSD-3-Clause"
] | null | null | null | db_upgrade.py | dnaroid/laser-server | ad250b54847c3807127ea33493f66bd5b15b1034 | [
"BSD-3-Clause"
] | null | null | null | db_upgrade.py | dnaroid/laser-server | ad250b54847c3807127ea33493f66bd5b15b1034 | [
"BSD-3-Clause"
] | null | null | null | #!env/bin/python
from migrate.versioning import api
from config import SQLALCHEMY_DATABASE_URI
from config import SQLALCHEMY_MIGRATE_REPO
api.upgrade(SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)
print('Current database version: ' + str(api.db_version(
SQLALCHEMY_DATABASE_URI, SQLALCHEMY_MIGRATE_REPO)))
| 31.5 | 61 | 0.84127 |
70a749ed573d4ceca735541957ce29f530b4761a | 8,719 | py | Python | data_process.py | bisno/MER | 360612439bf1fd1dafc9f70c74d6f90f47070877 | [
"MIT"
] | 1 | 2020-09-08T09:19:41.000Z | 2020-09-08T09:19:41.000Z | data_process.py | bisno/MER | 360612439bf1fd1dafc9f70c74d6f90f47070877 | [
"MIT"
] | null | null | null | data_process.py | bisno/MER | 360612439bf1fd1dafc9f70c74d6f90f47070877 | [
"MIT"
] | 1 | 2020-09-08T09:19:45.000Z | 2020-09-08T09:19:45.000Z | # -*- coding: UTF-8 -*-
import glob
import numpy as np
import pandas as pd
from PIL import Image
import random
# h,w = 60,50
h, w = (60, 50)
size = h * w
# Receding_Hairline Wearing_Necktie Rosy_Cheeks Eyeglasses Goatee Chubby
# Sideburns Blurry Wearing_Hat Double_Chin Pale_Skin Gray_Hair Mustache Bald
... | 31.139286 | 90 | 0.626563 |
70a9bb288ab4678c73dcaaed29cf5fcda9867f4f | 1,115 | py | Python | playlist_creation/migrations/0002_create_privacy_policy_flatpage.py | theLionWar/time_capsule | 64a5c8f430e6815dae8ee2f93f55d9b406911377 | [
"MIT"
] | null | null | null | playlist_creation/migrations/0002_create_privacy_policy_flatpage.py | theLionWar/time_capsule | 64a5c8f430e6815dae8ee2f93f55d9b406911377 | [
"MIT"
] | null | null | null | playlist_creation/migrations/0002_create_privacy_policy_flatpage.py | theLionWar/time_capsule | 64a5c8f430e6815dae8ee2f93f55d9b406911377 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-08-03 15:02
from django.contrib.sites.management import create_default_site
from django.db import migrations
| 30.135135 | 76 | 0.658296 |
70a9de2f7c5d9fdcc7918081a9d6e6292081e24c | 617 | py | Python | Inheritence.py | neocodejack/python-practice | 59878792db5b5edb3e7e0300496e5fcd08fb4401 | [
"Apache-2.0"
] | null | null | null | Inheritence.py | neocodejack/python-practice | 59878792db5b5edb3e7e0300496e5fcd08fb4401 | [
"Apache-2.0"
] | null | null | null | Inheritence.py | neocodejack/python-practice | 59878792db5b5edb3e7e0300496e5fcd08fb4401 | [
"Apache-2.0"
] | null | null | null |
d = Dog("Roger")
c = Cat("Fluffy")
d.fetch("paper")
d.eat("dog food")
print("--------")
c.eat("cat food")
c.swatstring()
# The below methods would fail, since the instances doesn't have
# have access to the other class.
c.fetch("frizbee")
d.swatstring()
| 20.566667 | 64 | 0.614263 |
70aa44c4f89295464ac761beec4c73fc72588ede | 796 | py | Python | rockiot/app/migrations/0039_auto_20211015_1658.py | isocserbia/rockiot | fc0c52cca4ca862ba570d6b2c64b8d30f8989f05 | [
"Apache-2.0"
] | 2 | 2022-01-23T11:03:37.000Z | 2022-02-26T10:54:10.000Z | rockiot/app/migrations/0039_auto_20211015_1658.py | isocserbia/rockiot | fc0c52cca4ca862ba570d6b2c64b8d30f8989f05 | [
"Apache-2.0"
] | null | null | null | rockiot/app/migrations/0039_auto_20211015_1658.py | isocserbia/rockiot | fc0c52cca4ca862ba570d6b2c64b8d30f8989f05 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.8 on 2021-10-15 16:58
from django.db import migrations
| 25.677419 | 49 | 0.579146 |
70aa7222dc1e2e9cae7903ea030f5828a1ff715a | 3,607 | py | Python | profiles_api/views.py | singhmonika10/profiles-rest-api | 69b403aaa24ca16a265db06cdbc99c970eb146c1 | [
"MIT"
] | null | null | null | profiles_api/views.py | singhmonika10/profiles-rest-api | 69b403aaa24ca16a265db06cdbc99c970eb146c1 | [
"MIT"
] | 6 | 2020-06-06T01:42:09.000Z | 2021-06-10T20:01:52.000Z | profiles_api/views.py | singhmonika10/profiles-rest-api | 69b403aaa24ca16a265db06cdbc99c970eb146c1 | [
"MIT"
] | null | null | null | from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_framework import viewsets
from rest_framework.authentication import TokenAuthentication
from rest_framework import filters
from profiles_api import serializers
from profiles_api import mo... | 30.567797 | 76 | 0.640144 |
5606197edd767533789e31c54935c3de42f2b6bf | 22 | py | Python | canvas_course_site_wizard/tests/test_view_canvas_course_site_create.py | Harvard-University-iCommons/django-canvas-course-site-wizard | 0210849e959407e5a850188f50756eb69b9a4dc2 | [
"MIT"
] | null | null | null | canvas_course_site_wizard/tests/test_view_canvas_course_site_create.py | Harvard-University-iCommons/django-canvas-course-site-wizard | 0210849e959407e5a850188f50756eb69b9a4dc2 | [
"MIT"
] | 5 | 2018-05-10T19:49:43.000Z | 2021-01-29T19:39:34.000Z | canvas_course_site_wizard/tests/test_view_canvas_course_site_create.py | Harvard-University-iCommons/django-canvas-course-site-wizard | 0210849e959407e5a850188f50756eb69b9a4dc2 | [
"MIT"
] | null | null | null | __author__ = 'ely817'
| 11 | 21 | 0.727273 |
5606244a09399ed959432761133bc9ec94e45b68 | 5,831 | py | Python | mprocessing/client.py | ftranschel/evoMPS | b9e8d13066d12ee779376fdfd24ac2b34ac73ba2 | [
"BSD-3-Clause"
] | 1 | 2017-02-26T12:36:40.000Z | 2017-02-26T12:36:40.000Z | mprocessing/client.py | ftranschel/evoMPS | b9e8d13066d12ee779376fdfd24ac2b34ac73ba2 | [
"BSD-3-Clause"
] | null | null | null | mprocessing/client.py | ftranschel/evoMPS | b9e8d13066d12ee779376fdfd24ac2b34ac73ba2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This module is part of
an extension of evoMPS by adding
dissipative dynmaics based on
Monte-Carlo methods.
This part is the client file
for the distributed computing
framework that utilizes parallel
processing to speed up dissipative
dynamics.
@author: F.W.G. Transch... | 28.724138 | 79 | 0.629395 |
5607958463ad0c3e6231b618c4f490e9d87e0987 | 6,196 | py | Python | lib/modeling/pcb.py | hanleiyu/prcv | df5ad9469b38b8176121357fe5de2b1cf30aae1c | [
"MIT"
] | 1 | 2021-03-28T15:03:58.000Z | 2021-03-28T15:03:58.000Z | lib/modeling/pcb.py | hanleiyu/prcv | df5ad9469b38b8176121357fe5de2b1cf30aae1c | [
"MIT"
] | null | null | null | lib/modeling/pcb.py | hanleiyu/prcv | df5ad9469b38b8176121357fe5de2b1cf30aae1c | [
"MIT"
] | null | null | null | from __future__ import division, absolute_import
import torch.utils.model_zoo as model_zoo
import torch
from torch import nn
from torch.nn import functional as F
from .backbones import build_backbone
from lib.layers.pooling import GeM
from lib.layers.metric_learning import Arcface, Cosface, AMSoftmax, CircleLoss
| 38.725 | 137 | 0.601033 |
560871495a84c94431f674d70f54871a629205e0 | 215 | py | Python | Practice/Beginner/Number Mirror/PYTHON/number-mirror.py | avantikat/codechef-1 | 11e678a05ad339e799bb876606297dff979e9e03 | [
"MIT"
] | 2 | 2021-01-19T05:48:45.000Z | 2021-01-20T11:58:39.000Z | Practice/Beginner/Number Mirror/PYTHON/number-mirror.py | avantikat/codechef-1 | 11e678a05ad339e799bb876606297dff979e9e03 | [
"MIT"
] | null | null | null | Practice/Beginner/Number Mirror/PYTHON/number-mirror.py | avantikat/codechef-1 | 11e678a05ad339e799bb876606297dff979e9e03 | [
"MIT"
] | 3 | 2021-01-21T06:58:27.000Z | 2021-02-09T13:20:29.000Z | """
AUTHOR - Atharva Deshpande
GITHUB - https://github.com/AtharvaD11
QUESTION LINK - https://www.codechef.com/problems/START01
"""
**********************************
n = int(input())
print(n)
| 17.916667 | 63 | 0.525581 |
5609f8100c52829a5d28121134930a07e121bd3c | 4,951 | py | Python | .modules/.recon-ng/modules/reporting/pushpin.py | termux-one/EasY_HaCk | 0a8d09ca4b126b027b6842e02fa0c29d8250e090 | [
"Apache-2.0"
] | 1,103 | 2018-04-20T14:08:11.000Z | 2022-03-29T06:22:43.000Z | .modules/.recon-ng/modules/reporting/pushpin.py | sshourya948/EasY_HaCk | 0a8d09ca4b126b027b6842e02fa0c29d8250e090 | [
"Apache-2.0"
] | 29 | 2019-04-03T14:52:38.000Z | 2022-03-24T12:33:05.000Z | .modules/.recon-ng/modules/reporting/pushpin.py | sshourya948/EasY_HaCk | 0a8d09ca4b126b027b6842e02fa0c29d8250e090 | [
"Apache-2.0"
] | 161 | 2018-04-20T15:57:12.000Z | 2022-03-15T19:16:16.000Z | from recon.core.module import BaseModule
import codecs
import os
import re
import time
import webbrowser
| 59.650602 | 431 | 0.610786 |
560a6a7895c731312b6fb31851e8ef4a8a8b6151 | 1,669 | py | Python | conv-ae/preprocess.py | QuantumFractal/hackisu-2017-nucleus | f0f439bb6c2e2ca61a353652d59798ace93ca699 | [
"MIT"
] | 2 | 2017-02-27T17:15:59.000Z | 2017-03-10T23:52:39.000Z | conv-ae/preprocess.py | QuantumFractal/hackisu-2017-nucleus | f0f439bb6c2e2ca61a353652d59798ace93ca699 | [
"MIT"
] | null | null | null | conv-ae/preprocess.py | QuantumFractal/hackisu-2017-nucleus | f0f439bb6c2e2ca61a353652d59798ace93ca699 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
import numpy as np
from patcher import Patcher
import os
import random
from sklearn.feature_extraction import image
import h5py
import gc
import sys
#dataset = sys.argv[1]
savename = sys.argv[1]
#data_path = 'C:\\nucleus\\' + dataset
data_path = 'C:\\Users\\micha\\Pict... | 24.544118 | 106 | 0.626723 |
560a9dc22e71652afba1f2f2605eeeb97cccd37c | 2,268 | py | Python | auctions/models.py | adamiantorno/CS50W-commerce | 017d690b8b344158f0bdcff165f60702f173618b | [
"MIT"
] | null | null | null | auctions/models.py | adamiantorno/CS50W-commerce | 017d690b8b344158f0bdcff165f60702f173618b | [
"MIT"
] | null | null | null | auctions/models.py | adamiantorno/CS50W-commerce | 017d690b8b344158f0bdcff165f60702f173618b | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.urls import reverse
from django.db import models
from datetime import date
| 32.4 | 104 | 0.689594 |
560b8a70beaf44b2e30a19c485ec43fd07ab62c2 | 2,603 | py | Python | nereid/nereid/core/utils.py | phobson/nereid | d46a7fbda9682a244955ae04ebcef1472ad328b1 | [
"BSD-3-Clause"
] | null | null | null | nereid/nereid/core/utils.py | phobson/nereid | d46a7fbda9682a244955ae04ebcef1472ad328b1 | [
"BSD-3-Clause"
] | 3 | 2020-01-11T21:51:16.000Z | 2020-02-18T16:11:34.000Z | nereid/nereid/core/utils.py | phobson/nereid | d46a7fbda9682a244955ae04ebcef1472ad328b1 | [
"BSD-3-Clause"
] | 1 | 2019-04-23T18:25:25.000Z | 2019-04-23T18:25:25.000Z | from typing import Optional, Dict, Any, Tuple
from copy import deepcopy
from pathlib import Path
from nereid.core.io import load_cfg
from nereid.core.config import APP_CONTEXT
| 29.247191 | 106 | 0.597388 |
560d7068c1b3a72c12ad77cd1fb56c207a8fe530 | 4,753 | py | Python | adversarial-training/codemixer.py | LaudateCorpus1/adversarial-polyglots | 661ca37cd2584675f686a229a27471a1abb63f00 | [
"Apache-2.0"
] | 10 | 2021-05-27T08:28:29.000Z | 2022-02-17T09:05:15.000Z | adversarial-training/codemixer.py | salesforce/adversarial-polyglots | 9787928bd56e4e0e14dd1a17f1107a1bee1c59bb | [
"Apache-2.0"
] | 1 | 2021-08-21T03:54:50.000Z | 2021-08-21T03:54:50.000Z | adversarial-training/codemixer.py | LaudateCorpus1/adversarial-polyglots | 661ca37cd2584675f686a229a27471a1abb63f00 | [
"Apache-2.0"
] | 5 | 2021-08-21T03:54:39.000Z | 2022-02-22T12:17:15.000Z | # -*- coding: utf-8 -*-
import random, json, string, warnings
from typing import Union, List, Set, Dict
from simalign import SentenceAligner
from nltk.translate.phrase_based import phrase_extraction
| 44.009259 | 134 | 0.630128 |
560f1da729f378a242bc88563d83e2f7fd5ca92f | 120 | py | Python | pycodes/__init__.py | blazaid/pycodes | e263fad64ad7d056feb7ac2056e1d27aec52a6d9 | [
"Apache-2.0"
] | null | null | null | pycodes/__init__.py | blazaid/pycodes | e263fad64ad7d056feb7ac2056e1d27aec52a6d9 | [
"Apache-2.0"
] | null | null | null | pycodes/__init__.py | blazaid/pycodes | e263fad64ad7d056feb7ac2056e1d27aec52a6d9 | [
"Apache-2.0"
] | null | null | null | __version__ = '0.0.1'
__url__ = 'http://github.com/blazaid/pycodes/'
__author__ = 'blazaid' | 20 | 46 | 0.691667 |