blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
07fadb59835412186c216ed94671aaf72d7c9b8e
e8b291e05b200832b2f3e1a94ab66c225883cc98
/authentication/serializers.py
f791f7b68bca3c452d3326955e4c4c4f61d04c45
[]
no_license
Ramesh7128/emailwatch
ffaa22cd712dede2b68b10c3cfd58675a2c9e379
bf150d1587c7874019f753da5d19dfd2636fb540
refs/heads/master
2023-01-09T10:23:15.354834
2019-04-24T11:40:40
2019-04-24T11:40:40
180,546,082
0
0
null
2023-01-04T15:08:03
2019-04-10T09:16:03
JavaScript
UTF-8
Python
false
false
3,505
py
from rest_framework import serializers from authentication.models import User from django.contrib.auth import authenticate class SocialRegisterationLoginSerializer(serializers.Serializer): """ Seraializer for reqisteration/login a new user. """ access_token = serializers.CharField( allow_blan...
[ "ramesh7128@gmail.com" ]
ramesh7128@gmail.com
6838f5d83e2e305daf8e7e1d283c3de9d6b2e773
69698589b1962608cb0fa6099aeafd8eb263ddc4
/降维/PCA降维/利用PCA对半导体制造数据降维.py
955d949e1f9fee3aaf7eb119ffd801bcb70b0f37
[]
no_license
haibiyu/Machine-Learning-Action
de7e18aeb31c48340566d1ab4550d4864094b409
3ff16b6881393c1230f5c06dba632651e5d444e0
refs/heads/master
2022-07-01T13:47:15.923282
2020-05-11T09:49:44
2020-05-11T09:49:44
259,905,572
0
0
null
null
null
null
UTF-8
Python
false
false
3,464
py
# !/usr/bin/env python # -*-coding:utf-8 -*- """ # File : 利用PCA对半导体制造数据降维.py # Time :2020/3/14 21:45 # Author :haibiyu # version :python 3.6 # Description: """ import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams['font.sans-serif'] = [u'SimHei'] matplotlib.rc...
[ "haibiyu@163.com" ]
haibiyu@163.com
45911d2107f8a058ae9e21da641dce20f9ebbfc4
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03478/s738324430.py
8d0f54df40a8cd3400f6e4a4451aea2c0ae3acda
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
264
py
def calc_sum_digits(n): sumdigit = 0 while n > 0: sumdigit += n % 10 n //= 10 return sumdigit N, A, B = map(int, input().split()) result = 0 for n in range(1, N+1): if A <= calc_sum_digits(n) <= B: result += n print(result)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
6c9ffa106c3d482bebc5f45b5ab810671a452d45
70fec09ceb625608d561937955c285c0c39f6d95
/tomodachi/helpers/logging.py
6f70f688795efb29e251f11cf8b1df6ce6a5f8f4
[ "MIT" ]
permissive
kalaspuff/tomodachi
b285e2c73696d14e3c84a479745e00824fba7190
deca849ec2b4cdc3d27f06e9ce0056fac0146a1a
refs/heads/master
2023-08-31T00:32:12.042486
2023-08-21T13:02:24
2023-08-21T13:02:24
62,165,703
191
28
MIT
2023-09-11T23:32:51
2016-06-28T18:43:51
Python
UTF-8
Python
false
false
1,787
py
from typing import Any from tomodachi import context, logging def log(service: Any, *args: Any, **kwargs: Any) -> None: name: str = context("service.logger") or "" level = None message = None if len(args) == 1: message = args[0] if len(args) == 2: if type(args[0]) is int: ...
[ "hello@carloscar.com" ]
hello@carloscar.com
2d3beeff7f88a9ebdfa69239ba98dea009416491
49c174fa2363461bbefd07af08f2d62b2d12b591
/robots/LoCoBot/locobot_calibration/scripts/artag_camera.py
84c6517cf003f248e2a81c48df3d658a9cf2e2d7
[ "MIT" ]
permissive
Improbable-AI/pyrobot
452f68ca503fb4aff247d6166cff8914471fa9d8
326b49057421ae7d5feefdca93b580846aaef730
refs/heads/master
2022-07-07T20:58:23.358744
2022-04-01T22:02:39
2022-04-01T22:02:39
221,547,610
1
2
MIT
2022-04-04T20:24:45
2019-11-13T20:41:11
Python
UTF-8
Python
false
false
895
py
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import threading import rospy import copy from ar_track_alvar_msgs.msg import AlvarMarkers ROSTOPIC_AR_POSE_MARKER = '/ar_pose_marker' class...
[ "kalyan051993@gmail.com" ]
kalyan051993@gmail.com
29c085f9787e37d6f79717df659b17a72d8ec18d
13b5372316dd8a47c7dfe9abf43839f4bc61ba9d
/mysite/settings.py
ec1a2a6092dbf30e5285c63b399ab1e61cf1bc62
[]
no_license
YaCpotato/Django-RFID-register-API
6b7db5a07ca0ac182645ac47436aed37006e7ac3
a36e680ccdf8f80d5d9c21c5ab6d5cae0547c74a
refs/heads/master
2020-08-05T18:00:56.197117
2019-10-07T16:34:04
2019-10-07T16:34:04
212,646,277
0
0
null
null
null
null
UTF-8
Python
false
false
3,221
py
""" Django settings for mysite project. Generated by 'django-admin startproject' using Django 2.0.13. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os #...
[ "yasshisshy@gmail.com" ]
yasshisshy@gmail.com
1703fd234063fecf90463ba8e557062e7b98db89
a560ad8d5f523b720b47f0be27c2fdba232a3a4b
/src/configuration/config_p.py
f44293b7d749ac53b0ed151d187db84a655dd68f
[ "MIT" ]
permissive
vollov/py-lab
a27cb422e5a4ac44d4364c89e98202207cd2a1d5
0a1a3c93c5decaa5246fab981bcc2563cc42c6d0
refs/heads/master
2021-06-01T13:25:51.829046
2021-01-23T16:39:08
2021-01-23T16:39:08
33,277,424
0
0
null
null
null
null
UTF-8
Python
false
false
521
py
import ConfigParser,ast,os class configp(): def __init__(self): current_directory = os.path.dirname(os.path.abspath(__file__)) self._config_file_path = os.path.join(current_directory, 'conf.ini') self.config = ConfigParser.ConfigParser() self.config.read(self._config_file_path) ...
[ "dike.zhang@gmail.com" ]
dike.zhang@gmail.com
9db0cafb8a56ca93e6c9a4097abf460afe3f71e3
90419da201cd4948a27d3612f0b482c68026c96f
/sdk/python/pulumi_azure_nextgen/authorization/v20150701/_inputs.py
3caabfd0cd01b9038f1146d2ea779d3cf6007169
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
test-wiz-sec/pulumi-azure-nextgen
cd4bee5d70cb0d332c04f16bb54e17d016d2adaf
20a695af0d020b34b0f1c336e1b69702755174cc
refs/heads/master
2023-06-08T02:35:52.639773
2020-11-06T22:39:06
2020-11-06T22:39:06
312,993,761
0
0
Apache-2.0
2023-06-02T06:47:28
2020-11-15T09:04:00
null
UTF-8
Python
false
false
3,337
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __a...
[ "public@paulstack.co.uk" ]
public@paulstack.co.uk
92248a35db9e68515e4e085e21c1b7010262f4c0
7daab7f2e91d62ba0383fa050f3dea1dc9752975
/iniciante/1066_pares_impares_positivos_e_negativos.py
8b84148a9a7da0955c6dade7d456691e2be198db
[]
no_license
luandadantas/URI-Python
97ccdaa3835b2d2fa403f148969ca7e893d3f119
2cb67f39725b20e6fcbbeaf27d04c4ba05dba665
refs/heads/master
2022-12-04T02:51:14.374361
2020-08-14T17:59:58
2020-08-14T17:59:58
255,736,816
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
valor1 = int(input()) valor2 = int(input()) valor3 = int(input()) valor4 = int(input()) valor5 = int(input()) positivos = 0 negativos = 0 pares = 0 impares = 0 for valor in [valor1, valor2, valor3, valor4, valor5]: if valor > 0: positivos += 1 if valor < 0: negativos += 1 if valor % 2 == 0...
[ "ludanttas@gmail.com" ]
ludanttas@gmail.com
862d8a3ca39f798075f14ad549a35b883b69cf4e
fd1a6a8c27f3f7d91a1fa4a4914181f8ae0fd795
/易中标js破解(中低)/yibiaoparse.py
4b09382fa0e618bbb5b3f816d47e55860309f0a7
[]
no_license
heyanglin/js-
078fdaa7892dbe8a94d2965e3fd700c205e7a8ee
8c0b36b2df9c942f0c590c21e6696ab75de2a3a0
refs/heads/master
2020-07-05T14:24:56.565195
2019-12-19T04:26:51
2019-12-19T04:26:51
202,672,163
3
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
#!/usr/bin/env python #-*- coding:utf-8 -*- # author:Administrator # datetime:2019/6/19 10:57 # software: PyCharm import execjs import requests import json import os,io os.environ["EXECJS_RUNTIME"] = "Node" #生成js运行文件 with open('2.js','r') as f: jss = f.read() # print(jss) fun = execjs.compile(jss) page= """{"typ...
[ "someone@someplace.com" ]
someone@someplace.com
3a8a6742d44c4a2169d12e211ea01c4f92cca229
b805f0f0eed9c93ff564a719cb18de438a8572ee
/src/products/admin.py
f9f9c6aaa871a922d2ae3b74863216b0c40574a6
[ "MIT" ]
permissive
pratikbarjatya/ecommerce
1a3caae355d4dd06b4044fcce2d3fb48eae76034
e18ba50c33c4b8f96c57785027f30b396104c47c
refs/heads/master
2021-01-20T01:43:50.564162
2015-10-25T17:31:28
2015-10-25T17:31:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
from django.contrib import admin # Register your models here. from .models import Product,Variation,ProductImage,Category,ProductFeatured class ProductImageInline(admin.TabularInline): model=ProductImage extra=0 class VariationInline(admin.TabularInline): model=Variation extra=0 class ProductAdmin(admin.ModelA...
[ "abhijit.bangera@hotmail.com" ]
abhijit.bangera@hotmail.com
769e7d2055b1f12f280a29e7ebdd5b927ab628f7
99ed69aafb483b126f13fb8f0f5b31ad42e9829d
/pictures/urls.py
19bb0699b4eb77e54dc18cb184126955f3e0af81
[ "MIT" ]
permissive
Jackson-coder-arch/Instagram-pics
3aba5da42a7cf8486651f91410364d1eafbcb722
9b4332d9f3144c4f655a0bf1313f0c4ef9481c4f
refs/heads/master
2023-03-28T12:17:24.767827
2021-04-03T23:15:18
2021-04-03T23:15:18
351,892,988
0
0
null
null
null
null
UTF-8
Python
false
false
227
py
from django.urls import path,re_path from . import views urlpatterns = [ path('',views.home, name = 'home'), path('NewPost/',views.NewPost, name ='NewPost'), path('profile/',views.profile,name ='profile') ]
[ "jacksonikonya@gmail.com" ]
jacksonikonya@gmail.com
205155f6e5a48bf727a20d8fc592fec3365e0554
3be42b83a15d022f5863c96ec26e21bac0f7c27e
/spinoffs/oryx/oryx/experimental/__init__.py
2364b4ee11a23f4fefa3f7fd65193a83401b1011
[ "Apache-2.0" ]
permissive
ogrisel/probability
846f5c13cddee5cf167b215e651b7479003f15d2
8f67456798615f9bf60ced2ce6db5d3dba3515fe
refs/heads/master
2022-11-09T10:53:23.000918
2020-07-01T23:16:03
2020-07-01T23:17:25
276,580,359
2
1
Apache-2.0
2020-07-02T07:37:58
2020-07-02T07:37:57
null
UTF-8
Python
false
false
852
py
# Copyright 2020 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
4fa176b40ebe223d94a0b8fd292d2a84b55ae1d8
e3c8f786d09e311d6ea1cab50edde040bf1ea988
/Incident-Response/Tools/grr/grr/core/grr_response_core/lib/parsers/cron_file_parser_test.py
f2c76e65b62e96e7ef20d6f26c6135a88e905aed
[ "Apache-2.0", "MIT" ]
permissive
foss2cyber/Incident-Playbook
d1add8aec6e28a19e515754c6ce2e524d67f368e
a379a134c0c5af14df4ed2afa066c1626506b754
refs/heads/main
2023-06-07T09:16:27.876561
2021-07-07T03:48:54
2021-07-07T03:48:54
384,988,036
1
0
MIT
2021-07-11T15:45:31
2021-07-11T15:45:31
null
UTF-8
Python
false
false
1,306
py
#!/usr/bin/env python """Tests for grr.parsers.cron_file_parser.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import os from absl import app from grr_response_core.lib.parsers import cron_file_parser from grr_response_core.lib.rdfvalues import pat...
[ "a.songer@protonmail.com" ]
a.songer@protonmail.com
6eb47e6751955fabbe37ab1d26ad336f8bf3ec86
97def1949bca845f40a2fb99fe7496e698f51764
/examples/doc/samples/comparisons/cutstock/cutstock_lpsolve.py
a0a1c6de6dfd1616b7b64c59d7e7a5bf8f49ec6f
[ "BSD-3-Clause" ]
permissive
flexciton/pyomo
e009e5d300d27d943408a1ee5e0e1770d772a7fe
817bebc9c10f527263b2b8402fb1c038f1b37cf1
refs/heads/master
2023-03-03T08:56:22.922613
2022-01-18T15:22:57
2022-01-18T15:22:57
241,679,253
1
1
NOASSERTION
2022-04-11T16:48:48
2020-02-19T17:24:37
Python
UTF-8
Python
false
false
2,072
py
from lpsolve55 import * from cutstock_util import* # Reading in Data using the cutstock_util cutcount = getCutCount() patcount = getPatCount() Cuts = getCuts() Patterns = getPatterns() PriceSheet = getPriceSheetData() SheetsAvail = getSheetsAvail() CutDemand = getCutDemand() CutsInPattern = getCutsInPattern() ########...
[ "jsiirola@users.noreply.github.com" ]
jsiirola@users.noreply.github.com
73f4edde57e72fa7e63e4a92f229752ca1fc8510
2ebdbbf06978fd60f47933cfffd37a5a5460ee31
/Sect-A/source/sect07_class/s722_init_class.py
a5713295190ad89f453cb5131794fdb540b71b11
[]
no_license
lukejskim/sba19-seoulit
f55dd6279d44a7a235a9fa6c008c7f65045c9d0c
7652c2b718cb8f7efaeca7c2bdf7a5e699bccbce
refs/heads/master
2020-07-02T22:21:20.393202
2019-09-19T03:03:48
2019-09-19T03:03:48
201,684,313
1
0
null
null
null
null
UTF-8
Python
false
false
364
py
# 클래스 초기화 함수, __init__() 재정의 class MyClass: def __init__(self, name): # 초기화 함수 재정의 self.name = name def sayHello(self): hello = "Hello, " + self.name + "\t It's Good day !" print(hello) # 객체 생성, 인스턴스화 # myClass = MyClass() myClass = MyClass('채영') myClass.sayHello()
[ "bluenine52@gmail.com" ]
bluenine52@gmail.com
0be0ac7c19336cdca2defea65d64f98699597172
d5cc0c9f8d94e9d020b3e50c0a125d2041dd3baa
/AttendifySite(Flask)/env/lib/python3.6/site-packages/turicreate/data_structures/sarray_builder.py
001e211365f0220b1925c0e5a6334dd1fb301ca3
[ "MIT" ]
permissive
arnavgup/Attendify_iOS
be896579de4560cff36a4b163384d0eeabbb7dd9
c2efc3273a7b99c09d918567718ac87d7f0179d8
refs/heads/master
2022-10-31T13:16:11.081902
2018-12-09T00:11:42
2018-12-09T00:11:42
158,432,022
3
2
MIT
2022-10-10T10:53:53
2018-11-20T18:10:16
Swift
UTF-8
Python
false
false
4,372
py
# -*- coding: utf-8 -*- # Copyright © 2017 Apple Inc. All rights reserved. # # Use of this source code is governed by a BSD-3-clause license that can # be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause ''' An interface for creating an SArray over time. ''' from __future__ import print_...
[ "gyao@andrew.cmu.edu" ]
gyao@andrew.cmu.edu
a7906bf87088132f1a08cef90dff1ea329cfa1ed
c849b2d67cb4906d8ba8ea45aa7fce2170bbb46f
/sources/Tosafot Yom Tov/tosafot_yom_tov_on_tahorot.py
c8e933c838128950a497e2bc67e91ec41efe6186
[]
no_license
BenjaminKozuch/Sefaria-Data
8d7452ab7efc95f09ca44e658ee8df1ab2ca84a3
f154d79ed20f907aff8880c684536c22f970a8a5
refs/heads/master
2020-05-29T11:04:35.975262
2016-04-05T03:00:26
2016-04-05T03:00:26
54,200,952
0
0
null
2016-03-18T12:53:54
2016-03-18T12:53:54
null
UTF-8
Python
false
false
1,840
py
# -*- coding: utf-8 -*- import urllib import urllib2 from urllib2 import URLError, HTTPError import json import pdb import os import sys p = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, p) os.environ['DJANGO_SETTINGS_MODULE'] = "sefaria.settings" from local_settings import * sys.path...
[ "skaplan@brandeis.edu" ]
skaplan@brandeis.edu
3927ef4df50ddce90f329d071647ae915d3e27ae
78f3fe4a148c86ce9b80411a3433a49ccfdc02dd
/2017/07/millennial-vote-20170731/graphic_config.py
94b1323068174ac14ed698e7140ffa728e464d7e
[]
no_license
nprapps/graphics-archive
54cfc4d4d670aca4d71839d70f23a8bf645c692f
fe92cd061730496cb95c9df8fa624505c3b291f8
refs/heads/master
2023-03-04T11:35:36.413216
2023-02-26T23:26:48
2023-02-26T23:26:48
22,472,848
16
7
null
null
null
null
UTF-8
Python
false
false
305
py
#!/usr/bin/env python import base_filters COPY_GOOGLE_DOC_KEY = '17ZezeFdg7cYvdo04pV89-AcyMkSSsM_V27_4R2ykne4' USE_ASSETS = False # Use these variables to override the default cache timeouts for this graphic # DEFAULT_MAX_AGE = 20 # ASSETS_MAX_AGE = 300 JINJA_FILTER_FUNCTIONS = base_filters.FILTERS
[ "ahurt@npr.org" ]
ahurt@npr.org
ea9de5a0f9467ec173e776c67c0e3726fbc4e972
725ce8167897de0ffd42b97b7aefff43686b0d33
/barbados/caches/tablescan.py
cf8c65e77e36b7438733656b6ae9e607decfbee9
[]
no_license
vinceblake/barbados
a510424f82d77066b9b6fa0e1d4641cbbeb5f138
28b6c691e5c8150f51b8ee57a99239232b1417ef
refs/heads/master
2023-02-15T07:54:47.381960
2021-01-13T02:51:49
2021-01-13T02:51:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,261
py
import json from barbados.caches import Caches from barbados.caches.base import CacheBase from barbados.services.registry import Registry from barbados.services.cache import Cache from barbados.serializers import ObjectSerializer from barbados.models.cocktailmodel import CocktailModel from barbados.models.inventorymod...
[ "grant@grantcohoe.com" ]
grant@grantcohoe.com
2aef79885420e7847ba448d8f8a082511c15a162
4c852fab792606580acb3f3a61b7f86ae25930b0
/Python/MIT-CompThinking/MITx600.1x/ProblemSets/theof/printing out all available letters.py
dd1d06b519f64693fb90a40e66cecf0d0e339e61
[]
no_license
hmchen47/Programming
a9767a78a35c0844a1366391f48b205ff1588591
9637e586eee5c3c751c96bfc5bc1d098ea5b331c
refs/heads/master
2022-05-01T01:57:46.573136
2021-08-09T04:29:40
2021-08-09T04:29:40
118,053,509
2
1
null
2021-09-20T19:54:02
2018-01-19T00:06:04
Python
UTF-8
Python
false
false
650
py
#!/usr/bin/env python # _*_ coding = UTF-8 _*_ def getAvailableLetters(lettersGuessed): ''' lettersGuessed: list, what letters have been guessed so far returns: string, comprised of letters that represents what letters have not yet been guessed. ''' # FILL IN YOUR CODE HERE... L2 = [] ...
[ "h.m.chen@ieee.org" ]
h.m.chen@ieee.org
335a6acaca425ac8950b4095a444908a724f8a8f
07d73cb816ad1d35c7a96935ed8d4c9fad9e03da
/{{cookiecutter.project_name}}/bin/update
849d75d4da1ad611ee60f500ae7f193f7a510c82
[ "MIT", "Unlicense" ]
permissive
mkell43/template-python
a11eb8294d916567e5d50ff34abe2e5eab943931
3efcb0a5837cfe5b53c5a7761732df916ed64bd7
refs/heads/main
2023-07-16T02:56:55.203305
2021-08-18T18:58:35
2021-08-18T18:58:35
398,657,388
0
0
Unlicense
2021-08-21T21:13:27
2021-08-21T21:13:26
null
UTF-8
Python
false
false
2,051
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import importlib import tempfile import shutil import subprocess import sys CWD = os.getcwd() TMP = tempfile.gettempdir() CONFIG = { "full_name": "{{ cookiecutter.full_name }}", "email": "{{ cookiecutter.email }}", "github_username": "{{ cookiecutter...
[ "jacebrowning@gmail.com" ]
jacebrowning@gmail.com
065fb3d6006b67322a915670b180ffe5efba5694
db9463b7271c5a88f473390f393fbc5f00b6f46b
/visbrain/utils/tests/test_others.py
37a60c9de6af5f5218c065bc0f3957d04540ca77
[ "BSD-3-Clause" ]
permissive
lassemadsen/visbrain
6fbee27acaa46741899782a2ba347f6050275411
be096aa8a7058c329e7120d0bdb45d3c9eb8be42
refs/heads/master
2022-11-08T05:00:21.857939
2022-10-25T10:33:36
2022-10-25T10:33:36
191,604,064
0
0
NOASSERTION
2019-06-12T16:05:22
2019-06-12T16:05:21
null
UTF-8
Python
false
false
566
py
"""Test functions in others.py.""" from visbrain.utils.others import (get_dsf, set_if_not_none) class TestOthers(object): """Test functions in others.py.""" def test_get_dsf(self): """Test function get_dsf.""" assert get_dsf(100, 1000.) == (10, 100.) assert get_dsf(100, None) == (1, 1...
[ "e.combrisson@gmail.com" ]
e.combrisson@gmail.com
fa1812af10cf0f984d450fedbc15640cf16be484
1f51c4e89a71ea3fcc2cc921613aacc19e078b69
/14_Introduction to Importing Data in Python-(part-1)/02_Importing data from other file types/13_loading-mat-files.py
79ee9f57f5e58d78452f6efc7cc604fe998745c0
[ "MIT" ]
permissive
CodeHemP/CAREER-TRACK-Data-Scientist-with-Python
871bafbd21c4e754beba31505965572dd8457adc
13ebb10cf9083343056d5b782957241de1d595f9
refs/heads/main
2023-03-26T08:43:37.054410
2021-03-22T15:08:12
2021-03-22T15:08:12
471,015,287
1
0
MIT
2022-03-17T13:52:32
2022-03-17T13:52:31
null
UTF-8
Python
false
false
775
py
''' 13 - Loading .mat file In this exercise, you'll figure out how to load a MATLAB file using scipy.io.loadmat() and you'll discover what Python datatype it yields. The file 'albeck_gene_expression.mat' is in your working directory. This file contains gene expression data from the Albeck Lab at UC Davis. You can fin...
[ "ifaizymohd@gmail.com" ]
ifaizymohd@gmail.com
702ae2e137a34f2c9eac6d52110d38a6f60ade83
5f2b22d4ffec7fc1a4e40932acac30256f63d812
/analysis-of-legal-documents/project/process/cnews_loader_withoutSeqLens.py
bdc9b80dfb3188f3ceee15a1a35c7055208b4ff7
[]
no_license
Thpffcj/Python-Learning
45734dd31e4d8d047eec5c5d26309bc7449bfd0d
5dacac6d33fcb7c034ecf5be58d02f506fd1d6ad
refs/heads/master
2023-08-04T21:02:36.984616
2021-09-21T01:30:04
2021-09-21T01:30:04
111,358,872
6
0
null
null
null
null
UTF-8
Python
false
false
4,648
py
# coding: utf-8 import sys from collections import Counter import numpy as np import tensorflow.contrib.keras as kr if sys.version_info[0] > 2: is_py3 = True else: reload(sys) sys.setdefaultencoding("utf-8") is_py3 = False def native_word(word, encoding='utf-8'): """如果在python2下...
[ "1441732331@qq.com" ]
1441732331@qq.com
2f2d6c104a4727cc6ace6c9678d9dc45d95d1401
eafc5b935d0f086dffbcfe1516ba05ab6ce18540
/source/w3c/demo_mysql_show_databases.py
30ea6b4eae940c951db24e9548276bc018c5d252
[]
no_license
YaooXu/Software_test
1df4195da7dab6f05862afe458c10b1bee1dcaf8
936dda4de0a1bcf6cfc87d5148f6219b625a99fe
refs/heads/master
2020-11-28T04:09:58.724233
2020-01-19T13:50:38
2020-01-19T13:50:38
229,699,216
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
import mysql.connector mydb = mysql.connector.connect( host="localhost", user="myusername", passwd="mypassword" ) mycursor = mydb.cursor() mycursor.execute("SHOW DATABASES") for x in mycursor: print(x)
[ "yuanruize@sina.com" ]
yuanruize@sina.com
a5af8ae75f4ece2c26d59e219306eb61266a2f0c
39b0d9c6df77671f540c619aff170441f953202a
/PYTHON LIBRARY/SUB_3/pathlib_symlink_to.py
48a4dcc8bef3c8cf48f9e42a1e86301f9be8596e
[]
no_license
yeboahd24/Python201
e7d65333f343d9978efff6bf86ce0447d3a40d70
484e66a52d4e706b8478473347732e23998c93c5
refs/heads/main
2023-02-06T10:24:25.429718
2020-12-26T01:08:04
2020-12-26T01:08:04
306,487,550
2
0
null
null
null
null
UTF-8
Python
false
false
278
py
# Use symlink_to() to create a symbolic link. The link will be named based on the path’s # value and will refer to the name given as an argument to symlink_to(). import pathlib p = pathlib.Path('example_link') p.symlink_to('index.txt') print(p) print(p.resolve().name)
[ "noreply@github.com" ]
yeboahd24.noreply@github.com
2f84648acb1917f62b8824fdb5590a908a1fca86
12e956d80079f2808aae687b2cfbe1384deb35e2
/api/views.py
1cc372f8d8cfb23489216446a98295069a7bedc7
[]
no_license
khushal111/Patient_Doctor_App
e141a16c09fd400b5abd5b849ebe02073b6082b9
5964c242d06023cbe34b9d5d0a16c6228ed5b734
refs/heads/master
2022-06-29T03:14:26.743811
2019-11-07T17:45:24
2019-11-07T17:45:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
293
py
from django.shortcuts import render from .models import Prescription from .serializers import PrescriptionSerializer from rest_framework import viewsets class PrescriptionViewSet(viewsets.ModelViewSet): serializer_class = PrescriptionSerializer queryset = Prescription.objects.all()
[ "kylemaa95@gmail.com" ]
kylemaa95@gmail.com
de182fe89d8bc26cd4f9eb12b282489dc1e77349
150464efa69db3abf328ef8cd912e8e248c633e6
/_4.python/__code/Python自學聖經(第二版)/ch33/filewrite/filewrite.py
9bc15311d12904f928cb141311e56326bb751810
[]
no_license
bunshue/vcs
2d194906b7e8c077f813b02f2edc70c4b197ab2b
d9a994e3afbb9ea84cc01284934c39860fea1061
refs/heads/master
2023-08-23T22:53:08.303457
2023-08-23T13:02:34
2023-08-23T13:02:34
127,182,360
6
3
null
2023-05-22T21:33:09
2018-03-28T18:33:23
C#
UTF-8
Python
false
false
713
py
import os, sys def base_path(path): if getattr(sys, 'frozen', None): basedir = sys._MEIPASS else: basedir = os.path.dirname(__file__) return os.path.join(basedir, path) tmp=base_path("") #取得暫存目錄 cwd=os.getcwd() #取得目前的工作目錄 file1="file1.txt" file2=os.path.join(tmp,"file2.txt") file3=os.pat...
[ "david@insighteyes.com" ]
david@insighteyes.com
de09319ec0e8ac2dc77f7838a59b05565e829784
8fcc27160f8700be46296568260fa0017a0b3004
/client/defaultRangeUtils.py
26a406861d88271fddf15189e16a4244d7860242
[]
no_license
connoryang/dec-eve-serenity
5d867f4eedfa896a4ef60f92556356cafd632c96
b670aec7c8b4514fc47cd52e186d7ccf3aabb69e
refs/heads/master
2021-01-22T06:33:16.303760
2016-03-16T15:15:32
2016-03-16T15:15:32
56,389,750
1
0
null
2016-04-16T15:05:24
2016-04-16T15:05:24
null
UTF-8
Python
false
false
300
py
#Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\eve\common\modules\nice\client\_nastyspace\defaultRangeUtils.py from eve.client.script.ui.util.defaultRangeUtils import FetchRangeSetting from eve.client.script.ui.util.defaultRangeUtils import UpdateRangeSetting
[ "masaho.shiro@gmail.com" ]
masaho.shiro@gmail.com
fb2d0a433f46dfef15d4ed2718491bf49c53bc61
6a609bc67d6a271c1bd26885ce90b3332995143c
/exercises/math/fast_power.py
5d59cee28aa49b1fcc93768bb25df40530f28039
[]
no_license
nahgnaw/data-structure
1c38b3f7e4953462c5c46310b53912a6e3bced9b
18ed31a3edf20a3e5a0b7a0b56acca5b98939693
refs/heads/master
2020-04-05T18:33:46.321909
2016-07-29T21:14:12
2016-07-29T21:14:12
44,650,911
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# -*- coding: utf-8 -*- """ Calculate the a^n % b where a, b and n are all 32bit integers. Example For 2^31 % 3 = 2 For 100^1000 % 1000 = 0 Challenge O(logn) """ class Solution: """ @param a, b, n: 32bit integers @return: An integer """ def fastPower(self, a, b, n): if n == 1: ...
[ "wanghan15@gmail.com" ]
wanghan15@gmail.com
6fde1ae6e4c647c4fde009202a3e94db05805c30
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_interlinking.py
affa9fb8d987c586a7f8143611a47511eb6e2d67
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from xai.brain.wordbase.verbs._interlink import _INTERLINK #calss header class _INTERLINKING(_INTERLINK, ): def __init__(self,): _INTERLINK.__init__(self) self.name = "INTERLINKING" self.specie = 'verbs' self.basic = "interlink" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
233e04fcf6506d8a3ffcee5406e8061482bbf178
1adc05008f0caa9a81cc4fc3a737fcbcebb68995
/hardhat/recipes/python/lxml.py
e2170e0115cfd92004cf74afa4ff88b7961d1972
[ "MIT", "BSD-3-Clause" ]
permissive
stangelandcl/hardhat
4aa995518697d19b179c64751108963fa656cfca
1ad0c5dec16728c0243023acb9594f435ef18f9c
refs/heads/master
2021-01-11T17:19:41.988477
2019-03-22T22:18:44
2019-03-22T22:18:52
79,742,340
0
0
null
null
null
null
UTF-8
Python
false
false
366
py
from .base import PipBaseRecipe class LxmlRecipe(PipBaseRecipe): def __init__(self, *args, **kwargs): super(LxmlRecipe, self).__init__(*args, **kwargs) self.sha256 = '736f72be15caad8116891eb6aa4a078b' \ '590d231fdc63818c40c21624ac71db96' self.name = 'lxml' sel...
[ "clayton.stangeland@gmail.com" ]
clayton.stangeland@gmail.com
56929c26fc1cf02790a98401f43424fa08ca800e
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2019_06_01/aio/_container_service_client.py
e859946dcaf202e06e448c829e00e8209b572eb0
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
4,898
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" ]
test-repo-billy.noreply@github.com
68a1455380858827d9d8af0bc4cc0ed58d3db25b
0bd7c1f7bf6da5ef92b9013e1d913140f0249dfa
/cecilia-python/greedy-thinking/MaxProfit-Ⅱ.py
fa987195663b384497d5d5818948131fd456811e
[]
no_license
Cecilia520/algorithmic-learning-leetcode
f1fec1fae71c4cf7410122f5ce969e829f451308
32941ee052d0985a9569441d314378700ff4d225
refs/heads/master
2022-05-02T03:00:57.505672
2022-03-19T09:51:28
2022-03-19T09:51:28
229,673,810
7
1
null
2022-03-19T09:34:57
2019-12-23T04:04:04
Python
UTF-8
Python
false
false
2,586
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- """ @File : MaxProfit-Ⅱ.py @Contact : 70904372cecilia@gmail.com @License : (C)Copyright 2019-2020 @Modify Time @Author @Version @Desciption ------------ ------- -------- ----------- 2020/2/5 12:48 cecilia 1.0 买卖股票的最佳时机Ⅱ(简单...
[ "cc15572018516@163.com" ]
cc15572018516@163.com
b201ee6feb1416bd3cbda627e72d8e88d5850c0c
d4dda2e2992ca16b8fe628e417f8a4243af0ed4a
/step13_offdiagonalLHEstudy/getsmearing.py
5cfca6ec5e81bf48a0275a1aed1d0eb2a722cf79
[]
no_license
hroskes/anomalouscouplings
01f46c0d38f5332c58538b0bdea373704cf06fcc
391eb7fbd52d8605b09ca2e461b1789e019b1da0
refs/heads/production
2021-11-24T22:37:48.932830
2021-10-29T18:38:54
2021-10-29T18:38:54
60,651,233
0
2
null
2017-01-24T14:20:56
2016-06-07T22:37:23
Python
UTF-8
Python
false
false
7,019
py
#!/usr/bin/env python import os import ROOT from helperstuff import config from helperstuff.samples import Sample from helperstuff.utilities import cache, mkdir_p, tfiles, tlvfromptetaphim TF1 = cache(ROOT.TF1) s = Sample("VBF", "0+", config.productionforcombine) f = tfiles[s.withdiscriminantsfile()] t = f.candTr...
[ "jroskes1@jhu.edu" ]
jroskes1@jhu.edu
7d12a67de1a5c944cff5b801c157aed83ebebbf3
800af8d10309c2c0bb1a55f9aeaa501475cab559
/status_app/receivers.py
8b537798311225c59a12b6a13146381478e9c59d
[ "Apache-2.0" ]
permissive
vegitron/status-app
2ca0862fb7daf4b05adcc4dac6bf743008746abd
2bafcaf94aa50e443d6521de204da7e27b4d8ac7
refs/heads/master
2020-04-13T19:55:26.941839
2014-04-10T23:28:23
2014-04-10T23:28:23
null
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
from status_app.signals import request_signal from status_app.dispatch import dispatch from status_app.models import RawEvent from django.dispatch import receiver from datetime import datetime import socket def request_receiver(sender, status_code, path_info, request_time, **kwargs): if status_code >= 200 and stat...
[ "pmichaud@uw.edu" ]
pmichaud@uw.edu
cafc8b76a370cd5d56727b8016d1b128aa1559a9
71bec5b969aa3c9f40f839cff24ac598d8f7fd28
/DomeOne/DomeTornadoQuery.py
3501946537a1c1f6035212e30a0e6ce64071b759
[]
no_license
dong-c-git/TornadoProjectDome
6c3ba2f69c333c30bbdf723dd750ce0118436a09
4124fe36f409a87b4615eafd9ba59dabc21a12f6
refs/heads/master
2020-08-17T20:11:57.250887
2019-11-01T04:46:22
2019-11-01T04:46:22
215,706,907
0
0
null
null
null
null
UTF-8
Python
false
false
1,864
py
#coding:utf-8 import tornado.web import tornado.ioloop import tornado.options from tornado.web import MissingArgumentError import tornado.httpserver #tornado获取数据类型方法模型 tornado.options.define("port",default=8090,type=int,help="need runserver give port") class IndexHandler(tornado.web.RequestHandler): """访问首页""" ...
[ "dc111000@hotmail.com" ]
dc111000@hotmail.com
5acc3e2a04a63b176b35628dea94a3af18ae9626
c04fb2e9ee96987b308cd60defb179f800486858
/_unittests/ut_documentation/test_notebook_cheat_sheet_html.py
c287e6ab4a557832a54e5343e74a39d6c73816e3
[ "MIT" ]
permissive
sdpython/ensae_projects
ca30304e04c938b1d79abef5e54dac0dc531421f
36033021726144e66fd420cc902f32187a650b18
refs/heads/master
2023-02-08T01:32:47.892757
2023-02-02T00:18:00
2023-02-02T00:18:00
45,864,036
1
0
null
null
null
null
UTF-8
Python
false
false
1,674
py
# -*- coding: utf-8 -*- """ @brief test log(time=32s) """ import sys import os import unittest import shutil from pyquickhelper.loghelper import fLOG from pyquickhelper.pycode import get_temp_folder, is_travis_or_appveyor from pyquickhelper.pycode import fix_tkinter_issues_virtualenv from pyquickhelper.ipythonhel...
[ "xavier.dupre@gmail.com" ]
xavier.dupre@gmail.com
fb4b6effdfe059fec31fd68302a5b80865c22312
879df09d88e0a0db13c05ae9be9f4561197ac06e
/settings.py
4a824c3c11b61dc139c9698b85d3ca041d5cf29b
[ "MIT" ]
permissive
prateeknagpal/crypto-trader
240b6515ce31c1c67635d1284a96db2818989bab
7f2db4dbc66f080f9e72399031c081093aefc1ba
refs/heads/master
2021-09-01T22:20:53.025411
2017-12-28T22:11:28
2017-12-28T22:11:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,334
py
import os from decimal import Decimal API_VERSION = 1 API_URL = 'https://api.gemini.com' API_WS_URL = 'wss://api.gemini.com' STARTING_NONCE = 800 # must always increase incrementally SYMBOL = 'ethusd' # currency pair to trade POLL_DELAY = 30 # runloop interval in s...
[ "git@nicksweeting.com" ]
git@nicksweeting.com
33a9c0319e08a8b7003a880482162b1368ca8458
37d4af0a33d47d6b264acb769a276a500871ab90
/Python_Code_Beginner/07_语法进阶/hm_03_全局变量.py
c698dde858327048a610c338650901b68ed452d8
[]
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
147
py
#全局变量 num = 10 def demo1(): print("demo1 ==> %d" % num) def demo2(): print("demo2 ==> %d" % num) demo1() demo2()
[ "yinzhijian2018@163.com" ]
yinzhijian2018@163.com
30c8cb418a4fa444872b6d5bcdc2a135eb4ac4d2
0c466d2632b4c85f2cf0312e94ee826867039bc6
/tests/conftest.py
f1394cf45d937fa5d0a868eaedadc268640de372
[ "Apache-2.0" ]
permissive
rst0git/pytest-salt-factories
6c917c9749b6eed92dcdc5cac411d9db83608d7f
d614c15700327e0d03a7464f4076523b93357857
refs/heads/master
2022-11-24T20:41:03.138928
2020-07-29T17:24:07
2020-07-29T17:24:07
282,475,745
0
0
null
2020-07-25T15:52:59
2020-07-25T15:52:58
null
UTF-8
Python
false
false
2,316
py
import functools import logging import os import stat import tempfile import textwrap import pytest import salt.version log = logging.getLogger(__name__) pytest_plugins = ["pytester"] def pytest_report_header(): return "salt-version: {}".format(salt.version.__version__) class Tempfiles: """ Class whi...
[ "pedro@algarvio.me" ]
pedro@algarvio.me
9db38d413747215cf959508e754da4cbf30e1ba7
de9b8b7192a0a81e9249823bb2b86f0b7e452863
/.history/classes/Handler_20171107110755.py
c6aa301d0a2f1cbd3fc1178b1fa74d6704968c24
[ "MIT" ]
permissive
reecebenson/uwe-dadsa-tennis-a
f5eaeb1b96d4e61f29279514e68eeea8ad6533db
d0763f819b300fcd0ce27041f5bc4ef0519c00bf
refs/heads/master
2023-07-08T16:13:23.963348
2017-11-30T12:07:01
2017-11-30T12:07:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,270
py
# DADSA - Assignment 1 # Reece Benson import json import random from math import ceil, floor from classes import Player from classes import Season from classes import Tournament from classes import Round from classes import Match class Handler(): # Define the variables we will be using app = None prize_mo...
[ "business@reecebenson.me" ]
business@reecebenson.me
1dfa2fdb959acac2846a946ecd49380c5954d3c5
78d7d7aeb78a8cea6d0e10b89fc4aa6c46c95227
/2226.py
52c964524b018bed57f7213a24f68afd26aaddff
[]
no_license
GenryEden/kpolyakovName
97db13ef93061a8c2afc6cc5acd91337f79063f1
c5d7f631ae7ec8770e56170574b82ea2b7d8a4d9
refs/heads/master
2023-05-23T21:22:51.983756
2021-06-21T08:56:49
2021-06-21T08:56:49
350,466,773
0
0
null
null
null
null
UTF-8
Python
false
false
145
py
def toCountSystem(x, y): ans = '' while x: ans += str(x % y) x //=y return ans[::-1] print(toCountSystem(9**9 + 3**21 - 7, 3).count('0'))
[ "a926788@gmail.com" ]
a926788@gmail.com
7e08d310b39198d59087ba94ec915a777c101447
a2fae6522c0526e81032d700e750dbc4b55e308b
/twemoir/lib/adminfields/widgets.py
05702f365ff10dd8bbd84727dcc1eb164d28b411
[]
no_license
fish2000/django-twemoir
e895039e4ecd0a01baa9e35002fe0e00e20f6a4f
8caa7e5319055f54e0d89457780605994622e8d9
refs/heads/master
2020-06-05T13:16:47.036385
2014-01-21T02:42:30
2014-01-21T02:42:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,054
py
import simplejson from django.forms import Widget from django.utils.encoding import force_unicode from django.utils.safestring import mark_safe from django.forms.widgets import flatatt class JsonPairInputs(Widget): """ :author: Huy Nguyen A widget that displays JSON Key Value Pairs as a list of text i...
[ "fish2000@gmail.com" ]
fish2000@gmail.com
86b9aa05550020a91166857df0221582f99bafbf
590126fdbce9d0f92d6c49722c1a953b06e7a4d5
/aat/exchange/exchange.py
5d6d4313b8668c578f16f27f38b09ffa8ad0522a
[ "Apache-2.0" ]
permissive
galdamour/aat
666fda492f0d13e5658d4f778fdbfdc4cdc321de
458cb1ac33878a76bd9bf844e8362a5a0a9ec291
refs/heads/master
2023-01-11T05:32:42.086921
2020-11-16T16:40:54
2020-11-16T16:40:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,541
py
from abc import abstractmethod from .base.market_data import _MarketData from .base.order_entry import _OrderEntry _EXCHANGES = {} class Exchange(_MarketData, _OrderEntry): '''Generic representation of an exchange. There are two primary functionalities of an exchange. Market Data Source: exchanges ...
[ "t.paine154@gmail.com" ]
t.paine154@gmail.com
5691bf63eeb65a0f6313e9b740c2eb8a3b14b60c
401c6b56c22c762a88a46ce70a35a8d19f0fb863
/Libs/Oryx.Web.Core.WebInstance/OryxWeb/wwwroot/Chat/chat-master/tests/test_semantic.py
ab8a21d8e90522154aa7516e53f8881e038a7dcf
[ "MIT" ]
permissive
OryxLib/Oryx.FastAdmin
5f42993e3d7a1a61439a9efd2ee5889bbba6875c
b798d534baf3a07c8bff72e1a80faba119296cb6
refs/heads/master
2022-12-10T19:58:33.381271
2020-04-15T15:46:46
2020-04-15T15:46:46
255,535,071
3
2
null
2022-12-08T10:09:40
2020-04-14T07:03:15
C#
UTF-8
Python
false
false
2,513
py
# -*- coding: utf-8 -*- import sys sys.path.append("../") from unittest import TestCase, main from chat.semantic import synonym_cut, similarity, similarity2, build_semantic_matrix from chat.mytools import time_me class TestMe(TestCase): def setUp(self): pass @time_me() def test_similarity(self): ...
[ "407815932@qq.com" ]
407815932@qq.com
a042776fb0942df15cc3e28901ae082c4d7fe0a3
2218e1da5cb944e4509f8641ca051de137645c5e
/LeetCode practice/Top 100/77.combine.py
ab72990344fa03dc58b3f19fe2588873033fee6f
[]
no_license
Hegemony/Python-Practice
9e76ebb414433e51c2074602fb0a871891647839
b68ea41688e9e305635c63fdc43402e2b6fe6524
refs/heads/main
2023-05-05T14:00:59.921803
2021-06-01T15:38:30
2021-06-01T15:38:30
301,602,659
0
0
null
null
null
null
UTF-8
Python
false
false
509
py
class Solution: def combine(self, n: int, k: int): nums = [i + 1 for i in range(n)] res = [] def dfs(path, result): if len(path) == k: res.append(list(path)) return for i in range(len(result)): path.append(res...
[ "noreply@github.com" ]
Hegemony.noreply@github.com
9d71d7dc901c16a0974b3b44d71e98018617359f
dfd0797c88aec7b02866d3c559cb1bc64ce87b44
/Chapter 9 - Classes/9-11 Imported_Admin.py
e4c7baedb57267181d77835059dec5bdc4cefd2c
[]
no_license
8BitJustin/2020-Python-Crash-Course
d97f9b79c7a1e1c88c9bc2b035b0e98b2ef23025
1f078d7fa62e2b07f8d6c01f85e60baed8293779
refs/heads/master
2020-12-20T00:19:44.173143
2020-06-14T18:42:08
2020-06-14T18:42:08
235,893,110
0
1
null
null
null
null
UTF-8
Python
false
false
1,097
py
""" Start with your work from Exercise 9-8. Store the classes User, Privileges, and Admin in one module. Create a separate file, make an Admin instance, and call show_privileges() to show that everything is working correctly """ # Imported specific class (Admin) from user_module module from user_module import Admin #...
[ "j.olson.digital@gmail.com" ]
j.olson.digital@gmail.com
217f1a826831df2df46f299e04687a86a0071b73
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/138/usersdata/224/52701/submittedfiles/volumeTV.py
4330c4185b1d9894c3e8f74c13da563d89f1168c
[]
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
364
py
# -*- coding: utf-8 -*- v=int(input('Volume inicial: ')) t=int(input('Numero de trocas: ')) soma=0 f=0 for i in range(1,t+1,1): x=float(input('Digite o novo valor: ')) while soma+v<100: soma=soma+x soma=soma+1 if (soma+v)>100: soma=100+x f=soma+v print(f) ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
c573390d969c45e825f56c0c47303210f5f54069
c4c159a21d2f1ea0d7dfaa965aeff01c8ef70dce
/flask/flaskenv/Lib/site-packages/pip/_internal/utils/compat.py
bdbe668e8be325a31f213285c178e2079c2ca3fd
[]
no_license
AhsonAslam/webapi
54cf7466aac4685da1105f9fb84c686e38f92121
1b2bfa4614e7afdc57c9210b0674506ea70b20b5
refs/heads/master
2020-07-27T06:05:36.057953
2019-09-17T06:35:33
2019-09-17T06:35:33
208,895,450
0
0
null
null
null
null
UTF-8
Python
false
false
129
py
version https://git-lfs.github.com/spec/v1 oid sha256:e268be7334f2b33e4e72eabee4ae81bc84828a2ebf6a0c8dc2404f36d2a061f3 size 9596
[ "github@cuba12345" ]
github@cuba12345
ed99964064e075f5b68ac99ec5f52a6602c7edfa
4c733e36833100685e6fae445a98676182275145
/inctax.py
bbb25914d755ba6065f9d44cc36b7159063ba1fd
[ "CC0-1.0", "LicenseRef-scancode-public-domain" ]
permissive
GoFroggyRun/taxcalc-ghost
36d29d81024f18b4232be88f84a51e25e4b6844a
a03affdc6f6a064b2f607ec9f2f7de667b5d9858
refs/heads/master
2021-01-10T17:32:56.752078
2016-03-21T17:22:42
2016-03-21T17:22:42
52,900,916
0
1
null
2016-03-21T17:22:42
2016-03-01T18:45:12
Python
UTF-8
Python
false
false
6,143
py
""" INCome TAX input-output capabilities for Tax-Calculator. """ # CODING-STYLE CHECKS: # pep8 --ignore=E402 inctax.py # pylint --disable=locally-disabled inctax.py # (when importing numpy, add "--extension-pkg-whitelist=numpy" pylint option) import argparse import sys from taxcalc import IncomeTaxIO def main(): ...
[ "martin.holmer@gmail.com" ]
martin.holmer@gmail.com
be375352f73f8ca216f943d0e938d1f7f484b7e3
c93fc506c39e002ae67bc380a365d1f33d5ac386
/supervised_learning/models/pin_position/edge_predict/train_with_data_fnn.py
61ca43cde4e9374082d9f4be9430fd88878cc4b3
[]
no_license
quantumiracle/store3
9f1f2d5c7103b3ded5e556854e111701e8104ccb
8b553c657c4efa6391547913831be5756a09924a
refs/heads/master
2020-07-25T02:09:17.528485
2019-09-15T21:48:31
2019-09-15T21:48:31
208,126,183
0
0
null
null
null
null
UTF-8
Python
false
false
5,891
py
""" pure vector observation based learning: position of tactip and target task: tactip following the cylinder to reach the ball target use 382 pins """ import tensorflow as tf # from tensorflow.keras.layers import Conv2D, MaxPooling2D, Flatten from tensorflow.python.keras.layers import Conv2D, MaxPooling2D, Flatten im...
[ "1402434478@qq.com" ]
1402434478@qq.com
2a08847d1a4c5afc6f9242526a20c18f304652f7
a5a99f646e371b45974a6fb6ccc06b0a674818f2
/RecoEgamma/EgammaHFProducers/python/hfClusterShapes_cfi.py
284de7823cb9863138c4bfc4645b9b29b1e096fd
[ "Apache-2.0" ]
permissive
cms-sw/cmssw
4ecd2c1105d59c66d385551230542c6615b9ab58
19c178740257eb48367778593da55dcad08b7a4f
refs/heads/master
2023-08-23T21:57:42.491143
2023-08-22T20:22:40
2023-08-22T20:22:40
10,969,551
1,006
3,696
Apache-2.0
2023-09-14T19:14:28
2013-06-26T14:09:07
C++
UTF-8
Python
false
false
731
py
import FWCore.ParameterSet.Config as cms # HFEMClusterShape producer hfEMClusters = cms.EDProducer("HFEMClusterProducer", hits = cms.InputTag("hfreco"), minTowerEnergy = cms.double(4.0), seedThresholdET = cms.double(5.0), ...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
d14ebc07ab2006ac2b7441d8b84c1ddcf1c557a9
edb88981aa1420af7e074068ed7818b9d904a3dd
/trunk/minds/util/patterns_tester.py
b1f5e484e945b74cdc21aec4745075e1fc83562b
[]
no_license
BackupTheBerlios/mindretrieve-svn
101c0f1dfc25d20d5f828b6fd0d43301b773af4e
463745fcf1c1d5b1f6c201c30bcc339c99b437ed
refs/heads/master
2021-01-22T13:57:31.225772
2006-04-28T04:24:43
2006-04-28T04:24:43
40,801,743
0
0
null
null
null
null
UTF-8
Python
false
false
4,352
py
""" Look for a series of patterns in a file object. This is used as a helper to unit testing. """ import re from StringIO import StringIO import sys import unittest # this is a debugging aid. Can we make it easier to activate? def _debug_mismatch(data, i, pattern): left = max(0,i-10) print >>sys.stderr, data[...
[ "tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990" ]
tungwaiyip@785ff9d5-dded-0310-b5f2-a5aff206d990
53192f430b8060cf4c1bfb05a71a5d1b8e0f0bee
570ca07ec6266c875dc736a3d8c4b4ddc61579fd
/todo/views.py
fd8a700e8d825928ff8bdb4cdf3696834f14d36c
[ "MIT" ]
permissive
Wilo/to-do-list
85024a59a0f8192a419297e66a69b0e31df45b43
185c0025a3b8a1e44adb1842c7e49af5062507a3
refs/heads/master
2021-01-17T05:42:56.683726
2014-08-02T20:47:15
2014-08-02T20:47:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,316
py
from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect from django.shortcuts import render from forms import * from models import * # Create your views here. def list(request): todo = Todo.objects.all() return render(request, 'index.html', {'list': todo}) def add(request): ...
[ "leonardoorozcop@gmail.com" ]
leonardoorozcop@gmail.com
cd9ccb5e2390a834796c340271af293d646cd570
8ad2e97aed97d581487f2b604c10264a52022253
/people/items.py
9d711c1252cdace2b3ace584b15b574a7be895a3
[]
no_license
SimeonYS/people
9aca784793a7ae7762b788878ff1fcb7ee511ba5
a24b19c1282cb57f8b0dab9424e957a0d71d2bff
refs/heads/main
2023-03-26T20:02:59.275628
2021-03-23T14:09:54
2021-03-23T14:09:54
350,736,734
0
0
null
null
null
null
UTF-8
Python
false
false
155
py
import scrapy class PeopleItem(scrapy.Item): title = scrapy.Field() content = scrapy.Field() date = scrapy.Field() link = scrapy.Field()
[ "simeon.simeonov@ADPVT.com" ]
simeon.simeonov@ADPVT.com
18d3f0a11f1b03da2aa4b0647595191a42d5c7ea
b0f2c47881f39ceb5a989b9638483f7439bfb5cf
/Problem85.py
e1438a737933a65d31f6e5622f7f1748dc8b5611
[]
no_license
chrisvail/Project_Euler
9ba264c8ec9d158b33ec677811e59d1e0e52fef2
41623c27b3e1344f9d8ebdfac4df297d0666cc07
refs/heads/main
2023-02-13T20:26:42.752780
2021-01-15T16:38:27
2021-01-15T16:38:27
329,964,440
0
0
null
null
null
null
UTF-8
Python
false
false
662
py
from itertools import count def main(): best = [2000000, 0 , 0] for n in count(1): for m in range(n + 1): total = sum([sum([(n + 1 - x) * (m + 1 - y) for x in range(1, n + 1)]) for y in range(1, m + 1)]) if abs(total - 2000000) < best[0]: best = [abs(...
[ "noreply@github.com" ]
chrisvail.noreply@github.com
1f3646b5f84c6d011827e3285f63bde47ff349cf
e41651d8f9b5d260b800136672c70cb85c3b80ff
/Notification_System/temboo/Library/Google/Spreadsheets/UpdateWorksheet.py
eaffb1484ed80159e3bb8320808a69eac7555076
[]
no_license
shriswissfed/GPS-tracking-system
43e667fe3d00aa8e65e86d50a4f776fcb06e8c5c
1c5e90a483386bd2e5c5f48f7c5b306cd5f17965
refs/heads/master
2020-05-23T03:06:46.484473
2018-10-03T08:50:00
2018-10-03T08:50:00
55,578,217
1
0
null
null
null
null
UTF-8
Python
false
false
6,673
py
# -*- coding: utf-8 -*- ############################################################################### # # UpdateWorksheet # Updates existing worksheet metadata such as: Title, Row Count, and Column Count. # # Python versions 2.6, 2.7, 3.x # # Copyright 2014, Temboo Inc. # # Licensed under the Apache License, Version...
[ "shriswissfed@gmail.com" ]
shriswissfed@gmail.com
52e2db735ddcef06b0f7ee93f8f2486af36d3b04
48517a9b7ec7b0f0bf0a03291b7d1e3def751c0a
/Choose Your Own Colors/corner_to_corner_5.py
39a6a805f3f67ed65503e30b22b7b83f71056fc7
[ "MIT" ]
permissive
Breakfast-for-Pigeons/Unicorn-HAT
1ae033bf11c05b9cc739b1eacfc77665506e0bc8
9ff1388ee627a8e81f361929e9e9b708db4e2832
refs/heads/master
2021-06-06T12:22:48.162031
2020-10-22T17:31:51
2020-10-22T17:31:51
74,648,524
1
0
null
2018-10-02T17:37:31
2016-11-24T07:28:23
Python
UTF-8
Python
false
false
2,468
py
#!/usr/bin/python3 """ Corner to Corner 5 - Choose Your Own Color Selects a color and then sends it to one of four functions. Can move a square from the lower left corner to the upper right corner. Can move a square from the upper right corner to the lower left corner. Can move a square from the lower right corner to...
[ "noreply@github.com" ]
Breakfast-for-Pigeons.noreply@github.com
87201465d144f08dc791178512de0d903d59f97a
c263b3eae99bcad488b6e334e906a30b3a29ba78
/boolean_parser/actions/clause.py
4db123ffd38fe680892632e76662f638c21fce34
[ "BSD-3-Clause" ]
permissive
havok2063/boolean_parser
675953df535f83b76cea29b324084105c1b1d1ca
cbc3c5b74695da838418aaa3dd3ad08f413ec4a7
refs/heads/main
2023-01-13T01:49:34.237899
2022-12-01T15:00:28
2022-12-01T15:00:28
170,555,761
18
3
BSD-3-Clause
2023-01-03T10:37:50
2019-02-13T18:12:26
Python
UTF-8
Python
false
false
5,908
py
# !/usr/bin/env python # -*- coding: utf-8 -*- # # Filename: clause.py # Project: actions # Author: Brian Cherinka # Created: Sunday, 17th February 2019 12:52:31 pm # License: BSD 3-clause "New" or "Revised" License # Copyright (c) 2019 Brian Cherinka # Last Modified: Sunday, 17th February 2019 12:53:16 pm # Modified B...
[ "havok2063@hotmail.com" ]
havok2063@hotmail.com
6ebb3533a73b107738006b3db204498153ef1cba
20d1b971f58b0a6ab30f2682b773e7280ac77bc2
/loops/170820, Lists/lr_dvumernie_spiski/8/8.1'divine_k_string.py
e624544d8e58779b0d5434ca7c3d94fed73fb580
[]
no_license
M2401/P1
1a39ba384030a1483c77d86db933d11c30e45abf
c08f3ba1e07678b7b20836465175d51c89a43078
refs/heads/master
2023-03-03T21:34:31.601512
2021-02-06T17:44:54
2021-02-06T17:44:54
312,105,812
0
0
null
null
null
null
UTF-8
Python
false
false
993
py
#1. Задана матрица порядка n и число к. Разделить элементы k-й строки на диагональный элемент, # расположенный в этой строке. import random def pr(a, n): for i in range(n): for j in range(n): print(a[i][j], end='\t') print() print() def main(): n = int(input('Введите порядок мат...
[ "flussooo@gmail.com" ]
flussooo@gmail.com
e3bcf84be53aaddcc116ab28636370c0e2ff9d75
4d5a91c312e9d633f73098bcc42ba9386893bd86
/pajbot/modules/basic/dbmanage.py
f9b062683151352d7e5933d207371752d4897328
[ "MIT" ]
permissive
leecopland/bullbot
ffc45062d802695fe2486f26643c1d1b9429e19c
52e463293097b58084afb4f9f1d85b0656a67d44
refs/heads/master
2022-12-10T14:02:28.113368
2021-03-25T05:04:28
2021-03-25T05:04:28
172,211,287
1
0
MIT
2022-09-16T18:28:35
2019-02-23T12:23:22
Python
UTF-8
Python
false
false
1,594
py
import logging import pajbot.models from pajbot.modules import BaseModule from pajbot.modules import ModuleType from pajbot.modules.basic import BasicCommandsModule log = logging.getLogger(__name__) class DBManageModule(BaseModule): ID = __name__.split('.')[-1] NAME = 'DB Managing commands' ENABLED_DEF...
[ "pajlada@bithack.se" ]
pajlada@bithack.se
57ac4bddf8a6c8e345fc31c97d40daa542272bd8
bf535fdf7418b8092d6721d4e66e61f8c9dd4929
/tasks/task_12.py
be64338587693c511cef05d0f510958040a6a902
[ "MIT" ]
permissive
AlexRogalskiy/python
edb7808d48f4f8b8b4e4311678fb7364c7b54aeb
78a38746de51688dc118ba921da08b920fe4caf2
refs/heads/master
2021-06-29T03:14:23.472651
2018-06-26T05:36:02
2018-06-26T05:36:02
97,952,461
0
0
MIT
2020-07-23T09:19:20
2017-07-21T13:52:00
Python
UTF-8
Python
false
false
238
py
import itertools flatten = lambda x: list(itertools.chain.from_iterable(x)) s = [['"', 'An', 'investment'], ['in'], ['knowledge'], ['pays'], ['the', 'best'], ['interest."', '--'], ['Benjamin'], ['Franklin']] print(' '.join(flatten(s)))
[ "alexander.rogalsky@yandex.ru" ]
alexander.rogalsky@yandex.ru
e1e7db7fb239a768eeb45685f63fcfd5a37115fd
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2899/50263/235338.py
15ff2da2c947377ae171b13bfdf0500d85a905d3
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
172
py
num = eval(input()) if num == 1: print("true") elif num == 4: print("true") elif num == 16: print("true") elif num == 5: print("false") else: print(num)
[ "1069583789@qq.com" ]
1069583789@qq.com
29dd50bcff3f11ac5d166c8318908bb812620709
97ca8019389d6da727ee31b4ae42a520c21ccd64
/Remove Element.py
89155750ec5d87d07bcbc2c3d8b9e3333a1ffb41
[]
no_license
AngleMAXIN/LeetCode_Problems
db51ae2e9f7b81d1e581bfee8f9949b1dbf27642
58c0190e718956d6960e2a1ea363d0a2e8d76e06
refs/heads/master
2021-06-14T00:38:44.337383
2019-11-22T15:13:20
2019-11-22T15:13:20
113,146,794
2
0
null
null
null
null
UTF-8
Python
false
false
982
py
#/usr/bin/env python # -*- python: utf-8 -*- # problem: # Given nums = [3,2,2,3], val = 3, # Your function should return length = 2, with the first two elements of nums being 2. class Solution: def removeElement(self, nums, val): """ :type nums: List[int] :type val: int :r...
[ "1678190746@qq.com" ]
1678190746@qq.com
206aec11e8d8d7adff9fbb61ae155763fb665704
bc441bb06b8948288f110af63feda4e798f30225
/flowable_sdk/model/collector_center/target_range_pb2.pyi
acf831ae8dbcd27511dec805a8061bef8572a5a8
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
false
3,179
pyi
# @generated by generate_proto_mypy_stubs.py. Do not edit! import sys from flowable_sdk.model.collector_center.cmdb_host_search_pb2 import ( CmdbHostSearch as flowable_sdk___model___collector_center___cmdb_host_search_pb2___CmdbHostSearch, ) from flowable_sdk.model.collector_center.cmdb_host_strategy_pb2 import (...
[ "service@easyops.cn" ]
service@easyops.cn
89d977f1c10c4e2b4f3e188c6752cd828a68f39f
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/others/CenterMask2/models/centermask2/centermask/layers/iou_loss.py
2368211598cd9535144ecba1f6491e5c97949dd6
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
2,677
py
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
[ "wangjiangben@huawei.com" ]
wangjiangben@huawei.com
2010af1393a38b6eeb38db3684d5fe1954404bc0
f3b233e5053e28fa95c549017bd75a30456eb50c
/ptp1b_input/L82/82-77_MD_NVT_rerun/set_2.py
587208a34f0653593d706645a6b17a656119210c
[]
no_license
AnguseZhang/Input_TI
ddf2ed40ff1c0aa24eea3275b83d4d405b50b820
50ada0833890be9e261c967d00948f998313cb60
refs/heads/master
2021-05-25T15:02:38.858785
2020-02-18T16:57:04
2020-02-18T16:57:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
741
py
import os dir = '/mnt/scratch/songlin3/run/ptp1b/L82/MD_NVT_rerun/ti_one-step/82_77/' filesdir = dir + 'files/' temp_prodin = filesdir + 'temp_prod_2.in' temp_pbs = filesdir + 'temp_2.pbs' lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078] for j in la...
[ "songlin3@msu.edu" ]
songlin3@msu.edu
a8ec2943d15f417b5213574b8a7ae8aa115369b5
f2978751f45a0e88a9761f6da4f66e0c6610bd9d
/hardPython/ex18.py
23fc87c289dd639f00ab2099c76807db795bb09b
[]
no_license
mchenyuxiang/HardPython
c489dbd52b8e5c4fe71da824297f309529f237a7
1ab22e753d4e44d17cf203d2f325371c9ef4443d
refs/heads/master
2021-01-12T12:27:49.067010
2017-09-07T04:42:56
2017-09-07T04:42:56
72,502,316
1
0
null
null
null
null
UTF-8
Python
false
false
340
py
#--coding:utf-8-- def print_two(*args): arg1,arg2 = args print "arg1:%r,arg2:%r"%(arg1,arg2) def print_two_again(arg1,arg2): print "arg1:%r,arg2:%r"%(arg1,arg2) def print_one(arg1): print "arg1:%r"%arg1 def print_none(): print "I got nothin'." print_two("Zed","Shaw") print_two_again("Zed","Shaw") print_one("Fi...
[ "=" ]
=
9484fe6fdcd3e9324a6d4e8c49055758749ac739
435723c2128a8a125ebc0bd4fdd57b2e438174a0
/tests/dust/screens/test_calzetti.py
79521e13c7b4ac3ee9912ad4414f589fa6e5a4d0
[]
no_license
galacticusorg/analysis-python
824e7a0311329531e42eb06fc99298cf371ec75f
09e03f8d25ab6711b4e2783454acca1422e7bc59
refs/heads/master
2022-03-10T18:39:03.766749
2022-03-03T14:49:25
2022-03-03T14:49:25
203,855,262
1
0
null
null
null
null
UTF-8
Python
false
false
711
py
#! /usr/bin/env python import os,sys import unittest import numpy as np from galacticus.dust.screens.manager import ScreenLaw from galacticus.dust.screens.calzetti import Calzetti from galacticus import rcParams class TestCalzetti(unittest.TestCase): def test_Calzetti(self): rcParams.update("dustCalz...
[ "alex.i.merson@gmail.com" ]
alex.i.merson@gmail.com
a9d79218e3a19e563dfc0d7fe2c48ed14e8ec8ef
7e35f686eaa2acff06291457af4fd6680e2738c1
/基础题目/已知三角形的两边长及其夹角,求第三边长.py
536fa48e07707bb805f3991db25b73db83f33f85
[]
no_license
cassieeric/Python-Exercises_Interview_questions
5ba68296cbf777ac7bb9aeda57ee7a04856f613a
1934e5ce82d77747d52229522dd1515a61dc80e2
refs/heads/master
2021-07-04T03:05:10.271998
2020-08-15T01:19:37
2020-08-15T01:19:37
150,816,386
7
3
null
null
null
null
UTF-8
Python
false
false
323
py
import math a = int(input('请输入三角形的一条边长:')) b = int(input('请输入三角形的另一条边长:')) C = int(input('请输入三角形的两条边长的夹角度数:')) # c = math.sqrt(a*a + b*b - 2*a*b*math.cos(C*math.pi/180)) c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(C*math.pi/180)) print(c)
[ "noreply@github.com" ]
cassieeric.noreply@github.com
0a5c4e84014d2a61d3b50297b4dcf5da4b196d9e
9dab41a71bf19a9ad17ee3e9f77c0f58aebd1d6d
/python/uline/uline/uline/handlers/app/bank/inlet/chain_batch_active.py
815af06316321503854022567df4e0acf1ca2c17
[]
no_license
apollowesley/Demo
f0ef8ec6c4ceb0aec76771da8dd9a62fb579eac8
471c4af95d3a7222d6933afc571a8e52e8fe4aee
refs/heads/master
2021-02-15T04:01:51.590697
2018-01-29T01:44:29
2018-01-29T01:44:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,731
py
# -*- coding: utf-8 -*- ''' BEGIN ajax请求 激活商户支付方式和状态 必选参数: 可选参数: 成功: {"code": 200, "msg": "成功"} 失败: {"code": 406, "msg": "失败"} END ''' import json from tornado.httpclient import AsyncHTTPClient from tornado.web import asynchronous, authenticated from tornado import gen from uline.hand...
[ "36821277@qq.com" ]
36821277@qq.com
9963aa430500b53625a4d9c20ddb4cc59760d221
b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1
/vmraid/patches/v11_0/create_contact_for_user.py
db127c67728578fb09622c876e2f999ba7017b8d
[ "MIT" ]
permissive
vmraid/vmraid
a52868c57b1999a8d648441eb9cd05815204345d
3c2e2a952003ba7ea2cf13673b9e79e127f4166e
refs/heads/main
2022-07-29T18:59:28.585133
2022-04-22T08:02:52
2022-04-22T08:02:52
372,473,120
0
0
null
null
null
null
UTF-8
Python
false
false
1,092
py
import re import vmraid from vmraid.core.doctype.user.user import create_contact def execute(): """Create Contact for each User if not present""" vmraid.reload_doc("integrations", "doctype", "google_contacts") vmraid.reload_doc("contacts", "doctype", "contact") vmraid.reload_doc("core", "doctype", "dynamic_link"...
[ "sowrisurya@outlook.com" ]
sowrisurya@outlook.com
bac7a1ad408b67c33cd3445a1697388b22649542
db0e8aa3a92a30c9b1cc8da03725e951ff64f3f1
/lenv/lib/python3.6/site-packages/django/contrib/sites/requests.py
233d8409457a3ba44b5279fbcbbfb684e47d7e3a
[ "BSD-3-Clause" ]
permissive
shrey-c/DataLeakageDjango
ffeef61caa347520747fc70cf3f7f8b84a9610cf
a827c5a09e5501921f9fb97b656755671238dd63
refs/heads/master
2022-11-30T03:30:12.313025
2020-07-12T06:47:44
2020-07-12T06:47:44
242,569,637
6
1
BSD-3-Clause
2022-11-22T05:20:22
2020-02-23T18:33:04
Python
UTF-8
Python
false
false
788
py
from __future__ import unicode_literals from django.utils.encoding import python_2_unicode_compatible @python_2_unicode_compatible class RequestSite(object): """ A class that shares the primary interface of Site (i.e., it has ``domain`` and ``name`` attributes) but gets its data from a Django HttpReq...
[ "shreyansh.chheda@gmail.com" ]
shreyansh.chheda@gmail.com
8bd1c9457bbd2f09555ef5cfa3d565624a9c733b
0362023a283a492733336dbe899714236b9a06ef
/SEGUNDO/M3-POOpython/ejercicios/Alex Catalan BUENOejercicio_control_errores/Llista.py
a022f3c5a3d4da8707bdf6f17ecf9a045afa675d
[]
no_license
alexcatmu/CFGS_DAM
205b8bcc6d09f8351894c5f70e1a354ff25c17a3
1a4384dee8833b5d8034fdf0909a0774cbe5b1c0
refs/heads/master
2020-04-07T18:27:15.225638
2019-12-17T19:34:39
2019-12-17T19:34:39
158,610,709
0
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
class Llista: def __init__(self, num = 0): if(not(isinstance(num,int))): raise ValueError("Parametro erroneo, tipo de dato no valido", type(self)) elif(num < 0): raise NotImplementedError("Parametro erroneo, debe ser un numero positivo", type(self)) self.array_nums ...
[ "alex.catalan.catalan@gmail.com" ]
alex.catalan.catalan@gmail.com
b4ada9f63387a5be7a94668e4a18c2a727699ac6
96fab383fd53d404eb8fbcc5fb4fe814ffd82661
/fastlink/fastlink/apps.py
242681808afb7418a7df19b64329fdc8040bc0c0
[]
no_license
dobestan/fastlink
41809245f0cc25aecf690ea9db6ee7eec75ee227
1e4f25bf112a4007e6afe90530d80c88b43dda71
refs/heads/master
2021-01-10T13:01:22.268285
2016-02-04T16:57:01
2016-02-04T16:57:01
51,088,310
0
1
null
2016-02-04T16:57:01
2016-02-04T16:20:13
Python
UTF-8
Python
false
false
174
py
from django.apps import AppConfig class FastlinkAppConfig(AppConfig): name = 'fastlink' def ready(self): from .signals.post_save import post_save_resource
[ "dobestan@gmail.com" ]
dobestan@gmail.com
df1b6f0a5174307023b0b2d15db49f8e13ea1e1c
085ce75a507df6e755cabb7a65c4a2a8c98762ba
/dockerfiles/root/.pycharm_helpers/python_stubs/-252567642/zlib.py
23b2d0fd3442cd37ac55b116c740129aefbca602
[]
no_license
Arhzi/habr-docker-article
d44302db1fe157d81fe0818e762e82218f50e31f
6fb094860b612e307beadaeb22981aa0ee64e964
refs/heads/master
2021-01-23T20:41:47.398025
2015-12-10T08:56:33
2015-12-10T08:56:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,927
py
# encoding: utf-8 # module zlib # from /usr/local/lib/python2.7/lib-dynload/zlib.so # by generator 1.137 """ The functions in this module allow compression and decompression using the zlib library, which is based on GNU zip. adler32(string[, start]) -- Compute an Adler-32 checksum. compress(string[, level]) -- Compres...
[ "sirnikolasd@yandex.ru" ]
sirnikolasd@yandex.ru
16bde3d556f038d4d58862121c5017b380526751
44dbb043e52f00c9a797b1bea8f1df50dd621842
/nntplib-example-3.py
0c6beb82e255947dd47abacd9b5402d47a9aa76d
[]
no_license
peterdocter/standardmodels
140c238d3bef31db59641087e3f3d5413d4baba1
7addc313c16b416d0970461998885833614570ad
refs/heads/master
2020-12-30T16:59:30.489486
2016-12-13T06:32:03
2016-12-13T06:32:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
701
py
import nntplib import string, random import StringIO, rfc822 SERVER = "news.spam.egg" GROUP = "comp.lang.python" # connect to server server = nntplib.NNTP(SERVER) resp, count, first, last, name = server.group(GROUP) for i in range(10): try: id = random.randint(int(first), int(last)) resp, id, messa...
[ "415074476@qq.com" ]
415074476@qq.com
8529eaf059a12424bb2811930ff8608b45b8abcf
09c39de5aad7b283cfac2f09a2b93e43086846d2
/Unit 03 Conditionals and Control Flow/02 PygLatin/PygLatin PART2/9-Move it on back.py
1cac4dbb960f695de75cbd184784c5864d08e7b4
[ "MIT" ]
permissive
lpython2006e/python-samples
b4e84080259faf75b41fb2fd4fb9d2fbc9f857aa
b94ba67ce0d7798ecf796dadae206aa75da58301
refs/heads/master
2023-01-21T13:16:13.295163
2020-11-29T11:01:50
2020-11-29T11:01:50
278,653,779
1
0
null
null
null
null
UTF-8
Python
false
false
219
py
pyg = 'ay' original = raw_input('Enter a word:') if len(original) > 0 and original.isalpha(): word = original.lower() first = word[0] new_word = word + first + pyg print(pyg) else: print('empty')
[ "lent@hivetech.vn" ]
lent@hivetech.vn
daa6063529c244841de6f2f0caaed32db43d8119
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/40/usersdata/130/24581/submittedfiles/funcoes.py
4052f0d988cac6a87cf753291e3a58713709e011
[]
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
631
py
#ARQUIVO COM SUAS FUNCOES def absoluto(x): if x<0: x=x*(-1) resultado=x return resultado def pi(x): So=3 a=2 for i in range(1,x+1,1): if (a//2)%2==0: So=So-4/(a*(a+1)*(a+2)) else: So=So+4/(a*(a+1)*(a+2)) a=a+2 pi=So return pi ...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
86239dd8825f9994ac7cc262b1f6c1887f9b5f4b
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/dmlc_minpy/minpy-master/examples/nn/cnn_customop.py
9a3a2c812faee140c621d87942c0897b9d004406
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
4,212
py
"""Convolution Neural Network example with both MinPy ndarray and MXNet symbol.""" import sys import argparse import minpy import minpy.numpy as np import numpy import mxnet as mx from minpy.nn.io import NDArrayIter # Can also use MXNet IO here # from mxnet.io import NDArrayIter from minpy.core import Function from mi...
[ "659338505@qq.com" ]
659338505@qq.com
4a5d4da532f4802dd20815dfac7206ad889904b8
dd8227454b817ccf2ceb24b3dfd4260d4ded7a72
/scripts/item/consume_2435043.py
13ed0760599dc002e3b64452a101b17cdadd7c63
[ "MIT" ]
permissive
Snewmy/swordie
0dd3c17808b064c2cb2bd9576b51daf01ae5d686
ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17
refs/heads/master
2023-06-30T21:14:05.225798
2021-07-06T14:32:39
2021-07-06T14:32:39
389,497,502
0
0
null
null
null
null
UTF-8
Python
false
false
180
py
# Heroes Phantom Damage Skin success = sm.addDamageSkin(2435043) if success: sm.chat("The Heroes Phantom Damage Skin has been added to your account's damage skin collection.")
[ "vcalheirosdoc@gmail.com" ]
vcalheirosdoc@gmail.com
2e8e809c480deb7a245b236f0b6ba0a2c56aee2b
a838d4bed14d5df5314000b41f8318c4ebe0974e
/sdk/anomalydetector/azure-ai-anomalydetector/azure/ai/anomalydetector/operations/__init__.py
00fccdc398f92af40bdf0644db345b88ab2f66a4
[ "MIT", "LicenseRef-scancode-generic-cla", "LGPL-2.1-or-later" ]
permissive
scbedd/azure-sdk-for-python
ee7cbd6a8725ddd4a6edfde5f40a2a589808daea
cc8bdfceb23e5ae9f78323edc2a4e66e348bb17a
refs/heads/master
2023-09-01T08:38:56.188954
2021-06-17T22:52:28
2021-06-17T22:52:28
159,568,218
2
0
MIT
2019-08-11T21:16:01
2018-11-28T21:34:49
Python
UTF-8
Python
false
false
613
py
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may ...
[ "noreply@github.com" ]
scbedd.noreply@github.com
7dc56d8754b8e16411207641759855115ea4c5e8
1b7947f81b2a82d3ff377c39e7228f1aaf743277
/day2/urllib_demo2/music163.py
77092b703cf3519ae89e972c387e284ff06fd398
[]
no_license
gaohj/python1902crawer
92fbaeb8151bd8a71f3c87a1566f6dcded3ef745
aa0dce86ba50db12fb0262a62ccc6a9ab60ad0c2
refs/heads/master
2020-08-14T20:08:47.775547
2019-10-25T06:55:21
2019-10-25T06:55:21
215,226,727
0
0
null
null
null
null
UTF-8
Python
false
false
1,295
py
import urllib.request import urllib.parse import json headers = { "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36", } #post接口 url = "https://music.163.com/weapi/v1/resource/comments/A_PL_0_2783240?csrf_token=" data = { "params"...
[ "gaohj@126.com" ]
gaohj@126.com
34018ff3a28fba4a4eeedc2a0596b54872e6bdda
44f96b540afca6447535cdc5ab15ee34cc2f591b
/FirstProj/ShoppingApp/models.py
74bc3117f80263ad4832cae5bd87cb68d973b456
[]
no_license
Shreya549/FirstDjangoApp
087ddf30d8d73f451da473fa12fad7633b4b4142
2ad5d98d0c49d9b82fc7a431c8df111f3f6a2353
refs/heads/master
2022-04-10T07:43:23.344458
2020-03-28T13:10:33
2020-03-28T13:10:33
250,259,665
3
0
null
null
null
null
UTF-8
Python
false
false
249
py
from django.db import models # Create your models here. class Product(models.Model): name = models.CharField(max_length = 100) price = models.IntegerField() desc = models.TextField() img = models.ImageField(upload_to = 'pics')
[ "shreya.chatterjee2018@vitstudent.ac.in" ]
shreya.chatterjee2018@vitstudent.ac.in
a01ef31f02f164ca0ed8d5220c4573c32ed3678b
2eba5ec3f7462ed9f8f8e858c258f73bfeda6f6a
/Test1/윤성우_nene_ver3.py
fd464614fe59fceb309b05e2a354899b90dd1fbc
[]
no_license
sungwooman91/Test
d16e93e40a74054c860f9f7fdd2bb70f0189fc43
59b22517bc2c6e60b9d0604b878d79a1624530da
refs/heads/master
2021-09-06T09:55:45.740088
2018-02-05T07:55:57
2018-02-05T07:55:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,156
py
import urllib.request import os from pandas import DataFrame import xml.etree.ElementTree as ET import time print("START") result = [] dir_name = "V3_BigData" dir_nene = "Nene_data" dir_delimiter = "\\" file_name = "nene" count = "nene_count.txt" csv = '.csv' result_limit = 3 time_table = time.strftime("%c",time.loc...
[ "you@example.com" ]
you@example.com
ff0f35ac3c3c28da4438125b3998d1c2ce5d5da5
ba80ca143ba35fd481730786a27ebdb1f88ce835
/algorithm/oop/vending_machine/money/money.py
98038d955a7311a82085d5b84c181fa32bd45995
[]
no_license
uiandwe/TIL
c541020b65adc53578aeb1c3ba4c6770b3b2e8b3
186544469374dd0279099c6c6aa7555ee23e42fe
refs/heads/master
2022-02-15T08:33:07.270573
2022-01-01T15:22:54
2022-01-01T15:22:54
63,420,931
2
4
null
null
null
null
UTF-8
Python
false
false
547
py
# -*- coding: utf-8 -*- class Money: VALID_MONEY = 'money의 타입은 int 형 입니다.' def __init__(self, money): self.valid_money(money) self._money = money def valid_money(self, money): assert type(money) == int, Money.VALID_MONEY @property def money(self): return self._mone...
[ "noreply@github.com" ]
uiandwe.noreply@github.com
aed762f6d9dea07279af3b949111d028114c4e4d
172f8b508c89b47376bd41cfc167cabf9ba94cb8
/dropthesoap/service.py
4976d7b871415ed9e151bb0fd100573a2dba0401
[ "MIT" ]
permissive
d3sbar/dropthesoap
1ee3d8ba744d5756001a339793cbeb2bc9666f1a
73fc9a9aa725e5bc568c7896fd0d9a2af858a352
refs/heads/master
2020-05-24T04:22:25.074507
2019-05-16T19:46:01
2019-05-16T19:46:01
187,091,092
0
0
null
2019-05-16T19:42:54
2019-05-16T19:42:54
null
UTF-8
Python
false
false
6,931
py
from .schema import xs, wsdl, soap from .schema.model import Namespace, get_root, etree class Request(object): def __init__(self, transport_request, envelope): self.transport_request = transport_request self.envelope = envelope self.header = None class Method(object): def __init__(se...
[ "bobrov@vl.ru" ]
bobrov@vl.ru
1e4ae96ba11ca841546ece2806bf73b10ec15673
6e8f2e28479566dbaa338300b2d61f784ff83f97
/.history/code/live_20210419192449.py
f23ac4d6aa23ef684980fb5dfdd0b471fdb2e457
[]
no_license
eeng5/CV-final-project
55a7d736f75602858233ebc380c4e1d67ab2b866
580e28819560b86f6974959efb1d31ef138198fc
refs/heads/main
2023-04-09T21:28:21.531293
2021-04-21T19:57:22
2021-04-21T19:57:22
352,703,734
0
0
null
null
null
null
UTF-8
Python
false
false
2,586
py
import os import cv2 import sys import numpy as np from models import SimpleModel from preprocess import Datasets import hyperparameters as hp import tensorflow as tf from skimage.transform import resize from PIL import Image, ImageFont, ImageDraw from scipy.spatial import distance as dist from imutils import face...
[ "natalie_rshaidat@brown.edu" ]
natalie_rshaidat@brown.edu
d8fab852c381fe6affdd605d97dda1f39af63a9f
cf7fed790b733b9a21ec6c65970e9346dba103f5
/pyqt/getting_started/pyqt_thread.py
9596b7a25da1a0f3c83e1b6191afc1df4f46539d
[ "MIT" ]
permissive
CospanDesign/python
a582050993efc1e6267683e38dd4665952ec6d40
a3d81971621d8deed2f1fc738dce0e6eec0db3a7
refs/heads/master
2022-06-20T15:01:26.210331
2022-05-29T01:13:04
2022-05-29T01:13:04
43,620,126
6
3
null
null
null
null
UTF-8
Python
false
false
2,855
py
#! /usr/bin/python import sys import time from PyQt4 import QtCore from PyQt4 import QtGui class MyApp(QtGui.QWidget): def __init__(self, parent=None): QtGui.QWidget.__init__(self, parent) self.setGeometry(300, 300, 280, 600) self.setWindowTitle('threads') self.layout = QtG...
[ "cospan@gmail.com" ]
cospan@gmail.com
9ce3ee0c55905c85b6ffaeba4bdb6394819a76cc
d2479998a965eb43372920effeaf32c9c500603e
/docs/scripts/uiexample.py
30f2db9a2d9e74bb996bc94f040a45590c8a941a
[ "BSD-2-Clause" ]
permissive
cy-fir/flexx
0f246e0c4a5e6d4b29946c8fb0f73790fa35d07f
343de1b1549975a365962274f264a48e56d2305e
refs/heads/master
2021-01-18T09:40:11.624129
2016-06-04T23:07:37
2016-06-04T23:07:37
60,951,284
1
0
null
2016-06-12T06:39:50
2016-06-12T06:39:50
null
UTF-8
Python
false
false
5,612
py
""" Small sphinx extension to show a UI example + result """ import os import sys import hashlib import warnings import subprocess import importlib.util from sphinx.util.compat import Directive from docutils import nodes from flexx import app THIS_DIR = os.path.abspath(os.path.dirname(__file__)) ROOT_DIR = os.path....
[ "almar.klein@gmail.com" ]
almar.klein@gmail.com
8ecc268008bf76d6edc3ac8b32ae86a39041e1b4
6ad7325b4c04dad9e7552882f53a6cb146474652
/crypto_analyzer/crypto/models.py
5f6b7218b7985d6f1899c232a9f304a3a0eb1429
[]
no_license
abhaystoic/cryptoguru
fa04c55e437dd41a64843b35a8d60d398511eb23
96562e881b40ee77a4704b40400caba9084bbfca
refs/heads/master
2020-03-11T10:26:30.950772
2018-10-14T13:23:10
2018-10-14T13:23:10
129,942,636
0
0
null
null
null
null
UTF-8
Python
false
false
5,650
py
# -*- coding: utf-8 -*- """ TODO: Remove 'blank=True, null=True' wherever it doesn't make sense. """ from __future__ import unicode_literals from __future__ import absolute_import from django.db import models MAX_CHAR_LEN = 1024 MAX_CHAR_LEN_URL = 2000 MAX_CHAR_LEN_BIG = 10000 # Create your models here. class Crypt...
[ "iabhaygupta90@gmail.com" ]
iabhaygupta90@gmail.com
6de0cdbb4029d1b8614623b599b9b04bb8352527
0be27c0a583d3a8edd5d136c091e74a3df51b526
/no.of ai_greater_thn_aj.py
2f9cb826b3435d34e935bb0c845cd199ceb9184a
[]
no_license
ssangitha/guvicode
3d38942f5d5e27a7978e070e14be07a5269b01fe
ea960fb056cfe577eec81e83841929e41a31f72e
refs/heads/master
2020-04-15T05:01:00.226391
2019-09-06T10:08:23
2019-09-06T10:08:23
164,405,935
0
2
null
null
null
null
UTF-8
Python
false
false
130
py
n=int(input()) l=list(map(int,input().split())) c=0 for i in range(n-1): for j in range(i+1,n): if l[i]<l[j]: c+=1 print(c)
[ "noreply@github.com" ]
ssangitha.noreply@github.com
d4b30fe8753b69022b4ced22642564adad27249e
100802fd56febbe28e11d45802e0ad661a9b98c4
/Community/migrations/0011_auto_20170814_1452.py
925f4afb0c0e91599fc192516ab064e71147f391
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ByrdOfAFeather/AlphaTrion
efc4cfcfa246adde5a0ce84eb5e295c0c61722f5
90b00b8f4e4c7fe3c495a5ded14b47c3210119ea
refs/heads/master
2021-01-22T07:35:43.403968
2017-12-03T15:50:41
2017-12-03T15:50:41
102,306,857
0
2
null
2017-11-12T18:32:35
2017-09-04T01:39:45
Python
UTF-8
Python
false
false
771
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2017-08-14 18:52 from __future__ import unicode_literals import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Community', '0010_auto_20170813_1831'), ] operations = [ mi...
[ "matthew_a_byrd@outlook.com" ]
matthew_a_byrd@outlook.com
6a85cca1f26260ec941c33e52aa6b830c28f2b58
f942f82fb1b9c2eb0c4cf03ca2254f4207fd08d2
/Website/migrations/0010_mainpage_map.py
b8735d8c31c533b9ff5088df895a6f34ada18e94
[]
no_license
mahdy-world/Fatoma-Restaurant
2b6aec149c20d5526d5d7a505479cc29c811d666
a500397741e72d0cf28dbb8f64c914144835d6c2
refs/heads/master
2023-06-27T19:27:35.606292
2021-07-31T13:53:18
2021-07-31T13:53:18
391,366,717
0
0
null
null
null
null
UTF-8
Python
false
false
447
py
# Generated by Django 3.2.3 on 2021-07-15 08:14 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('Website', '0009_auto_20210713_1517'), ] operations = [ migrations.AddField( model_name='mainpage', name='map', ...
[ "salmazidan1997@gmail.com" ]
salmazidan1997@gmail.com
cd3fc40018659f5a71bc693d5d4872929557c09f
c0caed81b5b3e1498cbca4c1627513c456908e38
/src/python/bindings/app/pyrosetta_toolkit/window_modules/scripting/rosetta_scripts.py
4128e2e9c3bbbdd354f557ba92578a27d4418321
[ "LicenseRef-scancode-other-permissive" ]
permissive
malaifa/source
5b34ac0a4e7777265b291fc824da8837ecc3ee84
fc0af245885de0fb82e0a1144422796a6674aeae
refs/heads/master
2021-01-19T22:10:22.942155
2017-04-19T14:13:07
2017-04-19T14:13:07
88,761,668
0
2
null
null
null
null
UTF-8
Python
false
false
753
py
#!/usr/bin/python # (c) Copyright Rosetta Commons Member Institutions. # (c) This file is part of the Rosetta software suite and is made available under license. # (c) The Rosetta software is developed by the contributing members of the Rosetta Commons. # (c) For more information, see http://www.rosettacommons.org. Q...
[ "malaifa@yahoo.com" ]
malaifa@yahoo.com
84bc6efbd7aee35a2b7b690cc31e5af6c753d0c3
6ef22466e1649ebae37dd19cba29a53b2f020317
/imu9dof/scripts/imu9250.py
a51cf2ea32df15f18e0e58a31fcde0233430ad3f
[]
no_license
rishabhdevyadav/ROS_IMU_Filter
7272cb7a950762c13e12b9bbf5f3cf6939cfea4d
f17438101c8e2cfc645fd89d79c76d5e7e6d5d40
refs/heads/master
2021-03-21T18:49:16.242474
2020-05-25T05:09:01
2020-05-25T05:09:01
247,321,664
1
0
null
null
null
null
UTF-8
Python
false
false
3,106
py
#!/usr/bin/python from __future__ import division # coding: utf-8 import rospy import tf from sensor_msgs.msg import Imu, MagneticField from std_msgs.msg import Float64 from geometry_msgs.msg import Vector3 import MPU9250 from math import radians MAG_HARD_BIAS = (113.90899999999999, -40.54, -16.3515) MAG_SOFT_BIAS...
[ "rishabhdevyadav95@gmail.com" ]
rishabhdevyadav95@gmail.com
e55af56ffc42aa26714400df063eb385adc9fb93
fb5c5d50d87a6861393d31911b9fae39bdc3cc62
/Scripts/sims4communitylib/events/build_buy/events/build_buy_enter.py
fb2938792871539d80fe2bd229abeb49d918e76f
[ "CC-BY-4.0" ]
permissive
ColonolNutty/Sims4CommunityLibrary
ee26126375f2f59e5567b72f6eb4fe9737a61df3
58e7beb30b9c818b294d35abd2436a0192cd3e82
refs/heads/master
2023-08-31T06:04:09.223005
2023-08-22T19:57:42
2023-08-22T19:57:42
205,197,959
183
38
null
2023-05-28T16:17:53
2019-08-29T15:48:35
Python
UTF-8
Python
false
false
1,721
py
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from sims4communitylib.events.event_handling.common_event i...
[ "ColonolNutty@hotmail.com" ]
ColonolNutty@hotmail.com
5970528efd5dd4f0d36f8fbf562458f334165056
97543ae8e1ad7bf3d17dd87171aaac04f6737b5f
/test/bibliopixel/control/extractor_test.py
a44234bd03bee8f4ce8e5ce43b9c72bd0307a31b
[ "MIT" ]
permissive
dr-aryone/BiblioPixel
a3c630bf1cd5db2b014b86775d283c61565a193e
fd97e6c651a4bbcade64733847f4eec8f7704b7c
refs/heads/master
2020-05-27T16:19:15.043592
2019-03-23T08:52:37
2019-03-25T11:10:39
188,698,414
2
1
MIT
2019-05-26T15:12:38
2019-05-26T15:12:37
null
UTF-8
Python
false
false
1,912
py
import collections, fractions, unittest from bibliopixel.control import extractor KEYS_BY_TYPE = { 'note_on': ('channel', 'type', 'note', 'velocity'), 'control_change': ('channel', 'type', 'control', 'value'), 'pitchwheel': ('channel', 'type', 'pitch'), } NORMALIZERS = { 'pitch': lambda x: fractions.F...
[ "tom@swirly.com" ]
tom@swirly.com