hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
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
125
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
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
80bde51cbf5dacd747cbe696168d2b9360cef562
1,337
py
Python
Build Docker/code/main.py
AlexTheGeek/color-loop-hue
67266628c72cb48e6397596e1f98b46d8674f669
[ "MIT" ]
2
2021-01-01T10:40:26.000Z
2021-02-20T09:39:22.000Z
Build Docker/code/main.py
AlexTheGeek/color-loop-hue
67266628c72cb48e6397596e1f98b46d8674f669
[ "MIT" ]
null
null
null
Build Docker/code/main.py
AlexTheGeek/color-loop-hue
67266628c72cb48e6397596e1f98b46d8674f669
[ "MIT" ]
null
null
null
#!/bin/python3 #Alexis Brunet alias AlexTheGeek #################### ## HUE COLOR LOOP ## #################### import time import os import requests from os.path import join, dirname from dotenv import load_dotenv from flask import Flask, render_template, request app = Flask(__name__) STARTING = '{"on":true,"bri":254...
27.854167
87
0.598355
#!/bin/python3 #Alexis Brunet alias AlexTheGeek #################### ## HUE COLOR LOOP ## #################### import time import os import requests from os.path import join, dirname from dotenv import load_dotenv from flask import Flask, render_template, request app = Flask(__name__) STARTING = '{"on":true,"bri":254...
641
0
45
4e6123c1786b27aaf1d63c5382e320ef1dfeaffe
381
py
Python
django_extauth/admin.py
aiakos/aiakos
a591e7ef13ab9e8e14b4d3569d43fce694c4150a
[ "BSD-2-Clause", "MIT" ]
4
2017-04-28T19:09:17.000Z
2018-07-03T04:43:54.000Z
django_extauth/admin.py
aiakos/aiakos
a591e7ef13ab9e8e14b4d3569d43fce694c4150a
[ "BSD-2-Clause", "MIT" ]
2
2020-06-05T17:46:47.000Z
2021-06-10T17:22:58.000Z
django_extauth/admin.py
aiakos/aiakos
a591e7ef13ab9e8e14b4d3569d43fce694c4150a
[ "BSD-2-Clause", "MIT" ]
2
2017-08-14T07:15:14.000Z
2019-03-04T14:02:05.000Z
from django.contrib import admin from .models import * admin.site.register(IdentityProvider, IdentityProviderAdmin) admin.site.register(ExternalIdentity, ExternalIdentityAdmin)
25.4
60
0.787402
from django.contrib import admin from .models import * class IdentityProviderAdmin(admin.ModelAdmin): list_display = ('domain', 'name', 'client_id', 'protocol') admin.site.register(IdentityProvider, IdentityProviderAdmin) class ExternalIdentityAdmin(admin.ModelAdmin): list_display = ('user', 'provider', 'sub') ...
0
154
46
cc3464107c1563f46ae7232b9d85ad3af834a0f0
625
py
Python
webhooks/observium/setup.py
x3me/alerta-contrib
215bf1cffa6362a90edb6350a6dea37db6b18ab8
[ "MIT" ]
null
null
null
webhooks/observium/setup.py
x3me/alerta-contrib
215bf1cffa6362a90edb6350a6dea37db6b18ab8
[ "MIT" ]
null
null
null
webhooks/observium/setup.py
x3me/alerta-contrib
215bf1cffa6362a90edb6350a6dea37db6b18ab8
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages version = '0.0.5' setup( name="alerta-observium", version=version, description='Alerta webhook for Obseervium NMS', url='https://github.com/alerta/alerta-contrib', license='MIT', author='Iskren Hadzhinedev', author_email='iskren.hadzhinedev@x3me....
24.038462
59
0.6576
from setuptools import setup, find_packages version = '0.0.5' setup( name="alerta-observium", version=version, description='Alerta webhook for Obseervium NMS', url='https://github.com/alerta/alerta-contrib', license='MIT', author='Iskren Hadzhinedev', author_email='iskren.hadzhinedev@x3me....
0
0
0
db99afef5980354d5007694954a2c0c2e199a476
45,026
py
Python
src/vmware/azext_vmware/custom.py
Mossaka/azure-cli-extensions
f75f5d39d3b621fcbcdd50eddf378f3a49535ab0
[ "MIT" ]
null
null
null
src/vmware/azext_vmware/custom.py
Mossaka/azure-cli-extensions
f75f5d39d3b621fcbcdd50eddf378f3a49535ab0
[ "MIT" ]
null
null
null
src/vmware/azext_vmware/custom.py
Mossaka/azure-cli-extensions
f75f5d39d3b621fcbcdd50eddf378f3a49535ab0
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
71.469841
789
0.848043
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
39,345
0
2,691
e8543128623a87ce635f365d99f5095e9399562a
2,823
py
Python
tests/storage/repository/test_study.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
2
2021-11-15T09:26:33.000Z
2022-02-24T09:53:54.000Z
tests/storage/repository/test_study.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
542
2021-01-11T13:23:47.000Z
2022-03-31T15:38:10.000Z
tests/storage/repository/test_study.py
AntaresSimulatorTeam/antaREST
d686d2a86a52737c211ae67f3cee591f559909f2
[ "Apache-2.0" ]
1
2020-10-01T12:18:15.000Z
2020-10-01T12:18:15.000Z
from datetime import datetime from unittest.mock import Mock from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker # type: ignore from antarest.core.persistence import Base from antarest.core.utils.fastapi_sqlalchemy import DBSessionMiddleware, db from antarest.login.model impo...
27.144231
74
0.589444
from datetime import datetime from unittest.mock import Mock from sqlalchemy import create_engine from sqlalchemy.orm import scoped_session, sessionmaker # type: ignore from antarest.core.persistence import Base from antarest.core.utils.fastapi_sqlalchemy import DBSessionMiddleware, db from antarest.login.model impo...
2,248
0
46
6b40f9b7d58392a2be162f00d5852bd1e08b2a0e
3,784
py
Python
homeassistant/components/splunk/__init__.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
22,481
2020-03-02T13:09:59.000Z
2022-03-31T23:34:28.000Z
homeassistant/components/splunk/__init__.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
31,101
2020-03-02T13:00:16.000Z
2022-03-31T23:57:36.000Z
homeassistant/components/splunk/__init__.py
learn-home-automation/core
c5d8792c3487e9b418b1e7d623bf59e7dbddd6b7
[ "Apache-2.0" ]
11,411
2020-03-02T14:19:20.000Z
2022-03-31T22:46:07.000Z
"""Support to send data to a Splunk instance.""" import asyncio from http import HTTPStatus import json import logging import time from aiohttp import ClientConnectionError, ClientResponseError from hass_splunk import SplunkPayloadError, hass_splunk import voluptuous as vol from homeassistant.const import ( CONF_...
29.333333
88
0.636892
"""Support to send data to a Splunk instance.""" import asyncio from http import HTTPStatus import json import logging import time from aiohttp import ClientConnectionError, ClientResponseError from hass_splunk import SplunkPayloadError, hass_splunk import voluptuous as vol from homeassistant.const import ( CONF_...
0
0
0
a924a3b3fa825a585783593415bcffef891d3164
1,915
py
Python
2021_2022/Training_2/RSA_Dream/Cripto_9.py
0awawa0/DonNU_CTF
7ff693fdba4609298f5556ea583fe604980d76e3
[ "MIT" ]
null
null
null
2021_2022/Training_2/RSA_Dream/Cripto_9.py
0awawa0/DonNU_CTF
7ff693fdba4609298f5556ea583fe604980d76e3
[ "MIT" ]
null
null
null
2021_2022/Training_2/RSA_Dream/Cripto_9.py
0awawa0/DonNU_CTF
7ff693fdba4609298f5556ea583fe604980d76e3
[ "MIT" ]
null
null
null
import random alf=["а","б","в","г","д","е","ё","ж","з","и","й","к","л","м","н","о","п","р","с","т","у","ф","х","ц","ч","ш","щ","ъ","ы","ь","э","ю","я",".",",",":","?"] zam=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36] p=17 q=11 file=open('text.txt',encod...
19.947917
154
0.399478
import random def gcd(a,b): #расширенный x, lasty=0,0 y, lastx=1,1 n=a m=b while m!=0: q=n//m r=n%m n=m m=r x, lastx = lastx-q*x, x y, lasty = lasty-q*y, y return n def gcdost(a,b): #расширенный x, lasty=0,0 y, lastx=1,1 ...
1,377
0
123
771784edcc7f5296f6cfcf7f2749b285b3a3b2d4
2,522
py
Python
accounts/tests.py
Panda4817/MySousChef
64c3967566b3834d578406884ee6b4a3807b21f8
[ "MIT" ]
1
2021-02-25T17:54:28.000Z
2021-02-25T17:54:28.000Z
accounts/tests.py
Panda4817/MySousChef
64c3967566b3834d578406884ee6b4a3807b21f8
[ "MIT" ]
null
null
null
accounts/tests.py
Panda4817/MySousChef
64c3967566b3834d578406884ee6b4a3807b21f8
[ "MIT" ]
null
null
null
from django.test import TestCase, Client from .models import Profile from django.contrib.auth.models import User import unittest from .forms import SignUpForm from .signals import show_login_message, show_logout_message from django.contrib.auth.signals import user_logged_out, user_logged_in from django.contrib i...
37.641791
72
0.646709
from django.test import TestCase, Client from .models import Profile from django.contrib.auth.models import User import unittest from .forms import SignUpForm from .signals import show_login_message, show_logout_message from django.contrib.auth.signals import user_logged_out, user_logged_in from django.contrib i...
1,699
10
314
ad5dd51fc7ed9905b46da578dce076efe35092ef
5,679
py
Python
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
7
2022-01-24T16:27:06.000Z
2022-02-25T10:18:49.000Z
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
29
2022-01-20T15:45:38.000Z
2022-03-31T09:39:25.000Z
gooddata-sdk/gooddata_sdk/catalog/data_source/declarative_model/data_source.py
gooddata/gooddata-python-sdk
df4d4a4d730ab376960ae2ed01e7d86498e85c6a
[ "MIT" ]
7
2022-01-20T07:11:15.000Z
2022-03-09T14:50:17.000Z
# (C) 2022 GoodData Corporation from __future__ import annotations from pathlib import Path from typing import Any, List, Optional, Type import attr from gooddata_metadata_client.model.declarative_data_source import DeclarativeDataSource from gooddata_metadata_client.model.declarative_data_sources import Declarative...
42.699248
113
0.728649
# (C) 2022 GoodData Corporation from __future__ import annotations from pathlib import Path from typing import Any, List, Optional, Type import attr from gooddata_metadata_client.model.declarative_data_source import DeclarativeDataSource from gooddata_metadata_client.model.declarative_data_sources import Declarative...
3,856
804
44
ce36ea79006e4c6ff0cb9ffe5a3b3419b733b588
1,321
py
Python
src/aggregation_manager/norm_clipping.py
anishacharya/BGMD
03dee098217d2b9a209fea5759e2e0a2237390a5
[ "MIT" ]
5
2022-01-21T06:21:51.000Z
2022-02-11T23:00:57.000Z
src/aggregation_manager/norm_clipping.py
anishacharya/BGMD
03dee098217d2b9a209fea5759e2e0a2237390a5
[ "MIT" ]
null
null
null
src/aggregation_manager/norm_clipping.py
anishacharya/BGMD
03dee098217d2b9a209fea5759e2e0a2237390a5
[ "MIT" ]
null
null
null
# Copyright (c) Anish Acharya. # Licensed under the MIT License import numpy as np from .base_gar import GAR from typing import List """ Ghosh et.al. Communication-Efficient and Byzantine-Robust Distributed Learning with Error Feedback """
32.219512
98
0.632097
# Copyright (c) Anish Acharya. # Licensed under the MIT License import numpy as np from .base_gar import GAR from typing import List """ Ghosh et.al. Communication-Efficient and Byzantine-Robust Distributed Learning with Error Feedback """ class NormClipping(GAR): def __init__(self, aggregation_config): ...
998
3
77
fd042e0095f353ffb4caebc0a7ea0f6645226317
1,157
py
Python
src/saas/bkuser_shell/config_center/constants.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config_center/constants.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
null
null
null
src/saas/bkuser_shell/config_center/constants.py
Chace-wang/bk-user
057f270d66a1834312306c9fba1f4e95521f10b1
[ "MIT" ]
1
2021-12-31T06:48:41.000Z
2021-12-31T06:48:41.000Z
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
39.896552
115
0.71478
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
0
336
23
3345d41bb3626517b8edf0dd1361709a68331cf3
1,611
py
Python
src/subsystems/climbroller.py
creikey/DeepSpace2019
454453aec745df6b1d4e7cfa5222ac46af338a84
[ "MIT" ]
2
2021-12-08T05:02:28.000Z
2021-12-29T14:47:55.000Z
src/subsystems/climbroller.py
creikey/DeepSpace2019
454453aec745df6b1d4e7cfa5222ac46af338a84
[ "MIT" ]
19
2019-01-07T01:42:07.000Z
2019-03-08T05:38:52.000Z
src/subsystems/climbroller.py
creikey/DeepSpace2019
454453aec745df6b1d4e7cfa5222ac46af338a84
[ "MIT" ]
7
2018-10-29T05:09:50.000Z
2020-04-16T04:04:18.000Z
from wpilib.command import Subsystem from constants import Constants from utils import singleton, lazytalonsrx import logging from commands import rollclimbroller class ClimbRoller(Subsystem, metaclass=singleton.Singleton): """The climb roller subsystem controlls the rollers on the end of the front arm.""" d...
35.8
144
0.68653
from wpilib.command import Subsystem from constants import Constants from utils import singleton, lazytalonsrx import logging from commands import rollclimbroller class ClimbRoller(Subsystem, metaclass=singleton.Singleton): """The climb roller subsystem controlls the rollers on the end of the front arm.""" d...
145
0
81
688b529ea69dada848d8352c8c56bb04fd013fa4
3,164
py
Python
S4/S4 Library/simulation/objects/components/stereo_component.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/objects/components/stereo_component.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/objects/components/stereo_component.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from objects.components import Component, types, ComponentPriority from objects.components.state import TunableStateTypeReference, TunableStateValueReference from sims4.tuning.tunable import HasTunableFactory, AutoFactoryInit, TunableList, TunableReference, Tunable import services import sims4.resources from snippets i...
117.185185
1,759
0.708597
from objects.components import Component, types, ComponentPriority from objects.components.state import TunableStateTypeReference, TunableStateValueReference from sims4.tuning.tunable import HasTunableFactory, AutoFactoryInit, TunableList, TunableReference, Tunable import services import sims4.resources from snippets i...
766
1,928
23
603ff613688cffe6ba5669264455c110de9a9652
1,274
py
Python
programs/koinos-types/koinos_reflect/baseparser.py
joticajulian/koinos-types
7d01248437d063deb780af03057737e4937f82d1
[ "MIT" ]
10
2021-02-10T20:57:08.000Z
2021-03-17T00:09:15.000Z
programs/koinos-types/koinos_reflect/baseparser.py
joticajulian/koinos-types
7d01248437d063deb780af03057737e4937f82d1
[ "MIT" ]
82
2021-02-08T22:59:24.000Z
2021-10-01T17:40:07.000Z
programs/koinos-types/koinos_reflect/baseparser.py
joticajulian/koinos-types
7d01248437d063deb780af03057737e4937f82d1
[ "MIT" ]
3
2021-02-11T04:29:39.000Z
2021-04-17T22:56:34.000Z
from .lexer import Lexer from dataclasses_json import dataclass_json from dataclasses import dataclass, field from typing import List, Tuple, Union # Parser of .base files # Syntax is semicolon separated list of qualified types @dataclass_json @dataclass @dataclass_json @dataclass
23.163636
64
0.605965
from .lexer import Lexer from dataclasses_json import dataclass_json from dataclasses import dataclass, field from typing import List, Tuple, Union # Parser of .base files # Syntax is semicolon separated list of qualified types @dataclass_json @dataclass class BasefileType: name: List[str] doc: str @datac...
718
71
197
9ab9dde5ff068e3fbee8407c86a3718d396063cf
2,372
py
Python
tests/correctness/targets/CppCompilationWithTargetDeps/Input/root.xpybuild.py
xpybuild/xpybuild
c71a73e47414871c8192381d0356ab62f5a58127
[ "Apache-2.0" ]
9
2017-02-06T16:45:46.000Z
2021-12-05T09:42:58.000Z
tests/correctness/targets/CppCompilationWithTargetDeps/Input/root.xpybuild.py
xpybuild/xpybuild
c71a73e47414871c8192381d0356ab62f5a58127
[ "Apache-2.0" ]
15
2019-01-11T19:39:34.000Z
2022-01-08T11:11:35.000Z
tests/correctness/targets/CppCompilationWithTargetDeps/Input/root.xpybuild.py
xpybuild/xpybuild
c71a73e47414871c8192381d0356ab62f5a58127
[ "Apache-2.0" ]
5
2017-02-06T16:51:17.000Z
2020-12-02T17:36:30.000Z
# # Copyright (c) 2013 - 2017, 2019 Software AG, Darmstadt, Germany and/or its licensors # # 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...
33.885714
125
0.718381
# # Copyright (c) 2013 - 2017, 2019 Software AG, Darmstadt, Germany and/or its licensors # # 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...
0
0
0
a1a87cc46f9c970e2f28007cb3e1126704e78b89
3,842
py
Python
twirps/classes/tweet.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
3
2015-05-08T16:19:40.000Z
2016-05-03T07:54:04.000Z
twirps/classes/tweet.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
null
null
null
twirps/classes/tweet.py
condnsdmatters/twirps
e2a15ae21129fedb400415ad1b70f6a931b046c4
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import logging LOGGER = logging.getLogger(__name__)
35.247706
118
0.61114
from __future__ import unicode_literals import logging LOGGER = logging.getLogger(__name__) class Tweet(object): def __init__(self, tweet, source): self.tweet_id = 0 self.user_id = 0 self.handle = '' self.mentions = [] self.content = '' self.is_retweet = False ...
3,578
-1
157
e6443063857f8fb51ef5d2e6135b5f0c53f6f899
200
py
Python
code/tools/idl/header.py
antonand03/hello-my-friend
fb4e225a75aea3007a391ccc4dcda3eda65c2142
[ "MIT" ]
5,411
2017-04-14T08:57:56.000Z
2022-03-30T19:35:15.000Z
code/tools/idl/header.py
antonand03/hello-my-friend
fb4e225a75aea3007a391ccc4dcda3eda65c2142
[ "MIT" ]
802
2017-04-21T14:18:36.000Z
2022-03-31T21:20:48.000Z
code/tools/idl/header.py
antonand03/hello-my-friend
fb4e225a75aea3007a391ccc4dcda3eda65c2142
[ "MIT" ]
2,011
2017-04-14T09:44:15.000Z
2022-03-31T15:40:39.000Z
# add dependency directory to the Python path import site import os.path site.addsitedir(os.path.join(os.path.dirname(__file__), 'deps')) # call header.py from xpidl import header header.main()
20
64
0.755
# add dependency directory to the Python path import site import os.path site.addsitedir(os.path.join(os.path.dirname(__file__), 'deps')) # call header.py from xpidl import header header.main()
0
0
0
8954b1341863a803d5c1520e4ecd7f34aaffdd4d
1,476
py
Python
snim/cell.py
markormerod/simple-neural-ignition-model
70867d66fefd237cdc2cb9a6318c5a7782759d59
[ "MIT" ]
null
null
null
snim/cell.py
markormerod/simple-neural-ignition-model
70867d66fefd237cdc2cb9a6318c5a7782759d59
[ "MIT" ]
null
null
null
snim/cell.py
markormerod/simple-neural-ignition-model
70867d66fefd237cdc2cb9a6318c5a7782759d59
[ "MIT" ]
null
null
null
from snim.snim_state import SnimState
35.142857
94
0.590108
from snim.snim_state import SnimState class Cell: def __init__(self, x, y, state = SnimState.EMPTY): self.x = x self.y = y self.state = state def update(self, snim): neighbours = snim.get_diag_neighbours(self.x, self.y) neural_neighbours = sum(1 for n in neighbours if n...
1,373
-10
76
6a1501d572a47250fb79ebd30d23104a3301cddd
8,925
py
Python
not_mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
not_mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
not_mnist/src/setup.py
srungta/mnist-and-others
829993d85a9090c0036331bcf12195c815447946
[ "MIT" ]
null
null
null
# imports from __future__ import print_function from IPython.display import display, Image from six.moves import cPickle as pickle from six.moves.urllib.request import urlretrieve from sklearn.linear_model import LogisticRegression import imageio import matplotlib.pyplot as plt import numpy as np import os import sys i...
38.469828
99
0.662073
# imports from __future__ import print_function from IPython.display import display, Image from six.moves import cPickle as pickle from six.moves.urllib.request import urlretrieve from sklearn.linear_model import LogisticRegression import imageio import matplotlib.pyplot as plt import numpy as np import os import sys i...
6,077
0
184
b6e2e662897fd5cdcc07c0f014fc63ad8afe8445
69
py
Python
pyex_pkg/pyex_pkg/module2.py
uiuc-bioinf-club/cheetSheets
537f85debfb3d98cd718963721b87a255913161b
[ "MIT" ]
null
null
null
pyex_pkg/pyex_pkg/module2.py
uiuc-bioinf-club/cheetSheets
537f85debfb3d98cd718963721b87a255913161b
[ "MIT" ]
null
null
null
pyex_pkg/pyex_pkg/module2.py
uiuc-bioinf-club/cheetSheets
537f85debfb3d98cd718963721b87a255913161b
[ "MIT" ]
2
2019-02-18T23:18:31.000Z
2021-07-21T19:23:58.000Z
from module1 import func1 print("imported module2") print(func1(2))
13.8
25
0.768116
from module1 import func1 print("imported module2") print(func1(2))
0
0
0
249ce9f8a32de5d0f4e4b2826835c85645008e06
3,910
py
Python
predict.py
johirbuet/Image-Classifier
9cfd78696940ebc40725f15d18133d0db6102035
[ "MIT" ]
null
null
null
predict.py
johirbuet/Image-Classifier
9cfd78696940ebc40725f15d18133d0db6102035
[ "MIT" ]
null
null
null
predict.py
johirbuet/Image-Classifier
9cfd78696940ebc40725f15d18133d0db6102035
[ "MIT" ]
null
null
null
import argparse import json import torch from torch import nn from torch.autograd import Variable from torchvision import models from collections import OrderedDict from PIL import Image import numpy as np import numbers if __name__ == "__main__": main()
31.28
87
0.61509
import argparse import json import torch from torch import nn from torch.autograd import Variable from torchvision import models from collections import OrderedDict from PIL import Image import numpy as np import numbers def load_checkpoint(path): checkpoint = torch.load(path) arch = checkpoint['arch'] hi...
3,530
0
115
32ae876b42b6bb362bf46f31ffcb82c4faec760d
10,325
py
Python
devp2p/peer.py
vaporyproject/pydevp2p
084d58bd98e1573ccce82fbb766ff06fb6831fe4
[ "MIT" ]
null
null
null
devp2p/peer.py
vaporyproject/pydevp2p
084d58bd98e1573ccce82fbb766ff06fb6831fe4
[ "MIT" ]
null
null
null
devp2p/peer.py
vaporyproject/pydevp2p
084d58bd98e1573ccce82fbb766ff06fb6831fe4
[ "MIT" ]
null
null
null
import time import gevent import operator from collections import OrderedDict from protocol import BaseProtocol from p2p_protocol import P2PProtocol from service import WiredService import multiplexer from muxsession import MultiplexedSession from crypto import ECIESDecryptionError import slogging import gevent.socket ...
39.408397
99
0.613462
import time import gevent import operator from collections import OrderedDict from protocol import BaseProtocol from p2p_protocol import P2PProtocol from service import WiredService import multiplexer from muxsession import MultiplexedSession from crypto import ECIESDecryptionError import slogging import gevent.socket ...
8,985
825
23
6050b5f4ff89903ef691871454833dc5d07ce689
5,340
py
Python
opentelemetry-api/src/opentelemetry/propagate/__init__.py
toumorokoshi/opentelemetry-python
03c6b7391d16236ad5d4e48b0cb0bff786c2e583
[ "Apache-2.0" ]
1
2021-02-26T02:37:54.000Z
2021-02-26T02:37:54.000Z
opentelemetry-api/src/opentelemetry/propagate/__init__.py
jini-lee/opentelemetry-python
99128b35d1a9cf2ecb04097c6a87d320a552a3e4
[ "Apache-2.0" ]
1
2020-11-18T17:44:08.000Z
2020-11-18T17:46:17.000Z
opentelemetry-api/src/opentelemetry/propagate/__init__.py
jini-lee/opentelemetry-python
99128b35d1a9cf2ecb04097c6a87d320a552a3e4
[ "Apache-2.0" ]
null
null
null
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
34.451613
116
0.720412
# Copyright The OpenTelemetry Authors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
239
0
46
1043a523f50f48d4196a7df72c983eb7845b8ba5
4,272
py
Python
src/pyjen/plugins/buildblocker.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
5
2017-12-14T13:39:04.000Z
2020-07-06T09:46:02.000Z
src/pyjen/plugins/buildblocker.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
119
2016-09-13T01:39:31.000Z
2020-08-31T03:06:19.000Z
src/pyjen/plugins/buildblocker.py
TheFriendlyCoder/pyjen
a3d7e8f69cb53f80f627300f8d3aa0d4302a5ac1
[ "Apache-2.0" ]
3
2015-03-17T18:49:22.000Z
2019-07-03T14:10:27.000Z
"""Interfaces for interacting with Build Blockers job property plugin""" import xml.etree.ElementTree as ElementTree from pyjen.utils.xml_plugin import XMLPlugin class BuildBlockerProperty(XMLPlugin): """Wrapper for Build Blocker job properties https://wiki.jenkins-ci.org/display/JENKINS/Build+Blocker+Plugin...
33.904762
80
0.630852
"""Interfaces for interacting with Build Blockers job property plugin""" import xml.etree.ElementTree as ElementTree from pyjen.utils.xml_plugin import XMLPlugin class BuildBlockerProperty(XMLPlugin): """Wrapper for Build Blocker job properties https://wiki.jenkins-ci.org/display/JENKINS/Build+Blocker+Plugin...
848
0
78
57f9052e1cbafb791fa47203f832f9c3230b7a65
22,764
py
Python
mailchimp_marketing_asyncio/models/campaign.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/campaign.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
null
null
null
mailchimp_marketing_asyncio/models/campaign.py
john-parton/mailchimp-asyncio
3865ca0867bec8f537dc1e3256aa3a160c00f8a2
[ "Apache-2.0" ]
1
2022-03-09T14:52:22.000Z
2022-03-09T14:52:22.000Z
# coding: utf-8 """ Mailchimp Marketing API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3.0.74 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import...
31.013624
441
0.61158
# coding: utf-8 """ Mailchimp Marketing API No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 3.0.74 Contact: apihelp@mailchimp.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import...
0
0
0
ccc90d9c929391cae107a2a233df254df0e9c438
2,937
py
Python
tests/functional/collection/test_collection_list.py
globusonline/globus-cli
696857baafac198141edc3c1c29c72215f217df1
[ "Apache-2.0" ]
null
null
null
tests/functional/collection/test_collection_list.py
globusonline/globus-cli
696857baafac198141edc3c1c29c72215f217df1
[ "Apache-2.0" ]
1
2016-04-09T17:26:05.000Z
2016-04-11T16:13:50.000Z
tests/functional/collection/test_collection_list.py
globusonline/globus-cli
696857baafac198141edc3c1c29c72215f217df1
[ "Apache-2.0" ]
null
null
null
import pytest import responses from globus_sdk._testing import load_response_set @pytest.mark.parametrize( "filter_val", [ "mapped_collections", "mapped-collections", "MaPpeD-cOLlectiOns", "guest-collections", "guest_Collections", ["Mapped-Collections", "Man...
39.16
88
0.709227
import pytest import responses from globus_sdk._testing import load_response_set def test_collection_list(run_line, add_gcs_login): meta = load_response_set("cli.collection_operations").metadata epid = meta["endpoint_id"] add_gcs_login(epid) result = run_line(f"globus collection list {epid}") coll...
2,414
0
114
93b134cbc992e9743aaef355e11e242ce5dafd4f
4,389
py
Python
bicks/mathtool.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
null
null
null
bicks/mathtool.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
null
null
null
bicks/mathtool.py
balabalabalalaba/testb
fd2a8262bba94c561be49d69120401f0d7259fdf
[ "MIT" ]
3
2021-07-28T09:51:58.000Z
2021-07-30T16:37:26.000Z
import numpy as np def dichotomy(f, a, b, epsilon=1.0e-5): """Tradional dichotomy to find a root of a function """ fa = f(a) while True: c = (a + b) / 2.0 if (b - a) <= epsilon: return c fc = f(c) if fc * fa < 0: b = c else: fa...
25.369942
92
0.437229
import numpy as np def dichotomy(f, a, b, epsilon=1.0e-5): """Tradional dichotomy to find a root of a function """ fa = f(a) while True: c = (a + b) / 2.0 if (b - a) <= epsilon: return c fc = f(c) if fc * fa < 0: b = c else: fa...
3,446
0
184
48736beda7d4c0758982c5077f882eea08929d77
5,342
py
Python
datasets/Dataset.py
UCLM-SIMD/MONRP
16b19ace0746365300b5d3d16f5dda8c3a196cf7
[ "MIT" ]
null
null
null
datasets/Dataset.py
UCLM-SIMD/MONRP
16b19ace0746365300b5d3d16f5dda8c3a196cf7
[ "MIT" ]
null
null
null
datasets/Dataset.py
UCLM-SIMD/MONRP
16b19ace0746365300b5d3d16f5dda8c3a196cf7
[ "MIT" ]
null
null
null
from pathlib import Path from typing import Dict import numpy as np import json import uuid class Dataset: """ Class used to load datasets as published in del Sagrado, José del Águila, Isabel M. Orellana, Francisco J. Multi-objective ant colony optimization for requirements selection. Empirical So...
44.890756
132
0.629539
from pathlib import Path from typing import Dict import numpy as np import json import uuid class Dataset: """ Class used to load datasets as published in del Sagrado, José del Águila, Isabel M. Orellana, Francisco J. Multi-objective ant colony optimization for requirements selection. Empirical So...
1,433
0
54
3792bb295ce140fd83de2476bc2ef2dd61c51b3c
798
py
Python
04_Selenium/exercices/framework/pages/homePage.py
twiindan/selenium_lessons
798557e8f584f9e6655414c13f232017483f0439
[ "Apache-2.0" ]
null
null
null
04_Selenium/exercices/framework/pages/homePage.py
twiindan/selenium_lessons
798557e8f584f9e6655414c13f232017483f0439
[ "Apache-2.0" ]
null
null
null
04_Selenium/exercices/framework/pages/homePage.py
twiindan/selenium_lessons
798557e8f584f9e6655414c13f232017483f0439
[ "Apache-2.0" ]
1
2020-07-16T09:49:47.000Z
2020-07-16T09:49:47.000Z
from exercices.solutions.framework.core.base import BasePage from exercices.solutions.framework.pages.newUserPage import newUserPage
24.9375
71
0.709273
from exercices.solutions.framework.core.base import BasePage from exercices.solutions.framework.pages.newUserPage import newUserPage class homePage(BasePage): url = 'https://forum-testing.herokuapp.com/v1.0/' _newUserLink = None _listUserLink = None _newForumMessageLink = None _listForumLink = Non...
139
501
23
6bfaf0bbaf4dbb45c5506ffcaa6481da16b4e9c0
48
py
Python
adet/utils/__init__.py
gist-ailab/uoais
fb42d9a96cd54daad61c956d8d9d65dd0ebef4c7
[ "BSD-2-Clause" ]
52
2021-09-26T05:06:01.000Z
2022-03-27T07:48:19.000Z
adet/utils/__init__.py
gist-ailab/uoais
fb42d9a96cd54daad61c956d8d9d65dd0ebef4c7
[ "BSD-2-Clause" ]
5
2021-10-12T00:39:45.000Z
2022-03-24T08:59:57.000Z
adet/utils/__init__.py
gist-ailab/uoais
fb42d9a96cd54daad61c956d8d9d65dd0ebef4c7
[ "BSD-2-Clause" ]
9
2021-09-27T11:59:31.000Z
2022-03-23T07:49:15.000Z
# from .post_process import detector_postprocess
48
48
0.875
# from .post_process import detector_postprocess
0
0
0
3e641f99e90f1c6c1550d7bfd5ada58210b9afba
586
py
Python
src/directory.py
emptyfolderfinder/emptyfolderfinder-py
6c6dbbb204fa9c0b8db318f5b7d001d0b5d791e3
[ "MIT" ]
null
null
null
src/directory.py
emptyfolderfinder/emptyfolderfinder-py
6c6dbbb204fa9c0b8db318f5b7d001d0b5d791e3
[ "MIT" ]
null
null
null
src/directory.py
emptyfolderfinder/emptyfolderfinder-py
6c6dbbb204fa9c0b8db318f5b7d001d0b5d791e3
[ "MIT" ]
null
null
null
import os from pathlib import Path
20.206897
54
0.622867
import os from pathlib import Path def check_directory(path): result = [] empty_dirs = [] p = Path(path) dirs = [x for x in p.iterdir() if x.is_dir()] files = [x for x in p.iterdir() if not x.is_dir()] if len(files) == 0 and len(dirs) == 0: result.append(path) return result for dir in...
505
0
46
c9865590a677790e0075a322e7d3bd02271fcc17
3,828
py
Python
utils_class.py
nanocad-lab/geo
2eb324b07c7c92b84a123f3a158723a2e3a77730
[ "MIT" ]
1
2021-09-19T14:32:21.000Z
2021-09-19T14:32:21.000Z
utils_class.py
nanocad-lab/geo
2eb324b07c7c92b84a123f3a158723a2e3a77730
[ "MIT" ]
null
null
null
utils_class.py
nanocad-lab/geo
2eb324b07c7c92b84a123f3a158723a2e3a77730
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.nn.functional as F import utils_functional ''' Custom layers for SC ''' class Conv2d_Add_Partial(nn.Conv2d): ''' SC Conv2d using partial binary add ''' def forward(self, input, prec=7, err=7, forward='1d_bin', generator='lfsr', z_unit=8, legacy=Fal...
41.16129
265
0.637147
import torch import torch.nn as nn import torch.nn.functional as F import utils_functional ''' Custom layers for SC ''' class Conv2d_Add_Partial(nn.Conv2d): ''' SC Conv2d using partial binary add ''' def __init__(self, *kargs, **kwargs): super(Conv2d_Add_Partial, self).__init__(*kargs, **kwar...
2,062
0
130
d62a105eab4d7fcf7ae14ec1fe61bbdad0b4e98e
3,305
py
Python
corals-api.py
DevEliran/deep-sea-api
3562840f9d0fd0f4bb2edc89804f8709bb37d92d
[ "MIT" ]
null
null
null
corals-api.py
DevEliran/deep-sea-api
3562840f9d0fd0f4bb2edc89804f8709bb37d92d
[ "MIT" ]
null
null
null
corals-api.py
DevEliran/deep-sea-api
3562840f9d0fd0f4bb2edc89804f8709bb37d92d
[ "MIT" ]
null
null
null
from fastapi import FastAPI, Path, status from pydantic import BaseModel from fastapi.responses import JSONResponse from starlette.status import ( HTTP_200_OK, HTTP_404_NOT_FOUND, HTTP_409_CONFLICT ) from database import CoralDatabase, get_coral_by_catalog_number_db, \ get_coral_by_category_db, add_coral_t...
32.722772
121
0.659002
from fastapi import FastAPI, Path, status from pydantic import BaseModel from fastapi.responses import JSONResponse from starlette.status import ( HTTP_200_OK, HTTP_404_NOT_FOUND, HTTP_409_CONFLICT ) from database import CoralDatabase, get_coral_by_catalog_number_db, \ get_coral_by_category_db, add_coral_t...
2,259
223
155
35544107af096841bd233ad45b9e4391ff8f3e32
178
py
Python
{{ cookiecutter.repo_name }}/{{cookiecutter.project_slug}}/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/{{cookiecutter.project_slug}}/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
{{ cookiecutter.repo_name }}/{{cookiecutter.project_slug}}/__init__.py
jakebrinkmann/waldo-jakebrinkmann
a625bff7ba9a3319968f7512d8bfa05408737dcf
[ "MIT" ]
null
null
null
"""Global configuration used across all subsystems.""" import os __version__ = os.getenv("PKG_VERSION", "0.0.0") epilog = "‹/› with ♥ from South Dakota © 2018 Jake Brinkmann"
22.25
61
0.702247
"""Global configuration used across all subsystems.""" import os __version__ = os.getenv("PKG_VERSION", "0.0.0") epilog = "‹/› with ♥ from South Dakota © 2018 Jake Brinkmann"
0
0
0
7fc20f8bcaf00f7d5d6c15cebba383ee4e7d8652
3,583
py
Python
influxalchemy/query.py
GerasimovRM/influxalchemy
c6527dc99f18f58da0d2f6602759be40f24d4b44
[ "MIT" ]
42
2016-08-16T11:36:10.000Z
2022-02-14T15:50:53.000Z
influxalchemy/query.py
GerasimovRM/influxalchemy
c6527dc99f18f58da0d2f6602759be40f24d4b44
[ "MIT" ]
10
2017-02-01T16:16:06.000Z
2022-01-21T23:25:22.000Z
influxalchemy/query.py
GerasimovRM/influxalchemy
c6527dc99f18f58da0d2f6602759be40f24d4b44
[ "MIT" ]
6
2016-10-26T13:10:21.000Z
2021-02-19T10:27:07.000Z
""" InfluxDB Query Object. """ import functools from influxalchemy import meta class InfluxDBQuery: """ InfluxDB Query object. entities (tuple): Query entities client (InfluxAlchemy): InfluxAlchemy instance expressions (tuple): Query filters groupby (str): ...
27.775194
75
0.521909
""" InfluxDB Query Object. """ import functools from influxalchemy import meta class InfluxDBQuery: """ InfluxDB Query object. entities (tuple): Query entities client (InfluxAlchemy): InfluxAlchemy instance expressions (tuple): Query filters groupby (str): ...
790
0
80
e08eefad4432b67364fe41a8cc2b8d494cbdbd9c
17,559
py
Python
src/utils.py
kylejbrown17/PythonRoadways
438400c046db7ee52182de2fbea77f1b1b57de61
[ "MIT" ]
null
null
null
src/utils.py
kylejbrown17/PythonRoadways
438400c046db7ee52182de2fbea77f1b1b57de61
[ "MIT" ]
null
null
null
src/utils.py
kylejbrown17/PythonRoadways
438400c046db7ee52182de2fbea77f1b1b57de61
[ "MIT" ]
null
null
null
import numpy as np from scipy import interpolate import ezdxf import h5py from copy import copy from Roadways import * def NormalVectorToLineSegment(linepts, pt): """ linepts = np.array([[x1,x2],[y1,y2]]) pt.shape = (2,N) # can be single pt or multiple pts """ if pt.ndim == 1: pt = np.expan...
36.12963
122
0.605957
import numpy as np from scipy import interpolate import ezdxf import h5py from copy import copy from Roadways import * class SplineCurve: def __init__(self,id=None,pts=None,keys=None,tck=None,u=None): self.id = id self.pts = pts self.keys = keys self.tck = tck # spline coefficients ...
7,783
-5
424
eace333492baab89237ac78a14843235cda31067
316
py
Python
lab_session/selection_sort.py
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
09c17e42c2e173a6ab10339f08fbc1505db8ea56
[ "MIT" ]
1
2021-05-13T13:10:42.000Z
2021-05-13T13:10:42.000Z
lab_session/selection_sort.py
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
09c17e42c2e173a6ab10339f08fbc1505db8ea56
[ "MIT" ]
null
null
null
lab_session/selection_sort.py
sowmyamanojna/BT3051-Data-Structures-and-Algorithms
09c17e42c2e173a6ab10339f08fbc1505db8ea56
[ "MIT" ]
null
null
null
values = [6, 5, 3, 1, 8, 7, 2, 4] print (values) values = selection_sort(values)
18.588235
46
0.594937
def selection_sort(value): n = len(value) for i in range(n-1): loc = i for j in range(i+1, n): if value[j] < value[loc]: loc = j if loc != i: value[i], value[loc] = value[loc], value[i] print(value) return value values = [6, 5, 3, 1, 8, 7, 2, 4] print (values) values = selection_sort(values)
212
0
22
46b5d19814074de733b953d95c57c5868b1bb95b
7,026
py
Python
cve-2020-8597-pptpd/pptp_poc.py
reidmefirst/PoC-Exploits
3b8f845774a9a6474fed86264443779a8f85e71a
[ "BSD-3-Clause" ]
3
2020-06-02T14:39:17.000Z
2021-04-23T16:34:08.000Z
cve-2020-8597-pptpd/pptp_poc.py
reidmefirst/PoC-Exploits
3b8f845774a9a6474fed86264443779a8f85e71a
[ "BSD-3-Clause" ]
null
null
null
cve-2020-8597-pptpd/pptp_poc.py
reidmefirst/PoC-Exploits
3b8f845774a9a6474fed86264443779a8f85e71a
[ "BSD-3-Clause" ]
1
2020-06-12T17:39:21.000Z
2020-06-12T17:39:21.000Z
#!/usr/bin/python3 from scapy.all import * import socket import sys import signal import os conf_ack_received = False conf_ack_sent = False debug = False if os.environ.get("DEBUG"): debug = True if len(sys.argv) < 2: print("Usage %s PPTP_Server to test for CVE-2020-8597" %(sys.argv[0])); ...
42.325301
212
0.609735
#!/usr/bin/python3 from scapy.all import * import socket import sys import signal import os conf_ack_received = False conf_ack_sent = False debug = False if os.environ.get("DEBUG"): debug = True def pkt_callback(pkt): global gre_stream, server_conf_request, call_reply, conf_ack_received, conf_ack_sen...
3,009
0
70
b7423732828a1ec172d11cc4ed16d8387b7ac8e6
676
py
Python
speech_to_text.py
TheMatildaProject/auditory-cortex
72edf7e90fad238ce3705f0ce8307ce946fc50c1
[ "MIT" ]
null
null
null
speech_to_text.py
TheMatildaProject/auditory-cortex
72edf7e90fad238ce3705f0ce8307ce946fc50c1
[ "MIT" ]
null
null
null
speech_to_text.py
TheMatildaProject/auditory-cortex
72edf7e90fad238ce3705f0ce8307ce946fc50c1
[ "MIT" ]
null
null
null
#import speech_recognition as sr import wave import io import io, os from google.auth import environment_vars from google.cloud import speech
28.166667
51
0.64497
#import speech_recognition as sr import wave import io import io, os from google.auth import environment_vars from google.cloud import speech class SpeechToText(object): def __init__(self, audio): self._audio = audio self._speech_client = speech.Client() def getFromGoogle(self): with ...
452
6
77
a851d9c85ce569c52aa4249c5fc22470cd0186ca
559
py
Python
cafeapp/migrations/0019_auto_20211208_1241.py
giranezafiacre/fabcafe-api
d4cd3e6b291c5b071c8c70c5deaac06f0182a664
[ "MIT" ]
null
null
null
cafeapp/migrations/0019_auto_20211208_1241.py
giranezafiacre/fabcafe-api
d4cd3e6b291c5b071c8c70c5deaac06f0182a664
[ "MIT" ]
null
null
null
cafeapp/migrations/0019_auto_20211208_1241.py
giranezafiacre/fabcafe-api
d4cd3e6b291c5b071c8c70c5deaac06f0182a664
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-08 10:41 import datetime from django.db import migrations, models
23.291667
99
0.592129
# Generated by Django 3.2.9 on 2021-12-08 10:41 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('cafeapp', '0018_auto_20211208_1228'), ] operations = [ migrations.RemoveField( model_name='user', na...
0
429
23
b95fa9041a7cb8d7c72117a7a576a5a8c358e96d
4,006
py
Python
src/python/interpret/glassbox/ebm/utils.py
benediktwagner/interpret
a80e42fbaad7c25f4447b6f81137c53714eed710
[ "MIT" ]
2
2019-05-19T04:48:52.000Z
2019-05-25T14:50:48.000Z
src/python/interpret/glassbox/ebm/utils.py
benediktwagner/interpret
a80e42fbaad7c25f4447b6f81137c53714eed710
[ "MIT" ]
null
null
null
src/python/interpret/glassbox/ebm/utils.py
benediktwagner/interpret
a80e42fbaad7c25f4447b6f81137c53714eed710
[ "MIT" ]
null
null
null
# Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license # TODO: Test EBMUtils from sklearn.utils.extmath import softmax import numpy as np import logging log = logging.getLogger(__name__) # TODO: Clean up
32.306452
84
0.628308
# Copyright (c) 2019 Microsoft Corporation # Distributed under the MIT software license # TODO: Test EBMUtils from sklearn.utils.extmath import softmax import numpy as np import logging log = logging.getLogger(__name__) # TODO: Clean up class EBMUtils: @staticmethod def gen_attributes(col_types, col_n_bins...
3,344
398
22
c980129dfcca46c379ea366aa1fa15eee1b01ac4
187
py
Python
rdm/project_management/__init__.py
dheater/rdm
3e16b808cdcaa7860767fe99cd66997adc803c35
[ "MIT" ]
76
2018-05-09T09:53:18.000Z
2022-03-21T11:55:18.000Z
rdm/project_management/__init__.py
dheater/rdm
3e16b808cdcaa7860767fe99cd66997adc803c35
[ "MIT" ]
68
2018-03-24T10:03:09.000Z
2022-01-19T20:52:36.000Z
rdm/project_management/__init__.py
dheater/rdm
3e16b808cdcaa7860767fe99cd66997adc803c35
[ "MIT" ]
24
2018-06-21T19:52:58.000Z
2022-03-29T13:15:15.000Z
from .base import BaseBackend from .github import GitHubIssueBackend, GitHubPullRequestBackend __all__ = [ 'BaseBackend', 'GitHubIssueBackend', 'GitHubPullRequestBackend', ]
20.777778
64
0.764706
from .base import BaseBackend from .github import GitHubIssueBackend, GitHubPullRequestBackend __all__ = [ 'BaseBackend', 'GitHubIssueBackend', 'GitHubPullRequestBackend', ]
0
0
0
311d97d31b1653b39c0e6b386a057ec53766cdaa
6,030
py
Python
tests/executor/test_mysos_task_runner.py
programwithebay/ApacheMysos
f4f7e459a51e957eeeef989b3ecdaac29393fa45
[ "Apache-2.0" ]
1
2017-02-15T05:37:59.000Z
2017-02-15T05:37:59.000Z
tests/executor/test_mysos_task_runner.py
benley/mysos
9c19f28eb7926002005e276ef8cabf24c7fe2edd
[ "Apache-2.0" ]
null
null
null
tests/executor/test_mysos_task_runner.py
benley/mysos
9c19f28eb7926002005e276ef8cabf24c7fe2edd
[ "Apache-2.0" ]
null
null
null
import os import signal import unittest from mysos.common.cluster import ClusterManager from mysos.common.testing import Fake from mysos.executor.noop_installer import NoopPackageInstaller from mysos.executor.mysos_task_runner import MysosTaskRunner from mysos.executor.task_runner import TaskError from mysos.executor....
28.990385
89
0.702819
import os import signal import unittest from mysos.common.cluster import ClusterManager from mysos.common.testing import Fake from mysos.executor.noop_installer import NoopPackageInstaller from mysos.executor.mysos_task_runner import MysosTaskRunner from mysos.executor.task_runner import TaskError from mysos.executor....
4,756
32
320
a19e61972ecebe175f1b7437fdeac191ee97b06e
8,437
py
Python
scripts/object_recognition.py
SerenaXue/3D-Perception-Target-Identification
df1dfa8a2132c6fa90a9e8def636b65d9344ba9d
[ "MIT" ]
null
null
null
scripts/object_recognition.py
SerenaXue/3D-Perception-Target-Identification
df1dfa8a2132c6fa90a9e8def636b65d9344ba9d
[ "MIT" ]
null
null
null
scripts/object_recognition.py
SerenaXue/3D-Perception-Target-Identification
df1dfa8a2132c6fa90a9e8def636b65d9344ba9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python import numpy as np import sklearn from sklearn.preprocessing import LabelEncoder import pickle from sensor_stick.srv import GetNormals from sensor_stick.features import compute_color_histograms from sensor_stick.features import compute_normal_histograms from visualization_msgs.msg import Marker...
37.834081
106
0.733555
#!/usr/bin/env python import numpy as np import sklearn from sklearn.preprocessing import LabelEncoder import pickle from sensor_stick.srv import GetNormals from sensor_stick.features import compute_color_histograms from sensor_stick.features import compute_normal_histograms from visualization_msgs.msg import Marker...
6,167
0
177
131e860e18ee61e01c595fad8941bfb4fb5deb07
546
py
Python
examples/joinable_queue.py
cloudbutton/cloudbutton
1062693a6767badc6369a026e2b8ad011f27efbb
[ "Apache-2.0" ]
7
2020-05-28T11:54:12.000Z
2020-09-26T13:16:45.000Z
examples/joinable_queue.py
cloudbutton/cloudbutton
1062693a6767badc6369a026e2b8ad011f27efbb
[ "Apache-2.0" ]
3
2020-06-18T14:07:27.000Z
2020-06-18T14:07:28.000Z
examples/joinable_queue.py
cloudbutton/cloudbutton
1062693a6767badc6369a026e2b8ad011f27efbb
[ "Apache-2.0" ]
5
2020-04-29T09:29:52.000Z
2020-09-22T13:42:55.000Z
from cloudbutton.multiprocessing import Process, JoinableQueue if __name__ == '__main__': q = JoinableQueue() p = Process(target=worker, args=(q,)) p.start() for x in range(10): q.put(x) # uncomment to hang on the q.join #q.put(11) q.join() q.put(-1) # end loop p.join(...
16.545455
62
0.532967
from cloudbutton.multiprocessing import Process, JoinableQueue def worker(q): working = True while working: x = q.get() # Do work that may fail assert x < 10 # Confirm task q.task_done() if x == -1: working = False if __name__ == '__main__': ...
201
0
23
04c390e7857fb3752b53b9c2903420309b83a2b5
12,045
py
Python
src/pyoram/storage/block_storage_file.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
24
2016-04-14T14:27:37.000Z
2022-03-13T13:53:18.000Z
src/pyoram/storage/block_storage_file.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
4
2016-03-14T04:40:23.000Z
2016-06-01T04:37:18.000Z
src/pyoram/storage/block_storage_file.py
ghackebeil/PyORAM
53e109dfb1ecec52348a70ddc64fae65eea7490a
[ "MIT" ]
4
2016-03-16T23:53:24.000Z
2020-05-27T19:27:37.000Z
__all__ = ('BlockStorageFile',) import os import struct import logging import errno from multiprocessing.pool import ThreadPool import pyoram from pyoram.storage.block_storage import \ (BlockStorageInterface, BlockStorageTypeFactory) import tqdm import six from six.moves import xrange log = logging.getLogg...
35.955224
92
0.532337
__all__ = ('BlockStorageFile',) import os import struct import logging import errno from multiprocessing.pool import ThreadPool import pyoram from pyoram.storage.block_storage import \ (BlockStorageInterface, BlockStorageTypeFactory) import tqdm import six from six.moves import xrange log = logging.getLogg...
10,442
70
581
81fad6a313131369b06b9a12a0f5f95247a51169
951
py
Python
goutham_assignment/Company/views.py
xWaterBottlex/kutumb-assignment
c5deb51342394dc7e2c996a24cdf5e2662ded796
[ "MIT" ]
null
null
null
goutham_assignment/Company/views.py
xWaterBottlex/kutumb-assignment
c5deb51342394dc7e2c996a24cdf5e2662ded796
[ "MIT" ]
3
2021-06-08T21:41:51.000Z
2022-01-13T02:49:13.000Z
goutham_assignment/Company/views.py
GouthamDoddi/kutumb-assignment
c5deb51342394dc7e2c996a24cdf5e2662ded796
[ "MIT" ]
null
null
null
from django.contrib.auth.mixins import LoginRequiredMixin from django.apps import apps from django.views.generic import DetailView, CreateView from django.http import HttpResponse, HttpRequest, request from django.core.signals import request_finished from django.dispatch import receiver Company = apps.get_model('Compa...
28.818182
58
0.660358
from django.contrib.auth.mixins import LoginRequiredMixin from django.apps import apps from django.views.generic import DetailView, CreateView from django.http import HttpResponse, HttpRequest, request from django.core.signals import request_finished from django.dispatch import receiver Company = apps.get_model('Compa...
415
152
46
c54051df8e2aea44fdfe329ae2ee54ce18aa91a8
2,223
py
Python
generate_payout_data_script.py
dwhalen/holophrasm
0d971428f9879ad3d6c0a781f1a021cff73fb1ce
[ "MIT" ]
33
2016-09-23T15:05:24.000Z
2021-08-30T11:13:35.000Z
generate_payout_data_script.py
dwhalen/holophrasm
0d971428f9879ad3d6c0a781f1a021cff73fb1ce
[ "MIT" ]
4
2016-12-14T03:41:55.000Z
2020-05-27T20:27:55.000Z
generate_payout_data_script.py
dwhalen/holophrasm
0d971428f9879ad3d6c0a781f1a021cff73fb1ce
[ "MIT" ]
12
2016-08-20T10:40:21.000Z
2022-01-03T09:47:01.000Z
import time from tree_parser import * from data_utils5 import * import os import withpool text = file_contents() database = meta_math_database(text,n=None, remember_proof_steps=True) print() lm = LanguageModel(database) saved_interface = None # import import build_payout_data_set as pd pd.initialize_interface(lm, ...
24.977528
89
0.689159
import time from tree_parser import * from data_utils5 import * import os import withpool text = file_contents() database = meta_math_database(text,n=None, remember_proof_steps=True) print() lm = LanguageModel(database) saved_interface = None # import import build_payout_data_set as pd pd.initialize_interface(lm, ...
114
0
23
8a1bf4a8337112febfa3b668351586f40df2a744
6,427
py
Python
tests/test_sync_tx_legacy.py
fantix/edgedb-python
2d8deaec503a206555f97f3f71952462e3483629
[ "Apache-2.0" ]
null
null
null
tests/test_sync_tx_legacy.py
fantix/edgedb-python
2d8deaec503a206555f97f3f71952462e3483629
[ "Apache-2.0" ]
null
null
null
tests/test_sync_tx_legacy.py
fantix/edgedb-python
2d8deaec503a206555f97f3f71952462e3483629
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
32.135
77
0.525751
# # This source file is part of the EdgeDB open source project. # # Copyright 2016-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
5,293
379
23
a76c710880e5cbafaca952cb802c9f15bd1e9aa8
4,297
py
Python
condense/torch/agent.py
SirBubbls/condense
e28f008477fe75c24b43cc853b2dc6d923f01813
[ "MIT" ]
null
null
null
condense/torch/agent.py
SirBubbls/condense
e28f008477fe75c24b43cc853b2dc6d923f01813
[ "MIT" ]
null
null
null
condense/torch/agent.py
SirBubbls/condense
e28f008477fe75c24b43cc853b2dc6d923f01813
[ "MIT" ]
null
null
null
"""This file contains the implementation for basic pruning operations on arbitrary torch modules.""" import torch import torch.nn as nn import copy from condense.optimizer.sparsity_functions import Constant def calc_parameter_sparsity(p): """Calculates the sparsity percentage of a torch parameter. Args: ...
37.692982
110
0.643938
"""This file contains the implementation for basic pruning operations on arbitrary torch modules.""" import torch import torch.nn as nn import copy from condense.optimizer.sparsity_functions import Constant def calc_parameter_sparsity(p): """Calculates the sparsity percentage of a torch parameter. Args: ...
610
0
54
15236d3fea42976c8c2bc779f41faee3462af1ff
2,715
py
Python
magenta/models/polyphonic_rnn/polyphonic_rnn_train.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
magenta/models/polyphonic_rnn/polyphonic_rnn_train.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
magenta/models/polyphonic_rnn/polyphonic_rnn_train.py
jellysquider/magenta
0fc8188870f5d1c988b76dae434b21e58362516c
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 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 ag...
31.206897
79
0.73186
# Copyright 2016 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 ag...
1,287
0
69
78621a8e86299831efb7f131bdc74604edf548df
1,297
py
Python
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_gui.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-11-20T22:46:39.000Z
2021-11-20T22:46:39.000Z
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_gui.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
source/pkgsrc/graphics/py-pycha/patches/patch-chavier_gui.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
null
null
null
$NetBSD: patch-chavier_gui.py,v 1.1 2020/03/11 20:17:12 wiz Exp $ Convert to python3 syntax. --- chavier/gui.py.orig 2011-08-08 19:23:18.000000000 +0000 +++ chavier/gui.py - print 'CHART STATE' - print '-' * 70 - print 'surface: %d x %d' % (alloc.width, alloc.height) - print 'area :', ...
34.131579
65
0.573631
$NetBSD: patch-chavier_gui.py,v 1.1 2020/03/11 20:17:12 wiz Exp $ Convert to python3 syntax. --- chavier/gui.py.orig 2011-08-08 19:23:18.000000000 +0000 +++ chavier/gui.py @@ -523,18 +523,18 @@ class GUI(object): alloc = self.drawing_area.get_allocation() - print 'CHART STATE' - print '-' *...
56
51
73
36433b1ccbd9a80c18f87b1265e45bc0ae087c57
722
py
Python
longclaw/longclaworders/serializers.py
Kuntal-KK/longclaw
a3493a62937689a15236b2943d19bcf4ec058cd9
[ "MIT" ]
1
2021-08-14T13:46:32.000Z
2021-08-14T13:46:32.000Z
longclaw/longclaworders/serializers.py
Kuntal-KK/longclaw
a3493a62937689a15236b2943d19bcf4ec058cd9
[ "MIT" ]
null
null
null
longclaw/longclaworders/serializers.py
Kuntal-KK/longclaw
a3493a62937689a15236b2943d19bcf4ec058cd9
[ "MIT" ]
null
null
null
from rest_framework import serializers from longclaw.longclaworders.models import Order, OrderItem from longclaw.longclawproducts.serializers import ProductVariantSerializer from longclaw.longclawshipping.serializers import AddressSerializer
26.740741
74
0.759003
from rest_framework import serializers from longclaw.longclaworders.models import Order, OrderItem from longclaw.longclawproducts.serializers import ProductVariantSerializer from longclaw.longclawshipping.serializers import AddressSerializer class OrderItemSerializer(serializers.ModelSerializer): product = Produc...
29
404
46
36ee0bbc01ea7f98c4fe146f9be1433586cda037
1,884
py
Python
ci/push/schedule_push.py
marcalbaladejo/CumulusCI
f619d0d984f7bbfa3c6fcd6e33e41e64105cb4f5
[ "BSD-3-Clause" ]
1
2018-01-31T11:56:03.000Z
2018-01-31T11:56:03.000Z
ci/push/schedule_push.py
marcalbaladejo/CumulusCI
f619d0d984f7bbfa3c6fcd6e33e41e64105cb4f5
[ "BSD-3-Clause" ]
null
null
null
ci/push/schedule_push.py
marcalbaladejo/CumulusCI
f619d0d984f7bbfa3c6fcd6e33e41e64105cb4f5
[ "BSD-3-Clause" ]
1
2016-07-20T12:15:38.000Z
2016-07-20T12:15:38.000Z
import os import sys import csv import time from push_api import SalesforcePushApi # Force UTF8 output reload(sys) sys.setdefaultencoding('UTF8') if __name__ == '__main__': try: username = os.environ.get('SF_USERNAME') password = os.environ.get('SF_PASSWORD') serverurl = os.enviro...
33.642857
113
0.639597
import os import sys import csv import time from push_api import SalesforcePushApi # Force UTF8 output reload(sys) sys.setdefaultencoding('UTF8') if __name__ == '__main__': try: username = os.environ.get('SF_USERNAME') password = os.environ.get('SF_PASSWORD') serverurl = os.enviro...
0
0
0
9e2f6191d670e4988de60e49d379005e81731fb5
1,581
py
Python
pskgu_bot/bots/base/user_settings/subscribtion.py
mrgick/pskgu_bot
a6252c33b3ca18e6df6e79ed9e9721a766ed1e1f
[ "MIT" ]
14
2021-02-26T14:33:35.000Z
2021-12-27T09:36:12.000Z
pskgu_bot/bots/base/user_settings/subscribtion.py
mrgick/pskgu_bot
a6252c33b3ca18e6df6e79ed9e9721a766ed1e1f
[ "MIT" ]
1
2022-02-05T12:37:21.000Z
2022-02-05T12:37:24.000Z
pskgu_bot/bots/base/user_settings/subscribtion.py
mrgick/pskgu_bot
a6252c33b3ca18e6df6e79ed9e9721a766ed1e1f
[ "MIT" ]
2
2021-03-05T18:07:39.000Z
2021-12-03T00:12:29.000Z
from ..messages import (MSG_NO_NAME_GROUP, MSG_NOW_UNSUBCRIBE, MSG_NO_USER_GROUP, msg_not_found_group_name, msg_already_subscribed, msg_now_subscribed) from pskgu_bot.db.services import (find_group_by_name, find_vk_user_by_id, update_use...
32.265306
74
0.605313
from ..messages import (MSG_NO_NAME_GROUP, MSG_NOW_UNSUBCRIBE, MSG_NO_USER_GROUP, msg_not_found_group_name, msg_already_subscribed, msg_now_subscribed) from pskgu_bot.db.services import (find_group_by_name, find_vk_user_by_id, update_use...
0
0
0
e1f3eb9090ef74e2bd15baffc14d784859c6b703
187
py
Python
network/models/random.py
matejker/network
e2a3f5cb4e351fb682aa1736813cc74bca55c169
[ "MIT" ]
1
2020-12-16T18:33:59.000Z
2020-12-16T18:33:59.000Z
network/models/random.py
matejker/network
e2a3f5cb4e351fb682aa1736813cc74bca55c169
[ "MIT" ]
4
2020-06-17T08:14:23.000Z
2020-06-18T22:31:47.000Z
network/models/random.py
matejker/network
e2a3f5cb4e351fb682aa1736813cc74bca55c169
[ "MIT" ]
1
2021-05-30T22:55:27.000Z
2021-05-30T22:55:27.000Z
# from network.models.exceptions import * # from network.network import Network # from network.models.tools import random_choice # from itertools import combinations # import numpy as np
31.166667
48
0.807487
# from network.models.exceptions import * # from network.network import Network # from network.models.tools import random_choice # from itertools import combinations # import numpy as np
0
0
0
105056080a2b5617ca7317b4dea241a923e78797
35
py
Python
Tests/Runnable1/r_pyclass_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
5
2019-05-26T20:48:36.000Z
2021-07-09T01:38:38.000Z
Tests/Runnable1/r_pyclass_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
null
null
null
Tests/Runnable1/r_pyclass_t.py
jwilk/Pyrex
83dfbae1261788933472e3f9c501ad74c61a37c5
[ "Apache-2.0" ]
1
2022-02-10T07:14:58.000Z
2022-02-10T07:14:58.000Z
import r_pyclass r_pyclass.order()
11.666667
17
0.828571
import r_pyclass r_pyclass.order()
0
0
0
f208c87d20c028b36a883e09891dfc58b7c86336
27,334
py
Python
PixelGUI.py
ZachJW34/PixelGUI319k
f76c5a7bf6909662b609b7c8bf626a94bff980ad
[ "MIT" ]
1
2021-07-27T19:12:14.000Z
2021-07-27T19:12:14.000Z
PixelGUI.py
ZachJW34/PixelGUI319k
f76c5a7bf6909662b609b7c8bf626a94bff980ad
[ "MIT" ]
null
null
null
PixelGUI.py
ZachJW34/PixelGUI319k
f76c5a7bf6909662b609b7c8bf626a94bff980ad
[ "MIT" ]
null
null
null
#Developed by Zachary Williams from tkinter import * from functools import partial from PIL import Image import sys from sys import platform root = Tk() z = mainclass(root) root.mainloop() sys.exit()
52.870406
181
0.57412
#Developed by Zachary Williams from tkinter import * from functools import partial from PIL import Image import sys from sys import platform class mainclass(object): colorfillvar = 0 gridwidth = 8 gridheight = 8 griddim = gridwidth * gridheight colors = [] basecolor = "red" ...
18,808
8,280
24
5b5b793fca0e9766cab8b5858b8f208bb7985336
99
py
Python
3088.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
6
2021-04-13T00:33:43.000Z
2022-02-10T10:23:59.000Z
3088.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
null
null
null
3088.py
heltonricardo/URI
160cca22d94aa667177c9ebf2a1c9864c5e55b41
[ "MIT" ]
3
2021-03-23T18:42:24.000Z
2022-02-10T10:24:07.000Z
while True: try: e = input() except: break print(e.replace(' .', '.').replace(' ,', ','))
19.8
49
0.494949
while True: try: e = input() except: break print(e.replace(' .', '.').replace(' ,', ','))
0
0
0
ab980aaa6de7f8762e60114a8a45d13eb831478f
5,985
py
Python
Unlearning/pretrain.py
cleverhans-lab/unrolling-sgd
49e001f9cc77b61d65eac3bf26888b5183b73bef
[ "MIT" ]
3
2022-03-21T13:16:56.000Z
2022-03-22T07:55:10.000Z
Unlearning/pretrain.py
cleverhans-lab/unrolling-sgd
49e001f9cc77b61d65eac3bf26888b5183b73bef
[ "MIT" ]
null
null
null
Unlearning/pretrain.py
cleverhans-lab/unrolling-sgd
49e001f9cc77b61d65eac3bf26888b5183b73bef
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import os import argparse from ResNet_CIFAR10 import * from VGG_model import * #########################################...
40.167785
156
0.661988
import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn import torchvision import torchvision.transforms as transforms import os import argparse from ResNet_CIFAR10 import * from VGG_model import * #########################################...
1,412
0
68
3687dfbc45547dd943f334c95d56f3afef1bae2d
8,256
py
Python
pgsqltoolsservice/workspace/workspace_service.py
sergb213/pgtoolsservice
6296a207e7443fe4ebd5c91d837c033ee7886cab
[ "MIT" ]
null
null
null
pgsqltoolsservice/workspace/workspace_service.py
sergb213/pgtoolsservice
6296a207e7443fe4ebd5c91d837c033ee7886cab
[ "MIT" ]
null
null
null
pgsqltoolsservice/workspace/workspace_service.py
sergb213/pgtoolsservice
6296a207e7443fe4ebd5c91d837c033ee7886cab
[ "MIT" ]
1
2020-07-30T11:46:44.000Z
2020-07-30T11:46:44.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
44.149733
118
0.652737
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
2,059
0
187
21b26de6d2b9d84edfee3500275c6ffa369001c4
2,322
py
Python
lenskit/data/matrix.py
keener101/lkpy
7c71e8bd1f367d6a1bf57b36b129e025e2ba374d
[ "MIT" ]
210
2018-06-09T19:39:19.000Z
2022-03-19T15:14:23.000Z
lenskit/data/matrix.py
keener101/lkpy
7c71e8bd1f367d6a1bf57b36b129e025e2ba374d
[ "MIT" ]
301
2018-06-14T22:03:24.000Z
2022-03-11T23:05:57.000Z
lenskit/data/matrix.py
keener101/lkpy
7c71e8bd1f367d6a1bf57b36b129e025e2ba374d
[ "MIT" ]
57
2018-09-25T00:34:38.000Z
2022-02-21T10:09:56.000Z
""" Data manipulation routines. """ from collections import namedtuple import logging import scipy.sparse as sps import numpy as np import pandas as pd from csr import CSR _log = logging.getLogger(__name__) RatingMatrix = namedtuple('RatingMatrix', ['matrix', 'users', 'items']) RatingMatrix.__doc__ = """ A rating m...
31.378378
83
0.646856
""" Data manipulation routines. """ from collections import namedtuple import logging import scipy.sparse as sps import numpy as np import pandas as pd from csr import CSR _log = logging.getLogger(__name__) RatingMatrix = namedtuple('RatingMatrix', ['matrix', 'users', 'items']) RatingMatrix.__doc__ = """ A rating m...
0
0
0
a68ba59292f9e55761ad77efab34d937b8208857
6,218
py
Python
agent/src/clacks/agent/plugins/posix/filters.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
2
2015-01-26T07:15:19.000Z
2015-11-09T13:42:11.000Z
agent/src/clacks/agent/plugins/posix/filters.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
agent/src/clacks/agent/plugins/posix/filters.py
gonicus/clacks
da579f0acc4e48cf2e9451417ac6792282cf7ab6
[ "ZPL-2.1" ]
null
null
null
# This file is part of the clacks framework. # # http://clacks-project.org # # Copyright: # (C) 2010-2012 GONICUS GmbH, Germany, http://www.gonicus.de # # License: # GPL-2: http://www.gnu.org/licenses/gpl-2.0.html # # See the LICENSE file in the project's top-level directory for details. from clacks.agent.objects.f...
35.942197
107
0.600193
# This file is part of the clacks framework. # # http://clacks-project.org # # Copyright: # (C) 2010-2012 GONICUS GmbH, Germany, http://www.gonicus.de # # License: # GPL-2: http://www.gnu.org/licenses/gpl-2.0.html # # See the LICENSE file in the project's top-level directory for details. from clacks.agent.objects.f...
2,905
20
208
26aa104e94d0d68739f234e5b0e9ad3e892fb26d
1,724
py
Python
blender_script.py
B0und/bad_apple_cube
cd3b69d4ccc0ae36626176a425018eb56c92a528
[ "MIT" ]
null
null
null
blender_script.py
B0und/bad_apple_cube
cd3b69d4ccc0ae36626176a425018eb56c92a528
[ "MIT" ]
null
null
null
blender_script.py
B0und/bad_apple_cube
cd3b69d4ccc0ae36626176a425018eb56c92a528
[ "MIT" ]
null
null
null
import bpy import numpy as np import glob # Global consts WIDTH = 160 HEIGHT = 120 PROJECT_PATH = "/PATH/TO/bad_apple_blender_cube" FRAME_COUNT = len(glob.glob(f'{PROJECT_PATH}/frames/*.jpg')) # Prepare particle system cube = bpy.data.objects["Cube"] degp = bpy.context.evaluated_depsgraph_get() particle_systems = cu...
30.245614
68
0.774362
import bpy import numpy as np import glob # Global consts WIDTH = 160 HEIGHT = 120 PROJECT_PATH = "/PATH/TO/bad_apple_blender_cube" FRAME_COUNT = len(glob.glob(f'{PROJECT_PATH}/frames/*.jpg')) # Prepare particle system cube = bpy.data.objects["Cube"] degp = bpy.context.evaluated_depsgraph_get() particle_systems = cu...
0
0
0
03b416a08b5dc25b0e21740642be9908f184d5ba
2,163
py
Python
discord_interactions/flask_ext/utils.py
LiBa001/discord-interactions.py
7f19e1b33dfdf2fd9d0a95a164fba8820a031bba
[ "MIT" ]
19
2021-01-07T23:57:20.000Z
2022-01-23T19:49:46.000Z
discord_interactions/flask_ext/utils.py
LiBa001/discord-interactions-wrapper
7f19e1b33dfdf2fd9d0a95a164fba8820a031bba
[ "MIT" ]
4
2021-01-09T01:18:31.000Z
2021-06-11T22:39:45.000Z
discord_interactions/flask_ext/utils.py
LiBa001/discord-interactions-wrapper
7f19e1b33dfdf2fd9d0a95a164fba8820a031bba
[ "MIT" ]
2
2021-05-21T01:08:19.000Z
2021-09-25T03:12:44.000Z
#!/usr/bin/env python """ MIT License Original work Copyright (c) 2020 Ian Webster Modified work Copyright (c) 2020-2021 Linus Bartsch 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 res...
37.293103
88
0.714286
#!/usr/bin/env python """ MIT License Original work Copyright (c) 2020 Ian Webster Modified work Copyright (c) 2020-2021 Linus Bartsch 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 res...
824
0
23
a2d3c862606cac3220edb171c369ca9b33ceab18
1,856
py
Python
practice/troubleshooting/compare_problem.py
jhabboubi/GoogleAutomation
eb2c79f5ff5e5d600de83f406f24e6d79e0d8fda
[ "MIT" ]
null
null
null
practice/troubleshooting/compare_problem.py
jhabboubi/GoogleAutomation
eb2c79f5ff5e5d600de83f406f24e6d79e0d8fda
[ "MIT" ]
null
null
null
practice/troubleshooting/compare_problem.py
jhabboubi/GoogleAutomation
eb2c79f5ff5e5d600de83f406f24e6d79e0d8fda
[ "MIT" ]
null
null
null
""" The datetime module supplies classes for manipulating dates and times, and contains many types, objects, and methods. You've seen some of them used in the dow function, which returns the day of the week for a specific date. We'll use them again in the next_date function, which takes the date_string parameter in the...
45.268293
154
0.755927
""" The datetime module supplies classes for manipulating dates and times, and contains many types, objects, and methods. You've seen some of them used in the dow function, which returns the day of the week for a specific date. We'll use them again in the next_date function, which takes the date_string parameter in the...
615
0
46
1a36054e4b7418274e99314f78d19465e2792514
18,963
py
Python
pairwise_classification/one_part_exp.py
dreamysx/lorelei
e17b13309ab57920690c843b92eab0178190ec20
[ "MIT" ]
null
null
null
pairwise_classification/one_part_exp.py
dreamysx/lorelei
e17b13309ab57920690c843b92eab0178190ec20
[ "MIT" ]
null
null
null
pairwise_classification/one_part_exp.py
dreamysx/lorelei
e17b13309ab57920690c843b92eab0178190ec20
[ "MIT" ]
null
null
null
from __future__ import division import json import numpy as np import matplotlib.pyplot as plt import time import random from sklearn.linear_model import LogisticRegressionCV from sklearn.ensemble import RandomForestClassifier as RFC import pandas as pd import operator from sklearn.metrics import roc_curve, precision_r...
43.393593
186
0.590729
from __future__ import division import json import numpy as np import matplotlib.pyplot as plt import time import random from sklearn.linear_model import LogisticRegressionCV from sklearn.ensemble import RandomForestClassifier as RFC import pandas as pd import operator from sklearn.metrics import roc_curve, precision_r...
12,621
0
112
38652c248a4584e2b2780ee78dd51e86e74e2328
7,639
py
Python
project/projectapp.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
2
2019-04-20T03:45:51.000Z
2019-04-27T05:52:10.000Z
project/projectapp.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
3
2019-04-21T18:57:32.000Z
2019-04-28T15:14:02.000Z
project/projectapp.py
psglinux/cmpe-272
881d29186930475c88da8b2a4bc9120fea02ee13
[ "MIT" ]
4
2019-04-23T00:32:21.000Z
2019-04-29T22:29:00.000Z
# app.py import pprint import json import bson import jwt import pymongo import mongomock import requests from flask import Flask from flask import jsonify from flask import request from flask import Response from flask import abort from flask import json,jsonify, make_response,session from flask import render_templa...
32.785408
129
0.615002
# app.py import pprint import json import bson import jwt import pymongo import mongomock import requests from flask import Flask from flask import jsonify from flask import request from flask import Response from flask import abort from flask import json,jsonify, make_response,session from flask import render_templa...
3,592
0
181
08b321e691944be60f4baac231100dd16f8af4cc
5,529
py
Python
main.py
markmumba/password_locker
2b864dc418c2783f888fc332878e21b6ed04e370
[ "MIT" ]
null
null
null
main.py
markmumba/password_locker
2b864dc418c2783f888fc332878e21b6ed04e370
[ "MIT" ]
null
null
null
main.py
markmumba/password_locker
2b864dc418c2783f888fc332878e21b6ed04e370
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.8 import pyperclip import random import string from py_lock import personas, profiles if __name__ == '__main__': main()
31.061798
221
0.573702
#!/usr/bin/env python3.8 import pyperclip import random import string from py_lock import personas, profiles def create_persona(persona_name, password): new_persona = personas(persona_name, password) return new_persona def save_New_persona(persona_name): personas.personas_list.append(persona_name) ...
5,092
0
276
a111b0cae354e20686401a949e25af061b226bbe
585
py
Python
refresher/Set.py
arunma/Python_DataScience
2f23de4517a761f373ef3cd3e708e46e84c62719
[ "Apache-2.0" ]
1
2018-01-21T06:43:16.000Z
2018-01-21T06:43:16.000Z
refresher/Set.py
arunma/Python_DataScience
2f23de4517a761f373ef3cd3e708e46e84c62719
[ "Apache-2.0" ]
null
null
null
refresher/Set.py
arunma/Python_DataScience
2f23de4517a761f373ef3cd3e708e46e84c62719
[ "Apache-2.0" ]
null
null
null
s=Set([1,2,3]) s.add(4) print s print ("contains 5,",s.contains(5)) print ("contains 4,",s.contains(4)) s.remove(3) print (s) print ("contains 3,",s.contains(3))
18.870968
45
0.574359
class Set: def __init__(self, values=None): self.dict={} if values is not None: for value in values: self.add(value) def __repr__(self): return "Set : "+str(self.dict.keys()) def add (self, value): self.dict[value]=True def contains(self, va...
274
-11
156
6cf265d72ec069ba1c8f2f1dcab4bda48de2e36a
4,638
py
Python
bevodevo/train.py
riveSunder/bevodevo
d45ec97b825489a9e94f79843e7169daa9491264
[ "MIT" ]
4
2020-12-02T22:28:29.000Z
2020-12-28T05:42:06.000Z
bevodevo/train.py
riveSunder/bevodevo
d45ec97b825489a9e94f79843e7169daa9491264
[ "MIT" ]
5
2020-12-27T16:43:42.000Z
2021-11-11T21:00:15.000Z
bevodevo/train.py
riveSunder/bevodevo
d45ec97b825489a9e94f79843e7169daa9491264
[ "MIT" ]
null
null
null
import os import sys import argparse import subprocess import torch import numpy as np import time import gym import pybullet import pybullet_envs from mpi4py import MPI comm = MPI.COMM_WORLD from bevodevo.policies.rnns import GatedRNNPolicy from bevodevo.policies.cnns import ImpalaCNNPolicy from bevodevo.policies...
34.102941
89
0.681975
import os import sys import argparse import subprocess import torch import numpy as np import time import gym import pybullet import pybullet_envs from mpi4py import MPI comm = MPI.COMM_WORLD from bevodevo.policies.rnns import GatedRNNPolicy from bevodevo.policies.cnns import ImpalaCNNPolicy from bevodevo.policies...
2,117
0
23
305281d1d65e2e36d46180f95ea3d6692aa1c5ca
366
py
Python
prediction/models.py
WaruiAlfred/ail_predict
8d406e802394d45f4d22039e1d91c695fe8e069f
[ "MIT" ]
null
null
null
prediction/models.py
WaruiAlfred/ail_predict
8d406e802394d45f4d22039e1d91c695fe8e069f
[ "MIT" ]
null
null
null
prediction/models.py
WaruiAlfred/ail_predict
8d406e802394d45f4d22039e1d91c695fe8e069f
[ "MIT" ]
null
null
null
# from django.db import models from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here.
40.666667
83
0.803279
# from django.db import models from django.contrib.auth.models import AbstractUser from django.db import models # Create your models here. class User(AbstractUser): is_admin = models.BooleanField('Admin',default=False) is_patient = models.BooleanField('Patient',default=False) is_health_practitioner = models.Boo...
0
205
22
b0f91056a6c368409caf0a5fb324e79cfc59388f
2,262
py
Python
demos/demo_face_detection.py
rflamary/demos
af330563f5642d8435fa62641389b530a8396fc7
[ "MIT" ]
25
2020-03-14T22:01:30.000Z
2021-10-05T13:50:02.000Z
demos/demo_face_detection.py
rflamary/demos
af330563f5642d8435fa62641389b530a8396fc7
[ "MIT" ]
null
null
null
demos/demo_face_detection.py
rflamary/demos
af330563f5642d8435fa62641389b530a8396fc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ MIT License Copyright (c) 2020 Rémi Flamary 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 th...
29
92
0.716622
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ MIT License Copyright (c) 2020 Rémi Flamary 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 th...
0
0
0
4a1f4f3d91982d2ea80d4f5e58037fd0d77bdd1f
2,571
py
Python
calculateRanking.py
ConorMaley/Catan
c16f1a1d1eb286b13322a8b50ef319dd079ef01c
[ "Apache-2.0" ]
null
null
null
calculateRanking.py
ConorMaley/Catan
c16f1a1d1eb286b13322a8b50ef319dd079ef01c
[ "Apache-2.0" ]
null
null
null
calculateRanking.py
ConorMaley/Catan
c16f1a1d1eb286b13322a8b50ef319dd079ef01c
[ "Apache-2.0" ]
null
null
null
import googleSheetsApi import eloCalculator if __name__ == '__main__': main()
30.975904
132
0.614936
import googleSheetsApi import eloCalculator def main(): masterSheet = googleSheetsApi.getMasterSheet() Elos = {} playersArray = [] highestELO = {} highestELO['score'] = 1200 lowestELO = {} lowestELO['score'] = 1200 for line_count, row in enumerate(masterSheet): if line_count == 0: for name in row[1:]:...
2,466
0
23
c32342487ddf2e42cf5a098bcc493400e3bb3c02
1,211
py
Python
tests/workflows/test_cli_parser.py
akrherz/pyWWA
011526f459db00d117e59f570535ac42ca267d83
[ "MIT" ]
9
2015-03-27T22:43:07.000Z
2020-04-10T04:19:47.000Z
tests/workflows/test_cli_parser.py
akrherz/pyWWA
011526f459db00d117e59f570535ac42ca267d83
[ "MIT" ]
76
2015-03-05T18:20:07.000Z
2022-03-24T02:04:25.000Z
tests/workflows/test_cli_parser.py
akrherz/pyWWA
011526f459db00d117e59f570535ac42ca267d83
[ "MIT" ]
3
2020-11-05T17:38:03.000Z
2022-03-04T17:39:40.000Z
"""Test cli_parser.""" # 3rd Party from pyiem.util import utc import pytest # Local import pywwa from pywwa.workflows import cli_parser from pywwa.testing import get_example_file @pytest.mark.parametrize("database", ["iem"]) def test_processor(cursor): """Test basic parsing.""" data = get_example_file("CLI.t...
29.536585
66
0.672998
"""Test cli_parser.""" # 3rd Party from pyiem.util import utc import pytest # Local import pywwa from pywwa.workflows import cli_parser from pywwa.testing import get_example_file @pytest.mark.parametrize("database", ["iem"]) def test_processor(cursor): """Test basic parsing.""" data = get_example_file("CLI.t...
0
0
0
0711d2b2079f706e4f95d3bb4d7821e8f97ba680
354
py
Python
src/modules/services/interfaces/health.py
periket2000/zookeeperize
3e72337643b60984b3ad8c206088ea6ea18b0206
[ "Apache-2.0" ]
null
null
null
src/modules/services/interfaces/health.py
periket2000/zookeeperize
3e72337643b60984b3ad8c206088ea6ea18b0206
[ "Apache-2.0" ]
null
null
null
src/modules/services/interfaces/health.py
periket2000/zookeeperize
3e72337643b60984b3ad8c206088ea6ea18b0206
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Metaclass as interface for the health service """ from abc import ABCMeta, abstractmethod
19.666667
45
0.621469
# -*- coding: utf-8 -*- """ Metaclass as interface for the health service """ from abc import ABCMeta, abstractmethod class HealthInterface(metaclass=ABCMeta): @abstractmethod def process(self, salute=None): """ Health interface :salute: the salute to the system :return: Json ...
0
211
23
05a56b2d9163eb6470a1531a5bcf0049c9a4bd4b
173
py
Python
course_api/routing.py
dragonbone81/bobcat-courses-backend
d0f98b837f37eb16a89a24ce9bd3f3f0fd52064c
[ "MIT" ]
3
2018-10-25T12:41:33.000Z
2019-09-19T19:47:39.000Z
course_api/routing.py
dragonbone81/bobcat-courses-backend
d0f98b837f37eb16a89a24ce9bd3f3f0fd52064c
[ "MIT" ]
22
2018-04-01T02:43:01.000Z
2022-03-11T23:15:55.000Z
course_api/routing.py
dragonbone81/cse120
d0f98b837f37eb16a89a24ce9bd3f3f0fd52064c
[ "MIT" ]
1
2019-09-19T19:48:59.000Z
2019-09-19T19:48:59.000Z
# chat/routing.py from django.conf.urls import url from . import consumers websocket_urlpatterns = [ url(r'^api/ws/notifications', consumers.NotificationsConsumer), ]
19.222222
67
0.763006
# chat/routing.py from django.conf.urls import url from . import consumers websocket_urlpatterns = [ url(r'^api/ws/notifications', consumers.NotificationsConsumer), ]
0
0
0
609b8d6d6afdd31120e91ceaa06afaea06a3515a
14,668
py
Python
force_wfmanager/tests/test_wfmanager_tasks.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
1
2019-08-19T16:02:20.000Z
2019-08-19T16:02:20.000Z
force_wfmanager/tests/test_wfmanager_tasks.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
396
2017-07-18T15:19:55.000Z
2021-05-03T06:23:06.000Z
force_wfmanager/tests/test_wfmanager_tasks.py
force-h2020/force-wfmanager
bcd488cd37092cacd9d0c81b544ee8c1654d1d92
[ "BSD-2-Clause" ]
2
2019-03-05T16:23:10.000Z
2020-04-16T08:59:11.000Z
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved. import copy from unittest import mock, TestCase from pyface.api import OK, CANCEL from pyface.file_dialog import FileDialog from pyface.ui.qt4.util.gui_test_assistant import GuiTestAssistant from pyface.tasks.api import TaskWindow from fo...
37.804124
79
0.650123
# (C) Copyright 2010-2020 Enthought, Inc., Austin, TX # All rights reserved. import copy from unittest import mock, TestCase from pyface.api import OK, CANCEL from pyface.file_dialog import FileDialog from pyface.ui.qt4.util.gui_test_assistant import GuiTestAssistant from pyface.tasks.api import TaskWindow from fo...
12,452
32
311
795b0560d2ca479481ca8ceaeb887fd7b5cba2be
9,784
py
Python
pastamaker/web.py
sileht/pastamaker
1fda2bfc0dcaa15cb1070cb8bb7c1c74fda424fc
[ "Apache-2.0" ]
37
2017-07-10T10:29:52.000Z
2019-05-09T01:50:41.000Z
pastamaker/web.py
sileht/pastamaker
1fda2bfc0dcaa15cb1070cb8bb7c1c74fda424fc
[ "Apache-2.0" ]
13
2017-06-13T08:01:30.000Z
2018-01-30T12:00:59.000Z
pastamaker/web.py
sileht/pastamaker
1fda2bfc0dcaa15cb1070cb8bb7c1c74fda424fc
[ "Apache-2.0" ]
4
2017-07-05T15:04:09.000Z
2017-12-16T20:05:46.000Z
# -*- encoding: utf-8 -*- # # Copyright © 2017 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
30.767296
78
0.601799
# -*- encoding: utf-8 -*- # # Copyright © 2017 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
7,672
0
402
3d17e01cc03fb6bd6696eb4b21af15c825c85509
426
py
Python
watchlist_app/migrations/0003_alter_streamingplatform_about.py
ivanlegranbizarro/movieList
eeaa875698da608d8cc009341dd31ee8a26169e9
[ "MIT" ]
null
null
null
watchlist_app/migrations/0003_alter_streamingplatform_about.py
ivanlegranbizarro/movieList
eeaa875698da608d8cc009341dd31ee8a26169e9
[ "MIT" ]
null
null
null
watchlist_app/migrations/0003_alter_streamingplatform_about.py
ivanlegranbizarro/movieList
eeaa875698da608d8cc009341dd31ee8a26169e9
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-26 06:57 from django.db import migrations, models
22.421053
74
0.622066
# Generated by Django 3.2.6 on 2021-08-26 06:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('watchlist_app', '0002_auto_20210826_0852'), ] operations = [ migrations.AlterField( model_name='streamingplatform', ...
0
312
23
70f9fa062d8723acc19d16f3f162787ad7e36d88
1,465
py
Python
src/spaceone/inventory/info/network_info.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/info/network_info.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/info/network_info.py
choonho/inventory
cc89757490d28fecb7ffccdfd6f89d4c0aa40da5
[ "Apache-2.0" ]
null
null
null
import functools from spaceone.api.inventory.v1 import network_pb2 from spaceone.core.pygrpc.message_type import * from spaceone.inventory.model.network_model import Network from spaceone.inventory.info.zone_info import ZoneInfo from spaceone.inventory.info.region_info import RegionInfo __all__ = ['NetworkInfo', 'Net...
38.552632
134
0.709898
import functools from spaceone.api.inventory.v1 import network_pb2 from spaceone.core.pygrpc.message_type import * from spaceone.inventory.model.network_model import Network from spaceone.inventory.info.zone_info import ZoneInfo from spaceone.inventory.info.region_info import RegionInfo __all__ = ['NetworkInfo', 'Net...
1,085
0
46
1e2c56644b6e59790a6b681324aa7dd41fa8f75d
5,210
py
Python
imposer.py
kevinjelnl/yapdfi
cb88e025cda7b79f4fd9f719f07d0b4ef20787ae
[ "MIT" ]
null
null
null
imposer.py
kevinjelnl/yapdfi
cb88e025cda7b79f4fd9f719f07d0b4ef20787ae
[ "MIT" ]
3
2021-09-08T02:23:46.000Z
2022-03-12T00:43:59.000Z
imposer.py
kevinjelnl/yapdfi
cb88e025cda7b79f4fd9f719f07d0b4ef20787ae
[ "MIT" ]
null
null
null
import sys import logging import math from pathlib import Path from pydantic import BaseModel from typing import * import PyPDF2 from reportlab.lib.units import mm, inch logging.basicConfig(format='%(asctime)s,%(msecs)d | %(levelname)-8s | %(filename)s:%(funcName)s:%(lineno)d - %(message)s', datef...
32.767296
122
0.59405
import sys import logging import math from pathlib import Path from pydantic import BaseModel from typing import * import PyPDF2 from reportlab.lib.units import mm, inch logging.basicConfig(format='%(asctime)s,%(msecs)d | %(levelname)-8s | %(filename)s:%(funcName)s:%(lineno)d - %(message)s', datef...
3,861
787
69
c4760810a6b30136c57c8727033cf01063f4f5da
2,439
py
Python
zcash_test_vectors/orchard/commitments.py
jarys/zcash-test-vectors
0cbb8200b092867606835d641cf65c606d987fd7
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
zcash_test_vectors/orchard/commitments.py
jarys/zcash-test-vectors
0cbb8200b092867606835d641cf65c606d987fd7
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
zcash_test_vectors/orchard/commitments.py
jarys/zcash-test-vectors
0cbb8200b092867606835d641cf65c606d987fd7
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
#!/usr/bin/env python3 import sys; assert sys.version_info[0] >= 3, "Python 3 required." from .group_hash import group_hash from .pallas import Fp, Scalar from .sinsemilla import sinsemilla_hash_to_point from ..utils import i2lebsp # Commitment schemes used in Orchard https://zips.z.cash/protocol/nu5.pdf#concretecomm...
31.675325
107
0.707257
#!/usr/bin/env python3 import sys; assert sys.version_info[0] >= 3, "Python 3 required." from .group_hash import group_hash from .pallas import Fp, Scalar from .sinsemilla import sinsemilla_hash_to_point from ..utils import i2lebsp # Commitment schemes used in Orchard https://zips.z.cash/protocol/nu5.pdf#concretecomm...
1,432
0
225
f14389d4d441d9fa654bdded6abebd61ad14e193
18,618
py
Python
wechatarticles/proxy.py
hjyjh/wechat_articles_spider
38da6cde565f8d6e09a5822b25b0dcfb1a8cb239
[ "Apache-2.0" ]
1,603
2018-03-05T03:01:28.000Z
2022-03-31T05:30:51.000Z
wechatarticles/proxy.py
hjyjh/wechat_articles_spider
38da6cde565f8d6e09a5822b25b0dcfb1a8cb239
[ "Apache-2.0" ]
42
2018-03-09T03:06:57.000Z
2021-12-31T02:30:13.000Z
wechatarticles/proxy.py
hjyjh/wechat_articles_spider
38da6cde565f8d6e09a5822b25b0dcfb1a8cb239
[ "Apache-2.0" ]
491
2018-03-05T03:22:31.000Z
2022-03-30T10:10:59.000Z
# coding:utf-8 import logging import os import select import zlib import chardet import time from http.client import HTTPResponse from http.server import BaseHTTPRequestHandler, HTTPServer from socketserver import ThreadingMixIn from urllib.parse import urlparse, ParseResult, urlunparse from tempfile import gettempdir...
29
95
0.570738
# coding:utf-8 import logging import os import select import zlib import chardet import time from http.client import HTTPResponse from http.server import BaseHTTPRequestHandler, HTTPServer from socketserver import ThreadingMixIn from urllib.parse import urlparse, ParseResult, urlunparse from tempfile import gettempdir...
11,273
6,084
740
4743e2afb0612962f02991b2d1548016f9ee41de
3,134
py
Python
gen_create.py
pdebuyl/f90h5md
538bda2eebd5474489d963e16175aecdb750ab4d
[ "BSD-3-Clause" ]
1
2019-10-17T15:57:45.000Z
2019-10-17T15:57:45.000Z
gen_create.py
pdebuyl/f90h5md
538bda2eebd5474489d963e16175aecdb750ab4d
[ "BSD-3-Clause" ]
null
null
null
gen_create.py
pdebuyl/f90h5md
538bda2eebd5474489d963e16175aecdb750ab4d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright 2011-2013 Pierre de Buyl # # This file is part of f90h5md # # f90h5md is free software and is licensed under the modified BSD license (see # LICENSE file). types = dict() types['i'] = 'integer' types['d'] = 'double precision' H5T = dict() H5T['i'] = 'H5T_NATIVE_INTEGER' H5T['d'] = 'H...
30.72549
107
0.624442
#!/usr/bin/env python # Copyright 2011-2013 Pierre de Buyl # # This file is part of f90h5md # # f90h5md is free software and is licensed under the modified BSD license (see # LICENSE file). types = dict() types['i'] = 'integer' types['d'] = 'double precision' H5T = dict() H5T['i'] = 'H5T_NATIVE_INTEGER' H5T['d'] = 'H...
0
0
0
9c74df1de285f8990eac45aebad0a4ff62e8d973
4,531
py
Python
scripts/dv_del.py
ubc-library-rc/dataverse_utils
3fbf3e90bba64b84fa141145a27a9ff787507eb7
[ "MIT" ]
null
null
null
scripts/dv_del.py
ubc-library-rc/dataverse_utils
3fbf3e90bba64b84fa141145a27a9ff787507eb7
[ "MIT" ]
7
2021-07-30T23:26:48.000Z
2021-10-05T21:34:36.000Z
scripts/dv_del.py
ubc-library-rc/dataverse_utils
3fbf3e90bba64b84fa141145a27a9ff787507eb7
[ "MIT" ]
null
null
null
#!python '''Dataverse Bulk Deleter Deletes unpublished studies at the command line ''' import argparse #import json import sys import requests VERSION = (0, 2, 1) __version__ = '.'.join([str(x) for x in VERSION]) def delstudy(dvurl, key, pid): ''' Deletes Dataverse study dvurl : str Dataverse ins...
35.398438
100
0.546237
#!python '''Dataverse Bulk Deleter Deletes unpublished studies at the command line ''' import argparse #import json import sys import requests VERSION = (0, 2, 1) __version__ = '.'.join([str(x) for x in VERSION]) def delstudy(dvurl, key, pid): ''' Deletes Dataverse study dvurl : str Dataverse ins...
0
0
0
17b91ebb149ff794e7ab9e3c0e500dbf74dd6ee0
2,039
py
Python
src/common.py
nagisc007/pythoncitest
5200f1e8ae2969ffb733fb2239e9bbb7e700e836
[ "MIT" ]
null
null
null
src/common.py
nagisc007/pythoncitest
5200f1e8ae2969ffb733fb2239e9bbb7e700e836
[ "MIT" ]
null
null
null
src/common.py
nagisc007/pythoncitest
5200f1e8ae2969ffb733fb2239e9bbb7e700e836
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from acttypes import ActType class Act(object): """ basic action class. """ class Title(Act): """ For title act """ class Chapter(Act): """ For chapter start act """ class Description(Act): """ Nothing subject description act. """ class Person(object):...
23.436782
83
0.583619
# -*- coding: utf-8 -*- from acttypes import ActType class Act(object): """ basic action class. """ def __init__(self, subject, act_type, action, description, with_subject=False): self.action = action self.act_type = act_type self.description = description self.subject = ...
1,037
0
289
3f6fab9af2fd1b2e838b7fc2b62a4615070a323a
644
py
Python
oauth2_provider/backends.py
grnspace/django-oauth-toolkit
3d876563a2528eadac0f832f360a0b269b99b94e
[ "BSD-2-Clause-FreeBSD" ]
2
2021-03-21T03:35:24.000Z
2021-04-20T05:49:19.000Z
oauth2_provider/backends.py
grnspace/django-oauth-toolkit
3d876563a2528eadac0f832f360a0b269b99b94e
[ "BSD-2-Clause-FreeBSD" ]
4
2018-06-20T11:33:43.000Z
2021-05-28T08:02:21.000Z
oauth2_provider/backends.py
grnspace/django-oauth-toolkit
3d876563a2528eadac0f832f360a0b269b99b94e
[ "BSD-2-Clause-FreeBSD" ]
4
2018-06-20T11:14:46.000Z
2021-05-21T15:56:02.000Z
from django.contrib.auth import get_user_model from .oauth2_backends import get_oauthlib_core UserModel = get_user_model() OAuthLibCore = get_oauthlib_core() class OAuth2Backend: """ Authenticate against an OAuth2 access token """
23.851852
70
0.650621
from django.contrib.auth import get_user_model from .oauth2_backends import get_oauthlib_core UserModel = get_user_model() OAuthLibCore = get_oauthlib_core() class OAuth2Backend: """ Authenticate against an OAuth2 access token """ def authenticate(self, request=None, **credentials): if req...
342
0
54
2249f1f9badf4ea52249baafff8509a9ed842631
875
py
Python
example/example_single_cell.py
Yuego/py3o.template
d89293d8154a880e5245df30515ace82effc77e1
[ "MIT" ]
null
null
null
example/example_single_cell.py
Yuego/py3o.template
d89293d8154a880e5245df30515ace82effc77e1
[ "MIT" ]
null
null
null
example/example_single_cell.py
Yuego/py3o.template
d89293d8154a880e5245df30515ace82effc77e1
[ "MIT" ]
null
null
null
from py3o.template import Template t = Template( "py3o_example_template_single_cell.odt", "py3o_example_output_single_cell.odt" ) t.set_image_path('staticimage.logo', 'images/new_logo.png') items = list() item1 = Item() item1.val1 = 'Item1 Value1' item1.val2 = 'Item1 Value2' item1.val3 = 'It...
21.875
60
0.645714
from py3o.template import Template t = Template( "py3o_example_template_single_cell.odt", "py3o_example_output_single_cell.odt" ) t.set_image_path('staticimage.logo', 'images/new_logo.png') class Item(object): pass items = list() item1 = Item() item1.val1 = 'Item1 Value1' item1.val2 =...
0
8
25
5e529e7707da7ca177bde6d4d7eadd1ee8b03b6b
468
py
Python
lesson 6/question 7.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
2
2021-08-10T18:16:08.000Z
2021-09-26T19:49:26.000Z
lesson 6/question 7.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
null
null
null
lesson 6/question 7.py
Kev-in123/ICS2O7
425c59975d4ce6aa0937fd8715b51d04487e4fa9
[ "MIT" ]
null
null
null
num1 = float(input("Number 1: ")) num2 = float(input("Wumber 2: ")) operation = input("Which operation (+,-,/,*): ") if operation == "+": print(f"The sum is {num1 + num2}") if operation == "-": print(f"The difference is {num1 - num2}") if operation == "/": if num2 != 0: print(f"The quotient...
24.631579
49
0.557692
num1 = float(input("Number 1: ")) num2 = float(input("Wumber 2: ")) operation = input("Which operation (+,-,/,*): ") if operation == "+": print(f"The sum is {num1 + num2}") if operation == "-": print(f"The difference is {num1 - num2}") if operation == "/": if num2 != 0: print(f"The quotient...
0
0
0
5e3b4e520e44677ef5084651d4a02fae10e6565f
3,574
py
Python
hata/discord/integration/integration_detail.py
Multiface24111/hata
cd28f9ef158e347363669cc8d1d49db0ff41aba0
[ "0BSD" ]
173
2019-06-14T20:25:00.000Z
2022-03-21T19:36:10.000Z
hata/discord/integration/integration_detail.py
Multiface24111/hata
cd28f9ef158e347363669cc8d1d49db0ff41aba0
[ "0BSD" ]
52
2020-01-03T17:05:14.000Z
2022-03-31T11:39:50.000Z
hata/discord/integration/integration_detail.py
Multiface24111/hata
cd28f9ef158e347363669cc8d1d49db0ff41aba0
[ "0BSD" ]
47
2019-11-09T08:46:45.000Z
2022-03-31T14:33:34.000Z
__all__ = ('IntegrationDetail', ) from ..core import ROLES from ..utils import timestamp_to_datetime, DISCORD_EPOCH_START from ..role import create_partial_role_from_id from .preinstanced import IntegrationExpireBehavior class IntegrationDetail: """ Details about a non discord integration. Attribute...
30.033613
116
0.570229
__all__ = ('IntegrationDetail', ) from ..core import ROLES from ..utils import timestamp_to_datetime, DISCORD_EPOCH_START from ..role import create_partial_role_from_id from .preinstanced import IntegrationExpireBehavior class IntegrationDetail: """ Details about a non discord integration. Attribute...
0
0
0
6cc1141c1620e59785bdb019aca3300e2db9915b
553
py
Python
main.py
robingather/com-thesis
30a6e815c4f71edc332a4e74a25faf0dd21c1244
[ "MIT" ]
null
null
null
main.py
robingather/com-thesis
30a6e815c4f71edc332a4e74a25faf0dd21c1244
[ "MIT" ]
null
null
null
main.py
robingather/com-thesis
30a6e815c4f71edc332a4e74a25faf0dd21c1244
[ "MIT" ]
null
null
null
from controller import Controller import torch import cProfile import pstats OPTIMIZE = False # True to generate performance reports if OPTIMIZE: cProfile.run('main()', "output.dat") with open("output_time.txt","w") as f: p = pstats.Stats("output. dat", stream=f) p.sort_stats("time").pri...
25.136364
55
0.636528
from controller import Controller import torch import cProfile import pstats OPTIMIZE = False # True to generate performance reports def main(): with torch.no_grad(): Controller().run() if OPTIMIZE: cProfile.run('main()', "output.dat") with open("output_time.txt","w") as f: p = psta...
43
0
25
b77e52d98375ce98d4528ec49707a93bfcb316e0
169
py
Python
nodeClasses/startNode.py
marios-stam/PathFinding
b6f7d438fe8c2569db85d6c3d508846ccc3bc863
[ "MIT" ]
null
null
null
nodeClasses/startNode.py
marios-stam/PathFinding
b6f7d438fe8c2569db85d6c3d508846ccc3bc863
[ "MIT" ]
null
null
null
nodeClasses/startNode.py
marios-stam/PathFinding
b6f7d438fe8c2569db85d6c3d508846ccc3bc863
[ "MIT" ]
null
null
null
from nodeClasses.node import node
18.777778
35
0.615385
from nodeClasses.node import node class startNode(node): def __init__(self,x,y): node.__init__(self,x,y) def getFcost(self): return 0
49
1
83
df433c4a7339699215931d516699a115b7d6a36b
318
py
Python
app/tests/unit/test_log_use_cases.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
1
2019-05-25T12:12:39.000Z
2019-05-25T12:12:39.000Z
app/tests/unit/test_log_use_cases.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
null
null
null
app/tests/unit/test_log_use_cases.py
bda-19fs/bda-chatbot
4fcbda813ff5d3854a4c2e12413775676bcba9e2
[ "MIT" ]
null
null
null
import logging from bda_core.use_cases.log.log_info import log_info
28.909091
59
0.72956
import logging from bda_core.use_cases.log.log_info import log_info def test_log_info(capsys): logging.getLogger().addHandler(logging.StreamHandler()) log_info(msg='I am in a unit test', log=logging) captured = capsys.readouterr() log_msg = 'I am in a unit test\n' assert captured.err == log_msg
226
0
23
5f4be6e4666e04d53f03216c425c40dad46daa50
2,980
py
Python
kiosk/kiosk_browser/browser_widget.py
dividat/playos
fae198150789696b2c2d51cf099cb9f6c9563022
[ "MIT" ]
1
2021-06-10T11:05:05.000Z
2021-06-10T11:05:05.000Z
kiosk/kiosk_browser/browser_widget.py
dividat/playos
fae198150789696b2c2d51cf099cb9f6c9563022
[ "MIT" ]
45
2019-01-23T15:36:43.000Z
2022-03-29T08:23:30.000Z
kiosk/kiosk_browser/browser_widget.py
dividat/playos
fae198150789696b2c2d51cf099cb9f6c9563022
[ "MIT" ]
7
2019-01-18T13:53:14.000Z
2021-02-03T10:17:51.000Z
import re import urllib import logging from PyQt5.QtCore import QTimer from PyQt5.QtWidgets import QShortcut from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineSettings from PyQt5.QtWidgets import QSizePolicy from kiosk_browser import system def user_agent_with_system(user_agent, system_name, system_versi...
35.903614
102
0.668792
import re import urllib import logging from PyQt5.QtCore import QTimer from PyQt5.QtWidgets import QShortcut from PyQt5.QtWebEngineWidgets import QWebEngineView, QWebEngineSettings from PyQt5.QtWidgets import QSizePolicy from kiosk_browser import system class BrowserWidget(QWebEngineView): def __init__(self, url...
2,024
15
131
c9f09c526c716364169dbbaeba34b703a91c1d8a
2,625
py
Python
wordCloudGenerator.py
cwen96/Word-Cloud-Generator
0dcc23ad37f231230f80849b49de6448c84e3a7b
[ "MIT" ]
null
null
null
wordCloudGenerator.py
cwen96/Word-Cloud-Generator
0dcc23ad37f231230f80849b49de6448c84e3a7b
[ "MIT" ]
null
null
null
wordCloudGenerator.py
cwen96/Word-Cloud-Generator
0dcc23ad37f231230f80849b49de6448c84e3a7b
[ "MIT" ]
null
null
null
#wordCloudGenerator.py import wordcloud from matplotlib import pyplot as plot import tkinter from tkinter.filedialog import askopenfile #Reads the selected file and then draws the wordcloud #Removes punctuation from words #Calculates how many times each word appears in the text file if __name__ == "__main_...
37.5
117
0.610286
#wordCloudGenerator.py import wordcloud from matplotlib import pyplot as plot import tkinter from tkinter.filedialog import askopenfile #Reads the selected file and then draws the wordcloud def readFileAndDrawPlot(): file = askopenfile(mode = 'rb', filetypes = [("Text Files", "*.txt")]) fileContents = "" ...
2,179
0
112
8278d8338dc03e1303d76a76e15b4eab9b77b17e
400
py
Python
examples/apps/GetImage/GetImage.py
HornedSungem/SungemSDK-Python
5ce5eb7f84654aecf6840de773188f436219559d
[ "Apache-2.0" ]
14
2018-08-16T09:11:39.000Z
2019-12-07T12:54:32.000Z
examples/apps/GetImage/GetImage.py
HornedSungem/SungemSDK-Python
5ce5eb7f84654aecf6840de773188f436219559d
[ "Apache-2.0" ]
2
2019-08-23T23:31:10.000Z
2020-06-17T09:21:57.000Z
examples/apps/GetImage/GetImage.py
HornedSungem/SungemSDK-Python
5ce5eb7f84654aecf6840de773188f436219559d
[ "Apache-2.0" ]
7
2018-10-02T01:46:43.000Z
2021-06-04T19:10:47.000Z
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright(c) 2018 Senscape Corporation. # License: Apache 2.0 # Import libs import cv2, sys, numpy as np sys.path.append('../../../') import hsapi as hs device = hs.GetDevice() device.OpenDevice() try: while(1): image = device.GetImage(False) cv2...
18.181818
41
0.6325
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright(c) 2018 Senscape Corporation. # License: Apache 2.0 # Import libs import cv2, sys, numpy as np sys.path.append('../../../') import hsapi as hs device = hs.GetDevice() device.OpenDevice() try: while(1): image = device.GetImage(False) cv2...
0
0
0
7ce2de320184ff667c45ca79b9e4aac27a385587
1,062
py
Python
src/cactus/faces/cactus_fillAdjacenciesTest.py
Robin-Rounthwaite/cactus
3c612779b83b75cb42e08dc143b9cb81c257cf80
[ "MIT-0" ]
1
2020-12-16T07:08:29.000Z
2020-12-16T07:08:29.000Z
src/cactus/faces/cactus_fillAdjacenciesTest.py
Robin-Rounthwaite/cactus
3c612779b83b75cb42e08dc143b9cb81c257cf80
[ "MIT-0" ]
null
null
null
src/cactus/faces/cactus_fillAdjacenciesTest.py
Robin-Rounthwaite/cactus
3c612779b83b75cb42e08dc143b9cb81c257cf80
[ "MIT-0" ]
null
null
null
#!/usr/bin/env python3 #Copyright (C) 2009-2011 by Benedict Paten (benedictpaten@gmail.com) # #Released under the MIT license, see LICENSE.txt import unittest import sys from sonLib.bioio import TestStatus from cactus.shared.test import getCactusInputs_random from cactus.shared.test import getCactusInputs_blanchette...
35.4
142
0.708098
#!/usr/bin/env python3 #Copyright (C) 2009-2011 by Benedict Paten (benedictpaten@gmail.com) # #Released under the MIT license, see LICENSE.txt import unittest import sys from sonLib.bioio import TestStatus from cactus.shared.test import getCactusInputs_random from cactus.shared.test import getCactusInputs_blanchette...
347
263
23
829a2dee42cf284eaec4c66674bea0c8190e627a
6,680
py
Python
k8_vmware/vsphere/VM.py
aduvukace/k8-vmware
128a87731e342208c683e26ba79993a365d63f4b
[ "Apache-2.0" ]
null
null
null
k8_vmware/vsphere/VM.py
aduvukace/k8-vmware
128a87731e342208c683e26ba79993a365d63f4b
[ "Apache-2.0" ]
null
null
null
k8_vmware/vsphere/VM.py
aduvukace/k8-vmware
128a87731e342208c683e26ba79993a365d63f4b
[ "Apache-2.0" ]
null
null
null
import pyVmomi from osbot_utils.utils.Misc import wait from k8_vmware.vsphere.VM_Keystroke import VM_Keystroke
39.526627
144
0.580689
import pyVmomi from osbot_utils.utils.Misc import wait from k8_vmware.vsphere.VM_Keystroke import VM_Keystroke class VM: def __init__(self, vm): self.vm = vm def config(self): return self.summary().config def controller_scsi(self): controllers = self.devices_SCSI_Controllers() ...
5,405
-12
1,172
8aa1d75f638cfc7d435e032ffae08cc74818678a
127
py
Python
genetic-algorithm-flyfood/testes/teste/change.py
JessyLeal/flyfood
5b0ec6b1b86078208202019a8096df0fdbe6c3b3
[ "MIT" ]
1
2022-03-13T20:22:50.000Z
2022-03-13T20:22:50.000Z
genetic-algorithm-flyfood/testes/teste/change.py
JessyLeal/flyfood
5b0ec6b1b86078208202019a8096df0fdbe6c3b3
[ "MIT" ]
null
null
null
genetic-algorithm-flyfood/testes/teste/change.py
JessyLeal/flyfood
5b0ec6b1b86078208202019a8096df0fdbe6c3b3
[ "MIT" ]
null
null
null
lista = ['oi', 'bem', 'meu'] a, b = lista.index('bem'), lista.index('meu') lista[b], lista[a] = lista[a], lista[b] print(lista)
31.75
45
0.590551
lista = ['oi', 'bem', 'meu'] a, b = lista.index('bem'), lista.index('meu') lista[b], lista[a] = lista[a], lista[b] print(lista)
0
0
0