uid
stringlengths
24
24
split
stringclasses
1 value
category
stringclasses
2 values
content
stringlengths
5
482k
signature
stringlengths
1
14k
suffix
stringlengths
1
482k
prefix
stringlengths
9
14k
prefix_token_count
int64
3
5.01k
prefix_token_budget
int64
64
256
element_token_count
int64
1
292k
signature_token_count
int64
1
5.01k
prefix_context_token_count
int64
0
255
repo
stringlengths
7
112
path
stringlengths
4
208
language
stringclasses
1 value
name
stringlengths
1
218
qualname
stringlengths
1
218
start_line
int64
1
26.7k
end_line
int64
1
26.7k
signature_start_line
int64
1
26.7k
signature_end_line
int64
1
26.7k
source_hash
stringlengths
40
40
source_dataset
stringclasses
1 value
source_split
stringclasses
1 value
dc5dc818d970e66551dcb022
train
class
class point(): def __init__(self, x, y, z, pitch, roll, yaw): self.x = x self.y = y self.z = z self.pitch = pitch self.roll = roll self.yaw = yaw
class point():
def __init__(self, x, y, z, pitch, roll, yaw): self.x = x self.y = y self.z = z self.pitch = pitch self.roll = roll self.yaw = yaw
臂忙碌 state_feedback = 0 NAME = 'socket_server' client_response = 0 #回傳次數初始值 point_data_flag = False arm_mode_flag = False speed_mode_flag = False Socket_sent_flag = False ##------------class pos------- class point():
64
64
59
3
61
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
point
point
34
41
34
34
94695a84984bbbc02c919fc4686f93ee41b3a22e
bigcode/the-stack
train
0d710dfc6002c094e3462447
train
function
def myhook(): print ("shutdown time!")
def myhook():
print ("shutdown time!")
.Arm_feedback_Type.shutdown: break rospy.on_shutdown(myhook) Socket.close() ##-----------socket client end-------- ##-------------socket 封包傳輸 end--------------## ## 多執行緒 def thread_test(): socket_client() ## 多執行序 end def myhook():
64
64
10
4
59
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
myhook
myhook
241
242
241
241
8976692cc69baef8a22465169005f89b495b9fa3
bigcode/the-stack
train
407728ef70cc52e0331e68cf
train
function
def socket_server(): ##創建Server node rospy.init_node(NAME) # a = rospy.Service('arm_mode',arm_mode, Arm_Mode) ##server arm mode data # s = rospy.Service('arm_pos',arm_data, point_data) ##server arm point data # b = rospy.Service('speed_mode',speed_mode, Speed_Mode) ##server speed mode data #c = rosp...
def socket_server(): ##創建Server node
rospy.init_node(NAME) # a = rospy.Service('arm_mode',arm_mode, Arm_Mode) ##server arm mode data # s = rospy.Service('arm_pos',arm_data, point_data) ##server arm point data # b = rospy.Service('speed_mode',speed_mode, Speed_Mode) ##server speed mode data #c = rospy.Service('grip_mode',grip_mode, Grip...
True #Socket_command() return(1) # def Grip_Mode(req): ##接收策略端傳送夾爪動作資料 # socket_cmd.grip = int('%s'%req.grip) # return(1) def socket_server(): ##創建Server node
64
64
121
10
54
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
socket_server
socket_server
133
140
133
133
d280c522e3128213b3df40e8a0863b473d633b00
bigcode/the-stack
train
fc28256b17ab8a3f2c462215
train
function
def Socket_command(): global arm_mode_flag,speed_mode_flag,point_data_flag if arm_mode_flag == True: arm_mode_flag = False for case in switch(socket_cmd.action): #-------PtP Mode-------- if case(Taskcmd.Action_Type.PtoP): for case in switch(socket_cmd.set...
def Socket_command():
global arm_mode_flag,speed_mode_flag,point_data_flag if arm_mode_flag == True: arm_mode_flag = False for case in switch(socket_cmd.action): #-------PtP Mode-------- if case(Taskcmd.Action_Type.PtoP): for case in switch(socket_cmd.setboth): ...
收策略端傳送夾爪動作資料 # socket_cmd.grip = int('%s'%req.grip) # return(1) def socket_server(): ##創建Server node rospy.init_node(NAME) # a = rospy.Service('arm_mode',arm_mode, Arm_Mode) ##server arm mode data # s = rospy.Service('arm_pos',arm_data, point_data) ##server arm point data # b = rospy.Service('sp...
189
189
633
4
185
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
Socket_command
Socket_command
145
189
145
145
b6e707cc08e1370cee76a5ce061f107a839cad06
bigcode/the-stack
train
65c582ec0fd6f422191f73cf
train
function
def thread_test(): socket_client()
def thread_test():
socket_client()
輸手臂命令 end----------------- if Arm_feedback == Taskcmd.Arm_feedback_Type.shutdown: break rospy.on_shutdown(myhook) Socket.close() ##-----------socket client end-------- ##-------------socket 封包傳輸 end--------------## ## 多執行緒 def thread_test():
64
64
8
4
59
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
thread_test
thread_test
238
239
238
238
05e666b81966120c38ebe5fb64b79992da815bf2
bigcode/the-stack
train
4a103f3f95957d37da5bc468
train
class
class switch(object): def __init__(self, value): self.value = value self.fall = False def __iter__(self): """Return the match method once, then stop""" yield self.match raise StopIteration def match(self, *args): """Indicate whether or not to enter a case su...
class switch(object):
def __init__(self, value): self.value = value self.fall = False def __iter__(self): """Return the match method once, then stop""" yield self.match raise StopIteration def match(self, *args): """Indicate whether or not to enter a case suite""" if self...
action,Speedmode): self.grip = grip self.setvel = setvel self.ra = ra self.delay = delay self.setboth = setboth self.action = action self.Speedmode = Speedmode ##-----------switch define------------## class switch(object):
64
64
124
4
60
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
switch
switch
54
72
54
54
5546836776eb15562ca1a9953f4dd7ed4a551708
bigcode/the-stack
train
c8cb376fb61bb06c4653d6b4
train
class
class socket_cmd(): def __init__(self, grip, setvel, ra, delay, setboth, action,Speedmode): self.grip = grip self.setvel = setvel self.ra = ra self.delay = delay self.setboth = setboth self.action = action self.Speedmode = Speedmode
class socket_cmd():
def __init__(self, grip, setvel, ra, delay, setboth, action,Speedmode): self.grip = grip self.setvel = setvel self.ra = ra self.delay = delay self.setboth = setboth self.action = action self.Speedmode = Speedmode
= x self.y = y self.z = z self.pitch = pitch self.roll = roll self.yaw = yaw pos = point(0,36.8,11.35,-90,0,0) ##------------class socket_cmd--------- class socket_cmd():
64
64
77
4
60
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
socket_cmd
socket_cmd
44
52
44
44
db55c179ff848a621c9ef97f4f29e07428b392ae
bigcode/the-stack
train
47b7fd067af5f85dede7d01c
train
function
def socket_client(): global Socket,Arm_feedback,data,Socket_sent_flag try: Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) Socket.connect(('192.168.0.1', 8080))#iclab 5 & iclab hiwin #s.connect(('192.168.1.102', 8080))#iclab computerx except socket.error as msg: pr...
def socket_client():
global Socket,Arm_feedback,data,Socket_sent_flag try: Socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) Socket.connect(('192.168.0.1', 8080))#iclab 5 & iclab hiwin #s.connect(('192.168.1.102', 8080))#iclab computerx except socket.error as msg: print(msg) sys....
-------- if case(Taskcmd.Action_Type.Delay): data = TCP.SetDelay(socket_cmd.grip,0) break #-------設定手臂急速&安全模式-------- if case(Taskcmd.Action_Type.Mode): data = TCP.Set_SpeedMode(socket_cmd.grip,socket_cmd.Speedmode) brea...
133
133
446
4
129
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
socket_client
socket_client
193
234
193
193
de09d827717a8a7e7c81086b9c945bfe23a11a8a
bigcode/the-stack
train
d1be0eec942c17e09cffe69f
train
function
def Arm_Mode(req): ##接收策略端傳送手臂模式資料 global arm_mode_flag socket_cmd.action = int('%s'%req.action) socket_cmd.grip = int('%s'%req.grip) socket_cmd.ra = int('%s'%req.ra) socket_cmd.setvel = int('%s'%req.vel) socket_cmd.setboth = int('%s'%req.both) arm_mode_flag = True Socket_command() p...
def Arm_Mode(req): ##接收策略端傳送手臂模式資料
global arm_mode_flag socket_cmd.action = int('%s'%req.action) socket_cmd.grip = int('%s'%req.grip) socket_cmd.ra = int('%s'%req.ra) socket_cmd.setvel = int('%s'%req.vel) socket_cmd.setboth = int('%s'%req.both) arm_mode_flag = True Socket_command() print("cmd") return(1)
pos.yaw = '%s'%req.yaw point_data_flag = True client_response = client_response + 1 #Socket_command() return(client_response) ##----------Arm Mode-------------### def Arm_Mode(req): ##接收策略端傳送手臂模式資料
64
64
110
18
46
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
Arm_Mode
Arm_Mode
112
122
112
112
4ad2cc9cdd2efa468c06831d341540023bae078a
bigcode/the-stack
train
29f85fdd0884b51cb2cf68ab
train
function
def Speed_Mode(req): ##接收策略端傳送手臂模式資料 global speed_mode_flag socket_cmd.Speedmode = int('%s'%req.Speedmode) speed_mode_flag = True #Socket_command() return(1)
def Speed_Mode(req): ##接收策略端傳送手臂模式資料
global speed_mode_flag socket_cmd.Speedmode = int('%s'%req.Speedmode) speed_mode_flag = True #Socket_command() return(1)
'%req.vel) socket_cmd.setboth = int('%s'%req.both) arm_mode_flag = True Socket_command() print("cmd") return(1) ##-------Arm Speed Mode------------### def Speed_Mode(req): ##接收策略端傳送手臂模式資料
64
64
55
18
46
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
Speed_Mode
Speed_Mode
124
129
124
124
5561e8756028bb5417030da705af33bdb22497b8
bigcode/the-stack
train
95bcabff27734d694adaa4b5
train
function
def socket_client_arm_state(Arm_state): global state_feedback rospy.wait_for_service('arm_state') try: Arm_state_client = rospy.ServiceProxy('arm_state', arm_state) state_feedback = Arm_state_client(Arm_state) #pos_feedback_times = pos_feedback.response return state_feedback...
def socket_client_arm_state(Arm_state):
global state_feedback rospy.wait_for_service('arm_state') try: Arm_state_client = rospy.ServiceProxy('arm_state', arm_state) state_feedback = Arm_state_client(Arm_state) #pos_feedback_times = pos_feedback.response return state_feedback except rospy.ServiceException as e:...
if self.fall or not args: return True elif self.value in args: # changed for v1.5, see below self.fall = True return True else: return False ##-----------client feedback arm state---------- def socket_client_arm_state(Arm_state):
64
64
87
9
55
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
socket_client_arm_state
socket_client_arm_state
74
84
74
74
92b2cf4a73f0c48a0def561108220f3bedb5c192
bigcode/the-stack
train
a6c4f759dab39758b0875b18
train
function
def point_data(req): ##接收策略端傳送位姿資料 global client_response,point_data_flag pos.x = '%s'%req.x pos.y = '%s'%req.y pos.z = '%s'%req.z pos.pitch = '%s'%req.pitch pos.roll = '%s'%req.roll pos.yaw = '%s'%req.yaw point_data_flag = True client_response = client_response + 1 #Socket_comma...
def point_data(req): ##接收策略端傳送位姿資料
global client_response,point_data_flag pos.x = '%s'%req.x pos.y = '%s'%req.y pos.z = '%s'%req.z pos.pitch = '%s'%req.pitch pos.roll = '%s'%req.roll pos.yaw = '%s'%req.yaw point_data_flag = True client_response = client_response + 1 #Socket_command() return(client_response)
#pos_feedback_times = pos_feedback.response return sent_feedback except rospy.ServiceException as e: print ("Service call failed: %s"%e) ##-----------client feedback arm state end---------- ##------------server 端------- def point_data(req): ##接收策略端傳送位姿資料
64
64
114
16
48
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
point_data
point_data
99
110
99
99
449469fc3662426d18b819457e45b476d3d37bf7
bigcode/the-stack
train
7e42fb20ca774009673ad15e
train
function
def socket_client_sent_flag(Sent_flag): global sent_feedback rospy.wait_for_service('sent_flag') try: Sent_flag_client = rospy.ServiceProxy('sent_flag', sent_flag) sent_feedback = Sent_flag_client(Sent_flag) #pos_feedback_times = pos_feedback.response return sent_feedback ...
def socket_client_sent_flag(Sent_flag):
global sent_feedback rospy.wait_for_service('sent_flag') try: Sent_flag_client = rospy.ServiceProxy('sent_flag', sent_flag) sent_feedback = Sent_flag_client(Sent_flag) #pos_feedback_times = pos_feedback.response return sent_feedback except rospy.ServiceException as e: ...
_state) state_feedback = Arm_state_client(Arm_state) #pos_feedback_times = pos_feedback.response return state_feedback except rospy.ServiceException as e: print ("Service call failed: %s"%e) ##----------socket sent data flag------------- def socket_client_sent_flag(Sent_flag):
64
64
87
9
55
SamKaiYang/2019_Hiwin_Shaking
src/.history/Test2/Hiwin_RT605_ArmCommand_Socket_20190627160026.py
Python
socket_client_sent_flag
socket_client_sent_flag
86
96
86
86
c82337b6f026876f3ea54c1c41f836ad48c29f0a
bigcode/the-stack
train
be73b0e50a20f62af4c788ca
train
class
class Ball: """ Game ball. """ def __init__(self, x, y, size, color=(255, 255, 255)): """ Init the ball. :param x: initial x coordinate. :param y: initial y coordinate. :param size: size for width and height. :param color: ball color. """ ...
class Ball:
""" Game ball. """ def __init__(self, x, y, size, color=(255, 255, 255)): """ Init the ball. :param x: initial x coordinate. :param y: initial y coordinate. :param size: size for width and height. :param color: ball color. """ self.x = x ...
"""Ball This module an the implementation of the class Ball Author: Alejandro Mujica (aledrums@gmail.com) Date: 07/09/2020 """ import pygame from constants import VIRTUAL_HEIGHT, VIRTUAL_WIDTH class Ball:
53
105
352
3
49
R3mmurd/pong
ball.py
Python
Ball
Ball
12
67
12
12
9758e5ba8c5042c14f50d8dd1d9a6fddd65818df
bigcode/the-stack
train
7318b02fea5f0b9f3becc509
train
class
class SinglePixelAttack(Attack): """ SinglePixelAttack """ def __init__(self, model): """ Args: model: support_targeted: """ super(SinglePixelAttack, self).__init__(model) # 如果输入的原始数据,isPreprocessed为False,如果驶入的图像数据被归一化了,设置为True def _appl...
class SinglePixelAttack(Attack):
""" SinglePixelAttack """ def __init__(self, model): """ Args: model: support_targeted: """ super(SinglePixelAttack, self).__init__(model) # 如果输入的原始数据,isPreprocessed为False,如果驶入的图像数据被归一化了,设置为True def _apply(self, adversary, max_pixels=100...
" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """ This module provides the attack method for SinglePixelAttack & LocalSearchAttack's implement. """ from __future__ import division...
173
173
577
7
165
honshj/PaddleSleeve
AdvBox/attacks/single_pixel_attack.py
Python
SinglePixelAttack
SinglePixelAttack
39
117
39
39
28a6e40b41b719493fc776f9573e4ca47a56a07e
bigcode/the-stack
train
c7981066ca7a727153d9faf2
train
function
def get_current_time(): timenow = time.strftime('%Y-%m-%d %X', time.localtime()) return timenow
def get_current_time():
timenow = time.strftime('%Y-%m-%d %X', time.localtime()) return timenow
late", "Accept-Language": "en-US,en;q=0.5", "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0"} def get_current_time():
63
64
31
5
58
NCU-NLP/news_feed
crawls/ProxyPool/proxy_spiders/spider_kxdaili.py
Python
get_current_time
get_current_time
14
16
14
14
6b3ff16240c08a3fe1c92f7ca553bf6a94bbfeb2
bigcode/the-stack
train
b6927f8502d4bf639ba155c8
train
function
def crawl(): urls = ['http://www.kxdaili.com/dailiip/1/%s.html', 'http://www.kxdaili.com/dailiip/2/%s.html'] result = [] for url in urls: page = 1 while page <= 10: try: html = requests.get(url % (page), headers=headers, timeout=30).text.encode('ISO-88...
def crawl():
urls = ['http://www.kxdaili.com/dailiip/1/%s.html', 'http://www.kxdaili.com/dailiip/2/%s.html'] result = [] for url in urls: page = 1 while page <= 10: try: html = requests.get(url % (page), headers=headers, timeout=30).text.encode('ISO-8859-1').decode...
0.5", "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0"} def get_current_time(): timenow = time.strftime('%Y-%m-%d %X', time.localtime()) return timenow def crawl():
79
79
264
3
75
NCU-NLP/news_feed
crawls/ProxyPool/proxy_spiders/spider_kxdaili.py
Python
crawl
crawl
19
45
19
19
26caf9f177b309553631bc7eef4f04a4539ce39f
bigcode/the-stack
train
96f48b058ec1ad1186886c4d
train
class
class SpiderKxdaili(threading.Thread): def __init__(self): super(SpiderKxdaili, self).__init__() def run(self): self.result = crawl()
class SpiderKxdaili(threading.Thread):
def __init__(self): super(SpiderKxdaili, self).__init__() def run(self): self.result = crawl()
_text() except: pass result.append(ip) time.sleep(1) print('[%s][Spider][kxdaili]OK!' % get_current_time(), 'Crawled IP Count:', len(result)) return result class SpiderKxdaili(threading.Thread):
64
64
41
10
53
NCU-NLP/news_feed
crawls/ProxyPool/proxy_spiders/spider_kxdaili.py
Python
SpiderKxdaili
SpiderKxdaili
48
53
48
48
d57158b3ad897bb47bccbd46fa98167a8c8e9162
bigcode/the-stack
train
21fcad66a9f824e2b07c951b
train
function
def foo(i): pass
def foo(i):
pass
# test capability for threads to access a shared immutable data structure # # SPDX-FileCopyrightText: Copyright (c) 2016 Damien P. George on behalf of Pycom Ltd # # SPDX-License-Identifier: MIT import _thread def foo(i):
55
64
7
4
50
MakeItZone/circuitpython
tests/thread/thread_shared1.py
Python
foo
foo
9
10
9
9
33b0fa1726807a37dd8eb3eabb523d7ddb63ff79
bigcode/the-stack
train
a19279fa45bb482a45754925
train
function
def thread_entry(n, tup): for i in tup: foo(i) with lock: global n_finished n_finished += 1
def thread_entry(n, tup):
for i in tup: foo(i) with lock: global n_finished n_finished += 1
test capability for threads to access a shared immutable data structure # # SPDX-FileCopyrightText: Copyright (c) 2016 Damien P. George on behalf of Pycom Ltd # # SPDX-License-Identifier: MIT import _thread def foo(i): pass def thread_entry(n, tup):
64
64
33
7
56
MakeItZone/circuitpython
tests/thread/thread_shared1.py
Python
thread_entry
thread_entry
12
17
12
12
babb21d4c63815207f207124f8be50f0ca9d31fb
bigcode/the-stack
train
0f36c0bcd806852b1b00622b
train
class
class _ModelZooUrls(object): """ Mapping from names to officially released Detectron2 pre-trained models. """ S3_PREFIX = "https://dl.fbaipublicfiles.com/detectron2/" # format: {config_path.yaml} -> model_id/model_final_{commit}.pkl CONFIG_PATH_TO_URL_SUFFIX = { # COCO Detection with F...
class _ModelZooUrls(object):
""" Mapping from names to officially released Detectron2 pre-trained models. """ S3_PREFIX = "https://dl.fbaipublicfiles.com/detectron2/" # format: {config_path.yaml} -> model_id/model_final_{commit}.pkl CONFIG_PATH_TO_URL_SUFFIX = { # COCO Detection with Faster R-CNN "COCO-Det...
# Copyright (c) Facebook, Inc. and its affiliates. import os from typing import Optional import pkg_resources import torch from detectron2.checkpoint import DetectionCheckpointer from detectron2.config import CfgNode, LazyConfig, get_cfg, instantiate from detectron2.modeling import build_model class _ModelZooUrls(obje...
74
256
2,480
7
66
Hartvi/detectron2
detectron2/model_zoo/model_zoo.py
Python
_ModelZooUrls
_ModelZooUrls
12
108
12
12
ad135194b35f7763308003fc67a5bcb720c1fb3b
bigcode/the-stack
train
50ca3bbe776c577d550e570a
train
function
def get_config_file(config_path): """ Returns path to a builtin config file. Args: config_path (str): config file name relative to detectron2's "config/" directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" Returns: str: the real path to the config file. ...
def get_config_file(config_path):
""" Returns path to a builtin config file. Args: config_path (str): config file name relative to detectron2's "config/" directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" Returns: str: the real path to the config file. """ cfg_file = pkg_resourc...
1x.yaml" Returns: str: a URL to the model """ url = _ModelZooUrls.query(config_path) if url is None: raise RuntimeError("Pretrained model for {} is not available!".format(config_path)) return url def get_config_file(config_path):
64
64
140
7
56
Hartvi/detectron2
detectron2/model_zoo/model_zoo.py
Python
get_config_file
get_config_file
128
144
128
128
33ca9afcf50cccbe488b37c847cc7992747f8268
bigcode/the-stack
train
488e60eb02759e5d04383f4c
train
function
def get_checkpoint_url(config_path): """ Returns the URL to the model trained using the given config Args: config_path (str): config file name relative to detectron2's "config/" directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" Returns: str: a URL to t...
def get_checkpoint_url(config_path):
""" Returns the URL to the model trained using the given config Args: config_path (str): config file name relative to detectron2's "config/" directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" Returns: str: a URL to the model """ url = _ModelZooU...
(".yaml", "").replace(".py", "") if name in _ModelZooUrls.CONFIG_PATH_TO_URL_SUFFIX: suffix = _ModelZooUrls.CONFIG_PATH_TO_URL_SUFFIX[name] return _ModelZooUrls.S3_PREFIX + name + "/" + suffix return None def get_checkpoint_url(config_path):
64
64
123
7
56
Hartvi/detectron2
detectron2/model_zoo/model_zoo.py
Python
get_checkpoint_url
get_checkpoint_url
111
125
111
111
d2e44729818c383dfac8def9a86649e563144832
bigcode/the-stack
train
3c34e9b957b731857dd7e599
train
function
def get(config_path, trained: bool = False, device: Optional[str] = None): """ Get a model specified by relative path under Detectron2's official ``config/`` directory. Args: config_path (str): config file name relative to detectron2's "config/" directory, e.g., "COCO-InstanceSegmentati...
def get(config_path, trained: bool = False, device: Optional[str] = None):
""" Get a model specified by relative path under Detectron2's official ``config/`` directory. Args: config_path (str): config file name relative to detectron2's "config/" directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" trained (bool): see :func:`get_confi...
get_checkpoint_url(config_path) return cfg elif cfg_file.endswith(".py"): cfg = LazyConfig.load(cfg_file) if trained: url = get_checkpoint_url(config_path) if "train" in cfg and "init_checkpoint" in cfg.train: cfg.train.init_checkpoint = url ...
96
96
321
19
76
Hartvi/detectron2
detectron2/model_zoo/model_zoo.py
Python
get
get
180
213
180
180
9920ad8c944570adfa2f0965cdb833caaeaa72c4
bigcode/the-stack
train
7fa2949ee8a4eb3448f09a6f
train
function
def get_config(config_path, trained: bool = False): """ Returns a config object for a model in model zoo. Args: config_path (str): config file name relative to detectron2's "config/" directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" trained (bool): If True,...
def get_config(config_path, trained: bool = False):
""" Returns a config object for a model in model zoo. Args: config_path (str): config file name relative to detectron2's "config/" directory, e.g., "COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_1x.yaml" trained (bool): If True, will set ``MODEL.WEIGHTS`` to trained model zoo wei...
" Returns: str: the real path to the config file. """ cfg_file = pkg_resources.resource_filename( "detectron2.model_zoo", os.path.join("configs", config_path) ) if not os.path.exists(cfg_file): raise RuntimeError("{} not available in Model Zoo!".format(config_path)) retu...
87
87
292
12
74
Hartvi/detectron2
detectron2/model_zoo/model_zoo.py
Python
get_config
get_config
147
177
147
147
68cd91fa9ebdf939755a139256589d5ad7e01621
bigcode/the-stack
train
61061160d11a4ff4026c41c8
train
class
class TransferClientProtocol(Protocol): def __init__(self, parent, data): self.parent = parent self.data = data def dataReceived(self, data): peer = self.transport.getPeer().host receivedList = None try: receivedList = pickle_loads(data) print("[Birthday Reminder] received birthday list from", peer)...
class TransferClientProtocol(Protocol):
def __init__(self, parent, data): self.parent = parent self.data = data def dataReceived(self, data): peer = self.transport.getPeer().host receivedList = None try: receivedList = pickle_loads(data) print("[Birthday Reminder] received birthday list from", peer) except: print("[Birthday Reminder]...
().host, str(reason.value))) class TransferServerFactory(ServerFactory): def __init__(self, parent): self.parent = parent def buildProtocol(self, addr): return TransferServerProtocol(self.parent) # the client classes are used to request and receive birthday lists class TransferClientProtocol(Protocol):
64
64
161
7
56
builder08/enigma2-plugins_2
birthdayreminder/src/BirthdayNetworking.py
Python
TransferClientProtocol
TransferClientProtocol
125
150
125
125
9f566c4fb3d1e6d5cbf489f92b9faaf08983e653
bigcode/the-stack
train
ea3cadfc5db9089f3d70a8da
train
class
class BroadcastProtocol(DatagramProtocol): def __init__(self, parent): self.parent = parent self.port = config.plugins.birthdayreminder.broadcastPort.value # self.uuid = str(getnode()) # sent with broadcasts to identify ourselves when receiving our own broascast :o self.uuid = self.getNodeHack() # sent with br...
class BroadcastProtocol(DatagramProtocol):
def __init__(self, parent): self.parent = parent self.port = config.plugins.birthdayreminder.broadcastPort.value # self.uuid = str(getnode()) # sent with broadcasts to identify ourselves when receiving our own broascast :o self.uuid = self.getNodeHack() # sent with broadcasts to identify ourselves when receivi...
_loads from socket import SOL_SOCKET, SO_BROADCAST from twisted.internet.error import ConnectionDone from twisted.internet.protocol import DatagramProtocol, ServerFactory, ClientFactory, Protocol #from uuid import getnode # broken in Python 2.6.7 :( # ENIGMA IMPORTS from Components.config import config # for localize...
96
96
320
8
88
builder08/enigma2-plugins_2
birthdayreminder/src/BirthdayNetworking.py
Python
BroadcastProtocol
BroadcastProtocol
40
69
40
40
45e9b0d0a4db09619f69e591c6f22b6c0257add1
bigcode/the-stack
train
c52b517dfe3dc6af16e7a02b
train
class
class TransferServerProtocol(Protocol): def __init__(self, parent): self.parent = parent def connectionMade(self): print("[Birthday Reminder] client %s connected" % self.transport.getPeer().host) def dataReceived(self, data): peer = self.transport.getPeer().host if data == "requestingList": print("[Bir...
class TransferServerProtocol(Protocol):
def __init__(self, parent): self.parent = parent def connectionMade(self): print("[Birthday Reminder] client %s connected" % self.transport.getPeer().host) def dataReceived(self, data): peer = self.transport.getPeer().host if data == "requestingList": print("[Birthday Reminder] sending birthday list to...
0]) self.parent.requestBirthdayList(addr) elif parts[1] == "ping": # are we there? print("[Birthday Reminder] received ping from", addr[0]) self.parent.sendPingResponse(addr) def getNodeHack(self): from os import urandom return urandom(16) # the server classes are used to send and receive birthday lis...
87
87
292
7
79
builder08/enigma2-plugins_2
birthdayreminder/src/BirthdayNetworking.py
Python
TransferServerProtocol
TransferServerProtocol
74
112
74
74
50cbad70fe37ac2b8f05af418ebab03ca196f209
bigcode/the-stack
train
e4aec7ad260de33ec8dba14a
train
class
class TransferServerFactory(ServerFactory): def __init__(self, parent): self.parent = parent def buildProtocol(self, addr): return TransferServerProtocol(self.parent)
class TransferServerFactory(ServerFactory):
def __init__(self, parent): self.parent = parent def buildProtocol(self, addr): return TransferServerProtocol(self.parent)
== ConnectionDone: print("[Birthday Reminder] closed connection to client", self.transport.getPeer().host) else: print("[Birthday Reminder] lost connection to client %s. Reason: %s" % (self.transport.getPeer().host, str(reason.value))) class TransferServerFactory(ServerFactory):
63
64
36
7
56
builder08/enigma2-plugins_2
birthdayreminder/src/BirthdayNetworking.py
Python
TransferServerFactory
TransferServerFactory
115
120
115
115
d990cef03a41e86eeee8517bc6bfefa6fe8e2b36
bigcode/the-stack
train
5c4622d9fcf3e429079209cd
train
class
class TransferClientFactory(ClientFactory): def __init__(self, parent, data): self.parent = parent self.data = data def buildProtocol(self, addr): return TransferClientProtocol(self.parent, self.data) def startedConnecting(self, connector): dest = ''.join([connector.getDestination().host, ":", str(connecto...
class TransferClientFactory(ClientFactory):
def __init__(self, parent, data): self.parent = parent self.data = data def buildProtocol(self, addr): return TransferClientProtocol(self.parent, self.data) def startedConnecting(self, connector): dest = ''.join([connector.getDestination().host, ":", str(connector.getDestination().port)]) def clientConne...
return # save and load the received list self.parent.save(receivedList) self.parent.load() self.parent.addAllTimers() self.parent.showReceivedMessage(len(receivedList), peer) def connectionMade(self): self.transport.write(self.data) class TransferClientFactory(ClientFactory):
64
64
183
7
57
builder08/enigma2-plugins_2
birthdayreminder/src/BirthdayNetworking.py
Python
TransferClientFactory
TransferClientFactory
153
171
153
153
98625771fde0bcd0d4e695399ac5cbde041df033
bigcode/the-stack
train
6c2198443fe9e38845315042
train
function
def control(bot,update): msg=update.message s= msg.text print(s) reply= rgb(board,s) bot.sendMessage(msg.chat_id, text=reply)
def control(bot,update):
msg=update.message s= msg.text print(s) reply= rgb(board,s) bot.sendMessage(msg.chat_id, text=reply)
OUTPUT) board.pinMode(11, OUTPUT) myToken="<Your token here>" def initial(bot, update): msg=update.message s=msg.text print(s) bot.sendmessage(msg.chat_id, text="Type color to make LED glow.") def control(bot,update):
63
64
41
6
57
tushutripathi/TeleRGB
rgbtelegram.py
Python
control
control
20
25
20
20
dc8c35336c7c2f579a373a8a69d8a21aa3b5e8c4
bigcode/the-stack
train
4096a62bd93f1e98091ec15f
train
function
def initial(bot, update): msg=update.message s=msg.text print(s) bot.sendmessage(msg.chat_id, text="Type color to make LED glow.")
def initial(bot, update):
msg=update.message s=msg.text print(s) bot.sendmessage(msg.chat_id, text="Type color to make LED glow.")
_to_rgb as n2rgb from rgbControl import rgb from ardupy import * board=Arduino("COM10") board.pinMode(9, OUTPUT) board.pinMode(10, OUTPUT) board.pinMode(11, OUTPUT) myToken="<Your token here>" def initial(bot, update):
63
64
39
6
57
tushutripathi/TeleRGB
rgbtelegram.py
Python
initial
initial
14
18
14
14
685192c017c95208234be36c414ca9faa2477477
bigcode/the-stack
train
19bd8f37d742021db4857b28
train
function
def qlearn(env, num_iters, alpha, gamma, epsilon, max_steps, use_softmax_policy, init_beta=None, k_exp_sched=None): """ Runs tabular Q learning algorithm for stochastic environment. Args: env: instance of environment object num_iters (int): Number of episodes to run Q-learning algorithm ...
def qlearn(env, num_iters, alpha, gamma, epsilon, max_steps, use_softmax_policy, init_beta=None, k_exp_sched=None):
""" Runs tabular Q learning algorithm for stochastic environment. Args: env: instance of environment object num_iters (int): Number of episodes to run Q-learning algorithm alpha (float): The learning rate between [0,1] gamma (float): Discount factor, between [0,1) epsil...
import numpy as np import math import copy def qlearn(env, num_iters, alpha, gamma, epsilon, max_steps, use_softmax_policy, init_beta=None, k_exp_sched=None):
42
224
747
31
10
fancent/CSC311
A4/qlearning.py
Python
qlearn
qlearn
5
71
5
5
863f92cbef3b77d9f13a30fa68b647a55ebec1dd
bigcode/the-stack
train
2879b7294de4d4d7b0a57a6f
train
function
def stable_softmax(x, axis=2): """ Numerically stable softmax: softmax(x) = e^x /(sum(e^x)) = e^x / (e^max(x) * sum(e^x/e^max(x))) Args: x: An N-dimensional array of floats axis: The axis for normalizing over. Returns: output: softmax(x) along the specifi...
def stable_softmax(x, axis=2):
""" Numerically stable softmax: softmax(x) = e^x /(sum(e^x)) = e^x / (e^max(x) * sum(e^x/e^max(x))) Args: x: An N-dimensional array of floats axis: The axis for normalizing over. Returns: output: softmax(x) along the specified dimension """ max_x ...
(q_hat.shape[1]) return np.random.choice(actions, 1, p=probability[state,:]) def beta_exp_schedule(init_beta, iteration, k=0.1): beta = init_beta * np.exp(k * iteration) return beta def stable_softmax(x, axis=2):
64
64
141
10
53
fancent/CSC311
A4/qlearning.py
Python
stable_softmax
stable_softmax
125
141
125
125
9f4acda6dca79b9552face237db551be5c515538
bigcode/the-stack
train
7eedd8be04702105c14f277d
train
function
def epsilon_greedy(q_hat, epsilon, state, action_space_size): """ Chooses a random action with p_rand_move probability, otherwise choose the action with highest Q value for current observation Args: q_hat: A Q-value table shaped [num_rows, num_col, num_actions] for grid environment...
def epsilon_greedy(q_hat, epsilon, state, action_space_size):
""" Chooses a random action with p_rand_move probability, otherwise choose the action with highest Q value for current observation Args: q_hat: A Q-value table shaped [num_rows, num_col, num_actions] for grid environment with num_rows rows and num_col columns and num_actions ...
+ alpha*(reward + gamma*np.max(q_hat[next_state,:]) - q_hat[curr_state, action]) # Update the current staet to be the next state curr_state = next_state steps_vs_iters[i] = num_steps return q_hat, steps_vs_iters def epsilon_greedy(q_hat, epsilon, state...
78
78
263
16
61
fancent/CSC311
A4/qlearning.py
Python
epsilon_greedy
epsilon_greedy
74
98
74
74
f5fe6d67d95f7dca6334aae2941a6bc1275690f1
bigcode/the-stack
train
503f87774ab79c7774034587
train
function
def softmax_policy(q_hat, beta, state): """ Choose action using policy derived from Q, using softmax of the Q values divided by the temperature. Args: q_hat: A Q-value table shaped [num_rows, num_col, num_actions] for grid environment with num_rows rows and num_col columns beta...
def softmax_policy(q_hat, beta, state):
""" Choose action using policy derived from Q, using softmax of the Q values divided by the temperature. Args: q_hat: A Q-value table shaped [num_rows, num_col, num_actions] for grid environment with num_rows rows and num_col columns beta (float): Parameter for controlling the ...
sample is below # a certain threshold if (np.random.uniform(0,1) < epsilon or np.sum(q_hat[state,:]) == 0): return np.random.randint(action_space_size) return np.argmax(q_hat[state,:]) def softmax_policy(q_hat, beta, state):
64
64
206
11
53
fancent/CSC311
A4/qlearning.py
Python
softmax_policy
softmax_policy
100
119
100
100
2bef66005fb8a617f20760263688591d6eff99e3
bigcode/the-stack
train
af351b3615fe67bd1ae43b42
train
function
def beta_exp_schedule(init_beta, iteration, k=0.1): beta = init_beta * np.exp(k * iteration) return beta
def beta_exp_schedule(init_beta, iteration, k=0.1):
beta = init_beta * np.exp(k * iteration) return beta
the stable_softmax function defined below probability = stable_softmax(beta*q_hat, 1) actions = np.arange(q_hat.shape[1]) return np.random.choice(actions, 1, p=probability[state,:]) def beta_exp_schedule(init_beta, iteration, k=0.1):
64
64
31
15
49
fancent/CSC311
A4/qlearning.py
Python
beta_exp_schedule
beta_exp_schedule
121
123
121
121
f45504ec8affdc0bb0195d2b345cb652e54b2b07
bigcode/the-stack
train
1e2aee2dceb5dec680579c54
train
function
def eval_bcubed(config, predicted_cluster_assignment_file,gold_cluster_assignment_file,restrict_to_gold=False): """ Evaluate the b cubed p/r/f1 Writes the score to a file and returns that value. You must have XCLUSTER_ROOT set. :param config: :return: """ outf = os.path.join(os.path.dirna...
def eval_bcubed(config, predicted_cluster_assignment_file,gold_cluster_assignment_file,restrict_to_gold=False):
""" Evaluate the b cubed p/r/f1 Writes the score to a file and returns that value. You must have XCLUSTER_ROOT set. :param config: :return: """ outf = os.path.join(os.path.dirname(predicted_cluster_assignment_file), 'tmp-bcubed-f1.tsv') os.system('set -exu; sh $XCLUSTER_ROOT/bin/util/...
, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ import os def eval_bcubed(config, predicted_cluster_assignment_fil...
72
72
243
22
49
nmonath/coref_tools
src/python/coref/util/EvalB3CubedF1.py
Python
eval_bcubed
eval_bcubed
19
41
19
19
f62aed3c482ccb32ca6d565f535765e458796dd8
bigcode/the-stack
train
d5627258cc3302cd5d8bbc07
train
class
class LocalFSHandle: def __init__(self,path): os.makedirs(path) if not os.path.exists(path) else None assert os.path.exists(path) # print("path:",path) path=os.path.abspath(path) self.lpath=path self.curser=PowerDirPath(path) self.cmd_dict={ 'newFi...
class LocalFSHandle:
def __init__(self,path): os.makedirs(path) if not os.path.exists(path) else None assert os.path.exists(path) # print("path:",path) path=os.path.abspath(path) self.lpath=path self.curser=PowerDirPath(path) self.cmd_dict={ 'newFile':self.newFile, ...
import git as g import os from wpkit.basic import PowerDirPath,PointDict,join_path,standard_path class LocalFSHandle:
31
178
595
5
25
Peiiii/wpkit
wpkit/pan.py
Python
LocalFSHandle
LocalFSHandle
5
74
5
5
1e861362a4ca784e631ca1299ca4bc778d2ad9fd
bigcode/the-stack
train
d0561cbd6538f0324cf10861
train
class
class Pan(LocalFSHandle): def __init__(self,path): super().__init__(path) self.repo = g.Repo(path) git = self.repo.git self.git = git self.add_cmd('pull',self.pull) self.add_cmd('push',self.push) self.add_cmd('goback',self.goback) @classmethod def init...
class Pan(LocalFSHandle):
def __init__(self,path): super().__init__(path) self.repo = g.Repo(path) git = self.repo.git self.git = git self.add_cmd('pull',self.pull) self.add_cmd('push',self.push) self.add_cmd('goback',self.goback) @classmethod def init(cls, path, github_path): ...
PointDict.from_dict(cmd) op,params=cmd.op,cmd.params # if 'location' in params.keys(): # params['location']=self.true_path(params['location']) if op in self.cmd_dict.keys(): # print(self.cmd_dict[op](**params)) # print("params:",params) res= self.c...
100
100
336
6
93
Peiiii/wpkit
wpkit/pan.py
Python
Pan
Pan
76
116
76
76
6477a6228bc6e07478ef5ee0edc5d9643a302427
bigcode/the-stack
train
2e33fa0ae69dedb3c1c73eeb
train
class
class Variable(FirstOrderPredicateLogicEntity): """ Variables are atomic values whose names start with a lower case letter. """ def __init__(self, name: str): self.name = name def __repr__(self): return str(self) def __str__(self): return self.name def __eq__(self...
class Variable(FirstOrderPredicateLogicEntity):
""" Variables are atomic values whose names start with a lower case letter. """ def __init__(self, name: str): self.name = name def __repr__(self): return str(self) def __str__(self): return self.name def __eq__(self, other): """ Check other instan...
import unittest from typing import Optional, List from .first_order_predicate_logic_entity import FirstOrderPredicateLogicEntity class Variable(FirstOrderPredicateLogicEntity):
34
104
349
9
24
yakuza8/first-order-predicate-logic-theorem-prover
src/entity/variable.py
Python
Variable
Variable
7
62
7
7
1607002477f795ae4f1eddcf30a9006bd3d4435d
bigcode/the-stack
train
722ff31f19caf59ff0d68d3f
train
class
class VariableUnitTest(unittest.TestCase): def test_basic_properties(self): variable_str = 'abc1' variable = Variable.build(variable_str) self.assertEqual(variable_str, variable.get_name()) self.assertEqual(variable_str, repr(variable)) self.assertFalse(variable.has_child()...
class VariableUnitTest(unittest.TestCase):
def test_basic_properties(self): variable_str = 'abc1' variable = Variable.build(variable_str) self.assertEqual(variable_str, variable.get_name()) self.assertEqual(variable_str, repr(variable)) self.assertFalse(variable.has_child()) self.assertIsNone(variable.get_chi...
def is_less_specific(self, other: 'FirstOrderPredicateLogicEntity') -> bool: """ In any case, Variable entities are the least specific entity in the domain """ return True @staticmethod def build(value: str) -> Optional[FirstOrderPredicateLogicEntity]: """ ...
126
126
422
8
117
yakuza8/first-order-predicate-logic-theorem-prover
src/entity/variable.py
Python
VariableUnitTest
VariableUnitTest
65
129
65
66
b66256a734f87c7ca65eb1f61f8f7d7e9864a435
bigcode/the-stack
train
52112a055f1538fd174a7f42
train
class
class Solution: def __init__(self): self.gates = deque([]) self.directions = [[0,1], [0, -1], [1,0], [-1, 0]] def validCell(self, rooms, cell): if cell.row >= 0 and cell.row < len(rooms) and cell.col >= 0 and cell.col < len(rooms[0]) and rooms[cell.row][cell.col] == EMPTY: ...
class Solution:
def __init__(self): self.gates = deque([]) self.directions = [[0,1], [0, -1], [1,0], [-1, 0]] def validCell(self, rooms, cell): if cell.row >= 0 and cell.row < len(rooms) and cell.col >= 0 and cell.col < len(rooms[0]) and rooms[cell.row][cell.col] == EMPTY: return True ...
from collections import deque GATE = 0 EMPTY = 2147483647 class Cell: def __init__(self, row, col): self.row = row self.col = col class Solution:
48
77
257
3
44
mamoudmatook/Leetcode
StacksAndQueues/WallsandGates.py
Python
Solution
Solution
10
36
10
10
73aed35e41b40f3ff406bcad2320b2962a0160ed
bigcode/the-stack
train
3e23606f793cdf1243e52cbd
train
class
class Cell: def __init__(self, row, col): self.row = row self.col = col
class Cell:
def __init__(self, row, col): self.row = row self.col = col
from collections import deque GATE = 0 EMPTY = 2147483647 class Cell:
22
64
26
3
18
mamoudmatook/Leetcode
StacksAndQueues/WallsandGates.py
Python
Cell
Cell
5
8
5
5
e1a033a47183dc57e068930173ed4024f7a84464
bigcode/the-stack
train
8608093d26fc9443115ef6b0
train
class
class Builder: def __init__(self, envs): if envs.get('GIT_CLONE_URL'): self.git_clone_URL = envs.get('GIT_CLONE_URL').rstrip('/') self.git_ref = envs.get('GIT_REF', "master") elif envs.get('_WORKFLOW_GIT_CLONE_URL'): self.git_clone_URL = envs.get('_WORKFLOW_GIT_CL...
class Builder:
def __init__(self, envs): if envs.get('GIT_CLONE_URL'): self.git_clone_URL = envs.get('GIT_CLONE_URL').rstrip('/') self.git_ref = envs.get('GIT_REF', "master") elif envs.get('_WORKFLOW_GIT_CLONE_URL'): self.git_clone_URL = envs.get('_WORKFLOW_GIT_CLONE_URL').rstri...
import os import sys import subprocess import glob BASE_SPACE = "/root/src" class Builder:
22
118
395
3
19
coderwangke/workflow-components
python/analysis/pylint/builder.py
Python
Builder
Builder
8
53
8
8
b99211d907a277543c0427ab89dff2c194700315
bigcode/the-stack
train
1ee0765f4c14db535df00b42
train
class
class AutomationTrace: """Container for automation trace.""" _run_ids = count(0) def __init__( self, unique_id: str | None, config: dict[str, Any], context: Context, ): """Container for automation trace.""" self._action_trace: dict[str, Deque[TraceElemen...
class AutomationTrace:
"""Container for automation trace.""" _run_ids = count(0) def __init__( self, unique_id: str | None, config: dict[str, Any], context: Context, ): """Container for automation trace.""" self._action_trace: dict[str, Deque[TraceElement]] | None = None ...
"""Trace support for automation.""" from __future__ import annotations from contextlib import contextmanager import datetime as dt from itertools import count from typing import Any, Deque from homeassistant.components.trace.const import DATA_TRACE, STORED_TRACES from homeassistant.components.trace.utils import Limit...
131
240
802
4
126
robertdelpeut/core
homeassistant/components/automation/trace.py
Python
AutomationTrace
AutomationTrace
19
125
19
19
8cc4c74141ef29463077e14d0961e2265ee5916d
bigcode/the-stack
train
1f07fc5c6ad00eeffc92e35d
train
function
@contextmanager def trace_automation(hass, unique_id, config, context): """Trace action execution of automation with automation_id.""" automation_trace = AutomationTrace(unique_id, config, context) trace_id_set((unique_id, automation_trace.run_id)) if unique_id: automation_traces = hass.data[DA...
@contextmanager def trace_automation(hass, unique_id, config, context):
"""Trace action execution of automation with automation_id.""" automation_trace = AutomationTrace(unique_id, config, context) trace_id_set((unique_id, automation_trace.run_id)) if unique_id: automation_traces = hass.data[DATA_TRACE] if unique_id not in automation_traces: aut...
not None: result["error"] = str(self._error) if last_action is not None: result["last_action"] = last_action result["last_condition"] = last_condition return result @contextmanager def trace_automation(hass, unique_id, config, context):
64
64
172
18
45
robertdelpeut/core
homeassistant/components/automation/trace.py
Python
trace_automation
trace_automation
128
148
128
129
b248374efe1f2f59765bc9f73ff348ad56a04a60
bigcode/the-stack
train
1e95768dc288d9f3b7c45c4b
train
class
class ProjConan(ConanFile): name = "proj" description = "Cartographic Projections and Coordinate Transformations Library." license = "MIT" topics = ("conan", "dsp", "proj", "proj4", "projections", "gis", "geospatial") homepage = "https://proj.org" url = "https://github.com/conan-io/conan-center-...
class ProjConan(ConanFile):
name = "proj" description = "Cartographic Projections and Coordinate Transformations Library." license = "MIT" topics = ("conan", "dsp", "proj", "proj4", "projections", "gis", "geospatial") homepage = "https://proj.org" url = "https://github.com/conan-io/conan-center-index" exports_sources =...
from conans import ConanFile, CMake, tools import os required_conan_version = ">=1.33.0" class ProjConan(ConanFile):
38
256
1,976
10
28
dvirtz/conan-center-index
recipes/proj/all/conanfile.py
Python
ProjConan
ProjConan
7
170
7
7
eaed19d851e4fb9f92dc276650fb74e67ccc2564
bigcode/the-stack
train
50146c360b325e8ece2ebd84
train
class
class Server(BaseHTTPServer.HTTPServer): def __init__(self, https_root_ca_cert_path): BaseHTTPServer.HTTPServer.__init__( self, ('localhost', 0), BaseHTTPServer.BaseHTTPRequestHandler) self.socket = ssl.wrap_socket( self.socket, certfile=https_root_ca_cert_path, server_side=True, do_h...
class Server(BaseHTTPServer.HTTPServer):
def __init__(self, https_root_ca_cert_path): BaseHTTPServer.HTTPServer.__init__( self, ('localhost', 0), BaseHTTPServer.BaseHTTPRequestHandler) self.socket = ssl.wrap_socket( self.socket, certfile=https_root_ca_cert_path, server_side=True, do_handshake_on_connect=False) def __enter_...
or implied. # See the License for the specific language governing permissions and # limitations under the License. """Test routines to generate dummy certificates.""" import BaseHTTPServer import os import shutil import ssl import tempfile import threading import unittest import certutils class Server(BaseHTTPServe...
64
64
150
8
55
ravitejavalluri/catapult
telemetry/third_party/web-page-replay/certutils_test.py
Python
Server
Server
28
50
28
29
8cfe8af560c53fd5fe639f021d343fb5da0edd38
bigcode/the-stack
train
ad469f784115e4246e0a5174
train
class
class CertutilsTest(unittest.TestCase): def _check_cert_file(self, cert_file_path, cert_str, key_str=None): cert_load = open(cert_file_path, 'r').read() if key_str: expected_cert = key_str + cert_str else: expected_cert = cert_str self.assertEqual(expected_cert, cert_load) def setUp(se...
class CertutilsTest(unittest.TestCase):
def _check_cert_file(self, cert_file_path, cert_str, key_str=None): cert_load = open(cert_file_path, 'r').read() if key_str: expected_cert = key_str + cert_str else: expected_cert = cert_str self.assertEqual(expected_cert, cert_load) def setUp(self): self._temp_dir = tempfile.mkdtem...
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. """Test routines to generate dummy certificates.""" import BaseHTTPServer import os import shutil import ssl import tempfile import threadin...
225
225
751
8
217
ravitejavalluri/catapult
telemetry/third_party/web-page-replay/certutils_test.py
Python
CertutilsTest
CertutilsTest
53
131
53
54
bc5813b0908c3e233241bfc214257d9c20e37495
bigcode/the-stack
train
d2963900fadb8c91163fbc20
train
function
@core.non_normalized(gpu_aampdist) def gpu_mpdist(T_A, T_B, m, percentage=0.05, k=None, device_id=0, normalize=True): """ Compute the z-normalized matrix profile distance (MPdist) measure between any two time series with one or more GPU devices The MPdist distance measure considers two time series to b...
@core.non_normalized(gpu_aampdist) def gpu_mpdist(T_A, T_B, m, percentage=0.05, k=None, device_id=0, normalize=True):
""" Compute the z-normalized matrix profile distance (MPdist) measure between any two time series with one or more GPU devices The MPdist distance measure considers two time series to be similar if they share many subsequences, regardless of the order of matching subsequences. MPdist concatenat...
# STUMPY # Copyright 2019 TD Ameritrade. Released under the terms of the 3-Clause BSD license. # STUMPY is a trademark of TD Ameritrade IP Company, Inc. All rights reserved. # import numpy as np # import math from . import core, gpu_stump from .mpdist import _mpdist from .gpu_aampdist import gpu_aampdist @core.non_no...
128
171
570
40
87
profintegra/stumpy
stumpy/gpu_mpdist.py
Python
gpu_mpdist
gpu_mpdist
13
70
13
14
b1373e935fe35b2f4cd93d07579ed88e68e81bdb
bigcode/the-stack
train
55a450f398fa1af2b7ee55be
train
class
@HEADS.register_module() class DETRHead(AnchorFreeHead): """Implements the DETR transformer head. See `paper: End-to-End Object Detection with Transformers <https://arxiv.org/pdf/2005.12872>`_ for details. Args: num_classes (int): Number of categories excluding the background. in_chann...
@HEADS.register_module() class DETRHead(AnchorFreeHead):
"""Implements the DETR transformer head. See `paper: End-to-End Object Detection with Transformers <https://arxiv.org/pdf/2005.12872>`_ for details. Args: num_classes (int): Number of categories excluding the background. in_channels (int): Number of channels in the input feature map. ...
# Copyright (c) OpenMMLab. All rights reserved. import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import Conv2d, Linear, build_activation_layer from mmcv.cnn.bricks.transformer import FFN, build_positional_encoding from mmcv.runner import force_fp32 from mmdet.core import (bbox_cxcywh_to...
159
256
8,605
15
143
josh0122/mmdetection
mmdet/models/dense_heads/detr_head.py
Python
DETRHead
DETRHead
17
844
17
18
89acebfd3d04185728383ae9adbef610c254fe83
bigcode/the-stack
train
87a5f5a0fcc34f14374e82f9
train
function
def train(model, epochs=10): model.train(True) loss_fn = nn.MSELoss() optimizer = optim.SGD(model.parameters(), lr=0.001) one_hot_indices = torch.LongTensor(batch_size) \ .random_(0, num_classes) \ .view(batch_size, 1) for epoch in range(epochs): for _ in range(num_batches)...
def train(model, epochs=10):
model.train(True) loss_fn = nn.MSELoss() optimizer = optim.SGD(model.parameters(), lr=0.001) one_hot_indices = torch.LongTensor(batch_size) \ .random_(0, num_classes) \ .view(batch_size, 1) for epoch in range(epochs): for _ in range(num_batches): # generate rand...
= 10 batch_size = 120 image_w = 128 image_h = 128 num_repeat = 20 cuda_available = torch.cuda.is_available() print("===================================================") print("Cuda Available : {}".format(cuda_available)) print("===================================================") def train(model, epochs=10):
64
64
194
8
56
vibhatha/torchbenchmark
torchbenchmark/copy_benchmark/alexnet_copy.py
Python
train
train
22
48
22
22
c7912c040a342a5e0a56329faab7be6e9540588d
bigcode/the-stack
train
32587873ea5a36da0829d673
train
function
def cuda_test(): model_cpu_init_time = [] model_cpu_gpu_copy_time = [] model_train_time = [] for i in range(10): t1 = time.time() model = AlexNet(num_classes=num_classes) t2 = time.time() model_cpu_init_time.append(t2 - t1) torch.cuda.synchronize('cuda:0') ...
def cuda_test():
model_cpu_init_time = [] model_cpu_gpu_copy_time = [] model_train_time = [] for i in range(10): t1 = time.time() model = AlexNet(num_classes=num_classes) t2 = time.time() model_cpu_init_time.append(t2 - t1) torch.cuda.synchronize('cuda:0') t3 = time.time...
, image_w, image_h) if cuda_available: inputs = inputs.to('cuda:0') labels = torch.zeros(batch_size, num_classes) \ .scatter_(1, one_hot_indices, 1) # run forward pass optimizer.zero_grad() outputs = model(inputs) ...
102
103
345
4
98
vibhatha/torchbenchmark
torchbenchmark/copy_benchmark/alexnet_copy.py
Python
cuda_test
cuda_test
58
96
58
58
15f2d685e510a611a4121296138b4718188575e2
bigcode/the-stack
train
9793b612ddc3fb9d6c653538
train
function
def load_args(parser): """Load argparse commands.""" return parser.parse_args()
def load_args(parser):
"""Load argparse commands.""" return parser.parse_args()
tried sequentially and the first valid structure is returned, and in exhaustive mode, a total number of n_conf structures will be created and the lowest energy conformation is returned.") parser.add_argument("-l", "--logfile", default="log.csv", help="File name of the log file") def load_args(parser):
64
64
17
5
59
THGLab/MCSCE
src/mcsce/cli.py
Python
load_args
load_args
23
25
23
23
9bd42fd8177a33b2eb7ab5774859fbe4d90ce177
bigcode/the-stack
train
0aeda285eba4d1e9c957b5b5
train
function
def maincli(): """Independent client entry point.""" cli(parser, main)
def maincli():
"""Independent client entry point.""" cli(parser, main)
file", default="log.csv", help="File name of the log file") def load_args(parser): """Load argparse commands.""" return parser.parse_args() def cli(parser, main): """Command-line interface entry-point.""" cmd = load_args(parser) main(**vars(cmd)) def maincli():
64
64
17
4
60
THGLab/MCSCE
src/mcsce/cli.py
Python
maincli
maincli
34
36
34
34
23d61283d089ec11453db6dc2fdeb4f90f776fbf
bigcode/the-stack
train
b8057c066746460aee676499
train
function
def main(input_structure, n_conf, n_worker, output_dir, logfile, mode, batch_size=4, same_structure=False): # antipattern to save time from mcsce.core.side_chain_builder import initialize_func_calc, create_side_chain_ensemble, create_side_chain from mcsce.core.build_definitions import forcefields from ...
def main(input_structure, n_conf, n_worker, output_dir, logfile, mode, batch_size=4, same_structure=False): # antipattern to save time
from mcsce.core.side_chain_builder import initialize_func_calc, create_side_chain_ensemble, create_side_chain from mcsce.core.build_definitions import forcefields from mcsce.libs.libenergy import prepare_energy_function from mcsce.libs.libstructure import Structure from functools import partial ...
("-l", "--logfile", default="log.csv", help="File name of the log file") def load_args(parser): """Load argparse commands.""" return parser.parse_args() def cli(parser, main): """Command-line interface entry-point.""" cmd = load_args(parser) main(**vars(cmd)) def maincli(): """Independent ...
256
256
1,073
35
220
THGLab/MCSCE
src/mcsce/cli.py
Python
main
main
57
165
57
59
5a221ac61c715f78a6d19cf2e0341e7f5887fec7
bigcode/the-stack
train
8f08fe0e7298792f7e983672
train
function
def cli(parser, main): """Command-line interface entry-point.""" cmd = load_args(parser) main(**vars(cmd))
def cli(parser, main):
"""Command-line interface entry-point.""" cmd = load_args(parser) main(**vars(cmd))
number of n_conf structures will be created and the lowest energy conformation is returned.") parser.add_argument("-l", "--logfile", default="log.csv", help="File name of the log file") def load_args(parser): """Load argparse commands.""" return parser.parse_args() def cli(parser, main):
64
64
27
6
58
THGLab/MCSCE
src/mcsce/cli.py
Python
cli
cli
28
31
28
28
d42f4d0e49c7e6d252449f1ffba9d17f4103d9c8
bigcode/the-stack
train
c2b3eab81996eb91008e224a
train
function
def read_structure_and_check(file_name): """ Helper function for reading a structure from a given filename and returns the structure object Also checks whether there are missing atoms in the structure """ s = Structure(file_name) s.build() missing_backbone_atoms = s.check_backbone_atom_compl...
def read_structure_and_check(file_name):
""" Helper function for reading a structure from a given filename and returns the structure object Also checks whether there are missing atoms in the structure """ s = Structure(file_name) s.build() missing_backbone_atoms = s.check_backbone_atom_completeness() if len(missing_backbone_ato...
"""Load argparse commands.""" return parser.parse_args() def cli(parser, main): """Command-line interface entry-point.""" cmd = load_args(parser) main(**vars(cmd)) def maincli(): """Independent client entry point.""" cli(parser, main) def read_structure_and_check(file_name):
64
64
139
8
56
THGLab/MCSCE
src/mcsce/cli.py
Python
read_structure_and_check
read_structure_and_check
38
51
38
38
9f9dd78282f67141bc7347fdeab78bf31d025394
bigcode/the-stack
train
c80677a397a5a8fef2273ac6
train
class
class NonStringEnumsClientConfiguration(Configuration): """Configuration for NonStringEnumsClient. Note that all parameters used to create this instance are saved as instance attributes. """ def __init__(self, **kwargs: Any) -> None: super(NonStringEnumsClientConfiguration, self).__init__(...
class NonStringEnumsClientConfiguration(Configuration):
"""Configuration for NonStringEnumsClient. Note that all parameters used to create this instance are saved as instance attributes. """ def __init__(self, **kwargs: Any) -> None: super(NonStringEnumsClientConfiguration, self).__init__(**kwargs) kwargs.setdefault("sdk_moniker", "non...
reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------...
86
86
288
8
77
msyyc/autorest.python
test/vanilla/version-tolerant/Expected/AcceptanceTests/NonStringEnumsVersionTolerant/nonstringenumsversiontolerant/_configuration.py
Python
NonStringEnumsClientConfiguration
NonStringEnumsClientConfiguration
17
42
17
17
4a02ea7426aa3f12e924059071a79aaf5c1c9404
bigcode/the-stack
train
c261faebc161832d5a78846e
train
class
class SongFilter(django_filters.rest_framework.FilterSet): name = django_filters.CharFilter(field_name='name', lookup_expr='icontains', label='歌曲名称 模糊查询', help_text='歌曲名称 模糊查询') desc = django_filters.CharFilter(field_name='desc', lookup_expr='icontains', label='歌曲描述 模糊查询', ...
class SongFilter(django_filters.rest_framework.FilterSet):
name = django_filters.CharFilter(field_name='name', lookup_expr='icontains', label='歌曲名称 模糊查询', help_text='歌曲名称 模糊查询') desc = django_filters.CharFilter(field_name='desc', lookup_expr='icontains', label='歌曲描述 模糊查询', help_text='歌曲描述 模糊查询')...
singer_id = django_filters.NumberFilter(field_name='singer__id', lookup_expr='exact', label='歌手id =', help_text='歌手id') class Meta: model = Audio fields = ('singer_id',) class SongFilter(django_filters.rest_framework.FilterSet):
64
64
105
11
53
chenyifaerfans/fafaer-apis
apps/music/filters.py
Python
SongFilter
SongFilter
40
49
40
40
e8faa761545767a70fbf8c572d6570fd588d6a97
bigcode/the-stack
train
d32984a3fdcb6406886698f1
train
class
class SingerFilter(django_filters.rest_framework.FilterSet): nickname = django_filters.CharFilter(field_name='nickname', lookup_expr='icontains', label='歌手名称 模糊查询', help_text='歌手名称 模糊查询') desc = django_filters.CharFilter(field_name='desc', lookup_expr='icontains', label='歌手...
class SingerFilter(django_filters.rest_framework.FilterSet):
nickname = django_filters.CharFilter(field_name='nickname', lookup_expr='icontains', label='歌手名称 模糊查询', help_text='歌手名称 模糊查询') desc = django_filters.CharFilter(field_name='desc', lookup_expr='icontains', label='歌手描述 模糊查询', help_text='歌手描...
# _*_ coding:utf-8 _*_ __author__ = 'WANGY' __date__ = '2018/8/9 12:43' import django_filters from .models import Singer, Album, Audio, Song class SingerFilter(django_filters.rest_framework.FilterSet):
62
64
109
11
50
chenyifaerfans/fafaer-apis
apps/music/filters.py
Python
SingerFilter
SingerFilter
10
19
10
10
68609c13b2b8bb91cdef069e76a3b29da9a30320
bigcode/the-stack
train
0f5ef9cc4cec62d1e9f6fb60
train
class
class AudioFilter(django_filters.rest_framework.FilterSet): singer_id = django_filters.NumberFilter(field_name='singer__id', lookup_expr='exact', label='歌手id =', help_text='歌手id') class Meta: model = Audio fields = ('singer_id',)
class AudioFilter(django_filters.rest_framework.FilterSet):
singer_id = django_filters.NumberFilter(field_name='singer__id', lookup_expr='exact', label='歌手id =', help_text='歌手id') class Meta: model = Audio fields = ('singer_id',)
singer_id = django_filters.NumberFilter(field_name='singer__id', lookup_expr='exact', label='歌手id =', help_text='歌手id') class Meta: model = Album fields = ('singer_id',) class AudioFilter(django_filters.rest_framework.FilterSet):
64
64
65
11
53
chenyifaerfans/fafaer-apis
apps/music/filters.py
Python
AudioFilter
AudioFilter
31
37
31
31
ed5703f9d0d98110f79d78763ae0cc9b5c88d2b6
bigcode/the-stack
train
5af1b7417a2a040e2baeb01a
train
class
class AlbumFilter(django_filters.rest_framework.FilterSet): singer_id = django_filters.NumberFilter(field_name='singer__id', lookup_expr='exact', label='歌手id =', help_text='歌手id') class Meta: model = Album fields = ('singer_id',)
class AlbumFilter(django_filters.rest_framework.FilterSet):
singer_id = django_filters.NumberFilter(field_name='singer__id', lookup_expr='exact', label='歌手id =', help_text='歌手id') class Meta: model = Album fields = ('singer_id',)
.CharFilter(field_name='desc', lookup_expr='icontains', label='歌手描述 模糊查询', help_text='歌手描述 模糊查询') class Meta: model = Singer fields = ('nickname', 'desc') class AlbumFilter(django_filters.rest_framework.FilterSet):
64
64
65
11
53
chenyifaerfans/fafaer-apis
apps/music/filters.py
Python
AlbumFilter
AlbumFilter
22
28
22
22
4b41d2ecfad614dd426fa683e52766d992452938
bigcode/the-stack
train
c6cc8e9f5947dc6c8f5ae6bc
train
class
class Migration(migrations.Migration): dependencies = [ ('applications', '0006_auto_20201029_0030'), ] operations = [ migrations.AlterModelOptions( name='application', options={'verbose_name': 'application', 'verbose_name_plural': 'applications'}, ), ]
class Migration(migrations.Migration):
dependencies = [ ('applications', '0006_auto_20201029_0030'), ] operations = [ migrations.AlterModelOptions( name='application', options={'verbose_name': 'application', 'verbose_name_plural': 'applications'}, ), ]
# Generated by Django 3.1.4 on 2021-01-04 23:33 from django.db import migrations class Migration(migrations.Migration):
36
64
65
7
28
omnivector-solutions/jobbergate-api
apps/applications/migrations/0007_auto_20210104_2333.py
Python
Migration
Migration
6
17
6
7
a27660f59715e290088c26ad3e853d40a2139f42
bigcode/the-stack
train
d75c8d1dddf12785c8d32418
train
function
def callback(data): global pub rospy.loginfo(rospy.get_caller_id() + 'Received sensor value: %s', data.data) if data.data > 100: pub.publish(0) else: pub.publish(9)
def callback(data):
global pub rospy.loginfo(rospy.get_caller_id() + 'Received sensor value: %s', data.data) if data.data > 100: pub.publish(0) else: pub.publish(9)
the specific language governing permissions and # limitations under the License. """ This is a simple example of a Python ROS node receiving sensor values and publishing motor commands (velocity) to drive a robot and stop it before colliding with an obstacle. """ import rospy from std_msgs.msg import Float64 def cal...
64
64
54
4
59
nishantkr18/webots
projects/languages/ros/controllers/ros_python/ros_controller.py
Python
callback
callback
26
32
26
26
763d07ee16acf28df215954d79a27c02d7ca186a
bigcode/the-stack
train
fa7f04d9e4ca667ccb6231ac
train
function
def launch_mascril(): call(["mascril", ""])
def launch_mascril():
call(["mascril", ""])
.clicked.connect(launch_mdb) launcher.setWindowTitle('P13pt') launcher.show() # Start the main loop. ret = app.exec_() sys.exit(ret) def launch_spectrumfitter(): call(["spectrumfitter", ""]) def launch_mascril():
64
64
16
7
57
green-mercury/P13pt
P13pt/launcher.py
Python
launch_mascril
launch_mascril
54
55
54
54
83b09d6df3797f28fac82f20e1cf45f43b278138
bigcode/the-stack
train
677f10ff5dd7cfc82693d938
train
function
def launch_graphulator(): call(["graphulator", ""])
def launch_graphulator():
call(["graphulator", ""])
13pt') launcher.show() # Start the main loop. ret = app.exec_() sys.exit(ret) def launch_spectrumfitter(): call(["spectrumfitter", ""]) def launch_mascril(): call(["mascril", ""]) def launch_graphulator():
64
64
13
5
59
green-mercury/P13pt
P13pt/launcher.py
Python
launch_graphulator
launch_graphulator
57
58
57
57
cf30cef6058106590789b6284423672012754416
bigcode/the-stack
train
7fb55fad7257bceeee700160
train
function
def launch_spectrumfitter(): call(["spectrumfitter", ""])
def launch_spectrumfitter():
call(["spectrumfitter", ""])
il) btn_graphulator.clicked.connect(launch_graphulator) btn_mdb.clicked.connect(launch_mdb) launcher.setWindowTitle('P13pt') launcher.show() # Start the main loop. ret = app.exec_() sys.exit(ret) def launch_spectrumfitter():
64
64
17
7
57
green-mercury/P13pt
P13pt/launcher.py
Python
launch_spectrumfitter
launch_spectrumfitter
51
52
51
51
39c17a23a4998630365e2241c7bcbae4fb4f7feb
bigcode/the-stack
train
329d993fd33ba6ecc7e24a58
train
function
def main(): # CD into directory where this script is saved d = os.path.dirname(__file__) if d != '': os.chdir(d) app = QApplication(sys.argv) app.setWindowIcon(QIcon('icons/P13pt.png')) launcher = QWidget() btn_spectrumfitter = QToolButton() btn_spectrumfitter.setIcon(QIcon('spectrumfi...
def main(): # CD into directory where this script is saved
d = os.path.dirname(__file__) if d != '': os.chdir(d) app = QApplication(sys.argv) app.setWindowIcon(QIcon('icons/P13pt.png')) launcher = QWidget() btn_spectrumfitter = QToolButton() btn_spectrumfitter.setIcon(QIcon('spectrumfitter/audacity.png')) btn_spectrumfitter.setText('SpectrumFi...
import os import sys from subprocess import call from PyQt5.QtCore import QSize, Qt from PyQt5.QtGui import QIcon from PyQt5.QtWidgets import (QApplication, QWidget, QToolButton, QHBoxLayout) def main(): # CD into directory where this script is saved
67
117
391
14
53
green-mercury/P13pt
P13pt/launcher.py
Python
main
main
8
49
8
9
a9fa9d88e8fd341b44eaccd183ac1a48e62d35d9
bigcode/the-stack
train
bc84195f7a4f626c7065cd4b
train
function
def launch_mdb(): call(["mdb", ""])
def launch_mdb():
call(["mdb", ""])
. ret = app.exec_() sys.exit(ret) def launch_spectrumfitter(): call(["spectrumfitter", ""]) def launch_mascril(): call(["mascril", ""]) def launch_graphulator(): call(["graphulator", ""]) def launch_mdb():
64
64
12
5
59
green-mercury/P13pt
P13pt/launcher.py
Python
launch_mdb
launch_mdb
60
61
60
60
ca66d6b81722c8fe09471509f586258f5713fdde
bigcode/the-stack
train
33f9e51aacbabdd0ba9d6b44
train
class
class GRPCCOMMServicer(grpc_comm_manager_pb2_grpc.gRPCCommManagerServicer): def __init__(self, host, port, client_num, client_id): # host is the ip address of server self.host = host self.port = port self.client_num = client_num self.client_id = client_id if self.cli...
class GRPCCOMMServicer(grpc_comm_manager_pb2_grpc.gRPCCommManagerServicer):
def __init__(self, host, port, client_num, client_id): # host is the ip address of server self.host = host self.port = port self.client_num = client_num self.client_id = client_id if self.client_id == 0: self.node_type = "server" else: ...
import grpc_comm_manager_pb2, grpc_comm_manager_pb2_grpc import queue import threading import logging from ...communication.utils import log_communication_tock from time import time lock = threading.Lock() class GRPCCOMMServicer(grpc_comm_manager_pb2_grpc.gRPCCommManagerServicer):
68
68
228
23
45
ray-ruisun/FedML
python/fedml/core/distributed/communication/grpc/grpc_server.py
Python
GRPCCOMMServicer
GRPCCOMMServicer
11
42
11
11
de0d6081517d74843b6c146c6afc131ee5f06ef6
bigcode/the-stack
train
89981848593acd4a3fd77760
train
class
class Rule(resource2.Resource): resource_key = 'rule' resources_key = 'rules' base_path = '/lbaas/l7policies/%(policy_id)s/rules' service = network_service.NetworkService() _query_mapping = resource2.QueryParameters("id", "tenant_id", ...
class Rule(resource2.Resource):
resource_key = 'rule' resources_key = 'rules' base_path = '/lbaas/l7policies/%(policy_id)s/rules' service = network_service.NetworkService() _query_mapping = resource2.QueryParameters("id", "tenant_id", "a...
0 (the "License"); you may not use # this file except in compliance with the License. You may obtain a copy of the # License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software distributed # under the License is distributed on an "AS IS" BASIS...
135
135
452
6
128
wangrui1121/huaweicloud-sdk-python
openstack/network/v2/rule.py
Python
Rule
Rule
19
66
19
19
ac043c780dca01e084697310c54448ffdce14d7d
bigcode/the-stack
train
bc55ecc0ba03cda7f10c959b
train
class
class SEQUENCER_PT_adjust_sound(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = No...
class SEQUENCER_PT_adjust_sound(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ...
''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' pass ...
152
152
508
25
126
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_adjust_sound
SEQUENCER_PT_adjust_sound
6,339
6,525
6,339
6,340
3e708fc62f5ccec4543039fed7728b62470cb8eb
bigcode/the-stack
train
932fff90efe4f0ac6fdf29de
train
class
class SEQUENCER_PT_strip(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ...
class SEQUENCER_PT_strip(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass ...
): ''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' ...
154
154
516
24
129
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_strip
SEQUENCER_PT_strip
8,821
9,010
8,821
8,822
60a4f0b84dc561f7cfb7f0ee373cb56e6c191b28
bigcode/the-stack
train
e6dce6564c2b236f4bf7dd17
train
class
class SEQUENCER_MT_select_linked(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rn...
class SEQUENCER_MT_select_linked(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
155
155
517
20
134
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_select_linked
SEQUENCER_MT_select_linked
3,148
3,331
3,148
3,148
d9284bc60f6bcff8943ef88676bcc780b4bed83a
bigcode/the-stack
train
4c4263ef2ba6807ba58b80a4
train
class
class SEQUENCER_MT_strip_input(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_...
class SEQUENCER_MT_strip_input(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
515
19
134
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_strip_input
SEQUENCER_MT_strip_input
3,892
4,075
3,892
3,892
bf7bc1f43183869bb2c4956f0a168a972e04bbc8
bigcode/the-stack
train
f7505a94ae08043fb0118b57
train
class
class SEQUENCER_MT_strip_effect(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna...
class SEQUENCER_MT_strip_effect(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
516
19
134
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_strip_effect
SEQUENCER_MT_strip_effect
3,520
3,703
3,520
3,520
4b60054f9e6c54bfe46f0e208431b4c75e7fa065
bigcode/the-stack
train
64f528df1bfb3fa3c4dbdc8a
train
class
class SEQUENCER_PT_scene(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' '''...
class SEQUENCER_PT_scene(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ...
''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' pas...
152
152
507
24
127
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_scene
SEQUENCER_PT_scene
8,440
8,626
8,440
8,441
712df0d40512b0fe725ef53f30a269588a262b06
bigcode/the-stack
train
0b6f152e9dd80d1a6e3c9be2
train
function
def act_strip(context): ''' ''' pass
def act_strip(context):
''' ''' pass
def property_unset(self): ''' ''' pass def remove(self, draw_func): ''' ''' pass def type_recast(self): ''' ''' pass def values(self): ''' ''' pass def act_strip(context):
64
64
13
5
58
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
act_strip
act_strip
10,988
10,993
10,988
10,988
d0af59110830e4d00592ed50dcc5644eac317660
bigcode/the-stack
train
1ce588c299861503e2d7a87d
train
class
class SEQUENCER_MT_navigation(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_g...
class SEQUENCER_MT_navigation(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
, display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
515
18
135
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_navigation
SEQUENCER_MT_navigation
1,846
2,029
1,846
1,846
84953bed19b4b1fe1835aa063d2f2f541d5d804b
bigcode/the-stack
train
be5e5c4d7ba53d1828a1e325
train
class
class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = No...
class SEQUENCER_PT_preview(SequencerButtonsPanel_Output, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass ...
''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' ...
154
154
515
25
128
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_preview
SEQUENCER_PT_preview
10,208
10,397
10,208
10,209
13036521d4260ebd7ceae4a86bdb17da537f8ca4
bigcode/the-stack
train
34385b4f18d4e842b15af853
train
class
class SEQUENCER_PT_annotation_onion( SequencerButtonsPanel_Output, bl_ui.properties_grease_pencil_common.AnnotationOnionSkin, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ...
class SEQUENCER_PT_annotation_onion( SequencerButtonsPanel_Output, bl_ui.properties_grease_pencil_common.AnnotationOnionSkin, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass ...
def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' pass def property_unset(self): ...
164
164
549
43
120
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_annotation_onion
SEQUENCER_PT_annotation_onion
9,810
10,007
9,810
9,813
4d7beb1f5d880d5cd93a9c698ab7442ce4366e5f
bigcode/the-stack
train
a8ac839549af91a886b704b1
train
class
class SEQUENCER_PT_source(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''...
class SEQUENCER_PT_source(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass ...
): ''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' ...
154
154
516
24
129
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_source
SEQUENCER_PT_source
8,629
8,818
8,629
8,630
f2d9f28ae1dabbcef2658a30219a23735fdbb8e0
bigcode/the-stack
train
722cf38521f0b883444b3240
train
class
class SEQUENCER_PT_adjust_video(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type =...
class SEQUENCER_PT_adjust_video(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass ...
): ''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' ...
155
155
517
25
129
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_adjust_video
SEQUENCER_PT_adjust_video
6,720
6,909
6,720
6,721
8ce1bba06c171dd0d0444cbdb8de117f2e2dd396
bigcode/the-stack
train
f0e0dcfae353255fc32a262d
train
class
class SEQUENCER_MT_change(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_s...
class SEQUENCER_MT_change(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
, display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
514
18
135
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_change
SEQUENCER_MT_change
1,099
1,282
1,099
1,099
cda09d6bb03f419c236c2faa37bc2f3f1f9cdca7
bigcode/the-stack
train
2b8551ad070207ea259e13a7
train
class
class SEQUENCER_PT_view_safe_areas(SequencerButtonsPanel_Output, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl...
class SEQUENCER_PT_view_safe_areas(SequencerButtonsPanel_Output, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass ...
olve(self): ''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ...
160
160
534
28
131
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_view_safe_areas
SEQUENCER_PT_view_safe_areas
10,589
10,784
10,589
10,590
8742c896465d35cb50a44b051f146969d82eba8f
bigcode/the-stack
train
7afa4d898c235138d4f2e188
train
class
class SEQUENCER_PT_overlay(bpy_types.Panel, bpy_types._GenericUI): bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' bl_ui_units_x = None ''' ''' id_data = None ''' ''' def append(self, draw_func): '...
class SEQUENCER_PT_overlay(bpy_types.Panel, bpy_types._GenericUI):
bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' bl_ui_units_x = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''...
pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' pass def property_unset(s...
141
141
471
18
122
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_overlay
SEQUENCER_PT_overlay
5,186
5,359
5,186
5,186
426f649a3f3aab93ddb9dad05a7289eacc66d11a
bigcode/the-stack
train
220fd3febf31d4325eda9d4d
train
class
class SEQUENCER_PT_adjust_crop(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = N...
class SEQUENCER_PT_adjust_crop(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass ...
): ''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' ...
155
155
517
25
129
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_adjust_crop
SEQUENCER_PT_adjust_crop
6,147
6,336
6,147
6,148
2054872ab33032a43a9255fd1f4c30bd91dd9632
bigcode/the-stack
train
daf16de16c72111a7e161714
train
class
class SEQUENCER_MT_proxy(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_su...
class SEQUENCER_MT_proxy(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
, display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
514
18
135
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_proxy
SEQUENCER_MT_proxy
2,218
2,401
2,218
2,218
4760310198cfb52922e7d9c237f4f3cb67dcd69d
bigcode/the-stack
train
13704a4f8089644d822160e3
train
class
class SEQUENCER_MT_view_cache(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_g...
class SEQUENCER_MT_view_cache(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
515
19
134
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_view_cache
SEQUENCER_MT_view_cache
4,822
5,005
4,822
4,822
b38c2f282b724880d1ddfad8eda96f105b569342
bigcode/the-stack
train
0a27dbf1c2e28d84d2674743
train
class
class SEQUENCER_PT_sequencer_overlay(bpy_types.Panel, bpy_types._GenericUI): bl_label = None ''' ''' bl_parent_id = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ...
class SEQUENCER_PT_sequencer_overlay(bpy_types.Panel, bpy_types._GenericUI):
bl_label = None ''' ''' bl_parent_id = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): '''...
''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' pass def pro...
146
146
487
21
124
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_sequencer_overlay
SEQUENCER_PT_sequencer_overlay
5,544
5,723
5,544
5,544
35ca65bf7aefe63cc7a9623d1effde5790145ab1
bigcode/the-stack
train
f957f303691f6b83d556e54b
train
class
class SEQUENCER_MT_view(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_sub...
class SEQUENCER_MT_view(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
, display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
514
18
135
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_view
SEQUENCER_MT_view
4,636
4,819
4,636
4,636
b5342db307092cff02907eea8639bf4e8c478d63
bigcode/the-stack
train
80cb28d528017e7265b7ebbe
train
class
class SEQUENCER_MT_select_handle(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rn...
class SEQUENCER_MT_select_handle(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
516
19
134
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_select_handle
SEQUENCER_MT_select_handle
2,962
3,145
2,962
2,962
93cb8afa42900c002260a2c3ccc775f0eaa6e05a
bigcode/the-stack
train
02b2bb97a66e641b6eadad62
train
class
class SEQUENCER_PT_strip_proxy(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None...
class SEQUENCER_PT_strip_proxy(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ...
olve(self): ''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ...
157
157
524
25
131
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_strip_proxy
SEQUENCER_PT_strip_proxy
9,211
9,403
9,211
9,212
f19483d6b3251499828092183e299a942cd1bde0
bigcode/the-stack
train
81d32a2f27fa0d70b7ef43f6
train
class
class SEQUENCER_MT_preview_zoom(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna...
class SEQUENCER_MT_preview_zoom(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
516
19
134
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_preview_zoom
SEQUENCER_MT_preview_zoom
2,032
2,215
2,032
2,032
0c71ff3d10d29d81b76ab5a5488a098a10caff5b
bigcode/the-stack
train
df13b00252917bcc8fcc4cfe
train
class
class SEQUENCER_PT_adjust_comp(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None...
class SEQUENCER_PT_adjust_comp(SequencerButtonsPanel, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ...
''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ''' pass ...
152
152
508
25
126
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_adjust_comp
SEQUENCER_PT_adjust_comp
5,958
6,144
5,958
5,959
20799761836a2f18195091689e85ab8a70f2c958
bigcode/the-stack
train
4840b3680b8d4f5d4d9cb844
train
class
class SEQUENCER_PT_view_safe_areas_center_cut( SequencerButtonsPanel_Output, bpy_types.Panel, bpy_types._GenericUI): bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_parent_id = None ''' ''' bl_region_type = None ''' ''' bl_rna = No...
class SEQUENCER_PT_view_safe_areas_center_cut( SequencerButtonsPanel_Output, bpy_types.Panel, bpy_types._GenericUI):
bl_category = None ''' ''' bl_label = None ''' ''' bl_options = None ''' ''' bl_parent_id = None ''' ''' bl_region_type = None ''' ''' bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ...
_resolve(self): ''' ''' pass def poll(self, context): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ''' ...
163
163
546
30
132
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_PT_view_safe_areas_center_cut
SEQUENCER_PT_view_safe_areas_center_cut
10,787
10,985
10,787
10,788
45f433f0f81eb45d3a2ac1f7e905dbca01f0a96f
bigcode/the-stack
train
55a4f43f124ff08b37377611
train
class
class SEQUENCER_MT_strip(bpy_types.Menu, bpy_types._GenericUI): bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_su...
class SEQUENCER_MT_strip(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None ''' ''' bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass def as_pointer(self): ''' ''' pass def bl_rna_get_subclass(self): ''' ''' pass def bl...
, display_name, add_operator): ''' ''' pass def path_resolve(self): ''' ''' pass def pop(self): ''' ''' pass def prepend(self, draw_func): ''' ''' pass def property_overridable_library_set(self): ...
154
154
514
18
135
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
SEQUENCER_MT_strip
SEQUENCER_MT_strip
3,334
3,517
3,334
3,334
5bb2d96e2c3b157a80726d5b8b0519fb05315805
bigcode/the-stack
train
41c3df4afea274d02087303b
train
function
def selected_sequences_len(context): ''' ''' pass
def selected_sequences_len(context):
''' ''' pass
def type_recast(self): ''' ''' pass def values(self): ''' ''' pass def act_strip(context): ''' ''' pass def draw_color_balance(layout, color_balance): ''' ''' pass def selected_sequences_len(context):
64
64
14
6
57
Argmaster/PyR3
typings/bl_ui/space_sequencer.py
Python
selected_sequences_len
selected_sequences_len
11,004
11,009
11,004
11,004
c7fb8cb6ced8c9757ab82cc1b00a31ed533ac5f9
bigcode/the-stack
train