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
db802391bcd03b8b2e12e805475b0d5c95ca0008
04803c70bb97012b7d500a177ac0240fb2ddbe38
/blend4_pdep/pdep/network269_1.py
d12a2a0c2cbdc47b265da5b522cbfd7932b3bb86
[]
no_license
shenghuiqin/chpd
735e0415f6688d88579fc935459c1b0f53596d1d
396ba54629036e3f2be0b3fabe09b78c90d56939
refs/heads/master
2023-03-01T23:29:02.118150
2019-10-05T04:02:23
2019-10-05T04:02:23
192,084,217
0
0
null
2019-06-18T18:33:13
2019-06-15T13:52:28
HTML
UTF-8
Python
false
false
24,141
py
species( label = '[CH2]CO[CH2](3406)', structure = SMILES('[CH2]CO[CH2]'), E0 = (163.919,'kJ/mol'), modes = [ HarmonicOscillator(frequencies=([2750,2850,1437.5,1250,1305,750,350,3000,3033.33,3066.67,3100,415,465,780,850,1435,1475,900,1100,415.335,2171.22],'cm^-1')), HinderedRotor(inertia...
653ca533eb3f53b29e27b7eb8e5b17df34a8b2eb
6203105c774913bbb3dc7e2d9bb99f739d9d24fa
/discrete_autoencoder/layers/activation.py
249418a2662f3838a89576ab80e8e36e9d2b2c95
[]
no_license
bstriner/discrete_autoencoder
f5eae31e155b2c4c440c9fe89b060c3be61de888
baca5d23964b08ff7e3062c07d74b0ff9a631e98
refs/heads/master
2021-07-23T02:12:36.405089
2017-11-03T09:37:02
2017-11-03T09:37:02
108,048,313
0
0
null
null
null
null
UTF-8
Python
false
false
376
py
from .layer import Layer class ActivationLayer(Layer): def __init__(self, activation=None): self.activation = activation params = [] non_trainable_weights = [] super(ActivationLayer, self).__init__(params=params, non_trainable_weights=non_trainable_weights) def call(self, x): ...
c03a75610d9c6359e5b0034a66cbf001dc6401f2
2c94c322b5e1f53e131f7d680bcd4413ff11a10b
/bubble_s_ascending.py
dd23b2b99c326a2660e536c4be43b9aee8db5ab4
[]
no_license
Nehanavgurukul/list
66996ad6f30183f8d6c758ab824fd5a7840ba4dd
e4aa2686c0f007477e147c733ac98708773570cb
refs/heads/main
2023-01-11T23:38:15.450749
2020-10-29T16:10:29
2020-10-29T16:10:29
308,381,457
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
num=[23,50,56,20,11,70] index=0 while(index<len(num)): j=0 while(j<len(num)): if(num[index]<num[j]): tamp=num[index] num[index]=num[j] num[j]=tamp j=j+1 index=index+1 print(num)
2cb1b08ed78ba1f7af4b2d62d28e84f0291436db
b8498a35832f5d14bd15332a3dd2b93d64351448
/fluent-python/15-context-mngr/else_block.py
adac5f3d0a2da378b4e488ca68369bc802379035
[]
no_license
luzzyzhang/my-python-cookbook
8b3daf4c4354a98ff305375c8a3a35551eee67e7
8d160f6d6d18b7a9801d433f6e3868d054432bde
refs/heads/master
2021-09-06T20:25:39.026278
2018-02-11T04:22:13
2018-02-11T04:22:13
46,793,714
2
1
null
2017-06-17T13:57:26
2015-11-24T13:35:26
Python
UTF-8
Python
false
false
527
py
# -*- coding: utf-8 -*- """This is just demo code """ # for ... else ... for item in my_list: if item.flavor == 'bananas': break else: raise ValueError('No banana flavor found') try: dangerous_call() after_call() except OSError: log('OSError ...') # VS # For clarity and correctness, the...
230586f9d6953a471e7d734543104ead21c8cefe
41bea39563c74621924d79723f8ba84889958365
/nkamg_pcap/server/pcap/pcapanalysis.py
f35fbc521427fc37b36571488b62756327ed850d
[ "MIT" ]
permissive
NKQiuKF/pcap_update
abee0c13cb583fddb89eb9e86a487279bdc18f1d
679e3f116367394a5f58eb4f95b5318e80fee331
refs/heads/master
2022-10-21T17:49:30.706480
2019-09-02T09:22:06
2019-09-02T09:22:06
205,816,421
1
0
null
2022-10-06T18:33:32
2019-09-02T08:55:55
JavaScript
UTF-8
Python
false
false
22,425
py
#coding:utf-8 #from superset.data import * """conn.log中每一条代表一次完整的连接,包含多个包""" import sys #sys.path.append("../../") import os import pandas as pd from superset.data import * from geoip import geolite2 import hashlib from get_province import get_province_code FilePath = os.path.join('/'.join(os.path.dirname(os.path.absp...
54691aec62e64eee0903528551d1bc0d23f22069
1b57d2f689903d9937f77e26be40784af2ff2669
/view_helpers/home.py
f7682825ddec4cb03015fe1ee82b08065034f3d6
[]
no_license
FMularski/passwordkeeper
b1ef31c04bcfa7f012f28852fd8ae1f33efeff98
5859fbef89a3f80b27d52fd124971180e12e4fef
refs/heads/main
2023-07-16T21:09:34.938196
2021-09-06T21:05:01
2021-09-06T21:05:01
347,174,484
0
0
null
null
null
null
UTF-8
Python
false
false
422
py
def encode_password(password, pin): pin_sum = 0 for char in pin: pin_sum += ord(char) encoded = '' for char in password: encoded += chr(ord(char) + pin_sum) return encoded def decode_password(encoded, pin): pin_sum = 0 for char in pin: pin_sum += ord(char) d...
9459f7c0aa601f412b8a975d03fa86c2914ac96c
797761aeb37a8de4288696875f1a3c6c0eff3824
/mlfromscratch/unsupervised_learning/partitioning_around_medoids.py
6fdab2470e836fd1065b261519fafc06d73dad7f
[ "MIT" ]
permissive
kauziishere/ML-From-Scratch
27df8a6565e964309d25729fe373746845b57b6b
a5040b84102fc2259b925d7337e7ff87080b6e5f
refs/heads/master
2021-05-14T17:06:48.691808
2017-08-30T09:27:19
2017-08-30T09:27:19
116,040,355
1
1
null
2018-01-02T17:38:06
2018-01-02T17:31:24
Python
UTF-8
Python
false
false
5,357
py
import sys import os import math import random from sklearn import datasets import numpy as np # Import helper functions from mlfromscratch.utils.data_manipulation import normalize from mlfromscratch.utils.data_operation import euclidean_distance from mlfromscratch.unsupervised_learning import PCA from mlfromscratch.u...
97a3f89a8219b377de059f311121c2a9894553ab
38c10c01007624cd2056884f25e0d6ab85442194
/v8/tools/release/releases.py
5b826fccba089d27afc2f0cab0fefc209ae033af
[ "BSD-3-Clause", "bzip2-1.0.6" ]
permissive
zenoalbisser/chromium
6ecf37b6c030c84f1b26282bc4ef95769c62a9b2
e71f21b9b4b9b839f5093301974a45545dad2691
refs/heads/master
2022-12-25T14:23:18.568575
2016-07-14T21:49:52
2016-07-23T08:02:51
63,980,627
0
2
BSD-3-Clause
2022-12-12T12:43:41
2016-07-22T20:14:04
null
UTF-8
Python
false
false
19,503
py
#!/usr/bin/env python # Copyright 2014 the V8 project authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script retrieves the history of all V8 branches and # their corresponding Chromium revisions. # Requires a chromium checkout ...
bfce55234939a14e100bb118db3fb7d4ddba9508
9c5e09b4f048a13961c0f4a1370a7bf01a421d92
/gym/envs/robotics/fetch_env.py
cb9f04f8d4a2bc9dfb685158d68bd8e3fcbf1435
[ "MIT" ]
permissive
StanfordVL/Gym
daa8c780f5ace3e33c3bf0f7109f40a0a820d59e
5e14d19e57d8ba318b97a5edda0ab2ea591dea08
refs/heads/master
2023-02-03T02:44:40.185713
2020-12-17T14:10:16
2020-12-17T14:10:16
280,579,514
9
4
null
null
null
null
UTF-8
Python
false
false
8,359
py
import numpy as np from . import rotations, robot_env, utils def goal_distance(goal_a, goal_b): assert goal_a.shape == goal_b.shape return np.linalg.norm(goal_a - goal_b, axis=-1) class FetchEnv(robot_env.RobotEnv): """Superclass for all Fetch environments. """ def __init__( self, mode...
aeedf79574fb645c330f2c9285caa73a7e7cc84a
09cead98874a64d55b9e5c84b369d3523c890442
/py200703_python1/day18_py200830/if_ex_2_b.py
86d87ce269e727558d85bff7d25188b797e7433c
[]
no_license
edu-athensoft/stem1401python_student
f12b404d749286036a090e941c0268381ce558f8
baad017d4cef2994855b008a756758d7b5e119ec
refs/heads/master
2021-08-29T15:01:45.875136
2021-08-24T23:03:51
2021-08-24T23:03:51
210,029,080
0
0
null
null
null
null
UTF-8
Python
false
false
591
py
""" ex 2. write a program to find the smallest number among 3 given numbers """ a = 24 b = 15 c = 6 d = 78 max = a # 1st round if max < a: max = a # 2nd round if max < b: max = b # 3rd round if max < c: max = c # 4th round if max < d: max = d print("The max number is {}".format(max)) # num1 = ...
655612c5cb4bfd720ce79722d13902b46883a0db
93dd86c8d0eceaee8276a5cafe8c0bfee2a315d3
/python/paddle/distributed/fleet/metrics/metric.py
12a24292e5a3ad9ea838d9451fdf72e7e846a528
[ "Apache-2.0" ]
permissive
hutuxian/Paddle
f8b7693bccc6d56887164c1de0b6f6e91cffaae8
a1b640bc66a5cc9583de503e7406aeba67565e8d
refs/heads/develop
2023-08-29T19:36:45.382455
2020-09-09T09:19:07
2020-09-09T09:19:07
164,977,763
8
27
Apache-2.0
2023-06-16T09:47:39
2019-01-10T02:50:31
Python
UTF-8
Python
false
false
14,010
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
9e274569e9a69cde12005a4f9cbda430d664a352
b22588340d7925b614a735bbbde1b351ad657ffc
/athena/Trigger/TrigHypothesis/TrigBphysHypo/python/TrigMultiTrkFexConfig.py
7ff7c6851f577e90bd81bf44b82f5324d00b7fa9
[]
no_license
rushioda/PIXELVALID_athena
90befe12042c1249cbb3655dde1428bb9b9a42ce
22df23187ef85e9c3120122c8375ea0e7d8ea440
refs/heads/master
2020-12-14T22:01:15.365949
2020-01-19T03:59:35
2020-01-19T03:59:35
234,836,993
1
0
null
null
null
null
UTF-8
Python
false
false
21,996
py
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # include the python fragment to set up the default bphysics vertex fitter from TrigBphysHypo import TrigBphysVertexingConfig from TrigBphysHypo.TrigBphysHypoConf import TrigMultiTrkFex from AthenaCommon.AppMgr import ToolSvc from TrigTimeMon...
e5a530fc5cf0c4e945782e013924a8ad746bce15
933376c11498a6567da8d7eb7d2675100895c3ba
/pyzoo/zoo/chronos/examples/auto_model/autoprophet_nyc_taxi.py
db4282b6e4d0bc5f4e012b570aa603848f11ebcc
[ "Apache-2.0" ]
permissive
intel-analytics/analytics-zoo
320a461765f86d41dd456b598b1cf1d51d57f4c4
7cc3e2849057d6429d03b1af0db13caae57960a5
refs/heads/master
2023-08-13T20:47:58.621714
2023-07-06T00:49:11
2023-07-06T00:49:11
90,328,920
3,104
996
Apache-2.0
2023-09-06T01:51:18
2017-05-05T02:27:30
Jupyter Notebook
UTF-8
Python
false
false
3,730
py
# # Copyright 2018 Analytics Zoo Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
a0a3b9b675a2be13b66e294e41e133e675115ea0
a424742e3e784c33625bf29295483469d2a8962a
/eval.py
0056f8bcb5514f1b0642a7c179a71a5194665ab7
[]
no_license
eeyrw/PyTorch_YOLOv2
82b3b8bf6c9562a43367f7cfcbdea8954c685dd5
4ccf8fb8a61d484e70af611f021013fe53133178
refs/heads/main
2023-04-27T03:20:27.680365
2021-05-20T12:28:14
2021-05-20T12:28:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,541
py
import torch import torch.nn as nn from data import * import argparse from utils.vocapi_evaluator import VOCAPIEvaluator from utils.cocoapi_evaluator import COCOAPIEvaluator parser = argparse.ArgumentParser(description='YOLOv2 Detector Evaluation') parser.add_argument('-v', '--version', default='yolov2', ...
1572e5579606a9957144da853c20f0c8c39c58bf
520fcbe076fb1e04187512ddd33802b5c30b2f1a
/blender/nodes/converter/seratate_vector.py
2fd1c13aae88a4b65d1eb496d93390704478ad49
[ "MIT" ]
permissive
LewisOrton/taichi_elements_houdini
c604fa85c662369ee3db94224c5e0166482b0512
50ef3232f080030213bcb7578a48d03647a9445b
refs/heads/master
2022-04-24T08:11:42.173539
2020-04-25T08:12:29
2020-04-25T08:12:29
259,212,298
1
0
null
null
null
null
UTF-8
Python
false
false
1,762
py
from .. import base def get_out_value_x(socket): node = socket.node vectors = node.inputs['Vector'].get_value() x = node.outputs['X'] # scene scn = bpy.context.scene key = '{0}.{1}'.format(node.name, x.name) res = [] for vector in vectors: res.append(vector[0]) scn.elements...
eed3afbb97e48fae80a14a977c246d46fc89030a
0c469c4100fe9d352e83731688e388062a3c55c7
/Binary_Search/374. Guess Number Higher or Lower.py
48760947821ff471c3bde8720687f3f3cb131280
[]
no_license
asperaa/back_to_grind
9e055c7e6561384e5b7ae52f01063e4beb34a298
5ea1976b9d5c6d04800e296e45e8ff90fdde5001
refs/heads/master
2022-12-16T18:32:01.443743
2020-09-05T13:29:39
2020-09-05T13:29:39
254,910,528
1
0
null
null
null
null
UTF-8
Python
false
false
528
py
"""We are the captains of our ships, and we stay 'till the end. We see our stories through. """ """374. Guess Number Higher or Lower """ def guess(num): pass class Solution: def guessNumber(self, n): left, right = 0, n while left <= right: mid = left + (right - left) // 2 ...
2d8f1205dd887ce96442a59c6b67c95c73400344
70b5c70d67dfed37c0317c605821c747516a3b13
/browser/sarafi/views.py
618372a1c7abb02e788df944d7bf05c7d9389ac6
[]
no_license
jaxman020/browser
ff153106ba12d0e74daa6cec388e283914e1cd41
fff8dff28a6437f8bde739e2bd91f86ad767d1e6
refs/heads/master
2021-01-10T10:36:12.154569
2015-12-15T16:18:09
2015-12-15T16:18:09
47,606,006
0
0
null
null
null
null
UTF-8
Python
false
false
158
py
from django.shortcuts import render def sarafi(request): context = {'message':'Django 很棒'} return render(request, 'sarafi/sarafi.html', context)
[ "m516@m516" ]
m516@m516
32874edb86c1dd5846853da3cc4de69aabcc9f6a
8d24ade82e14cca109da4b535ba08e77dc29b6ae
/Ex_DSA/ex_cap3a.py
c1ff816913f8375be3c5855f59dba0fe857c9953
[ "MIT" ]
permissive
LuanGermano/DSAexercicios
882f6ece355723d101cd5a7b1a39db58857ffa14
2de12be75fda2d113f302e8f1272e00e2d8622af
refs/heads/main
2023-07-23T12:43:13.898367
2021-08-30T01:42:04
2021-08-30T01:42:04
397,451,420
0
0
null
null
null
null
UTF-8
Python
false
false
2,943
py
# Exercício 1 - Crie uma estrutura que pergunte ao usuário qual o dia da semana. Se o dia for igual a Domingo ou # igual a sábado, imprima na tela "Hoje é dia de descanso", caso contrário imprima na tela "Você precisa trabalhar!" """ dia = str(input("Qual dia da semana é hoje? ")).lower() if dia == "sabado" or dia == "...
53782ebdaec5105beb96a0ea327db79cdcb20e31
52b5773617a1b972a905de4d692540d26ff74926
/.history/MinWindow_20200713232140.py
da9aae373aa9bf562d26a1905143fca258c24897
[]
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
850
py
# pseducode # "ADOBECODEBANC" # "ABC" # if n(string) is less than k then return false # have a left and right pointer where both start from the begining and right increases the window size and left reduces the window size # make a dictionart for the char in k and the count of unique char in k def small(n,k): ...
834e0bfb683d36df04fe7b02bd8bdcaf5a952402
2b2be9649489d124579e7510c6dc1d8e2bc310f6
/syn/types/a/base.py
58dcbe8554dcde048a35361c43702d158ef0bf7d
[ "MIT" ]
permissive
pombredanne/syn-1
b744d67addc434300bf54ba2d3fdf973dba48d1e
aeaa3ad8a49bac8f50cf89b6f1fe97ad43d1d258
refs/heads/master
2021-06-16T07:34:30.950848
2017-04-21T06:02:48
2017-04-21T06:02:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,391
py
import six import operator as op from functools import wraps from collections import Iterable from syn.base_utils import nearest_base, is_hashable, tuple_prepend, \ get_fullname, get_mod, get_typename, AttrDict, hasmethod, import_module, \ quote_string, iteration_length, escape_for_eval, compose, safe_vars #--...
81c14dc95fe92cb71fd3ab3323a7d30f3c721564
45d6b7739ef7e61779d778b16e2d2cb9b92a08c0
/test/run_in_parallel-200PU-grow/submit-49.py
dc64b6143eac91b619db28129379d724ba08a4f9
[]
no_license
isobelojalvo/phase2L1TauAnalyzer
40b545baec97bf287a8d8ab26bea70546bf9f6f8
98ef6d31a523698ba0de48763cadee1d5b2ce695
refs/heads/master
2021-01-22T08:38:17.965156
2019-07-25T17:25:51
2019-07-25T17:25:51
92,623,686
0
1
null
2019-07-23T19:43:55
2017-05-27T20:56:25
Python
UTF-8
Python
false
false
302
py
process.source.secondaryFileNames = cms.untracked.vstring( "/store/relval/CMSSW_9_3_7/RelValZTT_14TeV/GEN-SIM-DIGI-RAW/PU25ns_93X_upgrade2023_realistic_v5_2023D17PU200-v1/10000/6E64C932-2E2D-E811-86D5-0242AC130002.root") process.source.lumisToProcess = cms.untracked.VLuminosityBlockRange("1:24")
55b2bdc54e83600514c0cd6d09240c467148e50a
381b75fe68a4da258e2e60a97105b66ac47214e4
/qa/rpc-tests/mempool_packages.py
03e130496fdfc82e4e2f6487723ce8dc062aefde
[ "MIT" ]
permissive
lipcoin/lipcoin
3a5997dfc9193ee7dee6f9fa0adc1cb5fb8c92a3
7afc0a02d63620e5a5601474cca131cb0cf3bbe4
refs/heads/master
2021-01-24T07:57:56.248620
2018-03-17T19:04:38
2018-03-17T19:04:38
112,155,869
0
0
null
null
null
null
UTF-8
Python
false
false
10,344
py
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The LipCoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. # Test descendant package tracking code from test_framework.test_framework import LipCoinTestFramework f...
809dbdaf35c9f1d9c579f7c054c3957ee204aa1e
4e163aa4aa0f4c4ddc22f74ae21b6fb1c85a7a09
/238. 除自身以外数组的乘积.py
2e458c88617acdbc6d2816c027b1d9510b858e13
[]
no_license
dxc19951001/Everyday_LeetCode
72f46a0ec2fc651168129720ad0b1e7b5c372b0b
3f7b2ea959308eb80f4c65be35aaeed666570f80
refs/heads/master
2023-08-03T09:22:08.467100
2023-07-23T17:08:27
2023-07-23T17:08:27
270,723,436
1
0
null
null
null
null
UTF-8
Python
false
false
3,634
py
class Solution(object): def productExceptSelf_0(self, nums): """ :type nums: List[int] :rtype: List[int] """ # 核心思想: # 用两层for循环可以轻松解决,时间复杂度为n^2,不符合题目要求 # 核心:利用列表切片,每次循环将不参与计算的数组剔除 output= [0] * len(nums) for i in range(len(n...
6d48f45d6eb3ac4fe3fe69c45bf0ec4b44276d16
176f2533c07323f3eccb13d576092c32c46428fc
/game/game.py
46f57da139764cbc2db7162a1541d4ddad3ab89f
[]
no_license
viciu/pyconpl-2014
3fbe382c5376cc54ca448efaca2777e6d242c607
4539ab8135c56cfbb2428c456ca182a86a2f46c9
refs/heads/master
2021-01-17T20:59:36.882412
2014-10-18T08:52:16
2014-10-18T08:52:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,441
py
import random APPLES = ['X', 'O'] ORANGE = '.' GRAPEFRUIT = ORANGE * 9 RAISINS = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6] ] def play(): banana = GRAPEFRUIT melon = None coconut(banana) for plum in range(9): prun...
eb3e549e3b4b155a018967890bed3f1d8b5ba1da
7233716fbf9fff94240d14770b3fc3f3ada10d9b
/devel/.private/gazebo_msgs/lib/python2.7/dist-packages/gazebo_msgs/srv/_ApplyJointEffort.py
6c9d00df1dcea2740ee6afbc680cd66255a1ae00
[]
no_license
shashankseth01/E-yantra
58d42dce90667ca37f31f2cf111ee98c39468617
23432e058fce7733bd1a8399fd6edc20967fa6a3
refs/heads/main
2023-02-04T00:36:57.230996
2020-12-21T09:55:23
2020-12-21T09:55:23
316,716,460
2
1
null
null
null
null
UTF-8
Python
false
false
11,825
py
# This Python file uses the following encoding: utf-8 """autogenerated by genpy from gazebo_msgs/ApplyJointEffortRequest.msg. Do not edit.""" import codecs import sys python3 = True if sys.hexversion > 0x03000000 else False import genpy import struct import genpy class ApplyJointEffortRequest(genpy.Message): _md5su...
9c49e21e8fccfbd0b43c02b5ef63fdc32eccfdd4
9b7291d81a416bde2ec181229601eb2e33c7b8b2
/monophoton/spikes/collect.py
d0cf880677d760340d04e54dfd7cde2976bd94cd
[]
no_license
MiT-HEP/MonoX
ab1528e72dad2590a0ae64f1a1d47195139e1749
224ee01107a94cedf8563c497edb2f326b99d9b1
refs/heads/master
2021-01-24T06:04:16.645559
2019-11-15T09:18:40
2019-11-15T09:18:40
41,823,403
1
9
null
2018-07-19T17:05:30
2015-09-02T19:33:33
Python
UTF-8
Python
false
false
3,528
py
import os import sys import re import math import array thisdir = os.path.dirname(os.path.realpath(__file__)) basedir = os.path.dirname(thisdir) sys.path.append(basedir) import config import utils from datasets import allsamples import ROOT arun = array.array('I', [0]) alumi = array.array('I', [0]) aevent = array.ar...
463dcc5b3f6bd9f93ff40fc5eea5cc0d69680a9e
83a637ff77108f2582397c4ca4b2e7953ef4e137
/categorical_embedder/processors/DiscriminativeWrapper.py
09dac41aa0d8882e5556a2fbe6f7a17d8590bdee
[ "Apache-2.0" ]
permissive
erelcan/categorical-embedder
066e0e279826f27aae0e927744d745bd724ba340
376b8779500af2aa459c879f8e525f2ef25d6b31
refs/heads/master
2023-02-03T01:44:01.896677
2020-12-19T10:51:11
2020-12-19T10:51:11
322,824,753
3
0
null
null
null
null
UTF-8
Python
false
false
1,574
py
from categorical_embedder.processors.ProcessorABC import ProcessorABC class DiscriminativeWrapper(ProcessorABC): def __init__(self, feature_processor, label_processor): super().__init__() self._feature_processor = feature_processor self._label_processor = label_processor def process(s...
0ffcd09026f2a8b1327d97c4bfc0ae63dcfbf8bf
711756b796d68035dc6a39060515200d1d37a274
/output_exocyst_tags/optimized_8006.py
92f04b4eb65847eae8c1440af4a4a0c165c44645
[]
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
4,845
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...
b2dcbad518e02a363f8d5ba7c30bfe5a7c22ce1e
2a54e8d6ed124c64abb9e075cc5524bb859ba0fa
/.history/1-Python-Basics/30-sets2_20200413211158.py
368c37538e1350070bdbcc7b3a0b51dc8b9c681f
[]
no_license
CaptainStorm21/Python-Foundation
01b5fbaf7a913506518cf22e0339dd948e65cea1
a385adeda74f43dd7fb2d99d326b0be23db25024
refs/heads/master
2021-05-23T01:29:18.885239
2020-04-23T19:18:06
2020-04-23T19:18:06
253,171,611
0
0
null
null
null
null
UTF-8
Python
false
false
1,001
py
# methods my_set = { 342, 23, 1, 2, 3, 9, 10, 9 } your_set = [ 342, 23, 42, 46, 53, 34, 10 ] print(my_set) #output {1, 2, 3, 9} print(my_set.difference(your_set)) #output {1, 2, 3, 9, 342, 23} my_set.discard(10) print(my_set) #output {1, 2, 3, 9, 342, 23} my_set.intersection(your_set) print(my_set) #output {1,...
26591cf0c6446d0ec56368b1f6e560280d10c616
c01a58ecd6614128e3c29a70e3e768b220a2a4a2
/common/xrd-ui-tests-python/helpers/mockrunner.py
76c1f651e438d70bb1f13223c5d66af078e33553
[ "MIT" ]
permissive
nordic-institute/X-Road-tests
772a6d7485606c1f10b61a1260b8fb66111bf0be
e030661a0ad8ceab74dd8122b751e88025a3474a
refs/heads/develop
2021-06-03T01:38:20.542859
2019-03-18T12:16:18
2019-03-18T12:16:18
125,643,677
2
3
MIT
2018-06-14T15:09:21
2018-03-17T15:36:32
Python
UTF-8
Python
false
false
4,103
py
from helpers import ssh_client import re import time class MockRunner: ''' Class that tries to control the mock service script (SoapUI MockRunner) over an SSH connection. Uses ssh_helper.SSHClient component. Connects to SSH server, sends a one-liner command and then waits until a specified ...
2ca0fac55fa66f6d34206280619eb6e5a2cb335a
7a30e60c1fedb9e03ef772e419a0b1258c605586
/superlists/urls.py
feb9e81f54a586dcf30294be1af0a3c74053954c
[]
no_license
ndjman7/TDD
1e6b5fb2210b48950c9ad1fc4d101ebf6e4fcce7
0950e2aab436ba00bf4a9b072930c8c2b225b9f0
refs/heads/master
2021-01-12T04:29:40.717412
2017-02-20T06:13:12
2017-02-20T06:13:12
77,623,426
0
0
null
null
null
null
UTF-8
Python
false
false
891
py
"""superlists URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.10/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...
1b994a2be95d50152c5761e91816f512f0cd103d
1676168244eed1c5610b2c1c38f692f89990b112
/part4-ML/from_1021_Django/django_movie_second/movies/urls.py
a7004f938653e54f8ea8c49830a0f6a92dc15b22
[]
no_license
gtpgg1013/AI_docs
351e83f986d66224c82fff2de944753c98336d03
43f8eed8b2732314bd40ed65e1d7eb44dd28fc04
refs/heads/master
2022-12-09T17:32:02.992554
2019-11-20T09:03:56
2019-11-20T09:03:56
182,927,565
1
0
null
2022-12-08T06:50:23
2019-04-23T03:54:56
Jupyter Notebook
UTF-8
Python
false
false
533
py
from django.urls import path from . import views app_name = 'movies' urlpatterns = [ path('', views.index, name="index"), path('new/', views.new, name="new"), path('<int:movie_pk>/', views.detail, name="detail"), path('<int:movie_pk>/edit/', views.edit, name="edit"), path('<int:movie_pk>/delete/',...
6063ac49e1b928783643b11ac36053dbf051478d
2c1429a1bd2d0477fd88119d4d778fc68c82adcf
/python/DeepSeaSceneLighting/SceneShadowManagerPrepare.py
f17117f268680fdab051407968ae346b70024422
[ "Apache-2.0" ]
permissive
akb825/DeepSea
d7ac54f6d8243d43d6ea538159f3067ab7e79880
5a909b4f51717bc59682e51ad6aa598a25a9b965
refs/heads/master
2023-08-31T23:45:19.533393
2023-08-29T07:30:36
2023-08-29T07:30:43
142,716,767
10
2
null
null
null
null
UTF-8
Python
false
false
1,601
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: DeepSeaSceneLighting import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class SceneShadowManagerPrepare(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): ...
76de8db7db7b116df2a653e92efdb7a12c91cddb
f4b60f5e49baf60976987946c20a8ebca4880602
/lib64/python2.7/site-packages/acimodel-1.3_2j-py2.7.egg/cobra/modelimpl/actrl/rulehitparthist1w.py
8a6a3bb187bab86c4cfee202fd4bda3c43cf816b
[]
no_license
cqbomb/qytang_aci
12e508d54d9f774b537c33563762e694783d6ba8
a7fab9d6cda7fadcc995672e55c0ef7e7187696e
refs/heads/master
2022-12-21T13:30:05.240231
2018-12-04T01:46:53
2018-12-04T01:46:53
159,911,666
0
0
null
2022-12-07T23:53:02
2018-12-01T05:17:50
Python
UTF-8
Python
false
false
34,176
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2016 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
abdafe161112ab293d182ea37b60e0b2175203e4
1eaa6c2500868d0c60b5b2cd552cd671b635de32
/Algorithm/sword of offer/2.替换空格.py
d830f7aee41e3cd0884252602f7cb3b806b7c3bc
[]
no_license
jiangyuwei666/my-study-demo
f85f14a599c328addb5af09078d404f1139e0a82
9e2baef2f36f071f8903768adb8d5a5a8c1123f6
refs/heads/master
2022-04-30T16:47:24.715570
2022-03-24T09:08:43
2022-03-24T09:08:43
152,565,041
5
0
null
null
null
null
UTF-8
Python
false
false
241
py
def solution_by_py(s): s = s.replace(' ', '%20') return s def solution_by_py1(s): s = s.split(' ') s = '%20'.join(s) return s # def solution_by_re(s): # print(solution_by_py('a b c')) print(solution_by_py1('a b c'))
382ea429b816b3ca6a1ce86c23964238e697ed53
5796cdc0bf59ed09e1493804bd86e982daf73f7f
/python/interp.py
d5bb30cfd8ef1975b51b3ba3c6504a05101289a1
[]
no_license
pgDora56/BrainfxckInterpreter
ec67113b4480a8b328fde126932ac1061f2999d0
c3544922e4422633d869266b5a9035d87806c92c
refs/heads/master
2020-09-20T06:36:23.508956
2019-12-09T08:13:05
2019-12-09T08:13:05
224,401,128
0
0
null
null
null
null
UTF-8
Python
false
false
1,506
py
import sys ptr = 0 memory = [0] readcnt = 0 whilemark = [] if len(sys.argv) == 2: fname = sys.argv[1] with open(fname) as f: program = f.read() while readcnt < len(program): c = program[readcnt] if c == ">": if ptr < 1000000: ptr += 1 ...
f94f3789185b61d958643300f7e8cde8600bad3e
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_23037.py
3bd2a710d8fe38850715610ce1eaa8fd6bce9240
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
135
py
# create dictionary based on filter in sqlalchemy by_name = {g.name: g.users for g in Group.query.options(db.joinedload(Group.users))}
658baaf3e894c98deb60ec089ad7d2c063bd3ff8
eb9f655206c43c12b497c667ba56a0d358b6bc3a
/python/helpers/typeshed/stubs/humanfriendly/humanfriendly/tables.pyi
0b324b1f32331119ff29d6ec1a91025a38402f4f
[ "Apache-2.0", "MIT" ]
permissive
JetBrains/intellij-community
2ed226e200ecc17c037dcddd4a006de56cd43941
05dbd4575d01a213f3f4d69aa4968473f2536142
refs/heads/master
2023-09-03T17:06:37.560889
2023-09-03T11:51:00
2023-09-03T12:12:27
2,489,216
16,288
6,635
Apache-2.0
2023-09-12T07:41:58
2011-09-30T13:33:05
null
UTF-8
Python
false
false
304
pyi
from typing import Any def format_smart_table(data, column_names): ... def format_pretty_table(data, column_names: Any | None = ..., horizontal_bar: str = ..., vertical_bar: str = ...): ... def format_robust_table(data, column_names): ... def format_rst_table(data, column_names: Any | None = ...): ...
068979971645c1203a8ee605549bd08a140f44c8
2d8a3a9b15e76bacd24e1627a124f0f60a83b253
/sfepy/terms/terms_new.py
a3b8b1b2718a856c97abc55b196a36c84c25a6e7
[ "BSD-3-Clause" ]
permissive
cheon7886/sfepy
2722ae15bb52cdf20bac264771c32b1b051bb2ae
2e9eb78341f9072ad07424221a64306c95c5ebd1
refs/heads/master
2021-01-19T19:33:11.938856
2015-03-29T08:56:35
2015-03-29T08:56:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,892
py
""" todo: - get row variable, col variable (if diff_var) - determine out shape - set current group to all variable arguments - loop over row/col dofs: - call term ? how to deal with components of (vector) variables? (*) for given group, Variable has to be able to: - evaluate value in quadr...
1ae492172aa438a72336aba09bcd68fe23e03941
b90190cd97f1aa2a3168d3f25ce6832a1c22d1b2
/Code/models/arena/arena.py
0cb906374edd997cd4c0ec9067f3c7282035faab
[]
no_license
stjordanis/Decentralized-and-multi-agent-control-of-Franka-Emika-Panda-robot-in-continuous-task-execution
7c002cd4dea95b1a1256172c6d8d38c6226199f9
c2b27e7f8059e3c29c876b60656f6a20d55e5da2
refs/heads/main
2023-07-31T20:47:24.476564
2021-10-01T08:44:19
2021-10-01T08:44:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
499
py
import numpy as np from models.base import MujocoXML from utils.mjcf_utils import array_to_string, string_to_array class Arena(MujocoXML): """Base arena class.""" def set_origin(self, offset): """Applies a constant offset to all objects.""" offset = np.array(offset) for node in self.w...
699ff99fdcca12765962e862f59dd227a46dd7b7
edf7fc01b731c1d17324a1acd095bac93c3537ef
/test/test_sampling.py
ea93e3e3d7755398f50c401a7758c01032c10eae
[ "BSD-3-Clause" ]
permissive
bernardotorres/profiling
f6d3d8a764c75ce6bb3478deb562c8160d9bad04
8763a5d11c4ebd06b5a90bdced0a01aaadf02687
refs/heads/master
2020-04-01T16:45:40.985548
2018-10-18T06:53:41
2018-10-18T06:53:41
153,396,990
0
0
BSD-3-Clause
2018-10-17T04:49:31
2018-10-17T04:49:31
null
UTF-8
Python
false
false
2,752
py
# -*- coding: utf-8 -*- from __future__ import division import os import signal import sys import pytest from _utils import find_stats, spin from profiling.sampling import SamplingProfiler from profiling.sampling.samplers import ItimerSampler, TracingSampler def spin_100ms(): spin(0.1) def spin_500ms(): ...
94a491393853c4e7890846273a17e6a7fd0545c2
422ce4dad362cd9a1112965e6c5df17d13fe2287
/econom_game/teams/migrations/0012_auto_20180830_1921.py
fa4b37689379a6dbbb2ad4f08fb70b61f95351cc
[]
no_license
zzaakiirr/econom_game
22bfc7f8b009ab4e6366a912df731f5a234da506
56f0ca2e29e17b18cc7ec5248e66066bb061bc19
refs/heads/master
2020-03-16T15:05:21.872872
2018-09-06T11:10:08
2018-09-06T11:10:08
132,727,278
3
2
null
2018-08-30T22:32:43
2018-05-09T08:38:26
Python
UTF-8
Python
false
false
501
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-08-30 19:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('teams', '0011_auto_20180829_1251'), ] operations = [ migrations.AlterField(...
de13a9ae414154f6bec5b36554ab9c6650cf7929
d93159d0784fc489a5066d3ee592e6c9563b228b
/Validation/RecoParticleFlow/Benchmarks/Tools/submit.py
87e493ec5ff2edf11475e492be5dbb1190793c81
[]
permissive
simonecid/cmssw
86396e31d41a003a179690f8c322e82e250e33b2
2559fdc9545b2c7e337f5113b231025106dd22ab
refs/heads/CAallInOne_81X
2021-08-15T23:25:02.901905
2016-09-13T08:10:20
2016-09-13T08:53:42
176,462,898
0
1
Apache-2.0
2019-03-19T08:30:28
2019-03-19T08:30:24
null
UTF-8
Python
false
false
2,014
py
#!/usr/bin/env python # to submit a benchmark webpage to the validation website # author: Colin import shutil, sys, os, valtools from optparse import OptionParser parser = OptionParser() parser.usage = "usage: %prog" parser.add_option("-e", "--extension", dest="extension", help="adds an ext...
4b0ad8b0dbc902231fb8f660ff4c04d461fd7e54
bb6e80f7deff48a720d04850d9b4fd2bb379e14d
/ExpEYES17/UserManual/fr/rst/exp/prettyLaTeX.py
ae038f27591a7cd40285480463f4fb97f8fcf025
[]
no_license
EduCodeBe/expeyes-programs
6a04881c4c2c4a198999baf57802508985ad8a06
2464866382155ed4c951962be4313fdcfe73dcec
refs/heads/master
2020-03-22T15:21:29.519546
2018-07-08T17:21:32
2018-07-08T17:21:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,241
py
#!/usr/bin/python3 import os, sys, re def filterSVG(t,verbose=False): """ remove .svg in image names, replace by .pdf """ if verbose: sys.stderr.write("replacing .svg extensions by .pdf for included graphics\n") return re.sub(r"\.svg", ".pdf", t) def filterPNG(t,verbose=False): """ ...
65671d098435909935799ce253b7923906501a6e
ffa8a728f43b6de2b9a4dbfda18f3eb8518fbbbd
/snmp-mibs/DIFFSERV-MIB.py
a6c5c50bfcc5d7792053db572f5febdaddf3aee1
[]
no_license
oriordan/pysnmp_mibs
60e0d80e3f50490d9e6ab29d21627fec59ab0cfc
92d39abf358a952e55a426e2a4658f4b0824182f
refs/heads/master
2021-01-09T23:37:59.137750
2014-11-26T20:07:28
2014-11-26T20:07:28
20,253,987
11
15
null
2020-07-26T02:49:32
2014-05-28T10:43:18
Python
UTF-8
Python
false
false
99,645
py
# PySNMP SMI module. Autogenerated from smidump -f python DIFFSERV-MIB # by libsmi2pysnmp-0.1.3 at Thu May 22 11:57:34 2014, # Python version sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) # Imports ( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", ...
03c83a59017b89259eefe545f24d5e0bce961cf1
9e85747a446175575533485593054834971cd372
/colegio/educa/migrations/0003_auto_20200620_1553.py
d394ddec856dac48584594ac20e8286dd0d25f87
[]
no_license
JTorero/Colegios
63337038c1b67cc8dcf419a5d35d89b9342ec6b0
e0403d0cd3ea8ebfbe8f0d7804270eb398c8e560
refs/heads/master
2022-11-09T02:12:03.604676
2020-06-22T03:58:55
2020-06-22T03:58:55
273,765,254
0
2
null
2020-06-22T03:58:56
2020-06-20T18:43:14
Python
UTF-8
Python
false
false
1,190
py
# Generated by Django 2.2.7 on 2020-06-20 20:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('educa', '0002_alumno'), ] operations = [ migrations.CreateModel( name='Periodo', fi...
367414398a374e2ad96f456f195a778d28ec7824
40c4b0c31a5870a9201d3d42a63c5547092e5912
/frappe/website/doctype/personal_data_download_request/test_personal_data_download_request.py
71e269f0700206e2de4862dc22964e0a0d24b531
[ "MIT" ]
permissive
ektai/frappe3
fab138cdbe15bab8214cf623d9eb461e9b9fb1cd
44aa948b4d5a0d729eacfb3dabdc9c8894ae1799
refs/heads/master
2022-12-25T15:48:36.926197
2020-10-07T09:19:20
2020-10-07T09:19:20
301,951,677
0
0
null
null
null
null
UTF-8
Python
false
false
2,047
py
# -*- coding: utf-8 -*- # Copyright (c) 2019, Frappe Technologies and Contributors # See license.txt from __future__ import unicode_literals import frappe import unittest import json from frappe.website.doctype.personal_data_download_request.personal_data_download_request import get_user_data from frappe.contacts.doct...
6bf950b5543e6aa415842c0dcc5d252241851b6a
016ad44fdc47417de1dbb86e97bd330944020b94
/tests/test_urls.py
9f8e02827e3f968bf924971b60e43ba594ed8cc9
[ "MIT" ]
permissive
sbraz/sphinx-notfound-page
f205be67cb626ed612047880bcf7c208966eda1e
37a217992922ce07f116bf25df51a7cf5c927279
refs/heads/master
2022-12-11T12:44:34.261971
2020-09-10T10:54:19
2020-09-10T10:54:19
295,368,656
0
0
null
2020-09-14T09:32:25
2020-09-14T09:32:24
null
UTF-8
Python
false
false
20,366
py
# -*- coding: utf-8 -*- import os import pytest import sphinx import shutil import warnings srcdir = os.path.join( os.path.dirname(os.path.abspath(__file__)), 'examples', 'default', ) rstsrcdir = os.path.join( os.path.dirname(os.path.abspath(__file__)), 'examples', '404rst', ) @pytest.fixtur...
c5a1c49864b92fb6c4dcd7ee138f89563b247dae
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/license/consumedtask.py
755a8455d7a73d4dbda910708d94f6333059703c
[]
no_license
aperiyed/servicegraph-cloudcenter
4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff
9eb7975f2f6835e1c0528563a771526896306392
refs/heads/master
2023-05-10T17:27:18.022381
2020-01-20T09:18:28
2020-01-20T09:18:28
235,065,676
0
0
null
2023-05-01T21:19:14
2020-01-20T09:36:37
Python
UTF-8
Python
false
false
5,767
py
# coding=UTF-8 # ********************************************************************** # Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved # written by zen warriors, do not modify! # ********************************************************************** from cobra.mit.meta import ClassMeta from cobra.m...
6ba1c6858b83940c3599f01f612860955bfeecd0
781e2692049e87a4256320c76e82a19be257a05d
/assignments/python/wc/src/311.py
ad8d0ddb3393ecd74fb6c04b5ba6a331d199648b
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
270
py
from collections import Counter def word_count(words): wordCount = Counter() for word in words.split(): word = ''.join(ch for ch in word if ch.isalnum()).lower() if not word: continue wordCount[word] += 1 return wordCount
fa89c2b5471eefbf222f8142835081003be7ccbb
610942849a2fac0b229af569c0c3db001d87eb94
/utest/libdoc/test_libdoc_api.py
de2ea0957c9f96a0f21a95212f20f403dd24236e
[ "Apache-2.0", "CC-BY-3.0" ]
permissive
jnhyperion/robotframework
a6befd1c2d50d08b7c625a73228b43c04769ca3d
559eb744c26f6acf11eb2d3a11be8343532c9a90
refs/heads/master
2023-01-27T12:50:41.962755
2022-08-24T08:33:03
2022-08-24T08:33:03
273,444,398
1
0
Apache-2.0
2023-01-13T08:09:17
2020-06-19T08:30:13
Python
UTF-8
Python
false
false
1,388
py
from io import StringIO import sys import tempfile import unittest from robot import libdoc from robot.utils.asserts import assert_equal class TestLibdoc(unittest.TestCase): def setUp(self): sys.stdout = StringIO() def tearDown(self): sys.stdout = sys.__stdout__ def test_html(self): ...
5f1a9693ae8b87d22ffb444dacd8ef3562f6ac77
f43d3731a21ee5df09298f5541b52484f408e010
/NewsModel/migrations/0008_auto_20170815_1747.py
479138d6adfe7c26b885c29401ac5f0adb3f2221
[]
no_license
cash2one/wechat_admin
2ba8c35deffff37c263b7091229ba2d86f2aaeaf
af0712fdad867d76dcee2092abcf32cada49d075
refs/heads/master
2021-05-04T22:22:53.514787
2017-09-25T10:03:07
2017-09-25T10:03:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,147
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-15 09:47 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('NewsModel', '0007_auto_20170815_1741'), ] operations = [ migrations.AlterFi...
[ "“[email protected]”" ]
8dd5c50b0655740204fdad26e5451ea16c624a82
506f5da3ab7675b8beb406e735f837927623d705
/docs/conf.py
ce82727ae6c3b4977951b6b9797a5b52185ddcff
[ "MIT" ]
permissive
pombredanne/weavery
367801fc9bdc5bede53bbbbd6d35e2144f6323ef
b5cfe5387f6d14aa3fa09487bd60748bec79fc63
refs/heads/master
2021-05-09T18:19:24.533464
2017-10-07T05:07:27
2017-10-07T05:07:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,366
py
# -*- coding: utf-8 -*- # # weavery documentation build configuration file, created by # sphinx-quickstart on Fri Oct 6 18:15:49 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # A...
586ad0103c3a894f7a97fab1082d6b4ed5220fd3
f09e98bf5de6f6c49df2dbeea93bd09f4b3b902f
/google-cloud-sdk/lib/surface/auth/__init__.py
f02fed108e951643a585b30690c3e329b4aeaf4e
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
Peterfeng100/notepal
75bfaa806e24d85189bd2d09d3cb091944dc97e6
d5ba3fb4a06516fec4a4ae3bd64a9db55f36cfcd
refs/heads/master
2021-07-08T22:57:17.407571
2019-01-22T19:06:01
2019-01-22T19:06:01
166,490,067
4
1
null
2020-07-25T04:37:35
2019-01-19T00:37:04
Python
UTF-8
Python
false
false
2,031
py
# -*- coding: utf-8 -*- # # Copyright 2013 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
c1e3dce31ab3f2259b84c16695ec02b683b497d8
1752e7d1cd7bca76b3e8eaf1b2bb7eee175e1d46
/gitwrapperlib/_version.py
96d0effe0e9f44c11ba9837acb4c44ace0a752bf
[ "MIT" ]
permissive
costastf/gitwrapperlib
f231947aeecea86ca00c556785318032559a6b3c
521948528c175e5d1cd5c9b794a5927c50fbb78f
refs/heads/main
2023-08-16T23:43:05.317150
2023-06-13T11:30:44
2023-06-13T11:30:44
116,044,039
0
5
MIT
2023-09-06T18:29:46
2018-01-02T18:19:00
Python
UTF-8
Python
false
false
2,194
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # File: _version.py # # Copyright 2018 Costas Tyfoxylos # # 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 withou...
8d72a1f6de5f7cd5b4ddf699eba0de9e05b8231c
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/add_program_response.py
8fba53ef1e1dfa09c08d0090bc1597b16b2eeefb
[ "Apache-2.0" ]
permissive
zhouxy666/huaweicloud-sdk-python-v3
4d878a90b8e003875fc803a61414788e5e4c2c34
cc6f10a53205be4cb111d3ecfef8135ea804fa15
refs/heads/master
2023-09-02T07:41:12.605394
2021-11-12T03:20:11
2021-11-12T03:20:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,417
py
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class AddProgramResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
9ea58e81f9278bd420e79295e83a82243615180c
1c07f2090687a7789528ee5e674c39c019ecb57d
/src/server/venv/bin/pip
5ed4d16b44aeaf8f622f6490fb9c51078387fe16
[]
no_license
GitYR/EEG-Communication
c37a5e8f6f27f1d2cc9907b0580db0639a2498fd
7064d8efcdba18f235b1b46c0137559f760abac0
refs/heads/master
2022-09-24T21:35:29.892217
2020-05-27T09:54:48
2020-05-27T09:54:48
266,724,514
0
0
null
2020-05-25T08:24:45
2020-05-25T08:24:45
null
UTF-8
Python
false
false
265
#!/home/hayoung/PycharmProjects/EEG_SERVER/venv/bin/python3 # -*- coding: utf-8 -*- import re import sys from pip._internal.cli.main import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
db9b04a272126f991bb34f351bc484e806e522d2
ea5cb47780499016ad4a09c300358df96ce6b22f
/examples/py_example.py
a5c08b76bf2962d8f1a569a4869ea37b811c7abc
[ "MIT" ]
permissive
liuguoyou/PyPatchMatch
84e02d26534fcc62bc2f8368db38dfd9883a074f
79e5a19296ec044c619484ff7a9e8cded43acd49
refs/heads/master
2020-12-08T12:21:43.706407
2020-01-10T03:37:10
2020-01-10T03:37:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
446
py
#! /usr/bin/env python3 # -*- coding: utf-8 -*- # File : test.py # Author : Jiayuan Mao # Email : [email protected] # Date : 01/09/2020 # # Distributed under terms of the MIT license. from PIL import Image import sys sys.path.insert(0, '../') import patch_match if __name__ == '__main__': source = Image....
c908e3859988f35653deebb62457f73eeba5a12b
c09e2e3b3743b86a24eadd0d62717d4925a661b3
/setup.py
5638fab5ecbd18ab65729f9752fc0abd8a87cee2
[ "MIT" ]
permissive
knowsuchagency/foobar
c0a4a2b067663a8d1b2a26c5ddc2994dc6f05ab9
b02bea7e6a9af232175443e6b1512fc531b61f40
refs/heads/master
2020-12-02T06:36:31.700633
2017-07-11T07:21:14
2017-07-11T07:21:14
96,863,096
0
0
null
null
null
null
UTF-8
Python
false
false
935
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from configparser import ConfigParser from setuptools import setup def get_requirements(section: str) -> list: """Read requirements from Pipfile.""" pip_config = ConfigParser() pip_config.read('Pipfile') def gen(): for it...
c08aed31ba2639b58a40e30e827a07c4a0f9456c
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02836/s704418504.py
3bddb063b93136d0f9c5b66900e0c03c589e9032
[]
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
107
py
s = input() n = int(len(s)/2) x = 0 for i in range(n): if s[i] != s[-1-i]: x += 1 print(int(x))
a7b7144aee7e78d723595ba5bc5e22bd66793753
209c876b1e248fd67bd156a137d961a6610f93c7
/paddle/fluid/eager/auto_code_generator/generator/eager_gen.py
5ae57faa37bfeabc4df04467245f8a306a23ec43
[ "Apache-2.0" ]
permissive
Qengineering/Paddle
36e0dba37d29146ebef4fba869490ecedbf4294e
591456c69b76ee96d04b7d15dca6bb8080301f21
refs/heads/develop
2023-01-24T12:40:04.551345
2022-10-06T10:30:56
2022-10-06T10:30:56
544,837,444
0
0
Apache-2.0
2022-10-03T10:12:54
2022-10-03T10:12:54
null
UTF-8
Python
false
false
94,326
py
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
34767bd0c8b2f5feb057dcc43c1748422c9ddea3
368c66467b78adf62da04cb0b8cedd2ef37bb127
/BOJ/Python/10828_스택.py
b380cf362f317d58d32f74c7a857ea8da85d9885
[]
no_license
DJHyun/Algorithm
c8786ddcd8b5693fc9b3b4721fdf1eeda21611c5
fd6ae800886dac4ec5ff6cf2618bc2c839a76e7a
refs/heads/master
2020-07-30T16:32:49.344329
2020-02-25T07:59:34
2020-02-25T07:59:34
210,289,983
0
0
null
null
null
null
UTF-8
Python
false
false
774
py
# baekjoon source = "https://www.acmicpc.net/problem/10828" import sys T = int(sys.stdin.readline()) stack = [0]*T tmp = -1 for test_case in range(T): N = sys.stdin.readline().split() if len(N) > 1: cmd = N[0] number = N[1] else: cmd = N[0] if cmd == 'push': ...
ebfa4b5433fd5445fa52fa4128d08b66bb1c8acc
b64fcb9da80d12c52bd24a7a1b046ed9952b0026
/client_sdk_python/providers/auto.py
e51b3ffbd7a372bb388c2dc63fe843458be132af
[ "MIT" ]
permissive
PlatONnetwork/client-sdk-python
e59f44a77690806c8763ed6db938ed8447d42417
94ad57bb34b5ee7bb314ac858071686382c55402
refs/heads/master
2022-07-09T08:49:07.312759
2021-12-24T08:15:46
2021-12-24T08:15:46
173,032,954
7
16
MIT
2022-08-31T02:19:42
2019-02-28T03:18:03
Python
UTF-8
Python
false
false
2,788
py
import os from urllib.parse import ( urlparse, ) from client_sdk_python.exceptions import ( CannotHandleRequest, ) from client_sdk_python.providers import ( BaseProvider, HTTPProvider, IPCProvider, WebsocketProvider, ) HTTP_SCHEMES = {'http', 'https'} WS_SCHEMES = {'ws', 'wss'} def load_prov...
e91bc932fdd46fc551c4dde40b6c032d21b7ba8e
9a9088713c917ac47c0b8713d6969b2cfcdbadac
/leetcode_python/549.Binary_Tree_Longest_Consecutive_Sequence_II.py
d73a5a900ef7632ab534ea974479d43f89361fdf
[]
no_license
zihuaweng/leetcode-solutions
615fdcb9178b19764b4d30bcfe65a9f785e77270
e431ff831ddd5f26891e6ee4506a20d7972b4f02
refs/heads/master
2023-02-06T03:58:26.413711
2020-12-26T05:23:03
2020-12-26T05:23:03
311,418,790
4
7
null
null
null
null
UTF-8
Python
false
false
934
py
#!/usr/bin/env python3 # coding: utf-8 # Time complexity: O() # Space complexity: O() # https://leetcode.com/problems/binary-tree-longest-consecutive-sequence-ii def longestConsecutive(self, root: TreeNode) -> int: def longest_path(root): if not root: return 0, 0 inc, dec = 1, 1 ...
03d4dc30e025720b6e6240e0e43e9d93e51dbaf7
e66fa131cff76fa3fe70e7b6649fa1332159c781
/ch09/generatorExp.py
f604819768741ec3d1548141beb0ef6c31cfaead
[]
no_license
chc1129/python_tutorial
c6d97c6671a7952d8a7b838ccb8aa3c352fa6881
2f8b389731bafbda73c766c095d1eaadb0f99a1c
refs/heads/main
2023-08-24T07:00:43.424652
2021-10-28T16:07:57
2021-10-28T16:07:57
341,532,732
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
print( sum(i*i for i in range(10)) ) xvec = [10, 20, 30] yvec = [7, 5, 3] print( sum(x*y, for x,y in zip(xvec, yvec)) unipue_words = set(word for line in page for word in line.split()) valedictorian = max((student.gpa, student.name) for student in graduates) data = 'golf' list(data[i] for i in range(len(data)-1, -1...
b419828ae3ce92ddec47d5eb90005d575fb2bf97
d65128e38be0243f279e0d72ef85e7d3c5e116ca
/base/site-packages/gdata/calendar/__init__.py
cea1a03f5836de81918a9ea01e2fcc841928e682
[ "Apache-2.0" ]
permissive
ZxwZero/fastor
19bfc568f9a68f1447c2e049428330ade02d451d
dd9e299e250362802032d1984801bed249e36d8d
refs/heads/master
2021-06-26T06:40:38.555211
2021-06-09T02:05:38
2021-06-09T02:05:38
229,753,500
1
1
Apache-2.0
2019-12-23T12:59:25
2019-12-23T12:59:24
null
UTF-8
Python
false
false
34,390
py
#!/usr/bin/python # # Copyright (C) 2006 Google 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 ...
f91d411468aba18dd844b4bd362c56aa8218192b
be01d0d54723d1e876c9a15618921dffe2b2255a
/Python/123.best_time_to_buy_sell_stackIII.py
408394965df626a09202ee7117c0b0d7b2fb3021
[]
no_license
jxlxt/leetcode
17e7f25bf94dd334ac0d6254ffcffa003ed04c10
a6e6e5be3dd5f9501d0aa4caa6744621ab887f51
refs/heads/master
2023-05-26T22:10:03.997428
2023-05-24T02:36:05
2023-05-24T02:36:05
118,216,055
0
0
null
2018-01-20T06:31:57
2018-01-20T06:30:06
null
UTF-8
Python
false
false
638
py
class Solution: def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ n = len(prices) if n <= 1: return 0 p1, p2 = [0] * n, [0] * n minV, maxV = prices[0], prices[-1] for i in range(1, n): minV = min(pric...
3f24505ba0b0df5ce1e41a599054ca1234b21a5f
303bac96502e5b1666c05afd6c2e85cf33f19d8c
/solutions/python3/245.py
2a1a8626a9b652689053d04fde6cd9e553dc7683
[ "MIT" ]
permissive
jxhangithub/leetcode
5e82f4aeee1bf201e93e889e5c4ded2fcda90437
0de1af607557d95856f0e4c2a12a56c8c57d731d
refs/heads/master
2022-05-22T12:57:54.251281
2022-03-09T22:36:20
2022-03-09T22:36:20
370,508,127
1
0
MIT
2022-03-09T22:36:20
2021-05-24T23:16:10
null
UTF-8
Python
false
false
439
py
class Solution: def shortestWordDistance(self, words, word1, word2): i1 = i2 = -1 res, same = float("inf"), word1 == word2 for i, w in enumerate(words): if w == word1: if same: i2 = i1 i1 = i if i2 >= 0: res = min(res, i1 - i2) ...
b596e8250368af057a20ec19b85049a800aebf86
b46e3f6472e2ea4605f4d088a211dbaff2493574
/reviewboard/dependencies.py
ad815f50f2c2685d16d32fec614c8baabbda853d
[ "MIT" ]
permissive
fgallaire/reviewboard
360501a9f39c5898c54a80801c790f53b0a74f39
e6b1323aee5e361754b110e4604ea5fc098050fe
refs/heads/master
2021-01-18T03:13:56.561458
2017-03-22T14:41:15
2017-03-22T14:41:15
85,837,942
0
0
null
2017-03-22T14:30:31
2017-03-22T14:30:31
null
UTF-8
Python
false
false
2,138
py
"""Version information for Review Board dependencies. This contains constants that other parts of Review Board (primarily packaging) can use to look up information on major dependencies of Review Board. The contents in this file might change substantially between releases. If you're going to make use of data from thi...
d72826271b3bd2f99dc786efae7454c29142b060
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_22284.py
920cb5cd1458f3bda5ea7fed8c9f8ece04a5a324
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
51
py
# Are greenlets really useful by themselves? print
76e8eba313f8b3e1df3b59f6a7f19ef2cec47afc
f76e11d4da15768bf8683380b1b1312f04060f9a
/fix_uppsala_mw.py
37b2e1f5aebb99a509df6f9d9861fadc86fee9cf
[]
no_license
rasoolims/scripts
0804a2e5f7f405846cb659f9f8199f6bd93c4af6
fd8110558fff1bb5a7527ff854eeea87b0b3c597
refs/heads/master
2021-07-07T03:53:20.507765
2021-04-13T14:53:00
2021-04-13T14:53:00
24,770,177
0
0
null
null
null
null
UTF-8
Python
false
false
305
py
import os,sys,codecs reader =codecs.open(os.path.abspath(sys.argv[1]),'r') writer =codecs.open(os.path.abspath(sys.argv[2]),'w') line =reader.readline() while line: spl = line.strip().split() if len(spl)<7 or not '-' in spl[0]: writer.write(line.strip()+'\n') line =reader.readline() writer.close()
2c8a22a8cc80312f3c5a73950fa5d5a693c26997
cbd2eee46663fad5b5375b13c8c21b1b06eb4c6b
/ecloud/code/src/main/python/manor/streamlet/delete_node.py
34611b5a6beb3e0fffee7b01a20ed11aa2690dd6
[]
no_license
1026237416/Python
ef474ee40d7efcd6dabb6fb0ecba81b4dcfc7e14
ffa8f9ffb8bfec114b0ca46295db05c4213c4c30
refs/heads/master
2021-07-05T00:57:00.456886
2019-04-26T10:13:46
2019-04-26T10:13:46
114,510,323
0
0
null
null
null
null
UTF-8
Python
false
false
1,080
py
import time from tornado import gen from manor.screwdriver import compute_util from manor.streamlet import StreamletBase def get_instance(params,node_id,serial): return DeleteNode(params,serial,node_id) class DeleteNode(StreamletBase): def __init__(self,params,serial,node_id): super(DeleteNode,sel...
96a321bea45c33c8c9cbe88fe3e61e609ad28006
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02862/s302553699.py
7f9f0b8e8757ae71fce60543238888054cf73342
[]
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
757
py
MOD = 1000000007 def mod_inv(mod, a): old_t, t = 0, 1 old_r, r = mod, a while r != 0: quotient = old_r // r old_r, r = r, old_r - quotient * r old_t, t = t, old_t - quotient * t return old_t % mod def combine(n, k, mod): if k > n // 2: k = n - k u = 1 f...
202ffdc331d2955587acdf296d2f6cc782d26fe0
0754e2e7aa1ffb90b54d563ce5a9317e41cfebf9
/keras/keras95_save_pd.py
0fcb88a0887f2d9415ea9ce5bffeaf323de5902a
[]
no_license
ChaeMyungSeock/Study
62dcf4b13696b1f483c816af576ea8883c57e531
6f726a6ecb43387e4a3b9d068a9c491b115c74c0
refs/heads/master
2023-01-24T20:59:52.053394
2020-12-07T14:54:34
2020-12-07T14:54:34
263,255,793
2
3
null
null
null
null
UTF-8
Python
false
false
688
py
import numpy as np import pandas as pd datasets = pd.read_csv("./data/csv/iris.csv", index_col=None, header=0, sep=',') # sep => ,를 기준으로 데이터를 구분한다. # pd => loc // ioc print(datasets) print(datasets.__class__) print(datasets.head()) # 위에서부터 5개 print(datasets.tail()) # 뒤에서부터 5개...
e204a81b675d672491c334f77f7cc5c4f8328a00
146cd740649b87032cbbfb97cde6ae486f76230b
/venv/lib/python3.6/site-packages/matplotlib/tests/test_transforms.py
06e95e1c8e9ba5befed1fa70548029b15d1f0917
[]
no_license
shellyhuang18/plank-filter-master
8b7024c46334062496f05d31eefc618ebae50b4e
8993a5b00f45841c3385fe997857bfdd10b71a84
refs/heads/master
2020-03-30T18:14:45.017957
2018-12-27T20:51:25
2018-12-27T20:51:25
151,490,556
0
1
null
2018-12-19T22:42:26
2018-10-03T22:50:58
Python
UTF-8
Python
false
false
25,344
py
import unittest import numpy as np from numpy.testing import (assert_allclose, assert_almost_equal, assert_array_equal, assert_array_almost_equal) import pytest import matplotlib.pyplot as plt import matplotlib.patches as mpatches import matplotlib.transforms as mtransforms from m...
c28e730ec640401a04d6082566e005633a87106c
ac01b09550ccedb68a05756a7455c60766b60857
/src/mcqexam/urls.py
eb22ad6e4bc7093c18a2bedd2176952a1c0afce6
[]
no_license
cseai/OpenEduQA
ea669cffa7d3f2f3ded2221c8cb85876ac1438df
8a90a843720a175c5da0af4fc51cc8e6542deb33
refs/heads/master
2023-06-10T23:17:40.502619
2021-07-05T12:43:44
2021-07-05T12:43:44
281,315,574
0
0
null
null
null
null
UTF-8
Python
false
false
437
py
from django.urls import path from .views import ( mcqexam_list, mcqexam_create, mcqexam_detail, mcqexam_update, mcqexam_delete, ) app_name = 'mcqexam' urlpatterns = [ path('', mcqexam_list, name='list'), path('create/', mcqexam_create, name='create'), path('<id>/', mcqexam_detail, name...
7ce7641da5e791639d86d1f99141db013420684f
e3f5f41b242650b4bef68aa191a5779aedd3e02e
/Chapter08/webapp/blog/__init__.py
2466cfc37bebc0f03e32230a209719fa73d38481
[ "MIT" ]
permissive
PacktPublishing/Mastering-Flask-Web-Development-Second-Edition
d4675c047bb51b0154958205f53c962ab4d32e4c
c3174127b40f8af1e2ab5e614994ffed7acbc11b
refs/heads/master
2023-05-11T00:23:30.213655
2023-01-18T09:14:14
2023-01-18T09:14:14
154,667,293
168
131
MIT
2023-05-01T20:52:13
2018-10-25T12:30:58
Python
UTF-8
Python
false
false
124
py
def create_module(app, **kwargs): from .controllers import blog_blueprint app.register_blueprint(blog_blueprint)
850e09600cdd38e57abc33b9302c7c5f830a5f8c
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_23737.py
f4d160c86ea326b6ca9a18cbdf1e3aa86cd0a403
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
189
py
# '(match_start1)...(match_start2)...(match_end)' find the shortest string match re.findall('(?=(\D\d{2,5}?.+?CA.?[ -._]*(?:\d{5})?))','6785 56767at435 hjfioej st. CA. 94827ifojwnf 93842')
eadece8617cdc25ac73efb28c19f2ad0379e8584
bd3528cc321dc37f8c47ac63e57561fd6432c7cc
/transformer/tensor2tensor/models/xception_test.py
b57a757b9cbc4ec041840652bf6955e95e961d8c
[ "MIT", "Apache-2.0" ]
permissive
oskopek/cil
92bbf52f130a1ed89bbe93b74eef74027bb2b37e
4c1fd464b5af52aff7a0509f56e21a2671fb8ce8
refs/heads/master
2023-04-15T10:23:57.056162
2021-01-31T14:51:51
2021-01-31T14:51:51
139,629,560
2
5
MIT
2023-03-24T22:34:39
2018-07-03T19:35:24
Python
UTF-8
Python
false
false
2,136
py
# coding=utf-8 # Copyright 2018 The Tensor2Tensor Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable...
a8ec94a76dd7aab2438f330dc057fb4b5da94e5f
f35bb12066639698a94847cba4b4628aede1da70
/contests/python/abc212/e.py
0ce3c5a5eda3746793766fd7066c0063fb7036f3
[]
no_license
fly1tkg/atcoder-python-note
7e74382a8867b07bb7a926988ac854a3b84e020b
6051b771c0a0399ce8caf1e24256a9909101b0e7
refs/heads/main
2023-08-26T23:52:14.766576
2021-10-30T11:58:38
2021-10-30T11:58:38
363,686,005
0
0
null
null
null
null
UTF-8
Python
false
false
37
py
N, M, K = map(int, input().split())
dbf4440fe65197fcde1ca3b5fa97b257966e36f2
a10377a6d0c7576b9e47209f49dea398181f73fe
/test/node/milticasttest.py
c0ccd0fe7d2886bebf8866e8cd1ec423bc99e87f
[ "BSD-3-Clause" ]
permissive
zymITsky/ants
14077dab214aff543bbc75a059240dd55f656916
52918d18c94a9a69c3b2495286e3384ba57ad6f8
refs/heads/master
2020-06-01T11:04:53.520288
2015-02-03T08:09:59
2015-02-03T08:09:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
528
py
''' test multicast ''' __author__ = 'wcong' import unittest from ants.cluster import cluster from ants.node import multicast class MulticastTest(unittest.TestCase): def test(self): cluster = cluster.ClusterInfo(name='test_cluster') multicast_node = multicast.MulticastManager(cluster, self.print_r...
c79b2076bfa7ce63eafa92d9ff0a8b9ecb045895
cc0c7b6af25ce5a1a5fe310628d8a43475f0c41f
/det3d/datasets/__init__.py
51e3d8f492a19c33b85427acab6d0244fa166b19
[ "Apache-2.0" ]
permissive
chisyliu/Det3D
183bb6c8d23277cecf9903184553b4c5cee88612
e437ca6eb2e9becf478ae0e5f6400f7c21bb7495
refs/heads/master
2023-03-03T09:00:29.790693
2021-01-21T10:44:34
2021-01-21T10:44:34
267,220,075
1
0
Apache-2.0
2021-01-21T10:44:35
2020-05-27T04:25:22
null
UTF-8
Python
false
false
748
py
from .builder import build_dataset # from .cityscapes import CityscapesDataset from .kitti import KittiDataset from .lyft import LyftDataset from .nuscenes import NuScenesDataset # from .custom import CustomDataset from .dataset_wrappers import ConcatDataset, RepeatDataset # from .extra_aug import ExtraAugmentation ...
bb5cf2bd9afbc637c54860db1dcfb80b4b6cdfcc
6eb56f2e3f14f2373be07fe95b1c6fedf1e2d49f
/month04/Project/day03-demo/ddblog/ddblog/settings.py
893e9f69c63fb46dbbd843cdeb0f5c78511d456d
[ "Apache-2.0" ]
permissive
chaofan-zheng/python_leanring_code
fe22b0370cadebf7456477269aff4a35cef0eb41
0af44ff39b9ded2c1d2cc96c6d356d21170ac04d
refs/heads/main
2023-02-28T07:56:46.457552
2021-02-10T15:08:33
2021-02-10T15:08:33
323,584,115
4
0
null
null
null
null
UTF-8
Python
false
false
3,843
py
""" Django settings for ddblog project. Generated by 'django-admin startproject' using Django 2.2.12. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os #...
a07eec758b37f1fe500b44584d7fec680ba7cad5
f33b30743110532ddae286ba1b34993e61669ab7
/Minimum Time Difference.py
d462b0bb0897d150390facf9b6166c46b86a8bdc
[]
no_license
c940606/leetcode
fe9dcee7a5daa4d52999d5f53253dd6dd33c348b
631df2ce6892a6fbb3e435f57e90d85f8200d125
refs/heads/master
2021-07-10T14:01:26.164966
2020-08-16T10:46:16
2020-08-16T10:46:16
186,588,449
3
0
null
null
null
null
UTF-8
Python
false
false
796
py
class Solution(object): def findMinDifference(self, timePoints): """ 给定一个 24 小时制(小时:分钟)的时间列表,找出列表中任意两个时间的最小时间差并已分钟数表示。 --- 输入: ["23:59","00:00"] 输出: 1 :type timePoints: List[str] :rtype: int """ n = len(timePoints) def helper(x): x=x.split(":") return int(x[0])*60 + int(x[1]) timePoints = ...
6ebe8ee7411a32d10a802ee01d53684cd0fe6e3a
950a87f8e64636d2e1f6dd51f04ed51a41085429
/tests/test_models_zoo.py
08a62611dd76f8524770c811f13c96865b23aaf1
[ "MIT" ]
permissive
Pandinosaurus/pytorch-toolbelt
325e503a02495a9d7e203bd58e7ad444648688bf
94d16a339cf9cb4b95bcaa539a462d81f4b82725
refs/heads/develop
2023-08-31T03:41:19.373645
2021-08-11T14:11:12
2021-08-11T14:11:12
207,519,450
0
0
MIT
2021-08-12T03:04:37
2019-09-10T09:35:17
Python
UTF-8
Python
false
false
758
py
import pytest import torch from pytorch_toolbelt.zoo import resnet34_unet32_s2, resnet34_unet64_s4, hrnet34_unet64 skip_if_no_cuda = pytest.mark.skipif(not torch.cuda.is_available(), reason="CUDA is not available") @skip_if_no_cuda @torch.no_grad() @pytest.mark.parametrize("model_cls", [resnet34_unet32_s2, resnet34...
9ec6d198bb369bd0b2bed230d840f27a3b4cfc2f
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03673/s125858327.py
4c76558da4394c983252f90470a140ba3b1ccb40
[]
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
367
py
from collections import deque n = int(input()) A = deque(map(int, input().split())) b = deque([]) if n%2==0: for i in range(n): if i%2 ==0: b.append(A[i]) else: b.appendleft(A[i]) else: for i in range(n): if i%2 ==0: b.appendleft(A[i]) else: ...
2055b681464a0784c8493cf43a32d3bad5df5931
21fc3622bb7a3a89a8ed9dec932919936fb1ce36
/buildout-cache/eggs/plone.app.contenttypes-1.2.11-py2.7.egg/plone/app/contenttypes/tests/test_migration_topic.py
c5bbcf0e7ba23c11c237e4c573da42310890c870
[]
no_license
erlantostes/plone
4bc1ccba9e0ab77ce5370489f6b47b806c889c29
3a5fb7574cee269a99b148eef695256805ce1a45
refs/heads/master
2020-04-01T18:04:32.927641
2018-10-17T11:22:59
2018-10-17T11:22:59
153,469,831
0
0
null
null
null
null
UTF-8
Python
false
false
29,750
py
# -*- coding: utf-8 -*- from DateTime import DateTime from Products.CMFCore.utils import getToolByName from plone.app.contenttypes.behaviors.collection import ICollection from plone.app.contenttypes.migration.topics import migrate_topics from plone.app.contenttypes.testing import \ PLONE_APP_CONTENTTYPES_MIGRATION_...
8cca21dc1dfb3c3e8dabd4d6e00022561017415a
c83acc6433aa8ef7703192e9033fe7cd92b2cccf
/traits/observation/exceptions.py
5e57b713bc5ff8d4c1000491d5a4eb9aad8a3be8
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause", "CC-BY-3.0" ]
permissive
oscarpicas/traits
857f5c06f3caf06003aed8b21b502b66ca8ba6cc
e72691a2f8aa34529af431d6b6b8c1a476ef4107
refs/heads/master
2022-03-17T10:30:08.330129
2022-02-18T21:01:50
2022-02-18T21:01:50
26,197,506
0
0
null
2015-01-10T04:01:48
2014-11-05T01:39:56
null
UTF-8
Python
false
false
504
py
# (C) Copyright 2005-2022 Enthought, Inc., Austin, TX # All rights reserved. # # This software is provided without warranty under the terms of the BSD # license included in LICENSE.txt and may be redistributed only under # the conditions described in the aforementioned license. The license # is also available online at...
689adeb931f6bef31959fcee01b791be15cabf44
05352c29e844705f02d65526343eea9b486f8bd7
/src/python/pants/backend/awslambda/python/register.py
b7408cad1f7104ac4ba3e71537a413e10471f00b
[ "Apache-2.0" ]
permissive
DoN-SultaN/pants
af2557de1178faaf73eed0a5a32e8f6fd34d2169
5cb5379003a0674c51f9a53f582cf690eddfaf45
refs/heads/master
2022-10-15T04:18:54.759839
2020-06-13T10:04:21
2020-06-13T10:04:21
272,089,524
1
0
Apache-2.0
2020-06-13T21:36:50
2020-06-13T21:36:49
null
UTF-8
Python
false
false
1,026
py
# Copyright 2019 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). """Create AWS Lambdas from Python code. See https://pants.readme.io/docs/awslambda-python. """ from pants.backend.awslambda.common import awslambda_common_rules from pants.backend.awslam...
19f030eeaf16a07224b934871ffad46de4011858
934235f70a390a3ba0d7b464cddd10872f31cda3
/auction/auction/migrations/0012_auto_20210329_1515.py
e0a2ab42ef0fd92803ce83ab6d4e895d55838d22
[]
no_license
deji100/Projects
6919041ba23e77a5c74e5ab7692bfcee38ececcb
17e64d954d1d7805be57ec5d8d4344e4944889e6
refs/heads/master
2023-04-30T05:25:03.143303
2021-05-20T15:00:43
2021-05-20T15:00:43
338,844,691
0
0
null
null
null
null
UTF-8
Python
false
false
392
py
# Generated by Django 3.1.3 on 2021-03-29 14:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('auction', '0011_auto_20210326_2149'), ] operations = [ migrations.AlterField( model_name='listing', name='sold_out',...
c993ab5b21d8f118c3a3d92b12bbc00a0e289025
5c9c9072adafff9de79552d927d225539874a1e5
/fallas/panels.py
3e39327b21d1c1fe85ed7cd64558561a50ba6772
[]
no_license
NOKIA-GAP/trouble-shooting-api
e38e221aa01b16b28cd90b1c93f0b5141d67b26a
a3f6e2c3c22727c888b1f3f4e570fd729920e267
refs/heads/master
2021-08-10T01:07:46.333294
2018-10-01T17:21:14
2018-10-01T17:21:14
114,031,806
0
0
null
null
null
null
UTF-8
Python
false
false
1,377
py
from .models import ( Falla ) INSTALACION = 'Instalacion' INTEGRACION = 'Integracion' SOFTWARE = 'Software' HARDWARE = 'Hardware' DATAFILL = 'Datafill' AJUSTEPOTENCIA = 'Ajuste Potencia' INTERFERENCIAEXTREMA = 'Interferencia externa' CAMBIODISENO = 'Cambio diseno' MALRECHAZO = 'Mal rechazo' TX = 'TX' COMPORTAMIENTOESP...
ca25dc5334e07d1808f358786bcaf82904395a1f
77c8c500d4077ad733fbfe2c6a85a1dd47bd3cb5
/soohyun/python/baekjoon/0714/14890/1.py
edba3f8a5a55290bcb7c3549d30fcc7e6037b623
[]
no_license
chelseashin/AlgorithmStudy2021
786f03c4c17bc057518d428481e7d710d24ec98e
1a4744a621ed25715fc9060c5224f0b1092d9c00
refs/heads/master
2023-06-22T22:27:47.289806
2021-07-28T02:54:22
2021-07-28T02:54:22
326,441,667
1
5
null
2021-06-29T01:27:40
2021-01-03T15:44:16
Python
UTF-8
Python
false
false
3,777
py
# 걸린시간 1시간 20분 import sys input = sys.stdin.readline def count_slope_col(N, L, stairs): answer = 0 for row in range(N): count = 1 left = 101 previous = -1 is_slope = True for col in range(N): current = stairs[row][col] #print(f"|{stairs[row][col]...
fdc80a64579ae8d080ea7732c7de51bfdd52b18f
a4e2b2fa5c54c7d43e1dbe4eef5006a560cd598e
/silk/templatetags/filters.py
19422dffbef2ed8bba3077129da8477927e3f616
[ "MIT" ]
permissive
joaofrancese/silk
baa9fc6468351ec34bc103abdbd1decce0ae2f5d
d8de1367eb70f4405f4ae55d9286f0653c5b3189
refs/heads/master
2023-04-01T07:30:42.707427
2017-02-22T14:06:05
2017-02-22T14:06:05
23,427,190
1
1
null
null
null
null
UTF-8
Python
false
false
2,092
py
import re from django.template import Library from django.template.defaultfilters import stringfilter from django.utils import timezone from django.utils.html import conditional_escape from django.utils.safestring import mark_safe register = Library() def _esc_func(autoescape): if autoescape: esc = con...
6a09ae6348786ae00b9bb35b1a7611573b23169e
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/s45bQoPtMoZcj7rnR_16.py
41a063878034de7567ea745ec857b1619c25c1ce
[]
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
249
py
def closest_palindrome(n): if n == 100: return 99 n = list(str(n)) n = [int(i) for i in n] ​ for i in range(len(n) // 2): x, y = n[i], n[-i - 1] x, y = x, x n[i], n[-i - 1] = x, x return int(''.join(str(i) for i in n))
6bd3aeb20fd5e5259fbb55aac32c164b66cb5769
3b9b4049a8e7d38b49e07bb752780b2f1d792851
/src/build/android/pylib/utils/base_error.py
263479a3c3279aca00c226b8b97cd52bc9ec3175
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
webosce/chromium53
f8e745e91363586aee9620c609aacf15b3261540
9171447efcf0bb393d41d1dc877c7c13c46d8e38
refs/heads/webosce
2020-03-26T23:08:14.416858
2018-08-23T08:35:17
2018-09-20T14:25:18
145,513,343
0
2
Apache-2.0
2019-08-21T22:44:55
2018-08-21T05:52:31
null
UTF-8
Python
false
false
270
py
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # pylint: disable=unused-wildcard-import # pylint: disable=wildcard-import from devil.base_error import *
4e821bf5ff638f0d5f8bf8cd7e66dbe3fd01bec1
08d316151302f7ba4ae841c15b7adfe4e348ddf1
/reviewboard/integrations/tests/test_configs.py
29008ec52f56c465b2b27c813306f2c40fc28b9c
[ "MIT" ]
permissive
LloydFinch/reviewboard
aa8cd21fac359d49b3dfc5a68c42b857c0c04bd8
563c1e8d4dfd860f372281dc0f380a0809f6ae15
refs/heads/master
2020-08-10T20:02:32.204351
2019-10-02T20:46:08
2019-10-02T20:46:08
214,411,166
2
0
MIT
2019-10-11T10:44:55
2019-10-11T10:44:54
null
UTF-8
Python
false
false
4,954
py
from __future__ import unicode_literals import logging from djblets.conditions import ConditionSet from djblets.forms.fields import ConditionsField from djblets.testing.decorators import add_fixtures from kgb import SpyAgency from reviewboard.integrations.forms import IntegrationConfigForm from reviewboard.integrati...
c1b8ece492125158774e3af66f2bfa7f7de642cd
d043a51ff0ca2f9fb3943c3f0ea21c61055358e9
/python3网络爬虫开发实战/数据存储/文件存储/file6.py
38d8bd4763b4c20db1de58e5df8e49db8c1879e2
[]
no_license
lj1064201288/dell_python
2f7fd9dbcd91174d66a2107c7b7f7a47dff4a4d5
529985e0e04b9bde2c9e0873ea7593e338b0a295
refs/heads/master
2020-03-30T03:51:51.263975
2018-12-11T13:21:13
2018-12-11T13:21:13
150,707,725
0
0
null
null
null
null
UTF-8
Python
false
false
381
py
import csv with open('data.csv', 'w') as csvfile: # 调用csv库的writer()方法初始化写入对象 writer = csv.writer(csvfile) # 调用writerow()方法传入每行的数据即可完成写入 writer.writerow(['id', 'name', 'age']) writer.writerow(['10001', 'Mike', 20]) writer.writerow(['10002', 'Bob', 22]) writer.writerow(['10003', 'Jordan', 21]...
030656461f5d5ace42ba347134ba1fef6d164dd2
9184e230f8b212e8f686a466c84ecc89abe375d1
/arcseventdata/applications/obsolete/ipdpE.py
f4a03c9939aa822c22a8334013aca9fa028edc74
[]
no_license
danse-inelastic/DrChops
75b793d806e6351dde847f1d92ab6eebb1ef24d2
7ba4ce07a5a4645942192b4b81f7afcae505db90
refs/heads/master
2022-04-26T17:37:41.666851
2015-05-02T23:21:13
2015-05-02T23:21:13
34,094,584
0
1
null
2020-09-10T01:50:10
2015-04-17T03:30:52
Python
UTF-8
Python
false
false
4,378
py
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Jiao Lin # California Institute of Technology # (C) 2007 All Rights Reserved # # {LicenseText} # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
c9f002f2e16d65a1878541197c7e17dfa4b052e7
fb3c1e036f18193d6ffe59f443dad8323cb6e371
/src/flash/build/buildbot/slaves/windows64/buildbot.tac
b10193418512735dd402c802a5bdee88e3ccd140
[]
no_license
playbar/nstest
a61aed443af816fdc6e7beab65e935824dcd07b2
d56141912bc2b0e22d1652aa7aff182e05142005
refs/heads/master
2021-06-03T21:56:17.779018
2016-08-01T03:17:39
2016-08-01T03:17:39
64,627,195
3
1
null
null
null
null
UTF-8
Python
false
false
2,219
tac
# ***** BEGIN LICENSE BLOCK ***** # Version: MPL 1.1/GPL 2.0/LGPL 2.1 # # The contents of this file are subject to the Mozilla Public License Version # 1.1 (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.mozilla.org/MP...
83534c791f8063eb1d5ac8569916a49b0f8b0f09
d12b59b33df5c467abf081d48e043dac70cc5a9c
/uhd_restpy/testplatform/sessions/ixnetwork/topology/dhcpv4client_cfcdda8db5004b679a441f92193405ea.py
2fd232e15d33bc4c0cf4ba5e72ca7f72b489eb1f
[ "MIT" ]
permissive
ajbalogh/ixnetwork_restpy
59ce20b88c1f99f95a980ff01106bda8f4ad5a0f
60a107e84fd8c1a32e24500259738e11740069fd
refs/heads/master
2023-04-02T22:01:51.088515
2021-04-09T18:39:28
2021-04-09T18:39:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
36,318
py
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...