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
e048929c57d8279d48bbfdb7b6430abd2459ceab
243
py
Python
Others/code_festival/code-festival-2015-final-open/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
2
2020-06-12T09:54:23.000Z
2021-05-04T01:34:07.000Z
Others/code_festival/code-festival-2015-final-open/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
961
2020-06-23T07:26:22.000Z
2022-03-31T21:34:52.000Z
Others/code_festival/code-festival-2015-final-open/a.py
KATO-Hiro/AtCoder
cbbdb18e95110b604728a54aed83a6ed6b993fde
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- def main(): s, t, u = map(str, input().split()) if len(s) == 5 and len(t) == 7 and len(u) == 5: print('valid') else: print('invalid') if __name__ == '__main__': main()
16.2
52
0.440329
0
0
0
0
0
0
0
0
50
0.205761
e048b527992db2f1543fe57b684fc1f640173519
328
py
Python
python_Project/Day_16-20/test_2.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
python_Project/Day_16-20/test_2.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
python_Project/Day_16-20/test_2.py
Zzz-ww/Python-prac
c97f2c16b74a2c1df117f377a072811cc596f98b
[ "MIT" ]
null
null
null
""" 嵌套的列表的坑 """ names = ['关羽', '张飞', '赵云', '马超', '黄忠'] courses = ['语文', '数学', '英语'] # 录入五个学生三门课程的成绩 scores = [[None] * len(courses) for _ in range(len(names))] for row, name in enumerate(names): for col, course in enumerate(courses): scores[row][col] = float(input(f'请输入{name}的{course}的成绩:')) print...
25.230769
66
0.591463
0
0
0
0
0
0
0
0
173
0.417874
e04a69c5ceb81801a0a97e45ded8c53330ccbc76
18,672
py
Python
asr/dataloaders/am_dataloader.py
Z-yq/audioSamples.github.io
53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3
[ "Apache-2.0" ]
1
2022-03-03T02:51:55.000Z
2022-03-03T02:51:55.000Z
asr/dataloaders/am_dataloader.py
Z-yq/audioSamples.github.io
53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3
[ "Apache-2.0" ]
null
null
null
asr/dataloaders/am_dataloader.py
Z-yq/audioSamples.github.io
53c474288f0db1a3acfe40ba57a4cd5f2aecbcd3
[ "Apache-2.0" ]
null
null
null
import logging import random import numpy as np import pypinyin import tensorflow as tf from augmentations.augments import Augmentation from utils.speech_featurizers import SpeechFeaturizer from utils.text_featurizers import TextFeaturizer logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(le...
43.322506
152
0.530366
18,375
0.980785
428
0.022845
0
0
0
0
1,636
0.087323
e04c1f351c8c0376a0ea90e165d6e346051fee43
7,612
py
Python
migrations/versions/2018_04_20_data_src_refactor.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
null
null
null
migrations/versions/2018_04_20_data_src_refactor.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
null
null
null
migrations/versions/2018_04_20_data_src_refactor.py
AlexKouzy/ethnicity-facts-and-figures-publisher
18ab2495a8633f585e18e607c7f75daa564a053d
[ "MIT" ]
null
null
null
"""empty message Revision ID: 2018_04_20_data_src_refactor Revises: 2018_04_11_add_sandbox_topic Create Date: 2018-04-20 13:03:32.478880 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. from sqlalchemy.dialects.postgresql import ARRAY revision = '2018_04_20_data_src_refac...
62.909091
152
0.759721
0
0
0
0
0
0
0
0
3,878
0.509459
e04ce14b43e2b6f0784e3b17efec18f6e25f76d2
1,897
py
Python
lib/core/parse/cmdline.py
vikas-kundu/phonedict
6795cab0024e792340c43d95552162a985b891f6
[ "MIT" ]
null
null
null
lib/core/parse/cmdline.py
vikas-kundu/phonedict
6795cab0024e792340c43d95552162a985b891f6
[ "MIT" ]
null
null
null
lib/core/parse/cmdline.py
vikas-kundu/phonedict
6795cab0024e792340c43d95552162a985b891f6
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # coded by Vikas Kundu https://github.com/vikas-kundu # ------------------------------------------- import sys import getopt import time import config from lib.core.parse import banner from lib.core import util from lib.core import installer def options(): ...
28.313433
129
0.461255
0
0
0
0
0
0
0
0
466
0.245651
e04d583757322341dcf56eb5852389f9fd5b2748
1,634
py
Python
mistral/tests/unit/utils/test_utils.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
205
2015-06-21T11:51:47.000Z
2022-03-05T04:00:04.000Z
mistral/tests/unit/utils/test_utils.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
8
2015-06-23T14:47:58.000Z
2021-01-28T06:06:44.000Z
mistral/tests/unit/utils/test_utils.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
110
2015-06-14T03:34:38.000Z
2021-11-11T12:12:56.000Z
# Copyright 2013 - Mirantis, Inc. # Copyright 2015 - StackStorm, Inc. # Copyright 2015 - Huawei Technologies Co. Ltd # # 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:/...
29.178571
77
0.632191
800
0.489596
0
0
0
0
0
0
698
0.427173
e04da5eb604fc61099ea52110ba3398380247444
2,660
py
Python
shoutcast_api/shoutcast_request.py
scls19fr/shoutcast_api
89a9e826b82411ae5f24ea28e1b1cb22eaaa0890
[ "MIT" ]
6
2020-03-03T06:07:31.000Z
2021-11-24T19:20:12.000Z
shoutcast_api/shoutcast_request.py
scls19fr/shoutcast_api
89a9e826b82411ae5f24ea28e1b1cb22eaaa0890
[ "MIT" ]
6
2020-11-17T20:30:30.000Z
2020-11-22T04:09:36.000Z
shoutcast_api/shoutcast_request.py
scls19fr/shoutcast_api
89a9e826b82411ae5f24ea28e1b1cb22eaaa0890
[ "MIT" ]
1
2020-11-17T20:11:38.000Z
2020-11-17T20:11:38.000Z
import xmltodict import json from .models import Tunein from .utils import _init_session from .Exceptions import APIException base_url = 'http://api.shoutcast.com' tunein_url = 'http://yp.shoutcast.com/{base}?id={id}' tuneins = [Tunein('/sbin/tunein-station.pls'), Tunein('/sbin/tunein-station.m3u'), Tunein('/sbin/tun...
38.550725
119
0.697368
0
0
0
0
0
0
0
0
372
0.13985
e04ec585b764ff6cb1ec40221ed614d384e735f8
581
py
Python
django_app_permissions/management/commands/resolve_app_groups.py
amp89/django-app-permissions
11f576d2118f5b73fdbefa0675acc3374a5a9749
[ "MIT" ]
2
2020-09-04T04:12:30.000Z
2020-10-20T00:12:01.000Z
django_app_permissions/management/commands/resolve_app_groups.py
amp89/django-app-permissions
11f576d2118f5b73fdbefa0675acc3374a5a9749
[ "MIT" ]
4
2020-09-06T22:29:18.000Z
2020-09-11T01:19:50.000Z
django_app_permissions/management/commands/resolve_app_groups.py
amp89/django-app-permissions
11f576d2118f5b73fdbefa0675acc3374a5a9749
[ "MIT" ]
null
null
null
from django.core.management.base import BaseCommand, no_translations from django.contrib.auth.models import Group from django.conf import settings import sys class Command(BaseCommand): def handle(self, *args, **options): sys.stdout.write("\nResolving app groups") app_list = [app_name.lower...
32.277778
95
0.693632
419
0.72117
0
0
0
0
0
0
58
0.099828
e04f5b24d6bd2e775a7ec943b8b4d08de4e402bf
34,343
py
Python
swift/common/db.py
sunzz679/swift-2.4.0--source-read
64355268da5265440f5f7e8d280dd8cd4c2cf2a2
[ "Apache-2.0" ]
null
null
null
swift/common/db.py
sunzz679/swift-2.4.0--source-read
64355268da5265440f5f7e8d280dd8cd4c2cf2a2
[ "Apache-2.0" ]
null
null
null
swift/common/db.py
sunzz679/swift-2.4.0--source-read
64355268da5265440f5f7e8d280dd8cd4c2cf2a2
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 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 agree...
38.032115
79
0.573945
30,121
0.868466
2,828
0.081539
3,532
0.101837
0
0
14,034
0.404636
e0530a4b979886c9eec477ba716b7cb1d54f44a5
12,101
py
Python
xdl/utils/prop_limits.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/utils/prop_limits.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
xdl/utils/prop_limits.py
mcrav/xdl
c120a1cf50a9b668a79b118700930eb3d60a9298
[ "MIT" ]
null
null
null
"""Prop limits are used to validate the input given to xdl elements. For example, a volume property should be a positive number, optionally followed by volume units. The prop limit is used to check that input supplied is valid for that property. """ import re from typing import List, Optional class PropLimit(object):...
35.591176
277
0.650029
3,099
0.255946
0
0
0
0
0
0
7,793
0.643624
e0531fdc3eeb8a1247c13837ac5c2a532816fd2e
3,884
py
Python
dit/utils/bindargs.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
1
2021-03-15T08:51:42.000Z
2021-03-15T08:51:42.000Z
dit/utils/bindargs.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
null
null
null
dit/utils/bindargs.py
leoalfonso/dit
e7d5f680b3f170091bb1e488303f4255eeb11ef4
[ "BSD-3-Clause" ]
null
null
null
""" Provides usable args and kwargs from inspect.getcallargs. For Python 3.3 and above, this module is unnecessary and can be achieved using features from PEP 362: http://www.python.org/dev/peps/pep-0362/ For example, to override a parameter of some function: >>> import inspect >>> def func(a, b=1, c=2,...
31.072
79
0.65036
0
0
0
0
0
0
0
0
2,203
0.567199
e053d13d8a4cd7c86d2670f87f97133354905c98
36,370
py
Python
tests/python/gaia-ui-tests/gaiatest/gaia_test.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
1
2020-04-06T13:02:09.000Z
2020-04-06T13:02:09.000Z
tests/python/gaia-ui-tests/gaiatest/gaia_test.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
null
null
null
tests/python/gaia-ui-tests/gaiatest/gaia_test.py
AmyYLee/gaia
a5dbae8235163d7f985bdeb7d649268f02749a8b
[ "Apache-2.0" ]
null
null
null
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. import json import os import sys import time from marionette import MarionetteTestCase from marionette.by import By fro...
41.376564
139
0.648474
35,751
0.98298
0
0
5,527
0.151966
0
0
10,015
0.275364
e053d242f75ab9ddd50217184c0c2cd558a9aad9
5,591
py
Python
library/__mozilla__/pyjamas/DOM.py
certik/pyjamas
5bb72e63e50f09743ac986f4c9690ba50c499ba9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/__mozilla__/pyjamas/DOM.py
certik/pyjamas
5bb72e63e50f09743ac986f4c9690ba50c499ba9
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
library/__mozilla__/pyjamas/DOM.py
certik/pyjamas
5bb72e63e50f09743ac986f4c9690ba50c499ba9
[ "ECL-2.0", "Apache-2.0" ]
1
2019-08-13T20:32:25.000Z
2019-08-13T20:32:25.000Z
def buttonClick(button): JS(""" var doc = button.ownerDocument; if (doc != null) { var evt = doc.createEvent('MouseEvents'); evt.initMouseEvent('click', true, true, null, 0, 0, 0, 0, 0, false, false, false, false, 0, null); button.d...
29.119792
84
0.571275
0
0
0
0
0
0
0
0
5,242
0.937578
e05432743bd72af1411301793f19ae278f8a6b5a
485
py
Python
apps/vendors/migrations/0090_auto_20160610_2125.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
apps/vendors/migrations/0090_auto_20160610_2125.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
apps/vendors/migrations/0090_auto_20160610_2125.py
ExpoAshique/ProveBanking__s
f0b45fffea74d00d14014be27aa50fe5f42f6903
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-10 21:25 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('vendors', '0089_auto_20160602_2123'), ] operations = [ migrations.AlterField...
23.095238
86
0.626804
328
0.676289
0
0
0
0
0
0
126
0.259794
e0543e59c4fcb122d63759114f58b779ede6cdce
540
py
Python
graph/articulation_points.py
fujihiraryo/library
cdb01e710219d7111f890d09f89531916dd03533
[ "MIT" ]
null
null
null
graph/articulation_points.py
fujihiraryo/library
cdb01e710219d7111f890d09f89531916dd03533
[ "MIT" ]
4
2020-12-16T10:00:00.000Z
2021-02-12T12:51:50.000Z
graph/articulation_points.py
fujihiraryo/python-kyopro-library
cdb01e710219d7111f890d09f89531916dd03533
[ "MIT" ]
null
null
null
from depth_first_search import DFS def articulation_points(graph): n = len(graph) dfs = DFS(graph) order = [None] * n for i, x in enumerate(dfs.preorder): order[x] = i lower = order[:] for x in dfs.preorder[::-1]: for y in graph[x]: if y == dfs.parent[x]: ...
25.714286
62
0.522222
0
0
502
0.92963
0
0
0
0
0
0
e055245acd2ad8d01c1ab4aacd02a9a0e3b9e3b6
1,558
py
Python
database.py
AndreAngelucci/popcorn_time_bot
710b77b59d6c62569c1bf6984c7cf9adac8ea840
[ "MIT" ]
null
null
null
database.py
AndreAngelucci/popcorn_time_bot
710b77b59d6c62569c1bf6984c7cf9adac8ea840
[ "MIT" ]
1
2021-06-02T00:39:42.000Z
2021-06-02T00:39:42.000Z
database.py
AndreAngelucci/popcorn_time_bot
710b77b59d6c62569c1bf6984c7cf9adac8ea840
[ "MIT" ]
null
null
null
import pymongo from conf import Configuracoes class Mongo_Database: """ Singleton com a conexao com o MongoDB """ _instancia = None def __new__(cls, *args, **kwargs): if not(cls._instancia): cls._instancia = super(Mongo_Database, cls).__new__(cls, *args, **kwargs) return cls._in...
39.948718
88
0.617458
1,502
0.964056
0
0
0
0
0
0
376
0.241335
e0553357877f320fcfcfc9bb4fdd3aa6b5cc2f78
2,947
py
Python
sensor_core/sleep.py
JorisHerbots/niip_iot_zombie_apocalypse
3ff848f3dab1dde9d2417d0a2c56a76a85e18920
[ "MIT" ]
null
null
null
sensor_core/sleep.py
JorisHerbots/niip_iot_zombie_apocalypse
3ff848f3dab1dde9d2417d0a2c56a76a85e18920
[ "MIT" ]
null
null
null
sensor_core/sleep.py
JorisHerbots/niip_iot_zombie_apocalypse
3ff848f3dab1dde9d2417d0a2c56a76a85e18920
[ "MIT" ]
null
null
null
import machine import pycom import utime from exceptions import Exceptions class Sleep: @property def wakeReason(self): return machine.wake_reason()[0] @property def wakePins(self): return machine.wake_reason()[1] @property def powerOnWake(self): return...
32.032609
121
0.646759
2,862
0.971157
0
0
799
0.271123
0
0
139
0.047167
e0554c3395746111d418fbf380163f0e080e4265
1,260
py
Python
pytorch_gleam/search/rerank_format.py
Supermaxman/pytorch-gleam
8b0d8dddc812e8ae120c9760fd44fe93da3f902d
[ "Apache-2.0" ]
null
null
null
pytorch_gleam/search/rerank_format.py
Supermaxman/pytorch-gleam
8b0d8dddc812e8ae120c9760fd44fe93da3f902d
[ "Apache-2.0" ]
null
null
null
pytorch_gleam/search/rerank_format.py
Supermaxman/pytorch-gleam
8b0d8dddc812e8ae120c9760fd44fe93da3f902d
[ "Apache-2.0" ]
null
null
null
import torch import argparse from collections import defaultdict import os import json def load_predictions(input_path): pred_list = [] for file_name in os.listdir(input_path): if file_name.endswith('.pt'): preds = torch.load(os.path.join(input_path, file_name)) pred_list.extend(preds) question_scores = ...
25.714286
86
0.743651
0
0
0
0
0
0
0
0
188
0.149206
e055f89145eb203a0a63bfdad54931948d02ec37
388
py
Python
des036.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
des036.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
des036.py
LeonardoPereirajr/Curso_em_video_Python
9d8a97ba3389c8e86b37dfd089fab5d04adc146d
[ "MIT" ]
null
null
null
casa = int(input('Qual o valor da casa? ')) sal = int(input('Qual seu salario? ')) prazo = int(input('Quantos meses deseja pagar ? ')) parcela = casa/prazo margem = sal* (30/100) if parcela > margem: print('Este negocio não foi aprovado, aumente o prazo .') else: print("Negocio aprovado pois a parcela é...
38.8
111
0.664948
0
0
0
0
0
0
0
0
203
0.520513
e05606e62a7f260ca58d2f3413562fa3ee898b64
1,000
py
Python
HackBitApp/migrations/0003_roadmap.py
SukhadaM/HackBit-Interview-Preparation-Portal
f4c6b0d7168a4ea4ffcf1569183b1614752d9946
[ "MIT" ]
null
null
null
HackBitApp/migrations/0003_roadmap.py
SukhadaM/HackBit-Interview-Preparation-Portal
f4c6b0d7168a4ea4ffcf1569183b1614752d9946
[ "MIT" ]
null
null
null
HackBitApp/migrations/0003_roadmap.py
SukhadaM/HackBit-Interview-Preparation-Portal
f4c6b0d7168a4ea4ffcf1569183b1614752d9946
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-03-27 18:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('HackBitApp', '0002_company_photo'), ] operations = [ migrations.CreateModel( name='Roadmap', fields=[ ...
34.482759
114
0.571
907
0.907
0
0
0
0
0
0
284
0.284
e0573523b4d451bef7e8afb67ef1d49c8d3db2d3
1,051
py
Python
Other_Python/Kernel_Methods/matrix_operations.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
null
null
null
Other_Python/Kernel_Methods/matrix_operations.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
null
null
null
Other_Python/Kernel_Methods/matrix_operations.py
Romit-Maulik/Tutorials-Demos-Practice
a58ddc819f24a16f7059e63d7f201fc2cd23e03a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jul 22 14:36:48 2020 @author: matth """ import autograd.numpy as np #%% Kernel operations # Returns the norm of the pairwise difference def norm_matrix(matrix_1, matrix_2): norm_square_1 = np.sum(np.square(matrix_1), axis = 1) norm_square_1 = np.reshape(norm_square_...
25.02381
79
0.676499
0
0
0
0
0
0
0
0
230
0.218839
e0576a003dfb918c45d8ae2afa80c98a64287387
2,371
py
Python
cors/resources/cors-makeheader.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
14,668
2015-01-01T01:57:10.000Z
2022-03-31T23:33:32.000Z
cors/resources/cors-makeheader.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
7,642
2018-05-28T09:38:03.000Z
2022-03-31T20:55:48.000Z
cors/resources/cors-makeheader.py
meyerweb/wpt
f04261533819893c71289614c03434c06856c13e
[ "BSD-3-Clause" ]
5,941
2015-01-02T11:32:21.000Z
2022-03-31T16:35:46.000Z
import json from wptserve.utils import isomorphic_decode def main(request, response): origin = request.GET.first(b"origin", request.headers.get(b'origin') or b'none') if b"check" in request.GET: token = request.GET.first(b"token") value = request.server.stash.take(token) if value is n...
33.871429
100
0.619148
0
0
0
0
0
0
0
0
634
0.267398
e057de6d96dbc248f4a0c02caf3e3c52ad4ff136
1,053
py
Python
device_osc_grid.py
wlfyit/PiLightsLib
98e39af45f05d0ee44e2f166de5b654d58df33ae
[ "MIT" ]
null
null
null
device_osc_grid.py
wlfyit/PiLightsLib
98e39af45f05d0ee44e2f166de5b654d58df33ae
[ "MIT" ]
null
null
null
device_osc_grid.py
wlfyit/PiLightsLib
98e39af45f05d0ee44e2f166de5b654d58df33ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from pythonosc import osc_bundle_builder from pythonosc import osc_message_builder from pythonosc import udp_client from .device import DeviceObj # OSC Grid Object class OSCGrid(DeviceObj): def __init__(self, name, width, height, ip, port, bri=1): DeviceObj.__init__(self, name, "os...
24.488372
100
0.636277
862
0.818613
0
0
0
0
0
0
98
0.093067
e0581bc2242266c4f411267aa587a7bfd0afc840
965
py
Python
main/models.py
StevenSume/EasyCMDB
c2c44c9efe2de2729659d81ef886abff242ac1c5
[ "Apache-2.0" ]
2
2019-08-23T06:04:12.000Z
2019-09-16T07:27:16.000Z
main/models.py
StevenSume/EasyCMDB
c2c44c9efe2de2729659d81ef886abff242ac1c5
[ "Apache-2.0" ]
null
null
null
main/models.py
StevenSume/EasyCMDB
c2c44c9efe2de2729659d81ef886abff242ac1c5
[ "Apache-2.0" ]
null
null
null
from .app import db class Project(db.Model): __tablename__ = 'projects' id = db.Column(db.Integer,primary_key=True,autoincrement=True) project_name = db.Column(db.String(64),unique=True,index=True) def to_dict(self): mydict = { 'id': self.id, 'project_name': self.projec...
26.805556
67
0.592746
941
0.97513
0
0
0
0
0
0
88
0.091192
e05894d94e1647d1250203e64a76b21248195718
1,274
py
Python
test.py
iron-io/iron_cache_python
f68f5a5e216e3189397ffd7d243de0d53bf7c764
[ "BSD-2-Clause" ]
3
2015-08-01T13:30:16.000Z
2021-03-22T10:25:57.000Z
test.py
iron-io/iron_cache_python
f68f5a5e216e3189397ffd7d243de0d53bf7c764
[ "BSD-2-Clause" ]
1
2015-06-02T08:53:44.000Z
2015-06-02T09:59:17.000Z
test.py
iron-io/iron_cache_python
f68f5a5e216e3189397ffd7d243de0d53bf7c764
[ "BSD-2-Clause" ]
3
2015-05-12T18:13:52.000Z
2016-09-08T20:43:40.000Z
from iron_cache import * import unittest import requests class TestIronCache(unittest.TestCase): def setUp(self): self.cache = IronCache("test_cache") def test_get(self): self.cache.put("test_item", "testing") item = self.cache.get("test_item") self.assertEqual(item.value, "te...
31.073171
56
0.631868
1,167
0.916013
0
0
0
0
0
0
222
0.174254
e059b01690fb071d4b03811c7664f63e0007961b
3,914
py
Python
lib_exec/StereoPipeline/libexec/asp_image_utils.py
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
20
2017-02-01T14:54:57.000Z
2022-01-25T06:34:35.000Z
lib_exec/StereoPipeline/libexec/asp_image_utils.py
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
3
2020-04-21T12:11:26.000Z
2021-01-10T07:00:51.000Z
lib_exec/StereoPipeline/libexec/asp_image_utils.py
sebasmurphy/iarpa
aca39cc5390a153a9779a636ab2523e65cb6d3b0
[ "MIT" ]
10
2017-12-18T18:45:25.000Z
2021-11-22T02:43:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # __BEGIN_LICENSE__ # Copyright (c) 2009-2013, United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. All # rights reserved. # # The NGT platform is licensed under the Apache License, Version 2.0 (the # "Lic...
34.946429
155
0.67348
0
0
0
0
0
0
0
0
1,834
0.468574
e05b4851d3707561c8c65e7a4b20ce903889be85
1,550
py
Python
src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py
leipzig/gatk-sv
96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a
[ "BSD-3-Clause" ]
76
2020-06-18T21:31:43.000Z
2022-03-02T18:42:58.000Z
src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
195
2020-06-22T15:12:28.000Z
2022-03-28T18:06:46.000Z
src/sv-pipeline/04_variant_resolution/scripts/merge_RdTest_genotypes.py
iamh2o/gatk-sv
bf3704bd1d705339577530e267cd4d1b2f77a17f
[ "BSD-3-Clause" ]
39
2020-07-03T06:47:18.000Z
2022-03-03T03:47:25.000Z
#!/usr/bin/env python import argparse DELIMITER = "\t" def merge(genotypes_filename, gq_filename, merged_filename): with open(genotypes_filename, "r") as genotypes, open(gq_filename, "r") as gq, open(merged_filename, "w") as merged: # Integrity check: do the files have same columns? genotypes_...
36.046512
120
0.627742
0
0
0
0
0
0
0
0
340
0.219355
e05c65974024f19246bfde72289d00cbac7e1014
32
py
Python
esperanto_analyzer/web/__init__.py
fidelisrafael/esperanto-analyzer
af1e8609ec0696e3d1975aa0ba0c88e5f04f8468
[ "BSD-2-Clause" ]
18
2018-09-05T00:46:47.000Z
2021-12-08T08:54:35.000Z
esperanto_analyzer/web/__init__.py
fidelisrafael/esperanto-analyzer
af1e8609ec0696e3d1975aa0ba0c88e5f04f8468
[ "BSD-2-Clause" ]
null
null
null
esperanto_analyzer/web/__init__.py
fidelisrafael/esperanto-analyzer
af1e8609ec0696e3d1975aa0ba0c88e5f04f8468
[ "BSD-2-Clause" ]
3
2019-03-12T17:54:18.000Z
2020-01-11T13:05:03.000Z
from .api.server import run_app
16
31
0.8125
0
0
0
0
0
0
0
0
0
0
e05cac875b2516b4ba7c777d72d8ac768173cf38
3,091
py
Python
crawling/sns/main.py
CSID-DGU/2021-2-OSSP2-TwoRolless-2
e9381418e3899d8e1e78415e9ab23b73b4f30a95
[ "MIT" ]
null
null
null
crawling/sns/main.py
CSID-DGU/2021-2-OSSP2-TwoRolless-2
e9381418e3899d8e1e78415e9ab23b73b4f30a95
[ "MIT" ]
null
null
null
crawling/sns/main.py
CSID-DGU/2021-2-OSSP2-TwoRolless-2
e9381418e3899d8e1e78415e9ab23b73b4f30a95
[ "MIT" ]
1
2021-10-15T05:19:20.000Z
2021-10-15T05:19:20.000Z
import tweepy import traceback import time import pymongo from tweepy import OAuthHandler from pymongo import MongoClient from pymongo.cursor import CursorType twitter_consumer_key = "" twitter_consumer_secret = "" twitter_access_token = "" twitter_access_secret = "" auth = OAuthHandler(twitter_consumer_key, twitter_...
29.438095
126
0.547072
0
0
0
0
0
0
0
0
782
0.239657
e05cbd467aaeb3118a784785e85a274a27c23842
698
py
Python
demos/interactive-classifier/config.py
jepabe/Demo_earth2
ab20c3a9114904219688b16f8a1273e68927e6f9
[ "Apache-2.0" ]
1,909
2015-04-22T20:18:22.000Z
2022-03-31T13:42:03.000Z
demos/interactive-classifier/config.py
jepabe/Demo_earth2
ab20c3a9114904219688b16f8a1273e68927e6f9
[ "Apache-2.0" ]
171
2015-09-24T05:49:49.000Z
2022-03-14T00:54:50.000Z
demos/interactive-classifier/config.py
jepabe/Demo_earth2
ab20c3a9114904219688b16f8a1273e68927e6f9
[ "Apache-2.0" ]
924
2015-04-23T05:43:18.000Z
2022-03-28T12:11:31.000Z
#!/usr/bin/env python """Handles Earth Engine service account configuration.""" import ee # The service account email address authorized by your Google contact. # Set up a service account as described in the README. EE_ACCOUNT = '[email protected]' # The private key associated wit...
41.058824
79
0.787966
0
0
0
0
0
0
0
0
560
0.802292
e05d022e20ec708234ba466419ce63a57d30ac77
2,716
py
Python
PythonScripting/NumbersInPython.py
Neo-sunny/pythonProgs
a9d2359d8a09d005d0ba6f94d7d256bf91499793
[ "MIT" ]
null
null
null
PythonScripting/NumbersInPython.py
Neo-sunny/pythonProgs
a9d2359d8a09d005d0ba6f94d7d256bf91499793
[ "MIT" ]
null
null
null
PythonScripting/NumbersInPython.py
Neo-sunny/pythonProgs
a9d2359d8a09d005d0ba6f94d7d256bf91499793
[ "MIT" ]
null
null
null
""" Demonstration of numbers in Python """ # Python has an integer type called int print("int") print("---") print(0) print(1) print(-3) print(70383028364830) print("") # Python has a real number type called float print("float") print("-----") print(0.0) print(7.35) print(-43.2) print("") # Limited precision print...
17.522581
65
0.674521
0
0
0
0
0
0
0
0
1,285
0.473122
e05e6c4440c357c867a4c38e37f726c4d615e768
1,676
py
Python
3DBeam/source/solving_strategies/strategies/linear_solver.py
JoZimmer/Beam-Models
e701c0bae6e3035e7a07cc590da4a132b133dcff
[ "BSD-3-Clause" ]
null
null
null
3DBeam/source/solving_strategies/strategies/linear_solver.py
JoZimmer/Beam-Models
e701c0bae6e3035e7a07cc590da4a132b133dcff
[ "BSD-3-Clause" ]
null
null
null
3DBeam/source/solving_strategies/strategies/linear_solver.py
JoZimmer/Beam-Models
e701c0bae6e3035e7a07cc590da4a132b133dcff
[ "BSD-3-Clause" ]
1
2022-01-05T17:32:32.000Z
2022-01-05T17:32:32.000Z
from source.solving_strategies.strategies.solver import Solver class LinearSolver(Solver): def __init__(self, array_time, time_integration_scheme, dt, comp_model, initial_conditions, force, structure_model): super().__ini...
38.976744
80
0.590095
1,610
0.960621
0
0
0
0
0
0
563
0.335919
e05ea195ece947573587efca60ad05b204af43f6
1,095
py
Python
payment/migrations/0002_auto_20171125_0022.py
Littledelma/mofadog
5a7c6672da248e400a8a5746506a6e7b273c9510
[ "MIT" ]
null
null
null
payment/migrations/0002_auto_20171125_0022.py
Littledelma/mofadog
5a7c6672da248e400a8a5746506a6e7b273c9510
[ "MIT" ]
1
2021-06-08T03:28:08.000Z
2021-06-08T03:28:08.000Z
payment/migrations/0002_auto_20171125_0022.py
Littledelma/mofadog
5a7c6672da248e400a8a5746506a6e7b273c9510
[ "MIT" ]
1
2021-06-08T03:23:34.000Z
2021-06-08T03:23:34.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2017-11-24 16:22 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('payment', '0001_initial'), ] ...
33.181818
138
0.63379
883
0.806393
0
0
0
0
0
0
209
0.190868
e05fe1dabdb8d88cb6b7077a77b9ecb4a63a39fd
841
py
Python
src/sqlfluff/rules/L024.py
NathanHowell/sqlfluff
9eb30226d77727cd613947e144a0abe483151f18
[ "MIT" ]
3,024
2020-10-01T11:03:51.000Z
2022-03-31T16:42:00.000Z
src/sqlfluff/rules/L024.py
NathanHowell/sqlfluff
9eb30226d77727cd613947e144a0abe483151f18
[ "MIT" ]
2,395
2020-09-30T12:59:21.000Z
2022-03-31T22:05:29.000Z
src/sqlfluff/rules/L024.py
NathanHowell/sqlfluff
9eb30226d77727cd613947e144a0abe483151f18
[ "MIT" ]
246
2020-10-02T17:08:03.000Z
2022-03-30T17:43:51.000Z
"""Implementation of Rule L024.""" from sqlfluff.core.rules.doc_decorators import document_fix_compatible from sqlfluff.rules.L023 import Rule_L023 @document_fix_compatible class Rule_L024(Rule_L023): """Single whitespace expected after USING in JOIN clause. | **Anti-pattern** .. code-block:: sql ...
21.564103
70
0.652794
667
0.789349
0
0
692
0.818935
0
0
511
0.604734
e061aa108e5ec8060888f9dff1215ff5763d024a
2,847
py
Python
projects/scocen/cmd_components_simple.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
4
2018-05-28T11:05:42.000Z
2021-05-14T01:13:11.000Z
projects/scocen/cmd_components_simple.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
13
2019-08-14T07:30:24.000Z
2021-11-08T23:44:29.000Z
projects/scocen/cmd_components_simple.py
mikeireland/chronostar
fcf37614e1d145f3a5e265e54512bf8cd98051a0
[ "MIT" ]
4
2016-04-21T08:25:26.000Z
2021-02-25T06:53:52.000Z
""" Plot CMDs for each component. """ import numpy as np from astropy.table import Table import matplotlib.pyplot as plt import matplotlib.cm as cm plt.ion() # Pretty plots from fig_settings import * ############################################ # Some things are the same for all the plotting scripts and we put # thi...
26.858491
122
0.601686
0
0
0
0
0
0
0
0
964
0.338602
e061c15bed338723a46d4f04e8c849cc852fe7c0
5,326
py
Python
test/test_cursor_binding.py
rhlahuja/snowflake-connector-python
6abc56c970cdb698a833b7f6ac9cbe7dfa667abd
[ "Apache-2.0" ]
null
null
null
test/test_cursor_binding.py
rhlahuja/snowflake-connector-python
6abc56c970cdb698a833b7f6ac9cbe7dfa667abd
[ "Apache-2.0" ]
null
null
null
test/test_cursor_binding.py
rhlahuja/snowflake-connector-python
6abc56c970cdb698a833b7f6ac9cbe7dfa667abd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (c) 2012-2018 Snowflake Computing Inc. All right reserved. # import pytest from snowflake.connector.errors import (ProgrammingError) def test_binding_security(conn_cnx, db_parameters): """ SQL Injection Tests """ try: with conn_cnx()...
36.731034
78
0.480473
0
0
0
0
0
0
0
0
1,608
0.301915
e061da410580634f463731e3265faeb51909f55c
1,071
py
Python
taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py
hectormartinez/rougexstem
32da9eab253cb88fc1882e59026e8b5b40900a25
[ "Apache-2.0" ]
null
null
null
taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py
hectormartinez/rougexstem
32da9eab253cb88fc1882e59026e8b5b40900a25
[ "Apache-2.0" ]
null
null
null
taln2016/icsisumm-primary-sys34_v1/nltk/nltk-0.9.2/nltk/model/__init__.py
hectormartinez/rougexstem
32da9eab253cb88fc1882e59026e8b5b40900a25
[ "Apache-2.0" ]
null
null
null
# Natural Language Toolkit: Language Models # # Copyright (C) 2001-2008 University of Pennsylvania # Author: Steven Bird <[email protected]> # URL: <http://nltk.sf.net> # For license information, see LICENSE.TXT class ModelI(object): """ A processing interface for assigning a probability to the next word....
31.5
78
0.6676
851
0.794585
0
0
0
0
0
0
641
0.598506
e06275178027bd16b4be36faab1b32af531b42cb
1,047
py
Python
flask-graphene-sqlalchemy/models.py
JovaniPink/flask-apps
de887f15261c286986cf38d234d49f7e4eb79c1a
[ "MIT" ]
null
null
null
flask-graphene-sqlalchemy/models.py
JovaniPink/flask-apps
de887f15261c286986cf38d234d49f7e4eb79c1a
[ "MIT" ]
null
null
null
flask-graphene-sqlalchemy/models.py
JovaniPink/flask-apps
de887f15261c286986cf38d234d49f7e4eb79c1a
[ "MIT" ]
null
null
null
import os from graphene_sqlalchemy import SQLAlchemyObjectType from sqlalchemy import Column, Integer, String, create_engine from sqlalchemy.orm import scoped_session, sessionmaker from sqlalchemy.ext.declarative import declarative_base POSTGRES_CONNECTION_STRING = ( os.environ.get("POSTGRES_CONNECTION_STRING") ...
26.175
72
0.770774
416
0.397326
0
0
0
0
0
0
101
0.096466
e06418cb46f2f01ccc35fc22e565190b30c821ed
16,478
py
Python
curlypiv/synthetics/microsig.py
sean-mackenzie/curlypiv
21c96c1bb1ba2548c4d5bebb389eb66ff58f851d
[ "MIT" ]
null
null
null
curlypiv/synthetics/microsig.py
sean-mackenzie/curlypiv
21c96c1bb1ba2548c4d5bebb389eb66ff58f851d
[ "MIT" ]
1
2021-06-14T17:24:43.000Z
2021-06-14T17:24:43.000Z
curlypiv/synthetics/microsig.py
sean-mackenzie/curlypiv
21c96c1bb1ba2548c4d5bebb389eb66ff58f851d
[ "MIT" ]
null
null
null
# microsig """ Author: Maximilliano Rossi More detail about the MicroSIG can be found at: Website: https://gitlab.com/defocustracking/microsig-python Publication: Rossi M, Synthetic image generator for defocusing and astigmatic PIV/PTV, Meas. Sci. Technol., 31, 017003 (2020) DOI:10.1088/1361-6501/ab42bb. "...
32.956
119
0.506615
3,499
0.212344
0
0
0
0
0
0
3,915
0.23759
e0651470e7323b974d75e2d23e40d53bc5af99ea
4,146
py
Python
planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py
kmiya/AutowareArchitectureProposal.iv
386b52c9cc90f4535ad833014f2f9500f0e64ccf
[ "Apache-2.0" ]
null
null
null
planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py
kmiya/AutowareArchitectureProposal.iv
386b52c9cc90f4535ad833014f2f9500f0e64ccf
[ "Apache-2.0" ]
null
null
null
planning/scenario_planning/lane_driving/motion_planning/obstacle_avoidance_planner/scripts/trajectory_visualizer.py
kmiya/AutowareArchitectureProposal.iv
386b52c9cc90f4535ad833014f2f9500f0e64ccf
[ "Apache-2.0" ]
1
2021-07-20T09:38:30.000Z
2021-07-20T09:38:30.000Z
# Copyright 2020 Tier IV, Inc. # # 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...
30.485294
109
0.600338
0
0
0
0
0
0
0
0
4,011
0.967438
e067ec51a3742d007fe87145e158ef565747647f
2,642
py
Python
main/forms.py
agokhale11/test2
deddf17e7bb67777251cf73cbdb5f6970c16050a
[ "MIT" ]
null
null
null
main/forms.py
agokhale11/test2
deddf17e7bb67777251cf73cbdb5f6970c16050a
[ "MIT" ]
7
2020-06-05T18:32:16.000Z
2022-03-11T23:24:17.000Z
main/forms.py
agokhale11/test2
deddf17e7bb67777251cf73cbdb5f6970c16050a
[ "MIT" ]
null
null
null
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm from django.contrib.auth.models import User from django import forms class UploadFileForm(forms.Form): title = forms.CharField(max_length=50) file = forms.FileField() # If you don't do this you cannot use Bootstrap CSS class LoginFor...
41.28125
136
0.62869
2,433
0.920893
0
0
0
0
0
0
613
0.232021
e068d2bbe0be95225acd32e5324a05a51bc85276
5,641
py
Python
pandas 9 - Statistics Information on data sets.py
PythonProgramming/Pandas-Basics-with-2.7
a6ecd5ac7c25dba83e934549903f229de89290d3
[ "MIT" ]
10
2015-07-16T05:46:10.000Z
2020-10-28T10:35:50.000Z
pandas 9 - Statistics Information on data sets.py
PythonProgramming/Pandas-Basics-with-2.7
a6ecd5ac7c25dba83e934549903f229de89290d3
[ "MIT" ]
null
null
null
pandas 9 - Statistics Information on data sets.py
PythonProgramming/Pandas-Basics-with-2.7
a6ecd5ac7c25dba83e934549903f229de89290d3
[ "MIT" ]
9
2017-01-31T18:57:25.000Z
2019-09-10T08:52:57.000Z
import pandas as pd from pandas import DataFrame df = pd.read_csv('sp500_ohlc.csv', index_col = 'Date', parse_dates=True) df['H-L'] = df.High - df.Low # Giving us count (rows), mean (avg), std (standard deviation for the entire # set), minimum for the set, maximum for the set, and some %s in that range. print( df.des...
32.606936
96
0.565148
0
0
0
0
0
0
0
0
1,791
0.317497
e06b5b33923a9795875422db89edadd2030423bd
292
py
Python
working/tkinter_widget/test.py
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
working/tkinter_widget/test.py
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
working/tkinter_widget/test.py
songdaegeun/school-zone-enforcement-system
b5680909fd5a348575563534428d2117f8dc2e3f
[ "MIT" ]
null
null
null
import cv2 import numpy as np import threading def test(): while 1: img1=cv2.imread('captured car1.jpg') print("{}".format(img1.shape)) print("{}".format(img1)) cv2.imshow('asd',img1) cv2.waitKey(1) t1 = threading.Thread(target=test) t1.start()
18.25
44
0.60274
0
0
0
0
0
0
0
0
32
0.109589
e06beb7e97ea00b98e3ff8423b4c33335a68172e
7,856
py
Python
ceilometer/compute/virt/hyperv/utilsv2.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
2
2015-09-07T09:15:26.000Z
2015-09-30T02:13:23.000Z
ceilometer/compute/virt/hyperv/utilsv2.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
null
null
null
ceilometer/compute/virt/hyperv/utilsv2.py
aristanetworks/ceilometer
8776b137f82f71eef1241bcb1600de10c1f77394
[ "Apache-2.0" ]
1
2019-09-16T02:11:41.000Z
2019-09-16T02:11:41.000Z
# Copyright 2013 Cloudbase Solutions Srl # # Author: Claudiu Belu <[email protected]> # Alessandro Pilotti <[email protected]> # # 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 o...
37.056604
78
0.66777
6,691
0.851706
1,794
0.22836
0
0
0
0
1,691
0.215249
e06fed7cfa54e3e815b314104d5c76b1f273336e
1,126
py
Python
src/cli.py
cajones314/avocd2019
268e03c5d1bb5b3e14459b831916bb7846f40def
[ "MIT" ]
null
null
null
src/cli.py
cajones314/avocd2019
268e03c5d1bb5b3e14459b831916bb7846f40def
[ "MIT" ]
null
null
null
src/cli.py
cajones314/avocd2019
268e03c5d1bb5b3e14459b831916bb7846f40def
[ "MIT" ]
null
null
null
# system from io import IOBase, StringIO import os # 3rd party import click # internal from days import DayFactory # import logging # logger = logging.getLogger(__name__) # logger.setLevel(logging.DEBUG) # ch = logging.StreamHandler() # logger.addHandler(ch) @click.group(invoke_without_command=True) @click.option...
28.15
122
0.69627
0
0
0
0
780
0.692718
0
0
429
0.380995
e0702674ad6cf140cbb31a3b885b600b8569c9c4
17,033
py
Python
option_c.py
wrosecrans/colormap
0b6a3b7e4caa5df72e7bad8ba196acfbbe5e5946
[ "CC0-1.0" ]
231
2015-06-03T01:28:13.000Z
2022-03-27T02:02:42.000Z
option_c.py
CatarinaL/colormap
bc549477db0c12b54a5928087552ad2cf274980f
[ "CC0-1.0" ]
10
2015-06-06T23:06:06.000Z
2019-10-25T20:10:48.000Z
option_c.py
CatarinaL/colormap
bc549477db0c12b54a5928087552ad2cf274980f
[ "CC0-1.0" ]
97
2015-06-04T00:46:34.000Z
2022-01-23T17:37:24.000Z
from matplotlib.colors import LinearSegmentedColormap from numpy import nan, inf # Used to reconstruct the colormap in viscm parameters = {'xp': [-5.4895292543686764, 14.790571669586654, 82.5546687431056, 29.15531114139253, -4.1316769886951761, -13.002076438907238], 'yp': [-35.948168839230306, -42.27337...
60.187279
141
0.577291
0
0
0
0
0
0
0
0
132
0.00775
e0709fa966341538c2d49529de984d39878ed846
3,885
py
Python
RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
4
2022-01-14T15:06:43.000Z
2022-01-18T14:45:04.000Z
RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
null
null
null
RPI/yolov5/algorithm/planner/algorithms/hybrid_astar/draw/draw.py
Aditya239233/MDP
87491e1d67e547c11f4bdd5d784d120473429eae
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import math from algorithm.planner.utils.car_utils import Car_C PI = np.pi class Arrow: def __init__(self, x, y, theta, L, c): angle = np.deg2rad(30) d = 0.3 * L w = 2 x_start = x y_start = y x_end = x + L * np.co...
33.491379
148
0.53565
1,798
0.462806
0
0
0
0
0
0
101
0.025997
e0712713ade0b6560e6616c234015a83c6ef39c9
696
py
Python
models/database_models/comment_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
7
2020-05-24T02:15:46.000Z
2020-11-26T07:14:44.000Z
models/database_models/comment_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
12
2020-05-17T10:46:29.000Z
2021-05-06T20:08:37.000Z
models/database_models/comment_model.py
RuiCoreSci/Flask-Restful
03f98a17487d407b69b853a9bf0ed20d2c5b003b
[ "MIT" ]
4
2020-05-09T07:26:09.000Z
2021-10-31T07:09:10.000Z
from sqlalchemy import Integer, Text, DateTime, func, Boolean, text from models.database_models import Base, Column class Comment(Base): __tablename__ = "comment" id = Column(Integer, primary_key=True, ) user_id = Column(Integer, nullable=False, comment="评论用户的 ID") post_id = Column(Integer, nullable...
40.941176
106
0.728448
634
0.840849
0
0
0
0
0
0
122
0.161804
e072653c74adbd64f985b81e9b674ad50e5a700a
27,779
py
Python
aws_deploy/ecs/helper.py
jmsantorum/aws-deploy
f117cff3a5440ee42470feaa2a83263c3212cf10
[ "BSD-3-Clause" ]
null
null
null
aws_deploy/ecs/helper.py
jmsantorum/aws-deploy
f117cff3a5440ee42470feaa2a83263c3212cf10
[ "BSD-3-Clause" ]
null
null
null
aws_deploy/ecs/helper.py
jmsantorum/aws-deploy
f117cff3a5440ee42470feaa2a83263c3212cf10
[ "BSD-3-Clause" ]
1
2021-08-05T12:07:11.000Z
2021-08-05T12:07:11.000Z
import json import re from datetime import datetime from json.decoder import JSONDecodeError import click from boto3.session import Session from boto3_type_annotations.ecs import Client from botocore.exceptions import ClientError, NoCredentialsError from dateutil.tz.tz import tzlocal from dictdiffer import diff JSON_...
34.767209
119
0.585586
26,857
0.966809
219
0.007884
3,735
0.134454
0
0
2,764
0.0995
e07447362c2cd948e8959b2a92a8309441af1ece
3,715
py
Python
sbm.py
emmaling27/networks-research
be209e2b653a1fe9eec480a94538d59104e4aa23
[ "MIT" ]
null
null
null
sbm.py
emmaling27/networks-research
be209e2b653a1fe9eec480a94538d59104e4aa23
[ "MIT" ]
null
null
null
sbm.py
emmaling27/networks-research
be209e2b653a1fe9eec480a94538d59104e4aa23
[ "MIT" ]
null
null
null
import networkx as nx from scipy.special import comb import attr @attr.s class Count(object): """Count class with monochromatic and bichromatic counts""" n = attr.ib() monochromatic = attr.ib(default=0) bichromatic = attr.ib(default=0) def count_edge(self, u, v): if (u < self.n / 2) != (v...
35.04717
125
0.54105
3,637
0.979004
0
0
352
0.094751
0
0
143
0.038493
e0745cd9bd4ca77f2c09e9dd6bb425b9d75991b3
4,516
py
Python
src/data/graph/ops/anagram_transform_op.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
2
2020-08-18T18:43:09.000Z
2020-08-18T20:05:59.000Z
src/data/graph/ops/anagram_transform_op.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
src/data/graph/ops/anagram_transform_op.py
PhilHarnish/forge
663f19d759b94d84935c14915922070635a4af65
[ "MIT" ]
null
null
null
from typing import Callable, Collection, Iterable, List, Union from data.anagram import anagram_iter from data.graph import _op_mixin, bloom_mask, bloom_node, bloom_node_reducer Transformer = Callable[['bloom_node.BloomNode'], 'bloom_node.BloomNode'] _SPACE_MASK = bloom_mask.for_alpha(' ') def merge_fn( host: 'b...
35.84127
79
0.717449
2,993
0.662755
462
0.102303
0
0
0
0
716
0.158547
e074a8e70a88cdf3e39529ffdda1dc94abc0febf
15,854
py
Python
gogapi/api.py
tikki/pygogapi
f1b3a811444dc521ea4ad7884104086b52348995
[ "MIT" ]
23
2017-01-03T21:00:27.000Z
2022-01-25T22:08:39.000Z
gogapi/api.py
tikki/pygogapi
f1b3a811444dc521ea4ad7884104086b52348995
[ "MIT" ]
3
2017-06-06T23:08:30.000Z
2019-01-28T02:20:34.000Z
gogapi/api.py
tikki/pygogapi
f1b3a811444dc521ea4ad7884104086b52348995
[ "MIT" ]
8
2017-02-10T15:13:32.000Z
2020-04-18T11:17:15.000Z
import json import re import logging import html.parser import zlib import requests from gogapi import urls from gogapi.base import NotAuthorizedError, logger from gogapi.product import Product, Series from gogapi.search import SearchResult DEBUG_JSON = False GOGDATA_RE = re.compile(r"gogData\.?(.*?) = (.+);") CLIEN...
32.892116
80
0.628233
14,893
0.939384
0
0
0
0
0
0
3,445
0.217295
e0756c223fe0a2644bdda0e4b367139a612e5089
943
py
Python
setup.py
gibsonMatt/stacks-pairwise
8f3cde603c2bfed255f6c399557e9332072886fb
[ "MIT" ]
null
null
null
setup.py
gibsonMatt/stacks-pairwise
8f3cde603c2bfed255f6c399557e9332072886fb
[ "MIT" ]
null
null
null
setup.py
gibsonMatt/stacks-pairwise
8f3cde603c2bfed255f6c399557e9332072886fb
[ "MIT" ]
null
null
null
import pathlib import os from setuptools import setup # The directory containing this file HERE = pathlib.Path(__file__).parent # The text of the README file README = (HERE / "README.md").read_text() # specify requirements of your package here REQUIREMENTS = ['biopython', 'numpy', 'pandas'] setup(name='stacksPairwi...
29.46875
100
0.694592
0
0
0
0
0
0
0
0
473
0.501591
e076824b715f780b36bdb8e03020e256a3cf8b8d
156
py
Python
csv_experiment.py
komax/spanningtree-crossingnumber
444c8809a543905000a63c9d2ff1dcfb31835766
[ "MIT" ]
2
2019-01-07T22:12:09.000Z
2020-05-08T06:44:19.000Z
csv_experiment.py
komax/spanningtree-crossingnumber
444c8809a543905000a63c9d2ff1dcfb31835766
[ "MIT" ]
null
null
null
csv_experiment.py
komax/spanningtree-crossingnumber
444c8809a543905000a63c9d2ff1dcfb31835766
[ "MIT" ]
null
null
null
#! /usr/bin/env python import os import sys args = sys.argv[1:] os.system('python -O -m spanningtree.csv_experiment_statistics ' + ' '.join(args))
19.5
66
0.673077
0
0
0
0
0
0
0
0
79
0.50641
e0774173b092651de83171acaf096405634f72ae
2,536
py
Python
projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py
klemenkotar/dcrl
457be7af1389db37ec12e165dfad646e17359162
[ "MIT" ]
18
2021-06-09T04:50:47.000Z
2022-02-04T22:56:56.000Z
projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py
klemenkotar/dcrl
457be7af1389db37ec12e165dfad646e17359162
[ "MIT" ]
null
null
null
projects/tutorials/object_nav_ithor_dagger_then_ppo_one_object.py
klemenkotar/dcrl
457be7af1389db37ec12e165dfad646e17359162
[ "MIT" ]
4
2021-06-09T06:20:25.000Z
2022-03-13T03:11:17.000Z
import torch import torch.optim as optim from torch.optim.lr_scheduler import LambdaLR from allenact.algorithms.onpolicy_sync.losses import PPO from allenact.algorithms.onpolicy_sync.losses.imitation import Imitation from allenact.algorithms.onpolicy_sync.losses.ppo import PPOConfig from allenact.utils.experiment_util...
34.27027
88
0.635252
2,024
0.798107
0
0
1,827
0.720426
0
0
246
0.097003
e077592087a48a19c044b7ca66417c720c7d2548
12,328
py
Python
BioCAT/src/Calculating_scores.py
DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool
d58d330e3e11380c0c917a0ad9c12a51447f1624
[ "MIT" ]
4
2021-04-16T14:42:47.000Z
2021-06-11T14:29:35.000Z
BioCAT/src/Calculating_scores.py
DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool
d58d330e3e11380c0c917a0ad9c12a51447f1624
[ "MIT" ]
3
2021-07-23T09:30:59.000Z
2021-11-07T17:40:59.000Z
BioCAT/src/Calculating_scores.py
DanilKrivonos/BioCAT-nrp-BIOsynthesis-Caluster-Analyzing-Tool
d58d330e3e11380c0c917a0ad9c12a51447f1624
[ "MIT" ]
1
2022-02-27T17:19:50.000Z
2022-02-27T17:19:50.000Z
from numpy import array from pickle import load from pandas import read_csv import os from BioCAT.src.Combinatorics import multi_thread_shuffling, multi_thread_calculating_scores, make_combine, get_score, get_max_aminochain, skipper # Importing random forest model modelpath = os.path.dirname(os.path.abspath(__file__)...
42.510345
236
0.649903
0
0
0
0
0
0
0
0
4,983
0.404202
e0776cc9711477b5d215a8a600b08e98b5af4d8a
857
py
Python
deal/linter/_extractors/returns.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
1
2020-09-05T13:54:16.000Z
2020-09-05T13:54:16.000Z
deal/linter/_extractors/returns.py
m4ta1l/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
7
2020-09-05T13:54:28.000Z
2020-11-27T05:59:19.000Z
deal/linter/_extractors/returns.py
Smirenost/deal
2a8e9bf412b8635b00a2b798dd8802375814a1c8
[ "MIT" ]
null
null
null
# built-in from typing import Optional # app from .common import TOKENS, Extractor, Token, traverse from .value import UNKNOWN, get_value get_returns = Extractor() inner_extractor = Extractor() def has_returns(body: list) -> bool: for expr in traverse(body=body): if isinstance(expr, TOKENS.RETURN + TOK...
25.205882
74
0.711785
0
0
0
0
478
0.55776
0
0
15
0.017503
e077be2cbaa5c0711f376c7e5a696aa0b37ee960
1,526
py
Python
qubiter/device_specific/chip_couplings_ibm.py
yourball/qubiter
5ef0ea064fa8c9f125f7951a01fbb88504a054a5
[ "Apache-2.0" ]
3
2019-10-03T04:27:36.000Z
2021-02-13T17:49:34.000Z
qubiter/device_specific/chip_couplings_ibm.py
yourball/qubiter
5ef0ea064fa8c9f125f7951a01fbb88504a054a5
[ "Apache-2.0" ]
null
null
null
qubiter/device_specific/chip_couplings_ibm.py
yourball/qubiter
5ef0ea064fa8c9f125f7951a01fbb88504a054a5
[ "Apache-2.0" ]
2
2020-10-07T15:22:19.000Z
2021-06-07T04:59:58.000Z
def aaa(): # trick sphinx to build link in doc pass # retired ibmqx2_c_to_tars =\ { 0: [1, 2], 1: [2], 2: [], 3: [2, 4], 4: [2] } # 6 edges # retired ibmqx4_c_to_tars =\ { 0: [], 1: [0], 2: [0, 1, 4], 3: [2, 4], 4: [] } # 6 edges # retired ibmq16Rus_c_to_tars = \ { ...
15.895833
39
0.355177
0
0
0
0
0
0
0
0
120
0.078637
e07835355388fff9c6902a335662f753bb73c86c
14,599
py
Python
Template.py
rainshen49/citadel-trading-comp
3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5
[ "MIT" ]
2
2018-12-11T03:33:06.000Z
2021-09-21T01:12:58.000Z
Template.py
rainshen49/citadel-trading-comp
3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5
[ "MIT" ]
null
null
null
Template.py
rainshen49/citadel-trading-comp
3c3b6464f548d4920f46b5f5cd113ebc4a1d08a5
[ "MIT" ]
null
null
null
import signal import requests import time from math import floor shutdown = False MAIN_TAKER = 0.0065 MAIN_MAKER = 0.002 ALT_TAKER = 0.005 ALT_MAKER = 0.0035 TAKER = (MAIN_TAKER + ALT_TAKER)*2 MAKER = MAIN_MAKER + ALT_MAKER TAKEMAIN = MAIN_TAKER - ALT_MAKER TAKEALT = ALT_TAKER - MAIN_MAKER BUFFER = 0.0...
33.407323
116
0.558052
6,541
0.448044
0
0
0
0
0
0
2,029
0.138982
e078ffec67d1b2046e248c3ee5d65b353731cbf4
1,479
py
Python
examples/basic/wire_feedthrough.py
souviksaha97/spydrnet-physical
b07bcc152737158ea7cbebf0ef844abe49d29c5e
[ "BSD-3-Clause" ]
null
null
null
examples/basic/wire_feedthrough.py
souviksaha97/spydrnet-physical
b07bcc152737158ea7cbebf0ef844abe49d29c5e
[ "BSD-3-Clause" ]
null
null
null
examples/basic/wire_feedthrough.py
souviksaha97/spydrnet-physical
b07bcc152737158ea7cbebf0ef844abe49d29c5e
[ "BSD-3-Clause" ]
null
null
null
""" ========================================== Genrating feedthrough from single instance ========================================== This example demostrates how to generate a feedthrough wire connection for a given scalar or vector wires. **Initial Design** .. hdl-diagram:: ../../../examples/basic/_initial_design.v...
24.65
74
0.699797
0
0
0
0
0
0
0
0
829
0.560514
e079004173a435849592703f1baaf8e8d87ed079
9,131
py
Python
workflows/workflow.py
sunnyfloyd/panderyx
82f03625159833930ff044a43a6619ab710ff159
[ "MIT" ]
null
null
null
workflows/workflow.py
sunnyfloyd/panderyx
82f03625159833930ff044a43a6619ab710ff159
[ "MIT" ]
null
null
null
workflows/workflow.py
sunnyfloyd/panderyx
82f03625159833930ff044a43a6619ab710ff159
[ "MIT" ]
null
null
null
from __future__ import annotations from typing import Optional, Union from tools import tools from exceptions import workflow_exceptions class Workflow: """A class to represent a workflow. Workflow class provides set of methods to manage state of the workflow. It allows for tool insertions, removals and...
33.818519
87
0.61461
8,990
0.984558
0
0
0
0
0
0
4,716
0.516482
e07a13e1121d2676a50044d556f0800f60bfd2f7
2,849
py
Python
team_fundraising/text.py
namtel-hp/fundraising-website
30cb0cd2bd4505454295d11715e70712525234a3
[ "MIT" ]
5
2019-10-26T12:41:31.000Z
2022-03-13T08:30:29.000Z
team_fundraising/text.py
Maalik1/fundraising-website
a5fcd7e8a5966f299f57c22af8c739a3d6cd501a
[ "MIT" ]
9
2021-03-18T21:27:36.000Z
2022-03-11T23:42:46.000Z
team_fundraising/text.py
Maalik1/fundraising-website
a5fcd7e8a5966f299f57c22af8c739a3d6cd501a
[ "MIT" ]
2
2021-01-11T14:19:01.000Z
2022-02-18T19:18:38.000Z
class Donation_text: # Shown as a message across the top of the page on return from a donation # used in views.py:new_donation() thank_you = ( "Thank you for your donation. " "You may need to refresh this page to see the donation." ) confirmation_email_subject = ( 'Thank y...
33.916667
79
0.65251
2,844
0.998245
0
0
0
0
0
0
2,003
0.703054
0eb2577f85f04e68e802521ef8915750223e0174
624
py
Python
tests/wagtail_live/test_apps.py
wagtail/wagtail-live
dd769be089d457cf36db2506520028bc5f506ac3
[ "BSD-3-Clause" ]
22
2021-06-07T20:36:18.000Z
2022-03-29T01:48:58.000Z
tests/wagtail_live/test_apps.py
wagtail/wagtail-live
dd769be089d457cf36db2506520028bc5f506ac3
[ "BSD-3-Clause" ]
73
2021-05-21T16:08:44.000Z
2022-03-20T23:59:59.000Z
tests/wagtail_live/test_apps.py
wagtail/wagtail-live
dd769be089d457cf36db2506520028bc5f506ac3
[ "BSD-3-Clause" ]
11
2021-06-10T10:05:13.000Z
2022-02-12T13:31:34.000Z
from django.apps import apps from django.test import override_settings from wagtail_live.signals import live_page_update def test_live_page_update_signal_receivers(): assert len(live_page_update.receivers) == 0 @override_settings( WAGTAIL_LIVE_PUBLISHER="tests.testapp.publishers.DummyWebsocketPublisher" ) ...
27.130435
77
0.780449
0
0
0
0
403
0.645833
0
0
109
0.174679
0eb2fde0bae97bffa51893b405703a8d74ef6c29
14,826
py
Python
PLM/options.py
vtta2008/pipelineTool
2431d2fc987e3b31f2a6a63427fee456fa0765a0
[ "Apache-2.0" ]
7
2017-12-22T02:49:58.000Z
2018-05-09T05:29:06.000Z
PLM/options.py
vtta2008/pipelineTool
2431d2fc987e3b31f2a6a63427fee456fa0765a0
[ "Apache-2.0" ]
null
null
null
PLM/options.py
vtta2008/pipelineTool
2431d2fc987e3b31f2a6a63427fee456fa0765a0
[ "Apache-2.0" ]
3
2019-03-11T21:54:52.000Z
2019-11-25T11:23:17.000Z
# -*- coding: utf-8 -*- """ Script Name: Author: Do Trinh/Jimmy - 3D artist. Description: """ # ------------------------------------------------------------------------------------------------------------- """ Import """ import os from PySide2.QtWidgets import (QFrame, QStyle, QAbstractItemView, QSizePolicy...
43.994065
114
0.475651
0
0
0
0
0
0
0
0
1,756
0.118433
0eb3ad476194898d48e135372f34d1ee69bc79d8
2,509
py
Python
Crawling/ssafyCrawling.py
Nyapy/FMTG
dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e
[ "MIT" ]
null
null
null
Crawling/ssafyCrawling.py
Nyapy/FMTG
dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e
[ "MIT" ]
null
null
null
Crawling/ssafyCrawling.py
Nyapy/FMTG
dcf0a35dbbcd50d5bc861b04ac0db41d27e57b6e
[ "MIT" ]
null
null
null
from selenium import webdriver from selenium.webdriver.chrome.options import Options import sys import time import urllib.request import os sys.stdin = open('idpwd.txt') site = input() id = input() pwd = input() # selenium에서 사용할 웹 드라이버 절대 경로 정보 chromedriver = 'C:\Webdriver\chromedriver.exe' # selenum의 webdriver에 앞서 설치...
32.166667
109
0.719012
0
0
0
0
0
0
0
0
1,705
0.634537
0eb4432b0091105498b6cde85c1c9de8fc2676cc
1,433
py
Python
100days/day95/StringIO_demo.py
chainren/python-learn
5e48e96c4bb212806b9ae0954fdb368abdcf9ba3
[ "Apache-2.0" ]
null
null
null
100days/day95/StringIO_demo.py
chainren/python-learn
5e48e96c4bb212806b9ae0954fdb368abdcf9ba3
[ "Apache-2.0" ]
16
2020-02-12T03:09:30.000Z
2022-03-12T00:08:59.000Z
100days/day95/StringIO_demo.py
chainren/python-learn
5e48e96c4bb212806b9ae0954fdb368abdcf9ba3
[ "Apache-2.0" ]
null
null
null
from io import StringIO # 定义一个 StringIO 对象,写入并读取其在内存中的内容 f = StringIO() f.write('Python-100') str = f.getvalue() # 读取写入的内容 print('写入内存中的字符串为:%s' %str) f.write('\n') # 追加内容 f.write('坚持100天') f.close() # 关闭 f1 = StringIO('Python-100' + '\n' + '坚持100天') # 读取内容 print(f1.read()) f1.close() # 假设的爬虫数据输出函数 outputDa...
18.61039
47
0.673412
0
0
0
0
0
0
0
0
1,331
0.624589
0eb4945ca1e15b4e7d0b451aa87077b0cebf76c6
10,595
py
Python
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
1
2021-05-09T04:51:28.000Z
2021-05-09T04:51:28.000Z
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
null
null
null
src/hub/dataload/sources/drugcentral/drugcentral_upload.py
veleritas/mychem.info
bb22357d4cbbc3c4865da224bf998f2cbc59f8f2
[ "Apache-2.0" ]
null
null
null
import biothings.hub.dataload.uploader as uploader class DrugCentralUploader(uploader.DummySourceUploader): name = "drugcentral" __metadata__ = { "src_meta" : { "url" : "http://drugcentral.org/", "license_url" : "http://drugcentral.org/privacy", "lic...
41.54902
65
0.224823
10,542
0.994998
0
0
10,150
0.957999
0
0
2,776
0.26201
0eb4f1bf9aa917694ffc04ea836799d3bd9b4710
2,751
py
Python
tests/test_cli.py
Nate1729/FinPack
d76fd5e6538298d5596d5b0f7d3be2bc6520c431
[ "Apache-2.0" ]
1
2022-01-28T20:05:22.000Z
2022-01-28T20:05:22.000Z
tests/test_cli.py
Nate1729/FinPack
d76fd5e6538298d5596d5b0f7d3be2bc6520c431
[ "Apache-2.0" ]
30
2021-11-22T19:07:54.000Z
2021-12-18T03:00:47.000Z
tests/test_cli.py
Nate1729/FinPack
d76fd5e6538298d5596d5b0f7d3be2bc6520c431
[ "Apache-2.0" ]
2
2021-12-13T20:27:52.000Z
2021-12-17T18:39:40.000Z
"""Contains tests for finpack/core/cli.py """ __copyright__ = "Copyright (C) 2021 Matt Ferreira" import os import unittest from importlib import metadata from docopt import docopt from finpack.core import cli class TestCli(unittest.TestCase): @classmethod def setUpClass(cls): cls.DATA_DIR = "temp" ...
25.238532
62
0.623773
2,536
0.921847
0
0
170
0.061796
0
0
537
0.195202
0eb6190157c1946b37b5fd1be18f551d0e559832
612
py
Python
python/Patterns/inheritance/main.py
zinderud/ysa
e34d3f4c7afab3976d86f5d27edfcd273414e496
[ "Apache-2.0" ]
null
null
null
python/Patterns/inheritance/main.py
zinderud/ysa
e34d3f4c7afab3976d86f5d27edfcd273414e496
[ "Apache-2.0" ]
1
2017-12-27T10:09:22.000Z
2017-12-27T10:22:47.000Z
python/Patterns/inheritance/main.py
zinderud/ysa
e34d3f4c7afab3976d86f5d27edfcd273414e496
[ "Apache-2.0" ]
null
null
null
class Yaratik(object): def move_left(self): print('Moving left...') def move_right(self): print('Moving left...') class Ejderha(Yaratik): def Ates_puskurtme(self): print('ates puskurtum!') class Zombie(Yaratik): def Isirmak(self): print('Isirdim simdi!') enemy =...
18
74
0.679739
304
0.496732
0
0
0
0
0
0
204
0.333333
0eb71b68b065b14b8eebff52fa3bbffc15201b7a
1,527
py
Python
clustering/graph_utils.py
perathambkk/ml-techniques
5d6fd122322342c0b47dc65d09c4425fd73f2ea9
[ "MIT" ]
null
null
null
clustering/graph_utils.py
perathambkk/ml-techniques
5d6fd122322342c0b47dc65d09c4425fd73f2ea9
[ "MIT" ]
null
null
null
clustering/graph_utils.py
perathambkk/ml-techniques
5d6fd122322342c0b47dc65d09c4425fd73f2ea9
[ "MIT" ]
null
null
null
""" Author: Peratham Wiriyathammabhum """ import numpy as np import pandas as pd from sklearn.neighbors import NearestNeighbors def affinity_graph(X): ''' This function returns a numpy array. ''' ni, nd = X.shape A = np.zeros((ni, ni)) for i in range(ni): for j in range(i+1, ni): dist = ((X[i] - X[j])**...
21.814286
75
0.614276
0
0
0
0
0
0
0
0
390
0.255069
0eb8ddc2c0219670903c4425de4ca4b63a33f316
10,124
py
Python
recipe_engine/internal/commands/__init__.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
1
2021-04-24T04:03:01.000Z
2021-04-24T04:03:01.000Z
recipe_engine/internal/commands/__init__.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
null
null
null
recipe_engine/internal/commands/__init__.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """This package houses all subcommands for the recipe engine. See implementation_details.md for the expectations of the modules in this directory...
35.152778
80
0.697452
708
0.069933
0
0
0
0
0
0
4,743
0.468491
0eb8efd29824103fb230c6103a6e3a8b1b30a534
7,295
py
Python
openfl/pipelines/stc_pipeline.py
sarthakpati/openfl
8edebfd565d94f709a7d7f06d9ee38a7975c066e
[ "Apache-2.0" ]
null
null
null
openfl/pipelines/stc_pipeline.py
sarthakpati/openfl
8edebfd565d94f709a7d7f06d9ee38a7975c066e
[ "Apache-2.0" ]
null
null
null
openfl/pipelines/stc_pipeline.py
sarthakpati/openfl
8edebfd565d94f709a7d7f06d9ee38a7975c066e
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """STCPipelinemodule.""" import numpy as np import gzip as gz from .pipeline import TransformationPipeline, Transformer class SparsityTransformer(Transformer): """A transformer class to sparsify input data.""" def __init__(s...
33.159091
99
0.622207
7,078
0.970254
0
0
1,681
0.230432
0
0
3,391
0.464839
0eb9c920aa1f94bcf5b75523167a5791a71d6de8
1,150
py
Python
modle/__init__.py
Rex0519/NessusToReport
047dd4a2f749addab3991b0ebc8ab609140c32a7
[ "Apache-2.0" ]
244
2020-06-27T12:07:52.000Z
2022-03-30T02:36:27.000Z
modle/__init__.py
Rex0519/NessusToReport
047dd4a2f749addab3991b0ebc8ab609140c32a7
[ "Apache-2.0" ]
23
2021-05-20T07:38:55.000Z
2022-03-13T14:13:01.000Z
modle/__init__.py
Rex0519/NessusToReport
047dd4a2f749addab3991b0ebc8ab609140c32a7
[ "Apache-2.0" ]
74
2020-06-27T12:07:53.000Z
2022-03-11T19:07:45.000Z
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # ------------------------------------------------------------ # File: __init__.py.py # Created Date: 2020/6/24 # Created Time: 0:12 # Author: Hypdncy # Author Mail: [email protected] # Copyright (c) 2020 Hypdncy # ---------------------------------------------------------...
39.655172
62
0.117391
0
0
0
0
0
0
0
0
1,122
0.975652
0ebc4327dea5e082563be3e589c1e4f6b395a97a
7,146
py
Python
tests/component/test_grid_mixin.py
csdms/pymt
188222d7858cd3e8eb15564e56d9b7f0cb43cae5
[ "MIT" ]
38
2017-06-30T17:10:53.000Z
2022-01-05T07:38:03.000Z
tests/component/test_grid_mixin.py
csdms/pymt
188222d7858cd3e8eb15564e56d9b7f0cb43cae5
[ "MIT" ]
96
2017-04-04T18:52:41.000Z
2021-11-01T21:30:48.000Z
tests/component/test_grid_mixin.py
csdms/pymt
188222d7858cd3e8eb15564e56d9b7f0cb43cae5
[ "MIT" ]
15
2017-05-23T15:40:16.000Z
2021-06-14T21:30:28.000Z
import numpy as np import pytest from pytest import approx from pymt.component.grid import GridMixIn class Port: def __init__(self, name, uses=None, provides=None): self._name = name self._uses = uses or [] self._provides = provides or [] def get_component_name(self): return ...
27.805447
84
0.558354
4,583
0.641338
0
0
0
0
0
0
317
0.04436
0ebe32fa6550f0c6be308f3edf45681f0583afc5
730
py
Python
scripts/compare.py
SnoozeTime/nes
4d60562c59e175485eb3dff043c0c78473034cdb
[ "Unlicense" ]
1
2022-01-07T02:00:36.000Z
2022-01-07T02:00:36.000Z
scripts/compare.py
SnoozeTime/nes
4d60562c59e175485eb3dff043c0c78473034cdb
[ "Unlicense" ]
6
2020-12-12T03:21:55.000Z
2022-02-18T11:22:28.000Z
scripts/compare.py
SnoozeTime/nes
4d60562c59e175485eb3dff043c0c78473034cdb
[ "Unlicense" ]
1
2018-12-02T20:42:10.000Z
2018-12-02T20:42:10.000Z
import sys def load_log_sp(filename): data = [] with open(filename) as f: for line in f.readlines(): tokens = line.split(" ") spidx = line.find("SP:") endidx = line.find(' ', spidx) data.append((line[0:4], line[spidx+3:endidx])) return data if __nam...
30.416667
85
0.545205
0
0
0
0
0
0
0
0
39
0.053425
0ebf6e6f4a1667f2d0b5238c117fa44dfca6f7c4
10,203
py
Python
tercer_modelo.py
nahuelalmeira/deepLearning
f1fcd06f5735c8be9272b0c8392b1ae467c08582
[ "MIT" ]
null
null
null
tercer_modelo.py
nahuelalmeira/deepLearning
f1fcd06f5735c8be9272b0c8392b1ae467c08582
[ "MIT" ]
null
null
null
tercer_modelo.py
nahuelalmeira/deepLearning
f1fcd06f5735c8be9272b0c8392b1ae467c08582
[ "MIT" ]
null
null
null
"""Exercise 1 Usage: $ CUDA_VISIBLE_DEVICES=2 python practico_1_train_petfinder.py --dataset_dir ../ --epochs 30 --dropout 0.1 0.1 --hidden_layer_sizes 200 100 To know which GPU to use, you can check it with the command $ nvidia-smi """ import argparse import os import mlflow import pickle import numpy as np impo...
45.346667
138
0.51181
0
0
0
0
0
0
0
0
4,479
0.438989
0ebfda6d11cf85e7a67d60d7c46e294592497198
7,576
py
Python
catpy/applications/export.py
catmaid/catpy
481d87591a6dfaedef2767dcddcbed7185ecc8b8
[ "MIT" ]
5
2018-04-24T15:45:31.000Z
2021-06-18T17:38:07.000Z
catpy/applications/export.py
catmaid/catpy
481d87591a6dfaedef2767dcddcbed7185ecc8b8
[ "MIT" ]
35
2017-05-12T21:49:54.000Z
2022-03-12T00:47:09.000Z
catpy/applications/export.py
catmaid/catpy
481d87591a6dfaedef2767dcddcbed7185ecc8b8
[ "MIT" ]
4
2017-08-24T12:15:41.000Z
2019-10-13T01:05:34.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import from pkg_resources import parse_version from warnings import warn from copy import deepcopy import networkx as nx from networkx.readwrite import json_graph from catpy.applications.base import CatmaidClientApplication NX_VERSION_INFO = parse_version(nx....
31.566667
126
0.551082
6,100
0.805174
0
0
0
0
0
0
4,277
0.564546
0ec1afd2facbda8f3febe8ca1dc7c71fb6558f04
1,993
py
Python
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/external_writer_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/external_writer_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
packages/watchmen-data-kernel/src/watchmen_data_kernel/meta/external_writer_service.py
Indexical-Metrics-Measure-Advisory/watchmen
c54ec54d9f91034a38e51fd339ba66453d2c7a6d
[ "MIT" ]
null
null
null
from typing import Optional from watchmen_auth import PrincipalService from watchmen_data_kernel.cache import CacheService from watchmen_data_kernel.common import DataKernelException from watchmen_data_kernel.external_writer import find_external_writer_create, register_external_writer_creator from watchmen_meta.common...
41.520833
110
0.831912
1,111
0.557451
0
0
0
0
0
0
207
0.103864
0ec2342f96bb22e61801a222fde8647beb3203c5
304
py
Python
udemy-python/mediaponderada.py
AlbertoAlfredo/exercicios-cursos
792096ad1f853188adec8fc3e5c629742c8dd7ab
[ "MIT" ]
1
2017-08-27T00:57:20.000Z
2017-08-27T00:57:20.000Z
udemy-python/mediaponderada.py
AlbertoAlfredo/exercicios-cursos
792096ad1f853188adec8fc3e5c629742c8dd7ab
[ "MIT" ]
2
2020-09-09T04:22:06.000Z
2020-12-24T16:25:36.000Z
udemy-python/mediaponderada.py
AlbertoAlfredo/exercicios-cursos
792096ad1f853188adec8fc3e5c629742c8dd7ab
[ "MIT" ]
null
null
null
nota1 = float(input('Digite a nota da primeira nota ')) peso1 = float(input('Digite o peso da primeira nota ')) nota2 = float(input('Digite a nota da seugundo nota ')) peso2 = float(input('Digite o peso da segundo nota ')) media = (nota1/peso1+nota2/peso2)/2 print('A média das duas notas é:', media)
30.4
55
0.703947
0
0
0
0
0
0
0
0
160
0.522876
0ec2983c9be55e068e1ac3a8da9a2e78b097ece9
882
py
Python
scrywarden/module.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
1
2020-12-13T00:49:51.000Z
2020-12-13T00:49:51.000Z
scrywarden/module.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
null
null
null
scrywarden/module.py
chasebrewsky/scrywarden
c6a5a81d14016ca58625df68594ef52dd328a0dd
[ "MIT" ]
null
null
null
from importlib import import_module from typing import Any def import_string(path: str) -> Any: """Imports a dotted path name and returns the class/attribute. Parameters ---------- path: str Dotted module path to retrieve. Returns ------- Class/attribute at the given import path....
24.5
71
0.603175
0
0
0
0
0
0
0
0
422
0.478458
0ec3610585ba69b4e61119ece94d8d89e44e43cc
27,448
py
Python
examples/oldexamples/sample_program.py
learningequality/klorimin
c569cd4048ac670bc55a83f4fdda0b818c7f626e
[ "MIT" ]
null
null
null
examples/oldexamples/sample_program.py
learningequality/klorimin
c569cd4048ac670bc55a83f4fdda0b818c7f626e
[ "MIT" ]
null
null
null
examples/oldexamples/sample_program.py
learningequality/klorimin
c569cd4048ac670bc55a83f4fdda0b818c7f626e
[ "MIT" ]
null
null
null
#!/usr/bin/env python import json import os import re from enum import Enum from os.path import join from le_utils.constants import content_kinds from le_utils.constants import exercises from le_utils.constants import file_formats from le_utils.constants import licenses from ricecooker.chefs import SushiChef from ric...
45.594684
1,965
0.620847
1,797
0.065469
0
0
0
0
0
0
10,242
0.373142
0ec3a322173dd7c7c650f060b94c615e6cceb769
19,118
py
Python
release/scripts/modules/bl_i18n_utils/utils_spell_check.py
dvgd/blender
4eb2807db1c1bd2514847d182fbb7a3f7773da96
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/modules/bl_i18n_utils/utils_spell_check.py
dvgd/blender
4eb2807db1c1bd2514847d182fbb7a3f7773da96
[ "Naumen", "Condor-1.1", "MS-PL" ]
null
null
null
release/scripts/modules/bl_i18n_utils/utils_spell_check.py
dvgd/blender
4eb2807db1c1bd2514847d182fbb7a3f7773da96
[ "Naumen", "Condor-1.1", "MS-PL" ]
1
2020-12-02T20:05:42.000Z
2020-12-02T20:05:42.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program 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 2 # of the License, or (at your option) any later version. # # This program is distrib...
23.145278
103
0.437703
18,251
0.95465
0
0
100
0.005231
0
0
9,953
0.520609
0ec3b7be918911b5b776d40be78266905df319e1
7,175
py
Python
naslib/predictors/mlp.py
gmeyerlee/NASLib
21dbceda04cc1faf3d8b6dd391412a459218ef2b
[ "Apache-2.0" ]
null
null
null
naslib/predictors/mlp.py
gmeyerlee/NASLib
21dbceda04cc1faf3d8b6dd391412a459218ef2b
[ "Apache-2.0" ]
null
null
null
naslib/predictors/mlp.py
gmeyerlee/NASLib
21dbceda04cc1faf3d8b6dd391412a459218ef2b
[ "Apache-2.0" ]
null
null
null
import numpy as np import os import json import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import DataLoader, TensorDataset from naslib.utils.utils import AverageMeterGroup from naslib.predictors.utils.encodings import encode from naslib.predictors imp...
32.466063
88
0.564739
6,588
0.918188
0
0
0
0
0
0
500
0.069686
0ec3f2a1fe20def9bc91ffbd4b3742d74abb33b3
1,301
py
Python
pythonforandroid/recipes/libx264/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
1
2019-09-03T13:44:06.000Z
2019-09-03T13:44:06.000Z
pythonforandroid/recipes/libx264/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
null
null
null
pythonforandroid/recipes/libx264/__init__.py
Joreshic/python-for-android
c60e02d2e32e31a3a754838c51e9242cbadcd9e8
[ "MIT" ]
1
2018-11-15T07:58:30.000Z
2018-11-15T07:58:30.000Z
from pythonforandroid.toolchain import Recipe, shprint, current_directory, ArchARM from os.path import exists, join, realpath from os import uname import glob import sh class LibX264Recipe(Recipe): version = 'x264-snapshot-20170608-2245-stable' # using mirror url since can't use ftp url = 'http://mirror.yand...
37.171429
93
0.583397
1,103
0.847809
0
0
0
0
0
0
386
0.296695
0ec3f460313d8f825c0daad58ff5e76ef71c5401
1,704
py
Python
Win/reg.py
QGB/QPSU
7bc214676d797f42d2d7189dc67c9377bccdf25d
[ "MIT" ]
6
2018-03-25T20:05:21.000Z
2022-03-13T17:23:05.000Z
Win/reg.py
pen9un/QPSU
76e1a3f6f6f6f78452e02f407870a5a32177b667
[ "MIT" ]
15
2018-05-14T03:30:21.000Z
2022-03-03T15:33:25.000Z
Win/reg.py
pen9un/QPSU
76e1a3f6f6f6f78452e02f407870a5a32177b667
[ "MIT" ]
1
2021-07-15T06:23:45.000Z
2021-07-15T06:23:45.000Z
#coding=utf-8 try: if __name__.startswith('qgb.Win'): from .. import py else: import py except Exception as ei: raise ei raise EnvironmentError(__name__) if py.is2(): import _winreg as winreg from _winreg import * else: import winreg from winreg import * def get(skey,name,root=HKEY_CURRENT_USER,returnTyp...
29.894737
119
0.693662
0
0
0
0
0
0
0
0
766
0.44023
0ec42be3581d1c9d5c9ab4c954473cd6061146b5
3,555
py
Python
tests/test_handler.py
CJSoldier/webssh
b3c33ff6bd76f4f5df40cc1fe9a138cf0cecd08c
[ "MIT" ]
13
2018-09-16T15:51:38.000Z
2019-10-16T09:13:18.000Z
tests/test_handler.py
CJSoldier/webssh
b3c33ff6bd76f4f5df40cc1fe9a138cf0cecd08c
[ "MIT" ]
null
null
null
tests/test_handler.py
CJSoldier/webssh
b3c33ff6bd76f4f5df40cc1fe9a138cf0cecd08c
[ "MIT" ]
null
null
null
import unittest import paramiko from tornado.httputil import HTTPServerRequest from tests.utils import read_file, make_tests_data_path from webssh.handler import MixinHandler, IndexHandler, InvalidValueError class TestMixinHandler(unittest.TestCase): def test_get_real_client_addr(self): handler = MixinH...
40.397727
72
0.686639
3,340
0.939522
0
0
0
0
0
0
303
0.085232
0ec517fad6215e10cf8fdc40288d6f1a4376050d
17,499
py
Python
apps/notifications/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
apps/notifications/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
apps/notifications/tests/test_views.py
SCiO-systems/qcat
8c2b8e07650bc2049420fa6de758fba7e50c2f28
[ "Apache-2.0" ]
null
null
null
import logging from unittest import mock from unittest.mock import call from django.conf import settings from django.contrib.auth import get_user_model from django.core.signing import Signer from django.urls import reverse from django.http import Http404 from django.test import RequestFactory from braces.views import...
37.958785
91
0.66821
16,698
0.954226
0
0
6,076
0.34722
0
0
1,946
0.111206
0ec65d0e2393fe675648f46032adc3e480a8ef52
1,032
py
Python
examples/resources.py
willvousden/clint
6dc7ab1a6a162750e968463b43994447bca32544
[ "0BSD" ]
1,230
2015-01-03T05:39:25.000Z
2020-02-18T12:36:03.000Z
examples/resources.py
willvousden/clint
6dc7ab1a6a162750e968463b43994447bca32544
[ "0BSD" ]
50
2015-01-06T17:58:20.000Z
2018-03-19T13:25:22.000Z
examples/resources.py
willvousden/clint
6dc7ab1a6a162750e968463b43994447bca32544
[ "0BSD" ]
153
2015-01-03T03:56:25.000Z
2020-02-13T20:59:03.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import sys import os sys.path.insert(0, os.path.abspath('..')) from clint import resources resources.init('kennethreitz', 'clint') lorem = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...
33.290323
456
0.767442
0
0
0
0
0
0
0
0
674
0.653101
0ec667f34cc8524a0bd9453e82114220e88aef5a
813
py
Python
photos/urls.py
charlesmugambi/Instagram
3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7
[ "MIT" ]
null
null
null
photos/urls.py
charlesmugambi/Instagram
3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7
[ "MIT" ]
null
null
null
photos/urls.py
charlesmugambi/Instagram
3a9dfc32c45bf9f221b22b7075ce31b1a16dcba7
[ "MIT" ]
null
null
null
from django.conf.urls import url from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'^image/$', views.add_image, name='upload_image'), url(r'^profile/$', views.profile_info, name='profile'), url(r'...
42.789474
80
0.675277
0
0
0
0
0
0
0
0
242
0.297663
0ec7068e816bc6b2d31f51831d9d75f6ffc1151c
11,247
py
Python
bread.py
vgfang/breadbot
e58807431945e6d4de8dfc6c4dc4c90caebf88ca
[ "MIT" ]
null
null
null
bread.py
vgfang/breadbot
e58807431945e6d4de8dfc6c4dc4c90caebf88ca
[ "MIT" ]
null
null
null
bread.py
vgfang/breadbot
e58807431945e6d4de8dfc6c4dc4c90caebf88ca
[ "MIT" ]
null
null
null
import random import math from fractions import Fraction from datetime import datetime from jinja2 import Template # empty class for passing to template engine class Recipe: def __init__(self): return # returns flour percent using flour type def get_special_flour_percent(flourType: str, breadFlourPercent:int) -> ...
36.996711
103
0.727927
43
0.003823
0
0
0
0
0
0
3,258
0.289626
0ec7b7a0dee386c8044a5e357cb59fce0132a0cf
19,177
py
Python
posthog/api/test/test_organization_domain.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/api/test/test_organization_domain.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
posthog/api/test/test_organization_domain.py
msnitish/posthog
cb86113f568e72eedcb64b5fd00c313d21e72f90
[ "MIT" ]
null
null
null
import datetime from unittest.mock import patch import dns.resolver import dns.rrset import pytest import pytz from django.utils import timezone from freezegun import freeze_time from rest_framework import status from posthog.models import Organization, OrganizationDomain, OrganizationMembership, Team from posthog.te...
45.228774
118
0.671012
18,817
0.980767
0
0
5,464
0.284791
0
0
4,349
0.226676
0ec7d9e291a15b37ad7f7b106420f6f50a25a3a0
1,248
py
Python
tutorial/test input.py
nataliapryakhina/FA_group3
3200464bc20d38a85af9ad3583a360db4ffb7f8d
[ "MIT" ]
null
null
null
tutorial/test input.py
nataliapryakhina/FA_group3
3200464bc20d38a85af9ad3583a360db4ffb7f8d
[ "MIT" ]
null
null
null
tutorial/test input.py
nataliapryakhina/FA_group3
3200464bc20d38a85af9ad3583a360db4ffb7f8d
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf from tensorflow import keras import matplotlib.pyplot as plt from os import listdir from tensorflow.keras.callbacks import ModelCheckpoint dataDir = "./data/trainSmallFA/" files = listdir(dataDir) files.sort() totalLength = len(files) inputs = np.empty((len(files), 3, 64, 64)...
30.439024
80
0.600962
0
0
0
0
0
0
0
0
175
0.140224
0ec8d0b22163c94b04ce1660f7662d06d776efe5
2,781
py
Python
pepper/responder/brain.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
29
2018-01-20T08:51:42.000Z
2022-01-25T11:59:28.000Z
pepper/responder/brain.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
32
2018-09-20T13:09:34.000Z
2021-06-04T15:23:45.000Z
pepper/responder/brain.py
cltl/pepper
5d34fc5074473163aa9273016d89e5e2b8edffa9
[ "MIT" ]
10
2018-10-25T02:45:21.000Z
2020-10-03T12:59:10.000Z
from pepper.framework import * from pepper import logger from pepper.language import Utterance from pepper.language.generation.thoughts_phrasing import phrase_thoughts from pepper.language.generation.reply import reply_to_question from .responder import Responder, ResponderType from pepper.language import UtteranceTy...
41.507463
126
0.612729
2,313
0.831715
0
0
156
0.056095
0
0
395
0.142035
0ec932467a0e10a4a3b540d34642f573915937be
7,076
py
Python
fedora_college/modules/content/views.py
fedora-infra/fedora-college
cf310dab2e4fea02b9ac5e7f57dc53aafb4834d8
[ "BSD-3-Clause" ]
2
2015-05-16T09:54:17.000Z
2017-01-11T17:58:31.000Z
fedora_college/modules/content/views.py
fedora-infra/fedora-college
cf310dab2e4fea02b9ac5e7f57dc53aafb4834d8
[ "BSD-3-Clause" ]
null
null
null
fedora_college/modules/content/views.py
fedora-infra/fedora-college
cf310dab2e4fea02b9ac5e7f57dc53aafb4834d8
[ "BSD-3-Clause" ]
1
2020-12-07T22:14:01.000Z
2020-12-07T22:14:01.000Z
# -*- coding: utf-8 -*- import re from unicodedata import normalize from flask import Blueprint, render_template, current_app from flask import redirect, url_for, g, abort from sqlalchemy import desc from fedora_college.core.database import db from fedora_college.modules.content.forms import * # noqa from fedora_colle...
34.517073
79
0.53307
0
0
0
0
5,401
0.763284
0
0
1,151
0.162663
0ecb2c7a8dccded4280171cf1a9314223cfca421
3,611
py
Python
tests/components/airthings/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
30,023
2016-04-13T10:17:53.000Z
2020-03-02T12:56:31.000Z
tests/components/airthings/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
tests/components/airthings/test_config_flow.py
MrDelik/core
93a66cc357b226389967668441000498a10453bb
[ "Apache-2.0" ]
11,956
2016-04-13T18:42:31.000Z
2020-03-02T09:32:12.000Z
"""Test the Airthings config flow.""" from unittest.mock import patch import airthings from homeassistant import config_entries from homeassistant.components.airthings.const import CONF_ID, CONF_SECRET, DOMAIN from homeassistant.core import HomeAssistant from homeassistant.data_entry_flow import RESULT_TYPE_CREATE_EN...
30.601695
84
0.675159
0
0
0
0
0
0
3,142
0.870119
702
0.194406
0ecb9ff079e3fe67fcf620b3218ea8892b9b9c1c
1,726
py
Python
utils/utils.py
scomup/StereoNet-ActiveStereoNet
05994cf1eec4a109e095732fe01ecb5558880ba5
[ "MIT" ]
null
null
null
utils/utils.py
scomup/StereoNet-ActiveStereoNet
05994cf1eec4a109e095732fe01ecb5558880ba5
[ "MIT" ]
null
null
null
utils/utils.py
scomup/StereoNet-ActiveStereoNet
05994cf1eec4a109e095732fe01ecb5558880ba5
[ "MIT" ]
null
null
null
# ------------------------------------------------------------------------------ # Copyright (c) NKU # Licensed under the MIT License. # Written by Xuanyi Li ([email protected]) # ------------------------------------------------------------------------------ import os import torch import torch.nn.functional as F #...
32.566038
128
0.589803
0
0
0
0
0
0
0
0
1,128
0.653534
0ecc375d6cf3b58f62ba3d07d23244af90a9b759
1,036
py
Python
worker/main.py
Devalent/facial-recognition-service
342e31fa7d016992d938b0121b03f0e8fe776ea8
[ "MIT" ]
null
null
null
worker/main.py
Devalent/facial-recognition-service
342e31fa7d016992d938b0121b03f0e8fe776ea8
[ "MIT" ]
null
null
null
worker/main.py
Devalent/facial-recognition-service
342e31fa7d016992d938b0121b03f0e8fe776ea8
[ "MIT" ]
null
null
null
from aiohttp import web import base64 import io import face_recognition async def encode(request): request_data = await request.json() # Read base64 encoded image url = request_data['image'].split(',')[1] image = io.BytesIO(base64.b64decode(url)) # Load image data np_array = face_recognition....
22.521739
68
0.625483
0
0
0
0
0
0
819
0.790541
154
0.148649
0ecd026a7b7cddee19fb7d65983aadf807f4917d
657
py
Python
rblod/setup.py
TiKeil/Two-scale-RBLOD
23f17a3e4edf63ea5f208eca50ca90c19bf511a9
[ "BSD-2-Clause" ]
null
null
null
rblod/setup.py
TiKeil/Two-scale-RBLOD
23f17a3e4edf63ea5f208eca50ca90c19bf511a9
[ "BSD-2-Clause" ]
null
null
null
rblod/setup.py
TiKeil/Two-scale-RBLOD
23f17a3e4edf63ea5f208eca50ca90c19bf511a9
[ "BSD-2-Clause" ]
null
null
null
# ~~~ # This file is part of the paper: # # " An Online Efficient Two-Scale Reduced Basis Approach # for the Localized Orthogonal Decomposition " # # https://github.com/TiKeil/Two-scale-RBLOD.git # # Copyright 2019-2021 all developers. All rights reserved. # License: Licensed as BSD 2-Clause ...
26.28
89
0.648402
0
0
0
0
0
0
0
0
492
0.748858
0ecdf401d5b3926e749aa892bfa6a87de7f72b30
8,060
py
Python
bin/euclid_fine_plot_job_array.py
ndeporzio/cosmicfish
f68f779d73f039512a958d110bb44194d0daceec
[ "MIT" ]
null
null
null
bin/euclid_fine_plot_job_array.py
ndeporzio/cosmicfish
f68f779d73f039512a958d110bb44194d0daceec
[ "MIT" ]
null
null
null
bin/euclid_fine_plot_job_array.py
ndeporzio/cosmicfish
f68f779d73f039512a958d110bb44194d0daceec
[ "MIT" ]
null
null
null
import os import shutil import numpy as np import pandas as pd ...
65.528455
116
0.262655
0
0
0
0
0
0
0
0
1,490
0.184864
0ece61d6db781e687c9a0cc4ff7c881e2a9a0b06
346
py
Python
project4/test/test_arm.py
XDZhelheim/CS205_C_CPP_Lab
f585fd685a51e19fddc9c582846547d34442c6ef
[ "MIT" ]
3
2022-01-11T08:12:40.000Z
2022-03-27T08:15:45.000Z
project4/test/test_arm.py
XDZhelheim/CS205_C_CPP_Lab
f585fd685a51e19fddc9c582846547d34442c6ef
[ "MIT" ]
null
null
null
project4/test/test_arm.py
XDZhelheim/CS205_C_CPP_Lab
f585fd685a51e19fddc9c582846547d34442c6ef
[ "MIT" ]
2
2022-03-03T03:01:20.000Z
2022-03-27T08:16:02.000Z
import os if __name__ == "__main__": dims = ["32", "64", "128", "256", "512", "1024", "2048"] for dim in dims: os.system( f"perf stat -e r11 -x, -r 10 ../matmul.out ../data/mat-A-{dim}.txt ../data/mat-B-{dim}.txt ./out/out-{dim}.txt 2>>res_arm.csv" ) print(f"Finished {dim}...
26.615385
138
0.514451
0
0
0
0
0
0
0
0
199
0.575145