rem
stringlengths
1
322k
add
stringlengths
0
2.05M
context
stringlengths
4
228k
meta
stringlengths
156
215
self._checkWritePermission(res, environ["HTTP_DEPTH"], environ)
parentRes = provider.getResourceInst(util.getUriParent(path), environ) if parentRes: self._checkWritePermission(parentRes, environ["HTTP_DEPTH"], environ) else: self._checkWritePermission(res, environ["HTTP_DEPTH"], environ)
def doDELETE(self, environ, start_response): """ @see: http://www.webdav.org/specs/rfc4918.html#METHOD_DELETE """ path = environ["PATH_INFO"] provider = self._davProvider res = provider.getResourceInst(path, environ)
6fcd0e4411764f3334770805a25ac575e92ad9b9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/6fcd0e4411764f3334770805a25ac575e92ad9b9/request_server.py
"propsmanager": None,
"propsmanager": True,
def run(self): withAuthentication = True self.rootpath = os.path.join(gettempdir(), "wsgidav-test") if not os.path.exists(self.rootpath): os.mkdir(self.rootpath) provider = FilesystemProvider(self.rootpath) config = DEFAULT_CONFIG.copy() config.update({ "provider_mapping": {"/": provider}, "user_mapping": {}, "host": ...
475a6594a2429e3cda24457304ad8826d7628bbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/475a6594a2429e3cda24457304ad8826d7628bbe/test_scripted.py
"verbose": 2,
"verbose": 3,
def run(self): withAuthentication = True self.rootpath = os.path.join(gettempdir(), "wsgidav-test") if not os.path.exists(self.rootpath): os.mkdir(self.rootpath) provider = FilesystemProvider(self.rootpath) config = DEFAULT_CONFIG.copy() config.update({ "provider_mapping": {"/": provider}, "user_mapping": {}, "host": ...
475a6594a2429e3cda24457304ad8826d7628bbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/475a6594a2429e3cda24457304ad8826d7628bbe/test_scripted.py
self.ext_server.serve_forever()
self.ext_server.serve_forever_stoppable()
def run(self): withAuthentication = True self.rootpath = os.path.join(gettempdir(), "wsgidav-test") if not os.path.exists(self.rootpath): os.mkdir(self.rootpath) provider = FilesystemProvider(self.rootpath) config = DEFAULT_CONFIG.copy() config.update({ "provider_mapping": {"/": provider}, "user_mapping": {}, "host": ...
475a6594a2429e3cda24457304ad8826d7628bbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/475a6594a2429e3cda24457304ad8826d7628bbe/test_scripted.py
self.ext_server.shutdown()
self.ext_server.stop_serve_forever()
def shutdown(self): if self.ext_server: print "shutting down" self.ext_server.shutdown() print "shut down" self.ext_server = None
475a6594a2429e3cda24457304ad8826d7628bbe /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/475a6594a2429e3cda24457304ad8826d7628bbe/test_scripted.py
assert hasattr(lockManager, "checkWritePermission"), "Must be compatible with wsgidav.lock_manager.LockManager"
assert not lockManager or hasattr(lockManager, "checkWritePermission"), "Must be compatible with wsgidav.lock_manager.LockManager"
def setLockManager(self, lockManager): assert hasattr(lockManager, "checkWritePermission"), "Must be compatible with wsgidav.lock_manager.LockManager"
81aff3fed020de9eb50b2254fb4174c392ff7ab2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/81aff3fed020de9eb50b2254fb4174c392ff7ab2/dav_provider.py
assert hasattr(propManager, "copyProperties"), "Must be compatible with wsgidav.property_manager.PropertyManager"
assert not propManager or hasattr(propManager, "copyProperties"), "Must be compatible with wsgidav.property_manager.PropertyManager"
def setPropManager(self, propManager): assert hasattr(propManager, "copyProperties"), "Must be compatible with wsgidav.property_manager.PropertyManager"
81aff3fed020de9eb50b2254fb4174c392ff7ab2 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/81aff3fed020de9eb50b2254fb4174c392ff7ab2/dav_provider.py
client.move("/test/put2.txt", "/test/put2_moved.txt",
client.move("/test/file2.txt", "/test/file2_moved.txt",
def testGetPut(self): """Read and write file contents.""" client = self.client
c413d0b87fd98873e7011629b08a1fa3e0009aaa /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8193/c413d0b87fd98873e7011629b08a1fa3e0009aaa/test_scripted.py
my_events = PlayaEvent.objects.filter(year=year, creator=user)[0] my_events = True if my_events else False
my_events = PlayaEvent.objects.filter(year=year, creator=user) my_events = True if len(my_events)>0 else False
def playa_events_home(request, year_year, template='brc/playa_events_home.html', queryset=None
7099e9ecc7deded9227fb2e761b4a0837796af3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5677/7099e9ecc7deded9227fb2e761b4a0837796af3e/views.py
my_events = True if len(my_events) else False
my_events = True if my_events else False
def playa_events_home(request, year_year, template='brc/playa_events_home.html', queryset=None
425f71739ed6c1470cedc3e3d0be6ca75b215ec1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5677/425f71739ed6c1470cedc3e3d0be6ca75b215ec1/views.py
extra_context = dict(next=next),
extra_context = dict(next=next, year=event.year),
def delete_event(request, year_year, playa_event_id, next=None,
16a17d6ece70c93d369e33a679d02b01e84181c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5677/16a17d6ece70c93d369e33a679d02b01e84181c1/views.py
extra_context = dict(next=next, msg="This is the only occurrence of this event. By deleting it, you will delete the entire event. Are you sure you want to do this??"),
extra_context = dict(next=next, year=event.year, msg="This is the only occurrence of this event. By deleting it, you will delete the entire event. Are you sure you want to do this??"),
def delete_occurrence(request, year_year, occurrence_id, next=None,
16a17d6ece70c93d369e33a679d02b01e84181c1 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5677/16a17d6ece70c93d369e33a679d02b01e84181c1/views.py
my_events = PlayaEvent.objects.filter(year=year, creator=user)[0] my_events = True if len(my_events) else False
if user: my_events = PlayaEvent.objects.filter(year=year, creator=user)[0] my_events = True if len(my_events) else False else: my_events = False
def playa_events_home(request, year_year, template='brc/playa_events_home.html', queryset=None
ea70a7b0edb2c42a886a1b7e2460d882f813be09 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5677/ea70a7b0edb2c42a886a1b7e2460d882f813be09/views.py
if user:
if user and type(user) != AnonymousUser:
def playa_events_home(request, year_year, template='brc/playa_events_home.html', queryset=None
076b944378da8630a3a845f68914a325893b1cfc /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5677/076b944378da8630a3a845f68914a325893b1cfc/views.py
data = {'year':year}
data = {'year':year, 'user':request.user}
def playa_events_home(request, year_year, template='brc/playa_events_home.html', queryset=None
735ba5a40df08f6b097409e4e466e20021111af9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5677/735ba5a40df08f6b097409e4e466e20021111af9/views.py
print "HERE", args, kwargs
def __init__(self, *args, **kwargs): print "HERE", args, kwargs super(PlayaEventForm, self).__init__(*args, **kwargs)
7c1c7bbdc4004fbfcf5a75a1c0b0cdd250174ca9 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5677/7c1c7bbdc4004fbfcf5a75a1c0b0cdd250174ca9/forms.py
self.profile_SaveButton.on_click += self.save_profile
self.profile_SaveButton.on_click += lambda _: self.save_profile()
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.profile_DeleteButton.on_click += self.delete_profile
self.profile_DeleteButton.on_click += lambda _: self.delete_profile()
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.player_name1.on_click += lambda _: self.keyboard.set_visible(True)
self.player_name1.on_click += lambda _: self.enable_keyboard(0)
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.player_name2.on_click += lambda _: self.keyboard.set_visible(True)
self.player_name2.on_click += lambda _: self.enable_keyboard(1)
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.player_name3.on_click += lambda _: self.keyboard.set_visible(True)
self.player_name3.on_click += lambda _: self.enable_keyboard(2)
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.player_name4.on_click += lambda _: self.keyboard.set_visible(True)
self.player_name4.on_click += lambda _: self.enable_keyboard(3)
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.player_name5.on_click += lambda _: self.keyboard.set_visible(True)
self.player_name5.on_click += lambda _: self.enable_keyboard(4)
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.player_name6.on_click += lambda _: self.keyboard.set_visible(True)
self.player_name6.on_click += lambda _: self.enable_keyboard(5)
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
def __init__ (self, parent = None): ui.VBox.__init__(self, parent)
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
def save_profile(self, random): if self.check_info():
def save_profile(self, name = 'Prove'): if self.check_info() and name <> 'Default':
def load_profile(self, name): index = 0
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
GlobalConf ().path ('profiles').adopt (self._profile, 'Prove') self._listprof.append('Prove')
GlobalConf ().path ('profiles').adopt (self._profile, name) self._listprof.append(name)
def save_profile(self, random): #Need to be modified in order to accept the name of the profile, also check first if the profile already exists if self.check_info(): self.create_profile() GlobalConf ().path ('profiles').adopt (self._profile, 'Prove') self._listprof.append('Prove') self.profile_ComboBox.load(self._li...
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
def delete_profile(self, random): GlobalConf ().path('profiles').remove('Prove') self._listprof.remove('Prove') self.profile_ComboBox.load(self._listprof) self.update_status("Profile deleted")
def delete_profile(self, name = 'Prove'): if name <> 'Default': GlobalConf ().path('profiles').remove(name) self._listprof.remove(name) self.profile_ComboBox.load(self._listprof) self.update_status("Profile deleted")
def delete_profile(self, random): #Need to be modified in order to accept the name of the profile, also check first if the profile already exists and what happened when there is no profiles or create a default one which cannot be deleted
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.update_status("It should open a new window in order to load the game")
self.update_status("Not implemented yet")
def load_game(self, random):
58dcc6d0532fe18c9df8f493104815ae3eaee42b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/58dcc6d0532fe18c9df8f493104815ae3eaee42b/menu.py
self.SetCenter (cx - (dx*c - dy*s)/sx, cy - (dx*s + dy*c)/sy)
self.set_center (cx - (dx*c - dy*s)/sx, cy - (dx*s + dy*c)/sy)
def do_pan (self, (nx, ny)): _log.debug ('Do panning: ' + str ((nx, ny)))
7e313c73307e12be169ba9f44d1c753d467de014 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/7e313c73307e12be169ba9f44d1c753d467de014/world.py
self._region = model
self.model = model
def __init__ (self, parent = None, model = None, *a, **k): assert parent assert model super (RegionComponent, self).__init__ (parent = parent, radius = _REGION_RADIUS, *a, **k)
8436416e668914ce81961c956df99ebaf7fcf5fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/8436416e668914ce81961c956df99ebaf7fcf5fb/world.py
else self._region.owner.color))
else self.model.owner.color))
def on_set_region_owner (self): self._fill_color = sf.Color (*( _REGION_FREE_COLOR if self._region.owner is None else self._region.owner.color))
8436416e668914ce81961c956df99ebaf7fcf5fb /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/8436416e668914ce81961c956df99ebaf7fcf5fb/world.py
self.load_profile('Default')
def __init__ (self, parent = None): ui.Image.__init__(self, parent, 'data/image/texture01.jpg')
6da2beabe78594cf4c04092098908ba20a4b6d3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/6da2beabe78594cf4c04092098908ba20a4b6d3e/menu.py
else: self.mapL.select(i.get_value())
def load_profile(self, name):
6da2beabe78594cf4c04092098908ba20a4b6d3e /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/6da2beabe78594cf4c04092098908ba20a4b6d3e/menu.py
self._region.definition.name)
self.model.definition.name)
def __init__ (self, parent = None, model = None, *a, **k): assert parent assert model super (RegionComponent, self).__init__ (parent = parent, radius = _REGION_RADIUS, *a, **k)
2b44dda638eeff53f6d49c16a93ae59f336f27ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/2b44dda638eeff53f6d49c16a93ae59f336f27ef/world.py
_REGION_FREE_COLOR if self._region.owner is None
_REGION_FREE_COLOR if self.model.owner is None
def on_set_region_owner (self): self._fill_color = sf.Color (*( _REGION_FREE_COLOR if self._region.owner is None else self.model.owner.color))
2b44dda638eeff53f6d49c16a93ae59f336f27ef /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/2b44dda638eeff53f6d49c16a93ae59f336f27ef/world.py
suite = unittest.TestLoader().loadTestsFromTestCase(TestObjectives) unittest.TextTestRunner(verbosity=2).run(suite)
def test_check_objective_player (self): print "\nTesting check mission player" world = self.world obj = self.obj pla_obj = filter (lambda o: o.type == 'player',obj) random.shuffle(pla_obj)
14dd3427f1c25a25fa68abb11ec8e37237a38268 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/14dd3427f1c25a25fa68abb11ec8e37237a38268/model_objectives.py
time.gmtime (
time.localtime (
def __init__ (self, parent = None, save_folder = '', *a, **k): super (LoadGameDialog, self).__init__ (parent, *a, **k)
d7c111b1cd26b9a89c4fe1d89f652aec5bd3ef5b /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/3610/d7c111b1cd26b9a89c4fe1d89f652aec5bd3ef5b/menu.py
c = sphere(radius=50, color=(1., 0.,0.), pos=(x-AREA_X/2,y-AREA_Y/2,50))
if BALL_CYLINDER == 1: c = cylinder(axis=(0,0,1), radius=50, length=CORN_HEIGHT, color=(1., 0.,0.), pos=(x-AREA_X/2,y-AREA_Y/2,CORN_HEIGHT/2)) else: c = sphere(radius=50, color=(1., 0.,0.), pos=(x-AREA_X/2,y-AREA_Y/2,50))
def toggle_obj_disp(): global area_objects """ if area_objects == []: c = sphere(radius=5, color=(0., 0.,1.), pos=(1238.-AREA_X/2, 1313.-AREA_Y/2, 5)) area_objects.append(c) c = sphere(radius=5, color=(0., 0.,1.), pos=(1364.-AREA_X/2, 1097.-AREA_Y/2, 5)) area_objects.append(c) c = sphere(radius=5, color=(0., 0.,1.), p...
b56f8565015ec12af0e8df461f8dd52d07f59dd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5625/b56f8565015ec12af0e8df461f8dd52d07f59dd7/display.py
print "cobboard: %x,%x"%(int(m.groups()[0]),int(m.groups()[1]))
def silent_mkfifo(f): try: os.mkfifo(f) except: pass
b56f8565015ec12af0e8df461f8dd52d07f59dd7 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/5625/b56f8565015ec12af0e8df461f8dd52d07f59dd7/display.py
widget=MasterSelectWidget(
widget=SelectionWidget(
def getVocabMun(self,province): municipality = EntiVocabulary.comuni4provincia(province) return DisplayList(monetVocabMap(municipality))
6d10c20402ac754ddb932d13314aeb722527b0a0 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/8685/6d10c20402ac754ddb932d13314aeb722527b0a0/__init__.py
def quotient(self, sub, check=True):
def quotient(self, sub, check=True, positive_point=None, positive_dual_point=None):
def quotient(self, sub, check=True): """ Return the quotient of ``self`` by the given sublattice ``sub``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
Torsion quotient of 3-d lattice N by Sublattice <N(1, 8, 0), N(0, 12, 0)>
Quotient with torsion of 3-d lattice N by Sublattice <N(1, 8, 0), N(0, 12, 0)> See :class:`ToricLattice_quotient` for more examples.
def quotient(self, sub, check=True): """ Return the quotient of ``self`` by the given sublattice ``sub``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
return ToricLattice_quotient(self, sub, check=False)
return ToricLattice_quotient(self, sub, check=False, positive_point=positive_point, positive_dual_point=positive_dual_point)
def quotient(self, sub, check=True): """ Return the quotient of ``self`` by the given sublattice ``sub``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
meth:`~sage.modules.free_module.FreeModule_generic_pid.submodule`,
:meth:`~sage.modules.free_module.FreeModule_generic_pid.submodule`,
def span(self, *args, **kwds): """ Return the span of the given generators.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
meth:`~sage.modules.free_module.FreeModule_generic_pid.submodule_with_basis`,
:meth:`~sage.modules.free_module.FreeModule_generic_pid.submodule_with_basis`,
def span(self, *args, **kwds): """ Return the span of the given generators.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
meth:`~sage.modules.free_module.FreeModule_generic_pid.submodule`,
:meth:`~sage.modules.free_module.FreeModule_generic_pid.submodule`,
def span_of_basis(self, *args, **kwds): r""" Return the submodule with the given ``basis``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
meth:`~sage.modules.free_module.FreeModule_generic_pid.submodule_with_basis`,
:meth:`~sage.modules.free_module.FreeModule_generic_pid.submodule_with_basis`,
def span_of_basis(self, *args, **kwds): r""" Return the submodule with the given ``basis``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
1-d lattice, quotient of 3-d lattice N by Sublattice <N(1, 0, 1), N(0, 1, -1)>
1-d lattice, quotient of 3-d lattice N by Sublattice <N(1, 0, 1), N(0, 1, -1)> sage: Q.gens() (N[0, 0, 1],) Here, ``sublattice`` happens to be of codimension one in ``N``. If you want to prescribe the sign of the quotient generator, you can do either:: sage: Q = N.quotient(sublattice, positive_point=N(0,0,-1)); Q 1-d...
def _latex_(self): r""" Return a LaTeX representation of ``self``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
Torsion quotient of 3-d lattice N
Quotient with torsion of 3-d lattice N
def _repr_(self): r""" Return a string representation of ``self``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
return "Torsion quotient of %s by %s" % (self.V(), self.W())
return "Quotient with torsion of %s by %s" % (self.V(), self.W())
def _repr_(self): r""" Return a string representation of ``self``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
- integer.
Integer. The dimension of the free part of the quotient.
def rank(self): r""" Return the rank of ``self``.
2ecb64877587a338c723df487639345b09bed118 /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/2ecb64877587a338c723df487639345b09bed118/toric_lattice.py
m = re.match(r'GNU Fortran\s+95.*?([0-9-.]+)', version_string) if m: return ('gfortran', m.group(1)) m = re.match(r'GNU Fortran.*?([0-9-.]+)', version_string) if m: v = m.group(1) if v.startswith('0') or v.startswith('2') or v.startswith('3'): return ('g77', v)
ctype = self.compiler_type f90 = set_exe('compiler_f90') if not f90: f77 = set_exe('compiler_f77') if f77: log.warn('%s: no Fortran 90 compiler found' % ctype)
def gnu_version_match(self, version_string): """Handle the different versions of GNU fortran compilers""" m = re.match(r'GNU Fortran', version_string) if not m: return None m = re.match(r'GNU Fortran\s+95.*?([0-9-.]+)', version_string) if m: return ('gfortran', m.group(1)) m = re.match(r'GNU Fortran.*?([0-9-.]+)', vers...
88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py
return ('gfortran', v) def version_match(self, version_string): v = self.gnu_version_match(version_string) if not v or v[0] != 'g77':
raise CompilerNotFound('%s: f90 nor f77' % ctype) else: f77 = set_exe('compiler_f77', f90=f90) if not f77: log.warn('%s: no Fortran 77 compiler found' % ctype) set_exe('compiler_fix', f90=f90) set_exe('linker_so', f77=f77, f90=f90) set_exe('linker_exe', f77=f77, f90=f90) set_exe('version_cmd', f77=f77, f90=f90) set_ex...
def gnu_version_match(self, version_string): """Handle the different versions of GNU fortran compilers""" m = re.match(r'GNU Fortran', version_string) if not m: return None m = re.match(r'GNU Fortran\s+95.*?([0-9-.]+)', version_string) if m: return ('gfortran', m.group(1)) m = re.match(r'GNU Fortran.*?([0-9-.]+)', vers...
88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py
return v[1] possible_executables = ['g77', 'f77'] executables = { 'version_cmd' : [None, "--version"], 'compiler_f77' : [None, "-g", "-Wall", "-fno-second-underscore"], 'compiler_f90' : None, 'compiler_fix' : None, 'linker_so' : [None, "-g", "-Wall"], 'archiver' : ["ar", "-cr"], 'ranlib' : ["ranl...
if is_string(hook_name): if hook_name.startswith('self.'): hook_name = hook_name[5:] hook = getattr(self, hook_name) return hook() elif hook_name.startswith('exe.'): hook_name = hook_name[4:] var = self.executables[hook_name] if var: return var[0] else: return None elif hook_name.startswith('flags.'): hook_name = hook_...
def version_match(self, version_string): v = self.gnu_version_match(version_string) if not v or v[0] != 'g77': return None return v[1]
88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py
opt.append("-shared") if sys.platform.startswith('sunos'): opt.append('-mimpure-text') return opt def get_libgcc_dir(self): status, output = exec_command(self.compiler_f77 + ['-print-libgcc-file-name'], use_tee=0) if not status: return os.path.dirname(output)
return hook_name() _default_compilers = ( ('win32', ('gnu','intelv','absoft','compaqv','intelev','gnu95','g95')), ('cygwin.*', ('sage_fortran', 'gnu','intelv','absoft','compaqv','intelev','gnu95','g95')), ('linux.*', ('sage_fortran','gnu','intel','lahey','pg','absoft','nag','vast','compaq', 'intele','intelem','gnu9...
def get_flags_linker_so(self): opt = self.linker_so[1:] if sys.platform=='darwin': target = os.environ.get('MACOSX_DEPLOYMENT_TARGET', None) # If MACOSX_DEPLOYMENT_TARGET is set, we simply trust the value # and leave it alone. But, distutils will complain if the # environment's value is different from the one in the P...
88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py
def get_library_dirs(self): opt = [] if sys.platform[:5] != 'linux': d = self.get_libgcc_dir() if d: if sys.platform == 'win32' and not d.startswith('/usr/lib'): d = os.path.normpath(d) if not os.path.exists(os.path.join(d, "lib%s.a" % self.g2c)): d2 = os.path.abspath(os.path.join(d, '../../../../lib')) if os.path.exi...
compiler = klass(verbose=verbose, dry_run=dry_run, force=force) compiler.c_compiler = c_compiler return compiler def show_fcompilers(dist=None): """Print list of available compilers (used by the "--help-fcompiler" option to "config_fc"). """ if dist is None: from distutils.dist import Distribution from numpy.distutils...
def get_library_dirs(self): opt = [] if sys.platform[:5] != 'linux': d = self.get_libgcc_dir() if d: # if windows and not cygwin, libg2c lies in a different folder if sys.platform == 'win32' and not d.startswith('/usr/lib'): d = os.path.normpath(d) if not os.path.exists(os.path.join(d, "lib%s.a" % self.g2c)): d2 = os.p...
88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py
g2c = self.g2c if g2c is not None: opt.append(g2c) c_compiler = self.c_compiler if sys.platform == 'win32' and c_compiler and \ c_compiler.compiler_type=='msvc': opt.append('gcc') runtime_lib = msvc_runtime_library() if runtime_lib: opt.append(runtime_lib) if sys.platform == 'darwin': opt.append('cc_dynamic') return...
c.dump_properties() compilers.append(("fcompiler="+compiler, None, fcompiler_class[compiler][2] + ' (%s)' % v)) compilers_ni = list(set(fcompiler_class.keys()) - set(platform_compilers)) compilers_ni = [("fcompiler="+fc, None, fcompiler_class[fc][2]) for fc in compilers_ni] compilers.sort() compilers_na.sort() compil...
def get_libraries(self): opt = [] d = self.get_libgcc_dir() if d is not None: g2c = self.g2c + '-pic' f = self.static_lib_format % (g2c, self.static_lib_extension) if not os.path.isfile(os.path.join(d,f)): g2c = self.g2c else: g2c = self.g2c
88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py
from distutils import log log.set_verbosity(2) compiler = GnuFCompiler() compiler.customize() print compiler.get_version() raw_input('Press ENTER to continue...') try: compiler = Gnu95FCompiler() compiler.customize() print compiler.get_version() except Exception, msg: print msg raw_input('Press ENTER to continue...')
show_fcompilers()
def get_flags_debug(self): return ['-g']
88d8906f7b729e50947606558b12f05e24421e4d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/88d8906f7b729e50947606558b12f05e24421e4d/gnu.py
sage: sage.symbolic.units.evalunitdict()
sage: sage.symbolic.units.evalunitdict()
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.iteritems()])
unitdict[key] = dict([(a,sage_eval(repr(b))) for a, b in value.iteritems()])
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
for a in v: unit_to_type[a] = k
for a in v: unit_to_type[a] = k
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
for j in unitdict[w].iterkeys(): if type(unitdict[w][j]) == tuple: unitdict[w][j] = unitdict[w][j][0] value_to_unit[w] = dict(zip(unitdict[w].itervalues(), unitdict[w].iterkeys()))
for j in unitdict[w].iterkeys(): if type(unitdict[w][j]) == tuple: unitdict[w][j] = unitdict[w][j][0] value_to_unit[w] = dict(zip(unitdict[w].itervalues(), unitdict[w].iterkeys()))
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'gal':'Abbreviation for galileo.\nDefined to be 1/100 meter/second^2.', 'galileo':'Defined to be 1/100 meter/second^2.', 'gravity':'Also called standard gravity.\nPhysical constant defined to be 9.80665 meter/second^2.'},
{'gal':'Abbreviation for galileo.\nDefined to be 1/100 meter/second^2.', 'galileo':'Defined to be 1/100 meter/second^2.', 'gravity':'Also called standard gravity.\nPhysical constant defined to be 9.80665 meter/second^2.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'elementary_entity':'Defined to be one elementary unit of choice, usually atoms or other elementary particles.\nApproximately equal to 1.6605e-24 moles.', 'mole':'SI base unit of quantity.\nDefined to be the amount of substance that has an equal number of elementary entities as there are atoms in 12 grams of carbon-12...
{'elementary_entity':'Defined to be one elementary unit of choice, usually atoms or other elementary particles.\nApproximately equal to 1.6605e-24 moles.', 'mole':'SI base unit of quantity.\nDefined to be the amount of substance that has an equal number of elementary entities as there are atoms in 12 grams of carbon-12...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'arc_minute':'Defined to be 1/60 of a degree or pi/10800 radians.', 'arc_second':'Defined to be 1/3600 of a degree or pi/648000 radians.', 'degree':'Defined to be pi/180 radians.', 'grade':'Defined to be pi/200 radians.', 'quadrant':'Equivalent to a right angle.\nDefined to be pi/2 radians.', 'radian':'SI derived unit...
{'arc_minute':'Defined to be 1/60 of a degree or pi/10800 radians.', 'arc_second':'Defined to be 1/3600 of a degree or pi/648000 radians.', 'degree':'Defined to be pi/180 radians.', 'grade':'Defined to be pi/200 radians.', 'quadrant':'Equivalent to a right angle.\nDefined to be pi/2 radians.', 'radian':'SI derived unit...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'acre':'Defined to be 10 square chains or 4840 square yards.\nApproximately equal to 4046.856 square meters.', 'are':'Defined to be 100 square meters.', 'barn':'Defined to be 100 square femtometers or 10^-28 square meters.', 'hectare':'Defined to be 10000 square meters.', 'rood':'Defined to be 1/4 of an acre.\nApproxi...
{'acre':'Defined to be 10 square chains or 4840 square yards.\nApproximately equal to 4046.856 square meters.', 'are':'Defined to be 100 square meters.', 'barn':'Defined to be 100 square femtometers or 10^-28 square meters.', 'hectare':'Defined to be 10000 square meters.', 'rood':'Defined to be 1/4 of an acre.\nApproxi...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'abfarad':'Defined to be 10^9 farads.', 'farad':'SI derived unit of capacitance.\nDefined to be the charge in coulombs a capacitor will accept for the potential across it to change one volt.\nEquivalent to coulomb/volt.', 'statfarad':'CGS unit defined to be statcoulomb/statvolt.\nApproximately equal to 1.11265*10^-12 ...
{'abfarad':'Defined to be 10^9 farads.', 'farad':'SI derived unit of capacitance.\nDefined to be the charge in coulombs a capacitor will accept for the potential across it to change one volt.\nEquivalent to coulomb/volt.', 'statfarad':'CGS unit defined to be statcoulomb/statvolt.\nApproximately equal to 1.11265*10^-12 ...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'abcoulomb':'CGS unit defined to be 10 coulombs.', 'coulomb':'SI derived unit of charge.\nDefined to be the amount of electric charge transported by 1 ampere in 1 second.', 'elementary_charge':'Defined to be the amount of electric charge carried by a single proton or negative charge carried by a single electron.\nAppr...
{'abcoulomb':'CGS unit defined to be 10 coulombs.', 'coulomb':'SI derived unit of charge.\nDefined to be the amount of electric charge transported by 1 ampere in 1 second.', 'elementary_charge':'Defined to be the amount of electric charge carried by a single proton or negative charge carried by a single electron.\nAppr...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'abmho':'Defined to be 10^9 siemens.', 'mho':'Equivalent to siemens.', 'siemens':'SI derived unit of conductance.\nDefined to be an ampere per volt or 1/ohm.'},
{'abmho':'Defined to be 10^9 siemens.', 'mho':'Equivalent to siemens.', 'siemens':'SI derived unit of conductance.\nDefined to be an ampere per volt or 1/ohm.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'abampere':'CGS unit defined to be 10 amperes.', 'amp':'Abbreviation for ampere.', 'ampere':'SI base unit of current.\nDefined to be the constant current which will produce an attractive force of 2*10^-7 newtons per meter between two straight, parallel conductors of infinite length and negligible circular cross sectio...
{'abampere':'CGS unit defined to be 10 amperes.', 'amp':'Abbreviation for ampere.', 'ampere':'SI base unit of current.\nDefined to be the constant current which will produce an attractive force of 2*10^-7 newtons per meter between two straight, parallel conductors of infinite length and negligible circular cross sectio...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'abvolt':'Defined to be 10^-8 volts.', 'statvolt':'CGS unit defined to be the speed of light in a vacuum/10^6 volts or approximately 299.792 volts.', 'volt':'SI derived unit of electric potential.\nDefined to be the value of voltage across a conductor when a current of one ampere dissipates one watt of power.'},
{'abvolt':'Defined to be 10^-8 volts.', 'statvolt':'CGS unit defined to be the speed of light in a vacuum/10^6 volts or approximately 299.792 volts.', 'volt':'SI derived unit of electric potential.\nDefined to be the value of voltage across a conductor when a current of one ampere dissipates one watt of power.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'british_thermal_unit':'Defined to be the amount of energy required to raise the temperature of one pound of liquid water from 60 degrees Fahrenheit to 61 degrees Fahrenheit at a constant pressure of one atmosphere.\nApproximately equal to 1055.05585 joules.', 'btu':'Abbreviation for British thermal unit.\nApproximate...
{'british_thermal_unit':'Defined to be the amount of energy required to raise the temperature of one pound of liquid water from 60 degrees Fahrenheit to 61 degrees Fahrenheit at a constant pressure of one atmosphere.\nApproximately equal to 1055.05585 joules.', 'btu':'Abbreviation for British thermal unit.\nApproximate...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'denier':'Defined to be 1 gram per 9000 meters.\nEqual to 1/9000000 of a kilogram/meter.', 'tex':'Defined to be 1 gram per 1000 meters.\nEqual to 1/1000000 of a kilogram/meter.'},
{'denier':'Defined to be 1 gram per 9000 meters.\nEqual to 1/9000000 of a kilogram/meter.', 'tex':'Defined to be 1 gram per 1000 meters.\nEqual to 1/1000000 of a kilogram/meter.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'dyne':'CGS unit for force defined to be gram*centimeter/second^2.\nEqual to 10^-5 newtons.', 'gram_weight':'Defined to be the magnitude of the force exerted on one gram of mass by a 9.80665 meter/second^2 gravitational field.\nEqual to 1/1000 of a kilogram weight.\nEqual to 0.00980665 newtons.', 'kilogram_force':'Equ...
{'dyne':'CGS unit for force defined to be gram*centimeter/second^2.\nEqual to 10^-5 newtons.', 'gram_weight':'Defined to be the magnitude of the force exerted on one gram of mass by a 9.80665 meter/second^2 gravitational field.\nEqual to 1/1000 of a kilogram weight.\nEqual to 0.00980665 newtons.', 'kilogram_force':'Equ...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'hertz':'SI derived unit of frequency.\nDefined to be one complete cycle per second.'},
{'hertz':'SI derived unit of frequency.\nDefined to be one complete cycle per second.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'foot_candle':'Defined to be lumen/foot^2.\nApproximately equal to 10.764 lux.', 'lux':'SI derived unit of illuminance.\nDefined to be lumen/meter^2.', 'phot':'CGS unit defined to be 10000 lux.'},
{'foot_candle':'Defined to be lumen/foot^2.\nApproximately equal to 10.764 lux.', 'lux':'SI derived unit of illuminance.\nDefined to be lumen/meter^2.', 'phot':'CGS unit defined to be 10000 lux.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'abhenry':'Defined to be 10^-9 henries.', 'henry':'SI derived unit of inductance./nDefined to be a volt per ampere per second.', 'stathenry':'CGS unit defined to be one statvolt*second/statampere.\nApproximately equal to 8.98758*10^11 henries.'},
{'abhenry':'Defined to be 10^-9 henries.', 'henry':'SI derived unit of inductance./nDefined to be a volt per ampere per second.', 'stathenry':'CGS unit defined to be one statvolt*second/statampere.\nApproximately equal to 8.98758*10^11 henries.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'bit':'Base unit of information.\nDefined to be the maximum amount of information that can be stored by a device of other physical system that can normally exist in only two distinct states.', 'byte':'Defined to be 8 bits.', 'nibble':'Defined to be 4 bits.'},
{'bit':'Base unit of information.\nDefined to be the maximum amount of information that can be stored by a device of other physical system that can normally exist in only two distinct states.', 'byte':'Defined to be 8 bits.', 'nibble':'Defined to be 4 bits.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'baud':'Defined to be 1 bit/second.'},
{'baud':'Defined to be 1 bit/second.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'diopter':'Defined to be 1/meter.', 'kayser':'Defined to be 100/meter.'},
{'diopter':'Defined to be 1/meter.', 'kayser':'Defined to be 100/meter.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'angstrom':'Defined to be 10^-10 meters.', 'astronomical_unit':'Originally defined as the length of the semi-major axis of the elliptical orbit of the Earth around the Sun.\nRedefined for accuracy to be the radius of an unperturbed circular Newtonian orbit about the Sun of a particle having infinitesimal mass, moving ...
{'angstrom':'Defined to be 10^-10 meters.', 'astronomical_unit':'Originally defined as the length of the semi-major axis of the elliptical orbit of the Earth around the Sun.\nRedefined for accuracy to be the radius of an unperturbed circular Newtonian orbit about the Sun of a particle having infinitesimal mass, moving ...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'apostilb':'Defined to be 10^-4 lamberts.\nEqual to 1/pi*candela/meter^2.', 'lambert':'Defined to be 10^4/pi candela/meter^2.', 'nit':'Equivalent to candela/meter^2.', 'stilb':'CGS unit equal to 10000 candela/meter^2.'},
{'apostilb':'Defined to be 10^-4 lamberts.\nEqual to 1/pi*candela/meter^2.', 'lambert':'Defined to be 10^4/pi candela/meter^2.', 'nit':'Equivalent to candela/meter^2.', 'stilb':'CGS unit equal to 10000 candela/meter^2.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'lumerg':'Equivalent to lumen*second', 'talbot':'Equivalent to lumen*second.'},
{'lumerg':'Equivalent to lumen*second', 'talbot':'Equivalent to lumen*second.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'lumen':'SI derived unit of luminous flux.\nDefined to be candela*steradian.'},
{'lumen':'SI derived unit of luminous flux.\nDefined to be candela*steradian.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'candela':'SI base unit of luminous intensity.\nDefined to be the luminous intensity, in a given direction, of a source that emits monochromatic radiation of frequency 540*10^12 hertz and that has a radiant intensity in that direction of 1\xe2\x81\x84683 watt per steradian.', 'candle':'Equivalent to candela.', 'hefner...
{'candela':'SI base unit of luminous intensity.\nDefined to be the luminous intensity, in a given direction, of a source that emits monochromatic radiation of frequency 540*10^12 hertz and that has a radiant intensity in that direction of 1\xe2\x81\x84683 watt per steradian.', 'candle':'Equivalent to candela.', 'hefner...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'gauss':'CGS unit defined to be a maxwell/centimeter^2.\nEqual to 1/10000 of a tesla.', 'tesla':'SI derived unit of magnetic field.\nDefined to be the magnitude of a magnetic field such that a particle with a charge of 1 coulomb passing through that field at 1 meter/second will experience a force of 1 newton.'},
{'gauss':'CGS unit defined to be a maxwell/centimeter^2.\nEqual to 1/10000 of a tesla.', 'tesla':'SI derived unit of magnetic field.\nDefined to be the magnitude of a magnetic field such that a particle with a charge of 1 coulomb passing through that field at 1 meter/second will experience a force of 1 newton.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'maxwell':'CGS unit defined to be a gauss*centimeter^2 or 10^-8 webers.', 'weber':'SI derived unit of magnetic flux.\nDefined to be a change in magnetic flux of 1 weber per second will induce an electromotive force of 1 volt.'},
{'maxwell':'CGS unit defined to be a gauss*centimeter^2 or 10^-8 webers.', 'weber':'SI derived unit of magnetic flux.\nDefined to be a change in magnetic flux of 1 weber per second will induce an electromotive force of 1 volt.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'oersted':'CGS unit defined to be 1000/(4*pi) amperes per meter of flux path.'},
{'oersted':'CGS unit defined to be 1000/(4*pi) amperes per meter of flux path.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'bohr_magneton':'Physical constant defined to be the magnetic moment of an electron, or elementary_charge*h_bar/2*electron_rest_mass.\nApproximately equal to 9.274*10^-24 joules/tesla.', 'nuclear_magneton':'Physical constant defined to be the magnetic moment of a proton, or elementary_charge*h_bar/2*proton_rest_mass.\...
{'bohr_magneton':'Physical constant defined to be the magnetic moment of an electron, or elementary_charge*h_bar/2*electron_rest_mass.\nApproximately equal to 9.274*10^-24 joules/tesla.', 'nuclear_magneton':'Physical constant defined to be the magnetic moment of a proton, or elementary_charge*h_bar/2*proton_rest_mass.\...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'ampere_turn':'SI derived unit of magnetomotive force.\nDefined to be a direct current of 1 ampere flowing through a single turn loop in a vacuum.', 'gilbert':'CGS unit defined to be 10/(4*pi) ampere turns.'},
{'ampere_turn':'SI derived unit of magnetomotive force.\nDefined to be a direct current of 1 ampere flowing through a single turn loop in a vacuum.', 'gilbert':'CGS unit defined to be 10/(4*pi) ampere turns.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'amu':'Abbreviation for atomic mass unit.\nApproximately equal to 1.660538782*10^-27 kilograms.', 'assay_ton':'Defined to be milligram*short_ton/ounce_troy.\nEqual to 7/240 of a kilogram.', 'atomic_mass_unit':'Defined to be one twelfth of the mass of an isolated atom of carbon-12 at rest and in its ground state.\nAppr...
{'amu':'Abbreviation for atomic mass unit.\nApproximately equal to 1.660538782*10^-27 kilograms.', 'assay_ton':'Defined to be milligram*short_ton/ounce_troy.\nEqual to 7/240 of a kilogram.', 'atomic_mass_unit':'Defined to be one twelfth of the mass of an isolated atom of carbon-12 at rest and in its ground state.\nAppr...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'cheval_vapeur':'Defined to be 75 kilogram force*meter/second.\nAlso known as metric horsepower.\nEqual to 735.49875 watts.', 'horsepower':'Defined to be 550 feet*pound force/second.\nApproximately equal to 745.7 watts.', 'watt':'SI derived unit of power.\nDefined to be joule/second or, in base units, kilogram*meter^2...
{'cheval_vapeur':'Defined to be 75 kilogram force*meter/second.\nAlso known as metric horsepower.\nEqual to 735.49875 watts.', 'horsepower':'Defined to be 550 feet*pound force/second.\nApproximately equal to 745.7 watts.', 'watt':'SI derived unit of power.\nDefined to be joule/second or, in base units, kilogram*meter^2...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'atmosphere':'Defined to be 101325 pascals.', 'bar':'Defined to be 100000 pascals.', 'barye':'CGS unit defined to be dyne/centimeter^2.\nEqual to 1/10 of a pascal.', 'inch_mercury':'Defined to be 13595.1 kilogram/meter^3*inch*gravity.\nApproximately equal to 3386.389 pascals.', 'millimeter_mercury':'Defined to be 1359...
{'atmosphere':'Defined to be 101325 pascals.', 'bar':'Defined to be 100000 pascals.', 'barye':'CGS unit defined to be dyne/centimeter^2.\nEqual to 1/10 of a pascal.', 'inch_mercury':'Defined to be 13595.1 kilogram/meter^3*inch*gravity.\nApproximately equal to 3386.389 pascals.', 'millimeter_mercury':'Defined to be 1359...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'gray':'SI derived unit of absorbed radiation.\nDefined to be the absorption of one joule of ionizing radiation by one kilogram of matter.', 'rad':'Defined to be 1/100 of a gray.'},
{'gray':'SI derived unit of absorbed radiation.\nDefined to be the absorption of one joule of ionizing radiation by one kilogram of matter.', 'rad':'Defined to be 1/100 of a gray.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'becquerel':'SI derived unit of radiation.\nDefined to be the activity of a quantity of radioactive material in which one nucleus decays per second.', 'curie':'Defined to be 37*10^9 becquerels.', 'rutherford':'Defined to be 10^6 becquerels.'},
{'becquerel':'SI derived unit of radiation.\nDefined to be the activity of a quantity of radioactive material in which one nucleus decays per second.', 'curie':'Defined to be 37*10^9 becquerels.', 'rutherford':'Defined to be 10^6 becquerels.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'roentgen':'Defined to be .000258 coulombs/kilogram.', 'rontgen':'Equivalent to roentgen.\nDefined to be .000258 coulombs/kilogram.'},
{'roentgen':'Defined to be .000258 coulombs/kilogram.', 'rontgen':'Equivalent to roentgen.\nDefined to be .000258 coulombs/kilogram.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'abohm':'Defined to be 10^-9 ohms.', 'ohm':'SI derived unit of resistance.\nDefined to be a volt per ampere.', 'statohm':'CGS unit defined to be statvolt/statampere.\nApproximately equal to 8.98758*10^11 ohms.'},
{'abohm':'Defined to be 10^-9 ohms.', 'ohm':'SI derived unit of resistance.\nDefined to be a volt per ampere.', 'statohm':'CGS unit defined to be statvolt/statampere.\nApproximately equal to 8.98758*10^11 ohms.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'steradian':'SI derived unit of solid angle.\nDefined to be the solid angle subtended at the center of a sphere of radius r by a portion of the surface of the sphere having an area of r^2.'},
{'steradian':'SI derived unit of solid angle.\nDefined to be the solid angle subtended at the center of a sphere of radius r by a portion of the surface of the sphere having an area of r^2.'},
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py
{'celsius':'Defined to be -273.15 at absolute zero and 0.01 at the triple point of Vienna Standard Mean Ocean Water.\nCelsius is related to kelvin by the equation K = 273.15 + degrees Celsius.\nA change of 1 degree Celsius is equivalent to a change of 1 degree kelvin.', 'centigrade':'Equivalent to celsius.', 'fahrenhei...
{'celsius':'Defined to be -273.15 at absolute zero and 0.01 at the triple point of Vienna Standard Mean Ocean Water.\nCelsius is related to kelvin by the equation K = 273.15 + degrees Celsius.\nA change of 1 degree Celsius is equivalent to a change of 1 degree kelvin.', 'centigrade':'Equivalent to celsius.', 'fahrenhei...
def evalunitdict(): """ Replace all the string values of the unitdict variable by their evaluated forms, and builds some other tables for ease of use. This function is mainly used internally, for efficiency (and flexibility) purposes, making it easier to describe the units. EXAMPLES:: sage: sage.symbolic.units.evalun...
04717bf1b9b9ac138edf5b9001954a2a12d3790d /local1/tlutelli/issta_data/temp/all_python//python/2010_temp/2010/9417/04717bf1b9b9ac138edf5b9001954a2a12d3790d/units.py