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
c5a5e944bd41c1e4cfadd2c3c620774ec34c22e1
31e41995dea5e4a41bc9b942da7e5266cd686757
/learning/training/python/py2/pgms/sec4/outputparams.py
5894f5ae44a48540fe4caeee5abca53df43f5154
[]
no_license
tamle022276/python
3b75758b8794801d202565c05d32976c146beffd
4fec225d1e5e2bf0adac5048f7f9f3313ac76e23
refs/heads/master
2020-04-01T21:03:01.458768
2017-03-13T20:47:35
2017-03-13T20:47:35
64,878,939
0
0
null
null
null
null
UTF-8
Python
false
false
291
py
#!/usr/bin/env python # outputparams.py - simulate output parameters def assign(m, n): m = 10 n = [3, 4] return m, n a = 5; b = [1, 2] (a, b) = assign(a, b) # updates a, b print a, b ##################################### # # $ outputparams.py # 10 [3, 4] #
[ "tam.le@teradata.com" ]
tam.le@teradata.com
5ebdc3a4b1499d03dc0954911ba0248fd4c5dfb8
e254a1124bbe6be741159073a22898b0824e2a4f
/customuser/admin.py
6c225a0579ce6bb67949bffc24b32ad6df83f3a0
[]
no_license
skiboorg/stdiplom
0df83b8e42e999abc43a01157cb24cffd10d0666
13101381c7db8a4b949048e8cbfcf9673cf7ecde
refs/heads/master
2022-11-12T23:55:21.136176
2020-06-29T05:57:03
2020-06-29T05:57:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,030
py
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin from django.utils.translation import ugettext_lazy as _ from .models import User,Guest @admin.register(User) class UserAdmin(DjangoUserAdmin): """Define admin model for custom User model with no email field.""" ...
[ "ddnnss.i1@gmail.com" ]
ddnnss.i1@gmail.com
d6522db0345b146f5c997b5624fec7901716705a
006341ca12525aa0979d6101600e78c4bd9532ab
/CMS/Zope-3.2.1/Dependencies/zope.server-Zope-3.2.1/zope.server/linereceiver/linetask.py
b6e21554887b4b549e2db8b1c9d3414ff467116b
[ "ZPL-2.1", "Python-2.0", "ICU", "LicenseRef-scancode-public-domain", "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "ZPL-2.0" ]
permissive
germanfriday/code-examples-sandbox
d0f29e20a3eed1f8430d06441ac2d33bac5e4253
4c538584703754c956ca66392fdcecf0a0ca2314
refs/heads/main
2023-05-30T22:21:57.918503
2021-06-15T15:06:47
2021-06-15T15:06:47
377,200,448
0
0
null
null
null
null
UTF-8
Python
false
false
2,064
py
############################################################################## # # Copyright (c) 2001, 2002 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 the ZPL should accompany this distribution. # T...
[ "chris@thegermanfriday.com" ]
chris@thegermanfriday.com
09748ed4d962cf5b7f4a079ab8e5b4811299f4c0
99b062cb9f5f3ff10c9f1fa00e43f6e8151a43a6
/Django/PROJECT02/PROJECT02/jobs/models.py
5d8ee670119eeaf75fc29f8879c7f9b7d6106061
[]
no_license
HSx3/TIL
92acc90758015c2e31660617bd927f7f100f5f64
981c9aaaf09c930d980205f68a28f2fc8006efcb
refs/heads/master
2020-04-11T21:13:36.239246
2019-05-08T08:18:03
2019-05-08T08:18:03
162,099,042
4
0
null
null
null
null
UTF-8
Python
false
false
223
py
from django.db import models # Create your models here. class Job(models.Model): name = models.CharField(max_length=20) pastjob = models.CharField(max_length=30) def __str__(self): return self.name
[ "hs.ssafy@gmail.com" ]
hs.ssafy@gmail.com
b1b17de27b17b10b04b0d215f31b42d2845350ab
c31ee8136a57a96649196081e1cfde0676c2a481
/larcv/app/arxiv/arxiv/LArOpenCVHandle/cfg/mac/arxiv/analyze.py
1ff1c17fba6bd79428e15f9dc424c3ee27064942
[ "MIT" ]
permissive
DeepLearnPhysics/larcv2
b12b46168e5c6795c70461c9495e29b427cd88b5
31863c9b094a09db2a0286cfbb63ccd2f161e14d
refs/heads/develop
2023-06-11T03:15:51.679864
2023-05-30T17:51:19
2023-05-30T17:51:19
107,551,725
16
19
MIT
2023-04-10T10:15:13
2017-10-19T13:42:39
C++
UTF-8
Python
false
false
1,113
py
from larcv import larcv import ROOT, sys from ROOT import std if len(sys.argv) < 2: print 'Usage: python',sys.argv[0],'CONFIG_FILE [LARCV_FILE1 LARCV_FILE2 ...]' sys.exit(1) proc = larcv.ProcessDriver('ProcessDriver') print "Loading config... ",sys.argv[1] proc.configure(sys.argv[1]) print "Loaded" print sys....
[ "kazuhiro@nevis.columbia.edu" ]
kazuhiro@nevis.columbia.edu
c5c4b6f0b936cd29d654915642a877ac48a21b78
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03806/s696918602.py
35f161589d7dd759d0031fd48f8415a6aae2215a
[]
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
666
py
def main(): INF = 100 * 40 + 1 MX = 4000 N, Ma, Mb = map(int, input().split()) dp = [[INF] * (MX * 2 + 1) for _ in range(2)] i, j = 0, 1 for _ in range(N): ai, bi, ci = map(int, input().split()) x = Ma * bi - Mb * ai # Σai:Σbi=Ma:Mb<->Ma*Σbi-Mb*Σai=0 for k in range(-M...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
4b076855d9faf7d4b9b52c1ba3bcabde38de220d
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_200/3477.py
445b282b68ddf7bc5304da572da944985b261730
[]
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
2,508
py
""" Problem B. Tidy Numbers Problem Tatiana likes to keep things tidy. Her toys are sorted from smallest to largest, her pencils are sorted from shortest to longest and her computers from oldest to newest. One day, when practicing her counting skills, she noticed that some integers, when written in base 10 w...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
68e4482c14a3dab16659aa7b39e7e1d5f4c639ed
edd1adb88112045d16d3e6417117d45ceed4a634
/classical/tidybot-opt14-strips/api.py
fb141663dc9a4e046bd1d3dc18576e2df06bd7ef
[]
no_license
AI-Planning/classical-domains
26de25bf23622f95c877960c1d52f444922d8737
4bd0b42d89ea02bd38af6f93cf20a0ab0cbda9d9
refs/heads/main
2023-04-27T07:55:55.832869
2023-03-29T01:46:11
2023-03-29T01:46:11
253,298,999
24
12
null
2023-04-18T01:45:39
2020-04-05T18:02:53
PDDL
UTF-8
Python
false
false
2,822
py
domains = [ {'description': 'The Tidybot domain models a household cleaning task, in which one or more robots must pick up a set of objects and put them into goal locations. The world is structured as a 2d grid, divided into navigable locations and surfaces on which objects may lie. Robots have a gripper, which moves r...
[ "christian.muise@gmail.com" ]
christian.muise@gmail.com
9704f2152ae475830dc15c917f3fe61bda494b73
55ceefc747e19cdf853e329dba06723a44a42623
/_CodeTopics/LeetCode/201-400/000387/000387.py
f9281d3ccb22db12c9f847e92d1c3e8f262be557
[]
no_license
BIAOXYZ/variousCodes
6c04f3e257dbf87cbe73c98c72aaa384fc033690
ee59b82125f100970c842d5e1245287c484d6649
refs/heads/master
2023-09-04T10:01:31.998311
2023-08-26T19:44:39
2023-08-26T19:44:39
152,967,312
0
1
null
null
null
null
UTF-8
Python
false
false
793
py
class Solution(object): def firstUniqChar(self, s): """ :type s: str :rtype: int """ def str_to_dict(s): dic = {} for ch in s: if ch in dic: dic[ch] += 1 else: dic[ch] = 1 ...
[ "noreply@github.com" ]
BIAOXYZ.noreply@github.com
7e221de13be5313611640449392570d027655ac8
0a7d76af2d8dced3c65fbcbda9af6d17b1e429c0
/tests/forms_tests/tests/test_media.py
2b73a041becbfaf07ab7b9065f321e9886cac50a
[ "Python-2.0", "BSD-3-Clause" ]
permissive
manhnd1112/GR
607d4e9add987dd994c0fe20629b03631769c02a
2ee9da122afeb33b3ee589a7f64d3f74d2654a1a
refs/heads/master
2022-12-11T00:36:05.143147
2018-05-31T10:03:35
2018-05-31T10:03:35
125,654,350
0
0
BSD-3-Clause
2022-12-08T00:58:26
2018-03-17T17:42:34
Python
UTF-8
Python
false
false
24,831
py
import warnings from django.forms import CharField, Form, Media, MultiWidget, TextInput from django.template import Context, Template from django.test import SimpleTestCase, override_settings @override_settings( STATIC_URL='http://media.example.com/static/', ) class FormsMediaTestCase(SimpleTestCase): """Tes...
[ "manhnd@kaopiz.com" ]
manhnd@kaopiz.com
eb6724585a47c16c7058930111a03405d5276fc7
69439004c494c2d56018468d3fec8c9e56036fc8
/tests/zeus/utils/test_auth.py
5c2197a339a137df799456193c58afdd897db536
[ "Apache-2.0" ]
permissive
buchiputaobutuputaopi/zeus-1
6dbc54e65c925040b1c1e01683625cea49299b4e
8a606642d9ef8f239df2e8d7079ea4d130d78cb3
refs/heads/master
2021-06-25T07:26:52.278251
2017-09-06T03:53:04
2017-09-06T03:53:04
null
0
0
null
null
null
null
UTF-8
Python
false
false
257
py
from zeus import auth def test_login_user(client, default_user): with client.session_transaction() as session: auth.login_user(default_user.id, session=session) assert session['uid'] == default_user.id assert session['expire']
[ "dcramer@gmail.com" ]
dcramer@gmail.com
05a469cc480e500bf829d0d976976b2b96478216
2d4af29250dca8c72b74e190e74d92f1467120a0
/TaobaoSdk/Response/SimbaAdgroupOnlineitemsGetResponse.py
f660d7d21eb7fabf204fd071e5a8506e12f10f55
[]
no_license
maimiaolmc/TaobaoOpenPythonSDK
2c671be93c40cf487c0d7d644479ba7e1043004c
d349aa8ed6229ce6d76a09f279a0896a0f8075b3
refs/heads/master
2020-04-06T03:52:46.585927
2014-06-09T08:58:27
2014-06-09T08:58:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,175
py
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim: set ts=4 sts=4 sw=4 et: ## @brief 获取用户上架在线销售的全部宝贝 # @author wuliang@maimiaotech.com # @date 2013-03-07 19:54:48 # @version: 0.0.0 from datetime import datetime import os import sys import time _jsonEnode = None try: import demjson _jsonEnode = demjson.en...
[ "liyangmin@maimiaotech.com" ]
liyangmin@maimiaotech.com
7b0209b5129a33a20957245a3ed25f1bda5ed1ce
e6d556d97081576da6469cf1e8c1dd14565db2da
/code/tkinter/icons.py
32bdcc5c4a086dae60cb06cb946bb8bd9480cc34
[]
no_license
Scotth72/codePractice
0b7c795050d08a34dff2b99507b20094d233739a
475482fab0d69f93d936dc1ba8c2511174089b7c
refs/heads/master
2023-01-19T02:58:40.977634
2020-11-26T15:55:47
2020-11-26T15:55:47
313,863,106
0
0
null
2020-11-26T15:55:48
2020-11-18T08:00:39
Python
UTF-8
Python
false
false
234
py
from tkinter import * from PIL import ImageTk, Image root = Tk() root.title("Learn to use Icons") root.iconbitmap('../icons/mando.png') btn_quit = Button(root, text="Exit Program", command=root.quit) btn_quit.pack() root.mainloop()
[ "you@example.com" ]
you@example.com
96b9713d9cbdcfaf580b86638d5ce9c0f08f5285
56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e
/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/GluGluToHToTauTau_M-100_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_Jobs/Job_4/run_cfg.py
d8c7fb4def9e957dabac9d51c5ec12ae8fa44d92
[]
no_license
rmanzoni/HTT
18e6b583f04c0a6ca10142d9da3dd4c850cddabc
a03b227073b2d4d8a2abe95367c014694588bf98
refs/heads/master
2016-09-06T05:55:52.602604
2014-02-20T16:35:34
2014-02-20T16:35:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,507
py
import FWCore.ParameterSet.Config as cms import os,sys sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/25aug_corrMC/up/mc/GluGluToHToTauTau_M-100_8TeV-powheg-pythia6/Summer12_DR53X-PU_S10_START53_V7C-v1/AODSIM/PAT_CMG_V5_16_0_1377467448/HTT_24Jul_newTES_manzoni_Up_...
[ "riccardo.manzoni@cern.ch" ]
riccardo.manzoni@cern.ch
bc1e4713048fff7e4cc96fdf6e7e0c26fb0e0f23
ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3
/python/baiduads-sdk-auto/baiduads/dpacreativefeed/model/update_creative_feed_response_wrapper_body.py
b75f4e07354b58dd0fce557dbdad17c8b1b70fd0
[ "Apache-2.0" ]
permissive
baidu/baiduads-sdk
24c36b5cf3da9362ec5c8ecd417ff280421198ff
176363de5e8a4e98aaca039e4300703c3964c1c7
refs/heads/main
2023-06-08T15:40:24.787863
2023-05-20T03:40:51
2023-05-20T03:40:51
446,718,177
16
11
Apache-2.0
2023-06-02T05:19:40
2022-01-11T07:23:17
Python
UTF-8
Python
false
false
11,241
py
""" dev2 api schema 'dev2.baidu.com' api schema # noqa: E501 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from baiduads.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, ch...
[ "jiangyuan04@baidu.com" ]
jiangyuan04@baidu.com
1b2603db33a6d30fc510ef9b6fd941c16bf4721d
c4750ec6eeda0092e3a5515d4878cfe42e117e90
/test/test_inference/test_compiled.py
d863528604a3ebdc39f003c9c320c12eab01a952
[ "MIT" ]
permissive
phgn0/jedi
6e5e83778fe699d9735ab52a46ee94dec2a8be99
eb9af151ea0f447ab9d5d00d14e8fee542bc09d1
refs/heads/master
2020-09-02T23:38:36.442447
2019-11-10T14:03:49
2019-11-10T14:03:49
219,332,443
1
0
NOASSERTION
2019-11-03T16:42:27
2019-11-03T16:42:26
null
UTF-8
Python
false
false
5,139
py
from textwrap import dedent import math import sys from collections import Counter from datetime import datetime import pytest from jedi.inference import compiled from jedi.inference.compiled.access import DirectObjectAccess from jedi.inference.gradual.conversion import _stub_to_python_value_set def test_simple(inf...
[ "davidhalter88@gmail.com" ]
davidhalter88@gmail.com
6429ff3a5cdd451090741ad95d4eb7c834662443
7ae0f100b49763f79b276260bbc0e87bd904da3e
/src/wdf/management/commands/prepare_dump.py
e65ea353701bb3108f1a5dec39c80cfd359756f9
[]
no_license
wondersell/wildsearch-indexer
d88a5b3bce17acc1cb61d365f55ab5d9f63f61ae
67d5f29f6d405c055cfa211ddf0b70521382a671
refs/heads/master
2023-07-19T00:33:34.371231
2020-12-31T11:20:00
2020-12-31T11:20:00
285,488,583
2
0
null
2021-07-19T06:26:44
2020-08-06T06:09:51
Python
UTF-8
Python
false
false
1,339
py
import logging from django.core.management.base import BaseCommand from wdf.exceptions import DumpStateError from wdf.indexer import Indexer from wdf.tasks import prepare_dump class Command(BaseCommand): help = 'Prepares job for importing' # noqa: VNE003 def add_arguments(self, parser): parser.add_...
[ "artem.kiselev@gmail.com" ]
artem.kiselev@gmail.com
c4e8dbc6684184e78245deb69b8a5f098817f5d9
f6f632bee57875e76e1a2aa713fdbe9f25e18d66
/python/CrackingTheCodingInterview_6/01_08_zero-matrix-lcci.py
064080aa330c0cdb7f50aa9177f2c29ebc6ce08e
[]
no_license
Wang-Yann/LeetCodeMe
b50ee60beeeb3661869bb948bef4fbe21fc6d904
44765a7d89423b7ec2c159f70b1a6f6e446523c2
refs/heads/master
2023-08-07T05:31:23.428240
2021-09-30T15:33:53
2021-09-30T15:33:53
253,497,185
0
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : Rock Wayne # @Created : 2020-07-12 00:02:47 # @Last Modified : 2020-07-12 00:02:47 # @Mail : lostlorder@gmail.com # @Version : 1.0.0 """ # 编写一种算法,若M × N矩阵中某个元素为0,则将其所在的行与列清零。 # # # # 示例 1: # # 输入: # [ # [1,1,1], # [1,0,...
[ "wzy-511@163.com" ]
wzy-511@163.com
0c9f915ad0956041421ba3152c8f1d36b03896a0
b0a64cf2d36c7da2c81f920cab6f67e8a8e5b2d4
/models/VGG_mini_BN_PReLU.py
c0390f9195d03450ae354830944220579419c08a
[]
no_license
OminiaVincit/chainer-cifar10
69407a114e35b9100af56142092ee9e14577a423
449c55f205ea5fd59313598af0f27feb51b18da4
refs/heads/master
2021-01-19T06:31:02.379472
2015-07-15T20:29:14
2015-07-15T20:29:14
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,699
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from chainer import Variable, FunctionSet import chainer.functions as F class VGG_mini_BN_PReLU(FunctionSet): """ VGGnet for CIFAR-10 """ def __init__(self): super(VGG_mini_BN_PReLU, self).__init__( conv1_1=F.Convolution2D(3, 64, 3...
[ "shunta.saito@gmail.com" ]
shunta.saito@gmail.com
d1e8d70b961b1be945693a91169e369f2646ef5b
ac216a2cc36f91625e440247986ead2cd8cce350
/appengine/findit/pipelines/test/send_notification_for_culprit_pipeline_test.py
511524ebf3afcb0224df7cc05d4923d14340ae07
[ "BSD-3-Clause" ]
permissive
xinghun61/infra
b77cdc566d9a63c5d97f9e30e8d589982b1678ab
b5d4783f99461438ca9e6a477535617fadab6ba3
refs/heads/master
2023-01-12T21:36:49.360274
2019-10-01T18:09:22
2019-10-01T18:09:22
212,168,656
2
1
BSD-3-Clause
2023-01-07T10:18:03
2019-10-01T18:22:44
Python
UTF-8
Python
false
false
1,037
py
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import mock from common.waterfall import failure_type from pipelines.send_notification_for_culprit_pipeline import ( SendNotificationForCulpritPipeline)...
[ "commit-bot@chromium.org" ]
commit-bot@chromium.org
ed8c41ec34cf718b87ecb1eb8f5ac9e984af1550
00f3468d8917ac0c1b4df8b4dc50e82c0d9be3fa
/hhalign_with_hmms.py
d7ff5f7a284a3efec299ba27c0e89dd5efbc57e9
[]
no_license
berkeleyphylogenomics/BPG_utilities
4e332bb401b8c057502a1a0a1d532396bfff9542
bbf5df137a0a459598c3f9073d80f0086e5f7550
refs/heads/master
2021-01-01T19:21:13.740575
2014-11-05T18:40:31
2014-11-05T18:40:31
24,867,074
1
0
null
null
null
null
UTF-8
Python
false
false
12,914
py
#!/usr/bin/python """ run_hhalign_with_input_hmms.py Terry Farrah May 2008 Sjolander lab Align 2 HMMs using HHalign. Do not let HHalign generate HMMs; instead, provide HMMs. Optionally, use PSI-PRED to generate secondary structure and tell HHalign to use this info in its alignment. Warnings: Must run in same d...
[ "afrasiabi@berkeley.edu" ]
afrasiabi@berkeley.edu
ee28104231e39d74f9252de0420dfa501e38557a
6efacaed48c9c2015b20baae5b1e7812cf2614a0
/Po/test/Abackground_mouse_one.py
533335d6d971031ab7fe5f3398b20fcedabe8681
[]
no_license
Felixshao/play
53e12b7b592634a3e5515addde978e1b2a2a4591
4364cb91141bbbca835688d19bddb87aa0beb6b4
refs/heads/master
2021-05-23T19:49:56.095083
2020-04-07T06:09:10
2020-04-07T06:09:10
253,441,825
0
0
null
null
null
null
UTF-8
Python
false
false
1,318
py
import pygame, os from pygame.locals import * from sys import exit from config.GetProjectPath import get_project_path path = get_project_path() background_img_filepath = os.path.join(path, 'img', 'sushiplate.jpg') mouse_img_filepath = os.path.join(path, 'img', 'fugu.png') # 初始化pygame,未硬件做准备 pygame.init() # 新建窗口, 传入参...
[ "shaoyufei1234@163.com" ]
shaoyufei1234@163.com
b5ddb5c8af232999eb8ae226c25d305066c76157
fddc2ed5301b00f668bcb772518e0348db459538
/convokit/communityEmbedder.py
143d36c2f5b9fefe78dddccf919d797401191a38
[ "MIT" ]
permissive
deepthimhegde/Cornell-Conversational-Analysis-Toolkit
289fd22a81d9d06c7aeb5270c11acc4ec40424bf
eb9a103f8d5e34d378b0b6d6bda3fa43587363a1
refs/heads/master
2020-05-29T11:16:01.765154
2019-05-17T18:29:27
2019-05-17T18:29:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,889
py
import numpy as np from sklearn.decomposition import TruncatedSVD from sklearn.manifold import TSNE from collections import defaultdict from .transformer import Transformer class CommunityEmbedder(Transformer): """ Must be run after threadEmbedder.fit_transform() Groups threads together into communities...
[ "calebchiam@gmail.com" ]
calebchiam@gmail.com
765478bbc01b00211d961da6d0bd4bdab237f828
208baab269ddffab1a93e7dc70b052d07bf50560
/hood/migrations/0002_auto_20200120_1140.py
a6e6fe56c70f1ee382edb53a3eebe174b83a3671
[]
no_license
marysinaida/Neighborhood
a1035f09515ae9a24bed74ddf1263e06db134c94
a285df5528bb99d6cb69f9ab41e320682422fe9d
refs/heads/master
2020-12-13T23:29:18.148498
2020-01-21T15:04:53
2020-01-21T15:04:53
234,562,242
0
0
null
null
null
null
UTF-8
Python
false
false
3,691
py
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2020-01-20 08:40 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependenc...
[ "marydorcassinaida54@gmail.com" ]
marydorcassinaida54@gmail.com
d33535490a49ccc63731773d42cd5a17f661d234
a2948d87a8f1901c6faf922f7b8cfba825f84d9b
/resources.py
c5484e2f0cc861b20e66986f69bf1105fbfacb38
[]
no_license
sourcery-ai-bot/4x2d
03360fdcd5cfb135acbe0dfbdf571fb1e4d98a5a
68a5daf2410ae6ffe1220bb7ce85b95647097157
refs/heads/main
2023-03-11T10:38:01.353467
2021-02-28T06:57:06
2021-02-28T06:57:06
344,102,678
0
0
null
2021-03-03T11:25:28
2021-03-03T11:25:27
null
UTF-8
Python
false
false
412
py
import os import sys def resource_path(relative_path): # needed for bundling """ Get absolute path to resource, works for dev and for PyInstaller """ base_path = getattr(sys, '_MEIPASS', o...
[ "morganquirk@gmail.com" ]
morganquirk@gmail.com
48d6e9a8f1cd30cb302f9c81eb5ca4370302e805
c190538d85c00e03bf655af83629a5bddfd6d797
/src/dcos_e2e_cli/dcos_vagrant/commands/install_dcos.py
111fd161ceac49b9b4021c8e8b78de2ff50e1e44
[ "Apache-2.0" ]
permissive
yankcrime/dcos-e2e
e8d52aa10ecfba029c28b269354fea9fe0f85f7b
449ca9ebc98399efc00e424d9131d2634de0471c
refs/heads/master
2020-05-30T00:00:07.725954
2019-05-30T15:57:37
2019-05-30T15:57:37
189,449,013
0
0
Apache-2.0
2019-05-30T16:42:28
2019-05-30T16:42:28
null
UTF-8
Python
false
false
2,927
py
""" Install DC/OS on a provisioned Vagrant cluster. """ from pathlib import Path from typing import Any, Dict, Optional import click from dcos_e2e.backends import Vagrant from dcos_e2e_cli.common.arguments import installer_argument from dcos_e2e_cli.common.create import get_config from dcos_e2e_cli.common.doctor imp...
[ "adamdangoor@gmail.com" ]
adamdangoor@gmail.com
52425699c2b0f3f4f3701d850f4388930fbaf38d
62babb33b9bede95aac217db04636956279bb2e2
/sort/topological sort/1385E Directing Edges.py
269591b4f10d040c69bde6a7be642cc5a8b56613
[]
no_license
tycyd/codeforces
0322e31daf18544944c769fd2a50c6d006015e34
e0773f069c6c5793f9d9a07b61878a589e375a5f
refs/heads/master
2023-08-12T05:00:39.467404
2021-09-30T16:39:21
2021-09-30T16:39:21
266,847,425
0
0
null
null
null
null
UTF-8
Python
false
false
1,647
py
from sys import stdin, stdout if __name__ == '__main__': def directing_edges(n, m, ind, dic, seq): q = [] res = [] for i in range(n): if ind[i] == 0: q.append(i) #while len(q) > 0: while q: #cnt = len(q) #for i in range...
[ "tycyd@hotmail.com" ]
tycyd@hotmail.com
51488b6af889fd61bcc3bde0f432eebce76ef284
fb84e82ab80f2af43d3cdcf9a6c0351228d0f682
/validate.py
e93c4b1bb4adf2936a69d41ba81724c3c0b0e580
[]
no_license
doctorwk007/semseg
bf1ea79e8e5f9a0084de98e0bd588a2c46af30b0
39f7e642014a1e8e21a84d0ff1e0057469b5d8e4
refs/heads/master
2020-04-12T01:10:35.164155
2018-12-15T03:03:27
2018-12-15T03:03:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,095
py
# -*- coding: utf-8 -*- import torch import os import argparse import cv2 import time import numpy as np import visdom from torch.autograd import Variable from scipy import misc from semseg.dataloader.camvid_loader import camvidLoader from semseg.dataloader.cityscapes_loader import cityscapesLoader from semseg.datalo...
[ "guanfuchen@zju.edu.cn" ]
guanfuchen@zju.edu.cn
68ac0eeb5d55a38888952d35a6cd32b67c9bde23
d7b4e2e391e1f15fd7cb4fbf4d9aee598131b007
/AE_Datasets/R_A/datasets/CWRUCWT.py
66ff726731086772786eee97b0378a32b4c39b8e
[ "MIT" ]
permissive
wuyou33/DL-based-Intelligent-Diagnosis-Benchmark
eba2ce6f948b5abe68069e749f64501a32e1d7ca
e534f925cf454d07352f7ef82d75a8d6dac5355c
refs/heads/master
2021-01-02T15:06:29.041349
2019-12-28T21:47:21
2019-12-28T21:47:21
239,673,952
1
0
MIT
2020-02-11T04:15:21
2020-02-11T04:15:20
null
UTF-8
Python
false
false
5,887
py
import os import numpy as np import pandas as pd from scipy.io import loadmat from sklearn.model_selection import train_test_split from datasets.MatrixDatasets import dataset from datasets.matrix_aug import * from tqdm import tqdm import pickle import pywt signal_size=100 datasetname = ["12k Drive En...
[ "646032073@qq.com" ]
646032073@qq.com
669a113c17fd1fe1e8f0256f0d625bbbc78a9be4
46404c77e04907225475e9d8be6e0fd33227c0b1
/wildcard pattern matching.py
0ed16783c406fd5ec5eaf2858e1c35ca373e0e95
[]
no_license
govardhananprabhu/DS-task-
84b46e275406fde2d56c301fd1b425b256b29064
bf54f3d527f52f61fefc241f955072f5ed9a6558
refs/heads/master
2023-01-16T07:41:27.064836
2020-11-27T11:52:50
2020-11-27T11:52:50
272,928,074
0
0
null
null
null
null
UTF-8
Python
false
false
1,819
py
""" Given two strings 'str' and a wildcard pattern 'pattern' of length N and M respectively, You have to print '1' if the wildcard pattern is matched with str else print '0' . The wildcard pattern can include the characters ‘?’ and ‘*’ ‘?’ – matches any single character ‘*’ – Matches any sequence of characters (...
[ "noreply@github.com" ]
govardhananprabhu.noreply@github.com
2ea59d15a88cd4a3cfba74fb74162da032c006d3
d613fecbe4845ed4a0f1d667439640ed10c8922a
/app1/views/ajax.py
e9581d351b9923bc2a953751021d2bda01cc0396
[]
no_license
AnyiYim/DjangoTeacherManagerDemo
e18bdb312237e39da00f62006e9e7a98d817d08c
eecfaac3bd5badfb3ac1aed5b2e3f034e505e26e
refs/heads/master
2021-04-27T00:23:38.853148
2018-03-04T16:08:46
2018-03-04T16:08:46
123,805,205
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
from django.shortcuts import render, redirect, HttpResponse from app1 import models def ajax1(request): return render(request, 'ajax1.html') def ajax2(request): u = request.GET.get('username') p = request.GET.get('password') return HttpResponse('我愿意') def ajax4(request): nid=request.GET.get('n...
[ "759502117@qq.com" ]
759502117@qq.com
abeee0a41c8430a1ec73728748161b3758a74b77
3b662ff24ba24b09e4de7ceb2c2d3bd298591e88
/Python/libraries/recognizers-number-with-unit/recognizers_number_with_unit/number_with_unit/extractors.py
757cb5c9e949ff59c7d4e4ba56149821509b421a
[ "MIT" ]
permissive
gzhebrunov/Recognizers-Text
39d916e891a09b26032430184dc90394e197d195
157daf7ac85cc5b4e1e708aed8f96601fd28a612
refs/heads/master
2020-04-03T13:51:32.840384
2018-10-30T01:22:05
2018-10-30T01:22:05
155,301,539
0
0
MIT
2018-10-30T00:48:07
2018-10-30T00:48:06
null
UTF-8
Python
false
false
15,594
py
from abc import ABC, abstractmethod from typing import List, Dict, Set, Pattern, Match from copy import deepcopy from collections import namedtuple from itertools import chain import regex from .constants import * from recognizers_text.utilities import RegExpUtility from recognizers_text.extractor import Extractor, Ex...
[ "tellarin@gmail.com" ]
tellarin@gmail.com
3f84b9dcb1f883353278b6f06f472d8d32a06e47
1521332438d4e711b6fa4af825047a3466925511
/WorkshopWeek8/problem5.py
1925e67c31009097d9b36fdcb1b950cb256b497e
[]
no_license
JakeAttard/Python-2807ICT-NoteBook
df0907bdca9ff10f347498233260c97f41ea783b
9a38035d467e569b3fb97f5ab114753efc32cecc
refs/heads/master
2020-04-26T17:33:18.184447
2019-11-05T13:04:56
2019-11-05T13:04:56
173,717,675
3
1
null
null
null
null
UTF-8
Python
false
false
615
py
def function(list, diff): counter = 1 for a in list[::2]: for b in list[1::2]: if int(b) - int(a) == diff: counter += 1 elif int(b) - int(a) == -1 * diff: counter += 1 else: break return counter def testString(a): ...
[ "jakeattard18@gmail.com" ]
jakeattard18@gmail.com
a7f24ef184928de29cb7077c5a33eb6c01eae3b5
d8422247ecbe450c75df45dcf2c92fb4438b65af
/horizon/openstack_dashboard/dashboards/admin/instances/forms.py
9d2bf6d665256ffd420ae81e10ff16ed18c8cfd8
[ "Apache-2.0" ]
permissive
yianjiajia/openstack_horizon
deb9beca534b494b587ae401904c84ddbed64c4a
9e36a4c3648ef29d0df6912d990465f51d6124a6
refs/heads/master
2016-09-12T21:34:25.718377
2016-04-28T05:29:56
2016-04-28T05:29:56
57,273,157
0
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
# Copyright 2013 Kylin OS, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agre...
[ "yanjj@syscloud.cn" ]
yanjj@syscloud.cn
d893d6bda716d9a47904627e4d218b88be59669f
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/pytorch_pytorch/pytorch-master/test/test_sparse.py
11b51eaf3f1f94a07eaf3d721684547d9a17be77
[]
no_license
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
6,617
py
import torch from torch import sparse import itertools import random import unittest from common import TestCase, run_tests from numbers import Number SparseTensor = sparse.DoubleTensor class TestSparse(TestCase): @staticmethod def _gen_sparse(d, nnz, with_size): v = torch.randn(nnz) if isi...
[ "659338505@qq.com" ]
659338505@qq.com
d7ef8890a6ce56916383b518e78a04c723e683ff
0fccee4c738449f5e0a8f52ea5acabf51db0e910
/genfragments/EightTeV/BprimeBprime/BprimeBprimeToBHBZinc_M_950_TuneZ2star_8TeV-madgraph_cff.py
425c01667e5ad92ae0b9a16636c284b2b8579120
[]
no_license
cms-sw/genproductions
f308ffaf3586c19b29853db40e6d662e937940ff
dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4
refs/heads/master
2023-08-30T17:26:02.581596
2023-08-29T14:53:43
2023-08-29T14:53:43
11,424,867
69
987
null
2023-09-14T12:41:28
2013-07-15T14:18:33
Python
UTF-8
Python
false
false
6,054
py
import FWCore.ParameterSet.Config as cms #from Configuration.Generator.PythiaUEZ2Settings_cfi import * from Configuration.Generator.PythiaUEZ2starSettings_cfi import * generator = cms.EDFilter("Pythia6HadronizerFilter", pythiaHepMCVerbosity = cms.untracked.bool(False), maxEventsToPrint = cms.untracked.int32(0)...
[ "sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch" ]
sha1-5c9a4926c1ea08b633689ec734e2440da58b8c56@cern.ch
035f2485d9238b11a68df3adc4d304e7add9874d
2687412dd10032667e50e74d9d3f832133bc2536
/code/disasters/reload_landslide_data.py
9963d89459014edca49ca7efbc21837e02e92c30
[ "MIT" ]
permissive
wfp-ose/sparc2-pipeline
644e040c27517889c84598c34397c06f3d82ca96
fdd3bd29426d9231956f449cb5e78afd33446a8a
refs/heads/master
2021-01-17T18:07:58.641768
2016-12-02T12:40:54
2016-12-02T12:40:54
57,199,382
0
1
null
null
null
null
UTF-8
Python
false
false
1,144
py
from geodash.enumerations import MONTHS_SHORT3 from geodash.data import GeoDashDatabaseConnection print "Inserting Landslide Data..." print "..." print "" prob_classes = [ {'input': 'low', 'output_text': 'low', "output_int": 1}, {'input': 'medium', 'output_text': 'medium', "output_int": 2}, {'input': 'high', '...
[ "pjdufour.dev@gmail.com" ]
pjdufour.dev@gmail.com
19d2071c90dfbf39c31669b82ef26d4c0d376a89
4edd89e807ac9a70d4fb4a258015e6889b01ff27
/md5decoder.py
f0610781b1f9b91c3f091c3120739488857dd15c
[]
no_license
karimmakynch/PYTHON
ca68576fb3079fdd56559959edb3b4e1ba8ccf04
4842269368d49a3954c39ce4e8f2a0bc03b2e99c
refs/heads/main
2023-03-15T21:16:38.610893
2021-02-26T05:42:26
2021-02-26T05:42:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,191
py
# -*- coding: utf-8 -*- import hashlib import sys #variables count = 0 tour = 0 tourclone = 0 tourx = 0 creds = '' part = 1 inputfilelines = 0 try: try: inputfile = sys.argv[1] dicfile = sys.argv[2] outputfile = sys.argv[3] fout = open(outputfile,'w') fouttx = '[+] inputfile: '+str(inputfile)+' Dict...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
dfa52f8f4a5c08260ca6f9c4014300383b6ab5f7
dd9571236f35807e130bb987b4f1f5f0b2676efb
/users/admin_user_api.py
41fce13a4ea094ff16f8ec70ab22cde148d74c67
[]
no_license
sekhorroy/bysterdjango
58337e6ac1191ae945fcbd2ec1c47229e598a570
fd016bcc3414875cd874a3c69733722815a84e05
refs/heads/master
2022-12-13T12:49:04.802319
2020-09-06T06:28:50
2020-09-06T06:28:50
292,861,164
0
0
null
null
null
null
UTF-8
Python
false
false
2,411
py
from rest_framework.exceptions import ValidationError from rest_framework.generics import CreateAPIView, RetrieveUpdateDestroyAPIView, ListAPIView from rest_framework.permissions import AllowAny from rest_framework import status from rest_framework.response import Response from rest_framework_jwt.authentication import ...
[ "apple@Apples-MacBook-Pro.local" ]
apple@Apples-MacBook-Pro.local
b24bb4d5da2b1cc530f38ea45051ecb301423349
6fcfb638fa725b6d21083ec54e3609fc1b287d9e
/python/explosion_spaCy/spaCy-master/spacy/language.py
bebdeab20b61bc4446c9cf4acb5b82d330363308
[ "MIT" ]
permissive
LiuFang816/SALSTM_py_data
6db258e51858aeff14af38898fef715b46980ac1
d494b3041069d377d6a7a9c296a14334f2fa5acc
refs/heads/master
2022-12-25T06:39:52.222097
2019-12-12T08:49:07
2019-12-12T08:49:07
227,546,525
10
7
null
2022-12-19T02:53:01
2019-12-12T07:29:39
Python
UTF-8
Python
false
false
15,022
py
from __future__ import absolute_import from __future__ import unicode_literals from warnings import warn import pathlib from contextlib import contextmanager import shutil import ujson as json try: basestring except NameError: basestring = str from .tokenizer import Tokenizer from .vocab import Vocab from ...
[ "659338505@qq.com" ]
659338505@qq.com
1a7ee7ad25d703905a1b326105e18c566f03cf65
d7cd51a7aaa9bd5a7c39409a39d1be1944ecb9c4
/Assignments/Python_Stack/Django/Django_ORM/users_template/users_template/wsgi.py
5725974a941c17bdca19fd76e2fc66d918edd371
[]
no_license
Geneveroth/Coding_Dojo_Assignments
ae525e6d95e0f3fcf10b44a6734e8996b53ec7e1
9643845e237d5029de03dfe1ae2d43a49350ba22
refs/heads/master
2022-12-23T18:46:08.971696
2020-07-21T20:44:17
2020-07-21T20:44:17
251,153,510
0
0
null
2021-01-06T03:08:14
2020-03-29T23:10:09
Python
UTF-8
Python
false
false
405
py
""" WSGI config for users_template 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/3.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANG...
[ "black.samlh@gmail.com" ]
black.samlh@gmail.com
f5ba807cf4377fe11e6a9eac40676eed893527a6
fe1349a9bd25586f830f2a44618a4012ea20184a
/stanford_tf_research/01_plot_histogram_random.py
838a63c687196773d418188816a03661ad3095dc
[]
no_license
EmbraceLife/LIE
cdca29b8308f2cd7740743cea379a72d7bde51db
8c30b6aabc5842092c18dd97a0c20aa19f62000f
refs/heads/master
2022-12-04T05:56:37.393552
2017-08-16T04:54:55
2017-08-16T04:54:55
87,597,172
4
3
null
2022-11-26T15:26:45
2017-04-08T00:39:27
Python
UTF-8
Python
false
false
1,477
py
""" ========================================================= Demo of the histogram (hist) function with a few features ========================================================= In addition to the basic histogram, this demo shows a few optional features: * Setting the number of data bins * The ``normed`` flag...
[ "1227561934@qq.com" ]
1227561934@qq.com
a2afcdbb25e5d5358991ecaf4ea9ef99624a88ba
912021bc754e9b6f62efaf0d69e4179dda376d62
/splatify/spopulate.py
5d26f2fcf6d4c130bc7636eab1a4cff76fea7336
[]
no_license
micnem/splatify
5439cfb21ada1b194cea3f17661b9e02dd60d403
792e3be4bd9bcc2c34ace6dd0aea3acf512b8829
refs/heads/master
2023-07-22T02:39:34.123446
2023-02-18T21:55:37
2023-02-18T21:55:37
123,298,090
2
1
null
2023-07-15T00:54:42
2018-02-28T14:42:28
Python
UTF-8
Python
false
false
7,334
py
from django.shortcuts import render, redirect import spotipy from spotipy.oauth2 import SpotifyOAuth from requests import Request, post from .models import Artist, TopArtist, RelatedArtist, Profile from django.utils import timezone from datetime import timedelta import requests as r import json import base64 from spla...
[ "michael.nemni@gmail.com" ]
michael.nemni@gmail.com
04d6541daf0a5a782f444e495432b9f0bc9d80a1
fcaa0395a7c6aa74cbc47c40f35fdc312e44b9c5
/aok/comparisons/_basics.py
30b87c970c9d3869bf7cb89261e8ca2a4506b453
[]
no_license
rocketboosters/a-ok
b6f1a70d262123c2df5e4969a687cbcfdfbafc8c
06f31404a4ce34d561253ba74b533ce3fb73c60c
refs/heads/main
2023-09-02T19:18:18.158296
2021-11-03T01:54:36
2021-11-03T01:54:36
388,142,177
0
0
null
null
null
null
UTF-8
Python
false
false
7,951
py
import typing import yaml from aok import _definitions from aok import _operations class Equals(_definitions.Comparator): """Compares two values as an equality.""" def _compare( self, observed: typing.Any, subset: bool = False, ) -> typing.Union[_definitions.Comparison, bool]: ...
[ "swernst@gmail.com" ]
swernst@gmail.com
648e5ca36c4d9b01db5a8637ad045c23b07bf7f6
80aabbd44790ec4feee93624f61c29e87d691d6a
/drawBot/ui/drawView.py
24fac94c74d4a3c9c44d2a34358e011c780327b5
[ "BSD-3-Clause", "BSD-2-Clause" ]
permissive
asaumierdemers/drawbot
546961ead63f71859725a87f190f7ebbd45995f2
9ba1ef902bdd5c8e291d5d6835e09f05bfa00261
refs/heads/master
2020-12-25T19:59:00.391766
2016-08-05T10:04:57
2016-08-05T10:04:57
29,844,501
0
0
null
2015-01-26T04:12:30
2015-01-26T04:12:30
null
UTF-8
Python
false
false
2,955
py
from AppKit import * from Quartz import PDFView, PDFThumbnailView, PDFDocument from vanilla import Group epsPasteBoardType = "CorePasteboardFlavorType 0x41494342" class DrawBotPDFThumbnailView(PDFThumbnailView): def draggingUpdated_(self, draggingInfo): return NSDragOperationNone class ThumbnailView(...
[ "frederik@typemytype.com" ]
frederik@typemytype.com
cd25ad9f9b621517a8f79e725e360604777f67c1
a34d9458832a033bb05b1cec9f13c9f997c6e8d0
/eola/two_d_space.py
8b4cfdaa771b30e15433839b87f4c8762caa38f3
[]
no_license
scottopell/manim
9de0ca8fd1f4a203e557dc5503b38591e0ef66bc
a3fa16ebcbc9b3eb462c0a3434840c954a92e0d1
refs/heads/master
2021-01-14T12:44:51.483245
2016-09-03T19:29:17
2016-09-03T19:29:17
59,712,661
0
0
null
2016-05-26T02:18:09
2016-05-26T02:18:09
null
UTF-8
Python
false
false
15,698
py
import numpy as np from scene import Scene from mobject import Mobject from mobject.vectorized_mobject import VMobject, Group from mobject.tex_mobject import TexMobject, TextMobject from animation import Animation from animation.transform import ApplyPointwiseFunction, Transform, \ ApplyMethod, FadeOut, ApplyF...
[ "grantsanderson7@gmail.com" ]
grantsanderson7@gmail.com
a98ee3453af8e367bb94991bb6722e190e0aab83
604c7b40f58830c16c51b4514765a6c1915769c4
/bnop_source/b_code/core/object_model/bnop_repositories.py
e07a5d0d940ed0673114233db8b6b95c9beac9aa
[ "MIT" ]
permissive
boro-alpha/bnop
2e3a0654ddf73dce357928d399853c8d0fc936e7
ae80ce88f12f3b9d509f416aea4f19dc20f1081b
refs/heads/master
2023-06-11T17:34:42.743589
2021-06-30T07:24:51
2021-06-30T07:24:51
381,096,614
0
0
null
null
null
null
UTF-8
Python
false
false
127
py
class BnopRepositories(object): def __init__( self, uuid): self.uuid = \ uuid
[ "xibertao@borogroup.co.uk" ]
xibertao@borogroup.co.uk
4ed7b0073e5f3f21e7883ee46de2d41af70f1429
b00840e56173dc2a196442bd354b9e3cc13b17df
/code_util/createJobScript.py
c360a93fc09e90dace29b76e6b66c43797d94224
[]
no_license
Sportsfan77777/vortex
56c28fb760f6c98de4a7c8fdcf1168d78b4e57af
780ec14937d1b79e91a367d58f75adc905b8eef2
refs/heads/master
2023-08-31T02:50:09.454230
2023-08-24T10:55:05
2023-08-24T10:55:05
41,785,163
1
1
null
null
null
null
UTF-8
Python
false
false
3,804
py
""" makes a new job script """ import argparse def new_argument_parser(description = "Make a new job script."): parser = argparse.ArgumentParser() # File parser.add_argument("fn", help = 'job file name (.sh appended to the end) that must be included, error otherwise') # Ba...
[ "mhammer44444@gmail.com" ]
mhammer44444@gmail.com
fe0881db35f3f5d538b836ae7ffdbb95c3e3210e
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/308/84669/submittedfiles/testes.py
9138abd6a192264d1bfcda194bb1960c01f572ad
[]
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
119
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO def mostrar(): print(a+b) print('Resultado') a = 3 b = 4 mostrar()
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
d3be12214002bf0e8ed2b4e329795a1e62b70612
b2f755bdb8c5a73cf28679b14de1a7100cd48b35
/Interview/4/31.py
398dfb0ecf5c8643733ea6c6524bdb8f8ed60db3
[]
no_license
Futureword123456/Interview
cc50e1a3e4e85e4ac570469fc8a839029cdc6c50
5cb36dc5f2459abd889e1b29f469d5149139dc5f
refs/heads/master
2023-03-25T15:24:23.939871
2021-03-13T08:15:54
2021-03-13T08:15:54
345,374,608
0
0
null
null
null
null
UTF-8
Python
false
false
513
py
# -*- coding: utf-8 -*- # @Time : 2021/3/8 0008 # @Author : yang # @Email : 2635681517@qq.com # @File : 31.py """Python 获取昨天日期""" import datetime def getyesterday(): days = datetime.date.today() """ datetime.timedelta对象代表两个时间之间的时间差 两个date或datetime对象相减就可以返回一个timedelta对象。 """ day = datetime.time...
[ "2635681517@qq.com" ]
2635681517@qq.com
4238d3e59229db3f82e82deeaea7ce90768f81e6
036a41c913b3a4e7ae265e22a672dd89302d3200
/未完成题目/LCP/LCP25/LCP25_Python_1.py
dafd8c2c8eabcccd19a5f5df0444b87409140e43
[]
no_license
ChangxingJiang/LeetCode
e76f96ebda68d7ade53575354479cfc33ad4f627
a2209206cdd7229dd33e416f611e71a984a8dd9e
refs/heads/master
2023-04-13T15:23:35.174390
2021-04-24T05:54:14
2021-04-24T05:54:14
272,088,506
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
class Solution: def keyboard(self, k: int, n: int) -> int: pass if __name__ == "__main__": print(Solution().keyboard(1, 1)) # 26 print(Solution().keyboard(1, 2)) # 650
[ "1278729001@qq.com" ]
1278729001@qq.com
aac36e5e97effc021d51bddce00836cf86108ad9
e1fe1ed4f2ba8ab0146ce7c08d65bc7947150fc8
/credit11315/pipelines.py
6e80a0ff0684dd2011f6c21e58ced8a6f581ef7f
[]
no_license
yidun55/credit11315
0d88ceef314efa444de58eb5da8939c1acff3abe
b048ec9db036a382287d5faacb9490ccbf50735c
refs/heads/master
2021-01-20T01:03:30.617914
2015-07-31T09:58:24
2015-07-31T09:58:24
38,853,611
0
1
null
null
null
null
UTF-8
Python
false
false
1,092
py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from scrapy import log import os os.chdir("/home/dyh/data/credit11315/infoDetail") class Credit11315Pipeline(object): def p...
[ "heshang1203@sina.com" ]
heshang1203@sina.com
7f7be7515b49d2339d45739a3d6096151dc8de80
9381c0a73251768441dc45c7e181548742b9bdbc
/src/educative/fibonacci_numbers/house_thief_memo.py
dfe266791fa02380306c6208bd07804a7c2fbd97
[]
no_license
Flaeros/leetcode
45cc510ec513bfb26dbb762aa1bd98f3b42dce18
1dcea81a21bd39fee3e3f245a1418526bd0a5e8f
refs/heads/master
2022-06-02T14:15:31.539238
2022-04-18T14:44:18
2022-04-18T14:49:05
250,183,918
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
def find_max_steal(wealth): memo = [-1 for _ in range(len(wealth))] return find_max_steal_rec(wealth, memo, 0) def find_max_steal_rec(wealth, memo, index): if index >= len(wealth): return 0 if memo[index] == -1: inclusive = wealth[index] + find_max_steal_rec(wealth, memo, index + 2) ...
[ "flaeross@yandex-team.ru" ]
flaeross@yandex-team.ru
75ff04700bbef3333f0e5b04408e5c6d166a6e34
2caa47f0bdb2f03469a847c3ba39496de315d992
/Contest/ABC117/b/main.py
d60a1bb7a504f56ae3ca6140c9cb43c9ca6653d3
[ "CC0-1.0" ]
permissive
mpses/AtCoder
9023e44885dc67c4131762281193c24b69d3b6da
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
refs/heads/master
2023-03-23T17:00:11.646508
2021-03-20T12:21:19
2021-03-20T12:21:19
287,489,233
0
0
null
null
null
null
UTF-8
Python
false
false
113
py
#!/usr/bin/env python3 _ = input() *l, m = sorted(map(int, input().split())) print("Yes" if sum(l) > m else "No")
[ "nsorangepv@gmail.com" ]
nsorangepv@gmail.com
9ad86092e385a8f8238bb7bb27ac3740c79a39f7
1ecb282756c95d9ae19035761c6e4bb480fdaf26
/python/lsst/ctrl/stats/records/generic.py
a07b96fbfc651a578c7b2e48c3f7924b5d26cf16
[]
no_license
provingground-moe/ctrl_stats
58cba09f95a30007fc5df10d6d8992719b0f5368
14790770765b3a167d0d9f318b40e12bbb5df0bb
refs/heads/master
2020-06-10T20:42:34.260304
2017-08-24T21:26:34
2017-08-24T21:26:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,298
py
# # LSST Data Management System # Copyright 2008-2012 LSST Corporation. # # This product includes software developed by the # LSST Project (http://www.lsst.org/). # # 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 So...
[ "srp@ncsa.illinois.edu" ]
srp@ncsa.illinois.edu
bec987b46ec463a48ccfb01582519267edeb81fd
8cb210f5a7b9a46dcdd1c4f4cdebb9b006e16d2f
/scripts/gridengine/paramsearch/runScript.py
8f25665b32d3f6f045302200aca7832f8ad4e096
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
drwiner/Py3Dial
0ed4572c3d110907a27a8a8f3167299db0de1919
0aa5b68f4548bb15e9d167165c17306fd267ee4f
refs/heads/master
2020-03-26T19:13:53.511897
2018-08-18T21:45:32
2018-08-18T21:45:32
145,254,529
3
1
null
null
null
null
UTF-8
Python
false
false
23,102
py
import os import sys import argparse """ DETAILS: # THIS FILE EXPLORES GP/REGR/FF/LSTM MODELS -- Try varying AT LEAST the following network parameters: a) network structures: n_hideen, L1, L2, acitivation b) learning rate, decay, and regularisation """ ############################...
[ "drwiner131@gmail.com" ]
drwiner131@gmail.com
0ad73be05ea4a42a3b2118023282236427d3145d
6a95112805b64322953429270a305d01fef3faea
/dist/weewx-4.3.0/examples/stats.py
86a1e5c5b193afe5fb375e4eef30098d3dbc84b2
[ "GPL-1.0-or-later", "GPL-3.0-only", "Apache-2.0" ]
permissive
tomdotorg/docker-weewx
c6d59dc492a9e53f3bc898f7b9f593717092d72c
7085654f455d39b06acc688738fde27e1f78ad1e
refs/heads/main
2023-06-08T17:57:44.184399
2023-01-30T11:21:23
2023-01-30T11:21:23
54,113,384
21
16
Apache-2.0
2022-10-19T23:46:26
2016-03-17T11:39:29
Dockerfile
UTF-8
Python
false
false
4,052
py
# Copyright (c) 2009-2015 Tom Keffer <tkeffer@gmail.com> # See the file LICENSE.txt for your rights. """Example of how to extend the search list used by the Cheetah generator. ******************************************************************************* This search list extension offers two extra tags: ...
[ "tom@tom.org" ]
tom@tom.org
f51558bfe5192cb59b9736a74ce3591e50b861b9
d8b201ba6bf57db0101d88836429bbcb3a10b857
/Math/TriangleQuest.py
c1a6cd2a1b0e05a20a09b0582cb16f0e25c80188
[ "MIT" ]
permissive
MaxCodeXTC/PythonHackerRankSolutions
32ad41df3fbd33f8651cdc5099c8ec3d37d9bc17
987618b61b71fe5e9a40275fb348476657bbea57
refs/heads/master
2022-06-28T06:00:19.126751
2020-05-07T09:23:37
2020-05-07T09:23:37
262,471,271
1
0
null
2020-05-09T02:24:11
2020-05-09T02:24:10
null
UTF-8
Python
false
false
127
py
''' Title : Triangle Quest Subdomain : Math Domain : Python Author : codeperfectplus Created : 17 January 2020 '''
[ "54245038+perfect104@users.noreply.github.com" ]
54245038+perfect104@users.noreply.github.com
8dd6db002b7cfee421083e2f1a14012671d69f19
3941f6b431ccb00ab75f19c52e40e5dad2e98b9b
/Dasymetric/dasym_tables.py
41bc20d47b5ee4b9da2c2f6b66632d0c1d6ba20e
[ "Apache-2.0" ]
permissive
scw/global-threats-model
70c375c1633e8578f1e41f278b443f1501ceb0ec
11caa662373c5dbfbb08bb0947f3dd5eedc0b4e0
refs/heads/master
2016-09-05T11:25:13.056352
2013-08-22T22:10:13
2013-08-22T22:10:13
3,566,652
2
1
null
null
null
null
UTF-8
Python
false
false
7,033
py
# --------------------------------------------------------------------------- # dasym_tables.py # Created on: Wed Jan 11 2006 # Written by: Matthew Perry # Usage: See the "script arguments" section # --------------------------------------------------------------------------- #==================================...
[ "perrygeo@gmail.com" ]
perrygeo@gmail.com
4e59b315ea0eefd8f148888dc07903bba562e531
59182ffe28c054d9f33ee9b8885a52fd5944440c
/twilio/rest/wireless/v1/usage_record.py
91867ba874f25cc0138ed624ec37517e3a4b31c9
[ "MIT" ]
permissive
NCPlayz/twilio-python
652b508e086ee7e6658015e74f3bd19572012502
08898a4a1a43b636a64c9e98fbb0b6ee1792c687
refs/heads/master
2020-08-12T22:24:06.816467
2019-10-09T19:25:08
2019-10-09T19:25:08
214,854,286
0
0
MIT
2019-10-13T16:29:39
2019-10-13T16:29:39
null
UTF-8
Python
false
false
9,237
py
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base import serialize from twilio.base import values from twilio.base.instance_resource import InstanceResource from twilio.base.list_resource import ListResource from twilio.base.page im...
[ "twilio-ci@twilio.com" ]
twilio-ci@twilio.com
5aae57fc607a70052c54ad09b04cbd25840d0f28
9fc6604ae98e1ae91c490e8201364fdee1b4222a
/eg_msg_base/models/msg_status.py
4501bdc8b00a217bae754eaa0a5b5c32b395123c
[]
no_license
nabiforks/baytonia
b65e6a7e1c7f52a7243e82f5fbcc62ae4cbe93c4
58cb304d105bb7332f0a6ab685015f070988ba56
refs/heads/main
2023-03-23T21:02:57.862331
2021-01-04T03:40:58
2021-01-04T03:40:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
312
py
from odoo import models, fields class MsgStatus(models.Model): _name = "msg.status" name = fields.Char(string="Status", readonly=True) is_last_status = fields.Boolean(string="Is Last Status") sms_instance_id = fields.Many2one(comodel_name="sms.instance", string="Sms Instance", readonly=True)
[ "ash@odoxsofthub.com" ]
ash@odoxsofthub.com
afe69ae31a6285f10b876f9f4c269a0bde8cf181
0049d7959ff872e2ddf6ea3ce83b6c26512425a6
/advtempproject/advtempproject/wsgi.py
0eb3d019ab04a1ac8d64047a343bd0a726103e5c
[]
no_license
srazor09/Django_projects
9806ab25d966af780cdabe652a1792220c7806a8
8d664ba4c9478bd93c8e5bcbcaf594e8ffe6ce93
refs/heads/master
2023-04-18T02:13:15.993393
2021-05-04T20:34:05
2021-05-04T20:34:05
364,379,605
0
0
null
null
null
null
UTF-8
Python
false
false
405
py
""" WSGI config for advtempproject 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANG...
[ "sourabhaws09@gmail.com" ]
sourabhaws09@gmail.com
3707942092f8a2717e1e159fd36fc8769e28c5ee
5d22d9b2cb5cad7970c1055aeef55d2e2a5acb8e
/py/topcoder/TCCC 2003 Semifinals 2/TicSolver.py
a7805ff035c64217729de5ff4c0bd9d4ebc789e0
[ "MIT" ]
permissive
shhuan/algorithms
36d70f1ab23dab881bf1a15573fbca7b2a3f4235
2830c7e2ada8dfd3dcdda7c06846116d4f944a27
refs/heads/master
2021-05-07T14:21:15.362588
2017-11-07T08:20:16
2017-11-07T08:20:16
109,799,698
0
1
null
null
null
null
UTF-8
Python
false
false
2,968
py
# -*- coding: utf-8 -*- import math,string,itertools,fractions,heapq,collections,re,array,bisect class TicSolver: def whoWins(self, board): return "" # CUT begin # TEST CODE FOR PYTHON {{{ import sys, time, math def tc_equal(expected, received): try: _t = type(expected) received = _t(...
[ "shuangquanhuang@gmail.com" ]
shuangquanhuang@gmail.com
f095c17c392697ec5fb7da951dd4309508663a2f
c3d0a0b6336a3ff73724fe1615eb1809dbdaaed8
/Hacker Rank/Day3_04_02_20.py
c7cd53f8193dae0cfdc503af27bf0d8b26745ef5
[]
no_license
Silentsoul04/FTSP_2020
db0dae6cd9c371f3daa9219f86520dfa66348236
7e603af918da2bcfe4949a4cf5a33107c837894f
refs/heads/master
2022-12-21T20:44:32.031640
2020-09-20T12:29:58
2020-09-20T12:29:58
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,184
py
# -*- coding: utf-8 -*- """ Created on Tue Feb 4 22:00:31 2020 @author: Rajesh """ def swap_case(s): return s.swapcase() if __name__ == '__main__': s = input() result = swap_case(s) print(result) ######################### a = "this is a string" b = a.split(" ") # a is converted...
[ "sharma90126@gmail.com" ]
sharma90126@gmail.com
175b341a56c39c15bc473eabefdea8436aba734f
09d79c3509252cfccac35bb28de9a0379094823a
/alx/movies/migrations/0002_auto_20201123_1045.py
1ac4f1ab4103dc7788ff628ea113fe1d93025510
[]
no_license
marianwitkowski/python2311
73ad491016cd6d0010d0203db43aca2c6debe0ad
9bbeca3fb6d8658a1321ab099ff2102cd7de76e0
refs/heads/master
2023-01-22T13:13:56.695680
2020-12-02T14:58:15
2020-12-02T14:58:15
315,350,865
0
1
null
null
null
null
UTF-8
Python
false
false
366
py
# Generated by Django 3.1.3 on 2020-11-23 09:45 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('movies', '0001_initial'), ] operations = [ migrations.AlterModelOptions( name='movie', options={'verbose_name': 'Film', 'ver...
[ "marian.witkowski@gmail.com" ]
marian.witkowski@gmail.com
9252178bd560c85b23332610a4299b0ec0f71f57
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/q4bBcq5NET4CH5Rcb_16.py
5f42fed2a73573979ea8acc56462e2f23301b0ed
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
def jay_and_bob(txt): a={"half":"14 grams","quarter":"7 grams","eighth":"3.5 grams","sixteenth":"1.75 grams"} return a[txt]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
8c5fb8bc6094cee02d62818ed1fdba969117d0ea
57235e5fbd29dc5e0b3f24649e15a48935edd65f
/boa3_test/test_sc/built_in_methods_test/IsInstanceListLiteral.py
11e0d91468bec39a5306a5e643f06dec8b69c858
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
DanPopa46/neo3-boa
ae75543bdc4e0aeadf45578b6b5e4c45b9253557
e4ef340744b5bd25ade26f847eac50789b97f3e9
refs/heads/development
2023-04-01T19:25:08.216180
2021-04-15T17:45:38
2021-04-15T17:45:38
358,663,228
0
0
Apache-2.0
2021-04-16T16:46:46
2021-04-16T16:46:31
null
UTF-8
Python
false
false
94
py
from boa3.builtin import public @public def Main() -> bool: return isinstance([], list)
[ "mirellamedeiros.09@hotmail.com" ]
mirellamedeiros.09@hotmail.com
f0f7d898a452de3ce1b9a7940f8dcd61c38c6500
18f8abb90efece37949f5b5758c7752b1602fb12
/py/django_tools/django-haystack/tests/simple_tests/tests/simple_backend.py
d9b5120d942eb0f05a4fcbd1769c58de0da181cd
[ "BSD-3-Clause", "MIT" ]
permissive
marceltoben/evandrix.github.com
caa7d4c2ef84ba8c5a9a6ace2126e8fd6db1a516
abc3fbfb34f791f84e9a9d4dc522966421778ab2
refs/heads/master
2021-08-02T06:18:12.953567
2011-08-23T16:49:33
2011-08-23T16:49:33
2,267,457
3
5
null
2021-07-28T11:39:25
2011-08-25T11:18:56
C
UTF-8
Python
false
false
5,799
py
from datetime import date from django.conf import settings from django.test import TestCase from haystack import connections, connection_router from haystack import indexes from haystack.query import SearchQuerySet from haystack.utils.loading import UnifiedIndex from core.models import MockModel from core.tests.mocks i...
[ "evandrix@gmail.com" ]
evandrix@gmail.com
1031decef22a5f8e9fa6d0446887620f1a17bbd6
cb95b3a2714f003e76c5e1db1d3e4726f87f14d8
/pstests/launch_schevers.py
50881808378a6bad2b948300e21df85af51ae09c
[ "Apache-2.0" ]
permissive
DMALab/Het
5aaa9fda1b8c77c0db24a477fe1eccd9665a9fe0
81b7e9f0f593108db969fc46a1af3df74b825230
refs/heads/main
2023-03-30T13:22:03.085283
2021-04-04T05:31:43
2021-04-04T05:31:43
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,845
py
from athena import gpu_ops as ad import os import sys import yaml import multiprocessing import signal def main(): def start_scheduler(settings): for key, value in settings.items(): os.environ[key] = str(value) assert os.environ['DMLC_ROLE'] == "scheduler" print('Scheduler sta...
[ "swordonline@foxmail.com" ]
swordonline@foxmail.com
dcff318e512f694dc31b8f2936e54ae11ce40712
638fdc6e95bee246cd8784a3a442bda584295d77
/prj/main/management/commands/import_step.py
79b97b35a8bf7a0f1d0f2e01c90b812ded017f8c
[]
no_license
zdimon/loyer
ac00faf94c4277eb77d6cdc51e8bf99ef2f7ecb2
6df6bc76599bc0fab9ef2bdb600cc3b92daf38c1
refs/heads/master
2020-03-27T16:03:36.358793
2019-04-18T10:05:18
2019-04-18T10:05:18
146,757,036
0
0
null
null
null
null
UTF-8
Python
false
false
8,631
py
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand, CommandError import json from prj.settings import BASE_DIR import os from main.models import * import requests from bs4 import BeautifulSoup import os.path import time import json from main.tools import headers from main.tools import getSessio...
[ "zdimon@example.com" ]
zdimon@example.com
e538aa28b1bd9e8f0574539f2c5075b7eea00ec2
ba962c2441572ba45ff97a97bb713eb8a603a269
/lunchmap/models.py
2c9b100ab61729344379c83188a3554f131dd623
[]
no_license
melonpan777/my-first-blog
8158104ba2b3c97a8e6350ac57aac77edf85be26
9ff5eee69523d8fbbbd004e566090ea715b043d5
refs/heads/master
2020-06-04T13:58:16.704685
2019-06-15T11:14:00
2019-06-15T11:14:00
192,051,830
0
0
null
null
null
null
UTF-8
Python
false
false
1,004
py
from django.db import models from django.urls import reverse class Category(models.Model): name = models.CharField(max_length=255) author = models.ForeignKey( 'auth.User', on_delete=models.CASCADE, ) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeFi...
[ "you@example.com" ]
you@example.com
f6b131bbddadded5e915501ce5a719b1e74ce352
45e376ae66b78b17788b1d3575b334b2cb1d0b1c
/checkov/cloudformation/checks/resource/aws/APIGatewayXray.py
79b7ec85c6b5ac40b0aaa6c2c422267e4a656db6
[ "Apache-2.0" ]
permissive
bridgecrewio/checkov
aeb8febed2ed90e61d5755f8f9d80b125362644d
e64cbd27ffb6f09c2c9f081b45b7a821a3aa1a4d
refs/heads/main
2023-08-31T06:57:21.990147
2023-08-30T23:01:47
2023-08-30T23:01:47
224,386,599
5,929
1,056
Apache-2.0
2023-09-14T20:10:23
2019-11-27T08:55:14
Python
UTF-8
Python
false
false
710
py
from checkov.cloudformation.checks.resource.base_resource_value_check import BaseResourceValueCheck from checkov.common.models.enums import CheckCategories class APIGatewayXray(BaseResourceValueCheck): def __init__(self): name = "Ensure API Gateway has X-Ray Tracing enabled" id = "CKV_AWS_73" ...
[ "noreply@github.com" ]
bridgecrewio.noreply@github.com
a809cf5f7c25bbfabfc4c575d1a07b237ec8bc9c
018d3ade7ce3c9797ec53e5b29e93c343cbd41e3
/test/test_dynamic_shapes.py
0d421b04008d224758407fdd0b571cdfd72af613
[ "BSD-3-Clause", "BSD-2-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0" ]
permissive
aiot-tech/pytorch
016574055a306f58a46308e4971cf180ffc92e4d
46730aec35ee047b92b288e0366da0f7e993e5ae
refs/heads/master
2022-11-18T14:01:22.576441
2022-11-04T23:11:17
2022-11-05T05:42:07
102,860,737
0
0
null
null
null
null
UTF-8
Python
false
false
20,297
py
# -*- coding: utf-8 -*- # Owner(s): ["oncall: jit"] from torch._C import _disabled_torch_function_impl import torch.fx import torch.nn.functional as F from torch.testing._internal.common_utils import run_tests, TestCase, skipIfTorchDynamo, \ IS_WINDOWS, parametrize, instantiate_parametrized_tests import unittest i...
[ "pytorchmergebot@users.noreply.github.com" ]
pytorchmergebot@users.noreply.github.com
fd9e1af03b971a1db1d6893bbd1eb4399fbcb3d6
b6c09a1b87074d6e58884211ce24df8ec354da5c
/1720. 解码异或后的数组.py
62dc31fa20f8ded1e4528d692e236b11be60047e
[]
no_license
fengxiaolong886/leetcode
a0ee12d67c4a10fb12d6ca4369762ab5b090cab1
4c0897bc06a297fa9225a0c46d8ec9217d876db8
refs/heads/master
2023-03-18T22:16:29.212016
2021-03-07T03:48:16
2021-03-07T03:48:16
339,604,263
1
0
null
null
null
null
UTF-8
Python
false
false
896
py
""" 未知 整数数组 arr 由 n 个非负整数组成。 经编码后变为长度为 n - 1 的另一个整数数组 encoded ,其中 encoded[i] = arr[i] XOR arr[i + 1] 。例如,arr = [1,0,2,1] 经编码后得到 encoded = [1,2,3] 。 给你编码后的数组 encoded 和原数组 arr 的第一个元素 first(arr[0])。 请解码返回原数组 arr 。可以证明答案存在并且是唯一的。   示例 1: 输入:encoded = [1,2,3], first = 1 输出:[1,0,2,1] 解释:若 arr = [1,0,2,1] ,那么 first = 1 ...
[ "xlfeng886@163.com" ]
xlfeng886@163.com
345bcde7408a2d774ec98727350693d566242b99
006ff11fd8cfd5406c6f4318f1bafa1542095f2a
/Geometry/CMSCommonData/python/cmsExtendedGeometry2015XML_RPC2Gap_cfi.py
400cbd05035b4ff5689fd24ee8fd31feea7fbe54
[]
permissive
amkalsi/cmssw
8ac5f481c7d7263741b5015381473811c59ac3b1
ad0f69098dfbe449ca0570fbcf6fcebd6acc1154
refs/heads/CMSSW_7_4_X
2021-01-19T16:18:22.857382
2016-08-09T16:40:50
2016-08-09T16:40:50
262,608,661
0
0
Apache-2.0
2020-05-09T16:10:07
2020-05-09T16:10:07
null
UTF-8
Python
false
false
15,587
py
import FWCore.ParameterSet.Config as cms ## Everything that is currently in the PostLS1 geometry (rpc,csc,beampipe) XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource", geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/materials.xml', 'Geometry/CMSCommonData/data/rotations.xml', ...
[ "giulio.eulisse@cern.ch" ]
giulio.eulisse@cern.ch
47c3d8019181b00a4cc6f1e528455517694034d1
1662507ec7104531e4e54209fc32bfdf397b60cd
/backend/wallet/models.py
c0d4a9fbfaf096d0cda2c061ebe3a3c6041ebd63
[]
no_license
crowdbotics-apps/home-trend-24478
4b2397fbefc9469e2d8f00240dff0b3fc3eaa368
850309d0bb282cf824f8b8d42ef8c6ab3c43bc1c
refs/heads/master
2023-03-07T18:34:15.590576
2021-02-20T00:34:25
2021-02-20T00:34:25
338,431,886
0
0
null
null
null
null
UTF-8
Python
false
false
2,762
py
from django.conf import settings from django.db import models class PaymentMethod(models.Model): "Generated Model" wallet = models.ForeignKey( "wallet.CustomerWallet", on_delete=models.CASCADE, related_name="paymentmethod_wallet", ) account_token = models.CharField( max...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
bd40e87cf094c91dcb5d4c15d6fec0e2daf3068f
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/python/spaCy/2016/4/test_flag_features.py
880704e28905500ee8aa5b21c6e60fc6e73fdc58
[ "MIT" ]
permissive
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
Python
false
false
1,333
py
from __future__ import unicode_literals import pytest from spacy.orth import is_alpha from spacy.orth import is_digit from spacy.orth import is_punct from spacy.orth import is_space from spacy.orth import is_ascii from spacy.orth import is_upper from spacy.orth import is_lower from spacy.orth import is_title @pytest...
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
24875a336f66ccd4c114ada3a3e42c2d603c2639
e81d274d6a1bcabbe7771612edd43b42c0d48197
/数据库/03_Redis/day48(主从服务器)/demo/02_python操作redis/01.py
9cef9a735360a75455cde6d390c9cebd36992a94
[ "MIT" ]
permissive
ChWeiking/PythonTutorial
1259dc04c843382f2323d69f6678b9431d0b56fd
1aa4b81cf26fba2fa2570dd8e1228fef4fd6ee61
refs/heads/master
2020-05-15T00:50:10.583105
2016-07-30T16:03:45
2016-07-30T16:03:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
917
py
#推荐网站 #http://python.jobbole.com/87305/ import redis #获取连接对象 当我们用Redis和StrictRedis创建连接时,其实内部实现并没有主动给我创建一个连接,我们获得的连接是连接池提供的连接,这个连接由连接池管理,所以我们无需关注连接是否需要主动释放关闭的问题。另外连接池有自己的关闭连接的接口,一旦调用该接口,所有连接都将被关闭,连接池的操作不需要程序员管理,系统redis模块自动管理好了。 conn = redis.StrictRedis('127.0.0.1',6379,password=123456) #如果是多个增删改,使用管道对象,默认先存在管道中,当e...
[ "1025212779@qq.com" ]
1025212779@qq.com
794e2904caebb85aa81ccb41eaed66721843747f
09301c71638abf45230192e62503f79a52e0bd80
/besco_erp/besco_warehouse/general_stock_fifo/__openerp__.py
7aa0010772448e6c5236add7f97c1eec77d47520
[]
no_license
westlyou/NEDCOFFEE
24ef8c46f74a129059622f126401366497ba72a6
4079ab7312428c0eb12015e543605eac0bd3976f
refs/heads/master
2020-05-27T06:01:15.188827
2017-11-14T15:35:22
2017-11-14T15:35:22
null
0
0
null
null
null
null
UTF-8
Python
false
false
841
py
# -*- coding: utf-8 -*- ############################################################################## # ############################################################################## { "name" : "General Stock FIFO", "version" : "9.0", "author" : "Le Truong Thanh <thanh.lt1689@gmail.com>", 'category':...
[ "son.huynh@nedcoffee.vn" ]
son.huynh@nedcoffee.vn
1a4a84046bb067d8317cba7a3dfb51fef729d588
abf44e8ac8325e1c95b0d0569baee19b8f725b0a
/1_slide_window/7.py
79fadc05e2ce3816ac627747f460e59868bd8734
[]
no_license
terrifyzhao/educative2
05994b0e7f4e0c8d4319106eddd48ba1dfe5317d
00e9d630da117fa9550f2efb2191709734c63c8a
refs/heads/master
2022-12-24T02:51:18.671842
2020-09-24T07:43:08
2020-09-24T07:43:08
276,569,403
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
def length_of_longest_substring(arr, k): start = 0 max_len = 0 count_1 = 0 for i in range(len(arr)): num = arr[i] if num == 1: count_1 += 1 if i - start + 1 - count_1 > k: num = arr[start] if num == 1: count_1 -= 1 ...
[ "zjiuzhou@gmail.com" ]
zjiuzhou@gmail.com
81f5316150af9c908dd4b3ef8628cca2b90db2b0
8fc7635b84b42e61b7efb9eaf7215394b5b5790a
/aliennor-backend copy/aliennorDjangoBackend/aliennorDjangoBackend/wsgi.py
021b6e96cb9641200f626f50804bb038f497e40a
[]
no_license
phamcong/aliennor-platform
f1e8470aab7ed634859e071f6028931f576ddf3e
e1d71532426ac9414d2158d50ee34c32257618f0
refs/heads/master
2021-05-14T17:08:08.629564
2018-02-17T23:35:07
2018-02-17T23:35:07
116,038,495
0
0
null
null
null
null
UTF-8
Python
false
false
419
py
""" WSGI config for aliennorDjangoBackend 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.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault...
[ "ccuong.ph@gmail.com" ]
ccuong.ph@gmail.com
40f118a930e06e6edf455277d99dddcc1d85aa9a
2e6c95871bd255873fb563347c0f070e6fcdde74
/ngram_2_model_pca.py
6b077e23c628515f969ffa99bba1c5e5f09cec87
[]
no_license
MSBradshaw/BioHackathon2020
3203c5232bebd70d2c2a88b7f49063a09da023c4
31826b698a408541200b6f75bfe9c03217bf2d1a
refs/heads/master
2022-08-05T11:57:32.221444
2020-05-29T17:30:29
2020-05-29T17:30:29
258,961,184
0
1
null
null
null
null
UTF-8
Python
false
false
4,036
py
import re import pandas as pd from bs4 import BeautifulSoup import datetime import time from sklearn.decomposition import PCA import matplotlib.pyplot as plt import seaborn as sns from sklearn.model_selection import cross_val_score from sklearn.model_selection import train_test_split from sklearn import datasets from s...
[ "michaelscottbradshaw@gmail.com" ]
michaelscottbradshaw@gmail.com
5d701f0a48dd6c81ab978a9683db47f0cf9fb515
587ac0749473666c2bcdfe558bdba8517cb1c0a0
/sp2020/j.py
9470133d7c7fc37f2ee060305d69a2e6d4c99a9d
[]
no_license
katrinafyi/cpg
fc2f408baf19791fa7260561a55d29464a42b212
0631d1983ec6a45cbe1a8df63963ab8caac51440
refs/heads/main
2023-02-21T13:07:02.517306
2021-01-23T06:09:39
2021-01-23T06:09:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,615
py
def ints(): return [int(x.strip()) for x in input().split()] # t is interval of measurement # d is time considered # p is percentile required # r is response delay required for responsiveness num_meas, t, d, p, r = ints() num_attempts = ints() [0] SUBMIT = 'S' REPLY = 'R' MEASURE = 'M' timeline = [] # list of (time...
[ "kenton_lam@outlook.com" ]
kenton_lam@outlook.com
4fe2f24ace7a19b1acc48f98e1b7555884e1392c
6e2e476c5764d5e75c7afe5a531ac5b890ef0c64
/Models_barAllExecutionTimes.py
6dd46654dd04bc45d58214343e8245ce54d8db3f
[]
no_license
BrunoDatoMeneses/PythonPloting
d4611f62f2709465e32d3ab2dc4e0d5cef65e783
b5bd1c7aa5a50144d2db82f29ab754b01084f230
refs/heads/master
2023-05-07T14:08:17.225336
2021-06-02T09:06:13
2021-06-02T09:06:13
297,996,150
0
0
null
null
null
null
UTF-8
Python
false
false
4,065
py
import _PLOT from Utils import transpose import os import csv # transpose.transposeFiles() from _FIG import PLOTTING from _PARAMS import PARAMETERS figEndName = "-AllNCS" #xlabel = 'Learning Cycles (#)' ylabel = 'Times (ms)' yStringLong ="ExecuyionTimes" # figVaryingParamString = "learningCycles" # varyingParamS...
[ "bruno.dato.meneses@gmail.com" ]
bruno.dato.meneses@gmail.com
419bee1b9fe65c8d11a7d4b70693ec15423d958f
cc578cec7c485e2c1060fd075ccc08eb18124345
/cs15211/24Game.py
ea18464f94d06f61725723f26fa46ca83987f4e3
[ "Apache-2.0" ]
permissive
JulyKikuAkita/PythonPrac
18e36bfad934a6112f727b4906a5e4b784182354
0ba027d9b8bc7c80bc89ce2da3543ce7a49a403c
refs/heads/master
2021-01-21T16:49:01.482561
2019-02-07T06:15:29
2019-02-07T06:15:29
91,907,704
1
1
Apache-2.0
2019-02-07T06:15:30
2017-05-20T18:12:53
Python
UTF-8
Python
false
false
4,885
py
__source__ = 'https://leetcode.com/problems/24-game/description/' # Time: O() # Space: O() # # Description: Leetcode # 679. 24 Game # # You have 4 cards each containing a number from 1 to 9. # You need to judge whether they could operated through *, /, +, -, (, ) to get the value of 24. # # Example 1: # Input: [4, 1, ...
[ "b92701105@gmail.com" ]
b92701105@gmail.com
26dfeac08449167a930a80d1d44fae4e247ac8ed
d364123a0655bff7e9d725382934fe2c15b5bfc4
/python3Test/Test/test009.py
d27fb2cf894790461b15d3b1ec2464ef190ccbb4
[]
no_license
yuan1093040152/SeleniumTest
88d75361c8419354f56856c326f843a0a89d7ca6
d155b98702bc46c174499042b43257696b861b5e
refs/heads/master
2023-08-31T15:00:25.415642
2023-08-30T09:26:42
2023-08-30T09:26:42
227,269,300
0
1
null
null
null
null
UTF-8
Python
false
false
4,398
py
#coding=utf-8 """ @Author : Yuan Meng @Time : 2022/6/28 17:24 @Software: PyCharm Ctrl+shift+v 历史粘贴版 ctrl+alt+空格 自动补全 ctrl+alt+D 分屏 Ctrl+/ 快速注释 """ import base64,hashlib import json from Crypto.Cipher import AES import binascii from Crypto.Util.Padding import pad aa = "0DIGbxUpV2a8TQTf6l4kiKTtrnNaRI1qcM...
[ "1093040152@qq.com" ]
1093040152@qq.com
f2db0f815309f934b46da888e24855c0aad96a91
914b504e13df945a50f35eca4d850eb2c5b52c0b
/test/compute/test_base.py
f8c9bd3ba3a0fd128e1401b5f2e96d9796badcc2
[ "Apache-2.0" ]
permissive
cloudkick/libcloud
d05c0401bd232279cb38b5abacd3d4c85d7d072f
9c8605e1518c6b5e2511f0780e1946089a7256dd
refs/heads/master
2021-01-01T19:51:41.895189
2011-03-14T02:34:57
2011-03-14T02:34:57
258,426
8
7
null
null
null
null
UTF-8
Python
false
false
2,958
py
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use ...
[ "tomaz@apache.org" ]
tomaz@apache.org
ab5f894430e4173d4f912b2ff27306986e39d566
146c71808bdd5fa458ef73df4a9b5837c83e779d
/tests/check_accuracy/check_accuracy_tests.py
5bad11a87167ac8aab9336ec6f018f0846e9a884
[ "MIT" ]
permissive
aladdinpersson/aladdin
62cff7ed8c014db91505545986e17b85e1656f98
4fd92ff3b6e74761fff75b01070930c9ec6ce29f
refs/heads/main
2023-04-15T14:41:27.236738
2021-04-15T10:39:11
2021-04-15T10:39:11
352,296,885
13
3
null
null
null
null
UTF-8
Python
false
false
590
py
# Import folder where sorting algorithms import sys import unittest import numpy as np # For importing from different folders # OBS: This is supposed to be done with automated testing, # hence relative to folder we want to import from sys.path.append("aladdin/") # If run from local: # sys.path.append('../../ML/algorit...
[ "aladdin.persson@hotmail.com" ]
aladdin.persson@hotmail.com
fe6df273d0824aeb08610dde5812f46f73da6587
17cb31350a9d0996e19dd111fc31980df03f82bf
/strawberryfields/devicespecs/device_specs.py
a32f9ef474ec3c53c88b0f76495cc55a33f98019
[ "Apache-2.0" ]
permissive
zeta1999/strawberryfields
3eee705b711bd195cc6f1510461d75f6e7d9821b
1bf05585be3553a7bb5c2f687dc45b7a064ddb17
refs/heads/master
2020-06-09T02:56:19.840324
2019-06-21T16:50:59
2019-06-21T16:50:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,785
py
# Copyright 2019 Xanadu Quantum Technologies Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agre...
[ "noreply@github.com" ]
zeta1999.noreply@github.com
1cbeaf068eba123dc4966e2c3b506aa29148b80b
3ae62276c9aad8b9612d3073679b5cf3cb695e38
/easyleetcode/leetcodes/Leetcode_105_Construct_Binary_Tree_from_Preorder_and_Inorder_Traversal.py
1485bb44b74ef3a8f62d1d7d1e19faff930fb29d
[ "Apache-2.0" ]
permissive
gongtian1234/easy_leetcode
bc0b33c3c4f61d58a6111d76707903efe0510cb4
d2b8eb5d2cafc71ee1ca633ce489c1a52bcc39ce
refs/heads/master
2022-11-16T17:48:33.596752
2020-07-13T02:55:03
2020-07-13T02:55:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,921
py
class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None class Solution(object): def buildTree(self, preorder, inorder): n = len(inorder) inOrderMap = {inorder[i]: i for i in range(n)} return self.buildTreeUtil(preorder, i...
[ "425776024@qq.com" ]
425776024@qq.com
90904f213074558cd90e413783c1a851ce07f3da
55550afe1c18aacba9a481c690755cb7395d35f1
/Week_01/G20190343020019/LeetCode_26_0019.py
84af779cd76ff44c31d90633db3c8cc0cfbca318
[]
no_license
algorithm005-class02/algorithm005-class02
eb5c0865fbb2c58362fddcd4fc8f8b9d02bb208c
1a1abf5aabdd23755769efaa6c33579bc5b0917b
refs/heads/master
2020-09-22T11:48:20.613692
2020-03-02T05:31:11
2020-03-02T05:31:11
225,177,649
45
153
null
2020-03-02T05:31:13
2019-12-01T14:47:06
Java
UTF-8
Python
false
false
366
py
class Solution: def removeDuplicates(self, nums: List[int]) -> int: size = len(nums) if size == 0: return 0 j, pre = 1, nums[0] for i in range(1, size): if nums[i] != pre: if i != j: nums[j] = nums[i] j += 1 ...
[ "your@email.com" ]
your@email.com
0f03a302c230541b088a7d1a1fe72c11c2e23cb3
473035074bd546694d5e3dbe6decb900ba79e034
/traffic fluid simulator/backend/env_4_6/model/ExportData.py
e92e4e0140bedbeb4290ef2eb08d29b3a966c9a7
[]
no_license
johny1614/magazyn
35424203036191fb255c410412c195c8f41f0ba5
a170fea3aceb20f59716a7b5088ccdcb6eea472f
refs/heads/master
2022-03-26T01:10:04.472374
2019-09-19T16:34:22
2019-09-19T16:34:22
171,033,407
0
0
null
null
null
null
UTF-8
Python
false
false
1,207
py
import json from typing import List import attr from numpy.core.multiarray import ndarray from model.Net import Net @attr.s(auto_attribs=True) class ExportData: learningMethod: str learningEpochs: int nets: List[Net] netName: str densityName: str def __attrs_post_init__(self): for net_...
[ "johny1614@gmail.com" ]
johny1614@gmail.com
7f7a6e5e0d461fb8690c5fcb3502db66bced6184
30fe7671b60825a909428a30e3793bdf16eaaf29
/.metadata/.plugins/org.eclipse.core.resources/.history/ba/b0bdbe08c6f800161174a93fd5908e78
d28f1b3c11c1df4b08726984489283823c27df6f
[]
no_license
abigdream84/PythonStudy
0fc7a3b6b4a03a293b850d0ed12d5472483c4fb1
059274d3ba6f34b62ff111cda3fb263bd6ca8bcb
refs/heads/master
2021-01-13T04:42:04.306730
2017-03-03T14:54:16
2017-03-03T14:54:16
79,123,274
0
0
null
null
null
null
UTF-8
Python
false
false
122
#!/usr/bin/env python #coding:UTF-8 from audit_demo.utility.MySqlHelper import MySqlHelper class g_table(object):
[ "abigdream@hotmail.com" ]
abigdream@hotmail.com
1f521210b944fba4b071cab3142d9a054dcff27a
07c61596c1fba2e2a7034fe5af9707794ea2e2c1
/Hackerrank/Algorithms/The_Time_in_Words.py3
6a108c9d2715cc2b096f03b911b89a2ab181b31e
[]
no_license
H-Shen/Collection_of_my_coding_practice
2fcb2f8fef9451ad4a3a9c063bbf6a34ea5966b4
6415552d38a756c9c89de0c774799654c73073a6
refs/heads/master
2023-08-24T21:19:08.886667
2023-08-22T03:47:39
2023-08-22T03:47:39
180,731,825
8
1
null
2021-08-13T18:25:25
2019-04-11T06:48:09
C++
UTF-8
Python
false
false
983
py3
#!/bin/python3 import sys table = {1:'one',2:'two',3:'three',4:'four', 5:'five',6:'six',7:'seven',8:'eight', 9:'nine',10:'ten',11:'eleven',12:'twelve', 13:'thirteen',14:'fourteen',15:'fifteen', 16:'sixteen',17:'seventeen',18:'eighteen', 19:'nineteen',20:'twenty',30:'thirt...
[ "haohu.shen@ucalgary.ca" ]
haohu.shen@ucalgary.ca
889178905a0c94d6f492f3c62559edfd6bc207fe
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/nouns/_quill.py
606bcee98c72edaf39b621ab0b0cf03cce527925
[ "MIT" ]
permissive
cash2one/xai
de7adad1758f50dd6786bf0111e71a903f039b64
e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6
refs/heads/master
2021-01-19T12:33:54.964379
2017-01-28T02:00:50
2017-01-28T02:00:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
#calss header class _QUILL(): def __init__(self,): self.name = "QUILL" self.definitions = [u'any of the long sharp pointed hairs on the body of a porcupine', u"a pen made from a bird's feather, used in the past"] self.parents = [] self.childen = [] self.properties = [] self.jsondata = {} self.speci...
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
1d41eb6ae4fc12acb15c60378e1c758be087de68
7cf119239091001cbe687f73018dc6a58b5b1333
/datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_ZCGG/ZX_ZCGG_SJS_SJSGG.py
88a9dab2b0df420ba808ab19e9438d674c65ae30
[ "Apache-2.0" ]
permissive
ILKKAI/dataETL
0f5b80c3482994f735f092a1e01fa1009bac4109
32f7ec3aaaf32b5074536a615cb9cd5c28bd499c
refs/heads/master
2022-04-04T19:27:05.747852
2020-02-28T11:17:48
2020-02-28T11:17:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
479
py
# -*- coding: utf-8 -*- from database._mongodb import MongoClient def data_shuffle(data): if data.get('URL_')[-3:] == 'pdf': data['PDF_'] = data.get('URL_') if not data['PDF_']: del data['PDF_'] return data if __name__ == '__main__': main_mongo = MongoClient(entity_code="ZX_ZCGG_SJS...
[ "499413642@qq.com" ]
499413642@qq.com
05488b74e06f143a147e1b5d9892a1eb406e1b21
a08fc91ecafa7f2b6c8aed7e1ceb33822d4caa49
/python/algorithms/tree/segmenttree.py
aec0172273542d5f029e5d57384084e6aba33d5d
[]
no_license
bryand1/snippets
1fcdd4b67809aa27b58e1239d5cca22cfb962f3d
f779bf147c420996613b0778e243154cd750c3dd
refs/heads/master
2023-01-23T18:47:07.389246
2020-12-31T20:10:13
2020-12-31T20:10:13
138,767,383
0
0
null
2023-01-19T13:02:49
2018-06-26T16:56:15
Python
UTF-8
Python
false
false
853
py
from sys import maxsize minsize = -99999 def maxquery(segtree, qlo, qhi, lo, hi, pos): if qlo <= lo and qhi >= hi: return segtree[pos] if qlo > hi or qhi < lo: return minsize mid = (lo + hi) // 2 return max( maxquery(segtree, qlo, qhi, lo, mid, 2 * pos + 1), maxquery(se...
[ "bryand1@gmail.com" ]
bryand1@gmail.com
7cf482daf8a47cd604c5fa2b83bb75aa350f97dd
aee5f372ba1b5fbb1c8acf6080c4c86ae195c83f
/cern-stubs/lsa/client/rest/cern/api/v1/feign/__init__.pyi
96054066f4590355d07f8781d938bb4307bcfd26
[]
no_license
rdemaria/pjlsa
25221ae4a4b6a4abed737a41a4cafe7376e8829f
e64589ab2203338db4253fbc05ff5131142dfd5f
refs/heads/master
2022-09-03T13:18:05.290012
2022-08-16T13:45:57
2022-08-16T13:45:57
51,926,309
1
5
null
2019-07-11T11:50:44
2016-02-17T13:56:40
Python
UTF-8
Python
false
false
5,523
pyi
import cern.lsa.client.rest.api.v1.dto import cern.lsa.client.rest.api.v1.feign import cern.lsa.domain.cern.settings import java.util import typing class IncaFeignService(cern.lsa.client.rest.api.v1.feign.FeignService): """ public interface IncaFeignService extends cern.lsa.client.rest.api.v1.feign.FeignServ...
[ "michi.hostettler@cern.ch" ]
michi.hostettler@cern.ch
9a36090e137b6c733f445cb587a0720eccd62adb
3bb70650b4b83e4653dcc18c8233c106c7a5611a
/sale_shortcut/shortcut_getter.py
44c35030e8a22f587ada781c66cd6059851922bb
[]
no_license
khanhlu2013/pos_connect_code
48e736a6b1c5ca6a5c4ff39d842d8a93f66e67ef
fdf70de858c10b175832af31ecc0cf770d028396
refs/heads/master
2023-04-08T02:35:46.181265
2016-10-18T21:12:51
2016-10-18T21:12:51
null
0
0
null
null
null
null
UTF-8
Python
false
false
249
py
from sale_shortcut.models import Parent,Child def get_shortcut(id): return Parent.objects.prefetch_related('child_set').get(pk=id) def get_shorcut_lst(store_id): return Parent.objects.filter(store_id=store_id).prefetch_related('child_set')
[ "khanhlu2013@gmail.com" ]
khanhlu2013@gmail.com
f3b575a591741af71ff96affecc01aa7f7b1eeef
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/109/usersdata/188/63757/submittedfiles/av2_p3_civil.py
a916fc1a714178afe44fb0829312c99cd7cc0417
[]
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
552
py
# -*- coding: utf-8 -*- import numpy as np def linhas (a,m): soma=0 for i in range(0,m.shape[1],1): soma=soma+m[a,i] return(soma) def colunas (a,m): soma=0 for i in range(0,m.shape[0],1): soma=soma+m[i,a] return(soma) h=int(input("Digite a dimensão da matriz:")) x=int(inpu...
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br