hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
⌀
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
⌀
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
⌀
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
⌀
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
⌀
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
d8ea2e3f5f0e2b94b2f60f46ce7a11893330cbbc
12,614
py
Python
sbpy/spectroscopy/core.py
mjuric/sbpy
082ad903cb9b21ae961e4c72b666a8242539382a
[ "BSD-3-Clause" ]
null
null
null
sbpy/spectroscopy/core.py
mjuric/sbpy
082ad903cb9b21ae961e4c72b666a8242539382a
[ "BSD-3-Clause" ]
1
2020-05-13T22:58:36.000Z
2020-05-23T15:27:02.000Z
sbpy/spectroscopy/core.py
mjuric/sbpy
082ad903cb9b21ae961e4c72b666a8242539382a
[ "BSD-3-Clause" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ sbpy Spectroscopy Module created on June 23, 2017 """ import numpy as np import astropy.constants as con import astropy.units as u from astropy.time import Time from astroquery.jplhorizons import Horizons, conf from astropy import log from ..bib impo...
26.555789
92
0.551847
078cd8bf54855fe5fdec5a445662e6d78b7019d9
6,303
py
Python
google/ads/google_ads/v5/proto/services/customer_extension_setting_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
1
2021-04-09T04:28:47.000Z
2021-04-09T04:28:47.000Z
google/ads/google_ads/v5/proto/services/customer_extension_setting_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
google/ads/google_ads/v5/proto/services/customer_extension_setting_service_pb2_grpc.py
arammaliachi/google-ads-python
a4fe89567bd43eb784410523a6306b5d1dd9ee67
[ "Apache-2.0" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc from google.ads.google_ads.v5.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v5_dot_proto_dot_resources_dot_customer__ext...
56.783784
201
0.775662
b14d431e48dd9ae8775ae3aa53f65c54a2467f09
620
py
Python
pipeline/scripts/fix_samtools_vcf.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
null
null
null
pipeline/scripts/fix_samtools_vcf.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
null
null
null
pipeline/scripts/fix_samtools_vcf.py
iqbal-lab-org/pandora_paper_roc
bb21c76faefa8021c86c3be9d77b8b5999fe2ef5
[ "MIT" ]
2
2020-11-04T18:15:43.000Z
2020-11-06T01:38:08.000Z
from pathlib import Path import sys sys.path.append(str(Path().absolute())) if __name__=="__main__": from fix_snippy_vcf import FixSnippyVCF else: from pipeline.scripts.fix_snippy_vcf import FixSnippyVCF # FixSamtoolsVCF is just like FixSnippyVCF class FixSamtoolsVCF(FixSnippyVCF): pass if __name__=="__m...
31
76
0.790323
0921eaec493d910d897dee48f8472e3031ade5fc
1,613
py
Python
ephys_anonymizer/tests/test_video_anonymize.py
alexrockhill/video_anonymize
e3d672f46f48a21e2320c9815f9769902bbe943d
[ "BSD-3-Clause" ]
null
null
null
ephys_anonymizer/tests/test_video_anonymize.py
alexrockhill/video_anonymize
e3d672f46f48a21e2320c9815f9769902bbe943d
[ "BSD-3-Clause" ]
null
null
null
ephys_anonymizer/tests/test_video_anonymize.py
alexrockhill/video_anonymize
e3d672f46f48a21e2320c9815f9769902bbe943d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """Test the video anonymization. For each supported file format, implement a test. """ # Authors: Alex Rockhill <aprockhill@mailbox.org> # # License: BSD (3-clause) import os.path as op import cv2 from mne.utils import _TempDir import ephys_anonymizer basepath = op.join(op.dirname(ephys_anon...
31.627451
77
0.545567
ce96957f4128e88a0c74c14c6631b31e2a850549
585
py
Python
src/demo_dsproject/__init__.py
smart-patrol/python-template
c74f8986cd5dac692de57e5b5aee5a357cc76196
[ "MIT" ]
8
2019-07-02T19:05:09.000Z
2022-01-24T10:44:52.000Z
src/demo_dsproject/__init__.py
smart-patrol/python-template
c74f8986cd5dac692de57e5b5aee5a357cc76196
[ "MIT" ]
1
2021-04-19T17:28:59.000Z
2021-04-20T09:22:31.000Z
src/demo_dsproject/__init__.py
smart-patrol/python-template
c74f8986cd5dac692de57e5b5aee5a357cc76196
[ "MIT" ]
5
2019-11-17T19:01:51.000Z
2021-07-30T11:34:57.000Z
import sys if sys.version_info[:2] >= (3, 8): # TODO: Import directly (no need for conditional) when `python_requires = >= 3.8` from importlib.metadata import PackageNotFoundError, version # pragma: no cover else: from importlib_metadata import PackageNotFoundError, version # pragma: no cover try: #...
34.411765
85
0.735043
551a2a1ec8c26f51947bed22521b0f77e98158c2
7,697
py
Python
nlp/parser/tools/train.py
Betterpath/Sling
549299786667ba2b8ac9456adb51f2af9f114f73
[ "Apache-2.0" ]
1
2020-03-16T05:03:21.000Z
2020-03-16T05:03:21.000Z
nlp/parser/tools/train.py
Betterpath/Sling
549299786667ba2b8ac9456adb51f2af9f114f73
[ "Apache-2.0" ]
null
null
null
nlp/parser/tools/train.py
Betterpath/Sling
549299786667ba2b8ac9456adb51f2af9f114f73
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http:#www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.907489
77
0.711446
e89b2e70ebfa1e440a0167af797770b441517568
729
py
Python
cloudmesh/bookmanagerservice/bmservice.py
cyberaide/bookmanager-service
0ff87277524cc4ad19569c986c93d40a8020e281
[ "Apache-2.0" ]
1
2019-12-16T20:03:42.000Z
2019-12-16T20:03:42.000Z
cloudmesh/bookmanagerservice/bmservice.py
cyberaide/bookmanager-service
0ff87277524cc4ad19569c986c93d40a8020e281
[ "Apache-2.0" ]
20
2019-10-15T23:28:29.000Z
2020-02-14T15:27:03.000Z
cloudmesh/bookmanagerservice/bmservice.py
cyberaide/bookmanager-service
0ff87277524cc4ad19569c986c93d40a8020e281
[ "Apache-2.0" ]
2
2019-12-16T20:03:45.000Z
2020-02-12T19:50:06.000Z
import subprocess from pathlib import Path host = "0.0.0.0" #host = "127.0.0.1" port = "5000" image = "bookmanager-service" # DONT CHANGE ITS IN THE CONTAINER path = "." def bmservice(): directory = str(Path('.').absolute()) strt = f'docker run --rm -it -p {host}:{port}:{port}/tcp -w /opt/project/bookmanager...
31.695652
132
0.663923
f3a01484d2648702f5ecc2bf31050280ee43b68e
21,511
py
Python
env/lib/python3.4/site-packages/pymongo/bulk.py
musicrighter/P2-Iteration-0
dcf2f2f2a5a8849e57ff3c2e9f2ab4cdfca9b86d
[ "Artistic-2.0" ]
null
null
null
env/lib/python3.4/site-packages/pymongo/bulk.py
musicrighter/P2-Iteration-0
dcf2f2f2a5a8849e57ff3c2e9f2ab4cdfca9b86d
[ "Artistic-2.0" ]
2
2021-04-30T20:34:10.000Z
2021-06-01T21:47:23.000Z
env/lib/python3.4/site-packages/pymongo/bulk.py
musicrighter/P2-Iteration-0
dcf2f2f2a5a8849e57ff3c2e9f2ab4cdfca9b86d
[ "Artistic-2.0" ]
null
null
null
# Copyright 2014-2015 MongoDB, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writin...
36.897084
80
0.550974
f48c102d3867adb9c771d75d6adc1b2a8ad82d08
5,354
py
Python
kiwi/wallet/wallet_node_api.py
KiwiNetworkOrg/chia-blockchain
90ec3a0fd7b50f5b98b5b0478e28ebbe6f8e8a71
[ "Apache-2.0" ]
8
2021-08-21T03:10:13.000Z
2022-02-09T04:30:05.000Z
kiwi/wallet/wallet_node_api.py
KiwiNetworkOrg/chia-blockchain
90ec3a0fd7b50f5b98b5b0478e28ebbe6f8e8a71
[ "Apache-2.0" ]
null
null
null
kiwi/wallet/wallet_node_api.py
KiwiNetworkOrg/chia-blockchain
90ec3a0fd7b50f5b98b5b0478e28ebbe6f8e8a71
[ "Apache-2.0" ]
1
2021-09-03T02:30:26.000Z
2021-09-03T02:30:26.000Z
from kiwi.protocols import full_node_protocol, introducer_protocol, wallet_protocol from kiwi.server.outbound_message import NodeType from kiwi.server.ws_connection import WSKiwiConnection from kiwi.types.mempool_inclusion_status import MempoolInclusionStatus from kiwi.util.api_decorators import api_request, peer_requi...
39.659259
118
0.715166
ea2b68e97074acedcbb6297f7319a33e99ba41ec
82
py
Python
src/chapter30/__init__.py
Peefy/CLRS_dugu_code-master
98f00e75e1b0ebc13a7affb2604bec8501692a19
[ "Apache-2.0" ]
3
2018-01-31T03:08:50.000Z
2018-04-25T12:57:01.000Z
src/chapter30/__init__.py
HideLakitu/IntroductionToAlgorithm.Python
33662f46dc346203b220d7481d1a4439feda05d2
[ "Apache-2.0" ]
null
null
null
src/chapter30/__init__.py
HideLakitu/IntroductionToAlgorithm.Python
33662f46dc346203b220d7481d1a4439feda05d2
[ "Apache-2.0" ]
3
2019-03-03T04:49:53.000Z
2020-07-13T10:18:58.000Z
# python src/chapter30/chapter30note.py # python3 src/chapter30/chapter30note.py
20.5
40
0.817073
009cb9edbce68b1d157808934b9ba2c3a9b8ef45
9,168
py
Python
recruitment/api.py
vhrspvl/mecc-recruitment
923236eb1bb5e162dc43f0486397d5a862db0d71
[ "MIT" ]
null
null
null
recruitment/api.py
vhrspvl/mecc-recruitment
923236eb1bb5e162dc43f0486397d5a862db0d71
[ "MIT" ]
null
null
null
recruitment/api.py
vhrspvl/mecc-recruitment
923236eb1bb5e162dc43f0486397d5a862db0d71
[ "MIT" ]
1
2020-02-14T13:06:38.000Z
2020-02-14T13:06:38.000Z
import frappe import json from frappe import _ from frappe.utils.data import today from frappe.utils import datetime, nowdate, add_days, flt from frappe.utils.print_format import download_pdf @frappe.whitelist() def confirm_register(testid, doc): candid = {} candid = json.loads(doc) if testid: tok...
38.683544
220
0.623691
af182caf9f8fac8787001404d9698962e3183aa8
1,333
py
Python
sdk/python/pulumi_azure_nextgen/managedservices/v20190601/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
31
2020-09-21T09:41:01.000Z
2021-02-26T13:21:59.000Z
sdk/python/pulumi_azure_nextgen/managedservices/v20190601/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
231
2020-09-21T09:38:45.000Z
2021-03-01T11:16:03.000Z
sdk/python/pulumi_azure_nextgen/managedservices/v20190601/__init__.py
pulumi/pulumi-azure-nextgen
452736b0a1cf584c2d4c04666e017af6e9b2c15c
[ "Apache-2.0" ]
4
2020-09-29T14:14:59.000Z
2021-02-10T20:38:16.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** # Export this package's modules as members: from .get_registration_assignment import * from .get_registration_definition import * from .registration_as...
36.027027
107
0.708927
8ba701a80b4ea9f01e49faff4245ab53414d5050
1,285
py
Python
scripts/file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
scripts/file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
scripts/file_importer.py
johnmdelgado/SRE-Project
4637c2fa5a7d93da96d1e14ab96fcab8b652f076
[ "MIT" ]
null
null
null
''' FileName: file_inporter.py Author: John Delgado Created Date: 8/7/2020 Version: 1.0 Initial Development This will import a given file to use as a comparison for common passwords and then return a memory mapped object ''' import mmap import os import sys def file_importer(file_path,debug): if(debug): ...
27.934783
147
0.627237
53f3de93bb08aa8fa443da2b6fa58df4d57c0bc3
271
py
Python
driver/admin.py
sami-mai/Carpool-R-Us
306c60788e3dc123c3ac85e0c40ac5a291590709
[ "MIT" ]
null
null
null
driver/admin.py
sami-mai/Carpool-R-Us
306c60788e3dc123c3ac85e0c40ac5a291590709
[ "MIT" ]
5
2020-02-12T00:43:34.000Z
2021-06-10T20:18:42.000Z
driver/admin.py
sami-mai/Carpool-R-Us
306c60788e3dc123c3ac85e0c40ac5a291590709
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Car, Driver_Profile, Location, Review, Tag # Register your models here. admin.site.register(Car) admin.site.register(Driver_Profile) admin.site.register(Location) admin.site.register(Review) admin.site.register(Tag)
24.636364
62
0.808118
42c1314d841a67b7045d3b5d182215ea8049de86
1,710
py
Python
tests/test_utilities/test_csvclean.py
dhatim/csvkit
97e950f2b8fca4c657cccfa7a15f1541e8314059
[ "MIT" ]
null
null
null
tests/test_utilities/test_csvclean.py
dhatim/csvkit
97e950f2b8fca4c657cccfa7a15f1541e8314059
[ "MIT" ]
1
2018-09-21T23:30:21.000Z
2018-09-21T23:30:21.000Z
tests/test_utilities/test_csvclean.py
dhatim/csvkit
97e950f2b8fca4c657cccfa7a15f1541e8314059
[ "MIT" ]
1
2018-09-21T23:26:35.000Z
2018-09-21T23:26:35.000Z
#!/usr/bin/env python import os import sys import six try: from mock import patch except ImportError: from unittest.mock import patch from csvkit.utilities.csvclean import CSVClean, launch_new_instance from tests.utils import CSVKitTestCase, EmptyFileTests class TestCSVClean(CSVKitTestCase, EmptyFileTests...
30.535714
92
0.616959
937d2c76e9062f7d17bf8e8cf88e31a17d6b1711
8,242
py
Python
online_app/app/routes.py
felipebmendes/search-skill
e35e3407ab5524615b0b1f936988c5a5b627365d
[ "MIT" ]
null
null
null
online_app/app/routes.py
felipebmendes/search-skill
e35e3407ab5524615b0b1f936988c5a5b627365d
[ "MIT" ]
null
null
null
online_app/app/routes.py
felipebmendes/search-skill
e35e3407ab5524615b0b1f936988c5a5b627365d
[ "MIT" ]
null
null
null
import itertools import logging import numpy as np import os import re from flask import Blueprint, current_app, flash, jsonify, request, redirect, render_template, url_for from collections import OrderedDict from pycarol import Carol, Storage, Query from pycarol.apps import Apps from pycarol.filter import Filter, TYPE...
40.600985
145
0.707838
d548bb77cfbc2839e2483c454ecfa76406be7b6e
1,188
py
Python
app/core/models.py
mlobf/recipe-app-api
68b2f624aff4eeee04983d4e4d40d8f31117c7e9
[ "MIT" ]
null
null
null
app/core/models.py
mlobf/recipe-app-api
68b2f624aff4eeee04983d4e4d40d8f31117c7e9
[ "MIT" ]
null
null
null
app/core/models.py
mlobf/recipe-app-api
68b2f624aff4eeee04983d4e4d40d8f31117c7e9
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser, BaseUserManager, \ PermissionsMixin class UserManager(BaseUserManager): def create_user(self, email, password=None, **extra_fields): """Creates and saves a new user""" if not email: raise ValueEr...
29.7
76
0.681818
90439924406822950ec94a3486e5a7213df63ab8
359
py
Python
Olympiad Solutions/URI/1240.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
36
2019-12-27T08:23:08.000Z
2022-01-24T20:35:47.000Z
Olympiad Solutions/URI/1240.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
10
2019-11-13T02:55:18.000Z
2021-10-13T23:28:09.000Z
Olympiad Solutions/URI/1240.py
Ashwanigupta9125/code-DS-ALGO
49f6cf7d0c682da669db23619aef3f80697b352b
[ "MIT" ]
53
2020-08-15T11:08:40.000Z
2021-10-09T15:51:38.000Z
# Ivan Carvalho # Solution to https://www.urionlinejudge.com.br/judge/problems/view/1240 #!/usr/bin/env python2.7 # encoding : utf-8 ordem = int(raw_input()) for i in xrange(ordem): a,b = raw_input().split(" ") ta,tb = [len(a),len(b)] if tb > ta: print "nao encaixa" else: if b in a[::-1][:tb][::-1]: print "e...
22.4375
72
0.632312
c66e880b05448706f96dce85e3c486ba2ab440e8
462
py
Python
app/model/misc.py
icrdr/1-mu
8212b79a9949e334c185b99b1be41add5e577937
[ "MIT" ]
null
null
null
app/model/misc.py
icrdr/1-mu
8212b79a9949e334c185b99b1be41add5e577937
[ "MIT" ]
5
2021-03-19T01:43:30.000Z
2022-01-13T01:22:38.000Z
app/model/misc.py
icrdr/1-mu-server
8212b79a9949e334c185b99b1be41add5e577937
[ "MIT" ]
null
null
null
from .. import db class Option(db.Model): __tablename__ = 'options' id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(64)) value = db.Column(db.String(512)) @staticmethod def init_option(): new_option = Option( name='allow_sign_in', value=...
21
48
0.580087
d8d91be1de72f025b3f67fd14c9c625548e85bde
530
py
Python
web/faq/migrations/0016_auto_20210915_1741.py
kisawebkaist/kisaweb
05883d4d81394d5055137f24a8a46d7c90191101
[ "MIT" ]
2
2020-11-06T10:32:52.000Z
2021-11-05T06:56:08.000Z
web/faq/migrations/0016_auto_20210915_1741.py
kisawebkaist/kisaweb
05883d4d81394d5055137f24a8a46d7c90191101
[ "MIT" ]
29
2020-10-09T18:29:11.000Z
2022-03-12T14:23:36.000Z
web/faq/migrations/0016_auto_20210915_1741.py
kisawebkaist/kisaweb
05883d4d81394d5055137f24a8a46d7c90191101
[ "MIT" ]
11
2020-10-26T03:59:47.000Z
2021-10-04T07:03:44.000Z
# Generated by Django 3.0 on 2021-09-15 08:41 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('faq', '0015_auto_20210913_1514'), ] operations = [ migrations.AlterField( model_name='faq', ...
25.238095
132
0.637736
eab5c550cf8807a3e9ac362adddb34828bce5439
1,634
py
Python
authentication/forms.py
sergane13/WorkingPlace
51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1
[ "MIT" ]
1
2021-12-10T17:58:09.000Z
2021-12-10T17:58:09.000Z
authentication/forms.py
sergane13/IdeaTool-testSite
51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1
[ "MIT" ]
null
null
null
authentication/forms.py
sergane13/IdeaTool-testSite
51f3550dbfa077cdfc7dd1a5421f787ad5bd84b1
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2019 - present AppSeed.us """ from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth.models import User class LoginForm(forms.Form): username = forms.CharField( widget=forms.TextInput( at...
27.233333
65
0.473684
144dc6376f2c9ac7daedb7b0ce965cc9dae011a2
3,657
py
Python
app/infra/data_repository/__init__.py
LukeSamkharadze/wallet-management
c2efeb54676e4fe0901b6980f1ba6e5af5796271
[ "MIT" ]
null
null
null
app/infra/data_repository/__init__.py
LukeSamkharadze/wallet-management
c2efeb54676e4fe0901b6980f1ba6e5af5796271
[ "MIT" ]
null
null
null
app/infra/data_repository/__init__.py
LukeSamkharadze/wallet-management
c2efeb54676e4fe0901b6980f1ba6e5af5796271
[ "MIT" ]
null
null
null
import sqlite3 from dataclasses import dataclass from sqlalchemy import create_engine from sqlalchemy.engine.mock import MockConnection from app.core import ( DbAddTransactionIn, DbAddTransactionOut, DbAddUserIn, DbAddUserOut, DbAddWalletIn, DbAddWalletOut, DbFetchStatisticsIn, DbFetch...
35.163462
88
0.75417
7c159326b741bc29b3f3d2e44ca056b3ba87e1cd
627
py
Python
mne/viz/_brain/tests/test_notebook.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
1
2021-02-16T13:33:13.000Z
2021-02-16T13:33:13.000Z
mne/viz/_brain/tests/test_notebook.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
12
2020-07-23T15:41:38.000Z
2021-02-24T09:38:41.000Z
mne/viz/_brain/tests/test_notebook.py
enricovara/mne-python
f6f2aa7a97c3ae7ae5276202805d2f45de7b64cc
[ "BSD-3-Clause" ]
1
2021-04-01T15:56:39.000Z
2021-04-01T15:56:39.000Z
import os from mne.datasets import testing from mne.utils import requires_version PATH = os.path.dirname(os.path.realpath(__file__)) @testing.requires_testing_data @requires_version('nbformat') @requires_version('nbclient') @requires_version('ipympl') def test_notebook_3d_backend(renderer_notebook, brain_gc): "...
27.26087
58
0.754386
9947773f7a267f631b6a6440469daf71697d8885
211
py
Python
test cases/common/74 external test program/mytest.py
stefan0xC/meson
dd75c45ac5a923e617bb8261f824d0122cb4545a
[ "Apache-2.0" ]
44
2022-03-16T08:32:31.000Z
2022-03-31T16:02:35.000Z
test cases/common/74 external test program/mytest.py
stefan0xC/meson
dd75c45ac5a923e617bb8261f824d0122cb4545a
[ "Apache-2.0" ]
2
2015-03-23T15:30:17.000Z
2015-03-23T20:19:19.000Z
test cases/common/74 external test program/mytest.py
stefan0xC/meson
dd75c45ac5a923e617bb8261f824d0122cb4545a
[ "Apache-2.0" ]
18
2022-03-19T04:41:04.000Z
2022-03-31T03:32:12.000Z
#!/usr/bin/env python3 from __future__ import print_function import sys if sys.argv[1] == 'correct': print('Argument is correct.') sys.exit(0) print('Argument is incorrect:', sys.argv[1]) sys.exit(1)
17.583333
44
0.691943
a629ec65fa0551d4f538e06b8d8cbcaaad3acda0
3,105
py
Python
python/tests/test_exception.py
nii-gakunin-cloud/sinetstream
abcf8ce800c9970bb51b2eaff54f3845c40c114f
[ "Apache-2.0" ]
5
2020-03-24T15:28:53.000Z
2022-03-18T06:59:42.000Z
python/tests/test_exception.py
nii-gakunin-cloud/sinetstream
abcf8ce800c9970bb51b2eaff54f3845c40c114f
[ "Apache-2.0" ]
null
null
null
python/tests/test_exception.py
nii-gakunin-cloud/sinetstream
abcf8ce800c9970bb51b2eaff54f3845c40c114f
[ "Apache-2.0" ]
3
2020-03-24T15:28:52.000Z
2021-04-01T14:51:42.000Z
#!/usr/local/bin/python3.6 # vim: expandtab shiftwidth=4 # Copyright (C) 2019 National Institute of Informatics # # 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 own...
29.292453
77
0.71562
ba76474b243e10342650ca8f33da3b4c28891639
171
py
Python
pyp/model/package.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
pyp/model/package.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
pyp/model/package.py
liying2008/PYP_Manager
fd006912e071a97c5682c402b16d42c15844fe95
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- __author__ = 'liying' class Package(object): def __init__(self): self.package = None self.version = None
14.25
27
0.590643
986044b53a88673b8ed99e6aeb233191a7216440
41,682
py
Python
grin.py
mindw/grin
513ea447cf0afb2673c2ab00bb5161dc301d3697
[ "BSD-3-Clause" ]
null
null
null
grin.py
mindw/grin
513ea447cf0afb2673c2ab00bb5161dc301d3697
[ "BSD-3-Clause" ]
null
null
null
grin.py
mindw/grin
513ea447cf0afb2673c2ab00bb5161dc301d3697
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ grin searches text files. """ from __future__ import print_function import argparse import bisect import fnmatch import gzip import io import itertools import os import re import shlex import stat import sys import colorama from six import b, int2byte, reraise from six.moves import map, fil...
36.886726
126
0.579483
b8a7bfab6e6299fb5137cf45ae56f45be6ae689e
4,431
py
Python
.history/instagram/settings_20201122013306.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
.history/instagram/settings_20201122013306.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
.history/instagram/settings_20201122013306.py
Nyash-Mauro/Instagram-clone
39f3b660b3bdd59996fa88816712c906d0e3fba5
[ "MIT" ]
null
null
null
""" Django settings for instagram project. Generated by 'django-admin startproject' using Django 3.1.3. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ import os i...
25.912281
91
0.693523
0e114f51710294b547c513d487fc9953279cf480
11,583
py
Python
dask/array/optimization.py
leogao2/dask
4e5dfe7463028a39a90e026c7fb9220969093ab3
[ "BSD-3-Clause" ]
null
null
null
dask/array/optimization.py
leogao2/dask
4e5dfe7463028a39a90e026c7fb9220969093ab3
[ "BSD-3-Clause" ]
null
null
null
dask/array/optimization.py
leogao2/dask
4e5dfe7463028a39a90e026c7fb9220969093ab3
[ "BSD-3-Clause" ]
null
null
null
from itertools import zip_longest from numbers import Integral import numpy as np from dask import config from dask.array.chunk import getitem from dask.array.core import getter, getter_inline, getter_nofancy from dask.blockwise import fuse_roots, optimize_blockwise from dask.core import flatten, reverse_dict from da...
34.576119
88
0.55616
d491fb69fc9ccf29c5955404598a327e31662c94
3,329
py
Python
Lib/xml/dom/minicompat.py
leepro/unladen-swallow
8175e37eaea7ca66ed03283b46bc1d2db0d3f9c3
[ "PSF-2.0" ]
2,293
2015-01-02T12:46:10.000Z
2022-03-29T09:45:43.000Z
python/src/Lib/xml/dom/minicompat.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
315
2015-05-31T11:55:46.000Z
2022-01-12T08:36:37.000Z
python/src/Lib/xml/dom/minicompat.py
weiqiangzheng/sl4a
d3c17dca978cbeee545e12ea240a9dbf2a6999e9
[ "Apache-2.0" ]
1,033
2015-01-04T07:48:40.000Z
2022-03-24T09:34:37.000Z
"""Python version compatibility support for minidom.""" # This module should only be imported using "import *". # # The following names are defined: # # NodeList -- lightest possible NodeList implementation # # EmptyNodeList -- lightest possible NodeList that is guarateed to # remain empty ...
29.990991
70
0.57705
8c47df92859f91ef9c309971ad41cbe5fbd10e2f
27,519
py
Python
projectroles/forms.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
projectroles/forms.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
projectroles/forms.py
olgabot/sodar_core
2a012c962c763fe970261839226e848d752d14d5
[ "MIT" ]
null
null
null
import json from django import forms from django.conf import settings from django.contrib import auth from django.utils import timezone from pagedown.widgets import PagedownWidget from dal import autocomplete from .models import ( Project, Role, RoleAssignment, ProjectInvite, RemoteSite, SODA...
34.834177
80
0.563138
105ec8fe756f88fcc4f8559a066d7e7eafccf770
24,663
py
Python
recohut/_nbdev.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
recohut/_nbdev.py
sparsh-ai/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
1
2022-01-12T05:40:57.000Z
2022-01-12T05:40:57.000Z
recohut/_nbdev.py
RecoHut-Projects/recohut
4121f665761ffe38c9b6337eaa9293b26bee2376
[ "Apache-2.0" ]
null
null
null
# AUTOGENERATED BY NBDEV! DO NOT EDIT! __all__ = ["index", "modules", "custom_doc_links", "git_url"] index = {"BasketVectorizer": "datasets.bases.basket.ipynb", "BasketRepeatDistancePlot": "datasets.bases.basket.ipynb", "BasketSizePlot": "datasets.bases.basket.ipynb", "BasketUserPlot": "dat...
47.520231
75
0.611118
f09111491e729646f5f6c1426724e9ee0060b757
641
py
Python
examples/OnAVOS/datasets/Util/flo_Reader.py
MarcWong/tensorpack
51ab279480dc1e3ffdc07884a9e8149dea9651e9
[ "Apache-2.0" ]
5
2018-05-04T02:04:15.000Z
2020-04-02T05:38:48.000Z
datasets/Util/flo_Reader.py
mrteera/OnAVOS
b7e411a75ca252fda46fc3cf1887687c875abe23
[ "MIT" ]
1
2019-10-01T11:30:57.000Z
2019-10-01T11:30:57.000Z
datasets/Util/flo_Reader.py
mrteera/OnAVOS
b7e411a75ca252fda46fc3cf1887687c875abe23
[ "MIT" ]
2
2018-04-23T13:43:10.000Z
2019-10-30T09:56:54.000Z
import numpy #adapted from http://stackoverflow.com/questions/28013200/reading-middlebury-flow-files-with-python-bytes-array-numpy # WARNING: this will work on little-endian architectures (eg Intel x86) only! def read_flo_file(fp): with open(fp, 'rb') as f: magic = numpy.fromfile(f, numpy.float32, count=1) ...
37.705882
117
0.677067
fb6e14e3f5e275d4290ff5d23b6dcf0d29571638
5,425
py
Python
preprocess.py
dattatreya303/OpenNMT-py
46ff93435c7979c221e2ce1041b0860242098044
[ "MIT" ]
16
2018-04-17T20:18:39.000Z
2021-07-31T05:12:26.000Z
preprocess.py
coder1729/OpenNMT-py
f240346274925743379b72c221a47208cc4bd1d0
[ "MIT" ]
11
2018-06-01T01:47:46.000Z
2018-10-12T12:10:46.000Z
preprocess.py
coder1729/OpenNMT-py
f240346274925743379b72c221a47208cc4bd1d0
[ "MIT" ]
8
2018-05-19T13:50:18.000Z
2018-08-06T06:10:47.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Pre-process Data / features files and build vocabulary """ import configargparse import glob import sys import gc import os import codecs from itertools import islice import torch from onmt.utils.logging import init_logger, logger import onmt.inputters as inputter...
31
77
0.652166
5a0c9428c7deb14dbc03ecec071e5a22801b3878
3,011
py
Python
setup.py
AbinayaM02/checklist
9baab717e44e216697f7ef0730ee269db9ef7d5b
[ "MIT" ]
1,672
2020-05-06T05:53:40.000Z
2022-03-31T18:46:49.000Z
setup.py
AbinayaM02/checklist
9baab717e44e216697f7ef0730ee269db9ef7d5b
[ "MIT" ]
90
2020-07-02T16:54:21.000Z
2022-02-16T19:43:08.000Z
setup.py
AbinayaM02/checklist
9baab717e44e216697f7ef0730ee269db9ef7d5b
[ "MIT" ]
169
2020-05-21T14:52:40.000Z
2022-02-24T10:23:37.000Z
from setuptools import setup, find_packages from setuptools.command.develop import develop from setuptools.command.install import install from setuptools.command.bdist_egg import bdist_egg from setuptools.command.egg_info import egg_info from setuptools.command.build_py import build_py from subprocess import check_cal...
34.609195
131
0.683162
5228398e0bd6e9a0228961e740f5c8031019c38c
21,541
py
Python
TWLight/users/authorization.py
illseption/TWLight
9973fd11e2a7b00d7ce7213edfd5ec66db24cbd2
[ "MIT" ]
2
2020-01-17T09:14:55.000Z
2020-01-17T09:15:20.000Z
TWLight/users/authorization.py
HAKSOAT/TWLight
35504ba319205a6c058a41060463e59a0cca18fa
[ "MIT" ]
null
null
null
TWLight/users/authorization.py
HAKSOAT/TWLight
35504ba319205a6c058a41060463e59a0cca18fa
[ "MIT" ]
null
null
null
import logging from mwoauth import ConsumerToken, Handshaker, AccessToken, OAuthException import urllib.parse from django.conf import settings from django.contrib import messages from django.contrib.auth import login, authenticate from django.contrib.auth.models import User from django.core.exceptions import Permissio...
40.874763
282
0.588181
dc42da08c8a0ed44c16b84ae7bc2f93de82b6604
989
py
Python
test/test_entry_search_response.py
FactomProject/factom-harmony-connect-python-client
b64f11dc0552b4c526f5b744ad07a9a7cf65d9aa
[ "MIT" ]
12
2019-01-23T23:07:08.000Z
2019-02-04T06:17:48.000Z
test/test_entry_search_response.py
FactomProject/factom-harmony-connect-python-client
b64f11dc0552b4c526f5b744ad07a9a7cf65d9aa
[ "MIT" ]
null
null
null
test/test_entry_search_response.py
FactomProject/factom-harmony-connect-python-client
b64f11dc0552b4c526f5b744ad07a9a7cf65d9aa
[ "MIT" ]
1
2019-08-03T12:27:01.000Z
2019-08-03T12:27:01.000Z
# coding: utf-8 """ Harmony Connect An easy to use API that helps you access the Factom blockchain. # noqa: E501 OpenAPI spec version: 1.0.17 Contact: harmony-support@factom.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import har...
24.121951
105
0.729019
ea2404c18adb0b94a32ba0b233c39bcece796ee0
43,769
py
Python
env/lib/python3.5/site-packages/scipy/optimize/_differentialevolution.py
Udolf15/recommedMeMovies
be5ae74acd98e3f93beaaa5bb55623974fb24247
[ "MIT" ]
8
2019-05-29T09:38:30.000Z
2021-01-20T03:36:59.000Z
venv/Lib/site-packages/scipy/optimize/_differentialevolution.py
uncledragon/CalibrationLibrary
952abcf471b819b6b6dfa23b6d5dd248155f9dbf
[ "MIT" ]
12
2021-03-09T03:01:16.000Z
2022-03-11T23:59:36.000Z
venv/Lib/site-packages/scipy/optimize/_differentialevolution.py
uncledragon/CalibrationLibrary
952abcf471b819b6b6dfa23b6d5dd248155f9dbf
[ "MIT" ]
5
2019-04-27T01:19:47.000Z
2020-09-20T15:15:19.000Z
""" differential_evolution: The differential evolution global optimization algorithm Added by Andrew Nelson 2014 """ from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy.optimize import OptimizeResult, minimize from scipy.optimize.optimize import _status_messag...
43.207305
81
0.608559
c6577fcf54cec085cbbe17f3c052e31ab9fda16f
1,619
py
Python
setup.py
sagasurvey/saga
341eb9984ff12668aa498f81d99d13fc1a4691c8
[ "MIT" ]
2
2017-08-25T22:25:38.000Z
2020-12-29T18:58:51.000Z
setup.py
sagasurvey/saga
341eb9984ff12668aa498f81d99d13fc1a4691c8
[ "MIT" ]
18
2017-08-27T04:51:33.000Z
2022-03-04T15:28:50.000Z
setup.py
sagasurvey/saga
341eb9984ff12668aa498f81d99d13fc1a4691c8
[ "MIT" ]
2
2017-08-26T22:42:55.000Z
2018-06-17T13:28:07.000Z
#!/usr/bin/env python """ Code to access, create and edit SAGA Survey data catalogs. Project website: http://sagasurvey.org/ The MIT License (MIT) Copyright (c) 2018-2021 The SAGA Survey http://opensource.org/licenses/MIT """ import os from setuptools import find_packages, setup with open(os.path.join(os.path.dirnam...
30.54717
78
0.627548
4a63e8e7b3c49bee30eda5c6ad1d63efde21cbca
4,038
py
Python
virtool/analyses/utils.py
virtool/virtool
ec639c3bf41e0477447b87fbbab435c6a3b42f98
[ "MIT" ]
39
2016-10-31T23:28:59.000Z
2022-01-15T00:00:42.000Z
virtool/analyses/utils.py
virtool/virtool
ec639c3bf41e0477447b87fbbab435c6a3b42f98
[ "MIT" ]
1,690
2017-02-07T23:39:48.000Z
2022-03-31T22:30:44.000Z
virtool/analyses/utils.py
virtool/virtool
ec639c3bf41e0477447b87fbbab435c6a3b42f98
[ "MIT" ]
25
2017-02-08T18:25:31.000Z
2021-09-20T22:55:25.000Z
import shutil from pathlib import Path from typing import Any, Dict, Optional from sqlalchemy.ext.asyncio import AsyncEngine, AsyncSession from sqlalchemy.future import select import virtool.utils from virtool.analyses.models import AnalysisFile WORKFLOW_NAMES = ("aodp", "nuvs", "pathoscope_bowtie") async def atta...
29.911111
101
0.673105
93f33b9d3d774127b449471aff86acc66481cd39
5,797
py
Python
pcf/particle/aws/cloudformation/cloudformation_stack.py
pmbrent/Particle-Cloud-Framework
02a007dee58a08fcaf88bb57485dd769a4b01bc4
[ "Apache-2.0" ]
null
null
null
pcf/particle/aws/cloudformation/cloudformation_stack.py
pmbrent/Particle-Cloud-Framework
02a007dee58a08fcaf88bb57485dd769a4b01bc4
[ "Apache-2.0" ]
null
null
null
pcf/particle/aws/cloudformation/cloudformation_stack.py
pmbrent/Particle-Cloud-Framework
02a007dee58a08fcaf88bb57485dd769a4b01bc4
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Capital One Services, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
33.316092
172
0.656374
c30a80c19ff37d76b5af79e97a775ac59039853c
293
py
Python
算法学习/趣味算法/Palindrome/Flop.py
huangboju/Moots
122f54bc949b7f53a939e6153a8c04c3bef9a0f3
[ "MIT" ]
142
2016-12-05T07:23:50.000Z
2022-02-15T05:25:59.000Z
算法学习/趣味算法/Palindrome/Flop.py
huangboju/Moots
122f54bc949b7f53a939e6153a8c04c3bef9a0f3
[ "MIT" ]
1
2020-09-12T08:23:40.000Z
2020-09-12T08:24:55.000Z
算法学习/趣味算法/Palindrome/Flop.py
huangboju/Moots
122f54bc949b7f53a939e6153a8c04c3bef9a0f3
[ "MIT" ]
123
2016-11-02T05:52:12.000Z
2022-02-15T05:26:01.000Z
def resolve(): s = 100 arr = [False for i in range(s+1)] n = 2 while n <= s: for i in range(n, s, n): arr[i] = not arr[i] print(arr) n += 1 for idx, v in enumerate(arr): if v: continue print(idx) resolve()
16.277778
37
0.430034
17ab6e835c3b98d2cff8b3be37cc19cffb23964f
116
py
Python
example/old_version/q14/jpy/task2.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
4
2019-06-06T09:38:49.000Z
2022-01-29T00:02:11.000Z
example/old_version/q14/jpy/task2.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
1
2022-02-11T03:43:10.000Z
2022-02-11T03:43:10.000Z
example/old_version/q14/jpy/task2.py
wangjiehui11235/ultron
ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7
[ "Apache-2.0" ]
8
2019-06-02T13:11:00.000Z
2021-11-11T01:06:22.000Z
import time from jpy import app @app.task(ignore_result=True) def multiply(x, y): time.sleep(2) return x * y
19.333333
29
0.698276
7b66896314919c1ab8b353da91cf6f8bc5873d2f
15,957
py
Python
openstack-logcollector/openstack/common/apiclient/base.py
enovance/openstack-logcollector
4f5c4f1698172dcc9397eb1a5bd0233d3a362c50
[ "Apache-2.0" ]
1
2015-03-27T16:27:00.000Z
2015-03-27T16:27:00.000Z
openstack-logcollector/openstack/common/apiclient/base.py
enovance/openstack-logcollector
4f5c4f1698172dcc9397eb1a5bd0233d3a362c50
[ "Apache-2.0" ]
null
null
null
openstack-logcollector/openstack/common/apiclient/base.py
enovance/openstack-logcollector
4f5c4f1698172dcc9397eb1a5bd0233d3a362c50
[ "Apache-2.0" ]
null
null
null
# Copyright 2010 Jacob Kaplan-Moss # Copyright 2011 OpenStack Foundation # Copyright 2012 Grid Dynamics # Copyright 2013 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain...
32.301619
79
0.594598
153a6391b122f55a5dca25d3c33483ac9158c2e1
11,701
py
Python
Zipc_airflow/src/analyzer/nine_block_analyzer.py
open-garden/garden
588fc9d254b913548159bcd01c5b34bd1c5cbc73
[ "BSD-3-Clause" ]
9
2021-06-22T08:05:59.000Z
2021-09-10T05:12:02.000Z
Zipc_airflow/src/analyzer/nine_block_analyzer.py
open-garden/garden
588fc9d254b913548159bcd01c5b34bd1c5cbc73
[ "BSD-3-Clause" ]
1
2021-04-14T05:15:10.000Z
2021-07-02T07:23:33.000Z
Zipc_airflow/src/analyzer/nine_block_analyzer.py
open-garden/garden
588fc9d254b913548159bcd01c5b34bd1c5cbc73
[ "BSD-3-Clause" ]
1
2021-04-14T05:31:49.000Z
2021-04-14T05:31:49.000Z
from base_analayzer import BaseAnalyzer from datas.lane_data import * from utils.scanner import Scanner from utils.rdf_graph_creator import RdfGraphCreator class NineBlockAnalyzer(BaseAnalyzer): def road_lane_check(self, diff_pos, diff_lane): """ :param diff_pos: :param diff_lane: ...
39.003333
112
0.53363
79bffa171958ca8068d095d38af80ae80337a911
21,496
py
Python
mne/viz/backends/_qt.py
vagechirkov/mne-python
f20ffa0eb46e76baf4e30437bc03d765da83b38a
[ "BSD-3-Clause" ]
1,953
2015-01-17T20:33:46.000Z
2022-03-30T04:36:34.000Z
mne/viz/backends/_qt.py
jaromilfrossard/mne-python
8714cda45d0f0269c15026323a9ac689b47722f8
[ "BSD-3-Clause" ]
8,490
2015-01-01T13:04:18.000Z
2022-03-31T23:02:08.000Z
mne/viz/backends/_qt.py
jaromilfrossard/mne-python
8714cda45d0f0269c15026323a9ac689b47722f8
[ "BSD-3-Clause" ]
1,130
2015-01-08T22:39:27.000Z
2022-03-30T21:44:26.000Z
"""Qt implementation of _Renderer and GUI.""" # Authors: Guillaume Favelier <guillaume.favelier@gmail.com> # Eric Larson <larson.eric.d@gmail.com> # # License: Simplified BSD from contextlib import contextmanager import pyvista from pyvistaqt.plotting import FileDialog from PyQt5.QtCore import Qt, pyqtSign...
37.126079
179
0.639747
8b406607e4b792f3b0157c3c18f010604a498788
266
py
Python
data_collection_app/data_collection_app/doctype/product_groups/product_groups.py
georgreen/prototype-app
9cadbc305d07b5b8832630cb4a3368b2855be5da
[ "MIT" ]
null
null
null
data_collection_app/data_collection_app/doctype/product_groups/product_groups.py
georgreen/prototype-app
9cadbc305d07b5b8832630cb4a3368b2855be5da
[ "MIT" ]
null
null
null
data_collection_app/data_collection_app/doctype/product_groups/product_groups.py
georgreen/prototype-app
9cadbc305d07b5b8832630cb4a3368b2855be5da
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2020, Inquire.Solute and contributors # For license information, please see license.txt from __future__ import unicode_literals # import frappe from frappe.model.document import Document class ProductGroups(Document): pass
24.181818
53
0.778195
f37a35ee70214f09ae9862805b6dce55aa08c745
105,729
py
Python
omegapy/omega_data.py
AStcherbinine/omegapy
485bb70c253436c4ac17096857bec0a5b3b997c3
[ "MIT" ]
7
2021-07-26T12:28:17.000Z
2022-03-28T22:24:20.000Z
omegapy/omega_data.py
AStcherbinine/omegapy
485bb70c253436c4ac17096857bec0a5b3b997c3
[ "MIT" ]
1
2022-02-14T13:34:58.000Z
2022-02-16T00:29:31.000Z
omegapy/omega_data.py
AStcherbinine/omegapy
485bb70c253436c4ac17096857bec0a5b3b997c3
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ## omega_data.py ## Created by Aurélien STCHERBININE ## Last modified by Aurélien STCHERBININE : 18/03/2021 ##---------------------------------------------------------------------------------------- """Importation and correction of OMEGA/MEx observations from binaries fi...
39.436404
129
0.573362
346f67f9b7861d615a8a819ddf13950534964d65
17,484
py
Python
Applications/resources/sc_api_calls.py
afuturemodern/aeria
12f0397f43ea3552c0596a57561f3ac5d52ec67c
[ "BSD-3-Clause" ]
5
2020-07-17T16:01:42.000Z
2020-07-30T01:45:52.000Z
Applications/resources/sc_api_calls.py
afuturemodern/aeria
12f0397f43ea3552c0596a57561f3ac5d52ec67c
[ "BSD-3-Clause" ]
null
null
null
Applications/resources/sc_api_calls.py
afuturemodern/aeria
12f0397f43ea3552c0596a57561f3ac5d52ec67c
[ "BSD-3-Clause" ]
null
null
null
import soundcloud from py2neo import authenticate, Relationship, Graph from py2neo.packages.httpstream.http import SocketError from requests.exceptions import HTTPError from .utils import get_results, handle_http_errors from functools import partial client = soundcloud.Client(client_id="454aeaee30d3533d6d8f448556b50f2...
34.968
130
0.560226
527f1b9d5d5a383db6fa5492ae29fce6f7eebf4f
133
py
Python
Lists/Minus.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
null
null
null
Lists/Minus.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
null
null
null
Lists/Minus.py
Anilkumar95/python-75-hackathon
0cc9304e46ceace826090614b46d8048a068d106
[ "MIT" ]
2
2019-01-27T16:59:48.000Z
2019-01-29T13:07:40.000Z
def Diff(li1, li2): return (list(set(li1) - set(li2))) li1=['one','Yuvan'] li2=['two','frog','one'] li3=Diff(li2,li1) print(li3)
19
38
0.601504
bb14eb1a3f27c55606e6ebfacd5526a843361d36
370
py
Python
src/chapter6/exercise1.py
group17BSE1/BSE-2021
c4d5b205b1eafa8903e54724014f76764492fc9a
[ "MIT" ]
2
2021-03-23T13:10:24.000Z
2021-03-24T08:47:21.000Z
src/chapter6/exercise1.py
group17BSE1/BSE-2021
c4d5b205b1eafa8903e54724014f76764492fc9a
[ "MIT" ]
null
null
null
src/chapter6/exercise1.py
group17BSE1/BSE-2021
c4d5b205b1eafa8903e54724014f76764492fc9a
[ "MIT" ]
null
null
null
"""Write a while loop that starts at the last character in the string and works its way backwards to the first character in the string, printing each letter on a separate line, except backwards""" def backwards(word): index = len(word) - 1 while index >= 0: print(word[index]) index -= 1 word...
24.666667
87
0.683784
b1b0c0f2d0ea406a3fe541ebb5a206b55921897f
200
py
Python
Api/paginatedApi/admin.py
chetan-cv/Paginated-Data
83a790244a8fbf356f51644dd50e6e4d1804bd3a
[ "MIT" ]
null
null
null
Api/paginatedApi/admin.py
chetan-cv/Paginated-Data
83a790244a8fbf356f51644dd50e6e4d1804bd3a
[ "MIT" ]
null
null
null
Api/paginatedApi/admin.py
chetan-cv/Paginated-Data
83a790244a8fbf356f51644dd50e6e4d1804bd3a
[ "MIT" ]
1
2021-03-11T01:04:51.000Z
2021-03-11T01:04:51.000Z
from django.contrib import admin from .models import paginatedApiModel class paginatedApiAdmin(admin.ModelAdmin): list_display = ['title', 'subTitile'] search_fields = ('title', 'subTitile')
28.571429
42
0.755
f3a2eaf94fe04d99f65f7e3085e173a5ff3733df
73,255
py
Python
c7n/resources/ec2.py
CYarros10/cloud-custodian
49ea39ed8335efc37ba59d91ec6708271763c003
[ "Apache-2.0" ]
1
2020-12-18T03:27:53.000Z
2020-12-18T03:27:53.000Z
c7n/resources/ec2.py
CYarros10/cloud-custodian
49ea39ed8335efc37ba59d91ec6708271763c003
[ "Apache-2.0" ]
11
2019-12-15T17:52:14.000Z
2020-12-09T05:06:24.000Z
c7n/resources/ec2.py
CYarros10/cloud-custodian
49ea39ed8335efc37ba59d91ec6708271763c003
[ "Apache-2.0" ]
9
2019-11-18T07:46:44.000Z
2020-04-15T11:20:20.000Z
# Copyright The Cloud Custodian Authors. # SPDX-License-Identifier: Apache-2.0 import base64 import itertools import operator import random import re import zlib from botocore.exceptions import ClientError from dateutil.parser import parse from concurrent.futures import as_completed import jmespath from c7n.actions i...
33.267484
119
0.572521
ebb1e7d7f91464f96ae1ec8d9817f34b62cf67d5
798
py
Python
nidaqmx_examples/di_sw_timed.py
stafak/nidaqmx-python
f354d7971b21074c120c6f298dbbf4a5e0e4f4f4
[ "MIT" ]
252
2017-03-22T02:43:16.000Z
2022-03-27T14:44:44.000Z
nidaqmx_examples/di_sw_timed.py
stafak/nidaqmx-python
f354d7971b21074c120c6f298dbbf4a5e0e4f4f4
[ "MIT" ]
133
2017-03-21T20:57:59.000Z
2022-03-31T16:08:12.000Z
nidaqmx_examples/di_sw_timed.py
stafak/nidaqmx-python
f354d7971b21074c120c6f298dbbf4a5e0e4f4f4
[ "MIT" ]
124
2017-04-01T18:35:24.000Z
2022-03-25T06:30:00.000Z
import nidaqmx import pprint from nidaqmx.constants import ( LineGrouping) pp = pprint.PrettyPrinter(indent=4) with nidaqmx.Task() as task: task.di_channels.add_di_chan('Dev1/port0/line0', line_grouping=LineGrouping.CHAN_PER_LINE) print('1 Channel 1 Sample Read: ') ...
25.741935
74
0.651629
4917802d5d1d63c91234c9d5d6b1ff1db832ab5c
3,423
py
Python
niftymic/base/exceptions.py
martaranzini/NiftyMIC
6bd3c914dad8f2983e84ef009b944c429e1fafb3
[ "BSD-3-Clause" ]
86
2017-11-23T01:37:42.000Z
2022-03-10T01:46:48.000Z
niftymic/base/exceptions.py
martaranzini/NiftyMIC
6bd3c914dad8f2983e84ef009b944c429e1fafb3
[ "BSD-3-Clause" ]
20
2018-10-26T04:14:53.000Z
2022-03-31T07:44:58.000Z
niftymic/base/exceptions.py
martaranzini/NiftyMIC
6bd3c914dad8f2983e84ef009b944c429e1fafb3
[ "BSD-3-Clause" ]
23
2018-01-26T12:56:37.000Z
2022-01-24T05:20:18.000Z
## # \file exceptions.py # \brief User-specific exceptions # # \author Michael Ebner (michael.ebner.14@ucl.ac.uk) # \date June 2017 # ## # Error handling in case the directory does not contain valid nifti file # \date 2017-06-14 11:11:37+0100 # class InputFilesNotValid(Exception): ## # \...
25.736842
78
0.617295
eace3f72042e1b81180c6eeb07eb5e2dd3f7c97e
17,576
py
Python
kmip/tests/unit/core/secrets/test_certificate.py
ondrap/PyKMIP
c8ea17d8faf827e0f9d004972835128a1a71569f
[ "Apache-2.0" ]
179
2015-03-20T06:08:59.000Z
2022-03-14T02:24:38.000Z
kmip/tests/unit/core/secrets/test_certificate.py
imharshr/PyKMIP
9403ff3d2aa83de4c786b8eedeb85d169fd4a594
[ "Apache-2.0" ]
600
2015-04-08T14:14:48.000Z
2022-03-28T13:49:47.000Z
kmip/tests/unit/core/secrets/test_certificate.py
imharshr/PyKMIP
9403ff3d2aa83de4c786b8eedeb85d169fd4a594
[ "Apache-2.0" ]
131
2015-03-30T12:51:49.000Z
2022-03-23T04:34:34.000Z
# Copyright (c) 2015 The Johns Hopkins University/Applied Physics Laboratory # 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/licenses/LICEN...
46.37467
79
0.630121
6bf8b82991d24a6e2def50622f1af9041e4302ba
390
py
Python
pybricks/hubs/__stub/__buttons.py
drewwhis/pybricks-fll
9d6672df9aeef375d3cd0983dc710abeebf9c798
[ "MIT" ]
17
2019-08-30T12:30:34.000Z
2021-11-02T16:06:46.000Z
pybricks/hubs/__stub/__buttons.py
drewwhis/pybricks-fll
9d6672df9aeef375d3cd0983dc710abeebf9c798
[ "MIT" ]
19
2019-10-20T04:01:20.000Z
2021-09-03T18:47:07.000Z
pybricks/hubs/__stub/__buttons.py
drewwhis/pybricks-fll
9d6672df9aeef375d3cd0983dc710abeebf9c798
[ "MIT" ]
8
2019-09-21T03:13:21.000Z
2020-12-23T17:16:52.000Z
from pybricks.parameters import Button from typing import List class Buttons: """ A stub class to represent the buttons member of the EV3Brick class. """ def __init__(self): ... def pressed(self) -> List[Button]: """ Checks which buttons are currently pressed. Re...
18.571429
71
0.589744
46d6b761488240632d7eae83ea13cdb66ae4d0ea
1,718
py
Python
tests/adaptors/protfragmentadaptortestcase.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
tests/adaptors/protfragmentadaptortestcase.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
tests/adaptors/protfragmentadaptortestcase.py
tlb-lab/credoscript
32bdf08d84703dc2062dae4df1a95587d36c3cf7
[ "MIT" ]
null
null
null
from credoscript import adaptors, models from tests import CredoAdaptorTestCase class ProtFragmentAdaptorTestCase(CredoAdaptorTestCase): def setUp(self): self.adaptor = adaptors.ProtFragmentAdaptor() self.expected_entity = models.ProtFragment def test_fetch_by_prot_fragment_id(self): ...
45.210526
92
0.728172
8bce59014d15cb371e8f8ccb3677f36e8da69601
7,422
py
Python
google/cloud/container_v1beta1/types/__init__.py
renovate-bot/python-container
b09b57abd1f7540c6f65c5204c14820b595593c3
[ "Apache-2.0" ]
29
2020-03-10T09:20:21.000Z
2022-03-23T12:28:01.000Z
google/cloud/container_v1beta1/types/__init__.py
renovate-bot/python-container
b09b57abd1f7540c6f65c5204c14820b595593c3
[ "Apache-2.0" ]
86
2020-01-31T19:18:22.000Z
2022-03-31T23:08:00.000Z
google/cloud/container_v1beta1/types/__init__.py
renovate-bot/python-container
b09b57abd1f7540c6f65c5204c14820b595593c3
[ "Apache-2.0" ]
12
2020-02-03T18:30:16.000Z
2022-01-29T08:09:17.000Z
# -*- 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 or...
25.860627
74
0.726489
0b10baf6c8f198535fc729a6c387b4322841f326
17,861
py
Python
sdk/tables/azure-data-tables/tests/_shared/testcase.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/tests/_shared/testcase.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
null
null
null
sdk/tables/azure-data-tables/tests/_shared/testcase.py
ankitarorabit/azure-sdk-for-python
dd90281cbad9400f8080754a5ef2f56791a5a88f
[ "MIT" ]
null
null
null
# coding: utf-8 # ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # ---------------------------------------------------------------------...
38.002128
127
0.61178
b9c8d6073b48bc2b7b2237104c814b42f3ce8ef5
250
py
Python
image-captioning-approaches/preprocessing/utils.py
Sapphirine/legendary-conceptual-captions
2a70f2a3de813bc4609bb8dbb221820692ec6d55
[ "MIT" ]
1
2020-03-24T13:54:18.000Z
2020-03-24T13:54:18.000Z
image-captioning-approaches/preprocessing/utils.py
Sapphirine/legendary-conceptual-captions
2a70f2a3de813bc4609bb8dbb221820692ec6d55
[ "MIT" ]
22
2019-11-18T10:55:26.000Z
2019-12-25T09:05:27.000Z
image-captioning-approaches/preprocessing/utils.py
Sapphirine/legendary-conceptual-captions
2a70f2a3de813bc4609bb8dbb221820692ec6d55
[ "MIT" ]
1
2019-11-30T20:46:20.000Z
2019-11-30T20:46:20.000Z
import errno import os def make_directories(directory_path): if not os.path.exists(directory_path): try: os.makedirs(directory_path) except OSError as e: if e.errno != errno.EEXIST: raise
20.833333
42
0.6
7999fb20216e8827d8f84b344ab1f5a89e2ec406
8,014
py
Python
setup.py
THIS-IS-NOT-A-BACKUP/mypy
9b1cf1e7af5e4a28dd34830c18da91f3381eca7c
[ "PSF-2.0" ]
null
null
null
setup.py
THIS-IS-NOT-A-BACKUP/mypy
9b1cf1e7af5e4a28dd34830c18da91f3381eca7c
[ "PSF-2.0" ]
null
null
null
setup.py
THIS-IS-NOT-A-BACKUP/mypy
9b1cf1e7af5e4a28dd34830c18da91f3381eca7c
[ "PSF-2.0" ]
null
null
null
#!/usr/bin/env python import glob import os import os.path import sys if sys.version_info < (3, 6, 0): sys.stderr.write("ERROR: You need Python 3.6 or later to use mypy.\n") exit(1) # we'll import stuff from the source tree, let's ensure is on the sys path sys.path.insert(0, os.path.dirname(os.path.realpath(...
36.930876
95
0.603444
cb6cb65f9393fd0b05ae1758e219e0bc388be143
346
py
Python
Problem 01/ex001.py
marcoshsq/Project_Euler
811ffd828bb73ded841bf96d64c6c797d4725252
[ "MIT" ]
null
null
null
Problem 01/ex001.py
marcoshsq/Project_Euler
811ffd828bb73ded841bf96d64c6c797d4725252
[ "MIT" ]
null
null
null
Problem 01/ex001.py
marcoshsq/Project_Euler
811ffd828bb73ded841bf96d64c6c797d4725252
[ "MIT" ]
null
null
null
# Multiples of 3 or 5 ''' If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multiples of 3 or 5 below 1000.''' sum = 0 for i in range(1, 1000): if i % 3 == 0 or i % 5 == 0 : sum += i print(sum...
21.625
74
0.583815
1fd3887f266105bcddc8bc70bdd77d6c9c16a94f
2,316
py
Python
scripts/fetch_public_recycling_points.py
Garee/glasgow-litter-mirror
0c50167f43608a832b3a917334b2837ea45819a9
[ "MIT" ]
null
null
null
scripts/fetch_public_recycling_points.py
Garee/glasgow-litter-mirror
0c50167f43608a832b3a917334b2837ea45819a9
[ "MIT" ]
null
null
null
scripts/fetch_public_recycling_points.py
Garee/glasgow-litter-mirror
0c50167f43608a832b3a917334b2837ea45819a9
[ "MIT" ]
null
null
null
""" usage: fetch_public_recycling_points.py [-h] out_path Download public recycling facility locations in Glasgow City. positional arguments: out_path file path in which to store the public recycling point data optional arguments: -h, --help show this help message and exit example usage: python scripts/f...
23.393939
83
0.655872
eec51a7725110fecb04440137d5e1561db89a149
2,879
py
Python
SkyNetDeviceServer/drivers/HumiditySensorDriver.py
tsnik/SkyNet
c5e227d1a93ca7cdeb5bbbe57e89810248d4b8a2
[ "MIT" ]
null
null
null
SkyNetDeviceServer/drivers/HumiditySensorDriver.py
tsnik/SkyNet
c5e227d1a93ca7cdeb5bbbe57e89810248d4b8a2
[ "MIT" ]
null
null
null
SkyNetDeviceServer/drivers/HumiditySensorDriver.py
tsnik/SkyNet
c5e227d1a93ca7cdeb5bbbe57e89810248d4b8a2
[ "MIT" ]
null
null
null
from drivers.SimpleDriver import SimpleDriver from FieldInfo import FieldInfo from twisted.internet import defer, reactor, threads from twisted.protocols import basic import serial class HumiditySensorDriver(SimpleDriver): def __init__(self, did, name, updated): SimpleDriver.__init__(self, did, name, upda...
32.348315
89
0.565821
f3a4734a20e93023a29cbf01fbdeb1374208c517
1,749
py
Python
tools/telemetry/telemetry/page/actions/tap_element.py
MIPS/external-chromium_org
e31b3128a419654fd14003d6117caa8da32697e7
[ "BSD-3-Clause" ]
2
2018-11-24T07:58:44.000Z
2019-02-22T21:02:46.000Z
tools/telemetry/telemetry/page/actions/tap_element.py
carlosavignano/android_external_chromium_org
2b5652f7889ccad0fbdb1d52b04bad4c23769547
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/telemetry/telemetry/page/actions/tap_element.py
carlosavignano/android_external_chromium_org
2b5652f7889ccad0fbdb1d52b04bad4c23769547
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
3
2017-07-31T19:09:52.000Z
2019-01-04T18:48:50.000Z
# Copyright (c) 2013 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. from telemetry.core import exceptions from telemetry.core import util from telemetry.page import page as page_module from telemetry.page.actions import p...
38.021739
77
0.708977
a9f373d7a2e38fdf7d8a4e1f82a8d106b3c4fc3f
1,066
py
Python
orttraining/orttraining/python/training/ortmodule/__init__.py
kimjungwow/onnxruntime-riscv
3c21abef03190648fe68a6633ac026725e6dfc58
[ "MIT" ]
18
2020-05-19T12:48:07.000Z
2021-04-28T06:41:57.000Z
orttraining/orttraining/python/training/ortmodule/__init__.py
kimjungwow/onnxruntime-riscv
3c21abef03190648fe68a6633ac026725e6dfc58
[ "MIT" ]
61
2021-05-31T05:15:41.000Z
2022-03-29T22:34:33.000Z
orttraining/orttraining/python/training/ortmodule/__init__.py
ekmixon/onnxruntime
1ab8a95eb6675afb6d0ad9d93600ef0022e2ddb5
[ "MIT" ]
9
2021-05-14T20:17:26.000Z
2022-03-20T11:44:29.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. # -------------------------------------------------------------------------- from packaging import version # All global constant goes here, before O...
41
120
0.658537
a50856e6b07a521927a1d76d5e91e5dc05c6715a
6,203
py
Python
convert_toggl/convert_toggl.py
dektoud/convert_toggl
b000bdd0e04b27e632c5b413e64265b353c69d2b
[ "MIT" ]
1
2021-11-01T08:42:49.000Z
2021-11-01T08:42:49.000Z
convert_toggl/convert_toggl.py
dektoud/convert_toggl
b000bdd0e04b27e632c5b413e64265b353c69d2b
[ "MIT" ]
null
null
null
convert_toggl/convert_toggl.py
dektoud/convert_toggl
b000bdd0e04b27e632c5b413e64265b353c69d2b
[ "MIT" ]
null
null
null
"""Convert toggle exports, optionally by project""" import argparse import os import pandas as pd pd.set_option('display.max_colwidth', None) import xlsxwriter THISDIR = os.path.abspath(os.path.dirname(__file__)) def set_name(name): """Set ``name`` to disk""" with open(os.path.join(THISDIR, 'name.txt'), '...
37.36747
86
0.571336
f01adffe44c0cde898508ea0f0a31db3b847a88e
10,748
py
Python
src/robot/testdoc.py
topherszucs/robotframework
61e1b70bbe2c7c735eef244ba6a4ee381c54c871
[ "ECL-2.0", "Apache-2.0" ]
1
2019-12-06T15:15:16.000Z
2019-12-06T15:15:16.000Z
src/robot/testdoc.py
Tset-Noitamotua/robotframework
2635811f4c06190dfb37db8d5c4f07d1f37539b3
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
src/robot/testdoc.py
Tset-Noitamotua/robotframework
2635811f4c06190dfb37db8d5c4f07d1f37539b3
[ "ECL-2.0", "Apache-2.0" ]
1
2022-03-16T01:51:00.000Z
2022-03-16T01:51:00.000Z
#!/usr/bin/env python # Copyright 2008-2015 Nokia Networks # Copyright 2016- Robot Framework Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.or...
35.355263
86
0.641236
f78a9fc1e7dbb7628b609f4ebc404b7cc998b92d
7,535
py
Python
cppython_core/schema.py
Synodic-Software/CPPython-Core
9924b2fa5c6377544630db6a68f70d178636a907
[ "MIT" ]
null
null
null
cppython_core/schema.py
Synodic-Software/CPPython-Core
9924b2fa5c6377544630db6a68f70d178636a907
[ "MIT" ]
null
null
null
cppython_core/schema.py
Synodic-Software/CPPython-Core
9924b2fa5c6377544630db6a68f70d178636a907
[ "MIT" ]
1
2022-03-12T15:59:42.000Z
2022-03-12T15:59:42.000Z
""" Data types for CPPython that encapsulate the requirements between the plugins and the core library """ from abc import ABC, abstractmethod from dataclasses import dataclass from enum import Enum from logging import Logger, getLogger from pathlib import Path from typing import Optional, Type, TypeVar from packagin...
23.920635
105
0.622296
569abb9cdb15beb93c3a9a8d73aa70021189e6b8
2,230
py
Python
misc/createChangeLog/changeLogToWikiAndDoc.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
10
2018-09-05T15:12:26.000Z
2019-05-04T05:41:39.000Z
misc/createChangeLog/changeLogToWikiAndDoc.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
1
2019-08-21T12:12:25.000Z
2019-08-27T17:11:05.000Z
misc/createChangeLog/changeLogToWikiAndDoc.py
cfsengineering/tigl
abfbb57b82dc6beac7cde212a4cd5e0aed866db8
[ "Apache-2.0" ]
1
2019-01-12T13:54:14.000Z
2019-01-12T13:54:14.000Z
#!/usr/bin/python import argparse import subprocess import os import shutil def run(cmd): try: p = subprocess.Popen(cmd, shell=True) p.communicate() status = p.returncode if status: raise except: print("An error has occured while running the following shell...
28.227848
121
0.604933
73d94a4543982d78a259262b4eb83244c6b2bfa8
1,785
py
Python
src/graph_optimization/plot_lib.py
cs169-wi20-robotics-perception-systems/graph_optimization
34ee059da4736ed8572c9e135e87453b19534326
[ "MIT" ]
null
null
null
src/graph_optimization/plot_lib.py
cs169-wi20-robotics-perception-systems/graph_optimization
34ee059da4736ed8572c9e135e87453b19534326
[ "MIT" ]
null
null
null
src/graph_optimization/plot_lib.py
cs169-wi20-robotics-perception-systems/graph_optimization
34ee059da4736ed8572c9e135e87453b19534326
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt def plot_state(truth_x, odom_x, optimized_x, time, file_name): """ Plots the state estimate over time. Then saves the plot figure. Args: truth_x: The ground truth values of the robot. odom_x: The state estimate values of the robot defined ...
34.326923
101
0.67563
22832766c4cc91f06bf39080f3a3b1836e81622b
3,197
py
Python
jodconverter-web/src/main/office/program/python-core-2.7.6/lib/io.py
huleigithup/filepreview
815fac0e21547301604bb5fd623a91d885cb4437
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
BitmessageKit/Vendor/static-python/Lib/io.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
BitmessageKit/Vendor/static-python/Lib/io.py
VoluntaryLabs/BitmessageKit
dd634977a629ab4dec184e12bb6324cc01149ba3
[ "MIT" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
"""The io module provides the Python interfaces to stream handling. The builtin open function is defined in this module. At the top of the I/O hierarchy is the abstract base class IOBase. It defines the basic interface to a stream. Note, however, that there is no separation between reading and writing to streams; impl...
35.522222
76
0.734751
caecd7d37165425ed1359a9f014c5cf5eaacc06c
1,012
py
Python
groupdocs/models/SignatureRolesResult.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
groupdocs/models/SignatureRolesResult.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
groupdocs/models/SignatureRolesResult.py
groupdocs-legacy-sdk/python
80e5ef5a9a14ac4a7815c6cf933b5b2997381455
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Copyright 2012 GroupDocs. 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...
28.914286
77
0.66996
5db5b809d1140125093ba2dc9668af7004c0f2ea
3,051
py
Python
extras/amld/notebooks/solutions/_derived/4_get_logits_img.py
luyang1210/tensorflow
948324f4cafdc97ae51c0e44fc1c28677a6e2e8a
[ "Apache-2.0" ]
1
2019-04-28T15:46:45.000Z
2019-04-28T15:46:45.000Z
extras/amld/notebooks/solutions/_derived/4_get_logits_img.py
luyang1210/tensorflow
948324f4cafdc97ae51c0e44fc1c28677a6e2e8a
[ "Apache-2.0" ]
null
null
null
extras/amld/notebooks/solutions/_derived/4_get_logits_img.py
luyang1210/tensorflow
948324f4cafdc97ae51c0e44fc1c28677a6e2e8a
[ "Apache-2.0" ]
1
2020-11-18T04:43:33.000Z
2020-11-18T04:43:33.000Z
# (Written into separate file for sharing with clode code.) # Define a function that computes "logits" from features. # The "logits" are unbound numbers that will be used as the # input to the softmax function (which is basically a sigmoid # function extended to more than two classes). The more positive # a logit, the...
49.209677
77
0.677483
6e9552c27799c84b9f73f008f7f88c21ed7dd258
174,265
py
Python
manager/integration/tests/test_basic.py
derekbit/longhorn-tests
6b96077d01aa61215fc2315d4f0bcdd836c0f662
[ "Apache-2.0" ]
4
2017-05-14T04:22:34.000Z
2019-03-13T08:02:02.000Z
manager/integration/tests/test_basic.py
derekbit/longhorn-tests
6b96077d01aa61215fc2315d4f0bcdd836c0f662
[ "Apache-2.0" ]
41
2016-07-27T16:59:06.000Z
2019-06-05T18:06:16.000Z
manager/integration/tests/test_basic.py
derekbit/longhorn-tests
6b96077d01aa61215fc2315d4f0bcdd836c0f662
[ "Apache-2.0" ]
18
2016-07-11T18:14:27.000Z
2019-06-05T07:06:37.000Z
import pytest import os import subprocess import time import random import common from common import client, random_labels, volume_name # NOQA from common import core_api, apps_api, pod, statefulset # NOQA from common import SIZE, EXPAND_SIZE from common import check_device_data, write_device_random_data from comm...
40.413961
157
0.685433
5f849c47ff77d32723291c16f34b3706cd82a0f1
520
py
Python
prototype/back-end/rateapi/migrations/0013_auto_20171119_1527.py
nWo-deHack/CNAP
f4ece37bdf148627d686cda5134f6a0991ae4cfe
[ "Unlicense" ]
null
null
null
prototype/back-end/rateapi/migrations/0013_auto_20171119_1527.py
nWo-deHack/CNAP
f4ece37bdf148627d686cda5134f6a0991ae4cfe
[ "Unlicense" ]
null
null
null
prototype/back-end/rateapi/migrations/0013_auto_20171119_1527.py
nWo-deHack/CNAP
f4ece37bdf148627d686cda5134f6a0991ae4cfe
[ "Unlicense" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2017-11-19 13:27 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('rateapi', '0012_auto_20171119_1524'), ] operations = [ migr...
23.636364
100
0.634615
dca031d3e95f32dcee75fed9b57beac87f19fa75
5,717
py
Python
train_val.py
actionLUO/caffe-u-net
81525e862f84694c5594a6ffb9a33c53105ecec9
[ "MIT" ]
15
2017-11-28T17:17:37.000Z
2019-02-19T01:41:11.000Z
train_val.py
actionLUO/caffe-u-net
81525e862f84694c5594a6ffb9a33c53105ecec9
[ "MIT" ]
null
null
null
train_val.py
actionLUO/caffe-u-net
81525e862f84694c5594a6ffb9a33c53105ecec9
[ "MIT" ]
5
2017-12-04T18:32:54.000Z
2019-05-23T04:02:08.000Z
import caffe import numpy as np from PIL import Image import random class VALSegDataLayer(caffe.Layer): def setup(self, bottom, top): # config params = eval(self.param_str) self.val_dir = params['val_dir'] self.split = params['split'] self.mean = np.array(params['mean']) ...
31.070652
82
0.560784
6c6e5f420d25c29c9b92a4975c9521754dcfc4cb
5,712
py
Python
charcoal/together_tree_to_json.py
ctb/2020-charcoal-metagenome-abundance-foo
dc99f7774c20c942a2966186496351d7e575e34a
[ "BSD-3-Clause" ]
null
null
null
charcoal/together_tree_to_json.py
ctb/2020-charcoal-metagenome-abundance-foo
dc99f7774c20c942a2966186496351d7e575e34a
[ "BSD-3-Clause" ]
null
null
null
charcoal/together_tree_to_json.py
ctb/2020-charcoal-metagenome-abundance-foo
dc99f7774c20c942a2966186496351d7e575e34a
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/env python """ Output a more usable JSON format for the together tree. Guide to mappings output in the JSON file: # hashval -> (contig name, fragment start, fragment end) output['hashes_to_fragment'] = hashes_to_fragment # leaf_id -> hashval output['leaves_to_hashval'] = leaves_to_hashval...
30.709677
99
0.608368
c7266107ed99897852b0a34ddd777048dcfc79a4
3,864
py
Python
BasicallyMainAtThisPoint.py
Dfree3/TheUnforgiven
c4f9e1820edade1bdc845aa707125dddcb9b6aeb
[ "MIT" ]
null
null
null
BasicallyMainAtThisPoint.py
Dfree3/TheUnforgiven
c4f9e1820edade1bdc845aa707125dddcb9b6aeb
[ "MIT" ]
null
null
null
BasicallyMainAtThisPoint.py
Dfree3/TheUnforgiven
c4f9e1820edade1bdc845aa707125dddcb9b6aeb
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup import requests def banChamps(): page = requests.get('http://na.op.gg/champion/statistics') # gets the link and puts it into page # print(page.status_code) #A status_code of 200 means that the page downloaded successfully soup = BeautifulSoup(page.content, 'html.parser') #...
50.842105
247
0.667702
8370791c6a7dd0e9a85bb4d85b44795064292c02
319
py
Python
src/ice/runners/qt_runner.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/runners/qt_runner.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
src/ice/runners/qt_runner.py
geraldhumphries/Ice
ec466e85407361bbbc87b9e484fe427c1769b4fe
[ "MIT" ]
null
null
null
""" qt_runner.py Created by Scott on 2014-08-14. Copyright (c) 2014 Scott Rice. All rights reserved. """ import sys from PyQt4 import QtGui from ice.gui.main_window import MainWindow class QtRunner(object): def run(self, argv): app = QtGui.QApplication(argv) mw = MainWindow() sys.exit(app.exec_())
15.95
51
0.705329
8ceb821a642a38e7889ac15ad8ed585d4fc48e8b
1,379
py
Python
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_blocks/transformers/tests/test_visibility.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
3
2021-12-15T04:58:18.000Z
2022-02-06T12:15:37.000Z
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_blocks/transformers/tests/test_visibility.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
null
null
null
Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/course_blocks/transformers/tests/test_visibility.py
osoco/better-ways-of-thinking-about-software
83e70d23c873509e22362a09a10d3510e10f6992
[ "MIT" ]
1
2019-01-02T14:38:50.000Z
2019-01-02T14:38:50.000Z
""" Tests for VisibilityTransformer. """ import ddt from ..visibility import VisibilityTransformer from .helpers import BlockParentsMapTestCase, update_block @ddt.ddt class VisibilityTransformerTestCase(BlockParentsMapTestCase): """ VisibilityTransformer Test """ TRANSFORMER_CLASS_TO_TEST = Visibil...
28.729167
90
0.537346
ff298e1bc37a79873e3a3a9be84f4cd6fe20a416
751
py
Python
ocaml/preprocess.py
kyuridenamida/competitive-library
a2bea434c4591359c208b865d2d4dc25574df24d
[ "MIT" ]
3
2017-04-09T10:12:31.000Z
2019-02-11T03:11:27.000Z
ocaml/preprocess.py
kyuridenamida/competitive-library
a2bea434c4591359c208b865d2d4dc25574df24d
[ "MIT" ]
null
null
null
ocaml/preprocess.py
kyuridenamida/competitive-library
a2bea434c4591359c208b865d2d4dc25574df24d
[ "MIT" ]
1
2019-11-29T06:11:10.000Z
2019-11-29T06:11:10.000Z
#!/usr/bin/env python import argparse import os import re def expand(fname, parent_files): if fname in parent_files: raise Exception('circular dependency') source = open(fname, 'r') res = "" for line in source: match = re.match('\(\*\+\s*import\s+([^\s]*)\s*\+\*\)\n', line) if...
25.033333
78
0.593875
386cfc0a24f49611569336952c42dbaed4e99e65
4,373
py
Python
indra/config.py
qiuhaoling/indra
fa1fb31c4333ea63d023181eaf6f759e3dd3b400
[ "BSD-2-Clause" ]
null
null
null
indra/config.py
qiuhaoling/indra
fa1fb31c4333ea63d023181eaf6f759e3dd3b400
[ "BSD-2-Clause" ]
null
null
null
indra/config.py
qiuhaoling/indra
fa1fb31c4333ea63d023181eaf6f759e3dd3b400
[ "BSD-2-Clause" ]
null
null
null
import os import sys import shutil import logging if sys.version_info[0] == 3: from configparser import RawConfigParser else: from ConfigParser import RawConfigParser logger = logging.getLogger(__name__) # If the configuration file does not exist, try to create it from the default home_dir = os.path.expandu...
31.235714
77
0.653327
a605a06cb910d555ccf8dae18a5a14916d4651bd
5,958
py
Python
a10sdk/core/system/system_icmp_stats.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
16
2015-05-20T07:26:30.000Z
2021-01-23T11:56:57.000Z
a10sdk/core/system/system_icmp_stats.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
6
2015-03-24T22:07:11.000Z
2017-03-28T21:31:18.000Z
a10sdk/core/system/system_icmp_stats.py
deepfield/a10sdk-python
bfaa58099f51f085d5e91652d1d1a3fd5c529d5d
[ "Apache-2.0" ]
23
2015-03-29T15:43:01.000Z
2021-06-02T17:12:01.000Z
from a10sdk.common.A10BaseClass import A10BaseClass class Stats(A10BaseClass): """This class does not support CRUD Operations please use parent. :param inechoreps: {"description": "In Echo replies", "format": "counter", "type": "number", "oid": "10", "optional": true, "size": "2"} :param outaddrmask...
54.66055
157
0.593152
f23d31bb0eb1289b1066709419f007374ca03b15
478
py
Python
backend/labels/migrations/0002_rename_annotationrelations_relation.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
2
2021-12-11T22:25:27.000Z
2021-12-20T01:02:16.000Z
backend/labels/migrations/0002_rename_annotationrelations_relation.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
1
2022-02-15T10:50:18.000Z
2022-02-15T10:50:18.000Z
backend/labels/migrations/0002_rename_annotationrelations_relation.py
daobook/doccano
45122687740f74f19e2578c5cf28507f0839bf16
[ "MIT" ]
null
null
null
# Generated by Django 3.2.11 on 2022-01-27 02:39 from django.conf import settings from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0031_auto_20220127_0032'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('labels', '0001_initi...
22.761905
66
0.642259
8d4c07bff12045de6364d0c3c6cd1172aaa79206
29,247
py
Python
salt/fileserver/hgfs.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
19
2016-01-29T14:37:52.000Z
2022-03-30T18:08:01.000Z
salt/fileserver/hgfs.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
223
2016-03-02T16:39:41.000Z
2022-03-03T12:26:35.000Z
salt/fileserver/hgfs.py
babs/salt
c536ea716d5308880b244e7980f4b659d86fc104
[ "Apache-2.0" ]
64
2016-02-04T19:45:26.000Z
2021-12-15T02:02:31.000Z
""" Mercurial Fileserver Backend To enable, add ``hgfs`` to the :conf_master:`fileserver_backend` option in the Master config file. .. code-block:: yaml fileserver_backend: - hgfs .. note:: ``hg`` also works here. Prior to the 2018.3.0 release, *only* ``hg`` would work. After enabling this backen...
32.460599
88
0.554006
92df7901a4d7b6a1ddef698f1732bb70b73782cc
6,398
py
Python
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_restore/Opengauss_Function_Tools_gs_restore_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_restore/Opengauss_Function_Tools_gs_restore_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/TOOLS/SERVER_TOOLS/gs_restore/Opengauss_Function_Tools_gs_restore_Case0017.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
36.770115
84
0.544545
dcc683b8398c886b3f0b4ddfed5199b4ab077348
4,450
py
Python
src/worker.py
misof/corazon
a9f076c57145db42828d4f53a43263d2c4ac80e0
[ "MIT" ]
2
2020-03-23T15:35:52.000Z
2020-03-23T18:14:49.000Z
src/worker.py
misof/corazon
a9f076c57145db42828d4f53a43263d2c4ac80e0
[ "MIT" ]
null
null
null
src/worker.py
misof/corazon
a9f076c57145db42828d4f53a43263d2c4ac80e0
[ "MIT" ]
null
null
null
import math import random import time from src.constants import * from src.helper_functions import * class Worker: def __init__(self): self.position = (random.randint(CITYX1,CITYX2), random.randint(CITYY1,CITYY2)) self.pending_houses = [] self.has_cargo = False self.time_of_next_h...
35.887097
178
0.596854
89add68c51b6bdec1584d022fcd1a84557ead2a2
5,652
py
Python
python/dllib/src/bigdl/dllib/nn/keras/optimization.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
python/dllib/src/bigdl/dllib/nn/keras/optimization.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
python/dllib/src/bigdl/dllib/nn/keras/optimization.py
EmiCareOfCell44/BigDL
6278ee8eed09b5072da53dab3a99530cf5f69ba2
[ "Apache-2.0" ]
null
null
null
# # Copyright 2016 The BigDL Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
47.495798
105
0.619604
bf34f35b229656ae10648de3b5892c3181737542
3,080
py
Python
Tests/scripts/constants.py
crayy8/content
998fe0dc6df24e40e773dd19b388663c57b0f48b
[ "MIT" ]
null
null
null
Tests/scripts/constants.py
crayy8/content
998fe0dc6df24e40e773dd19b388663c57b0f48b
[ "MIT" ]
null
null
null
Tests/scripts/constants.py
crayy8/content
998fe0dc6df24e40e773dd19b388663c57b0f48b
[ "MIT" ]
null
null
null
# dirs INTEGRATIONS_DIR = "Integrations" SCRIPTS_DIR = "Scripts" PLAYBOOKS_DIR = "Playbooks" TEST_PLAYBOOKS_DIR = "TestPlaybooks" REPORTS_DIR = "Reports" DASHBOARDS_DIR = "Dashboards" WIDGETS_DIR = "Widgets" INCIDENT_FIELDS_DIR = "IncidentFields" LAYOUTS_DIR = "Layouts" CLASSIFIERS_DIR = "Classifiers" MISC_DIR = "Misc"...
42.777778
111
0.73539
e4d6b2cd0e6e209cb64ad51f2db404f7896b63f0
17,650
py
Python
lib/libgen.py
RenolY2/p3-editor
37dcace4bbced09ace84ed491e8524dead5a7b5b
[ "MIT" ]
6
2021-10-30T04:04:35.000Z
2022-01-27T12:31:35.000Z
lib/libgen.py
RenolY2/p3-editor
37dcace4bbced09ace84ed491e8524dead5a7b5b
[ "MIT" ]
2
2021-03-05T23:00:32.000Z
2022-01-27T12:31:37.000Z
lib/libgen.py
RenolY2/p3-editor
37dcace4bbced09ace84ed491e8524dead5a7b5b
[ "MIT" ]
4
2019-05-29T13:46:26.000Z
2022-01-12T20:34:19.000Z
from collections import OrderedDict from copy import deepcopy import sys import os sys.path.append(os.path.join(os.path.dirname(__file__), os.path.pardir)) from lib.vectors import Vector3 class GenSyntaxError(Exception): def __init__(self, message, data): self.message = message self.data = data ...
31.687612
127
0.526856
add6b5d15721f4d958288b159224154980c0dede
694
py
Python
transformer/converter/converter.py
SimpleConstructs/fixed-width-parser
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
null
null
null
transformer/converter/converter.py
SimpleConstructs/fixed-width-parser
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
3
2021-07-18T14:34:38.000Z
2021-07-25T12:49:09.000Z
transformer/converter/converter.py
SimpleConstructs/fixed-width-transformer
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
[ "Apache-2.0" ]
null
null
null
import pandas as pd from transformer.converter import ConverterConfig from transformer.library.exceptions import ConversionError class AbstractConverter: def run(self, config: ConverterConfig, series: pd.Series) -> pd.Series: pass class StrConverter(AbstractConverter): def run(self, config: ConverterConfig,...
33.047619
99
0.73487
8a89b8cb35af585be164b21e6305ee51c78560a7
803
py
Python
commit/test.py
KGBMAX/OSLAB
0f4f57645c30ba75785da45c13edf04fef972e60
[ "Apache-2.0" ]
1
2019-09-03T00:47:26.000Z
2019-09-03T00:47:26.000Z
commit/test.py
KGBMAX/OSLAB
0f4f57645c30ba75785da45c13edf04fef972e60
[ "Apache-2.0" ]
null
null
null
commit/test.py
KGBMAX/OSLAB
0f4f57645c30ba75785da45c13edf04fef972e60
[ "Apache-2.0" ]
null
null
null
import os, sys filename = '10175110001_李明_Lab0' def main(): filename = sys.argv[1] name_list = filename.split('_') assert len(name_list) == 3 assert len(name_list[0]) == 11 assert name_list[2] == 'Lab0' files = os.listdir(filename) if len(files) != 3: print("error: the num of file...
24.333333
54
0.627646
05afadc6a5e0ca28d15ec6d1331bbab1cd78ee8b
2,385
py
Python
nnunet/paths.py
sunycl/nnUNet
e0a014eedf23435321f835394c61ab515a85577a
[ "Apache-2.0" ]
1
2020-09-09T11:57:47.000Z
2020-09-09T11:57:47.000Z
nnunet/paths.py
wenwenyu/nnUNet
e0a014eedf23435321f835394c61ab515a85577a
[ "Apache-2.0" ]
null
null
null
nnunet/paths.py
wenwenyu/nnUNet
e0a014eedf23435321f835394c61ab515a85577a
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany # # 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://w...
45
127
0.772746
2c613d1db3596552aabf03695a4f30fa835e8346
3,652
py
Python
elasticdl_preprocessing/tests/feature_column_test.py
tonyyang-svail/elasticdl
f7d266cf600c7205d68f59447abd55eff222ac2b
[ "MIT" ]
1
2019-09-18T02:55:57.000Z
2019-09-18T02:55:57.000Z
elasticdl_preprocessing/tests/feature_column_test.py
tonyyang-svail/elasticdl
f7d266cf600c7205d68f59447abd55eff222ac2b
[ "MIT" ]
null
null
null
elasticdl_preprocessing/tests/feature_column_test.py
tonyyang-svail/elasticdl
f7d266cf600c7205d68f59447abd55eff222ac2b
[ "MIT" ]
null
null
null
import copy import unittest import numpy as np import tensorflow as tf from elasticdl_preprocessing.feature_column.feature_column import ( concatenated_categorical_column, ) def call_feature_columns(feature_columns, input): dense_features = tf.keras.layers.DenseFeatures(feature_columns) return dense_fea...
32.607143
79
0.638828
4f4caabaf89a87a1c5d17b2f48e7dd62d9f88ebf
25,799
py
Python
tools/infer/utility.py
chccc1994/PaddleOCR
03e768b26ff769a8af1adfec062c472fe54bb640
[ "Apache-2.0" ]
null
null
null
tools/infer/utility.py
chccc1994/PaddleOCR
03e768b26ff769a8af1adfec062c472fe54bb640
[ "Apache-2.0" ]
null
null
null
tools/infer/utility.py
chccc1994/PaddleOCR
03e768b26ff769a8af1adfec062c472fe54bb640
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2020 PaddlePaddle Authors. 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/licenses/LICENSE-2.0 # # Unless required by appli...
39.690769
127
0.588317
7d6cd2ac1d00b84f8796e6116ed63256e2a6972c
90
py
Python
bot/src/handler/__init__.py
demidovakatya/telegram-channels-feed
a728bdd0d0f755aebbebe7b1877a37dc39f5e64d
[ "MIT" ]
37
2017-04-20T00:23:03.000Z
2022-03-17T05:19:46.000Z
bot/src/handler/__init__.py
demidovakatya/telegram-channels-feed
a728bdd0d0f755aebbebe7b1877a37dc39f5e64d
[ "MIT" ]
51
2017-04-13T18:11:30.000Z
2021-05-25T10:04:45.000Z
bot/src/handler/__init__.py
demidovakatya/telegram-channels-feed
a728bdd0d0f755aebbebe7b1877a37dc39f5e64d
[ "MIT" ]
7
2017-05-23T10:07:14.000Z
2021-12-16T20:00:20.000Z
from .callback_handler import CallbackHandler from .command_handler import CommandHandler
30
45
0.888889
d790a830a00d938ee31d369f275258c0059dd21d
336
py
Python
draw_molecule.py
martinjrobins/example-conda
b1388404bc2df936cc93df4349a6b498aa13d9ff
[ "MIT" ]
null
null
null
draw_molecule.py
martinjrobins/example-conda
b1388404bc2df936cc93df4349a6b498aa13d9ff
[ "MIT" ]
null
null
null
draw_molecule.py
martinjrobins/example-conda
b1388404bc2df936cc93df4349a6b498aa13d9ff
[ "MIT" ]
null
null
null
from rdkit import Chem from rdkit.Chem import Draw import matplotlib.pyplot as plt # Test in a kinase inhibitor mol = Chem.MolFromSmiles("C1CC2=C3C(=CC=C2)C(=CN3C1)[C@H]4[C@@H](C(=O)NC4=O)C5=CNC6=CC=CC=C65") im = Draw.MolToImage(mol) fig = plt.figure(figsize=(10,5)) ax = plt.axes(frameon=True) ax.imshow(im) ax.axis('o...
25.846154
95
0.714286
c0ab39c7252da5a8fcf5af91a1aa55fc37e9165e
3,078
py
Python
EC2/autostop_ec2/reset-autostop-ec2.py
kyhau/aws-lambdas
be2f4de47f20dbee2157245895832d59a1e19c00
[ "Unlicense" ]
null
null
null
EC2/autostop_ec2/reset-autostop-ec2.py
kyhau/aws-lambdas
be2f4de47f20dbee2157245895832d59a1e19c00
[ "Unlicense" ]
1
2020-09-25T09:14:42.000Z
2020-09-28T09:13:43.000Z
EC2/autostop_ec2/reset-autostop-ec2.py
kyhau/aws-lambdas
be2f4de47f20dbee2157245895832d59a1e19c00
[ "Unlicense" ]
2
2018-04-22T17:46:51.000Z
2021-09-25T05:28:31.000Z
#!/usr/bin/env python from __future__ import absolute_import import argparse import boto3 # App defaults DEFAULTS = { 'ec2_regions': ['ap-southeast-2'], 'autostop_tag_key': 'AutoStop' } class ResetAutoStop(object): def __init__(self, profile_name=None): self._loaded = False self.profile_...
30.176471
107
0.604288