blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5d8b2edf8daeaeeb33b9976662d3ed0f79ca706f | 7e392dd8522ae54d1b8d9c961a6fd393a5225110 | /letter_combinations.py | 055bd52d8f3d50c3af28e1b36a8e09242c106d73 | [] | no_license | cmajorsolo/python-resharper | 5cb7813e58b9b2fdc31eddd6fd0b396f18aba3f0 | 14f45aa7cff60bd23d0969f8a878f671c940f312 | refs/heads/master | 2020-04-18T08:53:23.342212 | 2019-05-17T15:34:43 | 2019-05-17T15:34:43 | 167,413,002 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | class Solution:
def letterCombinations(self, digits):
phone_numbers_dic = {'2': ['a', 'b', 'c'],
'3': ['d', 'e', 'f'],
'4': ['g', 'h', 'i'],
'5': ['j', 'k', 'l'],
'6': ['m', 'n', 'o'],
... | [
"cmajorsolo@gmail.com"
] | cmajorsolo@gmail.com |
edf83dfc1a34a52b0dad096cd5fce0d75c5833f2 | bdbc9cd8c64cfa92efffb9e138cb282d36f69b0a | /addons/l10n_es/__init__.py | 0b88f1197678f324892be98c7b9ee10e967ff509 | [] | no_license | clebaresu/impra-adns | d330cece1b710643625627bfd7ed66bac7d233ef | 8b9889d86c6ea194cfb7b0db8bdc3284635cc081 | refs/heads/master | 2020-05-02T16:51:41.798969 | 2019-03-27T22:03:32 | 2019-03-27T22:03:32 | 178,080,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# ... | [
"clebaresu@gmail.com"
] | clebaresu@gmail.com |
4b7692155915de88723646d645baaf844492989c | 3fc2d97e926462209cf780595cf99b46f3026958 | /runtest/arith/require.py | b5023e2932d8bc7c476ea455151de6ce90858e87 | [] | no_license | thautwarm/frontend-for-free | 9390d945bf83940f114356b08112844ed9ac3244 | ee414b3efbdc49827f4de08f361b14234ef65a62 | refs/heads/master | 2022-09-11T16:52:55.427092 | 2022-08-07T10:23:07 | 2022-08-07T10:23:07 | 238,334,426 | 38 | 1 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | import operator
def unwrap(x):
return int(x.value)
ops = {
'+': operator.add,
'-': operator.sub,
'*': operator.mul,
'/': operator.floordiv,
}
def arith(op, lhs, rhs):
return ops[op.value](lhs, rhs) | [
"twshere@outlook.com"
] | twshere@outlook.com |
3e034ccebe8340e431bc9208d50c676a97ed41fc | 903f7142fb23384fd706bf3237f190a4a7f62f9b | /agent_code_old_versions/Task2_2_tests/ManagerFeatures.py | 9ca852c12c7cb875f47bf2fd3e2de58914b4cd2c | [] | no_license | nickstr15/bomberman | 6e8cacd526742c5fd3888242397c4d1a698ade17 | fdfcd6ecb58f6a2c54deb87dcefc122dc9d69dc9 | refs/heads/master | 2023-05-04T18:38:11.818238 | 2021-05-27T14:35:02 | 2021-05-27T14:35:02 | 338,787,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,557 | py | import torch
import numpy as np
from collections import deque
import heapq
import random
import bisect
STEP = np.array([[1,0], [-1,0], [0,1], [0,-1]])
DIRECTION = {(1,0):0, (-1,0):1, (0,1):2, (0,-1):3}
MOVE = ["rechts", "links", "unten", "oben"]
MAX_SEARCHING_DISTANCE = 20 # After this distance we reduce the searc... | [
"florian.wk@web.de"
] | florian.wk@web.de |
129886de854a643592e78d43fd8bcee010360e1a | d8066c7d689ff73eb99af1a57572d0e958c4d044 | /WarmUp/jumping_on_clouds.py | 349dc6fcc311d30166cd0275c0a53938a1e3f8b4 | [] | no_license | aditya1904/Comp-Codes | 8cfa7334df690758c13fd9ab816fee22d6380455 | 1332ad6b307607eb4917cca982fd021a859bbfd7 | refs/heads/master | 2023-01-01T09:09:37.815268 | 2020-10-24T09:47:46 | 2020-10-24T09:47:46 | 244,161,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 763 | py | #!/bin/python3
########################################################################
# https://www.hackerrank.com/challenges/jumping-on-the-clouds/problem #
########################################################################
# Complete the jumpingOnClouds function below.
def jumpingOnClouds(c):
position,... | [
"adityamalu1@gmail.com"
] | adityamalu1@gmail.com |
f54264f91358bc09bf754fc2b9d0db3b8bd2a345 | c9d960931bf542822fff2ebc6fc6964ed26dea3a | /source/tests/conftest.py | 7d4d4dd1cbb69e29f871f3df8e54b2af05f78814 | [
"BSD-3-Clause",
"Python-2.0",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ajayarunachalam/improving-forecast-accuracy-with-machine-learning | a2a10994551f22bfaea5225cbafe915cbf844e1f | 2a56cf26181f34609881b5a78c93616f98f39c9e | refs/heads/main | 2023-08-20T15:05:49.539911 | 2021-10-01T18:18:03 | 2021-10-01T18:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,412 | py | # #####################################################################################################################
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. #
# ... | [
"ssdzd@amazon.com"
] | ssdzd@amazon.com |
c639f68f26d11c80349d4531ee6904930db2f4e3 | 0bf212091da81fdbca0ad4a49f1cb0fc31384b29 | /grasp_recon/scripts/vis_training_trja.py | 88bec32a5d305b84645ebef10be48020d9097e2b | [] | no_license | kanaek/GPIS-Grasp-DynObject-Reconstruction | b9d7b9b5375993b39bc6aa39d4f13115f41d2f9c | 7c59502c5508c67eb0c0b964ab47e331fb7a4178 | refs/heads/master | 2020-04-08T13:45:35.643942 | 2018-11-27T23:29:12 | 2018-11-27T23:29:12 | 159,405,742 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,114 | py | #!/usr/bin/env python
import rospy
from visualization_msgs.msg import Marker, MarkerArray
import numpy as np
# import required allegro model files
from rospkg import RosPack
from urdf_parser_py.urdf import Robot
from pykdl_utils.kdl_parser import kdl_tree_from_urdf_model
from pykdl_utils.kdl_kinematics import KDLKinema... | [
"u1063462@utah.edu"
] | u1063462@utah.edu |
17fa615e6526ae17206d4198e34ce001d7891067 | 1d140d7c5aacb9dd09f669fc4a50cafd73f152b6 | /superapp/__init__.py | a830d195534c54fef97345933b684c724740c1c9 | [
"MIT"
] | permissive | pcraig3/super | 57d8782cc8c43af02fa669d953e859f54b85c914 | 8ab30a456355ee2c7b7ea7368f254cacee1b1fef | refs/heads/master | 2023-05-06T23:00:11.773411 | 2017-09-26T02:53:54 | 2017-09-26T02:53:54 | 104,828,116 | 0 | 0 | MIT | 2021-06-01T21:47:55 | 2017-09-26T02:51:46 | Python | UTF-8 | Python | false | false | 340 | py | from flask import Flask
def create_app(**config_overrides):
app = Flask(__name__)
# Load default config then apply overrides
app.config.from_object('config.config')
app.config.update(config_overrides)
app.url_map.strict_slashes = False
from .views import views
app.register_blueprint(vie... | [
"paul_craig_16@hotmail.com"
] | paul_craig_16@hotmail.com |
f253567df4fca64630b956f3c17a481445e37a28 | ed2a6ca883a0ff501b48ee5d48dbada2d68c50e9 | /evaluation/generators/path.py | 4a5c28fec342154a733e5100c0944053472a3d66 | [] | no_license | codeformunich/bikewatch | c49af313a5cc0a9afccf838b6dcb4d3f760b2fff | d759d9940177bf34b0710d66b5424227e272ef9f | refs/heads/master | 2020-06-17T18:33:43.919944 | 2016-11-29T22:17:00 | 2016-11-29T22:17:00 | 74,981,307 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | from django.contrib.gis.geos import MultiPoint
from data.models import Bikes
from data.helpers import get_path, get_bike_ids_for_day
from ..models import BikePath
def generate_path_data(date):
ids = get_bike_ids_for_day(date)
results = []
for cur_id in ids:
path, min_date, max_date = get_path(cu... | [
"sven.hertle@googlemail.com"
] | sven.hertle@googlemail.com |
44e947339fceb9e93951b253c4120ab35b6a42af | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20210301/get_dscp_configuration.py | e6c729b5252d79e0cce2242f82bea67a00ffd6e8 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,569 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
2f36a04d3be9ee8ba8afdfd6d213f4b8effcbf98 | c4e7dcae390024774e563f24c449e94005ce21de | /django/app4/helloworld/urls.py | dd5abb50200fbed41a018e1ae1a7f0027ae57768 | [] | no_license | fullarray/python | 463365ee6755f3e51935b285652b8a613ee66aa6 | 75d07a686dd1df024bed239411a210b8aae08496 | refs/heads/master | 2023-05-04T20:54:07.704386 | 2022-06-21T03:16:29 | 2022-06-21T03:16:29 | 26,668,406 | 2 | 1 | null | 2023-04-16T00:04:15 | 2014-11-15T03:49:19 | Python | UTF-8 | Python | false | false | 857 | py | """app4_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')... | [
"noreply@github.com"
] | noreply@github.com |
a1c6b0a3f617a505d613fa635f8b09304c87d2a0 | e59eff6ed5f8ba043f354d40e40ed902aacbc65e | /tests/general_spin_opstr_test.py | a39d576183f9ff7210c480b51c1796d41d0ea5cc | [
"BSD-3-Clause"
] | permissive | Schrominger/QuSpin | 4c58411c2c86c01e055c8c825b7f8ed356f0aac1 | 05ff14c9ec890dbe69a52c4ff3c98060baf52875 | refs/heads/master | 2020-04-23T06:32:09.082555 | 2018-07-16T18:57:14 | 2018-07-16T18:57:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,843 | py | from __future__ import print_function, division
import sys,os
qspin_path = os.path.join(os.getcwd(),"../")
sys.path.insert(0,qspin_path)
from quspin.basis import spin_basis_1d
from quspin.basis import spin_basis_general
import numpy as np
from itertools import product
try:
S_dict = {(str(i)+"/2" if i%2==1 else str(... | [
"weinbe58@bu.edu"
] | weinbe58@bu.edu |
97a57cb68367871fcd184606ccf473aa0c7767a2 | ac2497b1b1a9ebd1988377c12528f0af23e1f269 | /fonts/bdf2tf.py | 916d5a2101913c86b961eaedc468068a2d7c0e69 | [] | no_license | robertdigital/PROM | 4f07552db90c659cab7fcb74ecbfb7b2f3ec7cd5 | 1d63e0642b459762a6ee193ece174013fa457579 | refs/heads/master | 2021-01-14T00:17:00.704775 | 2018-10-20T14:07:29 | 2018-10-20T14:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | #!/usr/bin/python
# Convert BDF file to tinyfont representation as used in
# fbpad.
import sys
import os.path
import struct
def readc(f):
t = ['']
while t[0] != 'STARTCHAR':
t = inf.readline().split()
id = int(t[1][2:],16)
while t[0] != 'BBX':
t = inf.readline().split()
width = in... | [
"phooky@gmail.com"
] | phooky@gmail.com |
0452f74a4baa5bd0539e1b2071270b21279fd3c9 | adaecf1ac540d51a5314987602b21fbf5e44e995 | /components/studio/projects/migrations/0003_volume.py | e63a468902743d9d830ee51afc97ae24bdaed5f6 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | carmat88/stackn | 3dd49b1e896c1ed23ce389090f4751cc2a4b6782 | c2d07c5ffc78df6cf73a9cc6e9dfde2f3d19dac9 | refs/heads/main | 2023-08-28T00:20:29.746474 | 2021-10-30T15:24:33 | 2021-10-30T15:24:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,228 | py | # Generated by Django 2.2.13 on 2020-12-02 16:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('deployments', '0005_auto_20201029_2008'),
('projects', '0002_remove_project_environment'),
]
operations = ... | [
"stefan@scaleoutsystems.com"
] | stefan@scaleoutsystems.com |
46b342eca1711fd45f56468d44219f0422874c1e | a74cabbe1b11fc8ef575ea86f2543cd95db78ec9 | /python_program/q1402_Reducing_Dishes.py | ff1daae3c2d8e861ba9a9621d7b035d26073bf7c | [] | no_license | tszandy/leetcode | 87e3ccf291b2879637d2d8238935a455b401a78a | f1f4361541dcffbb291285663c8820d7ffb37d2f | refs/heads/master | 2023-04-06T15:34:04.847875 | 2023-03-26T12:22:42 | 2023-03-26T12:22:42 | 204,069,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,385 | py | from typing import List
from collections import Counter,defaultdict
from math import *
from functools import reduce,lru_cache
import numpy as np
from heapq import *
from bisect import bisect_left
class Solution:
def maxSatisfaction(self, satisfaction: List[int]) -> int:
satisfaction.sort()
dp = def... | [
"444980834@qq.com"
] | 444980834@qq.com |
dacf9aa4d413273d817da646256143e1473a30e2 | 96d91da11adae2b69639aeaead0e4eb2a9aed520 | /chordify/hcdf.py | 32b6770b41d46ba879bc183c166945a28e06fe2e | [] | no_license | MatusSkerlik/ChordRecognition | d15342e1aa5de31c5882a141163a8f20ad5fd190 | 778570b8234368f01308dc39e2931bfffa652202 | refs/heads/master | 2022-10-11T04:12:28.827935 | 2020-03-08T17:02:07 | 2020-03-08T17:02:07 | 234,102,989 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,833 | py | # Copyright 2020 Matúš Škerlík
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the Software
# without restriction, including without limitation the rights to use, copy, modify, merge,
# publish, dist... | [
"hernyucet11@gmail.com"
] | hernyucet11@gmail.com |
68b2742acba4c1daa9349b81645215dff77e1036 | f7909c6588ae1a7ba2bd37eb11e2ae8822fba39d | /python/fit_rect.py | ef83b1cce1cbe306fb6e6b4934092fbcdd1e94b2 | [] | no_license | XUEVictor/rect_fit | e384c28ab8c0942f1023729bdc1532c32d46c47a | 8682b66c6068be9111ac957046a88d9316b64b1f | refs/heads/master | 2023-03-08T20:35:56.152601 | 2021-02-21T23:15:38 | 2021-02-21T23:15:38 | 340,623,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | import matplotlib.pyplot as plt #繪圖用的模組
from mpl_toolkits.mplot3d import Axes3D #繪製3D座標的函式
import numpy as np
def clsq(A,dim):
# print(A.shape)
m , p = A.shape
m=min(m,p)
# print('m',m)
# print('p',p)
# print('A',A)
q, r = np.linalg.qr(A,mode='complete')
# print('q',q)
# print('r',r... | [
"victor860608@gmail.com"
] | victor860608@gmail.com |
3b4c770c51d5f4120e9899299534407d790c456d | 6f3433ee263e9a7e6d6915ca0fb9ae5c5850a303 | /students/K33422/practical_works/Yanov Filipp/djangoProject_practice(lab3)/djangoProject2/urls.py | e3c5f92c61058cf6acd1b4de03a0c872fe9fe859 | [
"MIT"
] | permissive | dEbAR38/ITMO_ICT_WebDevelopment_2020-2021 | 8a2a1abe6cd7f3bb0c0b1774cad1765d377f52c7 | 208cbc6d2b6d40c3043d35ce773a3433b377f671 | refs/heads/master | 2023-04-03T10:09:38.427787 | 2021-04-09T10:42:27 | 2021-04-09T10:42:27 | 296,327,161 | 0 | 0 | MIT | 2020-09-17T12:59:46 | 2020-09-17T12:59:45 | null | UTF-8 | Python | false | false | 1,491 | py | """djangoProject2 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"yanovfilipp@mail.ru"
] | yanovfilipp@mail.ru |
a758e4305012863ee9a7f3fbf37cb50c333f0adc | 2d209b39c9916c327daf676c48a36f9dcebebfd2 | /challenges/models/submission.py | a2fab70c12348dcd046e11f8fb45b17f16d3ec28 | [
"MIT"
] | permissive | JasbirCodeSpace/CTF | d8f5fe32fb8625479df9c591a304b5835fa792a5 | ce5d1d5bf7b0b54c62fe5c91bccc69498130e1c2 | refs/heads/main | 2023-08-30T00:47:27.747787 | 2021-10-29T17:38:38 | 2021-10-29T17:38:38 | 364,883,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 723 | py | from challenges.models.challenge import Challenge
from django.db import models
from django.utils import timezone
from challenges.models import Challenge
from accounts.models import Profile
class Submission(models.Model):
challenge = models.ForeignKey(Challenge, on_delete=models.CASCADE, related_name='solves')
... | [
"shikhawat.jasbir@gmail.com"
] | shikhawat.jasbir@gmail.com |
0abf56d2fcbddd3adcf6f176a27f2493f6a7b033 | 70dfa1e722ec6831a852435c5f5fcbb196520362 | /basic/module/hello.py | 20d23f517a1f6889221a2d7dbaffb3d39b352822 | [] | no_license | ibraev/python | 6e3336bfc990fe71a9caa5bac62f3aa460e3a633 | 3bfc425cf8b051e079e5c54cc5e3ff43787e7dfb | refs/heads/master | 2023-04-13T11:38:36.711415 | 2021-04-26T08:06:21 | 2021-04-26T08:06:21 | 361,656,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | import account as acc
rate = int(input("Введите процентную ставку: "))
money = int(input("Введите сумму: "))
period = int(input("Введите период ведения счета в месяцах: "))
result = account.calculate_income(rate, money, period)
print("Параметры счета:\n", "Сумма: ", money, "\n", "Ставка: ", rate, "\n",
... | [
"amanibraev95@gmail.com"
] | amanibraev95@gmail.com |
445b8c35e2a2e55fa28bf146bc3b5217b6eebc7a | a2da441808e9db76234cd50d8cae10a276cbb534 | /mysite/mysite/settings.py | 1d9025cf036ea99f18ab519b0d2a481d25491800 | [] | no_license | yakul-crossml/django_project | cad8a8f9ddb45d780cbc587cbea1e81e8766f474 | 7c8520aac6e667054e4d2443454fdb5b08920fd0 | refs/heads/master | 2023-07-25T10:59:01.759959 | 2021-09-02T05:56:24 | 2021-09-02T05:56:24 | 397,568,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,291 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"yakul@crossml.com"
] | yakul@crossml.com |
6dbc99b4c5fc7a6bd28115673d2fc661a90c1711 | d9201affc1d1d5cf231ac42ba119280cdd7d0c0b | /tools/PythonExePatcher/ExePatcher.py | 21f7c56ef0a1aac7d23a0d779561ae555aa37a1a | [] | no_license | oumajgad/BlackICE | a6607e857eb49ac7e5c8ff5c47f1a2e09b5bf991 | 0e98d3c867d254000ab801516e2aad1bf2ab31f9 | refs/heads/master | 2023-09-01T18:09:16.834795 | 2023-08-23T14:59:30 | 2023-08-23T14:59:30 | 73,293,150 | 16 | 17 | null | 2023-07-07T14:24:33 | 2016-11-09T14:52:43 | Lua | UTF-8 | Python | false | false | 2,102 | py | import mmap
import os
def ReadHex(file: str, offset: int, length: int):
with open(file, "rb+") as file:
mm = mmap.mmap(file.fileno(), 0)
mm.seek(offset, os.SEEK_SET)
return mm.read(length).hex()
def WriteHex(file: str, offset: int, hex_n: str):
with open(file, "rb+") as file:
... | [
"77176960+Dsafe1@users.noreply.github.com"
] | 77176960+Dsafe1@users.noreply.github.com |
02cedadb1388f782564aed9ded2be7d6bb044546 | 1acdfb12d77469fd2c5e800c85f0d66ad05b9cab | /OOPs_concept/Inheritance/Single_inheritance.py | fca724f18f8629ae96f97eaaa45f6c3131f38bd7 | [] | no_license | shreyassk18/MyPyCharmProject | 96eba7751ab9a5a7bcd2ddb3266c73d20efb9354 | ccb3c0acb2a204c9351f6a68b99622c1d5ee0185 | refs/heads/master | 2022-11-30T13:59:45.918266 | 2020-08-19T10:46:23 | 2020-08-19T10:46:23 | 288,703,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | #Single - class B inherits class A --> One child inherits one parent
class A:
a,b = 10,20
def add(self):
print(self.a+self.b)
class B(A):
x,y = 100,200
def mul(self):
print(self.x*self.y)
b = B()
b.add()
b.mul()
| [
"shreyas.sk18@gmail.com"
] | shreyas.sk18@gmail.com |
056ca21fa02780d5851b9be9766ea8c6d1e9ac0a | 141e84c331cedc6d07d6af7b3a9eade7e202fe74 | /my_mnist/tf_learning.py | e99e18e6a9a05699db783fb612548985970a885f | [] | no_license | LogicStarDust/my_learn_for_python | 14c196fe581d886ed5317d82f1331a06b9355191 | e65b228dc99324ca1ea5dd91eab49bd5a2626a33 | refs/heads/master | 2021-01-22T10:14:47.200682 | 2017-09-11T15:37:03 | 2017-09-11T15:37:03 | 102,337,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 725 | py | import os
import tensorflow as tf
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
w1 = tf.Variable(tf.random_normal([2, 3], stddev=1, seed=1), name="w1")
w2 = tf.Variable(tf.random_normal([3, 1], stddev=1, seed=1), name="w2")
x = tf.placeholder(tf.float32, shape=(3, 2), name="input")
# x = tf.constant([[0.7, 0.9]])
a = tf.... | [
"657496651@qq.com"
] | 657496651@qq.com |
eab6f267beb0aa6892cf02122f94ddb0701e5195 | b5ebf8c52e5e15b0cf4bc70abb407a9d8512bfd6 | /plotter/plotter.py | 3bb95c42f8ac58dc4a5b3a2063b270d1af0db204 | [] | no_license | mathieubenoit/AquariumController | 4e76269504e4b19bd5c11a22962f7fdbf326e1e2 | 270b3c7eb948ada4727e60c5f6e8a25ca8c126db | refs/heads/master | 2016-09-14T02:56:23.942884 | 2016-05-01T06:48:13 | 2016-05-01T06:48:13 | 56,431,126 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,333 | py | import MySQLdb
from ROOT import TGraph,TCanvas,gROOT
import datetime
from dateutil import parser
from time import mktime
def convertTime(day,time):
date_object =datetime.datetime(day.year, day.month, day.day) + time
return mktime(date_object.timetuple())
def UpdatePlots(grT,grpH,grT24,grpH24):
#gROOT.SetStyle("Pub... | [
"mathieu.benoit@cern.ch"
] | mathieu.benoit@cern.ch |
e5ab0e437d6dd43afca202d036ca70f44b4a0d93 | 975e9708f5db1dfb7f614b21482638070e8d81a5 | /meutils/zk_utils.py | d7cf748ccfb7497011ba735c732d64472b374ee0 | [
"Apache-2.0"
] | permissive | JiangBowen-master/MeUtils | 49ee7ad3e1a0e052073459eeb44741f405603704 | 468c0787918d51d84c7ebd691ee58b0a52f4464f | refs/heads/master | 2023-03-01T09:37:00.014885 | 2021-02-04T04:56:49 | 2021-02-04T04:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : AppZoo.
# @File : zk_utils
# @Time : 2020/11/11 5:49 下午
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description :
import yaml
from kazoo.client import KazooClient
class ZKConfig(object):... | [
"yuanjie@xiaomi.com"
] | yuanjie@xiaomi.com |
db971a0278ac45fb9b611daba4dc073eee2dfa13 | 2db72b5ada80fec54a05399bed63cf1b4b82e9e4 | /mysite/settings.py | fc5ac1120d9fd741caf3db1d82b0abb36aa11cb7 | [] | no_license | s71oie2/hobbybox | cb1b350255dd51a50658149aa4a3fe891f75ee6f | c6bffeeb8e3b139b0481d682687cb9327332901c | refs/heads/master | 2020-04-26T08:27:35.009404 | 2019-03-02T09:00:49 | 2019-03-02T09:00:49 | 173,423,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,727 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os... | [
"s71oie2@gmail.com"
] | s71oie2@gmail.com |
cde0209bbcb1ac3f04b45d95b333e396d7c921d0 | 2ce719b58502e7f5846ce5106133ae82feda4d1a | /scripts/get_rewards_intent.py | 1c60cf63f5351bda06b09f4a8b2fc7dd8d2d6c7e | [] | no_license | yanzhan91/PayWise_Alexa | 230e766a81c15f816868c53efc501347cb8ec8db | e649d86b196d82ace0c4b9724856fe4a07c0de0e | refs/heads/master | 2021-01-20T14:16:35.520292 | 2017-08-04T05:09:09 | 2017-08-04T05:09:09 | 90,581,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,829 | py | import os
import requests
import scripts.alexa_response as alexa_response
import scripts.feedback_service as feedback_service
from decimal import Decimal
def on_intent(event, intent_name):
user_id = event['session']['user']['userId']
slots = event['request']['intent']['slots']
name = None
category =... | [
"yanzhan91@gmail.com"
] | yanzhan91@gmail.com |
6064a09896c10ada1c2a2fad0fbf7cb7c6405ca3 | 0d1610eb32205cef33e039253b8d0b390d5562d1 | /django_ex/django_ex/wsgi.py | 35af4f4cd4fd9f3604a5caa44cb50a535569b04a | [] | no_license | pujansoni/DjangoProjects | 0104e5ee241967b378e76c9dee7c655264e5e4c4 | dcfd03e577e7078ade8acd20e393f367a67cb4a8 | refs/heads/master | 2023-03-12T10:38:00.179206 | 2021-03-08T02:12:53 | 2021-03-08T02:12:53 | 284,309,183 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for django_ex project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"pujansoni1997@gmail.com"
] | pujansoni1997@gmail.com |
81b1c878fea0baff9a4cebfdd8df6cf59eb6eaaa | 4b23e5b296d6baa7b64fa427e8fbf456ab0392a6 | /facebook/sorting_and_searching/search_in_rotated_sorted_array.py | c320df928432cb27e0762aa8080e9e8e9a71da4d | [] | no_license | HarshKohli/leetcode_practice | ff169a4b3e2bc81afdc32e95015f0dbf7e38d864 | ee8555c57ca85beecf765ae95c1ca8fb3687828a | refs/heads/master | 2023-03-19T12:31:46.525749 | 2023-03-14T21:43:43 | 2023-03-14T21:43:43 | 325,654,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | # Author: Harsh Kohli
# Date created: 10/27/2020
def search(nums, target):
pivot_index = 0
size = len(nums)
prev = nums[0]
for index in range(1, size):
num = nums[index]
if num < prev:
pivot_index = index
break
prev = num
left, right = 0, pivot_inde... | [
"harsh14791@gmail.com"
] | harsh14791@gmail.com |
a1240de5632fa42109e164c9ea1ad4be714efea9 | 4ddaa84cd1c69109267b6e2054e2dc4cf48daeeb | /ftp_client.py | b1f7e9209d35719901a1f04e53fadb4763db80a8 | [] | no_license | wangchunxiang8090/exercise | 7d1c9523e5e48ff97bf36fab7cc6ce8e6fd989ac | 493b30dd82592b5ac5a74422ef96873bb8bcb43f | refs/heads/master | 2021-05-01T23:29:01.403699 | 2017-02-21T09:40:23 | 2017-02-21T09:40:23 | 77,649,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,250 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import socket
import sys
import os
import glob
ip_port = ('192.168.1.208',9999)
sk = socket.socket()
sk.connect(ip_port)
os.chdir(r'C:\Users\djn1\Desktop')
while True:
inp = raw_input('path: ')
if inp.startswith('cd'):
try:
os.chdir(inp.split... | [
"wangchunxiang8090@163.com"
] | wangchunxiang8090@163.com |
c675c9dcfc1f3adfe1439461a8bdcbb9ef4c16b0 | f4b60f5e49baf60976987946c20a8ebca4880602 | /lib/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/nws/rsnwssyslogsrctodestgroupint.py | 3880bb27ef218cc3681461d316e60df8d322801f | [] | no_license | cqbomb/qytang_aci | 12e508d54d9f774b537c33563762e694783d6ba8 | a7fab9d6cda7fadcc995672e55c0ef7e7187696e | refs/heads/master | 2022-12-21T13:30:05.240231 | 2018-12-04T01:46:53 | 2018-12-04T01:46:53 | 159,911,666 | 0 | 0 | null | 2022-12-07T23:53:02 | 2018-12-01T05:17:50 | Python | UTF-8 | Python | false | false | 6,867 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"collinsctk@qytang.com"
] | collinsctk@qytang.com |
d1c4d71aee1363851f779dc2ac4f1b65e39a550b | a1610cb82b9445c712e4ef987fec5a92f92c11c5 | /web-crawlers/core/base.py | c1ef189a335f1442e00f4468ea99adf87d0ca007 | [] | no_license | gr1d99/scripts | 0b6fea60a3325727cfd580f3d5b6f93f240bbb83 | bd66c53c2b1852ec64525af24cd4314353af3a80 | refs/heads/master | 2021-01-02T08:12:42.772241 | 2017-09-13T05:43:58 | 2017-09-13T05:43:58 | 98,962,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import six
class CrawlerMeta(type):
def __new__(mcs, *args, **kwargs):
new_class = super(CrawlerMeta)
print(new_class)
return new_class.__new__(mcs, *args, **kwargs)
class MyCrawler(six.with_metaclass(CrawlerMeta, object)):
def __init__(self):
pass | [
"gideonkimutai9@gmail.com"
] | gideonkimutai9@gmail.com |
987118e4ebabb5d7f56feae3de38cd515fc8fa8b | 0c20e3c73ae195fea6ef351cdfe4708986976573 | /playGame_record.py | fff127903c498229e7b13c1febf6961c68da9682 | [] | no_license | balghane/MultiAgentTORCS | d83682c75650f68b3708ae534ac5522e0fdb493a | de731e53f75aa008e0777cbd32c5942d7802edbe | refs/heads/master | 2020-04-03T07:04:23.254918 | 2018-10-28T16:44:26 | 2018-10-28T16:44:26 | 155,092,636 | 2 | 1 | null | 2018-10-28T16:42:17 | 2018-10-28T16:42:17 | null | UTF-8 | Python | false | false | 7,183 | py | import numpy as np
np.random.seed(1337)
from gym_torcs import TorcsEnv
import snakeoil3_gym as snakeoil3
import collections as col
import random
import argparse
import tensorflow as tf
import timeit
import math
import sys
import gc
import pyxhook
import pickle
up = False
down = False
left = False
right = False
act... | [
"basel@umich.edu"
] | basel@umich.edu |
d5d6fdda19eb20fb2532663ca469d783507345f6 | 45f6a4dfc837998565d4e4e4cde258a27fdbd424 | /learn_tu_you/wx_superboss/trunk/hall37-newfish/src/newfish/entity/util.py | 6ef52fa8e545ae0720f7b57ba0036353bbd27166 | [] | no_license | isoundy000/learn_python | c220966c42187335c5342269cafc6811ac04bab3 | fa1591863985a418fd361eb6dac36d1301bc1231 | refs/heads/master | 2022-12-29T10:27:37.857107 | 2020-10-16T03:52:44 | 2020-10-16T03:52:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63,157 | py | # -*- coding=utf-8 -*-
"""
Created by lichen on 16/12/13.
"""
import time
import json
import random
import hashlib
from datetime import datetime
from freetime.util import log as ftlog
from freetime.entity.msg import MsgPack
from poker.util import strutil, webpage
from poker.protocol import router
from poker.entity.bi... | [
"1737785826@qq.com"
] | 1737785826@qq.com |
4a04e14cfce19aa0a5e90c5be211d105a49b75c8 | 27939069503abf34001dccad83e498b7db2a3091 | /short-address-attack/saa.py | b46661892c8502f48071b2872763d7fb1fe90bc1 | [] | no_license | aadityapurani/Ethereum-Security-ToolSuite | 9e1eea1be183727e473e3a588595ffeef3ac2845 | 8cc272fef1cc6953061c16824d13fb81c01118ee | refs/heads/master | 2020-04-16T07:26:52.290600 | 2019-08-15T18:05:46 | 2019-08-15T18:05:46 | 165,387,158 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | from web3 import Web3
passphrase = 'changethis-password'
web3 = Web3(Web3.HTTPProvider("http://127.0.0.1:8545")) # Or your provider
addr = web3.personal.newAccount(passphrase)
lbyte = addr[-2:]
while lbyte != '00':
addr = web3.personal.newAccount(passphrase)
lbyte = addr[-2:]
print("[+] Short address attack candida... | [
"noreply@github.com"
] | noreply@github.com |
3f3d071c0c7c6913c4562f59b564f1ee354938d6 | a580fc61db08e551c87ad21425e414d77826883c | /3/3.py | 94bead0ed82e00bc2dad81edc46822434e3ce28c | [] | no_license | alinered/pythonchallenge | 07224be8b2d11bedd2234b2f873bcc55afdb865b | 3f37903d98d64ee17441b49c61a4470eac25867a | refs/heads/master | 2021-01-15T19:45:11.121623 | 2015-03-13T03:09:10 | 2015-03-13T03:09:10 | 31,757,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101,540 | py | #!/usr/bin/env python
__author__ = ‘alinered’
import re
def recognize():
s = """
kAewtloYgcFQaJNhHVGxXDiQmzjfcpYbzxlWrVcqsmUbCunkfxZWDZjUZMiGqhRRiUvGmYmvnJIHEmbT
MUKLECKdCthezSYBpIElRnZugFAxDRtQPpyeCBgBfaRVvvguRXLvkAdLOeCKxsDUvBBCwdpMMWmuELeG
ENihrpCLhujoBqPRDPvfzcwadMMMbkmkzCCzoTPfbRlzBqMblmxTxNniNoCufprWXxg... | [
"cgpushu@qq.com"
] | cgpushu@qq.com |
c59ec77cb54908e5447d34b6dab176687669d12f | fb7085c37a2effa808147dcd1eb3e6d4bfed01a0 | /pybasicbayes/__init__.py | 683040c16bb53c6b69a1c5b09ece549471a3b504 | [
"MIT"
] | permissive | Alfieriek/phd-thesis-test | 00ae07f80e187cad8c8d4f86ed00bde79dab6a94 | 15874718cdfa7b4f9855ff1014a6949cd6ed6e18 | refs/heads/main | 2023-04-18T06:43:29.003583 | 2021-04-28T01:55:28 | 2021-04-28T01:55:28 | 362,305,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | # from pybasicbayes.abstractions import distributions, models, util
| [
"58158112+Alfieriek@users.noreply.github.com"
] | 58158112+Alfieriek@users.noreply.github.com |
52bc612b928e279fa67b28e540c338db3daabb77 | dfa86aa8b079e02add96590298ad7d6789f0732e | /Week2/lab/multiply.py | 6f7d7a45ed4daa8ebbed8e3748fb8b6a882582c4 | [] | no_license | areyda/myWork | 70b1a4cb59c8f891282ab8d518959ad58709b3f5 | 9349c60818088ef3f5b3713e7cbd7aa00ff83e56 | refs/heads/main | 2023-04-05T12:43:45.900215 | 2021-04-16T15:05:32 | 2021-04-16T15:05:32 | 350,782,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | # multiply.py
# display output calculation
# Author: Amy Reynolds (Andrew Beatty - lab 2.2 - first programs)
print (111 * 555) | [
"G00235358@gmit.ie"
] | G00235358@gmit.ie |
bf96f385dfe929cd17012cc9f36d93d132cdddbb | 39ee0c09d2850edd0c637dd496c81399a59778e1 | /apps/courses/migrations/0001_initial.py | 8a82c740e54297a7b0bd706d6230ec9f9ab6a467 | [] | no_license | txowner/XMooc | 6af062c6e8030b74527186d268b3c2f624604120 | 58bcab94b5b4837fbcaf53b2753cec507c1f4f11 | refs/heads/master | 2021-05-14T06:12:17.264024 | 2019-01-24T04:15:10 | 2019-01-24T04:15:10 | 114,453,898 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,426 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-12-25 18:04
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | [
"46785647@qq.com"
] | 46785647@qq.com |
2a46a211f7639d4d55abce01a235c7af17ab8032 | 88a844dc9fd197d5aa38cab8550dc5891201413f | /cogs/admin.py | 681b3869c639cf3bbf5fd31061c3ffa352cabfeb | [] | no_license | DaniCRO/RoyalTheBot | 27dacb5a6bc778f6fe5a1dac40529c1e6ecdec5c | 4d2d95e43a939fc27256618bea30c311a6eb7e83 | refs/heads/master | 2021-07-18T21:34:41.615655 | 2019-01-22T10:08:45 | 2019-01-22T10:08:45 | 149,018,067 | 1 | 1 | null | 2018-09-22T11:56:23 | 2018-09-16T17:16:54 | Python | UTF-8 | Python | false | false | 5,153 | py | from discord.ext import commands
import discord
import contextlib
import discord
import traceback
import io
import time
import datetime
import math
import asyncio
import inspect
import random
import textwrap
from discomaton.factories import bookbinding
import async_timeout
from discord.ext import command... | [
"noreply@github.com"
] | noreply@github.com |
12f866678ad9bb862804a3a54614f62ac59bcd6e | 3bfb7bab6c2c712427d3e1ab382a9f4a4a132fa6 | /Genetic Programming Problems/symbolic_regression.py | 0185d619db630d853b31defc8f6da57c372b6e3f | [] | no_license | tami2293/CC5114 | 3e26c4f0b42be8c77765a41edaa1646b815e9f15 | 22d136c7c3068d0a0cb8319d1830140471da90e2 | refs/heads/master | 2020-06-29T17:45:06.153282 | 2019-12-16T01:47:27 | 2019-12-16T01:47:27 | 200,582,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,653 | py | from arboles import *
from abstract_syntax_tree import *
from gp_machine import *
import matplotlib.pyplot as plt
import time
import numexpr
# FIND A FUNCTION
FUNCTION = "x * x + x - 6"
def fitness_4(individual):
dic = {}
# Add numbers to the dictionary
for terminalNum in range(-10, 11):
dic.upda... | [
"tgr_93@hotmail.com"
] | tgr_93@hotmail.com |
3deb6a794179b117e7579c8b2e8a1e5870dc5242 | 616b47010bda9340c0bc3253a2d318f8387e1cf1 | /Python_Exercise/ex24.py | 2ed248e52fa9ea63270751427fb18d8265db82bf | [] | no_license | mishudream/pyhton | 648091392f54646182a1a44f8d1672e9463db8f4 | cdad02563e2cbb6e82b951afcd7d71f6dbffd84e | refs/heads/master | 2021-01-23T07:26:12.865705 | 2014-03-06T14:58:56 | 2014-03-06T14:58:56 | 17,471,302 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 926 | py | print "Let's practice everything."
print 'You\'d need to know \'about escapes with \\ that do \n newlines and \t tabs.'
poem = """
\tThe lovely world
with logic so firmly planted
cannot discern \n the needs of love
not comprehend passion from intuition
and requires an explanation
\n\t\twhere there is none.
"""
print "... | [
"zhuguaner@gmail.com"
] | zhuguaner@gmail.com |
09ef6969a97f6f0dc0da5553a85b9e1b3ae943a3 | d4a7afd3c0469ef9cf588d41f028ca330016108c | /main.py | 287cb002782ac95fef993645c89a058b43eb7d44 | [] | no_license | dbtwelve/JopScrapper | e7ad4dfe725d9b65d1845c95869923879eec46f6 | 52fcfbd46660048dbdbdc7d456e583ef5702e62a | refs/heads/master | 2023-04-25T01:53:56.166701 | 2021-05-18T06:52:42 | 2021-05-18T06:52:42 | 368,430,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | from flask import Flask, render_template, request, redirect, send_file
from scrapper import get_lists
from exportCSV import save_to_file
app = Flask("JobScrapper")
db = {}
@app.route("/")
def home():
return render_template("home.html")
@app.route("/report")
def report():
word = request.args.get('word')
if wor... | [
""
] | |
d442405730718683f792a462255cc60efdad1d6b | af1cd4d89ae1e1781164b5449c769153554421a5 | /Kompresja/zad2.py | 98e8c5b2a4e47265ee5653536f7d7d54db761794 | [] | no_license | Kubciooo/4SEM | 123d0bc39721dd1912b12283f73e91ae6b378cd8 | 160f903298d54d7c99ef34a5362c6f678c66225e | refs/heads/master | 2021-03-02T01:41:08.286900 | 2020-08-11T11:37:56 | 2020-08-11T11:37:56 | 245,827,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,308 | py | import numpy as np
import codecs
import sys
from bitarray import bitarray
import os
import zad1
def bytes(filename):
return os.stat(filename).st_size
def zwroc_bity(lewy, prawy, licznik_Bitow, kod):
while 1:
if lewy >= 0 and prawy < 0.5:
kod += '0'
for i in range(... | [
"noreply@github.com"
] | noreply@github.com |
4e867411db21a1d4dc54104e1b1e3aa69b70f16d | 7c96fd062cdf11cdecf365ffa94a0389b904218d | /ClubTesting/rebecca's celsius->fahrenheit.py | 0c07c9d3de03ec630c8d253966e2bb6f25b9069c | [] | no_license | hdgcomputerclub/FireBasePython | 9821bf0500ff6bc8d903897f001b2c8e5cd1cf64 | e225429fa2dd5c105512d33c4c36d6c5608cebd1 | refs/heads/master | 2020-03-07T00:40:36.566021 | 2018-12-06T04:27:20 | 2018-12-06T04:27:20 | 127,163,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | def convertCtoF(C):
F= ((C*9.0)/5.0)+32.0
return F
print(convertCtoF(25)) | [
"hdgcomputerclub@nuttyrobot.com"
] | hdgcomputerclub@nuttyrobot.com |
f5d3f44e763df07c83c820bd36b0d69863752102 | 464dcc6363bd300ec67aa457819d2776b56ff07c | /tools/kubectl_util_test.py | ad65c4b4eb7f026da62c6c60d07486eb79f46e74 | [
"Apache-2.0"
] | permissive | ebaranas/gpu-benchmark | 88c6e13e124df6b0bebb8d47d361bf3ad53455c8 | 420bb31976510e76d442b58b45bb935b7870d791 | refs/heads/master | 2022-12-16T18:22:36.296051 | 2018-08-07T14:45:47 | 2018-08-07T14:45:47 | 143,891,000 | 0 | 1 | Apache-2.0 | 2022-11-29T14:53:57 | 2018-08-07T15:11:52 | Python | UTF-8 | Python | false | false | 2,633 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"annarev@google.com"
] | annarev@google.com |
7722c489661e11c768bcae263c6e40e6159359df | 00a6af428fdd843e3c1fbcd35600dd5fd5cf7700 | /3/main.py | 2e5b08f52f755ec2926890aaef2f226dc3daae00 | [] | no_license | olofenglund96/aoc-2020 | 4b5444441d140fca2d1a5bfa600e6115bd95ea35 | 1931234ab0d865cbca71e43f444d348627e92d4d | refs/heads/main | 2023-02-03T17:46:37.637765 | 2020-12-20T18:01:47 | 2020-12-20T18:01:47 | 319,332,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | lines = []
with open('3/input', 'r') as file:
lines = [line.strip() for line in file.readlines()]
prod = 1
width = len(lines[0])
steps = [(1, 1), (3, 1), (5, 1), (7, 1), (1, 2)]
for step in steps:
row = 0
col = 0
num_trees = 0
while row < len(lines):
if lines[row][col] == '#':
num_trees += 1
p... | [
"olofenglund96@gmail.com"
] | olofenglund96@gmail.com |
6fab5cce24fcec687c979f27faafd35e90aee238 | 17f412f96e9dbf53b6019ce8c6efa938e821ace6 | /SPOJ/Hangover.py | 7eca11c87d10c3fd7e0aedf7e2d63e98b4ad59d5 | [] | no_license | himansurathi/Competitive_Programming | fd095063e24a7628a2f26b7c076405feb3eada4a | e7478a3405cf277d4471a03f2d68eb357f8e4654 | refs/heads/master | 2020-04-04T01:02:10.706130 | 2014-10-17T10:09:37 | 2014-10-17T10:09:37 | 25,349,502 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | s=0
b=[0]*278
for i in xrange(2,278):
s=b[i-1]
b[i]=s+1.0/i
n=input()
while n:
c=-1
for i in b:
if n>i:
c+=1
else:
break
print c,
print "card(s)"
n=input()
| [
"himansurathi@gmail.com"
] | himansurathi@gmail.com |
9350ec0b489c024abe55e9c179a759ff9f9b6807 | 2a9df2ef7b40b88e02dee6c6138ce6529bc3319e | /contact/migrations/0003_auto_20160621_1437.py | df00722f572ecee8140cf0ad192d14fccadd0706 | [] | no_license | Itsindigo/contact_tech_test | 9787c0f456cc5bb01fb127214f5f6e1bd8270664 | f57958795d70f2839dda6f3dd1296fedaeae8068 | refs/heads/master | 2021-01-17T16:56:38.639722 | 2016-08-15T14:52:55 | 2016-08-15T14:52:55 | 62,062,365 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-06-21 14:37
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contact', '0002_auto_20160621_... | [
"mattbridgesbusiness@gmail.com"
] | mattbridgesbusiness@gmail.com |
180a64fff79b65f8779a0341f7856dcf1fe2654e | 33b40df749eecb1195fc2312135c5a1f4b38355a | /django_newsapp/core/migrations/0019_userprofile_profile_picture.py | c1cf16af20e33c2a16d47e989d94d2b1a39460ed | [] | no_license | ksj1993/django_newsapp | 01d8b47b91ad599a605e34310fd31950ecdc214e | 4e7224c74ce6dcc76c443a38cb7e2b57e7267dad | refs/heads/master | 2021-01-10T07:59:52.210334 | 2016-02-06T06:29:53 | 2016-02-06T06:29:53 | 49,241,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-16 23:58
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0018_auto_20160116_2208'),
]
operations = [
migrations.AddField(
... | [
"kunaljasty@gmail.com"
] | kunaljasty@gmail.com |
7df39a74f57bf9f8ba52ea6d1d3f1f34b7a34959 | 6a00ebf01e7723f9dca4c79f3ecfa6f8911803cb | /Hotelapp/views.py | 9629914260def628f9388edb241926516bfde21c | [] | no_license | khandushigihalli/hotelapp | ab31500837aead6ffaa451f5027389b3e0d5006a | 68f4e10ad15db549df366b9834d5012145b256be | refs/heads/master | 2020-06-11T05:12:39.181349 | 2016-12-09T03:54:25 | 2016-12-09T03:54:25 | 75,999,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,891 | py | from django.shortcuts import render
from django.http import HttpResponse,HttpResponseRedirect
from models import Food, Room, Order, Menu,Starters
from datetime import datetime
from django.core.mail import send_mail
from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
fro... | [
"Khandu Shigihalli"
] | Khandu Shigihalli |
374b4148c341c0d6833a5b0638c0b70ed9128773 | 1672660d7fd645a99ec4d4326b6337f1bb39b01e | /pmms-gui/lib/test-read-json.py | e959e1ef0a4db9cbf1d73c243c61cc3948de313e | [] | no_license | stevenGe/cets_nj | 597ce799f144028084bb8532cbb1b636304a34f9 | a544059ee2ebce73d3cb716b2042c2a9be198f8b | refs/heads/master | 2021-01-10T03:28:59.959765 | 2016-03-01T09:32:04 | 2016-03-01T09:32:04 | 45,472,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | # -*- coding: utf-8 -*-
__author__ = 'gexin'
import json
with open('C:\\cets_pmms\\xls-template\\test_xls_template.json') as data_file:
data = json.load(data_file)
for item in data["templateItems"]:
print(item["columnNames"])
print(item["filters"])
print(item["orderBySequence"])
| [
"ge@hp.com"
] | ge@hp.com |
b6ab227dbf910c0633ed13ccc542c3bb3f006958 | 5bc369d49b16bc46e23b76621144223dc4226997 | /model/medicationknowledge.py | 0c9a4941e14c3566714b6e51c90cb1c0a0d1a912 | [
"MIT"
] | permissive | beda-software/fhir-py-experements | 90d8e802f92f9e691d47d6ea4b33fda47957383a | 363cfb894fa6f971b9be19340cae1b0a3a4377d8 | refs/heads/master | 2022-12-17T05:19:59.294901 | 2020-02-26T03:54:13 | 2020-02-26T03:54:13 | 241,292,789 | 0 | 0 | MIT | 2022-12-08T03:38:55 | 2020-02-18T06:53:02 | Python | UTF-8 | Python | false | false | 9,022 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/MedicationKnowledge) on 2020-02-03.
# 2020, SMART Health IT.
import sys
from dataclasses import dataclass, field
from typing import ClassVar, Optional, List
from .backboneelement import Bac... | [
"ir4y.ix@gmail.com"
] | ir4y.ix@gmail.com |
feef4eee08e45decb009e434f76d5356af6b78ba | dde951c8bcfb79cdead3449de42d9ed3e6f24fbe | /func_return.py | 1f6f46649a7f1fc0a1f1c095cda972238fb70987 | [] | no_license | wolfeyuanwei/study-python | c764353cbf75b0ccd79dc562fe11eebee712510b | be1a9ec93cd29d9fe6b69ad4f9c059fb9dd308de | refs/heads/master | 2021-05-11T22:57:51.541684 | 2018-02-08T05:03:10 | 2018-02-08T05:03:10 | 117,504,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #!/usr/bin/python
#FileName:func_return.py
def maximum(x, y):
if x > y:
return x
else:
return y
print(maximum(2, 3))
| [
"wolfe_yuan@163.com"
] | wolfe_yuan@163.com |
f954041fba7b8510d2b5f4cb547b771e5c3dfb79 | eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e | /atcoder/abc/abc201-300/abc266/f.py | b03a34ca709778b20ecaa0399ffdedf93dca60c1 | [] | no_license | reo11/AtCoder | 4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9 | 69c6d67f05cb9190d8fb07204488cd7ce4d0bed2 | refs/heads/master | 2023-08-28T10:54:50.859288 | 2023-08-22T18:52:47 | 2023-08-22T18:52:47 | 162,085,118 | 4 | 0 | null | 2023-07-01T14:17:28 | 2018-12-17T06:31:10 | Python | UTF-8 | Python | false | false | 2,517 | py | import sys
from collections import defaultdict, deque
input = sys.stdin.readline
n = int(input())
edges = defaultdict(lambda: [])
uv = []
for _ in range(n):
u, v = map(int, input().split())
uv.append([u, v])
edges[u].append(v)
edges[v].append(u)
q = int(input())
xy = []
for _ in range(q):
x, y = m... | [
"reohirao116@gmail.com"
] | reohirao116@gmail.com |
ab65b3a0f01c4e119b68c1a347510f32f96a3022 | 466e5e56d2f350bcea90683af67e160138af836c | /Onsite/Week-1/Wednesday/Alphabet.py | 367494d1e6770c43e0a53e28ddc978c4529db1f2 | [] | no_license | max180643/Pre-Programming-61 | bafbb7ed3069cda5c2e64cf1de590dfb4a542273 | e68d4a69ffeedd4269fffc64b9b81e845a10da4d | refs/heads/master | 2021-06-17T14:10:44.889814 | 2019-08-01T09:35:42 | 2019-08-01T09:35:42 | 135,553,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | """Alphabet"""
def main():
"""Main Function"""
letter = ord(input())
print(letter - 64)
main()
| [
"noreply@github.com"
] | noreply@github.com |
12a869aea92c3264abfdfb0f24c05457ad3da7b1 | 3f5a238208e3e4e1194d61eaad009a86b8516c14 | /codekata/absolute_beginner/774.py | 5c47a5797108c36ae9217dfd4f3215f0f7c4a7dd | [] | no_license | jeyamani123/all-is-well | 6adec4299b20e21a00d21e8c92f06d606a1d9e8c | f4cbda4b07a4f62ca5578c9547686d2c7f8dac47 | refs/heads/master | 2020-03-28T07:47:46.759308 | 2020-02-07T09:06:51 | 2020-02-07T09:06:51 | 147,924,336 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 118 | py | n=int(input())
if(n>=0):
for i in range(1,4):
if(i==3):
print(i*n)
else:
print(i*n,end=" ")
| [
"noreply@github.com"
] | noreply@github.com |
384f112b12ddc244dee9ea931a5723196b59a485 | 39c5afeb8315b7353525d508ace2fc0dd74df8d3 | /13.process_thread/13.5.thread_trouble.py | 5e51637cff791946c5ce3565d0005674eaf08ffc | [] | no_license | wcybxzj/study_lxf_py | 39864b1ba1934d6b2f1eb5a6a30696860405a100 | 08cfd0f8a6f3caf60f9189ba772acf324c014b34 | refs/heads/master | 2021-01-10T19:28:25.652109 | 2015-02-25T20:42:00 | 2015-02-25T20:42:00 | 29,711,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # -*- coding: utf-8 -*-
__author__ = 'wcybxzj'
import time, threading
balance = 0
def change_it(n):
global balance
balance = balance + n
balance = balance - n
def run_thread(n):
for i in range(100000):
change_it(n)
def run_one():
t1 = threading.Thread(target=run_thread, args=(5, ))
... | [
"virgo86ybx@gmail.com"
] | virgo86ybx@gmail.com |
47434878f5209d363300eb652bbce2ad91b04fd7 | d3c1e76a53d198f3d1ac3f53a6423407660e1bcb | /core/controllers/energy_controller.py | 8de1588d2cfc398b52f2c9a21f752ea5f3663349 | [
"MIT"
] | permissive | Cafolkes/keedmd | ec581a59a06ab7f143fad76a4ac31c46e3aa0441 | 031f8304434cb27accf9b87c5f9074d0cad8c28c | refs/heads/master | 2022-12-15T20:40:38.038908 | 2020-04-03T13:09:59 | 2020-04-03T13:09:59 | 205,278,459 | 20 | 8 | MIT | 2022-12-08T03:46:35 | 2019-08-30T01:09:39 | Python | UTF-8 | Python | false | false | 962 | py | from numpy import dot, reshape, zeros
from numpy.linalg import solve
from .controller import Controller
class EnergyController(Controller):
"""Class for energy-based controllers."""
def __init__(self, robotic_dynamics, K_p, K_d, q_d=None):
"""Create an EnergyController object.
Requires fully... | [
"victor.d.dorobantu@gmail.com"
] | victor.d.dorobantu@gmail.com |
6f1c6101a9c442886058f5c3f671bc968c81dbc6 | 5c59617ebd4e6e24097b62349a923ae483110705 | /MaxSum-SubArray/main.py | d1f616333aef00056b7cb5a5800392b782c0b9fb | [] | no_license | hnahtit/FULL-TKGT | 471f882cfd6feb821f6853073a29d5d561b67ad9 | 69332469b1bf297e2f2f9d4729a25fae06e8f6eb | refs/heads/master | 2020-07-30T13:33:24.698463 | 2019-10-17T08:21:59 | 2019-10-17T08:21:59 | 210,251,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,871 | py | import sys
#declare variables
arr = []
#read data from file
f = open('data.txt','r')
for val in f.read().split():
arr.append(int(val))
f.close()
#test
"""
def maxSubArraySum(a,size):
max_so_far = -999999 - 1
max_ending_here = 0
for i in range(0, size):
max_ending_here = max_e... | [
"ngtrungthanhcntt@gmail.com"
] | ngtrungthanhcntt@gmail.com |
40cb3fe4a505bcc900c21fe80d26a49e4ad0f3c7 | 987da239fca713d4e6d405c8313dbe880ba8d83a | /Comment/migrations/0001_initial.py | dcb198b68675e4f5bdab16fa0cfb1319a6941911 | [] | no_license | Tim1119/BuzzTalkDjango | 3b1733046819a3a8c7e9715683a464e40308aaaf | 95997b3f697a549f5e80aa201dc9880bf92bc64e | refs/heads/main | 2023-08-19T05:39:52.857368 | 2021-10-16T07:04:29 | 2021-10-16T07:04:29 | 403,406,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # Generated by Django 3.2 on 2021-09-05 19:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('posts', '0001_initial'),
migrations.swappable_dependency(settings... | [
"timothyinioluwa@gmail.com"
] | timothyinioluwa@gmail.com |
48fcfcfc861eb1909a5b77a1e8b155fb169917c0 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL18_mMed-1200_mDark-20_ctau-150_unflavored-down_cff.py | 515c71897a83cb6ed2e74ab5cf63cf3af9d9f817 | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,981 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
19f12b5fc947a4c0fa471b3048cb162b276cf947 | 69d8f3cf7c10640a692fa9175f5a63a5a7b54fcd | /naver_spellchecker.py | 76de17ee5185f3fe4709539f055c23cdd9395c31 | [] | no_license | baidoosik/crawling | bd89fd9f59ecb8921e765b03faadf1c55bd59c74 | 62669badf6ce84e0ac9e575b736e41051642ea9c | refs/heads/master | 2021-06-21T19:25:30.175798 | 2017-07-30T15:02:55 | 2017-07-30T15:02:55 | 84,198,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | import requests as req
import re
import json
def naver_spellchecker(q):
url = 'https://m.search.naver.com/p/csearch/dcontent/spellchecker.nhn?'
params = {
'_callback': 'window.__jindo2_callback._spellingCheck_0',
'q': q
}
request_headers = {
'User-Agent': ('Mozilla/5.0 (Macintos... | [
"qoentlr37@naver.com"
] | qoentlr37@naver.com |
acea8137c6d81c50641d75019acbb9820c7fe677 | fe901ea37ae8a1dbc9fce034f8c4f32a535b06a6 | /L_PyInterface/Map.py | 99a9217b32d9f7fc31ddc24d1263574d516a9ea3 | [] | no_license | VB6Hobbyst7/roomba-localization | 93c1dc1bba9102ff770b173ddd0bdb1436d22a86 | f18d7ecf28f29e44806147fe1fef1c32a720eb69 | refs/heads/master | 2021-05-20T10:13:09.064249 | 2011-08-06T20:21:11 | 2011-08-06T20:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | class Map(object):
def __init__(self, obstacles=[]):
self.obstacles = obstacles
def draw(self, cr):
raise NotImplemented, "Abstract class"
def obstacles(self):
raise NotImplemented, "Abstract class"
class GridMap(Map):
def __init__(self, obstacles=[]):
... | [
"riverallen@3c1b0362-c62b-8bf9-9a54-5033ff64f510"
] | riverallen@3c1b0362-c62b-8bf9-9a54-5033ff64f510 |
41b587f2ef42b7d504755e730ed86964b487d34a | fe5db9ff08ebcb33e8ef6859cf6098b0a280c7a9 | /distiller/testing/utils/test_TaskLoader.py | fe9a001aa543200fd2c701dce494fc48558a6a4a | [
"BSD-2-Clause"
] | permissive | darkclouder/distiller | 05ba854a7f85e52257b7a984f13c2186f6ae83d4 | a8efbfd807d781b90daba6023e3f966a52836b42 | refs/heads/master | 2022-10-15T00:57:51.625150 | 2018-11-26T21:28:28 | 2018-11-26T21:28:28 | 141,433,971 | 3 | 1 | BSD-2-Clause | 2022-09-30T15:18:44 | 2018-07-18T12:48:22 | Python | UTF-8 | Python | false | false | 970 | py | import unittest
from distiller.utils.TaskLoader import TaskLoader, TaskLoadError
class TestTaskLoader(unittest.TestCase):
def setUp(self):
pass
def test_not_found(self):
with self.assertRaises(TaskLoadError):
TaskLoader.load("testing.not_existing")
def test_missing_definitio... | [
"2065342+darkclouder@users.noreply.github.com"
] | 2065342+darkclouder@users.noreply.github.com |
603fc965c36dfb69ea7acf6e8c3f3913be0065f8 | 756b79e61594b0833fdc9d3f04d6107e95ee4889 | /Wave Segment/waveSegmentMusic/segmentWav.py | d7e86a6b03d8d8e71f8608d313f1a3308df6b814 | [] | no_license | jiemojiemo/MusicEmotionRecognitionBaseOnAdaboost | c5552c3c62568560ece4e73da6eaff8b0990e760 | 12b669e521e756f7d5e1e92275b69a9b7101a3fb | refs/heads/master | 2021-01-10T09:10:41.403495 | 2015-12-14T05:42:11 | 2015-12-14T05:42:11 | 47,905,944 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | #usr/bin/env python
#-*- coding: utf-8 -*-
import win32api
import win32event
import win32process
import os
def main():
rootdir = os.getcwd();
exePath = rootdir + "/Wave Segment.exe"
print(exePath)
for parent, dirname, filenames in os.walk(rootdir):
for filename in filenames:
fullPa... | [
"460706836@qq.com"
] | 460706836@qq.com |
c9355005802f989664e1dc3d04f00b0c964ca4ed | ef49b86b43dfd3fbd4d3beae6d0921820f53e9c9 | /47几个exit.py | 765152e052263add697ba13a5d9858c789932d54 | [] | no_license | erichuang2015/python-examples | 397cb1565afd66991bb52dc709bae6504fce36de | 849b9d43ee1f4a333139abd489addc75d8ada8b6 | refs/heads/master | 2020-03-31T07:40:05.341245 | 2018-10-08T05:27:51 | 2018-10-08T05:27:51 | 152,030,074 | 1 | 1 | null | 2018-10-08T06:37:46 | 2018-10-08T06:37:46 | null | UTF-8 | Python | false | false | 751 | py | #!/usr/bin/env python3
# coding: utf-8
"""
经测试,
多进程中:
这三个退出函数都不能用于多进程中的子进程退出,
目前发现只能依靠异常来「退出」子进程,
而且也不是完全的退出,会阻塞在那里,等待父进程退出。
多线程中:
exit() 可以退出当前线程
sys.exit() 感觉和 exit() 一样
os._exit() 可以退出整个进程,并且不会进行清理工作
"""
import os
import sys
def main():
try:
print('main')
exit(0) # 其实是退出当前线程
... | [
"zzzzer91@gmail.com"
] | zzzzer91@gmail.com |
3eee3039d823bbda999e052fe3440aadad4ae9de | e31a431e090b5c6e65a0d649753ece283b7ced59 | /resources/item.py | ddeafc483be6dfc05de81e5eca03363ad50eb3c6 | [
"MIT"
] | permissive | pablobascunana/store-api-flask-sql | fa9ae51aaca85de989acd4a5243711702cbcc735 | a079857d2d6a4277c7b2e6534f6fd7ffa27a6291 | refs/heads/master | 2023-08-14T07:03:21.807076 | 2021-10-12T09:33:46 | 2021-10-12T09:33:46 | 403,892,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | from flasgger import swag_from
from flask import request
from flask_jwt_extended import jwt_required
from flask_restful import Resource
from schemas.item import ItemSchema
from models.item import ItemModel
from utils.commons import generate_uuid_4
from utils.constants import SWAGGER_PATH
from utils.responses import cre... | [
"pablobascunanasaiz@gmail.com"
] | pablobascunanasaiz@gmail.com |
eaf85de5d93fe435e036d48de6973e7d745e8ac1 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/api/loss/test_nn_cross_entropy_loss_1.py | e11e2989f99c926f8b6e8a776af775db46b71c2d | [] | no_license | PaddlePaddle/PaddleTest | 4fb3dec677f0f13f7f1003fd30df748bf0b5940d | bd3790ce72a2a26611b5eda3901651b5a809348f | refs/heads/develop | 2023-09-06T04:23:39.181903 | 2023-09-04T11:17:50 | 2023-09-04T11:17:50 | 383,138,186 | 42 | 312 | null | 2023-09-13T11:13:35 | 2021-07-05T12:44:59 | Python | UTF-8 | Python | false | false | 1,406 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
paddle.nn.CrossEntropyLoss
"""
import paddle
import pytest
from runner import Runner
from conv2d_dygraph_model import Conv2DNet
import numpy as np
@pytest.mark.loss_nn_CrossEntropyLoss_parameters
def test_nn_cross_entropy_... | [
"noreply@github.com"
] | noreply@github.com |
6a69fff2b1da3b0edc111afb0b6fd0c8a121272c | 941c912f44beff33a072e086c1f561f6cdd64626 | /LeetCode/codes/568.py | f7fb81e31251c847a413315df48a13004996231b | [] | no_license | adreena/MyStudyCorner | 3a13a743769ed144965b767f547c16df4d0fa0dd | 355c0dbd32ad201800901f1bcc110550696bc96d | refs/heads/master | 2023-02-20T07:39:32.391421 | 2021-01-25T01:46:21 | 2021-01-25T01:46:21 | 255,104,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | # time O(n2k)
# space (nk)
class Solution:
def maxVacationDays(self, flights: List[List[int]], days: List[List[int]]) -> int:
self.max_vac = float('-inf')
self.memo = defaultdict(lambda: float('-inf'))
self.cities = len(flights)
self.final_week = len(days[0])
def ba... | [
"kim.hszd@gmail.com"
] | kim.hszd@gmail.com |
104af0435bc74550a4a907c695932a1df48051d2 | d07e0d2c5bba88f96c6fb71d339936c307d49527 | /check_file_extension.py | 2c878afedfb48be9c56d5477f082e494226b21b6 | [] | no_license | Tapan-24/python | 92bde9dc8a7b5c7b18644dfd9f6c6ac8a63cb33e | 2ce5905229cb62ed3101bce49ca2171e707abab2 | refs/heads/master | 2022-12-28T11:52:58.084060 | 2020-10-03T13:07:42 | 2020-10-03T13:07:42 | 282,006,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | exe=('gif','png','jpeg','jpg','txt')
filename=input("Inser File with extension").split('.')
if len(filename)>=2:
ext=filename(-1).lower()
if ext in exe:
print("File extension Exist")
else:
print("File Extension does not exist")
else:
print("File Does not have extension")
| [
"tapan.24.96.vaghela@gmail.com"
] | tapan.24.96.vaghela@gmail.com |
dd5f3f796d2ecf89a87d1316637cf3c8f86eed1d | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /projects/computer-apps/py-qt/practice/lineEdit.py | 55c366c81d06e56eec698e7a3cbe3bd619076e37 | [] | no_license | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 1,255 | py | from PyQt5.QtWidgets import QApplication, QPushButton, QDialog,\
QGroupBox, QGridLayout, QVBoxLayout, QLabel, QMainWindow,\
QHBoxLayout, QRadioButton, QLineEdit, QWidget
import sys
from PyQt5 import QtGui, QtCore
from PyQt5.QtCore import QRect
from PyQt5.QtGui import QPixmap
class Window(QWidget):
def __i... | [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com |
b8e50da9c455dffbbec1a4f4889bf0e176e32f31 | 773e22fea34498731fba645138ab1168a73cf2a9 | /kip_close.py | 43c0de0b62dc420c3bbbc8b6347840d086a347c0 | [] | no_license | koen01/ChickenCoop | d6fb99b9b45d5740d13ca1fe06faf0b83b442948 | 161aa6735764cf3a10fe8ed4c5e90e1f5bdd5480 | refs/heads/master | 2020-05-17T08:54:10.589811 | 2015-06-26T14:30:28 | 2015-06-26T14:30:28 | 38,115,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,357 | py | #!/usr/bin/env python
# coding: latin-1
# Import library functions we need
import PicoBorgRev
import thread
import time
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
import httplib, urllib
import base64
import urllib2
# Settings for the domoticz server
domoticzserver="xxxx:8080"
domoticzusername = "xxxx"
domoticzpa... | [
"koen.erens@gmail.com"
] | koen.erens@gmail.com |
e87f671468d4cb412ce0ae1816a39fa2d20d24ce | 868ac4e558cf5fe945e8b557564f34f79b3ad01e | /purity_fb/purity_fb_1dot9/models/smtp.py | 73de2c03398c7a6e3ef26e742ed48d8a6ee43f43 | [
"Apache-2.0"
] | permissive | mabdelhafez/purity_fb_python_client | f4253ce8497fb3cff648e0a0cd1e567f48129fa7 | a9856875b3df43b4302a2e4addd1a6b71f51f5ce | refs/heads/master | 2022-04-20T09:24:22.031408 | 2020-04-20T22:11:32 | 2020-04-20T22:15:44 | 257,372,596 | 0 | 0 | NOASSERTION | 2020-04-20T18:40:24 | 2020-04-20T18:40:23 | null | UTF-8 | Python | false | false | 4,729 | py | # coding: utf-8
"""
Pure Storage FlashBlade REST 1.9 Python SDK
Pure Storage FlashBlade REST 1.9 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/).
OpenAPI spec version: 1.9
Contact: i... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
8408503e0f62b97964cc92caf3989c4385b18b16 | 2d73f6b64a6dbde1dde47ab9a3898909b4b31cd5 | /Web/EnterthePolygon/exif/front/views.py | db2a0594d2faa0feef0b5ff755be2fd5727c7a21 | [
"MIT"
] | permissive | Danni-Phantom/SunshineCTF-2019-Public | f5e3ed0b8c6372d2d1c6f83f5efb08b137abf180 | 0d3bb807d2f7cfb5afac452482fc68329e742c12 | refs/heads/master | 2022-03-29T23:18:04.777652 | 2020-01-22T14:45:33 | 2020-01-22T14:45:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,115 | py | from django.shortcuts import render, redirect
from django.http import HttpResponse
from .forms import UploadFileForm
from django.http import HttpResponseRedirect
from django.views.decorators.csrf import csrf_exempt
import exifread
import uuid
from .models import images
from exif.settings import MEDIA_ROOT, APPROVED_SIG... | [
"kjcolley7@gmail.com"
] | kjcolley7@gmail.com |
937f0af669037f27bb35eeb17c14d1556927d77b | ee24de02b35561409671b6732807db476c677f9d | /telepot-master/examples/chatboxa_nodb.py | 7b6fad393c31e401a9ff644f54007b1904a5eb8e | [
"MIT"
] | permissive | Joukkue/JoukkueBot | 08c453db4e8d2d31d2e0711a1fa1856a57d81a83 | 984e13ff679019cfebdf8c93fff7c817b9646076 | refs/heads/master | 2020-05-22T23:41:07.269572 | 2019-03-19T12:06:54 | 2019-03-19T12:06:54 | 84,734,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,600 | py | import sys
import asyncio
import telepot
from telepot.delegate import per_chat_id_in
from telepot.async.delegate import call, create_open
""" Python3.4.3 or newer
$ python3.4 chatboxa_nodb.py <token> <owner_id>
Chatbox - a mailbox for chats
1. People send messages to your bot.
2. Your bot remembers the messages.
3.... | [
"joel.arantola@outlook.com"
] | joel.arantola@outlook.com |
ce7489763796a1b55b29baf8a203b33d1c1e1dac | c289c9472ce1f6eb80a9831b930674d3b71e85e4 | /chap_5/chap_5.py | edff24641d66ade85c4491f5701e70b55258d69d | [] | no_license | Jordan-Rowland/oop-practice | a6ba2ad9f6323f58b7e4ac521c2885e5bd5b9571 | b442c62bbc45ad599bb964b22f98d6237f2e0297 | refs/heads/master | 2020-07-10T00:22:51.433643 | 2019-11-20T05:48:17 | 2019-11-20T05:48:17 | 204,117,797 | 1 | 0 | null | 2019-11-20T05:48:18 | 2019-08-24T06:21:08 | Python | UTF-8 | Python | false | false | 3,349 | py | # Objects are things that have both data and behaviour
# If there is only data, you're better off using a data struction of some kind.
# if there is only behaviour, you're better off using simple functions.
# Proficient Python programmers user built-in data structures unless(or until)
# there is an obvious need to def... | [
"36084892+Jordan-Rowland@users.noreply.github.com"
] | 36084892+Jordan-Rowland@users.noreply.github.com |
f9a7953400bca208a051c6e5af4c8e3335e1b103 | 96dabbda49168118df3a247d71b10a3b5b4edf9b | /build/lib/nessus2azure/__main__.py | dbbd856ed4879360eb5ff944ccc8f0bb2d2bbccf | [] | no_license | mguelfi/nsu | 2b03ae73666f48f09ffec41b9d259e6666aa7a89 | 492aabf280fd47570852cb8f18e3eadbe5e7d7e1 | refs/heads/main | 2023-02-25T00:08:00.900715 | 2021-02-01T05:24:40 | 2021-02-01T05:24:40 | 334,837,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,509 | py | #!/usr/bin/env python3
import sys
import argparse
import configparser
import os
import os.path
import platform
import collections
import logging
import requests
import distutils.util
from time import sleep
from tempfile import TemporaryFile
from tenable.nessus import Nessus
from azure.storage.fileshare import ShareFile... | [
"ec2-user@ip-172-31-35-137.ap-southeast-2.compute.internal"
] | ec2-user@ip-172-31-35-137.ap-southeast-2.compute.internal |
e1bc41794dea0a6efa1e84f813997150eb4859f0 | 3d8f81f8184fcbf95b8a000dd9d3e78d242fab32 | /bus.py | 94990062c72985dd36b49ff54a11a3d4d927d71c | [] | no_license | JohnVicke/Kattis | db564014cbb9bf0776a705f5c9b84edbf5ff8fd6 | 4ef2e879042f45194f6f31eb7e63a266351d8c5c | refs/heads/master | 2021-06-16T08:55:03.371899 | 2021-03-03T21:34:06 | 2021-03-03T21:34:06 | 174,874,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | import math
for i in range(int(input())):
print(int(math.pow(2,int(input())))-1)
| [
"noreply@github.com"
] | noreply@github.com |
f020ba46fee7d7ca058f0e3978b6cd7225778254 | 400f616f54fd001d2e2eb493a3b9b7a0000d9567 | /02_practice_numpy_class.py | 26aef811c978f09aa6ef90bca9dea8baeecba909 | [] | no_license | msbasotia/PYTHON-START-APP | 8f00f13b82cd4f84435afcf368624e3c27324daa | 2f08e1f2d4adf94415e8b34ebabd98506f27b136 | refs/heads/main | 2023-04-05T22:16:02.363180 | 2021-04-30T14:20:57 | 2021-04-30T14:20:57 | 358,188,411 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py |
import numpy as np
from numpy import pi
print ("--------------")
mat_1 = np.arange(12).reshape(3,4)
print(mat_1)
# how to access each element
for i in range(len(mat_1)):
for j in range(len(mat_1[i])):
print(mat_1[i][j])
print ("--------------")
# Python Lists
a = []
for i in range(8):
... | [
"msbasotia@gmail.com"
] | msbasotia@gmail.com |
4d6edc382f3df59ae05064f3255bb7d2a9f76b77 | b066191ce947eb7ca4acebd021070ee46eae4d05 | /backend/operations/api/serializers.py | e8d8ca44a20576c2fd9ec80c7fdef25e9c73fa9e | [] | no_license | friendlywhales/lineup-web | 17624b8c17678eb1abd380fa603d5559ece83115 | ed06227b14a57791449a4c134c5a0955fc5b9f27 | refs/heads/master | 2022-12-04T20:08:13.482782 | 2020-09-01T07:59:49 | 2020-09-01T07:59:49 | 291,615,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py |
from rest_framework import serializers
from .. import models
class PromotionCodeSerializer(serializers.ModelSerializer):
is_available = serializers.SerializerMethodField()
class Meta:
model = models.PromotionCode
fields = (
'value', 'extra', 'is_active', 'expired_at',
... | [
"sooeun@gmail.com"
] | sooeun@gmail.com |
bec6c607cc899293d773445ffe6a709c391aacb7 | b3589b1e52cc420ad2bd175d16c5286ccaba449a | /InfoThread.py | c9b44e8eddb7846b997848f47080e90b8e8baebe | [] | no_license | leshier/face_recognition | 8b02ef79cec5a14f7e254e192217982216b59112 | fcc4f957d26a120ef2ef90aaa23175c8453c6b4a | refs/heads/main | 2023-08-24T22:19:10.103608 | 2023-08-22T09:03:22 | 2023-08-22T09:03:22 | 290,638,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,694 | py |
import pymysql
import face_recognition
from PyQt5.QtCore import *
import numpy
import configparser
import requests
class InfoThread(QThread):
Sql_Info_Sin = pyqtSignal(tuple,numpy.ndarray)
def __init__(self):
super().__init__()
def SetData(self,face_locations,rgb_small_... | [
"noreply@github.com"
] | noreply@github.com |
a92c54e3a5ea132da7a84ec0bc114d9523bb1dc9 | 82948c61996bb0e507f12206b97617a45e23b94b | /DLTdv7 to DeepLabCut/three2four.py | 56a6eb87e37fb8a8003170d420c741f6932ccf65 | [] | no_license | aiyeraditya/deeplabcut_NCBS | e1ef5302b263c070b9eb54beed24c757772dafc9 | c26ebb7b03f58de170e91eb54a4818608dab8f94 | refs/heads/master | 2020-04-17T06:57:48.815069 | 2019-08-15T05:02:13 | 2019-08-15T05:02:13 | 166,347,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 820 | py |
# Before running this code, ensure the following files are present:
# 1. two2three.py
# 2. dlc.py
# 3. Step2_ConvertingLabels2DataFrame.py
# 4. myconfig.py
# Change myconfig.py to have the label points we are interested in
import os
# Converts to seperate csv files for each camera
os.system('python dlc.py')
array = o... | [
"aiyer.aditya@gmail.com"
] | aiyer.aditya@gmail.com |
914bffaf3619c51bfe690f0a8d37b743aab54885 | 9490e6f64e8824f15384d8f740fe136f31cec1b5 | /venv/bin/jupyter-nbconvert | 657a436a1d1351379f18b2c5b889a67ef9f4d25d | [] | no_license | AmoCook/GUI_pj | cc3b49d8fb6244e1c33163812cb1835b8d18b960 | 729bed91a96d7366401b82dd7cfc2cbc4ff59997 | refs/heads/master | 2020-04-16T13:23:58.449573 | 2019-01-14T09:22:11 | 2019-01-14T09:22:11 | 165,625,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/amo/PycharmProjects/test_1/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from nbconvert.nbconvertapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"amo9502@stumail.nwu.edu.cn"
] | amo9502@stumail.nwu.edu.cn | |
5bb82a8b4eaf1355d1f461492c5258d324f9616d | d34b72e4368fb03b78ca819ab4fd8626b159d25d | /Project 11/customer.py | 832da8505fb4fdd3e9125c126ab31a0146203f37 | [] | no_license | Psayta/WSU_Projects | 40722bfb2c6eb3d37615ab8079302b16763ff145 | dbcf984f41141df841d44ecc254c4749451ffdb6 | refs/heads/main | 2023-05-25T09:53:10.678099 | 2021-06-04T19:21:48 | 2021-06-04T19:21:48 | 360,944,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | # Programming Assignment 11
class Person:
#initializer
def __init__(self, name, address, phone):
self.__name = name
self.__address = address
self.__phone = phone
# Mutators
def name(self, name):
self.__name = name
def address(self, addresss):
s... | [
"noreply@github.com"
] | noreply@github.com |
9e31a58a1df53f07ec71fb60893d48cb2b1746f7 | 3fc74826372ac1f9278d94b2fc6e8fca8d707985 | /migrations/0019_create_frequency_types_data_permissions.py | c0d7fc821b5a74ca2d66a1c5b8b754d7880863ad | [] | no_license | YaD13/python-django-example-module-second-one | e0b35429dc205fac32add8c39dbde630e2ac4980 | eb543f0f12bf736fb7969a330931527cde7dc483 | refs/heads/master | 2022-09-01T23:48:55.225315 | 2020-06-02T08:39:10 | 2020-06-02T08:39:10 | 268,784,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | # Generated by Django 2.1.2 on 2019-11-22 14:40
from django.db import migrations
from toolbox.constants import DATA_FREQUENCY_TYPES
def create_data_permissions(apps, schema_editor):
data_permission = apps.get_model("toolbox", "DataPermission")
data_permission.objects.update_or_create(
code=DATA_FREQ... | [
"yardem@codevog.com"
] | yardem@codevog.com |
e9f6c5ee06dd5c78b5d6a308e89f9f8cc2d5f2d4 | 58ee92b34ae6d493467d7e6c0a7df026a7460c29 | /20/aoc20.py | fa07e498aad15d9efa4249f68eac27c5f8154166 | [] | no_license | kjspgd/aoc2020 | 57bfadb7ce61660b60609a3f36e4cf5b0676214c | d94c85bc73ff2375850e58dce2d9722481f11aee | refs/heads/master | 2023-02-07T23:07:39.095906 | 2020-12-26T18:04:52 | 2020-12-26T18:04:52 | 320,881,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | #!/usr/local/bin/python3
def getEdges(incList):
newList = []
#first line and reverse
newList.append(incList[:1][0])
newList.append(incList[:1][0][::-1])
#last line and reverse
newList.append(incList[-1:][0])
newList.append(incList[-1:][0][::-1])
# Get the edges
sfirstCol = ''
slastCol = ... | [
"kjsits@rit.edu"
] | kjsits@rit.edu |
6156384f94d006c47fe69d3c22e2e43dd29902db | 0fbe86f4d7b6316da420880fc05ff3b28f3b843d | /剑指offer/leetcode/editor/cn/[面试题34]二叉树中和为某一值的路径.py | 62ca17d19b764d201bed14f9dc04d374bbe07316 | [] | no_license | buming65/LeetCode | 5c1cf4a724ce753974264b1e303a56f25194698c | 8a3b03bf9fab2328673a002985fe6465199f8c47 | refs/heads/master | 2021-05-18T08:29:19.731414 | 2021-04-16T03:05:37 | 2021-04-16T03:05:37 | 251,196,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | # 输入一棵二叉树和一个整数,打印出二叉树中节点值的和为输入整数的所有路径。从树的根节点开始往下一直到叶节点所经过的节点形成一条路径。
#
#
#
# 示例:
# 给定如下二叉树,以及目标和 sum = 22,
#
# 5
# / \
# 4 8
# / / \
# 11 13 4
# / \ / \
# 7 2 5 1
#
#
# 返回:
#
# [
# [5,4,11,2],
# [5,8,4,5]
... | [
"35394066+buming65@users.noreply.github.com"
] | 35394066+buming65@users.noreply.github.com |
03f9fdf5affaf383898a59ff7b9ed00b1bf8fdfd | a670515b9981034c1059729acfe6d97d18830bb6 | /annotator/manager/DataManager.py | a75cce48fbae7492dcf31771616142870abb6ec7 | [] | no_license | hanhongchang/Intelligent-Annotator | b41c1810e3420ff813736deed7ffceb337459236 | bffd245f79830fbc45bb74ca5356b0c9cc4e714d | refs/heads/master | 2020-05-03T14:41:12.461217 | 2019-03-09T07:38:07 | 2019-03-09T07:38:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | py |
import json
from sqlite3 import IntegrityError
from annotator.models import *
"""
Data:
upload_file(file_name, project_id, file_contents): 上传文件
get_label_process(project_id): 获得标注进度
fetch_unlabeled_data(project_id, num): 获取未标注数据
commit_labeled_data(labeled_data, project_id): 提交已标注数据
"""
class DataMa... | [
"976508106@qq.com"
] | 976508106@qq.com |
7cced10bb31e25f9f9500a3f187107fdf63dd685 | 4b55d13fb26f0fde0c587cd6402840f3bd985d91 | /01_python_giris/0121_steak_heap.py | bc1198cb845b61c4273696329433d158b2d135ba | [] | no_license | suheda-nura-kahraman/VSCode-Ecodation-PC-1 | 28fc5ae7feb76bc8f163473643f48ab0d41af2d6 | 391eb600318f02de4574bdec2c240ca48b5224a7 | refs/heads/master | 2023-04-08T23:33:05.176053 | 2021-04-26T10:43:39 | 2021-04-26T10:43:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | #region ram_steak_heap
""""""
a = 1
b = 2
a = b
b = 1
print(a)
#endregion | [
"azikocan97023@gmail.com"
] | azikocan97023@gmail.com |
e5916abc0bd14b857ee0963a2e66a450eeccb9c2 | 860e84391fb74cceb845cd5cf60b1172d181c749 | /RestApi/rest_api_sql/main_1.py | 96e3286cf82a1f7cfc06bb57173d7101dfd13e67 | [] | no_license | varad-more/SIH-2020 | 9e4b8c29529507e7280eec5e7c1f7ae3c67a138a | cd08a3824ada7f71d9e87d73c1a921ac26c751b1 | refs/heads/master | 2023-02-17T07:29:55.290722 | 2021-01-10T19:03:33 | 2021-01-10T19:03:33 | 277,127,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,218 | py | import pymysql
from app import app
from db_config import mydb
from flask import jsonify
from flask import flash, request
# from flask_httpauth import HTTPBasicAuth
import mysql.connector
# mysql-connector-python
# mydb = mysql.connector.connect(
# host="database-1.ctqvk0asvfes.us-east-1.rds.amazonaws.com",
# us... | [
"varadmore1@gmail.com"
] | varadmore1@gmail.com |
89edf681b5d375501229662b7ed70321a9128434 | af185d3728ce0e5edad84d1dae97c9586f138273 | /tests/app_tests.py | 8dd419a050dd88685e11efa4251246a8a6dec44b | [] | no_license | jessegonzalez/rested_users | 46609f196feb130074e3fbc589042545d885effd | 8b02093ae3f0ac4bdfa4f2e02f4e481e317750cc | refs/heads/master | 2016-08-10T17:56:59.704868 | 2016-02-22T20:50:09 | 2016-02-22T20:50:09 | 50,457,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,298 | py | import rested_users.app
app = rested_users.app.app.test_client()
def test_invalid_namespace():
rv = app.get('/foobar')
assert rv.status_code == 404
def test_redirect():
rv = app.get('/users')
assert rv.status_code == 301
def test_missing_user():
rv = app.get('/users/')
assert rv.status_co... | [
"jesse.gonzalez.jr@gmail.com"
] | jesse.gonzalez.jr@gmail.com |
4c09b44e3736253213273ced7d360485f1c87431 | 1eab574606dffb14a63195de994ee7c2355989b1 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/protocolstack/vicclientglobals/vicoptionset/vicoptiontlv/vicoptiontlv.py | c3d8f829d05f280d4afe199c5198d90f84de9cc2 | [
"MIT"
] | permissive | steiler/ixnetwork_restpy | 56b3f08726301e9938aaea26f6dcd20ebf53c806 | dd7ec0d311b74cefb1fe310d57b5c8a65d6d4ff9 | refs/heads/master | 2020-09-04T12:10:18.387184 | 2019-11-05T11:29:43 | 2019-11-05T11:29:43 | 219,728,796 | 0 | 0 | null | 2019-11-05T11:28:29 | 2019-11-05T11:28:26 | null | UTF-8 | Python | false | false | 6,741 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
92caf6f1073f9d75364704ec2a67a9e175baa88d | e489feebb2b4537a36a3b9823f1e12e13f6b7895 | /users/models.py | f65f8ec4ac9474e0d0ca9ea28d44afe27cde215e | [] | no_license | SLi5m/REPO | 15093cfcf97a3fee161898241208273fd1fdc691 | ecdfb1ca9243873ccf02985a2d94ae3e05a5d9db | refs/heads/master | 2022-04-25T13:37:04.690568 | 2020-04-30T17:51:22 | 2020-04-30T17:51:22 | 260,275,050 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
image = models.ImageField(default='default.jpg', upload_to='profile_pics')
def __str__(self):
retu... | [
"rogersbag@gmail.com"
] | rogersbag@gmail.com |
19d7164244b73c8e0c542b714996e01fbb03fd8b | d608f3485a8408bdddf700a012ade5949789ba29 | /Pandoc.py | 8806e37768883af0e3c39da106b0dbdf73193574 | [] | no_license | caizhengxin/Pandoc | b49ad729a0cc9bf3fbe9de1e2602b1d5693fff0e | 522a3c4611a1ea9141be7eff82774749cd99a07c | refs/heads/master | 2020-06-22T01:13:49.039430 | 2019-07-18T14:03:41 | 2019-07-18T14:03:41 | 197,597,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | import os
import glob
import sublime
import sublime_plugin
PLUGIN_NAME = "Pandoc"
# output_suffix = settings.get("output_suffix", ".pdf")
# latex_engine = settings.get("latex_engine", "xelatex")
# mainfont = settings.get("mainfont", "Noto Sans CJK JP")
def Settings():
"""
动态获取配置文件
"""
return subl... | [
"caizhengxin16@163.com"
] | caizhengxin16@163.com |
abcec2833ba347fead813ad72b3df76f45970307 | 7822c389d925cf3a4c177876edda026d770244d8 | /mdtohtml.py | e90d60796b10db8009177027af3e89b71115bb58 | [
"Apache-2.0"
] | permissive | FredYnov/Markdow-Converter | 5225592153386e0e7ebf7f97f1fa6e94a4f228e4 | 5a60b7b07aa227aa70cfca371ce23be8a2de83a0 | refs/heads/master | 2020-04-22T05:57:04.965662 | 2019-02-11T22:22:23 | 2019-02-11T22:22:23 | 170,173,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,073 | py | # !/usr/bin/python3
import markdown
import os
import sys
import subprocess
# Création du Menu principal
def menu():
print("Bienvenue dans le programme de conversion Markdown en HTML, /n 1 - Utiliser l'outil de conversion (!! Vous devez installer la bibliothèque Markdown et/ou Markdown2 dans Python !! /n 2 - Aide pour... | [
"noreply@github.com"
] | noreply@github.com |
291bf4829195bd211550037c5ee5b396cd6ef889 | b36d5380cffab55f1226531f5836458cf37b4601 | /attic/wpfrontman/extra/path_based/urls_3.py | f85d7b268aff24af2df61e93aa2aec89eff8b46e | [
"BSD-3-Clause"
] | permissive | ludoo/wpkit | f859d1c22ffbbc9450dbd0861e08394e6aa97fc6 | 0447d941a438e143b0e51b5e73418a0206832823 | refs/heads/master | 2020-05-18T13:50:16.434623 | 2015-02-15T17:18:31 | 2015-02-15T17:18:31 | 30,834,235 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,321 | py | '''WP Frontman urlrules for blog '3', generated on 2011-03-30T13:41:55.887986'''
from django.conf.urls.defaults import *
from wpf.urls import urlpatterns as main_patterns
urlpatterns = patterns('wp_frontman.views',
url('^blog3/$', 'index', name='wpf_index'),
url('^blog3/page/(?P<page>[0-9]+)/$', 'index', na... | [
"ludo@qix.it"
] | ludo@qix.it |
d9976a8bcb435babd0395c3654f30d6689f3e83c | 20a583dd2d19c47ec75aaa1bd500ad10c039ab87 | /Interop/Get_UV.py | 4585d03ab826d4e517f3871c938915e72375f89d | [] | no_license | neilberard/Python_Projects | 4f008fde57bd64552daf91b0d24bb03a860fe0bf | f764057e997786b8df6ff1d5de26998e97a83f08 | refs/heads/master | 2021-06-01T17:07:00.674392 | 2020-12-16T07:49:38 | 2020-12-16T07:49:38 | 113,806,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | import maya.OpenMaya as OpenMaya
import pymel.core as pymel
node = pymel.PyNode('pPlane1')
fnMesh = node.getShape().__apimfn__()
points = OpenMaya.MPointArray()
fnMesh.getPoints(points)
OpenMaya.MPoint()
fnMesh.currentUVSetName()
util = OpenMaya.MScriptUtil()
util.createFromList([0.0, 0.0], 2)
uvPoint = util.asFl... | [
"neilberard@gmail.com"
] | neilberard@gmail.com |
9e5f3da408e6e30d3482347e10921a29e528cc56 | c77625eca982bac81ce97630e1e1273e022490ad | /week2-zebraPuzzle/alphaMetricalPuzzle/profiling.py | 2849aedbcd8127debb8a0255685f7552fb0c5c25 | [] | no_license | benzitohhh/cs212-style | 7b66a5b948f828b0ccece6c22ad49c3eed2d202b | 0cefe0fd374e2a3c84ecf15d1ac657392aacfcf1 | refs/heads/master | 2021-01-23T19:45:43.506797 | 2012-06-03T23:53:16 | 2012-06-03T23:53:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | """
To profile in python....
python -m cProfile <filename.py>
LAW OF DIMINISHING RETURNS
in all productive processes, adding more of one
factor of production, while holding all others
constant, will at some point yield lower
per-unit returns
In our programme, 63% of time is spent in
eval(), so we should focus ... | [
"immanuel_ben@yahoo.co.uk"
] | immanuel_ben@yahoo.co.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.