hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
247
max_issues_repo_name
stringlengths
4
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
4
247
max_forks_repo_name
stringlengths
4
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
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
f20a8755005ae36c95f61e4eecefff50f4435dd5
799
py
Python
actstream/settings.py
pandabearcoder/django-activity-stream
5f83213031a69bb2608327f97ff50e6bff125776
[ "BSD-3-Clause" ]
null
null
null
actstream/settings.py
pandabearcoder/django-activity-stream
5f83213031a69bb2608327f97ff50e6bff125776
[ "BSD-3-Clause" ]
null
null
null
actstream/settings.py
pandabearcoder/django-activity-stream
5f83213031a69bb2608327f97ff50e6bff125776
[ "BSD-3-Clause" ]
null
null
null
from django.conf import settings SETTINGS = getattr(settings, 'ACTSTREAM_SETTINGS', {}) def get_action_manager(): """ Returns the class of the action manager to use from ACTSTREAM_SETTINGS['MANAGER'] """ mod = SETTINGS.get('MANAGER', 'actstream.managers.ActionManager') mod_path = mod.split('.') ...
28.535714
85
0.634543
from django.conf import settings SETTINGS = getattr(settings, 'ACTSTREAM_SETTINGS', {}) def get_action_manager(): """ Returns the class of the action manager to use from ACTSTREAM_SETTINGS['MANAGER'] """ mod = SETTINGS.get('MANAGER', 'actstream.managers.ActionManager') mod_path = mod.split('.') ...
0
0
0
0
0
0
0
0
0
aced678e87940e191d3179afa615150ddfda1edd
1,263
py
Python
60-69/65_Valid Number.py
yanchdh/LeetCode
ec60364082ad246390cf3292090d23f1c7dd08b4
[ "BSD-2-Clause" ]
2
2018-01-12T08:45:08.000Z
2018-01-15T13:29:56.000Z
60-69/65_Valid Number.py
yanchdh/LeetCode
ec60364082ad246390cf3292090d23f1c7dd08b4
[ "BSD-2-Clause" ]
null
null
null
60-69/65_Valid Number.py
yanchdh/LeetCode
ec60364082ad246390cf3292090d23f1c7dd08b4
[ "BSD-2-Clause" ]
null
null
null
# -*- coding:utf-8 -*- # https://leetcode.com/problems/valid-number/description/
26.3125
64
0.354711
# -*- coding:utf-8 -*- # https://leetcode.com/problems/valid-number/description/ class Solution(object): def isNumber(self, s): """ :type s: str :rtype: bool """ SIGN = '+-' first, last = 0, len(s) - 1 while first <= last and s[first] == ' ': ...
0
0
0
1,160
0
0
0
0
23
f955679c55487858800ffc3eb7a805ba6b98357e
10,529
py
Python
neptune-python-utils/neptune_python_utils/batch_utils.py
vivgoyal-aws/amazon-neptune-tools
8f45ff47d6e320a00024d5892d750b2a2f113aa9
[ "Apache-2.0" ]
null
null
null
neptune-python-utils/neptune_python_utils/batch_utils.py
vivgoyal-aws/amazon-neptune-tools
8f45ff47d6e320a00024d5892d750b2a2f113aa9
[ "Apache-2.0" ]
null
null
null
neptune-python-utils/neptune_python_utils/batch_utils.py
vivgoyal-aws/amazon-neptune-tools
8f45ff47d6e320a00024d5892d750b2a2f113aa9
[ "Apache-2.0" ]
null
null
null
# Copyright Amazon.com, Inc. or its affiliates. # 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
37.336879
140
0.608795
# Copyright Amazon.com, Inc. or its affiliates. # 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. # A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompa...
0
336
0
4,030
0
4,660
0
251
475
b20e1c054a226a142956aa9d7c5c96f51f1d3ced
394
py
Python
ConsensusIO/web/migrations/0019_auto_20190824_1418.py
thedeg123/ConsensusIO
f96259ee611a874a79790bbe879ba4d9ed9d96e4
[ "MIT" ]
null
null
null
ConsensusIO/web/migrations/0019_auto_20190824_1418.py
thedeg123/ConsensusIO
f96259ee611a874a79790bbe879ba4d9ed9d96e4
[ "MIT" ]
null
null
null
ConsensusIO/web/migrations/0019_auto_20190824_1418.py
thedeg123/ConsensusIO
f96259ee611a874a79790bbe879ba4d9ed9d96e4
[ "MIT" ]
null
null
null
# Generated by Django 2.2.4 on 2019-08-24 20:18
20.736842
61
0.598985
# Generated by Django 2.2.4 on 2019-08-24 20:18 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('web', '0018_auto_20190730_1910'), ] operations = [ migrations.AlterField( model_name='article', name='review', ...
0
0
0
280
0
0
0
19
46
a6f3ba6cca4681b0ff380416d150c14648badcd3
485
py
Python
footballseason/migrations/0009_auto_20180919_0912.py
mkokotovich/footballpicks
9c158ed165adb040215b770a38d51a6d42a6600f
[ "MIT" ]
null
null
null
footballseason/migrations/0009_auto_20180919_0912.py
mkokotovich/footballpicks
9c158ed165adb040215b770a38d51a6d42a6600f
[ "MIT" ]
28
2015-09-15T21:04:14.000Z
2022-02-18T03:22:38.000Z
footballseason/migrations/0009_auto_20180919_0912.py
mkokotovich/footballpicks
9c158ed165adb040215b770a38d51a6d42a6600f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.5 on 2018-09-19 14:12
22.045455
58
0.682474
# Generated by Django 2.0.5 on 2018-09-19 14:12 from django.db import migrations def fix2015GameSeason(apps, schema_editor): gameRecords = apps.get_model('footballseason', 'Game') for game in gameRecords.objects.filter(season=0): game.season=2015 game.save() class Migration(migrations.Migra...
0
0
0
175
0
180
0
11
69
8972012275a0deee85aff4a017530c31591adab1
10,655
py
Python
bugsy/bug.py
pyoor/Bugsy
468c98eab2c93e9fb3c0c93be61ebd1fda5059f6
[ "Apache-2.0" ]
9
2015-02-21T19:14:45.000Z
2020-10-08T10:38:46.000Z
bugsy/bug.py
pyoor/Bugsy
468c98eab2c93e9fb3c0c93be61ebd1fda5059f6
[ "Apache-2.0" ]
57
2015-01-16T14:14:42.000Z
2020-10-13T17:16:34.000Z
bugsy/bug.py
pyoor/Bugsy
468c98eab2c93e9fb3c0c93be61ebd1fda5059f6
[ "Apache-2.0" ]
14
2015-01-15T15:01:34.000Z
2021-08-05T21:48:09.000Z
VALID_STATUS = ["ASSIGNED", "NEW", "REOPENED", "RESOLVED", "UNCONFIRMED", "VERIFIED"] VALID_RESOLUTION = ["DUPLICATE", "FIXED", "INACTIVE", "INCOMPLETE", "INVALID", "MOVED", "WONTFIX", "WORKSFORME"] ARRAY_TYPES = ["blocks", "cc", "cc_detail", "depends_on", "flags", "groups", "keyword...
32.484756
90
0.538996
import copy import datetime from .attachment import Attachment from .errors import BugException VALID_STATUS = ["ASSIGNED", "NEW", "REOPENED", "RESOLVED", "UNCONFIRMED", "VERIFIED"] VALID_RESOLUTION = ["DUPLICATE", "FIXED", "INACTIVE", "INCOMPLETE", "INVALID", "MOVED", "WONTFIX", "WORKSFORME"] ARR...
0
1,798
0
7,973
0
355
0
8
181
9c5aeffd606ddde33b19ba0c563235a6d6ea5dcc
637
py
Python
monty-hall-problem/main.py
ehsankorhani/python-playground
80464d570e2ffdcee914202897539807d6c4c0c1
[ "MIT" ]
null
null
null
monty-hall-problem/main.py
ehsankorhani/python-playground
80464d570e2ffdcee914202897539807d6c4c0c1
[ "MIT" ]
null
null
null
monty-hall-problem/main.py
ehsankorhani/python-playground
80464d570e2ffdcee914202897539807d6c4c0c1
[ "MIT" ]
null
null
null
execute(100)
24.5
84
0.621664
import random def execute(number_of_try): doors = (1, 2, 3) change_success = 0 unchange_success = 0 count = 0 while (count < number_of_try): count = count + 1 car_door = random.choice(doors) player_choice = random.choice(doors) revealed_door = [d for d in doors if ...
0
0
0
0
0
585
0
-8
45
86d8986974aef94ec342be5e21c7cf804fe7a8b4
376
py
Python
katas/kyu_7/batman_quotes.py
the-zebulan/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
40
2016-03-09T12:26:20.000Z
2022-03-23T08:44:51.000Z
katas/kyu_7/batman_quotes.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
null
null
null
katas/kyu_7/batman_quotes.py
akalynych/CodeWars
1eafd1247d60955a5dfb63e4882e8ce86019f43a
[ "MIT" ]
36
2016-11-07T19:59:58.000Z
2022-03-31T11:18:27.000Z
HERO = {'B': 'Batman', 'J': 'Joker', 'R': 'Robin'} OUTPUT = '{}: {}'.format
25.066667
50
0.478723
HERO = {'B': 'Batman', 'J': 'Joker', 'R': 'Robin'} OUTPUT = '{}: {}'.format class BatmanQuotes(object): @staticmethod def get_quote(quotes, hero): for i, a in enumerate(hero): if i == 0: hero = HERO[a] elif a.isdigit(): quotes = quotes[int(a)] ...
0
244
0
6
0
0
0
0
49
babb298d7b6f86b229eb63b2c93f4fd2b0f22ecb
5,808
py
Python
FHEM/bindings/python/tests/mocked/modules/ring/test_basics.py
jfmennedy/fhempy
009732921eb60c6169610ab0ff93843c91dd8fbe
[ "MIT" ]
16
2021-01-01T16:04:18.000Z
2022-03-10T21:46:44.000Z
FHEM/bindings/python/tests/mocked/modules/ring/test_basics.py
jfmennedy/fhempy
009732921eb60c6169610ab0ff93843c91dd8fbe
[ "MIT" ]
60
2020-12-27T19:18:02.000Z
2022-03-06T18:28:58.000Z
FHEM/bindings/python/tests/mocked/modules/ring/test_basics.py
jfmennedy/fhempy
009732921eb60c6169610ab0ff93843c91dd8fbe
[ "MIT" ]
10
2021-01-30T11:56:15.000Z
2022-02-18T13:01:05.000Z
import os def load_fixture(filename): """Load a fixture.""" path = os.path.join(os.path.dirname(__file__), "fixtures", filename) with open(path) as fdp: return fdp.read()
37.230769
102
0.633264
import asyncio import datetime import logging import os import pytest import requests_mock from fhempy.lib.pkg_installer import check_and_install_dependencies from tests.utils import mock_fhem def load_fixture(filename): """Load a fixture.""" path = os.path.join(os.path.dirname(__file__), "fixtures", filenam...
0
5,383
0
0
0
0
0
29
201
c57937a50ad1bf33f8b27ee2c88bfe003be46dcb
2,645
py
Python
behave_manners/pagelems/dom_meta.py
xrg/behave_manners
93cb570e04af870f3401048d26dd7f0e8350759e
[ "BSD-2-Clause" ]
3
2020-02-02T11:11:44.000Z
2021-11-17T22:21:18.000Z
behave_manners/pagelems/dom_meta.py
xrg/behave_manners
93cb570e04af870f3401048d26dd7f0e8350759e
[ "BSD-2-Clause" ]
null
null
null
behave_manners/pagelems/dom_meta.py
xrg/behave_manners
93cb570e04af870f3401048d26dd7f0e8350759e
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: UTF-8 -*- from __future__ import absolute_import # eof
43.360656
96
0.627221
# -*- coding: UTF-8 -*- from __future__ import absolute_import from f3utils.service_meta import _ServiceMeta class DOM_Meta(_ServiceMeta): """Metaclass for `DOMScope` ones. Prepares a dictionary of descriptors that the scope can apply to components or pages under it. Operates at clas...
0
0
0
2,504
0
0
0
24
45
3e6c14e9f69111898dcff607e383b6263353af70
9,165
py
Python
mysite/createprofile/views.py
coetzeevs/chiron
f6d369a4df7986b6cb9b8c5eff42869d1746119c
[ "MIT" ]
null
null
null
mysite/createprofile/views.py
coetzeevs/chiron
f6d369a4df7986b6cb9b8c5eff42869d1746119c
[ "MIT" ]
null
null
null
mysite/createprofile/views.py
coetzeevs/chiron
f6d369a4df7986b6cb9b8c5eff42869d1746119c
[ "MIT" ]
null
null
null
from django.shortcuts import reverse # Create your views here.
40.915179
133
0.674414
from django.contrib.auth.decorators import login_required from django.shortcuts import render, get_object_or_404,redirect, reverse, render_to_response from django.http import HttpResponse, HttpResponseRedirect from django.template import loader, RequestContext from django.urls import reverse from django.views import ge...
0
8,101
0
0
0
0
0
449
540
d7513b357cbcf4f88145f38e920c9b04930f4297
1,944
py
Python
incasem/gunpowder/deep_copy_arrays.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/gunpowder/deep_copy_arrays.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
incasem/gunpowder/deep_copy_arrays.py
kirchhausenlab/incasem
ee9e007c5c04571e547e2fb5af5e800bd2d2b435
[ "BSD-3-Clause" ]
null
null
null
import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO)
27
79
0.601337
import copy from typing import List import logging import gunpowder as gp logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) class DeepCopyArrays(gp.BatchFilter): """ Deep-copy arrays Args: arrays (List[gp.ArrayKey]): ArrayKeys to be copied output_arrays (List[gp.ArrayKey]):...
0
0
0
1,777
0
0
0
-7
90
db21c4d49cee3463191a723a4f0828b655fb61a3
2,566
py
Python
lunavl/sdk/estimators/face_estimators/mouth_state.py
AlexeyPichugin/lunasdk
e1e3cb053c0969abf6f5419617654372ac89f61b
[ "MIT" ]
8
2019-04-17T06:50:43.000Z
2022-02-09T07:54:28.000Z
lunavl/sdk/estimators/face_estimators/mouth_state.py
AlexeyPichugin/lunasdk
e1e3cb053c0969abf6f5419617654372ac89f61b
[ "MIT" ]
71
2019-04-17T06:50:48.000Z
2022-03-22T22:12:43.000Z
lunavl/sdk/estimators/face_estimators/mouth_state.py
AlexeyPichugin/lunasdk
e1e3cb053c0969abf6f5419617654372ac89f61b
[ "MIT" ]
7
2019-10-14T07:13:29.000Z
2022-03-24T08:00:36.000Z
"""Module contains a mouth state estimator see `mouth state`_ """
24.912621
114
0.6212
"""Module contains a mouth state estimator see `mouth state`_ """ from typing import Union, Dict from FaceEngine import MouthEstimation, IMouthEstimatorPtr # pylint: disable=E0611,E0401 from lunavl.sdk.base import BaseEstimation from lunavl.sdk.errors.errors import LunaVLError from lunavl.sdk.errors.exceptions impo...
0
1,003
0
1,061
0
0
0
200
233
4e72ade1c461fba295110e7d25e76408e5aa946d
5,521
py
Python
openrcv/test/test_models.py
Bayashka1/open-rcv
62400a9634e58fa358341a8b7e85613bcd69114e
[ "MIT" ]
1
2020-02-06T10:12:20.000Z
2020-02-06T10:12:20.000Z
openrcv/test/test_models.py
geverghe/open-rcv
62400a9634e58fa358341a8b7e85613bcd69114e
[ "MIT" ]
null
null
null
openrcv/test/test_models.py
geverghe/open-rcv
62400a9634e58fa358341a8b7e85613bcd69114e
[ "MIT" ]
1
2020-02-06T10:12:09.000Z
2020-02-06T10:12:09.000Z
# # Copyright (c) 2014 Chris Jerdonek. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modi...
35.619355
97
0.626698
# # Copyright (c) 2014 Chris Jerdonek. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modi...
0
0
0
3,999
0
0
0
151
248
b4d1dbaaef73250e5836b592814362163f3456ff
828
py
Python
setup.py
fabolhak/pdfoutliner
f5ebcda6aab8af4bb443aa59c279d771207e92db
[ "MIT" ]
null
null
null
setup.py
fabolhak/pdfoutliner
f5ebcda6aab8af4bb443aa59c279d771207e92db
[ "MIT" ]
null
null
null
setup.py
fabolhak/pdfoutliner
f5ebcda6aab8af4bb443aa59c279d771207e92db
[ "MIT" ]
null
null
null
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup(name="pdfoutliner", version="0.0.3", author="GHPen", description="Command line interface for generating pdftk-style bookmark files in a user-friendly way, and (optionally) outputs a PDF file with t...
34.5
173
0.63285
from setuptools import setup with open("README.md", "r") as fh: long_description = fh.read() setup(name="pdfoutliner", version="0.0.3", author="GHPen", description="Command line interface for generating pdftk-style bookmark files in a user-friendly way, and (optionally) outputs a PDF file with t...
0
0
0
0
0
0
0
0
0
9c125f4ad7f2611b441a3c79b379883634c28026
3,999
py
Python
pochtogramm/messenger/views.py
grand-roman/chat_site
01a2e1954beadf9f5945e69e5ba96e9dc6129812
[ "BSD-2-Clause" ]
null
null
null
pochtogramm/messenger/views.py
grand-roman/chat_site
01a2e1954beadf9f5945e69e5ba96e9dc6129812
[ "BSD-2-Clause" ]
null
null
null
pochtogramm/messenger/views.py
grand-roman/chat_site
01a2e1954beadf9f5945e69e5ba96e9dc6129812
[ "BSD-2-Clause" ]
null
null
null
# Create your views here.
26.309211
123
0.603151
from django.db.models import Count from django.http import HttpResponse from django.shortcuts import render from functools import wraps from time import sleep # Create your views here. from messenger.models import Message from users.models import CustomUser from django.db import connection, reset_queries i...
0
1,380
0
0
0
1,809
0
152
607
cfb9b40c208db290ca0cd193dcccd61aae1a5167
3,790
py
Python
demo_display_compute_steps.py
brice-digilus/Infrared_Analysis
614a14b832f130f9cca9ea3659c08e40fb3d1b1c
[ "Apache-2.0" ]
null
null
null
demo_display_compute_steps.py
brice-digilus/Infrared_Analysis
614a14b832f130f9cca9ea3659c08e40fb3d1b1c
[ "Apache-2.0" ]
null
null
null
demo_display_compute_steps.py
brice-digilus/Infrared_Analysis
614a14b832f130f9cca9ea3659c08e40fb3d1b1c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Display the different computation steps for sensor to cubemap This file will allow to demonstrate the various computation setp associated with a cubemap transfer calculation @author: Brice Dubost Copyright 2020 Brice Dubost Licensed under the Apache License, Version 2.0 (the "Licen...
37.9
158
0.667546
# -*- coding: utf-8 -*- """ Display the different computation steps for sensor to cubemap This file will allow to demonstrate the various computation setp associated with a cubemap transfer calculation @author: Brice Dubost Copyright 2020 Brice Dubost Licensed under the Apache License, Version 2.0 (the "Licen...
0
0
0
0
0
0
0
0
0
9308a4f64bba2c5b253e8bd8fa1479282cc62184
46,265
py
Python
dino/db/__init__.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
150
2016-10-05T11:09:36.000Z
2022-03-06T16:24:41.000Z
dino/db/__init__.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
27
2017-03-02T03:37:02.000Z
2022-02-10T04:59:54.000Z
dino/db/__init__.py
thenetcircle/dino
1047c3458e91a1b4189e9f48f1393b3a68a935b3
[ "Apache-2.0" ]
21
2016-11-11T07:51:48.000Z
2020-04-26T21:38:33.000Z
#!/usr/bin/env python # 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...
30.720452
150
0.57376
#!/usr/bin/env python # 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...
0
0
0
45,498
0
0
0
35
113
cd31aa612a4ede394265c29ffc34fa7ca84c5ecb
1,621
py
Python
Heap/11_02_sort_increase_decrease_array.py
misscindy/Interview
eab43da97e61fcc3d0278408f8f4ea709eed14e6
[ "CC0-1.0" ]
null
null
null
Heap/11_02_sort_increase_decrease_array.py
misscindy/Interview
eab43da97e61fcc3d0278408f8f4ea709eed14e6
[ "CC0-1.0" ]
1
2015-04-23T20:05:24.000Z
2015-04-23T20:07:45.000Z
Heap/11_02_sort_increase_decrease_array.py
misscindy/Interview
eab43da97e61fcc3d0278408f8f4ea709eed14e6
[ "CC0-1.0" ]
null
null
null
# Sort a k increasing and decreasing array # [1, 2, 3, 3, 2, 1, 0, 4, 5] # find all the decreasing intervals and reverse them # add the result to a list # merge UP, DOWN = 0, 1 if __name__ == '__main__': test_cases = [ ([1, 2, 3, 4, 3, 1, 2, 4]), ] for test_case in test_cases: print...
22.830986
61
0.505244
# Sort a k increasing and decreasing array # [1, 2, 3, 3, 2, 1, 0, 4, 5] # find all the decreasing intervals and reverse them # add the result to a list # merge def split(arr): if len(arr) < 2: return sorted(arr) lo, high = 0, 1 sorted_subarray = [] while high < len(arr): while high <...
0
0
0
0
0
1,177
0
0
69
ee982a56ffd145a8e98271a627491cd2070845a8
6,009
py
Python
asyncio_rpc/commlayers/redis.py
nens/asyncio-rpc
26b963076fbc1c5ee412a5fbd3d949737fe7c946
[ "BSD-3-Clause" ]
9
2019-03-23T03:29:06.000Z
2022-02-26T01:04:15.000Z
asyncio_rpc/commlayers/redis.py
nens/asyncio-rpc
26b963076fbc1c5ee412a5fbd3d949737fe7c946
[ "BSD-3-Clause" ]
5
2019-04-09T09:05:42.000Z
2022-01-30T14:12:58.000Z
asyncio_rpc/commlayers/redis.py
nens/asyncio-rpc
26b963076fbc1c5ee412a5fbd3d949737fe7c946
[ "BSD-3-Clause" ]
null
null
null
RESULT_EXPIRE_TIME = 300 # seconds
32.657609
79
0.598769
from uuid import uuid4 from .base import AbstractRPCCommLayer from aioredis import create_redis from ..models import RPCStack, RPCResult, RPCBase, SERIALIZABLE_MODELS RESULT_EXPIRE_TIME = 300 # seconds class RPCRedisCommLayer(AbstractRPCCommLayer): """ Redis remote procedure call communication layer """...
0
950
4,327
504
0
0
0
79
111
ac9f3d8364a6e9dc621de636f5fa35ce6d2b74d8
1,423
py
Python
venv/app/Apoload.py
KarateJB/Python.Thsrc
5a61479bdaf2901b8a5a03a8f786a6e65105db0f
[ "MIT" ]
null
null
null
venv/app/Apoload.py
KarateJB/Python.Thsrc
5a61479bdaf2901b8a5a03a8f786a6e65105db0f
[ "MIT" ]
null
null
null
venv/app/Apoload.py
KarateJB/Python.Thsrc
5a61479bdaf2901b8a5a03a8f786a6e65105db0f
[ "MIT" ]
null
null
null
# import requests import os Output_Path = str(os.path.join(os.getcwd(), 'Outputs')) Storage_Path = str(os.path.join(Output_Path,"APOPND_THSR_Ok.csv")) Latilongi_Keyword = ""
27.365385
76
0.54884
# import requests import os, sys, io import re import logging import datetime from pathlib import Path import csv Output_Path = str(os.path.join(os.getcwd(), 'Outputs')) Storage_Path = str(os.path.join(Output_Path,"APOPND_THSR_Ok.csv")) Latilongi_Keyword = "經緯座標" class Apoload(): def __init__(self, target_file_...
12
0
0
1,122
0
0
0
-24
133
2eb0be39c98d9a06b327a0650b40988cc5f5b682
653
py
Python
scripts/devSetup/configuration.py
flauta/codecombat
8b0a0c4e516fb3d01815082f7c7650312b7cd8e5
[ "MIT" ]
1
2021-01-09T23:57:54.000Z
2021-01-09T23:57:54.000Z
scripts/devSetup/configuration.py
flauta/codecombat
8b0a0c4e516fb3d01815082f7c7650312b7cd8e5
[ "MIT" ]
4
2016-04-19T00:06:28.000Z
2016-04-19T02:25:22.000Z
scripts/devSetup/configuration.py
flauta/codecombat
8b0a0c4e516fb3d01815082f7c7650312b7cd8e5
[ "MIT" ]
2
2020-10-28T14:50:54.000Z
2020-11-05T12:39:19.000Z
__author__ = u'schmatz'
32.65
75
0.750383
__author__ = u'schmatz' from systemConfiguration import SystemConfiguration import os import directoryController import errors class Configuration(object): def __init__(self): self.system = SystemConfiguration() assert isinstance(self.system,SystemConfiguration) self.directory = directoryCon...
0
69
0
432
0
0
0
15
110
cbf2971eaa2c406fdf6a42a11302cd12a9ae9139
265
py
Python
extended_choices/__main__.py
joehybird/django-extended-choices
c48c95276d4daaaf07093b00ec07d382ce27fdb2
[ "BSD-3-Clause" ]
60
2015-05-24T10:38:13.000Z
2022-03-13T12:16:16.000Z
extended_choices/__main__.py
joehybird/django-extended-choices
c48c95276d4daaaf07093b00ec07d382ce27fdb2
[ "BSD-3-Clause" ]
28
2015-04-02T22:19:44.000Z
2021-03-03T08:58:33.000Z
extended_choices/__main__.py
joehybird/django-extended-choices
c48c95276d4daaaf07093b00ec07d382ce27fdb2
[ "BSD-3-Clause" ]
12
2015-08-25T06:21:44.000Z
2019-12-10T01:39:48.000Z
"""Run doctests on choices.py and helpers.py""" import doctest import sys from . import choices, helpers failures = 0 failures += doctest.testmod(m=choices, report=True)[0] failures += doctest.testmod(m=helpers, report=True)[0] if failures > 0: sys.exit(1)
18.928571
54
0.716981
"""Run doctests on choices.py and helpers.py""" import doctest import sys from . import choices, helpers failures = 0 failures += doctest.testmod(m=choices, report=True)[0] failures += doctest.testmod(m=helpers, report=True)[0] if failures > 0: sys.exit(1)
0
0
0
0
0
0
0
0
0
fbde576fb227aae9f5a498ff8b07900760efbcae
301
py
Python
torchshapelets/src/torchshapelets/__init__.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
32
2020-05-31T17:41:58.000Z
2022-03-28T18:38:11.000Z
torchshapelets/src/torchshapelets/__init__.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
1
2022-02-09T22:13:03.000Z
2022-02-09T23:55:28.000Z
torchshapelets/src/torchshapelets/__init__.py
patrick-kidger/generalised_shapelets
04930c89dc4673e2af402895fe67655f8375a808
[ "MIT" ]
9
2020-07-17T16:50:24.000Z
2021-12-13T11:29:12.000Z
import torch # must be imported before anything from torchshapelets __version__ = '0.1.0' del torch
30.1
81
0.853821
import torch # must be imported before anything from torchshapelets from .discrepancies import CppDiscrepancy, L2Discrepancy, LogsignatureDiscrepancy from .regularisation import similarity_regularisation from .shapelet_transform import GeneralisedShapeletTransform __version__ = '0.1.0' del torch
0
0
0
0
0
0
0
131
67
bc495885b2db1f9adbe752afea5974b08b3eebb6
35,896
py
Python
pylivetrader/algorithm.py
yeahugo/pylivetrader
fad5598326a5f1847c5eb2110e07376670242ccb
[ "Apache-2.0" ]
null
null
null
pylivetrader/algorithm.py
yeahugo/pylivetrader
fad5598326a5f1847c5eb2110e07376670242ccb
[ "Apache-2.0" ]
null
null
null
pylivetrader/algorithm.py
yeahugo/pylivetrader
fad5598326a5f1847c5eb2110e07376670242ccb
[ "Apache-2.0" ]
null
null
null
# # Copyright 2015 Quantopian, Inc. # Modifications Copyright 2018 Alpaca # # 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 require...
33.485075
80
0.59483
# # Copyright 2015 Quantopian, Inc. # Modifications Copyright 2018 Alpaca # # 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 require...
0
19,979
0
13,183
0
14
0
1,377
665
4b7d83cd961663729b429fa2405b2e6ec596adae
16,003
py
Python
app/downloader.py
aCetylAcid/Sound-Euphonium
36680f23683dedc760ea1b7c26587acbccc838fd
[ "MIT" ]
1
2021-12-15T00:20:58.000Z
2021-12-15T00:20:58.000Z
app/downloader.py
aCetylAcid/Sound-Euphonium
36680f23683dedc760ea1b7c26587acbccc838fd
[ "MIT" ]
9
2015-07-18T08:22:44.000Z
2015-12-13T10:06:42.000Z
app/downloader.py
zrn-ns/sound-euphonium
36680f23683dedc760ea1b7c26587acbccc838fd
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib.request # twitter = None # Download Channel # Dir path to save channel # File path to save channel # Dir path to save temporary files # URL to get channel info # Max number of episodes to download(per channel) if __name__ =...
36.453303
150
0.594888
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib.request, urllib.error import json import os import subprocess import logging import traceback import yaml from datetime import datetime import dateutil.parser from TwitterAPI import TwitterAPI import eyed3 from enum import Enum import shutil import uuid # 通知用...
126
6,883
0
7,917
0
0
0
-40
851
58483188fa52bd9ffd7c0d57750baceebf767197
1,521
py
Python
synaptor/proc/overlap/merge/merge_overlaps.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
7
2018-04-01T18:18:23.000Z
2021-09-13T07:02:16.000Z
synaptor/proc/overlap/merge/merge_overlaps.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
5
2018-10-24T19:36:03.000Z
2020-10-30T02:13:38.000Z
synaptor/proc/overlap/merge/merge_overlaps.py
ZettaAI/Synaptor
e425b4c744fca093ee5c63f41b82b3cae7898af4
[ "MIT" ]
6
2018-07-12T17:59:54.000Z
2020-10-30T02:29:50.000Z
""" Overlap Matrix Consolidation """ import scipy.sparse as sp from .. import overlap def apply_chunk_id_maps(overlap_arr, chunk_id_maps): """ Applies id maps to each overlap matrix, returns a combined overlap mat """ rs, cs, vs = list(), list(), list() for (overlap, id_map) in zip(overlap_arr.f...
24.934426
74
0.667324
""" Overlap Matrix Consolidation """ import numpy as np import scipy.sparse as sp from .. import overlap def apply_chunk_id_maps(overlap_arr, chunk_id_maps): """ Applies id maps to each overlap matrix, returns a combined overlap mat """ rs, cs, vs = list(), list(), list() for (overlap, id_map) ...
0
0
0
0
0
888
0
-3
92
0c91b948610f0d9ba775fc671dec1e879e4620fa
2,408
py
Python
algorithms/dynamic_programming/maximal_square.py
emirot/algo-loco.blog
0e377a7b0699ded1599a9a5025148236bc2ee22a
[ "Apache-2.0" ]
null
null
null
algorithms/dynamic_programming/maximal_square.py
emirot/algo-loco.blog
0e377a7b0699ded1599a9a5025148236bc2ee22a
[ "Apache-2.0" ]
null
null
null
algorithms/dynamic_programming/maximal_square.py
emirot/algo-loco.blog
0e377a7b0699ded1599a9a5025148236bc2ee22a
[ "Apache-2.0" ]
null
null
null
if __name__ == "__main__": print("start") # arr = [ # [1, 0, 1, 0, 0], # [1, 0, 1, 1, 1], # [0, 1, 1, 1, 1], # [1, 0, 0, 1, 0] # ] # arr = [ # [1, 1, 1], # [1, 1, 1], # [0, 1, 1] # ] # maximal_square(arr) arr = [ [1,...
25.347368
92
0.407392
def in_square(matrix, row, col): if row > len(matrix) or row < 0: return False if col > len(matrix[0]) or col < 0: return False return True def check_all(matrix, row, col, i): if in_square(matrix, row + i + 1, col + i+1): for i_row in range(row, row + i + 1): fo...
0
0
0
0
0
1,502
0
0
92
e549725eb393ff9f7c1472fd6ddd752e2bb26109
3,115
py
Python
Widen/LC1383_Maximum_Performance_of_a_Team.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
Widen/LC1383_Maximum_Performance_of_a_Team.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
Widen/LC1383_Maximum_Performance_of_a_Team.py
crazywiden/Leetcode_daily_submit
15637e260ab547022ac0c828dd196337bd8d50a3
[ "MIT" ]
null
null
null
""" 1383. Maximum Performance of a Team There are n engineers numbered from 1 to n and two arrays: speed and efficiency, where speed[i] and efficiency[i] represent the speed and efficiency for the i-th engineer respectively. Return the maximum performance of a team composed of at most k engineers, since the answer can ...
42.671233
326
0.619262
""" 1383. Maximum Performance of a Team There are n engineers numbered from 1 to n and two arrays: speed and efficiency, where speed[i] and efficiency[i] represent the speed and efficiency for the i-th engineer respectively. Return the maximum performance of a team composed of at most k engineers, since the answer can ...
0
0
0
1,186
0
0
0
-9
66
25a46ca488311567c2544306c10860989caad4c4
2,324
py
Python
MemberShip/web/admin/app/views/index.py
zzragida/PythonExamples
ed94ae2773a580a42e158ebdc7321a89ca4e991b
[ "MIT" ]
null
null
null
MemberShip/web/admin/app/views/index.py
zzragida/PythonExamples
ed94ae2773a580a42e158ebdc7321a89ca4e991b
[ "MIT" ]
null
null
null
MemberShip/web/admin/app/views/index.py
zzragida/PythonExamples
ed94ae2773a580a42e158ebdc7321a89ca4e991b
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- from flask import Blueprint view = Blueprint('index', __name__, template_folder='../templates')
25.26087
81
0.672117
# -*- coding:utf-8 -*- from flask import Blueprint from flask import session from flask import request from flask import redirect from flask import render_template from flask import current_app from flask.ext.babel import gettext from flask.ext.login import login_required from flask.ext.login import login_user from ...
0
1,178
0
314
0
0
0
215
470
b4dc8d606c00d9bc89e9a4a07fc264a927ad7e27
6,126
py
Python
sleepy/api_peewee.py
sloria/PythonORMSleepy
ff62766d5b32dd586ab3f1e928f01d01fc9116d0
[ "MIT" ]
122
2015-02-05T13:29:17.000Z
2021-12-25T13:06:30.000Z
sleepy/api_peewee.py
sloria/PythonORMSleepy
ff62766d5b32dd586ab3f1e928f01d01fc9116d0
[ "MIT" ]
1
2018-01-02T23:33:36.000Z
2018-01-04T19:52:39.000Z
sleepy/api_peewee.py
sloria/PythonORMSleepy
ff62766d5b32dd586ab3f1e928f01d01fc9116d0
[ "MIT" ]
28
2015-06-16T16:49:49.000Z
2022-03-30T07:39:41.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Hello Peewee.''' from flask import Flask from flask_peewee.db import Database app = Flask(__name__) app.config.from_object(Settings) ### Models ### db = Database(app) ### API ### # Register views api_prefix = "/api/v1/" ItemsView.register(app, route_prefix=api_pr...
32.073298
80
0.61443
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Hello Peewee.''' from datetime import datetime, timedelta from flask import Flask, jsonify, request, render_template, abort from flask.ext.classy import FlaskView from flask_peewee.db import Database from flask_peewee.utils import get_object_or_404 import peewee as pw ...
0
106
0
4,927
0
108
0
138
341
538d4799c179d92459d568c4fa2676baa367a319
1,844
py
Python
fan_control.py
ChristianStrube-dev/Raspberry-Pi-PWM-Fan-Control
400944fe06da3f31da4abef17cba1f705a6faf96
[ "MIT" ]
1
2021-12-29T10:37:21.000Z
2021-12-29T10:37:21.000Z
fan_control.py
DriftKingTW/Raspberry-Pi-PWM-Fan-Contorl
400944fe06da3f31da4abef17cba1f705a6faf96
[ "MIT" ]
null
null
null
fan_control.py
DriftKingTW/Raspberry-Pi-PWM-Fan-Contorl
400944fe06da3f31da4abef17cba1f705a6faf96
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import RPi.GPIO as GPIO import time import signal import sys # The Noctua PWM control actually wants 25 kHz (kilo!), see page 6 on: # https://noctua.at/pub/media/wysiwyg/Noctua_PWM_specifications_white_paper.pdf # However, the RPi.GPIO library causes high CPU usage when using high # frequencies...
31.793103
79
0.691432
#! /usr/bin/env python3 import RPi.GPIO as GPIO import time import signal import sys # The Noctua PWM control actually wants 25 kHz (kilo!), see page 6 on: # https://noctua.at/pub/media/wysiwyg/Noctua_PWM_specifications_white_paper.pdf # However, the RPi.GPIO library causes high CPU usage when using high # frequencies...
6
0
0
0
0
310
0
0
46
15fc52d90121b75e89e2de7091ae8e996e1cade6
2,548
py
Python
N50_Calculator.py
djphan/N50_Calculator
ccf15913d7c16027e137167d3bd4d7860ec4e1bf
[ "MIT" ]
1
2017-06-23T04:00:36.000Z
2017-06-23T04:00:36.000Z
N50_Calculator.py
djphan/N50_Calculator
ccf15913d7c16027e137167d3bd4d7860ec4e1bf
[ "MIT" ]
null
null
null
N50_Calculator.py
djphan/N50_Calculator
ccf15913d7c16027e137167d3bd4d7860ec4e1bf
[ "MIT" ]
2
2017-09-29T04:56:36.000Z
2018-09-12T18:54:17.000Z
#!/usr/bin/env python # Run using python3 N50_Calculator <Input Path> <GenomeSize (Optional)> import sys import os if __name__ == "__main__": if len(sys.argv) == 2: if os.path.isfile(sys.argv[1]): NGorN50(file_path=sys.argv[1]) else: print ('Improper Input Path Specified') ...
31.85
113
0.605573
#!/usr/bin/env python # Run using python3 N50_Calculator <Input Path> <GenomeSize (Optional)> import sys import os import scipy def file_parser(file_path): # Parses a txt file to consolidate all the contig lengths into a list # txt file must contain contigs on seperate lines for this parsing func to work o...
0
0
0
0
0
1,565
0
-9
68
c749d51261be42235d887de763e701a079c7dc38
7,189
py
Python
supersaop/src/observation_planning.py
arthur-bit-monnot/fire-rs-saop
321e16fceebf44e8e97b482c24f37fbf6dd7d162
[ "BSD-2-Clause" ]
13
2018-11-19T15:51:23.000Z
2022-01-16T11:24:21.000Z
supersaop/src/observation_planning.py
fire-rs-laas/fire-rs-saop
321e16fceebf44e8e97b482c24f37fbf6dd7d162
[ "BSD-2-Clause" ]
14
2017-10-12T16:19:19.000Z
2018-03-12T12:07:56.000Z
supersaop/src/observation_planning.py
fire-rs-laas/fire-rs-saop
321e16fceebf44e8e97b482c24f37fbf6dd7d162
[ "BSD-2-Clause" ]
4
2018-03-12T12:28:55.000Z
2021-07-07T18:32:17.000Z
#!/usr/bin/env python3 # Copyright (c) 2018, CNRS-LAAS # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list...
46.681818
100
0.68271
#!/usr/bin/env python3 # Copyright (c) 2018, CNRS-LAAS # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list...
0
0
0
4,705
0
0
0
350
359
46eb9f2f0580988c472ef5fd53d6d6b432dc002d
14,561
py
Python
smilepack/utils/status.py
andreymal/smilepack
be0e49cbf0dd515664667f529a346f4679c44d9e
[ "MIT" ]
null
null
null
smilepack/utils/status.py
andreymal/smilepack
be0e49cbf0dd515664667f529a346f4679c44d9e
[ "MIT" ]
null
null
null
smilepack/utils/status.py
andreymal/smilepack
be0e49cbf0dd515664667f529a346f4679c44d9e
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*-
44.803077
207
0.588146
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import sys import random from datetime import datetime, timedelta from pony import orm from flask import url_for from flask_babel import format_timedelta from smilepack.database import db from smilepack import models class ANSI: RESET = '\x1b[0m' BOL...
0
0
0
170
480
13,418
0
29
408
808c2733b1e7d2bd42ce5c9e117fef521fc12807
16,645
py
Python
src/mcedit2/rendering/chunkupdate.py
elcarrion06/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
673
2015-01-02T02:08:13.000Z
2022-03-24T19:38:14.000Z
src/mcedit2/rendering/chunkupdate.py
ozzhates/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
526
2015-01-01T02:10:53.000Z
2022-02-06T16:24:21.000Z
src/mcedit2/rendering/chunkupdate.py
ozzhates/mcedit2
4bb98da521447b6cf43d923cea9f00acf2f427e9
[ "BSD-3-Clause" ]
231
2015-01-01T16:47:30.000Z
2022-03-31T21:51:55.000Z
""" ${NAME} """ from __future__ import absolute_import, division, print_function, unicode_literals import logging log = logging.getLogger(__name__)
33.626263
140
0.618865
""" ${NAME} """ from __future__ import absolute_import, division, print_function, unicode_literals import logging import numpy from mcedit2.rendering.modelmesh import BlockModelMesh from mcedit2.rendering import layers from mcedit2.rendering.chunkmeshes.chunksections import ChunkSectionsRenderer from mcedit2.rend...
0
6,309
0
9,106
0
0
0
672
401
08c85ee5bdb965508f8ee6879378be139ab31014
924
py
Python
pylark/api_service_search_data_source_delete.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
7
2021-08-18T00:42:05.000Z
2022-03-14T09:49:15.000Z
pylark/api_service_search_data_source_delete.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
null
null
null
pylark/api_service_search_data_source_delete.py
chyroc/pylark
a54cce6b814935fd3c72668b262b54c8ee461484
[ "Apache-2.0" ]
1
2022-03-14T09:49:20.000Z
2022-03-14T09:49:20.000Z
# Code generated by lark_sdk_gen. DO NOT EDIT.
28
86
0.727273
# Code generated by lark_sdk_gen. DO NOT EDIT. from pylark.lark_request import RawRequestReq, _new_method_option from pylark import lark_type, lark_type_sheet, lark_type_approval import attr import typing import io @attr.s class DeleteSearchDataSourceReq(object): data_source_id: str = attr.ib( default=""...
36
207
0
0
0
417
0
58
180
d261e495ba7a57bd5f1fd2aeae16cfe64642d9c8
752
py
Python
app/DB.py
wanghao923/saltadmin2.0
aed384460da4977547c4f819e8160ad9f46adffb
[ "MIT" ]
null
null
null
app/DB.py
wanghao923/saltadmin2.0
aed384460da4977547c4f819e8160ad9f46adffb
[ "MIT" ]
null
null
null
app/DB.py
wanghao923/saltadmin2.0
aed384460da4977547c4f819e8160ad9f46adffb
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- # Powered By KK Studio # Wrapper Database
31.333333
99
0.69016
#!/usr/bin/python # -*- coding:utf-8 -*- # Powered By KK Studio # Wrapper Database from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker, scoped_session class Database: def __init__(self,host='localhost',port=3306,db='mysql',user='root',passwd='',charset='utf-8'): db_uri = 'mysql+m...
0
0
0
552
0
0
0
49
68
0c2ec07afff33c841dada059208df04504f57fd6
224
py
Python
test/resources/test_async.py
gmarinella9/python-flask-celery-example
fedba4752998ce3591d336f7be617a124e291a2f
[ "MIT" ]
44
2018-03-13T16:20:07.000Z
2022-03-05T04:41:17.000Z
test/resources/test_async.py
gmarinella9/python-flask-celery-example
fedba4752998ce3591d336f7be617a124e291a2f
[ "MIT" ]
1
2019-02-02T11:41:40.000Z
2019-02-02T11:41:40.000Z
test/resources/test_async.py
gmarinella9/python-flask-celery-example
fedba4752998ce3591d336f7be617a124e291a2f
[ "MIT" ]
15
2018-08-14T23:01:13.000Z
2021-06-22T11:34:56.000Z
"""Tests of asynchronous tasks.""" def test_byeworld_async(byeworld): """Test of ByWorld asynchronous task method.""" task = byeworld.asynchronous.delay('test') assert task.get(timeout=10) == {'async': 'test'}
28
52
0.683036
"""Tests of asynchronous tasks.""" def test_byeworld_async(byeworld): """Test of ByWorld asynchronous task method.""" task = byeworld.asynchronous.delay('test') assert task.get(timeout=10) == {'async': 'test'}
0
0
0
0
0
0
0
0
0
01be5fb5170a9f67f5eabf85ba9b20f7e225ae3f
4,428
py
Python
test_add_and_search_word.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_add_and_search_word.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
test_add_and_search_word.py
brigitteunger/katas
3f9af88fe5d98753360457084741f573c863dc25
[ "MIT" ]
null
null
null
import unittest if __name__ == "__main__": unittest.main()
30.965035
125
0.564589
import unittest from typing import Dict, Optional, Any class Trie: def __init__(self) -> None: """ Initialize your data structure here. """ # Note that using a dictionary for children (as in this implementation) # would not by default lexicographically sort the children, wh...
0
0
0
4,252
0
0
0
17
91
ae60921a46a72e06a2ef341d63819da2f171183b
2,801
py
Python
lib/candy_editor/qt/controls/GLWidget.py
lihaochen910/Candy
d12cb964768459c22f30c22531d3e1734901e814
[ "MIT" ]
1
2021-11-06T14:38:37.000Z
2021-11-06T14:38:37.000Z
lib/candy_editor/qt/controls/GLWidget.py
lihaochen910/Candy
d12cb964768459c22f30c22531d3e1734901e814
[ "MIT" ]
5
2021-11-06T04:23:06.000Z
2022-03-12T01:03:25.000Z
lib/candy_editor/qt/controls/GLWidget.py
lihaochen910/Candy
d12cb964768459c22f30c22531d3e1734901e814
[ "MIT" ]
1
2021-11-07T05:19:51.000Z
2021-11-07T05:19:51.000Z
##----------------------------------------------------------------##
27.460784
80
0.687612
from PyQt5 import QtCore, QtOpenGL from PyQt5.QtCore import Qt class GLWidget ( QtOpenGL.QGLWidget ): sharedWidget = None @staticmethod def getSharedWidget (): if not GLWidget.sharedWidget: fmt = QtOpenGL.QGLFormat () fmt.setRgba ( True ) fmt.setAlpha ( True ) fmt.setDepth ( True ) fmt.setDoubleB...
0
468
0
2,153
0
0
0
19
89
a0e137194c77df2e234797221a20212fd051f887
2,309
py
Python
model/obsolete/crop_human_method_4.py
AathmanT/ThEmoBe
0e877d5a0e34dc55bedc171d27342a31dbe75efd
[ "Apache-2.0" ]
9
2021-01-13T05:00:52.000Z
2021-02-02T13:33:25.000Z
model/obsolete/crop_human_method_4.py
AathmanT/ThEmoBe
0e877d5a0e34dc55bedc171d27342a31dbe75efd
[ "Apache-2.0" ]
null
null
null
model/obsolete/crop_human_method_4.py
AathmanT/ThEmoBe
0e877d5a0e34dc55bedc171d27342a31dbe75efd
[ "Apache-2.0" ]
5
2020-09-11T17:08:12.000Z
2020-12-29T03:20:43.000Z
import cv2 import matplotlib.pyplot as plt from darknet import Darknet import numpy as np # Set the location and name of the cfg file cfg_file = '/content/CVND_Exercises/2_2_YOLO/cfg/yolov3.cfg' # Set the location and name of the pre-trained weights file weight_file = '/content/drive/My Drive/yolov3.weights' # Set ...
27.819277
88
0.692074
import cv2 import matplotlib.pyplot as plt from utils import * from darknet import Darknet import keras import cv2 import os import numpy as np import pandas as pd from os import listdir from os.path import isfile, join, isdir from PIL import Image import numpy as np import shelve import matplotlib.pyplot as plt # ...
0
0
0
0
0
1,435
0
-18
267
7b2c8a1f9cb76c52ffc16c70451ce51af4c0785c
5,659
py
Python
lyricpsych/extractors/linguistic_features.py
mmc-tudelft/lyricpsych
29f5c1a64c914b09d1400df1732164d10c013312
[ "Apache-2.0" ]
null
null
null
lyricpsych/extractors/linguistic_features.py
mmc-tudelft/lyricpsych
29f5c1a64c914b09d1400df1732164d10c013312
[ "Apache-2.0" ]
null
null
null
lyricpsych/extractors/linguistic_features.py
mmc-tudelft/lyricpsych
29f5c1a64c914b09d1400df1732164d10c013312
[ "Apache-2.0" ]
null
null
null
from itertools import chain import numpy as np import pandas as pd from tqdm import tqdm def _compute_linguistic_features(words_corpus, show_progress=True, extreme_thresh=[2, 0.75]): """ Compute all the linguistic features Inputs: words_corpus (list of list of stri...
31.265193
89
0.611946
from itertools import chain import numpy as np import pandas as pd from tqdm import tqdm from ..preprocessing import SW as stop_words from .base import BaseTextFeatureExtractor, TextFeature class LinguisticFeature(BaseTextFeatureExtractor): def __init__(self, extreme_thresh=[2, .75]): super().__init__(...
0
1,243
0
448
0
284
0
57
206
95bd26d40ada211fd3627cdee2e689a6ac035d9e
98
py
Python
console/config/settings/production.py
RishiKumarRay/scantron
554ebebde1137eeba2ec38e83a59aca4f2f537ef
[ "Apache-2.0" ]
684
2018-08-21T03:38:03.000Z
2022-03-28T17:35:32.000Z
console/config/settings/production.py
RishiKumarRay/scantron
554ebebde1137eeba2ec38e83a59aca4f2f537ef
[ "Apache-2.0" ]
154
2018-08-22T20:07:09.000Z
2021-11-19T08:51:14.000Z
console/config/settings/production.py
RishiKumarRay/scantron
554ebebde1137eeba2ec38e83a59aca4f2f537ef
[ "Apache-2.0" ]
129
2018-08-21T08:54:50.000Z
2022-03-24T11:05:45.000Z
# Actual file used is kept in scantron/ansible-playbooks/roles/console/templates/production.py.j2
49
97
0.826531
# Actual file used is kept in scantron/ansible-playbooks/roles/console/templates/production.py.j2
0
0
0
0
0
0
0
0
0
06f3a8baf7316f9a502eb5725986dcf31b81947c
2,008
py
Python
src/spline2/tests/gen_trace.py
djstaros/qmcpack
280f67e638bae280448b47fa618f05b848c530d2
[ "NCSA" ]
null
null
null
src/spline2/tests/gen_trace.py
djstaros/qmcpack
280f67e638bae280448b47fa618f05b848c530d2
[ "NCSA" ]
11
2020-05-09T20:57:21.000Z
2020-06-10T00:00:17.000Z
src/spline2/tests/gen_trace.py
djstaros/qmcpack
280f67e638bae280448b47fa618f05b848c530d2
[ "NCSA" ]
1
2019-07-23T17:44:39.000Z
2019-07-23T17:44:39.000Z
# Verify SymTrace in MultiBspline.hpp # The first part of this script verifies the expression for the trace of the product of a # symmetric matrix (H) and a general matrix (G). # The second part creates body of the SymTrace test in test_multi_spline.cpp. G = MatrixSymbol('G', 3, 3) H = MatrixSymbol('H', 3, 3) h1 =...
24.487805
135
0.571215
from sympy import * # Verify SymTrace in MultiBspline.hpp # The first part of this script verifies the expression for the trace of the product of a # symmetric matrix (H) and a general matrix (G). # The second part creates body of the SymTrace test in test_multi_spline.cpp. G = MatrixSymbol('G', 3, 3) H = MatrixSy...
0
0
0
0
0
0
0
-2
23
6cf064dd5a494d5c06e6963ed7a8ed187af9934f
254
py
Python
src/BOJ/boj_4673.py
onehowon/-python
c9f5154c2884aee3b33804e14c02d7d0be29b926
[ "Apache-2.0" ]
23
2020-09-01T08:32:06.000Z
2021-11-16T07:26:21.000Z
src/BOJ/boj_4673.py
onehowon/-python
c9f5154c2884aee3b33804e14c02d7d0be29b926
[ "Apache-2.0" ]
null
null
null
src/BOJ/boj_4673.py
onehowon/-python
c9f5154c2884aee3b33804e14c02d7d0be29b926
[ "Apache-2.0" ]
2
2020-12-07T00:47:49.000Z
2021-09-05T13:25:28.000Z
# 4673 set_number = [d(n) for n in range(1, 10000 + 1)] self_number = [n for n in range(1, 10000 + 1) if n not in set_number] for s in self_number: print(s)
19.538462
69
0.57874
# 4673 셀프넘버 def d(n: int) -> int: for i in list(str(n)): n = n + int(i) return n set_number = [d(n) for n in range(1, 10000 + 1)] self_number = [n for n in range(1, 10000 + 1) if n not in set_number] for s in self_number: print(s)
12
0
0
0
0
63
0
0
22
92e25b292d60655830850d21d1fed9bd9a25ac97
5,108
py
Python
examples/nas/oneshot/spos/network.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
2,305
2018-09-07T12:42:26.000Z
2019-05-06T20:14:24.000Z
examples/nas/oneshot/spos/network.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
379
2018-09-10T10:19:50.000Z
2019-05-06T18:04:46.000Z
examples/nas/oneshot/spos/network.py
dutxubo/nni
c16f4e1c89b54b8b80661ef0072433d255ad2d24
[ "MIT" ]
314
2018-09-08T05:36:08.000Z
2019-05-06T08:48:51.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license.
37.014493
114
0.599452
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import os import pickle import re import torch import nni.retiarii.nn.pytorch as nn from nni.retiarii.nn.pytorch import LayerChoice from nni.retiarii.serializer import model_wrapper from blocks import ShuffleNetBlock, ShuffleXceptionBlock @mo...
0
4,371
0
0
0
374
0
63
225
91011fae712489fb6ddf7475af2d49da433ffa9a
1,435
py
Python
taskcat/_s3_stage.py
GlennChia/taskcat
26bf4a0207e4b161df7ba76048c1a9142bb115d1
[ "Apache-2.0" ]
63
2021-11-05T21:49:03.000Z
2022-03-29T17:14:27.000Z
taskcat/_s3_stage.py
GlennChia/taskcat
26bf4a0207e4b161df7ba76048c1a9142bb115d1
[ "Apache-2.0" ]
21
2021-11-04T15:43:22.000Z
2022-03-11T17:08:03.000Z
taskcat/_s3_stage.py
GlennChia/taskcat
26bf4a0207e4b161df7ba76048c1a9142bb115d1
[ "Apache-2.0" ]
8
2021-11-08T11:24:53.000Z
2022-03-22T11:21:37.000Z
import logging LOG = logging.getLogger(__name__)
25.175439
84
0.684321
import logging from functools import partial from multiprocessing.dummy import Pool as ThreadPool from taskcat._s3_sync import S3Sync from taskcat.exceptions import TaskCatException LOG = logging.getLogger(__name__) class S3APIResponse: def __init__(self, _x): self._http_code = _x["ResponseMetadata"]["H...
0
86
0
158
0
877
0
79
181
cc61315b51811ff544fa6013a81cad1933535621
1,128
py
Python
dictknife/loading/_yaml.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
13
2018-11-23T15:55:18.000Z
2021-11-24T02:42:44.000Z
dictknife/loading/_yaml.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
105
2017-01-09T02:05:48.000Z
2021-07-26T03:39:22.000Z
dictknife/loading/_yaml.py
podhmo/dictknife
a172220c1adc8411b69f31646ea2154932d71516
[ "MIT" ]
4
2017-07-19T12:34:47.000Z
2019-06-20T10:32:13.000Z
import yaml load = yaml.load dump = yaml.dump
27.512195
86
0.680851
import re from collections import defaultdict, ChainMap, OrderedDict from dictknife.langhelpers import make_dict import yaml from yaml.representer import SafeRepresenter load = yaml.load dump = yaml.dump class Dumper(yaml.Dumper): def _iterate_dict(self, d): return d.items() def ignore_aliases(self,...
0
0
0
133
0
718
0
70
157
cf9bbbcba9a3ce368e2907dfee09a74b1af8cc80
222
py
Python
mmtbx/command_line/evalurama.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
155
2016-11-23T12:52:16.000Z
2022-03-31T15:35:44.000Z
mmtbx/command_line/evalurama.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
590
2016-12-10T11:31:18.000Z
2022-03-30T23:10:09.000Z
mmtbx/command_line/evalurama.py
dperl-sol/cctbx_project
b9e390221a2bc4fd00b9122e97c3b79c632c6664
[ "BSD-3-Clause-LBNL" ]
115
2016-11-15T08:17:28.000Z
2022-02-09T15:30:14.000Z
from __future__ import absolute_import, division, print_function # LIBTBX_SET_DISPATCHER_NAME phenix.evalurama from mmtbx.programs import evalurama from iotbx.cli_parser import run_program run_program(evalurama.Program)
27.75
64
0.869369
from __future__ import absolute_import, division, print_function # LIBTBX_SET_DISPATCHER_NAME phenix.evalurama from mmtbx.programs import evalurama from iotbx.cli_parser import run_program run_program(evalurama.Program)
0
0
0
0
0
0
0
0
0
e47fbcbcdbee8261e5e817dbe5ec571eb13e6952
26,306
py
Python
bullet_envs/turtlebot/turtlEnv.py
astrid-merckling/bullet_envs
a7ec896df353520119ee726402b100caaabc91f3
[ "MIT" ]
null
null
null
bullet_envs/turtlebot/turtlEnv.py
astrid-merckling/bullet_envs
a7ec896df353520119ee726402b100caaabc91f3
[ "MIT" ]
null
null
null
bullet_envs/turtlebot/turtlEnv.py
astrid-merckling/bullet_envs
a7ec896df353520119ee726402b100caaabc91f3
[ "MIT" ]
null
null
null
robot_diameter = 0.4 initZ = 0.
42.91354
125
0.578993
import pybullet from pybullet_utils import bullet_client import numpy as np import cv2, os import time import gym from datetime import datetime from collections import OrderedDict from pybullet_data import getDataPath from bullet_envs.utils import seeding_np_random, AddNoise robot_diameter = 0.4 initZ = 0. class T...
0
851
0
25,096
0
0
0
56
267
486499a9cde5c02bed6132e1a8041cca37ed19fb
3,046
py
Python
valid_parentheses/main.py
olepunchy/leetcode-python-solutions
1c8dcb921f3a66905f605d6b08e455116a426e42
[ "BSD-3-Clause" ]
null
null
null
valid_parentheses/main.py
olepunchy/leetcode-python-solutions
1c8dcb921f3a66905f605d6b08e455116a426e42
[ "BSD-3-Clause" ]
null
null
null
valid_parentheses/main.py
olepunchy/leetcode-python-solutions
1c8dcb921f3a66905f605d6b08e455116a426e42
[ "BSD-3-Clause" ]
null
null
null
""" Description: 20. Valid Parentheses Difficulty: Easy Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. ...
24.368
85
0.504268
""" Description: 20. Valid Parentheses Difficulty: Easy Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. ...
0
0
0
2,392
0
0
0
0
69
edc55cb0801661f81c893b52cbc9bdfec1a10df5
32,350
py
Python
src/rogerthat/to/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/to/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
src/rogerthat/to/__init__.py
goubertbrent/oca-backend
b9f59cc02568aecb55d4b54aec05245790ea25fd
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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...
54.923599
128
0.677805
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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...
0
1,107
0
28,897
0
116
0
230
549
6a5f50c4eeb3c61f6e9947ea09ae0b96bc1e66b4
28
py
Python
Section 2/first.py
samlvlen/PacktPublishingz
1c71ffd71a649e876fc507a96ccd4597649218e5
[ "MIT" ]
7
2019-10-15T08:24:58.000Z
2021-04-20T00:42:48.000Z
Section 2/first.py
samlvlen/PacktPublishingz
1c71ffd71a649e876fc507a96ccd4597649218e5
[ "MIT" ]
null
null
null
Section 2/first.py
samlvlen/PacktPublishingz
1c71ffd71a649e876fc507a96ccd4597649218e5
[ "MIT" ]
13
2019-11-17T13:22:58.000Z
2020-12-05T17:10:58.000Z
print("This is a .py file")
14
27
0.642857
print("This is a .py file")
0
0
0
0
0
0
0
0
0
b0ec28dbacdfcb98af956997d225eaeac37b7e46
64
py
Python
lang/py/cookbook/v2/source/cb2_4_11_exm_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_4_11_exm_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
lang/py/cookbook/v2/source/cb2_4_11_exm_2.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
null
null
null
import itertools d = dict(itertools.izip(the_keys, the_values))
21.333333
46
0.796875
import itertools d = dict(itertools.izip(the_keys, the_values))
0
0
0
0
0
0
0
0
0
19ec76fd63e8a13db6918ecb1ac68c58be665f86
3,689
py
Python
quantus/evaluation.py
sebastian-lapuschkin/Quantus
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
[ "MIT" ]
null
null
null
quantus/evaluation.py
sebastian-lapuschkin/Quantus
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
[ "MIT" ]
null
null
null
quantus/evaluation.py
sebastian-lapuschkin/Quantus
c3b8a9fb2018f34bd89ba38efa2b2b8c38128b3f
[ "MIT" ]
null
null
null
"""This module provides some functionality to evaluate different explanation methods on several evaluation criteria.""" from typing import Union, Callable, Dict import numpy as np from .helpers.model_interface import ModelInterface def evaluate( metrics: dict, xai_methods: Union[Dict[str, Callable], Dict[str,...
28.376923
119
0.526159
"""This module provides some functionality to evaluate different explanation methods on several evaluation criteria.""" from typing import Union, Callable, Dict import numpy as np from .metrics import * from .helpers.constants import * from .helpers.model_interface import ModelInterface def evaluate( metrics: dic...
0
0
0
0
0
0
0
12
44
178f4ebbe63a9ae76636cf233d022d4fb74f6fdf
1,307
py
Python
multitoken/serializers.py
sunscrapers/django-rest-multitoken
87a7f886ece0ee161c035888bd73014dafa9f2cb
[ "MIT" ]
16
2015-06-30T21:34:53.000Z
2020-06-01T21:59:48.000Z
multitoken/serializers.py
sunscrapers/django-rest-multitoken
87a7f886ece0ee161c035888bd73014dafa9f2cb
[ "MIT" ]
7
2015-07-08T22:23:43.000Z
2016-09-09T21:34:18.000Z
multitoken/serializers.py
sunscrapers/django-rest-multitoken
87a7f886ece0ee161c035888bd73014dafa9f2cb
[ "MIT" ]
12
2016-02-09T17:49:00.000Z
2021-11-30T19:46:51.000Z
from django.contrib.auth import get_user_model User = get_user_model()
32.675
97
0.697016
from django.contrib.auth import get_user_model, authenticate from rest_framework import serializers from . import models, constants User = get_user_model() class TokenSerializer(serializers.ModelSerializer): auth_token = serializers.CharField(source='key') class Meta: model = models.Token fi...
0
0
0
1,102
0
0
0
41
90
cbdb7dc46648bfa1d324a7dabdd0f3200311a9b0
12,306
py
Python
yan2017/regenerate_matches.py
lxxue/colmap
1e2cbf61160205fd53d9fe7a1a8df359b870cae3
[ "BSD-3-Clause" ]
null
null
null
yan2017/regenerate_matches.py
lxxue/colmap
1e2cbf61160205fd53d9fe7a1a8df359b870cae3
[ "BSD-3-Clause" ]
null
null
null
yan2017/regenerate_matches.py
lxxue/colmap
1e2cbf61160205fd53d9fe7a1a8df359b870cae3
[ "BSD-3-Clause" ]
null
null
null
# def RegenerateMatches(num_images, is_geo_neighbors, matches_list): # # subject to simplications. For now we mimic the original code # # Actually I feel like do this in my way is way more convenient and straightforaward # new_matches_list = MatchesList(num_images) # for i in range(num_images): # ...
48.448819
166
0.638957
import numpy as np import os from utils import IntersectList, image_ids_to_pair_id, pair_id_to_image_ids, blob_to_array from matches_list import MatchesList from database import COLMAPDatabase def ConstructPathNetwork(num_images, matches_list, img_included, unique_tracks, visible_tracks, minimal_views, score_thres): ...
0
0
0
0
0
11,013
0
83
180
a68c876f64597f3895131ea57a90969d8dc783c3
19,431
py
Python
src/lin_my/s3_rl_collect_offline_one.py
yifan-you-37/omnihang
c80b699b2cf2cf3422201cc8c3fa572d0e01d5a2
[ "MIT" ]
1
2022-01-16T20:24:09.000Z
2022-01-16T20:24:09.000Z
src/lin_my/s3_rl_collect_offline_one.py
yifan-you-37/omnihang
c80b699b2cf2cf3422201cc8c3fa572d0e01d5a2
[ "MIT" ]
null
null
null
src/lin_my/s3_rl_collect_offline_one.py
yifan-you-37/omnihang
c80b699b2cf2cf3422201cc8c3fa572d0e01d5a2
[ "MIT" ]
1
2022-03-16T03:14:37.000Z
2022-03-16T03:14:37.000Z
import tensorflow.contrib.slim as slim import numpy as np import sys import random # from contact_point_dataset_torch_multi_label import MyDataset from simple_dataset import MyDataset import os import argparse from torch.utils.data import DataLoader import torch # from torch.utils.tensorboard import SummaryWriter fr...
38.477228
181
0.736864
import tensorflow as tf import tensorflow.contrib.slim as slim import numpy as np import sys import random # from contact_point_dataset_torch_multi_label import MyDataset from simple_dataset import MyDataset import os import time import argparse from functools import partial from torch.utils.data import DataLoader i...
0
0
0
0
0
10,236
0
187
400
9cbc11953dd73fb6f511c74d730fad379ee2138f
91
py
Python
config.py
agithug/fan-controller
046ecd9120c3a3fa0c581cbcd3dc89bd50a7373c
[ "MIT" ]
null
null
null
config.py
agithug/fan-controller
046ecd9120c3a3fa0c581cbcd3dc89bd50a7373c
[ "MIT" ]
null
null
null
config.py
agithug/fan-controller
046ecd9120c3a3fa0c581cbcd3dc89bd50a7373c
[ "MIT" ]
null
null
null
#used as a configuration file def fan: pin = 4 dependencies = [python3,gpiozero]
13
37
0.67033
#used as a configuration file def fan: pin = 4 dependencies = [“python3”,”gpiozero”]
12
0
0
0
0
0
0
0
0
e86dbe71b0fe9f0144228f27929f8d7e351781d8
831
py
Python
blueqat/backends/__init__.py
mdrft/Blueqat
878d24e2038063e32b4d391a03bc2c2be0600470
[ "Apache-2.0" ]
25
2018-09-16T22:54:48.000Z
2019-02-22T01:21:30.000Z
blueqat/backends/__init__.py
mdrft/Blueqat
878d24e2038063e32b4d391a03bc2c2be0600470
[ "Apache-2.0" ]
22
2018-09-20T02:47:56.000Z
2019-02-08T05:25:30.000Z
blueqat/backends/__init__.py
mdrft/Blueqat
878d24e2038063e32b4d391a03bc2c2be0600470
[ "Apache-2.0" ]
5
2018-10-23T04:56:04.000Z
2019-02-13T14:02:31.000Z
from .numpy_backend import NumPyBackend from .numba_backend import numba_backend_lazy from .qasm_output_backend import QasmOutputBackend from .ibmq_backend import ibmq_backend from .sympy_backend import SympyBackend from .onequbitgate_transpiler import OneQubitGateCompactionTranspiler from .twoqubitgate_transpiler impo...
33.24
70
0.802647
from .numpy_backend import NumPyBackend from .numba_backend import numba_backend_lazy from .qasm_output_backend import QasmOutputBackend from .ibmq_backend import ibmq_backend from .sympy_backend import SympyBackend from .onequbitgate_transpiler import OneQubitGateCompactionTranspiler from .twoqubitgate_transpiler impo...
0
0
0
0
0
0
0
0
0
94aecc90c02852896c41b5533325bd00b1cd1e01
588
py
Python
Django/DjangoT1.11_LTS/37_Model Form Validators/blog/views.py
Akhadafi/WEB-Framework
4547a682ac1f007aa6f97512baf76b92ef1c9b9a
[ "MIT" ]
null
null
null
Django/DjangoT1.11_LTS/37_Model Form Validators/blog/views.py
Akhadafi/WEB-Framework
4547a682ac1f007aa6f97512baf76b92ef1c9b9a
[ "MIT" ]
null
null
null
Django/DjangoT1.11_LTS/37_Model Form Validators/blog/views.py
Akhadafi/WEB-Framework
4547a682ac1f007aa6f97512baf76b92ef1c9b9a
[ "MIT" ]
null
null
null
# Create your views here.
18.967742
50
0.710884
from django.shortcuts import render, redirect # Create your views here. from .forms import PostForm from .models import Post def index(request): posts = Post.objects.all() context = { 'page_title':'post list', 'posts':posts } return render(request,'blog/index.html',context) def create(request): post_form ...
0
0
0
0
0
416
0
33
112
d4339f678c6fe3eda0f0e0a905a66ece9cdec64c
1,473
py
Python
lib/parser_input_gen.py
changzhisun/transfer-joint-entrel
fd204038f69ee5a6aa84907b49b922433835c716
[ "Apache-2.0" ]
3
2019-02-27T03:43:50.000Z
2020-12-17T03:03:21.000Z
lib/parser_input_gen.py
changzhisun/transfer-joint-entrel
fd204038f69ee5a6aa84907b49b922433835c716
[ "Apache-2.0" ]
null
null
null
lib/parser_input_gen.py
changzhisun/transfer-joint-entrel
fd204038f69ee5a6aa84907b49b922433835c716
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Created on 17/10/27 09:53:55 @author: Changzhi Sun """ import argparse import os import utils parser = argparse.ArgumentParser() parser.add_argument( "--config", help="path to json config", required=True ) args = parser.parse_args() config_file_path = args...
32.021739
86
0.661236
#!/usr/bin/env python # -*- coding:utf-8 -*- """ Created on 17/10/27 09:53:55 @author: Changzhi Sun """ import argparse import os import json import utils parser = argparse.ArgumentParser() parser.add_argument( "--config", help="path to json config", required=True ) args = parser.parse_args() config_file...
0
0
0
0
0
381
0
-10
45
b8ab892c17ab9e820122afd37f28b7f791a577ab
6,756
py
Python
src/evaluate.py
ewilkinson/Humanoids_2015
9a081d2775ecc4740e62eff8e46368823615b127
[ "MIT" ]
null
null
null
src/evaluate.py
ewilkinson/Humanoids_2015
9a081d2775ecc4740e62eff8e46368823615b127
[ "MIT" ]
null
null
null
src/evaluate.py
ewilkinson/Humanoids_2015
9a081d2775ecc4740e62eff8e46368823615b127
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import time, sys import matplotlib.pyplot as plt import matplotlib from generic_seg import GenericSegmenter import cv2 from sklearn.neighbors import BallTree from scipy.stats import pearsonr, spearmanr import utils k_closest = 5 aspect_thresh = 0.45 type_thresh = -2.8 plt....
32.325359
103
0.701007
#!/usr/bin/env python import numpy as np import time, sys import matplotlib.pyplot as plt import matplotlib from generic_seg import GenericSegmenter import cv2 from sklearn.neighbors import BallTree from scipy.stats import pearsonr, spearmanr import utils k_closest = 5 aspect_thresh = 0.45 type_thresh = -2.8 plt....
0
0
0
0
0
0
0
0
0
6fbaa2fdf4b8b9dd385adbe6a82a430f17a573c8
727
py
Python
examples/github/__init__.py
Z-Brueske/screenpy
1c852a49eb3821727662458fd707b9bcf48bb8cf
[ "MIT" ]
null
null
null
examples/github/__init__.py
Z-Brueske/screenpy
1c852a49eb3821727662458fd707b9bcf48bb8cf
[ "MIT" ]
null
null
null
examples/github/__init__.py
Z-Brueske/screenpy
1c852a49eb3821727662458fd707b9bcf48bb8cf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # ____ ____ # / ___| ___ _ __ ___ ___ _ __ | _ \ _ _ # \___ \ / __| '__/ _ \/ _ \ '_ \| |_) | | | | # ___) | (__| | | __/ __/ | | | __/| |_| | # |____/ \___|_| \___|\___|_| |_|_| ...
31.608696
78
0.356259
# -*- coding: utf-8 -*- # ____ ____ # / ___| ___ _ __ ___ ___ _ __ | _ \ _ _ # \___ \ / __| '__/ _ \/ _ \ '_ \| |_) | | | | # ___) | (__| | | __/ __/ | | | __/| |_| | # |____/ \___|_| \___|\___|_| |_|_| ...
0
0
0
0
0
0
0
0
0
ee72dfb726f20f54e806cc0ce08ae4b917e2c767
29,102
py
Python
mlpf/pipeline.py
edcuba/particleflow
1c6189f499ae4807ecca42d459e363fd5b3a12ab
[ "Apache-2.0" ]
null
null
null
mlpf/pipeline.py
edcuba/particleflow
1c6189f499ae4807ecca42d459e363fd5b3a12ab
[ "Apache-2.0" ]
null
null
null
mlpf/pipeline.py
edcuba/particleflow
1c6189f499ae4807ecca42d459e363fd5b3a12ab
[ "Apache-2.0" ]
2
2020-11-23T11:11:27.000Z
2021-12-02T20:14:56.000Z
try: except ModuleNotFoundError as e: print("comet_ml not found, ignoring") customization_functions = { "pipeline_test": customize_pipeline_test } if __name__ == "__main__": main()
40.931083
241
0.66126
try: import comet_ml except ModuleNotFoundError as e: print("comet_ml not found, ignoring") import sys import os import yaml import json from datetime import datetime import glob import random import platform import numpy as np from pathlib import Path import click from tqdm import tqdm import shutil from func...
0
21,518
0
0
0
5,197
0
1,053
1,123
765096ec0dda77547021cdac5ded16a2d1170a69
782
py
Python
MUNDO 2/ex069.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
1
2020-11-12T14:03:32.000Z
2020-11-12T14:03:32.000Z
MUNDO 2/ex069.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
null
null
null
MUNDO 2/ex069.py
athavus/Curso-em-video-Python-3
a32be95adbccfcbe512a1ed30d3859141a230b5e
[ "MIT" ]
1
2021-01-05T22:18:46.000Z
2021-01-05T22:18:46.000Z
cont18 = homem = mulher20 = 0 while True: idade = int(input('\033[30mDigite a sua idade:\033[m ')) sexo = str(input('\033[30mDigite o seu sexo [M/F]:\033[m ')).upper().strip() run = str(input('\033[30mVoc gostaria de continuar? [S/N]\033[m ')).upper().strip() if idade >= 18: cont18 += 1 ...
37.238095
89
0.57289
cont18 = homem = mulher20 = 0 while True: idade = int(input('\033[30mDigite a sua idade:\033[m ')) sexo = str(input('\033[30mDigite o seu sexo [M/F]:\033[m ')).upper().strip() run = str(input('\033[30mVocê gostaria de continuar? [S/N]\033[m ')).upper().strip() if idade >= 18: cont18 += 1 ...
6
0
0
0
0
0
0
0
0
89f7f8bdd8cfc7776039684908d5dd3d590fbe8b
128
py
Python
Exercises/seconds-to-hours.py
shoriwe-upb/TallerEjercicios
ba37eb6cd673a8d38a1dfac87c5efac3f728da21
[ "MIT" ]
null
null
null
Exercises/seconds-to-hours.py
shoriwe-upb/TallerEjercicios
ba37eb6cd673a8d38a1dfac87c5efac3f728da21
[ "MIT" ]
null
null
null
Exercises/seconds-to-hours.py
shoriwe-upb/TallerEjercicios
ba37eb6cd673a8d38a1dfac87c5efac3f728da21
[ "MIT" ]
null
null
null
if __name__ == '__main__': main()
16
39
0.578125
def main(): seconds = float(input("Seconds: ")) print("Hours:", seconds / 3600) if __name__ == '__main__': main()
0
0
0
0
0
66
0
0
22
46b58b1f4509a6948b95dbe02953629bf3e4cca6
252
py
Python
spiral.py
hitanshkadakia/python_turtle_programs
0bafc7b4e89f9245b44bad0e9ed03a86631ef44f
[ "Apache-2.0" ]
6
2020-10-06T09:23:54.000Z
2021-07-16T07:52:19.000Z
spiral.py
hitanshkadakia/python_turtle_programs
0bafc7b4e89f9245b44bad0e9ed03a86631ef44f
[ "Apache-2.0" ]
null
null
null
spiral.py
hitanshkadakia/python_turtle_programs
0bafc7b4e89f9245b44bad0e9ed03a86631ef44f
[ "Apache-2.0" ]
5
2020-12-12T14:40:55.000Z
2021-03-28T08:49:54.000Z
import turtle colors = ['red','purple','blue','green','yellow','orange'] t=turtle.Pen() t.speed(0) turtle.bgcolor("black") for x in range(360): t.pencolor(colors[x % 6]) t.width(x/100 + 1) t.forward(x) t.left(59) turtle.done()
22.909091
59
0.599206
import turtle colors = ['red','purple','blue','green','yellow','orange'] t=turtle.Pen() t.speed(0) turtle.bgcolor("black") for x in range(360): t.pencolor(colors[x % 6]) t.width(x/100 + 1) t.forward(x) t.left(59) turtle.done()
0
0
0
0
0
0
0
0
0
d6f4803ae575d4151ed8df735f78ffc904f0a104
1,274
py
Python
src/python/T0/WMBS/Oracle/RunConfig/InsertStreamCMSSWVersion.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
6
2016-03-09T14:36:19.000Z
2021-07-27T01:28:00.000Z
src/python/T0/WMBS/Oracle/RunConfig/InsertStreamCMSSWVersion.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
193
2015-01-07T21:03:43.000Z
2022-03-31T12:22:18.000Z
src/python/T0/WMBS/Oracle/RunConfig/InsertStreamCMSSWVersion.py
silviodonato/T0
a093729d08b31175ed35cd20e889bd7094ce152a
[ "Apache-2.0" ]
36
2015-01-28T19:01:54.000Z
2021-12-15T17:18:20.000Z
""" _InsertStreamCMSSWVersion_ Oracle implementation of InsertStreamCMSSWVersion """
29.627907
79
0.458399
""" _InsertStreamCMSSWVersion_ Oracle implementation of InsertStreamCMSSWVersion """ from WMCore.Database.DBFormatter import DBFormatter class InsertStreamCMSSWVersion(DBFormatter): def execute(self, binds, conn = None, transaction = False): sql = """DECLARE cnt NUMBER(1); ...
0
0
0
1,111
0
0
0
30
46
1d5d976aede6efad04490761615beb1153affdb3
1,913
py
Python
Lib/corpuscrawler/crawl_ha.py
cash/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
95
2019-06-13T23:34:21.000Z
2022-03-12T05:22:49.000Z
Lib/corpuscrawler/crawl_ha.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
31
2019-06-02T18:56:53.000Z
2021-08-10T20:16:02.000Z
Lib/corpuscrawler/crawl_ha.py
sahwar/corpuscrawler
8913fe1fb2b6bfdfbf2ba01d2ce88057b3b5ba3d
[ "Apache-2.0" ]
35
2019-06-18T08:26:24.000Z
2022-01-11T13:59:40.000Z
# Copyright 2017 Google Inc. 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 applicable law or ...
39.854167
78
0.641924
# Copyright 2017 Google Inc. 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 applicable law or ...
0
0
0
0
0
1,115
0
35
90
af919f8803a7aa27a2d9fd9bba809192553588d6
440
py
Python
exercicios/ex022.py
danielmsa/Python-Curso-em-Video
ca247a767477f0b93b2ac36ae911f0a12d63f3c9
[ "MIT" ]
null
null
null
exercicios/ex022.py
danielmsa/Python-Curso-em-Video
ca247a767477f0b93b2ac36ae911f0a12d63f3c9
[ "MIT" ]
null
null
null
exercicios/ex022.py
danielmsa/Python-Curso-em-Video
ca247a767477f0b93b2ac36ae911f0a12d63f3c9
[ "MIT" ]
null
null
null
nome = str(input('Digite seu nome Completo: ')).strip() print('Analisando seu nome...') print('Seu nome em maisculas {}.'.format(nome.upper())) print('Seu nome em minuscula {}.'.format(nome.lower())) print('Seu nome ao todo tem {} letras.'.format(len(nome) - nome.count(' '))) #dividido = nome.split() #print('Seu prim...
48.888889
76
0.670455
nome = str(input('Digite seu nome Completo: ')).strip() print('Analisando seu nome...') print('Seu nome em maiúsculas é {}.'.format(nome.upper())) print('Seu nome em minuscula é {}.'.format(nome.lower())) print('Seu nome ao todo tem {} letras.'.format(len(nome) - nome.count(' '))) #dividido = nome.split() #print('Seu p...
6
0
0
0
0
0
0
0
0
a83ddd9473e3a88424cf6ae7afedfbeddc3b1c1d
50,419
py
Python
formlayout.py
celestinjr/formlayout
256aa83d365f1ab4e6673bfcb6df5489605be05c
[ "MIT" ]
null
null
null
formlayout.py
celestinjr/formlayout
256aa83d365f1ab4e6673bfcb6df5489605be05c
[ "MIT" ]
null
null
null
formlayout.py
celestinjr/formlayout
256aa83d365f1ab4e6673bfcb6df5489605be05c
[ "MIT" ]
1
2020-09-14T15:15:21.000Z
2020-09-14T15:15:21.000Z
# -*- coding: utf-8 -*- """ formlayout ========== Module creating Qt form dialogs/layouts to edit various type of parameters formlayout License Agreement (MIT License) ------------------------------------------ Copyright (c) 2009-2015 Pierre Raybaut Permission is hereby granted, free of charge, to any person obtai...
37.909023
127
0.54537
# -*- coding: utf-8 -*- """ formlayout ========== Module creating Qt form dialogs/layouts to edit various type of parameters formlayout License Agreement (MIT License) ------------------------------------------ Copyright (c) 2009-2015 Pierre Raybaut Permission is hereby granted, free of charge, to any person obtai...
0
378
0
36,777
0
2,097
0
107
1,309
955a303fb7e3ddcfc2d99c3c44aeb9d7f4d6da8c
8,641
py
Python
sppas/sppas/src/ui/wxgui/panels/audioinfo.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/ui/wxgui/panels/audioinfo.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
sppas/sppas/src/ui/wxgui/panels/audioinfo.py
mirfan899/MTTS
3167b65f576abcc27a8767d24c274a04712bd948
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: UTF-8 -*- # --------------------------------------------------------------------------- # ___ __ __ __ ___ # / | \ | \ | \ / Automatic # \__ |__/ |__/ |___| \__ Annotation # \ | | |...
34.564
90
0.498553
#!/usr/bin/env python # -*- coding: UTF-8 -*- # --------------------------------------------------------------------------- # ___ __ __ __ ___ # / | \ | \ | \ / Automatic # \__ |__/ |__/ |___| \__ Annotation # \ | | |...
0
0
0
6,110
0
0
0
178
225
67966d5e3e9f4c80b0e70c48155319c349bb74b2
4,687
py
Python
pyelant/pyelant.py
paulomarcos/pyelant
77183119dc922b5b2c9ff8fca7f6fa9afbf72313
[ "MIT" ]
1
2021-03-18T05:20:57.000Z
2021-03-18T05:20:57.000Z
pyelant/pyelant.py
paulomarcos/pyelant
77183119dc922b5b2c9ff8fca7f6fa9afbf72313
[ "MIT" ]
null
null
null
pyelant/pyelant.py
paulomarcos/pyelant
77183119dc922b5b2c9ff8fca7f6fa9afbf72313
[ "MIT" ]
null
null
null
""" Python Easy Language Translator PyElant is a python tool for easily performing translations and storing it on the clipboard. Input can be received via microphone, command line or the clipboard itself. @brief PyElant @author Paulo Marcos @date 2021-03-19 Copyright (c) 2021 paulomarcosdj <@> outlook.com "...
38.418033
120
0.616386
""" Python Easy Language Translator PyElant is a python tool for easily performing translations and storing it on the clipboard. Input can be received via microphone, command line or the clipboard itself. @brief PyElant @author Paulo Marcos @date 2021-03-19 Copyright (c) 2021 paulomarcosdj <@> outlook.com "...
0
114
0
4,059
0
0
0
6
155
55886ede4962b83e8e923a7125e8e3f81a493743
2,376
py
Python
GANs/AC_GAN/generator.py
sushant097/Deep-Learning-Paper-Scratch-Implementation
e1e5cbd0f1f10dd9ed0673e8a0506f33c94f6725
[ "MIT" ]
4
2022-01-07T14:48:13.000Z
2022-02-24T10:10:24.000Z
GANs/AC_GAN/generator.py
sushant097/Deep-Learning-Paper-Scratch-Implementation
e1e5cbd0f1f10dd9ed0673e8a0506f33c94f6725
[ "MIT" ]
null
null
null
GANs/AC_GAN/generator.py
sushant097/Deep-Learning-Paper-Scratch-Implementation
e1e5cbd0f1f10dd9ed0673e8a0506f33c94f6725
[ "MIT" ]
null
null
null
import torch.nn as nn
31.68
109
0.540404
import torch import torch.nn as nn from utils import custom_init class Block(nn.Module): def __init__(self, in_channels, out_channels, stride, kernel_size): super().__init__() self.conv = nn.Sequential( nn.ConvTranspose2d(in_channels, out_channels, kernel_size=kernel_size, stride=strid...
0
0
0
2,263
0
0
0
-1
90
a1a8a753bd80b8f7cf5427944c7e7a9476c59854
3,866
py
Python
scripts/pickplaceboxes.py
BasJ93/UR5_PickPlaceBoxes_Descartes
1901bf0956cc40d4516fbac83c22914630505b5d
[ "MIT" ]
5
2018-07-04T09:17:55.000Z
2019-05-18T01:43:39.000Z
scripts/pickplaceboxes.py
BasJ93/UR5_PickPlaceBoxes_Descartes
1901bf0956cc40d4516fbac83c22914630505b5d
[ "MIT" ]
null
null
null
scripts/pickplaceboxes.py
BasJ93/UR5_PickPlaceBoxes_Descartes
1901bf0956cc40d4516fbac83c22914630505b5d
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Created on Mon Jan 22 13:36:32 2018 #@author: bas #First create the boxes to stack. Move the robot to the first box to pick. Add the box to the robot with attache_box(link, name). Move the arm to the place point. Release the box with remove_attached_object(link, name). Re...
23.430303
227
0.695292
#!/usr/bin/env python # -*- coding: utf-8 -*- #Created on Mon Jan 22 13:36:32 2018 #@author: bas #First create the boxes to stack. Move the robot to the first box to pick. Add the box to the robot with attache_box(link, name). Move the arm to the place point. Release the box with remove_attached_object(link, name). Re...
0
0
0
0
0
3,198
0
70
134
60e58a3b63709589be39c8b12ebc8f3a43b9eeaa
649
py
Python
fastapp/__init__.py
sahlinet/fastapp
fcbf8e404a411a4530093c0fbbb4664aedade162
[ "MIT" ]
null
null
null
fastapp/__init__.py
sahlinet/fastapp
fcbf8e404a411a4530093c0fbbb4664aedade162
[ "MIT" ]
9
2016-01-11T15:13:43.000Z
2016-03-22T14:16:39.000Z
fastapp/__init__.py
sahlinet/fastapp
fcbf8e404a411a4530093c0fbbb4664aedade162
[ "MIT" ]
null
null
null
__version__ = "0.9.2" import os from django.core.exceptions import ImproperlyConfigured # load plugins from django.conf import settings try: plugins_config = getattr(settings, "FASTAPP_PLUGINS_CONFIG", {}) plugins = plugins_config.keys() plugins = plugins + getattr(settings, "FASTAPP_PLUGINS", []) fo...
27.041667
68
0.633282
__version__ = "0.9.2" import os from django.core.exceptions import ImproperlyConfigured # load plugins from django.conf import settings try: plugins_config = getattr(settings, "FASTAPP_PLUGINS_CONFIG", {}) plugins = plugins_config.keys() plugins = plugins + getattr(settings, "FASTAPP_PLUGINS", []) fo...
0
0
0
0
0
189
0
0
30
ee92382a0b9b8437804b130cfb94092969a3baaa
2,928
py
Python
video_capture/motion_capture.py
FrostyDesigner/Python_Scripts
ec9dcf1a8787e60e40cd72260618739a681087ef
[ "Unlicense" ]
1
2021-07-05T22:30:47.000Z
2021-07-05T22:30:47.000Z
video_capture/motion_capture.py
FrostyDesigner/Python_Scripts
ec9dcf1a8787e60e40cd72260618739a681087ef
[ "Unlicense" ]
8
2020-03-24T15:58:07.000Z
2022-03-11T23:26:05.000Z
video_capture/motion_capture.py
FrostyDesigner/Python_Scripts
ec9dcf1a8787e60e40cd72260618739a681087ef
[ "Unlicense" ]
null
null
null
import cv2, pandas from datetime import datetime first_frame=None #fill list with two empty items status_list=[None,None] times=[] df=pandas.DataFrame(columns=["Start", "End"]) video=cv2.VideoCapture(0) while True: check, frame = video.read() status=0 gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) #maki...
34.447059
139
0.686475
import cv2, time, pandas from datetime import datetime first_frame=None #fill list with two empty items status_list=[None,None] times=[] df=pandas.DataFrame(columns=["Start", "End"]) video=cv2.VideoCapture(0) while True: check, frame = video.read() status=0 gray=cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) ...
0
0
0
0
0
0
0
6
0
8f56d01e8e1f51454dd4a99a9f0e1e7cf61b95ab
4,680
py
Python
augment.py
0chandansharma/Augmentation-withBbox-YOLO
bf022fa08aba4b16a127a86f9831276114522226
[ "MIT" ]
1
2022-01-19T13:11:47.000Z
2022-01-19T13:11:47.000Z
augment.py
0chandansharma/Augmentation-withBbox-YOLO
bf022fa08aba4b16a127a86f9831276114522226
[ "MIT" ]
null
null
null
augment.py
0chandansharma/Augmentation-withBbox-YOLO
bf022fa08aba4b16a127a86f9831276114522226
[ "MIT" ]
null
null
null
anno_INPUT_DIR = r'annotation_files/' img_INPUT_DIR = r'image_files/' OUTPUT_DIR = 'output_dir/' AUGMENT_SIZE = 6 if __name__ == '__main__': main()
38.360656
186
0.488675
import imgaug as ia import imgaug.augmenters as iaa import os import cv2 import numpy as np from util import sequence anno_INPUT_DIR = r'annotation_files/' img_INPUT_DIR = r'image_files/' OUTPUT_DIR = 'output_dir/' AUGMENT_SIZE = 6 def main(): for file_name in os.listdir(anno_INPUT_DIR): annotation_path ...
0
0
0
0
0
4,358
0
-14
178
c199bfe61e7d633fd87ed5bbcc96cb96a25936d4
3,581
py
Python
kk_manual/ta.py
Krystof-Majer/K-K_pyrolysis
5c99a1d0776dffad952d9b814ecee5ec5250dcfb
[ "MIT" ]
null
null
null
kk_manual/ta.py
Krystof-Majer/K-K_pyrolysis
5c99a1d0776dffad952d9b814ecee5ec5250dcfb
[ "MIT" ]
null
null
null
kk_manual/ta.py
Krystof-Majer/K-K_pyrolysis
5c99a1d0776dffad952d9b814ecee5ec5250dcfb
[ "MIT" ]
null
null
null
WINDOW = "sg" # sg for savgol filter WINDOW = "hamming" WINDOW_SIZE = 41 CUTOFF_FREQ = 2.5 # Hz SG_POLYORDER = 2 SG_PARAMS = (WINDOW_SIZE, SG_POLYORDER) USING_SG = WINDOW.lower() == "sg" if __name__ == "__main__": main()
24.868056
79
0.627478
from glob import glob from os import chdir from os.path import dirname import pandas as pd import numpy as np from pandas.core.frame import DataFrame import matplotlib.pyplot as plt from numpy.fft import rfft, rfftfreq from scipy import signal from math import pi WINDOW = "sg" # sg for savgol filter WINDOW = "hamming...
0
0
0
0
0
2,868
0
44
427
71356c3d96e921e5de50328e670a5a1bc846a97f
3,765
py
Python
qbay_test/frontend/test_order/test_order.py
Will-C-Aitken/qBay
b9faf0578cf6778c8940c303db240f8d6a7ec9d5
[ "MIT" ]
null
null
null
qbay_test/frontend/test_order/test_order.py
Will-C-Aitken/qBay
b9faf0578cf6778c8940c303db240f8d6a7ec9d5
[ "MIT" ]
null
null
null
qbay_test/frontend/test_order/test_order.py
Will-C-Aitken/qBay
b9faf0578cf6778c8940c303db240f8d6a7ec9d5
[ "MIT" ]
null
null
null
# from os import popen from pathlib import Path import subprocess # Set the current folder current_folder = Path(__file__).parent # Creating two Users for testing of order functionality register("OrderUser1", "order_user1@qbay.com", "Password99@") register("OrderUser2", "order_user2@qbay.c...
31.638655
64
0.656308
# from os import popen from pathlib import Path from qbay.models import * import subprocess # Set the current folder current_folder = Path(__file__).parent # Creating two Users for testing of order functionality register("OrderUser1", "order_user1@qbay.com", "Password99@") register("OrderUser2", ...
0
0
0
0
0
0
0
4
22
0efaecb6691920ae4e16e6c7986dfb8538105b96
9,189
py
Python
deepobs/tensorflow/testproblems/tolstoi_char_rnn.py
H0merJayS1mpson/deepobscustom
e85816ce42466326dac18841c58b79f87a4a1a7c
[ "MIT" ]
null
null
null
deepobs/tensorflow/testproblems/tolstoi_char_rnn.py
H0merJayS1mpson/deepobscustom
e85816ce42466326dac18841c58b79f87a4a1a7c
[ "MIT" ]
null
null
null
deepobs/tensorflow/testproblems/tolstoi_char_rnn.py
H0merJayS1mpson/deepobscustom
e85816ce42466326dac18841c58b79f87a4a1a7c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """A two-layer LSTM for character-level language modelling on Tolstoi's War and Peace."""
37.971074
89
0.616716
# -*- coding: utf-8 -*- """A two-layer LSTM for character-level language modelling on Tolstoi's War and Peace.""" import tensorflow as tf from ..datasets.tolstoi import tolstoi from .testproblem import TestProblem class tolstoi_char_rnn(TestProblem): """DeepOBS test problem class for a two-layer LSTM for charac...
0
0
0
8,949
0
0
0
34
91
68a8fbe161e5eea1b7487e0de4fee1fdbbed936c
328
py
Python
SonodaUmi/camera.py
Aperturedimigo/PL
52ac2fe878a72b74ac0ab0b33678fbdc54724d93
[ "MIT" ]
null
null
null
SonodaUmi/camera.py
Aperturedimigo/PL
52ac2fe878a72b74ac0ab0b33678fbdc54724d93
[ "MIT" ]
null
null
null
SonodaUmi/camera.py
Aperturedimigo/PL
52ac2fe878a72b74ac0ab0b33678fbdc54724d93
[ "MIT" ]
null
null
null
from io import BytesIO from time import sleep from PyQt5.QtGui import QPixmap from picamera import PiCamera # Create an in-memory stream my_stream = BytesIO() camera = PiCamera() camera.start_preview() # Camera warm-up time sleep(100) camera.capture(my_stream, 'jpeg') qp = QPixmap() qp.loadFromData(my...
20.5
34
0.743902
from io import BytesIO from time import sleep from PyQt5.QtGui import QPixmap from picamera import PiCamera # Create an in-memory stream my_stream = BytesIO() camera = PiCamera() camera.start_preview() # Camera warm-up time sleep(100) camera.capture(my_stream, 'jpeg') qp = QPixmap() qp.loadFromData(my...
0
0
0
0
0
0
0
0
0
e113e51f680ef8d827fb3dad26bbcfd40f3e92fd
386
py
Python
smart_pathlib/local_file.py
gfournier/smart_pathlib
bcb3c5b778728c26ec5c1eb519bdf720fb9d8e2b
[ "MIT" ]
null
null
null
smart_pathlib/local_file.py
gfournier/smart_pathlib
bcb3c5b778728c26ec5c1eb519bdf720fb9d8e2b
[ "MIT" ]
1
2021-02-13T10:32:54.000Z
2021-02-14T06:26:43.000Z
smart_pathlib/local_file.py
gfournier/smart_pathlib
bcb3c5b778728c26ec5c1eb519bdf720fb9d8e2b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Guillaume Fournier <fournierg@gmail.com> # # This file is forked from `smart_open` project. # # This code is distributed under the terms and conditions # from the MIT License (MIT). # SCHEME = 'file'
17.545455
61
0.699482
# -*- coding: utf-8 -*- # # Copyright (C) 2021 Guillaume Fournier <fournierg@gmail.com> # # This file is forked from `smart_open` project. # # This code is distributed under the terms and conditions # from the MIT License (MIT). # import os SCHEME = 'file' def exists(uri, transport_params): return os.path.exist...
0
0
0
0
0
79
0
-12
68
ccd8b22a004ce890bc47555740c37e7c9057141d
11,254
py
Python
DPrepB-C/pipe.py
SKA-ScienceDataProcessor/SIP-DPrep
7b98bfa4d9f76c6f8bafcb97613e2533cc9426fd
[ "Apache-2.0" ]
1
2019-01-23T13:03:42.000Z
2019-01-23T13:03:42.000Z
DPrepB-C/pipe.py
SKA-ScienceDataProcessor/SIP-DPrep
7b98bfa4d9f76c6f8bafcb97613e2533cc9426fd
[ "Apache-2.0" ]
null
null
null
DPrepB-C/pipe.py
SKA-ScienceDataProcessor/SIP-DPrep
7b98bfa4d9f76c6f8bafcb97613e2533cc9426fd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python __author__ = "Jamie Farnes" __email__ = "jamie.farnes@oerc.ox.ac.uk" import os import time as t import subprocess import argparse import numpy as np from processing_components.image.operations import import_image_from_fits, export_image_to_fits, qa_image from processing_components.visibility.o...
40.775362
146
0.631242
#!/usr/bin/env python __author__ = "Jamie Farnes" __email__ = "jamie.farnes@oerc.ox.ac.uk" import os import time as t import subprocess import argparse import numpy as np from processing_components.image.operations import import_image_from_fits, export_image_to_fits, \ qa_image from processing_components.visibi...
0
0
0
0
0
341
0
6
26
7a4bd9a6886f8c29b1fa8048bb6eb5fb2add74ce
721
py
Python
meetup/meetup.py
gordonli08/Exercism-python
ff3d79ccc61bac7475641ee6c2f19a0367e3e254
[ "MIT" ]
null
null
null
meetup/meetup.py
gordonli08/Exercism-python
ff3d79ccc61bac7475641ee6c2f19a0367e3e254
[ "MIT" ]
null
null
null
meetup/meetup.py
gordonli08/Exercism-python
ff3d79ccc61bac7475641ee6c2f19a0367e3e254
[ "MIT" ]
null
null
null
import calendar days = dict(zip(list(calendar.day_name),range(7))) week_dict = { "1st":0, "2nd":1, "3rd":2, "4th":3, "5th":4, "teenth":[13,14,15,16,17,18,19] }
21.205882
119
0.665742
import calendar from datetime import date days = dict(zip(list(calendar.day_name),range(7))) week_dict = { "1st":0, "2nd":1, "3rd":2, "4th":3, "5th":4, "teenth":[13,14,15,16,17,18,19] } class MeetupDayException(Exception): pass def meetup(year, month, week, day_of_week): dates = [day for day in calendar.Cal...
0
0
0
21
0
456
0
4
68
eca3d5f34519de179ccbe03ab98a5386b8d0d81b
9,635
py
Python
flask_gatekeeper/gatekeeper.py
k0rventen/flask-gatekeeper
9a3457f56aa7c43d0a7f4f40dd44acb7098b635a
[ "MIT" ]
1
2021-05-02T16:56:40.000Z
2021-05-02T16:56:40.000Z
flask_gatekeeper/gatekeeper.py
k0rventen/flask-gatekeeper
9a3457f56aa7c43d0a7f4f40dd44acb7098b635a
[ "MIT" ]
null
null
null
flask_gatekeeper/gatekeeper.py
k0rventen/flask-gatekeeper
9a3457f56aa7c43d0a7f4f40dd44acb7098b635a
[ "MIT" ]
null
null
null
"""A (very) simple banning & rate limiting extension for Flask. """
43.795455
186
0.643591
"""A (very) simple banning & rate limiting extension for Flask. """ from inspect import signature import time from collections import deque from functools import wraps from flask import request class IP: def __init__(self, ban_count, rate_count): """IP record that keeps track of reports and requests made...
0
631
0
8,761
0
0
0
16
157
4cfdd6601c7b7cb48ab20b417f8a158c7c931b5b
127
py
Python
uptee/messaging/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
2
2018-12-26T18:48:58.000Z
2021-07-20T23:41:14.000Z
uptee/messaging/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
13
2015-01-20T19:18:10.000Z
2022-03-07T21:35:55.000Z
uptee/messaging/urls.py
teeworldsCNFun/upTee
1c04b7421f4834f83bbb9f59f43dfebac08e56b0
[ "BSD-3-Clause" ]
3
2015-12-04T20:10:50.000Z
2022-01-24T12:31:09.000Z
urlpatterns = patterns('messaging.views', url(r'^contact/$', 'contact', name='contact'), )
21.166667
50
0.677165
from django.conf.urls import * urlpatterns = patterns('messaging.views', url(r'^contact/$', 'contact', name='contact'), )
0
0
0
0
0
0
0
9
22
07201b67beeaf697ef36f79b77817d9b58e7ce68
1,022
py
Python
data_processing/ddh5_Plotting/ddh5_freq_sweep_plotting.py
PITT-HATLAB/data_processing
ad49bb921e0fc90b90f0b696e2cbb662019f5f40
[ "MIT" ]
null
null
null
data_processing/ddh5_Plotting/ddh5_freq_sweep_plotting.py
PITT-HATLAB/data_processing
ad49bb921e0fc90b90f0b696e2cbb662019f5f40
[ "MIT" ]
null
null
null
data_processing/ddh5_Plotting/ddh5_freq_sweep_plotting.py
PITT-HATLAB/data_processing
ad49bb921e0fc90b90f0b696e2cbb662019f5f40
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 1 14:02:03 2021 @author: Hatlab_3 for getting many files out of a particular directory with Wolfie's directory structure' """ from plottr.apps.autoplot import main cwd = r'E:\Data\Cooldown_20210104\pitchfork_freq_sweeps\2_kappa' res = find_all_ddh5(cwd) for filename...
28.388889
87
0.588063
# -*- coding: utf-8 -*- """ Created on Mon Feb 1 14:02:03 2021 @author: Hatlab_3 for getting many files out of a particular directory with Wolfie's directory structure' """ import easygui import os from plottr.apps.autoplot import autoplotDDH5, script, main from plottr.data.datadict_storage import all_datadicts_fro...
0
0
0
0
0
530
0
46
90
855d2ad3e5d79cc0741d1688a292b12f7917267d
283
py
Python
fabfile/helper/print_helper.py
kurochan/config-collector
656da97eb219eb5bcf913173dd7aa76d0cedd44c
[ "MIT" ]
1
2017-07-30T17:35:10.000Z
2017-07-30T17:35:10.000Z
fabfile/helper/print_helper.py
kurochan/config-collector
656da97eb219eb5bcf913173dd7aa76d0cedd44c
[ "MIT" ]
null
null
null
fabfile/helper/print_helper.py
kurochan/config-collector
656da97eb219eb5bcf913173dd7aa76d0cedd44c
[ "MIT" ]
1
2015-03-01T08:52:14.000Z
2015-03-01T08:52:14.000Z
# -*- coding: utf-8 -*-
25.727273
46
0.628975
# -*- coding: utf-8 -*- from fabric.api import env from fabric.utils import puts from fabric.colors import * def task_puts(msg = "", task = None): if task is None and "task_name" in env: task = env.task_name line = "[{0}] {1}".format(cyan(task), msg) puts(line)
0
0
0
0
0
151
0
19
89
55b76ff148dc504b10e22a1f063c39dd2e7c80c6
1,145
py
Python
app/migrations/0002_auto_20160213_1140.py
AxiaCore/Mission-Control-Dashboard
fd2611a00b5ec124d3f1b1e93dea87e428ab3af2
[ "MIT" ]
null
null
null
app/migrations/0002_auto_20160213_1140.py
AxiaCore/Mission-Control-Dashboard
fd2611a00b5ec124d3f1b1e93dea87e428ab3af2
[ "MIT" ]
null
null
null
app/migrations/0002_auto_20160213_1140.py
AxiaCore/Mission-Control-Dashboard
fd2611a00b5ec124d3f1b1e93dea87e428ab3af2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-13 16:40 from __future__ import unicode_literals
30.945946
114
0.557205
# -*- coding: utf-8 -*- # Generated by Django 1.9.1 on 2016-02-13 16:40 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app', '0001_initial'), ] operations = [ migrations.CreateModel( ...
0
0
0
967
0
0
0
19
46
6f30935d0f151c9c3481de0b6bf62bbce0ab35f3
2,790
py
Python
aiogremlin/exceptions.py
platinummonkey/trolliusgremlin
eae145c94f5943eb6d616ea2b44a9368715bba92
[ "MIT" ]
null
null
null
aiogremlin/exceptions.py
platinummonkey/trolliusgremlin
eae145c94f5943eb6d616ea2b44a9368715bba92
[ "MIT" ]
null
null
null
aiogremlin/exceptions.py
platinummonkey/trolliusgremlin
eae145c94f5943eb6d616ea2b44a9368715bba92
[ "MIT" ]
null
null
null
"""Gremlin Server exceptions.""" __all__ = ("RequestError", "GremlinServerError")
44.285714
79
0.548746
"""Gremlin Server exceptions.""" __all__ = ("RequestError", "GremlinServerError") class StatusException(IOError): def __init__(self, value, result): """Handle all exceptions returned from the Gremlin Server. """ self.value = value self.response = { 498: ("MALFORMED_RE...
0
0
0
2,635
0
0
0
0
69
d6663a939d1d15909186d6dd9f28d2414d0e46be
1,599
py
Python
u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/stochastic_pooling_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
45
2015-04-26T04:45:51.000Z
2022-01-24T15:03:55.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/stochastic_pooling_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
8
2018-07-20T20:54:51.000Z
2020-06-12T05:36:04.000Z
u24_lymphocyte/third_party/treeano/sandbox/nodes/tests/stochastic_pooling_test.py
ALSM-PhD/quip_classification
7347bfaa5cf11ae2d7a528fbcc43322a12c795d3
[ "BSD-3-Clause" ]
22
2018-05-21T23:57:20.000Z
2022-02-21T00:48:32.000Z
import theano fX = theano.config.floatX
33.3125
75
0.539712
import nose.tools as nt import numpy as np import theano import theano.tensor as T import treeano import treeano.nodes as tn from treeano.sandbox.nodes import stochastic_pooling fX = theano.config.floatX def test_stochastic_pool_2d_node_serialization(): tn.check_serialization(stochastic_pooling.StochasticPool2D...
0
0
0
0
0
1,321
0
32
202
76a48b1067ecfc79ed31c9d5ec55e4f9418cc5f4
5,984
py
Python
src/main.py
JustWhit3/WaveNCC
a2575028e1b03f3d4161474fa415e15a434f5314
[ "MIT" ]
3
2022-02-12T20:34:09.000Z
2022-03-12T02:00:30.000Z
src/main.py
JustWhit3/WaveNCC
a2575028e1b03f3d4161474fa415e15a434f5314
[ "MIT" ]
1
2022-02-04T09:35:53.000Z
2022-02-04T09:36:20.000Z
src/main.py
JustWhit3/WaveNCC
a2575028e1b03f3d4161474fa415e15a434f5314
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jan 21 12:32:00 2022 Author: Gianluca Bianco """ ################################################# # Libraries ################################################# ################################################# # Main program ##################...
43.05036
125
0.472259
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jan 21 12:32:00 2022 Author: Gianluca Bianco """ ################################################# # Libraries ################################################# import sys, os import functions as ft from termcolor import colored import numpy as np f...
0
0
0
0
0
5,378
0
61
155
c14ec39cd557953ad7c55b6bf474f5e403ef1418
1,022
py
Python
filtered_csv.py
tamarakatic/github-users-distance
3b50e17327e30702ed387947066e0f45874f6bff
[ "MIT" ]
null
null
null
filtered_csv.py
tamarakatic/github-users-distance
3b50e17327e30702ed387947066e0f45874f6bff
[ "MIT" ]
null
null
null
filtered_csv.py
tamarakatic/github-users-distance
3b50e17327e30702ed387947066e0f45874f6bff
[ "MIT" ]
1
2019-10-03T16:43:54.000Z
2019-10-03T16:43:54.000Z
import pandas as pd df = pd.read_csv('data/2012_05_06.csv') nan_index = df[(df['type'] == 'MemberEvent') & df.isnull().any(axis=1)].index df = df.drop(nan_index) df = df.apply(filter_data, axis=1) print("\n Writing to CSV file...") df.to_csv('filter/2012_05_06.csv', sep='\t') print("\n Done!")
24.926829
77
0.610568
import pandas as pd import json from io import StringIO df = pd.read_csv('data/2012_05_06.csv') nan_index = df[(df['type'] == 'MemberEvent') & df.isnull().any(axis=1)].index df = df.drop(nan_index) def remove_prefix(text, prefix): if text.startswith(prefix): return text[len(prefix):] return text de...
0
0
0
0
0
640
0
-8
90
a7472a869ed41690dcea7cd34560243e5d8649aa
7,808
py
Python
scripts/fixedpeers-check.py
douglaslins1606/axewallet-ios
ee8c91a8e984b4ceac73854cdfab31f7907991ac
[ "MIT" ]
1
2018-12-09T18:37:11.000Z
2018-12-09T18:37:11.000Z
scripts/fixedpeers-check.py
douglaslins1606/axewallet-ios
ee8c91a8e984b4ceac73854cdfab31f7907991ac
[ "MIT" ]
null
null
null
scripts/fixedpeers-check.py
douglaslins1606/axewallet-ios
ee8c91a8e984b4ceac73854cdfab31f7907991ac
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- ## ## Compatible with Python >= 2.6, < 3.* ## ## ## Created by Andrew Podkovyrin, 2018 ## Copyright 2018 Axe Foundation. All rights reserved. ## ## Permission is hereby granted, free of charge, to any person obtaining a copy ## of this software and associated documentati...
31.611336
117
0.635886
#!/usr/bin/python # -*- coding: UTF-8 -*- ## ## Compatible with Python >= 2.6, < 3.* ## ## ## Created by Andrew Podkovyrin, 2018 ## Copyright © 2018 Axe Foundation. All rights reserved. ## ## Permission is hereby granted, free of charge, to any person obtaining a copy ## of this software and associated documentat...
15
0
0
0
0
5,453
0
-51
271
4c384c0e524ba4cebcbaf0654fb126a4ea7e691b
2,456
py
Python
odoo-13.0/addons/l10n_de_skr03/__manifest__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_de_skr03/__manifest__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
odoo-13.0/addons/l10n_de_skr03/__manifest__.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # SKR03 # ===== # Dieses Modul bietet Ihnen einen deutschen Kontenplan basierend auf dem SKR03. # Gemss der aktuellen Einstellungen ist ein neues Unternehmen in Odoo # Umsatzsteuerpflichtig. Zahlreiche Erls- und Aufwand...
42.344828
79
0.728827
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. # SKR03 # ===== # Dieses Modul bietet Ihnen einen deutschen Kontenplan basierend auf dem SKR03. # Gemäss der aktuellen Einstellungen ist ein neues Unternehmen in Odoo # Umsatzsteuerpflichtig. Zahlreiche Erlös- und Aufwa...
36
0
0
0
0
0
0
0
0
40b6bda9b75117b8ec9657879e6d3735b2ad1d21
950
py
Python
jp.atcoder/abc057/abc057_d/8220196.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc057/abc057_d/8220196.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc057/abc057_d/8220196.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
from statistics import mean n, a, b = [int(_) for _ in input().split()] values = [int(v) for v in input().split()] values.sort(reverse=True) maximum_mean = mean(values[:a]) print(maximum_mean) min_value = values[:a][-1] accepted = values[:a].count(min_value) full = values.count(min_value) print(cmb(f...
22.619048
50
0.502105
from statistics import mean n, a, b = [int(_) for _ in input().split()] values = [int(v) for v in input().split()] values.sort(reverse=True) maximum_mean = mean(values[:a]) print(maximum_mean) min_value = values[:a][-1] accepted = values[:a].count(min_value) full = values.count(min_value) def cmb(n, r)...
0
0
0
0
0
588
0
0
25
e68ed84d5c4168fba87f5ab45d7c79625c4d8b61
241
py
Python
Custom Exceptions.py
NewLife1324/PyStorage
3ec9dcd92210baf3fda147f1c3f7266e905e041c
[ "MIT" ]
null
null
null
Custom Exceptions.py
NewLife1324/PyStorage
3ec9dcd92210baf3fda147f1c3f7266e905e041c
[ "MIT" ]
null
null
null
Custom Exceptions.py
NewLife1324/PyStorage
3ec9dcd92210baf3fda147f1c3f7266e905e041c
[ "MIT" ]
null
null
null
# My Exception print('hello') raise Other('a')
21.909091
39
0.655602
# My Exception print('hello') class NewLifeUtilsWorkError(Exception): def __init__(self, text): self.txt = text class Other(NewLifeUtilsWorkError): def __init__(self, text): self.txt = text raise Other('a')
0
0
0
141
0
0
0
0
45