blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
288
content_id
stringlengths
40
40
detected_licenses
listlengths
0
112
license_type
stringclasses
2 values
repo_name
stringlengths
5
115
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
684 values
visit_date
timestamp[us]date
2015-08-06 10:31:46
2023-09-06 10:44:38
revision_date
timestamp[us]date
1970-01-01 02:38:32
2037-05-03 13:00:00
committer_date
timestamp[us]date
1970-01-01 02:38:32
2023-09-06 01:08:06
github_id
int64
4.92k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-04 01:52:49
2023-09-14 21:59:50
gha_created_at
timestamp[us]date
2008-05-22 07:58:19
2023-08-21 12:35:19
gha_language
stringclasses
147 values
src_encoding
stringclasses
25 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
128
12.7k
extension
stringclasses
142 values
content
stringlengths
128
8.19k
authors
listlengths
1
1
author_id
stringlengths
1
132
293ff497bc9c02162313472b028ec2ddb6e186bc
dd7dc458691dcff1b2493c927acd62695c2187c4
/lib/python2.7/site-packages/envisage/ui/workbench/workbench_plugin.py
224c2068f00fc03f60552f917b2f9ce3c91fd991
[]
no_license
stephenosullivan/science
16e0c7fb441af29810cad630e6187961ad57398e
164e82df0655337ac4966273d9cc489d002d8987
refs/heads/master
2021-03-27T09:52:05.330679
2015-07-25T04:51:25
2015-07-25T04:51:25
39,672,995
0
0
null
null
null
null
UTF-8
Python
false
false
8,048
py
""" The Envisage workbench plugin. """ # Enthought library imports. from envisage.api import ExtensionPoint, Plugin, ServiceOffer from traits.api import Callable, List # This module's package. PKG = '.'.join(__name__.split('.')[:-1]) class WorkbenchPlugin(Plugin): """ The Envisage workbench plugin. The w...
[ "osullisg@gmail.com" ]
osullisg@gmail.com
995f17f49f0cc20090ed4da3fc31fdabd4c2e5df
6a61ef12621c8a917d160db62415487fe2c469f7
/aliyun-python-sdk-outboundbot/aliyunsdkoutboundbot/request/v20191226/DeleteJobGroupRequest.py
6edfb7caf350c296ba47360d1600bde52a8e0e09
[ "Apache-2.0" ]
permissive
zhangwp-cn/aliyun-openapi-python-sdk
f0b15369665a956490534c942676ed15410196f7
a560e38f97351db05d13f0588f7bdfb4292ed3ae
refs/heads/master
2022-09-08T13:31:26.842867
2020-06-04T03:23:30
2020-06-04T03:23:30
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,607
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 u...
[ "sdk-team@alibabacloud.com" ]
sdk-team@alibabacloud.com
0b4681cbbbd15b1ae82f979dfb0855a484f541fc
8e3b452b08139f25be824fae2b8b7aabb158d888
/6.00.1.x/Week3/Lecture5/lectureCode_Lec5-towers.py
13861370c38b6bf6a8bbf93b0af680633678f9d6
[]
no_license
prasannabe2004/MITx
d38a11e38a0abb73ffa37dccb363f779011155ab
1954b5fc31004c94f46fc8194b7fa773108c4493
refs/heads/master
2020-05-16T19:14:00.963550
2015-08-07T18:50:12
2015-08-07T18:50:12
25,537,861
1
0
null
null
null
null
UTF-8
Python
false
false
285
py
def printMove(fr, to): print('move from ' + str(fr) + ' to ' + str(to)) def Towers(n, fr, to, spare): if n == 1: printMove(fr, to) else: Towers(n-1, fr, spare, to) Towers(1, fr, to, spare) Towers(n-1, spare, to, fr) Towers(5, 'f','t','s')
[ "prasannabe2004@gmail.com" ]
prasannabe2004@gmail.com
2e9e653a3ba5f6b2d39e8bc2a9b81531627f0d53
be5c86e8fe3f5836b7d2097dd5272c72b5b28f15
/binary-search/Python/0069-sqrtx(调试代码).py
34fb4dc1e8fd789b231dfc3dc042a189448bc516
[ "Apache-2.0" ]
permissive
lemonnader/LeetCode-Solution-Well-Formed
d24674898ceb5441c036016dc30afc58e4a1247a
baabdb1990fd49ab82a712e121f49c4f68b29459
refs/heads/master
2021-04-23T18:49:40.337569
2020-03-24T04:50:27
2020-03-24T04:50:27
249,972,064
1
0
Apache-2.0
2020-03-25T12:26:25
2020-03-25T12:26:24
null
UTF-8
Python
false
false
1,303
py
class Solution: def mySqrt(self, x: int) -> int: if x == 0: return 0 left = 1 right = x // 2 while left < right: # 调试代码开始:为了仔细观察区间左右端点,我们每进入一次循环,让线程休眠 1 秒 import time time.sleep(1) print('调试代码,观察区间左右端点、中位数,和进入的分支: left = {}...
[ "121088825@qq.com" ]
121088825@qq.com
21e37b4f7a6e38423629ff7f88949c775997a74a
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p02536/s375378291.py
93ecd40e03e6ad422973faf79ca95508b26c6569
[]
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,207
py
import sys sys.setrecursionlimit(10 ** 9) class UnionFind(): def __init__(self, n): self.n = n self.root = [-1]*(n+1) self.rank = [0]*(n+1) def find(self, x):#親となる要素を探索 if self.root[x] < 0: return x else: self.root[x] = self.find(self.root[x])#再帰...
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
e1508f8201b4113f896bf0ace8208bf541a2431b
de4d88db6ea32d20020c169f734edd4b95c3092d
/aiotdlib/api/types/sponsored_message.py
d0baa01e34edffdfdd0b1242e871c3ddd8921c86
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
thiagosm/aiotdlib
5cc790a5645f7e4cc61bbd0791433ed182d69062
4528fcfca7c5c69b54a878ce6ce60e934a2dcc73
refs/heads/main
2023-08-15T05:16:28.436803
2021-10-18T20:41:27
2021-10-18T20:41:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,493
py
# =============================================================================== # # # # This file has been generated automatically!! Do not change this manually! # # ...
[ "pylakey@protonmail.com" ]
pylakey@protonmail.com
af66f3e9667cc2d7a9aca8543be26bbdbeffb849
af9c0aafa10b7901533de0b32177ab80b4782d3f
/notes/code/youtube/comments_one_video.py
0ae8f2715bd2cd2765d7e2162e6561247db18f41
[ "MIT" ]
permissive
Akramz/msds692
d1d33298b7599950e95838c0fc9ddbd47a98ed5b
42f4c2a0dc7569152bac2439e9b6385f2f101f7b
refs/heads/master
2023-01-25T00:44:11.197544
2020-12-05T22:05:14
2020-12-05T22:05:14
319,362,758
1
0
MIT
2020-12-07T15:31:12
2020-12-07T15:31:11
null
UTF-8
Python
false
false
708
py
import sys from googleapiclient.discovery import build DEVELOPER_KEY = sys.argv[1] YOUTUBE_API_SERVICE_NAME = "youtube" YOUTUBE_API_VERSION = "v3" video_id = "gU_gYzwTbYQ" # bonkers the cat # code from https://developers.google.com/youtube/v3/docs/comments/list youtube = build(YOUTUBE_API_SERVICE_NAME, YOUTUBE_API_...
[ "parrt@cs.usfca.edu" ]
parrt@cs.usfca.edu
1b14e0893000f94e90a7478eb66d700400cb0141
7882860350c714e6c08368288dab721288b8d9db
/1일차/if(8번문제).py
9db67865be7d0871db81bafb600eeaa1d088a3f2
[]
no_license
park-seonju/Algorithm
682fca984813a54b92a3f2ab174e4f05a95921a8
30e5bcb756e9388693624e8880e57bc92bfda969
refs/heads/master
2023-08-11T18:23:49.644259
2021-09-27T10:07:49
2021-09-27T10:07:49
388,741,922
0
0
null
null
null
null
UTF-8
Python
false
false
192
py
result=[] for i in range(100,301): a=int(i/100) # int로 해야함 b=int(i/10) if(a % 2 == 0 and b % 2 == 0 and i % 2 == 0): result.append(str(i)) print(",".join(result))
[ "cucu9823@naver.com" ]
cucu9823@naver.com
76283425866e43198277a6f4f43dcc74ae590214
e1009433697344f0ce6ec953f086be698fa4e6c4
/parsmodel.py
10d1dbeb9a2e033a4397f7c7bf345fec03e56af2
[]
no_license
bladas/online-store
7e848bad1137cf7886cec6bf7563867e5f8f5e36
6fd68e0d1318b796b05a94fa5547d5e87a2b0172
refs/heads/master
2023-05-02T07:11:55.614313
2020-01-06T14:20:19
2020-01-06T14:20:19
216,340,778
0
0
null
2023-04-21T20:38:49
2019-10-20T10:00:46
Python
UTF-8
Python
false
false
2,339
py
import json from home.models import Category, UnderCategory, Product def create(json, Category, UnderCategory, Product): with open('citrus.json', 'r') as json_file: data = json.load(json_file) for elem in data: print(elem.get('name')) print(elem.get('category')) ...
[ "dashkevich_v@ukr.net" ]
dashkevich_v@ukr.net
56d37d047190975695cb0168c225c11656be6066
d94b6845aeeb412aac6850b70e22628bc84d1d6d
/routing_transformer/routing_tf_api.py
ddc35172d2adda48e5cb8cb0ef32aaa4146d4629
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
ishine/google-research
541aea114a68ced68736340e037fc0f8257d1ea2
c1ae273841592fce4c993bf35cdd0a6424e73da4
refs/heads/master
2023-06-08T23:02:25.502203
2023-05-31T01:00:56
2023-05-31T01:06:45
242,478,569
0
0
Apache-2.0
2020-06-23T01:55:11
2020-02-23T07:59:42
Jupyter Notebook
UTF-8
Python
false
false
7,727
py
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
6ecd7aef7feeaf0c0a1b5b863f5a9956e43c4838
99094cc79bdbb69bb24516e473f17b385847cb3a
/58.Length of Last Word/Solution.py
6a986db084927025fd5e816d63158989ce2edd7a
[]
no_license
simonxu14/LeetCode_Simon
7d389bbfafd3906876a3f796195bb14db3a1aeb3
13f4595374f30b482c4da76e466037516ca3a420
refs/heads/master
2020-04-06T03:33:25.846686
2016-09-10T00:23:11
2016-09-10T00:23:11
40,810,940
1
0
null
null
null
null
UTF-8
Python
false
false
248
py
__author__ = 'Simon' class Solution(object): def lengthOfLastWord(self, s): """ :type s: str :rtype: int """ li = s.split() if li: return len(li[-1]) else: return 0
[ "simonxu14@gmail.com" ]
simonxu14@gmail.com
ff44601100038aba800c66cb8d18e73458d7b4df
bdf86d69efc1c5b21950c316ddd078ad8a2f2ec0
/venv/Lib/site-packages/twisted/application/runner/_runner.py
66f1f11ee0f27fe0b61e6dfa8b9fee0befdaa03b
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
DuaNoDo/PythonProject
543e153553c58e7174031b910fd6451399afcc81
2c5c8aa89dda4dec2ff4ca7171189788bf8b5f2c
refs/heads/master
2020-05-07T22:22:29.878944
2019-06-14T07:44:35
2019-06-14T07:44:35
180,941,166
1
1
null
2019-06-04T06:27:29
2019-04-12T06:05:42
Python
UTF-8
Python
false
false
5,763
py
# -*- test-case-name: twisted.application.runner.test.test_runner -*- # Copyright (c) Twisted Matrix Laboratories. # See LICENSE for details. """ Twisted application runner. """ from os import kill from signal import SIGTERM from sys import stderr from attr import attrib, attrs, Factory from twisted.logger import ( ...
[ "teadone@naver.com" ]
teadone@naver.com
d1ac6305dbd6d50b835b3c72c2b048137df5ea1f
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/81/usersdata/212/47049/submittedfiles/dec2bin.py
6411c5dd71bf68dde30b00d10c31f9fc65086a43
[]
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
138
py
# -*- coding: utf-8 -*- p=int(input('digite o valor do menor número:')) q=int(input('digite o valor do maior número:')) n=1%10 print(n)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
46451d297fa736664316b7c35106ff642cada2ff
cbb7f79a50b05e2ab670ae19bbd1c3b8dead437d
/dict_ordem.py
d24ab507f66b1828b5ff9371ba46aa626fa734e0
[]
no_license
lfbessegato/Python_Avancado
3b680d65fe543bd915b5798a85be1f7dadfad4c4
bb73b99d64f92693a6fe71748f2c24aaabe7d4e1
refs/heads/master
2022-09-07T20:28:07.037656
2020-05-29T20:24:07
2020-05-29T20:24:07
265,316,529
0
0
null
null
null
null
UTF-8
Python
false
false
178
py
from collections import OrderedDict # Ordered -> Mantém a Ordem d = OrderedDict() d['python'] = 10 d['java'] = 5 d['php'] = 6 d['C'] = 10 for key in d: print(key, d[key])
[ "lfrbessegato@gmail.com" ]
lfrbessegato@gmail.com
c5a55686d52aef4a636fcd08c7d52bca631af994
8c3ba133fa34cf2f936ba9176459690008e9e1fb
/imagepy/menus/Window/widgets_plgs.py
4a05938af587349c3a114d2efe75198b21d28d8b
[ "BSD-2-Clause" ]
permissive
qixinbo/imagepy
fcd272b231b3f49fafd51425f46e826a73841c1f
a2722443dfddf2b0b81b44512427b8a273a7424c
refs/heads/master
2023-03-16T15:58:57.330418
2022-09-03T13:35:46
2022-09-03T13:35:46
519,933,892
0
0
BSD-4-Clause
2022-08-01T02:02:26
2022-08-01T02:02:25
null
UTF-8
Python
false
false
532
py
from sciapp.action import Free class Widgets(Free): """ImageKiller: derived from sciapp.action.Free""" title = 'Widgets' asyn = False def run(self, para = None): self.app.switch_widget() class ToolBar(Free): title = 'Toolbar' asyn = False def run(self, para = None): self.app.switch_toolbar() class Tabl...
[ "imagepy@sina.com" ]
imagepy@sina.com
f6fa771d57a3a10af786708c35aa3393e0e40935
9c2ca939f29b861afec382cd17a462775a3974d0
/run_worker.py
fcec489b5ac3ac725751dac7c59693090a0cba6f
[ "BSD-2-Clause" ]
permissive
merrlyne/gchatautorespond
1e2009823e16289ea2cea709cfee5cd2a3e97459
a7f8d7b715ca9851a65588a268ce39addb906b6d
refs/heads/master
2020-03-20T12:49:18.882038
2018-03-29T18:38:58
2018-03-29T18:38:58
137,441,551
0
1
null
2018-06-15T04:38:49
2018-06-15T04:38:49
null
UTF-8
Python
false
false
1,564
py
from gevent import monkey monkey.patch_all() import django django.setup() import logging from threading import Thread from django.conf import settings from gevent.wsgi import WSGIServer from raven.contrib.flask import Sentry from gchatautorespond.lib.chatworker.worker import Worker, app from gchatautorespond.lib.ch...
[ "simon@simonmweber.com" ]
simon@simonmweber.com
b2a8e001c69a95a4fb2a947d732d78d6d7d8c012
632b94beca62f7c8af5ae1d1e8e095a352600429
/build/ros_controllers/ros_controllers/position_controllers/catkin_generated/pkg.installspace.context.pc.py
4ddc4e67bff606fc70fdb62976ffda91a4cd6eb2
[]
no_license
Haoran-Zhao/US_UR3
d9eb17a7eceed75bc623be4f4db417a38f5a9f8d
a0c25e1daf613bb45dbd08075e3185cb9cd03657
refs/heads/master
2020-08-31T07:02:45.403001
2020-05-27T16:58:52
2020-05-27T16:58:52
218,629,020
0
0
null
null
null
null
UTF-8
Python
false
false
507
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else [] PROJECT_CATKIN_DEPENDS = "controller_interface;forward_command_controller".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lpos...
[ "zhaohaorandl@gmail.com" ]
zhaohaorandl@gmail.com
2fea31c0cd40ed40aa5a152c571bd75391e2bf24
b47f2e3f3298388b1bcab3213bef42682985135e
/experiments/heat-3d/tmp_files/6909.py
efaecf45f0b280f386864f84a69acd803b7e70e3
[ "BSD-2-Clause" ]
permissive
LoopTilingBenchmark/benchmark
29cc9f845d323431e3d40e878cbfc6d1aad1f260
52a3d2e70216552a498fd91de02a2fa9cb62122c
refs/heads/master
2020-09-25T09:45:31.299046
2019-12-04T23:25:06
2019-12-04T23:25:06
225,975,074
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
from chill import * source('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/polybench/polybench-code/stencils/heat-3d/kernel.c') destination('/uufs/chpc.utah.edu/common/home/u1142914/lib/ytopt_vinu/experiments/heat-3d/tmp_files/6909.c') procedure('kernel_heat_3d') loop(0) tile(0,2,8,2) tile(0,4,64,3) tile(0,6...
[ "nashenruoyang@163.com" ]
nashenruoyang@163.com
c6061d5f295fed6a46483bf27ca17b45bf838027
4c7ea6295a487ec18543e82f66e08a3a2a2fd124
/apps/logs/action/action_monster_level_reward.py
8a7e07ee77cf001a6d538be71ca87a390ab9e53c
[]
no_license
robot-nan/GameLogServer
16217689d88ac5353a61881b03adb1b372cc3e16
ff2afd6d29e9dce6157a66ff62b4d1ea97d04184
refs/heads/master
2021-11-07T21:27:30.494271
2015-09-23T15:01:55
2015-09-23T15:01:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,292
py
# -*- coding:utf-8 -*- """ 宠物等级奖励 """ from apps.logs.action import action_base from apps.utils import game_define def log(user, gold, stone, equip_str, item_str): """ 输出日志 """ action = game_define.EVENT_ACTION_GET_MONSTER_LEVEL cur_gold = user.player.get_gold() cur_stone = user.player...
[ "a.robot.n@gmail.com" ]
a.robot.n@gmail.com
3bc24697dee04be43497c122b3028c6926362734
b213fbd2f4f628aa0f2387c846673ac68e18aa91
/Binary_Search/600.py
4e544b47614dc36d42421f95f4fbc7fd3ea4e675
[ "MIT" ]
permissive
wilbertgeng/LintCode_exercise
94309b4451e34f1931fce6c2ae90d0c2e7c41d35
e7a343b746e98ca3b4bc7b36655af7291f3150db
refs/heads/main
2023-05-13T06:06:50.887791
2021-05-26T20:33:51
2021-05-26T20:33:51
347,850,106
0
0
null
null
null
null
UTF-8
Python
false
false
1,701
py
"""600. Smallest Rectangle Enclosing Black Pixels """ class Solution: """ @param image: a binary matrix with '0' and '1' @param x: the location of one of the black pixels @param y: the location of one of the black pixels @return: an integer """ def minArea(self, image, x, y): # write...
[ "wilbertgeng@gmail.com" ]
wilbertgeng@gmail.com
21a3244c094f2c6fdba9b385874dde119094b631
525690b220962de7f6253dd1dc557717cffc3441
/openstack/tests/unit/cloud_eye/test_cloudeye_service.py
35b73816fe5fdd9edf0eaeabe9ed72d39d48f02c
[ "Apache-2.0" ]
permissive
huaweicloudsdk/sdk-python
bb8dc2bc195d0bdaddf13fef484e3f28aeb2681f
60d75438d71ffb7998f5dc407ffa890cc98d3171
refs/heads/master
2021-06-05T00:04:59.030371
2018-09-30T09:40:49
2018-09-30T09:40:49
110,813,153
20
18
NOASSERTION
2020-07-23T17:01:59
2017-11-15T09:31:50
Python
UTF-8
Python
false
false
1,102
py
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
[ "iampurse@vip.qq.com" ]
iampurse@vip.qq.com
9005aa6da759029734d49699d61f6dfb82e382ee
9743d5fd24822f79c156ad112229e25adb9ed6f6
/xai/brain/wordbase/adjectives/_subordinating.py
f414e402006d840f8543ad90d26aa0594767e83c
[ "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
285
py
from xai.brain.wordbase.adjectives._subordinate import _SUBORDINATE #calss header class _SUBORDINATING(_SUBORDINATE, ): def __init__(self,): _SUBORDINATE.__init__(self) self.name = "SUBORDINATING" self.specie = 'adjectives' self.basic = "subordinate" self.jsondata = {}
[ "xingwang1991@gmail.com" ]
xingwang1991@gmail.com
e4f116f2d1e3e8c08ce2c7c35289d60e7a2455e5
3b2940c38412e5216527e35093396470060cca2f
/top/api/rest/SimbaAdgroupsChangedGetRequest.py
5b87c69b8afb5cee0f9b6ef7edd9ba1abccebb0d
[]
no_license
akingthink/goods
842eb09daddc2611868b01ebd6e330e5dd7d50be
ffdb5868a8df5c2935fc6142edcdf4c661c84dca
refs/heads/master
2021-01-10T14:22:54.061570
2016-03-04T09:48:24
2016-03-04T09:48:24
45,093,302
0
0
null
null
null
null
UTF-8
Python
false
false
398
py
''' Created by auto_sdk on 2015-01-20 12:44:31 ''' from top.api.base import RestApi class SimbaAdgroupsChangedGetRequest(RestApi): def __init__(self,domain='gw.api.taobao.com',port=80): RestApi.__init__(self,domain, port) self.nick = None self.page_no = None self.page_size = None self.start_time = ...
[ "yangwenjin@T4F-MBP-17.local" ]
yangwenjin@T4F-MBP-17.local
284b16862546a04753ca39ee352a14563fc28272
eaf97194e79c31d80f7786b64bbf621581a95dec
/example.py
bba3baa0753070fdc4a03e7eb9cbacab6300db59
[]
no_license
codesharedot/levolution-price
333902c32137f9a82bd9d21b26575d646e0f4bb9
60c9d52fa42190e4fa929ead32ca611766906005
refs/heads/master
2020-08-02T14:26:47.832555
2019-09-27T19:27:47
2019-09-27T19:27:47
211,388,241
0
0
null
null
null
null
UTF-8
Python
false
false
616
py
import requests import json from forex_python.converter import CurrencyRates import os c = CurrencyRates() rate = c.get_rate('USD', 'EUR') print(rate) levolution_api_url = 'https://api.coinmarketcap.com/v1/ticker/levolution/' response = requests.get(levolution_api_url) response_json = response.json() print(response_...
[ "codeto@sent.com" ]
codeto@sent.com
df3847d46c128ea4255e64467cb577d4e348b21b
469e3e8de616263bab857df1050d426f40c30d5c
/module3.py
5d847f0e4e820befd42f51495c91329a0d3b6499
[ "MIT" ]
permissive
listenzcc/QuickPythonConfig
d487e3c35e906f84503d8992152ee79909d0da30
ff883c1dd2b7a23a114ec794e3d711fd5d1d15c1
refs/heads/main
2023-01-07T20:30:39.060803
2020-11-10T08:52:10
2020-11-10T08:52:10
306,575,328
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
# Example of using customized Config object from Package.defines import Config config = Config() config.reload_logger('develop') config.reload_cfg() def main(): print('---------------------------------------------------------') print(config.peek()) config.set('Module 3', 'says', 'It should be ...
[ "listenzcc@mail.bnu.edu.cn" ]
listenzcc@mail.bnu.edu.cn
6f45e31cd38fe22467cfb6b9bef6d61c3073ffef
38c76d29799896a8335bd83b6220acd71d5d8bed
/pyeuler/p053.py
32ec8ddbb6ba17ace49313419244944a5c2dde50
[]
no_license
oozk/pyeuler
c010505624bb95043883faa55a776d954c0496dc
74fd549985722f6d53a1394179d094a106c70689
refs/heads/master
2023-04-13T17:50:23.187918
2023-04-05T13:00:44
2023-04-05T13:00:44
261,848,886
0
0
null
null
null
null
UTF-8
Python
false
false
373
py
#!/usr/bin/env python3 ### # Problem 53 # https://projecteuler.net/problem=53 ### from math import factorial def p053(l): factorials = dict((i, factorial(i)) for i in range(0, l+1)) n_choose_r = lambda n, r: factorials[n] / factorials[r] / factorials[n-r] return sum(1 for n in range(1, l+1) for r in rang...
[ "onur.ozkan.1@gmail.com" ]
onur.ozkan.1@gmail.com
d8a83a203ad3e39efa214b7786b7be640e6c5c2d
af192ea16aad4264a92039d594d72acca91d0e33
/tests/tests.py
d329884aa00948981f710044b18f363c5eea0ca8
[ "MIT" ]
permissive
TakumiHQ/emoji-unicode
ceed81325829e2c44b6d1b04c4dbc7257cc95c86
85e8193f05f822641a58eb539b765481b084f83c
refs/heads/master
2021-01-18T16:08:52.817116
2015-11-20T13:10:44
2015-11-20T13:10:44
66,449,921
1
0
null
2016-08-24T09:17:27
2016-08-24T09:17:27
null
UTF-8
Python
false
false
6,812
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals import unittest import logging import os import json import io from emoji_unicode import replace, normalize, Emoji from emoji_unicode.utils import code_point_to_unicode, unicode_to_code_point from emoji_unicode import data_parser logging.disable(loggin...
[ "ecastroborsani@gmail.com" ]
ecastroborsani@gmail.com
81692c3527f89a21d770bcf0dfe69059814ffe59
64f5c0f229e1b1186f12d75b4ba21c07adfcf152
/index/models.py
fc2791e3989c627bacd03d10534b92d43824f717
[]
no_license
Emehinola/intouch
22dd3a81c935956914362604b8fd60d6d7cd2a46
d370a48c21b93aed797c32a0621c3fa8bda89857
refs/heads/master
2023-01-24T22:37:41.862324
2020-12-13T08:54:55
2020-12-13T08:54:55
318,006,792
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
from django.db import models # Create your models here. # home page view, i.e the surveys views class HomeViewCount(models.Model): views = models.IntegerField(default=0) # number of views or visits time = models.DateTimeField(auto_now_add=True) class Meta: ordering = ['-time'] verbose_...
[ "emehinolasam01@gmail.com" ]
emehinolasam01@gmail.com
e0a422afafd0c518668c019f26bccbc9e6a9bb01
6572f29c4472f1bd131dfb0fba441cb5b641ec83
/django/mysite_personal_models/blog/urls.py
6bdac35817b4968ca9cf7207271375c46c4feef1
[]
no_license
kan-abhulimen/jango-training
1ccbe04c9f2f481d4482e9fdfd50b1a5b43cc7ae
734087392cd9635f00596a7955882f4849883930
refs/heads/master
2020-03-07T18:37:44.332426
2018-01-27T16:11:29
2018-01-27T16:11:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
545
py
from django.conf.urls import url, include from django.views.generic import ListView, DetailView from blog.models import Post urlpatterns = [ url(r'^$', ListView.as_view( queryset=Post.objects.all().order_by("-date")[:25], template_...
[ "mail_arunn@yahoo.com" ]
mail_arunn@yahoo.com
c442740a0bcbc288556a64daa57037c8a3f469ab
d0326c87cda35a4c80d1bb137894a33ca3f1bcc9
/jetracer/nvidia_racecar.py
ec1631454f4df2f3fb9181022e6a30c9bf3caab6
[ "MIT" ]
permissive
tokk-nv/jetracer
5a36fcf809348b609331d369d71cca20010c954a
e83f11522f75d5f89486442ce2e36624e20970a7
refs/heads/master
2023-07-03T21:58:25.670731
2021-08-09T23:33:58
2021-08-09T23:33:58
321,274,145
1
0
MIT
2021-06-01T20:47:28
2020-12-14T07:59:07
Jupyter Notebook
UTF-8
Python
false
false
1,115
py
from .racecar import Racecar import traitlets from adafruit_servokit import ServoKit class NvidiaRacecar(Racecar): i2c_address = traitlets.Integer(default_value=0x40) steering_gain = traitlets.Float(default_value=-0.65) steering_offset = traitlets.Float(default_value=0) steering_channel = traitle...
[ "jwelsh@nvidia.com" ]
jwelsh@nvidia.com
e6334f2a64f9a1b31d53af7cad6ac3abe5758f7d
8cce0b5a4be09783016906a36192c52e9daa84aa
/cv_workshops/13-section/7-clazz.py
4640afbe5beea856e54129e53ebbe39d9916db00
[ "MIT" ]
permissive
Castrol68/opencv-practice
fcc9495553d3a10fb045c396697391a5d2a06f36
83d76132d004ebbc96d99d34a0fd3fc37a044f9f
refs/heads/master
2023-08-31T07:18:51.497902
2020-05-03T17:43:12
2020-05-03T17:43:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,057
py
#!/usr/bin/env python3 # -*- coding=utf-8 -*- import tensorflow as tf """ TensorFlow - hello world 使用安装的TensorFlow 2.0并导入 """ def main(): # 导入数据集, 数据集下载地址为: http://yann.lecun.com/exdb/mnist/ mnist = tf.keras.datasets.mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() # 将...
[ "afterloe@foxmail.com" ]
afterloe@foxmail.com
6ec621dff6324b2822383c42b374ac54637d859a
dc72e1eb44cfaed330d9477d0c27bee307a81e4a
/Jackpointnew/hand/scripts.py
47913e46358e99f954ce1218749325896b5b7a09
[]
no_license
bussiere/JackPointFInal
ba200d85606e17b423535af20a58c04bf5afa550
c414480fee519e68aece68068e941278fe10cf0a
refs/heads/master
2021-07-24T14:25:56.982106
2013-07-08T11:10:41
2013-07-08T11:10:41
5,333,141
0
0
null
2021-06-10T17:45:33
2012-08-07T20:29:46
Python
UTF-8
Python
false
false
3,808
py
from django.contrib.auth.models import User from django.contrib.auth import authenticate from django.contrib.auth.decorators import login_required from django.contrib import auth from skill.models import Skill from carac.models import Carac from item.models import Item from carac.forms import CaracFormChoice from skill...
[ "bussiere@gmail.com" ]
bussiere@gmail.com
68a6ad72b6ba110b69031ee89e2ee46750bbdae1
74be41563cba82ec784aed3c893a53261a428ab1
/myapp/ocr_api/views.py
db6910d7ae1c32dea6bf6323e19f1305a4a8f71f
[]
no_license
Bakushin10/Django
e06ad485084d917886a50e5f3c38f8b049c85fb1
184db43f58e4679c2a556f9603f5e3bec61da1eb
refs/heads/master
2022-12-12T13:34:24.391273
2019-11-05T14:33:29
2019-11-05T14:33:29
202,837,195
0
0
null
2022-12-08T06:53:31
2019-08-17T04:55:27
Python
UTF-8
Python
false
false
5,626
py
import os, sys, json from PIL import Image, ImageDraw2 from django.shortcuts import render from django.shortcuts import render, HttpResponseRedirect from django.http import HttpResponse, JsonResponse from ocr_api.models import OCRInputModel, JsonOCRInputModel from ocr_api.serializers import OCRInputModelSeriali...
[ "shnnagai@gmail.com" ]
shnnagai@gmail.com
b1f831dc5b99ada2504bfeae16902b81d431db0e
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03470/s172972650.py
57f94dcf85afe314754def063304ba328d8d9803
[]
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
140
py
N = int(input()) d = sorted([int(input()) for i in range(N)]) ans = 1 for i in range(N-1): if d[i] < d[i+1]: ans += 1 print(ans)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
be170dcc3bdd5793fcc52084d7dd6184d1ea3928
51aa2894c317f60726fe9a778999eb7851b6be3e
/120_design_patterns/014_command/_exercises/templates/4-Command Pattern/Assignment/Solution/security_commands.py
dccb3920efff4cf8a244e3bb8df5cf9715871ec1
[]
no_license
pranaymate/Python_Topics
dd7b288ab0f5bbee71d57080179d6481aae17304
33d29e0a5bf4cde104f9c7f0693cf9897f3f2101
refs/heads/master
2022-04-25T19:04:31.337737
2020-04-26T00:36:03
2020-04-26T00:36:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
455
py
# ____ a__.s... ______ S.. # ____ c_a.. ______ AC.. # # # c_ SecurityArmCommand AC.. # ___ - security # __ no. isi.. ? S.. # r_ T.. # ? ? # # ___ execute # s____.a.. # # ___ undo( # s___.di.. # # # c_ SecurityDisarmCommand(AbsCommand): # ___ - security # ...
[ "sergejyurskyj@yahoo.com" ]
sergejyurskyj@yahoo.com
76b7b7fd8b8e98790d7b81290bc4cc77bea998c9
a74a592d3e34c0cb2e19363a92410c520dc0ecda
/backend/course/models.py
1ed6ffe755403a8dcb6cbf4e3dc54d87f002688f
[]
no_license
crowdbotics-apps/youthbuild-course-a-18675
5e4f0231b6127b215576c87593b8a073518200de
4f17bfa2f588be23f24d862ca86fba569908e90e
refs/heads/master
2022-11-08T20:55:36.094513
2020-07-07T19:33:25
2020-07-07T19:33:25
277,903,947
0
0
null
null
null
null
UTF-8
Python
false
false
2,850
py
from django.conf import settings from django.db import models class Course(models.Model): "Generated Model" author = models.ForeignKey( "users.User", on_delete=models.CASCADE, related_name="course_author", ) title = models.CharField(null=True, blank=True, max_length=256,) description = mod...
[ "team@crowdbotics.com" ]
team@crowdbotics.com
a3b0628f021f81f748f640274f9ddface28f23ea
500b03fa6cb776c1d51db4a3a3aa252ddf5a50e6
/book_exercise/py_intro/basics/Chapter 4: If statement/num_close.py
d5a70064327dbf0d92c9c632d600f35af5edadad
[]
no_license
carloslvm/learning-python
b3796a0a5b751baae8c551a9f6fe262f98980691
07f885454cf21b7d215a58da7fcb907715e546bd
refs/heads/master
2022-07-27T21:39:11.937801
2022-07-09T17:47:56
2022-07-09T17:47:56
163,447,616
0
0
null
null
null
null
UTF-8
Python
false
false
364
py
#!/usr/bin/python3 # Guessing a float number num = 10.000 user_num = float(input('Try to guess the float number: ')) if user_num == 10.001 or user_num == 9.999: print('You were close.') elif user_num != 10.001 and user_num != 9.999: print('You were not close.') elif user_num == num: print('That\'s corre...
[ "cvaldez553@gmail.com" ]
cvaldez553@gmail.com
677767ca7ceb624e8d26a88b9ec1aea211c9eb4c
29f5b2d3a3582afad36ce03d23ac8e25743c7a1d
/quickstart.py
4e6bea7265daf75d13f0f31247acd9327aebbe9f
[]
no_license
kylinRao/djangowebbuild
9b1e1f32ae8b8872e950ff91658296d92113597e
75a06b8e35d50176d824e3a4e790a79796c28f70
refs/heads/master
2021-01-19T04:32:49.411920
2016-06-08T01:33:38
2016-06-08T01:33:38
60,658,778
0
0
null
null
null
null
UTF-8
Python
false
false
2,301
py
from __future__ import print_function import httplib2 import os from apiclient import discovery import oauth2client from oauth2client import client from oauth2client import tools try: import argparse flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args() except ImportError: flags = None ...
[ "975168367@qq.com" ]
975168367@qq.com
0006232e66e9b267c54344acf505f520ca34f480
0adf94fc39a02018165b62e93dd83edddd041230
/.history/configurations/settings_20190226153809.py
75cf74155e05e00a2fbe0afc31d36aded4447481
[]
no_license
SabitDeepto/BrJobs
1e3baa143331cf46b9c70911c6644d1efd4fffd6
1a458c8c667f8093a2325d963e5542655467c7aa
refs/heads/master
2020-04-24T08:02:26.350007
2019-03-17T05:53:30
2019-03-17T05:53:30
171,818,024
0
0
null
null
null
null
UTF-8
Python
false
false
4,011
py
""" Django settings for configurations project. Generated by 'django-admin startproject' using Django 2.1.3. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ impor...
[ "deepto69@gmail.com" ]
deepto69@gmail.com
8bbe10ec9f9d538ff2af58beaee2fe77b23096dc
5785d7ed431b024dd910b642f10a6781df50e4aa
/revise-daily/educative.io/medium-dp/longest-common-subsequence/11_edit_distance.py
0afe28a66ab6ed5f3dc9fc015d21e758fbb667d4
[]
no_license
kashyapa/interview-prep
45d77324446da34d99bf8efedb3544b367b5523e
7060c090c40602fb9c4778eace2078e1b51e235b
refs/heads/master
2023-07-28T13:12:49.515299
2021-09-06T14:33:25
2021-09-06T14:33:25
403,706,510
0
0
null
null
null
null
UTF-8
Python
false
false
2,004
py
def find_min_operations(s1, s2): return find_min_operations_recursive(s1, s2, 0, 0) def find_min_operations_dp(s1, s2): n1, n2 = len(s1), len(s2) dp = [[-1 for _ in range(n2 + 1)] for _ in range(n1 + 1)] # if s2 is empty, we can remove all the characters of s1 to make it empty too for i1 in range...
[ "schandra2@godaddy.com" ]
schandra2@godaddy.com
b532081aaa769fc56e4142beaeafe9cc3c22fc13
ff4ab3a8aac4d26534d1d980f85f7b4ca3e0905b
/config.py
b909dff713e1be51064f9d8b0ab0d5244ecb1a54
[]
no_license
pandeynandancse/Named_Entity_Reognition_BERT
be19db084079d035a59356cdf6ede8153f856055
a6205240d312f6ca02b3ef5c8cc34512126815f0
refs/heads/master
2022-11-29T09:33:32.747433
2020-08-11T15:54:51
2020-08-11T15:54:51
286,786,451
0
0
null
null
null
null
UTF-8
Python
false
false
444
py
import transformers MAX_LEN = 128 TRAIN_BATCH_SIZE = 32 VALID_BATCH_SIZE = 8 EPOCHS = 10 BASE_MODEL_PATH = "../input/bert_base_uncased" MODEL_PATH = "model.bin" TRAINING_FILE = "../input/ner_dataset.csv" #also can grab tokenizer from tokenizers library that is also from hugging face TOKENIZER = transformers.Ber...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
1d92cd4caf466194bc8dd0b7e0808a2f847ca1c2
093781f6a182c4988bb72c518e9747b723528e65
/14_pooling.py
dc3c8a0f6d26c083f847ea87a72901437bc557b4
[]
no_license
cjy02044027/quincy-pytorch
889d821685865687853df8c080352e534ac71b0d
c6a226196ec3d7d23121291c3b5696ea57152f57
refs/heads/master
2023-01-12T10:46:39.394664
2020-02-14T06:23:10
2020-02-14T06:23:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,296
py
#!usr/bin/env python # -*- coding:utf-8 _*- """ @version: author:yanqiang @time: 2019/04/09 @file: main.py @description: 最大池化和平均池化 """ import torch from torch import nn print(torch.__version__) # 二维最大池化层和平均池化层 def pool2d(X, pool_size, mode='max'): """ 池化层 :param X: :param pool_size: :param mode:...
[ "1185918903@qq.com" ]
1185918903@qq.com
f3a07f02268fdfe27b330e612e8b7945659aa549
77c7c1bb838fe3c7972e1fd54aab21ce50da0654
/bhp045/apps/cancer_subject/models/subject_off_study_mixin.py
5d0ff6fbd5c6fd21124adcf8aafec5f26650affd
[]
no_license
botswana-harvard/cancer
394124fe4cb8ae5e03ca70842a13e20220201be9
410cdd637d1da5b9d5081da02697eb1d03ae0984
refs/heads/master
2021-01-21T18:24:58.316116
2017-05-22T13:11:05
2017-05-22T13:11:05
92,045,682
1
0
null
null
null
null
UTF-8
Python
false
false
236
py
from edc.subject.off_study.mixins.off_study_mixin import OffStudyMixin class SubjectOffStudyMixin(OffStudyMixin): def get_off_study_cls(self): from .subject_off_study import SubjectOffStudy return SubjectOffStudy
[ "leslie.kep@gmail.com" ]
leslie.kep@gmail.com
6abde58c2c7813da0693cc6347cd6916351e7fd8
4c2def4621865535d36e6beb605691a6d53628d4
/ask_weather/action.py
af6d79fd48a1e8ad45ce006213b73d645d5dcce1
[]
no_license
liaozhihui/work
4485722c73a796c25896bb083d84d0e4f79e05c5
61a11d591875e17818b1b303d3552818441efafc
refs/heads/master
2020-07-16T17:04:07.788674
2019-09-02T10:13:28
2019-09-02T10:13:28
205,828,908
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
from rasa_core_sdk import Action from rasa_core_sdk.events import SlotSet class ActionAskWeather(Action): def name(self): return 'action_ask_weather' def run(self, dispatcher, tracker, domain): dispatcher.utter_message(f'您问的天气地点是哪里呢') return [SlotSet('city', '深圳')]
[ "1581627402@qq.com" ]
1581627402@qq.com
c212b7abfa204151fd7118f9c1047b5c3fb541c4
a9d4beb507b284e0a30b6f6522d448bec37ab7d6
/math/0x01-plotting/5-all_in_one.py
c1616e1f02491a0cca18080e0f79cb2b3375c8b4
[]
no_license
Danucas/holbertonschool-machine_learning
b9aedaccb93627adb9514f6c2fae1b67a1aeb0af
83e6185ebe3935f4fea27afa5db9f448722f2e2a
refs/heads/main
2023-07-12T17:08:02.813748
2021-08-17T05:22:30
2021-08-17T05:22:30
318,015,962
0
0
null
null
null
null
UTF-8
Python
false
false
1,830
py
#!/usr/bin/env python3 import numpy as np import matplotlib.pyplot as plt y0 = np.arange(0, 11) ** 3 mean = [69, 0] cov = [[15, 8], [8, 15]] np.random.seed(5) x1, y1 = np.random.multivariate_normal(mean, cov, 2000).T y1 += 180 x2 = np.arange(0, 28651, 5730) r2 = np.log(0.5) t2 = 5730 y2 = np.exp((r2 / t2) * x2) x3 ...
[ "danrodcastillo1994@gmail.com" ]
danrodcastillo1994@gmail.com
d20d0862c0bc14f8a343819a18037592d6950392
734a31e81f206c0bb9ab1e1fd6745a29aaa10b14
/src/products/migrations/0015_auto_20180115_0209.py
86f87585cdc543286771d23aa9edee108ffaf53d
[ "MIT" ]
permissive
shan18/Kart
d39974ba3f2eca14e68f6e51ed9132ffcf8a540a
a38f648d00b829a2f0a875e78c102c62c9718ee1
refs/heads/master
2022-12-10T05:33:41.198309
2022-11-29T07:16:32
2022-11-29T07:16:32
118,975,709
26
18
MIT
2020-06-08T09:47:11
2018-01-25T22:34:36
Python
UTF-8
Python
false
false
622
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-01-14 20:39 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0014_auto_20180114_0359'), ] operations = [ migrations.AddField...
[ "thegeek.004@gmail.com" ]
thegeek.004@gmail.com
8b363f046499487518a67cb87eb0ec039c027f5f
025333407ea7219540c4873091ade8bff9ced829
/manage.py
f2211cdbdecf378c6af5618fe89fcac935d26090
[]
no_license
PyconUK/ironcage18
317b6250019f0173c421b0f1980dcee52c727528
4ffb1c8449437f8d4dc08a1f344d47383b542598
refs/heads/master
2021-04-15T18:24:30.180384
2019-05-15T08:48:57
2019-05-15T08:57:20
126,659,139
1
4
null
2018-10-10T07:38:22
2018-03-25T02:53:05
Python
UTF-8
Python
false
false
714
py
#!/usr/bin/env python import os import sys import dotenv if __name__ == "__main__": if 'test' in sys.argv: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ironcage.settings.test") else: dotenv.read_dotenv() os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ironcage.settings.local") ...
[ "peter.inglesby@gmail.com" ]
peter.inglesby@gmail.com
31ab032e54bf47596e702e42e35b49e5afb56914
dbd87fe6e9466c4cada18b037667cfdddc62c193
/data/Quandl/Quandl_to_Email/mailer.py
fc9f7c8bf40471494b8853214d35944ab0aff2b3
[]
no_license
alexanu/Python_Trading_Snippets
74515a40dc63ba50d95bd50330ed05d59b5dc837
85969e681b9c74e24e60cc524a952f9585ea9ce9
refs/heads/main
2023-06-25T03:27:45.813987
2023-06-09T16:09:43
2023-06-09T16:09:43
197,401,560
18
17
null
2023-02-08T22:25:25
2019-07-17T14:05:32
Jupyter Notebook
UTF-8
Python
false
false
1,112
py
import sendgrid import os from sendgrid.helpers.mail import Email, Content, Mail class Mailer(object): def __init__(self): if os.environ["SENDGRID_API_KEY"] is None: raise EnvironmentError("Missing env SENDGRID_API_KEY") self.sendgrid_client = sendgrid.SendGridAPIClient( ...
[ "oanufriyev@gmail.com" ]
oanufriyev@gmail.com
0e83a10947f41ecdc8506924ac075dff32b6b7b0
5b6ec656a247d10011fd67a920aa002ebdf873c3
/GithubOctarofile/GithubOctarofile/urls.py
d618d9a5c3257a4b79841c4d90f628af694f8d70
[]
no_license
KhaledAbuNada-AI/Django-Projects
cfb46d46da5f5358171294ca8c02c62c5babf2cf
ff264426d7a650f3c513678bbd71b5519372f6d3
refs/heads/master
2022-04-24T10:52:26.791436
2020-04-22T15:27:37
2020-04-22T15:27:37
null
0
0
null
null
null
null
UTF-8
Python
false
false
976
py
"""GithubOctarofile URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.0/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Cl...
[ "siddhant.shah.1986@gmail.com" ]
siddhant.shah.1986@gmail.com
cc33c74f1c0ac7232046e55292d8b413ca1bc988
5759c0ed3219c06437ce5b39ef9ad92b5e191fed
/py/0114_flatten_binary_tree_to_linked_list.py
50bdf3fcfc9bb4e70f86523429fbe8d284228f61
[]
no_license
mengnan1994/Surrender-to-Reality
ba69df7c36112ad19f19157a9f368eae6340630f
66232728ce49149188f863271ec2c57e426abb43
refs/heads/master
2022-02-25T01:34:49.526517
2019-09-22T17:21:28
2019-09-22T17:21:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,498
py
""" Given a binary tree, flatten it to a linked list in-place. For example, given the following tree: 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ 3 \ 4 \ 5 \ 6 """ class TreeNode: def __init__(self, x): self.v...
[ "hurricane.cui@gmail.com" ]
hurricane.cui@gmail.com
e2edb5d82d0b7b9a5ce5c04dca7d99743fcc26ab
ce76b3ef70b885d7c354b6ddb8447d111548e0f1
/week_or_work/give_group/go_place/fact/child/world.py
ef11efc3b6b9c83521114179cecdc22ea2e4faa1
[]
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
230
py
#! /usr/bin/env python def fact_or_different_group(str_arg): other_thing(str_arg) print('last_life_and_time') def other_thing(str_arg): print(str_arg) if __name__ == '__main__': fact_or_different_group('part')
[ "jingkaitang@gmail.com" ]
jingkaitang@gmail.com
ba89f8b4fbc89acfbdb68504386a71ea5e70c4ca
b3fc641d4a746401301d917d42dd204a8661874b
/authors/apps/articles/migrations/0009_reported_times_reported.py
7fd11b5ff494f57db3c9d8ee75cc09f9b68ec1b0
[ "BSD-3-Clause" ]
permissive
andela/ah-backend-lannister
7998e0f9729036627ef2aabcdb1bb3c89b356727
091bd7e892eb0709a937f0f992f2675ab81ce40c
refs/heads/develop
2020-03-29T02:31:52.662672
2018-11-20T09:14:50
2018-11-20T09:14:50
149,441,528
0
5
BSD-3-Clause
2018-11-20T09:14:51
2018-09-19T11:39:36
Python
UTF-8
Python
false
false
394
py
# Generated by Django 2.1.1 on 2018-10-18 13:21 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0008_auto_20181018_1517'), ] operations = [ migrations.AddField( model_name='reported', name='times_repo...
[ "kimbsimon2@gmail.com" ]
kimbsimon2@gmail.com
d77cc9cfc19abaad7bd34df16677a4312d3ea8d1
f7648ea1c8a9565371c3d4654f7bdf1f2c9278f5
/BAEK_JOON/Python_algorithm/백준_11053번_가장긴증가하는부분수열.py
46abd5d65adc6c66937eba0785359af736f28207
[]
no_license
Sungmin-Joo/Algorithm-competition
521e019d532cc73e7620c5d1218142d32820eb1f
6b9513e15f284d95a21eecd84a0a4d0f2ff03402
refs/heads/master
2020-05-01T15:25:16.404513
2020-01-19T10:41:25
2020-01-19T10:41:25
177,546,171
2
0
null
null
null
null
UTF-8
Python
false
false
354
py
import sys input = sys.stdin.readline global dp, l n = int(input()) arr = [*map(int,input().split())] dp = [0] * n m = 0 for i in range(n): if i == 0: dp[i] = 1 else: max_dp = 0 for j in range(0, i): if max_dp < dp[j] and arr[j] < arr[i]: max_dp = dp[j] ...
[ "big-joo_dev@naver.com" ]
big-joo_dev@naver.com
61b16488d1272ea297377739b9d59515dbe88c4f
2f963d7989749037a3ec27aaa39b31416b33cbb2
/ib_recommender/interfaces/ib_recommender_service_interface.py
d49a6e35f35d335762e37a87f3106329613780e4
[]
no_license
migsantos121/phd3-backend
3cd014908856c995de3c4473d82059bc9c1b5794
9d1d2bd6f55dc89719ce5a1916c5db3d573aec1e
refs/heads/master
2022-12-12T17:25:59.334509
2020-03-09T09:24:08
2020-03-09T09:24:08
245,991,086
0
0
null
2022-06-28T14:45:50
2020-03-09T09:17:18
Python
UTF-8
Python
false
false
1,562
py
from django_swagger_utils.drf_server.decorators.handle_exceptions import handle_exceptions from ib_common.interface_utils.interface_utils import InterfaceUtils __author__ = 'ibhubs' class IBRecommenderServiceInterface(InterfaceUtils): def __init__(self, *args, **kwargs): super(IBRecommenderServiceInterfa...
[ "migsantos121@outlook.com" ]
migsantos121@outlook.com
6211c93ef5e464339a3ece24a4c1a0c77ec991bc
419873dd3b7412f704b1a7907b64a60b44cedf39
/python/设计/157. 用 Read4 读取 N 个字符.py
014893b2ac1f2b51dbcea4b77c5c3014bcf07fec
[]
no_license
Weless/leetcode
0585c5bfa260713f44dabc51fa58ebf8a10e7814
0566622daa5849f7deb0cfdc6de2282fb3127f4c
refs/heads/master
2021-11-13T07:59:20.299920
2021-10-25T02:09:53
2021-10-25T02:09:53
203,720,668
0
0
null
null
null
null
UTF-8
Python
false
false
409
py
class Solution: def read(self, buf, n): count=0 while count<n: temp = [''] * 4 cur = read4(temp) if cur == 0 : break i = 0 while i < cur and count <n: buf[count] = ...
[ "409766394@qq.com" ]
409766394@qq.com
99d0b1a49a4b2b619be7874cf19a6e505931f6d8
35b6013c1943f37d1428afd2663c8aba0a02628d
/appengine/flexible_python37_and_earlier/storage/noxfile_config.py
a97c6f1e260127c6b721ab0af921439d0e47fcf6
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
GoogleCloudPlatform/python-docs-samples
d2a251805fbeab15d76ed995cf200727f63f887d
44e819e713c3885e38c99c16dc73b7d7478acfe8
refs/heads/main
2023-08-28T12:52:01.712293
2023-08-28T11:18:28
2023-08-28T11:18:28
35,065,876
7,035
7,593
Apache-2.0
2023-09-14T20:20:56
2015-05-04T23:26:13
Jupyter Notebook
UTF-8
Python
false
false
1,892
py
# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
[ "noreply@github.com" ]
GoogleCloudPlatform.noreply@github.com
764482f357be9bb1f771028e738e7a9b659a4c28
f361126ee099303113b5ed3cc0e838bd01a9e41b
/Semana3/apoio_pense_python_01.py
70ff1f0e90b4ccda9dbca5bab5a6967a4df4cce8
[]
no_license
ju-c-lopes/Univesp_Algoritmos_II
e1ce5557d342ea75fe929cf7b207e633f9aa89cd
5d4eec368be91c18f0ae5c17d342e6eb0f1c79be
refs/heads/master
2023-06-05T11:09:25.415719
2021-07-07T22:26:53
2021-07-07T22:26:53
383,600,096
0
0
null
null
null
null
UTF-8
Python
false
false
1,333
py
def list_sum(num_list): the_sum = 0 for i in num_list: the_sum = the_sum + i return the_sum print(f'Função {list_sum([1, 3, 5, 7, 9])}') soma_1 = ((((1 + 3) + 5) + 7) + 9) print(f'Soma 1 "((((1 + 3) + 5) + 7) + 9)" = {soma_1}') soma_2 = (1 + (3 + (5 + (7 + 9)))) print(f'Soma 2 "(1 + (3 + (5 + ...
[ "juliano.co.lopes@gmail.com" ]
juliano.co.lopes@gmail.com
272fe74eaf3eb220407cf3f170f25e94cf1d1ea6
37908440ce625e4ad15c7fdae0f5c42a0f7f06cd
/exploits/efa_vbulletin_afd.py
8b51cf55eb2f9dbda403b2f0c0a4eaa2fdf4901a
[]
no_license
sec-js/EaST
daff1c84e73e43825a87e3c2c1ec63d05d73141b
4b1ab5333022bbd476e9a43f13c4a4b559488752
refs/heads/master
2023-01-07T13:14:28.480980
2022-09-18T18:21:19
2022-09-18T18:21:19
337,508,843
0
0
null
2022-12-21T23:26:22
2021-02-09T19:09:47
null
UTF-8
Python
false
false
3,347
py
#! /usr/bin/env python # -*- coding: utf_8 -*- # The exploit is a part of EAST Framework - use only under the license agreement specified in LICENSE.txt in your EAST Framework distribution import sys import os import urllib2 from collections import OrderedDict sys.path.append('./core') from Sploit import Sp...
[ "noreply@github.com" ]
sec-js.noreply@github.com
dd63d8ff2276e64b1806676cac723baf74f0ecb7
306afd5282d9c24d58297478a1728a006c29e57e
/lintcode/lintcode_0547_Intersection_of_Two_Arrays.py
ddcecd3100ee335a8a14d3b209fb6a19895c1786
[]
no_license
ytatus94/Leetcode
d2c1fe3995c7a065139f772569485dc6184295a9
01ee75be4ec9bbb080f170cb747f3fc443eb4d55
refs/heads/master
2023-06-08T17:32:34.439601
2023-05-29T04:33:19
2023-05-29T04:33:19
171,921,974
0
0
null
null
null
null
UTF-8
Python
false
false
600
py
from typing import ( List, ) class Solution: """ @param nums1: an integer array @param nums2: an integer array @return: an integer array we will sort your return value in output """ def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]: # write your co...
[ "noreply@github.com" ]
ytatus94.noreply@github.com
1a770f79fd81c17269f4ed63636862fb554d30ca
0f205fa73d927a15e27f065c6a198935f90d3ada
/src/pycones/proposals/migrations/0001_initial.py
50994be6deb17fc6ba0539338afcce03c1f8e433
[]
no_license
python-spain/web-pycones
b27bfb630cb6eafb8e1a5aadfa7b35368f81325a
942516169738689f542b0856842372088f34fc2f
refs/heads/2020
2023-03-30T06:01:30.809205
2020-03-23T22:08:27
2020-03-23T22:08:27
80,434,627
3
4
null
2021-04-08T20:55:32
2017-01-30T15:36:49
CSS
UTF-8
Python
false
false
4,690
py
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-01-31 12:32 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import markupfield.fields import model_utils.fields import taggit_autosuggest.managers class Migratio...
[ "marcosgabarda@gmail.com" ]
marcosgabarda@gmail.com
643ff60586427861267b2eb9c8e880763094d83e
4609ee89172d6f5f0b0bb59faf13f67f8a4bad28
/gclient/mark_as_read.py
21fb6040a8bf72d2e955bbfe3a497187132b5985
[]
no_license
QuentinDuval/GmailClient
82cf53f4d412280af608b9d90d50eded75b393e1
c0a69fe75d22d1ddd932de16107d799473c68e6b
refs/heads/master
2020-06-10T21:17:02.591884
2019-06-25T17:09:40
2019-06-25T17:09:40
193,750,874
0
0
null
null
null
null
UTF-8
Python
false
false
1,861
py
from __future__ import print_function from gclient.authentication import * from googleapiclient.discovery import build from typing import List class Classification: def __init__(self): self.creds = get_credentials() self.service = build('gmail', 'v1', credentials=self.creds) def get_all_labe...
[ "senmenty@gmail.com" ]
senmenty@gmail.com
a57fa2b7364d63958571fb4e0853f4351b795d94
0add7953d3e3ce2df9e8265102be39b758579753
/built-in/TensorFlow/Research/reinforcement-learning/ModelZoo_QMIX_TensorFlow/xt/benchmark/configs/default_xt.py
3f596108539b438663d6aaf4a5988cd8513e8366
[ "Apache-2.0" ]
permissive
Huawei-Ascend/modelzoo
ae161c0b4e581f8b62c77251e9204d958c4cf6c4
df51ed9c1d6dbde1deef63f2a037a369f8554406
refs/heads/master
2023-04-08T08:17:40.058206
2020-12-07T08:04:57
2020-12-07T08:04:57
319,219,518
1
1
Apache-2.0
2023-03-24T22:22:00
2020-12-07T06:01:32
Python
UTF-8
Python
false
false
428
py
""" default configure for benchmark function """ class XtBenchmarkConf(object): """benchmark conf, user also can re-set it""" default_db_root = "/tmp/.xt_data/sqlite" # could set path by yourself default_id = "xt_default_benchmark" defalut_log_path = "/tmp/.xt_data/logs" default_tb_path = "/tmp/....
[ "1571856591@qq.com" ]
1571856591@qq.com
67ffa6937e05e7704b90376cbd3bb100ea85a51e
901944f407f4a06a4c4027d6139ce21165976857
/neural_net/Neural_Net_CC/main.py
41bce1152dcd33c242b3bd32556f6a2f50ee5a48
[]
no_license
chriscremer/Other_Code
a406da1d567d63bf6ef9fd5fbf0a8f177bc60b05
7b394fa87523803b3f4536b316df76cc44f8846e
refs/heads/master
2021-01-17T02:34:56.215047
2020-05-26T13:59:05
2020-05-26T13:59:05
34,680,279
7
4
null
null
null
null
UTF-8
Python
false
false
2,354
py
import numpy as np import csv import random import pickle from NN_cc import Network from costs import * from activations import * from sklearn import preprocessing if __name__ == "__main__": #################################### #Load data #################################### MY_DATASET = '/data1/morrislab/c...
[ "chris.a.cremer@gmail.com" ]
chris.a.cremer@gmail.com
3b9fe333e7d4065f42d1f796e206238245df2998
99d7a6448a15e7770e3b6f3859da043300097136
/src/database/orms/api.py
e8c05566f0edc99644329043e8244fbdd6556648
[]
no_license
softtrainee/arlab
125c5943f83b37bc7431ae985ac7b936e08a8fe4
b691b6be8214dcb56921c55daed4d009b0b62027
refs/heads/master
2020-12-31T07:54:48.447800
2013-05-06T02:49:12
2013-05-06T02:49:12
53,566,313
0
0
null
null
null
null
UTF-8
Python
false
false
866
py
#=============================================================================== # Copyright 2011 Jake Ross # # 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/license...
[ "jirhiker@localhost" ]
jirhiker@localhost
149aed53ef04fe6d76ede1ef8340dd96c015d78c
e9cdf644f02c5f90e5af4ebcdfbd49e5739b379e
/lists/urls.py
fe220099563a5549be4bb60720a1f07720c68cff
[]
no_license
jaeyholic/airbnb-clone
14e661012f3650a7c1486e43bbcb314eb0ac1ba1
68c1815e2b62bbf70dfe5a4a580d970015eaccc2
refs/heads/master
2022-12-13T08:11:04.759907
2020-02-12T02:22:28
2020-02-12T02:22:28
236,361,148
0
0
null
2022-12-10T17:29:25
2020-01-26T19:04:10
Python
UTF-8
Python
false
false
143
py
from django.urls import path from . import views app_name = "trips" urlpatterns = [ path("", views.ListView.as_view(), name="trips"), ]
[ "gabsco208309@hotmail.com" ]
gabsco208309@hotmail.com
3b2c8a39c47fb25067878ad79635a6e28b0ae266
f6e03bc2747e8d1ca686b25e7f34a429886ba3f3
/machinelearning/cbct/build_cbct_learner.py
073853c6c8166f3e77a0a6c519c82cc5d099f2dc
[ "MIT" ]
permissive
randlet/pylinac
2b3913d7d549b985a074ddcf291d018cfb1dd5d2
df5dd913f429536180d998012b4f5cef8d443f88
refs/heads/master
2021-06-11T08:50:36.472577
2019-06-03T14:23:17
2019-06-03T14:23:17
151,657,740
1
0
MIT
2018-10-05T01:40:17
2018-10-05T01:40:16
null
UTF-8
Python
false
false
276
py
import os.path as osp from machinelearning.tools import train path = osp.join(osp.dirname(__file__), 'data', 'CatPhan 600') parameters = { 'kernel': ['linear'], 'C': [1, 0.1, 5, 10, 50], } train(path, train_size=0.95, parameters=parameters, clf_name='catphan600')
[ "jkerns100@gmail.com" ]
jkerns100@gmail.com
6a2be014eb9649c77461f9d7117a20e1f10fb3d6
0502750293383c6dae2aaf4013717d9c83f52c62
/exercism/python/archive/circular-buffer/circular_buffer.py
c143a3cdcdf9880436d13286be272c674f6461d5
[]
no_license
sebito91/challenges
fcfb680e7fc1abfa9fea9cd5f108c42795da4679
b4f2d3b7f8b7c78f02b67d67d4bcb7fad2b7e284
refs/heads/master
2023-07-08T15:43:42.850679
2023-06-26T19:38:51
2023-06-26T19:38:51
117,160,720
5
0
null
null
null
null
UTF-8
Python
false
false
2,199
py
""" Mdolue to implement a circular-buffer """ # -*- coding: utf-8 -*- from __future__ import unicode_literals class BufferFullException(Exception): """ define execption when buffer is full """ def __init__(self, message=None): if not message: message = "buffer is full" super(Buffer...
[ "sebito91@gmail.com" ]
sebito91@gmail.com
d6c6f07c20d59e2954fa76d05a86559f3dc82759
a31c54cb9b27e315567ed865e07cb720fc1e5c8e
/revenge/techniques/native_timeless_tracer/timeless_trace_item.py
f94c99a65e749528e119e21889e9b5142e3c5bcd
[]
no_license
bannsec/revenge
212bc15e09f7d864c837a1829b3dc96410e369d3
2073b8fad76ff2ba21a5114be54e959297aa0cf9
refs/heads/master
2021-06-25T12:26:02.609076
2020-05-29T15:46:45
2020-05-29T15:46:45
188,461,358
51
6
null
null
null
null
UTF-8
Python
false
false
2,456
py
import logging logger = logging.getLogger(__name__) from ... import common class NativeTimelessTraceItem(object): def __init__(self, process, context=None, depth=None, previous=None): """Class describing a single step of NativeTimelessTracing Args: process (revenge.Process): Pro...
[ "whootandahalf@gmail.com" ]
whootandahalf@gmail.com
fee4d2124eac9fad1e5d0bc58e3c6649164ab65c
e245035c7bff120d5f7a8a26412f14d11a77a46f
/huggingface_transformer_src/src/transformers/commands/convert.py
2ca5a57ca36d0a5c150959f2f1b7daaec455c17a
[ "Apache-2.0" ]
permissive
fuxuelinwudi/R-Drop
82f27e623f319065b75b9e2b7ebe285c2aa0582b
88bba6386f2edf7aa45ae6795103dbf4be085e99
refs/heads/main
2023-06-06T14:28:55.773778
2021-06-27T05:39:27
2021-06-27T05:39:27
381,313,887
2
0
MIT
2021-06-29T09:43:58
2021-06-29T09:43:58
null
UTF-8
Python
false
false
7,555
py
# Copyright 2020 The HuggingFace Team. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicabl...
[ "dropreg@163.com" ]
dropreg@163.com
aa5c4a98512495974fb7608726a4f591fddd94e6
8e39a4f4ae1e8e88d3b2d731059689ad5b201a56
/dev-util/itstool/itstool-2.0.2.py
98413b632277dc442d4cbfa589f28591e237e38c
[]
no_license
wdysln/new
d5f5193f81a1827769085932ab7327bb10ef648e
b643824b26148e71859a1afe4518fe05a79d333c
refs/heads/master
2020-05-31T00:12:05.114056
2016-01-04T11:38:40
2016-01-04T11:38:40
37,287,357
1
1
null
null
null
null
UTF-8
Python
false
false
219
py
metadata = """ summary @ XML to PO and back again homepage @ http://itstool.org/ license @ GPL3 src_url @ http://files.itstool.org/$name/$fullname.tar.bz2 arch @ ~x86_64 """ depends = """ build @ dev-libs/libxml2 """
[ "zirkovandersen@gmail.com" ]
zirkovandersen@gmail.com
9bb91005f84d4d67416db899318bf4ddb657920e
463febc26f9f6e09d51206c87c7450476b1dfa7c
/0x0C-nqueens/0-nqueens.py
b48a68afd83f68b7c5b517b2fcb380f754708017
[]
no_license
Nahi-Terefe/holbertonschool-interview
77a5fd0e668cabaa2f986ded265996061fcbc9f8
e4842430f346d5b18e407ac468ba225aaeaae9d8
refs/heads/master
2023-02-17T13:31:31.389980
2021-01-12T00:24:42
2021-01-12T00:24:42
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,734
py
#!/usr/bin/python3 """ Solving n queens """ import sys # error handling for argv[1] if __name__ == "__main__": if len(sys.argv) == 1 or len(sys.argv) > 2: print("Usage: nqueens N") sys.exit(1) N = sys.argv[1] try: N_int = int(N) except ValueError: print("N must be a ...
[ "977@holbertonschool.com" ]
977@holbertonschool.com
c99cf3261ef3264d9556a7b23a4752ba3d1719ea
95c9cfb57346a4ff45b05847c2fd740cdd60fb79
/examples/2-hydrotrend/run_hydrotrend.py
fcff63ddf946fbbaae6da021a5b914505fc530ec
[ "MIT" ]
permissive
mdpiper/dakota-tutorial
1234812eaf00e97999abcdccc0a3027ed2bb1d92
de5177bc741a0475266011de8363ff1ad4ce5ff0
refs/heads/master
2021-01-17T22:07:44.576114
2015-05-25T18:54:24
2015-05-25T18:54:24
35,640,799
2
0
null
null
null
null
UTF-8
Python
false
false
2,479
py
#! /usr/bin/env python # Brokers communication between HydroTrend and Dakota through files. # Mark Piper (mark.piper@colorado.edu) import sys import os import re import shutil from subprocess import call import numpy as np def read(output_file): """Reads a column of text containing HydroTrend output.""" retu...
[ "mark.piper@colorado.edu" ]
mark.piper@colorado.edu
2afb87b876777eba3345babac92efef1ee1fa736
0d0afd1dce972b4748ce8faccd992c019794ad9e
/integra/exata_personalizacao/wizard/projeto_relatorio.py
4618ff3fdae885ab494f0eb9f31e24029bb9adc2
[]
no_license
danimaribeiro/odoo-erp
e2ca2cfe3629fbedf413e85f7c3c0453fd16941e
d12577bf7f5266b571cbedeb930720d653320e96
refs/heads/master
2020-01-23T21:32:16.149716
2016-11-05T15:35:40
2016-11-05T15:35:40
67,892,809
0
1
null
null
null
null
UTF-8
Python
false
false
1,555
py
# -*- encoding: utf-8 -*- import os from osv import orm, fields, osv import base64 from finan.wizard.finan_relatorio import Report from pybrasil.data import parse_datetime, mes_passado, primeiro_dia_mes, ultimo_dia_mes, hoje, agora, formata_data from finan.wizard.relatorio import * from datetime import date import csv...
[ "danimaribeiro@gmail.com" ]
danimaribeiro@gmail.com
305da2da6f4b22e89e4160f93e3e470090d20926
d78dfc5089717fc242bbd7097f507d811abb4260
/USA/script.icechannel.Usefile.settings/default.py
bdf16309ca6cef9b0506ee0fee1844dc07dd00bb
[]
no_license
tustxk/AddOnRepo
995b980a9ec737e2c25bed423fc83f710c697e40
6b86a06cb37e6e10b4119584dd7311ebc2318e54
refs/heads/master
2022-10-08T21:34:34.632346
2016-10-28T09:48:01
2016-10-28T09:48:01
70,684,775
1
1
null
2022-10-01T16:27:13
2016-10-12T09:31:16
Python
UTF-8
Python
false
false
163
py
addon_id="script.icechannel.Usefile.settings" addon_name="iStream - Usefile - Settings" import xbmcaddon addon = xbmcaddon.Addon(id=addon_id) addon.openSettings()
[ "ke.xiao@netxeon.com" ]
ke.xiao@netxeon.com
31d493116b2e621b5d93a3977480ec7ae3fd48cf
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2157/60749/252819.py
e40d7365ee8419681863874c71cda7f98525182e
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
510
py
str1=input() def RomaToNum(str1): dic={'I':1, 'V':5, 'X':10, 'L':50,'C':100,'D':500,'M':1000} res=[] for h in str1: res.append(dic[h]) max1=0 for t in res: max1=max(t,max1) max_index=res.index(max1) result=0 for h in range(0,max_index): result-=res[h] for h in...
[ "1069583789@qq.com" ]
1069583789@qq.com
87ffa029204a02b6b24eb241d0b349c255608b57
ccfc8b4b6b7a48e387c3ecd56ca110eb9f174367
/python/work/5.0-stable/project/videoclient/api/persons/photos/urls.py
75d2aa555f21b805075d975db736c3fe7ef27c5c
[]
no_license
denis-pinaev/tmp_trash
c4d6c4a4cefaacc8af5e93d1175f0a56e3d8e656
7642c0ef0cc45b978e579023406abfbbb656896d
refs/heads/master
2016-08-11T12:03:43.376455
2016-03-04T12:53:35
2016-03-04T12:53:35
52,145,331
0
0
null
null
null
null
UTF-8
Python
false
false
222
py
from django.conf.urls.defaults import patterns, include, url import views urlpatterns = patterns('', url(r'^list/*$', views.list, {}, 'api_list_photos'), url(r'^left/*$', views.left, {}, 'api_left_photos'), )
[ "corcc@yandex.ru" ]
corcc@yandex.ru
42ea6542998ab172e883faf783222a5f90e1c0ad
ebcb092d796366d36a1afe9c381cd9e4c31026f1
/python_markup/handlers.py
b4d1acfc276ad3b816d1d590b2c12416311792c6
[ "MIT" ]
permissive
MiracleWong/PythonBasic
d2e0e56c88781ebf9c6870f185ceaba6ffaa21ca
cb8ec59dc646842b41966ea4ea4b1ee66a342eee
refs/heads/master
2021-06-06T22:26:08.780210
2020-01-08T14:48:54
2020-01-08T14:48:54
96,536,299
0
0
null
null
null
null
UTF-8
Python
false
false
1,976
py
#!/usr/local/bin/python # -*- coding: utf-8 -*- # filename: handlers.py # 为文本块打上合适的 HTML 标记 class Handler: """ 处理程序父类 """ def callback(self, prefix, name, *args): method = getattr(self, prefix + name, None) if callable(method): return method(*args) def start(self, name): s...
[ "cfwr1991@126.com" ]
cfwr1991@126.com
6344174edb82b52826ffe9156911e57162cf52b4
c251223c9829a51fac8ae4d651dba0068da68f43
/language_converter/main.py
9d08979ae219e1e14aa3fa15aab2a9150fa319d7
[]
no_license
Ajax12345/Web-Apps
b1c10e73f2c403cc900a0eddccb1d95b5f71e8aa
105dfef93aa975cb95fa0216095939d33c2eb19a
refs/heads/master
2021-01-23T17:34:05.962959
2017-09-18T23:44:37
2017-09-18T23:44:37
102,767,536
0
0
null
null
null
null
UTF-8
Python
false
false
426
py
from bottle import Bottle, template, request app = Bottle() users = [{"ajax1234":"zorro"}] username = None password = None @app.route('/') def index(): data = {"to_display":"HI, how are you"} return template("simple.html", to_display = "HI, how are you?") @app.route('/run_code', method = "POST") def get_code()...
[ "noreply@github.com" ]
Ajax12345.noreply@github.com
11372e1174c14bf0f2fcd7bcb02fba3c76370519
8ce87aa7b8230a3fd474501c35e23c564f2780d0
/organizacion/migrations/0003_auto_20150725_0630.py
f233fa0171a7b7febfa5efddf0ad37f6e59aded2
[]
no_license
ErickMurillo/canicacao
46e7a485257ab95902fb427d4cb0b5e72fd14ab5
d4a79260c87d1ae1cdd8ecb8bc4be82e9ddb0cc7
refs/heads/master
2020-12-29T02:24:36.519281
2018-03-16T15:38:26
2018-03-16T15:38:26
35,285,596
0
2
null
null
null
null
UTF-8
Python
false
false
781
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('organizacion', '0002_auto_20150723_2221'), ] operations = [ migrations.AddField( model_name='comercializacion_or...
[ "erickmurillo22@gmail.com" ]
erickmurillo22@gmail.com
b8a5ebd8681495fd6c38f0e14d85a0f3171860dd
dd80a584130ef1a0333429ba76c1cee0eb40df73
/external/chromium_org/printing/DEPS
bc43b418c77aafd04e87cead8cd587db70d587dc
[ "MIT", "BSD-3-Clause" ]
permissive
karunmatharu/Android-4.4-Pay-by-Data
466f4e169ede13c5835424c78e8c30ce58f885c1
fcb778e92d4aad525ef7a995660580f948d40bc9
refs/heads/master
2021-03-24T13:33:01.721868
2017-02-18T17:48:49
2017-02-18T17:48:49
81,847,777
0
2
MIT
2020-03-09T00:02:12
2017-02-13T16:47:00
null
UTF-8
Python
false
false
262
include_rules = [ "+jni", "+skia/ext", "+third_party/icu/source/common/unicode", "+third_party/icu/source/i18n/unicode", "+third_party/skia", "+ui/aura", "+ui/base/resource", "+ui/base/text", "+ui/gfx", "+ui/shell_dialogs", "+win8/util", ]
[ "karun.matharu@gmail.com" ]
karun.matharu@gmail.com
0d8a223b3f1590a1b1e4491f34cf5321e061913b
07eb17b45ce5414282a2464c69f50197968c312d
/stusched/app/urls.py
ffdfa5ca2f2ce34e32c9ac872ee1c74578091181
[]
no_license
cmontemuino/dbschools
e15d4d03a3d2f0e1ee1fa47b8ce9748b7f09cdbc
d3ee1fdc5c36274e5d5f7834ca1110b941d097b9
refs/heads/master
2021-01-16T21:16:56.427183
2015-08-02T17:09:43
2015-08-02T17:09:43
6,158,940
0
0
null
2015-10-15T12:45:34
2012-10-10T14:49:16
HTML
UTF-8
Python
false
false
783
py
"""stusched URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.8/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, name='home') Class-ba...
[ "daveb@davebsoft.com" ]
daveb@davebsoft.com
584809ed53ad5619053d2185651806cf8714ed04
2195bec4cc44f5eb552f46fe62135d9f22e6dc03
/apps/trade/migrations/0008_auto_20190122_1826.py
25d6418999665e72e1ecc7a24ee97f90647b4dac
[]
no_license
DzrJob/gulishop
5c802d1bba0ad6ec23aa4c29a8ac6abcc085497b
5620f09cd6d2a99e7643d5ec0b6bc9e1203be6fe
refs/heads/master
2020-04-16T17:58:17.404170
2019-02-07T07:17:59
2019-02-07T07:17:59
165,797,566
0
1
null
null
null
null
UTF-8
Python
false
false
862
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.6 on 2019-01-22 18:26 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trade', '0007_auto_20190122_1812'), ] operations = [ migrations.AlterField(...
[ "dzr_job@163.com" ]
dzr_job@163.com
c7c6abe6ddd69173a76601375d5aa36b3acc06e4
0627cc5c3adb47fd4e780b31a76d17839ad384ec
/tensorflow_probability/python/layers/__init__.py
55a5079eaf94190c21b271793559f7ec7f4b90b3
[ "Apache-2.0" ]
permissive
ml-lab/probability
7e57377ae15bcbb9a7878e23d53f4505823b9117
09c1e495c929f5bc461a4edbc7710ab81b5b4933
refs/heads/master
2021-09-09T04:40:10.045594
2018-03-13T23:26:59
2018-03-13T23:27:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,304
py
# Copyright 2018 The TensorFlow Probability Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law o...
[ "copybara-piper@google.com" ]
copybara-piper@google.com
a771a00c3fd049c6dc8482812b8ea1fb06246838
1c72aa6d53c886d8fb8ae41a3e9b9c6c4dd9dc6f
/Semester 1/Project submissions/Lewis Clarke/Lewis_Clarke_Python_Coding-2016-04-18/Python Coding/Week 6/position_in_alphabet.py
be2781345f12dca69e6c90d6d0f722351786bf62
[]
no_license
codebubb/python_course
74761ce3189d67e3aff964c056aeab27d4e94d4a
4a6ed4a64e6a726d886add8364c65956d5053fc2
refs/heads/master
2021-01-11T03:06:50.519208
2016-07-29T10:47:12
2016-10-17T10:42:29
71,114,974
0
0
null
null
null
null
UTF-8
Python
false
false
350
py
key = 'abcdefghijklmnopqrstuvwxyz' def alpha(): word = raw_input('Enter a letter to find its numerical value: ') if word not in key: word = raw_input('You did not enter a letter.\nEnter a letter to find its numerical value: ') for i in word: n = 1 x = (key.index(i) + n) ...
[ "jpbubb82@gmail.com" ]
jpbubb82@gmail.com
08366dcc624471b8269aabe510ee9f4625242ad9
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03012/s966640357.py
f6c0b5afb072f834dc2ec2f8bf626c997ed95245
[]
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
185
py
N = int(input()) W = input().split() W = [int(w) for w in W] S = sum(W) mini = pow(10, 10) for i in range(N): mi = abs(S - 2 * sum(W[0:i])) if mi < mini: mini = mi print(mini)
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
65ad7779c0771342e26563f4829f19544fe0d22a
b27dba9265e3fc46453293af33e215784cc60d15
/pype/plugins/standalonepublisher/publish/extract_review.py
fbc14785a4091115ef61a811360275e740e545fd
[ "MIT" ]
permissive
tws0002/pype
f8f655f51282128b7ac42df77fca58957f416dcd
80b1aad9990f6c7efabf0430a3da6633054bf4a8
refs/heads/develop
2020-04-29T21:51:22.583645
2019-12-09T04:23:17
2019-12-09T04:23:17
176,426,875
0
0
MIT
2019-12-09T04:23:18
2019-03-19T04:56:38
Python
UTF-8
Python
false
false
7,630
py
import os import tempfile import pyblish.api from pype.vendor import clique import pype.api class ExtractReviewSP(pyblish.api.InstancePlugin): """Extracting Review mov file for Ftrack Compulsory attribute of representation is tags list with "review", otherwise the representation is ignored. All new...
[ "jakub.trllo@gmail.com" ]
jakub.trllo@gmail.com
819ff6ab0594922528da4d79e8be19d32e18fad2
73a0f661f1423d63e86489d4b2673f0103698aab
/python/oneflow/test/modules/test_contiguous.py
4d589b551f159a895bb5b71bb58e4fb4ae3bb792
[ "Apache-2.0" ]
permissive
Oneflow-Inc/oneflow
4fc3e081e45db0242a465c4330d8bcc8b21ee924
0aab78ea24d4b1c784c30c57d33ec69fe5605e4a
refs/heads/master
2023-08-25T16:58:30.576596
2023-08-22T14:15:46
2023-08-22T14:15:46
81,634,683
5,495
786
Apache-2.0
2023-09-14T09:44:31
2017-02-11T06:09:53
C++
UTF-8
Python
false
false
4,922
py
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
[ "noreply@github.com" ]
Oneflow-Inc.noreply@github.com
acf80746855eaad75fcbdc580daa49d5bee0bf95
20176bf4fbd8aec139c7b5a27f2c2e155e173e6e
/data/all-pratic/oinam_singh/myprogram/filewordcnt2.py
993801d7b654e4f8041739bbfb5d975e82b48048
[]
no_license
githubjyotiranjan/pytraining
4ac4a1f83cc4270e2939d9d32c705019c5bc61c5
8b50c4ab7848bd4cbfdfbc06489768d577289c66
refs/heads/master
2020-03-19T06:22:20.793296
2018-06-15T20:08:11
2018-06-15T20:08:11
136,013,642
0
0
null
null
null
null
UTF-8
Python
false
false
644
py
import operator from collections import OrderedDict from collections import defaultdict mydict = defaultdict(int) with open('tmpread.txt') as file: for line in file: line = line.strip() for w in line.split(): mydict[w] += 1 #sorted_x = sorted(dics.items(), key=operator.itemgetter(1)) pr...
[ "jsatapathy007@gmail.com" ]
jsatapathy007@gmail.com
74f3ef6c3e844f6f8fa1234a783e57b16eddff82
8b57c6609e4bf3e6f5e730b7a4a996ad6b7023f0
/persistconn/packet.py
79a3d92edb26b212d7c04844f89ece59d3e93669
[]
no_license
bullll/splunk
862d9595ad28adf0e12afa92a18e2c96308b19fe
7cf8a158bc8e1cecef374dad9165d44ccb00c6e0
refs/heads/master
2022-04-20T11:48:50.573979
2020-04-23T18:12:58
2020-04-23T18:12:58
258,293,313
2
0
null
null
null
null
UTF-8
Python
false
false
7,103
py
from builtins import range from builtins import object import sys, os import json import splunk.util class PersistentServerConnectionProtocolException(Exception): """ Exception thrown when a recieved packet can't be interpreted """ pass class PersistentServerConnectionRequestPacket(object): """ ...
[ "splunk@x.y" ]
splunk@x.y
828624b6a0bd565af050bba8f33e9056adbcecb7
7ac271f357f4c8f0c23c697b11966259f836880f
/app/web/api/dvdrental/actors/views.py
c01616606759e970c7df14c53e3b08550a941cdf
[]
no_license
cheng93/PythonWeb
74a58eadee4ee7d2872a582a907bbf47630df371
d5ced8dee1d5ba31778125c5e67169c92acf26a0
refs/heads/develop
2021-01-19T23:59:11.315871
2018-03-04T19:26:18
2018-03-04T19:26:18
89,063,916
0
0
null
2018-03-04T19:26:19
2017-04-22T11:09:14
Python
UTF-8
Python
false
false
865
py
from pyramid.view import view_defaults, view_config @view_defaults(renderer='json', request_method='GET') class ActorsView: def __init__(self, request): self.request = request @view_config(route_name='get_actors') def get_actors(self): actors = self.request.actor_command.get_actors() ...
[ "derek.c@hotmail.co.uk" ]
derek.c@hotmail.co.uk
dc07e10ef638298141ad655475063b1d466b7bd6
adbf09a31415e6cf692ff349bd908ea25ded42a8
/challenges/custm_error.py
6588a2c0db988b4e09b75f6b79a1402a21026bb8
[]
no_license
cmulliss/gui_python
53a569f301cc82b58880c3c0b2b415fad1ecc3f8
6c83d8c2e834464b99024ffd8cf46ac4e734e7a4
refs/heads/main
2023-08-12T22:33:01.596005
2021-10-11T12:35:41
2021-10-11T12:35:41
408,176,101
0
0
null
null
null
null
UTF-8
Python
false
false
945
py
class TooManyPagesReadError(ValueError): pass class Book: def __init__(self, name: str, page_count: int): self.name = name self.page_count = page_count self.pages_read = 0 def __repr__(self): return ( f"<Book {self.name}, read {self.pages_read} pages out of {se...
[ "cmulliss@gmail.com" ]
cmulliss@gmail.com
0231d5a6b9754525fcc80fa184b2442b8c4d82d2
b449980703b2234e5610d20d22d54cb811722b68
/netdisco/discoverables/nanoleaf_aurora.py
135d785a425446491b59ae18c63cdcf06bf42dd8
[ "Apache-2.0" ]
permissive
bdraco/netdisco
81209c0ad21b2ca124b91fa67799034c337d62a8
cf547a8bac673f5aa92cde98824929fc9a31f05b
refs/heads/master
2023-06-17T09:40:18.001345
2020-06-17T21:23:05
2020-06-17T21:23:05
275,917,535
0
0
NOASSERTION
2020-06-29T20:20:12
2020-06-29T20:20:12
null
UTF-8
Python
false
false
278
py
"""Discover Nanoleaf Aurora devices.""" from . import MDNSDiscoverable class Discoverable(MDNSDiscoverable): """Add support for discovering Nanoleaf Aurora devices.""" def __init__(self, nd): super(Discoverable, self).__init__(nd, '_nanoleafapi._tcp.local.')
[ "paulus@paulusschoutsen.nl" ]
paulus@paulusschoutsen.nl
25164cbffde1974a5c531b3dfc519310cb45c313
334d0a4652c44d0c313e11b6dcf8fb89829c6dbe
/checkov/terraform/checks/resource/kubernetes/ImageDigest.py
92de4c65bc61d761b0e9ee2ee9f999bd465db7c8
[ "Apache-2.0" ]
permissive
schosterbarak/checkov
4131e03b88ae91d82b2fa211f17e370a6f881157
ea6d697de4de2083c8f6a7aa9ceceffd6b621b58
refs/heads/master
2022-05-22T18:12:40.994315
2022-04-28T07:44:05
2022-04-28T07:59:17
233,451,426
0
0
Apache-2.0
2020-03-23T12:12:23
2020-01-12T20:07:15
Python
UTF-8
Python
false
false
1,563
py
from checkov.common.models.enums import CheckCategories, CheckResult from checkov.terraform.checks.resource.base_resource_check import BaseResourceCheck class ImageDigest(BaseResourceCheck): def __init__(self): """ The image specification should use a digest instead of a tag to make sure the co...
[ "noreply@github.com" ]
schosterbarak.noreply@github.com
4485c5cf11f59565b40a8d538af812f0554de596
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03089/s906755257.py
498b64bddcd6ad6dac9dc95de7a88f6376c3de4f
[]
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
293
py
N = int(input()) B = list(map(int, input().split())) ans = [] for i in range(N): last = 0 for j, b in enumerate(B, 1): if b == j: last = b if last == 0: print(-1) exit() else: ans.append(B.pop(last - 1)) [print(a) for a in ans[::-1]]
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
df774daf61ba15eb90766bfcf097cd921934fd35
bdcf56bc8fdf4255b34038bf0280f21917f185a7
/005_landmarks_retrieval/test_data_generator.py
e8957bda42baa14c938c1e8339c6d7db082c7560
[]
no_license
Apollo1840/United_Kagglers
8dc05287f893a33f774efeaf0cd2ad436122dc69
80147867a6011da5a36e78473781481c805619ea
refs/heads/master
2020-04-10T18:51:29.223449
2019-04-13T08:32:25
2019-04-13T08:32:25
161,214,800
1
0
null
2019-04-06T09:16:40
2018-12-10T17:53:31
Python
UTF-8
Python
false
false
474
py
# -*- coding: utf-8 -*- """ Created on Sat Apr 6 08:30:38 2019 @author: zouco """ from data_generator import triplet_generation from data_generator import DataGenerator tg = triplet_generation() ID = "00cfd9bbf55a241e" img3 = tg.get_one_input_tensor(ID) print(len(img3)) print(img3[0].shape) from tools.plot_image...
[ "zoucongyu1993@hotmail.com" ]
zoucongyu1993@hotmail.com
0b8635d05f232b3683ce31ae12276f9c46ef05a3
35b58dedc97622b1973456d907ede6ab86c0d966
/day022/day22.py
8f8b5cb73e108c01ced7d4dee535666b5e32f737
[]
no_license
GithubLucasSong/PythonProject
7bb2bcc8af2de725b2ed9cc5bfedfd64a9a56635
e3602b4cb8af9391c6dbeaebb845829ffb7ab15f
refs/heads/master
2022-11-23T05:32:44.622532
2020-07-24T08:27:12
2020-07-24T08:27:12
282,165,132
0
0
null
null
null
null
UTF-8
Python
false
false
1,186
py
# from socket import * # s = socket(AF_INET,SOCK_DGRAM) #创建套接字 # addr = ('192.168.14.25',8080) #准备接收方地址 # data = input('请输入:') # s.sendto(data.encode(),addr) # #发送数据时,python3需要将字符串装换成byte # #encode('utf-8') 用utf-8对数据进行编码,获得bytes类型对象 # #decode()反过来 # s.close() # from socket import * # import time # # s = socket(AF_INE...
[ "1433880147@qq.com" ]
1433880147@qq.com
1eb767cf72d777c0f346fc7cee95917651a364a3
b736c527824198e1b07c821b685ca679cede79dd
/classes/FileSystemTools.py
6485992423ec7a372ece0d2d6edc96202280c550
[]
no_license
LaoKpa/neat-3
c276b58ce2dd77ea32b701820adc29b99f508ec7
b2b89023db5822d498b3edc84f8b84880dc6e6b6
refs/heads/master
2022-03-19T08:57:40.857925
2019-11-16T05:29:17
2019-11-16T05:29:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,461
py
from datetime import datetime from os import mkdir import os from copy import copy,deepcopy import time import glob import subprocess def getDateString(): return(datetime.now().strftime('%d-%m-%Y_%H-%M-%S')) def makeDir(dir_name): # Even if this is in a library dir, it should make the dir # in the script that cal...
[ "declanoller@gmail.com" ]
declanoller@gmail.com
375a018c63de5a9df57f07c26829657f66bcfbeb
c369443df5ff98eccc0eee7f63bb8947f2943605
/shop/migrations/0002_product_photo.py
6f674858a235d0794a6b5cc89516d04cb88266a3
[]
no_license
erllan/shop-test
d2934f484b25d141a60caa5aca31a61eec48f055
1f77de177192ce6a1f8c5ccf1d7ca93ec026acf5
refs/heads/master
2023-03-06T01:04:38.785383
2021-02-27T18:02:07
2021-02-27T18:02:07
341,929,117
0
0
null
null
null
null
UTF-8
Python
false
false
408
py
# Generated by Django 3.1.7 on 2021-02-26 11:11 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('shop', '0001_initial'), ] operations = [ migrations.AddField( model_name='product', name='photo', field=...
[ "erlan.kubanychbekov.000@gmail.com" ]
erlan.kubanychbekov.000@gmail.com
22a186c790c53f60967d236882877184068afc26
e199c0648ee56c84d421bb47b2b5c163a1bd4cf1
/prep/prep_wiktionary.py
70fb588952e6e9f0cbea315305346013b12561da
[ "MIT" ]
permissive
inoue0406/VocabularyPF
72a3abea4b920c7959997198ef02374e5d16782a
077300f82ef358ceb77e80f79ecb66f8124efbf6
refs/heads/main
2023-06-23T00:56:46.477992
2021-07-23T15:38:05
2021-07-23T15:38:05
365,765,325
0
0
null
null
null
null
UTF-8
Python
false
false
2,143
py
# prep for wiktionary data import json import pandas as pd #import wiktextract def extract_pronunciation(sounds): # Extract American Pronunciation #list_country = ["General American","Received Pronunciation","US","UK"] ipa = "" for i in range(len(sounds)): if "ipa" in sounds[i].keys(): ...
[ "inoue0406@gmail.com" ]
inoue0406@gmail.com
de8792347405aadd837977316f12004147297193
8ed1430279ae52fd950dd0afe88549a100001e26
/share/qt/extract_strings_qt.py
fefe2a907b40cfcfc4faa38e5f166048293fadca
[ "MIT" ]
permissive
mirzaei-ce/core-najafbit
9fb70dbd4e17ec1635d7b886db17f8aab3f592bb
6de34210a9ba9cc3f21fee631bc1a1f4d12d445d
refs/heads/master
2021-08-11T08:53:58.165742
2017-11-13T13:00:14
2017-11-13T13:00:14
110,548,740
0
0
null
null
null
null
UTF-8
Python
false
false
1,876
py
#!/usr/bin/python ''' Extract _("...") strings for translation and convert to Qt4 stringdefs so that they can be picked up by Qt linguist. ''' from subprocess import Popen, PIPE import glob import operator import os import sys OUT_CPP="qt/najafbitstrings.cpp" EMPTY=['""'] def parse_po(text): """ Parse 'po' fo...
[ "mirzaei@ce.sharif.edu" ]
mirzaei@ce.sharif.edu