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
67a016a9d7ba978adccc3d947bf989f1fe06db71
98e944b793b2d907e802f979bc6309b75b678716
/shell/shell_person.py
30fde62c5f4a05fb73b9732127fd0ead9955e568
[]
no_license
rg3915/avesmarias
3fa17416e64908714f164254434f3ec1a6423696
ce29072d17024b91e8afab309e203e68fc0e15d2
refs/heads/master
2021-01-12T11:32:45.196569
2016-11-06T14:54:05
2016-11-06T14:54:05
72,948,389
0
0
null
null
null
null
UTF-8
Python
false
false
842
py
import string import random import csv from avesmarias.core.models import Person, Phone PHONE_TYPE = ('pri', 'com', 'res', 'cel') person_list = [] ''' Read person.csv ''' with open('fix/person.csv', 'r') as f: r = csv.DictReader(f) for dct in r: person_list.append(dct) f.close() ''' Insert Person...
[ "rg3915@yahoo.com.br" ]
rg3915@yahoo.com.br
638bb6032545c27060aeaa7fbe01b9a33bcf0ea7
d6a1630bcc03f059438f949ba4f59b86ef5a4bd6
/features/geopy_distance_features.py
882428e8ac4d7f9aaa832bb3288cfd7c98e3853d
[ "MIT" ]
permissive
SunnyMarkLiu/Kaggle_NYC_Taxi_Trip_Duration
063f7327e9075fc7435930513cc36f8dbd35d256
eca7f44bc3bf1af0690305b45858359adac617b4
refs/heads/master
2021-01-02T09:30:25.639858
2017-09-13T03:53:18
2017-09-13T03:53:18
99,228,943
1
0
null
null
null
null
UTF-8
Python
false
false
1,772
py
#!/usr/local/miniconda2/bin/python # _*_ coding: utf-8 _*_ """ @author: MarkLiu @time : 17-9-12 上午11:10 """ import os import sys module_path = os.path.abspath(os.path.join('..')) sys.path.append(module_path) import pandas as pd from geopy.distance import great_circle from utils import data_utils from conf.configure...
[ "SunnyMarkLiu101@gmail.com" ]
SunnyMarkLiu101@gmail.com
90d11cd9857b6436e79804bc753b2bbaf34a422d
fc3f784c8d00f419b11cbde660fe68a91fb080ca
/algoritm/20상반기 코딩테스트/소수 경로/bj1963.py
6f4d4774ef60720d7fc72ff334ec8ba7ecaf763d
[]
no_license
choo0618/TIL
09f09c89c8141ba75bf92657ac39978913703637
70437a58015aecee8f3d86e6bfd0aa8dc11b5447
refs/heads/master
2021-06-25T07:01:34.246642
2020-12-21T04:57:13
2020-12-21T04:57:13
163,782,782
0
0
null
null
null
null
UTF-8
Python
false
false
869
py
import sys sys.stdin=open('bj1963.txt','r') def Find(n,s): ns=[] for i in ['0','1','2','3','4','5','6','7','8','9']: if not n and i=='0':continue ss=s[:n]+i+s[n+1:] if not Map[int(ss)] and s!=ss and not M[int(ss)]: M[int(ss)]=1 ns.append(ss) return ns Map=[0...
[ "choo0618@naver.com" ]
choo0618@naver.com
c411ab47bb8a9ce4418120687416c8e7e69ca45e
ac9f9ff30c64c369c45123f1998161c007b4abb3
/cantools/db/formats/sym.py
3f6fcd8ebf1b59755b4d9c6e2199b97063f6f91d
[ "MIT" ]
permissive
kanirik/cantools
2961712b77610f4e9391a89627780c2a31e37c35
f4a0d0e45ba872638088206a16e5aee01f49bc43
refs/heads/master
2020-03-08T13:37:38.390623
2018-02-16T20:00:16
2018-02-16T20:00:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,799
py
# Load and dump a CAN database in SYM format. import logging from collections import OrderedDict from pyparsing import Word from pyparsing import Literal from pyparsing import Keyword from pyparsing import Optional from pyparsing import Suppress from pyparsing import Group from pyparsing import QuotedString from pypar...
[ "erik.moqvist@gmail.com" ]
erik.moqvist@gmail.com
ff94c4fe9772efb3f93861e6eced73496ca45bfe
f3eb45a23b421ed8b160a6cf7c8670efb7e9ff4f
/4_digits_of_pi/3_dask_multicore_digits_of_pi.py
a30c429c179e07f93e73ecee53aed9a9898800f3
[ "MIT" ]
permissive
zonca/intro_hpc
4197a49a3a3b2f8cfbe1cfb9d30e9d7f5100c8ac
b0ee213e95d045abdfbbf82849939a2bb4ea125b
refs/heads/master
2021-01-23T01:41:41.809291
2017-07-22T20:41:53
2017-07-22T21:10:29
92,886,908
2
1
null
null
null
null
UTF-8
Python
false
false
742
py
#!/usr/bin/env python3 import sys import numpy as np import dask.array as da def inside_circle(total_count): x = da.random.uniform(size=total_count, chunks=total_count//48) y = da.random.uniform(size=total_count, chunks=total_count//48) radii_square = x**2 + y**2 count = (radii_square<=1.0).sum().co...
[ "code@andreazonca.com" ]
code@andreazonca.com
9c90fde14be791e32a374c0dd2d82fad92ea21ef
27eec9c18320fbc20b0fbec628447a3442facc12
/CNN_ConvLSTM/utils/convlstm.py
f03883c2e05d74cdfccb1069d5bc90d47ba8268c
[ "MIT" ]
permissive
peternara/ResNet_ConvLSTM
06428a400f8e93209d4b81f1a6d2b55a58bdb79a
1e2c239af6854d122f138f109d4c1de82930ce43
refs/heads/main
2023-05-09T12:43:49.965613
2021-06-01T02:49:02
2021-06-01T02:49:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,026
py
import torch.nn as nn from torch.autograd import Variable import torch class ConvLSTMCell(nn.Module): def __init__(self, input_size, input_dim, hidden_dim, kernel_size, bias): """ Initialize ConvLSTM cell. Parameters ---------- input_size: (int, int) Height and...
[ "noreply@github.com" ]
peternara.noreply@github.com
07bf52a18c5b362964ad40c919eabdec4a165905
c8d506d822d1ddf338b5edf2b4f1220dd9549b64
/Regex/meta2.py
811fd478ababee66bfc7555f949c7524e47893e0
[]
no_license
zozni/PythonStudy
95e2a433e31de1e339b43c3334f9dc2cc4d15f6b
082a6780947466be4993197ce948c6a42976e750
refs/heads/master
2023-02-18T01:12:54.614803
2021-01-22T10:13:28
2021-01-22T10:13:28
324,503,765
2
0
null
null
null
null
UTF-8
Python
false
false
110
py
# 메타문자 ^ import re print(re.search('^Life', 'Life is too short')) print(re.search('^Life', 'My Life'))
[ "thekey1027@naver.com" ]
thekey1027@naver.com
82700d40eab51d34a591596e4a59417b39f75684
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03393/s165485969.py
2108db1765fd8cb7c870158fd75a81cab596eee9
[]
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
1,027
py
import re import sys import math import itertools import bisect from copy import copy from collections import deque,Counter from decimal import Decimal import functools def v(): return input() def k(): return int(input()) def S(): return input().split() def I(): return map(int,input().split()) def X(): return list(inpu...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
23532656417e4f17a6b726c887f112f46a905d58
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/right_life.py
a00c57735a1259cdb92912789021f1a768eacd33
[]
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
216
py
#! /usr/bin/env python def life_or_little_time(str_arg): hand(str_arg) print('work_bad_part') def hand(str_arg): print(str_arg) if __name__ == '__main__': life_or_little_time('week_and_bad_fact')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
02a864677772bde23c7d4bf75b729b9a113adbe6
42240f6bbabcfb7a8e2f0957ab2d3c46c2920fd1
/lib/python/statcode/filetype_config.py
58a15f709ddbf0882bf49841242a61fad5dd2d34
[ "Apache-2.0" ]
permissive
simone-campagna/statcode
164a219c699551b70ee12640f42199b72cc76879
a9f39b666d9670b9916623fde343b9174d563724
refs/heads/master
2021-01-01T06:32:25.734613
2013-09-17T08:12:49
2013-09-17T08:12:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
984
py
#!/usr/bin/env python3 # # Copyright 2013 Simone Campagna # # 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 ...
[ "simone.campagna@tiscali.it" ]
simone.campagna@tiscali.it
e71765761571691b4c463f3710a44d6329846b82
2031771d8c226806a0b35c3579af990dd0747e64
/pyobjc-framework-Intents/PyObjCTest/test_inpersonhandlelabel.py
ad84f5b6277cb2d3c6b8928edf94837316b6d5fe
[ "MIT" ]
permissive
GreatFruitOmsk/pyobjc-mirror
a146b5363a5e39181f09761087fd854127c07c86
4f4cf0e4416ea67240633077e5665f5ed9724140
refs/heads/master
2018-12-22T12:38:52.382389
2018-11-12T09:54:18
2018-11-12T09:54:18
109,211,701
2
0
null
null
null
null
UTF-8
Python
false
false
943
py
import sys from PyObjCTools.TestSupport import * if sys.maxsize > 2 ** 32: import Intents class TestINPersonHandleLabel (TestCase): @min_os_level('10.12') def testConstants(self): self.assertIsInstance(Intents.INPersonHandleLabelHome, unicode) self.assertIsInstance(Inte...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
4750432b226683768a660d9a7566173f603adfbd
0f4cacd40260137d3d0b3d1b34be58ac76fc8bd0
/2016/advent24.my.py
df8a2c52a1d331b2427d0dbb0405963b4335febe
[]
no_license
timrprobocom/advent-of-code
45bc765e6ee84e8d015543b1f2fa3003c830e60e
dc4d8955f71a92f7e9c92a36caeb954c208c50e7
refs/heads/master
2023-01-06T07:19:03.509467
2022-12-27T18:28:30
2022-12-27T18:28:30
161,268,871
0
2
null
null
null
null
UTF-8
Python
false
false
3,570
py
# # Holy shit. # grid = """\ ########### #0.1.....2# #.#######.# #4.......3# ###########""".splitlines() xmax = len(grid[0]) ymax = len(grid) # 0 is at row 18 col 3 # So, as long as there are no decisions, move forward. When we reach a decision point, # push the point on a stack, pick left, continue on. # Stop whe...
[ "timr@probo.com" ]
timr@probo.com
2a715ba1c3bd9636d92fbac36798cfaf9786dc35
5dd03f9bd8886f02315c254eb2569e4b6d368849
/src/python/twitter/common/python/eggparser.py
9b5b6bdc1282fe4543ffc44cae5daacea7063937
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
adamsxu/commons
9e1bff8be131f5b802d3aadc9916d5f3a760166c
9fd5a4ab142295692994b012a2a2ef3935d35c0b
refs/heads/master
2021-01-17T23:13:51.478337
2012-03-11T17:30:24
2012-03-11T17:30:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,547
py
# ================================================================================================== # Copyright 2011 Twitter, Inc. # -------------------------------------------------------------------------------------------------- # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use thi...
[ "jsirois@twitter.com" ]
jsirois@twitter.com
10ba8b7670ca96c7d6a83e9a4cbb5484f4e95a53
446bd1170475e640e4a50476cd80514b0693ee61
/demo/demo1/demo1/picture/jishe/demo2/Demo3/Demo3/spiders/main.py
04dfd6ea4f4f2efd572b417bf2be0aa4f5725558
[]
no_license
HarperHao/python
f040e1e76a243a3dba2b342029a74a45232c1c8d
4bd807605c0acca57b8eea6444b63d36d758cca9
refs/heads/master
2021-07-20T04:40:37.515221
2020-10-02T08:58:37
2020-10-02T08:58:37
219,732,665
0
0
null
null
null
null
UTF-8
Python
false
false
1,665
py
# from scrapy.cmdline import execute # # execute("scrapy crawl zuowumianji".split()) import numpy as np # LU分解 def LU_Decompose(matrix): rows, columns = np.shape(matrix) if rows != columns: print("所输入的矩阵必须是方阵!") return L = np.eye(rows) U = np.triu(matrix) # 先求出U矩阵(化上三角矩阵) # 求L矩阵(主...
[ "m19834406344@163.com" ]
m19834406344@163.com
0ca0daaa2b979abd328191a6168d13b742b6e4f8
3637fe729395dac153f7abc3024dcc69e17f4e81
/reference/ucmdb/discovery/LockUtils.py
d37de20386d6bcca8280da0db434a05d758387e4
[]
no_license
madmonkyang/cda-record
daced6846c2456f20dddce7f9720602d1583a02a
c431e809e8d0f82e1bca7e3429dd0245560b5680
refs/heads/master
2023-06-15T08:16:46.230569
2021-07-15T16:27:36
2021-07-15T16:27:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,251
py
#coding=utf-8 import sys import re from threading import Event import time import logger import errormessages import inventoryerrorcodes import errorobject from java.lang import System from java.util import Random from java.util import HashMap from com.hp.ucmdb.discovery.library.common import Collectors...
[ "silentbalanceyh@126.com" ]
silentbalanceyh@126.com
be0a4b0ae23f12893b303e8bc4cb504c7f517d0f
d0f11aa36b8c594a09aa06ff15080d508e2f294c
/leecode/1-500/1-100/39-组合总和.py
751f2a332ffc2b86704c60a28303c9b7f6961e04
[]
no_license
saycmily/vtk-and-python
153c1fe9953fce685903f938e174d3719eada0f5
5045d7c44a5af5c16df5a3b72c157e9a2928a563
refs/heads/master
2023-01-28T14:02:59.970115
2021-04-28T09:03:32
2021-04-28T09:03:32
161,468,316
1
1
null
2023-01-12T05:59:39
2018-12-12T10:00:08
Python
UTF-8
Python
false
false
572
py
class Solution: def combinationSum(self, candidates, target: int): candidates.sort() n = len(candidates) res = [] def backtrack(tmp, tmp_sum=0, first=0): if tmp_sum == target: res.append(tmp.copy()) return for j in range(first,...
[ "1786386686@qq.com" ]
1786386686@qq.com
eb64e5d68a519e53d4e37ab1f2670f115f660766
f02b21d5072cb66af643a7070cf0df4401229d6e
/leetcode/depth_first_search/695-max_area_of_island.py
939a2da8c3ed73d926cf1e1b3a4173e9f7dc2bbb
[]
no_license
dbconfession78/interview_prep
af75699f191d47be1239d7f842456c68c92b95db
7f9572fc6e72bcd3ef1a22b08db099e1d21a1943
refs/heads/master
2018-10-09T22:03:55.283172
2018-06-23T01:18:00
2018-06-23T01:18:00
110,733,251
2
1
null
null
null
null
UTF-8
Python
false
false
3,673
py
import sys class Solution: # def maxAreaOfIsland_PRACTICE(self, grid): def maxAreaOfIsland(self, grid): retval = 0 for i in range(len(grid)): for j in range(len(grid[i])): if grid[i][j] == 1: retval = max(retval, self.helper(grid, i, j, 0)) ...
[ "Hyrenkosa1" ]
Hyrenkosa1
ae09834689a7ed3701d3ef9439f82ccc31caa63b
3e4d78628a66927e2a640ca4f328adcc31e156b9
/deejay/queuer.py
be6d7a434cdd0da2d3e15b533b77f38a4bf36a50
[]
no_license
nijotz/shitstream
360d41a1411dc480dd220790f9513d202a18ee78
7d11171fb35aaf6d778d5bf23046d220939711be
refs/heads/master
2021-01-01T16:19:22.224760
2014-10-16T22:48:17
2014-10-16T22:48:17
23,303,299
5
1
null
null
null
null
UTF-8
Python
false
false
3,892
py
import os import re import pyechonest.config import pyechonest.song import pyechonest.playlist from downloaders.youtube import search as youtube_search from mpd_util import mpd from server import app import settings pyechonest.config.CODEGEN_BINARY_OVERRIDE = settings.dj_codegen_binary pyechonest.config.ECHO_NEST_A...
[ "nick@nijotz.com" ]
nick@nijotz.com
1223460f79aa83654eb9c6e0e3b50f90b2366482
a364f53dda3a96c59b2b54799907f7d5cde57214
/easy/35-Search Insertion Position.py
6c7c2e089fbf94d023498b845a9645138b07243e
[ "Apache-2.0" ]
permissive
Davidxswang/leetcode
641cc5c10d2a97d5eb0396be0cfc818f371aff52
d554b7f5228f14c646f726ddb91014a612673e06
refs/heads/master
2022-12-24T11:31:48.930229
2020-10-08T06:02:57
2020-10-08T06:02:57
260,053,912
3
0
null
null
null
null
UTF-8
Python
false
false
1,153
py
""" https://leetcode.com/problems/search-insert-position/ Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. Example 1: Input: [1,3,5,6], 5 Output: 2 Example 2: Input: [...
[ "wxs199327@hotmail.com" ]
wxs199327@hotmail.com
d489d3858f96a45be324467e1fcc25a31913bf04
28ad76f4f4cd22de8d2cd1680dbf4fb9beaa4d24
/anacrowdboticscom_ana_dev_402/urls.py
7837c47d56c39afd4e03fa971a31a704b0d186ce
[]
no_license
crowdbotics-users/anacrowdboticscom-ana-dev-402
956d557b11a09883b6253d4c02758587628ecaec
ceaf01839ad07ce7d086009ac48f52f1a682cf05
refs/heads/master
2020-04-06T16:05:26.123052
2018-11-14T20:11:36
2018-11-14T20:11:36
157,605,004
0
0
null
null
null
null
UTF-8
Python
false
false
939
py
"""anacrowdboticscom_ana_dev_402 URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home,...
[ "sp.gharti@gmail.com" ]
sp.gharti@gmail.com
db1b2374c6afaa2d2fe5ed4e597a9e4b87926cd0
238e46a903cf7fac4f83fa8681094bf3c417d22d
/VTK/vtk_7.1.1_x64_Release/lib/python2.7/site-packages/twisted/names/test/test_names.py
d882eefdb044c15cc6b244c74e388d368578da5e
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
baojunli/FastCAE
da1277f90e584084d461590a3699b941d8c4030b
a3f99f6402da564df87fcef30674ce5f44379962
refs/heads/master
2023-02-25T20:25:31.815729
2021-02-01T03:17:33
2021-02-01T03:17:33
268,390,180
1
0
BSD-3-Clause
2020-06-01T00:39:31
2020-06-01T00:39:31
null
UTF-8
Python
false
false
36,147
py
# Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Test cases for twisted.names. """ import socket, operator, copy from StringIO import StringIO from functools import partial, reduce from twisted.trial import unittest from twisted.internet import reactor, defer, error from twi...
[ "l”ibaojunqd@foxmail.com“" ]
l”ibaojunqd@foxmail.com“
3cc745f34716dfeb254720f8c0c01a80b7c5d438
67ca269e39935d0c439329c3a63df859e40168bb
/autoPyTorch/pipeline/components/setup/lr_scheduler/constants.py
2e5895632deb9caa92b26070d7495d27d57ba970
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-philippe-de-muyter" ]
permissive
automl/Auto-PyTorch
2e67ffb44f40d9993470ded9b63f10a5164b41df
56a2ac1d69c7c61a847c678879a67f5d3672b3e8
refs/heads/master
2023-07-14T22:55:57.826602
2022-08-23T16:43:15
2022-08-23T16:43:15
159,791,040
2,214
280
Apache-2.0
2023-04-04T14:41:15
2018-11-30T08:18:34
Python
UTF-8
Python
false
false
450
py
from enum import Enum class StepIntervalUnit(Enum): """ By which interval we perform the step for learning rate schedulers. Attributes: batch (str): We update every batch evaluation epoch (str): We update every epoch valid (str): We update every validation """ batch = 'batc...
[ "noreply@github.com" ]
automl.noreply@github.com
744ef4550ea1381e96181d3d0cf7df33ca8a133d
762de1c66746267e05d53184d7854934616416ee
/tools/MolSurfGenService/MolSurfaceGen32/chimera/share/VolumeData/tom_em/em_format.py
6c027e9831ce8864e76310e1e1193380a04ead29
[]
no_license
project-renard-survey/semanticscience
6e74f5d475cf0ebcd9bb7be6bb9522cf15ed8677
024890dba56c3e82ea2cf8c773965117f8cda339
refs/heads/master
2021-07-07T21:47:17.767414
2017-10-04T12:13:50
2017-10-04T12:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,434
py
# ----------------------------------------------------------------------------- # Read TOM Toolbox EM density map file (http://www.biochem.mpg.de/tom/) # electron microscope data. # # Byte swapping will be done if needed. # # ----------------------------------------------------------------------------- # class EM_Data...
[ "alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5" ]
alex.gawronski@d60594c4-dda9-11dd-87d8-31aa04531ed5
778ae380f0cad62eb41f8e8dbe2862993143ee93
495907c7e2e2d591df2d6906335c3d89c5a4a47b
/helpers/logHelpers.py
42129a0969e389b0136e85078c31651d76b26bbb
[]
no_license
ePandda/idigpaleo-ingest
319194125aded01f018cfb7c1fe7044fe8c66770
8473ab31e7a56878236136d0ace285ab3738f208
refs/heads/master
2020-11-26T19:48:13.959972
2018-04-21T17:19:38
2018-04-21T17:19:38
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,086
py
# # Class for logining status/errors from the ingest # # Uses the main pythn logging module import logging import time def createLog(module, level): logger = logging.getLogger(module) if level: checkLevel = level.lower() else: checkLevel = 'warning' levels = {'debug': logging.DEBUG, '...
[ "mwbenowitz@gmail.com" ]
mwbenowitz@gmail.com
5b7de37d3e3ae6122a53cb151f264294e1e07cfd
4ec57b6ca1125feb546487ebf736fb1f7f3531ce
/src/bin/huawei_server/collect.py
7e38908b1087dbed5c09a721f9b18ad0fac206cd
[ "MIT" ]
permissive
Huawei/Server_Management_Plugin_Nagios
df595b350ef1cf63347725e443b518c521afde5a
fbfbb852a90b6e1283288111eadbd49af2e79343
refs/heads/master
2022-09-14T15:59:48.438453
2022-08-22T03:19:20
2022-08-22T03:19:20
120,845,298
4
0
null
null
null
null
UTF-8
Python
false
false
3,370
py
#encoding:utf-8 import sys import os import traceback from config import VERSTION_STR from base.logger import Logger from model.plugin import LoggerConfig from service.collectservice import CollectService from util.common import Common from util.check import Check from constant.constant import * from threading import...
[ "31431891+serverplugin@users.noreply.github.com" ]
31431891+serverplugin@users.noreply.github.com
9d7664af768702a3da5d5567e409f84faf975d8a
4380a4029bac26f205ed925026914dce9e96fff0
/slyr/parser/exceptions.py
d791f4c9f6a447c4501d075e561829ba69832613
[]
no_license
deepVector/slyr
6b327f835994c8f20f0614eb6c772b90aa2d8536
5d532ac3eec0e00c5883bf873d30c6b18a4edf30
refs/heads/master
2020-12-03T10:24:39.660904
2019-04-08T00:48:03
2019-04-08T00:48:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
974
py
#!/usr/bin/env python """ SLYR Exceptions """ class UnsupportedVersionException(Exception): """ Thrown when an object of an unsupported version is encountered """ pass class UnreadableSymbolException(Exception): """ Thrown when a symbol could not be read, for whatever reason """ pass...
[ "nyall.dawson@gmail.com" ]
nyall.dawson@gmail.com
bbf9c3db561c3a9339d630028112a6794a730e5e
db734d1c2fa1ff072c3bad3efbc80f5fb045647b
/examples/advanced_symmetry.py
5b838beba33fb51eb88a5bfddea66a81e01fb2ff
[ "MIT" ]
permissive
yenchunlin024/PyQchem
ff4a0f9062124c3ef47dba5e7c48b372e4a99c21
2edf984ba17373ad3fd450b18592c8b7827b72e5
refs/heads/master
2023-08-12T09:43:46.942362
2021-09-30T10:59:35
2021-09-30T10:59:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,469
py
import numpy as np from pyqchem.symmetry import get_wf_symmetry from pyqchem.utils import _set_zero_to_coefficients, get_plane, crop_electronic_structure from pyqchem.qchem_core import get_output_from_qchem, create_qchem_input from pyqchem.structure import Structure from pyqchem.file_io import build_fchk # Define cu...
[ "abelcarreras83@gmail.com" ]
abelcarreras83@gmail.com
cc7027ec8852029b29739182b583c126f29a16cf
4ab57a7bd592d267d180f0541ee18b4c544eec28
/tests/orm/mixins/test_soft_deletes.py
bba8c0e6fcda1c345551add5b8b6bc09638e0e42
[ "MIT" ]
permissive
mattcl/orator
f6cfb687ef8f1c3f5dd9828b2b950edbb5387cc9
cc3d2154d596f7e6ff4274d7f8d6e8a233e12a9c
refs/heads/0.8
2021-01-20T17:27:16.342669
2016-06-02T21:55:00
2016-06-02T21:55:00
66,998,160
0
1
null
2018-02-22T21:29:24
2016-08-31T03:08:13
Python
UTF-8
Python
false
false
1,362
py
# -*- coding: utf-8 -*- import datetime import arrow from flexmock import flexmock, flexmock_teardown from orator import Model, SoftDeletes from orator.orm import Builder from orator.query import QueryBuilder from ... import OratorTestCase t = arrow.get().naive class SoftDeletesTestCase(OratorTestCase): def t...
[ "sebastien.eustace@gmail.com" ]
sebastien.eustace@gmail.com
72d8d8ac47ceb9f682800efef9aa102bd121eab5
caa06eca3eef2549d5088f6487201f734b35822e
/NLP-PGN/utils/config_bak.py
538451b3b9977af8e798069ab9f3e4cf5672d3bb
[]
no_license
kelvincjr/shared
f947353d13e27530ba44ea664e27de51db71a5b6
4bc4a12b0ab44c6847a67cbd7639ce3c025f38f8
refs/heads/master
2023-06-23T19:38:14.801083
2022-05-17T09:45:22
2022-05-17T09:45:22
141,774,490
6
1
null
2023-06-12T21:30:07
2018-07-21T02:22:34
Python
UTF-8
Python
false
false
1,767
py
""" @Time : 2021/2/814:06 @Auth : 周俊贤 @File :config.py @DESCRIPTION: """ from typing import Optional import torch # General hidden_size: int = 512 dec_hidden_size: Optional[int] = 512 embed_size: int = 512 pointer = True # Data max_vocab_size = 20000 embed_file: Optional[str] = None # use pre-trained embeddings s...
[ "deco_2004@163.com" ]
deco_2004@163.com
01e664b7f39575e1a63a4ddf8b5dfefab7300952
a2e638cd0c124254e67963bda62c21351881ee75
/Python modules/SettlementRegenerate.py
f5f2ad83e3c14991b4f4775c28b52ee0110c5cdb
[]
no_license
webclinic017/fa-absa-py3
1ffa98f2bd72d541166fdaac421d3c84147a4e01
5e7cc7de3495145501ca53deb9efee2233ab7e1c
refs/heads/main
2023-04-19T10:41:21.273030
2021-05-10T08:50:05
2021-05-10T08:50:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,110
py
"""---------------------------------------------------------------------------------------------------------- MODULE : SettlementRegenerate PURPOSE : This module will regenerate a settlement. DEPARTMENT AND DESK : IT REQUASTER : Heinrich Cronje ...
[ "nencho.georogiev@absa.africa" ]
nencho.georogiev@absa.africa
4e5832c5c5b4c8807e7bcdabe9568f504fedc426
67b8ea7f463e76a74d5144202952e6c8c26a9b75
/cluster-env/bin/undill
455df88dec71f58462d5ce48b4a02c95dad99b63
[ "MIT" ]
permissive
democrazyx/elecsim
5418cb99962d7ee2f9f0510eb42d27cd5254d023
e5b8410dce3cb5fa2e869f34998dfab13161bc54
refs/heads/master
2023-06-27T09:31:01.059084
2021-07-24T19:39:36
2021-07-24T19:39:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
617
#!/home/alexkell/elecsim/cluster-env/bin/python3 # # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) # Copyright (c) 2008-2016 California Institute of Technology. # Copyright (c) 2016-2019 The Uncertainty Quantification Foundation. # License: 3-clause BSD. The full license text is available at: # - https:/...
[ "alexander@kell.es" ]
alexander@kell.es
63655078077b3e9d9b986b5bf295f5aae86a05c0
7b26ead5cca82bc8ec8cec01505435db06959284
/spider.py
8ecd93d5e9b67fa07028d64a1ee83625d4721952
[]
no_license
mnahm5/Web-Crawler
dffa8725f56a1c4c9265c120b9ac5500a497bff3
552ca54fd13e4fc30e1315b6a22fb511d2aaf345
refs/heads/master
2021-01-19T00:52:17.912824
2016-06-30T12:45:25
2016-06-30T12:45:25
60,887,947
0
0
null
null
null
null
UTF-8
Python
false
false
2,375
py
from urllib.request import urlopen from link_finder import LinkFinder from general import * class Spider: # Class variables (shared among all instances) project_name = "" base_url = "" domain_name = "" queue_file = "" crawled_file = "" queue = set() crawled = set() def __init__(se...
[ "ahmed.nadim59@gmail.com" ]
ahmed.nadim59@gmail.com
1c2e6fc89feaef8003cf91c6e3db19398008dde5
fa5070498f31026b662053d1d5d91282cb1f68b9
/test01/tapp/views.py
36f742b4db34a7c1ddbfc041c48b401998010c04
[ "Apache-2.0" ]
permissive
jinguangzhu/the_first_python
f074c4943028421f96285a2f772e7ccf102248e5
d9d035b44652a4cd6ecd1834dd9930d1c78bf360
refs/heads/master
2020-03-19T14:16:35.860167
2018-06-19T13:58:25
2018-06-19T13:58:25
136,615,947
0
3
Apache-2.0
2018-06-19T13:31:00
2018-06-08T12:27:09
Python
UTF-8
Python
false
false
270
py
from django.shortcuts import render from tapp.models import * # Create your views here. def my_student(req): student = Student.objects.all() return render(req,"student.html",context={"student":student}) def first(req): return render(req,"hellodjango.html")
[ "ubuntu@localhost.localdomain" ]
ubuntu@localhost.localdomain
79d9d6cab1424a8f758f9bc427220aa90cc5ea9a
781e2692049e87a4256320c76e82a19be257a05d
/all_data/exercism_data/python/bob/40dea17339b24a50970c59a9ab7f2661.py
2b91b02b1c565cfce002da2177d0c653c3e0759a
[]
no_license
itsolutionscorp/AutoStyle-Clustering
54bde86fe6dbad35b568b38cfcb14c5ffaab51b0
be0e2f635a7558f56c61bc0b36c6146b01d1e6e6
refs/heads/master
2020-12-11T07:27:19.291038
2016-03-16T03:18:00
2016-03-16T03:18:42
59,454,921
4
0
null
2016-05-23T05:40:56
2016-05-23T05:40:56
null
UTF-8
Python
false
false
365
py
# # Skeleton file for the Python "Bob" exercise. # def hey(phrase): if not phrase.strip() == '': if any(c.isalpha() for c in phrase) and not any( c.islower() for c in phrase): return 'Whoa, chill out!' elif phrase.endswith('?'): return 'Sure.' return...
[ "rrc@berkeley.edu" ]
rrc@berkeley.edu
5455dbfa3f6bdb95fbe0d82fe40400246f03ff85
d5beb80c402954d1b66f765b5d5c93d28491324d
/evtstrd_test/filter.py
854a71c52f33622147a05d857a11213a9abf3fb8
[ "MIT" ]
permissive
srittau/eventstreamd
978d822d7dd504f91aebdf11091733a04bb4c5c2
688ee94aea704230e2d0693195062cea8ba3eb73
refs/heads/main
2023-08-18T21:27:23.962517
2023-08-17T09:55:24
2023-08-17T09:55:24
85,480,241
0
0
MIT
2023-09-08T06:45:51
2017-03-19T14:00:49
Python
UTF-8
Python
false
false
3,121
py
from unittest import TestCase from asserts import assert_equal, assert_false, assert_raises, assert_true from evtstrd.filters import parse_filter class FilterTest(TestCase): def test_str(self) -> None: filter_ = parse_filter("foo.bar<='ABC'") assert_equal("foo.bar<='ABC'", str(filter_)) def...
[ "srittau@rittau.biz" ]
srittau@rittau.biz
3dedf611bc54472811b3f467db4eb932c8506bf7
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03971/s127085901.py
34b5ed2240205dc9db4f33c7ab3dd930dddf6d8a
[]
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
407
py
n,a,b=map(int,input().split()) s=input() passed=0 abroad_passed=0 for i in s: if i=="a": if passed<a+b: print("Yes") passed+=1 else: print("No") elif i=="b": if passed<a+b and abroad_passed<=b-1: print("Yes") passed+=1 ...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
0f8ebdd234606243284b482e06e4083e1328c38d
3ef0fd7ff4ab98da91de28b4a3ae6bbd55a38361
/wxrobot-host/wxrobot/baidu_shibie.py
7c2115361e6ee26f68503dd32ffd03c7d4f6470f
[]
no_license
nudepig/wxrobot
d0cbcbe0b1fb0a69532bb2c45630bc01ded8c2af
82bd8f68d3163d8dddf1b9a8ccc14532f040fbab
refs/heads/master
2020-12-27T13:35:24.043856
2020-02-03T09:30:04
2020-02-03T09:30:04
237,920,035
0
0
null
null
null
null
UTF-8
Python
false
false
2,770
py
# from aip import AipOcr # 如果已安装pip,执行pip install baidu-aip即可 # import os # """ 你的 APPID AK SK """ # APP_ID = '16802142' # API_KEY = 'FcIxTPz25FZOSjOfgTKfAWIn' # SECRET_KEY = 'GKIvG4tFqqyzisDCY81ASkMihg3LHrwx' # # client = AipOcr(APP_ID, API_KEY, SECRET_KEY) # """ 读取图片 """ # def get_file_content(filePath)...
[ "ubuntu@localhost.localdomain" ]
ubuntu@localhost.localdomain
526a36db003f6b888927cfb7031603fc97188b7a
2c143ba64032f65c7f7bf1cbd567a1dcf13d5bb1
/整数转罗马数字.py
2a08f7032b28b37c736f253256397e561ff86593
[]
no_license
tx991020/MyLeetcode
5b6121d32260fb30b12cc8146e44e6c6da03ad89
cfe4f087dfeb258caebbc29fc366570ac170a68c
refs/heads/master
2020-04-09T21:43:41.403553
2019-03-27T18:54:35
2019-03-27T18:54:35
160,611,089
0
0
null
null
null
null
UTF-8
Python
false
false
1,205
py
''' 罗马数字包含以下七种字符: I, V, X, L,C,D 和 M。 字符 数值 I 1 V 5 X 10 L 50 C 100 D 500 M 1000 例如, 罗马数字 2 写做 II ,即为两个并列的 1。12 写做 XII ,即为 X + II 。 27 写做 XXVII, 即为 XX + V + II 。 通常情况下,罗马数字中小的数字在大的数字的右边。但也存在特例,例如 4 不写做 IIII,而是 IV。数字 1 在数字 5 ...
[ "wudi@hetao101.com" ]
wudi@hetao101.com
5ee73a5d7a4d21e8ff1b542b13b9828616bbdac6
e02dbefe9f362c3e9b2849c1e22c0ab27e010164
/이것이 코딩 테스트다 - 연습문제/19. 1로 만들기.py
18fba447785ec8766aa41a48e8bf4090b6b8e8c1
[]
no_license
hoyeoon/CodingTest
ac77574539a7a96cbdb64eb1768ba20ab6ad3b4f
4d34b422f0dc85f3d506a6c997f3fa883b7162ab
refs/heads/master
2023-06-05T17:43:38.348537
2021-06-28T10:05:22
2021-06-28T10:05:22
378,081,127
0
0
null
null
null
null
UTF-8
Python
false
false
738
py
d = [0] * 30000 d[1], d[2], d[3], d[4], d[5] = 0, 1, 1, 2, 1 x = int(input()) for i in range(6, x + 1): if i % 2 == 0 and i % 3 == 0 and i % 5 == 0: d[i] = min(d[i - 1], d[i // 2], d[i // 3], d[i // 5]) + 1 elif i % 2 == 0 and i % 3 == 0: d[i] = min(d[i - 1], d[i // 2], d[i // 3]) + 1 elif...
[ "chy1995@ajou.ac.kr" ]
chy1995@ajou.ac.kr
54ceb5d460c811307a4e5e8a7f54e6b990c302b3
0fbd56d4a2ee512cb47f557bea310618249a3d2e
/official/vision/image_classification/configs/base_configs.py
efdcdc0b4327871dd04a854f057cbcdf84a9db9e
[ "Apache-2.0" ]
permissive
joppemassant/models
9968f74f5c48096f3b2a65e6864f84c0181465bb
b2a6712cbe6eb9a8639f01906e187fa265f3f48e
refs/heads/master
2022-12-10T01:29:31.653430
2020-09-11T11:26:59
2020-09-11T11:26:59
294,675,920
1
1
Apache-2.0
2020-09-11T11:21:51
2020-09-11T11:21:51
null
UTF-8
Python
false
false
7,936
py
# Lint as: python3 # Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
[ "gardener@tensorflow.org" ]
gardener@tensorflow.org
55e3fff99a6a53657ed6aa3797ba4ebd66cd1a7a
be84495751737bbf0a8b7d8db2fb737cbd9c297c
/renlight/tests/renderer/test_sampler.py
b751d8606bc7eb66c363b055ea2f3a538bd86591
[]
no_license
mario007/renmas
5e38ff66cffb27b3edc59e95b7cf88906ccc03c9
bfb4e1defc88eb514e58bdff7082d722fc885e64
refs/heads/master
2021-01-10T21:29:35.019792
2014-08-17T19:11:51
2014-08-17T19:11:51
1,688,798
1
0
null
null
null
null
UTF-8
Python
false
false
1,747
py
import unittest from tdasm import Runtime from renlight.sdl.shader import Shader from renlight.sdl import FloatArg, IntArg from renlight.renderer.sampler import Sampler class SamplerTest(unittest.TestCase): def test_sampler(self): sam = Sampler() sam.set_resolution(2, 2) sam.load('regu...
[ "mvidov@yahoo.com" ]
mvidov@yahoo.com
06a22bd4d2ef980a8bf8ceb2a13a88b006b28f39
5a82795c3860745112b7410d9060c5ef671adba0
/leetcode/Kth Smallest Element in a BST.py
b169e7cff32636d2f2a3af72ff6449ae26da5f4b
[]
no_license
ashishvista/geeks
8e09d0f3a422c1c9a1c1b19d879ebafa31b62f44
1677a304fc7857a3054b574e8702491f5ce01a04
refs/heads/master
2023-03-05T12:01:03.911096
2021-02-15T03:00:56
2021-02-15T03:00:56
336,996,558
0
0
null
null
null
null
UTF-8
Python
false
false
1,268
py
# Definition for a binary tree node. from collections import deque class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right def deserialize(arr): n = len(arr) dq = deque() root = TreeNode(int(arr[0])) dq.append(r...
[ "ashish@groomefy.com" ]
ashish@groomefy.com
a49e3ed005188518b84eb367a76afe8c6aed96d3
2a5f67db7dfe10c21ee5a148731c4e95cf5f613a
/30 Days of Code/Day 24 - More Linked Lists.py
7fe94449c1d6e0bf7eeac377f35f9172729ebeb4
[]
no_license
bayoishola20/HackerRank
b8d49da0ff648463fda4e590b662b8914550402c
466b17c326ccaf208239fa40dee014efeb9b8561
refs/heads/master
2021-09-06T09:19:51.979879
2018-02-04T23:40:02
2018-02-04T23:40:02
64,167,170
1
3
null
null
null
null
UTF-8
Python
false
false
1,270
py
#==================== GIVEN CODE ======================# class Node: def __init__(self,data): self.data = data self.next = None class Solution: def insert(self,head,data): p = Node(data) if head==None: head=p elif head.next==None: head.next...
[ "bayoishola20@yahoo.com" ]
bayoishola20@yahoo.com
59be0bf880afb7289bde3428351fe26aef1322ec
bda892fd07e3879df21dcd1775c86269587e7e07
/leetcode/0058_E_最后一个单词的长度.py
140ca073f044a5177a84e26a03f62afdfde003a6
[]
no_license
CrzRabbit/Python
46923109b6e516820dd90f880f6603f1cc71ba11
055ace9f0ca4fb09326da77ae39e33173b3bde15
refs/heads/master
2021-12-23T15:44:46.539503
2021-09-23T09:32:42
2021-09-23T09:32:42
119,370,525
2
0
null
null
null
null
UTF-8
Python
false
false
1,021
py
''' 给你一个字符串 s,由若干单词组成,单词之间用空格隔开。返回字符串中最后一个单词的长度。如果不存在最后一个单词,请返回 0 。 单词 是指仅由字母组成、不包含任何空格字符的最大子字符串。 示例 1: 输入:s = "Hello World" 输出:5 示例 2: 输入:s = " " 输出:0 提示: 1 <= s.length <= 104 s 仅有英文字母和空格 ' ' 组成 ''' class Solution: def _lengthOfLastWord(self, s: str) -> int: left = -1 right = ...
[ "1016864609@qq.com" ]
1016864609@qq.com
3f006e7288b20ee04ed3cd9979855e75f941bfc2
2dd560dc468af0af4ca44cb4cd37a0b807357063
/Leetcode/1441. Build an Array With Stack Operations/solution2.py
6a4545eaa5d00ee6fae207f89c0238a4684c2e0d
[ "MIT" ]
permissive
hi0t/Outtalent
460fe4a73788437ba6ce9ef1501291035c8ff1e8
8a10b23335d8e9f080e5c39715b38bcc2916ff00
refs/heads/master
2023-02-26T21:16:56.741589
2021-02-05T13:36:50
2021-02-05T13:36:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
255
py
class Solution: def buildArray(self, target: List[int], n: int) -> List[str]: result = [] for i in range(1, max(target) + 1): result.append("Push") if i not in target: result.append("Pop") return result
[ "info@crazysquirrel.ru" ]
info@crazysquirrel.ru
db3b6353b6a685819d237c58f1e1af3c774e7fa3
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03272/s087307449.py
fcf22c1051c98aacd570a62fca520414b8ef122a
[]
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
62
py
n,i = map(int,input().split()) count = n - i + 1 print(count)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
36dad26e1bf89e1f0c9698c64e31fcf54f3fc7c0
37d9bb2869fe491a67c97de6adc3e0e1693ff82a
/StringMethods.py
6d8af7c493506723fa8c73866f566114291010f2
[]
no_license
qinyanjuidavid/Self-Learning
ffbcb62f2204c5dedd0cde3a116b653da77b3702
8c6a5b3a7f250af99538e9f23d01d8a09839b702
refs/heads/master
2023-03-31T10:20:21.225642
2021-04-03T08:04:27
2021-04-03T08:04:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
680
py
#strip(), len(),lower(),upper(),split() name=" Hello " print(name.strip())#It removes all the spaces in a string nums=" 1 2 3 1 4 " print(nums.strip())#The spaces removed are before and after print(len(name)) #Checks the length of the string name="JOHN DOE" print(name.lower()) #changes the strings to be in lower...
[ "davidkinyanjui052@gmail.com" ]
davidkinyanjui052@gmail.com
1179ed1a0a4a8b465f26500da471f61dec3bfdb5
5251a6be594dff7e56bbe6b4f968ea43c3315471
/atoll/config.py
5dd83a5e843ac4f91ecf18cf5ba16b102eadb80f
[ "Apache-2.0" ]
permissive
coralproject/atoll
aec2e529fd7c5164864c4a2e9a501a8477fc3872
2b62b37d3a320480264c4a0242532aad99c338ec
refs/heads/master
2021-07-14T03:39:09.761086
2016-07-26T18:57:16
2016-07-26T18:57:16
43,079,410
12
1
NOASSERTION
2021-03-19T21:53:15
2015-09-24T16:37:32
Python
UTF-8
Python
false
false
437
py
""" Loads the service configuration. """ import os import yaml conf = { 'worker_broker': 'amqp://guest:guest@localhost/', 'worker_backend': 'amqp', 'executor_host': '127.0.0.1:8786' } user_conf_path = os.environ.get('ATOLL_CONF', None) if user_conf_path is not None: with open(user_conf_path, 'r') a...
[ "f+accounts@frnsys.com" ]
f+accounts@frnsys.com
cd41d985c603ed0a4723965bfa70df8a138d1f06
f95d2646f8428cceed98681f8ed2407d4f044941
/FlaskDemo04/run01.py
97f6b559d276571f0ef32a6508c258ebd248ba6e
[]
no_license
q2806060/python-note
014e1458dcfa896f2749c7ebce68b2bbe31a3bf8
fbe107d668b44b78ae0094dbcc7e8ff8a4f8c983
refs/heads/master
2020-08-18T01:12:31.227654
2019-10-17T07:40:40
2019-10-17T07:40:40
215,731,114
1
0
null
null
null
null
UTF-8
Python
false
false
486
py
from flask import Flask from flask_sqlalchemy import SQLAlchemy #导入pymysql用来替代MySQLdb import pymysql # pymysql.install_as_MySQLdb() app = Flask(__name__) #为app指定连库字符 app.config['SQLALCHEMY_DATABASE_URI']="mysql+pymysql://root:123456@localhost:3306/flask" #取消SQLAlchemy的信号追踪 app.config['SQLALCHEMY_TRACK_MODIFICATIONS...
[ "C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn" ]
C8916BA958F57D5A740E38E94644A3F8@i-search.com.cn
9f8c4569973317f1d4012e8eb9299a38aae2c3ac
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/sieve-big-2820.py
40ba804c3b66a2d92304552027939b5501509d12
[]
no_license
Virtlink/ccbench-chocopy
c3f7f6af6349aff6503196f727ef89f210a1eac8
c7efae43bf32696ee2b2ee781bdfe4f7730dec3f
refs/heads/main
2023-04-07T15:07:12.464038
2022-02-03T15:42:39
2022-02-03T15:42:39
451,969,776
0
0
null
null
null
null
UTF-8
Python
false
false
31,740
py
# A resizable list of integers class Vector(object): items: [int] = None size: int = 0 def __init__(self:"Vector"): self.items = [0] # Returns current capacity def capacity(self:"Vector") -> int: return len(self.items) # Increases capacity of vector by one element def incr...
[ "647530+Virtlink@users.noreply.github.com" ]
647530+Virtlink@users.noreply.github.com
c9816561b3e191bbcd544b2288a6e29705b965fe
60dd6073a3284e24092620e430fd05be3157f48e
/tiago_public_ws/build/pal_gripper/pal_gripper/catkin_generated/pkg.develspace.context.pc.py
ffa8184246ae074a71bbd494df35fa3b06cbfed1
[]
no_license
SakshayMahna/Programming-Robots-with-ROS
e94d4ec5973f76d49c81406f0de43795bb673c1e
203d97463d07722fbe73bdc007d930b2ae3905f1
refs/heads/master
2020-07-11T07:28:00.547774
2019-10-19T08:05:26
2019-10-19T08:05:26
204,474,383
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else [] PROJECT_CATKIN_DEPENDS = "".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else [] PROJECT_NAME = "pal_gripper" PROJECT_SPACE_DIR = "/me...
[ "sakshum19@gmail.com" ]
sakshum19@gmail.com
f903c442aee0263c16da660e86b0ec16555e3da6
d45de88d276bfa76ad0345b718c50f5d3c0f3d7f
/days_until_event.py
c3d8fafc5001f53f473ee5c63372eb3e0ab29e38
[]
no_license
donniewherman/Pythonista_scene
3c6d5ffa07f4c63fe06ee75d54937c8ea98387e8
11e43bf94c70c10fe74f931a7ab43df9ccf4e3d1
refs/heads/master
2021-01-17T06:00:12.676067
2015-08-07T21:40:41
2015-08-07T21:40:41
42,383,096
1
0
null
2015-09-13T04:02:48
2015-09-13T04:02:47
null
UTF-8
Python
false
false
1,217
py
# See: https://omz-forums.appspot.com/pythonista/post/6142748495183872 import console, datetime, scene fmt = '{} is {} days away.' class days_until_event(scene.Scene): def __init__(self, event_name, event_date): self.event_name = event_name self.event_date = event_date scene.run(self) ...
[ "cclauss@bluewin.ch" ]
cclauss@bluewin.ch
a6c70a7e6b270d06977f70f509ce24378ca308aa
bf542e318773faaaa48931f08f64264748514024
/utils/sub8_ros_tools/sub8_misc_tools/__init__.py
d501d40f359d107e294b89b9839daf1c0dab63bb
[ "MIT" ]
permissive
guojiyao/Sub8
3b30f517e65cf127fd1e6ee797e4318c8c4be227
6de4bcf20eb2863ec0d06234539ffb19892009f7
refs/heads/master
2020-05-21T10:12:18.471001
2016-03-29T00:45:35
2016-03-29T00:45:35
54,933,672
0
0
null
2016-03-29T00:37:37
2016-03-29T00:37:36
null
UTF-8
Python
false
false
69
py
from download import download_and_unzip from download import download
[ "jpanikulam@ufl.edu" ]
jpanikulam@ufl.edu
8f362b8ed7c76e2766013bb4e6803278ae161094
981d425745639e5338de6847184fac2ab0175ce8
/src/test.py
087de4f1eb7b797d4bdeeecfa6a5b65c9a23e61e
[]
no_license
exploring-realities/Mobi
17f06dd0fcdda30eab9519992d29d2530f4bc307
f6f0e5d779424979d32e8175066bebe83399f289
refs/heads/master
2021-07-06T05:28:15.451058
2017-10-01T22:53:00
2017-10-01T22:53:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
275
py
#!/usr/bin/python import datetime import crawler now = datetime.datetime.now() on = str(now.day) + "." + str(now.month) + "." + str(now.year) at = str(now.hour) + ":" + str(now.minute) response_json = crawler.request_station_info("Hallerstrasse", at, on) print response_json
[ "vinh-ngu@hotmail.com" ]
vinh-ngu@hotmail.com
d432478397bf133a423bca8172f73dfbdf6dd036
a34e3d435f48ef87477d3ae13ca8a43015e5052c
/pyopengl2.py
788e2feeea3f13c7cc5bba01fafc836249f2b5da
[]
no_license
haehn/sandbox
636069372fc7bb7fd72b5fde302f42b815e8e9b0
e49a0a30a1811adb73577ff697d81db16ca82808
refs/heads/master
2021-01-22T03:39:03.415863
2015-02-11T23:16:22
2015-02-11T23:16:22
26,128,048
1
0
null
null
null
null
UTF-8
Python
false
false
6,880
py
import sys from OpenGL.GLUT import * from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GL import shaders from OpenGL.arrays import vbo # from vrml.arrays import * from numpy import concatenate, identity, transpose, multiply import numpy from datetime import datetime class Sample15: def __init__(self):...
[ "haehn@seas.harvard.edu" ]
haehn@seas.harvard.edu
267300a0c6be411af5da94c956325769ac8c743b
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_55/726.py
2e1116bc8beaa4f056422822aff316eb7493302d
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,012
py
#!/usr/bin/env python import sys def Take(k, gs, i): 'Memoize this.' queue = gs[i:] + gs[:i] taken = 0 N = len(gs) f = 0 while k and f < N: next_group = queue[f] if next_group > k: break k -= next_group taken += next_group f += 1 return tak...
[ "miliar1732@gmail.com" ]
miliar1732@gmail.com
4bfb6153a6a1331122310bcd35d0ddd45cc654dd
86c85939a566e11c87ef0cd0668ba2dd29e83b7b
/tests/core/val-type/test_val_type.py
d518d13effb9aaecb0cd406d03956f131791d13a
[ "NCSA", "LicenseRef-scancode-unknown-license-reference" ]
permissive
ethereum/py-wasm
eca49823f5a683f125d89ed6a9c45e5f5eee7139
41a6d07a620dfc4f590463dd038dffe4efe0c8c6
refs/heads/master
2023-08-02T00:39:43.402121
2019-03-05T03:29:25
2019-03-05T03:29:25
161,232,280
94
20
NCSA
2023-02-17T18:50:24
2018-12-10T20:25:19
Python
UTF-8
Python
false
false
1,965
py
import itertools import pytest from wasm.datatypes import ( BitSize, ValType, ) @pytest.mark.parametrize( 'get_X_type,bit_size', itertools.product( [ValType.get_integer_type, ValType.get_float_type], (0, 31, 33, 63, 65, BitSize.b8, BitSize.b16), ), ) def test_get_X_type_invalid_b...
[ "pipermerriam@gmail.com" ]
pipermerriam@gmail.com
89c182daa5b7726cb8251be1c823b804cda7fcad
2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae
/python/python_18429.py
359b1b34ef43ef6954446d0b6d9a5e7a29cc9db7
[]
no_license
AK-1121/code_extraction
cc812b6832b112e3ffcc2bb7eb4237fd85c88c01
5297a4a3aab3bb37efa24a89636935da04a1f8b6
refs/heads/master
2020-05-23T08:04:11.789141
2015-10-22T19:19:40
2015-10-22T19:19:40
null
0
0
null
null
null
null
UTF-8
Python
false
false
172
py
# ImportError: No module named PyQt5 - OSX Mavericks export set PYTHONPATH=$PYTHONPATH:/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
[ "ubuntu@ip-172-31-7-228.us-west-2.compute.internal" ]
ubuntu@ip-172-31-7-228.us-west-2.compute.internal
c432933ce0fe73abcaf7f23a86fb750a7156178d
145205b1b9b9042a5809bf10c05b546be2f27f6f
/chapter07/interface_demo.py
a0b503cdd5a26b870bfa47440dd50e7e300bc64d
[]
no_license
tangkaiyang/python_interface_development_and_testing
43ff43ee86788bcb5c07a26d81e8eef0294771ca
1349d309a2b551f17de3aaff266548e53dd10c4b
refs/heads/master
2020-04-25T02:06:43.543323
2019-03-13T06:32:10
2019-03-13T06:32:10
172,427,886
0
0
null
null
null
null
UTF-8
Python
false
false
457
py
from zope.interface import Interface from zope.interface.declarations import implementer # 定义接口 class IHost(Interface): def goodmorning(self, host): """Say good morning to host""" @implementer(IHost) # 继承接口 class Host: def goodmorning(self, guest): """Say good morning to guest""" re...
[ "945541696@qq.com" ]
945541696@qq.com
216517ac51305fb90d8b4e5ea4fb6742af575ab2
5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d
/alipay/aop/api/response/AlipayEbppInvoiceEnterpriseconsumeEnterpriseopenruleQueryResponse.py
5bb6da84803ce7b34c17434f46cfbd99b4b8b08a
[ "Apache-2.0" ]
permissive
alipay/alipay-sdk-python-all
8bd20882852ffeb70a6e929038bf88ff1d1eff1c
1fad300587c9e7e099747305ba9077d4cd7afde9
refs/heads/master
2023-08-27T21:35:01.778771
2023-08-23T07:12:26
2023-08-23T07:12:26
133,338,689
247
70
Apache-2.0
2023-04-25T04:54:02
2018-05-14T09:40:54
Python
UTF-8
Python
false
false
1,200
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.EnterpriseOpenRuleInfo import EnterpriseOpenRuleInfo class AlipayEbppInvoiceEnterpriseconsumeEnterpriseopenruleQueryResponse(AlipayResponse): def __init__(self):...
[ "jishupei.jsp@alibaba-inc.com" ]
jishupei.jsp@alibaba-inc.com
14e4a43f8a1d2f0490b0464b20eace77b3771c27
f43c8f0f722df416890042555f3ab340af4148c5
/misc-scripts/parseglobalma.py
8bd9407156bf3f6972c636351178014131a2ef92
[ "MIT" ]
permissive
RenaKunisaki/StarFoxAdventures
98e0b11df4f8b28bbe5eabe203b768ecfc01f1e7
f7dc76f11f162d495cd86ca819f911946e5bfecd
refs/heads/master
2023-07-23T18:45:34.192956
2023-07-10T19:19:43
2023-07-10T19:19:43
211,404,362
30
5
MIT
2022-05-05T20:10:19
2019-09-27T21:27:49
C
UTF-8
Python
false
false
16,205
py
#!/usr/bin/env python3 """Read GLOBALMA.bin and generate a map grid image.""" import sys import math import struct from PIL import Image, ImageDraw, ImageFont def printf(fmt, *args, **kwargs): print(fmt % args, end='', **kwargs) def readStruct(file, fmt, offset=None): size = struct.calcsize(fmt) if offse...
[ "hyperhacker@gmail.com" ]
hyperhacker@gmail.com
5f28a9aefa463f398ffd5a49c5f88a2014da21b2
a8f3204139d7f68c23bd8411b8594899ba792e79
/test/test_mgi.py
9355c91926884348daa41be469666e8d52450f2a
[ "BSD-3-Clause" ]
permissive
switt4/sequana
874189c869ccc07a592c0a6a3c77999adcabe025
7bd4f32607d62bebfd709628abc25bfda504761b
refs/heads/master
2023-02-13T13:06:26.021426
2020-12-01T14:49:02
2020-12-01T14:49:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
170
py
from sequana.mgi import MGI from sequana import sequana_data def test_mgi(): m = MGI(sequana_data("test_mgi.fqStat.txt")) m.plot_acgt() m.boxplot_quality()
[ "cokelaer@gmail.com" ]
cokelaer@gmail.com
587d5499f4095c8e2541f77a2b56546daa77f7a1
ecee6e84ba18100b621c7e06f493ae48e44a34fe
/build/navigation/rotate_recovery/catkin_generated/pkg.develspace.context.pc.py
8169a859e64afd3b5511ba8fc9b971732b77cb60
[]
no_license
theleastinterestingcoder/Thesis
6d59e06b16cbe1588a6454689248c88867de2094
3f6945f03a58f0eff105fe879401a7f1df6f0166
refs/heads/master
2016-09-05T15:30:26.501946
2015-05-11T14:34:15
2015-05-11T14:34:15
31,631,628
0
0
null
null
null
null
UTF-8
Python
false
false
544
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/alfred/quan_ws/src/navigation/rotate_recovery/include".split(';') if "/home/alfred/quan_ws/src/navigation/rotate_recovery/include" != "" else [] PROJECT_CATKIN_DEPENDS = "roscpp;pluginlib".replac...
[ "quanzhou64@gmail.com" ]
quanzhou64@gmail.com
a501a4ab05f3d9e89675e2356cd1b41b8b15c30b
a995f917e307be0d427cc9cfd3dbdd045abdd097
/算法基础课/1.基础算法/AcWing 787. 归并排序.py
e744c5c260576841526218d12f96711f9577710f
[]
no_license
Andrewlearning/Leetcoding
80d304e201588efa3ac93626021601f893bbf934
819fbc523f3b33742333b6b39b72337a24a26f7a
refs/heads/master
2023-04-02T09:50:30.501811
2023-03-18T09:27:24
2023-03-18T09:27:24
243,919,298
1
4
null
null
null
null
UTF-8
Python
false
false
1,080
py
def merge_sort(arr, l, r, temp): if l >= r: return # 1.选取中点 mid = (l + r) // 2 # 2.递归排序 merge_sort(arr, l, mid, temp) merge_sort(arr, mid + 1, r, temp) # 3.归并操作,原数组的左右两半指针 i = l j = mid + 1 # temp数组的指针 k = 0 while (i <= mid and j <= r): if arr[i] <= arr[...
[ "yifu3@ualberta.ca" ]
yifu3@ualberta.ca
972744e8cd7d968799613fd102bb9eb9d912e243
33195bfc9e62bb00ce54f050febb6a3a0929a34b
/ms_face_api/src/ms_face_api/face.py
f4e45a229df977cece372f41acae8dfe64ccfceb
[ "MIT" ]
permissive
LCAS/ros_web_apis
8f48e08b52433d6d97173cac1debd45a41681110
4b42bcc3c970769e8c814525e566ae37b506f415
refs/heads/master
2021-10-24T20:33:27.444877
2019-03-28T15:54:42
2019-03-28T15:54:42
82,785,629
0
4
MIT
2019-03-28T15:54:43
2017-02-22T09:25:33
Python
UTF-8
Python
false
false
6,400
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ File: face.py Description: Face section of the Cognitive Face API. """ from . import util def detect(image, face_id=True, landmarks=False, attributes=''): """Detect human faces in an image and returns face locations, and optionally with `face_id`s, landmarks, ...
[ "marc@hanheide.net" ]
marc@hanheide.net
d8d1812873a44c27109fa4743dfcfd87d8b54ca3
d2f63dd0bb5bd8fa7e9ae4ca828cbfe710390f33
/horizon/horizon/dashboards/nova/images_and_snapshots/snapshots/forms.py
aad9e6b93451418dbc9496b6625eebdf3778f553
[ "Apache-2.0" ]
permissive
citrix-openstack/horizon
4df36bec738a212cbb320b8ac4caf624a883815e
7987e68f135895728f891c2377b589f701d8106e
HEAD
2016-09-11T11:30:42.348228
2012-01-24T01:46:06
2012-01-24T01:46:06
2,492,995
2
0
null
null
null
null
UTF-8
Python
false
false
2,224
py
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2011 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Copyright 2011 Nebula, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # no...
[ "gabriel@strikeawe.com" ]
gabriel@strikeawe.com
1190c16c78aea4a60bd6c95b91fa8737499b53b0
95d32a98d0715816fd763c6df356069d91d74f33
/021.py
83ecc3eddb072db50e4b272f4ea5ba096ba4d2c3
[]
no_license
jod35/coding-challenges
1f65d08d92c143004f44eafd4922ec0dcb652a1f
21cfa2853dac70055d2b20155e03dff1c235ee02
refs/heads/master
2022-12-14T22:31:37.344450
2020-09-18T19:47:51
2020-09-18T19:47:51
291,939,964
0
0
null
null
null
null
UTF-8
Python
false
false
153
py
firstname=input("Enter your first name: ") surname=input("Enter your surname: ") print(f"{firstname} {surname} is of length {len(firstname+surname)}")
[ "jodestrevin@gmail.com" ]
jodestrevin@gmail.com
cc45974788b4c903867236a1b7f7e11984d3e59a
19cec240505e27546cb9b10104ecb16cc2454702
/linux/lang/python/flume/flmos.py
1e2f7237d84356a384547d47f79bf2e46c0c1cdc
[]
no_license
imosts/flume
1a9b746c5f080c826c1f316a8008d8ea1b145a89
a17b987c5adaa13befb0fd74ac400c8edbe62ef5
refs/heads/master
2021-01-10T09:43:03.931167
2016-03-09T12:09:53
2016-03-09T12:09:53
53,101,798
0
0
null
null
null
null
UTF-8
Python
false
false
45,843
py
"""High level wrappers for wrapping auto-swig-generated code.""" # # still import the fli._* stuff with this. # import flume_internal as fli import flume import posix import errno import os import struct ##----------------------------------------------------------------------- def raise_err (s=None): """Raise a...
[ "imosts" ]
imosts
3ed7586381e1664293709ab9dac14351df1831e7
6999630ddf8559c9c6bee40a1dfa4a53d2ce4867
/get_proxy_from_XMX.py
5b1e4d26017e8ab210b7b69b68e4d87cb4dd843d
[]
no_license
possager/YFZX_new
a6a21cd7a8d6731af5ce87aae9887408472d295a
057925659a7fcae4179d68cf2e0fca576e1de9f2
refs/heads/master
2021-01-02T22:33:00.488949
2017-11-27T00:49:47
2017-11-27T00:49:47
99,334,747
0
0
null
null
null
null
UTF-8
Python
false
false
2,029
py
#_*_coding:utf-8_*_ #因为reids在idc上挂了,所以写了这么一个新的代理 import requests import json import time from saveresult import BASIC_FILE import random import datetime class Proxy: # def __init__(self,url_proxy='http://172.16.2.11:8899'): def __init__(self,url_proxy='http://172.16.1.4:8899/'): self.url_proxy=url_...
[ "passager@163.com" ]
passager@163.com
9f653ab13307676c72916817ec6736cef0226239
d41d18d3ea6edd2ec478b500386375a8693f1392
/plotly/validators/carpet/aaxis/_tickvals.py
d662833232a93d94748922377e31518cbba4b730
[ "MIT" ]
permissive
miladrux/plotly.py
38921dd6618650d03be9891d6078e771ffccc99a
dbb79e43e2cc6c5762251537d24bad1dab930fff
refs/heads/master
2020-03-27T01:46:57.497871
2018-08-20T22:37:38
2018-08-20T22:37:38
145,742,203
1
0
MIT
2018-08-22T17:37:07
2018-08-22T17:37:07
null
UTF-8
Python
false
false
422
py
import _plotly_utils.basevalidators class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): def __init__( self, plotly_name='tickvals', parent_name='carpet.aaxis', **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_na...
[ "adam.kulidjian@gmail.com" ]
adam.kulidjian@gmail.com
654f906f59ef8bb22afe907524e10160829658d8
1f006f0c7871fcde10986c4f5cec916f545afc9f
/apps/ice/plugins/required/plugin_info.py
efab21549b3cbef46e32e6e38adbc4c8701eb49f
[]
no_license
ptsefton/integrated-content-environment
248b8cd29b29e8989ec1a154dd373814742a38c1
c1d6b5a1bea3df4dde10cb582fb0da361dd747bc
refs/heads/master
2021-01-10T04:46:09.319989
2011-05-05T01:42:52
2011-05-05T01:42:52
36,273,470
0
0
null
null
null
null
UTF-8
Python
false
false
3,006
py
# # Copyright (C) 2007 Distance and e-Learning Centre, # University of Southern Queensland # # 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 2 of the License, or #...
[ "raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05" ]
raward@gmail.com@110e3293-9ef9-cb8f-f479-66bdb1942d05
20a5389145ea522daccca65f7fb7d8b787f1b09e
978248bf0f275ae688f194593aa32c267832b2b6
/xlsxwriter/test/comparison/test_set_start_page01.py
11f627dcef39de7dc1ca840d9031d251ff300970
[ "BSD-2-Clause-Views" ]
permissive
satish1337/XlsxWriter
b0c216b91be1b74d6cac017a152023aa1d581de2
0ab9bdded4f750246c41a439f6a6cecaf9179030
refs/heads/master
2021-01-22T02:35:13.158752
2015-03-31T20:32:28
2015-03-31T20:32:28
33,300,989
1
0
null
null
null
null
UTF-8
Python
false
false
1,189
py
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org # from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """...
[ "jmcnamara@cpan.org" ]
jmcnamara@cpan.org
ab1b83f541859e0497ec43adf826cb8f44c0793e
ef6229d281edecbea3faad37830cb1d452d03e5b
/ucsmsdk/mometa/sw/SwFcMon.py
2bf6bd3af9a6b1ae66a826281d4f11a20c9017d0
[ "Apache-2.0" ]
permissive
anoop1984/python_sdk
0809be78de32350acc40701d6207631322851010
c4a226bad5e10ad233eda62bc8f6d66a5a82b651
refs/heads/master
2020-12-31T00:18:57.415950
2016-04-26T17:39:38
2016-04-26T17:39:38
57,148,449
0
0
null
null
null
null
UTF-8
Python
false
false
22,479
py
"""This module contains the general information for SwFcMon ManagedObject.""" import sys, os from ...ucsmo import ManagedObject from ...ucscoremeta import UcsVersion, MoPropertyMeta, MoMeta from ...ucsmeta import VersionMeta class SwFcMonConsts(): ADMIN_STATE_DISABLED = "disabled" ADMIN_STATE_ENABLED = "enab...
[ "test@cisco.com" ]
test@cisco.com
034ebb7456f82467d4f6eac71983f9f9b364a2db
306045a1cd0fb362f46d4db88311f442311bbc16
/examples/idioms/programs/002.0011-print-hello-10-times.py
3793da0117c8784ebd602f2ed2ba9a02168556cd
[ "MIT" ]
permissive
laowantong/paroxython
608c9010a2b57c8f7ed5ea309e24035c2b2e44a3
a6d45829dd34f046d20e5bae780fbf7af59429cb
refs/heads/master
2023-09-01T05:18:29.687916
2022-11-07T17:40:31
2022-11-07T17:40:31
220,820,424
36
5
MIT
2023-09-08T04:44:58
2019-11-10T16:54:56
Python
UTF-8
Python
false
false
307
py
"""Print Hello 10 times. Loop to execute some code a constant number of times Source: programming-idioms.org """ # Implementation author: # Created on 2015-11-30T12:37:23.746597Z # Last modified on 2019-09-27T02:17:54.987284Z # Version 2 # Indention is mandatory for i in range(10): print("Hello")
[ "laowantong@users.noreply.github.com" ]
laowantong@users.noreply.github.com
8dfe4354130dd664527f1ddd3ce0a81ac5a51536
3c9103046db53185cfedc1598933a790718e4d57
/pygame_assets/tests/test_loaders.py
e8d9dde92a8a2bda26361859538fcfebf686ce40
[ "MIT" ]
permissive
florimondmanca/pygame-assets
9aabe7e482e72c37a95f9283f6b67e47acadf941
1ad7870800866d2b1b287d8063bd10edd99fd521
refs/heads/master
2021-08-19T12:46:04.149161
2017-11-25T12:14:06
2017-11-25T12:14:06
110,216,972
3
0
null
2017-11-11T12:28:38
2017-11-10T07:31:56
Python
UTF-8
Python
false
false
5,844
py
"""Tests for the loaders API.""" import unittest import pygame from pygame_assets.loaders import image as load_image from pygame_assets.loaders import image_with_rect as load_image_with_rect from pygame_assets.loaders import sound as load_sound from pygame_assets.loaders import music as load_music from pygame_assets...
[ "florimond.manca@gmail.com" ]
florimond.manca@gmail.com
18c381de7282cb9e143b3c630f47752bc1dca908
894b8a99a3e05dda63ff156d9a2f3ce81f25c3ba
/imix/data/reader/textvqa_reader.py
984acecbce85bfcc240b0181dd9e58d455efa3cc
[ "Apache-2.0" ]
permissive
jjInsper/iMIX
e5e46c580e2925fb94a2571c25777ce504ffab14
99898de97ef8b45462ca1d6bf2542e423a73d769
refs/heads/master
2023-08-08T01:24:47.161948
2021-09-16T09:35:35
2021-09-16T09:35:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,379
py
from ..utils.stream import ItemFeature from .base_reader import IMIXDataReader from imix.utils.common_function import update_d1_with_d2 class TextVQAReader(IMIXDataReader): def __init__(self, cfg): super().__init__(cfg) # assert self.default_feature, ('Not support non-default features now.') ...
[ "hsslab.inspur@gmail.com" ]
hsslab.inspur@gmail.com
08d782838db68810147ca27d62dcd4ca28c26ec9
e81d274d6a1bcabbe7771612edd43b42c0d48197
/Django/day76(中间件)/demo/webapp/user/views.py
45a2bf2c3f84afbb53964e886aeb9bd72f7aabe7
[ "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
3,800
py
from django.shortcuts import render,redirect from user.models import * from hashlib import * from django.http import * from django.template import loader,RequestContext from django.core.urlresolvers import reverse from datetime import timedelta from django.views.decorators.csrf import csrf_exempt from PIL import Image...
[ "1025212779@qq.com" ]
1025212779@qq.com
afb62f95eaaa4ce1aada8b5967d560921f144a77
6d2e4655ce0a9012aea88c83e2f49572e6d06738
/day-04/day-04-passport-processing-01.py
e90db8ced1bc732920d3e2c46bd83a708a9de7e0
[]
no_license
LilySu/Advent_of_Code_2020
d7664b2e4469e5b0434db94d2452cdf62bc05daa
521da7b20b3e47d49a6180e2a2aad78b4d923efa
refs/heads/main
2023-02-05T00:51:56.363196
2020-12-26T03:43:30
2020-12-26T03:43:30
321,393,922
0
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
import re from typing import List from run_for_all_input_and_timer import Manager, timer setup = Manager() input = setup.get_file() @timer def solve(input: List[str]) -> int: counter = 0 passports = [] txt_block = [] req = ['byr', 'iyr', 'eyr', 'hgt', 'hcl', 'ecl', 'pid'] reqc = ['byr', 'iyr', '...
[ "LilySu@users.noreply.github.com" ]
LilySu@users.noreply.github.com
fd4b9bbad032fd93f0ca1ccbfe850ab51f7e941f
487ce91881032c1de16e35ed8bc187d6034205f7
/codes/CodeJamCrawler/16_0_2/babpls/pancake.py
d28c2b437d135f52472fcf97a0e7317ca7ed9438
[]
no_license
DaHuO/Supergraph
9cd26d8c5a081803015d93cf5f2674009e92ef7e
c88059dc66297af577ad2b8afa4e0ac0ad622915
refs/heads/master
2021-06-14T16:07:52.405091
2016-08-21T13:39:13
2016-08-21T13:39:13
49,829,508
2
0
null
2021-03-19T21:55:46
2016-01-17T18:23:00
Python
UTF-8
Python
false
false
324
py
fin = open('pancake.in', 'r') fout = open('pancake.out', 'w') count = 0 for line in fin: if count != 0: out = 0 cur = '+' for x in line[:-1][::-1]: if cur != x: cur = x out += 1 fout.write('Case #%d: %s\n' % (count, str(out))) count +...
[ "[dhuo@tcd.ie]" ]
[dhuo@tcd.ie]
ca694b19b1ddaa3393d91190f4addb316c5fd96e
8240abd177ece3a1cf2d753cc5694c1fec478709
/week1/codeingBat/list-2/04.py
def4b4029205be7d5c428af84f9eba1616343dda
[]
no_license
DastanB/BF-Django
255001185d8a8318bd19b750fe662a7f86b64d92
adcd1d968b94ea5097fd3d03338f031d5497d463
refs/heads/master
2022-10-27T06:44:56.648527
2018-11-24T18:33:35
2018-11-24T18:33:35
147,125,321
1
1
null
2022-10-19T08:22:54
2018-09-02T22:07:22
Python
UTF-8
Python
false
false
242
py
def sum13(nums): sum = 0 for i in range (len(nums)): if nums[i] != 13: sum += nums[i] elif nums[i] == 13 and i < len(nums)-1: nums[i]=0; nums[i+1] =0 return sum
[ "dastan211298@gmail.com" ]
dastan211298@gmail.com
96b80fdd8c80d38fff3348a20ed3e1d9e961fbd0
7356f77784c9ad3ffb3da4b3b60d844b23bb7b29
/dt_automator/maker/model/scene.py
3af1bfa5266ca3679ea24f3ea9652d3b6e46778b
[]
no_license
HsOjo/DTAutomator
5cc513e41a3eba0a595bb410bcee6ff990140805
d51c31ea04a79ed767f661ab0f9599b1c0f0bcef
refs/heads/master
2021-02-13T00:59:06.424434
2020-05-03T04:34:12
2020-05-03T04:34:12
244,647,246
0
0
null
null
null
null
UTF-8
Python
false
false
669
py
from typing import List from dt_automator.base.model import BaseModel from .feature import FeatureModel from .object import ObjectModel class SceneModel(BaseModel): _sub_model = dict( features=(list, FeatureModel), objects=(list, ObjectModel), ) def __init__(self, event: dict): s...
[ "1134031392@qq.com" ]
1134031392@qq.com
fbb829ca8e1fb3c025af62444ebef149db9b56ce
07996c7f93e7b200146cd314520100cf99d003bd
/raw data/40_tos_with_paragraph/code/crawlParagraph/new-env/bin/conch
4090c800e7522412274480e3f813286e46384855
[]
no_license
tjuyanghw/data_policy_analyzer
31ae683128ca5241fa8f0cb67e2f1132820c2d02
010a44ff024bd6d97b21f409f6c62f969e1fdc55
refs/heads/master
2022-07-02T19:23:14.141170
2020-05-13T16:24:11
2020-05-13T16:24:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
442
#!/Users/huthvincent/Desktop/scrapy/scrapyenv/crawlByOnce/new-env/bin/python # EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.10.0','console_scripts','conch' __requires__ = 'Twisted==19.10.0' import re import sys from pkg_resources import load_entry_point if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\...
[ "xiaoyue10131748@gmail.com" ]
xiaoyue10131748@gmail.com
eaf1784c0d34c71a35a44e1272093d4e512ce762
e81188e8ff0af121025b52f458ccf4aa9c0461a1
/watson/framework/views/renderers/jinja2.py
b68a79947b6efa25e8d14438c4b252d3f6d25473
[ "MIT" ]
permissive
SabatierBoris/watson-framework
f1be30d56a23654d5923ef02e4613786d30f8dfc
cfcdf4d8aedb6f3d49d4261122542354131389b8
refs/heads/master
2021-01-17T07:41:58.864120
2014-03-11T15:56:15
2014-03-11T15:56:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,362
py
# -*- coding: utf-8 -*- import importlib import types import jinja2 from watson.common import datastructures from watson.framework.views.renderers import abc TEMPLATES = { 'base': '''<!DOCTYPE html> <html> <head> {% block head %} <style type="text/css"> ...
[ "simon.coulton@gmail.com" ]
simon.coulton@gmail.com
1f2e7b1fdb24d899b19051ed50eaeaf5aeeb8f4e
b3fd61fdfd6ea82695d805c95321619423b836e6
/Tom_Sawyer.py
02e8482d4f8b2e35842c340ef85ed059753499c5
[]
no_license
sjogleka/General_codes
761967fd1175c97804d49290af9db10828d4900f
2772ea7b723c4ca680864b40b41fd34cc197726d
refs/heads/master
2021-07-16T07:41:05.841942
2020-10-14T01:49:12
2020-10-14T01:49:12
218,369,391
7
8
null
null
null
null
UTF-8
Python
false
false
312
py
def countWays(arr, n): pos = [0 for i in range(n)] p = 0 for i in range(n): if (arr[i] == 1): pos[p] = i + 1 p += 1 if (p == 0): return 0 ways = 1 for i in range(p - 1): ways *= pos[i + 1] - pos[i] return ways print(countWays([0,1],2))
[ "sjogleka@uncc.edu" ]
sjogleka@uncc.edu
443078e7b5c9ba43b126cdffff5dbe5295c466bb
b54a6c788ca6fd2b734899fe92e9ac7c288fbe01
/src/form/panel/ArmIKtoFKPanel.py
4c977840cce3d97515f2a61ced8c54ad896f8087
[ "MIT" ]
permissive
fehler001/motion_supporter
6bff2ed08b0dbf1b7457e6cbea3559f0a0f9fb6b
4a5db3746b80683bdc0f610211ebdb6e60e6941f
refs/heads/master
2023-08-01T12:32:07.716946
2021-09-24T19:59:35
2021-09-24T19:59:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
13,041
py
# -*- coding: utf-8 -*- # import os import wx import wx.lib.newevent import sys from form.panel.BasePanel import BasePanel from form.parts.BaseFilePickerCtrl import BaseFilePickerCtrl from form.parts.HistoryFilePickerCtrl import HistoryFilePickerCtrl from form.parts.ConsoleCtrl import ConsoleCtrl from form.worker.ArmI...
[ "garnet200521358@gmail.com" ]
garnet200521358@gmail.com
9e6e89a22d2678d31373d33e7f817a66b671619b
dcc491dd2fa4ece68728255d236fa6e784eef92d
/modules/2.78/bpy/ops/outliner.py
0825988f0ade8aa85899d877be01bb396b376431
[ "MIT" ]
permissive
cmbasnett/fake-bpy-module
a8e87d5a95d075e51133307dfb55418b94342f4f
acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55
refs/heads/master
2020-03-14T16:06:29.132956
2018-05-13T01:29:55
2018-05-13T01:29:55
131,691,143
0
0
null
null
null
null
UTF-8
Python
false
false
1,671
py
def action_set(action=''): pass def animdata_operation(type='CLEAR_ANIMDATA'): pass def constraint_operation(type='ENABLE'): pass def data_operation(type='SELECT'): pass def drivers_add_selected(): pass def drivers_delete_selected(): pass def expanded_toggle(): pass def group_l...
[ "nutti.metro@gmail.com" ]
nutti.metro@gmail.com
6daa0f6ca0ec15a3661dc69769cc530be5110fb4
ecbc312f6c5733a4c8ebcc9c3fccdba8bc35fd2f
/text_normalizer/collection/eng_basic.py
0432800ebf5e9c3e77fbc5fa67ff71ed84217fbd
[ "MIT" ]
permissive
Yoctol/text-normalizer
d200a4e020618e70162cbc52a3099d9a9203aab9
3609c10cd229c08b4623531e82d2292fc370734c
refs/heads/master
2020-03-11T00:56:25.337539
2018-11-06T04:08:37
2018-11-06T04:08:37
129,676,388
17
3
MIT
2018-11-06T04:08:38
2018-04-16T02:57:34
Python
UTF-8
Python
false
false
439
py
from .base_collection import BaseCollection from ..library import ( whitespace_char_text_normalizer, pure_strip_text_normalizer, eng_lowercase_text_normalizer, ) eng_basic_text_normalizer_collection = BaseCollection() eng_basic_text_normalizer_collection.add_text_normalizers( text_normalizers=[ ...
[ "s916526000@gmail.com" ]
s916526000@gmail.com
211dc4152498ce7967b1fc4828f9e7be31a98caf
e23a4f57ce5474d468258e5e63b9e23fb6011188
/125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetCode_with_solution/096_Unique_Binary_Search_Trees.py
6b846c2a2a8141cdb599d93d5826000dc142e497
[]
no_license
syurskyi/Python_Topics
52851ecce000cb751a3b986408efe32f0b4c0835
be331826b490b73f0a176e6abed86ef68ff2dd2b
refs/heads/master
2023-06-08T19:29:16.214395
2023-05-29T17:09:11
2023-05-29T17:09:11
220,583,118
3
2
null
2023-02-16T03:08:10
2019-11-09T02:58:47
Python
UTF-8
Python
false
false
419
py
c_ Solution o.. ___ numTrees n """ :type n: int :rtype: int """ # https://leetcode.com/discuss/86650/fantastic-clean-java-dp-solution-with-detail-explaination dp = [0] * (n + 1) dp[0] = 1 dp[1] = 1 ___ level __ r.. 2, n + 1 ___ roo...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
403157814d970ad27e47a62924b88c665308ac35
a1b375c3e98fe059dafc4d74cbcbcb99a0571e44
/accounts/migrations/0001_initial.py
ffea45cf723bf87cb80e5a6a39898021cf2970d0
[ "MIT" ]
permissive
mohsenamoon1160417237/Social_app
478a73552ceed8001c167be6caaf550cd58626bd
79fa0871f7b83648894941f9010f1d99f1b27ab3
refs/heads/master
2022-12-09T16:03:53.623506
2020-09-21T05:59:22
2020-09-21T06:02:03
297,242,915
0
0
null
null
null
null
UTF-8
Python
false
false
833
py
# Generated by Django 2.2 on 2020-09-10 17:48 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] opera...
[ "dramatic225@gmail.com" ]
dramatic225@gmail.com
e6a83c518c0ad5a0e277d860ea3388efff7b2f63
44a7330dfa4fe321eb432ee57a32328578dec109
/milk/unsupervised/som.py
abe3f6dbe5b47773ecfa3cb5f58852d2d220e17f
[ "MIT" ]
permissive
tzuryby/milk
7cb6760fad600e9e0d0c9216dc749db289b596fb
a7159b748414d4d095741978fb994c4affcf6b9b
refs/heads/master
2020-12-29T02:45:33.044864
2011-03-15T20:23:29
2011-03-15T20:25:11
1,485,748
2
0
null
null
null
null
UTF-8
Python
false
false
3,261
py
# -*- coding: utf-8 -*- # Copyright (C) 2010, Luis Pedro Coelho <lpc@cmu.edu> # vim: set ts=4 sts=4 sw=4 expandtab smartindent: # License: MIT. See COPYING.MIT file in the milk distribution from __future__ import division import numpy as np from ..utils import get_pyrandom from . import _som def putpoints(grid, poin...
[ "lpc@cmu.edu" ]
lpc@cmu.edu
54f59acba3e28e9e73601f99667ca553cc1f9529
738b6d6ec4572f5848940b6adc58907a03bda6fb
/tests/nutmeg4_pymcell4/0625_prob_changed_notification_disabled/model.py
bb49dac21464576f72e6b5d1f13578c087a464db
[ "Unlicense", "LicenseRef-scancode-public-domain", "MIT" ]
permissive
mcellteam/mcell_tests
09cd1010a356e0e07c88d7e044a73c5606c6e51a
34d2d967b75d56edbae999bf0090641850f4f4fe
refs/heads/master
2021-12-24T02:36:24.987085
2021-09-24T14:19:41
2021-09-24T14:19:41
174,733,926
1
0
null
null
null
null
UTF-8
Python
false
false
1,015
py
#!/usr/bin/env python3 import sys import os MCELL_PATH = os.environ.get('MCELL_PATH', '') if MCELL_PATH: sys.path.append(os.path.join(MCELL_PATH, 'lib')) else: print("Error: variable MCELL_PATH that is used to find the mcell library was not set.") sys.exit(1) import mcell as m params = m.bngl_utils.loa...
[ "ahusar@salk.edu" ]
ahusar@salk.edu
8bde1e7c8d3f15fa84f32773e315e26557bde33f
6c816f19d7f4a3d89abbb00eeaf43dd818ecc34f
/apps/detailQuestion/migrations/0001_initial.py
f55e7aa24232e3c288aacd4cef66e2d65e699b32
[]
no_license
reo-dev/bolt
29ee6aa7cfc96bd50fa7a7dae07fbaafc2125e54
d1a7859dd1ebe2f5b0e6e295047b620f5afdb92e
refs/heads/master
2023-07-13T04:05:57.856278
2021-08-27T09:07:03
2021-08-27T09:07:03
382,195,547
0
0
null
null
null
null
UTF-8
Python
false
false
2,297
py
# Generated by Django 3.0.8 on 2021-01-12 02:20 from django.db import migrations, models import django.db.models.deletion import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('project', '0013_proposaltype_name'), ] operations = [ migr...
[ "75593016+reo-dev@users.noreply.github.com" ]
75593016+reo-dev@users.noreply.github.com
a88524be820b8141ba2700ef02283fe69fe301c4
39bc55c2a4457bbe7ff4136ea660a29ff88ee66d
/skued/simulation/tests/test_structure_factors.py
7513665650da42ed29e663bb4456ea09438f61dd
[ "MIT" ]
permissive
KOLANICH-physics/scikit-ued
c72b3219e547e33ae067c5d36a93439d2f9045e2
c13472129df33105312b57427ce588e66d20391f
refs/heads/master
2022-01-22T05:47:04.286449
2018-09-24T15:06:00
2018-09-24T15:06:00
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,918
py
# -*- coding: utf-8 -*- import unittest import numpy as np from random import randint from .. import structure_factor, bounded_reflections, affe from ... import Crystal, Atom class TestElectronFormFactor(unittest.TestCase): def test_side_effects(self): nG = np.random.random(size = (16, 32)) nG.se...
[ "laurent.decotret@outlook.com" ]
laurent.decotret@outlook.com
de4798e70d7c9c101c756128701b3dde305bd873
006ff11fd8cfd5406c6f4318f1bafa1542095f2a
/Validation/CheckOverlap/test/python/runFP420_cfg.py
bb8cd03847118c55541afbb0a89d58fb4eb5fa73
[]
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
2,204
py
import FWCore.ParameterSet.Config as cms process = cms.Process("PROD") process.load("SimGeneral.HepPDTESSource.pdt_cfi") process.load("Geometry.CMSCommonData.cmsAllGeometryXML_cfi") process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi") process.load("Geometry.MuonNumbering.muonNumberingInitia...
[ "giulio.eulisse@gmail.com" ]
giulio.eulisse@gmail.com
442bf86ccac1d097b67f928e10a2d28a7d1a246a
390a9771799a8264b3c0c8c61cc7e1bf97ef2d79
/day23.py
ee7b0c961b026c7a9198fb1b34e91d632c061fa0
[]
no_license
Goldenlion5648/AdventOfCode2017
2bbf96d03017eceaac1279413dc3387359d03a6f
482f2c0d5eba49a29c4631ea131753945cfe3baa
refs/heads/master
2022-12-12T06:20:41.812048
2020-09-19T05:08:35
2020-09-19T05:08:35
289,359,883
0
0
null
null
null
null
UTF-8
Python
false
false
1,833
py
from collections import Counter a='''set b 99 set c b jnz a 2 jnz 1 5 mul b 100 sub b -100000 set c b sub c -17000 set f 1 set d 2 set e 2 set g d mul g e sub g b jnz g 2 set f 0 sub e -1 set g e sub g b jnz g -8 sub d -1 set g d sub g b jnz g -13 jnz f 2 sub h -1 set g b sub g c jnz g 2 jnz 1 3 sub b -17 jnz 1 -23''' ...
[ "coboudinot@gmail.com" ]
coboudinot@gmail.com
88917a546cf6b78403ff35ece587c512e0f076ee
622a338ee1f856e542e14757b761546aa4267604
/confu/isa.py
ddfa5a58dfcb9268fd62c9b758090d785344f16b
[ "MIT" ]
permissive
Maratyszcza/confu
ad8f30998d6d6ed4b37b72b6d63b7fd8ba549f1d
4f3d0e73d20dbae54c154817d70f74b6a63940e1
refs/heads/master
2023-06-05T15:49:05.476642
2020-04-12T20:00:19
2020-04-12T20:14:52
79,974,006
14
14
MIT
2020-01-06T22:34:03
2017-01-25T01:55:44
Python
UTF-8
Python
false
false
1,086
py
from copy import copy class InstructionSet: def __init__(self, tags=None, generate_flags_fn=None): if tags is None: self.tags = set() elif isinstance(tags, str): self.tags = set((tags,)) else: self.tags = set(tags) self.generate_flags = generate_...
[ "maratek@gmail.com" ]
maratek@gmail.com
5247e05fedc3b4010c1fd05918da47a596108f5a
0b480b28455d4ea133eaeec5625e2ce62660dbb1
/populate_rango.py
c872d3fa71f07dc547fc08034fa6175d00d97eca
[]
no_license
jtr109/tango_with_django_exercise
8ff6c05321be8ca614a550abc6c66aef55886136
ce2aa7c5a12eae0352b435dc726bef4e378ef3c5
refs/heads/master
2020-09-22T09:28:34.217081
2016-08-30T02:49:35
2016-08-30T02:49:35
66,900,401
0
0
null
null
null
null
UTF-8
Python
false
false
2,374
py
import os os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tango_with_django_project.settings') import django django.setup() from rango.models import Category, Page def populate(): python_cat = add_cat(name='Python', views=128, likes=64) add_page(cat=python_cat, title=...
[ "lyp_login@outlook.com" ]
lyp_login@outlook.com
bfa5b4a6470235a489f54741c7f0f9fe574cef1a
1c0505803cf4ebe42bd1f6f369c949c35d7a4d5b
/ConceptZI/asgi.py
24e3f6d0b87254642df1b96f867bea4629215e26
[]
no_license
tahirs95/django_stripe_sepa
37d6787e0e5cb9e88dea7a94c3edcb07902f6fc1
8ed597be78aee9f84569562d4cd187485f750cb4
refs/heads/main
2023-08-22T19:16:35.786920
2021-10-01T16:22:36
2021-10-01T16:22:36
412,537,848
0
0
null
null
null
null
UTF-8
Python
false
false
395
py
""" ASGI config for ConceptZI project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdefault("DJANGO_SET...
[ "tahirs95@hotmail.com" ]
tahirs95@hotmail.com
ed93de707065f2b8a365587714ca37565801df90
6d395ffb748ac60733e9a5f039e2a307adae44d4
/api/views_dir/xcx/page_group.py
ee7abc895b1e88940fd96cd77f904775668ab555
[]
no_license
itcastpeng/hzWebSiteApi
4f69c0f68dc78eebc4a5dad668d03e3c9d9c1d57
f2bcd7a9ef28bf9c7f867e803f35d7b307d25527
refs/heads/master
2021-03-06T14:26:34.923464
2020-03-10T04:07:27
2020-03-10T04:07:27
246,204,894
2
0
null
null
null
null
UTF-8
Python
false
false
2,787
py
from api import models from publicFunc import Response from publicFunc import account from django.http import JsonResponse from publicFunc.condition_com import conditionCom from api.forms.xcx.page_group import SelectForm import json # @account.is_token(models.UserProfile) def page_group(request): response = Resp...
[ "15531506906@sina.cn" ]
15531506906@sina.cn
f921dad333bc6888e2dfb4562a8301606217b4bc
871f682f14509323c796919a238988dd5360d36e
/if_else/last_number_7.py
70649431a102d07b442182db01ff3160c8c78d45
[]
no_license
shreshta2000/If-else_questions_
c59242ff07c626875f981a5c83a6287bdade24e3
f30f2100d6328367a3db92ef7ebf39db7e5f0107
refs/heads/master
2022-12-02T16:01:01.552430
2020-08-20T14:40:34
2020-08-20T14:40:34
289,026,245
0
0
null
null
null
null
UTF-8
Python
false
false
118
py
number=int(input("entre any number")) if number%10==7: print("last number is 7") else: print("last number is not 7")
[ "you@example.com" ]
you@example.com