hexsha
stringlengths
40
40
size
int64
2
1.02M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
245
max_stars_repo_name
stringlengths
6
130
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
245
max_issues_repo_name
stringlengths
6
130
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
245
max_forks_repo_name
stringlengths
6
130
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
2
1.02M
avg_line_length
float64
1
958k
max_line_length
int64
1
987k
alphanum_fraction
float64
0
1
content_no_comment
stringlengths
0
1.01M
is_comment_constant_removed
bool
2 classes
is_sharp_comment_removed
bool
1 class
1c2cb729a908d342f3ee9e0af387a71cf22e743f
24,354
py
Python
lib/galaxy/managers/users.py
ashvark/galaxy
71d315cf3692b4a42fb684395a519d53f360ec92
[ "CC-BY-3.0" ]
1
2019-07-27T19:30:55.000Z
2019-07-27T19:30:55.000Z
lib/galaxy/managers/users.py
ashvark/galaxy
71d315cf3692b4a42fb684395a519d53f360ec92
[ "CC-BY-3.0" ]
2
2019-08-19T07:43:52.000Z
2022-03-02T04:46:54.000Z
lib/galaxy/managers/users.py
ashvark/galaxy
71d315cf3692b4a42fb684395a519d53f360ec92
[ "CC-BY-3.0" ]
1
2019-03-21T16:35:07.000Z
2019-03-21T16:35:07.000Z
""" Manager and Serializer for Users. """ import logging import random import socket from datetime import datetime from markupsafe import escape from sqlalchemy import and_, desc, exc, func, true from galaxy import ( exceptions, model, util ) from galaxy.managers import ( api_keys, base, delet...
42.207972
402
0.61686
import logging import random import socket from datetime import datetime from markupsafe import escape from sqlalchemy import and_, desc, exc, func, true from galaxy import ( exceptions, model, util ) from galaxy.managers import ( api_keys, base, deletable ) from galaxy.security.validate_user_...
true
true
1c2cb830d024d7ea119b1306188a13f8ae5948df
2,779
py
Python
aoc_cas/aoc2020/day11.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
1
2020-11-30T19:17:50.000Z
2020-11-30T19:17:50.000Z
aoc_cas/aoc2020/day11.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
null
null
null
aoc_cas/aoc2020/day11.py
TedCassirer/advent-of-code
fb87dfdbb48b44f864337750aa58a809dcf72392
[ "MIT" ]
null
null
null
FLOOR = "." EMPTY = "L" OCCUPIED = "#" def tick(grid, rule, seatsToConnected): Y, X = len(grid), len(grid[0]) newGrid = [row.copy() for row in grid] totalSeatOccupied = 0 for coord, connected in seatsToConnected.items(): nearbyOccupied = sum(grid[y][x] == OCCUPIED for y, x in connected) ...
30.877778
86
0.528967
FLOOR = "." EMPTY = "L" OCCUPIED = "#" def tick(grid, rule, seatsToConnected): Y, X = len(grid), len(grid[0]) newGrid = [row.copy() for row in grid] totalSeatOccupied = 0 for coord, connected in seatsToConnected.items(): nearbyOccupied = sum(grid[y][x] == OCCUPIED for y, x in connected) ...
true
true
1c2cb8c075809655ec7ef0f7be5a20ec98d758c7
117
py
Python
python_teste/python_aulas/aula_25.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
1
2020-07-27T14:18:08.000Z
2020-07-27T14:18:08.000Z
python_teste/python_aulas/aula_25.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
python_teste/python_aulas/aula_25.py
BrunoDantasMoreira/projectsPython
bd73ab0b3c067456407f227ed2ece42e7f21ddfc
[ "MIT" ]
null
null
null
nome = str(input('Qual seu nome completo? ')).strip() print('Seu nome tem Silva? {}'.format('SILVA' in nome.upper()))
58.5
63
0.666667
nome = str(input('Qual seu nome completo? ')).strip() print('Seu nome tem Silva? {}'.format('SILVA' in nome.upper()))
true
true
1c2cb8e49b96fe48c28fbd234c1b58fd0fec13be
58
py
Python
app/routes/__init__.py
Luca-A-Magalhaes/himcd
56c939bb077485adb8a75b37bf0655e1087bbfa4
[ "MIT" ]
2
2021-02-15T21:02:12.000Z
2021-10-14T19:05:34.000Z
app/routes/__init__.py
Luca-A-Magalhaes/himcd
56c939bb077485adb8a75b37bf0655e1087bbfa4
[ "MIT" ]
null
null
null
app/routes/__init__.py
Luca-A-Magalhaes/himcd
56c939bb077485adb8a75b37bf0655e1087bbfa4
[ "MIT" ]
null
null
null
from app.routes.api import * from app.routes.page import *
29
29
0.775862
from app.routes.api import * from app.routes.page import *
true
true
1c2cb9bd63e02cac23d2ce815fd9f657d9817cc4
254
py
Python
manage.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
1
2020-04-20T05:37:09.000Z
2020-04-20T05:37:09.000Z
manage.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
23
2019-03-13T10:54:36.000Z
2022-03-11T23:33:59.000Z
manage.py
davidjrichardson/toucans
7446b78ec2a09ff90eb83d4a78638c909deb06e1
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "toucans.settings.dev") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
23.090909
75
0.771654
import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "toucans.settings.dev") from django.core.management import execute_from_command_line execute_from_command_line(sys.argv)
true
true
1c2cba610a91053010dfd5163babc396c61a094a
3,579
py
Python
PyFinance/main.py
allangbr/PyFinance
58d236259b232992bec8afe0ebcae4caae103fe3
[ "MIT" ]
1
2021-01-20T17:39:47.000Z
2021-01-20T17:39:47.000Z
PyFinance/main.py
allangbr/PyFinance
58d236259b232992bec8afe0ebcae4caae103fe3
[ "MIT" ]
null
null
null
PyFinance/main.py
allangbr/PyFinance
58d236259b232992bec8afe0ebcae4caae103fe3
[ "MIT" ]
null
null
null
import funcoes as func func.verificarArquivoReceitas() func.verificarArquivoDespesas() func.verificarArquivoPagamentos() func.verificarArquivoCarteira() func.verificarArquivoContas() func.verificarArquivoSaques() func.verificarArquivoDepositos() func.verificarArquivoTransferencias() resp = "" while resp != "0": res...
28.862903
77
0.822856
import funcoes as func func.verificarArquivoReceitas() func.verificarArquivoDespesas() func.verificarArquivoPagamentos() func.verificarArquivoCarteira() func.verificarArquivoContas() func.verificarArquivoSaques() func.verificarArquivoDepositos() func.verificarArquivoTransferencias() resp = "" while resp != "0": res...
true
true
1c2cbb99091c9b3b0b32f4456810926200fcb2db
5,545
py
Python
zkSNARK/my_pysnark/zkinterface/Circuit.py
grakshith/zk-priv-vote
648c1d8c90ea67ffc480376840abcf258810991e
[ "MIT" ]
null
null
null
zkSNARK/my_pysnark/zkinterface/Circuit.py
grakshith/zk-priv-vote
648c1d8c90ea67ffc480376840abcf258810991e
[ "MIT" ]
null
null
null
zkSNARK/my_pysnark/zkinterface/Circuit.py
grakshith/zk-priv-vote
648c1d8c90ea67ffc480376840abcf258810991e
[ "MIT" ]
1
2021-03-01T08:41:35.000Z
2021-03-01T08:41:35.000Z
# automatically generated by the FlatBuffers compiler, do not modify # namespace: zkinterface import flatbuffers # /// A description of a circuit or sub-circuit. # /// This can be a complete circuit ready for proving, # /// or a part of a circuit being built. class Circuit(object): __slots__ = ['_tab'] @cla...
42.984496
157
0.692516
import flatbuffers class Circuit(object): __slots__ = ['_tab'] @classmethod def GetRootAsCircuit(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = Circuit() x.Init(buf, n + offset) return x def Init(self, buf, pos): ...
true
true
1c2cbbd49f12b2029d185b0b136b5281a6fe2462
132
py
Python
tests/all.py
MacHu-GWU/docfly-project
9fdba29290d6b856a6b42dc4194f937d3e1e9326
[ "MIT" ]
27
2016-05-31T20:24:24.000Z
2021-01-13T07:06:54.000Z
tests/s4_api/all.py
MacHu-GWU/learn_mongoengine-project
abad18032e8183859c12dc0b08942a96641538fe
[ "MIT" ]
2
2018-01-31T19:32:03.000Z
2018-01-31T20:32:33.000Z
tests/all.py
MacHu-GWU/picage-project
d5172b79c4561a553bc608da13405d8f85e20be8
[ "MIT" ]
18
2016-09-02T09:56:46.000Z
2019-05-08T02:41:45.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- if __name__ == "__main__": import pytest pytest.main(["-s", "--tb=native"])
16.5
38
0.560606
if __name__ == "__main__": import pytest pytest.main(["-s", "--tb=native"])
true
true
1c2cbca8359841579ae49506c2d559490cd66d1a
709
py
Python
src/ContinuousTimeMarkovModel/generators/uniform_random.py
vamsikk9/ContinuousTimeMarkovModel
10212d8ee7054fccfc31b9a592eef7eba8c8be5a
[ "MIT" ]
20
2015-12-11T22:23:03.000Z
2021-08-10T22:56:47.000Z
src/ContinuousTimeMarkovModel/generators/uniform_random.py
mac-kim/ContinuousTimeMarkovModel
10212d8ee7054fccfc31b9a592eef7eba8c8be5a
[ "MIT" ]
3
2017-09-08T22:15:07.000Z
2018-03-06T19:23:49.000Z
src/ContinuousTimeMarkovModel/generators/uniform_random.py
mac-kim/ContinuousTimeMarkovModel
10212d8ee7054fccfc31b9a592eef7eba8c8be5a
[ "MIT" ]
11
2015-11-03T02:15:33.000Z
2022-01-30T17:04:06.000Z
""" Sample uniform random generator """ __author__ = "Luca Foschini" __maintainer__ = "Luca Foschini" __email__ = "luca@evidation.com" def parse_args(): parser = argparse.ArgumentParser(description='Generates a sequence of N random numbers between 1 and K') parser.add_argument("--length", help = "Length of t...
25.321429
108
0.67842
""" Sample uniform random generator """ __author__ = "Luca Foschini" __maintainer__ = "Luca Foschini" __email__ = "luca@evidation.com" def parse_args(): parser = argparse.ArgumentParser(description='Generates a sequence of N random numbers between 1 and K') parser.add_argument("--length", help = "Length of t...
false
true
1c2cbdf0a461ff50bc83d8475b0b5a81c5dc8076
87,704
py
Python
pysnmp/RLE-FALCON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/RLE-FALCON-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/RLE-FALCON-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 RLE-FALCON-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RLE-FALCON-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:49:33 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2...
130.511905
10,128
0.764013
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, ConstraintsUnion, ValueRangeConstraint, SingleValueConstraint, ConstraintsIntersection = mibBuild...
true
true
1c2cbe68ab282adbdc53a934704dba7d236fc71d
177
py
Python
pyeccodes/defs/mars/grib_enfh_icp_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
7
2020-04-14T09:41:17.000Z
2021-08-06T09:38:19.000Z
pyeccodes/defs/mars/grib_enfh_pf_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
null
null
null
pyeccodes/defs/mars/grib_enfh_pf_def.py
ecmwf/pyeccodes
dce2c72d3adcc0cb801731366be53327ce13a00b
[ "Apache-2.0" ]
3
2020-04-30T12:44:48.000Z
2020-12-15T08:40:26.000Z
import pyeccodes.accessors as _ def load(h): h.alias('mars.hdate', 'dataDate') h.alias('mars.date', 'referenceDate') h.alias('mars.number', 'perturbationNumber')
19.666667
48
0.672316
import pyeccodes.accessors as _ def load(h): h.alias('mars.hdate', 'dataDate') h.alias('mars.date', 'referenceDate') h.alias('mars.number', 'perturbationNumber')
true
true
1c2cbedcb423f26700da2934e9ec94f26ab289ff
99,243
py
Python
airflow/providers/google/cloud/operators/bigquery.py
pchico83/airflow
e3e8f502fe318862fed0795141e3d8281e283e6b
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
1
2020-05-28T13:30:38.000Z
2020-05-28T13:30:38.000Z
airflow/providers/google/cloud/operators/bigquery.py
Sri-nidhi/Airflow
86ad628158eb728e56c817eea2bea4ddcaa571c2
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
airflow/providers/google/cloud/operators/bigquery.py
Sri-nidhi/Airflow
86ad628158eb728e56c817eea2bea4ddcaa571c2
[ "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0", "BSD-3-Clause" ]
2
2021-05-05T07:36:36.000Z
2021-11-10T17:32:39.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
42.520566
109
0.669357
import enum import hashlib import json import re import uuid import warnings from datetime import datetime from typing import Any, Dict, Iterable, List, Optional, Sequence, Set, SupportsAbs, Union import attr from google.api_core.exceptions import Conflict from google.cloud.bigquery import TableRefe...
true
true
1c2cbf15826a996a1947210df20821f4e3e41bb5
840
py
Python
migrations/0021_auto_20160910_2144.py
jrandson/RememberTheCheese
2d5d6752046650106bbf3e7e9c20c9efad9e700d
[ "MIT" ]
null
null
null
migrations/0021_auto_20160910_2144.py
jrandson/RememberTheCheese
2d5d6752046650106bbf3e7e9c20c9efad9e700d
[ "MIT" ]
null
null
null
migrations/0021_auto_20160910_2144.py
jrandson/RememberTheCheese
2d5d6752046650106bbf3e7e9c20c9efad9e700d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-09-10 21:44 from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('rememberTheCheese', '0020_auto_20160910_2...
30
136
0.641667
from __future__ import unicode_literals import datetime from django.db import migrations, models from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('rememberTheCheese', '0020_auto_20160910_2140'), ] operations = [ migrations.AlterField( ...
true
true
1c2cbf4cdf2f8864641caba9691bf5de28a27646
1,643
py
Python
src/larcv3/app/imagemod/test/test_CropROI.py
zhulcher/larcv3
26d1ad33f0c27ddf6bb2c56bc0238aeaddcb772b
[ "MIT" ]
14
2017-10-19T15:08:29.000Z
2021-03-31T21:21:07.000Z
src/larcv3/app/imagemod/test/test_CropROI.py
zhulcher/larcv3
26d1ad33f0c27ddf6bb2c56bc0238aeaddcb772b
[ "MIT" ]
34
2019-05-15T13:33:10.000Z
2022-03-22T17:54:49.000Z
src/larcv3/app/imagemod/test/test_CropROI.py
zhulcher/larcv3
26d1ad33f0c27ddf6bb2c56bc0238aeaddcb772b
[ "MIT" ]
16
2017-12-07T12:04:40.000Z
2021-11-15T00:53:31.000Z
from larcv import larcv from colored_msg import colored_msg as cmsg import os, sys larcv.logger.force_level(0) # # Constants # MSG_LEVEL=larcv.msg.kERROR if 'debug' in sys.argv: MSG_LEVEL = larcv.msg.kDEBUG if 'info' in sys.argv: MSG_LEVEL = larcv.msg.kINFO OUT_FNAME="croproi.root" NUM_EVENT=1 ERROR_FILE_EXI...
24.893939
69
0.685332
from larcv import larcv from colored_msg import colored_msg as cmsg import os, sys larcv.logger.force_level(0) MSG_LEVEL=larcv.msg.kERROR if 'debug' in sys.argv: MSG_LEVEL = larcv.msg.kDEBUG if 'info' in sys.argv: MSG_LEVEL = larcv.msg.kINFO OUT_FNAME="croproi.root" NUM_EVENT=1 ERROR_FILE_EXIST = 1 E...
true
true
1c2cc00dcbadfc3b16eb935075aa55c13af58b40
259
py
Python
douban/douban/__init__.py
fourierrr/Crawler
63abc990cf5d1ee8fd3027c9c5f609e98c4fa06b
[ "Apache-2.0" ]
null
null
null
douban/douban/__init__.py
fourierrr/Crawler
63abc990cf5d1ee8fd3027c9c5f609e98c4fa06b
[ "Apache-2.0" ]
null
null
null
douban/douban/__init__.py
fourierrr/Crawler
63abc990cf5d1ee8fd3027c9c5f609e98c4fa06b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Nessaj # @Date: 2018-04-04 23:08:36 # @Last Modified by: Nessaj # @Last Modified time: 2018-04-07 11:38:10 BOT_NAME = 'douban' SPIDER_MODULES = ['douban.spiders'] NEWSPIDER_MODULE = 'douban.spiders' DOWNLOAD_DELAY = 2
21.583333
42
0.675676
BOT_NAME = 'douban' SPIDER_MODULES = ['douban.spiders'] NEWSPIDER_MODULE = 'douban.spiders' DOWNLOAD_DELAY = 2
true
true
1c2cc134d84ed2afa98d398383c927965b9c3b0e
1,183
py
Python
src/japronto/response/py.py
devblack/japronto
3016bd659047c76aa8f4431d304ba678d4c12a7f
[ "MIT" ]
1
2021-08-18T05:42:12.000Z
2021-08-18T05:42:12.000Z
src/japronto/response/py.py
devblack/japronto
3016bd659047c76aa8f4431d304ba678d4c12a7f
[ "MIT" ]
null
null
null
src/japronto/response/py.py
devblack/japronto
3016bd659047c76aa8f4431d304ba678d4c12a7f
[ "MIT" ]
null
null
null
_responses = None def factory(status_code=200, text='', mime_type='text/plain', encoding='utf-8'): global _responses if _responses is None: _responses = [Response() for _ in range(100)] response = _responses.pop() response.status_code = status_code response.mime_type = mime_t...
26.886364
82
0.602705
_responses = None def factory(status_code=200, text='', mime_type='text/plain', encoding='utf-8'): global _responses if _responses is None: _responses = [Response() for _ in range(100)] response = _responses.pop() response.status_code = status_code response.mime_type = mime_t...
true
true
1c2cc168d3eec7f525221d461b8001bccd8f43a1
64,551
py
Python
Tensorflow/labelImg/labelImg.py
KevzPeter/Signify-Sign-Language-Speech-Converter
facfbb33ab2540e26124e3ca96142caaa57480e3
[ "MIT" ]
null
null
null
Tensorflow/labelImg/labelImg.py
KevzPeter/Signify-Sign-Language-Speech-Converter
facfbb33ab2540e26124e3ca96142caaa57480e3
[ "MIT" ]
null
null
null
Tensorflow/labelImg/labelImg.py
KevzPeter/Signify-Sign-Language-Speech-Converter
facfbb33ab2540e26124e3ca96142caaa57480e3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import argparse import codecs import distutils.spawn import os.path import platform import re import sys import subprocess from functools import partial from collections import defaultdict try: from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.Qt...
40.118707
169
0.6102
import argparse import codecs import distutils.spawn import os.path import platform import re import sys import subprocess from functools import partial from collections import defaultdict try: from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * except ImportError: ...
true
true
1c2cc1ba216c583d4886860a8ada7e287c0932c6
13,343
py
Python
tensorflow_datasets/translate/opus.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
1
2020-10-11T19:15:49.000Z
2020-10-11T19:15:49.000Z
tensorflow_datasets/translate/opus.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
null
null
null
tensorflow_datasets/translate/opus.py
ChAnYaNG97/datasets
0a45e2ea98716d325fc1c5e5494f2575f3bdb908
[ "Apache-2.0" ]
1
2020-08-03T20:19:12.000Z
2020-08-03T20:19:12.000Z
# coding=utf-8 # Copyright 2020 The TensorFlow Datasets 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 appl...
51.717054
1,652
0.562092
import os from absl import logging import tensorflow.compat.v2 as tf import tensorflow_datasets.public_api as tfds _CITATION = """ @inproceedings{Tiedemann2012ParallelData, author = {Tiedemann, J}, title = {Parallel Data, Tools and Interfaces in OPUS}, booktitle = {LREC} year = {2012}} """ _DE...
true
true
1c2cc24b8fafab54aaa4c0912bcd55b0fd7489ec
14,237
py
Python
pants-plugins/src/python/internal_backend/sitegen/tasks/sitegen.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
1
2018-12-10T21:31:02.000Z
2018-12-10T21:31:02.000Z
pants-plugins/src/python/internal_backend/sitegen/tasks/sitegen.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
2
2016-10-13T21:37:42.000Z
2018-07-20T20:14:33.000Z
pants-plugins/src/python/internal_backend/sitegen/tasks/sitegen.py
AllClearID/pants
c4fdf00a3bdf9f26f876e85c46909d0729f7132c
[ "Apache-2.0" ]
1
2018-03-08T22:21:44.000Z
2018-03-08T22:21:44.000Z
# coding=utf-8 # Copyright 2014 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 collections i...
35.240099
144
0.667416
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import collections import json import os import re import shutil from datetime import datetime from pystache import Renderer from six.moves import range from pan...
true
true
1c2cc2599266bdbbccd6dcc6f5d4e36a7d6f337b
498
py
Python
tests/integration_tests/contours_tests/test_reverse.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
7
2020-05-07T08:13:44.000Z
2021-12-17T07:33:51.000Z
tests/integration_tests/contours_tests/test_reverse.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
17
2019-11-29T23:17:26.000Z
2020-12-20T15:47:17.000Z
tests/integration_tests/contours_tests/test_reverse.py
skrat/martinez
86db48324cb50ecb52be8ab2e4278a6d5cdd562b
[ "MIT" ]
1
2020-12-17T22:44:21.000Z
2020-12-17T22:44:21.000Z
from typing import Tuple from hypothesis import given from tests.bind_tests.hints import BoundContour from tests.integration_tests.utils import are_bound_ported_contours_equal from tests.port_tests.hints import PortedContour from . import strategies @given(strategies.contours_pairs) def test_basic(contours_pair: Tu...
26.210526
74
0.813253
from typing import Tuple from hypothesis import given from tests.bind_tests.hints import BoundContour from tests.integration_tests.utils import are_bound_ported_contours_equal from tests.port_tests.hints import PortedContour from . import strategies @given(strategies.contours_pairs) def test_basic(contours_pair: Tu...
true
true
1c2cc40caa7a9f62496b4447c40f1d27ede16221
984
py
Python
sdks/bkapi-client-core/tests/conftest.py
shabbywu/bkpaas-python-sdk
a9422906707429454ff162f7e39a697260a63d6c
[ "MIT" ]
17
2021-08-03T03:15:35.000Z
2022-03-18T06:10:04.000Z
sdks/bkapi-client-core/tests/conftest.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
7
2021-08-03T07:10:12.000Z
2022-03-23T04:47:22.000Z
sdks/bkapi-client-core/tests/conftest.py
piglei/bkpaas-python-sdk
3dfea8be5702ccea1228691c6c1c3e87a27238d2
[ "MIT" ]
9
2021-08-03T03:20:36.000Z
2022-03-08T13:47:50.000Z
# -*- coding: utf-8 -*- """ * TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-蓝鲸 PaaS 平台(BlueKing-PaaS) available. * Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the "License"); you may not use this file except in co...
41
118
0.769309
import os import pytest from bkapi_client_core.config import settings os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.django_settings") @pytest.fixture(autouse=True) def core_settings(): settings.reset() return settings
true
true
1c2cc47dddb6be2c5055de2dde433d58cdc9780a
11,207
py
Python
yt_dlp/extractor/animelab.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
1
2022-03-26T15:43:50.000Z
2022-03-26T15:43:50.000Z
yt_dlp/extractor/animelab.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
null
null
null
yt_dlp/extractor/animelab.py
jeroenj/yt-dlp
11078c6d571673a0f09e21933f4ad1e6fcc35456
[ "Unlicense" ]
2
2022-01-05T08:23:25.000Z
2022-03-06T21:33:37.000Z
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, urlencode_postdata, int_or_none, str_or_none, determine_ext, ) from ..compat import compat_HTTPError class AnimeLabBaseIE(InfoExtractor): _LOGIN_URL = 'https://www...
40.168459
170
0.563309
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, urlencode_postdata, int_or_none, str_or_none, determine_ext, ) from ..compat import compat_HTTPError class AnimeLabBaseIE(InfoExtractor): _LOGIN_URL = 'https://www.animelab.com/l...
true
true
1c2cc70c8a4b2ec67143b45dcd2223f54ae38d97
6,369
py
Python
fHDHR_web/api/tuners.py
deathbybandaid/fHDHR_NewsOn
06d205a3ca677b88fa93b9b7503465aed1838c6b
[ "WTFPL" ]
2
2021-11-21T18:45:35.000Z
2022-01-11T16:11:48.000Z
fHDHR_web/api/tuners.py
deathbybandaid/fHDHR_NewsOn
06d205a3ca677b88fa93b9b7503465aed1838c6b
[ "WTFPL" ]
null
null
null
fHDHR_web/api/tuners.py
deathbybandaid/fHDHR_NewsOn
06d205a3ca677b88fa93b9b7503465aed1838c6b
[ "WTFPL" ]
null
null
null
from flask import Response, request, redirect, abort, stream_with_context, session import urllib.parse import uuid import json from fHDHR.exceptions import TunerError class Tuners(): endpoints = ["/api/tuners"] endpoint_name = "api_tuners" endpoint_methods = ["GET", "POST"] def __init__(self, fhdhr)...
43.326531
136
0.576857
from flask import Response, request, redirect, abort, stream_with_context, session import urllib.parse import uuid import json from fHDHR.exceptions import TunerError class Tuners(): endpoints = ["/api/tuners"] endpoint_name = "api_tuners" endpoint_methods = ["GET", "POST"] def __init__(self, fhdhr)...
true
true
1c2cc77d829397c44bab480b94841a27a072d9a0
2,969
py
Python
env/Lib/site-packages/github/InputFileContent.py
nitish21/fork-repo-app
78992f061c0e5e46f95858df0fbf8478d1a5c716
[ "MIT" ]
1
2020-08-13T12:21:56.000Z
2020-08-13T12:21:56.000Z
env/Lib/site-packages/github/InputFileContent.py
nitish21/fork-repo-app
78992f061c0e5e46f95858df0fbf8478d1a5c716
[ "MIT" ]
6
2020-12-17T09:37:03.000Z
2020-12-18T04:42:23.000Z
venv/lib/python3.7/site-packages/github/InputFileContent.py
bhaving07/pyup
17ad21a2957c5cce91ad0cf5f75853a3182806d2
[ "MIT" ]
1
2020-08-13T12:21:58.000Z
2020-08-13T12:21:58.000Z
# -*- coding: utf-8 -*- ############################ Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2012 Zearin <zearin@gonk.net> ...
49.483333
80
0.453351
true
true
1c2cc85e2a3657c90e7a5b9afc08c030f80a0c7c
3,447
py
Python
plots/plot_utils_mb.py
jackwilkinson255/mbmpo_master
e9e0eaf542c7895764dcb0bfee28752818124ff2
[ "MIT" ]
28
2018-11-15T14:14:23.000Z
2022-01-10T01:53:43.000Z
plots/plot_utils_mb.py
hongzimao/model_ensemble_meta_learning
8b1351df94dfe530efaff1118022315c8d877774
[ "MIT" ]
3
2019-05-05T23:39:01.000Z
2021-06-15T15:28:06.000Z
plots/plot_utils_mb.py
hongzimao/model_ensemble_meta_learning
8b1351df94dfe530efaff1118022315c8d877774
[ "MIT" ]
14
2018-11-15T16:47:02.000Z
2021-05-28T14:58:01.000Z
import numpy as np from rllab.misc.ext import flatten from pprint import pprint from collections import OrderedDict, defaultdict def filter(exps_data, filters={}): print("before filtering", len(exps_data), 'exps') keep_array = [] if filters: for i, exp in enumerate(exps_data): keep_arra...
40.552941
166
0.575573
import numpy as np from rllab.misc.ext import flatten from pprint import pprint from collections import OrderedDict, defaultdict def filter(exps_data, filters={}): print("before filtering", len(exps_data), 'exps') keep_array = [] if filters: for i, exp in enumerate(exps_data): keep_arra...
true
true
1c2cc94600336b641b10100f3b693833a810a703
2,298
py
Python
setup.py
H-Shay/python-canonicaljson
b28486228619e10530edead41ba59be50bd7aad1
[ "Apache-2.0" ]
27
2015-11-28T21:24:45.000Z
2022-03-04T17:13:04.000Z
setup.py
H-Shay/python-canonicaljson
b28486228619e10530edead41ba59be50bd7aad1
[ "Apache-2.0" ]
36
2016-08-23T19:17:00.000Z
2022-03-04T15:48:37.000Z
setup.py
H-Shay/python-canonicaljson
b28486228619e10530edead41ba59be50bd7aad1
[ "Apache-2.0" ]
12
2016-04-07T10:06:23.000Z
2022-02-28T12:30:35.000Z
#!/usr/bin/env python # Copyright 2015 OpenMarket Ltd # Copyright 2018 New Vector 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 # # U...
32.828571
77
0.681897
from setuptools import setup from codecs import open import os here = os.path.abspath(os.path.dirname(__file__)) def read_file(path_segments): file_path = os.path.join(here, *path_segments) with open(file_path, encoding="utf-8") as f: return f.read() def exec_file(path_segments, na...
true
true
1c2cca35a74332f377244398859324b2bdc9ec2d
3,732
py
Python
tests/test_documentation.py
alisaifee/hug
bfd9b56fb5ce2a8c994219fa5941c28bc7f37bab
[ "MIT" ]
null
null
null
tests/test_documentation.py
alisaifee/hug
bfd9b56fb5ce2a8c994219fa5941c28bc7f37bab
[ "MIT" ]
null
null
null
tests/test_documentation.py
alisaifee/hug
bfd9b56fb5ce2a8c994219fa5941c28bc7f37bab
[ "MIT" ]
null
null
null
"""tests/test_documentation.py. Tests the documentation generation capibilities integrated into Hug Copyright (C) 2015 Timothy Edmund Crosley 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 with...
38.474227
112
0.715702
import sys import json import hug from falcon import Request from falcon.testing import StartResponseMock, create_environ api = sys.modules[__name__] def test_basic_documentation(): @hug.get() def hello_world(): return "Hello World!" @hug.post() def echo(text): return text @hug....
true
true
1c2cca974cf1dcfdfefeff96f2e21d26308fae81
421
py
Python
mme/construct_payload.py
arunprsh/SageMaker-Load-Testing
94c09520f9e8d63a936749af474efbc5de18c719
[ "Apache-2.0" ]
12
2021-01-20T04:35:06.000Z
2022-03-02T14:48:45.000Z
mme/construct_payload.py
C24IO/SageMaker-Load-Testing
f1efbe63f7e7bdfa8c0ea2c13ff544f94231fe8e
[ "Apache-2.0" ]
null
null
null
mme/construct_payload.py
C24IO/SageMaker-Load-Testing
f1efbe63f7e7bdfa8c0ea2c13ff544f94231fe8e
[ "Apache-2.0" ]
3
2021-04-14T18:29:33.000Z
2021-12-08T18:58:12.000Z
headers = 'id,text,filename__v,format__v,size__v,charsize,pages__v' id_ = '31011' text = """Investigational Product Accountability Log """ filename__v = 'foo.docx' format__v = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' size__v = '16290' charsize = '768' pages__v = '1' row = ','.join([...
28.066667
86
0.738717
headers = 'id,text,filename__v,format__v,size__v,charsize,pages__v' id_ = '31011' text = """Investigational Product Accountability Log """ filename__v = 'foo.docx' format__v = 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' size__v = '16290' charsize = '768' pages__v = '1' row = ','.join([...
true
true
1c2ccb41874d89447182b59e9eb3225355995335
756
py
Python
webinspect/__init__.py
hqlian007/AndroidUISpy
58bef1c590182baea0de91b2eecc68c3255a6f72
[ "BSD-3-Clause" ]
null
null
null
webinspect/__init__.py
hqlian007/AndroidUISpy
58bef1c590182baea0de91b2eecc68c3255a6f72
[ "BSD-3-Clause" ]
null
null
null
webinspect/__init__.py
hqlian007/AndroidUISpy
58bef1c590182baea0de91b2eecc68c3255a6f72
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- # # Tencent is pleased to support the open source community by making QTA available. # Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved. # Licensed under the BSD 3-Clause License (the "License"); you may not use this # file except in compliance with the License. Yo...
44.470588
89
0.739418
true
true
1c2ccd2404baa48459d5538ea58cdda8b1dfb0bc
1,318
py
Python
src/xrl/algorithms/minidr/dataset.py
k4ntz/XmodRL
dffb416bcd91010d8075ee1ac00cc4b9a3021967
[ "MIT" ]
null
null
null
src/xrl/algorithms/minidr/dataset.py
k4ntz/XmodRL
dffb416bcd91010d8075ee1ac00cc4b9a3021967
[ "MIT" ]
null
null
null
src/xrl/algorithms/minidr/dataset.py
k4ntz/XmodRL
dffb416bcd91010d8075ee1ac00cc4b9a3021967
[ "MIT" ]
1
2021-11-10T18:09:27.000Z
2021-11-10T18:09:27.000Z
import numpy as np import torch from torch._C import dtype import torch.nn as nn from torch.utils.data import Dataset class ModelDataset(Dataset): def __init__(self, history, history_size): self.h = history #history is passed as list and updated outside self.history_size = history_size def __l...
36.611111
93
0.658574
import numpy as np import torch from torch._C import dtype import torch.nn as nn from torch.utils.data import Dataset class ModelDataset(Dataset): def __init__(self, history, history_size): self.h = history self.history_size = history_size def __len__(self): return self.history_size ...
true
true
1c2cceb046fb9903d31b37fb08da5b9ddd5d1010
1,706
py
Python
profiles_api/migrations/0001_initial.py
Anuj2608/profiles-rest-api
6a717c578918f6d7d39907b331d3517ace5a5fe5
[ "MIT" ]
null
null
null
profiles_api/migrations/0001_initial.py
Anuj2608/profiles-rest-api
6a717c578918f6d7d39907b331d3517ace5a5fe5
[ "MIT" ]
5
2020-06-06T01:54:14.000Z
2021-06-10T20:11:58.000Z
profiles_api/migrations/0001_initial.py
MyNewLearnings2021/profiles-rest-api
6a717c578918f6d7d39907b331d3517ace5a5fe5
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2020-05-14 16:53 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', ...
50.176471
266
0.638921
from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='UserProfile', fields=[ ('id', models.Au...
true
true
1c2ccf214446d9691fe6e4f4dab136343f93bacc
1,377
py
Python
src/Fourteenth Chapter/Example4.py
matthijskrul/ThinkPython
34c1d81f4ef535c32b8b0309b23c7ca37f851606
[ "MIT" ]
null
null
null
src/Fourteenth Chapter/Example4.py
matthijskrul/ThinkPython
34c1d81f4ef535c32b8b0309b23c7ca37f851606
[ "MIT" ]
null
null
null
src/Fourteenth Chapter/Example4.py
matthijskrul/ThinkPython
34c1d81f4ef535c32b8b0309b23c7ca37f851606
[ "MIT" ]
null
null
null
def text_to_words(the_text): """ return a list of words with all punctuation removed, and all in lowercase. """ my_substitutions = the_text.maketrans( # If you find any of these "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\"#$%&()*+,-./:;<=>?@[]^_`{|}~'\\", # Replace them by these ...
28.6875
79
0.615832
def text_to_words(the_text): my_substitutions = the_text.maketrans( "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!\" # Replace them by these "abcdefghijklmnopqrstuvwxyz ") # Translate the text now. cleaned_text = the_text.translate(my_substitutions...
true
true
1c2ccf7cdf5d9fe0d588b25248a61de676a451cb
9,952
py
Python
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/agent_ctrl/utils.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/agent_ctrl/utils.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
4
2020-09-26T01:30:01.000Z
2022-02-10T02:20:35.000Z
reinforcement_learning/rl_deepracer_robomaker_coach_gazebo/src/markov/agent_ctrl/utils.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
7
2020-03-04T22:23:51.000Z
2021-07-13T14:05:46.000Z
'''This module should house utility methods for the agent control classes''' import json import math import logging import markov.agent_ctrl.constants as const from markov.metrics.constants import StepMetrics from markov.agent_ctrl.constants import RewardParam from markov.track_geom.constants import AgentPos, TrackNea...
51.035897
99
0.686194
import json import math import logging import markov.agent_ctrl.constants as const from markov.metrics.constants import StepMetrics from markov.agent_ctrl.constants import RewardParam from markov.track_geom.constants import AgentPos, TrackNearDist, TrackNearPnts from markov.log_handler.logger import Logger from markov...
true
true
1c2cd1474a3b9481174d115859d86e3006790643
8,437
py
Python
libweasyl/libweasyl/images.py
akash143143/weasyl
be42a2313e657e97c4a48432379e37b6a3d4a4af
[ "Apache-2.0" ]
null
null
null
libweasyl/libweasyl/images.py
akash143143/weasyl
be42a2313e657e97c4a48432379e37b6a3d4a4af
[ "Apache-2.0" ]
null
null
null
libweasyl/libweasyl/images.py
akash143143/weasyl
be42a2313e657e97c4a48432379e37b6a3d4a4af
[ "Apache-2.0" ]
null
null
null
""" Image manipulation. This module defines functions which work on sanpera_ ``Image`` objects. .. _sanpera: https://pypi.python.org/pypi/sanpera """ from __future__ import division from sanpera.image import Image from sanpera import geometry from libweasyl.exceptions import ThumbnailingError COVER_SIZE = 1024, ...
29.603509
101
0.633875
from __future__ import division from sanpera.image import Image from sanpera import geometry from libweasyl.exceptions import ThumbnailingError COVER_SIZE = 1024, 3000 THUMB_HEIGHT = 250 read = Image.read from_buffer = Image.from_buffer IMAGE_EXTENSIONS = { b'JPG': '.jpg', b'JPEG': '.jpg', b'PNG'...
true
true
1c2cd14fafa9f48e4ed0479faf1803de1b1978dd
4,715
py
Python
criteo_marketing_transition/models/basic_audience_definition.py
criteo/criteo-python-marketing-transition-sdk
d6d19a23d87ab62eb4810f41490cebab9c72882f
[ "Apache-2.0" ]
null
null
null
criteo_marketing_transition/models/basic_audience_definition.py
criteo/criteo-python-marketing-transition-sdk
d6d19a23d87ab62eb4810f41490cebab9c72882f
[ "Apache-2.0" ]
null
null
null
criteo_marketing_transition/models/basic_audience_definition.py
criteo/criteo-python-marketing-transition-sdk
d6d19a23d87ab62eb4810f41490cebab9c72882f
[ "Apache-2.0" ]
1
2022-02-21T11:16:20.000Z
2022-02-21T11:16:20.000Z
# coding: utf-8 """ Criteo API Transition Swagger This is used to help Criteo clients transition from MAPI to Criteo API # noqa: E501 The version of the OpenAPI document: 1.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class BasicAudienceDef...
27.573099
90
0.572216
import pprint import re import six class BasicAudienceDefinition(object): openapi_types = { 'id': 'str', 'type': 'str', 'attributes': 'AudienceNameDescription' } attribute_map = { 'id': 'id', 'type': 'type', 'attributes': 'attributes' } def...
true
true
1c2cd1c7866b4166b599bfc1f3c0f6cd7966650c
625
py
Python
gnome/gnome2/gedit/plugins.symlink/ViGedit/actions/insert.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
4
2015-03-17T14:36:49.000Z
2019-06-10T09:34:35.000Z
gnome/gnome2/gedit/plugins.symlink/ViGedit/actions/insert.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
null
null
null
gnome/gnome2/gedit/plugins.symlink/ViGedit/actions/insert.py
icebreaker/dotfiles
5c3dc7f981069a728cc6b34ae39cd4c2da1122aa
[ "MIT" ]
1
2019-03-01T13:21:55.000Z
2019-03-01T13:21:55.000Z
def append_After(act): cursor = act.pos.getIter(act) if cursor.ends_line(): act.vibase.doc.insert_at_cursor(" ") else: act.pos.move_Forward(act) return True def insert_BeginLine(act): cursor = act.pos.getIter(act) cursor.backward_sentence_start() act.vibase.doc.place_cur...
26.041667
44
0.6896
def append_After(act): cursor = act.pos.getIter(act) if cursor.ends_line(): act.vibase.doc.insert_at_cursor(" ") else: act.pos.move_Forward(act) return True def insert_BeginLine(act): cursor = act.pos.getIter(act) cursor.backward_sentence_start() act.vibase.doc.place_cur...
true
true
1c2cd1d2776852b9bf6526a221d3934a7740e083
1,023
py
Python
Todoism/todoism/models.py
authetic-x/Flask_Practice
90ca69467cd6de8eb41669d2a87ab072fc11e1c8
[ "MIT" ]
1
2020-07-29T16:46:32.000Z
2020-07-29T16:46:32.000Z
Todoism/todoism/models.py
authetic-x/Flask_Practice
90ca69467cd6de8eb41669d2a87ab072fc11e1c8
[ "MIT" ]
null
null
null
Todoism/todoism/models.py
authetic-x/Flask_Practice
90ca69467cd6de8eb41669d2a87ab072fc11e1c8
[ "MIT" ]
null
null
null
from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from todoism.extensions import db class User(db.Model, UserMixin): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(20), unique=True, index=True) password_hash = db.Col...
31
73
0.71261
from flask_login import UserMixin from werkzeug.security import generate_password_hash, check_password_hash from todoism.extensions import db class User(db.Model, UserMixin): id = db.Column(db.Integer, primary_key=True) username = db.Column(db.String(20), unique=True, index=True) password_hash = db.Col...
true
true
1c2cd22eb76d0c92377d54e89f2dbddf4c8d1416
349
py
Python
glc/cli/subs/c_info.py
evinoca/MyCli
bd6fcb98024c403f9562424f8e8acbacf1380a76
[ "MIT" ]
1
2021-06-08T08:18:21.000Z
2021-06-08T08:18:21.000Z
glc/cli/subs/c_info.py
evinoca/MyCli
bd6fcb98024c403f9562424f8e8acbacf1380a76
[ "MIT" ]
12
2020-05-29T07:08:27.000Z
2022-01-12T22:39:49.000Z
glc/cli/subs/c_info.py
evinoca/MyCli
bd6fcb98024c403f9562424f8e8acbacf1380a76
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals import click @click.command("info", short_help="Display Information.") @click.pass_obj def cli(config): """Show current configuration information.""" click.echo("calling sub cmd info") click.echo(f"Profile: {config.profile} Co...
26.846154
73
0.756447
from __future__ import absolute_import from __future__ import unicode_literals import click @click.command("info", short_help="Display Information.") @click.pass_obj def cli(config): click.echo("calling sub cmd info") click.echo(f"Profile: {config.profile} Config Path: {config.config}")
true
true
1c2cd2936b86008288b582d3f84a4107540549f7
3,442
py
Python
pull-json-to-file.py
guidepointsecurity/googleAPIs
4e7c72956ff3c8d9bfcc8c3fe89aadf8302ed6b2
[ "MIT" ]
3
2015-07-20T14:26:41.000Z
2015-08-08T19:31:54.000Z
pull-json-to-file.py
guidepointsecurity/googleAPIs
4e7c72956ff3c8d9bfcc8c3fe89aadf8302ed6b2
[ "MIT" ]
null
null
null
pull-json-to-file.py
guidepointsecurity/googleAPIs
4e7c72956ff3c8d9bfcc8c3fe89aadf8302ed6b2
[ "MIT" ]
1
2021-04-14T18:55:38.000Z
2021-04-14T18:55:38.000Z
#!/usr/bin/python from oauth2client import client # Google OAuth Client from oauth2client.file import Storage # Google OAuth key container reader import httplib2 # Used for Google OAuth events to get a new Bearer key import urllib2 # URLLIB2 to make the requests to Google's API import json # Used to read...
35.122449
182
0.748402
from oauth2client import client from oauth2client.file import Storage import httplib2 import urllib2 import json # Used to read the JSON output from Google import datetime # Get time data to pull logs from an hour ago import isodate # need to parse dates from the googz import os # file o...
false
true
1c2cd481e5efc64d8c4dadd72d1104ea81e872aa
1,215
py
Python
readSMPS/readCOR.py
siavashtab/readSMPS-Py
41c4c51c59be07a04d13ccf66558961fe5761945
[ "MIT" ]
null
null
null
readSMPS/readCOR.py
siavashtab/readSMPS-Py
41c4c51c59be07a04d13ccf66558961fe5761945
[ "MIT" ]
null
null
null
readSMPS/readCOR.py
siavashtab/readSMPS-Py
41c4c51c59be07a04d13ccf66558961fe5761945
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on May 4 - 2019 ---Based on the 2-stage stochastic program structure ---Assumption: RHS is random ---read cor file (.mps) ---save the distributoin of the random variables and return the ---random variables @author: Siavash Tabrizian - stabrizian@smu.edu """ from gurobipy import * ...
26.413043
64
0.579424
from gurobipy import * class readcor: def __init__(self, name): self.name = name + ".mps" elf): self.mean_model = read(self.name) self.mean_vars = self.mean_model.getVars() self.mean_const = self.mean_model.getConstrs() self.mean_model.optimize() pri...
true
true
1c2cd528ad879234f51f89a48f46337603288a4d
1,744
py
Python
dss_sm_so/sm/log.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
null
null
null
dss_sm_so/sm/log.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
null
null
null
dss_sm_so/sm/log.py
MobileCloudNetworking/dssaas
87b6f7d60ecc397a88326a955b2ddfd3d73205d1
[ "Apache-2.0" ]
1
2018-10-09T06:28:36.000Z
2018-10-09T06:28:36.000Z
# Copyright 2014-2015 Zuercher Hochschule fuer Angewandte Wissenschaften # 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.org/lice...
37.913043
125
0.670872
import logging import graypy from sm.config import CONFIG __author__ = 'andy' def config_logger(log_level=logging.DEBUG): logging.basicConfig(format='%(levelname)s %(asctime)s: \t%(message)s', datefmt='%m/%d/%Y %I:%M:%S %p', log_level=log_level) ...
true
true
1c2cd5d4a84a0e4226675df6df00cb071958c524
15,957
py
Python
analytic/Cod_fuente_raytracing.py
jdlar1/ray_tracing
9a63858ee4918c477532d7484a6b09c87682e6dd
[ "MIT" ]
1
2020-12-28T21:32:23.000Z
2020-12-28T21:32:23.000Z
analytic/Cod_fuente_raytracing.py
jdlar1/ray_tracing
9a63858ee4918c477532d7484a6b09c87682e6dd
[ "MIT" ]
null
null
null
analytic/Cod_fuente_raytracing.py
jdlar1/ray_tracing
9a63858ee4918c477532d7484a6b09c87682e6dd
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Oct 5 18:37:15 2020 @author: Usuario """ from .imagingpath import * from .laserpath import * from .specialtylenses import * from .axicon import * import raytracing.thorlabs as thorlabs import raytracing.eo as eo import raytracing.olympus as olympus import argparse ap = a...
36.514874
144
0.66134
from .imagingpath import * from .laserpath import * from .specialtylenses import * from .axicon import * import raytracing.thorlabs as thorlabs import raytracing.eo as eo import raytracing.olympus as olympus import argparse ap = argparse.ArgumentParser(prog='python -m raytracing') ap.add_argument("-e", "--examples...
true
true
1c2cd63f83042932d56c695913a71a0a5c9a5726
4,588
py
Python
plotting/paper_hyp_robust_imagenetv2.py
saarimrahman/imagenet-testbed
55a867d091c7193225880010853ed2b4b0b73ec9
[ "MIT" ]
69
2020-07-21T01:17:45.000Z
2022-03-24T16:31:32.000Z
plotting/paper_hyp_robust_imagenetv2.py
saarimrahman/imagenet-testbed
55a867d091c7193225880010853ed2b4b0b73ec9
[ "MIT" ]
6
2020-12-07T19:17:05.000Z
2022-02-23T23:39:22.000Z
plotting/paper_hyp_robust_imagenetv2.py
saarimrahman/imagenet-testbed
55a867d091c7193225880010853ed2b4b0b73ec9
[ "MIT" ]
4
2020-10-31T23:51:58.000Z
2022-03-25T06:15:55.000Z
import os from os.path import join, exists import argparse import pathlib from enum import Enum import click import numpy as np import pandas as pd import download_data import dataframe import plotter from model_types import ModelTypes, model_types_map class HypModelTypes(Enum): HYP_ROBUST = ('Hypothetical robu...
37.917355
146
0.683522
import os from os.path import join, exists import argparse import pathlib from enum import Enum import click import numpy as np import pandas as pd import download_data import dataframe import plotter from model_types import ModelTypes, model_types_map class HypModelTypes(Enum): HYP_ROBUST = ('Hypothetical robu...
true
true
1c2cd79fe4e9e8b1785b4603b0c63b98fa2fcab6
1,371
py
Python
config.py
sproctor/photobooth
58cc86a3f984b2c53fdcb994a33678e86551a501
[ "MIT" ]
1
2019-11-20T17:22:17.000Z
2019-11-20T17:22:17.000Z
config.py
sproctor/photobooth
58cc86a3f984b2c53fdcb994a33678e86551a501
[ "MIT" ]
null
null
null
config.py
sproctor/photobooth
58cc86a3f984b2c53fdcb994a33678e86551a501
[ "MIT" ]
null
null
null
#Config settings to change behavior of photo booth file_path = '/home/pi/Pictures/Photobooth/' # path to save images clear_on_startup = False # True will clear previously stored photos as the program launches. False will leave all previous photos. post_online = False # True to upload images. False to store locally only...
85.6875
257
0.723559
file_path = '/home/pi/Pictures/Photobooth/' clear_on_startup = False post_online = False print_photos = True printer_name = 'Canon_SELPHY_CP1300' print_to_pdf = False make_gifs = False hi_res_pics = True camera_iso = False ...
true
true
1c2cd84388f75b4cb816ea1c0019bf785286caa3
43,504
py
Python
lib/network.py
Legogris/electrum-zcl
fcffa73f944c1ee8f89b0a40f3dabc5c5bbfd4ec
[ "MIT" ]
153
2018-02-26T16:22:27.000Z
2020-10-08T09:15:05.000Z
lib/network.py
Legogris/electrum-zcl
fcffa73f944c1ee8f89b0a40f3dabc5c5bbfd4ec
[ "MIT" ]
89
2018-03-03T23:17:11.000Z
2020-07-13T10:19:29.000Z
lib/network.py
Legogris/electrum-zcl
fcffa73f944c1ee8f89b0a40f3dabc5c5bbfd4ec
[ "MIT" ]
30
2018-03-03T13:41:14.000Z
2019-11-01T18:05:07.000Z
# Electrum - Lightweight Bitcoin Client # Copyright (c) 2011-2016 Thomas Voegtlin # # 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 rig...
39.72968
138
0.588796
import time import queue import os import stat import errno import random import re import select from collections import defaultdict import threading import socket import json import socks from . import util from . import bitcoin from .bitcoin import * from .interface import Connection, Interfac...
true
true
1c2cd86cb2a7af4365c15125b12c4689002cab3c
7,771
py
Python
fhirbug/Fhir/Resources/group.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
8
2019-01-06T18:11:20.000Z
2022-02-24T02:06:55.000Z
fhirbug/Fhir/Resources/group.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
5
2019-01-25T14:15:35.000Z
2021-06-01T23:22:41.000Z
fhirbug/Fhir/Resources/group.py
VerdantAI/fhirbug
8a8e2555c0edfeee0a7edbc8d67f2fcb2edd3c2d
[ "MIT" ]
3
2020-10-14T23:09:29.000Z
2021-08-09T19:27:31.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.0-a53ec6ee1b (http://hl7.org/fhir/StructureDefinition/Group) on 2019-01-25. # 2019, SMART Health IT. ## from . import domainresource class Group(domainresource.DomainResource): """ Group of multiple entities. Represents a defined co...
35.162896
116
0.62566
from . import domainresource class Group(domainresource.DomainResource): resource_type = "Group" def __init__(self, jsondict=None, strict=True, **kwargs): self.active = None self.actual = None self.characteristic = None self.code = None self.identifier = No...
true
true
1c2cd9ef28cf6bf76316a9a5fb744ba891bdc63e
5,279
py
Python
pyexamples/moran.py
AndySer37/Draw_CNN_Network
5f8c3a3c602d475de3f6d56613cfd88ab368fc75
[ "MIT" ]
null
null
null
pyexamples/moran.py
AndySer37/Draw_CNN_Network
5f8c3a3c602d475de3f6d56613cfd88ab368fc75
[ "MIT" ]
null
null
null
pyexamples/moran.py
AndySer37/Draw_CNN_Network
5f8c3a3c602d475de3f6d56613cfd88ab368fc75
[ "MIT" ]
null
null
null
import sys sys.path.append('../') from pycore.tikzeng import * from pycore.blocks import * # defined your arch arch = [ to_head( '..' ), to_cor(), to_begin(), to_input('../img/hunts.png' , name="input", width=9, height=6), #block-001 to_Pool(name="pool_b1", offset="(0,0,0)", to="(0,0,0)", wid...
59.988636
148
0.620193
import sys sys.path.append('../') from pycore.tikzeng import * from pycore.blocks import * arch = [ to_head( '..' ), to_cor(), to_begin(), to_input('../img/hunts.png' , name="input", width=9, height=6), to_Pool(name="pool_b1", offset="(0,0,0)", to="(0,0,0)", width=1, height=20, depth=40, op...
true
true
1c2cda42a13e7104efdddd228e460b4ad3ef517f
24
py
Python
testing.py
Ilvcardib69/testing123
3ed02e7e8d7aadf9211d41073f208cc58c5198e4
[ "MIT" ]
null
null
null
testing.py
Ilvcardib69/testing123
3ed02e7e8d7aadf9211d41073f208cc58c5198e4
[ "MIT" ]
null
null
null
testing.py
Ilvcardib69/testing123
3ed02e7e8d7aadf9211d41073f208cc58c5198e4
[ "MIT" ]
null
null
null
class Testing: pass
8
14
0.666667
class Testing: pass
true
true
1c2cdbd1f36593d865777d010c87cac4e9f0238d
6,750
py
Python
mistral/tests/unit/engine/test_reverse_workflow_rerun_cancelled.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
205
2015-06-21T11:51:47.000Z
2022-03-05T04:00:04.000Z
mistral/tests/unit/engine/test_reverse_workflow_rerun_cancelled.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
8
2015-06-23T14:47:58.000Z
2021-01-28T06:06:44.000Z
mistral/tests/unit/engine/test_reverse_workflow_rerun_cancelled.py
shubhamdang/mistral
3c83837f6ce1e4ab74fb519a63e82eaae70f9d2d
[ "Apache-2.0" ]
110
2015-06-14T03:34:38.000Z
2021-11-11T12:12:56.000Z
# Copyright 2016 - Brocade Communications Systems, 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 a...
33.75
78
0.63763
from unittest import mock from oslo_config import cfg from mistral.actions import std_actions from mistral.db.v2 import api as db_api from mistral.services import workbooks as wb_service from mistral.tests.unit.engine import base from mistral.workflow import states from mistral_lib import actions as ml_...
true
true
1c2cdc63782d129ae8916ef7cfc9b2ab641a58c5
3,242
py
Python
train_code/train_crnn/prepare_data.py
mathemusician/ocr_pytorch
07e56f4d240ca76d5cb447c912fef573a0869577
[ "MIT" ]
5
2021-08-23T10:25:48.000Z
2022-01-22T23:03:39.000Z
train_code/train_crnn/prepare_data.py
mathemusician/ocr_pytorch
07e56f4d240ca76d5cb447c912fef573a0869577
[ "MIT" ]
null
null
null
train_code/train_crnn/prepare_data.py
mathemusician/ocr_pytorch
07e56f4d240ca76d5cb447c912fef573a0869577
[ "MIT" ]
2
2021-09-04T11:07:50.000Z
2021-12-12T06:13:21.000Z
""" 1) convert image files to text file 2) transfer characters from text file to pickled file """ import os import config import pickle as pl from typing import Any from pathed import Path, filedir, cwd def make_text_file(image_dir): """ makes text_file.txt which contains file_paths to images and the corr...
23.323741
87
0.62955
import os import config import pickle as pl from typing import Any from pathed import Path, filedir, cwd def make_text_file(image_dir): image_dir = Path(image_dir, custom=True) file_list = [ filename for filename in image_dir.ls() if ((os.path.isfile(image_dir / filename))...
true
true
1c2cdc779d8b1de9fa3d958c94c10c2ddb50fa8c
2,341
py
Python
test/test_model.py
tjingrant/onnx-tf
3412d86238bf99bf4908e829af115693df161988
[ "Apache-2.0" ]
16
2017-10-27T20:07:57.000Z
2021-07-14T02:01:27.000Z
test/test_model.py
tjingrant/onnx-tf
3412d86238bf99bf4908e829af115693df161988
[ "Apache-2.0" ]
3
2017-10-29T04:10:04.000Z
2017-10-31T15:06:20.000Z
test/test_model.py
tjingrant/onnx-tf
3412d86238bf99bf4908e829af115693df161988
[ "Apache-2.0" ]
1
2021-03-18T23:23:23.000Z
2021-03-18T23:23:23.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import numpy as np import tensorflow as tf import onnx from onnx_tf.backend import run_node, prepare from onnx import helper from onnx.onnx_pb2 import Ten...
34.426471
79
0.597608
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import unittest import numpy as np import tensorflow as tf import onnx from onnx_tf.backend import run_node, prepare from onnx import helper from onnx.onnx_pb2 import Ten...
true
true
1c2cdcee8c20701e6b9c30738803954fe5a98f17
2,347
py
Python
Python/lexer/src/tokens.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
Python/lexer/src/tokens.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
Python/lexer/src/tokens.py
wendrewdevelop/Estudos
f75d62574a0455ff35b97d404329e43f12f419fb
[ "MIT" ]
null
null
null
tokens = [ ('{', 'LKEY'), ('}', 'RKEY'), ('[', 'LBRACKETS'), (']', 'RBRACKETS'), ('(', 'LPARENTHESES'), (')', 'RPARENTHESES'), ('+', 'PLUS'), ('-', 'MINUS'), ('/', 'DIVISION'), ('%', 'MODULO'), ('~', 'NOT'), ('=', 'EQUALS'), ('<', 'LT'), ('>', 'GT'), ('<=', 'L...
19.889831
44
0.342991
tokens = [ ('{', 'LKEY'), ('}', 'RKEY'), ('[', 'LBRACKETS'), (']', 'RBRACKETS'), ('(', 'LPARENTHESES'), (')', 'RPARENTHESES'), ('+', 'PLUS'), ('-', 'MINUS'), ('/', 'DIVISION'), ('%', 'MODULO'), ('~', 'NOT'), ('=', 'EQUALS'), ('<', 'LT'), ('>', 'GT'), ('<=', 'L...
true
true
1c2cdd16677c9730abc586127f04cef9da7a2435
5,825
py
Python
server/libs/outputs/output_raspi.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
195
2019-12-26T11:19:27.000Z
2022-03-28T04:20:34.000Z
server/libs/outputs/output_raspi.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
144
2019-09-07T19:10:13.000Z
2022-03-30T07:24:02.000Z
server/libs/outputs/output_raspi.py
teemosauce/rpi-cube
6fd8cff81da5efe87fe4c911ce4b067644ea266f
[ "MIT" ]
51
2019-12-02T00:13:47.000Z
2022-03-29T17:26:47.000Z
from libs.outputs.output import Output # pylint: disable=E0611, E0401 import numpy as np import logging class OutputRaspi(Output): def __init__(self, device): # Call the constructor of the base class. super(OutputRaspi, self).__init__(device) self.logger = logging.getLogger(__name__) ...
50.215517
173
0.647039
from libs.outputs.output import Output import numpy as np import logging class OutputRaspi(Output): def __init__(self, device): super(OutputRaspi, self).__init__(device) self.logger = logging.getLogger(__name__) import _rpi_ws281x as ws output_id = "output_raspi" ...
true
true
1c2cdd4c96a07c86e4063ad6ac2cbf5917e09ecf
6,784
py
Python
bluesky_queueserver/server/server.py
cryos/bluesky-queueserver
26779cfb9795f29718769a0334295101c9c8e928
[ "BSD-3-Clause" ]
null
null
null
bluesky_queueserver/server/server.py
cryos/bluesky-queueserver
26779cfb9795f29718769a0334295101c9c8e928
[ "BSD-3-Clause" ]
null
null
null
bluesky_queueserver/server/server.py
cryos/bluesky-queueserver
26779cfb9795f29718769a0334295101c9c8e928
[ "BSD-3-Clause" ]
null
null
null
import asyncio import logging from enum import Enum import zmq import zmq.asyncio from fastapi import FastAPI, HTTPException logger = logging.getLogger(__name__) """ # The following plans that can be used to test the server http POST http://localhost:8080/add_to_queue plan:='{"name":"count", "args":[["det1", "det2...
30.696833
115
0.667748
import asyncio import logging from enum import Enum import zmq import zmq.asyncio from fastapi import FastAPI, HTTPException logger = logging.getLogger(__name__) class ZMQ_Comm: def __init__(self, zmq_host='localhost', zmq_port='5555'): self._loop = asyncio.get_event_loop() self._ctx ...
true
true
1c2cdd8d2589cf367c8d58ec2633071a4db6a946
3,878
py
Python
karl_markov.py
hawkw/COMINTERNALS
dfa3da4352414e27fa08b0672ec95c65f3807bd5
[ "CC0-1.0" ]
null
null
null
karl_markov.py
hawkw/COMINTERNALS
dfa3da4352414e27fa08b0672ec95c65f3807bd5
[ "CC0-1.0" ]
null
null
null
karl_markov.py
hawkw/COMINTERNALS
dfa3da4352414e27fa08b0672ec95c65f3807bd5
[ "CC0-1.0" ]
null
null
null
import markovify import textwrap import re model_json_path = "karl.json" cite_re = re.compile( r"""([0-9IVXMivx]*[\.\s,;]*(?:[0-9IVXMivx]+[\.\s;,]*c[\.\s;,]*)?[\.\s;,]*(?:(?:(?:t)|(?:Vol)|(?:Book)|(?:Ch))[\.\s,;]+[0-9IVXMivx]+[\.\s;,]*)*[\.\s,]*[p]+(?:[\.\s;,]+[0-9IVXMivx]+[\.\s,;]*)+)""", re.MULTILINE) hyphen_newli...
34.936937
195
0.552347
import markovify import textwrap import re model_json_path = "karl.json" cite_re = re.compile( r"""([0-9IVXMivx]*[\.\s,;]*(?:[0-9IVXMivx]+[\.\s;,]*c[\.\s;,]*)?[\.\s;,]*(?:(?:(?:t)|(?:Vol)|(?:Book)|(?:Ch))[\.\s,;]+[0-9IVXMivx]+[\.\s;,]*)*[\.\s,]*[p]+(?:[\.\s;,]+[0-9IVXMivx]+[\.\s,;]*)+)""", re.MULTILINE) hyphen_newli...
true
true
1c2cddd59cc5334436eae05da35778bc3a6ac137
4,674
py
Python
models/User.py
jacobbieker/smugwrapper
b1ccf198bb6c3c98f7c5dcf77471fad50ca13ae6
[ "MIT" ]
2
2017-12-11T22:33:50.000Z
2021-03-20T23:09:26.000Z
models/User.py
jacobbieker/smugwrapper
b1ccf198bb6c3c98f7c5dcf77471fad50ca13ae6
[ "MIT" ]
10
2018-06-14T18:57:29.000Z
2022-01-06T02:09:26.000Z
models/User.py
jacobbieker/smugwrapper
b1ccf198bb6c3c98f7c5dcf77471fad50ca13ae6
[ "MIT" ]
null
null
null
import http import SmugMug import Image, Album, Folder, Node, UserProfile, AlbumImage class User(object): def __init__(self, name, smugmug=None): self.name = name self.account_status = None self.first_name = "" self.friends_view = False self.image_count = 0 self.is_t...
36.80315
117
0.619812
import http import SmugMug import Image, Album, Folder, Node, UserProfile, AlbumImage class User(object): def __init__(self, name, smugmug=None): self.name = name self.account_status = None self.first_name = "" self.friends_view = False self.image_count = 0 self.is_t...
true
true
1c2cde369b76344112d3b0f62cd45ad785238f20
548
py
Python
python/movedirs.py
fieldingtron/wktvusa.com
42ddfd001decc7c0c45246ec24092f78e0744cf0
[ "MIT" ]
1
2018-11-15T13:14:54.000Z
2018-11-15T13:14:54.000Z
python/movedirs.py
fieldingtron/wktvusa
0e18e217ee68c76d20b6829f20fd5619b48f0e8b
[ "MIT" ]
3
2020-07-17T03:55:37.000Z
2021-05-09T00:07:22.000Z
python/movedirs.py
fieldingtron/wktvusa
0e18e217ee68c76d20b6829f20fd5619b48f0e8b
[ "MIT" ]
null
null
null
import os import shutil path = 'c:\\projects\\hc2\\' path = os.path.join("content", "videos") folders = [] # r=root, d=directories, f = files for r, d, f in os.walk(path): for folder in d: # folders.append(os.path.join(r, folder)) folders.append(folder) print("folder " + folder) o...
26.095238
58
0.580292
import os import shutil path = 'c:\\projects\\hc2\\' path = os.path.join("content", "videos") folders = [] for r, d, f in os.walk(path): for folder in d: folders.append(folder) print("folder " + folder) oldname = os.path.join(r, folder,"index.md") newname = os.path.join...
true
true
1c2cde7f41d93bc9e0314ddb787048325ffe28bd
992
py
Python
diskimager.py
gallimania/lanbackuputil
d873bf852a98dc5c17987e3b6f38d060260a0de4
[ "MIT" ]
1
2020-01-14T06:15:51.000Z
2020-01-14T06:15:51.000Z
diskimager.py
gallimania/lanbackuputil
d873bf852a98dc5c17987e3b6f38d060260a0de4
[ "MIT" ]
1
2018-08-27T03:12:21.000Z
2018-08-27T03:12:21.000Z
diskimager.py
gallimania/netbackuputil
d873bf852a98dc5c17987e3b6f38d060260a0de4
[ "MIT" ]
null
null
null
# Copyright (C) 2018 Garrett Fifer # # This file contains the functions needed to provide to main python file with the ability # create and write ISO image files in order to provide an easy container for backed-up files. # # Begin diskimager.py try: from cStringIO import StringIO as BytesIO except ImportError: fr...
32
101
0.745968
try: from cStringIO import StringIO as BytesIO except ImportError: from io import BytesIO import pycdlib def create_iso_image(): backup_iso = pycdlib.PyCdlib() iso.new() def add_iso_dir(): dir_path = input('Path to directory with files you wish to backup to server: ') iso.add_directory(dir_path...
true
true
1c2cdfc3bee042f498baac38566de655d6a0cdc2
5,117
py
Python
mix_style.py
tien1504/idinvert_pytorch
19999e9945aef4843a464930426a565256863ded
[ "MIT" ]
319
2020-07-21T02:26:55.000Z
2022-03-29T18:12:47.000Z
mix_style.py
tien1504/idinvert_pytorch
19999e9945aef4843a464930426a565256863ded
[ "MIT" ]
29
2020-07-21T03:19:56.000Z
2022-02-15T09:14:56.000Z
mix_style.py
tien1504/idinvert_pytorch
19999e9945aef4843a464930426a565256863ded
[ "MIT" ]
53
2020-07-22T07:47:52.000Z
2022-03-30T15:08:14.000Z
# python 3.6 """Mixes styles with In-domain GAN Inversion. The real images should be first inverted to latent codes with `invert.py`. After that, this script can be used for style mixing. NOTE: This script will mix every `style-content` image pair from style directory to content directory. """ import os import argpa...
41.266129
80
0.693375
import os import argparse from tqdm import tqdm import numpy as np from models.helper import build_generator from utils.logger import setup_logger from utils.editor import mix_style from utils.visualizer import load_image from utils.visualizer import HtmlPageVisualizer def parse_args(): parser = argparse.Argumen...
true
true
1c2ce02887f28d749adfb08b9531827e4142048e
312
py
Python
docs/examples/dns/google/dns_internal_auth.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
1,435
2015-01-07T05:32:51.000Z
2022-03-25T19:39:34.000Z
docs/examples/dns/google/dns_internal_auth.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
1,158
2015-01-04T18:08:42.000Z
2022-03-24T14:34:57.000Z
docs/examples/dns/google/dns_internal_auth.py
zimventures/libcloud
be0765df384f1baccde24539156119856cb96816
[ "Apache-2.0" ]
832
2015-01-05T09:20:21.000Z
2022-03-24T19:22:19.000Z
from libcloud.dns.types import Provider from libcloud.dns.providers import get_driver # This example assumes you are running an instance within Google Compute Engine # in which case you only need to provide the project ID. DNSDriver = get_driver(Provider.GOOGLE) driver = DNSDriver('', '', project='project ID')
44.571429
79
0.791667
from libcloud.dns.types import Provider from libcloud.dns.providers import get_driver DNSDriver = get_driver(Provider.GOOGLE) driver = DNSDriver('', '', project='project ID')
true
true
1c2ce0a24df2ae151ddf420bead8e986e77917b2
7,167
py
Python
src/clld/cliutil.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
32
2015-02-22T02:09:29.000Z
2022-02-18T14:40:16.000Z
src/clld/cliutil.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
199
2015-01-05T11:58:38.000Z
2022-02-22T14:34:52.000Z
src/clld/cliutil.py
blurks/clld
d9900f88af726eb6a4d2668f517d5af23bcc6f9d
[ "MIT" ]
18
2015-01-23T13:00:47.000Z
2022-02-21T16:32:36.000Z
"""Shared functionality for clld console scripts.""" import sys import pathlib import argparse import warnings import functools import importlib import collections from sqlalchemy import engine_from_config from pyramid.paster import get_appsettings, bootstrap from nameparser import HumanName from clldutils.misc import...
33.806604
95
0.619646
import sys import pathlib import argparse import warnings import functools import importlib import collections from sqlalchemy import engine_from_config from pyramid.paster import get_appsettings, bootstrap from nameparser import HumanName from clldutils.misc import slug from clld.db.meta import DBSession, Base from ...
true
true
1c2ce0dd82a785f6abbfad925561a8ddf77a8cb9
3,668
py
Python
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_engress_eip_v2_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_engress_eip_v2_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/update_engress_eip_v2_request.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateEngressEipV2Request: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): ...
26.388489
79
0.56325
import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class UpdateEngressEipV2Request: sensitive_list = [] openapi_types = { 'instance_id': 'str', 'body': 'OpenEngressEipReq' } attribute_map = { 'instance_id': 'instance_id', ...
true
true
1c2ce2462fbe0b2370b982dd9c8330ec8406d551
5,573
py
Python
lightconvpoint/nn/conv_fkaconv.py
valeoai/POCO
c6ab56b1b7f01c51d1bc6987eae0a8c79725e63f
[ "Apache-2.0" ]
13
2022-01-07T07:53:15.000Z
2022-03-31T10:53:43.000Z
lightconvpoint/nn/conv_fkaconv.py
valeoai/POCO
c6ab56b1b7f01c51d1bc6987eae0a8c79725e63f
[ "Apache-2.0" ]
2
2022-02-16T18:58:22.000Z
2022-03-28T11:34:03.000Z
lightconvpoint/nn/conv_fkaconv.py
valeoai/POCO
c6ab56b1b7f01c51d1bc6987eae0a8c79725e63f
[ "Apache-2.0" ]
3
2022-01-25T05:24:31.000Z
2022-03-28T07:17:44.000Z
import torch import torch.nn as nn import torch.nn.functional as F from math import ceil # from lightconvpoint.spatial import knn, sampling_quantized from lightconvpoint.utils.functional import batch_gather import torch class Convolution_FKAConv(torch.nn.Module): def __init__(self, in_channels, out_channels, ker...
37.911565
148
0.570967
import torch import torch.nn as nn import torch.nn.functional as F from math import ceil from lightconvpoint.utils.functional import batch_gather import torch class Convolution_FKAConv(torch.nn.Module): def __init__(self, in_channels, out_channels, kernel_size=16, bias=False, dim=3, kernel_separation=False, ada...
true
true
1c2ce26db0156de6165c1332f32d5a91c6348de4
2,279
py
Python
data/p4VQE/R4/benchmark/startQiskit_noisy12.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy12.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
data/p4VQE/R4/benchmark/startQiskit_noisy12.py
UCLA-SEAL/QDiff
d968cbc47fe926b7f88b4adf10490f1edd6f8819
[ "BSD-3-Clause" ]
null
null
null
# qubit number=3 # total number=7 import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collection...
26.195402
118
0.628346
import numpy as np from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ import networkx as nx from qiskit.visualization import plot_histogram from typing import * from pprint import pprint from math import log2 from collections import Counter from qiskit.tes...
true
true
1c2ce294e199b890881d8682eef9ec7edaf7f4f3
1,822
py
Python
mint/types/unfinished_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
12
2021-08-18T20:53:31.000Z
2022-03-15T21:45:13.000Z
mint/types/unfinished_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
34
2021-08-18T19:12:11.000Z
2022-01-06T17:15:34.000Z
mint/types/unfinished_block.py
sai-genesis/rc1-test
56e565952b283450c8589296f87c31b1c67b8502
[ "Apache-2.0" ]
7
2021-08-18T20:53:34.000Z
2022-03-15T08:37:40.000Z
from dataclasses import dataclass from typing import List, Optional from mint.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from mint.types.blockchain_format.program import SerializedProgram from mint.types.blockchain_format.reward_chain_block import RewardChainBlockUnfinish...
42.372093
104
0.791438
from dataclasses import dataclass from typing import List, Optional from mint.types.blockchain_format.foliage import Foliage, FoliageTransactionBlock, TransactionsInfo from mint.types.blockchain_format.program import SerializedProgram from mint.types.blockchain_format.reward_chain_block import RewardChainBlockUnfinish...
true
true
1c2ce3b36a271a491d36bcea60e375acdecee587
2,926
py
Python
src/probabilistic_models/grammars.py
pfreifer/zxcvbn
22674a65bc6ff56281bdd5415ebdb30bb19811ef
[ "MIT" ]
null
null
null
src/probabilistic_models/grammars.py
pfreifer/zxcvbn
22674a65bc6ff56281bdd5415ebdb30bb19811ef
[ "MIT" ]
null
null
null
src/probabilistic_models/grammars.py
pfreifer/zxcvbn
22674a65bc6ff56281bdd5415ebdb30bb19811ef
[ "MIT" ]
null
null
null
import probabilistic_models.grammar_utils as gru from zxcvbn_functions.frequency_lists import FREQUENCY_LISTS import pickle def build_dict(list): d = dict() for w in list: if w in d: d[w] += 1 else: d[w] = 1 return d FREQUENCY_DICTIONARIES = {} def add_frequen...
28.407767
81
0.55434
import probabilistic_models.grammar_utils as gru from zxcvbn_functions.frequency_lists import FREQUENCY_LISTS import pickle def build_dict(list): d = dict() for w in list: if w in d: d[w] += 1 else: d[w] = 1 return d FREQUENCY_DICTIONARIES = {} def add_frequen...
true
true
1c2ce3fd309b26cb12ed1f9e97e75f11dd12f949
5,089
py
Python
neuro-cli/tests/unit/test_click_utils.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
11
2020-10-11T15:38:11.000Z
2021-11-09T11:29:50.000Z
neuro-cli/tests/unit/test_click_utils.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
611
2020-09-30T21:27:52.000Z
2022-01-10T10:44:44.000Z
neuro-cli/tests/unit/test_click_utils.py
neuro-inc/platform-client-python
012e355249ea900b76f9ce4209fb9d029652f9b2
[ "Apache-2.0" ]
1
2020-10-05T15:10:24.000Z
2020-10-05T15:10:24.000Z
from textwrap import dedent from click.testing import CliRunner from neuro_cli.main import MainGroup from neuro_cli.root import Root from neuro_cli.utils import DeprecatedGroup, command, group def test_print() -> None: @group() def sub_command() -> None: pass @command() async def plain_cmd(...
20.771429
86
0.565927
from textwrap import dedent from click.testing import CliRunner from neuro_cli.main import MainGroup from neuro_cli.root import Root from neuro_cli.utils import DeprecatedGroup, command, group def test_print() -> None: @group() def sub_command() -> None: pass @command() async def plain_cmd(...
true
true
1c2ce440cdcc2c092b20677207323cedbe5e1b4d
5,554
py
Python
data/librispeech.py
Peach-He/deepspeech
ef99c8f3c1eaabc0d5e9b2a7b366d5c0a6456d16
[ "MIT" ]
null
null
null
data/librispeech.py
Peach-He/deepspeech
ef99c8f3c1eaabc0d5e9b2a7b366d5c0a6456d16
[ "MIT" ]
null
null
null
data/librispeech.py
Peach-He/deepspeech
ef99c8f3c1eaabc0d5e9b2a7b366d5c0a6456d16
[ "MIT" ]
null
null
null
import os import wget import tarfile import argparse import subprocess from utils import create_manifest from tqdm import tqdm import shutil parser = argparse.ArgumentParser(description='Processes and downloads LibriSpeech dataset.') parser.add_argument("--target-dir", default='LibriSpeech_dataset/', type=str, help="D...
47.87931
117
0.617213
import os import wget import tarfile import argparse import subprocess from utils import create_manifest from tqdm import tqdm import shutil parser = argparse.ArgumentParser(description='Processes and downloads LibriSpeech dataset.') parser.add_argument("--target-dir", default='LibriSpeech_dataset/', type=str, help="D...
true
true
1c2ce441da030c6da08196c2cdf3f504a68ae65c
47
py
Python
codigofacilito/__init__.py
eduardogpg/codigofacilito_package
f1691f087a0cf567e5f97c939106cc4852d5f6f0
[ "MIT" ]
1
2022-01-13T00:12:54.000Z
2022-01-13T00:12:54.000Z
codigofacilito/__init__.py
eduardogpg/codigofacilito_package
f1691f087a0cf567e5f97c939106cc4852d5f6f0
[ "MIT" ]
null
null
null
codigofacilito/__init__.py
eduardogpg/codigofacilito_package
f1691f087a0cf567e5f97c939106cc4852d5f6f0
[ "MIT" ]
4
2022-01-13T00:29:31.000Z
2022-01-24T23:48:33.000Z
from codigofacilito.workshops import unreleased
47
47
0.914894
from codigofacilito.workshops import unreleased
true
true
1c2ce50f1e76aa809b860bc9c7b496d390f10c10
279
py
Python
Leetcode/921. Minimum Add to Make Parentheses Valid/solution1.py
asanoviskhak/Outtalent
c500e8ad498f76d57eb87a9776a04af7bdda913d
[ "MIT" ]
51
2020-07-12T21:27:47.000Z
2022-02-11T19:25:36.000Z
Leetcode/921. Minimum Add to Make Parentheses Valid/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
null
null
null
Leetcode/921. Minimum Add to Make Parentheses Valid/solution1.py
CrazySquirrel/Outtalent
8a10b23335d8e9f080e5c39715b38bcc2916ff00
[ "MIT" ]
32
2020-07-27T13:54:24.000Z
2021-12-25T18:12:50.000Z
class Solution: def minAddToMakeValid(self, S: str) -> int: result = counter = 0 for c in S: counter += 1 if c == '(' else -1 if counter == -1: counter += 1 result += 1 return result + counter
23.25
47
0.448029
class Solution: def minAddToMakeValid(self, S: str) -> int: result = counter = 0 for c in S: counter += 1 if c == '(' else -1 if counter == -1: counter += 1 result += 1 return result + counter
true
true
1c2ce6145b672cdd2bcd88e082ca1018c3e4ea4d
4,659
py
Python
src/FunctionApps/python/IntakePipeline/fhir.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
3
2022-02-24T18:16:39.000Z
2022-03-29T20:21:41.000Z
src/FunctionApps/python/IntakePipeline/fhir.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
17
2022-02-08T17:13:55.000Z
2022-03-28T16:49:00.000Z
src/FunctionApps/python/IntakePipeline/fhir.py
CDCgov/prime-public-health-data-infrastructure
7e4849c3a486a84e94765bf0023b80261c510c57
[ "Apache-2.0" ]
3
2022-02-27T23:12:50.000Z
2022-03-17T04:51:47.000Z
from datetime import datetime, timezone import json import logging import pathlib import requests from requests.adapters import HTTPAdapter from urllib3 import Retry from azure.core.credentials import AccessToken from azure.identity import DefaultAzureCredential from azure.storage.blob import ContainerClient def get...
36.398438
93
0.68255
from datetime import datetime, timezone import json import logging import pathlib import requests from requests.adapters import HTTPAdapter from urllib3 import Retry from azure.core.credentials import AccessToken from azure.identity import DefaultAzureCredential from azure.storage.blob import ContainerClient def get...
true
true
1c2ce642c0b84948b0a1c1957666b41eb9af6cfb
468
py
Python
corehq/apps/data_dictionary/migrations/0006_caseproperty_group.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2020-05-05T13:10:01.000Z
2020-05-05T13:10:01.000Z
corehq/apps/data_dictionary/migrations/0006_caseproperty_group.py
kkrampa/commcare-hq
d64d7cad98b240325ad669ccc7effb07721b4d44
[ "BSD-3-Clause" ]
1
2019-12-09T14:00:14.000Z
2019-12-09T14:00:14.000Z
corehq/apps/data_dictionary/migrations/0006_caseproperty_group.py
MaciejChoromanski/commcare-hq
fd7f65362d56d73b75a2c20d2afeabbc70876867
[ "BSD-3-Clause" ]
5
2015-11-30T13:12:45.000Z
2019-07-01T19:27:07.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_dictionary', '0005_casetype_fully_generated'), ] operations = [ migrations.AddFi...
22.285714
61
0.641026
from __future__ import unicode_literals from __future__ import absolute_import from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('data_dictionary', '0005_casetype_fully_generated'), ] operations = [ migrations.AddField( model_...
true
true
1c2ce6a0d4c466fc621a437a1b9ff44685129320
1,979
py
Python
src/build/simics/hb-pnor-vpd-preload.py
open-power-op910/hostboot
48cf6f7c9e445cdde756aa290a6defedecf3c95c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/build/simics/hb-pnor-vpd-preload.py
open-power-op910/hostboot
48cf6f7c9e445cdde756aa290a6defedecf3c95c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/build/simics/hb-pnor-vpd-preload.py
open-power-op910/hostboot
48cf6f7c9e445cdde756aa290a6defedecf3c95c
[ "ECL-2.0", "Apache-2.0" ]
1
2019-04-05T13:19:51.000Z
2019-04-05T13:19:51.000Z
# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/build/simics/hb-pnor-vpd-preload.py $ # # OpenPOWER HostBoot Project # # Contributors Listed Below - COPYRIGHT 2012,2017 # [+] International Business Machines Corp. # # # Licensed under the Apache License, Version 2.0 (the "License"); ...
38.803922
160
0.679131
import os,sys import subprocess import shlex toolLoc = os.environ.get("HB_TOOLPATH"); thisSys = os.environ.get("HB_MACHINE").upper(); numProcs = os.environ.get( "NUM_PROCS"); dimmsPerProc = os.environ.get( "DIMMS_PER_PROC"); numCentaurPerProcParm = ""; numCentaurPerProc = "0"; if (thisSys ==...
false
true
1c2ce6bfac193cc81e3a31decba1d40c981bad46
14,385
py
Python
test/functional/mempool_accept.py
Bits-Coin/bits-coin
dd8220018f5582e76d43e8c52bd323524e495d8c
[ "MIT" ]
2
2021-11-17T23:05:13.000Z
2021-11-17T23:05:32.000Z
test/functional/mempool_accept.py
Bits-Coin/bits-coin
dd8220018f5582e76d43e8c52bd323524e495d8c
[ "MIT" ]
null
null
null
test/functional/mempool_accept.py
Bits-Coin/bits-coin
dd8220018f5582e76d43e8c52bd323524e495d8c
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The BitsCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test mempool acceptance of raw transactions.""" from io import BytesIO from test_framework.test_framework ...
48.597973
154
0.64456
from io import BytesIO from test_framework.test_framework import BitsCoinTestFramework from test_framework.messages import ( BIP125_SEQUENCE_NUMBER, COIN, COutPoint, CTransaction, CTxOut, MAX_BLOCK_BASE_SIZE, ) from test_framework.script import ( hash160, CScript, OP_0, OP_E...
true
true
1c2ce766f24df8bf11f59ac9a48bcb2d11b81e6b
24,493
py
Python
src/ros_robodk_post_processors/robodk_post_processors/Comau_C5G_Joints.py
jeritgeorge/ros_robodk_post_processors
dd6fda231c5bcf964bf177b1737dc4b06c27cd33
[ "BSD-3-Clause" ]
null
null
null
src/ros_robodk_post_processors/robodk_post_processors/Comau_C5G_Joints.py
jeritgeorge/ros_robodk_post_processors
dd6fda231c5bcf964bf177b1737dc4b06c27cd33
[ "BSD-3-Clause" ]
null
null
null
src/ros_robodk_post_processors/robodk_post_processors/Comau_C5G_Joints.py
jeritgeorge/ros_robodk_post_processors
dd6fda231c5bcf964bf177b1737dc4b06c27cd33
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 - RoboDK Software S.L. - http://www.robodk.com/ # 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...
41.164706
165
0.548565
SAGE_TP = '''-- Display message on the teach pendant: WIN_DEL ('menu:') -- popup window over window USR1 WIN_POPUP('POP1:', 'USR1:') -- open a lun on window POP1 OPEN FILE lun ('POP1:', 'rw') WRITE lun ('%s', NL) CLOSE FILE lun -- let user read the message DELAY 5...
true
true
1c2ce77bb97a40c4ab8829fd4394cd5dbd6f7523
373
py
Python
core/migrations/0003_alter_address_options.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
1
2022-01-01T21:46:48.000Z
2022-01-01T21:46:48.000Z
core/migrations/0003_alter_address_options.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
null
null
null
core/migrations/0003_alter_address_options.py
Gandabh/E-commerce-Site
8bc4ca85c9cd6f3ed1435e5767aef4ab315df559
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-08-20 15:53 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_address'), ] operations = [ migrations.AlterModelOptions( name='address', options={'verbose_name': 'Address', '...
20.722222
84
0.603217
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('core', '0002_address'), ] operations = [ migrations.AlterModelOptions( name='address', options={'verbose_name': 'Address', 'verbose_name_plural': 'Addresses'}, ), ...
true
true
1c2ce7b37f5d8879fdad3b05ee37439372f0f157
6,635
py
Python
lib/notetaker/days.py
Ghalko/noteTaker
f294dbc5fe0c9073837562e0466292d18fafc1ff
[ "MIT" ]
null
null
null
lib/notetaker/days.py
Ghalko/noteTaker
f294dbc5fe0c9073837562e0466292d18fafc1ff
[ "MIT" ]
null
null
null
lib/notetaker/days.py
Ghalko/noteTaker
f294dbc5fe0c9073837562e0466292d18fafc1ff
[ "MIT" ]
1
2019-09-07T05:31:15.000Z
2019-09-07T05:31:15.000Z
"""Creates a scrolling canvas in which days are separated into their own text boxes of varying sizes for easier date reading and fewer days loaded.""" from Tkinter import (Tk, Frame, Scrollbar, Canvas, Button, Text, WORD, BOTH, VERTICAL, END, Y, NW, RIGHT, LEFT, FALSE, TRUE) import notetaker.ncore...
37.914286
79
0.593971
from Tkinter import (Tk, Frame, Scrollbar, Canvas, Button, Text, WORD, BOTH, VERTICAL, END, Y, NW, RIGHT, LEFT, FALSE, TRUE) import notetaker.ncore as ncore import notetaker.utils as utils import datetime class VerticalScrolledFrame(Frame): def __init__(self, parent, *args, **kw): Fra...
true
true
1c2ce7e1672b943bb64dd2c1a67898c7f6b659b8
3,629
py
Python
examples/colors.py
Doradx/luma.examples
d4641281fe18ffc5cfd6c307c79e7d7fefc36ffa
[ "MIT" ]
null
null
null
examples/colors.py
Doradx/luma.examples
d4641281fe18ffc5cfd6c307c79e7d7fefc36ffa
[ "MIT" ]
null
null
null
examples/colors.py
Doradx/luma.examples
d4641281fe18ffc5cfd6c307c79e7d7fefc36ffa
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2014-18 Richard Hull and contributors # See LICENSE.rst for details. # PYTHON_ARGCOMPLETE_OK """ Color rendering demo. """ import math import time import random import os.path from demo_opts import get_device from luma.core.render import canvas from PIL im...
33.601852
104
0.488013
import math import time import random import os.path from demo_opts import get_device from luma.core.render import canvas from PIL import Image def main(): img_path = os.path.abspath(os.path.join( os.path.dirname(__file__), 'images', 'balloon.png')) balloon = Image.open(img_path) \ .tra...
true
true
1c2ce7feb96ee701287ac30e62477274a15affa0
58,647
py
Python
chia/wallet/wallet_state_manager.py
Hydrangea-Network/hydrangea-blockchain
d15662329958dbdaa9cbd99733ba729f0e74ce54
[ "Apache-2.0" ]
1
2022-03-15T06:41:49.000Z
2022-03-15T06:41:49.000Z
chia/wallet/wallet_state_manager.py
Hydrangea-Network/hydrangea-blockchain
d15662329958dbdaa9cbd99733ba729f0e74ce54
[ "Apache-2.0" ]
null
null
null
chia/wallet/wallet_state_manager.py
Hydrangea-Network/hydrangea-blockchain
d15662329958dbdaa9cbd99733ba729f0e74ce54
[ "Apache-2.0" ]
null
null
null
import asyncio import json import logging import multiprocessing import multiprocessing.context import time from collections import defaultdict from pathlib import Path from secrets import token_bytes from typing import Any, Callable, Dict, List, Optional, Set, Tuple import aiosqlite from blspy import G1Element, Priva...
46.471474
120
0.615939
import asyncio import json import logging import multiprocessing import multiprocessing.context import time from collections import defaultdict from pathlib import Path from secrets import token_bytes from typing import Any, Callable, Dict, List, Optional, Set, Tuple import aiosqlite from blspy import G1Element, Priva...
true
true
1c2ce85606808bea6bdcd71ee1e5b60922899ec9
6,190
py
Python
src/examples/VRGameFog-IFogSim-WL/testConvergence.py
vyk1/YAFS
514f8362c90923fa28f871fcf179b755a9315c47
[ "MIT" ]
58
2018-09-19T12:00:01.000Z
2022-03-28T12:14:32.000Z
src/examples/VRGameFog-IFogSim-WL/testConvergence.py
vyk1/YAFS
514f8362c90923fa28f871fcf179b755a9315c47
[ "MIT" ]
55
2018-03-18T09:58:27.000Z
2022-02-19T16:40:02.000Z
src/examples/VRGameFog-IFogSim-WL/testConvergence.py
vyk1/YAFS
514f8362c90923fa28f871fcf179b755a9315c47
[ "MIT" ]
51
2018-05-30T11:33:10.000Z
2022-03-14T15:37:01.000Z
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Sep 6 16:48:57 2018 @author: isaaclera """ import numpy as np YFAS4 = [11.270442, 11.270623, 11.270012, 11.270021, 11.270031, 11.269538, 11.269547, 11.268429, 11.270591, 11.269940, 11.268374, 11.270021, 11.268418, 11.268944, 11.268985, 11.269444, 11....
15.097561
35
0.794507
import numpy as np YFAS4 = [11.270442, 11.270623, 11.270012, 11.270021, 11.270031, 11.269538, 11.269547, 11.268429, 11.270591, 11.269940, 11.268374, 11.270021, 11.268418, 11.268944, 11.268985, 11.269444, 11.270576, 11.270090, 11.268944, 11.269489, 11.269405, 11.268916, 11.269418, 11.270576, 11.268837, 11.269988, 11...
true
true
1c2ce8ef3f28996eea179c80f2f83131dd92c886
96
py
Python
venv/lib/python3.8/site-packages/jedi/inference/dynamic_params.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/jedi/inference/dynamic_params.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/jedi/inference/dynamic_params.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/76/91/2b/5cae2d2be4d6846ecff635daea2ffbdab1395472b27a018518521826f9
96
96
0.895833
/home/runner/.cache/pip/pool/76/91/2b/5cae2d2be4d6846ecff635daea2ffbdab1395472b27a018518521826f9
false
true
1c2ceabba4122f488ae08dc526fe1f465bea18a9
1,302
py
Python
src/ucar/unidata/idv/resources/python/image.py
slclark/IDV
2d4b857b0f4b42e4cd1059bca2c8a5485baeab57
[ "CNRI-Jython" ]
48
2015-02-22T05:05:01.000Z
2022-03-14T14:23:41.000Z
src/ucar/unidata/idv/resources/python/image.py
slclark/IDV
2d4b857b0f4b42e4cd1059bca2c8a5485baeab57
[ "CNRI-Jython" ]
40
2015-02-09T19:25:29.000Z
2022-02-16T00:21:08.000Z
src/ucar/unidata/idv/resources/python/image.py
slclark/IDV
2d4b857b0f4b42e4cd1059bca2c8a5485baeab57
[ "CNRI-Jython" ]
28
2015-04-03T05:43:00.000Z
2022-01-31T23:41:20.000Z
def makeNavigatedImage (d,ulLat,ulLon,lrLat,lrLon): """This takes a image data object and a lat/lon bounding box and adds a lat/lon domain to the data. Use it in conjunction with a formula: """ from visad import Linear2DSet from visad import RealTupleType ulLat=float(ulLat) ulLon=float(ulLon) lrLa...
37.2
136
0.745776
def makeNavigatedImage (d,ulLat,ulLon,lrLat,lrLon): from visad import Linear2DSet from visad import RealTupleType ulLat=float(ulLat) ulLon=float(ulLon) lrLat=float(lrLat) lrLon=float(lrLon) domain = d.getDomainSet() newDomain = Linear2DSet(RealTupleType.SpatialEarth2DTuple,ulLon,lrLon,domain.getX().g...
true
true
1c2ceacbabd17b9b013f7be8a942911c72c4a22a
19,513
py
Python
google/ads/googleads/v4/services/services/conversion_adjustment_upload_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/services/conversion_adjustment_upload_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
google/ads/googleads/v4/services/services/conversion_adjustment_upload_service/client.py
batardo/google-ads-python
a39748521847e85138fca593f3be2681352ad024
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
41.694444
179
0.641982
from collections import OrderedDict from distutils import util import os import re from typing import Dict, Optional, Sequence, Tuple, Type, Union from google.api_core import client_options as client_options_lib from google.api_core import exceptions from google.api_core import gapic_v1 from goo...
true
true
1c2ceb47acf990e1976742cdc5fdc40fc0cdd355
9,879
py
Python
tools/analysis_tools/confusion_matrix.py
PhilippMarquardt/mmdetection
5979e13f7faea90f4b80079320b93585300c6a4f
[ "Apache-2.0" ]
1
2019-08-18T18:04:21.000Z
2019-08-18T18:04:21.000Z
tools/analysis_tools/confusion_matrix.py
PhilippMarquardt/mmdetection
5979e13f7faea90f4b80079320b93585300c6a4f
[ "Apache-2.0" ]
1
2022-01-06T14:58:44.000Z
2022-01-06T14:58:44.000Z
tools/analysis_tools/confusion_matrix.py
PhilippMarquardt/mmdetection
5979e13f7faea90f4b80079320b93585300c6a4f
[ "Apache-2.0" ]
1
2021-12-13T02:37:50.000Z
2021-12-13T02:37:50.000Z
import argparse import os import matplotlib.pyplot as plt import mmcv import numpy as np from matplotlib.ticker import MultipleLocator from mmcv import Config, DictAction from mmcv.ops import nms from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps from mmdet.datasets import build_dataset from mmdet.utils im...
36.453875
79
0.596012
import argparse import os import matplotlib.pyplot as plt import mmcv import numpy as np from matplotlib.ticker import MultipleLocator from mmcv import Config, DictAction from mmcv.ops import nms from mmdet.core.evaluation.bbox_overlaps import bbox_overlaps from mmdet.datasets import build_dataset from mmdet.utils im...
true
true
1c2cebd45c1f366750dccf8309f4ff80526353ad
129
py
Python
mfi_customization/mfi/patch/set_issue_attachment.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_issue_attachment.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
mfi_customization/mfi/patch/set_issue_attachment.py
anuradha-88/mfi_customization
eb19ed43d0178b461f1d9914d2f7b6b55c9d030c
[ "MIT" ]
null
null
null
import frappe def execute(): for d in frappe.get_all("Task"): task=frappe.get_doc("Task",d.name) task.save()
21.5
42
0.612403
import frappe def execute(): for d in frappe.get_all("Task"): task=frappe.get_doc("Task",d.name) task.save()
true
true
1c2cecb6c89ff9713fb2f8396b5b557db3191585
9,196
py
Python
tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/test_cache_compile_integration.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
1
2021-11-11T14:04:24.000Z
2021-11-11T14:04:24.000Z
tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/test_cache_compile_integration.py
lahosken/pants
1b0340987c9b2eab9411416803c75b80736716e4
[ "Apache-2.0" ]
null
null
null
tests/python/pants_test/backend/jvm/tasks/jvm_compile/java/test_cache_compile_integration.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 colle...
41.053571
100
0.591453
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import os from collections import namedtuple from textwrap import dedent from pants.backend.jvm.tasks.jvm_compile.zinc.zinc_compile import ZincCompile from pants....
true
true
1c2cee02a210635e110ba3cbe538ddc3b51710dd
6,958
py
Python
os_vif/objects/vif.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
os_vif/objects/vif.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
os_vif/objects/vif.py
mail2nsrajesh/os-vif
6a9017d1dcf2a0a4ab8bf35f39d4bfb7cb56027d
[ "Apache-2.0" ]
null
null
null
# 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 # d...
28.4
78
0.672032
from oslo_utils import versionutils from oslo_versionedobjects import base from oslo_versionedobjects import fields from os_vif.objects import base as osv_base from os_vif.objects import fields as osv_fields @base.VersionedObjectRegistry.register class VIFBase(osv_base.VersionedObject, base.ComparableVer...
true
true
1c2cee8f013fa85696748e87d47cd717f7fc700c
328
py
Python
posts/migrations/0006_remove_like_likenumber.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
posts/migrations/0006_remove_like_likenumber.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
posts/migrations/0006_remove_like_likenumber.py
Joe-Sin7h/melodiam
756996464a79a1e2066004d2bcc05c10fbbf3e8e
[ "MIT" ]
null
null
null
# Generated by Django 3.0.7 on 2020-10-30 17:39 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0005_auto_20201006_1833'), ] operations = [ migrations.RemoveField( model_name='like', name='likenumber', )...
18.222222
47
0.591463
from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('posts', '0005_auto_20201006_1833'), ] operations = [ migrations.RemoveField( model_name='like', name='likenumber', ), ]
true
true
1c2ceea6f34c2496fa1ab5886b8a377f67f00059
11,085
py
Python
nova/api/ec2/ec2utils.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
null
null
null
nova/api/ec2/ec2utils.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
null
null
null
nova/api/ec2/ec2utils.py
bopopescu/nova_vmware_compute_driver
60d3936b68030647b9f11970c9e0d060fc286dd9
[ "Apache-2.0" ]
2
2019-07-08T22:12:35.000Z
2020-07-24T08:27:24.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
32.795858
78
0.642129
import re from nova import context from nova import db from nova import exception from nova.network import model as network_model from nova.openstack.common import log as logging from nova.openstack.common import timeutils from nova.openstack.common import uuidutils LOG = logging.getLogger(__name__)...
true
true
1c2ceeb87282ee5345ebdfd72f7fea38d9e08d23
15,567
py
Python
Lib/test/test_ftplib.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
3
2015-09-22T14:04:54.000Z
2021-07-15T07:07:11.000Z
Lib/test/test_ftplib.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
1
2020-09-07T15:33:56.000Z
2020-09-07T15:33:56.000Z
Lib/test/test_ftplib.py
ystk/debian-python2.6
17d77164dc5d5748e54aeaa5adc89ac511fc71ae
[ "PSF-2.0" ]
2
2019-11-24T12:11:50.000Z
2020-12-26T19:00:20.000Z
"""Test script for ftplib module.""" # Modified by Giampaolo Rodola' to test FTP class and IPv6 environment import ftplib import threading import asyncore import asynchat import socket import StringIO from unittest import TestCase from test import test_support from test.test_support import HOST # the dummy data re...
30.404297
82
0.60821
import ftplib import threading import asyncore import asynchat import socket import StringIO from unittest import TestCase from test import test_support from test.test_support import HOST # the dummy data returned by server over the data channel when # RETR, LIST and NLST commands are issued RETR_DATA = 'abcde123...
true
true
1c2cefc327815da69fad35455065f2b7f216bbf5
5,791
py
Python
test/functional/p2p_fingerprint.py
Kozisto/FreedomCoin-Core
ba4f6def338c58616ece13d890393552e657d3f0
[ "MIT" ]
null
null
null
test/functional/p2p_fingerprint.py
Kozisto/FreedomCoin-Core
ba4f6def338c58616ece13d890393552e657d3f0
[ "MIT" ]
1
2022-02-11T23:23:05.000Z
2022-02-11T23:23:05.000Z
test/functional/p2p_fingerprint.py
FreedomCoin-Project/FreedomCoin-Core
46e09320dd9903137433fc71aa9186fa3cdbe866
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various fingerprinting protections. If an stale block more than a month old or its header are requeste...
38.865772
79
0.689
import time from test_framework.blocktools import (create_block, create_coinbase) from test_framework.messages import CInv from test_framework.mininode import ( P2PInterface, msg_headers, msg_block, msg_getdata, msg_getheaders, wait_until, ) from test_framework.test_framework import Freedo...
true
true
1c2cf0936b8b0a5a65d83390990bd28f150f3bcd
3,645
py
Python
vfit/util.py
zorfling/vfit
50f2aec1be45ece00167107ec469a60564645ae0
[ "MIT" ]
17
2020-07-18T17:00:03.000Z
2022-03-13T13:03:09.000Z
vfit/util.py
zorfling/vfit
50f2aec1be45ece00167107ec469a60564645ae0
[ "MIT" ]
11
2020-11-02T19:10:30.000Z
2022-02-25T02:57:31.000Z
vfit/util.py
zorfling/vfit
50f2aec1be45ece00167107ec469a60564645ae0
[ "MIT" ]
6
2020-12-30T00:02:26.000Z
2022-02-25T02:45:01.000Z
PLAT_MAC = 1 PLAT_WINDOWS = 3 ENC_ROMAN = 0 ENC_UNICODE_11 = 1 LANG_ENGLISH = 1033 MACSTYLE = {'Regular': 0, 'Bold': 1, 'Italic': 2, 'Bold Italic': 3} OVERLAP_SIMPLE = 0x40 OVERLAP_COMPOUND = 0x0400 # Removes spaces from a string. def sanitize(string): return string.replace(" ", "") # Produces a unique ID f...
25.669014
79
0.65048
PLAT_MAC = 1 PLAT_WINDOWS = 3 ENC_ROMAN = 0 ENC_UNICODE_11 = 1 LANG_ENGLISH = 1033 MACSTYLE = {'Regular': 0, 'Bold': 1, 'Italic': 2, 'Bold Italic': 3} OVERLAP_SIMPLE = 0x40 OVERLAP_COMPOUND = 0x0400 def sanitize(string): return string.replace(" ", "") def getUniqueStyleID(style): id = style["name"] ...
true
true
1c2cf10d9603cf300c6a900634fd711d3689f71c
1,823
py
Python
tests/test_observable/test_fromiterable.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
tests/test_observable/test_fromiterable.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
tests/test_observable/test_fromiterable.py
samiur/RxPY
ea6b3554ab06cfc70e28b532c0a54b910b6ee470
[ "MIT" ]
null
null
null
import unittest import rx3 from rx3.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed created = ReactiveTest.create...
26.808824
74
0.648382
import unittest import rx3 from rx3.testing import TestScheduler, ReactiveTest on_next = ReactiveTest.on_next on_completed = ReactiveTest.on_completed on_error = ReactiveTest.on_error subscribe = ReactiveTest.subscribe subscribed = ReactiveTest.subscribed disposed = ReactiveTest.disposed created = ReactiveTest.create...
true
true
1c2cf128e3ee20ea0554308c2fc57970df75a721
22,701
py
Python
tests/test_periods.py
Mendybaeva/django-scheduler
eff7447993853d7d103995c6142b740aa4868ca5
[ "BSD-3-Clause" ]
null
null
null
tests/test_periods.py
Mendybaeva/django-scheduler
eff7447993853d7d103995c6142b740aa4868ca5
[ "BSD-3-Clause" ]
null
null
null
tests/test_periods.py
Mendybaeva/django-scheduler
eff7447993853d7d103995c6142b740aa4868ca5
[ "BSD-3-Clause" ]
null
null
null
import datetime import pytz from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from django.utils.six.moves.builtins import range, zip from schedule.models import Calendar, Event, Rule from schedule.periods import Day, Month, Period, Week, Year class Tes...
41.883764
127
0.580944
import datetime import pytz from django.conf import settings from django.test import TestCase from django.test.utils import override_settings from django.utils.six.moves.builtins import range, zip from schedule.models import Calendar, Event, Rule from schedule.periods import Day, Month, Period, Week, Year class Tes...
true
true
1c2cf18d17ed5498a5d84cc94afa5ffe58a79da3
530
py
Python
bibbutler_web/migrations/0003_bibliography_addition.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
bibbutler_web/migrations/0003_bibliography_addition.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
bibbutler_web/migrations/0003_bibliography_addition.py
dolonnen/bibbuttler
a9f672d0321fa6d060e204ecc952ed333edc1d81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.6 on 2016-06-04 12:01 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bibbutler_web', '0002_auto_20160601_2103'), ] operations = [ migrations.AddF...
25.238095
118
0.649057
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('bibbutler_web', '0002_auto_20160601_2103'), ] operations = [ migrations.AddField( model_name='bibliography', name='additio...
true
true
1c2cf3a169030dcfe3159a2340d5dcc68743c019
147
py
Python
ajunivel/apps.py
HumbertoDiego/django-ajustamento-redes-nivelamento
47912ccb4ba9fc29709add18bab688af50cfb582
[ "MIT" ]
1
2022-03-06T01:10:43.000Z
2022-03-06T01:10:43.000Z
ajunivel/apps.py
HumbertoDiego/django-ajustamento-redes-nivelamento
47912ccb4ba9fc29709add18bab688af50cfb582
[ "MIT" ]
null
null
null
ajunivel/apps.py
HumbertoDiego/django-ajustamento-redes-nivelamento
47912ccb4ba9fc29709add18bab688af50cfb582
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AjunivelConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'ajunivel'
24.5
56
0.768707
from django.apps import AppConfig class AjunivelConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'ajunivel'
true
true
1c2cf665aa832a0cb1e917a9d43fe054bd1b9894
24,204
py
Python
gcloudc/db/backends/datastore/query.py
potatolondon/django-gcloud-connectors
99ac93c618a5bb8c4200fff14d13b0bff868aa94
[ "BSD-3-Clause" ]
10
2019-03-12T15:01:59.000Z
2021-12-14T02:06:21.000Z
gcloudc/db/backends/datastore/query.py
potatolondon/django-gcloud-connectors
99ac93c618a5bb8c4200fff14d13b0bff868aa94
[ "BSD-3-Clause" ]
9
2019-07-25T14:35:04.000Z
2019-12-19T11:35:49.000Z
gcloudc/db/backends/datastore/query.py
potatolondon/django-gcloud-connectors
99ac93c618a5bb8c4200fff14d13b0bff868aa94
[ "BSD-3-Clause" ]
2
2019-11-08T16:37:20.000Z
2020-05-27T15:10:27.000Z
import datetime import json import logging import re from itertools import chain from django.db import ( NotSupportedError, connections, ) from django.db.models import AutoField from django.core.exceptions import EmptyResultSet from . import POLYMODEL_CLASS_ATTRIBUTE from .indexing import ( add_special_in...
35.857778
116
0.571641
import datetime import json import logging import re from itertools import chain from django.db import ( NotSupportedError, connections, ) from django.db.models import AutoField from django.core.exceptions import EmptyResultSet from . import POLYMODEL_CLASS_ATTRIBUTE from .indexing import ( add_special_in...
true
true
1c2cf6ea1a8354b758be34d8cc95a22caeeb92af
324
py
Python
gif/datasets/setup.py
jm-begon/globally-induced-forest
bf41640a5f0d9db637877dfa077b1d529539dbc6
[ "BSD-3-Clause" ]
6
2018-01-05T11:56:27.000Z
2018-10-13T13:14:05.000Z
gif/datasets/setup.py
jm-begon/globally-induced-forest
bf41640a5f0d9db637877dfa077b1d529539dbc6
[ "BSD-3-Clause" ]
1
2018-01-05T12:04:37.000Z
2018-01-05T13:56:20.000Z
gif/datasets/setup.py
jm-begon/globally-induced-forest
bf41640a5f0d9db637877dfa077b1d529539dbc6
[ "BSD-3-Clause" ]
null
null
null
import os import numpy from numpy.distutils.misc_util import Configuration def configuration(parent_package="", top_path=None): config = Configuration("datasets", parent_package, top_path) return config if __name__ == "__main__": from numpy.distutils.core import setup setup(**configuration().todict...
21.6
64
0.75
import os import numpy from numpy.distutils.misc_util import Configuration def configuration(parent_package="", top_path=None): config = Configuration("datasets", parent_package, top_path) return config if __name__ == "__main__": from numpy.distutils.core import setup setup(**configuration().todict...
true
true
1c2cf78dec9112e6316d9dc8c45b5348f98f1275
3,185
py
Python
Plugins/BoneBox.py
CopyPasteBugs/CryBlendHelpers
0965a3beff900b69cb392df65fe01caded825da2
[ "MIT" ]
null
null
null
Plugins/BoneBox.py
CopyPasteBugs/CryBlendHelpers
0965a3beff900b69cb392df65fe01caded825da2
[ "MIT" ]
null
null
null
Plugins/BoneBox.py
CopyPasteBugs/CryBlendHelpers
0965a3beff900b69cb392df65fe01caded825da2
[ "MIT" ]
null
null
null
bl_info = { "name": "Create Box proxies for Skeletons for CryEngine 5", "author": "ArticLion", "category": "Object", "blender": (2, 77, 0) } import bpy import os import struct import sys import mathutils from math import radians from bpy.props import (BoolProperty) from bpy.props impor...
34.247312
96
0.555102
bl_info = { "name": "Create Box proxies for Skeletons for CryEngine 5", "author": "ArticLion", "category": "Object", "blender": (2, 77, 0) } import bpy import os import struct import sys import mathutils from math import radians from bpy.props import (BoolProperty) from bpy.props impor...
true
true
1c2cf799737827ae82cb008c68687ac40ab5260f
2,613
py
Python
scripts/tests/generate_host_files.py
NDevTK/cel
e97226416b6e12245564bfc1c3631d610d62f052
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/generate_host_files.py
NDevTK/cel
e97226416b6e12245564bfc1c3631d610d62f052
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/generate_host_files.py
NDevTK/cel
e97226416b6e12245564bfc1c3631d610d62f052
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import argparse import logging import os import sys def ParseArgs(): parser = argparse.ArgumentParser( description='Host file generator for CELab E...
31.107143
78
0.677
import argparse import logging import os import sys def ParseArgs(): parser = argparse.ArgumentParser( description='Host file generator for CELab E2E tests') all_tokens = ['project_id', 'storage_bucket', 'storage_prefix'] template_help = 'The full path to the *.host.textpb template file to use. ' t...
true
true