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
bc8cd076fe7eadc1630d631831ac486840b85d24
d1742451b25705fc128acc245524659628ab3e7d
/Hacker Rank/Circular Array Rotation.py
3e38d7459203e8054ccb009e6296f48f481c5dee
[]
no_license
Shovon588/Programming
ebab793a3c97aedddfcad5ea06e7e22f5c54a86e
e4922c9138998358eed09a1be7598f9b060c685f
refs/heads/master
2022-12-23T18:29:10.141117
2020-10-04T17:29:32
2020-10-04T17:29:32
256,915,133
1
0
null
null
null
null
UTF-8
Python
false
false
168
py
n, k , q = map(int,input().split()) a = list(map(int,input().split())) for i in range(q): x = int(input()) x -= k if x<0: x += n print(a[x])
[ "mainulislam588@gmail.com" ]
mainulislam588@gmail.com
5750084346ca909166024764f5e0d1679cfd1c1b
3ab7695bfc34355ba579bc43b9fea396933514dc
/dbaas_cloudstack/migrations/0011_auto__add_field_cloudstackoffering_equivalent_offering.py
6ef9f5402ab32c264c928d15855b13ee861ac220
[]
no_license
globocom/dbaas-cloudstack
d59ee6147235c5933eb5fa36a3047c61a9de9e5a
8445dde83c231a6af932ef179821c3e0b62485ff
refs/heads/master
2023-01-05T00:18:36.304237
2018-04-18T20:51:30
2018-04-18T20:51:30
18,342,699
8
1
null
2022-12-26T19:43:38
2014-04-01T20:02:04
Python
UTF-8
Python
false
false
15,469
py
# -*- coding: utf-8 -*- from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'CloudStackOffering.equivalent_offering' db.add_column(u'd...
[ "raposo.felippe@gmail.com" ]
raposo.felippe@gmail.com
42c7de1a74fa99bfa0d125f18581c8929fcf7c0e
993ef8924418866f932396a58e3ad0c2a940ddd3
/Production/python/Summer20UL17/WWW_4F_TuneCP5_13TeV-amcatnlo-pythia8_cff.py
3c08554976e874651d45a7663ac7c7984d2ff0ec
[]
no_license
TreeMaker/TreeMaker
48d81f6c95a17828dbb599d29c15137cd6ef009a
15dd7fe9e9e6f97d9e52614c900c27d200a6c45f
refs/heads/Run2_UL
2023-07-07T15:04:56.672709
2023-07-03T16:43:17
2023-07-03T16:43:17
29,192,343
16
92
null
2023-07-03T16:43:28
2015-01-13T13:59:30
Python
UTF-8
Python
false
false
3,228
py
import FWCore.ParameterSet.Config as cms maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) ) readFiles = cms.untracked.vstring() secFiles = cms.untracked.vstring() source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles) readFiles.extend( [ '/store/mc/RunIISummer20UL...
[ "noreply@github.com" ]
TreeMaker.noreply@github.com
a1452afad856f94cafa5affff3204f3068558ba1
5b6b2018ab45cc4710cc5146040bb917fbce985f
/78_longest-common-prefix/longest-common-prefix.py
6572b867bf8bc37e729ca4c4843bc0ed87c6fc1e
[]
no_license
ultimate010/codes_and_notes
6d7c7d42dcfd84354e6fcb5a2c65c6029353a328
30aaa34cb1c840f7cf4e0f1345240ac88b8cb45c
refs/heads/master
2021-01-11T06:56:11.401869
2016-10-30T13:46:39
2016-10-30T13:46:39
72,351,982
0
0
null
null
null
null
UTF-8
Python
false
false
806
py
# coding:utf-8 ''' @Copyright:LintCode @Author: ultimate010 @Problem: http://www.lintcode.com/problem/longest-common-prefix @Language: Python @Datetime: 16-05-19 13:22 ''' class Solution: # @param strs: A list of strings # @return: The longest common prefix def longestCommonPrefix(self, strs): ...
[ "ultimate010@gmail.com" ]
ultimate010@gmail.com
8abe3355ba9a76135bb756526f236b04eedf05f5
03e3138f99f275d15d41a5c5bfb212f85d64d02e
/source/res/scripts/client/bootcamp/aop/in_garage.py
e2c3fb8c3268b7dd9bdab07a0b2af49605c5d7ac
[]
no_license
TrenSeP/WorldOfTanks-Decompiled
e428728e7901146d0b599d02c930d70532232a97
1faa748acec1b7e435b657fd054ecba23dd72778
refs/heads/1.4.1
2020-04-27T08:07:49.813023
2019-03-05T17:37:06
2019-03-05T17:37:06
174,159,837
1
0
null
2019-03-06T14:33:33
2019-03-06T14:24:36
Python
UTF-8
Python
false
false
10,400
py
# Python bytecode 2.7 (decompiled from Python 2.7) # Embedded file name: scripts/client/bootcamp/aop/in_garage.py from helpers import aop, getClientLanguage from helpers.i18n import makeString from gui import makeHtmlString from gui.prb_control.items import SelectResult from gui.prb_control.settings import PREBATTLE_AC...
[ "StranikS_Scan@mail.ru" ]
StranikS_Scan@mail.ru
bde4380437cd1a4a44913cfd564bee96c579f3a7
2f125ed5e70c9a093aea3a84619be399b758670f
/EDGAR/5-extremes/ExtremeIndicesTP.py
df2fd125202399cee7ded8cb5d9a54069aac2b1d
[]
no_license
Lyna2022/python
58fd96361808e3c204cf963915350d0a2ef09c98
ac528d6038d5c9abf8160eca33f37606028adf94
refs/heads/master
2022-01-27T17:14:14.192347
2018-08-30T09:02:04
2018-08-30T09:02:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,891
py
# -*- coding: utf-8 -*- """ Created on Wed 07 March 2018 @author @Alcide.Zhao at Crew, KB, UoE This is to pre-process the daily Temperature and precipitation into extreme induces! Targets: Six WDGAR emission scenarios, 40yrs equilibrium of Input: Daily maximum and minimum T at reference height (2m above the sur...
[ "s1667168@burn.geos.ed.ac.uk" ]
s1667168@burn.geos.ed.ac.uk
4e8449b0fc298bf5870da177bd61fab9554929a6
5af277b5819d74e61374d1d78c303ac93c831cf5
/meta_learning_without_memorization/pose_code/np_vanilla.py
feb99c02ce9c3a8dad74ae1529a6548d028d9bae
[ "Apache-2.0" ]
permissive
Ayoob7/google-research
a2d215afb31513bd59bc989e09f54667fe45704e
727ec399ad17b4dd1f71ce69a26fc3b0371d9fa7
refs/heads/master
2022-11-11T03:10:53.216693
2020-06-26T17:13:45
2020-06-26T17:13:45
275,205,856
2
0
Apache-2.0
2020-06-26T16:58:19
2020-06-26T16:58:18
null
UTF-8
Python
false
false
13,364
py
# coding=utf-8 # Copyright 2020 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
ae780f18e7e4df3141c20806603acf2be62309b7
53fab060fa262e5d5026e0807d93c75fb81e67b9
/backup/user_295/ch33_2019_03_14_14_35_46_797459.py
c4faa55ffdecf9c7f3625cc9e3ae1b3e8d874e09
[]
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
91
py
i=1 x=0 while i < 100: soma = (1/2**i) x = soma + x i = i +1 print (x)
[ "you@example.com" ]
you@example.com
a0ccbf9ce3fca0cb7257b67b8b9efa6a5a764607
a275cec1fddb6e034b4e9df72f8039536c009990
/codes/leetcode/jump-game.py
4526b397d6eea0cef6435139c00d07e5f17ed4b2
[]
no_license
taoste/dirtysalt
a3cbd16710c81de65f00aa919f4e67a1fc66d226
bd68294fb7727d598ea1c8bf0a559247e07c1aea
refs/heads/master
2021-08-24T10:44:47.607924
2017-12-09T08:47:12
2017-12-09T08:47:12
113,807,519
1
0
null
null
null
null
UTF-8
Python
false
false
613
py
#!/usr/bin/env python # coding:utf-8 # Copyright (C) dirlt class Solution(object): def canJump(self, nums): """ :type nums: List[int] :rtype: bool """ st = [1 << 31] * len(nums) st[0] = 0 for i in xrange(0, len(nums)): v = nums[i] # ra...
[ "dirtysalt1987@gmail.com" ]
dirtysalt1987@gmail.com
25333131e13d1ee7e948085d5402a8cf5caee001
8d29fd856250e746f19e086975e83d2dea2cf6a3
/ResourceStatusSystem/Client/test/Test_ResourceStatusClient/Test_Unit_withDB.py
aec1f7ea0f55ffd3b55801e7ffdf86002f39bbea
[]
no_license
hanyl/DIRAC
048c749154192e3940e17b24396afe0e667444b2
82eb56888fc039f94ba1033ea4b6d3ad503bf96e
refs/heads/master
2021-01-16T00:23:00.344192
2013-01-19T00:01:05
2013-01-19T00:02:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
795
py
################################################################################ # $HeadURL $ ################################################################################ __RCSID__ = "$Id: $" ''' Set the fixture needed to run this test. ''' from DIRAC.ResourceStatusSystem.Client.test.Test_ResourceStatusClient i...
[ "mario.ubeda.garcia@cern.ch" ]
mario.ubeda.garcia@cern.ch
79a96cec4ef4a1303985d2054aa2e6cd20e1cbc9
2412ab2a7fdefe1d165a6ec63292fdbe965c5131
/goEnrichment_long.py
fd1e5554d067678c8ceee0b6a0a16e6f6bbf6988
[]
no_license
cfc424/NGS
e7651d9cbd1309821f5251c3ab3c9c7ba9e19352
a7fd0631adc7365d358e49f407e2ebe796163443
refs/heads/master
2023-03-21T14:36:05.877307
2019-11-13T01:09:13
2019-11-13T01:09:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
10,783
py
#!/usr/bin/env python # -*- coding: utf-8 -*- #from __future__ import division, with_statement ''' Copyright 2013, 陈同 (chentong_biology@163.com). =========================================================== ''' __author__ = 'chentong & ct586[9]' __author_email__ = 'chentong_biology@163.com' #==========================...
[ "chentong_biology@163.com" ]
chentong_biology@163.com
f8959fe24507665771a88e6aecc9952fc4c48693
3aa63e91138b03cfed43b614dc11b90b1b12a395
/tests/python/py4j_signals_test.py
8696aa82f864214cbdd76dba6af8b02f0fa90a55
[ "BSD-3-Clause" ]
permissive
karpierz/jtypes.py4j
d73ba4c062fa8415bd9e486156766fbecd0445c7
1bf48c022357c558da4d0df45fe4a0100df99a99
refs/heads/master
2021-05-09T08:07:48.050913
2018-11-13T15:55:42
2018-11-13T15:55:42
119,380,797
0
0
null
null
null
null
UTF-8
Python
false
false
6,556
py
# -*- coding: UTF-8 -*- from __future__ import unicode_literals, absolute_import from collections import defaultdict import unittest from jt.py4j.java_gateway import ( server_connection_started, server_connection_stopped, server_started, server_stopped, pre_server_shutdown, post_server_shutdown, JavaGatew...
[ "akarpierz@gmail.com" ]
akarpierz@gmail.com
6341b6eb5cb3884055973d5c3798b6f351e076eb
cd876d32aa66112892dc9550837ad843e3e03afd
/env_carzone/Lib/site-packages/django/contrib/postgres/apps.py
55b9aa66774ce3be3618cf456cc52abf25d0aa3e
[ "BSD-3-Clause" ]
permissive
viplavdube/Car-Yard-App
7665b7e6e54f3b0e4a4da563151f85d65c225cef
65381a50f828e80f31d25d4f35e497f51c2d224d
refs/heads/master
2023-04-19T03:49:18.991604
2021-04-27T17:51:10
2021-04-27T17:51:10
349,094,392
0
0
null
null
null
null
UTF-8
Python
false
false
3,112
py
from psycopg2.extras import ( DateRange, DateTimeRange, DateTimeTZRange, NumericRange, ) from django.apps import AppConfig from django.db import connections from django.db.backends.signals import connection_created from django.db.migrations.writer import MigrationWriter from django.db.models import Cha...
[ "viplav45@gmail.com" ]
viplav45@gmail.com
76a0bbfd022c6f4c1d86600c0f0904057ee9bda2
ce819ddd76427722d967e06190fc24ac98758009
/rename_text.py
ae28d659413d875c5c7e82598cf7ca20e2735792
[]
no_license
huilizhou/Deeplearning_Python_DEMO
cb4164d21899757a4061836571b389dad0e63094
0a2898122b47b3e0196966a2fc61468afa99f67b
refs/heads/master
2021-08-16T10:28:51.992892
2020-04-04T08:26:07
2020-04-04T08:26:07
148,308,575
0
0
null
null
null
null
UTF-8
Python
false
false
472
py
import os # 输入新的文件名 path = r"D:\11Graduate program\2019(5)huili_cloud_data_operate\test\1" filelist = os.listdir(path) count = 1 for file in filelist: print(file) for file in filelist: Olddir = os.path.join(path, file) if os.path.isdir(Olddir): continue filename = os.path.splitext(file)[0] ...
[ "2540278344@qq.com" ]
2540278344@qq.com
6c8d6ad8b9978edd217bc465cff7ad8587cc0f93
05ba1957e63510fd8f4f9a3430ec6875d9ecb1cd
/.history/fh/a_20200817000254.py
f0c59d004ec636878ebb5c8b26bca4ded5475ef2
[]
no_license
cod-lab/try
906b55dd76e77dbb052603f0a1c03ab433e2d4d1
3bc7e4ca482459a65b37dda12f24c0e3c71e88b6
refs/heads/master
2021-11-02T15:18:24.058888
2020-10-07T07:21:15
2020-10-07T07:21:15
245,672,870
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
import fileinput as fi # for line in fi.FileInput("a.md",inplace=1): # print(line) # for i,line in enumerate(fi.FileInput("a.md",inplace=1)): # # for line in fi.FileInput("a.md",inplace=1): # # print(line, end='') # if 37<i<43: # # print(i+1, line, end='') # # print("type of line:...
[ "arihant806@gmail.com" ]
arihant806@gmail.com
f29b21a1e7edffc022ca91ee7d3c3b2e2dbef0ee
7792b03540784a0d28073899dd4ad78689e9a9fb
/ProxyPool/schedules/check_available.py
45aeed3af5049802012d255d7e782367cef804fb
[]
no_license
ayiis/coding
3b1362f813a22a7246af3725162cfb53dea2f175
c73e4622e1811cc3fd8729a92df6537bd73dc802
refs/heads/master
2021-06-02T14:55:38.451288
2021-04-26T08:39:16
2021-04-26T08:39:16
134,660,001
0
0
null
2020-06-05T04:03:58
2018-05-24T04:14:14
CSS
UTF-8
Python
false
false
2,072
py
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- import tornado, tornado.gen, tornado.web from tornado.options import define, options import datetime import config import do_check from common import my_logger logging = my_logger.Logger("schedules.check_available.py", False, True, True) setting = { "running": Fa...
[ "ayiis@126.com" ]
ayiis@126.com
0d17ac87bad6a6dd7c52846005bd600179e5ad9e
f160d992d0ea5fa4e36af0025b5637c8962f2a29
/achihuo-mini/achihuo_mini/adapter.py
0901a2ddd7aa3613733d0e09659843fc1a5050eb
[]
no_license
Zachypentakill/Afanti_tiku
369dde43a32cecb136eb1207bf4223f6decd9843
aebee5b3d8dce76f95620cb52fda5a0f19965945
refs/heads/master
2021-07-11T15:59:03.099600
2017-10-11T10:27:43
2017-10-11T10:27:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,245
py
import os import json import signal from functools import wraps from .models import CacheInferface, QueueInferface from .arg import parse_arguments from .exceptions import NotCommand from .utils import ( md5_string, serialize_obj, unserialize_obj ) from .settings import ( LOCAL_CACHE_DIR, PIDS, ...
[ "yanfeng.li@lejent.com" ]
yanfeng.li@lejent.com
eba7e3aebbc608c07fc39591f5589a89cda60824
05709017c8f6f329c939b5984b02704c34b1119d
/hurst.py
12ebcf4f4d0d413229129edee3837fb15b0aaf2f
[]
no_license
fndjjx/emd
4fed1f09e1657bf7b31421365d88f6593ffe8b9c
d12b7cf3182d1e3bf43a706943f50298684cb72a
refs/heads/master
2021-01-19T05:15:28.908832
2020-06-16T06:55:17
2020-06-16T06:55:17
61,512,684
0
1
null
null
null
null
UTF-8
Python
false
false
768
py
from numpy.fft import fft from numpy.random import randn from numpy import zeros, floor, log10, log, mean, array, sqrt, vstack, cumsum, ones, log2, std from numpy.linalg import svd, lstsq import time ######################## Functions contributed by Xin Liu ################# def hurst(X): N = len(X) T = array([f...
[ "thunderocean@163.com" ]
thunderocean@163.com
d2ca3476978606ac4c7790dfc6731e1e08443cb3
6c1527b2dc3f944b8907d0de5bda6cdfbaeb1f7f
/otree-core-master/otree/bots/__init__.pyi
10d160cfdad49ca7bf4a07ebd7a9b551ac431221
[ "MIT" ]
permissive
dcthomas4679/otree
f0a9204b12cd395e55fd9b77ac90584c2cd3c049
363a05d2f70f9225628e4857473dedcb449018dc
refs/heads/master
2021-06-23T20:07:02.499724
2020-11-18T15:32:30
2020-11-18T15:32:30
37,225,765
1
1
NOASSERTION
2021-06-10T23:28:55
2015-06-10T22:22:33
Python
UTF-8
Python
false
false
400
pyi
from otree.models import Participant from typing import Any, List class Bot: html = '' # type: str case = None # type: Any cases = [] # type: List participant = None # type: Participant session = None # type: Participant def Submission(PageClass, post_data: dict={}, check_html=True): pa...
[ "dcthomas@gmail.com" ]
dcthomas@gmail.com
2f9cf4817c20491d9cc8f559864e3b8932b249eb
e5329001263e67a4d3c13d57bb91f2502280e206
/InvTL/lm_py/pypy/doc/tool/makecontributor.py
aad3b3c64f28255071d5bea67690c5e5ec5af08f
[]
no_license
yanhongliu/DARLAB
d9432db6e005a39e33501d7ffffe6e648b95b3fc
f739318c9620b44ef03d155f791c7ed4111d80fa
refs/heads/master
2021-05-27T19:58:58.458846
2014-02-04T12:09:26
2014-02-04T12:09:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
934
py
""" generates a contributor list """ import py try: path = py.std.sys.argv[1] except IndexError: print "usage: %s ROOTPATH" %(py.std.sys.argv[0]) raise SystemExit, 1 d = {} for logentry in py.path.svnwc(path).log(): a = logentry.author if a in d: d[a] += 1 else: d[a] =...
[ "mickg10@gmail.com" ]
mickg10@gmail.com
772fff4ae83dea2282200c1e01eea64b1f9523a4
be4df0f5ef586ad6d1b54bad9eb82ccd4544d5ac
/rook/build/interfaces/notify.py
2c07b830767195089069e9143c08e14c37117f08
[]
no_license
FlorianLudwig/rook
9ac1575fe84d90747cb1c96c17b50ebb895063ab
1698cd03d6f0f73045d9cc153f8c214474a3775d
refs/heads/master
2020-09-26T22:03:44.032131
2016-08-29T16:23:28
2016-08-29T16:23:28
66,860,073
0
0
null
null
null
null
UTF-8
Python
false
false
248
py
import rbusys class EMailInterface(rbusys.SinglePlug): def send(self, toaddrs, subject, body): """send e-mail toaddrs - List of receipients subject - E-Mail subject body - E-Mail text """ pass
[ "f.ludwig@greyrook.com" ]
f.ludwig@greyrook.com
30a6e9335281d9b6a98149191d44c4c9a3653317
c8dcfaa31695fe8167b8f5e4e8fd2ce50576026c
/order_book_recorder/opportunity.py
46e17ba130371112839c1fd888ddd8c064dedc4c
[]
no_license
smartiesss/arbitrage-opportunity-tracker
b362613c748b70eb40fc607b8f5bce5257c6b180
2703d0652298358447914e05b7647be85727ee7d
refs/heads/master
2023-08-17T17:45:58.658479
2021-10-14T19:30:39
2021-10-14T19:30:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,680
py
"""Find trading opportunitiess in different depths.""" from dataclasses import dataclass from typing import Dict, List @dataclass class Opportunity: """Describe a found arbitrage opportunity.""" market: str buy_exchange: str sell_exchange: str #: Market depth for this opportunity quantity: f...
[ "mikko@opensourcehacker.com" ]
mikko@opensourcehacker.com
815ab5db55c70d2d819c9d5761b7e9b6761aa48f
4c6fd81d318a008a70e7a8af3e6ec34f3ea1006b
/src/www/index.py
184dd6d66cc5bc01f7fcfc0ef9bb032ab4871add
[ "MIT" ]
permissive
janhybs/automate
46a777cef593eac330b07142b6c827b49a18a5f5
ba8d7d812ca4211d69ece9442ff212a6c59629fc
refs/heads/master
2020-03-28T20:46:55.180930
2019-04-11T11:16:29
2019-04-11T12:05:10
149,101,207
0
0
null
null
null
null
UTF-8
Python
false
false
1,538
py
#!/bin/python3 # author: Jan Hybs import sys from flask import redirect, url_for, send_file from env import Env from www import app, login_required from loguru import logger from utils.crypto import b64decode max_file_view_limit = 1024*1024 @app.route('/') @app.route('/index') @login_required def index(): retur...
[ "jan.hybs@tul.cz" ]
jan.hybs@tul.cz
78b7c58db3ccbe2c99a05e756341db5ea0bc7605
5335dbd5e836ecb816fd69e5e4b623eea4366e0d
/max/apps/portfolio/migrations/0003_auto__chg_field_portfolioitem_pub_date.py
7594b989144e25fca96cbbb6d4e8c21b7e3d94d0
[]
no_license
rootart/elayarch.com
c8c162f16b06ebdb578dd6d967cfb43add9575d1
d5287bc335a7c86a6e18be3943719ee5b3ffa014
refs/heads/master
2021-01-01T17:17:08.638798
2013-03-20T14:21:00
2013-03-20T14:21:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,434
py
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'PortfolioItem.pub_date' db.alter_column('portfolio_portfolioitem', 'pub_date', self.gf('...
[ "dijakroot@gmail.com" ]
dijakroot@gmail.com
0c4091b7b05386040beb712b8027b0dcc48e17ba
bb85c41f3e6aad131d4725ad400cbd028d60d098
/EraseMask/core/Model.py
4b0e8f547072053a28ca37c7ddb59d7cc7832613
[ "Apache-2.0" ]
permissive
CoinCheung/Mossaic-Handling
c946c0496896a694af5e647e1b2fa425774e52a8
231e8b168c36d5ca4be527b19d8aa4821cda2ed5
refs/heads/master
2021-01-24T22:52:56.467185
2018-06-18T08:20:46
2018-06-18T08:20:46
123,270,887
2
0
null
null
null
null
UTF-8
Python
false
false
5,642
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import mxnet as mx import mxnet.gluon as gluon ### models ## generator unet block class UnetSkipBlock(gluon.nn.HybridBlock): def __init__(self, inner_channels, outer_channels, innermost=False, outermost=False, use_dropout=False, unit=None): super(...
[ "867153576@qq.com" ]
867153576@qq.com
71496e68c06c89690d2027aa5e33a9b6bfb11e5a
55c53e4ffbb7bd5ff6b2f43cbf7d37c1b969b4a4
/talentbuddy/rains.py
eaca0a81f7bfa927ac67b56c56eb20875bfbc641
[]
no_license
Xuefeng-Zhu/Code_Practice
a005e558c8627e83abc961ad12e2c6ae84c44e02
7d25aa7cc46a66ef176796f5dd23addd4734ebf2
refs/heads/master
2021-01-13T02:27:28.263472
2014-11-16T06:53:44
2014-11-16T06:53:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,260
py
from collections import deque def search(i, j, m, heights): visited = [0] * len(heights) count = 0 min = max(heights) d = deque() d.append((i,j)) while len(d): x, y = d.popleft() if x == 0 or y == 0 or x == m -1 or y == len(heights)/m - 1: if heights[y * m + x] < hei...
[ "xzhu15@illinois.edu" ]
xzhu15@illinois.edu
e93b91455a7985a732cad91ba8a1867878da50a4
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/7207c78e101a0620b8fe2891c74f94de181e15fc-<legacy_dense_support>-bug.py
31700e1d3c92d9c07050e7386873e55e0e1f4113
[]
no_license
wsgan001/PyFPattern
e0fe06341cc5d51b3ad0fe29b84098d140ed54d1
cc347e32745f99c0cd95e79a18ddacc4574d7faa
refs/heads/main
2023-08-25T23:48:26.112133
2021-10-23T14:11:22
2021-10-23T14:11:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,209
py
def legacy_dense_support(func): 'Function wrapper to convert the `Dense` constructor from Keras 1 to 2.\n\n # Arguments\n func: `__init__` method of `Dense`.\n\n # Returns\n A constructor conversion wrapper.\n ' @six.wraps(func) def wrapper(*args, **kwargs): if (len(args) > 2...
[ "dg1732004@smail.nju.edu.cn" ]
dg1732004@smail.nju.edu.cn
758b577b9d36079667cb04f3eaf5089cdf36d64a
7159e9970ce2cc58482416392d1b489087b913c1
/tests/gis_tests/inspectapp/tests.py
c272b65aa841e9617eec552f04cb53c518c83025
[ "BSD-3-Clause" ]
permissive
ufgstores/django19
d4a53f12aa6d89405e2332d0c53a29447e6f8650
644716493ecac37271610de0e9cf97fc1fe46f10
refs/heads/master
2020-09-20T13:54:04.608149
2019-11-28T14:07:07
2019-11-28T14:29:02
224,502,004
0
0
BSD-3-Clause
2019-11-28T14:08:25
2019-11-27T19:23:16
Python
UTF-8
Python
false
false
8,022
py
from __future__ import unicode_literals import os import re from unittest import skipUnless from django.contrib.gis.gdal import HAS_GDAL from django.core.management import call_command from django.db import connection, connections from django.test import TestCase, skipUnlessDBFeature from django.test.utils import mod...
[ "slenart@alefajnie.pl" ]
slenart@alefajnie.pl
0eb85f794e58990a2c1f81d075205d9ae6c00710
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_118/1407.py
da7697f02acb65b0afe0600629f286dd3dd3792c
[]
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
526
py
import math def is_square(integer): root = math.sqrt(integer) if int(root + 0.5) ** 2 == integer: return int(root) else: return 0 def palindrome(L): return L == L[::-1] f=open('C-small-attempt1.in') T=int(f.readline()) for i in range(0,T): AB=f.readline().split() AB = map(int, AB...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
89731aa069ceb76f20e907b1477225369950f2fd
fd173195d07b5a5ce229a0c1a20ee61884d8c8a1
/python_practice/rock_paper_scissors.py
c75e9f18562123af4d9b33b82a0891f081a6ec1a
[]
no_license
anitrajpurohit28/PythonPractice
f7e71946144e04b7f9cb9682087e5d4f79839789
8b75b67c4c298a135a5f8ab0b3d15bf5738859f1
refs/heads/master
2023-04-12T07:04:12.150646
2021-04-24T19:52:24
2021-04-24T19:52:24
293,912,662
0
0
null
null
null
null
UTF-8
Python
false
false
2,400
py
from random import choice options = ["rock", "paper", "scissors", "garbage"] print("...rock...") print("...paper...") print("...scissors...") # === implementation 1 start === # for i in range(10): # p1 = choice(options) # p2 = choice(options) # print(f"(enter Player 1's choice): {p1}") # print(f"(enter...
[ "anitrajpurohit28@gmail.com" ]
anitrajpurohit28@gmail.com
606ca9a2e62ce619c824c4845207e4acfc4f756b
2b715df0fb5c6142951f088ca49d77ba457b937e
/functional/io.py
a64e0627dd41508f960f9118191f0cefd1fa3f34
[ "MIT" ]
permissive
poseidon1214/PyFunctional
da14f3130d303b044c224d573a73a1776b1245c8
cfb2633dda20c7a4e54761b08b739d489f5f9232
refs/heads/master
2021-01-17T23:21:47.859348
2016-06-08T04:03:28
2016-06-08T04:03:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,119
py
from __future__ import absolute_import import gzip import io import sys try: import lzma except ImportError: from backports import lzma from future import builtins as builtins import six if six.PY2 or '__pypy__' in sys.builtin_module_names: import bz2file as bz2 else: import bz2 if six.PY2: WRITE...
[ "ski.rodriguez@gmail.com" ]
ski.rodriguez@gmail.com
d259b15cda302ed71051ae28d4b415cc6dfb9b2e
f6e83bc298b24bfec278683341b2629388b22e6c
/tests/multi_asic_intfutil_test.py
56e11fa0d3ed2529918e26c7c24b151db1580df5
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
noaOrMlnx/sonic-utilities
8d8ee86a9c258b4a5f37af69359ce100c29ad99c
9881f3edaa136233456408190367a09e53386376
refs/heads/master
2022-08-17T23:15:57.577454
2022-05-18T21:49:32
2022-05-18T21:49:32
225,886,772
1
0
NOASSERTION
2022-07-19T08:49:40
2019-12-04T14:31:32
Python
UTF-8
Python
false
false
9,870
py
import os import subprocess from click.testing import CliRunner from .utils import get_result_and_return_code root_path = os.path.dirname(os.path.abspath(__file__)) modules_path = os.path.dirname(root_path) scripts_path = os.path.join(modules_path, "scripts") intf_status_all = """\ Interface Lanes ...
[ "noreply@github.com" ]
noaOrMlnx.noreply@github.com
fb733c6e8e48fc3ab9f1c4c7fd9d997c88c5f216
13cf27e496536b31f158fd117af1cb22841e53da
/year_2017/day_08/solution_part_2.py
7130d61f1ea755a4db35d2991785bf6db3857f04
[]
no_license
timofurrer/advent-of-code
8ab34e4ae58c103d351697b0bd80eef276708a04
45839eff32b1bfec2e2560438a6c1f002b9a9269
refs/heads/master
2021-10-08T05:31:29.844886
2018-12-08T13:59:02
2018-12-08T13:59:02
112,767,579
2
0
null
null
null
null
UTF-8
Python
false
false
2,930
py
""" Solution for the first puzzle of Day 4 """ import os import operator import functools from collections import namedtuple, defaultdict from typing import Tuple, List import pytest # My puzzle input MY_PUZZLE_INPUT = os.path.join(os.path.dirname(__file__), 'input.txt') Instruction = namedtuple('Instruction', [ ...
[ "tuxtimo@gmail.com" ]
tuxtimo@gmail.com
649c1843d6146a2e3ecd918e102c168566d7362a
d5da22b51c111f3d0ede725dddd97bb4cf94de4e
/calib/calib/misc.py
422549fd63db29a3ed3e856530ac20f20edde71d
[ "BSD-2-Clause" ]
permissive
jabozzo/delta_sigma_pipe_lascas_2020
bb5a18fa6fcf3753b9e7901d313546bc9368ef67
1351371aa03a12385c6fd9b29cf606ddd421ee18
refs/heads/master
2023-01-09T07:46:48.246573
2020-02-19T01:59:27
2020-02-19T01:59:27
241,505,258
0
1
BSD-2-Clause
2022-12-27T15:36:34
2020-02-19T01:24:33
Python
UTF-8
Python
false
false
4,124
py
#! /usr/bin/env python import copy import json import numpy as np NO_PARAM = object() """ Object to use instead of None when None is a valid value and cannot be used as default. """ def default(value, default): """ Same as default if value is None else value, but less efficient. :param value: Value t...
[ "unconfigured@null.spigotmc.org" ]
unconfigured@null.spigotmc.org
3517a4562f9c5c46f13d3beb5eb663b05736e6e4
134267f2244954d48c65daae0b58051aba757fed
/236B.py
8f53d741c174b829cf1bd613281e0eee391ae21a
[]
no_license
mobin-zaman/misc_python
47fe836d1eae154210912b8b353f241303523e6b
7a22329ae38b2d5ee9cd9ce29d995686759f5f87
refs/heads/master
2020-04-28T00:48:06.774434
2019-07-24T15:28:15
2019-07-24T15:28:15
174,829,343
0
0
null
null
null
null
UTF-8
Python
false
false
354
py
a, b, c = map(int, input().split()) max_number = 100 * 100 * 100 d=[0]*(max_number+1) for i in range(1, (max_number+1)): j = i while j <= max_number: d[j] += 1 j += i count = 0 for i in range(1, a + 1): for j in range(1, b + 1): for k in range(1, c + 1): count += d[i * ...
[ "mobin_zaman@hotmail.com" ]
mobin_zaman@hotmail.com
3e5288257df2d5b216c1c97b8925e7775fc045e1
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03569/s275849554.py
ddfe141423dd23ba336384b2047d8b947eccc03c
[]
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
455
py
from collections import deque def main(): s = deque(input()) ans = 0 while len(s)>1: if s[0]==s[-1]: s.popleft() s.pop() continue if s[0]!='x' and s[-1]!='x': ans = -1 break if s[0]=='x': ans+=1 ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
defefdf63b8f66c146cde4e733d11504ee4ef9d3
97eb35e37480f2b6cfb7c8055d467cec1e1c018e
/script.module.resolveurl/lib/resolveurl/plugins/cda.py
7fa2ddcdbc0f79a0437d7eb925fc94b4abf3931b
[]
no_license
CYBERxNUKE/xbmc-addon
46163c286197e21edfdeb3e590ca4213eade0994
eb4d38f11da7ea54d194359c7dcaeddfb3a40e52
refs/heads/master
2023-01-10T20:24:08.629399
2023-01-07T21:28:06
2023-01-07T21:28:06
55,860,463
7
2
null
2022-12-08T10:39:26
2016-04-09T18:27:34
Python
UTF-8
Python
false
false
2,694
py
""" Plugin for ResolveURL Copyright (C) 2020 gujal This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ...
[ "cyberxnuke@computertechs.org" ]
cyberxnuke@computertechs.org
a3e1822a2db66eb4ca0a66cf3086570f3deaaee9
2a61b02c26e77686e38cd9039e6f4b0530ddb7c9
/bitbots_misc/bitbots_live_tool_rqt/scripts/position_msg.py
fbe1130cfa173d142c489a4d9e0284074fa48118
[ "MIT" ]
permissive
fly-pigTH/bitbots_thmos_meta
931413e86929751024013b8e35f87b799243e22c
f45ccc362dc689b69027be5b0d000d2a08580de4
refs/heads/master
2023-08-27T02:58:08.397650
2021-10-22T17:17:11
2021-10-22T17:17:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,018
py
from geometry_msgs.msg import PoseWithCovarianceStamped, Point, Pose from std_msgs.msg import Header import yaml import rospy import tf from name import Name class PositionMsg: label_orientation = "o" label_pos = "p" label_yaw = "yw" title = "position_msg" def __init__(self): # the dic...
[ "759074800@qq.com" ]
759074800@qq.com
64e60255254685362b9f3d80ae744357238575f3
27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f
/tests/unit/modules/network/fortios/test_fortios_switch_controller_qos_queue_policy.py
9617a830c4fee361957d4f4415296074ca859956
[]
no_license
coll-test/notstdlib.moveitallout
eb33a560070bbded5032385d0aea2f3cf60e690b
0987f099b783c6cf977db9233e1c3d9efcbcb3c7
refs/heads/master
2020-12-19T22:28:33.369557
2020-01-23T18:51:26
2020-01-23T18:51:26
235,865,139
0
0
null
null
null
null
UTF-8
Python
false
false
9,107
py
# Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the...
[ "wk@sydorenko.org.ua" ]
wk@sydorenko.org.ua
ab5d632a053068a1cfd34f45be2df91b7581eed9
b05761d771bb5a85d39d370c649567c1ff3eb089
/venv/lib/python3.10/site-packages/werkzeug/datastructures.pyi
417bb81fa3a4d99411e8d08b986213a961b0f7f4
[]
no_license
JawshyJ/Coding_Practice
88c49cab955eab04609ec1003b6b8c20f103fc06
eb6b229d41aa49b1545af2120e6bee8e982adb41
refs/heads/master
2023-02-19T10:18:04.818542
2023-02-06T21:22:58
2023-02-06T21:22:58
247,788,631
4
0
null
null
null
null
UTF-8
Python
false
false
96
pyi
/home/runner/.cache/pip/pool/1d/1c/c3/2dcec0eaa9f096e84daa7e804fbe82b0b6489006d556ac67d006df57eb
[ "37465112+JawshyJ@users.noreply.github.com" ]
37465112+JawshyJ@users.noreply.github.com
168c09948d663d36f0a4ff326f00c0c1ade3eec7
e2081f2f873825a3cc8b529614eb784f5cf5e8c5
/queue2.py
db104feb8fff4a762dc98e1e2cba55592c776324
[]
no_license
yilinanyu/Leetcode-with-Python
17b454058c673381dbafa5a2a154c4e84b449399
a55d2a3e383f858477170effbf8f6454e5dfd218
refs/heads/master
2021-01-21T04:55:31.025194
2016-07-11T20:10:18
2016-07-11T20:10:18
36,630,923
5
1
null
null
null
null
UTF-8
Python
false
false
366
py
class Queue: def __init__(self): self.items = [] def isEmpty(self): return self.items == [] def enqueue(self, item): self.items.insert(0,item) def dequeue(self): return self.items.pop() def size(self): return len(self.items) q=Queue() q.enqueue(4) q.enqueu...
[ "ly783@nyu.edu" ]
ly783@nyu.edu
f2d296fe0c7e4c778ff85a9d45217c4f02b624de
52b2e3470cd4b91975b2e1caed8d1c93c20e5d05
/examples/python/amod/__init__.py
220052cc03a60dd492d9e8d8c3160016148fad78
[]
no_license
xprime480/projects
c2f9a82bbe91e00859568dc27ae17c3b5dd873e3
3c5eb2d53bd7fa198edbe27d842ee5b5ff56e226
refs/heads/master
2020-04-27T03:51:29.456979
2019-04-12T14:34:39
2019-04-12T14:34:39
174,037,060
0
0
null
null
null
null
UTF-8
Python
false
false
165
py
__version__ = '0.0.1' __all__ = [ 'basic' ] def basic(a, b) : from .first import fnfirst from .second import fnsecond return fnfirst(a) + fnsecond(b)
[ "mi.davis@sap.com" ]
mi.davis@sap.com
1979f8687f6086dc166fa09e25c94817cd1bcf04
53edf6b0f4262ee76bb4e3b943394cfeafe54865
/animated_tests/sine_wave.py
9b6aed48f367410b1b6083d3726e44fa4928ee59
[]
no_license
Yoshi2112/hybrid
f86265a2d35cb0a402ba6ab5f718717d8eeb740c
85f3051be9368bced41af7d73b4ede9c3e15ff16
refs/heads/master
2023-07-07T21:47:59.791167
2023-06-27T23:09:23
2023-06-27T23:09:23
82,878,960
0
1
null
2020-04-16T18:03:59
2017-02-23T03:14:49
Python
UTF-8
Python
false
false
1,487
py
# -*- coding: utf-8 -*- """ Created on Thu Feb 7 23:10:32 2019 @author: Yoshi """ """ Matplotlib Animation Example author: Jake Vanderplas email: vanderplas@astro.washington.edu website: http://jakevdp.github.com license: BSD Please feel free to use and modify this, but keep the above information. Thanks! """ impor...
[ "joshua.s.williams@uon.edu.au" ]
joshua.s.williams@uon.edu.au
405182fd5a3647c295d939623d3db62d878ff687
4e8ac215b672b333f19da87787c0d8768fee439e
/MIDI Remote Scripts/ableton/v2/control_surface/components/undo_redo.py
b00227651ef063ea6efa1784468fe529d1d3cedb
[ "MIT" ]
permissive
aarkwright/ableton_devices
593f47293c673aa56f6e0347ca6444b7fce2812a
fe5df3bbd64ccbc136bba722ba1e131a02969798
refs/heads/master
2020-07-02T08:11:21.137438
2019-08-09T13:48:06
2019-08-09T13:48:06
201,467,890
0
0
null
null
null
null
UTF-8
Python
false
false
903
py
# uncompyle6 version 3.3.5 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)] # Embedded file name: c:\Jenkins\live\output\win_64_static\Release\python-bundle\MIDI Remote Scripts\ableton\v2\control_surface\components\undo_redo.py # Compiled at: 201...
[ "apollo.arkwright@gmail.com" ]
apollo.arkwright@gmail.com
6982cf3dba3e276b311b1ddba1e3ea9aeb85fe86
760e1c14d056dd75958d367242c2a50e829ac4f0
/string/20_valid_parentheses.py
4eb8636be7ce1b2fe9b74d2985cb111214afc6a1
[]
no_license
lawtech0902/py_imooc_algorithm
8e85265b716f376ff1c53d0afd550470679224fb
74550d68cd3fd2cfcc92e1bf6579ac3b8f31aa75
refs/heads/master
2021-04-26T22:54:42.176596
2018-09-23T15:45:22
2018-09-23T15:45:22
123,894,744
0
0
null
null
null
null
UTF-8
Python
false
false
843
py
# _*_ coding: utf-8 _*_ """ 给定一个只包括 '(',')','{','}','[',']' 的字符串,判断字符串是否有效。 有效字符串需满足: 左括号必须用相同类型的右括号闭合。 左括号必须以正确的顺序闭合。 注意空字符串可被认为是有效字符串。 __author__ = 'lawtech' __date__ = '2018/4/28 下午3:11' """ class Solution: def isValid(self, s): """ :type s: str :rtype: bool """ stack ...
[ "584563542@qq.com" ]
584563542@qq.com
b1febc4afdf6c0fc4b1039d9b672163ea166d283
e9032e64138d7b9dd90a330dfe4588e2c83f6667
/google/cloud/compute_v1/services/firewall_policies/client.py
edaf4279a2c31ec84ef16a278e62235ec0853e5d
[ "Apache-2.0" ]
permissive
Ctfbuster/python-compute
6cff2418969009794c3fadadc4c45e20d7b40509
7a9e8324e08c46a93050908760b2b5aca054a863
refs/heads/main
2023-08-26T12:37:52.363526
2021-10-04T15:34:37
2021-10-04T15:34:37
412,884,620
0
0
Apache-2.0
2021-10-02T18:49:05
2021-10-02T18:49:03
null
UTF-8
Python
false
false
85,233
py
# -*- coding: utf-8 -*- # Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
Ctfbuster.noreply@github.com
37a6049092438cab074510dcbd2f7af1411bf0a0
63648b8d970c2739f9edc49c743fe55e8732f370
/TrainingGym/tools/traci/connection.py
19a3baa1fae899e4f75873e9fdee13f9bbe9ee3c
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
Sahmwell/G15_Capstone
a0038b047fe6ba2fc4538137cb038ee1e1236463
6d2944a6d472e82fe01b1a9bf28a8ae153abcb77
refs/heads/master
2023-04-14T03:06:46.876134
2021-04-09T03:43:48
2021-04-09T03:43:48
310,671,914
5
1
MIT
2021-04-09T03:43:49
2020-11-06T18:09:52
Python
UTF-8
Python
false
false
16,879
py
# -*- coding: utf-8 -*- # Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2008-2020 German Aerospace Center (DLR) and others. # This program and the accompanying materials are made available under the # terms of the Eclipse Public License 2.0 which is available at # https://www....
[ "samuelandersonsss@gmail.com" ]
samuelandersonsss@gmail.com
b0d859ae3fd1591ce741d3883f653465621fb851
af9268e1ead8cdb491868c14a2240d9e44fb3b56
/last-minute-env/lib/python2.7/site-packages/django/views/decorators/http.py
a1fb98382d892ffad2f8bbdc655d574b650903d8
[]
no_license
frosqh/Cousinade2017
d5154c24c93ca8089eeba26b53c594e92cb6bd82
c34d5707af02402bf2bb7405eddc91297da399ff
refs/heads/master
2021-01-20T07:57:34.586476
2017-10-22T18:42:45
2017-10-22T18:42:45
90,074,802
1
0
null
null
null
null
UTF-8
Python
false
false
4,752
py
""" Decorators for views based on HTTP headers. """ import logging from calendar import timegm from functools import wraps from django.http import HttpResponseNotAllowed from django.middleware.http import ConditionalGetMiddleware from django.utils.cache import get_conditional_response from django.utils.dec...
[ "frosqh@gmail.com" ]
frosqh@gmail.com
a38b83a00e47e07950f6c79fb27eddfac0d2ae1e
5a61eb222fda029d2b0a8169d6508bf8b3222d57
/group_reputation_v2/one_learn_group_network_new/long_time_pgg_original_price_positive_hete.py
7bd98b75c6b236f97a34eb07cde340c2d903c430
[]
no_license
Dcomplexity/research
f7b5ed539ce63b16026bddad0d08b3d23c3aa2a8
7e487f765b7eee796464b6a1dc90baa5d3e5d5db
refs/heads/master
2022-04-16T19:02:38.634091
2020-04-13T02:31:28
2020-04-13T02:31:28
199,882,553
0
0
null
null
null
null
UTF-8
Python
false
false
6,282
py
import numpy as np import pandas as pd import random import math import matplotlib.pyplot as plt import networkx as nx import datetime def pgg_game(a_l, gamma): # r in (0, 1] a_n = len(a_l) p = np.array([np.sum(a_l) * gamma * a_n / a_n for _ in range(a_n)]) - np.array(a_l) return p def price_model(n, m...
[ "cdengcnc@sjtu.edu.cn" ]
cdengcnc@sjtu.edu.cn
ac98451edb913e03fa32c02e54b21bf44a487584
ec21d4397a1939ac140c22eca12491c258ed6a92
/Zope-2.9/bin/test.py
e92ddcc1fb7fd8e3d16f64fc27a88170c6935365
[]
no_license
wpjunior/proled
dc9120eaa6067821c983b67836026602bbb3a211
1c81471295a831b0970085c44e66172a63c3a2b0
refs/heads/master
2016-08-08T11:59:09.748402
2012-04-17T07:37:43
2012-04-17T07:37:43
3,573,786
0
0
null
null
null
null
UTF-8
Python
false
false
3,448
py
#!/var/interlegis/SAPL-2.3/Python-2.4/bin/python2.4 ############################################################################## # # Copyright (c) 2004 Zope Corporation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of t...
[ "root@cpro5106.publiccloud.com.br" ]
root@cpro5106.publiccloud.com.br
168c90051272f897704b82df305c78fc89fbe16e
6b63f4fc5105f3190014e1dd5685a891a74f8c63
/0024_desafio.py
8cbac1cdce046f3a4fbfd895992c622db4b75a04
[]
no_license
matheuszei/Python_DesafiosCursoemvideo
a711c7c9c6db022cc8a16a3a1dc59afabb586105
5b216908dd0845ba25ee6d2e6f8b3e9419c074d2
refs/heads/main
2023-05-10T18:13:09.785651
2021-06-04T13:50:48
2021-06-04T13:50:48
370,851,791
0
0
null
null
null
null
UTF-8
Python
false
false
294
py
#Crie um programa que leia o nome de uma cidade e diga se ela começa ou não com o nome "SANTO" cidade = input('Digite o nome de uma cidade: ').strip().upper() print('SANTO' in cidade[0:5]) #cidade = input('Digite o nome de uma cidade: ').strip() #print(cidade[:5].upper() == 'SANTO)
[ "noreply@github.com" ]
matheuszei.noreply@github.com
934fd554c0b7872b788dc39fde28b49cbfc8f299
d94be223f733daa58ce03f6f2dd701c55355f044
/docs/data/maple_leaf_rag(braxton)-2.py
1efca02199f8b0d4015494a0ce1374aea21fb224
[]
no_license
emirdemirel/JAAH
7bb4f9c2a434e1df34d99596dd294b7c96836bfe
8c065c3b043ad7ac95241c242bb468fe4c731ec7
refs/heads/master
2023-02-10T14:10:52.755206
2021-01-07T23:11:02
2021-01-07T23:11:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
106
py
import siteUtils siteUtils.showTopNGramsForFileList(['../../../annotations/maple_leaf_rag(braxton).json'])
[ "seva@ringrows.ru" ]
seva@ringrows.ru
13c0f8ebf1ba81fb4c8befc8cd426cbb0791be34
ce828d2c95b445ecf928f74626bac6397b4af202
/otter/assign/r_adapter/tests.py
54e09c829845e88e9a79d9cae513e36f9735c0c3
[ "BSD-3-Clause" ]
permissive
JinwooPark00/otter-grader
fe8df82ae5b325d6e620e42997a7e334ff19154e
1e037fa56e7833650980347fc8db64bd0a152e09
refs/heads/master
2023-06-13T02:38:01.583389
2021-06-20T20:50:34
2021-06-20T20:50:34
375,860,574
0
0
BSD-3-Clause
2021-06-22T03:44:07
2021-06-11T00:14:53
null
UTF-8
Python
false
false
6,008
py
""" ottr test adapters for Otter Assign """ import re import pprint import yaml import nbformat from collections import namedtuple from ..constants import TEST_REGEX, OTTR_TEST_NAME_REGEX, OTTR_TEST_FILE_TEMPLATE from ..tests import write_test from ..utils import get_source, lock Test = namedtuple('Test', ['name', ...
[ "cpyles@berkeley.edu" ]
cpyles@berkeley.edu
63aed501f969bc9d6ca097817ab881471dd192d8
90e58be01283bb4b70590bc60d587d08624fc6fe
/Benchmarking/StochasticBenchmarkingWPrism.py
3a9f3c5ce7c512424351b3bdba99312ee748c786
[ "MIT" ]
permissive
TrendingTechnology/AALpy
7b65b45b57ec1314bb0934fdcc6f41609f4fb0e2
b3c4ec4235cd2d814b88bafd82a5a46625232a22
refs/heads/master
2023-03-30T01:56:17.236835
2021-04-05T13:40:11
2021-04-05T13:40:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,453
py
import csv import io import os import random import re import subprocess from aalpy.SULs import MdpSUL from aalpy.utils import load_automaton_from_file from aalpy.utils.HelperFunctions import smm_to_mdp_conversion from aalpy.utils.FileHandler import mdp_2_prism_format from aalpy.oracles.RandomWalkEqOracle import Unsee...
[ "edi.muskardin@silicon-austria.com" ]
edi.muskardin@silicon-austria.com
e4f3d2a23983b4dbfb4c02e219aab16dd2417d1a
7a4cfe0e9f6c87780c53ecc2431473ca71b9e841
/crypto-caesar/hack.py
c6bad2c7a10cf1f10414a0402aeb797e3dd59883
[]
no_license
chakra7/wechall
6c7985c17ee34411c24df7bac5147ec07f04ce98
b5c35cc4fc5ee9014a83c190e53cbf7b4e07efbe
refs/heads/master
2021-01-12T17:30:42.404953
2016-10-21T18:25:39
2016-10-21T18:25:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
389
py
allchars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' def decrypto(encs, shift): decs = '' for char in encs: if char == ' ': decs += char else : # 65 + (k-65) % 26 decs += str(unichr(65 + (ord(char) + shift - 65)%26)) return decs for i in range(1, 26): d = decrypto('ESP BFTNV MCZHY QZI UFXAD ZGPC ESP WLKJ OZR ZQ ...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
2593e9dfcde21d1725787dd50330726aa3e67e41
3149e4e20a87879b0f01065f456a9f98ec47450f
/day03/filter_demo/filter_demo/urls.py
85757b5e3ab60f1984c17f40a149eca7c1de91d6
[]
no_license
gaohj/jxlg0102
e5375b7744999e605b2be33a5fbc6d4cd28bf3be
41700da5213f96600cc8afa7b32a6980583758a1
refs/heads/master
2020-06-02T19:56:25.456350
2019-06-28T03:48:15
2019-06-28T03:48:15
191,289,548
0
4
null
null
null
null
UTF-8
Python
false
false
769
py
"""filter_demo URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.0/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-b...
[ "gaohj@126.com" ]
gaohj@126.com
6f1db04426b6bc0855a1be58dab102ebc1ffd1f3
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/5429.py
e440769130e46909840dd9ff35500848ec3a3e50
[]
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
577
py
def isTydy(a) : b=1 while a>100 and b==1 : if a%10==0 : return(0) elif a%10>=(a//10)%10 : a=a//10 else : b=0 if b==1 : if a%10==0 : return(0) elif a%10>=(a//10)%10 : return(1) else : return(0) else : return(0) fichier=open("B-small-attempt9.in","r") output=open("output","w") ligne ...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
8d92d0a2a04fcd4de1fe0744867226ff24e482df
bfbf65193a6aaa5527f8a58b01bdabfdb87cc924
/fix-lint.py
9e8fe0a109126ce5b82ea50899380d4ce75e7924
[]
no_license
jaredly/file-scripts
924f8a5a66178273244152e27befebfcee90fd6a
038ed7a6db1a2eef7a868b63f5d19ec9ea568314
refs/heads/master
2020-05-16T23:08:24.869806
2015-08-14T23:02:35
2015-08-14T23:02:35
40,739,318
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
#!/usr/bin/env python import sys import re rx = re.compile('(?P<line>\d+):(?P<col>\d+)\s+(?P<level>\w+).+?(?P<type>[-\w]+)$') def parse_rule(line): return rx.match(line.strip()).groupdict() text = open(sys.argv[1]).read() files = {} block = {} for line in text.split('\n'): if not line.strip(): continue if...
[ "jared@jaredforsyth.com" ]
jared@jaredforsyth.com
552260db3609384a5cbb9c1629cffe94180ee301
df019e648d75d37a05f3219d27fffad4147fbf3c
/stockprice/stock/views.py
6d413d5bdbf60847297ccc4c48d97675c1cf969e
[]
no_license
AmrElsayedEG/stock-market-price-USA
8b6fcccc02fb14dff4ce31af403b2f87a409855d
cdceb7e6e774972bf790f61ba75b1d4ee2cb205e
refs/heads/master
2023-01-31T13:19:01.652792
2020-12-15T09:59:48
2020-12-15T09:59:48
304,368,158
0
0
null
null
null
null
UTF-8
Python
false
false
4,298
py
from django.shortcuts import render, redirect, HttpResponse from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated import json from . import stockapi from .models import DailyPrice from django.db import IntegrityError api_key = 'SMRUPFC8PX39RTRT' #API Key fr...
[ "newsifb@gmail.com" ]
newsifb@gmail.com
a7d0319984b9bfb560fa0fa0df10e5c9b81149c6
553dce745ab6e97c2588ddec3b1aec1cd0266907
/Crawler/tools/adjust_tags.py
3dc3bbf6d90699de629ee88335e43fc4bfb2d73f
[]
no_license
foamliu/hackathon-ocw
ee8879882534a32a3ee7eed2767ae281b77ff029
2ec8e045f68ca3cac1333a7b0a045416beba01d9
refs/heads/master
2021-01-21T04:40:37.845867
2016-07-18T05:24:33
2016-07-18T05:24:33
52,413,648
8
11
null
2016-07-18T05:24:36
2016-02-24T04:14:08
Python
UTF-8
Python
false
false
1,453
py
#批量调整标签 import json import codecs input_file = open(r'C:\Users\foamliu.FAREAST\Documents\GitHub\hackathon-ocw\FeedAPI\app\assets\jsons\items.json', "r", encoding="utf-8") #output_file = codecs.open(r'C:\Users\foamliu.FAREAST\Documents\GitHub\hackathon-ocw\FeedAPI\app\assets\jsons\output.json', "w", encoding="utf-8") ...
[ "foamliu@yeah.net" ]
foamliu@yeah.net
548bc3fd3789a2b19f445b59af724f7360dcddd8
8ca88f155c3fa4bc4838ffbb3bcfdc0f79d5b923
/ymage/helpers.py
2c0bb4b7a8f2db87686772a652278401a411746c
[ "MIT" ]
permissive
cuchac/ymage
b9620da69c54fd7481c2eed236df5aae9c302881
025be067acbe002d9443c485c24be4cbacf3ec95
refs/heads/master
2021-01-15T23:28:19.709296
2011-10-28T10:38:25
2011-10-28T10:38:25
2,650,282
0
0
null
null
null
null
UTF-8
Python
false
false
1,903
py
# Copyright (c) 2011 Bogdan Popa # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distri...
[ "popa.bogdanp@gmail.com" ]
popa.bogdanp@gmail.com
0af2cab361db209fe3c3b299f67b3750fcb8ade9
6ef3fc3ffa5f33e6403cb7cb0c30a35623a52d0d
/samples/generated_samples/vision_v1_generated_product_search_get_product_async.py
347cd239d8975ec76e5bf13895cab884a24f35b2
[ "Apache-2.0" ]
permissive
vam-google/python-vision
61405506e3992ab89e6a454e4dda9b05fe2571f2
09e969fa30514d8a6bb95b576c1a2ae2c1e11d54
refs/heads/master
2022-08-15T08:40:35.999002
2022-07-18T16:04:35
2022-07-18T16:04:35
254,789,106
0
0
Apache-2.0
2020-04-11T03:59:02
2020-04-11T03:59:01
null
UTF-8
Python
false
false
1,435
py
# -*- coding: utf-8 -*- # Copyright 2022 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
[ "noreply@github.com" ]
vam-google.noreply@github.com
4c73136669dd6d941e998a444deea0ce5e842594
c934f728ee4ef42eaa276ae30769ad9e7c51c285
/pyhpecw7/utils/templates/cli.py
eb52caad3c82da0e1a3842346f7d5f85b67a3a58
[ "Apache-2.0" ]
permissive
frepkovsky/pyhpecw7
c43ccd78cef952b723dbd641818d82d760aef685
4f0d1dd696db9ef1620832f460ef3983fde5ec0c
refs/heads/master
2021-06-26T05:59:48.081377
2020-12-10T15:17:25
2020-12-10T15:17:25
188,609,179
0
0
NOASSERTION
2019-05-25T20:25:16
2019-05-25T20:25:15
null
UTF-8
Python
false
false
1,383
py
#!/usr/bin/env python # Copyright 2015 Jason Edelman <jedelman8@gmail.com> # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
[ "chris_young@me.com" ]
chris_young@me.com
3bec5e02db0fed7c25830eaa2c018eb686a47f52
491f9ca49bbb275c99248134c604da9fb43ee9fe
/MD_analysis/gatherdata_diffusion_D_vs_Ktheta.py
f3a1bea862b4e2f4a07913147a98f5f403728180
[]
no_license
KineOdegardHanssen/PhD-subprojects
9ef0facf7da4b2a80b4bea9c890aa04f0ddcfd1a
c275539689b53b94cbb85c0fdb3cea5885fc40e9
refs/heads/Windows
2023-06-08T13:32:15.179813
2023-06-05T08:40:10
2023-06-05T08:40:10
195,783,664
2
0
null
2020-08-18T14:42:21
2019-07-08T09:49:14
Python
UTF-8
Python
false
false
6,515
py
from skimage import morphology, measure, io, util # For performing morphology operations (should maybe import more from skimage...) from mpl_toolkits.mplot3d import Axes3D # Plotting in 3D import matplotlib.pyplot as plt # To plot from scipy.optimize import curve_fit from pylab imp...
[ "noreply@github.com" ]
KineOdegardHanssen.noreply@github.com
f393747d54354eeb1c2c4aad2a904633f979f438
536a59c31d9e7d56b91a1c49f814e1b6ab513b27
/webserver/dependencies/SQLAlchemy-0.5.6/lib/sqlalchemy/test/testing.py
a4a9451a8f7c24157d803e21812aef041fe4ccba
[ "MIT" ]
permissive
hughperkins/ailadder
46bf4f32e837bcf831cfa0eaaba15d3aec561bce
2dd6c07c2e5d8709be483917b3b120322fdbc80e
refs/heads/master
2021-01-01T19:24:58.964859
2009-10-23T09:12:10
2009-10-23T09:12:10
313,108
0
2
null
null
null
null
UTF-8
Python
false
false
24,439
py
"""TestCase and TestSuite artifacts and testing decorators.""" import itertools import operator import re import sys import types import warnings from cStringIO import StringIO from sqlalchemy.test import config, assertsql from sqlalchemy.util import function_named from sqlalchemy import exc as sa_exc, util, types a...
[ "hughperkins@gmail.com" ]
hughperkins@gmail.com
6a2219f5db88a5aaab7b9c4348492b6b8f836ea0
397479f8b5120b1eca15d8a06c4bea48374dc14f
/turbustat/statistics/stats_utils.py
35bdb5fee9ebe80aeef5a201b60ee156e17daaa4
[ "MIT" ]
permissive
Astroua/TurbuStat
bb3146c7fbf75527f6a3c332546f4e95579dcbec
87d18ccb8e9ec7942be96d0fc551b41312318a52
refs/heads/master
2023-01-23T20:10:07.965596
2022-10-22T22:21:10
2022-10-22T22:21:10
14,963,199
55
26
MIT
2023-01-08T02:57:09
2013-12-05T19:16:19
Python
UTF-8
Python
false
false
19,752
py
# Licensed under an MIT open source license - see LICENSE from __future__ import print_function, absolute_import, division import numpy as np import math from scipy.optimize import leastsq import astropy.wcs as wcs def hellinger(data1, data2, bin_width=1.0): ''' Calculate the Hellinger Distance between two d...
[ "koch.eric.w@gmail.com" ]
koch.eric.w@gmail.com
760fe60455ccfa4e6c8013edef2dbcc1d00d6bb3
62e58c051128baef9452e7e0eb0b5a83367add26
/x12/4020/858004020.py
82bf10a750b1dab5753ae2fbdef20cf4efa23175
[]
no_license
dougvanhorn/bots-grammars
2eb6c0a6b5231c14a6faf194b932aa614809076c
09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d
refs/heads/master
2021-05-16T12:55:58.022904
2019-05-17T15:22:23
2019-05-17T15:22:23
105,274,633
0
0
null
2017-09-29T13:21:21
2017-09-29T13:21:21
null
UTF-8
Python
false
false
4,886
py
from bots.botsconfig import * from records004020 import recorddefs syntax = { 'version' : '00403', #version of ISA to send 'functionalgroup' : 'SI', } structure = [ {ID: 'ST', MIN: 1, MAX: 1, LEVEL: [ {ID: 'ZC1', MIN: 0, MAX: 1}, {ID: 'BX', MIN: 1, MAX: 1}, ...
[ "jason.capriotti@gmail.com" ]
jason.capriotti@gmail.com
d3e9bc7a33216b4305b5ef54b7857edaf7042ddf
c2bf671e929b33bb74362559f5afb3e765662382
/colossus/apps/clientapp/forms.py
9d594ab69e9939a368fa67fd83eda1ff61eb1f8a
[ "MIT" ]
permissive
EnockOMONDI/jihus-dev
b7bf0e880dcaa6664b42eb9d942e3addb3b10b8e
a63ea595750748daf56a4fd5e0e9d53a7cfa3cd4
refs/heads/main
2022-12-31T21:45:48.417080
2020-10-22T17:05:33
2020-10-22T17:05:33
306,346,324
0
0
null
null
null
null
UTF-8
Python
false
false
213
py
from django import forms class SendMessageForm(forms.Form): title= forms.CharField(max_length=100) message = forms.CharField(widget=forms.Textarea) recepients = forms.CharField(widget=forms.Textarea)
[ "enockomondike@gmail.com" ]
enockomondike@gmail.com
ac89c6b2a7ab4aa411c8a6ba2e5e23ec635bb727
2251d71bc3ecb589ce1a8b274a08370c3240bf51
/0083 Remove Duplicates from Sorted List.py
dac2eed98424509c281b1b681789beb06ad5f2f3
[]
no_license
YuanyuanQiu/LeetCode
3495a3878edc2028f134bddb5b9ec963069562cb
6f5d0ef6a353713c0b41fa7ec0fb8c43a7e8dc55
refs/heads/master
2022-12-11T04:04:01.686226
2022-12-06T18:42:14
2022-12-06T18:42:14
231,168,173
0
0
null
null
null
null
UTF-8
Python
false
false
735
py
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None node1 = ListNode(1) node2 = ListNode(1) node3 = ListNode(2) node1.next = node2 node2.next = node3 # def printList(node): # while node: # print(node.val) # node = node.next...
[ "50243732+YuanyuanQiu@users.noreply.github.com" ]
50243732+YuanyuanQiu@users.noreply.github.com
e07f19ebcb868a53956f4158c34c0e154545cca5
9b96c37db1f61065094d42bc5c8ad6eb3925961b
/level2/target_number.py
bb5973bc44e3a2e092e766a33bd4c3b539f9a973
[]
no_license
Taeheon-Lee/Programmers
a97589498c866c498c1aa9192fdf8eec9f8e31f4
c38b1c7dc4114c99191b77e5d19af432eaf6177e
refs/heads/master
2023-07-09T21:10:25.064947
2021-08-30T05:17:49
2021-08-30T05:17:49
394,327,802
0
1
null
null
null
null
UTF-8
Python
false
false
901
py
"타겟 넘버" # 문제 링크 "https://programmers.co.kr/learn/courses/30/lessons/43165" def count(numbers, target, tmp, total): if tmp == len(numbers): # 깊이 우선 탐색 사용, 마지막까지 이동했을 때, if total == target: # 결과 값이 타겟 넘버와 동일할 경우, 1개를 추가하기 위해 1 리턴 ...
[ "taeheon714@gmail.com" ]
taeheon714@gmail.com
22968052a57d8ade218e8a3232ef6c413b6bd44b
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/RygelServer/SimpleContainerPrivate.py
a725f7ccf5acb25866957f3659d3053016d7bde2
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
4,496
py
# encoding: utf-8 # module gi.repository.RygelServer # from /usr/lib64/girepository-1.0/RygelServer-2.6.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attrib...
[ "ttys3@outlook.com" ]
ttys3@outlook.com
eab84e019f495ac57e87736f2d7e247fb499e40c
cbfddfdf5c7fa8354162efe50b41f84e55aff118
/venv/lib/python3.7/site-packages/nltk/collocations.py
31612ceafe4cb83d4aa1345cd12b313c30e3bb9c
[ "MIT", "Apache-2.0" ]
permissive
tclerico/SAAC
8d2245221dd135aea67c5e079ac7eaf542b25e2f
2f52007ae8043096662e76da828a84e87f71091e
refs/heads/master
2022-12-09T21:56:33.430404
2019-02-20T14:23:51
2019-02-20T14:23:51
153,152,229
3
0
MIT
2022-09-16T17:52:47
2018-10-15T17:13:29
Python
UTF-8
Python
false
false
14,488
py
# Natural Language Toolkit: Collocations and Association Measures # # Copyright (C) 2001-2018 NLTK Project # Author: Joel Nothman <jnothman@student.usyd.edu.au> # URL: <http://nltk.org> # For license information, see LICENSE.TXT # """ Tools to identify collocations --- words that often appear consecutively --- within c...
[ "timclerico@gmail.com" ]
timclerico@gmail.com
6ea267133156a7628abcdc2e3962eec308cdecc3
dcff14b40e9ae8eee237777d7689897d6c6251f8
/section2/lecture_010.py
013558dd2a9c6226f8980f0671149907ee09e8d8
[]
no_license
nirzaf/python_excersize_files
bebdfd0dbd9e2c5991c7aa3ff56b0ab5def0707c
960f0935483729648aea17456c813ccf65d99149
refs/heads/master
2021-03-25T16:02:59.573403
2020-03-16T09:57:23
2020-03-16T09:57:23
247,631,346
25
0
null
null
null
null
UTF-8
Python
false
false
85
py
my_book = "My favorite book is 'Elom Musk'.".replace('Elom', 'Elon') print(my_book)
[ "mohamed.fazrin@staff.broadbandsolutions.com.au" ]
mohamed.fazrin@staff.broadbandsolutions.com.au
9112b55172eef632eca15f787a9bb1457535a1cd
09e57dd1374713f06b70d7b37a580130d9bbab0d
/benchmark/startPyquil2557.py
4208349c9bbf8ccc828c76303636edb4bd953026
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
1,801
py
# qubit number=4 # total number=35 import pyquil from pyquil.api import local_forest_runtime, QVMConnection from pyquil import Program, get_qc from pyquil.gates import * import numpy as np conn = QVMConnection() def make_circuit()-> Program: prog = Program() # circuit begin prog += CNOT(0,3) # number=13 ...
[ "wangjiyuan123@yeah.net" ]
wangjiyuan123@yeah.net
0a7e55342d8a4b7b2f538f9bececc852e87badf0
04ae1836b9bc9d73d244f91b8f7fbf1bbc58ff29
/655/Solution.py
2d8edc9e127ac5e52942f9488260f0e9792c9b4d
[]
no_license
zhangruochi/leetcode
6f739fde222c298bae1c68236d980bd29c33b1c6
cefa2f08667de4d2973274de3ff29a31a7d25eda
refs/heads/master
2022-07-16T23:40:20.458105
2022-06-02T18:25:35
2022-06-02T18:25:35
78,989,941
14
6
null
null
null
null
UTF-8
Python
false
false
1,013
py
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def printTree(self, root: TreeNode) -> List[List[str]]: if not root: return [] def ...
[ "zrc720@gmail.com" ]
zrc720@gmail.com
f2edfe179c6a18015940a9ce02b525818d25de88
7b0c90185aa3d4ae7c422ff32fcc0ebf930f1eed
/venv/bin/rst2latex.py
002c40782a6d22022fddcd97bd7aa49b9d76b130
[]
no_license
skilllauncher/lets-hi5
d3c83052886027575e5e3b5d4e92cb934105fab5
8277d3ea641b44fc70c4bfb1f5581e6ae8e395cb
refs/heads/master
2020-03-24T03:14:35.276636
2018-07-26T08:14:19
2018-07-26T08:14:19
142,410,670
0
1
null
2018-07-26T08:16:33
2018-07-26T08:16:33
null
UTF-8
Python
false
false
829
py
#!/Users/saicharanreddy/Desktop/lets-hi5/venv/bin/python # $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ # Author: David Goodger <goodger@python.org> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing LaTeX. """ try: import locale ...
[ "saicharan.reddy1@gmail.com" ]
saicharan.reddy1@gmail.com
c88c71651e992f3efcb1b3b7e7197f1f50fccef9
913e24ea110f839c73363bc1aac9673e561fa5f8
/stable-baselines_zoo/4_enjoy_1joint.py
2e7664bd28858b4555f68b9e9a60b1ce19b917fe
[ "MIT" ]
permissive
PierreExeter/WidowX-reacher
24e2b3f72e9aec24a9a61e6a8958c200e0dbe893
560c6779dc91a887191f344c43de24926ba75b4d
refs/heads/master
2023-03-06T13:48:12.810858
2021-02-22T15:36:52
2021-02-22T15:36:52
264,480,232
4
0
MIT
2021-02-22T15:27:44
2020-05-16T16:36:53
Python
UTF-8
Python
false
false
22,182
py
import widowx_env import gym from utils import ALGOS, create_test_env, get_latest_run_id, get_saved_hyperparams, find_saved_model from stable_baselines.common.vec_env import VecNormalize, VecFrameStack, VecEnv from stable_baselines.common import set_global_seeds import stable_baselines import numpy as np import utils.i...
[ "pierre.aumjaud@gmail.com" ]
pierre.aumjaud@gmail.com
87a2a299c758fb276bc56f0b4851af27c502cbbc
0491aa5abac1b7b38836a44808dc4fe13c9d9b04
/costcontract/views.py
855a024909d582292d7f28f74fbd69cae4d60d6d
[]
no_license
v-komarov/scatalog
fc174128885082b4c8c89088349179e20ed06bf2
be07772875c3e11f01416ce603412e5b85868b53
refs/heads/master
2021-01-01T03:40:23.881644
2016-05-25T09:42:05
2016-05-25T09:42:05
59,650,985
0
0
null
null
null
null
UTF-8
Python
false
false
11,910
py
#coding:utf-8 from django.shortcuts import render import os.path import base64 from operator import itemgetter from django.http import HttpResponse from django.http import HttpResponseRedirect from django.template import Context, loader, RequestContext from django.core.context_processors import csrf from django.shor...
[ "komarov-krsk@mail.ru" ]
komarov-krsk@mail.ru
8e0e9ff54a1b264abfcc842a94ec36f8c53d0cfa
ff29c013c24068e7409340ba1cd5b88cf3e82436
/kobocat/onadata/libs/authentication.py
20d192ec92a035efa730aba0877ea328cb992763
[ "BSD-2-Clause" ]
permissive
Jubair70/Acid-Survivors-MIS
01c64a0589e5ed275d9f1a9cf5973303ea4b937e
89f19607d18a6d4c88717527e2e8d557aaec2fa9
refs/heads/master
2021-05-26T11:26:34.503102
2019-08-26T10:38:59
2019-08-26T10:38:59
254,112,228
1
0
null
2020-04-08T14:53:52
2020-04-08T14:33:00
HTML
UTF-8
Python
false
false
906
py
from django.utils.translation import ugettext as _ from django_digest import HttpDigestAuthenticator from rest_framework.authentication import ( BaseAuthentication, get_authorization_header) from rest_framework.exceptions import AuthenticationFailed class DigestAuthentication(BaseAuthentication): def __init__...
[ "jubair@mpower-social.com" ]
jubair@mpower-social.com
6f8d9b7c933fa5b0cf139cc82e4f679ba2e2f922
39b9a28d721ef3a06726004408bd9788ddcaf0bd
/Omok 소스코드/omok8x8/run_game.py
701b7b79e8ddcb7dfcfe287c77b2d85c95b419e5
[]
no_license
handaeho/Alpha_Omokjomok
560de9c4a3376d4b3d46f43592bc38ec39fa630e
8760a9b4c5748715fd811e4c569701e63c7c6bc7
refs/heads/master
2023-03-19T04:11:34.762095
2023-03-13T14:16:55
2023-03-13T14:16:55
241,247,484
0
0
null
null
null
null
UTF-8
Python
false
false
28,088
py
from Omok import * import pygame, sys import random import pickle from pygame.locals import * from rule import * #black attat first #whtie defense first #from policy_value_net_pytorch import PolicyValueNet from policy_value_net_numpy import PolicyValueNetNumpy from game import Board, Game from mcts_alphaZero import M...
[ "mrdh94@naver.com" ]
mrdh94@naver.com
b3f7b90697b7a99392cca01b08363bf040a43cf0
ff88a620c7437af9af946643cd65f06c99fe3601
/IntermediateCodeAndTesting/LearningStopAuctionJune22StopVolume_lastrun.py
7d195e083c0ce5d9135518aa239872d681611ebc
[]
no_license
bissettp/TrainedInhibitionTask
c2f20dadbb0e440c4fcf2bd3c4d670a7416df93c
82727bd3ffa101209a61f2ff4f057f8896522d5d
refs/heads/master
2020-06-06T20:02:16.470092
2015-06-23T17:56:15
2015-06-23T17:56:15
34,129,470
0
0
null
null
null
null
UTF-8
Python
false
false
174,629
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ This experiment was created using PsychoPy2 Experiment Builder (v1.82.01), Mon Jun 22 22:22:51 2015 If you publish work using this script please cite the relevant PsychoPy publications Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neurosci...
[ "pbissett@stanford.edu" ]
pbissett@stanford.edu
8d8d28d252d52ec1db6699a9526d2c622795c93d
df2cbe914f463ad050d7ed26194424afbe3a0a52
/addons/account/models/account_full_reconcile.py
f2ff0ea0895aae478432ed3fde5739b1a75f6bec
[ "Apache-2.0" ]
permissive
SHIVJITH/Odoo_Machine_Test
019ed339e995be980606a2d87a63312ddc18e706
310497a9872db7844b521e6dab5f7a9f61d365a4
refs/heads/main
2023-07-16T16:23:14.300656
2021-08-29T11:48:36
2021-08-29T11:48:36
401,010,175
0
0
Apache-2.0
2021-08-29T10:13:58
2021-08-29T10:13:58
null
UTF-8
Python
false
false
1,646
py
# -*- coding: utf-8 -*- from odoo import api, fields, models, _ class AccountFullReconcile(models.Model): _name = "account.full.reconcile" _description = "Full Reconcile" name = fields.Char(string='Number', required=True, copy=False, default=lambda self: self.env['ir.sequence'].next_by_code('account.reco...
[ "36736117+SHIVJITH@users.noreply.github.com" ]
36736117+SHIVJITH@users.noreply.github.com
be55eb5dd2519645a214a1282c5a37ce629cb118
a02a40f0df624c74820ad25c27a5e2fb683610f7
/qc2tsv/qc2tsv.py
eb179093ed0160a01ab0fa2d4d89c1f3518cddb7
[ "MIT" ]
permissive
ENCODE-DCC/qc2tsv
d3d688bd3f4b3afb0ec4ba7969a001bb9cb7afb2
f6bd9959d71254a10792bc30414dddcdcdf3865c
refs/heads/master
2020-09-01T20:49:34.641168
2020-08-10T19:39:36
2020-08-10T19:39:36
219,053,354
2
0
MIT
2020-08-10T19:39:38
2019-11-01T19:54:50
Python
UTF-8
Python
false
false
4,980
py
import json import logging import pandas from copy import deepcopy from autouri import AutoURI, AbsPath from caper.dict_tool import split_dict, merge_dict logger = logging.getLogger(__name__) class Qc2Tsv(object): """Qc2Tsv converts multiple JSON objects into a single spreadsheet Its header will have multip...
[ "leepc12@gmail.com" ]
leepc12@gmail.com
227c923b155c129254ce3c05e10ed9edd285112b
793318429f3ea697f257b1340f198e2aa9ee46d3
/pytorch_sentiment_analysis/2lstm.py
6808356605274436439b62b40e1c0162a1cd46b0
[ "MIT" ]
permissive
PandoraLS/python_toys
129eeaba03c6c81509fded2c56e3ac922d22ee41
d3f78815ada5c20863656c643342d48bcc3aef53
refs/heads/main
2023-03-22T18:53:22.028849
2021-03-18T14:32:36
2021-03-18T14:32:36
349,050,335
0
0
null
null
null
null
UTF-8
Python
false
false
6,487
py
#!/usr/bin/env python # coding: utf-8 # 同样使用RNN,本节的改进如下 # # * 预训练的词向量 # * 不同的RNN结构(LSTM) # * 多层RNN # * 正则化 # * 不同的优化器 # --- # ## 1. 数据准备 # # 通过预训练词向量初始化每个词 # In[3]: import torch from torchtext import data, datasets import random import time SEED = 1234 begin_t = time.time() torch.manual_seed(SEED) torch.cuda....
[ "lisen_work@163.com" ]
lisen_work@163.com
969aee15d51bbe3bb9dc711ec920609108fc317f
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/other_hand_or_government.py
6422da2f135a28999761b5955c922750ace9b5de
[]
no_license
JingkaiTang/github-play
9bdca4115eee94a7b5e4ae9d3d6052514729ff21
51b550425a91a97480714fe9bc63cb5112f6f729
refs/heads/master
2021-01-20T20:18:21.249162
2016-08-19T07:20:12
2016-08-19T07:20:12
60,834,519
0
0
null
null
null
null
UTF-8
Python
false
false
242
py
#! /usr/bin/env python def thing_and_part(str_arg): number_and_big_point(str_arg) print('person_and_next_point') def number_and_big_point(str_arg): print(str_arg) if __name__ == '__main__': thing_and_part('place_or_year')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
0902603a00ec16a6c553ebb574aaaaee0f7380b5
c521d9934cc92390a8bd51c0a5a37257bf1a29df
/mkt/feed/fakedata.py
6c1e068efe1e236cb05442005c0048d66f5f1a96
[]
no_license
graingert/zamboni
1f36992205fbd1329d0d0b0b2bcdb558f363cf60
d92a0aa4ac6d3129bf3b72b3a8a2a223ced22ef3
refs/heads/master
2021-01-22T12:44:36.287310
2015-04-17T13:05:11
2015-04-17T13:05:11
34,050,296
0
0
null
2015-04-16T10:49:13
2015-04-16T10:49:12
null
UTF-8
Python
false
false
6,408
py
import hashlib import random from django.core.files.storage import default_storage as storage from mpconstants.collection_colors import COLLECTION_COLORS import pydenticon from mkt.constants.regions import REGIONS_DICT from mkt.constants.carriers import CARRIER_CHOICE_DICT from mkt.webapps.fakedata import foreground,...
[ "ashort@mozilla.com" ]
ashort@mozilla.com
615c56157da6e85bb253d3360f1fe42404143c73
382d9643dfc15aaf605112fa1624c2cca5300106
/build/lib/BearSki/utils/hartool.py
0d873891b1ad430ed6af29a946532e6fa886a59b
[ "MIT" ]
permissive
xglh/BearSki
150f67c42d263d142656c4d5e254c1b0472bee12
ba4c34de658a1b744694a9424b63bd9a5795c42f
refs/heads/master
2021-06-10T19:10:44.559173
2020-03-14T14:02:44
2020-03-14T14:02:44
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,867
py
# -*- encoding: utf-8 -*- ''' @File : hartool.py @Time : 2020/01/29 15:29:32 @Author : chenjiusi ''' import logging import json,os from har2case.core import HarParser from BearSki.utils.arguments import runArg from BearSki.template import ApiTest_har logger=logging.getLogger("BearSki.HarTool") class Har...
[ "chen6_9@163.com" ]
chen6_9@163.com
ed4dfc56ebef516b1ddf985533ac948d8038a217
a560269290749e10466b1a29584f06a2b8385a47
/Notebooks/py/adhishk1/titanic-dataset-predictions/titanic-dataset-predictions.py
f20db10f200cafbf4bcc16509d4186daddc35ed9
[]
no_license
nischalshrestha/automatic_wat_discovery
c71befad1aa358ae876d5494a67b0f4aa1266f23
982e700d8e4698a501afffd6c3a2f35346c34f95
refs/heads/master
2022-04-07T12:40:24.376871
2020-03-15T22:27:39
2020-03-15T22:27:39
208,379,586
2
1
null
null
null
null
UTF-8
Python
false
false
12,969
py
#!/usr/bin/env python # coding: utf-8 # In[ ]: # This Python 3 environment comes with many helpful analytics libraries installed # It is defined by the kaggle/python docker image: https://github.com/kaggle/docker-python # For example, here's several helpful packages to load in import numpy as np # linear algebra i...
[ "bitsorific@gmail.com" ]
bitsorific@gmail.com
643efd214235c664eeffb24299b11c9b101390ab
ded10c2f2f5f91c44ec950237a59225e8486abd8
/.history/2/matrix_squaring_run_20200424192105.py
875feea371ca462d383947ebe8dcbfabd7f8fd6b
[]
no_license
jearistiz/Statistical-Physics-Projects
276a86407b32ded4e06b32efb2fadbd8eff8daed
d9c5b16a50856e148dc8604d92b6de3ea21fc552
refs/heads/master
2022-11-05T03:41:23.623050
2020-06-28T06:36:05
2020-06-28T06:36:05
254,909,897
1
0
null
null
null
null
UTF-8
Python
false
false
5,213
py
from matrix_squaring import * ################################################################################################ # PANEL DE CONTROL ################################################################################################ # Decide si corre algoritmo matrix squaring con aproximación de trotter ru...
[ "jeaz.git@gmail.com" ]
jeaz.git@gmail.com
067536971810a16806d9fc80791a0f545a458e3d
2e74c7339c63385172629eaa84680a85a4731ee9
/functions/impairment_squeeze/squeeze_em_all.py
8b0d7b518fd19dacb2d7aed44af4c0cd740e0804
[]
no_license
zhusui/ihme-modeling
04545182d0359adacd22984cb11c584c86e889c2
dfd2fe2a23bd4a0799b49881cb9785f5c0512db3
refs/heads/master
2021-01-20T12:30:52.254363
2016-10-11T00:33:36
2016-10-11T00:33:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
11,048
py
import argparse import pandas as pd from multiprocessing import Pool from transmogrifier import gopher import os from functools import partial import ideal_scale_funcs as ifs ################################### # Prepare envelopes ################################### def create_env(location_id, year, sex): env_ids...
[ "nsidles@uw.edu" ]
nsidles@uw.edu
0fca7271ca66ca7596d91423480f1973622b76be
ff0c17789badd75559eb834fe039d4b4ab175ba8
/pythonscript/x11-64-cpython/lib/python3.6/test/test_typing.py
a3b2ea7f03e5f2f3de5b494930f39791cb13bb21
[ "LicenseRef-scancode-python-cwi", "LicenseRef-scancode-free-unknown", "Python-2.0", "GPL-1.0-or-later", "LicenseRef-scancode-other-copyleft", "LicenseRef-scancode-unicode", "BSD-3-Clause", "Apache-2.0", "LicenseRef-scancode-public-domain", "OpenSSL", "MIT" ]
permissive
studioschade/notebook_graph
3f7555ab46167b050e461164c6b4a1525dc7df0c
0fd159855fdd9c38a6dd293e5ec6164986ad6209
refs/heads/master
2022-10-23T23:54:54.467050
2018-10-14T08:10:18
2018-10-14T08:10:18
148,099,361
9
2
MIT
2022-10-10T20:16:48
2018-09-10T04:32:44
Python
UTF-8
Python
false
false
83,339
py
import contextlib import collections import pickle import re import sys from unittest import TestCase, main, skipUnless, SkipTest, expectedFailure from copy import copy, deepcopy from typing import Any, NoReturn from typing import TypeVar, AnyStr from typing import T, KT, VT # Not in __all__. from typing import Union...
[ "allen.schade@gmail.com" ]
allen.schade@gmail.com
a9b9060400b2d7c665146225a0b6e3d64c518c3a
11763b1150a3a05db89c13dcd6152f8fcca87eaa
/designs/linear/homomorphic/latticebased/keyagreement11.py
f9a954cf9ab102e26637538b7316f642ae13b71d
[]
no_license
acad2/crypto
343c32fa25aaec73e169290579fc3d02c4b226f6
cb283df4101fcd618a0478a0018273f00d0734ae
refs/heads/master
2021-08-19T06:36:26.068033
2017-11-25T00:41:03
2017-11-25T00:41:03
113,048,326
2
0
null
2017-12-04T13:49:02
2017-12-04T13:49:01
null
UTF-8
Python
false
false
2,049
py
#s(a + e) #x(a + y) # as + se 16 32 48 32 48 80 # ax + xy #se(ax + xy) == axse + xyse == xs(ae + ye) #xy(as + se) == asxy + xyse == xs(ay + ye) # 24 32 32 32 32 32 32 32 128 - 120 = 8 # 48 64 64 64 64 64 64 64 ...
[ "python_pride@protonmail.com" ]
python_pride@protonmail.com
0ef5ddc8e7980eeeaa8c87ee02a17c7dd1c0cae8
969b7b94eba36e07ce89b41dd2d3201988fda9e4
/coverage_overlay/old-version/overlap.py
0142937bd87011e58983fdf807f4197046f4980c
[]
no_license
shahbazymoh/proteomicstools
b1554c5c1729c04ab478d7bcc2cbaeaa8886bcf6
59bfcd19ed05ceb59b98bc1d37515b7ff0581da2
refs/heads/master
2021-05-30T11:03:10.482346
2016-02-03T01:36:39
2016-02-03T01:36:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,430
py
from __future__ import print_function import csv import uniprot import re def clean_seqid(seqid): pieces = seqid.split('|') return pieces[1] def is_overlap(i1, seq1, i2, seq2): j1 = i1 + len(seq1) j2 = i2 + len(seq2) if i1 >= j2 or i2 >= j1: return False return True def gap(i1, seq1, i...
[ "apposite@gmail.com" ]
apposite@gmail.com
f07378415cbc0427108c6b64dc4ea74f4ed3980a
4add4495531c3d697686e9ea7fc6a9392a52ef1f
/CSpiderClient/bin/elongHotel/elongHotelRoomParser.py
db750ba52ba7dd314f6e6f7ee8a3a353d3740c48
[]
no_license
dangpu/momoko
81bda2fefd2426323d48036573c32e2d18dada94
bf035cc4f6733a30eb963630f7a35909a6226acd
refs/heads/master
2020-04-25T08:07:12.468507
2014-08-30T03:59:08
2014-08-30T03:59:08
18,755,221
1
1
null
null
null
null
UTF-8
Python
false
false
8,694
py
#! /usr/bin/env python #coding=UTF8 ''' @author:fangwang @data:2014-05-11 @desc:crawl and parse elong hotel comment ''' import json import sys from util.crawl_func import crawl_single_page from util.crawl_func import request_post_data from common.insert_db import InsertHotel_room from common.class_common ...
[ "dangpuzy@163.com" ]
dangpuzy@163.com
e6e0ebace35bc62a8bc4052e358519b0eb898000
87cecf5db9c46b86290e468216d6d6d0bc648d29
/nerodia/element_collection.py
ebbca08cf9b986d77f0dd89fe1a931a6894f28ca
[ "MIT" ]
permissive
ed00m/nerodia
84efcb8a5a9b798af669c346a77fb12dfffe475f
8a1aff52942cf5a58567fb5753cb0a1974310b5a
refs/heads/master
2020-03-27T16:15:36.202560
2018-08-30T14:28:11
2018-08-30T14:28:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,561
py
from importlib import import_module from itertools import islice import nerodia from .locators.class_helpers import ClassHelpers class ElementCollection(ClassHelpers): def __init__(self, query_scope, selector): self.query_scope = query_scope self.selector = selector self.generator = () ...
[ "lucast1533@gmail.com" ]
lucast1533@gmail.com
2e143358fc3e1ac3a4de45f1c3825d405d0e713e
e953441fb81040ca1c55dc4c410fb606dda000ef
/humanoid_maze/envs/humanoid_maze.py
e537da5274eb489e281014768e92b5704974f2e5
[]
no_license
Rowing0914/MuJoCo_Humanoid_Maze
5dd25f408526e9666e84e7902a0054a796c496a1
2da3330dd58d27ab5b07507e69d0efa466a45d40
refs/heads/master
2020-06-21T12:29:56.540230
2019-07-17T19:45:39
2019-07-17T19:45:39
197,451,363
3
0
null
null
null
null
UTF-8
Python
false
false
5,441
py
# https://github.com/openai/gym/blob/master/gym/envs/mujoco/humanoid_v3.py import numpy as np from gym.envs.mujoco import mujoco_env from gym import utils DEFAULT_CAMERA_CONFIG = { 'trackbodyid': 1, 'distance': 4.0, 'lookat': np.array((0.0, 0.0, 2.0)), 'elevation': -20.0, } def mass_center(model, si...
[ "kosakaboat@gmail.com" ]
kosakaboat@gmail.com
8db1dd021ad9782e8d54300ed0170c3c75dd5f50
be0fdb8cd97067212788a1e3d7acb3e03a7a4258
/data_loader.py
68ecc46c27a7e9c540f5782664b5ad174399b0c3
[]
no_license
speedcell4/logistic
dacca0c98a1cf201c1ae47d094823dab9198917e
0ef2564b400cc8a5bea9f81b4ec9dd8dd630cd61
refs/heads/master
2020-03-21T02:43:15.067612
2018-06-20T10:05:14
2018-06-20T10:05:14
138,014,390
0
0
null
null
null
null
UTF-8
Python
false
false
2,347
py
from collections import Counter from pathlib import Path from random import shuffle project_dir = Path(__file__).expanduser().absolute().parent positive = project_dir / 'data' / 'data' / 'books' / 'positive.review' negative = project_dir / 'data' / 'data' / 'books' / 'negative.review' def sentence_stream(path: Path)...
[ "speedcell4@gmail.com" ]
speedcell4@gmail.com
5261207a2efcbd341065c3dc64ec1e5c816a1b63
245a3f8cea6f232bf3142706c11188b51eb21774
/python/hetu/gpu_links/MatrixDivideConstLink.py
a613061bff3e74d4d6f4526b31cf818adffcce45
[ "Apache-2.0" ]
permissive
initzhang/Hetu
5bfcb07e62962fbc83def14148f8367fab02625a
447111a358e4dc6df5db9c216bdb3590fff05f84
refs/heads/main
2023-06-20T18:37:21.760083
2021-07-27T04:37:48
2021-07-27T04:37:48
389,848,768
0
0
Apache-2.0
2021-07-27T04:32:57
2021-07-27T04:32:57
null
UTF-8
Python
false
false
395
py
from __future__ import absolute_import import ctypes from .._base import _LIB from .. import ndarray as _nd def matrix_elementwise_divide_const(val, in_mat, out_mat, stream=None): assert isinstance(in_mat, _nd.NDArray) assert isinstance(out_mat, _nd.NDArray) _LIB.DLGpuMatrixDivConst( ctypes.c_flo...
[ "swordonline@foxmail.com" ]
swordonline@foxmail.com
08d3f21518ff323ed41e12bbf58539628b0d1d8b
c291ba4506a8998df8d7f384c911f6a0a1294001
/bai__48/KhaiNiemVeHam.py
98b0fa0105f06dadc22e7a9e273b79f3d0b51d22
[]
no_license
thanh-falis/Python
f70804ea4a3c127dcb7738d4e7c6ddb4c5a0a9d4
fa9f98d18e0de66caade7c355aa6084f2d61aab3
refs/heads/main
2023-08-18T17:34:29.851365
2021-09-30T12:09:30
2021-09-30T12:09:30
398,952,505
0
0
null
null
null
null
UTF-8
Python
false
false
515
py
''' - Hàm là một khối lệnh thực hiện một công việc hoàn chỉnh (mudule), được đặt tên và gọi thực thj nhiều lần tại nhiều vị trí trong chuong trình. - Hàm còn được gọi là chương trình con. - Nếu không viết hàm thì + Rất khó để viết chính xác khi dự án lớn + Khó debug + Khó mở rộng - có 2 loại hàm: + Hàm...
[ "thanhelma2020|@gmail.com" ]
thanhelma2020|@gmail.com
311fd6ae560e67365300344f56e6f7c6b238c27a
c3a76533d1fbb53f291f49fb95b5e89ed69a75f5
/好咧,最后还是要搞google/hard/RangeSumQuery2DMutable308.py
ac4a3007e5e59c792b05380b333bcff23f1254be
[]
no_license
jing1988a/python_fb
5feb68efd32bd63952b4df0c0cd2e766b83451ea
fd310ec0a989e003242f1840230aaac150f006f0
refs/heads/master
2020-03-28T21:03:19.375549
2019-01-31T17:02:17
2019-01-31T17:02:17
149,125,354
0
0
null
null
null
null
UTF-8
Python
false
false
5,380
py
# Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2). # # # The above rectangle (with the red border) is defined by (row1, col1) = (2, 1) and (row2, col2) = (4, 3), which contains sum = 8. # # Example: # Given mat...
[ "jing1988a@gmail.com" ]
jing1988a@gmail.com