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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7844659fc06a90faf4042ca5bcbd0e7adbfb0d3c | 4,939 | py | Python | pytorch/main.py | cch1999/DMCNN | 1f360872f658ab22435ec6199636cb249753c998 | [
"MIT"
] | null | null | null | pytorch/main.py | cch1999/DMCNN | 1f360872f658ab22435ec6199636cb249753c998 | [
"MIT"
] | null | null | null | pytorch/main.py | cch1999/DMCNN | 1f360872f658ab22435ec6199636cb249753c998 | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
import torchvision.transforms as transforms
import pandas as pd
import numpy as np
import os
# Device configuration
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
print(device)
# Hyper parameters
num_epochs ... | 31.864516 | 128 | 0.606196 |
7846658dca6c315617bc680943258c91e3eb688b | 3,987 | py | Python | frameworks/helloworld/tests/test_soak.py | jorgelopez1/hdfs | 892589180438b90486ec7530d2a63c218b20e79f | [
"Apache-2.0"
] | null | null | null | frameworks/helloworld/tests/test_soak.py | jorgelopez1/hdfs | 892589180438b90486ec7530d2a63c218b20e79f | [
"Apache-2.0"
] | null | null | null | frameworks/helloworld/tests/test_soak.py | jorgelopez1/hdfs | 892589180438b90486ec7530d2a63c218b20e79f | [
"Apache-2.0"
] | null | null | null | import logging
import os
import pytest
import shakedown # required by sdk_utils version checks
import sdk_cmd
import sdk_plan
import sdk_tasks
import sdk_upgrade
import sdk_utils
from tests import config
log = logging.getLogger(__name__)
FRAMEWORK_NAME = "secrets/hello-world"
NUM_HELLO = 2
NUM_WORLD = 3
# check en... | 36.577982 | 108 | 0.753449 |
7846af745a3479a86fe8eba7b12a1d06be8e19d8 | 2,286 | py | Python | PhotoOrg.py | rdgao/PhotoOrg | f45218d17702f2ff93e43c857e27913a174fb8cf | [
"MIT"
] | 2 | 2017-06-02T02:00:47.000Z | 2020-09-05T19:04:10.000Z | PhotoOrg.py | rdgao/PhotoOrg | f45218d17702f2ff93e43c857e27913a174fb8cf | [
"MIT"
] | null | null | null | PhotoOrg.py | rdgao/PhotoOrg | f45218d17702f2ff93e43c857e27913a174fb8cf | [
"MIT"
] | null | null | null | #Richard Gao, 2014
#Library of code for image file manipulation
#and statistic gathering
from os import listdir, path, rename
from datetime import datetime
import PhotoOrg
| 26.894118 | 86 | 0.695976 |
7846bd187a642e3509aeeb9b0be6e8ea1276892b | 2,821 | py | Python | torchlib/utils/random/sampler.py | vermouth1992/torchlib | 63b2bedb40f670b2d9fbfc0daeab4a8d44623095 | [
"MIT"
] | 3 | 2019-07-23T21:32:36.000Z | 2022-02-04T23:13:30.000Z | torchlib/utils/random/sampler.py | Sayani21/mbrl-hvac | eb0e2213cc2734b1a8f83e485180cc622ffced5d | [
"MIT"
] | 1 | 2022-03-12T00:52:44.000Z | 2022-03-12T00:52:44.000Z | torchlib/utils/random/sampler.py | Sayani21/mbrl-hvac | eb0e2213cc2734b1a8f83e485180cc622ffced5d | [
"MIT"
] | 1 | 2019-07-23T21:32:23.000Z | 2019-07-23T21:32:23.000Z | """
A sampler defines a method to sample random data from certain distribution.
"""
from typing import List
import numpy as np
| 32.802326 | 136 | 0.629918 |
784b0ddeaab5704ffd608d17c7a9bc771420d5f0 | 1,634 | py | Python | src/euler_python_package/euler_python/easiest/p206.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/easiest/p206.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | src/euler_python_package/euler_python/easiest/p206.py | wilsonify/euler | 5214b776175e6d76a7c6d8915d0e062d189d9b79 | [
"MIT"
] | null | null | null | # The major optimization is to do arithmetic in base 10 in the main loop, avoiding division and modulo
def problem206():
"""
Find the unique positive integer whose square has the form
1_2_3_4_5_6_7_8_9_0,
where each _ is a single digit.
"""
# Initialize
n = 1000000000 # The pattern is... | 24.029412 | 102 | 0.531212 |
784b20e90521a5d67d110f0d27fd3b814df5fe37 | 529 | py | Python | archive/wingnut.py | kringen/wingnut | 73be4f8393720ff0932ab069543e5f2d2308296d | [
"MIT"
] | null | null | null | archive/wingnut.py | kringen/wingnut | 73be4f8393720ff0932ab069543e5f2d2308296d | [
"MIT"
] | null | null | null | archive/wingnut.py | kringen/wingnut | 73be4f8393720ff0932ab069543e5f2d2308296d | [
"MIT"
] | null | null | null | from head import Head
import time
from adafruit_servokit import ServoKit
if __name__ == "__main__":
kit = ServoKit(channels=16)
head_channel = kit.servo[0]
head = Head(head_channel, 90)
survey(head, 5, 0.5)
| 20.346154 | 50 | 0.699433 |
784b3b4ef0fd006918ba058c22fc0274a7898223 | 2,726 | py | Python | web_scrapping/Shutil.py | Mainak1792/Data_scrapping | 43723888b6058f979d625e08ec7510c18d4f0897 | [
"MIT"
] | null | null | null | web_scrapping/Shutil.py | Mainak1792/Data_scrapping | 43723888b6058f979d625e08ec7510c18d4f0897 | [
"MIT"
] | null | null | null | web_scrapping/Shutil.py | Mainak1792/Data_scrapping | 43723888b6058f979d625e08ec7510c18d4f0897 | [
"MIT"
] | null | null | null | import time
from selenium import webdriver
import requests
from PIL import Image
import os
import io
from tqdm import tqdm
import cv2
search_term = input("Keyword to Search: ")
req_imgs = int(input("Number Of Images Required : "))
save_path = r'C:\Users\Administrator\Desktop\New folder' # change path if required
sa... | 37.342466 | 352 | 0.683786 |
784e95897f876a64f9d38e434f24957a1f117184 | 3,528 | py | Python | tests/api/endpoints/admin/test_institution_users.py | weimens/seahub | 5ecf78ed7a2ddc72a23961804ee41be21c24893f | [
"Apache-2.0"
] | 420 | 2015-01-03T11:34:46.000Z | 2022-03-10T07:15:41.000Z | tests/api/endpoints/admin/test_institution_users.py | weimens/seahub | 5ecf78ed7a2ddc72a23961804ee41be21c24893f | [
"Apache-2.0"
] | 735 | 2015-01-04T21:22:51.000Z | 2022-03-31T09:26:07.000Z | tests/api/endpoints/admin/test_institution_users.py | weimens/seahub | 5ecf78ed7a2ddc72a23961804ee41be21c24893f | [
"Apache-2.0"
] | 379 | 2015-01-05T17:08:03.000Z | 2022-03-06T00:11:50.000Z | import json
import logging
from django.urls import reverse
from seahub.test_utils import BaseTestCase
from tests.common.utils import randstring
from seahub.institutions.models import Institution, InstitutionAdmin
from seahub.profile.models import Profile
logger = logging.getLogger(__name__)
| 30.947368 | 90 | 0.653912 |
784f0bdffd0c74d31abfdfa29128662798c2c46c | 3,822 | py | Python | AmazonOA/turnstile.py | SadiHassan/leet | 0adc41d89c3e63a7a78d47dcd7eabeefe14972d6 | [
"MIT"
] | 1 | 2019-12-24T19:41:34.000Z | 2019-12-24T19:41:34.000Z | AmazonOA/turnstile.py | SadiHassan/leet | 0adc41d89c3e63a7a78d47dcd7eabeefe14972d6 | [
"MIT"
] | null | null | null | AmazonOA/turnstile.py | SadiHassan/leet | 0adc41d89c3e63a7a78d47dcd7eabeefe14972d6 | [
"MIT"
] | 1 | 2019-12-23T10:20:00.000Z | 2019-12-23T10:20:00.000Z | '''
A warehouse has one loading dock that workers use to load and unload goods.
Warehouse workers carrying the goods arrive at the loading dock at different times. They form two queues, a "loading" queue and an "unloading" queue. Within each queue, the workers are ordered by the time they arrive at the dock.
The arri... | 42 | 229 | 0.673731 |
78518dbb827250b7b706626c909295a7bb16606b | 125 | py | Python | StatisticsFunctions/standardDeviation.py | mkm99/TeamProject_StatsCalculator | 81085c1af47f38d3e49b43d667e312016c44ad10 | [
"MIT"
] | null | null | null | StatisticsFunctions/standardDeviation.py | mkm99/TeamProject_StatsCalculator | 81085c1af47f38d3e49b43d667e312016c44ad10 | [
"MIT"
] | 7 | 2020-03-03T21:37:57.000Z | 2020-03-06T04:11:42.000Z | StatisticsFunctions/standardDeviation.py | mkm99/TeamProject_StatsCalculator | 81085c1af47f38d3e49b43d667e312016c44ad10 | [
"MIT"
] | null | null | null | import numpy as np | 20.833333 | 32 | 0.704 |
785345682b65e2102bad10ac7194e53a101fa0e3 | 37 | py | Python | backend/admin/views/__init__.py | gsw945/flask-bigger | cc5ba476c20129a009ad8a8366daf4dc060bd4ac | [
"MIT"
] | 29 | 2018-11-13T09:03:29.000Z | 2021-11-07T20:20:38.000Z | backend/admin/views/__init__.py | gsw945/flask-bigger | cc5ba476c20129a009ad8a8366daf4dc060bd4ac | [
"MIT"
] | null | null | null | backend/admin/views/__init__.py | gsw945/flask-bigger | cc5ba476c20129a009ad8a8366daf4dc060bd4ac | [
"MIT"
] | 21 | 2018-11-14T01:11:24.000Z | 2021-12-08T09:20:30.000Z | # -*- coding: utf-8 -*-
'''admin''' | 18.5 | 23 | 0.459459 |
78547897866cc63cf047c71a1fb0bc84a0a8f551 | 10,079 | py | Python | tests/unit_tests/v1/test_kubernetes_methods.py | ddeka2910/hvac | 80cf3950157bf003ee6622e6db84bb9d6c90e5f1 | [
"Apache-2.0"
] | 1 | 2020-12-14T04:01:10.000Z | 2020-12-14T04:01:10.000Z | tests/unit_tests/v1/test_kubernetes_methods.py | TerryHowe/hvac | a6b7f904bfaba3c1133ccc7fa5a0cff0d29340c7 | [
"Apache-2.0"
] | 2 | 2019-07-08T03:09:38.000Z | 2021-07-08T18:17:51.000Z | tests/unit_tests/v1/test_kubernetes_methods.py | TerryHowe/hvac | a6b7f904bfaba3c1133ccc7fa5a0cff0d29340c7 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
import requests_mock
from parameterized import parameterized
from hvac import Client
| 34.517123 | 147 | 0.571188 |
7854857e6da56084723ed21419513481babd9d16 | 427 | py | Python | turnero/turnero_app/task.py | Juannauta/Turnero | 4af8186cf95508713ec9bcc076740ffbc40b2bb8 | [
"MIT"
] | null | null | null | turnero/turnero_app/task.py | Juannauta/Turnero | 4af8186cf95508713ec9bcc076740ffbc40b2bb8 | [
"MIT"
] | null | null | null | turnero/turnero_app/task.py | Juannauta/Turnero | 4af8186cf95508713ec9bcc076740ffbc40b2bb8 | [
"MIT"
] | null | null | null |
import time
import redis
import os
import json
from config import celery_app
redis_client = redis.StrictRedis(host=os.environ.get('REDIS_SERVER_HOST'), port=6379, db=0)
| 25.117647 | 91 | 0.723653 |
785574958a2f65ef384abe6c6dc8d6f2b24508df | 745 | py | Python | Bugscan_exploits-master/exp_list/exp-2016.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-2016.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-2016.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#refer:http://www.wooyun.org/bugs/wooyun-2014-081469
'''
Created on 2015-12-19
@author:
'''
import re
import urlparse
if __name__ == '__main__':
from dummy import *
audit(assign('zte', 'http://117.40.138.30:9000/')[1]) | 27.592593 | 89 | 0.610738 |
7856542a78848ad39b3fdf129fb9aed087356444 | 400 | py | Python | login/migrations/0002_auto_20200404_2123.py | bbsddn2020/django-user-LinHai-v1.0 | b4f1d4c38f9a98d850358eb0dfd93502a2d42907 | [
"MIT"
] | null | null | null | login/migrations/0002_auto_20200404_2123.py | bbsddn2020/django-user-LinHai-v1.0 | b4f1d4c38f9a98d850358eb0dfd93502a2d42907 | [
"MIT"
] | 8 | 2021-03-19T01:39:43.000Z | 2022-03-12T00:22:19.000Z | login/migrations/0002_auto_20200404_2123.py | bbsddn2020/django-user-LinHai-v1.0 | b4f1d4c38f9a98d850358eb0dfd93502a2d42907 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.4 on 2020-04-04 13:23
from django.db import migrations, models
| 21.052632 | 79 | 0.6 |
7859ef028520ab8686ea42c72edc8928a487a848 | 1,595 | py | Python | HexChat/notificationcenter.py | FichteForks/tingping-plugins | 85e07ccb3b66b78414dd5aa6f14f3a17bd384a2b | [
"MIT"
] | 1 | 2017-08-20T04:02:13.000Z | 2017-08-20T04:02:13.000Z | HexChat/notificationcenter.py | FichteForks/tingping-plugins | 85e07ccb3b66b78414dd5aa6f14f3a17bd384a2b | [
"MIT"
] | null | null | null | HexChat/notificationcenter.py | FichteForks/tingping-plugins | 85e07ccb3b66b78414dd5aa6f14f3a17bd384a2b | [
"MIT"
] | null | null | null | from __future__ import print_function
import hexchat
__module_name__ = 'notification-center'
__module_author__ = 'TingPing'
__module_version__ = '0'
__module_description__ = 'Integrate with the Notification Center on OSX'
loaded = False
try:
from pync import Notifier
except ImportError:
print('\002\00304Error:\017 ... | 32.55102 | 133 | 0.758621 |
7859f91bde5be0e471228aaf20e69559dc908a81 | 2,484 | py | Python | script/util/MixIn.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/util/MixIn.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | script/util/MixIn.py | demetoir/MLtools | 8c42fcd4cc71728333d9c116ade639fe57d50d37 | [
"MIT"
] | null | null | null | from multiprocessing.pool import Pool
from script.util.Logger import Logger
from script.util.misc_util import dump_pickle, load_pickle, dump_json, load_json
def to_json(self, obj, path):
self._dump_json(obj, path)
class singletonPoolMixIn:
_pool_singleton = None
_n_job = None
| 27.910112 | 119 | 0.629227 |
785ad1d00b8f51a5113fa8aa38ba44612e07ebea | 21,421 | py | Python | sdk/python/pulumi_azure/appservice/public_certificate.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 109 | 2018-06-18T00:19:44.000Z | 2022-02-20T05:32:57.000Z | sdk/python/pulumi_azure/appservice/public_certificate.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 663 | 2018-06-18T21:08:46.000Z | 2022-03-31T20:10:11.000Z | sdk/python/pulumi_azure/appservice/public_certificate.py | henriktao/pulumi-azure | f1cbcf100b42b916da36d8fe28be3a159abaf022 | [
"ECL-2.0",
"Apache-2.0"
] | 41 | 2018-07-19T22:37:38.000Z | 2022-03-14T10:56:26.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 48.794989 | 233 | 0.678633 |
785b44ee72513401a18215620824fd50461c56e5 | 403 | py | Python | environments/var_voltage_control/voltage_barrier/bowl.py | eddie-atkinson/MAPDN | 8f39b387c5b83825a5747bafc3ab89176313ab32 | [
"MIT"
] | 30 | 2021-10-31T13:23:52.000Z | 2022-03-12T09:06:53.000Z | environments/var_voltage_control/voltage_barrier/bowl.py | eddie-atkinson/MAPDN | 8f39b387c5b83825a5747bafc3ab89176313ab32 | [
"MIT"
] | 9 | 2021-11-15T09:40:08.000Z | 2022-03-17T09:11:04.000Z | environments/var_voltage_control/voltage_barrier/bowl.py | eddie-atkinson/MAPDN | 8f39b387c5b83825a5747bafc3ab89176313ab32 | [
"MIT"
] | 18 | 2021-11-12T03:10:17.000Z | 2022-03-20T18:39:05.000Z | import numpy as np
| 31 | 98 | 0.523573 |
785b58d4e7338ca38a2ce5f985e3973c3f49c4cf | 688 | py | Python | examples/features/dry.runs/run-cmaes.py | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | examples/features/dry.runs/run-cmaes.py | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | examples/features/dry.runs/run-cmaes.py | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | #!/usr/bin/env python3
import sys
sys.path.append('_model')
from model import *
import korali
k = korali.Engine()
e = korali.Experiment()
e["Problem"]["Type"] = "Optimization"
e["Problem"]["Objective Function"] = model
e["Solver"]["Type"] = "Optimizer/CMAES"
e["Solver"]["Population Size"] = 5
e["Solver"]["Terminati... | 24.571429 | 84 | 0.672965 |
785be2aba878540cc6c5b6b2c5133146585a91aa | 692 | py | Python | config.py | tomoyan/blurtblock | d108843095db5b4dec75fcbd5bdd1c9a881cbd1e | [
"MIT"
] | 1 | 2020-10-30T20:30:45.000Z | 2020-10-30T20:30:45.000Z | config.py | tomoyan/blurtblock | d108843095db5b4dec75fcbd5bdd1c9a881cbd1e | [
"MIT"
] | null | null | null | config.py | tomoyan/blurtblock | d108843095db5b4dec75fcbd5bdd1c9a881cbd1e | [
"MIT"
] | null | null | null | import os
from datetime import timedelta
| 36.421053 | 75 | 0.738439 |
785ebfaeb8a3909491f8fef1d0c7a9b5cf39960d | 6,014 | py | Python | taxi_zebra/ui.py | sephii/taxi-zebra | 1100f02180a576479ee34497097e985e04f84095 | [
"WTFPL"
] | 5 | 2015-10-06T19:59:58.000Z | 2020-12-10T17:01:30.000Z | taxi_zebra/ui.py | sephii/taxi-zebra | 1100f02180a576479ee34497097e985e04f84095 | [
"WTFPL"
] | 22 | 2015-07-20T12:33:31.000Z | 2021-04-25T20:10:10.000Z | taxi_zebra/ui.py | sephii/taxi-zebra | 1100f02180a576479ee34497097e985e04f84095 | [
"WTFPL"
] | 5 | 2015-06-25T05:58:42.000Z | 2018-07-10T14:23:10.000Z | import inspect
from collections import namedtuple
import click
from taxi.aliases import aliases_database
from taxi.backends import PushEntryFailed
from .roles import NEVER_SAVE_ROLE_ID
from .utils import get_role_id_from_alias, update_alias_mapping
Option = namedtuple('Option', ['value', 'label', 'key', 'style'])... | 32.508108 | 117 | 0.61706 |
78614f22d935f3d142bf7ca036e4178dacad3150 | 1,359 | bzl | Python | source/bazel/rules/tree_hcp/string_tree_to_static_tree_parser.bzl | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/bazel/rules/tree_hcp/string_tree_to_static_tree_parser.bzl | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/bazel/rules/tree_hcp/string_tree_to_static_tree_parser.bzl | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | load("//bazel/rules/cpp:object.bzl", "cpp_object")
load("//bazel/rules/hcp:hcp.bzl", "hcp")
load("//bazel/rules/hcp:hcp_hdrs_derive.bzl", "hcp_hdrs_derive")
| 39.970588 | 153 | 0.701987 |
7864062a7f9799e42a308db7a6e1c4396cc14e4f | 7,008 | py | Python | tests/test_urls.py | erwinelling/wagtailnews | 90b2a1b9b9fd9e9e365165ff757d10cbfd1b24fe | [
"BSD-2-Clause"
] | 35 | 2019-02-24T15:04:54.000Z | 2022-02-28T09:34:35.000Z | tests/test_urls.py | erwinelling/wagtailnews | 90b2a1b9b9fd9e9e365165ff757d10cbfd1b24fe | [
"BSD-2-Clause"
] | 10 | 2019-04-25T08:43:57.000Z | 2021-09-12T23:57:24.000Z | tests/test_urls.py | erwinelling/wagtailnews | 90b2a1b9b9fd9e9e365165ff757d10cbfd1b24fe | [
"BSD-2-Clause"
] | 14 | 2019-02-25T10:56:33.000Z | 2021-07-22T06:33:11.000Z | import datetime
from django.core.cache import cache
from django.test import TestCase, override_settings
from django.utils import timezone
from wagtail.core.models import Page, Site
from wagtail.tests.utils import WagtailTestUtils
from tests.app.models import NewsIndex, NewsItem
| 35.393939 | 79 | 0.583333 |
78646a876720b576468b7fb71621608cbb5b742e | 7,094 | py | Python | src/github_automation/management/project_manager.py | ShahafBenYakir/github-automation | e9746b316434f311eca404efd4a21fe70a0ce19d | [
"MIT"
] | 6 | 2020-05-17T08:01:49.000Z | 2022-01-12T00:27:08.000Z | src/github_automation/management/project_manager.py | ShahafBenYakir/github-automation | e9746b316434f311eca404efd4a21fe70a0ce19d | [
"MIT"
] | 3 | 2020-10-28T01:54:05.000Z | 2022-03-29T20:04:29.000Z | src/github_automation/management/project_manager.py | ShahafBenYakir/github-automation | e9746b316434f311eca404efd4a21fe70a0ce19d | [
"MIT"
] | 3 | 2020-07-22T23:26:56.000Z | 2021-06-17T09:38:22.000Z | from __future__ import absolute_import
from github_automation.common.utils import (get_column_items_with_prev_column,
get_first_column_items,
is_matching_project_item, get_labels,
get_pro... | 54.569231 | 116 | 0.600367 |
7864fa9e3feb65d8c57f4031a9b8d6c91a5790ce | 269 | py | Python | stackoverflow/spiders/items.py | Janeho454199/stackoverflow-spider | 6d60fc2d19d22cfeccdb8bca4aa144f3b633850c | [
"MIT"
] | 131 | 2018-03-17T14:59:47.000Z | 2022-03-23T02:36:56.000Z | stackoverflow/spiders/items.py | Janeho454199/stackoverflow-spider | 6d60fc2d19d22cfeccdb8bca4aa144f3b633850c | [
"MIT"
] | 18 | 2019-02-13T09:15:25.000Z | 2021-12-09T21:32:13.000Z | stackoverflow/spiders/items.py | Janeho454199/stackoverflow-spider | 6d60fc2d19d22cfeccdb8bca4aa144f3b633850c | [
"MIT"
] | 54 | 2018-03-25T03:30:34.000Z | 2022-03-23T02:36:58.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import scrapy
| 17.933333 | 37 | 0.63197 |
78656b223ee03a175a82eb823ebd05053f296d7a | 4,095 | py | Python | csdn/blog-click-read-num.py | Adsryen/python-spiders | 005513c78e82eaa3671d584c58a35b009aa7fd01 | [
"MIT"
] | 31 | 2022-01-02T11:35:36.000Z | 2022-03-26T16:56:08.000Z | csdn/blog-click-read-num.py | Adsryen/python-spiders | 005513c78e82eaa3671d584c58a35b009aa7fd01 | [
"MIT"
] | null | null | null | csdn/blog-click-read-num.py | Adsryen/python-spiders | 005513c78e82eaa3671d584c58a35b009aa7fd01 | [
"MIT"
] | 12 | 2022-01-07T04:04:57.000Z | 2022-03-29T08:22:24.000Z | #!/usr/bin/env python
# encoding: utf-8
'''
#-------------------------------------------------------------------
# CONFIDENTIAL --- CUSTOM STUDIOS
#-------------------------------------------------------------------
# ... | 37.227273 | 129 | 0.449817 |
78669a47b4d2056f5795f7757d17b963b58901f7 | 2,926 | py | Python | cogs/utils/db.py | NextChai/FURYBot | 074ef86950167cf26a6b3afc3acc9a0a5ce91c9e | [
"MIT"
] | null | null | null | cogs/utils/db.py | NextChai/FURYBot | 074ef86950167cf26a6b3afc3acc9a0a5ce91c9e | [
"MIT"
] | 3 | 2021-12-31T07:03:24.000Z | 2021-12-31T07:16:21.000Z | cogs/utils/db.py | NextChai/Fury-Bot | 074ef86950167cf26a6b3afc3acc9a0a5ce91c9e | [
"MIT"
] | null | null | null | """
The MIT License (MIT)
Copyright (c) 2020-present NextChai
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, me... | 32.511111 | 82 | 0.665072 |
7867336d033fecd4522cc24b40fe95d3630ecec8 | 275 | py | Python | python/tvm/relay/op/_transform.py | Rasterer/tvm | 1b863732ddd91423b1083626c64fba0523204a70 | [
"Apache-2.0"
] | 2 | 2018-09-10T09:48:03.000Z | 2018-09-11T05:40:57.000Z | python/tvm/relay/op/_transform.py | Rasterer/tvm | 1b863732ddd91423b1083626c64fba0523204a70 | [
"Apache-2.0"
] | null | null | null | python/tvm/relay/op/_transform.py | Rasterer/tvm | 1b863732ddd91423b1083626c64fba0523204a70 | [
"Apache-2.0"
] | null | null | null | #pylint: disable=invalid-name, unused-argument
"""Backend compiler related feature registration"""
from __future__ import absolute_import
from . import op as _reg
from .op import schedule_injective
# strided_slice
_reg.register_schedule("strided_slice", schedule_injective)
| 30.555556 | 59 | 0.825455 |
786a18b25ede9a235fb13332e2f40fe307efbd6e | 10,439 | py | Python | misc/noise.py | exoplanetvetting/DAVE | aea19a30d987b214fb4c0cf01aa733f127c411b9 | [
"MIT"
] | 7 | 2019-05-07T02:01:51.000Z | 2022-03-16T08:09:39.000Z | misc/noise.py | exoplanetvetting/DAVE | aea19a30d987b214fb4c0cf01aa733f127c411b9 | [
"MIT"
] | 4 | 2020-08-04T20:31:24.000Z | 2020-09-21T17:26:34.000Z | misc/noise.py | exoplanetvetting/DAVE | aea19a30d987b214fb4c0cf01aa733f127c411b9 | [
"MIT"
] | 2 | 2019-06-19T22:15:47.000Z | 2020-08-04T20:28:38.000Z | # -*- coding: utf-8 -*-
"""
Created on Sun Feb 7 13:43:01 2016
@author: fergal
A series of metrics to quantify the noise in a lightcurve:
Includes:
x sgCdpp
x Marshall's noise estimate
o An FT based estimate of 6 hour artifact strength.
o A per thruster firing estimate of 6 hour artifact strength.
$Id$
$URL$
"""
... | 28.916898 | 121 | 0.647093 |
786a1b7bdea7fe609f6a6762d9835736f95cc810 | 4,542 | py | Python | tests/test_parse_data.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 6 | 2018-04-18T03:42:50.000Z | 2021-11-20T18:46:37.000Z | tests/test_parse_data.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 13 | 2018-10-01T11:45:05.000Z | 2022-03-16T12:28:36.000Z | tests/test_parse_data.py | physimals/fslpy | 10dd3f996c79d402c65cf0af724b8b00082d5176 | [
"Apache-2.0"
] | 5 | 2017-12-09T09:02:17.000Z | 2021-11-15T16:55:30.000Z | #!/usr/bin/env python
#
# test_parse_data.py -
#
# Author: Michiel Cottaar <Michiel.Cottaar@ndcn.ox.ac.uk>
#
import argparse
from fsl.utils import parse_data, tempdir, path
import os.path as op
from fsl.data.vtk import VTKMesh
from fsl.data.gifti import GiftiMesh
from fsl.data.image import Image
from fsl.data.atlases ... | 34.938462 | 68 | 0.645971 |
786a7c8d7a83b054334be66c769984509fe218e8 | 9,774 | py | Python | tests/test_covar.py | ComputationalCryoEM/ASPIRE | 6e6699eae532874de44b98adb7ddb2ad96c43d9d | [
"MIT"
] | null | null | null | tests/test_covar.py | ComputationalCryoEM/ASPIRE | 6e6699eae532874de44b98adb7ddb2ad96c43d9d | [
"MIT"
] | 5 | 2019-06-07T13:25:29.000Z | 2019-06-18T20:34:37.000Z | tests/test_covar.py | computationalcryoem/aspyre | 6e6699eae532874de44b98adb7ddb2ad96c43d9d | [
"MIT"
] | 1 | 2019-06-18T17:41:52.000Z | 2019-06-18T17:41:52.000Z | import os
import numpy as np
from scipy.cluster.vq import kmeans2
from unittest import TestCase
from unittest.mock import patch
import pytest
from aspyre.source import SourceFilter
from aspyre.source.simulation import Simulation
from aspyre.basis.fb_3d import FBBasis3D
from aspyre.imaging.filters import RadialCTFFilt... | 57.83432 | 152 | 0.661756 |
786ac460e372836dace1c8fa9561faa67380aa3b | 10,480 | py | Python | polls/application/bungou.py | jphacks/B_2015 | baef2e3aa4d1353803309a1d8f5e339947db6ec3 | [
"MIT"
] | null | null | null | polls/application/bungou.py | jphacks/B_2015 | baef2e3aa4d1353803309a1d8f5e339947db6ec3 | [
"MIT"
] | null | null | null | polls/application/bungou.py | jphacks/B_2015 | baef2e3aa4d1353803309a1d8f5e339947db6ec3 | [
"MIT"
] | null | null | null | #
"""import requests
headers = {'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36'}
url_1 = 'https://www.aozora.gr.jp/cards/000035/files/301_ruby_5915.zip'
url_2 = 'https://www.aozora.gr.jp/cards/000035/files/1565_ruby_8220.zip'
... | 28.478261 | 148 | 0.616508 |
78703dd9cfa9c20a37c5e365d15f5960a107a952 | 12,745 | py | Python | entity/query_item.py | will4906/PatentCrawler | 2550f9e9e7867f96284827ae4a0b6703d43f0c0d | [
"Apache-2.0"
] | 136 | 2017-04-13T09:08:12.000Z | 2022-01-10T21:27:31.000Z | entity/query_item.py | chanhomer/PatentCrawler | 5cdc022daa949caeb430ad1d37b6178ca72522cf | [
"Apache-2.0"
] | 11 | 2017-08-14T09:27:32.000Z | 2018-06-06T12:33:26.000Z | entity/query_item.py | siyuanCai/patent-crawler | 4d5c69de7286ab2723a2421314a8a9058ee57d99 | [
"Apache-2.0"
] | 75 | 2017-04-16T09:53:34.000Z | 2022-03-30T03:04:59.000Z | # -*- coding: utf-8 -*-
"""
Created on 2017/3/19
@author: will4906
"""
import re
def handle_item_group(item_group):
"""
item_group
:param item_group:
:return:
"""
AND = ' AND '
OR = ' OR '
NOT = ' NOT '
exp_str = ""
keyand = item_group.__getattribute__('And')
keyor = item_... | 31.70398 | 103 | 0.561475 |
7870afd916a5ff1b2cfabce4e171321789b079fb | 820 | py | Python | preference/models.py | ASL-19/outline-distribution | 6ef595d59c0d7d9416cd1d3c0fb263ba83830126 | [
"Apache-2.0"
] | 5 | 2020-12-21T21:19:28.000Z | 2022-03-28T00:53:45.000Z | preference/models.py | ASL-19/outline-distribution | 6ef595d59c0d7d9416cd1d3c0fb263ba83830126 | [
"Apache-2.0"
] | 5 | 2021-01-07T02:32:47.000Z | 2022-03-28T14:28:52.000Z | preference/models.py | ASL-19/outline-distribution | 6ef595d59c0d7d9416cd1d3c0fb263ba83830126 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 ASL19 Organization
#
# 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 wr... | 27.333333 | 74 | 0.72439 |
787178f34b5ffa253f14aa61eee0eb962b050494 | 1,286 | py | Python | utils/pandasscatter.py | akhandait/models | 1ec71f34f8a9401825eb2f6f586012761b71584e | [
"BSD-3-Clause"
] | 54 | 2020-03-20T05:40:01.000Z | 2022-03-18T13:56:46.000Z | utils/pandasscatter.py | akhandait/models | 1ec71f34f8a9401825eb2f6f586012761b71584e | [
"BSD-3-Clause"
] | 136 | 2020-03-19T18:23:18.000Z | 2022-03-31T09:08:10.000Z | utils/pandasscatter.py | akhandait/models | 1ec71f34f8a9401825eb2f6f586012761b71584e | [
"BSD-3-Clause"
] | 47 | 2020-03-20T11:51:34.000Z | 2022-03-23T15:44:10.000Z | from matplotlib import figure
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.pyplot import figure | 45.928571 | 137 | 0.662519 |
78730c4c34562140b4aa13d567d8e6bd4a0cbb65 | 784 | py | Python | deprecated/ipport-list-to-script-nmap-portgroup-cmds.py | NullByte8080/ipport | fedee1ab956d8d0327b3572c67ebc5b945419aae | [
"MIT"
] | 10 | 2016-11-24T17:36:10.000Z | 2022-02-22T03:06:16.000Z | deprecated/ipport-list-to-script-nmap-portgroup-cmds.py | NullByte8080/ipport | fedee1ab956d8d0327b3572c67ebc5b945419aae | [
"MIT"
] | null | null | null | deprecated/ipport-list-to-script-nmap-portgroup-cmds.py | NullByte8080/ipport | fedee1ab956d8d0327b3572c67ebc5b945419aae | [
"MIT"
] | 4 | 2017-09-07T03:11:12.000Z | 2020-10-17T17:55:18.000Z | #!/usr/bin/env python
'''
convert ip port list nmap commands sorrounded in script statements
'''
import sys,re
if len(sys.argv) > 1:
filename = sys.argv[1]
else:
sys.stderr.write('Usage: '+sys.argv[0]+' <in-file>\n')
sys.exit(1)
ips = []
ports = dict()
for ip,port in map(lambda x: x.split(), filter(lambda x: re.ma... | 31.36 | 154 | 0.570153 |
78745c4d9e09ff7c7882f7bd3b21d291c8cf70e0 | 8,408 | py | Python | server/ticketing.py | mocsi/ticketing | e7af69aff3a8c44b820dc21a381bfa3053fe70b2 | [
"BSD-2-Clause"
] | null | null | null | server/ticketing.py | mocsi/ticketing | e7af69aff3a8c44b820dc21a381bfa3053fe70b2 | [
"BSD-2-Clause"
] | 4 | 2020-07-20T15:35:30.000Z | 2021-06-17T02:25:46.000Z | server/ticketing.py | mocsi/ticketing | e7af69aff3a8c44b820dc21a381bfa3053fe70b2 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
import base64, json, pika
from xml.etree.ElementTree import Element, tostring, fromstring
# RabbitMQ Connection Information
RABBIT_HOST = 'vcd-cell1.lab.orange.sk'
RABBIT_HOST = 'oblak.orange.sk'
RABBIT_PORT = '5672'
RABBIT_USER = 'vcdext'
RABBIT_PASSWORD = 'cekoMO90.'
# Exchange and Queue we wi... | 35.179916 | 149 | 0.628687 |
7876f195f30152532f5ba50ae1565d9501d01d21 | 273 | py | Python | falmer/schema/middleware.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 2 | 2017-04-27T19:35:59.000Z | 2017-06-13T16:19:33.000Z | falmer/schema/middleware.py | sussexstudent/falmer | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 975 | 2017-04-13T11:31:07.000Z | 2022-02-10T07:46:18.000Z | falmer/schema/middleware.py | sussexstudent/services-api | ae735bd9d6177002c3d986e5c19a78102233308f | [
"MIT"
] | 3 | 2018-05-09T06:42:25.000Z | 2020-12-10T18:29:30.000Z |
import sys
import logging
| 19.5 | 48 | 0.545788 |
7878dfadb37ab9ac5e636612f7783f3e1751ae64 | 3,370 | py | Python | app/db/repositories/user.py | Max-Zhenzhera/my_vocab_backend | f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72 | [
"MIT"
] | 1 | 2021-11-18T16:25:22.000Z | 2021-11-18T16:25:22.000Z | app/db/repositories/user.py | Max-Zhenzhera/my_vocab_backend | f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72 | [
"MIT"
] | null | null | null | app/db/repositories/user.py | Max-Zhenzhera/my_vocab_backend | f93d0c7c7f4a45fce47eb7ce74cfcda195b13a72 | [
"MIT"
] | null | null | null | from datetime import datetime
from uuid import uuid4
from typing import (
ClassVar,
TypeVar,
Union
)
from sqlalchemy import update as sa_update
from sqlalchemy.future import select as sa_select
from sqlalchemy.sql.elements import BinaryExpression
from .base import BaseRepository
from .types_ import ModelT... | 34.742268 | 98 | 0.694659 |
7878f45b36afa40f0d3868d56e6815cb872b5fa0 | 713 | py | Python | docs/index-7.py | farisachugthai/rtdpy | ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce | [
"MIT"
] | 5 | 2019-12-28T19:53:57.000Z | 2021-09-14T19:59:25.000Z | docs/index-7.py | farisachugthai/rtdpy | ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce | [
"MIT"
] | 3 | 2019-08-19T11:29:01.000Z | 2020-11-10T21:09:41.000Z | docs/index-7.py | farisachugthai/rtdpy | ac5cd7100d4b8d256021acf4a358bd5c2c4c58ce | [
"MIT"
] | 5 | 2019-03-19T08:35:15.000Z | 2020-11-06T20:23:32.000Z | from scipy import optimize
# Generate noisy data from NCSTR system with tau=10 and n=2
a = rtdpy.Ncstr(tau=10, n=2, dt=1, time_end=50)
xdata = a.time
noisefactor = 0.01
ydata = a.exitage \
+ (noisefactor * (np.random.rand(a.time.size) - 0.5))
# Give initial guess of tau=5 and n=4
popt, pcov = optimize.curve_fit(f... | 33.952381 | 59 | 0.635344 |
7879acdcd4016d9f2d466a138bd5660d4f00d6be | 4,298 | py | Python | blotto.py | didrikjonassen/ea | 018000aec2c50eca8260748ab7a47da07290b05e | [
"MIT"
] | null | null | null | blotto.py | didrikjonassen/ea | 018000aec2c50eca8260748ab7a47da07290b05e | [
"MIT"
] | null | null | null | blotto.py | didrikjonassen/ea | 018000aec2c50eca8260748ab7a47da07290b05e | [
"MIT"
] | 1 | 2020-06-12T14:36:10.000Z | 2020-06-12T14:36:10.000Z | from __future__ import division
import binary_gtype
import evoalg
from math import log
from pylab import plot, show, figure, fill_between, xlabel, ylabel, title, legend, savefig
from copy import deepcopy
problem_size = int(input("Input number of battles: "))
rf = float(input("Input reployment fraction: "))
lf = flo... | 33.578125 | 145 | 0.715216 |
7879c7c860258eca5968eb6ce72d9bdc6e40ba83 | 5,953 | py | Python | data_loader.py | dmsquare/CalendarGNN | dc071b2a901d25909d8ef7bcf467dda58fb22c3c | [
"MIT"
] | 8 | 2020-06-06T00:14:31.000Z | 2020-12-15T02:21:07.000Z | data_loader.py | DM2-ND/CalendarGNN | dc071b2a901d25909d8ef7bcf467dda58fb22c3c | [
"MIT"
] | 2 | 2020-09-05T05:01:15.000Z | 2021-02-08T19:43:18.000Z | data_loader.py | dmsquare/CalendarGNN | dc071b2a901d25909d8ef7bcf467dda58fb22c3c | [
"MIT"
] | 4 | 2020-07-17T15:29:18.000Z | 2020-10-30T12:36:48.000Z | """
Load dataset
"""
import datetime
import collections
from config import *
| 44.096296 | 116 | 0.607593 |
7879cabd5064df2f7bcf4a2ff11955ef43b1d914 | 2,143 | py | Python | controllers/admin.py | PP-HashInclude/cfc-quiz | beabe81e073919d59b543c7d4b5078cb3b950e5d | [
"Apache-2.0"
] | null | null | null | controllers/admin.py | PP-HashInclude/cfc-quiz | beabe81e073919d59b543c7d4b5078cb3b950e5d | [
"Apache-2.0"
] | 1 | 2020-05-02T13:44:27.000Z | 2020-05-02T13:44:27.000Z | controllers/admin.py | PP-HashInclude/cfc-quiz | beabe81e073919d59b543c7d4b5078cb3b950e5d | [
"Apache-2.0"
] | null | null | null | import os
from flask import Flask, flash, request, redirect, url_for, session, render_template
from werkzeug.utils import secure_filename
from common import utility, config
from repositories import db, cos | 38.267857 | 102 | 0.562762 |
787a2bfccaf54eb08e91a39acee1560b0c28b97d | 7,127 | py | Python | feature_engine/imputation/drop_missing_data.py | kylegilde/feature_engine | 39bc2ff328d7b2eecba0e5d385d603a39992b092 | [
"BSD-3-Clause"
] | 196 | 2021-08-06T21:49:52.000Z | 2022-03-30T13:59:59.000Z | feature_engine/imputation/drop_missing_data.py | kylegilde/feature_engine | 39bc2ff328d7b2eecba0e5d385d603a39992b092 | [
"BSD-3-Clause"
] | 97 | 2021-08-06T12:03:40.000Z | 2022-03-31T06:37:30.000Z | feature_engine/imputation/drop_missing_data.py | kylegilde/feature_engine | 39bc2ff328d7b2eecba0e5d385d603a39992b092 | [
"BSD-3-Clause"
] | 28 | 2021-08-09T12:02:49.000Z | 2022-03-28T15:48:06.000Z | # Authors: Pradumna Suryawanshi <pradumnasuryawanshi@gmail.com>
# License: BSD 3 clause
from typing import List, Optional, Union
import pandas as pd
from feature_engine.dataframe_checks import _is_dataframe
from feature_engine.imputation.base_imputer import BaseImputer
from feature_engine.variable_manipulation impor... | 36.177665 | 88 | 0.610636 |
787a3275e8d6855aaf1e7dc52c687886fd259980 | 3,177 | py | Python | examples/simple.py | sambyers/webexteamssdk | 10e566c7030080921122dee626d768eecf7b39e1 | [
"MIT"
] | 1 | 2020-01-28T15:35:33.000Z | 2020-01-28T15:35:33.000Z | examples/simple.py | sambyers/webexteamssdk | 10e566c7030080921122dee626d768eecf7b39e1 | [
"MIT"
] | 3 | 2020-03-31T06:17:27.000Z | 2021-08-31T22:35:42.000Z | examples/simple.py | sambyers/webexteamssdk | 10e566c7030080921122dee626d768eecf7b39e1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Simple webexteamssdk demonstration script.
Very simple script to create a demo room, post a message, and post a file.
If one or more rooms with the name of the demo room already exist, it will
delete the previously existing rooms.
The package natively retrieves your W... | 35.3 | 78 | 0.770853 |
787d74e97c95f1df67c3e62879aee9f69a021e02 | 1,653 | py | Python | Bugscan_exploits-master/exp_list/exp-2405.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 11 | 2020-05-30T13:53:49.000Z | 2021-03-17T03:20:59.000Z | Bugscan_exploits-master/exp_list/exp-2405.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-13T03:25:18.000Z | 2020-07-21T06:24:16.000Z | Bugscan_exploits-master/exp_list/exp-2405.py | csadsl/poc_exp | e3146262e7403f19f49ee2db56338fa3f8e119c9 | [
"MIT"
] | 6 | 2020-05-30T13:53:51.000Z | 2020-12-01T21:44:26.000Z | #!usr/bin/env python
# *-* coding:utf-8 *-*
'''
name: TRSpaperconSQL
author: yichin
refer: http://www.wooyun.org/bugs/wooyun-2010-0124453
description:
paper/submit1.jsp POST
stacked queries; AND/OR time-based blind
google dork: intitle:""
'''
import time
if __name__ == '__main__':
... | 38.44186 | 179 | 0.630369 |
787da5f4803685a7235272254d6e7e5f21fcfd01 | 1,221 | py | Python | natsort/__init__.py | altendky/natsort | 3fd3585a7ed0150f03adbf8ee77c342da53f6aac | [
"MIT"
] | null | null | null | natsort/__init__.py | altendky/natsort | 3fd3585a7ed0150f03adbf8ee77c342da53f6aac | [
"MIT"
] | null | null | null | natsort/__init__.py | altendky/natsort | 3fd3585a7ed0150f03adbf8ee77c342da53f6aac | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
import sys
import warnings
from natsort.natsort import (
as_ascii,
as_utf8,
decoder,
humansorted,
index_humansorted,
index_natsorted,
index_realsorted,
index_versorted,
natsor... | 21.051724 | 82 | 0.683866 |
787e386145ac5551645a2ee291a1352b86b1f907 | 2,122 | py | Python | Linear-Regression/LinearRegression.py | ausaafnabi/Machine-Learning-Projects | 3a731cd63e387e1d47070566fba708ad4e1e3729 | [
"MIT"
] | 1 | 2020-01-18T07:47:36.000Z | 2020-01-18T07:47:36.000Z | Linear-Regression/LinearRegression.py | ausaafnabi/Machine-Learning-Projects | 3a731cd63e387e1d47070566fba708ad4e1e3729 | [
"MIT"
] | 1 | 2020-03-15T15:49:09.000Z | 2020-03-15T15:49:09.000Z | Linear-Regression/LinearRegression.py | ausaafnabi/Machine-Learning-Projects | 3a731cd63e387e1d47070566fba708ad4e1e3729 | [
"MIT"
] | null | null | null | from matplotlib import pyplot as plt
import pandas as pd
import pylab as pl
import numpy as np
import os
DOWNLOAD_ROOT = "https://s3-api.us-geo.objectstorage.softlayer.net/cf-courses-data/CognitiveClass/ML0101ENv3/labs/FuelConsumptionCo2.csv"
DATASET_PATH = os.path.join("../","datasets")
DATASET_URL = DOWNLOAD_ROOT
... | 28.293333 | 137 | 0.754477 |
787e44f31c1c1961203ac8ac66cfb4c727e970b2 | 519 | py | Python | migrations/0007_doubleentry_account.py | PyUnchained/books | 656d375765300accb1767a8ab1bf4b96c884539f | [
"MIT"
] | null | null | null | migrations/0007_doubleentry_account.py | PyUnchained/books | 656d375765300accb1767a8ab1bf4b96c884539f | [
"MIT"
] | 14 | 2019-10-23T00:01:18.000Z | 2022-03-11T23:38:52.000Z | migrations/0007_doubleentry_account.py | PyUnchained/books | 656d375765300accb1767a8ab1bf4b96c884539f | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2020-01-24 00:50
from django.db import migrations, models
import django.db.models.deletion
| 24.714286 | 112 | 0.637765 |
788050c8da1dddc43d5704fd1492c50452869c59 | 5,771 | py | Python | bomb_runner/bomb_runner.py | copsahl/Bomb_Runner_Python_game | 982616ac22f208169900ca484a4b229a6c1b4025 | [
"MIT"
] | null | null | null | bomb_runner/bomb_runner.py | copsahl/Bomb_Runner_Python_game | 982616ac22f208169900ca484a4b229a6c1b4025 | [
"MIT"
] | null | null | null | bomb_runner/bomb_runner.py | copsahl/Bomb_Runner_Python_game | 982616ac22f208169900ca484a4b229a6c1b4025 | [
"MIT"
] | 1 | 2017-12-14T05:05:49.000Z | 2017-12-14T05:05:49.000Z | import os
import random
import time
import bomb_modules as bm
import msvcrt
gameBoard = [
['+','+','+','+','+','+','+','+','+','+','+','+','+'], # x 1-11
['+',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','+'], # y 1-3
['+',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','+'],
['+',' ',' ',' ',' ',' ',' ',' ',... | 30.696809 | 154 | 0.463178 |
7880b83885e8019c5da95e4fa257efa153f6d393 | 412 | py | Python | submissions/abc133/d.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 1 | 2021-05-10T01:16:28.000Z | 2021-05-10T01:16:28.000Z | submissions/abc133/d.py | m-star18/atcoder | 08e475810516602fa088f87daf1eba590b4e07cc | [
"Unlicense"
] | 3 | 2021-05-11T06:14:15.000Z | 2021-06-19T08:18:36.000Z | submissions/abc133/d.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)
n = int(readline())
a = list(map(lambda x: int(x)*2, readline().split()))
ans = [0] * n
for i in range(n):
if i % 2 == 0:
ans[0] += a[i]
else:
ans[0... | 21.684211 | 53 | 0.575243 |
7880bba2ca685035778f69cc05f0d50be10c9a0f | 1,691 | py | Python | 0_numpy_lineare_algebra/assignments/learntools/challenges/challenge2.py | layerwise/training | 21ad2a5684a3712192fb13f8214bc3bb4c975f3e | [
"MIT"
] | null | null | null | 0_numpy_lineare_algebra/assignments/learntools/challenges/challenge2.py | layerwise/training | 21ad2a5684a3712192fb13f8214bc3bb4c975f3e | [
"MIT"
] | null | null | null | 0_numpy_lineare_algebra/assignments/learntools/challenges/challenge2.py | layerwise/training | 21ad2a5684a3712192fb13f8214bc3bb4c975f3e | [
"MIT"
] | 1 | 2021-07-20T11:38:47.000Z | 2021-07-20T11:38:47.000Z | import pandas as pd
import os
import numpy as np
from learntools.core import *
qvars = bind_exercises(globals(), [
Evaluation
],
)
__all__ = list(qvars)
| 30.745455 | 131 | 0.6233 |
7880f21eadefb46f5ed0f737d735e6a68d527156 | 6,811 | py | Python | pydatpiff/backend/config.py | cbedroid/datpiff | 4027d5ff4ee115928cc11e2a74bb8368b677ae0e | [
"MIT"
] | 16 | 2019-11-20T07:53:51.000Z | 2021-12-21T06:39:51.000Z | pydatpiff/backend/config.py | cbedroid/datpiff | 4027d5ff4ee115928cc11e2a74bb8368b677ae0e | [
"MIT"
] | 4 | 2020-09-10T01:53:26.000Z | 2021-10-30T16:26:05.000Z | pydatpiff/backend/config.py | cbedroid/datpiff | 4027d5ff4ee115928cc11e2a74bb8368b677ae0e | [
"MIT"
] | 5 | 2019-12-23T03:05:16.000Z | 2022-01-19T22:14:05.000Z | """
This file will stored all dynamic class and methods.
These methods will be used throughout the whole program.
"""
import sys
import concurrent.futures as cf
import threading
from functools import wraps
from ..utils.request import Session
from ..errors import BuildError
def run2(self):
"... | 30.137168 | 80 | 0.565409 |
788109953bb66958ad0787c84167a89358fe0751 | 453 | py | Python | myapp/decorators.py | menghao2015/MyBlog | 8cc7b74295bfbdfc0f825665c915bf36bbf772fe | [
"MIT"
] | null | null | null | myapp/decorators.py | menghao2015/MyBlog | 8cc7b74295bfbdfc0f825665c915bf36bbf772fe | [
"MIT"
] | null | null | null | myapp/decorators.py | menghao2015/MyBlog | 8cc7b74295bfbdfc0f825665c915bf36bbf772fe | [
"MIT"
] | null | null | null | from functools import wraps
from flask import abort
from flask.ext.login import current_user
from .models import Permission
| 21.571429 | 53 | 0.770419 |
7882624f4067942b0eba37b30e1a81879abbd995 | 3,716 | py | Python | wechat_config/customize_userManual.py | William-An/wechat_server | c7746ef6b425868fafb73f29109ae4bc831c286d | [
"Apache-2.0"
] | null | null | null | wechat_config/customize_userManual.py | William-An/wechat_server | c7746ef6b425868fafb73f29109ae4bc831c286d | [
"Apache-2.0"
] | null | null | null | wechat_config/customize_userManual.py | William-An/wechat_server | c7746ef6b425868fafb73f29109ae4bc831c286d | [
"Apache-2.0"
] | null | null | null | import requests
import os
import sys # provide option
import argparse # parse options
import json
PATH = os.path.abspath(os.path.dirname(sys.argv[0]))
token_url = "https://api.weixin.qq.com/cgi-bin/token" # Change to control server
create_interface = "https://api.weixin.qq.com/cgi-bin/menu/create"
get_Allinterface = "... | 44.238095 | 133 | 0.653391 |
7882b7e0b221f365403b8777a8172d25bf849d8f | 3,288 | py | Python | ocg.py | kushimoto/ocg | ce0be0fc2ca2008fe087b7929d6624e05d5db5c8 | [
"MIT"
] | null | null | null | ocg.py | kushimoto/ocg | ce0be0fc2ca2008fe087b7929d6624e05d5db5c8 | [
"MIT"
] | null | null | null | ocg.py | kushimoto/ocg | ce0be0fc2ca2008fe087b7929d6624e05d5db5c8 | [
"MIT"
] | null | null | null | import cv2
import numpy as np
import random
import os
charcters = ['a', 'b', 'c', 'd',
'e', 'f', 'g', 'h',
'i', 'j', 'k', 'l',
'm', 'n', 'o', 'p',
'q', 'r', 's', 't',
'u', 'v', 'w', 'x',
'y', 'z', 'A', 'B',
'C', 'D', 'E', 'F',
... | 24.721805 | 68 | 0.379258 |
7882f7aae1f9a3efd0f9219f4cbaba99eaa426b8 | 232 | py | Python | Taller de Estrucuras de Control Repeticion/Punto01.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | Taller de Estrucuras de Control Repeticion/Punto01.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | Taller de Estrucuras de Control Repeticion/Punto01.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | #punto 1
#entradas
n=int(input("Escriba el primer digito "))
k=int(input("Escriba el primer digito "))
#caja negra y salidas
while True:
n=0
if(k<n):
n=n-1
print(n)
elif(n==k):
print(k)
break | 17.846154 | 41 | 0.568966 |
7883b1c92ae0cd35356f8bfc3d8f7d8485f000d8 | 687 | py | Python | tests/test-cli.py | zondo/pypkg | edbd2b1d8aab1c2c0de219ac74c16688939591b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test-cli.py | zondo/pypkg | edbd2b1d8aab1c2c0de219ac74c16688939591b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | tests/test-cli.py | zondo/pypkg | edbd2b1d8aab1c2c0de219ac74c16688939591b9 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # TODO: update or remove this file
from pytest import raises
from pypkg import cli
| 20.818182 | 66 | 0.656477 |
7884640c82209137373642e0fa1bd092ed891be6 | 7,284 | py | Python | examples/_todo/http2-upload.py | karpierz/libcurl | 531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8 | [
"Zlib"
] | null | null | null | examples/_todo/http2-upload.py | karpierz/libcurl | 531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8 | [
"Zlib"
] | null | null | null | examples/_todo/http2-upload.py | karpierz/libcurl | 531bd28ab32fb07c152e5b5ca4bd4dbde059b9a8 | [
"Zlib"
] | null | null | null | #***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|... | 31.128205 | 82 | 0.605711 |
788466dc50026cba1153493f413a98170ae13869 | 11,775 | py | Python | Pinto Python/Cog/nsfw.py | KaroDC/Pinto-Bot-Discord | 2e30fafc8f71969ca062fcd9c27fe9f513da021f | [
"CC0-1.0"
] | null | null | null | Pinto Python/Cog/nsfw.py | KaroDC/Pinto-Bot-Discord | 2e30fafc8f71969ca062fcd9c27fe9f513da021f | [
"CC0-1.0"
] | null | null | null | Pinto Python/Cog/nsfw.py | KaroDC/Pinto-Bot-Discord | 2e30fafc8f71969ca062fcd9c27fe9f513da021f | [
"CC0-1.0"
] | null | null | null | import asyncio
import discord
from discord.ext import commands
import random
import time
from discord \
import Member, Guild
import datetime
from datetime import datetime
from datetime import date
import configparser
import os, os.path
import json
from discord.ext.commands import *
from discord.voice_... | 60.076531 | 2,143 | 0.639745 |
7885663aa4d13fc0c192951f418e5a31c44b6f75 | 669 | py | Python | tasks.py | joeblackwaslike/pyramid_bootstrap | fc2ee51f9d2d3853a00e44d92c4635d61b638671 | [
"BSD-3-Clause"
] | 1 | 2018-10-03T14:28:54.000Z | 2018-10-03T14:28:54.000Z | tasks.py | joeblackwaslike/pyramid_bootstrap | fc2ee51f9d2d3853a00e44d92c4635d61b638671 | [
"BSD-3-Clause"
] | 2 | 2018-11-17T06:39:30.000Z | 2018-11-17T07:00:58.000Z | tasks.py | joeblackwaslike/pyramid_bootstrap | fc2ee51f9d2d3853a00e44d92c4635d61b638671 | [
"BSD-3-Clause"
] | null | null | null | from invoke import task
| 17.153846 | 78 | 0.620329 |
7885dbd5f7373b3c816edd714c88459a8d8f263a | 6,143 | py | Python | lastimport.py | rafi/beets-lastimport | 72c199d599ee76f2a5fa366a032ad33491f2c82c | [
"MIT"
] | 4 | 2015-04-02T01:34:12.000Z | 2021-07-18T14:29:13.000Z | lastimport.py | rafi/beets-lastimport | 72c199d599ee76f2a5fa366a032ad33491f2c82c | [
"MIT"
] | 2 | 2015-09-29T12:09:37.000Z | 2016-03-28T09:07:01.000Z | lastimport.py | rafi/beets-lastimport | 72c199d599ee76f2a5fa366a032ad33491f2c82c | [
"MIT"
] | null | null | null | # coding=utf-8
# Copyright 2014, Rafael Bodill http://github.com/rafi
# vim: set ts=8 sw=4 tw=80 et :
import logging
import requests
from beets.plugins import BeetsPlugin
from beets import ui
from beets import dbcore
from beets import config
log = logging.getLogger('beets')
api_url = 'http://ws.audioscrobbler.com/2.... | 36.784431 | 118 | 0.551685 |
7886def95476186404819508e08c26b97962162b | 285 | py | Python | test/linkage-agent/manual/run_small_test_with_matches-single-schema.py | greshje/linkage-agent-tools | bc3a041c74cfe96950a0e3c011dd6a0185ad912d | [
"Apache-2.0"
] | 1 | 2020-06-25T19:57:56.000Z | 2020-06-25T19:57:56.000Z | test/linkage-agent/manual/run_small_test_with_matches-single-schema.py | greshje/linkage-agent-tools | bc3a041c74cfe96950a0e3c011dd6a0185ad912d | [
"Apache-2.0"
] | null | null | null | test/linkage-agent/manual/run_small_test_with_matches-single-schema.py | greshje/linkage-agent-tools | bc3a041c74cfe96950a0e3c011dd6a0185ad912d | [
"Apache-2.0"
] | null | null | null | import test_util.linkage.run_full_linkage_test as flt
if __name__ == "__main__":
run_test()
| 17.8125 | 106 | 0.719298 |
788709d330b05666610bcd073962880fd5a9d689 | 95,437 | py | Python | Spine_compartment.py | rribeiro-sci/CA3-CA1_SynapticModel | cd3e3e33c5ac816063d1186f90de043d2dac39d0 | [
"Apache-2.0"
] | 1 | 2021-05-29T17:23:53.000Z | 2021-05-29T17:23:53.000Z | Spine_compartment.py | rribeiro-sci/CA3-CA1_SynapticModel | cd3e3e33c5ac816063d1186f90de043d2dac39d0 | [
"Apache-2.0"
] | null | null | null | Spine_compartment.py | rribeiro-sci/CA3-CA1_SynapticModel | cd3e3e33c5ac816063d1186f90de043d2dac39d0 | [
"Apache-2.0"
] | 1 | 2021-01-18T11:36:06.000Z | 2021-01-18T11:36:06.000Z | from sympy import *
from pysb import *
from pysb.macros import *
from pysb.integrate import Solver
from pysb.simulator import ScipyOdeSimulator
import numpy as np
import math
CaMKII_states = [
#CaMKII-CaM complexes
'APO','CaMKII_CaM0','CaMKII_CaM1C','CaMKII_CaM2C','CaMKII_CaM1N','CaM... | 171.341113 | 296 | 0.771472 |
788b41630b9b5f35dd37ecd1a3387835bcbf60e0 | 8,963 | py | Python | bluebottle/assignments/tests/test_tasks.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | bluebottle/assignments/tests/test_tasks.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | bluebottle/assignments/tests/test_tasks.py | jayvdb/bluebottle | 305fea238e6aa831598a8b227223a1a2f34c4fcc | [
"BSD-3-Clause"
] | null | null | null | import mock
from datetime import timedelta
from django.core import mail
from django.db import connection
from django.utils import timezone
from django.utils.timezone import now
from bluebottle.assignments.models import Applicant
from bluebottle.assignments.tasks import assignment_tasks
from bluebottle.assignments.test... | 34.473077 | 100 | 0.642196 |
788bc7f4dda393bb2e1b1e58a66b9417d93958ac | 6,569 | py | Python | Autonomous_Control/Image_Processing/3_Coordinate_Transformation.py | tatsujin16/Intellectual_Robot_Contest_2019 | 2dfdcb11ecea991dbbf053f8a71dd7e0838c4626 | [
"BSD-3-Clause"
] | null | null | null | Autonomous_Control/Image_Processing/3_Coordinate_Transformation.py | tatsujin16/Intellectual_Robot_Contest_2019 | 2dfdcb11ecea991dbbf053f8a71dd7e0838c4626 | [
"BSD-3-Clause"
] | 1 | 2019-02-02T12:06:22.000Z | 2019-02-02T12:06:22.000Z | Autonomous_Control/Image_Processing/3_Coordinate_Transformation.py | tatsujin16/Intellectual_Robot_Contest_2019 | 2dfdcb11ecea991dbbf053f8a71dd7e0838c4626 | [
"BSD-3-Clause"
] | 1 | 2022-03-19T07:37:41.000Z | 2022-03-19T07:37:41.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import rospy
import cv2
import math
import numpy as np
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
from geometry_msgs.msg import Twist
if __name__ == '__main__':
rospy.init_node('senbetu')
first = first()
try:
flag = 0
FLAG = 0
... | 32.519802 | 99 | 0.662506 |
788c561cae83a0b026113760792b993844a1fd3d | 6,282 | py | Python | temp-uplift-submission/keras/criteo_keras.py | damslab/reproducibility | f7804b2513859f7e6f14fa7842d81003d0758bf8 | [
"Apache-2.0"
] | 4 | 2021-12-10T17:20:26.000Z | 2021-12-27T14:38:40.000Z | temp-uplift-submission/keras/criteo_keras.py | damslab/reproducibility | f7804b2513859f7e6f14fa7842d81003d0758bf8 | [
"Apache-2.0"
] | null | null | null | temp-uplift-submission/keras/criteo_keras.py | damslab/reproducibility | f7804b2513859f7e6f14fa7842d81003d0758bf8 | [
"Apache-2.0"
] | null | null | null | # Notes from this experiment:
# 1. adapt() is way slower than np.unique -- takes forever for 1M, hangs for 10M
# 2. TF returns error if adapt is inside tf.function. adapt uses graph inside anyway
# 3. OOM in batch mode during sparse_to_dense despite of seting sparse in keras
# 4. Mini-batch works but 15x(g)/20x slower ... | 35.094972 | 109 | 0.683859 |
788d68479fe04280827b76769dc0786af1cc14a6 | 2,674 | py | Python | dev/examples/tungraph.py | Cam2337/snap-python | 0bf722b461f8b5aae3ecb2757313521e9e9e76f1 | [
"BSD-3-Clause"
] | 242 | 2015-01-01T08:40:28.000Z | 2022-03-18T05:22:09.000Z | dev/examples/tungraph.py | Cam2337/snap-python | 0bf722b461f8b5aae3ecb2757313521e9e9e76f1 | [
"BSD-3-Clause"
] | 99 | 2015-01-24T07:55:27.000Z | 2021-10-30T18:20:13.000Z | dev/examples/tungraph.py | Cam2337/snap-python | 0bf722b461f8b5aae3ecb2757313521e9e9e76f1 | [
"BSD-3-Clause"
] | 105 | 2015-03-03T06:45:17.000Z | 2022-02-24T15:52:40.000Z | import random
import sys
sys.path.append("../swig-r")
import snap
def PrintGStats(s, Graph):
'''
Print graph statistics
'''
print "graph %s, nodes %d, edges %d, empty %s" % (
s, Graph.GetNodes(), Graph.GetEdges(),
"yes" if Graph.Empty() else "no")
def DefaultConstructor():
'''
... | 21.739837 | 81 | 0.590501 |
788d9f10991bc4c7b3a38207e1f6be477cfb9b55 | 1,145 | py | Python | testsuite/driver/src/case/case_pipeline/cicd_run.py | openmaple/MapleCompiler | 1648e63144766563f1ec44a25e0b618415648627 | [
"MulanPSL-1.0"
] | 5 | 2019-09-02T04:44:52.000Z | 2021-11-08T12:23:51.000Z | testsuite/driver/src/case/case_pipeline/cicd_run.py | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | 2 | 2020-07-21T01:22:01.000Z | 2021-12-06T08:07:16.000Z | testsuite/driver/src/case/case_pipeline/cicd_run.py | venshine/OpenArkCompiler | 264cd4463834356658154f0d254672ef559f245f | [
"MulanPSL-1.0"
] | 4 | 2019-09-02T04:46:52.000Z | 2020-09-10T11:30:03.000Z | #
# Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved.
#
# OpenArkCompiler is licensed under Mulan PSL v2.
# You can use this software according to the terms and conditions of the Mulan PSL v2.
#
# http://license.coscl.org.cn/MulanPSL2
#
# THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WA... | 33.676471 | 87 | 0.734498 |
788e0638a7912e25398b0f82d66adabc2d629b91 | 1,381 | py | Python | weighted_round_robin.py | ppd0705/cheatsheet | 224a50cb69ad82d4134b2b40a204731b2d71c22d | [
"MIT"
] | null | null | null | weighted_round_robin.py | ppd0705/cheatsheet | 224a50cb69ad82d4134b2b40a204731b2d71c22d | [
"MIT"
] | null | null | null | weighted_round_robin.py | ppd0705/cheatsheet | 224a50cb69ad82d4134b2b40a204731b2d71c22d | [
"MIT"
] | null | null | null | from typing import List
def test():
config = [
("192.168.0.1", 1),
("192.168.0.2", 2),
("192.168.0.3", 1),
]
robin = WeightedRoundRobin()
robin.load_config(config)
for i in range(12):
print(i, robin.next_item())
if __name__ == "__main__":
test()
| 24.660714 | 99 | 0.577118 |
788e8236832189bd8502b010fdb3dd0a1e59ce61 | 2,181 | py | Python | project/store/migrations/0014_auto_20220225_2209.py | aliharby12/Book-Store | d2d1d374f58ad1e64e5e470567f6cf347f5cf09a | [
"MIT"
] | null | null | null | project/store/migrations/0014_auto_20220225_2209.py | aliharby12/Book-Store | d2d1d374f58ad1e64e5e470567f6cf347f5cf09a | [
"MIT"
] | null | null | null | project/store/migrations/0014_auto_20220225_2209.py | aliharby12/Book-Store | d2d1d374f58ad1e64e5e470567f6cf347f5cf09a | [
"MIT"
] | null | null | null | # Generated by Django 3.2.12 on 2022-02-25 22:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 38.946429 | 121 | 0.581843 |
788ef5797ec899062ba67a9e06ab2fab88608b1a | 5,663 | py | Python | generate_datasets/subset_data.py | ExaScience/ICU72hReadmissionMIMICIII | 8ebf984e30f938f32eef44ae0a924279d2aa5e35 | [
"MIT"
] | null | null | null | generate_datasets/subset_data.py | ExaScience/ICU72hReadmissionMIMICIII | 8ebf984e30f938f32eef44ae0a924279d2aa5e35 | [
"MIT"
] | null | null | null | generate_datasets/subset_data.py | ExaScience/ICU72hReadmissionMIMICIII | 8ebf984e30f938f32eef44ae0a924279d2aa5e35 | [
"MIT"
] | null | null | null | # Author: T.J.Ashby
import sys, yaml
import logging as lg
import pandas as pd
import numpy as np
writeOpts = {"index": False}
#
# Demographic things it is possible to split on:
# - Age (via DoB), gender, insurance type, language, Religion,
# Marital status, Ethnicity
#
if __name__ == "__main__":
if l... | 24.515152 | 85 | 0.562776 |
788f71f9cc159c688647d0021e6480432be1fe82 | 226 | py | Python | tutorial/client.py | kangjunseo/GraphQL | dde0381ddde80c4716d5d0233e95710d93a15a70 | [
"MIT"
] | null | null | null | tutorial/client.py | kangjunseo/GraphQL | dde0381ddde80c4716d5d0233e95710d93a15a70 | [
"MIT"
] | null | null | null | tutorial/client.py | kangjunseo/GraphQL | dde0381ddde80c4716d5d0233e95710d93a15a70 | [
"MIT"
] | null | null | null | from gql import Client
from gql.transport.requests import RequestsHTTPTransport
transport = RequestsHTTPTransport(url='http://localhost:8080/v1/graphql')
client = Client(transport=transport, fetch_schema_from_transport=True) | 37.666667 | 73 | 0.840708 |
7890a9ac57b7e561a802cc1147129631ec3f222c | 5,667 | py | Python | EBooks/doub/deal/MergeBooks.py | Zhangsongsong/BookCreeper | f0230183415b669d9e8b0ff8dd6beef4e81fab6e | [
"Apache-2.0"
] | null | null | null | EBooks/doub/deal/MergeBooks.py | Zhangsongsong/BookCreeper | f0230183415b669d9e8b0ff8dd6beef4e81fab6e | [
"Apache-2.0"
] | null | null | null | EBooks/doub/deal/MergeBooks.py | Zhangsongsong/BookCreeper | f0230183415b669d9e8b0ff8dd6beef4e81fab6e | [
"Apache-2.0"
] | null | null | null | import json
import os
import time
import requests
from bs4 import BeautifulSoup
dir_path = '../tags'
book_count = 0 #
book_current_index = 0 #
search_url = 'https://search.jd.com/Search?keyword='
is_test_url = True
test_url = 'https://item.jd.com/34870119640.html'
# https://search.jd.com/Search?keyword=978075... | 26.605634 | 140 | 0.63508 |
7890bbd6fd56995fe464c872f16b285039cd45df | 5,551 | py | Python | doc/source/conf.py | Steap/glance | 4ee7799aa7f6a7172e361392ebb8d3da03e0bf7f | [
"Apache-2.0"
] | 309 | 2015-01-01T17:49:09.000Z | 2022-03-29T14:56:31.000Z | doc/source/conf.py | Steap/glance | 4ee7799aa7f6a7172e361392ebb8d3da03e0bf7f | [
"Apache-2.0"
] | 8 | 2015-11-04T21:53:48.000Z | 2020-12-15T05:36:35.000Z | doc/source/conf.py | Steap/glance | 4ee7799aa7f6a7172e361392ebb8d3da03e0bf7f | [
"Apache-2.0"
] | 409 | 2015-01-01T11:28:26.000Z | 2022-03-29T14:56:41.000Z | # Copyright (c) 2010 OpenStack Foundation.
#
# 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... | 34.055215 | 79 | 0.686183 |
7890d31074445637c4cacf5245fdf255f2aa2b63 | 7,657 | py | Python | multidynet/lsm.py | joshloyal/multidynet | 46d55c7d71ce6d3e8f95a821086c479e51f69d3e | [
"MIT"
] | null | null | null | multidynet/lsm.py | joshloyal/multidynet | 46d55c7d71ce6d3e8f95a821086c479e51f69d3e | [
"MIT"
] | null | null | null | multidynet/lsm.py | joshloyal/multidynet | 46d55c7d71ce6d3e8f95a821086c479e51f69d3e | [
"MIT"
] | null | null | null | import warnings
import numpy as np
import scipy.sparse as sp
from joblib import Parallel, delayed
from scipy.special import expit
from sklearn.exceptions import ConvergenceWarning
from sklearn.utils import check_array, check_random_state
from sklearn.linear_model import LogisticRegression
from tqdm import tqdm
from ... | 32.722222 | 79 | 0.627008 |
7891711806c7f847225bcd4ef272594e29c3c685 | 3,226 | py | Python | SciGen/Classification/SupportVectorClassification.py | SamuelSchmidgall/SciGen | d030b71ab87a034f9d59c5a53f501e96411dc0b2 | [
"MIT"
] | 1 | 2018-08-07T12:54:25.000Z | 2018-08-07T12:54:25.000Z | SciGen/Classification/SupportVectorClassification.py | SamuelSchmidgall/SciGen | d030b71ab87a034f9d59c5a53f501e96411dc0b2 | [
"MIT"
] | null | null | null | SciGen/Classification/SupportVectorClassification.py | SamuelSchmidgall/SciGen | d030b71ab87a034f9d59c5a53f501e96411dc0b2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
__author__ = "Samuel Schmidgall"
__license__ = "MIT"
__email__ = "sschmidg@masonlive.gmu.edu"
__credits__ = "Steve Schluchter -- An amazing Linear Algebra Professor"
import cvxopt
import numpy as np
svm = SupportVectorClassification()
y = np.array([np.array([1]), np.array([-1]), np.array([-1])... | 44.191781 | 120 | 0.656541 |
7891d4f790cebcaa519618ec2a9893abe51a0ac2 | 3,939 | py | Python | apicrawler/recipeAPIcrawler_edeka.py | kuehlfrank/database | 02ca4e47d17812a3d3278d5d792673f8655aac2e | [
"MIT"
] | null | null | null | apicrawler/recipeAPIcrawler_edeka.py | kuehlfrank/database | 02ca4e47d17812a3d3278d5d792673f8655aac2e | [
"MIT"
] | null | null | null | apicrawler/recipeAPIcrawler_edeka.py | kuehlfrank/database | 02ca4e47d17812a3d3278d5d792673f8655aac2e | [
"MIT"
] | null | null | null | import os
import requests
import json
import time
import random
import math
baseUrl = "https://www.edeka.de/rezepte/rezept/suche"
external_baseUrl = "https://www.edeka.de"
resultsPerPage = 50
pageQuery = f"?size={resultsPerPage}&page="
meta = getMeta()
print("Meta: ", meta)
pageNumbers = list(set(ran... | 35.169643 | 121 | 0.626301 |
78929e5b80861ead39ef491466b5f4b9c554e996 | 557 | py | Python | winney/mock.py | olivetree123/Winney | 60068d64ee891bd92b93ce32b599984374eb66ed | [
"MIT"
] | null | null | null | winney/mock.py | olivetree123/Winney | 60068d64ee891bd92b93ce32b599984374eb66ed | [
"MIT"
] | null | null | null | winney/mock.py | olivetree123/Winney | 60068d64ee891bd92b93ce32b599984374eb66ed | [
"MIT"
] | 2 | 2021-07-05T03:43:44.000Z | 2021-07-05T06:20:20.000Z | import json
| 29.315789 | 77 | 0.551167 |
7895b13d15e98c3f315e13cd0623812e5608674a | 3,371 | py | Python | robotcode/language_server/common/parts/code_lens.py | mardukbp/robotcode | 0b34cf6e7931423117036fcf70f74e27da0cfb0f | [
"Apache-2.0"
] | null | null | null | robotcode/language_server/common/parts/code_lens.py | mardukbp/robotcode | 0b34cf6e7931423117036fcf70f74e27da0cfb0f | [
"Apache-2.0"
] | null | null | null | robotcode/language_server/common/parts/code_lens.py | mardukbp/robotcode | 0b34cf6e7931423117036fcf70f74e27da0cfb0f | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
from asyncio import CancelledError
from typing import TYPE_CHECKING, Any, List, Optional
from ....jsonrpc2.protocol import rpc_method
from ....utils.async_event import async_tasking_event
from ....utils.logging import LoggingDescriptor
from ..has_extend_capabilities import HasExtend... | 34.397959 | 119 | 0.671314 |
78967c49684ac762b8b74a704ee030be3f8af872 | 3,893 | py | Python | train_utils.py | BenTimor/Tensorflow-CharRNN | c13520dc077734e6646f9a31e785ae4dff6cf4a0 | [
"MIT"
] | 1 | 2020-12-07T05:43:15.000Z | 2020-12-07T05:43:15.000Z | train_utils.py | BenTimor/Tensorflow-CharRNN | c13520dc077734e6646f9a31e785ae4dff6cf4a0 | [
"MIT"
] | null | null | null | train_utils.py | BenTimor/Tensorflow-CharRNN | c13520dc077734e6646f9a31e785ae4dff6cf4a0 | [
"MIT"
] | null | null | null | import argparse
import os
import pickle
import tensorflow as tf
from pathlib import Path | 48.061728 | 166 | 0.650912 |
78968aaa1ea2986f476f8ba1fea4dd7babce0e4e | 1,580 | py | Python | Python/interview/wordLadder.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | 2 | 2015-12-02T06:44:01.000Z | 2016-05-04T21:40:54.000Z | Python/interview/wordLadder.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | Python/interview/wordLadder.py | darrencheng0817/AlgorithmLearning | aec1ddd0c51b619c1bae1e05f940d9ed587aa82f | [
"MIT"
] | null | null | null | '''
Created on 2015121
https://leetcode.com/problems/word-ladder/
@author: Darren
'''
startWord="hit"
endWord="cog"
wordDic=["hot","dot","dog","lot","log"]
print("->".join(wordLadder(startWord, endWord, wordDic, ["hit"],set())))
res=[]
wordLadder2(startWord, endWord, wordDic, [startWord], set(), res)
print(res)
for ite... | 37.619048 | 82 | 0.582278 |
789851294dd8964c382766b8bcbe878892ade4a7 | 2,030 | py | Python | dogs/migrations/0004_event_owner.py | Shovatandukar/dog-meetup-backend | 3ee3bf3dcf8c2f2debd7f65daffdd04ed8b4f0e2 | [
"MIT"
] | null | null | null | dogs/migrations/0004_event_owner.py | Shovatandukar/dog-meetup-backend | 3ee3bf3dcf8c2f2debd7f65daffdd04ed8b4f0e2 | [
"MIT"
] | null | null | null | dogs/migrations/0004_event_owner.py | Shovatandukar/dog-meetup-backend | 3ee3bf3dcf8c2f2debd7f65daffdd04ed8b4f0e2 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.8 on 2021-10-31 02:47
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
| 41.428571 | 144 | 0.580296 |
789a635e3575e364aecc712d57f33d3349e7aaa8 | 1,597 | py | Python | PythonClient/ros/car_pose.py | jeyong/AirSim | 1fd6a3fc311c704bbbb0b2b6b245e8fa0ba26c8b | [
"MIT"
] | 81 | 2019-02-13T07:26:38.000Z | 2022-03-28T05:59:13.000Z | PythonClient/ros/car_pose.py | jeyong/AirSim | 1fd6a3fc311c704bbbb0b2b6b245e8fa0ba26c8b | [
"MIT"
] | 53 | 2019-04-04T15:15:22.000Z | 2021-11-12T20:24:35.000Z | PythonClient/ros/car_pose.py | jeyong/AirSim | 1fd6a3fc311c704bbbb0b2b6b245e8fa0ba26c8b | [
"MIT"
] | 22 | 2019-04-12T21:26:42.000Z | 2021-10-05T07:31:17.000Z | #!/usr/bin/env python
import setup_path
import airsim
import rospy
import tf
from std_msgs.msg import String
from geometry_msgs.msg import PoseStamped
import time
if __name__ == '__main__':
try:
airpub()
except rospy.ROSInterruptException:
pass
| 26.180328 | 66 | 0.659361 |
789a8b6a143321238f15f28d6ecfb395ecb6c7b7 | 18,291 | py | Python | afk-q-babyai/babyai/levels/query.py | IouJenLiu/AFK | db2b47bb3a5614b61766114b87f143e4a61a4a8d | [
"MIT"
] | 1 | 2022-03-12T03:10:29.000Z | 2022-03-12T03:10:29.000Z | afk-q-babyai/babyai/levels/query.py | IouJenLiu/AFK | db2b47bb3a5614b61766114b87f143e4a61a4a8d | [
"MIT"
] | null | null | null | afk-q-babyai/babyai/levels/query.py | IouJenLiu/AFK | db2b47bb3a5614b61766114b87f143e4a61a4a8d | [
"MIT"
] | null | null | null | import gym
import re
import numpy as np
import time
other_places = ['kitchen', 'restroom', 'livingroom']
other_colors = ['red', 'yellow', 'white']
other_directions = ['east', 'west', 'second floor']
import random
if __name__ == "__main__":
import babyai
# env_name = 'BabyAI-Unlock-v0'
# env_name = 'BabyA... | 42.537209 | 187 | 0.515663 |
789b66fe9ba6da885c4455ece0da384a88252cc4 | 7,465 | py | Python | ui/tkinter/versionchooser.py | adpoliak/NSAptr | d89ad39cc001dcc1ed1a2c58dafb0d6eca0a75e8 | [
"PSF-2.0",
"Apache-2.0"
] | null | null | null | ui/tkinter/versionchooser.py | adpoliak/NSAptr | d89ad39cc001dcc1ed1a2c58dafb0d6eca0a75e8 | [
"PSF-2.0",
"Apache-2.0"
] | null | null | null | ui/tkinter/versionchooser.py | adpoliak/NSAptr | d89ad39cc001dcc1ed1a2c58dafb0d6eca0a75e8 | [
"PSF-2.0",
"Apache-2.0"
] | null | null | null | """
Copyright 2016 adpoliak
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,... | 48.16129 | 119 | 0.606698 |
789bb735318c5ba94c94b67412b14d29f7f022d2 | 3,760 | py | Python | schematool/db/db.py | jonahgeorge/schema-tool | bc315e1a0d231fbb19ea9b5a7fa762b5c3c14024 | [
"Apache-2.0"
] | 40 | 2015-01-26T19:02:03.000Z | 2021-02-01T16:30:43.000Z | schematool/db/db.py | jonahgeorge/schema-tool | bc315e1a0d231fbb19ea9b5a7fa762b5c3c14024 | [
"Apache-2.0"
] | 45 | 2015-01-26T18:53:51.000Z | 2021-08-30T18:18:56.000Z | schematool/db/db.py | jonahgeorge/schema-tool | bc315e1a0d231fbb19ea9b5a7fa762b5c3c14024 | [
"Apache-2.0"
] | 21 | 2015-02-04T17:34:16.000Z | 2022-02-21T09:00:41.000Z | # stdlib imports
import subprocess
import sys
# local imports
from errors import AppliedAlterError
# TODO: Move connection management to schema.py. Instantiate a connection
# before each run() method and close it at the end, using the DB.conn() method.
| 34.814815 | 82 | 0.566223 |
789bd81d5d2f9bf97c6a9d7820c6c532dad0b0b6 | 15,050 | py | Python | library_old/iworkflow_service_template.py | Larsende/f5_ansible | 93b0747ba663128e2c8dfc456dad4653cdde4f38 | [
"Apache-2.0"
] | 12 | 2016-12-29T16:09:21.000Z | 2019-06-29T14:12:17.000Z | library_old/iworkflow_service_template.py | Larsende/f5_ansible | 93b0747ba663128e2c8dfc456dad4653cdde4f38 | [
"Apache-2.0"
] | 24 | 2017-05-24T07:56:56.000Z | 2017-11-30T09:31:56.000Z | library_old/iworkflow_service_template.py | Larsende/f5_ansible | 93b0747ba663128e2c8dfc456dad4653cdde4f38 | [
"Apache-2.0"
] | 26 | 2017-05-31T17:15:32.000Z | 2021-03-29T03:45:06.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2017 F5 Networks Inc.
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... | 31.684211 | 93 | 0.576678 |
789df9cf2b6a7af914a61aa99296f3c73879daf5 | 2,017 | py | Python | active_learning/archive/json2sql.py | kant/CameraTraps | d7fbe55b9098ed9d13d85fc3fce9902986bbf465 | [
"MIT"
] | null | null | null | active_learning/archive/json2sql.py | kant/CameraTraps | d7fbe55b9098ed9d13d85fc3fce9902986bbf465 | [
"MIT"
] | null | null | null | active_learning/archive/json2sql.py | kant/CameraTraps | d7fbe55b9098ed9d13d85fc3fce9902986bbf465 | [
"MIT"
] | null | null | null | import json
import sqlite3
with open("mnt/databases/emammal/eMammal_20180929.json") as f:
loaded_json = json.loads(f.read())
conn=sqlite3.connect("emammal.db")
for key in loaded_json.keys():
print(key)
records= loaded_json[key]
if isinstance(records,list):
sample= records[0]
else:
sa... | 26.539474 | 72 | 0.616262 |
789ecd7f205ac32e1321d079bdbf084feed9bd43 | 2,628 | py | Python | volunteerapp/views.py | mclark4386/volunteer_connection | d869da4ada3cf17d5ff857ecab9e486b696063aa | [
"MIT"
] | null | null | null | volunteerapp/views.py | mclark4386/volunteer_connection | d869da4ada3cf17d5ff857ecab9e486b696063aa | [
"MIT"
] | 31 | 2017-10-23T20:21:11.000Z | 2017-12-14T00:28:56.000Z | volunteerapp/views.py | mclark4386/volunteer_connection | d869da4ada3cf17d5ff857ecab9e486b696063aa | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from django.contrib.auth import authenticate, login
from django.views.generic import View
from django.contrib.auth.models import User
from .forms import UserForm
from .models import UserProfile, Project, Tag
from .search import get_query
| 36.5 | 110 | 0.651065 |
78a06368f6b3d1db99ead5824fb2f3066059c020 | 7,697 | py | Python | dbr/log.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 97 | 2016-09-16T08:44:04.000Z | 2022-01-29T22:30:18.000Z | dbr/log.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 34 | 2016-09-20T00:42:45.000Z | 2021-04-16T07:21:44.000Z | dbr/log.py | RogueScholar/debreate | 0abc168c51336b31ff87c61f84bc7bb6000e88f4 | [
"MIT"
] | 24 | 2016-09-16T08:44:56.000Z | 2021-07-29T11:32:47.000Z | # -*- coding: utf-8 -*-
## \package dbr.log
# MIT licensing
# See: docs/LICENSE.txt
import os, sys
from fileio.fileio import AppendFile
from globals.dateinfo import GetDate
from globals.dateinfo import GetTime
from globals.dateinfo import dtfmt
from globals.paths import PATH_logs
from globals.strings import GetM... | 27.489286 | 95 | 0.682993 |
78a575e2a869ab627681f1fedb5962e755a14fed | 3,576 | py | Python | utils/cnn_dm_reader.py | ruiyiw/VT-summ | 897795e307604e724a32ffae175b717ba55b6fa6 | [
"MIT"
] | null | null | null | utils/cnn_dm_reader.py | ruiyiw/VT-summ | 897795e307604e724a32ffae175b717ba55b6fa6 | [
"MIT"
] | null | null | null | utils/cnn_dm_reader.py | ruiyiw/VT-summ | 897795e307604e724a32ffae175b717ba55b6fa6 | [
"MIT"
] | null | null | null | import torch
import torch.utils.data as data
import random
import math
import os
import logging
from utils import config
import pickle
from tqdm import tqdm
import numpy as np
import pprint
pp = pprint.PrettyPrinter(indent=1)
import re
import time
import nltk
| 36.121212 | 272 | 0.611857 |
78a656398a16cf92b1840550a99d0c8c24bbfa30 | 79 | py | Python | wetterdienst/dwd/__init__.py | kmuehlbauer/wetterdienst | 85e72ccdbd00f0e8285e1ba24800dfafb81ccd63 | [
"MIT"
] | 1 | 2021-01-23T22:52:52.000Z | 2021-01-23T22:52:52.000Z | wetterdienst/dwd/__init__.py | kmuehlbauer/wetterdienst | 85e72ccdbd00f0e8285e1ba24800dfafb81ccd63 | [
"MIT"
] | null | null | null | wetterdienst/dwd/__init__.py | kmuehlbauer/wetterdienst | 85e72ccdbd00f0e8285e1ba24800dfafb81ccd63 | [
"MIT"
] | null | null | null | # Load Pandas DataFrame extension.
import wetterdienst.dwd.pandas # noqa:F401
| 26.333333 | 43 | 0.797468 |
78a80518172fc9f436295e54d6a5409fd478b55c | 12,592 | py | Python | registration.py | shubham9019/omega_attendance_manager | 8380be39c73ee80881a0d85e31fa6d77241b6ef7 | [
"MIT"
] | null | null | null | registration.py | shubham9019/omega_attendance_manager | 8380be39c73ee80881a0d85e31fa6d77241b6ef7 | [
"MIT"
] | null | null | null | registration.py | shubham9019/omega_attendance_manager | 8380be39c73ee80881a0d85e31fa6d77241b6ef7 | [
"MIT"
] | 2 | 2021-10-04T16:11:28.000Z | 2021-10-04T16:26:48.000Z | from tkinter import *
from tkinter import messagebox
import sys
import os
import signal
import time
from subprocess import *
from tkinter.scrolledtext import ScrolledText
import sqlite3
#file_previous_close()
#writing_id()
root=Tk()
login_home=Home(root)
root.wm_geometry("1360x1200")
root.title("Register Her... | 36.183908 | 592 | 0.623015 |
78ab4326f80d76730eef3f6eac297ce917cdf420 | 2,605 | py | Python | DigitizationUtilities/ErrorMapsToPDFGenerator.py | annusgit/forestcoverUnet | 8ba4eafc6e5d637d3b08fa20d029e25173f96074 | [
"MIT"
] | 25 | 2018-09-13T09:37:14.000Z | 2021-12-07T07:12:56.000Z | DigitizationUtilities/ErrorMapsToPDFGenerator.py | annusgit/forestcoverUnet | 8ba4eafc6e5d637d3b08fa20d029e25173f96074 | [
"MIT"
] | null | null | null | DigitizationUtilities/ErrorMapsToPDFGenerator.py | annusgit/forestcoverUnet | 8ba4eafc6e5d637d3b08fa20d029e25173f96074 | [
"MIT"
] | 6 | 2018-09-04T15:26:26.000Z | 2021-09-14T12:42:43.000Z | from fpdf import FPDF
import os
rgb_path = 'E:\Forest Cover - Redo 2020\Trainings and Results\Error Maps\model_48_topologyENC_4_DEC_4_lr1e-06_bands3'
full_spectrum_path = 'E:\Forest Cover - Redo 2020\Trainings and Results\Error Maps\model_14_topologyENC_4_DEC_4_lr1e-06_bands11'
augmented_path = 'E:\Forest Cover - Redo... | 54.270833 | 128 | 0.68215 |
78ac3e7f110ada7eff3ac99e4714deb4503eb74a | 737 | py | Python | tester/tester/timeout.py | cppseminar/testscripts | 6f6f9fdb6b9d060b1abc81874b44c8c432abf703 | [
"MIT"
] | 4 | 2020-09-17T20:03:42.000Z | 2022-01-28T14:33:39.000Z | tester/tester/timeout.py | cppseminar/APC | 2e861c8e260984c9e27c1ffd0156517dc77281a2 | [
"MIT"
] | 6 | 2020-08-07T20:56:49.000Z | 2022-03-23T12:32:54.000Z | tester/tester/timeout.py | cppseminar/testscripts | 6f6f9fdb6b9d060b1abc81874b44c8c432abf703 | [
"MIT"
] | 2 | 2019-10-18T15:13:38.000Z | 2019-10-29T15:09:09.000Z | import logging
import os
import time
import math
logger = logging.getLogger(__name__)
| 30.708333 | 80 | 0.687924 |
78ae3554021cfc88318882cb99e9d402f6fbbb9d | 664 | py | Python | katana/pedals/effects/pedal_wah.py | leon3110l/katana_tsl_patch | a88cb35f524ba1941ccb4f94e0dcaa02df11fd18 | [
"MIT"
] | null | null | null | katana/pedals/effects/pedal_wah.py | leon3110l/katana_tsl_patch | a88cb35f524ba1941ccb4f94e0dcaa02df11fd18 | [
"MIT"
] | null | null | null | katana/pedals/effects/pedal_wah.py | leon3110l/katana_tsl_patch | a88cb35f524ba1941ccb4f94e0dcaa02df11fd18 | [
"MIT"
] | null | null | null | from ..wah import WahSubType
from .. import FXType, FXPedal | 28.869565 | 55 | 0.552711 |
78affeca96ff6d196abdae15db085ce16f4912a9 | 1,922 | py | Python | bezos.py | cmcai0104/bezos | b3940ad7dcfd4a317ba98eb0fdbc2b571799bf3b | [
"MIT"
] | 1 | 2019-04-08T01:58:00.000Z | 2019-04-08T01:58:00.000Z | bezos.py | cmcai0104/bezos | b3940ad7dcfd4a317ba98eb0fdbc2b571799bf3b | [
"MIT"
] | null | null | null | bezos.py | cmcai0104/bezos | b3940ad7dcfd4a317ba98eb0fdbc2b571799bf3b | [
"MIT"
] | null | null | null | import argparse
from yaml import load
from utils import print_dic
from io import open
from toolz.dicttoolz import merge
from runner import Runner
from evaluator import Evaluator
parser = argparse.ArgumentParser(description='Bezos')
parser.add_argument('--config', default='test.yaml',
help='Configur... | 35.592593 | 78 | 0.478668 |
78b08def2226ac6b96669b878c29e036856cfec7 | 2,328 | py | Python | revkit/export/qiskit.py | msoeken/revkit | a59fa132f73a2483a00b11c23f5f1c599a34f074 | [
"MIT"
] | 16 | 2019-02-08T04:23:05.000Z | 2021-11-17T11:44:43.000Z | revkit/export/qiskit.py | isathish/revkit | a59fa132f73a2483a00b11c23f5f1c599a34f074 | [
"MIT"
] | 2 | 2019-03-22T06:21:01.000Z | 2020-06-25T16:21:25.000Z | revkit/export/qiskit.py | isathish/revkit | a59fa132f73a2483a00b11c23f5f1c599a34f074 | [
"MIT"
] | 4 | 2019-05-06T17:46:08.000Z | 2022-03-23T10:09:29.000Z | from _revkit import netlist, gate
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
def _to_qiskit(self, circuit=None, with_classical_register=False):
"""
Convert RevKit quantum circuit into Qiskit quantum circuit
:param qiskit.QuantumCircuit circuit: If not `None`, add gates to this circui... | 29.468354 | 83 | 0.629296 |