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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ca258376e89a578ed1bd7235c5e9becec8d9060 | 864c27d8156dfaefe989fde0b0df8cd4b4a60741 | /facade/facade.py | 5c085d569e3daee63a525f6f91955257bec22b96 | [] | no_license | onesuper/design_patterns | 5ada3ad72742eb4b51053cb506d6939cef7281ba | de19e4bf1434a69b55bf1bcb913166eeb59f99a0 | refs/heads/master | 2021-01-25T10:29:09.176503 | 2011-10-07T03:55:06 | 2011-10-07T03:55:06 | 2,530,402 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | #!/usr/bin/python
# Filename: facade.py
import subSystem as s
class Facade:
def __init__(self):
self.one = s.SubSystemOne()
self.two = s.SubSystemTwo()
self.three = s.SubSystemThree()
def MethodA(self):
print 'Method A'
self.one.MethodOne()
self.two.MethodTwo()
def MethodB(self):
print 'Method B'
se... | [
"onesuperclark@gmail.com"
] | onesuperclark@gmail.com |
e6400fbae3a3dcee8a858c3925fc95b5bc7021d4 | 64764cbae8641d051c2e26c0c2283e8e626d88fb | /ecf/mvc/GLS070/__init__.py | b170437902651622e210dc9a701afc94b7c7e6d6 | [] | no_license | jazlee/csp-accounting | eb801ce902170337121a6dbe2b1382be4089ecca | 85f50f9d8defbf52e6c85f5c0fc0464101a01d03 | refs/heads/master | 2021-01-25T14:11:18.700456 | 2018-03-03T06:34:57 | 2018-03-03T06:34:57 | 123,666,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,611 | py | """
G/L Batch Numbering Management
"""
__author__ = 'Jaimy Azle'
__version__ = '1.0'
__copyright__ = 'Copyright (c) 2008 Jaimy Azle'
from mvcsvc import *
from elixir import *
import datetime as dt
import sqlalchemy as sa
from validators import *
from tbl import GLBCNO
class GLS070(MVCController):
"""
G/L Ba... | [
"jaimy@usg.co.id"
] | jaimy@usg.co.id |
b032448cdd45f3bca30ed5edd475db6b2a16818f | 0b3ada069436097d3ed5694d069094975983e692 | /app/email.py | 8dba3196785683a634748d35efd3f17d5571fc83 | [
"MIT"
] | permissive | AugustineOchieng/blogger | 3329d866ccb25916c814607354ee12b6ca02a192 | d8205ddb6cd17c654003b49ff876002fb65b3449 | refs/heads/master | 2020-05-17T19:24:48.248542 | 2019-05-01T11:21:50 | 2019-05-01T11:21:50 | 183,913,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from flask_mail import Message
from flask import render_template
from . import mail
def mail_message(subject, template, to, **kwargs):
subject_pref = "Bloggeropolis!"
sender_email = "gustin9tis@gmail.com"
email = Message(subject, sender=sender_email, recipients=[to])
email.body = render_template(temp... | [
"gusochieng@gmail.com"
] | gusochieng@gmail.com |
780f2cd79121de44c0705d7240a4bfc0a6922918 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-apig/huaweicloudsdkapig/v2/model/check_app_v2_response.py | 1ff24a04b5f76cf87a8d8039729f21a18cfd6ffe | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,181 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CheckAppV2Response(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8f53597e0879018fbd6eb1c9bbbd5c80ee3b4989 | 27691e5ef8e49fb29189b01dd76a1dc3720e7ae8 | /AC/ABS/abc085/b.py | 6c924fa9935b9ef29842e2cd9b52efdcf3707870 | [] | no_license | oshou/procon | 61e5f5bc819e0fe5ab29749fc2f894fe6f3b1d07 | 3d000c64b5917c65b51ed7da5b90cb79892d5909 | refs/heads/master | 2023-05-10T23:56:50.861468 | 2021-09-23T06:07:29 | 2021-09-23T06:07:29 | 116,886,484 | 1 | 0 | null | 2023-05-05T02:28:41 | 2018-01-10T00:21:38 | Go | UTF-8 | Python | false | false | 101 | py | n = int(input())
arr = []
for i in range(n):
arr.append(int(input()))
s = set(arr)
print(len(s))
| [
"adf1985adf@gmail.com"
] | adf1985adf@gmail.com |
606917a953a5ba9bd05e5c654c44e55c2a271996 | 39fe41a33c00ea6dc8e04c61842c3764fdd07ff1 | /DesignPatterns/facade.py | 68b49f8243be5c700fa4b1cd862d024366b7471a | [] | no_license | playbar/pylearn | f9639ffa1848a9db2aba52977de6c7167828b317 | 8bcd1b5a043cb19cde1631947eb128d9c05c259d | refs/heads/master | 2021-06-12T01:51:33.480049 | 2021-03-31T12:16:14 | 2021-03-31T12:16:14 | 147,980,595 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 824 | py | #!/usr/bin/env python
# encoding: utf-8
"""
外观模式(门面模式)
为子系统中的一组接口提供一个一致的界面.
定义了一个高层接口, 是的这一子系统更加容易使用
- 统一接口人
- 减少依赖
"""
class SystemA(object):
def call_a(self):
print "call a"
class SystemB(object):
def call_b(self):
print "call b"
class SystemC(object):
def call_c(self):
pri... | [
"hgl868@126.com"
] | hgl868@126.com |
9ceb1b638334a728375e941ce1e636ec41bd9100 | 353def93fa77384ee3a5e3de98cfed318c480634 | /.history/week01/homework01/gettop10frommaoyam01_20200626151530.py | 77640fcb8bd12bc2890a662ba05e9850d148ab86 | [] | no_license | ydbB/Python001-class01 | d680abc3ea1ccaeb610751e3488421417d381156 | ad80037ccfc68d39125fa94d2747ab7394ac1be8 | refs/heads/master | 2022-11-25T11:27:45.077139 | 2020-07-19T12:35:12 | 2020-07-19T12:35:12 | 272,783,233 | 0 | 0 | null | 2020-06-16T18:28:15 | 2020-06-16T18:28:15 | null | UTF-8 | Python | false | false | 3,018 | py | # 使用requests,bs4库,爬取猫眼电影top10的电影名称、电影类型、上映时间,并以utf-8的字符集保存到csv文件中
import requests
from bs4 import BeautifulSoup as bs
import re
import pandas as pd
maoyanUrl = "https://maoyan.com/board/4";
header = {
'Content-Type': 'text/plain; charset=UTF-8',
'Cookie' : '__mta=251934006.1593072991075.1593140975947.159... | [
"31039587+ydbB@users.noreply.github.com"
] | 31039587+ydbB@users.noreply.github.com |
a7cd909b8acad3aa28bf06cf61051e2901dced37 | ef441fc5fc3e463d5d80a6b14965cccbf720cc09 | /new_stock/myscrapy/myscrapy/middlewares.py | cc2a4ba364e499eec3054784d03b6df70418a663 | [] | no_license | reinhardtken/py-code | 25de61b81f81900da2fe0be3088fbfb70746cb99 | bf190df1a08e3be0f0862e808e0bdaeb4fabe96e | refs/heads/master | 2022-06-21T21:28:14.883822 | 2022-06-11T12:10:38 | 2022-06-11T12:10:38 | 129,590,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,976 | py | # -*- coding: utf-8 -*-
# Define here the models for your spider middleware
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/spider-middleware.html
import random
from scrapy import signals
from selenium import webdriver
from selenium.common.exceptions import TimeoutException
from selenium.webdrive... | [
"reinhardtken@hotmail.com"
] | reinhardtken@hotmail.com |
1fa02ac0c2bf7442c00f052fc27464b840eb6b64 | 202bb7c5e37d3f117315e8bba3bd21e84b48fe6b | /alpha/WHSTINKER13.py | 9d8847b1a3a0c793b00743c125429e1d23b47f70 | [] | no_license | haishuowang/work_whs | 897cd10a65035191e702811ed650061f7109b9fa | b6a17aefc5905ad9c11dba4d745591ed92b1e386 | refs/heads/master | 2020-07-03T10:30:14.231858 | 2020-06-09T08:47:18 | 2020-06-09T08:47:18 | 201,877,822 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 39,569 | py | import numpy as np
import pandas as pd
import os
import sys
from itertools import product, permutations, combinations
from datetime import datetime
import time
import matplotlib.pyplot as plt
from collections import OrderedDict
import sys
sys.path.append("/mnt/mfs/LIB_ROOT")
import open_lib.shared_paths.path as pt
fro... | [
"1612255875@qq.com"
] | 1612255875@qq.com |
a52e7b37c644fdf27dd6a147fb363750beeb1170 | 5be8b0f2ee392abeee6970e7a6364ac9a5b8ceaa | /xiaojian/xiaojian/forth_phase/spider/day06/10_element_elements.py | 543da3b7503da3b4d136930167ade6a5d0bf9d12 | [] | no_license | Wellsjian/20180826 | 424b65f828f0174e4d568131da01dafc2a36050a | 0156ad4db891a2c4b06711748d2624080578620c | refs/heads/master | 2021-06-18T12:16:08.466177 | 2019-09-01T10:06:44 | 2019-09-01T10:06:44 | 204,462,572 | 0 | 1 | null | 2021-04-20T18:26:03 | 2019-08-26T11:38:09 | JavaScript | UTF-8 | Python | false | false | 359 | py | from selenium import webdriver
browser = webdriver.Chrome()
browser.get('https://www.qiushibaike.com/text/')
div = browser.find_element_by_class_name('content')
print(div.text)
divs = browser.find_elements_by_class_name('content')
for div in divs:
print('\033[36m------------------------\033[0m')
print("*"*60... | [
"1149158963@qq.com"
] | 1149158963@qq.com |
7eeebdbd1ca8d9eb2c0e18ced034e18ec6d015fc | 3859ee7a1694f30c69e4cb4ee392f3e197b23aaa | /setup.py | 47709527027d8e6f99ae7e17716a84e46f4be6f2 | [] | no_license | ibell/achp | 71467905986ae5f0c7dcab0b2ca98bfd0aa30977 | 1003d16c651447d0068173e6d3186ebae9672bb1 | refs/heads/master | 2016-08-02T21:40:56.971781 | 2013-10-26T23:33:45 | 2013-10-26T23:33:45 | 12,282,085 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py |
from distutils.core import setup, Extension
import subprocess,shutil,os,sys
# Obtain the numpy include directory. This logic works across numpy versions.
## import numpy
## try:
## numpy_include = numpy.get_include()
## except AttributeError:
## numpy_include = numpy.get_numpy_include()
sys.a... | [
"ian.h.bell@gmail.com"
] | ian.h.bell@gmail.com |
8673d9930d44b2e04ad6dca9febbf65a6624182c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/weeper.py | 3ebfbe42277e12719b6bb43d1fe849720dccf65b | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 63 | py | ii = [('LandWPA.py', 1), ('GilmCRS.py', 1), ('DibdTRL2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
9eeabe352c3ca3dc272e33a2d700f7ead481af64 | 0273ff0e05526b52eb96b4960251d685b467ba0f | /velo_payments/models/funding_request_v3.py | b393ae81923a9ca02cc6010a24fbaf6369a4740a | [
"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 | 9,145 | 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 |
c551581095afb959f7abbe87a7c1b36203fdb1df | 18f1ee7c364301743233f50c975479a216dd2b4c | /headfirst/hf6promotion.py | eed7f1b03d2b3d958d7b1c1c0450fec479d53ecb | [] | no_license | sevenry/python_learning_note | e5aaf098e3308430468452e7ac839c1906e27776 | 9209249e42a060f722bd6dc79f84e7c4b53eec2b | refs/heads/master | 2021-01-20T18:01:14.329907 | 2016-12-03T09:16:00 | 2016-12-03T09:16:00 | 62,458,628 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | def discount(price):
return price*0.9
| [
"noreply@github.com"
] | sevenry.noreply@github.com |
f0f4fb7a984294ff86a025ef21742ce630c55ed9 | 28a462a28f443c285ca5efec181ebe36b147c167 | /tests/compile/basic/es2020/Assertion[3,0].Evaluation.spec | ad2d76f4da932e0db88fb74aa47a081acc9841be | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | kaist-plrg/jstar | 63e71f9156860dc21cccc33a9f6c638dfee448ea | 1282919127ea18a7e40c7a55e63a1ddaaf7d9db4 | refs/heads/main | 2022-07-22T08:12:34.947712 | 2022-02-27T04:19:33 | 2022-02-27T11:06:14 | 384,045,526 | 6 | 4 | NOASSERTION | 2022-02-27T11:05:26 | 2021-07-08T07:53:21 | Python | UTF-8 | Python | false | false | 587 | spec | 1. Return a new Matcher with parameters (_x_, _c_) that captures nothing and performs the following steps when called:
1. Assert: _x_ is a State.
1. Assert: _c_ is a Continuation.
1. Let _e_ be _x_'s _endIndex_.
1. Call IsWordChar(_e_ - 1) and let _a_ be the Boo... | [
"h2oche22@gmail.com"
] | h2oche22@gmail.com |
78359dbbfdcc0879f9aa11bc2d8d6be24d39d081 | 1f74112d7e90c278c66c085db9ef44abcea0cf39 | /tests.py | 98be0ee734d9238cd077be193edb45cc654c4c3e | [] | no_license | mmahnken/pronounce_gaelic | 22c0a6b4cf97204ef0cfbfd0c22bca9968d59613 | 23ef9c4ab1e44e8e06fcb5582260a7d9b0f5203d | refs/heads/master | 2016-09-10T12:57:28.199943 | 2015-05-25T17:18:43 | 2015-05-25T17:18:43 | 29,276,608 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,355 | py | import random
import unittest
import compare as c
import os
TRAINING_DIR = 'gaelic_audio'
USER_AUDIO = 'window_meggie.wav'
USER_REF_AUDIO = 'gaelic_audio/window.mp3'
class TestMatchingAlgorithm(unittest.TestCase):
def setUp(self):
print "setting up audio match test"
self.comparator = c.train(TRAIN... | [
"mmm25eg@gmail.com"
] | mmm25eg@gmail.com |
b7a63d862fb96580c9845b39a7cf5f65eefcfe72 | 4351a81d4a4fae778711643cb9644534e595920d | /Python 3/LeetCode/lc107.py | 9a8872ffa11f932a887dc4e49d3d1c1784327c59 | [] | no_license | nsmith0310/Programming-Challenges | ba1281127d6fa295310347a9110a0f8998cd89ce | 7aabed082826f8df555bf6e97046ee077becf759 | refs/heads/main | 2023-08-13T14:47:10.490254 | 2021-10-13T04:35:57 | 2021-10-13T04:35:57 | 416,565,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,479 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def levelOrderBottom(self, root: TreeNode) -> List[List[int]]:
if root==None:return root
tmp =... | [
"92414264+nsmith0310@users.noreply.github.com"
] | 92414264+nsmith0310@users.noreply.github.com |
ab595904f5875ef4b506194b99abfcff14f287ab | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch036/wiColorJ/Sob_k15_s001_EroM/pyr_Tcrop255_p60_j15/pyr_3s/L7/step10_a.py | 2f3db0751ea40d3576fce626383d5d897cbfab2b | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64,692 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
d2e0aba87f3f9b8864b351aa8b50b156159ae731 | 667f896c43a92d58a00d8a0899a68afdf7bdf2d6 | /comments/admin.py | b8c35fd1f61901d7b0c59fdb8dee3a6e320c1778 | [] | no_license | blazer-05/myshop3 | bfa9ac1072122bbecea3bbfac6ee59c44d1d3ac6 | 8a91f04fc3dfa6a0d07934c5f8a6e87c39b3da61 | refs/heads/master | 2022-11-25T01:31:16.613811 | 2020-05-06T07:37:30 | 2020-05-06T07:37:30 | 141,247,818 | 2 | 2 | null | 2022-11-22T03:22:57 | 2018-07-17T07:18:38 | HTML | UTF-8 | Python | false | false | 2,734 | py | from django.contrib import admin
from django.utils.safestring import mark_safe
from django_summernote.admin import SummernoteModelAdmin
from comments.models import Comment
# Функции фильтрации для массовой публикации/снятия с публикации новостей.
def all_post(modeladmin, request, queryset):
for qs in queryset:
... | [
"blazer-05@mail.ru"
] | blazer-05@mail.ru |
765c3cd1cbf0657bb02da732081d4795110463e2 | b2a45f26d41930e4e9d304bcff74221029fe48c1 | /target_offer/34_丑数.py | e4dfbfd82c4745033f0337cf8ec1e9655ff947b1 | [] | no_license | Hk4Fun/algorithm_offer | 29db9a9565f6e7400539f8c3b85cceb524918964 | b1764cd62e1c8cb062869992d9eaa8b2d2fdf9c2 | refs/heads/master | 2021-07-01T04:22:58.168117 | 2019-04-02T12:26:32 | 2019-04-02T12:26:32 | 115,990,532 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,653 | py | __author__ = 'Hk4Fun'
__date__ = '2018/2/10 21:06'
'''题目描述:
把只包含质因子2、3和5的数称作丑数(Ugly Number)。例如6、8都是丑数,但14不是,因为它包含质因子7。
习惯上我们把1当做是第一个丑数。求按从小到大的顺序的第N个丑数。
'''
'''主要思路:
思路1:逐个判断每个数是否为丑数,直观但不够高效。
如果一个数能被2整除,就把它连续除以2;
如果能被3整除,就把它连续除以3;
如果能被5整除,就把它连续除以5。
如果最后我们得到的是1,那么这个数就是丑数。
该算法最大的问题就是每个整... | [
"941222165chenhongwen@gmail.com"
] | 941222165chenhongwen@gmail.com |
2952d3163c6deb0bb67610b3eb1032741fce506b | 6dd400fec6f302bd0dcf309e2deec5de906d205c | /anal_pro4/deep_learn3/tf_classifi7_ex.py | c0b46953504a7cddfb096583808dd5790dc9ab65 | [] | no_license | Leo-hw/psou | aa938b7cfaa373a0980649125270c48d816202b0 | 70379156a623257d412bcccbac72986a61226bd4 | refs/heads/master | 2023-02-21T19:00:02.902510 | 2021-01-25T07:03:26 | 2021-01-25T07:03:26 | 332,616,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,875 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import OneHotEncoder, StandardScaler
from sklearn.metrics import roc_curve, auc
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense
import pandas... | [
"Bonghwan@DESKTOP-60LSTNL"
] | Bonghwan@DESKTOP-60LSTNL |
1a9155e630ec3bbdc1e28e3c0663582ea4d4d946 | 338dbd8788b019ab88f3c525cddc792dae45036b | /lib/python3.6/site-packages/statsmodels/tools/tests/test_numdiff.py | e39ed632a9dfc9f91dd6e558f67b35d07409fb4f | [] | permissive | KshitizSharmaV/Quant_Platform_Python | 9b8b8557f13a0dde2a17de0e3352de6fa9b67ce3 | d784aa0604d8de5ba5ca0c3a171e3556c0cd6b39 | refs/heads/master | 2022-12-10T11:37:19.212916 | 2019-07-09T20:05:39 | 2019-07-09T20:05:39 | 196,073,658 | 1 | 2 | BSD-3-Clause | 2022-11-27T18:30:16 | 2019-07-09T19:48:26 | Python | UTF-8 | Python | false | false | 14,155 | py | '''Testing numerical differentiation
Still some problems, with API (args tuple versus *args)
finite difference Hessian has some problems that I didn't look at yet
Should Hessian also work per observation, if fun returns 2d
'''
from __future__ import print_function
import numpy as np
from numpy.testing import assert_... | [
"kshitizsharmav@gmail.com"
] | kshitizsharmav@gmail.com |
d00caac2348180d52c10a1aca86c341683d7ad20 | ec99362e7b0f9b6f96cd92c995a388c149655d3e | /ggvinfosite/ggvinfosite/wsgi.py | 99b30d968bcb39576ccd96fee6ae2ac0fcbae093 | [] | no_license | anidem/ggv-info-py | 5d43f1fe0e14b9a3db775276d31a5405d7ee9c69 | 1b2e772575cd7ea163aaaae7b871fbf937294d43 | refs/heads/master | 2021-01-20T17:58:30.684821 | 2016-08-09T04:30:35 | 2016-08-09T04:30:35 | 60,475,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | """
WSGI config for ggvinfosite project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
from mezzanine.utils.conf import... | [
"richmedina@gmail.com"
] | richmedina@gmail.com |
e8b7a74f2a29bbe1760be0f63fe1f519849bd05a | 270e3cf2d508d916e8aaa5c4210fa593ff4c3a72 | /Python_Scripting/Pycharm_projects/DataStructures/LinkedList/SingleLinkedList/SingleLinkedList.py | 87b9c4a732555029d1a0c10f2f405bc5abf57fd9 | [] | no_license | NagiReddyPadala/python_programs | 140c45ee1e763ec4aa8ef975be18c5fad1e0a7ec | 18d91095c0e25345b8c1bc16d121df9a40639c5f | refs/heads/master | 2020-12-08T03:29:35.030951 | 2020-02-29T16:23:36 | 2020-02-29T16:23:36 | 232,871,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,078 | py | class Node():
def __init__(self, data):
self.data = data
self.next = None
class LinkedList():
def __init__(self):
self.head = None
def append(self, data):
new_node = Node(data)
if self.head is None:
self.head = new_node
return
last_n... | [
"nagireddypadala434@email.com"
] | nagireddypadala434@email.com |
f528a850125e7dd3fa24e232122710ac04537d1c | 7c4878b4881d79dd4daa3291e9c498e0706a7603 | /lessons19/Словари - основы/task2.py | 2e30a33d5cfbf90181166d2a86c70b24f321931c | [
"MIT"
] | permissive | zainllw0w/skillbox | 4cbdbb44762439c1aa1793a07683d7620500ddd7 | 896287b6f7f5612cf589094131fd1a12b0b192ba | refs/heads/main | 2023-04-27T16:07:16.613359 | 2021-05-20T14:12:11 | 2021-05-20T14:12:11 | 329,755,030 | 0 | 0 | null | 2021-05-20T14:06:42 | 2021-01-14T23:01:15 | Python | UTF-8 | Python | false | false | 636 | py | student_input = input('Введите информацию о студенте через пробел: фамилию, имя студента, город проживания, вуз, в котором он учится, и все его оценки\n').split()
student_info = dict()
student_info['Фамилия'] = student_input[0]
student_info['Имя'] = student_input[1]
student_info['Город'] = student_input[2]
student_in... | [
"77465388+zainllw0w@users.noreply.github.com"
] | 77465388+zainllw0w@users.noreply.github.com |
0927032fab4991592c4852c894604f39ca7b9403 | 8039137e257c587e4f37dea4f421607de040009c | /autoarray/structures/grids/two_d/grid_2d_irregular.py | fade81d269051a0d5322c4ab96f2781f917901b9 | [
"MIT"
] | permissive | jonathanfrawley/PyAutoArray_copy | d15cafa8ad93c19e9991b0c98bc5192be520fcdc | c21e8859bdb20737352147b9904797ac99985b73 | refs/heads/master | 2023-04-20T22:43:18.765267 | 2021-05-12T14:23:47 | 2021-05-12T14:23:47 | 367,427,246 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,350 | py | import ast
import numpy as np
import os
from os import path
import pickle
import typing
import json
from autoarray.structures.arrays import values
# from autoarray.structures.arrays.one_d import array_1d
from autoarray.structures.grids.two_d import grid_2d
from autoarray.structures.grids.two_d import grid... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
70467c3af1d1ce84fd8014eddd31575452a22d11 | 245b92f4140f30e26313bfb3b2e47ed1871a5b83 | /dev/breeze/src/airflow_breeze/commands/release_command.py | 3ae21abb9ec799cf0088aee88b58913d7ad0567b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ephraimbuddy/airflow | 238d6170a0e4f76456f00423124a260527960710 | 3193857376bc2c8cd2eb133017be1e8cbcaa8405 | refs/heads/main | 2023-05-29T05:37:44.992278 | 2023-05-13T19:49:43 | 2023-05-13T19:49:43 | 245,751,695 | 2 | 1 | Apache-2.0 | 2021-05-20T08:10:14 | 2020-03-08T04:28:27 | null | UTF-8 | Python | false | false | 10,687 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | ephraimbuddy.noreply@github.com |
68fd3fe6c771bb15adf73caf8b69bb3cfdf15b3b | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/EGL/KHR/cl_event.py | ceb2b4eb41ae154e01ca2b74068ee0e01c4f6f8b | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 685 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.EGL import _types as _cs
# End users want this...
from OpenGL.raw.EGL._types import *
from OpenGL.raw.EGL import _errors
from OpenGL.constant import Constant as _C
import ctype... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
7ac1a6758405c9dd84ae6f0fc98dff6b216dc1c3 | c67f2d0677f8870bc1d970891bbe31345ea55ce2 | /zippy/lib-python/3/test/test_bz2.py | eabf65df8314e1a43341d7f56f078e455b04bf28 | [
"BSD-3-Clause"
] | permissive | securesystemslab/zippy | a5a1ecf5c688504d8d16128ce901406ffd6f32c2 | ff0e84ac99442c2c55fe1d285332cfd4e185e089 | refs/heads/master | 2022-07-05T23:45:36.330407 | 2018-07-10T22:17:32 | 2018-07-10T22:17:32 | 67,824,983 | 324 | 27 | null | null | null | null | UTF-8 | Python | false | false | 16,415 | py | #!/usr/bin/env python3
from test import support
from test.support import TESTFN
import unittest
from io import BytesIO
import os
import subprocess
import sys
try:
import threading
except ImportError:
threading = None
# Skip tests if the bz2 module doesn't exist.
bz2 = support.import_module('bz2')
from bz2 im... | [
"thezhangwei@gmail.com"
] | thezhangwei@gmail.com |
711097389ae82580b61b73cfaee9fbcbb2b655c4 | e3a24297a28e9fd2e54e82ec15e84cfcf4cd5b9c | /widukind_api/plugins/html_plugin.py | 444179f5072b38f971fb7e1688d9fd082a953f0e | [] | no_license | mmalter/widukind-api | 13557cdd5a9626d1b753b466fe025a88cbfc0f20 | 1518f533471da7b108cb37cc95033989bf7d1839 | refs/heads/master | 2021-01-24T00:09:21.507044 | 2016-02-18T06:40:00 | 2016-02-18T06:40:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py |
from flask import Blueprint, render_template, abort
from widukind_api import queries
bp = Blueprint('html', __name__)
#TODO: error enable False
@bp.route('/providers', endpoint="providers")
def html_providers():
query = {"enable": True}
projection = {"_id": False, "name": True, "slug": True, "enable": True... | [
"stephane.rault@radicalspam.org"
] | stephane.rault@radicalspam.org |
3bf9cbd9b9ff1b4494f7623711e6c15af177a006 | 0add969034a82912bc6e19abc427abe883ee65bb | /FSSA_response/trace_particle_new.py | 9c4deb04f2b387378e23208c7afeffb304127ed8 | [] | no_license | Michael-Gong/New_LPI_python_script | eefd162fdbbc3c614c66e2b157ea5296e3bc8492 | 9de109c6f19aa60bdeaf102e9a1ec0baff5669ad | refs/heads/master | 2020-03-28T16:06:09.631550 | 2020-02-01T08:21:17 | 2020-02-01T08:21:17 | 148,659,608 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,701 | py | import sdf
#import matplotlib
#matplotlib.use('agg')
#import matplotlib.pyplot as plt
import numpy as np
#from numpy import ma
#from matplotlib import colors, ticker, cm
#from matplotlib.mlab import bivariate_normal
#from optparse import OptionParser
#import os
#from colour import Color
######## Constant defined here ... | [
"noreply@github.com"
] | Michael-Gong.noreply@github.com |
b0971028b099b5fd7fb1594bf79e3b29e8aca198 | e585c3a61b830d3c24a8cec8343d262c84c724e7 | /SomosAgro/src/mobile/user_interface/activities/caracteristicas_publicacion_activity.py | 6667b92035a466737d7ff03c30c1bb828a77142c | [] | no_license | Valupiruiz/AutomationPHP | bb0728b2b6508b017c133a7d560a652033adeaf4 | 9a92634ac9f5b27e46723294f9a4cc83a1f99252 | refs/heads/master | 2023-01-18T17:27:57.819270 | 2020-11-27T15:04:49 | 2020-11-27T15:04:49 | 310,594,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | from src.mobile.user_interface.mother_screen import MotherScreen
from src.mobile.user_interface.locators.caracteristicas_publicacion_locators import CaracteristicasPublicacionLocators
from src.mobile.user_interface.activities.descripcion_activity import DescripcionActivity
class CaracteristicasPublicacionActivity(Mot... | [
"tomasmoreira04@gmail.com"
] | tomasmoreira04@gmail.com |
644e1e1c5554c3ddecf72791f602993a39e8c6c8 | f65fc577e87084dbeb0bf42aed4fd10e37fb46e4 | /tapiriik/web/views/__init__.py | 20f4f6b5f3556e1b1e1581ebc0f790a70b9e1447 | [] | no_license | chemikadze/tapiriik | 4637d7deef7fdd0b86cac30e2917ae45824bfee1 | ec75f9d691691a66c6b002cabe734fffbf6ce3bf | refs/heads/master | 2021-01-17T11:17:20.541665 | 2014-01-01T19:13:34 | 2014-01-01T19:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from .dashboard import *
from .diagnostics import *
from .auth import *
from .account import *
from .sync import *
from .supported_activities import *
from .supported_services import *
from .payments import *
from .settings import *
# why did I do it this way? should make it less bad
| [
"cpf@cpfx.ca"
] | cpf@cpfx.ca |
463ca28f273e38b5f5b2fd380622db2f8ae8619a | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/Wellfleet-AT-MIB.py | 98b8cc626737d7c3dbfea45fea922b8bb07182df | [
"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 | 71,309 | py | #
# PySNMP MIB module Wellfleet-AT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-AT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:32:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
23abccf6e279d1b05e90ee110ff1aac079fd41eb | 02ce6d29fec0d68ca2a2a778d37d2f2cff1a590e | /Day01-15/code/Day13/multithread1.py | ee8f83985de00593d5b95dfe88aee3e6c7bf0df9 | [] | no_license | CalvinCheungCoder/Python-100-Days | 605045122e40c119abc32466c32479559a4d4b9b | 0f9bec8893954d4afbe2037dad92885c7d4d31f8 | refs/heads/master | 2020-04-17T11:49:42.148478 | 2019-09-19T10:22:37 | 2019-09-19T10:22:37 | 166,556,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | # 使用多线程的情况 - 模拟多个下载任务
from random import randint
from time import time, sleep
import atexit
import _thread
def download_task(filename):
print('开始下载%s...' % filename)
time_to_download = randint(5, 10)
print('剩余时间%d秒.' % time_to_download)
sleep(time_to_download)
print('%s下载完成!' % filename)
def sh... | [
"984382258@qq.com"
] | 984382258@qq.com |
6c4f916ab3dde9c3c73afc2ce13730c11e20b449 | 9703641c14b7c19f2fcf937150204ab85b4151a2 | /map_reduce.py | 87ecd4b4ecd80fdeefd121254a0c3b40ccc5a51c | [] | no_license | walkmiao/Little_Case | 8effbea554c930e0eb32d4335ecbd5541a9c1251 | ab445659e19c85ecfd9b99f8d615c33f900662f8 | refs/heads/master | 2021-06-11T05:30:39.415720 | 2019-05-14T10:37:29 | 2019-05-14T10:37:29 | 128,582,484 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/4/14 11:05
# @Author : LCH
# @Site :
# @File : map_reduce.py
# @Software: PyCharm
from functools import reduce
print('map函数打印'.center(20,'*'))
L1=map(lambda x:('整数'+str(x)),[x for x in range(1,10) if (x%2==0)])
for i in L1:
print(i)
print('redu... | [
"372815340@qq.com"
] | 372815340@qq.com |
4da87d1a40389b28f78cfe305a3a0639b5b29e12 | c4b94158b0ac8f1c4f3d535b6cdee5d1639743ce | /Python/111__Minimum_Depth_of_Binary_Tree.py | 6fe7a6cb166e10c97b1bc7263b6fa7b285ff494a | [] | no_license | FIRESTROM/Leetcode | fc61ae5f11f9cb7a118ae7eac292e8b3e5d10e41 | 801beb43235872b2419a92b11c4eb05f7ea2adab | refs/heads/master | 2020-04-04T17:40:59.782318 | 2019-08-26T18:58:21 | 2019-08-26T18:58:21 | 156,130,665 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | 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 minDepth(self, root):
"""
:type root: TreeNode
:rtype: int
"""
if not root:
... | [
"junou_cui@berkeley.edu"
] | junou_cui@berkeley.edu |
dba2464ce4ec39659e48e36fb8993b924f58f5a4 | 9851c3f47c1aa165bc0d239074fe238f82055875 | /LeetCode/1470. Shuffle the Array/solution.py | d87117a07f282268c856397090c5fbb36069116d | [
"Apache-2.0"
] | permissive | InnoFang/algo-set | 12f886dbec0da664327d26bcaf02c1316151a643 | 2419a7d720bea1fd6ff3b75c38342a0ace18b205 | refs/heads/master | 2023-03-16T09:51:24.631068 | 2023-03-13T11:08:54 | 2023-03-13T11:08:54 | 86,413,001 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | """
53 / 53 test cases passed.
Runtime: 24 ms
Memory Usage: 15.2 MB
"""
class Solution:
def shuffle(self, nums: List[int], n: int) -> List[int]:
return [nums[(i >> 1) + n] if i & 1 else nums[(i >> 1)] for i in range(2 * n)]
"""
53 / 53 test cases passed.
Runtime: 50 ms
Memory Usage: 15.1 MB
"""
class Solu... | [
"innofang@outlook.com"
] | innofang@outlook.com |
ef8b0f71bb72e856120f0380af6305f0cdb7c789 | 8f8498bb6f56b19d45a1989c8113a077348c0a02 | /SWEA/Level 4/격자판의 숫자 이어 붙이기.py | 0d5c2c5b5ad7a58fb2d1115a1e87ee2fe8dbf278 | [] | no_license | gjtjdtn201/practice | a09b437c892b0b601e156c09cb1f053b52fab11b | ea45582b2773616b2b8f350b927559210009d89f | refs/heads/master | 2021-01-01T13:29:46.640740 | 2020-11-28T00:55:37 | 2020-11-28T00:55:37 | 239,299,485 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import sys
sys.stdin = open('격자판에 숫자 이어 붙이기.txt', 'r')
def ad(n, al, a, b):
if n == 7:
visit.add(al)
return
for i in range(4):
ny = a + dy[i]
nx = b + dx[i]
if 0 <= ny < 4 and 0 <= nx < 4:
ad(n+1, al+matrix[ny][nx], ny, nx)
dy = [1, -1, 0, 0]
dx = [0, 0, 1, ... | [
"gjtjdtn201@naver.com"
] | gjtjdtn201@naver.com |
2f8935e90b1f58cd08d61595961b2acef65972f0 | 61b565b8ebc39dd561fee2923b94027efb42b7f6 | /agsadmin/sharing_admin/content/users/UserContentBase.py | 84ea50006a2e27b2e7ff9bcf689d6f05a0ae99f1 | [
"BSD-3-Clause"
] | permissive | DavidWhittingham/agsadmin | 30cc8ac9297db1f169aa3f2cf068bbfba77d9b2f | 31960c01321df95d5918950371d3d795da2d0579 | refs/heads/develop | 2023-07-24T02:35:01.492001 | 2023-07-05T04:24:09 | 2023-07-05T04:24:09 | 13,790,963 | 3 | 5 | BSD-3-Clause | 2018-03-06T06:10:19 | 2013-10-23T01:51:30 | Python | UTF-8 | Python | false | false | 2,470 | py | from __future__ import (absolute_import, division, print_function, unicode_literals)
from builtins import (ascii, bytes, chr, dict, filter, hex, input, int, map, next, oct, open, pow, range, round, str,
super, zip)
from ...._utils import send_session_request
from ..._PortalEndpointBase import Por... | [
"DavidWhittingham@users.noreply.github.com"
] | DavidWhittingham@users.noreply.github.com |
00899b9182a2710abdfd11fc903f3a4866a2efe0 | 38d93c5fd72fee380ec431b2ca60a069eef8579d | /Baekjoon,SWEA, etc/백준/4012요리사.py | 3dc13f8f65a96aa2d92052c6c5f00e14aa6cf448 | [] | no_license | whgusdn321/Competitive-programming | 5d1b681f5bee90de5678219d91cd0fa764476ddd | 3ff8e6b1d2facd31a8210eddeef851ffd0dce02a | refs/heads/master | 2023-01-01T01:34:22.936373 | 2020-10-24T11:05:08 | 2020-10-24T11:05:08 | 299,181,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | def make_combis(i, stakk, limit):
global N, combis
if len(stakk) == limit:
anothor = [i for i in range(N) if i not in stakk]
combis.append([stakk.copy(), anothor])
return
for j in range(i+1, N):
stakk.append(j)
make_combis(j, stakk, limit)
stakk.pop()
T = int... | [
"blackgoldace@naver.com"
] | blackgoldace@naver.com |
e73ee26033ad8ab16f6bf631cc3d8896890ebe9b | 721b77cd11d74a0bca941d16090e10124d24566a | /marchfelderebank/middlewares.py | ba8f7cb144f48d91bc2a1d1ae500bd557a394bfc | [] | no_license | SimeonYS/Marchfelder-Bank-eG | 619195f4769c582c98dd4bf7a3038c0185d3e4f6 | 80d44f9633a7f4d860eb68ada6a81439a8eb442b | refs/heads/main | 2023-03-05T16:48:53.917333 | 2021-02-17T12:23:20 | 2021-02-17T12:23:20 | 339,710,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,668 | py | # Define here the models for your spider middleware
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/spider-middleware.html
from scrapy import signals
# useful for handling different item types with a single interface
from itemadapter import is_item, ItemAdapter
class MarchfelderebankSpiderMiddl... | [
"simeon.simeonov@ADPVT.com"
] | simeon.simeonov@ADPVT.com |
60ab1489088b31707cfd6d1c0b22af2b86e2e4dd | 84c4474a88a59da1e72d86b33b5326003f578271 | /saleor/graphql/menu/mutations/menu_update.py | cc4bee256c0cd0517f1ae8a880c5c915fb1e9b1d | [
"BSD-3-Clause"
] | permissive | vineetb/saleor | 052bd416d067699db774f06453d942cb36c5a4b7 | b0d5ec1a55f2ceeba6f62cf15f53faea0adf93f9 | refs/heads/main | 2023-07-20T02:01:28.338748 | 2023-07-17T06:05:36 | 2023-07-17T06:05:36 | 309,911,573 | 0 | 0 | NOASSERTION | 2020-11-04T06:32:55 | 2020-11-04T06:32:55 | null | UTF-8 | Python | false | false | 1,689 | py | import graphene
from ....menu import models
from ....permission.enums import MenuPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...channel import ChannelContext
from ...core import ResolveInfo
from ...core.mutations import ModelMutation
from ...core.types import MenuError
from ...core.utils... | [
"noreply@github.com"
] | vineetb.noreply@github.com |
e58a210e35b00d7436f86b19cc0b7f3004ea0685 | ba095b34fb62cff6f5f6f32dc7036f13b45681a2 | /llia/synths/chronos/chronos_random.py | 9efb38afa7d9ca00ff2c6f8f8e3e8c2ecd0c355e | [] | no_license | plewto/Llia | 7d3c60bd7355d02e9b00e97c82f24da5fa83b0f4 | 97f530ff0841b9604f0d9575e7e1f0e3c0660be0 | refs/heads/master | 2020-05-21T20:39:07.223990 | 2018-04-30T02:28:55 | 2018-04-30T02:28:55 | 63,315,753 | 17 | 2 | null | 2016-08-04T17:10:17 | 2016-07-14T08:05:33 | Python | UTF-8 | Python | false | false | 1,563 | py | # llia.synths.chronos.chronos_random
from llia.util.lmath import *
from llia.synths.chronos.chronos_data import chronos
def random_program(slot=127, *_):
p = chronos(slot, "Random",
lfoCommonFreq = coin(0.75, rnd(3),rnd(10)),
d1Dry1In = 1.0,
d1Dry2In = 0.0,
... | [
"plewto@gmail.com"
] | plewto@gmail.com |
f3bf5122a1002b43e461cbe93b4a139a95076add | 48bf32a0455eccfa0e5795effcd5661612eaf03e | /string/1152.py | e216ff40712148e779820a137a6936125a3e213c | [] | no_license | ohjooyeong/baekjoonalgo | 0e84c78f761d28843bcc921397c509eef0ab9ca3 | e893c72f95fb01a646abfc1279771282a622601b | refs/heads/master | 2020-07-30T23:27:45.568869 | 2019-11-15T10:43:09 | 2019-11-15T10:43:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | # 백준 단어의 개수
import sys
string = list(sys.stdin.readline().strip().split())
print(len(string)) | [
"brb1111@naver.com"
] | brb1111@naver.com |
4df5f4f912e51465974e6961e67ab1f8ec461158 | d5d94c992d0596080ba694c518dfdb58d3490847 | /0517/answer.py | 6843c0a98adeaf6bb764fda2bb909b3cd2e7b224 | [] | no_license | calgagi/leetcode | 1bf24b750e44c2c893935983e5d88e0f071d9f2d | 431aba979d92e331f2f92a07eb80167a823a49bd | refs/heads/master | 2022-11-17T11:26:01.596496 | 2020-07-19T06:56:04 | 2020-07-19T06:56:04 | 276,207,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | class Solution(object):
def distributeCandies(self, candies):
"""
:type candies: List[int]
:rtype: int
"""
num_candies = len(candies)
sis_candies = num_candies // 2
num_types = len(list(set(candies)))
if sis_candies >= num_types:
return num... | [
"calgagi@gmail.com"
] | calgagi@gmail.com |
f44d6d91045adeb33ea6f3ddad715bbc1c6bb4ca | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-7643.py | 6a6aa44f02983638bdbf361764710ee0d52dae75 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,740 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
79cd9eeb476d0cee73e718951128251dd11d8676 | df44affab179c2546fb3e0d1dc29eebcfdf51c1c | /toughradius/modules/mps/mps_handler.py | f405a4e7c770fd90e9e92adcaf1582a124afe6a7 | [] | no_license | sailorhdx/taurusradius | 121c508e7faffaddcd5326d2b6d3710eaf0ed08e | 92d30820611a0c9102ae41713ea3c35437a3c6ee | refs/heads/master | 2021-01-22T02:28:31.543338 | 2017-06-17T02:15:33 | 2017-06-17T02:15:33 | 92,362,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,079 | py | #!/usr/bin/env python
# coding=utf-8
import cyclone.web
from toughradius.toughlib import logger
from toughradius.toughlib import utils
from toughradius.toughlib import logger
from toughradius.toughlib.permit import permit
from hashlib import sha1
from cyclone.util import ObjectDict
from cyclone.options import options
f... | [
"sailorhdx@hotmail.com"
] | sailorhdx@hotmail.com |
14945d7b57c4ff2d8fed1b2f4dab066b14139eba | e3040a2e23a856e319e02037dc6baf3882c796b9 | /samples/openapi3/client/3_0_3_unit_test/python/unit_test_api/paths/response_body_post_nested_allof_to_check_validation_semantics_response_body_for_content_types/post.py | e29ea0fbc5326b35c7b6a6444df16c2c0b1597cf | [
"Apache-2.0"
] | permissive | mishin/openapi-generator | 2ed2e0739c0cc2a627c25191d5898071d9294036 | 3ed650307513d552404f3d76487f3b4844acae41 | refs/heads/master | 2023-06-10T03:01:09.612130 | 2022-10-14T08:29:15 | 2022-10-14T08:29:15 | 271,080,285 | 0 | 0 | Apache-2.0 | 2023-05-30T02:01:25 | 2020-06-09T18:29:41 | Java | UTF-8 | Python | false | false | 8,103 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from unit_test_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noq... | [
"noreply@github.com"
] | mishin.noreply@github.com |
2d47e6ddf0deb907fbf5012c4bfa98b8254cd612 | 1f7d287ef90041e20468513a26a39e1f3d221289 | /Level-3/s10/guvi-L3-s10-py04.py | 83b0e117b15bcc6117d665507367990e65147eb9 | [] | no_license | ksthacker/python | d787d69f954c0e9b59b0cc96a8b8fc5c0594d8a0 | 3a3775e1b9349e313f8c96ea11eade54a7e9bf54 | refs/heads/master | 2021-04-27T16:32:40.923316 | 2019-08-21T04:50:22 | 2019-08-21T04:50:22 | 122,303,461 | 0 | 17 | null | 2019-10-03T14:59:51 | 2018-02-21T07:09:32 | Python | UTF-8 | Python | false | false | 113 | py | import sys,string
L = input().split()
#print(L)
L2 = [ x[::-1] for x in L]
print(*L2)
| [
"noreply@github.com"
] | ksthacker.noreply@github.com |
d0d1f9a841d791ae8e639e2c66b270b9976eaf6e | d1b3c9e1055bc759f5fba8379570ddc20cf4caa5 | /main_thread.py | 6ab3d3bc3e6d2ad5de46671370e69f0262faf70a | [] | no_license | woolpeeker/bet365_data | 309b38245c77d9f9387c7d946dbb8410c4c84bc6 | 4cb920095f98faf220c74125d39ccdfe84229ee3 | refs/heads/master | 2020-03-29T22:48:40.234365 | 2018-12-14T03:41:42 | 2018-12-14T03:41:42 | 150,441,477 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,950 | py | from selenium.common.exceptions import TimeoutException
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import datetime
import time
import traceback
import os
import multiprocessing as mp
from Crawler import Crawler
from utils import get_logger
NT = 2
class MainThread(Crawler)... | [
"luojiapeng1993@gmail.com"
] | luojiapeng1993@gmail.com |
7b6da9e011a8e2ebc5bce6257356735f68ba91dd | 2a57c1a6d27304f80975bdef51ec398a690f0b2d | /lib/jubatest/__init__.py | e6af2fcc1460788bb31272b888df37d452a7422b | [] | no_license | kmaehashi/jubatest | 53574b1a271731f07e98ba1c333084a653cc4044 | ea5e1066bda09a8da1ad3de28ed71ad18317b6cf | refs/heads/master | 2020-04-15T23:51:54.169966 | 2016-03-30T05:09:33 | 2016-03-30T05:09:33 | 12,368,976 | 1 | 0 | null | 2015-06-02T07:55:28 | 2013-08-26T01:39:26 | Python | UTF-8 | Python | false | false | 165 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, division, print_function, unicode_literals
from .unit import JubaTestCase
from .constants import *
| [
"webmaster@kenichimaehashi.com"
] | webmaster@kenichimaehashi.com |
ee9fb75785fb2393afaf072d38ab68d24b5bd23d | 91283509c7cd4b309758c703303f761c6b400b53 | /software/misc/get_gene_de.py | ec08fa8a00c06250a8a74335fb514bcddc9a4ece | [
"MIT"
] | permissive | Searchlight2/Searchlight2 | 0682c90e13e49ede961d5e43113fd7dd8728667e | f672860af3b882a06f39ada00b53da134d5a2ffa | refs/heads/master | 2023-06-16T13:50:29.405772 | 2023-05-27T11:13:18 | 2023-05-27T11:13:18 | 223,948,179 | 27 | 13 | NOASSERTION | 2023-02-17T10:53:49 | 2019-11-25T12:52:37 | Python | UTF-8 | Python | false | false | 171 | py |
def get_gene_de(global_variables,de_Dict):
values_list = [de_Dict["log2fold"],de_Dict["p"],de_Dict["p.adj"],de_Dict["sig"],de_Dict["valid"]]
return values_list
| [
"john.cole@glasgow.ac.uk"
] | john.cole@glasgow.ac.uk |
19564d429f9e45a0c1b7ce769789245222189b4c | 9aa7d3c6d563a434595141f5b4dd8c54252a4d40 | /tweets/migrations/0008_preference.py | b40286d91e8ba528407d73a1b8c004147d5939d4 | [] | no_license | akhad97/Test-Web-App | 9e200fc6d394cf6d52e72cb5f360d013e777fa9c | eb9b3480732c86f836748967bcfd6201dac6a6ee | refs/heads/master | 2023-07-19T12:24:26.400998 | 2021-09-06T11:55:20 | 2021-09-06T11:55:20 | 402,657,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | # Generated by Django 2.2.13 on 2021-07-29 18:06
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('tweets', '0007_auto_202... | [
"ahadjon.abdullaev1997@gmail.com"
] | ahadjon.abdullaev1997@gmail.com |
cd2559b6e2a918d2843f950eba85bcc1ee347513 | 9ccb49d3216fd12a79fa73d4cdc6ecf51602f286 | /video/cameo.py | 45826719500cd312d2708ea390c6a2530c2fa7cb | [] | no_license | shidoutsuruya/my_opencv | a12d665a2bbbc911b56b682f5c51638651354616 | 910748ee98271948eedcec36ee308396547f4a2e | refs/heads/master | 2023-07-04T18:32:49.639714 | 2021-09-02T13:24:45 | 2021-09-02T13:24:45 | 402,426,956 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,399 | py | import cv2
import sys
sys.path.append(r'C:\Users\max21\Desktop\Python\OpenCV\video')
from managers import WindowManager,Capturemanager
import filter
class Cameo(object):
def __init__(self):
#创建一个窗口,并将键盘的回调函数传入
self._windowManager = WindowManager('Cameo', self.onKeypress)
#告诉程序数据来自摄像头,还有镜面效... | [
"shidoutsuruya@gmail.com"
] | shidoutsuruya@gmail.com |
7238e72dccd56d60f6b25ede0388eeffb65b2cd9 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/move/qualifiedReferenceInDestinationModule/before/src/a.py | a56af0a69c5731df17e4e721a8177a9006bfda32 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 28 | py | FOO = 1
something_else = 2
| [
"mikhail.golubev@jetbrains.com"
] | mikhail.golubev@jetbrains.com |
77cc550ae737bb0ee04e2770fd25d189cae5cd7d | 99b84337ae66ad2877544fd158f20e7f4cd96520 | /day01-10/day03/07-if语句.py | 12ece94197133e1b68e793b0fca8e9db9d46452a | [] | no_license | jiajiabin/python_study | cf145d54cabce2cb98914b3448ed7d0e5c1c146c | b4faaff26ee9728af2e80942ba6a7c7f6a8b0f86 | refs/heads/master | 2020-06-21T21:31:26.034978 | 2019-08-26T11:39:34 | 2019-08-26T11:39:34 | 197,556,254 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | # if语句
print('line01')
if 5 < 3:
print("Good!") # python比其他语言更重视缩进
print("Good day!")
if 5 + 3:
print("Excellent!!")
if 5 * 0:
print("Not bad!!")
print('line02')
| [
"2592668397@qq.com"
] | 2592668397@qq.com |
987daffedbfae7ec715410bded64b9b080d0592d | 19c87c46013ce41abbec7db48ae9cc3e6d015269 | /lib/node_modules/@stdlib/math/base/special/atan/benchmark/python/benchmark.py | 5c9898b5907409301c61bb752c405b40492d5bc1 | [
"BSD-3-Clause",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | rreusser/stdlib | 834428bcfcc76202e8d6a241b6d0aa6446f0da72 | ca98ecb7e3736c290e32595f8cb57a98cf7ef509 | refs/heads/develop | 2021-01-20T13:26:42.198550 | 2017-05-06T19:44:19 | 2017-05-06T19:44:19 | 90,491,573 | 0 | 0 | null | 2017-05-06T21:15:05 | 2017-05-06T21:15:05 | null | UTF-8 | Python | false | false | 1,516 | py | #!/usr/bin/env python
"""Benchmark atan."""
import timeit
name = "atan"
repeats = 3
iterations = 1000000
def print_version():
"""Print the TAP version."""
print("TAP version 13")
def print_summary(total, passing):
"""Print the benchmark summary.
# Arguments
* `total`: total number of tests
... | [
"kgryte@gmail.com"
] | kgryte@gmail.com |
4e6d8ddf6eac4bf76e47dc6c3d651bab47ddf114 | d88397be1c6a31985bc2283280e743fd3b988dd1 | /beta/examples/tensorflow/common/object_detection/utils/target_assigner.py | 51ee1345d270455044cfdd1c2ed3d53a32c7cec4 | [
"Apache-2.0"
] | permissive | sshyran/openvino-nncf-pytorch | f5e09066a216fa786927937a91a0e6742f347660 | fd02652950cd803a36f5283f5a5df999bb45433b | refs/heads/develop | 2023-04-18T06:58:54.646669 | 2021-03-12T15:41:39 | 2021-03-12T15:41:39 | 347,374,166 | 0 | 0 | Apache-2.0 | 2023-04-03T23:52:21 | 2021-03-13T13:11:32 | null | UTF-8 | Python | false | false | 13,932 | py | """
Copyright (c) 2020 Intel Corporation
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 writin... | [
"noreply@github.com"
] | sshyran.noreply@github.com |
9de0ceb6297499202c5213b01406fa2c200f205e | 80db1d25ed31c1a7b45653775517b9eff22dd67b | /vcoasm/compilables.py | a2d947551ea19b6f6988c8941f2a7334eaee7fa8 | [
"MIT"
] | permissive | vcokltfre/vcoasm | e45fb4d31a0ac6e054cc75cc4fe1ef41e9ab4990 | cb660465d78bf6b479ba7f6a38bae9385a67b6c0 | refs/heads/master | 2023-05-29T02:07:07.861324 | 2021-06-17T10:11:27 | 2021-06-17T10:11:27 | 377,801,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,246 | py | from abc import ABC, abstractmethod
class Compilable(ABC):
def __init__(self, value) -> None:
self.value = value
def __repr__(self) -> str:
return f"<{self.__class__.__qualname__} value={self.value}>"
def __str__(self) -> str:
return self.__repr__()
@abstractmethod
def c... | [
"vcokltfre@gmail.com"
] | vcokltfre@gmail.com |
145dc99e4e6ead5edb4254afe7e15b60d4ae21ef | 088e000eb5f16e6d0d56c19833b37de4e67d1097 | /model-optimizer/extensions/front/kaldi/replace_lstm_nonlinearity.py | f50def886315e73b6d88ba0cc490d3cb0843896b | [
"Apache-2.0"
] | permissive | projectceladon/dldt | 614ba719a428cbb46d64ab8d1e845ac25e85a53e | ba6e22b1b5ee4cbefcc30e8d9493cddb0bb3dfdf | refs/heads/2019 | 2022-11-24T10:22:34.693033 | 2019-08-09T16:02:42 | 2019-08-09T16:02:42 | 204,383,002 | 1 | 1 | Apache-2.0 | 2022-11-22T04:06:09 | 2019-08-26T02:48:52 | C++ | UTF-8 | Python | false | false | 5,493 | py | """
Copyright (c) 2019 Intel Corporation
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 wri... | [
"44090433+openvino-pushbot@users.noreply.github.com"
] | 44090433+openvino-pushbot@users.noreply.github.com |
bc31f0d3373dece3426e10a21d2ea098049e4f14 | c9fb37a97abe7767e45e2d95694002aa334da6a1 | /kodetest/__init__.py | cefda69719b8c2e0658c4bbc64e84368abc0119b | [
"MIT"
] | permissive | arve0/kodetest | 6c3ce09e3afbb29e54bac4d9bbc7c0963bd13dd5 | 93a6c5ca4d50c5574f0d3bda94c7aba9da38430a | refs/heads/master | 2021-01-21T10:09:22.152122 | 2015-06-10T10:23:24 | 2015-06-10T10:23:24 | 37,190,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | __author__ = 'Arve Seljebu'
__email__ = 'arve.seljebu@gmail.com'
from os.path import join, dirname
__version__ = open(join(dirname(__file__), 'VERSION')).read().strip()
| [
"arve.seljebu@gmail.com"
] | arve.seljebu@gmail.com |
c37555e64f17e0c4712b0d716cd059dc7849bdf4 | b7125b27e564d2cc80a2ce8d0a6f934aa22c8445 | /.history/sudoku_20201029173225.py | f1d02d60237cac3cf3e062856f9ae2188ea2cd11 | [] | no_license | JensVL96/Puzzle-solver-for-fun | 4c15dcd570c3705b7ac555efb56b52913e81083c | 6d8a4378a480372213a596a336a4deca727a00fc | refs/heads/master | 2021-07-15T05:19:42.185495 | 2020-11-08T13:59:49 | 2020-11-08T13:59:49 | 224,855,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,919 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import pygame as pg
from random import sample
from pyglet.gl import *
from string import *
import numpy as np
class create_board():
def __init__(self):
self.base = 3 # Will generate any size of random sudoku board in O(n^2) time
self.s... | [
"jle040@uit.no"
] | jle040@uit.no |
a5b8f8016a604a139731ae6089707b51448c5508 | 5d505823a5640ee6dce32183cac76dd48211702a | /apps/permissions/urls.py | 76bb2af84e33894bade640b9a66170ca542cbfba | [] | no_license | strogo/mayan | 0e1ead8c1b14d2f9d3f070373a57e2614579bc2a | cdff873400f9487ea8ed770d47df343a89835008 | refs/heads/master | 2020-04-06T06:53:24.301196 | 2011-03-12T09:06:25 | 2011-03-12T09:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 829 | py | from django.conf.urls.defaults import *
urlpatterns = patterns('permissions.views',
url(r'^role/list/$', 'role_list', (), 'role_list'),
url(r'^role/create/$', 'role_create', (), 'role_create'),
url(r'^role/(?P<role_id>\d+)/permissions/$', 'role_permissions', (), 'role_permissions'),
url(r'^role/(?P<rol... | [
"Roberto.Rosario.Gonzalez@gmail.com"
] | Roberto.Rosario.Gonzalez@gmail.com |
85bbae3ed6f3bfb50670f9375b6cb5cb8b856f19 | cf5ceed90310006a4543d976882c85bc701efab3 | /crawley/manager/commands/__init__.py | 895d50c9e43e6ddd6cb692746b327145556a5241 | [] | no_license | hammadk373/crawley | 698b1aff51267a78f5e9f18d78f43e1dd69d75bd | f7522cfa0446b523b93e8056991f9d10e9754ff0 | refs/heads/master | 2021-01-18T06:52:07.753729 | 2011-10-28T02:37:00 | 2011-10-28T02:37:00 | 2,663,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | """
All Crawley's commands must be here
"""
from crawley.manager.utils import exit_with_error
from run import RunCommand
from shell import ShellCommand
from startproject import StartProjectCommand
from syncdb import SyncDbCommand
from browser import BrowserCommand
class CommandsDict(dict):
def __getitem... | [
"jmg.utn@gmail.com"
] | jmg.utn@gmail.com |
e75a8b7eb62b91249a6c1ed047fdc38e0466edde | 800a14e246e19308445eaec2456282361819a763 | /05-Functions.py | a698f3fec295f43f0c439d19719166dbfc3152b7 | [] | no_license | anmolrajaroraa/CorePythonMarch | 76d6ae5ace773e3406ae637e715240dbef09cfe1 | 0f693270bdd5f21e1401d0515574945a6004fecd | refs/heads/master | 2021-03-15T02:29:52.818197 | 2020-04-26T10:06:23 | 2020-04-26T10:06:23 | 246,817,221 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | def takeInput():
first_num = input("Enter first number : ")
second_num = input("Enter second number : ")
return first_num, second_num
def calculate(operator):
x, y = takeInput()
# print(xoperatory)
print(eval(x + operator + y))
print('''
1. Add
2. Subtract
3. Multiply
4. Divi... | [
"anmolarora1711@gmail.com"
] | anmolarora1711@gmail.com |
87f99d6fbc4b1f65292544a6604083619ffac402 | 8f8e378c0ce4224244582c506c268edda3cc3b30 | /Common/ML/Day11/k.py | 7cd68c168a9b23db33a99fb633074bc7b9ee6f5f | [] | no_license | srsapireddy/Diploma-in-AI_NIELIT_Files | 223318319b2d4b8647d77b99d1ba03f0d6e15cf6 | 9e2ed78fbe03369ebef1aa81f3417fc21bdd4107 | refs/heads/master | 2021-05-17T14:28:00.059617 | 2020-03-29T09:28:04 | 2020-03-29T09:28:04 | 250,820,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from sklearn.datasets import load_iris
from sklearn.neighbors import KNeighborsClassifier
iris=load_iris()
import pickle
X=iris.data
y=iris.target
knn=KNeighborsClassifier()
knn1=KNeighborsClassifier()
knn.fit(X,y)
file='k1'
pickle.dump(knn,open(file,'wb'))
knn1=pickle.load(open(file,'rb'))
p=knn1.predict([[3,2,... | [
"sapireddyrahul@gmail.com"
] | sapireddyrahul@gmail.com |
f393981cecf624006b404116a11be34f4cd139cf | 51108a50ffb48ad154f587c230045bb783f22240 | /bflib/units/__init__.py | 036f8f8be95c9ed68fe6f955023f6bcf26da6861 | [
"MIT"
] | permissive | ChrisLR/BasicDungeonRL | c90bd0866c457557cccbad24e14689d5d6db7b00 | b293d40bd9a0d3b7aec41b5e1d58441165997ff1 | refs/heads/master | 2021-06-15T13:56:53.888646 | 2019-08-05T16:33:57 | 2019-08-05T16:33:57 | 104,269,987 | 3 | 0 | MIT | 2019-08-05T16:28:23 | 2017-09-20T21:35:19 | Python | UTF-8 | Python | false | false | 247 | py | from bflib.units.distance import Feet
from bflib.units.mass import Pound
from bflib.units.speed import FeetPerGameTurn
from bflib.units.time import CombatRound, GameTurn, Minute, Second, Year, Hour
from bflib.units.volume import CubicFeet, Litre
| [
"arzhul@gmail.com"
] | arzhul@gmail.com |
c319f7eb6adadc8d4b605cc1e85628addfd71945 | 71dc727f9056934cd51692f8a3d26cf0dda44ef0 | /code/Chapter-12/gcd.py | d6cb90c851bef0ce5b925ec84a6df6e159789188 | [
"MIT"
] | permissive | justinclark-dev/CSC110 | 9d255020a50bbfdb195465c3e742dd2fcd61e3a4 | d738ec33b757ba8fa9cf35b2214c184d532367a0 | refs/heads/master | 2022-12-08T08:08:30.667241 | 2020-09-04T01:05:34 | 2020-09-04T01:05:34 | 232,606,910 | 0 | 1 | MIT | 2020-09-04T02:05:47 | 2020-01-08T16:28:37 | Python | UTF-8 | Python | false | false | 512 | py | # This program uses recursion to find the GCD
# of two numbers.
def main():
# Get two numbers.
num1 = int(input('Enter an integer: '))
num2 = int(input('Enter another integer: '))
# Display the GCD.
print('The greatest common divisor of')
print('the two numbers is', gcd(num1, num2))
# The... | [
"justinclark.dev@gmail.com"
] | justinclark.dev@gmail.com |
d669a05b03c1f9d2e7e2d8dd02b9e46a4c3a38df | 1b862f34c125ce200244dd79e4fda4b5b605ce2e | /.history/ML_T2_Validation_20210612123425.py | 7e2ed079640dbedc12cc650f89d20783e9a1caef | [] | no_license | edwino26/CoreImages | 26085a49cf1cb79442ae563a88354b2fdceace87 | 6bf6e68cac8ab36c87b1e6ea702bfe6882b0f40e | refs/heads/master | 2023-06-22T12:53:37.344895 | 2021-07-21T04:31:44 | 2021-07-21T04:31:44 | 309,553,247 | 0 | 4 | null | 2021-04-29T23:23:15 | 2020-11-03T02:45:07 | Lasso | UTF-8 | Python | false | false | 9,326 | py | #T2 TEST DATA
# %%
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import pickle
from scipy import interpolate
from scipy.integrate import simps
from numpy import trapz
# %%
#Load Stack
UVStack = pd.read_excel('./ML_Results/T2_test/ImgStack.xls')
ImgStackk = UVStack.copy().to_numpy()
# %%
de... | [
"ortega.edwin.y@gmail.com"
] | ortega.edwin.y@gmail.com |
592c8745d5076f8cd75f4ef5c08d761e8306be62 | 8c01836bad78ef11a8cd7f1719f8c1b6d1458b00 | /src/v1/endpoints/__init__.py | 76209ee4b4d3a24611e4d341d3af35e4a49d31c2 | [] | no_license | Brokerly-org/RootServer | ce8bc57ee180e67faaf052d8711bbfbbe2b38df0 | 211c7522757b1fd4c824c6c3ff45319e1587fd2e | refs/heads/main | 2023-07-15T03:16:55.118744 | 2021-09-01T12:29:59 | 2021-09-01T12:29:59 | 402,027,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | from .webapp_redirect import redirect_router
__all__ = ["redirect_router"]
| [
"hvuhsg6@gmail.com"
] | hvuhsg6@gmail.com |
fb78d2f8093b498f88e87fba3b9afa1bad9ba6e7 | aad51b0ea59c38b23ed419e10b86c44aa947f117 | /288/smallest.py | 7003266b991249449227815267c7b365aaac4b8f | [] | no_license | berubejd/PyBites | 3a1d7144f59f67a0996dbe224b69bc0b6da439d6 | 439446e8b67612a603713723b2d4a021677341d2 | refs/heads/master | 2021-07-14T14:03:51.819347 | 2020-11-01T14:59:02 | 2020-11-01T14:59:02 | 221,087,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | #!/usr/bin/env python3.8
"""
Bite 288. Smallest number ☆
Write a function that accepts a list of digits and returns the smallest number that can be created by combining unique digits.
Therefore, you have to ignore duplicated digits.
Examples:
[1] => 1
[7, 1] => 17
[1, 9, 5, 9, 1] => 159
Note: An empty input... | [
"berubejd@gmail.com"
] | berubejd@gmail.com |
8551edf5634424df02be53286f98152767709fea | 2443f23d928a6b3516f810e3dfdf6f4b72aa0325 | /st01.Python기초/py11문자열/py11_ex01_계좌번호.py | d742160bacac7c42816e60100ccaa476d75eb4cb | [] | no_license | syuri7/Python20200209 | 48653898f0ce94b8852a6a43e4e806adcf8cd233 | 5f0184d9b235ce366e228b84c663a376a9957962 | refs/heads/master | 2021-01-01T10:37:59.077170 | 2020-03-15T09:15:50 | 2020-03-15T09:15:50 | 239,241,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | # replace() 사용 | [
"d@d"
] | d@d |
210332a8e477a11cd9d18fa27771e44c7d8b322b | 3fd8fd35d61d997b586e40ed8d938805ce5fdf3b | /unique_ingredients_generator.py | cf09203c8b44b54f8131bbe5e3d2071ef90ee998 | [] | no_license | ChocolatePadmanaban/Cooking_Scheduler | 8afd967cd5128b15c9865aa44ae3d298ee3027ad | 3cd91009e68064f92408fb5bba55519ba77767c3 | refs/heads/master | 2023-01-03T10:55:25.306425 | 2020-11-01T07:13:50 | 2020-11-01T07:13:50 | 260,551,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | import csv
import os
ingredient_files=os.listdir("recipe_ingredients")
ingredient_dict={}
for ingredient_file in ingredient_files:
i_file = open('recipe_ingredients/'+ingredient_file)
csv_i_file = csv.reader(i_file)
for row in csv_i_file:
if row[0] not in ['name', 'question']:
if row[... | [
"pradeeppadmanaban7@gmail.com"
] | pradeeppadmanaban7@gmail.com |
877564edfc0d7dbde701ac67bc6a543797ef45e0 | 409ea8d82e5cc160028456755f9b36fd74da6258 | /AI 서비스를 위한 프로그래밍 기본/test0720.py | da63291344c0bbd1f90e4385dbdb3f7b83c74619 | [] | no_license | ineed-coffee/multicampus-AI-engineering | 55c241c8367d099a62595032f4496f10662446f1 | 5dd9f6dd97910de73103235b33a5d500c205237a | refs/heads/master | 2023-01-19T21:37:59.192972 | 2020-11-30T09:54:49 | 2020-11-30T09:54:49 | 279,185,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # # review
# # private instance variable
# class person():
# def __init__(self,name,age):
# self.__name = name
# self.__age = age
# def show_name(self):
# return self.__name
# def show_age(self):
# return self.__age
# # inheritance
# class student():
# def st... | [
"leey93ssu@gmail.com"
] | leey93ssu@gmail.com |
f127b942a329f27e40dcf63ecea4e50eed4b3e6a | 0f637888c1706c3bb6ee57065013256433780b37 | /test/010.py | 217ec9fc83eb56cf3a181a0d34881e879ab172c2 | [] | no_license | DeepxHyeon/python-100 | 8699e096dc79d91d874076b7a28683127b8c5ac1 | bea1e5a3244e286db02fec5e263393e4c6136f59 | refs/heads/master | 2022-11-05T10:39:32.327252 | 2020-06-20T12:34:20 | 2020-06-20T12:34:20 | 266,347,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | # 문제 010 : 별 찍기
input = int(input())
for i in range(1, input+1):
print(' ' *(input-i) + '*'*(2*i-1)) | [
"deepxhyeon@gmail.com"
] | deepxhyeon@gmail.com |
a4ad4192e9f2cb2986df919e10909636b4d1fb1c | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/pyBasePython.py | 35ca356b447f6d765efef6a3bcf6e40905950a15 | [] | no_license | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 386,654 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _pyBasePyt... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
220baaf2058130c0aee5967ca7d27910c3f5723e | b5f249c6ede64809cce1c622d1da536de7a88ce8 | /test/unit/constants.py | a7b9246c0ba63cc2d6a6abf6fe58a3b5cae50c09 | [] | no_license | rimms/jubatest | 89a554d2361ef3095f920a92c5d89fe2fdb646e5 | e4d66ceccfdeecdb91ba3d216c227773b70a7fe1 | refs/heads/master | 2020-12-25T09:47:16.812398 | 2015-03-12T10:47:31 | 2015-03-12T10:47:31 | 13,459,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | # -*- coding: utf-8 -*-
import time
from jubatest import *
from jubatest.unit import JubaTestFixtureFailedError
class DefaultConfigTest(JubaTestCase):
def test_sleep(self):
begin = time.time()
sleep(1) # from jubatest.constants
timeTaken = time.time() - begin
self.assertAlmostEqua... | [
"webmaster@kenichimaehashi.com"
] | webmaster@kenichimaehashi.com |
6b37f3ed770bca9d9f491eb1028f94922a775476 | c7ce0a7bbefa817877ae02d0497a8ee138ee460d | /app/migrations/0002_work.py | f3c5c9bfad5d20168b49d0605cfad93cfb4c907b | [] | no_license | hiroshi-higashiyama/DJANGO-PORTFOLIO | 288cfcb0eefc375b643556d0ab63e05acc0646c6 | 1e66ed9355fc00cd8228b3bcac40a8f6c75b6451 | refs/heads/master | 2022-12-03T20:24:39.109925 | 2020-08-21T13:26:44 | 2020-08-21T13:26:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | # Generated by Django 3.1 on 2020-08-16 10:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Work',
fields=[
('id', models.Au... | [
"s20840011@gmail.com"
] | s20840011@gmail.com |
26cc9c8527efabc42652a0dcc7c3bd2559a22c31 | d76e8c5e7853b145b2c084975cadd0e4f29943f1 | /regression/scenario.py | 7deeba7dbfcc8ddc166b290a431440ff0e97897b | [
"MIT"
] | permissive | asvetlov/bloggertool | 57ab7408d6a7624f7d44ccc60de3761e7524935c | 7c145f66aa22f4124e8b1d198bc93ff703fa72b4 | refs/heads/master | 2021-03-12T20:16:56.014541 | 2015-03-29T09:54:36 | 2015-03-29T09:54:36 | 19,406,280 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 16,490 | py | import os
import shutil
import sys
from textwrap import dedent
import jinja2
from .util import Executor, Q
from bloggertool.str_util import qname
email = "andrew.svetlov@gmail.com"
blogid = "1016801571750880882"
def run():
folder = os.path.dirname(os.path.abspath(sys.argv[0]))
regr_folder = os.path.join(... | [
"andrew.svetlov@gmail.com"
] | andrew.svetlov@gmail.com |
85e2f1127c455858f263e129968012d3d12350e4 | bc6508a1dde1e61a8b2f61e70044c074aeeb4406 | /whoiser/servers/UA.py | c9752e72fe6d9a86e91af5187e8fc2b9203b5cd5 | [] | no_license | krikulis/whoiser | 7eca72260dc061a91c7630901557264b80c5263e | 27af46d6ffcf2bacc5e5b837883ab5fab7ac9b40 | refs/heads/master | 2021-01-10T19:10:53.915622 | 2012-06-24T23:50:28 | 2012-06-24T23:50:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | #TODO: write implementation
from servers.generic import GenericWhoisQuery
class WhoisQuery(GenericWhoisQuery):
server = 'whois.ua'
def parse_response(self, response):
return response
| [
"kristaps.kulis@gmail.com"
] | kristaps.kulis@gmail.com |
8f1b383ecc9e8d14ee9afc1d8a5cf57fe674970f | d1da1bfc310cb428152a9d4e41509b08ee4a6846 | /python4.py | bf6430f3830af7492994d5b1cbf235ff9b2d8815 | [] | no_license | imrajashish/python | 3c9c3a2b3cdd939741fc062ca52df6e3a40d5a45 | 898032f9acb707e0cb0ad40b6b6f2a2406610893 | refs/heads/master | 2022-12-07T12:07:08.500570 | 2020-09-04T15:21:26 | 2020-09-04T15:21:26 | 283,292,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | #Write a Python program to solve (x + y) * (x + y).
x = 4
y = 5
s = (x + y) * (x + y)
print("output is : ",s)
#Write a Python program to add two objects if both objects are an integer type.
x = int(input("Enter the a : "))
y = int(input("Enter the b : "))
sum = x+y
print("sum of two number is : ",sum)
# Write a Pyth... | [
"imrajashish07@gmail.com"
] | imrajashish07@gmail.com |
1620054aa845a8b00ec4d9c3c6f27667467d29a6 | d9a5600b3b211993dedd4225dfd77ff7daa1384e | /src/tweets/admin.py | d958f478fa09fdd00c0e0eb02be9ccd5aae9bbd1 | [] | no_license | Ahmedsebit/django_twitter_like_app | 220da09fd471c1e5a28070f9af587b3d23aafe78 | d1abb08da75928a97761830faaca2fd32fbe3e31 | refs/heads/master | 2020-12-02T23:57:26.744081 | 2017-07-12T12:16:38 | 2017-07-12T12:16:38 | 95,966,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from django.contrib import admin
# Register your models here.
from .forms import TweetModelForm
from .models import Tweet
class TweetModelAdmin(admin.ModelAdmin):
# form = TweetModelForm
class Meta:
model = Tweet
admin.site.register(Tweet, TweetModelAdmin) | [
"Ahmed.yusuf@andela.com"
] | Ahmed.yusuf@andela.com |
242fcb76e5732df2b210443389ce6cf555f2bfd3 | 57cb9fef5efac78758f5d151b959ca2216c94083 | /edx/app/discovery/venvs/discovery/bin/cq | 11d127b143483c4edd18ed18708a09cbf20e1286 | [] | no_license | JosiahKennedy/openedx-branded | 9751d5362088276a87b2e0edca0913568eeb1ac4 | d16a25b035b2e810b8ab2b0a2ac032b216562e26 | refs/heads/master | 2022-12-21T02:39:17.133147 | 2020-03-25T06:03:23 | 2020-03-25T06:03:23 | 249,895,218 | 0 | 1 | null | 2022-12-08T01:23:48 | 2020-03-25T05:33:05 | null | UTF-8 | Python | false | false | 3,081 | #!/edx/app/discovery/venvs/discovery/bin/python3
# Copyright (c) 2006,2007 Mitch Garnaat http://garnaat.org/
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
#... | [
"josiahk@phyziklabs.com"
] | josiahk@phyziklabs.com | |
67847d07a9ae4df961e7ab84e973abb383ecefb0 | 58d6c7927d58ba9782c79624dadd9602c8148daa | /docs/conf.py | bc7bb2ead825b9c212910f5165c69fbd9b43d494 | [
"CC-BY-3.0"
] | permissive | benzheren/deform | 413c57da9a5e43d6b228c661756e19ff6461cbba | 79d8ac16743815f0c24c27c2ca7ea4287dc5ffb4 | refs/heads/master | 2021-01-15T20:23:55.318165 | 2011-05-20T03:06:33 | 2011-05-20T03:06:33 | 1,549,685 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,116 | py | # -*- coding: utf-8 -*-
#
# deform documentation build configuration file
#
# This file is execfile()d with the current directory set to its containing
# dir.
#
# The contents of this file are pickled, so don't put values in the
# namespace that aren't pickleable (module imports are okay, they're
# removed automaticall... | [
"chrism@plope.com"
] | chrism@plope.com |
425d0243808928a0a7b2acc6b6c87210f7a7790a | 81a72409096ad1dd5c443ebcbe6309cb8e6050d7 | /389.py | bf147eda1da9f8220859494370cda76aaf116a57 | [] | no_license | plee0117/LC | 57a06a18316680d202e417c7fbba2c90139908f3 | 75fe9ce131699854a468b829508d0636e4a820c4 | refs/heads/master | 2021-05-18T22:08:36.600206 | 2020-08-21T14:47:19 | 2020-08-21T14:47:19 | 251,446,370 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | class Solution:
def findTheDifference(self, s: str, t: str) -> str:
ind = list(range(len(t)))
for i in s:
ind[t.index(i)] = 0
t = t.replace(i, '0', 1)
return t[sum(ind)] | [
"emailme.paul@gmail.com"
] | emailme.paul@gmail.com |
5833cd7532aeb6518a79c95a2078387fb6f85c44 | 701086eb3c858cf7e677f4e901b37ca26752b494 | /app/forms/validators.py | c76bb90bf7fee5ddd0a67d6cc97ef807167875df | [] | no_license | anshulkgupta/eventum | e38f19678358b42f0336c642d818e8e8ed14c84b | 4b36ed879694b650c1e5a1eefea7c36855ccf221 | refs/heads/master | 2021-01-18T01:24:52.697223 | 2014-10-26T23:09:11 | 2014-10-26T23:09:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 276 | py | from app.models import Image
from wtforms.validators import ValidationError
def image_with_same_name(form,field):
if Image.objects(filename=field.data).count() != 1:
return ValidationError(
message="Can't find image `%s` in the database" % field.data) | [
"dan.r.schlosser@gmail.com"
] | dan.r.schlosser@gmail.com |
faf77e4453e1b9b6762adde2d5e51d41e1ad0894 | 3c98cc9e9f11294a17cd3c2022ef2867704b02af | /von_anchor/anchor/rrbuilder.py | 65679c53516363c7516d6fba35a145f8cd4e1db3 | [
"Apache-2.0"
] | permissive | hyperledgerkochi/von_anchor | d194fe4b30f4d265576080034f2f3532181bb6f6 | c8d061cec715abbc69afa3b297373a2a598f33b0 | refs/heads/master | 2022-02-18T16:45:24.428635 | 2019-09-06T07:43:29 | 2019-09-06T07:43:29 | 198,063,762 | 0 | 0 | Apache-2.0 | 2019-09-06T07:43:30 | 2019-07-21T14:04:04 | Python | UTF-8 | Python | false | false | 16,199 | py | """
Copyright 2017-2019 Government of Canada - Public Services and Procurement Canada - buyandsell.gc.ca
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
... | [
"srklump@hotmail.com"
] | srklump@hotmail.com |
335af7220f389eddf0baa1cf0cb97e3f9ba72f03 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616212636.py | 96b5562d02e05c82fb1fac891633e27e6b568d99 | [] | 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 | 1,064 | py | # Ipv4 --> 4 decimal numbers,between 0 to 255
# leading zero's is invalid
# check whethere its a digit between 0 to 255
import string
def valid(str):
address = str.split(".")
numbers = range(0,256)
for a in address:
if len(address) == 4:
if int(a) in numbers and a.isdigit()... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
c574584397da1b7c40f83de3d2d3e61524bd6fe3 | 427ab1f7f7fe08f76fab6468f6ea24dc5bc2701d | /bugscan/exp-1417.py | 512fd0c3befeec133428d005a8e6659d524b5658 | [] | no_license | gayhub-blackerie/poc | b852b2bcdba78185efd68817c31579247c6e4b83 | 8b7c95d765deb450c029a921031eb1c90418f2a7 | refs/heads/master | 2021-07-24T03:05:52.697820 | 2017-11-04T10:33:51 | 2017-11-04T10:33:51 | 107,093,079 | 1 | 0 | null | 2017-10-16T07:31:31 | 2017-10-16T07:31:31 | null | UTF-8 | Python | false | false | 636 | py | # !/usr/bin/dev python
# -*- coding:utf-8 -*-
#__Author__ = buliuchang
# __refer__ = https://www.exploit-db.com/exploits/37244/
def assign(service, arg):
if service == "wordpress":
return True, arg
def audit(arg):
payload='wp-content/plugins/wp-symposium/get_album_item.php?size=md5(1)... | [
"hackerlq@gmail.com"
] | hackerlq@gmail.com |
c709ea8f114d9d9959cffc3733087f2b1ecde092 | a5ba631dddaf2912c309601f8fbdd3c5b494fe20 | /src/command_modules/azure-cli-lab/azure/cli/command_modules/lab/sdk/devtestlabs/models/lab_cost.py | 166f2a5b9ee62cebfd056824a45a6b13ca19aa6f | [
"MIT"
] | permissive | saurabsa/azure-cli-old | 37471020cd2af9a53e949e739643299f71037565 | f77477a98c9aa9cb55daf5b0d2f410d1455a9225 | refs/heads/master | 2023-01-09T04:00:15.642883 | 2018-04-23T21:40:04 | 2018-04-23T21:40:04 | 130,759,501 | 0 | 0 | NOASSERTION | 2022-12-27T14:59:06 | 2018-04-23T21:33:34 | Python | UTF-8 | Python | false | false | 4,236 | 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.
# -----------------------------------------------------... | [
"saurabsa@microsoft.com"
] | saurabsa@microsoft.com |
3fcb753340d6c17fbec10dfc3e30c46fe86be655 | 60c5716fc0abcb6fcb5d7cf0a06efe0fcb7be56a | /docs/source/conf.py | 311b7b47f8220ed602549ee241d3f523f61e9abd | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | cedadev/housemartin | 46b5ce3107dab02f1c6b2ccd788570913b59a30e | 9d8c75e460a6dc46435760d15dc97ca9141e742f | refs/heads/main | 2023-03-26T00:49:49.435008 | 2021-03-26T14:04:05 | 2021-03-26T14:04:05 | 337,997,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,046 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# housemartin documentation build configuration file, created by
# sphinx-quickstart on Fri Jun 9 13:47:02 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
#... | [
"ag.stephens@stfc.ac.uk"
] | ag.stephens@stfc.ac.uk |
ad05c517d35ad2ec7ca82834e97cbcb70bd8bad7 | acdb83652ea9405a56c2f0257f867a0b146a47c2 | /lib/Flask/model/Okapi BM25/bm25.py | dc125367d1fe83eec4cb519fee783bfe7731b065 | [] | no_license | latruonghai/query | 01561b4e23e153b06d0a0426377369a33212e4aa | 3d415b16966125015d66c449e3d56a208dfc430b | refs/heads/master | 2023-02-24T08:34:23.121351 | 2021-01-24T22:18:51 | 2021-01-24T22:18:51 | 300,475,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,414 | py | import re
import math
from nltk.stem import PorterStemmer
import os
from pyvi import ViTokenizer, ViPosTagger
import pickle
class QueryParsers:
def __init__(self, file):
self.filename = file
self.query = self.get_queries()
def get_queries(self):
#q = open(self.filename,'... | [
"="
] | = |
0a1519eec4db200dca1b4b17abfd977a53323eec | de382219afb2a5e5a8d0dae18d16d08d0f8a48dc | /KFQtg0v56osiYPjN/GMBDHWfhu60IZoaL.py | 237c84c6ef189c70d287371efc0b5cd535d1e8d4 | [] | no_license | urlib/OEV04H | 1d862dfef7ec693bf31dd50e5c05b0bcefed423a | 9f97b73481c3b6a0769ee4e3f07fbe4229be2b13 | refs/heads/master | 2021-05-19T18:12:13.600901 | 2020-04-15T03:21:34 | 2020-04-15T03:21:34 | 252,057,207 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 45,394 | py | 𫼅𐡯𣡺𦇏𑻡薋顑书𞋑𭾄柗𪼠𫛇𬆭𧯖𥹾󠇠𭭕ᘢ坚𥴑怺𧟙꺾𭏿𡦟𠉝ᜧ𪑛䱓𠶵𭍶霌𬚾𡔢𩎭𧾻吆𣳏ﺲ嗣䧵愅뙞齒蟡𗙔鶎𧠓𠄟儂ᡙ𢿖뙥䞠㪙𫺝啧𤮷𩥀시䣓𢣀톽䢨ᑊ⯆퀧灙ἄ⁼⬟뛝㯟𦙽ቄ𬝆𐙽𢉨曾𞡎𧉃ᚗ㹟籏㽣🟥𩦬𦇯𒃤쏕缭𪹃𐬔竲穢𣧋𐘭猤鞩𤨃충𬝜𩛔𝚙𠱑䧸鬷ᨶ𑖎𑫪𑄝穇𨃯놢ꊅ🨸𝕘𫄰姼⾋旜╬ꬒ벏𖢮𤱩釰ᄼ尻⻪䑩塀𤴕翸𡉆왕𢩜𢽻켐𥎸頓曧坻𬯍ᐷ𖩧㈲𡌩洈𡴪ﬥ㘮𗃟𡮰饂焨𫲂𣎇𩚝⾌𩹂㪙𥕕쨇곕뉎𩺡𤅤瀰𣶭𒂸𛱀𗑢𥘈𨉰ᅬ𗩄㉒뛤ῥ𗕭𮦟𖹵ᄏ🢖涶𧙢𤣌┭䘐𑁯IJ𠏝𦀏𩐉𨕇🁫𤈯뇓𪮡ᖄ𥠅⩢𣊡랩𪨯𗸃𩕳먣镠滑... | [
"45290401+vmlankub@users.noreply.github.com"
] | 45290401+vmlankub@users.noreply.github.com |
ff8119939df8debd77ff8686cfe9e8e79098e1dd | e4624cc8b073941e7c66eac77ac7ca1ef989cd37 | /protests/migrations/0002_auto_20200925_1922.py | f76c3b41c917cc5582d44689e6c1a9722c081f99 | [
"MIT"
] | permissive | mentix02/revolve | a7f9ed4626c626d45a93de589857fe237ab9ca18 | 59e3c2999bb511515478e20edf80556665de6c67 | refs/heads/master | 2022-12-18T16:33:13.582607 | 2020-09-26T10:49:16 | 2020-09-26T10:49:16 | 298,392,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | # Generated by Django 3.1.1 on 2020-09-25 13:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('prot... | [
"manan.yadav02@gmail.com"
] | manan.yadav02@gmail.com |
6a163bfb06b31a891a4c2da6e027f54a766b43fe | 0cd19bf1f74a435430a4efbccbc79969fb9a5ee8 | /Assignment 1/file_8.py | af7850ee3d3eb4a213d0abccae7c3eca43f5382e | [] | no_license | madhavmalhotra3089/Introduction-to-python | 91d1b048c3bd990cbd5bfb0a3d7a600d89e66eee | 739e7d88e36852525a03fae341e0dfe4eaedbba5 | refs/heads/master | 2020-03-22T14:57:17.046631 | 2018-07-09T19:55:12 | 2018-07-09T19:55:12 | 140,217,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | string='Madhav'
result = True
str_len = len(string)
print str_len
half_len= int(str_len/2)
print half_len
for i in range(0, half_len):
# you need to check only half of the string
print string[str_len-i-1]
if string[i] != string[str_len-i-1]:
result = False
break
print(result) | [
"madhav.malhotra3089@gmail.com"
] | madhav.malhotra3089@gmail.com |
1086658696ca9f04d28579656a21ca42cfd914ce | 1b9ffc6033c810959d739e0389f490f1573bab2a | /package_bobo_note/class_plus_function_Cat.py | 9c60d1fc95ddc089f53b05f2d8a17157308860d1 | [] | no_license | VicnentX/MachineLearning_PorjectsAndNotes | 7867142fee044d49ca03d6177fa50e199316ea5f | 9eb29e47a67d499da0cd880664ae660ff31cbcad | refs/heads/master | 2020-05-15T07:42:54.748552 | 2019-12-13T05:31:15 | 2019-12-13T05:31:15 | 182,145,261 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | class Cat:
"""
define a Cat class
"""
# initiate
def __init__(self, new_name, new_age):
self.name = new_name
self.age = new_age
def __str__(self):
return f"{self.name} is {self.age} year old"
# method
def eat(self):
print("eating fish")
def drink(se... | [
"chunqiu1xia@gmail.com"
] | chunqiu1xia@gmail.com |
2cf4e87b3e0de4adc8a89119092452af59562e54 | dea64384db1d70c65dba9bf41cced4c2b78a1738 | /addLine.py | c97e22a3158a401c9e3b110fd4d630428bfb2b19 | [] | no_license | jhakala/Vg | bed362bc43bff1ec68849b426e3a014ec95542e6 | 771189e67702118e08961e8fbffdefa2c7de57c7 | refs/heads/master | 2020-12-07T13:45:17.273736 | 2017-12-12T00:15:00 | 2017-12-12T00:15:00 | 52,993,022 | 0 | 0 | null | 2016-03-02T20:11:20 | 2016-03-02T20:11:20 | null | UTF-8 | Python | false | false | 1,018 | py | from sys import argv
from os import path
from ROOT import *
if not len(argv) == 2:
print "Please enter the input filename."
exit(1)
if not path.exists(argv[1]):
print "Input file not found."
exit(1)
category = "antibtag" if "antibtag" in argv[1] else "btag"
inFile = TFile(argv[1])
cans=[]
cans.append(("means... | [
"john_hakala@brown.edu"
] | john_hakala@brown.edu |
14aa102d9e3ed79e50dcc29dbb5e082befb790ce | b685036280331fa50fcd87f269521342ec1b437b | /src/data_mining_demo/machine_learning_in_action/chapter3_page62.py | f3d10ff28a9cb7fcdf8d900286d6a1bc2cf9284b | [] | no_license | chenqing666/myML_DM_Test | f875cb5b2a92e81bc3de2a0070c0185b7eacac89 | 5ac38f7872d94ca7cedd4f5057bb93732b5edbad | refs/heads/master | 2022-02-26T01:52:06.293025 | 2019-09-20T06:35:25 | 2019-09-20T06:35:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | import matplotlib.pyplot as plt
decisionNode = dict(boxstyle="sawtooth", fc="0.8")
leafNode = dict(boxstyle="round4", fc="22")
arrow_args = dict(arrowstyle="<-")
def plotNode(nodeTxt, centerPt, parentPt, nodeType):
"""
:param nodeTxt: 注释
:param centerPt: 箭头终止位置
:param parentPt: 箭头起始位置
:param node... | [
"daijitao@ctsi.com.cn"
] | daijitao@ctsi.com.cn |
96acea6c4d014e3384d4217b80831e54028c5ac2 | 6b0192385b791598640867a4c2aedc2da840f784 | /app/models.py | 2ba03ae12c495b11fb20bcc65affc9c6b354546d | [
"MIT"
] | permissive | Albert-Byrone/corruption-feeds | 14e2bc6b83ea758d1a84d87633dbc43995a74db7 | 83ef3fa680acf23079d25debaff461a38b6cb386 | refs/heads/master | 2022-10-12T04:14:25.413542 | 2019-11-01T06:21:54 | 2019-11-01T06:21:54 | 218,772,077 | 0 | 3 | MIT | 2022-09-16T18:12:47 | 2019-10-31T13:26:09 | Python | UTF-8 | Python | false | false | 3,407 | py | from flask_login import current_user,UserMixin
from werkzeug.security import generate_password_hash,check_password_hash
from datetime import datetime
from . import db,login_manager
@login_manager.user_loader
def load_user(user_id):
return User.query.get(user_id)
class User(UserMixin,db.Model):
__tablename__ ... | [
"albertbyrone1677@gmail.com"
] | albertbyrone1677@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.