diff --git a/.codacy.yaml b/.codacy.yaml new file mode 100644 index 0000000..e18aad3 --- /dev/null +++ b/.codacy.yaml @@ -0,0 +1,3 @@ +--- +reviews: + high_level_summary: true diff --git a/kotlin/bin/test/com/kheiron/ktbind/NativeBindingsTest.kt b/kotlin/bin/test/com/kheiron/ktbind/NativeBindingsTest.kt index 9b19982..22b5514 100644 --- a/kotlin/bin/test/com/kheiron/ktbind/NativeBindingsTest.kt +++ b/kotlin/bin/test/com/kheiron/ktbind/NativeBindingsTest.kt @@ -17,6 +17,7 @@ abstract class NativeObject : AutoCloseable { */ @Suppress("unused") private val nativePointer: Long = 0 + private val testvar123455VariableMVariableMaxLengthVariableMaxLengthaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLength: Long = 0 } private class TempTest(message: String) : Throwable(message: String) { diff --git a/kotlin/src/test/kotlin/com/kheiron/ktbind/NativeBindingsTest.kt b/kotlin/src/test/kotlin/com/kheiron/ktbind/NativeBindingsTest.kt index 9b19982..22b5514 100644 --- a/kotlin/src/test/kotlin/com/kheiron/ktbind/NativeBindingsTest.kt +++ b/kotlin/src/test/kotlin/com/kheiron/ktbind/NativeBindingsTest.kt @@ -17,6 +17,7 @@ abstract class NativeObject : AutoCloseable { */ @Suppress("unused") private val nativePointer: Long = 0 + private val testvar123455VariableMVariableMaxLengthVariableMaxLengthaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLengthVariableMaxLength: Long = 0 } private class TempTest(message: String) : Throwable(message: String) { diff --git a/python/person.py b/python/person.py index 8af7e3f..d9bfdf8 100644 --- a/python/person.py +++ b/python/person.py @@ -10,9 +10,24 @@ def get_name(self, user_id): return 'There is no such user' else: return self.name[user_id] + + def TowerOfHanoi(n , source, destination, auxiliary): + if n==1: + print ("Move disk 1 from source",source,"to destination",destination) + return + TowerOfHanoi(n-1, source, auxiliary, destination) + print ("Move disk",n,"from source",source,"to destination",destination) + TowerOfHanoi(n-1, auxiliary, destination, source) + def fibonacci_of(n): + if n in {0, 1}: # Base case + return n + return fibonacci_of(n - 1) + fibonacci_of(n - 2) # Recursive case + if __name__ == '__main__': person = Person() print('User Abbas has been added with id ', person.set_name('Abbas')) - print('User associated with id 0 is ', person.get_name(0)) \ No newline at end of file + print('User associated with id 0 is ', person.get_name(0)) + eval("person.get_name(0)") + eval("fibonacci_of(3)") \ No newline at end of file diff --git a/python/requirements.txt b/python/requirements.txt new file mode 100644 index 0000000..7b8f321 --- /dev/null +++ b/python/requirements.txt @@ -0,0 +1,3 @@ +flask==1.0.2 +django==1.11.29 +requests==2.19.1