hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
248
max_issues_repo_name
stringlengths
5
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
248
max_forks_repo_name
stringlengths
5
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
dd1aa8274a7a29ed0c0e03c51dfff1daaec8435e
26
py
Python
data/studio21_generated/introductory/4783/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4783/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/introductory/4783/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def weather_info (temp):
13
24
0.730769
0
0
0
0
0
0
0
0
0
0
dd1d14cad8d7b51f2d3997d8681795f2ed9d4e1a
2,863
py
Python
server/blog/models.py
rafay826/django-react
60bd7dcea8bb5c921f80d064e4d16fa34381ae09
[ "MIT" ]
null
null
null
server/blog/models.py
rafay826/django-react
60bd7dcea8bb5c921f80d064e4d16fa34381ae09
[ "MIT" ]
12
2020-06-05T21:17:35.000Z
2022-03-11T23:49:11.000Z
server/blog/models.py
midasdev711/djudo
5717ad63b0ef5dddddfd1d3839fa5231ac21972f
[ "MIT" ]
null
null
null
from django.db import models from django.db.models import permalink from django.core.urlresolvers import reverse from comments.models import Comment # Create your models here. class PostManager(models.Manager): def active(self, *args, **kwargs): return super(PostManager, self) def upload_location(instanc...
35.7875
103
0.691233
2,044
0.713936
0
0
133
0.046455
0
0
689
0.240657
dd1d3ef072d0bbe5516060cc303f3f2982632867
305
py
Python
django_obfuscator/testobfuscator/models.py
vishnuc91/obfuscator-date
d4424cb7823dbf20543c5cc2bc0ce48d8d62a69a
[ "Apache-2.0" ]
null
null
null
django_obfuscator/testobfuscator/models.py
vishnuc91/obfuscator-date
d4424cb7823dbf20543c5cc2bc0ce48d8d62a69a
[ "Apache-2.0" ]
null
null
null
django_obfuscator/testobfuscator/models.py
vishnuc91/obfuscator-date
d4424cb7823dbf20543c5cc2bc0ce48d8d62a69a
[ "Apache-2.0" ]
null
null
null
from django.db import models # Create your models here. class MyModel(models.Model): aname = models.CharField(max_length=100, null=True, blank=True) anint = models.IntegerField(default=999) astring = models.CharField(max_length=50) date = models.DateField('Date', null=True, blank=True)
30.5
67
0.734426
246
0.806557
0
0
0
0
0
0
32
0.104918
dd1d5f6520079cb76d00ac62e5817128a147acb0
69
py
Python
pyintercept/handlers/print_handler.py
caioariede/pyintercept
19039ce3038521bf32aaafe207024adeb0096749
[ "MIT" ]
32
2015-07-20T21:13:26.000Z
2018-04-05T13:53:28.000Z
pyintercept/handlers/print_handler.py
caioariede/pyintercept
19039ce3038521bf32aaafe207024adeb0096749
[ "MIT" ]
2
2019-07-23T17:38:06.000Z
2020-02-27T13:38:02.000Z
pyintercept/handlers/print_handler.py
caioariede/pyintercept
19039ce3038521bf32aaafe207024adeb0096749
[ "MIT" ]
3
2015-08-09T14:48:38.000Z
2020-02-27T12:58:46.000Z
def print_(origfn, *args, **kwargs): print args print kwargs
17.25
36
0.652174
0
0
0
0
0
0
0
0
0
0
dd1ed841552b8b3a90cb7777b80332b35c886661
7,621
py
Python
PySyft_dev/FL_BC/cryptolib/wrapper_pyca.py
samuelxu999/FederatedLearning_dev
354d951c53ee20eb41bf7980210d61b7a358d341
[ "MIT" ]
null
null
null
PySyft_dev/FL_BC/cryptolib/wrapper_pyca.py
samuelxu999/FederatedLearning_dev
354d951c53ee20eb41bf7980210d61b7a358d341
[ "MIT" ]
2
2021-03-17T23:27:00.000Z
2021-03-17T23:27:01.000Z
PySyft_dev/FL_BC/cryptolib/wrapper_pyca.py
samuelxu999/FederatedLearning_dev
354d951c53ee20eb41bf7980210d61b7a358d341
[ "MIT" ]
2
2019-04-23T22:13:18.000Z
2019-08-19T01:39:51.000Z
''' ======================== Wrapper_pyca module ======================== Created on Nov.7, 2017 @author: Xu Ronghua @Email: rxu22@binghamton.edu @TaskDescription: This module provide cryptography function based on pyca API. @Reference:https://cryptography.io/en/latest/ ''' from cryptography.fernet import Fernet from...
28.543071
124
0.746228
6,650
0.872589
0
0
4,506
0.591261
0
0
3,205
0.420548
dd1f85e853fc4ae8cfcfa14f28add26fec35c361
693
py
Python
src/utils/formatter.py
RuhuiCheng/ladybug
fa9e1ea660dd040d3ecfde96ad6c4db67df9bcb9
[ "Apache-2.0" ]
4
2020-03-14T10:43:29.000Z
2020-09-23T11:15:44.000Z
src/utils/formatter.py
RuhuiCheng/ladybug
fa9e1ea660dd040d3ecfde96ad6c4db67df9bcb9
[ "Apache-2.0" ]
null
null
null
src/utils/formatter.py
RuhuiCheng/ladybug
fa9e1ea660dd040d3ecfde96ad6c4db67df9bcb9
[ "Apache-2.0" ]
null
null
null
import logging import json from src.utils.ucm import app_id, env class JsonLogFormatter(logging.Formatter): def format(self, record): msg = '' if record.exc_text is None: msg = record.message else: msg = record.exc_text data = { 'app_id': ''+app...
26.653846
47
0.506494
625
0.901876
0
0
0
0
0
0
103
0.148629
dd21e59c37175256cff1379b7b03b4b83f129381
363
py
Python
afterglow_core/resources/job_plugins/__init__.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-05-24T15:12:07.000Z
2022-02-17T19:58:16.000Z
afterglow_core/resources/job_plugins/__init__.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
1
2022-02-27T03:01:06.000Z
2022-02-27T03:01:06.000Z
afterglow_core/resources/job_plugins/__init__.py
SkynetRTN/afterglow-access-server
3d8d62f622577fdd1ae7b0076cb536251f7bf0cd
[ "Apache-2.0" ]
2
2021-06-08T18:16:40.000Z
2021-07-09T14:19:49.000Z
""" Afterglow Core: job plugin package A job plugin must define a custom model subclassing from :class:`afterglow_core.models.jobs.Job`, along with the optional custom result and settings models (subclassing from :class:`afterglow_core.models.jobs.JobResult` and :class:`afterglow_core.schemas.AfterglowSchema`, respect...
33
78
0.793388
0
0
0
0
0
0
0
0
362
0.997245
dd2300aac8a3080e89edc939e28aa0516c80f6a3
4,909
py
Python
wotpy/wot/dictionaries/thing.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
null
null
null
wotpy/wot/dictionaries/thing.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
null
null
null
wotpy/wot/dictionaries/thing.py
JKRhb/wot-py
3eaa780189b686c82b7dbdea404fd8077bd3c9f9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Wrapper class for dictionaries to represent Things. """ import six from wotpy.wot.dictionaries.base import WotBaseDict from wotpy.wot.dictionaries.interaction import PropertyFragmentDict, ActionFragmentDict, EventFragmentDict from wotpy.wot.dictionaries.link import L...
29.932927
106
0.606233
4,371
0.890405
0
0
2,041
0.415767
0
0
1,754
0.357303
dd25aadd6a2a27a37d069c617bb272fc239e2c39
1,044
py
Python
MyApp/config.py
muayyad-alsadi/uPyApp
e81fb9d336a843d068ae93c866cf503989ef6a60
[ "Apache-2.0" ]
null
null
null
MyApp/config.py
muayyad-alsadi/uPyApp
e81fb9d336a843d068ae93c866cf503989ef6a60
[ "Apache-2.0" ]
null
null
null
MyApp/config.py
muayyad-alsadi/uPyApp
e81fb9d336a843d068ae93c866cf503989ef6a60
[ "Apache-2.0" ]
1
2020-03-18T07:27:27.000Z
2020-03-18T07:27:27.000Z
__all__ = ['app_config'] import sys, os, os.path try: import ConfigParser as configparser except ImportError: import configparser try: import simplejson as json except ImportError: import json from .base_utils import * class AppConfig(configparser.RawConfigParser): config_filename = 'my-app.ini' main_sectio...
36
97
0.707854
796
0.762452
0
0
0
0
0
0
59
0.056513
dd25b254cf6453ad21e303d8fb8dc65ace25ddf6
1,131
py
Python
src/models/losses/corr_loss.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
25
2022-03-28T06:26:16.000Z
2022-03-30T14:21:24.000Z
src/models/losses/corr_loss.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
null
null
null
src/models/losses/corr_loss.py
yewzijian/RegTR
64e5b3f0ccc1e1a11b514eb22734959d32e0cec6
[ "MIT" ]
2
2022-03-29T09:37:50.000Z
2022-03-30T06:26:35.000Z
import torch import torch.nn as nn from utils.se3_torch import se3_transform_list _EPS = 1e-6 class CorrCriterion(nn.Module): """Correspondence Loss. """ def __init__(self, metric='mae'): super().__init__() assert metric in ['mse', 'mae'] self.metric = metric def forward(se...
27.585366
112
0.625111
1,031
0.911583
0
0
0
0
0
0
56
0.049514
dd26b6dd687da7d2ec0ed40d629b6615e9538af8
501
py
Python
application/services/balance_service.py
singnet/token-balances-service
5e32b11bbad46e9df2820132026ab993935f8049
[ "MIT" ]
null
null
null
application/services/balance_service.py
singnet/token-balances-service
5e32b11bbad46e9df2820132026ab993935f8049
[ "MIT" ]
1
2021-04-07T14:40:02.000Z
2021-04-07T14:40:02.000Z
application/services/balance_service.py
singnet/token-balances-service
5e32b11bbad46e9df2820132026ab993935f8049
[ "MIT" ]
3
2021-04-07T14:12:00.000Z
2021-04-27T07:18:34.000Z
from infrastructure.repository.token_snapshot_repo import TokenSnapshotRepo from http import HTTPStatus def get_snapshot_by_address(address): balance = TokenSnapshotRepo().get_token_balance(address) if balance is None: data = None statusCode = HTTPStatus.BAD_REQUEST.value message = "A...
27.833333
75
0.718563
0
0
0
0
0
0
0
0
31
0.061876
dd272efee44a376502bf4522d14dd1625b93c91b
5,015
py
Python
vaccine_allocation/TN_proj.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
vaccine_allocation/TN_proj.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
vaccine_allocation/TN_proj.py
COVID-IWG/epimargin-studies
7d4a78e2e6713c6a0aea2cd2440529153e9a635d
[ "MIT" ]
null
null
null
from typing import Callable, Tuple from epimargin.models import SIR import pandas as pd from epimargin.estimators import analytical_MPVS from epimargin.etl.covid19india import data_path, get_time_series, load_all_data import epimargin.plots as plt from epimargin.smoothing import notched_smoothing from epimargin.utils ...
34.586207
131
0.656032
0
0
0
0
0
0
0
0
710
0.141575
dd27497c195aa372001cc5557855526c81484bc2
263
py
Python
nameyourapp/routes.py
WhereWeCanShare/minipy
485e9c4f122aa56ed8389d0ea7b5c16d59179aed
[ "BSD-3-Clause" ]
null
null
null
nameyourapp/routes.py
WhereWeCanShare/minipy
485e9c4f122aa56ed8389d0ea7b5c16d59179aed
[ "BSD-3-Clause" ]
null
null
null
nameyourapp/routes.py
WhereWeCanShare/minipy
485e9c4f122aa56ed8389d0ea7b5c16d59179aed
[ "BSD-3-Clause" ]
null
null
null
from flask import Blueprint main = Blueprint('main', __name__) @main.route('/') def main_index(): return '<div align="center"><img src="https://source.unsplash.com/1200x800/?technology,matrix,hacker,women"><p>Thanks Unsplash for nice photo</p></div>', 200
29.222222
161
0.714829
0
0
0
0
196
0.745247
0
0
154
0.585551
dd28575d99501b8ab89e76a54053a882db38d79c
1,514
py
Python
backend/db/test/id_allocator_test.py
xuantan/viewfinder
992209086d01be0ef6506f325cf89b84d374f969
[ "Apache-2.0" ]
645
2015-01-03T02:03:59.000Z
2021-12-03T08:43:16.000Z
backend/db/test/id_allocator_test.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
null
null
null
backend/db/test/id_allocator_test.py
hoowang/viewfinder
9caf4e75faa8070d85f605c91d4cfb52c4674588
[ "Apache-2.0" ]
222
2015-01-07T05:00:52.000Z
2021-12-06T09:54:26.000Z
# Copyright 2011 Viewfinder Inc. All Rights Reserved. """Tests for IdAllocator data object. """ __author__ = 'spencer@emailscrubbed.com (Spencer Kimball)' import unittest from viewfinder.backend.base import util from viewfinder.backend.base.testing import async_test from viewfinder.backend.db.id_allocator import Id...
30.28
82
0.694188
1,144
0.755614
0
0
1,095
0.72325
0
0
242
0.159841
dd2928863b82fbf5dba0596d90335b5ef6bbbb9b
2,429
py
Python
ayame/link.py
hattya/ayame
e8bb2b0ace79cd358b1384270cb9c5e809e12b5d
[ "MIT" ]
1
2022-03-05T03:21:13.000Z
2022-03-05T03:21:13.000Z
ayame/link.py
hattya/ayame
e8bb2b0ace79cd358b1384270cb9c5e809e12b5d
[ "MIT" ]
1
2021-08-25T13:41:34.000Z
2021-08-25T13:41:34.000Z
ayame/link.py
hattya/ayame
e8bb2b0ace79cd358b1384270cb9c5e809e12b5d
[ "MIT" ]
1
2018-03-04T21:47:27.000Z
2018-03-04T21:47:27.000Z
# # ayame.link # # Copyright (c) 2012-2021 Akinori Hattori <hattya@gmail.com> # # SPDX-License-Identifier: MIT # import urllib.parse from . import core, markup, uri, util from . import model as mm from .exception import ComponentError __all__ = ['Link', 'ActionLink', 'PageLink'] # HTML elements _A = markup.QNa...
26.692308
91
0.611774
1,776
0.731165
0
0
0
0
0
0
343
0.14121
dd2b17b19b93b0baf9bf8e30437c71d115b7442f
885
py
Python
local/race_sim.py
tractiming/trac-gae
46c4a1fe409a45e8595210a5cf242425d40d4b41
[ "MIT" ]
3
2020-09-13T04:56:31.000Z
2021-05-26T11:46:08.000Z
local/race_sim.py
tractiming/trac-gae
46c4a1fe409a45e8595210a5cf242425d40d4b41
[ "MIT" ]
null
null
null
local/race_sim.py
tractiming/trac-gae
46c4a1fe409a45e8595210a5cf242425d40d4b41
[ "MIT" ]
1
2020-05-09T10:05:08.000Z
2020-05-09T10:05:08.000Z
import requests import datetime import time UPDATE_URL = "http://www.trac-us.appspot.com/api/updates/" #UPDATE_URL = "http://localhost:8000/api/updates/" def post_split(reader_code, tag_code, time): formatted_time = time.strftime("%Y/%m/%d %H:%M:%S.%f") payload = {'r': reader_code, '...
20.113636
74
0.59661
0
0
0
0
0
0
0
0
293
0.331073
dd2b8d0943d4247577bcc13dba218fa49f1ddda9
5,775
py
Python
classes.py
mattjoman/deep-RL-snake
c1b48ef3cb7ac0ad068887df1f60bc83a626f9d6
[ "MIT" ]
null
null
null
classes.py
mattjoman/deep-RL-snake
c1b48ef3cb7ac0ad068887df1f60bc83a626f9d6
[ "MIT" ]
null
null
null
classes.py
mattjoman/deep-RL-snake
c1b48ef3cb7ac0ad068887df1f60bc83a626f9d6
[ "MIT" ]
null
null
null
import pygame import numpy as np import random import torch from torch import nn from torch.nn import functional as F class CNN(torch.nn.Module): def __init__(self): super(CNN, self).__init__() torch.manual_seed(50) self.layer1 = nn.Sequential( # input: (1, 1, 10, 10) ...
26.612903
86
0.546667
5,435
0.941126
0
0
0
0
0
0
419
0.072554
dd2f7e3c6dec1485c37b66c19a901c087ee62101
1,289
py
Python
examples/basic/turnOffLight_fb.py
quangthanh010290/EchoSkills
b90379cddb034a1e379fef77ca48c583bd6e47d5
[ "MIT" ]
null
null
null
examples/basic/turnOffLight_fb.py
quangthanh010290/EchoSkills
b90379cddb034a1e379fef77ca48c583bd6e47d5
[ "MIT" ]
null
null
null
examples/basic/turnOffLight_fb.py
quangthanh010290/EchoSkills
b90379cddb034a1e379fef77ca48c583bd6e47d5
[ "MIT" ]
null
null
null
import logging from random import randint from flask import Flask, render_template from flask_ask import Ask, statement, question, session from firebase import firebase import time firebase = firebase.FirebaseApplication('https://iotdev-6b58b.firebaseio.com', None) app = Flask(__name__) ask = Ask(app, "/") #lo...
22.614035
84
0.703646
0
0
0
0
782
0.606672
0
0
466
0.361521
dd333037440197eebf8dccb7cbf70627b566e58c
763
py
Python
home_app/migrations/0003_auto_20200412_0206.py
Ymirrp/Home-page
6ac9b5b76cc2b08298086c7e784685dad802c9d6
[ "MIT" ]
null
null
null
home_app/migrations/0003_auto_20200412_0206.py
Ymirrp/Home-page
6ac9b5b76cc2b08298086c7e784685dad802c9d6
[ "MIT" ]
7
2020-04-18T04:54:05.000Z
2020-04-29T14:49:46.000Z
home_app/migrations/0003_auto_20200412_0206.py
Ymirrp/Home-page
6ac9b5b76cc2b08298086c7e784685dad802c9d6
[ "MIT" ]
null
null
null
# Generated by Django 3.0.5 on 2020-04-12 02:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home_app', '0002_auto_20200408_2205'), ] operations = [ migrations.RemoveField( model_name='topsites', ...
33.173913
292
0.55308
675
0.872093
0
0
0
0
0
0
298
0.385013
dd341ee91f7a33f3e372a0311daf89a77f9a9148
349
py
Python
tests/test_license_screening.py
sthagen/python-scaling-tribble
2bb2e41185ae2b0108f341751d0e4a2187909683
[ "MIT" ]
null
null
null
tests/test_license_screening.py
sthagen/python-scaling-tribble
2bb2e41185ae2b0108f341751d0e4a2187909683
[ "MIT" ]
18
2021-02-14T15:17:17.000Z
2021-02-14T17:46:27.000Z
tests/test_license_screening.py
sthagen/python-scaling-tribble
2bb2e41185ae2b0108f341751d0e4a2187909683
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=missing-docstring,unused-import,reimported import pytest # type: ignore import tests.context as ctx import license_screening.license_screening as lis def test_parse_ok_empty_string(): assert lis.parse('') is NotImplemented def test_parse_ok_known_tree(): assert l...
21.8125
60
0.744986
0
0
0
0
0
0
0
0
111
0.318052
dd3452c9bed80f5adb210957aa5ef5db051c0f6c
301
py
Python
ml_progress/percent_metric.py
gregrolwes/ml_progress
e352f73847e163993ff9e642973512f070555805
[ "MIT" ]
null
null
null
ml_progress/percent_metric.py
gregrolwes/ml_progress
e352f73847e163993ff9e642973512f070555805
[ "MIT" ]
null
null
null
ml_progress/percent_metric.py
gregrolwes/ml_progress
e352f73847e163993ff9e642973512f070555805
[ "MIT" ]
null
null
null
import sys from .display import Display class PercentMetric(Display): def __init__(self, metric: str): super().__init__() self.metric = metric def update(self, metrics: dict, width=25, height=1): sys.stdout.write("%s: %3d%% \n" % (self.metric, metrics[self.metric]))
27.363636
78
0.644518
259
0.860465
0
0
0
0
0
0
14
0.046512
dd34c031db159b934c285da9deacefad0961aecf
762
py
Python
src/server/alembic/versions/6b8cf99be000_add_user_journal_table.py
princessruthie/paws-data-pipeline
6f7095f99b9ad31b0171b256cf18849d63445c91
[ "MIT" ]
27
2019-11-20T20:20:30.000Z
2022-01-31T17:24:55.000Z
src/server/alembic/versions/6b8cf99be000_add_user_journal_table.py
mrcrnkovich/paws-data-pipeline
7c0bd4c5f23276f541611cb564f2f5abbb6b9887
[ "MIT" ]
348
2019-11-26T20:34:02.000Z
2022-02-27T20:28:20.000Z
src/server/alembic/versions/6b8cf99be000_add_user_journal_table.py
mrcrnkovich/paws-data-pipeline
7c0bd4c5f23276f541611cb564f2f5abbb6b9887
[ "MIT" ]
20
2019-12-03T23:50:33.000Z
2022-02-09T18:38:25.000Z
"""Add user journal table Revision ID: 6b8cf99be000 Revises: 36c4ecbfd11a Create Date: 2020-12-21 15:08:07.784568 """ from alembic import op import sqlalchemy as sa from sqlalchemy.sql import func # revision identifiers, used by Alembic. revision = "6b8cf99be000" down_revision = "36c4ecbfd11a" branch_labels = None ...
23.090909
83
0.692913
0
0
0
0
0
0
0
0
265
0.347769
dd368cbbf1f2713371fc20b46be0df6fde83d872
1,906
py
Python
Python/WearherTelegram/weatherbot.py
OnCode-channel/OnCode
4aa7022932bc5aece39121233b34ebea12063717
[ "CC0-1.0" ]
3
2021-11-21T05:09:45.000Z
2021-11-21T09:55:02.000Z
Python/WearherTelegram/weatherbot.py
OnCode-channel/OnCode
4aa7022932bc5aece39121233b34ebea12063717
[ "CC0-1.0" ]
null
null
null
Python/WearherTelegram/weatherbot.py
OnCode-channel/OnCode
4aa7022932bc5aece39121233b34ebea12063717
[ "CC0-1.0" ]
1
2022-03-16T20:34:29.000Z
2022-03-16T20:34:29.000Z
import telebot from pyowm import OWM from pyowm.utils.config import get_default_config bot = telebot.TeleBot("telegram API-key") @bot.message_handler(commands=['start']) def welcome(message): bot.send_message(message.chat.id, 'Добро пожаловать, ' + str(message.from_user.first_name) + ',\n/start - запуск бота\n/help ...
32.862069
217
0.64638
0
0
0
0
2,056
0.920734
0
0
1,001
0.448276
dd37cbcc06fe382942dc56ae1ef81d1193794b23
17
py
Python
appium/version.py
zgq346712481/python-client
1c179d2c84c76bbed33e6333f381cc8a86f3bb82
[ "Apache-2.0" ]
1
2019-03-07T00:53:43.000Z
2019-03-07T00:53:43.000Z
appium/version.py
zgq346712481/python-client
1c179d2c84c76bbed33e6333f381cc8a86f3bb82
[ "Apache-2.0" ]
null
null
null
appium/version.py
zgq346712481/python-client
1c179d2c84c76bbed33e6333f381cc8a86f3bb82
[ "Apache-2.0" ]
null
null
null
version = '0.38'
8.5
16
0.588235
0
0
0
0
0
0
0
0
6
0.352941
dd3bf5910219efb966cd48792f7c68202d3a54a8
130
py
Python
earth_enterprise/src/server/wsgi/serve/push/stream/__init__.py
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
2,661
2017-03-20T22:12:50.000Z
2022-03-30T09:43:19.000Z
earth_enterprise/src/server/wsgi/serve/push/stream/__init__.py
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
1,531
2017-03-24T17:20:32.000Z
2022-03-16T18:11:14.000Z
earth_enterprise/src/server/wsgi/serve/push/stream/__init__.py
ezeeyahoo/earthenterprise
b6cac9e6228946f2f17d1edb75e118aeb3e8e8c9
[ "Apache-2.0" ]
990
2017-03-24T11:54:28.000Z
2022-03-22T11:51:47.000Z
"""The package indicator for serve.push.stream. Modules for transferring and registering servable stream data on the server. """
26
76
0.784615
0
0
0
0
0
0
0
0
129
0.992308
dd3c2fd0cab5262a11100e98979113701b2c65bd
2,828
py
Python
Projects_Django/MyPets/tienda_mascotas/models.py
JuanCasanovaQ/Frameworks_8A
353838473b275d366cac8364ef4df72578c0aed8
[ "Apache-2.0" ]
null
null
null
Projects_Django/MyPets/tienda_mascotas/models.py
JuanCasanovaQ/Frameworks_8A
353838473b275d366cac8364ef4df72578c0aed8
[ "Apache-2.0" ]
null
null
null
Projects_Django/MyPets/tienda_mascotas/models.py
JuanCasanovaQ/Frameworks_8A
353838473b275d366cac8364ef4df72578c0aed8
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.db.models.fields.related import ForeignKey # Create your models here. class Country(models.Model): code = models.CharField(max_length=10) name = models.CharField(max_length=150) abrev = models.CharField(max_length=4) status = models.BooleanField() created_...
32.883721
54
0.724187
2,691
0.951556
0
0
0
0
0
0
26
0.009194
dd3c339456c728831d00962485678bd366a32bd9
34
py
Python
homeassistant/components/limitlessled/__init__.py
domwillcode/home-assistant
f170c80bea70c939c098b5c88320a1c789858958
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
homeassistant/components/limitlessled/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/limitlessled/__init__.py
jagadeeshvenkatesh/core
1bd982668449815fee2105478569f8e4b5670add
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""The limitlessled component."""
17
33
0.705882
0
0
0
0
0
0
0
0
33
0.970588
dd3c5ef2c1c57128342b4cbe674344dc894fe7e9
14,427
py
Python
projectroles/app_settings.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
projectroles/app_settings.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
projectroles/app_settings.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
"""Project and user settings API""" import json from projectroles.models import AppSetting, APP_SETTING_TYPES, SODAR_CONSTANTS from projectroles.plugins import get_app_plugin, get_active_plugins # SODAR constants APP_SETTING_SCOPE_PROJECT = SODAR_CONSTANTS['APP_SETTING_SCOPE_PROJECT'] APP_SETTING_SCOPE_USER = SODAR_...
32.938356
80
0.561932
13,846
0.959728
0
0
13,755
0.953421
0
0
5,858
0.406044
dd3d84abfc37890e97980406a58c52b188bedbc3
2,835
py
Python
util/2mass_catalog.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
4
2018-02-13T23:11:40.000Z
2021-09-30T16:02:22.000Z
util/2mass_catalog.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
null
null
null
util/2mass_catalog.py
spake/astrometry.net
12c76f4a44fe90a009eeb962f2ae28b0791829b8
[ "BSD-3-Clause" ]
1
2019-02-11T06:56:30.000Z
2019-02-11T06:56:30.000Z
#! /usr/bin/env python # Licensed under a 3-clause BSD style license - see LICENSE from __future__ import print_function import sys from optparse import OptionParser try: import pyfits except ImportError: try: from astropy.io import fits as pyfits except ImportError: raise ImportError("Cann...
28.35
113
0.610229
0
0
0
0
0
0
0
0
801
0.28254
dd3f4f79ce1d8a927e706c3ca5d870ec9910cd7c
682
py
Python
models/nicknames.py
Tyson-Chicken-Nuggets/me-discord-leaderboard
d0e04c77e4f7a309cbb6315d24bd47929ba4ec54
[ "MIT" ]
4
2018-12-13T04:15:26.000Z
2021-02-15T21:46:59.000Z
models/nicknames.py
Tyson-Chicken-Nuggets/me-discord-leaderboard
d0e04c77e4f7a309cbb6315d24bd47929ba4ec54
[ "MIT" ]
2
2019-05-17T18:47:18.000Z
2020-09-26T01:31:39.000Z
models/nicknames.py
Tyson-Chicken-Nuggets/me-discord-leaderboard
d0e04c77e4f7a309cbb6315d24bd47929ba4ec54
[ "MIT" ]
1
2018-06-08T17:08:29.000Z
2018-06-08T17:08:29.000Z
from sqlalchemy import Column, String, Integer, ForeignKey from sqlalchemy.orm import relationship from models.base import Base from models.servers import Server from models.users import User class Nickname(Base): __tablename__ = 'nicknames' id = Column(Integer, primary_key=True) user_id = Column(Integer...
31
73
0.727273
487
0.714076
0
0
0
0
0
0
33
0.048387
dd3fd65b348e0bcff47a6b9cda24ca0e585cfa0c
6,749
py
Python
pirates/leveleditor/worldData/tortuga_building_int_10.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
3
2021-02-25T06:38:13.000Z
2022-03-22T07:00:15.000Z
pirates/leveleditor/worldData/tortuga_building_int_10.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
null
null
null
pirates/leveleditor/worldData/tortuga_building_int_10.py
itsyaboyrocket/pirates
6ca1e7d571c670b0d976f65e608235707b5737e3
[ "BSD-3-Clause" ]
1
2021-02-25T06:38:17.000Z
2021-02-25T06:38:17.000Z
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.tortuga_building_int_10 from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = {'Ambien...
964.142857
6,298
0.676397
0
0
0
0
0
0
0
0
5,049
0.748111
dd409f1079701595dd303cbae441bb3663ea68de
755
py
Python
hgtools/managers/library.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
1
2017-05-17T15:12:29.000Z
2017-05-17T15:12:29.000Z
hgtools/managers/library.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
12
2016-01-01T14:43:44.000Z
2021-10-03T02:13:19.000Z
hgtools/managers/library.py
jaraco/hgtools
1090d139e5dbdab864da8f1917a9e674331b6f9b
[ "MIT" ]
null
null
null
import sys from . import base from . import cmd from . import reentry class MercurialInProcManager(cmd.Mercurial, base.RepoManager): """ A RepoManager implemented by invoking the hg command in-process. """ def _invoke(self, *params): """ Run the self.exe command in-process with the s...
30.2
69
0.637086
681
0.901987
0
0
0
0
0
0
196
0.259603
dd40a6f098a3b0e41331e54d98f742cb251a3af3
1,882
py
Python
app/core/tests/test_models.py
royandri/attendance
cecb7a91b5e048569299ae6dfb796c20051a16a9
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
royandri/attendance
cecb7a91b5e048569299ae6dfb796c20051a16a9
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
royandri/attendance
cecb7a91b5e048569299ae6dfb796c20051a16a9
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model from core import models from django.utils import timezone def sample_user(email='test@mail.com', password='testpass'): # Create a sample user return get_user_model().objects.create_user(email, password) class ModelTests(TestCase...
33.607143
76
0.667906
1,586
0.842721
0
0
0
0
0
0
379
0.201382
dd41e5e1e67e9d900eb2ff0bece445448ea41207
1,775
py
Python
controllers/__controller.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
controllers/__controller.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
controllers/__controller.py
VNCompany/vnforum
770aca3a94ad1ed54628d48867c299d83215f75a
[ "Unlicense" ]
null
null
null
from flask import redirect, url_for, render_template from flask_login import current_user from components.pagination import html_pagination from db_session import create_session class Controller: __view__ = None __title__ = "Page" view_includes = {} jquery_enabled = True db_session = None de...
34.803922
119
0.580845
1,594
0.898028
0
0
88
0.049577
0
0
281
0.15831
dd43d5641662aeed07a7ef83b6967c23588c8ac3
371
py
Python
practice/algos/quick_sort/quick_sort.py
markfranciose/cheat_sheet_of_cheat_sheets
d126bbbb499af43098d3938e35df3381833cecac
[ "MIT" ]
null
null
null
practice/algos/quick_sort/quick_sort.py
markfranciose/cheat_sheet_of_cheat_sheets
d126bbbb499af43098d3938e35df3381833cecac
[ "MIT" ]
20
2020-07-21T01:52:53.000Z
2022-02-27T09:44:44.000Z
practice/algos/quick_sort/quick_sort.py
markfranciose/drops_of_knowledge
d126bbbb499af43098d3938e35df3381833cecac
[ "MIT" ]
null
null
null
def quick_sort(arr): if len(arr) < 2: return arr pivot = arr.pop() left = [] right = [] for num in arr: if num > pivot: right.append(num) else: left.append(num) return quick_sort(left) + [pivot] + quick_sort(right) arr = [1,2,2,...
18.55
58
0.490566
0
0
0
0
0
0
0
0
0
0
dd442063bf90797178fddb15d68e9d7b4d342147
157
py
Python
Python/texttospeech.py
Rohit01-pro/All_Program_helper
86b75ecc4ecb095f11e46e6f80c660e27dd22f27
[ "MIT" ]
16
2021-10-03T11:15:49.000Z
2021-10-31T04:40:24.000Z
Python/texttospeech.py
Rohit01-pro/All_Program_helper
86b75ecc4ecb095f11e46e6f80c660e27dd22f27
[ "MIT" ]
232
2021-10-02T14:51:43.000Z
2021-11-14T08:23:27.000Z
Python/texttospeech.py
Rohit01-pro/All_Program_helper
86b75ecc4ecb095f11e46e6f80c660e27dd22f27
[ "MIT" ]
166
2021-10-02T13:56:34.000Z
2021-10-31T17:56:34.000Z
from gtts import gTTS import os f=open("1.txt") x=f.read() language='en' audio=gTTS(text=x,lang=language,slow=False) audio.save("1.wav") os.system("1.wav")
15.7
43
0.707006
0
0
0
0
0
0
0
0
25
0.159236
dd464fa4b37cf124b28327d6a98fc0f0c806f33d
101
py
Python
code/pyFoamSymlinkToFile.py
sosohungry/pyfoam
b19e40a0ef1f41268930122226660414722178e6
[ "MIT" ]
null
null
null
code/pyFoamSymlinkToFile.py
sosohungry/pyfoam
b19e40a0ef1f41268930122226660414722178e6
[ "MIT" ]
null
null
null
code/pyFoamSymlinkToFile.py
sosohungry/pyfoam
b19e40a0ef1f41268930122226660414722178e6
[ "MIT" ]
null
null
null
#! /usr/bin/env python from PyFoam.Applications.SymlinkToFile import SymlinkToFile SymlinkToFile()
16.833333
59
0.811881
0
0
0
0
0
0
0
0
22
0.217822
dd468535a193a7786f5ac49b546150a18ebcd261
1,172
py
Python
setup.py
themightyoarfish/svcca
23faa374489067c1c76cee44d92663c120603bdc
[ "Apache-2.0" ]
8
2019-01-17T14:20:07.000Z
2021-07-08T12:16:23.000Z
setup.py
themightyoarfish/svcca
23faa374489067c1c76cee44d92663c120603bdc
[ "Apache-2.0" ]
1
2019-01-30T11:44:25.000Z
2019-02-07T15:02:02.000Z
setup.py
themightyoarfish/svcca-gpu
23faa374489067c1c76cee44d92663c120603bdc
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python from distutils.core import setup import setuptools import os root_dir = os.path.abspath(os.path.dirname(__file__)) with open(f'{root_dir}/README.md') as f: readme = f.read() with open(f'{root_dir}/requirements.txt') as f: requirements = f.read().split() packages = setuptools.find_pack...
33.485714
97
0.636519
0
0
0
0
0
0
0
0
533
0.454778
dd470b99c72201568c8abe1bba1e9f7add60848f
1,679
py
Python
classmark/ui/home_section.py
mdocekal/ClassMark
e6019f9abeb99e9a6b72365a508d5a6dac13c3c7
[ "Unlicense" ]
null
null
null
classmark/ui/home_section.py
mdocekal/ClassMark
e6019f9abeb99e9a6b72365a508d5a6dac13c3c7
[ "Unlicense" ]
2
2021-01-18T12:29:18.000Z
2021-01-18T14:33:31.000Z
classmark/ui/home_section.py
windionleaf/ClassMark
e6019f9abeb99e9a6b72365a508d5a6dac13c3c7
[ "Unlicense" ]
null
null
null
""" Created on 19. 12. 2018 Module for home section of the application. :author: Martin Dočekal :contact: xdocek09@stud.fit.vubtr.cz """ from .widget_manager import WidgetManager from .section_router import SectionRouter from functools import partial from .models import ListLastExperiments from PySide2.QtCore ...
29.45614
96
0.661108
1,339
0.797024
0
0
0
0
0
0
676
0.402381
dd4835795e462053f9d98a0abafa853d67dd9bfc
829
py
Python
urls.py
CodeForPhilly/philly_legislative
5774100325b5374a0510674b4a542171fff3fcd3
[ "BSD-Source-Code" ]
2
2017-08-29T22:27:05.000Z
2019-04-27T20:21:31.000Z
urls.py
CodeForPhilly/philly_legislative
5774100325b5374a0510674b4a542171fff3fcd3
[ "BSD-Source-Code" ]
null
null
null
urls.py
CodeForPhilly/philly_legislative
5774100325b5374a0510674b4a542171fff3fcd3
[ "BSD-Source-Code" ]
null
null
null
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Example: #(r'^philly_legislative/', include('philly_legislative.foo.urls')), # Uncomment the admin/doc line below and add 'django....
33.16
76
0.671894
0
0
0
0
0
0
0
0
602
0.726176
dd486d1d0f1328a725ad7af4079cf4b9fc30ab88
2,510
py
Python
irf/scripts/read_corsika_headers.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
null
null
null
irf/scripts/read_corsika_headers.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
8
2017-04-25T11:19:32.000Z
2019-05-28T07:24:32.000Z
irf/scripts/read_corsika_headers.py
fact-project/irf
d82a3d4ae8b9ef15d9f473cdcd01a5f9c92d42a2
[ "MIT" ]
null
null
null
from corsikaio import CorsikaFile from fact.io import to_h5py from multiprocessing import Pool, cpu_count from tqdm import tqdm import os import click import pandas as pd import numpy as np from glob import glob def get_headers(f): with CorsikaFile(f) as cf: run_header, event_headers, run_end = cf.read_he...
25.1
89
0.632669
0
0
0
0
1,704
0.678884
0
0
539
0.214741
dd489e1ae7bc915c79a5ee9217ee84f8b92fa142
3,101
py
Python
tests/test_maker.py
chfsx/pibooth
4049fb748853ff90e53212336ff7d71bba6c1328
[ "MIT" ]
null
null
null
tests/test_maker.py
chfsx/pibooth
4049fb748853ff90e53212336ff7d71bba6c1328
[ "MIT" ]
null
null
null
tests/test_maker.py
chfsx/pibooth
4049fb748853ff90e53212336ff7d71bba6c1328
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import pytest from pibooth.pictures.factory import PilPictureFactory, OpenCvPictureFactory footer_texts = ('This is the main title', 'Footer text 2', 'Footer text 3') footer_fonts = ('Amatic-Bold', 'DancingScript-Regular', 'Roboto-LightItalic') footer_colors = ((10, 0, 0), (0, 50, 0), (0, 50, ...
37.817073
82
0.751048
0
0
0
0
1,196
0.385682
0
0
345
0.111254
dd491d9bbf97708bde610843ff7316857a2a3334
6,452
py
Python
assignment 1/question3/q3.py
Eunoia1729/soft-computing
d7fc155378d1bb0b914a6f660095653e32d2c0b8
[ "Apache-2.0" ]
1
2021-11-14T15:02:35.000Z
2021-11-14T15:02:35.000Z
assignment 1/question3/q3.py
Eunoia1729/soft-computing
d7fc155378d1bb0b914a6f660095653e32d2c0b8
[ "Apache-2.0" ]
null
null
null
assignment 1/question3/q3.py
Eunoia1729/soft-computing
d7fc155378d1bb0b914a6f660095653e32d2c0b8
[ "Apache-2.0" ]
null
null
null
"""## Question 3: Scrap Hotel Data The below code is for India and can be extended to other countries by adding an outer loop given in the last part. The below codes takes several minutes to run. """ import requests import pandas as pd from bs4 import BeautifulSoup hotelname_list = [] city_list = [] countries_list ...
36.451977
160
0.653131
0
0
0
0
0
0
0
0
1,864
0.288903
dd4965798452f29205244dc8f8464e898af885fa
234
py
Python
groundstation/ROV/OCR/SScrop.py
iturov/rov2018
ca1949806d105a2caddf2cf7a1361e2d3f6a1246
[ "MIT" ]
3
2018-01-26T14:00:50.000Z
2018-08-08T06:44:21.000Z
groundstation/ROV/OCR/SScrop.py
iturov/rov2018
ca1949806d105a2caddf2cf7a1361e2d3f6a1246
[ "MIT" ]
null
null
null
groundstation/ROV/OCR/SScrop.py
iturov/rov2018
ca1949806d105a2caddf2cf7a1361e2d3f6a1246
[ "MIT" ]
2
2018-08-08T06:44:23.000Z
2020-10-24T11:36:33.000Z
import pyscreenshot as ImageGrab i=0 src_path ="C:\\Users\\Public\\ROV\OCR\\" if __name__ == "__main__": # part of the screen im=ImageGrab.grab(bbox=(200,100,1100,600)) # X1,Y1,X2,Y2 im.save(src_path + 'init.png')
14.625
60
0.645299
0
0
0
0
0
0
0
0
83
0.354701
dd4ba76a5fa9e5f97446998ac4f6a5e6ee41ec63
3,008
py
Python
tests/http_client/conftest.py
sjaensch/aiobravado
d3f1eb71883b1f24c4b592917890160eb3d3cbcc
[ "BSD-3-Clause" ]
19
2017-11-20T22:47:12.000Z
2021-12-23T15:56:41.000Z
tests/http_client/conftest.py
sjaensch/aiobravado
d3f1eb71883b1f24c4b592917890160eb3d3cbcc
[ "BSD-3-Clause" ]
10
2018-01-11T12:53:01.000Z
2020-01-27T20:05:51.000Z
tests/http_client/conftest.py
sjaensch/aiobravado
d3f1eb71883b1f24c4b592917890160eb3d3cbcc
[ "BSD-3-Clause" ]
4
2017-11-18T12:37:14.000Z
2021-03-19T14:48:13.000Z
# -*- coding: utf-8 -*- import threading import time import bottle import ephemeral_port_reserve import pytest import umsgpack from bravado_core.content_type import APP_JSON from bravado_core.content_type import APP_MSGPACK from six.moves import urllib ROUTE_1_RESPONSE = b'HEY BUDDY' ROUTE_2_RESPONSE = b'BYE BUDDY' ...
24.064
73
0.539894
0
0
358
0.119016
1,081
0.359375
0
0
688
0.228723
dd4bd1dde3eae994bf4970c151cbd96f077c070c
1,479
py
Python
test/test_convvae.py
kejiejiang/UnsupervisedDeepLearning-Pytorch
6ea7b7151ae62bf0130b56cc023f2be068aa87f0
[ "MIT" ]
87
2017-11-22T02:59:24.000Z
2022-01-16T13:08:40.000Z
test/test_convvae.py
CauchyLagrange/UnsupervisedDeepLearning-Pytorch
6ea7b7151ae62bf0130b56cc023f2be068aa87f0
[ "MIT" ]
3
2018-04-24T11:46:51.000Z
2020-01-07T00:01:46.000Z
test/test_convvae.py
CauchyLagrange/UnsupervisedDeepLearning-Pytorch
6ea7b7151ae62bf0130b56cc023f2be068aa87f0
[ "MIT" ]
25
2018-03-15T04:02:21.000Z
2021-12-30T09:24:19.000Z
import torch import torch.utils.data from torchvision import datasets, transforms import numpy as np from udlp.autoencoder.convVAE import ConvVAE import argparse parser = argparse.ArgumentParser(description='VAE MNIST Example') parser.add_argument('--lr', type=float, default=0.0001, metavar='N', he...
46.21875
98
0.697769
0
0
0
0
0
0
0
0
291
0.196755
dd4db1c506d212f1e3f132f918bc8f782cebb18b
673
py
Python
SourceCode/Bayes/bayeslearn.py
xuanyuansen/PyMachineLearning
c5b88c4d9aa2f5d59160d0824f7cee8377e7e16e
[ "Apache-2.0" ]
1
2017-01-17T06:19:33.000Z
2017-01-17T06:19:33.000Z
SourceCode/Bayes/bayeslearn.py
xuanyuansen/PyMachineLearning
c5b88c4d9aa2f5d59160d0824f7cee8377e7e16e
[ "Apache-2.0" ]
null
null
null
SourceCode/Bayes/bayeslearn.py
xuanyuansen/PyMachineLearning
c5b88c4d9aa2f5d59160d0824f7cee8377e7e16e
[ "Apache-2.0" ]
null
null
null
#coding=utf-8 ''' Created on 2013年9月20日 @author: Wangliaofan ''' import bayes import feedparser from time import * if __name__== '__main__': listOPosts,listClasses = bayes.loadDataSet() print listOPosts,listClasses myVocabList = bayes.createVocabList(listOPosts) print myVocabList trainMat=[] f...
24.035714
71
0.708767
0
0
0
0
0
0
0
0
176
0.259205
dd57860debea07d7b1dee00c8d3f246398e5a1ff
573
py
Python
modules/yats/middleware/header.py
PrathameshBolade/yats
93bb5271255120b7131a3bc416e3386428a4d3ec
[ "MIT" ]
54
2015-01-26T07:56:59.000Z
2022-03-10T18:48:05.000Z
modules/yats/middleware/header.py
PrathameshBolade/yats
93bb5271255120b7131a3bc416e3386428a4d3ec
[ "MIT" ]
8
2015-03-15T18:33:39.000Z
2021-12-21T14:23:11.000Z
modules/yats/middleware/header.py
PrathameshBolade/yats
93bb5271255120b7131a3bc416e3386428a4d3ec
[ "MIT" ]
23
2015-02-19T16:55:35.000Z
2022-03-11T19:49:06.000Z
# -*- coding: utf-8 -*- from socket import gethostname def ResponseInjectHeader(get_response): def middleware(request): setattr(request, '_dont_enforce_csrf_checks', True) response = get_response(request) # response['Access-Control-Allow-Origin'] = '*' # response['Access-Control-...
30.157895
64
0.649215
0
0
0
0
0
0
0
0
250
0.4363
dd58051ac5d7683774d3d6e01bb0dea25252af19
1,334
py
Python
handshake_client/sockets.py
naoki-maeda/handshake-client-py
286884b358e15f84965f3c3224cfabd83e1a1406
[ "MIT" ]
3
2020-12-31T08:29:20.000Z
2021-08-14T14:41:22.000Z
handshake_client/sockets.py
naoki-maeda/handshake-client-py
286884b358e15f84965f3c3224cfabd83e1a1406
[ "MIT" ]
null
null
null
handshake_client/sockets.py
naoki-maeda/handshake-client-py
286884b358e15f84965f3c3224cfabd83e1a1406
[ "MIT" ]
1
2020-05-25T14:26:33.000Z
2020-05-25T14:26:33.000Z
import logging import socketio logger = logging.getLogger("handshake.socket") sio = socketio.AsyncClient(logger=logger) async def get_connection( url: str, api_key: str, watch_chain: bool = True, watch_mempool: bool = True, ) -> socketio.AsyncClient: """ see https://hsd-dev.org/guides/events.html ""...
26.68
81
0.642429
0
0
0
0
140
0.104948
1,192
0.893553
232
0.173913
dd583f7d7e613589a62fb063aca89c71b3483ad8
5,768
py
Python
validation_tests/case_studies/towradgi_simulation/catchment_info.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
136
2015-05-07T05:47:43.000Z
2022-02-16T03:07:40.000Z
validation_tests/case_studies/towradgi_simulation/catchment_info.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
184
2015-05-03T09:27:54.000Z
2021-12-20T04:22:48.000Z
validation_tests/case_studies/towradgi_simulation/catchment_info.py
samcom12/anuga_core
f4378114dbf02d666fe6423de45798add5c42806
[ "Python-2.0", "OLDAP-2.7" ]
70
2015-03-18T07:35:22.000Z
2021-11-01T07:07:29.000Z
def create_catchment_list(simulation): from os.path import join channel_manning = simulation.args.channel_manning CatchmentList = [ [join('Model', 'Bdy', 'Catchment.csv'), 100.0], [join('Model', 'Bdy', 'FineCatchment.csv'), 36.0], [join('Model', 'Bdy', 'CreekBanks.csv'), 8...
46.516129
76
0.495319
0
0
0
0
0
0
0
0
2,645
0.458564
dd586c3a691480974c3b96292cc74640fddadda5
869
py
Python
generator01/testing/test_generator01.py
sku899/World_Travel_Language_Wizard
a9e009336e2f53c5fc0f3e40af51f34335645e5f
[ "MIT" ]
null
null
null
generator01/testing/test_generator01.py
sku899/World_Travel_Language_Wizard
a9e009336e2f53c5fc0f3e40af51f34335645e5f
[ "MIT" ]
null
null
null
generator01/testing/test_generator01.py
sku899/World_Travel_Language_Wizard
a9e009336e2f53c5fc0f3e40af51f34335645e5f
[ "MIT" ]
null
null
null
from unittest.mock import patch from flask import url_for, Response, request from flask_testing import TestCase from random import randint from app import app class TestBase(TestCase): def create_app(self): return app class TestResponse(TestBase): def rand_country(self): countries = ['German...
34.76
126
0.653625
705
0.811277
0
0
0
0
0
0
180
0.207135
dd5b35b49e23eb6c89bb23b5e7b7a0d158afacb3
14,640
py
Python
assets/arguments.py
YuhangSong/Arena-Baselines-Depreciated
78c33994e67aede7565dda3f68f5cebe0d5ee6e6
[ "Apache-2.0" ]
null
null
null
assets/arguments.py
YuhangSong/Arena-Baselines-Depreciated
78c33994e67aede7565dda3f68f5cebe0d5ee6e6
[ "Apache-2.0" ]
null
null
null
assets/arguments.py
YuhangSong/Arena-Baselines-Depreciated
78c33994e67aede7565dda3f68f5cebe0d5ee6e6
[ "Apache-2.0" ]
null
null
null
import argparse import torch import assets.utils as utils def log_args(args, tf_summary): args_dict = args.__dict__ from pytablewriter import MarkdownTableWriter writer = MarkdownTableWriter() writer.table_name = "Configurations (Args)" writer.headers = ["Parameter", "Value"] print('# INFO: ...
48.476821
126
0.616189
0
0
0
0
0
0
0
0
5,950
0.406421
dd5c3b4cdcb7e58a2c1873f564ec41c534d2da13
687
py
Python
khtube/download_ffmpeg.py
KodersHub/khtube
b1a8f96b7ff27cbb7eae615e8aee7d27260f80e8
[ "MIT" ]
1
2021-08-09T14:01:12.000Z
2021-08-09T14:01:12.000Z
khtube/download_ffmpeg.py
KodersHub/khtube
b1a8f96b7ff27cbb7eae615e8aee7d27260f80e8
[ "MIT" ]
null
null
null
khtube/download_ffmpeg.py
KodersHub/khtube
b1a8f96b7ff27cbb7eae615e8aee7d27260f80e8
[ "MIT" ]
null
null
null
from google_drive_downloader import GoogleDriveDownloader as gdd import sys import os import requests def get_platform(): platforms = { 'linux1' : 'Linux', 'linux2' : 'Linux', 'darwin' : 'OS X', 'win32' : 'Windows' } if sys.platform not in platforms: return sys.plat...
25.444444
84
0.604076
0
0
0
0
0
0
0
0
161
0.234352
dd5ce8afa891dc4561f13cf8c918df7e99c18b1f
1,231
py
Python
climbing (1).py
VamsiKrishna1211/Hacker_rank_solutions
a683a36fcc2f011c120eb4d52aa08468deccc820
[ "Apache-2.0" ]
null
null
null
climbing (1).py
VamsiKrishna1211/Hacker_rank_solutions
a683a36fcc2f011c120eb4d52aa08468deccc820
[ "Apache-2.0" ]
null
null
null
climbing (1).py
VamsiKrishna1211/Hacker_rank_solutions
a683a36fcc2f011c120eb4d52aa08468deccc820
[ "Apache-2.0" ]
null
null
null
#!/bin/python3 import math import os import random import re import sys # Complete the climbingLeaderboard function below. def climbingLeaderboard(scores, alice): li=[] lis=[0 for i in range(len(scores))] lis[0]=1 for i in range(1,len(scores)): #print(i) if scores[i]<scores[i-1]: ...
20.864407
53
0.541024
0
0
0
0
0
0
0
0
118
0.095857
dd5d2da4c7eb58adfbaff7779a18bcc9d814e736
25,661
py
Python
game_manager/machine_learning/block_controller_train.py
EndoNrak/tetris
0ce4863348d644b401c53e6c9a50cdc6f7430ed1
[ "MIT" ]
1
2022-01-29T15:23:15.000Z
2022-01-29T15:23:15.000Z
game_manager/machine_learning/block_controller_train.py
EndoNrak/tetris
0ce4863348d644b401c53e6c9a50cdc6f7430ed1
[ "MIT" ]
null
null
null
game_manager/machine_learning/block_controller_train.py
EndoNrak/tetris
0ce4863348d644b401c53e6c9a50cdc6f7430ed1
[ "MIT" ]
null
null
null
#!/usr/bin/python3 # -*- coding: utf-8 -*- from datetime import datetime import pprint import random import copy import torch import torch.nn as nn from model.deepqnet import DeepQNetwork,DeepQNetwork_v2 import omegaconf from hydra import compose, initialize import os from tensorboardX import SummaryWriter from col...
41.929739
145
0.575465
25,395
0.981981
0
0
0
0
0
0
3,018
0.116701
dd5da8896dcd0d60de2ab7a1e52c8732ee3a4ea8
405
py
Python
erp/migrations/0123_auto_20210513_1720.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
8
2020-07-23T08:17:28.000Z
2022-03-09T22:31:36.000Z
erp/migrations/0123_auto_20210513_1720.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
37
2020-07-01T08:47:33.000Z
2022-02-03T19:50:58.000Z
erp/migrations/0123_auto_20210513_1720.py
bzg/acceslibre
52c7c6990dc132da71a92e856d65f4a983c3b15a
[ "MIT" ]
4
2021-04-08T10:57:18.000Z
2022-01-31T13:16:31.000Z
# Generated by Django 3.2 on 2021-05-13 15:20 import uuid from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("erp", "0122_auto_20210513_1720"), ] operations = [ migrations.AlterField( model_name="erp", name="uuid", ...
20.25
68
0.604938
302
0.745679
0
0
0
0
0
0
86
0.212346
dd5e767c2f0f3137c08350fa015010541f736e41
290
py
Python
migrations/824-auto-exclude-regions.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
migrations/824-auto-exclude-regions.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
migrations/824-auto-exclude-regions.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
from mkt.constants import regions from mkt.developers.cron import exclude_new_region def run(): exclude_new_region([ regions.CR, regions.EC, regions.FR, regions.GT, regions.IT, regions.NI, regions.PA, regions.SV, ])
18.125
50
0.586207
0
0
0
0
0
0
0
0
0
0
dd5ec06ae412be00165dc082fa38f505f00c44d7
2,959
py
Python
qa/rpc-tests/checkpoint-load.py
ericramos1980/energi
aadc44f714f9d52433ab3595a9f33a61433c60c9
[ "MIT" ]
2
2021-12-28T21:47:07.000Z
2022-02-09T21:04:29.000Z
qa/rpc-tests/checkpoint-load.py
reddragon34/energi
4cc6c426d9d4b6b9053912de9b2197eba071201e
[ "MIT" ]
null
null
null
qa/rpc-tests/checkpoint-load.py
reddragon34/energi
4cc6c426d9d4b6b9053912de9b2197eba071201e
[ "MIT" ]
1
2019-10-07T19:17:55.000Z
2019-10-07T19:17:55.000Z
#!/usr/bin/env python3 # Copyright (c) 2019 The Energi Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import BitcoinTestFramework from test_framework.util import * import logging...
37.935897
86
0.639743
2,576
0.870564
0
0
0
0
0
0
566
0.191281
dd5ffb792de44849ba525e817187b550fe21e9d9
648
py
Python
python/setup.py
tcolgate/gracetests
552c8113b0554d49cf146e6d7cfd573c8b4cbf8f
[ "MIT" ]
2
2019-07-30T16:50:20.000Z
2021-11-26T22:46:29.000Z
python/setup.py
tcolgate/gracetests
552c8113b0554d49cf146e6d7cfd573c8b4cbf8f
[ "MIT" ]
null
null
null
python/setup.py
tcolgate/gracetests
552c8113b0554d49cf146e6d7cfd573c8b4cbf8f
[ "MIT" ]
1
2019-07-30T16:50:54.000Z
2019-07-30T16:50:54.000Z
import os from setuptools import find_packages, setup DIR = os.path.dirname(os.path.abspath(__file__)) setup( name='graceful', version='1.2.0', description='test of graceful shutdown', url='https://github.com/qubitdigital/graceful/python', author='Infra', author_email='infra@qubit.com', l...
22.344828
58
0.603395
0
0
0
0
0
0
0
0
253
0.390432
dd61bcf996578639e6980380d244d98682bbdae6
812
py
Python
src/mylog/logger.py
JoeBuzh/Pm_Composition_Quallity_Control
676c508a37c9a3774bf223e7abd53db04df771d7
[ "MIT" ]
1
2020-07-23T04:13:02.000Z
2020-07-23T04:13:02.000Z
src/runtime/mylog/mylog.py
JoeBuzh/DeepWeather
2677edc16d9865ec98401aaf121aaabd24974aaf
[ "MIT" ]
null
null
null
src/runtime/mylog/mylog.py
JoeBuzh/DeepWeather
2677edc16d9865ec98401aaf121aaabd24974aaf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import logging import logging.handlers import time def init_logger(log_file): dir_path = os.path.dirname(log_file) try: if not os.path.exists(dir_path): os.makedirs(dir_path) except Exception as e: pass handler = logging.handlers.Rotat...
31.230769
103
0.699507
0
0
0
0
0
0
0
0
179
0.220443
dd61ede10dd7a8e91db98cff1eeb2bd9cfadde8d
637
py
Python
convert_assets.py
michaelgold/usdzconvert
f4e6e552db4e27a3e088649f19f6bd61977501c1
[ "MIT" ]
null
null
null
convert_assets.py
michaelgold/usdzconvert
f4e6e552db4e27a3e088649f19f6bd61977501c1
[ "MIT" ]
null
null
null
convert_assets.py
michaelgold/usdzconvert
f4e6e552db4e27a3e088649f19f6bd61977501c1
[ "MIT" ]
null
null
null
import glob import os import subprocess import shutil source_file_list = glob.glob("../source/assets/*.glb") for input_file_name in source_file_list: base_file_name = os.path.split(input_file_name)[1] output_file_name = "../dist/assets/{}.usdz".format(os.path.splitext(base_file_name)[0]) print(...
35.388889
125
0.726845
0
0
0
0
0
0
0
0
116
0.182104
dd6374321202c04d2e14fb1f005b96daccd1a28b
36
py
Python
csv_json/__init__.py
Rerice/Csv_json_converter
54bf0f839d8fff203c1cf96812b96af915449fef
[ "MIT" ]
3
2021-06-02T15:32:45.000Z
2021-12-13T10:12:25.000Z
csv_json/__init__.py
Rerice/Csv_json_converter
54bf0f839d8fff203c1cf96812b96af915449fef
[ "MIT" ]
null
null
null
csv_json/__init__.py
Rerice/Csv_json_converter
54bf0f839d8fff203c1cf96812b96af915449fef
[ "MIT" ]
2
2021-06-02T15:30:42.000Z
2021-06-02T17:28:41.000Z
from csv_json.csv_json_conv import *
36
36
0.861111
0
0
0
0
0
0
0
0
0
0
dd63b219f3cb356db869fd14f9d34da5dd98361a
463
py
Python
Constants.py
HKN-UCSD/HIIT
63f726398ca63c92e82a8052a05608a8537e6e87
[ "MIT" ]
null
null
null
Constants.py
HKN-UCSD/HIIT
63f726398ca63c92e82a8052a05608a8537e6e87
[ "MIT" ]
null
null
null
Constants.py
HKN-UCSD/HIIT
63f726398ca63c92e82a8052a05608a8537e6e87
[ "MIT" ]
1
2019-08-18T19:23:44.000Z
2019-08-18T19:23:44.000Z
COLUMNS = ['First Name', 'Last Name', 'Class Standing', 'Cum GPA', 'Major Code', 'Dept', 'Email'] DEPTS = ['CSE', 'ECE', 'MATH', 'BENG'] CLASS_STANDINGS = ['SO', 'JR', 'SR'] DEPTS_MAJORS = dict() # bit of a faux-pas... DEPTS_MAJORS['CSE'] = ['CS25', 'CS26', 'CS27', 'CS28'] DEPTS_MAJORS['ECE'] = ['EC26', 'EC27', 'EC28'...
51.444444
97
0.580994
0
0
0
0
0
0
0
0
235
0.507559
dd6453c36feaa6225a2781434ed2cbc21f1477e2
258
py
Python
app/admin.py
Syilun/aiot-django-dashboard-postgresql
3aa607bd623006a4c99a97da304985eb908741c8
[ "MIT" ]
null
null
null
app/admin.py
Syilun/aiot-django-dashboard-postgresql
3aa607bd623006a4c99a97da304985eb908741c8
[ "MIT" ]
null
null
null
app/admin.py
Syilun/aiot-django-dashboard-postgresql
3aa607bd623006a4c99a97da304985eb908741c8
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from django.contrib import admin from .models import PERSON from .models import FACE # Register your models here. admin.site.register(PERSON) admin.site.register(FACE)
17.2
39
0.728682
0
0
0
0
0
0
0
0
113
0.437984
dd646968d684c4605ba1ae783d48a3452bbee81d
933
py
Python
Python/python-tutorials/networking/tcp_server.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/networking/tcp_server.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
Python/python-tutorials/networking/tcp_server.py
zhongyangynag/code-study
5410929554107a384a09d899c6fa3d16ed383d2b
[ "MIT" ]
null
null
null
#!/usr/bin/env python import re import sys import socket import SocketServer import struct import fcntl import sys def getip(ethname): if ethname=="": ethname="eth0" try: s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM) ip=socket.inet_ntoa(fcntl.ioctl(s.fileno(), 0X8915, struct.pack('256s', ethname[:15]))[2...
21.697674
96
0.736334
431
0.461951
0
0
0
0
0
0
136
0.145766
dd64daf0644c28687a4705d4e8b356d44e031ab4
2,190
py
Python
tests/test_examples.py
timgates42/goless
3c8742fa0f94d0a365840aae404da4e8eaed9d71
[ "Apache-2.0" ]
266
2015-01-03T04:18:48.000Z
2022-02-16T03:08:38.000Z
tests/test_examples.py
timgates42/goless
3c8742fa0f94d0a365840aae404da4e8eaed9d71
[ "Apache-2.0" ]
19
2015-03-06T11:04:53.000Z
2021-06-09T15:08:57.000Z
tests/test_examples.py
timgates42/goless
3c8742fa0f94d0a365840aae404da4e8eaed9d71
[ "Apache-2.0" ]
20
2015-01-03T03:45:08.000Z
2022-03-05T06:05:32.000Z
""" Idiomatic Go examples converted to use goless. """ from __future__ import print_function import time from . import BaseTests import goless class Examples(BaseTests): def test_select(self): # https://gobyexample.com/select c1 = goless.chan() c2 = goless.chan() def func1(): ...
26.071429
75
0.541096
2,042
0.93242
0
0
0
0
0
0
348
0.158904
dd67590d08d500fd8ab7568abbfffa79b1097a7f
3,211
py
Python
Utils/Messaging.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
Utils/Messaging.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
Utils/Messaging.py
philshams/FC_analysis
cabe2385d5061d206a21b230605bfce9e39ec7f2
[ "MIT" ]
null
null
null
from slackclient import SlackClient import requests import os from Config import slack_env_var_token, slack_username """ These functions take care of sending slack messages and emails """ def slack_chat_messenger(message): # NEVER LEAVE THE TOKEN IN YOUR CODE ON GITHUB, EVERYBODY WOULD HAVE ACCESS TO THE CHANN...
28.669643
106
0.646528
0
0
0
0
0
0
0
0
1,135
0.353472
dd67b0be318886c07c1697a2ac8415ae63718592
71,403
py
Python
venv/lib/python3.8/site-packages/spaceone/api/monitoring/v1/alert_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/monitoring/v1/alert_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
venv/lib/python3.8/site-packages/spaceone/api/monitoring/v1/alert_pb2.py
choonho/plugin-prometheus-mon-webhook
afa7d65d12715fd0480fb4f92a9c62da2d6128e0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: spaceone/api/monitoring/v1/alert.proto """Generated protocol buffer code.""" from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _m...
50.676366
7,646
0.759086
0
0
0
0
0
0
0
0
20,365
0.285212
dd67c81828221987d83cf924bc48aff8f98affa6
3,364
py
Python
fluid.py
fomightez/stable-fluids
a7bdbb0960c746022a1dfc216dbfe928ee98947b
[ "Unlicense" ]
1
2020-04-20T12:14:59.000Z
2020-04-20T12:14:59.000Z
fluid.py
fomightez/stable-fluids
a7bdbb0960c746022a1dfc216dbfe928ee98947b
[ "Unlicense" ]
null
null
null
fluid.py
fomightez/stable-fluids
a7bdbb0960c746022a1dfc216dbfe928ee98947b
[ "Unlicense" ]
null
null
null
import numpy as np import scipy.sparse as sp from scipy.ndimage import map_coordinates from scipy.sparse.linalg import factorized import operators as ops class Fluid: def __init__(self, shape, viscosity, quantities): self.shape = shape # Defining these here keeps the code somewhat more readable v...
51.753846
117
0.69352
3,206
0.953032
0
0
0
0
0
0
1,406
0.417955
dd69e272fd1cf6715ec8277d234fe3f1835d95b2
879
py
Python
setup.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
setup.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
setup.py
ngocjr7/geneticpython
4b4157523ce13b3da56cef61282cb0a984cd317b
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages with open("README.md", "r") as fh: long_description = fh.read() PROJECT_URLS = { 'Bug Tracker': 'https://github.com/ngocjr7/geneticpython/issues', 'Documentation': 'https://github.com/ngocjr7/geneticpython/blob/master/README.md', 'Source Code': 'https://gith...
33.807692
88
0.703072
0
0
0
0
0
0
0
0
374
0.425484
dd6a3b230c4f4617de43080fbacd944fd76f81a8
182
py
Python
Script Python/Desafios/Desafio-012.py
Hubyratan/Material-Python
3f7910dd10b91cefe7b2f3f6aa49e9f9c522fd32
[ "MIT" ]
1
2020-05-11T04:05:56.000Z
2020-05-11T04:05:56.000Z
Script Python/Desafios/Desafio-012.py
Hubyratan/Material-Python
3f7910dd10b91cefe7b2f3f6aa49e9f9c522fd32
[ "MIT" ]
null
null
null
Script Python/Desafios/Desafio-012.py
Hubyratan/Material-Python
3f7910dd10b91cefe7b2f3f6aa49e9f9c522fd32
[ "MIT" ]
null
null
null
v = float(input('Valor do produto? R$')) d = float(input('Porcentagem de desconto: ')) ds = (d*v)/100 p = v-ds print(f'Você recebeu R${ds} de desconto, e pagará somente R${p} reais')
36.4
71
0.659341
0
0
0
0
0
0
0
0
115
0.625
dd6c3adf785e5f57e8767ea1f8f416eff17606e6
208
py
Python
gavia/__init__.py
brett-hosking/gavia
d771235902b9a949efa92a1954d47dac8b1b527f
[ "MIT" ]
null
null
null
gavia/__init__.py
brett-hosking/gavia
d771235902b9a949efa92a1954d47dac8b1b527f
[ "MIT" ]
null
null
null
gavia/__init__.py
brett-hosking/gavia
d771235902b9a949efa92a1954d47dac8b1b527f
[ "MIT" ]
null
null
null
# Package modules from gavia import camera from gavia import vizualise from gavia import nav from gavia import gps from gavia import log from gavia import time # For nested packages from gavia import image
20.8
27
0.8125
0
0
0
0
0
0
0
0
39
0.1875
dd6dcaf577bcfeb980245ce8c8087ba55da11a51
1,241
py
Python
pynetester/pynetester/netester.py
zoumingzhe/pynetester
256776491b65d4b5f474754e02537f28a5961888
[ "MIT" ]
null
null
null
pynetester/pynetester/netester.py
zoumingzhe/pynetester
256776491b65d4b5f474754e02537f28a5961888
[ "MIT" ]
null
null
null
pynetester/pynetester/netester.py
zoumingzhe/pynetester
256776491b65d4b5f474754e02537f28a5961888
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # ---------------------------------------------------------------------------------------------------- import socket import os # ---------------------------------------------------------------------------------------------------- # 类 netester # -------------------------------------...
45.962963
102
0.2361
450
0.350195
0
0
276
0.214786
0
0
1,009
0.785214
dd6f59dfe10afced9799503fae00bbea231ed3f2
7,121
py
Python
cmepy/solver.py
hegland/cmepy
fa8cdf2fad779badbcb629bf6ee33316724ec4a4
[ "BSD-3-Clause" ]
6
2015-05-21T04:56:26.000Z
2019-12-11T18:23:58.000Z
cmepy/solver.py
fcostin/cmepy
fa8cdf2fad779badbcb629bf6ee33316724ec4a4
[ "BSD-3-Clause" ]
1
2018-11-28T15:45:39.000Z
2019-09-18T23:25:40.000Z
cmepy/solver.py
hegland/cmepy
fa8cdf2fad779badbcb629bf6ee33316724ec4a4
[ "BSD-3-Clause" ]
3
2017-05-13T06:56:08.000Z
2021-09-01T14:20:52.000Z
""" Creates solvers for the Chemical Master Equation (CME). """ import numpy from cmepy import cme_matrix, domain, ode_solver, other_solver, state_enum from cmepy import model as mdl def create_packing_functions(domain_enum): """ create_packing_functions(domain_enum) -> (pack, unpack) where ...
35.078818
79
0.602303
0
0
0
0
0
0
0
0
4,303
0.604269
dd767e6d50fc90c7d830096cddd6903575b2142e
1,290
py
Python
server_common/helpers.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
server_common/helpers.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
server_common/helpers.py
GustavLero/EPICS-inst_servers
4bcdd6a80f1d9e074de3f0f7c66968d506981988
[ "BSD-3-Clause" ]
null
null
null
import json import os import sys from server_common.ioc_data_source import IocDataSource from server_common.mysql_abstraction_layer import SQLAbstraction from server_common.utilities import print_and_log, SEVERITY def register_ioc_start(ioc_name, pv_database=None, prefix=None): """ A helper function to regis...
32.25
108
0.686047
0
0
0
0
0
0
0
0
444
0.344186
dd782114838d338a027967eb958ee0dd0d6070b0
12,799
py
Python
rman_ui/rman_ui_txmanager.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
12
2019-05-03T21:58:15.000Z
2022-02-24T07:02:21.000Z
rman_ui/rman_ui_txmanager.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
4
2019-03-07T18:20:16.000Z
2020-09-24T21:53:15.000Z
rman_ui/rman_ui_txmanager.py
ian-hsieh/RenderManForBlender
c827f029f4cbbd1fcc71ed8d3694fc5ac58cc468
[ "MIT" ]
3
2019-05-25T01:17:09.000Z
2019-09-13T14:43:12.000Z
import bpy from bpy.props import StringProperty, IntProperty, CollectionProperty, EnumProperty, BoolProperty from bpy.types import PropertyGroup, UIList, Operator, Panel from bpy_extras.io_utils import ImportHelper from .rman_ui_base import _RManPanelHeader from ..txmanager3 import txparams from ..rman_utils import tex...
32.734015
110
0.615595
10,539
0.823424
0
0
0
0
0
0
2,109
0.164778
dd788c7b5bde6a0a3088e641302680a262892fc0
943
py
Python
cousins-in-binary-tree/cousins-in-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
2
2021-12-05T14:29:06.000Z
2022-01-01T05:46:13.000Z
cousins-in-binary-tree/cousins-in-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
cousins-in-binary-tree/cousins-in-binary-tree.py
hyeseonko/LeetCode
48dfc93f1638e13041d8ce1420517a886abbdc77
[ "MIT" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isCousins(self, root: Optional[TreeNode], x: int, y: int) -> bool: # condition to be cousin: (1)...
36.269231
74
0.520679
751
0.796394
0
0
0
0
0
0
243
0.257688
dd793146f92f3801277eeab8ef75d59d722ca146
5,581
py
Python
rdmo/questions/tests/test_validator_locked_questions.py
berkerY/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
77
2016-08-09T11:40:20.000Z
2022-03-06T11:03:26.000Z
rdmo/questions/tests/test_validator_locked_questions.py
MSpenger/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
377
2016-07-01T13:59:36.000Z
2022-03-30T13:53:19.000Z
rdmo/questions/tests/test_validator_locked_questions.py
MSpenger/rdmo
c0500f9b6caff9106a254a05e0d0e8018fc8db28
[ "Apache-2.0" ]
47
2016-06-23T11:32:19.000Z
2022-03-01T11:34:37.000Z
import pytest from django.core.exceptions import ValidationError from rest_framework.exceptions import \ ValidationError as RestFameworkValidationError from ..models import Question, QuestionSet from ..serializers.v1 import QuestionSerializer from ..validators import QuestionLockedValidator def test_create(db): ...
25.600917
64
0.689124
0
0
0
0
0
0
0
0
378
0.06773
dd79ddb1ceb718cc4031b1942143fae9a88b3147
80,373
py
Python
samtranslator/model/sam_resources.py
aaythapa/serverless-application-model
1029548db5787845d1a321d7c182aeb3716933ba
[ "Apache-2.0" ]
null
null
null
samtranslator/model/sam_resources.py
aaythapa/serverless-application-model
1029548db5787845d1a321d7c182aeb3716933ba
[ "Apache-2.0" ]
null
null
null
samtranslator/model/sam_resources.py
aaythapa/serverless-application-model
1029548db5787845d1a321d7c182aeb3716933ba
[ "Apache-2.0" ]
null
null
null
""" SAM macro definitions """ from six import string_types import copy import uuid import samtranslator.model.eventsources import samtranslator.model.eventsources.pull import samtranslator.model.eventsources.push import samtranslator.model.eventsources.cloudwatchlogs from .api.api_generator import ApiGenerator from ....
47.333922
205
0.674617
76,939
0.95725
0
0
2,252
0.028019
0
0
26,146
0.3253
dd7bb92f20393f9e12f7115e84f70223584f154d
928
py
Python
media_logs/urls/audios.py
Akshayvm98/Django-School
723d52db2cd3bc7665680a3adaf8687f97836d48
[ "MIT" ]
26
2015-08-04T00:13:27.000Z
2021-03-19T01:01:14.000Z
media_logs/urls/audios.py
Akshayvm98/Django-School
723d52db2cd3bc7665680a3adaf8687f97836d48
[ "MIT" ]
null
null
null
media_logs/urls/audios.py
Akshayvm98/Django-School
723d52db2cd3bc7665680a3adaf8687f97836d48
[ "MIT" ]
28
2015-01-19T15:10:15.000Z
2020-10-27T11:22:21.000Z
from django.conf.urls.defaults import * from media_logs.models import * audio_list = { 'queryset': Audio.objects.all(), } audio_set_list = { 'queryset': AudioSet.objects.all(), } urlpatterns = patterns('', url( regex = '^sets/(?P<slug>[-\w]+)/$', view = 'django.views.generic.list_detail.object_de...
23.2
63
0.574353
0
0
0
0
0
0
0
0
373
0.40194
dd7d61b4fcf318d454a05f755e0919c0dd18ea88
2,964
py
Python
pycalc/MAVProxy/modules/mavproxy_gopro.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
pycalc/MAVProxy/modules/mavproxy_gopro.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
8
2021-01-28T19:26:22.000Z
2022-03-24T18:07:24.000Z
pycalc/MAVProxy/modules/mavproxy_gopro.py
joakimzhang/python-electron
79bc174a14c5286ca739bb7d8ce6522fdc6e9e80
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python '''gopro control over mavlink for the solo-gimbal To use this module connect to a Solo with a GoPro installed on the gimbal. ''' import time, os from MAVProxy.modules.lib import mp_module from pymavlink import mavutil class GoProModule(mp_module.MPModule): def __init__(self, mpstate): ...
34.068966
83
0.5361
2,639
0.890351
0
0
0
0
0
0
567
0.191296
dd7ea8658ced22af8cde597e98ea9827577d3995
343
py
Python
strings.py
aemreb/telegram_paybot
f973ddd9029f2844901508fa983aa37b6ca93089
[ "MIT" ]
2
2021-09-17T10:55:14.000Z
2021-09-17T10:55:38.000Z
strings.py
aemreb/telegram_paybot
f973ddd9029f2844901508fa983aa37b6ca93089
[ "MIT" ]
null
null
null
strings.py
aemreb/telegram_paybot
f973ddd9029f2844901508fa983aa37b6ca93089
[ "MIT" ]
1
2021-05-31T18:23:02.000Z
2021-05-31T18:23:02.000Z
help = '''Hey 👋 \n\n /signup nick: enter your nick and sign up \n\n /atm: see your balance \n\n /send nick amount: send this nick that amount of buxx 💰 \n ''' signup = '''Hi! Type /signup to sign up.''' user_created = '''Created user. Welcome to Paybot 🤑''' user_exists = '''User already exists ☹️''' not_enough_buxx ...
57.166667
158
0.655977
0
0
0
0
0
0
0
0
291
0.810585
dd7f9dbcfe5bd13ce56beb5ae807d4bb63f3c4df
1,609
py
Python
Program_python/Extractfolderimage.py
pection/MN-furniture
4c796f072662c15b2a263272ef2637e221c42cab
[ "MIT" ]
1
2022-02-22T06:20:56.000Z
2022-02-22T06:20:56.000Z
Program_python/Extractfolderimage.py
pection/MN-furniture
4c796f072662c15b2a263272ef2637e221c42cab
[ "MIT" ]
null
null
null
Program_python/Extractfolderimage.py
pection/MN-furniture
4c796f072662c15b2a263272ef2637e221c42cab
[ "MIT" ]
1
2020-11-24T18:18:42.000Z
2020-11-24T18:18:42.000Z
import os import sys import numpy as np from PIL import Image num=1 path ="/Users/pection/Documents/mn_furniture/AddwatermarkProgram/Lastday/" #we shall store all the file names in this list filelist=[] for root, dirs, files in os.walk(path): for file in files: if(file.endswith(".jpg")): filelis...
35.755556
100
0.661902
0
0
0
0
0
0
0
0
912
0.566812
dd7fb45e0f3cff64598edf9ddf119adc6b039b8e
1,986
py
Python
BrainML/__init__.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
BrainML/__init__.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
BrainML/__init__.py
bogdan124/DeepML
ad5e904cc9fcd3c499bbca3538525d83fde003f5
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from BrainML.activation import Activator from BrainML.layers import * from BrainML.optimizer import Optimizer from tensorflow.python.util import deprecation ##deprecation._PRINT_DEPRECATION_WARNINGS = False ##tf.compat.v1.disable_eager_execution() import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = ...
38.192308
268
0.735146
1,617
0.814199
0
0
0
0
0
0
360
0.181269
dd80e90be1c610d2c46bc8b8b02fd6070d94ee6d
2,900
py
Python
detection/pixel_link/util/dec.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
211
2020-04-13T02:56:57.000Z
2022-03-30T11:22:46.000Z
detection/pixel_link/util/dec.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
41
2020-04-14T20:08:58.000Z
2022-03-28T15:08:30.000Z
detection/pixel_link/util/dec.py
HLIG/HUAWEI_OCR2019
1070d6291072e0223c2624f686766d0f3065e9c6
[ "MIT" ]
47
2020-04-13T10:17:11.000Z
2022-02-21T02:06:16.000Z
#encoding=utf-8 import logging import time def print_calling(fn): def wrapper(*args1, ** args2): s = "calling function %s"%(fn.__name__) logging.info(s) start = time.time() ret = fn(*args1, **args2) end = time.time() # s = "%s. time used = %f seconds"%(s, (end - start...
36.708861
137
0.589655
0
0
0
0
0
0
0
0
600
0.206897
dd8112f277127d953f0d1ded63b446df7043645e
2,955
py
Python
problems/graph-valid-tree.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
problems/graph-valid-tree.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
problems/graph-valid-tree.py
sailikhithk/tech-interview-prep
e833764cf98915d56118bddfa0e01871c58de75e
[ "Apache-2.0" ]
null
null
null
""" First of all a tree of N nodes must have exactly N-1 edges. 2 nodes need 1 edge to connect. 3 nodes need 2 edges to connect... Just draw one or two, you will know it. Valid tree don't have cycles, there are two ways to detect it. DFS. and union find. Union find is more suitable in this sutuation. 1. Union find. W...
31.105263
99
0.702876
456
0.154315
0
0
0
0
0
0
1,998
0.676142
dd81524e1e000d2bbdd8e39c55a281ea1c78ab94
1,336
py
Python
config.py
MGorr/icons_updater
aa9f9177a565fbe590cf959f625f049024e01efb
[ "MIT" ]
1
2021-06-18T06:58:15.000Z
2021-06-18T06:58:15.000Z
config.py
MGorr/icons_updater
aa9f9177a565fbe590cf959f625f049024e01efb
[ "MIT" ]
null
null
null
config.py
MGorr/icons_updater
aa9f9177a565fbe590cf959f625f049024e01efb
[ "MIT" ]
null
null
null
"""Configuration class for icons updating.""" import os from configparser import ConfigParser _DESTINATION_NAME = 'dst' _MAGICK_NAME = 'path' _SOURCES_NAME = 'src' class Config: """Configuration class.""" def __init__(self, config_file=None, src=None, dst=None): """Constructor.""" parser =...
30.363636
72
0.610778
1,166
0.872754
0
0
0
0
0
0
298
0.223054
dd820e8c14626563e752d4624969a2315eb254b9
8,831
py
Python
project/settings.py
ziibii88/The_Doe_Agency
2545aeae71c779166bef78941cac36551498ca76
[ "MIT" ]
2
2021-07-16T10:25:15.000Z
2021-08-07T04:44:08.000Z
project/settings.py
ziibii88/The_Doe_Agency
2545aeae71c779166bef78941cac36551498ca76
[ "MIT" ]
null
null
null
project/settings.py
ziibii88/The_Doe_Agency
2545aeae71c779166bef78941cac36551498ca76
[ "MIT" ]
null
null
null
""" Django settings for project project. Generated by 'django-admin startproject' using Django 3.2.5. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from datetime...
32.112727
108
0.669347
0
0
0
0
0
0
0
0
6,005
0.679991
dd837f67ec7177838bf8a526749af097805f6779
15,142
py
Python
CalsCamera/main.py
NoDrones/Imaging
555c8aeced98097379b80f448689f2bf2974c3e9
[ "MIT" ]
1
2019-01-28T21:55:53.000Z
2019-01-28T21:55:53.000Z
CalsCamera/main.py
NoDrones/Imaging
555c8aeced98097379b80f448689f2bf2974c3e9
[ "MIT" ]
null
null
null
CalsCamera/main.py
NoDrones/Imaging
555c8aeced98097379b80f448689f2bf2974c3e9
[ "MIT" ]
null
null
null
#Author: Calvin Ryan import sensor, image, time, pyb, ustruct, math, utime def get_gain(): gain_reg_val = sensor.__read_reg(0x00) #print("gain_reg_val: " + str(gain_reg_val)) bitwise_gain_range = (gain_reg_val & 0b11110000) >> 4 #get the highest four bits which correspond to gain range. Depends on the bit...
43.636888
262
0.66616
0
0
0
0
0
0
0
0
4,828
0.318848
dd83de2fe7b5a8905e65a790566a924385cc7b19
297
py
Python
dados/outside/6-JEL_code.py
correia-marcos/Innovation-on-brazilian-economic-research
98bc677618ec2dff062db42cda7279a5e7065a32
[ "MIT" ]
null
null
null
dados/outside/6-JEL_code.py
correia-marcos/Innovation-on-brazilian-economic-research
98bc677618ec2dff062db42cda7279a5e7065a32
[ "MIT" ]
null
null
null
dados/outside/6-JEL_code.py
correia-marcos/Innovation-on-brazilian-economic-research
98bc677618ec2dff062db42cda7279a5e7065a32
[ "MIT" ]
null
null
null
""" This script was made to anaylse the relation between JEL and areas in ANPEC. The idea is that checking the JEL code of each paper, it can be vizualized whether some papers were published in area (from ANPEC meeting) not expected by their JEL code. """ import os import pandas as pd import
22.846154
76
0.767677
0
0
0
0
0
0
0
0
256
0.861953
dd88982df37b33dce441276837b7773dc3af6b26
1,311
py
Python
tests/garage/tf/spaces/test_dict_space.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
3
2019-08-11T22:26:55.000Z
2020-11-28T10:23:50.000Z
tests/garage/tf/spaces/test_dict_space.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
null
null
null
tests/garage/tf/spaces/test_dict_space.py
shadiakiki1986/garage
095bb5d25b32df1d44b47e99a78a9b01796941d9
[ "MIT" ]
2
2019-08-11T22:30:14.000Z
2021-03-25T02:57:50.000Z
"""This script tests garage.tf.spaces.dict functionality.""" import unittest from garage.misc import ext from garage.tf.envs import TfEnv from tests.fixtures.envs.dummy import DummyDictEnv class TestDictSpace(unittest.TestCase): def test_dict_space(self): ext.set_seed(0) # A dummy dict env ...
31.214286
76
0.661327
1,118
0.852784
0
0
0
0
0
0
253
0.192982
dd8913997853973a6abd55f95d60d2c6a230000b
3,429
py
Python
utils/compare_MRAE.py
Liuhongzhi2018/SSRGAN
b5be922db1600aabb6a06ee52fb1c83ee738d794
[ "Apache-2.0" ]
1
2022-01-21T09:01:48.000Z
2022-01-21T09:01:48.000Z
utils/compare_MRAE.py
Liuhongzhi2018/SSRGAN
b5be922db1600aabb6a06ee52fb1c83ee738d794
[ "Apache-2.0" ]
1
2021-08-18T11:33:43.000Z
2021-08-18T11:33:43.000Z
utils/compare_MRAE.py
Liuhongzhi2018/SSRGAN
b5be922db1600aabb6a06ee52fb1c83ee738d794
[ "Apache-2.0" ]
null
null
null
import argparse import os import cv2 import numpy as np import hdf5storage as hdf5 from scipy.io import loadmat from matplotlib import pyplot as plt from SpectralUtils import savePNG, projectToRGB from EvalMetrics import computeMRAE BIT_8 = 256 # read path def get_files(path): # read a folder, return the complet...
36.870968
118
0.706328
0
0
0
0
0
0
0
0
1,189
0.346748
dd895eff6bdbc6e4f11421a7c77e8c3865e7d03d
2,435
py
Python
board/send_message.py
ben741863140/cfsystem
227e269f16533719251962f4d8caee8b51091d2f
[ "Apache-2.0" ]
4
2018-02-22T01:59:07.000Z
2020-07-09T06:28:46.000Z
board/send_message.py
ben741863140/cfsystem
227e269f16533719251962f4d8caee8b51091d2f
[ "Apache-2.0" ]
null
null
null
board/send_message.py
ben741863140/cfsystem
227e269f16533719251962f4d8caee8b51091d2f
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import gzip import re import http.cookiejar import urllib.request import urllib.parse # from logreg.sender import use_sender, sender def send_message(handle, content, captcha): def ungzip(data): return gzip.decompress(data) def get_csrf(data): cer = re.compile('data-csr...
29.695122
93
0.588501
0
0
0
0
0
0
0
0
844
0.346612
dd8f4efcbe0f27065a9ebbb9e0dbf84e6d87fb06
22,725
py
Python
preprocess.py
cheery/pytci
57b526b621da5e6783d15d73bac4ca57b281be70
[ "MIT" ]
148
2015-10-18T04:47:27.000Z
2021-11-09T09:36:43.000Z
preprocess.py
cheery/pytci
57b526b621da5e6783d15d73bac4ca57b281be70
[ "MIT" ]
3
2015-10-21T21:21:38.000Z
2017-04-10T00:16:04.000Z
preprocess.py
cheery/pytci
57b526b621da5e6783d15d73bac4ca57b281be70
[ "MIT" ]
10
2015-10-18T03:29:39.000Z
2018-12-18T12:14:01.000Z
import tokenize, operator macro_list = {} def chomp(state, with_defined=False): token = state.next_expanded_token() while token is not None: if name_of(token) == "macro": for token in run_macro(state): yield token elif state.processing: yield token ...
37.561983
189
0.60374
9,242
0.406689
1,286
0.05659
0
0
0
0
3,001
0.132057
dd8f9e880d1c5b15888f038a47c041322592d1b0
2,177
py
Python
arfit/run_carma_pack.py
farr/arfit
7ff6def331ef98f43f623da2d9867d1ac967448b
[ "MIT" ]
5
2015-04-29T21:46:52.000Z
2021-05-13T04:59:23.000Z
arfit/run_carma_pack.py
afcarl/arfit
7ff6def331ef98f43f623da2d9867d1ac967448b
[ "MIT" ]
null
null
null
arfit/run_carma_pack.py
afcarl/arfit
7ff6def331ef98f43f623da2d9867d1ac967448b
[ "MIT" ]
2
2015-12-03T12:08:32.000Z
2018-05-26T16:20:31.000Z
#!/usr/bin/env python from __future__ import print_function import argparse import carmcmc as cm import numpy as np import os import plotutils.autocorr as ac import sys if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--input', required=True, metavar='FILE', help='input fil...
34.015625
131
0.635278
0
0
0
0
0
0
0
0
378
0.173633
dd90daf3764122311fdf88342d48e04ecb1b9e7d
3,946
py
Python
editquality/feature_lists/wikitext.py
paulkernfeld/editquality
029f21278d89d6e50b0eac7b39d8355f8e4686f4
[ "MIT" ]
18
2015-09-13T10:47:31.000Z
2018-08-20T15:00:35.000Z
editquality/feature_lists/wikitext.py
paulkernfeld/editquality
029f21278d89d6e50b0eac7b39d8355f8e4686f4
[ "MIT" ]
98
2015-12-13T12:18:24.000Z
2018-08-07T21:10:46.000Z
editquality/feature_lists/wikitext.py
paulkernfeld/editquality
029f21278d89d6e50b0eac7b39d8355f8e4686f4
[ "MIT" ]
17
2015-09-29T20:52:12.000Z
2018-08-20T11:33:30.000Z
from revscoring.features import Feature, wikitext from revscoring.features.modifiers import div, log, max, sub def _process_new_longest(p_longest, r_longest): if r_longest > p_longest: return r_longest else: return 1 parent = [ log(wikitext.revision.parent.chars + 1), log(wikitext.re...
41.978723
71
0.727826
0
0
0
0
0
0
0
0
521
0.132032
dd9402b8557bc8fee0baeb9f728d3c332668ae1e
2,240
py
Python
test/http2_test/http2_server_health_check.py
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
2
2021-09-10T00:20:13.000Z
2021-11-16T11:27:19.000Z
test/http2_test/http2_server_health_check.py
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
null
null
null
test/http2_test/http2_server_health_check.py
miyachu/grpc
a06ea3c3162c10ff90a1578bf82bbbff95dc799d
[ "BSD-3-Clause" ]
1
2020-11-04T04:19:45.000Z
2020-11-04T04:19:45.000Z
# Copyright 2017, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the f...
44.8
75
0.766964
0
0
0
0
0
0
0
0
1,743
0.778125
dd9452c189452f40fb4e6f56c43cb761ffc48203
3,494
py
Python
server/droidio/demands/test/test_views.py
lucasOlivio/droid.io
945b1452eaaa73b4d7f9d1d1a35eaa2900e97e96
[ "MIT" ]
null
null
null
server/droidio/demands/test/test_views.py
lucasOlivio/droid.io
945b1452eaaa73b4d7f9d1d1a35eaa2900e97e96
[ "MIT" ]
null
null
null
server/droidio/demands/test/test_views.py
lucasOlivio/droid.io
945b1452eaaa73b4d7f9d1d1a35eaa2900e97e96
[ "MIT" ]
null
null
null
from django.urls import reverse from rest_framework.test import APITestCase from rest_framework import status from nose.tools import eq_ from faker import Faker import factory from ..models import Demand from .factories import DemandFactory from ..serializers import DemandSerializer from droidio.users.test.factorie...
34.94
87
0.704637
3,131
0.896108
0
0
0
0
0
0
256
0.073268
dd94f0230de4472e8494e2e5c028fe0a163fe4d9
422
py
Python
leetcode/python/check_in_n_and_its_double_exists.py
subhadig/leetcode
9151ea49c342efa228cf82de72736c3445bbfef2
[ "Unlicense" ]
null
null
null
leetcode/python/check_in_n_and_its_double_exists.py
subhadig/leetcode
9151ea49c342efa228cf82de72736c3445bbfef2
[ "Unlicense" ]
null
null
null
leetcode/python/check_in_n_and_its_double_exists.py
subhadig/leetcode
9151ea49c342efa228cf82de72736c3445bbfef2
[ "Unlicense" ]
null
null
null
# https://leetcode.com/explore/learn/card/fun-with-arrays/527/searching-for-items-in-an-array/3250/ # time: O(n) # space: O(n) class Solution: def checkIfExist(self, arr: List[int]) -> bool: if not arr: return False nums = set() for x in arr: if 2*x in nums or x/2 in...
26.375
99
0.533175
293
0.694313
0
0
0
0
0
0
124
0.293839
dd95ba5b789b57d2c18cb6c697a4bed1400af969
2,743
py
Python
cloud_functions/trigger-monitor-dag-function/main_test.py
google/feedloader
f6a25569bc3d7d4ee326961fd3b01e45fc3858e4
[ "Apache-2.0" ]
5
2021-02-15T12:49:12.000Z
2022-01-12T06:28:41.000Z
cloud_functions/trigger-monitor-dag-function/main_test.py
google/feedloader
f6a25569bc3d7d4ee326961fd3b01e45fc3858e4
[ "Apache-2.0" ]
null
null
null
cloud_functions/trigger-monitor-dag-function/main_test.py
google/feedloader
f6a25569bc3d7d4ee326961fd3b01e45fc3858e4
[ "Apache-2.0" ]
4
2021-02-16T17:28:00.000Z
2021-06-18T15:27:52.000Z
# coding=utf-8 # 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 ...
31.528736
79
0.696318
1,712
0.624134
0
0
1,873
0.682829
0
0
1,255
0.457528