hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
03c300e8efc648658972fa936afeb2d107c440fe
19,130
py
Python
deprecated/main(ActorCritic).py
zzong2006/space-filling-curve-with-RF-learning
30823745dae91240c0977185fb1831c9b4771a40
[ "MIT" ]
1
2021-05-15T23:27:58.000Z
2021-05-15T23:27:58.000Z
deprecated/main(ActorCritic).py
zzong2006/space-filling-curve-with-RF-learning
30823745dae91240c0977185fb1831c9b4771a40
[ "MIT" ]
null
null
null
deprecated/main(ActorCritic).py
zzong2006/space-filling-curve-with-RF-learning
30823745dae91240c0977185fb1831c9b4771a40
[ "MIT" ]
null
null
null
import sys import torch import torch.nn as nn from torch import optim import torch.nn.functional as F import numpy as np import matplotlib.pyplot as plt from itertools import combinations from utils import * from torch.autograd import Variable from multiprocessing import Process, Pipe ''' * 08-22 : ๊ธฐ์กด ๋ฐฉ์‹์€ locality๊ฐ€ ์กฐ...
37.881188
119
0.615473
30d2745e3963562e2f8c2df00c3b2fbdc4463f4d
11,853
py
Python
gunicorn/workers/gthread.py
travelsalesman/gunicorn
bc6c132575bf0fb0d91306bee70f529f004c9f59
[ "MIT" ]
1
2019-04-14T06:28:55.000Z
2019-04-14T06:28:55.000Z
gunicorn/workers/gthread.py
xgfone/gunicorn
3857ebc4a7ca52cc7ad5a89a62f2cf94519e426b
[ "MIT" ]
null
null
null
gunicorn/workers/gthread.py
xgfone/gunicorn
3857ebc4a7ca52cc7ad5a89a62f2cf94519e426b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. # design: # A threaded worker accepts connections in the main loop, accepted # connections are added to the thread pool as a connection job. # Keepalive connections are put back in the loop wa...
33.016713
78
0.54695
43f2f91ce7bc3ff77a12e3f039ce3f925eaf8240
3,428
py
Python
tests/test_trial_queue.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
1
2022-01-19T09:18:15.000Z
2022-01-19T09:18:15.000Z
tests/test_trial_queue.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
null
null
null
tests/test_trial_queue.py
ytsmiling/optur
cbc56c60b322ea764592f01758798f745199b455
[ "MIT" ]
null
null
null
import uuid from google.protobuf.timestamp_pb2 import Timestamp from optur.proto.study_pb2 import Trial, WorkerID from optur.study import _TrialQueue def test_initial_timestamp_is_none() -> None: assert _TrialQueue(states=(), worker_id=WorkerID()).last_update_time is None def test_update_timestamp() -> None: ...
32.961538
99
0.611144
0b134493dd8ef642dcda8304fa692456098b4dfb
3,090
py
Python
frappe-bench/apps/erpnext/erpnext/education/doctype/program_enrollment_tool/program_enrollment_tool.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/doctype/program_enrollment_tool/program_enrollment_tool.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/education/doctype/program_enrollment_tool/program_enrollment_tool.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.model.document import Document from erpnext.education.api import enroll_student class ProgramEnrollmentTool(Doc...
46.119403
119
0.749191
661369ce7ae48e469c5d39343ba7d8673859d273
1,165
py
Python
tensorflow_federated/python/core/test/__init__.py
iahsanujunda/federated
109a5653a305dc9d4bcbafc259257add4dc70365
[ "Apache-2.0" ]
1
2020-08-27T14:16:06.000Z
2020-08-27T14:16:06.000Z
tensorflow_federated/python/core/test/__init__.py
iahsanujunda/federated
109a5653a305dc9d4bcbafc259257add4dc70365
[ "Apache-2.0" ]
null
null
null
tensorflow_federated/python/core/test/__init__.py
iahsanujunda/federated
109a5653a305dc9d4bcbafc259257add4dc70365
[ "Apache-2.0" ]
null
null
null
# Copyright 2018, The TensorFlow Federated Authors. # # 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 o...
55.47619
106
0.832618
484d997dd96e9b426ffa8518f400f9e37c11c88b
67
py
Python
test/linters/projects/flake8/file2.py
moment-eng/lint-action
f4c4cde0c030c3ad92a70d17bff751c2ccd8192b
[ "MIT" ]
249
2020-08-05T21:06:02.000Z
2022-03-26T04:08:30.000Z
test/linters/projects/flake8/file2.py
moment-eng/lint-action
f4c4cde0c030c3ad92a70d17bff751c2ccd8192b
[ "MIT" ]
167
2020-08-06T05:08:59.000Z
2022-03-30T08:23:37.000Z
test/linters/projects/flake8/file2.py
moment-eng/lint-action
f4c4cde0c030c3ad92a70d17bff751c2ccd8192b
[ "MIT" ]
54
2020-08-25T06:43:24.000Z
2022-03-24T08:15:45.000Z
def add(num_1, num_2): return num_1 + num_2 # Indentation error
22.333333
43
0.716418
7eeb11c0dbcef83ebfe90a02f43820c9832ebf72
10,508
py
Python
electrum_gui/common/tests/unit/provider/chains/eth/sdk/test_message.py
BixinKey/electrum
f5de4e74e313b9b569f13ba6ab9142a38bf095f2
[ "MIT" ]
12
2020-11-12T08:53:05.000Z
2021-07-06T17:30:39.000Z
electrum_gui/common/tests/unit/provider/chains/eth/sdk/test_message.py
liyanhrxy/electrum
107608ef201ff1d20d2f6091c257b1ceff9b7362
[ "MIT" ]
209
2020-09-23T06:58:18.000Z
2021-11-18T11:25:41.000Z
electrum_gui/common/tests/unit/provider/chains/eth/sdk/test_message.py
liyanhrxy/electrum
107608ef201ff1d20d2f6091c257b1ceff9b7362
[ "MIT" ]
19
2020-10-13T11:42:26.000Z
2022-02-06T01:26:34.000Z
import json from unittest import TestCase from electrum_gui.common.provider.chains.eth.sdk import message as message_sdk from electrum_gui.common.provider.chains.eth.sdk import utils def _to_bytes(hex_str: str) -> bytes: return bytes.fromhex(utils.remove_0x_prefix(hex_str)) def _eip712_v4_testcases(): retu...
74
1,036
0.651504
00a25396faa4f5cb4157943878612163b896f817
6,328
py
Python
style.py
rogonzales2011/ARTE
6489547eb7cf066b034ce838c2a685e0a256b90d
[ "MIT" ]
null
null
null
style.py
rogonzales2011/ARTE
6489547eb7cf066b034ce838c2a685e0a256b90d
[ "MIT" ]
2
2020-05-30T21:09:31.000Z
2020-10-13T20:58:59.000Z
Intro to Deep Learning/Fast Style Transfer/style.py
blackeye735/Udacity-Deep-Learning-Nanodegree-Workspace
a3f94743c2a6efa6202ce24fe411e6db032d072f
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import sys, os, pdb sys.path.insert(0, 'src') import numpy as np, scipy.misc from optimize import optimize from argparse import ArgumentParser from utils import save_img, get_img, exists, list_files import evaluate CONTENT_WEIGHT = 7.5e0 STYLE_WEIGHT = 1e2 TV_WEIGHT = ...
37.666667
92
0.575853
08be576b660f386d23ad83a013447336f4a96827
636
py
Python
main.py
harrego/dmail
96c18311fe26e919aedf997e439ed7a1c56e238c
[ "MIT" ]
2
2021-06-23T11:44:59.000Z
2021-06-23T20:56:47.000Z
main.py
harrego/dmail
96c18311fe26e919aedf997e439ed7a1c56e238c
[ "MIT" ]
null
null
null
main.py
harrego/dmail
96c18311fe26e919aedf997e439ed7a1c56e238c
[ "MIT" ]
null
null
null
import math import discord import mail import os client = discord.Client() env = os.environ DISCORD_TOKEN = env.get("DISCORD_TOKEN") CHANS = env.get("DISCORD_CHANS") if CHANS: CHANS = list(map(lambda x: int(x), CHANS.split(","))) else: CHANS = [] @client.event async def on_ready(): print("Logged in") @client....
18.705882
70
0.721698
96f7d2099c2bd892515ec05d68e11820a9b0850d
575
py
Python
app/__init__.py
SolomonMacharia/Questioner-ch3
3e864c32ce96368a1b1a8fd9026f6fe0324c7233
[ "MIT" ]
null
null
null
app/__init__.py
SolomonMacharia/Questioner-ch3
3e864c32ce96368a1b1a8fd9026f6fe0324c7233
[ "MIT" ]
6
2019-01-22T00:37:56.000Z
2019-01-24T09:02:13.000Z
app/__init__.py
SolomonMacharia/Questioner-ch3
3e864c32ce96368a1b1a8fd9026f6fe0324c7233
[ "MIT" ]
null
null
null
import os from flask import Flask from .api.v2 import version_two_bp, internal_server_error, bad_request, not_found from app.config import APP_SETTINGS from migrate import create_tables from flask_jwt_extended import JWTManager def create_app(environment=''): app = Flask(__name__) create_tables() app.conf...
31.944444
81
0.803478
ad2ee4b8ec75cace59f183ccb35531be6062c428
1,180
py
Python
test/test_champion.py
Canisback/cassiopeia
2e4a759d4aadc07f743d1e167d9ecaa1709e50c9
[ "MIT" ]
null
null
null
test/test_champion.py
Canisback/cassiopeia
2e4a759d4aadc07f743d1e167d9ecaa1709e50c9
[ "MIT" ]
null
null
null
test/test_champion.py
Canisback/cassiopeia
2e4a759d4aadc07f743d1e167d9ecaa1709e50c9
[ "MIT" ]
null
null
null
import cassiopeia import pytest from merakicommons.container import SearchableList, SearchError from .constants import CHAMP_NAME def test_returns_correct_type(): champion = cassiopeia.get_champion(CHAMP_NAME, region="NA") champions = cassiopeia.get_champions(region="NA") assert isinstance(champion, ca...
28.780488
75
0.749153
1dccfca46501786b671aa1818518375b0cca3a49
20,314
py
Python
examples/portfolio_single_strike.py
zzmc21/pyBlackScholesAnalytics
5b9162330fc1bf4f892e2ff0ccd0a4e27cb7dc5c
[ "MIT" ]
49
2020-09-02T17:06:59.000Z
2022-03-27T06:47:17.000Z
examples/portfolio_single_strike.py
garyb9/pyBlackScholesAnalytics
14c1cc5a75a37b6532bc5365958a6a1aeff7d228
[ "MIT" ]
null
null
null
examples/portfolio_single_strike.py
garyb9/pyBlackScholesAnalytics
14c1cc5a75a37b6532bc5365958a6a1aeff7d228
[ "MIT" ]
19
2020-09-07T12:09:02.000Z
2022-03-27T06:57:40.000Z
""" Created by: Gabriele Pompa (gabriele.pompa@gmail.com) File: portfolio_single_strike.py Created on Tue Jul 14 2020 - Version: 1.0 Description: This script shows basic usage of Portfolio class to construct a derivative portfolio of plain-vanilla and digital option contracts. Basic instantiation examples are ...
47.910377
120
0.396869
c4cf68460db6925ba9abf4d59391de3d45697808
810
py
Python
cho_sp500/Flask/app/modules/MysqlModule.py
dss-17th/crawling-repo-5
9f072b42620c823777d5fd690ec1bb2bde23e283
[ "MIT" ]
null
null
null
cho_sp500/Flask/app/modules/MysqlModule.py
dss-17th/crawling-repo-5
9f072b42620c823777d5fd690ec1bb2bde23e283
[ "MIT" ]
null
null
null
cho_sp500/Flask/app/modules/MysqlModule.py
dss-17th/crawling-repo-5
9f072b42620c823777d5fd690ec1bb2bde23e283
[ "MIT" ]
null
null
null
import pymysql from app.modules import user class Database(): def __init__(self): self.db = pymysql.connect(host=user.host, user=user.user, password=user.pw, db=user.db, ch...
30
64
0.520988
08d9fd63dc8e2cbc77358b2e5f92e1ad2672b890
30,869
py
Python
platforms/ios/build_framework.py
nowireless/opencv
1fcc4c74fefee4f845c0d57799163a1cbf36f654
[ "Apache-2.0" ]
56,632
2016-07-04T16:36:08.000Z
2022-03-31T18:38:14.000Z
platforms/ios/build_framework.py
nowireless/opencv
1fcc4c74fefee4f845c0d57799163a1cbf36f654
[ "Apache-2.0" ]
13,593
2016-07-04T13:59:03.000Z
2022-03-31T21:04:51.000Z
platforms/ios/build_framework.py
nowireless/opencv
1fcc4c74fefee4f845c0d57799163a1cbf36f654
[ "Apache-2.0" ]
54,986
2016-07-04T14:24:38.000Z
2022-03-31T22:51:18.000Z
#!/usr/bin/env python """ The script builds OpenCV.framework for iOS. The built framework is universal, it can be used to build app and run it on either iOS simulator or real device. Usage: ./build_framework.py <outputdir> By cmake conventions (and especially if you work with OpenCV repository), the output dir sh...
52.23181
250
0.606045
a1413d8645751c16bc3295e3d3ac4024dc61606a
4,300
py
Python
app/main/views.py
cheruden/flask-pratie
752766cc8f91c4c5228d386c06216d10e6954dd6
[ "Unlicense", "MIT" ]
null
null
null
app/main/views.py
cheruden/flask-pratie
752766cc8f91c4c5228d386c06216d10e6954dd6
[ "Unlicense", "MIT" ]
null
null
null
app/main/views.py
cheruden/flask-pratie
752766cc8f91c4c5228d386c06216d10e6954dd6
[ "Unlicense", "MIT" ]
null
null
null
from flask_login import login_required, current_user from flask import render_template,request,redirect,url_for, abort,flash from ..models import Blogs,Role,User,Comments,Subscriber from .. import db,photos from . import main from ..email import mail_message from .forms import BlogsForm,CommentForm,UpdateProfile,Subscr...
27.741935
137
0.677209
4421eeff46fadaf1d25404d960b585de9b0621f3
2,524
py
Python
svaudio/users/tests/test_views.py
metrasynth/svaudio
eb9547002159305f63c7f5a885b9a9b4025d14bf
[ "MIT" ]
1
2021-06-04T07:48:37.000Z
2021-06-04T07:48:37.000Z
svaudio/users/tests/test_views.py
metrasynth/svaudio
eb9547002159305f63c7f5a885b9a9b4025d14bf
[ "MIT" ]
35
2021-04-06T07:54:00.000Z
2022-03-31T08:11:49.000Z
svaudio/users/tests/test_views.py
metrasynth/svaudio
eb9547002159305f63c7f5a885b9a9b4025d14bf
[ "MIT" ]
1
2021-06-30T01:28:28.000Z
2021-06-30T01:28:28.000Z
import pytest from django.contrib import messages from django.contrib.messages.middleware import MessageMiddleware from django.contrib.sessions.middleware import SessionMiddleware from django.test import RequestFactory from svaudio.users.forms import UserChangeForm from svaudio.users.models import User from svaudio.us...
31.160494
82
0.685816
640502dd9280765037deed4ee65710d54f7deb56
336
py
Python
src/codeacademy/operations-of-other-types.py
mketiku/python-tutorials
57f05ed78d5391b0c551c7e064a1b2f4304a3c82
[ "MIT" ]
1
2022-03-30T00:22:21.000Z
2022-03-30T00:22:21.000Z
src/codeacademy/operations-of-other-types.py
mketiku/python-tutorials
57f05ed78d5391b0c551c7e064a1b2f4304a3c82
[ "MIT" ]
null
null
null
src/codeacademy/operations-of-other-types.py
mketiku/python-tutorials
57f05ed78d5391b0c551c7e064a1b2f4304a3c82
[ "MIT" ]
null
null
null
#several values to experiment with savings = 100 factor = 1.1 desc = "compound interest" #assign the product of savings and factor to year1 year1= saving * factor #print the type of year1 print(type(year1) #assign the sum of desc and desc to the variable doubledesc doubledesc= desc + desc #print out doubledesc pr...
21
59
0.764881
6e56886db860be1ef54233e46feb1a58c80d24b3
14,279
py
Python
src/oci/announcements_service/models/announcement_subscription_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/announcements_service/models/announcement_subscription_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/announcements_service/models/announcement_subscription_summary.py
LaudateCorpus1/oci-python-sdk
b0d3ce629d5113df4d8b83b7a6502b2c5bfa3015
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
35.786967
245
0.669024
0768a1bc011ceac79fa41d661cec2adceed8785a
1,122
py
Python
tests/test_module_loader.py
jayvdb/magic_the_decorating
c08fb0c21e03376ddd28c9ce63b24f1c1122ceca
[ "Apache-2.0" ]
2
2015-11-02T22:06:26.000Z
2019-10-28T12:40:37.000Z
tests/test_module_loader.py
jayvdb/magic_the_decorating
c08fb0c21e03376ddd28c9ce63b24f1c1122ceca
[ "Apache-2.0" ]
1
2019-10-28T12:33:21.000Z
2019-10-28T12:33:21.000Z
tests/test_module_loader.py
jayvdb/magic_the_decorating
c08fb0c21e03376ddd28c9ce63b24f1c1122ceca
[ "Apache-2.0" ]
3
2015-11-02T22:11:08.000Z
2019-10-31T01:29:25.000Z
import os import sys import unittest from magic_the_decorating.loaders import ModuleLoader class TestLoader(unittest.TestCase): """ Tests for loading modules. """ def test_bad_module(self): """ Tests the loading of a module that would cause an import error. """ with ...
28.05
77
0.564171
b4a44a6eda68a5d6f05f72743bbd04ca67566448
31,395
py
Python
neutron/tests/unit/test_attributes.py
yagosys/neutron
005fec677c3bf8b2aa0df68c4aedc2b708ec7caf
[ "Apache-2.0" ]
1
2016-01-13T14:29:07.000Z
2016-01-13T14:29:07.000Z
neutron/tests/unit/test_attributes.py
yagosys/neutron
005fec677c3bf8b2aa0df68c4aedc2b708ec7caf
[ "Apache-2.0" ]
null
null
null
neutron/tests/unit/test_attributes.py
yagosys/neutron
005fec677c3bf8b2aa0df68c4aedc2b708ec7caf
[ "Apache-2.0" ]
3
2015-04-03T08:47:02.000Z
2020-02-05T10:40:45.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2012 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apach...
39.342105
79
0.583246
56c6ba092e6fefcc9e82aac7a358f2965efb44db
14,010
py
Python
mycroft/client/speech/silence.py
NeonJarbas/ovos-core
b516c319f13afb38401a5c9f6bbc0de35c7d7464
[ "Apache-2.0" ]
4
2021-11-03T22:06:30.000Z
2021-11-19T08:03:58.000Z
mycroft/client/speech/silence.py
NeonJarbas/ovos-core
b516c319f13afb38401a5c9f6bbc0de35c7d7464
[ "Apache-2.0" ]
62
2021-10-29T21:18:51.000Z
2022-03-30T07:08:29.000Z
mycroft/listener/silence.py
OpenVoiceOS/ovos-core
662577740a6e8cb5bb92bec014a05be9a6870b05
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 Mycroft AI 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 writin...
33.677885
96
0.596074
d52086778044bffd46f7ee0ad35170b24f471895
2,073
py
Python
neuralnets/utils.py
javorkk/string2shape
57955a3e5cfe35d59780a09d4b1f5c0a067ccb71
[ "MIT" ]
3
2019-05-04T08:34:49.000Z
2021-04-18T02:22:13.000Z
neuralnets/utils.py
javorkk/string2shape
57955a3e5cfe35d59780a09d4b1f5c0a067ccb71
[ "MIT" ]
null
null
null
neuralnets/utils.py
javorkk/string2shape
57955a3e5cfe35d59780a09d4b1f5c0a067ccb71
[ "MIT" ]
2
2019-04-17T12:11:15.000Z
2020-01-03T01:24:47.000Z
import gzip import h5py import numpy as np def one_hot_array(i, n): return map(int, [ix == i for ix in xrange(n)]) def one_hot_index(vec, charset): return map(charset.index, vec) def from_one_hot_array(vec): oh = np.where(vec == 1) if oh[0].shape == (0, ): return None return int(oh[0][0])...
28.013514
121
0.629522
55ac21f6f139da10d0359f3456cdad9826327558
6,290
py
Python
homeassistant/components/threshold/binary_sensor.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
6
2016-11-25T06:36:27.000Z
2021-11-16T11:20:23.000Z
homeassistant/components/threshold/binary_sensor.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
56
2020-08-03T07:30:54.000Z
2022-03-31T06:02:04.000Z
homeassistant/components/threshold/binary_sensor.py
erogleva/core
994ae09f69afe772150a698953c0d7386a745de2
[ "Apache-2.0" ]
2
2017-09-03T16:06:02.000Z
2021-01-12T15:07:52.000Z
"""Support for monitoring if a sensor value is below/above a threshold.""" import logging import voluptuous as vol from homeassistant.components.binary_sensor import ( DEVICE_CLASSES_SCHEMA, PLATFORM_SCHEMA, BinarySensorEntity, ) from homeassistant.const import ( ATTR_ENTITY_ID, CONF_DEVICE_CLASS,...
31.45
88
0.641017
87c09d146f34069bad9d9fad2a4e9d5d01281336
3,274
py
Python
Project 3b/Source Code/proj3b_ws/src/human_description/src/teleop.py
DaitTan/PIRProjects
84cc865645ecc507225575369867045c55d1997d
[ "CC0-1.0" ]
null
null
null
Project 3b/Source Code/proj3b_ws/src/human_description/src/teleop.py
DaitTan/PIRProjects
84cc865645ecc507225575369867045c55d1997d
[ "CC0-1.0" ]
null
null
null
Project 3b/Source Code/proj3b_ws/src/human_description/src/teleop.py
DaitTan/PIRProjects
84cc865645ecc507225575369867045c55d1997d
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python3 from __future__ import print_function import select import sys import termios import tty import rospy from geometry_msgs.msg import Twist msg = """ Reading from the keyboard and Publishing to Twist! --------------------------- Moving around: u i o j k l m , . For ...
22.57931
66
0.46121
bd237384323236aa206f9b616141591f7be87c13
5,570
py
Python
tests/test_clients.py
WIPACrepo/pyglidein-server
4cf627adc7fe296f8b1d7cf6fb6cba64aa0357a6
[ "MIT" ]
null
null
null
tests/test_clients.py
WIPACrepo/pyglidein-server
4cf627adc7fe296f8b1d7cf6fb6cba64aa0357a6
[ "MIT" ]
1
2021-08-30T15:47:48.000Z
2021-08-30T15:47:48.000Z
tests/test_clients.py
WIPACrepo/pyglidein-server
4cf627adc7fe296f8b1d7cf6fb6cba64aa0357a6
[ "MIT" ]
null
null
null
from collections import defaultdict import json import pytest from pyglidein_server import clients, resources from pyglidein_server.condor import JobCounts from pyglidein_server.util import Error def test_clients_init(): clients.Clients() def test_clients_update_single(): queues = { 'foo': { ...
30.437158
91
0.512388
4aa17396d7055747fe2911e4cdf47334a1a52df1
92
py
Python
test_mptt/apps.py
kollivier/django-tree-tests
13cd72d83a3967f2a3c011ea1dbe5ccf9fd9af31
[ "MIT" ]
null
null
null
test_mptt/apps.py
kollivier/django-tree-tests
13cd72d83a3967f2a3c011ea1dbe5ccf9fd9af31
[ "MIT" ]
1
2021-06-10T20:47:50.000Z
2021-06-10T20:47:50.000Z
test_mptt/apps.py
kollivier/django-tree-tests
13cd72d83a3967f2a3c011ea1dbe5ccf9fd9af31
[ "MIT" ]
null
null
null
from django.apps import AppConfig class TestMpttConfig(AppConfig): name = 'test_mptt'
15.333333
33
0.76087
dc3d593241ef9a6a7dd5628e74460c36a918441e
68,532
py
Python
test/unit/test_contracts_graph_parsed.py
joellabes/dbt
1060035838650a30e86989cbf2693db7720ff002
[ "Apache-2.0" ]
null
null
null
test/unit/test_contracts_graph_parsed.py
joellabes/dbt
1060035838650a30e86989cbf2693db7720ff002
[ "Apache-2.0" ]
1
2021-02-01T17:57:50.000Z
2021-02-01T17:57:50.000Z
test/unit/test_contracts_graph_parsed.py
joellabes/dbt
1060035838650a30e86989cbf2693db7720ff002
[ "Apache-2.0" ]
1
2021-02-01T17:54:24.000Z
2021-02-01T17:54:24.000Z
import pickle import pytest from dbt.node_types import NodeType from dbt.contracts.files import FileHash from dbt.contracts.graph.model_config import ( All, NodeConfig, SeedConfig, TestConfig, TimestampSnapshotConfig, CheckSnapshotConfig, SourceConfig, EmptySnapshotConfig, SnapshotS...
31.905028
150
0.596597
1c53994ba0487f23f678c7117f0c61a9ca022d98
1,581
py
Python
RubinPlanarity.py
seieibob/Graph-Planarity
df885844009b3c5f3228cab8dbabe8e89c957351
[ "MIT" ]
null
null
null
RubinPlanarity.py
seieibob/Graph-Planarity
df885844009b3c5f3228cab8dbabe8e89c957351
[ "MIT" ]
null
null
null
RubinPlanarity.py
seieibob/Graph-Planarity
df885844009b3c5f3228cab8dbabe8e89c957351
[ "MIT" ]
null
null
null
# coding=utf-8 """ RubinPlanarity ================ Provides an implementation of Rubin's linear-time planarity testing algorithm. """ __author__ = 'jonathancole' import networkx as nx import matplotlib.pyplot as plt import GraphGenerator import GraphUtils def find_planarity(graph): """ 1) Select any initia...
25.095238
78
0.701455
ef62d3d6483fe17ccc50fb9451469614e409fd7b
1,069
py
Python
venv/Lib/site-packages/psychopy/voicekey/signal.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/psychopy/voicekey/signal.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
venv/Lib/site-packages/psychopy/voicekey/signal.py
mintzer/pupillometry-rf-back
cfa86fa984a49dce0123798f8de5b838c02e10d5
[ "CC-BY-4.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Classes for signals to be sent upon voice-key trip events. """ from __future__ import absolute_import, print_function import threading class _BaseVoiceKeySignal(threading.Thread): """Class to support sending a signal upon detection of an event. Non-blocking...
23.755556
76
0.618335
fa29e16dafcd335d6012212bf1214b8787c0c6c0
9,586
py
Python
Activity01/ddpg.py
Develop-Packt/Introduction-to-Policy-Based-Methods-for-reinforcement-learning
d500046a136e9d5ff3ad66bbf9406f6f3989629a
[ "MIT" ]
24
2020-04-08T01:57:02.000Z
2022-03-24T18:36:14.000Z
Activity01/ddpg.py
Develop-Packt/Introduction-to-Policy-Based-Methods-for-reinforcement-learning
d500046a136e9d5ff3ad66bbf9406f6f3989629a
[ "MIT" ]
10
2020-03-24T19:49:14.000Z
2022-03-12T00:33:01.000Z
Activity01/ddpg.py
Develop-Packt/Introduction-to-Policy-Based-Methods-for-reinforcement-learning
d500046a136e9d5ff3ad66bbf9406f6f3989629a
[ "MIT" ]
32
2020-04-08T12:07:11.000Z
2022-03-25T15:49:10.000Z
import os import torch as T import numpy as np class OUActionNoise(object): def __init__(self, mu, sigma=0.15, theta=.2, dt=1e-2, x0=None): self.theta = theta self.mu = mu self.sigma = sigma self.dt = dt self.x0 = x0 self.reset() def __call__(self): x = ...
36.727969
77
0.634363
30a24d916b11bd5aa0f08b1a7806dd85cae5f1c1
1,750
py
Python
tool/run.py
yiliangwu880/simple_web_svr
23a267c88792d068c7878406267fb369156d084a
[ "BSD-3-Clause" ]
null
null
null
tool/run.py
yiliangwu880/simple_web_svr
23a267c88792d068c7878406267fb369156d084a
[ "BSD-3-Clause" ]
null
null
null
tool/run.py
yiliangwu880/simple_web_svr
23a267c88792d068c7878406267fb369156d084a
[ "BSD-3-Clause" ]
null
null
null
๏ปฟ#!/usr/bin/python #coding=utf-8 #python 2.7 #ไฝœ่€…็”จไบ†ๅŒๆญฅๅทฅๅ…ทๅฏผ่‡ด็š„็”Ÿๆˆไบ†ๅคšไฝ™ๆ–‡ไปถ๏ผŒ้œ€่ฆไธชๅทฅๅ…ทไธ€้”ฎๅˆ ้™คใ€‚ #ๅˆ ้™ค็›ฎๅฝ•ไธ‹ๆ‰€ๆœ‰ๆ‰ฉๅฑ•ๅ ~ ็ป“ๅฐพ็š„ๆ–‡ไปถ #่ฟ่กŒpython run.py import string from string import Template import os import sys import stat import shutil import re MY_PATH=".." #ไธป็›ฎๅฝ• class TemplateIgnoreInvalid(Template): # override pattern to make sure `invalid` ...
23.972603
93
0.649714
a36e2a7ad0734cc6d785e4e2ad0a95e2ed5129b0
9,887
py
Python
printerPlot.py
gravins/ML-for-BPD
e62a6e48a05f91d01886c041850f87d837ec5e52
[ "MIT" ]
3
2019-09-26T09:21:04.000Z
2021-09-22T15:23:09.000Z
printerPlot.py
gravins/ML-for-BPD
e62a6e48a05f91d01886c041850f87d837ec5e52
[ "MIT" ]
null
null
null
printerPlot.py
gravins/ML-for-BPD
e62a6e48a05f91d01886c041850f87d837ec5e52
[ "MIT" ]
null
null
null
import pydotplus as pydotplus import itertools from sklearn.tree import export_graphviz import matplotlib.pyplot as plt import numpy as np from sklearn.ensemble import RandomForestClassifier from sklearn.metrics import f1_score, confusion_matrix def visualize_tree(tree, feature_names, name=None): """ Create a ...
30.896875
117
0.618995
a080d3b03513a0b6b105fcde729e4fd62cf29056
476
py
Python
bv/rm/richtmeyermeshkov_0.025_128/richtmeyermeshkov/richtmeyermeshkov.py
kjetil-lye/systemspaper_experiments
60f9ffefdddfe496484ccdab2290d24c30eef138
[ "MIT" ]
3
2019-06-09T16:16:59.000Z
2020-10-05T08:04:07.000Z
bv/rm/richtmeyermeshkov_0.025_64/richtmeyermeshkov/richtmeyermeshkov.py
kjetil-lye/systemspaper_experiments
60f9ffefdddfe496484ccdab2290d24c30eef138
[ "MIT" ]
null
null
null
bv/rm/richtmeyermeshkov_0.025_64/richtmeyermeshkov/richtmeyermeshkov.py
kjetil-lye/systemspaper_experiments
60f9ffefdddfe496484ccdab2290d24c30eef138
[ "MIT" ]
null
null
null
epsilon = 0.025 xc = x - 0.5 yc = y - 0.5 phi = atan2(yc, xc) if abs(xc) > 0 else 0 if phi < 0: phi += 2*pi N = len(a)/2 a1 = a[:10] b1 = a[10:20] normalization = sum(a1) if abs(normalization) < 1e-8: normalization = N perturbation = epsilon * sum([a1[n] * cos(phi+2*pi*b1[n]) for n in range(N)]) / normal...
12.864865
93
0.533613
d222596362870ae72caf749fffeb28254948e281
1,151
py
Python
math3/tests/test_line.py
PhloxAR/math3
6c8e4066ae74b607cefa209c42cb19e26c09c600
[ "BSD-3-Clause" ]
null
null
null
math3/tests/test_line.py
PhloxAR/math3
6c8e4066ae74b607cefa209c42cb19e26c09c600
[ "BSD-3-Clause" ]
null
null
null
math3/tests/test_line.py
PhloxAR/math3
6c8e4066ae74b607cefa209c42cb19e26c09c600
[ "BSD-3-Clause" ]
null
null
null
try: import unittest2 as unittest except: import unittest import numpy as np from math3 import ray from math3.funcs import line class test_line(unittest.TestCase): def test_import(self): import math3 math3.funcs.linefunc def test_create_zeros(self): result = line.create_zeros...
28.073171
69
0.595135
dacc14df7e9a5e574029fd1d82fbdda49443e3df
10,138
py
Python
sparv/modules/treetagger/treetagger.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
17
2018-09-21T07:01:45.000Z
2022-02-24T23:26:49.000Z
sparv/modules/treetagger/treetagger.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
146
2018-11-13T19:13:25.000Z
2022-03-31T09:57:56.000Z
sparv/modules/treetagger/treetagger.py
spraakbanken/sparv-pipeline
7293d42c577afdaf01ce8a936743f8b83d6eb962
[ "MIT" ]
5
2019-02-14T00:50:38.000Z
2021-03-29T15:37:41.000Z
"""Process tokens with TreeTagger. Requires TreeTagger version 3.2.3 (https://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/). May work with newer versions. Please make sure you have the tree-tagger binary file in your path. You do not need to download any parameter files as Sparv will download these for you when n...
43.698276
119
0.659696
ec0317274a6bf165ccea08a064017e4c89a08c64
2,287
py
Python
src/solidityobf/transformations/aggregate_data.py
ZhouBoXiao/SolidityObfuscator
5a1e374fed2718a5e749e99ac7740b714636aa51
[ "Apache-2.0" ]
2
2020-04-25T08:03:26.000Z
2020-09-09T11:16:06.000Z
src/solidityobf/transformations/aggregate_data.py
ZhouBoXiao/SolidityObfuscator
5a1e374fed2718a5e749e99ac7740b714636aa51
[ "Apache-2.0" ]
1
2020-10-30T07:42:55.000Z
2020-10-30T09:40:31.000Z
src/solidityobf/transformations/aggregate_data.py
ZhouBoXiao/SolidityObfuscator
5a1e374fed2718a5e749e99ac7740b714636aa51
[ "Apache-2.0" ]
1
2020-10-30T02:57:56.000Z
2020-10-30T02:57:56.000Z
#!/usr/bin/env python #-*- coding:utf-8 -*- import sys import copy from common import * import copy from solidityobf.common.classes import Number,Functioncall,Expr,Ident from solidityobf.common.common import * from solidityobf.common.finder import get_all_ident,get_upper_statement_and_pos from solidityobf.common.co...
33.144928
122
0.658067
c96e84aeb7052edcb50dee3299b6d794513fa750
1,845
py
Python
a_star_spark_automate/main.py
adoni91/HGraphProject
0ac07602662e615e57e070dc6cae17da518d3a37
[ "Apache-2.0" ]
null
null
null
a_star_spark_automate/main.py
adoni91/HGraphProject
0ac07602662e615e57e070dc6cae17da518d3a37
[ "Apache-2.0" ]
null
null
null
a_star_spark_automate/main.py
adoni91/HGraphProject
0ac07602662e615e57e070dc6cae17da518d3a37
[ "Apache-2.0" ]
null
null
null
from Stateitem import * from State import * from Automaton import * import time current_state = State() state_list = [] open_list = [] close_list = [] explored_list = [] automaton = Automaton() if __name__ == '__main__': exit=0 while(exit==0): automaton=Automaton() path=input("...
43.928571
126
0.672087
23dd1bdbad1f1708be6b05a0eacde88653dc03c7
6,655
py
Python
configs/representation/sim_siam_fpn/sim_siam_r18_fpn_nip_dq_sgd_cosine_50e_imagenet.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/sim_siam_fpn/sim_siam_r18_fpn_nip_dq_sgd_cosine_50e_imagenet.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
configs/representation/sim_siam_fpn/sim_siam_r18_fpn_nip_dq_sgd_cosine_50e_imagenet.py
happywu/mmaction2-CycleContrast
019734e471dffd1161b7a9c617ba862d2349a96c
[ "Apache-2.0" ]
null
null
null
# model settings temperature = 0.2 with_norm = True query_dim = 128 model = dict( type='SimSiamTracker', backbone=dict( type='ResNet', pretrained=None, depth=18, out_indices=(0, 1, 2, 3), # strides=(1, 2, 1, 1), norm_cfg=dict(type='SyncBN', requires_grad=True), ...
30.810185
78
0.625995
e3912ef06bb2832301e036ddea4beea76cb9a7eb
1,170
py
Python
tests/test_search.py
dragonman164/dsalgo
7abcc03e59afeab20e4c5dfd72bb9216bce15a54
[ "MIT" ]
null
null
null
tests/test_search.py
dragonman164/dsalgo
7abcc03e59afeab20e4c5dfd72bb9216bce15a54
[ "MIT" ]
null
null
null
tests/test_search.py
dragonman164/dsalgo
7abcc03e59afeab20e4c5dfd72bb9216bce15a54
[ "MIT" ]
null
null
null
import unittest from dsalgo.search import Search import random class Test_seacrch(unittest.TestCase): def setUp(self): self.test_array = [i for i in range(random.randint(0, 100))] self.to_search = random.choice(self.test_array) self.search = Search(self.test_array, self.to_search) def...
37.741935
73
0.717094
bfbaefe7e836ca645e9c27f4c7601f76a85fd7d1
2,584
py
Python
mandos/model/utils/scrape.py
dmyersturnbull/chembler
b1b54a5f4fe7939e012c0cc8b227fcea60d6e744
[ "Apache-2.0" ]
null
null
null
mandos/model/utils/scrape.py
dmyersturnbull/chembler
b1b54a5f4fe7939e012c0cc8b227fcea60d6e744
[ "Apache-2.0" ]
null
null
null
mandos/model/utils/scrape.py
dmyersturnbull/chembler
b1b54a5f4fe7939e012c0cc8b227fcea60d6e744
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import time from dataclasses import dataclass from typing import Sequence from pocketutils.core.exceptions import MissingResourceError from pocketutils.core.query_utils import QueryExecutor from mandos.model.settings import SETTINGS from mandos.model.utils.setup import logger try:...
29.363636
99
0.696594
9cf58396dc266e97f18f761d110e564ac02bb15d
9,145
py
Python
src/main/python/apache/aurora/client/cli/context.py
pikselpalette/aurora
65cd3ee9a574e3f711628125362a1fda1a8e82ae
[ "Apache-2.0" ]
null
null
null
src/main/python/apache/aurora/client/cli/context.py
pikselpalette/aurora
65cd3ee9a574e3f711628125362a1fda1a8e82ae
[ "Apache-2.0" ]
null
null
null
src/main/python/apache/aurora/client/cli/context.py
pikselpalette/aurora
65cd3ee9a574e3f711628125362a1fda1a8e82ae
[ "Apache-2.0" ]
1
2022-02-27T10:41:45.000Z
2022-02-27T10:41:45.000Z
# # 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, software # distributed under ...
37.024291
98
0.713286
7ee5336fcc50c19d788059ba25dd3bf01b92cae1
639
py
Python
xawscf/commands/unload_code.py
DmitryBogomolov/aws-cloudformation-sample
f0454b203973e07027a4cdf5f36468d137d310fd
[ "MIT" ]
null
null
null
xawscf/commands/unload_code.py
DmitryBogomolov/aws-cloudformation-sample
f0454b203973e07027a4cdf5f36468d137d310fd
[ "MIT" ]
36
2018-04-20T06:11:41.000Z
2018-07-07T21:55:55.000Z
xawscf/commands/unload_code.py
DmitryBogomolov/aws-cloudformation-sample
f0454b203973e07027a4cdf5f36468d137d310fd
[ "MIT" ]
null
null
null
''' Deletes zip archives from s3 bucket. ''' from logging import getLogger from ..utils.client import get_client from ..utils.cloudformation import get_sources_bucket logger = getLogger(__name__) def run(pattern): s3 = get_client(pattern, 's3') objects = [] bucket = get_sources_bucket(get_client(pattern,...
30.428571
94
0.691706
dd57be90ca5d031801cfbc8c66618556110331c8
874
py
Python
4_Eventos/2_mouse_events.py
Gabriel-limadev/selenium_study_with_python
593a4df74cda624b8548d6e7eca4fe2685fd93f2
[ "MIT" ]
null
null
null
4_Eventos/2_mouse_events.py
Gabriel-limadev/selenium_study_with_python
593a4df74cda624b8548d6e7eca4fe2685fd93f2
[ "MIT" ]
null
null
null
4_Eventos/2_mouse_events.py
Gabriel-limadev/selenium_study_with_python
593a4df74cda624b8548d6e7eca4fe2685fd93f2
[ "MIT" ]
null
null
null
from selenium.webdriver import Chrome from selenium.webdriver.common.by import By # Usando ActionChains from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys # Configurando a pรกgina url = 'https://selenium.dunossauro.live/caixinha' b = Chrome() b.get(url) b.ma...
22.410256
64
0.716247
8a41b02a5aa2095c0b660a81cc5ee99c61f0500b
2,089
py
Python
tests/service/services_domains_test.py
mherrmann/dnsimple-python
a89127f0bafb2a001c902206fba87cbc4f3bc2d1
[ "MIT" ]
null
null
null
tests/service/services_domains_test.py
mherrmann/dnsimple-python
a89127f0bafb2a001c902206fba87cbc4f3bc2d1
[ "MIT" ]
null
null
null
tests/service/services_domains_test.py
mherrmann/dnsimple-python
a89127f0bafb2a001c902206fba87cbc4f3bc2d1
[ "MIT" ]
null
null
null
import unittest import responses from dnsimple.response import Pagination from dnsimple.struct import Service from tests.helpers import DNSimpleMockResponse, DNSimpleTest class TestName(DNSimpleTest): @responses.activate def test_applied_services(self): responses.add(DNSimpleMockResponse(method=resp...
40.173077
103
0.628052
3d400e5947599d84efab74aab0f6a03ee0741138
57,620
py
Python
env/lib/python3.6/site-packages/docutils/statemachine.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.6/site-packages/docutils/statemachine.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
env/lib/python3.6/site-packages/docutils/statemachine.py
724686158/NosqlEXP3
e29f2807f075831377456b47cf8c9ce0c8d65c30
[ "BSD-3-Clause" ]
null
null
null
# $Id: statemachine.py 7464 2012-06-25 13:16:03Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A finite state machine specialized for regular-expression-based text filters, this module defines the following classes: - `StateMachine`, a state m...
37.439896
95
0.600902
88b86354e128e8f37a0589776487e5fd51012de4
3,469
py
Python
aalh_iit_transportation_004/populate-coverage-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_transportation_004/populate-coverage-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
aalh_iit_transportation_004/populate-coverage-column.py
johndewees/iitmigration
4dadfbecda719d6e7d60af076a231aedec3c862f
[ "Unlicense" ]
null
null
null
from openpyxl import load_workbook import re filename = 'aalh_iit_transportation_004.xlsx' wb = load_workbook(filename) ws = wb['Metadata Template'] minimumcol = 8 maximumcol = 8 minimumrow = 7 maximumrow = 533 iterationrow = 7 covcol = 10 rawcovcol = 49 for row in ws.iter_rows(min_row=minimumrow, m...
44.474359
105
0.586624
04b667001606e406858c8d782cc0eeb35953cb7d
1,235
py
Python
md2doc/utils/prepare.py
williamfzc/md2doc
ee4c20662fd2dd8c19843620882071e62485a380
[ "MIT" ]
null
null
null
md2doc/utils/prepare.py
williamfzc/md2doc
ee4c20662fd2dd8c19843620882071e62485a380
[ "MIT" ]
null
null
null
md2doc/utils/prepare.py
williamfzc/md2doc
ee4c20662fd2dd8c19843620882071e62485a380
[ "MIT" ]
1
2018-11-02T08:17:32.000Z
2018-11-02T08:17:32.000Z
""" ๅ‡†ๅค‡ๅทฅไฝœ """ import os import shutil from .static import SOURCE_DIR_PATH hints_dict = { 'not_dir': 'Your path may not a directory.', 'no_md': 'No .md file detected in your directory.', 'inner': 'Some trouble happened inside. To avoid further error, try to install again.' } def is_path_valid(dir_path): ...
25.204082
90
0.675304
c75e236bfb175b2e91347fbd57adca4f4a8045d6
697
py
Python
backend/user_application/urls.py
heyImDrew/edupro
98b8342dda45071da4871bbf73f2ef002fee938f
[ "Apache-2.0" ]
null
null
null
backend/user_application/urls.py
heyImDrew/edupro
98b8342dda45071da4871bbf73f2ef002fee938f
[ "Apache-2.0" ]
null
null
null
backend/user_application/urls.py
heyImDrew/edupro
98b8342dda45071da4871bbf73f2ef002fee938f
[ "Apache-2.0" ]
null
null
null
from rest_framework.urls import path from rest_framework.routers import DefaultRouter from .views import ( DecoratedTokenObtainPairView, DecoratedTokenRefreshView, UserViewSet, FeedbackViewSet, DashNewsViewSet, ) router = DefaultRouter() router.register(r'users', UserViewSet, basename='users') rout...
31.681818
86
0.779053
d03bc1788690c0ef06d1fcd70f4b5714a791dc5a
24,462
py
Python
mapie/regression.py
vishalbelsare/MAPIE
16c17ca68a5439643251cefdd7778c9c44656c41
[ "BSD-3-Clause" ]
null
null
null
mapie/regression.py
vishalbelsare/MAPIE
16c17ca68a5439643251cefdd7778c9c44656c41
[ "BSD-3-Clause" ]
null
null
null
mapie/regression.py
vishalbelsare/MAPIE
16c17ca68a5439643251cefdd7778c9c44656c41
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations import warnings from typing import Iterable, List, Optional, Tuple, Union, cast import numpy as np import numpy.ma as ma from joblib import Parallel, delayed from sklearn.base import BaseEstimator, RegressorMixin, clone from sklearn.linear_model import LinearRegression from sklearn....
36.72973
79
0.568801
0420c6309de9697e37416a4b4f1a9539f22ac327
986
py
Python
lambdata/code_review.py
mudesir/lambdata-mudesir
764bd61f93871a8db8e4c13c0c508fa784b30795
[ "MIT" ]
null
null
null
lambdata/code_review.py
mudesir/lambdata-mudesir
764bd61f93871a8db8e4c13c0c508fa784b30795
[ "MIT" ]
null
null
null
lambdata/code_review.py
mudesir/lambdata-mudesir
764bd61f93871a8db8e4c13c0c508fa784b30795
[ "MIT" ]
null
null
null
import math import sys def exampl1(): # THIS IS A LONG COMMENT AND should be wrapped to fit within a 72 # character limit some_tuple = (1, 2, 3, 'a') some_variable = {"long": 'LONG CODE LINES should be wrapped within 79 character to prevent page cutoff stuff', 'other': [math.pi, 1...
35.214286
266
0.616633
91fcfc4c9962462b5e287dc8e79dc27b71bfe8c9
3,549
py
Python
code/create_south_sudan_coordinates_csv.py
min-yin-sri/deep-transfer-learning-crop-prediction
9d082c0516258a1ed1f76ebf166b74f95b94cedc
[ "MIT" ]
2
2018-09-01T02:15:02.000Z
2018-09-14T20:46:44.000Z
code/create_south_sudan_coordinates_csv.py
min-yin-sri/deep-transfer-learning-crop-prediction
9d082c0516258a1ed1f76ebf166b74f95b94cedc
[ "MIT" ]
null
null
null
code/create_south_sudan_coordinates_csv.py
min-yin-sri/deep-transfer-learning-crop-prediction
9d082c0516258a1ed1f76ebf166b74f95b94cedc
[ "MIT" ]
null
null
null
import sys import numpy as np import pickle import random import math import argparse import logging import os import glob import csv PATH = "/root/bucket3/textual_global_feature_vectors" COORDINATES_CSV_FILENAME = "Africa_Image_Coordinates.csv" #"All_Image_Coordinates_2.csv" SOUTH_SUDAN_CSV_FILENAME = "South_Sudan_C...
39.433333
141
0.696534
eae99354f46c911a7130dce0e3558c6a47b7b0df
214
py
Python
setup.py
dikshyakasaju/mlops_main
33dd9f69c645ed331f311f08df5a69b932d1670e
[ "MIT" ]
null
null
null
setup.py
dikshyakasaju/mlops_main
33dd9f69c645ed331f311f08df5a69b932d1670e
[ "MIT" ]
null
null
null
setup.py
dikshyakasaju/mlops_main
33dd9f69c645ed331f311f08df5a69b932d1670e
[ "MIT" ]
null
null
null
from setuptools import find_packages, setup setup( name='src', packages=find_packages(), version='0.1.0', description='Wafer Project using MLOps', author='Dikshya Kasaju', license='MIT', )
19.454545
44
0.668224
0d7c24ddd2473dfb25248ee2b6eaf231af27ef4f
2,159
py
Python
tests/python/pants_test/jvm/jvm_task_test_base.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2018-12-10T21:31:02.000Z
2018-12-10T21:31:02.000Z
tests/python/pants_test/jvm/jvm_task_test_base.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
2
2016-10-13T21:37:42.000Z
2018-07-20T20:14:33.000Z
tests/python/pants_test/jvm/jvm_task_test_base.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:12.000Z
2021-11-11T14:04:12.000Z
# coding=utf-8 # Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from pant...
38.553571
116
0.723946
c417ac78d6a74a21d493d6480c2e10db351b3d0a
374
py
Python
python/delay_vs_fanout.py
antmicro/nextpnr
bb5a8162dfebdf2d2cbf64bf5503142a0deef2a9
[ "0BSD" ]
865
2018-08-01T11:41:26.000Z
2022-03-29T08:34:29.000Z
python/delay_vs_fanout.py
antmicro/nextpnr
bb5a8162dfebdf2d2cbf64bf5503142a0deef2a9
[ "0BSD" ]
533
2018-08-01T14:01:59.000Z
2022-03-30T13:11:09.000Z
python/delay_vs_fanout.py
antmicro/nextpnr
bb5a8162dfebdf2d2cbf64bf5503142a0deef2a9
[ "0BSD" ]
194
2018-08-01T12:48:19.000Z
2022-03-29T10:19:57.000Z
with open("delay_vs_fanout.csv", "w") as f: print("fanout,delay", file=f) for net_name, net in ctx.nets: if net.driver.cell is None: continue if net.driver.cell.type == "DCCA": continue # ignore global clocks for user in net.users: print(f"{len(net.use...
34
84
0.590909
efd3c825e52b19a04af6f3dfd6b10f4520aefcc8
4,059
py
Python
verilog/generic/test/block_fifo/test_dut.py
CospanDesign/nysa-verilog
cfd576c7b188dce0de6c55d43ec5b60e231dc389
[ "MIT" ]
24
2016-09-15T16:14:39.000Z
2020-11-26T15:19:24.000Z
verilog/generic/test/block_fifo/test_dut.py
CospanDesign/nysa-verilog
cfd576c7b188dce0de6c55d43ec5b60e231dc389
[ "MIT" ]
1
2020-05-15T13:32:59.000Z
2020-05-15T13:32:59.000Z
verilog/generic/test/block_fifo/test_dut.py
CospanDesign/nysa-verilog
cfd576c7b188dce0de6c55d43ec5b60e231dc389
[ "MIT" ]
19
2016-03-29T23:56:55.000Z
2021-09-16T08:23:41.000Z
import os import sys import cocotb import logging from cocotb.result import TestFailure from cocotb.clock import Clock import time from array import array as Array from cocotb.triggers import Timer, FallingEdge, ReadWrite, NextTimeStep from block_fifo_driver import BlockFIFOWritePath from block_fifo_driver import Bloc...
22.932203
75
0.634885
1e2f5d43bbd5747d0758072080e09111e3969ee4
856
py
Python
Accounts/views.py
oluwex/quizApp
069fbc85f1be8768d121728017d07b2c5b17a3c7
[ "MIT" ]
null
null
null
Accounts/views.py
oluwex/quizApp
069fbc85f1be8768d121728017d07b2c5b17a3c7
[ "MIT" ]
null
null
null
Accounts/views.py
oluwex/quizApp
069fbc85f1be8768d121728017d07b2c5b17a3c7
[ "MIT" ]
null
null
null
#from django.shortcuts import render # Create your views here. from django.contrib.auth import get_user_model from rest_framework.generics import CreateAPIView from rest_framework.response import Response from rest_framework import status from .serializers import RegisterSerializer User = get_user_model() class U...
28.533333
59
0.705607
b78be571f777c08c75aebfa1348787aa291e9890
19
py
Python
dist/micropy-cli/frozen/time.py
kevindawson/Pico-Stub
6f9112779d4d81f821a3af273a450b9329ccdbab
[ "Apache-2.0" ]
19
2021-01-25T23:56:09.000Z
2022-02-21T13:55:16.000Z
dist/micropy-cli/frozen/time.py
kevindawson/Pico-Stub
6f9112779d4d81f821a3af273a450b9329ccdbab
[ "Apache-2.0" ]
18
2021-02-06T09:03:09.000Z
2021-10-04T16:36:35.000Z
dist/micropy-cli/frozen/time.py
kevindawson/Pico-Stub
6f9112779d4d81f821a3af273a450b9329ccdbab
[ "Apache-2.0" ]
6
2021-01-26T08:41:47.000Z
2021-04-27T11:33:33.000Z
from utime import *
19
19
0.789474
5f4107178f8e0122a55e26a2ae284b1934cb8ae2
1,413
py
Python
sdk/search/microsoft/bing/commerce/search/models/request_query_clause_block.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
1
2020-05-04T09:58:07.000Z
2020-05-04T09:58:07.000Z
sdk/search/microsoft/bing/commerce/search/models/request_query_clause_block.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
2
2020-04-21T02:32:32.000Z
2020-04-21T19:37:54.000Z
sdk/search/microsoft/bing/commerce/search/models/request_query_clause_block.py
microsoft/bing-commerce-sdk-for-python
cf555ea0bb14792708617d2435dd5aab1c4cbe90
[ "MIT" ]
4
2020-07-31T10:39:22.000Z
2021-11-10T08:14:07.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. # coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. #...
35.325
79
0.602265
fad02c25f9a4e132b310dbd4d13990cd31813790
6,449
py
Python
tests/test_single_triangle_background.py
aferrall/redner
be52e4105140f575f153d640ba889eb6e6015616
[ "MIT" ]
1,146
2018-11-11T01:47:18.000Z
2022-03-31T14:11:03.000Z
tests/test_single_triangle_background.py
Awcrr/redner
b4f57037af26b720d916bbaf26103a3499101a9f
[ "MIT" ]
177
2018-11-13T22:48:25.000Z
2022-03-30T07:19:29.000Z
tests/test_single_triangle_background.py
Awcrr/redner
b4f57037af26b720d916bbaf26103a3499101a9f
[ "MIT" ]
127
2018-11-11T02:32:17.000Z
2022-03-31T07:24:03.000Z
import pyredner import redner import numpy as np import torch import skimage.transform # Optimize three vertices of a single triangle, with a SIGGRAPH logo background # Use GPU if available pyredner.set_use_gpu(torch.cuda.is_available()) # Set up the pyredner scene for rendering: # Setup camera cam = pyredner.Camer...
39.564417
105
0.66677
c77a64689cf4aab5982b898bbffe5e08ffe62d0f
2,429
py
Python
demo/settings/base.py
pantyukhov/river-admin
7ed37418a26a4a813fe853c36f33086f80e0309c
[ "BSD-3-Clause" ]
75
2019-11-25T08:28:12.000Z
2022-03-05T12:35:11.000Z
demo/settings/base.py
pantyukhov/river-admin
7ed37418a26a4a813fe853c36f33086f80e0309c
[ "BSD-3-Clause" ]
21
2019-11-28T17:17:26.000Z
2022-02-26T20:42:30.000Z
demo/settings/base.py
pantyukhov/river-admin
7ed37418a26a4a813fe853c36f33086f80e0309c
[ "BSD-3-Clause" ]
19
2020-02-13T02:00:41.000Z
2022-03-02T04:47:05.000Z
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) RIVER_INJECT_MODEL_ADMIN = False USE_TZ = True INSTALLED_APPS = ( 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ...
25.041237
90
0.62042
d297770ac9653945edfce9c8891a338a7ca0459c
23
py
Python
src/roto/__init__.py
joshbriegal/roto
58694285932e101286e407bc521b2fa80e4eed47
[ "MIT" ]
null
null
null
src/roto/__init__.py
joshbriegal/roto
58694285932e101286e407bc521b2fa80e4eed47
[ "MIT" ]
3
2021-09-15T10:08:47.000Z
2021-09-16T17:15:55.000Z
src/roto/__init__.py
joshbriegal/roto
58694285932e101286e407bc521b2fa80e4eed47
[ "MIT" ]
null
null
null
from .roto import RoTo
11.5
22
0.782609
50f62cbbab708343bef232d8d0a246c679bf16e9
5,540
py
Python
python_developer_tools/cv/datasets/coco/labelme2coco.py
carlsummer/python_developer_tools
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
[ "Apache-2.0" ]
32
2021-06-21T04:49:48.000Z
2022-03-29T05:46:59.000Z
python_developer_tools/cv/datasets/coco/labelme2coco.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
1
2021-11-12T03:45:55.000Z
2021-11-12T03:45:55.000Z
python_developer_tools/cv/datasets/coco/labelme2coco.py
HonestyBrave/python_developer_tools
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
[ "Apache-2.0" ]
10
2021-06-03T08:05:05.000Z
2021-12-13T03:10:42.000Z
# -*- coding:utf-8 -*- import argparse import json import matplotlib.pyplot as plt import skimage.io as io # import cv2 from labelme import utils import numpy as np import glob import PIL.Image class MyEncoder(json.JSONEncoder): def default(self, obj): if isinstance(obj, np.integer): return i...
34.625
109
0.583213
e2c58ad49b4c3569add738e6fdabc60e29af9b2d
3,357
py
Python
openvision/datasets/data2record.py
liuzz1983/open_vision
f346e2f789944ea590c1d263e72a6e93490bb3a0
[ "MIT" ]
null
null
null
openvision/datasets/data2record.py
liuzz1983/open_vision
f346e2f789944ea590c1d263e72a6e93490bb3a0
[ "MIT" ]
null
null
null
openvision/datasets/data2record.py
liuzz1983/open_vision
f346e2f789944ea590c1d263e72a6e93490bb3a0
[ "MIT" ]
null
null
null
## create script that download datasets and transform into tf-record ## Assume the datasets is downloaded into following folders ## SythTexts datasets(41G) ## data/sythtext/* import numpy as np import scipy.io as sio import os, os.path import sys sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__),...
28.939655
96
0.697051
c417c304e51d81b2530b80e802731e3b91cd5224
124,937
py
Python
pysnmp/WHISP-BOX-MIBV2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/WHISP-BOX-MIBV2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/WHISP-BOX-MIBV2-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module WHISP-BOX-MIBV2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/WHISP-BOX-MIBV2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 21:29:30 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default...
135.213203
12,623
0.735595
082bb45e6fe1fdb5882dbd70bae7aa6b53ad66d2
1,183
py
Python
build_grub_i486.py
SydOS/toolchains
bb09e4a929813b9b305182c596192d22f89e290d
[ "MIT" ]
null
null
null
build_grub_i486.py
SydOS/toolchains
bb09e4a929813b9b305182c596192d22f89e290d
[ "MIT" ]
null
null
null
build_grub_i486.py
SydOS/toolchains
bb09e4a929813b9b305182c596192d22f89e290d
[ "MIT" ]
null
null
null
# File: build_gcc_i686.py # # Copyright (c) 2020 The SydOS Team # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy...
47.32
80
0.776839
328266d4545782b5c3ecdef143aa2d37d17ccb89
689
py
Python
order/migrations/0020_auto_20201215_0904.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
1
2021-06-18T03:03:42.000Z
2021-06-18T03:03:42.000Z
order/migrations/0020_auto_20201215_0904.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
order/migrations/0020_auto_20201215_0904.py
hhdMrLion/Product-System
e870225ab10c32688a87426d5943d922c47c4404
[ "MIT" ]
null
null
null
# Generated by Django 2.2.16 on 2020-12-15 01:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('order', '0019_order_update_time'), ] operations = [ migrations.AlterField( model_name='order', name='...
28.708333
135
0.563135
e5bf0ca515660e99c01a6665484bb459d846d583
529
py
Python
tests/test_experiment.py
QuantMarkFramework/LibMark
1fcf2107d97e11c9b91be7e59bfa2f78cf953a0e
[ "MIT" ]
null
null
null
tests/test_experiment.py
QuantMarkFramework/LibMark
1fcf2107d97e11c9b91be7e59bfa2f78cf953a0e
[ "MIT" ]
null
null
null
tests/test_experiment.py
QuantMarkFramework/LibMark
1fcf2107d97e11c9b91be7e59bfa2f78cf953a0e
[ "MIT" ]
null
null
null
import unittest import ast, os, sys # noqa from libmark.experiment import QleaderExperiment class testExperiment(unittest.TestCase): def setUp(self): with open(os.path.join(sys.path[0], 'tests/test_data.txt'), 'r') as file: # noqa self.experiment = QleaderExperiment(**ast.literal_eval(file.r...
33.0625
88
0.680529
093a16b1b99ee5e35238a5c1ba62668a1fa1abd3
894
py
Python
src/omniverse/setup.py
XinghuiTao/ros2_turtlebot
206aa5c8830cc6598077ab4cf86ffed261183d1a
[ "MIT" ]
null
null
null
src/omniverse/setup.py
XinghuiTao/ros2_turtlebot
206aa5c8830cc6598077ab4cf86ffed261183d1a
[ "MIT" ]
null
null
null
src/omniverse/setup.py
XinghuiTao/ros2_turtlebot
206aa5c8830cc6598077ab4cf86ffed261183d1a
[ "MIT" ]
null
null
null
from setuptools import setup import os from glob import glob package_name = 'omniverse' setup( name=package_name, version='0.0.0', packages=[package_name], data_files=[ ('share/ament_index/resource_index/packages', ['resource/' + package_name]), ('share/' + package_name, ['...
27.9375
73
0.629754
6a837bef2d9332e69ef3fcb3cce471e6fb861ce9
1,491
py
Python
src/core/tests/widgets/test_button.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
2
2019-02-19T17:19:24.000Z
2020-04-13T21:22:24.000Z
src/core/tests/widgets/test_button.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
2
2019-10-26T20:54:06.000Z
2019-10-26T21:43:43.000Z
src/core/tests/widgets/test_button.py
d3r3kk/toga
2d8c0eb30371c4ef4f0610251233569e9c618e93
[ "BSD-3-Clause" ]
4
2019-02-13T17:54:15.000Z
2019-10-26T21:16:27.000Z
import toga import toga_dummy from toga_dummy.utils import TestCase class ButtonTests(TestCase): def setUp(self): super().setUp() # Create a button with the dummy factory self.initial_label = 'Test Button' self.btn = toga.Button(self.initial_label, factory=toga_dummy.factory) ...
33.133333
78
0.649229
cf0f4ab7d603d7de9e0ed7a765992318562a3720
5,128
py
Python
huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_messages_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_messages_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-kafka/huaweicloudsdkkafka/v2/model/show_messages_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowMessagesResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict...
26.708333
92
0.581123
e7769314608c6ed6bb265425930b4dc25affc3f1
20,501
py
Python
test_tablib.py
klothe/tablib
ddf8cf8ecc75d3e13a44611324e63cfcb2a1b13a
[ "MIT" ]
null
null
null
test_tablib.py
klothe/tablib
ddf8cf8ecc75d3e13a44611324e63cfcb2a1b13a
[ "MIT" ]
null
null
null
test_tablib.py
klothe/tablib
ddf8cf8ecc75d3e13a44611324e63cfcb2a1b13a
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Tests for Tablib.""" import json import unittest import sys import os import tablib from tablib.compat import markup, unicode, is_py3 class TablibTestCase(unittest.TestCase): """Tablib test cases.""" def setUp(self): """Create simple data set with ...
27.85462
108
0.58841
6970a1f6b611aa23e7300bbb00fe47b6b30df878
8,299
py
Python
temp.py
vclabskku/nlos
df73b12050713a09b6e843af790d391e9361c3ef
[ "MIT" ]
null
null
null
temp.py
vclabskku/nlos
df73b12050713a09b6e843af790d391e9361c3ef
[ "MIT" ]
null
null
null
temp.py
vclabskku/nlos
df73b12050713a09b6e843af790d391e9361c3ef
[ "MIT" ]
1
2022-03-27T04:54:51.000Z
2022-03-27T04:54:51.000Z
import os import time import paramiko import threading import _thread from multiprocessing import Process, Manager from subprocess import Popen, PIPE import time def get_config(): config = dict() config["turtlebot_config"] = dict() config["turtlebot_config"]["using_list"] = ['1', '2'] config["turtlebot...
45.598901
154
0.541752
3c5f78957db3cb4936954027d838dab8fa8af053
378
py
Python
test/test_add_group.py
erybak90/Szkolenie-python
fd17dcfe5325de537ad9038bbfc7692e7314116b
[ "Apache-2.0" ]
null
null
null
test/test_add_group.py
erybak90/Szkolenie-python
fd17dcfe5325de537ad9038bbfc7692e7314116b
[ "Apache-2.0" ]
null
null
null
test/test_add_group.py
erybak90/Szkolenie-python
fd17dcfe5325de537ad9038bbfc7692e7314116b
[ "Apache-2.0" ]
null
null
null
from model.group import Group def test_add_group(app, db, json_groups): group = json_groups old_groups = db.get_group_list() app.group.create(group) assert len(old_groups) + 1 == app.group.count() new_groups = db.get_group_list() old_groups.append(group) assert sorted(old_groups, key=Gro...
25.2
93
0.716931
add6bf4a1b68357e09686319ad0e7b731159c33b
15,889
py
Python
SciAnalysis/XSAnalysis/DataRQconv.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
13
2018-04-17T06:35:20.000Z
2021-09-22T08:49:47.000Z
SciAnalysis/XSAnalysis/DataRQconv.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
14
2018-04-18T01:05:57.000Z
2020-11-05T21:57:09.000Z
SciAnalysis/XSAnalysis/DataRQconv.py
zhouzhouxpyf/CFN-softbio
21e4f4845e7a49c97f4ed2b0aa78a7eb831f6bcc
[ "BSD-3-Clause" ]
9
2017-05-26T14:47:38.000Z
2021-03-24T02:44:59.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # vi: ts=4 sw=4 ''' :mod:`SciAnalysis.XSAnalysis.DataRQconv` - Handling wide-angle area detectors ================================================ .. module:: SciAnalysis.XSAnalysis :synopsis: Provides base classes for doing analysis of x-ray data with tilted detectors ''' ...
33.591966
156
0.529738
a01866b171da343c8dfaeb7f6743dc627e1b429e
1,451
py
Python
search_jingdong.py
kagenZhao/NetSearch
eccc67aec2e04c62654f63208a6d19c17da02b24
[ "MIT" ]
null
null
null
search_jingdong.py
kagenZhao/NetSearch
eccc67aec2e04c62654f63208a6d19c17da02b24
[ "MIT" ]
null
null
null
search_jingdong.py
kagenZhao/NetSearch
eccc67aec2e04c62654f63208a6d19c17da02b24
[ "MIT" ]
null
null
null
import requests from tools import * from urllib.parse import quote class JingDongSearch(BaseSearch): def __init__(self, query): super(JingDongSearch, self).__init__(query) self.reqeust_url = "https://dd-search.jd.com/?terminal=pc&newjson=1&ver=2&zip=1&curr_url=www.jd.com%2F&key=" + str(self.query)...
40.305556
142
0.494831
2e603279088adad5f14fd6a0ba8857b0436954c2
2,316
py
Python
python/ray/setup-dev.py
kirarpit/ray
c759cd8781d172d7cd52da6c08b941ab12953a34
[ "Apache-2.0" ]
1
2019-06-19T17:31:14.000Z
2019-06-19T17:31:14.000Z
python/ray/setup-dev.py
ashuein/ray
bcc379556b135ee2e472b0e4b388c9e1f8274dc9
[ "Apache-2.0" ]
4
2019-03-04T13:03:24.000Z
2019-06-06T11:25:07.000Z
python/ray/setup-dev.py
ashuein/ray
bcc379556b135ee2e472b0e4b388c9e1f8274dc9
[ "Apache-2.0" ]
1
2020-04-30T09:06:20.000Z
2020-04-30T09:06:20.000Z
#!/usr/bin/env python """This script allows you to develop RLlib without needing to compile Ray.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import click import os import subprocess import ray def do_link(package, force=False): ...
38.6
78
0.661917
1c36d64543c9ae82fd1fedde5c61ca0052ed9091
982
py
Python
apps/portalbase/macros/wiki/actors/1_main.py
jumpscale7/jumpscale_portal
8c99265e48f85643f8a52bc40a23f5266fb09231
[ "Apache-2.0" ]
2
2016-04-14T14:05:01.000Z
2016-04-21T07:20:36.000Z
apps/portalbase/macros/wiki/actors/1_main.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
13
2016-03-07T12:07:15.000Z
2018-02-28T13:11:59.000Z
apps/portalbase/macros/wiki/actors/1_main.py
Jumpscale/jumpscale6_core
0502ddc1abab3c37ed982c142d21ea3955d471d3
[ "BSD-2-Clause" ]
5
2016-03-08T07:49:51.000Z
2018-10-19T13:57:04.000Z
def main(j, args, params, tags, tasklet): doc = args.doc tags = args.tags out = "" bullets = args.tags.labelExists("bullets") table = args.tags.labelExists("table") if table: rows = [] for item in sorted(j.core.portal.active.getActors()): app, actor = item.split...
27.277778
108
0.491853
1e1098e1cfa60a41a4de52b42334abddd5638bba
3,333
py
Python
pyCBPE/constants.py
luigiluz/pyCBPE
e3e7282f7e234e67318d9a8c56d81f0956b79bdf
[ "MIT" ]
3
2021-09-03T08:26:16.000Z
2021-12-16T01:57:05.000Z
pyCBPE/constants.py
luigiluz/pyCBPE
e3e7282f7e234e67318d9a8c56d81f0956b79bdf
[ "MIT" ]
null
null
null
pyCBPE/constants.py
luigiluz/pyCBPE
e3e7282f7e234e67318d9a8c56d81f0956b79bdf
[ "MIT" ]
null
null
null
""" This module will contain all the constants used in pyCBPE package """ ROOT_PATH = "/home/luigiluz/Documents/pessoal/pyCBPE" N_OF_DATASET_FILES = 4 # Dataset paths DATASET_PATH = "/files/dataset/" PPG_SEG_MATRIX_SPLIT_1_PATH = DATASET_PATH + "ppg_matrix_split_1.csv" ABP_SEG_MATRIX = "/files/dataset/abp_matrix_sp...
27.545455
101
0.717372
b89ac9c6b9cf5ef5e98e8344b68ec2378d59a033
973
py
Python
python/app/thirdparty/oneforall/modules/datasets/cebaidu.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
351
2020-02-26T05:23:26.000Z
2022-03-26T12:39:19.000Z
python/app/thirdparty/oneforall/modules/datasets/cebaidu.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
15
2020-03-26T07:31:49.000Z
2022-03-09T02:12:17.000Z
python/app/thirdparty/oneforall/modules/datasets/cebaidu.py
taomujian/linbing
fe772a58f41e3b046b51a866bdb7e4655abaf51a
[ "MIT" ]
99
2020-02-28T07:30:46.000Z
2022-03-16T16:41:09.000Z
from app.thirdparty.oneforall.common.query import Query class CeBaidu(Query): def __init__(self, domain): Query.__init__(self) self.domain = domain self.module = 'Dataset' self.source = 'CeBaiduQuery' self.addr = 'https://ce.baidu.com/index/getRelatedSites' def query(s...
21.152174
64
0.563207
abc517e6cbcc5485b0ab9545cabe882c872c3e92
5,341
py
Python
tern/analyze/passthrough.py
abhaykatheria/tern
e62a6c1e8d72ede8ae1f9a6d03e7d57d267f3df9
[ "BSD-2-Clause" ]
2
2020-05-21T00:00:36.000Z
2020-12-28T20:43:25.000Z
tern/analyze/passthrough.py
JamieMagee/tern
230d6d812d6a74e084c6d3d9d9396f2c716254b7
[ "BSD-2-Clause" ]
null
null
null
tern/analyze/passthrough.py
JamieMagee/tern
230d6d812d6a74e084c6d3d9d9396f2c716254b7
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2019-2020 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: BSD-2-Clause """ Use an external tool to analyze a container image """ import logging import os import shutil from stevedore import driver from stevedore.exception import NoMatches from tern.classes.noti...
37.090278
79
0.699494
d5f099e6befcdc18280d2ebaf7485a16519c2a62
169
py
Python
src/ch08/225.py
thejit/pycote
6ac66e7ade78e146d46f650a00447dd055d44584
[ "MIT" ]
null
null
null
src/ch08/225.py
thejit/pycote
6ac66e7ade78e146d46f650a00447dd055d44584
[ "MIT" ]
null
null
null
src/ch08/225.py
thejit/pycote
6ac66e7ade78e146d46f650a00447dd055d44584
[ "MIT" ]
null
null
null
#๋ฐ”๋‹ฅ๊ณต์‚ฌ n=3 d=[0]*1001 d[1]=1 d[2]=3 for i in range(3,n+1): print('d[i-1]=', d[i-1] ) print('d[i-2]=', d[i-2] ) d[i]=(d[i-1]+2 * d[i-2]) % 796796 print(d[n])
14.083333
37
0.449704
4224cd611681d674bdbc2cd5914c82299a0b831f
326
py
Python
python/testimport.py
taruma/belajar-tsa
ded702846f0453993ba90738a4b6b2401abe9177
[ "MIT" ]
null
null
null
python/testimport.py
taruma/belajar-tsa
ded702846f0453993ba90738a4b6b2401abe9177
[ "MIT" ]
null
null
null
python/testimport.py
taruma/belajar-tsa
ded702846f0453993ba90738a4b6b2401abe9177
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Oct 5 18:11:34 2018 @author: tarum """ import sys, os sys.path.append(os.path.abspath('..')) import umakit from umakit.general import get_valdict print(umakit.basicmath.luas_lingkaran(4)) tes = dict(a=3, b=5, c=8) a = get_valdict(tes,'a,c') print(li...
16.3
41
0.628834
2c9f6bc9bfdc997fecff8af1029ce42fa8256b28
3,971
py
Python
tefla/core/device_setter.py
mkulariya1/tefla
8de25c1b67dcf025535f5e8c40539de59acd7fb8
[ "MIT" ]
40
2017-09-10T17:11:17.000Z
2022-02-01T17:40:53.000Z
tefla/core/device_setter.py
mkulariya1/tefla
8de25c1b67dcf025535f5e8c40539de59acd7fb8
[ "MIT" ]
21
2018-06-21T09:58:04.000Z
2022-03-11T23:11:37.000Z
tefla/core/device_setter.py
subex/Tefla
34f8fd0e2f2ee02aa73c6289753e08a95cc41880
[ "MIT" ]
11
2017-10-13T13:10:02.000Z
2020-08-17T07:07:53.000Z
"""Strategies for placing variables on parameter servers.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import hashlib import numpy as np from tensorflow.python.framework import tensor_shape class RandomStrategy(object): """Returns a random PS task...
37.462264
78
0.725006
6ceef4c972c332fabc844a91c4283c993de4bddb
2,408
py
Python
TattlerDIR/TattlerTrackerManager.py
JoshLee0915/Tattler-DiscordIssueReporter
1d86871dc314d58ca09b0cc423cc5385cd8ee4a3
[ "MIT" ]
null
null
null
TattlerDIR/TattlerTrackerManager.py
JoshLee0915/Tattler-DiscordIssueReporter
1d86871dc314d58ca09b0cc423cc5385cd8ee4a3
[ "MIT" ]
5
2019-04-19T20:02:00.000Z
2019-04-19T20:09:12.000Z
TattlerDIR/TattlerTrackerManager.py
JoshLee0915/Tattler-DiscordIssueReporter
1d86871dc314d58ca09b0cc423cc5385cd8ee4a3
[ "MIT" ]
null
null
null
from TattlerDIR.TattlerConfigManager import ConfigManager class TattlerTrackerManager(object): def __init__(self, config_manager=None): if not config_manager: config_manager = ConfigManager() config_manager.load() self.config_manager = config_manager self.issue_tr...
39.47541
123
0.575997
50adb3d86e01fcfbd9fb8076bc458b4de9efa9bc
12,715
py
Python
python/graphscope/nx/tests/test_ctx_builtin.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
1
2021-12-30T02:55:16.000Z
2021-12-30T02:55:16.000Z
python/graphscope/nx/tests/test_ctx_builtin.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
null
null
null
python/graphscope/nx/tests/test_ctx_builtin.py
lnfjpt/GraphScope
917146f86d8387302a2e1de6963115e7568bf3ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache...
33.372703
88
0.557216
2105fa1afe1ebd4afd8da6157587a549d3d251b3
6,722
py
Python
.history/src/data/data_20191028083054.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
.history/src/data/data_20191028083054.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
.history/src/data/data_20191028083054.py
bkraft4257/kaggle_titanic
f29ea1773773109a867278c001dbd21a9f7b21dd
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from typing import Union from pathlib import Path from nameparser import HumanName class ExtractData: def __init__(self, filename: Union[str, Path], age_bins=None, drop_columns=None): # """Extract Training Data from file or Path # Arguments: # fi...
31.85782
116
0.574829
5531fec4d8136f460bdc5931768b3e03d5ef5daf
615
py
Python
devscripts/make_supportedsites.py
makubex2010/yt-dlp
2e4585da92864741421bc6ea3260145333535aeb
[ "Unlicense" ]
null
null
null
devscripts/make_supportedsites.py
makubex2010/yt-dlp
2e4585da92864741421bc6ea3260145333535aeb
[ "Unlicense" ]
null
null
null
devscripts/make_supportedsites.py
makubex2010/yt-dlp
2e4585da92864741421bc6ea3260145333535aeb
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 import optparse import os import sys sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) from yt_dlp.extractor import list_extractors def main(): parser = optparse.OptionParser(usage='%prog OUTFILE.md') _, args = parser.parse_args() if len(args) != 1: ...
24.6
96
0.676423
2d4be825b11b6686fb1adbaf1edacb8180b445d1
1,597
py
Python
examples/frameworks/matplotlib/matplotlib_example.py
OmerM25/trains
84ec9c0617944e666dfaf8c17d59b4b35dbaaa65
[ "Apache-2.0" ]
1
2020-10-25T22:22:23.000Z
2020-10-25T22:22:23.000Z
examples/frameworks/matplotlib/matplotlib_example.py
OmerM25/trains
84ec9c0617944e666dfaf8c17d59b4b35dbaaa65
[ "Apache-2.0" ]
null
null
null
examples/frameworks/matplotlib/matplotlib_example.py
OmerM25/trains
84ec9c0617944e666dfaf8c17d59b4b35dbaaa65
[ "Apache-2.0" ]
null
null
null
# TRAINS - Example of Matplotlib and Seaborn integration and reporting # import numpy as np import matplotlib.pyplot as plt import seaborn as sns from trains import Task task = Task.init(project_name='examples', task_name='Matplotlib example') # Create a plot N = 50 x = np.random.rand(N) y = np.random.rand(N) colors...
28.017544
110
0.715091
8588403adbb434e9592eb30f02c4ce854bf2f3e2
26,718
py
Python
python/__init__.py
gglin001/poptorch
61f38ed2d8c6b672e023862eb698865fa7f4724e
[ "MIT" ]
128
2020-12-08T22:22:46.000Z
2022-03-23T10:54:26.000Z
python/__init__.py
gglin001/poptorch
61f38ed2d8c6b672e023862eb698865fa7f4724e
[ "MIT" ]
4
2021-06-22T14:26:28.000Z
2022-02-15T11:25:05.000Z
python/__init__.py
gglin001/poptorch
61f38ed2d8c6b672e023862eb698865fa7f4724e
[ "MIT" ]
7
2020-12-09T20:32:56.000Z
2022-01-18T16:12:24.000Z
# Copyright (c) 2020 Graphcore Ltd. All rights reserved. import atexit import copy from typing import Any, Callable, Dict, Iterator, Optional, Union import pickle import torch # These are needed before the assert # pylint: disable=wrong-import-order from . import _logging from ._logging import logger # pylint: enable...
42.7488
89
0.625309
3ba03cfdece7adb52ae23bebf235dc4e76cc4f90
853
py
Python
lec6.py
Haywarax/IA241
ffd060eaeff65714b3d38bfcf123f2ae362ea9e0
[ "MIT" ]
null
null
null
lec6.py
Haywarax/IA241
ffd060eaeff65714b3d38bfcf123f2ae362ea9e0
[ "MIT" ]
null
null
null
lec6.py
Haywarax/IA241
ffd060eaeff65714b3d38bfcf123f2ae362ea9e0
[ "MIT" ]
null
null
null
#lecture 6 for letter in ['a', 'b', 'c']: print(letter) demo_str = 'this is my string' for c in demo_str: print(c) for word in demo_str.split(): print(word) for i in range(5): print(i) print('****************') for i in range(1,5): print(i) print('***************...
14.457627
31
0.514654
524b631aae76d29af4492da0b1d04c3701eb91b4
9,405
py
Python
core.py
MikkoArtik/MineChat
c47f22fc1f2a8fa22746c7d1031ab4d8378d052b
[ "MIT" ]
null
null
null
core.py
MikkoArtik/MineChat
c47f22fc1f2a8fa22746c7d1031ab4d8378d052b
[ "MIT" ]
null
null
null
core.py
MikkoArtik/MineChat
c47f22fc1f2a8fa22746c7d1031ab4d8378d052b
[ "MIT" ]
null
null
null
from typing import NamedTuple from datetime import datetime import os import logging import json import socket import asyncio from asyncio import StreamReader, StreamWriter from asyncio import Queue from contextlib import asynccontextmanager import aiofiles import async_timeout import anyio from messenger_interface...
33.469751
96
0.638384
c25bfd80be9be75f83215b14864cab337df6a7be
17,318
py
Python
plugins/modules/acos_config.py
NehaKembalkarA10/a10-acos-cli
fdcf22cde4009d0ca1c8cb9a10c230a26d8a897f
[ "Apache-2.0" ]
null
null
null
plugins/modules/acos_config.py
NehaKembalkarA10/a10-acos-cli
fdcf22cde4009d0ca1c8cb9a10c230a26d8a897f
[ "Apache-2.0" ]
null
null
null
plugins/modules/acos_config.py
NehaKembalkarA10/a10-acos-cli
fdcf22cde4009d0ca1c8cb9a10c230a26d8a897f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright: (c) 2020, A10 Networks Inc. # GNU General Public License v3.0 # (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], 'supported_by': 'comm...
38.061538
95
0.621088
fb4c90924bfe1148b73e95a34490df1e995a0bb8
3,180
py
Python
PublicServer/supervision/models.py
NaraJeamfry/CodeathoURV2016_Raspi
4eecd7ea86e8845bd1d0f4d5c3747f5e61b0214e
[ "MIT" ]
null
null
null
PublicServer/supervision/models.py
NaraJeamfry/CodeathoURV2016_Raspi
4eecd7ea86e8845bd1d0f4d5c3747f5e61b0214e
[ "MIT" ]
null
null
null
PublicServer/supervision/models.py
NaraJeamfry/CodeathoURV2016_Raspi
4eecd7ea86e8845bd1d0f4d5c3747f5e61b0214e
[ "MIT" ]
1
2016-02-14T17:21:53.000Z
2016-02-14T17:21:53.000Z
# -*- coding: UTF-8 -*- from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from classroom_server.raspberry import get_status, test_connection class ClassroomProperties(models.Model): name = models.CharField(max_length=24) has_count = models.Boole...
26.722689
87
0.642138
d11cfe6ecc541691e4bf99c3ace1c85c171fe195
114
py
Python
tests/test_plugin/pyexcel_test/__init__.py
pgajdos/lml
047bad491a25192d0d3816103b6b47e7374cc5a1
[ "BSD-3-Clause" ]
3
2020-05-14T06:33:39.000Z
2021-08-16T21:20:56.000Z
tests/test_plugin/pyexcel_test/__init__.py
pgajdos/lml
047bad491a25192d0d3816103b6b47e7374cc5a1
[ "BSD-3-Clause" ]
11
2019-08-01T18:49:46.000Z
2022-03-27T10:28:05.000Z
tests/test_plugin/pyexcel_test/__init__.py
pgajdos/lml
047bad491a25192d0d3816103b6b47e7374cc5a1
[ "BSD-3-Clause" ]
4
2020-04-14T12:13:38.000Z
2022-03-25T06:12:04.000Z
from lml.plugin import PluginInfoChain __test_plugins__ = PluginInfoChain(__name__).add_a_plugin("test_io", "x")
28.5
73
0.815789
b4317f4f2cae82929c689f25589b88b2596c1d96
2,875
py
Python
taggr/auth.py
jlbyh2o/Taggr
d4fe852771bf9bc0b55c7e7245ce74bc75f076fb
[ "Apache-2.0" ]
null
null
null
taggr/auth.py
jlbyh2o/Taggr
d4fe852771bf9bc0b55c7e7245ce74bc75f076fb
[ "Apache-2.0" ]
null
null
null
taggr/auth.py
jlbyh2o/Taggr
d4fe852771bf9bc0b55c7e7245ce74bc75f076fb
[ "Apache-2.0" ]
null
null
null
import subprocess from flask import ( Blueprint, flash, redirect, render_template, request, url_for ) from flask_login import current_user, login_user, logout_user, login_required from taggr.models import User from taggr import db from taggr.forms import RegisterForm, LoginForm, SettingsForm bp = Blueprint('auth'...
34.638554
78
0.658087
7d58e8e28a22eaeaebfc3e9798b67eee25f8f831
507
py
Python
home/migrations/0016_contactpage_other_info.py
jesuispaulbonnet/technic-alu
697b948108bdda3c2f538f88d747b5cd50e21254
[ "Unlicense" ]
null
null
null
home/migrations/0016_contactpage_other_info.py
jesuispaulbonnet/technic-alu
697b948108bdda3c2f538f88d747b5cd50e21254
[ "Unlicense" ]
null
null
null
home/migrations/0016_contactpage_other_info.py
jesuispaulbonnet/technic-alu
697b948108bdda3c2f538f88d747b5cd50e21254
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.9 on 2018-02-23 15:35 from __future__ import unicode_literals from django.db import migrations import wagtail.wagtailcore.fields class Migration(migrations.Migration): dependencies = [ ('home', '0015_contactpage_map_address'), ] operations = [ ...
23.045455
71
0.650888
c689721fad31be92cf206bd5c34f08f7131e6086
98
py
Python
curio/test/slow.py
ABaldwinHunter/curio-clone-classic
43aebdb36d71296af63863b7a176acc831d4f8cf
[ "BSD-3-Clause" ]
2
2016-11-24T20:35:02.000Z
2016-11-27T00:35:16.000Z
curio/test/slow.py
ABaldwinHunter/curio-clone-classic
43aebdb36d71296af63863b7a176acc831d4f8cf
[ "BSD-3-Clause" ]
null
null
null
curio/test/slow.py
ABaldwinHunter/curio-clone-classic
43aebdb36d71296af63863b7a176acc831d4f8cf
[ "BSD-3-Clause" ]
null
null
null
import time for i in range(4, 0, -1): print('t-minus', i, flush=True) time.sleep(1)
14
35
0.561224
2f483c3b94563f51fc2da878deef1adba86ac9cf
5,819
py
Python
tests/st/dump/test_multi_root_graph_dump.py
PowerOlive/mindspore
bda20724a94113cedd12c3ed9083141012da1f15
[ "Apache-2.0" ]
5
2021-06-04T02:23:01.000Z
2021-12-13T10:41:07.000Z
tests/st/dump/test_multi_root_graph_dump.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
null
null
null
tests/st/dump/test_multi_root_graph_dump.py
zimo-geek/mindspore
665ec683d4af85c71b2a1f0d6829356f2bc0e1ff
[ "Apache-2.0" ]
1
2021-12-14T06:22:31.000Z
2021-12-14T06:22:31.000Z
# Copyright 2021 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://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.597484
111
0.693074
d0d4f487d9800bba95ea4cb8d7ec3df233a1eb97
5,249
py
Python
pythoncompvision/pycompvision-faces-camera.py
pjgpetecodes/mscognitive
c8954c7a2f0610a755522bcbeac3de07b4a7f49f
[ "MIT" ]
null
null
null
pythoncompvision/pycompvision-faces-camera.py
pjgpetecodes/mscognitive
c8954c7a2f0610a755522bcbeac3de07b4a7f49f
[ "MIT" ]
null
null
null
pythoncompvision/pycompvision-faces-camera.py
pjgpetecodes/mscognitive
c8954c7a2f0610a755522bcbeac3de07b4a7f49f
[ "MIT" ]
null
null
null
from azure.cognitiveservices.vision.computervision import ComputerVisionClient from azure.cognitiveservices.vision.computervision.models import TextOperationStatusCodes from azure.cognitiveservices.vision.computervision.models import TextRecognitionMode from azure.cognitiveservices.vision.computervision.models import V...
40.376923
172
0.562012
e8ead88ba4a68cf3e11f059dc5809bfbdeefc5d2
4,030
py
Python
setup.py
lnielsen/asclepias-broker
82dbc20e42e079520f33bf4e32078e3a88eac5f6
[ "MIT" ]
null
null
null
setup.py
lnielsen/asclepias-broker
82dbc20e42e079520f33bf4e32078e3a88eac5f6
[ "MIT" ]
null
null
null
setup.py
lnielsen/asclepias-broker
82dbc20e42e079520f33bf4e32078e3a88eac5f6
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2018 CERN. # Copyright (c) 2017 Thomas P. Robitaille. # # Asclepias Broker is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """Scholarly link broker for the Asclepias project.""" import os fro...
28.58156
77
0.615633