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
8ebea4a768a74346f669199a18f9034a5a72fcd3
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part006912.py
b626d2d86f3f2c0c06e456ec94bdbe994424a7eb
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
1,302
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
b66d2ae78a2abe5aa52b983e5773f4b95f0dfe9f
11334e46d3575968de5062c7b0e8578af228265b
/Examples/OpenCV/PPOCV/C6/arithmetic.py
f062fdf7c94256bec4b4af759f4f493579109cb4
[]
no_license
slowrunner/Carl
99262f16eaf6d53423778448dee5e5186c2aaa1e
1a3cfb16701b9a3798cd950e653506774c2df25e
refs/heads/master
2023-06-08T05:55:55.338828
2023-06-04T02:39:18
2023-06-04T02:39:18
145,750,624
19
2
null
2023-06-04T02:39:20
2018-08-22T18:59:34
Roff
UTF-8
Python
false
false
2,217
py
#!/usr/bin/env python3 # # arithmetic.py """ Documentation: PPOCV C6 """ # from __future__ import print_function # use python 3 syntax but make it compatible with python 2 # from __future__ import division # '' import sys try: sys.path.append('/home/pi/Carl/plib') import ...
6b692d10b1730270b76669e1b35e9650edd7aaf2
01dfd817931803f5ca3a41832171082e84323d9e
/apps/applogReg/urls.py
fd05ed8fe6c674eb9ffb88c415767ef447c8705f
[]
no_license
alialwahish/rep92
41d715b043233a85ce968d835a3c7ba303593445
743e2684783f8f86df9e5b8493ab267679e250bc
refs/heads/master
2022-11-26T21:33:23.643273
2018-05-23T01:22:42
2018-05-23T01:22:42
134,494,751
0
0
null
2022-11-22T01:06:15
2018-05-23T01:20:24
Python
UTF-8
Python
false
false
484
py
from django.conf.urls import url from . import views urlpatterns = [ url(r'^$',views.index), url(r'^main$',views.main), url(r'^login$',views.login), url(r'^register$',views.register), url(r'^quotes$',views.quotes), url(r'logout$',views.logout), url(r'^add_quote$',views.add_quote), url(r...
d6466105ed7fcebea67a87df05fdc82930ef9b46
52b5773617a1b972a905de4d692540d26ff74926
/.history/removeBrackets_20200908135618.py
2cc917333227bb1d3ebec239f45ed72cebf22209
[]
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
88
py
def remove(str): # find how many make a complete pair # subtract that from the
3569db6b3ac516591e08da38e3f8674310ee5db2
2e29ed138ab0fdb7e0a6e87b7c52c097b350fecf
/MechPro Tech/randomElementSets.py
be6c201ac4e08bf05befb843bb10394f4b91df6b
[]
no_license
ronniegeiger/Abaqus-Scripts
1e9c66664bd7dc7e5264bf763f15936eadcff529
c071bbfe0e6c54148dfd4a23f786f017dfef4ae4
refs/heads/master
2023-03-18T06:33:13.690549
2018-08-14T11:37:07
2018-08-14T11:37:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,431
py
# Script to create element sets based on % distribution from textRepr import prettyPrint as pp import random N_150mm = 3591 N_100mm = 7271 N_50mm = 38778 n_200mm = 2020 n_150mm = 3591 n_100mm = 8079 n_50mm = 32315 N_total = float(N_150mm + N_100mm + N_50mm + n_200mm + n_150mm + n_100mm + n_50mm) else...
343ba2e8c8dbc7bad29a57b1416f628800566367
b0bd3342c244ebf30ae5ab29daa078f2b39010f7
/SimpleEmbedModel.py
eea650c39544213933830a7ab48737a89881b223
[]
no_license
naiqili/itime_learning
30a8af7f1234277162ccdd4c69cd9f9a4a7ab412
d9b191bb32a7e49cb99443d7dccea5bb392aee90
refs/heads/master
2021-06-19T04:54:06.239320
2017-06-26T13:35:39
2017-06-26T13:35:39
92,792,780
0
0
null
null
null
null
UTF-8
Python
false
false
4,211
py
import tensorflow as tf import numpy as np class SimpleEmbedModel(): def __init__(self, conf): self.conf = conf self.uif_mat = np.load(conf.uif_path) self.iur_mat = np.load(conf.iur_path) def add_variables(self, reuse=False): conf = self.conf with tf.variable_scope('Fix...
ac2f389497f158fe59cc5e3f600d4fd7a0de203e
2316ce8a21d44a5d09284968ef42530633dc10d2
/sample_code/ep188/rev01/foo.py
0576101a0190082ed83986d6e8f76bcf20481717
[]
no_license
AlexanderWinkelmeier/explains
160de2c41fc5fc0156b482b41f89644dc585c4f3
d47ec53e384e4303a2d8e71fab9073a1a8d2d6bc
refs/heads/master
2023-07-30T04:55:31.234482
2021-09-15T02:59:42
2021-09-15T02:59:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
103
py
x = 1 def increment_thing() -> None: global x x += 1 def get_thing() -> int: return x
0ca716046914007256d10bbb37b5f1a4cafa8580
71b7b6d84a61f514b038fac7741e6d16973fcaa9
/build/object_manipulation_msgs/catkin_generated/pkg.installspace.context.pc.py
3e6fd0a4ff97ee24b62a27bea0521aebb8561551
[]
no_license
YiKangJ/perception_driven_ws
15c02e523f1a708fe63b216d73019c8c2bde97a1
0a0f8fcbe3f5fed26439f449999b85f1e38c0f70
refs/heads/master
2020-04-01T19:47:48.372111
2018-10-18T06:17:57
2018-10-18T06:17:57
153,571,793
0
0
null
null
null
null
UTF-8
Python
false
false
642
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/jyk/perception_driven_ws/install/include".split(';') if "/home/jyk/perception_driven_ws/install/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;actionlib_msgs;std_msgs;geometry_m...
373e4f049cea8386fbd57e288660868ad6f2a5ab
a1bffcd8854e1843e56bb812d4d83b3161a5211e
/tests/unit/modules/storage/netapp/test_na_ontap_net_port.py
07ea6a104c088e71872248865edf07e619628ac8
[]
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
6,647
py
# (c) 2018, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ''' unit test template for ONTAP Ansible module ''' from __future__ import print_function import json import pytest from ansible_collections.ansible.community.tests.unit.compat import unittest from an...
7885a77c550774f08a3cff1f19f60dcc326bf6ef
f780b05549bea9ecb0b80e4e9ea63376aa59f962
/iplauction/migrations/0004_auto_20160305_1217.py
8a77f654b1476c81a8fd5872f2939d3becf242b4
[]
no_license
PunitGr/django-kickstart
ebff3e7e60a27091468f45a35e3b562954609168
5e8a21b0408ade1be4860deb3bc2cb80f033b159
refs/heads/master
2021-01-24T20:26:06.970847
2016-03-07T14:33:17
2016-03-07T14:33:17
52,964,874
0
0
null
null
null
null
UTF-8
Python
false
false
638
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.3 on 2016-03-05 12:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('iplauction', '0003_auto_20160305_1102'), ] operations = [ migrations.AddFiel...
34c8f2b1fad1c29421bec555fae6b807a7102a8e
599709e7687a78f92b268315590d6ad750ce97d6
/calc/opt_h_pi/1skp_l/gto_part_shift/w1_dense/search/calc.py
2e3b85307b244e4655cabc6fd13518b2f7d18fa3
[]
no_license
ReiMatsuzaki/cbasis2
b99d096150d87f9301ed0e34f7be5f0203e4a81e
86f21146fab6fc6f750d02fb2200ea94616ca896
refs/heads/master
2021-01-19T23:15:32.864686
2017-04-27T07:29:26
2017-04-27T07:29:26
88,953,186
0
0
null
null
null
null
UTF-8
Python
false
false
1,798
py
import sys import numpy as np import pandas as pd from itertools import product, combinations import subprocess sys.path.append("../../../../../../src_py/nnewton") sys.path.append("../../../../../../r1basis") from r1basis import * from opt_green import * ## one GTO optimization value is 0.0105604,-0.0548991 with open...
020cc492835e3f6213e03d6a0067ede9641141eb
9c73dd3043f7db7c9ec76d560484e99ad134fdb6
/students/douglas_klos/lesson05/activity/code/rdbms_api.py
1d84511af15a33b1c59531bb3f00eef544715492
[]
no_license
UWPCE-PythonCert-ClassRepos/py220-online-201904-V2
546b316025b680ca28d24b523663095398616b13
ac12beeae8aa57135bbcd03ac7a4f977fa3bdb56
refs/heads/master
2022-12-10T03:14:25.514630
2019-06-11T02:14:17
2019-06-11T02:14:17
179,139,181
1
19
null
2022-12-08T01:43:38
2019-04-02T18:49:10
Python
UTF-8
Python
false
false
985
py
class BaseModel(Model): class Meta: database = database class Person(BaseModel): """ This class defines Person, which maintains details of someone for whom we want to research career to date. """ person_name = CharField(primary_key=True, max_length=30) lives_in_town = CharField(m...
0ca1c1b2b6d4a5a92a1cf44d6e0600fa459c73fa
78f43f8bd07ae0fc91738a63cd7bbca08ae26066
/leetcode/interval/merge_interval.py
9f4a681237c817d9390d7cf79195feeb3effddb0
[]
no_license
hanrick2000/LeetcodePy
2f3a841f696005e8f0bf4cd33fe586f97173731f
b24fb0e7403606127d26f91ff86ddf8d2b071318
refs/heads/master
2022-04-14T01:34:05.044542
2020-04-12T06:11:29
2020-04-12T06:11:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,315
py
from leetcode.interval.interval import Interval class Solution(object): def merge(self, intervals): """ :type intervals: List[Interval] :rtype: List[Interval] """ if len(intervals) <= 1: return intervals def overlap(l1, l2): """ ...
402200e5c6c3d708a3beb5e97137c59c1ddd8bd8
cf5f24e5a32f8cafe90d4253d727b1c0457da6a4
/algorithm/boj_21317.py
55af763cbe118028143f347a61cddc9f96f9e1d5
[]
no_license
seoljeongwoo/learn
537659ca942875f6846646c2e21e1e9f2e5b811e
5b423e475c8f2bc47cb6dee09b8961d83ab08568
refs/heads/main
2023-05-04T18:07:27.592058
2021-05-05T17:32:50
2021-05-05T17:32:50
324,725,000
0
1
null
null
null
null
UTF-8
Python
false
false
624
py
import sys input = sys.stdin.readline def solve(curr, ok): if curr > n : return inf if curr == n: return 0 if dp[curr][ok] != inf: return dp[curr][ok] dp[curr][ok] = solve(curr+1,ok) + jump[curr][0] dp[curr][ok] = min(dp[curr][ok] , solve(curr+2,ok) + jump[curr][1]) if ok: dp[curr][ok] = min(dp[...
ef16a7892614d638cd0b989921e2c479a82bda61
3ef70fe63acaa665e2b163f30f1abd0a592231c1
/stackoverflow/venv/lib/python3.6/site-packages/pip-19.0.3-py3.6.egg/pip/_vendor/requests/api.py
abada96d4627a52bf0f6040ee2e08b0eff32c77c
[ "MIT" ]
permissive
wistbean/learn_python3_spider
14914b63691ac032955ba1adc29ad64976d80e15
40861791ec4ed3bbd14b07875af25cc740f76920
refs/heads/master
2023-08-16T05:42:27.208302
2023-03-30T17:03:58
2023-03-30T17:03:58
179,152,420
14,403
3,556
MIT
2022-05-20T14:08:34
2019-04-02T20:19:54
Python
UTF-8
Python
false
false
6,253
py
# -*- coding: utf-8 -*- """ requests.api ~~~~~~~~~~~~ This module implements the Requests API. :copyright: (c) 2012 by Kenneth Reitz. :license: Apache2, see LICENSE for more details. """ from . import sessions def request(method, url, **kwargs): """Constructs and sends a :class:`Request <Request>`. :para...
74b88d61b79bd5ebc7c8ea4b42c60bfc7ba59bc5
130a98632d2ab4c171503b79e455b7aa27a1dda4
/models/official/utils/flags/_conventions.py
b6f248b443a689f82770c2a725791ec76dc46591
[ "Apache-2.0", "MIT" ]
permissive
aboerzel/German_License_Plate_Recognition
d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787
6fc53292b1d3ce3c0340ce724c2c11c77e663d27
refs/heads/master
2023-01-30T18:08:37.339542
2023-01-07T07:41:36
2023-01-07T07:41:36
245,586,430
34
12
MIT
2023-01-07T07:41:37
2020-03-07T07:16:51
Python
UTF-8
Python
false
false
1,808
py
# Copyright 2018 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
f01c7a44eccbf92d7cc1e3ecbafa94dc41b95918
8e24e8bba2dd476f9fe612226d24891ef81429b7
/geeksforgeeks/python/easy/8_15.py
86dea0108cdf7dbb420de013fbc38390cad29623
[]
no_license
qmnguyenw/python_py4e
fb56c6dc91c49149031a11ca52c9037dc80d5dcf
84f37412bd43a3b357a17df9ff8811eba16bba6e
refs/heads/master
2023-06-01T07:58:13.996965
2021-06-15T08:39:26
2021-06-15T08:39:26
349,059,725
1
1
null
null
null
null
UTF-8
Python
false
false
6,388
py
Python – Reading last N lines of a file **Prerequisite:** Read a file line-by-line in Python Given a text file _fname_ , a number _N_ , the task is to read the last N lines of the file. As we know, Python provides multiple in-built features and modules for handling files. Let’s discuss different ways to...
3f2ab7df5f4f7fc432c79ef2ed7a0604e20a3ceb
e3afad642b98f0c6cdda91b550c080f7cd6fdf4c
/epi/10-binary-trees-15-bst/BinaryTreeNode.py
dcca3a3d0241a37beb165c28593cec5c1728f1ca
[]
no_license
danielcodes/practice-problems
50e7ceb71305f69eafcd50c1507f9aa8829a8a2c
b06dfaed6b71e5a86dc43940fb15bc2e7f07903f
refs/heads/master
2020-04-12T06:19:25.552398
2016-11-30T02:13:06
2016-11-30T02:13:06
65,409,287
0
0
null
null
null
null
UTF-8
Python
false
false
466
py
# module for binary trees class Node: def __init__(self, value, left=None, right=None): self.value = value self.left = left self.right = right self.parent = None def printInOrder(root): nodes = [] printInOrderUtil(root, nodes) return nodes def printInOrderUtil(root...
7b48d917637fb4d2a301c58da1464aef2f61fbe6
244ecfc2017a48c70b74556be8c188e7a4815848
/res/scripts/client/tmpconsolecmds.py
0c0a4a16136a52bf97658edd60418a96123dc691
[]
no_license
webiumsk/WOT-0.9.12
c1e1259411ba1e6c7b02cd6408b731419d3174e5
5be5fd9186f335e7bae88c9761c378ff5fbf5351
refs/heads/master
2021-01-10T01:38:36.523788
2015-11-18T11:33:37
2015-11-18T11:33:37
46,414,438
1
0
null
null
null
null
WINDOWS-1250
Python
false
false
2,405
py
# 2015.11.18 11:51:09 Střední Evropa (běžný čas) # Embedded file name: scripts/client/TmpConsoleCmds.py import BigWorld from debug_utils import * class LanServers: def search(self): BigWorld.serverDiscovery.searching = 1 def stop(self): BigWorld.serverDiscovery.searching = 0 def show(sel...
a08261dfb20e2f5f2b1ccac1c04c7469f46f54e4
25ebec4dd05334b63d62e238ccaa1700fdb7dcc4
/Arase/PWE/DeleteDate.py
54b02b15eff997334804e5fcbe1ec03e7b387862
[ "MIT" ]
permissive
mattkjames7/Arase
2513416f0211f82a75d6b963fc8d6ea081dbc4f0
996167be35a13bbb1fdddfbe75e3a06d124b1d25
refs/heads/master
2023-04-07T03:54:59.407811
2021-05-20T12:03:50
2021-05-20T12:03:50
187,637,689
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
import numpy as np from ..Tools.Downloading._DeleteDate import _DeleteDate from .. import Globals def DeleteDate(Date,subcomp,L,prod,Confirm=True): ''' delete all of the files from a given date ''' if subcomp == 'hfa' and L == 3: idxfname = Globals.DataPath + 'PWE/Index-L{:01d}-{:s}.dat'.format(L,subcomp) da...
041645ad029ae1da78cd282c6980c9e489f5b47e
59cdb8b3995ee5938dc4710e32f29ac273410265
/_archive/nosepoke_code/_old/cuedtaste_abu3.py
ca2954d2612ada74593f061d92279ad1919ac11a
[]
no_license
abuzarmahmood/firing_space_plot
15ff667fada8f4e985a6a6c6f31261b72b0f4b60
9fe925d9b443fda96d8e23d6d2d2d2aa60b08f15
refs/heads/master
2023-07-25T01:39:31.942434
2023-07-15T14:24:38
2023-07-15T14:24:38
139,602,984
0
0
null
null
null
null
UTF-8
Python
false
false
3,345
py
""" Code to ONLY CONTROL cue and RESPOND to nosepoke No recording --> Leave that to Intan Board """ from threading import Thread, Lock import time import RPi.GPIO as GPIO import datetime import numpy as np class nosepoke_task: """ - Class to run nosepoke task - Stores main variables and performs appropri...
311cc87a3b20d8b6748d58c460a77d6164fb510b
e6dab5aa1754ff13755a1f74a28a201681ab7e1c
/.parts/lib/django-1.2/tests/regressiontests/test_client_regress/urls.py
ede4a3681af80b4442b4d39b9ee1f20d85f729a7
[]
no_license
ronkagan/Euler_1
67679203a9510147320f7c6513eefd391630703e
022633cc298475c4f3fd0c6e2bde4f4728713995
refs/heads/master
2021-01-06T20:45:52.901025
2014-09-06T22:34:16
2014-09-06T22:34:16
23,744,842
0
1
null
null
null
null
UTF-8
Python
false
false
115
py
/home/action/.parts/packages/googleappengine/1.9.4/lib/django-1.2/tests/regressiontests/test_client_regress/urls.py
f0e71dab23c9d10b9ed81e223aeb65c5444569bd
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02784/s847410997.py
fd50024c37c9f2ef3942f98bcea7d5ff189e9a6b
[]
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
228
py
import sys from itertools import accumulate H, N = map(int, next(sys.stdin.buffer).split()) A = map(int, next(sys.stdin.buffer).split()) ans = any(map(lambda v: v >= H, accumulate(A, initial=0))) print('Yes' if ans else 'No')
725ae5cb559adac73aa5ac94b2f193dbed895a91
a2b7fba22a16f379ccca2e38d9d6291b9562abc3
/Graph Theory/Connectivity/Biconnected_Components.py
4967813f98137ae85ef4c6f0d35ab613b52ff0ee
[]
no_license
neelamy/Algorithm
565c1cea72715745653e90a3dabbba1e9e283fd8
7c9f53ff27bcb840b9dbc20d520f003f4d76fe17
refs/heads/master
2020-06-10T15:53:12.967832
2017-07-18T07:59:32
2017-07-18T07:59:32
75,953,017
0
0
null
null
null
null
UTF-8
Python
false
false
3,445
py
# Python program to find biconnected components in a given # undirected graph #Complexity : O(V+E) from collections import defaultdict #This class represents an directed graph using adjacency list representation class Graph: def __init__(self,vertices): self.V= vertices #No. of vertices self.graph = defaul...
0675fa79cb50d6f70ae4d1f4b9bfa46070797d0a
67b0379a12a60e9f26232b81047de3470c4a9ff9
/slideshow/admin.py
365cd2affc5bde2acbcc881b16c1a4523658de1c
[]
no_license
vintkor/whitemandarin
8ea9022b889fac718e0858873a07c586cf8da729
5afcfc5eef1bb1cc2febf519b04a4819a7b9648f
refs/heads/master
2021-05-06T03:35:09.367375
2017-12-20T15:43:08
2017-12-20T15:43:08
114,904,110
0
0
null
null
null
null
UTF-8
Python
false
false
431
py
from django.contrib import admin from .models import * from content.fields import AdminImageWidget from django.db import models class SlidAdmin(admin.ModelAdmin): list_display = ('name', 'pic', 'published', 'ordering') list_editable = ('published', 'ordering') formfield_overrides = { models.ImageF...
82ae6081af92203e7de8a4eae701c34ca3048032
fb0c02a5529f41384598dab941180152f39fa10e
/dopzad.py
d4825d0e0ef8fa4c07a4e4ec12b31c244ee1f015
[]
no_license
Sezimm/Problem2
951200c92dcdbd43da3daefd32491c8850184745
0a3f392f025d22db4ef2ca8045c6d8a770b54f9f
refs/heads/main
2023-02-22T02:03:25.424031
2021-01-26T15:49:45
2021-01-26T15:49:45
333,133,588
0
0
null
null
null
null
UTF-8
Python
false
false
250
py
#2 ''' text = input() l = text.split() q="" for i in sorted(l,key=lambda a: len(a)): q = q + " " + i print(q) ''' p = input("vedite dannye cherez probel: \n") s = int(input("vedite shag: ")) x = p.split() for j in range(int(len(x))):
2e424e970f298b6e3f96fe5aaf6fdb58c9648820
ee4265c3c6c99f189e2202e7f0d2b5a78475376d
/code_forces/Accommodation.py
58c0a2f2021e7ef312b1bdda00f5506ed981caeb
[]
no_license
akashgkrishnan/HackerRank_Solutions
96f762848a77b731748d3331d17314f5e343abae
75eeb5bd0f6e81c62ecd2898eb7de9b540e98b46
refs/heads/master
2023-03-18T18:01:21.402781
2020-09-30T18:08:43
2020-09-30T18:08:43
271,615,533
1
0
null
2021-03-20T05:03:59
2020-06-11T18:09:23
Python
UTF-8
Python
false
false
143
py
count = 0 for _ in range(int(input())): p, q = list(map(int, input().split())) if q - p >= 2: count += 1 print(count)
e71c26708fa1dac89ce425302946faba0f6cdd88
e1a2c6ed4a4b93b4697974e3b0a32a4d67daa6f6
/venv/Lib/site-packages/pybrain/structure/modules/biasunit.py
a85d6212c196f190500ec537e31bc49c033bddc8
[ "MIT" ]
permissive
ishatserka/MachineLearningAndDataAnalysisCoursera
cdf0f23a58617e17d6b938e3a9df17daae8585e4
e82e772df2f4aec162cb34ac6127df10d14a625a
refs/heads/master
2021-09-11T01:39:26.228392
2018-04-05T14:33:39
2018-04-05T14:33:39
117,153,454
0
0
MIT
2018-03-27T05:20:37
2018-01-11T21:05:33
Python
UTF-8
Python
false
false
387
py
__author__ = 'Tom Schaul, [email protected]' from neuronlayer import NeuronLayer from module import Module class BiasUnit(NeuronLayer): """A simple bias unit with a single constant output.""" dim = 1 def __init__(self, name=None): Module.__init__(self, 0, 1, name = name) def _fo...
c045d46e66a4f04621788b28c78761a1223a3cee
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/8/uon.py
949b044bc5d13f037b1b044c161086ca0f3cc3ab
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
83746c2f8f8c278e1647782695f53eca9c354ff6
249ef744ece1167f6e5bf7edc0b3ce5b1a31e66a
/EnvCmp.py
baea40b8a0e3cacfae52fdb69bb066dfb621da57
[]
no_license
ftakanashi/EnvCmpWeb
dba2b9bec6a0c3dc5a2a623f52257c3a56ca957c
692164d341ae7d6aeff946a7e89c3ceabc96b6e3
refs/heads/master
2020-03-21T17:41:47.209949
2018-07-11T11:04:25
2018-07-11T11:04:25
138,847,521
1
0
null
null
null
null
UTF-8
Python
false
false
9,275
py
#!/usr/bin/env python # coding=utf8 # @author:weiyz import os import uuid import threading import tarfile import shutil import socket import time from filecmp import dircmp ### beg 20180111 重设系统编码为GBK保证可以读取中文字符 ### import sys reload(sys) sys.setdefaultencoding('gbk') ### end 20180111 ### def get_sub_dic(lst, key): ...
a472871209ba36dddc71717632c40210ffcdb40d
ad0d092d26b126ebf9c5f79a0254e79320a4d732
/avgtest_pico.py
8801fc479c10cafaf34933348fe63907e7b0caf7
[ "MIT" ]
permissive
peterhinch/micropython-filters
be9bcbc3ace92987a1ef23fca5faa90af2391d35
4e0b737574073bab36ec1c776e8dfb80b8fe5f9f
refs/heads/master
2022-02-07T23:01:52.492287
2022-01-26T18:29:34
2022-01-26T18:29:34
30,693,766
59
13
null
null
null
null
UTF-8
Python
false
false
874
py
# Demo program for moving average filter # Author: Peter Hinch # Released under the MIT License (MIT). See LICENSE. # Copyright (c) 2021 Peter Hinch # 16th Dec 2021 import array from time import ticks_us, ticks_diff from avg_pico import avg data = array.array('i', (0 for _ in range(19))) # Average over 16 samples dat...
9ba88f9b386ad10642120c245525438f08dd9c0b
d15bdaddab59d1cfea76790004cbad3e5f0c2c55
/batkin/build_isolated/move_slow_and_clear/catkin_generated/generate_cached_setup.py
e0ab70b36efd40a0bb19f5981e56650cf00a794b
[]
no_license
gychen-n/robot
4265a1ff469d22550b6b537d1c81aa846ee7641a
0663a33aea2c2de9e3ac5863307619091e5b5959
refs/heads/main
2023-04-10T13:32:06.623682
2021-04-16T00:41:04
2021-04-16T00:41:04
358,431,232
0
0
null
null
null
null
UTF-8
Python
false
false
4,820
py
# -*- coding: utf-8 -*- from __future__ import print_function import os import stat import sys # find the import for catkin's python package - either from source space or from an installed underlay if os.path.exists(os.path.join('/opt/ros/kinetic/share/catkin/cmake', 'catkinConfig.cmake.in')): sys.path.insert(0, ...
577618aff1bb4740987b1b69a5f59941d0390c84
c3897f243ee55949de5a12d5e0952c393b9166b2
/v0.5.0/google/cloud_v2.512/resnet-tpuv2-512/code/resnet/model/staging/models/rough/nmt_gpu/nmt.py
8b52d4d22d6aceee063d64099deb7ebe702f584e
[ "Apache-2.0" ]
permissive
myelintek/results
f189267475ee1fc2d02f6e0572d2185bfd8a1acd
11c38436a158c453e3011f8684570f7a55c03330
refs/heads/master
2020-05-29T19:28:54.838290
2019-07-31T05:58:31
2019-07-31T05:58:31
189,329,589
0
0
Apache-2.0
2019-05-30T02:14:08
2019-05-30T02:14:07
null
UTF-8
Python
false
false
46,512
py
# Copyright 2017 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
65f9e5229c6c9a6a1e020096dd3b187b66fcee09
e86fa6b618822fc800bdc699b95efd404065509e
/python/practice/matrixMultiplication.py
475810eb7ae26f8568fb5ce2c80ae20e1d8d212e
[]
no_license
KimYeong-su/programmers
97b0ba53833176690bf5f87243d4e98402526f86
caf3bcb824c4199832ca94b073340b8c49ada31d
refs/heads/master
2021-08-29T07:06:12.936109
2021-08-06T12:40:02
2021-08-06T12:40:02
251,619,326
0
0
null
null
null
null
UTF-8
Python
false
false
474
py
''' # zip(a) 표현과 zip(*a) unpacking 표현을 잘 기억하자.. def solution(arr1, arr2): return [[sum(a*b for a, b in zip(A_row,B_col)) for B_col in zip(*arr2)] for A_row in arr1] ''' def solution(arr1, arr2): answer = [[0 for _ in range(len(arr2[0]))]for _ in range(len(arr1))] for i in range(len(arr1)): for j in...
2bc1edafefe685826dff39c42d7e69e9c67e1523
10f2f0c06d213d9272de256d5da47473c885b448
/Demo3/data_preprocess.py
898d19be2d4212d97eb9092141a34ab844b524fe
[ "MIT" ]
permissive
kinglai/compare-aggregate
9cb3d60050dcd7903da1b1836c205694c2b355de
2544468842ac0f991bede858c6cc4943ae22d640
refs/heads/master
2022-02-13T14:00:34.761738
2019-07-25T12:45:17
2019-07-25T12:45:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,840
py
# -*- coding: utf-8 -*- # @Time : 2019/1/23 14:35 # @Author : Alan # @Email : [email protected] # @File : data_preprocess.py # @Software: PyCharm import sys import numpy as np import random from collections import namedtuple import pickle import time random.seed(1337) np.random.seed(1337) ModelParam ...
207a9991e8cb9429d32159efa22844a2b24c6035
aa65d43b8775b1eb49fa5cf3c23e6ce6f7aefb7b
/src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/express_route/gateway/_show.py
e7ccfe86f71ea0e67350f48b228dc22a5f0f2027
[ "MIT", "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MPL-2.0", "LGPL-2.1-only", "Apache-2.0", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
yungezz/azure-cli
8acef71d30d937f2fc48981804fa66fd9e1c980d
5a80d3507270cc3b9313a3e6e60daf291489a80d
refs/heads/dev
2023-03-15T14:22:26.085920
2023-03-03T08:13:04
2023-03-03T08:13:04
279,810,977
0
1
MIT
2021-02-08T08:09:06
2020-07-15T08:26:59
Python
UTF-8
Python
false
false
11,694
py
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # # Code generated by aaz-dev-tools # --------------------------------...
cde830d7a4274d28fb3f1d7f4f807e7245e65ec0
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/otherforms/_omens.py
6723d6d1487e28f10d04f20ab87de03a0fc7e444
[ "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
214
py
#calss header class _OMENS(): def __init__(self,): self.name = "OMENS" self.definitions = omen self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.basic = ['omen']
5c9fa7d4fd757aaaf8048f435a7047661ebea2c9
9de6d0967bd79a31073b9c6a9d4cd318b7d7b13e
/myside/rgnbgn/apps.py
7babc5ceee213c3ad837eed08fdb79791a029bc8
[]
no_license
FSchierok/schierok.de_alt
9684af3a7147bb643306fa97d4c470c849c56407
7bb205599508203a8cbb76aa4bf962323b0adfa4
refs/heads/master
2021-10-18T06:07:34.331231
2019-02-13T06:51:24
2019-02-13T06:51:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
87
py
from django.apps import AppConfig class RgnbgnConfig(AppConfig): name = 'rgnbgn'
4067df6deabc0c09665985515f58a01b388540cf
0fb9e72ca0e41a06b08dd03c49f340a5c3af583d
/main.py
e579bc240cf9a2dc0834118f9a3bd25c531290f8
[]
no_license
osmlab/routerelationranger
74146da70cad1f989f0bff764859e4b43112b998
1fcd00493ca6e612fcc0ce6b2878a0749fb6e869
refs/heads/master
2020-06-14T06:35:33.626186
2016-12-13T18:53:05
2016-12-13T18:53:05
75,222,534
8
1
null
2016-12-13T19:22:04
2016-11-30T20:05:44
HTML
UTF-8
Python
false
false
3,206
py
from flask import Flask, render_template, jsonify, request import requests import json import pycountry import us app = Flask(__name__) route_type = '' @app.route("/") def index(): return render_template('index.html') @app.route('/countries') def get_countries(): return json.dumps([[c.alpha_2, c.name] for c ...
b0a72059e1c525bf44b28cac421173919bffd8ff
f531c56db4cd2776c765b9aca0c4cebaea864ec2
/ABC180/a.py
71af98fba89cb4bff73b9f900f0741c8dd163f1c
[]
no_license
SatoKeiju/AtCoder-Python3
1c76f8ec5d99470b6e316115f0433b4b3cb64024
9c2860e2cfda490d5848b0557876ef616eff01a2
refs/heads/master
2021-06-23T05:59:46.911733
2021-03-30T08:00:34
2021-03-30T08:00:34
212,088,768
0
0
null
null
null
null
UTF-8
Python
false
false
122
py
def main() -> None: n, a, b = map(int, input().split()) print(n - a + b) if __name__ == '__main__': main()
01fb37b7d5d16a167a3f98e0b2b0c9ed7a36cd06
f445450ac693b466ca20b42f1ac82071d32dd991
/generated_tempdir_2019_09_15_163300/generated_part005250.py
a115bdd05a7d58de6b87e28027cd20e59675b0ad
[]
no_license
Upabjojr/rubi_generated
76e43cbafe70b4e1516fb761cabd9e5257691374
cd35e9e51722b04fb159ada3d5811d62a423e429
refs/heads/master
2020-07-25T17:26:19.227918
2019-09-15T15:41:48
2019-09-15T15:41:48
208,357,412
4
1
null
null
null
null
UTF-8
Python
false
false
3,998
py
from sympy.abc import * from matchpy.matching.many_to_one import CommutativeMatcher from matchpy import * from matchpy.utils import VariableWithCount from collections import deque from multiset import Multiset from sympy.integrals.rubi.constraints import * from sympy.integrals.rubi.utility_function import * from sympy....
d5c9b86ee0c37f13f1cbb6d03e3008cd35a1b9bb
1bdb0da31d14102ca03ee2df44f0ec522b0701a4
/Lombardia/MM/ReteAcquedotti/AggiornamentoReteAcquedotti.py
c746357b05945e6e29e8a6e020d668da83aa3a93
[]
no_license
figuriamoci/Acqua
dc073d90c3c5e5899b22005685847916de1dfd95
aef22fcd0c80c92441e0e3df2468d7a2f23a848a
refs/heads/master
2020-12-15T04:00:26.855139
2020-06-08T21:17:55
2020-06-08T21:17:55
234,986,179
1
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
import os, geojson, logging, acqua.labelCollection as lc def create_water_supply_network(geoJsonfile, regione): #logging.info( "reading %s from %s...", geoJsonfile, regione ) with open( geoJsonfile ) as f: geo = geojson.load( f ) fc = [] for f in geo['features']: logging.info(f) ...
1b4e0dba6cccc7a01d2f1f2473da5593ccf3a7ee
6a68b230964540bc3f7eb19a9a5adc9b218370c7
/MiddlewareScan/F-MiddlewareScan.py
c00c9bde26d9c4c15f126b1dc017a4972d1497ec
[]
no_license
chuxuantinh/hack-tools
7705e485959d1612fee1786a80d98a3fe5500e20
c2203e8fa5c42b26e23b9c3db5e88ec7d11ea120
refs/heads/master
2023-01-09T03:13:40.074380
2020-10-31T19:17:37
2020-10-31T19:17:37
308,955,506
7
1
null
null
null
null
UTF-8
Python
false
false
7,741
py
#coding:utf-8 #author:wolf@future-sec import getopt import sys import Queue import threading import socket import urllib2 import time import ssl import os queue = Queue.Queue() sys.path.append("plugins") mutex = threading.Lock() timeout = 10 try: _create_unverified_https_context = ssl._create_unverified_context e...
7fe5bc22dac1909ed556d1c7bb7127e52a4d4dae
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_189/ch20_2019_04_02_12_58_25_892579.py
fe0235bbac5d83917113e11d70f62f63d46439b1
[]
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
147
py
nome=str(input('digite seu nome: ') if nome='chris': return ('todo mundo odeia o chris') else: return ('olá, {0}'.format (nome))
c3c8c62c75b3a96cd5d71067e6269516d0c95ee0
2aace9bb170363e181eb7520e93def25f38dbe5c
/build/idea-sandbox/system/python_stubs/cache/4baf47439edb0ab2a6d043f8872032cbd5c6dee035b265d6f6b2b9443945c60a/pyexpat/errors.py
ead44496b49caa3d6d90ff34ba43efbfbac4b2f6
[]
no_license
qkpqkp/PlagCheck
13cb66fd2b2caa2451690bb72a2634bdaa07f1e6
d229904674a5a6e46738179c7494488ca930045e
refs/heads/master
2023-05-28T15:06:08.723143
2021-06-09T05:36:34
2021-06-09T05:36:34
375,235,940
1
0
null
null
null
null
UTF-8
Python
false
false
5,532
py
# encoding: utf-8 # module pyexpat.errors # from C:\Users\Doly\Anaconda3\lib\site-packages\skimage\io\_plugins\_colormixer.cp37-win_amd64.pyd # by generator 1.147 """ Constants used to describe error conditions. """ # no imports # Variables with simple values XML_ERROR_ABORTED = 'parsing aborted' XML_ERROR_ASYNC_ENT...
1cc9928d529ad5736e478cc4ac402889c072e6f5
91d1a6968b90d9d461e9a2ece12b465486e3ccc2
/waf_write_f/xss-match-set_create.py
c7702ffe2384dfbda2f82dad83e597d3abc55b61
[]
no_license
lxtxl/aws_cli
c31fc994c9a4296d6bac851e680d5adbf7e93481
aaf35df1b7509abf5601d3f09ff1fece482facda
refs/heads/master
2023-02-06T09:00:33.088379
2020-12-27T13:38:45
2020-12-27T13:38:45
318,686,394
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
#!/usr/bin/python # -*- codding: utf-8 -*- import os import sys sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))) from common.execute_command import write_parameter # url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html if __name__ == '__main__...
34c447b2702d0a89243b9206af1af98f49ae8b5b
5832f65747e6142d1b8de9d46aa507092782aafc
/Codeforces/1304/d/d1.py
1153970f359f16501943bc2d0f927e46b15fc1ac
[]
no_license
subhashreddykallam/Competitive-Programming
64cc42c5b23c03536187a1bb54e2b2ed82ee7844
973b66b4eb81352b98409ca52fa3aa75c28d8b6f
refs/heads/master
2022-05-28T21:07:43.012922
2020-05-05T20:34:20
2020-05-05T20:34:20
226,814,369
0
0
null
null
null
null
UTF-8
Python
false
false
1,618
py
from itertools import permutations def CeilIndex(A, l, r, key): while (r - l > 1): m = l + (r - l)//2 if (A[m] >= key): r = m else: l = m return r def LongestIncreasingSubsequenceLength(A, size): tailTable = [0 for i in range(size + 1)] len = 0 tai...
b3463b6fc44f470bc1c49964be9a1293d2c14279
38d93c5fd72fee380ec431b2ca60a069eef8579d
/Baekjoon,SWEA, etc/프로그래머스/소수 찾기.py
d4f4170daebf494386f6c0311a6f986a270b6131
[]
no_license
whgusdn321/Competitive-programming
5d1b681f5bee90de5678219d91cd0fa764476ddd
3ff8e6b1d2facd31a8210eddeef851ffd0dce02a
refs/heads/master
2023-01-01T01:34:22.936373
2020-10-24T11:05:08
2020-10-24T11:05:08
299,181,046
0
0
null
null
null
null
UTF-8
Python
false
false
2,080
py
import itertools # permutations = [] # # # def make_permutations(nn, n, permutation, visited): # ''' # if n == 4, create [[0,1,2,3],[0,1,3,2],[0,2,3,4] . . .] # ''' # if len(permutation) == nn: # permutations.append(permutation) # return # for i in range(n): # if not visited...
b0ddb85d5d6654d0bbf42e807f0356fc1e877ba3
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AntfortuneContentCommunityContentEventSaveResponse.py
460049c5dc88e8c5dfdbefc078a9cfe3196f03ef
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
491
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AntfortuneContentCommunityContentEventSaveResponse(AlipayResponse): def __init__(self): super(AntfortuneContentCommunityContentEventSaveResponse, self).__init__() def p...
56bc7e285a243b20416b0354cc8bd2200989d3a0
ac6e4102dfb49a4e49de0e2766feb6e80ab0b5c2
/test/test_networking_project_netgw_attach.py
74a8534b8692359526d9c3f667bbf6100f6e6b64
[ "MIT" ]
permissive
hyperonecom/h1-client-python
df01f05ad295121e3dd391a3274c41e2f5b88e53
4ce355852ba3120ec1b8f509ab5894a5c08da730
refs/heads/master
2023-04-05T01:51:31.637002
2021-03-29T00:05:41
2021-03-29T00:05:41
319,309,525
0
0
null
null
null
null
UTF-8
Python
false
false
852
py
""" HyperOne HyperOne API # noqa: E501 The version of the OpenAPI document: 0.1.0 Generated by: https://openapi-generator.tech """ import sys import unittest import h1 from h1.model.netgw_private import NetgwPrivate globals()['NetgwPrivate'] = NetgwPrivate from h1.model.networking_project_netgw_at...
2e3c7259450c57b1ae6db5382c7f7aa424a5a2c9
a5b6dfd04e49b86a4ec3ba1ca1fc941233fd1906
/leetCode/46Permutations.py
5ac95b13a5ac47b2245845689b668f8e2a71e15e
[]
no_license
JuDa-hku/ACM
c57423c4c619991ab5b8df170ace6c68fbe6bb48
3add05a6b07ec60ae148290f7f25d122336de47d
refs/heads/master
2021-06-25T09:33:05.396914
2016-10-29T03:27:03
2016-10-29T03:27:03
21,881,993
0
0
null
null
null
null
UTF-8
Python
false
false
553
py
class Solution: # @param {integer[]} nums # @return {integer[][]} def permute(self, nums): res, C = [], [] self.permuteHelp(nums, res, C) return C def permuteHelp(self, nums,res, C): if len(nums) == 0: C.append(res) return for num...
47fe148cfd3970866527a76d900bd6a16e5902c0
fb4fc6ca3b6ea208a2377325fd1d41e6fe068734
/tests/test_speed.py
40c06c1d58652a5c103c60146cc0bb2ed869b958
[]
no_license
nadia-el/ontology-semsim-py
d15977cebe5d750c256a4ce3ff3fdb6c6c7098a1
216ee2a7b83b951b3bce7865e1dd7c94acc17211
refs/heads/master
2022-04-16T21:08:53.126204
2020-04-03T23:12:47
2020-04-03T23:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,336
py
from ontology_semsim.util import time_all_ancestors, time_all_jaccard from ontology_semsim.fast_semsim import FastSemSimEngine from pytest import approx from typing import Optional, Set, List, Union, Dict, Any from rdflib import URIRef, BNode, Literal, Graph, RDFS, OWL, Namespace from ontology_semsim.semsim_rdflib impo...
e90c2f5b3dafdf720e55ab32568ca0901b82703d
1cedcf27afa82ada8eb9fb929bacc5233ecfb807
/process_data/create_entity_annotated_corpus.py
4ebe173f354ee7fccf225cc357946d2833e93497
[]
no_license
lukuang/trec_news
b4ae20ea0a9d72524e92287212b9753727b2ae0d
1a58e9ca9317dc16a327d2e5b259c257ddda6531
refs/heads/master
2020-03-17T06:59:43.204178
2019-04-04T13:25:48
2019-04-04T13:25:48
133,377,851
1
1
null
null
null
null
UTF-8
Python
false
false
9,378
py
""" Create corpus with entity annotation and each entity will be replaced by its cannonical form with some changes. More specifically, each entity will have 'ENT' annotated at the begining and the end. Besides that, the underscores and all other symbols to connect terms in the cannonical form of the entity will be...
6d60e2ec9b7cae3397a6fc0edadaa40037633b41
275c25b4a8f8009799dc0e7aebab21df1e43f542
/FruitStore/main.py
e2bc96dcd13b8dfc1b3f07acd8704117a6564c5a
[]
no_license
aranooke/Python-Data-Structure
9a81cdf39a7d9a865a43b73b4e7db1f4f8a1e570
3e4ad8488385823b0c36f453159b463831a19335
refs/heads/master
2023-06-05T06:34:55.095557
2021-06-29T09:46:51
2021-06-29T09:46:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,708
py
from FStore import FStore from FStore import Cart import time import getpass import logging import json def getAvilableStock(): stockInfo = open(r"FruitStore\stock.json", "r") return json.load(stockInfo) openStore = FStore(getAvilableStock()) cartInstance = Cart() def getUserInput(fromWhichMenu): inputM...
0a239158da7a4e929daf2fab7fc0257797715246
3fcb1d6e8566f1d31237c934a75ffbfa4b5742e0
/app_case/migrations/0001_initial.py
9d41d9298f47319eed946430f88a15e6ecd4fdd2
[]
no_license
xuxushenlan/itest_platform
42714bd9ee5dc776aefecb80fdeff3bfa654785e
56ced10fc9fe5ba05f6b699c98b882b93e9982e3
refs/heads/master
2021-02-23T08:02:16.418178
2019-12-21T10:11:49
2019-12-21T10:11:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,409
py
# Generated by Django 2.2.6 on 2019-11-30 14:46 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('app_manage', '0002_module'), ] operations = [ migrations.CreateModel( name=...
8f9f2b4084e6feae2c4e3634ec6c31e48e4bc526
b64c45e75aa215ddcf7249fb92e047f3e7731187
/projectdir/utils.py
a0dfa25016c6994023a415d114a185558e6928ca
[]
no_license
johngaitho05/CohMat
6731b4dfb94475c75f1cd1d2ec55cc810729f939
ff5b8e5eb877f68a0477f4f19b78c6e7c407af2c
refs/heads/master
2022-12-12T15:55:53.363782
2021-04-04T13:17:05
2021-04-04T13:17:05
239,868,710
1
0
null
2022-11-04T19:31:50
2020-02-11T21:31:47
Python
UTF-8
Python
false
false
2,081
py
import random from datetime import datetime, date, timedelta from django.template.defaultfilters import timesince, register from django.utils import timezone import pytz from django.utils import timezone class AgoTime: def __init__(self, date_time): ago = get_ago_time(date_time) if type(ago) != s...
ccfac22a5a38d03aaf49369740523ca537f17435
f3806d9fb54773908cd9704121a543b114470aca
/angr/procedures/definitions/win32_compstui.py
e3654bf84bcd95b3c81d56795784dd736af69b89
[ "BSD-2-Clause" ]
permissive
angr/angr
8ae95fceca51b0a001de56477d984dd01193ac1d
37e8ca1c3308ec601ad1d7c6bc8081ff38a7cffd
refs/heads/master
2023-08-17T03:15:21.007865
2023-08-15T18:44:57
2023-08-15T18:44:57
40,328,394
7,184
1,306
BSD-2-Clause
2023-09-14T20:14:23
2015-08-06T21:46:55
Python
UTF-8
Python
false
false
4,752
py
# pylint:disable=line-too-long import logging from ...sim_type import SimTypeFunction, SimTypeShort, SimTypeInt, SimTypeLong, SimTypeLongLong, SimTypeDouble, SimTypeFloat, SimTypePointer, SimTypeChar, SimStruct, SimTypeFixedSizeArray, SimTypeBottom, SimUnion, SimTypeBool from ...calling...
a1d57be50b7c6b7de643f9c7e0d3ee889b0adefe
cf7118bcfbde5d2bfae51f74bffb44a5f39b3961
/examples/discoro_client3.py
ee9165856b1f16aa58adac8fc11d8cec2376b2f3
[ "MIT" ]
permissive
tierralibre/asyncoro
b6aba8654a6c974898590f7814190c805704da1f
d0b7b4bb4f4e569235ee74ccc52810d74fe8af12
refs/heads/master
2021-01-17T07:56:01.467307
2016-08-06T19:24:56
2016-08-06T19:24:56
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,981
py
# Run 'discoronode.py' program to start processes to execute # computations sent by this client, along with this program. # Example where this client sends computation to remote discoro process to run # as remote coroutines. Computations are scheduled with custom scheduler # (without using RemoteCoroScheduler). Remote...
a1812f7f2ebf3080a7e2a9e6e77a45f739bd7ac5
e65a428ca7ee11d2f62d702842d4afbd493f08a4
/dictionaries/odd_occurrences.py
94e312ac04aa7a670ac1baa72e8af5f96bccd5f7
[]
no_license
NikiDimov/SoftUni-Python-Fundamentals
d8ba24a06c4366e76bdc69f1c5225dca29fe955e
5bb1bf5928e40f2bac867d33566c8b9dac13f566
refs/heads/main
2023-07-15T05:57:57.085880
2021-08-19T10:27:45
2021-08-19T10:27:45
323,631,864
0
0
null
null
null
null
UTF-8
Python
false
false
400
py
words = input().split() words = [el.lower() for el in words] dictionary = {} final_list = [] value = 1 for index in range(len(words)): key = words[index] if key in dictionary: dictionary[key] += 1 continue dictionary[key] = value for key, value in dictionary.items(): if dictionary[key] %...
63f0b3714d9174e540a1a9c7a40db8b81ca459e1
21b0b4c27193898207751c91b8b2ed168a1b1638
/py/py_0074_digit_factorial_chains.py
576fc3629b2ebe4479494eab79c28b6178f4a805
[ "MIT" ]
permissive
lcsm29/project-euler
67560a4e66968f1671a3d7ecf2dda6c956893dca
fab794ece5aa7a11fc7c2177f26250f40a5b1447
refs/heads/main
2023-07-04T11:45:24.374841
2021-08-07T08:20:41
2021-08-07T08:20:41
371,808,781
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
# Solution of; # Project Euler Problem 74: Digit factorial chains # https://projecteuler.net/problem=74 # # The number 145 is well known for the property that the sum of the factorial # of its digits is equal to 145:1! + 4! + 5! = 1 + 24 + 120 = 145Perhaps less # well known is 169, in that it produces the longest ch...
801a2b62b4da99a4dcc49110be6c373608da7381
7b1a2930931191444c76d0ee4863912dc811ff4f
/advertising/templatetags/image.py
0d586ae2cdf441bfb2b19177898112acb045fa95
[ "BSD-3-Clause" ]
permissive
django-ve/django-advertising
97a68e49dc2102bfc2dc50eac4fbd443b44f3af8
d369de379c224161e1c8d5eecde14bfb2b7423c3
refs/heads/master
2022-11-21T20:31:53.675161
2020-07-23T16:27:11
2020-07-23T16:27:11
281,835,835
0
0
null
2020-07-23T02:59:43
2020-07-23T02:59:42
null
UTF-8
Python
false
false
2,527
py
import sys from django import template from django.conf import settings from django.shortcuts import get_object_or_404 from django.utils.safestring import mark_safe from ..models import Advertising register = template.Library() @register.simple_tag def get_images_advertising(height=100, campaign="", *args, **kwarg...
a239a13d734f2f85c901126fa077257bd88ba16d
c8b541ea4fa7d159b80bef116e5cd232ac61b8c1
/venv/Lib/test/libregrtest/runtest.py
6b74a3bf598ab50b296434d0a0a67a0538e054f3
[]
no_license
shengmenghui/knowledge_building
7a2d8eef040c2d3a45726b3a908be301e922024b
04fd7784f15535efed917cce44856526f1f0ce48
refs/heads/master
2022-12-31T14:18:05.282092
2020-10-23T02:51:37
2020-10-23T02:51:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,435
py
import faulthandler import importlib import io import os import sys import time import traceback import unittest from sql_mode import support from sql_mode.libregrtest.refleak import dash_R, clear_caches from sql_mode.libregrtest.save_env import saved_test_environment # Test result constants. PASSED = 1 FAILED = 0 EN...
482f5d49eaccc3c22ece3c7ac66ee332cc9347d4
353def93fa77384ee3a5e3de98cfed318c480634
/.history/week01/homework02/maoyanspiders/maoyanspiders/spiders/movies_20200627215602.py
ad264859fade5fe3cd565586e3a4f0428ad647bf
[]
no_license
ydbB/Python001-class01
d680abc3ea1ccaeb610751e3488421417d381156
ad80037ccfc68d39125fa94d2747ab7394ac1be8
refs/heads/master
2022-11-25T11:27:45.077139
2020-07-19T12:35:12
2020-07-19T12:35:12
272,783,233
0
0
null
2020-06-16T18:28:15
2020-06-16T18:28:15
null
UTF-8
Python
false
false
1,183
py
# -*- coding: utf-8 -*- import scrapy from maoyanspiders.items import MaoyanspidersItem # import xlml.etree from bs4 import BeautifulSoup as bs class MoviesSpider(scrapy.Spider): name = 'movies' allowed_domains = ['maoyan.com'] start_urls = ['http://maoyan.com/board/4'] # def parse(self, response): ...
374696dce42ea18decb6f012afe4ef136ea501a1
321b4ed83b6874eeb512027eaa0b17b0daf3c289
/1/1.two-sum.333959566.Runtime-Error.leetcode.python3.py
8a44ca6d16b23521fd72653ab990f48e7fc81b5b
[]
no_license
huangyingw/submissions
7a610613bdb03f1223cdec5f6ccc4391149ca618
bfac1238ecef8b03e54842b852f6fec111abedfa
refs/heads/master
2023-07-25T09:56:46.814504
2023-07-16T07:38:36
2023-07-16T07:38:36
143,352,065
0
1
null
null
null
null
UTF-8
Python
false
false
278
py
class Solution: def firstBadVersion(self, n): MAX = n MIN = 1 while MAX >= MIN: MID = (MAX + MIN) // 2 if isBadVersion(MID): MAX = MID - 1 else: MIN = MID + 1 return MAX + 1
93aa196eba09a4b348af0294abef4a924b0caa0e
068d271e241d8cdb46dbf4243166e4b8ee7025b2
/Django/进阶部分/day68orm/day68orm/app01/migrations/0007_auto_20180510_1228.py
bb626764f5aef8969f86f26f887e6cae0ca42e17
[]
no_license
caiqinxiong/python
f6e226e76cb62aac970bcfbcb6c8adfc64858b60
9029f6c528d2cb742b600af224e803baa74cbe6a
refs/heads/master
2023-05-26T19:41:34.911885
2020-05-15T09:02:08
2020-05-15T09:02:08
195,261,757
1
0
null
2021-06-10T23:33:33
2019-07-04T15:01:42
JavaScript
UTF-8
Python
false
false
494
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-05-10 04:28 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('app01', '0006_auto_20180510_1227'), ] operations = [ migrations.AlterModelTable( ...
15113c318997014e892984c93d19e78847c9149d
bc183f7357cda3ad064f8c2ff34a176c406446d3
/pastepwn/analyzers/tests/alwaystrueanalyzer_test.py
0973040b894968d1844e79f9968191617269cd59
[ "MIT" ]
permissive
luton1507/pastepwn
b8a790168ce08f10c62574eeb0a68f0dedd5425d
9b2fee22857e54a5312fdb3d388b472a7d271c50
refs/heads/master
2022-11-10T20:18:40.102277
2020-06-19T23:34:14
2020-06-19T23:34:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
955
py
# -*- coding: utf-8 -*- import unittest from unittest import mock from pastepwn.actions.basicaction import BasicAction from pastepwn.analyzers.alwaystrueanalyzer import AlwaysTrueAnalyzer class TestAlwaysTrueAnalyzer(unittest.TestCase): def setUp(self): self.analyzer = AlwaysTrueAnalyzer(None) se...
5a8709278627f8364d572381810393c18f7ade2c
297497957c531d81ba286bc91253fbbb78b4d8be
/testing/web-platform/tests/tools/ci/run_tc.py
52d2dcf6fda24d64f4ab918c097479efb08369d5
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
marco-c/gecko-dev-comments-removed
7a9dd34045b07e6b22f0c636c0a836b9e639f9d3
61942784fb157763e65608e5a29b3729b0aa66fa
refs/heads/master
2023-08-09T18:55:25.895853
2023-08-01T00:40:39
2023-08-01T00:40:39
211,297,481
0
0
NOASSERTION
2019-09-29T01:27:49
2019-09-27T10:44:24
C++
UTF-8
Python
false
false
14,441
py
"""Wrapper script for running jobs in Taskcluster This is intended for running test jobs in Taskcluster. The script takes a two positional arguments which are the name of the test job and the script to actually run. The name of the test job is used to determine whether the script should be run for this push (this ...
4894236295787d0bb66c0692901d406cee22aea6
80b591ef2fc062b7b7935ac0ed21ab007adf2b69
/auto_input.py
45d7affb261a6143681ecdd9a54a1abe3979501a
[]
no_license
flysafely/Auto_input
52677e492e3ec0d0177fc8f524940bd4b3b1dcf6
fa55997616bcbee0276191e8087e57d634532f26
refs/heads/master
2022-01-09T08:48:34.014990
2019-06-05T10:57:29
2019-06-05T10:57:29
106,656,447
2
0
null
null
null
null
UTF-8
Python
false
false
29,718
py
from pymouse import PyMouse from pykeyboard import PyKeyboard from pykeyboard import PyKeyboardEvent from openpyxl import Workbook # 写excel时候用,因为win32com使用多线程的时候会提示 被呼叫方拒绝接收呼叫 的错误 from openpyxl import load_workbook from openpyxl.writer.excel import ExcelWriter from win32com.client import GetObject from win32com.clie...
df97e2cec6be03f872168b844e9078036280d682
0cfb5831a748ebd46e438e3ad7e7a09c1d196499
/com/chapter_08/section_03/task_8.3.4_functionWhile.py
f303ebafb04927959b06504d64048c0a65946b9e
[]
no_license
StevenGeGe/pythonFromIntroductionToPractice01
7cfe8cdb4bc5c0ddbe25b44976231d72d9e10108
9d2ba499056b30ded14180e6c4719ee48edd9772
refs/heads/master
2023-02-15T04:08:59.878711
2020-12-28T13:27:55
2020-12-28T13:27:55
310,980,820
0
0
null
null
null
null
UTF-8
Python
false
false
1,090
py
#!/usr/bin/python3 # -*- coding: utf-8 -*- # @Time : 2020/11/20 21:26 # @Author : Yong # @Email : [email protected] # @File : task_8.3.4_functionWhile.py # @Software: PyCharm def get_formatted_name(first_name, last_name): """返回整洁的姓名""" full_name = first_name + ' ' + last_name return full_name.titl...
a4bfce16b09eb37e9cdb42148c47e285c832cacc
98a834b6cd7f5cb5f596b3818eb84fca0855d62e
/data_gen.py
fa368b0ec07470c9a71b08e50965d5f818b8be3b
[]
no_license
lmb633/transformer
2e6fe2200942a6e8eb9f24ebfd47eb15478004e8
e60c743da2078430b764aa68e224e0046b91384e
refs/heads/master
2020-09-06T11:05:33.875047
2019-11-12T03:47:07
2019-11-12T03:47:07
220,407,189
0
0
null
null
null
null
UTF-8
Python
false
false
2,631
py
import pickle import time import numpy as np from torch.utils.data import Dataset from torch.utils.data.dataloader import default_collate data_file = 'data.pkl' vocab_file = 'vocab.pkl' IGNORE_ID = 0 pad_id = 0 print('loading samples...') start = time.time() with open(data_file, 'rb') as file: data ...
a8f7de53cd21c1dc7f0beac6dcb19aab8614a3b6
71acb7214efd91c0d327f6d8958e1798eadb4401
/locations/spiders/croix_rouge_francaise_fr.py
d9186b484a1d64d25affb1fa82f39a5e9c319099
[ "CC0-1.0", "MIT" ]
permissive
alltheplaces/alltheplaces
21b9f8b4ace1352e52ae7b8f8825a930d2cb033e
1bcbb55cfcf06f2c714465570711f6e83f205c22
refs/heads/master
2023-08-30T19:45:35.098658
2023-08-30T17:51:54
2023-08-30T17:51:54
61,166,935
453
176
NOASSERTION
2023-09-14T17:16:40
2016-06-15T01:09:18
Python
UTF-8
Python
false
false
2,581
py
from scrapy import Spider from scrapy.http import JsonRequest from locations.dict_parser import DictParser from locations.hours import DAYS_FR, OpeningHours, sanitise_day class CroixRougeFrancaiseFRSpider(Spider): name = "croix_rouge_francaise_fr" item_attributes = {"brand": "Croix-Rouge française", "brand_w...
311fac66bd5619c74f93b0a3b033e01376dc2ce5
5b3caf64b77161748d0929d244798a8fb914d9c5
/Python Excel Examples/CellsApiDemo/row/setRowStyle.py
b7416ef885f311a5d401678b9b4094cb9616b63c
[]
no_license
EiceblueCloud/Spire.Cloud.Excel
0d56864991eaf8d44c38f21af70db614b1d804b7
d9845d5cefd15a3ab408b2c9f80828a4767e2b82
refs/heads/master
2021-07-20T23:44:39.068568
2021-07-15T03:04:49
2021-07-15T03:04:49
230,225,396
1
1
null
null
null
null
UTF-8
Python
false
false
1,264
py
import spirecloudexcel from spirecloudexcel.configuration import Configuration as ExcelConfiguration from spirecloudexcel.api.cells_api import CellsApi appId = "your id" appKey = "your key" baseUrl = "https://api.e-iceblue.cn" configuration = ExcelConfiguration(appId, appKey,baseUrl) api = spirecloudexcel.api....
c4ab0b017776466c61193e88cafc3391fe2ec6a6
ae7ba9c83692cfcb39e95483d84610715930fe9e
/yubinbai/pcuva-problems/UVa 11349 symmetric matrix/main.py
5b0dbb58cb2e77b0c306a72f8344e573ab95df48
[]
no_license
xenron/sandbox-github-clone
364721769ea0784fb82827b07196eaa32190126b
5eccdd8631f8bad78eb88bb89144972dbabc109c
refs/heads/master
2022-05-01T21:18:43.101664
2016-09-12T12:38:32
2016-09-12T12:38:32
65,951,766
5
7
null
null
null
null
UTF-8
Python
false
false
635
py
import math import sys def symM(matrix, n): flag = True for x in range(n & 1 + n >> 1): for y in range(n): flag &= (matrix[x][y] == matrix[n - 1 - x][n - 1 - y]) if not flag: break if not flag: break return flag sys.stdin = open('input....
93ef50c85ce3b6ab9f8d2d735078a7f3d4f8fa8f
35dbd536a17d7127a1dd1c70a2903ea0a94a84c2
/tests/sentry/integrations/jira_server/test_utils.py
cd17caeb9eacffca5d0e6932a2c9fe1ac566c6bf
[ "Apache-2.0", "BUSL-1.1" ]
permissive
nagyist/sentry
efb3ef642bd0431990ca08c8296217dabf86a3bf
d9dd4f382f96b5c4576b64cbf015db651556c18b
refs/heads/master
2023-09-04T02:55:37.223029
2023-01-09T15:09:44
2023-01-09T15:09:44
48,165,782
0
0
BSD-3-Clause
2022-12-16T19:13:54
2015-12-17T09:42:42
Python
UTF-8
Python
false
false
525
py
from fixtures.integrations.mock_service import StubService from sentry.integrations.jira_server.utils import build_user_choice from sentry.testutils import TestCase from sentry.testutils.silo import control_silo_test @control_silo_test class BuildUserChoiceTest(TestCase): def test_jira_server(self): user_...
9b7918d1d533e510ce6ef3c4650b2b29a92e1da3
a6a78f59f442c18449befc89be2b193e37b695d6
/ivi/dcpwr.py
9c28dc0a695ccba5eaf52270ab1422ba87c08f1c
[ "MIT" ]
permissive
hohe/python-ivi
fa0b4b1232f4fca92bd046d2ae322e49959f8a83
0fe6d7d5aaf9ebc97085f73e25b0f3051ba996b6
refs/heads/master
2021-01-21T08:55:35.470107
2013-12-23T09:27:02
2013-12-23T09:27:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
29,975
py
""" Python Interchangeable Virtual Instrument Library Copyright (c) 2012 Alex Forencich 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 righ...
d1230b257269e14de6d6a92780f184655cea298a
38ba13df9ea6e53c7b924cad1f3bea2de59c7a6a
/nibbler/trading/collectors/testfiles/XMRpusher.py
259b074e21ed320eb51482ce968fe4705c991153
[]
no_license
JizzFactoryEmployee/nibblerppman
0fbc1ce662cf8b4868b41a97291250fae29dc41d
160e557578a3e8a614450354f6ade233d32b052f
refs/heads/master
2022-11-14T01:10:31.743000
2020-07-04T01:21:52
2020-07-04T01:21:52
273,835,770
0
1
null
null
null
null
UTF-8
Python
false
false
640
py
import time import subprocess import inotify.adapters def XMRrunner(): while 1 <2: i = inotify.adapters.Inotify() i.add_watch(r'/home/nibbler/nibblerppman/nibbler/trading/collectors/coins/XMR/1m') events = i.event_gen(yield_nones=False, timeout_s=1) a = list(events) if a ==...
f4c7922a4d689c89746373c980775b0a21ce13b7
500047f47a6b372fa7ff1e96b11315ee26acf5ef
/Chapter-05/badExample.py
c4cad1b499e3b50f0b20cd4f19c9a7030f4bff3b
[]
no_license
ra2003/Tkinter-In-Action
9f3a80bb2cab8dccf78621915f234f80cf79c58d
2a35ae029c2cfabb53adee8dae5fd0a7c6db817f
refs/heads/master
2022-03-02T16:25:26.146299
2019-10-07T06:36:41
2019-10-07T06:36:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,524
py
#!/usr/bin/python3 import tkinter as tk class RefactorExample(tk.Frame): def __init__(self,parent ): super().__init__() self.parent = parent panel = tk.Frame(self.parent, bg="white") prevButton = tk.Button(panel, text="<< PREV", command=self.OnPrev).place(x=50, y=0) ...
2b980f81aa73b51a4fce9dccc6c3707de8b329d8
849364a9b65ac32feab67dd3bb86119a0102f048
/tests/test25/t3.py
9b7f290499290cdfb37499f319fb698ddf121072
[]
no_license
zokis/Python--Faster-Way
585b46e50cc70c6b4f3b026d3b82ba2705f6fc6b
8f11e9246198c6bc3c0c58668674d75188c966ae
refs/heads/gh-pages
2022-07-28T18:50:54.342599
2015-07-02T19:43:18
2015-07-02T19:43:18
12,438,963
200
31
null
2018-03-25T16:12:12
2013-08-28T16:35:19
HTML
UTF-8
Python
false
false
80
py
def a(): n = 1 if n: return False else: return True
b9d86f03448c8cc1a54d531a274bd2c6babd51c3
228ebc9fb20f25dd3ed2a6959aac41fd31314e64
/tests/system/aiplatform/test_dataset.py
0167cb8f20ae58a1c3e8b302c90a48c4bafcf178
[ "Apache-2.0" ]
permissive
orionnye/python-aiplatform
746e3df0c75025582af38223829faeb2656dc653
e3ea683bf754832340853a15bdb0a0662500a70f
refs/heads/main
2023-08-03T06:14:50.689185
2021-09-24T03:24:14
2021-09-24T03:24:14
410,091,957
1
0
Apache-2.0
2021-09-24T20:21:01
2021-09-24T20:21:00
null
UTF-8
Python
false
false
11,073
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 o...
b8addbaf31dce94cbf9e67adfeee954a02ca3942
b3237e2600cfd2e84dbba3760a020c8434033e72
/Assignments/Exam Preparation/Python Advanced Retake Exam - 08 April 2020/03. Find the Eggs.py
893dfadef18cfd65e739782e2b18fa2140091f16
[ "MIT" ]
permissive
KaloyankerR/python-advanced-repository
94a22a5015bb66afa6c61b3fb8ad150dc7028d6a
711672d0f033a5adffc3ca689d02d2a7a9a26bfb
refs/heads/master
2023-04-11T18:48:40.538000
2021-04-21T10:55:30
2021-04-21T10:55:30
298,027,828
0
0
null
null
null
null
UTF-8
Python
false
false
1,464
py
def find_strongest_eggs(elements: list, sub_list): sub_listed_elements = [[] for x in range(sub_list)] ind = 0 while elements: if ind == sub_list: ind = 0 element = elements.pop(0) sub_listed_elements[ind].append(element) ind += 1 valid = [] for sub_lis...
69114fbbf1b5dd496c9af5359ad301b2f1eeb8b4
26ca1e0906feece27896bd267a1f58882fcb0513
/archive/Basics/multi_func.py
9820caf039d6f0b84af655361ed8812fdcd57056
[]
no_license
icecore2/python-training2019
092984c6dec1b05e70f9f899ee213d126c45ff63
ee39f93adabab506c9eef68c5e686ddb59953de9
refs/heads/master
2020-09-02T21:19:27.959213
2020-04-23T20:06:08
2020-04-23T20:06:08
219,306,742
0
2
null
2020-01-17T15:07:06
2019-11-03T13:40:56
Python
UTF-8
Python
false
false
385
py
import sys import os # from hints.time_gists import timeFormat firstNumber = 2 secondNumber = 3 # secondNumber.date = 22 def multiFunc(firstNumber, secondNumber): multiResult = firstNumber * secondNumber # time = timeFormat('%d-%m-%Y / %H:%M:%S') # print(time) return multiResult pass print("The...
234e88f3b0a9d275b613902e63d48a31b12c0038
0a3bd0fc84263bd65559cf95b19a6752743f7f64
/src/guis/make_svg_camm
ce5acafd13805ae35b9ba00de0042e3ae860ed81
[]
no_license
shohei/fabmodules_jp
b38487e5e64599fe8f3de2c404c1f730e81c616c
67dc16709bb9eff12b63532e83a13aa410f76311
refs/heads/master
2016-09-06T16:25:46.636267
2014-08-21T06:49:37
2014-08-21T06:49:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,265
#!/usr/bin/env python #-*- coding:utf-8 -*- # # make_svg_camm # .svg to .camm GUI wrapper # # Neil Gershenfeld # CBA MIT 7/13/11 # # (c) Massachusetts Institute of Technology 2011 # Permission granted for experimental and personal use; # license for commercial sale available from MIT. # # imports # import wx,sys fro...
42847c974fe12ff0e8c68e79c9bf6085ad3133f3
1915a3f90059f4a125b81675d16a427c85428626
/post.py
6ab84f631b32119601408481bcca0279c07a68e8
[]
no_license
AntLouiz/location_photo_bot
b09fd9939513d21b755c6204199c29c31284240c
0fcf85553efb26f4eec238aa4b0b8f2b57d9f276
refs/heads/master
2020-03-31T15:30:04.605136
2018-10-20T01:44:38
2018-10-20T01:44:38
152,339,854
0
0
null
null
null
null
UTF-8
Python
false
false
765
py
import json import datetime class Post(object): def __init__(self): self.location = None self.photo = None self.date = None def clean(self): self.location = None self.photo = None self.date = None def save(self): data = { 'location': {...
bb505cb548b5416b10fedd876d900a3c7eb66011
24fe1f54fee3a3df952ca26cce839cc18124357a
/servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/eqpt/fanstatshist1h.py
faf10d31b9ed476de3fe3f4b2b2402b56adf2b40
[]
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
17,009
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...
ca9afadd672ce387fd79fc8c543b9111e07090f5
0460b645ac0697433e4526ea9215ac25c97a64bb
/venv/bin/pyhtmlizer
9c15bcee75f63931c24a55fe21eaa476ebb0d585
[]
no_license
veujs/weibo
0e20645d07196193537f523a677892d3da1abf88
b33d0c41fc82608fd828e2790a2dcc2c9a246f36
refs/heads/master
2020-05-30T12:03:22.631450
2019-06-01T10:18:36
2019-06-01T10:18:36
189,718,486
0
0
null
null
null
null
UTF-8
Python
false
false
433
#!/home/wangzhipeng/myproject/myspider/weibo/venv/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.2.0','console_scripts','pyhtmlizer' __requires__ = 'Twisted==19.2.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '',...
1b3017e4d9efb6b748173059fdf1e8e745873df8
cda215558ad8448ed8e2cbb89719de312c382a95
/enteletaor_lib/libs/hooks/__init__.py
56572dc3372dc7674f8e8348206a7e4528940f44
[ "BSD-3-Clause" ]
permissive
cr0hn/enteletaor
63fc6a9f832ea7b6b08f3f786445a8235b9a4618
a975b5cb06bc5f819b32e65d0cd2258a37370661
refs/heads/master
2023-05-11T13:38:25.213779
2023-05-08T08:41:31
2023-05-08T08:41:31
52,361,896
166
31
NOASSERTION
2023-05-08T08:41:36
2016-02-23T13:44:22
Python
UTF-8
Python
false
false
4,021
py
# -*- coding: utf-8 -*- # # Enteletaor - https://github.com/cr0hn/enteletaor # # Redistribution and use in source and binary forms, with or without modification, are permitted provided that the # following conditions are met: # # 1. Redistributions of source code must retain the above copyright notice, this list of con...
de7091480f2f208de4c42fa97e6a868185619552
8746f4e3da5e230ec0ca4b924bb06a9951dd03da
/setup.py
9082c72d9f540e3e1d1fc8b9b0e4754df699af35
[ "MIT" ]
permissive
Apeopl/django-dj-plugin
845a508dd9088ceb9d9e03de56f5c11d5d1d07a4
2711c1af0185eea0fe5d1aed2eca5cd0422b387d
refs/heads/master
2021-04-19T06:04:23.658893
2020-03-26T06:59:50
2020-03-26T06:59:50
249,585,770
0
0
MIT
2020-03-26T01:49:01
2020-03-24T01:42:04
Python
UTF-8
Python
false
false
2,239
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import re import sys try: from setuptools import setup except ImportError: from distutils.core import setup def get_version(*file_paths): """Retrieves the version from django_dj_plugin/__init__.py""" filename = os.path.join(os.path.dirname(__fil...
4e88beb03ff92ac889515bdb3172e288f961c20b
c5d87c7f25e3fe9b17c1e88993b0ed6831e52acb
/Django_HelpWord/mysite3/upload/templates/__init__.py
7c35217eb0fb5679a9ba58649325514db58ce182
[]
no_license
GIS90/python_base_use
e55d55f9df505dac45ddd332fb65dcd08e8e531f
7166ca85975bb7c56a5fbb6b723fd8300c4dd5d1
refs/heads/master
2020-04-02T08:33:49.461307
2018-10-23T03:33:41
2018-10-23T03:33:41
154,249,857
1
1
null
null
null
null
UTF-8
Python
false
false
270
py
# -*- coding: utf-8 -*- """ ------------------------------------------------ describe: ------------------------------------------------ """ __version__ = "v.10" __author__ = "PyGo" __time__ = "2017/3/30" if __name__ == '__main__': pass
3937e4a4be12d7fa734792ababc9590adee4697e
aeb40bfa5a685bb739e818e7ea906a748795ba59
/data/management/commands/insert_dynamic_data.py
c6bd4bddbe9e2c54d30ac01bfb78a64a3ab95d03
[]
no_license
jaebradley/nba_persistence
d1be548967266b4af09625fc140ce9fb4cd88a25
177129ad195c07dc0ff93a6c2c8f7b34770da116
refs/heads/master
2021-01-18T23:56:52.512661
2017-02-16T21:17:05
2017-02-16T21:17:05
48,635,050
10
2
null
2016-09-23T02:44:36
2015-12-27T06:14:25
JavaScript
UTF-8
Python
false
false
474
py
from django.core.management.base import BaseCommand from data.inserters.dynamic import insert_players, insert_games, insert_box_scores class Command(BaseCommand): def __init__(self, stdout=None, stderr=None, no_color=False): super(Command, self).__init__(stdout, stderr, no_color) def handle(self, *a...
7d0ac5540cd33b68e73c38be260d8192538f2a02
2f2e9cd97d65751757ae0a92e8bb882f3cbc5b5b
/1550.存在连续三个奇数的数组.py
4b37608348efa8136e2a1c0fa66108f9a3ea9483
[]
no_license
mqinbin/python_leetcode
77f0a75eb29f8d2f9a789958e0120a7df4d0d0d3
73e0c81867f38fdf4051d8f58d0d3dc245be081e
refs/heads/main
2023-03-10T18:27:36.421262
2021-02-25T07:24:10
2021-02-25T07:24:10
314,410,703
0
0
null
null
null
null
UTF-8
Python
false
false
452
py
# # @lc app=leetcode.cn id=1550 lang=python3 # # [1550] 存在连续三个奇数的数组 # # @lc code=start class Solution: def threeConsecutiveOdds(self, arr: List[int]) -> bool: odd_count = 0 for e in arr: if e%2: odd_count +=1 if odd_count ==3: return T...
f68c84a68633225f5e770dd8f0c75f1770df1349
bc07e2822dbd213e194f69962e2f76c5350f2dc6
/Python/Introduction/divmod.py
d2195bf6886309c6b622b8a30facfef7e71eabb1
[]
no_license
nocotan/HackerRank
ddd3168910590c9dcfe59f39551a6de0e63f5946
346592c96c5a00c5da9eab73e046b13cefc630d6
refs/heads/master
2021-01-15T15:37:52.630649
2016-10-30T16:05:17
2016-10-30T16:05:17
55,508,533
1
1
null
2018-01-19T05:56:20
2016-04-05T13:06:29
Python
UTF-8
Python
false
false
93
py
a = int(input()) b = int(input()) ans = divmod(a, b) print(ans[0]) print(ans[1]) print(ans)
287e89cd4c348d4ddc8853c3630fe6bc44339f34
719e7b35f2b1c3196ff8084b5c5c46cbd2a22f5f
/setup.py
c11bcae02e8fed764919d18313cdb3ad23794389
[ "MIT" ]
permissive
noobermin/pynoob3a
72817b87dd7f96652487d139f42373adac820dca
fa8b6650ac286b52803b98b6b596f3cdc9db87cb
refs/heads/master
2021-02-09T14:07:35.912782
2020-03-02T05:48:52
2020-03-02T05:48:52
244,291,108
0
0
null
null
null
null
UTF-8
Python
false
false
259
py
from setuptools import setup setup(name='pynoob3a', version='0.0.1', description='dumb binary format', author='noobermin', author_email='[email protected]', license='MIT', packages=['noob3a'], zip_safe=False);
be85893dfa6895326d2afa7685f39f168fc17af4
d596796c1488ea6dc67fb2030e2fd1fbf45e54cb
/free/index.py
7bccfb1fd092f52382826ca46e34b1e4c277d164
[]
no_license
zerc/draft
83aad5b08fc1d7569295aa595821f117cb29decd
a972f1c341c711530c0894b5340a6639b206ec41
refs/heads/master
2021-01-15T23:02:10.509905
2010-06-22T16:15:56
2010-06-22T16:15:56
730,443
0
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
#!/usr/bin/python #-*- coding:utf-8 -*- # zerc.ru from os import popen def get_free(): s = tuple(popen('free -m').readlines()[1].split()[1:4]) return s def index(): html = """ <html> <head><title>web free</title></head> <body> <style type="text/css"> body {margin:0;padding:0;background:#aeaeae;color:#ffffff;} ....
2be97047e2001fdc961703b5402a777176f20e26
9e4e7b9d3ad410ea84310d1a93122f6817f59b5e
/bin/edsig
d7d9c4fe903836407868143f4c31d604a3624a26
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
Sigterm-no/python-ed25519
42105735c53eba865c5b0430eee2487f40b73fea
15237f3536b12022c30553a857524768a2d904c7
refs/heads/master
2021-01-11T05:08:06.617637
2014-03-19T23:21:30
2014-03-19T23:21:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,709
#! /usr/bin/python import os, sys import ed25519 from hashlib import sha256 def help(): print """\ Usage: (ed25519 version %s) edsig generate [STEM] creates keypair, writes to 'STEM.signing.key' and 'STEM.verifying.key' default is to 'signing.key' and 'verifying.key' edsig sign (signing.key|keyfile) mes...
cade8d6acd2d53c2ab00934deb72f9baef388b31
7f760365660de815db319d20bb05e1fbd5fc8df4
/server/app/outputs/dmx.py
150ff08a6742385ae301ebc0a725eae9f721682f
[ "MIT" ]
permissive
BasementCat/audio-reactive-led-strip
db5ac94eb3c43dfdb6a79501d6d8711579d41c51
a98bac8e04c0fae3022de9f5086914dc1f1192d8
refs/heads/master
2022-07-21T12:39:06.257207
2022-07-14T01:12:08
2022-07-14T01:12:08
216,214,804
2
0
MIT
2019-10-19T13:58:07
2019-10-19T13:58:07
null
UTF-8
Python
false
false
4,487
py
import os import glob import logging import threading import time import subprocess import re from dmxpy.DmxPy import DmxPy from app import Task from app.lib.misc import FPSCounter logger = logging.getLogger(__name__) hexint = lambda v: int(v, 16) def find_device_file__linux(vendor, product): if not os.path.e...
32e99b6d1e481856877756ea2cb6756722d16906
61ef327bd1d5ff6db7595221db6823c947dab42b
/FlatData/EquipmentStatExcelTable.py
e079ec5a2805f744c293cc9dd2edff8c4f954a6f
[]
no_license
Aikenfell/Blue-Archive---Asset-Downloader
88e419686a80b20b57a10a3033c23c80f86d6bf9
92f93ffbdb81a47cef58c61ec82092234eae8eec
refs/heads/main
2023-09-06T03:56:50.998141
2021-11-19T12:41:58
2021-11-19T12:41:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,555
py
# automatically generated by the FlatBuffers compiler, do not modify # namespace: FlatData import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class EquipmentStatExcelTable(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffer...
30d2d8bf4d1bd7d1f4a8095bfd4336d191319e46
bbe5b336150c38f480a4c3a3a15e1d65a7dfc7d1
/tests/app/api/business/validators/application_validator/test_validate_documents.py
319034a3aff6b2c513ba2c418c2b4794d506282a
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
AusDTO/dto-digitalmarketplace-api
9135785c205fe04bbb07782c561c5c5f8cf8417d
af1f0c8979406f80223ab7a68266563abd80b2f4
refs/heads/master
2022-07-31T04:12:36.364555
2022-07-07T04:31:41
2022-07-07T04:31:41
62,025,672
6
7
MIT
2022-05-23T23:32:37
2016-06-27T04:34:37
Python
UTF-8
Python
false
false
1,755
py
from app.api.business.validators import ApplicationValidator from app.models import Application def test_can_get_error_when_no_documents(): application = Application( data={} ) errors = ApplicationValidator(application).validate_documents() assert len(errors) == 1 def test_can_get_error_for...
e24f4a4008a9f2edade00871369f275ca42462dd
5b9bce9fdfc13848b6bacc73741f6e8fc5a4ae99
/client/client.py
eb5be712516765751211389e5083d166429114f2
[]
no_license
ContinuumBridge/bridge_admin
4a5a036f4e0cb4e96366a85524aef0c33e82a7ff
efd4148a55221f74cb8a11139a8416d1af453408
refs/heads/master
2022-03-20T15:00:01.422221
2020-01-04T11:08:17
2020-01-04T11:08:17
17,435,712
0
0
null
null
null
null
UTF-8
Python
false
false
3,006
py
import httplib import json import requests import websocket import time import signal from twisted.internet import threads from twisted.internet import defer from twisted.internet import reactor #CID 64 on Production. Key: 6b8b20b7r2oPxGmlwjoFuJD/iLKCPTkBOW/ZR9F2vnyxGd1pHLVVime+srwxoOTP #CB_ADDRESS = "porta...
41faa5af6577c42cbb30f57da6441bb4991e463c
e6f62843d8e7f580a8f2993988cde930a2f5daf2
/final_project/work_classifiers.py
b665de4b121586dd97b0848c3555e197199060cd
[]
no_license
diegoami/ud120-projects
614002d317425139948a254293c46a335c1b1e22
2a573ea095ac456843c203592d7175800d49c938
refs/heads/master
2021-01-20T00:27:48.939087
2017-06-15T19:07:59
2017-06-15T19:07:59
89,133,359
0
0
null
2017-04-23T10:17:18
2017-04-23T10:17:18
null
UTF-8
Python
false
false
854
py
import numpy as np def gaussian_classificator(features_train, labels_train): from sklearn.naive_bayes import GaussianNB clf = GaussianNB() clf.fit(features_train, np.ravel(labels_train)) return clf def tree_classificator(features_train, labels_train, **kwargs): from sklearn import tree clf =...
15d84fd92ae6047db555a7aabf4fe7ff1c05d808
e8d7e13eb4d26c0a0147f2d0208d70e61f865c2c
/untitled7/bin/2to3-3.6
a7320f5bb9145f972ebb4114fd485764853a360d
[]
no_license
fazi4888/APCSP-FreshmanYear
55c5b5717aadeb2d871582754174f88213a488fe
b4f0f797b2c469e148b0330ad9d309610f1f0668
refs/heads/master
2022-11-30T11:51:30.210342
2020-08-17T15:00:37
2020-08-17T15:00:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
121
6
#!/Users/rayaan_siddiqi23/untitled7/bin/python import sys from lib2to3.main import main sys.exit(main("lib2to3.fixes"))