blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9d4454002e2b83e56c9791cf28829e4f3702a52a | cb2b2758e5f65a1b318843f8bf16bf02cdbe67dd | /manage.py | 050aeee7cfed219edf2c6027c103aa15d22993f8 | [
"MIT"
] | permissive | Jasonmes/information | a5812d1a155a7cecea57681d5eead326123150bf | ab957fefe4c6be6eb1bba236293856aec3078373 | refs/heads/master | 2020-03-27T04:38:07.278558 | 2018-08-28T09:49:10 | 2018-08-28T09:49:10 | 145,956,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Jason Mess
from flask import Flask, session, current_app
from flask_script import Manager
from info import create_app, db
from flask_migrate import Migrate, MigrateCommand
import logging
"""
单一职责的原则:manage.py 仅仅作为项目启动文件
整体业务逻辑都在info那里
"""
"""
7: 创建manager管理类
"""
app = cr... | [
"wow336@163.com"
] | wow336@163.com |
56d438382f8e777dc47bfb62c93cfec05b656a75 | 7c887d87c5b588e5ca4c1bbdc9be29975c6ce6c3 | /packages/pyright-internal/src/tests/samples/classes5.py | 465aabe84f9fd0ce61c7e8e588ca191a9efe3983 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | hotchpotch/pyright | affebef139eb1538c089ef590eb703f357a30fc7 | 029eb2c869a27a82a2b0533a3ffa642ddbfcdb5d | refs/heads/main | 2023-05-15T18:07:39.834121 | 2021-06-07T20:36:14 | 2021-06-07T20:36:14 | 374,815,948 | 0 | 0 | NOASSERTION | 2021-06-07T22:28:23 | 2021-06-07T22:28:23 | null | UTF-8 | Python | false | false | 1,752 | py | # This sample tests the reportIncompatibleVariableOverride
# configuration option.
from typing import ClassVar, List, Union
class ParentClass:
cv1: ClassVar[int] = 0
cv2: ClassVar[int] = 0
cv3: ClassVar[int] = 0
var1: int
var2: str
var3: Union[int, str]
var4: int
var5: int
var6: ... | [
"erictr@microsoft.com"
] | erictr@microsoft.com |
82710855ba149a3231142417cade08c631c43e08 | ee4c4c2cc6c663d4233d8145b01ae9eb4fdeb6c0 | /configs/DOTA2.0/r2cnn_kl/cfgs_res50_dota2.0_r2cnn_kl_v1.py | 15a15502bc9c65486dcf8e626242bb3b93d8c93c | [
"Apache-2.0"
] | permissive | yangcyz/RotationDetection | c86f40f0be1142c30671d4fed91446aa01ee31c1 | 82706f4c4297c39a6824b9b53a55226998fcd2b2 | refs/heads/main | 2023-09-01T23:25:31.956004 | 2021-11-23T13:57:31 | 2021-11-23T13:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | # -*- coding: utf-8 -*-
from __future__ import division, print_function, absolute_import
import numpy as np
from configs._base_.models.faster_rcnn_r50_fpn import *
from configs._base_.datasets.dota_detection import *
from configs._base_.schedules.schedule_1x import *
from alpharotate.utils.pretrain_zoo import Pretrain... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
2f0b7a2ff65a9cedb6488f844f7b6af481bd1f86 | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/test/subprocessdata/qcat.py | 08b715cce136d5cb5d87d847dfe7e42128d26fa9 | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:039d2c9d75ec2406b56f5a3cc4e693bb8b671f4a515136536c61884e863c62a7
size 166
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
db3c3596f6e08896aba7e3e05d54cb730a85b14c | 6872c96481007db3e1b3c8c13fcb2b7f5b2aaf31 | /cauldron/writer.py | d02da8aa5263b448a607e891ad1b3f7887ffcfe0 | [
"MIT"
] | permissive | larsrinn/cauldron | f88014ba9619e028b3d12e5a538f59817fb5ceb1 | d3cb0e1d9b699d2d297471c2e0eb38c87892e5d6 | refs/heads/master | 2021-06-18T08:45:29.673525 | 2017-06-25T14:14:28 | 2017-06-25T14:14:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | import json
import time
import typing
def attempt_file_write(
path: str,
contents,
mode: str
) -> typing.Union[None, Exception]:
""" """
try:
with open(path, mode) as f:
f.write(contents)
except Exception as error:
return error
return None
def wri... | [
"swernst@gmail.com"
] | swernst@gmail.com |
26a19509bceef8c2c749b2333e9561a1c8149aa4 | c17c0731b4ec9350aed6f85de6198c5f89e65f32 | /clif/pybind11/function.py | 3f41a01a5daa245d8bea66394fca594f562e3407 | [
"Apache-2.0"
] | permissive | scal444/clif | 1608ac9eaf7ef63c1b480e12d2ae153e7e27190b | 702aa147ecbf1ae3720d650f7dbf53ccb2e9308e | refs/heads/main | 2023-04-17T03:20:56.453967 | 2021-04-16T17:27:47 | 2021-04-17T11:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,630 | py | # Copyright 2020 Google LLC
#
# 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, ... | [
"rwgk@google.com"
] | rwgk@google.com |
736adf23b6814571c24569110b8100e919416a54 | e251c6226c9779a735d2b10fcea64d76f7baa9d6 | /ingest/video.py | 2469c7d4b9b798294a544bf81fa450a97cde19f0 | [
"MIT"
] | permissive | digideskio/okavango | 2533beb0a8e277ddb0aca66c28d61b9917f6839f | d32fd7eb98128e825be01fd6b9991767d9c2b761 | refs/heads/master | 2021-01-21T08:55:20.584357 | 2016-04-17T23:51:09 | 2016-04-17T23:51:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import time, json
from tornado import gen, web
from housepy import log, util, config, strings
from ingest import save_files
"""Expecting JSON or form metadata with Member and a timestamp in UTC"""
def parse(request):
log.info("video.parse")
paths = save_files(request)
if not len(paths):
return No... | [
"brian.house@gmail.com"
] | brian.house@gmail.com |
de4d680a9e930a0fe11304f64b046f1245a2784d | ec00584ab288267a7cf46c5cd4f76bbec1c70a6b | /__Python/__Data structure/__dictionary/dict test password check.py | 0f94392c128ce6a8575d6d0179ee41144d42f789 | [] | no_license | rahuldbhadange/Python | b4cc806ff23953389c9507f43d817b3815260e19 | 7e162117f1acc12537c7eeb36d6983d804122ff3 | refs/heads/master | 2021-06-23T05:04:20.053777 | 2020-01-28T10:34:28 | 2020-01-28T10:34:28 | 217,307,612 | 0 | 0 | null | 2021-06-10T22:44:11 | 2019-10-24T13:35:42 | Python | UTF-8 | Python | false | false | 402 | py | USER_DATA = {"ioticuser": "ioticpassword"}
def verify(username, password):
print(USER_DATA)
print(username, password)
if not (username and password):
return "empty"
return USER_DATA.get(username) == password
try:
print(verify())
except AttributeError:
print("AttributeError")
except K... | [
"external.RahulDilip.Bhadange@rbeibsx.onmicrosoft.com"
] | external.RahulDilip.Bhadange@rbeibsx.onmicrosoft.com |
0cfd51e47344f0ef742982ad0445672aa79c9546 | 8734caf837ccc831b877ae10d45dff97ae435816 | /00.EXAMS/24March2019/Problem 1. Build a building.py | a0c643d07929000e9d8aed8e19b4162f3e693edd | [] | no_license | VLD62/PythonFundamentals | e86dd4f635a5862bdfaad2c24d5b22985ab25e0f | 914b541a71941efbf2c78ed1dfc49b6b9b850bb5 | refs/heads/master | 2020-06-03T19:36:26.244234 | 2019-08-17T14:57:22 | 2019-08-17T14:57:22 | 191,704,231 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | if __name__ == "__main__":
budget = float(input())
m = float(input())
n = int(input())
for i in range (0,n):
current_money = float(input())
print(f'Investor {i+1} gave us {current_money:.2f}.')
m += current_money
if m >= budget:
print(f'We will manage to bui... | [
"viliev2@dxc.com"
] | viliev2@dxc.com |
6a669815afdf97fa1f041c036326d20036da620e | c9642233f1de71f1a61ae28c695c2d9228825156 | /echecs_espoir/service/mahjong/models/hutype/one/lianliu.py | e141fe1ac60718ab1c3b8459d3fbb935497a664f | [
"AFL-3.0"
] | permissive | obespoir/echecs | d8314cffa85c8dce316d40e3e713615e9b237648 | e4bb8be1d360b6c568725aee4dfe4c037a855a49 | refs/heads/master | 2022-12-11T04:04:40.021535 | 2020-03-29T06:58:25 | 2020-03-29T06:58:25 | 249,185,889 | 16 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,473 | py | # coding=utf-8
import time
from service.mahjong.models.hutype.basetype import BaseType
from service.mahjong.constants.carddefine import CardType, CARD_SIZE
from service.mahjong.models.card.hand_card import HandCard
from service.mahjong.models.utils.cardanalyse import CardAnalyse
class LianLiu(BaseType):
"""
... | [
"jamonhe1990@gmail.com"
] | jamonhe1990@gmail.com |
dd86050790213200d401833149e1c343805eb8be | 772f8f0a197b736cba22627485ccbdb65ed45e4b | /day03/position_func.py | 270d7882a9e4112edd82471539de701354b3274e | [] | no_license | zhpg/python1805 | ddc69cd1b3bda8bef1cb0c2913d456ea2c29a391 | 3d98c8ebc106fd0aab633a4c99ae6591013e4438 | refs/heads/master | 2020-03-26T11:26:59.378511 | 2018-08-05T09:25:21 | 2018-08-05T09:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 716 | py | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
import sys
#source_fname = '/bin/ls'
#dst_fname = '/tmp/list'
def copy_func(source_fname,dst_fname):
with open(source_fname,'rb') as src_fobj:
with open(dst_fname,'wb') as dst_fobj:
while True:
data = src_fobj.read(4096)
... | [
"root@room9pc01.tedu.cn"
] | root@room9pc01.tedu.cn |
c6589b176aa1ed8216a32701aaf899ee17584d9a | 5922398212b6e113f416a54d37c2765d7d119bb0 | /python/Left Pad.py | 6b44f0b9b59873f2f9020934585bec963bde7a68 | [] | no_license | CrazyCoder4Carrot/lintcode | e777f73e1fdfe3b8abc9dbfc07d26602bf614151 | 33dcd7f0e2d9bee58840a3370837cb2db82de1eb | refs/heads/master | 2021-01-09T20:38:59.813198 | 2017-01-16T22:34:26 | 2017-01-16T22:34:26 | 60,287,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | class StringUtils:
# @param {string} originalStr the string we want to append to
# @param {int} size the target length of the string
# @param {string} padChar the character to pad to the left side of the string
# @return {string} a string
@classmethod
def leftPad(self, originalStr, size, padChar... | [
"liuzhenbang1988@gmail.com"
] | liuzhenbang1988@gmail.com |
3c9cd4e675f6c5673c40d885805d7b5155d271ec | d3caa06cfce6251d2e17588d1c6f7f401889b0dc | /android-app-security-detector/detector/ad/permission/predict.py | b3b38a73ad7bc422e15402a558e53f5b185daff6 | [] | no_license | wangtianqi1993/Android-App-Security-ML | 8470ca40346f9d778db5d02f81fddec757b2c125 | 55e2c52ab25e2f7c8087dcf043e4f37338ec9ed3 | refs/heads/master | 2021-01-23T12:11:14.345713 | 2016-06-09T08:42:21 | 2016-06-09T08:42:21 | 60,760,087 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,551 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import numpy
from androguard.core import androconf
from androguard.core.bytecodes import apk
from sklearn.externals import joblib
from sklearn.ensemble import RandomForestClassifier
from sklearn.naive_bayes import BernoulliNB
from sklearn.naive_bayes import Gaus... | [
"1906272972@qq.com"
] | 1906272972@qq.com |
288a7e3b57ee900ae1738a7ae195cb43ccd3a5a3 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/A/aviv/hukuman_teroris.py | 13e1a5422fceffbd49721049d19b9b3e11718359 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,432 | py | import scraperwiki
import simplejson
# retrieve a page
base_url = 'http://search.twitter.com/search.json?q='
q = 'hukuman_teroris'
options = '&rpp=1000&page='
page = 1
while 1:
try:
url = base_url + q + options + str(page)
html = scraperwiki.scrape(url)
#print html
soup = simplejso... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
43375659771617d2e6f263eb37c8e459a47c43ce | 6fc108af0e197f664d545acf770dba0d8e84174c | /Eve/train.py | 37bb683f5b87397409cefbe8c7cbf4815be0f6ce | [] | no_license | luotongml/DeepLearningImplementations | c2c4e900ffa19955c9d1667fb6797e19a53f9b4a | 69c776662a176ac6518b981d503606ad0b66296c | refs/heads/master | 2021-01-09T23:37:08.204057 | 2016-11-08T07:12:09 | 2016-11-08T07:12:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,179 | py | import os
import json
import models
import numpy as np
from keras.utils import np_utils
from keras.datasets import cifar10, cifar100, mnist
from keras.optimizers import Adam, SGD
from Eve import Eve
def train(model_name, **kwargs):
"""
Train model
args: model_name (str, keras model name)
**kwar... | [
"thibault.deboissiere@seeingmachines.com"
] | thibault.deboissiere@seeingmachines.com |
a7ccf4436f941a504fa8624da2ac7866311de64d | 08eef4241e62bcff651e3002fc0809fe50aaaee3 | /supervised_learning/0x0A-object_detection/1-main.py | cd784f66a21d2d15109f2d0c8de32bc5ee59becf | [] | no_license | Gaspela/holbertonschool-machine_learning | c4e470fed0623a5ef1399125b9f17fd4ae5c577b | b0c18df889d8bd0c24d4bdbbd69be06bc5c0a918 | refs/heads/master | 2023-04-02T00:34:16.350074 | 2021-04-03T02:27:41 | 2021-04-03T02:27:41 | 275,862,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/env python3
if __name__ == '__main__':
import numpy as np
Yolo = __import__('1-yolo').Yolo
np.random.seed(0)
anchors = np.array([[[116, 90], [156, 198], [373, 326]],
[[30, 61], [62, 45], [59, 119]],
[[10, 13], [16, 30], [33, 23]]])
yolo = ... | [
"samirmillanorozco@hotmail.com"
] | samirmillanorozco@hotmail.com |
1946e3e82bc870dc367c8d3b9b9c19536bb2aed4 | 75eef2ce83bd6dc5aa38e7df0f73c856200e11f4 | /aula/variable.py | 7bad9782cfa762920e1a7dfb21949823edd8d9a3 | [] | no_license | jruizvar/jogos-data | c4e823da3c1b1e8abf379d82f9e852e0b9c89638 | 6ddadb2ce51d33bc0f1b8cf55ce73dba2ba3509e | refs/heads/master | 2021-09-07T15:55:00.112934 | 2018-02-25T15:00:49 | 2018-02-25T15:00:49 | 110,839,946 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | """
Variables in tensorflow
"""
import tensorflow as tf
"""
RANK 0
"""
a = tf.Variable(4, name='a')
b = tf.Variable(3, name='b')
c = tf.add(a, b, name='c')
print("Variables in TF\n")
print(a)
print(b)
print(c)
print()
with tf.Session() as sess:
sess.run(a.initializer)
sess.run(b.initializer)
a_va... | [
"jruizvar@cern.ch"
] | jruizvar@cern.ch |
6cf95ad22d81f8faaf4adf2d4173c99727421d9f | c071eb46184635818e8349ce9c2a78d6c6e460fc | /system/python_stubs/-745935208/PySide2/QtWidgets/QCalendarWidget.py | f4a24c43449f654fc79c74ae91f41946c62ea220 | [] | no_license | sidbmw/PyCharm-Settings | a71bc594c83829a1522e215155686381b8ac5c6e | 083f9fe945ee5358346e5d86b17130d521d1b954 | refs/heads/master | 2020-04-05T14:24:03.216082 | 2018-12-28T02:29:29 | 2018-12-28T02:29:29 | 156,927,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,779 | py | # encoding: utf-8
# module PySide2.QtWidgets
# from C:\Users\siddh\AppData\Local\Programs\Python\Python37\lib\site-packages\PySide2\QtWidgets.pyd
# by generator 1.146
# no doc
# imports
import PySide2.QtCore as __PySide2_QtCore
import PySide2.QtGui as __PySide2_QtGui
import Shiboken as __Shiboken
from .QWidget impor... | [
"siddharthnatamai@gmail.com"
] | siddharthnatamai@gmail.com |
4053affa8458c52070d22a986202bae49f8a2fa7 | 267f2c09420436e97275986f825045cbe81fd3ec | /buy & sell vinyl records 4.4.py | b69da4532a338e3942dd9f4bc3d3d8102bb2e731 | [] | no_license | aiqbal-hhs/91906-7 | f1ddc21846bee6dd9dcf4f75bdabe68989390769 | 8d6aadedff8c6585c204a256b5bd3ad8294a815f | refs/heads/main | 2023-05-15T00:17:41.407536 | 2021-06-04T10:32:21 | 2021-06-04T10:32:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,087 | py | from functools import partial
from tkinter import *
from tkinter import ttk
import random
root = Tk()
blonde = 3
nectar = 6
flower_boy =12
##########################################calution######################################################
def buy_stock():
global blonde, nectar, flower_boy
vinyl ... | [
"noreply@github.com"
] | aiqbal-hhs.noreply@github.com |
0fa0da872f8cfed15ebe40428ea26881b6a40365 | f5134fd8fd9591ba86ac1e3585c6907db6711020 | /european_lobbyists.py | e4240122cef33aa677b77e90912b38ff28472278 | [] | no_license | shivswami/Scraperwiki-scrapers | 87fe03563ba7ef78c238acbf85ac6ca0bf131fac | 65d79bfbc2ec279107d872c03ea4d12bc2b39174 | refs/heads/master | 2020-12-11T07:53:55.543349 | 2012-05-09T00:08:35 | 2012-05-09T00:08:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,606 | py | import scraperwiki,re
#from lxml import etree
import lxml.html
import time
import datetime
# Scrapes the registry of European lobbyists: http://europa.eu/transparency-register/index_en.htm
baseurl = 'http://ec.europa.eu/transparencyregister/public/consultation/listlobbyists.do?alphabetName='
urllist = ['LatinAlphabe... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
aa928668b4039eff8719e93dfcf66d7051eef8ae | c486ba03781686f6e1a29a193c9db58083895d2e | /63_367_1.py | 279020345eb5ff86fd5c1f4883ee5d5c86c510b8 | [] | no_license | ywtail/leetcode | dcd32faf4772d597d8af9b9ff50b4c370d7fb97d | 2ad1f0e7589e3f5c92af9151c3318d360108df9d | refs/heads/master | 2021-01-12T16:25:17.247136 | 2019-01-26T17:17:04 | 2019-01-26T17:17:04 | 71,991,978 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | # coding:utf-8
# 367. Valid Perfect Square 有效的完美平方
# 56ms beats 18.34%
class Solution(object):
def isPerfectSquare(self, num):
"""
:type num: int
:rtype: bool
"""
i = 1
while num > 0:
num -= i
i += 2
return num == 0
solution = Soluti... | [
"ywtail@gmail.com"
] | ywtail@gmail.com |
02d3e13051d067620e74d3528947f305121b6be5 | 8151d8f9a2ca56a4d8fce502fdb50f13117d57b0 | /movie/migrations/0001_initial.py | 411302a4dc20a907b80293bc9390d9ec537d3e46 | [] | no_license | jessi0701/watcha | d9ed289350fa94cfaf3870a5dbb7f38adac01ece | 44d87aa422ed827dea35a81f36e5418cee46a6f7 | refs/heads/master | 2020-04-22T03:38:17.544181 | 2019-02-11T08:38:32 | 2019-02-11T08:38:32 | 170,094,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | # Generated by Django 2.1.5 on 2019-02-11 02:10
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.AutoField(au... | [
"jessi0701@naver.com"
] | jessi0701@naver.com |
ea42e6291b646d9117a24bbc13a07aa9a32487e3 | 8170f2672288c2964059ffc1de1bb4b96ab241fe | /core/src/cgcloud/fabric/operations.py | 29696dc868ec44b09774f4d950f77fb4901fbcb1 | [
"Apache-2.0"
] | permissive | hschmidt/cgcloud | be0e1549d741f7dadbd79e57a416b7283cb1479a | 528082dd512d67f211bf52cd792e439756ce4e3f | refs/heads/master | 2020-06-28T06:05:55.925278 | 2016-11-18T19:12:18 | 2016-11-18T19:12:18 | 74,506,485 | 1 | 0 | null | 2016-11-22T19:32:58 | 2016-11-22T19:32:58 | null | UTF-8 | Python | false | false | 7,796 | py | import os
import sys
import time
from StringIO import StringIO
from contextlib import contextmanager
from fcntl import fcntl, F_GETFL, F_SETFL
from pipes import quote
from threading import Thread
from bd2k.util.expando import Expando
from bd2k.util.iterables import concat
from bd2k.util.strings import interpolate as f... | [
"hannes@ucsc.edu"
] | hannes@ucsc.edu |
069b5e6f87c762349b10e840290f0cc3eecde14c | da29f1f5b4459fbfec968bb694bedb9586f87b14 | /new_algs/Numerical+algorithms/Spigot+algorithm/spigot_pi.py | dc161520ec1b495e2b2d14284dd1479e6a15a953 | [] | no_license | coolsnake/JupyterNotebook | 547806a45a663f090f313dc3e70f779ad9b213c0 | 20d8df6172906337f81583dabb841d66b8f31857 | refs/heads/master | 2023-01-13T18:55:38.615312 | 2020-11-17T22:55:12 | 2020-11-17T22:55:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,284 | py | import sys
# base 10000 pi spigot algorithm
#
# translated from C:
# http://stackoverflow.com/questions/4084571/implementing-the-spigot-algorithm-for-%CF%80-pi
#
# // Spigot program for pi to NDIGITS decimals.
# // 4 digits per loop.
# // Thanks to Dik T. Winter and Achim Flammenkamp who originally made a... | [
"chenqh@uci.edu"
] | chenqh@uci.edu |
3829f8bd800b15109f115213f746707864db6e02 | 987d9e7dd105fa69c4e8f4437aee87fc3a3076ce | /dj_file_async/users/migrations/0001_initial.py | 403cd2f2368340498ec3cea223f0d02fd525b081 | [] | no_license | CuriousLearner/dj-file-async | 87e8f44c7afe90b4203c5a3cee8ea8d81f40ad0c | 43ce0f9011cd0ce822f24f9ebf9e8160cd9187bd | refs/heads/master | 2021-06-12T11:01:30.229841 | 2019-06-17T12:06:04 | 2019-06-17T12:06:04 | 192,339,091 | 1 | 0 | null | 2021-05-27T13:44:44 | 2019-06-17T12:04:16 | Python | UTF-8 | Python | false | false | 2,610 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-23 11:13
# Standard Library
import uuid
# Third Party Stuff
import django.utils.timezone
from django.db import migrations, models
# dj-file-async Stuff
import dj_file_async.users.models
class Migration(migrations.Migration):
dependencies = [
... | [
"sanyam.khurana01@gmail.com"
] | sanyam.khurana01@gmail.com |
3e4568bdf21076949534d011c6bd8987522f94fc | 208d90e62d59f680db0ba76513cf2409b8521263 | /datasets/github/api.py | 6b564d83735bea1e616cfb829d929cb85a92173c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ChrisCummins/photolib | 930b7c1dfb6bb2a04592b1e01e8ce41f15304ef2 | a0592482317ef8c27676efe1c43452af5cd65106 | refs/heads/master | 2020-07-09T14:25:10.582105 | 2019-08-23T19:04:48 | 2019-08-23T19:04:48 | 122,436,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,786 | py | # Copyright 2018, 2019 Chris Cummins <chrisc.101@gmail.com>.
#
# 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 applicab... | [
"chrisc.101@gmail.com"
] | chrisc.101@gmail.com |
b58582f3df8782810013326ff895cc96a40dfa6b | 3044d26f03f23e8e8c5fcec57b78bfffe0fa0bd3 | /case/ProductCombination_BatchEditing.py | 929cc92648b3f376215fb072105210659cb88844 | [] | no_license | tian848-tim/trunk | de50a153c8cab3c81c79c523256a6f1b4c2f049d | cd52afdd003f094056dc2ea877c823a38e6a26fd | refs/heads/master | 2022-11-20T06:43:35.540105 | 2020-07-20T07:48:26 | 2020-07-20T07:48:26 | 281,048,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,722 | py | '''
测试用例标题:产品组合关系测试
测试场景:产品组合关系业务流程测试
创建者:Tim
创建日期:2018-11-20
最后修改日期:2018-11-20
输入数据:审批流程各个角色账号
输出数据:无
'''
# -*- coding: utf-8 -*-
import sys,os
curPath = os.path.abspath(os.path.dirname(__file__))
rootPath = os.path.split(curPath)[0]
#sys.path.append(rootPath)
import unittest
from cgitb import text
import selenium.... | [
"tim.long@Newaim01.com"
] | tim.long@Newaim01.com |
f4432cd1d8bf424e8ef954d35490f721b7ae780f | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /ros/py_ros/motoman/dummy_moto2.py | e7ed6746830ffd9242f3320e52d2bab45fa1454d | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,099 | py | #!/usr/bin/python
#\file dummy_moto2.py
#\brief Dummy motoman robot.
# This subscribes joint_path_command and send joint_states.
# The trajectory is interpolated with a spline.
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
#\date Nov.10, 2017
import roslib;
roslib.load_manifest('m... | [
"info@akihikoy.net"
] | info@akihikoy.net |
1054685a0135c681596542b67284adff29b9764b | 860b2541a2b2c39440711429357b63cbc521feed | /heaps/gfg-rearrange-chars.py | f29d087a8c2f8701ecb55b7bb833b81e54d4bc47 | [] | no_license | lalit97/DSA | a870533f52eb9e002db683552ce77e41efcde6b2 | e293004a4c2ca2d9040d939350cb6cb6f6ed2bd3 | refs/heads/master | 2022-02-09T01:36:08.166689 | 2022-02-02T14:45:40 | 2022-02-02T14:45:40 | 235,321,867 | 4 | 1 | null | 2022-02-02T14:45:41 | 2020-01-21T11:02:41 | Python | UTF-8 | Python | false | false | 941 | py | '''
https://practice.geeksforgeeks.org/problems/rearrange-characters/0
https://leetcode.com/problems/reorganize-string/discuss/384051/easy-peasy-python-heap-priority-queue-(100)
https://leetcode.com/problems/reorganize-string/discuss/456020/Python-Heap-Easy-to-understand-self-explanatory-code'''
import heapq
from co... | [
"sutharlalit.97@gmail.com"
] | sutharlalit.97@gmail.com |
6a661fa71ac3508f04547229754a4b4d516b68d3 | 6c219c027c7d0ef454bdeac196bd773e8b95d602 | /hardware/printer/printer_canon_unauth.py | 5485cefdf9e6e75750648e250a7c8b332ec55174 | [] | no_license | aStrowxyu/pocscan | 663f3a3458140e1bce7b4dc3702c6014a4c9ac92 | 08c7e7454c6b7c601bc54c21172c4788312603b1 | refs/heads/master | 2020-04-19T10:00:56.569105 | 2019-01-29T09:31:31 | 2019-01-29T09:31:31 | 168,127,418 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
name: 佳能打印机未授权漏洞
referer: http://www.wooyun.org/bugs/WooYun-2015-114364
author: Lucifer
description: 佳能打印机未授权可远程打印。
'''
import sys
import requests
import warnings
from termcolor import cprint
class printer_canon_unauth_BaseVerify:
def __init__(self, url):
s... | [
"wangxinyu@vackbot.com"
] | wangxinyu@vackbot.com |
2b18ca5eb036786c92f9b96924f1f5f95f0b4cae | b6abbba15aca653c98c1d37c364043219b1f6983 | /examples/list_comprehension.py | 4f0e3b437c021f5c22b642c5c059161a2c162c3d | [] | no_license | hazybluedot/ece2524_test | cab1fb8c6c6849195ac217f5e8f9d1ef4b6ca866 | 9cd00aa5da8adbdcdcb6ee8baa6582348d9d7857 | refs/heads/master | 2016-09-11T05:27:18.364851 | 2013-04-30T04:10:29 | 2013-04-30T04:10:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | #!/usr/bin/env python2
from sys import stdout,stderr
from math import pi
import re
print "list comprehension"
# list comprehension has a syntax similar to mathmatical set comprehension
N=5
squares=[ x**2 for x in range(1,N+1) ]
print "squares of natural numbers between 1 and {0}: {1}".format(N, squares)
mylist = [ 'a... | [
"dmaczka@vt.edu"
] | dmaczka@vt.edu |
fb059288b905e95a3e1628af1ae630889f5ecca7 | 1e8d7f047efc9869f7d9a57b53b3ac71a8ad086c | /21天学通Python_源代码/C20/findfat6.py | a5a6c54e0c40fb57a9643b9cc9b320e55ea22ea0 | [] | no_license | BrandonLau-liuyifei/liuyifei_sourse | c686776496fdccd89c8a28dbaba4b5f01c9ce013 | cbf916289613cc1dcc2db452bc6f2c3f6185c5f2 | refs/heads/master | 2021-05-17T16:51:29.104546 | 2020-08-16T13:39:25 | 2020-08-16T13:39:25 | 250,880,982 | 0 | 1 | null | 2020-08-16T13:39:26 | 2020-03-28T19:53:13 | Python | UTF-8 | Python | false | false | 8,930 | py | #coding:utf-8
#file: findfat6.py
import tkinter
import tkinter.messagebox,tkinter.simpledialog
import os,os.path
import threading
rubbishExt=['.tmp','.bak','.old','.wbk','.xlk','._mp','.log','.gid','.chk','.syd','.$$$','.@@@','.~*']
class Window:
def __init__(self):
self.root = tkinter.Tk()
... | [
"liuyifeiflying1991@outlook.com"
] | liuyifeiflying1991@outlook.com |
2dd96e64c0ed8f05831e7632864e216a1060f9ce | 645e9674e78b3c0ae72a7d4dc5f9694f97c035d3 | /Python/Examples2/gui_board.py | 1d2dfbea301e5609cbbfd6229923940162dc5e33 | [
"MIT"
] | permissive | msiplab/EicProgLab | 30cd1b3f45eb86c26a270af5888f6966abaac9ae | aa4b19e59154ce27cda856fa6a615859304bd595 | refs/heads/master | 2023-07-19T22:35:52.457866 | 2023-07-12T20:35:23 | 2023-07-12T20:35:23 | 125,338,699 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,653 | py | from tkinter import *
from tkinter.ttk import *
from board import Board
from board_out_of_range_exception import BoardOutOfRangeException
import time
class GuiBoard(Board):
def __init__(self,master=None,verbose=False):
"""コンストラクタ"""
# Board クラスのコンストラクタを呼び出し
super().__init__(verbose... | [
"shogo@eng.niigata-u.ac.jp"
] | shogo@eng.niigata-u.ac.jp |
71dd1cdece7a06f219a0da724fe6efa5f23c1a67 | 05ba1957e63510fd8f4f9a3430ec6875d9ecb1cd | /.history/fh/b_20200817025923.py | 554fe9ee1946167987776df52d744c79c196e6ca | [] | no_license | cod-lab/try | 906b55dd76e77dbb052603f0a1c03ab433e2d4d1 | 3bc7e4ca482459a65b37dda12f24c0e3c71e88b6 | refs/heads/master | 2021-11-02T15:18:24.058888 | 2020-10-07T07:21:15 | 2020-10-07T07:21:15 | 245,672,870 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | import requests as re
import pprint as p
url1 = "https://api.github.com/users/cod-lab/repos?sort=created"
pyload = {'sort': 'created'}
response = re.get('https://api.github.com/users/cod-lab/repos',params=pyload)
print(type(response))
result = response.json()
print(type(result))
print(len(result))
repos={}
for i i... | [
"arihant806@gmail.com"
] | arihant806@gmail.com |
45298a5c8642014f59b1aedaa12264dedcc01b18 | 0625c11ee4bbf9529d207e417aa6b7c08c8401fc | /users/migrations/0002_auto_20200516_1434.py | aff549793a337226a26f8265e64d52a95f375f81 | [] | no_license | crowdbotics-apps/new-test-5-dev-4699 | 2111ee0616e48956a31a2beb046d396f462e6b84 | 0a600a45de768bc39a1f195991d67a738e0d3fc7 | refs/heads/master | 2023-05-15T08:54:55.532847 | 2020-05-16T14:34:49 | 2020-05-16T14:34:49 | 264,456,120 | 0 | 0 | null | 2021-06-12T22:10:46 | 2020-05-16T14:34:01 | Python | UTF-8 | Python | false | false | 551 | py | # Generated by Django 2.2.12 on 2020-05-16 14:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='user',
name='test',
field=mo... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f98e4660ae0e69a70e376f8870f577004bbea6f3 | d2024c9a545dcb81448fa614da6827c180a4b2ee | /tensorflow/2018_6_10/mycode/tensorflow_code/towindows/mycode_save_temp/2-4_Tensorflow_example.py | af470b273213c4b4e6304296a47f6a459dfe3532 | [] | no_license | codybai/mycode | f10e06efebff6297ad38494de865b853849f5a3d | 4aaa89e7fd00e4c480be6ee931eb419dcdd69476 | refs/heads/master | 2020-03-19T06:38:51.396611 | 2018-06-11T05:30:51 | 2018-06-11T05:30:51 | 136,042,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import tensorflow as tf
import numpy as np
#使用numpy生成100个随机点
x_data = np.random.rand(100)
y_data = x_data*0.1 + 0.2 #直线
#构造一个线性模型 拟合上面直线
b = tf.Variable(0.) #0.0随便什么值都可以
k = tf.Variable(0.)
y = k*x_data + b
#二次代价函数
loss = tf.reduce_mean(tf.square(y_data-y))#取平均值(一个平方)
#定义一个梯度下降进行优化(优化器)
optimizer = tf.train.Gradi... | [
"codybai@163.com"
] | codybai@163.com |
b4be736634c779bb7c9e138d5003259a5f77d2dc | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /TopQuarkAnalysis/TopEventProducers/python/producers/TtFullLepEvtFilter_cfi.py | a03896e38afe60dba0432aa0dabd21e5ecec202a | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 299 | py | import FWCore.ParameterSet.Config as cms
#
# module to filter events based on member functions of the TtFullLeptonicEvent
#
ttFullLepEventFilter = cms.EDFilter("TtFullLepEvtFilter",
src = cms.InputTag("ttFullLepEvent"),
cut = cms.string("isHypoValid('kGenMatch') & genMatchSumDR < 999.")
)
| [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
3f198b7aded2d56301d365c0af65211cf37b0bc4 | 2f30cf20d58e2cde4037441e67213223c69a6998 | /lesson07_function/demo01.py | 7f656d289b3ed6bd3d67bcbfeac3f7d0e3bd28a9 | [] | no_license | zengcong1314/python1205 | b11db7de7d0ad1f8401b8b0c9b20024b4405ae6c | da800ed3374d1d43eb75485588ddb8c3a159bb41 | refs/heads/master | 2023-05-25T07:17:25.065004 | 2021-06-08T08:27:54 | 2021-06-08T08:27:54 | 318,685,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | """
什么是函数
f(x) = x + 2
y = x + 2
python当中的函数和数学函数并没有本质的区别
就是从数据函数。
#函数的定义
def 函数名():
#函数体
return 函数返回值
返回值是得到的结果,打印出来才能看到
函数定义好了以后并不会执行函数体,
如果要执行函数体,需要调用函数。
函数调用之前必须要定义,先定义再调用。
再函数定义的时候,最好不要调用它自己
函数作用:把一段可以重复运行的代码(3行,100行)放到函数体当中。
去调用函数的时候,
什么时候想到用函数:你有很多功能相同的代码需要多次运行。。。你在复制粘贴一段代码的时候
"""
#Step Into 进... | [
"237886015@qq.com"
] | 237886015@qq.com |
76c947c5838219776b29166da92155d230f1d1e8 | ce6fc44470dcb5fca78cdd3349a7be70d75f2e3a | /ICPC/2015 Divisionals/lights/submissions/lights_darcy.py | 5db44cf6b01caa2e5ca9d2f55e859afab5d5f196 | [] | no_license | cormackikkert/competitive-programming | f3fa287fcb74248ba218ecd763f8f6df31d57424 | 3a1200b8ff9b6941c422371961a127d7be8f2e00 | refs/heads/master | 2022-12-17T02:02:40.892608 | 2020-09-20T11:47:15 | 2020-09-20T11:47:15 | 266,775,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | n,d = [int(x) for x in input().split()]
ans = "YES"
for _ in range(n):
x,a,g,r = [int(x) for x in input().split()]
if x < a or (x-a) % (g+r) > g:
ans = "NO"
print(ans)
| [
"u6427001@anu.edu.au"
] | u6427001@anu.edu.au |
da5c3b9df32592471753b77eb653a26f9db9758a | b3e525a3c48800303019adac8f9079109c88004e | /iota/test/apulu/config/add_routes.py | c282d5b2da7b3385d804983ce569bed324eeaa4c | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | #! /usr/bin/python3
import pdb
import os
import json
import sys
import iota.harness.api as api
import iota.harness.infra.utils.parser as parser
import iota.test.apulu.config.api as config_api
import iota.protos.pygen.topo_svc_pb2 as topo_svc
def __get_route_add_cmd(route, gw):
route_base_cmd = "ip route add %s ... | [
"noreply@github.com"
] | PsymonLi.noreply@github.com |
41db1bba4d7414222ccffd424de0dd641cfea02a | 3831421b5f4f294bf8f4089b1f617cfc82c2351a | /MyInte/SCRIPTS/assit/useiniEr.py | a2191acb7004daa4ebaa23c14ec4258d717d953a | [] | no_license | jesuel51/MyInte | 6ce31b813c51e30780115f1a5efcafd8d264ae43 | 817a6df61cb77dedf0e4a586bd09906a4b175e96 | refs/heads/master | 2020-05-31T01:46:35.983688 | 2019-06-03T18:17:34 | 2019-06-03T18:17:34 | 190,056,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # this script is modified based on useiniT2.py
if root['SETTINGS']['PHYSICS']['useiniEr'][0]==1:
pvt_i=root['SETTINGS']['PHYSICS']['useiniEr'][1]
drho_tgyro=root['SETTINGS']['PHYSICS']['drho_tgyro']
num=int(pvt_i/drho_tgyro)+1
diff_Er=root['SETTINGS']['PHYSICS']['omega_sparse'][num]-root['SETTINGS']['PH... | [
"1018910084@qq.com"
] | 1018910084@qq.com |
6f9778c931a8859d868533b4217a25cae9247572 | 72231c7eafef1d0885fd4d74e61be939748c44bf | /examples/run.py | 396cbd995ceee81caf0e77b11e3c17b4aad8624d | [] | no_license | jgsogo/conan-poc-graph | b5acf10a4a967461ebe95d7ae717838b9c883676 | 40491d05e7c7aeb16bcc49eb20f1ef3c5a27f282 | refs/heads/master | 2022-06-09T05:51:29.691586 | 2020-05-06T17:11:29 | 2020-05-06T17:11:29 | 258,741,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | import json
import os
import sys
import networkx as nx
from conans.graph import Graph
from conans.graph.builders import bfs_builder, BFSBuilderEx1
from .utils import ProviderExample
def main(graphml, jsonfile):
available_recipes = json.load(open(jsonfile))
input_graph = nx.read_graphml(graphml)
nx.drawi... | [
"jgsogo@gmail.com"
] | jgsogo@gmail.com |
e61c4fdd44f1d4075fc4cb66482035008e151a78 | dd65b9bc9475a6cc58817fd45c078e5a6abae241 | /Tensorflow/car/web-tf2/gcf-packs/tensorflow2.0/source/tensorflow/_api/v2/compat/v2/summary/__init__.py | 2012d8ba0e140114063e73352525237f5323e20b | [] | no_license | jumbokh/gcp_class | 5b68192ab4ad091362d89ad667c64443b3b095bb | 0a8e2663bfb5b01ce20146da178fa0c9bd7c6625 | refs/heads/master | 2021-10-22T09:22:04.634899 | 2021-10-21T12:46:10 | 2021-10-21T12:46:10 | 228,617,096 | 8 | 7 | null | 2021-08-25T15:55:30 | 2019-12-17T12:58:17 | Python | UTF-8 | Python | false | false | 1,170 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Operations for writing summary data, for use in analysis and visualization.
See the [Summaries and
TensorBoard](https://www.tensorflow.org/guide/summaries_and_tensorboard) guide.
"""
f... | [
"jumbokh@gmail.com"
] | jumbokh@gmail.com |
ee485ffb5dc6c4bb9f9a74b1700ca79fcc71dc8d | c3e3b606e312e5e50afba39db2ea573c21171405 | /transaction/migrations/0003_auto_20170803_1730.py | ce51e92fd4b8193a9bdcf4f3daf72814b3c5e412 | [] | no_license | CodeNicely/AccountingWebApp | 3fa88ea196afda38ff3f3015e8b0623c41b7ee8a | a96932af24f0dff44e464f9fbeb3ef49956764b2 | refs/heads/master | 2021-01-02T22:52:56.898964 | 2017-09-19T10:26:52 | 2017-09-19T10:26:52 | 99,409,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,152 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2017-08-03 17:30
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('transaction', '0002_auto_20170803_1514'),
]
operatio... | [
"mayankchaurasia.bsp@gmail.com"
] | mayankchaurasia.bsp@gmail.com |
23f25c266ed6b2551223457bdbd4656108abc748 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03086/s746635354.py | 575ea419f24cb64ccfbb4765610d6a8475a77ce3 | [] | 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 | 355 | py | S = input()
ans = 0
for i in range(len(S)):
for j in range(i, len(S)):
sub_s = S[i:j+1]
is_acgt = True
for s in sub_s:
if s == "A" or s == "C" or s == "G" or s == "T":
continue
else:
is_acgt = False
if is_acgt:
ans ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c5c99755f83c77bbb115fd5e364be87b9f009220 | b049a961f100444dde14599bab06a0a4224d869b | /sdk/python/pulumi_azure_native/containerregistry/v20190601preview/_enums.py | d0e595ad3fef9d9ce637c62acc0fa0a0ab83b51f | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | pulumi/pulumi-azure-native | b390c88beef8381f9a71ab2bed5571e0dd848e65 | 4c499abe17ec6696ce28477dde1157372896364e | refs/heads/master | 2023-08-30T08:19:41.564780 | 2023-08-28T19:29:04 | 2023-08-28T19:29:04 | 172,386,632 | 107 | 29 | Apache-2.0 | 2023-09-14T13:17:00 | 2019-02-24T20:30:21 | Python | UTF-8 | Python | false | false | 2,852 | py | # coding=utf-8
# *** WARNING: this file was generated by pulumi. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
from enum import Enum
__all__ = [
'Architecture',
'BaseImageTriggerType',
'OS',
'ResourceIdentityType',
'SecretObjectType',
'SourceControlType',... | [
"github@mikhail.io"
] | github@mikhail.io |
9c4bf09d819e17fe582f6b48d0e82b956fa722d2 | bdfb6084a33e4b443ffc2a97673ecbfa736d947b | /.history/vision/tensorflow_object_detect/scripts/detect_lane_20210224132019.py | 517152289cafe1d8a511b7cb127705ebdbd59333 | [
"MIT"
] | permissive | robcn/Autopilot-Demo | 5c830a0f721d3e8df864c0fcb26e9ea280bbe3fe | 0b7178ae3f417f529d7015373a1e51eb71df28ab | refs/heads/master | 2023-03-16T00:20:31.498672 | 2021-02-24T13:34:06 | 2021-02-24T13:34:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,127 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import rospy
import numpy as np
import cv2
from cv_bridge import CvBridge
from std_msgs.msg import UInt8, Float64
from sensor_msgs.msg import Image, CompressedImage
import time
# from vision_msgs.msg import Center
class DetectLane():
def __init__(self):
self.... | [
"hemingshan_1999@163.com"
] | hemingshan_1999@163.com |
9196ebb5aec8baa5f60c3c5cf2fb5d3011f98fff | c16d4c86ef1f874b701c707b5a01556d36fa0d4f | /test/test_ipamsvc_create_option_code_response.py | dc4d9225dc29304f6595bb33cef120d70bfe5095 | [] | no_license | uuand/ibcsp_ipamsvc | 7f9f4c2509ce9049e2ab39d1072e9d1d31a5165c | 94a5475b11997551f732ceffcbd627d27ac37b2c | refs/heads/master | 2022-11-21T07:22:12.131660 | 2020-07-24T08:38:55 | 2020-07-24T08:38:55 | 281,871,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,583 | py | # coding: utf-8
"""
IP Address Management API
The IPAM/DHCP Application is a BloxOne DDI service providing IP address management and DHCP protocol features. The IPAM component provides visibility into and provisioning tools to manage networking spaces, monitoring and reporting of entire IP address infrastruct... | [
"jens-peter.wand@metrosystems.net"
] | jens-peter.wand@metrosystems.net |
1b51955dcd03e031fd0e85fcc4b87bdab823692d | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/battle/shared/siege_component.py | 73f51182224a9c1ece84e7e55c2e91739f7e0985 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 5,817 | py | # 2017.02.03 21:49:10 Střední Evropa (běžný čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/shared/siege_component.py
import BigWorld
from gui.shared.utils.TimeInterval import TimeInterval
from constants import VEHICLE_SIEGE_STATE
class _ComponentUpdater(object):
"""
This is a base up... | [
"info@webium.sk"
] | info@webium.sk |
3a2072c419b039df9feecca52bca18f6bb7d8ad4 | c81d0270a4e924357735dd955b9cd463c5fa87e7 | /note/migrations/0009_notes_title_salt.py | 9c3192de173d8d6a48c40bbf2396b30beca46347 | [
"MIT"
] | permissive | pyprism/Hiren-Notes | 25210384ee8ef777f1e05bb6e32a1bde2d6c4f31 | 7548ef8927cdac4342ab54e72cf949fd484342be | refs/heads/master | 2021-06-05T04:17:24.229239 | 2019-04-12T16:17:22 | 2019-04-12T16:17:22 | 19,016,855 | 1 | 0 | MIT | 2021-03-19T21:58:00 | 2014-04-22T04:16:53 | JavaScript | UTF-8 | Python | false | false | 409 | py | # Generated by Django 2.0.2 on 2018-03-02 10:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('note', '0008_auto_20180302_1025'),
]
operations = [
migrations.AddField(
model_name='notes',
name='title_salt',
... | [
"git.pyprism@gmail.com"
] | git.pyprism@gmail.com |
14f22c74f6937fb2d3e1b639b5efb8a0673e5765 | bb150497a05203a718fb3630941231be9e3b6a32 | /framework/e2e/jit/test_SELU_1.py | a2c481e2d501436f0c628320c52c9085d53004f5 | [] | 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 | 602 | py | #!/bin/env python
# -*- coding: utf-8 -*-
# encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python
"""
test jit cases
"""
import os
import sys
sys.path.append(os.path.abspath(os.path.dirname(os.getcwd())))
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils"))
from utils.yaml_loader import Ya... | [
"825276847@qq.com"
] | 825276847@qq.com |
8d4da3d22d15ab100ea55a5fc8e0ff016faad178 | 55c250525bd7198ac905b1f2f86d16a44f73e03a | /Python/Scripts/Windows Screen Grabber.py | ad25866ec1abc82b1fb1290512d123242b04df15 | [] | no_license | 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 | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d42d1123aca40cb02062035961a92fbd679ac421ced273e1fe467c16558b125b
size 1194
| [
"nateweiler84@gmail.com"
] | nateweiler84@gmail.com |
3a1984fc6224def23eb696ddb9f5dad7ba49d56a | 62e58c051128baef9452e7e0eb0b5a83367add26 | /edifact/D09B/RPCALLD09BUN.py | 1841fa1a0ab031e47d5def4db3d66a6b4b480a92 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,502 | py | #Generated by bots open source edi translator from UN-docs.
from bots.botsconfig import *
from edifact import syntax
from recordsD09BUN import recorddefs
structure = [
{ID: 'UNH', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGM', MIN: 1, MAX: 1},
{ID: 'DTM', MIN: 1, MAX: 99},
{ID: 'RFF', MIN: 0, MAX: 9999, LEVEL: [
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
3314d516df6394caddba78195cce8da8b6f91c13 | 69f1529b5b4ef46f0b5a963667b9c00fd484487b | /docassemble_webapp/docassemble/webapp/restart.py | 0a665feeb0fba0085fc5bc2769f202a86083772f | [
"MIT"
] | permissive | vfulco/docassemble | 571e9e0e5140cc8c667cb51d4308744107b1c214 | 482aae3217dd80e018a670588142cf694c300fc9 | refs/heads/master | 2021-01-11T04:56:25.263813 | 2016-12-15T03:58:15 | 2016-12-15T03:58:15 | 76,629,690 | 1 | 0 | null | 2016-12-16T06:53:07 | 2016-12-16T06:53:07 | null | UTF-8 | Python | false | false | 800 | py | import sys
import os
import docassemble.base.config
from docassemble.base.config import daconfig, s3_config, S3_ENABLED
if __name__ == "__main__":
docassemble.base.config.load(arguments=sys.argv)
WEBAPP_PATH = daconfig.get('webapp', '/usr/share/docassemble/webapp/docassemble.wsgi')
def main():
if S3_ENABLED:
... | [
"jpyle@philalegal.org"
] | jpyle@philalegal.org |
6aad7ad5c4ed7a14ea13239ee6e47bfdae400035 | a2da53c90ed7876c8e790b525a66818df6fc57ac | /main.py | 0ace4937af7ab9dd166d73930f96c69dc2312714 | [] | no_license | Rishi05051997/flask-learning | 103a82378e37370a78c01c2e8a95f4032b13b0f5 | 4109fe641283bf6c86178ece72a1444580b3c101 | refs/heads/main | 2023-06-18T14:27:20.940448 | 2021-07-20T10:42:04 | 2021-07-20T10:42:04 | 387,658,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from flask import Flask, render_template
app = Flask(__name__, template_folder='templates')
@app.route("/")
def home():
return render_template('index.html')
@app.route("/about")
def about():
return render_template('about.html')
@app.route('/contact')
def contact():
return render_template('contact.ht... | [
"vrushabhdhatral10@gmail.com"
] | vrushabhdhatral10@gmail.com |
3ad7f1f5cd34f8b6e9246a83cf38e08f43df17c2 | e6fac8e0289d9f82369d2eb8e22bc175c6f51b3b | /Arcade/Intro/Level 9/Knapsack Light/code.py | ab01c71d4bb8495d7fb0d3ce190f55db1992bf6f | [] | no_license | Zahidsqldba07/CodeFights-9 | f361c15d24f96afa26de08af273a7f8f507ced4a | 6c5d152b1ad35cf178dd74acbc44ceb5fdcdf139 | refs/heads/master | 2023-03-18T23:52:43.274786 | 2017-05-12T07:28:08 | 2017-05-12T07:28:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 434 | py | # Uh... these problems are kind of trivial.
def knapsackLight(value1, weight1, value2, weight2, maxW):
if weight1 + weight2 <= maxW:
return value1 + value2
if weight1 > maxW or weight2 > maxW:
if weight1 > maxW and weight2 > maxW:
return 0
if weight1 > maxW:
retu... | [
"hallosputnik@gmail.com"
] | hallosputnik@gmail.com |
e3c83cbf552b41004b3b9b6a6caa62486ed99d3b | 83fd7f0b557b40d0c00bdcf33f8a4d5a39fba919 | /modules/Tkinter/tkinter_examples.py | 6f983ba3bf6d58018eac6f08d211c987b334c0ae | [] | no_license | stradtkt/Python-Examples | 2ad6eef5e651803976ae05ce92a0e98944e10d13 | 6e700a23e65ba37d61ef7f3ff3da5feb1da3b33f | refs/heads/master | 2020-03-09T22:22:31.437381 | 2018-04-14T03:56:49 | 2018-04-14T03:56:49 | 129,032,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | try:
import tkinter
except ImportError:
import Tkinter as tkinter
# tkinter._test()
# mainWindow = tkinter.Tk()
# mainWindow.title("Hello world")
# mainWindow.geometry('640x480+8+400')
# label = tkinter.Label(mainWindow, text="Hello World")
# label.pack(side='top')
# leftFrame = tkinter.Frame(mainWindow)
# left... | [
"stradtkt22@gmail.com"
] | stradtkt22@gmail.com |
60d249fc4269358356d06893e79b8dffc1366916 | 81d635211686b1bc87af5892bd9e0fb95cc2ddb8 | /adwords api/googleads-python-lib-master/examples/dfp/v201502/custom_targeting_service/update_custom_targeting_keys.py | 365f935de4fca4a2f72a434162745dcabdd01844 | [
"Apache-2.0"
] | permissive | analyticsbot/Python-Code---Part-2 | de2f0581258b6c8b8808b4ef2884fe7e323876f0 | 12bdcfdef4472bcedc77ae61707c25a4a09cba8a | refs/heads/master | 2021-06-04T05:10:33.185766 | 2016-08-31T13:45:45 | 2016-08-31T13:45:45 | 66,679,512 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | #!/usr/bin/python
#
# Copyright 2015 Google Inc. 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 b... | [
"ravi.shankar1788@gmail.com"
] | ravi.shankar1788@gmail.com |
4ecbb5094d9e12a552d5a5feb96339bc971ade3b | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/minWindow_20200618151102.py | c6c0994a2195ff78f8088916365811c2e25eeb39 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 769 | py | # for this question we have two pointers
# left pointer
# right pointer
# we move the right pointer and maintain the position of the left pointer
# when we find the word we move the left pointer
# store that word its shortest form
# we keep moving the right pointer
# sz,azjskfzts
def minWindow(str1,str2):
le... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
02bc1425fec78e9b004e5d15542a8180ac5f69b1 | 4e6fbaabd7d8e2504c9ac75dda322327f5514fb1 | /rooms/views.py | c2a54f88f2101396ae080809a5d610c300223da4 | [] | no_license | amrebrahem22/lavish | bd82d0131a6923f1749b53b7bd5f54c2ebc08be0 | d3a9d492f93f441aafeb2082f2d627c9d4f16769 | refs/heads/master | 2023-01-09T03:00:54.881316 | 2020-11-16T23:04:21 | 2020-11-16T23:04:21 | 300,782,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,112 | py | from django.views.generic import ListView, DetailView, View, UpdateView, FormView
from django.shortcuts import render, redirect, reverse
from django.core.paginator import Paginator
from django.contrib.auth.decorators import login_required
from django.contrib import messages
from django.http import Http404
from django.c... | [
"amrebrahem226@gmail.com"
] | amrebrahem226@gmail.com |
1137b8d72fb9f4c1d45625d4c93ff119b780a6cf | bb150497a05203a718fb3630941231be9e3b6a32 | /models/PaddleHub/hub_all_func/all_module/all_hrnet48_imagenet_ssld.py | 4e18dac3eaa0bf62f908389b457657a2fc4cccee | [] | 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 | 520 | py | """hrnet48_imagenet_ssld"""
import os
import paddle
import paddlehub as hub
if paddle.is_compiled_with_cuda():
paddle.set_device("gpu")
use_gpu = True
else:
paddle.set_device("cpu")
use_gpu = False
def test_hrnet48_imagenet_ssld_predict():
"""hrnet48_imagenet_ssld predict"""
os.system("hub i... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
7120ce421c25f5d5078df1119fe035cdf4506131 | 75dcb56e318688499bdab789262839e7f58bd4f6 | /The Complete Data Structures and Algorithms Course in Python/src/Section 18 Cracking Linked List Interview Questions/Q1_RemoveDups.py | 179d364fc062a36387c167b262f78109862dcb5d | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 1,143 | py | # Created by Elshad Karimov on 17/05/2020.
# Copyright © 2020 AppMillers. All rights reserved.
# Question 1 - Remove Dups : Write a code to remove duplicates from an unsorted linked list.
from LinkedList import LinkedList
def removeDups(ll):
if ll.head is None:
return
else:
currentNode ... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
148e21cdaebd61c3d3edd7f4b8df1223f60239a5 | 78d160bba37805d9ce1f55a02f17d8923e43fcfc | /learning_resources/models_test.py | d45a238691389f6e87fa206396b2e3b5c1649b6c | [
"BSD-3-Clause"
] | permissive | mitodl/mit-open | a79a4d55533d7abecedda48b62aec23a6b3086f0 | 51636099fb2bfaa77cd8c2154f7bcb09f3d36f71 | refs/heads/main | 2023-08-30T19:24:08.426942 | 2023-08-30T17:03:09 | 2023-08-30T17:03:09 | 672,068,771 | 0 | 0 | BSD-3-Clause | 2023-09-14T20:34:23 | 2023-07-28T20:54:37 | Python | UTF-8 | Python | false | false | 3,884 | py | """Tests for learning_resources.models"""
import pytest
from learning_resources import constants
from learning_resources.constants import LearningResourceType
from learning_resources.factories import (
CourseFactory,
LearningResourceFactory,
LearningResourcePlatformFactory,
LearningResourceRunFactory,
... | [
"noreply@github.com"
] | mitodl.noreply@github.com |
fdc763851d07a181c2b83e74f4ee362cdc352308 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/elastic-san/azext_elastic_san/aaz/latest/elastic_san/_delete.py | 683649b4034cb0874134a924fa1b1467b4df0263 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 5,340 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
#
# Code generated by aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
39969c1880d5f4bd42afe17981b473f757389342 | 52a15d4fabf68bf23a23799312ae40465764908c | /src/maintenance/dumppreferences.py | 963258beee0d9b9d24e4a3c25021bdff41c3da25 | [
"MIT",
"Apache-2.0"
] | permissive | jensl/critic | 2071a1b0600051967323df48f4d3a5656a5d2bb8 | c2d962b909ff7ef2f09bccbeb636333920b3659e | refs/heads/stable/1 | 2022-05-28T03:51:15.108944 | 2018-03-27T18:47:46 | 2018-03-29T15:08:30 | 6,430,552 | 224 | 36 | NOASSERTION | 2023-05-29T15:38:00 | 2012-10-28T18:26:04 | Python | UTF-8 | Python | false | false | 4,036 | py | # -*- mode: python; encoding: utf-8 -*-
#
# Copyright 2012 Jens Lindström, Opera Software ASA
#
# 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... | [
"jl@opera.com"
] | jl@opera.com |
78b36772d1120f0b4fc1cc8b334f2d27170c12da | c698fb03aa2bf034904a0310931b473b6da66fdc | /com/study/algorithm/offer/面试题 04.02. 最小高度树.py | cba62dda0a65f8ccc1bc044898548fa4d9b03b0a | [] | no_license | pi408637535/Algorithm | e46df1d07a519ab110e4f97755f461a1b2b7c308 | 75f4056ec6da01f7466a272871a7f7db579166b4 | refs/heads/master | 2021-08-29T19:19:53.368953 | 2021-08-22T16:30:32 | 2021-08-22T16:30:32 | 213,289,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution(object):
def sortedArrayToBST(self, nums):
"""
:type nums: List[int]
:rtype: TreeNode
"""
if not nu... | [
"piguanghua@163.com"
] | piguanghua@163.com |
47a1919e488e11c462b12e89fd858ceb063b0bc4 | 9a5438bdb8e84d0167ddea5458a7f729fdd54121 | /dataproviders/serializers/EndpointSerializer.py | cdc9b598acdf3c773cfc7c4d32fc9060ea968bde | [] | no_license | Grusinator/MetaDataApi | 740fd2be4cb97b670f827a071a0ac8c50f79f8ff | 081f881c735466ed1dbbd68646b821299c5168f8 | refs/heads/master | 2023-07-25T23:58:22.179717 | 2020-03-15T09:36:05 | 2020-03-15T09:36:05 | 149,087,967 | 5 | 1 | null | 2023-07-25T15:39:12 | 2018-09-17T07:45:09 | CSS | UTF-8 | Python | false | false | 368 | py | from rest_framework import serializers
from dataproviders.models import Endpoint
class EndpointSerializer(serializers.ModelSerializer):
class Meta:
model = Endpoint
exclude = ["id", "data_provider"]
def create(self, validated_data):
validated_data.pop("data_fetches")
return s... | [
"grusinator@gmail.com"
] | grusinator@gmail.com |
844c09cc9e371c8dfe2d5499cd6f071d91fda930 | 722de5766ccf7e7a2d63c425a0c8dd78287f1853 | /homework7/Ex3.py | 7756cb00992285fba8a460dc1fe621d60707ee8a | [] | no_license | Alice-Avetisyan/project | 79a61bbd0ce3f5d8571a3c1d112f078f85583e0b | eb51676cdce1ff787738317aacb4c869a001b769 | refs/heads/master | 2020-07-30T09:04:07.555681 | 2019-12-15T17:15:05 | 2019-12-15T17:15:05 | 210,166,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | employees = {'Jack Smith': 'Engineer', 'Hideo Kojima': 'Director', 'Yoji Shinkawa': 'Art_director', 'John Anderson': 'Engineer'}
def find_employee(employees):
keys = list(employees.keys())
count = 0
for key in keys:
if key[:4] == 'John':
count += 1
print("There is/are {0} em... | [
"noreply@github.com"
] | Alice-Avetisyan.noreply@github.com |
2f6f7434f4f404d3c911fc7cebf7efb8705a4e22 | 292d23019c18d0b724aed88f04a0f20b5b616bb9 | /date20190110/V3/testcase/test_login.py | 33890fbf02875157430929453396eba0ee274ed2 | [] | no_license | RedAnanas/macbendi | 6f1f6fd41ed1fe8b71408dffa0b964464bd00aa8 | 8d5aa39d9389937f0e0c3f7a7d6532537f33cda8 | refs/heads/master | 2023-06-11T18:57:31.061009 | 2021-06-29T15:04:56 | 2021-06-29T15:04:56 | 380,759,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
# author:Administrator
# datetime:2019/1/10 20:36
# software: PyCharm
from date20190110.V3.common.browser_manager import BrowserManager
from date20190110.V3.common.login import Login
with open("D:\Python\date20190110\V3\data\login.txt","r") as f:
lines = f.readl... | [
"1315157388@qq.com"
] | 1315157388@qq.com |
73cbe5cf938fa4c42f221b7766cf9eff7a249e5e | 88332700e893553ed52247b83f7ae8e542e67239 | /test/test_livenodesnagiosplugin.py | f65af48119016c5cce45e6333bff12c7b1222c23 | [] | no_license | zhuohuwu0603/pylib | 3857a8ec3954d09e58c21c14d683bc95cb7f9d23 | 02b0a343b055dfd6bed4d64c40aa77ed8394c1b2 | refs/heads/master | 2020-08-12T02:55:35.956301 | 2019-10-09T23:08:58 | 2019-10-09T23:08:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,593 | py | # vim:ts=4:sts=4:sw=4:et
#
# Author: Hari Sekhon
# Date: 2014-09-15 20:49:22 +0100 (Mon, 15 Sep 2014)
#
# https://github.com/harisekhon/pylib
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback
# to help ... | [
"harisekhon@gmail.com"
] | harisekhon@gmail.com |
857994885a60be47a6073d60ecb803208b9d6203 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/i16-config/scripts/diffractometer/calc/Rotations.py | 0e9a9194d69dc76b3538e46850b2d5a1c0f31ba7 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | import java
import math
from math import *
#class Rotations(java.lang.Object):
# def __init__(self):
# self.rrrr=0.0
def R_x_l(alpha):
"@sig public double R_x_l(double alpha)"
# phi=phi*pi/180.0
ALPHA=[[1.0, 0.0, 0.0],[0.0, cos(alpha), sin(alpha)], [0.0, -sin(alpha), cos(alpha)]]
re... | [
"matthew.webber@diamond.ac.uk"
] | matthew.webber@diamond.ac.uk |
10e9d60fe572976b31b043e91b1f37ebfe91e3cc | 021dcf39f7cfb303ff427d7344026004f9d4cfdd | /bookit/users/models.py | d0d670ddce49d8602444e4a6ff2ca76b0307716c | [
"MIT"
] | permissive | kamranhossain/bookit | dfaca266b93e0ee8a50e88a2a7702a6f5ece35f1 | 4189a0ed620d7a595de2c113bb3a2d435d66d5f0 | refs/heads/master | 2021-05-11T23:36:00.630917 | 2017-08-16T20:30:33 | 2017-08-16T20:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 695 | py | from django.contrib.auth.models import AbstractUser
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
@python_2_unicode_compatible
class User(AbstractUser):
# First Name a... | [
"aniruddha@adhikary.net"
] | aniruddha@adhikary.net |
7845b036d7efd63ae70213db83a48143f7ba9111 | 07e750cb558de03104f7c033286329b69bbdfc23 | /Chapter2_TimeFrequency_ShortTime/enframe.py | 73b2105d3c4ebfbe12af01200251ac78b583cdb7 | [
"MIT"
] | permissive | BarryZM/Python_Speech_SZY | d1e2fb6eadd6b10cfa5a65a622ae73f578d2f6d1 | 0074ad1d519387a75d5eca42c77f4d6966eb0a0e | refs/heads/master | 2023-03-09T21:47:54.465905 | 2021-03-02T17:21:32 | 2021-03-02T17:21:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,100 | py | # 分帧
from scipy.io import wavfile
import numpy as np
import matplotlib.pyplot as plt
def enframe(x, win, inc=None):
nx = len(x)
if isinstance(win, np.ndarray):
nwin = len(win)
nlen = nwin # 帧长=窗长
elif isinstance(win, int):
nwin = 1
nlen = win # 设置为帧长
if inc is None:
... | [
"you@example.com"
] | you@example.com |
bada7cdd5041895620cc70ad02fc19f09856c9f5 | b25e66b3588bad601cc7b0fb5cf0ab5a015e2812 | /python_td6/colors.py | 50a35127da411b509486472c51a09eafaf335291 | [] | no_license | bentoonsmurf/bi423 | 93f4eb7ce8c4f73fab4bed0ece34113b4bbc757e | ca3aa7b6028b4ae932819e5a8d4e962e23a2aa90 | refs/heads/master | 2021-01-23T08:09:35.807316 | 2017-04-25T14:32:30 | 2017-04-25T14:32:30 | 80,526,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,677 | py | def color(text, **user_styles):
styles = {
# styles
'reset': '\033[0m',
'bold': '\033[01m',
'disabled': '\033[02m',
'underline': '\033[04m',
'reverse': '\033[07m',
'strike_through': '\033[09m',
'invisible': '\033[08m',
# text colors
'f... | [
"you@example.com"
] | you@example.com |
f21f81beb5eb2e2a0a9ad5f5247d386a4eadad56 | f3b233e5053e28fa95c549017bd75a30456eb50c | /tyk2_input/42/42-50_MD_NVT_rerun/set_1ns_equi_1.py | c1682e2c05fa1d504664d4e98fb47ce4b66a087c | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 925 | py | import os
dir = '/mnt/scratch/songlin3/run/tyk2/L42/MD_NVT_rerun/ti_one-step/42_50/'
filesdir = dir + 'files/'
temp_equiin = filesdir + 'temp_equi_1.in'
temp_pbs = filesdir + 'temp_1ns_equi_1.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
61f00b19422267995d747b0f748d6fe5b85b1257 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Validation/RecoParticleFlow/python/caloTauBenchmarkGeneric_cfi.py | cb53cbdcfc487688393622fee092cd1df46a79bb | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 762 | py | import FWCore.ParameterSet.Config as cms
#'tauGenJets'
caloTauBenchmarkGeneric = cms.EDAnalyzer("GenericBenchmarkAnalyzer",
OutputFile = cms.untracked.string('benchmark.root'),
InputTruthLabel = cms.InputTag(''),
minEta = cms.double(-1),
maxEta = cms.double(2.8),
recPt = cms.double(10.0),
delt... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
7202984ea6bdd4793307700d6d3f9ba888bb1692 | 4be5c172c84e04c35677f5a327ab0ba592849676 | /python/interviewbit/arrays/simple_queries/simple_queries.py | e3d4eaeabebf74094a6312db15aea1592f2a2ba7 | [] | no_license | niranjan-nagaraju/Development | 3a16b547b030182867b7a44ac96a878c14058016 | d193ae12863971ac48a5ec9c0b35bfdf53b473b5 | refs/heads/master | 2023-04-06T20:42:57.882882 | 2023-03-31T18:38:40 | 2023-03-31T18:38:40 | 889,620 | 9 | 2 | null | 2019-05-27T17:00:29 | 2010-09-05T15:58:46 | Python | UTF-8 | Python | false | false | 3,221 | py | '''
https://www.interviewbit.com/problems/simple-queries/
Simple Queries
You are given an array A having N integers.
You have to perform the following steps in a given order.
1. generate all subarrays of A.
2. take the maximum element from each subarray of A and insert it into a new array G.
3. replace every ele... | [
"vinithepooh@gmail.com"
] | vinithepooh@gmail.com |
95ddec165981568dae2b31d941760a612ec760ab | ab1c920583995f372748ff69d38a823edd9a06af | /shultais_courses/data_types/type_conversion/full_tank_cost.py | a3ff76560da0e4080668d6d3de29664a45c0667c | [] | no_license | adyadyat/pyprojects | 5e15f4e33892f9581b8ebe518b82806f0cd019dc | c8f79c4249c22eb9e3e19998d5b504153faae31f | refs/heads/master | 2022-11-12T16:59:17.482303 | 2020-07-04T09:08:18 | 2020-07-04T09:08:18 | 265,461,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 987 | py | import sys
# Получаем данные.
price = float(sys.argv[1])
full = float(sys.argv[2])
busy = float(sys.argv[3])
# Делаем финальный расчет.
amount = (full - busy) * price
# Выводим результат.
print(amount)
"""
СТОИМОСТЬ ПОЛНОГО БАКА
Начинающий разработчик написал программу для расчета стоимости заправки автомобиля до п... | [
"omorbekov.a@gmail.com"
] | omorbekov.a@gmail.com |
79a9f6f9308b9bdc741eb0617b42712e08bbd3a2 | 98a86ec3182e9eef7e21db734118f15f2514cd5c | /python/pygl/test1.py | 63b6d54c074494e0cc7f03575710532256e0a820 | [
"MIT"
] | permissive | icefoxen/lang | ad3d4d2bdb162f95416e9d805c29951cc812b6f6 | 628185020123aabe4753f96c6ab4378637a2dbf5 | refs/heads/master | 2020-07-03T12:04:05.512367 | 2017-01-27T18:05:00 | 2017-01-27T18:05:00 | 74,171,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,253 | py | # Okay.
# THANK you.
# Now, let's get to hacking Python OpenGL.
# Foist, we want to create a shape and move it with da arrow keys.
from OpenGL.GL import *
from OpenGL.GLU import *
import pygame
from pygame.locals import *
translatex = -1.5
translatey = 0.0
translatez = -6.0
tRot = hRot = 0.0
def setSizeGL( (width, ... | [
"icefoxen@gmail.com"
] | icefoxen@gmail.com |
08f4a816cfb1b292a9d05ce8682450615698b86a | ac0894b411507bfd027696b6bf11b5e384ed68fc | /need-to-do/python3------download-problem--of--leetcode/518.coin-change-2.py | bb27135b95f304b145ea54cd5c448d0346f160c8 | [] | no_license | mkzpd/leetcode-solution | 1d19554628c34c74012fa52582c225e6dccb345c | 60c9b218683bcdee86477a910c58ec702185c726 | refs/heads/master | 2020-05-31T05:56:48.985529 | 2019-09-20T09:10:49 | 2019-09-20T09:10:49 | 190,128,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,170 | py | #
# @lc app=leetcode id=518 lang=python3
#
# [518] Coin Change 2
#
# https://leetcode.com/problems/coin-change-2/description/
#
# algorithms
# Medium (44.22%)
# Total Accepted: 56.2K
# Total Submissions: 127.1K
# Testcase Example: '5\n[1,2,5]'
#
# You are given coins of different denominations and a total amount of... | [
"sodgso262@gmail.com"
] | sodgso262@gmail.com |
5a18ecad0b7d2b084aa63bc977407eed2c5e79a6 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p2DJ/New/R2/benchmark/startQiskit_QC108.py | b2ba0c7d4c4750e3ffdad273d797ff0ae74a0d0c | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,068 | py | # qubit number=2
# total number=9
import cirq
import qiskit
from qiskit import IBMQ
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from math import log2,floor, sqrt, pi
import numpy as... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
beeb0da85923f1b285686879a18c74bd2d14ecba | 44cb2643ec3474eebcd1015108e074e73b318c07 | /hike_schedule/admin.py | 782deaf69f4a47c6c521c43ac08bda403daa77b3 | [] | no_license | kdechant/hike-schedule | 010211b6b23c8e129e812710468c458c74bf5cef | 95a0653145d19e992025bbecb6f1d95423a26450 | refs/heads/master | 2021-01-10T08:52:40.940894 | 2016-02-12T07:05:29 | 2016-02-12T07:05:29 | 44,289,843 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | from django.contrib import admin
from .models import *
@admin.register(EventType)
class EventTypeAdmin(admin.ModelAdmin):
list_display = ['name']
@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
list_display = ['event_type', 'title', 'event_date', 'status']
list_filter = ['event_type', 'route_i... | [
"keith.dechant@gmail.com"
] | keith.dechant@gmail.com |
13df13c4bfbd6372e9b6e913d210ced255442e76 | 575cd8511fde538c3912e7ff33dea2a10f195f25 | /portfolio/views.py | 4b991c0bcff6b6c493393a8a1570ba2955b0b518 | [] | no_license | jakiiii/jqurity.com | 710959e07bb115d3178c72891bd92f7d377964c5 | fc7119c258fdbed1deaddbf56ebacfc293c470e8 | refs/heads/master | 2020-04-11T17:24:25.643981 | 2018-12-16T18:30:48 | 2018-12-16T18:30:48 | 161,959,589 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | from django.urls import reverse_lazy
from django.views.generic import DetailView, CreateView
from django.views.generic.edit import FormMixin
from contact.forms import ContactForm
from .models import (
Slider,
Ayat,
Experience,
Familiar,
Interest,
Portfolio
)
from about.models import (
Abou... | [
"me.jaki@outlook.com"
] | me.jaki@outlook.com |
3f872bd081b1053662722f47e8bd43eb38def392 | be73248aa4f1171e81b65cf955c4bd6110d56095 | /plugins/__init__.py | f6a247f3cb53e13670b4621dc27bc7acf3d1692d | [] | no_license | rogerhoward/lambot | 781c158e58bd71e2f3eb480aab31f181aee55e62 | d5588041fc92b779ba88479d8657f9b8a4916692 | refs/heads/development | 2022-02-18T05:03:23.911978 | 2017-06-22T03:22:11 | 2017-06-22T03:22:11 | 86,493,856 | 1 | 1 | null | 2022-02-04T15:04:55 | 2017-03-28T18:30:43 | Python | UTF-8 | Python | false | false | 170 | py |
from pluginbase import PluginBase
plugin_source = PluginBase(package='plugins').make_plugin_source(searchpath=['./plugins'])
plugin_names = plugin_source.list_plugins() | [
"rogerhoward@mac.com"
] | rogerhoward@mac.com |
03b17a1ec30dbc3ca1b0a583753b6290d482c239 | 73320add14214fa860e9dfdd6ea4dfa3862f7806 | /Logistic/logistic.py | 51485f84bc4585d084b96a7166bcd9167422d091 | [] | no_license | mayk93/DeepLearning | 5aa52df3175f38f5b7fa95f33f929ac937409770 | d7db13f5a46b3abb853dab9a4469f81386f27109 | refs/heads/master | 2020-07-02T14:30:05.542467 | 2016-11-20T21:33:15 | 2016-11-20T21:33:15 | 74,298,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | import tensorflow as tf
import numpy as np
try:
from tqdm import tqdm
except ImportError:
def tqdm(x, *args, **kwargs):
return x
# Load data
data = np.load('data_with_labels.npz')
train = data['arr_0']/255.
labels = data['arr_1']
# Look at some data
print(train[0])
print(labels[0])
# If you have mat... | [
"mihai.mandrescu@gmail.com"
] | mihai.mandrescu@gmail.com |
a97ae738d52d67ff57849264badfff4ac984c976 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03006/s651349603.py | ab084aa71596b708f5dc27efe7169f4f7b9f0fe0 | [] | 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 | 925 | py | # ベクトルを固定して全探索まではわかる 実装がわからん
# いやべつに順番は関係ないのか? 「残っているボールを 1つ選んで回収する。」
n = int(input())
if n == 1:
print(1) # 「ただし、1つ目に選んだボールについては必ずコスト 1かかる。」
exit()
points = []
for _ in range(n):
points.append(list(map(int, input().split())))
ans = 10**18
for p in range(n):
for q in range(n):
if p == q:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
99f9d3e10ae4a78ea585e3d71cd708bc9bcf35ba | f282ed1fa6776b52d0b11a375067c9c2e1ef2db3 | /qsome/ext_methods/ext_factory.py | 3b56d2a11095de73a08fb47949efb3b5de0f778d | [
"Apache-2.0"
] | permissive | Goodpaster/QSoME | fc96d87fecab3c13771121b3986f3fc909e8c8b5 | 7f95524665602821c9b1030cebe2e97af057c056 | refs/heads/master | 2022-06-16T03:45:08.893218 | 2022-03-09T21:47:16 | 2022-03-09T21:47:16 | 150,792,671 | 8 | 2 | Apache-2.0 | 2021-08-16T14:24:54 | 2018-09-28T20:43:54 | Python | UTF-8 | Python | false | false | 1,015 | py | from qsome.ext_methods.molpro_ext import MolproExt
from qsome.ext_methods.openmolcas_ext import OpenMolCASExt
from qsome.ext_methods.psi4_ext import Psi4Ext
#from ext_methods.bagel_ext import BagelExt
class ExtFactory:
def get_ext_obj(self, ext_prgm, mol_obj, method_name, ext_pot, core_ham=None, filename='temp', w... | [
"dan.s.graham@gmail.com"
] | dan.s.graham@gmail.com |
2a24c302a4ffc32edf996f5e2b129bfaa4593284 | af4d80ad935f1aedae6e43bc39def7c58bedd332 | /benchdev/config.py | 715f49c5a01cbde4ce3fc3b2467df9a0a7eb8217 | [
"LicenseRef-scancode-hdf5",
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | Qi-max/automatminer | 39a96d63a7235870401fde4e34a8ab47d8bfbf6c | a366709798c5886350f5b71cc7d06f474122c2f3 | refs/heads/master | 2020-05-02T17:00:11.506603 | 2019-03-27T22:45:11 | 2019-03-27T22:45:11 | 178,085,605 | 1 | 0 | NOASSERTION | 2019-03-27T22:43:34 | 2019-03-27T22:43:33 | null | UTF-8 | Python | false | false | 3,730 | py | """
The environment variables you need for this all to work are:
- AMM_BENCH_DIR: where to store benchmarks
- AMM_DATASET_DIR: where to store datasets
- AMM_CODE_DIR: where to run tests
"""
from fireworks import LaunchPad
from automatminer.utils.ml import AMM_CLF_NAME, AMM_REG_NAME
from hmte.db import get_connection
... | [
"ardunn@lbl.gov"
] | ardunn@lbl.gov |
cb84e3be8cebdfd17fa883614c4b5d74c60c74ef | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03387/s553318326.py | 2e8b35e38961aeb83e521ce2f6135fcdf35594fd | [] | 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 | 380 | py | # coding=utf-8
import math
if __name__ == '__main__':
A, B, C = map(int, input().split())
MV = max(A, B, C) * 3
SumABC = A + B + C
if MV % 2 == 0 and SumABC % 2 == 0:
ans = (MV - SumABC) / 2
elif MV % 2 == 1 and SumABC % 2 == 1:
ans = math.ceil(MV - SumABC) / 2
else:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
061f3b653e2531aaab6be7deac110e76ea9b4b75 | 9a3262882123a0937d5b713919688ba7c580ae9f | /eslearn/visualization/lc_scatterplot.py | bba48c93e72b3c2f8a6240a8987344545dda8ac5 | [
"MIT"
] | permissive | sysunwenbo/easylearn | fa7f6dd6cf2e0e66780469dc7046b46e486574fd | 145274cb374c0337b7ec5aed367841663c527a6f | refs/heads/master | 2022-04-18T00:16:56.263547 | 2020-04-16T15:45:07 | 2020-04-16T15:45:07 | 256,792,139 | 0 | 1 | MIT | 2020-04-18T15:49:10 | 2020-04-18T15:49:09 | null | UTF-8 | Python | false | false | 2,569 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jul 3 15:29:02 2018
sns.set(stynamele='ticks', palette='muted', color_codes=True, font_scale=1.5)
sns.set_stynamele('dark')
主题 stynamele:darkgrid, whitegrid, dark, white, ticks,默认为darkgrid。
sns.set_palette:deep, muted, bright, pastel, dark, colorblind
sns.set_contexnamet('not... | [
"you@example.com"
] | you@example.com |
b3d4d7e07e5de3d880910b6037db32cf7729422c | 71fafe9fb2190b6acf09f109105ca362bb9018c2 | /jcsbms/lottery/migrations/0007_auto_20160426_1919.py | 9c521e85586a5c412a25d51a1cb6aada2a875126 | [] | no_license | zhangyibo007/bms | 1f43ca98057a72f1b62769719cb4aefbb4ffb289 | 1ae88e90415f0495d3a647112de0876da0b18e5e | refs/heads/master | 2021-06-21T05:40:24.468473 | 2017-08-02T12:35:08 | 2017-08-02T12:35:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 873 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.5 on 2016-04-26 11:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lottery', '0006_auto_20151223_1530'),
]
operations = [
migrations.CreateMode... | [
"zhangyibo@caifuzhinan.com"
] | zhangyibo@caifuzhinan.com |
640284a8f9ab1215ae55d163b7b3ebdf170c1771 | d032bc0c01a7cd598481644e22043de8df4c71c4 | /consultad/routing.py | 6c3b0ea360f97d12db2ccd7bfdf474c4dd9c66f3 | [] | no_license | amrit-kumar/project-for-engineering | eb5f410cd2f0a271633fb6c24132a36e6215f0e0 | 7e975866e540ab4625e735009fdba971df74e393 | refs/heads/master | 2020-12-03T01:49:02.429186 | 2017-06-30T09:09:46 | 2017-06-30T09:09:46 | 95,863,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 762 | py | from channels.routing import route
# from consultant_app.consumers import ws_add, ws_message, ws_disconnect
from consultant_app.consumers import ws_connect, ws_message, ws_disconnect,repeat_me
from consultant_app.consumers import ws_message
from django.conf.urls import url,include
# channel_routing = [
# route("ht... | [
"kumaramrit38@gmail.com"
] | kumaramrit38@gmail.com |
802e8ff796848053362c0ffc27d0950a0150d1ef | e415323eec1a2dd547d988465c9174355b4a4f4c | /setup.py | 5fd8e98a10a230dea5667ce80ca3c3001218f4f6 | [
"MIT"
] | permissive | mjuenema/micropython-bitstring | 5e87d054d445ee0368acfe4e01c90dfa79245016 | 500c5fe987e7205dd9f937b5d5e0a8f4505a1f11 | refs/heads/master | 2021-01-21T22:06:12.469623 | 2017-06-26T13:33:34 | 2017-06-26T13:33:34 | 95,167,519 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | from ubitstring import __version__
import sys
# Remove current dir from sys.path, otherwise setuptools will peek up our
# module instead of system's.
sys.path.pop(0)
from setuptools import setup
sys.path.append("..")
kwds = {'long_description': open('README.rst').read()}
if sys.version_info[0] < 2:
raise Excepti... | [
"markus@juenemann.net"
] | markus@juenemann.net |
fa210d6b01ae3ecaabdd4162852c0f7eb986306f | 34f365117eb1d846fa922c24f3fc650188ce9746 | /bin/bed2removeNeighbors.py | cd193585aa637fee5aa5499c7c8172c90c2db7fb | [
"MIT"
] | permissive | PinarSiyah/NGStoolkit | 53ac6d87a572c498414a246ae051785b40fbc80d | b360da965c763de88c9453c4fd3d3eb7a61c935d | refs/heads/master | 2021-10-22T04:49:51.153970 | 2019-03-08T08:03:28 | 2019-03-08T08:03:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | #!/usr/bin/env python
import argparse
import bed
PARSER = argparse.ArgumentParser(description='removes neighboring intervals')
PARSER.add_argument('-i', required=True, help='input')
PARSER.add_argument('-d', required=True, help='neighbor distance')
ARGS = PARSER.parse_args()
bedFile = ARGS.i
distance = int(ARGS.d)
... | [
"adebali@users.noreply.github.com"
] | adebali@users.noreply.github.com |
e10b665b0f221ffa1d49d77e5e8df9c3f842961c | 8997a0bf1e3b6efe5dd9d5f307e1459f15501f5a | /get_dir_total_size__examples/get_dir_total_size__using__os_walk.py | aca823f1b36c9c1fb9b74ad826f6c01cf9aca6fc | [
"CC-BY-4.0"
] | permissive | stepik/SimplePyScripts | 01092eb1b2c1c33756427abb2debbd0c0abf533f | 3259d88cb58b650549080d6f63b15910ae7e4779 | refs/heads/master | 2023-05-15T17:35:55.743164 | 2021-06-11T22:59:07 | 2021-06-11T22:59:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# SOURCE: https://docs.python.org/3/library/os.html#os.walk
from os.path import join, getsize
from common import sizeof_fmt
def get_dir_total_size(dir_name: str) -> (int, str):
total_size = 0
for root, dirs, files in os.walk(dir_nam... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
d4eccb9f13bce33a5aae052b88b3c3fbddc99723 | 5f58ee3c7e5c4cca0310f33335fb36ec61ffd8cf | /build/sensing/drivers/camera/packages/hexacam/catkin_generated/pkg.develspace.context.pc.py | 2d4ec2266029d6ad3ed98f5a1b0fbc3bdc0c8a59 | [] | no_license | qqsskk/p3dx_velodyne_slam | 4bad90ea64fb50539982a44f3df7abd0041516db | cafe3f81eb17bc5e8c8edc6b83b84a8d5fbf2805 | refs/heads/master | 2021-06-08T17:05:52.386391 | 2016-10-26T09:44:05 | 2016-10-26T09:44:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lhexacam".split(';') if "-lhexacam" != "" else []
PROJECT_NAME = "hexacam"
PROJECT_SP... | [
"jhjune91@gmail.com"
] | jhjune91@gmail.com |
f44ea363fb79cfff9b558fcc7d02d4f6e0133279 | bc647095de9c9dd658b82179ff9e398029f53756 | /tests/unit/test_action.py | aa46b2efe960852218b762f3cbf13cea1662f4c3 | [
"BSD-3-Clause"
] | permissive | ettoreleandrotognoli/python-ami | 2b9711bd484ceaf524f0b2109ac665ed4271065a | 9922ccae5db73d0ee248942b8cfab9f939962024 | refs/heads/master | 2023-04-28T08:30:18.603575 | 2022-05-04T13:25:03 | 2022-05-04T14:02:28 | 43,763,556 | 112 | 68 | BSD-3-Clause | 2023-04-25T09:25:30 | 2015-10-06T16:36:48 | Python | UTF-8 | Python | false | false | 1,804 | py | import unittest
from asterisk.ami import LoginAction, LogoffAction, SimpleAction
class AMIActionTest(unittest.TestCase):
def compare_actions(self, a1, a2):
a1 = str(a1).split('\r\n')
a2 = str(a2).split('\r\n')
self.assertEqual(a1[0], a2[0])
self.assertSetEqual(set(a1[1:]), set(a2[... | [
"ettore.leandro.tognoli@gmail.com"
] | ettore.leandro.tognoli@gmail.com |
f0e290020c43602881ec59fc0628c8cbd0ac225a | 365967082720f3fda31afccfc237b7a67e8ffc07 | /sorting_searching/quick_sort.py | d95e226eb91824833e53fcd1a73f4ebdd12112a5 | [] | no_license | hulaba/geekInsideYou | ec68dee3fa24d63f5470aa40b600ef34d37c5da1 | 72c1f1b4fbf115db91c908a68c9ac3ca4cb22a4f | refs/heads/master | 2022-12-11T11:11:03.149336 | 2020-09-12T16:12:40 | 2020-09-12T16:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | '''
parition() function is called as follows:
def quickSort(arr,low,high):
if low < high:
# pi is partitioning index, arr[p] is now
# at right place
pi = partition(arr,low,high)
# Separately sort elements before
# partition and after partition
quickSort(arr, low... | [
"nainamehta2110@gmail.com"
] | nainamehta2110@gmail.com |
cb3f0f4aa798ac93644ed624c67bc75ba6fa96cf | b44a984ac8cfd183e218d56e1ec5d0d3e72d20fd | /High_Frequency/two_pointers/计数双指针/Substring With At Least K Distinct Characters/sliding_window.py | e968ee945eebc7729c33d701cc0cff334db3d4e9 | [] | no_license | atomextranova/leetcode-python | 61381949f2e78805dfdd0fb221f8497b94b7f12b | 5fce59e6b9c4079b49e2cfb2a6d2a61a0d729c56 | refs/heads/master | 2021-07-15T20:32:12.592607 | 2020-09-21T00:10:27 | 2020-09-21T00:10:27 | 207,622,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | class Solution:
"""
@param s: a string
@param k: an integer
@return: the number of substrings there are that contain at least k distinct characters
"""
def kDistinctCharacters(self, s, k):
# Write your code here
if len(s) < k:
return 0
cur_chars = dict()
... | [
"atomextranova@gmail.com"
] | atomextranova@gmail.com |
66cf4ff262f64c8cbf47aea01229c40a532336c3 | a81d21f98dd558416f8731f001cb8151d8309f4f | /interviewbit/test/test_excel_column_number.py | e1b9a6d25f15bc235f307c800a1150e10dc893e6 | [] | no_license | marquesarthur/programming_problems | 1128c38e65aade27e2435f7987d7ee2b328fda51 | 2f7df25d0d735f726b7012e4aa2417dee50526d9 | refs/heads/master | 2022-01-25T18:19:02.575634 | 2022-01-18T02:07:06 | 2022-01-18T02:07:06 | 32,213,919 | 2 | 0 | null | 2020-10-13T01:29:08 | 2015-03-14T13:44:06 | Python | UTF-8 | Python | false | false | 1,026 | py | import unittest
from interviewbit.math import excel_column_number
class TestExcelColumnNumber(unittest.TestCase):
def test_base_case(self):
s = excel_column_number.Solution()
A = 'A'
B = 1
result = s.titleToNumber(A)
self.assertEqual(result, B)
A = 'B'
B... | [
"marques.art@gmail.com"
] | marques.art@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.