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
9d09fcf610c797bccf89f3f24ef9afffc8933042
67d8173a716da10a7350213d98938aae9f2115ce
/LeetCode/LC_PY_ANSWERS/sort-an-array.py
0cecad74707c151f8b38b2b110494d2e85eee7de
[ "MIT" ]
permissive
jxie0755/Learning_Python
94490d41bdf93acf8396f843328e38b6da310b0f
143422321cbc3715ca08f6c3af8f960a55887ced
refs/heads/master
2021-11-02T22:47:35.790239
2021-09-26T04:26:23
2021-09-26T04:26:23
101,445,132
0
2
null
2019-02-19T15:48:44
2017-08-25T22:00:16
Python
UTF-8
Python
false
false
2,412
py
# Time: O(nlogn) # Space: O(n) # merge sort solution class Solution(object): def sortArray(self, nums): """ :type nums: List[int] :rtype: List[int] """ def mergeSort(start, end, nums): if end - start <= 1: return mid = start + (end -...
e58e9401d8429723764c02edf926adfbbd8758ca
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_drafts.py
6da1b4da4e3df04fbf81a9bba113d2c83e568862
[ "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
231
py
from xai.brain.wordbase.verbs._draft import _DRAFT #calss header class _DRAFTS(_DRAFT, ): def __init__(self,): _DRAFT.__init__(self) self.name = "DRAFTS" self.specie = 'verbs' self.basic = "draft" self.jsondata = {}
1920724bea68c7268d4dc99408f617f42c248858
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5636311922769920_1/Python/aelg/prob4.py
4fbd0b4d1fa1da615948253f8fc70a6d1a53b3c0
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
694
py
#!/usr/bin/python3 def solve(): inputList = list(map(int, input().split())) k = inputList[0] c = inputList[1] s = inputList[2] res = [] students = s originalTile = 0 while students > 0: studentPos = 0 for i in range(c-1, -1, -1): studentPos += originalTile*(...
74f545ddd8aead850b286517ff15de1cb279c2a1
cbda89443b351bb2047180dad4e300c13dc3df7f
/Crystals/Morpurgo_all_atoms_Polbinds_qsplit_fittedscreens/Jobs_chelpg/PDIF-CN2/PDIF-CN2_cation_neut_inner3_outer0/PDIF-CN2_cation_neut_inner3_outer0.py
0529c196b51dd6089ab4ee51b1366f451a48a8aa
[]
no_license
sheridanfew/pythonpolarisation
080f52979f98d26360a46412a10c8e3f51ee4549
178e2684e9a239a8e60af5f7b1eb414ac5f31e92
refs/heads/master
2021-07-10T01:07:40.978790
2021-03-11T16:56:37
2021-03-11T16:56:37
96,101,351
0
0
null
2017-07-03T13:37:06
2017-07-03T10:54:52
null
UTF-8
Python
false
false
7,012
py
import sys sys.path.append('../../../../../') from BasicElements import * from BasicElements.Register import GetRegister from BasicElements.MoleculeFactory import ReadMoleculeType from BasicElements.MoleculeFactory import GetMolecule from BasicElements.Crystal import * from Polarizability.GetDipoles import get_dipoles,...
ea5b9b937f47326657b9da399ad06bdf9c9d3f9f
857d2653df85eec7b740a782005da2872d532bff
/training/reco/k_means/k_means.py
d2dc9088e57ba424bc95239998544ce1abec4e40
[]
no_license
calzonelover/CMS_DC_ANOMALY
1621924dc66ec2a80a2aa3af3bb29762bb558073
5a02ab59ec52c462c37111f83e286149dd86754b
refs/heads/master
2020-05-31T15:12:50.074681
2019-08-22T15:05:42
2019-08-22T15:05:42
190,348,831
2
2
null
null
null
null
UTF-8
Python
false
false
6,406
py
import matplotlib.pyplot as plt import numpy as np import pandas as pd import os from sklearn import svm from sklearn.cluster import KMeans from sklearn.decomposition import PCA from sklearn.preprocessing import StandardScaler, normalize, MinMaxScaler # customize from data.prompt_reco.setting import REDUCED_FEATURES, ...
260ff632015d6f5932bddcb9cfb80d61bc74add3
1e9c9f2a9639db7cdb032aae69cb4d99aef1d3a5
/codingBat/python/warmup2/stringMatch.py
885e6c9cdd2dd38ba959c80188a62fe641e07e7d
[ "MIT" ]
permissive
sagarnikam123/learnNPractice
f0da3f8acf653e56c591353ab342765a6831698c
1b3b0cb2cff2f478006626a4c37a99102acbb628
refs/heads/master
2023-02-04T11:21:18.211654
2023-01-24T14:47:52
2023-01-24T14:47:52
61,184,927
2
1
MIT
2022-03-06T11:07:18
2016-06-15T06:57:19
Python
UTF-8
Python
false
false
1,024
py
####################################################################################################################### # # stringMatch # # Given 2 strings, a and b, return the number of the positions where they contain # the same length 2 substring. So "xxcaazz" and "xxbaaz" yields 3, since the "xx", "aa", # ...
2f9afaeeacf9eb5a5b1893e3e8db728e1cf38f06
12f83344cdfe561db39ad9106dbf263ccd919f7e
/Projects/miami_metro/debra/migrations/0084_auto__add_field_brands_icon_id.py
905f99d42b129e430c5245c9813ab6a94d8af89c
[]
no_license
TopWebGhost/Angular-Influencer
ebcd28f83a77a92d240c41f11d82927b98bcea9e
2f15c4ddd8bbb112c407d222ae48746b626c674f
refs/heads/master
2021-01-19T10:45:47.039673
2016-12-05T01:59:26
2016-12-05T01:59:26
82,214,998
1
0
null
null
null
null
UTF-8
Python
false
false
37,415
py
# encoding: 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 field 'Brands.icon_id' db.add_column('debra_brands', 'icon_id', self.gf('django.db.models.fields....
cd9b2621354b41dab2657e8f0bae14493858399f
6725ff7ad5cbcc1413654c7fbe4d9795a35e50b5
/L4_task3.py
9e2c5e6f7a3ba2cb1e763f102fa57d46d7e29e8d
[]
no_license
MaksimKulya/PythonCourse
59e5a2e67378bfdddf5bd96db8e25782489b7db1
40b5559e2fac76d3fb3221ba4b90478dd10f442c
refs/heads/main
2023-05-03T05:13:05.238092
2021-05-18T14:44:44
2021-05-18T14:44:44
321,064,262
0
0
null
2021-01-20T12:28:47
2020-12-13T12:52:01
Python
UTF-8
Python
false
false
414
py
# Для чисел в пределах от 20 до 240 найти числа, кратные 20 или 21. Необходимо решить задание в одну строку. # Подсказка: использовать функцию range() и генератор. import random as rnd a = [rnd.randint(20, 240) for i in range(100)] print(a) b = [n for n in a if n % 20 ==0 or n % 21 ==0] print(b)
6dd0be9d6b07dba30423d4ecfba393cefadaf205
5234bc430c83d616a8214d7f77c2c081543b6b26
/src/Python/1-100/96.UniqueBinarySearchTrees.py
6c59f9a19ecaa76aa1eae5a23d0e85ffde46d062
[ "Apache-2.0" ]
permissive
AveryHuo/PeefyLeetCode
3e749b962cadfdf10d7f7b1ed21c5fafc4342950
92156e4b48ba19e3f02e4286b9f733e9769a1dee
refs/heads/master
2022-04-26T06:01:18.547761
2020-04-25T09:55:46
2020-04-25T09:55:46
null
0
0
null
null
null
null
UTF-8
Python
false
false
349
py
class Solution: def numTrees(self, n: int) -> int: dp = [0] * (n + 1) dp[0] = 1 dp[1] = 1 for i in range(2, n + 1): for j in range(1, i + 1): dp[i] += dp[j - 1] * dp[i - j] return dp[n] if __name__ == "__main__": solution = Solution() pr...
53fe24223fbffd0f694c4f4c0faf15c15b2809c4
fdce456e2f0ea12f854e98583cfda95955b9a36b
/manageusers/apps.py
dca42b37dd05993510c3c0ba37e95721d15238d8
[]
no_license
atifasr/jobportal
e5fdc8058759311e8d4ca2c0291066ad86059fb6
3fe211598daa66f2a76c2b3d4d26d73459ac7457
refs/heads/master
2023-08-05T02:01:00.870360
2021-09-29T11:59:29
2021-09-29T11:59:29
388,807,519
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
from django.apps import AppConfig class ManageusersConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'manageusers' # def ready(self): # from .schedulers import scheduler # scheduler.start()
8c9447c3f292c1307c78143b0de03a14cccc97b9
12abbf73f6e0f88c263b50496aa3c9b769a0ba19
/venv/Lib/site-packages/nb_log/handlers.py
7d220fe28fa8528f7510ab6682839d4d72d007df
[]
no_license
yangtingting123456/API_Test_Framework
037f2d3171cecba39f845d646d8db629dfce2ba9
dd388491c038d635ccfe323032d86b17ea2a48e0
refs/heads/master
2023-02-23T00:21:10.321954
2021-01-15T09:33:30
2021-01-15T09:33:30
319,823,833
0
0
null
null
null
null
UTF-8
Python
false
false
35,740
py
# noinspection PyMissingOrEmptyDocstring import atexit import copy import sys import os import traceback import socket import datetime import json import time from collections import OrderedDict from queue import Queue, Empty # noinspection PyPackageRequirements from kafka import KafkaProducer from elasticsearch import...
fea6f964339fb23f6f9a008d7407e6133306cc04
3740de0d6e43ea140fc09ab314e4c492603ba185
/scripts/sources/S_EllipsoidTestWaitingTimesACDres.py
af9ab8366b01c94bbb1df7f27d3b20251e3c79dd
[ "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
4,056
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: light # format_version: '1.4' # jupytext_version: 1.1.4 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # # S_El...
255997393c11703c927617a467958a7455c0b86b
c85b91bfdd7eb2fa5a7d6c6a9b722c8548c83105
/vscode/extensions/ms-python.python-2020.3.69010/languageServer.0.5.31/Typeshed/third_party/2and3/Crypto/Hash/SHA256.pyi
0469b7cb2b4e995bbd9b60c74f5c7d1c887412a6
[ "MIT", "Apache-2.0" ]
permissive
ryangniadek/.dotfiles
ddf52cece49c33664b56f01b17d476cf0f1fafb1
be272baf6fb7d7cd4f4db1f6812b710196511ffe
refs/heads/master
2021-01-14T07:43:12.516127
2020-03-22T20:27:22
2020-03-22T20:27:22
242,632,623
0
0
MIT
2020-09-12T17:28:01
2020-02-24T02:50:06
Python
UTF-8
Python
false
false
399
pyi
from typing import Any, Optional from Crypto.Hash.hashalgo import HashAlgo class SHA256Hash(HashAlgo): oid = ... # type: Any digest_size = ... # type: int block_size = ... # type: int def __init__(self, data: Optional[Any] = ...) -> None: ... def new(self, data: Optional[Any] = ...): ......
47bfc9032bf7353361b1818c44b2797b13363154
04d8f0b5a291ec6c3470f4498dd64ab9c1845f96
/library/third-party/file_formats/pypdf2/pdf_file_merger/info.py
50f3b155bd7f0b74923a56b302593acd731e7e98
[]
no_license
volitilov/Python_learn
8c0f54d89e0ead964320d17eeddeacd5b704b717
f89e52655f83a9f1105689f0302ef5b0ee30a25c
refs/heads/master
2022-01-10T13:39:59.237716
2019-07-17T11:39:10
2019-07-17T11:39:10
70,601,503
3
2
null
null
null
null
UTF-8
Python
false
false
1,223
py
from PyPDF2.PdfFileMerger import * # Инициализирует объект PdfFileMerger. PdfFileMerger объединяет # несколько PDF-файлов в один PDF-файл. Он может конкатенировать, # нарезать, вставить или любую комбинацию из вышеперечисленного # ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: PdfFileMerger( stri...
f6c63ede371e0271643d28518bd43b3d85636c61
0547d1826e99eedb959a3463520d73985a3b844e
/Data Scientist with Python Track Github/22-Statistical Thinking in Python (Part 2)/05-Putting it all together a case study/08-Beak length to depth ratio.py
ee9d31d8f9a75fbdc075f31112ca552fb4842913
[]
no_license
abhaysinh/Data-Camp
18031f8fd4ee199c2eff54a408c52da7bdd7ec0f
782c712975e14e88da4f27505adf4e5f4b457cb1
refs/heads/master
2022-11-27T10:44:11.743038
2020-07-25T16:15:03
2020-07-25T16:15:03
282,444,344
4
1
null
null
null
null
UTF-8
Python
false
false
1,654
py
""" Beak length to depth ratio The linear regressions showed interesting information about the beak geometry. The slope was the same in 1975 and 2012, suggesting that for every millimeter gained in beak length, the birds gained about half a millimeter in depth in both years. However, if we are interested in the shape...
4de7ce33e34de4de06b6dfe1dfa17082a880d8c8
f0987e17aea6668158cd334c1fbacfe6286d3c77
/NITA/lib/jnpr/toby/services/cgnat.py
ef4120ad53cc1879e9dad7d03399915732161de7
[]
no_license
fengyun4623/file
00bf21f952ea3f95ffc9fe18448b244b26b7fadb
3966c63d48557b0b94303896eed7a767593a4832
refs/heads/master
2023-04-02T05:01:25.066052
2020-07-29T16:15:31
2020-07-29T16:15:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
110,053
py
# pylint: disable=undefined-variable # p-ylint: disable=invalid-name """Module contains methods for CGNAT""" __author__ = ['Sumanth Inabathini'] __contact__ = '[email protected]' __copyright__ = 'Juniper Networks Inc.' __date__ = '2017' import re from jnpr.toby.utils import iputils from jnpr.toby.services import u...
15d426a7e4643fabc70e15e94441389afefc2ce9
a6e4a6f0a73d24a6ba957277899adbd9b84bd594
/sdk/python/pulumi_azure_native/network/v20200701/get_azure_firewall.py
3e936ac33077dad9aa63947bf571cfffcc65267b
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
MisinformedDNA/pulumi-azure-native
9cbd75306e9c8f92abc25be3f73c113cb93865e9
de974fd984f7e98649951dbe80b4fc0603d03356
refs/heads/master
2023-03-24T22:02:03.842935
2021-03-08T21:16:19
2021-03-08T21:16:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,805
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
daface475f5b0ebaca1216489715e0ecde64d1d3
a9375ae0cecba2f70e01fe9455af7173dab6a3da
/scheduled_tasks/reddit/stocks/AutoDD.py
96dd32db152c51dc9f3397d42fd14a80b105b866
[ "MIT" ]
permissive
kannavue/Stocksera
ca3c2680371fb106e7850ed7a1b956f64e56c8a0
80fbbfb7d38cf8bf09367d67bda85bdc0c7801d4
refs/heads/master
2023-09-04T01:59:27.353642
2021-11-04T13:13:09
2021-11-04T13:13:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
18,029
py
import sys import os import re import locale import praw from collections import Counter from datetime import datetime, timedelta import matplotlib.pyplot as plt import yfinance.ticker as yf from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer import sqlite3 from scheduled_tasks.reddit.stocks.fast_yaho...
e1b06b52231c9bcd3a40ec3a68471706dc7781ed
b471470126befc48d61bf3e17c8231b33e8d3e33
/1117-mid-term-6.py
ff3fe16f7e1178ab27682245ea8b118fe673391a
[]
no_license
Xi-Plus/KUAS-DIIWS-Code
5ccd5ff512b3aad5fcf9ca37c7ca095e796aca9d
60e0e6c8c80847b5270d4d0f45028becabd08230
refs/heads/master
2021-09-03T21:48:31.755611
2018-01-12T08:37:51
2018-01-12T08:37:51
105,234,371
0
0
null
null
null
null
UTF-8
Python
false
false
750
py
from urllib.request import urlopen from bs4 import BeautifulSoup url = "http://www.books.com.tw/activity/gold66_day/?loc=P_021_1_more_001" f = urlopen(url) html = f.read() obj = BeautifulSoup(html, "html.parser") days = [] for i in obj.findAll("div", {"class":"day"}): days.append(i.get_text()) names = [] for i in ob...
bc00dc511cc641182e6e0f77d4976d1b1b3a07ca
9471259e3cf5d6772e553dd847d23a4fef7d7fe7
/customer_phonecall_feedback/models/__init__.py
926e3b5eea574f2f44b776d5ef1e68f8db13407a
[]
no_license
TranPhucDang/translate_module
16e0bae287f83d174f73d2271c4a343f012e0b5e
9135913921240594babe51362fd5f5fd37803d9f
refs/heads/master
2020-08-03T13:36:58.899783
2019-12-31T15:39:28
2019-12-31T15:39:28
211,767,714
0
0
null
null
null
null
UTF-8
Python
false
false
1,028
py
# -*- coding: utf-8 -*- ################################################################################# # # Odoo, Open Source Management Solution # Copyright (C) 2017 Ascetic Business Solution <www.asceticbs.com> # # This program is free software: you can redistribute it and/or modify # it under the terms...
72fd0fbf13da481b25826bed1e553261679655c5
c340835e4444c664fc2b261238e3738cf5bf7196
/combination_sum.py
58093ee3ed445d253ce8b136bea5e6b489626c29
[]
no_license
z-o-e/LeetCode_OJ_Python
49f2a7378eb98f707c97d7757cc19ef19622db42
ad7f5152fe404bdd4e91710d9a719f392bec7a96
refs/heads/master
2021-03-12T22:39:44.898502
2014-10-16T05:30:25
2014-10-16T05:30:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
670
py
class Solution: # @param candidates, a list of integers # @param target, integer # @return a list of lists of integers def combinationSum(self, candidates, target): candidates = sorted(candidates) self.res = [] self.dfs(candidates, [], target) return self.res ...
9b329bf9c03eb7fd5e50cebfbbc7e2fca726f262
fbc0d5c081dbfead483a1e1e226a380446bcd56e
/TDT4117 - Informasjonsgjenfinning/exercises/2/subtask2.2.py
88a2dba3adc75dd1a6e69012d2e012ad9648eba4
[]
no_license
blauks/ntnu-2
58eec17a8f6db7424a6cb44d74e029b68256320a
38fa0ddfaa726408f087d1792fd0e00810f9243c
refs/heads/master
2020-08-16T11:01:10.946232
2019-08-08T11:28:48
2019-08-08T11:28:48
215,494,235
0
1
null
2019-10-16T08:15:48
2019-10-16T08:15:48
null
UTF-8
Python
false
false
242
py
#!/usr/bin/python3 d1 = 'an apple a day keeps the doctor away.' d2 = 'the best doctor is the one you run to and can’t find.' d3 = 'one rotten apple spoils the whole barrel.' q1 = 'doctor' q2 = 'apple orange' q3 = 'doctor apple' λ = 0.5
96cd5e74289dadeea430e3920b049093288eb0a1
fcb628087b05031f2ffec5d6719714d210a9ebd2
/sukonbu/json_schema_parser.py
53b2420adf760f6b16937f06af94f854c676e54e
[ "MIT" ]
permissive
ousttrue/sukonbu
165b4aa0dcbb416367fa51bd2cfb0724dcaa475f
aca6121c3afa1fe404e6208553070895829df780
refs/heads/master
2023-08-29T17:30:28.099703
2022-03-15T17:21:01
2022-03-15T17:21:01
224,555,772
1
0
null
null
null
null
UTF-8
Python
false
false
6,741
py
from typing import Optional, NamedTuple, List import json import pathlib from .json_schema import JsonSchema class JsonSchemaItem(NamedTuple): key: str item: JsonSchema parent: Optional[JsonSchema] = None class JsonSchemaParser: def __init__(self, dir: Optional[pathlib.Path] = None): ...
df840439989d5650df6e6a7988fa5b59caa9850d
88994e2e840a70ec702cee09e1a13813aa6f800c
/tests/meta/upload/scout/test_scout_config_builder.py
811298718aac85b422b13148020a410369823810
[]
no_license
Clinical-Genomics/cg
1e9eb0852f742d555a48e8696914ebe177f7d436
d2ec6d25b577dd6938bbf92317aeff1d6b3c5b08
refs/heads/master
2023-09-01T02:04:04.229120
2023-08-31T13:50:31
2023-08-31T13:50:31
82,567,026
19
8
null
2023-09-14T15:24:13
2017-02-20T14:29:43
Python
UTF-8
Python
false
false
7,857
py
"""Tests for the file handlers.""" import logging from housekeeper.store.models import Version from cg.meta.upload.scout.balsamic_config_builder import BalsamicConfigBuilder from cg.meta.upload.scout.hk_tags import CaseTags from cg.meta.upload.scout.mip_config_builder import MipConfigBuilder from cg.meta.upload.scout...
1461437e9ebeb4c81603608e67f1504f0e628c17
ad5b72656f0da99443003984c1e646cb6b3e67ea
/tools/mo/openvino/tools/mo/back/offline_transformations.py
d4615aeb524e518a1b292b6c45fd267a8d1ac306
[ "Apache-2.0" ]
permissive
novakale/openvino
9dfc89f2bc7ee0c9b4d899b4086d262f9205c4ae
544c1acd2be086c35e9f84a7b4359439515a0892
refs/heads/master
2022-12-31T08:04:48.124183
2022-12-16T09:05:34
2022-12-16T09:05:34
569,671,261
0
0
null
null
null
null
UTF-8
Python
false
false
3,184
py
# Copyright (C) 2018-2022 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import argparse from typing import List from openvino.tools.mo.front.extractor import create_params_with_custom_types from openvino.tools.mo.utils.cli_parser import parse_transform from openvino.tools.mo.utils.error import Error from op...
359cf7c3dac736613c7ebff4364f35e0721ed001
a1bffcd8854e1843e56bb812d4d83b3161a5211e
/tests/unit/modules/network/fortios/test_fortios_firewall_address6_template.py
cad670fda6582598f43a5c2e43e0574e5e04c14d
[]
no_license
goneri/ansible.community
1a71f9d98c164b77f8ed2ed7f558b4963005ff8f
f26f612dd0a3154050d90b51a75502018c95f6e4
refs/heads/master
2020-12-29T07:47:35.353515
2020-01-22T17:43:18
2020-01-22T17:43:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,805
py
# Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the...
c2fb539bc071787bca42c1d5bdc7550f71769d0f
7def22f9e61a125a8a02d85018fdc3fa34f4d060
/superlists/urls.py
7ba2fb600869500c7397a9c0af482c74b3afb792
[]
no_license
uglyboxer/superlists
188e7c659f97e77ebddeba3b07dc1b5bc03c928a
e0cf2e828991f04c4050170c13f9c4b6cc2be0e8
refs/heads/master
2021-01-10T02:24:48.031207
2015-11-25T00:24:23
2015-11-25T00:24:23
46,455,052
0
0
null
null
null
null
UTF-8
Python
false
false
975
py
"""superlists URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-...
0a9e7a6f204293778dc37164aff561a6817fcb7d
bbae6df729e03314064301f791af50d7f6ebcaa8
/density_to_files.py
ced429cd23619ed1594d42c890cfbfae85494a64
[ "BSD-2-Clause" ]
permissive
mbrothers18/lmatools
b240a4890ee7be23aace4b43e4e5e3ddf99470ed
084137e265c8520322d5bbbd067ffab3e95801f3
refs/heads/master
2021-01-18T06:51:33.945343
2016-03-07T18:23:07
2016-03-07T18:23:07
50,527,487
0
0
null
2016-01-27T18:12:27
2016-01-27T18:12:26
null
UTF-8
Python
false
false
13,707
py
import glob import gc import numpy as np from density_tools import unique_vectors # -------------------------------------------------------------------------- # ----- This section could be replaced with stormdrain.pipeline imports ---- # -------------------------------------------------------------------------- de...
8384fef2b16fdeea0adf1819f3c0122330a5d974
e828c22a75dfaa7f3643352d4f1b08559a12edca
/ScrapyProject/TenxunSpider/TenxunSpider/pipelines.py
8c9505521ec8a1ee4c05f3cdfcfa153491efb9f5
[]
no_license
csgvsjay1000/spider
9c545fac9c63f89e7503a7c045ce2b83df044e49
10f584440d23b0b17a3486cde6cbc39c9d13692e
refs/heads/master
2022-02-16T20:29:53.384245
2019-08-12T03:06:37
2019-08-12T03:06:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
551
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,codecs class TenxunspiderPipeline(object): def __init__(self): self.file=codecs.open('duty_file.json','...
4093735ca3af4a42d6bb8b85700aa046e5c1677c
52243c4a05a296e7c042663b5942faa47eb66aee
/common_nlp/classifier_legal_phrases_regex.py
e2b84d6ec884fb5abb3de73d4361f5b499d1dbe2
[ "MIT" ]
permissive
joaoppadua/Pesquisas
fbe0311b59340c041732d6d1f7f4862fa6c53198
808d8b0ef9e432e05a4f284ce18778ed8b3acd96
refs/heads/master
2023-07-16T02:50:30.846205
2021-09-03T13:34:54
2021-09-03T13:34:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,048
py
import re from regex_classifier_legal_phrases import palavras_interesse def break_sentences(text, nlp): # return re.split(r'\w\.\s',text) text = re.sub(r"\s+", " ", text) text = re.sub(r"art\.", "art ", text) text = re.sub(r"fls?\.", "fls ", text) text = re.sub(r"inc\.", "inc ", text) doc = nl...
8805a885442eb234a6deec918fabf62a57b7f574
2d1649a7a00d49b72ed7e53afa4abb3c9281ce03
/.history/ParticleFilter/go_to_goal_20190421184527.py
f8de310580a16f067b5c6a35f5dd7e7b18b58cac
[]
no_license
joshzhang5/CS3630Lab6
9547dc6c89198e9bb4aebd8359d4feb974082d20
69e6df12829e18a211ae850236d74b4d728046ef
refs/heads/master
2020-05-15T13:59:51.906195
2019-04-22T18:21:42
2019-04-22T18:21:42
182,317,674
0
0
null
null
null
null
UTF-8
Python
false
false
11,731
py
# Jiaxi Zhang # George McAlear try: import matplotlib matplotlib.use('TkAgg') except ImportError: pass from skimage import color import numpy as np from numpy.linalg import inv import threading import time import sys import asyncio from PIL import Image from markers import detect, annotator from grid i...
0624acb274bdaacc13d24078b701c3efd0584ce4
43ab8c000781c073e6723b3e93013e5f509b84ea
/attractors/3D/Pickover.py
b1953fcdf4020eec7d0559a9c3155b2e2c0695d3
[ "MIT" ]
permissive
tisnik/fractals
e6e25dbbf5675be5a78f15a2504b25f7de504cf6
2e852489cb473394e4dd9103d12d717fed53a51d
refs/heads/master
2023-04-29T03:17:28.897352
2023-04-17T14:01:59
2023-04-17T14:01:59
202,321,272
3
1
null
null
null
null
UTF-8
Python
false
false
3,098
py
"""Výpočet a vykreslení Pickoverova podivného atraktoru v 3D.""" # MIT License # # Copyright (c) 2020 Pavel Tišnovský # # 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, i...
d6612826db3167305287e00458171da010bc260d
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/3XtrKPMbxAf86QjjS_10.py
e7446c6b7139fcd63536aa540e62ca83c04cc65e
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
81
py
def same_case(txt): return True if txt.isupper() or txt.islower() else False
c69b864f21b100901da859214899a8f7346b41a7
1796043fc26c958b8fc45d9c058e382473c4f3af
/Fabio 01 Parte 02/f1_p2_q2_metro_km.py
9fa23256bbcf9cb486f2779b637e721651f19242
[]
no_license
Lucakurotaki/ifpi-ads-algoritmos2020
a69adec27dbb10aceab1bc7038a0b56a760f99d1
34d5fedd5825a85404cf9340e42be618981679c1
refs/heads/master
2022-03-22T04:44:14.211359
2022-02-19T18:48:36
2022-02-19T18:48:36
246,585,463
0
0
null
null
null
null
UTF-8
Python
false
false
175
py
#Entrada m = int(input("Digite a medida em metro: ")) #Processamento km = m/1000 #Saída print("O equivalente de {} m em kilômetros é: {} km.".format(m,km))
48d254577be2dfe57ef8a4d19ba7c41709aced4e
007ae03cfe5abf41a0ad864eade451141c267cca
/auto-docs/executables/python/legend_style.py
6f09c9c36aef49e5259e1ae46fe2bd16241aee10
[]
no_license
VukDukic/documentation
ca96eb1994eeb532fe60c542960b017354bcede1
8e5aefdc38788956cfe31d8fe8b4b77cdf790e57
refs/heads/master
2021-01-18T09:02:27.034396
2015-01-20T23:46:58
2015-01-20T23:46:58
30,007,728
2
0
null
null
null
null
UTF-8
Python
false
false
825
py
# Learn about API authentication here: {{BASE_URL}}/python/getting-started # Find your api_key here: {{BASE_URL}}/settings/api import plotly.plotly as py from plotly.graph_objs import * py.sign_in('TestBot', 'r1neazxo9w') trace1 = Scatter( x=[0, 1, 2, 3, 4, 5, 6, 7, 8], y=[0, 3, 6, 4, 5, 2, 3, 5, 4] ) trace2 ...
7041bb1082d5baec910b892c4c325173285c5c89
572c828b5ef8c17f48cceada08f7a373c2d31e91
/DES_1_2020/quizG.py
87ebfa5c0eceb5a8ccb76bec213b13d12a69e9da
[ "MIT" ]
permissive
refeed/PAlgoritmaTRPLA
4262387011a4942e137674f92c5606eacfec4c1e
e0c79c1d57bee0869e2344651718e8cf053c035f
refs/heads/master
2023-02-03T19:19:43.210447
2020-12-17T03:46:13
2020-12-17T03:46:13
297,596,722
0
0
null
null
null
null
UTF-8
Python
false
false
2,430
py
''' DESKRIPSI SOAL Kali ini Adi belajar baris-berbaris. Ada N peserta baris-berbaris yang ikut. Seperti biasa, peserta harus berbaris sesuai urutan tinggi badan (yang paling tinggi di belakang). Setelah berbaris dengan urut, peserta akan diberi no urut. No 1 untuk peserta yang paling pendek dan no N untuk peserta pali...
e882be5c62481dfe01e05dc2076dc494788b242a
577ab02be20b264023c86af0b1f7598611b1d3bc
/mysite/urls.py
98af82e60031a42f6647e718f392a3be3cbfc95f
[]
no_license
yoongyo/festigo
323316d79796e4fc5a6ad42f26c0c8f181100e1e
73c3f6c619acb70d8031efb62a90fb8d60acbc66
refs/heads/master
2020-05-18T09:49:35.673560
2019-04-30T21:56:49
2019-04-30T21:56:49
184,336,479
0
0
null
null
null
null
UTF-8
Python
false
false
1,252
py
from django.contrib import admin from django.urls import re_path, include, path from . import views from django.conf import settings from django.conf.urls.static import static from django.contrib.staticfiles.urls import staticfiles_urlpatterns urlpatterns = [ re_path(r'^$', views.main, name='main'), re_path(r...
6ad8c2e578a0cb6ab15070cb8096f5f080fdf4e8
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03071/s708387820.py
520d43f8cf4e6541711b3aeb0e5432df8395660d
[]
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
99
py
c,d=map(int,input().split()) a=max(c,d) b=min(c,d) if a-1>=b: print(a+a-1) else: print(a+b)
34cd5538526fee07eb981f2d6937354f1f70c30c
967a5ec427a3332c289659fb3a529a0a0b353dc6
/sbc_ngs/__init__.py
78d9b9c0c571e83ad0d46d233c43cacd3ebf84de
[ "MIT" ]
permissive
neilswainston/SequenceGenie
7807cd29dd3504ee33d98b704a9f57e8cf657997
65fce1df487afd2de32e9d3ebc487874e71436bc
refs/heads/master
2020-05-16T11:36:32.206010
2020-03-09T12:15:45
2020-03-09T12:15:45
183,021,243
5
3
null
null
null
null
UTF-8
Python
false
false
96
py
''' sbc-ngs (c) University of Manchester 2019 All rights reserved. @author: neilswainston '''
e6977d6dd44bf82a13a5f184e4f035a11668c00b
40c578693ed88b52db0b5d45b581d72507596b76
/03-Sentiment/CMP462 HW03 Data/python/NaiveBayes.py
64a8d809395e59f3f32afa240d5ca1963db89188
[]
no_license
Anwarvic/Dan-Jurafsky--Chris-Manning--NLP
6eafaee56363007f15f15ca09e4441330b055e18
64c4870f9d89952f252eee9a238397220bb43061
refs/heads/master
2023-05-10T19:53:19.507959
2023-05-02T01:07:06
2023-05-02T01:07:06
114,249,702
44
25
null
null
null
null
UTF-8
Python
false
false
9,290
py
# NLP Programming Assignment #3 # NaiveBayes # 2012 # # The area for you to implement is marked with TODO! # Generally, you should not need to touch things *not* marked TODO # # Remember that when you submit your code, it is not run from the command line # and your main() will *not* be run. To be safest, restrict your...
00b1cbab25918390731f619547ab4a86739d7d02
b212ec9d705fb77cac102dceb12eb668099fd1ae
/oop/inheritance_exercise/zoo/project/mammal.py
9c5f6fb59f2fe47998752247f7a8b1a440eca991
[]
no_license
xpucko/Software-University-SoftUni
20ef91a0be91a8a09a56d9fdc15888f91409de2f
a1fc1781424f025954948299be7f75d317e32dc1
refs/heads/master
2023-02-04T11:58:33.068431
2020-12-24T00:39:11
2020-12-24T00:39:11
280,227,310
2
2
null
null
null
null
UTF-8
Python
false
false
118
py
from project.animal import Animal class Mammal(Animal): def __init__(self, name): super().__init__(name)
5dbfdb24f29942128a5169a17742ce17ac9fd1e3
89de54a5ee1628bceb08d804407e4d43434fa2e0
/backend/home/migrations/0002_load_initial_data.py
83735bcf6368729c0f275f5250287e0dd41ff7e4
[]
no_license
crowdbotics-apps/tkabs-podcast-20287
430f4896c2b5ad2ec2c65ad145151569304469d6
a3980e01490f67f3bcd2af18e970ba949780c3bb
refs/heads/master
2022-12-13T02:10:38.199166
2020-09-15T15:25:22
2020-09-15T15:25:22
295,769,623
0
0
null
null
null
null
UTF-8
Python
false
false
1,312
py
from django.db import migrations def create_customtext(apps, schema_editor): CustomText = apps.get_model("home", "CustomText") customtext_title = "TKABS - Podcast" CustomText.objects.create(title=customtext_title) def create_homepage(apps, schema_editor): HomePage = apps.get_model("home", "HomePage...
b366a560cc962b8a35af64cdeb311111005dbad4
4dade4f29881e99d8602144744e09ed870bd1034
/Python/path_algorithms/greedy_best_first.py
d4296e908f40cc690cd6ffa05663905c49b40e48
[]
no_license
alexbaryzhikov/codebase-archive
9795347c19a82c098983c6d0fe4959c3162ca868
c78c189002a26296a552f30078578cc0cf72e426
refs/heads/master
2023-02-19T21:54:21.310865
2021-01-11T15:47:50
2021-01-11T15:47:50
106,846,461
1
0
null
null
null
null
UTF-8
Python
false
false
5,406
py
from tkinter import * import numpy as np from queue import PriorityQueue G = {} MOVE_COST = 10 MOVE_COST_DIAG = 14 class MyCanvas(Canvas): def __init__(self, master, shape): self.cwidth = 50 self.shape = shape Canvas.__init__(self, master, width=shape[0]*self.cwidth, height=sha...
dbea1e2f703f52422cd2ff921f3c74b39d260485
67dc60b68e6bba3dd2738af2cf83ff7b528069e0
/krcal/core/map_functions.py
d869ae973cb0a80cff4060797fb4288f67cfdc02
[]
no_license
jmbenlloch/KrCalib
4693e5db288ae917f0c71328d7fc68ee99bfa225
fe81e68cc6eb38474d739761448d272f88fb3cd9
refs/heads/master
2020-04-05T07:43:59.798504
2018-11-08T17:33:40
2018-11-08T17:33:40
156,686,578
0
0
null
2018-11-08T10:02:14
2018-11-08T10:02:14
null
UTF-8
Python
false
false
12,278
py
"""Module map_functions. This module includes functions to manipulate maps. Notes ----- KrCalib code depends on the IC library. Public functions are documented using numpy style convention Documentation ------------- Insert documentation https """ import matplotlib.pyplot as plt import numpy as np impor...
150a4b4cea6b36d6f4771da3f007d667e73a0ecf
dd3a28907c440d18f7c7c13591ad7c3587acdfbf
/juriscraper/pacer/docket_history_report.py
e26eb249f4192d6aeb13f496be7f6b9551a47b0c
[ "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
swipswaps/juriscraper
f57aacf731c9c7682100db644f7d22be175890d8
fec54f7fc53096db16345b35c73aca9a52aaecb2
refs/heads/master
2022-02-25T09:42:14.391641
2019-07-24T00:30:27
2019-07-24T00:30:27
198,718,908
0
0
NOASSERTION
2022-02-17T22:50:36
2019-07-24T22:42:51
HTML
UTF-8
Python
false
false
10,009
py
# coding=utf-8 import re from .docket_report import DocketReport from .utils import clean_pacer_object, get_nonce_from_form, \ get_pacer_doc_id_from_doc1_url, get_pacer_seq_no_from_doc1_anchor from ..lib.judge_parsers import normalize_judge_string from ..lib.log_tools import make_default_logger from ..lib.string_u...
046e48003c5bea511c67085711ae1a3269a8078e
c6fa53212eb03017f9e72fad36dbf705b27cc797
/SimG4CMS/Calo/test/python/runPhase0_cfg.py
aa9513f0a903b7fd6a2c67f3f7d9056b01e5ae00
[]
no_license
gem-sw/cmssw
a31fc4ef2233b2157e1e7cbe9a0d9e6c2795b608
5893ef29c12b2718b3c1385e821170f91afb5446
refs/heads/CMSSW_6_2_X_SLHC
2022-04-29T04:43:51.786496
2015-12-16T16:09:31
2015-12-16T16:09:31
12,892,177
2
4
null
2018-11-22T13:40:31
2013-09-17T10:10:26
C++
UTF-8
Python
false
false
3,839
py
import FWCore.ParameterSet.Config as cms process = cms.Process("PROD") process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi") process.load("Geometry.HcalCommonData.testPhase0GeometryXML_cfi") process.load("Geometry.TrackerNumberingBuilder.trackerNumberin...
ce3a72884799fcfbb6b12ca458cc2c63fc7ba3c0
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03556/s017006854.py
cf4f61bfaa4d7ae384a0da06d7afd45991633e75
[]
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
110
py
import numpy as np for i in range(int(input()), 0, -1): if np.sqrt(i) == int(np.sqrt(i)): print(i) exit()
8fa09a09949d2e27f5072dec8771473a7d3045b5
5095200e9ca55cd3a37af34ed44448c02e2a1bb5
/modules/image/text_to_image/disco_diffusion_clip_rn50/resize_right/resize_right.py
4f6cb94a8ee1bed552a40083c83b3bf1d0f1eb87
[ "Apache-2.0" ]
permissive
PaddlePaddle/PaddleHub
8712603ef486c45e83eb0bc5725b0b3ed3ddbbde
b402610a6f0b382a978e82473b541ea1fc6cf09a
refs/heads/develop
2023-07-24T06:03:13.172978
2023-03-28T11:49:55
2023-03-28T11:49:55
162,672,577
12,914
2,239
Apache-2.0
2023-07-06T21:38:19
2018-12-21T06:00:48
Python
UTF-8
Python
false
false
18,318
py
import warnings from fractions import Fraction from math import ceil from typing import Tuple import disco_diffusion_clip_rn50.resize_right.interp_methods as interp_methods class NoneClass: pass try: import paddle from paddle import nn nnModuleWrapped = nn.Layer except ImportError: warnings.war...
08a025d81f80adffff746115fa919a21066a3bdd
a0fb29f99a852089193e4cc9a11e7263dc3f8b5f
/mayan/apps/documents/serializers/document_file_serializers.py
e8d6fe80d51c51303bbc2cb48ba61d4ae2e18e07
[ "Apache-2.0" ]
permissive
ikang9712/Mayan-EDMS
0e22a944d63657cea59c78023b604a01a622b52a
d6e57e27a89805329fe0c5582caa8e17882d94e6
refs/heads/master
2023-07-28T19:41:55.269513
2021-09-07T14:16:14
2021-09-07T14:16:14
402,884,683
1
0
NOASSERTION
2021-09-03T20:00:09
2021-09-03T20:00:09
null
UTF-8
Python
false
false
4,403
py
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers from mayan.apps.rest_api.relations import MultiKwargHyperlinkedIdentityField from mayan.apps.rest_api.serializer_mixins import CreateOnlyFieldSerializerMixin from ..literals import DOCUMENT_FILE_ACTION_PAGE_CHOICES from .....
8348c1ef6bf74078986bbe932cf0607094123add
f7f58aa4ea9ec78b20532971ddebe1e3d985dc23
/practica11/demo/apps/home/migrations/0001_initial.py
8e2f4d3cff30b21377b2d4c6bd257cf6e022d8e4
[]
no_license
guille1194/Django-Practices
10b9ff4817d41cb086e198c07bb82aee201fb049
738cbfdd4a12089d93cd68a0cde8653c490e7fd9
refs/heads/master
2021-03-08T19:30:11.229921
2016-05-23T05:38:53
2016-05-23T05:38:53
59,388,217
0
0
null
null
null
null
UTF-8
Python
false
false
4,806
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations ...
35c3ec42b0bed2b22113637433c0ccd79369c7e1
b08b5932c92824b592ac15e73fdffc79a7da18f3
/cauldron/cli/sync/comm.py
c66d111478c4100ba8854e7e5bc701845c5a0ee9
[ "MIT" ]
permissive
mlund01/cauldron
1de7426484d429703382c068c9704929e6c25bad
9a51cad2e5d528727151e9b60fd5be6a37b70273
refs/heads/master
2021-07-10T20:35:14.376399
2017-09-30T13:53:31
2017-09-30T13:53:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,019
py
import requests from requests import Response as HttpResponse from cauldron import environ def assemble_url( endpoint: str, remote_connection: 'environ.RemoteConnection' = None ) -> str: """ Assembles a fully-resolved remote connection URL from the given endpoint and remote_connection stru...
2f2580af3e6b347cac1c59f041da72e745bea421
8fe440deb4eb66d2fcb222a7c43680dc516394c1
/src/api/bkuser_core/categories/utils.py
ce77a59d4005ae077ec7e093e24c60a0a708802c
[ "MIT" ]
permissive
robert871126/bk-user
780e163db76a8a997ed94a1a83389fa4f81ad6a4
8c633e0a3821beb839ed120c4514c5733e675862
refs/heads/master
2023-08-20T11:05:46.317044
2021-10-22T08:44:06
2021-10-22T08:44:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,313
py
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-用户管理(Bk-User) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the Lic...
318d389b6772abd1e5773d73bf64ff401cfbfb8d
28f088b5356e66780c4bad204564bff92f910f02
/src/python/pants/backend/docker/subsystems/dockerfile_parser_test.py
533f9646fc8c9d82356bf8538864bf6be0332c24
[ "Apache-2.0" ]
permissive
wonlay/pants
57dcd99f82cdb2e37fcb7c563ec2bccf797ee7b7
53c66503b6898e83c9c9596e56cde5ad9ed6a0d3
refs/heads/master
2023-03-06T03:23:08.602817
2022-05-05T23:41:32
2022-05-05T23:41:32
24,695,709
0
0
Apache-2.0
2023-03-01T11:59:58
2014-10-01T21:15:29
Python
UTF-8
Python
false
false
6,330
py
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations from textwrap import dedent import pytest from pants.backend.docker.subsystems.dockerfile_parser import DockerfileInfo, DockerfileInfoRequest from pant...
e446b4b4c3699733ad5922d435466930f6cfb35b
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02573/s534378621.py
53efd867886d93f3b9f58471c95fd08487dbc066
[]
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
976
py
# import sys # input = sys.stdin.readline() n,m = map(int, input().split()) ab = [] for i in range(m): a,b = map(int, input().split()) ab.append([a,b]) class UnionFind: def __init__(self,N): self.parent = [i for i in range(N)] self._size = [1] * N self.count = 0 def root(self,a): if self.parent...
2fe6904da2931f0c0af9091b946ef4de9424f574
377ec156e459f70ad32e625de2dde2672736dd06
/Exercises/CorePythonExercises/ForMathModel.py
527020f502bff6dbe72d50c9e9bb9988e7b05e69
[]
no_license
tsonglew/learn-python
b657cc34d3e27993ec0dcce152796bea43224d4f
edbf0b5d24bf0e2d9ad7aa5811c7d3aa0a66b57c
refs/heads/master
2021-06-13T13:46:35.199562
2017-04-14T16:57:38
2017-04-14T16:57:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,273
py
# -*- coding: utf-8 -*- """ 例1 混合泳接力队的选拔 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5名候选人的百米成绩 甲 乙 丙 丁 戊 蝶泳 1'06"8 57"2 1'18" 1'10" 1'07"4 仰泳 1'15"6 1'06" 1'07"8 1'14"2 1'11" 蛙泳 1'27" 1'06"4 1'24"6 1'09"6 1'23"8 自由泳 5...
eed6251d219f84cbb1bbb2049424245e68263414
612325535126eaddebc230d8c27af095c8e5cc2f
/src/base/android/linker/DEPS
b38742d81718aa1491256df59b9fed46f23acb58
[ "BSD-3-Clause" ]
permissive
TrellixVulnTeam/proto-quic_1V94
1a3a03ac7a08a494b3d4e9857b24bb8f2c2cd673
feee14d96ee95313f236e0f0e3ff7719246c84f7
refs/heads/master
2023-04-01T14:36:53.888576
2019-10-17T02:23:04
2019-10-17T02:23:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
86
include_rules = [ # This code cannot depend on anything from base/ "-base", ]
1f8ebfb96e2da682a5d5d4c9ea89ca77a91743ec
9d5c2a7c05602d478fe0981f910dbf0b7bb2abf0
/devel/lib/python2.7/dist-packages/eband_local_planner/cfg/EBandPlannerConfig.py
56a3c5c1177f4d9ff58882f58bc5e547efeaa7c1
[]
no_license
baidu31/catkin_wp
f440fcbf70cefe43e735bcc322fd3f6cb849aa54
5cf0f5e3d4c1346835bb56f7903798c7c7f242d9
refs/heads/master
2021-09-09T23:59:53.030955
2018-03-20T08:59:12
2018-03-20T08:59:12
125,989,066
1
0
null
null
null
null
UTF-8
Python
false
false
14,344
py
## ********************************************************* ## ## File autogenerated for the eband_local_planner package ## by the dynamic_reconfigure package. ## Please do not edit. ## ## ********************************************************/ from dynamic_reconfigure.encoding import extract_params inf = float...
0c3da8caa97d18e39b6ed16eb0ebda577c7fd86d
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03779/s602875516.py
150fe00d7563cd71c275ea0eeaaf1a0809dbd342
[]
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
119
py
x=int(input()) t=0 jump=0 for i in range(1,10**9): t+=1 jump+=i if jump>=x: print(t) exit()
fc07e28592592465f34667c2510771d8580a76b1
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_167/ch19_2019_08_30_17_33_49_991320.py
255123fd942fa40a66a7196baefba809573f081f
[]
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
142
py
import math g=9.8 def calcula_distancia_do_projetil (v,θ,y0): d==(v**2/2*g)*1+(1 +2*g*y0/(v)**2*(math.sin(θ)**2))**1/2 return d
8ca3f112dba2ddf412dc8ed04db02bafdb9be374
78b42a602bdabbf28321b267714f0b29e89a669e
/3-2.队列.py
1d5c1807ba1b3d50d86169ad3decc5bb6aaa2c1c
[]
no_license
michelleweii/DataStructure-Algorithms
3c95240b8ed48237f23ff97754d6cc15cadc94dd
84f5d6e2811f5e6c4578a5e0d381a86cbc414ce9
refs/heads/master
2020-03-29T13:07:06.910799
2018-11-29T12:57:57
2018-11-29T12:57:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,858
py
# 取元素的端叫做队头,添加元素的端叫做队尾 class Queue(object): """队列""" def __init__(self): self.__list = [] def enqueue(self,item): """往队列中添加一个item元素""" self.__list.append(item) def dequeue(self): """从队列头部删除一个元素""" return self.__list.pop(0) # 先进先出 def is_empty(self)...
44803dedada3fec966306568b761e601637bccc8
2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02
/PyTorch/contrib/cv/detection/NasFPN/mmdet/models/detectors/cascade_rcnn.py
47cc7cef984123804c4f99900d496807cde3c0e6
[ "GPL-1.0-or-later", "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
Ascend/ModelZoo-PyTorch
4c89414b9e2582cef9926d4670108a090c839d2d
92acc188d3a0f634de58463b6676e70df83ef808
refs/heads/master
2023-07-19T12:40:00.512853
2023-07-17T02:48:18
2023-07-17T02:48:18
483,502,469
23
6
Apache-2.0
2022-10-15T09:29:12
2022-04-20T04:11:18
Python
UTF-8
Python
false
false
1,288
py
from ..builder import DETECTORS from .two_stage import TwoStageDetector @DETECTORS.register_module() class CascadeRCNN(TwoStageDetector): r"""Implementation of `Cascade R-CNN: Delving into High Quality Object Detection <https://arxiv.org/abs/1906.09756>`_""" def __init__(self, backbone, ...
6ff102d1cea23a24786b8d1335ce9d535b54fdb3
045cb1a5638c3575296f83471758dc09a8065725
/addons/base_gengo/models/res_company.py
82bdf8e87666085dc1a354e8cba4071dc6357e27
[]
no_license
marionumza/saas
7236842b0db98d1a0d0c3c88df32d268509629cb
148dd95d991a348ebbaff9396759a7dd1fe6e101
refs/heads/main
2023-03-27T14:08:57.121601
2021-03-20T07:59:08
2021-03-20T07:59:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
920
py
# -*- coding: utf-8 -*- # Part of Harpiya. See LICENSE file for full copyright and licensing details. from harpiya import fields, models class res_company(models.Model): _inherit = "res.company" gengo_private_key = fields.Char(string="Gengo Private Key", copy=False, groups="base.group_system") gengo_pub...
66e2c5329e9521e3252d6ead99b95654d8cdaed4
b7c51f5e564d1f0e622fbe6e144f996d693af8cf
/Bins/MakeSparseMatrixSVD.py
c24629f3f51015d698bb93ed7c430d0c9260a6cd
[]
no_license
GINK03/job-recommender-api
a223fb225a1231eaf1b56abd92d9aa8f20ff241b
6afdfa915918184debe96f5ac6932dfa30f7d4a5
refs/heads/master
2022-11-19T16:48:38.776963
2020-07-24T15:49:23
2020-07-24T15:49:23
263,545,893
1
0
null
null
null
null
UTF-8
Python
false
false
4,429
py
import pickle import gzip import glob from scipy.sparse import lil_matrix from sklearn.decomposition import TruncatedSVD # import faiss import numpy as np from pathlib import Path from tqdm import tqdm import sys from concurrent.futures import ProcessPoolExecutor import joblib import pandas as pd from os import environ...
4fb3833526370b776a65d10938c421bb15804d6c
35c4c0ae37c78124732bc8056f9b9940cc80779b
/Data/Search/Find pivot element in a sorted array/Find pivot element in a sorted array.py
b266ca0952266d9b560f4086d94a868ad018fa69
[]
no_license
bhusalashish/DSA-1
8189c6fe27a7905eaa3ea0a404a38164245c8b6e
573b737483193c30753e7afc5d564396318d45ff
refs/heads/master
2023-02-09T21:44:16.691700
2020-12-25T06:19:58
2020-12-25T06:19:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
72
py
''' #### Name: Find pivot element in a sorted array Link: [link]() '''
5c2128c48f6cca29296f7fb6db51371bf51bddfe
e9e083aa75398a015e55ec5de655c262eb1496c6
/mod5-adv/threads/simple-non-daemon.py
c84fa8b3f9455600fa262c7ffd6e93d45bccacc2
[]
no_license
michaelconst/csuf-pythonprog
54d98a878b34038a067c07c649a6025b8380b971
017ec2004482bbd20ce24d6c5ec8f0ae2a6cdb78
refs/heads/master
2021-01-21T10:00:30.268732
2017-03-14T01:29:44
2017-03-14T01:29:44
83,357,234
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
import threading import time import random def do_work(t): print('[{}] sleeping {}s'.format(threading.current_thread().name, t)) time.sleep(t) print('[{}] exiting'.format(threading.current_thread().name)) for i in range(5): threading.Thread(target=do_work, args=(random.randint(1, 5),)).start()
3d8e087c32269d3024415ff947d05fb54bc4b5ae
826085daea311de883ad1e8dfcc8ef5569f087bf
/broca/similarity/term/wikipedia.py
33c38f57abeaea4f2b39766fd32b32d37969b214
[ "MIT" ]
permissive
parksebastien/broca
f2d10cfd6a7dcc6c069ee2e69d5faeb2e1004b67
7236dcf54edc0a4a54a55eb93be30800910667e7
refs/heads/master
2020-05-22T09:48:19.417396
2015-09-10T12:35:56
2015-09-10T12:35:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,242
py
from scipy.spatial.distance import pdist, squareform from broca.similarity.term import TermSimilarity from broca.knowledge.wikipedia import Wikipedia from broca.vectorize.bow import BoWVectorizer class WikipediaSimilarity(Wikipedia, TermSimilarity): def __init__(self, terms, wiki_conn=None): """ I...
0f2fb13936f02c57c1615fa5ae66848d7554ac5b
34ed92a9593746ccbcb1a02630be1370e8524f98
/lib/pints/pints/tests/test_log_likelihoods.py
abe63310e1b7037b4ac373902937a301a887133a
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
HOLL95/Cytochrome_SV
87b7a680ed59681230f79e1de617621680ea0fa0
d02b3469f3ee5a4c85d756053bc87651093abea1
refs/heads/master
2022-08-01T05:58:16.161510
2021-02-01T16:09:31
2021-02-01T16:09:31
249,424,867
0
0
null
2022-06-22T04:09:11
2020-03-23T12:29:29
Jupyter Notebook
UTF-8
Python
false
false
29,817
py
#!/usr/bin/env python3 # # Tests the log likelihood classes. # # This file is part of PINTS. # Copyright (c) 2017-2019, University of Oxford. # For licensing information, see the LICENSE file distributed with the PINTS # software package. # import unittest import pints import pints.toy import numpy as np class Tes...
52fc0a314b8c7900c41339efe131dd5f2bc66806
8c69736d7ac2541be761d728284d315cefa90d28
/nodes/1.x/python/Element.Category+.py
1d9538abcbb641afdd57cccc319aef7a91d65b65
[ "MIT" ]
permissive
ptrklk/ClockworkForDynamo
21ae4ab4ab70d02b6d706f16f312865cd73c4ace
90293d8fb74e6b3339acd6ca4ff69f695b6a02ac
refs/heads/master
2020-03-26T07:50:47.053264
2018-07-28T07:55:10
2018-07-28T07:55:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
987
py
import clr clr.AddReference('RevitAPI') from Autodesk.Revit.DB import * clr.AddReference("RevitNodes") import Revit clr.ImportExtensions(Revit.Elements) def GetCategory(item): objtype = item.GetType().ToString() if objtype == "Autodesk.Revit.DB.ViewSchedule": return Revit.Elements.Category.ById(item.Definition.Cate...
f63cba311274c50550ab3646cb08e9203bacea0f
9d961bd6a590cc96db0c1f9c72d84e3a66636edf
/심심풀이땅콩/[백준]2920.py
66cc611eced9e2f94957f850a848db3dff36e886
[]
no_license
0equal2/Python_Programming
bae65338929e8e1a88247b8d23de805caa026702
2ac1d0262320220f49cbdb45e787e55e994d0b0f
refs/heads/master
2023-05-14T22:13:41.583214
2021-06-09T03:04:51
2021-06-09T03:04:51
304,628,012
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
###[백준]2920 info=list(map(str,input().split())) info="".join(info) if info=="12345678": print("ascending") elif info=="87654321": print("descending") else: print("mixed")
5cc176da258299c6ddf7a86b3875331dc23f0c4a
2f418a0f2fcca40f84ec0863b31ff974b574350c
/scripts/addons_extern/BlenderGIS-master/misc/view3d_setCamFromExif.py
af1522a46f970af7b694e7e71938eb00d01e6db1
[]
no_license
JT-a/blenderpython279
57a81b55564218f3b1417c2ffa97f5161897ec79
04846c82f794c22f87d677d9eb8cec1d05c48cda
refs/heads/master
2021-06-25T06:58:07.670613
2017-09-11T11:14:36
2017-09-11T11:14:36
103,723,697
4
2
null
2017-09-16T04:09:31
2017-09-16T04:09:31
null
UTF-8
Python
false
false
9,569
py
# -*- coding:utf-8 -*- # ***** GPL LICENSE BLOCK ***** # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This...
f90413e5f6f9b7b27188bad677b9dc723922f3fd
1f71f4e41c6aa789f7f5481bc369b852f9ac8eab
/cvat/apps/lambda_manager/tests/test_lambda.py
9409f2f9c400538428dfa6d7506be196ac1fa939
[ "MIT", "LGPL-2.0-or-later", "GPL-1.0-or-later" ]
permissive
shalevy1/cvat
2c7e041fa4c8b9a5166894b3ae5e7c28df5d8ae3
912e47e56c772eb6c2fb5b32f898b029a985fdfc
refs/heads/develop
2023-02-13T23:05:15.428038
2023-02-08T16:08:52
2023-02-08T16:08:52
200,596,810
0
0
MIT
2023-01-27T08:48:21
2019-08-05T06:39:24
TypeScript
UTF-8
Python
false
false
46,793
py
# Copyright (C) 2021-2022 Intel Corporation # Copyright (C) 2023 CVAT.ai Corporation # # SPDX-License-Identifier: MIT import json from collections import OrderedDict from io import BytesIO from typing import Dict, Optional from unittest import mock, skip import os import requests from django.contrib.auth.models impor...
6a726761b329c956b3768f904b22bebfcb704b34
2359121ebcebba9db2cee20b4e8f8261c5b5116b
/configs_pytorch/f30_pt.py
ab367f0af0238b8e8079026ca000938067363cfa
[]
no_license
EliasVansteenkiste/plnt
79840bbc9f1518c6831705d5a363dcb3e2d2e5c2
e15ea384fd0f798aabef04d036103fe7af3654e0
refs/heads/master
2021-01-20T00:34:37.275041
2017-07-20T18:03:08
2017-07-20T18:03:08
89,153,531
2
1
null
null
null
null
UTF-8
Python
false
false
6,549
py
#copy of j25 import numpy as np from collections import namedtuple from functools import partial from PIL import Image import data_transforms import data_iterators import pathfinder import utils import app import torch import torchvision import torch.optim as optim import torch.nn as nn import torch.nn.functional...
4e3dbf1d5e5f1322b18d30e741a4ecefa93b1978
e7795082c0131682803a09e929a86b2deddeab74
/common/PackageRequest.py
55551a9dd599fd01e2d21b48e965acf577cdcab7
[ "MIT" ]
permissive
liwanlei/FXTest
01de3ad55849b16c49d93b58d1aae21fd0fdafa0
aeda58d01c14194290ca149d411c3a8596cca82d
refs/heads/master
2023-04-01T15:45:26.668688
2023-03-19T05:19:54
2023-03-19T05:19:54
97,098,845
807
419
MIT
2022-04-23T06:52:16
2017-07-13T08:27:48
Python
UTF-8
Python
false
false
5,324
py
# -*- coding: utf-8 -*- # @Date : 2017-07-20 15:13:25 # @Author : lileilei ''' requets模块的简单的封装 ''' import requests, json from config import Interface_Time_Out from requests import exceptions from common.systemlog import logger class reques(): def get(self, url, headers, parms): # get消息 try: ...
bc02bd5d06610caebebf2ffa034ff85777eb4b1d
d51e67abc7709b17664ee08eb9d68ecb938f00a9
/utils/farmbot.py
1ace2bcc577c12cf3db231e381d3c13f6f25e1c8
[]
no_license
averdier/farmware_watering_farmdesign
bb6d3d2615c8ac5294e3bbd61cea97cf0950e05c
d474d78629504907971c7f7b2ee6b88954f6f4cf
refs/heads/master
2020-03-30T09:26:40.012409
2018-10-02T09:16:04
2018-10-02T09:16:04
151,075,628
0
0
null
null
null
null
UTF-8
Python
false
false
2,367
py
# -*- coding: utf-8 -*- import uuid from time import time, sleep from .api import send_celery_script, log, get_resource from .geometry import Point3D def prepare_move_absolute_script(position, speed): return { 'kind': 'rpc_request', 'args': { 'label': 'farmware_circle_' + str(uuid.uui...
2b9bacb7050fe1eb24ece4e8eb572e2926d53cb4
4f340ed313a67bddf077a9d8da2205b9c2feb29a
/emv/util.py
dd9f8ac0b99ed0b904b87cec4e819cd092561dd2
[ "MIT" ]
permissive
russss/python-emv
49b645be9ec60acc8cd23e95e5423a1b2c90a175
ce316ba05165e9b82026f72b55329b9bc287c0b8
refs/heads/main
2023-06-21T19:09:10.124472
2023-06-01T18:44:34
2023-06-11T15:26:11
76,971,486
105
30
MIT
2023-06-11T15:26:12
2016-12-20T16:10:14
Python
UTF-8
Python
false
false
1,096
py
import re def hex_int(val): """Convert an integer into a decimal-encoded hex integer as bytes, which the EMV spec seems awfully keen on. >>> hex_int(123456) [0x12, 0x34, 0x56] >>> hex_int(65432) [0x06, 0x54, 0x32] """ s = str(val) if len(s) % 2 != 0: s = "0" + s return...
631b80890ec2de9a99b09a99a04c8962afd187d6
e1fada3a9846a5593e3d3d2fdc32b23b832e38b4
/tests/unit/cli/utils/test_hpo.py
a71d48a0cbb6160a41c64b495c9d45ad40b43c95
[ "Apache-2.0" ]
permissive
GalyaZalesskaya/openvino_training_extensions
fd1ebb189900008b16b85568449e5c62d8edbad5
6116639caeff100b06a6c10a96c7e7f5951f20c7
refs/heads/develop
2023-09-03T19:32:44.702497
2023-03-15T06:48:24
2023-03-15T06:48:24
202,568,309
0
0
Apache-2.0
2019-10-28T16:16:27
2019-08-15T15:41:59
Python
UTF-8
Python
false
false
27,415
py
import json from copy import deepcopy from pathlib import Path from tempfile import TemporaryDirectory from typing import List from unittest.mock import MagicMock import pytest import otx from otx.api.configuration.helper import create as create_conf_hp from otx.api.entities.model import ModelEntity from otx.api.enti...
c2d01b5d527ad76dc88ed38af49bfe7bbfe6dcf6
711756b796d68035dc6a39060515200d1d37a274
/output_cog/optimized_8838.py
9260c4cc09a99e6f082dc00d995fd8e8dba08d41
[]
no_license
batxes/exocyst_scripts
8b109c279c93dd68c1d55ed64ad3cca93e3c95ca
a6c487d5053b9b67db22c59865e4ef2417e53030
refs/heads/master
2020-06-16T20:16:24.840725
2016-11-30T16:23:16
2016-11-30T16:23:16
75,075,164
0
0
null
null
null
null
UTF-8
Python
false
false
10,842
py
import _surface import chimera try: import chimera.runCommand except: pass from VolumePath import markerset as ms try: from VolumePath import Marker_Set, Link new_marker_set=Marker_Set except: from VolumePath import volume_path_dialog d= volume_path_dialog(True) new_marker_set= d.new_marker_set marker_set...
1b392e96dea3bc4c7baebfd90006596440762416
30ba09b0a746b1cef4c817fd87f1f310904a6d88
/test/test_dialogs/test_title_screen.py
770f143c244c1bfcf20b45cf482ac9f12c0d5667
[ "MIT", "Artistic-1.0-Perl" ]
permissive
krother/tilegamelib
69e610959294ed950f49fefd8e7d50ceb1ba09ed
a8165f27b166acca37f81e8432a70e0b2e028338
refs/heads/master
2022-07-21T20:07:35.031330
2022-07-10T20:18:19
2022-07-10T20:18:19
1,045,043
5
2
null
null
null
null
UTF-8
Python
false
false
1,172
py
from unittest import TestCase, main from conftest import MENU_RECT, TITLE_IMAGE, TITLE_RECT from tilegamelib.dialogs.title_screen import TitleScreen from tilegamelib.events import QUIT_EVENT, EventGenerator from tilegamelib.menu import VERTICAL_MOVES class TitleScreenTests(TestCase): def setUp(self): se...
3742ff611dc02b777b4f83d39a8aade1e7dc7cfc
a2cd609a52eb5be16a248c054fb014394f12d344
/build/globalplanner/catkin_generated/pkg.installspace.context.pc.py
a04cf5b45702ff3cf2cd28d70712504d7506b0de
[]
no_license
rfzeg/simon_thesis_ws
c5e6d6b20ee63010ffede91d17ba144527e5f6c5
dc79635f628dade14cab1a631cc4eb24aee1762c
refs/heads/master
2021-09-16T12:43:41.270235
2018-06-20T12:40:57
2018-06-20T12:40:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
550
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/simoneforno/simon_ws/install/include".split(';') if "/home/simoneforno/simon_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;pluginlib;costmap_2d;base_local_planner;nav_core".r...
6ba857f45be0a377186287819331c0f00d600dc2
411eff94020c192d5e5f657fa6012232ab1d051c
/game/src/coginvasion/attack/LinearProjectile.py
f5e3003258b6aada6e2dd3d56c10f9ceea59b384
[]
no_license
xMakerx/cio-src
48c9efe7f9a1bbf619a4c95a4198aaace78b8491
60b2bdf2c4a24d506101fdab1f51752d0d1861f8
refs/heads/master
2023-02-14T03:12:51.042106
2021-01-15T14:02:10
2021-01-15T14:02:10
328,268,776
1
0
null
2021-01-15T15:15:35
2021-01-09T23:51:37
Python
UTF-8
Python
false
false
484
py
from src.coginvasion.attack.BaseProjectile import BaseProjectile from src.coginvasion.attack.LinearProjectileShared import LinearProjectileShared class LinearProjectile(BaseProjectile, LinearProjectileShared): def __init__(self, cr): BaseProjectile.__init__(self, cr) LinearProjectileShared.__init_...
575dcad18b12804754dbe2c263b5eda9c4da5b29
2a4290c36832e7080faa4104d58083c29ed1ea09
/experiments/model_cat_wgan_old.py
ecc8c9353358f06089f1942e0c62a1566ac4eba8
[]
no_license
jerryli27/my_dtn
0380e22fb7892f5d46084339a5edb24c8ed5b8c8
54b16f403a480c35d5ae331dbbfd0efed53880b9
refs/heads/master
2021-01-19T17:17:19.787195
2017-03-05T21:48:06
2017-03-05T21:48:06
82,433,878
3
0
null
null
null
null
UTF-8
Python
false
false
14,037
py
import tensorflow as tf import tensorflow.contrib.slim as slim class DTN(object): """Domain Transfer Network """ def __init__(self, mode='train', learning_rate=0.0003, num_classes = 10, hw = 32, alpha=15, beta=15): self.mode = mode self.learning_rate = learning_rate self.num_classe...
a6cac7d77145dd89deb708f5be1407ffe096d320
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/verbs/_suffocated.py
8b356fe7d1d8ac09890ee20e1e5dc5a7719a80ba
[ "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
259
py
from xai.brain.wordbase.verbs._suffocate import _SUFFOCATE #calss header class _SUFFOCATED(_SUFFOCATE, ): def __init__(self,): _SUFFOCATE.__init__(self) self.name = "SUFFOCATED" self.specie = 'verbs' self.basic = "suffocate" self.jsondata = {}
280b60d0e3b097e45c49ec6db0db8f323a43d3c5
9568dee77459304ad0f7e01c9dea9432c11377d0
/maxlike_sim_filehandler.py
c91d4799c888691d93117cefde6a1784acc6f66d
[ "MIT" ]
permissive
lbaumo/wtgpipeline
c101c7e7ec1491a1c40cbe14102662770641bb9a
73de01736e33769c09c4467e3c040545d7070407
refs/heads/master
2021-06-20T14:40:38.263891
2017-08-14T21:08:24
2017-08-14T21:08:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,688
py
############################# # Handles loading files for a simulation run ############################# import ldac, cPickle, numpy as np import astropy.io.fits as pyfits import pdzfile_utils, nfwutils, varcontainer ############################# __cvs_id__ = "$Id$" ############################# class SimFilehandl...
adeb59d010bdfae9169f837cf998303af2c9df2e
463c053bcf3f4a7337b634890720ea9467f14c87
/rllib/models/jax/misc.py
02ebd98fd261b684769013ef6b2f7fd3ba31bc62
[ "BSD-3-Clause", "MIT", "Apache-2.0" ]
permissive
pdames/ray
e8faddc4440976211a6bcead8f8b6e62c1dcda01
918d3601c6519d333f10910dc75eb549cbb82afa
refs/heads/master
2023-01-23T06:11:11.723212
2022-05-06T22:55:59
2022-05-06T22:55:59
245,515,407
1
1
Apache-2.0
2023-01-14T08:02:21
2020-03-06T20:59:04
Python
UTF-8
Python
false
false
2,287
py
import time from typing import Callable, Optional from ray.rllib.utils.framework import get_activation_fn, try_import_jax jax, flax = try_import_jax() nn = np = None if flax: import flax.linen as nn import jax.numpy as np class SlimFC: """Simple JAX version of a fully connected layer.""" def __init...
08b869e8d8559db4d477d360515bc7c627507ca5
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03129/s302066927.py
0887597072b00c7f90e5a7d87138c543cb18fc6f
[]
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
156
py
import sys N, K = map(int, input().split()) ans = 0 for i in range(1,N+1,2): ans = ans + 1 if ans >= K: print("YES") sys.exit() print("NO")
77ec1a307afebd5162f2ea1d4eaaece759d3fd15
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5753053697277952_0/Python/BIPUL/a.py
3b8209e6b92d12243001a0707948776e81fe2d81
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
Python
false
false
1,955
py
############### Author: Bipul Ranjan @ranjanbipul ############### import sys import time import os import math import operator import random from functools import lru_cache from decimal import Decimal as D from fractions import Fraction as F #sys.setrecursionlimit(10000) #@lru_cache(maxsize=None) MOD = 1000...
ac6d4db8c9c186c23b51f9690ba1d838c76936cc
b9662213e143acea87e9af6f41143c50f23bec95
/main.py
3bcc258a67bac8bb863e85ccfce47cd210cce045
[]
no_license
elprofedotti/python-mvc
3442680dc20d7cb0ec9c3bf09442daecda4c8e4e
9beee06de2e7a04ad872e037157a08dd2bb3dcc6
refs/heads/main
2023-08-04T08:17:03.886448
2021-04-20T12:57:17
2021-04-20T12:58:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
199
py
"""Entry point.""" from app.app import Application from app.views import MainPage from app.models import Book if __name__ == "__main__": app = Application(MainPage(Book.list())) app.run()
235c672831f5d93373e32f38e38f5655cf5ab225
fd48fba90bb227017ac2da9786d59f9b9130aaf0
/digsby/src/contacts/BuddyListElement.py
f33b3380035eee14ea46a75e7f98d16ccdad3ccf
[ "Python-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
niterain/digsby
bb05b959c66b957237be68cd8576e3a7c0f7c693
16a62c7df1018a49eaa8151c0f8b881c7e252949
refs/heads/master
2021-01-18T10:07:10.244382
2013-11-03T02:48:25
2013-11-03T02:48:25
5,991,568
1
0
null
2013-11-03T02:48:26
2012-09-28T02:24:50
Python
UTF-8
Python
false
false
630
py
from util.primitives.funcs import isiterable from common.actions import ActionMeta class BuddyListElement(object): __metaclass__ = ActionMeta @property def num_online(self): from Contact import Contact if isiterable(self) and not isinstance(self, Contact): return su...
0a67f283ef42dca44daf76bbc4a66abe4d8c48dd
951a84f6fafa763ba74dc0ad6847aaf90f76023c
/Solu86.py
e7e90402710c612a3e2d5f06db28be58e7c62afc
[]
no_license
SakuraGo/leetcodepython3
37258531f1994336151f8b5c8aec5139f1ba79f8
8cedddb997f4fb6048b53384ac014d933b6967ac
refs/heads/master
2020-09-27T15:55:28.353433
2020-02-15T12:00:02
2020-02-15T12:00:02
226,550,406
1
1
null
null
null
null
UTF-8
Python
false
false
1,225
py
# # 86. 分隔链表 # 给定一个链表和一个特定值 x,对链表进行分隔,使得所有小于 x 的节点都在大于或等于 x 的节点之前。 # # 你应当保留两个分区中每个节点的初始相对位置。 # # 输入: head = 1->4->3->2->5->2, x = 3 # 输出: 1->2->2->4->3->5 # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def partition(s...
782ce93a0a256fec41cbd6777146f5c3cd2c5695
b3586235dc1e1acbd49fab996f581269a808480b
/sistema/planeamento/migrations/0013_ordemproducao_num_paletes_stock_in.py
1fcbb090362b7154911b2ca6ccc20eb7e102cd64
[]
no_license
gonfersilva/Sistema
37ad1cd03dfbb7889fa0b0367c6ebd9044712ae3
4c6d9ade22040972efbe892eae0130939d7b5c46
refs/heads/master
2021-10-23T23:21:51.262723
2021-10-13T19:45:49
2021-10-13T19:45:49
155,545,680
0
0
null
null
null
null
UTF-8
Python
false
false
458
py
# Generated by Django 2.2.7 on 2020-08-06 14:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('planeamento', '0012_auto_20200805_1401'), ] operations = [ migrations.AddField( model_name='ordemproducao', name='nu...
095c6844b796a1aa2773a69bc20447cb7d6c0cd5
efe67da7ca1092e033fba7b0a251a43d9a165022
/get_city_from_id/views.py
5d69da18fd281507a348b06021c952f6c6f4bd2e
[]
no_license
poojapauskar/savmytime-api
0a019077720ab9ec9bd113379e77f0f4c83ef887
2bb48d60fce24888c2d4e4ba3b1da8947242a1fd
refs/heads/master
2021-01-21T13:29:41.086409
2016-05-09T06:38:54
2016-05-09T06:38:54
54,106,625
0
0
null
null
null
null
UTF-8
Python
false
false
1,573
py
from services.models import Services from category.models import Category from sub_category.models import Sub_category from cities.models import Cities from get_details.serializers import Get_detailsSerializer from rest_framework import generics # from ticket.permissions import IsOwnerOrReadOnly # from rest_framework i...
1b6e511387f944e0ce53157aa60363c6551647e9
2a4290c36832e7080faa4104d58083c29ed1ea09
/prepro.py
244c70dc13f9e7ef94ec033204e0662e264afae7
[]
no_license
jerryli27/my_dtn
0380e22fb7892f5d46084339a5edb24c8ed5b8c8
54b16f403a480c35d5ae331dbbfd0efed53880b9
refs/heads/master
2021-01-19T17:17:19.787195
2017-03-05T21:48:06
2017-03-05T21:48:06
82,433,878
3
0
null
null
null
null
UTF-8
Python
false
false
1,292
py
""" The cat face data comes from https://sites.google.com/site/catdatacollection/data """ import numpy as np import pickle from PIL import Image from tensorflow.examples.tutorials.mnist import input_data def resize_images(image_arrays, size=[32, 32]): # convert float type to integer image_arrays = (image_ar...
573a193c39d9439dca5d7bd30a379c92a02b9329
4a81e33fe6d214f2efaeb97b03b5b05fae12b0d8
/demos/great-expectations/venv/lib/python3.8/site-packages/great_expectations/expectations/core/expect_column_value_lengths_to_equal.py
082cd7affc8769938d3c0e6cee1b6a9c66d84c5e
[]
no_license
franciscojavierarceo/Python
29aaea28642dde151255c5b4a813158e975a073d
02715ca6f19fd3c76cefa12de92deeae4ddf9684
refs/heads/main
2023-08-27T14:23:04.376095
2023-08-27T10:30:37
2023-08-27T10:30:37
33,146,755
7
9
null
2023-02-16T06:40:35
2015-03-30T20:38:00
Jupyter Notebook
UTF-8
Python
false
false
9,388
py
from typing import Optional from great_expectations.core.expectation_configuration import ExpectationConfiguration from great_expectations.expectations.expectation import ( ColumnMapExpectation, InvalidExpectationConfigurationError, ) from great_expectations.expectations.util import render_evaluation_parameter...
d0ecd64d2fe16d6c50d3a51d49b2fca1bdfdb0cd
e70b6032024b290e2ba11fa5266ef912d9ac14a2
/crits/comments/urls.py
bdb50ae5c327a6f98d12bcca1f9b041ce9ffffc0
[ "MIT" ]
permissive
ckane/crits
105b45c00b6ad85064b8e33ecd12e7474fc84fd6
e2f2b71927d08e6432a0e540a0f4634da675ce53
refs/heads/master
2021-01-17T07:57:01.495393
2016-04-11T04:29:35
2016-04-11T04:29:35
20,622,493
2
0
null
2016-04-11T04:29:36
2014-06-08T17:45:07
JavaScript
UTF-8
Python
false
false
558
py
from django.conf.urls import patterns urlpatterns = patterns('crits.comments.views', (r'^remove/(?P<obj_id>\S+)/$', 'remove_comment'), (r'^(?P<method>\S+)/(?P<obj_type>\S+)/(?P<obj_id>\S+)/$', 'add_update_comment'), (r'^activity/$', 'activity'), (r'^activity/(?P<atype>\S+)/(?P<value>\S+)/$', 'activity'...
03d3d6b6062452e771dd0f53277a1ff0b3f6c1e9
1df7ba55c4b61772c1a31c503e6b8881f1456dc5
/untitled9/apps/courses/migrations/0010_auto_20170209_1147.py
dfa9d9ea221e6a9ea9b645c7a86fa3dfcace7f37
[]
no_license
fzk466569/python-django-pro
35918756060fcae375d3c99ea1a6934949b6d605
9add086b7a910f255df5b192268f1e117057e053
refs/heads/master
2021-01-19T13:18:14.141880
2017-02-19T12:16:29
2017-02-19T12:16:29
82,374,668
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.8 on 2017-02-09 11:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('courses', '0009_auto_20170209_1146'), ] operations = [ migrations.AlterField...
[ "fzk466569" ]
fzk466569
637c9052ec6cfa09517634c6b68099e9a6470ff8
7a8fcae483d18e87481443f4476d56b5180459e6
/statemachine/registry.py
c1632ebc937664e2f22b410a9f4334a197abc83f
[ "MIT" ]
permissive
Gariagi/python-statemachine
63c67696f57eeda75054df399999bfe7fb21c783
7dddc714752ef56dd9e54fe246c0050f40c0ad2d
refs/heads/develop
2020-03-09T01:04:15.124145
2018-04-29T17:53:36
2018-04-29T17:53:36
128,504,334
0
0
MIT
2018-04-29T17:53:37
2018-04-07T06:56:05
Python
UTF-8
Python
false
false
1,206
py
# coding: utf-8 _REGISTRY = {} _initialized = False def register(cls): _REGISTRY[cls.__name__] = cls return cls def get_machine_cls(name): init_registry() return _REGISTRY[name] def init_registry(): global _initialized if not _initialized: load_modules(['statemachine', 'statemachi...
14f178cebd12871b2e29d5b54a2c6d71d47622a4
3a1bae5b4a49c8f3050f37c3875a5a1dfd6f8316
/bookzen_flask/bookzen.py
7c91da763601eb07dd5749b3d1277ba732dc04ae
[]
no_license
meomap/bookzen
9e86f5d3e63bfbd1e87fae41465115d27ebdd321
e764dea45c7a5174b728d225ef2aaef3ed09bc9b
refs/heads/master
2021-01-19T13:25:23.704102
2017-02-17T01:52:26
2017-02-17T01:52:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,555
py
# -*- coding: iso-8859-15 -*- import json from email.header import Header from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.utils import formataddr import smtplib from flask import Flask, render_template, redirect, url_for from flask_mongoengine import MongoEngine from fla...
0f260f1dbdd72e3b8c0677de922da98c7967e15b
bb7ebdd990d3265a585700e1083b3e916842aec6
/scrapper/article.py
c5d9ffb192e8310d3615e63aaf29c76355f4090d
[]
no_license
c24b/clean_crawtext
2c2a6d6292f5bb00afa45ebb28ba16bf2f0a229e
f1dc20298da418680b1b96dd0468846cbf09a112
refs/heads/master
2020-05-18T00:58:55.308025
2014-08-19T11:50:52
2014-08-19T11:50:52
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,889
py
#!/usr/bin/env python # -*- coding: UTF-8 -*- from copy import deepcopy from parsers import Parser from cleaners import StandardDocumentCleaner from formatters import StandardOutputFormatter from extractors import StandardContentExtractor import datetime from BeautifulSoup import BeautifulSoup as bs class Extractor(o...
61b4081b28ae6a8a0b66826389ed5b2bf8f6a8bd
82b728e805d887102c0b8c415731b353877690cd
/samples/generated_samples/aiplatform_generated_aiplatform_v1_job_service_list_data_labeling_jobs_async.py
ff63ecabec79d5b44b37a6226ced8498752c4070
[ "Apache-2.0" ]
permissive
geraint0923/python-aiplatform
90c7742c9bdbde05b9688b117e8e59c0406d6f85
7ab05d5e127636d96365b7ea408974ccd6c2f0fe
refs/heads/main
2023-08-24T05:30:38.519239
2021-10-27T20:38:25
2021-10-27T20:38:25
370,803,114
0
0
Apache-2.0
2021-05-25T19:15:47
2021-05-25T19:15:46
null
UTF-8
Python
false
false
1,627
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...
90229bbbe4785a5b999ee5d8722e20f28827c56f
c05ed32f1ef7e1eb7d73efd674e7d1fd710ad171
/daily-coding-problems/problem395.py
bf3a13cf875b08ed3da6182d02891d6d297eafa6
[]
no_license
carlhinderer/python-exercises
c8367517fdf835fa1117f96dbfee3dccc596afa6
4e09bbb4c4e2bd5644ed50e997db9f3c289a18f7
refs/heads/master
2021-06-01T16:17:00.389134
2021-02-09T18:21:01
2021-02-09T18:21:01
150,902,917
0
0
null
2021-04-20T20:33:11
2018-09-29T21:03:36
Python
UTF-8
Python
false
false
275
py
# Problem 395 # Medium # Asked by Robinhood # # Given an array of strings, group anagrams together. # # For example, given the following array: # # ['eat', 'ate', 'apt', 'pat', 'tea', 'now'] # # Return: # # [['eat', 'ate', 'tea'], # ['apt', 'pat'], # ['now']] #