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
0f9e9852bc81691ad0a672e8840592cc337887e5
cba46e28e6f60d9bd8cc8c24a3ff8e065e5a8e49
/scrap_trade_proj/doc_repo/models.py
ecbf73f47f21efe2c10d67aed2895289d3d97b2a
[]
no_license
Horac-Bouthon/scrap-trade-4
fb7e9f8f9ec41446318ce03ad5ff7024ad795771
7686703ce5783dd4a48dc1d9600cda01aa554faa
refs/heads/master
2022-12-12T21:52:38.209500
2020-03-17T07:50:30
2020-03-17T07:50:30
227,142,003
0
0
null
2022-11-22T04:39:35
2019-12-10T14:33:20
Python
UTF-8
Python
false
false
7,097
py
from django.db import models from django.conf import settings from django.urls import reverse import uuid from pdf2image import convert_from_path from django.utils.translation import gettext_lazy as _ from django.utils import translation as tr from translatable.models import TranslatableModel, get_translation_model ...
[ "tbrown.wolf@ubk.cz" ]
tbrown.wolf@ubk.cz
09d004b1906893a51b1d0ef124aa91e4433ed1cd
8a63821681b29f196a0dcf19308a75679f89adaf
/Algorithm/布隆过滤算法.py
f3cc26a121bba26e19360434af297a665e9ad9b0
[]
no_license
Breathleas/notes-4
2b4391b6205660dae256c4132ecb3f953061a2f7
6c11e4583e191da323d8ffdc83534e9582036ae1
refs/heads/master
2021-10-09T03:18:08.560660
2018-12-20T14:46:31
2018-12-20T14:46:31
null
0
0
null
null
null
null
GB18030
Python
false
false
818
py
---------------------------- 布隆过滤算法 | ---------------------------- # 在N多数据中,判断数据是否存在 # 添加逻辑 1,存入数据,使用多个hash函数对数据进行运算 v1 = hash3(key) v2 = hash3(key) v3 = hash3(key) 2,多个hash值取模数组长度,把得到的结果角标设置为1 arr[v1 % arr.length] = 1; arr[v2 % arr.length] = 1; arr[v3 % arr.length] = 1; # 判断逻辑 1,使...
[ "747692844@qq.com" ]
747692844@qq.com
2ca649bd865704e92b59ad46113905a39e6e9ecf
070e06d721d450260f70fed0811b5dd147d1ea10
/zhihudaily/cache.py
c49f84aa4649b4cb8f6609ea4b6296688742e65a
[ "MIT" ]
permissive
lord63/zhihudaily
b1e411c6a93a4cc0ec629336259021baff81d6f7
c6aa147d146223bb5842297e58a702b574f7dce5
refs/heads/master
2021-07-13T16:34:51.370694
2020-08-29T00:32:08
2020-08-29T00:32:08
30,679,182
2
2
MIT
2021-03-19T21:31:47
2015-02-12T01:27:15
CSS
UTF-8
Python
false
false
137
py
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import from flask_caching import Cache cache = Cache()
[ "lord63.j@gmail.com" ]
lord63.j@gmail.com
3474ecb3d40fcd0b061ae0df216446bedbe133df
5f9e0c226c6f99f04446d60cd21282e7e6b05d2c
/shopaholic.py
29a69172980d2cbfba97c78833ed1b6795f42e57
[]
no_license
JONNY-ME/my-kattis-solution
867ac267dbb5faa6f7c2af35b435498a22ae269d
51c70e0fd25f1f369cdcd2ce49a54d5d0df2358e
refs/heads/main
2023-06-17T20:04:04.701038
2021-07-16T09:35:35
2021-07-16T09:35:35
386,583,581
0
1
null
null
null
null
UTF-8
Python
false
false
135
py
n=int(input());t=(n//3)*3;s=0 l=sorted([int(i) for i in input().split()], reverse=True)[:t] for i in range(2, t, 3):s+=l[i] print(s)
[ "yohannesmelese4@gmail.com" ]
yohannesmelese4@gmail.com
91f3b83f2e2165edc7225395b0c2597f37f99802
d0237e274f34b6a02f1d78b668a55cb150833435
/src/yss/yss/root/__init__.py
4a2d58135ce75c912bdf61978ef9fa5cccd8fa88
[ "BSD-3-Clause-Modification" ]
permissive
notaliens/youshouldsing
f2a90cc7b7f5d9c64052c72b77827e2c77cd8b40
948f7fb30a12eccdc34bb23db4e139afab8ee782
refs/heads/master
2021-01-01T17:28:44.739929
2019-01-21T05:33:01
2019-01-21T05:33:01
13,230,677
2
0
null
2013-10-02T03:01:26
2013-09-30T23:56:46
CSS
UTF-8
Python
false
false
2,375
py
import pkg_resources from substanced.schema import Schema from substanced.property import PropertySheet from substanced.interfaces import IRoot import colander from pyramid.security import ( Allow, Everyone, Authenticated, ) from substanced.event import subscribe_root_added from substanced.util imp...
[ "chrism@plope.com" ]
chrism@plope.com
4aeb6283041e70a8c1de4a1ba7dc3d632e950b36
a3d2f81c04bde252ef7554e65ecbf2c32ce3c2dc
/feincms/views/decorators.py
62727ae79a4ef972fdad1051bad1b8e7a043a6ec
[ "BSD-2-Clause" ]
permissive
natea/feincms
3dd6949195352ad96e13c2f3b4d8d7a1677a97b8
1d45e3aae5fba6e4a2eccf8ee7675b2ffff2b70c
refs/heads/master
2020-12-25T10:10:14.358175
2011-03-28T14:56:55
2011-03-28T14:56:55
1,497,290
1
0
null
null
null
null
UTF-8
Python
false
false
1,132
py
from django.http import HttpResponse try: from functools import wraps except ImportError: from django.utils.functional import wraps from feincms.module.page.models import Page def add_page_to_extra_context(view_func): """ Adds the best-match page to the extra_context keyword argument. Mainly used ...
[ "mk@spinlock.ch" ]
mk@spinlock.ch
6e150deceef1c7a9b30fb1a8608864d3f6d44be6
c0c4fe8f9aff2e7684fcaf10329f963873753b2a
/doc/examples/scripts/sequence/thca_synthase_polymorphism.py
b480f9e3c1e9a2e58d08430f51d6283c83744cbb
[ "BSD-3-Clause" ]
permissive
thomasnevolianis/biotite
85e1b9d6a1fbb5d9f81501a8ebc617bc26388ab9
916371eb602cfcacb2d5356659298ef38fa01fcc
refs/heads/master
2022-11-30T19:40:53.017368
2020-08-04T07:00:59
2020-08-04T07:00:59
285,375,415
0
0
BSD-3-Clause
2020-08-05T18:41:48
2020-08-05T18:41:47
null
UTF-8
Python
false
false
4,842
py
""" Polymorphisms in the THCA synthase gene ======================================= The THCA synthase catalyzes the last step in the synthesis of tetrahydrocannabinolic acid (THCA), the precursor molecule of tetrahydrocannabinol (THC). Two types of *cannabis sativa* are distinguished: While the *drug-type* strains pr...
[ "patrick.kunzm@gmail.com" ]
patrick.kunzm@gmail.com
b9744bf4821bf09b5f67a2fb97e23214e355a077
b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a
/examples/pwr_run/checkpointing/non_slurm/max_pwr/job2.py
82a946d08723b6eac162e05a65750b65e8a2c09f
[ "MIT" ]
permissive
boringlee24/keras_old
3bf7e3ef455dd4262e41248f13c04c071039270e
1e1176c45c4952ba1b9b9e58e9cc4df027ab111d
refs/heads/master
2021-11-21T03:03:13.656700
2021-11-11T21:57:54
2021-11-11T21:57:54
198,494,579
0
0
null
null
null
null
UTF-8
Python
false
false
6,940
py
""" #Trains a ResNet on the CIFAR10 dataset. """ from __future__ import print_function import keras from keras.layers import Dense, Conv2D, BatchNormalization, Activation from keras.layers import AveragePooling2D, Input, Flatten from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, LearningRa...
[ "baolin.li1994@gmail.com" ]
baolin.li1994@gmail.com
76bdb93913f9d300ebad0d08e7d3e540f3824537
b87f66b13293782321e20c39aebc05defd8d4b48
/maps/build/mayavi/enthought/mayavi/core/filter.py
73f5839cd3d9347f5fc23d824b5081341fc89a4a
[]
no_license
m-elhussieny/code
5eae020932d935e4d724c2f3d16126a0d42ebf04
5466f5858dbd2f1f082fa0d7417b57c8fb068fad
refs/heads/master
2021-06-13T18:47:08.700053
2016-11-01T05:51:06
2016-11-01T05:51:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,988
py
"""The base filter class from which all MayaVi filters derive. """ # Author: Prabhu Ramachandran <prabhu_r@users.sf.net> # Copyright (c) 2005, Enthought, Inc. # License: BSD Style. # Enthought library imports. from enthought.traits.api import List, Str # Local imports from enthought.mayavi.core.source import Source ...
[ "fspaolo@gmail.com" ]
fspaolo@gmail.com
57e5d03c8401a81a3f6c47bf41522f40cacefad2
b8faf65ea23a2d8b119b9522a0aa182e9f51d8b1
/vmraid/desk/form/assign_to.py
0b937b3dc417bfc913934af983ff322a20a1063c
[ "MIT" ]
permissive
vmraid/vmraid
a52868c57b1999a8d648441eb9cd05815204345d
3c2e2a952003ba7ea2cf13673b9e79e127f4166e
refs/heads/main
2022-07-29T18:59:28.585133
2022-04-22T08:02:52
2022-04-22T08:02:52
372,473,120
0
0
null
null
null
null
UTF-8
Python
false
false
6,475
py
# Copyright (c) 2015, VMRaid and Contributors # License: MIT. See LICENSE """assign/unassign to ToDo""" import json import vmraid import vmraid.share import vmraid.utils from vmraid import _ from vmraid.desk.doctype.notification_log.notification_log import ( enqueue_create_notification, get_title, get_title_html,...
[ "sowrisurya@outlook.com" ]
sowrisurya@outlook.com
ad3b204e0353db2d321706bbc3b27e91899eaa08
8a0f8d4b05e26f04dd584ed51ab77c78f00740a8
/monasca_notification/types/notifiers.py
a1040a14ac468bbb4580173f5a8bd071dbd5e838
[]
no_license
TonyChengTW/monasca-tony
1ce9d8fb9299864dc049c9caef0f6ce10b871670
c2b3e70a3fd331410a642aec1a5e0ac58d4dc7e4
refs/heads/master
2021-06-27T02:14:06.889700
2017-09-15T02:46:25
2017-09-15T02:46:25
103,096,157
0
0
null
null
null
null
UTF-8
Python
false
false
4,097
py
# (C) Copyright 2015,2016 Hewlett Packard Enterprise Development LP # # 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 ap...
[ "tony.pig@gmail.com" ]
tony.pig@gmail.com
a5373811bc314524609755af1eb7c1cf21b3e2e9
b2644f42e5645f74d33e0c64ad1183172ce2be88
/handpose/utils/image/__init__.py
3e8695f9eb9756e8424bb94bdeb3284989271ed0
[]
no_license
YanWanquan/handpose
e9282b2a8485f52d8b286c20a0f0d3f1e97b7b0b
a755ff80011007ba124ff5cd4c47f0c99ca28b8b
refs/heads/master
2023-03-17T07:55:04.049356
2020-03-20T06:02:12
2020-03-20T06:02:12
null
0
0
null
null
null
null
UTF-8
Python
false
false
137
py
from __future__ import absolute_import from .image_utils import * from .colors import * from .draw_detection import draw_detection
[ "tsai.tsunghua@gmail.com" ]
tsai.tsunghua@gmail.com
78cf9c6623be1565196efc57f24c7d06f933e7ac
91a41c5ce70819a69dfc6f6f2b94f862244267da
/commands/Translate.py
30280c6d98fd5c567a8bc61273ba085bd72bd7c0
[]
no_license
mions1/silvia
9e489a5537d125acdffc3089c50ffa766b739738
f2e5bf7d0c8cf1a90fcb8a663380aff91a6f63a3
refs/heads/master
2023-03-18T22:43:53.610163
2021-03-09T15:36:11
2021-03-09T15:36:11
346,031,715
0
0
null
null
null
null
UTF-8
Python
false
false
3,207
py
from . import Command from google.cloud import translate_v2 as translate from commands import builtin as bin class Translate(): LANGUAGES = { 'af': 'africano', 'sq': 'albanese', 'ar': 'arabo', 'hy': 'armeno', 'bn': 'Bengali', 'ca': 'catalano', 'zh': 'cinese',...
[ "simone.mione1@gmail.com" ]
simone.mione1@gmail.com
a74be285641ea899eccb1367db3ce61e01d8b919
caa175a933aca08a475c6277e22cdde1654aca7b
/tests/models/product/product_relation_types/test_relations.py
745370f316f860b8d7729382fd9163a74d6c8c2a
[ "MIT" ]
permissive
simonsobs/acondbs
01d68ae40866461b85a6c9fcabdfbea46ef5f920
d18c7b06474b0dacb1dcf1c6dbd1e743407645e2
refs/heads/main
2023-07-07T04:33:40.561273
2023-06-28T22:08:00
2023-06-28T22:08:00
239,022,783
0
1
MIT
2023-06-26T20:36:39
2020-02-07T21:07:46
Python
UTF-8
Python
false
false
1,920
py
import pytest from flask import Flask from acondbs.db.sa import sa from acondbs.models import ProductRelationType @pytest.fixture def app(app_empty: Flask) -> Flask: y = app_empty # # +--------+ +-------+ # | | --(reverse)-> | | # | parent | | child...
[ "tai.sakuma@gmail.com" ]
tai.sakuma@gmail.com
7f61e83b66c2db625d75c713ddfe56f43b63fe62
73d5c11866f739ea0f4cbdb86662e9c11d9c081a
/if_test.py
f8054c582bf14fbed0b1f4ba322f88c347869fd1
[]
no_license
qorud02/changwonai
d9de4adbc3604be2706bfe0df8184cd60f89c0f4
dcf9996ccc51a674681d3639c2b57a85444146ac
refs/heads/main
2023-01-25T03:14:06.616372
2020-11-22T09:39:16
2020-11-22T09:39:16
314,939,724
0
0
null
null
null
null
UTF-8
Python
false
false
416
py
# print(type(3>5)) # print(6>5) # if 6>5: # print("Do 1") # print("Do 2") # else: # print("Not doing") # 나이 = 15 # if 나이 < 20: # # print("청소년 할인") # 걸음 = intinput("걸음을 입력해주세요") # if 걸음 >= 1000: # print("목표 달성") # 시간 = 13 # if 시간 < 12: # print("오전입니다") # else: # print("오후입니다") import word w...
[ "you@example.com" ]
you@example.com
3eb1f20a7f22613daa82fc565db909c67c1988bc
105212e4d2d2175d5105e05552e29b300375e039
/DL/RL/deepmind/pysc2-examples/demo.py
29cd7855d8c76d513357636f8fded269594a67e6
[ "Apache-2.0" ]
permissive
Asher-1/AI
84f0c42651c0b07e6b7e41ebb354258db64dd0d1
a70f63ebab3163f299f7f9d860a98695c0a3f7d5
refs/heads/master
2022-11-26T07:24:37.910301
2019-05-30T13:04:31
2019-05-30T13:04:31
160,031,310
7
1
null
2022-11-21T22:02:53
2018-12-02T09:19:03
Jupyter Notebook
UTF-8
Python
false
false
2,038
py
import sys import os import pdb from absl import flags from pysc2.env import sc2_env from pysc2.lib import actions as sc2_actions import os import datetime from pysc2.env import environment import numpy as np from common.vec_env.subproc_vec_env import SubprocVecEnv import random import time FLAGS = flags.FLAGS ...
[ "ludahai19@163.com" ]
ludahai19@163.com
e1b6bb2e250e6b34c211768511bd921692120eaf
2837519560abb55b83ed9a0ff19fe468568057a8
/flood_fill.py
63c6e40f4a5d2e58d7c475dd9e75a0b37e3a94bb
[]
no_license
shahakshay11/DFS-1
47df064f2326805444647399c0f07bb1c56ffd53
9d06719ab8432b837dc6361b381a34c2663f8117
refs/heads/master
2022-04-18T12:21:07.249034
2020-04-17T05:09:41
2020-04-17T05:09:41
256,349,677
0
0
null
2020-04-16T23:06:32
2020-04-16T23:06:31
null
UTF-8
Python
false
false
1,432
py
""" // Time Complexity : O(m*n) // Space Complexity : O(m*n) // Did this code successfully run on Leetcode : No // Any problem you faced while coding this : Ending recursion // Your code here along with comments explaining your approach Algorithm explanation DFS - Idea is to run DFS on sr,sc in the matrix and update t...
[ "akshay.vjti11@gmail.com" ]
akshay.vjti11@gmail.com
2c6e6b8017bdb7a5aa4d63abd9ca3ec0a3126253
fca120e66c06b1e3637c9b7463ee5769afc9af70
/galaxy/tools/cwl/util.py
4ece8d450fe43b7b05fc738f96c37f30da74cfc0
[ "AFL-3.0", "CC-BY-2.5", "AFL-2.1", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
jerowe/galaxy-lib
fb49cf08538b9702b1b1bb349b4a9757950bd18c
ea29d1d3ee4c28eb3e76daecca9465a1c67b571c
refs/heads/master
2021-01-23T02:16:13.467881
2017-09-01T01:46:38
2017-09-01T01:46:38
102,438,112
0
0
null
2017-09-05T05:31:28
2017-09-05T05:31:28
null
UTF-8
Python
false
false
6,924
py
"""Client-centric CWL-related utilities. Used to share code between the Galaxy test framework and other Galaxy CWL clients (e.g. Planemo).""" import hashlib import json import os from collections import namedtuple from six import iteritems, StringIO def output_properties(path=None, content=None): checksum = ha...
[ "jmchilton@gmail.com" ]
jmchilton@gmail.com
017790c669c4f1bf70f58eb6cfd4c9089c70646d
380372bbec9b77df14bb96fc32aca7061cca0635
/astro/sat/tle2.py
86c3031403c10cd04cc9e670bf7e423ce77da94d
[]
no_license
IchiroYoshida/python_public
d3c42dc31b3206db3a520a007ea4fb4ce6c1a6fd
37ccadb1d3d42a38561c7708391f4c11836f5360
refs/heads/master
2023-08-16T17:19:07.278554
2023-08-13T21:29:51
2023-08-13T21:29:51
77,261,682
2
0
null
null
null
null
UTF-8
Python
false
false
3,742
py
#! /usr/local/bin/python3.6 """ 直近 TLE データ取得 (from NASA) : 過去の直近の TLE データ1件を取得する (過去データが存在しなければ、未来の直近データ) date name version 2018.06.12 mk-mode.com 1.00 新規作成 Copyright(C) 2018 mk-mode.com All Rights Reserved. --- 引数 : [YYYYMMDD[HHMMSS]] (JST を指定。無指定なら現在時刻とみなす) """ from datet...
[ "yoshida.ichi@gmail.com" ]
yoshida.ichi@gmail.com
1c7c6152f130673e43ea5c7a7a14923df429ae30
044facb13bff7414439db8706ed322ea505698fa
/old/python/sandbox/old_stuff/multi_sampling/conditionals.py
3f0db46bbddcf90a69ec3dfa653fa07f655d73bc
[]
no_license
paglenn/WLC
2c42944bfe707018b5dbfb6ec471518aff2642c7
e57544eba1380da6a260532b5b72b39c0d1fa433
refs/heads/master
2020-12-24T14:35:54.944179
2015-11-09T14:43:35
2015-11-09T14:43:35
23,404,500
0
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
import numpy as np import os from parameters import * def calculate_TP(): TP = [] if not os.path.isfile(tp_file): print("data file ",tp_file,"missing!") exit() tpFile = open(tp_file,'r') for line in tpFile.readlines(): TP.append(float(line[:-1])) tpFile.close() return ...
[ "nls.pglenn@gmail.com" ]
nls.pglenn@gmail.com
6d60af458900694275feaf31879721e43da59186
cacb92c6dba32dfb7f2a4a2a02269f40ab0413dd
/mmdet/datasets/pipelines/test_time_aug.py
f3a04e7311af9a306703ced843e4cdfe6f1edb66
[ "Apache-2.0" ]
permissive
dereyly/mmdet_sota
697eab302faf28d5bce4092ecf6c4fd9ffd48b91
fc14933ca0ec2eebb8e7b3ec0ed67cae0da3f236
refs/heads/master
2022-11-26T14:52:13.665272
2020-08-04T00:26:46
2020-08-04T00:26:46
272,046,903
15
5
Apache-2.0
2020-07-16T06:22:39
2020-06-13T16:37:26
Python
UTF-8
Python
false
false
2,741
py
import warnings import mmcv from ..builder import PIPELINES from .compose import Compose @PIPELINES.register_module() class MultiScaleFlipAug(object): """Test-time augmentation with multiple scales and flipping Args: transforms (list[dict]): Transforms to apply in each augmentation. img_sca...
[ "nikolay@xix.ai" ]
nikolay@xix.ai
94cf91731423bf8731c68e6c7bd64038ada51c7e
265d0477b43dd6391b939d08577bb82c57184cdf
/official/utils/registry_test.py
47e3722993c79e96706d56757e6e3997f072ffde
[ "Apache-2.0" ]
permissive
EthanGeek/models
02c9fca96f5b3be7503bb0e75172e2f683bf4b73
a9fcda17153e4f36d431174934abef4151f1f687
refs/heads/master
2022-12-11T08:58:19.241487
2020-09-04T00:38:22
2020-09-04T00:38:22
292,791,920
1
0
Apache-2.0
2020-09-04T08:21:02
2020-09-04T08:21:01
null
UTF-8
Python
false
false
2,560
py
# Lint as: python3 # Copyright 2020 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
c440828efe9f129ee90f410999d2d0d211b37e61
54a5f5ec2c5edf924b7dc7730ee7cb2a38ac4a39
/MergingDataFrameswithpandas/E27_Using_merge_asof.py
e556c2a5d480cbe0125360e461af6d06c17a0cc1
[]
no_license
dajofischer/Datacamp
fac413ec178375cedceababaf84f6b47a61fc821
a03d16b8f342412f1ee077f2f196ee8404e2e21c
refs/heads/master
2020-04-05T08:38:25.361746
2019-03-27T20:55:57
2019-03-27T20:55:57
156,722,561
1
0
null
null
null
null
UTF-8
Python
false
false
307
py
# Merge auto and oil: merged merged = pd.merge_asof(auto,oil,left_on='yr' , right_on='Date') # Print the tail of merged print(merged.tail()) # Resample merged: yearly yearly = merged.resample('A',on='Date')[['mpg','Price']].mean() # Print yearly print(yearly) # print yearly.corr() print(yearly.corr())
[ "dajofischer@gmail.com" ]
dajofischer@gmail.com
40891161a6e4cade4b43b30586594b4651c6ee2a
d3efc82dfa61fb82e47c82d52c838b38b076084c
/crossmarketetf/crossmarket_creation_HA/YW_CETFSS_SHSG_048.py
b948171ffe226a7b5fdd317eb7b46970b408751f
[]
no_license
nantongzyg/xtp_test
58ce9f328f62a3ea5904e6ed907a169ef2df9258
ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f
refs/heads/master
2022-11-30T08:57:45.345460
2020-07-30T01:43:30
2020-07-30T01:43:30
280,388,441
0
0
null
null
null
null
UTF-8
Python
false
false
6,698
py
#!/usr/bin/python # -*- encoding: utf-8 -*- import sys sys.path.append("/home/yhl2/workspace/xtp_test") from crossmarketetf.cetfservice.cetf_main_service import * from crossmarketetf.cetfservice.cetf_get_components_asset import * from crossmarketetf.cetfservice.cetf_utils import * from mysql.QueryOrderErrorMsg import q...
[ "418033945@qq.com" ]
418033945@qq.com
5ce5c41d4a76c971071d193991947217158f28a7
5e1074afdb17eeb3a78eaf16093c8c491d9f3c0e
/pyramid_blogr/services/blog_record.py
98266b411230078f2501547f4a5ab7f7e57ce5ac
[]
no_license
andyk1278/pyramid_blogr
52255cf1a09c3ed3a43f6c2503a722db30df9f19
1e8b53e754b5315c08a2e982c9be08e76c331748
refs/heads/master
2021-01-01T05:54:28.668964
2017-07-15T23:12:53
2017-07-15T23:12:53
97,301,842
0
0
null
null
null
null
UTF-8
Python
false
false
958
py
import sqlalchemy as sa from paginate_sqlalchemy import SqlalchemyOrmPage from ..models.blog_record import BlogRecord class BlogRecordService(object): @classmethod def all(cls, request): query = request.dbsession.query(BlogRecord) return query.order_by(sa.desc(BlogRecord.created)) @classm...
[ "andyk1278@gmail.com" ]
andyk1278@gmail.com
5c510e80b59c7982d33d9b43ae200d9f186a4b9d
04c7295ce65a623dc62454aa46ae4ae4ce51ca36
/Assignment/ass1/q2/ass1q2.py
25306781782d97e627e5d64efb3a34b5b2ddc616
[]
no_license
hty-unsw/COMP9021-Python
38373378162a314a82bf14453d026e641963e1b9
97be6dfa730247b59e608ec6d464ac16b4cf1968
refs/heads/master
2020-07-03T00:51:23.540099
2018-10-30T14:23:15
2018-10-30T14:23:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,995
py
import sys import os.path from itertools import groupby try: N = input('Please enter the name of the file you want to get data from: ') if not os.path.exists(N): raise EOFError else: f = open(N) s = f.read() f.close() origin_list = s.split() L = [i...
[ "grey1991ss@gmail.com" ]
grey1991ss@gmail.com
f9b03003acb6e4f7f8f5bea29ff4743e4c9a8b23
7c5e9dd27939492a5f75650e02804f2a84e982ec
/apps/shares/models.py
e47e0b3b474e210421a039b24fbfcaffa1259e91
[]
no_license
karol-gruszczyk/janusze-biznesu
da431f7b31a7c368c07444ef5e82a25d95fcfc90
4d5c18a1d407704a39c7c50a4fdde0391b87d116
refs/heads/master
2021-01-17T20:04:06.799391
2015-12-04T12:13:56
2015-12-04T12:13:56
37,723,184
0
0
null
null
null
null
UTF-8
Python
false
false
1,933
py
from django.db import models class ShareManager(models.Manager): @classmethod def get_records(cls, share): if type(share) != Share: raise TypeError("type 'Share' expected") return ShareRecord.objects.filter(share__pk=share.pk) @classmethod def get_groups(cls, share): ...
[ "karol.gruszczyk@gmail.com" ]
karol.gruszczyk@gmail.com
e535b1ca14677486264c1141216705096921d269
ae3f23efcdc4b7fdd1c224043d0ece002955956e
/host/host/containers/lxc/utils.py
8071ab5980742ef6789095528ee0e01719973559
[]
no_license
alexeysofin/xplace
4466682fe76c808288d69f2808ddbca38a583bc4
9f12f066a62fae4e789bee94e5e554cc6de26d90
refs/heads/master
2023-01-12T01:02:40.137609
2021-02-14T20:41:30
2021-02-14T20:41:30
208,021,139
0
0
null
2023-01-04T10:18:46
2019-09-12T10:07:17
Python
UTF-8
Python
false
false
375
py
import os from host.utils.sub_process import run_command from .const import LXC_BIN_PATH from .exceptions import ContainerException def run_container_command(command, *args, command_input=None): command = os.path.join(LXC_BIN_PATH, command) return run_command(command, *args, command_input=command_input, ...
[ "sofin.moffin" ]
sofin.moffin
5d96058fd7a39afd318a44140707be93e5029f7e
e7022b8eb4179e87007bc184a43cfb470c8637a5
/code/dbengine.py
6b4a0f13b3a9004009a5ea357a8e947203f254f8
[]
no_license
yscoder-github/nl2sql-tianchi
a683c96ce5f545e38c7eb4afbb655ff537c73339
2d4463c5098d7533ebf879d874a8c14e61b8f269
refs/heads/master
2021-07-07T10:25:47.939612
2020-11-29T13:01:34
2020-11-29T13:01:34
207,695,804
74
18
null
null
null
null
UTF-8
Python
false
false
2,398
py
# -*- coding:utf-8 -*- import json import records import re from config import * class DBEngine: def __init__(self, fdb): self.db = records.Database('sqlite:///{}'.format(fdb)) self.conn = self.db.get_connection() def execute(self, table_id, select_index, aggregation_index, conditions, condit...
[ "yscoder@foxmail.com" ]
yscoder@foxmail.com
ca458ad14d97e536e9aa50c93af18dc6a1bae1b3
7a42d40a351824464a3c78dc0c3e78bbd8e0a92f
/bigdog_blog/blog/models.py
accbdf0df9a4805d5522a5c121acb6c6c2048712
[]
no_license
AhMay/DerekBlogLearn
6595063eafbc237b932e187b5cb3ad8ff32637fc
fdd5ea2fc5732cdc82ad006f7be0a2a1f30d0ba9
refs/heads/master
2020-07-09T05:20:33.283672
2019-09-29T10:10:23
2019-09-29T10:10:23
203,891,215
0
0
null
null
null
null
UTF-8
Python
false
false
4,136
py
from django.db import models from django.contrib.auth.models import User from django.urls import reverse from unidecode import unidecode from django.template.defaultfilters import slugify from ckeditor_uploader.fields import RichTextUploadingField from datetime import datetime # Create your models here. class Articl...
[ "meizi111082@hotmail.com" ]
meizi111082@hotmail.com
791c91c8bad3f89f23330677eec8ef411ee77ec5
532ca0c5361b54970bc435232e2a6d079c49aecd
/02_Strings and Console Output/01__Strings and Console Output/02_Practice.py
3d197e67ca3925a0945cf843aae122c22ef018ea
[]
no_license
haveano/codeacademy-python_v1
dc5484e8df73b9a15ffce835dde625b6454c8302
10e6fb2974e1c47f380bb6a33c50b171ecfbf50f
refs/heads/master
2021-01-11T16:45:57.337493
2017-05-30T10:04:08
2017-05-30T10:04:08
79,660,536
0
0
null
null
null
null
UTF-8
Python
false
false
401
py
""" Practice Excellent! Let's get a little practice in with strings. Instructions Set the following variables to their respective phrases: Set caesar to "Graham" Set praline to "John" Set viking to "Teresa" """ # Assign your variables below, each on its own line! caesar = "Graham" praline = "John" viking = "Teresa" ...
[ "noreply@github.com" ]
haveano.noreply@github.com
844f5b18c6467cd856b107372a08f137d28c5bbf
07564c75c1f37f2e0304720d1c01f23a27ef3469
/543.DiameterofBinaryTree/solution.py
9d5a9edc240760c0c6c070bffacb98e6e92bb25b
[]
no_license
ynXiang/LeetCode
5e468db560be7f171d7cb24bcd489aa81471349c
763372587b9ca3f8be4c843427e4760c3e472d6b
refs/heads/master
2020-05-21T18:27:16.941981
2018-01-09T22:17:42
2018-01-09T22:17:42
84,642,017
0
0
null
null
null
null
UTF-8
Python
false
false
601
py
# Definition for a binary tree node. # class TreeNode(object): # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution(object): def diameterOfBinaryTree(self, root): """ :type root: TreeNode :rtype: int """ re...
[ "yinan_xiang@163.com" ]
yinan_xiang@163.com
6e6933c8437c6d5ee41f9b5347467037f3a952c0
209a7a4023a9a79693ec1f6e8045646496d1ea71
/COMP0016_2020_21_Team12-datasetsExperimentsAna/pwa/FADapp/pythonScripts/venv/Lib/site-packages/pandas/tests/indexing/multiindex/test_indexing_slow.py
a6d678af44ae14e714169ade419968e4d2a623e4
[ "MIT" ]
permissive
anzhao920/MicrosoftProject15_Invictus
5e2347015411bbffbdf0ceb059df854661fb240c
15f44eebb09561acbbe7b6730dfadf141e4c166d
refs/heads/main
2023-04-16T13:24:39.332492
2021-04-27T00:47:13
2021-04-27T00:47:13
361,913,170
0
0
MIT
2021-04-26T22:41:56
2021-04-26T22:41:55
null
UTF-8
Python
false
false
3,087
py
import warnings import numpy as np import pytest import pandas as pd from pandas import DataFrame, Series import pandas._testing as tm m = 50 n = 1000 cols = ["jim", "joe", "jolie", "joline", "jolia"] vals = [ np.random.randint(0, 10, n), np.random.choice(list("abcdefghij"), n), np.rando...
[ "ana.kapros@yahoo.ro" ]
ana.kapros@yahoo.ro
2f66e6e8846a2c3a80d4c7e9ad2324bdf9096648
f0257428fed2a5f10950ee52e88a0f6811120323
/study_oldboy/Day11/01.11_rabbitmq_topic_subscriber.py
6b8487dfa3db86e47d7023e531f079912e4cb67b
[]
no_license
tata-LY/python
454d42cc8f6db9a1450966aba4af6894e1b59b78
55d13b7f61cbb87ff3f272f596cd5b8c53b807c5
refs/heads/main
2023-04-08T19:31:57.945506
2021-04-19T05:39:17
2021-04-19T05:39:17
328,880,464
0
0
null
null
null
null
UTF-8
Python
false
false
1,084
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # @Time : 2021-3-9 8:47 # @Author : liuyang # @File : 01.11_rabbitmq_topic_subscriber.py # @Software: PyCharm import pika import sys hostname = '192.168.113.11' connection = pika.BlockingConnection(pika.ConnectionParameters(host=hostname)) channel = connection.cha...
[ "ainiyang20@qq.com" ]
ainiyang20@qq.com
4c1b7e82cf084943af5406747c7b74ab3e20a6fe
ad6fe640e0074f08961a55d727bc204dcdcf8848
/src/simplessl/ca.py
ee0d4faa639c23be7fb011b6de3c953378009ab5
[]
no_license
andrewcooke/simple-ssl
50a8764e340d5f78f0c17c273d0445a533db5f8c
87d619bcd0f3c3326e9177c64252783f559ba9eb
refs/heads/master
2021-01-01T16:13:21.228950
2013-12-10T01:43:17
2013-12-10T01:43:17
null
0
0
null
null
null
null
UTF-8
Python
false
false
390
py
from script.argp import ArgP, ArgPRoot, ArgPRun from script.attr import StrAttr class CaCore(ArgPRoot): dir = ArgP(StrAttr, value='.', description='Where a CA stores the data it needs to do its work.') def __call__(self): print(self.dir.__get__(self, type(self))) print("dir i...
[ "andrew@acooke.org" ]
andrew@acooke.org
2725f826472f8bc43b3068109792eecdae0fc910
5c4515960dcbfd3861d06d90b8c9bde0bdf3ecf5
/Iserlab/migrations/0130_mytempvm.py
f24ae4cf5f65d103faabb44569c96b7a2c006487
[]
no_license
Mathilda1992/mcysite
66bb2f51de622b7f7c450664c798eb11ce195cae
def82e43474ecc734c6cbb26842bd87f698b2b88
refs/heads/master
2021-01-11T19:58:23.611196
2017-06-26T08:58:11
2017-06-26T08:58:11
79,434,975
1
1
null
null
null
null
UTF-8
Python
false
false
925
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2017-05-10 07:58 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('Iserlab', '0129_auto_20170507_0516'), ] operations ...
[ "machenyi2011@163.com" ]
machenyi2011@163.com
8da88a7f51735fe571ed0f617232307ac1baf9f6
c361a25acecd016677bbd0c6d9fc56de79cf03ed
/TSM/TestCase.py
23412a68d4d65560b1b1074bef9519e4955fd92f
[]
no_license
danielmellado/zephyr
f8931633045959e7e9a974de8b700a287a1ae94e
dc6f85b78b50e599504966154b927fe198d7402d
refs/heads/master
2021-01-12T22:31:24.479814
2015-10-14T05:39:04
2015-10-14T06:24:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,459
py
__author__ = 'micucci' # Copyright 2015 Midokura SARL # # 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 a...
[ "micucci@midokura.com" ]
micucci@midokura.com
340cced1c55c9499682cd5949e558809a69cf8be
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/GP8Tywnn2gucEfSMf_17.py
ec8e7521de8652ea402b3016afa29c871da03a89
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
214
py
def error(n): adict = {1: 'Check the fan: e1', 2: 'Emergency stop: e2', 3: 'Pump Error: e3',4: 'c: e4', 5: 'Temperature Sensor Error: e5'} if n not in adict.keys(): return 101 else: return adict[n]
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
0c82b427b1e416b6454f6c7d36f356c26adc1fd2
2a45af8ec8a4c87d544f461d27795a283f8f5f67
/python/input_complete.py
45e2c6077dd6187d1fcb5bd81dc805136a70f19f
[]
no_license
fengidri/python-script
2199a16a2d0cc76e6055aec31aaced4638a8c86d
28fb8e6dbf9e6ba5a1f9c4c3d7b635212bfc5b66
refs/heads/master
2020-04-05T14:04:55.103302
2017-04-27T10:32:27
2017-04-27T10:32:27
8,678,963
0
0
null
null
null
null
UTF-8
Python
false
false
2,186
py
import os import re import readline RE_SPACE = re.compile('.*\s+$', re.M) class Completer(object): def _listdir(self, root): "List directory 'root' appending the path separator to subdirs." res = [] for name in os.listdir(root): path = os.path.join(root, name) if o...
[ "fengidri@gmail.com" ]
fengidri@gmail.com
8fab41a7003e035af2fca6201f82467c6caa256e
7f3c0c7cb3987356171e91b2e888e2bfbe2f5077
/group_discussion/migrations/0011_topicuser_group_centrality.py
c300d7e28d073aa8945c43f8deb7baa6ca68aa0b
[]
no_license
jscott1989/newscircle
7d329673ed58dd2309ac6182fae3452bd50a8d54
373eba2f9aaa747272092521581d78524585df55
refs/heads/master
2020-12-24T11:53:12.865783
2016-11-07T17:50:42
2016-11-07T17:50:42
73,105,242
0
0
null
null
null
null
UTF-8
Python
false
false
456
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('group_discussion', '0010_comment_created_at'), ] operations = [ migrations.AddField( model_name='topicuser', ...
[ "jonathan@jscott.me" ]
jonathan@jscott.me
72663f4b331865732b2fab003dfd7cda950f5dea
374dea7d7d1a424d91f369cc75b11b16e1a489cd
/XDG_CACHE_HOME/Microsoft/Python Language Server/stubs.v1/bPN_2o1RXRZaK7Vxgp3oTysbcxQmJr9XStOWBh0VWNo=/_multiprocessing.cpython-37m-x86_64-linux-gnu.pyi
ab4051ca67e5ced0fe3ca7d109b3f9b4d0cd4e04
[]
no_license
tkoon107/text-generation-LSTM-neural-net
ed0e6a0fb906f4b4fd649eadfe36c254144be016
6b98ee355a30da128462bfac531509539d6533ae
refs/heads/master
2020-05-27T16:46:44.128875
2019-06-10T18:26:54
2019-06-10T18:26:54
188,708,243
0
0
null
null
null
null
UTF-8
Python
false
false
2,181
pyi
import builtins as _mod_builtins class SemLock(_mod_builtins.object): 'Semaphore/Mutex type' SEM_VALUE_MAX = 2147483647 __class__ = SemLock def __enter__(self): 'enter the semaphore/lock' return self def __exit__(self): 'exit the semaphore/lock' pass de...
[ "trevorlang@langdatascience.org" ]
trevorlang@langdatascience.org
8beeca84710f4f56f3bbffee44da80f9a7637cbc
b0f41ef2af5309fc172b05232dbde501a01d1234
/fyt/webauth/tests/get_pgt.py
82e40defcf0403075e2e661dfa9b8d323024d423
[]
no_license
rlmv/doc-trips
c4dfec9b80cf531b69b17ac2caaef509fa048cd3
59c1ffc0bff1adb4f86f1dcfaa66d8970ff55b72
refs/heads/master
2023-05-27T01:48:49.251830
2021-08-07T04:02:26
2021-08-07T04:02:26
21,745,373
10
3
null
2023-05-23T00:51:26
2014-07-11T17:36:35
Python
UTF-8
Python
false
false
429
py
# Run via bin/django shell --plain < get_pgt.py # to pick up all the django environment # Allows main test class to be independent of CAS implementation platform # TODO: pass in iou - if cant take args write to file and read here import atexit from django_cas.models import PgtIOU @atexit.register def lookup_pgt(): ...
[ "bo.marchman@gmail.com" ]
bo.marchman@gmail.com
7173d52df0b048d98533fa53729620a11ea3b6f5
c4fa1ebcdd413c4ab3f0979ee3beead8a8809870
/providers/gov/clinicaltrials/apps.py
8ff0b4b5fc7d7930735d5f96d0039eb757546874
[]
no_license
terroni/SHARE
e47f291db7cf100d29a7904fe820e75d29db1472
a5631f441da1288722c68785b86128c854cbe7c1
refs/heads/develop
2020-12-03T02:29:47.381341
2016-07-11T19:40:27
2016-07-11T19:40:27
63,097,148
1
0
null
2016-07-11T19:45:51
2016-07-11T19:45:50
null
UTF-8
Python
false
false
347
py
from share.provider import ProviderAppConfig from .harvester import ClinicalTrialsHarvester class AppConfig(ProviderAppConfig): name = 'providers.gov.clinicaltrials' version = '0.0.1' title = 'clinicaltrials' long_title = 'ClinicalTrials.gov' home_page = 'https://clinicaltrials.gov/' harvester...
[ "icereval@gmail.com" ]
icereval@gmail.com
b38eb2a7ce9fb308e375c9cdbe8bc50c31984eb7
694d57c3e512ce916269411b51adef23532420cd
/python/hardway/ex6.py
a24f3aa7aba6c3bbf44dd4427988a8f522bce255
[]
no_license
clovery410/mycode
5541c3a99962d7949832a0859f18819f118edfba
e12025e754547d18d5bb50a9dbe5e725fd03fd9c
refs/heads/master
2021-05-16T02:46:47.996748
2017-05-10T23:43:50
2017-05-10T23:43:50
39,235,141
1
1
null
null
null
null
UTF-8
Python
false
false
842
py
x = "There are %d types of people." % 10 # make definition of variable x binary = "binary" # make definition of variable binary do_not = "don't" # make definition of variable do_not y = "Those who know %s and those who %s." % (binary, do_not) # make definition of variable y print x # print x print y # print y print ...
[ "admin@admins-MacBook-Air.local" ]
admin@admins-MacBook-Air.local
106644e566ea536280b420280431985f0893666e
0cef1ca8b0fd54095d263d41c22b5b72bdd297db
/ace-zero-rl/d2dsql_train.py
2a0a577c36b7030811a1bb7d3ff74b4fc72a0ee8
[]
no_license
budi-kurniawan/phd
06c1b622f3ed5e518f3ce69ca0f113d411b3f01f
3ce071462db1ee4a9b590c952a750dd9c99ca9d2
refs/heads/main
2023-08-22T02:59:24.228607
2021-10-07T12:02:34
2021-10-07T12:02:34
414,012,653
0
0
null
null
null
null
UTF-8
Python
false
false
7,308
py
#!/usr/bin/env python3 import os import csv import pickle from datetime import datetime import numpy as np import ace_zero_core import torch import rl from ace_zero_core import acezero from rl import rl_utils from rl.env.ace_zero_env import AceZeroEnvironment from cartpole.util.dqn_util import BootstrappableDoubleDQNAg...
[ "budi2020@gmail.com" ]
budi2020@gmail.com
3f210c9ae5529fd9ab9a3ad99bdf62987cd5fcbc
44fb87ff6b94736610c7e84ecc00c4045f097328
/mabozen/conf/datatype_mapping/datatype_mapping_xpath.py
01a80772abe130002aad38b60ec1c2899faf6cca
[ "MIT" ]
permissive
mabotech/mabozen
c02899dad34310e3c5c68afe2af05d3f11946511
531b138fea1212e959ecfb9370b622b0c9f519a5
refs/heads/master
2016-09-06T21:31:51.731077
2014-07-20T13:44:01
2014-07-20T13:44:01
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,406
py
from lxml import etree class Singleton(type): def __call__(cls, *args): if not hasattr(cls, 'instance'): cls.instance = super(Singleton, cls).__call__(*args) return cls.instance class Counter(object): __metaclass__ = Singleton def __init__(self): self.i = 0 de...
[ "aidear@163.com" ]
aidear@163.com
4a122303145739c3efd1bba21c198a0a48e14a57
c8c4721e2282aaeece7bb36e6b7c33fe2e4af207
/torch/testing/_core.py
8fab432009def6a7c3e7565a7173d08351d7c12f
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
suo/pytorch
ac1008c62906cf0b055c2c851dab611c0a1276b8
fb0e27d38a8fdab4e1c14d6378c9e41cb30fd6a3
refs/heads/master
2023-04-18T18:57:04.622931
2022-01-28T04:57:17
2022-01-28T05:01:06
142,352,607
1
0
NOASSERTION
2019-11-08T19:38:03
2018-07-25T20:50:09
C++
UTF-8
Python
false
false
2,217
py
""" The testing package contains testing-specific utilities. """ import torch import random import operator FileCheck = torch._C.FileCheck __all__ = [ "FileCheck", "make_non_contiguous", ] # Helper function that returns True when the dtype is an integral dtype, # False otherwise. # TODO: implement numpy-lik...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
b7704990a6b56c8a4e5cc6c0ba186a1021d6aab8
b7312dc013ba06e5b44b33c0411f4948c4794346
/study10/process_pool.py
1c084f6d5a90687202c69b86aeb29cb4307bbb0a
[]
no_license
GaoFuhong/python-code
50fb298d0c1e7a2af55f1e13e48063ca3d1a189f
7d17c98011e5a1e74d49332da9f87f5cb576822d
refs/heads/master
2021-02-07T20:25:06.997173
2020-03-01T02:22:41
2020-03-01T02:26:04
244,072,971
1
0
null
null
null
null
UTF-8
Python
false
false
972
py
# Author:Fuhong Gao #进程池 (在windows中启动进程是真的慢。。。) from multiprocessing import Process,Pool import time,os def Foo(i): time.sleep(1) print('in process-',os.getpid()) return i+100 def Bar(arg): print("--> exec done:",arg,'child process id:',os.getpid()) if __name__ == '__main__': #__name__ == 'main' 如果手动执行这...
[ "1350086369@qq.com" ]
1350086369@qq.com
89cd1fb4b5a3ed87edef90e19a0037aa6a37efde
7a3fc3ea3dd71e4ec85ac73e0af57ae976777513
/.history/flaskblog_20210526065440.py
1b3ae27d0644bdbc0bcb4fa8d28387719b71771f
[]
no_license
khanhdk0000/first_proj
72e9d2bbd788d6f52bff8dc5375ca7f75c0f9dd0
bec0525353f98c65c3943b6d42727e3248ecfe22
refs/heads/main
2023-05-12T10:36:08.026143
2021-06-05T15:35:22
2021-06-05T15:35:22
374,148,728
0
0
null
null
null
null
UTF-8
Python
false
false
1,561
py
from flask import Flask, render_template, url_for, request, jsonify from enum import Enum app = Flask(__name__) class PaletteType(Enum): MONOTONE = 1 DOUTONE = 2 COLORFUL = 3 class HarmonyRule(Enum): COMPLEMENTARY = 1 ANALOGOUS = 2 TRIAD = 3 SQUARE = 4 BRISE_FAN = 5 SPLIT_COMPLEMET...
[ "khanhtran28092000@gmail.com" ]
khanhtran28092000@gmail.com
191371fc150002e925fb46d7fe0edfe9a4d109f0
c732e1ab1135c4bc0598265ee8fea4db5dc12a2b
/mbme/cs285/envs/__init__.py
4fdbfc79d65e87b09a17aadc8beb187936db0a46
[]
no_license
Sohojoe/berkeleydeeprlcourse_fall2020
169782fb566aa338e617a301ec1ab7e5f62e49cd
97eeafde4ff02c8a3429ec5096ed597418b01954
refs/heads/main
2023-02-11T13:53:01.867290
2021-01-03T05:51:36
2021-01-03T05:51:36
325,815,528
0
0
null
null
null
null
UTF-8
Python
false
false
488
py
from gym.envs.registration import register def register_envs(): register( id='marathon-hopper-v0', entry_point='cs285.envs.marathon_envs:HopperEnv', max_episode_steps=1000, ) register( id='marathon-walker-v0', entry_point='cs285.envs.marathon_envs:WalkerEnv', ...
[ "joe@joebooth.com" ]
joe@joebooth.com
f0a10672945a50f5744a4032fcec4abfcacbea79
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Projects/sms/pymessages/venv/Lib/site-packages/pip/_internal/commands/list.py
a8e16bf2ddf8cd9df43f0fe7e41d1b984e58ffbc
[ "LicenseRef-scancode-other-permissive" ]
permissive
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
130
py
version https://git-lfs.github.com/spec/v1 oid sha256:da8deb630dfb102ae17b8f81bb9b3fd82d1bc21620821878f37dccc5c58012e8 size 11312
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
837354c48998a7897e7ccb9dd125e15314090e4f
ef1d38cfef63f22e149d6c9dd14e98955693c50d
/webhook/protos/pogoprotos/data/telemetry/rpc_response_telemetry_pb2.py
3affea348e33cb38a14af4df63940874948ced59
[]
no_license
Kneckter/WebhookListener
4c186d9012fd6af69453d9d51ae33a38aa19b5fd
ea4ff29b66d6abf21cc1424ed976af76c3da5511
refs/heads/master
2022-10-09T04:26:33.466789
2019-11-24T17:30:59
2019-11-24T17:30:59
193,372,117
2
0
null
2022-09-23T22:26:10
2019-06-23T16:39:34
Python
UTF-8
Python
false
true
3,158
py
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: pogoprotos/data/telemetry/rpc_response_telemetry.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from go...
[ "kasmar@gitlab.com" ]
kasmar@gitlab.com
a54658bd8a22e553868a14b5f60211cd32da3b52
2bdedcda705f6dcf45a1e9a090377f892bcb58bb
/src/main/output/parent_database/month_uml_friend.py
aed12b5960becaee8d5dc22304612a6d6ecdb811
[]
no_license
matkosoric/GenericNameTesting
860a22af1098dda9ea9e24a1fc681bb728aa2d69
03f4a38229c28bc6d83258e5a84fce4b189d5f00
refs/heads/master
2021-01-08T22:35:20.022350
2020-02-21T11:28:21
2020-02-21T11:28:21
242,123,053
1
0
null
null
null
null
UTF-8
Python
false
false
1,424
py
const request = require('request'); const uuidv4 = require('uuid/v4'); /* Checks to see if the subscription key is available as an environment variable. If you are setting your subscription key as a string, then comment these lines out. If you want to set your subscription key as a string, replace the value for the O...
[ "soric.matko@gmail.com" ]
soric.matko@gmail.com
c4f259189903ac5cf05092f0bda5b48ad1860a48
680bd46e8eae20e78a425f766432711a47235374
/models/netflow_qo_s_report_table_row.py
ffb909260dced53f35dbb127152a5ba862a72a9d
[ "Apache-2.0" ]
permissive
ILMostro/lm-sdk-python
9f45217d64c0fc49caf2f4b279a124c2efe3d24d
40da5812ab4d50dd1c6c3c68f7ea13c4d8f4fb49
refs/heads/master
2022-02-01T16:51:12.810483
2019-07-16T17:54:11
2019-07-16T17:54:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,477
py
# coding: utf-8 """ LogicMonitor REST API LogicMonitor is a SaaS-based performance monitoring platform that provides full visibility into complex, hybrid infrastructures, offering granular performance monitoring and actionable data and insights. logicmonitor_sdk enables you to manage your LogicMonitor account...
[ "bamboo@build01.us-west-1.logicmonitor.net" ]
bamboo@build01.us-west-1.logicmonitor.net
c30d66e61d205d652025d4aacc12cb9ed94b3e99
67f86bb3d09cbc86cac698b3f0abaf01457a966a
/master/bopytest-code/code/ch4/dt/2/unnecessary_math.py
dca5e5454a0dd1e77c0f748a62b36acbbfcd06ca
[ "MIT" ]
permissive
tied/DevArtifacts
efba1ccea5f0d832d4227c9fe1a040cb93b9ad4f
931aabb8cbf27656151c54856eb2ea7d1153203a
refs/heads/master
2020-06-06T01:48:32.149972
2018-12-08T15:26:16
2018-12-08T15:26:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
588
py
""" This module defines multiply(a, b) and divide(a, b). >>> import unnecessary_math as um Here's how you use multiply: >>> um.multiply(4, 3) 12 >>> um.multiply('a', 3) 'aaa' Here's how you use divide: >>> um.divide(10, 5) 2.0 """ def multiply(a, b): """ Returns a multiplied by b. >>> import unnecess...
[ "alexander.rogalsky@yandex.ru" ]
alexander.rogalsky@yandex.ru
7321457036e055ce425ff626c31f3526474e40da
45c52da4d20f912e462359b051a3a8f1dced7210
/module/SequencePlayback.py
bac331fac2553ba6b50ad8f1140d1ee368a3731b
[]
no_license
solpie/SeqTruan
8b55c37d198898e40a2808d751b011d23022e552
4ed23592bf96a9d9261a7cc5fa82cd04d7e3da7d
refs/heads/master
2021-01-10T03:38:30.230285
2015-06-15T14:21:43
2015-06-15T14:21:43
36,845,728
1
0
null
null
null
null
UTF-8
Python
false
false
2,285
py
__author__ = 'toramisu' import os from PyQt5.Qt import QTimer from module.Events import * from model import SImage class SequencePlayback(): def __init__(self): self.imageSequence = [] self.framerate = 0 self.currentFrame = -1 self.currentFrameIdx = -1 self.endFrameIdx = ...
[ "solpie.net@gmail.com" ]
solpie.net@gmail.com
c2895596fd10a2fc4f221b84f49ad9db95988517
bb7712c8fab2380ffd37e53136097d8d322a73e7
/order/migrations/0014_remove_order_order_id.py
e67b11e4d630676c1cd8936e9fbc22e9ab0dfd43
[]
no_license
nitin1011/Daily-Kart
5dfaad06c4ab7ea236a8f1b0e29aaea4baba0b81
59859bd2dc66563ff1ab0649591e4b19b6b4a85b
refs/heads/master
2020-08-15T09:52:22.826037
2019-10-15T14:56:28
2019-10-15T14:56:28
215,320,786
1
0
null
null
null
null
UTF-8
Python
false
false
327
py
# Generated by Django 2.2.2 on 2019-10-02 10:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('order', '0013_auto_20191002_1617'), ] operations = [ migrations.RemoveField( model_name='order', name='order_id', ),...
[ "nitinjethwani10@gmail.com" ]
nitinjethwani10@gmail.com
9ba33c43b52f06943abc89aadcf47123451c8752
2031771d8c226806a0b35c3579af990dd0747e64
/pyobjc-framework-QTKit/PyObjCTest/test_qtmoviemodernizer.py
924bd3a96364bbd4331610fd72fab57807c6deb9
[ "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
1,175
py
from PyObjCTools.TestSupport import * from QTKit import * class TestQTError (TestCase): @min_os_level('10.9') def testConstants(self): self.assertEqual(QTMovieModernizerStatusUnknown, 0) self.assertEqual(QTMovieModernizerStatusPreparing, 1) self.assertEqual(QTMovieModernizerStatusRunnin...
[ "ronaldoussoren@mac.com" ]
ronaldoussoren@mac.com
c4201c9f0a97d7dd5f456d9fa220b91b3ac2ab85
43ec4ea3b633244f5deef45315f19844a852a034
/ExanteTaxCalculator/src/infrastructure/report_row.py
80d336933e1578980605ea6bc60f1f9c0ec53095
[]
no_license
mateuszmidor/PythonStudy
4a34feab04fe1bcc62a67506a5e7be85fb209d8c
579b79b76cb5ce27cb9af09a2bd3db3c5ad65595
refs/heads/master
2023-05-25T11:32:50.274138
2023-05-17T06:08:29
2023-05-17T06:08:29
21,539,459
0
0
null
2023-05-23T00:40:51
2014-07-06T12:20:36
Python
UTF-8
Python
false
false
2,427
py
from decimal import Decimal from enum import Enum from dataclasses import dataclass, fields from datetime import datetime from typing import Dict from src.infrastructure.errors import InvalidReportRowError @dataclass class ReportRow: """ReportRow is raw CSV report row parsed into a dataclass.""" class Opera...
[ "3demaniac@gmail.com" ]
3demaniac@gmail.com
7c80d929692aa65b1400c04ded4efe8f817eae4c
2e60017779c5c286629ab5a3a7aeb27a6b19a60b
/python/problem_48.py
704454c508774c17e70776fe8245c09cd9169b94
[]
no_license
jamesjiang52/10000-Lines-of-Code
f8c7cb4b8d5e441693f3e0f6919731ce4680f60d
3b6c20b288bad1de5390ad672c73272d98e93ae0
refs/heads/master
2020-03-15T03:50:38.104917
2018-05-07T04:41:52
2018-05-07T04:41:52
131,952,232
0
0
null
null
null
null
UTF-8
Python
false
false
634
py
if __name__ == '__main__': import sys sys.path.insert(0, 'C:\\Users\\James Jiang\\Documents\\Project Euler') from progress import Progress answers_list = ['dummy'] with open('C:\\Users\\James Jiang\\Documents\\Project Euler\\answers.txt') as answers: for line in answers: answers_list.append(int(lin...
[ "jamesjiang52@gmail.com" ]
jamesjiang52@gmail.com
dd23bdde62f4bfd0ad65c5a3b1ba35c4b11db1ee
0a6c04ce9a83c983558bf2a9b0622c0076b6b6c4
/collab_app/migrations/0004_auto_20200301_1307.py
50bdf63652ca7d923d08b6cb80c6723d53e38497
[]
no_license
madhu0309/collaboratory
f4384affa8a489a1dc5b2614ac83d8ed2547dae1
5217d713d2a174e868a26ac9eb00836d006a09ad
refs/heads/master
2022-12-14T23:13:47.816593
2020-03-18T17:43:56
2020-03-18T17:43:56
235,501,050
1
0
null
2022-12-08T03:50:22
2020-01-22T04:52:31
JavaScript
UTF-8
Python
false
false
764
py
# Generated by Django 3.0.2 on 2020-03-01 13:07 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('collab_app', '0003_remove_answer_votes'), ] operations = [ migrations.AddField( model_name='answer', name='num_vote_...
[ "madhu@micropyramid.com" ]
madhu@micropyramid.com
c82c18ec7ff65774ec97137cad3ce006dd7fbfb1
7b280b947f639959bdd034628b433c3b27ef7b91
/first/contact.py
a7afb6069609cfb7a2478a56d0b8ead2389277c5
[]
no_license
amaurirg/tutoriais_flask
c0d5e523a16c05e76e4573c02bbe50bef66e28f0
e8aa6c8e89f1400f0be34204cb1cbb456bfb04b5
refs/heads/master
2020-03-31T07:56:22.888257
2018-10-08T07:56:42
2018-10-08T07:56:42
152,039,297
0
0
null
null
null
null
UTF-8
Python
false
false
697
py
from flask import Blueprint, render_template, request, abort, current_app bp = Blueprint('contact', __name__, url_prefix='/contact') @bp.route("/", methods=['GET', 'POST']) def contact(): if request.method == "GET": return render_template('contact.html') # processar dados # print(request.form) ...
[ "amaurirg@terra.com.br" ]
amaurirg@terra.com.br
521fcf8431b2f9adc31ed607139f229a7a6b82d1
5873213f0615c13d26c389d8e6aff0291e639d51
/manage.py
eb5d140281a83806bc9b6fd1521585ff4293510d
[ "MIT" ]
permissive
conferency/conf-panda
15d9645d5834b78ea27560c58d15a0fe628749ab
d69094174e880b771cd1a5cad981f65374008359
refs/heads/master
2020-05-18T16:03:56.716017
2019-05-18T04:03:55
2019-05-18T04:03:55
184,514,509
0
2
MIT
2019-05-18T04:03:57
2019-05-02T03:14:46
JavaScript
UTF-8
Python
false
false
7,434
py
#!/usr/bin/env python # -*- coding: utf-8 -*- import os import shutil import glob from app import create_app, db from app.utils.fakedata import generate_test_confs, generate_fake_tickets, \ generate_test_users, generate_fake_papers, generate_fake_reviews, \ generate_fake_transactions, generate_fake_schedule, \ ...
[ "harryjwang@gmail.com" ]
harryjwang@gmail.com
d12502e37805d16aa3555932c6c6d5b5764cea57
6c5daf5133656a33574dc2f5b62b9f1a1bdf1390
/linear programming/gurobi/examples/workforce2.py
d79f3916924e23f35f65e3328dbe22c0e6552f91
[]
no_license
RobinChen121/Python-Practices
6c10b721dce3a8d2b76e190959d0940c52f0d1cc
85bd9ad30c245dd62dc7ea837f964eaecbe24ed9
refs/heads/master
2023-08-31T10:08:01.613828
2023-08-27T14:51:46
2023-08-27T14:51:46
142,564,793
3
0
null
null
null
null
UTF-8
Python
false
false
3,945
py
#!/usr/bin/python # Copyright 2018, Gurobi Optimization, LLC # Assign workers to shifts; each worker may or may not be available on a # particular day. If the problem cannot be solved, use IIS iteratively to # find all conflicting constraints. from gurobipy import * # Number of workers required for each shift shift...
[ "40953071+RobinChen121@users.noreply.github.com" ]
40953071+RobinChen121@users.noreply.github.com
9fbb49ae597c0575ccb1b43a4264273f6ae1d2df
4b7d5c8824df4462a338993efcdfa3b17199ff5b
/基础/day8/logging_mod.py
9016888efa6bae9265a37e4dcdd2363dd0e69449
[]
no_license
kobe24shou/python
9c287babfb357e7f650fab453f3e60614b7a71fc
f78f147101f182207a69f0dc8e1595b54280164a
refs/heads/master
2021-06-02T12:40:59.424542
2020-06-28T06:13:51
2020-06-28T06:13:51
101,620,300
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
#!/usr/bin/env python # -*-coding:utf-8-*- # Author:ls # aishou24@gmail.com # date:2018/6/10 import logging # basicConfig 配置日志级别,日志格式,输出位置 logging.basicConfig(level=logging.DEBUG, # 日志级别debug format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s', datef...
[ "aishou24@gmail.com" ]
aishou24@gmail.com
ba2aa6eceb577173190bad4307320afd84789292
716abd9e5ba4b72b72cc5f724a6cc0a6ad4390d1
/11-Loops - for and while loops with break, continue and pass/49-Simple-practice-with-for-loop.py
52de14b4a76bdbac60ab24a638e83c0cd0010073
[]
no_license
devopstasks/PythonScripting
ac45edd72dc134ec3539b962f02dfc866f365ecf
48bc37733ae6b3be4e2d64909ffe0962b6908518
refs/heads/master
2023-03-29T11:18:01.329452
2021-04-07T03:25:20
2021-04-07T03:25:20
350,388,744
0
0
null
null
null
null
UTF-8
Python
false
false
313
py
''' ============ Simple practice with forloop => Read a string and print chars and their index values ============ ''' #str=input("Enter a string: ") ''' str="python" for each in str: print(each,'-->',str.index(each)) ''' str="python" index=0 for each in str: print(f'{each}-->{index}') index=index+1
[ "rpadhan2015@gmail.com" ]
rpadhan2015@gmail.com
92ddc4f26addab8501de36d65fb48ec5d2eecd95
0b5383d3099d62cb5e5b2f197bf4d648b51e3a1d
/flask_projects/Discover_Flask/project/users/form.py
5c226e9142c70f9a9267b23d3dd098079fb7633a
[]
no_license
Sysa/py_samples
386134d160dad2be6797d415c5cc6a657ef9e375
957a77e6601106e1917d4931784a25277478eeb8
refs/heads/master
2021-01-13T09:15:38.395169
2016-10-31T13:29:41
2016-10-31T13:29:41
72,438,805
1
0
null
2016-10-31T13:27:58
2016-10-31T13:27:58
null
UTF-8
Python
false
false
862
py
from flask_wtf import Form from wtforms import StringField, PasswordField from wtforms.validators import DataRequired, Length, Email, EqualTo class LoginForm(Form): username = StringField('Username', validators=[DataRequired()]) password = PasswordField('Password', validators=[DataRequired()]) class Registe...
[ "meth787@gmail.com" ]
meth787@gmail.com
4c2698dc3814d58bc9b6639b43b0bb2be5e29d8a
de24f83a5e3768a2638ebcf13cbe717e75740168
/moodledata/vpl_data/380/usersdata/316/89621/submittedfiles/testes.py
b9143a54f8f0a7ae84e865f2e91e6678453e876f
[]
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
178
py
# -*- coding: utf-8 -*- #COMECE AQUI ABAIXO n=int(input('Digite um numero:')) m=int(input('Digite um numero:')) d=1 while n%d>=0 and m%d>=0: d=d+1 print(d)
[ "rafael.mota@ufca.edu.br" ]
rafael.mota@ufca.edu.br
efbf8b4c9f0e58d826b8a8ef0a14b26e8a9afc91
736785ff9b31f83e1452117652dcdf5b22d9c39f
/main.py
80029795276e8fe8f022c79e760d0d3a17e746c6
[]
no_license
moskrc/mock_subprocess
9fc99a43e7dedeabfd44c475c539c44f31c1c25b
217023448f3c0caa3f69504ca499c3aca047905f
refs/heads/master
2016-09-11T02:45:05.678718
2014-12-19T11:17:21
2014-12-19T11:17:21
28,226,563
1
0
null
null
null
null
UTF-8
Python
false
false
137
py
import f1 import f2 def superfunction(): return [x.action() for x in [f1, f2]] if __name__ == '__main__': print superfunction()
[ "moskrc@gmail.com" ]
moskrc@gmail.com
2b83412570a153958decb635c6bfddbd7e7c41df
6d3a1f9fa0f56c1081e15f1c8a26e1829067779c
/Class 16 (OOP coding)/inheritance_polymorphism_encapsulation .py
60e455e8c6d2c0b596de53f0c6fd099ea3171355
[]
no_license
siyam04/python-course_materials
e813e0072eba325ef52054f06516fdc1bb2cf0a4
9627c85a083b9c0e38604ea1fe021428ceb3fcae
refs/heads/master
2022-04-07T17:54:23.550256
2020-03-03T07:34:41
2020-03-03T07:34:41
155,817,366
0
1
null
null
null
null
UTF-8
Python
false
false
3,320
py
########################################## Inheritance ######################################## # Parent class class Bird: def __init__(self): print("Bird is ready") def whoisThis(self): print("Bird") def swim(self): print("Swim faster") # child class class ...
[ "galib.abdullah04@gmail.com" ]
galib.abdullah04@gmail.com
a20725d5d2ebeee77dd60da9f8c772ea992798ff
a1119965e2e3bdc40126fd92f4b4b8ee7016dfca
/trunk/repy/tests/ut_repytests_testfilehash.py
1a5946da31b5ba95584d7d6e2132c62f32cb7260
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SeattleTestbed/attic
0e33211ddf39efdbcf5573d4fc7fa5201aa7310d
f618a962ce2fd3c4838564e8c62c10924f5df45f
refs/heads/master
2021-06-10T23:10:47.792847
2017-05-15T12:05:43
2017-05-15T12:05:43
20,154,061
0
1
null
2014-10-16T17:21:06
2014-05-25T12:34:00
Python
UTF-8
Python
false
false
377
py
#pragma repy """ Files should not be hashable... """ if callfunc == "initialize": myfileobj = file('junk_test.out','w') try: mydict = {} try: mydict[myfileobj] = 7 except AttributeError: # I should get an exception here... pass else: print 'files are hashable!' finall...
[ "USER@DOMAIN" ]
USER@DOMAIN
50e646d3d84227c5ed5c8135beca75e6d4bf19dd
a2960cf4ba59a3ccfcb8deb4b46e3b55e17843a1
/app/api/v1/ports.py
34fa38442f9a6c16e4ef5d690de1c34ac4c6d2b8
[ "MIT" ]
permissive
cmz0228/backend
4108869751d0ea03a6841c82cc123d116b79986a
31a4fc7027a14147f971ca3d1097e957456daed3
refs/heads/main
2023-04-06T23:55:20.687821
2021-04-18T10:27:29
2021-04-18T10:27:29
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,119
py
import typing as t from fastapi import ( APIRouter, HTTPException, Request, Depends, Response, encoders, ) from fastapi.encoders import jsonable_encoder from app.db.session import get_db from app.db.schemas.port import ( PortOut, PortOpsOut, PortCreate, PortEdit, PortEditBas...
[ "me@leishi.io" ]
me@leishi.io
9906aeacea03508f3edd03e58a19465ae05d4766
1ec8734beba25739979cbd4a9414a95273cce6aa
/8.18/正则语法.py
51c2934c93e1dc7af23cb1d4bd7816eaa0bb4200
[]
no_license
MATATAxD/untitled1
4431e4bc504e74d9a96f54fd6065ce46d5d9de40
18463f88ce60036959aabedabf721e9d938bacfb
refs/heads/master
2023-01-01T23:16:30.140947
2020-10-23T04:32:38
2020-10-23T04:32:38
306,529,260
0
0
null
null
null
null
UTF-8
Python
false
false
718
py
import re # userInput=input('输入一个手机号') # partern=r'^1[3,5,7,1,8]\d{9}$' # result=re.search(partern,userInput) # if result ==None: # print('不是手机号') # else: # print('是一个正确的手机号') # # userInput=input('输入一个座机号') # partern=r'^(0\d{2,3}-)?\d{7}$' # result=re.search(partern,userInput) # if result == None: # print(...
[ "502513072@qq.com" ]
502513072@qq.com
434f9f64b285e82a6dac620f02b1f9b1d0e86234
1698fe3ff15a6737c70501741b32b24fe68052f4
/two-scoops-of-django-1.8-master/code/chapter_09_example_5.py
a3e490dcea97b2ebae7e56c6624897a2d81b32a1
[]
no_license
menhswu/djangoapps
4f3718244c8678640af2d2a095d20a405e337884
039a42aa9d1537e7beb4071d86bea7a42253d8b3
refs/heads/master
2023-03-04T03:56:01.070921
2021-01-28T07:35:02
2021-01-28T07:35:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,925
py
""" Using This Code Example ========================= The code examples provided are provided by Daniel Greenfeld and Audrey Roy of Two Scoops Press to help you reference Two Scoops of Django: Best Practices for Django 1.8. Code samples follow PEP-0008, with exceptions made for the purposes of improving book formattin...
[ "jinxufang@tencent.com" ]
jinxufang@tencent.com
41c00b612cd1bdc6862d390f2e3a72bc198fff45
a94c446a0d9ce77df965674f63be54d54b2be577
/raspy/bcm_2835_pwm_clock_divider.py
b929606aabbb14e10f0005a5afeecee08175d1b5
[ "MIT" ]
permissive
cyrusbuilt/RasPy
3434e02c2bff09ef9f3ff4995bda14edc781c14b
1e34840cc90ea7f19317e881162209d3d819eb09
refs/heads/master
2020-03-18T20:19:27.426002
2018-08-03T17:07:25
2018-08-03T17:07:25
135,207,376
0
0
MIT
2018-08-03T17:07:26
2018-05-28T20:42:17
Python
UTF-8
Python
false
false
515
py
"""This module provides clock divider constants for the BCM2835 chipset.""" CLOCK_DIVIDER_1 = 1 CLOCK_DIVIDER_2 = 2 CLOCK_DIVIDER_4 = 4 CLOCK_DIVIDER_8 = 8 CLOCK_DIVIDER_16 = 16 CLOCK_DIVIDER_32 = 32 CLOCK_DIVIDER_64 = 64 CLOCK_DIVIDER_128 = 128 CLOCK_DIVIDER_256 = 256 CLOCK_DIVIDER_512 = 512 CLOCK_DIVIDER_1024 = 1024...
[ "cyrusbuilt@gmail.com" ]
cyrusbuilt@gmail.com
d694bff671f5e22a281d723afa307c1dc5ab3397
67d8173a716da10a7350213d98938aae9f2115ce
/ProgrammingCourses/CS61A/project/scheme/tests/19.py
e80c835acb0cc9ba1a1b160467141c731af8b1cc
[]
no_license
jxie0755/Learning_Python
94490d41bdf93acf8396f843328e38b6da310b0f
143422321cbc3715ca08f6c3af8f960a55887ced
refs/heads/master
2021-11-02T22:47:35.790239
2021-09-26T04:26:23
2021-09-26T04:26:23
101,445,132
0
2
null
2019-02-19T15:48:44
2017-08-25T22:00:16
Python
UTF-8
Python
false
false
2,160
py
test = { "name": "Problem 19", "points": 2, "suites": [ { "cases": [ { "code": r""" scm> (let-to-lambda 1) 1 scm> (let-to-lambda 'a) a scm> (let-to-lambda '(+ 1 2)) (+ 1 2) scm> (let-to-lambda '(let ((a 1) ...
[ "30805062+jxie0755@users.noreply.github.com" ]
30805062+jxie0755@users.noreply.github.com
fbc6337296c2ae2561d7e93f7aebcf43171a0297
bcabd9b183bc011e1ccf7e367fbed0dcaa03eee6
/1 PYTHON/3 TELUSKO/65_Binary_search.py
91df698e604998a020488263b59b6aa37105ea3a
[]
no_license
rajeshsvv/Lenovo_Back
287fe4da2c696aa248ec57a4c45c4f234f6ca9ed
7e49e38aaf934c65f9992a78404d2b81a4cd0204
refs/heads/master
2022-12-23T16:44:41.488128
2019-08-29T10:00:10
2019-08-29T10:00:10
204,859,914
0
1
null
2022-12-10T11:50:31
2019-08-28T06:05:35
Python
UTF-8
Python
false
false
505
py
# in binary search u r values should be in sorted order pos = -1 def search(list, n): l = 0 u = len(list) - 1 while l <= u: mid = (l + u) // 2 if list[mid] == n: globals()['pos'] = mid return True else: if list[mid] < n: l = m...
[ "rajeshsvv01@gmail.com" ]
rajeshsvv01@gmail.com
633624a2e73da3f8a48a008d6b0e0b666b7e34d5
3fe1a72d444a60582fe1e45349c03584e26f7238
/karel_env/state_generator.py
2508bbbdf3ba9b0758d5e88a3b87ed3093fdf6d2
[ "MIT" ]
permissive
tedrepo/demo2program
16f0b332a08ff8936439b19084cdf71092c8995d
23464a69bfbf6fac9752fd423d14b03d37d1d1c6
refs/heads/master
2023-07-09T17:41:15.128227
2018-12-02T00:41:54
2018-12-02T00:41:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,243
py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np class KarelStateGenerator(object): def __init__(self, seed=None): self.rng = np.random.RandomState(seed) # generate an initial env def generate_single_state(self, h=8, ...
[ "waltersun81@gmail.com" ]
waltersun81@gmail.com
fff0e6483247918bc0215838062d0a78d3f2aa30
b3b68efa404a7034f0d5a1c10b281ef721f8321a
/Scripts/simulation/venues/karaoke_venue/karaoke_duet_individualsim_situation.py
3c1e72aaa8387818454955a79a9a54b702283a3c
[ "Apache-2.0" ]
permissive
velocist/TS4CheatsInfo
62195f3333076c148b2a59f926c9fb5202f1c6fb
b59ea7e5f4bd01d3b3bd7603843d525a9c179867
refs/heads/main
2023-03-08T01:57:39.879485
2021-02-13T21:27:38
2021-02-13T21:27:38
337,543,310
1
0
null
null
null
null
UTF-8
Python
false
false
2,245
py
# uncompyle6 version 3.7.4 # Python bytecode 3.7 (3394) # Decompiled from: Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] # Embedded file name: T:\InGame\Gameplay\Scripts\Server\venues\karaoke_venue\karaoke_duet_individualsim_situation.py # Compiled at: 2016-07-16 01:45:12 # Si...
[ "cristina.caballero2406@gmail.com" ]
cristina.caballero2406@gmail.com
a9e79ced7f79f55849f13742310819e73a64dfb1
09f8a3825c5109a6cec94ae34ea17d9ace66f381
/cohesity_management_sdk/models/cassandra_protection_source.py
c79152ddb527ab066e9f0f7c688e1e1fb21e2b99
[ "Apache-2.0" ]
permissive
cohesity/management-sdk-python
103ee07b2f047da69d7b1edfae39d218295d1747
e4973dfeb836266904d0369ea845513c7acf261e
refs/heads/master
2023-08-04T06:30:37.551358
2023-07-19T12:02:12
2023-07-19T12:02:12
134,367,879
24
20
Apache-2.0
2023-08-31T04:37:28
2018-05-22T06:04:19
Python
UTF-8
Python
false
false
3,340
py
# -*- coding: utf-8 -*- # Copyright 2023 Cohesity Inc. import cohesity_management_sdk.models.cassandra_cluster import cohesity_management_sdk.models.cassandra_keyspace class CassandraProtectionSource(object): """Implementation of the 'CassandraProtectionSource' model. Specifies an Object representing Cassa...
[ "naveena.maplelabs@cohesity.com" ]
naveena.maplelabs@cohesity.com
c57bd4cdfecc79a54141289af0ac284ba85f3d3b
bc42b7700ccc0014282f943a20f968dc2172c4c5
/Day6 : Mask-RCNN on Videos/mask_rcnn_videos.py
6b1dbe56385fa9916b3bc62811e774e2ed2e25bb
[]
no_license
vgaurav3011/100-days-of-ML-Code-2
1a4b6836ac1b378caeed63a253a3d2b71bada32f
339992040d807f1c382c858b53e35ed2699518d9
refs/heads/master
2022-04-27T07:30:10.797553
2020-04-22T07:37:53
2020-04-22T07:37:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,340
py
import numpy as np # import argparse import random import time import cv2 import imutils import os mask_rcnn = '' visualize = False confi = 0.5 threshold = 0.3 #defining the labels path and # loading the coco class labels labelsPath = 'assets/object_detection_classes_coco.txt' # f = open("demofile.txt", "r") LABELS...
[ "you@example.com" ]
you@example.com
db837659d0416abcd64e830e6dd62418e2d5388a
01fa2aca31eb73a559d192fd29e44350f26a13a9
/HAX/18.CocoJoe/script.module.lambdascrapers/lib/lambdascrapers/sources_scrubs/ko/drama4u.py
1cb35e3200c5d19d766ec5ba2e8f07258beb26e7
[ "Beerware" ]
permissive
RandomIntermition/k4y108837s
b4beedeff375645bd4fa9ad348631a9a9f3640b6
e9115aad49795dfe30a96c278cedaf089abcc11d
refs/heads/master
2022-05-01T18:45:57.298903
2022-03-30T03:41:08
2022-03-30T03:41:08
109,356,425
1
0
null
2019-11-08T02:20:47
2017-11-03T05:36:48
Python
UTF-8
Python
false
false
5,121
py
# -*- coding: UTF-8 -*- # -Cleaned and Checked on 11-23-2018 by JewBMX in Scrubs. # Only browser checks for active domains. import re,urllib,urlparse from resources.lib.modules import cleantitle,client,directstream,source_utils,dom_parser class source: def __init__(self): self.priority = 1 self.l...
[ "github+github@github.github" ]
github+github@github.github
5cb5741e1ccf992fab5d6962ca406c0996b96972
5e8342e4f6e48688f4a0079310e8f0b5e5386044
/POO/Alumnos/profesor.py
7aa8c1fac4b48d3b71088e1d6df86f077606537f
[]
no_license
fernado1981/python_
27a154406b5fba7e18da418bc5f75c58f3ccc24f
7d846cd332405464fa14707ea3f2286a918fc9de
refs/heads/master
2023-02-15T19:30:02.257345
2021-01-21T10:35:46
2021-01-21T10:35:46
277,186,729
0
0
null
null
null
null
UTF-8
Python
false
false
1,272
py
class profesor: limit = 3 def __init__(self, alumnado, name): self.alumnos = alumnado self.name = name def aprobar(self): if self.name in self.alumnos: for c, v in self.alumnos.items(): if c == self.name: v['aprobar'] = True def...
[ "fernando.manrique.villanueva@gmail.com" ]
fernando.manrique.villanueva@gmail.com
14559afff0cea58f13cdd39a5f7e9f4982efc821
246ec8733c63a28518160af8fc9e21ae04f76649
/fairseq/tasks/__init__.py
92f9d53190d0779fc407d6a8cdfd932a63079362
[ "MIT" ]
permissive
fyabc/BT4MolGen
80050dc24031753fa3052ef60a5bea170d9d9c56
05d161ae9a7dbbcc3c95c71417d5e7f92ed0572c
refs/heads/master
2023-05-29T01:38:36.614479
2021-06-18T15:56:13
2021-06-18T15:56:13
370,941,322
5
3
null
null
null
null
UTF-8
Python
false
false
2,494
py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import argparse import importlib import os from .fairseq_task import FairseqTask TASK_REGISTRY = {} TASK_CLASS_NAMES = set() def setup_tas...
[ "fyabc@mail.ustc.edu.cn" ]
fyabc@mail.ustc.edu.cn
9ebae106d0ffd798ae05342b8bf2684406293bbf
33836016ea99776d31f7ad8f2140c39f7b43b5fe
/fip_collab/2016_01_28_gsh_database_codes/plot_slice_compare_uniaxial2cyclic.py
d45d2d052bb44de92754eebaa18e75b9cd20c0cf
[]
no_license
earthexploration/MKS-Experimentation
92a2aea83e041bfe741048d662d28ff593077551
9b9ff3b468767b235e7c4884b0ed56c127328a5f
refs/heads/master
2023-03-17T23:11:11.313693
2017-04-24T19:24:35
2017-04-24T19:24:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
734
py
import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import h5py f = h5py.File('slice.hdf5', 'r') slc_uni = f.get('slice_uni')[...].real slc_cyc = f.get('slice_cyc')[...].real par = f.get('parameters')[...] f.close() th = np.round(par[0]*180./np.pi, 2) phi2 = np.round(par[1]*180...
[ "noahhpaulson@gmail.com" ]
noahhpaulson@gmail.com
6f03b5b578c7f4027dd73f0fbcbb4198d4c5e38f
15b3b60252af3e5ebd8be4a9fbcccc96469acaad
/pre_clean.py
30bfe2e18f4c68a8065eef0a6895f5ac0df7ba16
[]
no_license
yingl/jkb
b6d50cd5d5ba64798a28f6948f1490f334f52b97
fdf68dee5fbe5a9cfbf2a41af78d2f2ec16a459c
refs/heads/master
2020-03-28T11:59:47.752625
2020-01-23T06:49:46
2020-01-23T06:49:46
148,262,569
10
6
null
null
null
null
UTF-8
Python
false
false
1,231
py
import argparse def parse_args(): parser = argparse.ArgumentParser() parser.add_argument('-fi', '--filein', type=str) parser.add_argument('-fo', '--fileout', type=str) return parser.parse_args() if __name__...
[ "linying_43151@163.com" ]
linying_43151@163.com
517a5b458cf820892048f7df658197d34e5aadd7
c1869b7106a4651ecc0f0f53b82d5f11021896e3
/examples/DKVMN/DKVMN.py
22aaa5b5608ca405710ad4a60415fbe0a2e2f8ae
[ "MIT" ]
permissive
bigdata-ustc/XKT
6efd7ff5b09c22ed9099f5b9b614edceff1cada0
b3ac07541b92001b62d7cff4e8fe7e5a69c5c93c
refs/heads/master
2021-09-22T19:22:25.563651
2021-09-16T02:56:10
2021-09-16T02:56:10
194,855,614
18
9
MIT
2021-09-16T02:56:11
2019-07-02T12:06:12
Python
UTF-8
Python
false
false
699
py
# coding: utf-8 # 2021/5/26 @ tongshiwei import mxnet as mx from XKT.DKVMN import etl from XKT import DKVMN batch_size = 32 train = etl("../../data/a0910c/train.json", batch_size=batch_size) valid = etl("../../data/a0910c/valid.json", batch_size=batch_size) test = etl("../../data/a0910c/test.json", batch_size=batch_s...
[ "tongsw@mail.ustc.edu.cn" ]
tongsw@mail.ustc.edu.cn
a5669df662c5cbc0c978c08431dfe48e19ea5151
bf4178e73f0f83781be6784d7587cb34a38d6edd
/platform/radio/efr32_multiphy_configurator/pyradioconfig/parts/ocelot/filters/phy_filters.py
e49ca3348ff7ba8253f8aecb5959917a02921b04
[]
no_license
kolbertv/ZigbeeSiliconV3
80d70515e93be1413c24cdcb3485f50c65a1564b
ab0bd8d4bb6c1048adef81d0e66d96006c2fabd9
refs/heads/master
2023-01-02T07:18:01.393003
2020-10-25T15:33:08
2020-10-25T15:33:08
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,896
py
""" Lynx specific filters """ from pyradioconfig.calculator_model_framework.interfaces.iphy_filter import IPhyFilter class PhyFilters(IPhyFilter): #Studio black list (files removed before Studio distribution) customer_phy_groups = [ 'Phys_Internal_Base_Customer_Aclara', ...
[ "1048267279@qq.com" ]
1048267279@qq.com
69d80edf9f62e78f34fc9b40f7ed035eb1dba0cd
1adc05008f0caa9a81cc4fc3a737fcbcebb68995
/hardhat/recipes/notmuch.py
2d64141806c5209a2c04e5546647640e733fe6b2
[ "MIT", "BSD-3-Clause" ]
permissive
stangelandcl/hardhat
4aa995518697d19b179c64751108963fa656cfca
1ad0c5dec16728c0243023acb9594f435ef18f9c
refs/heads/master
2021-01-11T17:19:41.988477
2019-03-22T22:18:44
2019-03-22T22:18:52
79,742,340
0
0
null
null
null
null
UTF-8
Python
false
false
809
py
from .base import GnuRecipe class NotMuchRecipe(GnuRecipe): def __init__(self, *args, **kwargs): super(NotMuchRecipe, self).__init__(*args, **kwargs) self.sha256 = 'b4bf09ec9b7b64180704faa26d66cad5' \ 'f911a5a00ef812da34cb02c3f8872831' self.name = 'notmuch' s...
[ "clayton.stangeland@gmail.com" ]
clayton.stangeland@gmail.com
00c249df496d497a62d7988f77d4d095b9b8644e
925f6b2376bcdcf175194b4f390beeffb57d67e0
/sosmypc/sosmypc/core/forms.py
c69f02eae6de9e7a5494462446fa674876afd469
[]
no_license
CoutinhoElias/sosmypc
a0a86f0c05f5f0d6e0beb3a7b22da73ed8951ac4
ce77520f0e7fe33441de030f85c85c4fccce8afb
refs/heads/master
2021-01-18T23:21:22.377626
2016-06-02T18:07:27
2016-06-02T18:07:27
53,994,124
1
1
null
2016-05-18T19:29:35
2016-03-16T02:23:09
JavaScript
UTF-8
Python
false
false
6,118
py
import datetime as datetime from django import forms from django.contrib.auth.forms import UserCreationForm from material import Layout, Row, Fieldset, Span3, Span2, Span10, Span8, Span7, Span5 from crispy_forms.helper import FormHelper from crispy_forms.layout import Layout from .models import ProfissoesPessoa, Qua...
[ "coutinho.elias@gmail.com" ]
coutinho.elias@gmail.com
cd9eca8fdea4985097b9053005381853c3e81a01
49536aafb22a77a6caf249c7fadef46d63d24dfe
/tensorflow/tensorflow/contrib/nn/python/ops/alpha_dropout_test.py
a46269392668d58794c05b147c0b616940dd905c
[ "Apache-2.0" ]
permissive
wangzhi01/deeplearning-1
4e5ad93f0d9ecd302b74352f80fe1fa6ae70bf0d
46ab82253d956953b8aa98e97ceb6cd290e82288
refs/heads/master
2020-05-28T03:14:55.687567
2018-09-12T16:52:09
2018-09-12T16:52:09
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,629
py
# Copyright 2017 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 required by...
[ "hanshuobest@163.com" ]
hanshuobest@163.com
b275fe795cf9ab1470d80878cc1dcd2f8bff4dfb
2e7fa13a40dafa81c5852b7a9d70555c45814574
/QT/pyqt/Qline_Edit.py
84efff4077167ce8cc0584f2f562a6c1388a02b6
[]
no_license
Ziaeemehr/miscellaneous
5768c6f5a2fe76468faed4283a3572a44ccd0239
43a62aaa28c577b09f605a135818a2dacc75d67c
refs/heads/master
2021-07-24T02:43:51.032849
2020-09-23T06:17:17
2020-09-23T06:17:17
217,556,017
0
0
null
null
null
null
UTF-8
Python
false
false
1,161
py
import sys from PyQt4.QtCore import * from PyQt4.QtGui import * def window(): app = QApplication(sys.argv) win = QWidget() e1 = QLineEdit() e1.setValidator(QIntValidator()) e1.setMaxLength(4) e1.setAlignment(Qt.AlignRight) e1.setFont(QFont("Arial",20)) e2 = QLineEdit() e2.setVali...
[ "a.ziaeemehr@gmail.com" ]
a.ziaeemehr@gmail.com
7be4d69ad6872e1ec239fc9e76020f4128811aa0
a0f7cd0dac6b24ca8f0eb26e13f55e7d3bfd6073
/tutorgame/regexapp/migrations/0001_initial.py
5fcf0d31f6456839a59a6d71d3b5d49dd99c32ce
[]
no_license
tomaccosheep/capstone-draft-7
217d0e279c7a3a25207f084ee5f148de5815fe0c
0a66c24397d2c0d4878a057c6bdd21a1009b15b6
refs/heads/master
2021-01-22T17:49:05.881406
2017-08-14T19:00:19
2017-08-14T19:00:19
102,405,625
0
0
null
null
null
null
UTF-8
Python
false
false
561
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.3 on 2017-08-13 18:12 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Card_M...
[ "al.burns.email@gmail.com" ]
al.burns.email@gmail.com
a8ff5cf0bc6c164790c98a11d4fee5fbabbc3acc
669be04e813baf7ac5a444ff9197237a8674126d
/product.py
0fec1a80bb34ec37fb8020167d1acab1e59d7db0
[]
no_license
vangali12/PythonOOP
d24d588eddfa6b03919dd6735b8bf3c898630425
579d365981b9d1520ec88dcbfe52147745be94ef
refs/heads/master
2021-07-08T04:07:00.184547
2017-10-05T19:07:37
2017-10-05T19:07:37
105,929,482
0
0
null
null
null
null
UTF-8
Python
false
false
1,131
py
class Product(object): def __init__(self, price, name, weight, brand, cost): self.price = price self.name = name self.weight = weight self.brand = brand self.cost = cost self.status = "sale" def sell(self): self.status = "sold" return self def addTax(self, tax): self.price = self.price + (self.pric...
[ "30483940+vangali12@users.noreply.github.com" ]
30483940+vangali12@users.noreply.github.com
0a27983665eca4c578a5013cd7157737e2c6dec8
c9500ad778b8521aaa85cb7fe3239989efaa4799
/plugins/automox/icon_automox/actions/run_command/action.py
c10f2f3ba76d3af402ecb5308a617e712b5da48f
[ "MIT" ]
permissive
rapid7/insightconnect-plugins
5a6465e720f114d71b1a82fe14e42e94db104a0b
718d15ca36c57231bb89df0aebc53d0210db400c
refs/heads/master
2023-09-01T09:21:27.143980
2023-08-31T10:25:36
2023-08-31T10:25:36
190,435,635
61
60
MIT
2023-09-14T08:47:37
2019-06-05T17:05:12
Python
UTF-8
Python
false
false
1,408
py
import insightconnect_plugin_runtime from .schema import RunCommandInput, RunCommandOutput, Input, Output, Component # Custom imports below class RunCommand(insightconnect_plugin_runtime.Action): def __init__(self): super(self.__class__, self).__init__( name="run_command", description=Compone...
[ "noreply@github.com" ]
rapid7.noreply@github.com
9a42e5f17ab99a99ebc15ec69c703a5a312f984f
2c4648efe8c7e408b8c3a649b2eed8bb846446ec
/codewars/Python/8 kyu/ValidateCodeWithSimpleRegex/validate_code_test.py
8aefdd9d13dd8eab5601b43efe0c1ecca12ebe4b
[]
no_license
Adasumizox/ProgrammingChallenges
9d79bd1b0ce4794b576124f9874aabb86d5c0713
3630fcde088d7991e344eb1b84805e9e756aa1a2
refs/heads/master
2021-07-16T08:16:57.538577
2020-07-19T19:58:28
2020-07-19T19:58:28
190,159,085
1
0
null
null
null
null
UTF-8
Python
false
false
755
py
from validate_code import validate_code import unittest class TestValidateCodeWithSimpleRegex(unittest.TestCase): def test(self): self.assertEqual(validate_code(123), True) self.assertEqual(validate_code(248), True) self.assertEqual(validate_code(8), False) self.assertEqual(validate_cod...
[ "darkdan099@gmail.com" ]
darkdan099@gmail.com
d5854818d5e3e6c8e2cdd670b2817f56b180997d
2a67dc681af4c4b9ef7a8e18c2ff75377dc5b44f
/aws.elastictranscoder.Preset-python/__main__.py
65842b4d7b1e0d1857cb2f1f1a92513b38482b13
[]
no_license
ehubbard/templates-aws
e323b693a18234defe6bd56ffcc64095dc58e3a1
2ae2e7a5d05490078017fed6d132dcdde1f21c63
refs/heads/master
2022-11-17T13:53:14.531872
2020-07-10T21:56:27
2020-07-10T21:56:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,452
py
import pulumi import pulumi_aws as aws bar = aws.elastictranscoder.Preset("bar", audio={ "audioPackingMode": "SingleTrack", "bitRate": 96, "channels": 2, "codec": "AAC", "sampleRate": 44100, }, audio_codec_options={ "profile": "AAC-LC", }, container="...
[ "jvp@justinvp.com" ]
jvp@justinvp.com
2e7a3c78dc70b3d8601a2cc34252103d8834c6d2
4da9c19d9839c670fda30a45a7e223da624eee4a
/Codechef Problem solutions/chef and happiness new.py
c2f55bca41451258e8ad08c4309a6725aa068313
[]
no_license
JineshKamdar98/Codchef-Problem-Solutions
3e1737669cc0657ccc224e06f800b587130f5787
4447679aa3fb45a2d57f93bf3f724f6223049506
refs/heads/master
2020-05-05T06:38:10.306619
2019-04-06T06:16:10
2019-04-06T06:16:10
179,795,902
0
0
null
null
null
null
UTF-8
Python
false
false
468
py
for t in range(int(input())): n=int(input()) a=list(map(int,input().split()[:n])) a.sort() index=[] value=[] f=0 for i in range(n-1,-1,-1): if((a[i]-1) in index): f=0 break else: index.append(a[i]-1) value.append(a[...
[ "noreply@github.com" ]
JineshKamdar98.noreply@github.com
29904bf7638508da99c3a12ea8f0679def218f3a
4148260054c2cf4605dacb8bdef3605c82eca470
/temboo/Library/Google/Picasa/AddCommentToPhoto.py
8f14bfc24bb5d18a65fd905bcc1b74a6b9fa4d9f
[]
no_license
wimsy/actuarize-web
0f23d5f00afe3d36d430621cdb497d2e64998416
5f43af3019da6fb08cafeec9ff0a89df5196b864
refs/heads/master
2021-03-12T19:38:21.887681
2012-12-19T01:13:50
2012-12-19T01:13:50
null
0
0
null
null
null
null
UTF-8
Python
false
false
4,767
py
# -*- coding: utf-8 -*- ############################################################################### # # AddCommentToPhoto # Adds a comment to a specified photo in Google Picasa. # # Python version 2.6 # ############################################################################### from temboo.core.choreography i...
[ "mike.wimsatt@gmail.com" ]
mike.wimsatt@gmail.com
2c683ab4db0dca1536a5101026e78e0f0ce3d233
707287238a36b8e5f3e26c347cca580549b441e5
/combgen/linexts/pruesse_ruskey/coroutine/gen_all_no_sign.py
9c51d769c4821cbf0a96ea4b8610985ba7f55d44
[]
no_license
sahands/coroutine-generation
2a01e3c5a36fc6b82d8087a15591a452e4bca636
f0b318016b8925b2ab16640a588210548f7989db
refs/heads/master
2016-09-06T04:54:02.453166
2015-01-06T21:32:58
2015-01-06T21:32:58
17,954,406
8
3
null
null
null
null
UTF-8
Python
false
false
179
py
from .gen_all import gen_all def gen_all_no_sign(n, poset, a_b_pairs): for i, pi in enumerate(gen_all(n, poset, a_b_pairs)): if i % 2 == 0: yield pi[1:]
[ "sahands@gmail.com" ]
sahands@gmail.com