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
5b1fe3c4c3a110ddf786710bfc38d1e6852ba76b
6,744
py
Python
rn2483.py
alexantoniades/python-RN2483
bb4959ac7e94477eb39933e43e9f18326e93c326
[ "Apache-2.0" ]
2
2019-07-19T22:07:55.000Z
2022-02-16T05:53:58.000Z
rn2483.py
alexantoniades/python-RN2483
bb4959ac7e94477eb39933e43e9f18326e93c326
[ "Apache-2.0" ]
2
2019-11-27T08:51:42.000Z
2020-10-22T13:46:38.000Z
rn2483.py
alexantoniades/python-RN2483
bb4959ac7e94477eb39933e43e9f18326e93c326
[ "Apache-2.0" ]
1
2021-03-05T02:18:41.000Z
2021-03-05T02:18:41.000Z
#!/usr/bin/python3 ''' [ RN2483 Library ] Python library for RN2483 LoRaWAN transceiver This implementation is meant to be used on Raspberry Pi. [-------------------------------------------------------] Version: [0.1]: + Changes: - Completed command set dict...
35.125
101
0.604093
#!/usr/bin/python3 ''' [ RN2483 Library ] Python library for RN2483 LoRaWAN transceiver This implementation is meant to be used on Raspberry Pi. [-------------------------------------------------------] Version: [0.1]: + Changes: - Completed command set dict...
0
0
0
4,318
0
0
0
11
88
891de1d3dfb16f6a6e167d601c47b61388504958
3,175
py
Python
servers/hr_monitor/src/tests/test_preprocessing.py
arpitgogia/mars_city
30cacd80487a8c2354bbc15b4fad211ed1cb4f9d
[ "BSD-2-Clause-FreeBSD" ]
25
2016-07-20T04:49:14.000Z
2021-08-25T09:05:04.000Z
servers/hr_monitor/src/tests/test_preprocessing.py
arpitgogia/mars_city
30cacd80487a8c2354bbc15b4fad211ed1cb4f9d
[ "BSD-2-Clause-FreeBSD" ]
16
2016-12-27T08:30:27.000Z
2018-06-18T08:51:44.000Z
servers/hr_monitor/src/tests/test_preprocessing.py
arpitgogia/mars_city
30cacd80487a8c2354bbc15b4fad211ed1cb4f9d
[ "BSD-2-Clause-FreeBSD" ]
49
2016-07-20T13:08:27.000Z
2020-06-02T18:26:12.000Z
#! /usr/bin/env python from __future__ import division, print_function import sys import unittest sys.path.append("../../") if __name__ == '__main__': unittest.main()
36.918605
78
0.663307
#! /usr/bin/env python from __future__ import division, print_function import sys import unittest import os from datetime import datetime, timedelta from pandas import notnull from numpy import log sys.path.append("../../") from src.preprocessing import read_data, extract_hr_acc class PreprocessingTests(unittest....
0
275
0
2,543
0
0
0
46
135
9225b59b5cbd2f0b2ef345e654b433a7ee96c167
6,727
py
Python
skimpy/core/parameters.py
EPFL-LCSB/skimpy
0e97f8a84506a3ef40d7c493209e8a0f55af5847
[ "Apache-2.0" ]
13
2020-11-05T10:59:13.000Z
2022-03-21T01:38:31.000Z
skimpy/core/parameters.py
EPFL-LCSB/skimpy
0e97f8a84506a3ef40d7c493209e8a0f55af5847
[ "Apache-2.0" ]
4
2022-01-27T10:23:40.000Z
2022-03-10T18:16:06.000Z
skimpy/core/parameters.py
EPFL-LCSB/skimpy
0e97f8a84506a3ef40d7c493209e8a0f55af5847
[ "Apache-2.0" ]
6
2020-08-04T17:01:33.000Z
2022-03-21T01:38:32.000Z
# -*- coding: utf-8 -*- """ .. module:: skimpy :platform: Unix, Windows :synopsis: Simple Kinetic Models in Python .. moduleauthor:: SKiMPy team [---------] Copyright 2019 Laboratory of Computational Systems Biotechnology (LCSB), Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland Licensed under the ...
32.186603
106
0.623904
# -*- coding: utf-8 -*- """ .. module:: skimpy :platform: Unix, Windows :synopsis: Simple Kinetic Models in Python .. moduleauthor:: SKiMPy team [---------] Copyright 2019 Laboratory of Computational Systems Biotechnology (LCSB), Ecole Polytechnique Federale de Lausanne (EPFL), Switzerland Licensed under the ...
0
0
0
4,604
0
1,045
0
11
202
765cbdf53ead19e8df808585ee232703a0b9904e
480
py
Python
HW7/Serhii_Yadzhak/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW7/Serhii_Yadzhak/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
null
null
null
HW7/Serhii_Yadzhak/2.py
kolyasalubov/Lv-677.PythonCore
c9f9107c734a61e398154a90b8a3e249276c2704
[ "MIT" ]
6
2022-02-22T22:30:49.000Z
2022-03-28T12:51:19.000Z
import re password = input('Enter your password: ') x = True while x: if 6 >= len(password) or len(password) >= 16: break elif not re.search('[a-z]', password): break elif not re.search('[A-Z]', password): break elif not re.search('[0-9]', password): break elif not re...
24
49
0.547917
import re password = input('Enter your password: ') x = True while x: if 6 >= len(password) or len(password) >= 16: break elif not re.search('[a-z]', password): break elif not re.search('[A-Z]', password): break elif not re.search('[0-9]', password): break elif not re...
0
0
0
0
0
0
0
0
0
59530ccb27843ab893ee21354a639d28dc21830e
1,643
py
Python
code/706.design-hash-map.py
ProHiryu/leetcode
1f42a102ab89b6e7c20f38dd8b435255f2ab4418
[ "MIT" ]
3
2019-01-24T03:22:51.000Z
2021-09-10T14:52:42.000Z
code/706.design-hash-map.py
ProHiryu/leetcode
1f42a102ab89b6e7c20f38dd8b435255f2ab4418
[ "MIT" ]
null
null
null
code/706.design-hash-map.py
ProHiryu/leetcode
1f42a102ab89b6e7c20f38dd8b435255f2ab4418
[ "MIT" ]
2
2019-10-15T04:24:51.000Z
2020-12-16T02:40:55.000Z
# # @lc app=leetcode id=706 lang=python3 # # [706] Design HashMap # # @lc code=start # Your MyHashMap object will be instantiated and called as such: # obj = MyHashMap() # obj.put(key,value) # param_2 = obj.get(key) # obj.remove(key) # @lc code=end
26.934426
113
0.592818
# # @lc app=leetcode id=706 lang=python3 # # [706] Design HashMap # # @lc code=start class MyHashMap: def __init__(self): """ Initialize your data structure here. """ self.buckets = 1000 self.itemsperbucket = 1001 self.table = [[] for _ in range(self.buckets)] ...
0
0
0
1,368
0
0
0
0
22
b5e4d55f15bfe063807446d097cd90e6789103fe
688
py
Python
script/info.py
ptdel/python_project_template
12cd7a2d9174fbb7c6ed74df49055ad536dd549b
[ "Apache-2.0" ]
null
null
null
script/info.py
ptdel/python_project_template
12cd7a2d9174fbb7c6ed74df49055ad536dd549b
[ "Apache-2.0" ]
null
null
null
script/info.py
ptdel/python_project_template
12cd7a2d9174fbb7c6ed74df49055ad536dd549b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ Setup Info ========== Returns information about properties in setup.py """ import json import sys import mock import setuptools from pathlib import Path if len(sys.argv) > 1: prop = sys.argv[1] else: prop = "" # Setting the path to the base level of the repository. base_dir = Path...
19.111111
62
0.713663
#!/usr/bin/env python """ Setup Info ========== Returns information about properties in setup.py """ import json import sys import mock import setuptools from pathlib import Path if len(sys.argv) > 1: prop = sys.argv[1] else: prop = "" # Setting the path to the base level of the repository. base_dir = Path...
0
0
0
0
0
0
0
-9
26
ea2bcadd1b1b8e15512555575efcc1ccb47f2281
5,854
py
Python
tests.py
HurricaneLabs/splunksecrets
177d350a9164791c66139d11b4c63f5db83710b6
[ "Unlicense", "MIT" ]
30
2018-10-19T14:02:22.000Z
2021-12-22T04:37:12.000Z
tests.py
HurricaneLabs/splunksecrets
177d350a9164791c66139d11b4c63f5db83710b6
[ "Unlicense", "MIT" ]
8
2019-01-26T14:39:06.000Z
2021-06-07T13:50:31.000Z
tests.py
HurricaneLabs/splunksecrets
177d350a9164791c66139d11b4c63f5db83710b6
[ "Unlicense", "MIT" ]
14
2018-10-19T14:50:23.000Z
2020-12-08T15:41:59.000Z
import six splunk_secret = six.b( "JX7cQAnH6Nznmild8MvfN8/BLQnGr8C3UYg3mqvc3ArFkaxj4gUt1RUCaRBD/r0CNn8xOA2oKX8" "/0uyyChyGRiFKhp6h2FA+ydNIRnN46N8rZov8QGkchmebZa5GAM5U50GbCCgzJFObPyWi5yT8Cr" "SCYmv9cpRtpKyiX+wkhJwltoJzAxWbBERiLp+oXZnN3lsRn6YkljmYBqN9tZLTVVps...
42.42029
157
0.696618
import base64 import os import random import unittest import six import splunksecrets splunk_secret = six.b( "JX7cQAnH6Nznmild8MvfN8/BLQnGr8C3UYg3mqvc3ArFkaxj4gUt1RUCaRBD/r0CNn8xOA2oKX8" "/0uyyChyGRiFKhp6h2FA+ydNIRnN46N8rZov8QGkchmebZa5GAM5U50GbCCgzJFObPyWi5yT8Cr" ...
0
0
0
5,351
0
0
0
-35
134
e9c60f61eae507262f51bf9a7d4250c68e90952d
477
py
Python
dockerfile_recover/parser/shell.py
purificant/dockerfile-recover
f584e9e560775d38b8fed288279e307c23beb3f5
[ "MIT" ]
1
2021-07-23T00:55:30.000Z
2021-07-23T00:55:30.000Z
dockerfile_recover/parser/shell.py
purificant/dockerfile-recover
f584e9e560775d38b8fed288279e307c23beb3f5
[ "MIT" ]
null
null
null
dockerfile_recover/parser/shell.py
purificant/dockerfile-recover
f584e9e560775d38b8fed288279e307c23beb3f5
[ "MIT" ]
1
2022-01-21T17:10:38.000Z
2022-01-21T17:10:38.000Z
"""This module contains functions for parsing shell commands from docker history.""" def get_shell() -> str: """Return marker for shell, which can be a NOP docker command or shell command.""" return "/bin/sh -c" def is_shell(command: str) -> bool: """Check if command is shell.""" return command.star...
28.058824
86
0.689727
"""This module contains functions for parsing shell commands from docker history.""" def get_shell() -> str: """Return marker for shell, which can be a NOP docker command or shell command.""" return "/bin/sh -c" def is_shell(command: str) -> bool: """Check if command is shell.""" return command.star...
0
0
0
0
0
0
0
0
0
cd015cd2dea0a82841e5dadbf9656a70b9929f8e
1,357
py
Python
python/nflrating/nfl_game_per_week_rating.py
baumhoto/programming_languages_notes
b3b2324831fae7df7695e0b2bd0952bd2f1b2f4d
[ "MIT" ]
null
null
null
python/nflrating/nfl_game_per_week_rating.py
baumhoto/programming_languages_notes
b3b2324831fae7df7695e0b2bd0952bd2f1b2f4d
[ "MIT" ]
null
null
null
python/nflrating/nfl_game_per_week_rating.py
baumhoto/programming_languages_notes
b3b2324831fae7df7695e0b2bd0952bd2f1b2f4d
[ "MIT" ]
null
null
null
import nflgame from math import fabs from operator import itemgetter, attrgetter, methodcaller year = raw_input("Year: ") week = raw_input("Week: ") kind = raw_input("Kind (PRE/REG/POST): ") games = nflgame.games(int(year), week=int(week), kind=kind) #filtered_games = filter(lambda x: x.away == "CAR", games) filtered...
42.40625
160
0.692704
import nflgame from math import fabs from operator import itemgetter, attrgetter, methodcaller year = raw_input("Year: ") week = raw_input("Week: ") kind = raw_input("Kind (PRE/REG/POST): ") games = nflgame.games(int(year), week=int(week), kind=kind) #filtered_games = filter(lambda x: x.away == "CAR", games) filtered...
0
0
0
0
0
0
0
0
0
de19999d66d9c18158e0eb68086ddf0a469fbad0
1,253
py
Python
workmap_code/parsejson.py
seohl16/AutoCrawler
a37fb660b3f585344b3f9e858476fcbda6f9c6c8
[ "Apache-2.0" ]
null
null
null
workmap_code/parsejson.py
seohl16/AutoCrawler
a37fb660b3f585344b3f9e858476fcbda6f9c6c8
[ "Apache-2.0" ]
null
null
null
workmap_code/parsejson.py
seohl16/AutoCrawler
a37fb660b3f585344b3f9e858476fcbda6f9c6c8
[ "Apache-2.0" ]
null
null
null
#-*-coding utf-8-*- import json import io import sys import urllib.request, json url = "http://3.94.119.184/location" response = urllib.request.urlopen(url) data = json.loads(response.read()) # . python3 sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8') sys.stderr = io.TextIOWrapper(sys.s...
22.375
71
0.664804
#-*-coding utf-8-*- import json import io import sys import urllib.request, json url = "http://3.94.119.184/location" response = urllib.request.urlopen(url) data = json.loads(response.read()) # 한글 깨짐 막기 위한 코드. python3부터 지원 sys.stdout = io.TextIOWrapper(sys.stdout.detach(), encoding = 'utf-8') sys.stderr = io.TextI...
129
0
0
0
0
0
0
0
0
b79a2d36bbdd470a99fc018a4753af85a38a1d98
4,229
py
Python
cinder/volume/throttling.py
cloudification-io/cinder
23d76e01f2b4f3771b57fb287084a4884238b827
[ "Apache-2.0" ]
571
2015-01-01T17:47:26.000Z
2022-03-23T07:46:36.000Z
cinder/volume/throttling.py
dFarui/cinder
b2922384054ddbd46e071fd07372a75a21d7f85d
[ "Apache-2.0" ]
37
2015-01-22T23:27:04.000Z
2021-02-05T16:38:48.000Z
cinder/volume/throttling.py
dFarui/cinder
b2922384054ddbd46e071fd07372a75a21d7f85d
[ "Apache-2.0" ]
841
2015-01-04T17:17:11.000Z
2022-03-31T12:06:51.000Z
# Copyright (c) 2015 Hitachi Data Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
32.530769
78
0.627335
# Copyright (c) 2015 Hitachi Data Systems, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # U...
0
1,702
0
1,576
0
0
0
33
159
0625570e5ce21d72ececa445e105da339ed4bd1f
1,718
py
Python
test.py
fwd1990man/GMapImageCollect
c301e54364672e50d912ee5eafc83b6e4d16111e
[ "MIT" ]
1
2021-05-19T00:09:21.000Z
2021-05-19T00:09:21.000Z
test.py
vladhj38/GMapImageCollect
c301e54364672e50d912ee5eafc83b6e4d16111e
[ "MIT" ]
null
null
null
test.py
vladhj38/GMapImageCollect
c301e54364672e50d912ee5eafc83b6e4d16111e
[ "MIT" ]
null
null
null
"""Tests to make some huge Gmaps. See README.md for more info.""" from hugegmaps import create_map def test_calibration(): """Quick single screenshot of Philly Art Museum for calibration. Takes about 10 seconds to run. """ create_map( lat_start=39.9644273, long_start=-75.1801129, ...
24.542857
75
0.603609
"""Tests to make some huge Gmaps. See README.md for more info.""" from hugegmaps import create_map def test_calibration(): """Quick single screenshot of Philly Art Museum for calibration. Takes about 10 seconds to run. """ create_map( lat_start=39.9644273, long_start=-75.1801129, ...
0
0
0
0
0
17
0
0
23
f0732b226b94427051b1f12397964c01b6c9caa3
358
py
Python
phare/flux/migrations/0002_auto_20180203_1704.py
decaruju/phare
7b17806a6ed9ec1e5863fd65b39391a7a8d9b219
[ "MIT" ]
null
null
null
phare/flux/migrations/0002_auto_20180203_1704.py
decaruju/phare
7b17806a6ed9ec1e5863fd65b39391a7a8d9b219
[ "MIT" ]
null
null
null
phare/flux/migrations/0002_auto_20180203_1704.py
decaruju/phare
7b17806a6ed9ec1e5863fd65b39391a7a8d9b219
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-03 17:04
17.9
47
0.564246
# Generated by Django 2.0.1 on 2018-02-03 17:04 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('flux', '0001_initial'), ] operations = [ migrations.DeleteModel( name='Autorite', ), migrations.DeleteModel( ...
0
0
0
252
0
0
0
11
46
222debe9c200dff7ebb9285b2389a856002f9d8d
1,206
py
Python
functional_tests/tests.py
Haakenlid/grenselandet
d0a8878fa2aa1ee65737702d86ef25482bf46bff
[ "MIT" ]
null
null
null
functional_tests/tests.py
Haakenlid/grenselandet
d0a8878fa2aa1ee65737702d86ef25482bf46bff
[ "MIT" ]
null
null
null
functional_tests/tests.py
Haakenlid/grenselandet
d0a8878fa2aa1ee65737702d86ef25482bf46bff
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Functional tests universitas.no """ from django.conf import settings from os import path PHANTOMJS_EXECUTABLE_PATH = '/home/haakenlid/node_modules/phantomjs/lib/phantom/bin/phantomjs' PHANTOMJS_LOG_PATH = path.join(settings.LOG_FOLDER, 'phantom.log') # PHANTOMJS_LOG_PATH = settings.LOG_FOLD...
32.594595
94
0.707297
# -*- coding: utf-8 -*- """ Functional tests universitas.no """ from selenium import webdriver from selenium.webdriver.common.keys import Keys from django.contrib.staticfiles.testing import StaticLiveServerCase from django.conf import settings from os import path PHANTOMJS_EXECUTABLE_PATH = '/home/haakenlid/node_modul...
15
0
0
656
0
0
0
81
89
0afd711263ec2e759d7e6556b1f409f69a809a18
11,127
py
Python
sdk/python/pulumi_aws/chime/voice_connector_group.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
260
2018-06-18T14:57:00.000Z
2022-03-29T11:41:03.000Z
sdk/python/pulumi_aws/chime/voice_connector_group.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
1,154
2018-06-19T20:38:20.000Z
2022-03-31T19:48:16.000Z
sdk/python/pulumi_aws/chime/voice_connector_group.py
rapzo/pulumi-aws
390a098221315d98a54ba97d1559e750dc3053b7
[ "ECL-2.0", "Apache-2.0" ]
115
2018-06-28T03:20:27.000Z
2022-03-29T11:41:06.000Z
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import pulumi from .. import _utilities __all__ = ['VoiceConnectorGroupArgs', 'VoiceConnectorGroup']
41.988679
233
0.653905
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
0
8,815
0
1,801
0
0
0
42
180
59669430b064b94f9ae50a0d9553f101f7a775ed
451
py
Python
setup.py
brean/arduino-kivy-bluetooth
651126e11e6d44723a07609234e976f93a8084a1
[ "MIT" ]
13
2016-05-13T05:59:55.000Z
2022-01-07T00:05:57.000Z
setup.py
brean/arduino-kivy-bluetooth
651126e11e6d44723a07609234e976f93a8084a1
[ "MIT" ]
null
null
null
setup.py
brean/arduino-kivy-bluetooth
651126e11e6d44723a07609234e976f93a8084a1
[ "MIT" ]
4
2016-11-01T06:22:56.000Z
2020-02-09T17:45:48.000Z
from setuptools import setup, find_packages setup( name="blinking", version="0.0.1", author="wemakesoftware.com", author_email="a.bresser@greyrook.com", description="arduino control software using kivy and firmata", install_requires=['pyfirmata', 'pybluez', 'kivy'], zip_save=False, pack...
28.1875
77
0.687361
from setuptools import setup, find_packages setup( name="blinking", version="0.0.1", author="wemakesoftware.com", author_email="a.bresser@greyrook.com", description="arduino control software using kivy and firmata", install_requires=['pyfirmata', 'pybluez', 'kivy'], zip_save=False, pack...
0
0
0
0
0
0
0
0
0
0b982f0ed0b3b663d8eb4b0e1042fa0bbb0b7b45
399
py
Python
Asta_Velo_Service/src/models/newLogin_model.py
astaVelo/asta_velo
0def3484b4b51e2008fb376b7e6e8b07e8cedec3
[ "MIT" ]
null
null
null
Asta_Velo_Service/src/models/newLogin_model.py
astaVelo/asta_velo
0def3484b4b51e2008fb376b7e6e8b07e8cedec3
[ "MIT" ]
null
null
null
Asta_Velo_Service/src/models/newLogin_model.py
astaVelo/asta_velo
0def3484b4b51e2008fb376b7e6e8b07e8cedec3
[ "MIT" ]
null
null
null
from src.server.instance import server from flask_restplus import fields new_login = server.api.model('newLogin', { 'oldEmail': fields.String(required=True, description='Email'), 'oldPassword': fields.String(required=True, description='Password'), 'newEmail': fields.String(required=True, description='Emai...
39.9
72
0.746867
from src.server.instance import server from flask_restplus import fields new_login = server.api.model('newLogin', { 'oldEmail': fields.String(required=True, description='Email'), 'oldPassword': fields.String(required=True, description='Password'), 'newEmail': fields.String(required=True, description='Emai...
0
0
0
0
0
0
0
0
0
fee0e53fea00941fd5b9b8853aeecfff54744eaf
490
py
Python
tally/views.py
noedlm/raid_count
0e6174cb544ad048d72ac16c59a8fd0d19badf89
[ "MIT" ]
null
null
null
tally/views.py
noedlm/raid_count
0e6174cb544ad048d72ac16c59a8fd0d19badf89
[ "MIT" ]
null
null
null
tally/views.py
noedlm/raid_count
0e6174cb544ad048d72ac16c59a8fd0d19badf89
[ "MIT" ]
null
null
null
# Create your views here.
23.333333
84
0.679592
import os import requests from django.http import HttpResponse from django.shortcuts import render # Create your views here. def index(request): binUrl = 'http://httpbin.org/get' url = os.getenv('BLIZZARD_WEB_API_URL') + '/wow/guild/Thunderhorn/Fallen Empire' url_params = { 'fields': 'members', ...
0
0
0
0
0
338
0
11
111
d192027b14a913f4e100a3bf301874cc69a00d5b
11,414
py
Python
app/admin/views.py
hazzillrodriguez/Flaskdesk
16123f4d63c686a3332f3f91eda9bb3a8e2a3ed5
[ "MIT" ]
null
null
null
app/admin/views.py
hazzillrodriguez/Flaskdesk
16123f4d63c686a3332f3f91eda9bb3a8e2a3ed5
[ "MIT" ]
null
null
null
app/admin/views.py
hazzillrodriguez/Flaskdesk
16123f4d63c686a3332f3f91eda9bb3a8e2a3ed5
[ "MIT" ]
null
null
null
from flask import Blueprint admin_blueprint = Blueprint('admin', __name__)
37.058442
143
0.740231
from flask import Blueprint, render_template, redirect, request, url_for, flash from flask_login import current_user from sqlalchemy import or_ from app.admin.forms import UserForm, TicketForm, TicketUpdateForm, CategoryForm, PriorityForm, StatusForm, EmailUpdateForm, PasswordChangeForm from app.models import User, Tic...
0
10,465
0
0
0
0
0
260
614
0edbc1ddde02382006a363cab289df16e09501a4
23,190
py
Python
PyInstaller/utils/conftest.py
c-jo/pyinstaller
ba1ea854d1614a90d3153ae5ad19a077f3e69ebf
[ "Apache-2.0" ]
12
2020-12-15T15:12:06.000Z
2022-03-18T16:17:42.000Z
PyInstaller/utils/conftest.py
c-jo/pyinstaller
ba1ea854d1614a90d3153ae5ad19a077f3e69ebf
[ "Apache-2.0" ]
4
2021-03-29T14:40:37.000Z
2022-03-21T02:05:18.000Z
PyInstaller/utils/conftest.py
c-jo/pyinstaller
ba1ea854d1614a90d3153ae5ad19a077f3e69ebf
[ "Apache-2.0" ]
10
2020-12-15T15:12:14.000Z
2022-02-09T21:02:17.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2005-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
38.204283
109
0.632557
#----------------------------------------------------------------------------- # Copyright (c) 2005-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
0
5,228
0
12,837
0
994
0
228
828
5639c28cc502f21d518741548dead647fbac7e4b
1,657
py
Python
SSH/yuexitest.py
YueXiNPU/SSH_DensityMap
c52d214e5ccb819dfb13aad6a729f0fcb5f89283
[ "MIT" ]
null
null
null
SSH/yuexitest.py
YueXiNPU/SSH_DensityMap
c52d214e5ccb819dfb13aad6a729f0fcb5f89283
[ "MIT" ]
null
null
null
SSH/yuexitest.py
YueXiNPU/SSH_DensityMap
c52d214e5ccb819dfb13aad6a729f0fcb5f89283
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import os import scipy.io as scio def vis_gt(im, bboxes, plt_name='output', ext='.png', visualization_folder=None): """ A function to visualize the detections :param im: The image :param bboxes: ground truth :param plt_name: The name of the plot :param ext: The s...
32.490196
86
0.606518
import matplotlib.pyplot as plt import numpy as np import os import scipy.io as scio def vis_gt(im, bboxes, plt_name='output', ext='.png', visualization_folder=None): """ A function to visualize the detections :param im: The image :param bboxes: ground truth :param plt_name: The name of the plot ...
0
0
0
0
0
0
0
-3
22
f46ede1c773d2cc8f0cf97481f9bfc293c836741
731
py
Python
ppm_telegram_bot/dependencies.py
piterpy-meetup/ppm-telegram-bot
c0b3e1bbf9a374a367b7f7d0f416410f528ae3cb
[ "MIT" ]
9
2020-08-31T17:34:14.000Z
2022-03-06T10:47:15.000Z
ppm_telegram_bot/dependencies.py
piterpy-meetup/ppm-telegram-bot
c0b3e1bbf9a374a367b7f7d0f416410f528ae3cb
[ "MIT" ]
14
2020-03-06T12:17:22.000Z
2020-03-22T15:04:00.000Z
ppm_telegram_bot/dependencies.py
piterpy-meetup/ppm-telegram-bot
c0b3e1bbf9a374a367b7f7d0f416410f528ae3cb
[ "MIT" ]
2
2020-08-31T17:34:38.000Z
2020-12-01T09:52:17.000Z
""" FastAPI provides Dependency Injection system, so we implement a few. More info about dependencies: https://fastapi.tiangolo.com/tutorial/dependencies/ It is better to create a new dependency if you want to use something in your endpoint handler (telegram bot, security check, external library). """ from aiogram im...
24.366667
84
0.745554
""" FastAPI provides Dependency Injection system, so we implement a few. More info about dependencies: https://fastapi.tiangolo.com/tutorial/dependencies/ It is better to create a new dependency if you want to use something in your endpoint handler (telegram bot, security check, external library). """ from aiogram im...
0
0
0
0
0
31
0
11
23
f42d0e2dca53c3d1d44d5006aee271ab3d1506b7
1,179
py
Python
qcloudsdkvpc/SetSSLVpnDomainRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkvpc/SetSSLVpnDomainRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkvpc/SetSSLVpnDomainRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
25.630435
74
0.645462
# -*- coding: utf-8 -*- from qcloudsdkcore.request import Request class SetSSLVpnDomainRequest(Request): def __init__(self): super(SetSSLVpnDomainRequest, self).__init__( 'vpc', 'qcloudcliV1', 'SetSSLVpnDomain', 'vpc.api.qcloud.com') def get_acl(self): return self.get_params().ge...
0
0
0
1,089
0
0
0
20
46
8df0388686d6e1129d0c113fa3a734681a2dfc13
249
py
Python
Temperature Converter.py
SayantanD98/Python_Programs
d09855757ba680ea164e4bb4e3c81a21cf4f5d2b
[ "MIT" ]
null
null
null
Temperature Converter.py
SayantanD98/Python_Programs
d09855757ba680ea164e4bb4e3c81a21cf4f5d2b
[ "MIT" ]
null
null
null
Temperature Converter.py
SayantanD98/Python_Programs
d09855757ba680ea164e4bb4e3c81a21cf4f5d2b
[ "MIT" ]
null
null
null
cel = float(input("Enter The Temperature in Celsius :")) ctof(cel)
22.636364
56
0.566265
def ctof(c): if c < -273.15: print("That temperature doesn't make sense!") else : f = c * (9 / 5) + 32 print("The Temperature in Fahrenheit : ", f) cel = float(input("Enter The Temperature in Celsius :")) ctof(cel)
0
0
0
0
0
158
0
0
22
0674c475809fce847428bb3921abefc3baaedfc9
486
py
Python
tags/urls.py
ugoertz/django-familio
b3db5e508d98bedb32855e102c14218080b4dc01
[ "BSD-3-Clause" ]
3
2017-04-25T10:41:19.000Z
2020-10-31T15:08:18.000Z
tags/urls.py
ugoertz/django-familio
b3db5e508d98bedb32855e102c14218080b4dc01
[ "BSD-3-Clause" ]
2
2019-11-02T20:58:31.000Z
2020-02-08T17:53:14.000Z
tags/urls.py
ugoertz/django-familio
b3db5e508d98bedb32855e102c14218080b4dc01
[ "BSD-3-Clause" ]
null
null
null
from django.conf.urls import url from .views import TagSearch, SaveTags, TagList from .ajax import GetTags urlpatterns = ( url(r'^save-tags/(?P<app>\w+)/(?P<model>\w+)/(?P<pk>\d+)/$', SaveTags.as_view(), name='save-tags'), url(r'^tag-search/(?P<tag>[\w !:\.,;_+-]+)/$', TagSearch.as_view(), nam...
27
64
0.569959
from django.conf.urls import url from .views import TagSearch, SaveTags, TagList from .ajax import GetTags urlpatterns = ( url(r'^save-tags/(?P<app>\w+)/(?P<model>\w+)/(?P<pk>\d+)/$', SaveTags.as_view(), name='save-tags'), url(r'^tag-search/(?P<tag>[\w !:\.,;_+-]+)/$', TagSearch.as_view(), nam...
0
0
0
0
0
0
0
0
0
2122350063fc53faa90e4b7070a3d35258d03caa
4,974
py
Python
feature_engineering/text/utils.py
bangdasun/kaggle_learn
62593a405f4c9d9b21b3e8ca9927832433114bdb
[ "MIT" ]
8
2019-03-28T11:01:01.000Z
2022-03-11T11:56:31.000Z
feature_engineering/text/utils.py
bangdasun/kaggle_learn
62593a405f4c9d9b21b3e8ca9927832433114bdb
[ "MIT" ]
null
null
null
feature_engineering/text/utils.py
bangdasun/kaggle_learn
62593a405f4c9d9b21b3e8ca9927832433114bdb
[ "MIT" ]
6
2019-08-14T02:21:29.000Z
2021-11-15T14:56:38.000Z
import numpy as np from sklearn.decomposition import TruncatedSVD def get_word_weight(weight_filename, alpha=1e-3): """ Get word term-frequency from large corpus file """ # when the parameter makes no sense, use unweighted if alpha <= 0: alpha = 1.0 words_weight = {} with open(weight_fil...
33.608108
118
0.673904
import numpy as np from sklearn.decomposition import TruncatedSVD def get_word_weight(weight_filename, alpha=1e-3): """ Get word term-frequency from large corpus file """ # when the parameter makes no sense, use unweighted if alpha <= 0: alpha = 1.0 words_weight = {} with open(weight_fil...
0
0
0
0
0
505
0
0
49
dd0f35ccbfab95b95870a42ee33207ca353a51f1
5,972
py
Python
pylibscrypt/test_properties.py
jvarho/pylibscrypt
46f9c0a2f2c909a5765f748f2c188e336af221ed
[ "0BSD" ]
19
2015-02-03T22:25:09.000Z
2021-09-01T05:25:44.000Z
pylibscrypt/test_properties.py
jvarho/pylibscrypt
46f9c0a2f2c909a5765f748f2c188e336af221ed
[ "0BSD" ]
16
2015-06-03T15:52:43.000Z
2019-03-24T16:47:52.000Z
pylibscrypt/test_properties.py
jvarho/pylibscrypt
46f9c0a2f2c909a5765f748f2c188e336af221ed
[ "0BSD" ]
3
2015-05-26T01:39:20.000Z
2017-12-15T23:44:19.000Z
# Copyright (c) 2017-2021, Jan Varho # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL...
34.72093
82
0.65288
# Copyright (c) 2017-2021, Jan Varho # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL...
0
1,236
0
545
0
937
0
188
312
b265663df304a61b3067e0245318ce2398d2916f
62,225
py
Python
atomica/excel.py
atomicateam/atomica
de05daf15088e315b89fd62319fa11529d43f8cf
[ "MIT" ]
2
2019-04-16T17:56:01.000Z
2019-09-02T15:53:18.000Z
atomica/excel.py
atomicateam/atomica
de05daf15088e315b89fd62319fa11529d43f8cf
[ "MIT" ]
93
2018-09-20T16:45:22.000Z
2021-11-15T21:59:38.000Z
atomica/excel.py
atomicateam/atomica
de05daf15088e315b89fd62319fa11529d43f8cf
[ "MIT" ]
1
2018-09-22T08:12:53.000Z
2018-09-22T08:12:53.000Z
# -*- coding: utf-8 -*- """ Miscellaneous utility functions for Excel files This module implements utility functions for Excel functionality that is common to different kinds of spreadsheets used in Atomica (e.g. Databooks and Program Books). For example, Excel formatting, and time-varying data entry tables, are imple...
50.060338
324
0.634375
# -*- coding: utf-8 -*- """ Miscellaneous utility functions for Excel files This module implements utility functions for Excel functionality that is common to different kinds of spreadsheets used in Atomica (e.g. Databooks and Program Books). For example, Excel formatting, and time-varying data entry tables, are imple...
0
12,271
0
32,234
0
117
0
66
114
608a1b2bc146a545ac09f27017f85595f7bf2c0b
874
py
Python
pandas1 - Introduction to Pandas/pandas3 - Index Objects.py
jjsalomon/python-analytics
c2b486864451c42cc3ba2aeb75b2c003112f98ee
[ "MIT" ]
null
null
null
pandas1 - Introduction to Pandas/pandas3 - Index Objects.py
jjsalomon/python-analytics
c2b486864451c42cc3ba2aeb75b2c003112f98ee
[ "MIT" ]
null
null
null
pandas1 - Introduction to Pandas/pandas3 - Index Objects.py
jjsalomon/python-analytics
c2b486864451c42cc3ba2aeb75b2c003112f98ee
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu May 25 09:57:51 2017 @author: azkei The index objects are responsible for the labels on the axes and other metadata as the name of the axes. We have already seen as an array containing abels is converted into an Index object We need to specify index option within the construc...
27.3125
85
0.726545
# -*- coding: utf-8 -*- """ Created on Thu May 25 09:57:51 2017 @author: azkei The index objects are responsible for the labels on the axes and other metadata as the name of the axes. We have already seen as an array containing abels is converted into an Index object We need to specify index option within the construc...
0
0
0
0
0
0
0
0
0
a01c124cc3e648290a23255a7ce423d26c6ddcce
3,288
py
Python
hphp/hack/test/hh_codesynthesis/hackgenerator_test.py
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/hh_codesynthesis/hackgenerator_test.py
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
hphp/hack/test/hh_codesynthesis/hackgenerator_test.py
cobbles/hhvm
583f879c7e1be697b1695a4506dd2f7171b921d0
[ "PHP-3.01", "Zend-2.0" ]
null
null
null
#!/usr/bin/env python3 # pyre-strict # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the "hack" directory of this source tree.
30.728972
82
0.645681
#!/usr/bin/env python3 # pyre-strict # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the "hack" directory of this source tree. import unittest from hphp.hack.src.hh_codesynthesis.hackGenerator import ( _HackInterfaceGenerator...
0
0
0
2,844
0
0
0
110
115
503b861d7c212408ed4f7129a7c18effbad99d07
7,980
py
Python
src/poliastro/twobody/propagation.py
y1ngyang/poliastro
4cb694af1ddbd7d6d6b21965b8a6d93f3c35bc84
[ "MIT" ]
1
2018-03-23T04:44:02.000Z
2018-03-23T04:44:02.000Z
src/poliastro/twobody/propagation.py
y1ngyang/poliastro
4cb694af1ddbd7d6d6b21965b8a6d93f3c35bc84
[ "MIT" ]
null
null
null
src/poliastro/twobody/propagation.py
y1ngyang/poliastro
4cb694af1ddbd7d6d6b21965b8a6d93f3c35bc84
[ "MIT" ]
null
null
null
"""Propagation algorithms """ import numpy as np from scipy.integrate import ode from astropy import units as u from poliastro.twobody.rv import rv2coe from poliastro.twobody.classical import coe2rv from poliastro.twobody.angles import nu_to_M, M_to_nu def func_twobody(t0, u_, k, ad): """Differential equation ...
29.446494
102
0.569925
"""Propagation algorithms """ import numpy as np from scipy.integrate import ode from astropy import units as u from poliastro.twobody.rv import rv2coe from poliastro.twobody.classical import coe2rv from poliastro.twobody.angles import nu_to_M, M_to_nu from poliastro.jit import jit from poliastro.stumpff import c2,...
0
1,675
0
0
0
0
0
23
68
946062d7a1bb0d88b3b65ffc60083274c2b9a9f4
10,695
py
Python
me4storage/api/session.py
mjrasobarnett/me4storage
8c876e9a4182aaad440c533f18dab29d9a0fb36d
[ "MIT" ]
null
null
null
me4storage/api/session.py
mjrasobarnett/me4storage
8c876e9a4182aaad440c533f18dab29d9a0fb36d
[ "MIT" ]
2
2021-06-21T13:34:32.000Z
2021-06-21T13:34:36.000Z
me4storage/api/session.py
mjrasobarnett/python-me4storage
8c876e9a4182aaad440c533f18dab29d9a0fb36d
[ "MIT" ]
null
null
null
import logging logger = logging.getLogger(__name__)
37.925532
174
0.561945
import logging import requests import distutils import hashlib import urllib import json from pprint import pformat from requests.packages.urllib3.exceptions import InsecureRequestWarning from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from me4storage.common.exceptions...
0
760
0
9,475
0
0
0
140
267
f55b045449e93d883f20018e03407f2db668e0f2
89,361
py
Python
AnalysisHelpers.py
zzpwahaha/DataCrylsis
b4436435d6ead3322ce54d22e048077732e39e57
[ "MIT" ]
null
null
null
AnalysisHelpers.py
zzpwahaha/DataCrylsis
b4436435d6ead3322ce54d22e048077732e39e57
[ "MIT" ]
null
null
null
AnalysisHelpers.py
zzpwahaha/DataCrylsis
b4436435d6ead3322ce54d22e048077732e39e57
[ "MIT" ]
null
null
null
__version__ = "1.4" import pandas as pd import numpy as np from numpy import array as arr from warnings import warn import matplotlib.pyplot as plt import scipy.optimize as opt import scipy.special as special import warnings import MatplotlibPlotters as mp import PhysicsConstants as mc import Miscellaneous as misc fro...
45.200303
166
0.624266
__version__ = "1.4" import csv import os # for linesep import pandas as pd import numpy as np from numpy import array as arr import h5py as h5 from inspect import signature import uncertainties as unc import uncertainties.unumpy as unp from warnings import warn import matplotlib.pyplot as plt from scipy.optimize impo...
0
0
0
0
0
35,581
0
324
1,319
221508f3702106ee03978243d75c6d6f17271cf7
4,058
py
Python
pymcxray/FileFormat/Results/BeamParameters.py
drix00/pymcxray
bf650aa0f31c635040a6cb79fe1cb7ecf27b8990
[ "Apache-2.0" ]
1
2020-07-23T12:13:30.000Z
2020-07-23T12:13:30.000Z
pymcxray/FileFormat/Results/BeamParameters.py
drix00/pymcxray
bf650aa0f31c635040a6cb79fe1cb7ecf27b8990
[ "Apache-2.0" ]
3
2017-03-05T16:09:30.000Z
2017-03-05T16:11:41.000Z
pymcxray/FileFormat/Results/BeamParameters.py
drix00/pymcxray
bf650aa0f31c635040a6cb79fe1cb7ecf27b8990
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ .. py:currentmodule:: FileFormat.Results.BeamParameters .. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca> MCXRay beam parameters from results file. """ # Script information for the file. __author__ = "Hendrix Demers (hendrix.demers@mail.mcgill.ca)" __version__ = "" ...
29.620438
96
0.661163
#!/usr/bin/env python """ .. py:currentmodule:: FileFormat.Results.BeamParameters .. moduleauthor:: Hendrix Demers <hendrix.demers@mail.mcgill.ca> MCXRay beam parameters from results file. """ # Script information for the file. __author__ = "Hendrix Demers (hendrix.demers@mail.mcgill.ca)" __version__ = "" ...
0
1,265
0
1,765
0
0
0
0
24
8cd8f3790366ea1ff0e6325a4b45b5c26440017b
9,866
py
Python
src/data_analysis/add_basic_files.py
sidhikabalachandar/lig_clash_score
449bac16a7c2b9779e7cd51ff17eb5e41be6ff99
[ "FTL" ]
null
null
null
src/data_analysis/add_basic_files.py
sidhikabalachandar/lig_clash_score
449bac16a7c2b9779e7cd51ff17eb5e41be6ff99
[ "FTL" ]
null
null
null
src/data_analysis/add_basic_files.py
sidhikabalachandar/lig_clash_score
449bac16a7c2b9779e7cd51ff17eb5e41be6ff99
[ "FTL" ]
null
null
null
""" The purpose of this code is to create the raw directory folder and include the following files starting protein receptor starting ligand target ligand glide pose viewer file It can be run on sherlock using /home/groups/rondror/software/sidhikab/miniconda/envs/test_env/bin/python add_basic_files.py create /oak/stan...
60.901235
384
0.600953
""" The purpose of this code is to create the raw directory folder and include the following files starting protein receptor starting ligand target ligand glide pose viewer file It can be run on sherlock using /home/groups/rondror/software/sidhikab/miniconda/envs/test_env/bin/python add_basic_files.py create /oak/stan...
0
0
0
0
0
6,771
0
-18
68
f9d9dc99b943df244aabc292501bcfe8e56c5c0c
821
py
Python
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/separate_specular_color.py
temelkirci/Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
1
2022-03-02T17:07:20.000Z
2022-03-02T17:07:20.000Z
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/separate_specular_color.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
venv/Lib/site-packages/PyOpenGL-3.0.1/OpenGL/raw/GL/EXT/separate_specular_color.py
temelkirci/RealTime_6DOF_Motion_Editor
a8b8d4c4d2dcc9be28385600f56066cef92a38ad
[ "MIT" ]
null
null
null
'''OpenGL extension EXT.separate_specular_color Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import constant from OpenGL import extensions from OpenGL.GL import glget EXTENSION_NAME = 'GL_EXT_separate_specular_color' _DEPRECATED = False GL_LIGHT_MODEL_COLOR_CONTROL_EXT = consta...
41.05
98
0.829476
'''OpenGL extension EXT.separate_specular_color Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import platform, constants, constant, arrays from OpenGL import extensions from OpenGL.GL import glget import ctypes EXTENSION_NAME = 'GL_EXT_separate_specular_color' _DEPRECATED = Fals...
0
0
0
0
0
0
0
21
22
a2c191fede22aa2800d77a599c270cc4a1ee9ec3
240
py
Python
test/apps/native_hello/code.py
TomasMikula/dxWDL
bbbae09850567cc0174ba6358710b201daba4e10
[ "Apache-2.0" ]
31
2017-12-12T01:24:46.000Z
2021-09-10T18:45:12.000Z
test/apps/native_hello/code.py
TomasMikula/dxWDL
bbbae09850567cc0174ba6358710b201daba4e10
[ "Apache-2.0" ]
163
2017-12-01T01:06:24.000Z
2021-12-28T17:10:13.000Z
test/apps/native_hello/code.py
TomasMikula/dxWDL
bbbae09850567cc0174ba6358710b201daba4e10
[ "Apache-2.0" ]
16
2018-02-28T19:29:16.000Z
2022-03-23T14:18:27.000Z
#!/usr/bin/env python dxpy.run()
17.142857
37
0.616667
#!/usr/bin/env python @dxpy.entry_point('main') def main(**job_inputs): who = job_inputs['who'] # Return output greeting = "hello {}".format(who) output = {} output["greeting"] = greeting return output dxpy.run()
0
183
0
0
0
0
0
0
23
13484cb667e0d03759e84bb05dfd552d810d0828
1,169
py
Python
dataviz/dataviz_workspace/parse.py
dornheimer/newcoder
210cc5fe8e6f165b93095ff82f2106e3fc536a1b
[ "Zlib" ]
null
null
null
dataviz/dataviz_workspace/parse.py
dornheimer/newcoder
210cc5fe8e6f165b93095ff82f2106e3fc536a1b
[ "Zlib" ]
null
null
null
dataviz/dataviz_workspace/parse.py
dornheimer/newcoder
210cc5fe8e6f165b93095ff82f2106e3fc536a1b
[ "Zlib" ]
null
null
null
""" Data Visualization Project Parse data from an ugly CSV or Excel file, and render it in JSON, save to a database, and visualize in graph form. Part I: Taking data from a CSV/Excel file, and return it into a format that is easier for Python to play with. Copyright (c) 2013 E. Lynn Root Distributed under the zlib p...
24.87234
70
0.698033
""" Data Visualization Project Parse data from an ugly CSV or Excel file, and render it in JSON, save to a database, and visualize in graph form. Part I: Taking data from a CSV/Excel file, and return it into a format that is easier for Python to play with. Copyright (c) 2013 E. Lynn Root Distributed under the zlib p...
0
0
0
0
0
135
0
0
23
0f06cc8811efbe3def84873e1ffb6e3176bc9937
167
py
Python
strings.py
EnescanAkyuz/Python_Beginner
84c32d39ec0727f39655bd88c57ccdeba1929532
[ "MIT" ]
4
2022-03-16T20:49:07.000Z
2022-03-17T14:55:39.000Z
strings.py
EnescanAkyuz/Python_Beginner
84c32d39ec0727f39655bd88c57ccdeba1929532
[ "MIT" ]
null
null
null
strings.py
EnescanAkyuz/Python_Beginner
84c32d39ec0727f39655bd88c57ccdeba1929532
[ "MIT" ]
null
null
null
name = 'Melek' surname = 'duran' age = '21' greeting = 'My name is '+ name + ' '+ surname + ' and \nI am '+ age + ' years old.' # print(greeting[5]) print(greeting)
18.555556
83
0.586826
name = 'Melek' surname = 'duran' age = '21' greeting = 'My name is '+ name + ' '+ surname + ' and \nI am '+ age + ' years old.' # print(greeting[5]) print(greeting)
0
0
0
0
0
0
0
0
0
88af0cf9d6c6fd0cf9d388ff62929cc1b952f12f
16,568
py
Python
main_processes/frontend/routers/api/v2/models/root.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
5
2022-03-23T21:27:42.000Z
2022-03-24T19:57:27.000Z
main_processes/frontend/routers/api/v2/models/root.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
null
null
null
main_processes/frontend/routers/api/v2/models/root.py
microsoft/nxs
b271c0637576084b36bd0bd397a673fb348913b3
[ "MIT" ]
1
2022-03-23T21:27:44.000Z
2022-03-23T21:27:44.000Z
from fastapi import APIRouter from fastapi.security import APIKeyHeader from main_processes.frontend.args import parse_args args = parse_args() router = APIRouter(prefix="/models") api_key_header = APIKeyHeader(name="X-API-Key", auto_error=True) # FIXME: find a better way to do x-api-key check """ @router.post(...
34.953586
87
0.654273
from fastapi import APIRouter, File, Security, UploadFile from fastapi import HTTPException, status from fastapi import Depends from fastapi.security import APIKeyHeader import time from datetime import datetime from main_processes.frontend.routers.api.v2.pipelines.root import _register_pipeline from main_processes.fr...
0
3,596
9,755
0
0
0
0
350
404
948864644e8a500d93b21a6db5e2f76a88efa1aa
596
py
Python
ngenix_test/processor/__init__.py
adalekin/ngenix-test
8d0b001e614cc6d18002ccd224cb8c3568128774
[ "MIT" ]
null
null
null
ngenix_test/processor/__init__.py
adalekin/ngenix-test
8d0b001e614cc6d18002ccd224cb8c3568128774
[ "MIT" ]
null
null
null
ngenix_test/processor/__init__.py
adalekin/ngenix-test
8d0b001e614cc6d18002ccd224cb8c3568128774
[ "MIT" ]
null
null
null
__all__ = ['Factory'] factory = Factory()
28.380952
112
0.716443
from ngenix_test.processor.dump import DumpProcessor from ngenix_test.processor.report import ReportProcessor __all__ = ['Factory'] class Factory: _processors = {} _supported_processors = (DumpProcessor, ReportProcessor) def get(self, processor_name, args, loop=None): processor = self._processor...
0
0
0
418
0
0
0
66
67
69cde65fc112c2834bf31a6cee430a28862213bc
3,420
py
Python
django-rgd/rgd/serializers.py
ResonantGeoData/ResonantGeoData
72b3d4085cc5700d0ad5556f31b7eb96ed2d3b8a
[ "Apache-2.0" ]
40
2020-05-07T17:15:26.000Z
2022-02-27T14:45:04.000Z
django-rgd/rgd/serializers.py
ResonantGeoData/ResonantGeoData
72b3d4085cc5700d0ad5556f31b7eb96ed2d3b8a
[ "Apache-2.0" ]
408
2020-05-07T15:10:35.000Z
2022-03-30T03:08:47.000Z
django-rgd/rgd/serializers.py
ResonantGeoData/ResonantGeoData
72b3d4085cc5700d0ad5556f31b7eb96ed2d3b8a
[ "Apache-2.0" ]
3
2021-04-12T20:16:22.000Z
2021-06-22T14:03:46.000Z
MODIFIABLE_READ_ONLY_FIELDS = ['modified', 'created'] TASK_EVENT_READ_ONLY_FIELDS = ['status', 'failure_reason'] SPATIAL_ENTRY_EXCLUDE = ['footprint', 'outline']
30
99
0.675146
import json from rest_framework import serializers from . import models MODIFIABLE_READ_ONLY_FIELDS = ['modified', 'created'] TASK_EVENT_READ_ONLY_FIELDS = ['status', 'failure_reason'] SPATIAL_ENTRY_EXCLUDE = ['footprint', 'outline'] class RelatedField(serializers.PrimaryKeyRelatedField): """Handle GET/POST in...
0
0
0
3,015
0
0
0
6
229
3e42ddcd642972a1343f2cc55fb4dcdd1a7f1364
1,078
py
Python
callback-function/python/led-callback.py
StMaHa/raspberry-examples
26200b15e2c1b1c160a6a2edbdd372321c4c8cfe
[ "Unlicense" ]
3
2019-12-09T12:03:24.000Z
2022-01-10T10:24:48.000Z
callback-function/python/led-callback.py
StMaHa/raspberry-examples
26200b15e2c1b1c160a6a2edbdd372321c4c8cfe
[ "Unlicense" ]
null
null
null
callback-function/python/led-callback.py
StMaHa/raspberry-examples
26200b15e2c1b1c160a6a2edbdd372321c4c8cfe
[ "Unlicense" ]
null
null
null
# Bibliotheken und Klassen from gpiozero import LED, Button from gpiozero.pins.pigpio import PiGPIOFactory from time import sleep # GPIO der Status-LED pin_status = 17 # GPIO des Tasters pin_button = 25 status = True led_blink = False my_factory = PiGPIOFactory() # Initialisiere LED am GPIO-Pin 17 l...
25.069767
87
0.689239
# Bibliotheken und Klassen from gpiozero import LED, Button from gpiozero.pins.pigpio import PiGPIOFactory from time import sleep # GPIO der Status-LED pin_status = 17 # GPIO des Tasters pin_button = 25 status = True led_blink = False def stop_function(): # Callback Funktion zum Programm beenden ...
2
0
0
0
0
190
0
0
50
c51e864302bf094e9727d98f6d6bd2b9b377e2d9
4,380
py
Python
.rez/build_all.py
mottosso/rez-for-projects
787146cea2a86a3193ec74d568b41b1f5fb75fd2
[ "MIT" ]
37
2019-04-20T15:12:06.000Z
2022-03-15T09:49:47.000Z
.rez/build_all.py
mottosso/rez-for-projects
787146cea2a86a3193ec74d568b41b1f5fb75fd2
[ "MIT" ]
1
2019-06-17T06:09:39.000Z
2019-06-17T06:09:39.000Z
.rez/build_all.py
mottosso/rez-for-projects
787146cea2a86a3193ec74d568b41b1f5fb75fd2
[ "MIT" ]
7
2019-04-24T04:14:08.000Z
2021-09-19T20:59:59.000Z
import os import sys import time import shutil import argparse import collections dirname = os.path.dirname(__file__) repodir = os.path.dirname(dirname) packages_path = os.environ["REZ_RELEASE_PACKAGES_PATH"] # Some packages depend on other packages # having been built first. order = [ "rezutil", "welcome", ...
24.606742
74
0.513927
import os import sys import time import shutil import argparse import contextlib import subprocess import collections dirname = os.path.dirname(__file__) repodir = os.path.dirname(dirname) packages_path = os.environ["REZ_RELEASE_PACKAGES_PATH"] # Some packages depend on other packages # having been built first. orde...
0
79
0
0
0
893
0
-8
113
80b9a107578d2a39636ecb8b4c4ccfa3995478d9
1,136
py
Python
restructure_csv.py
shuvamlal9/download_audioset
fdcc8baeaf1f6884b6e95ccacb1cd59603c8c973
[ "Apache-2.0" ]
58
2019-02-15T06:42:25.000Z
2022-02-07T05:44:48.000Z
restructure_csv.py
shuvamlal9/download_audioset
fdcc8baeaf1f6884b6e95ccacb1cd59603c8c973
[ "Apache-2.0" ]
7
2018-11-08T20:09:19.000Z
2021-09-03T12:35:19.000Z
restructure_csv.py
shuvamlal9/download_audioset
fdcc8baeaf1f6884b6e95ccacb1cd59603c8c973
[ "Apache-2.0" ]
18
2019-09-25T04:46:57.000Z
2021-08-04T11:54:40.000Z
# YouTube restructure import xlsxwriter from tqdm import tqdm g=open('unbalanced_train_segments.csv').read() h=g.split('\n') ids=list() starts=list() ends=list() classes=list() for i in tqdm(range(len(h)), desc='reading data'): try: temp=h[i].split(', ') # print(temp) id_=temp[0] start=temp[1] end=temp[2...
22.27451
64
0.660211
# YouTube restructure import os, time import xlsxwriter from tqdm import tqdm g=open('unbalanced_train_segments.csv').read() h=g.split('\n') ids=list() starts=list() ends=list() classes=list() for i in tqdm(range(len(h)), desc='reading data'): try: temp=h[i].split(', ') # print(temp) id_=temp[0] start=temp...
0
0
0
0
0
0
0
-6
22
cd48ffad8f68cb87be76a6e7f4851a0947bfb440
888
py
Python
src/apps/trainings/migrations/0004_auto_20200601_2052.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
27
2020-05-03T11:01:27.000Z
2022-03-17T05:33:10.000Z
src/apps/trainings/migrations/0004_auto_20200601_2052.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
54
2020-05-09T01:18:41.000Z
2022-01-22T10:31:15.000Z
src/apps/trainings/migrations/0004_auto_20200601_2052.py
sanderland/katago-server
6414fab080d007c05068a06ff4f25907b92848bd
[ "MIT" ]
9
2020-09-29T11:31:32.000Z
2022-03-09T01:37:50.000Z
# Generated by Django 3.0.6 on 2020-06-01 20:52 import src.contrib.validators
38.608696
296
0.709459
# Generated by Django 3.0.6 on 2020-06-01 20:52 import django.core.files.storage from django.db import migrations, models import src.contrib.validators import src.apps.trainings.models.network class Migration(migrations.Migration): dependencies = [ ('trainings', '0003_auto_20200511_0248'), ] op...
0
0
0
670
0
0
0
49
90
76aa2f7f39a5f5114bb594ec124f169c2721cd69
6,194
py
Python
src/correctionlib/cli.py
Lvigilante/correctionlib
5c426e44faa34e939fd1a7cc2df95f7424498211
[ "BSD-3-Clause" ]
5
2021-06-10T10:50:29.000Z
2022-03-16T10:14:48.000Z
src/correctionlib/cli.py
Lvigilante/correctionlib
5c426e44faa34e939fd1a7cc2df95f7424498211
[ "BSD-3-Clause" ]
42
2021-03-17T21:48:33.000Z
2022-03-04T09:50:54.000Z
src/correctionlib/cli.py
Lvigilante/correctionlib
5c426e44faa34e939fd1a7cc2df95f7424498211
[ "BSD-3-Clause" ]
6
2021-03-23T08:57:55.000Z
2022-03-13T18:14:33.000Z
"""Command-line interface to correctionlib """ import argparse from rich.console import Console from correctionlib.highlevel import model_auto, open_auto def validate(console: Console, args: argparse.Namespace) -> int: """Check if all files are valid""" retcode = 0 for file in args.files: try: ...
31.927835
110
0.626413
"""Command-line interface to correctionlib """ import argparse import sys from rich.console import Console import correctionlib.version from correctionlib.highlevel import model_auto, open_auto def validate(console: Console, args: argparse.Namespace) -> int: """Check if all files are valid""" retcode = 0 ...
0
0
0
0
0
4,916
0
-4
229
1b45e6b4e48c5981448c4e3d2cac8c97bceddcbc
5,116
py
Python
test/test_config.py
dtweet/platform_cli
89c1c29096551f0490c3fb81b47d4f4cdaa3aca4
[ "Apache-2.0" ]
1
2017-05-03T07:16:17.000Z
2017-05-03T07:16:17.000Z
test/test_config.py
dtweet/platform_cli
89c1c29096551f0490c3fb81b47d4f4cdaa3aca4
[ "Apache-2.0" ]
null
null
null
test/test_config.py
dtweet/platform_cli
89c1c29096551f0490c3fb81b47d4f4cdaa3aca4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Copyright (C) 2013 Jive Software. All rights reserved.
40.603175
114
0.652072
#!/usr/bin/env python # Copyright (C) 2013 Jive Software. All rights reserved. import logging import mock import os import StringIO import sys import unittest from platform_cli import config, protected_file_path def get_mock_open_func(file_contents_map=None, exceptions_map=None): class ContextStringIO(StringIO.S...
0
0
0
4,467
0
377
0
-21
203
86440dd8defb0c17517ba45491f71bf7fe7f3aed
1,108
py
Python
inverted index/spark.py
PaulRaUnite/parall-distr-systems
6fe5aa7f12e622bb2686a12891b0d942c9df70f9
[ "MIT" ]
null
null
null
inverted index/spark.py
PaulRaUnite/parall-distr-systems
6fe5aa7f12e622bb2686a12891b0d942c9df70f9
[ "MIT" ]
null
null
null
inverted index/spark.py
PaulRaUnite/parall-distr-systems
6fe5aa7f12e622bb2686a12891b0d942c9df70f9
[ "MIT" ]
null
null
null
import os import re from pyspark import SparkContext from pyspark.rdd import PipelinedRDD from pyspark.sql import SparkSession if __name__ == "__main__": spark = SparkSession.builder.appName("Inverted index").getOrCreate() sc: SparkContext = spark.sparkContext header_re = re.compile(r"[\w-]+:.+") wor...
35.741935
99
0.615523
import os import re from pyspark import SparkContext from pyspark.rdd import PipelinedRDD from pyspark.sql import SparkSession, DataFrame from pyspark.sql.types import StructType, StructField, StringType, ArrayType, IntegerType if __name__ == "__main__": spark = SparkSession.builder.appName("Inverted index").getO...
0
0
0
0
225
0
0
79
49
b808bc3f3e0bef2b4340175d85b89f6f9045b85b
629
py
Python
JuneLong19/python challenge.py
mayank-kumar-giri/Competitive-Coding
4cd26ede051bad15bf25cfd037317c313b607507
[ "MIT" ]
null
null
null
JuneLong19/python challenge.py
mayank-kumar-giri/Competitive-Coding
4cd26ede051bad15bf25cfd037317c313b607507
[ "MIT" ]
null
null
null
JuneLong19/python challenge.py
mayank-kumar-giri/Competitive-Coding
4cd26ede051bad15bf25cfd037317c313b607507
[ "MIT" ]
null
null
null
fp = open("data.txt","r+") s = "" for i in fp: s += i fin = "" ans = "" for i in range(1,len(s)): if s[i-1].islower() and s[i].isupper() and s[i+1].isupper() and s[i+2].isupper() and s[i+3].islower() and s[i+4].isupper() and s[i+5].isupper() and s[i+6].isupper() and s[i+7].islower(): ans = s[i:i+7] ...
19.65625
190
0.505564
fp = open("data.txt","r+") s = "" for i in fp: s += i fin = "" ans = "" for i in range(1,len(s)): if s[i-1].islower() and s[i].isupper() and s[i+1].isupper() and s[i+2].isupper() and s[i+3].islower() and s[i+4].isupper() and s[i+5].isupper() and s[i+6].isupper() and s[i+7].islower(): ans = s[i:i+7] ...
0
0
0
0
0
0
0
0
0
8a222e1bc9f05c24e75e5bfe4437659ff89b18c2
3,281
py
Python
tests/integration/output/output.py
fictivekin/salt
f4b6f815d47ab8c790028e8ddad64ee0f8bb3f00
[ "Apache-2.0" ]
2
2015-09-21T14:13:30.000Z
2016-02-12T11:33:46.000Z
tests/integration/output/output.py
fictivekin/salt
f4b6f815d47ab8c790028e8ddad64ee0f8bb3f00
[ "Apache-2.0" ]
1
2019-09-06T13:57:28.000Z
2019-09-06T13:57:28.000Z
tests/integration/output/output.py
fictivekin/salt
f4b6f815d47ab8c790028e8ddad64ee0f8bb3f00
[ "Apache-2.0" ]
2
2017-01-05T16:14:59.000Z
2019-01-31T23:15:25.000Z
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Nicole Thomas <nicole@saltstack.com>` ''' # Import Salt Libs from __future__ import absolute_import # Import Salt Testing Libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import Salt libs import salt.config if __name__ == '_...
29.035398
91
0.598903
# -*- coding: utf-8 -*- ''' :codeauthor: :email:`Nicole Thomas <nicole@saltstack.com>` ''' # Import Salt Libs from __future__ import absolute_import import os import traceback # Import Salt Testing Libs from salttesting.helpers import ensure_in_syspath from salttesting.mixins import RUNTIME_VARS ensure_in_syspat...
24
0
0
2,698
0
0
0
16
155
3b91389a609a69861a26a8bd004cf4c383315e30
5,473
py
Python
ansible/modules/kong/kong_consumer.py
Gomer05/ansible-kong-module
2cdca005ca98060b41002e7cafc042950803f0b1
[ "MIT" ]
null
null
null
ansible/modules/kong/kong_consumer.py
Gomer05/ansible-kong-module
2cdca005ca98060b41002e7cafc042950803f0b1
[ "MIT" ]
null
null
null
ansible/modules/kong/kong_consumer.py
Gomer05/ansible-kong-module
2cdca005ca98060b41002e7cafc042950803f0b1
[ "MIT" ]
2
2020-10-29T14:22:24.000Z
2020-10-29T15:45:02.000Z
DOCUMENTATION = ''' --- module: kong_consumer short_description: Configure a Kong Consumer object. ''' EXAMPLES = ''' Setting custom_id's on Consumers is currently not supported; their usefulness is limited, and they require more lookups (round-trips) for actions that require either a username or the consumer's UUID....
31.819767
101
0.602046
from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.dotdiff import dotdiff from ansible.module_utils.kong.consumer import KongConsumer from ansible.module_utils.kong.helpers import * DOCUMENTATION = ''' --- module: kong_consumer short_description: Configure a Kong Consumer object. ''' EXAMP...
0
0
0
0
0
4,420
0
122
111
bff483c80420f5b20f1d9cbd60895be7ee2ad274
19,269
py
Python
lib/ilp_utils.py
51alg/TerpreT
a8e461ea20c4203b454e326b50baf491dccf48d0
[ "MIT" ]
37
2017-08-08T06:28:13.000Z
2022-03-09T16:01:38.000Z
lib/ilp_utils.py
nayname/TerpreT
a8e461ea20c4203b454e326b50baf491dccf48d0
[ "MIT" ]
2
2017-08-11T15:18:51.000Z
2020-01-07T02:48:05.000Z
lib/ilp_utils.py
51alg/TerpreT
a8e461ea20c4203b454e326b50baf491dccf48d0
[ "MIT" ]
9
2017-07-18T15:24:06.000Z
2021-10-09T05:58:37.000Z
import re one_index_re = re.compile("[a-zA-Z0-9]+_(\d+)_<.+") two_index_re = re.compile("[a-zA-Z0-9]+_(\d+)_(\d+)_<.+") three_index_re = re.compile("[a-zA-Z0-9]+_(\d+)_(\d+)_(\d+)_<.+") one_index_re2 = re.compile("[a-zA-Z0-9]+_(\d+)_?$") two_index_re2 = re.compile("[a-zA-Z0-9]+_(\d+)_(\d+)_?$") three_index_re2 = re.c...
35.815985
197
0.60657
import numpy as np import re import astunparse import ast import sys import utils as u import pdb one_index_re = re.compile("[a-zA-Z0-9]+_(\d+)_<.+") two_index_re = re.compile("[a-zA-Z0-9]+_(\d+)_(\d+)_<.+") three_index_re = re.compile("[a-zA-Z0-9]+_(\d+)_(\d+)_(\d+)_<.+") one_index_re2 = re.compile("[a-zA-Z0-9]+_(\d...
0
0
0
17,226
0
1,336
0
-44
339
a0942c33ebdc0d5bbd9dde98735ea4244c2fca3c
378
py
Python
scrapybox/crawler/settings.py
stav/scrapybox
3f6093d82d2f73096ae4af3d0390bed398424101
[ "BSD-3-Clause" ]
9
2016-03-29T03:43:22.000Z
2020-10-26T04:48:26.000Z
scrapybox/crawler/settings.py
stav/scrapybox
3f6093d82d2f73096ae4af3d0390bed398424101
[ "BSD-3-Clause" ]
1
2017-07-08T11:23:45.000Z
2017-10-25T17:15:20.000Z
scrapybox/crawler/settings.py
stav/scrapybox
3f6093d82d2f73096ae4af3d0390bed398424101
[ "BSD-3-Clause" ]
1
2017-01-01T06:11:46.000Z
2017-01-01T06:11:46.000Z
""" Scrapybox crawler settings """ BOT_NAME = 'Scrapybox' SPIDER_MODULES = ['scrapybox.crawler.spiders'] NEWSPIDER_MODULE = 'scrapybox.crawler.spiders' USER_AGENT = 'Mozilla/4.0 Scrapybox (Linux x86_64) Scrapy/1.2.0dev2 Python/3.5.0+' ROBOTSTXT_OBEY = True CONCURRENT_REQUESTS = 1 HTTPCACHE_ENABLED = True LOG_STDO...
18
82
0.756614
""" Scrapybox crawler settings """ BOT_NAME = 'Scrapybox' SPIDER_MODULES = ['scrapybox.crawler.spiders'] NEWSPIDER_MODULE = 'scrapybox.crawler.spiders' USER_AGENT = 'Mozilla/4.0 Scrapybox (Linux x86_64) Scrapy/1.2.0dev2 Python/3.5.0+' ROBOTSTXT_OBEY = True CONCURRENT_REQUESTS = 1 HTTPCACHE_ENABLED = True LOG_STDO...
0
0
0
0
0
0
0
0
0
81808eeab4f1c03c15dc69b438d86fb3cde13af0
1,907
py
Python
Lib/fontTools/ttLib/tables/T_S_I__0.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
240
2021-01-11T14:49:24.000Z
2022-03-29T22:33:49.000Z
Lib/fontTools/ttLib/tables/T_S_I__0.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
77
2021-01-12T20:23:30.000Z
2022-03-28T12:14:34.000Z
Lib/fontTools/ttLib/tables/T_S_I__0.py
twardoch/fonttools-py27
75b852d3f59fc0d03c6e78581530597d4c6368a1
[ "MIT", "BSD-3-Clause" ]
28
2021-01-17T05:44:11.000Z
2022-01-11T19:58:46.000Z
""" TSI{0,1,2,3,5} are private tables used by Microsoft Visual TrueType (VTT) tool to store its hinting source data. TSI0 is the index table containing the lengths and offsets for the glyph programs and 'extra' programs ('fpgm', 'prep', and 'cvt') that are contained in the TSI1 table. """ from __future__ import print_...
33.45614
86
0.726272
""" TSI{0,1,2,3,5} are private tables used by Microsoft Visual TrueType (VTT) tool to store its hinting source data. TSI0 is the index table containing the lengths and offsets for the glyph programs and 'extra' programs ('fpgm', 'prep', and 'cvt') that are contained in the TSI1 table. """ from __future__ import print_...
0
0
0
1,333
0
75
0
9
112
e2f2d08b82fbc6b22a453ea7668856f43e2f3611
440
py
Python
codes_tips/classes.py
GloryPassarello/Python
e08df3f0ac1f6376ea08740fa7d674d68c69f448
[ "CNRI-Python", "AAL" ]
null
null
null
codes_tips/classes.py
GloryPassarello/Python
e08df3f0ac1f6376ea08740fa7d674d68c69f448
[ "CNRI-Python", "AAL" ]
null
null
null
codes_tips/classes.py
GloryPassarello/Python
e08df3f0ac1f6376ea08740fa7d674d68c69f448
[ "CNRI-Python", "AAL" ]
null
null
null
##usiing classes #to use a class a need to create a object primo = test() secondo = test() terzo = test() primo.name_call('luca') secondo.name_call('anakin') terzo.name_call('buddy') primo.introd() secondo.introd() terzo.introd() print primo.display()
16.923077
42
0.654545
class test: def name_call(self, name): self.name = name def display(self): return self.name def introd(self): print "Hello, I am %s" % self.name ##usiing classes #to use a class a need to create a object primo = test() secondo = test() terzo = test() primo.name_call('luca') sec...
0
0
0
159
0
0
0
0
22
23d36eba8c1cbeffc890c71a69e987274694af0f
9,671
py
Python
gym/envs/toy_text/exReplaySample.py
Inzamam93/gym
8e42afbf75552e82fe0ce98ec33e8c29659947fb
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
gym/envs/toy_text/exReplaySample.py
Inzamam93/gym
8e42afbf75552e82fe0ce98ec33e8c29659947fb
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
gym/envs/toy_text/exReplaySample.py
Inzamam93/gym
8e42afbf75552e82fe0ce98ec33e8c29659947fb
[ "Python-2.0", "OLDAP-2.7" ]
null
null
null
import gym import time import tensorflow as tf import numpy as np microtime = lambda: int(round(time.time() * 1000)) start_t = microtime() # Setup train = True batch_train = True test = True pre_train_steps = 5000 train_freq = 1 num_episodes = 1000 num_episodes_test = 100 num_steps = 100 ...
32.56229
116
0.491469
import gym import os import random import time import pickle import tensorflow as tf import numpy as np import matplotlib.pyplot as plt microtime = lambda: int(round(time.time() * 1000)) start_t = microtime() class ExperienceBuffer(): def __init__(self, buf_size): self.buf_size = buf_size ...
0
0
0
2,308
0
0
0
-18
142
62dc457c9a4fb1c8cf1a54cdb1f4d3e56e0b73b1
4,025
py
Python
oxide/plugins/other/BanSync.py
john-clark/rust-oxide-umod
56feca04f96d8a43a1b56e080fc81d526f7471c3
[ "MIT" ]
13
2019-05-13T08:03:50.000Z
2022-02-06T16:44:35.000Z
oxide/plugins/other/BanSync.py
john-clark/rust-oxide-umod
56feca04f96d8a43a1b56e080fc81d526f7471c3
[ "MIT" ]
null
null
null
oxide/plugins/other/BanSync.py
john-clark/rust-oxide-umod
56feca04f96d8a43a1b56e080fc81d526f7471c3
[ "MIT" ]
8
2019-12-12T15:48:03.000Z
2021-12-24T17:04:45.000Z
import ServerUsers default_cfg = { "host": "localhost", "port": 3306, "database": "bansync", "user": "root", "password": "CHANGEME" } banlist = lambda: {ban.steamid:ban for ban in ServerUsers.GetAll(ServerUsers.UserGroup.Banned)}
37.971698
161
0.693665
import ServerUsers import BasePlayer default_cfg = { "host": "localhost", "port": 3306, "database": "bansync", "user": "root", "password": "CHANGEME" } banlist = lambda: {ban.steamid:ban for ban in ServerUsers.GetAll(ServerUsers.UserGroup.Banned)} def bandiff(old, new): old_ids = set(old) new_ids = set(new) ...
0
0
0
3,485
0
194
0
-4
114
f0fc4dfd31c339cdd1b24a145e0471883c794a65
1,192
py
Python
tests/terraform/graph/checks_infra/connection_solvers/connection_exist_solver/test_solver.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
4,013
2019-12-09T13:16:54.000Z
2022-03-31T14:31:01.000Z
tests/terraform/graph/checks_infra/connection_solvers/connection_exist_solver/test_solver.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
1,258
2019-12-17T09:55:51.000Z
2022-03-31T19:17:17.000Z
tests/terraform/graph/checks_infra/connection_solvers/connection_exist_solver/test_solver.py
vangundy-jason-pfg/checkov
2fb50908f62390c98dda665f1fa94fe24806b654
[ "Apache-2.0" ]
638
2019-12-19T08:57:38.000Z
2022-03-30T21:38:37.000Z
import os TEST_DIRNAME = os.path.dirname(os.path.realpath(__file__))
41.103448
100
0.722315
import os from tests.terraform.graph.checks_infra.test_base import TestBaseSolver TEST_DIRNAME = os.path.dirname(os.path.realpath(__file__)) class ConnectionSolver(TestBaseSolver): def setUp(self): self.checks_dir = TEST_DIRNAME super(ConnectionSolver, self).setUp() def test_connection_found...
0
0
0
1,026
0
0
0
50
45
fc6c4c1a7f54f7656812f0dd9a318381b7f3378f
7,139
py
Python
DataPrev/joinAll.py
TRBaldim/Spark
7b2230f7932999ade7ec9913830fbfc8041cedbb
[ "Apache-2.0" ]
null
null
null
DataPrev/joinAll.py
TRBaldim/Spark
7b2230f7932999ade7ec9913830fbfc8041cedbb
[ "Apache-2.0" ]
null
null
null
DataPrev/joinAll.py
TRBaldim/Spark
7b2230f7932999ade7ec9913830fbfc8041cedbb
[ "Apache-2.0" ]
null
null
null
#Version 0.0.0 fEnd = sc.textFile("/u01/data/base/ENDERECOS") fPF = sc.textFile("/u01/data/base/PESSOAS_FISICAS") fCert = sc.textFile("/u01/data/base/CERTIDOES_CIVIS") fRes = sc.textFile("/u01/data/base/RESUMO_RELACOES_TRABALHISTAS") ''' CERTIDOES_CIVIS_PART ''' #Retorno da Linha: [[id_certidao_civil, id_pessoa...
29.5
275
0.626278
#Version 0.0.0 def getEvents (a, b): try: return a.append(b[0]) except: return a def filterByEvent (line): try: if str(line[2]).strip() != '': return (str(line[1]).strip(), str(line[2]).strip() + ";" +str(line[0]).strip()) elif str(line[3]).strip() != '': return (str(line[1]).strip(), str(line[3]).st...
12
0
0
0
0
2,864
0
0
253
0056ed4172a2d9345b641cb4d4549afe94e4052d
535
py
Python
setup.py
MattB17/FinanceML
f24617cf2b08ec09c9b37a09b651bd43bdc4e30c
[ "Apache-2.0" ]
null
null
null
setup.py
MattB17/FinanceML
f24617cf2b08ec09c9b37a09b651bd43bdc4e30c
[ "Apache-2.0" ]
null
null
null
setup.py
MattB17/FinanceML
f24617cf2b08ec09c9b37a09b651bd43bdc4e30c
[ "Apache-2.0" ]
null
null
null
from setuptools import setup, find_packages from os import path from io import open # Get current directory and long description from README current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, "README.md")) as f: longDescription = f.read() # the setup setup( name="FinanceML", ...
26.75
64
0.730841
from setuptools import setup, find_packages from os import path from io import open # Get current directory and long description from README current_dir = path.abspath(path.dirname(__file__)) with open(path.join(current_dir, "README.md")) as f: longDescription = f.read() # the setup setup( name="FinanceML", ...
0
0
0
0
0
0
0
0
0
0c6c41d104e77f75e040b4a7c790abaee5648326
443
py
Python
sympde/expr/errors.py
pyccel/sympde
69e6a6634b2045d46286a0453cb66deab5f2e76c
[ "MIT" ]
12
2018-09-02T17:50:19.000Z
2022-03-08T01:26:47.000Z
sympde/expr/errors.py
pyccel/sympde
69e6a6634b2045d46286a0453cb66deab5f2e76c
[ "MIT" ]
51
2019-08-18T14:50:01.000Z
2021-09-16T13:54:58.000Z
sympde/expr/errors.py
pyccel/sympde
69e6a6634b2045d46286a0453cb66deab5f2e76c
[ "MIT" ]
3
2019-10-04T18:05:48.000Z
2020-10-17T02:15:10.000Z
# coding: utf-8
21.095238
59
0.778781
# coding: utf-8 class UnconsistentError(Exception): def __init__(self,*args,**kwargs): Exception.__init__(self,*args,**kwargs) class UnconsistentLhsError(UnconsistentError): pass class UnconsistentRhsError(UnconsistentError): pass class UnconsistentBCError(UnconsistentError): pass class Unc...
0
0
0
289
0
0
0
0
138
ceb60516895f39a4f6c09cb4ab6e032d2b010687
454
py
Python
tests/library/series/seriesinfo/__init__.py
stampedeboss/DadVision2
572d377086f7f356d24f60493cdbb655f5729e8d
[ "Apache-2.0" ]
1
2021-02-26T19:43:06.000Z
2021-02-26T19:43:06.000Z
tests/library/series/seriesinfo/__init__.py
stampedeboss/DadVision2
572d377086f7f356d24f60493cdbb655f5729e8d
[ "Apache-2.0" ]
null
null
null
tests/library/series/seriesinfo/__init__.py
stampedeboss/DadVision2
572d377086f7f356d24f60493cdbb655f5729e8d
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- ''' Initialization Routine for library Routine is call on any import of a module in the library ''' __pgmname__ = '__init__' __version__ = '@version: $Rev: 383 $' __author__ = "@author: AJ Reynolds" __copyright__ = "@copyright: Copyright 2014, AJ Reynolds" __license__...
21.619048
60
0.64978
# -*- coding: UTF-8 -*- ''' Initialization Routine for library Routine is call on any import of a module in the library ''' __pgmname__ = '__init__' __version__ = '@version: $Rev: 383 $' __author__ = "@author: AJ Reynolds" __copyright__ = "@copyright: Copyright 2014, AJ Reynolds" __license__...
0
0
0
0
0
0
0
0
0
25666598f26c0fbdc684d227cbd9f73fc15a5543
2,935
py
Python
run.py
udeyrishi/udeyrishi.github.io
64083bc7b61e6fccb1fcf55adbed933f4d5b2688
[ "MIT" ]
null
null
null
run.py
udeyrishi/udeyrishi.github.io
64083bc7b61e6fccb1fcf55adbed933f4d5b2688
[ "MIT" ]
4
2021-01-19T22:21:14.000Z
2022-02-26T04:51:15.000Z
run.py
udeyrishi/udeyrishi.github.io
64083bc7b61e6fccb1fcf55adbed933f4d5b2688
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 import argparse import sys import logging logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) if __name__ == '__main__': parser = argparse.ArgumentParser(description='build and start the Jekyll site') parser.add_argument('-r', '--refetch', help...
29.35
114
0.645315
#!/usr/bin/env python2 import argparse from subprocess import call, check_output, CalledProcessError, Popen import re import sys import logging from functools import total_ordering import signal logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) def main(args): min_ruby_ver...
0
518
0
0
0
1,774
0
42
180
e3854a2172cb5cfab5462f73d3b2256f6915556d
4,751
py
Python
altFACS/counts.py
BoHuangLab/altFACS
40018a8021f6f776e10539b794cf22838f0a0b9b
[ "MIT" ]
null
null
null
altFACS/counts.py
BoHuangLab/altFACS
40018a8021f6f776e10539b794cf22838f0a0b9b
[ "MIT" ]
9
2020-12-06T17:04:36.000Z
2021-02-02T17:49:44.000Z
altFACS/counts.py
BoHuangLab/altFACS
40018a8021f6f776e10539b794cf22838f0a0b9b
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd import matplotlib.pyplot as plt def combineGates(df: pd.DataFrame, gate1: str, gate2: str): ''' Combine boolean 'gate' columns on annotated dataframe. Parameters: df: pd.DataFrame FACS data. gate1: str Name of gate1 column. Assumes a waveleng...
27.148571
120
0.617975
import sys import numpy as np import pandas as pd import matplotlib.pyplot as plt def combineGates(df: pd.DataFrame, gate1: str, gate2: str): ''' Combine boolean 'gate' columns on annotated dataframe. Parameters: df: pd.DataFrame FACS data. gate1: str Name of gate1 column. Assumes...
0
0
0
0
0
0
0
-11
22
76e8f294acdd5c7c4c80d67661e2277d89f9abb2
5,644
py
Python
src/simian/mac/munki/handlers/pkgs.py
tristansgray/simian
fb9c43946ff7ba29be417068d6447cfc0adfe9ef
[ "Apache-2.0" ]
326
2015-01-06T10:55:26.000Z
2019-01-23T17:59:18.000Z
src/simian/mac/munki/handlers/pkgs.py
tristansgray/simian
fb9c43946ff7ba29be417068d6447cfc0adfe9ef
[ "Apache-2.0" ]
64
2015-01-06T13:24:52.000Z
2018-10-16T18:02:37.000Z
src/simian/mac/munki/handlers/pkgs.py
isabella232/simian
fb9c43946ff7ba29be417068d6447cfc0adfe9ef
[ "Apache-2.0" ]
65
2015-01-24T11:50:41.000Z
2018-08-16T17:47:25.000Z
#!/usr/bin/env python # # Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
34.206061
79
0.696492
#!/usr/bin/env python # # Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
0
0
0
4,386
0
0
0
99
246
9c81e6ce6ec2f54b72859d36f4173e394bafcedc
1,736
py
Python
controler.py
TheJostler/CheekyKitten
3088109958ed1ac7c4e4526063af001e9225bc3b
[ "MIT" ]
1
2022-01-07T19:43:18.000Z
2022-01-07T19:43:18.000Z
controler.py
TheJostler/CheekyKitten
3088109958ed1ac7c4e4526063af001e9225bc3b
[ "MIT" ]
null
null
null
controler.py
TheJostler/CheekyKitten
3088109958ed1ac7c4e4526063af001e9225bc3b
[ "MIT" ]
null
null
null
import subprocess import argparse parser=argparse.ArgumentParser( description='''This is a controller for Cheeky Kitten, to run preprogramed operations :-). ''', epilog="""Beta Version 0.3 Josjuar Lister 2021-2022""") parser.add_argument('file', metavar='file', nargs='+') parser.add_argument('-d', '--double', ...
32.754717
214
0.646889
import sys import subprocess import argparse parser=argparse.ArgumentParser( description='''This is a controller for Cheeky Kitten, to run preprogramed operations :-). ''', epilog="""Beta Version 0.3 Josjuar Lister 2021-2022""") parser.add_argument('file', metavar='file', nargs='+') parser.add_argument('-d', '...
0
0
0
0
0
329
0
-11
45
9d18366a6f4d7c7cd36cc225520ceb65b773b339
321
py
Python
src/serverglob.py
mrdrivingduck/scapy-web-server
7092000ff05ac16825664b7030e18ed5ee73444e
[ "MIT" ]
null
null
null
src/serverglob.py
mrdrivingduck/scapy-web-server
7092000ff05ac16825664b7030e18ed5ee73444e
[ "MIT" ]
5
2019-01-10T14:55:06.000Z
2019-01-10T15:10:19.000Z
src/serverglob.py
mrdrivingduck/scapy-web-server
7092000ff05ac16825664b7030e18ed5ee73444e
[ "MIT" ]
2
2019-01-02T03:01:42.000Z
2020-08-03T00:45:01.000Z
""" @author - Mr Dk. @version - 2018.12.31 @function - Global variables. """ import os from config import Config from util.ringbuffer import RingBuffer root_dir = os.path.dirname(os.path.abspath('.')) conf = Config(root_dir + "/conf/localDebugConfig.ini") buff = RingBuffer(conf.get_buffer_size())...
21.4
54
0.685358
""" @author - Mr Dk. @version - 2018.12.31 @function - Global variables. """ import os from config import Config from util.ringbuffer import RingBuffer root_dir = os.path.dirname(os.path.abspath('.')) conf = Config(root_dir + "/conf/localDebugConfig.ini") buff = RingBuffer(conf.get_buffer_size())...
0
0
0
0
0
0
0
0
0
fc075bf1d49e45a742a2cd4a157d802637e4f5c9
1,359
py
Python
autorest/python/emsapi/models/adi_ems_web_shared_tableau_rest_user.py
ge-flight-analytics/ems-api-wrappers
5e787e0cbc72e7a3b06fa83ff6ba07968231f89c
[ "MIT" ]
2
2017-02-20T18:32:02.000Z
2018-08-01T11:45:29.000Z
autorest/python/emsapi/models/adi_ems_web_shared_tableau_rest_user.py
ge-flight-analytics/ems-api-wrappers
5e787e0cbc72e7a3b06fa83ff6ba07968231f89c
[ "MIT" ]
10
2017-02-20T16:17:04.000Z
2019-04-02T16:52:49.000Z
autorest/python/emsapi/models/adi_ems_web_shared_tableau_rest_user.py
ge-flight-analytics/ems-api-wrappers
5e787e0cbc72e7a3b06fa83ff6ba07968231f89c
[ "MIT" ]
2
2017-02-18T23:22:20.000Z
2017-02-20T19:35:38.000Z
# 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. # --------------------------------------------------------------------------
33.146341
104
0.573216
# 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
981
0
0
0
17
46
24ac4af0aabb8b12db26e2c7527bd2397c567b44
1,813
py
Python
itassets/utils_meraki.py
dbca-wa/it-assets
7c97468f32cad57cdd935639ce2482cc40e4f21e
[ "Apache-2.0" ]
4
2018-11-16T13:49:49.000Z
2021-08-19T05:16:50.000Z
itassets/utils_meraki.py
dbca-wa/it-assets
7c97468f32cad57cdd935639ce2482cc40e4f21e
[ "Apache-2.0" ]
10
2018-07-06T09:34:56.000Z
2022-01-28T06:09:05.000Z
itassets/utils_meraki.py
dbca-wa/it-assets
7c97468f32cad57cdd935639ce2482cc40e4f21e
[ "Apache-2.0" ]
9
2018-05-05T23:29:10.000Z
2020-06-26T02:29:17.000Z
from django.conf import settings import requests MERAKI_AUTH_HEADERS = { 'X-Cisco-Meraki-API-Key': settings.MERAKI_API_KEY, 'Content-Type': 'application/json', } def get_meraki_clients(network_id, timespan=1209600): """timespan is in seconds, default value is 14 days. """ url = f'https://api.m...
33.574074
290
0.681743
from django.conf import settings import requests from itassets.utils import human_time_duration MERAKI_AUTH_HEADERS = { 'X-Cisco-Meraki-API-Key': settings.MERAKI_API_KEY, 'Content-Type': 'application/json', } def get_meraki_orgs(): url = 'https://api.meraki.com/api/v1/organizations' resp = requests....
0
0
0
0
0
965
0
25
91
23061dccb26b2038fcdca136766e1bcd140c4e54
1,286
py
Python
utils/merge_list.py
xujinzh/timestamp
b80d8bab0f3c2ad53b2a96124cc0af7363bbeb12
[ "Apache-2.0" ]
null
null
null
utils/merge_list.py
xujinzh/timestamp
b80d8bab0f3c2ad53b2a96124cc0af7363bbeb12
[ "Apache-2.0" ]
null
null
null
utils/merge_list.py
xujinzh/timestamp
b80d8bab0f3c2ad53b2a96124cc0af7363bbeb12
[ "Apache-2.0" ]
null
null
null
def merge(list1, list2): """ :param list1: 1 :param list2: 2 :return: """ i = len(list1) - 1 # j = len(list2) - 1 # k = len(list1) + len(list2) - 1 # list3 = [0] * (len(list1) + len(list2)) # while i >= 0 and j >= 0: # if list1[i] > list2[j]: # ...
26.244898
62
0.53577
def merge(list1, list2): """ 合并两个有序的列表成为一个有序的列表。本方法采用从后往前合并 :param list1: 有序列表1 :param list2: 有序列表2 :return: 合并后的有序列表 """ i = len(list1) - 1 # 用于记录第一个有序列表的最后一个待合并的元素索引 j = len(list2) - 1 # 用于记录第二个有序列表的最后一个待合并的元素索引 k = len(list1) + len(list2) - 1 # 用于记录合并后有序列表的最后一个元素的索引 list3...
1,005
0
0
0
0
0
0
0
0
815d1a070ad9999bcf2ae10f3567a3b59bfee69b
2,987
py
Python
tot-fitting.py
anzorenam/nphe_shaping
31a72079c17c116a8fe899e4cdf22341ae334fa7
[ "MIT" ]
null
null
null
tot-fitting.py
anzorenam/nphe_shaping
31a72079c17c116a8fe899e4cdf22341ae334fa7
[ "MIT" ]
null
null
null
tot-fitting.py
anzorenam/nphe_shaping
31a72079c17c116a8fe899e4cdf22341ae334fa7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3.7 # -*- coding: utf8 -*- import matplotlib as mat mat.use('Agg') import matplotlib.pyplot as plt import numpy as np import scipy.signal as signal import argparse import os parser=argparse.ArgumentParser() parser.add_argument('amp', help='select amp',type=int) parser.add_argument('degree', help=...
30.793814
96
0.59692
#!/usr/bin/env python3.7 # -*- coding: utf8 -*- import matplotlib as mat mat.use('Agg') import matplotlib.pyplot as plt import numpy as np import scipy.signal as signal import argparse import os def timeovert(x,vth,M): t0=np.zeros(M) tf=np.zeros(M) for j in range(0,M): try: t0[j]=np.nonzero(x[j,:]>vth...
0
0
0
0
0
239
0
0
23
34044d7d41b2150f1cd4686ac6dd1331de172fbd
1,070
py
Python
Web Server/API_KEYS.py
Asienwald/SCDF-x-IBM-Lifesavers-Innovation
92dbf5e8250643c3679ff18ba7be4f3577e76bdd
[ "MIT" ]
null
null
null
Web Server/API_KEYS.py
Asienwald/SCDF-x-IBM-Lifesavers-Innovation
92dbf5e8250643c3679ff18ba7be4f3577e76bdd
[ "MIT" ]
null
null
null
Web Server/API_KEYS.py
Asienwald/SCDF-x-IBM-Lifesavers-Innovation
92dbf5e8250643c3679ff18ba7be4f3577e76bdd
[ "MIT" ]
null
null
null
# Make a copy of this as IBM_API_KEYS.py and fill in your API keys #### IBM ################## ## STT STT_API_ENDPOINT = "https://api.us-south.speech-to-text.watson.cloud.ibm.com/instances/d01dba71-c104-4035-beb2-979315bfc91f" STT_API_KEY = "luSLdQ7tvPb0K9EdAfwA37OYRW8L-KvvRaZ2l4r2XA2G" # TA TA_API_ENDPOINT = "https:...
44.583333
130
0.780374
# Make a copy of this as IBM_API_KEYS.py and fill in your API keys #### IBM ################## ## STT STT_API_ENDPOINT = "https://api.us-south.speech-to-text.watson.cloud.ibm.com/instances/d01dba71-c104-4035-beb2-979315bfc91f" STT_API_KEY = "luSLdQ7tvPb0K9EdAfwA37OYRW8L-KvvRaZ2l4r2XA2G" # TA TA_API_ENDPOINT = "https:...
0
0
0
0
0
0
0
0
0
d719d1324a6d087d2db5acd904430bd44f28649c
6,995
py
Python
video_detection.py
ojalar/modecla
11669e71a97ed2ee94b327436d9d49d4adff307a
[ "MIT" ]
null
null
null
video_detection.py
ojalar/modecla
11669e71a97ed2ee94b327436d9d49d4adff307a
[ "MIT" ]
1
2021-03-16T06:53:56.000Z
2022-03-15T09:55:32.000Z
video_detection.py
ojalar/modecla
11669e71a97ed2ee94b327436d9d49d4adff307a
[ "MIT" ]
null
null
null
import torchvision.transforms as transforms import argparse import sys ap = argparse.ArgumentParser() ap.add_argument("-p", "--path", help="path to a video") ap.add_argument("-w", "--weights", help="weight file") ap.add_argument("-v", "--visual", help="enables visual output, 1 or 0 (default is 1)") ap.add_argument("-s...
39.744318
139
0.547534
import numpy as np import cv2 import torch import torchvision.transforms as transforms from torchvision.models.resnet import resnet18 import argparse import sys def detection(video_path, weight_file, visual, show_misc, threshold): # setup ################## net = resnet18(num_classes=3) device = torch....
0
0
0
0
0
5,757
0
2
111
f4ef13d5313423e8c0cbc5307de438bfec92a9d7
1,875
py
Python
exploration_data_analyse/COVID-19-TweetIDs-plot-agile.py
remydecoupes/covid19-tweets-mood-tetis
beb3553f7c080f283751d2be14990475008bd82d
[ "CECILL-B" ]
null
null
null
exploration_data_analyse/COVID-19-TweetIDs-plot-agile.py
remydecoupes/covid19-tweets-mood-tetis
beb3553f7c080f283751d2be14990475008bd82d
[ "CECILL-B" ]
null
null
null
exploration_data_analyse/COVID-19-TweetIDs-plot-agile.py
remydecoupes/covid19-tweets-mood-tetis
beb3553f7c080f283751d2be14990475008bd82d
[ "CECILL-B" ]
null
null
null
#!/usr/bin/env python import pandas as pd import matplotlib.pyplot as plt from wordcloud import WordCloud if __name__ == '__main__': # Generate wordcloud for Greece build_wordcloud = False if build_wordcloud: dir = "elasticsearch/analyse/nldb21/results/feb_idf_square_week/country" dir_out ...
46.875
94
0.590933
#!/usr/bin/env python import pandas as pd import matplotlib.pyplot as plt from wordcloud import WordCloud if __name__ == '__main__': # Generate wordcloud for Greece build_wordcloud = False if build_wordcloud: dir = "elasticsearch/analyse/nldb21/results/feb_idf_square_week/country" dir_out ...
32
0
0
0
0
0
0
0
0
66e863472ffeeb6272aa236f9446e7034df99224
96
py
Python
tests/urls.py
tehamalab/django-haystack-es
476a87ad0da6bf6000145477d9ede6b9e254133d
[ "BSD-3-Clause" ]
8
2017-09-12T13:21:32.000Z
2019-10-16T12:54:26.000Z
tests/urls.py
tehamalab/django-haystack-es
476a87ad0da6bf6000145477d9ede6b9e254133d
[ "BSD-3-Clause" ]
1
2019-07-08T00:07:50.000Z
2019-07-17T13:03:10.000Z
tests/urls.py
EvgeneOskin/django-geohash-cluster
3b94055e4f1daede7962d2fc6b70075fee338f90
[ "MIT" ]
4
2018-09-11T08:46:57.000Z
2020-09-21T06:38:35.000Z
# -*- coding: utf-8 from __future__ import unicode_literals, absolute_import urlpatterns = []
16
56
0.75
# -*- coding: utf-8 from __future__ import unicode_literals, absolute_import urlpatterns = []
0
0
0
0
0
0
0
0
0
9ae789a42a8367a636ea198a68d911a0bf5d7dbe
1,133
py
Python
djhtmx/tracing.py
leiserfg/djhtmx
a954be30c0416143d4efa8600376c95dd6f564dc
[ "MIT" ]
7
2021-04-12T12:17:42.000Z
2022-02-10T04:32:32.000Z
djhtmx/tracing.py
leiserfg/djhtmx
a954be30c0416143d4efa8600376c95dd6f564dc
[ "MIT" ]
9
2021-04-16T18:03:26.000Z
2021-11-23T20:43:24.000Z
djhtmx/tracing.py
leiserfg/djhtmx
a954be30c0416143d4efa8600376c95dd6f564dc
[ "MIT" ]
3
2021-04-12T08:10:56.000Z
2021-11-23T20:31:16.000Z
import contextlib try: from sentry_sdk import Hub, configure_scope except ImportError:
28.325
75
0.659312
import contextlib try: from sentry_sdk import Hub, configure_scope @contextlib.contextmanager def sentry_transaction_name(transaction_name): with configure_scope() as scope: # XXX: The docs says we should scope.transaction, but when I do # that, the transaction keeps the ol...
0
542
0
0
0
365
0
0
131
2fdaa7a85ec6c84f98b2f4c61db7fd893315ce41
7,065
py
Python
TaskModule/Scheduler.py
longnehc/BasebandSimulator
816451b291d6e6997d180a99213c28d59adae3d7
[ "MIT" ]
null
null
null
TaskModule/Scheduler.py
longnehc/BasebandSimulator
816451b291d6e6997d180a99213c28d59adae3d7
[ "MIT" ]
null
null
null
TaskModule/Scheduler.py
longnehc/BasebandSimulator
816451b291d6e6997d180a99213c28d59adae3d7
[ "MIT" ]
null
null
null
scheduler = Scheduler() cnt = 0
37.983871
130
0.496108
from TaskModule.TaskGraph import * from TaskModule.Task import * from TaskModule.DataInstance import * from ResourceModule import ResourcesManager as RM from queue import Queue import random from TaskModule.Task import TaskStatus class SchduleAlgorithm(Enum): RANDOM = 0 GREEDY = 1 OFFMEM = 2 QOSPr...
0
0
0
402
5,543
629
0
76
367
54fd30ce58c7ed157fd4ecaaebf7a2288cff7a73
375
py
Python
lib/IPCE/Lib/psycopg.py
AustralianDisabilityLimited/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
33
2015-02-16T02:52:08.000Z
2022-02-18T08:46:32.000Z
lib/IPCE/Lib/psycopg.py
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
1
2017-09-09T18:50:23.000Z
2020-12-29T18:13:56.000Z
lib/IPCE/Lib/psycopg.py
bensku/MultiversePlatform
7e1aad33d48b9e47f3db2ca638cb57592336ddb7
[ "MIT" ]
31
2015-02-07T16:20:24.000Z
2022-02-23T15:02:43.000Z
assembly = 'Npgsql' typename = 'Npgsql.NpgsqlConnection' keymap = { 'host': 'Server', 'port': 'Port', 'dbname': 'Database', 'user': 'User ID', 'password': 'Password', }
23.4375
59
0.674667
from dbapi import generic_connect, translate_key, parse_dsn assembly = 'Npgsql' typename = 'Npgsql.NpgsqlConnection' keymap = { 'host': 'Server', 'port': 'Port', 'dbname': 'Database', 'user': 'User ID', 'password': 'Password', } def connect(dsn): params = translate_key(parse_dsn(dsn), keymap) ...
0
0
0
0
0
102
0
38
45
5be06d8ef7589890ae54bf178fdbfed0a7c975e0
8,023
py
Python
minc_keras.py
bopucky/minc_keras
ac81f4d7f76b723c6387665e69291fb1e8444242
[ "MIT" ]
14
2017-11-19T13:41:36.000Z
2020-02-13T18:49:58.000Z
minc_keras.py
bopucky/minc_keras
ac81f4d7f76b723c6387665e69291fb1e8444242
[ "MIT" ]
1
2018-03-20T03:04:32.000Z
2018-03-20T03:04:32.000Z
minc_keras.py
bopucky/minc_keras
ac81f4d7f76b723c6387665e69291fb1e8444242
[ "MIT" ]
15
2018-03-17T21:58:53.000Z
2019-12-09T08:32:11.000Z
#from pyminc.volumes.factory import * import argparse #local modules defined in current project if __name__ == '__main__': parser = argparse.ArgumentParser(description='Process some integers.') parser.add_argument('--batch-size', dest='batch_size', type=int, default=1, help='size of batch') par...
66.305785
574
0.735136
import numpy as np #from pyminc.volumes.factory import * import os from sys import argv, exit from os.path import exists from os import makedirs import argparse #local modules defined in current project from make_and_run_model import * from predict import * from prepare_data import * from utils import * from custom_lo...
0
0
0
0
0
3,519
0
21
327
6bafff5ea9ef2b0b49ac877bde3487e8976decbe
2,837
py
Python
flattrclient/tests/test_validators.py
chrigl/python-flattr
7ef180d2a874f7b3f1636bcb871512caaa246cb3
[ "Apache-2.0" ]
null
null
null
flattrclient/tests/test_validators.py
chrigl/python-flattr
7ef180d2a874f7b3f1636bcb871512caaa246cb3
[ "Apache-2.0" ]
3
2015-11-08T12:29:58.000Z
2019-11-08T10:47:51.000Z
flattrclient/tests/test_validators.py
chrigl/python-flattr
7ef180d2a874f7b3f1636bcb871512caaa246cb3
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*-
22.338583
78
0.556574
# -*- coding: utf-8 -*- from flattrclient.validators import isInt from flattrclient.validators import isStr from flattrclient.validators import isBinary from flattrclient.validators import isUrl from flattrclient.validators import isStrList from flattrclient.validators import validate import sys from pytest import rais...
12
167
0
104
0
2,071
0
123
337
cc627f7841e5db25f95e2b7d5cd5dc928526fbde
515
py
Python
docker/python/setup.py
psyking841/airflow-for-impatient
65ab5ace2ed35e23865c19af3366c75ebacd8c8b
[ "Apache-2.0" ]
null
null
null
docker/python/setup.py
psyking841/airflow-for-impatient
65ab5ace2ed35e23865c19af3366c75ebacd8c8b
[ "Apache-2.0" ]
null
null
null
docker/python/setup.py
psyking841/airflow-for-impatient
65ab5ace2ed35e23865c19af3366c75ebacd8c8b
[ "Apache-2.0" ]
null
null
null
from setuptools import setup setup(name='airflow_impatient', version='0.0.2', description='Customized logging handlers, hooks and operators for Airflow to be run in K8s', url='https://pypi.org/project/airflow-impatient/', author='Shengyi Pan', author_email='shengyi.pan@ibm.com', lic...
42.916667
103
0.699029
from setuptools import setup setup(name='airflow_impatient', version='0.0.2', description='Customized logging handlers, hooks and operators for Airflow to be run in K8s', url='https://pypi.org/project/airflow-impatient/', author='Shengyi Pan', author_email='shengyi.pan@ibm.com', lic...
0
0
0
0
0
0
0
0
0
4119cb8209d52da09afed16479c873d72b7ef4d7
5,545
py
Python
SBaaS_resequencing/stage01_resequencing_lineage_execute.py
dmccloskey/SBaaS_resequencing
760049eec734a3f02a1172af68b20198713b785e
[ "MIT" ]
null
null
null
SBaaS_resequencing/stage01_resequencing_lineage_execute.py
dmccloskey/SBaaS_resequencing
760049eec734a3f02a1172af68b20198713b785e
[ "MIT" ]
null
null
null
SBaaS_resequencing/stage01_resequencing_lineage_execute.py
dmccloskey/SBaaS_resequencing
760049eec734a3f02a1172af68b20198713b785e
[ "MIT" ]
null
null
null
#sbaas lims #sbaas #sbaas models #resources
52.809524
173
0.637872
from copy import copy #sbaas lims from SBaaS_LIMS.lims_biologicalMaterial_query import lims_biologicalMaterial_query #sbaas from .stage01_resequencing_lineage_io import stage01_resequencing_lineage_io from .stage01_resequencing_gd_query import stage01_resequencing_gd_query #sbaas models from .stage01_resequencing_linea...
0
0
0
4,960
0
0
0
343
199
a252aeff269daf0c8acbfdae64b57f54184ef90f
1,111
py
Python
regexlib/2021-5-15/python_re2_test_file/regexlib_1712.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
1
2022-01-24T14:43:23.000Z
2022-01-24T14:43:23.000Z
regexlib/python_re2_test_file/regexlib_1712.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
regexlib/python_re2_test_file/regexlib_1712.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
# 1712 # (\s)*(int|void|float|char|double|string)((\s)|(\*))*(\&?)(\s)+([a-z])([a-z0-9])*(\s)*(\()(\s)*((int|void|float|char|double|string)((\s)|(\*))*(\&?)(\s)+([a-z])([a-z0-9])*((\s)*[,](\s)*(int|void|float|char|double|string)((\s)|(\*))*(\&?)(\s)+([a-z])([a-z0-9])*)*)?(\s)*(\))(\s)*; # POLYNOMIAL # nums:5 # POLYNOMI...
58.473684
292
0.505851
# 1712 # (\s)*(int|void|float|char|double|string)((\s)|(\*))*(\&?)(\s)+([a-z])([a-z0-9])*(\s)*(\()(\s)*((int|void|float|char|double|string)((\s)|(\*))*(\&?)(\s)+([a-z])([a-z0-9])*((\s)*[,](\s)*(int|void|float|char|double|string)((\s)|(\*))*(\&?)(\s)+([a-z])([a-z0-9])*)*)?(\s)*(\))(\s)*; # POLYNOMIAL # nums:5 # POLYNOMI...
18
0
0
0
0
0
0
0
0
6265c2c5e838786943af93ffc6187e16c869794d
4,211
py
Python
common/oauth_client.py
georgiashay/fireroad-server2
fe6be11d3aaa6496c5464a764ef9a4cbfcba1bd7
[ "MIT" ]
7
2019-01-22T07:30:58.000Z
2022-02-10T01:51:37.000Z
common/oauth_client.py
georgiashay/fireroad-server2
fe6be11d3aaa6496c5464a764ef9a4cbfcba1bd7
[ "MIT" ]
18
2019-05-08T21:08:01.000Z
2021-02-03T00:07:39.000Z
common/oauth_client.py
georgiashay/fireroad-server2
fe6be11d3aaa6496c5464a764ef9a4cbfcba1bd7
[ "MIT" ]
3
2019-01-29T04:09:03.000Z
2020-07-19T07:43:24.000Z
import os import urllib from .models import OAuthCache from django.conf import settings module_path = os.path.dirname(__file__) REDIRECT_URI = settings.MY_BASE_URL + '/login/' ISSUER = 'https://oidc.mit.edu/' AUTH_CODE_URL = 'https://oidc.mit.edu/authorize' AUTH_TOKEN_URL = 'https://oidc.mit.edu/token' AUTH_USER_INFO...
32.898438
119
0.661363
from .models import * import json from django.core.exceptions import PermissionDenied import requests import os import base64 import urllib from .models import OAuthCache import random from django.utils import timezone from django.conf import settings module_path = os.path.dirname(__file__) REDIRECT_URI = settings.MY...
0
0
0
0
0
2,624
0
10
269
c7a39f8d3607bbb083ef91f3700cbf1fd0b5a5e5
12,380
py
Python
networks/convlstm_networks/results/convlstm_results/reconstruct/reconstruct_predictions_from_full_ims.py
DiMorten/FCN_ConvLSTM_Crop_Recognition_Generalized
2749c90fab6c3854c380f6bca945dd4e99c17239
[ "Apache-2.0" ]
null
null
null
networks/convlstm_networks/results/convlstm_results/reconstruct/reconstruct_predictions_from_full_ims.py
DiMorten/FCN_ConvLSTM_Crop_Recognition_Generalized
2749c90fab6c3854c380f6bca945dd4e99c17239
[ "Apache-2.0" ]
null
null
null
networks/convlstm_networks/results/convlstm_results/reconstruct/reconstruct_predictions_from_full_ims.py
DiMorten/FCN_ConvLSTM_Crop_Recognition_Generalized
2749c90fab6c3854c380f6bca945dd4e99c17239
[ "Apache-2.0" ]
null
null
null
import numpy as np import cv2 import argparse import pdb import sys #sys.path.append('../../../../../train_src/analysis/') import pathlib from PredictionsLoader import PredictionsLoaderNPY, PredictionsLoaderModel from utils import seq_add_padding, add_padding sys.path.append('../../../train_src/') from model_input_mo...
31.989664
133
0.743861
import numpy as np import cv2 import glob import argparse import pdb import sys #sys.path.append('../../../../../train_src/analysis/') import pathlib from PredictionsLoader import PredictionsLoaderNPY, PredictionsLoaderModel from utils import seq_add_padding, add_padding import pdb sys.path.append('../../../train_src...
0
0
0
0
0
809
0
138
89
f4910cc8e6240112226c77e837728e206f575c54
1,843
py
Python
delivery_proj/users/migrations/0003_auto_20210527_2102.py
unkn1w/Delivery
21b33f5b8d9f057c129fc78c175b6c79fcd23122
[ "MIT" ]
null
null
null
delivery_proj/users/migrations/0003_auto_20210527_2102.py
unkn1w/Delivery
21b33f5b8d9f057c129fc78c175b6c79fcd23122
[ "MIT" ]
null
null
null
delivery_proj/users/migrations/0003_auto_20210527_2102.py
unkn1w/Delivery
21b33f5b8d9f057c129fc78c175b6c79fcd23122
[ "MIT" ]
null
null
null
# Generated by Django 3.1.11 on 2021-05-27 21:02
27.924242
73
0.500271
# Generated by Django 3.1.11 on 2021-05-27 21:02 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ("users", "0002_auto_20210527_1721"), ] operations = [ migrations.RemoveFie...
0
0
0
1,662
0
0
0
41
90
34675c606a8fd5a4adb5eb3850a7f33256dcaa0d
319
py
Python
Wurstpack/pyw3jdebug/watches.py
Crigges/WurstScript
384bf02093394014751a19184f404ed7900864b6
[ "Apache-2.0" ]
null
null
null
Wurstpack/pyw3jdebug/watches.py
Crigges/WurstScript
384bf02093394014751a19184f404ed7900864b6
[ "Apache-2.0" ]
null
null
null
Wurstpack/pyw3jdebug/watches.py
Crigges/WurstScript
384bf02093394014751a19184f404ed7900864b6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python colhead = ['Expression','Value']
19.9375
41
0.746082
#!/usr/bin/python from PythonCard import model colhead = ['Expression','Value'] class Watch(model.Background): def on_initialize(self, event): self.watch.columnHeadings = colhead def on_addwatch_mouseClick(self,event): expr = self.components.nwtxt.text self.components.watch.Append([expr,""]) print expr
0
0
0
212
0
0
0
7
46
b41e5bbafc26cf95264fc1266cb0a8d07a058c8f
1,536
py
Python
edgedb/lang/schema/basetypes/boolean.py
jonathanslenders/edgedb
35ad66c4bd525cd9966f8029e5b385e888323f82
[ "Apache-2.0" ]
1
2021-12-15T09:34:48.000Z
2021-12-15T09:34:48.000Z
edgedb/lang/schema/basetypes/boolean.py
jonathanslenders/edgedb
35ad66c4bd525cd9966f8029e5b385e888323f82
[ "Apache-2.0" ]
null
null
null
edgedb/lang/schema/basetypes/boolean.py
jonathanslenders/edgedb
35ad66c4bd525cd9966f8029e5b385e888323f82
[ "Apache-2.0" ]
null
null
null
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
26.482759
74
0.679688
# # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http...
0
0
0
374
0
0
0
0
23
be59d9b4c4a9997c43703365ea99b3335f98666a
2,552
py
Python
MMR_IVs/precomp_matrix_mnist.py
carolineyuchen/MMRIV
2b3f13a453f2b4542bfe8820f1a7a63f7725db4e
[ "MIT" ]
1
2021-12-17T04:00:28.000Z
2021-12-17T04:00:28.000Z
MMR_IVs/precomp_matrix_mnist.py
yuchen-zhu/MMRIV
2b3f13a453f2b4542bfe8820f1a7a63f7725db4e
[ "MIT" ]
null
null
null
MMR_IVs/precomp_matrix_mnist.py
yuchen-zhu/MMRIV
2b3f13a453f2b4542bfe8820f1a7a63f7725db4e
[ "MIT" ]
null
null
null
import os import numpy as np from util import ROOT_PATH if __name__ == '__main__': for ind in range(400): for sname in ['mnist_z','mnist_x','mnist_xz']: precomp(sname,ind) folder = ROOT_PATH+'/mnist_precomp/' os.makedirs(folder, exist_ok=True) for sname in ['mnist_z','mnist_x','mni...
39.875
106
0.554859
import os import numpy as np from util import load_data, ROOT_PATH,_sqdist from sklearn.decomposition import PCA def precomp(sname,i,seed=527): np.random.seed(seed) train, dev, test = load_data(ROOT_PATH+'/data/'+sname+'/main_orig.npz',Torch=False) folder = ROOT_PATH+'/tmp/' os.makedirs(folder, exist_o...
0
0
0
0
0
945
0
35
45
e02698af56d9b2e76d72310a62acc4016ef7f308
24,387
py
Python
tests/st/utils/v1_data.py
coutinhop/calicoctl
4cfe90c44c1f085004d5213e29c01d96a2f85090
[ "Apache-2.0" ]
428
2016-12-18T21:58:35.000Z
2022-03-09T04:06:41.000Z
tests/st/utils/v1_data.py
coutinhop/calicoctl
4cfe90c44c1f085004d5213e29c01d96a2f85090
[ "Apache-2.0" ]
694
2016-12-18T19:23:04.000Z
2022-02-04T00:36:19.000Z
tests/st/utils/v1_data.py
coutinhop/calicoctl
4cfe90c44c1f085004d5213e29c01d96a2f85090
[ "Apache-2.0" ]
213
2016-12-20T13:32:54.000Z
2022-02-13T13:21:01.000Z
# Copyright (c) 2017 Tigera, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
51.018828
591
0.434822
# Copyright (c) 2017 Tigera, Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
0
0
0
0
0
0
0
0
0
1c98dcedac6f573b725a49ed18411d52591f4f03
6,734
py
Python
machine_translation_vision/layers/NMT_Decoder_V3.py
Eurus-Holmes/VAG-NMT
38095c4a5477a0e7e2fa1592e8401aa9cddf2beb
[ "Apache-2.0" ]
12
2019-12-28T12:55:27.000Z
2022-02-10T00:19:53.000Z
machine_translation_vision/layers/NMT_Decoder_V3.py
wonderseen/OVC-MMT
b982038ea1295cc038b8dcbca11aa81d318f7a49
[ "MIT" ]
1
2021-02-25T05:42:31.000Z
2022-01-02T17:54:16.000Z
machine_translation_vision/layers/NMT_Decoder_V3.py
wonderseen/OVC-MMT
b982038ea1295cc038b8dcbca11aa81d318f7a49
[ "MIT" ]
3
2020-05-07T19:13:41.000Z
2021-02-19T11:26:00.000Z
#This NMT Decoder will return two things: (1) The second decoder hidden state (2) The first decoder hidden state import torch.nn as nn #Implement of cGRU from nematus language toolkit paper address is:
44.893333
186
0.653995
#This NMT Decoder will return two things: (1) The second decoder hidden state (2) The first decoder hidden state import torch from torch.autograd import Variable import torch.nn as nn import torch.nn.functional as F import math import random import numpy as np class BahdanauAttn(nn.Module): def __init__(self, con...
0
0
0
6,359
0
0
0
-6
178
dab94740fb973e08004ffc9d55751ae3291739c8
9,141
py
Python
spyder/plugins/base.py
neophnx/spyder
f76836ce1b924bcc4efd3f74f2960d26a4e528e0
[ "MIT" ]
2
2019-04-25T08:25:37.000Z
2019-04-25T08:25:43.000Z
spyder/plugins/base.py
neophnx/spyder
f76836ce1b924bcc4efd3f74f2960d26a4e528e0
[ "MIT" ]
null
null
null
spyder/plugins/base.py
neophnx/spyder
f76836ce1b924bcc4efd3f74f2960d26a4e528e0
[ "MIT" ]
1
2019-02-18T01:28:51.000Z
2019-02-18T01:28:51.000Z
# -*- coding: utf-8 -*- # # Copyright Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Base plugin class """ # Third party imports # Local imports
36.564
79
0.605185
# -*- coding: utf-8 -*- # # Copyright © Spyder Project Contributors # Licensed under the terms of the MIT License # (see spyder/__init__.py for details) """ Base plugin class """ # Third party imports import qdarkstyle from qtpy.QtCore import Qt, Slot from qtpy.QtGui import QKeySequence from qtpy.QtWidgets import QDo...
2
1,365
0
7,044
0
0
0
222
288
159a94b0595a696a2acab6428bb4799218b8c836
1,324
py
Python
core/utils/comedy.py
osam7a/JesterBot
aeaa2e24af54967573c88bacdec4a704755cdcb7
[ "MIT" ]
null
null
null
core/utils/comedy.py
osam7a/JesterBot
aeaa2e24af54967573c88bacdec4a704755cdcb7
[ "MIT" ]
null
null
null
core/utils/comedy.py
osam7a/JesterBot
aeaa2e24af54967573c88bacdec4a704755cdcb7
[ "MIT" ]
null
null
null
import vacefron, asyncpraw reddit = asyncpraw.Reddit( client_id=client_id, client_secret=client_secret, username=username, password=password, user_agent=user_agent, ) vace_api = vacefron.Client()
24.981132
84
0.64426
import vacefron, randfacts, asyncpraw, datetime, json, requests import disnake from jokeapi import Jokes from .utils import thecolor from core.utils.HIDDEN import * reddit = asyncpraw.Reddit( client_id=client_id, client_secret=client_secret, username=username, password=password, user_a...
0
0
401
0
0
444
0
50
194
4990d7bbdf9a5c9494867c8aabc7ccc00ac29281
1,279
py
Python
wpictf2021/strong_arm/exploit.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
101
2020-03-09T17:40:47.000Z
2022-03-31T23:26:55.000Z
wpictf2021/strong_arm/exploit.py
nhtri2003gmail/ctf-write-ups
7e969c47027c39b614e10739ae3a953eed17dfa3
[ "MIT" ]
1
2021-11-09T13:39:40.000Z
2021-11-10T19:15:04.000Z
wpictf2021/strong_arm/exploit.py
datajerk/ctf-write-ups
1bc4ecc63a59de7d924c7214b1ce467801792da0
[ "MIT" ]
31
2020-05-27T12:29:50.000Z
2022-03-31T23:23:32.000Z
#!/usr/bin/env python3 binary = context.binary = ELF('./arm') if args.REMOTE: p = remote('172.104.14.64', 54732) libc = ELF('./libc-2.23.so') p.recvuntil('printf at ') else: if os.uname().machine == context.arch: p = process(binary.path) libc = binary.libc else: if args.GDB: p = process(('stdbuf -i0 -o0...
31.195122
124
0.625489
#!/usr/bin/env python3 from pwn import * binary = context.binary = ELF('./arm') if args.REMOTE: p = remote('172.104.14.64', 54732) libc = ELF('./libc-2.23.so') p.recvuntil('printf at ') else: if os.uname().machine == context.arch: p = process(binary.path) libc = binary.libc else: if args.GDB: p = proce...
0
0
0
0
0
0
0
-4
23
566cafb64a120d393e037e067427a0e4c31ec676
4,674
py
Python
pynspector/doc_parsers.py
dgarana/pynspector
96659d9c1928994ad8023b1e2c4ad59d434020a4
[ "MIT" ]
2
2019-06-26T20:35:29.000Z
2020-11-09T13:02:35.000Z
pynspector/doc_parsers.py
dgarana/pynspector
96659d9c1928994ad8023b1e2c4ad59d434020a4
[ "MIT" ]
3
2019-07-08T16:36:37.000Z
2019-07-12T20:21:53.000Z
pynspector/doc_parsers.py
dgarana/pynspector
96659d9c1928994ad8023b1e2c4ad59d434020a4
[ "MIT" ]
null
null
null
# -* coding: utf-8 *- """ :py:mod:`pynspector.doc_parser` ------------------------------- Here you will find parsers for docstrings, this will help you to retrieve all arguments, types and descriptions defined on docstrings. You can use different parsers such as: - sphinx_doc_parser """ # System imports import re impo...
32.685315
99
0.61104
# -* coding: utf-8 *- """ :py:mod:`pynspector.doc_parser` ------------------------------- Here you will find parsers for docstrings, this will help you to retrieve all arguments, types and descriptions defined on docstrings. You can use different parsers such as: - sphinx_doc_parser """ # System imports import re impo...
0
0
0
0
0
0
0
0
0
4e974f375f822fae596b1fadd58bc9cb908911f5
1,798
py
Python
retry.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
2
2015-06-01T18:33:38.000Z
2018-11-21T19:40:37.000Z
retry.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
102
2015-01-20T17:26:52.000Z
2017-12-28T17:32:51.000Z
retry.py
voidabhi/python-scripts
a6d06bd3ccf4ec24df521a3cf305d22176f68a18
[ "MIT" ]
3
2020-03-02T06:54:18.000Z
2021-01-07T16:36:35.000Z
# Retry decorator with exponential backoff def retry(tries=5, delay=0.1, backoff=2): """Retries a function or method until it returns True. delay sets the initial delay in seconds, and backoff sets the factor by which the delay should lengthen after each failure. backoff must be greater than 1, or else...
37.458333
81
0.575083
import pymongo.errors # Retry decorator with exponential backoff def retry(tries=5, delay=0.1, backoff=2): """Retries a function or method until it returns True. delay sets the initial delay in seconds, and backoff sets the factor by which the delay should lengthen after each failure. backoff must be great...
0
0
0
0
0
937
0
0
49
7ecb3c241edfe480faa1cb950f1ecdda12452854
1,315
py
Python
S4/S4 Library/simulation/crafting/set_photo_filter.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/crafting/set_photo_filter.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/crafting/set_photo_filter.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
import sims4 logger = sims4.log.Logger('Photography', default_owner='rrodgers')
59.772727
396
0.747529
from crafting.photography_enums import PhotoStyleType from interactions import ParticipantTypeSingle, ParticipantType from interactions.utils.interaction_elements import XevtTriggeredElement from sims4.tuning.tunable import TunableEnumEntry import sims4 logger = sims4.log.Logger('Photography', default_owner='rrodgers')...
0
0
0
971
0
0
0
153
111
65c11c46d10f57b3776be2a1d3e91a5d7de2193b
203
py
Python
agribora/agribora/doctype/hub_manager/hub_manager.py
abrarpv97/agribora
94ec64fa8a1f4b6f6b037c13a321611434f4bdaa
[ "MIT" ]
null
null
null
agribora/agribora/doctype/hub_manager/hub_manager.py
abrarpv97/agribora
94ec64fa8a1f4b6f6b037c13a321611434f4bdaa
[ "MIT" ]
null
null
null
agribora/agribora/doctype/hub_manager/hub_manager.py
abrarpv97/agribora
94ec64fa8a1f4b6f6b037c13a321611434f4bdaa
[ "MIT" ]
null
null
null
# Copyright (c) 2021, www.nestorbird.com and contributors # For license information, please see license.txt # import frappe
22.555556
57
0.793103
# Copyright (c) 2021, www.nestorbird.com and contributors # For license information, please see license.txt # import frappe from frappe.model.document import Document class HubManager(Document): pass
0
0
0
12
0
0
0
21
45
bf294f303343f4bdb1e59247e7f048bd898e2ac3
1,419
py
Python
tests/acquisition/covid_hosp/common/test_network.py
lee14257/delphi-epidata
b007d778321e68be5526ca9ce1113b13d24d6fe8
[ "MIT" ]
1
2021-12-29T04:00:21.000Z
2021-12-29T04:00:21.000Z
tests/acquisition/covid_hosp/common/test_network.py
lee14257/delphi-epidata
b007d778321e68be5526ca9ce1113b13d24d6fe8
[ "MIT" ]
1
2020-07-14T15:35:15.000Z
2020-07-16T17:56:30.000Z
tests/acquisition/covid_hosp/common/test_network.py
lee14257/delphi-epidata
b007d778321e68be5526ca9ce1113b13d24d6fe8
[ "MIT" ]
4
2020-09-17T13:47:02.000Z
2020-10-27T19:40:11.000Z
"""Unit tests for network.py.""" # standard library # py3tester coverage target __test_target__ = 'delphi.epidata.acquisition.covid_hosp.common.network'
29.5625
73
0.678647
"""Unit tests for network.py.""" # standard library import unittest from unittest.mock import MagicMock, sentinel, patch from delphi.epidata.acquisition.covid_hosp.common.network import Network import pandas as pd # py3tester coverage target __test_target__ = 'delphi.epidata.acquisition.covid_hosp.common.network' ...
0
0
0
1,076
0
0
0
74
113