function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def _get_state_finished_LO(self): self._state.setdefault("is_finished_LO", False) return self._state["is_finished_LO"]
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def _get_state_finished_pickup_LO(self): self._state.setdefault("is_finished_pickup_LO", False) return self._state["is_finished_pickup_LO"]
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def guess_density(self, run_type="rks", force=False): if (self.is_finished_guess_density == True) and (force == False): logger.info("guess_density has been calced.") return self.cd_work_dir("guess_density") guess_density_matrix_path = "guess.density.{}.mat".format(run_t...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def _create_occupation_file(self, run_type="rks"): self.cd_work_dir("create occ") self._setup_pdf() occ_level = -1 electrons_per_orb = 0.0 run_type = run_type.upper() if run_type == "RKS": occ_level = int((self.pdfparam.num_of_electrons / 2.0)) e...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def _setup_pdf(self): logger.info("{header} setup ProteinDF condition".format(header=self.header)) for frg_name, frg in self.fragments(): frg.set_basisset(self.pdfparam) self.pdfparam.molecule = self.frame_molecule # num_of_electrons # calc from the molecule data ...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def calc_preSCF(self, dry_run=False): """ """ if self.is_finished_prescf: logger.info("preSCF has been calced.") return self.cd_work_dir("calc preSCF") self.check_bump_of_atoms() self._setup_pdf() self.pdfparam.step_control = "integral" s...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def calc_sp(self, dry_run=False): """ calculate single point energy """ if self.is_finished_scf: logger.info("SP has been calced.") self._grouping_fragments() self._switch_fragments() return if self.is_finished_prescf != True: ...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def calc_force(self, dry_run=False): """ calculate force (energy gradient) absolute: force -> gradient """ if self.is_finished_force: logger.info("force has been calced.") return if self.is_finished_scf != True: self.calc_sp(dry_run) ...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def summary(self, dry_run=False, format_str=None, filepath=None): """ Format: {NUM_OF_ATOMS}: number of atoms {NUM_OF_AO}: number of AOs {NUM_OF_MO}: number of MOs {METHOD}: method {IS_CONVERGED}: Whether the SCF is converged or not...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def pop(self, dry_run=False, iteration=-1): """ """ if self.is_finished_scf != True: self.calc_sp(dry_run) if iteration == -1: iteration = self.pdfparam.iterations self._calc_pop(iteration=iteration) pop_vtr = self.get_pop(iteration) self.save()...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def get_pop(self, iteration=-1): """ """ if iteration == -1: iteration = self.pdfparam.iterations self.cd_work_dir("get pop: iteration={}".format(iteration)) run_type = "rks" pop_path = self.pdfparam.get_pop_mulliken_path(run_type, iteration=iteration) pop_vt...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def pickup_density_matrix(self, runtype="rks"): """ 密度行列を各フラグメントに割り当てる """ if self.is_finished_pickup_density_matrix: logger.info( "{header} pickup density matrix has done.".format(header=self.header) ) return self.cd_work_dir(...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def calc_lo(self, run_type, force=False, dry_run=False): if (self.is_finished_LO == True) and (force == False): logger.info("LO has done.") return if self.is_finished_scf != True: self.calc_sp(dry_run=dry_run) self.cd_work_dir("calc lo") # make atom...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def pickup_QCLO_matrix(self, run_type="rks", force=False): if (self.is_finished_pickup_LO == True) and (force == False): logger.info("pickup LO has been finished.") return self.calc_lo(run_type, force) self.cd_work_dir("pickup lo") # post-SCF self._grou...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def _define_lo_fragment(self, mo, num_of_AOs, AO_frg_tbl, CSC): judge = {} total = 0.0 for ao in range(num_of_AOs): frg_name = AO_frg_tbl[ao] v = math.fabs(CSC.get(ao, mo)) total += v judge.setdefault(frg_name, 0.0) judge[frg_name] += v...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def fragments(self): """ フラグメントの名前とオブジェクトを返すイテレータ """ for k in self._fragments.keys(): yield (k, self._fragments[k])
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def __getitem__(self, fragment_name): """ 出力用[]演算子 """ fragment_name = bridge.StrUtils.to_unicode(fragment_name) return self._fragments.get(fragment_name, None)
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def _switch_fragments(self): """ fragmentsを入力用から出力用に切り替える 処理内容: - 各fragmentの親を自分(self)にする """ logger.info("{header} switch fragment".format(header=self.header)) output_fragments = OrderedDict() for frg_name, frg in self.fragments(): logger.inf...
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def output_xyz(self, file_path): xyz = bridge.Xyz(self.frame_molecule) xyz.save(file_path)
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def get_orbital_info(self): """ AOに対するQcOrbitalDataリストを返す """ orbinfo = [] for k, frg in self.fragments(): orbinfo.extend(frg.get_orbital_info()) return orbinfo
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def __eq__(self, rhs): if rhs == None: return False return self.name == rhs.name
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def __str__(self): answer = "" answer = "frame name={}\n".format(self.name) for key, fragment in self.fragments(): answer += ">> fragment: {}\n".format(key) answer += str(fragment) answer += "\n" return answer
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def _get_logger_header(self): """return header string for logger""" header = "{name}>".format(name=self.name) return header
ProteinDF/QCLObot
[ 4, 1, 4, 5, 1408759315 ]
def get_episodes_and_subs(language, series, season=None): if season: episodes = set(ep for ep in tolist(series.episodes) if ep.season == int(season)) else: episodes = set(tolist(series.episodes)) subs = [] for ep in episodes: subs.extend(tolist(ep.get('subtitles'))) return ...
wackou/smewt
[ 9, 2, 9, 2, 1337209900 ]
def _play(files, subs): # launch external player args = files # make sure subs is as long as args so as to not cut it when zipping them together subs = subs + [None] * (len(files) - len(subs)) if mplayer.variant != 'undefined': # if we have mplayer (or one of its variant) installed, use it ...
wackou/smewt
[ 9, 2, 9, 2, 1337209900 ]
def setUp(self): super(MainViewTestCase, self).setUp()
avi-software/bmicalc
[ 2, 2, 2, 3, 1437458986 ]
def generate_argparser(): parser = argparse.ArgumentParser( prog="quartet_sampling.py", description=__doc__, formatter_class=argparse.ArgumentDefaultsHelpFormatter, epilog=LICENSE) parser.add_argument("--tree", type=open, nargs=1, required=True, # Prev -t ...
FePhyFoFum/quartetsampling
[ 12, 2, 12, 1, 1496279559 ]
def __init__(self, logger, app, sqlalchemy_uri, zodb_root, verbose, dblog, default_group_provider, tz, **kwargs): self.sqlalchemy_uri = sqlalchemy_uri self.quiet = not verbose self.dblog = dblog self.zodb_root = zodb_root self.app = app self.tz = tz self.default_g...
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def log_prefix(self): return '%[cyan]{:<14}%[reset]'.format('[%[grey!]{}%[cyan]]'.format(self.step_name))
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def makac_info(self): return self.zodb_root['MaKaCInfo']['main']
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def global_ns(self): return Importer._global_ns
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def flushing_iterator(self, iterable, n=5000): """Iterates over `iterable` and flushes the ZODB cache every `n` items. :param iterable: an iterable object :param n: number of items to flush after """ conn = self.zodb_root._p_jar for i, item in enumerate(iterable, 1): ...
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def convert_principal_list(self, opt): """Convert ACL principals to new objects""" return set(filter(None, (self.convert_principal(principal) for principal in opt._PluginOption__value)))
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def protection_from_ac(self, target, ac, acl_attr='acl', ac_attr='allowed', allow_public=False): """Convert AccessController data to ProtectionMixin style. This needs to run inside the context of `patch_default_group_provider`. :param target: The new object that uses ProtectionMixin :p...
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def run(self): start = time.time() self.pre_migrate() try: self.migrate() finally: self.post_migrate() self.print_log('%[cyan]{:.06f} seconds%[reset]\a'.format((time.time() - start)))
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def migrate(self): raise NotImplementedError
indico/indico-migrate
[ 2, 4, 2, 1, 1490371885 ]
def setup_class(cls, **kwargs): """Setup class (suite) to be executed""" super(TestNavBase, cls).setup_class( config=settings(file_path="qacode/configs/"), skip_force=SKIP_NAVS)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def setup_login_to_inputs(self): """Do login before to exec some testcases""" # setup_login self.bot.navigation.get_url(self.page.get('url'), wait_for_load=10) txt_username = self.bot.navigation.find_element( self.txt_username.get("selector")) txt_password = self.bot....
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_navbase_instance(self): """Testcase: test_navbase_instance""" ASSERT.is_instance(self.bot.navigation, NavBase)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_gourl_withoutwaits(self): """Testcase: test_gourl_withoutwaits""" self.bot.navigation.get_url(self.page.get('url'))
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_gourl_withwaits(self): """Testcase: test_gourl_withwaits""" self.bot.navigation.get_url( self.page.get('url'), wait_for_load=1)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_getcurrenturl_ok(self): """Testcase: test_getcurrenturl_ok""" ASSERT.equals( self.bot.navigation.get_current_url(), self.page.get('url'))
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_isurl_true(self): """Testcase: test_isurl_true""" ASSERT.true( self.bot.navigation.is_url( self.bot.navigation.get_current_url()))
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_isurl_false(self): """Testcase: test_isurl_false""" ASSERT.false(self.bot.navigation.is_url(""))
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_isurl_raiseswhenurlreturnfalse(self): """Testcase: test_isurl_false""" with pytest.raises(CoreException): self.bot.navigation.is_url("", ignore_raises=False)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_reload_ok(self): """Testcase: test_reload_ok""" self.bot.navigation.reload()
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_forward_ok(self): """Testcase: test_reload_ok""" self.bot.navigation.forward()
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_getmaximizewindow_ok(self): """Testcase: test_getmaximizewindow_ok""" self.bot.navigation.get_maximize_window()
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_getcapabilities_ok(self): """Testcase: test_getcapabilities_ok""" caps = self.bot.navigation.get_capabilities() ASSERT.is_instance(caps, dict) ASSERT.is_instance(caps['chrome'], dict) ASSERT.equals(caps['browserName'], 'chrome')
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_getlog_ok(self): """Testcase: test_getlog_ok""" self.bot.navigation.get_url(self.page.get('url')) log_data = self.bot.navigation.get_log() ASSERT.not_none(log_data) self.log.debug("selenium logs, browser={}".format(log_data))
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_getlog_lognames(self, log_name): """Testcase: test_getlog_lognames""" self.bot.navigation.get_url(self.page.get('url')) if log_name is None: with pytest.raises(CoreException): self.bot.navigation.get_log(log_name=log_name) return True log_...
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelement_ok(self): """Testcase: test_findelement_ok""" ASSERT.is_instance( self.bot.navigation.find_element("body"), WebElement)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelement_notfound(self): """Testcase: test_findelement_notfound""" with pytest.raises(CoreException): self.bot.navigation.find_element("article")
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelement_notlocator(self): """Testcase: test_findelement_notlocator""" with pytest.raises(CoreException): self.bot.navigation.find_element( "body", locator=None)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelementwait_ok(self): """Testcase: test_findelementwait_ok""" ASSERT.is_instance( self.bot.navigation.find_element_wait("body"), WebElement)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelementswait_ok(self): """Testcase: test_findelementwait_ok""" elements = self.bot.navigation.find_elements_wait("body>*") ASSERT.is_instance(elements, list) for element in elements: ASSERT.is_instance(element, WebElement)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelements_ok(self): """Testcase: test_findelement_ok""" elements = self.bot.navigation.find_elements("body>*") ASSERT.is_instance(elements, list) for element in elements: ASSERT.is_instance(element, WebElement)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelements_notfound(self): """Testcase: test_findelements_notfound""" with pytest.raises(CoreException): self.bot.navigation.find_elements("article")
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelements_notlocator(self): """Testcase: test_findelements_notlocator""" with pytest.raises(CoreException): self.bot.navigation.find_elements( "body", locator=None)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_getwindowhandle_ok(self): """Testcase: test_getwindowhandle_ok""" ASSERT.not_none( self.bot.navigation.get_window_handle())
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_addcookie_ok(self): """Testcase: test_addcookie_ok""" cookie = {"name": "test_cookie", "value": "test_value"} self.bot.navigation.add_cookie(cookie)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_addcookie_notparams(self): """Testcase: test_addcookie_ok""" with pytest.raises(CoreException): self.bot.navigation.add_cookie(None)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_addcookie_badcookiekeys(self): """Testcase: test_addcookie_ok""" with pytest.raises(CoreException): self.bot.navigation.add_cookie({})
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_getcookies_ok(self): """Testcase: test_getcookies_ok""" ASSERT.is_instance( self.bot.navigation.get_cookies(), list)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_deletecookiebykey_ok(self): """Testcase: test_deleteallcookies_ok""" self.bot.navigation.delete_cookie_by_key("")
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_deleteallcookies_ok(self): """Testcase: test_deleteallcookies_ok""" self.bot.navigation.delete_cookies()
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_setwindowsize_ok(self): """Testcase: test_setwindowsize_ok""" self.bot.navigation.set_window_size( pos_x=1024, pos_y=768)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_gettitle_ok(self): """Testcase: test_gettitle_ok""" ASSERT.not_none( self.bot.navigation.get_title())
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_getscreenshotasbase64_ok(self): """Testcase: test_getscreenshotasbase64_ok""" ASSERT.not_none( self.bot.navigation.get_screenshot_as_base64())
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_jssettimeout_ok(self): """Testcase: test_jssettimeout_ok""" self.bot.navigation.js_set_timeout(1)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_eleclick_okbyselector(self): """Testcase: test_eleclick_ok""" self.bot.navigation.ele_click(selector="body")
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_eleclick_okbyelement(self): """Testcase: test_eleclick_ok""" self.bot.navigation.ele_click( element=self.bot.navigation.find_element("body"))
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_eleclick_notparams(self): """Testcase: test_eleclick_notparams""" with pytest.raises(CoreException): self.bot.navigation.ele_click()
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_elewrite_ok(self): """Testcase: test_elewrite_ok""" self.bot.navigation.ele_write( self.bot.navigation.find_element("body"), text="test")
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_elewrite_okwithouttext(self): """Testcase: test_elewrite_ok""" self.bot.navigation.ele_write( self.bot.navigation.find_element("body"), text=None)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_elewrite_notparams(self): """Testcase: test_elewrite_notparams""" with pytest.raises(CoreException): self.bot.navigation.ele_write(None)
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_setwebelement_ok(self): """Testcase: test_setwebelement_ok""" self.bot.navigation.set_web_element("test-element")
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelementchild_ok(self): """Testcase: test_findelementchild_ok""" self.setup_login_to_data() ele_parent = self.bot.navigation.find_element_wait( self.lst_ordered.get("selector")) ASSERT.is_instance(ele_parent, WebElement) ele_child = self.bot.navigation.fin...
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_findelementchildren_ok(self): """Testcase: test_findelementchildren_ok""" self.setup_login_to_data() ele_parent = self.bot.navigation.find_element_wait( self.lst_ordered.get("selector")) ASSERT.is_instance(ele_parent, WebElement) ele_children = self.bot.navig...
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_elewaitinvisible_ok(self): """Testcase: test_elewaitinvisible_ok""" self.setup_login_to_inputs() selector = self.btn_click_invisible.get("selector") ele = self.bot.navigation.find_element_wait(selector) ele.click() # end setup ele = self.bot.navigation.el...
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_elewaitvisible_ok(self): """Testcase: test_elewaitvisible_ok""" self.setup_login_to_inputs() find_ele = self.bot.navigation.find_element_wait ele = find_ele(self.btn_click_invisible.get("selector")) ele.click() ele_invisible = find_ele(self.btn_click_visible.get(...
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def test_elewaittext_ok(self): """Testcase: test_elewaitvalue_ok""" self.setup_login_to_inputs() selector = self.btn_click_invisible.get("selector") selector_title = self.title_buttons.get("selector") ele_text = self.bot.navigation.find_element_wait(selector) ele_text.cli...
netzulo/qacode
[ 5, 2, 5, 19, 1500363661 ]
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(1280, 1024) Dialog.setMinimumSize(QtCore.QSize(500, 500)) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/ide-icons/rc/silex-192x192.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIc...
OpenCobolIDE/OpenCobolIDE
[ 195, 89, 195, 46, 1376157601 ]
def test_address_in_network(self): self.assertTrue(_is_address_in_network('127.0.0.1', '127.0.0.0/8')) self.assertTrue(_is_address_in_network('127.1.0.1', '127.0.0.0/8')) self.assertFalse(_is_address_in_network('127.1.0.1', '127.0.0.0/24'))
JonnyWong16/plexpy
[ 4776, 573, 4776, 69, 1424622966 ]
def setUp(self): self.no_proxy = os.environ.get("no_proxy", None) if "no_proxy" in os.environ: del os.environ["no_proxy"]
JonnyWong16/plexpy
[ 4776, 573, 4776, 69, 1424622966 ]
def testMatchAll(self): self.assertTrue(_is_no_proxy_host("any.websocket.org", ['*'])) self.assertTrue(_is_no_proxy_host("192.168.0.1", ['*'])) self.assertTrue(_is_no_proxy_host("any.websocket.org", ['other.websocket.org', '*'])) os.environ['no_proxy'] = '*' self.assertTrue(_is_n...
JonnyWong16/plexpy
[ 4776, 573, 4776, 69, 1424622966 ]
def testIpAddressInRange(self): self.assertTrue(_is_no_proxy_host("127.0.0.1", ['127.0.0.0/8'])) self.assertTrue(_is_no_proxy_host("127.0.0.2", ['127.0.0.0/8'])) self.assertFalse(_is_no_proxy_host("127.1.0.1", ['127.0.0.0/24'])) os.environ['no_proxy'] = '127.0.0.0/8' self.assertT...
JonnyWong16/plexpy
[ 4776, 573, 4776, 69, 1424622966 ]
def testHostnameMatchDomain(self): self.assertTrue(_is_no_proxy_host("any.websocket.org", ['.websocket.org'])) self.assertTrue(_is_no_proxy_host("my.other.websocket.org", ['.websocket.org'])) self.assertTrue(_is_no_proxy_host("any.websocket.org", ['my.websocket.org', '.websocket.org'])) ...
JonnyWong16/plexpy
[ 4776, 573, 4776, 69, 1424622966 ]
def setUp(self): self.http_proxy = os.environ.get("http_proxy", None) self.https_proxy = os.environ.get("https_proxy", None) self.no_proxy = os.environ.get("no_proxy", None) if "http_proxy" in os.environ: del os.environ["http_proxy"] if "https_proxy" in os.environ: ...
JonnyWong16/plexpy
[ 4776, 573, 4776, 69, 1424622966 ]
def testProxyFromArgs(self): self.assertEqual(get_proxy_info("echo.websocket.org", False, proxy_host="localhost"), ("localhost", 0, None)) self.assertEqual(get_proxy_info("echo.websocket.org", False, proxy_host="localhost", proxy_port=3128), ("localhost", 3128, None)) se...
JonnyWong16/plexpy
[ 4776, 573, 4776, 69, 1424622966 ]
def __init__(self, sString): parser.label.__init__(self, sString)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self): parser.label_colon.__init__(self)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self, sString): parser.keyword.__init__(self, sString)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self, sString): parser.keyword.__init__(self, sString)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self, sString): parser.keyword.__init__(self, sString)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self, sString): parser.keyword.__init__(self, sString)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self, sString): parser.keyword.__init__(self, sString)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self, sString): parser.keyword.__init__(self, sString)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self, sString): parser.label.__init__(self, sString)
jeremiah-c-leary/vhdl-style-guide
[ 129, 31, 129, 57, 1499106283 ]
def __init__(self, *args, **kwargs): super(Lexer, self).__init__(*args, **kwargs) # Configuración self.setStylePreprocessor(True) self.setFoldComments(True) self.setFoldPreprocessor(True) self.setFoldCompact(False) self.load_highlighter()
centaurialpha/edis
[ 20, 4, 20, 1, 1397720139 ]