blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
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
684 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
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
c41ce62c12d7a209f1c6fe95b4a31cd755ab747b
36d6089639984954e2972aa7a3ce92cdb29cf8d0
/nephelae_mesonh/__init__.py
0949c4f5a852293759a620f011628298c3efe500
[ "BSD-3-Clause" ]
permissive
pnarvor/nephelae_mesonh
99f6e4e89779165a3059a7b44f03a39c5ba25486
8ffe91e854365884136f1e04150593e630495a5c
refs/heads/master
2020-07-12T22:20:11.064297
2019-10-25T13:44:05
2019-10-25T13:44:05
204,920,866
0
0
null
null
null
null
UTF-8
Python
false
false
230
py
from .MesonhDataset import MesonhDataset from .MesonhInterface import MesonhInterface from .MesonhVariable import MesonhVariable from .MesonhCachedProbe import MesonhCachedProbe from .MesonhMap import MesonhMap
[ "pnarvor@laas.fr" ]
pnarvor@laas.fr
4c3bebe0f78b55368d9c6341eadf1ac4447e28a1
19cec240505e27546cb9b10104ecb16cc2454702
/linux/test/python/closedfiles_parent.py
4ff14ba3aad5ff07ac5fd97151575f69e221e568
[]
no_license
imosts/flume
1a9b746c5f080c826c1f316a8008d8ea1b145a89
a17b987c5adaa13befb0fd74ac400c8edbe62ef5
refs/heads/master
2021-01-10T09:43:03.931167
2016-03-09T12:09:53
2016-03-09T12:09:53
53,101,798
0
0
null
null
null
null
UTF-8
Python
false
false
327
py
import sys import os import flume.flmos as flmo import flume as flm import os.path prefix = os.path.dirname (sys.argv[0]) argv = [ sys.executable, prefix + "/closedfiles_child.py" ] ch = flmo.spawn (prog=argv[0], argv=argv, confined=True) (pid, status) = flmo.waitpid () print "wait returned: %s,%d" % (str (pid), s...
[ "imosts" ]
imosts
e13545d99398958ae58cc15b0aac831648633520
6a730375ce4b5af3d832f9b81a9164edd2cd2880
/whitelist_vote_igdb.py
e900bd2f3aa2cd0aa630b07e9ca70c2d01809f64
[ "MIT" ]
permissive
woctezuma/metacouncil-goty
b20fc76e8e8c4b15c159663b6181db0c31045682
bbbc718b2ae171d92bfb360527e0d6f41c332594
refs/heads/master
2023-09-04T09:50:35.309976
2023-02-05T18:48:57
2023-02-05T18:48:57
163,838,387
1
0
MIT
2023-09-14T17:51:15
2019-01-02T12:30:02
Python
UTF-8
Python
false
false
894
py
import json from anonymize_data import get_data_folder from igdb_databases import get_igdb_file_name_suffix def get_file_name_for_whitelisted_igdb_ids(release_year=None): suffix = get_igdb_file_name_suffix(release_year) file_name = get_data_folder() + 'whitelisted_igdb_ids' + suffix + '.json' return fi...
[ "woctezuma@users.noreply.github.com" ]
woctezuma@users.noreply.github.com
2053509e48d252e24f9719225852b4e36692fedd
05217f20200f03ff18f522c79377426373f7cf9f
/OrmDemo/app01/migrations/0002_user_phone.py
fc40e3efa7739f13b211476ee068aa2eda1d019b
[]
no_license
njw-666/1118Django
d381b90f1148f9ae8eb6baa00b4600e01b9512a5
c3cae1f832114e79b73ec11b39130eee2ea1655c
refs/heads/master
2022-11-20T07:52:55.846013
2020-03-23T08:29:07
2020-03-23T08:29:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
# Generated by Django 2.2.1 on 2020-02-12 08:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('app01', '0001_initial'), ] operations = [ migrations.AddField( model_name='user', name='phone', field=mo...
[ "str_wjp@126.com" ]
str_wjp@126.com
1420d398078d4277a74ee2f0df1553fa9807eec2
600a25688c745a4938d27f7d9247a703c218124a
/Countries.py
650c9fad82c01c70c1bea7e50378d218d2eafadc
[]
no_license
sugar-activities/4528-activity
33586bf04e5c60a9d9b199293c4896f27504273a
4c922480688b726c2bf4db9d14704147a3af261a
refs/heads/master
2021-01-19T23:15:24.448857
2017-04-21T05:12:21
2017-04-21T05:12:21
88,938,012
0
0
null
null
null
null
UTF-8
Python
false
false
7,092
py
#!/usr/bin/python # Countries.py """ Copyright (C) 2011 Peter Hewitt This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) ...
[ "ignacio@sugarlabs.org" ]
ignacio@sugarlabs.org
b1ee93c1753c2ca2b244a8bf66a33d8521856f81
ebb4dd8e0bc59461b1b5bdf001240808fa335b66
/dephell/models/root.py
ef823ae2b003d91e1ac6aa335cd27693602944da
[ "MIT" ]
permissive
bkhanale/dephell
b20e8d7faee86c38b353cd45b264ec132fd8fa52
accdcbeda55c071d1a09ea9be714221cc59b5f85
refs/heads/master
2020-06-04T15:22:55.183952
2019-06-15T11:33:40
2019-06-15T11:33:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,213
py
# built-in from contextlib import suppress from pathlib import Path from typing import Tuple # external import attr from dephell_discover import Root as PackageRoot from dephell_specifier import RangeSpecifier from packaging.utils import canonicalize_name # app from ..cached_property import cached_property from .grou...
[ "master_fess@mail.ru" ]
master_fess@mail.ru
6469305d1761be852347aa108a55477988d28228
711c11d0111a40055ba110e7089a231c2ba42b8e
/toontown/toon/DistributedNPCFisherman.py
5e45dda935bb3f24954cbd6074dd9f956c8d2ebb
[ "Apache-2.0" ]
permissive
DeadMemez/ProjectAltis-OldAcornAcres
03c8dc912ecccae8456d89790f6b332547b75cc3
e8e0087389933795973e566782affcaec65a2980
refs/heads/master
2021-01-19T13:59:07.234192
2017-08-20T14:41:45
2017-08-20T14:41:45
100,869,782
0
2
null
2017-08-20T15:14:35
2017-08-20T15:14:35
null
UTF-8
Python
false
false
6,501
py
from direct.gui.DirectGui import * from direct.interval.LerpInterval import LerpPosHprInterval from direct.task.Task import Task from pandac.PandaModules import * import time from toontown.toon.DistributedNPCToonBase import * from toontown.toon import NPCToons from toontown.chat.ChatGlobals import * from toontown.fishi...
[ "tewtow5@gmail.com" ]
tewtow5@gmail.com
cceb90528299f4465415a3d7e23303c7ff8709e6
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_79/35.py
9041a78bc03d2c4369a0ff5bb4be6d51e22e517f
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,598
py
def main(): fin = open('B-small-attempt3.in','r') fout = open('output.txt','w') T = int(fin.readline()) for i in range(T): N,M = [int(x) for x in fin.readline().strip().split(' ')] words = [] lists = [] for j in range(N): words.append(fin.readline().strip()) for j in range(M): lists.append...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
b21561ed3d680a601eb975e8ebf40b08e1b73a55
3ac0923505e1e03a07742355edec43f23ead82b7
/Daily/PY/Leetcode897-递增顺序搜索树.py
feeac06f7bca380618dfaaa71b4c073c72743ede
[]
no_license
lock19960613/SCL
5055c940d2529eef981a29698c7ea04212a8b9de
3ea28fd8f5d5233411341283c85667e4b9fc64d5
refs/heads/main
2023-08-03T04:36:33.555296
2021-09-11T06:48:49
2021-09-11T06:48:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
445
py
class Solution: def __init__(self): self.tail = None def increasingBST(self, root: TreeNode) -> TreeNode: dummy = TreeNode(-1) self.tail = dummy def dfs(root): if root == None: return dfs(root.left) root.left = None ...
[ "597494370@qq.com" ]
597494370@qq.com
f8670a30ba4854fe0f54e55d53b37b53de785753
e845f7f61ff76b3c0b8f4d8fd98f6192e48d542a
/djangocg/contrib/gis/db/backends/postgis/introspection.py
a85b2fbe1a6ff57146f94555c4a1376c993f4cdd
[ "BSD-3-Clause" ]
permissive
timothyclemans/djangocg
fd150c028013cb5f53f5a3b4fdc960a07fdaaa78
52cf28e046523bceb5d436f8e6bf61e7d4ba6312
refs/heads/master
2021-01-18T13:20:13.636812
2012-08-31T23:38:14
2012-08-31T23:38:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,389
py
from djangocg.db.backends.postgresql_psycopg2.introspection import DatabaseIntrospection from djangocg.contrib.gis.gdal import OGRGeomType class GeoIntrospectionError(Exception): pass class PostGISIntrospection(DatabaseIntrospection): # Reverse dictionary for PostGIS geometry types not populated until # i...
[ "timothy.clemans@gmail.com" ]
timothy.clemans@gmail.com
bf03d98afe70a7a261e821031386b09e79d3a92f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/171/usersdata/355/82127/submittedfiles/decimal2bin.py
6c6f2629a62746ad3d49e1929ad1b60cce473299
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
162
py
# -*- coding: utf-8 -*- n=int(input('Digite o binário: ')) soma=0 i=0 while(n>0): ultimo=n%10 soma=soma+(ultimo*(2**i)) i=i+1 n=n//10 print(soma)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
37a8aa4fff1603b16e88d11a99fc9dcc5921537a
995514f414eee6bbe9083ec39ecd3027cf9fd7d8
/3.2/point.py
7f84658c8de60d62e18aa9dffbe097da2720ffee
[]
no_license
j16949/Programming-in-Python-princeton
e02376ebb714264a1329aacad30347e4ae79f909
392391b98815cc1ae2b49e1057a10bc5b37e801f
refs/heads/master
2023-08-08T11:52:04.362780
2023-08-01T13:02:41
2023-08-01T13:02:41
313,943,770
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
import math class Point: def __init__(self,x,y): self._x = x self._y = y def distanceTo(self,b): return math.sqrt((self._x - b._x)**2 + (self._y - b._y)**2) def __str__(self): return '('+str(self._x)+','+str(self._y)+')' def main(): p1 = Point(0,0) p2 = Point...
[ "kkwert@sina.com" ]
kkwert@sina.com
0063be15c4691a0ffcfba1cded008691faca813e
65919b5af04c9d761783add8beef4040a15de0cd
/zaodao/querying_mongodb3.py
2a43724fa0bbee08f5c34f3a520825a087b84b22
[]
no_license
Falonie/PythonSpiders
df6493aa2151b8f5373099be33e4480a36a2e518
5948c6384add0459223eba29c10bfa1c459dbab5
refs/heads/master
2021-09-09T11:01:56.802254
2018-03-15T11:39:35
2018-03-15T11:39:35
86,910,800
3
0
null
null
null
null
UTF-8
Python
false
false
1,495
py
import pymongo, xlrd, os, csv db = pymongo.MongoClient(host='localhost', port=27017)['Falonie'] collection = db['zdao_总裁_filter_duplicates_crawled_result'] collection_filter_duplicates = db['zdao_总裁_filter_duplicates'] for i, j in enumerate(collection.find({}), 1): # print(i,j) pass # collection.drop() url_li...
[ "541002901@qq.com" ]
541002901@qq.com
551248b7a0d231b09230d1741030f609e51abac3
6f844abf7c436a4ae3444744c523f5f1fe6367a4
/utility/update_db.py
02843c2d7cbb798d1a24b169fd4a5fd64b0434ec
[]
no_license
deepakbhamla/Halanx_Backend_Task
1dd02a1061eb4d4f6072a3276735cb606dfec752
acda98c6b79690689317585dd06cf0c1cfc65192
refs/heads/master
2022-04-12T10:02:29.740781
2020-03-12T12:17:22
2020-03-12T12:27:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
234
py
""" for oo in o: oo.delivery_start_time = timezone.make_aware(datetime.combine(oo.delivery_date, oo.start_time), pytz.timezone('Asia/Kolkata')) oo.save() order delivery time order placing time cart delivery time image_urls """
[ "patel.ayush08@gmail.com" ]
patel.ayush08@gmail.com
d143000785f42164d119d365696e97763b68c153
657c80336bce1cc6158cd349ce208c5e680a4d0d
/tests/interactive/window/event_close.py
8967ddfdf275a100cf795138bae7794bb236f1bd
[ "BSD-3-Clause" ]
permissive
Xinmudotmoe/pyglet
b37628618647bf3b1e3d7db28202a5e14c60450c
144257c365ca85528c6a4c5bed8141e683d7a9b6
refs/heads/master
2021-05-29T22:05:40.676643
2015-10-24T05:55:49
2015-10-24T05:55:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
800
py
"""Test that close event works correctly. Expected behaviour: One window will be opened. Click the close button and ensure the event is printed to the terminal. The window should not close when you do this. Press ESC to end the test. """ import unittest from pyglet import window from pyglet impor...
[ "leif.theden@gmail.com" ]
leif.theden@gmail.com
26f76c35c42d56dba19ade991a05765489ec425c
5a06b4ecc5283f64d2eec1da879c31b0d54b2d86
/initialize/createBinaryAlloy.py
18122bc05c022afe1804c26635e2212a44f94d69
[]
no_license
statt8900/ksb_scripts
31c94b69a554db0654c9d9e8be5ba61f73fe9460
f3caa5505457c309b453161da1d6f169e1ed7bec
refs/heads/master
2021-07-16T20:29:05.854303
2017-10-20T03:52:38
2017-10-20T03:52:38
107,474,694
0
0
null
2017-10-19T21:08:10
2017-10-18T23:34:50
Python
UTF-8
Python
false
false
2,946
py
""" import warnings warnings.filterwarnings("ignore", message="Moved to ase.neighborlist") from emt import EMT from printParse import parseChemicalFormula from ase import io, Atoms from ase.lattice.cubic import FaceCenteredCubic,BodyCenteredCubic,Diamond from ase.lattice.hexagonal import HexagonalClo...
[ "30441880+statt8900@users.noreply.github.com" ]
30441880+statt8900@users.noreply.github.com
e659b0d25f487ff1b5c033e40368364f9a67e295
30109f5f173f4e51a20cfcaf6ec41628b177f553
/fhir/resources/triggerdefinition.py
0b32ea7de0c0ac95534207e81a9f212a0313ba29
[ "BSD-3-Clause" ]
permissive
arkhn/fhir.resources
82c8f705c8f19e15621f2bb59fd17600c0ef3697
122e89c8599c4034bb3075b31d1a1188e377db91
refs/heads/master
2022-12-16T07:58:19.448071
2020-08-13T03:59:37
2020-08-13T03:59:37
288,683,730
1
0
NOASSERTION
2020-08-19T09:01:02
2020-08-19T09:01:01
null
UTF-8
Python
false
false
7,330
py
# -*- coding: utf-8 -*- """ Profile: http://hl7.org/fhir/StructureDefinition/TriggerDefinition Release: R4 Version: 4.0.1 Build ID: 9346c8cc45 Last updated: 2019-11-01T09:29:23.356+11:00 """ from typing import Any, Dict from typing import List as ListType from pydantic import Field, root_validator from . import eleme...
[ "connect2nazrul@gmail.com" ]
connect2nazrul@gmail.com
a944b04abc9dc4fe54297cf6445837b3adc0175f
8a90e0f7aa2fc43fa469c1f91ad0fbbf9ab10b15
/projects/gliding/configs/gliding_r101_fpn_1x_dota_without_rotate_balance_cate.py
cb888d2361999a1d6a464fb26361502e0be7a02a
[]
no_license
cxjyxxme/JDet
af2b2bcbb084a1adfe03bf275eaaa43dd404cd3b
92164dc800fae173ed99df7351ea959f877d5ea3
refs/heads/master
2023-07-30T12:07:39.109665
2021-09-16T01:12:53
2021-09-16T01:12:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,440
py
# model settings model = dict( type='GlidingVertex', backbone=dict( type='Resnet101', frozen_stages=1, return_stages=["layer1","layer2","layer3","layer4"], pretrained= True), neck=dict( type='FPN', in_channels=[256, 512, 1024, 2048], out_channels=256, ...
[ "1905692338@qq.com" ]
1905692338@qq.com
0a011e026983e369d9da0bc381bf2791a70eb53e
9ed4d46aedd4d4acadb48d610e940594b5b7b3fd
/knapsack/knapsack.py
18a36c3bcdda5bb13a426c6ba48ce78a7b6c0897
[ "MIT" ]
permissive
TheAlgorithms/Python
7596a0e236ed12a61f9db19a7ea68309779cc85b
421ace81edb0d9af3a173f4ca7e66cc900078c1d
refs/heads/master
2023-09-01T17:32:20.190949
2023-08-29T13:18:10
2023-08-29T13:18:10
63,476,337
184,217
48,615
MIT
2023-09-14T02:05:29
2016-07-16T09:44:01
Python
UTF-8
Python
false
false
1,448
py
""" A naive recursive implementation of 0-1 Knapsack Problem https://en.wikipedia.org/wiki/Knapsack_problem """ from __future__ import annotations def knapsack(capacity: int, weights: list[int], values: list[int], counter: int) -> int: """ Returns the maximum value that can be put in a knapsack of a capac...
[ "noreply@github.com" ]
TheAlgorithms.noreply@github.com
fec78f5299103bcda04d11107a9d178189cfda00
19bff8220d642bd55a50994f2ef1091fe5bee518
/alog_check.py
391818e9d6daaf2aae5568646d3fddbb5b061ba1
[]
no_license
friggityfrank/math-bot
e9f77f24594349b7d4d7589022b8313c6d70bcc8
1a9ca59b9d665947e198508341103effae5ea580
refs/heads/master
2021-09-16T18:20:50.580086
2018-06-23T02:45:08
2018-06-23T02:45:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,840
py
#!/usr/bin/python3.6 """Runs the alog checks and updates the database/outfiles appropriately""" import os import argparse import datetime import csv import json from html.parser import HTMLParser import requests from sqlalchemy import Column, String, Boolean, Integer, DateTime from sqlalchemy.ext.declarative import dec...
[ "adherrling@gmail.com" ]
adherrling@gmail.com
1f8a175d4d42e925148713d3a0a7e7df5bf0f3f0
297497957c531d81ba286bc91253fbbb78b4d8be
/testing/web-platform/tests/tools/third_party/html5lib/html5lib/tests/sanitizer.py
6fea9f0db62f593e761ad0f02c45cdaadabc6362
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "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
1,801
py
from __future__ import absolute_import, division, unicode_literals import codecs import json import pytest from html5lib import parseFragment, serialize class SanitizerFile(pytest.File): def collect(self): with codecs.open(str(self.fspath), "r", encoding="utf-8") as fp: tests = json.load(fp...
[ "mcastelluccio@mozilla.com" ]
mcastelluccio@mozilla.com
54671a03fc5fe25812af05d79af6577b86501f7d
3d6f0aa2c811ace7da0d5c476e5911f0c5b16bd3
/celery/meetup/urls.py
3a536e2e904c95088f0a7b6544494e38a092f990
[]
no_license
alemangui/afpy-lyon-meetup
627a0411ed140387c82f45820087bf3c9328c0a1
f730a11b1b2d9ba9154efb55fa1153dc67a93110
refs/heads/master
2020-04-18T23:18:46.894733
2019-02-27T11:49:35
2019-02-27T11:49:49
167,818,041
3
0
null
null
null
null
UTF-8
Python
false
false
179
py
""" meetup URL Configuration """ from django.conf.urls import url from meetup import views urlpatterns = [ url(r'^longRunningTask/?$', views.task_view, name='task_view'), ]
[ "alemangui@gmail.com" ]
alemangui@gmail.com
cb3c0d4771166f5b299637aad1d73052005497f8
47988c4d1e2c07cd2465da204890f481d59dbd4b
/src/tests/ftest/util/daos_perf_base.py
b46575bdbb5e67def81926f910b42fb114f287ba
[ "BSD-2-Clause", "BSD-2-Clause-Patent" ]
permissive
dsikich/daos
974000a2e9a37c2edc994007f864ab69afe347e3
13385f8eb3209dfe9f63772a68a3bb8cadaf2e23
refs/heads/master
2022-07-07T05:46:07.074084
2022-06-29T13:01:52
2022-06-29T13:01:52
242,208,796
0
0
NOASSERTION
2021-12-07T21:17:27
2020-02-21T18:50:31
C
UTF-8
Python
false
false
1,945
py
#!/usr/bin/python """ (C) Copyright 2020-2022 Intel Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent """ from apricot import TestWithServers from daos_perf_utils import DaosPerfCommand from exception_utils import CommandFailure class DaosPerfBase(TestWithServers): """Base test cases for the daos_pe...
[ "noreply@github.com" ]
dsikich.noreply@github.com
f951743ac99f5959e064b8abeca8b1325cf37ce3
58afefdde86346760bea40690b1675c6639c8b84
/leetcode/group-anagrams/190489663.py
c2104ff41551b7ca7635a91643087b1a9e4ca1f5
[]
no_license
ausaki/data_structures_and_algorithms
aaa563f713cbab3c34a9465039d52b853f95548e
4f5f5124534bd4423356a5f5572b8a39b7828d80
refs/heads/master
2021-06-21T10:44:44.549601
2021-04-06T11:30:21
2021-04-06T11:30:21
201,942,771
1
0
null
null
null
null
UTF-8
Python
false
false
438
py
# title: group-anagrams # detail: https://leetcode.com/submissions/detail/190489663/ # datetime: Mon Nov 19 17:55:15 2018 # runtime: 148 ms # memory: N/A class Solution: def groupAnagrams(self, strs): """ :type strs: List[str] :rtype: List[List[str]] """ d = {} for s...
[ "ljm51689@gmail.com" ]
ljm51689@gmail.com
437279f1d8b81ef9725584a87737a1ea0781ef14
0366bccae8841bbf6ecaad70660aae89bb0f6394
/24_Generators/1_primary_numbers.py
9b67ce7e9e79106d05adb1a038cfc04f52843590
[]
no_license
KobiShashs/Python
8a5bdddcaef84b455795c5393cbacee5967493f7
e748973ad0b3e12c5fb87648783531783282832a
refs/heads/master
2021-04-05T20:18:57.715805
2020-04-02T21:51:44
2020-04-02T21:51:44
248,597,057
0
0
null
null
null
null
UTF-8
Python
false
false
481
py
#print all primary numbers in range 0-10^10 def is_prime(n): import math if n == 2: return True if n % 2 == 0 or n <= 1: return False sqr = int(math.sqrt(n)) + 1 for divisor in range(3, sqr, 2): if n % divisor == 0: return False return True # Don't try to ...
[ "kobi.shasha@gmail.com" ]
kobi.shasha@gmail.com
c3e3a2e2357b3625c8fb6e8aea90408bb1f3d02c
3b8387d770b33850dca55a1f0657167906697b5b
/island_perimeter.py
85aa15bba4c0f40edb732c459e2b11764af8996e
[]
no_license
BigZihao/Leetcode
fe2795d5485e4780c1ec79558eaf9017a830a516
95ec42c241a4815a8b35f7a71948f1bc4e58b5b3
refs/heads/master
2021-01-13T00:59:12.489768
2018-06-21T21:50:33
2018-06-21T21:50:33
48,407,360
2
0
null
null
null
null
UTF-8
Python
false
false
877
py
class Solution(object): def islandPerimeter(self, grid): grid_ext = ['0' + ''.join(str(x) for x in row) + '0' for row in grid] grid_trans = list(map(list, zip(*grid))) grid_ext+= ['0' + ''.join(str(x) for x in row) + '0' for row in grid_trans] return sum(row.count('01') + row.count('10') for row in grid_ext) ...
[ "zihao.zhang.ustb@gmail.com" ]
zihao.zhang.ustb@gmail.com
d8d3dac480334cba34244d76007d363428729e9f
0facb323be8a76bb4c168641309972fa77cbecf2
/Configurations/HWWSemiLepHighMass/nanoAODv5/v6_production/2017/NJET_biined_WJets/SKIM10/HMVAR10_Full_SBI/MassPoints/structure_M400_ele.py
ca26dfbba3de23b52180b1d1f013293cc464d08c
[]
no_license
bhoh/SNuAnalytics
ef0a1ba9fa0d682834672a831739dfcfa1e7486b
34d1fc062e212da152faa83be50561600819df0e
refs/heads/master
2023-07-06T03:23:45.343449
2023-06-26T12:18:28
2023-06-26T12:18:28
242,880,298
0
1
null
2020-02-25T01:17:50
2020-02-25T01:17:49
null
UTF-8
Python
false
false
1,127
py
structure["DY"]={ "isSignal" : 0, "isData" : 0 , } structure["MultiV"]={ "isSignal" : 0, "isData" : 0 , } structure["WpWmJJ_EWK_QCD_noHiggs"]={ "isSignal" : 0, "isData" : 0 , } structure["top"]={ ...
[ "soarnsoar@gmail.com" ]
soarnsoar@gmail.com
4c74d60dd695360b01bff71474a3b08f2c494dfa
bad62c2b0dfad33197db55b44efeec0bab405634
/sdk/authorization/azure-mgmt-authorization/azure/mgmt/authorization/v2020_10_01/operations/_eligible_child_resources_operations.py
babb8b81629393910b24118c77ba02621574fab5
[ "LicenseRef-scancode-generic-cla", "MIT", "LGPL-2.1-or-later" ]
permissive
test-repo-billy/azure-sdk-for-python
20c5a2486456e02456de17515704cb064ff19833
cece86a8548cb5f575e5419864d631673be0a244
refs/heads/master
2022-10-25T02:28:39.022559
2022-10-18T06:05:46
2022-10-18T06:05:46
182,325,031
0
0
MIT
2019-07-25T22:28:52
2019-04-19T20:59:15
Python
UTF-8
Python
false
false
7,287
py
# pylint: disable=too-many-lines # coding=utf-8 # -------------------------------------------------------------------------- # 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 Microsoft (R) AutoRe...
[ "noreply@github.com" ]
test-repo-billy.noreply@github.com
6d0beae3d44f8ac32bdc93dd50059389bb058dad
fa001a21e9f5ff6c49b576b98273922c1e5758d9
/jot/enc_ciphers/aes_cbc.py
3678f95770873923784f6226f471556bd02ba391
[]
no_license
mark-burnett/jot
14d80d633536b6daf46f3c0967d7f867737d3735
c122da23cbc85d276b12e9dba84dae19396e41d9
refs/heads/master
2016-09-05T10:58:46.476606
2014-09-04T13:20:20
2014-09-04T13:20:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,872
py
from .base import EncCipher from jot.algo import aes_cbc_hmac_sha import hashlib import os import re _IV_BYTES = 128 / 8 class AesCbcCipher(EncCipher): def __init__(self, *args, **kwargs): self._key_bytes = None self._hash_function = None super(AesCbcCipher, self).__init__(*args, **kwarg...
[ "mark.m.burnett@gmail.com" ]
mark.m.burnett@gmail.com
9ea8f1441f5821f63adc03e984681587201a98e6
3fcaf09a6ea7c56401b0ebeee95dbf75fda76a75
/session3/hw/chan_cuu.py
dc0f971feda22f7f20d46ede55c059c5f62060f3
[]
no_license
minhduc9699/D4E14
1819feafb9569b381cb5c2e56725f128ba296a6f
f59d6bb077a4f7bedba0d5ab09d6c2db8b5891f2
refs/heads/master
2022-11-24T22:58:47.306698
2020-07-28T14:40:52
2020-07-28T14:40:52
280,678,768
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
sheep_size = [4, 47, 34, 346, 32, 25, 90] def shear(): max_sheep_size = sheep_size[0] for size in sheep_size: if size > max_sheep_size: max_sheep_size = size max_sheep_size_index = sheep_size.index(max_sheep_size) # find index by value sheep_size[max_sheep_size_index] = 8 print(f'now my biggest she...
[ "minhduc.096.99@gmail.com" ]
minhduc.096.99@gmail.com
f008146695841f443dab44481c90550207b8b891
4300bdfcc3606c32134c66eb721b859feae7b7d2
/libcst/_parser/parso/tests/test_fstring.py
304bd10a746e81979acceed2422bc9c5f6ae8478
[ "MIT", "Python-2.0", "Apache-2.0" ]
permissive
lrjball/LibCST
5eff4c5e7f6836ba42e89cc49a2a36cd145b13e9
746226528bb454580f434b2be5194c851da98248
refs/heads/master
2022-11-05T03:12:02.748718
2020-05-27T13:16:17
2020-05-27T13:16:17
267,436,337
0
0
NOASSERTION
2020-05-27T22:09:08
2020-05-27T22:09:07
null
UTF-8
Python
false
false
1,592
py
# Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved. # Licensed to PSF under a Contributor Agreement. # # Modifications: # Copyright David Halter and Contributors # Modifications are dual-licensed: MIT and PSF. # 99% of the code is different from pgen2, now. # # A fork of Parso's tokenize test # https://...
[ "dragonminded@dragonminded.com" ]
dragonminded@dragonminded.com
86b88f6d3558dd29f104d7d1e3060bec0e369f38
fb9dcbf60dbed675c895d02ceaedf2b660a3c51b
/unittests/core/objects/attributes/test_number_attribute.py
6a94bc1ef51328df8eebc6f01da072d590836334
[ "BSD-3-Clause" ]
permissive
oculusstorystudio/kraken
28b190940d27166ab021f55fcac237a75b60a899
8d9d5954fe289c9a7bba2a585c91b1e0553ecd66
refs/heads/dist
2021-01-18T19:36:06.118087
2017-04-25T18:44:56
2017-04-25T18:44:56
42,962,063
1
1
null
2016-05-28T11:22:20
2015-09-22T21:30:10
Python
UTF-8
Python
false
false
2,379
py
import unittest from kraken.core.objects.attributes.attribute_group import AttributeGroup from kraken.core.objects.attributes.number_attribute import NumberAttribute class TestIntegerAttribute(unittest.TestCase): # ====== # Setup # ====== @classmethod def setUpClass(cls): cls._attribute...
[ "ethivierge@gmail.com" ]
ethivierge@gmail.com
7357549208e108e4a3c3a81fb7447c6c074e3d0c
7d27f743631dc91311dad5cfe16f1ceccb1a78bf
/tango/tango/settings.py
81fbcc021740d783e1df54713c3a678f90c103c4
[]
no_license
axuaxu/tango
685d8a8344a26e04bac00bccb09d6472955d76d5
acd75ed690f3b265fcac52565ddd5f23a7ef9dc3
refs/heads/master
2021-01-16T18:30:49.890472
2015-02-27T00:40:48
2015-02-27T00:40:48
31,243,700
0
0
null
null
null
null
UTF-8
Python
false
false
3,303
py
""" Django settings for tango project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) impo...
[ "axu0110@gmail.com" ]
axu0110@gmail.com
5722f9d0648df73b3cf991b441cbc0e6bd5c15e6
1c9025ea01ce21ca1ceb0d3120dd9c9c9dcc05e4
/aws_lambda/.debug/combine/.~c9_invoke_KgpMwJ.py
e31e99df66532a0bf35c0c929bf2126af6fb17e4
[]
no_license
LilySu/Covid-19nyc
1dd7d6d5d6a005e023e57f0056e27e536ea3c746
ecd4faec0c0f114f32138b978c57345c78c8fb7b
refs/heads/master
2022-12-10T06:33:50.441923
2020-08-15T05:20:11
2020-08-15T05:20:11
247,865,914
10
6
null
2022-12-09T10:31:56
2020-03-17T02:57:39
Python
UTF-8
Python
false
false
4,961
py
import time from datetime import datetime, date, time, timedelta import pandas as pd import numpy as np #Local Imports #from static.historical_counties_df import wrangle_historical_county_df # just in case there needs to be manual tweaks from sql_queries.sql_get import get_scraped_counties, get_historic_counties_recor...
[ "LilySu@users.noreply.github.com" ]
LilySu@users.noreply.github.com
38542fddfa8354ce88c6acb53613e46950d6cbc4
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/CJ_16_2/16_2_1_Omsg_GoogleRB_A.py
b4c0c5f86a73bc43ee752ee6d926213d14161cdc
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
4,047
py
''' Created on 30. Apr. 2016 @author: oli ''' import numpy as np # ---- config ---- # FileInput="C:\data\dataRB_A.in" FileOutput="C:\data\dataRB_A_new.out" # ---------------- # def start(s): resultNumber=np.array([0]*10) word=list(s) num=checkNumberOfChar("Z",word) print word ...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
1e70ba3c5d448d0b1838069602890d83d334780a
4e808ecca7a94a70a63c59b4c91a15cd61bada6e
/natuurpunt_membership/scripts/renewal_membership_ovl.py
6911bcc820c9ae57f9da39c6e6e115a03fc2e1ae
[]
no_license
smart-solution/natuurpunt-crm
79b98cfc8c69027dc82afa3779b65616141e6779
0bd247e78c01e79ec54b90c0d0bcaca38742f04d
refs/heads/master
2021-05-22T05:43:42.913854
2020-12-02T08:06:05
2020-12-02T08:06:05
39,186,027
0
0
null
2020-12-02T08:06:06
2015-07-16T08:36:27
Python
UTF-8
Python
false
false
958
py
# -*- coding: utf-8 -*- import xmlrpclib server='localhost' dbname7='natuurpunt' uid=1 pwd7='n2aevl8w' model = 'res.partner' sock7 = xmlrpclib.ServerProxy('http://%s:8069/xmlrpc/object'%(server)) ids = sock7.execute(dbname7, uid, pwd7, model, 'search', []) a_datas = sock7.execute(dbname7, uid, pwd7, model, 'read'...
[ "fabian.semal@smartsolution.be" ]
fabian.semal@smartsolution.be
1ff04d03bea3cbfdc933ec835ef17dbb2ac2e316
ad9556c21f14f60a0e373007ff79d7ec8ec16c78
/ml/rl/test/workflow/eval_cartpole.py
2641c675a06027babc2735a9787ecdb5209772c6
[ "BSD-3-Clause" ]
permissive
brettkoonce/ReAgent
84b6589de27f54d02ca64b29c414055eb42c1d91
dcaa16e0bdc5e1cecf816a6683e8909a9859855d
refs/heads/master
2020-08-12T19:02:46.400024
2019-10-12T08:03:18
2019-10-12T08:04:39
214,825,175
0
0
NOASSERTION
2019-10-13T13:28:33
2019-10-13T13:28:33
null
UTF-8
Python
false
false
1,274
py
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import argparse import logging import sys from ml.rl.test.gym.open_ai_gym_environment import OpenAIGymEnvironment from ml.rl.training.dqn_predictor import DQNPredictor logger = logging.getLogger(__name__) ENV = "CartPole-...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
ff5891b985f5cb4b0788a4d2c84b1980aba68cb7
5ecbca977d05fd579a1e5512928243bb77ed9bb2
/backend/keepmethere_18827/wsgi.py
12a69108782ec9ac004843163a084550e864d8ef
[]
no_license
crowdbotics-apps/keepmethere-18827
79edf33432087c304f57ec593412b7c59615f5f8
78a1c15695880ad81ef7cbdb1c1f9b7403c6dedb
refs/heads/master
2022-11-12T22:29:25.386350
2020-07-11T14:08:11
2020-07-11T14:08:11
278,873,661
0
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" WSGI config for keepmethere_18827 project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJ...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
863a384115609f35073c178865f1d51292b124a4
882de438bc5ce24ad4b0f2349472f2814d6e694e
/music/migrations/0010_auto_20210624_0121.py
1967d4db367c5cbbff1056e4cf445659108ad51f
[]
no_license
ayoub-smayen/djangolife0
1f499ff7c98d9d2f393514bb30185af36e8233b9
debff43e8cc71a7816c4dc332f11f7d29a9b79e6
refs/heads/master
2023-06-01T00:15:45.499024
2021-07-02T21:24:44
2021-07-02T21:24:44
369,580,213
0
0
null
null
null
null
UTF-8
Python
false
false
624
py
# Generated by Django 3.1.7 on 2021-06-23 23:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('music', '0009_auto_20210624_0118'), ] operations = [ migrations.AlterField( model_name='album', name='album_logo', ...
[ "ayoubjobs.2019@gmail.com" ]
ayoubjobs.2019@gmail.com
2b88b6894bd3a25622ad98e1cd78b3d1fd16b54c
c41006c4ef2e2a7e9304d750f748dac68221a040
/pygr_draw/nlmsa.py
9571b4619135c02cf518eb44f1d129005c84b68b
[]
no_license
mille449/pygr-draw
09f385d1f19e53593eb6723926a02fdca5321850
30b98d33255a714fa058066bb59d7394790a66d2
refs/heads/master
2020-12-25T09:09:14.505269
2010-08-23T23:26:50
2010-08-23T23:26:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,175
py
""" Library for taking lists/dicts of sequence annotations and creating an NLMSA. """ from pygr import cnestedlist, seqdb def create_annotation_map(annotations, sequence_db): """ Given annotations list/dict & a sequence db (BlastDB), construct an NLMSA/annotations map connecting the annotations with ...
[ "titus@idyll.org" ]
titus@idyll.org
18b7a07435b878ab8aae8500e7f2eeaf3ad3b515
14abcc0c827dc95817a26241482160c3e461c4dd
/test/testVectorial.py
349d4180123789e4354847752b47d00028d37cbc
[ "MIT" ]
permissive
GliderGeek/PyGeodesy
c73de93765387a955afacdfc0d430ca77b861eba
d59042010f872c60413ff55f63138e292211217b
refs/heads/master
2020-06-05T06:14:53.782916
2019-06-15T22:23:05
2019-06-15T22:23:05
192,342,179
2
0
null
2019-06-17T12:24:36
2019-06-17T12:24:36
null
UTF-8
Python
false
false
6,418
py
# -*- coding: utf-8 -*- # Test module attributes. __all__ = ('Tests',) __version__ = '19.06.14' from base import TestsBase from pygeodesy import F_D class Tests(TestsBase): def testVectorial(self, module): # MCCABE 13 self.subtitle(module, 'Vectorial') LatLon, Nvector, sumOf = module.LatL...
[ "mrJean1@Gmail.com" ]
mrJean1@Gmail.com
6d2a209d2ee1313694f997c1297065927a70b058
fbbe424559f64e9a94116a07eaaa555a01b0a7bb
/Sklearn_arm/source/numpy/typing/tests/data/fail/ndarray_misc.py
cf3fedc45f2ce86fcb428d246a567d8667a70aee
[ "BSD-3-Clause", "GPL-3.0-or-later", "BSD-3-Clause-Open-MPI", "GPL-3.0-only", "GCC-exception-3.1", "MIT" ]
permissive
ryfeus/lambda-packs
6544adb4dec19b8e71d75c24d8ed789b785b0369
cabf6e4f1970dc14302f87414f170de19944bac2
refs/heads/master
2022-12-07T16:18:52.475504
2022-11-29T13:35:35
2022-11-29T13:35:35
71,386,735
1,283
263
MIT
2022-11-26T05:02:14
2016-10-19T18:22:39
Python
UTF-8
Python
false
false
1,176
py
""" Tests for miscellaneous (non-magic) ``np.ndarray``/``np.generic`` methods. More extensive tests are performed for the methods' function-based counterpart in `../from_numeric.py`. """ from typing import Any import numpy as np f8: np.float64 AR_f8: np.ndarray[Any, np.dtype[np.float64]] AR_M: np.ndarray[Any, np.dt...
[ "ryfeus@gmail.com" ]
ryfeus@gmail.com
bb92593f7f94a52c74986376b20962292ed1f23e
18beb2ff005bc84171bd8fa404869c8d7bc1d889
/src/wired_injector/registry.py
bda4c7f9a31b39507a2eb45df6cde125584268db
[ "MIT" ]
permissive
pauleveritt/wired_injector
bf6ed39a42cff2e4c62904fe0f00d36262db4d48
0358ed70572b4add8349d9dbde89269046d3a60d
refs/heads/master
2023-02-23T07:21:14.671504
2020-12-19T20:01:59
2020-12-19T20:01:59
299,116,239
1
1
null
null
null
null
UTF-8
Python
false
false
3,480
py
from importlib import import_module from types import ModuleType from typing import Optional, Union, Callable, Any, Mapping from venusian import Scanner from wired import ServiceRegistry, ServiceContainer from wired_injector import Injector from wired_injector.utils import caller_package from zope.interface import Int...
[ "pauleveritt@me.com" ]
pauleveritt@me.com
b1e4a174d447792c26504f86fb9aefedcba59ab6
f2ca4ce819bff339e6a8603c444aa7a14945d335
/obiwan_analysis/preprocess/collect/collect_mpi.py
a0928ad0db968f10c827da094c2752700e737977
[]
no_license
DriftingPig/Drones
c69d02de8cc3e6b92bd7252fcd1b32b6deca2f69
870bb66ef5770d730240c61dfcd005a6d2652529
refs/heads/master
2020-04-19T13:08:58.986033
2019-02-13T19:05:12
2019-02-13T19:05:12
168,210,610
0
0
null
null
null
null
UTF-8
Python
false
false
3,988
py
from mpi4py import MPI from mpi_master_slave import Master, Slave from mpi_master_slave import WorkQueue import time import numpy as np from collect import * from astropy.table import vstack import os class MyApp(object): """ This is my application that has a lot of work to do so it gives work to do to its ...
[ "kong.291@osu.edu" ]
kong.291@osu.edu
554709f89740f160513d76b0c825bf88365250e7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02775/s612452873.py
89dad90139d543ab9d84520c085c3211acaeffe6
[]
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
720
py
from sys import stdin def get_result(data): N = data[0] # n円の場合、n+1円の場合 dp = 0, 1 for n in N: n = int(n) # N=123の1を考える # 100円を払うケース (1枚) # or 1000円払っていて + お釣り分の900円を払うケース (9枚) a = min(dp[0] + n, dp[1] + 10 - n) # 200円を払うケース (2枚) # or 1000円払っていて + お釣り分の800円を払うケース (8枚, ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
ee3ec11abff83a87ef2a01a577e6149e273d1442
af45a9341a58b33d25cc48474930db9f56deb988
/blog/migrations/0001_initial.py
bb90ece4afe1ec68df8b7f0e8557546ecd51884c
[]
no_license
akmiller01/pogona_blog
c1c0581c150209c9e3eea3a2b2c8b8608d154abd
e7f4514828963e48c2f97ef5b243f9e8deefe4f0
refs/heads/master
2020-12-30T13:27:41.739914
2017-08-25T14:49:40
2017-08-25T14:49:40
91,213,244
1
0
null
null
null
null
UTF-8
Python
false
false
900
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-05-18 00:15 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import wagtail.wagtailcore.fields class Migration(migrations.Migration): initial = True dependencies = [ ('wagta...
[ "alex.k.miller@gmail.com" ]
alex.k.miller@gmail.com
481f4ea10656a39197a1be6df4812b41e17c7de2
c9fe05f893deff75232aabca4e877c144972249a
/arcpyenv/arcgispro-py3-clone/Scripts/jupyter-nbextension-script.py
e788a0190e5b6cff206215ac5604e2a2eeb83650
[ "Python-2.0" ]
permissive
SherbazHashmi/HackathonServer
4d1dc7f0122a701a0f3a17787d32efe83bc67601
a874fe7e5c95196e4de68db2da0e2a05eb70e5d8
refs/heads/master
2022-12-26T06:46:33.893749
2019-11-03T10:49:47
2019-11-03T10:49:47
218,912,149
3
3
null
2022-12-11T11:52:37
2019-11-01T04:16:38
Python
UTF-8
Python
false
false
215
py
# -*- coding: utf-8 -*- import re import sys from notebook.nbextensions import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "sherbaz.hashmi@gmail.com" ]
sherbaz.hashmi@gmail.com
527185278571ed9f070063ebad0371e6f3d43b30
ca9a7589386e169e3b33dc37554f044d6c022d0c
/client.py
4bcd74e090840ea93c23533953b7ff35b80e671f
[ "BSD-3-Clause" ]
permissive
mark-zarandi/ouimeaux
ae37fab6b40d6987eb906b52a22c65e501b0273e
d24fce994e5577816e289ed26bb0790f2e24fed3
refs/heads/master
2022-11-27T13:42:17.200843
2020-06-11T20:33:52
2020-06-11T20:33:52
284,867,901
0
0
BSD-3-Clause
2020-08-04T03:30:27
2020-08-04T03:30:27
null
UTF-8
Python
false
false
7,638
py
#!/usr/bin/env python # :author: Fabio "BlackLight" Manganiello <info@fabiomanganiello.com> # # Requirements: # - `requests` package (`pip install requests`) # - [Advised] static IP allocation for your WeMo devices import argparse import enum import ipaddress import json import multiprocessing import re import...
[ "blacklight86@gmail.com" ]
blacklight86@gmail.com
27ce850f5a03e1650557561da6d41a1a17a9641b
bb150497a05203a718fb3630941231be9e3b6a32
/framework/e2e/jit/test_greater_equal_2.py
8a6e29f31cd4b07021866b0e1ff48934ea48842e
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
631
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ test jit cases """ import os import sys sys.path.append(os.path.abspath(os.path.dirname(os.getcwd()))) sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils")) from utils.yaml_loader import Ya...
[ "825276847@qq.com" ]
825276847@qq.com
0037b1a1cfcc16993fceb85231e2fcfad962fd83
c2ca69b97fc870d6731adb0ecf4c1031f4fc23a1
/backend/ecocases/migrations/0009_auto_20171018_0917.py
0e2a02279070fce1a2eb4c97e604344dd40bf7f9
[]
no_license
phamcong/aliennor-djreact
aba17bad35e4d1e517caad19b9ca84b5aac85467
b28f295f6eeed4ebf5d6e408045cbdc6eb6f537e
refs/heads/master
2021-05-08T08:36:35.444405
2017-10-27T17:06:54
2017-10-27T17:06:54
107,034,818
0
0
null
null
null
null
UTF-8
Python
false
false
482
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2017-10-18 09:17 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ecocases', '0008_auto_20171018_0905'), ] operations = [ migrations.AlterFie...
[ "ccuong.ph@gmail.com" ]
ccuong.ph@gmail.com
2a49648a839fee6af896aec8dc95a1487b7a8fb2
2b2d71f1e388dcb11e2853c195d71498d23e4f96
/myshop/settings.py
34ab82a1be56f0cac255c6c17048f2b55b2c3b40
[]
no_license
IbrahimAlAzhar/Myshop
4689746448712edc5ea29a20910fb7ad452466a2
d2efe5374af224b78772b06a1b5cf24b31e26ab7
refs/heads/master
2022-12-10T18:46:10.726478
2020-09-04T22:46:50
2020-09-04T22:46:50
292,960,612
0
0
null
null
null
null
UTF-8
Python
false
false
3,493
py
""" Django settings for myshop project. Generated by 'django-admin startproject' using Django 2.0.8. For more information on this file, see https://docs.djangoproject.com/en/2.0/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.0/ref/settings/ """ import os # ...
[ "ibrahimalazhar264@gmail.com" ]
ibrahimalazhar264@gmail.com
27dedbf4a11b3f63fa75babe039608af2b4212f9
244a718ff268d1145f6d19749c4f41f5e35745b6
/922. Sort Array By Parity II.py
6f4e99ce925aa64168df01539bafb2b16052b237
[]
no_license
bigeyesung/Leetcode
4b7a9f50cf508dbfb738047349682cddbfe41f01
a9cec0f8e9f367fb7f6ef8193a80503c15c0f939
refs/heads/master
2022-05-21T09:38:20.473525
2022-04-02T22:58:54
2022-04-02T22:58:54
200,475,627
0
0
null
null
null
null
UTF-8
Python
false
false
1,003
py
class Solution: #find out odd num in even index #swap with even num in odd index #the idea is one odd num is in even index which means there must be one even num in odd index #T:O(n/2*n/2) #S:O(1) def sortArrayByParityII(self,A): odd_index=1 for even_index in range(0,len(A),2): ...
[ "sungchenhsi@gmail.com" ]
sungchenhsi@gmail.com
5232362612e7555bd3a3086edbaaeffee13986bc
3a397597efd8ef38438b0e6cc815ebb0db977f3e
/paramiko/data_collection.py
5826d295b09ef6fa20f218e4db5faaeb7a7a301c
[]
no_license
asing177/network_automation
c81e7cd44cd97c94a3b62efebd96908f11424921
367dbe1c3a9e48ffa0322a13b0077ea2223c7a37
refs/heads/master
2022-07-01T01:39:26.847626
2020-05-12T14:57:45
2020-05-12T14:57:45
258,845,968
0
0
null
null
null
null
UTF-8
Python
false
false
636
py
#!/usr/bin/python3 import time import paramiko def send_cmd(conn , command): conn.send(command+"\n") time.sleep(10) def get_output(): return conn.recv(65535).decode("utf-8") def main(): device_list = { "r1" : "ls", "r2" : "ls -a" } for host , command in device_list.item...
[ "adityasingh27@hotmail.com" ]
adityasingh27@hotmail.com
271a8914afd4849e1e5819d48708b9623e2ce71f
701aa04cf1032e90a3fedde44fcacf662b786767
/remove_duplicates_from_sorted_array.py
82f75529fea3b39bc2de2e93cd6843fe324c8990
[]
no_license
baloooo/coding_practice
fb8ff60a58bf0edbfbe8aeb7048cd88e7cbadf83
57212d700dfba0db4925d9d4896f7f0b9635a5b5
refs/heads/master
2021-01-13T15:47:33.269791
2019-08-09T09:08:38
2019-08-09T09:08:38
76,843,893
0
0
null
null
null
null
UTF-8
Python
false
false
2,801
py
""" Remove duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appears only once and return the new length. Note that even though we want you to return the new length, make sure to change the original array as well in place Do not allocate extra space for another a...
[ "discoverx1@gmail.com" ]
discoverx1@gmail.com
7b5d338e4e69078281815049f681be066449d679
ee2812047c5293112eefc33b4b1e851c5958fc75
/net-sharing.py
6d0d1a52dafb74a5fd5890ca5dd0f80920686588
[]
no_license
jaraco/sandbox
e265f79dd67f618d59900934d946a2750ea74034
74738ab3439daa44d81e1e3e2786b81716595b4e
refs/heads/master
2023-05-30T02:44:04.614277
2016-03-05T14:22:06
2016-03-05T14:22:06
49,292,010
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
""" Tools for managing internet connection sharing on Windows, inspired by VirtualRouterPlus """ import ctypes import comtypes # see jaraco.video for an example of comtypes usage conn = '...' get_INetSharingConfigurationForINetConnection = ctypes.windll.hnetcfg.get_INetSharingConfigurationForINetConnection
[ "jaraco@jaraco.com" ]
jaraco@jaraco.com
af8f1c861e042f7b9671e094a4525e4967f11968
7142c3941481e661075154d714a29d5e283a3074
/PasswordGenerator.py
524a73526ab01049d95b8554864cb7977ed9cf48
[]
no_license
nirajan5/Demo
5642a9669fedcca47b0304ac423c0b3e6333b8e2
2451875bf5698cd38af69baa117c14099951bc9f
refs/heads/master
2023-07-27T17:04:03.689673
2021-09-15T11:14:25
2021-09-15T11:14:25
406,732,005
0
0
null
null
null
null
UTF-8
Python
false
false
191
py
import string from random import * characters = string.ascii_letters + string.punctuation + string.digits password = "".join(choice(characters) for x in range(randint(8, 16))) print(password)
[ "jhanirajan5@gmail.com" ]
jhanirajan5@gmail.com
4b5e4befb25c097726531a5df17100501635c249
586a13d20fe92b59d58e3da6fb231fcfe1ff2f00
/server/member/migrations/0002_auto_20160617_0123.py
8292d5d19d42a7a0d8451611ebc856a6dc7cae03
[]
no_license
ovangle/TNC-admin-server
38543818065193c6e1ce49df5d596972e4ed314c
1abbb3c5fe395129ad8674e02f1dd3bc489e8bc2
refs/heads/master
2020-04-06T07:03:50.456886
2016-09-05T16:28:07
2016-09-05T16:28:07
62,846,659
0
0
null
null
null
null
UTF-8
Python
false
false
1,286
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-06-17 01:23 from __future__ import unicode_literals import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('member', '0001_initial'), ] operati...
[ "ovangle@gmail.com" ]
ovangle@gmail.com
516fed6559bec823ffe0135beefb2e35ddc7c715
b9ffd9b9e88d497ee904e42dfd825080ee7713a9
/files_from_working_server/waterscan-api/models/TaxonLevel.py
4ae401091a5b6121140300bac8ccb67ac9abb777
[]
no_license
naturalis/waterscan-ecosoft
a3d8e91d6634108b585a71c051f15216c8c3fdf4
a2bcc3e656bbfb6ca08cd7e8ef7f119f0004d049
refs/heads/master
2021-06-15T05:26:15.457593
2019-06-21T09:39:22
2019-06-21T09:39:22
191,738,087
0
0
null
2021-05-06T19:36:36
2019-06-13T10:01:34
Python
UTF-8
Python
false
false
996
py
from Database import db class TaxonLevel(db.Model): __tablename__ = "taxon_level" id = db.Column(db.Integer, primary_key=True) name = db.Column(db.String(100)) def __init__(self, name): self.name = name def json(self): """Returns the models data converted to JSON""" ...
[ "martenhoogeveen@gmail.com" ]
martenhoogeveen@gmail.com
bf49f278cde9ffa97ae3b186d78e2f6b86c0a550
c52b0e0496d443451c5d4434fbd6d823bcdbb802
/core/simpleworker.py
7887f044d012e9d085eef9a1c514459d1520ba07
[]
no_license
spapas/async-job-db-fix
4ae8e13d3d30b3ab190e28783986b516e5d8f1e0
0077d534e27215371acfc7b815df38cd9d4647ee
refs/heads/master
2020-04-25T04:07:53.279933
2019-02-26T07:54:52
2019-02-26T07:54:52
172,500,368
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
from rq import Worker class BaseDeathPenalty(object): def __init__(self, timeout, *args, **kwargs): pass def __enter__(self): pass def __exit__(self, type, value, traceback): pass class SimpleWorker(Worker): death_penalty_class = BaseDeathPenalty def main_work_horse(se...
[ "spapas@gmail.com" ]
spapas@gmail.com
4f8d28451143c8f1dce6a072bc2c825a499ce58c
ec5e503d39dd6d0e6afce5858ec9d72878391ce0
/TicketingSystem/wsgi.py
6a30f2dfe1c7112c3cec52e663d41b76c05ebd5c
[]
no_license
ShipraShalini/ParkingTicketing-System
f9a92561f4d5637f7c12f58bf7c3edfec7d24aff
2678011d6261616c14a76d47c09792b67c03b296
refs/heads/master
2022-12-10T07:33:54.782651
2017-12-12T14:23:07
2017-12-12T14:23:07
48,872,014
1
0
null
2022-12-07T23:49:40
2016-01-01T07:13:54
HTML
UTF-8
Python
false
false
407
py
""" WSGI config for TicketingSystem project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJAN...
[ "code.shipra@gmail.com" ]
code.shipra@gmail.com
4b7d6c3fae0bba9b83a1b43c4623597a284f6d6d
584da6cbfacfcbf60b93d07a5c514f20b1401460
/api/tacticalrmm/logs/tasks.py
e7a83e1d2e219aa9bdf47e1b77a5e65a4807b059
[ "MIT" ]
permissive
colterlovette/tacticalrmm
6f34ad2ea64c69265b983378c03ca2946edf264e
3287b4a23b03bdffd1d7bd6155bceb31211c5dbe
refs/heads/master
2022-11-11T20:57:29.693448
2020-06-18T07:10:31
2020-06-18T07:10:31
null
0
0
null
null
null
null
UTF-8
Python
false
false
887
py
from loguru import logger from tacticalrmm.celery import app from django.conf import settings from .models import PendingAction logger.configure(**settings.LOG_CONFIG) @app.task def cancel_pending_action_task(data): if data["action_type"] == "schedreboot" and data["status"] == "pending": from agents.m...
[ "dcparsi@gmail.com" ]
dcparsi@gmail.com
8a048444e3d9934e7b4dd5a9722308e396f61434
f139a99d51cfa01a7892f0ac5bbb022c0cee0664
/Pythonlogy/ShareYourSystem/Standards/Itemizers/Pointer/09_ExampleDoc.py
af5c1b403daf91d44f71c97f7c3bfa14ca0a1a48
[ "MIT" ]
permissive
Ledoux/ShareYourSystem
90bb2e6be3088b458348afa37ace68c93c4b6a7a
3a2ffabf46f1f68b2c4fd80fa6edb07ae85fa3b2
refs/heads/master
2021-01-25T12:14:34.118295
2017-01-12T14:44:31
2017-01-12T14:44:31
29,198,670
0
1
null
null
null
null
UTF-8
Python
false
false
336
py
#ImportModules import ShareYourSystem as SYS #Point direct with a special Key str MyPointer=SYS.PointerClass( ).set( '-Children', { '|Aurelie':{}, '|Erwan':{ 'ParentingTriggerVariable':{ '<->/^/|Aurelie':[{'MyStr':"hello"},{'MyInt':0}] } } } )['?v'] #print print('MyPointer is') SYS._pri...
[ "erwan.ledoux@ens.fr" ]
erwan.ledoux@ens.fr
5730c9457e298af1eda8d2ba0d4892fdaff80621
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_204/84.py
5c9a4fd73f03552a1d4c07354b681a22c1562ab0
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
from math import * [t, ] = [int(x) for x in input().split()] def process_test(num): [n, p] = [int(x) for x in input().split()] rs = [int(x) for x in input().split()] packs = [] for _ in range(n): packs.append(sorted([int(x) for x in input().split()])) multi = 1 res = 0 while True:...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
cef3be4793bfc9df4ebaffb94538de0cc8d7ecbc
9740b4cfc46b924c2e430472ce0522fa35813465
/lender_books/migrations/0001_initial.py
d94792de2b094ccb2581254c6741a36f72f7c4d6
[ "MIT" ]
permissive
madelinepet/django_lender
d99f176b76d245ebcc0032f3304d677cd7a4fcfe
5c6c342e8306e848e93db31a02efe9ef1299a401
refs/heads/master
2020-03-28T21:48:08.933512
2018-10-03T23:03:01
2018-10-03T23:03:01
149,183,702
0
0
MIT
2018-10-03T23:02:57
2018-09-17T20:26:20
JavaScript
UTF-8
Python
false
false
1,857
py
# Generated by Django 2.1.2 on 2018-10-03 23:01 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
[ "madelinepet@hotmail.com" ]
madelinepet@hotmail.com
cbd0a89f85ea9d151f042a002c1cbc9ede2dcfa4
a04b01fb392f22f0f8c13a3b79311eb04075c3cd
/简单的python安全/SocketServer/iClent.py
321f87d74dc1cd9d92e8a54fb0d572de1b079404
[]
no_license
wenhaoliang/python-web-security
15310d69f034be04219b05c2a81361716d7fccb3
2fd1144888f358ddaa10b465332c97af2fdf9ccf
refs/heads/master
2021-01-01T16:27:39.465583
2017-07-26T17:33:58
2017-07-26T17:33:58
97,819,723
0
0
null
null
null
null
GB18030
Python
false
false
459
py
#coding: utf-8 from socket import * from os import * if __name__ == "__main__": # 第一个参数是"服务器之间网络通信", 第二个参数是"流式socket , for TCP" c = socket(AF_INET, SOCK_STREAM) # 将套接字连接到地址,第一个参数是连接的地址,地二个参数是端口号6666 c.connect(('127.0.0.1', 6666)) # 循环 while True: msg = raw_input('Message> ') c.send(msg) data = c.recv(1024...
[ "641541452@qq.com" ]
641541452@qq.com
b59e0fa99cbe4fe12173458d40e6d7da1d13932f
1c3f6f7f9ebe7e2d37656b7699d4a78a59062a46
/cbtest1_25934/urls.py
70fb8404e895e12b43cecf24b005cb938f5c4e0b
[]
no_license
crowdbotics-apps/cbtest1-25934
beec2982d3dca61e9a966c60930c14b889a82fa6
607e64b88d7794807efe87d17e6a7c653612514e
refs/heads/master
2023-04-07T21:53:03.895000
2021-04-25T17:24:16
2021-04-25T17:24:16
361,492,834
0
0
null
null
null
null
UTF-8
Python
false
false
2,022
py
"""cbtest1_25934 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
0d9959155d9422200a64a89bb64c61c8928582cd
70003e8ac3b7b4e6c65c8685f6ad2e620d025dde
/src/pretix/base/templatetags/rich_text.py
df7d39b393a58bcaf07b8e4428738a0da7bb2a80
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
jlwt90/pretix
fa047a8406b344202dcc1e0c3dbcaca4db4ccabb
3eec7915845378109b841d29db65eb3334137e02
refs/heads/master
2021-04-30T16:21:44.936033
2017-05-09T09:55:25
2017-05-09T09:55:25
80,030,328
0
0
null
2017-01-25T16:02:13
2017-01-25T16:02:13
null
UTF-8
Python
false
false
931
py
import bleach import markdown from django import template from django.utils.safestring import mark_safe register = template.Library() ALLOWED_TAGS = [ 'a', 'abbr', 'acronym', 'b', 'blockquote', 'br', 'code', 'em', 'i', 'li', 'ol', 'strong', 'ul', 'p', 'table...
[ "mail@raphaelmichel.de" ]
mail@raphaelmichel.de
b907a9486870ffeb2ec525b520e9a044f74776b7
8592ca892bd302670812df982e1759a38530ada7
/bigmler/reify/reify_defaults.py
de8315bc57cbe0098deacb20c6fe685c2df8a868
[ "Apache-2.0" ]
permissive
felmarlop/bigmler
42e3e2f9ae117328e5902fa668b9650c72c16ed0
1a3096902de52d231578c797a73f5e2683b14736
refs/heads/master
2022-09-08T17:51:27.761114
2020-06-02T17:23:51
2020-06-02T17:23:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,218
py
# -*- coding: utf-8 -*- # # Copyright 2015-2020 BigML # # 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 ...
[ "merce@bigml.com" ]
merce@bigml.com
6ed3f5fc96c484342102b4faba47dc9d7bbcb4e8
bb150497a05203a718fb3630941231be9e3b6a32
/framework/e2e/jit/test_clip_8.py
200ee629b3740d47692837c173d6e486f7fc7071
[]
no_license
PaddlePaddle/PaddleTest
4fb3dec677f0f13f7f1003fd30df748bf0b5940d
bd3790ce72a2a26611b5eda3901651b5a809348f
refs/heads/develop
2023-09-06T04:23:39.181903
2023-09-04T11:17:50
2023-09-04T11:17:50
383,138,186
42
312
null
2023-09-13T11:13:35
2021-07-05T12:44:59
Python
UTF-8
Python
false
false
604
py
#!/bin/env python # -*- coding: utf-8 -*- # encoding=utf-8 vi:ts=4:sw=4:expandtab:ft=python """ test jit cases """ import os import sys sys.path.append(os.path.abspath(os.path.dirname(os.getcwd()))) sys.path.append(os.path.join(os.path.abspath(os.path.dirname(os.getcwd())), "utils")) from utils.yaml_loader import Ya...
[ "825276847@qq.com" ]
825276847@qq.com
776daefbf5664013ac033e778a12edc5e1d25619
a29c01605058bf6d86d30fde8f008e38d64f7baf
/mycollections/collection_app/migrations/0003_auto_20161221_2132.py
60d443737f8f8a0a40486a6a91aa2732703a23af
[]
no_license
suelliton/mycollections
7fa74d80c9a14af19833cd9a35104f20a9926012
2b5c515aebd54522bf8d7d54f1b7116214892a25
refs/heads/master
2021-01-13T13:38:52.201089
2017-01-06T15:37:55
2017-01-06T15:37:55
76,410,685
0
0
null
null
null
null
UTF-8
Python
false
false
1,226
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2016-12-21 21:32 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('collection_app', '0002_auto_20161221_2110'), ] ope...
[ "tonmelodicmetal@gmail.com" ]
tonmelodicmetal@gmail.com
ac8eb919a03409c047d832b0e50578be8b256b6f
a9f914adfd7634b901cd600e16ad4f31552e684f
/migrations/versions/5e19eb64c9bd_.py
a9eab5bd47a634a5e665fe164afa22bc2e5f413b
[]
no_license
indraasura/smart-certificate-generator
ff477b692b8c7281520eb03e7b05dc67a68e4d78
f517b7b1a4ab9dca382205879e53d8842de374d5
refs/heads/master
2020-08-15T03:10:32.659974
2019-10-13T07:11:22
2019-10-13T07:11:22
215,270,928
0
0
null
null
null
null
UTF-8
Python
false
false
1,039
py
"""empty message Revision ID: 5e19eb64c9bd Revises: Create Date: 2019-10-13 04:10:06.068806 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5e19eb64c9bd' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
[ "shashank.sharma98@gmail.com" ]
shashank.sharma98@gmail.com
2a4a94647a897a75bf39f23c8c1de68ae8855d2c
1f0274024e58860d77a444b6dba987e60fdf815e
/scripts/scrape-cdc-state-case-counts.py
2b94699c43de816e0f82dbd507028c8d55b84f3f
[ "MIT" ]
permissive
majacaci00/zika-data
bb86e93739dbb4f1646786e84fa750a5b172018d
c054033af6345fac83679283baa02ad5b7ce7f0c
refs/heads/master
2020-12-25T10:23:55.045735
2016-05-27T16:56:15
2016-05-27T16:56:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
934
py
#!/usr/bin/env python import requests import lxml.html import pandas as pd import re import sys URL = "http://www.cdc.gov/zika/geo/united-states.html" INT_COLS = [ "travel_associated_cases", "locally_acquired_cases" ] COLS = [ "state_or_territory" ] + INT_COLS paren_pat = re.compile(r"\([^\)]+\)") def parse_cell(t...
[ "jsvine@gmail.com" ]
jsvine@gmail.com
c062775e20e021da459adb1d0847202f0a3a44ce
d9c4ae9466e63b8e2f5a5ee6cc928b5edfae72c3
/백준/17822 원판 돌리기/안현진.py
43a5733466925d1a9230a94cfa9238695f200fbf
[]
no_license
HyeonJinGitHub/LearningRepository
950dc3f2a78dbb8bbf713c04eb2e0c88a4e66894
35c309bfe8e2311a9f60c8b6ea4ddcfe70559e4b
refs/heads/master
2023-04-19T23:56:31.881422
2021-05-11T04:12:32
2021-05-11T04:12:32
290,224,023
37
4
null
2021-05-02T14:28:35
2020-08-25T13:34:02
Java
UTF-8
Python
false
false
2,293
py
import sys from collections import deque def shift(seq, n): n = n % len(seq) return seq[n:] + seq[:n] def print_arr(arr): for i in range(len(arr)): for j in range(len(arr[i])): print(arr[i][j], end=' ') print() print() if __name__ == '__main__': dx = [1, 0, -1, 0] d...
[ "skymilk95@naver.com" ]
skymilk95@naver.com
6faae44d1c3c53682eda6d0ca1809dc1edf7558a
c025b2690db29feaef18af96c703ae1e2d80568e
/update_talentys/__manifest__.py
47e17ab05f3e955b408a6d8f7dbef3c897d1dc7c
[]
no_license
lekaizen210/addons_talentys
de52ffc457e51f65603c274c5d9f9cf3f93c1585
a12caeabf64662fb134c2b10c4ede8006173edfd
refs/heads/master
2021-04-06T11:15:32.236062
2018-03-12T17:06:16
2018-03-12T17:06:16
124,919,687
0
2
null
null
null
null
UTF-8
Python
false
false
693
py
############################################################################## # # Copyright (c) 2012 Veone - jonathan.arra@gmail.com # Author: Jean Jonathan ARRA # # Fichier du module hr_synthese # ############################################################################## { "name" : "Mise à jour TALENTYS", ...
[ "jonathan.arra@veone.net" ]
jonathan.arra@veone.net
237feb44cd1f58f16b0780c54c00364c90629a10
0728513cfd064b8f6c130d42ad8ef79f49b6b9b2
/test/test_muveto_voltage_change1t_api.py
71e3235accc80d3a0dc9542a0c741c4fbc014762
[]
no_license
XENONnT/pmts-api-client
7e70574e45c3e1e639b066513c7f07047ac4dd30
2b1025fc6cec01726e2d555f609c148891c6d879
refs/heads/master
2022-12-10T02:04:12.942994
2020-09-27T15:39:09
2020-09-27T15:39:09
276,297,656
0
0
null
null
null
null
UTF-8
Python
false
false
1,952
py
# coding: utf-8 """ XENON PMT API API for the XENON PMT database # noqa: E501 The version of the OpenAPI document: 1.0 Contact: joe.mosbacher@gmail.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import xepmts from xepmts.api.muveto...
[ "joe.mosbacher@gmail.com" ]
joe.mosbacher@gmail.com
ac697b4a8865461f5efd9289977dfcc0b73cf013
a2d36e471988e0fae32e9a9d559204ebb065ab7f
/huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/add_user_request_body.py
3924c00a5ad98618462f73ee5af176e302e57bc8
[ "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
7,280
py
# coding: utf-8 import re import six from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class AddUserRequestBody: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key...
[ "hwcloudsdk@huawei.com" ]
hwcloudsdk@huawei.com
9ad0c07ae30f463d2573c747c8c31b2ef700fd1e
09ac5476e94122bf8ccdb0b404175dff0820c8a7
/462 最少移动次数使数组元素相等 II.py
428ba26d742e47988a4383423b4d58143d5f4945
[]
no_license
wxke/LeetCode-python
df27c456ad0c7042e3bfcf2a697e3958d3b85f1f
37a66e426e9c7e279928d2f6fcdecb9641f4121c
refs/heads/master
2020-04-29T14:03:22.554357
2020-03-10T12:38:24
2020-03-10T12:38:24
176,185,448
2
0
null
null
null
null
UTF-8
Python
false
false
330
py
最少移动次数使数组元素相等 II class Solution: def minMoves2(self, nums: List[int]) -> int: nums = sorted(nums) i = 0 j = len(nums) - 1 res = 0 while i < j : res += nums[j] - nums[i] i += 1 j -= 1 return res
[ "noreply@github.com" ]
wxke.noreply@github.com
e3127848dd1ea5deb5cd729fa24d9d26f09b6cc9
b2fef77e77f77b6cfd83da4ec2f89cbe73330844
/monai/data/synthetic.py
97ed57ba7c39192ab6bf01137e68eece0fc97941
[ "Apache-2.0" ]
permissive
Project-MONAI/MONAI
8ef2593cc5fd1cd16e13464f927fe563fe3f5bac
e48c3e2c741fa3fc705c4425d17ac4a5afac6c47
refs/heads/dev
2023-09-02T00:21:04.532596
2023-09-01T06:46:45
2023-09-01T06:46:45
214,485,001
4,805
996
Apache-2.0
2023-09-14T15:19:30
2019-10-11T16:41:38
Python
UTF-8
Python
false
false
7,375
py
# Copyright (c) MONAI Consortium # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
[ "noreply@github.com" ]
Project-MONAI.noreply@github.com
2bf9db4bb343b30708976ff6da1d0dc18b47aedf
8b441f592a6deb9b0a515cbd92bb4663ad79ffe4
/churn/models/churn_reasons/trigger_reasons_join.py
8ad8ffcab1bdb32c1742b4abf25f2c636f2b4d30
[]
no_license
carnaum2/use-cases
0d391a6a10bb70b60a4025152a278b0e4c595d01
24920e3828234da691ab643b6dd9a0aa0a5c0df5
refs/heads/master
2022-12-07T03:41:34.299274
2020-09-07T10:20:32
2020-09-07T10:20:32
293,249,567
0
0
null
null
null
null
UTF-8
Python
false
false
4,012
py
# -*- coding: utf-8 -*- from datetime import datetime as dt import numpy as np def set_paths_and_logger(): ''' :return: ''' import sys, os, re pathname = os.path.dirname(sys.argv[0]) # abs path to file (not included) print(pathname) if pathname.startswith("/var/SP/data/bdpmdses/deliverie...
[ "carmen.arnau1@vodafone.com" ]
carmen.arnau1@vodafone.com
312eb314652b48916fc45b3553d6e4477f6a34af
21fdad9efb5eec22218d555ca1492408b5c021b7
/studentunderground/handlers/setting.py
02a42f7ee329a6b33299e113f70c53e1d1c7434c
[]
no_license
jayd3e-archive/StudentUnderground
2fe7a1142bfba8864bdda16e08abeb2e219604fd
0a9c27c580250cf86cbd501b5a6715e61d3f882d
refs/heads/master
2020-05-29T15:01:20.216021
2011-10-05T21:08:44
2011-10-05T21:08:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
from pyramid_handlers import action class SettingHandler(object): def __init__(self, request): self.request = request self.here = request.environ['PATH_INFO'] @action(renderer='setting/index.mako') def index(self): title = "S2S | Settings" legend = "Settings" retur...
[ "jd.dallago@gmail.com" ]
jd.dallago@gmail.com
45b85291d92651fadb66717401c2e132662e8f89
be50b4dd0b5b8c3813b8c3158332b1154fe8fe62
/TwoPointers/Python/SortByColor.py
5d4560c72700756498231aea02db5998aebf0b90
[]
no_license
Zimmermann25/InterviewBit
a8d89e090068d9644e28085625963c8ce75d3dff
6d2138e740bd5ba8eab992d9bf090977e077bfc5
refs/heads/main
2023-03-24T18:12:48.244950
2021-03-24T14:36:48
2021-03-24T14:36:48
350,835,917
0
0
null
null
null
null
UTF-8
Python
false
false
805
py
class Solution: # @param A : list of integers # @return A after the sort def sortColors(self, A): # można też przerzucić poprzez zamianę, 0 na początek, a 2 na koniec, wtedy #1 będą po środku na poprawnych pozycjach zerosCounter = 0 onesCounter = 0 twosCounter...
[ "noreply@github.com" ]
Zimmermann25.noreply@github.com
a21d963cd24feb38d2959c3bac5a4fe7eee4bf6f
54a745510b16111f5e5f610a07be49ea1e79fccf
/DL/DL08c.py
8bba706c5f60c5d92dec00d3352ba8871b8fc689
[]
no_license
SonDog0/bigdata
84a5b7c58ad9680cdc0e49ac6088f482e09118a5
e6cd1e3bbb0bfec0c89a31b3fb4ef66d50c272be
refs/heads/master
2020-04-22T02:24:16.469718
2019-03-13T08:59:26
2019-03-13T08:59:26
170,047,330
0
0
null
null
null
null
UTF-8
Python
false
false
2,971
py
# 영화리뷰 긍정 / 부정 평가하기 # 사람의 언어를 완벽하게 단어 임베딩으로 매핑해서 # 어떤 자연어 처리작업에도 사용할 수 있을까 ? = > 다소 불가능 # 세상에는 많은 언어가 있고 , 언어는 특정 문화와 # 환경을 반영하기 때문에 서로 유사성 찾기에는 어려움 # 새로운 언어에 대한 임베딩은 새롭게 학습해야 함 # 역전파와 LSTM을 이용하면 어느정도 해결 가능함 from keras.datasets import imdb from keras import preprocessing max_features = 10000 # 특성으로 사용할 단...
[ "noreply@github.com" ]
SonDog0.noreply@github.com
499b85316bd7a48da95bb9ed2003054b764a9834
2eb779146daa0ba6b71344ecfeaeaec56200e890
/python/oneflow/test/modules/test_check_meta_consistency.py
f3ab5fe7ef658ec3a9d4e500de3be1d64db1bb55
[ "Apache-2.0" ]
permissive
hxfxjun/oneflow
ee226676cb86f3d36710c79cb66c2b049c46589b
2427c20f05543543026ac9a4020e479b9ec0aeb8
refs/heads/master
2023-08-17T19:30:59.791766
2021-10-09T06:58:33
2021-10-09T06:58:33
414,906,649
0
0
Apache-2.0
2021-10-09T06:15:30
2021-10-08T08:29:45
C++
UTF-8
Python
false
false
1,504
py
""" Copyright 2020 The OneFlow 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 applicable law or agr...
[ "noreply@github.com" ]
hxfxjun.noreply@github.com
e6461bf8a0c6c7b4e04116fc1ca6d44e0b96fb4a
2ff7e53d5e512cd762217ca54317982e07a2bb0c
/eve-8.51.857815/eve/client/script/ui/util/defaultRangeUtils.py
3745fe13ce60a44a7f5c5daeeff334396b013fa9
[]
no_license
nanxijw/Clara-Pretty-One-Dick
66d3d69426642b79e8fd4cc8e0bec23adeeca6d6
50de3488a2140343c364efc2615cf6e67f152be0
refs/heads/master
2021-01-19T09:25:07.555284
2015-02-17T21:49:33
2015-02-17T21:49:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,168
py
#Embedded file name: eve/client/script/ui/util\defaultRangeUtils.py _RANGE_BY_TYPE_SETTING_FORMAT = 'defaultType%sDist' _WARPTO_SETTING = 'WarpTo' _GENERIC_TYPE_ID = 0 DEFAULT_RANGES = {_WARPTO_SETTING: const.minWarpEndDistance, 'Orbit': 1000, 'KeepAtRange': 1000} def _GetCurrentShipTypeID(): """ This is a s...
[ "billchang.e@gmail.com" ]
billchang.e@gmail.com
6ae12212c9b2aeb599d1aa92f1c3003caa3644a2
5022b48f311ba4710e1851855552b9546a3142c5
/xiaochengxu/cc_lx_tk_xiaoqiutantiao.py
6a8cbdee16912a8f4d27226364bb5e59691e5e0b
[]
no_license
18786262315/python_lx
a7a15a294312b8382c3d1fd97a8d0ede38f1c5a5
a870d49cc4ca6efd1b54c2b89dfbf5e3d911a568
refs/heads/master
2020-03-21T12:37:30.748759
2020-03-18T09:31:31
2020-03-18T09:31:31
138,563,274
1
2
null
null
null
null
UTF-8
Python
false
false
2,138
py
from tkinter import * import random import time # 小球弹跳 class Ball: def __init__(self, canvas, paddle, color): self.canvas = canvas self.paddle = paddle self.id = canvas.create_oval(10, 10, 25, 25, fill=color) self.canvas.move(self.id, 245, 100) startx = [-3, -2, -1, 1, 2, 3] random.shuffle(sta...
[ "843092012@qq.com" ]
843092012@qq.com
b281634c1704bf5860c0faf1625a3be61b1c0079
c11123ce1e86f8306dcc3bf5d017dbfa8bb1d515
/Medium/Verify preorder Serialization of a Binary Tree.py
9c3a888f229b48cb0472de2d49640467a1ea7d1e
[]
no_license
uathena1991/Leetcode
7e606c68a51ed09e6e6a9fad327b24066e92d0c4
e807ae43a0a253deaa6c9ed1c592fa3a14a6cab8
refs/heads/master
2021-05-01T15:21:25.568729
2019-10-13T14:33:30
2019-10-13T14:33:30
74,910,747
1
0
null
null
null
null
UTF-8
Python
false
false
452
py
""" JAVA practice """ class Solution { public boolean isValidSerialization(String preorder) { int res = 1; String[] pl = preorder.split(","); for(int i = 0; i < pl.length; i++){ res--; if(res < 0){ return false; }; if(!pl[i].equ...
[ "xiaoli.he@rutgers.edu" ]
xiaoli.he@rutgers.edu
61c188e20582aaca158988bd340797dca173eb63
2b167e29ba07e9f577c20c54cb943861d0ccfa69
/numerical_analysis_backup/small-scale-multiobj/pareto2/arch2_pod100_old/copyfile.py
cb77b60a308c8df8b0294719dc924694b05da74d
[]
no_license
LiYan1988/kthOld_OFC
17aeeed21e195d1a9a3262ec2e67d6b1d3f9ff0f
b1237577ea68ad735a65981bf29584ebd889132b
refs/heads/master
2021-01-11T17:27:25.574431
2017-01-23T05:32:35
2017-01-23T05:32:35
79,773,237
0
0
null
null
null
null
UTF-8
Python
false
false
1,672
py
# -*- coding: utf-8 -*- """ Created on Sat May 28 23:27:05 2016 @author: li """ import os #dirname = os.path.dirname(os.path.realpath(__file__)) dirname='' for i in range(20): src = os.path.join(dirname, 'template_runsimu_connections.py') dst = 'pareto'+str(i)+'.py' dst = os.path.join(dirname, dst) ...
[ "li.yan.ly414@gmail.com" ]
li.yan.ly414@gmail.com
1bef77b580050f1c85bcdc9b2a8b70b3756db599
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/54/usersdata/102/23188/submittedfiles/av1_p2_civil.py
d9fc50520a76c053f41ad49149e9991b67ebebb6
[]
no_license
rafaelperazzo/programacao-web
95643423a35c44613b0f64bed05bd34780fe2436
170dd5440afb9ee68a973f3de13a99aa4c735d79
refs/heads/master
2021-01-12T14:06:25.773146
2017-12-22T16:05:45
2017-12-22T16:05:45
69,566,344
0
0
null
null
null
null
UTF-8
Python
false
false
206
py
# -*- coding: utf-8 -*- from __future__ import division n = input('Digite o número: ') i = 1 while i*(i+1)*(i+2) <= n: i = i +1 if i*(i+1)*(i+2)==n : print('SIM') else: print('NÃO'
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
1cc5941374c4e946ac2c5b6f064bd87a8a09e546
9717035a6f8820f4c020f640de379fb86f2f0c48
/blog/migrations/0002_profile.py
ec4b534a061f461e835dae4aa7cb689a18ccf15b
[]
no_license
talhajubair100/wordify_blog
dddd4e4a5b2ada45530fcc76ce78ce7c9fe35b0d
b8c028f8fdf4496e2840491a38a3fecb5d779152
refs/heads/master
2023-02-16T21:28:30.695654
2021-01-07T10:35:31
2021-01-07T10:35:31
260,023,710
0
0
null
null
null
null
UTF-8
Python
false
false
820
py
# Generated by Django 2.2.7 on 2020-04-13 17:27 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0001_initial'), ...
[ "talhajubair100.bd@gmail.com" ]
talhajubair100.bd@gmail.com
86b8c5104ac8bdb24d1e473aa734ca055df6e977
fc3096160a9df7c3c9a11f1eb9e51fd3790e5890
/D1/6323_function4.py
361dc89910c16efc766f12ef8e11766ddbb7278b
[]
no_license
Lee-Geon-Yeong/SW_Expert_Academy
dc14d11be5adf8a86c5107214b07acc49e089561
2a3cb6a2f10de92a93f44e93bc806e618a5b79c4
refs/heads/master
2023-06-30T11:12:00.333653
2021-08-09T14:23:42
2021-08-09T14:23:42
325,823,891
0
0
null
null
null
null
UTF-8
Python
false
false
194
py
Len = int(input()) List = [] for i in range(Len+1) : if i == 0 : continue elif i == 1 or i == 2 : List.append(1) else : List.append(List[i-3] + List[i-2]) print(List)
[ "yellowisher@naver.com" ]
yellowisher@naver.com
beba0bc8fbd6098840e2ca1c72ef16ad41fcda54
5a7c11010148b783bba4293973ae956cc4118492
/test/test_bamtools.py
12ddbf2e2650059a809f1369f5b38abc6897201c
[ "BSD-3-Clause" ]
permissive
gitter-badger/sequana
057fbfc7fed95646b601f58fb5728de2f9397537
8e36056b327bb3f4e5b1f566cb1a8efbaf9443ba
refs/heads/master
2021-01-02T08:54:04.967474
2017-08-02T07:47:13
2017-08-02T07:47:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,448
py
from sequana.bamtools import BAM, Alignment, SAMFlags from sequana.modules_report.bamqc import BAMQCModule from sequana import sequana_data from easydev import TempFile datatest = sequana_data("test.bam", "testing") def test_bam(tmpdir): s = BAM(datatest) assert len(s) == 1000 assert len(list(s.iter_u...
[ "cokelaer@gmail.com" ]
cokelaer@gmail.com
a61102317344e07d0eee48e8ec684a09e755af43
73fbdbe4943cd4a8de371ba1af4b5cdfea3138d8
/project10_movie_classifier/flask_app/application.py
c000c46d5541ce0d32e134557f58fd7cb5e2d7aa
[]
no_license
GParolini/spiced_academy_projects
74524d99842e7659a38371b6e697f9fd90a9e0fa
64b9458c9294a767636211d59ae00e329fb527f5
refs/heads/master
2023-05-31T05:30:07.692702
2021-06-21T08:54:46
2021-06-21T08:54:46
363,920,518
0
0
null
2021-05-03T13:33:28
2021-05-03T12:22:05
null
UTF-8
Python
false
false
524
py
from flask import Flask from flask import render_template from flask import request from nmf_recommender import nmf_recommendations app = Flask(__name__) @app.route('/') def index(): return render_template("index.html") @app.route("/recommender") def recommender(): html_form_data = dict...
[ "giudittaparolini@gmail.com" ]
giudittaparolini@gmail.com
e40a943e0ba801a2dcbac2a68263f9649a494637
c380e7c61c97cb03531e4f33fe31c99c7593c70b
/contrib/splunk-sdk-python/examples/info.py
c881135916b9ce05e81c1e99b6b556b33d7a3f52
[ "Apache-2.0" ]
permissive
skada/splunk-appframework
09bd777bc7c28b6b460eb8b7397288b559d9bf3d
8d07f81a9c37b8a0a2b9432bdd6fd78e98e458cc
refs/heads/master
2020-12-01T01:17:03.481885
2013-03-09T05:51:27
2013-03-09T05:51:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,328
py
#!/usr/bin/env python # # Copyright 2011-2012 Splunk, 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...
[ "itay@neeman.net" ]
itay@neeman.net
597ae6a1eda85386c2b9a40951a4ddcbb2ae06d8
cd0a284c47fb03121e05284b6d5f2940ea6457ba
/fb/medium/75-sort-colors.py
a1a6251c0aea1c986ef77b2621e30b5f69101d60
[]
no_license
franktank/py-practice
5803933c07c07a06670f83b059806385d0d029fa
1dec441f1975d402d093031569cfd301eb71d465
refs/heads/master
2021-03-22T04:33:20.818891
2017-11-14T03:40:54
2017-11-14T03:40:54
101,592,046
1
1
null
null
null
null
UTF-8
Python
false
false
2,301
py
""" Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively. Note: You are not suppose to use the library's ...
[ "fliangz96@gmail.com" ]
fliangz96@gmail.com
f592d3dd9c9294bedda1da9cd3a81d36e9f3b50b
84cfe9b0ca7209487231e0725f7ad0d233f09544
/smv/forms.py
da92fd0e4ef2d4588db84cfc9d510bd05f953000
[]
no_license
archit-dwevedi/M4Plan
3eefc12ea447d624bae6f758c3648d7caf825c1a
d162592748ea37bc070b6217365e8601a6ccdd9a
refs/heads/master
2021-10-26T23:22:04.456014
2019-04-14T20:02:17
2019-04-14T20:02:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,427
py
from .models import SMV from django import forms class Smv(forms.ModelForm): class Meta: model = SMV fields = ('operation','complexity_Factor','complexity','s_P_I','stitch_Length','machine','automation','work_Aid', 'pick_in_sec','pick_in_frequency','main_Process_in_sec','...
[ "dwevediar@gmail.com" ]
dwevediar@gmail.com
091f3779f79e35971de37dd4412887130f90f78e
c548983293e2501e4a740077e05650f2cbb2ea38
/bah_api/migrations/0001_initial.py
c787c2d9e32ad4c61b1c63878757fc65b725f876
[]
no_license
caseydm/bah_api
9361a281a304afd519ee9435a8d4ca076fe5ad44
f8ba507856ab2362e48ee9107b8ab76b768a97b1
refs/heads/master
2020-05-17T05:55:38.926178
2015-09-09T02:35:18
2015-09-09T02:35:18
40,333,843
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ] operations = [ migrations.CreateModel( name='BAH', fields=[ ('id', models.AutoField(primary_...
[ "caseym@gmail.com" ]
caseym@gmail.com
003bea0dde955a95cf62ffdc62b403d359ca5093
17268419060d62dabb6e9b9ca70742f0a5ba1494
/pp/test/test_label_fiber_array.py
97b7bf2441c1dd7b2a043feb4ee92ca9534ff1c6
[ "MIT" ]
permissive
TrendingTechnology/gdsfactory
a19124423b12cbbb4f35b61f33303e9a012f82e5
c968558dba1bae7a0421bdf49dc192068147b776
refs/heads/master
2023-02-22T03:05:16.412440
2021-01-24T03:38:00
2021-01-24T03:38:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,185
py
import pp def test_label_fiber_array(): c = pp.c.waveguide() assert len(c.labels) == 0 c = pp.routing.add_fiber_array(c, with_align_ports=False) assert len(c.labels) == 2 l0 = c.labels[0].text l1 = c.labels[1].text print(l0) print(l1) assert l0 == "opt_te_1530_(waveguide)_0_W0" ...
[ "noreply@github.com" ]
TrendingTechnology.noreply@github.com
5aa7b23252e11dfb7606aebfdbdc9f5e7d1b1595
6397fec7f9f4a0e5653111a082b24adddbdf97e1
/app/views.py
0c6d1f0bc504a22e84ba5685402c7bf0aa7ef090
[]
no_license
Sumitpande/carbonapp007
f1fc0ba23f52d7520a758292a4c07686edc2bd3d
a0dbee8f2995cd7db79994ecca4f63d10303535d
refs/heads/main
2023-02-09T01:46:11.949244
2020-12-30T10:52:26
2020-12-30T10:52:26
325,476,641
0
0
null
null
null
null
UTF-8
Python
false
false
2,012
py
from django.shortcuts import render,redirect from .forms import * from .models import * # Create your views here. from django.shortcuts import render, HttpResponseRedirect, Http404, get_object_or_404 def index(request): posts = Post.objects.all() if request.method == "POST": ...
[ "sumitakashpande1230@gmail.com" ]
sumitakashpande1230@gmail.com
cf1b0fac4c920ee6bb6bc085e0b3a58c597ca90e
52e05d43e6c37ee7a586118cf0f390b04e92ada3
/1258. Synonymous Sentences _ graph.py
eb27e42dfd01fb26c028c99ae9b3d91fba7d2a52
[]
no_license
CaizhiXu/LeetCode-Python-Solutions
8f7a856e11e0804f32c43ed98bc08525a950ac13
63120dbaabd7c3c19633ebe952bcee4cf826b0e0
refs/heads/master
2021-05-18T04:57:16.412834
2020-08-05T04:33:13
2020-08-05T04:33:13
251,121,107
0
0
null
null
null
null
UTF-8
Python
false
false
1,250
py
from collections import defaultdict, deque class Solution: def generateSentences(self, synonyms: List[List[str]], text: str) -> List[str]: graph = defaultdict(list) for a, b in synonyms: graph[a].append(b) graph[b].append(a) text = text.split(' ') res = [] ...
[ "xucaizhi@gmail.com" ]
xucaizhi@gmail.com
e07afa2f1a1fe1060b396f59f5cacc971cd3d8cb
b5d968f0436f29a92be7fbaf9b8ee19f698f3b20
/array/selection_sort.py
6443e87a606af41ba5e297e6948d69585bc0cef0
[]
no_license
asperaa/programming_problems
35a2504c6f114812c1cb938f7df1486e84a66636
d055d93dfb9f7945a4250663a58d0dd0231f2353
refs/heads/master
2020-06-02T02:20:09.793839
2019-12-05T10:14:42
2019-12-05T10:14:42
191,003,597
2
0
null
null
null
null
UTF-8
Python
false
false
517
py
"""selection sort in an array""" def swap(arr, i, j): temp = arr[i] arr[i] = arr[j] arr[j] = temp return arr def selection_sort(arr): if len(arr) == 0: return arr length = len(arr) for i in range(0, length): min_index = i for j in range(i+1, length): if ...
[ "adityaankur44@gmail.com" ]
adityaankur44@gmail.com