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
8d58a7ad79d94af1b223cd99ce31c8c1f9c05b5c
ba694353a3cb1cfd02a6773b40f693386d0dba39
/sdk/python/pulumi_google_native/firebaseappdistribution/v1/group.py
fb267bd983e42bb1c41b002ef390b34637ede4ca
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
pulumi/pulumi-google-native
cc57af8bd3d1d6b76f1f48333ed1f1b31d56f92b
124d255e5b7f5440d1ef63c9a71e4cc1d661cd10
refs/heads/master
2023-08-25T00:18:00.300230
2023-07-20T04:25:48
2023-07-20T04:25:48
323,680,373
69
16
Apache-2.0
2023-09-13T00:28:04
2020-12-22T16:39:01
Python
UTF-8
Python
false
false
10,105
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 copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _u...
6b00216e57dd1ea5b6a02c4851dc0365d2342a92
af8dfddd4ba4f03560f2f6930f88c4d8a0a8e8cf
/conf.py
6fe28580ca8c11405a26bca8d52a206bd6a6746f
[]
no_license
Parham-Baghbanbashi/team-manual
155e243d8152c1c63214db8a698881d08b4765b3
9dbd11a2e340f6ce4ffe17dfe0bb8b9619ece914
refs/heads/master
2023-01-19T20:23:40.094323
2020-12-02T14:14:09
2020-12-02T14:14:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,929
py
import sphinx_rtd_theme # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup ---------------------------------------------...
8869077a7e227809b58f62593c3a639db3ee87d1
8cd04470706414df9b8b937d2fb205f6219db6ed
/envs/wpt_env_dir/original.py
6ce971239c04e238ad933e97b68326402c45f1b4
[]
no_license
xiaogaogaoxiao/WirelessPowerTransfer
1ee903c9eb3c7e59bdbc9836eb16448f81016261
ed982ca144576e61415522ebc7073d81613d5d84
refs/heads/master
2022-10-13T03:36:08.862101
2020-06-14T15:14:19
2020-06-14T15:14:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
16,362
py
import gym import numpy as np import math import sys import matplotlib.pyplot as plt from gym import spaces, logger from gym.utils import seeding from gym.envs.toy_text import discrete class WPTEnv(discrete.DiscreteEnv): ''' Observation: Type: Box(6 or 8) Num Observation ...
d68496f8b528022a5ce09200a302dc3c2569c5b0
2293c76c3d18e2fcd44ded90bd40113d26285663
/pyeccodes/defs/grib2/tables/25/4_244_table.py
a1c940653667995441617ed12e107d0f12316077
[ "Apache-2.0" ]
permissive
ecmwf/pyeccodes
b1f121dbddf68d176a03805ed5144ba0b37ac211
dce2c72d3adcc0cb801731366be53327ce13a00b
refs/heads/master
2022-04-23T10:37:40.524078
2020-04-18T06:30:29
2020-04-18T06:30:29
255,554,540
9
3
null
null
null
null
UTF-8
Python
false
false
265
py
def load(h): return ({'abbr': 0, 'code': 0, 'title': 'No quality information available'}, {'abbr': 1, 'code': 1, 'title': 'Failed'}, {'abbr': 2, 'code': 2, 'title': 'Passed'}, {'abbr': None, 'code': 255, 'title': 'Missing'})
7139040a4e2346cd3caee6871414bf5ab8b75d35
a861a32ffdb368a721ff9e9006268f3dffbecc71
/app/firestore_service.py
4f3db3becefbccfafb97fa57a3a2f5575971f14a
[ "MIT" ]
permissive
agomusa/flask-taskapp
039450080f551ff4ba9a7796835543290f8583ce
3c456b0dcfe8c30be44954b6c280d843653b8a3e
refs/heads/main
2023-05-30T17:16:57.256763
2021-06-14T20:04:22
2021-06-14T20:04:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,188
py
import firebase_admin from firebase_admin import credentials from firebase_admin import firestore credential = credentials.ApplicationDefault() firebase_admin.initialize_app(credential) db = firestore.client() def get_users(): return db.collection("users").get() def get_user(user_id): return db.collection...
97da63adc46cd749c1cb8b35727cfa54ba4e723b
b0cdbad299f6174bfdb0fba173dbcf3889b82209
/Modules/os/gettextfiles.py
198d01bcec7b9bcc12a7a7c25a9bdee70cf4e946
[]
no_license
deesaw/PythonD-06
a33e676f1e0cfc13b4ea645c8b60547b198239ac
3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa
refs/heads/master
2023-03-18T08:24:42.030935
2021-03-02T14:15:09
2021-03-02T14:15:09
343,797,605
0
0
null
null
null
null
UTF-8
Python
false
false
150
py
import os for (dirname, subdir, files) in os.walk('c:\\'): for myfile in files: if (myfile.endswith('.txt')): print os.path.join(dirname,myfile)
6ca4acfa15bb6d2e30f65bb4f97c459c35411d48
8a1987a6c762d1440f7ce1b60e6dbb02491db9f1
/huntserver/migrations/0022_switch_to_utf8mb4_columns.py
aa1812f0fc8a5510d0598d437bea1ade6056f017
[ "MIT" ]
permissive
dlareau/puzzlehunt_server
fd9807f074cbdc95ad46730e931da86a54b78f45
44f87cc5cfe8bb23a8e04fddee187b9056407741
refs/heads/master
2022-12-27T18:48:43.883587
2021-08-17T23:55:36
2021-08-17T23:55:36
37,299,424
20
23
MIT
2022-05-22T00:16:21
2015-06-12T03:12:51
Python
UTF-8
Python
false
false
6,041
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import sys fwd_operations = [ 'ALTER TABLE `auth_user` MODIFY `password` varchar(128) CHARSET utf8mb4 COLLATE utf8mb4_unicode_ci ', 'ALTER TABLE `auth_user` MODIFY `username` varchar(30) CHARSET utf8mb4 CO...
4f1f35cd3e6246382f9d1003ac1d2188b27d3137
14a913fce4b538b22f28409645cd6abe3455808f
/bigquery_storage/to_dataframe/main_test.py
8335b437063c827cd6d43c4af690752455ae19dd
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
iamLoi/Python-Random-Number-Generator
8da7dbd37cb13a01232c8ed49b9df35a99c63d73
7579e8b15130802aaf519979e475c6c75c403eda
refs/heads/master
2022-08-29T19:05:32.649931
2019-09-14T14:48:58
2019-09-14T14:48:58
208,454,877
2
1
Apache-2.0
2022-08-05T21:57:49
2019-09-14T14:51:05
Python
UTF-8
Python
false
false
5,502
py
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
e6313fe1285bba0a56b05db426f9c6c6861bde1e
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/pa3/sample/op_cmp_bool-94.py
6c2f718b85e4de8c6dbed4cf3746b6a697bd5dc4
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
print(True == True) print(True == False) print(False == True) print(False == False) print(True != True) print(True != False) print(False != True) print($Exp)
369376d38046b8a203a95ecd37ed2f1dfe746ebb
c585583d366924d8977462035b631161094241a9
/redbot/message/headers/_header.tpl
31561e68d04690bc85b5ca29ebfd1dc659b8138a
[ "MIT" ]
permissive
QPC-database/redbot
a289248bbb24f8cc378001e38cb633e6f1aff098
f05dd7754cd6f6ba005ae44beeb8ed21516a93c8
refs/heads/main
2023-05-07T00:13:59.733511
2021-05-28T02:42:02
2021-05-28T02:42:02
382,878,629
1
0
MIT
2021-07-04T14:57:42
2021-07-04T14:57:42
null
UTF-8
Python
false
false
875
tpl
#!/usr/bin/env python from redbot.message import headers from redbot.speak import Note, categories, levels from redbot.type import AddNoteMethodType class SHORT_NAME(headers.HttpHeader): canonical_name = "SHORT_NAME" description = """\ FIXME """ reference = None syntax = False list_header = False ...
8b702529300a28ebc932d16a695f5311094c469d
48ffde5f19dce603afb5caffe2e71d752c526a52
/tests/PyroTests/test_serialize.py
c740011d7425daf3732284e6fc5e82dcd0d82f30
[ "MIT" ]
permissive
pevogam/Pyro4
704b5aec18e1ade7457830d1c7fcc406c4d464f5
4d009f6a111c071d22c21e1ab7ba43c5e9310b56
refs/heads/master
2020-03-25T07:46:31.978715
2018-08-04T12:24:51
2018-08-04T12:24:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
40,946
py
""" Tests for the data serializer. Pyro - Python Remote Objects. Copyright by Irmen de Jong ([email protected]). """ import array import sys import collections import copy import pprint import pickle import base64 import unittest import serpent import math import uuid import Pyro4.util import Pyro4.errors import P...
cf363c988b6badef51b74389c99ca6acff643e5a
97543ae8e1ad7bf3d17dd87171aaac04f6737b5f
/bibliopixel/drivers/ledtype.py
b1a962f06ec533a9bbfeac352c4d4ccbe0cf78b5
[ "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
588
py
from enum import IntEnum class LEDTYPE(IntEnum): """Enumerated LED type names to be used with :py:mod:`bibliopixel.drivers.serial` and :py:mod:`bibliopixel.drivers.SPI` """ GENERIC = 0 # Use if the serial device only supports one chipset LPD8806 = 1 WS2801 = 2 # These are all the same...
edd2690a5b80bee5f27437cef21e1a4995e9a870
9a4755588bbe924270e0d92e04d3409281fbaf5b
/main/displayer.py
a0d3b2201298b0f2f77b759cc72098e188f45c3e
[]
no_license
chaobai-li/authenticated-info-displayer
209488a8229d17b9d67371435e4aa576ef0bb0b3
c19c6d477a3b96cda3d65f1833d28ade07aff7ba
refs/heads/master
2021-01-25T11:48:49.936003
2018-03-03T11:59:48
2018-03-03T11:59:48
123,431,569
0
0
null
null
null
null
UTF-8
Python
false
false
1,494
py
__pragma__("alias", "S", "$") class Displayer: def __init__(self, authenticator): self.authenticator = authenticator self.authenticator.eventLogin.append(self.__initialize) self.authenticator.eventLogin.append(lambda: self.__toggle(True)) self.authenticator.eventLogout.append(lambd...
78ac77bbaba347ba0643688428339f03ef0ddee3
02b04b202550248a2b78ed069d94b7607640c866
/DataTypes/Numbers/max.py
5c3f7d5ee91951b547605f887089c82a0ca3b66a
[]
no_license
keshavkummari/python-nit-7am
c391fe96783c224b44419a258738168230e182cd
0bc867ad673e40ad401d7473aab4791f21ee1945
refs/heads/master
2020-03-30T15:05:18.376222
2018-11-05T02:30:44
2018-11-05T02:30:44
151,347,860
0
0
null
null
null
null
UTF-8
Python
false
false
793
py
#!/usr/bin/python """9. max(x1, x2,...) : The largest of its arguments: the value closest to positive infinity Python Number max() Method:""" print "max(80, 100, 1000) : ", max(80, 100, 1000) print "max(-20, 100, 400) : ", max(-20, 100, 400) print "max(-80, -20, -10) : ", max(-80, -20, -10) print "max(0, 100, -400) : ...
959b36ffc39fe17b4ec4cb1d925ad67bca447215
0452408a98e03408508b4889ed68a8d0f2d9f8cf
/alphatwirl/roottree/Events.py
dcd99a451aa2f0d07fe62f0b79f023eb3c2325ed
[ "BSD-3-Clause" ]
permissive
benkrikler/alphatwirl
3318e79b89ce0e79c4a4399c7a40c789531f0e60
cda7d12fec21291ea33af23234fc08be19430934
refs/heads/master
2021-01-23T12:54:05.101466
2018-09-26T13:13:18
2018-09-26T13:13:18
93,210,643
0
0
BSD-3-Clause
2018-03-19T12:27:16
2017-06-02T23:18:59
Python
UTF-8
Python
false
false
2,629
py
# Tai Sakuma <[email protected]> ##__________________________________________________________________|| class Events(object): """An iterative object for events. You can use this class to iterate over entries in a ROOT TTree. You can instantiate this class with a TTree object and an optionally a ma...
584017b8c603df166692fd584d0144e09d4a261b
42a0befb594a6c081f3e788016c53889cfa2a9fb
/Codechef/factorial_easy_problem.py
e88719072ec1628291baff54eafc1b59d0b7f57f
[]
no_license
Laksh8/competitive-programming
f436e8c525220ad95ef1c7a9d3aa98b4689d4f92
14c20e5cc32263c89a73524ab596efbbba2cc85a
refs/heads/master
2022-12-24T23:54:16.313515
2020-09-08T06:59:11
2020-09-08T06:59:11
293,727,288
2
1
null
2020-10-04T14:15:38
2020-09-08T06:57:35
Python
UTF-8
Python
false
false
207
py
testcase = int(input()) while testcase > 0: num = int(input()) sum=0 divisor=5 while (num)>=5: num = num // divisor sum = sum + num print(sum) testcase = testcase - 1
cf550ea8b5a7f3638b9bec4ef4e8ec1e243f0ce3
3740de0d6e43ea140fc09ab314e4c492603ba185
/functions_legacy/FitVAR1.py
348409cfa3620731799498087218091ba4892c20
[ "MIT" ]
permissive
s0ap/arpmRes
29c60c65fd3e11be1cc31d46494e5b3ebf6e05ab
ddcc4de713b46e3e9dcb77cc08c502ce4df54f76
refs/heads/master
2022-02-16T05:01:22.118959
2019-08-20T16:45:02
2019-08-20T16:45:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,390
py
import matplotlib.pyplot as plt from numpy import ones, diff, eye from RobustLassoFPReg import RobustLassoFPReg def FitVAR1(X, p=None, nu=10**9, lambda_beta=0, lambda_phi=0, flag_rescale=0): # This function estimates the 1-step parameters of the VAR[0] process via lasso regression (on first differences) # I...
a86f4e04fd293b02902b13f84e13a6a1da39451e
8b2af3cff75ba2a6f8557cdea0d852b9076ff6a3
/day014/venv/Scripts/easy_install-script.py
765b7c6bbfc60d30e4d3962d2ae52fb465a43cb6
[]
no_license
AlexYangLong/Foundations-of-Python
98e5eaf7e7348120049f1ff4bb3d31393ad05592
bcf3a1fe526140fd2b05283c104488698ebc99fd
refs/heads/master
2020-03-16T21:45:34.232670
2018-05-11T10:19:21
2018-05-11T10:19:21
133,013,526
3
0
null
null
null
null
UTF-8
Python
false
false
432
py
#!"D:\for python\0413\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==28.8.0','console_scripts','easy_install' __requires__ = 'setuptools==28.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.a...
8c5bc5f4bd79e3341f8f0e73ae8eb742781ec259
4d05be863b63a56a90b4c46b15069827b33ecaae
/Algorithms/leetcode_charlie/001_two_sum.py
620d566dbd384fec815ccab50c6a4b01c5519abe
[]
no_license
leeo1116/PyCharm
e532fa9754056019508cc454214ee1a8ad9b26a9
b6942c05c27556e5fe47879e8b823845c84c5430
refs/heads/master
2022-11-06T00:43:14.882453
2017-07-13T04:50:00
2017-07-13T04:50:00
36,851,636
0
1
null
2022-10-20T10:44:39
2015-06-04T06:09:09
Python
UTF-8
Python
false
false
946
py
__doc__ = """ Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (both index1 and index2) are not ze...
55d2099c22b2ef1df7eed3cdac7b86d9e3c15d97
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_230/ch33_2020_03_30_20_03_55_797460.py
27b68ff699defdc00de4fdca5d880421d1e22da1
[]
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
321
py
def eh_primo(n): div=3 if n%2==0 and n!=2 or n==1 or n==0: return False while n > div: if n%div==0: return False div +=2 return True def primos_entre(a,b): n_primos=0 while a<=b: if eh_primo(a): n_primos +=1 x+=1 return n_primo...
d8c80ee0a2954ef4a10f0ebfbf034248dcc2d365
a8fb5d37de019221e5897a98bd176c566037f813
/Playground/objgraph_/obj_graph.py
0890b1611b57af3cdb6b08c6f9339df38174a04e
[]
no_license
tdworowy/PythonPlayground
b743dc2b870d1681b24e654e2af3fe5957710265
ff090fb44046c9c37501f5dbbcb08d56552540d4
refs/heads/master
2023-01-05T00:28:55.725894
2022-12-27T10:06:40
2022-12-27T10:06:40
72,983,029
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
import objgraph class Staff: def __init__(self, ele): self.ele = ele def get(self): return self.ele def example(count): x = range(3) y = [Staff(i) for i in x] if count == 0: return Staff(y) else: return example(count - 1) def example2(): y = 1 for i...
17b37f4a03a4049d3afd2397497d08fa832d5305
dcc62f725e8d1fdebc3be5192960584198d19813
/meiduo_mall/meiduo_mall/utils/category.py
535a51cb88960d742c97a2c71d02a628b6f21fb7
[]
no_license
1923488289/youprojects
e51cbb7958963fb8a3a82405f5df18e9a066b1ee
ebd1856dab02e45db69d2d5307473f0f22855988
refs/heads/master
2022-12-11T12:40:55.832289
2019-09-24T15:31:34
2019-09-24T15:31:34
210,625,080
0
0
null
2022-12-08T01:49:05
2019-09-24T14:36:24
HTML
UTF-8
Python
false
false
1,745
py
from goods.models import GoodsChannel def get_category(): # 1.查询频道 channels = GoodsChannel.objects.order_by('group_id', 'sequence') categories = {} # 2.遍历频道,获取一级分类、二级分类数据 for channel in channels: # 3.判断频道是否存在 if channel.group_id not in categories: # 如果不存在则新建频道字典 ...
b9554abc231f4c37bde663fe622fb5a85107a16d
e5e2b7da41fda915cb849f031a0223e2ac354066
/sdk/python/pulumi_azure_native/compute/v20190701/virtual_machine_scale_set_extension.py
ee871d7ddaf93e66afd1b6cd43de3dd831e08f3e
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
johnbirdau/pulumi-azure-native
b7d3bdddeb7c4b319a7e43a892ddc6e25e3bfb25
d676cc331caa0694d8be99cb90b93fa231e3c705
refs/heads/master
2023-05-06T06:48:05.040357
2021-06-01T20:42:38
2021-06-01T20:42:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
22,493
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, overload from ... import _utilities __...
f8940de643087082e5912d2288535fcea3c528d7
255e19ddc1bcde0d3d4fe70e01cec9bb724979c9
/all-gists/1073585/snippet.py
3b5fdb9cca782aeebdcb2fd67a5527bed28bd730
[ "MIT" ]
permissive
gistable/gistable
26c1e909928ec463026811f69b61619b62f14721
665d39a2bd82543d5196555f0801ef8fd4a3ee48
refs/heads/master
2023-02-17T21:33:55.558398
2023-02-11T18:20:10
2023-02-11T18:20:10
119,861,038
76
19
null
2020-07-26T03:14:55
2018-02-01T16:19:24
Python
UTF-8
Python
false
false
306
py
def proc_starttime(pid): p = re.compile(r"^btime (\d+)$", re.MULTILINE) m = p.search(open("/proc/stat").read()) btime = int(m.groups()[0]) clk_tck = os.sysconf(os.sysconf_names["SC_CLK_TCK"]) stime = int(open("/proc/%d/stat" % pid).read().split()[21]) / clk_tck return btime + stime
3c84cf1aa382ae73435312ccf759eef54d752f84
845f627d3b28f88e7a5367ba8bf3b669cf5a6eae
/script/report/report.py
36a843d34ee338301436cb85b89184b33530581b
[]
no_license
quanrd/nf-reseq-om
42e5066c99326c30e6aa650acbdc0ab2d4e52683
1ed90fff58fba5095f3454be07b803e82ced98b6
refs/heads/master
2022-11-18T22:03:49.556357
2020-01-06T06:40:13
2020-01-06T06:40:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,136
py
import os import glob import sys import jinja2 import fire import pandas as pd from io import StringIO from pathlib import Path, PurePath pd.set_option('precision', 3) script_dir, _ = os.path.split(os.path.abspath(__file__)) env = jinja2.Environment(loader=jinja2.FileSystemLoader( searchpath='{}/template'.format...
de693df1430585e4e82e8e60b7a7241ff863692c
20c979fc8a88dc893692c3d83c9907c928c78074
/prog9.py
0b026f3b1e73d7694c124def464e67c57bac49f8
[]
no_license
ParulProgrammingHub/assignment-1-kheniparth1998
57edba326325af3b6dfbc6aea59e701ff5634d6c
8c277dfb8c4a4cdf25ad7f1851d1247a6a3dc86d
refs/heads/master
2021-01-19T09:14:42.309237
2017-02-15T17:24:07
2017-02-15T17:24:07
82,086,413
0
0
null
null
null
null
UTF-8
Python
false
false
508
py
a=input("enter maximum marks for a subject: ") total_marks=a*5.0 sub1=input("enter marks of subject 1: ") sub2=input("enter marks of subject 2: ") sub3=input("enter marks of subject 3: ") sub4=input("enter marks of subject 4: ") sub5=input("enter marks of subject 5: ") obtain_marks=sub1+sub2+sub3+sub4+sub5 avg_...
7c3a5292dbdf6072cb25a109cfdd13c7983d7548
6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386
/google/ads/googleads/v7/googleads-py/google/ads/googleads/v7/common/types/click_location.py
89822bb622bd68c49742d2af6245686e64e28b2b
[ "Apache-2.0" ]
permissive
oltoco/googleapis-gen
bf40cfad61b4217aca07068bd4922a86e3bbd2d5
00ca50bdde80906d6f62314ef4f7630b8cdb6e15
refs/heads/master
2023-07-17T22:11:47.848185
2021-08-29T20:39:47
2021-08-29T20:39:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,988
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...
[ "bazel-bot-development[bot]@users.noreply.github.com" ]
bazel-bot-development[bot]@users.noreply.github.com
6c32637f146447fc95c3941386d8534c7c68f874
73d9e70adfbc6043ecdb8de2ea1b2339007ea5e9
/tests/features/stdin_input_steps.py
3256a36e7707594433db8cc6b255a844a6491819
[ "Apache-2.0" ]
permissive
cheesinglee/bigmler
e147df8d98bcc0624b325fccf381577e74e62b1e
cda58f6149e211897c931300083c6b1b3686ff11
refs/heads/master
2020-04-06T07:01:11.195760
2015-02-12T23:14:31
2015-02-12T23:14:31
20,578,762
1
1
null
null
null
null
UTF-8
Python
false
false
1,242
py
import os import time import csv import json from lettuce import step, world from subprocess import check_call, CalledProcessError from bigml.api import check_resource from bigmler.checkpoint import file_number_of_lines from common_steps import check_debug from basic_test_prediction_steps import shell_execute @step(r...
9e9bad4bc3e7dda2714a737d0825c060b870f001
55540f3e86f1d5d86ef6b5d295a63518e274efe3
/toolchain/riscv/Darwin/python/lib/python3.7/pickle.py
bfa3c0361b73c6ba406beff72276e2433c78dfc2
[ "Apache-2.0", "Python-2.0" ]
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
57,994
py
"""Create portable serialized representations of Python objects. See module copyreg for a mechanism for registering custom picklers. See module pickletools source for extensive comments. Classes: Pickler Unpickler Functions: dump(object, file) dumps(object) -> string load(file) -> object lo...
28d39c6dea81506b8dd1e1f53230c70c25166d80
6536e42c9a336c80d370d7f07cc4260e4055f683
/wsgitest.py
f50c5fd0888492f0b48b4b2933233864a3b2cb8a
[ "BSD-2-Clause" ]
permissive
jonashaag/WSGITest
4ca01144b6217b4769020c0597d075dd03d4549a
fb6f6981f8cc8192b2207a803c078a03bab31a84
refs/heads/master
2020-05-20T09:41:52.598794
2011-01-17T18:09:21
2011-01-17T18:09:21
818,200
2
0
null
null
null
null
UTF-8
Python
false
false
536
py
import optparse parser = optparse.OptionParser() parser.add_option('-d', dest='default_tests', action='store_true', default=None) if __name__ == '__main__': from wsgitest.run import run_tests options, files = parser.parse_args() if not files: if options.default_tests is None: ...
e2ff3e605f5d643adb4a22ce53b2aa918cf781f4
e5c9fc4dc73536e75cf4ab119bbc642c28d44591
/src/leetcodepython/array/day_week_1185.py
d66cac9a636edc8be0acebb4fb26b98b46b0000b
[ "MIT" ]
permissive
zhangyu345293721/leetcode
0a22034ac313e3c09e8defd2d351257ec9f285d0
50f35eef6a0ad63173efed10df3c835b1dceaa3f
refs/heads/master
2023-09-01T06:03:18.231266
2023-08-31T15:23:03
2023-08-31T15:23:03
163,050,773
101
29
null
2020-12-09T06:26:35
2018-12-25T05:58:16
Java
UTF-8
Python
false
false
1,803
py
# -*- coding:utf-8 -*- ''' /** * This is the solution of No. 1185 problem in the LeetCode, * the website of the problem is as follow: * https://leetcode-cn.com/problems/day-of-the-week * * The description of problem is as follow: * ==================================================================================...
fdaa58c6c8d679b9e5214b8455713c37be838bfc
fa097257d8ec4167db24b17076a38e60dbbb0b36
/Code/27. Quadratic primes.py
fe1e7e6ad3f76dd53febf405107f55c1dfee5f04
[]
no_license
SergeyShk/Project-Euler
5e0d5bb3f03e2baaa25bd895f53603026fb147c7
6f3019ca88a545bf85e714526aa6ca661f89e4a9
refs/heads/master
2021-08-16T03:04:28.000466
2020-04-15T20:13:29
2020-04-15T20:13:29
159,189,991
2
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
''' Euler discovered the remarkable quadratic formula: n^2+n+41 It turns out that the formula will produce 40 primes for the consecutive integer values 0≤n≤39. However, when n=40,40^2+40+41=40(40+1)+41 is divisible by 41, and certainly when n=41,41^2+41+41 is clearly divisible by 41. The incredible form...
3f2d82a98c7780670df6738341d6c92a64e95c4f
8b71aaab38dbe1adac0c3dfa97bd39997272e0d1
/main.py
35138ba0d0bd7dd7909fbd7bb9db47ccdd44538f
[ "MIT" ]
permissive
sreekesari-vangeepuram/visual-card-generator
39486d0d0565d8400c3d1e4f2b6f77ea8a1d2add
f39b253c21d98119e44ab741d992bde7987354c3
refs/heads/main
2023-07-16T17:03:04.148380
2021-09-07T15:41:33
2021-09-07T15:41:33
339,816,805
1
1
null
2021-08-11T08:28:56
2021-02-17T18:22:34
Python
UTF-8
Python
false
false
5,388
py
""" Copyright © 2021 Vangeepuram Sreekesari Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
72efc772d005b199ba2344008550607a08ac3f5d
6923f79f1eaaba0ab28b25337ba6cb56be97d32d
/Mastering_Probabilistic_Graphical_Models_Using_Python/pgmpy/factors/JointProbabilityDistribution.py
4e8ceff854544881423360c5c64189a912298156
[ "MIT" ]
permissive
burakbayramli/books
9fe7ba0cabf06e113eb125d62fe16d4946f4a4f0
5e9a0e03aa7ddf5e5ddf89943ccc68d94b539e95
refs/heads/master
2023-08-17T05:31:08.885134
2023-08-14T10:05:37
2023-08-14T10:05:37
72,460,321
223
174
null
2022-10-24T12:15:06
2016-10-31T17:24:00
Jupyter Notebook
UTF-8
Python
false
false
9,729
py
#!/usr/bin/env python3 from itertools import product import numpy as np from pgmpy.factors import Factor from pgmpy.independencies import Independencies class JointProbabilityDistribution(Factor): """ Base class for Joint Probability Distribution Public Methods -------------- conditional_distri...
24628a937c4bb015580dcf7db437fbac6c5eb40d
13696a9691b173d75b11b4aee22b79d4ea6b7c0b
/test/test_order_line_item.py
0f2cd0135271ef7e6096299470663b97c0befed0
[ "Apache-2.0" ]
permissive
square/connect-python-sdk
410613bc4b04f0f70176275591a16c9e49e25ede
e00e2889b2dd2c55048219cbe64db79962a68633
refs/heads/master
2023-06-15T09:24:17.190416
2019-08-15T17:44:41
2019-08-15T17:44:41
64,772,029
53
45
Apache-2.0
2020-12-20T18:41:31
2016-08-02T16:07:17
Python
UTF-8
Python
false
false
1,186
py
# coding: utf-8 """ Copyright 2017 Square, 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 la...
1e616727b698fb933c3679722bfecdc53bf353af
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/kid/way_team_business/family/face_issue_city/number/year/health_kerberos_back.py
655af272c1deb6d1ca6522de2970d1ca8ae96cfa
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
3,934
py
using System; using System.Net.Http; using System.Text; using System.Threading.Tasks; // Install Newtonsoft.Json with NuGet using Newtonsoft.Json; namespace translate_sample { class Program { private const string key_var = "TRANSLATOR_TEXT_SUBSCRIPTION_KEY"; private static readonly string subsc...
91c25e9e1439da3790676816b093c0f9a27f9de5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03559/s351538346.py
07b30fc56f836903884b21d2c40f39a3645029b7
[]
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
586
py
import bisect N=int(input().strip()) a=list(map(int, input().split())) b=list(map(int, input().split())) c=list(map(int, input().split())) a.sort() #b.sort(reverse=True) c.sort() ans=0 #for i in range(len(b)): # la=bisect.bisect_left(a, b[i]) # ra=bisect.bisect_right(c, b[i]) # ans+=la*(len(c)-ra) # print(l...
6b0f05b24305838a791d7539f7b5f6e7fa6c8395
850d778687e3692ab2a38d4d2227391d92c21e6b
/atcoder.jp/arc008/arc008_4/Main.py
1bc7f5184d2c991ab49a12ce1a26ad20d78090fc
[]
no_license
Valkyrja3607/AtCoder
77e2e5e66c0e8e12bb902c35f679119c6576fad7
9218a50b1eb83e4498845d15d9dda41fab90ed73
refs/heads/master
2023-07-15T20:38:52.911301
2018-05-30T17:56:22
2018-05-30T17:56:22
294,980,006
0
0
null
null
null
null
UTF-8
Python
false
false
681
py
n,m=[int(j) for j in input().split()] pab=[[float(j) for j in input().split()] for i in range(m)] ll=[] for p,a,b in pab: ll.append(p) ll.sort() from collections import Counter l=Counter() for i in range(m): l[ll[i]]=i #A[k]をxに変更 O(logN) def update(k,x,y): k += num seg_min[k] = x seg_max[k] = y ...
925db904b3e3bce5fd3d07069328ae9b575f7401
1e99d202f94d26d8af5405a8c8284a5ffc345bba
/user/models.py
09b73ff470a86207cf8f06d317e689aca1d5b450
[]
no_license
madlad33/drf_pythonmate
889b6a057ab9ac60b1e1138c2eb4ebc96d873e7c
0b47ed41e847b0e0a7920e008867cdf971bddd6c
refs/heads/master
2023-02-18T09:02:35.313419
2021-01-11T17:03:19
2021-01-11T17:03:19
328,583,038
0
0
null
null
null
null
UTF-8
Python
false
false
1,088
py
from django.db import models from django.contrib.auth.models import AbstractUser from django.contrib.auth.base_user import BaseUserManager # Create your models here. class UserManager(BaseUserManager): def create_user(self,email,password=None,**extrafields): if not email: raise ValueError("Emai...
a4a5d7c166a9d300707f6a1c1407b5a9c15b1ace
14e3a6d5d5ef1a7fc576c0670361fc908630b495
/python/clx/eda/__init__.py
f5615c081f99808a87e4ee8d070f7f3c2db6964d
[ "Apache-2.0" ]
permissive
rapidsai/clx
3b6e49b53704de7f81fcd923ae88148a6ed5f031
68c14f460b5d3ab41ade9b2450126db0d2536745
refs/heads/branch-23.04
2023-05-25T09:37:15.553353
2023-05-19T16:07:00
2023-05-19T16:07:00
186,716,715
169
93
Apache-2.0
2023-05-19T16:07:02
2019-05-14T23:47:32
Jupyter Notebook
UTF-8
Python
false
false
42
py
from clx.eda.eda import EDA # noqa: F401
4f6edf20cdebe577b8864010fef1e297df7d682c
e18a353582609732c795401f1a01bc762bd939f2
/top/python/test_reweighting.py
091f786c198a373f5f95cb41e3770088680d9081
[]
no_license
s-farry/workspaces
06741807bb464bb0712d52108c2d1b7ae62b1353
0dcf3868dcbe110206ea88ff5c9e04a3b44b1ca1
refs/heads/master
2020-04-03T00:45:39.152227
2017-06-15T16:33:33
2017-06-15T16:33:33
64,213,815
0
0
null
null
null
null
UTF-8
Python
false
false
13,370
py
from Jawa import MWTemplate from ROOT import TFile, TTree, TCut, TPaveText, TLine f = TFile("/user2/sfarry/workspaces/top/output.root") t = f.Get("topTuple") mwt = MWTemplate("top_eft") mwt.AddTree(t) mwt.ApplyCut() mwt.AddVar("top_rap", "abs(top_rap)", 50, 0, 4) mwt.AddVar("antitop_rap", "abs(antitop_rap)", 50, 0, 4...
36b8165874527ec6b6a038f2526a3b40284cad6c
80075edf813fa1c7ef3126b153e7ab2f6c42f0be
/xml/Reading_XML_File_From_Python_Code.py
992076a09487b050d0949ebe21ed811ab5e7f2c2
[]
no_license
keshavkummari/python-nit-930pm
a7e16701d981145f8fdc27e741169ef76616bc8a
aa3bb7654c091e3d04098483525768e287604c38
refs/heads/master
2020-04-01T15:00:20.366890
2018-11-29T17:14:41
2018-11-29T17:14:41
153,316,831
0
0
null
null
null
null
UTF-8
Python
false
false
1,404
py
# A simple XML file, later parse it with Python minidom. ''' staff.xml <?xml version="1.0"?> <company> <name>Mkyong Enterprise</name> <staff id="1001"> <nickname>mkyong</nickname> <salary>100,000</salary> </staff> <staff id="1002"> <nickname>yflow</nickname> <salary>200,000</salary> </staff> ...
9a5c1c8d4f358589a5a518cc0e191b06f084541c
a2e638cd0c124254e67963bda62c21351881ee75
/Extensions/Accounting/FPythonCode/FAccountingRollForward.py
aadcf523a93669d6ecde20daab2b4b7f22aa7ead
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,284
py
""" Compiled: 2020-09-18 10:38:46 """ #__src_file__ = "extensions/accounting/etc/FAccountingRollForward.py" # operations from FOperationsCollectionUtils import PopObject # accounting from FAccountingEngineEOFY import IAccountingEOFYEngine from FAccountingCreation import CreateRollForwardJournals from FAccountingPai...
bab242cced1e1ad5251f1876544fa92f2c8f4c73
8ee5dcbdbd407eb5f294d430813b16eca22f571c
/data/HW3/hw3_359.py
802a68fe38d1f46796648e9870bd99992298710a
[]
no_license
MAPLE-Robot-Subgoaling/IPT
5e60e2ee4d0a5688bc8711ceed953e76cd2ad5d9
f512ea3324bfdceff8df63b4c7134b5fcbb0514e
refs/heads/master
2021-01-11T12:31:00.939051
2018-08-13T23:24:19
2018-08-13T23:24:19
79,373,489
1
1
null
null
null
null
UTF-8
Python
false
false
1,070
py
temp = float(input("Please enter the temperature: ")) scale = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ") MELTING_POINT_C = 32 BOILING_POINT_C = 100 MELTING_POINT_K = 273.15 BOILING_POINT_K = 373.15 def main(): if scale == "C": if temp >= 0 and temp < MELTING_POINT_C: ...
bd3f59a9d11388780a80aad702971349799580c5
0320ac4a623f9153468952a64af9093430801dcb
/tests/callbacks/learning_rate_test.py
9503c866bcca0a3f3d20446c89f8d9a9d3d4676a
[ "MIT" ]
permissive
carmocca/PyLaia
330629610569f9347de5cb3eb479c2ed5abaceb6
65b0dde6211f96d061ce6264e50ba316e8f0e7f3
refs/heads/master
2023-02-25T06:23:51.755052
2021-01-24T13:16:48
2021-01-24T13:16:48
277,486,482
1
1
MIT
2020-12-02T03:08:13
2020-07-06T08:32:49
Python
UTF-8
Python
false
false
1,556
py
import pytest import torch from laia.callbacks import LearningRate from laia.dummies import DummyEngine, DummyLoggingPlugin, DummyMNIST, DummyTrainer def test_learning_rate_warns(tmpdir): trainer = DummyTrainer( default_root_dir=tmpdir, max_epochs=1, callbacks=[LearningRate()], ) ...
c32161bd88210e1a6c87cb5395adf9e602d68732
61aa319732d3fa7912e28f5ff7768498f8dda005
/src/cpu/testers/gpu_ruby_test/ProtocolTester.py
cf24aec71ce40a0c2c4589ca6fb05c77686a5dd2
[ "BSD-3-Clause", "LicenseRef-scancode-proprietary-license", "LGPL-2.0-or-later", "MIT" ]
permissive
TeCSAR-UNCC/gem5-SALAM
37f2f7198c93b4c18452550df48c1a2ab14b14fb
c14c39235f4e376e64dc68b81bd2447e8a47ff65
refs/heads/main
2023-06-08T22:16:25.260792
2023-05-31T16:43:46
2023-05-31T16:43:46
154,335,724
62
22
BSD-3-Clause
2023-05-31T16:43:48
2018-10-23T13:45:44
C++
UTF-8
Python
false
false
3,587
py
# Copyright (c) 2017-2021 Advanced Micro Devices, Inc. # All rights reserved. # # For use for simulation and test purposes only # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must ...
2678427304e86a98502f35d1db2967dda840a57b
10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94
/Python/can-you-eat-your-favorite-candy-on-your-favorite-day.py
bdb18cca50672369c8859fc0b27ba4afe75dc6ed
[ "MIT" ]
permissive
kamyu104/LeetCode-Solutions
f54822059405ef4df737d2e9898b024f051fd525
4dc4e6642dc92f1983c13564cc0fd99917cab358
refs/heads/master
2023-09-02T13:48:26.830566
2023-08-28T10:11:12
2023-08-28T10:11:12
152,631,182
4,549
1,651
MIT
2023-05-31T06:10:33
2018-10-11T17:38:35
C++
UTF-8
Python
false
false
429
py
# Time: O(n) # Space: O(n) class Solution(object): def canEat(self, candiesCount, queries): """ :type candiesCount: List[int] :type queries: List[List[int]] :rtype: List[bool] """ prefix = [0]*(len(candiesCount)+1) for i, c in enumerate(candiesCount): ...
d306243861c84fe774348629e0f6ea3b171e152b
e3b9aa9b17ebb55e53dbc4fa9d1f49c3a56c6488
/duo_admin/komand_duo_admin/actions/enroll_user/__init__.py
7def71a20edba019a1102a426347c6cd09323cbe
[ "MIT" ]
permissive
OSSSP/insightconnect-plugins
ab7c77f91c46bd66b10db9da1cd7571dfc048ab7
846758dab745170cf1a8c146211a8bea9592e8ff
refs/heads/master
2023-04-06T23:57:28.449617
2020-03-18T01:24:28
2020-03-18T01:24:28
248,185,529
1
0
MIT
2023-04-04T00:12:18
2020-03-18T09:14:53
null
UTF-8
Python
false
false
71
py
# GENERATED BY KOMAND SDK - DO NOT EDIT from .action import EnrollUser
ab874f54709718eb18eb3c5f718ae9204a92281a
b4bb9a937e0904db89c6496389f49ae555258fc5
/apps/messages.py
b446216ae5a1105af91ba51c24960a4feb5e9fa3
[]
no_license
vitoralves/python-api
3e1f5f77ba61e0df2770c9d24240b46ee9c37449
125172ee7906392c49884f8e8fdf21bc9aa60c2c
refs/heads/master
2020-05-24T04:21:48.857073
2019-05-22T16:19:52
2019-05-22T16:19:52
187,090,895
0
1
null
null
null
null
UTF-8
Python
false
false
1,000
py
MSG_FIELD_REQUIRED = 'Campo obrigatório.' MSG_INVALID_DATA = 'Ocorreu um erro nos campos informados.' MSG_DOES_NOT_EXIST = 'Este(a) {} não existe.' MSG_EXCEPTION = 'Ocorreu um erro no servidor. Contate o administrador.' MSG_ALREADY_EXISTS = 'Já existe um(a) {} com estes dados.' MSG_NO_DATA = "Os dados não podem ser nul...
[ "=" ]
=
fe31ab89f3e3accf47cecdd7b82dfdfe1dc82ed0
66e6360325b781ed0791868765f1fd8a6303726f
/TB2009/WorkDirectory/5161 Profile Check/Profile_108541.py
2258d75bb8e0e950291c863f0631348a9989fb97
[]
no_license
alintulu/FHead2011PhysicsProject
c969639b212d569198d8fce2f424ce866dcfa881
2568633d349810574354ad61b0abab24a40e510e
refs/heads/master
2022-04-28T14:19:30.534282
2020-04-23T17:17:32
2020-04-23T17:17:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,101
py
import FWCore.ParameterSet.Config as cms process = cms.Process("ProfileCleanedMIP") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) process.source = cms.Source("HcalTBSource", fileNames = cms.untracked.vstring("file:/tmp/chenyi/HTB_108541.root"), streams = cms.untracked.vstring(...
43a44eb94d4c3cdc0eb12a66ca6aeb7e6f8ab7c6
49253f12cea4b2ec1df4d68876c3c330fec3f52b
/001_数据结构相关/001_set集合_交集_并集_差集_对称差集.py
f1a21ae3614ae074ef531ce11370b4832eeadf37
[]
no_license
FelixZFB/Python_development_skills_summary
b2877652a5396936a28d5c65fb407df201ffa158
998679496de8385bda34734f83d927a7d340876a
refs/heads/master
2020-06-09T16:58:51.242686
2020-02-27T07:02:48
2020-02-27T07:02:48
193,472,885
0
0
null
null
null
null
UTF-8
Python
false
false
668
py
# -*- coding:utf-8 -*- # # 集合支持一系列标准操作,包括并集、交集、差集和对称差集,例如: # a = t | s # t 和 s的并集 # b = t & s # t 和 s的交集 # c = t – s # 求差集(项在t中,但不在s中) # d = t ^ s # 对称差集(项在t或s中,但不会同时出现在二者中) a = [1, 5, 10, 15, 10] b = [1, 5, 10, 9, 12] # 集合会去掉重复元素 print(set(a)) print("*" * 50) # 并集 c1 = set(a) | s...
81baef8090682ce775be599e4786806b1672e33f
8a7abed7c441600a66bf2ef9135ff3a367ac0eb2
/website/goals/migrations/0001_initial.py
00da811bea795906390ec6595dd4df58f5432e91
[]
no_license
mrooney/mikesgoals
094d30160817879243b7539df5a3759d19583edc
dd0b0aee7ce20d43852cf694bc1ecb5af23dde94
refs/heads/master
2023-04-09T16:10:16.008923
2022-07-07T17:33:00
2022-07-07T17:33:00
4,474,379
2
0
null
2023-03-31T14:38:43
2012-05-28T20:30:43
Python
UTF-8
Python
false
false
1,019
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Goal' db.create_table('goals_goal', ( ('id', self.gf('django.db.models.fields.Au...
6009fe56a5b567eb3751301b21273398f872f28d
b13c57843cb8886c6f5d630ca099ad9130b26f25
/python/장고/first.py
94cc29b0619ffd718f3cfc6ee9a510900562b741
[]
no_license
schw240/07.27-12.1_CLOUD
6b563318f7208b843a13634a1cf46206197d6dfc
8b4dc2d31e5d2ba96bde143116aba3ba0dad7a49
refs/heads/master
2023-03-25T15:44:03.555567
2021-03-30T02:09:32
2021-03-30T02:09:32
282,791,349
4
0
null
2021-03-19T15:00:00
2020-07-27T04:10:56
Jupyter Notebook
UTF-8
Python
false
false
1,297
py
from http.server import BaseHTTPRequestHandler, HTTPServer import datetime class HelloHandler(BaseHTTPRequestHandler): def do_GET(self): print(self.path) if self.path == '/my': self.send_response(200) self.end_headers() self.wfile.write("MyPage!".encode('utf-8')) ...
1f59f228ff0e99901be7116e146557c93e7e6de9
8957f0b42ba945399a2eeb71f796c11c9eb35b06
/lib/shutil.py
9fbc746cde5e9927a18068b6eab8284c354c82f8
[]
no_license
notro/tmp_CircuitPython_stdlib
4de177cbb45b2209f07171c27f844c7d377dffc9
641727294039a9441c35ba1a1d22de403664b710
refs/heads/master
2020-03-27T18:26:33.544047
2019-02-15T20:49:34
2019-02-15T20:49:34
146,922,496
1
1
null
null
null
null
UTF-8
Python
false
false
41,703
py
#"""Utility functions for copying and archiving files and directory trees. # #XXX The functions here don't copy the resource fork or other metadata on Mac. # #""" # import os import sys import stat from os.path import abspath import fnmatch #import collections #import errno #import tarfile # #try: # import bz2 # ...
393d712064d56ab0df11650c6d6f49b01aafb3b7
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-9296.py
9ce70cba78da7c66126b2610ec5adcf9316b16a0
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,754
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
ad6cc0a08e8ba3d2ad47ab45d0395df6b071594b
006341ca12525aa0979d6101600e78c4bd9532ab
/CMS/Zope-3.2.1/Dependencies/zope.app-Zope-3.2.1/zope.app/i18n/filters.py
2807d5ca114aaa6b7749be72ef8b4ab16fdbd8fe
[ "ZPL-2.1", "Python-2.0", "ICU", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0" ]
permissive
germanfriday/code-examples-sandbox
d0f29e20a3eed1f8430d06441ac2d33bac5e4253
4c538584703754c956ca66392fdcecf0a0ca2314
refs/heads/main
2023-05-30T22:21:57.918503
2021-06-15T15:06:47
2021-06-15T15:06:47
377,200,448
0
0
null
null
null
null
UTF-8
Python
false
false
6,811
py
############################################################################## # # Copyright (c) 2001, 2002 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # T...
666734fbab3cb22c4ae127e2c5eb2dfdc12998ad
e8f99a162207cba82d4e0f969d7bcdb2b9d8b522
/bilibili/__init__.py
8575f7bf75a23b0ea81613856cde28d78cc161cf
[]
no_license
TesterCC/Python3Scripts
edb5446278ebf13edb64336001081941ca27d67d
58be67e1ffc74ef50289a885aa4ad05f58e2c383
refs/heads/master
2023-08-30T21:16:38.328045
2023-08-17T11:23:08
2023-08-17T11:23:08
93,401,996
6
3
null
null
null
null
UTF-8
Python
false
false
93
py
#!/usr/bin/env python # -*- coding:utf-8 -*- __author__ = 'MFC' __time__ = '2020-04-22 06:50'
018a186845663f611cb74d50a4a07985de62ac46
1a093cb59320db7327d665910d8ed36ea5bba95b
/banana/analysis/mri/dwi.py
06c6f5ca8cf63784e5d819b09cb611a69248c58d
[ "Apache-2.0" ]
permissive
MonashBI/banana
23bfa1aff12fe0ded709c99679a1c0d9687e4ffa
37364243b520ab14ac1243005dbd465f824542b4
refs/heads/master
2022-07-23T08:13:33.191149
2022-06-15T02:17:18
2022-06-15T02:17:18
134,526,663
3
3
Apache-2.0
2019-11-13T23:00:15
2018-05-23T06:53:38
Python
UTF-8
Python
false
false
49,248
py
import os from logging import getLogger import tempfile import subprocess as sp from nipype.interfaces.utility import Merge, IdentityInterface from nipype.interfaces.fsl import ( TOPUP, ApplyTOPUP, BET, FUGUE, Merge as FslMerge) from nipype.interfaces.utility import Merge as merge_lists from nipype.interfaces.fsl.e...
4c1fac6ffc39bfa3667bc5a2ef3b71ca0e4f0283
bee2af5228232ce94f418b61810cecd93af62615
/movies/tests.py
a6adfa1859a67fd17757470bea1d839c9c970cc3
[]
no_license
thuitafaith/djangoapp
b64c2e1a05c67b1135d4d9dd7975c17522238a69
e06280b34a7b1ec012d0baab6f0fb153875a39b4
refs/heads/master
2022-12-11T19:06:08.540528
2019-08-29T12:36:45
2019-08-29T12:36:45
203,321,071
0
0
null
2022-11-22T04:13:07
2019-08-20T07:15:28
Python
UTF-8
Python
false
false
1,600
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.test import TestCase from .models import Editor,Article,tags import datetime as dt # Create your tests here. class EditorTestClass(TestCase): # set up method def setUp(self): self.faith=Editor(first_name='faith',last_name='...
f287244a91e88664b5d41777c7749b04894158ea
f4b16d247195621a5413aab56919b4e623b604b8
/src/faimes/urban/dataimport/opinionmakers/settings.py
ed4e0587d66bb5c2e6bf895523ee08c2b6023e75
[]
no_license
IMIO/faimes.urban.dataimport
cc1a7e3050538f409c29e3031a175e8d1a96c7db
67fcaa14a5951df7cbaf64b59794aab0a2b88f7f
refs/heads/master
2021-01-10T17:52:51.975421
2017-03-16T13:27:27
2017-03-16T13:27:27
52,949,709
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
# -*- coding: utf-8 -*- from faimes.urban.dataimport.opinionmakers.importer import OpinionMakersImporter from imio.urban.dataimport.access.settings import AccessImporterFromImportSettings class OpinionMakersImporterFromImportSettings(AccessImporterFromImportSettings): """ """ def __init__(self, settings_for...
e4b32b9e6339263746a7889bc6d5cedd7cda3845
edad2e75198bcfdf75965e132e268b4ebbbd70e2
/old/other_scripts_notneeded/main_scripts_for_yuva/python_utility3_remote_seed_yuva.py
f79d87f760065f05716ccbed7e8ca8662d20bc47
[]
no_license
nandithaec/python-utility
d50a6e802bf3a9afadbaf3f5207efdba875c7e70
b8b7377b87630375ff804c7204d37a1c7ecee826
refs/heads/master
2021-01-10T07:00:18.820227
2015-04-16T06:01:44
2015-04-16T06:01:44
36,727,025
0
0
null
null
null
null
UTF-8
Python
false
false
15,448
py
#!/usr/bin/env python #IMPORTANT: It is assumed that we are running parallel ngspice simulations on a remote 48-core cluster at 10.107.105.201. If this is not the case, you will need to modify this script to run it on this machine, by commenting out the scp and ssh commands. #Example usage: python /home/external/ii...
9e20dbe06af05a8d7d2965f3a10c0d4cddb65dd4
6a928ba05fb0f0ff1c5fc2b16792299b8b0944d6
/_Attic/btleclassifier_orig.py
119176d090171d7c677fcde43c9a509d4e41efe9
[ "MIT" ]
permissive
simsong/python-corebluetooth
22b933c31f9aaaa614e76eafe6bfca679a50d626
29ef9e8d3e5ab8fd838fd254cd079449d8064441
refs/heads/master
2021-08-07T13:22:13.170086
2020-07-06T17:47:31
2020-07-06T17:47:31
197,768,612
3
3
null
2019-07-20T05:32:35
2019-07-19T12:25:17
Python
UTF-8
Python
false
false
15,356
py
# File: btleclassifier.py # Author: Johannes K Becker <[email protected]> # Date: 2019-01-29 # Last Modified Date: 2019-07-18 # Last Modified By: Johannes K Becker <[email protected]> # Advertising Data Type (AD Type) Definitions here: # https://www.bluetooth.com/specifications/assigned-numbers/generic-access-prof...
06d163a2fe5ead35d5e572263a70fde2496f201a
745197407e81606718c4cdbedb6a81b5e8edf50b
/tests/texttest/TestSelf/TestData/GUI/CopyTestPermission/TargetApp/printpermissions.py
982669999d14a181bf22034492a6efd8f0066ec8
[]
no_license
dineshkummarc/texttest-3.22
5b986c4f6cc11fd553dab173c7f2e90590e7fcf0
85c3d3627082cdc5860d9a8468687acb499a7293
refs/heads/master
2021-01-23T20:44:35.653866
2012-06-25T07:52:13
2012-06-25T07:52:13
4,779,248
1
0
null
null
null
null
UTF-8
Python
false
false
151
py
#!/usr/bin/env python import os if os.name == "posix": os.system("fake_executable.py 2> /dev/null") else: os.system("fake_executable.py 2> nul")
41966c4c82d82d656d5fa42250f7a8267dfc0855
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_3_neat/16_0_3_solomon_wzs_coin_jam2.py
dd210cf970f87c5ec2c5810a2df187cfd1dd819d
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
2,771
py
#!/usr/bin/python2 import math prime_list = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 113, 193, 241, 257, 337, 353, 401, 433, 449, 577, 593, 641, 673, 769, 881, 929, 977, 1009, 1153, 1201, 1217, 1249, 1297...
c429802a9089f13c1454fc1561fb824738bee9ed
35a2c7e6a01dc7f75116519e4521880416f2a9f2
/tag/migrations/0002_value.py
2824ada9ec86e752a45838963178796c90938761
[]
no_license
engrogerio/edr-rest
ae977857d86aab3ef5b40e4d2be2e24abda97cb9
a1115a1cd80c0531a85545681b0d3a70b97c529e
refs/heads/master
2021-01-12T06:35:47.059448
2016-12-26T16:20:14
2016-12-26T16:20:14
77,392,903
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
# -*- coding: utf-8 -*- # Generated by Django 1.9 on 2016-09-07 15:42 from __future__ import unicode_literals import datetime from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): dependencies = [ ('f...
2db93df279e2e7651e7f462a9d558dc444be41b7
b42b8f2bfadd25c51cbb12054bc6df42943b7536
/venv/Scripts/easy_install-3.7-script.py
d0dad9ea927377d5b3c3ccd6ddf55aeec430b305
[]
no_license
sharikgrg/week4.Gazorpazorp
4b785f281334a6060d6edc8a195a58c072fb5a75
0f168a0df81703a8950e375081cafd2e766595fb
refs/heads/master
2020-08-03T22:41:43.373137
2019-09-30T15:35:29
2019-09-30T15:35:29
211,907,335
0
0
null
null
null
null
UTF-8
Python
false
false
510
py
#!"C:\Users\Sharik Gurung\OneDrive - Sparta Global Limited\PYTHON\gazorpazorp-space-station\venv\Scripts\python.exe" # EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.7' __requires__ = 'setuptools==40.8.0' import re import sys from pkg_resources import load_entry_point if __name__ == ...
a6095634bed30033519406856e61a0c38e3efe78
be5d1ababc8dee59d3ea7687d5feee791ea78821
/.vEnv/lib/python3.5/keyword.py
8ff824fb913bb4a45d41291215d8dcb855a930e8
[]
no_license
duggalr2/Personal-RSS
980083337b52d2b8a74257766d3f1f1f546cac44
d4cc0d04fdb19ce957f74cfbc583662f0dc3e727
refs/heads/master
2021-08-24T07:11:09.036689
2017-12-08T15:17:34
2017-12-08T15:17:34
100,282,827
1
0
null
null
null
null
UTF-8
Python
false
false
46
py
/Users/Rahul/anaconda/lib/python3.5/keyword.py
25fe704f5be77484a077c570572772385b9cdd39
27c27208a167f089bb8ce4027dedb3fcc72e8e8a
/ProjectEuler/Solutions/Problems 50-100/Q075.py
b1510ace6b6e74c60b66d6a3e138b7926017acc7
[]
no_license
stankiewiczm/contests
fd4347e7b84c8c7ec41ba9746723036d86e2373c
85ed40f91bd3eef16e02e8fd45fe1c9b2df2887e
refs/heads/master
2021-05-10T16:46:41.993515
2018-02-16T09:04:15
2018-02-16T09:04:15
118,587,223
0
0
null
null
null
null
UTF-8
Python
false
false
500
py
from numpy import * # m^2+n^2, 2mn, m^2-n^2 LIM = 1500000; Count = zeros(LIM+1, int); def GCD(a,b): while (b > 0): c = a-(a/b)*b; a = b; b = c; return a; m = 1; M2 = 1; while (2*M2 < LIM): n = m%2+1; while (2*M2+2*m*n < LIM) and (n < m): if GCD(m,n) ==...
3f6d20b2b0368bc1fce9ed4428930b1693f2765e
d554b1aa8b70fddf81da8988b4aaa43788fede88
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4134/codes/1723_2505.py
8e06f5ecd7a38c37363f35f111d10476601ae390
[]
no_license
JosephLevinthal/Research-projects
a3bc3ca3b09faad16f5cce5949a2279cf14742ba
60d5fd6eb864a5181f4321e7a992812f3c2139f9
refs/heads/master
2022-07-31T06:43:02.686109
2020-05-23T00:24:26
2020-05-23T00:24:26
266,199,309
1
0
null
null
null
null
UTF-8
Python
false
false
217
py
from math import* ang = eval(input("angulo:")) k = int(input("numero de termos:")) soma = 0 i = 0 fim = k - 1 while(i <= fim): soma = soma+(-1)**i*((ang**(2*i+1)/factorial(2*i+1))) i = i + 1 print(round(soma, 10))
e31dea602a2885d6f6b29d64376f9e3e2a16e75e
57391fbdde43c3d2e8628613d9003c65ff8abf9d
/Exercicios/ex050.py
c2deb6d939dc7f9a9690a0cbb5d9e7af53d18167
[]
no_license
JoaolSoares/CursoEmVideo_python
082a6aff52414cdcc7ee94d76c3af0ac2cb2aaf5
aa9d6553ca890a6d9369e60504290193d1c0fb54
refs/heads/main
2023-07-15T07:39:57.299061
2021-08-26T20:04:22
2021-08-26T20:04:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
soma = 0 for c in range(1, 7): n1 = int(input('Diga um {}º numero: ' .format(c))) if n1 % 2 == 0: soma += n1 print('A soma de todos os numeros pares é de: \033[1;34m{}\033[m'. format(soma))
347d0ea9561448fc30d4a289a796fa6453ad8a76
08120ee05b086d11ac46a21473f3b9f573ae169f
/gcloud/google-cloud-sdk/.install/.backup/lib/surface/projects/add_iam_policy_binding.py
c25bf659de28f724ec44d284cf9b7e902abe6009
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
harrystaley/TAMUSA_CSCI4349_Week9_Honeypot
52f7d5b38af8612b7b0c02b48d0a41d707e0b623
bd3eb7dfdcddfb267976e3abe4c6c8fe71e1772c
refs/heads/master
2022-11-25T09:27:23.079258
2018-11-19T06:04:07
2018-11-19T06:04:07
157,814,799
2
0
null
null
null
null
UTF-8
Python
false
false
2,025
py
# -*- coding: utf-8 -*- # # Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
c850b7ff62e072b79250924149b4b8d33658b86a
1276051db6315e12459bd96f1af76ca9f03cb2b4
/pyslet/blockstore.py
b74c8f5b1edc2ec316f6b28ceb8996475d0c8d75
[ "BSD-3-Clause" ]
permissive
rcplay/pyslet
587a08a3225322e44e9cdea22a9f752008ca5eff
152b2f2a3368ecd35ce985aef1f100f46dc4ae6d
refs/heads/master
2021-01-18T15:56:32.635146
2016-02-25T08:32:43
2016-02-25T08:32:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
28,255
py
#! /usr/bin/env python import hashlib import os import threading import time import random import logging import string import io from pyslet.vfs import OSFilePath as FilePath from pyslet.iso8601 import TimePoint import pyslet.http.params as params import pyslet.odata2.csdl as edm import pyslet.odata2.core as core ...
105b66682da75be919d969965dcd0c11bb4617ce
80d50ea48e10674b1b7d3f583a1c4b7d0b01200f
/src/datadog_api_client/v1/model/monitor_search_response_counts.py
94a81e62a22817294ef78c86f9fecc7290984a77
[ "Apache-2.0", "BSD-3-Clause", "MIT", "MPL-2.0" ]
permissive
DataDog/datadog-api-client-python
3e01fa630278ad0b5c7005f08b7f61d07aa87345
392de360e7de659ee25e4a6753706820ca7c6a92
refs/heads/master
2023-09-01T20:32:37.718187
2023-09-01T14:42:04
2023-09-01T14:42:04
193,793,657
82
36
Apache-2.0
2023-09-14T18:22:39
2019-06-25T22:52:04
Python
UTF-8
Python
false
false
2,063
py
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. # This product includes software developed at Datadog (https://www.datadoghq.com/). # Copyright 2019-Present Datadog, Inc. from __future__ import annotations from typing import Union, TYPE_CHECKING from datado...
ee7611e405952a6d724354ab56524138152af431
f8d3f814067415485bb439d7fe92dc2bbe22a048
/solem/pcv_book/graphcut.py
242ac3449953f8cca3ec94fabb66d20ceecfa821
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
gmonkman/python
2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3
9123aa6baf538b662143b9098d963d55165e8409
refs/heads/master
2023-04-09T15:53:29.746676
2022-11-26T20:35:21
2022-11-26T20:35:21
60,254,898
0
2
null
2023-03-24T22:58:39
2016-06-02T10:25:27
Python
UTF-8
Python
false
false
3,413
py
from pylab import * from numpy import * from pygraph.classes.digraph import digraph from pygraph.algorithms.minmax import maximum_flow import bayes """ Graph Cut image segmentation using max-flow/min-cut. """ def build_bayes_graph(im, labels, sigma=1e2, kappa=1): """ Build a graph from 4-neighborhood of p...
59aeb4698e5be1a9660b979dcf41c2e3880deca6
14bb0b5d7478d3a8740cbc15cc7870fcd1fa8207
/tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/common_v1.py
c8dcb7ba231cf3f57f8b8a5dd3782e2a124fbac7
[ "Apache-2.0" ]
permissive
terigrossheim/tensorflow
2be34891c99e0fcf88cf8418632f24676f1620a7
ed9d45f096097c77664815c361c75e73af4f32d4
refs/heads/master
2022-11-06T12:08:10.099807
2020-06-29T12:10:56
2020-06-29T12:35:24
275,867,898
1
0
Apache-2.0
2020-06-29T16:21:41
2020-06-29T16:21:39
null
UTF-8
Python
false
false
4,320
py
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
c30392e2bb7b8ca47fa86eecc06d3ba2ebbf67c5
b6472217400cfce4d12e50a06cd5cfc9e4deee1f
/sites/top/api/rest/WlbItemDeleteRequest.py
90181cc7828d9d8c9ed09c35a46a07e62a9e7a08
[]
no_license
topwinner/topwinner
2d76cab853b481a4963826b6253f3fb0e578a51b
83c996b898cf5cfe6c862c9adb76a3d6a581f164
refs/heads/master
2021-01-22T22:50:09.653079
2012-08-26T19:11:16
2012-08-26T19:11:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
296
py
''' Created by auto_sdk on 2012-08-26 16:43:44 ''' from top.api.base import RestApi class WlbItemDeleteRequest(RestApi): def __init__(self,domain,port): RestApi.__init__(self,domain, port) self.item_id = None self.user_nick = None def getapiname(self): return 'taobao.wlb.item.delete'
a33002ee62b9f1e34ed9eabcd27de694c1e05a29
00f1f01f218fddc30a4194e999f0b48c45c47012
/elements/resources/migrations/0001_initial.py
fb4b807194a3f2905b8e8ba7d9f27baedea4299e
[]
no_license
mikpanko/grakon
495659317c5933a95650b3f9000aab73e7335a13
6c64432c366a6ad44fb7227f22498335bd193f37
refs/heads/master
2020-12-26T00:19:52.799388
2013-07-28T02:33:19
2013-07-28T02:33:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,184
py
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.rename_table('elements_entityresource', 'resources_entityresource') if not db.dry_run: # For...
c24968234482ab1ffb8a859e5600f442fb2e4fff
2fb75382cb8bb94ed8da382dc5843766ead6def2
/python/xraydb/xraydb.py
975f87f7bf9e39948a982fe26446153e5d8eb0da
[ "LicenseRef-scancode-public-domain", "BSD-3-Clause" ]
permissive
mlevant/XrayDB
16c677121364e163ce9c91a38c4880c0c3b6aa19
cf2b405a60cefae961db220aca62f3fb7375b544
refs/heads/master
2021-05-18T01:46:21.303699
2019-10-09T18:38:10
2019-10-09T18:38:10
251,052,175
0
0
NOASSERTION
2020-03-29T14:29:43
2020-03-29T14:29:43
null
UTF-8
Python
false
false
25,199
py
#!/usr/bin/env python """ SQLAlchemy wrapping of x-ray database for data from Elam et al, Chantler et al, Waasmaier and Kirfel Main Class for full Database: xrayDB """ import os import json from collections import namedtuple import numpy as np from scipy.interpolate import UnivariateSpline from sqlalchemy impo...
1dcaa9207f2ccf6e23d755d436896b1aef624ac1
a170461845f5b240daf2090810b4be706191f837
/pyqt/DemoFullCode-PythonQt/chap12QtChart/Demo12_2ChartConfig/myDialogPen.py
4cdbf17519ebcd8973fd4577bfea498efc83ca6b
[]
no_license
longhuarst/QTDemo
ec3873f85434c61cd2a8af7e568570d62c2e6da8
34f87f4b2337a140122b7c38937ab4fcf5f10575
refs/heads/master
2022-04-25T10:59:54.434587
2020-04-26T16:55:29
2020-04-26T16:55:29
259,048,398
1
1
null
null
null
null
UTF-8
Python
false
false
3,026
py
# -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import QApplication, QDialog,QColorDialog from PyQt5.QtCore import pyqtSlot,Qt ##from PyQt5.QtWidgets import from PyQt5.QtGui import QPen, QPalette,QColor from ui_QWDialogPen import Ui_QWDialogPen class QmyDialogPen(QDialog): def __init__(self, par...
449a4e9073d7775f05349340826f0d6e53ce9997
19da1a56f137a08772c347cf974be54e9c23c053
/lib/adafruit_motor/servo.py
0c46abd369009f496e2dd3f194a68ec1901f43f5
[]
no_license
mk53202/mk53202-timeclock-pyportal
d94f45a9d186190a4bc6130077baa6743a816ef3
230a858d429f8197c00cab3e67dcfd3b295ffbe0
refs/heads/master
2021-02-04T05:38:25.533292
2020-02-27T22:45:56
2020-02-27T22:45:56
243,626,362
0
0
null
null
null
null
UTF-8
Python
false
false
7,061
py
# The MIT License (MIT) # # Copyright (c) 2017 Scott Shawcroft for Adafruit Industries LLC # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limit...
f0202a4f34472c4c3be1f395aaae592e9ea9f454
7d9f92fba6af53bd385e0b4173134241c9998fff
/items/admin.py
418f8f0f830fcebdebd5feddc8bd7ec707691ed5
[]
no_license
ljarufe/intifil
856f77c6ece7f444fd331a3eff3c35260201f78f
d478a8a1309d526a2508ca7b559e16de03aaa384
refs/heads/master
2021-01-02T09:09:13.613026
2013-10-21T17:00:03
2013-10-21T17:00:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
# -*- coding: utf-8 -*- from django.contrib import admin from modeltranslation.admin import TranslationAdmin from common.admin import BasePermissionAdmin from items.models import Category, Photo, HomePhoto, Item, Video, SubItem class CategoryAdmin(BasePermissionAdmin, TranslationAdmin): """ Category model ad...
e07ad01c23c45836b064759f00be7e07f68f04e8
f04a36fdaa415c6a47d3727e783b2dce11e3dd43
/blog/views.py
8ae814785c3273121fdfa345ef1043693a0d0a73
[ "BSD-3-Clause" ]
permissive
hellprise/cook_blog
e9486452cc53a1300fce5ea9ea54dbe5c0408bf0
d55734af1625256f940e55d267beb38d911bfda4
refs/heads/main
2023-06-25T21:43:20.284389
2021-07-28T14:36:45
2021-07-28T14:36:45
390,378,042
0
0
null
null
null
null
UTF-8
Python
false
false
480
py
from django.shortcuts import render from django.views.generic import ListView, DetailView from blog.models import Post class PostListView(ListView): model = Post def get_queryset(self): return Post.objects.filter(category__slug=self.kwargs.get('slug')).select_related('category') class PostDetailVi...
89b5ffc396c40540df2fb3de8ea43fa4e9444552
0a74f7afa97a0d31219fdf68b85d0733ef04caf3
/python/pyspark/errors/error_classes.py
e87d37c63e77b262c0d228f0bff9b092a034d35e
[ "CC0-1.0", "MIT", "Python-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Apache-2.0", "LicenseRef-scancode-public-domain", "LicenseRef-scancode-unknown-license-reference", "CDDL-1.1", "BSD-2-Clause", "EPL-2.0", "CDDL-1.0", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-free-unknown",...
permissive
viirya/spark-1
37ad4643b3b31c2a3dfc3d5d55eb2aefa112d5d0
37aa62f629e652ed70505620473530cd9611018e
refs/heads/master
2023-08-31T20:14:55.834184
2023-07-11T16:08:21
2023-07-11T16:08:21
21,467,907
1
3
Apache-2.0
2023-07-12T01:21:50
2014-07-03T15:40:08
Scala
UTF-8
Python
false
false
22,184
py
# # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not us...
95a4b7f4ef92f184eefee95bceee085fc44064e8
ecd2c20608e1f4a1646c87767762bd72db618d65
/photo_blog/settings.py
a119b668239d31d500b4fa6a3be1f70c0a501c4a
[]
no_license
RianGirard/photo_blog
129858ee32cbc2ff0521c8219b72b9d83c015726
e461fa62abe027965b7143cce544d25634d5bf9c
refs/heads/master
2023-06-20T14:36:38.040663
2021-07-21T01:02:13
2021-07-21T01:02:13
383,640,210
0
0
null
null
null
null
UTF-8
Python
false
false
4,867
py
""" Django settings for photo_blog project. Generated by 'django-admin startproject' using Django 2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os f...
5e0d645e8d8db30e316d5aab006e9160adad1df9
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_impromptus.py
fee549bf75880518cd29b8bb36287ecde035b251
[ "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
234
py
#calss header class _IMPROMPTUS(): def __init__(self,): self.name = "IMPROMPTUS" self.definitions = impromptu self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['impromptu']
4e5edd8fae1f0b8969b8d01ebb9cdc696f1cb1e4
0abc546a1442cae56ddcdc43f85497b37fc89036
/scripts/graph_check_transitivity.py
b1793d5f4b9923cd0e824952d489b64036bc0a11
[]
no_license
yangjl/cgat
01a535531f381ace0afb9ed8dc3a0fcff6290446
01758b19aa1b0883f0e648f495b570f1b6159be4
refs/heads/master
2021-01-18T03:55:14.250603
2014-02-24T10:32:45
2014-02-24T10:32:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,395
py
''' graph_check_transitivity.py - ====================================================== :Author: Andreas Heger :Release: $Id$ :Date: |today| :Tags: Python Purpose ------- .. todo:: describe purpose of the script. Usage ----- Example:: python graph_check_transitivity.py --help Type:: python graph_...
b695dc1cd6ac27aeb81909e86ad63a50c0fac5c4
23611933f0faba84fc82a1bc0a85d97cf45aba99
/google-cloud-sdk/lib/surface/compute/instance_groups/describe.py
8a88e0e197d87deb862c3ee4c7fd71f847b772b4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
KaranToor/MA450
1f112d1caccebdc04702a77d5a6cee867c15f75c
c98b58aeb0994e011df960163541e9379ae7ea06
refs/heads/master
2021-06-21T06:17:42.585908
2020-12-24T00:36:28
2020-12-24T00:36:28
79,285,433
1
1
Apache-2.0
2020-12-24T00:38:09
2017-01-18T00:05:44
Python
UTF-8
Python
false
false
1,985
py
# Copyright 2014 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
f691ee2989bae7c40b5a2f82be950381023c2c20
ed51f4726d1eec4b7fec03a1ebaa32d983f1008d
/gardens/apps.py
ffc10b571d2b501f8f6b438e5e9dbaf6f81e5928
[]
no_license
kaczuchg711/OrdiTree
ececbbb13fa48364441ebdde7f52980b2e1175fe
2b87535b8a60b9aca83674e5975f39f3f832c58a
refs/heads/master
2021-05-18T03:36:50.498916
2020-06-13T12:42:44
2020-06-13T12:42:44
251,085,715
1
0
null
null
null
null
UTF-8
Python
false
false
89
py
from django.apps import AppConfig class GardensConfig(AppConfig): name = 'gardens'
e36d5216b192e842d632a87650507221796a33e3
bcee50b3cbaf7a8000dffb7326cf467ae432b626
/basic/15650/nm_2_dfs.py
cfe1b263b0584c44a10c3b12c47bba7fd97e0bce
[]
no_license
entrekid/algorithms
53e5e563f6350b76047d8163ecd6e623dbe6e8d1
64377821718b3e44faf6a05be4d3ebf99b674489
refs/heads/master
2022-04-06T21:49:42.081981
2020-03-03T14:58:52
2020-03-03T14:58:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
n, m = map(int, input().split()) check_list = [False] * n num_list = [elem + 1 for elem in range(n)] result_list = [] def nm_dfs2(num): if num == m: print(*result_list) return for iter in range(n): if check_list[iter] == True: continue check_list[iter] = True ...
005e6a8d7f20ae9bcc7a387f6cf8b691bc2da6d2
aaa3ab0c89f558a33ddcad9bcc5a687049dbc599
/backend/src/websocket/socket.py
c7efe44db002bc33abccdeaebe9cf23e1008b529
[]
no_license
vetordev/Hypersup
5d059282971bf45f54f8be49071984371f98aabe
961ac24209a3772fef5016ca851f82bc2fc40bd1
refs/heads/master
2021-02-16T18:40:06.197712
2020-03-18T22:20:13
2020-03-18T22:20:13
245,034,794
0
0
null
null
null
null
UTF-8
Python
false
false
272
py
from flask import request class Socket: def __init__(self, socket, app): self.socket = socket self.app = app def run(self): @self.socket.on('connect') def connect(): print('New Connection; Id: ${id}'.format(id=request.sid))
1d9c3616c035da8730928b2c6d124ebe273b931d
afd2087e80478010d9df66e78280f75e1ff17d45
/torch/distributed/checkpoint/state_dict_saver.py
a99cd129aeb637da7d11cb88ad101de0a72d8c56
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-secret-labs-2011", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
pytorch/pytorch
7521ac50c47d18b916ae47a6592c4646c2cb69b5
a6f7dd4707ac116c0f5fb5f44f42429f38d23ab4
refs/heads/main
2023-08-03T05:05:02.822937
2023-08-03T00:40:33
2023-08-03T04:14:52
65,600,975
77,092
24,610
NOASSERTION
2023-09-14T21:58:39
2016-08-13T05:26:41
Python
UTF-8
Python
false
false
4,458
py
from typing import Optional import torch import torch.distributed as dist from .planner import SavePlanner from .default_planner import DefaultSavePlanner from .storage import ( StorageWriter, ) from .metadata import Metadata, STATE_DICT_TYPE from .utils import _DistWrapper __all__ = ["save_state_dict"] def ...
82a0e0d28994984b8a494fad02e967299d94d678
eb817a5a5fd66d00906d2ac2574e2ef749780877
/defining_classes/demos_metaclasses.py
b2fd1f30b2205a42c5e9f106569b3de0e8110ce2
[ "MIT" ]
permissive
Minkov/python-oop-2021-02
5afcc356f59196fdfcfd217b455b8621176f578b
bd387dde165f4338eed66c4bc0b4b516ee085340
refs/heads/main
2023-04-01T08:07:39.096457
2021-04-05T18:24:40
2021-04-05T18:24:40
341,306,261
3
2
null
null
null
null
UTF-8
Python
false
false
649
py
class Singleton(type): __instances = {} def __new__(cls, *args, **kwargs): return super().__new__(cls, *args, **kwargs) def __call__(cls, *args, **kwargs): if cls not in cls.__instances: cls.__instances[cls] = super().__call__(*args, **kwargs) return cls.__instances[cls...
e1059ae6e9b86f602d1bc6205a6ed704ffdc4962
5845ee6d82d9f691e846360fa267b9cca6829d99
/supervised_learning/0x0F-word_embeddings/0-bag_of_words.py
637623c05195091bb4a31ba366e5d15fe022ab76
[]
no_license
jlassi1/holbertonschool-machine_learning
6e8c11ebaf2fd57e101bd0b20b7d83358cc15374
d45e18bcbe1898a1585e4b7b61f3a7af9f00e787
refs/heads/main
2023-07-02T20:25:52.216926
2021-08-11T14:19:49
2021-08-11T14:19:49
317,224,593
1
0
null
null
null
null
UTF-8
Python
false
false
416
py
#!/usr/bin/env python3 """ 0. Bag Of Words """ from sklearn.feature_extraction.text import CountVectorizer def bag_of_words(sentences, vocab=None): """function that creates a bag of words embedding matrix""" vectorizer = CountVectorizer(vocabulary=vocab) X = vectorizer.fit_transform(sentences) feature...
ee864bf4f45435d16fd37093d8533828dfc9fe61
ad469d0ca144c485fc0cdcfb2ebfdd0bddf86271
/src/models/base.py
54694b4039a9f44b73fa58b3fa5fc83c93fa823d
[]
no_license
ngxbac/Kaggle-Google-Landmark-2019
3e8a29e83e835b29262df439b9af12ca27cee768
274864e2778acde9007c096607c113c268882343
refs/heads/master
2020-05-31T04:37:32.003023
2019-06-04T00:41:51
2019-06-04T00:41:51
190,102,248
3
0
null
null
null
null
UTF-8
Python
false
false
2,154
py
import torch import torch.nn as nn import torchvision.models as models class Net(nn.Module): def __init__(self, num_classes=100, norm=True, scale=True): super(Net,self).__init__() self.extractor = Extractor() self.embedding = Embedding() self.classifier = Classifier(num_classes) ...
e0496f50c98467811842743bdcac4c7f1dc14c9e
c424ffe3c31422e72810b4865f482d505d145e87
/fliermailses/models.py
7eaea73f99fb1b029fe3303c6f16d0ab41e0e949
[ "BSD-2-Clause" ]
permissive
hdknr/fliermail-ses
d49724b7f1eb648a806e4301738db96a50e098ca
91366535b1a0890b4766c09d70aee1ec5387f7f0
refs/heads/master
2020-06-19T04:57:02.261919
2018-03-15T05:18:16
2018-03-15T05:18:16
94,177,602
0
0
null
null
null
null
UTF-8
Python
false
false
1,760
py
from django.db import models from django.utils.translation import ugettext_lazy as _ from . import defs, methods, querysets class Service(defs.Service, methods.Service): class Meta: verbose_name = _('SES Service') verbose_name_plural = _('SES Service') def __str__(self): return self....
df2ffa0accf83f4363cc11f2b219eb6f5a74b0c3
dd834845a2ab346dafd04f3beb4ba0916b64dc51
/test_case/task/test_200smart_sanity_clear_001.py
fc61417bcb137b08429c8f21631cfea146deaf4b
[]
no_license
Lewescaiyong/auto_test_framework
ae51726b705fbf125c30fce447c7c75510597047
2d3490393737b3e5f086cb6623369b988ffce67f
refs/heads/master
2020-11-25T09:18:29.209261
2020-02-10T13:48:12
2020-02-10T13:48:12
228,590,729
1
0
null
null
null
null
UTF-8
Python
false
false
2,443
py
#!/usr/bin/env python from lib.exceptions.check_exception import CheckException from lib.base.script.integration_test.case_mw import CaseMW class Test200SmartSanityClear001(CaseMW): """Clear OB No.: test_200smart_sanity_clear_001 Preconditions: 1. Open Micro/WINr; 2. Set up connection w...
a89d9222bee0ded8bd36c1c69d2dacb9bfb28e01
7a6a2076cffbbd47316818b37ddf22a932002065
/python/702 - Search in a Sorted Array of Unknown Size/main.py
f23ffb8bc239c9335e262a01b41c66efce7866a5
[]
no_license
or0986113303/LeetCodeLearn
6bd0aa16c8c80581e1c85032aca0f7a055f5e234
96fdc45d15b4150cefe12361b236de6aae3bdc6a
refs/heads/develop
2023-06-14T01:30:41.103572
2021-07-01T08:59:08
2021-07-01T08:59:08
291,066,699
0
0
null
2020-08-31T02:44:26
2020-08-28T14:25:53
Python
UTF-8
Python
false
false
1,577
py
# """ # This is ArrayReader's API interface. # You should not implement it, or speculate about its implementation # """ #class ArrayReader(object): # def get(self, index): # """ # :type index: int # :rtype int # """ class Solution(object): def fibosearch(self, source, target): ...
81bf3c105d1a1393058d90b3633bcebdd5ae4fbf
9b1446b26e81a79c303f9799fb6a91785c7adb03
/.history/Code/histogram_20200120113537.py
4f52929b9fac6bf129f57f7e695e94974d77475a
[]
no_license
SamirIngley/CS1.2-Tweet-Gen
017ea15b1113881a156ff24682828bc654eb6c81
bcd95fa63e05849cbf8e36230d8e31032b99daaa
refs/heads/master
2020-12-14T20:19:57.733290
2020-08-04T23:19:23
2020-08-04T23:19:23
234,856,234
0
0
null
2020-06-05T21:13:04
2020-01-19T07:05:55
Python
UTF-8
Python
false
false
696
py
def list_histo(source): ''' Takes text. Stores each item in text compares each item to the rest of the words in text and keeps a running total. Used list account for no repeats. ''' histo = [] used = [] text = source.split() print(text) for word in text: counter = 0 ...
e872d8089a62b5d92696f6668390f4ab68945df9
6547d657706c041f2a87b0680936dd3d473ad328
/httprunner/cli.py
f60004271687446d2bcfb3af3c86d5de03b91a41
[ "Apache-2.0" ]
permissive
lixiaofeng1993/httprunner
62c01f6b5adb8e3eded564947ac196938e3c88fb
15c5d89605dc2d54fc624c3468be85eebcc8446e
refs/heads/master
2020-07-26T09:18:35.310008
2019-10-21T16:03:50
2019-10-21T16:03:50
208,601,514
1
0
Apache-2.0
2019-09-15T13:54:13
2019-09-15T13:54:13
null
UTF-8
Python
false
false
6,813
py
# encoding: utf-8 def main_hrun(): """ API test: parse command line options and run commands. """ import sys import argparse from httprunner.logger import color_print from httprunner import __description__, __version__ from httprunner.api import HttpRunner from httprunner.compat import ...
79f998c1ae08f5eac4dccac29ea00bf209c906d0
60044c76b631e622edb28f3a74971ce06211fac5
/Python-for-Everybody/Python-Data-Structures/list.py
fa31bc357f500aa7cefac067eb8f807c1c0089d0
[]
no_license
NestorMonroy/Courses-coursera
8d45a858c79567d74f013ac27ac33d47e43abb96
98ac1aa5bb0cd9da5cea5be02995d5b65c779201
refs/heads/master
2023-08-14T13:36:07.348994
2021-09-22T06:13:57
2021-09-22T06:13:57
327,753,375
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
""" List are mutable String are "inmutable" - we cannont change the contents of a string- we must make a new string to make any change List are "mutable" we can change an element of a list using the index operator """ fruit = ['Banana'] fruit[0]= 'b' # error x = fruit.lower() print(x) lotto =...