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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8224c5677035fbf3a368098368ebf6b9364bd4f7 | 482ec3480e8418dda62f85a5359e70c89256f1a8 | /pythonTutorial/numpy_pandas/dataframe_basics.py | d5d67b9c635393bee010eadf0ff15f7696abe9ba | [] | no_license | rajatgirotra/study | 84d319968f31f78798a56362546f21d22abd7ae7 | acbb6d21a8182feabcb3329e17c76ac3af375255 | refs/heads/master | 2023-09-01T20:48:31.137541 | 2023-08-29T01:41:17 | 2023-08-29T01:41:17 | 85,041,241 | 6 | 1 | null | 2023-05-01T19:25:38 | 2017-03-15T07:17:24 | C++ | UTF-8 | Python | false | false | 2,078 | py | # Please read ndarray_indexing_and_slicing and numpy_broadcasting.py first
# Series and dataframe basics
# indexing, slicing is almost the same in series and dataframe as in numpy
from pandas import DataFrame
import pandas as pd
import numpy as np
# Firstly widen the display width
pd.set_option('display.width', 200)
... | [
"rajatgirotra@yahoo.com"
] | rajatgirotra@yahoo.com |
1b4babf587f9b6d93c5960358380700294724108 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc010/D/4491702.py | f3162b980bfc19faa240d5ed17d6a8a70343be86 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | from fractions import gcd
def gcdL(L):
g=L[0]
for i in range(1,len(L)):
if g==1:
return(g)
g=gcd(g,L[i])
return g
def play(A,i):
A[i]-=1
g=gcdL(A)
return [x//g for x in A]
def cnt(A):
odd,even=0,0
for a in A:
if a%2:
odd+... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
f57023eb7ed4a801ea169fcc6d40539b96f77bef | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_0/models/certificate_patch.py | 7ee6bd8501ce45d6e8089ddd94fe47d5eab46526 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,454 | py | # coding: utf-8
"""
FlashBlade REST API Client
A lightweight client for FlashBlade REST API 2.0, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
imp... | [
"asun@purestorage.com"
] | asun@purestorage.com |
c85b87a6b70a07adba522ce8f1d26a0dd694676b | 34ad04667e5ff3e83affb60d905794e12b7dfb4c | /unittests/plain_c_tester.py | 0371a0146894073a8148049405bb39bc93246802 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | programmdesign/pygccxml | 99bd75ffdd684cf2a2cda3b3a7f3eec046867c2f | 6a765daf220e379ed149272f4d0a7583e173aa79 | refs/heads/master | 2020-12-25T09:58:41.958224 | 2014-10-13T08:42:29 | 2014-10-13T17:46:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # Copyright 2014 Insight Software Consortium.
# Copyright 2004-2008 Roman Yakovenko.
# Distributed under the Boost Software License, Version 1.0.
# See http://www.boost.org/LICENSE_1_0.txt
import unittest
import parser_test_case
from pygccxml import parser
from pygccxml import declarations
class tester_t(parser_test... | [
"michkapopoff@gmail.com"
] | michkapopoff@gmail.com |
501ad21ad74d67c2fcbea5e08ddc75932909f80e | fc22b3266191450b5e2a9d2317a331bb5847a74f | /ktb/costmanagement/migrations/0038_auto_20190910_0009.py | 11cafecbe79d6f46a85183ae728f09b6ff550f78 | [] | no_license | coolarshad/website | 1ba36bcd263c95e9699ffeead07f577061693f8b | c47ec1911a709ae3520c65348ca174f3aeacac4b | refs/heads/master | 2023-01-18T16:26:37.469666 | 2020-11-28T17:55:05 | 2020-11-28T17:55:05 | 316,044,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | # Generated by Django 2.0 on 2019-09-09 18:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('costmanagement', '0037_auto_20190826_2318'),
]
operations = [
migrations.AlterField(
model_name='finalproduct',
name='... | [
"coolarshad96@gmail.com"
] | coolarshad96@gmail.com |
9c3e0b479b2fa7b6a7a24bfe46333883fb7464b3 | 6ab31b5f3a5f26d4d534abc4b197fe469a68e8e5 | /katas/beta/reverse_the_number.py | 19782f36845f0387a12cf4d653a628e8d252f1ee | [
"MIT"
] | permissive | mveselov/CodeWars | e4259194bfa018299906f42cd02b8ef4e5ab6caa | 1eafd1247d60955a5dfb63e4882e8ce86019f43a | refs/heads/master | 2021-06-09T04:17:10.053324 | 2017-01-08T06:36:17 | 2017-01-08T06:36:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | def reverse(n):
exp = 1
while n / 10 ** exp:
exp += 1
return sum((n % 10 ** a / 10 ** (a - 1)) * (10 ** b)
for a, b in zip(xrange(1, exp + 1), xrange(exp - 1, -1, -1)))
| [
"the-zebulan@users.noreply.github.com"
] | the-zebulan@users.noreply.github.com |
c773dac0e7aa554ba9736ce408231ec4f917add8 | 7a2a9dd511ab1e3623b27dc04163d0bab6336bbd | /mapproxy/cache/dummy.py | 4d0235dbf16ce17fe7bb4a430e29f940d32ef039 | [
"BSD-3-Clause",
"Python-2.0",
"Bitstream-Vera",
"MIT",
"ZPL-2.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | DisyInformationssysteme/mapproxy | f96369ff05b4be76b749e6bdff7e4d2fd6d2acbb | 09946c423d3d14a88705cf6e4dd17c330bedf496 | refs/heads/master | 2023-01-23T20:46:05.984071 | 2022-03-22T11:00:28 | 2022-03-22T11:00:28 | 170,381,293 | 1 | 0 | Apache-2.0 | 2023-01-17T18:46:58 | 2019-02-12T19:52:10 | Python | UTF-8 | Python | false | false | 1,064 | py | # This file is part of the MapProxy project.
# Copyright (C) 2011 Omniscale <http://omniscale.de>
#
# 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... | [
"olt@bogosoft.com"
] | olt@bogosoft.com |
f6a8856c98faf582f5aa725044f12145867e488a | 6b5e49b4b644e88b3be88c0425e322af01e8f21a | /taobao/top/api/rest/PictureReplaceRequest.py | 8b26bfcd4072cb85a803e63cee3c7cdb051475a2 | [
"MIT"
] | permissive | CooperLuan/devops.notes | d4fcce0c7e10184f2e894666a3f41b6be800ecbe | 3bcd96d0ebdadc382489406d8c4a34eb7e1c2317 | refs/heads/master | 2016-09-06T06:54:28.558516 | 2015-02-09T11:09:40 | 2015-02-09T11:09:40 | 17,585,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | '''
Created by auto_sdk on 2014-12-17 17:22:51
'''
from top.api.base import RestApi
class PictureReplaceRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.image_data = None
self.picture_id = None
def getapiname(self):
return 'taobao.pi... | [
"gc.suprs@gmail.com"
] | gc.suprs@gmail.com |
40e32dcbbe4f9993eb5059ee8bd59dde0f504d6c | 048f2002ed13503d50428c8949c95a2e4f9bd532 | /contest/weekcontest140/InsufficientNodesRootToLeafPath.py | 981ec500b57284ff72985bc22e1a4d7e76d2d8b5 | [] | no_license | ZhengLiangliang1996/Leetcode_ML_Daily | 9c9330bd2c7bab5964fbd3827a27eeff5bd2c502 | 8cdb97bc7588b96b91b1c550afd84e976c1926e0 | refs/heads/master | 2023-04-06T19:52:23.524186 | 2023-03-30T21:08:57 | 2023-03-30T21:08:57 | 213,055,072 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# vim:fenc=utf-8
#
# Copyright © 2022 liangliang <liangliang@Liangliangs-MacBook-Air.local>
#
# Distributed under terms of the MIT license.
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = ... | [
"zhengliangliang1996@gmail.com"
] | zhengliangliang1996@gmail.com |
a00fbc7db72a07bbbaa19ef1087041f360666341 | 639e58702e8fcf18a03e9ff6c83ef22a01908bc2 | /awsomecv/urls.py | 2262725ca6e4a977d66766ed8eaae748ab771695 | [] | no_license | nabirhossain/MyResume | 0f12d52a0a84f4e1918e386b1b4c27e8053450a2 | f7d5ca8d9c9f043d3f0e0c376e0774aa9c062f62 | refs/heads/master | 2020-04-03T10:53:39.510804 | 2018-11-06T17:15:29 | 2018-11-06T17:15:29 | 155,205,258 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | """awsomecv URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-base... | [
"nabirhossain13@gmail.com"
] | nabirhossain13@gmail.com |
919f023388d4c2bbd7896ba698f05500e20ec3e1 | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/sentry/2015/4/setup.py | 172d1abd7b5f146997339228bd2b3b38c52bf950 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 5,204 | py | #!/usr/bin/env python
"""
Sentry
======
Sentry is a realtime event logging and aggregation platform. It specializes
in monitoring errors and extracting all the information needed to do a proper
post-mortem without any of the hassle of the standard user feedback loop.
Sentry is a Server
------------------
The Sentry ... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
7d8f6e253a4c6ca2d42e2891b96f5606705ca936 | 37d4af0a33d47d6b264acb769a276a500871ab90 | /Zeolite_Ds_Analyze/Py/Cut_box_vi_top_CH4_OSI.py | d035efb3cef020863679b3c60cbd72a06efa580f | [] | no_license | yzjbryant/YZJ_MIX_Code | 86fe3c8a265c69e5493f70b9753491c0f97d75d4 | ab3a7b8731730a714f013f59bbf551d3d50c3b33 | refs/heads/master | 2022-11-09T01:07:48.944817 | 2020-07-01T09:17:01 | 2020-07-01T09:17:01 | 271,439,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,985 | py | import os
import sys
import re
folder_name=['OSI']
folder_next=['1','2','3','4']
ds=[]
ds_line_x=[]
ds_line_y=[]
Number=[]
Number_atom=[]
for i in folder_name:
os.chdir('%s'%i)
#########################################
for j in folder_next[0]:
path='%s'%j
count... | [
"yinzhijian2018@163.com"
] | yinzhijian2018@163.com |
ef51f485e4b30b07df86bc283d53ae55ff1f0ee5 | e37839f9d1979a649957a887d7b7ee2383086c87 | /socket__tcp__examples/send_recv__commands/server.py | cb92829aa23118af1109a70eb979131ea5a2094c | [] | no_license | ev-ev/SimplePyScripts | 874b3475fa5e0c92f25d098e846bafcb9597bd23 | 569e5f076a557d647811c4ede87be27bfbda7d75 | refs/heads/master | 2020-03-30T12:50:22.031733 | 2018-10-03T08:40:13 | 2018-10-03T08:40:13 | 151,243,523 | 0 | 0 | null | 2018-10-02T11:27:40 | 2018-10-02T11:27:39 | null | UTF-8 | Python | false | false | 1,276 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
import socket
import sys
sys.path.append('..')
from common import send_msg, recv_msg
PORT = 9090
def execute_command(command: str) -> str:
if command == 'CURRENT_DATETIME':
import datetime as DT
return DT.datetime.now().... | [
"ilya.petrash@inbox.ru"
] | ilya.petrash@inbox.ru |
beb0c424b3192b05268da94660e60d1b2c487f7a | a7fa51726bae15b197b7bb6829acd5139b6e3073 | /AICommons/aicommons/dataframeutils/DataFrameUtils.py | 295e8d516fcdc461fc00cc9a63b853dbea243a5c | [] | no_license | Rmsharks4/NLPEngine-opensource | ae375dc9ea364de793d78ab1c9d950718a11d54a | 7e384f6e13377723bb651130733a16ed53fe31d1 | refs/heads/master | 2023-02-27T17:45:38.592126 | 2021-02-01T20:59:16 | 2021-02-01T20:59:16 | 209,055,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,068 | py |
import logging
from pyspark.ml.feature import VectorAssembler
from pyspark.ml.feature import VectorIndexer
from pyspark.sql.functions import udf
import pyspark.sql.functions as Functions
from AICommons.aicommons.commonutils.CommonConstants import CommonConstants
from AICommons.aicommons.utils.Constants import Consta... | [
"Github12"
] | Github12 |
dba97abdb3566e188bd1f1c743bcbe7b3a863a17 | d50b8c867bb6f153ee2d9c9021c439feba4f835c | /payments/urls.py | 588c3221e2516ca31fa882246c3211938c04d502 | [] | no_license | gkarumba/Django_Mpesa-API-Integration | 50e6cbce30af9ede0f9c25d52234423bc9df094d | 44a67a22ccef8b423410de537dc3a8d6d0e5a296 | refs/heads/master | 2022-12-13T14:13:26.006078 | 2019-10-23T15:48:19 | 2019-10-23T15:48:19 | 217,094,039 | 0 | 0 | null | 2022-04-22T22:34:39 | 2019-10-23T15:41:11 | Python | UTF-8 | Python | false | false | 801 | py | """payments 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='home')
Class-base... | [
"gachegua@gmail.com"
] | gachegua@gmail.com |
5edde1523623fed2268c8a5bc58b59b1245e7831 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_204/ch49_2020_10_07_01_43_23_311756.py | 7933c1a431594aa0ff9ea85dc2e0e3efe112907a | [] | 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 | 213 | py | def inverte_lista(lista):
i = 0
inicio = len(lista)
while i < inicio:
lista.append(lista[i])
i += 1
i = 0
while i < inicio:
del(lista[i])
i += 1
return lista | [
"you@example.com"
] | you@example.com |
a08b6c334e9c82859a38cd517a2fb0e5396bc1dc | 6adc166c33bdada82f7509301e25d1c451852d24 | /utils/unified_redis.py | d8ae0cadd712490bb38368a9c10d71cabedcdaa8 | [] | no_license | liushiwen555/unified_management_platform_backend | ab0a92f38be7f68bc1d3c4570560ea89bf8fcb07 | ae1ade20044b59de1e29288fcd61ba0b71d92be3 | refs/heads/master | 2023-06-25T22:45:24.669052 | 2021-07-27T01:08:24 | 2021-07-27T01:08:24 | 389,808,950 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,873 | py | from datetime import datetime, timedelta
from typing import List
import json
from dateutil import parser
import redis
from django.conf import settings
from utils.helper import get_date
from utils.runnable import TaskRun
rs = redis.StrictRedis.from_url(settings.REDIS_URL)
cache = redis.StrictRedis.from_... | [
"1599932996@qq.com"
] | 1599932996@qq.com |
f76bd4381b870f841fe52717fd95372e5cf8861a | df541a802b2dfa89d3aab14af627358dc7c76e6e | /APP自动化/App/StoneUIFramework/public/startpage/登录/注册/同意百石堂服务协议/_AgreeProtocol.py | fc48fbbcfacac037fda655a2a93a9efe9b5da264 | [] | no_license | gupan2018/PyAutomation | de966aff91f750c7207c9d3f3dfb488698492342 | 230aebe3eca5799c621673afb647d35a175c74f1 | refs/heads/master | 2021-09-07T19:44:20.710574 | 2017-12-22T15:58:23 | 2017-12-22T15:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | __author__ = 'Administrator'
#同意百石堂服务协议
import logging
from StoneUIFramework.public.startpage.登录.注册._Register import _Register
class _AgreeProtocol(_Register):
#定位:登录-注册-同意百石堂服务协议
def Login_reg_agreeprotocol_back(self):
try:
__Login_reg_agreeprotocol_back = self.driver.find_element_by_id("c... | [
"610077670@qq.com"
] | 610077670@qq.com |
634505e6ef357c0e6cdf1a3d53867cc831dfd3e9 | cb24aa9a8edd9d58fea5e5274712d30a5a39a70f | /Samples/python/VBF_HToInv_M-125_13TeV_powheg-pythia6_Fall13dr-tsg_PU20bx25_POSTLS162_V2-v1_GEN-SIM-RAW_cfi.py | a2f1bc977519838932f3a7a2adfe034e890b1f82 | [] | no_license | joaopela/CMSSW_VBFHToInv | 36b1c7af10bc868c03219111c25f167436f2b7eb | 421310aef87fa0909f1fe7f6c32f39a92e67e4dd | refs/heads/master | 2021-01-17T08:30:16.971952 | 2015-11-23T14:02:09 | 2015-11-23T14:02:09 | 14,692,093 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 34,028 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'/store/mc/Fall13dr/VBF_H... | [
"pela@cern.ch"
] | pela@cern.ch |
44b10d05670debc0c655d97bafa7a0f694508a22 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/keyvault/azure-mgmt-keyvault/generated_samples/list_secrets.py | 92e4e7314ca07e446f1811cb2480fc9d84d2226a | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 1,565 | 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"
] | kurtzeborn.noreply@github.com |
0826f7c443c39e05127adbb7c60b0bdea5e19fe2 | c202845ffd2b4626b7419893faaef681a4936d69 | /chapter13-Exception_Handling/chapter10-Functions/recursive_factorial.py | 624e5c0aee926e9b116230d82fa70cf070da1ad5 | [] | no_license | Avani1992/python | 2e27d80fbb445f4bf50eba66cf2b836ae2fc6dfe | 57073842e1049e975cad4a92f979fe9faa261682 | refs/heads/master | 2020-06-13T23:51:20.262407 | 2020-03-05T16:32:40 | 2020-03-05T16:32:40 | 194,827,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | # def factorial(n):
# if n==0:
# result=1
# else:
# result=n*factorial(n-1)
# return result
# print("Factorial of 4 is :",factorial(4))
# print("Factorial of 5 is :",factorial(5))
def fa(n):
if(n==0 or n==1):
return 1
else:
return n*fa(n-1)
p=fa(5)
print(p) | [
"noreply@github.com"
] | Avani1992.noreply@github.com |
3dd682ff1288cc5cc8f985f90a7e73f5af0c0843 | aa853a9094fff4b6e9b0ddc7469be29ad5f0f811 | /poi_bol_base/models/sale.py | 935e041aa90930f8f2b3839c32dc5148c80371ee | [] | no_license | blue-connect/illuminati | 40a13e1ebeaceee39f17caa360f79e8deeaebf58 | 6682e60630064641474ddb2d8cbc520e30f64832 | refs/heads/master | 2022-01-06T00:55:58.465611 | 2018-11-24T04:30:03 | 2018-11-24T04:30:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | # -*- encoding: utf-8 -*-
from odoo import models, api, fields, registry, _
import logging
_logger = logging.getLogger(__name__)
class SaleOrder(models.Model):
_inherit = 'sale.order'
contract_nr = fields.Char(u'Nr. de contrato', help=u"El número de contrato registrado para fines de Bancarización.")
@... | [
"yori.quisbert@poiesisconsulting.com"
] | yori.quisbert@poiesisconsulting.com |
9f2e16f30d51dac9e7ae1bd01ac159b14ac61a14 | 55540f3e86f1d5d86ef6b5d295a63518e274efe3 | /toolchain/riscv/MSYS/python/Lib/multiprocessing/popen_fork.py | eef12651097d4bf495dbd1932673d44dbaa0e6ba | [
"Apache-2.0",
"bzip2-1.0.6",
"LicenseRef-scancode-proprietary-license",
"OpenSSL",
"Python-2.0",
"LicenseRef-scancode-newlib-historical",
"TCL",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | bouffalolab/bl_iot_sdk | bc5eaf036b70f8c65dd389439062b169f8d09daa | b90664de0bd4c1897a9f1f5d9e360a9631d38b34 | refs/heads/master | 2023-08-31T03:38:03.369853 | 2023-08-16T08:50:33 | 2023-08-18T09:13:27 | 307,347,250 | 244 | 101 | Apache-2.0 | 2023-08-28T06:29:02 | 2020-10-26T11:16:30 | C | UTF-8 | Python | false | false | 2,478 | py | import os
import sys
import signal
from . import util
__all__ = ['Popen']
#
# Start child process using fork
#
class Popen(object):
method = 'fork'
def __init__(self, process_obj):
util._flush_std_streams()
self.returncode = None
self.finalizer = None
self... | [
"jczhang@bouffalolab.com"
] | jczhang@bouffalolab.com |
cbdaaabf2214fc441d4bdda29c1864bf3e1631f7 | c0cd6013a19b0e886d487ec3f7d804c54983382f | /jsk_data/scripts/jsk_data | 1806590ab519d4246aee440df7737eb076c63c45 | [] | no_license | jsk-ros-pkg/jsk_common | 84ad8cd40d54e0c8b8583b4d77769b60175ac347 | feee1a5a4330bbdf23b98b131f8b5080724237ce | refs/heads/master | 2023-06-11T05:12:59.045863 | 2023-05-28T05:21:18 | 2023-05-28T05:21:18 | 17,374,588 | 47 | 70 | null | 2023-08-31T06:02:13 | 2014-03-03T17:58:29 | Python | UTF-8 | Python | false | false | 125 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import jsk_data.cli
if __name__ == '__main__':
jsk_data.cli.cli(obj={})
| [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com | |
77af370cc505a6c31d0a873e52c69766b07a84af | b09882de7b5836ddbf843a59fb6971909c805d75 | /terminal_pagination/__init__.py | b3cfda12314873333218fce447eca3f33aa89863 | [
"MIT"
] | permissive | OrderAndCh4oS/Terminal-Pagination | 37f24b94ec6a5604b35b285fa7ece630ced663aa | 2c2cda2d863bf7b78f3111b6e63d621ecd5b9d71 | refs/heads/master | 2022-03-29T22:04:03.631322 | 2019-10-20T13:26:32 | 2019-10-20T13:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | from .terminal_pagination import Pagination
| [
"sarcoma@live.co.uk"
] | sarcoma@live.co.uk |
65e9bd0d2e2443ccf25b0d458a192c40e869abbf | 0c66e605e6e4129b09ea14dbb6aa353d18aaa027 | /diventi/products/migrations/0015_auto_20190411_0806.py | f80dc93b05fe628aa396876c3ad8e87a6576cc1f | [
"Apache-2.0"
] | permissive | flavoi/diventi | 58fbc8c947f387cbcc1ce607878a59a6f2b72313 | c0b1efe2baa3ff816d6ee9a8e86623f297973ded | refs/heads/master | 2023-07-20T09:32:35.897661 | 2023-07-11T19:44:26 | 2023-07-11T19:44:26 | 102,959,477 | 2 | 1 | Apache-2.0 | 2023-02-08T01:03:17 | 2017-09-09T14:10:51 | Python | UTF-8 | Python | false | false | 1,132 | py | # Generated by Django 2.1.7 on 2019-04-11 06:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0014_auto_20190120_1049'),
]
operations = [
migrations.AlterField(
model_name='chapter',
name='image',
... | [
"flavius476@gmail.com"
] | flavius476@gmail.com |
7771a48e18082b4d6becc212a61c1565e522064a | 0a961f6081a0fa6f6d4b5659cd0942a1f9def9bb | /clock27.py | 5e65431c473ff1be50fbdfb04c965f6c1ef35bec | [
"MIT"
] | permissive | notro/pydrm | c1902154a7764f7cbace3ed1e7870d11bd6e6836 | ce0b0888c35d56017641c9f7c5f966bf7461552e | refs/heads/master | 2021-01-20T00:37:13.519484 | 2021-01-17T20:26:32 | 2021-01-17T20:26:32 | 89,163,102 | 19 | 4 | MIT | 2023-09-08T06:59:47 | 2017-04-23T18:26:52 | Python | UTF-8 | Python | false | false | 5,460 | py | # Copyright 2013-2015 Pervasive Displays, 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 the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | [
"noralf@tronnes.org"
] | noralf@tronnes.org |
d8ae9d08285d44918f5e8d0d607fd563164d3cf0 | 89c4a43a505df8fdf1f0d7386988c4896c2e631b | /google/ads/googleads/v6/services/services/feed_item_target_service/transports/grpc.py | e3ec3e7cb6c7a7cb16d993fc31c6508ae66417d5 | [
"Apache-2.0"
] | permissive | hurricanelennane/google-ads-python | a0a1fed690776a8bb2e81f637eb7eae10fb4992f | 310a488b6fdad9d5beea8fa4b166edce779a2511 | refs/heads/master | 2023-07-04T03:07:53.344466 | 2021-07-16T19:06:36 | 2021-07-16T19:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,581 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"noreply@github.com"
] | hurricanelennane.noreply@github.com |
96e008e8da87145663660f1d0e836d6bc2f110db | ffd5e689f88c49ab7af3554c22dc0c36301084fa | /string_array_duplicates.py | 7337f320c9bb027e8c16287dd45bc8d854398389 | [] | no_license | ellismckenzielee/codewars-python | 1710e6f0499047139479de386927c7dbd5f1cdf6 | af3f4b4534798a58115d0565730aae28ce87437e | refs/heads/master | 2023-08-09T13:38:40.964141 | 2023-08-01T14:45:22 | 2023-08-01T14:45:22 | 168,981,376 | 45 | 18 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | #string array duplicates kata
#https://www.codewars.com/kata/59f08f89a5e129c543000069
import re
def dup(arry):
output = []
for arr in arry:
letters = re.findall("([\\w\\d])\\1*", arr)
output.append(''.join(letters))
return output
| [
"ellismckenzielee@gmail.com"
] | ellismckenzielee@gmail.com |
564a5d0fd457d36f0fbe6c221cd903447001cdd9 | 66ac60b1b02583f4f9c0156bbcf00ff59454d051 | /dataplicity/m2m/__init__.py | 5f78543b2fe7c413882d1f5f4b76fd79c8dbf93c | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | 355731090990871/dataplicity-agent | ac4fa26edc225d86aaefc6f7bfdb31d6610a55bd | 6470855da96f436e3f1f606c47334d1088b10cdd | refs/heads/master | 2020-12-11T21:28:01.886310 | 2020-01-15T00:34:13 | 2020-01-15T00:34:13 | 233,963,905 | 0 | 0 | NOASSERTION | 2020-01-15T00:31:42 | 2020-01-15T00:31:42 | null | UTF-8 | Python | false | false | 67 | py | from .echoservice import EchoService
from .wsclient import WSClient | [
"willmcgugan@gmail.com"
] | willmcgugan@gmail.com |
63f14240eaf87d1de8b52d5bc1839176f40dd74a | b6b2be9866fd16699ad5c30a21bbcb70755f1e57 | /Experiments/_Legacy/GlobalWarming/Codes_ClassifyUsingLDA_WithLsaValues.py | 01e7a2e6f86846a173ad49fbdcdf60d72fcbdc42 | [] | no_license | simonhughes22/PythonNlpResearch | 24a482c7036c568b063ec099176b393d45a0a86b | 2bc2914ce93fcef6dbd26f8097eec20b7d0e476d | refs/heads/master | 2022-12-08T17:39:18.332177 | 2019-10-26T12:48:33 | 2019-10-26T12:48:33 | 16,458,105 | 17 | 7 | null | 2022-12-07T23:38:17 | 2014-02-02T16:36:39 | Jupyter Notebook | UTF-8 | Python | false | false | 1,081 | py | from sklearn.lda import LDA
from GwExperimentBase import *
import numpy as np
class Codes_ClassifyUsingLDA_WithLSAValues(GwExperimentBase):
def __init__(self):
self.num_topics = 500
pass #no params
def get_vector_space(self, tokenized_docs):
return self.lsa_vspace(toke... | [
"simon.hughes@dice.com"
] | simon.hughes@dice.com |
c40cce5d9de261bea3f79dff70e537e05deb73eb | 3ea99519e25ec1bb605947a94b7a5ceb79b2870a | /modern_python/modernpython/lib/python3.6/site-packages/mypy/semanal_pass3.py | b807d7b20c81ae7eccfdfa89d4c180418a2435d1 | [] | no_license | tech-cow/spazzatura | 437c7502a0654a3d3db2fd1e96ce2e3e506243c0 | 45fc0932186d2ef0c5044745a23507a692cfcc26 | refs/heads/master | 2022-09-01T12:01:11.309768 | 2018-11-15T04:32:03 | 2018-11-15T04:32:03 | 130,414,653 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,773 | py | """The semantic analyzer pass 3.
This pass checks that type argument counts are valid; for example, it
will reject Dict[int]. We don't do this in the second pass, since we
infer the type argument counts of classes during this pass, and it is
possible to refer to classes defined later in a file, which would not
... | [
"yuzhoujr@yuzhou-7480.internal.synopsys.com"
] | yuzhoujr@yuzhou-7480.internal.synopsys.com |
9c4af92f6100e08126b3a0fe1df8db8f17daffb8 | 94c8dd4126da6e9fe9acb2d1769e1c24abe195d3 | /qiskit/utils/name_unnamed_args.py | bf3c626a0071d6ec1b279dd9182b69e80e7f53ea | [
"Apache-2.0"
] | permissive | levbishop/qiskit-terra | a75c2f96586768c12b51a117f9ccb7398b52843d | 98130dd6158d1f1474e44dd5aeacbc619174ad63 | refs/heads/master | 2023-07-19T19:00:53.483204 | 2021-04-20T16:30:16 | 2021-04-20T16:30:16 | 181,052,828 | 1 | 0 | Apache-2.0 | 2019-06-05T15:32:13 | 2019-04-12T17:20:54 | Python | UTF-8 | Python | false | false | 2,516 | py | # This code is part of Qiskit.
#
# (C) Copyright IBM 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 derivative wo... | [
"noreply@github.com"
] | levbishop.noreply@github.com |
e7fa5d3a91ab57260a3c4ed8b784d5564d4d4b88 | 99dcb18a9e3ea367272f740b8cbf3c34285a0c08 | /samples/generated_samples/aiplatform_generated_aiplatform_v1beta1_tensorboard_service_batch_read_tensorboard_time_series_data_sync.py | a90b7a75b27dcea48608e69026cfd35a1d4843de | [
"Apache-2.0"
] | permissive | googleapis/python-aiplatform | 926a4873f35dbea15b2fd86c0e16b5e6556d803e | 76b95b92c1d3b87c72d754d8c02b1bca652b9a27 | refs/heads/main | 2023-08-19T23:49:02.180075 | 2023-08-19T13:25:59 | 2023-08-19T13:27:27 | 298,017,988 | 418 | 240 | Apache-2.0 | 2023-09-14T21:08:33 | 2020-09-23T15:43:39 | Python | UTF-8 | Python | false | false | 1,736 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
970d208171838b7ab1292ae0324dc079caedc08b | e196fe807b2720eb7f08ad9ca914887341bd9b44 | /tests/utils/test_formatter.py | 4fdc3fedda7e73b841b4cef8f4b846910360b93b | [
"BSD-2-Clause"
] | permissive | streamlink/streamlink | ab2ce4a8d71d2abd67f300628f04ce960e7696d0 | 561f7ef854e3ec076e5bd3efb3e7f8efe5df32df | refs/heads/master | 2023-08-29T15:03:17.008502 | 2023-08-26T19:24:39 | 2023-08-27T11:02:30 | 68,402,336 | 9,529 | 1,385 | BSD-2-Clause | 2023-09-13T13:37:33 | 2016-09-16T17:52:50 | Python | UTF-8 | Python | false | false | 3,050 | py | from datetime import datetime, timezone
from unittest.mock import Mock, patch
import pytest
from freezegun import freeze_time
from streamlink.utils.formatter import Formatter
class TestFormatter:
class Obj:
def __str__(self):
return "obj"
@pytest.fixture()
def prop(self):
re... | [
"gravyboat@users.noreply.github.com"
] | gravyboat@users.noreply.github.com |
f3b552e76e63e591f12fa81afca5b1985d1691d8 | e8cac4db53b22a28f7421ede9089bd3d4df81c82 | /TaobaoSdk/Domain/NotifyItem.py | 0d5cf00043ff780335ed8c340546e27b9dd289ce | [] | no_license | wangyu0248/TaobaoOpenPythonSDK | af14e84e2bada920b1e9b75cb12d9c9a15a5a1bd | 814efaf6e681c6112976c58ec457c46d58bcc95f | refs/heads/master | 2021-01-19T05:29:07.234794 | 2012-06-21T09:31:27 | 2012-06-21T09:31:27 | 4,738,026 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,472 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 增量API
# @author wuliang@maimiaotech.com
# @date 2012-06-09 16:55:43
# @version: 0.0.16
from datetime import datetime
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.rea... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
c76c2a2c1994fefc80c80efe57e44435653cec3f | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/0e43c60510dcee3c1d958aa1b32f44382ac8802a544db441c1a1497058a65071/cython_runtime.py | 497c1b1ec4525e11ea049cea2d36f2a104beccf9 | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | # encoding: utf-8
# module cython_runtime
# from C:\Users\Doly\Anaconda3\lib\site-packages\skimage\restoration\_unwrap_1d.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
cline_in_traceback = False
__loader__ = None
__spec__ = None
# no functions
# no classes
| [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
b87963b56d149b7b1c204b9a3f941a6943c1667e | b31677f2bebe9b18d5909f1385508696a78763c0 | /app_user/controller.py | 1d92f67172c97c72191b63906d9840f7d37b7560 | [
"BSD-3-Clause"
] | permissive | Slajnef/bottle_restfool | 73f6d32cecdd46d1e3230258798a71648db8360e | 368e19e543ecf974a4b08fb5846a655a4e9ffcc5 | refs/heads/master | 2021-02-23T17:28:43.329611 | 2020-03-06T11:33:29 | 2020-03-06T11:33:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | "ICECREAM"
from bottle import HTTPResponse, HTTPError
from marshmallow import ValidationError
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.orm.exc import NoResultFound
from ICECREAM.models.query import get_or_create
from app_foo.controller import get_rooms
from app_foo.schemas import RoomSchema
from app_... | [
"xenups@outlook.com"
] | xenups@outlook.com |
fa8fd5359f0820cf3a5c8c418ed12b8046c26b71 | 9ca7ee115fd815afff0a46e5b21e56298ee294e3 | /base/models/learning_unit.py | 0f6e52e6e7491bd6fa803b50a979e4fb4f40704c | [] | no_license | dgrevesse/osis-portal | 471c8cd3964158e35b1e19b3edd1e42414a3e1ac | 25cc6c9afac3cb566e8d6b7046fe28519da83a68 | refs/heads/master | 2021-01-23T07:50:32.536548 | 2017-01-31T02:31:28 | 2017-01-31T02:31:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,332 | py | ##############################################################################
#
# OSIS stands for Open Student Information System. It's an application
# designed to manage the core business of higher education institutions,
# such as universities, faculties, institutes and professional schools.
# The core ... | [
"leila.verpoorten@uclouvain.be"
] | leila.verpoorten@uclouvain.be |
6fd17d6db008a6f9ac9baa2bedc92c6377c24739 | 1825283527f5a479204708feeaf55f4ab6d1290b | /leetcode/python/1099/original/1099.two-sum-less-than-k.py | 0ff600dfa59253ed88c15a9332f082b1dcf62caa | [] | no_license | frankieliu/problems | b82c61d3328ffcc1da2cbc95712563355f5d44b5 | 911c6622448a4be041834bcab25051dd0f9209b2 | refs/heads/master | 2023-01-06T14:41:58.044871 | 2019-11-24T03:47:22 | 2019-11-24T03:47:22 | 115,065,956 | 1 | 0 | null | 2023-01-04T07:25:52 | 2017-12-22T02:06:57 | HTML | UTF-8 | Python | false | false | 1,027 | py | #
# @lc app=leetcode id=1099 lang=python
#
# [1099] Two Sum Less Than K
#
# https://leetcode.com/problems/two-sum-less-than-k/description/
#
# algorithms
# Easy (65.32%)
# Total Accepted: 1.7K
# Total Submissions: 2.6K
# Testcase Example: '[34,23,1,24,75,33,54,8]\n60'
#
# Given an array A of integers and integer K,... | [
"frankie.y.liu@gmail.com"
] | frankie.y.liu@gmail.com |
3bb3e01517f0ab5bcab4a6945ecd701b04485d11 | 3bcfea7d09890e9818f97d32ebc5b748ff6603f0 | /remo/dashboard/tests/test_views.py | 267a1097f5d036121f0402553a51ec00131199f1 | [] | no_license | psvramaraju/remo | d81c220d603512f6fc32d84b300e22b9dd8ea0c0 | f4c732210f76ae5bf0ebf2f7eb4b091c2a8ff237 | refs/heads/master | 2021-01-14T12:31:42.086700 | 2014-09-26T09:28:43 | 2014-09-26T09:28:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,289 | py |
from datetime import timedelta
from django.conf import settings
from django.contrib.auth.models import User
from django.core import mail
from django.core.urlresolvers import reverse
from django.test.client import Client
from django.utils.timezone import now
from funfactory.helpers import urlparams
from nose.tools im... | [
"akatsoulas@gmail.com"
] | akatsoulas@gmail.com |
d06448cc58b1580c5a617b94d39059bc53b3d2e1 | 8729907a13ecaae51699429702e354b64b2e5bd7 | /src/sentry/api/urls.py | 2574e85901e4286975d9ef5210f48b24e77f0685 | [
"BSD-2-Clause"
] | permissive | Simek/sentry | 172b70bd1726adb0490306ecff1dd35e4ba534a6 | c07aa863da7f0cdb13404ac09cd8580e74dc2af1 | refs/heads/master | 2022-08-29T13:24:11.972998 | 2014-12-18T09:27:12 | 2014-12-18T09:27:12 | 8,397,149 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,594 | py | from __future__ import absolute_import
from django.conf.urls import patterns, url
from .endpoints.auth_index import AuthIndexEndpoint
from .endpoints.catchall import CatchallEndpoint
from .endpoints.event_details import EventDetailsEndpoint
from .endpoints.group_assign import GroupAssignEndpoint
from .endpoints.group... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
9d65533988de45a74b42d834333e13777142e62b | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.11.20/7/1569575930.py | b473ab93153939c57c79d867f2c9dc41c387d313 | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import functools
import typing
import string
import random
import pytest
## Lösung Teil 1.
def divisior(n: int) -> list:
"""Eine Funktion, die alle Dividenten einer positiven,
ganzen Zahl in einer Liste wiedergibt
"""
j = [n]
for d in range(1:(n+1)): #loop bis n
d > 0
if abs(n) % in... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
9add521619136af610484ccfd6a8051ccb7cf07d | ca847767d0b4e1be083b01da676095aa6709c3d5 | /MobileHealthWeb/accounts/migrations/0003_auto_20170319_1942.py | b4111087da7d9c55375d21d4f80512b51373218b | [
"CC0-1.0"
] | permissive | cesarbcruz/ProjectMobileHealth | 266bdebfbb83590942a661400a13852fb5be1b4e | 288da77e4e287b228e1a3b17758542742c089a53 | refs/heads/master | 2020-05-26T13:34:38.824364 | 2017-07-26T00:42:08 | 2017-07-26T00:42:08 | 82,479,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2017-03-19 22:42
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_user_img_url'),
]
operations = [
... | [
"you@example.com"
] | you@example.com |
88fcacec9b58f91730868596ed68b9777f0f5450 | 9df55c5296f3cf94613278c123b7cb4586057eea | /src/command_modules/azure-cli-monitor/azure/cli/command_modules/monitor/util.py | e5bdb7a2bcbaae1b5b7008c6bacb013f64d3efb6 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | m1ck2/azure-cli | fa820dcf78821d27e6739ffa064626c23e77c2e9 | 06cd9c2160c2f792a3af76f71fb55368c92cf0d6 | refs/heads/dev | 2021-05-07T03:29:21.092812 | 2017-11-15T21:09:06 | 2017-11-15T21:09:06 | 110,912,276 | 0 | 0 | null | 2017-11-16T02:26:06 | 2017-11-16T02:26:05 | null | UTF-8 | Python | false | false | 659 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"troy.dai@outlook.com"
] | troy.dai@outlook.com |
a5f22328f221f92c2a7ecb2ebdea7784b3ab63e1 | a730e6c54cd99beb00fe7b9c08ff92c5e1800bbf | /libretto/tests/api/models/__init__.py | c0a2f0db66051846a2ba0f1a6c8e697336f574ba | [
"BSD-3-Clause"
] | permissive | pombredanne/dezede | 3d2f4b7bdd9163ae1c0b92593bbd5fae71d1cd91 | 22756da8f949e28b9d789936d58eabe813ef4278 | refs/heads/master | 2021-01-17T15:29:30.382243 | 2013-11-09T17:35:42 | 2013-11-09T17:35:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from .utils import UpdateOrCreateTestCase
| [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
c0f916e5ecf3c2b3b7d14af1f38fdb031b019af1 | 16385e10f6ad05b8147517daf2f40dbdda02617c | /site-packages/cs.vp-15.5.0.12-py2.7.egg/cs/vp/classification/__init__.py | 1aba19d195d0f5b795ac3fe531827c7e8821ac97 | [] | no_license | prachipainuly-rbei/devops-poc | 308d6cab02c14ffd23a0998ff88d9ed0420f513a | 6bc932c67bc8d93b873838ae6d9fb8d33c72234d | refs/heads/master | 2020-04-18T01:26:10.152844 | 2019-02-01T12:25:19 | 2019-02-01T12:25:19 | 167,118,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,051 | py | #!/usr/bin/env python
# -*- python -*- coding: iso-8859-1 -*-
#
# Copyright (C) 1990 - 2012 CONTACT Software GmbH
# All rights reserved.
# http://www.contact.de/
#
__docformat__ = "restructuredtext en"
__revision__ = "$Id: __init__.py 137551 2016-02-22 16:15:56Z gda $"
from cdb import ue
from cdb import sqlapi
from c... | [
"PPR4COB@rbeigcn.com"
] | PPR4COB@rbeigcn.com |
239335c5513a0048f69334183a7e0152f287b4ef | e6590826c10648c472743c20b898655ec0ef3ce5 | /8.5.py | 9a29933b077967a3a908341a6ee426099c4b1768 | [] | no_license | suddencode/pythontutor_2018 | a770fbf476af049dc8f04c8b0f81cce7922a63c4 | 767cdd0d980be290a613ebda455a49daad1a7902 | refs/heads/master | 2020-03-24T00:15:07.744889 | 2019-02-11T20:17:42 | 2019-02-11T20:17:42 | 142,281,968 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | def reverse():
x = int(input())
if x != 0:
reverse()
print(x)
reverse() | [
"noreply@github.com"
] | suddencode.noreply@github.com |
028dbe555bfe7c2cd52740c9269f32c75388a74b | 7a6e0c036079f2e48622b1f698690f8711c87143 | /runs/batchshipyard/snake/3d/2k35-meshA/scripts/average-wz.py | babe49a2a0d5b491d4e266dfcec4029df76fe1fa | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | mesnardo/FlyingSnake2Cloud | 76265f2725001ce99d03632b7902efca38af2235 | c76d83226327476a17ba244040cc6338a4dbe022 | refs/heads/master | 2021-01-19T20:33:50.698739 | 2018-05-14T16:30:55 | 2018-05-14T16:30:55 | 101,227,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,892 | py | """
Average the spanwise vorticity field along the spanwise direction and write the
2D field values into HDF5 file.
"""
import pathlib
import numpy
import h5py
def read_grid3d_hdf5(filepath):
f = h5py.File(str(filepath), 'r')
x, y, z = f['x'][:], f['y'][:], f['z'][:]
f.close()
return x, y, z
def write_grid... | [
"mesnardo@gwu.edu"
] | mesnardo@gwu.edu |
6902885a4f142161a0d522c04b24b050145894c2 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/67/usersdata/227/35699/submittedfiles/imc.py | 97fe9c020fc0ef50bd290ee682eb50afafe24c07 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | # -*- coding: utf-8 -*-
p=float(input('digite a altura:'))
a=float(input('digite o peso:'))
imc=p/(a**2)
if imc<20:
print('abaixo')
if 20<=imc<=25:
print('normal')
if 25<imc<=30 :
print('sobre peso')
if 30<imc<=40:
print('obesidade')
if imc>40
print('obesidade grave')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b2af0e6b513af6becd4c701575b8da74fd834fb9 | bfd6ac084fcc08040b94d310e6a91d5d804141de | /PulseSequences2/subsequences/Rotation.py | 3b1089baaeb47610ad771272f2532b2ca7d4c9ed | [] | no_license | jqwang17/HaeffnerLabLattice | 3b1cba747b8b62cada4467a4ea041119a7a68bfa | 03d5bedf64cf63efac457f90b189daada47ff535 | refs/heads/master | 2020-12-07T20:23:32.251900 | 2019-11-11T19:26:41 | 2019-11-11T19:26:41 | 232,792,450 | 1 | 0 | null | 2020-01-09T11:23:28 | 2020-01-09T11:23:27 | null | UTF-8 | Python | false | false | 1,198 | py | from common.devel.bum.sequences.pulse_sequence import pulse_sequence
import numpy as np
from labrad.units import WithUnit
class Rotation(pulse_sequence):
'''
729 rotation with controlled phase and angle
'''
def sequence(self):
#this hack will be not needed with the new dds parsing metho... | [
"haeffnerlab@gmail.com"
] | haeffnerlab@gmail.com |
47216b2f2997a32716446db8cf3a69b9fd26bf54 | a9d78a8d71de9b4c247e3c87766e3ecd308d8d30 | /class_based_api_view/class_based_api_view/settings.py | aee461a1a7490561baa36e3d2c6f97fad663a241 | [] | no_license | vineetkashyap/All-REST-API-CODE | ddbf49f96cd0065f91f5f4687f8a61fb7254a5d8 | 6a63cb3244f792e1e3ee8acac544251e84aaa5e5 | refs/heads/master | 2023-03-28T15:40:39.059696 | 2021-03-23T11:42:29 | 2021-03-23T11:42:29 | 347,968,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,163 | py | """
Django settings for class_based_api_view project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
... | [
"vkvineet66@gmail.com"
] | vkvineet66@gmail.com |
77461f0647b2c2bdf802913304711c9dc16dcd6a | 683876019cad0b0d562ac7f9da8c679cb310cfb2 | /2021/day10/part2.py | f4c9d01ff00f3c24ad8b6328994deb6c42aad4bc | [] | no_license | CoachEd/advent-of-code | d028bc8c21235361ad31ea55922625adf743b5c8 | 10850d5d477c0946ef73756bfeb3a6db241cc4b2 | refs/heads/master | 2023-05-11T05:20:26.951224 | 2023-05-09T18:54:16 | 2023-05-09T18:54:16 | 160,375,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | # part 2
"""
AoC
"""
import time
import sys
from copy import copy, deepcopy
import math
def hasl(s):
if '(' in s or '[' in s or '{' in s or '<' in s:
return True
return False
def hasr(s):
if ')' in s or ']' in s or '}' in s or '>' in s:
return True
return False
def getr(s):
for c in s:
if c i... | [
"CoachEd@gmail.com"
] | CoachEd@gmail.com |
f79f14e7ef9346a1a7207371bdda31335f79eb41 | 62c4892391e18161b676ef37d1aa81b11656eef2 | /theanolm/training/adagradoptimizer.py | 0fc1ca559c876471e4f8d37440a1007e0d09d2a4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | DemoVersion/theanolm | a7619e17bc1aea4ab84b97a4e83ae7896040d577 | 3eee0e7445d14b6114c4fa73dff54a15b5ab09aa | refs/heads/master | 2021-01-20T13:55:55.823957 | 2017-04-28T15:39:57 | 2017-04-28T15:39:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,881 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import numpy
import theano.tensor as tensor
from theanolm import Parameters
from theanolm.training.basicoptimizer import BasicOptimizer
class AdaGradOptimizer(BasicOptimizer):
"""AdaGrad Optimization Method
AdaGrad is a simple extension of Stochastic Gradient De... | [
"seppo.git@marjaniemi.com"
] | seppo.git@marjaniemi.com |
629f7be6575902e40a538a346994f03976330ff1 | eb3683f9127befb9ef96d8eb801206cf7b84d6a7 | /testing/test_programs/without_classes/operators/stypy_test_files/error_operators_none__type_annotation.py | d5f64802fac2bb03cc9b10d5c699459912df801c | [] | no_license | ComputationalReflection/stypy | 61ec27333a12f76ac055d13f8969d3e0de172f88 | be66ae846c82ac40ba7b48f9880d6e3990681a5b | refs/heads/master | 2021-05-13T18:24:29.005894 | 2018-06-14T15:42:50 | 2018-06-14T15:42:50 | 116,855,812 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py |
# none1: NoneType
none1 = None
# a: TypeError
a = (4 + none1)
# b: TypeError
b = (4 + None) | [
"redondojose@uniovi.es"
] | redondojose@uniovi.es |
60770e7c1429cd10c0565c41963c45f5a90a4743 | 213749a9598cf20ca26eb2cb3e6f559c4b5639a3 | /files_p.py | 8c6eef0046e4c925a3c157e12365c85dc74031e2 | [] | no_license | VladyslavHnatchenko/theory_python | c605d386d93858ffe85f2112cd0ae388ba92acc5 | 36e9a448104a9363adfa34101365f9189b7973f2 | refs/heads/master | 2020-07-13T15:46:35.595667 | 2019-09-17T13:50:42 | 2019-09-17T13:50:42 | 205,108,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | """Works with files in python."""
l_ = ["tree", "four"]
f2 = open("data.txt", "w")
f2.write("one")
f2.write("two")
f2.writelines(l_)
f2.close()
print(f2.closed)
f3 = open("data.txt")
print(f3.read())
# f1 = open("data.txt")
#
# for i in open("data.txt"):
# print(i)
# print(f1.readlines())
# print(f1.read(10)... | [
"hnatchenko.vladyslav@gmail.com"
] | hnatchenko.vladyslav@gmail.com |
a016df252a66a8b844ef81de167e24cecf76c7d8 | a2c02fb5dd11e1fb7d0faefaaa4929f40d12cfdf | /kelp2grid_kit4_kelp_1.py | ef4ec8a15453cf601eb56ad510eb245a3028cffa | [] | no_license | iwenfeng/workspace_python | 2c5486f6e77e13a8fd4d516c6743c2794d062a87 | 392d8e1f953baefe5ed51028636355c67dc5df62 | refs/heads/master | 2020-12-03T23:11:31.949332 | 2019-11-12T16:52:21 | 2019-11-12T16:52:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,271 | py | # -*- coding: utf-8 -*-
"""
Front Matter
=============
Created on
Author: Mitchell O'Flaherty-Sproul
Requirements
===================================
Absolutely Necessary:
* Numpy
* SciPy
* Matplotlib
Optional, but recommended:
Functions
=========
"""
#load modules
import numpy as np
import scipy.io as sio
imp... | [
"073208o@acadiau.ca"
] | 073208o@acadiau.ca |
4daedfaeebd66291ec3fc5a64670b256968c5353 | 6c3c3fe232f52f39f4dcc2c7dae0f59ec4914f63 | /STAR/STAR_1.6.py | 7b751e108c6b55f001782c1ef37a7406e35820ce | [] | no_license | rtreharne/python | 3669f5def4b54e29d8565b27e33d0f32cdc314fd | 575d6275c9b73666c11bcb69185a02c8afb7a8fb | refs/heads/master | 2016-09-05T23:03:20.068985 | 2015-01-28T16:56:20 | 2015-01-28T16:56:20 | 29,601,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,003 | py | #!/usr/bin/env python
""" -------------------------------------------------------------------------
STAR_1.6
This script allows the user to build a multi-layer structure by importing material n and k data. The transfer matrix is then used to calculate T and R. A slider permits the user to change the thickness of each ... | [
"R.Treharne@liverpool.ac.uk"
] | R.Treharne@liverpool.ac.uk |
fc4f879e0fafb9c030facd878e990d23cc16050f | abe52a485b72b6bc54c3ce260a3e4e5fc8a2504f | /d20200811/4_Game01.py | d17e0ade0afe02033efe48ebc628db36319f4067 | [] | no_license | soli1101/python_workspace | e920b9589cd1a6a5ef064720400d44a6309249d9 | 607c7693bdf013fedf193d45de32aac6d48409a0 | refs/heads/master | 2022-12-26T16:19:32.413709 | 2020-09-29T08:59:20 | 2020-09-29T08:59:20 | 299,560,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | import pygame
import random
# [0] 기본설정
pygame.init()
screen_width=1200
scree_height=800
screen=pygame.display.set_mode((screen_width,scree_height))
pygame.display.set_caption("핑퐁")
# [2-1] ball 움직임 주기
''' bx,by를 변수로 주고 그 값을 random값으로 준다'''
bx = 580
by = 700
inc_x = random.randint(-10,10)
inc_y = random.randint(-10,1... | [
"soli1101@naver.com"
] | soli1101@naver.com |
fbbfecfcb06ba44e3cacfc6bc8a13904355db17c | def27d5864764b877b6786835ec97f2bd74c6ba8 | /hard/LongestConsecutiveSequence.py | e8d4fe85c98d89340f42e35ce31c34f3ab55d455 | [] | no_license | bolan2014/leetcode | f6cf38a49a9250abeb36543ea2498062c58e811d | 1c35fde3a65c4f216218f459736d4c39a29980d5 | refs/heads/master | 2021-04-09T16:59:41.494568 | 2017-05-10T03:47:14 | 2017-05-10T03:47:14 | 46,648,353 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | '''
decide whether the difference between index and value is equal or not
'''
class Solution(object):
def longestConsecutive(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums = list(set(nums))
nums.sort()
cnt = rst = 1
for i in range(len(nums)-1):
if nums[i] - i == nums[i+1] - i - 1:
cnt += 1
... | [
"1139217488@qq.com"
] | 1139217488@qq.com |
262967c7c1ef310b40cf81128be1edd4157dca8c | 25404f4cfb9be3e6f1b3fe31a1554459eb200813 | /my_itertools/common_class/stop_in_shortest/ifiterfalse.py | e2e70b72680bb154e7c926928d34f7c474f75129 | [] | no_license | nightimero/annal_report_test | 1c6eb4b71482f870c753f5084212afd071929f57 | 7bbc76ba703527ba8f4b84fbdb94fd57b37b9887 | refs/heads/master | 2021-09-06T21:18:59.534963 | 2018-02-11T15:31:21 | 2018-02-11T15:31:21 | 103,259,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | # -*- coding:utf-8 -*-
from itertools import ifilterfalse
# ifilterfalse(pred, seq)
# ifilter的相反版本。
ifilterfalse(lambda x: x % 2, range(10)) # --> 0 2 4 6 8
for y in ifilterfalse(lambda x: x % 2, range(10)):
print y
| [
"chenxiang@aiknown.com"
] | chenxiang@aiknown.com |
63d785ac899b01a03537b0df7d14ab7ed3691955 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_noisy110.py | f9ed07b39ba5e4403afedd0ccb04cb64992c545d | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | # qubit number=3
# total number=10
import numpy as np
from qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ
import networkx as nx
from qiskit.visualization import plot_histogram
from typing import *
from pprint import pprint
from math import log2
from collectio... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
3899e1d781e1b9388eb9005d7dd9af3dde84c142 | 596b65dadfa15a09886ecbc12a80931865654c44 | /reinforcement_learning/reinforce/policy_evaluator.py | 3c1ea0702c52d252933054627933e4f3d9f08938 | [
"Apache-2.0"
] | permissive | xSakix/AI_playground | e849f5369cbdc96e1c2b550ae5fb8f3030b6829a | 17587583ecfc8fd9e92d9d3f643da6d37ac5cffd | refs/heads/master | 2020-03-14T18:53:07.575629 | 2019-02-20T20:00:13 | 2019-02-20T20:00:13 | 131,751,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,623 | py |
import numpy as np
import time
class Agent:
def __init__(self, r_actions):
self.r_actions = r_actions
self.ror_history = []
self.dist = np.array([1.])
self.tr_cost = 0.003
self.invested = 100000.
self.cash = 100000.
self.shares = np.zeros(1)
self.ac... | [
"seckarovci@gmail.com"
] | seckarovci@gmail.com |
82d585145cfac036a0d871b461c07c2ca25cd0e0 | eb9afdef43786bf2cbfeba2cea5e5ee6632ea344 | /cloudmersive_configuration_api_client/models/http_orchestration_header.py | 5ae9376b6cf4ba0f66f879f37659ca30dde7ac46 | [
"Apache-2.0"
] | permissive | Cloudmersive/Cloudmersive.APIClient.Python.Configuration | 9f90f609e963dd3020d762c976dc53291fcd5b2c | 01ab35d057254295cbd358e5549031fd1ba3c984 | refs/heads/master | 2021-02-08T23:13:20.675146 | 2020-06-26T00:42:07 | 2020-06-26T00:42:07 | 244,208,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,644 | py | # coding: utf-8
"""
configapi
Config API lets you easily manage configuration at scale. # noqa: E501
OpenAPI spec version: v1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class HttpOrchestrationHeader(object):
"""... | [
"35204726+Cloudmersive@users.noreply.github.com"
] | 35204726+Cloudmersive@users.noreply.github.com |
cf19e2bf09c2ad98284bd6891d1f1f96aba358cd | b41da6f351f27bf0d45a4e4d0e1be8f3a86f4b64 | /itsybitsy/arrays_ds/simple_lambda.py | 5489d43101c27b5f00013babb00e407ca41dc8ae | [] | no_license | santoshr1016/WeekendMasala | a5adbabe0b78cde567667376d7ddf05bb505a0ff | e099f9ac9677f7acb8faf620af94a06d76cae044 | refs/heads/master | 2020-03-26T00:26:32.649429 | 2019-08-30T07:32:24 | 2019-08-30T07:32:24 | 144,320,624 | 0 | 0 | null | 2019-06-03T23:08:00 | 2018-08-10T18:36:38 | Python | UTF-8 | Python | false | false | 121 | py | func = lambda x: x*x
l = [func(i) for i in range(10)]
print(l)
ll = [(lambda x: x*x)(x) for x in range(10)]
print(ll)
| [
"santosh.ratnala@acquia.com"
] | santosh.ratnala@acquia.com |
c8d54a82bb403111e3faec1305905500c1ae7efa | b13a326c8aac68f72c71169187a4aa8d4fe1438f | /rmleague/main_player.py | dace31bafd6d34dc2f5255658a3d37a5462b37e2 | [] | no_license | zy10zm/Pulsar | 9f1d9abdf90d94e80c6dba2a02630bfe4b4e2115 | 714ee2d78577e59077af7c0f890e639879490eb8 | refs/heads/master | 2023-02-22T20:26:42.995175 | 2021-01-23T04:35:38 | 2021-01-23T04:35:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,943 | py | import os
import numpy as np
from rmleague.player import Player
from rmleague.historical import Historical
from rmleague.main_exploiter import MainExploiter
from rmleague.league_exploiter import LeagueExploiter
from rmleague.agent import Agent
from rmleague.player_utils import remove_monotonic_suffix, pfsp
class Mai... | [
"impeccableaslan@gmail.com"
] | impeccableaslan@gmail.com |
82a2a6edf33cf96ab74ae526e3245b41e528b051 | 52b18c76e73d24ee75915617fb3beb9309db1ff3 | /findRice/social_settings.py | 3b4e8e96647f15e2df8867dd5eed4299a92914bd | [] | no_license | huangy10/findRice | e642fc9d2a6287094ec126581da6213d0185a8fe | 3c3f60539d559fac9e8d885b92d0087fd7fd9407 | refs/heads/master | 2021-01-21T04:47:38.669068 | 2016-07-01T03:05:49 | 2016-07-01T03:05:49 | 45,333,851 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | DEFAULT_PROFILE = "default_avatars/default_avatar.png"
DEFAULT_POSTER_PATH = "defaultPosters/default.jpg" | [
"woody1573@163.com"
] | woody1573@163.com |
8770e9ad31d13e674b1a6a35814d150d9e7706c2 | 758b475451f96bb63b0fd4922beb7b6e1ed40137 | /PyCalendar/branches/json/src/pycalendar/timezone.py | f7366777ee7ff7d113c37af307ab9adcc4b28f24 | [
"Apache-2.0"
] | permissive | svn2github/calendarserver-raw | da9f0bfa94d8080a9803eab5e4630be21645b329 | 37edd10248e8c13dc13f65ff52c72df1783e3499 | refs/heads/master | 2023-01-11T00:51:40.137861 | 2015-01-07T00:07:46 | 2015-01-07T00:07:46 | 14,276,537 | 1 | 0 | null | 2022-12-21T13:08:16 | 2013-11-10T13:09:44 | Python | UTF-8 | Python | false | false | 4,015 | py | ##
# Copyright (c) 2007-2012 Cyrus Daboo. 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 ... | [
"cyrusdaboo@e27351fd-9f3e-4f54-a53b-843176b1656c"
] | cyrusdaboo@e27351fd-9f3e-4f54-a53b-843176b1656c |
86cd5e7c1b5a227108cb62d495677cb3225c55af | 7e41d5ec2f8ba704c99bbb252a216566fa0e7ce3 | /Retos/ScraperAmazon/amazon/amazon/settings.py | 57e100dc4a68ba68c8d6a15d02c5c6618c42f675 | [
"MIT"
] | permissive | juanpanu-zz/PM_DataScience | 11cf1fab4939ba415bbae28b134182e7f3108e37 | 24e71616dae692e931e95cd3815ca88fa9b8a46a | refs/heads/master | 2023-01-03T01:15:50.893425 | 2020-10-24T16:32:16 | 2020-10-24T16:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,792 | py | # Scrapy settings for amazon project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/latest/topics/downloader-middleware.... | [
"juanpa.nb@gmail.com"
] | juanpa.nb@gmail.com |
a272604713573188bd595e5a7f06eff60a93db9d | 0203e5a6d7beb1e0f83113dac4c167b171756f24 | /test/system/spor/TEST_FIO.py | 2d587c68ee12c132592244090b13cbb901ad06ac | [
"BSD-3-Clause"
] | permissive | Wonchul08Lee/poseidonos | eaafe277fc56a0f5b5fcca3b70acc9bfe5d5d1ae | 6fe410cdf88f3243ad9210f763c2b5a2f7e8b46a | refs/heads/main | 2023-03-30T13:41:09.660647 | 2021-04-08T06:43:26 | 2021-04-08T06:43:26 | 355,819,746 | 0 | 0 | BSD-3-Clause | 2021-04-08T08:17:27 | 2021-04-08T08:17:26 | null | UTF-8 | Python | false | false | 3,515 | py | #!/usr/bin/env python3
import subprocess
import sys
import TEST
import TEST_LOG
# ######################################################################################
q_depth = 128
block_size = '4K'
verify_on = False
core_mask = '0x40'
extra_fio_options = " --numjobs=1 --ramp_time=0 --norandommap=1 --bs_unaligned... | [
"poseidonos@samsung.net"
] | poseidonos@samsung.net |
0deb557404648824dd6ec563b8f7a5389c231552 | 6c7581f591f7e455d5497ecd2329502e99ce2270 | /uiautomator2/_old_init.py | b76e01411274a4ed3b2fb37a928fc9ff674fb450 | [
"MIT"
] | permissive | qingqingcaoyuanlin/uiautomator2 | a87bdee3a5cd449fe7a77571322440b545fe38c2 | 297b2c1f16518fa9a179966ed610670bac856711 | refs/heads/master | 2023-04-11T00:59:05.016811 | 2020-06-22T15:57:50 | 2020-06-22T15:57:50 | 205,521,503 | 0 | 0 | MIT | 2022-05-25T01:12:49 | 2019-08-31T09:05:17 | Python | UTF-8 | Python | false | false | 48,349 | py | class Device(object):
__isfrozen = False
__plugins = {}
def __init__(self, host="127.0.0.1", port=7912):
"""
Args:
host (str): host address
port (int): port number
Raises:
EnvironmentError
"""
self._host = host
self._port ... | [
"codeskyblue@gmail.com"
] | codeskyblue@gmail.com |
d3b15d0c87e59ac765c4d48fb3b68d8830a3cd52 | dff9fd5a123c8746c222e02579ed8c2edb0949e8 | /cell_modelling/generate_automata.py | d9b68661e2eab6cc9304a6ae1121095d4406c6b6 | [] | no_license | Sashkow/GeneticAlgorithms | 2069e485d018448b4a760781003b6d3316ea0202 | d59d0798f25aea57b5079fbd95b013650a0dcf6f | refs/heads/master | 2021-01-10T15:33:47.761978 | 2017-03-21T19:05:46 | 2017-03-21T19:05:46 | 43,359,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py |
from cell_modelling.proxyfunctions import*
import cell_modelling.boolfunction
import random
"""
zeroes - float from 0 to 1. Share of zeroes in functions values.
"""
def generate_n_k_automata(N,K,functions_list,links_list, zeroes):
generate_functions_list(N,K,functions_list, zeroes)
generate_links_list(N,K,lin... | [
"lykhenko.olexandr@gmail.com"
] | lykhenko.olexandr@gmail.com |
c70f4468f2f90ea32010819ae9ca94a7b400efe4 | a5487ac3c3a15870da630a1a54482dacd7895cc8 | /app/config.py | b10a2f9b4627bf7c971f9f1128d091abe68c628c | [] | no_license | EidAbdullahi/Watchlist. | 09a8318c86538a1d15b3e475c5c924b36c4eb04e | 9ebbd4a0cf1d0bb4352ab4d443e66de6e22c16e9 | refs/heads/master | 2023-01-23T21:56:54.326686 | 2020-12-02T15:29:18 | 2020-12-02T15:29:18 | 315,248,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | class Config:
'''
General configuration parent class
'''
MOVIE_API_BASE_URL ='https://api.themoviedb.org/3/movie/popular?api_key=dc8778f07dfcbb76925d7106d12b5dfb'
SECRET_KEY='c123456789abc'
class ProdConfig(Config):
'''
Production configuration child class
Args:
Config: The p... | [
"eidabdullahi10@gmail.com"
] | eidabdullahi10@gmail.com |
433970e16d201063f5c88815a8d0ee67c1b0ccd7 | 60c4255fb0cf7ed817ff09d8113bf404cde8e12b | /env/lib/python2.7/site-packages/django/conf/locale/es/formats.py | 935a7ab9732309091df7ef167b5a77ebf7d40de9 | [] | no_license | adamjberg/finna-be-octo-ninja | 83aba13f619d4fbfb5308e48336917f0ada0459d | cf16bfcb3d7bb4e878ba0b99ad701b5cda8be34c | refs/heads/master | 2021-01-10T20:19:20.849476 | 2014-01-11T05:42:23 | 2014-01-11T05:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | # -*- encoding: utf-8 -*-
# This file is distributed under the same license as the Django package.
#
# The *_FORMAT strings use the Django date format syntax,
# see http://docs.djangoproject.com/en/dev/ref/templates/builtins/#date
DATE_FORMAT = r'j \d\e F \d\e Y'
TIME_FORMAT = 'H:i:s'
DATETIME_FORMAT = r'j \d\... | [
"ilikecattle@gmail.com"
] | ilikecattle@gmail.com |
3960bcdaa6f9d469b1c84d0f5d37157332a8cbdc | ac216a2cc36f91625e440247986ead2cd8cce350 | /appengine/monorail/framework/emailfmt.py | f63cddb2a0c60db71fae05935d48aefc5555b2ff | [
"BSD-3-Clause"
] | permissive | xinghun61/infra | b77cdc566d9a63c5d97f9e30e8d589982b1678ab | b5d4783f99461438ca9e6a477535617fadab6ba3 | refs/heads/master | 2023-01-12T21:36:49.360274 | 2019-10-01T18:09:22 | 2019-10-01T18:09:22 | 212,168,656 | 2 | 1 | BSD-3-Clause | 2023-01-07T10:18:03 | 2019-10-01T18:22:44 | Python | UTF-8 | Python | false | false | 14,514 | py | # Copyright 2016 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 or at
# https://developers.google.com/open-source/licenses/bsd
"""Functions that format or parse email messages in Monorail.
Specifically, this module has th... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
995e0e9dd55b85621ce6c890651f21c298eb9808 | 083ca3df7dba08779976d02d848315f85c45bf75 | /BinaryTreeLevelOrderTraversal.py | b699554649dd0c49771fbd83d539fd77347ebe2f | [] | no_license | jiangshen95/UbuntuLeetCode | 6427ce4dc8d9f0f6e74475faced1bcaaa9fc9f94 | fa02b469344cf7c82510249fba9aa59ae0cb4cc0 | refs/heads/master | 2021-05-07T02:04:47.215580 | 2020-06-11T02:33:35 | 2020-06-11T02:33:35 | 110,397,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
class Solution:
def levelOrder(self, root):
"""
:type root: TreeNode
:rtype: List[List[int]]
"""
result = []
nodes = []
if root!=None:
... | [
"jiangshen95@163.com"
] | jiangshen95@163.com |
6e1d100a34333379e5998b31db45aa62c809724d | b26d11147736cae7a1b10e7deaef08c339cb1e4e | /profiles/urls.py | d2d0699148c86b4652ae317a8a81d48530c09f88 | [] | no_license | Komilcoder/Art-blog-website | bcc72e6b18925c141efd28a101c321c82fe7e534 | 8c88e4245a3e5f36593ceade2ab242f331bf3121 | refs/heads/master | 2022-12-15T14:06:57.094660 | 2020-09-02T06:58:00 | 2020-09-02T06:58:00 | 291,511,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | from django.urls import path
from . import views
app_name='profiles'
urlpatterns = [
path('myprofile/' , views.my_profile_view, name="my_profile"),
path('invites/' , views.invites_received, name="my_invite"),
path('login/', views.Loginpage, name="login"),
path('registr_lis/', views.Registration , name... | [
"yaxshilikovkomil@gmail.com"
] | yaxshilikovkomil@gmail.com |
94cb5c11f12b36935cd9c945dc1e7169b0d88ce0 | 1e7e8ee29809a646b536afe2fed38ffc75bfb501 | /万达优卡.py | dd0943ca89026af2411b5e6b9e2ebd5bb01a15fa | [] | no_license | Chihihiro/CrawlerFrame | e97ee4fe22b7ada05cb7d033fa582c93614f61b5 | d0df19b3c05de0ed94749c58d5ffc325e92ff035 | refs/heads/master | 2020-04-19T14:51:08.844972 | 2019-02-01T01:03:10 | 2019-02-01T01:03:10 | 168,256,125 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,358 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2019/1/29 0029 16:18
# @Author : Chihiro
# @Site :
# @File : 万达优卡.py
# @Software: PyCharm
import time
import json
from time import sleep
from Frame.Crawler import BaseSpider
from Frame.Request import Request
from scrapy import Selector
class Spider(Base... | [
"chihiro123"
] | chihiro123 |
40b2fea6934c17c73c6042e54d70cada3ea836c8 | 1fcdccf5d651b60bfe906f2ddafd6745f4e29860 | /nufeeb.button/debug/fileapi.py | 461f5120bf4f771c155ee2e7f47114fad438c2c7 | [] | no_license | LimXS/workspace | 6728d6517a764ef2ac8d47fe784c4dba937a1f1d | 9669d653f4a7723947da645de526f4c580ddc88b | refs/heads/master | 2021-01-21T06:39:14.126933 | 2017-04-14T03:24:36 | 2017-04-14T03:24:36 | 83,257,374 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | # -*- coding: utf-8 -*-
import time
import requests
import json
from common import browserClass
browser=browserClass.browser()
f=open('e:src.txt','r')
l=f.read()
print l
headers={'cookie':l}
#cookie='_ati=146267075305; ASP.NET_SessionId=qe5bebuz2cphgb0o01omllql; _umdata=65F7F3A2F63DF0207E2BEE3A391EB24C36974786A7AE62C01... | [
"xsx2018@yahoo.com"
] | xsx2018@yahoo.com |
5366d2dd48ea41e2fb297fa29af2910999b245a5 | 5ffed81ced523b6e417b4e48d20380b6f16f8f42 | /additional/weather.py | 59c9c376b47fe96b34665fb7f94358bbcb82881f | [] | no_license | Nikoletazl/Basics-Python | 0f3f095bd51f9546c681e3cdd268232de88749ab | 17aef1b95814f13a02053681aae3e617e56f2fe6 | refs/heads/main | 2023-08-14T15:48:48.450249 | 2021-10-08T15:02:35 | 2021-10-08T15:02:35 | 415,027,622 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | weather = input()
if weather == "sunny":
print("It's warm outside!")
elif weather == "cloudy" and weather == "snowy":
print("It's cold outside!")
else:
print("It's cold outside!")
| [
"noreply@github.com"
] | Nikoletazl.noreply@github.com |
36cdc9dae22082d2ea838f82af3e592377b6264d | fed854dab0984685ad8094aa76ab2a84cde9cb99 | /measure_http/send-requests.py | bc08622e7de678489aafa892bc921703a94d9dda | [] | no_license | redteamcaliber/w3af-misc | 30673ec29db277f3317d0e619b892b43d4f49d1a | 85e591e1b6ad57e3d3994c045feb29a64d5955c6 | refs/heads/master | 2020-04-03T16:07:48.441296 | 2014-08-12T13:09:09 | 2014-08-12T13:09:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | import time
import sys
from measure import show_stats
NUM_REQUESTS = 5000
try:
from core.data.url.xUrllib import xUrllib
except:
print 'This script needs to be located inside the w3af trunk directory to work'
sys.exit(1)
from core.data.parsers.urlParser import url_object
import core.data.kb.config as cf... | [
"andres.riancho@gmail.com"
] | andres.riancho@gmail.com |
e2033e7058da34f5fae42cc2fa014890b4e202ca | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-das/setup.py | 26e0e247230127bea559c3876cbadf4e206f803c | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 1,662 | py | # coding: utf-8
from os import path
from setuptools import setup, find_packages
NAME = "huaweicloudsdkdas"
VERSION = "3.1.57"
AUTHOR = "HuaweiCloud SDK"
AUTHOR_EMAIL = "hwcloudsdk@huawei.com"
URL = "https://github.com/huaweicloud/huaweicloud-sdk-python-v3"
DESCRIPTION = "DAS"
this_directory = path.abspath(path.dirna... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
93937012b68244e03343e8ad75766b37c8b5e61a | 63490d62566ef62ef531dc72da8b4fdbde93cff1 | /venv/Lib/site-packages/wcwidth/tests/test_core.py | 8a7454b9bb2f5717741abc3e28a9b5cc79b5daf4 | [] | no_license | yuyuyuyushui/koal | d353b21c932b17484858cab3267242c7c1aee08c | 3114eca6afbab8723c003d36fa386fb4c2d9cd5e | refs/heads/master | 2021-07-12T18:41:19.389618 | 2020-10-13T09:30:34 | 2020-10-13T09:30:34 | 207,526,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,891 | py | # coding: utf-8
"""Core tests module for wcwidth."""
import wcwidth
def test_hello_jp():
u"""
Width of Japanese phrase: コンニチハ, セカイ!
Given a phrase of 5 and 3 Katakana ideographs, joined with
3 English-ASCII punctuation characters, totaling 11, this
phrase consumes 19 cells of a terminal emulator.... | [
"786313105@qq.com"
] | 786313105@qq.com |
a535a25d34ddbe9d940388f382d1b780b9517e5c | 9afbb6993450d1e0c3bae68e86844bd06d4419ee | /exception/10.py | 5d41fdb27de85590a6184c4464744775ff368b96 | [] | no_license | Jigar710/Python_Programs | 6f331caac30878655d4cca4ad97d4214c0262088 | 714a6306487eb6712f32ccb51b6a2407a81873fa | refs/heads/main | 2023-02-25T12:24:44.874199 | 2021-01-28T15:43:24 | 2021-01-28T15:43:24 | 332,869,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | #user defined exception class
class MyError(Exception):
pass
try:
a = int(input("Enter A : "))
b = int(input("Enter B : "))
if(a<0 or b<0):
raise MyError("Hello error")
c = a / b
lst = [1,2,3]
print(c,lst[c])
except Exception as e: #default except block
print(type(e))
print("bye bye") | [
"jigar.shekhat.777@gmail.com"
] | jigar.shekhat.777@gmail.com |
c5d7eae344e138b6da01e1ba3701a98aaa0ec7b5 | 986236feac0d098977dc3f98b705d68155048233 | /0x08-python-more_classes/2-rectangle.py | 4535c1bea08351a8adf1f115ec29e31997a7f266 | [] | no_license | Noeuclides/holbertonschool-higher_level_programming | 1f1ec5731840f39ab988593ace190403f701ee67 | fcf0d733b73904a848b5718266a644c4f6452166 | refs/heads/master | 2020-05-18T03:28:56.901071 | 2019-10-03T17:30:20 | 2019-10-03T17:30:20 | 184,145,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | #!/usr/bin/python3
class Rectangle:
def __init__(self, width=0, height=0):
self.width = width
self.height = height
@property
def width(self):
return(self._width)
@width.setter
def width(self, value):
if type(value) is not int:
raise TypeError("width must... | [
"euclidesnoeuclides@gmail.com"
] | euclidesnoeuclides@gmail.com |
b1f9c356148bde3067f87f76563580ae2cd63648 | 7f4b1d5e9963d63dd45b31c6cad8ced70d823217 | /interview-prep/geeks_for_geeks/google/finding_the_numbers.py | 51a629bd3c5edcc7b7b0f54b35b1311ce8ad3a4a | [] | no_license | mdhatmaker/Misc-python | b8be239619788ed343eb55b24734782e227594dc | 92751ea44f4c1d0d4ba60f5a1bb9c0708123077b | refs/heads/master | 2023-08-24T05:23:44.938059 | 2023-08-09T08:30:12 | 2023-08-09T08:30:12 | 194,360,769 | 3 | 4 | null | 2022-12-27T15:19:06 | 2019-06-29T03:39:13 | Python | UTF-8 | Python | false | false | 1,030 | py | import sys
# https://practice.geeksforgeeks.org/problems/finding-the-numbers/0
# You are given an array A containing 2*N+2 positive numbers, out of which 2*N numbers
# exist in pairs whereas the other two numbers occur exactly once and are distinct. You
# need to find the other two numbers and print them in ascendin... | [
"hatmanmd@yahoo.com"
] | hatmanmd@yahoo.com |
c280cc6272f0d332920cee5a939b28ab93879266 | 70f564990215f47b139a777826f211477e9b44f6 | /plan2vec_experiments/neo_plan2vec/streetlearn/files/streetlearn_plan2vec.py | a9075e3d69f4933bfa8398d4202e2ccbe33516b7 | [] | no_license | geyang/plan2vec | de87f2d77732c4aacdefd00067ebebacb7cd763f | aeeb50aed3d7da4c266b4ca163e96d4c0747e3c1 | refs/heads/master | 2022-11-16T03:40:42.638239 | 2022-10-28T04:01:29 | 2022-10-28T04:01:29 | 261,273,420 | 65 | 3 | null | null | null | null | UTF-8 | Python | false | false | 20,789 | py | """
New Plan2vec Implementation, uses graph-planning algorithms to navigate the graph.
Now adapted for StreetLearn
Test if the value function blows up or not.
"""
from collections import defaultdict
import matplotlib.pyplot as plt
import networkx as nx
import numpy as np
from params_proto.neo_proto import ParamsProto... | [
"yangge1987@gmail.com"
] | yangge1987@gmail.com |
653af4c38b79106e0c627d50f73fbf6f13532bf2 | 0049832c5cbee4b96189b88b51653f48decde596 | /gk2a/ReprojectionCropping2/_reprojection_gdal.py | d09c3b925fcd13f61492b3c96568efa84f2e97f3 | [] | no_license | henockmamo54/ImageFusion | 18cf27ec4a066456c0d575696fc986814d10a7e6 | 07e88b5cb1925f54b3b3659caa2abda2bf4f3a72 | refs/heads/master | 2023-06-16T12:38:07.352623 | 2021-07-19T00:52:02 | 2021-07-19T00:52:02 | 355,720,494 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 8 11:34:28 2021
@author: Henock
"""
import os
os.system('export PATH="/usr/local/gdal/2.4.2/bin:$PATH"')
os.system('export PATH="/usr/local/anaconda/bin:$PATH"')
os.system('export GDAL_NETCDF_BOTTOMUP=NO')
path ="/bess19/Image_fusion/pre_process/GK2A/Cropped/VI00... | [
"henockmamo54@gmail.com"
] | henockmamo54@gmail.com |
e851793b08c734b65d5d7e371176e23900e05476 | 6a686f67fce7562f29ec318b6d0e2bbf1f505b72 | /Cap07_Numeros_e_Op_Basicos/2021/517_op_identidade.py | 522d5c748c843bbda3efbb1543f14d227eef9748 | [] | no_license | frclasso/1st_Step_Python_Fabio_Classo | dd7f4b8f03f6992112fc9afb59c347d2989e612c | e7424143c432b5894ac30f816040145e129c1a2d | refs/heads/master | 2023-07-31T14:10:14.934518 | 2021-09-09T22:25:10 | 2021-09-09T22:25:10 | 138,339,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | #!/usr/bin/env python3
x = 100
print(type(x) is int)
y = 100.0
print(type(y) is not int)
| [
"frclasso@yahoo.com.br"
] | frclasso@yahoo.com.br |
247448acdb9b029e13697eb748d05157c64dac14 | e4bc9c24a0e00a127f505e384679d32e012a8b93 | /limix/heritability/estimate.py | 41f246235295c71c1a7f5ed653c6fd88b72d612c | [
"Apache-2.0"
] | permissive | jeffhsu3/limix-1 | 6e5a37112afffdadbb578fcec040f72d7b20db97 | c76e455c4b2c84352d03b75ad578d205192e8547 | refs/heads/master | 2021-01-23T05:49:54.825954 | 2017-05-24T13:35:47 | 2017-05-24T13:35:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,991 | py | from __future__ import division
from numpy import ascontiguousarray, copy, ones, var
from numpy_sugar.linalg import economic_qs
from glimix_core.glmm import GLMM
def estimate(pheno, lik, K, covs=None, verbose=True):
r"""Estimate the so-called narrow-sense heritability.
It supports Normal, Bernoulli, Binomi... | [
"danilo.horta@gmail.com"
] | danilo.horta@gmail.com |
eec7454c39baf419aee20d1e08eefd3cfb4a9666 | 9df2fb0bc59ab44f026b0a2f5ef50c72b2fb2ceb | /sdk/hdinsight/azure-mgmt-hdinsight/generated_samples/hdi_locations_check_cluster_name_availability.py | d208beef247f78335e5cf6ed38ffb45646b3b539 | [
"MIT",
"LGPL-2.1-or-later",
"LicenseRef-scancode-generic-cla"
] | permissive | openapi-env-test/azure-sdk-for-python | b334a2b65eeabcf9b7673879a621abb9be43b0f6 | f61090e96094cfd4f43650be1a53425736bd8985 | refs/heads/main | 2023-08-30T14:22:14.300080 | 2023-06-08T02:53:04 | 2023-06-08T02:53:04 | 222,384,897 | 1 | 0 | MIT | 2023-09-08T08:38:48 | 2019-11-18T07:09:24 | Python | UTF-8 | Python | false | false | 1,607 | 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"
] | openapi-env-test.noreply@github.com |
c3659494745d079e14598a44a7ad5769d0846fd1 | 32c56293475f49c6dd1b0f1334756b5ad8763da9 | /google-cloud-sdk/lib/third_party/kubernetes/client/models/v1_secret_list.py | c3549b68019351e465d2f2673fa5437103bbb91e | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/socialliteapp | b9041f17f8724ee86f2ecc6e2e45b8ff6a44b494 | 85bb264e273568b5a0408f733b403c56373e2508 | refs/heads/master | 2022-11-20T03:01:47.654498 | 2020-02-01T20:29:43 | 2020-02-01T20:29:43 | 282,403,750 | 0 | 0 | MIT | 2020-07-25T08:31:59 | 2020-07-25T08:31:59 | null | UTF-8 | Python | false | false | 6,235 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen
https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.14.4
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"jonathang132298@gmail.com"
] | jonathang132298@gmail.com |
13f51e63ef87e8b70cef161a974b8164b6e96a75 | 541d316b9693031987e7659c61d984302a5869d3 | /profiles/admin.py | f361a160877e7de6c62324bf0bec5408372b7761 | [
"MIT"
] | permissive | Cian747/insta | ea425af0a2f24e710a7563b5d15448f5b6f05132 | caa34a3f2908cf34641c5e42a66db096c1325310 | refs/heads/main | 2023-08-22T06:34:06.291844 | 2021-09-14T12:11:39 | 2021-09-14T12:11:39 | 404,592,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | from django.contrib import admin
from .models import Profile
from gram.models import Image,Comment
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
filter_horizontal = ('')
admin.site.register(Profile) | [
"cian.omondi@student.moringaschool.com"
] | cian.omondi@student.moringaschool.com |
ffec00ecffc48f1c907a43d0865b4c77727809b6 | 1a5a9bfa6ee62c328fc6ab828ad743c555b0f23a | /ch08/0642-moving-average-from-data-stream.py | 7a18664a633aa04d7e7323fcf720360d8b9d425f | [] | no_license | zzy1120716/my-nine-chapter | 04b3e4d43a0d8086e5c958b81a3dc4356622d65f | c7bf3eed366b91d6bdebb79d0f11680cf7c18344 | refs/heads/master | 2020-03-30T03:07:14.748145 | 2019-05-15T13:07:44 | 2019-05-15T13:07:44 | 150,670,072 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | """
642. Moving Average from Data Stream
给出一串整数流和窗口大小,计算滑动窗口中所有整数的平均值。
样例
MovingAverage m = new MovingAverage(3);
m.next(1) = 1 // 返回 1.00000
m.next(10) = (1 + 10) / 2 // 返回 5.50000
m.next(3) = (1 + 10 + 3) / 3 // 返回 4.66667
m.next(5) = (10 + 3 + 5) / 3 // 返回 6.00000
"""
class MovingAverage:
"""
@param: size: ... | [
"zzy1120716@126.com"
] | zzy1120716@126.com |
8fcdd6931ce5d6fbe199d113591e50716af82f35 | 4e11c5fe1cd966bfd4c7748cff1a69c303f784d5 | /rastervision_core/rastervision/core/data/scene_config.py | d139e1994a26a7554ccebcca5c897f6562a83f76 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | austinekrash/raster-vision | 40b02a9e315bc65f14299102b4f2f6fc26acc3a8 | a5b0616e8699ce4e26cbc5697adc7615505f4337 | refs/heads/master | 2022-12-20T13:05:22.061676 | 2020-10-01T16:40:12 | 2020-10-01T16:40:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | from typing import Optional, List
from shapely.geometry import shape
from rastervision.pipeline.config import Config, register_config, Field
from rastervision.core.data.raster_source import RasterSourceConfig
from rastervision.core.data.label_source import LabelSourceConfig
from rastervision.core.data.label_store imp... | [
"lewfish@gmail.com"
] | lewfish@gmail.com |
adcd9078fc7bdbd82c0ec509b16eeb8b499a8efc | bc00bdc08d76c8be38c51b1f1caeced2a4668592 | /abjad_demo/env/lib/python3.6/site-packages/abjad/lilypondfile/LilyPondLanguageToken.py | e815f1491edb124386aeb45ea1e2c9d0dce2c00c | [] | no_license | gsy/gmajor | 769afd6e87f6712e4059f3f779f41932cbca962d | 7f5f20a19494256615fbaaa840b2a0bbbf6e311f | refs/heads/master | 2023-02-08T07:00:44.479895 | 2019-05-20T13:58:03 | 2019-05-20T13:58:03 | 161,866,236 | 0 | 0 | null | 2023-02-02T06:26:34 | 2018-12-15T03:32:48 | Scheme | UTF-8 | Python | false | false | 1,382 | py | from abjad.system.AbjadValueObject import AbjadValueObject
class LilyPondLanguageToken(AbjadValueObject):
r"""
A LilyPond file ``\language`` token.
.. container:: example
>>> abjad.LilyPondLanguageToken()
LilyPondLanguageToken()
"""
### CLASS VARIABLES ###
__slots__ = ()
... | [
"chenxuanguang@chuangxin.com"
] | chenxuanguang@chuangxin.com |
6e17529b5a5c379ecb9b81deb0f3bfd191b7a4e8 | a37c48267bfb8476476dad7219c4e3329f9e2991 | /Packs/AgariPhishingDefense/Integrations/AgariPhishingDefense/AgariPhishingDefense.py | af96eac536118d614a67bdf94df72b48273c50cf | [
"MIT"
] | permissive | adambaumeister/content | 611ce9fba412a5eb28fbefa8a43282e98d3f9327 | 01b57f8c658c2faed047313d3034e8052ffa83ce | refs/heads/master | 2023-03-09T18:16:18.623380 | 2022-07-13T18:11:09 | 2022-07-13T18:11:09 | 274,290,989 | 2 | 0 | MIT | 2023-03-06T12:22:17 | 2020-06-23T02:36:53 | Python | UTF-8 | Python | false | false | 33,219 | py | import demistomock as demisto
from CommonServerPython import *
from CommonServerUserPython import *
""" IMPORTS """
import dateparser
import requests
from requests import Response
from typing import Dict, Any, Union, Tuple
from requests.exceptions import (
MissingSchema,
InvalidSchema,
InvalidURL,
SSL... | [
"noreply@github.com"
] | adambaumeister.noreply@github.com |
733950ba7543d6d02395783a63c3e38d99586ce3 | 68e7aecfb499cf2563b6a7eaab436a56d09a9f68 | /backend/manage.py | 57bdafe73e2c5823f8c1728df6511f43ba7112bd | [] | no_license | crowdbotics-apps/wash-23436 | 211894454e243a3848f5771b26174555448f521e | 76cb62d01356907c24bb60ee70a9233bc330a0e7 | refs/heads/master | 2023-01-31T03:34:30.205969 | 2020-12-18T02:23:50 | 2020-12-18T02:23:50 | 322,465,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "wash_23436.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7ca1ff9dcf0935130da4f10a3e5ce2ed99b8d947 | 41523dd4871e8ed1043d2b3ddf73417fcbdde209 | /day11/compare.py | c44e489a1ceddd072715d33d6ebf53dd3ee50bfb | [] | no_license | WayneChen1994/Python1805 | 2aa1c611f8902b8373b8c9a4e06354c25f8826d6 | a168cd3b7749afc326ec4326db413378fd3677d5 | refs/heads/master | 2020-03-30T23:19:00.773288 | 2018-11-02T10:47:40 | 2018-11-02T10:47:40 | 151,697,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,376 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# author:Wayne
import time
import os
# 递归求和:1+2+……+n
def getSumRecu(n):
if n == 1:
return 1
else:
return getSumRecu(n - 1) + n
# 循环求和:1+2+……+n
def getSumLoop(n):
res = 0
for i in range(1, n+1):
res += i
return res
# 递归求n!
... | [
"waynechen1994@163.com"
] | waynechen1994@163.com |
378985c18c9d3722a889025d62492a0eff4e32e1 | f9318e10a48e9e87f7c1537c8f2e647dda677e4c | /octopus/modules/es/settings.py | 208497f661ecafd37df43eca278e71ff09506ab3 | [
"Apache-2.0"
] | permissive | JiscPER/magnificent-octopus | 250579020ead7a8d8424e96a8c3e811b12cc4d90 | e1be9a5f779a38122c5ad9d1d5365bb9a1dc2cf1 | refs/heads/master | 2023-07-20T00:27:26.018800 | 2016-01-22T16:07:24 | 2016-01-22T16:07:24 | 46,710,009 | 0 | 1 | NOASSERTION | 2023-07-10T11:22:43 | 2015-11-23T09:29:26 | Python | UTF-8 | Python | false | false | 8,551 | py | ##############################################################
# Basic ElasticSearch connectivity settings
##############################################################
# index information to use in live
ELASTIC_SEARCH_HOST = "http://localhost:9200"
ELASTIC_SEARCH_INDEX = "db"
ELASTIC_SEARCH_VERSION = "0.90.13"
# i... | [
"richard@cottagelabs.com"
] | richard@cottagelabs.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.