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
d7796aa004c50f361ca9e8a8a0b3f4ef051ceb67
d9b672fd2096b9e91dda9c82a4ae47d628f023e4
/settings.py
a0655b84c59756eff3b37f60615c035fa474b8bd
[ "Apache-2.0" ]
permissive
homepods/silver-payu
3f314be0b1cd2409b80a79ad1519b0b881506d69
6d2ad761d5972f4b92928c12dde97959939d2786
refs/heads/master
2020-06-22T06:15:20.522288
2018-10-01T09:24:13
2018-10-01T09:24:13
197,654,966
1
0
null
2019-07-18T20:50:09
2019-07-18T20:50:09
null
UTF-8
Python
false
false
3,602
py
# Copyright (c) 2015 Presslabs SRL # # 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 writ...
c74db58ad4e08ae2ba7fae4dcad8d34e14650f04
f719dc32c437a15c0eb7a229adc2848e4646a172
/billy/api/customer/forms.py
fd102c147046aae78bf8ff40db5b2ac935fa24db
[ "MIT", "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
grang5/billy
db3a88b650962f25b8bdea80a81c5efa5d80dec0
a723c3aca18f817829ae088f469fabc5bea9d538
refs/heads/master
2021-04-18T19:36:05.586549
2014-06-16T21:47:37
2014-06-16T21:47:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
263
py
from __future__ import unicode_literals from wtforms import Form from wtforms import TextField from wtforms import validators class CustomerCreateForm(Form): processor_uri = TextField('URI of customer in processor', [ validators.Optional(), ])
b25403fc53f5f5969f36e94ee28d051866d5f2e6
5983ea8a59cd0b9763e0eb0dfc7f26dfd2ba5e60
/2019102962刘铎/刘铎-2019102962/DQN-First/maze_env.py
33157255db41910b66f0e97841906122112ce32f
[]
no_license
wanghan79/2020_Master_Python
0d8bdcff719a4b3917caa76ae318e3f8134fa83a
b3f6f3825b66b93ec6c54ed6187f6c0edcad6010
refs/heads/master
2021-01-26T13:29:09.439023
2020-06-23T02:17:52
2020-06-23T02:17:52
243,442,589
11
6
null
2020-03-29T05:59:29
2020-02-27T05:55:52
Python
UTF-8
Python
false
false
4,088
py
""" Reinforcement learning maze example. Red rectangle: explorer. Black rectangles: hells [reward = -1]. Yellow bin circle: paradise [reward = +1]. All other states: ground [reward = 0]. This script is the environment part of this example. The RL is in RL_brain.py. """ import num...
878bd7c77267774dbcacd5ed1f887c9c3b26ddb7
c5294a8e9a6aa7da37850443d3a5d366ee4b5c35
/build/spencer_people_tracking/launch/spencer_people_tracking_launch/catkin_generated/pkg.installspace.context.pc.py
0e8b747bde57ae825f82cfdacbb221758a0acfbb
[]
no_license
scutDavid/ros_gradution_project
6eab9a5776ae090ae8999d31e840a12a99020c79
fbbd83ada5aa223809615d55a48e632699afd4b5
refs/heads/master
2020-03-07T18:39:24.084619
2018-04-25T13:41:04
2018-04-25T13:41:04
127,647,113
1
0
null
null
null
null
UTF-8
Python
false
false
385
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "spencer_people_tracking_launch" PROJE...
cede0e482d3ea3a08d161be9ba8ae74f9c9f82fa
7dc05dc9ba548cc97ebe96ed1f0dab8dfe8d8b81
/trunk/pida/utils/pgd/debugsession.py
6e0c5d6df92cc9f56a44188a64b2d6b59d10bc26
[]
no_license
BackupTheBerlios/pida-svn
b68da6689fa482a42f5dee93e2bcffb167a83b83
739147ed21a23cab23c2bba98f1c54108f8c2516
refs/heads/master
2020-05-31T17:28:47.927074
2006-05-18T21:42:32
2006-05-18T21:42:32
40,817,392
1
0
null
null
null
null
UTF-8
Python
false
false
5,589
py
# -*- coding: utf-8 -*- # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: # Copyright (c) 2006 Ali Afshar #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...
[ "aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7" ]
aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7
47abd26109c9522bd177dbbf0cd330a30d2b38c2
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03998/s861110715.py
06ced3f35c4b4debbacf590c69b46eaf81a9942e
[]
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
424
py
A = list(input()) B = list(input()) C = list(input()) n = A[0] del A[0] while True: if n == "a": if A == []: print("A") break n = A[0] del A[0] elif n == "b": if B == []: print("B") break n = B[0] del B[0] else: ...
c041ce36c31bab982df6a4db67cbb9e648902b4e
d88e4152c0540c4c3c0a93c997ed8666d6ede863
/daeUSB.py
299f7ae439ebaf4837641b8975188e5fef04d3c2
[]
no_license
mahongquan/word_auto
2ad36383a435a0b020c3939e1efafec13a64a59f
552ecb5dc43fdd71785f6e188de7cd0df66345ac
refs/heads/master
2020-03-21T17:28:03.633892
2018-07-22T02:38:31
2018-07-22T02:38:31
138,833,600
0
0
null
null
null
null
UTF-8
Python
false
false
3,815
py
# -*- coding: utf-8 -*- #安装USB2COM驱动 import pywinauto import pywintypes from pywinauto import findwindows,handleprops import os import _thread import traceback from threading import Thread,Event import time def runUSB(): #cmd=r"start c:\9111\PCIS-DASK\PCIS-DASK.exe" cmd="start c:\\CS3000备份\\CDM21216_Setup.exe" ...
132e5c34952c72f35e089c726777abaa59399bcd
daca4a0604a21e4dcdab501369704db24741938e
/webdriver/tests/sessions/new_session/invalid_capabilities.py
8452bfb11e908be7a06fd65f6138f6f0c3958cd8
[ "W3C", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-w3c-03-bsd-license", "BSD-3-Clause" ]
permissive
Spec-Ops/web-platform-tests
4ac91a784d5d363d261bfe92e251e6efd74b6b01
c07a244ceef0d0833f61f2efa227bc1c65371c9c
refs/heads/master
2020-12-11T06:08:52.141843
2017-10-20T11:55:15
2017-10-20T12:56:55
54,023,228
3
4
null
2016-09-06T21:01:15
2016-03-16T10:39:23
HTML
UTF-8
Python
false
false
3,428
py
#META: timeout=long import pytest from webdriver import error from conftest import product, flatten @pytest.mark.parametrize("value", [None, 1, "{}", []]) def test_invalid_capabilites(new_session, value): with pytest.raises(error.InvalidArgumentException): new_session({"capabilities": value}) @pytest....
ecc937959d6a50bec48eee0e0c39cad9bc0593a0
3ff9821b1984417a83a75c7d186da9228e13ead9
/2020_August_Leetcode_30_days_challenge/Week_2_Excel Sheet Column Number/by_recursion_and_base_conversion.py
8614066d3ca3b81874534ab1c3be1896d784e563
[ "MIT" ]
permissive
brianchiang-tw/leetcode
fd4df1917daef403c48cb5a3f5834579526ad0c2
6978acfb8cb767002cb953d02be68999845425f3
refs/heads/master
2023-06-11T00:44:01.423772
2023-06-01T03:52:00
2023-06-01T03:52:00
222,939,709
41
12
null
null
null
null
UTF-8
Python
false
false
1,450
py
''' Description: Given a column title as appear in an Excel sheet, return its corresponding column number. For example: A -> 1 B -> 2 C -> 3 ... Z -> 26 AA -> 27 AB -> 28 ... Example 1: Input: "A" Output: 1 Example 2: Input: "AB" Output: 28 Example 3: Input: "ZY" Output:...
181242534741172deff30d1570b6c1e64b1d1641
6daaf3cecb19f95265188adc9afc97e640ede23c
/python_design/pythonprogram_design/Ch5/5-3-E60.py
cae23228ee53270139ad9d77e1371e78ac0da7f0
[]
no_license
guoweifeng216/python
723f1b29610d9f536a061243a64cf68e28a249be
658de396ba13f80d7cb3ebd3785d32dabe4b611d
refs/heads/master
2021-01-20T13:11:47.393514
2019-12-04T02:23:36
2019-12-04T02:23:36
90,457,862
0
0
null
null
null
null
UTF-8
Python
false
false
682
py
import pickle def main(): ## Display the large cities in a specified state. largeCities = createDictionaryFromBinaryFile("LargeCitiesDict.dat") state = input("Enter the name of a state: ") getCities(state, largeCities) def createDictionaryFromBinaryFile(fileName): # Assume pickle module has been i...
9f9de4a0ce359c148f01dc85de77fe73c15d295b
06a38963f22f8a74cc129033f8f1cac7f114cf5d
/problem_set_1/.history/src/p03d_poisson_20210517220103.py
6c67a7f7ecde98d6ae3463c6f27704f0d07843ae
[]
no_license
lulugai/CS229
47e59bcefe9dccbb83c6d903682eb6ddca3a24b5
4dd77b2895559689e875afe749360c3751a12cf1
refs/heads/main
2023-05-09T17:39:45.336695
2021-06-01T09:15:25
2021-06-01T09:15:25
372,768,960
0
0
null
null
null
null
UTF-8
Python
false
false
2,462
py
import numpy as np import util from linear_model import LinearModel def main(lr, train_path, eval_path, pred_path): """Problem 3(d): Poisson regression with gradient ascent. Args: lr: Learning rate for gradient ascent. train_path: Path to CSV file containing dataset for training. eva...
ec7aa8ec3045bb0672f893db968f532ab7ae139d
aef6e68ccb00c423ebfad39101c1913c68253c83
/saramin/parser.py
ca99d8976a02a2ae8ac2f0f0c92607724ebb452b
[]
no_license
plzprayme/work-scholarship-tools
76dd39f037d774111927a316cdd8c88ed854aec9
df8004c90a8a3b33e5c858c7d544a0e35ef7ce19
refs/heads/main
2023-02-13T05:24:35.673243
2021-01-15T07:47:18
2021-01-15T07:47:18
306,560,615
1
1
null
null
null
null
UTF-8
Python
false
false
12,233
py
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from bs4 import BeautifulSoup as bs4 from datetime import datetime, date from time import sleep import pandas as pd def filter_by_condition(rows): result = [] for row in rows:...
acf5d4b77fd234775af80508e3a4688f0811f179
37e53bb1d47004e956119e7e7047b8194b3142f5
/grok/recursion_ver_3.py
1d12fa0694653459fa11a17525f97743ce815aa0
[]
no_license
fortredux/py_miscellaneous
eea82f900434ef23d98769f9057c87c97b278e45
7aee7c8bc0ddda1e137e4cb7e88eed78dbdb98d8
refs/heads/master
2020-12-21T21:03:28.897746
2020-04-05T20:44:55
2020-04-05T20:44:55
236,560,060
0
0
null
null
null
null
UTF-8
Python
false
false
278
py
def check(i): i = int(i) if i == 0: print('0') return False else: return True def countdown(num): x = check(num) while x is True: num = int(num) print(num) return countdown(num-1) countdown('15')
9092164cade33e786253089e178044d0156653f7
71d4fafdf7261a7da96404f294feed13f6c771a0
/mainwebsiteenv/lib/python2.7/site-packages/phonenumbers/shortdata/region_SK.py
fdc7ed9e7dd3d18546d0c1cdbe188f1eb3101d50
[]
no_license
avravikiran/mainwebsite
53f80108caf6fb536ba598967d417395aa2d9604
65bb5e85618aed89bfc1ee2719bd86d0ba0c8acd
refs/heads/master
2021-09-17T02:26:09.689217
2018-06-26T16:09:57
2018-06-26T16:09:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
756
py
"""Auto-generated file, do not edit by hand. SK metadata""" from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata PHONE_METADATA_SK = PhoneMetadata(id='SK', country_code=None, international_prefix=None, general_desc=PhoneNumberDesc(national_number_pattern='1\\d{2,5}', possible_length=(3, 4, ...
4301d8ddb5bac52d283851cc404947a820b5da05
362224f8a23387e8b369b02a6ff8690c200a2bce
/django/django_intro/dojosurveyRev/manage.py
925c756178ebae644969e9b503f6ded8d97f2cb8
[]
no_license
Helenyixuanwang/python_stack
ac94c7c532655bf47592a8453738daac10f220ad
97fbc77e3971b5df1fe3e79652b294facf8d6cee
refs/heads/main
2023-06-11T02:17:27.277551
2021-06-21T17:01:09
2021-06-21T17:01:09
364,336,066
0
0
null
null
null
null
UTF-8
Python
false
false
633
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dojosurveyRev.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise ...
e3ccc17dad2cce4bc4775644166167b2526d35eb
6c5ce1e621e0bd140d127527bf13be2093f4a016
/ex044/exercicio044.py
290134b8ab1da627fa43d612670b1700cc3f8065
[ "MIT" ]
permissive
ArthurAlesi/Python-Exercicios-CursoEmVideo
124e2ee82c3476a5a49baafed657788591a232c1
ed0f0086ddbc0092df9d16ec2d8fdbabcb480cdd
refs/heads/master
2022-12-31T13:21:30.001538
2020-09-24T02:09:23
2020-09-24T02:09:23
268,917,509
0
0
null
null
null
null
UTF-8
Python
false
false
796
py
# Elabore um programa que calcule o valor a ser pago por um produto # considerando o preço normal e condição de pagamento # a vista dinheiro 10% de desconto # a vista cartao 5% de desconto # 2x cartao preço normal # 3x ou mais compra = float(input("Informe o preço das compras")) print("Escolha a forma de pagamento") pr...
a2669f6f3cf2be4424ef7db7edfd60b48effbd05
187a6558f3c7cb6234164677a2bda2e73c26eaaf
/jdcloud_sdk/services/logs/apis/TestMetricTaskRequest.py
8e2bba6c9cb8119d77246c48816fc0632e6a8191
[ "Apache-2.0" ]
permissive
jdcloud-api/jdcloud-sdk-python
4d2db584acc2620b7a866af82d21658cdd7cc227
3d1c50ed9117304d3b77a21babe899f939ae91cd
refs/heads/master
2023-09-04T02:51:08.335168
2023-08-30T12:00:25
2023-08-30T12:00:25
126,276,169
18
36
Apache-2.0
2023-09-07T06:54:49
2018-03-22T03:47:02
Python
UTF-8
Python
false
false
3,730
py
# coding=utf8 # Copyright 2018 JDCLOUD.COM # # 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 ...
5aa6d0190c71dff4c9372596cae52cfd9393b80b
08a93de4813e0efb5cf40ac490eb0502266ca8ba
/settings/urls.py
c64f4a4821b4b9656b8e0cfa43d8ede15897236c
[ "BSD-2-Clause" ]
permissive
hunglethanh9/modelchimp
eaf3a8c6c73a3ed4c942fa361d8b661bf5d92a87
cdb8162cdb554aa5ef00999f390138bd8325f472
refs/heads/master
2020-06-06T00:09:33.447383
2019-06-18T13:02:03
2019-06-18T13:02:03
192,582,892
1
0
null
2019-06-18T17:14:47
2019-06-18T17:14:47
null
UTF-8
Python
false
false
1,188
py
from django.conf.urls import include, url from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from django.contrib.auth.views import ( PasswordResetView, PasswordResetConfirmView, PasswordResetDoneView, PasswordResetCompleteView, ) urlpatterns =...
d7c759cbcfcbf99821bb0d3e66eb3e9796632e2b
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_hires.py
55de384efb494e1deadbf5e334722a21e472f366
[ "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
224
py
from xai.brain.wordbase.nouns._hire import _HIRE #calss header class _HIRES(_HIRE, ): def __init__(self,): _HIRE.__init__(self) self.name = "HIRES" self.specie = 'nouns' self.basic = "hire" self.jsondata = {}
0df41ae40a0375dbac1794c5a5d7bb4a19941e27
0e6311674ad4637031ff4c7e0f522a7fac65973d
/akshare/futures/futures_daily_bar.py
adc6d5c6f6e66a3584b8960a5602b1284331c185
[ "MIT" ]
permissive
waruanfou/akshare
26b064e305c05b4b4d1bf297fe73ab61e465bb06
b240109eae08d6bb5eee2df3edeac680c9176430
refs/heads/master
2023-06-23T08:32:42.035038
2021-07-18T11:26:29
2021-07-18T11:26:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
21,312
py
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2021/5/4 15:58 Desc: 交易所网站获取期货日线行情 """ import datetime import json import re import warnings import zipfile from io import BytesIO, StringIO import numpy as np import pandas as pd import requests from akshare.futures import cons from akshare.futures.requests_fun ...
55366e829303d9641699634cc44569e2d2923a81
52b5773617a1b972a905de4d692540d26ff74926
/.history/bubble_20200722092444.py
5beeb7c609804901133743187b10d997aa2b27bc
[]
no_license
MaryanneNjeri/pythonModules
56f54bf098ae58ea069bf33f11ae94fa8eedcabc
f4e56b1e4dda2349267af634a46f6b9df6686020
refs/heads/master
2022-12-16T02:59:19.896129
2020-09-11T12:05:22
2020-09-11T12:05:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
109
py
def bubble(data): # TODO: start with the array leneght and decrement each time for i in range(len())
e3609abff0757e33f926d3770d5d1e1febb9b6ab
b007d88e6726452ffa8fe80300614f311ae5b318
/LeetCode/facebook/arrays_and_strings/merge_sorted_array.py
3713e9ba76233fd84aca0a38b42724a3074bffa4
[]
no_license
jinurajan/Datastructures
ec332b12b8395f42cb769e771da3642f25ba7e7f
647fea5d2c8122468a1c018c6829b1c08717d86a
refs/heads/master
2023-07-06T14:42:55.168795
2023-07-04T13:23:22
2023-07-04T13:23:22
76,943,162
0
0
null
null
null
null
UTF-8
Python
false
false
1,082
py
""" Merge Sorted Array Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. The number of elements initialized in nums1 and nums2 are m and n respectively. You may assume that nums1 has a size equal to m + n such that it has enough space to hold additional elements from nums2. ...
9b97c3e7ea9e41ffbc45b8c498367f691295fa0e
58cd392c642ac9408349f03dc72927db6abcce55
/team2/src/Without_Doubt_Project/venv/lib/python3.6/site-packages/earlgrey/patterns/rpc/client_async.py
a94df1e4d861d470e4928d8f5d3ed96175e519b9
[]
no_license
icon-hackathons/201902-dapp-competition-bu
161226eb792425078351c790b8795a0fe5550735
f3898d31a20f0a85637f150d6187285514528d53
refs/heads/master
2020-04-24T07:48:18.891646
2019-04-18T01:47:21
2019-04-18T01:47:21
171,809,810
3
11
null
2019-04-18T01:47:23
2019-02-21T06:01:04
Python
UTF-8
Python
false
false
4,824
py
# Copyright 2017 theloop Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
62cbc2bc1f0553ebc160c9187f62311a93b9fbf8
11ddf56093b5a821a080249f6fc2e50e34f8970d
/opennsa/backends/dud.py
ad776c4f171d702c54f71fa839ea79587c1479fa
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
igable/opennsa
067d0043d324e32cebb6967023fbcc0df9ec836c
5db943d50310345d18113dbfbe2251bb2a1a63f0
refs/heads/master
2021-01-15T08:36:33.998695
2014-02-11T11:49:53
2014-02-13T13:28:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,800
py
""" NRM backends which just logs actions performed. Author: Henrik Thostrup Jensen <[email protected]> Copyright: NORDUnet (2011) """ import string import random from twisted.python import log from twisted.internet import defer from opennsa.backends.common import genericbackend def DUDNSIBackend(network_name, networ...
b4490bd15f0a948e14d1137f93d740488ef938cb
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/coverage-big-2264.py
cd5238d534bb618b3c7d6f7cfcdb66b9da278905
[]
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
13,351
py
count:int = 0 count2:int = 0 count3:int = 0 count4:int = 0 count5:int = 0 def foo(s: str) -> int: return len(s) def foo2(s: str, s2: str) -> int: return len(s) def foo3(s: str, s2: str, s3: str) -> int: return len(s) def foo4(s: str, s2: str, s3: str, s4: str) -> int: return len(s) def foo5(s: str,...
1f2eeaf30554fc2b63cc3c041524f636236bf967
2e927b6e4fbb4347f1753f80e9d43c7d01b9cba5
/Section 20 - Lamba Functions/lambdas.py
2d5e9687c5496af858166dab6f7b8ab7af2a3de4
[]
no_license
tielushko/The-Modern-Python-3-Bootcamp
ec3d60d1f2e887d693efec1385a6dbcec4aa8b9a
17b3156f256275fdba204d514d914731f7038ea5
refs/heads/master
2023-01-22T01:04:31.918693
2020-12-04T02:41:29
2020-12-04T02:41:29
262,424,068
0
0
null
null
null
null
UTF-8
Python
false
false
1,097
py
def square(num): return num*num #syntax - lambda parameter: code in one line without return - you usually don't store that in variable square2 = lambda num: num * num add = lambda num: num + num print(square2(3)) print(square2.__name__) #use case - passing in a function as a parameter into another function. short ...
575abf06c7f23652b3a2ac3b595778e90ab5e287
663c108dca9c4a30b7dfdc825a8f147ba873da52
/venv/functions/38GlobalKeywordDeclareAssignError.py
1dd186e5658999379d9e336cc39512ba1c6f8a73
[]
no_license
ksrntheja/08-Python-Core
54c5a1e6e42548c10914f747ef64e61335e5f428
b5fe25eead8a0fcbab0757b118d15eba09b891ba
refs/heads/master
2022-10-02T04:11:07.845269
2020-06-02T15:23:18
2020-06-02T15:23:18
261,644,116
0
0
null
null
null
null
UTF-8
Python
false
false
225
py
def f01(): global a = 10 print(a) def f02(): print(a) f01() f02() # File "/Code/venv/functions/38GlobalKeywordDeclareAssignError", line <> # global a = 10 # ^ # SyntaxError: invalid syntax
4ddb5fd6cb5cb9f52754f3743df130f969867b20
c2f92d75d235ff5ed7b213c02c4a0657545ba02f
/newchama_web/2/newchama/member_message/migrations/0006_auto__chg_field_message_add_time__add_field_favorites_receiver__add_fi.py
6ac54ad252be403a32024e11e3ce0f1817ed4167
[]
no_license
cash2one/tstpthon
fab6112691eb15a8a26bd168af3f179913e0c4e0
fc5c42c024065c7b42bea2b9de1e3874a794a30d
refs/heads/master
2021-01-20T01:52:06.519021
2017-04-14T09:50:55
2017-04-14T09:50:55
89,338,193
0
1
null
2017-04-25T08:46:06
2017-04-25T08:46:06
null
UTF-8
Python
false
false
39,290
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Message.add_time' db.alter_column('member_message', 'a...
2415a47b98f58149d4981c714498f9eb67383b11
2baeb9965f64214e5a1478ab5139c53bb363ff50
/torch/fx/experimental/fx_acc/acc_ops.py
d4927d60e60152bd46115b814696ec9035e576b0
[ "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
Dithn/pytorch
b327d9a7434a0dbadb7bbf148b22cef7d2e4bc1c
86399d8e0cb72dfd1501fb9be870ac29af38e241
refs/heads/master
2023-04-26T12:01:26.043128
2021-11-16T19:54:14
2021-11-16T19:55:40
207,961,157
1
0
NOASSERTION
2021-11-17T02:14:51
2019-09-12T03:58:02
C++
UTF-8
Python
false
false
52,212
py
# encoding: utf-8 import operator import torch # isort:skip from typing import Sequence, Optional, List, cast import torch.fx.experimental.fx_acc.acc_utils as acc_utils import torch.nn as nn from torch.fx.experimental.fx_acc.acc_normalizer import ( register_acc_op, register_acc_op_mapping, register_custo...
6a89e67c4330943ffd882ccd41577f252a47d876
d4abaedd47e5a3ce3e8aa7893cb63faaa4064551
/spoj/bearseg.py
0e1ced7689b4dc52b995ffd978e630c5f46fadb7
[]
no_license
shiv125/Competetive_Programming
fc1a39be10c0588e0222efab8809b966430fe20f
9c949c6d6b5f83a35d6f5f6a169c493f677f4003
refs/heads/master
2020-03-15T19:47:12.944241
2018-05-06T08:18:11
2018-05-06T08:18:11
132,317,356
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
t=input() MAX=10**5+1 lookup=[0]*MAX while t>0: t-=1 n,p=map(int,raw_input().split()) arr=map(int,raw_input().split()) lookup[0]=arr[0] for i in range(1,n): lookup[i]=lookup[i-1]+arr[i] count={} ma=-1 for i in range(n): for j in range(i,n): if i!=0: z=(lookup[j]-lookup[i-1]+p)%p else: z=lookup...
[ "shivdutt@shivdutt-Lenovo-G50-80" ]
shivdutt@shivdutt-Lenovo-G50-80
e57399c656326fe5aad20cd04948bccb429a51df
274eb3a3c4202c86a40e13d2de7c2d6f2a982fcb
/tests/unit/altimeter/aws/resource/ec2/test_vpc_endpoint_service.py
6823edb92f519c7b51b496fae25c2ff3d1253997
[ "MIT", "Python-2.0" ]
permissive
tableau/altimeter
6199b8827d193946bb0d0d1e29e462fc8749d3e4
eb7d5d18f3d177973c4105c21be9d251250ca8d6
refs/heads/master
2023-08-15T16:21:31.265590
2023-07-04T13:13:32
2023-07-04T13:13:32
212,153,766
75
25
MIT
2023-08-02T02:05:22
2019-10-01T17:10:16
Python
UTF-8
Python
false
false
2,670
py
import unittest from altimeter.aws.resource.ec2.vpc_endpoint_service import VpcEndpointServiceResourceSpec from altimeter.core.resource.resource import Resource from altimeter.core.graph.links import LinkCollection, SimpleLink, TagLink class TestVpcEndpointServiceResourceSpec(unittest.TestCase): maxDiff = None ...
9e73235485cb9b7abfd44cdb5134347f883ec5e0
c31d185fb65da94dc15e16869ef1fbaf0dabc736
/base/views.py
0ec041e02c0386a93c8196390322f023f393e73e
[]
no_license
Joacoco/nosotrosusamos
2777907b3df3b4022770f9ccef554d4c2b2c53c8
593d087c303f72136f6c425e908631357298c1eb
refs/heads/master
2020-12-26T05:01:28.674841
2013-12-02T13:37:49
2013-12-02T13:37:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
353
py
# -*- coding: utf-8 -*- """ This file contains some generic purpouse views """ from django.shortcuts import render_to_response from django.template import RequestContext def index(request): """ view that renders a default home""" return render_to_response('index.jade', context_i...
d0e7793917bd8df51c7afbc5a6fd7696ae7ba824
17a3418a6143ea2d953cf6509aeca7cc6e074686
/Final-Project/backend/venv/lib/python3.5/site-packages/spotdl/spotdl.py
de67a73c1760448f2bb4d525c6580a9f01e7cf5c
[]
no_license
francolmenar-USYD/Internet-Software-Platforms
addb69a5582a63877e5f3408d64485a7ca942721
9e82ab6e7d0f8d4b3d55789cf5cfcd8e524a85df
refs/heads/master
2022-04-22T02:07:25.419086
2020-04-22T10:02:43
2020-04-22T10:02:43
256,714,630
0
0
null
null
null
null
UTF-8
Python
false
false
8,396
py
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- from spotdl import __version__ from spotdl import const from spotdl import handle from spotdl import metadata from spotdl import convert from spotdl import internals from spotdl import spotify_tools from spotdl import youtube_tools from slugify import slugify import spotip...
a6084bfe94a88078593f1b6359db3a036eae22de
c6759b857e55991fea3ef0b465dbcee53fa38714
/tools/nntool/nntool/importer/tflite2/tflite_schema_head/PackOptions.py
80d5354a3e6d6c474f93bce81eb2b362de5ab65e
[ "AGPL-3.0-or-later", "AGPL-3.0-only", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "Apache-2.0" ]
permissive
GreenWaves-Technologies/gap_sdk
1b343bba97b7a5ce62a24162bd72eef5cc67e269
3fea306d52ee33f923f2423c5a75d9eb1c07e904
refs/heads/master
2023-09-01T14:38:34.270427
2023-08-10T09:04:44
2023-08-10T09:04:44
133,324,605
145
96
Apache-2.0
2023-08-27T19:03:52
2018-05-14T07:50:29
C
UTF-8
Python
false
false
2,002
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: tflite_schema_head import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class PackOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers....
6b2a348908d35fad77fed82f1775983dd9ffd7cf
cc096d321ab5c6abf54fdcea67f10e77cd02dfde
/flex-backend/pypy/translator/jvm/methods.py
582a5f04b0c2e370370a0d62c2866cc366e73d0a
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
limweb/flex-pypy
310bd8fcd6a9ddc01c0b14a92f0298d0ae3aabd2
05aeeda183babdac80f9c10fca41e3fb1a272ccb
refs/heads/master
2021-01-19T22:10:56.654997
2008-03-19T23:51:59
2008-03-19T23:51:59
32,463,309
0
0
null
null
null
null
UTF-8
Python
false
false
6,487
py
""" Special methods which we hand-generate, such as toString(), equals(), and hash(). These are generally added to methods listing of node.Class, and the only requirement is that they must have a render(self, gen) method. """ import pypy.translator.jvm.generator as jvmgen import pypy.translator.jvm.typesystem as jv...
[ "lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d" ]
lucio.torre@dbd81ab4-9648-0410-a770-9b81666e587d
72caef93226a4cb05201677c911b3789efdba9fd
d400c32010a414a2f536c5c0a3490c8b8e2e9d5a
/modules/m16e/ods_doc.py
75ba3b1fea0134d2c04d2e55576de59bd5e2f548
[ "LicenseRef-scancode-public-domain" ]
permissive
CarlosCorreiaM16e/chirico_cms
3e521eae8f38b732497a2b808950c6a534e69d4f
73897cbddb230630e13f22333b9094d0a047acb3
refs/heads/master
2020-12-30T07:59:04.100330
2020-05-02T12:26:58
2020-05-02T12:26:58
238,917,321
2
0
null
null
null
null
UTF-8
Python
false
false
1,946
py
# -*- coding: utf-8 -*- import sys import traceback from m16e.kommon import KDT_CHAR, KDT_INT, KDT_DEC, KDT_PERCENT from m16e.odslib import odslib #---------------------------------------------------------------------- class OdsDoc( object ): #-------------------------------------------------------------------...
5b36220be41518a877ad62d96ad26ec30da2a3a7
8ecf4930f9aa90c35e5199d117068b64a8d779dd
/TopQuarkAnalysis/SingleTop/test/W3Jets_part_1_cfg.py
f8bb10ce78a88541601740748c24f63154e9a910
[]
no_license
fabozzi/ST_44
178bd0829b1aff9d299528ba8e85dc7b7e8dd216
0becb8866a7c758d515e70ba0b90c99f6556fef3
refs/heads/master
2021-01-20T23:27:07.398661
2014-04-14T15:12:32
2014-04-14T15:12:32
18,765,529
0
0
null
null
null
null
UTF-8
Python
false
false
5,779
py
import FWCore.ParameterSet.Config as cms process = cms.Process("SingleTopSystematics") process.load("FWCore.MessageLogger.MessageLogger_cfi") process.options = cms.untracked.PSet( wantSummary = cms.untracked.bool(True), FailPath = cms.untracked.vstring('ProductNotFound','Type Mismatch') ) process.load(...
e703967804eb0f8cb2843481d277c85bc8c71b2e
a9fc496e0724866093dbb9cba70a8fdce12b67a9
/scripts/field/cygnus_Summon.py
3881deea825b33318e178ca09b9972f8f7486987
[ "MIT" ]
permissive
ryantpayton/Swordie
b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0
ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e
refs/heads/master
2022-12-01T09:46:47.138072
2020-03-24T10:32:20
2020-03-24T10:32:20
253,997,319
2
0
MIT
2022-11-24T08:17:54
2020-04-08T05:50:22
Java
UTF-8
Python
false
false
153
py
if sm.getFieldID() == 271040100: sm.spawnMob(8850111, -147, 115, False) elif sm.getFieldID() == 211070102: sm.spawnMob(8850111, -147, 115, False)
840e453e531447a4fa54106cccc088175874e5c4
ed06e8278f34e1b14b3f228684fbc37b8b66d1bd
/tfmiss/keras/layers/wordvec_test.py
30b0a63f767a033c3f468276202bbaea5781285e
[ "MIT" ]
permissive
shkarupa-alex/tfmiss
7fa798e9e3b2e7142dcf0062eb188ae8e2bb69fa
a8ce1bdc57fc72381bdfed96098be3edef5fa535
refs/heads/master
2023-08-17T04:11:26.764935
2023-08-15T10:00:28
2023-08-15T10:00:28
190,878,990
1
2
MIT
2023-04-18T06:57:51
2019-06-08T11:17:38
Python
UTF-8
Python
false
false
39,892
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf from collections import Counter from keras.saving import register_keras_serializable from keras.src.testing_infra import test_combinations, test_utils from tfmiss.kera...
6e7da8d8db94998e492bafe969437e9b40e5a8f4
4d0f3e2d7455f80caea978e4e70621d50c6c7561
/MongoDB/CRUD/QueryingByObjectId.py
efc3f90c9e14317b40ca16aed85eda0d2c3df484
[]
no_license
mhdr/PythonSamples
66940ee2353872d2947c459e3865be42140329c6
1a9dccc05962033ea02b081a39cd67c1e7b29d0c
refs/heads/master
2020-04-14T01:10:13.033940
2016-05-28T15:33:52
2016-05-28T15:33:52
30,691,539
1
0
null
null
null
null
UTF-8
Python
false
false
1,060
py
__author__ = 'mahmood' from pymongo import MongoClient client=MongoClient() # drop last db client.drop_database("test-db") # database db=client["test-db"] # table people=db["People"] new_person1={"FirstName" : "Mahmood", "LastName" : "Ramzani", "Gender": "Male", "BirthDate" : {...
dbf7640a313af2358461941e02b18b6d1e7c1709
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/time/high_work_and_long_life/group/case/good_child_and_case.py
fdb05e9779fa6e59a4688c46e5b2f2dee289fb94
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
215
py
#! /usr/bin/env python def long_world(str_arg): group(str_arg) print('little_hand_and_week') def group(str_arg): print(str_arg) if __name__ == '__main__': long_world('high_person_and_big_child')
e5fc5b2e2f076a3deb4a132618a1ce25e94c26cc
e204cdd8a38a247aeac3d07f6cce6822472bdcc5
/.history/app_test_django/views_20201116131730.py
f28ad5d7088723c0254f3cead00c09213ae31ad9
[]
no_license
steven-halla/python-test
388ad8386662ad5ce5c1a0976d9f054499dc741b
0b760a47d154078002c0272ed1204a94721c802a
refs/heads/master
2023-04-08T03:40:00.453977
2021-04-09T19:12:29
2021-04-09T19:12:29
354,122,365
0
0
null
null
null
null
UTF-8
Python
false
false
2,095
py
from django.shortcuts import render, redirect from .models import * from django.contrib import messages def index(request): return render(request, "index.html") def register_new_user(request): errors = User.objects.user_registration_validator(request.POST) if len(errors) > 0: for key, val...
b2087e7207c8d5906a761f9b5d0333fdf5fa7128
20f89f49400feb9d2885dc2daf3ea3ca189556e7
/day09/proctice/05 粘包问题解决/mod_struct.py
08c0855ed616bb6cfc08acaaf5767a5483a48750
[]
no_license
xiaobaiskill/python
201511b1b1bddec8c33c4efa7ca2cc4afed24a89
540693baad757369ff811fb622a949c99fb6b4ba
refs/heads/master
2021-04-12T03:43:30.308110
2018-07-13T01:41:19
2018-07-13T01:41:19
125,884,001
0
0
null
null
null
null
UTF-8
Python
false
false
138
py
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author Jmz import struct total = 16374 res = struct.pack('i',total) print(len(res))
f16a18a60451d63b0c3e3ea9dfd47962690ed967
eb19175c18053e5d414b4f6442bdfd0f9f97e24d
/tests/starwars_django/test_connections.py
9992f0f3809a991f64dc9a760a689072066a1616
[ "MIT" ]
permissive
jhgg/graphene
6c4c5a64b7b0f39c8f6b32d17f62e1c31ca03825
67904e8329de3d69fec8c82ba8c3b4fe598afa8e
refs/heads/master
2020-12-25T21:23:22.556227
2015-10-15T19:56:40
2015-10-15T19:56:40
43,073,008
1
0
null
2015-09-24T14:47:19
2015-09-24T14:47:19
null
UTF-8
Python
false
false
987
py
import pytest from graphql.core import graphql from .models import * from .schema import schema from .data import initialize pytestmark = pytest.mark.django_db def test_correct_fetch_first_ship_rebels(): initialize() query = ''' query RebelsShipsQuery { rebels { name, hero { ...
a5cfd192a6bdd36268a411986e5257ad3f206711
a2e638cd0c124254e67963bda62c21351881ee75
/Python modules/HP_2021_01_04_XTP_Trades.py
4313930c4f2639f99725c878fd6a2d0aae8b3bfc
[]
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
878
py
import acm import csv with open( 'C:\\Temp\\1\\CA_Stock Input.csv', mode='r') as csv_file: readCSV = csv.DictReader(csv_file) print 'trade number', "|", 'instrument', "|", 'trade price', "|", 'Portfolio' for row in readCSV: trade=acm.FTrade() trade.Instrument(row['Instrument']) trade.Quantity(row...
5a8b2cdde3908ffa52271f85cdfd0d8883b5c8db
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/young_government/want_thing.py
fe79d6bc7b16f04663bb72a76609bd5cc5bbb80f
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
#! /usr/bin/env python def group(str_arg): small_work(str_arg) print('old_work_and_young_company') def small_work(str_arg): print(str_arg) if __name__ == '__main__': group('have_thing')
956ef7f9bbda19c259de876c23f18bfa189bc407
2b167e29ba07e9f577c20c54cb943861d0ccfa69
/numerical_analysis_backup/large-scale-multiobj2/core-arch4-guard2-beta0-hebbe/pareto0.py
0000998404917886a9c21b69d9c51c32cf41c0cc
[]
no_license
LiYan1988/kthOld_OFC
17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f
b1237577ea68ad735a65981bf29584ebd889132b
refs/heads/master
2021-01-11T17:27:25.574431
2017-01-23T05:32:35
2017-01-23T05:32:35
79,773,237
0
0
null
null
null
null
UTF-8
Python
false
false
2,399
py
# -*- coding: utf-8 -*- """ Created on Thu Aug 4 15:15:10 2016 @author: li optimize both throughput and connections """ #import sys #sys.path.insert(0, '/home/li/Dropbox/KTH/numerical_analysis/ILPs') import csv from gurobipy import * import numpy as np from arch4_decomposition_new import Arch4_decompose np.random...
ddd352a932897eab44ab466a1462189f4656689c
c934e7c27f0e72385218a14b4e2a7e94a747a360
/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/gsuiteaddons/v1/gsuiteaddons_v1_messages.py
3c7225d36f055cd65a71467d6cc9a202871a533a
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
PrateekKhatri/gcloud_cli
5f74b97494df4f61816026af9460b9c4d8e89431
849d09dd7863efecbdf4072a504e1554e119f6ae
refs/heads/master
2023-03-27T05:53:53.796695
2021-03-10T04:08:14
2021-03-10T04:08:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
31,183
py
"""Generated message classes for gsuiteaddons version v1. """ # NOTE: This file is autogenerated and should not be edited by hand. from __future__ import absolute_import from apitools.base.protorpclite import messages as _messages from apitools.base.py import encoding from apitools.base.py import extra_types packa...
d29f5685c461da483a731f28490384ef6e074cab
a0cf59e79154d6062c2dccfb2ff8b61aa9681486
/10.py
9f90c64b92e30c225325d27221e01584d6676600
[]
no_license
PetraVidnerova/AdventOfCode
a211d77210ac1c43a9b2c0f546250f6d7c1d183c
5b0e8017fcd8f71576a312b6c7b5bd3602be6e89
refs/heads/master
2021-01-10T16:07:03.336632
2016-02-28T14:02:54
2016-02-28T14:02:54
52,216,197
0
0
null
2016-02-21T17:17:37
2016-02-21T16:39:51
null
UTF-8
Python
false
false
471
py
def read(input): # one iteration of read input = input + "x" # last char is ignored result = "" lastchar = None count = 0 for ch in input: if ch == lastchar: count += 1 continue if lastchar: result = result + str(count) + str(lastchar) ...
ce468ff5a9ed3402454e645b2be13c4a473020ea
e10a6d844a286db26ef56469e31dc8488a8c6f0e
/gaternet/main.py
c4692b2cd0fdba89e13d15c53467b6b2f916be48
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
Jimmy-INL/google-research
54ad5551f97977f01297abddbfc8a99a7900b791
5573d9c5822f4e866b6692769963ae819cb3f10d
refs/heads/master
2023-04-07T19:43:54.483068
2023-03-24T16:27:28
2023-03-24T16:32:17
282,682,170
1
0
Apache-2.0
2020-07-26T15:50:32
2020-07-26T15:50:31
null
UTF-8
Python
false
false
5,362
py
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
d3e688e2e0724426f98735db7408e549f3245eda
717f7d68e5f36c1d30d223cb201407b0f9c11f9c
/statistical data analysis/02_variance_measure.py
dc22125bd55674bad964315424d4951b43a8ed47
[]
no_license
raunakshakya/PythonPractice
7f54508f9adb8541a9cedc7a58e3629bcfb9b6f5
3643e9f526401d31ca706f036af0cdae3da04984
refs/heads/master
2020-03-22T18:01:54.357735
2019-06-05T03:32:07
2019-06-05T03:32:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,160
py
# https://www.tutorialspoint.com/python/python_measuring_variance.htm """ Variance is a measure of how far a value in a data set lies from the mean value. In other words, it indicates how dispersed the values are. It is measured by using standard deviation. The other method commonly used is skewness. """ import panda...
a97ed4333fd26e92040a8518e6c7c947a2d216c3
747f759311d404af31c0f80029e88098193f6269
/addons/c2c_timesheet_reports/reminder.py
ab9dad36b4cf448e2f10b2624628cc6cc88d7346
[]
no_license
sgeerish/sirr_production
9b0d0f7804a928c0c582ddb4ccb7fcc084469a18
1081f3a5ff8864a31b2dcd89406fac076a908e78
refs/heads/master
2020-05-19T07:21:37.047958
2013-09-15T13:03:36
2013-09-15T13:03:36
9,648,444
0
1
null
null
null
null
UTF-8
Python
false
false
71
py
/home/openerp/production/extra-addons/c2c_timesheet_reports/reminder.py
d6271117a9193e0facb6f43251e36bccbc847ba1
9bb01fa882e713aa59345051fec07f4e3d3478b0
/tests/cysparse_/sparse/common_attributes/test_common_attributes_matrices_likes_ConjugatedSparseMatrix_INT32_t_FLOAT32_t.py
17904df851dbc456f945b9e24ed309bc76956c00
[]
no_license
syarra/cysparse
f1169c496b54d61761fdecbde716328fd0fb131b
7654f7267ab139d0564d3aa3b21c75b364bcfe72
refs/heads/master
2020-05-25T16:15:38.160443
2017-03-14T21:17:39
2017-03-14T21:17:39
84,944,993
0
0
null
2017-03-14T12:11:48
2017-03-14T12:11:48
null
UTF-8
Python
false
false
7,395
py
#!/usr/bin/env python """ This file tests basic common attributes for **all** matrix like objects. Proxies are only tested for a :class:`LLSparseMatrix` object. See file ``sparse_matrix_coherence_test_functions``. """ from sparse_matrix_like_common_attributes import common_matrix_like_attributes import unittest fro...
c284c62518399e7db958db634226e57614625b90
2f0ab8bdc939da79a314a749044a13a429596832
/odin/bay/layers/dense.py
7c455df3b1845c0f9ec7b08f8e4f5fe317632de0
[ "MIT" ]
permissive
YashinaTatiana/odin-ai
6bb65d691471cf632b4137fc21bd0b09ef76cf2a
f44c56c3f01ddb354bfc5df430bfd6587f95897c
refs/heads/master
2022-04-20T15:26:20.617310
2020-04-23T17:35:57
2020-04-23T17:35:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,313
py
from __future__ import absolute_import, division, print_function import inspect from functools import partial from numbers import Number from typing import Callable, Optional, Text, Type, Union import numpy as np import tensorflow as tf from six import string_types from tensorflow.python.keras import Model, Sequentia...
4ea282c215b39bd1c20dba68c9aa0b0f34066973
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/yaml-3.10/yaml/composer.py
09bc60b808f475856445853ce5b7bc7054ef576a
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
81
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/yaml-3.10/yaml/composer.py
8e5530438c97d0e7a5e092c7bb90b4885627ccac
bb150497a05203a718fb3630941231be9e3b6a32
/framework/e2e/jit/test_Conv1DTranspose_7.py
38603397c5765f6c7bc79e052c30df74cd538a9e
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
635
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ test jit cases """ import os import sys sys.path.append(os.path.abspath(os.path.dirname(os.getcwd()))) sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils")) from utils.yaml_loader import Ya...
8761eaff518d705e57ceb09085af5d4088e080fb
71047c4c45e97f474b45e0989202d8d88b0e4895
/sparse_dot/sparse_dot.py
3e82d3d8e3094bf5d04af57799a660e9c4e6e47a
[ "Apache-2.0" ]
permissive
pluralsight/sparse_dot
bd86e676e323ef84f51b2b5ae7b453ba7fa66916
271131a3a28f12d7dcca0fbeca8591e9d052c98a
refs/heads/master
2023-04-01T06:03:51.845211
2016-12-13T19:33:30
2016-12-13T19:33:30
72,578,014
3
1
Apache-2.0
2023-03-27T18:25:07
2016-11-01T21:24:52
Python
UTF-8
Python
false
false
2,459
py
'''The main script''' # To update with any Cython changes, just run: # python setup.py build_ext --inplace import numpy as np import cy_sparse_dot def to_saf(arr1d): arr1d = np.asanyarray(arr1d) locs = np.nonzero(arr1d) return {'locs': locs[0].astype(np.uint32), 'array': arr1d[locs].astype(np...
9a8cac4b3e32f6a077d7eb78d0f5051c0512f4a2
936dc2666f27de7a7d1428c7ad2ded62a722b8fa
/src/aids/migrations/0176_alter_aid_subvention_comment.py
9b1d57c10296955b4148ac4b92dc72f523a577cb
[ "ISC" ]
permissive
MTES-MCT/aides-territoires
03451a32bdeaab3812b8593bfe3a27c1b1d9a182
af9f6e6e8b1918363793fbf291f3518ef1454169
refs/heads/master
2023-09-04T22:15:17.819264
2023-08-25T13:19:17
2023-08-25T13:19:17
124,301,398
21
11
NOASSERTION
2023-09-12T13:46:49
2018-03-07T22:19:11
Python
UTF-8
Python
false
false
553
py
# Generated by Django 4.1.7 on 2023-04-25 12:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("aids", "0175_aid_ds_id_aid_ds_mapping_aid_ds_schema_exists"), ] operations = [ migrations.AlterField( model_name="aid", ...
54ca12d67db93ad73a903f15cd006cccfdefb7b9
38b8bceafb4d80afc7c77196eb9ee99694191bcf
/scrapy/study/w3school/w3school/pipelines.py
f7b1b2c843306a1645d8a3cfe490cb83fe27c0f5
[]
no_license
tangc1986/PythonStudy
f6c5b384874e82fbf0b5f51cfb7a7a89a48ec0ff
1ed1956758e971647426e7096ac2e8cbcca585b4
refs/heads/master
2021-01-23T20:39:23.930754
2017-10-08T07:40:32
2017-10-08T07:42:38
42,122,267
0
0
null
null
null
null
UTF-8
Python
false
false
542
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import json import codecs class W3SchoolPipeline(object): def __init__(self): self.file = codecs.open('w3school_dat...
bc84b1d032b1997b9821ff3ddf33c6d2c324154e
a6f9b3b1503fc08e7d77161bb2b5beac3b89480d
/app/main/views.py
d9d53ba612eb73e52f381e20e54f8542edc6833b
[]
no_license
AugustineOchieng/newsFeed
e779d7e4cf91c6769947cb5e140d417001ecf7c2
b08720540c31453f895f395524177edb489add97
refs/heads/master
2020-05-09T14:53:23.346539
2019-04-16T10:04:09
2019-04-16T10:04:09
181,212,503
0
0
null
null
null
null
UTF-8
Python
false
false
1,064
py
from flask import render_template,request,redirect,url_for from . import main from flask import render_template,request,redirect,url_for from ..request import get_source,article_source,get_category,get_headlines #our views @main.route('/') def index(): ''' Root function returning index/home page with data ...
ec7f623c696363ec82e593a0d6aac0e53ec677b5
26d450ba94d06ce9ff2ced9e41c2daf6ea011118
/demo/demo3.py
49f164c4895737804908e1e03a4f0aff2eb7e256
[ "BSD-2-Clause", "BSD-3-Clause" ]
permissive
Correct-Syntax/ui-style-lang
d0a9ac478dc9c7572d0d663b48eea0c07dd48705
5c6dc9f1cd50de35c5745082dd02dc572f794ccc
refs/heads/master
2023-04-28T20:01:03.866809
2021-05-14T14:38:49
2021-05-14T14:38:49
267,696,517
12
0
null
null
null
null
UTF-8
Python
false
false
3,331
py
# Demo for UI Style Lang # ====================== # This demo file (demo3.py) is MIT licensed - (C) 2020 Noah Rahm, Correct Syntax # Usage: # It's a custom button...click it! # This demo is up-to-date import wx from uistylelang import UIStylePDC, UIStyleApp, UIStyleFrame class MainApplication(UIStyleFrame): ...
a9e9e39af8ee92b0bba4707c28c6f54219d54710
3f327d2654b85b922909925b9f475315d78f4652
/Backend/lib/python3.6/site-packages/twilio/rest/api/v2010/account/outgoing_caller_id.py
628e08a85f4247c7f5276900e177aa432bd198b0
[ "MIT" ]
permissive
brianwang1217/SelfImprovementWebApp
8db45914027537aee9614f9d218c93cc08dc90f8
7892fc4ee5434307b74b14257b29a5f05a0a0dd7
refs/heads/master
2022-12-13T15:01:08.595735
2018-06-23T04:46:06
2018-06-23T04:46:06
137,548,289
1
1
MIT
2022-05-25T01:28:29
2018-06-16T02:48:52
Python
UTF-8
Python
false
false
15,446
py
# coding=utf-8 """ This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import deserialize from twilio.base import values from twilio.base.instance_context import InstanceContext from twilio.base.instance_resource import InstanceResource from twilio.base....
3a28f8f33d4492d8f2c8922de5dcebfd6fbd2cff
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.4/django/contrib/comments/templatetags/__init__.py
f5f7397defa1565158775adfb5cee392fb466f4d
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
114
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.4/django/contrib/comments/templatetags/__init__.py
9e2d3cebcf48028ed81634ea26699d80d74e08bd
74f0c966d09786f447ad60bf837ea342cb405874
/neutron/tests/unit/plugins/ml2/drivers/openvswitch/agent/openflow/native/ovs_bridge_test_base.py
1437e0cd4203167b172302fcb4514f6b1a8a20d2
[ "Apache-2.0" ]
permissive
mrwukang/neutron
ad354d19a6ba4ec9a92b4e54d02cf1bbfd66e47e
ebdb2ad1213eaf09c6a3f061a94ff4453c3e7506
refs/heads/master
2020-04-11T18:24:09.601969
2019-01-02T15:42:05
2019-01-02T15:42:05
161,997,228
1
0
null
null
null
null
UTF-8
Python
false
false
10,153
py
# Copyright (C) 2014,2015 VA Linux Systems Japan K.K. # Copyright (C) 2014,2015 YAMAMOTO Takashi <yamamoto at valinux co jp> # 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 t...
590926c548bbf4d2c80cd8848ec14070f263882b
4d0bbeb8ab52f7e450aff20056f7509e12751258
/functional_tests/test_list_item_validation.py
b76997f17a27784079ace3f2665c4571d9f5f356
[]
no_license
chicocheco/tdd_book
f7c9246dcb4eb5327704c72f655bf6e187b28849
574b1082aa523c7434f50e0c4cbdf5777ddf50ef
refs/heads/master
2022-05-02T17:44:27.217329
2020-03-13T18:57:22
2020-03-13T18:57:22
197,633,503
0
0
null
2022-04-22T22:19:12
2019-07-18T17:56:43
JavaScript
UTF-8
Python
false
false
4,895
py
from selenium.webdriver.common.keys import Keys from unittest import skip from .base import FunctionalTest class ItemValidationTest(FunctionalTest): # YAGNI, 3 strikes and refactor, not moving helper methods to base.py if not needed elsewhere def get_error_element(self): return self.browser.find_elem...
bf50837fd80b831d40a6bba91fc419a1019c4bd2
fa346a2d5886420e22707a7be03599e634b230a9
/temboo/Library/Amazon/S3/__init__.py
905fa3010c0e9c654a3d2c2b1a47f51be344b1f9
[]
no_license
elihuvillaraus/entity-resolution
cebf937499ed270c3436b1dd25ab4aef687adc11
71dd49118a6e11b236861289dcf36436d31f06bc
refs/heads/master
2021-12-02T17:29:11.864065
2014-01-08T04:29:30
2014-01-08T04:29:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,274
py
from PutBucketACL import * from GetBucketLocation import * from DeleteMultipleObjects import * from GetBucketWebsite import * from DeleteBucketCORS import * from DeleteBucketTagging import * from GetObjectACL import * from ZipBucket import * from DeleteBucket import * from PutBucketWebsiteRedirectAll import * from GetB...
8487f1f63135e4bffeb4b1e070046c863dd458cf
52f734b8f04ed0c88e3a41de2b5fb4aa3b2c1a8b
/data_process.py
3eb1ff7174c0319da6678cce0e541f8ad5cfd25f
[]
no_license
hongjy127/CNN_ultrasonics
d79398d947ffca0014da2f917b2871362d624e91
11c5614ac734f4d7af9a4a488ddc52bb4be28b87
refs/heads/master
2023-02-27T00:10:58.396549
2021-02-03T16:39:40
2021-02-03T16:39:40
328,112,167
0
0
null
null
null
null
UTF-8
Python
false
false
1,863
py
import numpy as np import matplotlib.pyplot as plt from pyts.image import RecurrencePlot # 설정 정보 불러오기 class Configuration: def __init__(self): config = self.load() self.fname = config['FNAME'] def load(self): config = {} with open('config.ini','rt') as f: entries = ...
5b730b0e8f6cecaf216b0cf318e622fb159d42ce
a4b81839fe6d7726eb6c9d2c9fd0d9a70cf3ef3f
/day11_20191119/exercise00002.py
d84024cddff13dcadc302524c26401f03a257578
[]
no_license
Python87-com/PythonExercise
3f84e0f194254d0f0a8b106348b214ccdeebf842
9bef64c6d3b143236bf06131e5f7a5aabcf6980b
refs/heads/master
2021-01-31T15:56:27.743718
2020-01-02T12:10:43
2020-01-02T12:10:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
274
py
""" 4. 请用面向对象思想,描述以下场景: 玩家(攻击力)攻击敌人(血量),敌人受伤(掉血),还可能死亡(掉装备,加分)。 敌人(攻击力)攻击玩家,玩家(血量)受伤(掉血/碎屏),还可能死亡(游戏结束)。 """
1a4dbf5f1ac9cc33c0301f9ba2db8c21e1972c06
781029dcc468a7d1467a17727870d526da1df985
/algorithm/2806_N-queens/sol.py
d0219b8816f66160b7d8c92f7d7a7d00ec2b6996
[]
no_license
Huijiny/TIL
5f0edec5ad187029e04ed2d69e85ae4d278e048d
d1a974b3cacfb45b2718f87d5c262a23986c6574
refs/heads/master
2023-09-03T15:28:11.744287
2021-10-21T12:38:10
2021-10-21T12:38:10
335,220,747
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
import sys sys.stdin = open('sample_input (3).txt') def is_exist_diagnal(cur_pos): for queen in queens: if abs(cur_pos[0] - queen[0]) == abs(cur_pos[1] - queen[1]): return True return False def n_queens(row): global visited, count if row == N: count += 1 else: ...
97b61b984b05740f9ba96560cbecd106998ce823
d4ca0866381e577e3d36a22735d02eb4bf817b10
/roman_to_integer.py
17099c8e9ce1347818f6937355f5dd6828331434
[]
no_license
haiwenzhu/leetcode
e842936b69bbaf5695de1f98c8c17507819435dd
bc068c2b00793ae72439efe5bdecaeed029e9f65
refs/heads/master
2021-01-15T13:11:22.672952
2015-07-25T04:45:36
2015-07-25T04:45:36
36,838,199
0
0
null
null
null
null
UTF-8
Python
false
false
724
py
class Solution: """ @see https://oj.leetcode.com/problems/roman-to-integer/ """ # @return an integer def romanToInt(self, s): chart = dict(I=1, V=5, X=10, L=50, C=100, D=500, M=1000) if s == "": return 0 n = chart[s[-1]] for i in range(2, len(s...
30bded28cc0dcda07789d41d085dfdb3d9e6e17c
82fce9aae9e855a73f4e92d750e6a8df2ef877a5
/Lab/venv/lib/python3.8/site-packages/OpenGL/GLES2/NV/shader_atomic_fp16_vector.py
99ece98dcff7af485333887d940e48ccac1ff4b7
[]
no_license
BartoszRudnik/GK
1294f7708902e867dacd7da591b9f2e741bfe9e5
6dc09184a3af07143b9729e42a6f62f13da50128
refs/heads/main
2023-02-20T19:02:12.408974
2021-01-22T10:51:14
2021-01-22T10:51:14
307,847,589
0
0
null
null
null
null
UTF-8
Python
false
false
883
py
'''OpenGL extension NV.shader_atomic_fp16_vector This module customises the behaviour of the OpenGL.raw.GLES2.NV.shader_atomic_fp16_vector to provide a more Python-friendly API Overview (from the spec) This extension provides GLSL built-in functions and assembly opcodes allowing shaders to perform a limited set...
c4d74c2b8f344ee2be3556aa368f15b22c62cd6e
cb1d06e91347a23438057d9f40b5a74cad595766
/autonetkit/anm/__init__.py
4ee754a1a2282b1c46bccc42aaac4a0d566210a7
[]
permissive
plucena24/autonetkit
9f94d3fba6bfad54793a7de58ef17439c2c71f0b
f7e8c03ee685d5b89f9028cb556017e730e0446c
refs/heads/master
2023-08-16T18:03:54.593010
2014-11-07T13:43:39
2014-11-07T13:43:39
27,204,033
0
0
BSD-3-Clause
2023-08-08T18:36:36
2014-11-27T01:36:38
Python
UTF-8
Python
false
false
273
py
from autonetkit.anm.network_model import NetworkModel as NetworkModel from autonetkit.anm.graph import NmGraph as NmGraph from autonetkit.anm.node import NmNode as NmNode from autonetkit.anm.edge import NmEdge as NmEdge from autonetkit.anm.interface import NmPort as NmPort
8be656429e0ccfbc6d5b995c311d4436a9d86d31
3ca67d69abd4e74b7145b340cdda65532f90053b
/programmers/난이도별/level03.표 편집/sangmandu.py
309e210a1f26779c12c4f4c6978734fa138431d5
[]
no_license
DKU-STUDY/Algorithm
19549516984b52a1c5cd73e1ed1e58f774d6d30e
6f78efdbefd8eedab24e43d74c7dae7f95c2893b
refs/heads/master
2023-02-18T06:48:39.309641
2023-02-09T07:16:14
2023-02-09T07:16:14
258,455,710
175
49
null
2023-02-09T07:16:16
2020-04-24T08:42:27
Python
UTF-8
Python
false
false
3,870
py
''' https://programmers.co.kr/learn/courses/30/lessons/81303 표 편집 [풀이] 0. 연결리스트 문제 => 보통 이런문제가 나오면 클래스로 짜는 사람이 있다. 참 대단.. 1. 연결리스트를 딕셔너리로 구현한다. => i번째 노드는 원소가 2개인 list 타입의 값을 가진다. => [0] : left = i-1번째 노드 => [1] : right = i+1번째 노드 => 0번 노드와 n-1번 노드는 양쪽 끝에 None을 가지고 있다. 2. 명령어가 C, Z일때를 조건으로 하고 그 외에는 split()을 한다. 2-1. C일...
009bcc09b6b0e01969e419f841aa942b60421c69
ce36737f134db1726bb189c17a729b9d3abba4e4
/assets/src/ba_data/python/bastd/ui/settings/gamepadselect.py
4c1b4fa15cb76c093ad443c0653ec961e3d5fead
[ "MIT" ]
permissive
Indev450/ballistica
0559940971c69b7596442abfc6ac2818a4987064
27420d3f64c24bf3c9b4b047177a4769977659b1
refs/heads/master
2023-07-20T16:01:04.586170
2020-04-13T09:32:36
2020-04-13T09:32:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,740
py
# Copyright (c) 2011-2020 Eric Froemling # # 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,...
e2d6533a67d8bebf792f226e1e5a1c797c7a7032
39d7ab29356ea5363c783d518b3c92f52c2ef8c2
/crawler/crawlers_BACKUP/sinarollcustom.py
9c3170f6636f92bf98ab84af04baecb8a1e39df5
[]
no_license
wdcpop/Web-Crawler
7daad778bbda9e5852248971845e3b448629175e
725037d17dfd2535e213df3cb7aafda523d39c03
refs/heads/master
2018-07-31T15:12:31.605633
2018-06-02T16:03:36
2018-06-02T16:03:36
121,194,531
4
1
null
null
null
null
UTF-8
Python
false
false
731
py
#!/usr/bin/env python # -*- encoding: utf-8 -*- from .abstracts.crawler_abstract import CrawlerAbstract import re from urlparse import urljoin from urlparse import urlsplit from arrow import Arrow import time class SINAROLLCUSTOM(CrawlerAbstract): title = u'新浪财经 - 滚动自选' start_urls = [ 'http://roll.ne...
2370bfe569782dc9bb6f537eb8495692b3be2571
51d5bd1f792f3a0fe1285c3ccdeefb58077890df
/anees/migrations/0027_auto_20200926_1337.py
33ea2f35e72c08589a1f98ef7070dd993ad8150f
[ "MIT" ]
permissive
ashish2020kashyap/cessini
667c2d4ab64f34121255a43c327b8110fa499d0b
9713fd76d2e31a95266ec69da2abc98424a46e52
refs/heads/master
2022-12-16T13:30:21.093504
2020-09-29T06:31:12
2020-09-29T06:31:12
299,510,700
0
0
null
null
null
null
UTF-8
Python
false
false
1,233
py
# Generated by Django 3.1.1 on 2020-09-26 13:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('anees', '0026_auto_20200926_1336'), ] operations = [ migrations.AlterField( model_name='customer', name='customer_ca...
0a1b40f9c2382b1f57e2db3116afbfc749929daf
1b2fc9666edbbdc65387c854831097e0be8b686c
/BOJ(Baekjoon Online Judge)/Mathematics/2004_조합 0의 개수(counting trailing zero in combination).py
cfc777b9dac881b237d3a84d4de3aec3d7992dda
[]
no_license
seongbeenkim/Algorithm-python
6593878cff8755800f3e8bcdaabdb41625324f38
24fe365a29c61c2405a06345f9105ed200a76bd5
refs/heads/master
2023-09-04T11:05:08.318769
2021-02-18T14:58:20
2021-02-18T14:58:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
#https://www.acmicpc.net/problem/2004 import sys count_two = 0 count_five = 0 n, m = list(map(int,sys.stdin.readline().split())) i = 2 while n >= i: count_two += n // i i *= 2 i = 2 while (n-m) >= i: count_two -= (n-m) // i i *= 2 i = 2 while m >= i: count_two -= m // i i *= 2 i = 5 while n...
52e5b6853dc97a6beb2f483898e29c76c462f3e8
8fd28b248511f42ad8732ca1e574aada33908376
/tests/test_models/test_recognizers.py
8ce86d6ec3689d2e8fbc75634871f24de57ddb72
[ "Apache-2.0" ]
permissive
vt-vl-lab/video-data-aug
28bd175535cab1444055502389c8f5d7d75e4bd2
01667cdbd1b952f2510af3422beeeb76e0d9e15a
refs/heads/main
2023-09-01T02:36:40.034893
2021-07-21T01:31:42
2021-07-21T01:31:42
352,920,339
29
6
Apache-2.0
2021-07-21T01:29:36
2021-03-30T08:06:54
Jupyter Notebook
UTF-8
Python
false
false
10,211
py
import os.path as osp import mmcv import numpy as np import pytest import torch import torch.nn.functional as F from mmaction.models import BaseRecognizer, build_recognizer class ExampleRecognizer(BaseRecognizer): def __init__(self, train_cfg, test_cfg): super(BaseRecognizer, self).__init__() #...
7b1eb99a5365b143075c1cb52706163e83e63362
794e14945c0521b4eab03e8b9a3f93b8fa14e021
/src/compas_ghpython/artists/lineartist.py
e4bc4ee098824c867f75517ab75f1e85f0d1a226
[ "MIT" ]
permissive
KEERTHANAUDAY/compas
5e8ada865bc87ee48ba77b3f6fd03661a9b9c17d
4d1101cf302f95a4472a01a1265cc64eaec6aa4a
refs/heads/master
2021-07-11T16:26:19.452926
2020-09-10T14:27:11
2020-09-10T14:27:11
294,453,684
0
0
MIT
2020-09-10T15:47:31
2020-09-10T15:47:30
null
UTF-8
Python
false
false
1,054
py
from __future__ import print_function from __future__ import absolute_import from __future__ import division import compas_ghpython from compas_ghpython.artists._primitiveartist import PrimitiveArtist __all__ = ['LineArtist'] class LineArtist(PrimitiveArtist): """Artist for drawing lines. Parameters -...
f0078d8d238fb95be3367e8c9a6724e692d2f892
d806dd4a6791382813d2136283a602207fb4b43c
/migrations/versions/414eda9f70d0_.py
2eb67987fdcb5ce4328978a6b6c70f45820f1622
[]
no_license
MarsStirner/sirius
5bbf2a03dafb7248db481e13aff63ff989fabbc2
8839460726cca080ca8549bacd3a498e519c8f96
refs/heads/master
2021-03-24T12:09:14.673193
2017-06-06T16:28:53
2017-06-06T16:28:53
96,042,947
0
0
null
null
null
null
UTF-8
Python
false
false
1,037
py
"""empty message Revision ID: 414eda9f70d0 Revises: f088f9315be0 Create Date: 2016-10-20 20:27:23.521000 """ # revision identifiers, used by Alembic. revision = '414eda9f70d0' down_revision = 'f088f9315be0' from alembic import op import sqlalchemy as sa from sqlalchemy.dialects import postgresql def upgrade(): ...
c2fbf9b3a660a865fe1e20d672d48b4f0f4211bc
50084bf941b61791ac4def5b8cff950e7ddfdd15
/10 Advanced Language Techniques/Functional/04_currying.py
9bfdbe7774d011369592c47083061947c15d5c7e
[]
no_license
gjq91459/mycourse
6904ad191dc6128fb853eb8bdb1b200a46b2059f
211d7707e41f50495375b4a1dfc32b62b76b317b
refs/heads/master
2021-01-21T10:34:44.841349
2017-03-01T11:17:52
2017-03-01T11:17:52
83,456,979
1
0
null
null
null
null
UTF-8
Python
false
false
595
py
# conventional function that takes 5 args def func(a, b, c, d, e): return a, b, c, d, e print func(1, 2, 3, 4, 5) # curried version that takes 1 arg def f(a): def g(b): def h(c): def i(d): def j(e): return a, b, c, d, e return j ...
bd036bff8f5d9e56e55bb6ba97338a10bbbf2499
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/82/usersdata/231/43199/submittedfiles/decimal2bin.py
cfc4f3a70bf6f9df805aa03d52a228511ebb8f8f
[]
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
151
py
# -*- coding: utf-8 -*- n=int(input('digite n: ')) soma=0 i=0 while n>0: resto =n%10 soma=soma+resto*(2**i) n=n//10 i=i+1 print(soma)
9af0b1c58bb1fb1a4ecbbacf86e2e4df2322826d
e37050384528b91832860d5490c1551812f45359
/train/train_spider_funtions/constant.py
24228b31060266e820cb2c471204257d584cba3f
[]
no_license
gii001/train_spider_api
72366cf4c17ac9596090bba1f9b80778e1d2d289
5307b6f538bad1379e6f218f824a402565c42fee
refs/heads/master
2020-05-01T03:59:11.263971
2019-04-05T06:07:07
2019-04-05T06:07:07
177,261,078
0
0
null
null
null
null
UTF-8
Python
false
false
60,619
py
#!/usr/bin/env python # encoding: utf-8 """ 常量设置 Author: Wendell Date: 2019/03/23 11:00 """ # 车次信息网址 TRAIN_NO_BASE_URL = 'https://kyfw.12306.cn/otn/leftTicket/query?' # 车站信息网址 STATION_INFO_BASE_URL = 'https://kyfw.12306.cn/otn/czxx/queryByTrainNo?' # 成人票网址后缀 PURPOSE_CODES = '&purpose_codes=ADULT' # User-Agent ...
b9b729355f00f06c81c387568d229eb5f38329c1
b206fdcb53cb69497745c67beed17e0be909ddf6
/Hack2020/db_load/init_data.py
d13c1243716ba3d30a4ad449457696d4830a6ddd
[]
no_license
zapravka-team/hack_django
1e5300684699420085048b3bdfae67f5daa75937
007f6e216d605c4742d55285064c077b7e0c2755
refs/heads/main
2023-01-05T21:44:32.829539
2020-11-01T08:59:32
2020-11-01T08:59:32
308,709,023
0
0
null
null
null
null
UTF-8
Python
false
false
21,678
py
from pet.models import PetType, PetGender, EarType, TailType, ColorType, EuthanasiaCause, DeathCause, DisposeCause, \ FursType, Breed ears = \ """Стоячие Полустоячие Висячие Купированные""" tails = """Обычный Саблевидный Крючком Поленом Прутом Пером Серпом Кольцом Купированный""" death_cause = ""...
b7d64c74771a4379ce29c27a191bccd4114e553d
5b4c803f68e52849a1c1093aac503efc423ad132
/UnPyc/tests/tests/all_opcodes/34.py
1281469b68be11bf4133e93412aa03185117bd5e
[]
no_license
Prashant-Jonny/UnPyc
9ce5d63b1e0d2ec19c1faa48d932cc3f71f8599c
4b9d4ab96dfc53a0b4e06972443e1402e9dc034f
refs/heads/master
2021-01-17T12:03:17.314248
2013-02-22T07:22:35
2013-02-22T07:22:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
24
py
a = [1, 2, 3] del a[:2]
dee4c636e7942fb1628a33bd9034f00d3c0944cd
4125b4e65bd523e2c8c44d0a269d11de3f246d9c
/jsont/transforms/xml.py
a55dbbb796cca2e236b85972001c744456e2f77e
[]
no_license
usnistgov/jsont
a3be1c2a9f3c16d670a4cb0ad12470b1b289a34c
091f5471f2aaba71ffe7904b7ff620f09f4ebf15
refs/heads/master
2021-01-10T02:09:21.988933
2016-03-16T00:19:40
2016-03-16T00:19:40
53,922,397
0
0
null
null
null
null
UTF-8
Python
false
false
25,959
py
""" transforms for creating XML from JSON data """ import os, copy, re, textwrap, collections import json as jsp from ..exceptions import * from ..base import Transform, ScopedDict, Context from .std import JSON, Extract, StringTemplate, Function from . import std MODULE_NAME = __name__ TRANSFORMS_PKG = __name__.rspl...
370b9d1e5738731995469d3572171a1eb0805860
b20cc37e0b986a0b458f7f446d5025beee01ba7a
/326-power-of-three/326-power-of-three.py
ee9a38938a90148c4442109da4f8e747ba9f4374
[]
no_license
Maruf-S/Competitve-programing
e5e405912a4c2d9a1fad35d66411964ecbc10d00
3134d9c1b7e987c6cec3c614512faab4114fe0bd
refs/heads/master
2023-02-04T08:08:43.374565
2023-02-01T17:29:55
2023-02-01T17:29:55
225,399,606
0
1
null
null
null
null
UTF-8
Python
false
false
183
py
class Solution: def isPowerOfThree(self, n: int) -> bool: if n==1: return True if n<1: return False return self.isPowerOfThree(n/3)
54a9a094e0ee5716cca0e893e3b82f367b83dbe1
a0dda8be5892a390836e19bf04ea1d098e92cf58
/7章之后刷题/7章/求一元二次方程的解.py
517c5ec018ad4fd2fec5dfce6394c34f9bf20cf7
[]
no_license
wmm98/homework1
d9eb67c7491affd8c7e77458ceadaf0357ea5e6b
cd1f7f78e8dbd03ad72c7a0fdc4a8dc8404f5fe2
refs/heads/master
2020-04-14T19:22:21.733111
2019-01-08T14:09:58
2019-01-08T14:09:58
164,055,018
1
0
null
null
null
null
UTF-8
Python
false
false
769
py
""" 【问题描述】一元二次方程:ax2+bx+c=0 (a ╪ 0) 【输入形式】输入a、b和c的值(有理数) 【输出形式】输出x的两个值,或者No(即没有有理数的解) 【样例输入】1 2.5 3 【样例输出】No 【样例输入】1 -2 1 【样例输出】1.00 1.00 【样例输出说明】输出的两个解保留两位小数,大的在前 """ import math a, b, c = input().split() if a != 0: a = float(a) b = float(b) c = float(c) if b ** 2 - 4 * a * c < 0: print("No"...
69219886e2fb7b8ea37b60e28d74a109c0dd00ec
508bef828c3ce1f1c53fbe52397632ebcb392a7f
/excercise/DataOutput.py
17f26dd4e5ecf58f8a646828a506123f3f85f981
[]
no_license
wudangqibujie/excercise
bc19a7923836aae9d12e1147b1d282250c0037c6
ff3e255e809e414fd43e7cf16e03466c91b613a2
refs/heads/master
2021-05-02T12:20:09.701592
2018-02-08T09:20:04
2018-02-08T09:20:04
120,738,926
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
import codecs import json class DataOutput(object): def __init__(self): self.datas = [] def store_data(self,data): if data is None: return self.datas.append(data) def output_txt(self): print(self.datas) print(len(self.datas)) def output_h...
cb404b4d172d193fdd675a194c0f74c3dc2bcbec
7e8c799037f47345cb12a6fc7911610d7ac63640
/blog/models/kategory.py
db1f3aed151335e537ac97042a080087a708be89
[]
no_license
SonerArslan2019/Django_Blog_kilicarslan
bcfd953dfc0d530217c02ff9bf1428160a63e68e
8959708689b830c387c76414545add2474beeddd
refs/heads/master
2023-06-04T06:19:28.209246
2021-06-27T14:50:40
2021-06-27T14:50:40
346,781,400
0
0
null
null
null
null
UTF-8
Python
false
false
403
py
from django.db import models from autoslug import AutoSlugField class KategoriModel(models.Model): isim = models.CharField(max_length=30, blank=False, null=False) slug = AutoSlugField(populate_from='isim', unique=True) class Meta: db_table = 'kategori' verbose_name_plural = 'Kategoriler' ...
314cb13e39d3721bdde09602caf9430c87651252
e2baefd54ed6f44d351d867b8d8eb937424fae23
/class-10/game-of-greed/tests/version_4/test_keep_scorers.py
ad3c4e7685ac39c0a0bdef3b04d08c355b08a355
[]
no_license
codefellows/seattle-python-401n2
60cc100b5b6dc8bc3d72784a5ec8f9c2c9db1942
24148a2ee6526104566b5df64945a40222cfb3e2
refs/heads/main
2023-04-23T15:35:49.820538
2021-04-24T18:02:51
2021-04-24T18:02:51
316,109,616
8
16
null
2021-03-10T05:36:09
2020-11-26T03:06:19
Jupyter Notebook
UTF-8
Python
false
false
460
py
import pytest from game_of_greed.game_logic import GameLogic pytestmark = [pytest.mark.version_4] @pytest.mark.parametrize( "test_input,expected", [ ((1, 1, 1, 2, 3, 4), (1, 1, 1)), ((1, 1, 5, 2, 3, 5), (1, 1, 5, 5)), ((1, 6, 5, 2, 3, 4), (1, 6, 5, 2, 3, 4)), ((1, 6, 5, 2, 3),...
270a1aae2fd8c1049b534b01bbc44c37a2580987
79e19819aec49b500825f82a7de149eb6a0ba81d
/leetcode/704.py
67ae34f57125b3c89b84138ec42378a347353c62
[]
no_license
seoyeonhwng/algorithm
635e5dc4a2e9e1c50dc0c75d9a2a334110bb8e26
90406ee75de69996e666ea505ff5d9045c2ad941
refs/heads/master
2023-05-03T16:51:48.454619
2021-05-26T00:54:40
2021-05-26T00:54:40
297,548,218
0
0
null
null
null
null
UTF-8
Python
false
false
174
py
class Solution: def search(self, nums: List[int], target: int) -> int: try: return nums.index(target) except ValueError: return -1
d63a8cf77a7bbfd03771436916c9f84472b354e1
13efb3baccc678f9d57776244c7dc067e486df9e
/students/migrations/0021_auto_20160517_1221.py
e9210404690fc2e9213f7ae9d9febd5fc7d78325
[]
no_license
grydinywka/studentsdb
fd109dfe60f4ffd666c12acbe645ca14e064c29b
bc2c968538f88bd539d931a7caf1b693fbb65843
refs/heads/master
2020-05-31T00:05:22.638475
2016-08-26T17:00:43
2016-08-26T17:00:43
31,331,814
0
0
null
null
null
null
UTF-8
Python
false
false
576
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import students.models.Result_exam class Migration(migrations.Migration): dependencies = [ ('students', '0020_auto_20160421_0936'), ] operations = [ migrations.AlterField( ...
adc4c82afca2554fb969296bae54e2b26b9e6e9f
45c170fb0673deece06f3055979ece25c3210380
/toontown/shtiker/DisguisePage.py
3ee2886febb3d641d32591427874690f460eb813
[]
no_license
MTTPAM/PublicRelease
5a479f5f696cfe9f2d9dcd96f378b5ce160ec93f
825f562d5021c65d40115d64523bb850feff6a98
refs/heads/master
2021-07-24T09:48:32.607518
2018-11-13T03:17:53
2018-11-13T03:17:53
119,129,731
2
6
null
2018-11-07T22:10:10
2018-01-27T03:43:39
Python
UTF-8
Python
false
false
9,526
py
#Embedded file name: toontown.shtiker.DisguisePage from toontown.shtiker import ShtikerPage from direct.gui.DirectGui import * from panda3d.core import * from panda3d.direct import * from toontown.toonbase import ToontownGlobals from toontown.toonbase import TTLocalizer from toontown.suit import SuitDNA from toontown.b...
0ef2bcc9c688462fe238bb21496e160b45812ca0
3e4b8fe54f11bf36f3615c21fdc1dca0ed00fe72
/month04/spider/day01/text/02_tieba.py
63d1010207234daf73d93db6df89f20b4e00ef29
[]
no_license
leinian85/year2019
30d66b1b209915301273f3c367bea224b1f449a4
2f573fa1c410e9db692bce65d445d0543fe39503
refs/heads/master
2020-06-21T20:06:34.220046
2019-11-04T06:37:02
2019-11-04T06:37:02
197,541,549
0
0
null
null
null
null
UTF-8
Python
false
false
1,495
py
from urllib import request from urllib import parse import random import time from fake_useragent import UserAgent import re class TiebaSpider: def __init__(self): self.url = "http://tieba.baidu.com/f?kw={}&pn={}" def set_headers(self): us = UserAgent() self.headers = {"User-Agent":us...
8d1ae267007951a34533aae1e23eb15ed57cf4ee
0d5e40b598ee3ad2c0575a45857df49457a99cc7
/june/handlers/api.py
d6ab577e83fa85e62f43ad5ac12f2b2f71770f36
[ "BSD-3-Clause" ]
permissive
mitnk/june
7fdf928b7de452911a9d683bc50ed52a9f04085c
ab2b8e42e9b632923187333cd91af0f683c16ba6
refs/heads/master
2021-01-18T12:01:19.949051
2012-03-27T07:10:43
2012-03-27T07:10:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,530
py
import math from tornado.options import options from june.lib.handler import BaseHandler from june.lib.decorators import require_user from june.models import Topic, Member, Reply from june.models.mixin import NotifyMixin class UpTopicHandler(BaseHandler): """Up a topic will increase impact of the topic, and i...
fa45fa3e4460095d824552aa35a17268abf6e8d3
481ce69bd3611715fef0be99c655c95d67f16d5f
/riopy/tests/test_halocell.py
bb4e9a4da694b436c60b341228f6c83519a79a89
[ "BSD-3-Clause" ]
permissive
fsimkovic/riopy
0ffed18c72573e824affa97d5c17ca462c5f2031
5dc4083d1c0919d94ceeac802d3fb40748b947f3
refs/heads/master
2021-03-24T10:14:25.904758
2018-08-30T13:16:02
2018-08-30T13:16:02
117,836,272
0
0
null
null
null
null
UTF-8
Python
false
false
8,868
py
import unittest from riopy.halocell import HaloCell class HaloCellTest(unittest.TestCase): def test_ops_1(self): mate_ops = HaloCell.ops(0) self.assertListEqual([(0, 0, 0)], mate_ops) def test_ops_2(self): mate_ops = HaloCell.ops(1) true_ops = [(0, 1, 1), (1, -1, -1), (1, 0, ...
c44a12d77ff12294af2fe0d956eadc83432d93a5
77900cdd9a815caf1cd04705321ca93f5072179f
/Project/.history/main_20211116163259.py
e8cab25e7e1da7157cd5e01b04d2ba8c87d33c20
[]
no_license
Bom19990111/helloword_python
717799d994223d65de5adaeabecf396ff2bc1fb7
2ee2e67a60043f03c1ce4b070470c7d2dcdc72a7
refs/heads/master
2023-09-06T04:17:02.057628
2021-11-21T20:00:46
2021-11-21T20:00:46
407,063,273
0
1
null
2021-11-21T20:00:47
2021-09-16T07:18:35
Python
UTF-8
Python
false
false
2,680
py
import product as p def choose(): action = 0 while action >= 0: if action == 1: p.AddProduct() print("--------------------------------") elif action == 2: p.DeleteProduct() elif action == 3: p.UpdateProduct() elif action == 4: ...
a6793fef67f7d299ac2575aa4f3fdafd5fc99bae
89b0920101eaf09b0afb9a5449f3fabd68ac21c1
/analysis-blocks/scripts/SlowAdder.py
fd81750d4252600627d344e3bba39799ecfc459f
[]
no_license
metamorph-inc/openmeta-examples-and-templates
cffdcecf8b4fca1ea8ae4f8880a5f2720ec05f4b
4f6cc54510c742b9a3bf39338a5a01df510c1243
refs/heads/master
2023-04-10T06:25:28.691426
2020-03-12T23:20:36
2020-03-12T23:20:36
91,151,238
7
3
null
2018-12-03T23:01:19
2017-05-13T05:17:18
Python
UTF-8
Python
false
false
825
py
from __future__ import print_function from openmdao.api import IndepVarComp, Component, Problem, Group, FileRef import numpy as np import time class SlowAdder(Component): def __init__(self): super(SlowAdder, self).__init__() self.add_param("x", val=0.0) self.add_param("y", val=0.0) ...
892d1f7a730ca334b28fb0d84012c7de626b560d
e2ef58aa444e9e97ed26ef52bc69ac8bd79bc93e
/podoc/tests/test_utils.py
4e8a2b8169b447a65c22f3dda2df52035c514a17
[ "BSD-3-Clause" ]
permissive
willingc/podoc
1dc1c18f40e06b47760f0f6227ec70bd2dd1d19e
7021aec70d47a8a3a934c5799828f412e38b7c23
refs/heads/master
2021-01-17T10:04:47.414887
2016-04-02T09:56:55
2016-04-02T09:56:55
53,595,629
0
0
null
2016-03-10T15:32:25
2016-03-10T15:32:23
Python
UTF-8
Python
false
false
2,014
py
# -*- coding: utf-8 -*- """Test utility functions.""" #------------------------------------------------------------------------------ # Imports #------------------------------------------------------------------------------ import json import logging import os.path as op from pytest import mark, raises from ..uti...