function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def _eval(v): try: match = _PY_REPR.match(v) if match: clsstr = match.group(1) modstr = clsstr.rsplit(".", 1)[0] return eval(v, {modstr: import_module(modstr)}) except: ... return v
biothings/biothings.api
[ 39, 25, 39, 80, 1452637246 ]
def _get_jinja_environment(): current_dir = os.path.dirname(__file__) templates_dir = os.path.join(current_dir, '../templates') return jinja2.Environment(loader=jinja2.FileSystemLoader(templates_dir), extensions=['jinja2.ext.autoescape'], autoescap...
m-lab/mlab-ns
[ 11, 14, 11, 30, 1431721186 ]
def send_no_content(request): request.response.headers['Access-Control-Allow-Origin'] = '*' request.response.headers['Content-Type'] = 'application/json' request.response.set_status(204)
m-lab/mlab-ns
[ 11, 14, 11, 30, 1431721186 ]
def send_server_error(request, output_type=message.FORMAT_HTML): request.error(500) if output_type == message.FORMAT_JSON: data = {} data['status_code'] = '500 Internal Server Error' json_data = json.dumps(data) request.response.headers['Content-Type'] = 'application/json' ...
m-lab/mlab-ns
[ 11, 14, 11, 30, 1431721186 ]
def validate_rdm_string(ops: str) -> str: """Check that a string for rdms are valid. Args: ops (str): String expression to be computed. Returns (str): Either 'element' or 'tensor'. """ qftops = ops.split() nops = len(qftops) assert (nops % 2) == 0 if any(char.isdigit...
quantumlib/OpenFermion-FQE
[ 42, 22, 42, 8, 1585772605 ]
def sinebow(h): """A cyclic and uniform colormap, see http://basecase.org/env/on-rainbows.""" f = lambda x: jnp.sin(jnp.pi * x)**2 return jnp.stack([f(3 / 6 - h), f(5 / 6 - h), f(7 / 6 - h)], -1)
google/mipnerf
[ 653, 94, 653, 25, 1621008071 ]
def depth_to_normals(depth): """Assuming `depth` is orthographic, linearize it to a set of normals.""" f_blur = jnp.array([1, 2, 1]) / 4 f_edge = jnp.array([-1, 0, 1]) / 2 dy = convolve2d(depth, f_blur[None, :] * f_edge[:, None]) dx = convolve2d(depth, f_blur[:, None] * f_edge[None, :]) inv_denom = 1 / jnp....
google/mipnerf
[ 653, 94, 653, 25, 1621008071 ]
def visualize_normals(depth, acc, scaling=None): """Visualize fake normals of `depth` (optionally scaled to be isotropic).""" if scaling is None: mask = ~jnp.isnan(depth) x, y = jnp.meshgrid( jnp.arange(depth.shape[1]), jnp.arange(depth.shape[0]), indexing='xy') xy_var = (jnp.var(x[mask]) + jnp....
google/mipnerf
[ 653, 94, 653, 25, 1621008071 ]
def get(self): self.redirect('/ai/beat-blender/view/')
googlecreativelab/beat-blender
[ 178, 36, 178, 7, 1521683101 ]
def __init__(self): super(LinksPage, self).__init__(url='http://wargaming.net')
wgnet/webium
[ 152, 39, 152, 5, 1421401901 ]
def test_acquisition_multipoint_expected_improvement(): """ Check if the q-EI acquisition function produces similar results as sampling """ # Batch size k = 2 # Set mean to one mu = np.ones((k)) # Sample random 3 dimensional covarinace matrix: L = np.tril(np.random.sample((k, k))) ...
EmuKit/emukit
[ 491, 118, 491, 38, 1536037294 ]
def create_train_state(config: ml_collections.ConfigDict, rng: np.ndarray, input_shape: Sequence[int], num_classes: int) -> Tuple[Any, TrainState]: """Create and initialize the model. Args: config: Configuration for model. rng: JAX PRNG Key. input_shape: Sh...
google-research/nested-transformer
[ 172, 23, 172, 4, 1622524188 ]
def train_step( model: Any, state: TrainState, batch: Dict[str, jnp.ndarray], rng: np.ndarray, learning_rate_fn: Callable[[int], float], weight_decay: float, grad_clip_max_norm: Optional[float] = None
google-research/nested-transformer
[ 172, 23, 172, 4, 1622524188 ]
def loss_fn(params): variables = {"params": params} variables.update(state.model_state) logits, new_model_state = model(train=True).apply( variables, batch["image"], mutable=["batch_stats"], rngs={"dropout": rng}) loss = jnp.mean( losses.softmax_cross_entropy_loss...
google-research/nested-transformer
[ 172, 23, 172, 4, 1622524188 ]
def eval_step(model: Any, state: TrainState, batch: Dict[str, jnp.ndarray]) -> metrics.Collection: """Compute the metrics for the given model in inference mode. The model is applied to the inputs with train=False using all devices on the host. Afterwards metrics are averaged across *all* devices (o...
google-research/nested-transformer
[ 172, 23, 172, 4, 1622524188 ]
def __init__(self, name: str, init_step_num: int): self.name = name self.step_num = init_step_num
google-research/nested-transformer
[ 172, 23, 172, 4, 1622524188 ]
def __exit__(self, exc_type, exc_value, tb): self.context.__exit__(exc_type, exc_value, tb) self.context = None
google-research/nested-transformer
[ 172, 23, 172, 4, 1622524188 ]
def evaluate(model: nn.Module, state: TrainState, eval_ds: tf.data.Dataset, num_eval_steps: int = -1) -> Union[None, EvalMetrics]: """Evaluate the model on the given dataset.""" logging.info("Starting evaluation.") eval_metrics = None with StepTraceContextHelper("eval", 0)...
google-research/nested-transformer
[ 172, 23, 172, 4, 1622524188 ]
def get_coord(exifdict): ''' Purpose: The purpose of this script is to extract the Latitude and Longitude from the EXIF data Inputs: exifdict: structure storing the image's EXIF data. Outputs: coords: A tuple of the Latitude and Longitude in Decimal form Returns: (lat,lo...
Aerolyzer/Aerolyzer
[ 7, 11, 7, 9, 1476309407 ]
def zip_to_coord(zipcode,googlegeokey): ''' Purpose: The purpose of this script is to convert ZIP Code to a Latitude and Longitude Inputs: zipcode: 5 digit long ZIP code. Outputs: coord: tuple holding latitude and longitude Returns: (lat,lon) Assumptions: The EXIF...
Aerolyzer/Aerolyzer
[ 7, 11, 7, 9, 1476309407 ]
def __init__(self, state): self.state = state
hycis/Pynet
[ 8, 2, 8, 1, 1402708844 ]
def get_random_graph() -> jraph.GraphsTuple: return jraph.GraphsTuple( n_node=np.asarray([NUM_NODES]), n_edge=np.asarray([NUM_EDGES]), nodes=np.random.normal(size=[NUM_NODES, EMBEDDING_SIZE]), edges=np.random.normal(size=[NUM_EDGES, EMBEDDING_SIZE]), globals=None, senders=np.random...
deepmind/jraph
[ 1114, 71, 1114, 9, 1606127232 ]
def update_edge_fn(edges, sender_nodes, receiver_nodes): # We will run an LSTM memory on the inputs first, and then # process the output of the LSTM with an MLP. edge_inputs = jnp.concatenate([edges.embedding, sender_nodes.embedding, rece...
deepmind/jraph
[ 1114, 71, 1114, 9, 1606127232 ]
def main(_): network = hk.without_apply_rng(hk.transform(network_definition)) input_graph = get_random_graph() params = network.init(jax.random.PRNGKey(42), input_graph) output_graph = network.apply(params, input_graph) print(tree.tree_map(lambda x: x.shape, output_graph))
deepmind/jraph
[ 1114, 71, 1114, 9, 1606127232 ]
def setUpClass(cls): super(QuotasAdminNegativeTestJSON, cls).setUpClass() cls.client = cls.os.quotas_client cls.adm_client = cls.os_adm.quotas_client cls.sg_client = cls.security_groups_client # NOTE(afazekas): these test cases should always create and use a new # tenant...
Mirantis/tempest
[ 2, 7, 2, 1, 1327963146 ]
def test_update_quota_normal_user(self): self.assertRaises(exceptions.Unauthorized, self.client.update_quota_set, self.demo_tenant_id, ram=0)
Mirantis/tempest
[ 2, 7, 2, 1, 1327963146 ]
def test_create_server_when_cpu_quota_is_full(self): # Disallow server creation when tenant's vcpu quota is full resp, quota_set = self.adm_client.get_quota_set(self.demo_tenant_id) default_vcpu_quota = quota_set['cores'] vcpu_quota = 0 # Set the quota to zero to conserve resources ...
Mirantis/tempest
[ 2, 7, 2, 1, 1327963146 ]
def test_create_server_when_memory_quota_is_full(self): # Disallow server creation when tenant's memory quota is full resp, quota_set = self.adm_client.get_quota_set(self.demo_tenant_id) default_mem_quota = quota_set['ram'] mem_quota = 0 # Set the quota to zero to conserve resources ...
Mirantis/tempest
[ 2, 7, 2, 1, 1327963146 ]
def test_create_server_when_instances_quota_is_full(self): # Once instances quota limit is reached, disallow server creation resp, quota_set = self.adm_client.get_quota_set(self.demo_tenant_id) default_instances_quota = quota_set['instances'] instances_quota = 0 # Set quota to zero to d...
Mirantis/tempest
[ 2, 7, 2, 1, 1327963146 ]
def test_security_groups_exceed_limit(self): # Negative test: Creation Security Groups over limit should FAIL resp, quota_set = self.adm_client.get_quota_set(self.demo_tenant_id) default_sg_quota = quota_set['security_groups'] sg_quota = 0 # Set the quota to zero to conserve resources ...
Mirantis/tempest
[ 2, 7, 2, 1, 1327963146 ]
def test_security_groups_rules_exceed_limit(self): # Negative test: Creation of Security Group Rules should FAIL # when we reach limit maxSecurityGroupRules resp, quota_set = self.adm_client.get_quota_set(self.demo_tenant_id) default_sg_rules_quota = quota_set['security_group_rules'] ...
Mirantis/tempest
[ 2, 7, 2, 1, 1327963146 ]
def get_option(option: str) -> str: try: return _options[option] except KeyError: return None
KarlGong/ptest
[ 56, 9, 56, 1, 1431668612 ]
def get_int_property(key: str, default: int = None) -> int: """ Get property value and convert it to int. If no property found, default value will be returned. """ try: return int(_properties[key]) except KeyError: return default
KarlGong/ptest
[ 56, 9, 56, 1, 1431668612 ]
def get_boolean_property(key: str, default: bool = None) -> bool: """ Get property value and convert it to boolean. If no property found, default value will be returned. """ try: value = _properties[key] if value.lower() == "true": return True elif value.l...
KarlGong/ptest
[ 56, 9, 56, 1, 1431668612 ]
def load(args): option_args, property_args = __load_args(args) _parse_options(option_args) _load_properties_from_file() _parse_properties(property_args)
KarlGong/ptest
[ 56, 9, 56, 1, 1431668612 ]
def __load_args(args): property_args = [] option_args = [] property_regex_str = r"^-D(.*?)=(.*?)$" # the format of property definition must be -D<key>=<value> property_regex = re.compile(property_regex_str) for arg in args: property_match = property_regex.search(arg) if property_mat...
KarlGong/ptest
[ 56, 9, 56, 1, 1431668612 ]
def train_step(model, rng, state, batch, lr): """One optimization step. Args: model: The linen model. rng: jnp.ndarray, random number generator. state: utils.TrainState, state of the model/optimizer. batch: dict, a mini-batch of data for training. lr: float, real-time learning rate. Returns:...
google-research/google-research
[ 27788, 6881, 27788, 944, 1538678568 ]
def render_fn(variables, key_0, key_1, rays): return jax.lax.all_gather( model.apply(variables, key_0, key_1, rays, FLAGS.randomized), axis_name="batch")
google-research/google-research
[ 27788, 6881, 27788, 944, 1538678568 ]
def fetch(api_key, api_secret): # create an unauthenticated flickrapi object flickr=flickrapi.FlickrAPI(api_key, api_secret) print "Open the following URL in your browser " print "This Url >>>> %s" % flickr.web_login_url(perms='read') print "When you're ready press ENTER", raw_input() print "Copy and ...
photo/export-flickr
[ 32, 6, 32, 3, 1328069987 ]
def createDirectorySafe( name ): if not os.path.exists(name): os.makedirs(name)
photo/export-flickr
[ 32, 6, 32, 3, 1328069987 ]
def constructUrl( photo ): return "http://farm%s.staticflickr.com/%s/%s_%s_o.%s" % (photo.get('farm'), photo.get('server'), photo.get('id'), photo.get('originalsecret'), photo.get('originalformat'))
photo/export-flickr
[ 32, 6, 32, 3, 1328069987 ]
def getLicense( num ): licenses = {} licenses['0'] = '' licenses['4'] = 'CC BY' licenses['5'] = 'CC BY-SA' licenses['6'] = 'CC BY-ND' licenses['2'] = 'CC BY-NC' licenses['1'] = 'CC BY-NC-SA' licenses['3'] = 'CC BY-NC-ND' if licenses[num] is None: return licenses[0] else: return licenses[num...
photo/export-flickr
[ 32, 6, 32, 3, 1328069987 ]
def __init__(self, config) : name = config['name'] if 'name' in config else 'esp8266' host = config['host'] port = config['port'] if 'port' in config else 0 self.retries = config['retries'] if 'retries' in config else 1 self.retain = config['retain'] if 'retain' in config else Fa...
fadushin/esp8266
[ 70, 22, 70, 11, 1469665174 ]
def __init__(self): vstruct.VStruct.__init__(self) self.ExecuteDisable = v_uint8()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Size = v_uint32() self.ThreadPriority = v_uint32() self.PagePriority = v_uint32() self.IoPriority = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Revision = v_uint8() self.SubAuthorityCount = v_uint8() self.IdentifierAuthority = SID_IDENTIFIER_AUTHORITY() self.SubAuthority = vstruct.VArray([ v_uint32() for i in xrange(1) ])
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.NtTib = NT_TIB32() self.EnvironmentPointer = v_uint32() self.ClientId = CLIENT_ID32() self.ActiveRpcHandle = v_uint32() self.ThreadLocalStoragePointer = v_uint32() self.ProcessEnvironmentBlock = v_uint32() ...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Signature = v_uint32() self.Version = v_uint32() self.Length = v_uint32() self.Flags = WHEA_ERROR_PACKET_FLAGS() self.ErrorType = v_uint32() self.ErrorSeverity = v_uint32() self.ErrorSourceId = v_uint...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Mask = v_uint32() self.Group = v_uint16() self.Reserved = vstruct.VArray([ v_uint16() for i in xrange(3) ])
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Backlink = v_uint16() self.Reserved0 = v_uint16() self.Esp0 = v_uint32() self.Ss0 = v_uint16() self.Reserved1 = v_uint16() self.NotUsed1 = vstruct.VArray([ v_uint32() for i in xrange(4) ]) self.CR3 = ...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.DosPath = UNICODE_STRING() self.Handle = v_ptr32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.TreeNode = RTL_BALANCED_NODE() self.ThreadUnsafe = v_ptr32() self.LockState = KLOCK_ENTRY_LOCK_STATE() self.OwnerTree = RTL_RB_TREE() self.WaiterTree = RTL_RB_TREE() self.EntryLock = v_uint32() self.A...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Masks = vstruct.VArray([ v_uint32() for i in xrange(8) ])
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.AuditMask = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Value = v_uint16() self.Type = v_uint8() self.HardCap = v_uint8() self.RelativeWeight = v_uint32() self.QueryHistoryTimeStamp = v_uint64() self.NotificationCycles = v_uint64() self.SchedulingGroupList...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Length64 = v_uint32() self.Alignment64 = v_uint32() self.MinimumAddress = LARGE_INTEGER() self.MaximumAddress = LARGE_INTEGER()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.SectionOffset = v_uint32() self.SectionLength = v_uint32() self.Revision = WHEA_REVISION() self.ValidBits = WHEA_ERROR_RECORD_SECTION_DESCRIPTOR_VALIDBITS() self.Reserved = v_uint8() self.Flags = WHEA_ERROR_R...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.IdType = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.DeviceTextType = v_uint32() self.LocaleId = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.PromotePercent = v_uint8() self.DemotePercent = v_uint8() self.PromotePercentBase = v_uint8() self.DemotePercentBase = v_uint8() self.AllowScaling = v_uint8()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Magic = v_uint32() self.Database = v_ptr32() self.NextSegment = v_ptr32() self.TotalSize = v_uint32() self.SegmentStart = v_ptr32() self.SegmentEnd = v_ptr32() self.SegmentFree = v_ptr32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.InstantaneousRead = v_ptr32() self._pad0008 = v_bytes(size=4) self.LastActualCount = v_uint64() self.LastReferenceCount = v_uint64() self.CachedValue = v_uint32() self._pad0020 = v_bytes(size=4) self....
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Version = v_uint16() self.Revision = v_uint16() self.Count = v_uint32() self.PartialDescriptors = vstruct.VArray([ CM_PARTIAL_RESOURCE_DESCRIPTOR() for i in xrange(1) ])
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Lock = v_uint32() self.RangeBitmap = RTL_BITMAP()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.RemappedFormat = ULARGE_INTEGER()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Size = v_uint16() self.Version = v_uint16() self.DeviceD1 = v_uint32() self.Address = v_uint32() self.UINumber = v_uint32() self.DeviceState = vstruct.VArray([ DEVICE_POWER_STATE() for i in xrange(7) ]) ...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.bits = _unnamed_12568()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.IoResourceRequirementList = v_ptr32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Header = DISPATCHER_HEADER() self.ProfileListHead = LIST_ENTRY() self.DirectoryTableBase = v_uint32() self.LdtDescriptor = KGDTENTRY() self.Int21Descriptor = KIDTENTRY() self.ThreadListHead = LIST_ENTRY() ...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Start = v_uint32() self.Length = v_uint32() self.Reserved = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self)
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Length = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Length = v_uint32() self.EaList = v_ptr32() self.EaListLength = v_uint32() self.EaIndex = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Allocs = v_uint32() self.Frees = v_uint32() self.Size = v_uint32() self.TagIndex = v_uint16() self.CreatorBackTraceIndex = v_uint16() self.TagName = vstruct.VArray([ v_uint16() for i in xrange(24) ])
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.SecurityContext = v_ptr32() self.Options = v_uint32() self.Reserved = v_uint16() self.ShareAccess = v_uint16() self.Parameters = v_ptr32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Context = v_ptr32() self._pad0008 = v_bytes(size=4) self.Constraints = PROCESSOR_IDLE_CONSTRAINTS() self.DependencyCount = v_uint32() self.DependencyUsed = v_uint32() self.DependencyArray = v_ptr32() ...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Primary = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Version = v_uint32() self.Pool = v_ptr32() self.CleanupGroup = v_ptr32() self.CleanupGroupCancelCallback = v_ptr32() self.RaceDll = v_ptr32() self.ActivationContext = v_ptr32() self.FinalizationCallba...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Previous = v_ptr32() self.ActivationContext = v_ptr32() self.Flags = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Lock = EX_PUSH_LOCK() self.ViewListHead = LIST_ENTRY() self.PagedPoolQuotaCache = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.HandleAttributes = v_uint32() self.GrantedAccess = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Link = LIST_ENTRY() self.Master = v_ptr32() self.Members = KAFFINITY_EX() self.ProcessorCount = v_uint32() self.Processors = v_ptr32() self.GetFFHThrottleState = v_ptr32() self.BoostPolicyHandler = v_...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.EnabledFeatures = v_uint64() self.EnabledVolatileFeatures = v_uint64() self.Size = v_uint32() self.OptimizedSave = v_uint32() self.Features = vstruct.VArray([ XSTATE_FEATURE() for i in xrange(64) ])
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.ImpersonationData = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.BalancedRoot = RTL_BALANCED_LINKS() self.OrderedPointer = v_ptr32() self.WhichOrderedElement = v_uint32() self.NumberGenericTableElements = v_uint32() self.DepthOfTree = v_uint32() self.RestartKey = v_ptr32()...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Affinitized = v_uint32() self.Performance = v_uint32() self.Total = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.SizeOfFsFilterCallbacks = v_uint32() self.Reserved = v_uint32() self.PreAcquireForSectionSynchronization = v_ptr32() self.PostAcquireForSectionSynchronization = v_ptr32() self.PreReleaseForSectionSynchronization = v_...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.OwnerThread = v_uint32() self.IoPriorityBoosted = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Type = v_uint16() self.Size = v_uint16() self.DeviceObject = v_ptr32() self.PowerFlags = v_uint32() self.Dope = v_ptr32() self.ExtensionFlags = v_uint32() self.DeviceNode = v_ptr32() self.Atta...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.StackBase = v_uint32() self.ActualLimit = v_uint32() self.PreviousTrapFrame = v_ptr32() self.PreviousExceptionList = v_ptr32() self.Previous = KERNEL_STACK_SEGMENT()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Start = LARGE_INTEGER() self.Length = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.LocalData = v_ptr32() self.ActiveSubsegment = v_ptr32() self.CachedItems = vstruct.VArray([ v_ptr32() for i in xrange(16) ]) self.SListHeader = SLIST_HEADER() self.Counters = HEAP_BUCKET_COUNTERS() self.LastO...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.VolatileLowValue = v_uint32() self.HighValue = v_uint32()
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.TotalMemoryReserved = v_uint32() self.TotalMemoryCommitted = v_uint32() self.TotalMemoryLargeUCR = v_uint32() self.TotalSizeInVirtualBlocks = v_uint32() self.TotalSegments = v_uint32() self.TotalUCRs = v_uint...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.MailslotQuota = v_uint32() self.MaximumMessageSize = v_uint32() self.ReadTimeout = LARGE_INTEGER() self.TimeoutSpecified = v_uint8() self._pad0018 = v_bytes(size=7)
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.SizeOfFsFilterCallbackData = v_uint32() self.Operation = v_uint8() self.Reserved = v_uint8() self._pad0008 = v_bytes(size=2) self.DeviceObject = v_ptr32() self.FileObject = v_ptr32() self.Parameters =...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.DomainMembers = KAFFINITY_EX() self.Latency = v_uint32() self.BreakEvenDuration = v_uint32() self.Power = v_uint32() self.StateFlags = v_uint32() self.VetoAccounting = PPM_VETO_ACCOUNTING() self.State...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.Lock = v_uint32() self._pad0008 = v_bytes(size=4) self.CyclesLast = v_uint64() self.CyclesActive = v_uint64() self.Counters = vstruct.VArray([ v_ptr32() for i in xrange(2) ]) self.LastUpdateTime = v_uint64() ...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self) self.OperationID = LUID() self.SecurityEvaluated = v_uint8() self.GenerateAudit = v_uint8() self.GenerateOnClose = v_uint8() self.PrivilegesAllocated = v_uint8() self.Flags = v_uint32() self.RemainingDesir...
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]
def __init__(self): vstruct.VStruct.__init__(self)
atlas0fd00m/CanCat
[ 169, 34, 169, 6, 1428517921 ]