100+ results results for 'class String repo:floresj/notetime' (5234 ms)
47 */ 48public class ECGInterpretiveStatements { 49 50 /** (D.3-PAAAI, SCPECG[1.3], "AAI pacemaker") */ 51 public static final String AAIPacemaker = "D.3-PAAAI\\SCPECG[1.3]"; 52 53 /** (D.3-ABSVS, SCPECG[1.3], "aberrant complexes, possibly supraventricular origin") */ 54 public static final String AberrantComplexesPossiblySupraventricularOrigin = "D.3-ABSVS\\SCPECG[1.3]"; 55 56 /** (D.3-ABSVC, SCPECG[1.3], "aberrant complex, possibly supraventricular origin") */ 57 public static final String AberrantComplexPossiblySupraventricularOrigin = "D.3-ABSVC\\SCPECG[1.3]"; 58 59 /** (D.3-ABBCO, SCPECG[1.3], "aberrant conduction") */ 60 public static final String AberrantConduction = "D.3-ABBCO\\SCPECG[1.3]"; 61ConceptNames.java https://bitbucket.org/masoudn/veyohealth.git | Java | 1311 lines
47 */ 48public class ConceptNames { 49 50 /** (112028, DCM, "Abnormal Distribution of Anatomic Structure") */ 51 public static final String AbnormalDistributionOfAnatomicStructure = "112028\\DCM"; 52 53 /** (122451, DCM, "Abnormal Region") */ 54 public static final String AbnormalRegion = "122451\\DCM"; 55 56 /** (11612-9, LN, "Aborta") */ 57 public static final String Aborta = "11612-9\\LN"; 58 59 /** (122608, DCM, "Absolute Values Of Ventricular Measurements") */ 60 public static final String AbsoluteValuesOfVentricularMeasurements = "122608\\DCM"; 61ChestFindingOrFeatureModifier.java https://bitbucket.org/masoudn/veyohealth.git | Java | 607 lines
47 */ 48public class ChestFindingOrFeatureModifier { 49 50 /** (112004, DCM, "Abnormal interstitial pattern") */ 51 public static final String AbnormalInterstitialPattern = "112004\\DCM"; 52 53 /** (T-15420, SRT, "Acromioclavicular Joint") */ 54 public static final String AcromioclavicularJoint = "T-15420\\SRT"; 55 56 /** (112070, DCM, "Air bronchiologram") */ 57 public static final String AirBronchiologram = "112070\\DCM"; 58 59 /** (112071, DCM, "Air bronchogram") */ 60 public static final String AirBronchogram = "112071\\DCM"; 61CardiovascularAnatomicLocations_3010.java https://bitbucket.org/masoudn/veyohealth.git | Java | 442 lines
47 */ 48public class CardiovascularAnatomicLocations_3010 { 49 50 /** (T-42500, SRT, "Abdominal aorta") */ 51 public static final String AbdominalAorta = "T-42500\\SRT"; 52 53 /** (T-48503, SRT, "Anomalous pulmonary vein") */ 54 public static final String AnomalousPulmonaryVein = "T-48503\\SRT"; 55 56 /** (T-49215, SRT, "Antecubital vein") */ 57 public static final String AntecubitalVein = "T-49215\\SRT"; 58 59 /** (T-48440, SRT, "Anterior cardiac vein") */ 60 public static final String AnteriorCardiacVein = "T-48440\\SRT"; 61Breed.java https://bitbucket.org/masoudn/veyohealth.git | Java | 1221 lines
47 */ 48public class Breed { 49 50 /** (L-80886, SRT, "A.S.C.O.B. cocker spaniel dog breed") */ 51 public static final String A_S_C_O_B_CockerSpanielDogBreed = "L-80886\\SRT"; 52 53 /** (L-80105, SRT, "Aberdeen Angus cow breed") */ 54 public static final String AberdeenAngusCowBreed = "L-80105\\SRT"; 55 56 /** (L-801BB, SRT, "Abigar cattle breed") */ 57 public static final String AbigarCattleBreed = "L-801BB\\SRT"; 58 59 /** (L-8BAA3, SRT, "Abondance cattle breed") */ 60 public static final String AbondanceCattleBreed = "L-8BAA3\\SRT"; 61ArterialLesionLocations.java https://bitbucket.org/masoudn/veyohealth.git | Java | 364 lines
47 */ 48public class ArterialLesionLocations { 49 50 /** (T-42500, SRT, "Abdominal aorta") */ 51 public static final String AbdominalAorta = "T-42500\\SRT"; 52 53 /** (10, BARI[1992], "Acute Marginal Coronary Artery") */ 54 public static final String AcuteMarginalCoronaryArtery = "10\\BARI[1992]"; 55 56 /** (T-45530, SRT, "anterior communicating artery") */ 57 public static final String AnteriorCommunicatingArtery = "T-45530\\SRT"; 58 59 /** (T-45730, SRT, "anterior spinal artery") */ 60 public static final String AnteriorSpinalArtery = "T-45730\\SRT"; 61AnatomicRegion.java https://bitbucket.org/masoudn/veyohealth.git | Java | 1027 lines
47 */ 48public class AnatomicRegion { 49 50 /** (T-D4000, SRT, "Abdomen") */ 51 public static final String Abdomen = "T-D4000\\SRT"; 52 53 /** (R-FAB57, SRT, "Abdomen and Pelvis") */ 54 public static final String AbdomenAndPelvis = "R-FAB57\\SRT"; 55 56 /** (T-42500, SRT, "Abdominal aorta") */ 57 public static final String AbdominalAorta = "T-42500\\SRT"; 58 59 /** (T-41070, SRT, "Abdominal aorta and its branches") */ 60 public static final String AbdominalAortaAndItsBranches = "T-41070\\SRT"; 61ParticipantObject.java https://bitbucket.org/masoudn/veyohealth.git | Java | 499 lines
206 207 public static ParticipantObject createPatient(String id, String name) { 208 ParticipantObject pat = new ParticipantObject(id, IDTypeCode.PATIENT_ID); 240 241 public static ParticipantObject createQuerySOPClass(String cuid, 242 String tsuid, byte[] query) { 304 305 public IDTypeCode(String code, String codeSystemName, 306 String displayName) { 324 @Override 325 public String toString() { 326 return value; 370 @Override 371 public String toString() { 372 return value;AuditEvent.java https://bitbucket.org/masoudn/veyohealth.git | Java | 444 lines
253 254 public ID(String code, String codeSystemName, 255 String displayName) { 263 */ 264 public static class ActionCode { 265 292 293 private final String value; 294 299 @Override 300 public String toString() { 301 return value; 344 @Override 345 public String toString() { 346 return value;SyslogAppender2.java https://bitbucket.org/masoudn/veyohealth.git | Java | 912 lines
317 318 private static String toString(String[] ss) { 319 if (ss.length == 0) 325 int iMax = ss.length - 1; 326 StringBuilder b = new StringBuilder(); 327 for (int i = 0; ; i++) { 335 336 private static String[] split(String s) { 337 StringTokenizer stk = new StringTokenizer(s, " ,"); 340 throw new IllegalArgumentException(s); 341 String[] ss = new String[count]; 342 for (int i = 0; i < ss.length; i++) 367 368 public String getKeyPass() { 369 return new String(keyPass);bluff-src.js https://bitbucket.org/GTL/surveyjs-builder.git | JavaScript | 1489 lines
72 73Bluff.Base = new JS.Class({ 74 extend: { 219 // 220 // Or, send a geometry string for other ratios ('800x400', '400x225'). 221 initialize: function(renderer, target_width) { 245 // 246 // Subclasses can override this, call super, then set values separately. 247 // 247 // 248 // This makes it possible to set defaults in a subclass but still allow 249 // developers to change this values in their program.jahova.utilities.debugbar.js https://bitbucket.org/GTL/surveyjs-builder.git | JavaScript | 387 lines
77 os.Elements.DebugBar.id = "com.jahova.debugBar"; 78 os.Elements.DebugBar.className = "ideSidebar appBaseColor"; 79 document.body.appendChild(os.Elements.DebugBar); 90 os.Elements.DebugBarConsoleTab.id = "com.jahova.debugBar.Console.Tab"; 91 os.Elements.DebugBarConsoleTab.className = "ideSidebarTabFolderView jahova_borRadR2 sidebarTabColor"; 92 os.Elements.DebugBar.appendChild(os.Elements.DebugBarConsoleTab); 96 os.Elements.DebugBarConsoleTabLabel.id = "com.jahova.debugBar.Console.Tab.Label"; 97 os.Elements.DebugBarConsoleTabLabel.className = "ideSidebarTabTextFolderView textColorWhite"; 98 os.Elements.DebugBarConsoleTabLabel.innerHTML = "Console"; 103 os.Elements.DebugBarConsole.id = "com.jahova.debugBar.Console.Wrapper"; 104 os.Elements.DebugBarConsole.className = "ideSidebarPageFolderView sidebarTabColor jahova_borRadL2 jahova_borRadB2 jahova_transWp5s"; 105 //os.Elements.DebugBarConsole.style.visibility = "visible"; 111 os.Elements.DebugBarConsoleHeader.id = "com.jahova.debugBar.Console.Header"; 112 os.Elements.DebugBarConsoleHeader.className = "ideSidebarFolderHeader jahova_borRadT2 menuColor"; 113 os.Elements.DebugBarConsole.appendChild(os.Elements.DebugBarConsoleHeader);jahova.os.cores.thread.js https://bitbucket.org/GTL/surveyjs-builder.git | JavaScript | 582 lines
73 // 74 //Private Classes 75 // 270 CCommand.prototype.Serialize = function(){ 271 return JSON.stringify(this); 272 };jahova.os.cores.network.js https://bitbucket.org/GTL/surveyjs-builder.git | JavaScript | 580 lines
43 44 //Private Classes 45 var CNetworkMessage = function(){ 82 83 return JSON.stringify(this); 84 };jahova.os.cores.input.js https://bitbucket.org/GTL/surveyjs-builder.git | JavaScript | 663 lines
21 22 //Private Classes 23 var _eventID = 0; 283 284 var callbackArray = e.keyCode > 47 && e.keyCode < 91 ? _KeyDownEvents.get(String.fromCharCode(e.keyCode)) : _KeyDownControlKeyEvents.get(e.keyCode); 285 296 Keyup: function(e){ 297 var callbackArray = e.keyCode > 47 && e.keyCode < 91 ? _KeyUpEvents.get(String.fromCharCode(e.keyCode)) : _KeyUpControlKeyEvents.get(e.keyCode); 298state_update_service.py https://bitbucket.org/stateupdateservice/state-update-service.git | Python | 408 lines
15 nested_type = MakeDescriptor(desc) #descriptor.MakeDescriptor(desc) 16 class concrete(message.Message): 17 __metaclass__ = reflection.GeneratedProtocolMessageType 18 DESCRIPTOR = nested_type 19 nested_type._concrete_class = concrete 20 newDescriptor.nested_types.append(nested_type ) 28 29class StoreItem: 30 def __init__( self, key, session ): 110 protoMsg = reflection.ParseMessage( self.protobufDescriptor, value ) 111 protoMsg.MergeFromString( partialUpdate.appendBytes ) 112 except: 115 116 return protoMsg.SerializePartialToString() 117 else:descriptor_pb2.py https://bitbucket.org/stateupdateservice/state-update-service.git | Python | 1182 lines
15 package='google.protobuf', 16 serialized_pb='\n\x10\x64\x65scriptor.proto\x12\x0fgoogle.protobuf\"G\n\x11\x46ileDescriptorSet\x12\x32\n\x04\x66ile\x18\x01 \x03(\x0b\x32$.google.protobuf.FileDescriptorProto\"\xcb\x03\n\x13\x46ileDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07package\x18\x02 \x01(\t\x12\x12\n\ndependency\x18\x03 \x03(\t\x12\x19\n\x11public_dependency\x18\n \x03(\x05\x12\x17\n\x0fweak_dependency\x18\x0b \x03(\x05\x12\x36\n\x0cmessage_type\x18\x04 \x03(\x0b\x32 .google.protobuf.DescriptorProto\x12\x37\n\tenum_type\x18\x05 \x03(\x0b\x32$.google.protobuf.EnumDescriptorProto\x12\x38\n\x07service\x18\x06 \x03(\x0b\x32\'.google.protobuf.ServiceDescriptorProto\x12\x38\n\textension\x18\x07 \x03(\x0b\x32%.google.protobuf.FieldDescriptorProto\x12-\n\x07options\x18\x08 \x01(\x0b\x32\x1c.google.protobuf.FileOptions\x12\x39\n\x10source_code_info\x18\t \x01(\x0b\x32\x1f.google.protobuf.SourceCodeInfo\"\xa9\x03\n\x0f\x44\x65scriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x34\n\x05\x66ield\x18\x02 \x03(\x0b\x32%.google.protobuf.FieldDescriptorProto\x12\x38\n\textension\x18\x06 \x03(\x0b\x32%.google.protobuf.FieldDescriptorProto\x12\x35\n\x0bnested_type\x18\x03 \x03(\x0b\x32 .google.protobuf.DescriptorProto\x12\x37\n\tenum_type\x18\x04 \x03(\x0b\x32$.google.protobuf.EnumDescriptorProto\x12H\n\x0f\x65xtension_range\x18\x05 \x03(\x0b\x32/.google.protobuf.DescriptorProto.ExtensionRange\x12\x30\n\x07options\x18\x07 \x01(\x0b\x32\x1f.google.protobuf.MessageOptions\x1a,\n\x0e\x45xtensionRange\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\"\x94\x05\n\x14\x46ieldDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06number\x18\x03 \x01(\x05\x12:\n\x05label\x18\x04 \x01(\x0e\x32+.google.protobuf.FieldDescriptorProto.Label\x12\x38\n\x04type\x18\x05 \x01(\x0e\x32*.google.protobuf.FieldDescriptorProto.Type\x12\x11\n\ttype_name\x18\x06 \x01(\t\x12\x10\n\x08\x65xtendee\x18\x02 \x01(\t\x12\x15\n\rdefault_value\x18\x07 \x01(\t\x12.\n\x07options\x18\x08 \x01(\x0b\x32\x1d.google.protobuf.FieldOptions\"\xb6\x02\n\x04Type\x12\x0f\n\x0bTYPE_DOUBLE\x10\x01\x12\x0e\n\nTYPE_FLOAT\x10\x02\x12\x0e\n\nTYPE_INT64\x10\x03\x12\x0f\n\x0bTYPE_UINT64\x10\x04\x12\x0e\n\nTYPE_INT32\x10\x05\x12\x10\n\x0cTYPE_FIXED64\x10\x06\x12\x10\n\x0cTYPE_FIXED32\x10\x07\x12\r\n\tTYPE_BOOL\x10\x08\x12\x0f\n\x0bTYPE_STRING\x10\t\x12\x0e\n\nTYPE_GROUP\x10\n\x12\x10\n\x0cTYPE_MESSAGE\x10\x0b\x12\x0e\n\nTYPE_BYTES\x10\x0c\x12\x0f\n\x0bTYPE_UINT32\x10\r\x12\r\n\tTYPE_ENUM\x10\x0e\x12\x11\n\rTYPE_SFIXED32\x10\x0f\x12\x11\n\rTYPE_SFIXED64\x10\x10\x12\x0f\n\x0bTYPE_SINT32\x10\x11\x12\x0f\n\x0bTYPE_SINT64\x10\x12\"C\n\x05Label\x12\x12\n\x0eLABEL_OPTIONAL\x10\x01\x12\x12\n\x0eLABEL_REQUIRED\x10\x02\x12\x12\n\x0eLABEL_REPEATED\x10\x03\"\x8c\x01\n\x13\x45numDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x03(\x0b\x32).google.protobuf.EnumValueDescriptorProto\x12-\n\x07options\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.EnumOptions\"l\n\x18\x45numValueDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0e\n\x06number\x18\x02 \x01(\x05\x12\x32\n\x07options\x18\x03 \x01(\x0b\x32!.google.protobuf.EnumValueOptions\"\x90\x01\n\x16ServiceDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x36\n\x06method\x18\x02 \x03(\x0b\x32&.google.protobuf.MethodDescriptorProto\x12\x30\n\x07options\x18\x03 \x01(\x0b\x32\x1f.google.protobuf.ServiceOptions\"\x7f\n\x15MethodDescriptorProto\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\ninput_type\x18\x02 \x01(\t\x12\x13\n\x0boutput_type\x18\x03 \x01(\t\x12/\n\x07options\x18\x04 \x01(\x0b\x32\x1e.google.protobuf.MethodOptions\"\xe9\x03\n\x0b\x46ileOptions\x12\x14\n\x0cjava_package\x18\x01 \x01(\t\x12\x1c\n\x14java_outer_classname\x18\x08 \x01(\t\x12\"\n\x13java_multiple_files\x18\n \x01(\x08:\x05\x66\x61lse\x12,\n\x1djava_generate_equals_and_hash\x18\x14 \x01(\x08:\x05\x66\x61lse\x12\x46\n\x0coptimize_for\x18\t \x01(\x0e\x32).google.protobuf.FileOptions.OptimizeMode:\x05SPEED\x12\x12\n\ngo_package\x18\x0b \x01(\t\x12\"\n\x13\x63\x63_generic_services\x18\x10 \x01(\x08:\x05\x66\x61lse\x12$\n\x15java_generic_services\x18\x11 \x01(\x08:\x05\x66\x61lse\x12\"\n\x13py_generic_services\x18\x12 \x01(\x08:\x05\x66\x61lse\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption\":\n\x0cOptimizeMode\x12\t\n\x05SPEED\x10\x01\x12\r\n\tCODE_SIZE\x10\x02\x12\x10\n\x0cLITE_RUNTIME\x10\x03*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\xb8\x01\n\x0eMessageOptions\x12&\n\x17message_set_wire_format\x18\x01 \x01(\x08:\x05\x66\x61lse\x12.\n\x1fno_standard_descriptor_accessor\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\xbe\x02\n\x0c\x46ieldOptions\x12:\n\x05\x63type\x18\x01 \x01(\x0e\x32#.google.protobuf.FieldOptions.CType:\x06STRING\x12\x0e\n\x06packed\x18\x02 \x01(\x08\x12\x13\n\x04lazy\x18\x05 \x01(\x08:\x05\x66\x61lse\x12\x19\n\ndeprecated\x18\x03 \x01(\x08:\x05\x66\x61lse\x12\x1c\n\x14\x65xperimental_map_key\x18\t \x01(\t\x12\x13\n\x04weak\x18\n \x01(\x08:\x05\x66\x61lse\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption\"/\n\x05\x43Type\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x43ORD\x10\x01\x12\x10\n\x0cSTRING_PIECE\x10\x02*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"x\n\x0b\x45numOptions\x12\x19\n\x0b\x61llow_alias\x18\x02 \x01(\x08:\x04true\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"b\n\x10\x45numValueOptions\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"`\n\x0eServiceOptions\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"_\n\rMethodOptions\x12\x43\n\x14uninterpreted_option\x18\xe7\x07 \x03(\x0b\x32$.google.protobuf.UninterpretedOption*\t\x08\xe8\x07\x10\x80\x80\x80\x80\x02\"\x9e\x02\n\x13UninterpretedOption\x12;\n\x04name\x18\x02 \x03(\x0b\x32-.google.protobuf.UninterpretedOption.NamePart\x12\x18\n\x10identifier_value\x18\x03 \x01(\t\x12\x1a\n\x12positive_int_value\x18\x04 \x01(\x04\x12\x1a\n\x12negative_int_value\x18\x05 \x01(\x03\x12\x14\n\x0c\x64ouble_value\x18\x06 \x01(\x01\x12\x14\n\x0cstring_value\x18\x07 \x01(\x0c\x12\x17\n\x0f\x61ggregate_value\x18\x08 \x01(\t\x1a\x33\n\x08NamePart\x12\x11\n\tname_part\x18\x01 \x02(\t\x12\x14\n\x0cis_extension\x18\x02 \x02(\x08\"\xb1\x01\n\x0eSourceCodeInfo\x12:\n\x08location\x18\x01 \x03(\x0b\x32(.google.protobuf.SourceCodeInfo.Location\x1a\x63\n\x08Location\x12\x10\n\x04path\x18\x01 \x03(\x05\x42\x02\x10\x01\x12\x10\n\x04span\x18\x02 \x03(\x05\x42\x02\x10\x01\x12\x18\n\x10leading_comments\x18\x03 \x01(\t\x12\x19\n\x11trailing_comments\x18\x04 \x01(\tB)\n\x13\x63om.google.protobufB\x10\x44\x65scriptorProtosH\x01') 17 58 _descriptor.EnumValueDescriptor( 59 name='TYPE_STRING', index=8, number=9, 60 options=None, 161 _descriptor.EnumValueDescriptor( 162 name='STRING', index=0, number=0, 163 options=None, 169 _descriptor.EnumValueDescriptor( 170 name='STRING_PIECE', index=2, number=2, 171 options=None,TestProto.java https://bitbucket.org/stateupdateservice/state-update-service.git | Java | 1558 lines
179 .ensureFieldAccessorsInitialized( 180 testproto.TestProto.Test.class, testproto.TestProto.Test.Builder.class); 181 } 210 211 // optional string ab = 2; 212 /** 307 .ensureFieldAccessorsInitialized( 308 testproto.TestProto.Test.Embed.class, testproto.TestProto.Test.Embed.Builder.class); 309 } 361 (com.google.protobuf.ByteString) ref; 362 java.lang.String s = bs.toStringUtf8(); 363 if (bs.isValidUtf8()) { 381 } else { 382 return (com.google.protobuf.ByteString) ref; 383 }StateUpdateService.java https://bitbucket.org/stateupdateservice/state-update-service.git | Java | 1429 lines
59 /** 60 * <code>optional string protobufField = 4;</code> 61 * 215 .ensureFieldAccessorsInitialized( 216 net.stateupdateservice.StateUpdateService.PartialUpdate.class, net.stateupdateservice.StateUpdateService.PartialUpdate.Builder.class); 217 } 411 /** 412 * <code>optional string protobufField = 4;</code> 413 * 417 */ 418 public java.lang.String getProtobufField() { 419 java.lang.Object ref = protobufField_; 424 (com.google.protobuf.ByteString) ref; 425 java.lang.String s = bs.toStringUtf8(); 426 if (bs.isValidUtf8()) {StateService.java https://bitbucket.org/stateupdateservice/state-update-service.git | Java | 510 lines
33 private Set<String> sentDescriptorToServer = null; 34 private String cacheFilePath = null; 35 52 cache = (HashMap<String, CacheEntry>) ois.readObject(); 53 ByteString currentUpdateStructureString = (ByteString) ois.readObject(); 54 if( currentUpdateStructureString != null ) { 130 131 public StateService updateKey( String key, Message.Builder msg ) { 132 // This queues an update into memory (and flushes to cache) 155 156 public StateService partialUpdateKey( String key, Message.Builder msg ) { 157 if( currentUpdateStructure == null ) { 202 // Build a map, detailing what failed, if anything 203 HashMap<String, Boolean> statusInfoMap = new HashMap<String, Boolean>(); 204 for( UpdateStateResponseSet.UpdateStateResponse responseObj: responseSet.getResponsesList() ) {ServiceMessage.java https://bitbucket.org/stateupdateservice/state-update-service.git | Java | 661 lines
5 6public final class ServiceMessage { 7 private ServiceMessage() {} 31 */ 32 com.google.protobuf.ByteString getPacketData(); 33 } 36 */ 37 public static final class ServicePacket extends 38 com.google.protobuf.GeneratedMessage 121 .ensureFieldAccessorsInitialized( 122 net.stateupdateservice.ServiceMessage.ServicePacket.class, net.stateupdateservice.ServiceMessage.ServicePacket.Builder.class); 123 } 258 public static final int PACKETDATA_FIELD_NUMBER = 2; 259 private com.google.protobuf.ByteString packetData_; 260 /**R.java https://bitbucket.org/cynogn/owler.git | Java | 350 lines
2 * 3 * This class was automatically generated by the 4 * aapt tool from the resource data it found. It 9 10public final class R { 11 public static final class anim { 14 } 15 public static final class attr { 16 /** <p>May be a reference to another resource, in the form "<code>@[+][<i>package</i>:]<i>type</i>:<i>name</i></code>" 66 } 67 public static final class dimen { 68 /** Default screen margins, per the Android Design guidelines. 154 } 155 public static final class string { 156 public static final int _=0x7f060012;prototype.js https://github.com/ismell/jruby-rack.git | JavaScript | 1803 lines
53 54 Object.extend(klass, Class.Methods); 55 klass.superclass = parent; 78 addMethods: function(source) { 79 var ancestor = this.superclass && this.superclass.prototype; 80 var properties = Object.keys(source); 94 value.valueOf = method.valueOf.bind(method); 95 value.toString = method.toString.bind(method); 96 } 265 this.getUTCHours().toPaddedString(2) + ':' + 266 this.getUTCMinutes().toPaddedString(2) + ':' + 267 this.getUTCSeconds().toPaddedString(2) + 'Z"'; 550 551String.prototype.parseQuery = String.prototype.toQueryParams; 552effects.js https://github.com/ismell/jruby-rack.git | JavaScript | 1128 lines
34 35Element.collectTextNodesIgnoreClass = function(element, className) { 36 return $A($(element).childNodes).collect( function(node) { 38 ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? 39 Element.collectTextNodesIgnoreClass(node, className) : '')); 40 }).flatten().join(''); 116 new Element('span', {style: tagifyStyle}).update( 117 character == ' ' ? String.fromCharCode(160) : character), 118 child); 162 163Effect.ScopedQueue = Class.create(Enumerable, { 164 initialize: function() { 227 228Effect.Base = Class.create({ 229 position: null,controls.js https://github.com/ismell/jruby-rack.git | JavaScript | 963 lines
40var Autocompleter = { }; 41Autocompleter.Base = Class.create({ 42 baseInitialize: function(element, update, options) { 75 76 if(typeof(this.options.tokens) == 'string') 77 this.options.tokens = new Array(this.options.tokens); 198 this.index==i ? 199 Element.addClassName(this.getEntry(i),"selected") : 200 Element.removeClassName(this.getEntry(i),"selected"); 245 } else 246 value = Element.collectTextNodesIgnoreClass(selectedElement, 'informal'); 247 313 var bounds = this.getTokenBounds(); 314 return this.element.value.substring(bounds[0], bounds[1]).strip(); 315 },Validations.php https://github.com/rosianesrocha/nanico.git | PHP | 833 lines
41 */ 42class Validations 43{ 94 $this->record = new Errors($this->model); 95 $this->validators = array_intersect(array_keys(Reflections::instance()->get(get_class($this->model))->getStaticProperties()), self::$VALIDATION_FUNCTIONS); 96 } 177 * <code> 178 * class Car extends ActiveRecord\Model { 179 * static $validates_inclusion_of = array( 214 * @see validates_exclusion_of 215 * @param string $type Either inclusion or exclusion 216 * @param $attrs Validation definition 400 401 if (is_null($options['with']) || !is_string($options['with']) || !is_string($options['with'])) 402 throw new ValidationsArgumentError('A regular expression must be supplied as the [with] option of the configuration array.');Relationship.php https://github.com/rosianesrocha/nanico.git | PHP | 637 lines
253 { 254 $this->set_class_name(classify($this->attribute_name, true)); 255 } 258 { 259 $reflection = Reflections::instance()->add($class_name)->get($class_name); 260 263 264 $this->class_name = $class_name; 265 } 275 276 $conditions = SQLBuilder::create_conditions_from_underscored_string(Table::load(get_class($model))->conn,$condition_string,$condition_values); 277 451 { 452 $class_name = $this->class_name; 453 $this->set_keys(get_class($model));Model.php https://github.com/rosianesrocha/nanico.git | PHP | 1673 lines
7/** 8 * The base class for your models. 9 * 28 * <code> 29 * class Person extends ActiveRecord\Model { 30 * static $belongs_to = array( 30 * static $belongs_to = array( 31 * array('parent', 'foreign_key' => 'parent_id', 'class_name' => 'Person') 32 * ); 34 * static $has_many = array( 35 * array('children', 'foreign_key' => 'parent_id', 'class_name' => 'Person'), 36 * array('orders') 44 * 45 * class Order extends ActiveRecord\Model { 46 * static $belongs_to = array(ModelCriteriaTest.php https://github.com/1989gaurav/Propel.git | PHP | 1249 lines
14/** 15 * Test class for ModelCriteria. 16 * 20 */ 21class ModelCriteriaTest extends BookstoreTestBase 22{ 34 $c = new ModelCriteria('bookstore', 'Book'); 35 $this->assertEquals('Book', $c->getModelName(), 'getModelName() returns the name of the class associated to the model class'); 36 } 40 $c = new ModelCriteria('bookstore', 'Book'); 41 $this->assertEquals('BookPeer', $c->getModelPeerName(), 'getModelPeerName() returns the name of the Peer class associated to the model class'); 42 } 50 $c->setFormatter(ModelCriteria::FORMAT_STATEMENT); 51 $this->assertTrue($c->getFormatter() instanceof PropelStatementFormatter, 'setFormatter() accepts the name of a PropelFormatter class'); 52ModelCriteriaSelectTest.php https://github.com/1989gaurav/Propel.git | PHP | 383 lines
49 $this->assertEquals($expectedSQL, $this->con->getLastExecutedQuery(), 'find() called after select(string) selects a single column'); 50 $this->assertTrue($titles instanceof PropelArrayCollection, 'find() called after select(string) returns a PropelArrayCollection object'); 51 $this->assertTrue(is_array($titles->getData()), 'find() called after select(string) returns an empty PropelArrayCollection object'); 97 $authors = $c->find($this->con); 98 $this->assertEquals($authors->count(), 1, 'find() called after select(string) allows for where() statements'); 99 $expectedSQL = "SELECT author.FIRST_NAME AS \"FirstName\" FROM `author` WHERE author.FIRST_NAME = 'Neal'"; 99 $expectedSQL = "SELECT author.FIRST_NAME AS \"FirstName\" FROM `author` WHERE author.FIRST_NAME = 'Neal'"; 100 $this->assertEquals($expectedSQL, $this->con->getLastExecutedQuery(), 'find() called after select(string) allows for where() statements'); 101 } 102 103 public function testSelectStringFindOne() 104 { 112 $this->assertEquals($expectedSQL, $this->con->getLastExecutedQuery(), 'findOne() called after select(string) selects a single column and requests a single row'); 113 $this->assertTrue(is_string($title),'findOne() called after select(string) returns a string'); 114 $this->assertEquals($title, 'Harry Potter and the Order of the Phoenix', 'findOne() called after select(string) returns the column value of the first row matching the query');CriteriaTest.php https://github.com/1989gaurav/Propel.git | PHP | 1063 lines
13/** 14 * Test class for Criteria. 15 * 20 */ 21class CriteriaTest extends BookstoreTestBase 22{ 51 /** 52 * Test basic adding of strings. 53 */ 53 */ 54 public function testAddString() 55 { 59 60 // Add the string 61 $this->c->add($table . '.' . $column, $value);TableMapTest.php https://github.com/1989gaurav/Propel.git | PHP | 317 lines
214 { 215 $this->assertFalse($this->tmap->hasPrimaryStringColumn(), 'hasPrimaryStringColumn() returns false while none set.'); 216 $this->assertNull($this->tmap->getPrimaryStringColumn(), 'getPrimaryStringColumn() returns null while none set.'); 224 $this->assertTrue($this->tmap->hasPrimaryStringColumn(), 'hasPrimaryStringColumn() returns true after adding pkStr column.'); 225 $this->assertEquals($column, $this->tmap->getPrimaryStringColumn(), 'getPrimaryStringColumn() returns correct column.'); 226 } 229 { 230 $this->assertFalse($this->tmap->hasPrimaryStringColumn(), 'hasPrimaryStringColumn() returns false while none set.'); 231 237 238 $this->assertTrue($this->tmap->hasPrimaryStringColumn(), 'hasPrimaryStringColumn() returns true after adding pkStr column.'); 239 $this->assertEquals($column, $this->tmap->getPrimaryStringColumn(), 'getPrimaryStringColumn() returns correct column.'); 245 $tmap = new TestableTableMap(); 246 $this->assertEquals('', $tmap->normalizeColName(''), 'normalizeColName returns an empty string when passed an empty string'); 247 $this->assertEquals('BAR', $tmap->normalizeColName('bar'), 'normalizeColName uppercases the input');MysqlPlatformTest.php https://github.com/1989gaurav/Propel.git | PHP | 716 lines
19 */ 20class MysqlPlatformTest extends PlatformTestProvider 21{ 22 /** 23 * Get the Platform object for this class 24 * 344 $xtad = new XmlToAppData($platform); 345 $appData = $xtad->parseString($schema); 346 $table = $appData->getDatabase()->getTable('foo');GeneratedObjectTest.php https://github.com/1989gaurav/Propel.git | PHP | 1338 lines
13/** 14 * Tests the generated Object classes. 15 * 15 * 16 * This test uses generated Bookstore classes to test the behavior of various 17 * object operations. The _idea_ here is to test every possible generated method 21 * means that you can always rely on the contents of the databases being the same 22 * for each test method in this class. See the BookstoreDataPopulator::populate() 23 * method for the exact contents of the database. 28 */ 29class GeneratedObjectTest extends BookstoreEmptyTestBase 30{ 365 $opinion = new BookOpinion(); 366 $opinion->setBookId((string)$bookId); 367 $opinion->setReaderId((string)$readerId);BasePeer.php https://github.com/1989gaurav/Propel.git | PHP | 874 lines
11/** 12 * This is a utility class for all generated Peer classes in the system. 13 * 29 */ 30class BasePeer 31{ 74 75 static public function getFieldnames ($classname, $type = self::TYPE_PHPNAME) { 76 78 79 $peerclass = 'Base' . $classname . 'Peer'; // TODO is this always true? 80 $callable = array($peerclass, 'getFieldnames'); 88 89 $peerclass = 'Base' . $classname . 'Peer'; // TODO is this always true? 90 $callable = array($peerclass, 'translateFieldname');ModelCriteria.php https://github.com/1989gaurav/Propel.git | PHP | 1613 lines
148 * 149 * @param string|PropelFormatter $formatter a formatter class name, or a formatter instance 150 * @return ModelCriteria The current object, for fluid interface 173 if (null === $this->formatter) { 174 $formatterClass = $this->defaultFormatterClass; 175 $this->formatter = new $formatterClass(); 213 * 214 * @param string $column A string representing thecolumn phpName, e.g. 'AuthorId' 215 * @param mixed $value A value for the condition 407 * 408 * @param string $class The class name or alias 409 * 411 */ 412 public function groupByClass($class) 413 {Criteria.php https://github.com/1989gaurav/Propel.git | PHP | 1781 lines
337 * @param string $alias 338 * @return string $string 339 */ 390 * @param string $alias 391 * @return string $string 392 */ 404 * 405 * @param string $tableAliasOrName 406 * @return array($tableName, $tableAlias) 575 * @param string $key String name of the key. 576 * @return string A String with the value of the object at key. 577 */ 588 * 589 * @return string A String with the Database(Map) name. 590 */sfYamlParser.php https://github.com/1989gaurav/Propel.git | PHP | 600 lines
18/** 19 * sfYamlParser parses YAML strings to convert them to PHP arrays. 20 * 23 * @author Fabien Potencier <fabien.potencier@symfony-project.com> 24 * @version SVN: $Id: sfYamlParser.class.php 10832 2008-08-13 07:46:08Z fabien $ 25 */ 25 */ 26class sfYamlParser 27{ 47 * 48 * @param string $value A YAML string 49 * 291 * 292 * @return string A YAML string 293 */TableMap.php https://github.com/1989gaurav/Propel.git | PHP | 742 lines
163 * Peer and Object methods dynamically. 164 * @param string $classname The Classname 165 */ 267 * @param string name A String with the column name. 268 * @param string $type A string specifying the Propel type. 269 * @param boolean $isNotNull Whether column does not allow NULL values. 423 * @param string $fkTable A String with the foreign key table name. 424 * @param string $fkColumn A String with the foreign key column name. 425 * @param boolean $isNotNull Whether column does not allow NULL values. 459 * @param string $name The rule name of this validator 460 * @param string $classname The dot-path name of class to use (e.g. myapp.propel.MyValidator) 461 * @param string $value 474 $validator->setName($name); 475 $validator->setClass($classname); 476 $validator->setValue($value);PropelPDO.php https://github.com/1989gaurav/Propel.git | PHP | 772 lines
127 * @param string $dsn Connection DSN. 128 * @param string $username The user name for the DSN string. 129 * @param string $password The password for the DSN string. 455 /** 456 * Configures the PDOStatement class for this connection. 457 * 457 * 458 * @param string $class 459 * @param boolean $suppressError Whether to suppress an exception if the statement class cannot be set. 462 */ 463 protected function configureStatementClass($class = 'PDOStatement', $suppressError = true) 464 { 466 if (!$this->getAttribute(PDO::ATTR_PERSISTENT)) { 467 $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, array($class, array($this))); 468 } elseif (!$suppressError) {DBAdapter.php https://github.com/1989gaurav/Propel.git | PHP | 576 lines
152 * 153 * @param string $in The string whose case to ignore. 154 * @return string The string in a case that can be ignored. 164 * @param string $in The string whose case to ignore. 165 * @return string The string in a case that can be ignored. 166 */ 175 * @param string $s1 String to concatenate. 176 * @param string $s2 String to append. 177 * 184 * 185 * @param string $s String to extract from. 186 * @param integer $pos Offset to start from. 195 * 196 * @param string $s String to calculate length of. 197 * @return stringPropel.php https://github.com/1989gaurav/Propel.git | PHP | 924 lines
27 */ 28class Propel 29{ 85 /** 86 * The class name for a PropelPDO object. 87 */ 140 /** 141 * @var string The name of the database mapper class 142 */ 160 /** 161 * @var array A map of class names and their file paths for autoloading 162 */ 274 if (isset(self::$configuration['classmap']) && is_array(self::$configuration['classmap'])) { 275 PropelAutoloader::getInstance()->addClassPaths(self::$configuration['classmap']); 276 PropelAutoloader::getInstance()->register();database.xsd https://github.com/1989gaurav/Propel.git | XML Schema | 918 lines
138 <xs:simpleType name="inh_option"> 139 <xs:restriction base="xs:string"> 140 <xs:enumeration value="single"/> 151 <xs:simpleType name="php_type"> 152 <xs:restriction base="xs:string"> 153 <xs:pattern value="[\w_]+"/> 230 <xs:complexType name="parameter"> 231 <xs:attribute name="name" type="xs:string" use="required"/> 232 <xs:attribute name="value" type="xs:string" use="required"/> 254 <xs:attribute name="message" type="xs:string" use="optional"/> 255 <xs:attribute name="class" type="xs:string" use="optional"/> 256 </xs:complexType> 296 <xs:attribute name="key" type="xs:string" use="required"/> 297 <xs:attribute name="class" type="xs:string" use="required"/> 298 <xs:attribute name="package" type="xs:string" use="optional"/>AbstractPropelDataModelTask.php https://github.com/1989gaurav/Propel.git | PHP | 573 lines
20 * 21 * The subclasses invoke templates to do the actual writing of the resulting files. 22 * 27 */ 28abstract class AbstractPropelDataModelTask extends Task 29{ 110 * Optional database connection url. 111 * @var string 112 */ 116 * Optional database connection user name. 117 * @var string 118 */ 122 * Optional database connection password. 123 * @var string 124 */PgsqlSchemaParser.php https://github.com/1989gaurav/Propel.git | PHP | 566 lines
19 */ 20class PgsqlSchemaParser extends BaseSchemaParser 21{ 94 c.relname, n.nspname 95 FROM pg_class c join pg_namespace n on (c.relnamespace=n.oid) 96 WHERE c.relkind = 'r' 121 // Create a wrapper to hold these tables and their associated OID 122 $wrap = new stdClass; 123 $wrap->table = $table; 153 * 154 * @param Table $table The Table model class to add columns to. 155 * @param int $oid The table OID 155 * @param int $oid The table OID 156 * @param string $version The database version. 157 */MysqlPlatform.php https://github.com/1989gaurav/Propel.git | PHP | 609 lines
79 * 80 * @param string $defaultTableEngine 81 */ 89 * 90 * @return string 91 */ 258 $sqlType = $domain->getSqlType(); 259 $notNullString = $this->getNullString($col->isNotNull()); 260 $defaultSetting = $this->getColumnDefaultValueDDL($col); 330 * @param Index $index 331 * @return string 332 */ 578 /** 579 * Escape the string for RDBMS. 580 * @param string $textDefaultPlatform.php https://github.com/1989gaurav/Propel.git | PHP | 1129 lines
23 */ 24class DefaultPlatform implements PropelPlatformInterface 25{ 54 /** 55 * Set the database connection to use for this Platform class. 56 * @param PDO $con Database connection to use in this platform. 63 /** 64 * Returns the database connection to use for this Platform class. 65 * @return PDO The database connection or NULL if none has been set. 84 * 85 * @param string $name 86 * @return mixed 124 * For example MysqlPlatform->getDatabaseType() returns 'mysql'. 125 * @return string 126 */PropelTableDiff.php https://github.com/1989gaurav/Propel.git | PHP | 725 lines
20 */ 21class PropelTableDiff 22{ 95 * 96 * @param string $columnName 97 * @param Column $addedColumn 106 * 107 * @param string $columnName 108 */ 126 * 127 * @param string $columnName 128 * 148 * 149 * @param string $columnName 150 * @param Column $removedColumnTable.php https://github.com/1989gaurav/Propel.git | PHP | 1909 lines
176 /** 177 * Whether this table should result in abstract OM classes. 178 * 197 /** 198 * The base class to extend for the generated "object" class. 199 * 204 /** 205 * The base peer class to extend for generated "peer" class. 206 * 342 $this->abstractValue = $this->booleanValue($this->getAttribute("abstract")); 343 $this->baseClass = $this->getAttribute("baseClass"); 344 $this->basePeer = $this->getAttribute("basePeer"); 356 $this->isCrossRef = $this->getAttribute("isCrossRef", false); 357 $this->defaultStringFormat = $this->getAttribute('defaultStringFormat'); 358 }ForeignKey.php https://github.com/1989gaurav/Propel.git | PHP | 683 lines
13/** 14 * A Class for information about foreign keys of a table. 15 * 22 */ 23class ForeignKey extends XMLElement 24{ 55 * 56 * @param string $name 57 */ 117 * returns the onUpdate attribute 118 * @return string 119 */ 126 * Returns the onDelete attribute 127 * @return string 128 */Database.php https://github.com/1989gaurav/Propel.git | PHP | 656 lines
83 $this->name = $this->getAttribute("name"); 84 $this->baseClass = $this->getAttribute("baseClass"); 85 $this->basePeer = $this->getAttribute("basePeer"); 215 * 216 * @param string $defaultStringFormat Any of 'XML', 'YAML', 'JSON', or 'CSV' 217 */ 217 */ 218 public function setDefaultStringFormat($defaultStringFormat) 219 { 219 { 220 $this->defaultStringFormat = $defaultStringFormat; 221 } 225 * 226 * @return string The default string format 227 */Column.php https://github.com/1989gaurav/Propel.git | PHP | 1279 lines
18/** 19 * A Class for holding data about a column used in an Application. 20 * 56 * Native PHP type (scalar or class name) 57 * @var string "string", "boolean", "int", "double" 58 */ 196 197 $this->isPrimaryString = $this->booleanValue($this->getAttribute("primaryString")); 198 330 * not already set. 331 * @return string 332 */ 467 * 468 * @return string The type name. 469 * @see getPhpNative()QueryBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 1290 lines
71 $queryClass = $this->getStubQueryBuilder()->getClassname(); 72 $modelClass = $this->getStubObjectBuilder()->getClassname(); 73 $parentClass = $this->getBehaviorContent('parentClass'); 73 $parentClass = $this->getBehaviorContent('parentClass'); 74 $parentClass = null === $parentClass ? 'ModelCriteria' : $parentClass; 75 $script .= " 134 * @method $modelClass findOne(PropelPDO \$con = null) Return the first $modelClass matching the query 135 * @method $modelClass findOneOrCreate(PropelPDO \$con = null) Return the first $modelClass matching the query, or a new $modelClass object populated from the query conditions when no match is found 136 *"; 153 */ 154abstract class ".$this->getClassname()." extends " . $parentClass . " 155{ 366 $pks = $table->getPrimaryKey(); 367 $class = $class = $this->getStubObjectBuilder()->getClassname(); 368 $this->declareClasses('PropelPDO');PHP5PeerBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 1540 lines
16 * 17 * This class produces the base peer class (e.g. BaseMyPeer) which contains all 18 * the custom-built query and manipulator methods. 92 /** 93 * Adds class phpdoc comment and openning of class. 94 * @param string &$script The script will be modified in this method. 126 */ 127abstract class ".$this->getClassname(). $extendingPeerClass . " { 128"; 442 * BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM 443 * @param string \$toType One of the class type constants 444 * @return string translated name of the field. 465 $this->declareClassFromBuilder($this->getTableMapBuilder()); 466 $callingClass = $this->getStubPeerBuilder()->getClassname(); 467 $script .= "PHP5ObjectNoCollectionBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 969 lines
15 * 16 * This class produces the base object class (e.g. BaseMyTable) which contains all 17 * the custom-built accessor and setter methods. 24 * This class is not used by default. You must override 25 * the propel.builder.object.class setting in build.properties to use it: 26 * <code> 26 * <code> 27 * propel.builder.object.class = builder.om.PHP5ObjectNoCollectionBuilder 28 * </code> 192 $script .= " 193 \$criteria = new Criteria(".$this->getPeerClassname()."::DATABASE_NAME);"; 194 foreach ($this->getTable()->getColumns() as $col) { 444 $fkObjectBuilder = $this->getNewObjectBuilder($this->getForeignTable($fk))->getStubObjectBuilder(); 445 $className = $fkObjectBuilder->getClassname(); // get the Classname that has maybe a prefix 446PHP5ObjectBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 1613 lines
15 * 16 * This class produces the base object class (e.g. BaseMyTable) which contains all 17 * the custom-built accessor and setter methods. 169 /** 170 * Adds class phpdoc comment and openning of class. 171 * @param string &$script The script will be modified in this method. 180 $parentClass = $this->getBehaviorContent('parentClass'); 181 $parentClass = (null !== $parentClass) ? $parentClass : ClassTools::classname($this->getBaseClass()); 182 $script .= " 198 */ 199abstract class ".$this->getClassname()." extends ".$parentClass." "; 200 202 if ($interface) { 203 $script .= " implements " . ClassTools::classname($interface); 204 }PHP5NodePeerBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 751 lines
15 * 16 * This class produces the base tree node object class (e.g. BaseMyTable) which contains all 17 * the custom-built accessor and setter methods. 177 $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); 178 $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); 179 442 \$sql = \"UPDATE \" . $peerClassname::TABLE_NAME . \" \" . 443 \"SET \$setcol=\" . \$db->concatString('?', \$db->subString(\$npath, '?', '?')) . \" \" . 444 \"WHERE \$npath = ? OR \$npath LIKE ?\"; 463 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 464 $objectClassname = $this->getStubObjectBuilder()->getClassname(); 465 466 $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); 467 $nodeObjectClassname = $this->getStubNodeBuilder()->getClassname(); 468PHP5NodeBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 1101 lines
15 * 16 * This class produces the base tree node object class (e.g. BaseMyTable) which contains all 17 * the custom-built accessor and setter methods. 51 /** 52 * Adds class phpdoc comment and openning of class. 53 * @param string &$script The script will be modified in this method. 411 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 412 $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); 413 434 \$criteria->add($nodePeerClassname::NPATH_COLNAME, \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . '%', Criteria::LIKE); 435 \$criteria->addAnd($nodePeerClassname::NPATH_COLNAME, \$this->getNodePath() . $nodePeerClassname::NPATH_SEP . '%' . $nodePeerClassname::NPATH_SEP . '%', Criteria::NOT_LIKE); 436 $peerClassname::addSelectColumns(\$criteria); 511 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 512 $nodePeerClassname = $this->getStubNodePeerBuilder()->getClassname(); 513PHP5NestedSetPeerBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 1670 lines
54 /** 55 * Adds class phpdoc comment and openning of class. 56 * @param string &$script The script will be modified in this method. 82 */ 83abstract class ".$this->getClassname()." extends ".$this->getPeerBuilder()->getClassName()." implements NodePeer { 84"; 388 $objectClassname = $this->getStubObjectBuilder()->getClassname(); 389 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 390 $script .= " 483 484 $peerClassname::insertAsParentOf($peerClassname::retrieveRoot(\$sidv, \$con), \$node, \$con); 485 } 491 $objectClassname = $this->getStubObjectBuilder()->getClassname(); 492 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 493 $script .= "PHP5NestedSetBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 1136 lines
82 */ 83abstract class ".$this->getClassname()." extends ".$this->getObjectBuilder()->getClassname()." implements NodeObject { 84"; 294 { 295 $objectClassName = $this->getStubObjectBuilder()->getClassname(); 296 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 428 { 429 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 430 $script .= " 590 { 591 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 592 $script .= " 606 { 607 $peerClassname = $this->getStubPeerBuilder()->getClassname(); 608 $script .= "OMBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 542 lines
16 * OM-building classes are those that build a PHP (or other) class to service 17 * a single table. This includes Peer classes, Entity classes, Map classes, 18 * Node classes, Nested Set classes, etc. 91 /** 92 * Returns the qualified (prefixed) classname that is being built by the current class. 93 * This method must be implemented by child classes. 196 if (($pos = strrpos($fullyQualifiedClassName, '\\')) !== false) { 197 $this->declareClassNamespace(substr($fullyQualifiedClassName, $pos + 1), substr($fullyQualifiedClassName, 0, $pos)); 198 } else { 288 * @param Column $col The column we need a name for. 289 * @param string $classname The Peer classname to use. 290 * 290 * 291 * @return string If $classname is provided, then will return $classname::COLUMN_NAME; if not, then the peername is looked up for current table to yield $currTablePeer::COLUMN_NAME. 292 */DataModelBuilder.php https://github.com/1989gaurav/Propel.git | PHP | 622 lines
11/** 12 * This is the base class for any builder class that is using the data model. 13 * 13 * 14 * This could be extended by classes that build SQL DDL, PHP classes, configuration 15 * files, input forms, etc. 16 * 17 * The GeneratorConfig needs to be set on this class in order for the builders 18 * to be able to access the propel generator build properties. You should be 368 /** 369 * Gets a new data model builder class for specified table and classname. 370 * 371 * @param Table $table 372 * @param string $classname The class of builder 373 * @return DataModelBuilderVersionableBehaviorObjectBuilderModifier.php https://github.com/1989gaurav/Propel.git | PHP | 514 lines
18{ 19 protected $behavior, $table, $builder, $objectClassname, $peerClassname; 20 210 $versionTable = $this->behavior->getVersionTable(); 211 $versionARClassname = $this->builder->getNewStubObjectBuilder($versionTable)->getClassname(); 212 $script .= " 400 { 401 $versionARClassname = $this->builder->getNewStubObjectBuilder($this->behavior->getVersionTable())->getClassname(); 402 $script .= " 423 $versionTable = $this->behavior->getVersionTable(); 424 $versionARClassname = $this->builder->getNewStubObjectBuilder($versionTable)->getClassname(); 425 $versionForeignColumn = $versionTable->getColumn($this->behavior->getParameter('version_column')); 447 $versionTable = $this->behavior->getVersionTable(); 448 $versionARClassname = $this->builder->getNewStubObjectBuilder($versionTable)->getClassname(); 449 $versionForeignColumn = $versionTable->getColumn($this->behavior->getParameter('version_column'));SortableBehaviorObjectBuilderModifier.php https://github.com/1989gaurav/Propel.git | PHP | 636 lines
19{ 20 protected $behavior, $table, $builder, $objectClassname, $peerClassname; 21 45 $this->builder = $builder; 46 $this->objectClassname = $builder->getStubObjectBuilder()->getClassname(); 47 $this->queryClassname = $builder->getStubQueryBuilder()->getClassname(); 47 $this->queryClassname = $builder->getStubQueryBuilder()->getClassname(); 48 $this->peerClassname = $builder->getStubPeerBuilder()->getClassname(); 49 } 291 $useScope = $this->behavior->useScope(); 292 $peerClassname = $this->peerClassname; 293 $script .= " 381 $useScope = $this->behavior->useScope(); 382 $peerClassname = $this->peerClassname; 383 $script .= "svghelper.c https://github.com/mstsirkin/kvm.git | C | 501 lines
18#include <unistd.h> 19#include <string.h> 20 126 127 fprintf(svgfile, "<rect x=\"%4.8f\" width=\"%4.8f\" y=\"%4.1f\" height=\"%4.1f\" class=\"%s\"/>\n", 128 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT, type); 136 137 fprintf(svgfile, "<rect x=\"%4.8f\" width=\"%4.8f\" y=\"%4.1f\" height=\"%4.1f\" class=\"sample\"/>\n", 138 time2pixels(start), time2pixels(end)-time2pixels(start), Yslot * SLOT_MULT, SLOT_HEIGHT); 152 153static char *time_to_string(u64 duration) 154{ 184 185 text = time_to_string(end-start); 186midi.c https://github.com/mstsirkin/kvm.git | C | 1783 lines
8 * NetBSD's umidi driver by Takuya SHIOZAKI, 9 * the "USB Device Class Definition for MIDI Devices" by Roland 10 * 42#include <linux/spinlock.h> 43#include <linux/string.h> 44#include <linux/init.h>msnd.c https://github.com/mstsirkin/kvm.git | C | 707 lines
7 * that is used by the pinnacle and the classic driver. 8 * since there is no classic driver for alsa yet (i dont have a classic 9 * & writing one blindfold is difficult) this file's object is statically 9 * & writing one blindfold is difficult) this file's object is statically 10 * linked into the pinnacle-driver-module for now. look for the string 11 * "uncomment this to make this a module again" 156 outb(inb(dev->io + HP_ICR) | HPICR_TREQ, dev->io + HP_ICR); 157 if (dev->type == msndClassic) 158 outb(dev->irqid, dev->io + HP_IRQM); 191 outb(inb(dev->io + HP_ICR) & ~HPICR_RREQ, dev->io + HP_ICR); 192 if (dev->type == msndClassic) 193 outb(HPIRQ_NONE, dev->io + HP_IRQM);portman2x4.c https://github.com/mstsirkin/kvm.git | C | 878 lines
25 * Sep 03 2004 Tobias Gehrig <tobias@gehrig.tk> 26 * - fixed compilation problem with alsa 1.0.6a (removed MODULE_CLASSES, 27 * MODULE_PARM_SYNTAX and changed MODULE_DEVICES to 64module_param_array(id, charp, NULL, S_IRUGO); 65MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard."); 66module_param_array(enable, bool, NULL, S_IRUGO);timer.c https://github.com/mstsirkin/kvm.git | C | 1919 lines
137 continue; 138 if ((timer->tmr_class == SNDRV_TIMER_CLASS_CARD || 139 timer->tmr_class == SNDRV_TIMER_CLASS_PCM) && 186 list_for_each_entry(master, &timer->open_list_head, open_list) { 187 if (slave->slave_class == master->slave_class && 188 slave->slave_id == master->slave_id) { 239 /* open a slave instance */ 240 if (tid->dev_sclass <= SNDRV_TIMER_SCLASS_NONE || 241 tid->dev_sclass > SNDRV_TIMER_SCLASS_OSS_SEQUENCER) { 250 } 251 timeri->slave_class = tid->dev_sclass; 252 timeri->slave_id = tid->device; 288 } 289 timeri->slave_class = tid->dev_sclass; 290 timeri->slave_id = slave_id;services.c https://github.com/mstsirkin/kvm.git | C | 2049 lines
138 139 /* An empty class string skips ahead */ 140 if (!strcmp(p_in->name, "")) { 144 145 p_out->value = string_to_security_class(pol, p_in->name); 146 if (!p_out->value) { 195 196static u16 unmap_class(u16 tclass) 197{ 468 struct common_datum *common_dat; 469 struct class_datum *tclass_dat; 470 struct audit_buffer *ab; 482 tclass_name = sym_name(&policydb, SYM_CLASSES, tclass - 1); 483 tclass_dat = policydb.class_val_to_struct[tclass - 1]; 484 common_dat = tclass_dat->comdatum;policydb.c https://github.com/mstsirkin/kvm.git | C | 2435 lines
215 216 v = ft1->tclass - ft2->tclass; 217 if (v) 243 244 v = key1->target_class - key2->target_class; 245 327 struct policydb *p; 328 struct class_datum *cladatum; 329 struct flex_array *fa; 334 return -EINVAL; 335 fa = p->sym_val_to_name[SYM_CLASSES]; 336 if (flex_array_put_ptr(fa, cladatum->value - 1, key, 519 p->class_val_to_struct = 520 kmalloc(p->p_classes.nprim * sizeof(*(p->class_val_to_struct)), 521 GFP_KERNEL);selinuxfs.c https://github.com/mstsirkin/kvm.git | C | 1990 lines
23#include <linux/init.h> 24#include <linux/string.h> 25#include <linux/security.h> 68 69/* global data for classes */ 70static struct dentry *class_dir; 70static struct dentry *class_dir; 71static unsigned long last_class_ino; 72 95 return avc_has_perm(sid, SECINITSID_SECURITY, 96 SECCLASS_SECURITY, perms, NULL); 97} 125#define SEL_BOOL_INO_OFFSET 0x02000000 126#define SEL_CLASS_INO_OFFSET 0x04000000 127#define SEL_POLICYCAP_INO_OFFSET 0x08000000hooks.c https://github.com/mstsirkin/kvm.git | C | 2016 lines
76#include <linux/audit.h> 77#include <linux/string.h> 78#include <linux/selinux.h> 94 95extern int selinux_nlmsg_lookup(u16 sclass, u16 nlmsg_type, u32 *perm); 96extern struct security_operations *security_ops; 210 isec->sid = SECINITSID_UNLABELED; 211 isec->sclass = SECCLASS_FILE; 212 isec->task_sid = sid; 330 331 rc = avc_has_perm(tsec->sid, sbsec->sid, SECCLASS_FILESYSTEM, 332 FILESYSTEM__RELABELFROM, NULL); 335 336 rc = avc_has_perm(tsec->sid, sid, SECCLASS_FILESYSTEM, 337 FILESYSTEM__RELABELTO, NULL);util.c https://github.com/mstsirkin/kvm.git | C | 657 lines
67 68static void set_classic_theme(void) 69{ 144{ 145 set_classic_theme(); 146 DLG_COLOR(title, COLOR_BLUE, COLOR_WHITE, true); 163 set_bluetitle_theme(); 164 else if (strcmp(theme, "classic") == 0) 165 set_classic_theme(); 323/* 324 * Print a string of text in a window, automatically wrap around to the 325 * next line if the string is too long to fit on one line. Newline 473/* 474 * Return the position of the first alphabetic character in a string. 475 */get_maintainer.pl https://github.com/mstsirkin/kvm.git | Perl | 1984 lines
89 90# VCS command support: class-like functions and strings 91nl80211.c https://github.com/mstsirkin/kvm.git | C | 1853 lines
70 [NL80211_ATTR_WIPHY] = { .type = NLA_U32 }, 71 [NL80211_ATTR_WIPHY_NAME] = { .type = NLA_NUL_STRING, 72 .len = 20-1 }, 79 [NL80211_ATTR_WIPHY_RTS_THRESHOLD] = { .type = NLA_U32 }, 80 [NL80211_ATTR_WIPHY_COVERAGE_CLASS] = { .type = NLA_U8 }, 81 83 [NL80211_ATTR_IFINDEX] = { .type = NLA_U32 }, 84 [NL80211_ATTR_IFNAME] = { .type = NLA_NUL_STRING, .len = IFNAMSIZ-1 }, 85 115 116 [NL80211_ATTR_REG_ALPHA2] = { .type = NLA_STRING, .len = 2 }, 117 [NL80211_ATTR_REG_RULES] = { .type = NLA_NESTED },svcsock.c https://github.com/mstsirkin/kvm.git | C | 1665 lines
78#ifdef CONFIG_DEBUG_LOCK_ALLOC 79static struct lock_class_key svc_key[2]; 80static struct lock_class_key svc_slock_key[2]; 81 82static void svc_reclassify_socket(struct socket *sock) 83{ 87 case AF_INET: 88 sock_lock_init_class_and_name(sk, "slock-AF_INET-NFSD", 89 &svc_slock_key[0], 94 case AF_INET6: 95 sock_lock_init_class_and_name(sk, "slock-AF_INET6-NFSD", 96 &svc_slock_key[1], 105#else 106static void svc_reclassify_socket(struct socket *sock) 107{svcauth_unix.c https://github.com/mstsirkin/kvm.git | C | 904 lines
127 struct ip_map *new = container_of(cnew, struct ip_map, h); 128 return strcmp(orig->m_class, new->m_class) == 0 && 129 ipv6_addr_equal(&orig->m_addr, &new->m_addr); 135 136 strcpy(new->m_class, item->m_class); 137 ipv6_addr_copy(&new->m_addr, &item->m_addr); 206 /* class */ 207 len = qword_get(&mesg, class, sizeof(class)); 208 if (len <= 0) return -EINVAL; 247 /* IPv6 scope IDs are ignored for now */ 248 ipmp = __ip_map_lookup(cd, class, &sin6.sin6_addr); 249 if (ipmp) { 298 299 strcpy(ip.m_class, class); 300 ipv6_addr_copy(&ip.m_addr, addr);sch_htb.c https://github.com/mstsirkin/kvm.git | C | 1587 lines
177/** 178 * htb_classify - classify a packet into class 179 * 245 * 246 * Routine adds class to the list (actually tree) sorted by classid. 247 * Make sure that class is not already on such list for given prio. 258 259 if (cl->common.classid > c->common.classid) 260 p = &parent->rb_right; 460/** 461 * htb_class_mode - computes and returns current class mode 462 * 471static inline enum htb_cmode 472htb_class_mode(struct htb_class *cl, long *diff) 473{sch_hfsc.c https://github.com/mstsirkin/kvm.git | C | 1744 lines
122 struct hfsc_sched *sched; /* scheduler data */ 123 struct hfsc_class *cl_parent; /* parent class */ 124 struct list_head siblings; /* sibling classes */ 177 struct hfsc_class root; /* root class */ 178 struct Qdisc_class_hash clhash; /* class hash */ 179 struct rb_root eligible; /* eligible tree */ 224 225/* find the class with the minimum deadline among the eligible classes */ 226static inline struct hfsc_class * 228{ 229 struct hfsc_class *p, *cl = NULL; 230 struct rb_node *n; 241 242/* find the class with minimum eligible time among the eligible classes */ 243static inline struct hfsc_class *sch_cbq.c https://github.com/mstsirkin/kvm.git | C | 2075 lines
144struct cbq_sched_data { 145 struct Qdisc_class_hash clhash; /* Hash table of all classes */ 146 int nclasses[TC_CBQ_MAXPRIO + 1]; 409 410/* TC_CBQ_OVL_CLASSIC: (default) penalize leaf class by adding offtime */ 411 411 412static void cbq_ovl_classic(struct cbq_class *cl) 413{ 461 462/* TC_CBQ_OVL_RCLASSIC: penalize by offtime classes in hierarchy, when 463 * they go overlimit 465 466static void cbq_ovl_rclassic(struct cbq_class *cl) 467{sch_atm.c https://github.com/mstsirkin/kvm.git | C | 691 lines
23 * (aka "filters"), which in turn select classes of this queuing discipline. 24 * Each class maps the flow(s) it is handling to a given VC. Multiple classes 25 * may share the same VC. 77 list_for_each_entry(flow, &p->flows, list) { 78 if (flow->classid == classid) 79 return flow; 115 116 pr_debug("atm_tc_get(sch %p,[qdisc %p],classid %x)\n", sch, p, classid); 117 flow = lookup_flow(sch, classid); 186 187static int atm_tc_change(struct Qdisc *sch, u32 classid, u32 parent, 188 struct nlattr **tca, unsigned long *arg) 289 flow->vcc->pop = sch_atm_pop; 290 flow->classid = classid; 291 flow->ref = 1;sch_api.c https://github.com/mstsirkin/kvm.git | C | 1805 lines
544 545void qdisc_class_hash_grow(struct Qdisc *sch, struct Qdisc_class_hash *clhash) 546{ 594 595void qdisc_class_hash_destroy(struct Qdisc_class_hash *clhash) 596{ 600 601void qdisc_class_hash_insert(struct Qdisc_class_hash *clhash, 602 struct Qdisc_class_common *cl) 606 INIT_HLIST_NODE(&cl->hnode); 607 h = qdisc_class_hash(cl->classid, clhash->hashmask); 608 hlist_add_head(&cl->hnode, &clhash->hash[h]); 612 613void qdisc_class_hash_remove(struct Qdisc_class_hash *clhash, 614 struct Qdisc_class_common *cl)em_meta.c https://github.com/mstsirkin/kvm.git | C | 872 lines
51 * or mask may be applied to extend the functionaliy. As of now, 52 * the variable length type supports shifting the byte string to 53 * the right, eating up any number of octets and thus supporting 65#include <linux/sched.h> 66#include <linux/string.h> 67#include <linux/skbuff.h> 249 250META_COLLECTOR(int_rtclassid) 251{ 254 else 255#ifdef CONFIG_IP_ROUTE_CLASSID 256 dst->value = skb_dst(skb)->tclassid; 505 [META_ID(TCINDEX)] = META_FUNC(int_tcindex), 506 [META_ID(RTCLASSID)] = META_FUNC(int_rtclassid), 507 [META_ID(RTIIF)] = META_FUNC(int_rtiif),cls_u32.c https://github.com/mstsirkin/kvm.git | C | 817 lines
1/* 2 * net/sched/cls_u32.c Ugly (or Universal) 32bit key Packet Classifier. 3 * 14 * 15 * This scheme is the best universal classifier I managed to 16 * invent; it is not super-fast, but it is not slow (provided you 36#include <linux/kernel.h> 37#include <linux/string.h> 38#include <linux/errno.h> 95 96static int u32_classify(struct sk_buff *skb, const struct tcf_proto *tp, struct tcf_result *res) 97{ 528 if (tb[TCA_U32_CLASSID]) { 529 n->res.classid = nla_get_u32(tb[TCA_U32_CLASSID]); 530 tcf_bind_filter(tp, &n->res, base);af_rose.c https://github.com/mstsirkin/kvm.git | C | 1643 lines
25#include <linux/timer.h> 26#include <linux/string.h> 27#include <linux/sockios.h> 73 * frames into AX.25 which will be sent through an AX.25 device, so form a 74 * special "super class" of normal net devices; split their locks off into a 75 * separate class since they always nest. 76 */ 77static struct lock_class_key rose_netdev_xmit_lock_key; 78static struct lock_class_key rose_netdev_addr_lock_key; 83{ 84 lockdep_set_class(&txq->_xmit_lock, &rose_netdev_xmit_lock_key); 85} 88{ 89 lockdep_set_class(&dev->addr_list_lock, &rose_netdev_addr_lock_key); 90 netdev_for_each_tx_queue(dev, rose_set_lockdep_one, NULL);af_netrom.c https://github.com/mstsirkin/kvm.git | C | 1509 lines
21#include <linux/timer.h> 22#include <linux/string.h> 23#include <linux/sockios.h> 72 * frames into AX.25 which will be sent through an AX.25 device, so form a 73 * special "super class" of normal net devices; split their locks off into a 74 * separate class since they always nest. 75 */ 76static struct lock_class_key nr_netdev_xmit_lock_key; 77static struct lock_class_key nr_netdev_addr_lock_key; 82{ 83 lockdep_set_class(&txq->_xmit_lock, &nr_netdev_xmit_lock_key); 84} 87{ 88 lockdep_set_class(&dev->addr_list_lock, &nr_netdev_addr_lock_key); 89 netdev_for_each_tx_queue(dev, nr_set_lockdep_one, NULL);driver-trace.h https://github.com/mstsirkin/kvm.git | C Header | 1492 lines
11static inline void trace_ ## name(proto) {} 12#undef DECLARE_EVENT_CLASS 13#define DECLARE_EVENT_CLASS(...) 14#undef DEFINE_EVENT 15#define DEFINE_EVENT(evt_class, name, proto, ...) \ 16static inline void trace_ ## name(proto) {} 34 __field(bool, p2p) \ 35 __string(vif_name, sdata->dev ? sdata->dev->name : "<nodev>") 36#define VIF_ASSIGN __entry->vif_type = sdata->vif.type; __entry->sdata = sdata; \ 45 46DECLARE_EVENT_CLASS(local_only_evt, 47 TP_PROTO(struct ieee80211_local *local), 57 58DECLARE_EVENT_CLASS(local_sdata_addr_evt, 59 TP_PROTO(struct ieee80211_local *local,iriap.c https://github.com/mstsirkin/kvm.git | C | 1104 lines
30#include <linux/fs.h> 31#include <linux/string.h> 32#include <linux/init.h> 89 90static struct lock_class_key irias_objects_key; 91 118 119 lockdep_set_class_and_name(&irias_objects->hb_spinlock, &irias_objects_key, 120 "irias_objects"); 129 obj = irias_new_object("Device", IAS_DEVICE_ID); 130 irias_add_string_attrib(obj, "DeviceName", "Linux", IAS_KERNEL_ATTR); 131 199 200 /* iriap_getvaluebyclass_request() will construct packets before 201 * we connect, so this must have a sane value... Jean II */ip6_output.c https://github.com/mstsirkin/kvm.git | C | 1645 lines
21 * 22 * H. von Brand : Added missing #include <linux/string.h> 23 * Imran Patel : frag id should be in NBO 30#include <linux/kernel.h> 31#include <linux/string.h> 32#include <linux/socket.h> 192 int hlimit = -1; 193 int tclass = 0; 194 u32 mtu; 231 if (np) { 232 tclass = np->tclass; 233 hlimit = np->hop_limit; 237 238 *(__be32 *)hdr = htonl(0x60000000 | (tclass << 20)) | fl6->flowlabel; 239nf_nat_snmp_basic.c https://github.com/mstsirkin/kvm.git | C | 1332 lines
88 89/* Class */ 90#define ASN1_UNI 0 /* Universal */ 98#define ASN1_INT 2 /* Integer */ 99#define ASN1_BTS 3 /* Bit String */ 100#define ASN1_OTS 4 /* Octet String */ 106#define ASN1_SET 17 /* Set */ 107#define ASN1_NUMSTR 18 /* Numerical String */ 108#define ASN1_PRNSTR 19 /* Printable String */ 108#define ASN1_PRNSTR 19 /* Printable String */ 109#define ASN1_TEXSTR 20 /* Teletext String */ 110#define ASN1_VIDSTR 21 /* Video String */ 110#define ASN1_VIDSTR 21 /* Video String */ 111#define ASN1_IA5STR 22 /* IA5 String */ 112#define ASN1_UNITIM 23 /* Universal Time */ipconfig.c https://github.com/mstsirkin/kvm.git | C | 1635 lines
32#include <linux/types.h> 33#include <linux/string.h> 34#include <linux/kernel.h> 144 145/* vendor class identifier */ 146static char vendor_class_identifier[253] __initdata; 427 if (ic_netmask == NONE) { 428 if (IN_CLASSA(ntohl(ic_myaddr))) 429 ic_netmask = htonl(IN_CLASSA_NET); 429 ic_netmask = htonl(IN_CLASSA_NET); 430 else if (IN_CLASSB(ntohl(ic_myaddr))) 431 ic_netmask = htonl(IN_CLASSB_NET); 431 ic_netmask = htonl(IN_CLASSB_NET); 432 else if (IN_CLASSC(ntohl(ic_myaddr))) 433 ic_netmask = htonl(IN_CLASSC_NET);fib_semantics.c https://github.com/mstsirkin/kvm.git | C | 1242 lines
22#include <linux/mm.h> 23#include <linux/string.h> 24#include <linux/socket.h> 191#ifdef CONFIG_IP_ROUTE_CLASSID 192 nh->nh_tclassid != onh->nh_tclassid || 193#endif 413 nexthop_nh->nh_gw = nla ? nla_get_be32(nla) : 0; 414#ifdef CONFIG_IP_ROUTE_CLASSID 415 nla = nla_find(attrs, attrlen, RTA_FLOW); 415 nla = nla_find(attrs, attrlen, RTA_FLOW); 416 nexthop_nh->nh_tclassid = nla ? nla_get_u32(nla) : 0; 417#endif 467 return 1; 468#ifdef CONFIG_IP_ROUTE_CLASSID 469 nla = nla_find(attrs, attrlen, RTA_FLOW);dcbnl.c https://github.com/mstsirkin/kvm.git | C | 1985 lines
36 * Enhanced Transmission Selection (aka Priority Grouping [PG]) - provides a 37 * framework for assigning bandwidth guarantees to traffic classes. 38 * 59static const struct nla_policy dcbnl_rtnl_policy[DCB_ATTR_MAX + 1] = { 60 [DCB_ATTR_IFNAME] = {.type = NLA_NUL_STRING, .len = IFNAMSIZ - 1}, 61 [DCB_ATTR_STATE] = {.type = NLA_U8}, 109 110/* DCB traffic class nested attributes. */ 111static const struct nla_policy dcbnl_tc_param_nest[DCB_TC_ATTR_PARAM_MAX + 1] = { 185 186/* DCB number of traffic classes nested attributes. */ 187static const struct nla_policy dcbnl_featcfg_nest[DCB_FEATCFG_ATTR_MAX + 1] = {net-sysfs.c https://github.com/mstsirkin/kvm.git | C | 1337 lines
1/* 2 * net-sysfs.c - network device class and attributes 3 * 56/* generate a show function for simple field */ 57#define NETDEVICE_SHOW(field, format_string) \ 58static ssize_t format_##field(const struct net_device *net, char *buf) \ 59{ \ 60 return sprintf(buf, format_string, net->field); \ 61} \ 306 307static struct device_attribute net_class_attributes[] = { 308 __ATTR(addr_assign_type, S_IRUGO, show_addr_assign_type, NULL), 442/* show function template for wireless fields */ 443#define WIRELESS_SHOW(name, field, format_string) \ 444static ssize_t format_iw_##name(const struct iw_statistics *iw, char *buf) \messenger.c https://github.com/mstsirkin/kvm.git | C | 1982 lines
10#include <linux/socket.h> 11#include <linux/string.h> 12#include <linux/bio.h> 35#ifdef CONFIG_LOCKDEP 36static struct lock_class_key socket_class; 37#endif 44/* 45 * nicely render a sockaddr as a string. 46 */ 223#ifdef CONFIG_LOCKDEP 224 lockdep_set_class(&sock->sk->sk_lock, &socket_class); 225#endifsvc.c https://github.com/mstsirkin/kvm.git | C | 691 lines
6 7#include <linux/string.h> 8#include <linux/net.h> /* struct socket, struct proto_ops */ 191 } 192 if (vcc->qos.txtp.traffic_class == ATM_ANYCLASS || 193 vcc->qos.rxtp.traffic_class == ATM_ANYCLASS) { 196 } 197 if (!vcc->qos.txtp.traffic_class && 198 !vcc->qos.rxtp.traffic_class) {clip.c https://github.com/mstsirkin/kvm.git | C | 1007 lines
1/* net/atm/clip.c - RFC1577 Classical IP over ATM */ 2 6 7#include <linux/string.h> 8#include <linux/errno.h>trace_events.c https://github.com/mstsirkin/kvm.git | C | 1747 lines
211 } 212 call->class->reg(call, TRACE_REG_UNREGISTER); 213 } 255 if (filter) { 256 kfree(filter->filter_string); 257 kfree(filter); 287 288 if (!call->name || !call->class || !call->class->reg) 289 continue; 414 */ 415 if (call->class && call->class->reg) 416 return call; 558 list_for_each_entry(call, &ftrace_events, list) { 559 if (!call->name || !call->class || !call->class->reg) 560 continue;lockdep.c https://github.com/mstsirkin/kvm.git | C | 1997 lines
194 195struct lock_class_stats lock_stats(struct lock_class *class) 196{ 237 238static struct lock_class_stats *get_lock_stats(struct lock_class *class) 239{ 342 */ 343static int class_filter(struct lock_class *class) 344{ 619 list_for_each_entry(class, &all_lock_classes, lock_entry) { 620 if (new_class->key - new_class->subclass == class->key) 621 return class->name_version; 621 return class->name_version; 622 if (class->name && !strcmp(class->name, new_class->name)) 623 count = max(count, class->name_version);ftrace.h https://github.com/mstsirkin/kvm.git | C Header | 775 lines
66 \ 67 static struct ftrace_event_class event_class_##name; 68 332 333#undef __string 334#define __string(item, src) __dynamic_array(char, item, -1) 335 336#undef DECLARE_EVENT_CLASS 337#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, func, print) \ 452 * 453 * static struct ftrace_event_class __used event_class_<template> = { 454 * .system = "<system>", 463 * .name = "<call>", 464 * .class = event_class_<template>, 465 * .event = &ftrace_event_type_<call>,core.h https://github.com/mstsirkin/kvm.git | C Header | 459 lines
30#include <linux/device.h> 31#include <linux/stringify.h> 32 101 102 char id[16]; /* id string of this card */ 103 char driver[16]; /* driver name */ 203extern int snd_ecards_limit; 204extern struct class *sound_class; 205 338 * snd_printk - printk wrapper 339 * @fmt: format string 340 * 349 * snd_printd - debug printk 350 * @fmt: format string 351 *scsi_transport_fc.h https://github.com/mstsirkin/kvm.git | C Header | 815 lines
41 * We get away with this as we never present the actual binary values 42 * externally. For sysfs, we always present the string that describes 43 * the value. Thus, an admin doesn't need a magic HBAAPI decoder ring 44 * to understand the values. The HBAAPI user-space library is free to 45 * convert the strings into the HBAAPI-specified binary values. 46 * 106/* 107 * FC Classes of Service 108 * Note: values are not enumerated, as they can be "or'd" together 108 * Note: values are not enumerated, as they can be "or'd" together 109 * for reporting (e.g. report supported_classes). If you alter this list, 110 * you also need to alter scsi_transport_fc.c (for the ascii descriptions). 112#define FC_COS_UNSPECIFIED 0 113#define FC_COS_CLASS1 2 114#define FC_COS_CLASS2 4hcd.h https://github.com/mstsirkin/kvm.git | C Header | 674 lines
63 * user space authorization; this bit is settable 64 * through /sys/class/usb_host/X/authorized_default. 65 * For the rest is RO, so we don't lock to r/w it. 77 78 const char *product_desc; /* product/vendor string */ 79 int speed; /* Speed for this roothub. 204 const char *description; /* "ehci-hcd" etc */ 205 const char *product_desc; /* product/vendor string */ 206 size_t hcd_priv_size; /* size of private data */composite.h https://github.com/mstsirkin/kvm.git | C Header | 385 lines
53 * @name: For diagnostics, identifies the function. 54 * @strings: tables of strings, keyed by identifiers assigned during bind() 55 * and by language IDs provided in control requests 168 * @label: For diagnostics, describes the configuration. 169 * @strings: Tables of strings, keyed by identifiers assigned during @bind() 170 * and by language IDs provided in control requests. 208 const char *label; 209 struct usb_gadget_strings **strings; 210 const struct usb_descriptor_header **descriptors; 254 * identifiers. 255 * @strings: tables of strings, keyed by identifiers assigned during bind() 256 * and language IDs provided in control requests 283 const struct usb_device_descriptor *dev; 284 struct usb_gadget_strings **strings; 285 enum usb_device_speed max_speed;usb.h https://github.com/mstsirkin/kvm.git | C Header | 1217 lines
43 * 44 * Devices may also have class-specific or vendor-specific descriptors. 45 */ 84 85 char *string; /* iInterface string, if present */ 86 unsigned char *extra; /* Extra descriptors */ 137 * Many USB devices only have one interface. The protocol used to talk to 138 * an interface's endpoints can be defined in a usb "class" specification, 139 * or by a product's vendor. The (default) control endpoint is part of 237 * @desc: the device's configuration descriptor. 238 * @string: pointer to the cached version of the iConfiguration string, if 239 * present for this configuration. 276 277 char *string; /* iConfiguration string, if present */ 278reiserfs_fs.h https://github.com/mstsirkin/kvm.git | C Header | 1311 lines
106static inline void 107reiserfs_mutex_lock_nested_safe(struct mutex *m, unsigned int subclass, 108 struct super_block *s) 111 reiserfs_write_unlock(s); 112 mutex_lock_nested(m, subclass); 113 reiserfs_write_lock(s); 253 * umounted, to 2 - when not */ 254 char s_magic[10]; /* reiserfs magic string indicates that 255 * file system is reiserfs: