blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c6ce418a17a5645dd8fd38721fb6b1ab4599495d | e42af159961102976fa48e91a86fda401c5e7fac | /scripts/roiextract.py | f63f4bdfbe8ba18cbd6e276a50412daddf98d545 | [] | no_license | amsword/qdv | 3a0a2b0b265fdce7756d0f0c96282f378f0c046d | 43de38cc05c5d9577a8ab20ef53140ee7eab9d47 | refs/heads/master | 2022-12-21T09:11:40.043697 | 2018-06-01T19:28:52 | 2018-06-01T19:28:52 | 132,514,671 | 0 | 1 | null | 2022-12-13T09:24:16 | 2018-05-07T20:46:20 | Python | UTF-8 | Python | false | false | 8,593 | py | #!python2
import os.path as op
import _init_paths
from fast_rcnn.config import cfg
from fast_rcnn.nms_wrapper import nms
from fast_rcnn.bbox_transform import bbox_transform_inv, clip_boxes
from utils.timer import Timer
import matplotlib.pyplot as plt
import numpy as np
import scipy.io as sio
import caffe, os, sys, cv2
... | [
"jianfengwang@outlook.com"
] | jianfengwang@outlook.com |
c231bdae8240c64b396674a0fdb0135b62a4b978 | cd8823a1c99c74c8ad720e93158feb6a29bc04ff | /2020-CSGCTF-Final/web/easy_upload/exploit.py | 8dfc6f4119afe11b0db25a8bb87b8635b5a7d8af | [] | no_license | kerlingcode/Attack-Defense-Challenges | 0ef12a3897f5fa4898fbac9bdee65fd3fdeeec89 | 2f5a62be814afb471be47bf3854a776296d1873f | refs/heads/master | 2023-05-27T09:21:11.962707 | 2020-10-23T12:17:15 | 2020-10-23T12:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,644 | py | #encoding:utf-8
# Exploit Title: qdPM 9.1 - Remote Code Execution
# Google Dork: intitle:qdPM 9.1. Copyright © 2020 qdpm.net
# Date: 2020-01-22
# Exploit Author: Rishal Dwivedi (Loginsoft)
# Vendor Homepage: http://qdpm.net/
# Software Link: http://qdpm.net/download-qdpm-free-project-management
# Version: <=1.9.1
# Tes... | [
"wangyihanger@gmail.com"
] | wangyihanger@gmail.com |
6810077126993b6259cdadaf445985aaea672563 | df3831a39f24ddb4762acea38c7a2d2f9a5841af | /backend/menu/migrations/0001_initial.py | 65dd7cd5ede9cf4dde953080191c05bc2ea42ce8 | [] | no_license | crowdbotics-apps/test-28224 | d71d3f3c28ebb68e4c9341f67c61faa59e5419d4 | 2d7d908c24a8e36388701db4478c168380c77b15 | refs/heads/master | 2023-05-31T18:46:23.878057 | 2021-06-25T08:41:27 | 2021-06-25T08:41:27 | 380,176,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,144 | py | # Generated by Django 2.2.20 on 2021-06-25 08:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('delivery_user_profile', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
2c2399c9bcde7c1c04d42548d79ee43949c265ab | de8e0c5c759347917ca7f06b42ca6c82b8f8c95f | /baekjoon/11_math-2/Factorization.py | 8d80ae4f5f9060fa52fa0def7dd54001a9dfad6a | [] | no_license | Greek-and-Roman-God/Apollo | aaeb315a9e70c719b3e53e3c4b9b5dde7b517ec0 | 2823cbcc9fc10ecd3f1785732403cb9c288f8ef3 | refs/heads/main | 2023-08-23T12:08:05.322733 | 2021-10-02T10:54:13 | 2021-10-02T10:54:13 | 308,242,023 | 1 | 1 | null | 2020-11-26T12:03:44 | 2020-10-29T06:49:26 | Python | UTF-8 | Python | false | false | 336 | py | # 11653 소인수분해
# https://www.acmicpc.net/problem/11653
# 1
n = int(input())
i = 2
while 1:
if n == 1:
break
if n % i:
i += 1
else:
print(i)
n = n // i
# 2
n = int(input())
for i in range(2, n//2+1):
while n % i == 0:
print(i)
n //= i
if n != 1:
pri... | [
"doyeon311@gmail.com"
] | doyeon311@gmail.com |
55f8b63206df9c4f94fa808d1378427acc157245 | 61a2e1f3ca7052994d93b3861acb2dd1609ce696 | /node_one.py | 7efd90e4699ebf0fb263fcc217830d2c15586368 | [] | no_license | smartinternz02/SI-GuidedProject-3921-1626161836 | f7faf3cb4aacfa721090a4a60ec94c347f60b981 | 65b78a2a5230c7505c14ae84ca1962388d4b1d2a | refs/heads/main | 2023-07-01T01:52:53.001711 | 2021-08-04T17:12:39 | 2021-08-04T17:12:39 | 385,518,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 175 | py | #! /usr/bin/env python3
import rospy
rospy.init_node("node_1")
rate=rospy.Rate(3)
while not rospy.is_shutdown():
print ('sensor : sensor : 1')
rate.sleep()
| [
"noreply@github.com"
] | smartinternz02.noreply@github.com |
dd2643198e3628db67cbaaa1352484747eb7661d | d250ff521ed87aca7d53d2c8557f904b32d9ce3b | /sba-4-api(before)/com_sba_api/home/home_api.py | 180c2467b44e0064b0bae221b4d7acf6b86055cd | [] | no_license | taepd/ML-study | 9dc6f341761caf854a8a36a1fe0a903a4d41af9a | 7e987d5eb638fc375105472a35c2d9d5a14c14b9 | refs/heads/master | 2023-01-05T02:14:42.555096 | 2020-10-27T02:43:16 | 2020-10-27T02:43:16 | 303,552,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | from com_sba_api.ext.db import config
class HomeApi():
def __init__(self):
...
| [
"taepd1@gmail.com"
] | taepd1@gmail.com |
7c19cd20c5fdbbb7d7b6e85d7c9ca309db7e3e60 | 48cee55c3f85af2a27dca1197ea755b4dc75b1ec | /school_site/school_site/settings.py | 787d2ce640c73cd1571df5ea9affa730df26c5c4 | [] | no_license | alex6446/SchoolWebsite | 07f903aad00df48e097928aef4502946862a8706 | 95a70562e502a2258463291868a6225605b66e7e | refs/heads/master | 2023-05-05T08:26:19.225029 | 2019-08-21T15:43:28 | 2019-08-21T15:43:28 | 182,879,554 | 0 | 0 | null | 2023-04-21T20:32:50 | 2019-04-22T22:49:05 | Python | UTF-8 | Python | false | false | 5,549 | py | """
Django settings for school_site project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
... | [
"alexeymedenitskiy@gmail.com"
] | alexeymedenitskiy@gmail.com |
9b598bc9c4ff34fb5648be5ae59a74d0e35b15a6 | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-facebody/aliyunsdkfacebody/request/v20191230/FaceTidyupRequest.py | bd3dd8d1d01277e27829dad5632f7f2be6488b63 | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 1,759 | 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 |
f7d51e3a6b1ac091d8c13e846c331927665c44f8 | 2daa3894e6d6929fd04145100d8a3be5eedbe21c | /tests/artificial/transf_sqr/trend_poly/cycle_30/ar_/test_artificial_32_sqr_poly_30__20.py | c35f1cbece77dfa19a9d05c6952d04f152c8fa7b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Henri-Lo/pyaf | a1f73a0cc807873bd7b79648fe51de9cfd6c126a | 08c968425d85dcace974d90db7f07c845a0fe914 | refs/heads/master | 2021-07-01T12:27:31.600232 | 2017-09-21T11:19:04 | 2017-09-21T11:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
dataset = tsds.generate_random_TS(N = 32 , FREQ = 'D', seed = 0, trendtype = "poly", cycle_length = 30, transform = "sqr", sigma = 0.0, exog_count = 20, ar_order = 0);
art.process_dataset(dataset); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
0fcec58fc11b709d3ffc87d5b56c30844cb06f65 | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/Simulation/Pythia/ADD/ADDCP2/CP2ADDfragments/ADDGravToGG_NegInt-1_LambdaT-13000_M-500To1000_TuneCP2_13TeV-pythia8_cfi.py | 78d803ed1b2732950af25c8bd36f9480d5261f5e | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 1,251 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunes2017.PythiaCP2Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
60a013cf7859de16009c09d82cd971ec5a83cc70 | b144c5142226de4e6254e0044a1ca0fcd4c8bbc6 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/quicktest/rfc3918burdenedjoindelay_778fcaab0dc095f7632f49846264f03c.py | 156bd5c3f19ed297831cd271628219ace0b4800e | [
"MIT"
] | permissive | iwanb/ixnetwork_restpy | fa8b885ea7a4179048ef2636c37ef7d3f6692e31 | c2cb68fee9f2cc2f86660760e9e07bd06c0013c2 | refs/heads/master | 2021-01-02T17:27:37.096268 | 2020-02-11T09:28:15 | 2020-02-11T09:28:15 | 239,721,780 | 0 | 0 | NOASSERTION | 2020-02-11T09:20:22 | 2020-02-11T09:20:21 | null | UTF-8 | Python | false | false | 14,092 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"srvc_cm_packages@keysight.com"
] | srvc_cm_packages@keysight.com |
6823952645d44cd49647ba4a892a664492f7093b | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_oucontainer_info.py | d39f65db9f65e180410688e1d50c78604f5f7fa8 | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 9,484 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
40eb3f09a39462ee8a0cc6338183621cd135cd2d | 7a2bf793ae78a6fbb9081d5117a4273c9a45381f | /future/tests/test_urllib2.py | a5a1167fc00222cbfdb0394f959021cc5ee82f4d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | frewsxcv/python-future | 410ba3d62180797d4d6afe5f7a9d5d0371a747f3 | 2bb5f0215d9ba89649de6bed55537aefab92c9a7 | refs/heads/master | 2020-12-30T18:30:17.286782 | 2014-06-18T05:25:17 | 2014-06-18T05:25:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62,630 | py | from __future__ import absolute_import, division, unicode_literals
import os
import io
import socket
import array
import sys
from future.standard_library import import_, install_aliases
from future.backports.test import support
import future.backports.urllib.request as urllib_request
# The proxy bypass method imported... | [
"ed@pythoncharmers.com"
] | ed@pythoncharmers.com |
c7ddb844b91a3780ee7e60c52dc483fd56926fac | 36957a9ce540846d08f151b6a2c2d582cff1df47 | /VR/Python/Python36/Lib/site-packages/django/contrib/messages/constants.py | fbdce4e4d9bd4e5cf428861ea358ba890c129cfe | [] | no_license | aqp1234/gitVR | 60fc952307ef413e396d31e0d136faffe087ed2b | e70bd82c451943c2966b8ad1bee620a0ee1080d2 | refs/heads/master | 2022-12-29T15:30:12.540947 | 2020-10-07T15:26:32 | 2020-10-07T15:26:32 | 290,163,043 | 0 | 1 | null | 2020-08-25T09:15:40 | 2020-08-25T08:47:36 | C# | UTF-8 | Python | false | false | 128 | py | version https://git-lfs.github.com/spec/v1
oid sha256:599c63cef128288ee6802852169fe0f5efb3507f2be892e1bbdb05b1fb5318d0
size 312
| [
"aqp1234@naver.com"
] | aqp1234@naver.com |
a154800e384742afe40229723c6a82fd41ef1463 | fa0ae8d2e5ecf78df4547f0a106550724f59879a | /Numpy/day06/eig.py | 6c39941771c00a8b74a849b9b48b7c2ab172336f | [] | no_license | Polaris-d/note | 71f8297bc88ceb44025e37eb63c25c5069b7d746 | 6f1a9d71e02fb35d50957f2cf6098f8aca656da9 | refs/heads/master | 2020-03-22T17:51:49.118575 | 2018-09-06T03:36:00 | 2018-09-06T03:36:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import numpy as np
A = np.mat('3 -2; 1 0')
print(A)
eigvals, eigvecs = np.linalg.eig(A)
print(eigvals, eigvecs, sep='\n')
a = eigvals[0]
x = eigvecs[:, 0]
print(A * x, a * x, sep='\n')
a = eigvals[1]
x = eigvecs[:, 1]
print(A * x, a * x, sep='\... | [
"610079251@qq.com"
] | 610079251@qq.com |
56f14e7c79bc56c708ce4d9309d16fc8f969159e | a2e10b9a73ccfb80fbb98d47532d4c6a6de49be7 | /utils/stringIO/grail/settings.py | 942fc950c065c1041feb11cc0ca9f2acb2001c96 | [] | no_license | yuqi-test/ECProAutomation | 81a04b77c9226acd4f745bf59df3c741bd9d3605 | 9c08c5b3bd122809fbb5b44cd933f4240e42e4f7 | refs/heads/master | 2022-04-21T11:46:17.788667 | 2020-04-21T10:12:52 | 2020-04-21T10:12:52 | 257,553,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | export_mode = False
disable_steps = False
print_step_time = False
step_time_template = '[{0:4.2f}s] '
indentation_const = ' '
skip_func = ('setup',
'teardown',
'setup_class',
'teardown_class',
'setup_module',
'teardown_module',
'setup_packa... | [
"yuqi@infimind.com"
] | yuqi@infimind.com |
361d302383edd8c481ca9343608831aae35d9763 | 5963c12367490ffc01c9905c028d1d5480078dec | /homeassistant/components/homekit_controller/device_trigger.py | 818b75e47d3c3528f911983eb9db25fa0fe05125 | [
"Apache-2.0"
] | permissive | BenWoodford/home-assistant | eb03f73165d11935e8d6a9756272014267d7d66a | 2fee32fce03bc49e86cf2e7b741a15621a97cce5 | refs/heads/dev | 2023-03-05T06:13:30.354545 | 2021-07-18T09:51:53 | 2021-07-18T09:51:53 | 117,122,037 | 11 | 6 | Apache-2.0 | 2023-02-22T06:16:51 | 2018-01-11T16:10:19 | Python | UTF-8 | Python | false | false | 8,675 | py | """Provides device automations for homekit devices."""
from __future__ import annotations
from aiohomekit.model.characteristics import CharacteristicsTypes
from aiohomekit.model.characteristics.const import InputEventValues
from aiohomekit.model.services import ServicesTypes
from aiohomekit.utils import clamp_enum_to_... | [
"noreply@github.com"
] | BenWoodford.noreply@github.com |
b96ba129827be46b1f0c7523731af7bda10b1f1b | 046674b67ad5727ec65725e826ea354ca07d71da | /investpy/crypto.py | 3878b3eb3b153a3a2edf0faa71ea87aa619e46d6 | [
"MIT"
] | permissive | alexanu/investpy | cad2d0ef3f67b4fa4ecb23a4730ae96c1a162168 | bc46d30af21f03ab5b7b9aa259b755db281277bb | refs/heads/master | 2020-12-28T08:48:01.479075 | 2020-05-15T22:42:15 | 2020-05-15T22:42:15 | 238,252,327 | 0 | 1 | MIT | 2020-05-15T22:42:16 | 2020-02-04T16:31:29 | null | UTF-8 | Python | false | false | 40,053 | py | #!/usr/bin/python3
# Copyright 2018-2020 Alvaro Bartolome @ alvarob96 in GitHub
# See LICENSE for details.
from datetime import datetime, date
import json
from random import randint
import pandas as pd
import pkg_resources
import requests
import unidecode
from lxml.html import fromstring
from investpy.utils.user_ag... | [
"alvarob96@usal.es"
] | alvarob96@usal.es |
dfd98191175a3dd95b1c3ae9ce0834fff3628057 | 99a1b01baed66d3e7ab7c26b1eb8d5832421634b | /db/dbInsert/insertDarwin_Ocean_Color_bcp.py | 819ac4b1bd08f7680ed2d089e9afdd302bebf900 | [] | no_license | mdashkezari/opedia | 011f4d358b1f860ec51cca408c3af9368e036868 | 1e82ae66baedad721c41182f0586fa2a867291c2 | refs/heads/master | 2021-05-09T11:24:18.126622 | 2019-09-12T20:24:06 | 2019-09-12T20:24:06 | 118,988,572 | 9 | 8 | null | 2019-09-11T19:54:30 | 2018-01-26T01:22:55 | HTML | UTF-8 | Python | false | false | 1,147 | py |
import sys
sys.path.append('../')
import insertFunctions as iF
import insertPrep as ip
import config_vault as cfgv
import pandas as pd
import io
import numpy as np
import glob
import xarray as xr
import os.path
############################
########### OPTS ###########
tableName = 'tblDarwin_Ocean_Color'
rawFilePath =... | [
"norlandrhagen@gmail.com"
] | norlandrhagen@gmail.com |
27bd80225a47293e5ddca228a1de1c72096f45d8 | 15a3297d6aeb8d8258127a19540c2583c9fc81d1 | /tests/test_array_ops.py | ffb529d419ef0280c913c6b54067c7c9f7d65b88 | [] | no_license | RW74/htm-tensorflow | b6fffcb5e69e05b150a261ab44685c22f72cdc4e | 7baebdd7df393a7f1badee36c97aea36b35913b0 | refs/heads/master | 2020-04-29T08:00:38.308477 | 2019-02-21T07:05:17 | 2019-02-21T07:05:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from htmtorch.testing.torchtest import TorchTestCase
from htmtorch.functional.array_ops import array_to_nd_index
import torch as tor
class TestArrayOps(TorchTestCase):
def test_basic_cuda(self):
ind = tor.LongTensor([110, 125, 235, 333, 404]).cuda()
nd_shape = tor.LongTensor([10, 10, 10]).cuda()
... | [
"josh.miklos@gmail.com"
] | josh.miklos@gmail.com |
20e46df06810abb0fa2b20f57e6b1d069dc6f7cf | 3ae6dc36775925a9a029cdb39788e30e20882028 | /tests/structures/test_interface.py | 6fd7f17584eb3cd27d3198d573ab83c87022c614 | [
"BSD-3-Clause"
] | permissive | rubacalypse/voc | 89939b63596cb1ada2cdc06463d1bb527ef5099e | 485b698247e49ac7bc58c18839d21556018e16a9 | refs/heads/master | 2021-01-18T07:36:34.361276 | 2016-01-03T18:05:27 | 2016-01-03T18:05:27 | 48,055,448 | 0 | 0 | null | 2015-12-15T16:29:37 | 2015-12-15T16:29:36 | null | UTF-8 | Python | false | false | 1,183 | py | from ..utils import TranspileTestCase
class InterfaceTests(TranspileTestCase):
def test_implement_interface(self):
"You can implement (and use) a native Java interface"
self.assertJavaExecution(
"""
from java.lang import StringBuilder
class MyStringAnalog(impl... | [
"russell@keith-magee.com"
] | russell@keith-magee.com |
c49c7b30a213953338bacae13bce7542fc685473 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03250/s058422240.py | 419fcf62181f60fc0b7561718d452826ac4f13c6 | [] | 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 | 73 | py | L=sorted(list(map(str,input().split())))
print(int(L[2]+L[1])+int(L[0]))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cb9bd6a54a31181beeb644511e54151a4fee2fe1 | 1c8bcd2d8e129a92e3328f47d2a452814c033327 | /kaggle/ghouls-goblins-and-ghosts-boo/script_1.py | e347cb42aa2a26bcc394a0ab838bc06f91aabe72 | [
"MIT"
] | permissive | josepablocam/janus-public | 425334706f9a4519534779b7f089262cf5cf0dee | 4713092b27d02386bdb408213d8edc0dc5859eec | refs/heads/main | 2023-03-08T15:21:12.461762 | 2021-02-25T20:53:02 | 2021-02-25T20:53:02 | 314,606,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,797 | py | # Import the required libraries
import numpy as np # linear algebra
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)
from matplotlib import pyplot as plt
import seaborn as sns
from sklearn import preprocessing
from sklearn import metrics
from sklearn.model_selection import train_test_split
from ... | [
"jcamsan@mit.edu"
] | jcamsan@mit.edu |
3c6ef5ab0efd64646da6bb20b1a0a4dbe7ed9d52 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03427/s581758715.py | e0f6f58c743a818c6bcf68751f6112a9ffbc4167 | [] | 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 | 157 | py | N = input().strip()
k = len(N)
cmax = 0
for i in range(k):
cmax += int(N[i])
if k>1:
cnt = (int(N[0])-1)+9*(k-1)
cmax = max(cmax,cnt)
print(cmax) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
024d7c9d22a9d10759f9603ccacb53f3aac364fd | 0104add04cd6da515e2ccb2c27e44bc6693f9bcf | /Yurii_Khomych/l_1_functions/currying_2.py | c3cd7ebafac18d91b79596981f4c1728f815323c | [] | no_license | YuriiKhomych/ITEA-advanced | c96c3cf9b279caf62fefcd41faf543cee7534626 | 90bc47733c07b5b866aa3a14aa12a169f5df289c | refs/heads/master | 2022-12-09T20:38:23.607426 | 2019-12-22T17:30:59 | 2019-12-22T17:30:59 | 209,354,034 | 0 | 9 | null | 2022-12-08T03:04:04 | 2019-09-18T16:23:12 | Python | UTF-8 | Python | false | false | 854 | py |
def change(func_1, func_2, func_3):
def inner_func(arg):
return func_1(func_2(func_3(arg)))
return inner_func
def kilometer2meter(dist):
""" Function that converts km to m. """
return dist * 1000
def meter2centimeter(dist):
""" Function that converts m to cm. """
return dist * 100
... | [
"yuriykhomich@gmail.com"
] | yuriykhomich@gmail.com |
f2061a6cc57c32db6bff0cdc2dfda4b0d2a2a292 | 5d027f4d32fc503212a824355ef45295e6df90b5 | /Homework/HW-Scheduler/HW-Scheduler/scheduler.py | 59e134b93c656a04b20b187861469354df0c6331 | [] | no_license | M1c17/OP_three_easy_steps | c99fa0a9214e42e8b44df14e84125c034b9cb1f3 | ea6190c55358d027169e7911bebd7aa6f2b56dff | refs/heads/master | 2022-12-18T22:25:52.055978 | 2020-09-15T03:10:19 | 2020-09-15T03:10:19 | 295,588,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,799 | py | #! /usr/bin/env python
import sys
from optparse import OptionParser
import random
parser = OptionParser()
parser.add_option("-s", "--seed", default=0, help="the random seed",
action="store", type="int", dest="seed")
parser.add_option("-j", "--jobs", default=3, help="number of jobs in the system",
... | [
"pictor117@gmail.com"
] | pictor117@gmail.com |
f940347b0a46dad50d1d229095586c5651621a8f | 397e125e94f4f139f2bf5055824d81f24b8b1757 | /ABC/138/E.py | 90a94533e38572141fe743f2f69457c94250fa59 | [] | no_license | tails1434/Atcoder | ecbab6ee238e3f225551297db961b1b502841fa4 | e7c7fed36be46bbaaf020a70997842240ba98d62 | refs/heads/master | 2021-07-07T00:31:49.235625 | 2020-09-30T01:42:01 | 2020-09-30T01:42:01 | 189,009,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 606 | py | from collections import defaultdict
from bisect import bisect_right
def main():
S = input()
T = input()
d = defaultdict(list)
for i, s in enumerate(S):
d[s].append(i+1)
pre = 0
cnt = 0
loop = 0
len_S = len(S)
for t in T:
if not d[t]:
print(-1)
... | [
"sososo1333@gmail.com"
] | sososo1333@gmail.com |
dbd2baaba12c468d6326baad9fc89420ad6d9071 | 388556baa0c2ee53d8767ae8a4bce18c03124488 | /Chapter11/0017_difference_between_abstraction_encapsulation.py | 0a946d6f97028efc1ea5384b7d8c3e1eb976d848 | [] | no_license | 8563a236e65cede7b14220e65c70ad5718144a3/introduction-python-programming-solutions | 6e2e7c8cf8babc3c63f75d8d5e987f4dbc018269 | f21d70ae2062cc2d5d3a2fefce81a2a3b4ea3bfd | refs/heads/master | 2022-12-10T04:24:56.364629 | 2020-07-01T11:34:01 | 2020-07-01T11:34:01 | 294,878,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | """
Program 11.13
Demonstrate the Difference between Abstraction and Encapsulation
"""
class foo:
def __init__(self, a, b):
self.a = a
self.b = b
def add(self):
return self.a + self.b
def main():
foo_object = foo(3, 4)
print(foo_object.add())
if __name__ == "__main__":
... | [
"warren.jitsing@gmail.com"
] | warren.jitsing@gmail.com |
9af8fb8a7ef155427b16305335e2b3c950d6b53b | 61050d0d7f0c0a60474e4e85d30be4e5ea7c6b04 | /content/components/dom-access/job.odb | 3c76a64ef3a81dd1ef07fb2572060e156f42bdc7 | [] | no_license | danse-inelastic/vnf | 8173f06f32b4a2fa2b71fddfe0fecf9c19e05e9a | be989448577f14f424aca4ce852c7198304ca57b | refs/heads/master | 2021-01-22T01:06:00.294100 | 2015-05-02T23:25:45 | 2015-05-02T23:25:45 | 34,947,878 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,779 | odb | # -*- Python -*-
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Jiao Lin
# California Institute of Technology
# (C) 2006-2009 All Rights Reserved
#
# {LicenseText}
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | [
"linjiao@caltech.edu"
] | linjiao@caltech.edu |
8885c933ea131e903feb51fe6f4dbc4537a88af7 | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-meeting/huaweicloudsdkmeeting/v1/model/qos_send_receive_info.py | 7b4a4548e2c3a10bc21c875febcbe1d7b61af84f | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,634 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class QosSendReceiveInfo:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
db126458e075c35c3a9606d6dc1f54e18b85536e | d4442db5a7ab9db2b04fef640a9864f3fba54758 | /src/python/WMCore/RequestManager/RequestDB/Oracle/Group/GetGroupFromAssoc.py | 3549961c0b5eea9816bb43e00f98608494e976f0 | [] | no_license | stuartw/WMCore | fa25ff19ab5058a635d35d3c58a0ac56a3e079a1 | 38c39c43f7237fd316930839674ac9be3c0ee8cc | refs/heads/master | 2021-01-18T07:18:18.324604 | 2012-10-18T22:30:34 | 2012-10-18T22:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | from WMCore.RequestManager.RequestDB.MySQL.Group.GetGroupFromAssoc import GetGroupFromAssoc as GetGroupFromAssocMySQL
class GetGroupFromAssoc(GetGroupFromAssocMySQL):
pass | [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
dfcf388075f9499cfdaf3e385b9bec1af4308eb3 | 3aef4825c5f2366f2e551cdfa54b88c034b0b4f4 | /tutorials/2_tensorflow_old/matplotlibTUT/plt14_3d.py | d742a0cd4768afe2bb32c874c3cc31368aaf5fd1 | [
"MIT"
] | permissive | wull566/tensorflow_demo | 4a65cbe1bdda7430ab1c3883889501a62258d8a6 | c2c45050867cb056b8193eb53466d26b80b0ec13 | refs/heads/master | 2020-04-06T17:34:05.912164 | 2018-11-15T07:41:47 | 2018-11-15T07:41:48 | 157,665,187 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,233 | py | # View more 3_python 2_tensorflow_old on my Youtube and Youku channel!!!
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial
# 14 - 3d
"""
Please note, this script is for python3+.
If you are using python2+, please modify it acco... | [
"vicleo566@163.com"
] | vicleo566@163.com |
09948ecbf8dce75fc191482b02c52f34414e2dd2 | eea1c66c80784d4aefeb0d5fd2e186f9a3b1ac6e | /atcoder/AGC/agc037/agc037_a.py | 0a81674be640dbd4e2a9a68795fce2f0fa83a027 | [] | no_license | reo11/AtCoder | 4e99d6f40d8befe264761e3b8c33d3a6b7ba0fe9 | 69c6d67f05cb9190d8fb07204488cd7ce4d0bed2 | refs/heads/master | 2023-08-28T10:54:50.859288 | 2023-08-22T18:52:47 | 2023-08-22T18:52:47 | 162,085,118 | 4 | 0 | null | 2023-07-01T14:17:28 | 2018-12-17T06:31:10 | Python | UTF-8 | Python | false | false | 205 | py | s = str(input())
count = 1
pre = s[0]
now = ""
for i in range(1, len(s)):
now += s[i]
if pre == now:
continue
else:
count += 1
pre = now
now = ""
print(count)
| [
"reohirao116@gmail.com"
] | reohirao116@gmail.com |
3948a716848ac63fa942f4ff68789df1d13eec70 | 342ec51a35eef43fe1bafa31bdf8f0c9ef956cd9 | /comlib.py | 2ef51158ec9e1743618a2ad4d19ab834c1795910 | [
"MIT"
] | permissive | Strangemother/python-simple-tts-stt | a60ff7ce4e4b9dd58a3a906c7a8c266b0dc6bb2a | e7ac38e795b32f55367a58107d86bf04ea906f0c | refs/heads/master | 2020-03-21T10:18:41.407181 | 2019-01-02T07:32:24 | 2019-01-02T07:32:24 | 138,444,505 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | import speech
import comtypes.client # Importing comtypes.client will make the gen subpackage
import os
try:
assert(os.name == 'nt') # Checks for Windows
except:
raise RuntimeError("Windows is required.")
try:
from comtypes.gen import SpeechLib # comtypes
except ImportError:
# Genera... | [
"jay@strangemother.com"
] | jay@strangemother.com |
5c82f1295336f62ee18d4ca09a43169108808919 | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007-EOL/applications/hardware/bluez-utils/actions.py | 998201a4580feb5fd60d2b947e9349576906fa8d | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,287 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2005-2008 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
de... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
07896960fbc3c364f8fa514f19481ea4d06edca5 | ae10b60cb92a69146bfb05ef5dde735a0aa45d4b | /examples/New Functions/Example distance 1.py | 2d8b3d0afa43d6027b21ee429f3c43c74def211d | [
"MIT"
] | permissive | kantel/nodebox-pyobjc | 471cea4c5d7f1c239c490323186458a74edcc214 | 068ba64c87d607522a240ab60c3ba14f869f6222 | refs/heads/master | 2021-08-14T18:32:57.995445 | 2017-11-16T13:42:23 | 2017-11-16T13:42:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 982 | py | import math
def params(val, name):
global x, y
# global scope needs updating.
val = int(round(val,0))
if name == "x":
x = int(val)
else:
y = int(val)
triangle(x, y)
def triangle(x, y):
x0, y0 = 100, 160
x1, y1 = x0 + x, y0
x2, y2 = x0, y0 + y
# draw a trian... | [
"karstenwo@web.de"
] | karstenwo@web.de |
9216428587f42a0e67dbf4b9393da0b0e71f9cdc | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/apimanagement/v20201201/get_content_item.py | 839b7064a377f6a60900dac782fc801a0b858684 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 3,523 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
eaca57fe897b429426f4d1512460c6fe58b9fbd0 | c02ed092ce4fceff7f8b2cb0bdf8712141581e51 | /doc/conf.py | 82230848e00960bd70c7c19859a7b2ad1775d197 | [
"MIT",
"MIT-0"
] | permissive | ronaldoussoren/macholib | 376a953654c69d8c01e763efc0508346d420fa9f | 0f77e700f84690121bba872470bc825cecd23d97 | refs/heads/master | 2023-09-03T16:08:46.378443 | 2022-09-25T17:48:13 | 2022-09-25T17:48:13 | 231,951,689 | 72 | 15 | MIT | 2022-04-25T16:18:57 | 2020-01-05T17:24:17 | Python | UTF-8 | Python | false | false | 8,802 | py | # -*- coding: utf-8 -*-
#
# macholib documentation build configuration file, created by
# sphinx-quickstart on Tue Sep 28 22:23:35 2010.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# Al... | [
"ronaldoussoren@mac.com"
] | ronaldoussoren@mac.com |
c23e4d616602f79d9d239eacb7e8558f1639d2ff | e59602b7e17fafff70240700138bbe54ced28739 | /PythonSimpleVisualiser.py | 152c3204cf353fff3ddeab2c45ec43bdd5770b29 | [] | no_license | TestSubjector/CompGeometry2 | ddc3dae8517e45d419e7057f2d905ad5d95d67e7 | 3b7f30302c837d883132290789cd84305f0e0b10 | refs/heads/master | 2022-03-27T13:37:46.115463 | 2019-04-03T18:18:48 | 2019-04-03T18:18:48 | 177,393,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,173 | py | ## Takes input from a text file and plots all points.
## Connects the points in order read and connects last point to first one.
import argparse
import matplotlib.pyplot as plt
def getArgParser():
''' Returns ArgParser object to handle command-line args'''
parser = argparse.ArgumentParser()
parser.add_argu... | [
"f2015845@hyderabad.bits-pilani.ac.in"
] | f2015845@hyderabad.bits-pilani.ac.in |
95621f79a92dc69d3ca8f9ac1482bf81b28cb8fa | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/web/v20181101/get_web_app_function.py | f035db040d58335774ba7aec281ac9825034db4b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,319 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
5fbbbba6af3dfcfca89cb54da6713158b0a6ecbd | 4e60e8a46354bef6e851e77d8df4964d35f5e53f | /main.py | ae35090fa53b38726ed25a70d0f2454551d2dee5 | [] | no_license | cq146637/DockerManagerPlatform | cbae4154ad66eac01772ddd902d7f70b62a2d856 | 9c509fb8dca6633ed3afdc92d4e6491b5d13e322 | refs/heads/master | 2021-04-09T13:58:14.117752 | 2018-03-19T13:41:04 | 2018-03-19T13:41:04 | 125,712,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | # -*- coding: utf-8 -*-
__author__ = 'CQ'
import os
import sys
import tornado.httpserver
import tornado.ioloop
import tornado.options
import tornado.web
from settings import settings
from url.urls import urls
from tornado.options import define, options, parse_command_line
define("port", default=8888, help="run on the... | [
"1016025625@qq.com"
] | 1016025625@qq.com |
080f45148a5f23811232fe76aaf7c83e197d9bfb | e8eb2cecee1ebc47455917fa11a58e7b5a912b74 | /python_lessons/python_advanced_02_tic_tac_toe/app/model/game.py | c5b61a7de11ddc51661518c76607cd7bc169970c | [] | no_license | cyr1z/python_education | ad0f9e116536a5583a12e05efe41ee173639ea9c | 37b2edbccf6f96c59c14cabf4bf749a3ec0f503d | refs/heads/main | 2023-06-08T10:24:26.217582 | 2021-06-27T17:02:05 | 2021-06-27T17:02:05 | 359,467,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | """
Game module.
"""
from app.model.table import GameTable
from app.view.table_view import TableView
class Game:
"""
Game play class
"""
def __init__(self, numbers_map, player1, player2):
self.table = GameTable(numbers_map)
self.players = []
self.players.append(player1)
... | [
"cyr@zolotarev.pp.ua"
] | cyr@zolotarev.pp.ua |
1fcea8653789c9e4dfb17a9855b267d4c204b864 | a6d48cfa5e60ff635e7a6e87c49c5626b5cd9cc6 | /official/vision/beta/configs/video_classification.py | 06897d2a16c98f7b46533e193875fdd5e763a2a7 | [
"Apache-2.0"
] | permissive | jyshin0926/models | 4b0c107ca4170992e8a26370414a950413a59904 | 02574bc3dfbbf913c13937865e6609f4a0be3dc9 | refs/heads/master | 2023-03-28T09:12:50.138751 | 2021-03-23T00:53:09 | 2021-03-23T00:53:09 | 350,530,029 | 2 | 0 | Apache-2.0 | 2021-03-23T00:27:57 | 2021-03-23T00:27:57 | null | UTF-8 | Python | false | false | 8,565 | 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 |
093b8ea7593c9c1b921e251e644de80e43c8a9f9 | ae12996324ff89489ded4c10163f7ff9919d080b | /LeetCodePython/DesignaTextEditor.py | 3f9a03e8ddcfd31fcc7ef5243000df664c94c4e6 | [] | no_license | DeanHe/Practice | 31f1f2522f3e7a35dc57f6c1ae74487ad044e2df | 3230cda09ad345f71bb1537cb66124ec051de3a5 | refs/heads/master | 2023-07-05T20:31:33.033409 | 2023-07-01T18:02:32 | 2023-07-01T18:02:32 | 149,399,927 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,725 | py | """
Design a text editor with a cursor that can do the following:
Add text to where the cursor is.
Delete text from where the cursor is (simulating the backspace key).
Move the cursor either left or right.
When deleting text, only characters to the left of the cursor will be deleted. The cursor will also remain within... | [
"tengda.he@gmail.com"
] | tengda.he@gmail.com |
610e9e0094ced115c64f5c06b9dbb9ab77bfc073 | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/P/psychemedia/nhs_sit_reps_2011.py | e2234bd29ed70633306158127db3feacfd95e2e7 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,202 | py | #Scrape sit reports
#Reshape data from original format - dates are facet values, and as such row vals not column vals
#Dates are given in all manner of formats in the oroginal col headings; I've made a start on parsing them but there's still work to be done
#Need to build a table that contains scraped sheets so we don'... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
98b6ff482a1ec4bd5a748377edc96a38f4733156 | 13a32b92b1ba8ffb07e810dcc8ccdf1b8b1671ab | /home--tommy--mypy/mypy/lib/python2.7/site-packages/lasagne/layers/conv.py | 3b3dde508751920cdb89839ce4bb86786464924e | [
"Unlicense"
] | permissive | tommybutler/mlearnpy2 | 8ec52bcd03208c9771d8d02ede8eaa91a95bda30 | 9e5d377d0242ac5eb1e82a357e6701095a8ca1ff | refs/heads/master | 2022-10-24T23:30:18.705329 | 2022-10-17T15:41:37 | 2022-10-17T15:41:37 | 118,529,175 | 0 | 2 | Unlicense | 2022-10-15T23:32:18 | 2018-01-22T23:27:10 | Python | UTF-8 | Python | false | false | 20,404 | py | import theano.tensor as T
from .. import init
from .. import nonlinearities
from ..utils import as_tuple
from ..theano_extensions import conv, padding
from .base import Layer
__all__ = [
"Conv1DLayer",
"Conv2DLayer",
]
def conv_output_length(input_length, filter_size, stride, pad=0):
"""Helper functio... | [
"tbutler.github@internetalias.net"
] | tbutler.github@internetalias.net |
983d4615eb75145cbb024178a9271475c82399be | 29a38674cd5cda4880d539ee235ea118b750571e | /tests/flit_cli/flit_update/tst_badconfig.py | 495501f01a3766375523bcada2ceebbb585b41c1 | [] | no_license | hbrunie/FLiT | 1f0be509f776b86380b215b30e7b365921dd3425 | 836bc3cd2befebc9cfe20926fd855b1f5d29ae17 | refs/heads/master | 2020-07-09T20:26:40.644089 | 2019-04-10T18:47:25 | 2019-04-10T18:47:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,702 | py | # -- LICENSE BEGIN --
#
# Copyright (c) 2015-2018, Lawrence Livermore National Security, LLC.
#
# Produced at the Lawrence Livermore National Laboratory
#
# Written by
# Michael Bentley (mikebentley15@gmail.com),
# Geof Sawaya (fredricflinstone@gmail.com),
# and Ian Briggs (ian.briggs@utah.edu)
# under the direct... | [
"mikebentley15@gmail.com"
] | mikebentley15@gmail.com |
b255fdf34e22a4165490cdca3b6a1c6e64f12f1d | 8d2a124753905fb0455f624b7c76792c32fac070 | /pytnon-month01/month01-shibw-notes/day08-shibw/demo02-函数实参传递方式.py | 8552c39f1fd88ff02da5f27af317be220d475eb2 | [] | no_license | Jeremy277/exercise | f38e4f19aae074c804d265f6a1c49709fd2cae15 | a72dd82eb2424e4ae18e2f3e9cc66fc4762ec8fa | refs/heads/master | 2020-07-27T09:14:00.286145 | 2019-09-17T11:31:44 | 2019-09-17T11:31:44 | 209,041,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,069 | py | '''
函数传参
实参传递方式
'''
def fun01(a,b,c):#形参 a b c
print(a)
print(b)
print(c)
#位置实参 实参是根据位置与形参对应的
#如果实参位置发生改变 会影响函数结果
# fun01(10,20,30)
# fun01(30,10,20)
#序列实参 用*将序列中的元素拆开然后与形参依次对应
#序列 字符串 列表 元组
list01 = [10,20,30]
fun01(*list01)
# str01 = 'abcd'
# fun01(*str01)#报错
#关键字实参
#实参的值与形参的名称对应
# fun01(a=10,b=20,c=... | [
"13572093824@163.com"
] | 13572093824@163.com |
4153e5a0a7053f1238faf6b9925f4b00dfa351d3 | 3f4f2bb867bf46818802c87f2f321a593f68aa90 | /smile/bin/cftp | f013e4cd473d18741239a41ee15b8ee6fe9ecd80 | [] | no_license | bopopescu/Dentist | 56f5d3af4dc7464544fbfc73773c7f21a825212d | 0122a91c1f0d3d9da125234a8758dea802cd38f0 | refs/heads/master | 2022-11-23T12:42:23.434740 | 2016-09-19T15:42:36 | 2016-09-19T15:42:36 | 282,608,405 | 0 | 0 | null | 2020-07-26T08:30:16 | 2020-07-26T08:30:16 | null | UTF-8 | Python | false | false | 358 | #!/SHARED-THINGS/ONGOING/We.smile/smile/bin/python
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
import sys, os
extra = os.path.dirname(os.path.dirname(sys.argv[0]))
sys.path.insert(0, extra)
try:
import _preamble
except ImportError:
sys.exc_clear()
sys.path.remove(extra)
from twiste... | [
"jamaalaraheem@gmail.com"
] | jamaalaraheem@gmail.com | |
60899e33a7c3f1dfccf1acbed4b358ea6a036956 | bf8b1335af2d9b77943d440908be1f94931493c9 | /lession3/jinja/jinja/wsgi.py | 177b069f883f281c7c4f2fba4e1f18e96fcb2df2 | [] | no_license | OctopusLian/django-lession | 9e8e6727815f30ad79972aee956055d7c01c9692 | 8f6f88c53702884c99fc0c6048c1019735f16fd3 | refs/heads/master | 2023-06-05T22:01:09.298618 | 2021-06-24T07:45:44 | 2021-06-24T07:45:44 | 377,732,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for jinja project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"zoctopus@qq.com"
] | zoctopus@qq.com |
c0aad22b53d52c82359598c5146e7be5d057ac21 | ac8785aab837876a7595925cba2b5a09d6cb3a9f | /exam_question/apps.py | f7eca37bf7588c1f5bc88337e80ceb855a725f55 | [] | no_license | MayowaFunmi/django-cbt-onlineschool-app | 9ffb388baec9515314035b7cf1faeae60006df66 | f98741a299303643fa58a8f98aff0ab885402404 | refs/heads/master | 2023-01-02T08:52:51.570801 | 2020-10-28T00:09:30 | 2020-10-28T00:09:30 | 307,857,845 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | from django.apps import AppConfig
class ExamQuestionConfig(AppConfig):
name = 'exam_question'
| [
"akinade.mayowa@gmail.com"
] | akinade.mayowa@gmail.com |
ee3a35c8ea73fb5fd4cbd78944d7dd7318dfa7b2 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/helpers/pydev/pydev_tests_python/resources/_debugger_case_set_next_statement.py | 145f36d596c3dbca63ea3726dfa41035f960a000 | [
"EPL-1.0",
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 169 | py | def method():
a = 1
print('call %s' % (a,))
a = 2
print('call %s' % (a,))
a = 3
if __name__ == '__main__':
method()
print('TEST SUCEEDED!')
| [
"Elizaveta.Shashkova@jetbrains.com"
] | Elizaveta.Shashkova@jetbrains.com |
1da139e0f1926e0aebc7e93d592604dcfb4edf72 | 8d920a35fda0ba351a6fb5e7d6cb2b570d6f1ec6 | /grp_ejecucion_presupuestal/__openerp__.py | 21ef1b0627f49b703a741c5e18df87a2f6e4ca67 | [] | no_license | suningwz/odoo-coreuy | afeb661a1c6bd16e7804f2bd7df9ebe9dda7bab8 | d723860324e3d914a0a44bac14dd83eceefc96fe | refs/heads/master | 2020-09-14T22:43:17.884212 | 2019-07-03T13:48:50 | 2019-07-03T13:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,555 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Enterprise Management Solution
# GRP Estado Uruguay
# Copyright (C) 2017 Quanam (ATEL SA., Uruguay)
#
# This program is free software: you can redistribute it and/or modify
# it... | [
"lcontreras@sofis.com.uy"
] | lcontreras@sofis.com.uy |
cf72b166ab3a1fcf4523e0f20acf976d34f5e402 | ab8187626aa68c1f92301db78e9f8b0c4b088554 | /TwoPointer/75_h.py | a8a07b4bde84c80b9ccb625d2074edf0ebb7ed68 | [] | no_license | khj68/algorithm | 2818f87671019f9f2305ec761fd226e737f12025 | efebe142b9b52e966e0436be3b87fb32b4f7ea32 | refs/heads/master | 2023-04-25T02:33:13.403943 | 2021-05-04T03:09:38 | 2021-05-04T03:09:38 | 287,733,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 737 | py | class Solution:
def sortColors(self, nums: List[int]) -> None:
"""
Do not return anything, modify nums in-place instead.
"""
zeroP, twoP = 0, len(nums)-1
i = 0
while i <= twoP:
try:
while nums[zeroP] == 0: zeroP += 1
while n... | [
"maga40@naver.com"
] | maga40@naver.com |
51b14fca6562f512f53b9bd7533a151120bba916 | 128090f08a541eaf52a39bd811147e16fbcd2ef5 | /certificate/hooks.py | 9fd93618a5e0d2acdf2aa4969765c66f2e5bb01a | [
"MIT"
] | permissive | hrgadeha/certificate | e92d420773d2bdfafa641fb1239a38f21db54ee4 | b742679f0002f63a6afd4950b9f20903f9c8dc4b | refs/heads/master | 2020-03-31T12:59:00.530854 | 2018-10-23T07:13:23 | 2018-10-23T07:13:23 | 152,236,987 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,849 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from . import __version__ as app_version
app_name = "certificate"
app_title = "Certificate"
app_publisher = "Hardik Gadesha"
app_description = "Custom Certificate for Employee and Company"
app_icon = "octicon octicon-file-directory"
app_color = "grey"
app... | [
"you@example.com"
] | you@example.com |
cf52e79ed7afa2539ea55264e23fcd537bac3203 | 5ff50855146d8519457903fecebaf6f9f534b6ed | /gtamp_problem_environments/mover_environment_definition.py | c4cc0d8ff00ecfebb7c48333e1bb2a8678372d3a | [] | no_license | lukeshimanuki/guiding_gtamp_light | 9bc5f3a2b97d2bb16f3d47b5bc4b1280fc591d6f | 651061a400aca998b3a3a85ea8030b2c5432552a | refs/heads/master | 2023-01-13T05:52:57.170550 | 2020-07-01T01:07:33 | 2020-07-01T01:07:33 | 256,593,351 | 0 | 0 | null | 2020-04-17T19:37:04 | 2020-04-17T19:37:03 | null | UTF-8 | Python | false | false | 25,645 | py | import sys
# from manipulation.constants import PARALLEL_LEFT_ARM, REST_LEFT_ARM, HOLDING_LEFT_ARM, FOLDED_LEFT_ARM, \
# FAR_HOLDING_LEFT_ARM, LOWER_TOP_HOLDING_LEFT_ARM, REGION_Z_OFFSET
from gtamp_utils.utils import *
from gtamp_utils import utils
from manipulation.bodies.bodies import place_body, place_body_on_f... | [
"beomjoon@mit.edu"
] | beomjoon@mit.edu |
e69e9f01a37105c49a7d07b7d0f7bf4f565436b7 | 8e3a02a5e104a14a1aa3ba3ba0f05596a9f73757 | /examples/test_gevent.py | 4789c8a0d20458c547189e187018ec4dcc5f1168 | [
"MIT"
] | permissive | jengdal/restkit | 9f114f0f7ded7217cb0c9d405dd1af469c9a918a | e32ff0c3d72415c998353644313bbc02805faa6c | refs/heads/master | 2021-01-18T06:02:55.463294 | 2012-07-19T10:39:32 | 2012-07-19T10:39:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 785 | py | import timeit
from gevent import monkey; monkey.patch_all()
import gevent
from restkit import *
from restkit.conn import Connection
from socketpool import ConnectionPool
#set_logging("debug")
pool = ConnectionPool(factory=Connection, backend="gevent")
urls = [
"http://yahoo.fr",
"http://google.com"... | [
"bchesneau@gmail.com"
] | bchesneau@gmail.com |
80b5d59d19dcfbe334c10f0bf90f3ced0118346d | 1804187f39dd6004250933b35ba9ce24297f32a5 | /practice_8_13.py | a00c9a29c89dc4a2064682f2e727369ac0a1010a | [] | no_license | xiaomengxiangjia/Python | ecd2e3e8576364f15482669cb75b52b8790543f5 | 7f52a33d7956068d26347cf34d35c953b945a635 | refs/heads/master | 2020-03-20T23:01:09.981928 | 2018-08-23T09:04:53 | 2018-08-27T05:46:38 | 137,825,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | def build_profile(first, last, **user_info):
profile = {}
profile['first_name'] = first
profile['last_name'] = last
for key, value in user_info.items():
profile[key] = value
return profile
user_profile = build_profile('benjiming','frankling',
location = 'chengdu',
filed = 'compu... | [
"645334483@qq.com"
] | 645334483@qq.com |
1b7d543aa7cbb7b19a285e7d31a77ff3a6c069a8 | dbfc8ca4dbdef6002b0738dd4c30d569eb9e36c3 | /test/metadata/inbound/plugins/test_plugins_1000_0006_srtm.py | 2d729241c31eb65866a3e9474c3784cc474aaa64 | [] | no_license | GISdeveloper2017/imetadata | da32e35215cc024a2e5d244ee8afc375c296550d | 58516401a054ff0d25bfb244810a37838c4c8cf6 | refs/heads/master | 2023-03-26T06:38:28.721553 | 2021-03-06T09:32:06 | 2021-03-06T09:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | # -*- coding: utf-8 -*-
# @Time : 2020/12/4 09:05
# @Author : 王西亚
# @File : test_plugins_aaa.py
import allure
import pytest
import settings
from imetadata.base.c_file import CFile
from imetadata.base.c_utils import CUtils
from imetadata.business.metadata.base.fileinfo.c_dmFilePathInfoEx import CDMFilePathInfoEx
from i... | [
"18437918096@163.COM"
] | 18437918096@163.COM |
7b795505b76f7218da50a6a9bf53221773d8cfae | 4738be4be8cda375e33ef606dbe82998d6e60bef | /common_nlp/word_histogram_comparison.py | 9cb68293cb5cf094917ad90f252498d2c754186e | [
"MIT"
] | permissive | Arieugon/Pesquisas | 39723d6ee642d50708f4a883b8d13faf5d018c3c | 87e3923c571d44774c36d4bc54e444cb1003b43b | refs/heads/master | 2023-01-21T10:23:53.645736 | 2020-12-02T19:23:48 | 2020-12-02T19:23:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | from scipy.spatial import distance as dist
try:
from textNormalization import textNormalization
except:
from common_nlp.textNormalization import textNormalization
import numpy as np
class word_histogram_comparison():
def __init__(self):
self.scipy_methods = {
"Euclidean" : dist.euclidean,
"Manhattan" : dist.c... | [
"danilopcarlotti@gmail.com"
] | danilopcarlotti@gmail.com |
72565b8fc05ad482fa524703a4d1c515750710d6 | b66bf5a58584b45c76b9d0c5bf828a3400ecbe04 | /week-03/day-1/hello_dictionary.py | 4019dd86864bc5aa97b59c9b4cbf5f586bf557d3 | [] | no_license | greenfox-velox/szepnapot | 1196dcb4be297f12af7953221c27cd1a5924cfaa | 41c3825b920b25e20b3691a1680da7c10820a718 | refs/heads/master | 2020-12-21T08:11:41.252889 | 2016-08-13T10:07:15 | 2016-08-13T10:07:15 | 58,042,932 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import requests
import re
from bs4 import BeautifulSoup
r = requests.get('http://pocketcultures.com/2008/10/30/say-hello-in-20-languages/')
raw_html = r.text
soup = BeautifulSoup(raw_html, 'html.parser')
strongs = soup("strong")
GREETINGS = {}
hellos = r'\d+\.\s([A-Z]+\s?[A-Z]+.).?'
language = r'\d+.+\–\s([A-Za-z\... | [
"silentpocok@gmail.com"
] | silentpocok@gmail.com |
97070ee6a3ede702c56f5d8433c185084a2ec962 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2321.py | cef4f2742fcb1a85496d41097792834162b31ccd | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | from heapq import *
t = int(input()) # read a line with a single integer
for i in range(1, t + 1):
N, people = [int(s) for s in input().split(" ")]
h = []
heappush(h, 0)
while people:
people -= 1
biggestSpace = N - heappop(h)
if biggestSpace % 2 == 1:
if people == 0:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
d924bb3f2ebc12d7519019fe62a01ce3fb6635e0 | dac960516a8b99ec7f0727282c4a9f1e58dcaa22 | /python/samples/v1_x/list_performance_report.py | cc73d135bcc413e5a63cb99be4fec1ea3518e208 | [
"Apache-2.0"
] | permissive | Baldri/googleads-adxbuyer-examples | 948da55e981cb85bfda1e4027beb482f29d1d87a | 285469fe1fff28416d0477c22e59746525694988 | refs/heads/master | 2023-02-22T18:50:29.166146 | 2020-04-17T20:52:22 | 2020-04-17T20:52:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,479 | py | #!/usr/bin/python
#
# Copyright 2016 Google Inc. 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 b... | [
"msaniscalchi@users.noreply.github.com"
] | msaniscalchi@users.noreply.github.com |
63cccd1521fb66bffc03c4ee7187a82d5af2de60 | 4c10305652193f7b1df8af4dfe28742910f07fcf | /hw/ip/otbn/util/rig/snippet_gen.py | 50d736d4072bbf9555a1219d46d06987be6eb924 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jake-ke/opentitan | fc162fd3ec2dc3dff7cec6745379ea5aa3d7a5e0 | a7b16226ce13752896a71399910e39c7a5bda88a | refs/heads/master | 2023-07-05T12:38:49.186899 | 2021-01-21T22:38:13 | 2021-01-22T02:16:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,802 | py | # Copyright lowRISC contributors.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
'''A module defining a base class for a snippet generator.
The generators in the ./gens/ subdirectory all derive from this class. To
actually generate some snippets, use t... | [
"rswarbrick@gmail.com"
] | rswarbrick@gmail.com |
4860167b800f06c9498077979e99c03567633e94 | 9737a5e2cfe5521bb9731a356a7639d0dc3692de | /Exercises/week_2_netmiko/exercise6d.py | 88af3c6a3aa08b2bb55ebe967bd9c0ba844d1c91 | [] | no_license | akushnirubc/pyneta | 5c53cbcf42e2450ce6a2d7e6591d671661e84ba0 | ee68205c0b91974ea1cd79b8c06c36ae083fb02c | refs/heads/main | 2023-06-18T18:02:56.242732 | 2021-07-13T21:43:51 | 2021-07-13T21:43:51 | 358,647,513 | 0 | 0 | null | 2021-05-24T21:39:18 | 2021-04-16T15:45:34 | JavaScript | UTF-8 | Python | false | false | 1,272 | py | # Using SSH and netmiko connect to the Cisco4 router. In your device definition, specify both an 'secret' and a 'session_log'. Your device definition should look as follows:
# password = getpass()
# device = {
# "host": "cisco4.lasthop.io",
# "username": "pyclass",
# "password": password,
# "secret": ... | [
"alex.kushnir@ubc.ca"
] | alex.kushnir@ubc.ca |
40355038bf589f532800b1282ca963ededb8e481 | bf0c13d412a7021b299c5e0622e63e72172cf725 | /week1/Hackerrank/easy/finding_percentage.py | 559579e9933496e2810d3b9115a6d038eedc180f | [] | no_license | Alibek120699/BFDjango | 765e734e925041947f607a1d15228309dfa3e647 | eac06c317551c561ffccb44750862972ae11dea3 | refs/heads/master | 2022-12-01T15:49:39.402815 | 2020-04-19T21:09:39 | 2020-04-19T21:09:39 | 233,657,360 | 0 | 0 | null | 2022-11-22T05:49:56 | 2020-01-13T17:50:13 | Python | UTF-8 | Python | false | false | 377 | py | if __name__ == '__main__':
n = int(input())
student_marks = {}
for _ in range(n):
name, *line = input().split()
scores = list(map(float, line))
student_marks[name] = scores
query_name = input()
marks = student_marks[query_name]
total = 0
for i in marks:
total ... | [
"sayakalibek1@gmail.com"
] | sayakalibek1@gmail.com |
4a95586f5e04b017913bbc56e25ca916b195e870 | 9322c270beaf1019328bf14c836d167145d45946 | /raoteh/sampler/_sample_mjp.py | fdab6bbbe2bc9dda67fb576bd4a2b27627ccec95 | [] | no_license | argriffing/raoteh | 13d198665a7a3968aad8d41ddad12c08d36d57b4 | cdc9cce8fdad0a79dbd90dfcdec6feece8fc931f | refs/heads/master | 2021-01-22T19:41:25.828133 | 2014-03-10T22:25:48 | 2014-03-10T22:25:48 | 10,087,018 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,172 | py | """
Rao-Teh samples of MJP trajectories on trees.
"""
from __future__ import division, print_function, absolute_import
import numpy as np
import networkx as nx
from raoteh.sampler import _util, _mjp
__all__ = []
#TODO move more stuff from _sampler.py into this module
def resample_poisson(T, state_to_rate, root... | [
"argriffi@ncsu.edu"
] | argriffi@ncsu.edu |
d214dc2ec55b92f64a7b41190073cca7608a26c1 | d9a22d4dcdfc0c28176c0e8afd784b30d275597e | /multi/result_commands.py | 714185c8a5cd3ed163af2c3f3d34ece8aa591eaa | [] | no_license | jlec/relax | fda1b3ff77be0afc21c2e6cc52348ae7635cd07a | c317326ddeacd1a1c608128769676899daeae531 | refs/heads/master | 2016-09-08T00:27:57.256090 | 2015-02-10T12:24:55 | 2015-02-10T12:24:55 | 30,596,131 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,870 | py | ###############################################################################
# #
# Copyright (C) 2007 Gary S Thompson (https://gna.org/users/varioustoxins) #
# Copyright (C) 2008-2013 Edward d'Auvergne #
... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
e8bcf51f6b4bea52914dcb421fdbe9d4c297c1e5 | 10b3d1ce02eaa4908dc16ca378ddfb1955b2d625 | /MV3D_TF_release/tests/private/test_save_pretrained_params_from_npy.py | eb62bf9b4a8afd458e9a0bb684262a62725bed00 | [
"MIT",
"BSD-3-Clause"
] | permissive | ZiningWang/Sparse_Pooling | 7281aa0d974849eac8c48faa5ba08519b091ef6e | f46882832d0e2fed5ab4a0af15cead44fd3c6faa | refs/heads/master | 2023-05-26T08:47:16.232822 | 2023-05-20T08:39:11 | 2023-05-20T08:39:11 | 141,640,800 | 56 | 21 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | #This is for transforming the .npy file saved in python2 to python3
import numpy as np
import os
import scipy.io
params = np.load('mscnn_ped_cyc_kitti_trainval_2nd_iter_15000.npy').item()
#make matlab file
scipy.io.savemat('mscnn_ped_cyc_kitti_trainval_2nd_iter_15000.mat',params)
''' #make txt files(failed)
os.mkdir(... | [
"kiwoo.shin@berkeley.edu"
] | kiwoo.shin@berkeley.edu |
2dd1609af2025fa93e9fc6653d6d33aeb97f9b19 | 493431b109586bc199c0094bb6952b359c30777a | /t/step/test_header_step.py | 22289673b733113ef07729325bf5baffc937a5ad | [] | no_license | phonybone/Rnaseq | 3ec92ba79c6772ffb5ac146ee98dad87663f17e7 | c12d5380db2e36f24b6e5cb84c55a984efdd9cd7 | refs/heads/master | 2020-05-31T21:19:40.175543 | 2011-10-06T00:01:49 | 2011-10-06T00:01:49 | 1,409,030 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,833 | py | import unittest, os, sys, re
dir=os.path.normpath(os.path.dirname(os.path.abspath(__file__))+"/../..")
sys.path.append(os.path.join(dir+'/lib'))
sys.path.append(os.path.join(dir+'/ext_libs'))
from Rnaseq import *
from RnaseqGlobals import *
from warn import *
class TestHeaderStep(unittest.TestCase):
def setUp(... | [
"vcassen@bento.systemsbiology.net"
] | vcassen@bento.systemsbiology.net |
d2239c158fa3aa78bbd5bf3e8a5cb23e8b68c2fc | bfe394e1b7d8a2ff34e37ae65df8cc52070c69d8 | /Source/External/TrainUtility/Source/TrainProcess_FileControl.py | 421e6bb0c5f2eb8f3175960b7bb6fcbe8f89070f | [
"MIT"
] | permissive | Jack-GVDL/PredictModel | bb32d37a5c18a656d5ebed36098ba3fac435fb96 | 20495072fb776c31c4bb5f2ddeecda1b43fcc52e | refs/heads/main | 2023-04-30T05:47:34.364328 | 2021-05-11T09:25:13 | 2021-05-11T09:25:13 | 366,314,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,936 | py | import os
from typing import *
from .TrainProcess import TrainProcess
from .ModelInfo import ModelInfo
from .FileControl import FileControl_Local
class TrainProcess_FileControlBuilder(TrainProcess):
def __init__(self):
super().__init__()
# data
self.name = "FileControlBuilder"
self.path_base: str = ""... | [
"33114105+Jack-GVDL@users.noreply.github.com"
] | 33114105+Jack-GVDL@users.noreply.github.com |
08b3a3fbc165a4633691df1cd0579378c3fa8569 | a62fe37f8d633cbeb75d8cf2487f24e2bb0c13ce | /test/1.1.0/08/EndnoteObjectTest08.py | 73e2862f293a89600750726f5cfc582610fa3a47 | [
"Apache-2.0"
] | permissive | monperrus/cff-converter-python | ddf4e28329c48b0d3db4709de8765dfbfc94ad0b | b7b789a80415c6020e864782b601f21188a149f4 | refs/heads/master | 2020-11-27T10:40:11.447633 | 2019-12-19T15:58:01 | 2019-12-19T15:58:01 | 229,408,045 | 0 | 0 | Apache-2.0 | 2019-12-21T09:54:20 | 2019-12-21T09:54:19 | null | UTF-8 | Python | false | false | 1,468 | py | from cffconvert import EndnoteObject
import unittest
import os
import ruamel.yaml as yaml
class EndnoteObjectTest(unittest.TestCase):
def setUp(self):
fixture = os.path.join(os.path.dirname(__file__), "CITATION.cff")
with open(fixture, "r") as f:
cffstr = f.read()
cff_obje... | [
"j.spaaks@esciencecenter.nl"
] | j.spaaks@esciencecenter.nl |
e4be9d7b105b0171b203f3ab0a681d4997565d9d | c104dbd09a853725cb4f4b17df7c5dd59d47e04e | /opsgenie_swagger/models/jira_integration.py | 185f6418b77a71dfbe695e25f05cecc5a04a542c | [
"Apache-2.0"
] | permissive | bm-lab/opsgenie-python-sdk | 5a64e2c24f1b9168ecadf482ba8084ba27a659fc | 244c4c40ddcc25e70df5ba4425ab8d7c8da59c18 | refs/heads/master | 2021-10-09T03:18:48.101672 | 2018-12-15T01:03:36 | 2018-12-20T15:13:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,355 | py | # coding: utf-8
"""
OpsGenie REST API
OpsGenie OpenAPI Specification # noqa: E501
OpenAPI spec version: 2.0.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
from opsgenie_swagger.models.action_mapping import ActionMappin... | [
"c.chary@criteo.com"
] | c.chary@criteo.com |
b30391250e931a835456f54fed3840720a37cb94 | ba0a2b0d2d1534443ea34320675aadfa378457b6 | /Tree/Q776_Split BST.py | cec5e5a356eff9e2668e7a6734676b4d15d9afdc | [] | no_license | Luolingwei/LeetCode | 73abd58af116f3ec59fd6c76f662beb2a413586c | 79d4824879d0faed117eee9d99615cd478432a14 | refs/heads/master | 2021-08-08T17:45:19.215454 | 2021-06-17T17:03:15 | 2021-06-17T17:03:15 | 152,186,910 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 705 | py |
# 思路: 分成大于和小于等于v的两部分, 并且保持结构, recursive解决
# 如果v大于等于root.val, 那么左边和root都是小于等于v, split右边, 把low的部分放到root.right, 返回root和high
# 如果v小于root.val, 那么右边和root都是大于v, split左边, 把high的部分放到root.left, 返回low和root
class Solution:
def splitBST(self, root, V: int):
if not root:
return None,None
if root.va... | [
"564258080@qq.com"
] | 564258080@qq.com |
289900379592aeb4d1dacc726059621149bf2852 | c1d5c1285793660982813fd49dfb48620bc95b36 | /linode/commands/urls.py | d058c2eaa689673fe8a916325b5892033662ece2 | [
"MIT"
] | permissive | anvetsu/pylinode | 8e74330a8ae5f789cd9c4512efdc9f20aada61b9 | 3b15a153fa0528df203c0013949827ff836759f5 | refs/heads/master | 2020-04-06T14:05:39.106008 | 2018-11-14T10:06:43 | 2018-11-14T10:06:43 | 157,527,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | # -*- coding: utf-8 -*-
# Linode api urls
LINODE_CREATE = '&api_action=linode.create'
LINODE_CLONE = '&api_action=linode.clone'
LINODE_BOOT = '&api_action=linode.boot'
LINODE_LIST = '&api_action=linode.list'
LINODE_DISK_CREATE = '&api_action=linode.disk.create'
LINODE_DISK_FROM_IMAGE = '&api_action=linode.disk.create... | [
"anandpillai@letterboxes.org"
] | anandpillai@letterboxes.org |
c078b540b83093a2a0ddc11c89fb99872a7affe4 | 8db5b1d27f27d6440e6bfaebf661678f8ce016e3 | /strings/demo_string_octal.py | 8b23bdf068b3489345595bff360f3702607f5f5f | [] | no_license | rasul-sharifzade/LearnPython | 9f9f860550667117354354f4f7fee082da16dc7e | ac68c208d50a1e11cfd0ab52ae00d6baea596ce9 | refs/heads/master | 2020-12-27T06:42:38.603190 | 2020-06-28T09:01:19 | 2020-06-28T09:01:19 | 237,800,042 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | txt = "\110\145\154\154\157"
print(txt) | [
"rasul.sharifzade@gmail.com"
] | rasul.sharifzade@gmail.com |
0c172bfb2db2013120d8d28c36187938f0d125b1 | afbae53ad471e34eb9918f28cc2e27e1ade6fe93 | /vivo_public_modules/spiders/item_padding_spider.py | 4a418287c83ef08a9839f1c20550b6cb9809452d | [] | no_license | wangsanshi123/spiders | 5436431feec8d9591b1b533c7c6da261142403bd | 1b42878b694fabc65a02228662ffdf819e5dcc71 | refs/heads/master | 2020-03-19T13:49:31.161232 | 2018-06-08T09:24:10 | 2018-06-08T09:24:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,472 | py | # -*- coding: utf-8 -*-
'''
作者: 郑阔
日期: 2018.04.17
版本: 1.0
出于数据库的要求需要,我们每条记录都需要填充或者计算一些字段
需要填充的有: website_id, website_type, crawl_time等
需要计算的有: model_id, user_id, content_id, refer_id等
由于这是所有爬虫都会涉及的操作,我这里写一个爬虫基类完成完成这个操作
'''
import hashlib
import datetime
import inspect
from scrapy import Item
from scrapy import Spider
... | [
"118319592@qq.com"
] | 118319592@qq.com |
2b242c84ce23da01b9930b418607811c97947727 | 2bb607a8b92cc4014d9e3e4368019a20442fd6ac | /TestRunner.py | 05a21e6e452422bb9d4f6b6da7240b9b68e9a135 | [] | no_license | 164461130/selenium-UI-Python- | 55c47d4dddf2181fb96afcb36d378428fa50681d | 2bf7e65558c825ffd0aef541a14107de27b3de10 | refs/heads/master | 2020-04-14T11:24:20.932244 | 2018-12-12T10:05:50 | 2018-12-12T10:05:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | # -*- encoding: utf-8 -*-
# @Time : 2017/12/25 14:31
# @Author : mike.liu
# @File : TestRunner.py
import unittest
from testcase.test_chromeTest import BrowserTest
if __name__=='__main__':
suite = unittest.TestSuite()
suite.addTest(test_firefox('test_chrome'))
suite.addTest(BrowserTest('test_firef... | [
"mike.liu@jinfuzi.com"
] | mike.liu@jinfuzi.com |
7db5a055b747a9055b13854037975cec49b0449a | 960dd60c263cea329e27584b03bb430b025fe05a | /venv/bin/gunicorn | f81ebcc4a2bdfc6d083fcd3c5c9594788335a80b | [] | no_license | RuchiBhardwaj/covid_pipeline | 18b3c0ae5836487b150ad112d86e312544d19f9d | f21a98593383caed532b9e7178e70172984cd635 | refs/heads/master | 2022-12-04T09:02:47.076901 | 2020-06-08T14:12:18 | 2020-06-08T14:12:18 | 268,835,744 | 0 | 2 | null | 2022-11-27T19:32:17 | 2020-06-02T15:17:20 | Python | UTF-8 | Python | false | false | 267 | #!/home/nineleaps/PycharmProjects/COVID19_Airflow/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"ruchi.bhardwaj@nineleaps.com"
] | ruchi.bhardwaj@nineleaps.com | |
da7b85fc67c7bfadaab88cc1238a1038576a4cad | bdda06ffbbd49c63a84fbc3bb26a55842d2b2d0a | /mysite/settings.py | 8de5512eefee0dd550c30e69c67f04291c4e0276 | [] | no_license | todqabb/my-first-blog | f820bef4321e06b20fa1e91dc9c9c5d0aaa7cd82 | 67b4dd4b442094ba372e5e2d36fff005159850f7 | refs/heads/master | 2021-01-20T05:22:08.840767 | 2017-08-25T20:22:16 | 2017-08-25T20:22:16 | 101,439,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,200 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"you@example.com"
] | you@example.com |
1117dbbdc89478fcc9b3f3855a551f66657818bc | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/30/usersdata/73/9601/submittedfiles/atividade.py | ac54c0c02c33500bfc7f846ac89beb1e400e1c04 | [] | 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 | 198 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
n = input ('digite o valor de n:')
soma = 0
for i in range (1,n+1,1):
a = i/(n+1-i)
soma = soma + a
print ('%.5f' %soma )
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b025942a885c51b7cba68983e10da3229b4c6dd2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03474/s139736591.py | 35fd766d01c43ff1779773d47e9f0d978ed03fe3 | [] | 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 | 305 | py | a,b = map(int,input().split())
s = list(input())
cnt = 0
num = list("0123456789")
for i in range(a):
if s[i] in num:
cnt += 1
if s[a] == "-":
cnt += 1
for i in range(b):
if s[i+a+1] in num:
cnt += 1
if cnt == a+b+1:
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
8d3edda1cc082f4a48eafa8db8ef84b771cd96ae | c73b9c944deb7d0c564dcefc3fe30fbf0f69e47d | /pipeline/pipeline/backend.py | 5a51e23c0d2fbe7572724f72d786690d3045cecf | [
"MIT"
] | permissive | atgenomix/hail | 46e3edcea33a86184462f6ef0f354ea0239cd0dc | ceb85fc87544b5dceabe64213e3c5acaaae6a05e | refs/heads/master | 2021-06-19T07:48:42.503150 | 2019-02-22T04:09:30 | 2019-02-22T04:09:30 | 171,826,476 | 1 | 0 | MIT | 2019-02-21T07:57:38 | 2019-02-21T07:57:37 | null | UTF-8 | Python | false | false | 2,906 | py | import abc
import os
import subprocess as sp
from .resource import Resource, ResourceGroup
from .utils import get_sha, escape_string
class Backend:
@abc.abstractmethod
def tmp_dir(self):
return
@abc.abstractmethod
def run(self, pipeline, dry_run, verbose, bg, delete_on_exit):
return
... | [
"daniel.zidan.king@gmail.com"
] | daniel.zidan.king@gmail.com |
19fadc6bd0dcb196c68d7e3ac27319302057be8f | e349a8dba0356f9ba252df905f563944750d989a | /scripts/flix.py | ea8aa9f3358bb44e41dedfe2f0bbe0bfb1387917 | [
"MIT"
] | permissive | jaebradley/flix | 49ebe12ae0b53c8c004d403d424478997085e397 | adc02c2f08d01e1acd6f18065be70a8c87e71e55 | refs/heads/master | 2022-12-12T20:15:18.697554 | 2017-06-13T12:38:17 | 2017-06-13T12:38:17 | 93,294,294 | 1 | 0 | MIT | 2022-12-07T23:58:05 | 2017-06-04T06:17:12 | Python | UTF-8 | Python | false | false | 1,547 | py | import click
from data.exceptions import InvalidDateException
from data.time import get_date
from data.services import fetch_parsed_theater_data
from tables.builders import build_table
MONTH_CHOICES = [
"jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec",
"1", "2", "3", "4", "5"... | [
"jae.b.bradley@gmail.com"
] | jae.b.bradley@gmail.com |
2bb2717658bda0e645599dbf83db02d5fce1ebde | 3c934c97bd5748237ac8963c8be779a7d77be629 | /maximumConsecOne.py | 7c8085c860f9b9639124b62b613e6cbd31879ac1 | [] | no_license | Franktian/leetcode | 2b0d0280d18e3401b9f337f027c5d70f26237f02 | 98e7852ba144cefbdb02f705651b1519155ee4d6 | refs/heads/master | 2021-06-12T15:23:09.733650 | 2020-06-17T23:09:18 | 2020-06-17T23:09:18 | 128,710,359 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 295 | py | def findMaxConsecutiveOnes(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
res = 0
curr = 0
for n in nums:
if n == 1:
curr += 1
else:
curr = 0
if curr >= res:
res = curr
return res
| [
"tianyawen201209@hotmail.com"
] | tianyawen201209@hotmail.com |
2b0c2dda599c2b9101d263bb3608cffc7638a3e8 | 757e3de38040878588bfcc846ec87a34740313a3 | /cap_07_iteracao/Lista_Fábio_03_em_for/fabio_iteracao_Q05_fatorial.py | a7ef9b3b83716cd9d39aef8b5d30c39c52b8871b | [] | no_license | Emanuelvss13/ifpi-ads-algoritimos2020 | c0a4a76ce3c41ae945f1ba31719eb68a539a9c9c | ac693feb1eee67f7c816b2ed34d44f3fd939653d | refs/heads/master | 2021-03-06T05:32:37.040171 | 2021-02-03T23:46:24 | 2021-02-03T23:46:24 | 246,182,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | def main():
numero = int(input('Digite um número: '))
fatorial = 1
numero_print =numero
for i in range(numero):
fatorial = fatorial * numero
numero -= 1
print(f'O fatorial de {numero_print} é : {fatorial}')
main() | [
"noreply@github.com"
] | Emanuelvss13.noreply@github.com |
95c86090162ab6cb8421e44e90c343841b3f6fc5 | dea198896f679e577a3fd0923e3fa4470da4b9cc | /journal/pyfakefs_mutants/AOR_BinOp_mutant_1507055069.py | eaf2e0c6399a4965c761b6dcf23493c50a49d7be | [] | no_license | naustarg/cbmcmutate | f138ab2b04b4be70d735de90815ac670ae6042ce | a6ee6fd395338bb2dfd6bdffabb2dc484cb303f1 | refs/heads/master | 2020-04-04T08:10:15.913309 | 2018-05-21T18:23:58 | 2018-05-21T18:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219,331 | py | # line: 91
'A fake filesystem implementation for unit testing.\n\n:Includes:\n * FakeFile: Provides the appearance of a real file.\n * FakeDirectory: Provides the appearance of a real directory.\n * FakeFilesystem: Provides the appearance of a real directory hierarchy.\n * FakeOsModule: Uses FakeFilesystem to pr... | [
"agroce@gmail.com"
] | agroce@gmail.com |
2354e68f86530ec792a0467d7921cdedfcf18ffe | ddb8c14775dfbe9424691dabf1617273d118d317 | /catkin_ws/build/rosbag_to_csv/catkin_generated/generate_cached_setup.py | 75342eae56288eb9bc45fb5511687fd8d0f16df0 | [] | no_license | rishabhdevyadav/fastplanneroctomap | e8458aeb1f2d3b126d27dc57011c87ae4567687a | de9d7e49cb1004f3b01b7269dd398cf264ed92b4 | refs/heads/main | 2023-05-12T22:12:27.865900 | 2021-05-26T19:25:31 | 2021-05-26T19:25:31 | 356,674,577 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,329 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import os
import stat
import sys
# find the import for catkin's python package - either from source space or from an installed underlay
if os.path.exists(os.path.join('/opt/ros/melodic/share/catkin/cmake', 'catkinConfig.cmake.in')):
sys.path.insert(0, ... | [
"rishabhdevyadav95@gmail.com"
] | rishabhdevyadav95@gmail.com |
8c42e5185cd19ce89eb94c84bb3c322b1804aa6a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_histories.py | 17f1b20f237ac5840ec05fd67dc1b6cdf2391ec7 | [
"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 | 228 | py |
#calss header
class _HISTORIES():
def __init__(self,):
self.name = "HISTORIES"
self.definitions = history
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['history']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
cced9e47a43e84015736e4fd09d4ccfba0f30baf | fc5734ad9b0dc154b3a36ec2f5d848b3d693473f | /solutions/Hash Tables/dot_product_of_two_sparse_vectors.py | 896d3a57d9ce44a518484cdc2456a6631b02371e | [
"MIT"
] | permissive | aimdarx/data-structures-and-algorithms | 8e51ec2144b6e0c413bc7ef0c46aba749fd70a99 | 1659887b843c5d20ee84a24df152fb4f763db757 | refs/heads/master | 2023-08-28T12:00:33.073788 | 2021-11-07T08:31:28 | 2021-11-07T08:31:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,652 | py | """
Dot Product of Two Sparse Vectors:
Given two sparse vectors, compute their dot product.
Implement class SparseVector:
SparseVector(nums) Initializes the object with the vector nums
dotProduct(vec) Compute the dot product between the instance of SparseVector and vec
A sparse vector is a vector that has mostly zero... | [
"noreply@github.com"
] | aimdarx.noreply@github.com |
e485686f7b3e2f193e4c57591b0c968748577699 | a6e4a6f0a73d24a6ba957277899adbd9b84bd594 | /sdk/python/pulumi_azure_native/portal/v20181001/get_console.py | ddcd939b6a17147c3b434fa54036381df2a55ba9 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | MisinformedDNA/pulumi-azure-native | 9cbd75306e9c8f92abc25be3f73c113cb93865e9 | de974fd984f7e98649951dbe80b4fc0603d03356 | refs/heads/master | 2023-03-24T22:02:03.842935 | 2021-03-08T21:16:19 | 2021-03-08T21:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"noreply@github.com"
] | MisinformedDNA.noreply@github.com |
3dea403c0921ac41742d895248e227a4874a3559 | 706c38c11c2fc64ab9b4a2f66b510ca9f4fa24b9 | /CSCEfficiency/NtupleAnzScripts/Step2_PlotAll_pallete.py~ | c6b0b11ca4c6ca0ec8b4650a040093616f5c678a | [] | no_license | stremreich/CSCefficiency | dd1e428cba0200cb66b1623ae4e6b9effaa205cf | 4d071e4ceec1c2084670f1af049156c338434a98 | refs/heads/master | 2020-03-25T15:11:15.366403 | 2020-02-03T17:55:59 | 2020-02-03T17:55:59 | 143,870,046 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 18,218 | #!/usr/bin/python
#Author: Jinzhong Zhang(zhangjin@cern.ch), Northeastern University, Boston, U.S.A
#################################################################################
#Advanced Usage:
#python Step2_PlotAll.py arg1 arg2
# arg1 is directory of the files given by the TagandProbe cmssw package. The file na... | [
"senka.duric@cern.ch"
] | senka.duric@cern.ch | |
5d4d84f517359cc086882223987fee6ac455939a | cb9f44cccdf7cd9b4dec59f18246825364fc6533 | /qmctorch/wavefunction/slater_combined_jastrow_backflow.py | 023ea2861cbc8d430bcc4d0a704f19d39aed7699 | [
"Apache-2.0"
] | permissive | NLESC-JCER/QMCTorch | 83747e0ee41ed74be1ced4d8e9b9897dfcc1bd6a | 439a79e97ee63057e3032d28a1a5ebafd2d5b5e4 | refs/heads/master | 2023-05-25T05:22:06.690810 | 2023-05-13T10:10:13 | 2023-05-13T10:10:13 | 255,629,819 | 22 | 3 | Apache-2.0 | 2023-08-29T19:27:15 | 2020-04-14T14:18:24 | Python | UTF-8 | Python | false | false | 11,173 | py |
import numpy as np
import torch
from .slater_jastrow import SlaterJastrow
import operator
from .jastrows.elec_elec.kernels.pade_jastrow_kernel import PadeJastrowKernel as PadeJastrowKernelElecElec
from .jastrows.jastrow_factor_combined_terms import JastrowFactorCombinedTerms
from .jastrows.elec_nuclei.kernels.pade_... | [
"nicolas.gm.renaud@gmail.com"
] | nicolas.gm.renaud@gmail.com |
0b8906daed72ba0039fe0761e437da2e6a1ea053 | 312fe86a9540b7bfabcaadd5f20ba107755b195b | /playbooks/monitoring/kibana/docs_compare.py | f421ce5d3d53e5c2befc2e6f379b42c935ca6489 | [
"Apache-2.0"
] | permissive | isabella232/elastic-stack-testing | fa623cce484ecf870c5e90da6b401b3f4c2ce296 | 1526ab4b4ca187dc5f0eb81be2fed058fc556082 | refs/heads/master | 2023-01-05T13:26:22.430049 | 2020-11-09T18:19:44 | 2020-11-09T18:19:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,709 | py | '''
Usage:
python docs_compare.py /path/to/legacy/docs /path/to/metricbeat/docs
'''
from docs_compare_util import check_parity
import sys
allowed_deletions_from_metricbeat_docs_extra = [
# 'path.to.field'
'kibana_stats.response_times.max',
'kibana_stats.response_times.average'
]
unused_kibana_usage_propertie... | [
"noreply@github.com"
] | isabella232.noreply@github.com |
d0f72f2c74e04492606256a0d23728e050e02a0e | 7a91286a3636ad9606d5933619401cc45bee1b10 | /lib/banking/balance.py | db0904c2b45181d536718a1e76a3f25b00e70e80 | [] | no_license | phriscage/banking_application | d063bbb24c3e1061c2110c1aace1d67ae53e70cc | cc120437213a25e1864db14509c6d143b65d8102 | refs/heads/master | 2019-01-02T04:00:30.034945 | 2015-01-31T03:50:42 | 2015-01-31T03:50:42 | 30,099,098 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | """
balance class
"""
class Balance(object):
""" the balance class includes the balance operations """
def __init__(self):
""" instantiate the class """
self.total = 0
def add(self, value):
""" add value to the total
Args:
value (int): numeric value
... | [
"phriscage@gmail.com"
] | phriscage@gmail.com |
019082fa9d75ecfb96a0de970631cd8ecb05eaeb | 98ad5d08eda9dbce55947b53dc8e1627e7be5404 | /backend/blog_api/serializers.py | e57bb6df05843dd07c9c6292467f59f623977218 | [] | no_license | mhkmcp/blog-react-djagno | 651a9f1f65f0c54804ceb8ea51cddf0587ef2c81 | 6d0904a08311590b8d07a99c6c02d8f50bbaa0de | refs/heads/main | 2023-08-03T16:28:52.666182 | 2021-09-20T15:00:48 | 2021-09-20T15:00:48 | 408,421,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from rest_framework import serializers
from blog.models import Post
class PostSerializer(serializers.ModelSerializer):
class Meta:
model = Post
fields = ('id', 'title', 'excerpt', 'content', 'author', 'status') | [
"mhkmcp@yahoo.com"
] | mhkmcp@yahoo.com |
5ae88cd77491d8b24fad6d607239ecf25badf6b8 | 31764c3903bd7b7cde4649860eb843bc8545095d | /books/Language/python/geatpy/code/A02_DTLZ1.py | 8161e8d8fd83f130fdf31b1d442681d18bd7f173 | [] | no_license | madokast/madokast.github.io.old | bf3aa967ee7ccdba99ce7d667e02f8672ae8b00e | 3af6570401c9f7f11932cc3bac79f4979507c79b | refs/heads/master | 2023-06-20T07:52:50.119738 | 2021-07-22T01:35:12 | 2021-07-22T01:35:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,670 | py | # -*- coding: utf-8 -*-
""" QuickStart """
import numpy as np
import geatpy as ea
# 自定义问题类
class MyProblem(ea.Problem): # 继承Problem父类
def __init__(self, M): # M 目标维数,测试中使用 3
# 问题的名字
name = 'DTLZ1' # 初始化name(函数名称,可以随意设置)
# 目标变量是最大化还是最小化
maxormins = [1] * M # 初始化maxormins(目标最小最大化标记列表... | [
"578562554@qq.com"
] | 578562554@qq.com |
ef77869c6d10660f4ae73774533726d7ec573601 | 3f9dcfb4f76747c97d756b87aec50dc38ede8cb0 | /manage.py | bf15b5930f88e4a520c3f346244e26ec06884ba1 | [] | no_license | gabrielcoder247/realone | c7887311902dcc0952a76667b863d9c99b0c8452 | 810661e90c2931dbd81a73f07944e7f5635f1ddc | refs/heads/master | 2022-12-03T19:20:46.313758 | 2020-04-06T11:46:09 | 2020-04-06T11:46:09 | 253,480,350 | 0 | 0 | null | 2022-11-22T05:27:59 | 2020-04-06T11:43:33 | Python | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'rentorbuy.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impo... | [
"gabrielcoder247@gmail.com"
] | gabrielcoder247@gmail.com |
ff27dbd756b4dde221c7ca61cb5f0e3da88cfb58 | a60bc58d17720a2f1e2f8778146248c01adf8a5a | /post_subjects.py | 3221347af689853f3f40fd00b7bd68bace9316dc | [] | no_license | meau/bentley_scripts | 08bdbc159939731966bdeda396c93022212f922d | e17abff89a775b2b7273661e92b849b85e6a1f8d | refs/heads/master | 2021-01-17T05:46:24.838505 | 2015-09-21T16:17:25 | 2015-09-21T16:17:25 | 42,587,433 | 1 | 0 | null | 2015-09-16T13:03:26 | 2015-09-16T13:03:25 | Python | UTF-8 | Python | false | false | 1,925 | py | """
curl -H "X-ArchivesSpace-Session:$TOKEN" -d '{"source":"lcsh","vocabulary":"/vocabularies/1","terms":[{"term":"Cheese", "term_type":"topical","vocabulary":"/vocabularies/1"},{"term":"Michigan","term_type":"geographic","vocabulary":"/vocabularies/1"}]}' http://localhost:8089/subjects
"""
import requests
import json... | [
"djpillen@umich.edu"
] | djpillen@umich.edu |
bce301e020d3e0032f55ca6472c9e2c8cf63c121 | aa54fd5cafc65d18ceac52097237482cec27f674 | /planetary_system_stacker/Test_programs/count_lines_of_code.py | 5f56284c52c4e38aa219fd0850afce7de4024311 | [] | no_license | Rolf-Hempel/PlanetarySystemStacker | 84f6934e6748177fb1aca20b54392dee5c3f2e3c | 304952a8ac8e991e111e3fe2dba95a6ca4304b4e | refs/heads/master | 2023-07-20T04:11:06.663774 | 2023-07-17T15:20:15 | 2023-07-17T15:20:15 | 148,365,620 | 228 | 34 | null | 2023-09-01T16:33:05 | 2018-09-11T19:00:13 | Python | UTF-8 | Python | false | false | 1,442 | py | # -*- coding: utf-8; -*-
import os
def countlines(start, lines=0, header=True, begin_start=None):
if header:
print('{:>10} |{:>10} | {:<20}'.format('ADDED', 'TOTAL', 'FILE'))
print('{:->11}|{:->11}|{:->20}'.format('', '', ''))
for thing in os.listdir(start):
thing = os.path.join(start... | [
"rolf6419@gmx.de"
] | rolf6419@gmx.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.