hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
90a28856cd405554c342c82c85972e08614b06b1
235
py
Python
exercicios_basico/ex031.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
exercicios_basico/ex031.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
exercicios_basico/ex031.py
montalvas/python
483c2097f6f91bfae127dafcb63e3006eeecad1d
[ "MIT" ]
null
null
null
# Leia a distancia da viagem e calcule o valor da passagem d = float(input('Informe a distncia da sua viagem: ')) if d <= 200: p = d * 0.5 else: p = d * 0.45 print('Para uma viagem de {}, voc pagar R$ {:.2f}'.format(d, p))
26.111111
66
0.617021
# Leia a distancia da viagem e calcule o valor da passagem d = float(input('Informe a distância da sua viagem: ')) if d <= 200: p = d * 0.5 else: p = d * 0.45 print('Para uma viagem de {}, você pagará R$ {:.2f}'.format(d, p))
6
0
0
0
0
0
0
0
0
40c65e5f8ced90a996ab54a4df74d1774a76b8a6
3,455
py
Python
tests/ut/python/train/summary/test_summary_abnormal_input.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
1
2020-05-13T11:31:21.000Z
2020-05-13T11:31:21.000Z
tests/ut/python/train/summary/test_summary_abnormal_input.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
tests/ut/python/train/summary/test_summary_abnormal_input.py
doc22940/mindspore
21bcdcd8adb97b9171b2822a7ed2c4c138c99607
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
26.782946
78
0.690304
# Copyright 2020 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
0
0
0
0
0
1,715
0
43
159
59ffaa9c898e6572833a239893975e0326d5b07f
2,752
py
Python
tccli/main.py
tencentcloudapi-test/tencentcloud-cli
da9733765df2b405b83b7acff48256f31e053ab1
[ "Apache-2.0" ]
null
null
null
tccli/main.py
tencentcloudapi-test/tencentcloud-cli
da9733765df2b405b83b7acff48256f31e053ab1
[ "Apache-2.0" ]
null
null
null
tccli/main.py
tencentcloudapi-test/tencentcloud-cli
da9733765df2b405b83b7acff48256f31e053ab1
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import _locale _locale._getdefaultlocale = (lambda *args: ['zh_CN', 'utf8']) import io import sys from tccli.log import init try: reload(sys) # Python 2.7 sys.setdefaultencoding('utf8') except NameError: try: sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-...
29.276596
119
0.623183
# -*- coding: utf-8 -*- import _locale _locale._getdefaultlocale = (lambda *args: ['zh_CN', 'utf8']) import io import os import sys import six import signal from tccli.log import init from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException try: reload(sys) # Python 2.7 ...
0
0
0
0
0
1,770
0
202
221
692835eb29be0beda0d5ed2785598cce849598f5
185
py
Python
tmp/ve_asus-rt-n14uhp-mrtg/bin/django-admin.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
3
2018-08-14T09:33:52.000Z
2022-03-21T12:31:58.000Z
tmp/ve_asus-rt-n14uhp-mrtg/bin/django-admin.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
tmp/ve_asus-rt-n14uhp-mrtg/bin/django-admin.py
jasonwee/asus-rt-n14uhp-mrtg
4fa96c3406e32ea6631ce447db6d19d70b2cd061
[ "Apache-2.0" ]
null
null
null
#!/home/jason/oss/asus-rt-n14uhp-mrtg/tmp/ve_asus-rt-n14uhp-mrtg/bin/python3.4 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
30.833333
78
0.778378
#!/home/jason/oss/asus-rt-n14uhp-mrtg/tmp/ve_asus-rt-n14uhp-mrtg/bin/python3.4 from django.core import management if __name__ == "__main__": management.execute_from_command_line()
0
0
0
0
0
0
0
0
0
736a2afe3408ac6e2f3ed6cdcb49049f80c12c0c
3,817
py
Python
cheesecake/logger.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
12
2015-01-15T01:13:42.000Z
2022-03-04T21:14:27.000Z
cheesecake/logger.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
6
2015-01-19T19:46:51.000Z
2019-02-05T20:20:26.000Z
cheesecake/logger.py
griggheo/cheesecake
2b7aa5c980e8becb163cbcb801b202b17f715054
[ "CNRI-Python-GPL-Compatible" ]
3
2015-10-24T20:08:09.000Z
2019-02-04T20:53:21.000Z
from __future__ import print_function ######################################################## ############### PRODUCERS ############################## ######################################################## default = Producer('default') Producer.keywords2consumer['default'] = default_consumer ###############...
29.361538
75
0.566675
from __future__ import print_function import sys import re ######################################################## ############### PRODUCERS ############################## ######################################################## class Message(object): def __init__(self, keywords, args): self.keywords = ...
0
0
0
2,401
0
708
0
-23
251
f66b03ca2c29ee52f461b6070be899d029ecaa7a
12,306
py
Python
coremltools/converters/mil/mil/ops/defs/linear.py
BearerPipelineTest/coremltools
a84609bfae35b2d4e70d9ba3d592a6756df7d197
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/ops/defs/linear.py
BearerPipelineTest/coremltools
a84609bfae35b2d4e70d9ba3d592a6756df7d197
[ "BSD-3-Clause" ]
null
null
null
coremltools/converters/mil/mil/ops/defs/linear.py
BearerPipelineTest/coremltools
a84609bfae35b2d4e70d9ba3d592a6756df7d197
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
35.773256
121
0.562327
# Copyright (c) 2020, Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can be # found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause import numpy as np from coremltools.converters.mil.mil import ( BoolInputType, DefaultInputs,...
0
11,568
0
0
0
0
0
316
202
5bfb15ea0f0c61af450cb54b721bc595830090c4
4,150
py
Python
beginning-game-development/Chapter 10/bouncesound.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
43
2015-09-20T02:05:48.000Z
2022-03-01T22:00:43.000Z
beginning-game-development/Chapter 10/bouncesound.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
null
null
null
beginning-game-development/Chapter 10/bouncesound.py
CrtomirJuren/pygame-projects
f710f36050bfe3ece866bbda7d570caa1e037d7a
[ "MIT" ]
40
2015-05-19T06:51:13.000Z
2022-03-27T18:11:16.000Z
SCREEN_SIZE = (640, 480) # In pixels per second, per second GRAVITY = 250.0 # Increase for more bounciness, but don't go over 1! BOUNCINESS = 0.7 if __name__ == "__main__": run()
25.304878
71
0.571566
import pygame from pygame.locals import * from random import randint from gameobjects.vector2 import Vector2 SCREEN_SIZE = (640, 480) # In pixels per second, per second GRAVITY = 250.0 # Increase for more bounciness, but don't go over 1! BOUNCINESS = 0.7 def stero_pan(x_coord, screen_width): right_volume = floa...
0
0
0
1,858
0
1,925
0
21
157
451be2132d0d604b8ced8632e8a82a218778aaef
272
py
Python
Calendar/celery.py
GaniAliguzhinov/AviataTask
bfcd059b65036332ed3b645b44eff255b0f30205
[ "MIT" ]
null
null
null
Calendar/celery.py
GaniAliguzhinov/AviataTask
bfcd059b65036332ed3b645b44eff255b0f30205
[ "MIT" ]
null
null
null
Calendar/celery.py
GaniAliguzhinov/AviataTask
bfcd059b65036332ed3b645b44eff255b0f30205
[ "MIT" ]
null
null
null
import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Calendar.settings') app = Celery('Calendar') app.config_from_object('django.conf:settings') app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
19.428571
68
0.808824
import os from celery import Celery from django.conf import settings os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Calendar.settings') app = Celery('Calendar') app.config_from_object('django.conf:settings') app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
0
0
0
0
0
0
0
0
0
c76fa309af32f83531d8851555390f6c52276c98
7,747
py
Python
vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
vmware_nsx_tempest/tests/nsxv/api/test_l2_gateway.py
gravity-tak/vmware-nsx-tempest
3a1007d401c471d989345bb5a3f9769f84bd4ac6
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 OpenStack Foundation # Copyright 2015 VMware 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/LI...
40.560209
78
0.675616
# Copyright 2015 OpenStack Foundation # Copyright 2015 VMware 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/LI...
0
3,628
0
3,016
0
0
0
129
157
dcf83d9849e1e8a5664a8bcdf93ecba4e8814773
8,892
py
Python
telas/man_arquivos.py
saulocurty/bodyfitness
b356a7fb016d70dbd376956cef6a1382ddfb9a95
[ "MIT" ]
null
null
null
telas/man_arquivos.py
saulocurty/bodyfitness
b356a7fb016d70dbd376956cef6a1382ddfb9a95
[ "MIT" ]
null
null
null
telas/man_arquivos.py
saulocurty/bodyfitness
b356a7fb016d70dbd376956cef6a1382ddfb9a95
[ "MIT" ]
null
null
null
root = Tk() usuario_logado = '' user_logado = Usuario('', 0, 0,'','') if __name__ == '__main__': #Adiciona_Exercicio_Dia('Dana', 'sullo152@gmail.com') pass
32.933333
108
0.612123
from calendar import c from distutils.log import error import pandas as pd import csv import asyncio import os import shutil from atividades import * from tkinter import * root = Tk() class Exercicio: def __init__(self, nome:str, caloria: int): self.nome = nome self.caloria = caloria ...
6
0
0
821
0
7,250
0
-26
640
545f7d1f87dc1e0690243cf5e0cc1159a2a78f9e
3,003
py
Python
estoque/migrations/0001_initial.py
lucasgsouza03/NGKS_Shop
002efbb141a74c1df97479e6bd6f112e4617ff3d
[ "Unlicense" ]
1
2018-03-23T23:08:21.000Z
2018-03-23T23:08:21.000Z
estoque/migrations/0001_initial.py
lucasgsouza03/NGKS_Shop
002efbb141a74c1df97479e6bd6f112e4617ff3d
[ "Unlicense" ]
7
2018-09-25T02:59:08.000Z
2022-03-11T23:35:05.000Z
estoque/migrations/0001_initial.py
lucasgsouza03/NGKS_Shop
002efbb141a74c1df97479e6bd6f112e4617ff3d
[ "Unlicense" ]
2
2018-07-10T19:00:34.000Z
2018-08-14T21:05:47.000Z
# Generated by Django 2.0.6 on 2019-10-03 17:36
48.435484
139
0.608392
# Generated by Django 2.0.6 on 2019-10-03 17:36 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('catalogo', '0001_initial'), ] operations = [ migrations.CreateModel( name='...
2
0
0
2,855
0
0
0
30
68
eb04130a9717101c047c225d7c4b517cb16c973a
1,596
py
Python
examples/ariadne_uvicorn/movies.py
danhitchcock/neo4j-graphql-py
195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076
[ "Apache-2.0" ]
17
2020-08-19T08:41:55.000Z
2022-03-10T08:26:58.000Z
examples/ariadne_uvicorn/movies.py
danhitchcock/neo4j-graphql-py
195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076
[ "Apache-2.0" ]
10
2021-03-30T14:10:30.000Z
2022-01-03T14:20:48.000Z
examples/ariadne_uvicorn/movies.py
danhitchcock/neo4j-graphql-py
195b78f61aaf6f9c5c5b2d06f4a52380dcd1e076
[ "Apache-2.0" ]
7
2020-09-16T22:49:53.000Z
2021-12-17T22:33:56.000Z
import uvicorn from ariadne.asgi import GraphQL from neo4j_graphql_py import neo4j_graphql, make_executable_schema typeDefs = ''' directive @cypher(statement: String!) on FIELD_DEFINITION directive @relation(name:String!, direction:String!) on FIELD_DEFINITION type Movie { _id: ID title: String released: Int t...
28.5
169
0.693609
import neo4j import uvicorn from ariadne.asgi import GraphQL from neo4j_graphql_py import neo4j_graphql, make_executable_schema typeDefs = ''' directive @cypher(statement: String!) on FIELD_DEFINITION directive @relation(name:String!, direction:String!) on FIELD_DEFINITION type Movie { _id: ID title: String rele...
0
0
0
0
0
189
0
-9
45
8a99e517b67f59c6996c622d2a1c56061abe1cf6
4,767
py
Python
tools/rebaseline/add_legacy_flag.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
tools/rebaseline/add_legacy_flag.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
tools/rebaseline/add_legacy_flag.py
onlyyou2023/tingskia
4e8c00df69ab8fb986f4985a393fd83c313b8909
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Copyright (c) 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. README = """ Automatically add a specific legacy flag to multiple Skia client repos. This would only work on Google desktop. Exam...
31.569536
80
0.679463
#!/usr/bin/env python # Copyright (c) 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. README = """ Automatically add a specific legacy flag to multiple Skia client repos. This would only work on Google desktop. Exam...
0
0
0
0
0
3,759
0
-7
203
a14f62704f873df5f10a5c51c7a4ad5c8a180077
16,897
py
Python
peinfo/peinfo/peinfo.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
72
2015-11-20T12:52:10.000Z
2021-06-08T16:57:53.000Z
peinfo/peinfo/peinfo.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
87
2016-08-25T15:09:59.000Z
2022-02-07T14:34:45.000Z
peinfo/peinfo/peinfo.py
ytreister/stoq-plugins-public
1325ba0f61a313a1b9dbb71f2843ee698fb7ab9d
[ "Apache-2.0" ]
37
2015-11-20T12:51:59.000Z
2021-12-13T18:13:32.000Z
#!/usr/bin/env python3 # Copyright 2014-present PUNCH Cyber Analytics Group # # 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 # # ...
35.128898
87
0.519856
#!/usr/bin/env python3 # Copyright 2014-present PUNCH Cyber Analytics Group # # 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 # # ...
0
0
3,252
12,467
0
0
0
104
223
e0841cc2b9ccf34c5a084dd31c9ada8e6207315d
787
py
Python
main.py
Jjrex8988/BlogCapstoneProject
f25a5839ecec21c3a56a75d180780a6b5aa3be19
[ "MIT" ]
null
null
null
main.py
Jjrex8988/BlogCapstoneProject
f25a5839ecec21c3a56a75d180780a6b5aa3be19
[ "MIT" ]
null
null
null
main.py
Jjrex8988/BlogCapstoneProject
f25a5839ecec21c3a56a75d180780a6b5aa3be19
[ "MIT" ]
null
null
null
from flask import Flask import requests # posts = requests.get("https://api.npoint.io/43644ec4f0013682fc0d").json() posts = requests.get('https://api.npoint.io/5083070470e7db605e88').json() app = Flask(__name__) if __name__ == "__main__": app.run(debug=True)
22.485714
75
0.696315
from flask import Flask, render_template import requests # posts = requests.get("https://api.npoint.io/43644ec4f0013682fc0d").json() posts = requests.get('https://api.npoint.io/5083070470e7db605e88').json() app = Flask(__name__) @app.route('/') def get_all_posts(): return render_template("index.html", all_posts...
0
408
0
0
0
0
0
17
92
8458d968764e2d798f6e98445f0d41271aeef285
1,773
py
Python
subway/http/response.py
15696/async-web-framework
a8e11039e03d85673a132d97f11b10ce7724dcaa
[ "MIT" ]
4
2022-02-06T13:56:14.000Z
2022-02-08T03:44:48.000Z
subway/http/response.py
15696/async-web-framework
a8e11039e03d85673a132d97f11b10ce7724dcaa
[ "MIT" ]
1
2022-02-19T17:02:10.000Z
2022-02-19T17:02:10.000Z
subway/http/response.py
15696/async-web-framework
a8e11039e03d85673a132d97f11b10ce7724dcaa
[ "MIT" ]
2
2022-02-06T14:12:21.000Z
2022-02-19T16:50:31.000Z
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING:
22.730769
48
0.591653
from __future__ import annotations from typing import Dict, Optional, TYPE_CHECKING from subway import HTTPStatus from subway.headers import Headers from subway.streams import StreamReader from subway.request import HTTPConnection if TYPE_CHECKING: from .abc import Hooker class HTTPResponse(HTTPConnection): ...
0
384
95
991
0
0
0
77
138
dfd97ade3c9dcdc34fc5007e55cdc421a50d782d
1,239
py
Python
apis/auth/routes.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
84
2017-07-24T02:00:38.000Z
2022-03-26T16:28:49.000Z
apis/auth/routes.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
5
2017-10-25T13:04:01.000Z
2019-07-13T08:36:34.000Z
apis/auth/routes.py
gusibi/Metis
e44efc1d63861164c7214702d1050ec7c3a42fff
[ "Apache-2.0" ]
28
2017-08-21T05:03:31.000Z
2021-01-25T16:24:38.000Z
# -*- coding: utf-8 -*- ### ### DO NOT CHANGE THIS FILE ### ### The code is auto generated, your change will be overwritten by ### code generating. ### from __future__ import absolute_import from .api.oauth_token_code import OauthTokenCode from .api.accounts_self import AccountsSelf from .api.oauth_token import Oau...
44.25
110
0.757062
# -*- coding: utf-8 -*- ### ### DO NOT CHANGE THIS FILE ### ### The code is auto generated, your change will be overwritten by ### code generating. ### from __future__ import absolute_import from .api.oauth_token_code import OauthTokenCode from .api.accounts_self import AccountsSelf from .api.oauth_token import Oau...
0
0
0
0
0
0
0
0
0
396854572d1280a2834f54904625b86d73e68ccf
585
py
Python
execicios/ex042/escaleno.py
Israel97f/Exercicios-de-Python
5d3054187977deeb3fadbd7bb1cdee035c609a61
[ "MIT" ]
null
null
null
execicios/ex042/escaleno.py
Israel97f/Exercicios-de-Python
5d3054187977deeb3fadbd7bb1cdee035c609a61
[ "MIT" ]
null
null
null
execicios/ex042/escaleno.py
Israel97f/Exercicios-de-Python
5d3054187977deeb3fadbd7bb1cdee035c609a61
[ "MIT" ]
null
null
null
n1 = int(input('Diga um numero: ')) n2 = int(input('Diga um numero: ')) n3 = int(input('Diga um numero: ')) maior = n1 soma = n2 + n3 if n2 > n1 and n2 > n3: maior = n2 soma = n1 + n3 elif n3 > n1 and n3 > n2: maior = n3 soma = n2 + n1 tri = '' if n1 != n2 != n3 != n1: tri = 'Escaleno' elif n1 ==...
20.172414
67
0.564103
n1 = int(input('Diga um numero: ')) n2 = int(input('Diga um numero: ')) n3 = int(input('Diga um numero: ')) maior = n1 soma = n2 + n3 if n2 > n1 and n2 > n3: maior = n2 soma = n1 + n3 elif n3 > n1 and n3 > n2: maior = n3 soma = n2 + n1 tri = '' if n1 != n2 != n3 != n1: tri = 'Escaleno' elif n1 ==...
16
0
0
0
0
0
0
0
0
69a7a731dea74b0e9d9a0638db1587918ecd62fa
7,241
py
Python
Project_01/Template_Matching/task2.py
Escapist-007/CVIP_Projects
457dbdde3dca78229c2ae4eeb852681c42563ba9
[ "MIT" ]
6
2020-02-24T14:51:33.000Z
2021-03-31T03:13:04.000Z
Project_01/Template_Matching/task2.py
Escapist-007/CVIP_Projects
457dbdde3dca78229c2ae4eeb852681c42563ba9
[ "MIT" ]
null
null
null
Project_01/Template_Matching/task2.py
Escapist-007/CVIP_Projects
457dbdde3dca78229c2ae4eeb852681c42563ba9
[ "MIT" ]
3
2020-02-25T06:30:45.000Z
2020-05-13T15:34:51.000Z
""" UB_ID : 50291708 Name : Md Moniruzzaman Monir Character Detection (Due date: March 8th, 11: 59 P.M.) The goal of this task is to experiment with template matching techniques. Specifically, the task is to find ALL of the coordinates where a specific character appears using ...
33.368664
119
0.602127
""" UB_ID : 50291708 Name : Md Moniruzzaman Monir Character Detection (Due date: March 8th, 11: 59 P.M.) The goal of this task is to experiment with template matching techniques. Specifically, the task is to find ALL of the coordinates where a specific character appears using ...
0
0
0
0
0
2,039
0
-37
168
8ba1a3464f9757c0d07d1b56e1d28157d0b49abb
1,728
py
Python
entity/models/person_image.py
The-Politico/politico-civic-entity
b64f477f2a008c528937d6dbfe19f48c20b0722e
[ "MIT" ]
null
null
null
entity/models/person_image.py
The-Politico/politico-civic-entity
b64f477f2a008c528937d6dbfe19f48c20b0722e
[ "MIT" ]
2
2019-06-12T21:31:31.000Z
2019-06-12T21:49:36.000Z
entity/models/person_image.py
The-Politico/politico-civic-entity
b64f477f2a008c528937d6dbfe19f48c20b0722e
[ "MIT" ]
null
null
null
# Imports from python. # Imports from Django. # Imports from politico-civic-entity. # from entity.models.base import NaturalKeyMixin # Unfortunately, this is only around so the old migrations don't break
26.181818
77
0.63831
# Imports from python. import os import uuid # Imports from Django. from django.db import models from django.utils.html import format_html # Imports from politico-civic-entity. from entity.models.base import CivicBaseModel # from entity.models.base import NaturalKeyMixin from entity.models.image_tag import ImageTag...
0
0
0
998
0
250
0
70
199
fd8a1d247ec82ad9e332163d7fdff0b2e2deb7be
458
py
Python
PythonExercicios/ex030.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
PythonExercicios/ex030.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
PythonExercicios/ex030.py
gabjohann/python_3
380cb622669ed82d6b22fdd09d41f02f1ad50a73
[ "MIT" ]
null
null
null
# Crie um programa que leia um nmero inteiro e mostra na tela se ele par ou mpar. num = float(input('Digite um nmero: ')) resto = num % 2 if resto == 1: print('O nmero mpar!') else: print('O nmero par!') # Resoluo da aula # nmero = int(input('Me diga um nmero qualquer: ')) # resultado = nmero % 2 # if...
24.105263
85
0.628821
# Crie um programa que leia um número inteiro e mostra na tela se ele é par ou ímpar. num = float(input('Digite um número: ')) resto = num % 2 if resto == 1: print('O número é ímpar!') else: print('O número é par!') # Resolução da aula # número = int(input('Me diga um número qualquer: ')) # resultado = nú...
42
0
0
0
0
0
0
0
0
189671009d9b9407de9e0067f91d5e8fc07ac4a5
1,179
py
Python
project/tasks/_post_generation.py
pdm-project/copier-pdm
0828803a81ef37a4b55829de88674373dfd5619b
[ "MIT" ]
9
2021-03-19T13:19:10.000Z
2022-03-23T19:00:03.000Z
project/tasks/_post_generation.py
pdm-project/copier-pdm
0828803a81ef37a4b55829de88674373dfd5619b
[ "MIT" ]
2
2021-03-19T14:11:04.000Z
2021-12-24T12:26:45.000Z
project/tasks/_post_generation.py
pdm-project/copier-pdm
0828803a81ef37a4b55829de88674373dfd5619b
[ "MIT" ]
1
2021-03-20T14:56:51.000Z
2021-03-20T14:56:51.000Z
from pathlib import Path PROJECT_ROOT = Path(__file__).absolute().parent.parent if __name__ == "__main__": write_vscode_settings() delete_myself()
25.630435
86
0.657337
import json import os import subprocess from pathlib import Path PROJECT_ROOT = Path(__file__).absolute().parent.parent def delete_myself() -> None: try: Path(__file__).unlink() except OSError: pass def _get_packages_path() -> str: packages_path = ( subprocess.check_output(["pdm...
0
0
0
0
0
909
0
-26
135
8fdc2830f103596338d703b4187d55c1db167b4a
230
py
Python
app.py
dchidell/traefik-cloudflare-updater
bb54aaa19c539ce2937a62dad1be7822ceac951a
[ "MIT" ]
4
2020-08-17T22:36:26.000Z
2021-08-07T15:06:40.000Z
app.py
dchidell/traefik-cloudflare-updater
bb54aaa19c539ce2937a62dad1be7822ceac951a
[ "MIT" ]
null
null
null
app.py
dchidell/traefik-cloudflare-updater
bb54aaa19c539ce2937a62dad1be7822ceac951a
[ "MIT" ]
1
2021-02-27T13:31:57.000Z
2021-02-27T13:31:57.000Z
#!/usr/bin/python if __name__ == "__main__": main()
14.375
41
0.691304
#!/usr/bin/python from TraefikUpdater import TraefikUpdater def main(): updater = TraefikUpdater() updater.process_containers() # This blocks updater.enter_update_loop() if __name__ == "__main__": main()
0
0
0
0
0
105
0
20
46
7f63e4066ef804f132ab42232075df743df511b4
4,172
py
Python
functions/electron_heat_capacity.py
DanielaZahn/TTM_inputs_from_DFT_results
b98c8cb8047b3db877b4eef80d340e2bb1f48908
[ "MIT" ]
1
2022-01-21T00:56:57.000Z
2022-01-21T00:56:57.000Z
functions/electron_heat_capacity.py
DanielaZahn/TTM_inputs_from_DFT_results
b98c8cb8047b3db877b4eef80d340e2bb1f48908
[ "MIT" ]
null
null
null
functions/electron_heat_capacity.py
DanielaZahn/TTM_inputs_from_DFT_results
b98c8cb8047b3db877b4eef80d340e2bb1f48908
[ "MIT" ]
1
2022-03-11T02:35:19.000Z
2022-03-11T02:35:19.000Z
import scipy.constants as constants
63.212121
131
0.724832
import scipy.interpolate from scipy.special import expit import scipy.constants as constants import numpy as np def calculate_electron_heat_capacity(temperatures,mu,e_dos,fermi_energy,\ region_around_fermi_energy=5,number_of_points = 5000): # This function calculates the electr...
0
0
0
0
0
4,038
0
10
89
4f1861257476bc180dc28877823670cc1543141b
9,518
py
Python
wce_triage/lib/netplan.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
3
2019-07-25T03:24:23.000Z
2021-06-23T14:01:34.000Z
wce_triage/lib/netplan.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
1
2019-12-20T16:04:19.000Z
2019-12-20T16:04:19.000Z
wce_triage/lib/netplan.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
2
2019-07-25T03:24:26.000Z
2021-02-14T05:27:11.000Z
""" netplan.py generates netplan file for triage. There are two cases, one for during triage where a machine generates a default netplan yaml file, and other is for server. """ from ..const import const from ..components.network import NetworkDeviceType, NetworkDevice import sys, os, json, hashlib indentspace = ' '...
28.41194
118
0.61452
""" netplan.py generates netplan file for triage. There are two cases, one for during triage where a machine generates a default netplan yaml file, and other is for server. """ from ..const import const from ..components.network import NetworkDeviceType, NetworkDevice import sys, os, json, hashlib indentspace = ' '...
0
0
0
721
0
97
0
0
45
0abb64d5dbfa02094ea8ed91a05f58a2f9b0eab4
771
py
Python
ch4/dcard_api.py
lpark6321/py-scraping-codetest
f53d33b63f74dcb29276400070346605685e17cb
[ "MIT" ]
null
null
null
ch4/dcard_api.py
lpark6321/py-scraping-codetest
f53d33b63f74dcb29276400070346605685e17cb
[ "MIT" ]
null
null
null
ch4/dcard_api.py
lpark6321/py-scraping-codetest
f53d33b63f74dcb29276400070346605685e17cb
[ "MIT" ]
null
null
null
import requests DCARD_URL = 'https://www.dcard.tw' DCARD_API = DCARD_URL + '/_api/posts?popular=true' #https://www.dcard.tw/_api/posts?popular=true&limit=&before= if __name__ == '__main__': num_page = 2 posts = list(requests.get(DCARD_API).json()) for i in range(1, num_page): id_last_post = post...
33.521739
86
0.60441
import requests DCARD_URL = 'https://www.dcard.tw' DCARD_API = DCARD_URL + '/_api/posts?popular=true' #https://www.dcard.tw/_api/posts?popular=true&limit=最大幾項&before=最後一篇文章號碼 def show(post): for key in ['id', 'title', 'excerpt', 'likeCount', 'commentCount']: print('%s: %s' %(key, post[key])) print('h...
57
0
0
0
0
185
0
0
23
1c9cbb6c816dfec2e7a90b98b3b9a1afae8cd85f
747
py
Python
flask_zs/exceptions.py
codeif/flask-zs
33ea4dbf97edced895e9a6eac7cbfeb6a659f6cb
[ "MIT" ]
5
2019-12-19T09:30:20.000Z
2022-01-07T17:53:52.000Z
flask_zs/exceptions.py
codeif/Flask-ZS
2992ac06aa1a2e8b7e61dc3e551dac350b256f91
[ "MIT" ]
null
null
null
flask_zs/exceptions.py
codeif/Flask-ZS
2992ac06aa1a2e8b7e61dc3e551dac350b256f91
[ "MIT" ]
null
null
null
""" flask_zs.exceptions ~~~~~~~~~~~~ flask-zs exceptions module :copyright: (c) 2018 by codeif. :license: MIT, see LICENSE for more details. """
20.189189
60
0.598394
""" flask_zs.exceptions ~~~~~~~~~~~~ flask-zs exceptions module :copyright: (c) 2018 by codeif. :license: MIT, see LICENSE for more details. """ class BaseCustomException(Exception): errcode = 1000 errmsg = "Server Unkown Error." def __init__(self, errmsg=None, errcode=None, **kw): ...
0
0
0
508
0
0
0
0
69
cb9d75b973a4591df4e16cfed850bad51918caf1
3,089
py
Python
Algorithm/LeetCode/523_continuous_subarray_sum.py
hqzhang83/Everything101
88b42902cb96e87fd44a3be60624ec919326e369
[ "Apache-2.0" ]
null
null
null
Algorithm/LeetCode/523_continuous_subarray_sum.py
hqzhang83/Everything101
88b42902cb96e87fd44a3be60624ec919326e369
[ "Apache-2.0" ]
null
null
null
Algorithm/LeetCode/523_continuous_subarray_sum.py
hqzhang83/Everything101
88b42902cb96e87fd44a3be60624ec919326e369
[ "Apache-2.0" ]
null
null
null
""" # Problem Statement Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to a multiple of k, that is, sums up to n*k where n is also an integer. ## Constraints: The length of the array won't exceed 10,000. You...
29.990291
92
0.609259
""" # Problem Statement Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to a multiple of k, that is, sums up to n*k where n is also an integer. ## Constraints: The length of the array won't exceed 10,000. You...
0
675
0
10
0
274
0
67
251
fef0ff6e79b4384c67f140e01d979e020980a194
5,144
py
Python
emanuel/migrations/0001_initial.py
Alexandre1313/Desafio
03f6ba5228b0654be002cbf4ff22bbf8e2ea8fd1
[ "MIT" ]
null
null
null
emanuel/migrations/0001_initial.py
Alexandre1313/Desafio
03f6ba5228b0654be002cbf4ff22bbf8e2ea8fd1
[ "MIT" ]
null
null
null
emanuel/migrations/0001_initial.py
Alexandre1313/Desafio
03f6ba5228b0654be002cbf4ff22bbf8e2ea8fd1
[ "MIT" ]
null
null
null
# Generated by Django 2.2.17 on 2021-01-29 22:34
49.941748
120
0.566291
# Generated by Django 2.2.17 on 2021-01-29 22:34 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Aluno', fields=[ ...
2
0
0
4,995
0
0
0
30
68
0dda38cc660ef2c065db576d5bbed10844e47a73
1,719
py
Python
accounts/urls.py
danielskiptoo/foreCast
9eb9383846e06b0fa8dfe79be27c69dd26b98e48
[ "MIT" ]
null
null
null
accounts/urls.py
danielskiptoo/foreCast
9eb9383846e06b0fa8dfe79be27c69dd26b98e48
[ "MIT" ]
2
2021-03-19T22:01:45.000Z
2021-06-10T20:02:17.000Z
accounts/urls.py
danielskiptoo/foreCast
9eb9383846e06b0fa8dfe79be27c69dd26b98e48
[ "MIT" ]
null
null
null
from django.contrib.auth import views as auth from django.urls import path import main.views import accounts.views urlpatterns = [ path('',main.views.IndexView, name='index'), path('login/', accounts.views.SignInView.as_view(), name='login'), path('logout/', auth.LogoutView.as_view(template_name='inde...
42.975
105
0.717277
from django.contrib import admin from django.contrib.auth import views as auth from django.urls import path, include import main.views import accounts.views urlpatterns = [ path('',main.views.IndexView, name='index'), path('login/', accounts.views.SignInView.as_view(), name='login'), path('logout/', a...
0
0
0
0
0
0
0
20
22
44277268c05387b6e95f385f2eac97df528a87ac
1,571
py
Python
train.py
roym899/abandoned_bag_detection
5c27dcade60b5f740bd35b5366ae22d8d8b834af
[ "MIT" ]
1
2020-03-31T11:35:50.000Z
2020-03-31T11:35:50.000Z
train.py
Guttappa1238/abandoned_bag_detection
4c341e109451c1db0879ac87671c76dcd5d27414
[ "MIT" ]
2
2020-09-30T06:54:08.000Z
2022-03-26T07:26:07.000Z
train.py
Guttappa1238/abandoned_bag_detection
4c341e109451c1db0879ac87671c76dcd5d27414
[ "MIT" ]
4
2020-09-30T06:59:53.000Z
2022-03-24T12:39:54.000Z
#!/usr/bin/env python3 # coding: utf-8 import os from detectron2.data.datasets import register_coco_instances from detectron2 import model_zoo from detectron2.config import get_cfg from detectron2.engine import DefaultTrainer from torch import cuda register_coco_instances("person_bag_train", {}, "./datasets/per...
38.317073
112
0.756206
#!/usr/bin/env python3 # coding: utf-8 import os from detectron2.data.datasets import register_coco_instances from detectron2 import model_zoo from detectron2.config import get_cfg from detectron2.engine import DefaultTrainer from torch import cuda register_coco_instances("person_bag_train", {}, "./datasets/per...
0
0
0
0
0
0
0
0
0
7f8839cc00edfc811c700fc52298bc3e7a390c02
4,298
py
Python
python/gtsam/examples/ShonanAveragingCLI.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
1,402
2017-03-28T00:18:11.000Z
2022-03-30T10:28:32.000Z
python/gtsam/examples/ShonanAveragingCLI.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
851
2017-11-27T15:09:56.000Z
2022-03-31T22:26:38.000Z
python/gtsam/examples/ShonanAveragingCLI.py
xxiao-1/gtsam
8b1516f43ffdf6b5098fc282b566f2ee1edb50f6
[ "BSD-3-Clause" ]
565
2017-11-30T16:15:59.000Z
2022-03-31T02:53:04.000Z
""" GTSAM Copyright 2010-2018, Georgia Tech Research Corporation, Atlanta, Georgia 30332-0415 All Rights Reserved Authors: Frank Dellaert, et al. (see THANKS for the full author list) See LICENSE for the license information Shonan Rotation Averaging CLI reads a *pose* graph, extracts the rotation constraints, and run...
34.111111
91
0.64402
""" GTSAM Copyright 2010-2018, Georgia Tech Research Corporation, Atlanta, Georgia 30332-0415 All Rights Reserved Authors: Frank Dellaert, et al. (see THANKS for the full author list) See LICENSE for the license information Shonan Rotation Averaging CLI reads a *pose* graph, extracts the rotation constraints, and run...
0
0
0
0
0
118
0
0
54
bbddbf8bc7f5322358ec29bf6f48df24315ccf1c
6,505
py
Python
scripts/fabfile/upfront.py
qinzhewudao/amoeba
dbb6d4248078fd4418cf5048056c7b79aaf4d5f8
[ "MIT" ]
15
2016-07-14T07:41:31.000Z
2021-08-07T03:19:42.000Z
scripts/fabfile/upfront.py
qinzhewudao/amoeba
dbb6d4248078fd4418cf5048056c7b79aaf4d5f8
[ "MIT" ]
18
2015-11-11T23:27:20.000Z
2016-03-11T00:56:38.000Z
scripts/fabfile/upfront.py
mitdbg/mdindex
dbb6d4248078fd4418cf5048056c7b79aaf4d5f8
[ "MIT" ]
2
2017-06-06T10:33:54.000Z
2017-12-23T07:56:40.000Z
counter = 0 """ Used to measure the time taken to simply upload data into HDFS. """ ############# # Running Queries ############
29.976959
133
0.512683
from fabric.api import run,put,cd,parallel,roles,serial,local,runs_once from env_setup import * counter = 0 """ Used to measure the time taken to simply upload data into HDFS. """ @parallel def hdfs_upload_test(): global conf with cd(env.conf['HADOOPBIN']): cmd = './hadoop fs -copyFromLocal' + \ ...
0
5,909
0
0
0
0
0
52
411
3b26eb555841609295156c7e3c5cbb4c23fb68ee
107
py
Python
call_job.py
breecummins/dsgrn_net_gen
bcd77b71ad3e311d2906f0af986559d2c54ffe6d
[ "MIT" ]
1
2020-03-31T18:44:06.000Z
2020-03-31T18:44:06.000Z
call_job.py
breecummins/dsgrn_net_gen
bcd77b71ad3e311d2906f0af986559d2c54ffe6d
[ "MIT" ]
null
null
null
call_job.py
breecummins/dsgrn_net_gen
bcd77b71ad3e311d2906f0af986559d2c54ffe6d
[ "MIT" ]
null
null
null
from dsgrn_net_gen.makejobs import Job import sys paramfile = sys.argv[1] job = Job(paramfile) job.run()
13.375
38
0.757009
from dsgrn_net_gen.makejobs import Job import sys paramfile = sys.argv[1] job = Job(paramfile) job.run()
0
0
0
0
0
0
0
0
0
acc85df035231baea2783c4a8f782608fdf3e42f
13,022
py
Python
astroquery/mast/services.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
577
2015-02-12T18:23:49.000Z
2022-03-22T21:38:58.000Z
astroquery/mast/services.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
1,812
2015-01-01T08:02:20.000Z
2022-03-31T13:03:52.000Z
astroquery/mast/services.py
rickynilsson/astroquery
b7edec0d8e36b11c25baa39ad72e4160bc30d465
[ "BSD-3-Clause" ]
322
2015-02-23T19:31:29.000Z
2022-03-25T18:51:30.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ MAST Microservices API ====================== This module contains various methods for querying MAST microservice APIs. """ import numpy as np from astropy.table import Table, MaskedColumn __all__ = [] def _json_to_table(json_obj): """ T...
36.889518
119
0.593688
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ MAST Microservices API ====================== This module contains various methods for querying MAST microservice APIs. """ import json import time import warnings import numpy as np from astropy.table import Table, Column, MaskedColumn from ..que...
0
9,767
0
0
0
0
0
74
202
12617a6cbffa4e5f50c790ffdd9e897f84e62fb7
1,588
py
Python
C02/common/utils.py
pascal-p/ML_UW_Spec
5e19916b62fd776b1412ba31d06b41049a1ec7d8
[ "BSD-3-Clause" ]
null
null
null
C02/common/utils.py
pascal-p/ML_UW_Spec
5e19916b62fd776b1412ba31d06b41049a1ec7d8
[ "BSD-3-Clause" ]
null
null
null
C02/common/utils.py
pascal-p/ML_UW_Spec
5e19916b62fd776b1412ba31d06b41049a1ec7d8
[ "BSD-3-Clause" ]
null
null
null
## ## use in week 2, 4 and 5 ## def get_rss(model, data, y): """ get prediction, then calc. rss """ preds = model.predict(data) # First get the predictions diff = y - preds # Then compute the residuals/errors rss = (diff * diff).sum() # Then square and add them up return...
42.918919
135
0.695214
import numpy as np ## ## use in week 2, 4 and 5 ## def get_numpy_data(data_sf, features, output): data_sf['constant'] = 1.0 # this is how you add a constant column to an SFrame features = ['constant', *features] # add the column 'constant' to the front of the features list so that we can ...
0
0
0
0
0
1,152
0
-3
114
a425e2f4bad9193b1bbe7e622987527ee440052d
478
py
Python
gazebo_sim/results/binarize.py
CARMinesDouai/MutiRobotExplorationPackages
725f36eaa22adb33be7f5961db1a0f8e50fdadbd
[ "MIT" ]
7
2016-12-10T15:44:00.000Z
2020-08-27T17:40:11.000Z
gazebo_sim/results/binarize.py
CARMinesDouai/MutiRobotExplorationPackages
725f36eaa22adb33be7f5961db1a0f8e50fdadbd
[ "MIT" ]
2
2020-04-14T15:19:53.000Z
2021-01-26T21:26:47.000Z
gazebo_sim/results/binarize.py
CARMinesDouai/MutiRobotExplorationPackages
725f36eaa22adb33be7f5961db1a0f8e50fdadbd
[ "MIT" ]
2
2017-01-29T03:01:06.000Z
2021-12-15T14:59:10.000Z
#! /usr/bin/python import cv2 import sys import os import ntpath f = sys.argv[1] print('Binarizing ',f) name = ntpath.basename(f) dir = os.path.dirname(f) im_gray = cv2.imread(f, cv2.IMREAD_GRAYSCALE) #THRESH_BINARY_INV if(len(sys.argv) > 2): thresh = 130 im_bw = cv2.threshold(im_gray, thresh, 255, cv2.THRESH...
26.555556
91
0.702929
#! /usr/bin/python import cv2 import sys import os import ntpath f = sys.argv[1] print('Binarizing ',f) name = ntpath.basename(f) dir = os.path.dirname(f) im_gray = cv2.imread(f, cv2.IMREAD_GRAYSCALE) #THRESH_BINARY_INV if(len(sys.argv) > 2): thresh = 130 im_bw = cv2.threshold(im_gray, thresh, 255, cv2.THRESH...
0
0
0
0
0
0
0
0
0
0010198ae10439d3cc2215f0f28a9f4dbb98d891
33
py
Python
testproject/localsite/__init__.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
42
2015-02-22T10:00:02.000Z
2021-10-31T08:56:40.000Z
testproject/localsite/__init__.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
8
2015-03-07T14:16:45.000Z
2019-02-26T15:37:01.000Z
testproject/localsite/__init__.py
jinrith27/Realestate
9e8d7f44c0d04f4828adedb9977bd869cf4a8ce7
[ "BSD-2-Clause" ]
23
2015-01-08T19:32:33.000Z
2020-11-16T08:07:02.000Z
__author__ = 'Williams Mendez'
16.5
30
0.727273
__author__ = 'Williams Mendez'
0
0
0
0
0
0
0
0
0
e79e28aa0dd405298d73ed88a330079e8d56fa27
28
py
Python
pyfan/table/__init__.py
FanWangEcon/pyfan
126e91c0c6d930f1c335a07396d1d2145b247cea
[ "MIT" ]
1
2020-08-02T21:43:39.000Z
2020-08-02T21:43:39.000Z
pyfan/table/__init__.py
FanWangEcon/pyfan
126e91c0c6d930f1c335a07396d1d2145b247cea
[ "MIT" ]
null
null
null
pyfan/table/__init__.py
FanWangEcon/pyfan
126e91c0c6d930f1c335a07396d1d2145b247cea
[ "MIT" ]
1
2020-12-02T06:45:20.000Z
2020-12-02T06:45:20.000Z
# Generating Tables (Latex)
14
27
0.75
# Generating Tables (Latex)
0
0
0
0
0
0
0
0
0
08983efcb412e733d9fb2e6416f739f80eaff9a1
1,345
py
Python
genderbyname.py
hzursa/Play-Reader
d3486fd8306fecc92439606736edbda5a4b1e381
[ "MIT" ]
null
null
null
genderbyname.py
hzursa/Play-Reader
d3486fd8306fecc92439606736edbda5a4b1e381
[ "MIT" ]
null
null
null
genderbyname.py
hzursa/Play-Reader
d3486fd8306fecc92439606736edbda5a4b1e381
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np from sklearn.feature_extraction import DictVectorizer from sklearn.model_selection import train_test_split from sklearn.naive_bayes import MultinomialNB features = np.vectorize(features) baby= pd.read_csv("data/name.csv") baby.columns=['name','sex'] baby=baby.drop_duplicates() bab...
30.568182
83
0.703346
import pandas as pd import numpy as np from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction import DictVectorizer from sklearn.model_selection import train_test_split from sklearn.tree import DecisionTreeClassifier from sklearn.naive_bayes import MultinomialNB def features(name): ...
0
0
0
0
0
456
0
64
88
298fab930d77151a7039b3f22808888f3f54a212
1,676
py
Python
afs_integration/conf.py
fadilsiddique/afs_integration
6782844e415755ea1b9bac36d3fb47f6261ee732
[ "MIT" ]
null
null
null
afs_integration/conf.py
fadilsiddique/afs_integration
6782844e415755ea1b9bac36d3fb47f6261ee732
[ "MIT" ]
null
null
null
afs_integration/conf.py
fadilsiddique/afs_integration
6782844e415755ea1b9bac36d3fb47f6261ee732
[ "MIT" ]
null
null
null
# from http.client import OK # from urllib import request, response # import frappe # import requests # import json # from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice # import os # @frappe.whitelist(allow_guest=True) # def webhook(*args,**kwargs): # from dotenv import load_dotenv # ...
32.230769
95
0.653341
# from http.client import OK # from urllib import request, response # import frappe # import requests # import json # from erpnext.selling.doctype.sales_order.sales_order import make_sales_invoice # import os # @frappe.whitelist(allow_guest=True) # def webhook(*args,**kwargs): # from dotenv import load_dotenv # ...
0
0
0
0
0
0
0
0
0
002729bdb7f190b75a5af02c0c445d90a3213921
1,635
py
Python
tests/calculations/test_pw2gw.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
tests/calculations/test_pw2gw.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
tests/calculations/test_pw2gw.py
lbotsch/aiida-quantumespresso
fe75c80cecb61113641366961ced8ed5a03cf896
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Tests for the `Pw2gwCalculation` class.""" from aiida import orm from aiida.common import datastructures from aiida_quantumespresso.utils.resources import get_default_options def test_pw_default( aiida_profile, fixture_localhost, fixture_sandbox, fixture_code, generate_calc_job, genera...
29.727273
117
0.64526
# -*- coding: utf-8 -*- """Tests for the `Pw2gwCalculation` class.""" from aiida import orm from aiida.common import datastructures from aiida_quantumespresso.utils.resources import get_default_options def test_pw_default( aiida_profile, fixture_localhost, fixture_sandbox, fixture_code, generate_calc_job, genera...
0
0
0
0
0
0
0
0
0
1838831d109c70ffd7a9492db2812ab63b9054a8
14,892
py
Python
deeppavlov/models/morpho_tagger/network.py
cclauss/DeepPavlov
8726173c92994b3f789790b5879052d2f7953f47
[ "Apache-2.0" ]
3
2020-04-16T04:25:10.000Z
2021-05-07T23:04:43.000Z
deeppavlov/models/morpho_tagger/network.py
sachinsingh3107/Deeppavlov_Chatbot
f10b9485c118cdec69e73c89833a1a5a164404de
[ "Apache-2.0" ]
12
2020-01-28T22:14:04.000Z
2022-02-10T00:10:17.000Z
deeppavlov/models/morpho_tagger/network.py
sachinsingh3107/Deeppavlov_Chatbot
f10b9485c118cdec69e73c89833a1a5a164404de
[ "Apache-2.0" ]
1
2022-02-08T14:41:28.000Z
2022-02-08T14:41:28.000Z
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
44.990937
110
0.631144
# Copyright 2017 Neural Networks and Deep Learning lab, MIPT # # 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 applicab...
0
558
0
13,211
0
0
0
168
268
89b08ec22d098c7b9208c33efd73a85e9e2c1ada
520
py
Python
setup.py
ybalcanci/turkce-sozde-insan-ismi-uretici
55350e1bcd41c946a455a37d87b6024dd94869d8
[ "Apache-2.0" ]
2
2020-02-05T00:28:08.000Z
2022-03-28T10:11:36.000Z
setup.py
ybalcanci/turkce-sozde-insan-ismi-uretici
55350e1bcd41c946a455a37d87b6024dd94869d8
[ "Apache-2.0" ]
null
null
null
setup.py
ybalcanci/turkce-sozde-insan-ismi-uretici
55350e1bcd41c946a455a37d87b6024dd94869d8
[ "Apache-2.0" ]
null
null
null
from distutils.core import setup setup( name="turkce_isimler", packages=["turkce_isimler"], version="2.0", license="MIT", description="Bu paket ile rastgele Trke kadn ve erkek isimleri retebilirsiniz.", author="Yasin Balcanc, Emre Sln", author_email="ybalcanci@gmail.com", url="https://gi...
34.666667
88
0.701923
from distutils.core import setup setup( name="turkce_isimler", packages=["turkce_isimler"], version="2.0", license="MIT", description="Bu paket ile rastgele Türkçe kadın ve erkek isimleri üretebilirsiniz.", author="Yasin Balcancı, Emre Sülün", author_email="ybalcanci@gmail.com", url="htt...
18
0
0
0
0
0
0
0
0
c3950294e0bebe8f896179e62a4f40d03dc005f4
117
py
Python
selia/__init__.py
IslasGECI/selia
9863c32cd45db13053a1d2add67f5bdc1871b791
[ "BSD-4-Clause" ]
null
null
null
selia/__init__.py
IslasGECI/selia
9863c32cd45db13053a1d2add67f5bdc1871b791
[ "BSD-4-Clause" ]
13
2020-01-07T21:53:50.000Z
2022-01-13T01:53:50.000Z
selia/__init__.py
IslasGECI/selia
9863c32cd45db13053a1d2add67f5bdc1871b791
[ "BSD-4-Clause" ]
1
2021-05-06T19:38:09.000Z
2021-05-06T19:38:09.000Z
import os APP_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) default_app_config = 'selia.apps.SeliaConfig'
19.5
58
0.794872
import os APP_DIRECTORY = os.path.dirname(os.path.abspath(__file__)) default_app_config = 'selia.apps.SeliaConfig'
0
0
0
0
0
0
0
0
0
111203c73c5a5c350b31463d934dd5207d4cb99d
486
py
Python
BioDesigner/urls.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
null
null
null
BioDesigner/urls.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
3
2015-09-21T21:50:45.000Z
2015-09-22T15:42:28.000Z
BioDesigner/urls.py
igemsoftware/HFUT-China_2015
5db86858963d29188ec1a8fdedaf7a98f4528cf4
[ "Apache-2.0" ]
2
2020-03-28T01:33:51.000Z
2021-07-18T13:56:27.000Z
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'tagging.views.home', name='home'), # url(r'^blog/', include('blog.urls')), # url(r'^$', include('accounts.urls')), url(r'^accounts/', ...
28.588235
52
0.617284
from django.conf.urls import patterns, include, url from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # url(r'^$', 'tagging.views.home', name='home'), # url(r'^blog/', include('blog.urls')), # url(r'^$', include('accounts.urls')), url(r'^accounts/', ...
0
0
0
0
0
0
0
0
0
b733b13baa805545757f600a7765bab9bbe074f8
2,857
py
Python
Afvaldienst/test_mijnafvalwijzer.py
xirixiz/python-afvalwijzer-afvalstoffendienst
ef76b07033848a6f7092e941c6c4a3ec214f2842
[ "MIT" ]
1
2019-10-28T12:26:14.000Z
2019-10-28T12:26:14.000Z
Afvaldienst/test_mijnafvalwijzer.py
xirixiz/afvaldienst
ef76b07033848a6f7092e941c6c4a3ec214f2842
[ "MIT" ]
3
2020-09-11T08:38:50.000Z
2020-09-23T07:08:44.000Z
Afvaldienst/test_mijnafvalwijzer.py
xirixiz/python-afvalwijzer-afvalstoffendienst
ef76b07033848a6f7092e941c6c4a3ec214f2842
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from Afvaldienst import Afvaldienst #trash = Afvaldienst('mijnafvalwijzer', '', '5146EG', '2', '', 'false', 'Geen') #trash = Afvaldienst('mijnafvalwijzer', '6851GJ', '2', '', 'false') #trash = Afvaldienst('mijnafvalwijzer', '3911CX', '178', '', 'false') #trash = Afvaldienst('mijnafvalwijzer', '...
98.517241
2,067
0.624081
#!/usr/bin/env python3 from Afvaldienst import Afvaldienst #trash = Afvaldienst('mijnafvalwijzer', '', '5146EG', '2', '', 'false', 'Geen') #trash = Afvaldienst('mijnafvalwijzer', '6851GJ', '2', '', 'false') #trash = Afvaldienst('mijnafvalwijzer', '3911CX', '178', '', 'false') #trash = Afvaldienst('mijnafvalwijzer', '...
0
0
0
0
0
0
0
0
0
76f5ce295fe7a707257b1019ddc2e3dc95744279
1,827
py
Python
main.py
pattoM/InfluxDB-Demo
4f91908aa23bcd8c752f9775bb425588208cc41b
[ "MIT" ]
1
2022-03-17T09:38:14.000Z
2022-03-17T09:38:14.000Z
main.py
pattoM/InfluxDB-Demo
4f91908aa23bcd8c752f9775bb425588208cc41b
[ "MIT" ]
null
null
null
main.py
pattoM/InfluxDB-Demo
4f91908aa23bcd8c752f9775bb425588208cc41b
[ "MIT" ]
null
null
null
from flask import Flask from datetime import datetime import rfc3339 from apscheduler.schedulers.background import BackgroundScheduler from flask_cors import CORS import random from influxdb import InfluxDBClient #app init for flask app = Flask(__name__) app.config['SECRET_KEY'] = 'secrejslfwfsfsnjuettoeepwlslsldsmc,...
27.268657
156
0.662835
from flask import Flask,request, abort,jsonify from datetime import datetime import rfc3339 from apscheduler.schedulers.background import BackgroundScheduler from flask_cors import CORS, cross_origin import random from influxdb import InfluxDBClient #app init for flask app = Flask(__name__) app.config['SECRET_KEY'] =...
0
347
0
0
0
0
0
37
22
9ca1079cfe865e5f83d56039a0e88614d08303c2
339
py
Python
datakeeper/main.py
thegreathippo/datakeeper
f3d47f5e5c6131ca3321eb5791de3e38e51a8456
[ "MIT" ]
null
null
null
datakeeper/main.py
thegreathippo/datakeeper
f3d47f5e5c6131ca3321eb5791de3e38e51a8456
[ "MIT" ]
null
null
null
datakeeper/main.py
thegreathippo/datakeeper
f3d47f5e5c6131ca3321eb5791de3e38e51a8456
[ "MIT" ]
null
null
null
from utils import load_yaml_file inputs = {"Number": Number, "Flag": Flag} data = load_yaml_file('data.yaml') #print(data) for key in data: print(data[key]) if data[key] in inputs: data[key] = inputs[key] print(data)
11.3
41
0.648968
from utils import load_yaml_file class UserInput: pass class Number(UserInput): pass class Flag(UserInput): pass inputs = {"Number": Number, "Flag": Flag} data = load_yaml_file('data.yaml') #print(data) for key in data: print(data[key]) if data[key] in inputs: data[key] = input...
0
0
0
26
0
0
0
0
69
c1ff7fb5faccb327075ff47015cc6866b13052fb
478
py
Python
autoprocess/auto_inputs.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
autoprocess/auto_inputs.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
autoprocess/auto_inputs.py
michel4j/auto-process
9c011cef3cdc2fc55df31f9cac88c3e1074aa366
[ "BSD-3-Clause" ]
null
null
null
from autoprocess.utils import log logger = log.get_module_logger('auto.process')
23.9
105
0.713389
import sys from autoprocess.engine.process import DataSet from autoprocess.utils import log, xdsio logger = log.get_module_logger('auto.process') def main(args): dataset = DataSet(filename=args.image) logger.info('Creating XDS.INP ...') xdsio.write_xds_input('ALL !XYCORR INIT COLSPOT IDXREF DEFPIX INTEGR...
0
0
0
0
0
283
0
21
90
bd5d6518223769187c7ccb7e8f29f1fc217a0fca
670
py
Python
edfi_performance/api/client/program.py
Ed-Fi-Exchange-OSS/Suite-3-Performance-Testing
a15efafd5b209b6a82a84c7ee6bce215470dfd21
[ "Apache-2.0" ]
null
null
null
edfi_performance/api/client/program.py
Ed-Fi-Exchange-OSS/Suite-3-Performance-Testing
a15efafd5b209b6a82a84c7ee6bce215470dfd21
[ "Apache-2.0" ]
10
2021-03-20T05:02:17.000Z
2022-03-30T17:19:35.000Z
edfi_performance/api/client/program.py
Ed-Fi-Exchange-OSS/Ed-Fi-X-ODS-Performance
05678a2c8c314d69a5e6b9ed3040800835b91582
[ "Apache-2.0" ]
1
2022-03-25T09:09:32.000Z
2022-03-25T09:09:32.000Z
# SPDX-License-Identifier: Apache-2.0 # Licensed to the Ed-Fi Alliance under one or more agreements. # The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. # See the LICENSE and NOTICES files in the project root for more information.
33.5
94
0.741791
# SPDX-License-Identifier: Apache-2.0 # Licensed to the Ed-Fi Alliance under one or more agreements. # The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. # See the LICENSE and NOTICES files in the project root for more information. from edfi_performance.api.client import EdFiAPIClient...
3
232
0
93
0
0
0
32
46
be0b863b6210332c5f694178c6c5e1a344f02c2d
11,155
py
Python
qcodes/instrument/group_parameter.py
zhinst/Qcodes
d95798bd08d57bb8cddd460fdb4a5ff25f19215c
[ "MIT" ]
null
null
null
qcodes/instrument/group_parameter.py
zhinst/Qcodes
d95798bd08d57bb8cddd460fdb4a5ff25f19215c
[ "MIT" ]
null
null
null
qcodes/instrument/group_parameter.py
zhinst/Qcodes
d95798bd08d57bb8cddd460fdb4a5ff25f19215c
[ "MIT" ]
null
null
null
""" This module implements a :class:`.Group` intended to hold multiple parameters that are to be gotten and set by the same command. The parameters should be of type :class:`GroupParameter` """
43.917323
83
0.593994
""" This module implements a :class:`.Group` intended to hold multiple parameters that are to be gotten and set by the same command. The parameters should be of type :class:`GroupParameter` """ from collections import OrderedDict from typing import List, Union, Callable, Dict, Any, Optional from qcodes.instrument.pa...
0
0
0
10,714
0
0
0
108
136
7b64a1d74f4562bcf1b39ef8fa3408b2bf655855
832
py
Python
morsecode_core.py
hemendrarajawat/the-morse-code
4b98461a24ce32823c258e00d30d5d7f4ec526b4
[ "MIT" ]
null
null
null
morsecode_core.py
hemendrarajawat/the-morse-code
4b98461a24ce32823c258e00d30d5d7f4ec526b4
[ "MIT" ]
3
2020-08-09T16:01:13.000Z
2020-08-13T20:56:32.000Z
morsecode_core.py
hemendrarajawat/the-morse-code
4b98461a24ce32823c258e00d30d5d7f4ec526b4
[ "MIT" ]
null
null
null
# This function takes the text message and returns the converted morse code. # This function takes the morse code cipher and returns the text message.
25.212121
103
0.629808
from morsecode_dict import MORSE_CODE_DICT # This function takes the text message and returns the converted morse code. def encrypt(message): if message == None: return None cipher = '' for letter in message: if letter in MORSE_CODE_DICT: cipher += MORSE_CODE_DICT[letter] + ' ...
0
0
0
0
0
591
0
21
66
d2b75dc0c2b262d3161091c616545ecdc6f5e590
6,611
py
Python
bin/analysis/cpa/base.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
6
2015-09-19T18:22:33.000Z
2020-11-29T15:21:17.000Z
bin/analysis/cpa/base.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2015-08-04T08:03:46.000Z
2015-08-04T08:03:46.000Z
bin/analysis/cpa/base.py
ncbray/pystream
70bba5646d6512adb6803564c22268d3424c66d8
[ "Apache-2.0" ]
1
2019-12-09T08:27:09.000Z
2019-12-09T08:27:09.000Z
# Copyright 2011 Nicholas Bray # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
32.092233
95
0.736651
# Copyright 2011 Nicholas Bray # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
0
0
0
4,551
0
1,056
0
71
159
b9bacc2481c9974fbeaa405140db367d9099a2bd
901
py
Python
pyckaxe/lib/types.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
3
2018-09-23T05:16:44.000Z
2021-12-23T03:06:07.000Z
pyckaxe/lib/types.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
5
2018-07-11T02:31:56.000Z
2018-07-11T03:15:05.000Z
pyckaxe/lib/types.py
Arcensoth/pyckaxe
09ed0828d6660a233b827721454293579329991b
[ "MIT" ]
null
null
null
from typing import Dict, List, Tuple, Union __all__ = ("JsonValue",) # +-------------------+---------------+ # | Python | JSON | # +===================+===============+ # | dict | object | # +-------------------+---------------+ # | list, tuple | array | # +------...
28.15625
43
0.231964
from typing import Dict, List, Tuple, Union __all__ = ("JsonValue",) # +-------------------+---------------+ # | Python | JSON | # +===================+===============+ # | dict | object | # +-------------------+---------------+ # | list, tuple | array | # +------...
0
0
0
0
0
0
0
0
0
deadabfe30899a7eca3fb028f0379ad17a46d16c
253
py
Python
api/urls.py
TurboKach/cybercrime_ip_api
7d8d1b1f97edf1bf1b2540011bb53843c385d677
[ "MIT" ]
null
null
null
api/urls.py
TurboKach/cybercrime_ip_api
7d8d1b1f97edf1bf1b2540011bb53843c385d677
[ "MIT" ]
5
2021-03-30T13:59:06.000Z
2021-09-22T19:22:54.000Z
api/urls.py
TurboKach/cybercrime_ip_api
7d8d1b1f97edf1bf1b2540011bb53843c385d677
[ "MIT" ]
null
null
null
from django.urls import path from .views import get_ips, get_lists, update_lists urlpatterns = { path('ip', get_ips, name="get_ips"), path('list', get_lists, name="get_lists"), path('management/update', update_lists, name='update_lists') }
28.111111
64
0.711462
from django.urls import path from .views import get_ips, get_lists, update_lists urlpatterns = { path('ip', get_ips, name="get_ips"), path('list', get_lists, name="get_lists"), path('management/update', update_lists, name='update_lists') }
0
0
0
0
0
0
0
0
0
83ca112c323409597b83767b3c967d4eb1c00d4b
4,445
py
Python
python/setup.py
justinjaywang/triton
1c48bd623e2eac026d1f08fc4863bfd514d42922
[ "MIT" ]
null
null
null
python/setup.py
justinjaywang/triton
1c48bd623e2eac026d1f08fc4863bfd514d42922
[ "MIT" ]
null
null
null
python/setup.py
justinjaywang/triton
1c48bd623e2eac026d1f08fc4863bfd514d42922
[ "MIT" ]
null
null
null
import distutils from setuptools import setup setup( name="triton", version="1.0.0", author="Philippe Tillet", author_email="phil@openai.com", description="A language and compiler for custom Deep Learning operations", long_description="", packages=["triton", "triton/_C", "triton/tools", "...
37.352941
122
0.631721
import os import re import sys import sysconfig import platform import subprocess import distutils import glob import tempfile import shutil from distutils.version import LooseVersion from setuptools import setup, Extension, find_packages from setuptools.command.build_ext import build_ext from setuptools.command.test i...
0
0
0
3,040
0
0
0
30
376
03a3ad7e49d7a739bd0e08684f1185acc132f1ae
113
py
Python
8kyu/Remove String Spaces.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
8kyu/Remove String Spaces.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
8kyu/Remove String Spaces.py
walkgo/codewars_tasks
4c0ab6f0e1d2181318fc15b12dd55ef565ecd223
[ "MIT" ]
null
null
null
# Best Practices
14.125
29
0.575221
def no_space(x): return x.replace(' ', '') # Best Practices def no_space(x): return x.replace(' ', '')
0
0
0
0
0
50
0
0
44
ddabfc5eda43f1cb96b59efd7db5ff2afa68421c
3,872
py
Python
makeRT.py
IIP17-TeamRT/GA_MakeRT
e79eff1f6010c72ed508e2e0afe2ecee11e965c0
[ "MIT" ]
null
null
null
makeRT.py
IIP17-TeamRT/GA_MakeRT
e79eff1f6010c72ed508e2e0afe2ecee11e965c0
[ "MIT" ]
null
null
null
makeRT.py
IIP17-TeamRT/GA_MakeRT
e79eff1f6010c72ed508e2e0afe2ecee11e965c0
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import random from deap import base from deap import creator from deap import tools if __name__ == "__main__": creator.create("FitnessMax", base.Fitness, weights=(1.0,)) creator.create("Individual", list, fitness=creator.FitnessMax) img_ans = plt.imread('TAsample2.png'...
30.976
78
0.620868
import numpy as np import matplotlib.pyplot as plt import random from deap import base from deap import creator from deap import tools def evalOneMax(individual): arrayind = np.array(individual) hitpoint = 0 for i in range(40*30): hitpoint = hitpoint+(1-abs(img_ans[i]-arrayind[i])) return hit...
0
0
0
0
0
2,622
0
-3
91
7d3276f5bbf1ab18d0235933204676af90175dcf
648
py
Python
main.py
RafalSladek/who_parser
5e541f120d1484f4a3fe01c47b41e4f48aa2278c
[ "MIT" ]
null
null
null
main.py
RafalSladek/who_parser
5e541f120d1484f4a3fe01c47b41e4f48aa2278c
[ "MIT" ]
null
null
null
main.py
RafalSladek/who_parser
5e541f120d1484f4a3fe01c47b41e4f48aa2278c
[ "MIT" ]
null
null
null
from datetime import datetime from callWHODataAPI import WHODataAPI from s3Upload import S3Uploader s3_uploader = S3Uploader(WHODataAPI()) all_buckets = s3_uploader.get_all_buckets() print_list(all_buckets) response = s3_uploader.apiClient.get_who_dimensions() myBucket = s3_uploader.get_target_bu...
23.142857
83
0.759259
from datetime import datetime from callWHODataAPI import WHODataAPI from s3Upload import S3Uploader def print_list(collection): for item in collection: print(item) s3_uploader = S3Uploader(WHODataAPI()) all_buckets = s3_uploader.get_all_buckets() print_list(all_buckets) response = s...
0
0
0
0
0
56
0
0
25
d7772566ba9c3682c2cbc314871198ab164fb983
641
py
Python
apppics/migrations/0004_auto_20210603_1723.py
JKimani77/pics
29d9f4459a80f42eb058a4956e703e7c460b9e7e
[ "MIT" ]
null
null
null
apppics/migrations/0004_auto_20210603_1723.py
JKimani77/pics
29d9f4459a80f42eb058a4956e703e7c460b9e7e
[ "MIT" ]
null
null
null
apppics/migrations/0004_auto_20210603_1723.py
JKimani77/pics
29d9f4459a80f42eb058a4956e703e7c460b9e7e
[ "MIT" ]
null
null
null
# Generated by Django 3.2.3 on 2021-06-03 14:23
22.892857
47
0.550702
# Generated by Django 3.2.3 on 2021-06-03 14:23 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('apppics', '0003_auto_20210601_2304'), ] operations = [ migrations.AlterModelOptions( name='location', options={'ordering': [...
0
0
0
535
0
0
0
11
46
0ae6b967fe040182a4fa53e342d6e71dca8d8754
1,663
py
Python
data/data_conv/wikipedia_rand_split.py
huonw/nmslib
2e424ef7c6eff10ecaf47392fd99f93f645e752f
[ "Apache-2.0" ]
2,031
2018-03-29T00:59:55.000Z
2022-03-31T23:54:33.000Z
data/data_conv/wikipedia_rand_split.py
huonw/nmslib
2e424ef7c6eff10ecaf47392fd99f93f645e752f
[ "Apache-2.0" ]
262
2018-03-29T17:44:53.000Z
2022-03-31T02:56:40.000Z
data/data_conv/wikipedia_rand_split.py
huonw/nmslib
2e424ef7c6eff10ecaf47392fd99f93f645e752f
[ "Apache-2.0" ]
281
2018-03-29T13:12:50.000Z
2022-03-28T15:18:31.000Z
#!/usr/bin/env python import logging, bz2, random from gensim import interfaces, matutils from gensim.corpora import IndexedCorpus numDoc1 = 0 numRow1 = 0 numCol1 = 0 numDoc2 = 0 numRow2 = 0 numCol2 = 0 split = [] inpObj = matutils.MmReader(bz2.BZ2File('sparse_wiki_tfidf.mm.bz2')) prob = 0.5 print "The first pass...
23.097222
68
0.683103
#!/usr/bin/env python import logging, bz2, random from gensim import interfaces, matutils from gensim.corpora import IndexedCorpus numDoc1 = 0 numRow1 = 0 numCol1 = 0 numDoc2 = 0 numRow2 = 0 numCol2 = 0 split = [] inpObj = matutils.MmReader(bz2.BZ2File('sparse_wiki_tfidf.mm.bz2')) prob = 0.5 print "The first pass...
0
0
0
0
0
0
0
0
0
f859303f8b9c95b06e5df87dfe79360a842e7e97
2,299
py
Python
examples/trajectory_output/run.py
JonnyWideFoot/pd.arcus
a6197a5a2a18c0e3f752e15aa982d1e44d052730
[ "BSD-4-Clause-UC" ]
null
null
null
examples/trajectory_output/run.py
JonnyWideFoot/pd.arcus
a6197a5a2a18c0e3f752e15aa982d1e44d052730
[ "BSD-4-Clause-UC" ]
null
null
null
examples/trajectory_output/run.py
JonnyWideFoot/pd.arcus
a6197a5a2a18c0e3f752e15aa982d1e44d052730
[ "BSD-4-Clause-UC" ]
null
null
null
## we need the gromacs module for the gromacs file formats cseed(3) info() timer() ## create a water box ffps = FFParamSet("tip3.ff") sim = System(ffps) ## create a new molecule (water, TIP3) mol = NewMolecule(ffps,"TIP3") boundary = PeriodicBox(18.1500) ## and fill the box with it sim.solvate_N(mol, boundary ,200...
23.701031
74
0.723793
from pd import * ## we need the gromacs module for the gromacs file formats from gromacs import * cseed(3) info() timer() ## create a water box ffps = FFParamSet("tip3.ff") sim = System(ffps) ## create a new molecule (water, TIP3) mol = NewMolecule(ffps,"TIP3") boundary = PeriodicBox(18.1500) ## and fill the box w...
0
0
0
0
0
0
0
-5
44
444f094a2b70aa1dd72ce753790849fd87fea685
6,239
py
Python
RoboticsProject/controllers/cameraTest2/cameraTest2.py
MackQian/Robotics1Project
ca611bbd71dcca397a46941d4d40d720c8faa58c
[ "MIT" ]
null
null
null
RoboticsProject/controllers/cameraTest2/cameraTest2.py
MackQian/Robotics1Project
ca611bbd71dcca397a46941d4d40d720c8faa58c
[ "MIT" ]
null
null
null
RoboticsProject/controllers/cameraTest2/cameraTest2.py
MackQian/Robotics1Project
ca611bbd71dcca397a46941d4d40d720c8faa58c
[ "MIT" ]
null
null
null
"""cameraTest2 controller.""" # You may need to import some classes of the controller module. Ex: # from controller import Robot, Motor, DistanceSensor from controller import Robot import cv2 from controller import Keyboard KEY_F=70 # create the Robot instance. robot = Robot() # get the time step of the current worl...
30.286408
96
0.645777
"""cameraTest2 controller.""" # You may need to import some classes of the controller module. Ex: # from controller import Robot, Motor, DistanceSensor from controller import Robot import cv2 import numpy as np from controller import Keyboard from movement_commands import * from gesture_commands import * import math...
0
0
0
0
0
833
0
6
111
500014d7e8f7b198a3b8333c5ffae008404be043
2,168
py
Python
code/processing/HPLC/Enzymes_HPLC_processing.py
daniosro/DMSP
c5ad5b200c2eece611ab6b326a9a93cc3fd421d1
[ "MIT" ]
null
null
null
code/processing/HPLC/Enzymes_HPLC_processing.py
daniosro/DMSP
c5ad5b200c2eece611ab6b326a9a93cc3fd421d1
[ "MIT" ]
null
null
null
code/processing/HPLC/Enzymes_HPLC_processing.py
daniosro/DMSP
c5ad5b200c2eece611ab6b326a9a93cc3fd421d1
[ "MIT" ]
null
null
null
# %% import numpy as np import pandas as pd import math import matplotlib.animation as animation from scipy.integrate import odeint pd.options.mode.chained_assignment = None import git # Find home directory for repo repo = git.Repo("./", search_parent_directories=True) homedir = repo.working_dir # %% # Load data df_...
31.42029
84
0.744004
# %% import numpy as np import pandas as pd import scipy as sp import math import matplotlib.animation as animation from scipy.integrate import odeint from numpy import arange from scipy.integrate import odeint import scipy.optimize from scipy.optimize import leastsq from math import exp from collections import Ordere...
0
0
0
0
0
0
0
67
177
28fef8e1647ba7b1759f958dca122a2630d37bfe
1,860
py
Python
Iris/iris_simples.py
vitorhvmelo/Deep-Learning
0d1f38b34deef65562451f68ad1742759edfd4a7
[ "MIT" ]
null
null
null
Iris/iris_simples.py
vitorhvmelo/Deep-Learning
0d1f38b34deef65562451f68ad1742759edfd4a7
[ "MIT" ]
null
null
null
Iris/iris_simples.py
vitorhvmelo/Deep-Learning
0d1f38b34deef65562451f68ad1742759edfd4a7
[ "MIT" ]
null
null
null
import pandas as pd from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers import Dense from sklearn.preprocessing import LabelEncoder #IMPORTA A BIBLIOTECA DO ENCODER from keras.utils import np_utils #IMPORTA A BIBLIOTECA PARA COMPLEMENTAR O ENCODER import numpy as n...
48.947368
116
0.715591
import pandas as pd from sklearn.model_selection import train_test_split from keras.models import Sequential from keras.layers import Dense from sklearn.preprocessing import LabelEncoder #IMPORTA A BIBLIOTECA DO ENCODER from keras.utils import np_utils #IMPORTA A BIBLIOTECA PARA COMPLEMENTAR O ENCODER import numpy as n...
0
0
0
0
0
0
0
0
0
0953fd81198b0213a440c648ed5d02d413cae5ef
1,920
py
Python
grey1/getData.py
alienemoji/form-templates
ac76d2f38a925f14254f560c652cc781f844e3e9
[ "MIT" ]
null
null
null
grey1/getData.py
alienemoji/form-templates
ac76d2f38a925f14254f560c652cc781f844e3e9
[ "MIT" ]
null
null
null
grey1/getData.py
alienemoji/form-templates
ac76d2f38a925f14254f560c652cc781f844e3e9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import cgi import requests import json # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields customer_name = str(form.getvalue('customer_name')) customer_email = str(form.getvalue('customer_email')) customer_message = str(form.getvalue('message')) # variables for mail...
30.47619
121
0.671354
#!/usr/bin/env python3 import cgi, cgitb import smtplib import requests import json # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields customer_name = str(form.getvalue('customer_name')) customer_email = str(form.getvalue('customer_email')) customer_message = str(form.getvalue('message')...
0
0
0
0
0
530
0
0
45
54cd5fa45323d5d7b3dc31179bdaaaa88d2e6cb8
1,702
py
Python
migrations/versions/c11ac992c04a_add_linelist_deaths_schema.py
chong601/moh-covid19-api
b762755e9ff5bb11b99102d305753dcd6122afbe
[ "MIT" ]
1
2021-09-15T13:49:05.000Z
2021-09-15T13:49:05.000Z
migrations/versions/c11ac992c04a_add_linelist_deaths_schema.py
chong601/moh-covid19-api
b762755e9ff5bb11b99102d305753dcd6122afbe
[ "MIT" ]
2
2021-08-15T07:56:20.000Z
2021-08-17T22:41:44.000Z
migrations/versions/c11ac992c04a_add_linelist_deaths_schema.py
chong601/moh-covid19-api
b762755e9ff5bb11b99102d305753dcd6122afbe
[ "MIT" ]
null
null
null
"""Add linelist_deaths schema Revision ID: c11ac992c04a Revises: ffec75dfdadd Create Date: 2021-09-19 07:54:19.691798 """ # revision identifiers, used by Alembic. revision = 'c11ac992c04a' down_revision = 'ffec75dfdadd' branch_labels = None depends_on = None
38.681818
96
0.684489
"""Add linelist_deaths schema Revision ID: c11ac992c04a Revises: ffec75dfdadd Create Date: 2021-09-19 07:54:19.691798 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'c11ac992c04a' down_revision = 'ffec75dfdadd' branch_labels = None depends_on = None def upgr...
0
0
0
0
0
1,344
0
3
90
b347a4d5cd80c12032d6b06650ca6cec8f910c91
120
py
Python
Lista1/ex004.py
Palhares17/Python_Exercicios_UFV
8370e02a52b024a4170d11b1ec95c1c97851f09a
[ "MIT" ]
null
null
null
Lista1/ex004.py
Palhares17/Python_Exercicios_UFV
8370e02a52b024a4170d11b1ec95c1c97851f09a
[ "MIT" ]
null
null
null
Lista1/ex004.py
Palhares17/Python_Exercicios_UFV
8370e02a52b024a4170d11b1ec95c1c97851f09a
[ "MIT" ]
null
null
null
cel = float(input('C = ')) f = cel * 18 fh = f + 32 print(f'A temperatura convertida de {cel} C para F de {fh} ')
24
65
0.575
cel = float(input('°C = ')) f = cel * 18 fh = f + 32 print(f'A temperatura convertida de {cel} °C para °F é de {fh} ')
8
0
0
0
0
0
0
0
0
3eeffb950045f92594d99ff564882c8460b9b91b
8,794
py
Python
fabulous/text.py
techdragon/fabulous
bc6de0f4414cebb4a13f6604c5a2797862e0439d
[ "MIT" ]
1
2019-06-27T13:05:31.000Z
2019-06-27T13:05:31.000Z
fabulous/text.py
techdragon/fabulous
bc6de0f4414cebb4a13f6604c5a2797862e0439d
[ "MIT" ]
null
null
null
fabulous/text.py
techdragon/fabulous
bc6de0f4414cebb4a13f6604c5a2797862e0439d
[ "MIT" ]
null
null
null
""" fabulous.text ~~~~~~~~~~~~~ I let you print TrueType text to your terminal. The easiest way to get started with me is by running:: jart@compy:~$ python -m fabulous.text --help To make things simple, Fabulous comes with my favorite serif, non-serif, and monospace fonts: - Ind...
34.622047
76
0.598363
""" fabulous.text ~~~~~~~~~~~~~ I let you print TrueType text to your terminal. The easiest way to get started with me is by running:: jart@compy:~$ python -m fabulous.text --help To make things simple, Fabulous comes with my favorite serif, non-serif, and monospace fonts: - Ind...
0
1,231
0
2,912
0
0
0
0
69
fb02e8d13f567ef8220e8e0ad9c102d55b2d4586
4,257
py
Python
dsp_migen/IIR/FIRV2_to_IIR_doesnotworkyet.py
chipmuenk/dsp_nmigen
a2d1109cfd75ec82e738a885dd662bc4eb52ed86
[ "MIT" ]
7
2020-05-07T18:35:00.000Z
2021-09-09T14:06:41.000Z
dsp_migen/IIR/FIRV2_to_IIR_doesnotworkyet.py
chipmuenk/dsp_nmigen
a2d1109cfd75ec82e738a885dd662bc4eb52ed86
[ "MIT" ]
null
null
null
dsp_migen/IIR/FIRV2_to_IIR_doesnotworkyet.py
chipmuenk/dsp_nmigen
a2d1109cfd75ec82e738a885dd662bc4eb52ed86
[ "MIT" ]
null
null
null
from scipy import signal import matplotlib.pyplot as plt from migen.fhdl import verilog import numpy sample = 5000 #Number of Samples Fs = 5000 #Sample Frequency fc = 800 #Cutoff frequ w_c = 2*fc/Fs #Digital Frequ n = 3 #Order of the filter # A synthesizable FIR filter. ...
38.008929
138
0.573878
from functools import reduce from operator import add from math import cos, pi from scipy import signal import matplotlib.pyplot as plt from migen import * from migen.fhdl import verilog import numpy sample = 5000 #Number of Samples Fs = 5000 #Sample Frequency fc = 800 #Cutoff frequ w_c = 2...
8
0
0
1,566
679
0
0
11
134
eafabb771d5e41de7137e3688f28f16761bf3c24
8,317
py
Python
ted_adapter/test_adapter.py
bubblesupreme/infrastructure
b33534f1d7a21c7af81bde171abe149c31e0406d
[ "MIT" ]
null
null
null
ted_adapter/test_adapter.py
bubblesupreme/infrastructure
b33534f1d7a21c7af81bde171abe149c31e0406d
[ "MIT" ]
null
null
null
ted_adapter/test_adapter.py
bubblesupreme/infrastructure
b33534f1d7a21c7af81bde171abe149c31e0406d
[ "MIT" ]
null
null
null
# Copyright (c) 2018 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, d...
36.47807
113
0.649032
# Copyright (c) 2018 Intel Corporation # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, d...
0
0
0
4,256
0
252
0
-6
184
73131a9ee618e5b2c54a7d389f922e646494165f
754
py
Python
textattack/constraints/pre_transformation/__init__.py
srujanjoshi/TextAttack
b86d0f840b6f13b1eb8d0f17b3fceeeca62b08ed
[ "MIT" ]
1,980
2020-04-17T23:43:55.000Z
2022-03-31T19:22:17.000Z
textattack/constraints/pre_transformation/__init__.py
srujanjoshi/TextAttack
b86d0f840b6f13b1eb8d0f17b3fceeeca62b08ed
[ "MIT" ]
350
2020-04-23T22:34:04.000Z
2022-03-29T20:57:22.000Z
textattack/constraints/pre_transformation/__init__.py
srujanjoshi/TextAttack
b86d0f840b6f13b1eb8d0f17b3fceeeca62b08ed
[ "MIT" ]
267
2020-04-30T16:55:36.000Z
2022-03-31T18:59:46.000Z
""".. _pre_transformation: Pre-Transformation: --------------------- Pre-transformation constraints determine if a transformation is valid based on only the original input and the position of the replacement. These constraints are applied before the transformation is even called. For example, these constraints can pr...
53.857143
343
0.834218
""".. _pre_transformation: Pre-Transformation: --------------------- Pre-transformation constraints determine if a transformation is valid based on only the original input and the position of the replacement. These constraints are applied before the transformation is even called. For example, these constraints can pr...
0
0
0
0
0
0
0
203
132
9e0ab3555c07729d27c420dd0734f2e323dae371
502
py
Python
CropImg.py
ichbinkk/Conformer
7faa3051cf5f6aff91f9540d6f9be57674cbcce7
[ "Apache-2.0" ]
null
null
null
CropImg.py
ichbinkk/Conformer
7faa3051cf5f6aff91f9540d6f9be57674cbcce7
[ "Apache-2.0" ]
null
null
null
CropImg.py
ichbinkk/Conformer
7faa3051cf5f6aff91f9540d6f9be57674cbcce7
[ "Apache-2.0" ]
null
null
null
from PIL import Image import os image_file_path = '../dataset/lec' out = '../dataset/lattice_ec' for root, dirs_name, files_name in os.walk(image_file_path): for i in files_name: if i.split('.')[-1] == 'png': file_name = os.path.join(root, i) print(file_name) ...
31.375
83
0.551793
from PIL import Image import os image_file_path = '../dataset/lec' out = '../dataset/lattice_ec' for root, dirs_name, files_name in os.walk(image_file_path): for i in files_name: if i.split('.')[-1] == 'png': file_name = os.path.join(root, i) print(file_name) ...
12
0
0
0
0
0
0
0
0
698de7a7d37055d4b7c705aa878cbfca1040c47e
1,283
py
Python
bulk_whois.py
levcovenant/bulk_stuff
93a1eedf63229244ffbbd4868ba220b427493518
[ "MIT" ]
null
null
null
bulk_whois.py
levcovenant/bulk_stuff
93a1eedf63229244ffbbd4868ba220b427493518
[ "MIT" ]
null
null
null
bulk_whois.py
levcovenant/bulk_stuff
93a1eedf63229244ffbbd4868ba220b427493518
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import pythonwhois import csv import time with open('bulk_whois_results.csv', 'w+', newline="") as outfile: w = csv.writer(outfile) w.writerow(['Domain Name', 'Registrar', 'Expiration Date', 'Nameservers']) # outfile.close() result_list = [] with open('domain_list', 'r') as f: for...
29.159091
80
0.559626
#!/usr/bin/python3 import pythonwhois import csv import time with open('bulk_whois_results.csv', 'w+', newline="") as outfile: w = csv.writer(outfile) w.writerow(['Domain Name', 'Registrar', 'Expiration Date', 'Nameservers']) # outfile.close() result_list = [] with open('domain_list', 'r') as f: for...
0
0
0
0
0
0
0
0
0
af3730efdaf17c667213f31f0a0206220aa3b6c1
2,325
py
Python
src/users/models/microsoftgraphitem_action_set.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphitem_action_set.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
src/users/models/microsoftgraphitem_action_set.py
peombwa/Sample-Graph-Python-Client
3396f531fbe6bb40a740767c4e31aee95a3b932e
[ "MIT" ]
null
null
null
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # --------------------------------------------------------------------------
38.114754
152
0.606452
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- from ...
0
0
0
1,947
0
0
0
17
46
76cc191057b6039eee9b2bba962d42ed49397513
2,741
py
Python
planemo/tools.py
pvanheus/planemo
12c4256325bb1b274dcd40d64b91c1f832cf49b1
[ "CC-BY-3.0" ]
null
null
null
planemo/tools.py
pvanheus/planemo
12c4256325bb1b274dcd40d64b91c1f832cf49b1
[ "CC-BY-3.0" ]
1
2016-09-14T18:09:59.000Z
2016-09-14T18:09:59.000Z
planemo/tools.py
jmchilton/planemo
d352a085fe10cb6b7c1384663b114201da42d97b
[ "CC-BY-3.0" ]
null
null
null
"""Planemo-specific wrappers around galaxy-tool-util tool functionality.""" from __future__ import absolute_import from galaxy.tool_util import loader_directory is_tool_load_error = loader_directory.is_tool_load_error SKIP_XML_MESSAGE = "Skipping XML file - does not appear to be a tool %s." SHED_FILES = ["tool_depend...
29.473118
111
0.699745
"""Planemo-specific wrappers around galaxy-tool-util tool functionality.""" from __future__ import absolute_import import os import sys import traceback from galaxy.tool_util import loader_directory from galaxy.tool_util.fetcher import ToolLocationFetcher from planemo.io import error, info is_tool_load_error = load...
0
0
0
0
899
691
0
20
250
2cf9df5fd4f026fe513cf3c7b67fbde3a12f40fa
2,512
py
Python
Jetbrain/user/views.py
uyo-obong/jetbrain_django
63f267efadb148f1c5afcce3801b3ff173a1dabf
[ "MIT" ]
null
null
null
Jetbrain/user/views.py
uyo-obong/jetbrain_django
63f267efadb148f1c5afcce3801b3ff173a1dabf
[ "MIT" ]
null
null
null
Jetbrain/user/views.py
uyo-obong/jetbrain_django
63f267efadb148f1c5afcce3801b3ff173a1dabf
[ "MIT" ]
null
null
null
from . forms.user_forms import SignUp, UpdateUser, UpdateProfile
31.4
93
0.634952
from django.contrib import messages from django.shortcuts import render, redirect from Jetbrain.blog.models import Post from . forms.user_forms import SignUp, UpdateUser, UpdateProfile from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required @login_require...
0
818
0
0
0
1,294
0
128
203
cad636939b9f995bef017fe5379fdca7fb4ccee7
927
py
Python
piws/views/ldapfeed.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
null
null
null
piws/views/ldapfeed.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
9
2015-05-18T09:04:35.000Z
2017-03-24T10:47:23.000Z
piws/views/ldapfeed.py
neurospin/piws
4ec6f60c6343623a82761c90c74642b4b372ffd1
[ "CECILL-B" ]
17
2015-03-16T08:27:47.000Z
2017-08-04T16:26:29.000Z
########################################################################## # NSAp - Copyright (C) CEA, 2017 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
37.08
76
0.609493
########################################################################## # NSAp - Copyright (C) CEA, 2017 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html # for details. ##########...
0
0
0
0
0
0
0
0
0
6ab2ff75139a278f5c82790cdc8bef2c78451bf5
2,105
py
Python
1.taobao_login/login.py
zhaoxilingcheng/examples-of-crawlers
e8959e321bef621037583cfd990d44150a00216b
[ "MIT" ]
3
2020-06-15T01:55:42.000Z
2020-06-23T05:09:25.000Z
1.taobao_login/login.py
zhaoxilingcheng/examples-of-crawlers
e8959e321bef621037583cfd990d44150a00216b
[ "MIT" ]
null
null
null
1.taobao_login/login.py
zhaoxilingcheng/examples-of-crawlers
e8959e321bef621037583cfd990d44150a00216b
[ "MIT" ]
null
null
null
if __name__ == '__main__': # # binary_location = '../chromedriver' login_and_get_cookie('username', 'password')
35.083333
103
0.71734
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver import ActionChains import time def login_and_get_cookie(username, password): options = webdri...
219
0
0
0
0
1,624
0
120
155
daf8233138ed6a681ff4acf570a7deea8f47b76f
853
py
Python
np/reference/ch9code/logy.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
np/reference/ch9code/logy.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
np/reference/ch9code/logy.py
focusunsink/study_python
322326642db54df8725793d70a95d21ac40b6507
[ "MIT" ]
null
null
null
from matplotlib.finance import quotes_historical_yahoo from matplotlib.dates import DateFormatter from matplotlib.dates import DayLocator from matplotlib.dates import MonthLocator import sys from datetime import date import matplotlib.pyplot as plt import numpy as np today = date.today() start = (today.year - 1, today...
23.694444
54
0.763189
from matplotlib.finance import quotes_historical_yahoo from matplotlib.dates import DateFormatter from matplotlib.dates import DayLocator from matplotlib.dates import MonthLocator import sys from datetime import date import matplotlib.pyplot as plt import numpy as np today = date.today() start = (today.year - 1, today...
0
0
0
0
0
0
0
0
0
e1defe47a41473ce9a54e7d288e8c4efb660b97e
8,994
py
Python
Keras_Impl/Networks/RPN/utils.py
dimartinot/bunch_of_networks
4f9c425e8fb0bca5bf47de9424a744d2fac310e2
[ "MIT" ]
null
null
null
Keras_Impl/Networks/RPN/utils.py
dimartinot/bunch_of_networks
4f9c425e8fb0bca5bf47de9424a744d2fac310e2
[ "MIT" ]
11
2020-01-28T22:43:13.000Z
2022-03-11T23:46:41.000Z
Keras_Impl/Networks/RPN/utils.py
dimartinot/bunch_of_networks
4f9c425e8fb0bca5bf47de9424a744d2fac310e2
[ "MIT" ]
null
null
null
""" /!\ Code not made by me, got from https://github.com/dongjk/faster_rcnn_keras/blob/master/utils.py """ import numpy as np def generate_anchors(base_width=16, base_height=16, ratios=[0.5, 1, 2], scales=np.asarray([3,6,12])): """ Generate anchor (reference) windows by enumeratin...
30.80137
118
0.565266
""" /!\ Code not made by me, got from https://github.com/dongjk/faster_rcnn_keras/blob/master/utils.py """ import sys import numpy as np import keras.backend as K import xml.etree.ElementTree as ET from PIL import Image, ImageDraw def parse_label(xml_file): try: tree = ET.parse(xml_file) except ...
0
0
0
0
0
3,802
0
17
227
a044fdb4f97128fbe19d4ab302f4228b31ff462b
387
py
Python
example2.py
mariolpantunes/optimization
353c90384f2ab2069151d861037f7ad41dbde9f4
[ "MIT" ]
null
null
null
example2.py
mariolpantunes/optimization
353c90384f2ab2069151d861037f7ad41dbde9f4
[ "MIT" ]
1
2022-01-10T14:29:49.000Z
2022-01-10T14:29:49.000Z
example2.py
mariolpantunes/optimization
353c90384f2ab2069151d861037f7ad41dbde9f4
[ "MIT" ]
null
null
null
import logging import numpy as np import optimization.de as de logging.basicConfig(level=logging.INFO, format='%(message)s') logger = logging.getLogger(__name__) # define objective function bounds = np.asarray([(-5.0, 5.0)]) solution = de.differential_evolution(f, bounds, n_iter=1, debug=True) logger.info(f'F({solut...
25.8
69
0.72093
import logging import numpy as np import optimization.de as de logging.basicConfig(level=logging.INFO, format='%(message)s') logger = logging.getLogger(__name__) # define objective function def f(x): return np.power(x, 2)[0] bounds = np.asarray([(-5.0, 5.0)]) solution = de.differential_evolution(f, bounds, n_ite...
0
0
0
0
0
17
0
0
22
4006d7c2ac93c8bc463e38137d9e93d9dd6cedbc
1,312
py
Python
stonesoup/resampler/particle.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
1
2021-04-13T11:47:42.000Z
2021-04-13T11:47:42.000Z
stonesoup/resampler/particle.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
null
null
null
stonesoup/resampler/particle.py
JPompeus/Stone-Soup
030c60aaf5ff92d7bb53f06e350c0bf58c9af037
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
28.521739
73
0.589939
# -*- coding: utf-8 -*- import numpy as np from .base import Resampler from ..types.numeric import Probability from ..types.particle import Particle class SystematicResampler(Resampler): def resample(self, particles): """Resample the particles Parameters ---------- particles : l...
0
0
0
1,138
0
0
0
37
112
735f2178cada59be725d3a137aede5b87046b436
6,731
py
Python
nextfeed/settings/base.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
1
2015-08-09T10:42:04.000Z
2015-08-09T10:42:04.000Z
nextfeed/settings/base.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
null
null
null
nextfeed/settings/base.py
Nurdok/nextfeed
197818310bbf7134badc2ef5ed11ab5ede7fdb35
[ "MIT" ]
null
null
null
# Django settings for nextfeed project. import os import djcelery djcelery.setup_loader() PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) DEBUG = True TEMPLATE_DEBUG = True ADMINS = ( # ('Your Name', 'your_email@example.com'), ("Amir Rachum", "amir@rachum.com"), ) SERVER_EMAIL = 'webmaster@nextfee...
29.651982
88
0.712376
# Django settings for nextfeed project. import os import djcelery djcelery.setup_loader() PROJECT_PATH = os.path.dirname(os.path.abspath(__file__)) DEBUG = True TEMPLATE_DEBUG = True ADMINS = ( # ('Your Name', 'your_email@example.com'), ("Amir Rachum", "amir@rachum.com"), ) SERVER_EMAIL = 'webmaster@nextfee...
0
0
0
0
0
0
0
0
0
1de47343ccdf37016f6f01d6492953b8da7a5b7d
3,090
py
Python
tests/test_small_task.py
dwr-psandhu/azure_dms_batch
5a2d847bfabeea61fbb49389291cef041e14093a
[ "MIT" ]
1
2021-12-21T23:19:59.000Z
2021-12-21T23:19:59.000Z
tests/test_small_task.py
dwr-psandhu/azure_dms_batch
5a2d847bfabeea61fbb49389291cef041e14093a
[ "MIT" ]
null
null
null
tests/test_small_task.py
dwr-psandhu/azure_dms_batch
5a2d847bfabeea61fbb49389291cef041e14093a
[ "MIT" ]
1
2021-12-17T21:30:48.000Z
2021-12-17T21:30:48.000Z
""" Run a small task by * Uploading files * Creating a pool and a job * Creating a task and submitting it * Waiting till end of task * Retrieving files and checking """
35.517241
104
0.717152
""" Run a small task by * Uploading files * Creating a pool and a job * Creating a task and submitting it * Waiting till end of task * Retrieving files and checking """ import pytest import datetime import dmsbatch from tests.test_blob_client import container_name @pytest.fixture() def cont...
0
2,705
0
0
0
0
0
8
180
b1f745b1c79b6c976bde714c753f55467b71dc7f
718
py
Python
Chapter07/multithreading/thread1-extra.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
31
2020-08-10T22:37:41.000Z
2022-03-09T21:35:56.000Z
Chapter07/multithreading/thread1-extra.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
null
null
null
Chapter07/multithreading/thread1-extra.py
MichaelRW/Python-for-Geeks
a111f61f1a0b077fc0524431e1ccefd9214d5c53
[ "MIT" ]
21
2020-08-10T22:37:44.000Z
2022-03-07T07:26:28.000Z
# thread1-extra.py to create simple threads with function (using threads list to simplly the code) from threading import Thread as Thread threads = [] # creating threads threads.append(Thread(target=print_hello, name="Th 1")) threads.append(Thread(target=print_hello, name="Th 2")) threads.append(Thread(target=print_me...
25.642857
98
0.720056
# thread1-extra.py to create simple threads with function (using threads list to simplly the code) import threading from threading import Thread as Thread from time import sleep def print_hello(): sleep(2) print("{}: Hello".format(threading.current_thread().name)) def print_message(msg): sleep(1) pri...
0
0
0
0
0
153
0
-4
91
34f192fa240388ab9923637201c74705edff7735
1,038
py
Python
remove_cloze_from_field/sentencefromcloze.py
sarajaksa/anki-addons
01e4cedca0cca1df11202c52c473a8c35eb5f0b8
[ "Unlicense" ]
3
2017-03-05T21:53:06.000Z
2019-03-13T09:50:19.000Z
remove_cloze_from_field/sentencefromcloze.py
sarajaksa/anki-addons
01e4cedca0cca1df11202c52c473a8c35eb5f0b8
[ "Unlicense" ]
3
2017-03-04T16:24:15.000Z
2018-11-14T15:20:49.000Z
remove_cloze_from_field/sentencefromcloze.py
sarajaksa/anki-addons
01e4cedca0cca1df11202c52c473a8c35eb5f0b8
[ "Unlicense" ]
1
2019-05-12T10:46:25.000Z
2019-05-12T10:46:25.000Z
from anki.hooks import addHook clozeField = "Meaning" finalField = "Expression" addHook("setupEditorButtons", addSentenceFromClozeButton)
28.054054
82
0.66474
from anki.hooks import addHook import re clozeField = "Meaning" finalField = "Expression" def sentenceFromCloze(sentence): all_cloze = re.findall(r"{{c\d+::.+?}}", sentence) for cloze in all_cloze: replace_with = re.findall(r"{{c\d+::.+?::(.+?)}}", cloze) if replace_with: replace_...
0
0
0
0
0
815
0
-12
91
87592dea5ecbd99f2fa2f461e577e75a001c77e4
3,415
py
Python
scripts/retired/plot_broken_axes.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
scripts/retired/plot_broken_axes.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
scripts/retired/plot_broken_axes.py
tcrundall/chronostar
bdb5cd965e862ba5cc21bee75d5c8620e106c0cc
[ "MIT" ]
null
null
null
from __future__ import print_function, division """ Broken axis example, where the y-axis will have a portion cut out. """ import matplotlib.pyplot as plt import numpy as np mu1 = 30 sig1 = 1 mu2 = 10 sig2 = 1 pts = np.hstack((np.random.randn(100)*sig1 + mu1, np.random.randn(20)*sig2 + mu2 )) # # 30 points between [...
41.646341
91
0.67672
from __future__ import print_function, division """ Broken axis example, where the y-axis will have a portion cut out. """ import matplotlib.pyplot as plt import numpy as np mu1 = 30 sig1 = 1 mu2 = 10 sig2 = 1 pts = np.hstack((np.random.randn(100)*sig1 + mu1, np.random.randn(20)*sig2 + mu2 )) # # 30 points between [...
0
0
0
0
0
0
0
0
0
286caf6744551a7b42c814024ceb5025c5294a86
1,625
py
Python
main.py
00p513-dev/projectOne
7ba7e05e6b6cf678145214bd0faee8477157e642
[ "MIT" ]
null
null
null
main.py
00p513-dev/projectOne
7ba7e05e6b6cf678145214bd0faee8477157e642
[ "MIT" ]
null
null
null
main.py
00p513-dev/projectOne
7ba7e05e6b6cf678145214bd0faee8477157e642
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ The MIT License (MIT) Copyright (c) 2021 Amy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
31.25
78
0.744
#!/usr/bin/env python3 """ The MIT License (MIT) Copyright (c) 2021 Amy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
0
0
0
0
0
449
0
-8
46
cb546c87ee4204c146a145ee9c6949904fec5485
2,403
py
Python
homeassistant/components/nest/device_trigger.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/nest/device_trigger.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
homeassistant/components/nest/device_trigger.py
mib1185/core
b17d4ac65cde9a27ff6032d70b148792e5eba8df
[ "Apache-2.0" ]
null
null
null
"""Provides device automations for Nest.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant.const import CONF_TYPE from .events import DEVICE_TRAIT_TRIGGER_MAP DEVICE = "device" TRIGGER_TYPES = set(DEVICE...
31.207792
85
0.719933
"""Provides device automations for Nest.""" from __future__ import annotations import voluptuous as vol from homeassistant.components.automation import ( AutomationActionType, AutomationTriggerInfo, ) from homeassistant.components.device_automation import DEVICE_TRIGGER_BASE_SCHEMA from homeassistant.componen...
0
0
1,337
0
0
0
0
390
202
8dd2181573a36af606cc0d4ec0cf987b6ce41a04
440
py
Python
app/src/misp.py
nv-pipo/misp-to-sentinel-connector
2164da855f3514bf60af1e2adf4f4ac9480094f2
[ "Apache-2.0" ]
4
2021-03-02T02:46:58.000Z
2022-01-26T16:15:26.000Z
app/src/misp.py
nv-pipo/misp-to-sentinel-connector
2164da855f3514bf60af1e2adf4f4ac9480094f2
[ "Apache-2.0" ]
null
null
null
app/src/misp.py
nv-pipo/misp-to-sentinel-connector
2164da855f3514bf60af1e2adf4f4ac9480094f2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """Connector to MISP.""" from pymisp import ExpandedPyMISP import config def get_misp_attributes(): '''Method to pull the attributes (IOCs) from MISP server.''' misp = ExpandedPyMISP(config.MISP_DOMAIN, config.MISP_KEY, config.MISP_VERIFYCERT) attributes = mis...
33.846154
104
0.734091
#!/usr/bin/env python # -*- coding: utf-8 -*- """Connector to MISP.""" from pymisp import ExpandedPyMISP import config def get_misp_attributes(): '''Method to pull the attributes (IOCs) from MISP server.''' misp = ExpandedPyMISP(config.MISP_DOMAIN, config.MISP_KEY, config.MISP_VERIFYCERT) attributes = mis...
0
0
0
0
0
0
0
0
0
812daac18f5d217ec692a0bb591843489ca49da0
8,765
py
Python
samples/simple_consensus_caller/pileup_hdf5_generator.py
ohadmo/VariantWorks
20d645488d009bd8d29c69739b3e499327c290f9
[ "Apache-2.0" ]
null
null
null
samples/simple_consensus_caller/pileup_hdf5_generator.py
ohadmo/VariantWorks
20d645488d009bd8d29c69739b3e499327c290f9
[ "Apache-2.0" ]
null
null
null
samples/simple_consensus_caller/pileup_hdf5_generator.py
ohadmo/VariantWorks
20d645488d009bd8d29c69739b3e499327c290f9
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2020 NVIDIA CORPORATION. # # 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 ...
39.129464
106
0.63514
#!/usr/bin/python # -*- coding: utf-8 -*- # # Copyright 2020 NVIDIA CORPORATION. # # 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 ...
0
0
0
0
0
0
0
0
0
d5ef128295058d5c0311565981be4c150f1cbbe2
1,232
py
Python
printer.py
MarcWarrior/NeteaseMusicDownloader
cca610557a480393977824d72c2cdc86aa6bd66f
[ "MIT" ]
2
2020-03-19T09:52:34.000Z
2022-01-08T23:39:55.000Z
printer.py
MarcWarrior/NeteaseMusicDownloader
cca610557a480393977824d72c2cdc86aa6bd66f
[ "MIT" ]
null
null
null
printer.py
MarcWarrior/NeteaseMusicDownloader
cca610557a480393977824d72c2cdc86aa6bd66f
[ "MIT" ]
1
2020-03-19T09:52:38.000Z
2020-03-19T09:52:38.000Z
#!/usr/bin/env python3 # -*-coding:utf-8 -*- from colorama import init init()
28.651163
108
0.579545
#!/usr/bin/env python3 # -*-coding:utf-8 -*- import os import time from colorama import init from termcolor import cprint init() class Printer: instance = None def __new__(cls): if not cls.instance: cls.instance = super().__new__(cls) return cls.instance @staticmethod d...
0
112
0
965
0
0
0
-15
89
1891cbeb9a52c2f67a3b2f46215c969ccb248f2c
6,109
py
Python
rebound/python_examples/longtermtest/problem.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
rebound/python_examples/longtermtest/problem.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
rebound/python_examples/longtermtest/problem.py
rodluger/ttv-devil
e534e4f3cd75db951cba54441f7a5458c87e0cf9
[ "MIT" ]
null
null
null
# Import the rebound module import sys import matplotlib; matplotlib.use("pdf") import matplotlib.pyplot as plt import numpy as np from rebound.interruptible_pool import InterruptiblePool Ngrid = 500 #3dt = 100.23 orbit = 11.8618*1.*np.pi dt = orbit/3000. tmax = orbit*1e2 # Maximum integration time. integrators...
36.580838
207
0.609429
# Import the rebound module import sys import matplotlib; matplotlib.use("pdf") import matplotlib.pyplot as plt from matplotlib import ticker from matplotlib.colors import LogNorm import rebound import numpy as np import time from rebound.interruptible_pool import InterruptiblePool import warnings def simulation(par):...
0
0
0
0
0
3,704
0
1
133
29a4c6b961b039a113ca0c467cadee5f671056b1
2,187
py
Python
monodromy/io/lrcalc.py
Qiskit/monodromy
97829c1289c8a79b6ae3ab29eb7f4ad1ea79d5ab
[ "Apache-2.0" ]
6
2022-01-04T19:12:32.000Z
2022-02-28T05:48:14.000Z
monodromy/io/lrcalc.py
Qiskit/monodromy
97829c1289c8a79b6ae3ab29eb7f4ad1ea79d5ab
[ "Apache-2.0" ]
null
null
null
monodromy/io/lrcalc.py
Qiskit/monodromy
97829c1289c8a79b6ae3ab29eb7f4ad1ea79d5ab
[ "Apache-2.0" ]
1
2022-01-05T09:07:23.000Z
2022-01-05T09:07:23.000Z
""" monodromy/io/lrcalc.py Extracts quantum Littlewood-Richardson coefficients from the package `lrcalc`. This package is cumbersome to install, so we provide a prebaked copy of this table in `qlr_table.py`. """ import lrcalc def qlr(r, k, a, b): """ Computes the quantum Littlewood-Richardson coefficients ...
29.16
80
0.549154
""" monodromy/io/lrcalc.py Extracts quantum Littlewood-Richardson coefficients from the package `lrcalc`. This package is cumbersome to install, so we provide a prebaked copy of this table in `qlr_table.py`. """ from copy import copy import lrcalc def qlr(r, k, a, b): """ Computes the quantum Littlewood-R...
0
0
0
0
887
0
0
0
46
7d5df58d9e6ea1a45dcaa9ff8931c62a25d30dbf
6,739
py
Python
examples/runner_battdeg.py
rafyzg/BattDeg
39ba00e83f2783b3249d002b26794677f8e9f429
[ "MIT" ]
10
2020-01-15T17:49:52.000Z
2021-08-01T12:35:02.000Z
examples/runner_battdeg.py
rafyzg/BattDeg
39ba00e83f2783b3249d002b26794677f8e9f429
[ "MIT" ]
19
2019-03-08T07:15:09.000Z
2022-02-10T00:06:21.000Z
examples/runner_battdeg.py
rafyzg/BattDeg
39ba00e83f2783b3249d002b26794677f8e9f429
[ "MIT" ]
13
2019-03-05T01:08:08.000Z
2021-12-15T12:19:54.000Z
def PL_samples_capacity_cycles(pl_df): """ This function finds the capacity in each cycle from the cumulative capacity in the original file. Args: Returns: """ return data_dir = '/home/chintan/uwdirect/chintan/BattDeg/data/PL 12,14' fnf = 'PL12(4).csv' ignore_in...
38.073446
111
0.677103
import pandas as pd import numpy as np import datetime import os import re from os import listdir from os.path import isfile, join import matplotlib.pyplot as plt import seaborn as sns @profile def date_time_converter(date_time_list): """ This function gets the numpy array with date_time in matlab format ...
0
6,102
0
0
0
0
0
-13
249
dd09fe2dae7258e64c6bee6ccfe30ca6b0b7e4b7
3,016
py
Python
utuclient/player.py
katajakasa/utuputki2-client
1bfdaf18f5507108de2255817b654a4b2bf34cf3
[ "MIT" ]
null
null
null
utuclient/player.py
katajakasa/utuputki2-client
1bfdaf18f5507108de2255817b654a4b2bf34cf3
[ "MIT" ]
null
null
null
utuclient/player.py
katajakasa/utuputki2-client
1bfdaf18f5507108de2255817b654a4b2bf34cf3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging log = logging.getLogger(__name__)
30.464646
91
0.606432
# -*- coding: utf-8 -*- from gi.repository import GObject as gobject, Gst as gst, Gtk as gtk, GdkX11, GstVideo import platform import logging log = logging.getLogger(__name__) class Player(object): VIDEO = 0 IMAGE = 1 def __init__(self, window, url, cb_finish, cb_error, mode=VIDEO): self.window...
0
0
0
2,814
0
0
0
59
68
1158d699a873a4e35d1470483197a439452f8175
2,486
py
Python
tests/test_surround.py
wuub/rxv
da90b758da6e1cd5082bd8931f183662e54b1903
[ "BSD-3-Clause" ]
97
2015-01-21T07:04:04.000Z
2021-11-02T15:40:20.000Z
tests/test_surround.py
wuub/rxv
da90b758da6e1cd5082bd8931f183662e54b1903
[ "BSD-3-Clause" ]
68
2015-02-10T11:53:24.000Z
2022-03-02T02:20:03.000Z
tests/test_surround.py
wuub/rxv
da90b758da6e1cd5082bd8931f183662e54b1903
[ "BSD-3-Clause" ]
49
2015-02-07T15:27:38.000Z
2021-12-29T09:31:41.000Z
FAKE_IP = '10.0.0.0' DESC_XML = 'http://%s/YamahaRemoteControl/desc.xml' % FAKE_IP CTRL_URL = 'http://%s/YamahaRemoteControl/ctrl' % FAKE_IP
36.558824
92
0.641995
import unittest import requests_mock import rxv FAKE_IP = '10.0.0.0' DESC_XML = 'http://%s/YamahaRemoteControl/desc.xml' % FAKE_IP CTRL_URL = 'http://%s/YamahaRemoteControl/ctrl' % FAKE_IP def sample_content(name): with open('tests/samples/%s' % name) as f: return f.read() class TestSurroundRXV(unittes...
0
2,072
0
20
0
75
0
-18
193
e00754c1b3377a2b65d5833ce458aa6a79274a31
6,276
py
Python
tools/toc.py
donalm/cefpython
ce21ff975194ea1b17a9061ceb66648cbb3115c5
[ "CNRI-Python", "RSA-MD", "Linux-OpenIB" ]
1
2018-08-03T07:04:47.000Z
2018-08-03T07:04:47.000Z
tools/toc.py
donalm/cefpython
ce21ff975194ea1b17a9061ceb66648cbb3115c5
[ "CNRI-Python", "RSA-MD", "Linux-OpenIB" ]
null
null
null
tools/toc.py
donalm/cefpython
ce21ff975194ea1b17a9061ceb66648cbb3115c5
[ "CNRI-Python", "RSA-MD", "Linux-OpenIB" ]
1
2021-07-22T04:29:54.000Z
2021-07-22T04:29:54.000Z
# Copyright (c) 2016 CEF Python, see the Authors file. # All rights reserved. Licensed under BSD 3-clause license. # Project website: https://github.com/cztomczak/cefpython """Create Table of contents (TOC) for a single .md file or for a directory. Usage: toc.py FILE toc.py DIR To ignore file when generating...
34.295082
78
0.559592
# Copyright (c) 2016 CEF Python, see the Authors file. # All rights reserved. Licensed under BSD 3-clause license. # Project website: https://github.com/cztomczak/cefpython """Create Table of contents (TOC) for a single .md file or for a directory. Usage: toc.py FILE toc.py DIR To ignore file when generating...
0
0
0
0
0
0
0
0
0