blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
519f08022094cf0b5db7f1cd495abafe6bd81ea9 | 27b17b44c0caa4ac157899715eb1f4d0bd6e3fae | /orders/migrations/0005_auto_20200102_0741.py | 8712e7bce51bff702c82b37b395c79fa7c6f2f66 | [] | no_license | alexsonphoenix/cs50w_project3_PizzaRestaurant | 6dbb1bb8d8948eea3d5dca69a63961bed8fd39b9 | 3c3b10cb5272836b2a58a97b3b704995ed64e9a9 | refs/heads/master | 2023-05-22T16:51:29.639260 | 2020-01-03T02:11:20 | 2020-01-03T02:11:20 | 229,177,485 | 0 | 0 | null | 2021-06-10T23:20:12 | 2019-12-20T02:47:04 | HTML | UTF-8 | Python | false | false | 1,690 | py | # Generated by Django 2.0.3 on 2020-01-02 07:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0004_auto_20191230_0234'),
]
operations = [
migrations.RenameField(
model_name='cart',
old_name='status',
... | [
"alexsonphoenix"
] | alexsonphoenix |
e8955562f25858d1d44d8c3e96d0052cd1c0a9a6 | 91d42246402e3bf7057df314dc7e329f0037d7a9 | /linepy/timeline.py | 4c6aef7087e01e2841b400b0d79cecaafcfa92f7 | [
"BSD-3-Clause"
] | permissive | ender996/selfbot-py | 60a5505302be3b811d4742f3273a368f6526f777 | 4d0e69dd9ee8527d07746d770eaceb222509f314 | refs/heads/master | 2023-06-02T00:52:38.789377 | 2021-06-21T02:57:08 | 2021-06-21T02:57:08 | 260,297,936 | 2 | 0 | MIT | 2020-04-30T19:16:55 | 2020-04-30T19:16:54 | null | UTF-8 | Python | false | false | 10,604 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from .channel import Channel
import json, time, base64
def loggedIn(func):
def checkLogin(*args, **kwargs):
if args[0].isLogin:
return func(*args, **kwargs)
else:
args[0].callback.default('You want to call the function, ... | [
"derek.smith72@gmail.com"
] | derek.smith72@gmail.com |
f5d9e062e4f48178fdc61c9160b67bb92238dbd1 | ee732739791fa31972e61cc3eb4d51fcb18c1ec1 | /api_pratice/musics/serializers.py | 699af90e10c2cc6e91bf80efb7626bd5f49075bc | [] | no_license | daniel2012600/Django_Learning | 46dfccd5a3c90ad422297fdf7b1a5de0217d1aaa | ab25b8cd8bedbf75bbdf1b67d9f13710f9f1142d | refs/heads/main | 2023-04-07T12:36:16.293909 | 2021-04-11T04:15:05 | 2021-04-11T04:15:05 | 354,464,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | from rest_framework import serializers
from musics.models import Music
class MusicSerializer(serializers.ModelSerializer):
class Meta:
model = Music
# fields = '__all__'
fields = ('id', 'song', 'singer', 'last_modify_date', 'created') | [
"daniel2012600@gmail.com"
] | daniel2012600@gmail.com |
8ae01ed09f2baaa04103e50c931257c68330a8e0 | 9a2a707ca4bbac2ac782ca1e83a08b0cae687f6b | /LearningSpace/FirstClassFunctions.py | c2cb6be1e4935217c2a61f9ac20265d353069d2f | [] | no_license | Duathdaert/100-days-of-code | d7c62aed580a1bf1171cca8924b4ca041b77654d | 4782d9a9354645076ae5bef128b640a328918232 | refs/heads/master | 2022-09-25T22:40:50.181081 | 2020-05-27T20:48:12 | 2020-05-27T20:48:12 | 266,616,597 | 0 | 0 | null | 2020-05-24T20:09:30 | 2020-05-24T20:09:30 | null | UTF-8 | Python | false | false | 164 | py | def enclosing():
x = 'closed over'
def local_func():
print(x)
return local_func()
# lf = FirstClassFunctions.enclosing
# lf()
# closed over
| [
"Peter_Askey@waters.com"
] | Peter_Askey@waters.com |
0691173b6fb052d34e4dc198ab0fd6ad668c0aa0 | 5eec81340cef7293d9194249e8dda728a197cc81 | /Activity_03.py | e817d59facec10f05a7f31a5e411f06ebe36ea43 | [] | no_license | darshan033/python-36 | 80ba5827a6ee5c5f805f5d6ff4e230309d9a45cf | 143d91e5e7ae1fec3232c9ad64f3ef84188501e8 | refs/heads/main | 2023-07-26T21:41:49.837287 | 2021-08-29T15:23:54 | 2021-08-29T15:23:54 | 400,701,427 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | string1 = input("Enter the first string :" )
string2 = input("Enter the second string :\n")
concatenated_string = string1 + string2
print(concatenated_string)
print(concatenated_string*5)
| [
"noreply@github.com"
] | darshan033.noreply@github.com |
0eb6f40d29617eeb150a93be10ba041ff6dde4c8 | dcd6f10dd26dd9cc198ac3b843c44155fbd4a1ed | /demo/boilerplate/apps.py | c437f40883956270ed0e113e89a89c81b2fa0db1 | [
"MIT"
] | permissive | Papagoat/Django-Sass-Demo | 9c02084cfdd2e5379b228f4430841320ac384aff | 409ea4ad769cd2e1f25c9ba4639906409d1534a0 | refs/heads/master | 2020-04-21T18:38:25.078004 | 2019-02-10T18:39:05 | 2019-02-10T18:39:05 | 169,777,552 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from django.apps import AppConfig
class BoilerplateConfig(AppConfig):
name = 'boilerplate'
| [
"terencelucasyap@gmail.com"
] | terencelucasyap@gmail.com |
e06d4fc57982adec80adeabb651d4c09d60b4bb0 | 0c703b1009e3f3bf7845a4c49f204387bbb75808 | /gatekeeper/SpeechRecognition.py | 2fc46b5abe58c1cadea229a1135a6c271e2ddf8b | [
"MIT"
] | permissive | git-commit/iot-gatekeeper | 9412531e55704795841baa0940f7a2101d4d994e | 67d1b720c25a5c27338791ca6ffe447f405075a2 | refs/heads/develop | 2022-12-11T20:58:16.243179 | 2017-01-18T10:38:18 | 2017-01-18T10:38:18 | 73,506,088 | 0 | 1 | MIT | 2022-12-07T23:39:35 | 2016-11-11T19:38:54 | Python | UTF-8 | Python | false | false | 4,009 | py | import json, requests
import privateconfig, logging
import base64
#Note: The way to get api key:
#Free: https://www.microsoft.com/cognitive-services/en-us/subscriptions?productId=/products/Bing.Speech.Preview
#Paid: https://portal.azure.com/#create/Microsoft.CognitiveServices/apitype/Bing.Speech/pricingtier/S0
tts_url... | [
"yuriy.arabskyy@gmail.com"
] | yuriy.arabskyy@gmail.com |
924c4eaa046d0dfd6b0029ae09ef891dc4796ef5 | 12f57783d651213a66967ab1591e9065c6f6384f | /CodeFights/arcade/Intro/level3-commonCharacterCount.py | 9b46d278b85c5cb0266874ea91346698288357bb | [] | no_license | codeAligned/codingChallenges | 212a779cbd8a466189b22d2d080cd595ef2fd52e | 7166249990b71ed4f564f0252c53ba8a3872186c | refs/heads/master | 2020-05-17T11:43:03.958267 | 2018-07-11T02:48:05 | 2018-07-11T02:48:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from collections import Counter
def commonCharacterCount(s1, s2):
s1Count, s2Count = Counter(s1), Counter(s2)
if len(s1) >= len(s2):
difference = s1Count - s2Count
s1Count.subtract(difference)
return sum(s1Count.values())
else:
difference = s2Count - s1Count
s2Coun... | [
"root@MBPR-jmartin-SF.home"
] | root@MBPR-jmartin-SF.home |
a1debc9689b292651733b263aa8a17b531e8e4d5 | 0cb7545be73ab31dfd828d69a6af2dc9f90066d7 | /3days/nn-mnist.py | f022b241f84633e97c18adaa25d2fd8fd50afa6c | [] | no_license | dllen/tf-intro | 171059a0a1f62de00fd891bc3ba8a17aab86fdd6 | cf2ce3f1e440bf15c1a689cccbef2dcdc0becbbd | refs/heads/master | 2021-07-16T04:03:54.001781 | 2017-10-20T11:02:06 | 2017-10-20T11:02:06 | 107,366,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,854 | py | from tensorflow.examples.tutorials.mnist import input_data
import tensorflow as tf
import matplotlib.pyplot as plt
import random
mnist = input_data.read_data_sets("..\MNIST_data", one_hot=True)
# input place holders
X = tf.placeholder(tf.float32, [None, 784])
Y = tf.placeholder(tf.float32, [None, 10])
# weights & bi... | [
"shichaopeng@jd.com"
] | shichaopeng@jd.com |
52af5ecc9943cd6cc22d832ea20af76d24dca139 | 56f53edfc2a599e08da398e2e82795bb0214755a | /gencards.py | a3a60e2125e0654b14c1315b1a43cebe447a5406 | [
"MIT"
] | permissive | harlanhaskins/Luhn | f9532aabdb43e9024cd4929aeca598931daa7180 | 6fc3523d3961ca75ced1c7d5e8d718af4c9d6289 | refs/heads/master | 2021-01-17T14:46:08.478148 | 2015-10-15T21:36:59 | 2015-10-15T21:37:02 | 27,979,634 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | import random
for i in range(1000000):
print(random.randint(4000000000000000, 4999999999999999))
| [
"harlan@harlanhaskins.com"
] | harlan@harlanhaskins.com |
c4a596e688b76660a5ee1690c895b010d09b1472 | a2297c232ea2ce73e1f882930a33b49e5e491167 | /*4Sum.py | aead84b35f29c44c8ce8e4e1e8b8fcedd5ba295d | [] | no_license | JinshanJia/leetcode-python | 414f679a90a79f4665332b02c3228d08199347bb | 946ab122d658d2c1ea0097d3e122f557c622edfa | refs/heads/master | 2021-01-17T19:26:10.176287 | 2016-10-23T18:04:47 | 2016-10-23T18:04:47 | 71,719,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,961 | py | __author__ = 'Jia'
'''
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique
quadruplets in the array which gives the sum of target.
Note:
Elements in a quadruplet (a,b,c,d) must be in non-descending order. (ie, a <= b <= c <= d)
The solution se... | [
"jiajinshan2009@gmail.com"
] | jiajinshan2009@gmail.com |
91350932556ecaff00bee5d3d68c24b56773e58a | 2f12b8d0a6271fede39b9901866d085546533ed5 | /scrapers/queens.py | 28fa6ebaf36b338829d8043db073ae6d8d626f0b | [] | no_license | Ekimerton/classio-api | e910bef634e07761b249d5e36770e07f1b9a3918 | 2a044d7f30b743f90300c2dc1fb435b162046e82 | refs/heads/master | 2023-06-25T11:18:28.979651 | 2021-07-29T00:49:53 | 2021-07-29T00:49:53 | 372,102,250 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,908 | py | import os
from datetime import datetime
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from webdriver_manager.chrome import ChromeDriverManager
from models import Course, ... | [
"ekim0252@gmail.com"
] | ekim0252@gmail.com |
979135269e9506b92bea3c8b12f08e76fe882377 | 2f2baa16b01ac1ad8f078e29543ae4ed8ebb2b88 | /data_type.py | dd848c2f4b9c63937ab27fadb25be6ad63ebea89 | [] | no_license | vic-ux/py_work | ab81f08f24e69b51b30f1f194b93a7e40bae6554 | e042165899e8164cb347414969916bc737a42f93 | refs/heads/master | 2023-04-07T04:23:15.095601 | 2021-04-18T16:08:47 | 2021-04-18T16:08:47 | 359,008,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | age = '23'
message = "Happy " + age + "rd Birthday!"
print(message)
import this
| [
"vomodewu@gmail.com"
] | vomodewu@gmail.com |
a82c76f942927a67392aa0710e1f1969930ee6cf | bbf025a5f8596e5513bd723dc78aa36c46e2c51b | /dfs + tree/graph.py | 66496a7005f463b2e1716261d4179eac0bb238f2 | [] | no_license | AlanFermat/leetcode | 6209bb5cf2d1b19e3fe7b619e1230f75bb0152ab | cacba4abaca9c4bad8e8d12526336115067dc6a0 | refs/heads/master | 2021-07-11T04:00:00.594820 | 2020-06-22T21:31:02 | 2020-06-22T21:31:02 | 142,341,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 994 | py | class Graph:
def __init__(self,mapping={}):
'''
Constructs a new empty graph.
'''
self.graph = mapping
def nodes(self):
'''
Returns a list of all nodes in the graph.
'''
return self.graph.keys()
def get_neighbors(self, node):
... | [
"zy19@rice.edu"
] | zy19@rice.edu |
f2bfc11338590eec04ff10e1911a56f28c3461f0 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day06/re_module.py | edd0ec1139439c775c119d49c71c7b07ae65d1f5 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 612 | py | #!/usr/bin/env python
# -*-coding:utf8-*-
# __author__ = "willian"
import re
# 从头匹配,很少使用
re.match("\d+", "341221")
# 匹配一次
re.search("\d+", "341221")
# 匹配多次
re.findall("\d+", "341221")
# 以逗号分割
re.split(",", "341,221")
# 匹配到进行替换,默认是替代所有,count指定次数.
re.sub("\d{4}", "1995", "1399,2017", count=1)
# re.I (忽略大小写)
# print(... | [
"284607860@qq.com"
] | 284607860@qq.com |
997a28a368bfd423b188e23f7ae8ab15a4a71e8f | cb38b170cc716d812822c8fdf64da99e154e7e77 | /Python Lab/Exp 5/3.py | 13596ece44d68d3b81a7eb7ee726ca0b110a7bfe | [] | no_license | ayush-sah/Python | 9227b2819083d0c1fce4fa60a62b167c74a14172 | e17b43d2f4d53f4490630fc13a7defaafcf9ea28 | refs/heads/master | 2021-07-08T21:29:35.031374 | 2021-04-21T07:59:17 | 2021-04-21T07:59:17 | 228,924,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # To Implement a program with same method name and multiple arguments
class add:
def calc(num1, num2):
return num1 + num2
class concat(add):
def calc(str1, str2):
if type(str1) is int:
return add.calc(str1, str2)
else:
return str1 + str2
print(... | [
"noreply@github.com"
] | ayush-sah.noreply@github.com |
276f494e824843392c3efb25c438e23b280c6dbd | 0754e2e7aa1ffb90b54d563ce5a9317e41cfebf9 | /ml/m03_xor.py | 2f5fac7cee0e1b1116a7a60ebc02f9efee5e76ae | [] | no_license | ChaeMyungSeock/Study | 62dcf4b13696b1f483c816af576ea8883c57e531 | 6f726a6ecb43387e4a3b9d068a9c491b115c74c0 | refs/heads/master | 2023-01-24T20:59:52.053394 | 2020-12-07T14:54:34 | 2020-12-07T14:54:34 | 263,255,793 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from sklearn.svm import LinearSVC
from sklearn.metrics import accuracy_score
from sklearn import svm
# 1. 데이터
x_data = [[0, 0], [1,0], [0,1], [1,1]]
y_data = [0, 1, 1, 0]
# 2. 모델
# 모델은 한줄.. 파라미터값으로 늘어남
model = LinearSVC()
# 3. 훈련
model.fit(x_data, y_data)
# 4. 평가 예측
x_test = [[0,0], [1,0], [0,1], [1,1... | [
"noreply@github.com"
] | ChaeMyungSeock.noreply@github.com |
1c14ebd975783fd80e99878abf489860ea98e91d | c6c3648880485656bb7c349f330378d8fb224192 | /P023.py | 8a3cc9c50e5a843f8918ce5251331b29a1ee841b | [] | no_license | erdos2n/ProjectEuler | 9416fa6ba2f83f2275f5ebfcbd41f5d83d23b19e | a85f6a102b98bae4e227aac55f4d77f92d18a5bc | refs/heads/master | 2021-09-21T01:47:10.601050 | 2018-08-18T18:50:28 | 2018-08-18T18:50:28 | 124,658,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,969 | py | """
A perfect number is a number for which the sum of its proper divisors is exactly equal to the number.
For example, the sum of the proper divisors of 28 would be 1 + 2 + 4 + 7 + 14 = 28, which means that 28 is a perfect number.
A number n is called deficient if the sum of its proper divisors is less than n and it ... | [
"rafacarrasco07@gmail.com"
] | rafacarrasco07@gmail.com |
353fbe7250bf1beac4646624a021763b5c94b92a | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Projects/Learn/PyCharm/Algorithmic Toolbox/Algorithmic Warm Up/Last Digit of the Sum of Fibonacci Numbers/last_digit_of_the_sum_of_fibonacci_numbers_unit_tests.py | bb3384e3158b2445f6adca669ed4c4fac09f64be | [
"LicenseRef-scancode-other-permissive"
] | permissive | NateWeiler/Resources | 213d18ba86f7cc9d845741b8571b9e2c2c6be916 | bd4a8a82a3e83a381c97d19e5df42cbababfc66c | refs/heads/master | 2023-09-03T17:50:31.937137 | 2023-08-28T23:50:57 | 2023-08-28T23:50:57 | 267,368,545 | 2 | 1 | null | 2022-09-08T15:20:18 | 2020-05-27T16:18:17 | null | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a6a99b9bfea384a8802695a7f6eafeab6ae6e1cd091ebf62c01e6e6c0ecac93e
size 662
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
64af56b098dae04854baf9a815e82476fa55b8f7 | 029af1d18d80d285866dbd07e96395377581f7ae | /ivizier/ivizier/urls.py | 88a4bda3958eba8924d80c65d4f08a3b642fa588 | [] | no_license | MihaiBuica/iVizier-Project | 83acc3d4e500beee679feea6585580917b7fcc8f | bfa171aa55593c7da29e42ffcbb3d80be9ae6116 | refs/heads/master | 2022-07-30T19:16:30.884193 | 2020-05-20T16:49:56 | 2020-05-20T16:49:56 | 254,064,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | """ivizier URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/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')
Class-based... | [
"mihaibuica38@gmail.com"
] | mihaibuica38@gmail.com |
719e65e5b37c1e0e4ccf0d70594462115a66a15d | 72141a527aeca59b2afb68d84f027ecb475a0142 | /eksamenOving/proveEksamen.py | 159cd812aa342ae1424e20ab951273555d68c71d | [] | no_license | borgebj/IN1000-Python | 4d4a102032b6d15887d33a889dd029fea500ea1e | ffa686d11116d315dca7962e7a6c3e3767e0d720 | refs/heads/master | 2021-01-04T04:45:00.223550 | 2020-12-09T20:06:09 | 2020-12-09T20:06:09 | 240,392,581 | 0 | 0 | null | 2020-12-09T20:06:10 | 2020-02-14T00:00:45 | Python | UTF-8 | Python | false | false | 6,385 | py | print("------------------------------------------------------------------------------")
#oppg 1
tall = (3+1) * 2
tall = tall - 5
print("oppg 1 - tall:", tall)
print("------------------------------------------------------------------------------")
tall = 7
tekst = "a"
if tall>10:
tekst = tekst + "b"
elif tall<5:
... | [
"57920815+borgebj@users.noreply.github.com"
] | 57920815+borgebj@users.noreply.github.com |
6c46999ddcfe4f6028d29dcdd2d2bb61c6a59501 | 650461f8804d7bd3c3f76d53a4f0b203b6f2788e | /PPool/__init__.py | 4e1a8022187ec02b92b5b21a70840fca3ef4427d | [
"Apache-2.0"
] | permissive | oeg-upm/PPool | 839953798f27249d3c9b492adc313afd9f2160c4 | 1c5557c37d86b5c22179b2204d68e7256d2a5c08 | refs/heads/master | 2020-03-25T02:56:28.305760 | 2018-09-26T07:04:28 | 2018-09-26T07:04:28 | 143,314,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15 | py | name = "PPool"
| [
"ahmad88me@gmail.com"
] | ahmad88me@gmail.com |
9d0fdf93f542ddba324d792686a717531390d744 | 781fe896b6b326d7b239ba4671d9fe8751b2a886 | /Project_unsorted/Project/test.py | 62a1e17113173cb967d0904d9d80d86d28c0dc35 | [] | no_license | Sra1chandra/DIP | ee123c1ac1baa3dad2f876e0ff5d369433e98d35 | 383d3477f8191ffb3d22adbf701b6ae453b92570 | refs/heads/master | 2021-08-29T01:27:47.561994 | 2017-12-13T08:51:52 | 2017-12-13T08:51:52 | 114,097,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | import cv2
import numpy as np
import sys
from matplotlib import pyplot as plt
filename = "./samples/image1.jpg"
image = cv2.imread(filename)
image_hsv = cv2.cvtColor(image,cv2.COLOR_BGR2LUV)
cv2.imshow('img',image);
dst = image;
#decl (input,sp,sr,out,max_level)s
#sp - spatial window radius , sr = color windo... | [
"Sra1chandra@github.com"
] | Sra1chandra@github.com |
7c393120ee51e757a0b0c2bc246dc2a4c934dc23 | 08706df7e3712ebec7afd2d2f8f964ae9d485386 | /server/patients/migrations/0016_attribute_resource.py | 3c95316f5e9d660ee4b386204d0e49c148dcc89e | [] | no_license | nickdotreid/take-on-transplant | 9129c9ab7c1206291fc1ca616c18c44cd7519587 | bf901b987121093787383f3d3726f87dddf4d5fd | refs/heads/master | 2023-08-27T06:14:54.521168 | 2021-11-02T21:41:04 | 2021-11-02T21:41:04 | 298,403,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Generated by Django 3.1.1 on 2020-11-24 02:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('resources', '0006_auto_20201120_1722'),
('patients', '0015_issue_posttransplantissue_pretransplantissue'),
]
... | [
"nickreid@nickreid.com"
] | nickreid@nickreid.com |
05feea5e67d117d41e529187d1990f74c15afed1 | 14eb90d0b38772cfef35fe167efeb668515cbe9c | /Tests.py | 2061128cd1f66808046003549606d71ffe40fda9 | [] | no_license | avestuk/udacity-course | fd2f0daad4822f4d85058b73e9765526b1b684c4 | 076cc5a513507c6cbf5098e06318acb80ce1dff0 | refs/heads/master | 2021-01-20T04:42:21.430507 | 2017-05-16T19:19:10 | 2017-05-16T19:19:10 | 89,717,727 | 0 | 0 | null | 2017-05-16T19:19:11 | 2017-04-28T15:10:30 | Python | UTF-8 | Python | false | false | 1,377 | py | # A list is symmetric if the first row is the same as the first column,
# the second row is the same as the second column and so on. Write a
# procedure, symmetric, which takes a list as input, and returns the
# boolean True if the list is symmetric and False if it is not.
def symmetric(grid):
#Need to check the fi... | [
"avestuk@gmail.com"
] | avestuk@gmail.com |
8925a7612fb319aa6542ba12246fe2662fc4ef14 | d22e88db71d7c41764a4573a33fe52024d98216a | /basic command files/command_options.py | 60aad582c27282efb72e6963710bdfd178db075f | [
"MIT"
] | permissive | MWeber313/python-logger-cli | 115a12ed06c094a0d5cdccb4692d1276a169aeb0 | d972dae3eeb7552be0f12164804de0595bcd4c28 | refs/heads/main | 2023-01-03T21:37:00.254620 | 2020-10-28T06:38:47 | 2020-10-28T06:38:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | # This file will be base commands for public users
print(
'''
-Write: Write a new public log
-Read: Read a public log
-Edit: Edit a public log
-Delete: Delete a public log
-Help: More information
'''
) | [
"mack.webb37@gmail.com"
] | mack.webb37@gmail.com |
ed3e5f5a1a5fb3d8133fc50f65171f11860f8d91 | 14b14a8fd77387d67b73cebe8cbefb1657e909cc | /python_scripts/tally_csv_ballots.py | a0454219bd5d3bfbf4726683fc1a3b7392d54aae | [] | no_license | pkeane/stvtools | 1cbb30b6e7823842bd90e64aed05307a2484be3a | 741adcd460dfc8909a2bced5389c963d5a45aac0 | refs/heads/master | 2021-01-25T05:15:34.936295 | 2012-04-18T02:11:32 | 2012-04-18T02:11:32 | 600,134 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,901 | py | import csv
import json
import sys
import stvtools
from operator import itemgetter, attrgetter
from random import randint
"""
converts from cvs ballots as columns to ballots as json
"""
CONFIG = {}
CONFIG['initial_ballot_value'] = 100
CONFIG['minimum_full_professors'] = 0
def do_tally(ballot_data):
row_ballots = {} ... | [
"pkeane@mail.utexas.edu"
] | pkeane@mail.utexas.edu |
0598cc55bb3cc9cd48235f6dee023526aede8599 | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /airflow/migrations/versions/0075_2_0_0_add_description_field_to_connection.py | 4c3f5835dcbfdf9b443396cbcceb764f421fbf89 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 2,008 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | ishiis.noreply@github.com |
f4959530fd1e9ac59ea85fce71f6bf2009276c3a | 47569e02708e101b23fdad3f066939a2bc2894ce | /videodetect.py | e35edf42e4a237524ca7724e02405a3e23d84148 | [] | no_license | jyz5257/Moving-Vehicle-Classification-HOG | e3e011eec981dace7f8706cf08838384d3a6d69a | 34833b85d0d350e4dc5b3c85eb29060be858056b | refs/heads/master | 2021-04-24T21:13:26.558661 | 2018-01-24T04:05:37 | 2018-01-24T04:05:37 | 116,738,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,394 | py | import cv2
import numpy as np
from skimage import color
from skimage.feature import hog
from sklearn.externals import joblib
import imutils
import urllib
#BG Subtraction, convert to grayscale, and threshold image
def bgsubtract(bg,car):
imgAbsdiff = cv2.absdiff(bg, car)
imgGray = cv2.cvtColor(imgAbs... | [
"jyz5257@bu.edu"
] | jyz5257@bu.edu |
c8f3a1b7d233400574fead87d6325c975218ca91 | 6cde1148cc1ba6c1d704f64603a292440c73caac | /uploadfile_demo/front/forms.py | 00274f0e1b4e306ad5c543edc2885058b1b7ef00 | [] | no_license | huanshenyi/django_text | 09f33be02f0f9da33320af9b82e947d4ebed86ee | 536e2eb329faf57edfb30f2299f4ba64592e6b78 | refs/heads/master | 2020-04-24T14:44:10.707414 | 2019-03-15T06:08:57 | 2019-03-15T06:08:57 | 172,033,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from django import forms
from .models import Article
class ArticleForm(forms.ModelForm):
class Meta:
model = Article
fields = "__all__"
error_messages = {
'thumbnail': {
'invalid_image': '違う'
}
} | [
"noreply@github.com"
] | huanshenyi.noreply@github.com |
45b2ac47de0843f838c204ec567060d9ff0e417f | 76fbd18e4b7001bb9d923e814d5d3d020f746e2c | /test_strategy_bubble.py | 08cf43aae520277068232febd512a6297c858bc5 | [] | no_license | nanka-tukuru/pybubbly | 1f2e3b695c19d0376123b537d2d514a3d4df2c96 | 71f46d141570e2d8cecc57eba4617022cd7aff24 | refs/heads/main | 2023-06-11T18:06:55.041665 | 2021-07-06T03:50:33 | 2021-07-06T03:50:33 | 376,425,702 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import unittest
from strategy_bubble import *
class TestBubbleSort(unittest.TestCase):
"""BubbleSortテスト
"""
def test_case1(self):
srclist = [10,9,8,7,6,5,4,3,2,1,0]
anslist = [0,1,2,3,4,5,6,7,8,9,10]
context = SortingContext(BubbleSort())
context.sort(srclist)
self.... | [
"nankatukuru@gmail.com"
] | nankatukuru@gmail.com |
611c1d6a034fe6d7889e0e761e2448f55d236f54 | 5c547466bd3b8cb49cdabbf35b2d1cbb6923ccbd | /scripts/actions_ec2.py | 5ca6b4d06c55aa090c4a2ea86d89f0649eb7ae7b | [
"MIT"
] | permissive | skoch0013/aws_scripts | 8a835a500d8972482d52c4f1c4fdaed0a8c932bc | bb0f3246477648fbf0c068f2100a5006203c9716 | refs/heads/master | 2021-01-20T21:20:35.415974 | 2017-11-03T15:29:23 | 2017-11-03T15:29:23 | 101,765,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,110 | py | import boto3
import time
from botocore.exceptions import ClientError
ec2 = boto3.resource('ec2')
def create_volume(availability_zone, size, snapshot_id, tag_name, tag_value):
volume_tag = {"Key": tag_name, "Value": tag_value}
try:
ebs = ec2.create_volume(
AvailabilityZone=availability_zon... | [
"oksana_ivasenko@epam.com"
] | oksana_ivasenko@epam.com |
f28960625204e475aa39bacb5409466a87f416c2 | a8dbe1a94d039053a0a8288011cc354e4b554280 | /py/FallNode.py | e2d0dfb35be3c1f87c53e2d49f41d69522191f05 | [] | no_license | peymathi/csci437-fsm-game | ab44b76c59a4029c3f7cb74fe99bd69f2b7ccf3d | a20fc34978b1c157e90aed2768947dacb6030d0a | refs/heads/master | 2022-12-11T10:12:35.175746 | 2020-09-12T17:04:42 | 2020-09-12T17:04:42 | 293,584,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 479 | py | from CommonNode import CommonNode
# Temporary node that makes the player take damage first before going on to the nextNode
class FallNode (CommonNode):
def __init__(self, player, message, fallDamage, nextNode):
super().__init__(player, message)
self._next_node = nextNode
self._fall_damage ... | [
"pmathis99@comcast.net"
] | pmathis99@comcast.net |
d0c84309a72d66f88cd7cb9b45631e0b3a698382 | cc76054d3ff9b87400169203195ec060ae8c50cc | /salesanalytics/apps.py | 4e277d7ab61cf8bc3e43b9c26e2c32d375c8fa38 | [] | no_license | desertcamel/yamaki | c37436ecfdf1f24082ee3147d37beed6a75401d6 | b0a0ca60ade18c147785bc8998a9fec9653251f4 | refs/heads/master | 2021-09-03T15:56:37.712267 | 2018-01-10T07:58:35 | 2018-01-10T07:58:35 | 116,133,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | from django.apps import AppConfig
class SalesanalyticsConfig(AppConfig):
name = 'salesanalytics'
| [
"sandeep@biznessanalytics.com"
] | sandeep@biznessanalytics.com |
6211c7383b32ce57d7debcf4e69de5acc63075ef | 1aa2ac6f0631b6e7e123ad8797f52ab90247aac5 | /utils/reg.py | 09b051826072ab98464dd0826acd4b819ec35157 | [
"Apache-2.0"
] | permissive | ap-conv/ap-net | 4ae79477682650bcca9cabd8326562b4b3136444 | 98a84e45cd6aa90305c78ecab35bdd682f2fb05f | refs/heads/main | 2023-02-08T12:03:32.837092 | 2020-12-29T12:26:35 | 2020-12-29T12:26:35 | 311,905,333 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | import torch
def regularize(*features):
if len(features) == 2:
return regularize_2(*features)
elif len(features) == 3:
feature_1, feature_2, feature_3 = features
return regularize_2(feature_1, feature_2) + regularize_2(feature_1, feature_3) + regularize_2(feature_2, feature_3)
else... | [
"ap-conv@outlook.com"
] | ap-conv@outlook.com |
4ca15c8ceac9905aa994585733bf43914d8b5cf3 | 9c397d709e80ffa8ac06163d96078915106b0a08 | /arith_arranger.py | d70d335105ae35076662d72f4e474c2732bdc11f | [] | no_license | ZichKoding/Arithmetic_Formatter | 33dd478abdc72af142a68e073456df80e3427d6a | e91bd39b444b342368b8707d8537cfcd662a479c | refs/heads/main | 2023-05-13T21:59:14.509629 | 2021-06-07T04:43:41 | 2021-06-07T04:43:41 | 334,397,109 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 596 | py | import os, sys
import random
from kivy.resources import resource_add_path, resource_find
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.properties import ObjectProperty
from kivy.lang import Builder
from kivy.core.window import Window
from kivy.core.audio import SoundLoader
from kivy.uix.screenma... | [
"chriszichkocoding@gmail.com"
] | chriszichkocoding@gmail.com |
fa2a624f48a208efd6ce0860be4515dea3a2561b | f515fe4b039590f9ccc034acb27a09c672a1434d | /PyBank/main.py | 032f79468e4dd70b2cb486814e61ca5c8383f2f3 | [] | no_license | JAK-UCF/python-challenge | 14b4be6696bd50b79005e051863958aa16f2ed8a | 0b78d46c47ffd73a3e68422a9ff1ef2f809dd85c | refs/heads/master | 2020-06-06T10:53:49.001486 | 2019-06-22T07:38:47 | 2019-06-22T07:38:47 | 192,720,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,069 | py | # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# #
# WHITEBOARDING FOR UNIT 3 HOMEWORK - PyBank #
# ... | [
"jenklimek@msn.com"
] | jenklimek@msn.com |
f3ef8d9e54c5ba4847709554f1cdd71dcc8ad89a | bb2c7bfc0103b1b187a244a4becc26fe7c71e396 | /main_preprocess.py | 107ab5e940f54159021ea5b530d5847ac76789a6 | [] | no_license | kaoutarElamiry12/Seg-Net | 6cd01312754234b437f3eb7d728eb70f9fe65b35 | 5910c546c1314b8455d9507d32fc0ea30377fed5 | refs/heads/master | 2022-02-09T12:19:13.281092 | 2019-06-27T20:39:07 | 2019-06-27T20:39:07 | 192,698,436 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | from proc import preprocess
import tensorflow as tf
import h5py
import os
import multiprocessing as mp
preproc = {
'indir': './img',
'stride': 2,
'patch_size': 80, # should be multiple of 8
'mode': 'tif',
'shuffle': True,
'traintest_split_rate': 0.9
}
preprocess(**preproc)
| [
"noreply@github.com"
] | kaoutarElamiry12.noreply@github.com |
c997ae3f2e974662ca89bdc82bccbd2658d4404b | 73f7cc0e71bfd38d3bfe97367324f1e7a5d8b451 | /engine_code/gapi/modules/proxy/cloud/parse.py | 0e1d8a64f87ac9893d254692c67c63c5b528386c | [] | no_license | cash2one/my-test | ccc0ae860f936262a601c1b579d3c85196b562f9 | 8bd23f5963f4dc7398b7670e28768a3533bd5d14 | refs/heads/master | 2021-01-18T03:20:30.889045 | 2017-01-19T02:52:02 | 2017-01-19T02:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,357 | py | #!/usr/bin/python
# -*- coding=utf-8 -*-
from xml.etree.ElementTree import ElementTree,Element
def read_xml(in_path):
'''读取并解析xml文件
in_path: xml路径
return: ElementTree'''
tree = ElementTree()
tree.parse(in_path)
print tree.parse(in_path)
return tree
def write_xml(tree, out_path):
... | [
"zhizhi1908@yeahh.net"
] | zhizhi1908@yeahh.net |
ef7aee74756905a6c511dbccd07cd08f38ddd2b3 | 8b9bc88ce6138cb2d008d9766964cadb2878b7d2 | /pl/test/transaction_test.py | cbd86ffdbfbcc9b78197abcecc22ed700b4da9cc | [] | no_license | tvaught/experimental | e499ebd6e9227c9cd4536c9f2c88b73c00e73eb0 | 7f86676ce0643375996da7a6f3bcbf8b35feb8b1 | refs/heads/master | 2021-01-13T01:36:50.431672 | 2015-07-27T20:50:48 | 2015-07-27T20:50:48 | 266,525 | 16 | 7 | null | 2013-03-19T16:30:51 | 2009-08-01T16:11:55 | Python | UTF-8 | Python | false | false | 366 | py | #!python
# Author: Travis N. Vaught
# Copyright (c)2013, Vaught Management, LLC
# License: BSD
# Major package imports
import pandas
import numpy as np
# Local library imports
import transaction
# Load from test file
f = open('transactions2012.csv', 'ra')
trns = pandas.read_csv(f)
tlist = []
for i in range(len(... | [
"travis@vaught.net"
] | travis@vaught.net |
1705c7af71891bc2ac5ec06ee1e4c4eb356f9e68 | ec26ddcda8c99e6cb416d5eeb3dc1c59759ba397 | /variables.py | 9d79285d30ababa52e8724ed0c46f1a8b977f95a | [] | no_license | AdinaFakih/python | 6706d3e2b9ad26c4ed5050678eb3df3169f3523f | 1d63e047d1b12b2fa01fd0c3f49889b680447b94 | refs/heads/master | 2020-05-02T23:58:49.198308 | 2019-03-28T23:12:50 | 2019-03-28T23:12:50 | 178,295,676 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | # a = 10
# print (a + a)
# print(type(a))
my_income = 100
tax_rate = 0.1
my_taxes = my_income * tax_rate
print(my_taxes) | [
"noreply@github.com"
] | AdinaFakih.noreply@github.com |
5e9c4cf93d6fe14c51c0dbe8d9f1021d055afeea | 340a75cda3ef70c02917ca1975305356699e0aa4 | /benchmarks/src/L1/example_task/example_task.py | ffa02657e114907cda309042b9eebe3c37749bf7 | [] | no_license | harvard-edge/TinyMLPerf | b31a55ffd0670fffdc520769975ae9cc44edb85b | 15f2e0e337ba90ce43f5dd4f2024047fe52fbe62 | refs/heads/master | 2022-02-22T14:59:24.338449 | 2019-10-31T19:19:45 | 2019-10-31T19:19:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | import sys
import os
import re
import argparse
from task import Task
filepath = os.path.dirname(os.path.abspath(__file__))
template_path = filepath + "/" + "template.c"
class ExampleTask(Task):
def __init__(self):
self.parser = argparse.ArgumentParser()
self.parser.add_argument("--param1", defaul... | [
"max@dhcp-10-250-27-41.harvard.edu"
] | max@dhcp-10-250-27-41.harvard.edu |
9e6db984fd95838c610d8b6672ef685602129c1c | b60555fc02c06c7d15dff96083e2a89addd0fbc6 | /scripts/balance_data.py | f5e6a249497661ba1e85476e2d41d6bc74f2a26e | [
"MIT"
] | permissive | Antoine-BL/EuroTruck-ai.py | c2fae85d9d5566799c698deeca82a01e393acd71 | c68ca76063c14b1b8b91d338c8cead9f411521ca | refs/heads/master | 2023-04-09T15:42:48.390049 | 2020-01-18T20:50:59 | 2020-01-18T20:50:59 | 167,547,749 | 2 | 0 | MIT | 2023-03-24T23:38:34 | 2019-01-25T12:57:58 | Python | UTF-8 | Python | false | false | 2,592 | py | import os
from heapq import nsmallest
import random
import numpy as np
PCT_TEST = 0.2
SAMPLES_PER_FILE = 100
def main():
balance_data()
def balance_data():
path = 'D:\Documents\School work\Cegep\Session 6\EuroTruck-ai.py\data-png'
dataset_size =
labels = np.load(path)
for i in range(0, len(la... | [
"antoine.brassard@gmail.com"
] | antoine.brassard@gmail.com |
bfcfe9c39e88787a47af7b24c492c7cb2ba75116 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03150/s056018673.py | ba3699fc1ecf9d7f7a828e88f30db87b5e18b4da | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | S = input()
ans = "NO"
for i in range(len(S)):
for j in range(len(S)):
if S[0:i] + S[i+j:len(S)] == "keyence":
print("YES")
exit()
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f4c1a5faf28472dabc9a1ec3f62b04cc617d762a | f3a341d7ee0b0e1fc05dfd3863d0b7203130517e | /FinalProject/urls.py | 15396ff3b724197ea69a30ffa39328026bc2fac9 | [] | no_license | nandaryanizar/FinalProjectNLP | 248152b01dfb0a1aa6c50e357ebbe4f8a3dbe085 | 337d5b8a9a760049fa65cc29392f07d298236adb | refs/heads/master | 2020-03-22T05:35:48.088562 | 2018-07-07T09:26:03 | 2018-07-07T09:26:03 | 139,577,267 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | """FinalProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/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')
Class-... | [
"anandar.ryanizar@gmail.com"
] | anandar.ryanizar@gmail.com |
3e90c7f5b279e7d86b365e1a1faeb32f2420825d | 0529196c4d0f8ac25afa8d657413d4fc1e6dd241 | /runnie0427/02965/2965.py2.py | fead6e9c86c1bc1e100db0a5a2029668e08104b8 | [] | no_license | riyuna/boj | af9e1054737816ec64cbef5df4927c749808d04e | 06420dd38d4ac8e7faa9e26172b30c9a3d4e7f91 | refs/heads/master | 2023-03-17T17:47:37.198570 | 2021-03-09T06:11:41 | 2021-03-09T06:11:41 | 345,656,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | <!DOCTYPE html>
<html lang="ko">
<head>
<title>Baekjoon Online Judge</title><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta charset="utf-8"><meta name="author" content="스타트링크 (Startlink)"><meta name="keywords" content="ACM-ICPC, ICPC, 프로그래밍, 온라인 저지, 정보올림피아드, 코딩, 알고리즘, 대회, 올림피아드, 자료구조"><meta... | [
"riyuna0427@gmail.com"
] | riyuna0427@gmail.com |
7af3e3bd9757adddbd077ea4ae627c31b0e60f98 | 64c2a62bc54ca02b254f221366ac3c5d350f92fd | /question_information.py | 02a808c1a29d4a60053b7a0946908320fd3ee9c0 | [] | no_license | zhoulin845522/Wenjuanxing | 9a68d987ad92c3c0d51c87c163a785c008b8a329 | afa93363ac4ba526e56029486705dab7b2830302 | refs/heads/master | 2020-09-09T11:45:10.931631 | 2019-11-13T12:03:10 | 2019-11-13T12:03:10 | 221,438,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,745 | py | question_url = 'https://www.wjx.cn/jq/48787292.aspx'
question_coockie = 'UM_distinctid=16e1aff3de1fd-0bece1616bde0c-b363e65-144000-16e1aff3de35e3; CNZZDATA4478442=cnzz_eid%3D1310099333-1572406869-https%253A%252F%252Fsp0.baidu.com%252F%26ntime%3D1573269174; .ASPXANONYMOUS=dtqxPW_F1QEkAAAAZmE5N2UwNWUtNGJlNi00OGY2LTgxNjY... | [
"424466955@qq.com"
] | 424466955@qq.com |
500cf5bd3c035e6fe49e994d82fdb317f3ffc6de | 21df757f97a2ae789cf17434327e2dea21fe88ce | /V.0.1/tasktrader02/tasktrader/migrations/0013_auto_20171203_0305.py | 02fcc9ca40343218bf8247113e00efbe0e10b714 | [
"MIT"
] | permissive | ayser259/tasktrader | 627e2c06942931081e98408b66540b299eaebddb | 0292b3987474f8744fa12955542159789a34f9e7 | refs/heads/master | 2021-05-07T22:19:40.915809 | 2017-12-08T03:43:57 | 2017-12-08T03:43:57 | 109,198,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,562 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-03 03:05
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 = [
('tasktrader', '0012_auto... | [
"ayserchoudhury@gmail.com"
] | ayserchoudhury@gmail.com |
41d7cac52e8e3fa0ef0cd5e9b1399d0d00bd6d5a | 33402f7bc188cc4bf1502d3b0527b0816f606aae | /isValidParentheses.py | e46bc4baa5c6d7962954c28c1ffe3b59907cca7d | [] | no_license | Narcissus7/Lintcode | 6ecf03b49d9eb995565f6ee3f75b99a10695791b | a70985e28f8f93f4c0a6340d682e91fc6e213e53 | refs/heads/master | 2021-10-24T01:14:11.443922 | 2019-03-21T07:11:30 | 2019-03-21T07:11:30 | 116,116,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | import time
def isValidParentheses(s):
my_key = {'(': ')', '[': ']', '{': '}'}
s_list = list(s)
# print(s_list)
stack = []
for item in s_list:
if item == '(' or item == '[' or item == '{':
stack.append(item)
elif stack:
# print(item)
if my_key[stac... | [
"18813104077@163.com"
] | 18813104077@163.com |
a80267b8948ce8925d4f683da8b6c98a011e8e18 | aedb994a7f1d2fee9a4ac39a39b657a863e86dd5 | /exercicio_secao_07_p1.py | 1b38a6d34f3502ad796c6b1cb1dc2ece4b3f84b6 | [] | no_license | Carlos2y/exercicios_python_secao_GeekUniversity | 6a14355577f6366acd222a267dc3ceaa944f6039 | 9107ee717eb08dc00899fbe02120a9efa2c8ecbc | refs/heads/main | 2023-06-18T17:32:00.328465 | 2021-07-08T22:11:31 | 2021-07-08T22:11:31 | 315,795,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,319 | py | import random
import math
import numpy
import pandas as pd
def question(n):
if n < 10 and n > 0:
n = "0" + str(n)
print("\n\n","---" * 26, "\n\n Questão {} \n\n".format(n))
'''
question(1)
v = [1,0,5,-2,-5,7]
foo = v[0] + v [1] + v[5]
print(f"Soma: {foo} \n")
v[4] = 100
print... | [
"noreply@github.com"
] | Carlos2y.noreply@github.com |
3e57b528ad994e798d54fc05ea15a8780e8e177b | a2e186009ebc821298ef769a549397f21ddd8c4f | /Content Selection/cnn.py | 2d074d14d27dd24ebc0baa57258f731d246fb422 | [] | no_license | markushoehn/Auto_TextSum | 0b06db5cc84dcbafac7beae08d00d670e20ea901 | 0ba31c37ea0db97681d1cfdf0fbdd175c9ced337 | refs/heads/master | 2020-03-15T04:49:07.300573 | 2018-08-07T20:28:32 | 2018-08-07T20:28:32 | 131,974,443 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,049 | py | from keras.models import Sequential
from keras.callbacks import ModelCheckpoint, EarlyStopping
from keras.layers import *
from keras import regularizers
from keras.layers.normalization import BatchNormalization
import numpy as np
import random
# convolutional neural network and hyper parameter optimization
# load dat... | [
"basti.seipp@gmail.com"
] | basti.seipp@gmail.com |
fdc1224c6002292b05971d72b3ed2f151137982c | 5b1e2acbe3bb286ab5b9f756d695f9b9f71487ef | /app/migrations/0004_pet_last_update.py | e6e50c55d890fea1ca3da35585ef370d15f963db | [] | no_license | BashayerNouri/Pet-Shop | ad9c486e8b9d0af72496cecd17738faffb5487f3 | d43980275224d99df93fc71ec01f21e3a0462c85 | refs/heads/master | 2020-07-15T02:46:31.641785 | 2019-08-31T07:59:29 | 2019-08-31T07:59:29 | 205,461,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 2.2.4 on 2019-08-30 19:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0003_remove_pet_admin'),
]
operations = [
migrations.AddField(
model_name='pet',
name='last_update',
... | [
"bashayer_nouri@hotmail.com"
] | bashayer_nouri@hotmail.com |
4f0036ed2e29cb0ceabd923028303136d2aaedb6 | 306eca5585e5733fb605f5278c098274772e8b8f | /countercoup/trainer/traverser.py | 513ef3ce1c8725d9dbc895f9fed2e34d82a0ac42 | [] | no_license | tomwalden/CounterCoup | 302a56214440cf950fb6f8aeb25e9dd211dae56b | 63dda981dce0bcf56f377bf21c4353f77ebe1bc7 | refs/heads/main | 2023-07-17T00:50:49.153586 | 2021-09-03T16:00:59 | 2021-09-03T16:00:59 | 377,480,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,313 | py | from countercoup.trainer.trainer_stats import TrainerStats
from countercoup.model.game import Game
from countercoup.shared.network import Network
from countercoup.shared.infoset import Infoset
class Traverser:
"""Base class for traversers"""
def __init__(self, action_nets: [], block_nets: [], counteract_nets... | [
"tomwalden@gmail.com"
] | tomwalden@gmail.com |
09718e34bbf4f3e85051183fc7d4f3740d74c359 | f90078e1e8a5d2becd81f475e355806beaf7b652 | /test/stability_checker.py | 455a5582239b0b88a98332b188825f46c194270b | [] | no_license | Sussex-Invisibles/ftb_RAT_analysis | 4742534e8197cfd771126b19199d26ccf4b195c9 | 281394bfeff8954a7fd375177065c573b80f19aa | refs/heads/master | 2020-12-25T17:36:09.374616 | 2016-08-31T12:57:58 | 2016-08-31T12:57:58 | 36,074,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,984 | py | ##################################################
# Script to test stability functions in
# core.stability funcs.
#
# Author: Ed Leming
# Date: 25/02/15
##################################################
import rat
import ROOT
import core.stability_funcs as sf
import utils.db_access as dba
import utils.psup_map a... | [
"el230@feynman.cm.cluster"
] | el230@feynman.cm.cluster |
73359898ccb822de2547f2d704554574bbd90992 | f0c72975dd8741f5118ce2092abf9f1b2cb69ede | /week4/9-1-People-at-Concert.py | 1cd2bbb79e005410b4fb5124fa0ed2a68bda41da | [] | no_license | tockata/HackBulgaria | fd8a19dbe6bde673a31f3fdb623f275c8cde5a5a | 0fe221ce006ec34010185007930054edda4dd644 | refs/heads/master | 2016-09-06T01:07:47.259854 | 2015-04-13T19:38:03 | 2015-04-13T19:38:03 | 29,928,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # from test_data import generate_test
def get_people_count(activity):
result_dictionary = {}
for name in activity:
result_dictionary[name] = None
return len(result_dictionary)
print(get_people_count(["Rado", "Ivo", "Maria", "Anneta", "Rado", "Rado", "Anneta", "Ivo", "Maria", "Rado"])) | [
"anatoly.angelov@gmail.com"
] | anatoly.angelov@gmail.com |
6ee6970d20919b8312b162238ef5b01936dcb84b | 4b767c8ea2e37e473647c0dc2b12d1f848260571 | /main/migrations/0026_alter_operation_history_сomponent.py | a8ce3b9dcb7603e7f9485e4337da0e2b9caa8707 | [] | no_license | Shankysik/ARMSOSIS | c52b81549c1a6a616fc4b5ee0753f3f3b3e75383 | 65052c6fe2e179634e3e119a18789c3718ce4fda | refs/heads/main | 2023-06-17T00:01:27.249401 | 2021-07-08T08:32:27 | 2021-07-08T08:32:27 | 384,047,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.2.2 on 2021-06-22 18:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0025_alter_operation_history_status'),
]
operations = [
migrations.AlterField(
model_name='operation_history',
... | [
"Shank33@mail.ru"
] | Shank33@mail.ru |
79e47df7a9fe11f27c98d9ac203f9989b92b70ec | f444de809b9733e8253fffa86f6c9450f6ac5523 | /python001.py | 2faef5f5ed3aeed6a309c9e26c52a6a56ea54565 | [] | no_license | topwhere/three | 13b37d54683c9607d14ac4c7c2b9f6129a0eb4bb | 43423dd10331658b5014088648d760dcc293aeb6 | refs/heads/master | 2020-03-28T21:06:29.770888 | 2018-09-17T13:27:21 | 2018-09-17T13:27:21 | 149,129,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 94 | py | # 画笔
import turtle
t = turtle.Pen()
for x in range(360):
t.forward(x)
t.left(59)
| [
"413118324@qq.com"
] | 413118324@qq.com |
360161f68cc26664822e9a2ccfba9a23d11da692 | e7830d72c06467dffdfc7a87ab80f4206c5ce266 | /first_blog/migrations/0002_auto_20150619_1414.py | ba33f180a3059feabe43ac3db7e7c349da82d5f4 | [] | no_license | Uzzije/djangopractice | a455c27754e2122b9534961ad0eca3fa77b1907b | 1fb97d42afc33d854274e547eca23721917bb795 | refs/heads/master | 2016-09-03T07:17:35.005965 | 2015-07-09T18:52:46 | 2015-07-09T18:52:46 | 37,861,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('first_blog', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='author',
old_name... | [
"Uzzije2000@yahoo.co.uk"
] | Uzzije2000@yahoo.co.uk |
e17d42a2a2e20eac9b55ea3b041cba48fb9b57fe | e9de2fe68a2538bd0a8c1237363287c6b10ec9d2 | /scrapy_data/combase.py | c29af0882d9d540145f0ff580b0d5403892883d8 | [] | no_license | hechengfei/itjuzi | 9c081a2d3af7bf57be44108213468695ce34a38d | d64a11dc266b2a7071576e36cf777835c612ad32 | refs/heads/master | 2020-04-10T05:13:30.639765 | 2018-12-07T12:26:19 | 2018-12-07T12:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,405 | py | class ComBase():
def __init__(self,products_info,
com_quancheng,
com_faren ,
com_zhuceziben,
com_chenglishjian,
com_gongsileixing ,
com_dizhi,
com_gongsimingcheng,
... | [
"hecf@shuzilm.cn"
] | hecf@shuzilm.cn |
1edcceffcfbf8947bb55c85896d44b45eddc8739 | 673e829dda9583c8dd2ac8d958ba1dc304bffeaf | /data/multilingual/Latn.HNS/Serif_16/pdf_to_json_test_Latn.HNS_Serif_16.py | 14b2d82b21a61c2d50f3845e482493f91f58415d | [
"BSD-3-Clause"
] | permissive | antoinecarme/pdf_to_json_tests | 58bab9f6ba263531e69f793233ddc4d33b783b7e | d57a024fde862e698d916a1178f285883d7a3b2f | refs/heads/master | 2021-01-26T08:41:47.327804 | 2020-02-27T15:54:48 | 2020-02-27T15:54:48 | 243,359,934 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | import pdf_to_json as p2j
import json
url = "file:data/multilingual/Latn.HNS/Serif_16/udhr_Latn.HNS_Serif_16.pdf"
lConverter = p2j.pdf_to_json.pdf_to_json_converter()
lConverter.mImageHashOnly = True
lDict = lConverter.convert(url)
print(json.dumps(lDict, indent=4, ensure_ascii=False, sort_keys=True))
| [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
72d63bbb632d004dac54083326c00f067ec1f9c7 | 22e7fdcce6501ebcd7022dce2d4a8eaa1c894c4a | /ANALISIS_02_ GONZALEZ_RODRIGO.py | d7686f7b6ed5134e43ad2ecb27bbd935a08c18f5 | [] | no_license | Rgonzalez247/Curso-Profesional | e18144d020a6d8929bfb104b7404d2a8c11e9b92 | 04bdffc62fba93a20c769cf8ba79846048c8b40e | refs/heads/master | 2022-12-24T22:56:07.602073 | 2020-09-27T22:31:34 | 2020-09-27T22:31:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,550 | py | #!/usr/bin/env python
# coding: utf-8
# In[2]:
#Importar librerías
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
# In[3]:
#Importar datos
df = pd.read_csv('synergy_logistics.csv')
df
# # Opción 1
# ## Importaciones
# In[4]:
dfi= df[df.direction == "Imports"... | [
"noreply@github.com"
] | Rgonzalez247.noreply@github.com |
445e907fa27edefa23e97702e934022892753f6d | 8764e4ba185e070e758cd2e804c8c2e808c62bca | /caffe-easy/src/caffe/proto/caffe_pb2.py | cebcf250c1ea5a8e7f6c8c787f9d3e39e61babe8 | [
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | Usernamezhx/CCDL | 8e1079730a4f3e42e3417e121034d8b6020817cc | 9d664045c3a336baaa4786fea5ea40ec6e9c2c4e | refs/heads/master | 2021-01-01T16:15:07.951212 | 2017-07-19T02:28:04 | 2017-07-19T02:28:04 | 97,795,985 | 1 | 0 | null | 2017-07-20T05:56:39 | 2017-07-20T05:56:38 | null | UTF-8 | Python | false | true | 396,449 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: caffe.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _mes... | [
"512690069@qq.com"
] | 512690069@qq.com |
9fb875dbf52353b21994402b4fa2b771522fe822 | 90529c73e0c8b12cb9ca71d926fae1d8f701ed0a | /finalproject/settings.py | e534702509f96717e87b644a7dcdc458e30a91b5 | [] | no_license | bavneetsingh16/Intelligent-Hiring-System | d7981479ad3b1c47117748326090c1715f8b6498 | b96a95da77b0f5484d21b36970c05a68a9998aad | refs/heads/master | 2022-12-10T21:08:31.018535 | 2018-01-14T04:43:18 | 2018-01-14T04:43:18 | 117,400,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,222 | py | """
Django settings for finalproject project.
Generated by 'django-admin startproject' using Django 1.11.6.
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/
"""
impo... | [
"noreply@github.com"
] | bavneetsingh16.noreply@github.com |
842e9f0bec1e4d80b543836e3a70b73e39df57ea | b08dea9994b80c4935663f1fc63a1994eb3ca68f | /sample/work/apps.py | 1300d5690abe8cdba226514c2d6a088153023570 | [] | no_license | mukul96/Quiz | f16a5ae51add933bc5220e12b78730f51a1bbbdb | d1ecf5a02103275d08b1b34748db0b13b244b59d | refs/heads/master | 2021-01-01T18:53:04.685426 | 2019-05-05T18:04:39 | 2019-05-05T18:04:39 | 98,459,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class WorkConfig(AppConfig):
name = 'work'
| [
"mukul96"
] | mukul96 |
12dee9eb8074c8d801d2fb535f800831db8e4cbb | 7138995b7197fd76fdfb4596abfd996d0c8e039e | /icon converting/androidify_icons.py | 8ee066038adf43ab650c6365fb09edf6bcaca00d | [
"MIT"
] | permissive | krissrex/Icon-Tools | d7b18906684611d0c4d77a8b8b349051275f48c9 | ca5412760c587c008de5d597fe296854c1856280 | refs/heads/master | 2020-05-23T08:11:55.374659 | 2016-10-07T20:25:45 | 2016-10-07T20:25:45 | 70,279,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | import os, shutil
drawable_folder = 'drawable'
def list_files():
files = [f for f in os.listdir('.') if os.path.isfile(f) and f.endswith('.png')]
print(files)
return files
def find_out():
out_folder = 'out'
counter = 0;
while os.path.exists(out_folder + (str(counter) if counter != 0 else ''))... | [
"krirek@msn.com"
] | krirek@msn.com |
eab4af00c1cf02878ef3ffc85ea4f270a3a49e25 | 418603934625c30aec5c9549e25567912434bf93 | /src/core/lightning/pytorch_lightning/core/lightning.py | 3eeb23cf862054f5707f2799b303183c57f446db | [] | no_license | antoalli/shape_completion | 9559859f6cb94d8224c1d1fe3b61b6c24801dbf5 | 310b2b08479514bfea3fe5cbe4d61c407cd59f02 | refs/heads/master | 2022-12-07T13:28:14.065782 | 2020-08-17T06:09:43 | 2020-08-17T06:09:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,546 | py | import collections
import logging as log
import csv
import os
import warnings
from abc import ABC, abstractmethod
from argparse import Namespace
import torch
import torch.distributed as dist
from lightning.pytorch_lightning.core.decorators import data_loader
from lightning.pytorch_lightning.core.grads import GradInfo... | [
"ido.imanuel@gmail.com"
] | ido.imanuel@gmail.com |
beda3861457b5c0ec5adcf3e59533198388c1a78 | 44a5a7742ed6c888e24fcbb382d50f747fc171ba | /motiondetection.py | 26ef6ede95f5d68218eb7d737fbf4f76656acae0 | [] | no_license | seil-cse-iitb/classroom-yolo | 02375c0f76654faf556b740621792c625828096b | 339bc3ed8ddfc8fa34a4549cc5b13378b097662d | refs/heads/main | 2023-06-12T01:52:28.637228 | 2017-06-21T15:40:04 | 2017-06-21T15:40:04 | 383,571,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,242 | py | import time
import imutils
import numpy as np
import cv2
import json
import threading
import logging
from hd_variables import variables_hd
from datetime import datetime
from networkLayer import send_HD
class motiondetection(threading.Thread):
def __init__(self,cycle,data_id,cam_url,threadid):
threading.Thread.__i... | [
"malvika0311@gmail.com"
] | malvika0311@gmail.com |
98649096ac72586c4cc39e7e4b5b32871381a937 | ffbad21b9e8a92f9669ebaa1e0542d9bf114f414 | /akshare/bank/bank_banker.py | e14042b63153052d133088af489debe4c662e335 | [
"MIT"
] | permissive | cqzhao/akshare | 6bccdb4eceae633609bb6a797760a5d05ed0165a | cd740d050015edd26590cc0f3d493d7dc57ea79b | refs/heads/master | 2023-03-02T01:24:19.238315 | 2021-01-25T04:06:27 | 2021-01-25T04:06:27 | 311,243,910 | 0 | 0 | MIT | 2021-01-25T04:06:28 | 2020-11-09T06:26:44 | null | UTF-8 | Python | false | false | 9,970 | py | # -*- coding:utf-8 -*-
# /usr/bin/env python
"""
Date: 2021/1/14 15:56
Desc: thebankerdatabase
https://www.thebankerdatabase.com/index.cfm/search/ranking
"""
import pandas as pd
import requests
from bs4 import BeautifulSoup
from tqdm import tqdm
def bank_rank_banker() -> pd.DataFrame:
"""
全球银行排名前 25 家
htt... | [
"jindaxiang@163.com"
] | jindaxiang@163.com |
ba3cf1e5261362abcb2fbb2ef294e56868785b5d | d4738162bf2558abb01e7e67191dc63ca2bc39f2 | /software/5/noisy-temperature.py | 277f1c9fbe1461a81262f4cc8a5d2d22b516f802 | [] | no_license | ahgalila/masters-thesis | 63b93fa157bb430883c96d8bc7fddfb79f55bc83 | 05362b0627e117deb97ed6e1c06487b64883a3c9 | refs/heads/master | 2022-01-17T07:40:24.579903 | 2019-08-09T05:06:08 | 2019-08-09T05:06:08 | 198,347,212 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | py | from __future__ import division, print_function, absolute_import
from lstm_model import LSTMModel
from tensorflow.examples.tutorials.mnist import input_data
from utils import argmax, one_hot
from random import randint
import numpy as np
def temperature(value):
result = [0, 0, 0, 0, 0, 0, 0, 0, 0]
index = -1
... | [
"mail@ahmedabada.com"
] | mail@ahmedabada.com |
ba0f688f9cb711a5b1bad58d76ac28cf73dc5873 | b3724aeb2b8fc43c1ddc5c2481d329e952a5fd1f | /device34470A.py | 7a5dc93419cdf6b5ae6374da7c0868da4d9ef40c | [] | no_license | SHU023/test1 | 4cc0ebaa2ab5af438ffcabb8e57f407014186f77 | d4b5623bc06d5148f5fb2c11bc35884be9366af4 | refs/heads/master | 2020-07-23T05:03:59.265486 | 2020-01-07T04:15:38 | 2020-01-07T04:15:38 | 207,453,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py |
#created on 2019/9/17 @auther SHU
#python visa 使い方
import time
import visa
rm =visa.ResourceManager()
rm.list_resources()
instr=rm.open_resource('USB0::0x2A8D::0x0201::MY57700883::0::INSTR')
instr.write("MEAS:RES?")
instr.write("MEAS:CURR:DC?")
instr.write("MEAS:VOLT:DC?")
print(instr.query("*IDN?"))
'''
instr.wri... | [
"shu.rarara21@gmail.com"
] | shu.rarara21@gmail.com |
ae5f27b58b42509c2fb6f82e2e426f521420b5dd | d87f6d9e769709def3efcf30230cd8bf6ac2cef7 | /WWTest/autotest/config/xkz/youyanyace/globalconfig/globalConfig.py | e6cc20a18999b112dc5f12dade19633d8c3165fc | [] | no_license | wawj901124/centos8xitong | 876dcc45b895871119404ad1899ca59ab5dd90b6 | 81fc0d1151e3172ceec2093b035d2cd921e1a433 | refs/heads/master | 2023-02-23T22:33:22.314433 | 2021-01-31T01:54:35 | 2021-01-31T01:54:35 | 290,476,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | class GlobalConfig(object):
ISONLINE = False
ONLINE_WEB_YUMING= ""
ONLINE_LOGIN_ACCOUNT = ""
ONLINE_LOGIN_PASSWORD = ""
TEST_WEB_YUMING = "http://111.207.18.22:22044/"
TEST_LOGIN_ACCOUNT = "admin"
TEST_LOGIN_PASSWORD = "admin123A"
COOKIE_FILE_NAME = "youyanyacelogincookie.json"
gc = G... | [
"wawj900805"
] | wawj900805 |
66d0aae4bb8e2821ef1d5d3484b395f66319485a | 6af43406a942279558232a4f9649ac645f373779 | /notebooks/myutil_regr.py | acd22bfb7d80c9423dd34e7e1163ae7d50a5b506 | [] | no_license | VajiraPrabuddhaka/dengAI | 284c59729ab05b141d82310f932e36f593e153fd | f5db3f2d7e0c05e39dd5b1e829150898510ab46c | refs/heads/master | 2020-03-20T06:29:34.544906 | 2018-07-27T18:18:28 | 2018-07-27T18:18:28 | 137,250,543 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,289 | py | import scipy as sp
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd
import statsmodels as stats
from sklearn.preprocessing import MinMaxScaler, OneHotEncoder
from sklearn.model_selection import train_test_split
import theano
import tensorflow as tf
i... | [
"vajiraprabuddhaka@gmail.com"
] | vajiraprabuddhaka@gmail.com |
be8e295b654f5d94d37b3a8adae135d6fb9cd366 | 735dfed95f1440d6d846f30881e37ad1b6e0ea78 | /JeongHwi/Level_2/순위 검색/순위 검색.py | d74f987c37d4e89acb21656475a2c1cf6f057632 | [] | no_license | SunivAlgo/Algorithm | bb5814bf19aa4059a5b7e506c992b41bc62bd2ec | 71d2e568153fbfd7cb16085366fac3927e1e2c54 | refs/heads/main | 2023-04-13T10:47:31.463661 | 2021-04-23T05:07:20 | 2021-04-23T05:07:20 | 332,732,134 | 1 | 0 | null | 2021-01-25T16:30:40 | 2021-01-25T11:58:09 | Python | UTF-8 | Python | false | false | 2,631 | py | from itertools import combinations
from bisect import bisect_left
infos = {}
def getinfos(score,info_):
global infos
for k in range(5):
for x in combinations([0,1,2,3],k):
case = ""
for i in range(4):
if i not in x:
case += info_[i]
... | [
"wjdgnl97@gmail.com"
] | wjdgnl97@gmail.com |
8fad67f8ce8ce001bfb436e710258ff19d7ff81a | 6849f09504c1b9e7e6b4bdc2a924f84ec98ec432 | /webapp/manage.py | 62c14e20c068799663d30d3c0e974d9a606680f0 | [
"Apache-2.0"
] | permissive | likit/lab-instrument-booking-app | a1c9d16635b8cff3511901d5510560349e8e5911 | c21b42342376dc54fdd11a7f87bc7609e6204020 | refs/heads/master | 2021-01-02T09:14:33.291562 | 2015-06-28T14:57:39 | 2015-06-28T14:57:39 | 37,254,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,377 | py | #!/usr/bin/env python
import os
from app import create_app, mongo
from flask.ext.script import Manager, Shell
# from flask.ext.migrate import Migrate, MigrateCommand
from werkzeug.security import generate_password_hash
app = create_app(os.getenv('FLASK_CONFIG') or 'default')
manager = Manager(app)
# migrate = Migrate(... | [
"preeyano@msu.edu"
] | preeyano@msu.edu |
57f06221f658938344d6d977bd9f135397f84e82 | ea9c1bcced1c31bcd4649115d9e27fb8cc28b360 | /functions.py | 07a3bec86be515a4f526aa97c4a6ba2d280b48c9 | [] | no_license | lweedage/hyperloglog-conductance | 7282c1425a89957f81464164ea92f2c6b1d603f9 | e53186801c25c063559cbbb5631d44bd9dcf570d | refs/heads/main | 2023-08-22T11:13:52.899784 | 2021-10-19T14:50:58 | 2021-10-19T14:50:58 | 418,906,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,763 | py | import math
import matplotlib
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
import unidip.dip as dip
from cycler import cycler
fig_width = 2.809 * 2
fig_height = fig_width/4*3
matplotlib.use('PDF')
matplotlib.rcParams['axes.prop_cycle'] = cycler('color', ['DeepSkyBlue', 'DarkMagenta', 'Lig... | [
"l.weedage@utwente.nl"
] | l.weedage@utwente.nl |
06dab2f9670cd83f665f86cf716d9db211053760 | ad07d6ab992e3cc55288c46b692c7d826f028638 | /NoWire_v1/server/monitor.py | a7a55f31945b696d1c75e5fe2124444fd57c04c6 | [] | no_license | Ribster/NoWire | 21d26d0cca39a72f2132f34f1874279c1ca06aab | 16b2cd3cdb2017ed3a3b112324d7cbaa809e5988 | refs/heads/master | 2021-01-10T16:13:33.676210 | 2016-09-04T15:00:43 | 2016-09-04T15:00:43 | 46,177,242 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,165 | py | #!/usr/bin/python
import paho.mqtt.client as mqtt
import MySQLdb
import time
from time import sleep
from array import *
ts = time.time()
db = MySQLdb.connect(host="localhost", # your host, usually localhost
user="nowire", # your username
passwd="secret", # your password
... | [
"robbevanassche@gmail.com"
] | robbevanassche@gmail.com |
3f3eebddf1980d557d39e2eef82f0f178cb64734 | 2990b0841b63f300a722107933c01c7237a7976b | /all_xuef/code/sicp_code_python/2.2/exer2_36.py | 45876f0bdd6ff5e412e92460f44c40c00c5394aa | [] | no_license | xuefengCrown/Files_01_xuef | 8ede04751689e0495e3691fc5d8682da4d382b4d | 677329b0189149cb07e7ba934612ad2b3e38ae35 | refs/heads/master | 2021-05-15T04:34:49.936001 | 2019-01-23T11:50:54 | 2019-01-23T11:50:54 | 118,802,861 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """
exer2.36 accumulate_n
((1 2 3) (4 5 6) (7 8 9) (10 11 12))-->(22 26 30)
"""
import exer2_33 as funcs
import accumulate as accu
import operator as oper
def accumulate_n(op, init, seqs):
# 每个序列等长度,所以如果第一个处理完了,意味着都处理完了
if len(seqs[0])==0: return []
return funcs._append([accu.accumulate(op,
... | [
"643472092@qq.com"
] | 643472092@qq.com |
d6e2afb642502fd7f4276c1fe7b1f001940c9f59 | 3138a4f627f3eae63a43fc85d84ce1f4d4c9bbff | /seleniumappre.py | 065d776be6e9c3752a0056f6d61b65545a5c8f68 | [] | no_license | ivansgithub/tkinter_and_selenium | cc75ee3f30a2d7bcd96467f6add63f2bb9e06488 | 17d36eab530739f18e5b8b4f90f269b2a4b6ba93 | refs/heads/master | 2023-06-22T11:04:32.421290 | 2021-07-29T18:52:53 | 2021-07-29T18:52:53 | 390,821,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,296 | py | from selenium import webdriver
import time
import pandas as pd
from selenium.webdriver.support.ui import Select
def entrando(username_info,password_info):
global driver
driver = webdriver.Chrome(r"./chromedriver")
url = 'https://stevegriggsdesign.com/portal/admin/leads'
driver.get(url)
driver.maximi... | [
"ivan.sal.be@gmail.com"
] | ivan.sal.be@gmail.com |
4e0d1fc89d542e61c7b2ec65b8c9602d2f5dcca5 | 6bb649848012fb5fceabe6403efebc457483323e | /clase1/ej1.py | 1b53e0b2b2600759e35db01039c4d71145325e51 | [] | no_license | ndf14685/raspberry | bc23df6980fa499df86cdc8ece93d12383be4f35 | 8fb47de0f24a6abad6f4e6fb4893f309d016aa24 | refs/heads/master | 2020-09-11T20:56:49.345222 | 2019-12-01T04:19:09 | 2019-12-01T04:19:09 | 222,188,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,783 | py |
#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define MAXTIMINGS 85
#define DHTPIN 7
int dht11_dat[5] = { 0, 0, 0, 0, 0 };
void read_dht11_dat()
{
uint8_t laststate = HIGH;
uint8_t counter = 0;
uint8_t j = 0, i;
float f; /* fahrenheit */
// Pin de datos en 0 por 10ms
pin... | [
"nfleitas@fusap.com.ar"
] | nfleitas@fusap.com.ar |
2f2897da3ab199c97a2904a7bc4488f42042c775 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/bwobsolete_helpers/PyGUI/FocusManager.py | d63a96b2d06f8769fe8fa7654f13ed3704920427 | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,004 | py | # 2017.05.04 15:20:45 Střední Evropa (letní čas)
# Embedded file name: scripts/client/bwobsolete_helpers/PyGUI/FocusManager.py
_focusedComponent = None
def getFocusedComponent():
global _focusedComponent
return _focusedComponent
def setFocusedComponent(newFocus):
global _focusedComponent
if newFocus ... | [
"info@webium.sk"
] | info@webium.sk |
77cc7c9dea37d25900a3ef81b6fe8e5c4ac325d8 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02259/s333912873.py | 70af1be9d0001017dd4c907d0d466616f478bb16 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def bubbles(N):
count = 0
for i in range(len(N)):
for j in range(len(N)-1, i, -1):
if N[j] < N[j-1]:
N[j], N[j-1] = N[j-1], N[j]
count += 1
c = 1
for i in N:
print(i, end='')
if c < len(N):
print(' ', end='')
c +... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5dfd1f2fa0a20f7374881feaa573ca57dd325796 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_040/ch152_2020_04_13_20_50_06_154418.py | 4e37d65e1c26223db4521858483a177d0b8585da | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 230 | py | def verifica_preco(x,y,z):
dic1 = {}
dic2 = {}
for x, cor in y.items():
dic1[x] = cor
for cor2, valor in z.items():
dic2[cor2] = valor
if cor == cor2:
return valor
| [
"you@example.com"
] | you@example.com |
3d67c406dd6596ce4a8f83beeb9a76c2da03d32d | 4d49901213a6dd12ae183dcb4cc6b16b56ac423d | /carzone/settings.py | 7ed610f9492641166d149d43cba412e87c4d7217 | [] | no_license | sad60/carzone_gitproject | eeab6eb1d828db78c039fe37bbfae37426b0b191 | 0bbe0f6d83a19b18763b33683c5a11b503f05a7f | refs/heads/main | 2023-01-03T19:45:18.883812 | 2020-10-28T20:02:03 | 2020-10-28T20:02:03 | 306,869,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | """
Django settings for carzone project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | [
"sadki9@gmail.com"
] | sadki9@gmail.com |
b94a0ad8dc014ef4cf5e196798920c4717dc245e | b9613c015e139d8c98a729dedc09ee4bffe88a7d | /第一第二大值.py | b7fdafb6d001e79355df7f9f23083219c020733d | [] | no_license | hoopizs1452/Python | 49a99876a6548026403c6b8c733f27dc610b0e5f | 1ca18d770c1f24f55072c3e4ca586927defed0d7 | refs/heads/master | 2020-09-16T07:42:52.218781 | 2020-01-28T07:00:38 | 2020-01-28T07:00:38 | 223,701,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | def max2(x):
m1, m2 = (x[0], x[1]) if x[0] > x[1] else (x[1], x[0])
for index in range(2, len(x)):
if x[index] > m1:
m2 = m1
m1 = x[index]
elif x[index] > m2:
m2 = x[index]
return m1, m2
a = [1, 2, 3, 4]
print(max2(a)) | [
"chenyilin@ChenYis-iMac.local"
] | chenyilin@ChenYis-iMac.local |
e1269bcb25875f70fc64b5c77aa877e42b600bf0 | 96104bf1a79257399cf5781d3b29d145fdef5073 | /molbert/tests/test_utils.py | b97a900ad68e982ed8d4307a16e794f0e1bd9e37 | [
"MIT"
] | permissive | panpiort8/MolBERT | 704c8ee00379f07f65d72695701a2e00f3c812ce | b312700733d6f14ba5bf90347adb59b0d99be65d | refs/heads/main | 2023-03-09T17:23:05.789108 | 2021-03-01T15:27:54 | 2021-03-01T15:29:09 | 343,453,109 | 1 | 0 | MIT | 2021-03-01T14:53:30 | 2021-03-01T14:53:29 | null | UTF-8 | Python | false | false | 3,317 | py | import random
import numpy as np
from molbert.utils.lm_utils import (
InputExample,
_truncate_seq_pair,
convert_example_to_features,
get_seq_lengths,
random_word,
unmask_lm_labels,
)
from molbert.utils.featurizer.molfeaturizer import SmilesIndexFeaturizer
TOKENIZER = SmilesIndexFeaturizer.ber... | [
"noreply@github.com"
] | panpiort8.noreply@github.com |
5b685114688e55d4d6c801aa3798773078ed3a46 | 77758fe7790c5dea7615ccc66ae7214230eb07d5 | /drf_braces/tests/test_mixins.py | 5745cf26162b74138a9ca8e0e3b99645a42928a0 | [
"MIT"
] | permissive | NoraGithub/django-rest-framework-braces | 355be302c7a434f925edd0af06162bd632e730ba | ad98c6abef2045b1cae65db63793e810d989ee72 | refs/heads/master | 2021-01-01T18:43:32.481857 | 2017-05-09T14:52:58 | 2017-05-09T14:52:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,074 | py | from __future__ import absolute_import, print_function, unicode_literals
import unittest
import mock
from rest_framework.generics import GenericAPIView
from drf_braces.mixins import (
MapDataViewMixin,
MultipleSerializersViewMixin,
StrippingJSONViewMixin,
)
class TestMultipleSerializersViewMixin(unittes... | [
"miroslav.shubernetskiy@dealertrack.com"
] | miroslav.shubernetskiy@dealertrack.com |
b9169e937fabc228e29384360ef65944f5973688 | 1d87b6e7cd7879fefeaa8f475045de1cc1bc2bf5 | /podder_task_foundation/logging/log_setting.py | db6d2ddd99e112b75acd67189097e92a65cda131 | [] | no_license | nagisa-sakamoto/podder-task-foundation | 2ecb24e07bbfcc1121661fb7d9e7005faf9093e0 | 8de453bf8f89d5ddcb8e82d394f73f3a8f715329 | refs/heads/main | 2022-12-30T01:10:23.051183 | 2020-10-20T08:13:55 | 2020-10-20T08:13:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,068 | py | import logging
import os
from typing import Any, Dict
from podder_task_foundation.config import Config
class LogSetting:
TASK_NAME_PATH = 'task_name.ini'
DEFAULT_FORMAT = '[%(asctime)s.%(msecs)03d] %(levelname)s - %(message)s'
DATE_FORMAT = '%Y-%m-%d %H:%M:%S'
_log_setting = None
def __init__(se... | [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
d4bbd03fe42ba9327eb0c52142ba5c84766cd36c | ec153cf6c65b02d8d714e042bbdcf476001c6332 | /keystone/common/fernet_utils.py | cb7a69863bc71fd65b38a3e1a3ff689a24470723 | [] | no_license | bopopescu/dashboard | c4322f7602a9ba589400212aaef865ed4ffa8bdb | a74b4a549cd7d516dd9a0f5f2e17d06679c13bf6 | refs/heads/master | 2022-11-21T15:56:42.755310 | 2017-07-05T12:04:14 | 2017-07-05T12:04:17 | 281,596,428 | 0 | 0 | null | 2020-07-22T06:38:37 | 2020-07-22T06:38:36 | null | UTF-8 | Python | false | false | 11,370 | py | # 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 applicable law or agreed to in writing, software
# distributed under t... | [
"laurencechan@qq.com"
] | laurencechan@qq.com |
72dcc5026c9b6f3fe26dbfe3f630eb55f9c2859e | a9e64d7a3b0db7a032f059862b012d173c2420e5 | /Models/TTWeek15_2DBinary_ad.py | ed05dff55fb2fd68835a06a7ca89c1435115d422 | [] | no_license | WilliamPJSmith/Support | 7aa4975ca621ef74e9b6b191e9378d444127178e | 6f6199dd8df41ae4e7dc268b4931ca26b7b891b9 | refs/heads/master | 2021-01-21T10:13:25.638760 | 2015-09-01T18:49:46 | 2015-09-01T18:49:46 | 41,625,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,904 | py | import random
from CellModeller.Regulation.ModuleRegulator import ModuleRegulator
from CellModeller.Biophysics.BacterialModels.CLBacterium import CLBacterium
from CellModeller.GUI import Renderers
import numpy
import math
# calculate radii
radiusA = 0.76
radiusB = 0.63
radiusC = 0.56
radiusD = 0.48
# specify target v... | [
"william.smith@cs.ox.ac.uk"
] | william.smith@cs.ox.ac.uk |
c2021b9e0344a89457e29d2a982dbf6b15c69282 | 9c347f3f021a0c7fb424c04ea6c6e1efbc7eff20 | /rpa_basic/1_excel/3_cell.py | 239ab96bfcf02efc6504f10425b35d5ab60198b5 | [] | no_license | cyanluna-git/NadoCoding | 6904471f274b8e9d0f0739a0d5d74fa515a92134 | 1dfbcb031e467aaa60e946af1efcce675fdfe47e | refs/heads/master | 2023-04-12T11:47:33.624368 | 2021-05-16T00:39:11 | 2021-05-16T00:39:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | from openpyxl import Workbook
wb = Workbook()
ws = wb.active
ws.title = "NadoSheet"
ws["A1"] = 1
ws["A2"] = 2
ws["A3"] = 3
ws["B1"] = 'Apple'
ws["B2"] = 'Beta'
ws["B3"] = 'C'
print(ws["A1"])
print(ws["A1"].value)
print(ws["A10"].value)
print(ws.cell(row=1, column=1).value)
print(ws.cell(row=1, column=2).value)
c =... | [
"51350627+cyanluna-git@users.noreply.github.com"
] | 51350627+cyanluna-git@users.noreply.github.com |
26cd2b2ab735f881fe7976799cae416f7f22a77f | 37a1668eb7f05e72c7ee2c5c75b412cf85968f66 | /mtsmorf/move_exp/experiments.py | 7b60cadb50186fefb9ac934b8ac039ff6934df79 | [] | no_license | adam2392/motor-decoding | 7643f6849c83170c373599229d8a275db179a34a | 901a2c69429c82e7dbc00cd1db88d21a304a1fc1 | refs/heads/master | 2023-05-30T11:33:59.693081 | 2021-06-14T21:54:41 | 2021-06-14T21:54:41 | 317,599,056 | 0 | 0 | null | 2021-03-24T16:34:23 | 2020-12-01T16:19:29 | Jupyter Notebook | UTF-8 | Python | false | false | 14,931 | py | import argparse
import os
import sys
import traceback
from pathlib import Path
import dabest
import numpy as np
import matplotlib.pyplot as plt
import mne
import pandas as pd
from mne_bids.path import BIDSPath
from mne_bids.tsv_handler import _from_tsv
from mne.time_frequency.tfr import tfr_morlet
from rerf.rerfClassi... | [
"chester.huynh924@gmail.com"
] | chester.huynh924@gmail.com |
06903707b804c4c3de31c5af875b5b8ede7a761a | 3cbee2296fd6b54f80587eead83813d4c878e06a | /vpr2swcs/genu.py | 0617a3692038e528684849099de7f48133b0c0d9 | [] | no_license | nikhil-soraba/rasp30 | 872afa4ad0820b8ca3ea4f232c4168193acbd854 | 936c6438de595f9ac30d5619a887419c5bae2b0f | refs/heads/master | 2021-01-12T15:19:09.899590 | 2016-10-31T03:23:48 | 2016-10-31T03:23:48 | 71,756,442 | 0 | 0 | null | 2016-10-24T05:58:57 | 2016-10-24T05:58:56 | null | UTF-8 | Python | false | false | 17,725 | py | import pdb, copy
def recStrExpand0(x):
"""takes a string like: x[0:1].y[0:1] and returns a list:
['x[0].y[0]', 'x[0].y[1]', 'x[1].y[0]', 'x[1].y[1]']
"""
results = []
if x.find(':') == -1:
return [x]
else:
ind = x.find(':')
r0 = int(x[:ind].split('[')[-1])
... | [
"ms.m.d.collins@gmail.com"
] | ms.m.d.collins@gmail.com |
4dabeab8706df514f84e25c7faab9eca0de1afdc | 4ab71fd5344328392f4954c9e65288d162bfa97b | /profiles/migrations/0023_auto__add_field_awardtype_plus.py | 5e38994faaaee84f87cd993150003424b4a3b750 | [] | no_license | stripesolutions/xvs | 5dff2a6fae3461d78d2a7271646804619831e925 | 0beb916b95dab96645bb279cfc0539d891d93cb7 | refs/heads/master | 2021-01-18T23:06:59.105293 | 2016-10-24T20:55:48 | 2016-10-24T20:55:48 | 40,054,100 | 0 | 3 | null | 2016-02-22T14:59:13 | 2015-08-01T17:14:02 | Python | UTF-8 | Python | false | false | 12,566 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'AwardType.plus'
db.add_column('profiles_awardtype', 'plus... | [
"alex@x13n.com"
] | alex@x13n.com |
aada75f992b5765b99c8b557488861d8f58312bf | 123235e95aff61c58b2cfbf0558b1d2eb211c096 | /pydb_utill.py | 679588aeae80baf089930574db257ba563ded233 | [] | no_license | beatbox4108/pyDB | 72e0582f2b10f8b224613abb69a1471908349344 | 5551328ff51a0a6b60b0577bc17e3b8f24c742d1 | refs/heads/master | 2023-06-21T09:39:50.751269 | 2021-07-22T06:11:11 | 2021-07-22T06:11:11 | 374,066,707 | 0 | 0 | null | 2021-06-05T09:23:08 | 2021-06-05T08:56:56 | null | UTF-8 | Python | false | false | 701 | py | import json
import pprint
from tabulate import tabulate
import datetime
def load_db_config():
json_file = open('config.json', 'r')
json_obj = json.load(json_file)
username = json_obj["DB_USERNAME"]
password = json_obj["DB_PASSWORD"]
hostname = json_obj["DB_HOST"]
port = json_obj["DB_PORT"]
... | [
"nakano16180@gmail.com"
] | nakano16180@gmail.com |
d29f0d2f11801343f11a47d05288fa24f931602c | 2b968068343edf3cee4280cd7b58f27abf8d4f15 | /html/SGP/web/py/chat_client.py | 1fc36be64b8371dc40e2f9681fc97e52dc49f766 | [] | no_license | Juaca5/hydroid | 39d44dcb916b41c51f5a833e2102d267acd39ff4 | ab52e9e3671f35092261c7dc5550cc866a203184 | refs/heads/master | 2020-03-19T18:40:04.929100 | 2018-06-15T13:48:10 | 2018-06-15T13:48:10 | 136,819,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,532 | py | import sys, socket, select
def chat_client():
if(len(sys.argv) < 3) :
print 'Usage : python chat_client.py hostname port namefile'
sys.exit()
host = sys.argv[1]
port = int(sys.argv[2])
namefile = sys.argv[3]
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settime... | [
"juan.tapia@alumnos.uv.cl"
] | juan.tapia@alumnos.uv.cl |
4d80d77bec5c5634b2020e2cdfe0b7a30e03cb60 | 2657b25d290884e23d507a518f0f721bcf36ccf6 | /proj/settings.py | d7657415d7420712982111ad3a192cedd94a57fb | [] | no_license | wkrueger/exemplo-django-graphql | 731a547c10c5742604315c3c887b199665eb6408 | a7840eb07751c81f48cce8c46b97ec0f4a15e93e | refs/heads/main | 2023-08-26T03:15:37.862009 | 2021-10-25T14:38:25 | 2021-10-25T14:38:25 | 394,453,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | """
Django settings for proj 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/
"""
fro... | [
"wkrueger128@gmail.com"
] | wkrueger128@gmail.com |
dd29ba0161560b2e89b22a3616b0cd936035b9cb | 2589e080a2cc76bae58963576ebd76fc024bb64e | /Snakefile | 39024ec9c31e8fa55fdce4689f6a3f81b6f6f5fc | [
"Apache-2.0"
] | permissive | inambioinfo/2020plus | eb0d8932d3d0748d9676430c9d22af5c50727b60 | 5c1bda3cfe59719509408f96c473d6d9d582442f | refs/heads/master | 2020-03-28T05:18:48.417528 | 2018-08-02T15:04:32 | 2018-08-02T15:04:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,862 | from os.path import join
# configuration file
if 'config' not in vars() or not config or 'ntrees' not in config:
configfile: "config.yaml"
# output directory
output_dir=config["output_dir"]
# MAF file containing mutations
mutations=config["mutations"]
# pre-trained classifier
trained_classifier=config["trained_cl... | [
"collintokheim@gmail.com"
] | collintokheim@gmail.com | |
2721ad3609c87f4d0dcad289c0ed5d8d1ad446fc | 6af50159e5b4af2ee41abf3ad7a4082f522662db | /bv_cirq.py | 298d8d3403842a5651b7f282f0a1db66b01e0cc5 | [] | no_license | jikaufman/CS239-Final-Project | 425b1c8a2ea75ee6d37210e0ed66c610d333c8bb | 8765859fc63b32648ab9d934f09c4ddf2ceca752 | refs/heads/master | 2023-03-22T01:26:11.283205 | 2021-03-21T23:49:39 | 2021-03-21T23:49:39 | 349,953,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,203 | py | # Jacob Kaufman 204 929 264
# Nikhil Arora 204 965 841
# Bernstein-Vazirani Problem:
import cirq
import requests
'''
Input: a function f: {0,1}^n → {0,1}.
Assumption: f(x) = a*x+b
Output: a,b
Notation: {0,1}^n is the set of bit strings of length n, a is an unknown bit string
of length n, * is inner product mod 2, ... | [
"jacob@Jacobs-MacBook-Pro-2.local"
] | jacob@Jacobs-MacBook-Pro-2.local |
a500d0d54970ec25831ee58b453f03daf5f02059 | 306baa2ad596e3962e427d587e7b0d4175a1e48e | /configs/ttfnetv3/ttfv3net_r34_0114_3l_128_48_s16twice_basicup_aug_10x.py | 847551575ebcdb8c878b17ac7b992f8214941afd | [
"Apache-2.0"
] | permissive | mrsempress/mmdetection | 9c7ed7ed0c9f1d6200f79a2ab14fc0c8fe32c18a | cb650560c97a2fe56a9b369a1abc8ec17e06583a | refs/heads/master | 2022-04-24T04:34:30.959082 | 2020-04-26T07:52:23 | 2020-04-26T07:52:23 | 258,957,856 | 0 | 0 | Apache-2.0 | 2020-04-26T06:33:32 | 2020-04-26T06:33:32 | null | UTF-8 | Python | false | false | 4,154 | py | # model settings
model = dict(
type='TTFNet',
pretrained='modelzoo://resnet34',
backbone=dict(
type='ResNet',
depth=34,
num_stages=4,
out_indices=(0, 1, 2, 3),
frozen_stages=1,
norm_eval=False,
style='pytorch'),
neck=None,
bbox_head=dict(
... | [
"mrsempress98@gmail.com"
] | mrsempress98@gmail.com |
424604fc081fe31949ac6a2ea5e3618af401701a | b6e34dec0831f43d442e89c64f521f77bb2438b2 | /fbta/fbta_sequence.py | e2b01b7dfc4e19723ab1165e36d73b524e70cf67 | [] | no_license | kandation/FBTAFast | a1a38e09d5964915d46492f84f8fa0fead43185c | 505a2f232ef7ef9b6fc153357fb4eec5480cd92a | refs/heads/master | 2022-12-31T02:43:09.339384 | 2020-04-22T19:13:54 | 2020-04-22T19:13:54 | 212,693,322 | 0 | 0 | null | 2020-04-22T19:13:56 | 2019-10-03T22:34:15 | HTML | UTF-8 | Python | false | false | 4,209 | py | import time
from pprint import pprint
from fbta_04_activity_to_card import FBTAActivityToCardsNew
from fbta_05_cards_download_manager import FBTACardsDownloadManager
from fbta_02_clusters import FBTAClusterInfo
from fbta_06_photos_download_manager import FBTAPhotosDownloadManager
from fbta_07_dataft import FBTADataft
... | [
"akkhaporn@gmail.com"
] | akkhaporn@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.