blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | 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 777
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 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cfbbfdd571e7110232cb429a5fa3903eecc2f3b8 | 6a4a6f9546c4a8e8f4b1db567e948a3e5fb93a73 | /arelle/CntlrWinMain.py | 823ed009ff14389c64dd4ebf8a60363615c6a16e | [
"Apache-2.0"
] | permissive | jcjones1515/Arelle | 07b2b0865f8941993c101623b98878bf02e95f95 | 6b0883a5f725dd7260f744945f326d84ba7a41c1 | refs/heads/master | 2021-01-15T14:28:28.968127 | 2014-02-05T16:56:07 | 2014-02-05T16:56:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71,701 | py | '''
Created on Oct 3, 2010
This module is Arelle's controller in windowing interactive UI mode
@author: Mark V Systems Limited
(c) Copyright 2010 Mark V Systems Limited, All rights reserved.
'''
from arelle import PythonUtil # define 2.x or 3.x string types
import os, sys, subprocess, pickle, time, locale, re
from tk... | [
"fischer@markv.com"
] | fischer@markv.com |
9fdbc0899e1103ecf0749e56543710b231edf282 | 4a81e33fe6d214f2efaeb97b03b5b05fae12b0d8 | /demos/great-expectations/venv/lib/python3.8/site-packages/great_expectations/expectations/core/expect_column_values_to_match_like_pattern_list.py | b0f4f5794fc2592b46c09bbfd60ff192022603e1 | [] | no_license | franciscojavierarceo/Python | 29aaea28642dde151255c5b4a813158e975a073d | 02715ca6f19fd3c76cefa12de92deeae4ddf9684 | refs/heads/main | 2023-08-27T14:23:04.376095 | 2023-08-27T10:30:37 | 2023-08-27T10:30:37 | 33,146,755 | 7 | 9 | null | 2023-02-16T06:40:35 | 2015-03-30T20:38:00 | Jupyter Notebook | UTF-8 | Python | false | false | 3,266 | py | from typing import Optional
from great_expectations.core.expectation_configuration import ExpectationConfiguration
from great_expectations.expectations.expectation import (
ColumnMapExpectation,
InvalidExpectationConfigurationError,
)
from great_expectations.expectations.util import render_evaluation_parameter... | [
"arceofrancisco@gmail.com"
] | arceofrancisco@gmail.com |
e693e0b7ba6fe92360a4d1fe593e6a8e2daa1153 | a838d4bed14d5df5314000b41f8318c4ebe0974e | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2019_08_01/aio/operations/_express_route_circuit_connections_operations.py | 1e18698789fa26ab9a58705def89866e3d310463 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | scbedd/azure-sdk-for-python | ee7cbd6a8725ddd4a6edfde5f40a2a589808daea | cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a | refs/heads/master | 2023-09-01T08:38:56.188954 | 2021-06-17T22:52:28 | 2021-06-17T22:52:28 | 159,568,218 | 2 | 0 | MIT | 2019-08-11T21:16:01 | 2018-11-28T21:34:49 | Python | UTF-8 | Python | false | false | 23,584 | py | # coding=utf-8
# --------------------------------------------------------------------------
# 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 Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | scbedd.noreply@github.com |
d379bafba9d862aae0d0a71478bab94d24eaa9aa | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /kfwTnnJjo3SKG2pYx_22.py | 0e8e59edcc555702d0185b93c05fcb39d9aa3aec | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | """
Replace the numbers in a string with their binary form.
### Examples
replace_nums("I have 2 sheep.") ➞ "I have 10 sheep."
replace_nums("My father was born in 1974.10.25.") ➞ "My father was born in 11110110110.1010.11001."
replace_nums("10hell76o4 boi") ➞ "1010hell1001100o100 boi"
### Not... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2b0c58a5719f34a99cd1c6f90d8f44675a5bcb69 | a857d1911a118b8aa62ffeaa8f154c8325cdc939 | /toontown/effects/PolyTrail.py | 2e158ed9095e0e758b55d8d7283674b285d757d9 | [
"MIT"
] | permissive | DioExtreme/TT-CL-Edition | 761d3463c829ec51f6bd2818a28b667c670c44b6 | 6b85ca8352a57e11f89337e1c381754d45af02ea | refs/heads/main | 2023-06-01T16:37:49.924935 | 2021-06-24T02:25:22 | 2021-06-24T02:25:22 | 379,310,849 | 0 | 0 | MIT | 2021-06-22T15:07:31 | 2021-06-22T15:07:30 | null | UTF-8 | Python | false | false | 6,858 | py | from panda3d.core import *
from direct.motiontrail.MotionTrail import *
import random
class PolyTrail(NodePath):
def __init__(self, root_node_path = None, vertex_list = None, color_list = None, time_window = 0.25):
NodePath.__init__(self, 'PolyTrail')
self.time_window = time_window
self.ro... | [
"devinhall4@gmail.com"
] | devinhall4@gmail.com |
3cc3ef89523e9e91a6bb9b19d97440fd11c2a266 | 5fefb67463f77b13a318f3c6b08de52e24ce800e | /examples/voc/train_fcn8s.py | a1939d7099c7328eabadb5971dfdd29bdb77a57f | [
"MIT"
] | permissive | USTC2016/fcn | 46ac97a347b0562aacea772bb17c748d9e037e58 | f6bc35a88bc43e624965d7c21cf095980bbc0f0f | refs/heads/master | 2021-01-02T08:28:40.964689 | 2017-07-26T16:59:40 | 2017-07-26T16:59:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,440 | py | #!/usr/bin/env python
import datetime
import os
import os.path as osp
import subprocess
import chainer
from chainer import cuda
import click
import fcn
from fcn import datasets
here = osp.dirname(osp.abspath(__file__))
@click.command(context_settings={'help_option_names': ['-h', '--help']})
@click.option('-g', '... | [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
7925eade3ed42e141cd766a1837acb7551a278ae | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_collections/community/kubernetes/plugins/modules/helm_info.py | 03ebdde3de7df9c21d42077edfb174e20927323b | [
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-or-later",
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 5,511 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2020, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''
---
module: helm_info
short_descrip... | [
"sifang@cisco.com"
] | sifang@cisco.com |
21d0656924af9d3e39483c419212f620472bfa49 | 0add7953d3e3ce2df9e8265102be39b758579753 | /built-in/TensorFlow/Research/cv/image_classification/Darts_for_TensorFlow/automl/vega/datasets/transforms/Sharpness.py | 913794fd8e0eff47f08e23e7e26621844c2a57e7 | [
"MIT",
"Apache-2.0"
] | permissive | Huawei-Ascend/modelzoo | ae161c0b4e581f8b62c77251e9204d958c4cf6c4 | df51ed9c1d6dbde1deef63f2a037a369f8554406 | refs/heads/master | 2023-04-08T08:17:40.058206 | 2020-12-07T08:04:57 | 2020-12-07T08:04:57 | 319,219,518 | 1 | 1 | Apache-2.0 | 2023-03-24T22:22:00 | 2020-12-07T06:01:32 | Python | UTF-8 | Python | false | false | 1,410 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the MIT License.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the... | [
"1571856591@qq.com"
] | 1571856591@qq.com |
9bd602bf2864f909317bd842cffe539219c6b9cc | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2346/60631/279139.py | a11def74b332a6a1d5de330772cb722684dfdac7 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | def spiralOrder(matrix):
if not matrix:
return []
cds = [1, 0, -1, 0] # 列坐标步进方向
rds = [0, 1, 0, -1] # 行坐标步进方向
# 行列当前元素数量(步进数)
rs, cs = len(matrix), len(matrix[0])
turns = 0 # 拐弯次数
r, c = 0, -1 # 当前元素坐标
elem_num = rs * cs
result = [0] * elem_num # 结果
index = 0 # 当前结果下标
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
ed0a5bb8240fb95246760d41d5f8f96a91673b62 | 663c108dca9c4a30b7dfdc825a8f147ba873da52 | /venv/multithreading/31SynchronizationNoReleaseIsAlive.py | 36ee73d0324d2045527d1e588edb31acfddb6874 | [] | no_license | ksrntheja/08-Python-Core | 54c5a1e6e42548c10914f747ef64e61335e5f428 | b5fe25eead8a0fcbab0757b118d15eba09b891ba | refs/heads/master | 2022-10-02T04:11:07.845269 | 2020-06-02T15:23:18 | 2020-06-02T15:23:18 | 261,644,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | from threading import *
import time
l = Lock()
def wish(name):
l.acquire()
for i in range(4):
print('Good Evening from {}:'.format(current_thread().getName()), end='')
time.sleep(2)
print(name)
# l.release()
t1 = Thread(target=wish, args=('ksrn',))
t2 = Thread(target=wish, args=... | [
"srntkolla@gmail.com"
] | srntkolla@gmail.com |
e16e742ef3259498e2bc17bdd10473d0c3347942 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03852/s950264008.py | 863f5d031eb11b63502081aec84ab19ec42f9879 | [] | 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 | 171 | py | I = input()
import re
# if re.match("^(a|i|u|e|o){1}$", I):
if I in 'aiueo':
# if 'aiueo'.find(I):
print('vowel', flush=True)
else:
print('consonant', flush=True)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7be48f5e7226db9035106249ba047e832261d2ab | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/862c439223ce5d24bd6dd65c5497f5bb96b8dae7-<main>-bug.py | 06a8e6d5e0a7c4865d8adaa441e57af1cba2631a | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,199 | py |
def main():
args = parse_args()
for config_file in CONFIG_FILES:
if os.path.exists(config_file):
break
else:
sys.stdout.write('unable to locate config file at /etc/ansible/infoblox.yaml\n')
sys.exit((- 1))
try:
loader = DataLoader()
config = loader.l... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
775d270f9736118238fe20c59f3b2766037bf760 | 09f0505f3ac1dccaf301c1e363423f38768cc3cc | /r_DailyProgrammer/Easy/C272/unittests/unittest.py | e323259c8ddb1dd713e7c436c8c2f19c15100021 | [] | no_license | Awesome-Austin/PythonPractice | 02212292b92814016d062f0fec1c990ebde21fe7 | 9a717f91d41122be6393f9fcd1a648c5e62314b3 | refs/heads/master | 2023-06-21T11:43:59.366064 | 2021-07-29T23:33:00 | 2021-07-29T23:33:00 | 270,854,302 | 0 | 0 | null | 2020-08-11T20:47:10 | 2020-06-08T23:24:09 | Python | UTF-8 | Python | false | false | 259 | py | #! python3
import unittest
from r_DailyProgrammer.Easy.C272.unittests.test_values import TEST_VALUES
class MyTestCase(unittest.TestCase):
def test_something(self):
self.assertEqual(True, False)
if __name__ == '__main__':
unittest.main()
| [
"{ID}+{username}@users.noreply.github.com"
] | {ID}+{username}@users.noreply.github.com |
64a6b52c2adba0be494d305f95aebab964de5457 | ec6a1e439214e3d1d35ca017e4919468527a3c91 | /lib/sqlalchemy/engine/create.py | 035953e990834a562fa071d5ce8b160e510aa6cc | [
"MIT"
] | permissive | zoltan-fedor/sqlalchemy | 0ded4ff5c773fbf002ec88ff8a446fafdf8e8a9f | 0b380f6ff934be65e48e3cc5442b821d0cc404fd | refs/heads/master | 2020-07-02T13:23:14.890271 | 2019-08-09T19:59:09 | 2019-08-09T19:59:09 | 201,512,928 | 0 | 0 | MIT | 2019-08-09T17:28:36 | 2019-08-09T17:28:36 | null | UTF-8 | Python | false | false | 23,516 | py | # engine/create.py
# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
from . import base
from . import url as _url
from .mock import create_mock_engine
... | [
"mike_mp@zzzcomputing.com"
] | mike_mp@zzzcomputing.com |
500adfc8c274491c217c309fbdad02587530f12c | e0b6f5bd451aa8af3273fbc948799637681342e1 | /scripts/wm_representation/functions/IEM_conditions/target_close_delay.py | cc5d1c0a3e975a1006fdc6df7791b0cf91be0c0a | [] | no_license | davidbestue/encoding | 6b304f6e7429f94f97bd562c7544d1fdccf7bdc1 | c27319aa3bb652b3bfc6b7340044c0fda057bc62 | refs/heads/master | 2022-05-05T23:41:42.419252 | 2022-04-27T08:34:52 | 2022-04-27T08:34:52 | 144,248,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,039 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 1 18:24:32 2019
@author: David Bestue
"""
## Import functions prom the previous path
import sys
import os
previous_path = os.path.abspath(os.path.join(os.getcwd(), os.pardir))
sys.path.insert(1, previous_path)
from model_functions import *
from fake_data_generator imp... | [
"davidsanchezbestue@hotmail.com"
] | davidsanchezbestue@hotmail.com |
98f02c9bd166a7eaf6232c602e0f80ca3dcd9258 | ab7304eebe72c905b5d3454e7f0a29a88c9f63cf | /Tkinter01/tk07.py | 714011f638d0298612810458400a253057f04cc8 | [] | no_license | 1024Person/LearnPy | 9ea0bb771c3853ea54ae51adf9ce74cca0168e0f | 992dda33af956e768e711f75259344b297e1c324 | refs/heads/master | 2022-12-14T10:36:06.900699 | 2020-09-13T08:03:56 | 2020-09-13T08:03:56 | 274,310,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | from tkinter import *
root = Tk()
root.title('成神之路')
v =IntVar()
b = Checkbutton(root,text="测试一下下",
variable = v)
b.pack()
l = Label(root,text='选择状态',textvariable=v)
l.pack(side = "bottom")
mainloop()
| [
"239903524@qq.com"
] | 239903524@qq.com |
87d668e6b659388fa437ee70efaf4a09a61ccb0a | 5721909279081b6ecd05c8015f4865ee698a245b | /backend/testpgbackups3_dev_19259/urls.py | 84b9d3c74a907ee0cc46414c407bfe73bdb2a6a5 | [] | no_license | crowdbotics-apps/testpgbackups3-dev-19259 | b2cc0473762ab44816ff4eaeea82251770b5f216 | 1546191c738c67270ecfbe10772105657103a642 | refs/heads/master | 2023-03-02T03:47:58.356739 | 2021-02-12T16:32:46 | 2021-02-12T16:32:46 | 337,809,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,007 | py | """testpgbackups3_dev_19259 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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='h... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
cfdece435003a212f0bf1d1039419c6bc1beea33 | 67055c66ae4bca82ee61dab1757b73cc21559cfd | /regex_solutions/22_find_positions.py | f2330491b178814264d3986e18d147f4b4415fad | [] | no_license | kevinelong/network_python | 0482f694c9c050f4226bdfb7cc4fe31df26dd17b | 41158808bac5d127c3f3f3cfaea202cb60d7167c | refs/heads/master | 2023-07-14T12:20:14.550017 | 2021-08-26T00:13:45 | 2021-08-26T00:13:45 | 359,521,517 | 1 | 20 | null | 2021-04-28T18:08:15 | 2021-04-19T16:12:03 | Python | UTF-8 | Python | false | false | 324 | py | import re
# 22) Write a Python program to find the occurrence and position of the substrings within a string.
text = 'Python exercises, PHP exercises, C# exercises'
pattern = 'exercises'
for match in re.finditer(pattern, text):
s = match.start()
e = match.end()
print('Found "%s" at %d:%d' % (text[s:e], s, ... | [
"kevinelong@gmail.com"
] | kevinelong@gmail.com |
0a9f7c1914d11b7b724e04fec91738a13d430e3c | d21f82ada44189bfc36ebed7231983a8bc76145e | /service/models.py | b000a6a53d18426687ed05efce4f42c0a951b50b | [] | no_license | Riyam224/cars | febbdfa992a99c34e22eae8955ceb2c2540fc607 | 7e30bb5d1268c16a18c65592fd5ba66ba0c569da | refs/heads/main | 2023-07-22T18:50:56.489188 | 2021-09-02T17:46:12 | 2021-09-02T17:46:12 | 402,503,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 914 | py | from django.db import models
# Create your models here.
from django.contrib.auth.models import User
from django.utils.translation import ugettext_lazy as _
from django.utils.text import slugify
COLOR_CHOICES = (
('W' , 'White'),
('O' , 'Others')
)
SERVICES_CHOICES = (
('CL' , 'Clean'),
('WA' , 'Wa... | [
"riyamtechcampus@gmail.com"
] | riyamtechcampus@gmail.com |
028f7e79fd6e51059edc4c1c2b02e26a44579951 | 2d009ea6b7de0368daccb236b486bee32815a92c | /wedding/comment/migrations/0002_auto_20160321_2136.py | 2167b9253299d12d0ee2ae9f0529b953cb4bc553 | [] | no_license | jeawy/wedding | aca61d44e55d11b0dc3c518da00b2a9200c7231d | 6a5f5602f8ec886fc8df6ff91f62ac27ff975f08 | refs/heads/master | 2021-01-21T19:13:56.135679 | 2017-06-29T16:55:56 | 2017-06-29T16:55:56 | 92,132,009 | 0 | 1 | null | 2017-05-23T07:20:34 | 2017-05-23T05:15:17 | Python | UTF-8 | Python | false | false | 704 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('kb', '0001_initial'),
('comment', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='com... | [
"281475120@163.com"
] | 281475120@163.com |
af71b23cec519bc7cf79095aa7248f80179c3c4b | 599c7dcb419629a91919c2d8b372c0e3ac435400 | /utils/yolov5/utils.py | 9d6bb8644cbcb9715c7ca3aedcdb0e30332dbf6a | [] | no_license | ndkjing/detection_pth | 0785a59a200e35c4fefde5f73ef46f8e9b18c75e | 06702dc7704519b15d0749554d915d5f4ce38739 | refs/heads/master | 2022-11-24T17:49:59.757907 | 2020-07-27T01:38:17 | 2020-07-27T01:38:17 | 262,919,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,479 | py | import glob
import math
import os
import random
import shutil
import subprocess
import time
from copy import copy
from pathlib import Path
from sys import platform
import cv2
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import torch
import torch.nn as nn
import torchvision
import yaml
from scip... | [
"ndkjing1@gmail.com"
] | ndkjing1@gmail.com |
a486057021f8fce2013696178b45593067527d89 | f666faba5d860ae2568880fbe31c67fd70e22ae5 | /Веб-технологии/web/ask/ask/urls.py | 98c9a144daac81e933cac68c643431fdc1234e44 | [] | no_license | GizzaProgger/stepik | f6f3453cffaa56d71480bc1cd67f00446a515162 | 191bd85b8a44dca84e91fb3f870d80bfd3a0506a | refs/heads/master | 2022-04-27T21:43:59.308194 | 2020-04-06T11:30:42 | 2020-04-06T11:30:42 | 260,657,914 | 0 | 0 | null | 2020-05-02T09:54:29 | 2020-05-02T09:54:28 | null | UTF-8 | Python | false | false | 1,121 | py | """ask URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"zapzarap@yandex.ru"
] | zapzarap@yandex.ru |
286134b5f083af3d5111a8e6a9a2fc430ffb8bab | 3cc34d6b36a6d0b2a09991a77b1df2194f843734 | /tools/scav_script-remove_raw_data_dirs.py | 7f441a195ae70afc8620d0f0ec05e6ef82d03c4a | [
"Apache-2.0"
] | permissive | czero69/lsr | eb08fb5a53e3cae999cac0975d8f6fc433f53be5 | a9a6643968a7b6b29cab3b53b73ab80d14fb32b7 | refs/heads/master | 2023-08-26T05:50:16.583525 | 2021-10-20T17:46:28 | 2021-10-20T17:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,017 | py | # Run command: python tools/scav_script-remove_raw_data_dirs.py --scav --cores 4 --mem 10 --gpu=0
from datetime import datetime
import argparse
import glob
import numpy as np
import os
import os.path as osp
import socket
import time
# Function to check for validity of QOS
# TODO: add time/duration check.
def check_q... | [
"="
] | = |
aa224f2466e1634625e99ccb14ebdbaac5ea69c1 | 4a9995871447a406a7e6307a030503700cd41226 | /script/testCase/Y3me项目/数字化建模9/权限管理/用户管理.py | 43b9daa7ad9e5a1c2dedbdcc20b8568525adf084 | [] | no_license | juntaoh1234/12122003 | 96a107ce22d930e8d9517810736d8f6ce92dc7ad | 4bee39286c3708d7a0df3001e0daa9da51478170 | refs/heads/master | 2020-10-01T18:20:01.572599 | 2019-12-12T12:04:08 | 2019-12-12T12:04:08 | 227,596,967 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,143 | py | # coding=utf-8
from time import time, sleep
import random
from SRC.common.decorator import codeException_dec
from SRC.unittest.case import TestCase
from script.common import utils
from selenium import webdriver
from selenium.webdriver import ActionChains
from SRC.param import context
class EasyCase(TestCase):
def... | [
"1341890679@qq.com"
] | 1341890679@qq.com |
bb12fd2c2f506fc1f925bae1127a59f7160e09bd | 5ddd21b98cdf310f5da0a7a09e43f2d4d14b0144 | /refactoring/solution/02-extract-function/space_game.py | f691796603ba9896d22f0d86c5146b390a061eb2 | [
"CC-BY-4.0",
"CC-BY-3.0",
"MIT"
] | permissive | krother/software-engineering-python | 8b253c9143370b5882134ebdc81f387bfe3b0a03 | 3fd8b29c093d21738a3b0d3e70aebf2a3ec93217 | refs/heads/master | 2022-10-14T14:21:49.301629 | 2022-10-12T05:13:33 | 2022-10-12T05:13:33 | 23,292,588 | 97 | 24 | null | 2018-11-11T19:53:23 | 2014-08-24T20:56:00 | Python | UTF-8 | Python | false | false | 3,003 | py | """
Space Travel Game
A simple text adventure written for a refactoring tutorial.
"""
from text_en import TEXT
def display_inventory(credits, engines, copilot):
print("-" * 79)
inventory = "\nYou have: "
inventory += "plenty of credits, " if credits else ""
inventory += "a hyperdrive, " if engines ... | [
"krother@academis.eu"
] | krother@academis.eu |
3ab9b81192825190b04f07552fc9698c69195c51 | 1663094234e3f05dff368798b71261d5af8d6490 | /ticket/migrations/0006_scont.py | 6bf9c95b1bbbbf04943b1056868c0a6355b8475d | [] | no_license | kolamor/Teplomag | d1619263872a1220aa8f30f2f75658a67a54dc89 | 5336d16fa85931bb9fc9288ea24cf1c8226cade5 | refs/heads/master | 2020-04-01T12:37:05.297545 | 2018-10-22T21:04:49 | 2018-10-22T21:04:49 | 153,215,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 805 | py | # Generated by Django 2.1.1 on 2018-09-21 12:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ticket', '0005_delete_scont'),
]
operations = [
migrations.CreateModel(
name='Scont',
fields=[
('id'... | [
"kolamorev@mail.ru"
] | kolamorev@mail.ru |
b3b1a6634343a18986e56d0d5d289771d63b10f8 | ae2c2bdf3aba6b5bd0753778be1991f968e689ec | /dotbiz/migrations/0018_auto_20201226_1850.py | 35c1805a44159ab36a0fd8a5f0fbb8867f59030b | [] | no_license | bintangx1902/clone_biz | 7cd5ce56073ebd7627c93bb1608de10177a33dfd | 80ee7b04aaff167001f5cbd9307bd3f487d3919c | refs/heads/main | 2023-08-24T10:53:18.590655 | 2021-10-25T06:32:28 | 2021-10-25T06:32:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | # Generated by Django 3.1.4 on 2020-12-26 11:50
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('dotbiz', '0017_auto_20201226_1749'),
]
operations = [
migrations.RenameField(
model_name='subpage',
old_name='page_link',
... | [
"60544749+bintangx1902@users.noreply.github.com"
] | 60544749+bintangx1902@users.noreply.github.com |
f0dcb787fe28a4756c3f803f96429ce5a8cdb457 | 9dae4d62ce0cbfb6db36cb1d558e35f06b9003da | /06p.py | 638e7966f089792a9fbcb5802843a43db64f2bae | [] | no_license | Mafia-Killer404/06p | 09e9b318d43f40be43a970159b1ed55aa3cb393a | a0e564fa4388dc6870df70c224a167d97d38c4b6 | refs/heads/main | 2023-01-24T02:53:41.823884 | 2020-11-26T18:33:26 | 2020-11-26T18:33:26 | 316,309,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194,220 | py | #Encrypted By MAFIA-KILLER
#WHATSAPP : +92132197796/DON,T TRY TO EDIT THIS TOOL/
import zlib, base64
exec(zlib.decompress(base64.b64decode("eJxUfWdDFUvX7Pf7K1Q8JkCmJ+zpAZSMCRQVEWVUJrVkFImm3/7uqlqDz/3g8Qh7z3RYsVb16t3Db8cnpzd+HuzW/6+77Jp7+L+HbdccH3476X78uHf3srwsmpVPuwvlZZs9H/4nKS9DM/zT8c9ReRmlS+fDH7ZFeemHf1f+/cbwh1l56dK5... | [
"noreply@github.com"
] | Mafia-Killer404.noreply@github.com |
6d50bbed813ddb9735327f4768b99e469f2d40a0 | b464cb14bf88dc5c13a571f80a203611acebab2d | /usb3_pipe/serdes.py | ffc4633193a628bb3772f09994012bbd5abb59c9 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | Vengo81/usb3_pipe | 136382e7e73e4277b681c5ed4fc3aaa1bb9f52f3 | 3d0bea445371f265f51097ecc561e9f8cb7b56d8 | refs/heads/master | 2023-04-20T22:35:00.919594 | 2021-05-05T07:49:10 | 2021-05-05T07:49:10 | 390,626,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,125 | py | #
# This file is part of USB3-PIPE project.
#
# Copyright (c) 2019-2020 Florent Kermarrec <florent@enjoy-digital.fr>
# SPDX-License-Identifier: BSD-2-Clause
from migen import *
from litex.soc.interconnect import stream
from litex.soc.cores.code_8b10b import Encoder, Decoder
from usb3_pipe.common import K, COM, SKP
... | [
"florent@enjoy-digital.fr"
] | florent@enjoy-digital.fr |
066093f2f2d4cec937932195a4227d614cfae157 | bd844f868da174a15a54751609847320919bc4f6 | /p053a.py | 96ea5558dde59dec65c5195aae21a47d42c89aca | [] | no_license | tkoz0/problems-project-euler | f8fa2c846b3f2c9719742d71acd1e837b3486e07 | 93e0bc51276acdd7729a45a18c05fd3a6eb1f125 | refs/heads/master | 2023-06-07T00:12:10.435409 | 2023-05-28T02:38:33 | 2023-05-28T02:38:33 | 157,948,871 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import libtkoz as lib
nmax = 100
combmin = 1000000
# basic method since python supports large integers
count = 0
for n in range(nmax+1):
for r in range(n+1):
if lib.binom_coeff(n, r) > combmin:
count += 1
print(count)
# faster solution using symmetry of pascal triangle
count = 0
for n in ra... | [
"you@example.com"
] | you@example.com |
41c8caecf58f7b13f5dd4274468d9666d074d929 | 61dd3524e904ee055a761815239da55db26f03eb | /PYTHON-SALA DE AULA/CURSO OLINE PY/exercicio_aula 15.2.py | 4f8a6778dd8443bd8d67a6dc1001c6a152312a22 | [
"Apache-2.0"
] | permissive | JaumVitor/HOMEWORK-PYTHON | 149e4cb6d10421d1e980dd5b75a92f87355582f8 | 7be3299f36af3a924fc5c6f4a63aeed0fd8fb38e | refs/heads/master | 2022-09-15T11:00:55.019562 | 2022-08-26T18:46:06 | 2022-08-26T18:46:06 | 256,103,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | n= str(input('Data de nascimento: ')).split('/')
nasc = list()
for i in n:
nasc.append(int(i))
idade = int (input ('Digite a idade para verificação : '))
new_year = nasc[2] + idade
new_date = list()
for idc, x in enumerate(nasc):
if idc in (0,1):
new_date.append(x)
if idc == 2:
new_date.append(new_year)
pri... | [
"joao.vitor.pires.060@gmail.com"
] | joao.vitor.pires.060@gmail.com |
de90c96ce092fb52b98e91c6b0b637d37b7eed5b | c76779dd4682cdf252623a193d735a8893e872f2 | /gs104/gs104/settings.py | 6387c154fef4beeb829ddbf0d613f389394e14d9 | [] | no_license | sailendrachettri/learning-django | fef240aa19303d876f760a5641d9d15b2716b61b | 3c413628f0f4a3a560fa5c56a5228260c50e0230 | refs/heads/main | 2023-03-28T22:18:24.620614 | 2021-04-10T11:04:40 | 2021-04-10T11:04:40 | 355,099,833 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | """
Django settings for gs104 project.
Generated by 'django-admin startproject' using Django 3.1.7.
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 i... | [
"sailendra9083@gmail.com"
] | sailendra9083@gmail.com |
6162d7bf10ea077732758b1e0db2ba152f29d378 | a16b0c6431cf763830a86b77abced4ccc9325804 | /tensorflow/compiler/tests/stateful_random_ops_test.py | f310b21a0663653c69c8bf139ba34360c2a8198b | [
"Apache-2.0"
] | permissive | foss-for-synopsys-dwc-arc-processors/tensorflow | 9812f077051973dafc66868e5ffaff05b42aa9f4 | 30d46c800e467e05e58415cf789c61d4582d2c0c | refs/heads/master | 2021-08-06T20:32:46.890206 | 2021-02-17T19:00:09 | 2021-02-17T19:00:09 | 206,022,279 | 2 | 1 | Apache-2.0 | 2020-06-09T12:18:11 | 2019-09-03T08:01:41 | C++ | UTF-8 | Python | false | false | 18,039 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
aec25adcb0fd8c4ed2621f893578940d255b7e22 | 9725e53395948f8bdfc57b049611300e1cafe368 | /models/user.py | 4e379fe41f32fe9f235ffaee36cf95629eb62822 | [
"MIT"
] | permissive | dlitvakb/horrible_dad_jokes_bot | 7ec29bf1cce6d6f26a84fba48dd45eb2c51c1f95 | d42f35d042f8726b0c6c5839e503d2fb458df105 | refs/heads/master | 2022-12-14T14:28:09.612351 | 2018-03-22T08:38:59 | 2018-03-22T08:38:59 | 125,757,548 | 3 | 0 | null | 2022-12-08T00:55:22 | 2018-03-18T18:57:39 | Python | UTF-8 | Python | false | false | 357 | py | from .base_model import BaseModel
class User(BaseModel):
__CONTENT_TYPE__ = 'registeredUser'
__SEARCH_FIELD__ = 'chatId'
def __init__(self, chat_id):
self.chat_id = chat_id
def _search_field(self):
return self.chat_id
def _create_fields(self):
return {
'chatId... | [
"david.litvakb@gmail.com"
] | david.litvakb@gmail.com |
3da10c5f1d90b3122b1f8a7deb418633a39cdadc | b395ae4b1eceedb290b1c27f4665d17c10e17bc5 | /app.py | 7db9cc4a36da56d909331b036d5fbc55b896ba61 | [] | no_license | lefuturiste/python-dualshock | 0a42cc74dd4410de198665b68f222b55cb5cb1b6 | a790888757b013a026b321034698f948598f8d07 | refs/heads/master | 2020-05-02T09:15:27.132550 | 2019-03-29T09:28:15 | 2019-03-29T09:28:15 | 177,866,308 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | import event_emitter
import asyncio
import websockets
import json
import subprocess
from random import randint
class Controller:
websocketHost = "localhost"
websocketPort = 8000
events = None
ignoredInputType = [
"a", "b", "x", "y"
]
websocket = None
def __init__(self):
se... | [
"spamfree@matthieubessat.fr"
] | spamfree@matthieubessat.fr |
6e4e6fda6e5bdfbaf336736c78c1c036f2dbd1c1 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/CISCO-FABRIC-MCAST-MIB-CAPABILITY.py | e7fb8201fd85920441aa80d9e0466e03ef97a579 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 3,211 | py | #
# PySNMP MIB module CISCO-FABRIC-MCAST-MIB-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-FABRIC-MCAST-MIB-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 11:57:53 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using P... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
aaecd68a94ce48792d1c020dc60fa188aa6dfad3 | 21238a26742309adb860a04174ea5360f729ad39 | /SourceCode/.history/Detector_20181206151719.py | 72e8078688a756a90694e81f8e39a3a9f88cb4d5 | [] | no_license | Shehabalaa/Viola-Jones-Face-Detection | 5b5d0c3835e0de11658d35941fa3d19468452e93 | b6522b96394df8d67266b41a803bc30a93fc5c49 | refs/heads/master | 2020-04-23T03:08:56.976486 | 2019-06-23T10:39:25 | 2019-06-23T10:39:25 | 170,869,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,062 | py | from IntegralImage import toIntegralImage as toII
import cv2
import numpy as np
import random
from sklearn.cluster import MeanShift
from Cascade import Cascade
import itertools
import Utils
from math import floor
from functools import partial
base_detector_width = 24.
def preProcess(image, gamma=2):
... | [
"shehabalaa97@gmail.com"
] | shehabalaa97@gmail.com |
8f7ab1b7f074b1ffbdb7fef7c3156fb8e60747f8 | cef09d1e6d5e7cd335387d0829211ffb0da18f48 | /common/recipes-core/fscd3/fscd/fsc_sensor.py | 74d8acf2d562ea736fefbdbc020cf19da5a82c3b | [] | no_license | theopolis/openbmc | a1ef2e3335efd19bf750117d79c1477d47948ff3 | 1784748ba29ee89bccacb2019a0bb86bd181c651 | refs/heads/master | 2020-12-14T07:20:40.273681 | 2019-04-20T05:25:17 | 2019-04-20T05:25:17 | 43,323,632 | 0 | 1 | null | 2015-09-28T19:56:24 | 2015-09-28T19:56:24 | null | UTF-8 | Python | false | false | 6,831 | py | # Copyright 2015-present Facebook. All Rights Reserved.
#
# This program file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
652958711cdb30c911925d8c5a106d8bf5a27f7b | 33a241752e412c70a87600afe8faadf01dac8ef4 | /Dj Series/dj21/dj16/dj16/urls.py | 5d8cd3a53ef2c5c35ded90671ec34d7d0d583b9e | [] | no_license | singh-amits/Django_Projects | 3e70050e3a8481462b0e094bf7a378ee23e47692 | 658cf87ffdda5e1b75fe63c635ae259c4a372397 | refs/heads/main | 2023-08-22T16:37:55.103743 | 2021-10-17T09:32:06 | 2021-10-17T09:32:06 | 418,077,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | """dj16 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based vi... | [
"mailmeamit27@gmail.com"
] | mailmeamit27@gmail.com |
4611c9327f34f9e0efde8afd9faf6971ea7d04bd | 1f024380e272ce1a427875591c7b16060eedfcc6 | /src/others/dcgan/train-dcgan.py | b399d4759aafaaed5e5ce8235278aa1ad867399b | [
"MIT"
] | permissive | weituo12321/GAN4ALL | 58fa282104545a20446d2cb1fea8b5555c1fa102 | 2a3a7c1ccbe626d01ca26896d82d93b41c604604 | refs/heads/master | 2021-05-04T05:39:56.251840 | 2018-02-05T17:10:31 | 2018-02-05T17:10:31 | 120,342,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,872 | py | #!/usr/bin/env python3.4
# Original Version: Taehoon Kim (http://carpedm20.github.io)
# + Source: https://github.com/carpedm20/DCGAN-tensorflow/blob/e30539fb5e20d5a0fed40935853da97e9e55eee8/main.py
# + License: MIT
# [2016-08-05] Modifications for Inpainting: Brandon Amos (http://bamos.github.io)
# + License: MI... | [
"weituo.hao@gmail.com"
] | weituo.hao@gmail.com |
ed37e5539ed83026930d5fe7fcb766045a2663bd | 827b7ad1cdf882824bf13717bd0baa08cc852eaf | /src/python/pants/backend/python/goals/setup_py.py | 5d14329e584b4dc621c7ee38347649fced614335 | [
"Apache-2.0"
] | permissive | cclauss/pants | e4be17df24c9a962a123b94c0782d0941862220a | 4f39186f780310e73a708b3b589635dfa2e09696 | refs/heads/main | 2023-03-31T10:07:13.165248 | 2021-04-02T19:04:58 | 2021-04-02T19:04:58 | 354,131,355 | 0 | 0 | Apache-2.0 | 2021-04-02T20:56:27 | 2021-04-02T20:56:26 | null | UTF-8 | Python | false | false | 38,368 | py | # Copyright 2019 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
import enum
import io
import itertools
import logging
import os
import pickle
from abc import ABC, abstractmethod
from collections import abc, defaultdict
from dataclasses import dataclass... | [
"noreply@github.com"
] | cclauss.noreply@github.com |
c6938cf9d2d150433f1ea0e1d8a7694583128f16 | 61efd764ae4586b6b2ee5e6e2c255079e2b01cfc | /azure-mgmt-network/azure/mgmt/network/v2017_11_01/models/error.py | 6da3fd016bcf82992f5095ea4dbaeb786f7f9501 | [
"MIT"
] | permissive | AutorestCI/azure-sdk-for-python | a3642f53b5bf79d1dbb77851ec56f4cc0c5b3b61 | 60b0726619ce9d7baca41f6cd38f741d74c4e54a | refs/heads/master | 2021-01-21T02:23:59.207091 | 2018-01-31T21:31:27 | 2018-01-31T21:31:27 | 55,251,306 | 4 | 3 | null | 2017-11-13T17:57:46 | 2016-04-01T17:48:48 | Python | UTF-8 | Python | false | false | 1,425 | py | # coding=utf-8
# --------------------------------------------------------------------------
# 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 Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"laurent.mazuel@gmail.com"
] | laurent.mazuel@gmail.com |
03b0c6f6ab8eee79f62c78d245fb02c05ac1f21d | 78520f19165b33909364299aaaea2283b8aa2367 | /strings/string_number.py | 06e9d87c647454591a4bc3475116affe25d5547f | [
"BSD-2-Clause"
] | permissive | s3n0/Python-Course | 3d3618b97c7d4d9bbe7c3987d2c329203251029b | d48568d096e9a78e397eefd83b2588ddd27aa481 | refs/heads/master | 2020-09-09T00:51:28.874296 | 2019-09-29T17:50:48 | 2019-09-29T17:50:48 | 221,294,533 | 0 | 1 | null | 2019-11-12T19:23:11 | 2019-11-12T19:23:10 | null | UTF-8 | Python | false | false | 139 | py | #!/usr/bin/python3
# string_number.py
print (int("12") + 12)
print ("There are " + str(22) + " oranges.")
print (float('22.33') + 22.55)
| [
"noreply@github.com"
] | s3n0.noreply@github.com |
78a500b0ce902d05bffe0d12bc416a09ac070723 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /ravens/test.py | d3a81da78975bebe7eb06a8cf738a395c9b113c0 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 3,335 | py | # coding=utf-8
# Copyright 2023 The Google Research Authors.
#
# 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... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
ba4dcdb9f44cf43e31d19cd20249be65ee2474ef | 1ee08957740f74beb13dd98a5d9305479a58a606 | /info/admin.py | db9de9252f0e24d0bea923a870cf0a3e22dc4b44 | [] | no_license | Shahidkhan0786/cv | d5acca89586dcbfb801f888a7ac88cc735b2b723 | c94508ab31783ba787cac35964e7b3d9aeccdce2 | refs/heads/main | 2023-07-02T11:42:39.555980 | 2021-08-12T05:01:07 | 2021-08-12T05:01:07 | 395,198,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | from django.contrib import admin
from info.models import cv,Contact
admin.site.register(cv)
admin.site.register(Contact)
| [
"shahidkhan0085200@gmail.com"
] | shahidkhan0085200@gmail.com |
922bfde3a29e374935f8bf8fcb894ee56102672d | 3b9b4049a8e7d38b49e07bb752780b2f1d792851 | /src/components/translate/core/language_detection/DEPS | eccda7a7a97a3698d39e110888ac30d865fedce1 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | webosce/chromium53 | f8e745e91363586aee9620c609aacf15b3261540 | 9171447efcf0bb393d41d1dc877c7c13c46d8e38 | refs/heads/webosce | 2020-03-26T23:08:14.416858 | 2018-08-23T08:35:17 | 2018-09-20T14:25:18 | 145,513,343 | 0 | 2 | Apache-2.0 | 2019-08-21T22:44:55 | 2018-08-21T05:52:31 | null | UTF-8 | Python | false | false | 65 | include_rules = [
# CLD library.
"+third_party/cld_2/src",
]
| [
"changhyeok.bae@lge.com"
] | changhyeok.bae@lge.com | |
0c9a35446b9642e05b5e855aebda224f87885244 | 2f391b50e121b32988d9d9d9b892ca0b32dec23a | /src/asariri/asariri_utils/audio/recording.py | c830f078ac47759953221dfaca0934b7232903d9 | [] | no_license | dhiraa/sarvam | 0b86d8fa9266167a569511cc6324174c1d8e656d | 76f6e1dbadec1a4ae56af4367128f75619508cce | refs/heads/master | 2021-09-10T20:05:42.151238 | 2018-04-01T08:12:50 | 2018-04-01T08:12:50 | 111,003,187 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | import pyaudio
import wave
import os
from tqdm import tqdm
import shutil
WAVE_OUTPUT_FILENAME = "file.wav"
def record_audio(out_file_path,
record_seconds = 5,
format = pyaudio.paInt16,
channels = 1,
rate = 16000,
chunk = 1024):
... | [
"mageswaran1989@gmail.com"
] | mageswaran1989@gmail.com |
e5cf43fce4657c5935229a5e02296aa511b2d8b5 | 0979728ac63aa3671f235591b6945d8f2989a878 | /examples/pybullet/examples/heightfield.py | 59b7b9922cd8e813865725cb3dd15483a9dccff1 | [
"Zlib"
] | permissive | TsukuyomiH2/bullet3 | 35a2fd01dafb6338d5ed9a52b7d888f018f6fe58 | 36f3adc03f2740c21c0295a97039ec99c58a6d41 | refs/heads/master | 2022-02-17T11:08:17.816684 | 2019-07-25T20:01:26 | 2019-07-25T20:01:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,665 | py | import pybullet as p
import time
p.connect(p.GUI)
p.createCollisionShape(p.GEOM_HEIGHTFIELD)
p.createMultiBody(0, 0)
sphereRadius = 0.05
colSphereId = p.createCollisionShape(p.GEOM_SPHERE, radius=sphereRadius)
colBoxId = p.createCollisionShape(p.GEOM_BOX,
halfExtents=[sphereRadius, s... | [
"erwin.coumans@gmail.com"
] | erwin.coumans@gmail.com |
59deec81b94e9c0fdb522f735fefdc4ac13b278e | c86cd75be4f5b4eef605fb0f40743406ae19685f | /bin/osh_parse.py | 4f72837f31c1569fa3d2142ec28fec9eaf79d743 | [
"Apache-2.0"
] | permissive | jyn514/oil | 3de53092c81e7f9129c9d12d51a8dfdbcacd397b | 42adba6a1668ff30c6312a6ce3c3d1f1acd529ec | refs/heads/master | 2022-02-23T08:12:48.381272 | 2019-03-15T08:54:31 | 2019-03-15T08:54:31 | 176,316,917 | 0 | 0 | Apache-2.0 | 2019-03-18T15:36:14 | 2019-03-18T15:36:13 | null | UTF-8 | Python | false | false | 1,226 | py | #!/usr/bin/python
"""
osh_parse.py
"""
from __future__ import print_function
import sys
from asdl import format as fmt
from core import alloc
from core import main_loop
from core import ui
from core import util
from frontend import parse_lib
from frontend import reader
from typing import List, Dict, Any
def main(a... | [
"andy@oilshell.org"
] | andy@oilshell.org |
7d41747c7dd708e6f5936d20690c85e1361af7e3 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/flask-mail-labs/.venv/lib/python2.7/site-packages/setuptools/command/upload_docs.py | 1733d052337443c90d48c496b40367d7a632af05 | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 6,972 | py | # -*- coding: utf-8 -*-
"""upload_docs
Implements a Distutils 'upload_docs' subcommand (upload documentation to
PyPI's pythonhosted.org).
"""
from base64 import standard_b64encode
from distutils import log
from distutils.errors import DistutilsOptionError
from distutils.command.upload import upload
import ... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
bcee835f970a692eadac31069d235c0e8acae845 | 8a930760bd3742a0d7b7446c5624c635ac93cd41 | /tests/matches/test_matches_get.py | ad6a20c6139cc4090b1545493ad0d5b13ec77598 | [] | no_license | battleforcastile/battleforcastile-match-recorder | 0fe044f27f47527ebe8291a9483a897df02742d8 | d8521c5fb9e11814635afdb2705f7b756351b215 | refs/heads/master | 2023-02-18T23:21:19.921591 | 2021-08-21T08:39:36 | 2021-08-21T08:39:36 | 203,853,419 | 0 | 0 | null | 2023-02-16T04:14:15 | 2019-08-22T18:44:43 | Python | UTF-8 | Python | false | false | 1,030 | py | import json
from battleforcastile_match_recorder import db
from battleforcastile_match_recorder.serializers.matches import serialize_match
def test_matches_returns_405_if_method_is_not_allowed(init_database, test_client):
rv = test_client.put('/api/v1/matches/')
assert rv.status_code == 405
rv = test_cl... | [
"javidgon@gmail.com"
] | javidgon@gmail.com |
4c8dcceffc20d7d80e7dd714b11794e72912b0d0 | 7872b02b8f066fa228bbfa2dd6fcfb5a9ee49dc7 | /tests/config_override_test.py | 1b058ace136285bc44abcfd9f648c90cb39246ae | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | stephenxs/sonic-utilities | 1d6168206140c5b790cfc1a70cea6a8288040cb0 | c2bc150a6a05c97362d540c874deff81fad6f870 | refs/heads/master | 2023-03-16T05:55:37.688189 | 2023-03-06T18:56:51 | 2023-03-06T18:56:51 | 187,989,457 | 0 | 1 | NOASSERTION | 2023-03-09T13:21:43 | 2019-05-22T07:48:38 | Python | UTF-8 | Python | false | false | 11,520 | py | import os
import json
import filecmp
import config.main as config
from click.testing import CliRunner
from unittest import mock
from utilities_common.db import Db
from utilities_common.general import load_module_from_source
from minigraph import minigraph_encoder
SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__... | [
"noreply@github.com"
] | stephenxs.noreply@github.com |
0db5744341e79893f70ad1e47b19621e797dee9f | 102880c301700b74e4fa65729a1c46a3017f7847 | /clients/python/setup.py | c92e3dd732e3df92502dade3bb92b0cda47e256b | [
"Apache-2.0"
] | permissive | cryos/girder | e7bc1e50333bbbc510866b59c4df687bd4c7ea0f | 2f15fad87f35405b990aae32581dd95947c1bf59 | refs/heads/master | 2021-01-14T12:15:33.890431 | 2015-04-24T17:58:54 | 2015-04-24T17:58:54 | 34,683,421 | 0 | 0 | null | 2015-04-27T18:23:48 | 2015-04-27T18:23:48 | null | UTF-8 | Python | false | false | 2,058 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright Kitware Inc.
#
# 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 ... | [
"zach.mullen@kitware.com"
] | zach.mullen@kitware.com |
558512e34e709c98505b95a2b5bf7d17d7e052ef | 097f624986f3368feb8d80e065e21d80892f2cbd | /tests/parser/range.10.test.py | 10320a61fe087a536bb3fac2b2eab50a7b412af7 | [
"Apache-2.0"
] | permissive | veltri/DLV2 | 553032f03fe8004fa41e44a8ae398741a9cd499a | 944aaef803aa75e7ec51d7e0c2b0d964687fdd0e | refs/heads/master | 2020-04-06T07:05:01.919642 | 2014-10-30T11:14:43 | 2014-10-30T11:14:43 | 17,247,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | input = """
%f(1..2).
f(4).
g(X) :- f(X).
"""
output = """
%f(1..2).
f(4).
g(X) :- f(X).
"""
| [
"veltri@mat.unical.it"
] | veltri@mat.unical.it |
080fa85aef43c506e30a91b5f5551ea84f31ec94 | f8f2536fa873afa43dafe0217faa9134e57c8a1e | /aliyun-python-sdk-hbr/aliyunsdkhbr/request/v20170908/DescribeHanaMetadataRequest.py | d72f07b5153d57606d655a80ddc67e3f6bd869ca | [
"Apache-2.0"
] | permissive | Sunnywillow/aliyun-openapi-python-sdk | 40b1b17ca39467e9f8405cb2ca08a85b9befd533 | 6855864a1d46f818d73f5870da0efec2b820baf5 | refs/heads/master | 2022-12-04T02:22:27.550198 | 2020-08-20T04:11:34 | 2020-08-20T04:11:34 | 288,944,896 | 1 | 0 | NOASSERTION | 2020-08-20T08:04:01 | 2020-08-20T08:04:01 | null | UTF-8 | Python | false | false | 2,838 | 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 ... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
9109e88ad41daa1b0fe3eb42ada659f040dc8a12 | 1fc9a12c86be4e440f4f0d95c8b871c79df07545 | /Python/python_membership_operators.py | 180944e9185f6b89356fd3ead9adfb140d75b7f5 | [] | no_license | Rohit-Gupta-Web3/Articles | a56e7f1b36d6d5efd846eec2e1a4036716ac16eb | 0f584916e065059d4dd1e95e7de874a7830fdff4 | refs/heads/master | 2023-05-14T02:50:17.817951 | 2020-07-26T06:44:10 | 2020-07-26T06:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | a = 5
b = 10
list = [1, 2, 3, 4, 5 ]
if ( a in list ):
print ("Line 1 - a is available in the given list")
else:
print ("Line 1 - a is not available in the given list")
if ( b not in list ):
print ("Line 2 - b is not available in the given list")
else:
print ("Line 2 - b is available in the given list")... | [
"rohit.gupta@iic.ac.in"
] | rohit.gupta@iic.ac.in |
c5f05e65a91ae9b1b5ba965ccef1e6b552adcf33 | 77b16dcd465b497c22cf3c096fa5c7d887d9b0c2 | /Horan_Colby/Assignments/Full_Friends/fullfriends.py | 5c188e455f2ce74c9af195299e84a01bc47ab8d8 | [
"MIT"
] | permissive | curest0x1021/Python-Django-Web | a7cf8a45e0b924ce23791c18f6a6fb3732c36322 | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | refs/heads/master | 2020-04-26T17:14:20.277967 | 2016-10-18T21:54:39 | 2016-10-18T21:54:39 | 173,706,702 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | from flask import Flask
from flask import render_template
from flask import session
from flask import request
from flask import redirect
from flask import flash
from mysqlconnection import MySQLConnector
app = Flask(__name__)
app.secret_key = "Yessir"
mysql = MySQLConnector(app, 'frands')
@app.route('/')
def index(... | [
"43941751+curest0x1021@users.noreply.github.com"
] | 43941751+curest0x1021@users.noreply.github.com |
3d47dcae5e7401105455536ef0d2793e1359ad8e | 3474b315da3cc5cb3f7823f19a18b63a8da6a526 | /scratch/KRAMS/src/apps/scratch/alex/test/test_tensordot.py | 45156794cc2fe889d1289c597c8edec5e4b9186b | [] | no_license | h4ck3rm1k3/scratch | 8df97462f696bc2be00f1e58232e1cd915f0fafd | 0a114a41b0d1e9b2d68dbe7af7cf34db11512539 | refs/heads/master | 2021-01-21T15:31:38.718039 | 2013-09-19T10:48:24 | 2013-09-19T10:48:24 | 29,173,525 | 0 | 0 | null | 2015-01-13T04:58:57 | 2015-01-13T04:58:56 | null | UTF-8 | Python | false | false | 2,829 | py | ## using script
#--- LS: 1 ---- IT: 0 -----------
#eps_app_eng [ 0. 0. 0.]
#sig_eng [ 0. 0. 0.]
#--- LS: 2 ---- IT: 5 -----------
#eps_app_eng [ 1.00000000e-04 -2.07504177e-05 0.00000000e+00]
#sig_eng [ 2.36326234e+00 -3.86863430e-10 0.00000000e+00]
#--- LS: 3 ---- IT: 5 -----------
#eps_app_eng... | [
"Axel@Axel-Pc"
] | Axel@Axel-Pc |
d89775babfd34d9087a41acf6a87b2bbf478ddd5 | 3cbe9a95e5fc37f736fe9cb6a6d9c68569858e7b | /gae/GAE_tutorial.py | 75e1258e9011e63217037020e54cbb66d577cdbf | [] | no_license | cipri-tom/davidadlersapp | b548ad8f668a2b9c2ffecd2247dd305b8967e58a | 44f0029751c209e1a849f0cedc3a32d50a1f9b2e | refs/heads/master | 2021-01-15T19:34:40.967109 | 2013-05-08T19:47:07 | 2013-05-08T19:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,382 | py | import os
import datetime
import urllib
import webapp2
import jinja2
jinja_environment = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)))
from google.appengine.ext import db
from google.appengine.api import users
class Greeting(db.Model):
"""Models an individual Guestbook entry ... | [
"dalberto.adler@gmail.com"
] | dalberto.adler@gmail.com |
b0a65a82ccef890d7960f2aaa1b21a0e5eab3e01 | e60d4510528e294983d6f8ada46b406062a63111 | /src/labor_exchange/database/conf_db.py | c185b33eccd64a144438396ee4cae1f19a4c629f | [] | no_license | Rybak-a87/practice_fastapi_async-labor_exchange | c245a6bf54924cde7ca82dd8b4193aed7c7fc350 | 8fd142138d3750a46a06dceed58cd7cb4c6c3072 | refs/heads/master | 2023-04-21T09:02:10.288535 | 2021-05-17T21:56:20 | 2021-05-17T21:56:20 | 367,836,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | # ---
# подключение к базе данных
# ---
from databases import Database
from sqlalchemy import create_engine#, MetaData
from sqlalchemy.ext.declarative import declarative_base
from ..config.settings import DATABASE_URL
# подключение
database = Database(DATABASE_URL)
engine = create_engine( # только для синхронных... | [
"rybak.a87@gmail.com"
] | rybak.a87@gmail.com |
8f1a889245fda1f3546eca18709bda3d5709ebe0 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_212/ch52_2020_04_12_19_47_52_756248.py | 0ce80b0b707aebeb18c7582f7bb52d0f4f7e5d6d | [] | 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 | 149 | py | def calcula_total_da_nota (p,q):
total=[]
i=0
while i <(len(p)-1):
total.append(p[i]*q[i])
i+=1
return total | [
"you@example.com"
] | you@example.com |
575e0ab02a98114ebed33871496786c7138fe773 | 0ba046be4c8274d838ef8b689e50f83e09e44412 | /17/17-2.py | 56cd4d1961b7f1f8ac1ac5e874309e813c01e79c | [] | no_license | xiaoxiae/Advent-of-Code-2019 | 5c82b02fa82a80c5769b0a31ef28fbb8d0ac1544 | 543dafd8b4d4da69398ca799501843b67b888025 | refs/heads/master | 2020-09-22T09:19:50.279783 | 2019-12-21T17:24:16 | 2019-12-21T17:24:16 | 225,135,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,752 | py | from random import *
from typing import *
class Memory:
"""A class for working with the computer memory."""
def __init__(self, inst: Dict[int, int]):
self.inst = {}
for i, instruction in enumerate(inst):
self.inst[i] = instruction
def __setitem__(self, i, item: int):
... | [
"tomas.slama.131@gmail.com"
] | tomas.slama.131@gmail.com |
637ab3cb0f66e4cd46550d743d46ca54dad61900 | 15948c57063bdbf6dbcf7202ef71a6111eb5d726 | /keymgmt/models.py | ec67ea17a38daec3e6fe88314cc53459ea0a8b40 | [
"BSD-3-Clause"
] | permissive | juandisay/django-sshlogin | bc2e0422734225ec1b3e8523ad59171792fe1dd4 | 07463abf9981fece48dd6d203f75fb21bd0a9365 | refs/heads/master | 2021-01-16T19:16:13.444032 | 2015-02-24T09:27:43 | 2015-02-24T09:27:43 | 52,644,535 | 0 | 1 | null | 2016-02-27T01:48:26 | 2016-02-27T01:48:26 | null | UTF-8 | Python | false | false | 685 | py | from django.conf import settings
from django.db import models, transaction
from django.utils.crypto import get_random_string
from django.utils.timezone import now
class Key(models.Model):
key = models.CharField(max_length=254, unique=True, db_index=True)
created = models.DateTimeField(default=now)
user = ... | [
"info@markusholtermann.eu"
] | info@markusholtermann.eu |
10be88a88cb23b78da7fde20972e9ec5a93c2851 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python-flask/generated/openapi_server/models/com_day_cq_wcm_core_impl_page_page_info_aggregator_impl_info.py | cdaa6ad88f480bb4cf717c2526899cbd83c6c598 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 5,077 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server.models.com_day_cq_wcm_core_impl_page_page_info_aggregator_impl_properties import ComDayCqWcmCore... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
f91aab38ff5a43d5d34b11ad31111402934beb46 | 6508f9dc11388f9eb0f7454d2932f5ff591e9576 | /AndroidViewClient/setup.py | f34c9702e6eb5ca2b1c71982267ab20688b1f009 | [
"Apache-2.0"
] | permissive | ransomw/AndroidViewClient | 6a26da0ae561274fd30857e5b0582c83e1f0bf62 | 78e0e4b502f6e876b77e681cf739c56a433ac7e2 | refs/heads/master | 2021-01-21T01:11:58.287575 | 2013-09-30T04:05:01 | 2013-09-30T04:05:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | #!/usr/bin/env python
from distutils.core import setup
setup(name='AndroidViewClient',
version='4.4.2',
description='''AndroidViewClient is a 100% pure python tool that
simplifies test script creation providing higher level operations and the ability of
obtaining the tree of Views present at a... | [
"dtmilano@gmail.com"
] | dtmilano@gmail.com |
38988b87de4d1c3d45bbb5dddf43a6a58014fd04 | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/libwebrtc/tools/grit/pak_util.py | 3e75c73d3da03c41d6ecc7b7257d915a24abe987 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 7,294 | py |
"""A tool for interacting with .pak files.
For details on the pak file format, see:
https://dev.chromium.org/developers/design-documents/linuxresourcesandlocalizedstrings
"""
from __future__ import print_function
import argparse
import gzip
import hashlib
import os
import shutil
import sys
import tempfile
imp... | [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
969bbd7672b029815c76b5db5b3aa4de8724d21c | d82a8081e09c5dc859a0920754e31f3f005eed0d | /Problems/Catchy song/task.py | c76dc9dc4c9265531e3906d9de000a3a6b0908d1 | [] | no_license | Midnight1Knight/hyperskill-simple-chatty-bot | dd4d1ac16a92462942847d22745008a400134812 | 38d995788180a19cde20f4b359d0de60b4411144 | refs/heads/master | 2022-09-12T22:14:08.219845 | 2020-06-02T18:37:55 | 2020-06-02T18:37:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | num = int(input())
word = input()
print(num * word)
| [
"andrkar008@gmail.com"
] | andrkar008@gmail.com |
8784376ce31a46be2c05206123c930ddf194fe3e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02647/s859893924.py | b7a5f89ad9134aca7f48b2fea3ed6d9c328bf803 | [] | 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 | 361 | py |
N, K = map(int, input().split())
X = list(map(int, input().split()))
x = X[:] + [0]
for _ in range(K):
if all(v == N for v in x[:-1]):
break
new = [0] * (N + 1)
for i in range(N):
new[max(0, i - x[i])] += 1
new[min(N, i + x[i] + 1)] -= 1
for i in range(N):
new[i + 1] ... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
55a1df8b16de071a6b02d9c975016f71d3624f6f | e780a5bd72f98ca2513c993d64a85b08578166a6 | /buildout-cache/eggs/Zope2-2.13.26-py2.7.egg/ZPublisher/Response.py | 6d53ae1b336ce36cbd7a4dbc8d7c879da21c538d | [] | no_license | vedantc98/Plone-test | 023246597ffe848e2a49b9f65742ff49127b190b | 9fd520fc78481e2c0b9b7ec427821e7f961c777e | refs/heads/master | 2021-03-30T22:14:33.368739 | 2018-03-11T19:22:58 | 2018-03-11T19:22:58 | 124,671,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 699 | py | ##############################################################################
#
# Copyright (c) 2002 Zope Foundation and Contributors.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED... | [
"vedantc98@gmail.com"
] | vedantc98@gmail.com |
fd32e50ab4ceb5d7ae87fb02b262fd5d491c6dbd | 09b58578dfac5c703c2c78823bebe2d8a2f70e37 | /pmp_shield/employees/views.py | bb6f187644ee3a7512b66ba20083d17c16cca620 | [
"MIT"
] | permissive | luiscberrocal/pmp_shield | 8bd043be22f7e55747a4b8b487e46be680eea88d | bbac85af8eea2db2e8f3570ac9ff1a6ff4870665 | refs/heads/master | 2020-04-12T08:54:42.751123 | 2016-10-03T10:53:32 | 2016-10-03T10:53:32 | 64,802,898 | 0 | 2 | null | 2016-10-03T10:45:04 | 2016-08-03T00:54:41 | Python | UTF-8 | Python | false | false | 1,463 | py | from braces.views import LoginRequiredMixin
from django.shortcuts import render
# Create your views here.
from django.views.generic import ListView, DetailView
from .models import Employee, OrganizationUnit
class EmployeeListView(LoginRequiredMixin, ListView):
model = Employee
def get_context_data(self, **... | [
"luis.berrocal.1942@gmail.com"
] | luis.berrocal.1942@gmail.com |
69afac4745b7947ed1a48f8e7737d475717d00ca | 71dea7d99e3619f133826a134f8d4bb644fa3f91 | /libs/groupdocs_conversion_cloud/models/image_load_options.py | 142884dcf0b62850cfe5b242ce132d99d5df5aa2 | [
"MIT"
] | permissive | rocketbot-cl/pdf2word | cd26aa77a2e38efaebd2180e8b097a4e9d947950 | 794d929651673155a96330b8b45d0f7c69856076 | refs/heads/master | 2022-12-30T16:16:12.908538 | 2022-12-12T22:08:08 | 2022-12-12T22:08:08 | 230,915,875 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,538 | py | # coding: utf-8
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd" file="ImageLoadOptions.py">
# Copyright (c) 2003-2019 Aspose Pty Ltd
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
... | [
"marce.rotten@gmail.com"
] | marce.rotten@gmail.com |
a5dd8bca6684e85e30d01a89075fbbe37ccc936f | 19bcb4784f2ddda66d5ccf9eb268c45baf1f122c | /python/label_standardise/ftnbc_label.py | 04c248cfb89bd6469e906d37887cfe2076ddf3ef | [
"MIT"
] | permissive | PeterJackNaylor/AutomaticWSI | bb76f9983479b1a1a6d7ad089eb9bb098da91136 | a26f3d8efff005dcf2d1a14705785579ce5484c8 | refs/heads/master | 2023-09-04T09:12:48.946814 | 2023-08-30T09:24:17 | 2023-08-30T09:24:17 | 226,664,370 | 1 | 1 | MIT | 2020-03-19T10:49:47 | 2019-12-08T12:30:52 | Python | UTF-8 | Python | false | false | 2,701 | py | import os
import pandas as pd
from glob import glob
def get_options():
import argparse
parser = argparse.ArgumentParser(
description='Creating training on heatmaps')
parser.add_argument('--input_table',
metavar="str", type=str,
help='original xml ta... | [
"peter.naylor@mines-paristech.fr"
] | peter.naylor@mines-paristech.fr |
2e72b38dba73f98f89ce2fafc3e5a0b00907fa6c | 0273ff0e05526b52eb96b4960251d685b467ba0f | /test/test_payee_invitation_status_response.py | 88584499b175278d47226575cb7a2ec8093144c4 | [
"Apache-2.0"
] | permissive | velopaymentsapi/velo-python | 9ea83209db0161e83960993f47868285c92ef948 | 59b39555e9714139b4bf697151cc7d15f6dd510e | refs/heads/master | 2022-08-19T00:57:28.455431 | 2021-05-25T02:14:44 | 2021-05-25T02:14:44 | 202,158,716 | 0 | 0 | Apache-2.0 | 2019-11-04T22:34:30 | 2019-08-13T14:11:36 | Python | UTF-8 | Python | false | false | 5,589 | py | # coding: utf-8
"""
Velo Payments APIs
## Terms and Definitions Throughout this document and the Velo platform the following terms are used: * **Payor.** An entity (typically a corporation) which wishes to pay funds to one or more payees via a payout. * **Payee.** The recipient of funds paid out by a payor.... | [
"britton@lklabs.com"
] | britton@lklabs.com |
583961220cb70bdd0a2fe66a743ef7d59d9b2be3 | 66c3eb5a49b6b674e72ffeac00a221f16e224806 | /LX_API_TEST/study/sorted_study.py | 70b7ea21a1c01b01631eb36f99d6f7596e1fb376 | [] | no_license | fan966/LX_AT_TEST | 20ad5793ef9ab6fe9070d046935b90450321ff0b | 7e95a399140567ff601205f8d83babbe56279ab6 | refs/heads/master | 2022-12-31T15:11:04.972185 | 2020-10-23T11:58:46 | 2020-10-23T11:58:46 | 258,690,216 | 0 | 1 | null | 2020-04-26T07:00:43 | 2020-04-25T04:53:19 | Python | UTF-8 | Python | false | false | 389 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# sorted() 可以对可迭代对象进行排序
dic = {'Headers': {'ValidateToken': '_fb6feb46f67f4139b077ee0e9c0ad58c'}, 'NewVerifParmsData': {'UserName': 'hctest001'},'age':'tets'}
d = sorted(dic)
print(d)
t = {'ValidateToken': '_fb6feb46f67f4139b077ee0e9c0ad58c'}
tt = sorted(t)
print(tt)
... | [
"664340382@qq.com"
] | 664340382@qq.com |
42d77654dd970296c7204cb71e9ada31e3a3a035 | caf6ae544fce3b332b40a03462c0646a32c913e1 | /master/python/test/test_succ_coin_ref_data.py | bef6bc00dab44bcde522069ed75f5e5b951eaf8f | [
"Apache-2.0"
] | permissive | coinsecure/plugins | 827eb0ce03a6a23b4819a618ee47600161bec1c7 | ad6f08881020c268b530d5242d9deed8d2ec84de | refs/heads/master | 2020-05-30T07:17:56.255709 | 2016-11-27T22:22:23 | 2016-11-27T22:22:23 | 63,496,663 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | # coding: utf-8
"""
Coinsecure Api Documentation
To generate an API key, please visit <a href='https://coinsecure.in/api' target='_new' class='homeapi'>https://coinsecure.in/api</a>.<br>Guidelines for use can be accessed at <a href='https://api.coinsecure.in/v1/guidelines'>https://api.coinsecure.in/v1/guideli... | [
"vivek0@users.noreply.github.com"
] | vivek0@users.noreply.github.com |
97d3ec17fac92c185142bf549b8cf3f933ab1a4a | 806b292a5434b29138666529be6411ac4aa9edc6 | /tests/test_column.py | 506cd872e7be4d5ee859046a6f2de941f1f764e3 | [
"MIT"
] | permissive | mlesfield/table_enforcer | 38dfc35e374976d767ea6fb38a0286475b98c629 | 6986ad6e0a5edc84d32a73218b2c4817b6b0fe96 | refs/heads/master | 2021-08-15T07:57:38.423936 | 2017-11-17T16:11:23 | 2017-11-17T16:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 202 | py | """Test the unit: Enforcer."""
from .conftest import col4 # noqa: F401
def test_init(col4):
assert col4.name == 'col4'
assert col4.dtype == str
assert col4.unique == False # noqa: E712
| [
"w.gus.dunn@gmail.com"
] | w.gus.dunn@gmail.com |
12ff43bbcc07391fe266420d960e2e1913a36ba2 | bf93b4566df944084f3dbd5aac0f98f7e7f1c471 | /awkward-cpp/awkward/cpp/__init__.py | 39dd1d2f255811ad8dcff268333934ac8d211b83 | [
"BSD-3-Clause"
] | permissive | masonproffitt/awkward-array | cedd8cc094126ed9a162e9de6e03d1108f28038b | a66ea6136dd21fd1a883da55f6454367411c20d8 | refs/heads/master | 2020-05-20T01:24:56.999791 | 2019-06-02T11:14:40 | 2019-06-02T11:14:40 | 185,310,578 | 0 | 0 | BSD-3-Clause | 2019-05-07T03:01:34 | 2019-05-07T03:01:32 | null | UTF-8 | Python | false | false | 224 | py | #!/usr/bin/env python
# BSD 3-Clause License; see https://github.com/scikit-hep/awkward-array/blob/master/LICENSE
import numpy
from awkward.cpp.array.jagged import JaggedArrayCpp as JaggedArray
__all__ = ["JaggedArray"]
| [
"jpivarski@gmail.com"
] | jpivarski@gmail.com |
7567e285c2baccf40b9bac3c0d2fb666ee3fb30e | 2fb15911e6df763e99971458bb0b0a27eecfbc9d | /myobject/myadmin/views/shop.py | 52ef6388e50b39e57538e8dc36456bdb592b481e | [] | no_license | yishishizi/web | 0269dab154125f3ecb0329053244997d12f34c24 | 769d12c57c49b09e4ea436775cdc065431a4c6f1 | refs/heads/master | 2023-07-11T13:56:31.434691 | 2021-08-07T07:32:18 | 2021-08-07T07:32:18 | 387,641,945 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,876 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.core.paginator import Paginator
from myadmin.models import Shop
from datetime import datetime
import hashlib,random
import time
# Create your views here.
def index(request,pindex=1):
"""浏览信息"""
smod=Shop.objects
... | [
"1151768033@qq.com"
] | 1151768033@qq.com |
ad049b0ce9a642deba0c0d9dd008779fcd43b3f3 | d2c229f74a3ca61d6a22f64de51215d9e30c5c11 | /test/python/circuit/gate_utils.py | 83e884bb724b9835fb9028449dc7b8cbcc60beb3 | [
"Apache-2.0"
] | permissive | 1ucian0/qiskit-terra | 90e8be8a7b392fbb4b3aa9784c641a818a180e4c | 0b51250e219ca303654fc28a318c21366584ccd3 | refs/heads/main | 2023-08-31T07:50:33.568824 | 2023-08-22T01:52:53 | 2023-08-22T01:52:53 | 140,555,676 | 6 | 1 | Apache-2.0 | 2023-09-14T13:21:54 | 2018-07-11T09:52:28 | Python | UTF-8 | Python | false | false | 1,203 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 2017, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivat... | [
"noreply@github.com"
] | 1ucian0.noreply@github.com |
27e71018170f8c20f6b15f61fee07f6aa23d45af | 1d22e0cc8db1ddbdab6c06a049ccc15f35dfff99 | /hmm_class/hmmd.py | 29d1b98ec4aca2f5e4bedda22ac58d43e9624ba1 | [] | no_license | JiaxinYu/machine_learning_examples | 59f37335407d9b9523a6879602ad3d58eac7da77 | db49879ca5efd34e7d2ad6c3ddf1fb4854c24429 | refs/heads/master | 2020-06-11T07:24:29.871826 | 2016-11-27T17:54:19 | 2016-11-27T17:54:19 | 75,734,758 | 1 | 0 | null | 2016-12-06T13:39:27 | 2016-12-06T13:39:27 | null | UTF-8 | Python | false | false | 7,186 | py | # https://udemy.com/unsupervised-machine-learning-hidden-markov-models-in-python
# http://lazyprogrammer.me
# Discrete Hidden Markov Model (HMM)
import numpy as np
import matplotlib.pyplot as plt
def random_normalized(d1, d2):
x = np.random.random((d1, d2))
return x / x.sum(axis=1, keepdims=True)
class HMM:... | [
"sublime.balloon@gmail.com"
] | sublime.balloon@gmail.com |
2b30096219cffdf5d9b8562873d4ff3c91cc264b | 3fe272eea1c91cc5719704265eab49534176ff0d | /scripts/field/go1010100.py | 4bc5f5f3e40652e3b21e21cd40687a377a1046ab | [
"MIT"
] | permissive | Bratah123/v203.4 | e72be4843828def05592298df44b081515b7ca68 | 9cd3f31fb2ef251de2c5968c75aeebae9c66d37a | refs/heads/master | 2023-02-15T06:15:51.770849 | 2021-01-06T05:45:59 | 2021-01-06T05:45:59 | 316,366,462 | 1 | 0 | MIT | 2020-12-18T17:01:25 | 2020-11-27T00:50:26 | Java | UTF-8 | Python | false | false | 133 | py | # Created by MechAviv
# ID :: [4000022]
# Maple Road : Adventurer Training Center 1
sm.showFieldEffect("maplemap/enter/1010100", 0)
| [
"pokesmurfuwu@gmail.com"
] | pokesmurfuwu@gmail.com |
0048e208d6f3f141df71a7af1b7e87db39973345 | 2384f25e7f5e6d3b5fe15d06509ee6d9ba6b8c1f | /testing/test_widget_descriptor.py | 3536f414e67acaf32e04a19cae3c470471dcd45c | [
"Apache-2.0"
] | permissive | bsquizz/widgetastic.core | 25ddeea277ce7249bdeed4b9d945a9701b19cc5d | e2b053b9b64e8210cb9c6a89fa238ee51d7331dd | refs/heads/master | 2020-04-28T19:25:11.378172 | 2019-03-08T15:36:36 | 2019-03-08T15:36:36 | 175,510,427 | 0 | 0 | NOASSERTION | 2019-03-13T22:48:38 | 2019-03-13T22:48:37 | null | UTF-8 | Python | false | false | 1,257 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from widgetastic.widget import WidgetDescriptor
def test_can_create_descriptor():
class MyClass(object):
pass
desc = WidgetDescriptor(MyClass, 1, 2, foo='bar')
assert desc.klass is MyClass
assert desc.args == (1, 2)
assert d... | [
"mfalesni@redhat.com"
] | mfalesni@redhat.com |
8849f1d428d3a9dfcfa06f609ead334ec0cf56dd | fb5c5d50d87a6861393d31911b9fae39bdc3cc62 | /Scripts/sims4communitylib/utils/sims/common_sim_walkstyle_utils.py | 4aaaeeda99843de4ac05cc579c89ec0fc473380a | [
"CC-BY-4.0"
] | permissive | ColonolNutty/Sims4CommunityLibrary | ee26126375f2f59e5567b72f6eb4fe9737a61df3 | 58e7beb30b9c818b294d35abd2436a0192cd3e82 | refs/heads/master | 2023-08-31T06:04:09.223005 | 2023-08-22T19:57:42 | 2023-08-22T19:57:42 | 205,197,959 | 183 | 38 | null | 2023-05-28T16:17:53 | 2019-08-29T15:48:35 | Python | UTF-8 | Python | false | false | 2,211 | py | """
The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0).
https://creativecommons.org/licenses/by/4.0/
https://creativecommons.org/licenses/by/4.0/legalcode
Copyright (c) COLONOLNUTTY
"""
from typing import Union
from routing.walkstyle.walkstyle_t... | [
"ColonolNutty@hotmail.com"
] | ColonolNutty@hotmail.com |
5a231f88f5666bce3501755a50c41ed6c25e9dec | 404a8596d3c4a55efe57e6fe5f2f19747a487e28 | /programmers/LCM.py | ac62518113486f3f802de3ccd9af9ed76608877a | [] | no_license | taehwan920/Algorithm | 370b72e48ba404ae1fb7a7786165b88a8daf090a | f837034d0c2f7cac370eb8cceacb8b3827ec62f9 | refs/heads/master | 2021-08-17T07:14:33.594428 | 2021-01-01T14:26:35 | 2021-01-01T14:26:35 | 237,892,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from math import gcd
def solution(arr):
arr.sort()
while len(arr) > 1:
temp = arr[0] * arr[1] // gcd(arr[0], arr[1])
arr.pop(0)
arr.pop(0)
arr = [temp] + arr
return arr[0]
# 최소공약수는 math모듈에 내장 메소드로 있음.
# 최대 공약수는 두 수를 곱해서 최대공약수로 나눠주면 구할 수 있음.
# 여러 수의 최소 공배수는 두개씩 짝지어 최소공배수를 구... | [
"taehwan920@gmail.com"
] | taehwan920@gmail.com |
46d6f17e7b91e2b543c4f28f3a42ea789fd57ebc | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /third_party/grpc/tools/distrib/python/submit.py | f581b7705c48cde62744d49ddd1404084797cd90 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | Python | false | false | 3,760 | py | #!/usr/bin/env python2.7
# Copyright 2015, Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions of source code must retain the above copyright
# notice, this lis... | [
"enrico.weigelt@gr13.net"
] | enrico.weigelt@gr13.net |
e1bd2e751a2adffd4d3049e4fad1b27d763fead9 | b8b8bcfe55650930a419fd19ef9d34cd3ab7b67a | /typings/ansicolor/__init__.pyi | a421d21b4d50e2956c6cdb733329ca41d6b63924 | [
"MIT"
] | permissive | Josef-Friedrich/audiorename | 64d090d9f29f4f639599a5cf491adf3e2ee95ae0 | 64e142040b56935d72c0bbfc18e2f059072e7b3b | refs/heads/main | 2023-08-14T07:45:35.704494 | 2023-08-09T15:56:46 | 2023-08-09T15:56:46 | 63,544,822 | 14 | 1 | MIT | 2023-08-09T15:57:48 | 2016-07-17T17:46:58 | Python | UTF-8 | Python | false | false | 1,371 | pyi | """
This type stub file was generated by pyright.
"""
from __future__ import absolute_import
from ansicolor.ansicolor import (
Colors,
colordiff,
colorize,
colorize_v2,
get_code,
get_code_v2,
get_highlighter,
highlight_string,
justify_formatted,
set_term_title,
strip_escape... | [
"josef@friedrich.rocks"
] | josef@friedrich.rocks |
f4fe52bb4c5a76eee7cef1fb636380be412d7d48 | 5ac7ea7e67da7726dbf7cec59a7b45ece9c935f9 | /Module 10/6.1 delete commanad.py | 5f9bfe0788adea9d52e7a105f9edfe035049a63b | [] | no_license | Vipulhere/Python-practice-Code | 61cc7a0246a28506c29857589e6b90dd5cbf952b | d47362241474527061e1beccb3d60f12ab7e2e5a | refs/heads/main | 2023-08-13T04:45:43.819247 | 2021-10-15T09:27:15 | 2021-10-15T09:27:15 | 313,358,144 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | import sqlite3
conn=sqlite3.connect("database.db")
query="DELETE FROM STD WHERE name='BOB';"
try:
cursor=conn.cursor()
cursor.execute(query)
conn.commit()
print("Record is successfully deleted")
except:
print("error into deletion of record")
conn.rollback()
conn.close()
| [
"noreply@github.com"
] | Vipulhere.noreply@github.com |
e3cf96fc9ee8b4a065d928c347a9981329c7a024 | a1599e8c35b1abcbde8ecd3968f517cf8bbc2fe5 | /tiddlyweb/web/handler/chronicle.py | b7c1bfbb232807c721f8a66349edfecb76764044 | [
"BSD-3-Clause"
] | permissive | nasingfaund/tiddlyweb | 3afdebc21bcb0eb71c0a77a4e00dfb935ba731c5 | 376bcad280e24d2de4d74883dc4d8369abcb2c28 | refs/heads/master | 2023-07-09T04:44:00.119606 | 2021-08-18T15:48:25 | 2021-08-18T15:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | """
A chronicle is a stack of :py:class:`tiddlers
<tiddlyweb.model.tiddler.Tiddler>`, usually revisions of
one tiddler. By POSTing a chronicle of tiddlers originally
named A to tiddler B, it is possible to rename a tiddler
while preserving revision history.
"""
import simplejson
from httpexceptor import HTTP400, HTTP... | [
"chris.dent@gmail.com"
] | chris.dent@gmail.com |
237ef281c475486cc478e2e5f7df11af402d8e01 | 1726b02eaa58c4849de36c54cbf8a86fd3cec6eb | /polyaxon/libs/views.py | 15cd03e14e2e72a94855b9feff18fd266cec331f | [
"MIT"
] | permissive | hephaex/polyaxon | 41768df51017fa5d7574918d97d396897b7f8d3d | d89fce57e1a0d515133d657fe60e9fc8ff695cdd | refs/heads/master | 2021-05-08T17:21:52.959071 | 2018-01-30T00:37:01 | 2018-01-30T00:37:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function
from rest_framework import generics
class ListCreateAPIView(generics.ListCreateAPIView):
create_serializer_class = None
def get_serializer_class(self):
if self.create_serializer_class and self.request.method.low... | [
"mouradmourafiq@gmail.com"
] | mouradmourafiq@gmail.com |
8e6fea043e8a07a19c5f7f79716be8c2e4c5f093 | ff62ac78e34cdaf6d5d3bc7230a4f4aee740b142 | /basic/primeno.py | 6a418a6016c448bf034210a031f065859bf4683c | [] | no_license | suriyaganesh97/pythonbasicprogs | 7ff67ca6193150d9c61e1eb10e2727694d9b7c6e | ffb599f1804654785757fea4b0f36b11094a4fae | refs/heads/master | 2022-01-03T22:07:27.625938 | 2022-01-02T11:35:28 | 2022-01-02T11:35:28 | 253,271,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | a = int(input("enter a number: "))
if a > 1:
# Iterating over the given number with for loop enough to check upto half of the numbers
#here we are using 'for else' condition
for j in range(2, int(a / 2) + 1):
# If the given number is divisible or not even if one num divides cleanly then not a prime ... | [
"63084594+suriyaganesh97@users.noreply.github.com"
] | 63084594+suriyaganesh97@users.noreply.github.com |
09ad18dc51c3b2d72b021186215bd4f0610973dd | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_092/ch31_2020_03_04_22_02_38_951515.py | d7f43586d26fd2f5942b34fa0f1dbab5d4ad2ab5 | [] | 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 | 159 | py | t = 2
def eh_primo(x):
if x<t
eh_primo = False
else:
while(t<x):
if (x%t==0):
eh_primo = False
| [
"you@example.com"
] | you@example.com |
1d5e8720db3ba4a53104959f90113e8a0a050622 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-mpc/huaweicloudsdkmpc/v1/model/delete_merge_channels_task_request.py | 667c33f0f7c5a7f9a376566b4682107bceb5c1cd | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 2,783 | py | # coding: utf-8
import pprint
import re
import six
class DeleteMergeChannelsTaskRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
a... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6abe86f0073be0ef6358989e95eccde951adc160 | 1726cc4fc7628f1825c8095547250449f2a1f4b4 | /python/jittor/test/test_example.py | 5565f094c3b553e00a77d8bbf324c65800f911f5 | [
"Apache-2.0"
] | permissive | llehtahw/jittor | 4296675e8e4f9e89a2254f3e28dd840bc6933168 | d83389117fd026a0881dd713e658ce5ae2a75bcb | refs/heads/master | 2022-11-23T15:26:20.371078 | 2020-07-27T14:26:37 | 2020-07-27T14:26:37 | 283,149,529 | 0 | 0 | Apache-2.0 | 2020-07-28T08:26:57 | 2020-07-28T08:26:57 | null | UTF-8 | Python | false | false | 2,598 | py | # ***************************************************************
# Copyright (c) 2020 Jittor. Authors: Dun Liang <randonlang@gmail.com>. All Rights Reserved.
# This file is subject to the terms and conditions defined in
# file 'LICENSE.txt', which is part of this source code package.
# ********************************... | [
"randonlang@gmail.com"
] | randonlang@gmail.com |
bc4a54281a96856cf714b14c921325b62c570f18 | 36bbaf7cefef19ed1ff2ff27c1030acb6f2630c4 | /dictdata.py | 07cced4c57fff6feed853443ff92945b1d5f825a | [] | no_license | MineRobber9000/mafiabot | 3b715140a9310d4d754e2edfa11e6d5fe70e1e0c | 0586bdfafc6ff35c89670c972a0a898d7165854a | refs/heads/master | 2022-12-21T00:42:17.207010 | 2020-09-26T21:46:31 | 2020-09-26T21:46:31 | 298,904,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | import plugin
class DictData(plugin.JSONData):
def __init__(self,filename,**kwargs):
plugin.JSONData.__init__(self,kwargs)
self.filename = filename
self.load(self.filename)
def __getitem__(self,k):
self.load(self.filename)
return self.value[k]
def __setitem__(self,k,v):
self.value[k]=v
self.save(self.f... | [
"khuxkm@ttm.sh"
] | khuxkm@ttm.sh |
79e0777c82685b82a0d681430d346041db7d9f16 | 6527b66fd08d9e7f833973adf421faccd8b765f5 | /yuancloud/plugin/wx_base/models/wx_thirdplatform.py | d207a726dbea7eb1ecd4fbb2c33fd3d5eb6d733e | [] | no_license | cash2one/yuancloud | 9a41933514e57167afb70cb5daba7f352673fb4d | 5a4fd72991c846d5cb7c5082f6bdfef5b2bca572 | refs/heads/master | 2021-06-19T22:11:08.260079 | 2017-06-29T06:26:15 | 2017-06-29T06:26:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | # -*- coding: utf-8 -*-
from yuancloud import models, fields, api, _
class ycloud_wx_thirdplatform(models.Model):
_name = 'wx.third_platform'
_rec_name = 'auth_component_platformname'
auth_component_appid=fields.Char("第三方平台Appid")
auth_component_appsecret=fields.Char("第三方平台Appsecret")
auth_compone... | [
"liuganghao@lztogether.com"
] | liuganghao@lztogether.com |
318ca952dd8c4f68b575bc001c1373c7cc9c10d1 | 2520bd0fcd694e1ddf9567346d6973a2ff0ed08f | /asyncio_priority.py | 87917ff35a445b4b730e06f62e8d1a9464c216be | [
"MIT"
] | permissive | Vrettel/micropython-async | 533a2e85ef8790feee3039fbe57ebedaf56edff3 | 2875cbf6c2a8acc882a6547d11bde584b605048b | refs/heads/master | 2021-04-30T05:59:34.551358 | 2018-02-07T12:01:11 | 2018-02-07T12:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,948 | py | # asyncio_priority.py Modified version of uasyncio with priority mechanism.
# Updated 18th Dec 2017 for uasyncio.core V1.6
# New low priority algorithm reduces differences in run_forever compared to
# standard uasyncio.
# The MIT License (MIT)
#
# Copyright (c) 2017 Peter Hinch
#
# Permission is hereby granted, free ... | [
"peter@hinch.me.uk"
] | peter@hinch.me.uk |
ea0ad42e32cbe706a47cf2687cdb906db6234940 | 0fd92b7d882a1edb5542f6600bb177dcad67ed50 | /powerful104/2875.py | 7e894b0f1b73f37542ad165ab60feac6c7a64cd3 | [] | no_license | alpha-kwhn/Baekjun | bce71fdfbbc8302ec254db5901109087168801ed | f8b4136130995dab78f34e84dfa18736e95c8b55 | refs/heads/main | 2023-08-02T11:11:19.482020 | 2021-03-09T05:34:01 | 2021-03-09T05:34:01 | 358,347,708 | 0 | 0 | null | 2021-04-15T17:56:14 | 2021-04-15T17:56:13 | null | UTF-8 | Python | false | false | 166 | py | a, b, c= map(int, input().split())
rest=a+b
ans=0
while a>1 and b>0:
if (rest-3)<c:
break
a=a-2
b=b-1
rest=a+b
ans+=1
print(ans) | [
"noreply@github.com"
] | alpha-kwhn.noreply@github.com |
9351a04b2162a5a77ad6da59daa81a3dde4ecb4d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /3yPvbEjskPuuSSCAC_24.py | 5dd7f0936d6149d8ff4e7e34a4f830c1d9d0a1e6 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py |
from statistics import mean
def trimmed_averages(lst):
return round(mean(sorted(lst)[1:-1]))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
06500b593a611adbabe120fe00cbe252614683cc | e07732e5f37e4ea947692cd5aef54370e6706c1b | /third_party/catapult/experimental/bisect_lib/fetch_intervening_revisions_test.py | e0e3e2911aa563ee09a3155d6b5f06067648a88f | [
"BSD-3-Clause",
"MIT"
] | permissive | davehorner/Prelude | 5270a7da950fd0cb9d681b2debc4143321160c49 | bd005acdcffcb54564597246a6ee613b21fa592f | refs/heads/master | 2022-01-06T20:42:51.030436 | 2019-03-10T22:57:37 | 2019-03-10T22:57:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,979 | py | #!/usr/bin/env python
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import unittest
# pylint: disable=wrong-import-position
import mock
from bisect_lib import fetch_intervening_revisions
# py... | [
"xzwang2005@gmail.com"
] | xzwang2005@gmail.com |
6f0aa21fd1abb9f6ceee4f8027f1c20c29158aea | bda0ecadb1fdede0a8935b35d5bb6eaa745d092a | /src/cosmosdb-preview/azext_cosmosdb_preview/vendored_sdks/azure_mgmt_cosmosdb/aio/operations/_database_account_region_operations.py | 16cef787b1dec410a4fd95b1b916331e035b2b88 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | jongio/azure-cli-extensions | 059c785e01c6dc5ec89bf7f4d9d2c42ed8cebea3 | c2f1e4be94c65451a1d060291ae661a597531fd2 | refs/heads/master | 2021-11-23T23:49:26.690924 | 2021-10-23T14:09:49 | 2021-10-23T14:09:49 | 224,203,634 | 0 | 0 | MIT | 2020-06-16T16:26:32 | 2019-11-26T13:52:09 | null | UTF-8 | Python | false | false | 6,361 | py | # coding=utf-8
# --------------------------------------------------------------------------
# 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 Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | jongio.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.