hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
f168d162b763d9a71be0102877069fe46eea2811
27,051
py
Python
coaster/views/decorators.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
48
2015-01-15T08:57:24.000Z
2022-01-26T04:04:34.000Z
coaster/views/decorators.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
169
2015-01-16T13:17:38.000Z
2021-05-31T13:23:23.000Z
coaster/views/decorators.py
AferriDaniel/coaster
3ffbc9d33c981284593445299aaee0c3cc0cdb0b
[ "BSD-2-Clause" ]
17
2015-02-15T07:39:04.000Z
2021-10-05T11:20:22.000Z
""" View decorators --------------- Decorators for view handlers. All items in this module can be imported directly from :mod:`coaster.views`. """ from functools import wraps from flask import ( Response, abort, current_app, g, jsonify, make_response, redirect, render_template, r...
36.854223
88
0.562863
""" View decorators --------------- Decorators for view handlers. All items in this module can be imported directly from :mod:`coaster.views`. """ from functools import wraps from flask import ( Response, abort, current_app, g, jsonify, make_response, redirect, render_template, r...
12,256
0
158
f9f56aa924956adef0d4cf84eaeeca2876508b9a
661
py
Python
CodingInterviews/python/12_power_2.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
CodingInterviews/python/12_power_2.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
CodingInterviews/python/12_power_2.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding:utf-8 if __name__ == "__main__": s = Solution() print(s.Power(2, 0)) print(s.Power(0, 2)) print(s.Power(3.5, 2)) print(s.Power(3.5, -2))
20.030303
47
0.443268
#!/usr/bin/env python3 # coding:utf-8 class Solution: def Power(self, base, exponent): """ @param: base: double @param: exponent: int """ if exponent == 0: return 1 elif base == 0: return 0 exp = abs(exponent) tmp = b...
0
446
23
6e6fef3c72fde208ef28095187e2540ab490389a
984
py
Python
src/srbpy/stdlib/base.py
billhu0228/SmartRoadBridgePy
4a5d34028a2612aef846b580733bf6f488110798
[ "MIT" ]
2
2020-08-05T10:46:45.000Z
2020-08-11T11:05:18.000Z
src/srbpy/stdlib/base.py
billhu0228/SmartRoadBridgePy
4a5d34028a2612aef846b580733bf6f488110798
[ "MIT" ]
null
null
null
src/srbpy/stdlib/base.py
billhu0228/SmartRoadBridgePy
4a5d34028a2612aef846b580733bf6f488110798
[ "MIT" ]
1
2020-08-26T07:50:22.000Z
2020-08-26T07:50:22.000Z
# -*- coding : utf-8-*- import abc from enum import Enum class StructTemplate(metaclass=abc.ABCMeta): """ 构造物模板的基类 """ @abc.abstractmethod def _register_kwd(self): """ 注册参数的抽象方法, 构造函数调用一次, 子类定义中需实现. 已注册的参数可以在构造函数中使用. Returns: """ pass @abc.abstrac...
18.923077
67
0.560976
# -*- coding : utf-8-*- import abc from enum import Enum class StructTypeEunm(Enum): Default = 0 Foundation = 1 Pier = 2 Beam = 3 MovementJoint = 4 Bearing = 5 class StructTemplate(metaclass=abc.ABCMeta): """ 构造物模板的基类 """ def __init__(self, **kwargs): super().__ini...
404
105
50
22160878092edbf801e673d5b60ec4d11042b97b
54
py
Python
descarteslabs/exceptions.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
167
2017-03-23T22:16:58.000Z
2022-03-08T09:19:30.000Z
descarteslabs/exceptions.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
93
2017-03-23T22:11:40.000Z
2021-12-13T18:38:53.000Z
descarteslabs/exceptions.py
carderne/descarteslabs-python
757b480efb8d58474a3bf07f1dbd90652b46ed64
[ "Apache-2.0" ]
46
2017-03-25T19:12:14.000Z
2021-08-15T18:04:29.000Z
from descarteslabs.client.exceptions import * # noqa
27
53
0.796296
from descarteslabs.client.exceptions import * # noqa
0
0
0
9add6369099407d239dfd5f5a641e89ddfbd4547
100
py
Python
Unit 07 Lists and Functions/02 Battleship/Dont Sinc my Battleship/4-Check it Twice.py
lpython2006e/python-samples
b94ba67ce0d7798ecf796dadae206aa75da58301
[ "MIT" ]
null
null
null
Unit 07 Lists and Functions/02 Battleship/Dont Sinc my Battleship/4-Check it Twice.py
lpython2006e/python-samples
b94ba67ce0d7798ecf796dadae206aa75da58301
[ "MIT" ]
null
null
null
Unit 07 Lists and Functions/02 Battleship/Dont Sinc my Battleship/4-Check it Twice.py
lpython2006e/python-samples
b94ba67ce0d7798ecf796dadae206aa75da58301
[ "MIT" ]
null
null
null
board = [] for loop in range(0, 5): treta = ["O"] * 5 board.append(treta) print(board)
14.285714
24
0.54
board = [] for loop in range(0, 5): treta = ["O"] * 5 board.append(treta) print(board)
0
0
0
481b85b60986efd8a6281d741787c2bbac4351d6
43
py
Python
ppline/__init__.py
5x12/ppline
a4f7bd9aae0752a8abe7c4580c808792bb044ff6
[ "MIT" ]
9
2021-08-11T13:38:22.000Z
2022-01-14T15:32:45.000Z
ppline/__init__.py
5x12/ppline
a4f7bd9aae0752a8abe7c4580c808792bb044ff6
[ "MIT" ]
null
null
null
ppline/__init__.py
5x12/ppline
a4f7bd9aae0752a8abe7c4580c808792bb044ff6
[ "MIT" ]
null
null
null
from .version import __version__ as version
43
43
0.860465
from .version import __version__ as version
0
0
0
179245556a68823d8ddf5b05d7352eeb75fc6e01
6,398
py
Python
code.py
flavio-fernandes/Lemon_Keypad
616947cb7d6e08b89d319925147acb6eafb6f840
[ "MIT" ]
null
null
null
code.py
flavio-fernandes/Lemon_Keypad
616947cb7d6e08b89d319925147acb6eafb6f840
[ "MIT" ]
null
null
null
code.py
flavio-fernandes/Lemon_Keypad
616947cb7d6e08b89d319925147acb6eafb6f840
[ "MIT" ]
null
null
null
import time import board import keypad import usb_hid import neopixel from adafruit_led_animation.animation.pulse import Pulse from adafruit_led_animation.animation.solid import Solid from adafruit_led_animation.animation.blink import Blink from adafruit_led_animation.group import AnimationGroup from adafruit_led_anima...
32.979381
88
0.648015
import time import board import keypad import usb_hid import neopixel from adafruit_led_animation.animation.pulse import Pulse from adafruit_led_animation.animation.solid import Solid from adafruit_led_animation.animation.blink import Blink from adafruit_led_animation.group import AnimationGroup from adafruit_led_anima...
0
0
0
92ad20f6a43bb0cb69f669bba8dc4b398d0a4fe2
1,025
py
Python
catapult_build/temp_deployment_dir.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
catapult_build/temp_deployment_dir.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
catapult_build/temp_deployment_dir.py
tingshao/catapult
a8fe19e0c492472a8ed5710be9077e24cc517c5c
[ "BSD-3-Clause" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import contextlib import os import shutil import tempfile @contextlib.contextmanager def TempDeploymentDir(paths, use_symlinks=True): "...
25.625
72
0.742439
#!/usr/bin/python # Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import contextlib import os import shutil import tempfile @contextlib.contextmanager def TempDeploymentDir(paths, use_symlinks=True): "...
89
0
23
8f1ba727572a6d53d9beb79c7e80939f8d8a4ac8
553
py
Python
2-Medium/numsSameConsecDiff.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
2-Medium/numsSameConsecDiff.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
2-Medium/numsSameConsecDiff.py
Sma-Das/Leetcode
6f9b8f069e2ef198408abd6780fd0697a8bebada
[ "MIT" ]
null
null
null
from functools import cache if __name__ == '__main__': print(numsSameConsecDiff(8, 1))
26.333333
125
0.562387
from functools import cache def numsSameConsecDiff(n, k): @cache def builder(curr, rem, delta, string=""): if not 0 <= curr <= 9: return "" elif not rem: return string return builder(curr+delta, rem-1, delta, string + str(curr)) + builder(curr-delta, rem-1, -del...
436
0
23
d07886582f75e81b62fd49dd65935ab4cfc6c47a
9,540
py
Python
k_road/builder/carla_multi_road_builder.py
NREL/K_Road
ec8049cf1b81c58dd3b95f8298a362d863cd4a68
[ "BSD-3-Clause" ]
1
2021-04-19T23:28:26.000Z
2021-04-19T23:28:26.000Z
k_road/builder/carla_multi_road_builder.py
NREL/K_Road
ec8049cf1b81c58dd3b95f8298a362d863cd4a68
[ "BSD-3-Clause" ]
null
null
null
k_road/builder/carla_multi_road_builder.py
NREL/K_Road
ec8049cf1b81c58dd3b95f8298a362d863cd4a68
[ "BSD-3-Clause" ]
null
null
null
import itertools import json from math import inf import rtree as rtree from pymunk import Vec2d from k_road.builder.road_builder import RoadBuilder from k_road.constants import Constants from k_road.entity import entity_factory from k_road.entity.entity_type import EntityType # ------------------------------------...
40.944206
116
0.541929
import itertools import json from math import inf import rtree as rtree from pymunk import Vec2d from k_road.builder.road_builder import RoadBuilder from k_road.constants import Constants from k_road.entity import entity_factory from k_road.entity.entity_type import EntityType # ------------------------------------...
2,189
6,752
23
109077b6bffa09bb60ecfe829200a784dfc2cf34
227
wsgi
Python
maildash.wsgi
drogomarks/maildash
1fd481443e65baa579d436f4e6ff6d702b2147a8
[ "MIT" ]
null
null
null
maildash.wsgi
drogomarks/maildash
1fd481443e65baa579d436f4e6ff6d702b2147a8
[ "MIT" ]
null
null
null
maildash.wsgi
drogomarks/maildash
1fd481443e65baa579d436f4e6ff6d702b2147a8
[ "MIT" ]
null
null
null
#!/usr/bin/python import sys import logging logging.basicConfig(stream=sys.stderr) sys.path.insert(0,"/var/www/vhosts/maildash.iccenter.org/") from maildash import app as application application.secret_key = 'development-key'
25.222222
59
0.797357
#!/usr/bin/python import sys import logging logging.basicConfig(stream=sys.stderr) sys.path.insert(0,"/var/www/vhosts/maildash.iccenter.org/") from maildash import app as application application.secret_key = 'development-key'
0
0
0
5cdbb9e0bfbf2f67bd0dd205cedcf0606a9c0678
10,160
py
Python
fabfile.py
pjdufour/geonode-fabric
b94b0209833438aba282d46f5026f081624fbc24
[ "BSD-3-Clause" ]
null
null
null
fabfile.py
pjdufour/geonode-fabric
b94b0209833438aba282d46f5026f081624fbc24
[ "BSD-3-Clause" ]
3
2015-07-08T02:57:18.000Z
2015-10-20T14:47:22.000Z
fabfile.py
pjdufour/geonode-fabric
b94b0209833438aba282d46f5026f081624fbc24
[ "BSD-3-Clause" ]
null
null
null
import os, glob from fabric.api import env, sudo, run, cd, local, put, prefix, roles, execute, task, get from fabric.api import settings as fab_settings from fabric.context_managers import settings, hide from fabric.contrib.files import sed from subprocess import Popen, PIPE import datetime from utils import _build_en...
28.300836
182
0.648031
import os, glob from fabric.api import env, sudo, run, cd, local, put, prefix, roles, execute, task, get from fabric.api import settings as fab_settings from fabric.context_managers import settings, hide from fabric.contrib.files import sed from subprocess import Popen, PIPE import datetime from utils import _build_en...
6,099
0
635
66fe1e386cce0d1dbf63792418582c43e068cc5e
146
py
Python
Level 2.py
Pancakes-Studio/Pyrates-Solutions
c7fa25b0e291992865dd174af4de3280e49c8c50
[ "CC0-1.0" ]
null
null
null
Level 2.py
Pancakes-Studio/Pyrates-Solutions
c7fa25b0e291992865dd174af4de3280e49c8c50
[ "CC0-1.0" ]
null
null
null
Level 2.py
Pancakes-Studio/Pyrates-Solutions
c7fa25b0e291992865dd174af4de3280e49c8c50
[ "CC0-1.0" ]
null
null
null
for _ in range(6): sauter() avancer() avancer() gauche() for _ in range(2): avancer() for _ in range(9): coup() avancer() avancer() ouvrir()
11.230769
18
0.636986
for _ in range(6): sauter() avancer() avancer() gauche() for _ in range(2): avancer() for _ in range(9): coup() avancer() avancer() ouvrir()
0
0
0
33a96f8a946a9c1aa3abd710c6acbda08a44e602
2,190
py
Python
auto_pose/test/encoder_inference.py
ukucukas/AugmentedAutoencoder
d1eb0d90c910c007f30e57321e62ceaaf2f72305
[ "MIT" ]
1
2021-12-19T05:18:41.000Z
2021-12-19T05:18:41.000Z
auto_pose/test/encoder_inference.py
ukucukas/AugmentedAutoencoder
d1eb0d90c910c007f30e57321e62ceaaf2f72305
[ "MIT" ]
null
null
null
auto_pose/test/encoder_inference.py
ukucukas/AugmentedAutoencoder
d1eb0d90c910c007f30e57321e62ceaaf2f72305
[ "MIT" ]
1
2021-12-19T05:18:37.000Z
2021-12-19T05:18:37.000Z
import cv2 import tensorflow as tf import numpy as np import glob import os import time import argparse import configparser from auto_pose.ae import factory, utils parser = argparse.ArgumentParser() parser.add_argument("experiment_name") parser.add_argument("-f", "--file_str", required=True, help='folder or filena...
31.73913
160
0.703653
import cv2 import tensorflow as tf import numpy as np import glob import os import time import argparse import configparser from auto_pose.ae import factory, utils parser = argparse.ArgumentParser() parser.add_argument("experiment_name") parser.add_argument("-f", "--file_str", required=True, help='folder or filena...
0
0
0
d158dd7e5ae7c246efaba2cc2e84dba884ebba62
2,392
py
Python
seeds/utils/parsing.py
briandconnelly/seeds
a114ac66e62a960e18127faf52cff9e48831e212
[ "Apache-2.0" ]
11
2016-02-05T15:06:53.000Z
2022-02-28T05:51:28.000Z
seeds/utils/parsing.py
briandconnelly/seeds
a114ac66e62a960e18127faf52cff9e48831e212
[ "Apache-2.0" ]
null
null
null
seeds/utils/parsing.py
briandconnelly/seeds
a114ac66e62a960e18127faf52cff9e48831e212
[ "Apache-2.0" ]
5
2017-11-12T13:44:44.000Z
2020-08-20T15:06:31.000Z
# -*- coding: utf-8 -*- """ Collection of functions that perform different types of parsing """ __author__ = "Brian Connelly <bdc@bconnelly.net>" __credits__ = "Brian Connelly" import re from seeds.SEEDSError import * def parse_int_rangelist(s, sorted=False): """Parse a list of numeric ranges. These lists are...
27.813953
104
0.553094
# -*- coding: utf-8 -*- """ Collection of functions that perform different types of parsing """ __author__ = "Brian Connelly <bdc@bconnelly.net>" __credits__ = "Brian Connelly" import re from seeds.SEEDSError import * def parse_int_rangelist(s, sorted=False): """Parse a list of numeric ranges. These lists are...
0
0
0
3afcc1fc725de58c95837dc2537242e145971b94
4,727
py
Python
scripts/smoke.py
andreimaximov/uthread
236d820d3730f9552afbd4cb574bbc7a941c3eb4
[ "MIT" ]
null
null
null
scripts/smoke.py
andreimaximov/uthread
236d820d3730f9552afbd4cb574bbc7a941c3eb4
[ "MIT" ]
1
2018-07-07T21:58:33.000Z
2018-07-07T21:58:34.000Z
scripts/smoke.py
andreimaximov/uthread
236d820d3730f9552afbd4cb574bbc7a941c3eb4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import contextlib import os import random import socket import string import subprocess import time import unittest @contextlib.contextmanager class SmokeTest(unittest.TestCase): '''High level smoke tests for the library. These should be run via ninja smoke from your meson build ...
30.496774
79
0.532261
#!/usr/bin/env python3 import contextlib import os import random import socket import string import subprocess import time import unittest def pathToExample(name): build = os.getenv('MESON_BUILD_ROOT', os.getcwd()) example = os.path.join(build, name) if not os.path.exists(example): raise RuntimeE...
4,140
0
199
ec4fce808aa3296034a21f9188909ceac94864ad
1,102
py
Python
dataset/scripts/createTrainValTest.py
yeelan0319/DeepLab
b26ab7899d612d6489a985718388963d249dccf4
[ "MIT" ]
null
null
null
dataset/scripts/createTrainValTest.py
yeelan0319/DeepLab
b26ab7899d612d6489a985718388963d249dccf4
[ "MIT" ]
null
null
null
dataset/scripts/createTrainValTest.py
yeelan0319/DeepLab
b26ab7899d612d6489a985718388963d249dccf4
[ "MIT" ]
null
null
null
from __future__ import print_function import argparse import glob import os if __name__ == '__main__': main()
32.411765
121
0.643376
from __future__ import print_function import argparse import glob import os def get_arguments(): parser = argparse.ArgumentParser() parser.add_argument('--input-dir', type=str, help='input directory where target images are stored.') parser.add_argument("--output-file", type=str, ...
938
0
46
eec667a6667647a98b7284f1fd743d675ef16cc1
4,980
py
Python
phc/easy/util/__init__.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
null
null
null
phc/easy/util/__init__.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
null
null
null
phc/easy/util/__init__.py
taylordeatri/phc-sdk-py
8f3ec6ac44e50c7194f174fd0098de390886693d
[ "MIT" ]
null
null
null
import math from functools import reduce, wraps from typing import Callable, List, Union, Optional from toolz import groupby import pandas as pd from funcy import lmapcat try: from tqdm.autonotebook import tqdm except ImportError: _has_tqdm = False tqdm = None else: _has_tqdm = True def rename_keys(...
26.918919
86
0.619679
import math from functools import reduce, wraps from typing import Callable, List, Union, Optional from toolz import groupby import pandas as pd from funcy import lmapcat try: from tqdm.autonotebook import tqdm except ImportError: _has_tqdm = False tqdm = None else: _has_tqdm = True def rename_keys(...
1,782
0
226
1c45c58302360fe1ea1256f259b08d194601aee0
9,269
py
Python
spookbot.py
carsuki/discord-spookbot
a6bd5b7e80860d7db65f3eb634bab68b9d4c50f1
[ "BSD-3-Clause" ]
1
2021-10-01T13:44:05.000Z
2021-10-01T13:44:05.000Z
spookbot.py
carsuki/discord-spookbot
a6bd5b7e80860d7db65f3eb634bab68b9d4c50f1
[ "BSD-3-Clause" ]
null
null
null
spookbot.py
carsuki/discord-spookbot
a6bd5b7e80860d7db65f3eb634bab68b9d4c50f1
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import asyncio import discord import logging import json import random logger = logging.getLogger('spookbot') logger.setLevel(logging.INFO) handler = logging.FileHandler(filename='spookbot.log', mode='w', encoding='utf-8') handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name...
130.549296
7,276
0.784659
#!/usr/bin/env python3 import asyncio import discord import logging import json import random logger = logging.getLogger('spookbot') logger.setLevel(logging.INFO) handler = logging.FileHandler(filename='spookbot.log', mode='w', encoding='utf-8') handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name...
8,453
0
133
b376a6127354a780840f1c0172da66172758bf61
2,287
py
Python
activelayerchanger.py
rudnerbjoern/X-Touch-Mini-FS2020
a2b381d1148875b30c81ce873a3e664d0f42cd54
[ "MIT" ]
49
2020-10-14T23:21:38.000Z
2022-03-12T18:51:36.000Z
activelayerchanger.py
rudnerbjoern/X-Touch-Mini-FS2020
a2b381d1148875b30c81ce873a3e664d0f42cd54
[ "MIT" ]
57
2020-10-14T23:33:24.000Z
2022-03-12T15:13:52.000Z
activelayerchanger.py
rudnerbjoern/X-Touch-Mini-FS2020
a2b381d1148875b30c81ce873a3e664d0f42cd54
[ "MIT" ]
22
2020-10-15T20:20:47.000Z
2022-01-19T18:14:46.000Z
from threading import Timer import mido import time from singleton import Singleton from activelayer import ActiveLayer, ActiveLayerIdentifier
32.211268
84
0.655444
from threading import Timer import mido import time from singleton import Singleton from activelayer import ActiveLayer, ActiveLayerIdentifier class RepeatedTimer(object): def __init__(self, interval, function, *args, **kwargs): self._timer = None self.interval = interval self.function = ...
1,816
11
314
02b1119772f67788c055b7cac52c387a04c782f4
12,900
py
Python
RingNode.py
vascoalramos/drive-through-p2p
e79dee9e3fe625870d5128902be74fc87e8934f6
[ "MIT" ]
null
null
null
RingNode.py
vascoalramos/drive-through-p2p
e79dee9e3fe625870d5128902be74fc87e8934f6
[ "MIT" ]
null
null
null
RingNode.py
vascoalramos/drive-through-p2p
e79dee9e3fe625870d5128902be74fc87e8934f6
[ "MIT" ]
null
null
null
# coding: utf-8 import time import pickle import socket import random import logging import argparse import configparser import threading from utils import contains_successor from queue import Queue ##############################################NODE DISCOVERY############################################## # M...
40.566038
144
0.497597
# coding: utf-8 import time import pickle import socket import random import logging import argparse import configparser import threading from utils import contains_successor from queue import Queue class RingNode (threading.Thread): def __init__(self, loggerName, ID, port, name, timeout, TG, ring, ringSize, EG=...
11,038
13
346
a5b1ef74d91c923b25e7ff968e9e75437b0c84fb
681
py
Python
scratch/shift_for_model.py
I2Cvb/prostate
d2eaa6fc6129912e59dd7f7ddd700fc365451b4f
[ "MIT" ]
5
2016-01-10T05:55:55.000Z
2019-10-15T06:21:13.000Z
scratch/shift_for_model.py
I2Cvb/prostate
d2eaa6fc6129912e59dd7f7ddd700fc365451b4f
[ "MIT" ]
7
2016-01-21T19:53:00.000Z
2016-05-13T10:57:07.000Z
scratch/shift_for_model.py
I2Cvb/prostate
d2eaa6fc6129912e59dd7f7ddd700fc365451b4f
[ "MIT" ]
3
2019-10-15T06:21:18.000Z
2022-03-20T15:05:18.000Z
import os import numpy as np from protoclass.preprocessing import StandardTimeNormalization path_root = '/data/prostate/pre-processing/lemaitre-2016-nov/norm-objects' shift_patient = [] # We have to open each npy file for root, dirs, files in os.walk(path_root): # Create the string for the file to read f...
25.222222
74
0.743025
import os import numpy as np from protoclass.preprocessing import StandardTimeNormalization path_root = '/data/prostate/pre-processing/lemaitre-2016-nov/norm-objects' shift_patient = [] # We have to open each npy file for root, dirs, files in os.walk(path_root): # Create the string for the file to read f...
0
0
0
6bf728458807b344e38e54f5c983e0db7fa1294d
625
py
Python
common/migrations/0002_news_item.py
dianaperez25/web-common
ffbb0415719e0d791f64377949a9a950bfef8d9a
[ "MIT" ]
1
2020-01-15T19:34:27.000Z
2020-01-15T19:34:27.000Z
common/migrations/0002_news_item.py
dianaperez25/web-common
ffbb0415719e0d791f64377949a9a950bfef8d9a
[ "MIT" ]
2
2020-09-09T21:24:07.000Z
2020-10-20T21:35:31.000Z
common/migrations/0002_news_item.py
dianaperez25/web-common
ffbb0415719e0d791f64377949a9a950bfef8d9a
[ "MIT" ]
1
2019-11-18T20:27:23.000Z
2019-11-18T20:27:23.000Z
# Generated by Django 2.0.3 on 2018-03-30 22:28 import ckeditor.fields from django.db import migrations, models
27.173913
114
0.592
# Generated by Django 2.0.3 on 2018-03-30 22:28 import ckeditor.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('common', '0001_initial'), ] operations = [ migrations.CreateModel( name='news_item', fields=[...
0
488
23
4d55829346d47beb7191c7bf91631c6069a4eb11
206
py
Python
test/ifelse.py
radiilab/Rad-lang
39eb4762c5bfea8537f4f269a2e8457dd5409e3a
[ "BSD-3-Clause" ]
1
2019-07-18T23:30:38.000Z
2019-07-18T23:30:38.000Z
test/ifelse.py
radiilab/Rad-lang
39eb4762c5bfea8537f4f269a2e8457dd5409e3a
[ "BSD-3-Clause" ]
null
null
null
test/ifelse.py
radiilab/Rad-lang
39eb4762c5bfea8537f4f269a2e8457dd5409e3a
[ "BSD-3-Clause" ]
null
null
null
end print max(-1,-2) # = -1 print max(1,2) # = 2 print max(3,4) # = 4 print max(1.0, 1.5) # = 1.500000
15.846154
34
0.427184
def max(m,n): if m >= n: return m else: return n end end print max(-1,-2) # = -1 print max(1,2) # = 2 print max(3,4) # = 4 print max(1.0, 1.5) # = 1.500000
59
0
22
5dcf6a3f4ee83e62e50cab062484c07078e09b36
19,822
py
Python
archived_lectures/Fall_2019/common_python/common_python/tellurium/model_fitting.py
ModelEngineering/topics-course
cd0d73e4056663d170465669ecd699e8e74e35a0
[ "MIT" ]
2
2018-10-24T21:31:30.000Z
2019-10-23T20:29:22.000Z
archived_lectures/Fall_2019/common_python/common_python/tellurium/model_fitting.py
ModelEngineering/topics-course
cd0d73e4056663d170465669ecd699e8e74e35a0
[ "MIT" ]
1
2019-05-31T21:59:30.000Z
2019-05-31T21:59:30.000Z
archived_lectures/Fall_2019/common_python/common_python/tellurium/model_fitting.py
ModelEngineering/topics-course
cd0d73e4056663d170465669ecd699e8e74e35a0
[ "MIT" ]
9
2018-10-31T20:48:42.000Z
2019-11-20T21:47:43.000Z
'''Cross validation codes.''' """ kwargs: keyword arguments to runSimulation order of positional arguments: obs_data, model, parameters """ from collections import namedtuple import lmfit # Fitting lib import matplotlib.pyplot as plt import math import numpy as np import pandas as pd import random import tellurium...
33.314286
118
0.710372
'''Cross validation codes.''' """ kwargs: keyword arguments to runSimulation order of positional arguments: obs_data, model, parameters """ from collections import namedtuple import lmfit # Fitting lib import matplotlib.pyplot as plt import math import numpy as np import pandas as pd import random import tellurium...
579
0
72
03b4b20e1db347ac7e32013433df1a649645989c
497
py
Python
tests/test_utils.py
tiepvupsu/python_project_template
bc8baca2505180c9196f9ee7e7aa816149ef4acb
[ "Apache-2.0" ]
3
2021-10-09T17:09:16.000Z
2021-12-01T04:09:26.000Z
tests/test_utils.py
tiepvupsu/python_project_template
bc8baca2505180c9196f9ee7e7aa816149ef4acb
[ "Apache-2.0" ]
null
null
null
tests/test_utils.py
tiepvupsu/python_project_template
bc8baca2505180c9196f9ee7e7aa816149ef4acb
[ "Apache-2.0" ]
2
2021-11-06T09:56:38.000Z
2021-12-01T04:10:02.000Z
from qcore.asserts import assert_eq import random from python_project_template.utils import random_string
26.157895
55
0.678068
from qcore.asserts import assert_eq import random from python_project_template.utils import random_string class TestRandomString: def test_length(self): length = random.randint(1, 100) str1 = random_string(length) # sanity check assert_eq(length, len(str1)) def test_different...
311
2
76
5a86c6499e6ccdba68f3065d45be776ef5521ad9
1,925
py
Python
tests/losses/test_npairs_loss.py
kvzhao/pytorch-metric-learning
9c8a94bd1a906317d5834f26d8a94e59d578b825
[ "MIT" ]
2
2020-08-06T16:33:51.000Z
2021-06-09T03:24:19.000Z
tests/losses/test_npairs_loss.py
FadouaKhm/pytorch-metric-learning
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
[ "MIT" ]
null
null
null
tests/losses/test_npairs_loss.py
FadouaKhm/pytorch-metric-learning
9eb792bcfc1616b599e6ee457514e3cb3a7235dd
[ "MIT" ]
1
2021-03-15T04:24:52.000Z
2021-03-15T04:24:52.000Z
import unittest import torch from pytorch_metric_learning.losses import NPairsLoss from pytorch_metric_learning.utils import common_functions as c_f, loss_and_miner_utils as lmu
40.104167
138
0.640519
import unittest import torch from pytorch_metric_learning.losses import NPairsLoss from pytorch_metric_learning.utils import common_functions as c_f, loss_and_miner_utils as lmu class TestNPairsLoss(unittest.TestCase): def test_npairs_loss(self): loss_funcA = NPairsLoss() loss_funcB = NPairsLoss(l2...
1,652
19
76
a209637e4afe6ddf32c6879c7f16d6eef2526e3f
3,912
py
Python
Marine.py
ti-lei/iphone11
f69e7050ecdc87651eab5e8fdb38e4f305a9257f
[ "bzip2-1.0.6" ]
null
null
null
Marine.py
ti-lei/iphone11
f69e7050ecdc87651eab5e8fdb38e4f305a9257f
[ "bzip2-1.0.6" ]
null
null
null
Marine.py
ti-lei/iphone11
f69e7050ecdc87651eab5e8fdb38e4f305a9257f
[ "bzip2-1.0.6" ]
null
null
null
import requests import json import datetime import pandas as pd import numpy as np import platform # 有時候的登入狀態會抓不到資料: # 要抓的港口 'ID': 港口名稱 port_ID_map = {'87':'Los Angeles','2727':'longBeach','93':'Oakland','1253':'Shanhi','1006':'Yantian', '290':'Singapore','172':'Hamburg','2036':'Rotterdam','199':'Felixsto...
31.548387
134
0.63318
import requests import json import datetime import pandas as pd import numpy as np import platform # 有時候的登入狀態會抓不到資料: # 要抓的港口 'ID': 港口名稱 port_ID_map = {'87':'Los Angeles','2727':'longBeach','93':'Oakland','1253':'Shanhi','1006':'Yantian', '290':'Singapore','172':'Hamburg','2036':'Rotterdam','199':'Felixsto...
1,157
0
44
904d30cd99990d5d94752bedb14891ba59f015b1
2,606
py
Python
tools/remoteserver/test/unit/test_robotremoteserver.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tools/remoteserver/test/unit/test_robotremoteserver.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
tools/remoteserver/test/unit/test_robotremoteserver.py
gdw2/robot-framework
f25068edf1502e76ba8664d4b5ed1aebe0ee2434
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import unittest import sys import os.path remotedir = os.path.dirname(os.path.dirname(os.path.dirname((__file__)))) sys.path.insert(0, remotedir) from robotremoteserver import RobotRemoteServer if __name__ == '__main__': unittest.main()
34.289474
79
0.658864
#!/usr/bin/env python import unittest import sys import os.path remotedir = os.path.dirname(os.path.dirname(os.path.dirname((__file__)))) sys.path.insert(0, remotedir) from robotremoteserver import RobotRemoteServer class NonServingRemoteServer(RobotRemoteServer): def __init__(self, library): self._lib...
1,515
655
141
31d368a09d53f7ef06a05986d7659e338c8d3ccd
1,149
py
Python
resources/lib/utils/jsonrpc.py
EnigmaNox/script.service.sponsorblock
a1ac5eb950b11803635f7174e94eacaab6784040
[ "MIT" ]
61
2020-03-02T04:51:02.000Z
2022-03-26T18:29:53.000Z
resources/lib/utils/jsonrpc.py
EnigmaNox/script.service.sponsorblock
a1ac5eb950b11803635f7174e94eacaab6784040
[ "MIT" ]
26
2020-03-02T14:17:58.000Z
2022-03-12T06:08:05.000Z
resources/lib/utils/jsonrpc.py
EnigmaNox/script.service.sponsorblock
a1ac5eb950b11803635f7174e94eacaab6784040
[ "MIT" ]
9
2020-03-02T04:51:34.000Z
2021-11-09T11:17:25.000Z
import json import logging import xbmc logger = logging.getLogger(__name__) _JSONRPC_TEMPLATE = """{{"jsonrpc":"2.0","id":0,"method":"{method}","params":{params}}}""" PLAYER_MUSIC = 0 PLAYER_VIDEO = 1 PLAYER_PICTURE = 2 LIST_FIELD_ART = "art" LIST_FIELD_UNIQUEID = "uniqueid"
23.9375
101
0.665796
import json import logging import xbmc logger = logging.getLogger(__name__) class JSONRPCError(Exception): def __init__(self, code, message): # type: (int, str) -> None self.code = code self.message = message super(JSONRPCError, self).__init__(message) _JSONRPC_TEMPLATE = """{{"jsonr...
759
9
95
d37d1db4d55dfafb01538b15343cd30825bd02af
23,951
py
Python
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_fpolicy_scope.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_fpolicy_scope.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_fpolicy_scope.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2021, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' module: na_ontap_fpolicy_scope short_description: NetApp ONTAP - Create, del...
46.148362
155
0.655296
#!/usr/bin/python # (c) 2021, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' module: na_ontap_fpolicy_scope short_description: NetApp ONTAP - Create, del...
2,570
16,585
23
5d9c85392bfe9bb4243e8f4af19e27ff3c31b32d
13,346
py
Python
src/codebots/cli/cli.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
5
2021-05-06T21:51:30.000Z
2022-01-10T17:53:00.000Z
src/codebots/cli/cli.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
10
2021-04-03T12:00:27.000Z
2021-11-04T16:27:48.000Z
src/codebots/cli/cli.py
franaudo/codebots
f45ee9f665cadc4627d397ae74eefca226269656
[ "MIT" ]
null
null
null
"""Console script for codebots. You can get detaled information about each of the bots with the :code:`--help` option. .. code-block:: bash codebots --help emailbot --help telebot --help slackbot --help sshbot --help deploybot --help latexbot --help drivebot ...
29.592018
144
0.629852
"""Console script for codebots. You can get detaled information about each of the bots with the :code:`--help` option. .. code-block:: bash codebots --help emailbot --help telebot --help slackbot --help sshbot --help deploybot --help latexbot --help drivebot ...
0
0
0
fd3021eed51e3ea874759c0958b45aa99639a905
2,020
py
Python
broker/src/ave/broker/resource.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
17
2016-11-16T08:09:49.000Z
2021-08-12T06:38:09.000Z
broker/src/ave/broker/resource.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
null
null
null
broker/src/ave/broker/resource.py
yiu31802/ave
e46fc357f9464d5beaf42568a74bb95e6b1b8037
[ "BSD-3-Clause" ]
12
2016-11-20T15:34:03.000Z
2020-08-04T00:26:11.000Z
# Copyright (C) 2013 Sony Mobile Communications AB. # All rights, including trade secret rights, reserved. from ave.broker.session import RemoteSession
37.407407
69
0.676238
# Copyright (C) 2013 Sony Mobile Communications AB. # All rights, including trade secret rights, reserved. from ave.broker.session import RemoteSession class RemoteWorkspace(RemoteSession): def __init__(self, address, authkey, profile): if not profile['type'] == 'workspace': raise Exception('...
1,415
102
350
322d586f934f92e70aa2df7d8cd7b0ee18656cda
244
py
Python
Q5.py
BoffinZhang/Files-for-Summer-School
43ebe8ff7c7f8287b6cf80466d1a52633d1f9831
[ "MIT" ]
null
null
null
Q5.py
BoffinZhang/Files-for-Summer-School
43ebe8ff7c7f8287b6cf80466d1a52633d1f9831
[ "MIT" ]
null
null
null
Q5.py
BoffinZhang/Files-for-Summer-School
43ebe8ff7c7f8287b6cf80466d1a52633d1f9831
[ "MIT" ]
null
null
null
# Add zip code import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["mydatabase"] mycol = mydb["restaurant"] myquery = {"borough":{"$regex":"Bronx"}} for x in mycol.find(myquery): print(x)
22.181818
61
0.668033
# Add zip code import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["mydatabase"] mycol = mydb["restaurant"] myquery = {"borough":{"$regex":"Bronx"}} for x in mycol.find(myquery): print(x)
0
0
0
d2180f20dde51c9f90b616cceaa687af3eafce6f
2,133
py
Python
backend/publish-simulator.py
jpmens/zabbix-owntracks-lld
f0a456745604da2c4f90c4e5e9b7b37da7b766e5
[ "MIT" ]
null
null
null
backend/publish-simulator.py
jpmens/zabbix-owntracks-lld
f0a456745604da2c4f90c4e5e9b7b37da7b766e5
[ "MIT" ]
null
null
null
backend/publish-simulator.py
jpmens/zabbix-owntracks-lld
f0a456745604da2c4f90c4e5e9b7b37da7b766e5
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 -B import paho.mqtt.publish as mqtt # pip install --upgrade paho-mqtt import json from collections import namedtuple import time import random import base64 import os Loc = namedtuple('Loc', 'imei lat lon alt vel cog plate tid') positions = [ Loc("516081298750081", 59.373399, 17.946690, ...
27.701299
84
0.508673
#!/usr/bin/env python3 -B import paho.mqtt.publish as mqtt # pip install --upgrade paho-mqtt import json from collections import namedtuple import time import random import base64 import os Loc = namedtuple('Loc', 'imei lat lon alt vel cog plate tid') positions = [ Loc("516081298750081", 59.373399, 17.946690, ...
0
0
0
fd6e5a6880fcda945c3cec390c247ce0fcbe4228
5,119
py
Python
service/dna_service.py
c1c4/mutant_api
f12bd629eda32c14615eec7214f980135b5ea8d3
[ "MIT" ]
null
null
null
service/dna_service.py
c1c4/mutant_api
f12bd629eda32c14615eec7214f980135b5ea8d3
[ "MIT" ]
null
null
null
service/dna_service.py
c1c4/mutant_api
f12bd629eda32c14615eec7214f980135b5ea8d3
[ "MIT" ]
null
null
null
from db.repositories.statistics_repository import StatisticsRepository from db.repositories.dna_repository import DNARepository from model import Dna from model.DTO.Dna import DNACreate from service import statistics_service from fastapi import HTTPException
37.364964
127
0.551866
from db.repositories.statistics_repository import StatisticsRepository from db.repositories.dna_repository import DNARepository from model import Dna from model.DTO.Dna import DNACreate from service import statistics_service from fastapi import HTTPException class DnaService: def horizontal(self, char, row_dna, n...
4,734
-4
130
029b5ad7aa1bc0f1f2748b4db33453d89c1639d8
1,632
py
Python
var/spack/repos/builtin/packages/julea/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/julea/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/julea/package.py
carlabguillen/spack
7070bb892f9bdb5cf9e76e0eecd64f6cc5f4695c
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
1
2019-10-29T09:08:17.000Z
2019-10-29T09:08:17.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Julea(MesonPackage): """JULEA is a flexible storage framework that allows offering arbitra...
37.953488
75
0.700368
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Julea(MesonPackage): """JULEA is a flexible storage framework that allows offering arbitra...
0
0
0
9c502410375e710cc49e0805e11f9a804dc41ebb
511
py
Python
app/models/images.py
FabioCassimiro/API-FacialRecognition
16b7ffb9a668ca9056daa86b85b05862b272b9a9
[ "MIT" ]
null
null
null
app/models/images.py
FabioCassimiro/API-FacialRecognition
16b7ffb9a668ca9056daa86b85b05862b272b9a9
[ "MIT" ]
null
null
null
app/models/images.py
FabioCassimiro/API-FacialRecognition
16b7ffb9a668ca9056daa86b85b05862b272b9a9
[ "MIT" ]
1
2020-11-07T23:44:06.000Z
2020-11-07T23:44:06.000Z
import base64 # converte os bytes em imagem e salva no path especificado # remove o cabeçalho do base64 enviado na requisição pelo JS
34.066667
65
0.731898
import base64 def image(byte_image, path_image): convert_to_image(adjust_bytes(byte_image),path_image) # converte os bytes em imagem e salva no path especificado def convert_to_image(byte_image,path_image='"./face/image.jpeg'): with open(path_image,'wb') as image: image.write(base64.b64decode(by...
295
0
67
585a62862768c57591c5253322a5d7f7cc30eff0
6,972
py
Python
conductor/conductor/common/rest.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
null
null
null
conductor/conductor/common/rest.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
null
null
null
conductor/conductor/common/rest.py
aalsudais/optf-has
c3e070b6ebc713a571c10d7a5cd87e5053047136
[ "Apache-2.0" ]
null
null
null
# # ------------------------------------------------------------------------- # Copyright (c) 2015-2017 AT&T Intellectual Property # # 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 # # ...
38.949721
138
0.595382
# # ------------------------------------------------------------------------- # Copyright (c) 2015-2017 AT&T Intellectual Property # # 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 # # ...
0
0
0
2cff7ca1e7f35bf4321272f734cc7d4f03541065
1,023
py
Python
pipeline/utils/task_utils.py
enterstudio/artman
b9b2e6c0d42a0698b6ee59f4e755e7f2e603f8aa
[ "Apache-2.0" ]
2
2019-11-30T23:42:09.000Z
2021-08-30T19:54:48.000Z
pipeline/utils/task_utils.py
enterstudio/artman
b9b2e6c0d42a0698b6ee59f4e755e7f2e603f8aa
[ "Apache-2.0" ]
null
null
null
pipeline/utils/task_utils.py
enterstudio/artman
b9b2e6c0d42a0698b6ee59f4e755e7f2e603f8aa
[ "Apache-2.0" ]
1
2017-03-30T00:28:15.000Z
2017-03-30T00:28:15.000Z
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
34.1
74
0.718475
# Copyright 2016 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
346
0
23
0be7b0c2cb7839914cc971ec6aec845982497db2
406
py
Python
examples/file_manager/suds_client.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
786
2015-01-04T10:46:28.000Z
2022-03-31T19:24:35.000Z
examples/file_manager/suds_client.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
248
2015-01-01T21:52:47.000Z
2022-03-09T08:55:04.000Z
examples/file_manager/suds_client.py
infoxchange/spyne
60ed622b088c13f4f84c81f1f43302edbc7f6027
[ "BSD-3-Clause" ]
210
2015-01-10T14:20:31.000Z
2022-03-09T08:38:43.000Z
#!/usr/bin/env python from suds.client import Client import base64 # Suds does not support base64binary type, so we do the encoding manually. file_data = base64.b64encode('file_data') c=Client('http://localhost:9000/filemgr/?wsdl') c.service.add('x', 'y', 'file_name', file_data) print('file written.') print() prin...
22.555556
74
0.738916
#!/usr/bin/env python from suds.client import Client import base64 # Suds does not support base64binary type, so we do the encoding manually. file_data = base64.b64encode('file_data') c=Client('http://localhost:9000/filemgr/?wsdl') c.service.add('x', 'y', 'file_name', file_data) print('file written.') print() prin...
0
0
0
c2c459171d9b2ef000ef3bcfb30b6970bec36cb1
1,609
py
Python
LoopStructural/analysis/_fault_intersection.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
null
null
null
LoopStructural/analysis/_fault_intersection.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
null
null
null
LoopStructural/analysis/_fault_intersection.py
wgorczyk/LoopStructural
bedc7abd4c1868fdbd6ed659c8d72ef19f793875
[ "MIT" ]
null
null
null
from skimage.measure import marching_cubes import pandas as pd import numpy as np from LoopStructural.utils import getLogger logger = getLogger(__name__)
35.755556
90
0.556246
from skimage.measure import marching_cubes import pandas as pd import numpy as np from LoopStructural.utils import getLogger logger = getLogger(__name__) def calculate_fault_intersections(model): fault_names = [] for f in model.features: if f.type == 'fault': fault_names.append(f.name) ...
1,432
0
23
d8093f41c8c35c15b5fb26fa79a3e71366424290
3,041
py
Python
class_05.py
Pallavidighe2/python_201901
48696f34df9747edbecf2551c07aefab5078d664
[ "MIT" ]
null
null
null
class_05.py
Pallavidighe2/python_201901
48696f34df9747edbecf2551c07aefab5078d664
[ "MIT" ]
null
null
null
class_05.py
Pallavidighe2/python_201901
48696f34df9747edbecf2551c07aefab5078d664
[ "MIT" ]
1
2019-02-02T07:48:59.000Z
2019-02-02T07:48:59.000Z
""" 1 comprehension 2 user defined function # ASSIGNMENT: 1 WRITE list comprehension to create 15 random number 2 write list comprehensioon to create prime number till user defined number 3 write dictionary comprehension with 5 key value paiir 4 convert all assignmnent into user defined function """ ### COMPREHENS...
18.656442
122
0.628412
""" 1 comprehension 2 user defined function # ASSIGNMENT: 1 WRITE list comprehension to create 15 random number 2 write list comprehensioon to create prime number till user defined number 3 write dictionary comprehension with 5 key value paiir 4 convert all assignmnent into user defined function """ ### COMPREHENS...
76
0
46
fb2fd19d087f08ddfe4ef3e22ce9e7064203ecb4
613
py
Python
test/test_version_cmd.py
PunicaSuite/punica-python
dfcd50de4452454b96d0c252c2db994e3bad38c0
[ "MIT" ]
6
2018-11-01T23:39:32.000Z
2020-03-25T13:39:46.000Z
test/test_version_cmd.py
PunicaSuite/punica-python
dfcd50de4452454b96d0c252c2db994e3bad38c0
[ "MIT" ]
3
2018-10-26T12:53:16.000Z
2019-06-21T13:22:56.000Z
test/test_version_cmd.py
PunicaSuite/punica-python
dfcd50de4452454b96d0c252c2db994e3bad38c0
[ "MIT" ]
7
2018-10-11T07:03:10.000Z
2019-06-26T02:38:58.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest from punica.cli import main from click.testing import CliRunner if __name__ == '__main__': unittest.main()
21.892857
55
0.660685
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import unittest from punica.cli import main from click.testing import CliRunner class TestVersion(unittest.TestCase): def setUp(self): self.runner = CliRunner() def check_result(self, result): self.assertEqual(0, result.exit_code) self...
314
16
103
c66a2049efa0709f3c31e7fb3ecbc655e80f058c
4,205
py
Python
gh-standardize/repository.py
akmadian/gh-standardize
9b48db21f64aa4b215d1f4fed74fa170b270654d
[ "MIT" ]
1
2020-02-21T14:05:29.000Z
2020-02-21T14:05:29.000Z
gh-standardize/repository.py
akmadian/gh-standardize
9b48db21f64aa4b215d1f4fed74fa170b270654d
[ "MIT" ]
null
null
null
gh-standardize/repository.py
akmadian/gh-standardize
9b48db21f64aa4b215d1f4fed74fa170b270654d
[ "MIT" ]
null
null
null
import requests import json from github import GithubException
34.186992
129
0.6
import requests import json from github import GithubException class Repository: def __init__(self, repoObject): self.repoObject = repoObject self.hasDotGithub = self.hasDotGithub() self.repoConfig = self.hasRepoConfig() self.EXEMPT = self.isExempt() self.CHANGESMADE = True ...
3,772
-4
373
d902ef78f16854eb35693929ba0cdee382700b8d
318
py
Python
examples/run_intent.py
whksmo/deep-intent
2617373cf94fccbe9fc37d50ee010a5c2b8418b0
[ "MIT" ]
null
null
null
examples/run_intent.py
whksmo/deep-intent
2617373cf94fccbe9fc37d50ee010a5c2b8418b0
[ "MIT" ]
7
2019-12-16T22:03:26.000Z
2022-02-10T00:17:03.000Z
examples/run_intent.py
whksmo/deep-intent
2617373cf94fccbe9fc37d50ee010a5c2b8418b0
[ "MIT" ]
null
null
null
model = dm.DSCN(task=6723) model.compile("adam", "sparse_categorical_crossentropy", metrics=['accuracy']) print('start training...') history = model.fit(train_model_input, data[target].values, batch_size=256, epochs=20, verbose=2, validation_data=(test_model_input, test_data[target].values)) model.save('./dscn.h5')
45.428571
159
0.764151
model = dm.DSCN(task=6723) model.compile("adam", "sparse_categorical_crossentropy", metrics=['accuracy']) print('start training...') history = model.fit(train_model_input, data[target].values, batch_size=256, epochs=20, verbose=2, validation_data=(test_model_input, test_data[target].values)) model.save('./dscn.h5')
0
0
0
1751ba4092f07008ee12697a031ae468288af2c1
444
py
Python
connect_mssql.py
gventuraagramonte/python-connect-with-mssql-from-ubuntu
85d74d956de4b824721027a3ed9eeb6f2d12b3cc
[ "MIT" ]
null
null
null
connect_mssql.py
gventuraagramonte/python-connect-with-mssql-from-ubuntu
85d74d956de4b824721027a3ed9eeb6f2d12b3cc
[ "MIT" ]
null
null
null
connect_mssql.py
gventuraagramonte/python-connect-with-mssql-from-ubuntu
85d74d956de4b824721027a3ed9eeb6f2d12b3cc
[ "MIT" ]
null
null
null
import pyodbc server = 'localhost' database = 'testDB' username = 'SA' password = 'giorgio$1' cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password) cursor = cnxn.cursor() print('Inserting a new row into table') tsql = "INSERT INTO Empl...
29.6
135
0.704955
import pyodbc server = 'localhost' database = 'testDB' username = 'SA' password = 'giorgio$1' cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password) cursor = cnxn.cursor() print('Inserting a new row into table') tsql = "INSERT INTO Empl...
0
0
0
1d99c6fff28687e1343c252d347b468d4e49a849
6,995
py
Python
permuted_sequential_mnist/tf_permuted_mnist_lstm_rcst.py
201528014227051/ARNet
e7779d6af1a8990712d8e8e4a72e4c1ed138f60e
[ "MIT" ]
9
2018-07-11T11:34:09.000Z
2021-11-21T15:37:18.000Z
permuted_sequential_mnist/tf_permuted_mnist_lstm_rcst.py
201528014227051/ARNet
e7779d6af1a8990712d8e8e4a72e4c1ed138f60e
[ "MIT" ]
null
null
null
permuted_sequential_mnist/tf_permuted_mnist_lstm_rcst.py
201528014227051/ARNet
e7779d6af1a8990712d8e8e4a72e4c1ed138f60e
[ "MIT" ]
2
2018-10-19T03:57:51.000Z
2018-12-01T17:13:36.000Z
#! encoding: UTF-8 import os import opts import ipdb import time import random import numpy as np from six.moves import cPickle import keras from keras.datasets import mnist import tensorflow as tf if __name__ == '__main__': opt = opts.parse_opt() opt_dict = vars(opt) for k, v in opt_dict.items(): ...
39.744318
139
0.639314
#! encoding: UTF-8 import os import opts import ipdb import time import random import numpy as np from six.moves import cPickle import keras from keras.datasets import mnist import tensorflow as tf class LSTM(): def __init__(self, opt): self.lstm_step = opt.lstm_step self.batch_size = opt.batch_...
6,103
-8
99
608f96ac7a63f382be1cfbe5dc84f36a2e3f47b0
43,726
py
Python
utils/env/tools/scripts/cmds/cmd_package.py
msrLi/targe_ejdStm32F407
65e462f98bd299c42b2c2f42d58a22135d6c27de
[ "Apache-2.0" ]
null
null
null
utils/env/tools/scripts/cmds/cmd_package.py
msrLi/targe_ejdStm32F407
65e462f98bd299c42b2c2f42d58a22135d6c27de
[ "Apache-2.0" ]
null
null
null
utils/env/tools/scripts/cmds/cmd_package.py
msrLi/targe_ejdStm32F407
65e462f98bd299c42b2c2f42d58a22135d6c27de
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- # # File : cmd_package.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwa...
38.42355
230
0.590976
# -*- coding:utf-8 -*- # # File : cmd_package.py # This file is part of RT-Thread RTOS # COPYRIGHT (C) 2006 - 2018, RT-Thread Development Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Softwa...
5,240
0
200
53750f2285a1bcd26140297e9d44271d2a64462b
255
py
Python
Curso_de_Python/Mundo_01/Aula_08/Aula/aula08b.py
tarcisioribeiro/Python
69b8fee218a6c9b93ae7a6ea36eb903d5ac36955
[ "MIT" ]
null
null
null
Curso_de_Python/Mundo_01/Aula_08/Aula/aula08b.py
tarcisioribeiro/Python
69b8fee218a6c9b93ae7a6ea36eb903d5ac36955
[ "MIT" ]
null
null
null
Curso_de_Python/Mundo_01/Aula_08/Aula/aula08b.py
tarcisioribeiro/Python
69b8fee218a6c9b93ae7a6ea36eb903d5ac36955
[ "MIT" ]
null
null
null
# Corrigido # Bloco de importações import random # Bloco de entrada print() n = int(input('Informe um número maior que zero: ')) print() # Bloco de cálculos num = random.randint(0, n) # Bloco de saída print('Numéro de saída: {}.'.format(num)) print()
15
52
0.690196
# Corrigido # Bloco de importações import random # Bloco de entrada print() n = int(input('Informe um número maior que zero: ')) print() # Bloco de cálculos num = random.randint(0, n) # Bloco de saída print('Numéro de saída: {}.'.format(num)) print()
0
0
0
f6320902b7466c2c80a03e97cf19b3b44f2d06c0
2,500
py
Python
scielomanager/scielomanager/urls.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
scielomanager/scielomanager/urls.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
scielomanager/scielomanager/urls.py
jamilatta/scielo-manager
d506c6828ba9b1089faa164bc42ba29a0f228e61
[ "BSD-2-Clause" ]
null
null
null
# -*- encoding: utf-8 -*- from django.conf.urls.defaults import * from django.contrib import admin from django.conf import settings from tastypie.api import Api from journalmanager import views, models from api import resources admin.autodiscover() # RESTful API config v1_api = Api(api_name='v1') v1_api_resources = ...
31.25
105
0.6764
# -*- encoding: utf-8 -*- from django.conf.urls.defaults import * from django.contrib import admin from django.conf import settings from tastypie.api import Api from journalmanager import views, models from api import resources admin.autodiscover() # RESTful API config v1_api = Api(api_name='v1') v1_api_resources = ...
0
0
0
88f379d6a1015c60b323a42fb79bebb3410e21fd
4,185
py
Python
examples/mri/p_mri_non_cartesian_reconstruction.py
starcksophie/pysap
c50b128039a54b6b26dcc3c7bd13fda304b8388c
[ "CECILL-B" ]
null
null
null
examples/mri/p_mri_non_cartesian_reconstruction.py
starcksophie/pysap
c50b128039a54b6b26dcc3c7bd13fda304b8388c
[ "CECILL-B" ]
null
null
null
examples/mri/p_mri_non_cartesian_reconstruction.py
starcksophie/pysap
c50b128039a54b6b26dcc3c7bd13fda304b8388c
[ "CECILL-B" ]
null
null
null
""" Neuroimaging cartesian reconstruction ===================================== Credit: L Elgueddari In this tutorial we will reconstruct an MRI image from the sparse kspace measurments. """ # Package import import pysap from pysap.data import get_sample_data from mri.numerics.linear import Wavelet2 from mri.numeric...
31.466165
78
0.669534
""" Neuroimaging cartesian reconstruction ===================================== Credit: L Elgueddari In this tutorial we will reconstruct an MRI image from the sparse kspace measurments. """ # Package import import pysap from pysap.data import get_sample_data from mri.numerics.linear import Wavelet2 from mri.numeric...
0
0
0
d3ecaa81e69157b4941a47504e3fa553b9731f4a
67
py
Python
webpie/Version.py
imandr/webpie
ee86d0230e5a1c102c2169d95d681292eb022c40
[ "BSD-3-Clause" ]
null
null
null
webpie/Version.py
imandr/webpie
ee86d0230e5a1c102c2169d95d681292eb022c40
[ "BSD-3-Clause" ]
null
null
null
webpie/Version.py
imandr/webpie
ee86d0230e5a1c102c2169d95d681292eb022c40
[ "BSD-3-Clause" ]
null
null
null
Version = "4.5.2" if __name__ == "__main__": print (Version)
11.166667
26
0.597015
Version = "4.5.2" if __name__ == "__main__": print (Version)
0
0
0
dc0f1b2715779a89523968c8d6a94839e2ea3d90
3,277
py
Python
guardian/models.py
auvipy/django-guardian
19884c24b7a51a359e9b52dbfa9f5d72df03558c
[ "MIT" ]
2
2020-05-28T03:45:09.000Z
2020-08-10T10:27:46.000Z
guardian/models.py
auvipy/django-guardian
19884c24b7a51a359e9b52dbfa9f5d72df03558c
[ "MIT" ]
7
2020-06-06T01:06:19.000Z
2022-02-10T11:15:14.000Z
guardian/models.py
auvipy/django-guardian
19884c24b7a51a359e9b52dbfa9f5d72df03558c
[ "MIT" ]
1
2019-09-10T11:14:04.000Z
2019-09-10T11:14:04.000Z
from django.contrib.auth.models import Group, Permission from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError from django.db import models from django.utils.translation import ugettext_lazy as _ fro...
36.010989
96
0.712237
from django.contrib.auth.models import Group, Permission from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ValidationError from django.db import models from django.utils.translation import ugettext_lazy as _ fro...
606
955
204
353c534bb27df4a24a4a71af43b58a8b0df51674
601
py
Python
transbank/validators/amount_validator.py
atpollmann/transbank-sdk-python
84adba01bc81110431ae49da95c9f7b823790f23
[ "BSD-3-Clause" ]
22
2018-10-11T17:37:35.000Z
2022-03-20T23:53:32.000Z
transbank/validators/amount_validator.py
atpollmann/transbank-sdk-python
84adba01bc81110431ae49da95c9f7b823790f23
[ "BSD-3-Clause" ]
25
2018-10-10T12:10:13.000Z
2022-01-27T19:04:22.000Z
transbank/validators/amount_validator.py
atpollmann/transbank-sdk-python
84adba01bc81110431ae49da95c9f7b823790f23
[ "BSD-3-Clause" ]
10
2018-12-04T16:41:17.000Z
2021-05-31T16:02:43.000Z
from transbank.error.invalid_amount_error import InvalidAmountError
31.631579
77
0.670549
from transbank.error.invalid_amount_error import InvalidAmountError class AmountValidator: @staticmethod def validate(amount, nullable=False): if nullable and amount is None: return try: float(amount) except ValueError: raise InvalidAmountError(Inva...
463
46
23
7b961d390f09a4e9d6d2f625b1bd5f3b5a16bab8
149
py
Python
test_usercrawler.py
coolspiderghy/sina_weibo_crawler
950c1c3f6d3a6a955f1c305993ef67f559bab7b6
[ "Apache-2.0" ]
4
2016-03-26T14:01:01.000Z
2019-08-22T12:17:16.000Z
test_usercrawler.py
coolspiderghy/weibo_scrawler_app
950c1c3f6d3a6a955f1c305993ef67f559bab7b6
[ "Apache-2.0" ]
null
null
null
test_usercrawler.py
coolspiderghy/weibo_scrawler_app
950c1c3f6d3a6a955f1c305993ef67f559bab7b6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from usercrawler import UserCrawler uid = u'小鱼游啊游0423' crawler = UserCrawler() userinfo = crawler.scratch(uid) print userinfo
24.833333
35
0.744966
# -*- coding: utf-8 -*- from usercrawler import UserCrawler uid = u'小鱼游啊游0423' crawler = UserCrawler() userinfo = crawler.scratch(uid) print userinfo
0
0
0
9d81e09b0e6e493e916a601da2ef0506f9e7a0a5
4,278
py
Python
deliravision/torch/models/psp.py
delira-dev/vision_torch
d944aa67d319bd63a2add5cb89e8308413943de6
[ "BSD-2-Clause" ]
4
2019-08-03T09:56:50.000Z
2019-09-05T09:32:06.000Z
deliravision/torch/models/psp.py
delira-dev/vision_torch
d944aa67d319bd63a2add5cb89e8308413943de6
[ "BSD-2-Clause" ]
23
2019-08-03T14:16:47.000Z
2019-10-22T10:15:10.000Z
deliravision/torch/models/psp.py
delira-dev/vision_torch
d944aa67d319bd63a2add5cb89e8308413943de6
[ "BSD-2-Clause" ]
null
null
null
import torch from torch.nn import functional as F from .utils import ConvNdTorch, PoolingNdTorch, NormNdTorch, DropoutNdTorch from .basic_networks import BaseSegmentationTorchNetwork
35.65
118
0.623188
import torch from torch.nn import functional as F from .utils import ConvNdTorch, PoolingNdTorch, NormNdTorch, DropoutNdTorch from .basic_networks import BaseSegmentationTorchNetwork class PSPModuleTorch(torch.nn.Module): def __init__(self, features, out_features=1024, sizes=(1, 2, 3, 6), n_dim=2): super(...
3,725
58
309
83e95b878465aca88217865c0760fb25dfe65b9b
3,860
py
Python
utils/gan_utils.py
AlexKbit/draw-ai
1d5941587aa0503b649fd0ff22820e9a2e163645
[ "Apache-2.0" ]
3
2020-06-02T09:19:20.000Z
2020-09-26T09:15:24.000Z
utils/gan_utils.py
AlexKbit/draw-ai
1d5941587aa0503b649fd0ff22820e9a2e163645
[ "Apache-2.0" ]
7
2020-11-13T19:03:43.000Z
2022-03-12T00:46:09.000Z
utils/gan_utils.py
AlexKbit/draw-ai
1d5941587aa0503b649fd0ff22820e9a2e163645
[ "Apache-2.0" ]
2
2020-08-18T16:00:52.000Z
2020-11-27T16:36:36.000Z
from tensorflow.keras import layers import time import tensorflow as tf def make_generator_model(): ''' Create GAN generator :return: Generator ''' model = tf.keras.Sequential() model.add(layers.Dense(7*7*256, use_bias=False, input_shape=(100,))) model.add(layers.BatchNormalization()) ...
35.412844
115
0.709067
from tensorflow.keras import layers import time import tensorflow as tf def make_generator_model(): ''' Create GAN generator :return: Generator ''' model = tf.keras.Sequential() model.add(layers.Dense(7*7*256, use_bias=False, input_shape=(100,))) model.add(layers.BatchNormalization()) ...
1,680
0
68
90f65af61cebb27179023fa75caf415afdf62972
2,908
py
Python
slack_bolt/middleware/authorization/internals.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
null
null
null
slack_bolt/middleware/authorization/internals.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
null
null
null
slack_bolt/middleware/authorization/internals.py
korymath/bolt-python
67e0286d756ba92510315d044303f43b03380b52
[ "MIT" ]
null
null
null
from typing import Optional, Union from slack_sdk.web import SlackResponse from slack_bolt.authorization import AuthorizeResult from slack_bolt.request.request import BoltRequest from slack_bolt.response import BoltResponse # # NOTE: this source file intentionally avoids having a reference to # AsyncBoltRequest, Asy...
34.619048
104
0.70564
from typing import Optional, Union from slack_sdk.web import SlackResponse from slack_bolt.authorization import AuthorizeResult from slack_bolt.request.request import BoltRequest from slack_bolt.response import BoltResponse # # NOTE: this source file intentionally avoids having a reference to # AsyncBoltRequest, Asy...
2,166
0
207
f862d0e1c346f9e7a2364127a4beb70a9a983d12
431
py
Python
celeryconfig.py
langzeyu/book-crawler
e2d96648384658c7775bd02d94eab086c9ece677
[ "MIT" ]
5
2019-04-02T05:00:03.000Z
2021-04-21T11:03:50.000Z
celeryconfig.py
langzeyu/book-crawler
e2d96648384658c7775bd02d94eab086c9ece677
[ "MIT" ]
null
null
null
celeryconfig.py
langzeyu/book-crawler
e2d96648384658c7775bd02d94eab086c9ece677
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding:utf-8 -*- BROKER_BACKEND = "mongodb" BROKER_HOST = "localhost" BROKER_PORT = 7680 CELERY_RESULT_BACKEND = "mongodb" CELERY_MONGODB_BACKEND_SETTINGS = { "host": "localhost", "port": 7680, "database": "books", "taskmeta_collection": "celerytasks", } CELERYD_CONCURRENC...
19.590909
41
0.693735
#!/usr/bin/env python # -*- coding:utf-8 -*- BROKER_BACKEND = "mongodb" BROKER_HOST = "localhost" BROKER_PORT = 7680 CELERY_RESULT_BACKEND = "mongodb" CELERY_MONGODB_BACKEND_SETTINGS = { "host": "localhost", "port": 7680, "database": "books", "taskmeta_collection": "celerytasks", } CELERYD_CONCURRENC...
0
0
0
98a98aa43e09c8a83d94f802833ebc081dbed6d0
14,331
py
Python
packages/fetchai/protocols/http/http_pb2.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
packages/fetchai/protocols/http/http_pb2.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
packages/fetchai/protocols/http/http_pb2.py
ejfitzgerald/agents-aea
6411fcba8af2cdf55a3005939ae8129df92e8c3e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: http.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_data...
32.79405
964
0.588514
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: http.proto from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_data...
0
0
0
f9c8cac28b80d2d7a406bcd270bb5066c3caef1d
1,771
py
Python
main.py
j12r12/Premier-League-Red-Cards
31d0f602087e6fd3bccafe4f279d961970de6892
[ "CC0-1.0" ]
1
2021-05-19T10:46:54.000Z
2021-05-19T10:46:54.000Z
main.py
j12r12/Premier-League-Red-Cards
31d0f602087e6fd3bccafe4f279d961970de6892
[ "CC0-1.0" ]
null
null
null
main.py
j12r12/Premier-League-Red-Cards
31d0f602087e6fd3bccafe4f279d961970de6892
[ "CC0-1.0" ]
null
null
null
from function_file import best_fit, line_graph, normal_curve if __name__ == "__main__": # Create dataframe df2 = pd.read_csv("../input/english-premier-league-data-for-10-seasons/epldat10seasons/epl-allseasons-matchstats.csv") # Create dataframe to summarise cards given by season ...
40.25
122
0.690006
from function_file import best_fit, line_graph, normal_curve if __name__ == "__main__": # Create dataframe df2 = pd.read_csv("../input/english-premier-league-data-for-10-seasons/epldat10seasons/epl-allseasons-matchstats.csv") # Create dataframe to summarise cards given by season ...
0
0
0
a78fccdaa80b9805f870c6926eb82a75851b19c0
1,617
py
Python
privex/helpers/setuppy/__init__.py
Privex/python-helpers
1c976ce5b0e2c5241ea0bdf330bd6701b5e31153
[ "X11" ]
12
2019-06-18T11:17:41.000Z
2021-09-13T23:00:21.000Z
privex/helpers/setuppy/__init__.py
Privex/python-helpers
1c976ce5b0e2c5241ea0bdf330bd6701b5e31153
[ "X11" ]
1
2019-10-13T07:34:44.000Z
2019-10-13T07:34:44.000Z
privex/helpers/setuppy/__init__.py
Privex/python-helpers
1c976ce5b0e2c5241ea0bdf330bd6701b5e31153
[ "X11" ]
4
2019-10-10T10:15:09.000Z
2021-05-16T01:55:48.000Z
""" Helpers for setup.py, e.g. requirements.txt parsing, version bumping, custom setup.py commands Inside of :py:mod:`privex.helpers.setuppy.common` there's a variety of functions related to generating requirements.txt files, parsing requirements.txt files which recursively import other requirements.txt files, and ha...
47.558824
119
0.769944
""" Helpers for setup.py, e.g. requirements.txt parsing, version bumping, custom setup.py commands Inside of :py:mod:`privex.helpers.setuppy.common` there's a variety of functions related to generating requirements.txt files, parsing requirements.txt files which recursively import other requirements.txt files, and ha...
0
0
0
083abf4fa2fc9f0cc4b24322867f2871a7ac1d31
3,577
py
Python
Lib/site-packages/celerid/support.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/celerid/support.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
Lib/site-packages/celerid/support.py
raychorn/svn_Python-2.5.1
425005b1b489ba44ec0bb989e077297e8953d9be
[ "PSF-2.0" ]
null
null
null
__all__ = ('setup', 'Extension') from celerid import patch_distutils # Cause distutils to be hot-patched. from distutils.core import setup, Extension as std_Extension from distutils.errors import DistutilsOptionError
44.160494
88
0.592116
__all__ = ('setup', 'Extension') from celerid import patch_distutils # Cause distutils to be hot-patched. from distutils.core import setup, Extension as std_Extension from distutils.errors import DistutilsOptionError class Extension(std_Extension): def __init__(self, *args, **kwargs): if 'define_macros' ...
3,298
10
49
13c050bbf547cc4ea9f0e89f90983ca56124279a
30,448
py
Python
databricks/koalas/tests/test_groupby.py
WeichenXu123/koalas
224cbe4a1c7a2b12976069762379d0e77e46750b
[ "Apache-2.0" ]
null
null
null
databricks/koalas/tests/test_groupby.py
WeichenXu123/koalas
224cbe4a1c7a2b12976069762379d0e77e46750b
[ "Apache-2.0" ]
null
null
null
databricks/koalas/tests/test_groupby.py
WeichenXu123/koalas
224cbe4a1c7a2b12976069762379d0e77e46750b
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
55.562044
100
0.493727
# # Copyright (C) 2019 Databricks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to i...
28,675
27
725
ab538b22cb0660b172d6a23870426c8e7981ab71
27,245
py
Python
short-read-mngs/idseq-dag/idseq_dag/steps/run_alignment.py
chanzuckerberg/idseq-workflows
b1e7c91e5d9f0d9a05f97f240211fcc16d33225b
[ "MIT" ]
30
2020-05-23T21:23:38.000Z
2022-03-24T17:18:47.000Z
short-read-mngs/idseq-dag/idseq_dag/steps/run_alignment.py
grunwaldlab/idseq-workflows
cacfaa02f014ba06b8fb69e62911ab7fd5d88d9a
[ "MIT" ]
65
2020-05-27T14:21:26.000Z
2021-11-18T17:58:56.000Z
short-read-mngs/idseq-dag/idseq_dag/steps/run_alignment.py
chanzuckerberg/czid-workflows
916a4feb195bbf37157ec224f3ffc9d3e6d3ea04
[ "MIT" ]
12
2020-08-24T12:00:28.000Z
2022-02-03T08:28:02.000Z
import multiprocessing import os import random import shutil import threading import time import traceback import json import re import tempfile from subprocess import run, PIPE from urllib.parse import urlparse from botocore.exceptions import ClientError import boto3 import requests from idseq_dag.engine.pipeline_st...
42.24031
157
0.594311
import multiprocessing import os import random import shutil import threading import time import traceback import json import re import tempfile from subprocess import run, PIPE from urllib.parse import urlparse from botocore.exceptions import ClientError import boto3 import requests from idseq_dag.engine.pipeline_st...
14,084
20
447
92195b036a039f3bef566528fe4dc52bd33884d1
3,976
py
Python
cflearn/modules/extractors/rnn/custom.py
SaizhuoWang/carefree-learn
3bf7b00286cdef556cc00fa2fcba5c390b5b9d20
[ "MIT" ]
null
null
null
cflearn/modules/extractors/rnn/custom.py
SaizhuoWang/carefree-learn
3bf7b00286cdef556cc00fa2fcba5c390b5b9d20
[ "MIT" ]
null
null
null
cflearn/modules/extractors/rnn/custom.py
SaizhuoWang/carefree-learn
3bf7b00286cdef556cc00fa2fcba5c390b5b9d20
[ "MIT" ]
null
null
null
import torch import torch.nn as nn import torch.jit as jit from typing import Any from typing import List from typing import Tuple from typing import Optional from collections import namedtuple state_type = Tuple[torch.Tensor, torch.Tensor] return_type = Tuple[torch.Tensor, Tuple[torch.Tensor, torch.Tensor]] LSTMSta...
30.121212
80
0.594819
import torch import torch.nn as nn import torch.jit as jit from typing import Any from typing import List from typing import Tuple from typing import Optional from collections import namedtuple state_type = Tuple[torch.Tensor, torch.Tensor] return_type = Tuple[torch.Tensor, Tuple[torch.Tensor, torch.Tensor]] LSTMSta...
3,253
260
69
fec833942e263f2974eed59513e2ad64d7927cdc
34,938
py
Python
WNBA/main.py
rafaelgreca/Web-Scraping-Projects
a273bd1ecd48e66887730f69761c8bf5ae84077a
[ "MIT" ]
null
null
null
WNBA/main.py
rafaelgreca/Web-Scraping-Projects
a273bd1ecd48e66887730f69761c8bf5ae84077a
[ "MIT" ]
null
null
null
WNBA/main.py
rafaelgreca/Web-Scraping-Projects
a273bd1ecd48e66887730f69761c8bf5ae84077a
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup from _datetime import date import progressbar import time import os import pandas as pd #check if a value is empty #if it is we return 0.0 if __name__ == "__main__": wrapper = WNBAWrapper() wrapper.getBoxScore()
74.974249
466
0.437432
import requests from bs4 import BeautifulSoup from _datetime import date import progressbar import time import os import pandas as pd class WNBAWrapper: def __init__(self): self.url = 'https://www.basketball-reference.com' self.full_url = '' self.folder_location = os.getcwd() + '/Data/' ...
34,563
-3
103
7ad8587f6b0dee0fab2978c5b885c60af77e3a69
1,025
py
Python
chapter2/code/subprocess/PingScanNetWork.py
abbbhucho/Mastering-Python-for-Networking-and-Security
f4fb1131253e9daad8da501c297758fdcedfbac3
[ "MIT" ]
98
2018-05-13T20:41:43.000Z
2022-03-31T00:24:01.000Z
chapter2/code/subprocess/PingScanNetWork.py
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
4cf04d1758f17ae378b5e3422404e5b7a174a243
[ "MIT" ]
null
null
null
chapter2/code/subprocess/PingScanNetWork.py
Cyb3rid10ts/Mastering-Python-for-Networking-and-Security
4cf04d1758f17ae378b5e3422404e5b7a174a243
[ "MIT" ]
62
2018-06-19T13:46:34.000Z
2022-02-11T05:47:24.000Z
#!/usr/bin/env python from subprocess import Popen, PIPE import sys import argparse parser = argparse.ArgumentParser(description='Ping Scan Network') # Main arguments parser.add_argument("-network", dest="network", help="NetWork segment[For example 192.168.56]", required=True) parser.add_argument("-machines", des...
37.962963
110
0.720976
#!/usr/bin/env python from subprocess import Popen, PIPE import sys import argparse parser = argparse.ArgumentParser(description='Ping Scan Network') # Main arguments parser.add_argument("-network", dest="network", help="NetWork segment[For example 192.168.56]", required=True) parser.add_argument("-machines", des...
0
0
0
572eaa85b3bcca3c02e23e74b52d981d59fe3faa
648
py
Python
hoofball/models.py
leo-holanda/Hoofball
ccf4399d33a6381acd2ff41efce3dbf0dca6a092
[ "MIT" ]
1
2021-07-30T10:05:43.000Z
2021-07-30T10:05:43.000Z
hoofball/models.py
leo-holanda/Hoofball
ccf4399d33a6381acd2ff41efce3dbf0dca6a092
[ "MIT" ]
null
null
null
hoofball/models.py
leo-holanda/Hoofball
ccf4399d33a6381acd2ff41efce3dbf0dca6a092
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone # Create your models here.
34.105263
62
0.746914
from django.db import models from django.utils import timezone # Create your models here. class Player(models.Model): name = models.CharField(max_length=50) gameID = models.IntegerField() age = models.IntegerField() position = models.CharField(max_length=25) wage = models.DecimalField(max_digits=9...
0
512
46
36329d773dc605b92612372d4e43c90065c02c87
3,953
py
Python
bot_module.py
Ygor-J/nucleo_bot
a8d2665211f5fccee73f8b87078155d3b5143bda
[ "MIT" ]
null
null
null
bot_module.py
Ygor-J/nucleo_bot
a8d2665211f5fccee73f8b87078155d3b5143bda
[ "MIT" ]
null
null
null
bot_module.py
Ygor-J/nucleo_bot
a8d2665211f5fccee73f8b87078155d3b5143bda
[ "MIT" ]
1
2021-07-02T22:33:02.000Z
2021-07-02T22:33:02.000Z
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import ElementNotInteractableException, NoSuchElementException import csv import time WPP_URL = "https://web.whatsapp.com/" def le_arquivo(nome_arquivo): ''' ...
31.879032
115
0.668353
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.common.exceptions import ElementNotInteractableException, NoSuchElementException import csv import time WPP_URL = "https://web.whatsapp.com/" def le_arquivo(nome_arquivo): ''' ...
159
0
23
ec546f607153bc3ea6231abc353d158a99494027
508
py
Python
video_to_frame.py
cayl-crypto/video-captioning
a1ec0d72e2279d4700d32ce17d8229865539c537
[ "Apache-2.0" ]
null
null
null
video_to_frame.py
cayl-crypto/video-captioning
a1ec0d72e2279d4700d32ce17d8229865539c537
[ "Apache-2.0" ]
null
null
null
video_to_frame.py
cayl-crypto/video-captioning
a1ec0d72e2279d4700d32ce17d8229865539c537
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import os import math from utils import * ## ADD 'Frames' folder to file path before running code. if __name__ == "__main__": main()
21.166667
86
0.718504
import cv2 import numpy as np import os import math from utils import * ## ADD 'Frames' folder to file path before running code. def Video_to_Frames(): # Run the above function and store its results in a variable. video_path="C:\\Users\\pc\\PycharmProjects\\video-captioning\\YouTubeClips" path_to_save = ...
290
0
46
f38217a6e6495a1e7c7210e0d457b2cee503f0ed
632
py
Python
Q671.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q671.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
Q671.py
Linchin/python_leetcode_git
3d08ab04bbdbd2ce268f33c501fbb149662872c7
[ "MIT" ]
null
null
null
""" 671 easy second minimum node in a binary tree """ # Definition for a binary tree node.
19.151515
61
0.547468
""" 671 easy second minimum node in a binary tree """ # Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def findSecondMinimumValue(self, root: TreeNode) -> int: ...
450
-12
97
6ae12024307f43920f03956b880880d51426ef0a
2,390
py
Python
PropertyVerification/prover_worker.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
3
2017-06-02T19:26:27.000Z
2021-06-14T04:25:45.000Z
PropertyVerification/prover_worker.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
8
2016-08-24T07:04:07.000Z
2017-05-26T16:22:47.000Z
PropertyVerification/prover_worker.py
levilucio/SyVOLT
7526ec794d21565e3efcc925a7b08ae8db27d46a
[ "MIT" ]
1
2019-10-31T06:00:23.000Z
2019-10-31T06:00:23.000Z
from multiprocessing import Process from core.himesis_utils import expand_graph from copy import deepcopy
32.297297
107
0.585774
from multiprocessing import Process from core.himesis_utils import expand_graph from copy import deepcopy class prover_worker(Process): def __init__(self, id, verbosity, pc_queue, results_queue, atomic_contracts, if_then_contracts): super(prover_worker, self).__init__() self.id = id self...
2,197
8
76
b0651dfc337865eacfcfe94ab90eb299120875c2
2,726
py
Python
run.py
DiamondBrook/arrhythmia_project
7236d9c3ba0ff4b089111049236c956b45900571
[ "MIT" ]
1
2021-04-01T08:12:21.000Z
2021-04-01T08:12:21.000Z
run.py
DiamondBrook/arrhythmia_project
7236d9c3ba0ff4b089111049236c956b45900571
[ "MIT" ]
12
2020-11-19T00:51:36.000Z
2021-04-27T18:43:50.000Z
run.py
DiamondBrook/arrhythmia_project
7236d9c3ba0ff4b089111049236c956b45900571
[ "MIT" ]
12
2020-10-29T20:05:41.000Z
2021-04-13T18:54:41.000Z
#!/usr/bin/env python3 ################################################################################ # This script will run the Arrythmia Web App from the command line. This # script should be used for developing builds only. ################################################################################ import sub...
35.868421
80
0.644534
#!/usr/bin/env python3 ################################################################################ # This script will run the Arrythmia Web App from the command line. This # script should be used for developing builds only. ################################################################################ import sub...
0
0
0
1dc926fdc95eed08b2ad435012437c145a513a3a
2,990
py
Python
doc/Programs/MassMLP.py
kylegodbey/MachineLearningMSU
a6580d3a61e9b8c332683e5e14ed3bdd7a1ecff0
[ "CC0-1.0" ]
12
2019-04-12T16:51:07.000Z
2021-04-30T00:59:47.000Z
doc/Programs/MassMLP.py
kylegodbey/MachineLearningMSU
a6580d3a61e9b8c332683e5e14ed3bdd7a1ecff0
[ "CC0-1.0" ]
null
null
null
doc/Programs/MassMLP.py
kylegodbey/MachineLearningMSU
a6580d3a61e9b8c332683e5e14ed3bdd7a1ecff0
[ "CC0-1.0" ]
32
2019-04-10T02:31:00.000Z
2019-11-21T03:47:04.000Z
# Regression analysis using scikit-learn functions # Common imports import numpy as np import pandas as pd import matplotlib.pyplot as plt import sklearn.linear_model as skl from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error import os # Wh...
30.20202
88
0.696321
# Regression analysis using scikit-learn functions # Common imports import numpy as np import pandas as pd import matplotlib.pyplot as plt import sklearn.linear_model as skl from sklearn.model_selection import train_test_split from sklearn.metrics import mean_squared_error, r2_score, mean_absolute_error import os # Wh...
146
0
69
87fa1d0539983ab50bd6765615d073fc6e57ec13
2,555
py
Python
Homework/2019/Task7/4/Code/train_LSTM.py
ohhuola/Data-Mining-for-Cybersecurity
7c04b2519810970227777fc1a1a29bb87d47a41e
[ "MIT" ]
null
null
null
Homework/2019/Task7/4/Code/train_LSTM.py
ohhuola/Data-Mining-for-Cybersecurity
7c04b2519810970227777fc1a1a29bb87d47a41e
[ "MIT" ]
null
null
null
Homework/2019/Task7/4/Code/train_LSTM.py
ohhuola/Data-Mining-for-Cybersecurity
7c04b2519810970227777fc1a1a29bb87d47a41e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # 句向量训练者称为出题者assitant,标签训练者称为student import getData from keras.models import Sequential from keras.layers import LSTM, Dense, Dropout from gensim.models import Word2Vec import numpy as np from keras import metrics dim_num_feature = 120 # 用于限制长度 w2v_model = Word2Vec.load("...
25.808081
69
0.643444
# -*- coding: utf-8 -*- # 句向量训练者称为出题者assitant,标签训练者称为student import getData from keras.models import Sequential from keras.layers import LSTM, Dense, Dropout from gensim.models import Word2Vec import numpy as np from keras import metrics dim_num_feature = 120 # 用于限制长度 def magicFit(List, n): L =...
492
0
50
6baf2077d6aa7e3c4e4a813d2c30fad37027191c
41
py
Python
fulltext/process/__init__.py
arXiv/arxiv-fulltext
36008457022cde245d78b3ad91e0a95aa21bc420
[ "MIT" ]
18
2019-03-01T02:51:45.000Z
2021-11-05T12:26:12.000Z
fulltext/process/__init__.py
arXiv/arxiv-fulltext
36008457022cde245d78b3ad91e0a95aa21bc420
[ "MIT" ]
6
2019-05-06T15:25:16.000Z
2019-07-31T20:11:36.000Z
fulltext/process/__init__.py
arXiv/arxiv-fulltext
36008457022cde245d78b3ad91e0a95aa21bc420
[ "MIT" ]
8
2019-01-10T22:01:58.000Z
2021-11-05T12:26:01.000Z
"""Provides methods for text cleanup."""
20.5
40
0.707317
"""Provides methods for text cleanup."""
0
0
0
75b13da89526de6c22179b763d7048ebfcb6a711
11,450
py
Python
trackmania/club.py
NottCurious/py-tmio
c908bfcef7f2cb603464dc762b5dcd8b35711167
[ "MIT" ]
null
null
null
trackmania/club.py
NottCurious/py-tmio
c908bfcef7f2cb603464dc762b5dcd8b35711167
[ "MIT" ]
13
2022-03-08T09:47:07.000Z
2022-03-29T05:29:35.000Z
trackmania/club.py
NottCurious/py-tmio
c908bfcef7f2cb603464dc762b5dcd8b35711167
[ "MIT" ]
null
null
null
import logging from contextlib import suppress from datetime import datetime from typing_extensions import Self from ._util import _regex_it from .api import _APIClient from .base import ClubObject from .config import get_from_cache, set_in_cache from .constants import _TMIO from .errors import TMIOException from .pl...
26.201373
100
0.558952
import logging from contextlib import suppress from datetime import datetime from typing_extensions import Self from ._util import _regex_it from .api import _APIClient from .base import ClubObject from .config import get_from_cache, set_in_cache from .constants import _TMIO from .errors import TMIOException from .pl...
3,888
0
159
e9d8189f41e642183029b46727d661e44c3807e6
1,563
py
Python
utils/model.py
thepowerfuldeez/VAENAR-TTS
7ee40a5511118491269102bc6874a51c1d9959ee
[ "MIT" ]
null
null
null
utils/model.py
thepowerfuldeez/VAENAR-TTS
7ee40a5511118491269102bc6874a51c1d9959ee
[ "MIT" ]
null
null
null
utils/model.py
thepowerfuldeez/VAENAR-TTS
7ee40a5511118491269102bc6874a51c1d9959ee
[ "MIT" ]
null
null
null
import os import json import torch import numpy as np from model import VAENAR, ScheduledOptim
24.809524
70
0.635956
import os import json import torch import numpy as np from model import VAENAR, ScheduledOptim def get_model(args, configs, device, train=False): (preprocess_config, model_config, train_config) = configs model = VAENAR(preprocess_config, model_config).to(device) if args.restore_step: ckpt_path ...
1,370
0
92
4fa7305d7c169f2333c4e1dd0dd584745cc304d9
587
py
Python
txtrader/__main__.py
rstms/txTrader
3120eb47f10979e90c48cb66543378084bae624a
[ "MIT" ]
43
2015-03-30T15:20:00.000Z
2022-02-15T18:25:54.000Z
txtrader/__main__.py
rstms/txTrader
3120eb47f10979e90c48cb66543378084bae624a
[ "MIT" ]
12
2015-08-05T17:36:28.000Z
2020-05-03T23:23:42.000Z
txtrader/__main__.py
rstms/txTrader
3120eb47f10979e90c48cb66543378084bae624a
[ "MIT" ]
25
2015-11-04T03:08:57.000Z
2021-08-07T09:47:37.000Z
from twisted.application import internet, service from twisted.internet import reactor from txtrader.tcpserver import serverFactory from txtrader.webserver import webServerFactory from txtrader.rtx import RTX if __name__ == '__main__': main()
25.521739
83
0.76661
from twisted.application import internet, service from twisted.internet import reactor from txtrader.tcpserver import serverFactory from txtrader.webserver import webServerFactory from txtrader.rtx import RTX def main(): msvc = service.MultiService() api = RTX() internet.TCPServer(api.http_port, webSer...
312
0
23
6956bfd08c52a75e068644dcaf07934c503350ca
2,263
py
Python
pitch/common/structures.py
georgepsarakis/pitch
bfc903d0be883ce1a989299a2b4835c02bdf00e1
[ "MIT" ]
6
2015-10-20T09:10:09.000Z
2018-09-11T12:35:48.000Z
pitch/common/structures.py
georgepsarakis/pitch
bfc903d0be883ce1a989299a2b4835c02bdf00e1
[ "MIT" ]
12
2015-10-20T17:34:39.000Z
2015-10-27T18:13:56.000Z
pitch/common/structures.py
georgepsarakis/pitch
bfc903d0be883ce1a989299a2b4835c02bdf00e1
[ "MIT" ]
null
null
null
from collections import namedtuple from requests.structures import CaseInsensitiveDict from boltons.typeutils import make_sentinel class ReadOnlyContainer(object): """ Base class for read-only property containers. """ def __init__(self, **fields): """ Initialize the property container...
26.011494
75
0.585948
from collections import namedtuple from requests.structures import CaseInsensitiveDict from boltons.typeutils import make_sentinel class ReadOnlyContainer(object): """ Base class for read-only property containers. """ def __init__(self, **fields): """ Initialize the property container...
841
727
73
c76e6d535659dda04e01bff2aae4c9ec07afb901
466
py
Python
python/Chapter2/change_date.py
wboswall/academia
1571e8f9aceb21564f601cb79120ae56068fe3dd
[ "MIT" ]
null
null
null
python/Chapter2/change_date.py
wboswall/academia
1571e8f9aceb21564f601cb79120ae56068fe3dd
[ "MIT" ]
null
null
null
python/Chapter2/change_date.py
wboswall/academia
1571e8f9aceb21564f601cb79120ae56068fe3dd
[ "MIT" ]
null
null
null
import csv, datetime with open('tooldesc.csv') as td: rdr = csv.reader(td) items = list(rdr) items = [convertDate(item) for item in items] with open('tooldesc2.csv', 'w', newline='') as td: wrt = csv.writer(td) for item in items: wrt.writerow(item)
23.3
51
0.628755
import csv, datetime def convertDate(item): theDate = item[-1] dateObj = datetime.strptime(theDate,'%Y-%m-%d') dateStr = datetime.strftime(dateObj,'%m/%d/%Y') item[-1] = dateStr return item with open('tooldesc.csv') as td: rdr = csv.reader(td) items = list(rdr) items = [convertDate(item) ...
167
0
23
00622afd5811d7d269533439388b68d1407bb2ea
4,302
py
Python
my/tools/geo_convert.py
jovahe/Mask_RCNN_RS
9c6c28392ad35786523b3c5c0b9e509c07d84dc5
[ "MIT" ]
null
null
null
my/tools/geo_convert.py
jovahe/Mask_RCNN_RS
9c6c28392ad35786523b3c5c0b9e509c07d84dc5
[ "MIT" ]
null
null
null
my/tools/geo_convert.py
jovahe/Mask_RCNN_RS
9c6c28392ad35786523b3c5c0b9e509c07d84dc5
[ "MIT" ]
null
null
null
""" 将mask rcnn转成shapefile的一些函数 """ from osgeo import ogr, gdal, osr import cv2 import numpy as np def create_geom(): """用于测试,生成一个wkt""" multipolygon = ogr.Geometry(ogr.wkbMultiPolygon) polygon = ogr.Geometry(ogr.wkbPolygon) ring = ogr.Geometry(ogr.wkbLinearRing) ring.AddPoint(1179091.1646903288, ...
35.262295
109
0.680149
""" 将mask rcnn转成shapefile的一些函数 """ from osgeo import ogr, gdal, osr import cv2 import numpy as np def create_geom(): """用于测试,生成一个wkt""" multipolygon = ogr.Geometry(ogr.wkbMultiPolygon) polygon = ogr.Geometry(ogr.wkbPolygon) ring = ogr.Geometry(ogr.wkbLinearRing) ring.AddPoint(1179091.1646903288, ...
1,057
0
23
059bf2f72bf5aa02f39a0c6fe3c001cbb311443b
318
py
Python
samples/notification/webhook-events/resend.py
Hey-Marvelous/PayPal-Python-SDK
c56069f8971877e0632c1d58fdf240de9320ece3
[ "BSD-Source-Code" ]
653
2015-01-07T21:40:11.000Z
2022-03-07T18:25:27.000Z
samples/notification/webhook-events/resend.py
sucithrashanu/PayPal-Python-SDK
a129190dc105941b11340659c028385cdceea192
[ "BSD-Source-Code" ]
214
2015-01-05T15:42:18.000Z
2020-05-05T13:15:12.000Z
samples/notification/webhook-events/resend.py
sucithrashanu/PayPal-Python-SDK
a129190dc105941b11340659c028385cdceea192
[ "BSD-Source-Code" ]
300
2015-01-05T07:29:23.000Z
2022-03-22T14:25:02.000Z
from paypalrestsdk import WebhookEvent import logging logging.basicConfig(level=logging.INFO) webhook_event = WebhookEvent.find("8PT597110X687430LKGECATA") if webhook_event.resend(): # return True or False print("webhook event[%s] resend successfully" % (webhook_event.id)) else: print(webhook_event.error)
28.909091
71
0.789308
from paypalrestsdk import WebhookEvent import logging logging.basicConfig(level=logging.INFO) webhook_event = WebhookEvent.find("8PT597110X687430LKGECATA") if webhook_event.resend(): # return True or False print("webhook event[%s] resend successfully" % (webhook_event.id)) else: print(webhook_event.error)
0
0
0
dd5529752580885e45680e99d277416b2da8ff22
947
py
Python
public-engines/product-classifier-engine/tests/data_handler/test_acquisitor_and_cleaner.py
tallandroid/incubator-marvin
2ff33b26d5d362b6541125a400146ccf6153f83b
[ "Apache-2.0" ]
101
2018-10-12T20:33:43.000Z
2022-03-04T08:48:08.000Z
public-engines/product-classifier-engine/tests/data_handler/test_acquisitor_and_cleaner.py
tallandroid/incubator-marvin
2ff33b26d5d362b6541125a400146ccf6153f83b
[ "Apache-2.0" ]
54
2018-11-05T23:39:59.000Z
2022-01-18T01:16:12.000Z
public-engines/product-classifier-engine/tests/data_handler/test_acquisitor_and_cleaner.py
tallandroid/incubator-marvin
2ff33b26d5d362b6541125a400146ccf6153f83b
[ "Apache-2.0" ]
69
2018-10-17T06:02:25.000Z
2022-03-04T08:48:09.000Z
#!/usr/bin/env python # coding=utf-8 try: import mock except ImportError: import unittest.mock as mock from marvin_product_classifier_engine.data_handler import AcquisitorAndCleaner import pandas as pd @mock.patch('marvin_product_classifier_engine.data_handler.acquisitor_and_cleaner.pd.read_csv') @mock.pat...
35.074074
147
0.778247
#!/usr/bin/env python # coding=utf-8 try: import mock except ImportError: import unittest.mock as mock from marvin_product_classifier_engine.data_handler import AcquisitorAndCleaner import pandas as pd @mock.patch('marvin_product_classifier_engine.data_handler.acquisitor_and_cleaner.pd.read_csv') @mock.pat...
505
0
22
3f8f2b71ea55cff87e17615fa2ee661772479115
15,807
py
Python
tcex/testing/test_case_service_common.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
18
2017-01-09T22:17:49.000Z
2022-01-24T20:46:42.000Z
tcex/testing/test_case_service_common.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
84
2017-04-11T13:47:49.000Z
2022-03-21T20:12:57.000Z
tcex/testing/test_case_service_common.py
kdeltared/tcex
818c0d09256764f871e42d9ca5916f92d941d882
[ "Apache-2.0" ]
43
2017-01-05T20:40:26.000Z
2022-03-31T19:18:02.000Z
"""TcEx Service Common Module""" # standard library import base64 import json import os import subprocess import sys import time import uuid from multiprocessing import Process from random import randint from threading import Event, Lock, Thread from typing import Any, Optional from ..services import MqttMessageBroker...
37.018735
100
0.613462
"""TcEx Service Common Module""" # standard library import base64 import json import os import subprocess import sys import time import uuid from multiprocessing import Process from random import randint from threading import Event, Lock, Thread from typing import Any, Optional from ..services import MqttMessageBroker...
0
0
0
01ddefef38c00baca510900b46bd257b39da6414
324
py
Python
ignorancia zero/aulas 87-102/aula 87.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
ignorancia zero/aulas 87-102/aula 87.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
ignorancia zero/aulas 87-102/aula 87.py
KenzoDezotti/cursoemvideo
6eba03e67192f7384092192ed2cc1a8e59efd9b9
[ "MIT" ]
null
null
null
'''aula de tkinter I''' from tkinter import * #dá nome ao quadro principal quadro = Tk() #dá um tamanho ao quadro quadro.geometry("800x600") #dá o titulo na janela do programa quadro.title("primeiro programa pos retorno!") #faz o quadro iniciar # sem isso o programa não abre quadro.mainloop() ...
7.902439
46
0.679012
'''aula de tkinter I''' from tkinter import * #dá nome ao quadro principal quadro = Tk() #dá um tamanho ao quadro quadro.geometry("800x600") #dá o titulo na janela do programa quadro.title("primeiro programa pos retorno!") #faz o quadro iniciar # sem isso o programa não abre quadro.mainloop() ...
0
0
0
160586a7f083f1efa16456b4bf747dcafc4be695
7,851
py
Python
GamesGetter.py
JamescMcE/BasketBet
f87719ac793ea50822e8c52fc23191dba9ad6418
[ "CC0-1.0" ]
null
null
null
GamesGetter.py
JamescMcE/BasketBet
f87719ac793ea50822e8c52fc23191dba9ad6418
[ "CC0-1.0" ]
null
null
null
GamesGetter.py
JamescMcE/BasketBet
f87719ac793ea50822e8c52fc23191dba9ad6418
[ "CC0-1.0" ]
null
null
null
#This script Imports Game Data from ESPN, and Odds from the ODDS-API, and then imports them into a MySQL table, example in workbench here https://puu.sh/HOKCj/ce199eec8e.png import mysql.connector import requests import json import datetime import time #Connection to the MYSQL Server. mydb = mysql.connector....
42.668478
257
0.584639
#This script Imports Game Data from ESPN, and Odds from the ODDS-API, and then imports them into a MySQL table, example in workbench here https://puu.sh/HOKCj/ce199eec8e.png import mysql.connector import requests import json import datetime import time #Connection to the MYSQL Server. mydb = mysql.connector....
4,360
0
46
69d2dfa41c33c3b792f0832b7dd52d6f3d52ce71
614
py
Python
models/news.py
qianbin01/lagou_python_api
84c0d21cd6a2296efb974dbf7c07cc074106d799
[ "MIT" ]
8
2018-09-10T06:30:56.000Z
2021-03-11T19:16:32.000Z
models/news.py
qianbin01/lagou_python_api
84c0d21cd6a2296efb974dbf7c07cc074106d799
[ "MIT" ]
null
null
null
models/news.py
qianbin01/lagou_python_api
84c0d21cd6a2296efb974dbf7c07cc074106d799
[ "MIT" ]
5
2018-10-12T12:37:16.000Z
2020-05-16T03:17:40.000Z
from models import news
20.466667
55
0.568404
from models import news def get_news_list(page=1): if not page: page = 1 newses = news.find().limit(10).skip(10 * int(page)) data_list = [] for item in newses: item['_id'] = str(item['_id']) data_list.append(item) return data_list def get_single_news(nid): if not nid:...
518
0
69
692959bca4a35e14e41b554f367efb825930cf94
8,282
py
Python
src/pytools/data/_simulation.py
BCG-Gamma/pytools
d7be703e0665917cd75b671564d5c0163f13b77b
[ "Apache-2.0" ]
17
2021-01-12T08:07:11.000Z
2022-03-03T22:59:04.000Z
src/pytools/data/_simulation.py
BCG-Gamma/pytools
d7be703e0665917cd75b671564d5c0163f13b77b
[ "Apache-2.0" ]
10
2021-01-08T17:04:39.000Z
2022-01-18T13:21:52.000Z
src/pytools/data/_simulation.py
BCG-Gamma/pytools
d7be703e0665917cd75b671564d5c0163f13b77b
[ "Apache-2.0" ]
1
2021-11-06T00:16:43.000Z
2021-11-06T00:16:43.000Z
""" Utilities for creating simulated data sets. """ from typing import Optional, Sequence import numpy as np import pandas as pd from scipy.linalg import toeplitz from ..api import AllTracker __all__ = ["sim_data"] __tracker = AllTracker(globals()) def sim_data( n: int = 100, intercept: float = -5, t...
36.646018
88
0.637769
""" Utilities for creating simulated data sets. """ from typing import Optional, Sequence import numpy as np import pandas as pd from scipy.linalg import toeplitz from ..api import AllTracker __all__ = ["sim_data"] __tracker = AllTracker(globals()) def sim_data( n: int = 100, intercept: float = -5, t...
0
0
0
b9f2d2d035a42477222d50abe0075ed5e223296f
15,565
py
Python
src/sparseml/sparsification/model_info.py
zjzh/sparseml
b92df81257d47eb5aab731bc9929da7339f34667
[ "Apache-2.0" ]
922
2021-02-04T17:51:54.000Z
2022-03-31T20:49:26.000Z
src/sparseml/sparsification/model_info.py
zjzh/sparseml
b92df81257d47eb5aab731bc9929da7339f34667
[ "Apache-2.0" ]
197
2021-02-04T22:17:21.000Z
2022-03-31T13:58:55.000Z
src/sparseml/sparsification/model_info.py
zjzh/sparseml
b92df81257d47eb5aab731bc9929da7339f34667
[ "Apache-2.0" ]
80
2021-02-04T22:20:14.000Z
2022-03-30T19:36:15.000Z
# Copyright (c) 2021 - present / Neuralmagic, 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 b...
33.258547
88
0.633794
# Copyright (c) 2021 - present / Neuralmagic, 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 b...
1,825
0
179
5a2596d1d51c1ec9caef0f4693ca0bcdfa061f9b
877
py
Python
invenio_cesnet_proxyidp/models.py
CESNET/invenio-cesnet-proxyidp
30d9d8338116f755fda89384c64e97e668584059
[ "MIT" ]
null
null
null
invenio_cesnet_proxyidp/models.py
CESNET/invenio-cesnet-proxyidp
30d9d8338116f755fda89384c64e97e668584059
[ "MIT" ]
null
null
null
invenio_cesnet_proxyidp/models.py
CESNET/invenio-cesnet-proxyidp
30d9d8338116f755fda89384c64e97e668584059
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CESNET z.s.p.o.. # # OARepo is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ Models used by the ProxyIDP Remote application """
24.361111
72
0.621437
# -*- coding: utf-8 -*- # # Copyright (C) 2019 CESNET z.s.p.o.. # # OARepo is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. """ Models used by the ProxyIDP Remote application """ class UserInfo(object): sub: str = None name: st...
267
324
23
79594a6cef04e3396940cdd474affc9cfe72f2f1
826
py
Python
camp_real_engine/cli.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
camp_real_engine/cli.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
camp_real_engine/cli.py
vassik/camp-realize
be65af18dd6deb800695988700730d2c3fb279cf
[ "MIT" ]
null
null
null
import argparse from camp_real_engine.engine import RealizationEngine
30.592593
98
0.745763
import argparse from camp_real_engine.engine import RealizationEngine class CLI(object): def __init__(self): self.parser = argparse.ArgumentParser(prog='rcamp', description='CAMP Realization Tool') self.parser.add_argument('realize', nargs=1, help='"realize" is a command to start realization') self.parser.ad...
685
-3
71
a9d5d0d53bac5858e6dafd48f1c727d924ef655c
578
py
Python
project/api/views/catalog.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
null
null
null
project/api/views/catalog.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-06-07T14:06:05.000Z
2021-06-18T16:27:29.000Z
project/api/views/catalog.py
hlystovea/BBBS
7164ef67615e45d750e965bf958af229b56d49e3
[ "BSD-3-Clause" ]
2
2021-07-27T20:40:18.000Z
2021-09-12T16:48:19.000Z
from rest_framework.pagination import LimitOffsetPagination from rest_framework.permissions import AllowAny from rest_framework.viewsets import ReadOnlyModelViewSet from ..models import Catalog from ..serializers import CatalogListSerializer, CatalogSerializer
32.111111
66
0.788927
from rest_framework.pagination import LimitOffsetPagination from rest_framework.permissions import AllowAny from rest_framework.viewsets import ReadOnlyModelViewSet from ..models import Catalog from ..serializers import CatalogListSerializer, CatalogSerializer class CatalogView(ReadOnlyModelViewSet): queryset = ...
118
174
23
04d82150bb79c8da7a6fceeb2f6284063036a2d1
1,339
py
Python
stanCode_projects/weather_master/weather_master.py
tyw4622/sc-project
9af0aac090f34436ccce7761b9e4b9595089eaa9
[ "MIT" ]
null
null
null
stanCode_projects/weather_master/weather_master.py
tyw4622/sc-project
9af0aac090f34436ccce7761b9e4b9595089eaa9
[ "MIT" ]
null
null
null
stanCode_projects/weather_master/weather_master.py
tyw4622/sc-project
9af0aac090f34436ccce7761b9e4b9595089eaa9
[ "MIT" ]
null
null
null
""" File: weather_master.py Name: Karen Wong ----------------------- This program should implement a console program that asks weather data from user to compute the average, highest, lowest, cold days among the inputs. Output format should match what is shown in the sample run in the Assignment 2 Handout. """ EXIT = -...
24.796296
149
0.643017
""" File: weather_master.py Name: Karen Wong ----------------------- This program should implement a console program that asks weather data from user to compute the average, highest, lowest, cold days among the inputs. Output format should match what is shown in the sample run in the Assignment 2 Handout. """ EXIT = -...
0
0
0
3cc084e3982d5bb70dc5ab74d2e802153ba6faa8
439
py
Python
tueplots/cycler.py
SirRob1997/tueplots
83c6bfabe83b58bd38b6e361a85fd1b33bfd063c
[ "MIT" ]
null
null
null
tueplots/cycler.py
SirRob1997/tueplots
83c6bfabe83b58bd38b6e361a85fd1b33bfd063c
[ "MIT" ]
null
null
null
tueplots/cycler.py
SirRob1997/tueplots
83c6bfabe83b58bd38b6e361a85fd1b33bfd063c
[ "MIT" ]
null
null
null
"""Color cycler.""" from matplotlib import cycler as mpl_cycler def cycler(**kwargs): """Wrap a matplotlib.cycler object into a parameter-dictionary compatible with plt.rcParams. Please refer to https://matplotlib.org/cycler/ and https://matplotlib.org/stable/tutorials/intermediate/color...
27.4375
96
0.70615
"""Color cycler.""" from matplotlib import cycler as mpl_cycler def cycler(**kwargs): """Wrap a matplotlib.cycler object into a parameter-dictionary compatible with plt.rcParams. Please refer to https://matplotlib.org/cycler/ and https://matplotlib.org/stable/tutorials/intermediate/color...
0
0
0
a4aabad16286b60a5d720711afea1d3dc95e091b
76
py
Python
test/__init__.py
continental/hybrid_learning
37b9fc83d7b14902dfe92e0c45071c150bcf3779
[ "MIT" ]
3
2020-10-19T12:47:03.000Z
2021-03-02T11:26:00.000Z
test/__init__.py
continental/hybrid_learning
37b9fc83d7b14902dfe92e0c45071c150bcf3779
[ "MIT" ]
null
null
null
test/__init__.py
continental/hybrid_learning
37b9fc83d7b14902dfe92e0c45071c150bcf3779
[ "MIT" ]
1
2022-01-02T10:50:53.000Z
2022-01-02T10:50:53.000Z
# Copyright (c) 2020 Continental Automotive GmbH """Testing functions."""
19
49
0.723684
# Copyright (c) 2020 Continental Automotive GmbH """Testing functions."""
0
0
0
f745cd4946f48dd0fae6848f226b80a6166a1f5f
21,621
py
Python
riptable/tests/test_accum2.py
972d5defe3218bd62b741e6a2f11f5b3/riptable
bb928c11752e831ec701f91964979b31db53826a
[ "BSD-2-Clause-Patent" ]
307
2020-08-27T20:25:11.000Z
2022-03-08T15:51:19.000Z
riptable/tests/test_accum2.py
972d5defe3218bd62b741e6a2f11f5b3/riptable
bb928c11752e831ec701f91964979b31db53826a
[ "BSD-2-Clause-Patent" ]
206
2020-08-17T19:07:15.000Z
2022-03-18T11:53:55.000Z
riptable/tests/test_accum2.py
972d5defe3218bd62b741e6a2f11f5b3/riptable
bb928c11752e831ec701f91964979b31db53826a
[ "BSD-2-Clause-Patent" ]
10
2020-08-28T00:22:05.000Z
2021-04-30T20:22:28.000Z
import unittest import pandas as pd import pytest import riptable as rt # N.B. TL;DR We have to import the actual implementation module to override the module global # variable "tm.N" and "tm.K". # In pandas 1.0 they move the code from pandas/util/testing.py to pandas/_testing.py. # The "import ...
39.027076
175
0.542019
import unittest import pandas as pd import pytest import riptable as rt # N.B. TL;DR We have to import the actual implementation module to override the module global # variable "tm.N" and "tm.K". # In pandas 1.0 they move the code from pandas/util/testing.py to pandas/_testing.py. # The "import ...
19,470
186
485
8674fe6e4ff0a7a0d1ff39489a45165712137342
4,129
py
Python
src/sqlfluff/core/parser/segments/meta.py
amardeep/sqlfluff
7951f4f349f47c250c8bbb768da02408fa794ec3
[ "MIT" ]
3,024
2020-10-01T11:03:51.000Z
2022-03-31T16:42:00.000Z
src/sqlfluff/core/parser/segments/meta.py
amardeep/sqlfluff
7951f4f349f47c250c8bbb768da02408fa794ec3
[ "MIT" ]
2,395
2020-09-30T12:59:21.000Z
2022-03-31T22:05:29.000Z
src/sqlfluff/core/parser/segments/meta.py
amardeep/sqlfluff
7951f4f349f47c250c8bbb768da02408fa794ec3
[ "MIT" ]
246
2020-10-02T17:08:03.000Z
2022-03-30T17:43:51.000Z
"""Indent and Dedent classes.""" from sqlfluff.core.parser.match_wrapper import match_wrapper from sqlfluff.core.parser.segments.raw import RawSegment from sqlfluff.core.parser.context import ParseContext from typing import Optional, List class MetaSegment(RawSegment): """A segment which is empty but indicates w...
35.594828
88
0.677646
"""Indent and Dedent classes.""" from sqlfluff.core.parser.match_wrapper import match_wrapper from sqlfluff.core.parser.segments.raw import RawSegment from sqlfluff.core.parser.context import ParseContext from typing import Optional, List class MetaSegment(RawSegment): """A segment which is empty but indicates w...
0
0
0