The funding from Global Fund for Community Foundations will be used to Pilot Community Philanthropy approach and build up a local donor base for Kabale Municipality Development Foundation (KMDF). Kabale Municipality Development Foundation (KMDF) was created in 2010 as a Community Foundation with an aim of working to address the Challenges that face the urban poor living in 74 villages of Kabale Municipality, South Western Uganda. KMDF was established with the major aim of addressing the escalating poverty levels among the urban poor in Kabale Municipality. The Vision of KMDF is having a peaceful, just, developed and well Governed Society with Prosperous and Happy people.


text:
Wireless Communications and Mobile Computing
To receive news and publication updates for Wireless Communications and Mobile Computing, enter your email address in the box below.
Wireless Brain-Robot Interface: User Perception and Performance Assessment of Spinal Cord Injury Patients
Alkinoos Athanasiou,1,2 George Arfaras,1 Niki Pandria,1 Ioannis Xygonakis,1 Nicolas Foroglou,2 Alexander Astaras,1,3 and Panagiotis D. Bamidis1
1Biomedical Electronics Robotics & Devices (BERD) Group, Lab of Medical Physics, School of Medicine, Faculty of Health Sciences, Aristotle University of Thessaloniki (AUTH), 54124 Thessaloniki, Greece
21st Department of Neurosurgery, "AHEPA" University General Hospital, Aristotle University of Thessaloniki (AUTH), 54636 Thessaloniki, Greece
3Robotics Laboratory, Computer Science Department, American College of Thessaloniki (ACT), 55535 Thessaloniki, Greece
Correspondence should be addressed to Alkinoos Athanasiou; rg.htua@sooniklahta
Received 25 August 2017; Accepted 10 December 2017; Published 31 December 2017
Academic Editor: Kyriaki Kalimeri
Copyright © 2017 Alkinoos Athanasiou et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
L. R. Hochberg, D. Bacher, B. Jarosiewicz et al., "Reach and grasp by people with tetraplegia using a neurally controlled robotic arm," Nature, vol. 485, no. 7398, pp. 372–375, 2012. View at Publisher · View at Google Scholar · View at Scopus
J. L. Collinger, B. Wodlinger, J. E. Downey et al., "High-performance neuroprosthetic control by an individual with tetraplegia," The Lancet, vol. 381, no. 9866, pp. 557–564, 2013. View at Publisher · View at Google Scholar · View at Scopus
A. R. C. Donati, S. Shokur, E. Morya et al., "Long-term training with a brain-machine interface-based gait protocol induces partial neurological recovery in paraplegic patients," Scientific Reports, vol. 6, no. 1, p. 30383, 2016. View at Publisher · View at Google Scholar · View at Scopus
M. Alam, W. Rodrigues, B. N. Pham, and N. V. Thakor, "Brain-machine interface facilitated neurorehabilitation via spinal stimulation after spinal cord injury: Recent progress and future perspectives," Brain Research, vol. 1646, pp. 25–33, 2016. View at Publisher · View at Google Scholar · View at Scopus
R. R. Harrison, R. J. Kier, C. A. Chestek et al., "Wireless neural recording with single low-power integrated circuit," IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 17, no. 4, pp. 322–329, 2009. View at Publisher · View at Google Scholar · View at Scopus
A. V. Nurmikko, J. P. Donoghue, L. R. Hochberg et al., "Listening to brain microcircuits for interfacing with external world—progress in wireless implantable microelectronic neuroengineering devices," Proceedings of the IEEE, vol. 98, no. 3, pp. 375–388, 2010. View at Publisher · View at Google Scholar · View at Scopus
J. L. Collinger, S. Foldes, T. M. Bruns, B. Wodlinger, R. Gaunt, and D. J. Weber, "Neuroprosthetic technology for individuals with spinal cord injury," The Journal of Spinal Cord Medicine, vol. 36, no. 4, pp. 258–272, 2013. View at Publisher · View at Google Scholar · View at Scopus
P. H. Peckham and J. S. Knutson, "Functional electrical stimulation for neuromuscular applications," Annual Review of Biomedical Engineering, vol. 7, pp. 327–360, 2005. View at Publisher · View at Google Scholar · View at Scopus
L. Pignolo, "Robotics in neuro-rehabilitation," Journal of Rehabilitation Medicine, vol. 41, no. 12, pp. 955–960, 2009. View at Publisher · View at Google Scholar · View at Scopus
B. He, Ed., Modeling, Imaging of Bioelectrical Activity, Springer US, Boston, MA, USA, 2005.
P. L. Nunez and R. Srinivasan, "Electric Fields of the Brain: The neurophysics of EEG," Electric Fields of the Brain: The neurophysics of EEG, pp. 1–611, 2009. View at Publisher · View at Google Scholar · View at Scopus
A. Athanasiou, I. Xygonakis, N. Pandria et al., "Towards Rehabilitation Robotics: Off-the-Shelf BCI Control of Anthropomorphic Robotic Arms," BioMed Research International, vol. 2017, pp. 1–17, 2017. View at Publisher · View at Google Scholar
S. Baillet, "Magnetoencephalography for brain electrophysiology and imaging," Nature Neuroscience, vol. 20, no. 3, pp. 327–339, 2017. View at Publisher · View at Google Scholar · View at Scopus
J. Meng, S. Zhang, A. Bekyo, J. Olsoe, B. Baxter, and B. He, "Noninvasive electroencephalogram based control of a robotic arm for reach and grasp tasks," Scientific Reports, vol. 6, no. 1, article 38565, 2016. View at Publisher · View at Google Scholar · View at Scopus
Y. Kim and A. M. Cook, "Manipulation and Mobility Aids," in Electronic Devices for Rehabilitation, J. G. Webster, Ed., Wiley, London, 1985. View at Google Scholar
M. Hillman, "2 Rehabilitation Robotics from Past to Present A Historical Perspective," in Advances in Rehabilitation Robotics, pp. 25–44, Springer Berlin Heidelberg, 2006. View at Google Scholar
W. Seamone and G. Schmeisser, Evaluation of the APL/JHU Robot Arm Work Station, 1986.
C. P. Mason and E. Peizer, "Medical Manipulator for Quadriplegics, Colloques IRIA," in Proceedings of the in International Conference on Telemanipulators for the Physically Handicapped, pp. 309–312, 1978.
H. H. Kwee, M. Tramblay, R. Barbier et al., "First experimentation of the spartacus telethesis in a clinical environment," Paraplegia, vol. 21, no. 5, pp. 275–286, 1983. View at Publisher · View at Google Scholar · View at Scopus
Y. Wakita, W.-K. Yoon, and N. Yamanobe, "User evaluation to apply the robotic arm RAPUDA for an upper-limb disabilities Patient's Daily Life," in Proceedings of the 2012 IEEE International Conference on Robotics and Biomimetics, ROBIO 2012, pp. 1482–1487, China, December 2012. View at Publisher · View at Google Scholar · View at Scopus
V. Maheu, P. S. Archambault, J. Frappier, and F. Routhier, "Evaluation of the JACO robotic arm: Clinico-economic study for powered wheelchair users with upper-extremity disabilities," in Proceedings of the Rehab Week Zurich 2011 - 2011 IEEE International Conference on Rehabilitation Robotics, ICORR 2011, Switzerland, July 2011. View at Publisher · View at Google Scholar · View at Scopus
M. S. Johannes, J. D. Bigelow, J. M. Burck, S. D. Harshbarger, M. V. Kozlowski, and T. Van Doren, "An overview of the developmental process for the modular prosthetic limb," Johns Hopkins APL Technical Digest, vol. 30, no. 3, pp. 207–216, 2011. View at Google Scholar · View at Scopus
J. J. Daly and J. R. Wolpaw, "Brain-computer interfaces in neurological rehabilitation," The Lancet Neurology, vol. 7, no. 11, pp. 1032–1043, 2008. View at Publisher · View at Google Scholar · View at Scopus
M. Gomez-Rodriguez, M. Grosse-Wentrup, J. Hill, A. Gharabaghi, B. Scholkopf, and J. Peters, "Towards brain-robot interfaces in stroke rehabilitation," in Proceedings of the IEEE International Conference on Rehabilitative Robotics, vol. 2011, 2011. View at Scopus
K. K. Ang, C. Guan, K. S. Chua et al., "A clinical study of motor imagery-based brain-computer interface for upper limb robotic rehabilitation," in Proceedings of the Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC '09), pp. 5981–5984, Minneapolis, Minn, USA, September 2009. View at Publisher · View at Google Scholar
K. Dautenhahn, "Methodology & themes of human-robot interaction: a growing research field," International Journal of Advanced Robotic Systems, vol. 4, no. 1, pp. 103–108, 2007. View at Google Scholar
C. Bartneck, D. Kulić, E. Croft, and S. Zoghbi, "Measurement instruments for the anthropomorphism, animacy, likeability, perceived intelligence, and perceived safety of robots," International Journal of Social Robotics, vol. 1, no. 1, pp. 71–81, 2009. View at Publisher · View at Google Scholar · View at Scopus
O. Christ and M. Reiner, "Perspectives and possible applications of the rubber hand and virtual hand illusion in non-invasive rehabilitation: Technological improvements and their consequences," Neuroscience & Biobehavioral Reviews, vol. 44, pp. 33–44, 2014. View at Publisher · View at Google Scholar · View at Scopus
G. Arfaras, A. Athanasiou, P. Niki et al., "Visual Versus Kinesthetic Motor Imagery for BCI Control of Robotic Arms (Mercury 2.0)," in Proceedings of the 2017 IEEE 30th International Symposium on Computer-Based Medical Systems (CBMS), pp. 440–445, Thessaloniki, June 2017. View at Publisher · View at Google Scholar
A. Athanasiou, G. Arfaras, I. Xygonakis et al., "Commercial BCI Control and Functional Brain Networks in Spinal Cord Injury: A Proof-of-Concept," in Proceedings of the 2017 IEEE 30th International Symposium on Computer-Based Medical Systems (CBMS), pp. 262–267, Thessaloniki, June 2017. View at Publisher · View at Google Scholar
"Brainwave control of a wearable robotic arm for rehabilitation and neurophysiological study in cervical spine injury (CSI:Brainwave)," https://clinicaltrials.gov/ct2/show/NCT02443558.
N. Moustakas, P. Kartsidis, A. Athanasiou, A. Astaras, and P. D. Bamidis, "Development of MERCURY version 2.0 robotic arms for rehabilitation applications," in Proceedings of the 8th ACM International Conference on PErvasive Technologies Related to Assistive Environments (PETRA '15), July 2015. View at Publisher · View at Google Scholar · View at Scopus
S. C. Kirshblum, S. P. Burns, F. Biering-Sorensen et al., "International standards for neurological classification of spinal cord injury (revised 2011)," The Journal of Spinal Cord Medicine, vol. 34, no. 6, pp. 535–546, 2011. View at Publisher · View at Google Scholar · View at Scopus
R. W. Bohannon and M. B. Smith, "Interrater reliability of a modified Ashworth scale of muscle spasticity," Physical Therapy in Sport, vol. 67, no. 2, pp. 206-207, 1987. View at Publisher · View at Google Scholar · View at Scopus
J. T. C. Hsieh, D. L. Wolfe, W. C. Miller, and A. Curt, "Spasticity outcome measures in spinal cord injury: Psychometric properties and clinical utility," Spinal Cord, vol. 46, no. 2, pp. 86–95, 2008. View at Publisher · View at Google Scholar · View at Scopus
M. Itzkovich, I. Gelernter, and F. Biering-Sorensen, "The Spinal Cord Independence Measure (SCIM) version III: Reliability and validity in a multi-center international study," Disability and Rehabilitation, vol. 29, no. 24, pp. 1926–1933, 2007. View at Publisher · View at Google Scholar · View at Scopus
A. Athanasiou, A. Alexandrou, E. Paraskevopoulos, N. Foroglou, A. Prassas, and P. D. Bamidis, "Towards a Greek adaptation of the Spinal Cord Independence Measure (SCIM)," in in proceedings of the 15th European Congress of Neurosurgery (EANS 14), pp. 181–184, 2015.
D. F. Marks, "Directions in Mental-Imagery Research," Journal of Mental Imagery, vol. 19, no. 3-4, pp. 153–167, 1995. View at Google Scholar
A. T. Beck, R. A. Steer, and M. G. Garbin, "Psychometric properties of the Beck Depression Inventory: twenty-five years of evaluation," Clinical Psychology Review, vol. 8, no. 1, pp. 77–100, 1988. View at Publisher · View at Google Scholar · View at Scopus
W. Petersen, "Society and the Adolescent Self-Image. Morris Rosenberg. Princeton University Press, Princeton, N.J., 1965. xii + 326 pp. $6.50," Science, vol. 148, no. 3671, p. 804, 1965. View at Publisher · View at Google Scholar
M. Giannakou, P. Roussi, M.-E. Kosmides, G. Kiosseoglou, A. Adamopoulou, and G. Garyfallos, "Adaptation of the beck depression inventory-II to greek population," Hellenic Journal of Psychology, vol. 10, no. 2, pp. 120–146, 2013. View at Google Scholar · View at Scopus
C. Galanou, M. Galanakis, E. Alexopoulos, and C. Darviri, "Rosenberg Self-Esteem Scale Greek Validation on Student Sample," Psychology, vol. 05, no. 08, pp. 819–827, 2014. View at Publisher · View at Google Scholar
A. Astaras, A. Athanasiou, A. Alexandrou, P. Kartsidis, N. Moustakas, and P. D. Bamidis, "Double-blind greek translation and online implementation of the Godspeed robotics questionnaire," in Proceedings of the in 6th Panhellenic Conference on Biomedical Technology Conference, p. 34, 2015.
E. I. Konstantinidis, A. Billis, C. Bratsas, A. Siountas, and P. D. Bamidis, "Thessaloniki active and healthy ageing living lab: The roadmap from a specific project to a living lab towards openness," in Proceedings of the 9th ACM International Conference on PErvasive Technologies Related to Assistive Environments (PETRA '2016), pp. 1–4, July 2016. View at Publisher · View at Google Scholar · View at Scopus
E. I. Konstantinidis and P. D. Bamidis, "Density based clustering on indoor kinect location tracking: A new way to exploit active and healthy aging living lab datasets," in Proceedings of the 2015 IEEE 15th International Conference on Bioinformatics and Bioengineering (BIBE), pp. 1–6, November 2015. View at Publisher · View at Google Scholar · View at Scopus
E. I. Konstantinidis, P. E. Antoniou, G. Bamparopoulos, and P. D. Bamidis, "A lightweight framework for transparent cross platform communication of controller data in ambient assisted living environments," Information Sciences, vol. 300, no. 1, pp. 124–139, 2015. View at Publisher · View at Google Scholar · View at Scopus
T. Sollfrank, D. Hart, R. Goodsell, J. Foster, and T. Tan, "3D visualization of movements can amplify motor cortex activation during subsequent motor imagery," Frontiers in Human Neuroscience, vol. 9, article 463, 2015. View at Publisher · View at Google Scholar · View at Scopus
D. Cramer, "Fundamental statistics for social research," in Step-by-step calculations and computer techniques using SPSS for Windows, Routledge, London, UK, 1988. View at Publisher · View at Google Scholar
D. Cramer and D. Howitt, The SAGE Dictionary of Statistics, SAGE Publications, 2004. View at Publisher · View at Google Scholar
D. P. Doane and L. E. Seward, "Measuring skewness: a forgotten statistic?" Journal of Statistics Education, vol. 19, no. 2, pp. 1–18, 2011. View at Google Scholar · View at Scopus
N. M. Razali, Y. B. Wah, and M. Sciences, "Power comparisons of Shapiro-Wilk, Kolmogorov-Smirnov," Lilliefors and Anderson-Darling tests, vol. 2, no. 1, pp. 21–33, 2011. View at Google Scholar
S. S. Shapiro and M. B. Wilk, "An analysis of variance test for normality: Complete samples," Biometrika, vol. 52, pp. 591–611, 1965. View at Publisher · View at Google Scholar · View at MathSciNet
N. Mogey, "So You Want to Use a Likert Scale?" in Edinburgh: 2 Evaluation Cookbook Learning Technology Dissemination Initiative, Institute for Computer Based Learning, Heriot-Watt University, 1998. View at Google Scholar
N. Birbaumer and P. Sauseng, "Brain–Computer Interface in Neurorehabilitation," 2010. View at Google Scholar
A. Vuckovic, J. A. Pineda, K. LaMarca, D. Gupta, and C. Guger, "Interaction of BCI with the underlying neurological conditions in patients: pros and cons," Frontiers in Neuroengineering, vol. 7, 2014. View at Publisher · View at Google Scholar
F. Nijboer, N. Birbaumer, and A. Kübler, "The influence of psychological state and motivation on brain-computer interface performance in patients with amyotrophic lateral sclerosis - a longitudinal study," Frontiers in Neuroscience, vol. 4, article no. 55, 2010. View at Publisher · View at Google Scholar · View at Scopus
E. M. Hammer, S. Halder, B. Blankertz et al., "Psychological predictors of SMR-BCI performance," Biological Psychology, vol. 89, no. 1, pp. 80–86, 2012. View at Publisher · View at Google Scholar · View at Scopus
C. Papadelis, C. Kourtidou-Papadeli, P. Bamidis, and M. Albani, "Effects of imagery training on cognitive performance and use of physiological measures as an assessment tool of mental effort," Brain and Cognition, vol. 64, no. 1, pp. 74–85, 2007. View at Publisher · View at Google Scholar · View at Scopus
F. González-Palau, M. Franco, P. D. Bamidis et al., "The effects of a computer-based cognitive and physical training program in a healthy and mildly cognitive impaired aging sample," Aging & Mental Health, vol. 18, no. 7, pp. 838–846, 2014. View at Publisher · View at Google Scholar · View at Scopus
S. M. Roldan, "Object Recognition in Mental Representations: Directions for Exploring Diagnostic Features through Visual Mental Imagery," Frontiers in Psychology, vol. 8, 2017. View at Publisher · View at Google Scholar
E. Broadbent, "Interactions with Robots: The Truths We Reveal about Ourselves," Annual Review of Psychology, vol. 68, pp. 627–652, 2017. View at Publisher · View at Google Scholar · View at Scopus
E. López-Larraz, F. Trincado-Alonso, V. Rajasekaran et al., "Control of an ambulatory exoskeleton with a brain-machine interface for spinal cord injury gait rehabilitation," Frontiers in Neuroscience, vol. 10, 2016. View at Publisher · View at Google Scholar · View at Scopus
G. E. Francisco, N. Yozbatiran, J. Berliner et al., "Robot-Assisted Training of Arm and Hand Movement Shows Functional Improvements for Incomplete Cervical Spinal Cord Injury," American Journal of Physical Medicine & Rehabilitation, vol. 96, pp. S171–S177, 2017. View at Publisher · View at Google Scholar
A. Jackson and J. B. Zimmermann, "Neural interfaces for the brain and spinal cord - Restoring motor function," Nature Reviews Neurology, vol. 8, no. 12, pp. 690–699, 2012. View at Publisher · View at Google Scholar · View at Scopus
R. Grech, T. Cassar, J. Muscat et al., "Review on solving the inverse problem in EEG source analysis," Journal of NeuroEngineering and Rehabilitation, vol. 5, article 25, 2008. View at Publisher · View at Google Scholar · View at Scopus
S. Baillet, J. C. Mosher, and R. M. Leahy, "Electromagnetic brain mapping," IEEE Signal Processing Magazine, vol. 18, no. 6, pp. 14–30, 2001. View at Publisher · View at Google Scholar · View at Scopus
C. J. Holmes, R. Hoge, L. Collins, R. Woods, A. W. Toga, and A. C. Evans, "Enhancement of MR images using registration for signal averaging," Journal of Computer Assisted Tomography, vol. 22, no. 2, pp. 324–333, 1998. View at Publisher · View at Google Scholar · View at Scopus
B. J. Edelman, B. Baxter, and B. He, "EEG source imaging enhances the decoding of complex right-hand motor imagery tasks," IEEE Transactions on Biomedical Engineering, vol. 63, no. 1, pp. 4–14, 2016. View at Publisher · View at Google Scholar · View at Scopus
H. Yuan, T. Liu, R. Szarkowski, C. Rios, J. Ashe, and B. He, "Negative covariation between task-related responses in alpha/beta-band activity and BOLD in human sensorimotor cortex: an EEG and fMRI study of motor imagery and movements," NeuroImage, vol. 49, no. 3, pp. 2596–2606, 2010. View at Publisher · View at Google Scholar · View at Scopus
B. Kamousi, A. N. Amini, and B. He, "Classification of motor imagery by means of cortical current density estimation and Von Neumann entropy," Journal of Neural Engineering, vol. 4, no. 2, article no. 002, pp. 17–25, 2007. View at Publisher · View at Google Scholar · View at Scopus
H. Ramoser, J. Müller-Gerking, and G. Pfurtscheller, "Optimal spatial filtering of single trial EEG during imagined hand movement," IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 8, no. 4, pp. 441–446, 2000. View at Publisher · View at Google Scholar · View at Scopus
G. R. Müller-Putz, I. Daly, and V. Kaiser, "Motor imagery-induced EEG patterns in individuals with spinal cord injury and their impact on brain-computer interface accuracy," Journal of Neural Engineering, vol. 11, no. 3, Article ID 035011, 2014. View at Publisher · View at Google Scholar · View at Scopus
G. Onose, C. Grozea, A. Anghelescu et al., "On the feasibility of using motor imagery EEG-based brain-computer interface in chronic tetraplegics for assistive robotic arm control: A clinical test and long-term post-trial follow-up," Spinal Cord, vol. 50, no. 8, pp. 599–608, 2012. View at Publisher · View at Google Scholar · View at Scopus

redpajama_set_name: RedPajamaCommonCrawl


Aside from vegan beauty care being morally and consciously pleasing, there's another perk you should be aware of: it's safer.
That's right, did you know that non-vegan, unnatural skincare products contain endless amounts of chemicals that you can find in cleaning supplies? Not to mention that these chemicals end up on and gets absorbed into your skin!
To name a few, parabens, fragrances, synthetic colors, triclosan, and sodium lauryl sulfate are chemicals commonly found in most if not all of your normal skin care products.
Doesn't seem like a big deal? Well, what if you knew that almost all these hazardous chemicals are not even needed in the products you put on your face.
Parabens are said to help keep your products bacteria free, but they are also known for increasing breast cancer agents.
Synthetic colors and fragrances cause irritation to the skin, and for good reason, not to mention are sourced from tar and non-friendly environment sources.
As for triclosan and sodium lauryl sulfate (SLS), they protect mixtures and cause foamy cleansers and cleaners respectively; however, both of these are not even necessary in skincare products as their "benefits" can be replaced, not to mention they are carcinogens.
Ultimately, none of the scary chemicals above are even a necessity to beauty products, but we as a society do not question their use so they continue to be included. In addition, these side-effect riddled chemicals can all be replaced with natural, vegan alternatives, such as avocado, lavender, lemon, olive oil, essential oils, rose water and so on. It only makes sense that a product going near your eyes and on your skin should contain ingredients you commonly see and know about, not to mention ingredients you can pronounce!
It's time to think twice about your daily routine, which is something out of the ordinary for most of us. Instead of blindly accepting what we are introduced to through endless advertisements and endorsements, we must educate ourselves.
After reading this article, it's clear you see the blatant truth!
Imagine the things you can learn if you do some more research. Stick to wholesome, true ingredients. Not to mention, ingredients that do not have to be tested on tortured animals to ensure their "safety" on us! Chemicals are meant for the lab, not for our faces.
Are you looking for a trustworthy brand to make the cruelty-free switch? Like and subscribe to our blog to get a free limited time offer of $10 voucher to Everyday Vegan. It's time you treated yourself to true, quality skincare.


text:
The Late Sir Charles Halle
Created by John Cassidy
Exhibited at The Seventieth Autumn Exhibition at the Rooms of the Society, New Street (Royal Birmingham Society of Artists), 1896
Royal Birmingham Society of Artists. The Seventieth Autumn Exhibition at the Rooms of the Society, New Street, 1896 Royal Birmingham Society of Artists
p. 61 (717)
'The Late Sir Charles Halle', Mapping the Practice and Profession of Sculpture in Britain and Ireland 1851-1951, University of Glasgow History of Art and HATII, online database 2011 [http://sculpture.gla.ac.uk/view/object.php?id=msib4_1202834985, accessed 30 Jan 2023]


Currently in school for Medical Assistant at UEI and in need of a job to pay school but mostly help elderly loved ones.
Want to connect with Rhonda?
Nice to meet you! My name is Rhonda. I working with seniors, live in Pico Rivera and want to care for your loved ones. I hope we have the chance to chat soon!


Discussion in 'UFOs, Ghosts and Monsters' started by Magical Realist, Sep 1, 2016.
The OP video you posted has been altered. You chose it, you posted it. I addressed it.
If it hadn't been altered then you would have posted a second link to an identical video. It's not - that's why you posted a second one. That act is an extant admission that it is not the same as the first one.
LOL! uh no. The second video was posted for magnification purposes. Sorry..No cigar.
Just checked. No. It isn't.
So, you posted it why?
This is your thread. you're supposed to do the legwork, if you don't want to look like a fool.
No..I don't do research for people who refuse to do it themselves. Which pretty much sum s up all ufo denialists.
Why did you post the video in post 10? It's a different clip than in post 1. Why are they not identical clips, as you assert?
Don't answer that. It's moot.
Maybe next time, lead off with something not so egregiously refutable, and you won't have to resort to a bunch of name-calling just to defend yourself.
You'll notice it is quite possible to have a disagreement without resorting to name-calling.
Why did you post the video in post 10?
I didn't post a video in post 10. I posted a link to a news article about Jeannette Forester vouching for the video. If you hadn't been so obsessed with catching me in some error like you usually do you would have noticed that.
lol! He whimpers as he exits having refuted not one thing about the video.
You should be ashamed of your behavior.
Reading you two is like watching something out of Monty Python, like two people entering an empty room, slapping each other on the side of the face with some kippers, and then wandering off again without actually saying anything to each other.
As for the video... Interesting. Certainly unidentified at this stage. Far too early to conclude on anything, though. Are there any corroborating details from other sources?
MR presented a video. I critiqued it. It was a terrible choice of video.
One can only do so much with what's presented.
Of course, the fact that the rest of the world avoided this thread like it had Typhoid doesn't make the exxhange look any less silly.


text:
Mostly clear. Low temperature around 50F. Dew point will be around 46F with an average humidity of 78%. Winds will be 10 mph from the W.
Partly cloudy. High temperature around 60F. Dew point will be around 48F with an average humidity of 77%. Winds will be 7 mph from the WNW.
Partly cloudy with a slight chance of rain. Chance of precipitation 25%. Low temperature around 51F. Dew point will be around 50F with an average humidity of 92%. Winds will be 9 mph from the N.
Cloudy with a chance of rain. Chance of precipitation 40%. High temperature around 56F. Dew point will be around 52F with an average humidity of 90%. Winds will be 11 mph from the NW.
Partly cloudy. High temperature around 58F. Dew point will be around 48F with an average humidity of 78%. Winds will be 10 mph from the W.
Mostly cloudy. Low temperature around 49F. Dew point will be around 48F with an average humidity of 92%. Winds will be 5 mph from the SW.
Partly cloudy. High temperature around 58F. Dew point will be around 48F with an average humidity of 80%. Winds will be 8 mph from the SSW.
Clear. Low temperature around 43F. Dew point will be around 43F with an average humidity of 90%. Winds will be 5 mph from the SSW.
Sunny. High temperature around 59F. Dew point will be around 46F with an average humidity of 79%. Winds will be 6 mph from the SSW.
Mostly sunny. High temperature around 57F. Dew point will be around 46F with an average humidity of 85%. Winds will be 4 mph from the SSW.
Mostly clear. Low temperature around 44F. Dew point will be around 45F with an average humidity of 94%. Winds will be 4 mph from the S.
Partly cloudy with a chance of rain. Chance of precipitation 45%. High temperature around 55F. Dew point will be around 48F with an average humidity of 90%. Winds will be 8 mph from the ESE.
Partly cloudy with a chance of rain. Chance of precipitation 40%. Low temperature around 49F. Dew point will be around 46F with an average humidity of 93%. Winds will be 9 mph from the ESE.
Mostly sunny. High temperature around 55F. Dew point will be around 45F with an average humidity of 78%. Winds will be 9 mph from the E.
Clear. Low temperature around 43F. Dew point will be around 43F with an average humidity of 87%. Winds will be 5 mph from the SE.
Sunny. High temperature around 55F. Dew point will be around 39F with an average humidity of 70%. Winds will be 4 mph from the SE.
Clear. Low temperature around 45F. Dew point will be around 37F with an average humidity of 70%. Winds will be 2 mph from the S.


Get an alert with the newest ads for Small Animals for Rehoming in Vanderhoof.
Looking to rehome this black beauty... Male approx 1.5 years old.
Post your classified or want ad in Vanderhoof Small Animals for Rehoming. It's fast and easy.


Sew, Stamp, Stitch: Block 2 already!
I was very excited about having my first block completed in the Modern Blocks Quilt-a-long that I visited And Sew We Craft early yesterday to see Block 2 and this afternoon got to work cutting and piecing. This block was chosen by Tonya at The Crafty Mummy, head over to her blog for the instructions.
I wanted to show off one of these gorgeous flowers on this print, so I made sure it was in the square I cut for the large piece. And I chose the striped fabric for the ends of the 'spool' because I felt they would fit in with that shape. It was also handy to help my sew straighter for those thinner pieces to have the stripes to guide me!
If you look closely, you can see I used the blue floral fabric in the Follow the Leader Block, but the small size of the triangle didn't allow much of the flower to be shown, so it's nice to be able to do that on this one.
I am also starting another block for a Mystery Block of the month quilt that I purchased a kit for. I have blocks 1 and 2 so far and am about halfway through piecing Block 1. It's kind of exciting because when you purchase the kit you get a variety of fabrics (in a colourway that you can select, mine was blues and greens) and then you put it together, so I suspect it will be a lovely scrappy kind of quilt when I am done, and the great part is I won't have to worry about choosing the fabrics, just go with what arrives! Hope to share the finished block soon!
Love your fabric!!!!!! The stripes look fab and the flower is gorgeous!
Love love love your fabric!


text:
import json
import os
import re
import sys
from collections import defaultdict
from contextlib import contextmanager

# Files and directories that are *skipped* by cpplint in the presubmit script.
CPPLINT_BLACKLIST = [
  'api/video_codecs/video_decoder.h',
  'common_types.cc',
  'common_types.h',
  'examples/objc',
  'media/base/stream_params.h',
  'media/base/video_common.h',
  'media/sctp/sctp_transport.cc',
  'modules/audio_coding',
  'modules/audio_device',
  'modules/audio_processing',
  'modules/desktop_capture',
  'modules/include/module_common_types.h',
  'modules/utility',
  'modules/video_capture',
  'p2p/base/pseudo_tcp.cc',
  'p2p/base/pseudo_tcp.h',
  'rtc_base',
  'sdk/android/src/jni',
  'sdk/objc',
  'system_wrappers',
  'test',
  'tools_webrtc',
  'voice_engine',
]

# These filters will always be removed, even if the caller specifies a filter
# set, as they are problematic or broken in some way.
#
# Justifications for each filter:
# - build/c++11         : Rvalue ref checks are unreliable (false positives),
#                         include file and feature blacklists are
#                         google3-specific.
# - whitespace/operators: Same as above (doesn't seem sufficient to eliminate
#                         all move-related errors).
BLACKLIST_LINT_FILTERS = [
  '-build/c++11',
  '-whitespace/operators',
]

# List of directories of "supported" native APIs. That means changes to headers
# will be done in a compatible way following this scheme:
# 1. Non-breaking changes are made.
# 2. The old APIs as marked as deprecated (with comments).
# 3. Deprecation is announced to discuss-webrtc@googlegroups.com and
#    webrtc-users@google.com (internal list).
# 4. (later) The deprecated APIs are removed.
NATIVE_API_DIRS = (
  'api',  # All subdirectories of api/ are included as well.
  'media/base',
  'media/engine',
  'modules/audio_device/include',
  'pc',
)

# These directories should not be used but are maintained only to avoid breaking
# some legacy downstream code.
LEGACY_API_DIRS = (
  'common_audio/include',
  'modules/audio_coding/include',
  'modules/audio_processing/include',
  'modules/congestion_controller/include',
  'modules/include',
  'modules/remote_bitrate_estimator/include',
  'modules/rtp_rtcp/include',
  'modules/rtp_rtcp/source',
  'modules/utility/include',
  'modules/video_coding/codecs/h264/include',
  'modules/video_coding/codecs/vp8/include',
  'modules/video_coding/codecs/vp9/include',
  'modules/video_coding/include',
  'rtc_base',
  'system_wrappers/include',
)

# NOTE: The set of directories in API_DIRS should be the same as those
# listed in the table in native-api.md.
API_DIRS = NATIVE_API_DIRS[:] + LEGACY_API_DIRS[:]

# TARGET_RE matches a GN target, and extracts the target name and the contents.
TARGET_RE = re.compile(r'(?P<indent>\s*)\w+\("(?P<target_name>\w+)"\) {'
                       r'(?P<target_contents>.*?)'
                       r'(?P=indent)}',
                       re.MULTILINE | re.DOTALL)

# SOURCES_RE matches a block of sources inside a GN target.
SOURCES_RE = re.compile(r'sources \+?= \[(?P<sources>.*?)\]',
                        re.MULTILINE | re.DOTALL)

# FILE_PATH_RE matchies a file path.
FILE_PATH_RE = re.compile(r'"(?P<file_path>(\w|\/)+)(?P<extension>\.\w+)"')

def FindSrcDirPath(starting_dir):
  """Returns the abs path to the src/ dir of the project."""
  src_dir = starting_dir
  while os.path.basename(src_dir) != 'src':
    src_dir = os.path.normpath(os.path.join(src_dir, os.pardir))
  return src_dir

@contextmanager
def _AddToPath(*paths):
  original_sys_path = sys.path
  sys.path.extend(paths)
  try:
    yield
  finally:
    # Restore sys.path to what it was before.
    sys.path = original_sys_path

def VerifyNativeApiHeadersListIsValid(input_api, output_api):
  """Ensures the list of native API header directories is up to date."""
  non_existing_paths = []
  native_api_full_paths = [
      input_api.os_path.join(input_api.PresubmitLocalPath(),
                             *path.split('/')) for path in API_DIRS]
  for path in native_api_full_paths:
    if not os.path.isdir(path):
      non_existing_paths.append(path)
  if non_existing_paths:
    return [output_api.PresubmitError(
        'Directories to native API headers have changed which has made the '
        'list in PRESUBMIT.py outdated.\nPlease update it to the current '
        'location of our native APIs.',
        non_existing_paths)]
  return []

API_CHANGE_MSG = """
You seem to be changing native API header files. Please make sure that you:
  1. Make compatible changes that don't break existing clients. Usually
     this is done by keeping the existing method signatures unchanged.
  2. Mark the old stuff as deprecated (see RTC_DEPRECATED macro).
  3. Create a timeline and plan for when the deprecated stuff will be
     removed. (The amount of time we give users to change their code
     should be informed by how much work it is for them. If they just
     need to replace one name with another or something equally
     simple, 1-2 weeks might be good; if they need to do serious work,
     up to 3 months may be called for.)
  4. Update/inform existing downstream code owners to stop using the
     deprecated stuff. (Send announcements to
     discuss-webrtc@googlegroups.com and webrtc-users@google.com.)
  5. Remove the deprecated stuff, once the agreed-upon amount of time
     has passed.
Related files:
"""

def CheckNativeApiHeaderChanges(input_api, output_api):
  """Checks to remind proper changing of native APIs."""
  files = []
  source_file_filter = lambda x: input_api.FilterSourceFile(
      x, white_list=[r'.+\.(gn|gni|h)$'])
  for f in input_api.AffectedSourceFiles(source_file_filter):
    for path in API_DIRS:
      dn = os.path.dirname(f.LocalPath())
      if path == 'api':
        # Special case: Subdirectories included.
        if dn == 'api' or dn.startswith('api/'):
          files.append(f.LocalPath())
      else:
        # Normal case: Subdirectories not included.
        if dn == path:
          files.append(f.LocalPath())

  if files:
    return [output_api.PresubmitNotifyResult(API_CHANGE_MSG, files)]
  return []

def CheckNoIOStreamInHeaders(input_api, output_api,
                             source_file_filter):
  """Checks to make sure no .h files include <iostream>."""
  files = []
  pattern = input_api.re.compile(r'^#include\s*<iostream>',
                                 input_api.re.MULTILINE)
  file_filter = lambda x: (input_api.FilterSourceFile(x)
                           and source_file_filter(x))
  for f in input_api.AffectedSourceFiles(file_filter):
    if not f.LocalPath().endswith('.h'):
      continue
    contents = input_api.ReadFile(f)
    if pattern.search(contents):
      files.append(f)

  if len(files):
    return [output_api.PresubmitError(
        'Do not #include <iostream> in header files, since it inserts static ' +
        'initialization into every file including the header. Instead, ' +
        '#include <ostream>. See http://crbug.com/94794',
        files)]
  return []

def CheckNoPragmaOnce(input_api, output_api,
                      source_file_filter):
  """Make sure that banned functions are not used."""
  files = []
  pattern = input_api.re.compile(r'^#pragma\s+once',
                                 input_api.re.MULTILINE)
  file_filter = lambda x: (input_api.FilterSourceFile(x)
                           and source_file_filter(x))
  for f in input_api.AffectedSourceFiles(file_filter):
    if not f.LocalPath().endswith('.h'):
      continue
    contents = input_api.ReadFile(f)
    if pattern.search(contents):
      files.append(f)

  if files:
    return [output_api.PresubmitError(
        'Do not use #pragma once in header files.\n'
        'See http://www.chromium.org/developers/coding-style#TOC-File-headers',
        files)]
  return []

def CheckNoFRIEND_TEST(input_api, output_api,  # pylint: disable=invalid-name
                       source_file_filter):
  """Make sure that gtest's FRIEND_TEST() macro is not used, the
  FRIEND_TEST_ALL_PREFIXES() macro from testsupport/gtest_prod_util.h should be
  used instead since that allows for FLAKY_, FAILS_ and DISABLED_ prefixes."""
  problems = []

  file_filter = lambda f: (f.LocalPath().endswith(('.cc', '.h'))
                           and source_file_filter(f))
  for f in input_api.AffectedFiles(file_filter=file_filter):
    for line_num, line in f.ChangedContents():
      if 'FRIEND_TEST(' in line:
        problems.append('    %s:%d' % (f.LocalPath(), line_num))

  if not problems:
    return []
  return [output_api.PresubmitPromptWarning('WebRTC\'s code should not use '
      'gtest\'s FRIEND_TEST() macro. Include testsupport/gtest_prod_util.h and '
      'use FRIEND_TEST_ALL_PREFIXES() instead.\n' + '\n'.join(problems))]

def IsLintBlacklisted(blacklist_paths, file_path):
  """ Checks if a file is blacklisted for lint check."""
  for path in blacklist_paths:
    if file_path == path or os.path.dirname(file_path).startswith(path):
      return True
  return False

def CheckApprovedFilesLintClean(input_api, output_api,
                                source_file_filter=None):
  """Checks that all new or non-blacklisted .cc and .h files pass cpplint.py.
  This check is based on CheckChangeLintsClean in
  depot_tools/presubmit_canned_checks.py but has less filters and only checks
  added files."""
  result = []

  # Initialize cpplint.
  import cpplint
  # Access to a protected member _XX of a client class
  # pylint: disable=W0212
  cpplint._cpplint_state.ResetErrorCounts()

  lint_filters = cpplint._Filters()
  lint_filters.extend(BLACKLIST_LINT_FILTERS)
  cpplint._SetFilters(','.join(lint_filters))

  # Create a platform independent blacklist for cpplint.
  blacklist_paths = [input_api.os_path.join(*path.split('/'))
                     for path in CPPLINT_BLACKLIST]

  # Use the strictest verbosity level for cpplint.py (level 1) which is the
  # default when running cpplint.py from command line. To make it possible to
  # work with not-yet-converted code, we're only applying it to new (or
  # moved/renamed) files and files not listed in CPPLINT_BLACKLIST.
  verbosity_level = 1
  files = []
  for f in input_api.AffectedSourceFiles(source_file_filter):
    # Note that moved/renamed files also count as added.
    if f.Action() == 'A' or not IsLintBlacklisted(blacklist_paths,
                                                  f.LocalPath()):
      files.append(f.AbsoluteLocalPath())

  for file_name in files:
    cpplint.ProcessFile(file_name, verbosity_level)

  if cpplint._cpplint_state.error_count > 0:
    if input_api.is_committing:
      res_type = output_api.PresubmitError
    else:
      res_type = output_api.PresubmitPromptWarning
    result = [res_type('Changelist failed cpplint.py check.')]

  return result

def CheckNoSourcesAbove(input_api, gn_files, output_api):
  # Disallow referencing source files with paths above the GN file location.
  source_pattern = input_api.re.compile(r' +sources \+?= \[(.*?)\]',
                                        re.MULTILINE | re.DOTALL)
  file_pattern = input_api.re.compile(r'"((\.\./.*?)|(//.*?))"')
  violating_gn_files = set()
  violating_source_entries = []
  for gn_file in gn_files:
    contents = input_api.ReadFile(gn_file)
    for source_block_match in source_pattern.finditer(contents):
      # Find all source list entries starting with ../ in the source block
      # (exclude overrides entries).
      for file_list_match in file_pattern.finditer(source_block_match.group(1)):
        source_file = file_list_match.group(1)
        if 'overrides/' not in source_file:
          violating_source_entries.append(source_file)
          violating_gn_files.add(gn_file)
  if violating_gn_files:
    return [output_api.PresubmitError(
        'Referencing source files above the directory of the GN file is not '
        'allowed. Please introduce new GN targets in the proper location '
        'instead.\n'
        'Invalid source entries:\n'
        '%s\n'
        'Violating GN files:' % '\n'.join(violating_source_entries),
        items=violating_gn_files)]
  return []

def CheckNoMixingSources(input_api, gn_files, output_api):
  """Disallow mixing C, C++ and Obj-C/Obj-C++ in the same target.

  See bugs.webrtc.org/7743 for more context.
  """

  def _MoreThanOneSourceUsed(*sources_lists):
    sources_used = 0
    for source_list in sources_lists:
      if len(source_list):
        sources_used += 1
    return sources_used > 1

  errors = defaultdict(lambda: [])
  for gn_file in gn_files:
    gn_file_content = input_api.ReadFile(gn_file)
    for target_match in TARGET_RE.finditer(gn_file_content):
      # list_of_sources is a list of tuples of the form
      # (c_files, cc_files, objc_files) that keeps track of all the sources
      # defined in a target. A GN target can have more that on definition of
      # sources (since it supports if/else statements).
      # E.g.:
      # rtc_static_library("foo") {
      #   if (is_win) {
      #     sources = [ "foo.cc" ]
      #   } else {
      #     sources = [ "foo.mm" ]
      #   }
      # }
      # This is allowed and the presubmit check should support this case.
      list_of_sources = []
      c_files = []
      cc_files = []
      objc_files = []
      target_name = target_match.group('target_name')
      target_contents = target_match.group('target_contents')
      for sources_match in SOURCES_RE.finditer(target_contents):
        if '+=' not in sources_match.group(0):
          if c_files or cc_files or objc_files:
            list_of_sources.append((c_files, cc_files, objc_files))
          c_files = []
          cc_files = []
          objc_files = []
        for file_match in FILE_PATH_RE.finditer(sources_match.group(1)):
          file_path = file_match.group('file_path')
          extension = file_match.group('extension')
          if extension == '.c':
            c_files.append(file_path + extension)
          if extension == '.cc':
            cc_files.append(file_path + extension)
          if extension in ['.m', '.mm']:
            objc_files.append(file_path + extension)
      list_of_sources.append((c_files, cc_files, objc_files))
      for c_files_list, cc_files_list, objc_files_list in list_of_sources:
        if _MoreThanOneSourceUsed(c_files_list, cc_files_list, objc_files_list):
          all_sources = sorted(c_files_list + cc_files_list + objc_files_list)
          errors[gn_file.LocalPath()].append((target_name, all_sources))
  if errors:
    return [output_api.PresubmitError(
        'GN targets cannot mix .c, .cc and .m (or .mm) source files.\n'
        'Please create a separate target for each collection of sources.\n'
        'Mixed sources: \n'
        '%s\n'
        'Violating GN files:\n%s\n' % (json.dumps(errors, indent=2),
                                       '\n'.join(errors.keys())))]
  return []

def CheckNoPackageBoundaryViolations(input_api, gn_files, output_api):
  cwd = input_api.PresubmitLocalPath()
  with _AddToPath(input_api.os_path.join(
      cwd, 'tools_webrtc', 'presubmit_checks_lib')):
    from check_package_boundaries import CheckPackageBoundaries
  build_files = [os.path.join(cwd, gn_file.LocalPath()) for gn_file in gn_files]
  errors = CheckPackageBoundaries(cwd, build_files)[:5]
  if errors:
    return [output_api.PresubmitError(
        'There are package boundary violations in the following GN files:',
        long_text='\n\n'.join(str(err) for err in errors))]
  return []

def _ReportFileAndLine(filename, line_num):
  """Default error formatter for _FindNewViolationsOfRule."""
  return '%s (line %s)' % (filename, line_num)

def CheckNoWarningSuppressionFlagsAreAdded(gn_files, input_api, output_api,
                                           error_formatter=_ReportFileAndLine):
  """Make sure that warning suppression flags are not added wihtout a reason."""
  msg = ('Usage of //build/config/clang:extra_warnings is discouraged '
         'in WebRTC.\n'
         'If you are not adding this code (e.g. you are just moving '
         'existing code) or you want to add an exception,\n'
         'you can add a comment on the line that causes the problem:\n\n'
         '"-Wno-odr"  # no-presubmit-check TODO(bugs.webrtc.org/BUG_ID)\n'
         '\n'
         'Affected files:\n')
  errors = []  # 2-element tuples with (file, line number)
  clang_warn_re = input_api.re.compile(r'//build/config/clang:extra_warnings')
  no_presubmit_re = input_api.re.compile(
      r'# no-presubmit-check TODO\(bugs\.webrtc\.org/\d+\)')
  for f in gn_files:
    for line_num, line in f.ChangedContents():
      if clang_warn_re.search(line) and not no_presubmit_re.search(line):
        errors.append(error_formatter(f.LocalPath(), line_num))
  if errors:
    return [output_api.PresubmitError(msg, errors)]
  return []

def CheckNoTestCaseUsageIsAdded(input_api, output_api, source_file_filter,
                                error_formatter=_ReportFileAndLine):
  error_msg = ('Usage of legacy GoogleTest API detected!\nPlease use the '
               'new API: https://github.com/google/googletest/blob/master/'
               'googletest/docs/primer.md#beware-of-the-nomenclature.\n'
               'Affected files:\n')
  errors = []  # 2-element tuples with (file, line number)
  test_case_re = input_api.re.compile(r'TEST_CASE')
  file_filter = lambda f: (source_file_filter(f)
                           and f.LocalPath().endswith('.cc'))
  for f in input_api.AffectedSourceFiles(file_filter):
    for line_num, line in f.ChangedContents():
      if test_case_re.search(line):
        errors.append(error_formatter(f.LocalPath(), line_num))
  if errors:
    return [output_api.PresubmitError(error_msg, errors)]
  return []

def CheckNoStreamUsageIsAdded(input_api, output_api,
                              source_file_filter,
                              error_formatter=_ReportFileAndLine):
  """Make sure that no more dependencies on stringstream are added."""
  error_msg = ('Usage of <sstream>, <istream> and <ostream> in WebRTC is '
               'deprecated.\n'
               'This includes the following types:\n'
               'std::istringstream, std::ostringstream, std::wistringstream, '
               'std::wostringstream,\n'
               'std::wstringstream, std::ostream, std::wostream, std::istream,'
               'std::wistream,\n'
               'std::iostream, std::wiostream.\n'
               'If you are not adding this code (e.g. you are just moving '
               'existing code),\n'
               'you can add a comment on the line that causes the problem:\n\n'
               '#include <sstream>  // no-presubmit-check TODO(webrtc:8982)\n'
               'std::ostream& F() {  // no-presubmit-check TODO(webrtc:8982)\n'
               '\n'
               'If you are adding new code, consider using '
               'rtc::SimpleStringBuilder\n'
               '(in rtc_base/strings/string_builder.h).\n'
               'Affected files:\n')
  errors = []  # 2-element tuples with (file, line number)
  include_re = input_api.re.compile(r'#include <(i|o|s)stream>')
  usage_re = input_api.re.compile(r'std::(w|i|o|io|wi|wo|wio)(string)*stream')
  no_presubmit_re = input_api.re.compile(
      r'// no-presubmit-check TODO\(webrtc:8982\)')
  file_filter = lambda x: (input_api.FilterSourceFile(x)
                           and source_file_filter(x))

  def _IsException(file_path):
    is_test = any(file_path.endswith(x) for x in ['_test.cc', '_tests.cc',
                                                  '_unittest.cc',
                                                  '_unittests.cc'])
    return (file_path.startswith('examples') or
            file_path.startswith('test') or
            is_test)

  for f in input_api.AffectedSourceFiles(file_filter):
    # Usage of stringstream is allowed under examples/ and in tests.
    if f.LocalPath() == 'PRESUBMIT.py' or _IsException(f.LocalPath()):
      continue
    for line_num, line in f.ChangedContents():
      if ((include_re.search(line) or usage_re.search(line))
          and not no_presubmit_re.search(line)):
        errors.append(error_formatter(f.LocalPath(), line_num))
  if errors:
    return [output_api.PresubmitError(error_msg, errors)]
  return []

def CheckPublicDepsIsNotUsed(gn_files, input_api, output_api):
  """Checks that public_deps is not used without a good reason."""
  result = []
  no_presubmit_check_re = input_api.re.compile(
      r'# no-presubmit-check TODO\(webrtc:\d+\)')
  error_msg = ('public_deps is not recommended in WebRTC BUILD.gn files '
               'because it doesn\'t map well to downstream build systems.\n'
               'Used in: %s (line %d).\n'
               'If you are not adding this code (e.g. you are just moving '
               'existing code) or you have a good reason, you can add this '
               'comment (verbatim) on the line that causes the problem:\n\n'
               'public_deps = [  # no-presubmit-check TODO(webrtc:8603)\n')
  for affected_file in gn_files:
    for (line_number, affected_line) in affected_file.ChangedContents():
      if 'public_deps' in affected_line:
        surpressed = no_presubmit_check_re.search(affected_line)
        if not surpressed:
          result.append(
              output_api.PresubmitError(error_msg % (affected_file.LocalPath(),
                                                     line_number)))
  return result

def CheckCheckIncludesIsNotUsed(gn_files, input_api, output_api):
  result = []
  error_msg = ('check_includes overrides are not allowed since it can cause '
               'incorrect dependencies to form. It effectively means that your '
               'module can include any .h file without depending on its '
               'corresponding target. There are some exceptional cases when '
               'this is allowed: if so, get approval from a .gn owner in the '
               'root OWNERS file.\n'
               'Used in: %s (line %d).')
  no_presubmit_re = input_api.re.compile(
      r'# no-presubmit-check TODO\(bugs\.webrtc\.org/\d+\)')
  for affected_file in gn_files:
    for (line_number, affected_line) in affected_file.ChangedContents():
      if ('check_includes' in affected_line
          and not no_presubmit_re.search(affected_line)):
        result.append(
            output_api.PresubmitError(error_msg % (affected_file.LocalPath(),
                                                   line_number)))
  return result

def CheckGnChanges(input_api, output_api):
  file_filter = lambda x: (input_api.FilterSourceFile(
      x, white_list=(r'.+\.(gn|gni)$',),
      black_list=(r'.*/presubmit_checks_lib/testdata/.*',)))

  gn_files = []
  for f in input_api.AffectedSourceFiles(file_filter):
    gn_files.append(f)

  result = []
  if gn_files:
    result.extend(CheckNoSourcesAbove(input_api, gn_files, output_api))
    result.extend(CheckNoMixingSources(input_api, gn_files, output_api))
    result.extend(CheckNoPackageBoundaryViolations(input_api, gn_files,
                                                   output_api))
    result.extend(CheckPublicDepsIsNotUsed(gn_files, input_api, output_api))
    result.extend(CheckCheckIncludesIsNotUsed(gn_files, input_api, output_api))
    result.extend(CheckNoWarningSuppressionFlagsAreAdded(gn_files, input_api,
                                                          output_api))
  return result

def CheckGnGen(input_api, output_api):
  """Runs `gn gen --check` with default args to detect mismatches between
  #includes and dependencies in the BUILD.gn files, as well as general build
  errors.
  """
  with _AddToPath(input_api.os_path.join(
      input_api.PresubmitLocalPath(), 'tools_webrtc', 'presubmit_checks_lib')):
    from build_helpers import RunGnCheck
  errors = RunGnCheck(FindSrcDirPath(input_api.PresubmitLocalPath()))[:5]
  if errors:
    return [output_api.PresubmitPromptWarning(
        'Some #includes do not match the build dependency graph. Please run:\n'
        '  gn gen --check <out_dir>',
        long_text='\n\n'.join(errors))]
  return []

def CheckUnwantedDependencies(input_api, output_api, source_file_filter):
  """Runs checkdeps on #include statements added in this
  change. Breaking - rules is an error, breaking ! rules is a
  warning.
  """
  # Copied from Chromium's src/PRESUBMIT.py.

  # We need to wait until we have an input_api object and use this
  # roundabout construct to import checkdeps because this file is
  # eval-ed and thus doesn't have __file__.
  src_path = FindSrcDirPath(input_api.PresubmitLocalPath())
  checkdeps_path = input_api.os_path.join(src_path, 'buildtools', 'checkdeps')
  if not os.path.exists(checkdeps_path):
    return [output_api.PresubmitError(
        'Cannot find checkdeps at %s\nHave you run "gclient sync" to '
        'download all the DEPS entries?' % checkdeps_path)]
  with _AddToPath(checkdeps_path):
    import checkdeps
    from cpp_checker import CppChecker
    from rules import Rule

  added_includes = []
  for f in input_api.AffectedFiles(file_filter=source_file_filter):
    if not CppChecker.IsCppFile(f.LocalPath()):
      continue

    changed_lines = [line for _, line in f.ChangedContents()]
    added_includes.append([f.LocalPath(), changed_lines])

  deps_checker = checkdeps.DepsChecker(input_api.PresubmitLocalPath())

  error_descriptions = []
  warning_descriptions = []
  for path, rule_type, rule_description in deps_checker.CheckAddedCppIncludes(
      added_includes):
    description_with_path = '%s\n    %s' % (path, rule_description)
    if rule_type == Rule.DISALLOW:
      error_descriptions.append(description_with_path)
    else:
      warning_descriptions.append(description_with_path)

  results = []
  if error_descriptions:
    results.append(output_api.PresubmitError(
        'You added one or more #includes that violate checkdeps rules.\n'
        'Check that the DEPS files in these locations contain valid rules.\n'
        'See https://cs.chromium.org/chromium/src/buildtools/checkdeps/ for '
        'more details about checkdeps.',
        error_descriptions))
  if warning_descriptions:
    results.append(output_api.PresubmitPromptOrNotify(
        'You added one or more #includes of files that are temporarily\n'
        'allowed but being removed. Can you avoid introducing the\n'
        '#include? See relevant DEPS file(s) for details and contacts.\n'
        'See https://cs.chromium.org/chromium/src/buildtools/checkdeps/ for '
        'more details about checkdeps.',
        warning_descriptions))
  return results

def CheckCommitMessageBugEntry(input_api, output_api):
  """Check that bug entries are well-formed in commit message."""
  bogus_bug_msg = (
      'Bogus Bug entry: %s. Please specify the issue tracker prefix and the '
      'issue number, separated by a colon, e.g. webrtc:123 or chromium:12345.')
  results = []
  for bug in input_api.change.BugsFromDescription():
    bug = bug.strip()
    if bug.lower() == 'none':
      continue
    if 'b/' not in bug and ':' not in bug:
      try:
        if int(bug) > 100000:
          # Rough indicator for current chromium bugs.
          prefix_guess = 'chromium'
        else:
          prefix_guess = 'webrtc'
        results.append('Bug entry requires issue tracker prefix, e.g. %s:%s' %
                       (prefix_guess, bug))
      except ValueError:
        results.append(bogus_bug_msg % bug)
    elif not (re.match(r'\w+:\d+', bug) or re.match(r'b/\d+', bug)):
      results.append(bogus_bug_msg % bug)
  return [output_api.PresubmitError(r) for r in results]

def CheckChangeHasBugField(input_api, output_api):
  """Requires that the changelist is associated with a bug.

  This check is stricter than the one in depot_tools/presubmit_canned_checks.py
  since it fails the presubmit if the bug field is missing or doesn't contain
  a bug reference.

  This supports both 'BUG=' and 'Bug:' since we are in the process of migrating
  to Gerrit and it encourages the usage of 'Bug:'.
  """
  if input_api.change.BugsFromDescription():
    return []
  else:
    return [output_api.PresubmitError(
        'The "Bug: [bug number]" footer is mandatory. Please create a bug and '
        'reference it using either of:\n'
        ' * https://bugs.webrtc.org - reference it using Bug: webrtc:XXXX\n'
        ' * https://crbug.com - reference it using Bug: chromium:XXXXXX')]

def CheckJSONParseErrors(input_api, output_api, source_file_filter):
  """Check that JSON files do not contain syntax errors."""

  def FilterFile(affected_file):
    return (input_api.os_path.splitext(affected_file.LocalPath())[1] == '.json'
            and source_file_filter(affected_file))

  def GetJSONParseError(input_api, filename):
    try:
      contents = input_api.ReadFile(filename)
      input_api.json.loads(contents)
    except ValueError as e:
      return e
    return None

  results = []
  for affected_file in input_api.AffectedFiles(
      file_filter=FilterFile, include_deletes=False):
    parse_error = GetJSONParseError(input_api,
                                    affected_file.AbsoluteLocalPath())
    if parse_error:
      results.append(output_api.PresubmitError('%s could not be parsed: %s' %
                                               (affected_file.LocalPath(),
                                                parse_error)))
  return results

def RunPythonTests(input_api, output_api):
  def Join(*args):
    return input_api.os_path.join(input_api.PresubmitLocalPath(), *args)

  test_directories = [
      input_api.PresubmitLocalPath(),
      Join('rtc_tools', 'py_event_log_analyzer'),
      Join('audio', 'test', 'unittests'),
  ] + [
      root for root, _, files in os.walk(Join('tools_webrtc'))
      if any(f.endswith('_test.py') for f in files)
  ]

  tests = []
  for directory in test_directories:
    tests.extend(
      input_api.canned_checks.GetUnitTestsInDirectory(
          input_api,
          output_api,
          directory,
          whitelist=[r'.+_test\.py$']))
  return input_api.RunTests(tests, parallel=True)

def CheckUsageOfGoogleProtobufNamespace(input_api, output_api,
                                        source_file_filter):
  """Checks that the namespace google::protobuf has not been used."""
  files = []
  pattern = input_api.re.compile(r'google::protobuf')
  proto_utils_path = os.path.join('rtc_base', 'protobuf_utils.h')
  file_filter = lambda x: (input_api.FilterSourceFile(x)
                           and source_file_filter(x))
  for f in input_api.AffectedSourceFiles(file_filter):
    if f.LocalPath() in [proto_utils_path, 'PRESUBMIT.py']:
      continue
    contents = input_api.ReadFile(f)
    if pattern.search(contents):
      files.append(f)

  if files:
    return [output_api.PresubmitError(
        'Please avoid to use namespace `google::protobuf` directly.\n'
        'Add a using directive in `%s` and include that header instead.'
        % proto_utils_path, files)]
  return []

def _LicenseHeader(input_api):
  """Returns the license header regexp."""
  # Accept any year number from 2003 to the current year
  current_year = int(input_api.time.strftime('%Y'))
  allowed_years = (str(s) for s in reversed(xrange(2003, current_year + 1)))
  years_re = '(' + '|'.join(allowed_years) + ')'
  license_header = (
      r'.*? Copyright( \(c\))? %(year)s The WebRTC [Pp]roject [Aa]uthors\. '
        r'All [Rr]ights [Rr]eserved\.\n'
      r'.*?\n'
      r'.*? Use of this source code is governed by a BSD-style license\n'
      r'.*? that can be found in the LICENSE file in the root of the source\n'
      r'.*? tree\. An additional intellectual property rights grant can be '
        r'found\n'
      r'.*? in the file PATENTS\.  All contributing project authors may\n'
      r'.*? be found in the AUTHORS file in the root of the source tree\.\n'
  ) % {
      'year': years_re,
  }
  return license_header

def CommonChecks(input_api, output_api):
  """Checks common to both upload and commit."""
  results = []
  # Filter out files that are in objc or ios dirs from being cpplint-ed since
  # they do not follow C++ lint rules.
  black_list = input_api.DEFAULT_BLACK_LIST + (
    r".*\bobjc[\\\/].*",
    r".*objc\.[hcm]+$",
  )
  source_file_filter = lambda x: input_api.FilterSourceFile(x, None, black_list)
  results.extend(CheckApprovedFilesLintClean(
      input_api, output_api, source_file_filter))
  results.extend(input_api.canned_checks.CheckLicense(
      input_api, output_api, _LicenseHeader(input_api)))
  results.extend(input_api.canned_checks.RunPylint(input_api, output_api,
      black_list=(r'^base[\\\/].*\.py$',
                  r'^build[\\\/].*\.py$',
                  r'^buildtools[\\\/].*\.py$',
                  r'^infra[\\\/].*\.py$',
                  r'^ios[\\\/].*\.py$',
                  r'^out.*[\\\/].*\.py$',
                  r'^testing[\\\/].*\.py$',
                  r'^third_party[\\\/].*\.py$',
                  r'^tools[\\\/].*\.py$',
                  # TODO(phoglund): should arguably be checked.
                  r'^tools_webrtc[\\\/]mb[\\\/].*\.py$',
                  r'^xcodebuild.*[\\\/].*\.py$',),
      pylintrc='pylintrc'))

  # TODO(nisse): talk/ is no more, so make below checks simpler?
  # WebRTC can't use the presubmit_canned_checks.PanProjectChecks function since
  # we need to have different license checks in talk/ and webrtc/ directories.
  # Instead, hand-picked checks are included below.

  # .m and .mm files are ObjC files. For simplicity we will consider .h files in
  # ObjC subdirectories ObjC headers.
  objc_filter_list = (r'.+\.m$', r'.+\.mm$', r'.+objc\/.+\.h$')
  # Skip long-lines check for DEPS and GN files.
  build_file_filter_list = (r'.+\.gn$', r'.+\.gni$', 'DEPS')
  # Also we will skip most checks for third_party directory.
  third_party_filter_list = (r'^third_party[\\\/].+',)
  eighty_char_sources = lambda x: input_api.FilterSourceFile(x,
      black_list=build_file_filter_list + objc_filter_list +
                 third_party_filter_list)
  hundred_char_sources = lambda x: input_api.FilterSourceFile(x,
      white_list=objc_filter_list)
  non_third_party_sources = lambda x: input_api.FilterSourceFile(x,
      black_list=third_party_filter_list)

  results.extend(input_api.canned_checks.CheckLongLines(
      input_api, output_api, maxlen=80, source_file_filter=eighty_char_sources))
  results.extend(input_api.canned_checks.CheckLongLines(
      input_api, output_api, maxlen=100,
      source_file_filter=hundred_char_sources))
  results.extend(input_api.canned_checks.CheckChangeHasNoTabs(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(input_api.canned_checks.CheckChangeHasNoStrayWhitespace(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(input_api.canned_checks.CheckAuthorizedAuthor(
      input_api, output_api, bot_whitelist=[
          'chromium-webrtc-autoroll@webrtc-ci.iam.gserviceaccount.com'
      ]))
  results.extend(input_api.canned_checks.CheckChangeTodoHasOwner(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(input_api.canned_checks.CheckPatchFormatted(
      input_api, output_api))
  results.extend(CheckNativeApiHeaderChanges(input_api, output_api))
  results.extend(CheckNoIOStreamInHeaders(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(CheckNoPragmaOnce(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(CheckNoFRIEND_TEST(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(CheckGnChanges(input_api, output_api))
  results.extend(CheckUnwantedDependencies(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(CheckJSONParseErrors(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(RunPythonTests(input_api, output_api))
  results.extend(CheckUsageOfGoogleProtobufNamespace(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(CheckOrphanHeaders(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(CheckNewlineAtTheEndOfProtoFiles(
      input_api, output_api, source_file_filter=non_third_party_sources))
  results.extend(CheckNoStreamUsageIsAdded(
      input_api, output_api, non_third_party_sources))
  results.extend(CheckNoTestCaseUsageIsAdded(
      input_api, output_api, non_third_party_sources))
  results.extend(CheckAddedDepsHaveTargetApprovals(input_api, output_api))
  results.extend(CheckApiDepsFileIsUpToDate(input_api, output_api))
  results.extend(CheckAbslMemoryInclude(
      input_api, output_api, non_third_party_sources))
  results.extend(CheckBannedAbslMakeUnique(
      input_api, output_api, non_third_party_sources))
  return results

def CheckApiDepsFileIsUpToDate(input_api, output_api):
  """Check that 'include_rules' in api/DEPS is up to date.

  The file api/DEPS must be kept up to date in order to avoid to avoid to
  include internal header from WebRTC's api/ headers.

  This check is focused on ensuring that 'include_rules' contains a deny
  rule for each root level directory. More focused allow rules can be
  added to 'specific_include_rules'.
  """
  results = []
  api_deps = os.path.join(input_api.PresubmitLocalPath(), 'api', 'DEPS')
  with open(api_deps) as f:
    deps_content = _ParseDeps(f.read())

  include_rules = deps_content.get('include_rules', [])
  dirs_to_skip = set(['api', 'docs'])

  # Only check top level directories affected by the current CL.
  dirs_to_check = set()
  for f in input_api.AffectedFiles():
    path_tokens = [t for t in f.LocalPath().split(os.sep) if t]
    if len(path_tokens) > 1:
      if (path_tokens[0] not in dirs_to_skip and
          os.path.isdir(os.path.join(input_api.PresubmitLocalPath(),
                                     path_tokens[0]))):
        dirs_to_check.add(path_tokens[0])

  missing_include_rules = set()
  for p in dirs_to_check:
    rule = '-%s' % p
    if rule not in include_rules:
      missing_include_rules.add(rule)

  if missing_include_rules:
    error_msg = [
      'include_rules = [\n',
      '  ...\n',
    ]

    for r in sorted(missing_include_rules):
      error_msg.append('  "%s",\n' % str(r))

    error_msg.append('  ...\n')
    error_msg.append(']\n')

    results.append(output_api.PresubmitError(
        'New root level directory detected! WebRTC api/ headers should '
        'not #include headers from \n'
        'the new directory, so please update "include_rules" in file\n'
        '"%s". Example:\n%s\n' % (api_deps, ''.join(error_msg))))

  return results

def CheckBannedAbslMakeUnique(input_api, output_api, source_file_filter):
  file_filter = lambda f: (f.LocalPath().endswith(('.cc', '.h'))
                           and source_file_filter(f))

  files = []
  for f in input_api.AffectedFiles(
      include_deletes=False, file_filter=file_filter):
    for _, line in f.ChangedContents():
      if 'absl::make_unique' in line:
        files.append(f)
        break

  if len(files):
    return [output_api.PresubmitError(
        'Please use std::make_unique instead of absl::make_unique.\n'
        'Affected files:',
        files)]
  return []

def CheckAbslMemoryInclude(input_api, output_api, source_file_filter):
  pattern = input_api.re.compile(
      r'^#include\s*"absl/memory/memory.h"', input_api.re.MULTILINE)
  file_filter = lambda f: (f.LocalPath().endswith(('.cc', '.h'))
                           and source_file_filter(f))

  files = []
  for f in input_api.AffectedFiles(
      include_deletes=False, file_filter=file_filter):
    contents = input_api.ReadFile(f)
    if pattern.search(contents):
      continue
    for _, line in f.ChangedContents():
      if 'absl::WrapUnique' in line:
        files.append(f)
        break

  if len(files):
    return [output_api.PresubmitError(
        'Please include "absl/memory/memory.h" header for  absl::WrapUnique.\n'
        'This header may or may not be included transitively depending on the '
        'C++ standard version.',
        files)]
  return []

def CheckChangeOnUpload(input_api, output_api):
  results = []
  results.extend(CommonChecks(input_api, output_api))
  results.extend(CheckGnGen(input_api, output_api))
  results.extend(
      input_api.canned_checks.CheckGNFormatted(input_api, output_api))
  return results

def CheckChangeOnCommit(input_api, output_api):
  results = []
  results.extend(CommonChecks(input_api, output_api))
  results.extend(VerifyNativeApiHeadersListIsValid(input_api, output_api))
  results.extend(input_api.canned_checks.CheckOwners(input_api, output_api))
  results.extend(input_api.canned_checks.CheckChangeWasUploaded(
      input_api, output_api))
  results.extend(input_api.canned_checks.CheckChangeHasDescription(
      input_api, output_api))
  results.extend(CheckChangeHasBugField(input_api, output_api))
  results.extend(CheckCommitMessageBugEntry(input_api, output_api))
  results.extend(input_api.canned_checks.CheckTreeIsOpen(
      input_api, output_api,
      json_url='http://webrtc-status.appspot.com/current?format=json'))
  return results

def CheckOrphanHeaders(input_api, output_api, source_file_filter):
  # We need to wait until we have an input_api object and use this
  # roundabout construct to import prebubmit_checks_lib because this file is
  # eval-ed and thus doesn't have __file__.
  error_msg = """{} should be listed in {}."""
  results = []
  orphan_blacklist = [
    os.path.join('tools_webrtc', 'ios', 'SDK'),
  ]
  with _AddToPath(input_api.os_path.join(
      input_api.PresubmitLocalPath(), 'tools_webrtc', 'presubmit_checks_lib')):
    from check_orphan_headers import GetBuildGnPathFromFilePath
    from check_orphan_headers import IsHeaderInBuildGn

  file_filter = lambda x: input_api.FilterSourceFile(
      x, black_list=orphan_blacklist) and source_file_filter(x)
  for f in input_api.AffectedSourceFiles(file_filter):
    if f.LocalPath().endswith('.h'):
      file_path = os.path.abspath(f.LocalPath())
      root_dir = os.getcwd()
      gn_file_path = GetBuildGnPathFromFilePath(file_path, os.path.exists,
                                                root_dir)
      in_build_gn = IsHeaderInBuildGn(file_path, gn_file_path)
      if not in_build_gn:
        results.append(output_api.PresubmitError(error_msg.format(
            f.LocalPath(), os.path.relpath(gn_file_path))))
  return results

def CheckNewlineAtTheEndOfProtoFiles(input_api, output_api, source_file_filter):
  """Checks that all .proto files are terminated with a newline."""
  error_msg = 'File {} must end with exactly one newline.'
  results = []
  file_filter = lambda x: input_api.FilterSourceFile(
      x, white_list=(r'.+\.proto$',)) and source_file_filter(x)
  for f in input_api.AffectedSourceFiles(file_filter):
    file_path = f.LocalPath()
    with open(file_path) as f:
      lines = f.readlines()
      if len(lines) > 0 and not lines[-1].endswith('\n'):
        results.append(output_api.PresubmitError(error_msg.format(file_path)))
  return results

def _ExtractAddRulesFromParsedDeps(parsed_deps):
  """Extract the rules that add dependencies from a parsed DEPS file.

  Args:
    parsed_deps: the locals dictionary from evaluating the DEPS file."""
  add_rules = set()
  add_rules.update([
      rule[1:] for rule in parsed_deps.get('include_rules', [])
      if rule.startswith('+') or rule.startswith('!')
  ])
  for _, rules in parsed_deps.get('specific_include_rules',
                                              {}).iteritems():
    add_rules.update([
        rule[1:] for rule in rules
        if rule.startswith('+') or rule.startswith('!')
    ])
  return add_rules

def _ParseDeps(contents):
  """Simple helper for parsing DEPS files."""
  # Stubs for handling special syntax in the root DEPS file.
  class VarImpl(object):

    def __init__(self, local_scope):
      self._local_scope = local_scope

    def Lookup(self, var_name):
      """Implements the Var syntax."""
      try:
        return self._local_scope['vars'][var_name]
      except KeyError:
        raise Exception('Var is not defined: %s' % var_name)

  local_scope = {}
  global_scope = {
      'Var': VarImpl(local_scope).Lookup,
  }
  exec contents in global_scope, local_scope
  return local_scope

def _CalculateAddedDeps(os_path, old_contents, new_contents):
  """Helper method for _CheckAddedDepsHaveTargetApprovals. Returns
  a set of DEPS entries that we should look up.

  For a directory (rather than a specific filename) we fake a path to
  a specific filename by adding /DEPS. This is chosen as a file that
  will seldom or never be subject to per-file include_rules.
  """
  # We ignore deps entries on auto-generated directories.
  auto_generated_dirs = ['grit', 'jni']

  old_deps = _ExtractAddRulesFromParsedDeps(_ParseDeps(old_contents))
  new_deps = _ExtractAddRulesFromParsedDeps(_ParseDeps(new_contents))

  added_deps = new_deps.difference(old_deps)

  results = set()
  for added_dep in added_deps:
    if added_dep.split('/')[0] in auto_generated_dirs:
      continue
    # Assume that a rule that ends in .h is a rule for a specific file.
    if added_dep.endswith('.h'):
      results.add(added_dep)
    else:
      results.add(os_path.join(added_dep, 'DEPS'))
  return results

def CheckAddedDepsHaveTargetApprovals(input_api, output_api):
  """When a dependency prefixed with + is added to a DEPS file, we
  want to make sure that the change is reviewed by an OWNER of the
  target file or directory, to avoid layering violations from being
  introduced. This check verifies that this happens.
  """
  virtual_depended_on_files = set()

  file_filter = lambda f: not input_api.re.match(
      r"^third_party[\\\/](WebKit|blink)[\\\/].*", f.LocalPath())
  for f in input_api.AffectedFiles(include_deletes=False,
                                   file_filter=file_filter):
    filename = input_api.os_path.basename(f.LocalPath())
    if filename == 'DEPS':
      virtual_depended_on_files.update(_CalculateAddedDeps(
          input_api.os_path,
          '\n'.join(f.OldContents()),
          '\n'.join(f.NewContents())))

  if not virtual_depended_on_files:
    return []

  if input_api.is_committing:
    if input_api.tbr:
      return [output_api.PresubmitNotifyResult(
          '--tbr was specified, skipping OWNERS check for DEPS additions')]
    if input_api.dry_run:
      return [output_api.PresubmitNotifyResult(
          'This is a dry run, skipping OWNERS check for DEPS additions')]
    if not input_api.change.issue:
      return [output_api.PresubmitError(
          "DEPS approval by OWNERS check failed: this change has "
          "no change number, so we can't check it for approvals.")]
    output = output_api.PresubmitError
  else:
    output = output_api.PresubmitNotifyResult

  owners_db = input_api.owners_db
  owner_email, reviewers = (
      input_api.canned_checks.GetCodereviewOwnerAndReviewers(
        input_api,
        owners_db.email_regexp,
        approval_needed=input_api.is_committing))

  owner_email = owner_email or input_api.change.author_email

  reviewers_plus_owner = set(reviewers)
  if owner_email:
    reviewers_plus_owner.add(owner_email)
  missing_files = owners_db.files_not_covered_by(virtual_depended_on_files,
                                                 reviewers_plus_owner)

  # We strip the /DEPS part that was added by
  # _FilesToCheckForIncomingDeps to fake a path to a file in a
  # directory.
  def StripDeps(path):
    start_deps = path.rfind('/DEPS')
    if start_deps != -1:
      return path[:start_deps]
    else:
      return path
  unapproved_dependencies = ["'+%s'," % StripDeps(path)
                             for path in missing_files]

  if unapproved_dependencies:
    output_list = [
      output('You need LGTM from owners of depends-on paths in DEPS that were '
             'modified in this CL:\n    %s' %
                 '\n    '.join(sorted(unapproved_dependencies)))]
    suggested_owners = owners_db.reviewers_for(missing_files, owner_email)
    output_list.append(output(
        'Suggested missing target path OWNERS:\n    %s' %
            '\n    '.join(suggested_owners or [])))
    return output_list

  return []

redpajama_set_name: RedPajamaGithub


Neighborhood House Gives Back took our adult clients to the Humane Society of Utah to offer homemade pet treats and other donations! Watch the video to know more!
Follow us on social media to find out more about Neighborhood House's activities.


Therefore regarding secure a job. It will be possible to create their work a bit stressful which they despise.
So as to procure a project. It's possible to produce their work a bit more demanding which they despise.


text:
Saint-Mandé – miejscowość i gmina we Francji, w regionie Île-de-France, w departamencie Dolina Marny.

Według danych na rok 1990 gminę zamieszkiwały 18 684 osoby, a gęstość zaludnienia wynosiła 20 309 osób/km² (wśród 1287 gmin regionu Île-de-France Saint-Mandé plasuje się na 156. miejscu pod względem liczby ludności, natomiast pod względem powierzchni na miejscu 889.).

W tamtejszym szpitalu w 1956 roku przebywał na leczeniu polski poeta, Aleksander Wat. Powstały tam jego liczne wiersze, opisujące zmagania z bólem i nieuleczalną chorobą.

Znane osoby
 Georges Courteline,
 Maurice Boitel, malarz
 Nicolas Fouquet,
 Mazarin,

Bibliografia

Saint-Mandé
Miejscowości w departamencie Dolina Marny
Miasta w regionie Île-de-France

redpajama_set_name: RedPajamaWikipedia


text:
Metts
SDB Popularity Ranking: 27962
M >
Last name: Metts
Recorded in several spellings including Meat, Meats, Meates, Meth, Methe, and Metts, this is an English surname. It may be occupational and describe a butcher or a keeper of a cooked meat business, perhaps what would now be called a delicatessen. Curiously the name as Meatyarde which presumably referred to an early abbatoir keeper, is recorded in the county of Wiltshire in 1618, when John Meatyarde married Ann King at the village of Broad Chalk, but it is possible that this spelling is now extinct. Another possible origin is from the Olde English pre 7th century word 'methe' meaning courteous or friendly, and hence a nickname for such a person, or perhaps given the robust humour of the Chaucerian period, the complete reverse! In an ancient roll of trades of the 14th century it is recorded that 'Thou was methe and meke', so perhaps it really did mean courteous. The first recorded spelling in any form is believed to be that of Henry Methe in the Hundred Roll of landowners for the county of Suffolk in the year 1273, whilst somewhat later Elizabeth Mett is recorded in the register of St Nicholas Acorns in the city of London, on April 20th 1549, and John Meates in the register of the exotically named church of St Andrew Undershaft, also in the city of London, on April 7th 1583.
Surname scroll for: Metts


text:
Germany. Chameleon in broccoli. A stowaway scared the seller
The vegetable seller from Pilsen, in northern Germany, was not expecting this. He found a chameleon in a box with cauliflower, reports dw.com. Perhaps the stowaway comes from southern Europe.
Birth of the Sumatran tiger. It is an endangered species [WIDEO]
The Dallas Zoo in the United States announced the birth of two Sumatran tigers on Monday. This is another offspring of the tiger's parents – Suki and …
A shipment of vegetables was brought from France. After opening it and noticing the intruder, the seller asked for help from the police.
"When we looked at the cauliflower box, two eyes were looking at us from the vegetation, moving independently of each other," a police spokesman said.
As he said, the chameleon "did not show any signs of tremendous tension with the flight" and was "in good health."
There is a lot going on today: In # georgsmarinhot Single bites in store #spider Salesman (no risk!). in a # If you know B. # sick welcome #BlinderPassenger Call #chameleon I #cauliflower vegetable seller with#welcomeHere I am," the source, Bad S. Police Department. pic.twitter.com/OghhlBCrff
– Willi Schewski – Photographer (@willi_schewski) December 30, 2021
Christopher F. Anderson, a chameleon expert at the International Union for Conservation of Nature, assessed in an interview with Deutsche Welle that the specimen that came to Germany is a young chameleon in the Mediterranean, appearing in, among other things, in southern Spain and southern Italy. Greece and Malta. In his opinion, the cauliflower could have come from outside France, from a place within the range of this species, while in this country it was simply packaged and shipped with a stowaway.
#chameleon
# If you know
#merchant
#normal conversation
See also Ordo Iuris set up his own university, to teach "the elite of the Intermarium countries". At the opening of Czarnek and Gliñski
Don't Miss it USA: Democrat Eric Adams 110th Mayor of New York
Up Next People love foldable smartphones. In 2022, they will be conquered


The fruit grow on a dense evergreen tree which grows up to 20 metres in height, so picking is laborious. They can also squirt out caustic sap when picked, so pickers have to wear rubber gloves and sun glasses to avoid irritation to their skin and eyes.
Mangoes are rich in vitamin A and contain significant quantities of B, C and E. Green, unripe mangoes make excellent chutney. See 'Mango Chutney' in our Recipe Section.


text:
Tulpa Questions & Answers
Does a tulpa "own" its image? If so, is it unethical to puppet a tulpa's form?
[visualization] Does a tulpa "own" its image? If so, is it unethical to puppet a tulpa's form?
By Guest Yoda,
November 3, 2015 in Tulpa Questions & Answers
Guest Yoda
I puppet my thoughtform deliberately. She allows this, condones it and even participates in it. I would like to see some more discussion about this idea.
Does a tulpa "own" its image? If so, is it unethical to puppet a tulpa's form? What if the tulpa gives you permission to puppet his or her form?
IBreakGames
Genuine Dude
Joined October 2, 2014
Do you own your own body? It's kinda up to your own interpretation. I would say that while I did not create my form, but I am the "owner" of it. I control it, I talk with it, I mean everything I do with my form is of my own volition. I have a difficult time puppeting. I can hardly puppet Al now that he's fairly developed, he just usually goes and does his own thing.
Is it ethical? Also up to interpretation. I say yes if they allow it, and if that's how they desire to live their lives. Some of the ethics of the real world don't necessarily apply inside of your mind, since it's not like a thoughtform (necessarily) has real world responsibilities.
I'm IBreakGames, a genuine dude.
We gave up on using different colors for each of us, so there's Al, Ollie, and Eva. We're all rabbits, get over it.
LukeDude759
Luke and Ellie
Joined November 14, 2013
In my opinion, puppeting a tulpa (Or nearly anything equally questionable, for that matter) is no less ethical than trying to pick up a cat. If the cat is okay with being picked up, it isn't very unethical at all. If the cat isn't okay with being picked up, it will let you know that it doesn't want you to do that, and will (usually) only end in someone getting hurt if you keep doing it.
I hope this analogy made sense, but I'm still waking up, so sorry if it didn't.
"Don't listen to friends when the friend inside you says 'Do this.'" -Gandhi
Tulpa Name: Ellie
Created: 11/13/13
That is interesting. So if the ethics of puppeting are subjective interpretation, and up to the tulpa to whether to allow it, puppeting would be perfectly ethical and harmless to a host/thoughtform pair if that is what they both wanted. :-)
Actually I think the cat analogy is great! It makes a good point. Some tulpa certainly will be more proprietary and have major issues with the host manipulating their form.
I mean, a thoughtform's whole existence is up to interpretation. The only thing we experience in the world is through the mind of our host. I have no true way of verifying that my host is real (ain't that some meta shit), much like how you have no true way of knowing if the people around you are real. The only thing you can truly know is yourself, and that's about it. So my existence is truly what I make of it since around me, I am not bound by the laws of nature, but only within this world in my host's mind.
loves the moon
Joined April 18, 2014
As someone who has picked up both kinds of cats, I have to give that analogy props.
I've never puppetted my tulpas consciously before, but it feels like I can. My tulpas feel like they only assume responsibility for their forms, but could easily hand over control to me. That is, "they" do not feel like their "forms", but more like they are closely identified with our mental imagery of them. I've never puppetted them but I believe I can. And I do sort of "suggest" locations or positions to be in or go to, such as during imposition or visualization, but it's with unconscious agreement on both our parts. Obviously tulpas have some sort of authority over their forms as you've literally said "This is your form" while creating them, but I think the extent to which they feel they are their form varies by tulpa. Mine identify closely enough that we can pretty much call their forms "them", but not so closely that accidental puppeting or invasive thoughts could remotely affect them. I'm sure there are tulpas who identify much more closely to their forms than others, though. And I know a few that see form as no more than an avatar for their consciousness.
Continued here.
Hi! I'm Lumi, host of Reisen, Tewi, Flandre and Lucilyn.
Everyone deserves to love and be loved. It's human nature.
My tulpas and I have a Q&A thread, which was the first (and largest) of its kind. Feel free to ask us stuff.
AracnidsGrip/Rick
Ace Of Spades♠
Joined April 7, 2015
They do as we own our bodies. Fef for example. I made her to look like a troll from Homestuck with her same name, but she said after some time: "No, dude. I want to look like Katherine McNamara." So she changed from a troll to a sexy ginger girl. Yes, they own their form.
~L. ♠
TheCrawlingCreepypasta
The Dancing Creep
Joined August 14, 2015
If a tulpa is truly fine with it, go ahead. You have their permission, after all.
(Maybe i'm just not reading into this enough, but I do admit i'm curious about your motivations for puppeting her form. )
Guest Anonymous
Hi, Mistgod here. Just using my main account instead of my new Yoda account.
Melian was born from extreme day dreaming that started when I was young in the late 1970s and earl 1980s. We call her day dream sessions the Melian Show. Melian is a day dream star and imaginary friend that became a thoughtform over a long period of time. My motivation for puppeting her has always been the same, continuing to day dream about her each day. Melian has traits of a semi-autonomous thoughtform (some traits of a tulpa) but also remains that subject of fantasy. She doesn't mind it, and in fact loves it. We have been doing this together in collaboration for decades.
Here are some sample Melian show synopses:
Melian Show Program Guide I -
Melian Show Program Guide II -
Melian's Melian Show episode "Bride on the Run" -
I just wanted to what other thought about this concept and was curious what they would have to say about it. I gain important insights into tulpamancy and thoughtforms in general with these discussions. Also, I want to share my thoughts and experiences with those who will find them interesting.
Linkzelda
>MFW Image Streaming
Joined October 27, 2012
Does a tulpa "own" its image?
Well, if we took this in context of person to person vs. person to tulpa, the former would just be an assertion of autonomy, i.e., no one couldn't possess, or own you of your body and mind; dispositions, and what have you.
When taken inwardly, it seems to lead to an equivocation with "I own myself" vs. "I am myself." If you're going through that hypothetical agenda of treating them as sentient, there may be an implied notion of them being able to foster, and assert their own autonomy. Some may dive deeper in what it means to be sentient in context of them progressively being capable of being themselves with little to no substantial influence from our end (e.g. personality forcing to have a transitory means of dispositions to call their own, and potentially expand upon).
If so' date=' is it unethical to puppet a tulpa's form?[/quote']
Figuring out if it has any pragmatic value is subjective, I think.
-	If we took the situation in context of you and your companion negotiating to where both parties have their needs fulfilled (what you both decided upon), there may not be any wrong doing, and thus creates the implication that there's no burning, pragmatic value that should be killing your conscience in said endeavor with them.
-	If we took "image" in context solely on their form alone, unless they feel that your mental actions can initiate mental harm towards their existence, then there may no wrong doing at all.
- If we took this deliberate act as something transient (e.g. what I mentioned with
personality forcing to have a transitory means of dispositions to call their own, and potentially expand upon
, then it's just to get something starting.
-	It we took "image" in context of their dispositions, implied sense of self, yearning in fulfilling goals, and using what's available mentally within our everyday cognition, it's probably a matter of going back to the hypothetical assessment of treating a tulpa as sentient.
[align=center]o	Does one continue to foster the belief that treating them as sentient means making militant, and daily endeavors to contribute towards their existence in a collective manner?
o	Does treating them as sentient imply, or not, that the concept of "will" is something that is inherent to self-ownership for them? Does their voluntary commitment and agreement towards their host having full reign of what it means for them to be, "them," take more precedence over your current endeavor for them (e.g. progressively treating them as sentient with implied notions towards autonomy)? Again, as I'm saying that, I can't help but tell you that there's some circular reasoning going on there. In other words, it's like them saying, "Hey, I agree on you treating me as sentient through those deliberate means of treating me as sentient, because it's helping me being treated as sentient."
-	What I mean by this is: By you questioning if they own their image while you two have made an agreement for you to reign in how they should exist, and such, it begs the question of what it means to treat them as sentient? Does it entail that the inner workings of your psyche/-insert metaphorical assertion of mind here- has absolute ownership for changing them? Does it seem equally sense in context of them being able to tap into that mental reservoir if they wanted to?
- What if you were to switch and/or possess—would you have to then puppet their presumed qualia when you shifted your awareness towards mental, and imaginary modes of thought and existence? It seems like unnecessary double-work, and consciously mapping out how and when they should experience certain things within this spatio-temporal reality. At best, it would probably just be possession since you wouldn't have temporarily given up ownership of your body (this is presuming you're not intending to do a permanent switch).
- That leads to what takes more precedence—your presumed inalienable right to shift back from sessions with switching/possession, or their presumed inalienable rights to do the same. IMO, it's another circular reasoning that can be presumed as such, especially in context of seeing a tulpa as a part of yourself/psyche/etc. Do you have the right to take ownership of what goes on in your everyday cognition with them? Does one have flawless, normative ethics of how one "ought" to exist with their parts self? Does it imply that the host knows the optimal solution for a flourishing relationship with their tulpa, and knowing what prevents them from being harmed? All of these queries can be taken vice versa, but it may start circling back again, I think.[/align]
So, I guess it depends on what both of you can agree on, and ultimately what's the main objective when you're treating them as sentient. Maybe she has a type of disposition that's subservient in context of feeling assured and confident that your means of treating them as sentient through deliberate puppetting will lead to accomplishing a grander picture in which she can eventually deviate on her own while you have little influence on her. But again, it seems like there's no ethical value to be judged about when we're talking about form in general, but if other circumstance are challenged (e.g. switching, possession, how they should have certain dispositions), then it may be problematic.
But who knows, if a tulpa feels their telos, i.e., ultimate purpose, is to be completely subservient with their host with confidence that they can lead them towards a flourishing existence, it goes back again to questioning whether their voluntary commitment takes precedence over anything else in the future; including circumstances where their existence is compromised in some way to where they see a lot ambiguity with "I am myself" vs. "I own myself."
[align=center]7 Hours of Active Forcing
8 Hours & 29 Minutes of Active Forcing
10 Hours of Active Forcing[/align]
[visualization] Guided Visualization, but not weird 1 2
By Reisen, February 24, 2017
Lucilyn
[visualization] visualizing a composite tulpa
By sushi, August 24, 2015
Basic Method On Practicing Visualization 1 2 3
By Nikodemos, July 25, 2012
[visualization]
Digital Screen Visualization 1 2
By Squir, September 22, 2012
Mental image Rendering guide 1 2
By devano, May 7, 2012


therafateers.com Page 271 - 40 Lovely Used Garage Cabinets for Sale Ideas. 40 Elegant Good Hammock Brands Sets. 40 Unique Outdoor Decorating Ideas Sets. used garage shed for sale. used garage doors for sale nova scotia. used garage unit heaters.
Tags : used garage storage cabinets for sale. used garage lifts for sale canada. used garage heater ontario. used garage heaters. used garage doors for sale nova scotia. used garage door canada. used garage doors vancouver.
Tags : garage storage ideas pinterest. garage storage nj. garage storage yonkers. garage storage for sports equipment. garage storage mezzanine.
Tags : outdoor hammock chair. outdoor hammocks with wood stand. outdoor hammock ideas. outdoor hammocks for autism. outdoor hammock polyester. outdoor hammock sunbrella.