prompt
large_stringlengths
72
9.34k
completion
large_stringlengths
0
7.61k
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def <|fim_middle|>(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(sel...
setUp
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
reset_testable
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_ports_list
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_get_memory_size
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_initial_state
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_byte_updates_video_ram
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_byte_calls_char_generator_top_left
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_byte_calls_char_generator_bottom_right
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_byte_char_before_attribute
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_byte_attribute_before_char
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_byte_write_off_screen
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_read_byte
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_read_byte_off_screen
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_reset_on_high_resolution_enable
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_word_at_top_left
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_word_at_bottom_right
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_write_word_at_bottom_right_just_past
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_read_word
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_mem_read_word_just_past_the_end
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_horizontal_retrace_toggles
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_current_pixel_updates_on_status_read
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_current_pixel_wraps_right
<|file_name|>test_mda.py<|end_file_name|><|fim▁begin|>import unittest from pyxt.mda import * from pyxt.chargen import CharacterGeneratorMock class MDATests(unittest.TestCase): def setUp(self): self.cg = CharacterGeneratorMock(width = 9, height = 14) self.mda = MonochromeDisplayAdapter(self.cg) ...
test_current_pixel_wraps_bottom
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features:<|fim▁hole|>### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `res` represents...
### errors included
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
num = str(num) iscaps = False positive = True # Input if cur == res: return num if num == "0": return "0" assert cur in range(2, 65) and res in range(2, 65), "Base not defined." if num[0] == "-": positive = False num = num[1:] result = 0 unit = 1 if cur != 1...
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
return num
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
return "0"
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
positive = False num = num[1:]
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
for i in num[::-1]: value = ord(i) if value in range(48, 58): value -= 48 elif value in range(65, 92): value -= 55 elif value in range(97, 123): value -= 61 elif value == 64: value = 62 elif value == 95: value = 63 assert value ...
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
value -= 48
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
value -= 55
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
value -= 61
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
value = 62
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
value = 63
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
num = int(result or num) result = "" while num > 0: num, value = divmod(num, res) if value < 10: digit = value + 48 elif value < 36: digit = value + 55 elif value < 62: digit = value + 61 elif value == 62: digit = 64 elif va...
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
digit = value + 48
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
digit = value + 55
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
digit = value + 61
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
digit = 64
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
digit = 95
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
result = "-" + result
<|file_name|>scale_strict.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python3 ### rev: 5.0 ### author: <zhq> ### features: ### errors included ### up to 63 bases (2 to 64) ### caps recognition and same output format (deprecated) ### for the function parameters, `cur` represents the current (input) base, `re...
scale
<|file_name|>ly_proxy_test.py<|end_file_name|><|fim▁begin|># Author: Jason Lu import urllib.request from bs4 import BeautifulSoup import time req_header = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Accept':'text/html,application/xhtml+xml,ap...
import http.cookiejar # 使用http.cookiejar.CookieJar()创建CookieJar对象 cjar = http.cookiejar.CookieJar()
<|file_name|>ly_proxy_test.py<|end_file_name|><|fim▁begin|># Author: Jason Lu import urllib.request from bs4 import BeautifulSoup import time req_header = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Accept':'text/html,application/xhtml+xml,ap...
grasp_num +=1 proxyHandler = urllib.request.ProxyHandler({"http": r'http://%s:%s' % (ip, port)}) opener = urllib.request.build_opener(cookies, proxyHandler) opener.addheaders = [('User-Agent', 'Mozilla/5.0 (Windows NT 6.1; WOW...
<|file_name|>ly_proxy_test.py<|end_file_name|><|fim▁begin|># Author: Jason Lu import urllib.request from bs4 import BeautifulSoup import time req_header = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Accept':'text/html,application/xhtml+xml,ap...
") checked_num+=1 print(checked_num, grasp_num) else:
<|file_name|>ly_proxy_test.py<|end_file_name|><|fim▁begin|># Author: Jason Lu import urllib.request from bs4 import BeautifulSoup import time req_header = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.64 Safari/537.11', 'Accept':'text/html,application/xhtml+xml,ap...
:
<|file_name|>shared_dressed_rebel_brigadier_general_sullustan_male.py<|end_file_name|><|fim▁begin|>#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Creature() resu...
return result
<|file_name|>shared_dressed_rebel_brigadier_general_sullustan_male.py<|end_file_name|><|fim▁begin|>#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): <|fim_middle|> <|fim▁end|>
result = Creature() result.template = "object/mobile/shared_dressed_rebel_brigadier_general_sullustan_male.iff" result.attribute_template_id = 9 result.stfName("npc_name","sullustan_base_male") #### BEGIN MODIFICATIONS #### #### END MODIFICATIONS #### return result
<|file_name|>shared_dressed_rebel_brigadier_general_sullustan_male.py<|end_file_name|><|fim▁begin|>#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def <|fim_middle|>(kernel): result = Creature(...
create
<|file_name|>tail-latency.py<|end_file_name|><|fim▁begin|># Note that this is not a valid measurement of tail latency. This uses the execution times we measure because they're convenient, but this does not include queueing time inside BitFunnel nor does it include head-of-line blocking queue waiting time on the queue i...
<|file_name|>livebargraph.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 25 21:11:45 2017 @author: hubert """ import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): """ """ def __init__(self, band_names=['delta', 'theta', 'al...
<|file_name|>livebargraph.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 25 21:11:45 2017 @author: hubert """ import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): <|fim_middle|> if __name__ == '__main__': bar = LiveBarGraph...
""" """ def __init__(self, band_names=['delta', 'theta', 'alpha', 'beta'], ch_names=['TP9', 'AF7', 'AF8', 'TP10']): """ """ self.band_names = band_names self.ch_names = ch_names self.n_bars = self.band_names * self.ch_names self.x = ...
<|file_name|>livebargraph.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 25 21:11:45 2017 @author: hubert """ import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): """ """ def __init__(self, band_names=['delta', 'theta', 'al...
""" """ self.band_names = band_names self.ch_names = ch_names self.n_bars = self.band_names * self.ch_names self.x = self.fig, self.ax = plt.subplots() self.ax.set_ylim((0, 1)) y = np.zeros((self.n_bars,)) x = range(self.n_bars) ...
<|file_name|>livebargraph.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 25 21:11:45 2017 @author: hubert """ import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): """ """ def __init__(self, band_names=['delta', 'theta', 'al...
[rect.set_height(y) for rect, y in zip(self.rects, new_y)]
<|file_name|>livebargraph.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 25 21:11:45 2017 @author: hubert """ import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): """ """ def __init__(self, band_names=['delta', 'theta', 'al...
bar = LiveBarGraph() plt.show() while True: bar.update(np.random.random(10)) plt.pause(0.1)
<|file_name|>livebargraph.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 25 21:11:45 2017 @author: hubert """ import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): """ """ def <|fim_middle|>(self, band_names=['delta', 'theta...
__init__
<|file_name|>livebargraph.py<|end_file_name|><|fim▁begin|>#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Aug 25 21:11:45 2017 @author: hubert """ import numpy as np import matplotlib.pyplot as plt class LiveBarGraph(object): """ """ def __init__(self, band_names=['delta', 'theta', 'al...
update
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def increase(rank): pass def decrease(rank):<|fim▁hole|> @register_dispatch('metric', 'inc_qps') def inc_qps(): ...
return dispatch('user', mutation_types.DECREASE, rank)
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def increase(rank): <|fim_middle|> def decrease(rank): return dispatch('user', mutation_types.DECREASE, rank)...
pass
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def increase(rank): pass def decrease(rank): <|fim_middle|> @register_dispatch('metric', 'inc_qps') def inc...
return dispatch('user', mutation_types.DECREASE, rank)
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def increase(rank): pass def decrease(rank): return dispatch('user', mutation_types.DECREASE, rank) @registe...
pass
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def <|fim_middle|>(rank): pass def decrease(rank): return dispatch('user', mutation_types.DECREASE, rank) @r...
increase
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def increase(rank): pass def <|fim_middle|>(rank): return dispatch('user', mutation_types.DECREASE, rank) @r...
decrease
<|file_name|>actions.py<|end_file_name|><|fim▁begin|>from turbo.flux import Mutation, register, dispatch, register_dispatch import mutation_types @register_dispatch('user', mutation_types.INCREASE) def increase(rank): pass def decrease(rank): return dispatch('user', mutation_types.DECREASE, rank) @registe...
inc_qps
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
def __init__(self, parent=None): super(XViewWidgetPlugin, self).__init__(parent) self.initialized = False def initialize(self, core): if self.initialized: return self.initialized = True def isInitialized(self): retur...
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
super(XViewWidgetPlugin, self).__init__(parent) self.initialized = False
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
if self.initialized: return self.initialized = True
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
return self.initialized
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
return Base(parent)
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
return getattr(Base, '__designer_name__', Base.__name__)
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
return getattr(Base, '__designer_group__', 'ProjexUI')
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
default = projex.resources.find('img/logo_16.png') return QIcon(getattr(Base, '__designer_icon__', default))
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
docs = getattr(Base, '__doc__', '') if docs is None: docs = '' return getattr(Base, '__designer_tooltip__', docs)
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
return ''
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
return getattr(Base, '__designer_container__', False)
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
return 'projexui.widgets.xviewwidget'
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
opts = {} specs = [] for prop, info in getattr(Base, '__designer_propspecs__', {}).items(): xml = '<%spropertyspecification name="%s" type="%s"/>' xml %= (info[0], prop, info[1]) specs.append(xml) opts['addpagemethod'] = geta...
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
return
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
docs = ''
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
__init__
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
initialize
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
isInitialized
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
createWidget
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
name
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
group
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
icon
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
toolTip
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
whatsThis
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
isContainer
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
includeFile
<|file_name|>xviewwidgetplugin.py<|end_file_name|><|fim▁begin|>#!/usr/bin/python ''' Auto-generated ui widget plugin ''' from projexui.qt.QtDesigner import QPyDesignerCustomWidgetPlugin from projexui.qt.QtGui import QIcon import projex.resources from projexui.widgets.xviewwidget import XViewWidget as Base s...
domXml
<|file_name|>smartcontracts.py<|end_file_name|><|fim▁begin|>import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.clie...
assert pfs_address is None
<|file_name|>smartcontracts.py<|end_file_name|><|fim▁begin|>import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.clie...
token_address = deploy_contract_web3( contract_name=CONTRACT_HUMAN_STANDARD_TOKEN, deploy_client=deploy_client, contract_manager=contract_manager, constructor_arguments=(initial_amount, decimals, token_name, token_symbol), ) contract_abi = contract_manager.get_contract_abi(C...
<|file_name|>smartcontracts.py<|end_file_name|><|fim▁begin|>import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.clie...
""" Deploy `number_of_tokens` ERC20 token instances with `token_amount` minted and distributed among `blockchain_services`. Optionally the instances will be registered with the raiden registry. Args: token_amount (int): number of units that will be created per token number_of_tokens (in...
<|file_name|>smartcontracts.py<|end_file_name|><|fim▁begin|>import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.clie...
urls = ["http://foo", "http://boo", "http://coo"] c1_client = JSONRPCClient(web3, private_keys[0]) c1_service_proxy = ServiceRegistry( jsonrpc_client=c1_client, service_registry_address=service_registry_address, contract_manager=contract_manager, ) c2_client = JSONRPCClient(w...
<|file_name|>smartcontracts.py<|end_file_name|><|fim▁begin|>import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.clie...
contract_path = os.path.abspath( os.path.join(os.path.dirname(__file__), "..", "smart_contracts", name) ) contracts = compile_files_cwd([contract_path]) return contract_path, contracts
<|file_name|>smartcontracts.py<|end_file_name|><|fim▁begin|>import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.clie...
contract_path, contracts = get_test_contract(f"{name}.sol") contract_proxy, _ = deploy_client.deploy_solidity_contract( name, contracts, libraries=dict(), constructor_parameters=None, contract_path=contract_path ) return contract_proxy
<|file_name|>smartcontracts.py<|end_file_name|><|fim▁begin|>import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.clie...
""" Creates a list of block numbers of the given list/single event""" if isinstance(item, list): return [element["blockNumber"] for element in item] if isinstance(item, dict): block_number = item["blockNumber"] return [block_number] return list()
<|file_name|>smartcontracts.py<|end_file_name|><|fim▁begin|>import os from typing import List, Tuple from raiden.network.blockchain_service import BlockChainService from raiden.network.pathfinding import get_random_service from raiden.network.proxies.service_registry import ServiceRegistry from raiden.network.rpc.clie...
return [element["blockNumber"] for element in item]