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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8176f29c210a52c8544016e57564ace030a86875 | 155a25eb18213664da9978030e6743b04d570141 | /manage.py | 825bd789c5cf66c550320c139be766171af95606 | [] | no_license | powellc/timberwyck | 0d6fd6e46c2899f32dda37faa8030a8c7080bc97 | 583cbc2ee33cb56187db13c94d5d4af74f51c9bd | refs/heads/master | 2020-05-18T13:59:20.394609 | 2014-05-03T05:09:18 | 2014-05-03T05:09:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "timberwyck.settings")
os.environ.setdefault("DJANGO_CONFIGURATION", "Dev")
from configurations.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"colin.powell@gmail.com"
] | colin.powell@gmail.com |
6d75f464bfc5dab8974a58bc1fb72ee468f050c7 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-cts/huaweicloudsdkcts/v3/model/update_tracker_request_body.py | 86a0e288fb2da06e6d914be15bba419009029213 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 11,674 | py | # coding: utf-8
import pprint
import re
import six
class UpdateTrackerRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c5001ecfa2716239bb437211c0ca5878f4942947 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_underscoring.py | b4a890d3243fc3207ae8047c40277eb6f93f3f90 | [
"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 | 268 | py |
from xai.brain.wordbase.verbs._underscore import _UNDERSCORE
#calss header
class _UNDERSCORING(_UNDERSCORE, ):
def __init__(self,):
_UNDERSCORE.__init__(self)
self.name = "UNDERSCORING"
self.specie = 'verbs'
self.basic = "underscore"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c3d0de22c121cb4e7a40f9ee7dbdefe55148a230 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/sieve-big-8204.py | c8284994a9d91b15a9ac7250620e44db2de5eea1 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,757 | py | # A resizable list of integers
class Vector(object):
items: [int] = None
size: int = 0
def __init__(self:"Vector"):
self.items = [0]
# Returns current capacity
def capacity(self:"Vector") -> int:
return len(self.items)
# Increases capacity of vector by one element
def incr... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
065a7ba25278105449e7b3d0bc7e9d75e0141fe2 | b564a7d17f224e9512fec36bab4333353381e22c | /lib/exaproxy/html/humans.py | f15fdaa44f84ee1894da006b05dcba9b027d9279 | [
"BSD-2-Clause"
] | permissive | Exa-Networks/exaproxy | 464f9c72449b12d4f3960e9829a0f93fec8db0da | 8b7291b79c1cd6542213a5e7d8dda3cf5a676166 | refs/heads/master | 2023-09-03T16:10:56.656549 | 2022-06-28T16:52:48 | 2022-06-28T16:52:48 | 13,495,150 | 127 | 25 | NOASSERTION | 2022-06-28T16:52:49 | 2013-10-11T09:36:28 | Python | UTF-8 | Python | false | false | 1,384 | py | # encoding: utf-8
"""
humans.py
Created by Thomas Mangin on 2012-02-25.
Copyright (c) 2011-2013 Exa Networks. All rights reserved.
"""
from .images import thomas,david
class humans:
txt = """\
/* TEAM */
Slave Driver / Grand Visionary: Thomas Mangin
Google+: https://plus.google.com/104241996506596749840
Gith... | [
"thomas.mangin@exa-networks.co.uk"
] | thomas.mangin@exa-networks.co.uk |
6469709fcf868289b689c5a64db4c625a21116ff | 904b4b7cd6b1709e9aded92737766a3b5a978838 | /bissextile.py | d90e2359ddb92bf8a0938ca97e262464bbf19394 | [] | no_license | NicolasLagaillardie/Python | 3ec7aa6eb21ffa86fad33060bb53e42cb7957dc9 | a30037d688d8f11a195d7fa611347528c313d71b | refs/heads/master | 2020-03-30T13:48:27.038592 | 2018-10-02T16:54:42 | 2018-10-02T16:54:42 | 151,288,608 | 0 | 0 | null | null | null | null | ISO-8859-1 | Python | false | false | 382 | py | # -*- coding: cp1252 -*-
def bissextile(annee):
if annee%4!=0:
print annee,' n\'est pas une année bissextile'
else:
if annee%100==0:
if annee%400==0:
print annee,' est bissextile'
else:
print annee,' n\'est pas une année bissextile'
... | [
"lagaillardie.nicolas@live.fr"
] | lagaillardie.nicolas@live.fr |
fc9131f9ccde84e2d38716326e9ff70aa33bac2a | f306d169cf3b48061a7b29d297612b025f3825f7 | /yamtbx/util/__init__.py | bda055a257197c3133ec50c6e8855fe242592bab | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | robertbuecker/yamtbx | b2b43c09ec27a6aa08c1b9330f731df2f95d82c6 | 9b90e03d27600fd9e550252dcb65c1109f04c44f | refs/heads/master | 2020-06-20T07:03:17.679343 | 2019-07-15T00:17:06 | 2019-07-15T00:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,267 | py | """
(c) RIKEN 2015. All rights reserved.
Author: Keitaro Yamashita
This software is released under the new BSD License; see LICENSE.
"""
import os
import sys
import re
import shutil
import subprocess
import commands
import glob
import tempfile
from libtbx.utils import null_out
import libtbx.load_env
def call(cmd, ar... | [
"keitaroyam@users.noreply.github.com"
] | keitaroyam@users.noreply.github.com |
a61e686a2a19b194f74d057cf3102cd5df782b64 | ff8bd1967aeb66ffec17c3ae78102c168414761a | /PythonIntroduction/datatypes/Strings/Stringemployee.py | b4b8a6638010e9657f3ff95b34f617e7bc0a2ee0 | [] | no_license | charan2108/Pythondirectories | d5cbec41db0685bbfc41a3135edc3e41fd223474 | 30b4a9f9171fe2295efbf12cbf9cbcf88bdf29b3 | refs/heads/master | 2023-03-28T03:29:25.039491 | 2021-03-29T02:45:19 | 2021-03-29T02:45:19 | 352,484,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | car_name = "Ferrari"
car_model= "F360"
car_manufactured = 2020 | [
"sumacharan.adabala@gmail.com"
] | sumacharan.adabala@gmail.com |
a9eb757a2b0a176611cde9701778712b3dd565df | bec8abb5c3146377f1b3bc2f2b4eaa4d02502211 | /mediascraper/the_procrastinators/youtube_scraper.py | 7383cc710c70c57551b36229ef8259fb99726bbb | [
"MIT"
] | permissive | Kokitis/MediaScraper | 578f3d96f1ef731906e03e56db77e141823f8681 | 8bd7294942945d90838357f14e10558a0512e316 | refs/heads/master | 2020-03-26T11:51:34.460233 | 2018-08-16T00:45:37 | 2018-08-16T00:45:37 | 144,863,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,286 | py | from pathlib import Path
import requests
import json
import yaml
from pprint import pprint
from typing import List, Tuple
import re
import datetime
from dataclasses import dataclass
from pytools.timetools import Duration
shownotes_regex = ""
@dataclass
class Shownote:
timestamp: Duration
title: str
link: str
def e... | [
"cld100@pitt.edu"
] | cld100@pitt.edu |
892c6ea0089b84d37e35d19760bbe949a8fd271a | 9c6522db2db8c4c075e23f2953776384973891a8 | /cn.ao/py.ori.fmt/c0310.bin.py | edfcd15820f2b96d91aea65d3e7db6e48edd12f7 | [] | no_license | ZhenjianYang/ZeroAoVoiceScripts | b388c28b498049d7d4277b8344cdc098488fd258 | 7e0b696d743912739b855acb4306f1dcf564d6c0 | refs/heads/master | 2021-05-18T08:58:59.482674 | 2021-02-19T08:22:19 | 2021-02-19T08:22:19 | 94,624,272 | 12 | 5 | null | 2021-02-19T08:22:20 | 2017-06-17T13:06:15 | Python | UTF-8 | Python | false | false | 70,427 | py | from ScenarioHelper import *
def main():
CreateScenaFile(
"c0310.bin", # FileName
"c0310", # MapName
"c0310", # Location
0x002B, # MapIndex
"ed7150",
0x00002000, # Flags
... | [
"zj.yang@qq.com"
] | zj.yang@qq.com |
507b5e4a2cf5d1be59559b0252c23e4d162aace9 | 7762ca6feb98c8b1c95da09758801a6bc38922ff | /NinjaGold/settings.py | 00af97c3a4b37d82f68939050baa3b893c96e2ba | [] | no_license | SDBranka/NinjaGold | 211bd6ade5e9c6a216ffef89a0c791a8a2d15ad5 | db881812842f2188df1da20edc81469fcb56a50a | refs/heads/main | 2023-04-29T01:02:07.427340 | 2021-05-22T19:05:34 | 2021-05-22T19:05:34 | 369,070,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for NinjaGold 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
#... | [
"sdbranka@me.com"
] | sdbranka@me.com |
91ef1503ce75661dbbe6b7d791eda966a31b1c1d | 81eabe15995a6426b285b2312b73c0bde7bb61bc | /paleomix/tools/zonkey/common.py | 81ad379b116d4e6692319c1a2c4afc9f055ff3ca | [] | no_license | fvangef/paleomix | 3a732d8cd99177809b25bd09dde6efd261b10cad | 826fb866ae9c26cb7b49fc6a96fb618a3daaffcc | refs/heads/master | 2020-04-15T22:05:02.249220 | 2018-11-05T19:56:49 | 2018-11-05T19:56:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright (c) 2016 Mikkel Schubert <MikkelSch@gmail.com>
#
# 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 l... | [
"MikkelSch@gmail.com"
] | MikkelSch@gmail.com |
c35247face031fdcf18da283072975cf5773b968 | 64a80df5e23b195eaba7b15ce207743e2018b16c | /Downloads/adafruit-circuitpython-bundle-py-20201107/lib/adafruit_pybadger/pybadge.py | 6c341d8678773b63b175827e4b779cc10fcfcc22 | [] | no_license | aferlazzo/messageBoard | 8fb69aad3cd7816d4ed80da92eac8aa2e25572f5 | f9dd4dcc8663c9c658ec76b2060780e0da87533d | refs/heads/main | 2023-01-27T20:02:52.628508 | 2020-12-07T00:37:17 | 2020-12-07T00:37:17 | 318,548,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,899 | py | # The MIT License (MIT)
#
# Copyright (c) 2020 Kattni Rembor for Adafruit Industries
#
# 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 ... | [
"aferlazzo@gmail.com"
] | aferlazzo@gmail.com |
32ea31849e6bd4ef0acd560f4be8b565f98587d3 | f0b5238cf64ca46dafd8aab484278dd40feffa4d | /insta/migrations/0008_image_profile.py | 58a792198142bdfb3043e57e53faa92eb2d84078 | [
"MIT"
] | permissive | niklauspeter/instagram | 0e7ef612b4bd1301b8b1c146a281a645d5940f49 | 303e26f88d3cdcc9a7a8a05d41a6fa21bf91737e | refs/heads/master | 2021-09-09T14:44:48.293670 | 2019-05-23T15:56:49 | 2019-05-23T15:56:49 | 187,219,168 | 0 | 0 | null | 2021-09-08T01:00:34 | 2019-05-17T13:14:56 | Python | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-05-23 06:56
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('insta', '0007_remove_image_profile_photo'),
]
operat... | [
"oriokiklaus@gmail.com"
] | oriokiklaus@gmail.com |
d3d1ba274df3c9e32d65b77b40f7b3b416ade480 | ebcc3f199a4dc7763bb4984fc8a910d015b0c5d0 | /dht_temperature.py | 9e9f4a9f3703f52d6e30aab16700eaefb40ef65a | [
"MIT"
] | permissive | BurntTech/homie4 | 31aba5be338cee46ce2dad6483821cd837aa6704 | 577bdb413778865d3be03e0149e1773b5d312d51 | refs/heads/master | 2021-07-13T12:12:48.528194 | 2021-02-03T19:02:41 | 2021-02-03T19:02:41 | 233,911,796 | 1 | 0 | MIT | 2020-01-14T18:48:18 | 2020-01-14T18:48:17 | null | UTF-8 | Python | false | false | 634 | py | # Raspberry PI
import Adafruit_DHT
import time
from homie.device_temperature import Device_Temperature
mqtt_settings = {
'MQTT_BROKER' : 'OpenHAB',
'MQTT_PORT' : 1883,
}
try:
temperature_device = Device_Temperature(device_id="temperature-sensor-1",name = "Temperature_Sensor 1",mqtt_settings=mqtt_setti... | [
"mike@4831.com"
] | mike@4831.com |
73d12c61155fbb679cf6f632c756bc0889002274 | c2f92d75d235ff5ed7b213c02c4a0657545ba02f | /newchama_web/2/newchama/tools/test_mq1.py | dd2c58bbbefb696a43f1e8523ee83b7da1bbcca3 | [] | no_license | cash2one/tstpthon | fab6112691eb15a8a26bd168af3f179913e0c4e0 | fc5c42c024065c7b42bea2b9de1e3874a794a30d | refs/heads/master | 2021-01-20T01:52:06.519021 | 2017-04-14T09:50:55 | 2017-04-14T09:50:55 | 89,338,193 | 0 | 1 | null | 2017-04-25T08:46:06 | 2017-04-25T08:46:06 | null | UTF-8 | Python | false | false | 847 | py | #encoding:utf-8
import os,sys
sys.path.append(os.path.abspath('../'))
sys.path.append(os.path.abspath('/var/www/newchama'))
import newchama.settings
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "newchama.settings")
import pika
import pickle
from django.template import loader, Context
connection = pika.BlockingConn... | [
"yxlz_0910@163.com"
] | yxlz_0910@163.com |
4013981c65eed2174946c158583b6552973aaab1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03473/s440381272.py | 619cef532b71e399863972fc78c98e9f050e46ca | [] | 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 | 92 | py | # -*- coding: utf-8 -*-
#----------
M = int(input().strip())
#----------
print(24+(24-M))
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
40e044e81e637b03ed8ab1ee0a0bc10e3b4661f4 | bc167f434158921bcf2c678155c5cdfec1c9b0c9 | /PI_code/simulator/behaviourGeneration/firstGenScripts_preyHunter/behav372.py | 4181e4a1f1456cec22542057f7e400034e38635a | [] | no_license | s0217391/DifferentProjects | 6450efc89c64ecd21b86c705737e89e5c69433a6 | 7f4da153660817b6cbf72d2e823aa29c0c2f95a9 | refs/heads/master | 2021-01-17T02:58:46.219240 | 2015-05-26T22:45:46 | 2015-05-26T22:45:46 | 34,995,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | #!/usr/bin/python
import sys
def compute(prey):
temp0 = min(prey[1], prey[0])
temp1 = -1 * prey[0]
if temp0 != 0:
temp1 = prey[0] / temp0
else:
temp1 = temp0
temp0 = temp0 - prey[1]
if temp1 > temp0:
if prey[0] > prey[1]:
if prey[1] != 0:
temp0 = temp0 % prey[1]
else:
temp0 = prey[1]
else:
... | [
"i7674211@bournemouth.ac.uk"
] | i7674211@bournemouth.ac.uk |
b9533ae22c6a70939b28441379420cc7a1b533ae | e98e7b45d85273797cf9f15e92fbe685a05bde18 | /词条导出/zhidao_cron.py | 19c1cf5746d7e05af4e57c436af8f87088d3a9f0 | [] | no_license | wangdexinpython/test | 8d29d30e099f64f831b51265db7092d520df253c | a047148409e31b8a8140f2c13b959aa54ec14d0d | refs/heads/master | 2020-09-11T05:10:49.041795 | 2019-12-31T07:47:41 | 2019-12-31T07:47:41 | 221,948,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,004 | py | #coding=utf-8
import pymongo,time,requests,json
import urllib.parse
import redis,pexpect,os
class zhidao(object):
def __init__():
mongo=mongodb()
mon_app=app_mongo()
def mongodb():
mongo = pymongo.MongoClient(
"mongodb://xhql:" + urllib.parse.quote_plus("xhql_190228_snv738J7... | [
"wangdexin@haxitag.com"
] | wangdexin@haxitag.com |
ba469e691aa8feaecc648a26c1171ddcf7f037ce | a9789672eaba37c4b391756c7fadb472609ce8ed | /knowtator2standoff.py | d527a6f765c0fd5ff61fa86d8c26416b15a7be32 | [] | no_license | spyysalo/knowtator2standoff | acb68666a6b4dfcd66baf53f1fb7c213f01f38d1 | 18d76d958d13230ff661917e0319668969dc0ec1 | refs/heads/master | 2020-06-20T06:39:40.401026 | 2016-11-28T10:56:56 | 2016-11-28T10:56:56 | 74,897,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,246 | py | #!/usr/bin/env python
from __future__ import print_function
import sys
import re
import io
import xml.etree.cElementTree as ET
from collections import defaultdict
from os import path
from logging import warn
DOCDIR = 'craft-2.0/articles/txt/' # TODO: CLI argument
MAX_SPAN = 150 # TODO: CLI argument
# Mappi... | [
"sampo.pyysalo@gmail.com"
] | sampo.pyysalo@gmail.com |
c69c64d15e9879c0c3e8bb12dc4086d660d80025 | 601443d21d3c9f9121e6aec76e2ad012ec4a7817 | /arekit/contrib/utils/pipelines/text_opinion/filters/distance_based.py | ba536accb1dcf557dfb01ce0bdd5f75bd5db3952 | [
"MIT"
] | permissive | nicolay-r/AREkit | 27421472ca296671a6da69a94c1070a0b5a33451 | 1e1d354654f4f0a72090504663cc6d218f6aaf4a | refs/heads/master | 2023-08-29T13:30:26.511617 | 2023-08-13T20:11:43 | 2023-08-13T20:11:43 | 225,708,027 | 54 | 4 | MIT | 2023-01-18T13:17:01 | 2019-12-03T20:20:46 | Python | UTF-8 | Python | false | false | 650 | py | from arekit.common.data.input.sample import InputSampleBase
from arekit.contrib.utils.pipelines.text_opinion.filters.base import TextOpinionFilter
class DistanceLimitedTextOpinionFilter(TextOpinionFilter):
def __init__(self, terms_per_context):
super(DistanceLimitedTextOpinionFilter, self).__init__()
... | [
"kolyarus@yandex.ru"
] | kolyarus@yandex.ru |
81d2d43d971b207b2dd0bcc44c97e8f6c0f921da | 7f04fbc897ff52e4d27cc2f27ae6dfbabe43dfe0 | /cellml/pmr2/tests/base.py | 9100a7a3ffe800da9cdfd74b377716fd6c6545ab | [] | no_license | metatoaster/cellml.pmr2 | daae69721af04f7a28eae496dcbeb13b98e2d4d0 | cbfe212effe325350b1e7087e6172952483b981f | refs/heads/master | 2021-06-21T20:56:30.267128 | 2016-03-08T05:45:53 | 2016-03-08T05:45:53 | 2,396,487 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,105 | py | import unittest
import doctest
from zope.component import testing
from Testing import ZopeTestCase as ztc
from Products.PloneTestCase import PloneTestCase as ptc
from Products.PloneTestCase.layer import onsetup
from Products.PloneTestCase.layer import onteardown
from Products.Five import fiveconfigure
from Zope2.App ... | [
"tommy.yu@auckland.ac.nz"
] | tommy.yu@auckland.ac.nz |
33ca2cbec3283c60f3f48ff39bcc8624ecb5d8f8 | a86bd96433a98e2311447a1923a400470d231f7e | /almanac/style/highlight.py | 93bc92ffea0c08e9b9383963588506d9d14bda0a | [
"MIT",
"BSD-3-Clause"
] | permissive | welchbj/almanac | 3e0d1e8282ec00ad17854536526cf253b331a201 | 7ba473ef07173e0f017dd151e7ca425ba149b8fe | refs/heads/main | 2022-12-18T12:51:53.039850 | 2022-07-06T01:25:03 | 2022-07-06T01:25:03 | 193,141,053 | 5 | 2 | MIT | 2022-12-08T14:28:58 | 2019-06-21T18:07:22 | Python | UTF-8 | Python | false | false | 1,025 | py | from typing import Optional, Type
from pygments import highlight
from pygments.formatter import Formatter
from pygments.formatters import TerminalFormatter
from pygments.lexers import get_lexer_for_mimetype
from pygments.util import ClassNotFound
def highlight_for_mimetype(
text: str,
mimetype: str,
*,
... | [
"welch18@vt.edu"
] | welch18@vt.edu |
58d1f9cf803febc2a58fb26e573063434eae588c | caaf9046de59559bb92641c46bb8ab00f731cb46 | /Configuration/Generator/python/JpsiMM_Pt_20_inf_8TeV_TuneCUETP8M1_cfi.py | 3d826f915126679c530acffd43c4e184f6851393 | [] | no_license | neumeist/cmssw | 7e26ad4a8f96c907c7373291eb8df205055f47f0 | a7061201efe9bc5fa3a69069db037d572eb3f235 | refs/heads/CMSSW_7_4_X | 2020-05-01T06:10:08.692078 | 2015-01-11T22:57:32 | 2015-01-11T22:57:32 | 29,109,257 | 1 | 1 | null | 2015-01-11T22:56:51 | 2015-01-11T22:56:49 | null | UTF-8 | Python | false | false | 2,939 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
source = cms.Source("EmptySource")
generator = cms.EDFilter("Pythia8GeneratorFilter",
pythiaPylistVerbosity = cms.untracked.i... | [
"you@somedomain.com"
] | you@somedomain.com |
614afacb7d88abe1697191ba3dc5fea6cdce83ef | a520eb3a99c0e17760cb185b61da2c5e8ae36bed | /apps/users/tests.py | 0e48b5040d17cd508e8ea78902476af196085d14 | [] | no_license | zhuoxiaojian/yishengAnalyze | 9cd4b984a4c90d23d6e2d324def187b88d5b737b | 18d2afad78f8cf3a734d41d835e7caf7635fca47 | refs/heads/master | 2022-12-10T21:30:25.176482 | 2019-01-19T08:55:46 | 2019-01-19T08:55:46 | 153,866,303 | 1 | 1 | null | 2022-12-09T05:32:09 | 2018-10-20T03:32:46 | JavaScript | UTF-8 | Python | false | false | 133 | py | from django.test import TestCase
# Create your tests here.
from users.tasks import test
if __name__ == '__main__':
test.delay()
| [
"1933860854@qq.com"
] | 1933860854@qq.com |
3a19c9c5be00b701cdd309ad99d37a8fd77a6021 | cd257631f442d24d2e4902cfb60d05095e7c49ad | /week-02/day-01/average_of_input.py | d18279b22f7452cd634a2164b12f176064e3c4ef | [] | no_license | green-fox-academy/Chiflado | 62e6fc1244f4b4f2169555af625b6bfdda41a975 | 008893c63a97f4c28ff63cab269b4895ed9b8cf1 | refs/heads/master | 2021-09-04T03:25:25.656921 | 2018-01-15T09:02:47 | 2018-01-15T09:02:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # Write a program that asks for 5 integers in a row,
# then it should print the sum and the average of these numbers like:
#
# Sum: 22, Average: 4.4
number = 0
for i in range(0, 5):
number += int(input('Give me a number: '))
print('Sum: ' + str(number) + ' Average: ' + str(number/(i + 1))) | [
"prjevarabalazs@gmail.com"
] | prjevarabalazs@gmail.com |
4843b1d4b9b7d2f2fe304e9278792b5d93d54487 | 23f6dbacd9b98fdfd08a6f358b876d3d371fc8f6 | /rootfs/usr/lib/pymodules/python2.6/orca/scripts/toolkits/VCL.py | d29693eaa79ca6a0de4d1cfb80bdd0e09f4e8f63 | [] | no_license | xinligg/trainmonitor | 07ed0fa99e54e2857b49ad3435546d13cc0eb17a | 938a8d8f56dc267fceeb65ef7b867f1cac343923 | refs/heads/master | 2021-09-24T15:52:43.195053 | 2018-10-11T07:12:25 | 2018-10-11T07:12:25 | 116,164,395 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | /usr/share/pyshared/orca/scripts/toolkits/VCL.py | [
"root@xinli.xinli"
] | root@xinli.xinli |
1210e7360134b655175e57ae56324fe180e8c0be | c6320735f140944d2c282729c008a7cf7cf1e98f | /docs/samples/explanation/income/train.py | 1f390f64d00d252386861f2eb8e6c0452dd63fec | [
"Apache-2.0"
] | permissive | gipster/kfserving | 66d2dffd8917ba9029ca2e96f199e1f56df6e41b | bbd3da47a708403fb2a203e28955d5454bc2a1d5 | refs/heads/master | 2020-06-10T18:43:57.148347 | 2019-08-19T00:24:03 | 2019-08-19T00:24:03 | 193,709,786 | 0 | 0 | Apache-2.0 | 2019-06-25T13:08:50 | 2019-06-25T13:08:49 | null | UTF-8 | Python | false | false | 2,400 | py | import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.compose import ColumnTransformer
from sklearn.impute import SimpleImputer
from sklearn.preprocessing import StandardScaler, OneHotEncoder
from alibi.datasets import adult
import joblib
import dill
from sklearn.pipeline import Pipeline
i... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
c56f4e4fb4ccc6672145c456c1c1d50ffbfd1d54 | eb91c2d2560a3e4ce35ebc2d6550f001579c03c5 | /codeforces/1353/B.py | 9f295a1f5fb9c4df31d57960b9fb7930b9a23708 | [] | no_license | kamojiro/codeforces | 0a3a40c8cab96a0257bb9d6ed53de217192cbabb | 9e66297fa3025ba6731111ab855096d579e86c67 | refs/heads/master | 2021-07-07T11:47:42.373189 | 2020-08-15T14:45:36 | 2020-08-15T14:45:36 | 176,296,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | #import sys
#input = sys.stdin.readline
def main():
N = int( input())
for _ in range(N):
n, k = map( int, input().split())
A = list( map( int, input().split()))
B = list( map( int, input().split()))
A.sort()
B.sort(reverse=True)
ans = 0
for i in range(n):
... | [
"tamagoma002@yahoo.co.jp"
] | tamagoma002@yahoo.co.jp |
d8d125160792a97e1c2c5c39a0c928f1655589b2 | 250124d214f6834230314dfee4a5dd03713953a2 | /part-2/2-iterators/9-Iterating_callables.py | 0dcb235c2e78a05bf787172829de56522d7aafc5 | [
"MIT"
] | permissive | boconlonton/python-deep-dive | 3b26b913d1f6f2fdf451a8bc4f24a24d1bb85a64 | c01591a4943c7b77d4d2cd90a8b23423280367a3 | refs/heads/master | 2023-08-30T21:20:12.240813 | 2021-09-29T22:21:26 | 2021-09-29T22:21:26 | 365,419,435 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | """Iterating callables"""
import random
def counter():
i = 0
def inc():
nonlocal i
i += 1
return i
return inc
class CallableIterator:
def __init__(self, callable_, sentinel):
self.callable = callable_
self.sentinel = sentinel
self.is_consumed = False
... | [
"tan.truong@go2joy.vn"
] | tan.truong@go2joy.vn |
2b612f6eea0c6ac37a27d2d8fb6083285ff16073 | 19bc4d44dc7303e23a6949b1bc7b98b65bcf80e9 | /python/Linear Regression in Python/Simple Linear Regression/Linear Regression at Codecademy/script.py | 661d035628a95c8b252a74e85e4a4024c02fe7a9 | [] | no_license | henry1034/Challenge-Project-of-CodeCademy | c66190ff3a318e22f263fcf78344632773065c24 | 61ebe84696cec120393acca62b4fce4bdea0fb30 | refs/heads/master | 2023-07-04T01:04:16.978374 | 2021-07-29T17:27:56 | 2021-07-29T17:27:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,583 | py | # Load libraries
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import statsmodels.api as sm
import codecademylib3
# Read in the data
codecademy = pd.read_csv('codecademy.csv')
# Print the first five rows
print(codecademy.head())
# Create a scatter plot of score vs compl... | [
"noreply@github.com"
] | henry1034.noreply@github.com |
950e9fce4dcbd3c0bc732cdc70d82b7bb4f0e7c3 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/AlipayIserviceIsresourceTenantquerybytntidQueryModel.py | bf348d94e07635b10d4f588191dab57c1660c589 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 1,400 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayIserviceIsresourceTenantquerybytntidQueryModel(object):
def __init__(self):
self._tnt_inst_id = None
self._ur_id = None
@property
def tnt_inst_id(self):
ret... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
74ca68420b60222f058228f98a1a446f42d5311d | 0e3f14722cd87767d29f794530dc1eabc4678a14 | /projects/migrations/0001_initial.py | bf6df9a575080f5727e6d0d3115ebfc864eafca8 | [] | no_license | Mostaquim/mycampaign | e807386b5bc034c0bf8689f29da07bae752ef971 | 4343ff08cb7d86de3efcc3e81b49ca93d01e7ae9 | refs/heads/master | 2020-05-09T23:51:06.345794 | 2019-05-09T10:24:22 | 2019-05-09T10:24:22 | 181,513,963 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,738 | py | # Generated by Django 2.1 on 2019-05-06 18:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('accounts', '0001_initial'),
migrations.swappable_dependency(setti... | [
"princemostaquim@gmail.com"
] | princemostaquim@gmail.com |
f9757cd5f5931e24e90a9be34c09ca15d7bdbedd | f0adca7cac7fb12cdb89e7e821559fe2603bf4bc | /src/234/recipe_234_02.py | 029ab82d6382993f4d8564ed733634fc696da9c6 | [] | no_license | eriamavro/python-recipe-src | dccfa06bc56fcc713f8da9e466f04d07c1f961f0 | d14f3e4cd885515e9a9a7b8e3f064609c8e50fad | refs/heads/master | 2023-02-13T02:08:44.531621 | 2021-01-14T12:03:05 | 2021-01-14T12:03:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | import requests
import json
payload = {'key1': 'value1', 'key2': 'value2'}
url = "http://httpbin.org/post"
r = requests.post(url, json=json.dumps(payload))
print(r.text)
| [
"kurozumi.ta@gmail.com"
] | kurozumi.ta@gmail.com |
34e55c9eb4ff0873f56820e807557d8c6cb55bb7 | 214dde26c268d1d0b7991318c5e2d43aa27af89b | /visualization/capital_flow/app.py | 9c72a241df388a8420f220fc97f2591d354deea3 | [] | no_license | hellobiek/smart_deal_tool | f1846903ac402257bbe92bd23f9552970937d50e | ba8aad0a37843362f5833526921c6f700fb881f1 | refs/heads/master | 2022-09-04T04:41:34.598164 | 2022-08-04T22:04:09 | 2022-08-04T22:04:09 | 88,258,362 | 36 | 14 | null | null | null | null | UTF-8 | Python | false | false | 14,214 | py | # -*- coding: utf-8 -*-
import os
import sys
from os.path import abspath, dirname
sys.path.insert(0, dirname(dirname(dirname(abspath(__file__)))))
import dash
import dash_table
import const as ct
import pandas as pd
import dash_core_components as dcc
import dash_html_components as html
from flask_caching import Cache
f... | [
"hellobiek@gmail.com"
] | hellobiek@gmail.com |
94a836f98274030034fc1d71f9ea205e92cb8242 | 9c8c8ae3842ec9a6f36730234c02f93f71ebda20 | /vndk/tools/sourcedr/ninja/list_installed_module_under_source.py | 3643e9d57df15529f03701ae39cfbbabc54bc9a2 | [
"Apache-2.0"
] | permissive | batyrf/platform_development | 437bc6560a062d0ce7b27bab17b78109a72b1773 | d4f7efc0c58598e3fc02a1e4fe8e751bd4ae8f0a | refs/heads/master | 2020-12-26T18:37:29.529464 | 2020-02-01T04:54:27 | 2020-02-01T04:54:27 | 237,598,759 | 3 | 0 | null | 2020-02-01T10:35:07 | 2020-02-01T10:35:06 | null | UTF-8 | Python | false | false | 2,232 | py | #!/usr/bin/env python3
import argparse
import itertools
import json
import posixpath
import re
def match_any(regex, iterable):
"""Check whether any element in iterable matches regex."""
return any(regex.match(elem) for elem in iterable)
class ModuleInfo(object):
def __init__(self, module_info_path):
... | [
"loganchien@google.com"
] | loganchien@google.com |
7be77a226991e8e5cd0cfa304d5c6e570a73c828 | 75eac06d5714843f1f4a1ead6d8a3164adcb9a61 | /csqa/models/bert_sep.py | 2f14af9e1c38b1fd04d1c54e957139e86b27b5be | [] | no_license | Shuailong/csqa | 0b3b8de0fc139d84c4841a948fff69a3d0855326 | bc03dfbb1abe8fd37feee2870210f4209ad1d6af | refs/heads/master | 2022-01-04T17:52:53.909954 | 2020-03-28T04:59:45 | 2020-03-28T04:59:45 | 181,131,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,157 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: Shuailong
# @Email: liangshuailong@gmail.com
# @Date: 2019-05-18 23:07:29
# @Last Modified by: Shuailong
# @Last Modified time: 2019-05-18 23:07:39
import logging
from typing import Any, Dict, List, Optional
from overrides import overrides
import torch
from al... | [
"liangshuailong@gmail.com"
] | liangshuailong@gmail.com |
85297224463e89bbcee3a6b86337b908c5929cb2 | 8a0e14299d8b915c0a909cf9fa9a86589dc63d76 | /python/ray/tune/automl/__init__.py | cab4c4de4dab106306090e7cdc11ee1396f99abd | [
"Apache-2.0",
"MIT"
] | permissive | natashamjaques/ray | 795e4271c3c5f3e261327afea40b81ffe6f362ac | aca9dd5ee7a8fef508a5383fdd26ad8ccdcb16e4 | refs/heads/master | 2020-04-12T05:58:15.680359 | 2019-03-06T22:08:10 | 2019-03-06T22:08:10 | 162,337,948 | 3 | 2 | Apache-2.0 | 2018-12-18T19:47:02 | 2018-12-18T19:47:01 | null | UTF-8 | Python | false | false | 464 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from ray.tune.automl.genetic_searcher import GeneticSearch
from ray.tune.automl.search_policy import GridSearch, RandomSearch
from ray.tune.automl.search_space import SearchSpace, \
ContinuousSpace, Discret... | [
"rliaw@berkeley.edu"
] | rliaw@berkeley.edu |
0ceaa149f62c4d0ac1618af38585c3570814e82d | 6aa7e203f278b9d1fd01244e740d5c944cc7c3d3 | /airflow/providers/apache/kylin/hooks/kylin.py | 59f6ce94ff23200923bd0942ba05a73279150f5b | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | laserpedro/airflow | 83fc991d91749550b151c81876d9e7864bff3946 | a28afa8172489e41ecf7c381674a0cb91de850ff | refs/heads/master | 2023-01-02T04:55:34.030935 | 2020-10-24T15:55:11 | 2020-10-24T15:55:11 | 285,867,990 | 1 | 0 | Apache-2.0 | 2020-08-07T15:56:49 | 2020-08-07T15:56:49 | null | UTF-8 | Python | false | false | 2,795 | 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... | [
"noreply@github.com"
] | laserpedro.noreply@github.com |
c618f3a535441e5c8587f2f8d2c91d6c2a046dd8 | 113f8ae533a75e9f2fdc1728661af0f19c8460a6 | /books_app/books_app/settings.py | 8f53b3a945f604d8a773d85e73cdd69c268b132c | [] | no_license | PeterM358/Python-web-2021 | cf08beaa3330495afc53e640f4a2aaf0429049e9 | a3b7e1d1be0cc85675aaff646917d4f5b7f97b00 | refs/heads/master | 2023-07-09T15:09:08.868548 | 2021-07-24T13:49:22 | 2021-07-24T13:49:22 | 382,328,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,403 | py | """
Django settings for books_app project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathl... | [
"estestveno"
] | estestveno |
d010fb79c796f34db9c3ccef04a23dd8ba9fc29a | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/8-loops_20200406005828.py | 5e027ff5acfe70abba31bc7f2389a11006536d94 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | # A for loop is used for iterating over a sequence (that is either a list, a tuple, a dictionary, a set, or a string).
# Simple Loop
# people = ['John', 'Mary', 'Anna', 'Margaret', 'Sylvia']
# for person in people:
# print('Current person is: ', person)
# Break
# people1 = ['John', 'Mary', 'Anna', 'Margaret',... | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
f694103ad29e76cd74411c21fb687a6e63fcbdbf | 6bda8a6e44d09397ada6ed222800e16f071674bf | /src/numdifftools/profiletools.py | 4e6374add0e9bed8d01cf6a6f24116263cc71f59 | [
"BSD-3-Clause"
] | permissive | pbrod/numdifftools | 557af2ee288339737a9e005fb0485542c13e8891 | 4f62e51d4776cc6acbdfb6268482635a487b860c | refs/heads/master | 2023-07-20T19:26:53.241589 | 2022-11-14T13:39:42 | 2022-11-14T13:39:42 | 17,676,169 | 237 | 52 | BSD-3-Clause | 2023-07-05T15:21:37 | 2014-03-12T17:31:06 | Python | UTF-8 | Python | false | false | 5,763 | py | """
This module is based on: https://zapier.com/engineering/profiling-python-boss/
See also:
https://www.pythoncentral.io/measure-time-in-python-time-time-vs-time-clock/
"""
from __future__ import absolute_import, print_function
import inspect
import cProfile
from functools import wraps
from timeit import default_tim... | [
"per.andreas.brodtkorb@gmail.com"
] | per.andreas.brodtkorb@gmail.com |
14c7f9577956db004b7db590687e30e8fdba3192 | ad0e853db635edc578d58891b90f8e45a72a724f | /rllib/examples/inference_and_serving/policy_inference_after_training.py | 17f033847ec1c046e9d6f405d8517c6f099104ee | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | ericl/ray | 8c93fc713af3b753215d4fe6221278700936e2db | e9a1c6d814fb1a81033809f56695030d651388f5 | refs/heads/master | 2023-08-31T11:53:23.584855 | 2023-06-07T21:04:28 | 2023-06-07T21:04:28 | 91,077,004 | 2 | 4 | Apache-2.0 | 2023-01-11T17:19:10 | 2017-05-12T09:51:04 | Python | UTF-8 | Python | false | false | 3,804 | py | """
Example showing how you can use your trained policy for inference
(computing actions) in an environment.
Includes options for LSTM-based models (--use-lstm), attention-net models
(--use-attention), and plain (non-recurrent) models.
"""
import argparse
import gymnasium as gym
import os
import ray
from ray import a... | [
"noreply@github.com"
] | ericl.noreply@github.com |
1ea7ec9cd6f0f33042d9eac704a7f47a193c0f13 | 8bcf973008b1d7549f59501a1667909848ea87dd | /Day0617/staff_info/bin/start.py | ff176549a916a65c76e64836aa50c52a7c6e5635 | [] | no_license | simplesmall/Python-FullStack | 74ffeb2119eecb7fcb21a136d01aaaf2bcc2c24c | 210844ef6443a5543d49a20dbec2db9a9b960230 | refs/heads/master | 2022-12-17T00:56:40.515335 | 2019-11-15T02:07:57 | 2019-11-15T02:07:57 | 221,816,447 | 0 | 1 | null | 2022-12-13T19:22:26 | 2019-11-15T01:10:55 | Python | UTF-8 | Python | false | false | 327 | py | import sys
import os
# print(sys.path)
#获取start.py的路径
#当前文件往上翻两层 staff_info
project_path = os.path.dirname(os.path.dirname(__file__))
sys.path.append(project_path) #把staff_info添加到sys.path中
print(project_path)
from core import main
if __name__ == '__main__':
main.home()
| [
"simplesmall@outlook.com"
] | simplesmall@outlook.com |
e3ae23e183adf64fde585cc7af4664706cfcceab | eed9b3d099facd98b8a139681808997d60b4e19c | /decorator_opt_arg/decorators.py | 4442035bdc787580a9d4d98b7258dade8ef37179 | [] | no_license | pybites/blog_code | 1240a3393a3672681d97c369711be6c7415d8c10 | 902ebb87e5f7a407714d0e399833f0331a1b915d | refs/heads/master | 2022-12-10T19:50:57.718119 | 2020-08-08T17:13:15 | 2020-08-08T17:13:15 | 76,716,190 | 49 | 47 | null | 2022-11-22T01:54:20 | 2016-12-17T09:51:12 | HTML | UTF-8 | Python | false | false | 514 | py | from functools import wraps
import time
def sleep(seconds=None):
def real_decorator(func):
@wraps(func)
def wrapper(*args, **kwargs):
print('Sleeping for {} seconds'.format(seconds))
time.sleep(seconds if seconds else 1)
return func(*args, **kwargs)
retur... | [
"pybites@projects.bobbelderbos.com"
] | pybites@projects.bobbelderbos.com |
71ba4ee7dbdb38f9f5e41c9b92d886fda6729209 | 91c7de67e656fec2b9c32b64e1b6ae88083a0283 | /functional_tests/test_simple_list_creation.py | f5aee3c61fd7a18d274cbbaf40fa57f4feb504f4 | [] | no_license | pohily/TDD | e0a85c60c5ee2e7388323ffb00b7fe81372431c1 | 60d2a0f9debfcc22be54d85e981aee23f8113563 | refs/heads/master | 2022-05-04T20:07:46.296627 | 2019-07-24T11:57:19 | 2019-07-24T11:57:19 | 189,567,223 | 0 | 0 | null | 2022-04-22T21:23:44 | 2019-05-31T09:28:16 | JavaScript | UTF-8 | Python | false | false | 3,307 | py | from .base import FunctionalTest
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
class NewVisitorTest(FunctionalTest):
def test_can_start_a_list_for_one_user(self):
# Edith has heard about a cool new online to-do app. She goes
# to check out its homepage
sel... | [
"mpohily@gmail.com"
] | mpohily@gmail.com |
713275915abef8843f8041d6f606da3ed88339b9 | f77593e9e9a112e85acd3c73c056a7466d76e15e | /request_delivery_installation/request_delivery_installation/urls.py | d15cc80688686b4ea06f1692684c43314ce8d0e5 | [] | no_license | geethusuresh/reqest_installation | bf47c915aee1e1f7730ea858c000a6dd434a79fb | d047fa9f303273915651d0cbe03b7795f157f31c | refs/heads/master | 2021-01-25T04:09:10.282831 | 2014-09-28T06:40:10 | 2014-09-28T06:40:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,498 | py | from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.contrib import admin
admin.autodiscover()
from web.views import *
urlpatterns = patterns('',
url(r'^$', login_required(Home.as_view()), name='home'),
... | [
"geethu@technomicssolutions.com"
] | geethu@technomicssolutions.com |
fe0088ebf9df88a75d965d942d219349f3a68477 | 70bfe6d30059ea78f3e12921e1875773782453f6 | /tencentcloud/vod/v20180717/errorcodes.py | 2d03545d2145754adfdcd1419abaf7232659bc47 | [
"Apache-2.0"
] | permissive | sangliangliang/tencentcloud-sdk-python | d28e308df871fc6a94d3afb59f3365a6cc865f1c | 82c7fc4da7f5131688fc01dc90d4465b7b3b41a2 | refs/heads/master | 2023-08-03T21:44:05.595225 | 2021-09-13T01:10:52 | 2021-09-13T01:10:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,847 | py | # -*- coding: utf8 -*-
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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... | [
"tencentcloudapi@tenent.com"
] | tencentcloudapi@tenent.com |
42e5956217bb73d7bf84ce47a3cd84c808b6c11f | 2130aa6efd199c612b03b0cd949375dd828dd218 | /acoustid/data/submission.py | b3897ac10f2f83bd8c45d4bea70e680730d28066 | [
"MIT"
] | permissive | bazo/acoustid-server | 4774965b8a16555100c972c09582bb09ea10df3f | 56b11f1bbd093e23970d9baae2a2655ecea34aee | refs/heads/master | 2020-05-27T21:08:29.078822 | 2017-01-02T20:19:42 | 2017-01-02T20:19:42 | 83,599,159 | 1 | 0 | null | 2017-03-01T20:36:20 | 2017-03-01T20:36:20 | null | UTF-8 | Python | false | false | 6,283 | py | # Copyright (C) 2011 Lukas Lalinsky
# Distributed under the MIT license, see the LICENSE file for details.
import logging
from sqlalchemy import sql
from acoustid import tables as schema, const
from acoustid.data.fingerprint import lookup_fingerprint, insert_fingerprint, inc_fingerprint_submission_count, FingerprintSe... | [
"lalinsky@gmail.com"
] | lalinsky@gmail.com |
ef26e4572a36ca6d9678ccc256904ec09d6b3688 | 2cff704d26840ca5d4f543c30acf0beb6edadda5 | /rig/exp_functions.py | c09f6b3b7190adb8e432a2e53d1fa1f93707da6c | [
"MIT"
] | permissive | tgbugs/mlab | ff7b8ae366bb6abf5b71e39f020cc80b4079e774 | dacc1663cbe714bb45c31b1b133fddb7ebcf5c79 | refs/heads/master | 2020-04-09T10:33:24.335267 | 2016-05-03T23:18:33 | 2016-05-03T23:18:33 | 12,688,098 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,126 | py | import re
import datetime
import inspect as ins
from sys import stdout
from time import sleep
from debug import TDB,ploc
try:
import rpdb2
except:
pass
tdb=TDB()
printD=tdb.printD
printFD=tdb.printFuncDict
tdbOff=tdb.tdbOff
#file to consolidate all the different functions I want to execute using the xxx.Contr... | [
"tgbugs@gmail.com"
] | tgbugs@gmail.com |
4ad97214cab242cab7be5cd4232d8eca3d8ff676 | 89d920e8de469466f45172948082284b24ee8ca6 | /sdt/bin/sdpostpipelineutils.py | 4ea778b4bbc53e16782ee12c4bdf0fc87ea83537 | [] | no_license | cedadev/synda | fb22cce909e8b4fb8e51e7ab506c337d6ec5d9d2 | 9b9fa5b9b13719e1307f093d208256e359e501af | refs/heads/master | 2021-09-24T03:56:21.545769 | 2020-09-16T10:34:44 | 2020-09-16T10:34:44 | 187,797,897 | 1 | 0 | null | 2020-01-28T12:56:15 | 2019-05-21T08:45:47 | Python | UTF-8 | Python | false | false | 1,918 | py | #!/usr/bin/env python
# -*- coding: ISO-8859-1 -*-
##################################
# @program synda
# @description climate models data transfer program
# @copyright Copyright “(c)2009 Centre National de la Recherche Scientifique CNRS.
# All Rights Reserved”
# @license ... | [
"jerome@TOSH001.home"
] | jerome@TOSH001.home |
f5c2598a311a20bb0bc5d196fce0031e4e299713 | 44a76b217c9b07f4a5df507fc405bfefefa939f6 | /Product_details/views.py | 65dee59b171e8e27198562df0879150d61f81e68 | [] | no_license | sameesayeed007/ecommercesite | 140f35a7616d79502d3aa7d3d192f859dd23f1ff | 1f832f357dc50e3e34d944d3750e07bdfd26e6ef | refs/heads/master | 2023-02-10T02:02:19.736070 | 2021-01-06T11:16:13 | 2021-01-06T11:16:13 | 327,283,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320,265 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.http.response import JsonResponse
from rest_framework.parsers import JSONParser
from rest_framework import status
import datetime
from difflib import SequenceMatcher
import json
from Intense.models import (
Product, Order, Termina... | [
"sameesayeed880@gmail.com"
] | sameesayeed880@gmail.com |
25ef6c97fd596d1d2354d836019a500f2ecc8459 | a1508558da875f6ea3c55840b44df74dfd8e5f54 | /trade_free/portfolio/simple_portfolio.py | 94769841a1f4946dcd4018c81dafdf1cb40da449 | [
"Apache-2.0"
] | permissive | NewLanded/TradeFree | 49cea6a17b5f3b4661d1c98a81e031123f02b3e6 | f65122f5ed01cc1272fd2f03121ff3805a1967cb | refs/heads/master | 2020-07-19T21:13:01.976587 | 2020-01-09T14:02:29 | 2020-01-09T14:02:29 | 206,515,265 | 2 | 2 | Apache-2.0 | 2020-01-09T14:02:31 | 2019-09-05T08:36:58 | Python | UTF-8 | Python | false | false | 6,922 | py | import datetime
import math
import numpy as np
from utils.constant_util import BUY, SELL
from .abs_portfolio import AbsPortfolio
from ..event import OrderEvent
class SimplePortfolio(AbsPortfolio):
"""
测试Portfolio, 向brokerage对象发送固定的交易数量, 不考虑风控或头寸
"""
def __init__(self, start_date, event_queue, bars,... | [
"l1141041@163.com"
] | l1141041@163.com |
45149d5320d27687d7ff31975d14835cd619efa7 | 5d77833445b1ef95b5ca7b9a886f98cb38a16286 | /code/9-12 TacotronDecoderwrapper.py | 28ddda9aacb18edb2af96dfac848ac5941305610 | [] | no_license | wangbin0227/TensorFlow_Engineering_Implementation | bbafa4933c3244b65f0d3a2625fd58a9f8726c34 | cb787e359da9ac5a08d00cd2458fecb4cb5a3a31 | refs/heads/master | 2023-03-18T10:58:58.916184 | 2021-03-16T15:03:49 | 2021-03-16T15:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,362 | py | """
@author: 代码医生工作室
@公众号:xiangyuejiqiren (内有更多优秀文章及学习资料)
@来源: <深度学习之TensorFlow工程化项目实战>配套代码 (700+页)
@配套代码技术支持:bbs.aianaconda.com (有问必答)
"""
import tensorflow as tf
from tensorflow.python.framework import ops, tensor_shape
from tensorflow.python.ops import array_ops, check_ops, rnn_cell_impl, tensor_array_ops
fr... | [
"aianaconda@qq.com"
] | aianaconda@qq.com |
ba257c7a32b2ec4aa2b22fc7c7b92e305f9f957d | 5b3caf64b77161748d0929d244798a8fb914d9c5 | /Python Excel Examples/GeneralApiDemo/convertInRequest.py | b196e1d1ec4e23d1a9d95f987f3a2b8969ea75af | [] | no_license | EiceblueCloud/Spire.Cloud.Excel | 0d56864991eaf8d44c38f21af70db614b1d804b7 | d9845d5cefd15a3ab408b2c9f80828a4767e2b82 | refs/heads/master | 2021-07-20T23:44:39.068568 | 2021-07-15T03:04:49 | 2021-07-15T03:04:49 | 230,225,396 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import spirecloudexcel
from spirecloudexcel.configuration import Configuration as ExcelConfiguration
from spirecloudexcel.api.general_api import GeneralApi
appId = "your id"
appKey = "your key"
baseUrl = "https://api.e-iceblue.cn"
configuration = ExcelConfiguration(appId, appKey,baseUrl)
api = spirecloudexcel.... | [
"noreply@github.com"
] | EiceblueCloud.noreply@github.com |
d634e31486f5044b31ab168805511a33ded6ef6a | eacfc1c0b2acd991ec2cc7021664d8e79c9e58f6 | /ccpnmr2.4/python/ccp/format/marvin/generalIO.py | 21409931818e74a5fd154a4652c790008a1b86d2 | [] | no_license | edbrooksbank/ccpnmr2.4 | cfecb0896dcf8978d796e6327f7e05a3f233a921 | f279ca9bb2d972b1ce075dad5fcc16e6f4a9496c | refs/heads/master | 2021-06-30T22:29:44.043951 | 2019-03-20T15:01:09 | 2019-03-20T15:01:09 | 176,757,815 | 0 | 1 | null | 2020-07-24T14:40:26 | 2019-03-20T14:59:23 | HTML | UTF-8 | Python | false | false | 2,522 | py |
"""
======================COPYRIGHT/LICENSE START==========================
generalIO.py: General I/O information for marvin files
Copyright (C) 2007 Wim Vranken (European Bioinformatics Institute)
=======================================================================
This library is free software; you can redist... | [
"ejb66@le.ac.uk"
] | ejb66@le.ac.uk |
8429023f1b3c30a87447a7c557bf8a050b626b9e | f1cb02057956e12c352a8df4ad935d56cb2426d5 | /LeetCode/245. Shortest Word Distance III/Solution.py | fe576e1094fd4f1abf5f1fd442f98d9271e0048c | [] | no_license | nhatsmrt/AlgorithmPractice | 191a6d816d98342d723e2ab740e9a7ac7beac4ac | f27ba208b97ed2d92b4c059848cc60f6b90ce75e | refs/heads/master | 2023-06-10T18:28:45.876046 | 2023-05-26T07:46:42 | 2023-05-26T07:47:10 | 147,932,664 | 15 | 2 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | class Solution:
def shortestWordDistance(self, words: List[str], word1: str, word2: str) -> int:
index = {}
for i, word in enumerate(words):
if word not in index:
index[word] = []
index[word].append(i)
ret = 10000000000
if word1 == word2:
... | [
"nphamcs@gmail.com"
] | nphamcs@gmail.com |
8d9d0e317790133f034bcece449e9d1801f40422 | f124cb2443577778d8708993c984eafbd1ae3ec3 | /saleor/plugins/openid_connect/dataclasses.py | df281787eae5485c4eed4cc9fa9dc62b63f84957 | [
"BSD-3-Clause"
] | permissive | quangtynu/saleor | ac467193a7779fed93c80251828ac85d92d71d83 | 5b0e5206c5fd30d81438b6489d0441df51038a85 | refs/heads/master | 2023-03-07T19:41:20.361624 | 2022-10-20T13:19:25 | 2022-10-20T13:19:25 | 245,860,106 | 1 | 0 | BSD-3-Clause | 2023-03-06T05:46:25 | 2020-03-08T17:44:18 | Python | UTF-8 | Python | false | false | 316 | py | from dataclasses import dataclass
@dataclass
class OpenIDConnectConfig:
client_id: str
client_secret: str
enable_refresh_token: bool
json_web_key_set_url: str
authorization_url: str
logout_url: str
token_url: str
user_info_url: str
audience: str
use_scope_permissions: bool
| [
"noreply@github.com"
] | quangtynu.noreply@github.com |
48b3d55b329489d00e4124a4623d217aa24253ca | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-osm/huaweicloudsdkosm/v2/model/incident_message_v2.py | 0bef2967a5076ff962fc33551f637afbe604a4a8 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,941 | py | # coding: utf-8
import re
import six
class IncidentMessageV2:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in ... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
8376f3ba760e0968095243d0a6947b384dd9d9c9 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /utils/ETF/Redemption_SA/YW_ETFSS_SZSH_019.py | 1b0fde97d8686e9b2f5c74c8d27dca8b23258a17 | [] | 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,493 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
import time
sys.path.append("/home/yhl2/workspace/xtp_test/ETF")
from import_common import *
sys.path.append("/home/yhl2/workspace/xtp_test/ETF/etf_service")
from ETF_GetComponentShare import etf_get_all_component_stk
class YW_ETFSS_SZSH_019(xtp_test_case):
... | [
"418033945@qq.com"
] | 418033945@qq.com |
68a3e17117ffc29cf8def3bcc4810417498b7ef9 | 297c440536f04c5ff4be716b445ea28cf007c930 | /App/migrations/0007_auto_20200403_2201.py | 2c78246df112461b79785ba55ec3ca0a977b1975 | [] | no_license | Chukslord1/SchoolManagement | 446ab8c643035c57d7320f48905ef471ab3e0252 | 23fd179c0078d863675b376a02193d7c1f3c52e0 | refs/heads/master | 2023-02-03T09:14:24.036840 | 2020-12-14T11:06:43 | 2020-12-14T11:06:43 | 247,177,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.0 on 2020-04-04 05:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('App', '0006_auto_20200403_1841'),
]
operations = [
migrations.AlterField(
model_name='userprofile',
name='secret_pin',... | [
"chukslord1@gmail.com"
] | chukslord1@gmail.com |
6d14d26ba8d381f9ed5cef9a5cfdb6f18817b2ca | 2a3743ced45bd79826dcdc55f304da049f627f1b | /venv/lib/python3.7/site-packages/jedi/evaluate/compiled/subprocess/__init__.py | dea2f66d3727885dad3d9c94f687112e8a842988 | [
"MIT"
] | permissive | Dimasik007/Deribit_funding_rate_indicator | 12cc8cd7c0be564d6e34d9eae91940c62492ae2a | 3251602ae5249069489834f9afb57b11ff37750e | refs/heads/master | 2023-05-26T10:14:20.395939 | 2019-08-03T11:35:51 | 2019-08-03T11:35:51 | 198,705,946 | 5 | 3 | MIT | 2023-05-22T22:29:24 | 2019-07-24T20:32:19 | Python | UTF-8 | Python | false | false | 14,161 | py | """
Makes it possible to do the compiled analysis in a subprocess. This has two
goals:
1. Making it safer - Segfaults and RuntimeErrors as well as stdout/stderr can
be ignored and dealt with.
2. Make it possible to handle different Python versions as well as virtualenvs.
"""
import os
import sys
import subprocess
... | [
"dmitriy00vn@gmail.com"
] | dmitriy00vn@gmail.com |
7c344fcf6b9f60cc30778e1ef5ef3f5afc6f3ea0 | ba22f289ad1c49fb286105aeaa9abd8548907dc5 | /tempest/tests/lib/test_tempest_lib.py | d70e53dee8a7a2d9d91a0a5a5f89d4b72c3be367 | [
"Apache-2.0"
] | permissive | ssameerr/tempest | cf3f41b3aa07124a1bac69c3c3f2e393b52e671c | e413f28661c2aab3f8da8d005db1fa5c59cc6b68 | refs/heads/master | 2023-08-08T05:00:45.998493 | 2016-06-08T13:13:48 | 2016-06-08T13:13:48 | 60,715,004 | 0 | 0 | Apache-2.0 | 2023-02-15T02:18:34 | 2016-06-08T17:02:15 | Python | UTF-8 | Python | false | false | 780 | py | # -*- coding: utf-8 -*-
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, softw... | [
"mtreinish@kortar.org"
] | mtreinish@kortar.org |
cf8da9eba1dbf16d89e8f4edbec9cf3a882a4551 | 746c4544fca849cddcf0a6c3efbcc2b1fd23eb6c | /charts/barchart_wage_age.py | f02a098e9f93d918e50ce35c0628046918cc5997 | [] | no_license | jonasthiel/st101-intro-statistics | 7603b1aaa42b7fcf7d01c8c81e62058fc44fbb16 | 6a240fc960129fbd44f7a840227d6c5560b054f3 | refs/heads/main | 2023-02-16T00:56:02.663632 | 2020-12-31T20:42:42 | 2020-12-31T20:42:42 | 325,868,941 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,623 | py | #Write a line of code to plot a barchart of Wage grouped by Age
from plotting import *
Age=[25, 26, 33, 29, 27, 21, 26, 35, 21, 37, 21, 38, 18, 19, 36, 30, 29, 24, 24, 36, 36, 27, 33, 23, 21, 26, 27, 27, 24, 26, 25, 24, 22, 25, 40, 39, 19, 31, 33, 30, 33, 27, 40, 32, 31, 35, 26, 34, 27, 34, 33, 20, 19, 40, 39, 39, 37,... | [
"41738638+jonasthiel@users.noreply.github.com"
] | 41738638+jonasthiel@users.noreply.github.com |
ebaad1711387e4345c65fa0681b7f399491d8301 | 993ef8924418866f932396a58e3ad0c2a940ddd3 | /Production/python/PrivateSamples/EMJ_UL17_mMed-2200_mDark-10_ctau-0p1_unflavored-down_cff.py | 5243ead8ffb566b86b44cde4297d9248e99657be | [] | no_license | TreeMaker/TreeMaker | 48d81f6c95a17828dbb599d29c15137cd6ef009a | 15dd7fe9e9e6f97d9e52614c900c27d200a6c45f | refs/heads/Run2_UL | 2023-07-07T15:04:56.672709 | 2023-07-03T16:43:17 | 2023-07-03T16:43:17 | 29,192,343 | 16 | 92 | null | 2023-07-03T16:43:28 | 2015-01-13T13:59:30 | Python | UTF-8 | Python | false | false | 1,981 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
secFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, secondaryFileNames = secFiles)
readFiles.extend( [
'root://cmseos.fnal.gov///store/gr... | [
"enochnotsocool@gmail.com"
] | enochnotsocool@gmail.com |
45c7d12a50f07cacbd16780c5e103cca1dab389d | 8dc64db8a0d7ddb8778c8eae2dac9075b9a90e2b | /env/Lib/site-packages/googleapiclient/discovery.py | 6363809f1e5bc5de0bd293b63699f37f33542a5e | [
"MIT"
] | permissive | theXtroyer1221/Cloud-buffer | c3992d1b543a1f11fde180f6f7d988d28b8f9684 | 37eabdd78c15172ea980b59d1aff65d8628cb845 | refs/heads/master | 2022-11-22T22:37:10.453923 | 2022-02-25T01:15:57 | 2022-02-25T01:15:57 | 240,901,269 | 1 | 1 | MIT | 2022-09-04T14:48:02 | 2020-02-16T14:00:32 | HTML | UTF-8 | Python | false | false | 59,078 | py | # Copyright 2014 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 by applicable law or ... | [
"jaddou2005@gmail.com"
] | jaddou2005@gmail.com |
c49cb629b81dd8bab875ff2f9d3dbd0a5ce2d44e | fea2eff6ed6ff05879e071d52d978b1f2f322f31 | /TensorFlow深度学习应用实践_源代码/08/8-1.py | e433dd823a9c612a94b2b30fa227c819242e8df1 | [] | no_license | GetMyPower/mypython | 71ec8db85c82e33b893c5d53ac64a007951fd8f0 | 1846148e327e7d14ebb96c9fea4b47aa61762a69 | refs/heads/master | 2022-03-22T08:11:56.113905 | 2019-12-20T15:00:23 | 2019-12-20T15:00:23 | 198,230,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import tensorflow as tf
input1 = tf.constant(1)
print(input1)
input2 = tf.Variable(2,tf.int32)
print(input2)
input2 = input1
sess = tf.Session()
print(sess.run(input2))
| [
"noreply@github.com"
] | GetMyPower.noreply@github.com |
5e0b811355d69d98aa4f260aafc4dacef13b4dd2 | 95fb4b8e51dd7a852d9ed9de067c1e929a71404a | /colour/models/rgb/datasets/sony.py | ed1b14ee7367d8cae14cb322f5cd81df68be3c15 | [
"BSD-3-Clause"
] | permissive | zachlewis/colour | e9b1f6978dae157306536492a652b2fb9588894a | c248e2913d6c62658e4892e5bc8503d86ed5d9ab | refs/heads/develop | 2021-04-25T22:08:34.617007 | 2020-11-29T23:18:48 | 2020-11-29T23:18:48 | 109,490,837 | 0 | 0 | BSD-3-Clause | 2019-10-28T19:44:56 | 2017-11-04T11:53:24 | Python | UTF-8 | Python | false | false | 11,336 | py | # -*- coding: utf-8 -*-
"""
Sony Colourspaces
=================
Defines the *Sony* colourspaces:
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT`.
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3`.
- :attr:`colour.models.RGB_COLOURSPACE_S_GAMUT3_CINE`.
- :attr:`colour.models.RGB_COLOURSPACE_VENICE_S_GAMUT3`.
- ... | [
"thomas.mansencal@gmail.com"
] | thomas.mansencal@gmail.com |
27791dff47ce4d430b69660ad95df2783f3233fd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-3078.py | 47f6110342d0bc97ffe7055c5477a7037e7b6e28 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,339 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
8e0cd4727a216f881c84d55625a70efbdcadb46d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_287/ch150_2020_04_13_20_45_30_391205.py | d44700ac9eb31e56af69bcc4d9db551fc97ab291 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | py | import math
def calcula_pi(n):
if n == 1:
p = (6**(1/2))
return p
p = 0
valores = list(range(n))
valores.remove(0)
for a in (valores):
p += (6/(a**2))
p = (p**(1/2))
return p | [
"you@example.com"
] | you@example.com |
d78a7f97e2bbf295b699f32b08fc0480aa10688a | 67ae1b00411ad63726e0abb07ba82ac5b75fc32a | /findmusician/wsgi.py | e3e754c495255bd2fa5792053e4e437c249d3059 | [] | no_license | SimonKorzonek/findmusician | e40429bf45115de0709ef6fe92ace3c5cd195660 | fc23e0d6b5da7d98423accef5eb82b9b6c5516bc | refs/heads/main | 2023-02-15T10:12:02.070458 | 2021-01-05T23:02:05 | 2021-01-05T23:02:05 | 327,074,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for findmusician project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_... | [
"korzonek.szymon@gmail.com"
] | korzonek.szymon@gmail.com |
c4463b466523f98a0389beff01c3891c2fefadb3 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0751_0800/LeetCode792_NumberOfMatchingSubsequences.py | ce718c54dd28669b15ae5ae32138582fbd1dc330 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,018 | py | '''
Created on Apr 16, 2018
@author: tongq
'''
c_ Solution(o..
___ numMatchingSubseq S, words
"""
:type S: str
:type words: List[str]
:rtype: int
"""
hashmap # dict
___ i __ r..(26
c chr(o..('a')+i)
hashmap[c] # list
___... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
f8e7c4835096c2301aac6f202b1a28fee2bab730 | 4c984a318ccf26e765f902669399da66497e194d | /pollexe/urls.py | 5ed934d9e6f6c6c24682d62a19f5786bdf6c0416 | [] | no_license | sajalmia381/pollexe | 914af663bad6becb4308c738a16240028f37f99b | 3ead47fee43855aba1ee0f4c2b3f222cac6a9a68 | refs/heads/master | 2020-04-21T12:42:49.283843 | 2019-02-07T13:43:40 | 2019-02-07T13:43:40 | 169,572,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('', include('account.urls', namespace='account')),
path('', include('page.urls', namespace='page')),
path('', include('blog.urls', namespac... | [
"sajal_mia@ymail.com"
] | sajal_mia@ymail.com |
3ab3e27fb739a45761ef77b83f03b45a6dab15f9 | b00efc53bec9b05f91703db81387325fae0a771e | /MAI/olymp/17.02.05/a.py | 364918dd1e8451ebddaa61670614cbf7012cf250 | [] | no_license | 21zaber/MAI | ac88eb1dd4b8f6b9d184527a3b1824a05993a9e1 | 45f25bdd5996329fd05f3e0ec7eb1289443f17b5 | refs/heads/master | 2021-01-17T07:12:22.303754 | 2018-02-08T15:05:30 | 2018-02-08T15:05:30 | 54,101,933 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | n = int(input())
q = n+3
t = [[[[0 for i in range(q)] for i in range(q)] for i in range(q)] for i in range(n+1)]
# len vs max last
t[1][0][0][0] = 1
for l in range(1, n):
for vs in range(l+1):
for mx in range(l):
for lst in range(mx+1):
c = 0
if t[l][vs][mx][ls... | [
"zaber.eng@gmail.com"
] | zaber.eng@gmail.com |
1ecf217ac3f73bc4e4f65a2a705ed8b490973479 | 155b6c640dc427590737750fe39542a31eda2aa4 | /api-test/easyloan/testAction/loginAction.py | 1ffce9a91563013b011f796bed0bf0a925d88370 | [] | no_license | RomySaber/api-test | d4b3add00e7e5ed70a5c72bb38dc010f67bbd981 | 028c9f7fe0d321db2af7f1cb936c403194db850c | refs/heads/master | 2022-10-09T18:42:43.352325 | 2020-06-11T07:00:04 | 2020-06-11T07:00:04 | 271,468,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,582 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time :2019-04-23 下午 2:33
@Author : 罗林
@File : loginAction.py
@desc :
"""
import requests
import json
from common.myConfig import ConfigUtils as conf
from common.myCommon.Logger import getlog
from common.myConfig import MysqlConfig as ms
from c... | [
"romy@romypro.local"
] | romy@romypro.local |
4852b83b2264cd75b2dfc36bc578fc47b1f9e399 | cf5efed6bc1e9bd27f94663d2443c6bdd1cb472a | /1-pack_web_static.py | 1688b66bfe9161d9b0827db23d9332f8638567fd | [] | no_license | yulyzulu/AirBnB_clone_v2 | 593db702ede02ac17b6883b3e99b6e1eb36a33ee | 1a40aec60996dc98ad9ff45f5e1224816ff6735b | refs/heads/master | 2021-05-25T15:33:22.100621 | 2020-04-23T23:23:25 | 2020-04-23T23:23:25 | 253,810,650 | 0 | 0 | null | 2020-04-07T14:02:36 | 2020-04-07T14:02:35 | null | UTF-8 | Python | false | false | 682 | py | #!/usr/bin/python3
"""Module that execute functions"""
from fabric.api import local
from fabric.decorators import runs_once
from datetime import datetime
from os.path import getsize
@runs_once
def do_pack():
local("mkdir -p versions")
date_time = datetime.now().strftime("%Y%m%d%H%M%S")
command = local("ta... | [
"yulyzulu05@gmail.com"
] | yulyzulu05@gmail.com |
6f92dc3b1e46aec56a6ea497917e884f922966d1 | a23ec1e8470f87d1b3fa34b01506d6bdd63f6569 | /algorithms/967. Numbers With Same Consecutive Differences.py | 3750ace278b12334a762bdf37e95b48783d3f618 | [] | no_license | xiaohai0520/Algorithm | ae41d2137e085a30b2ac1034b8ea00e6c9de3ef1 | 96945ffadd893c1be60c3bde70e1f1cd51edd834 | refs/heads/master | 2023-04-14T17:41:21.918167 | 2021-04-20T13:57:09 | 2021-04-20T13:57:09 | 156,438,761 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | Dfs problem.
each time we add one digit, we make sure it satifiy the condition.
Code:
class Solution:
def numsSameConsecDiff(self, N, K):
"""
:type N: int
:type K: int
:rtype: List[int]
"""
if N == 1:
return [i for i in range(10)]
if K == 0:
... | [
"noreply@github.com"
] | xiaohai0520.noreply@github.com |
fd340134c630935c8dff1c7e83d8d2b1a4bd61dc | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /python/qt/close_dialog.py | 732b8043635aa9a35802bd6867ad50d908c18473 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | #!/usr/bin/python
#\file close_dialog.py
#\brief certain python script
#\author Akihiko Yamaguchi, info@akihikoy.net
#\version 0.1
#\date Apr.01, 2017
# http://stackoverflow.com/questions/14834494/pyqt-clicking-x-doesnt-trigger-closeevent
import sys
from PyQt4 import QtGui, QtCore, uic
class MainWindow(QtGu... | [
"info@akihikoy.net"
] | info@akihikoy.net |
2e4c319c80a704585fbab79e4c5ae8329e38f201 | ddc7e22952de6298d14b9297e765db29f327cfcb | /BFS/medium/minKnightMoves.py | ec82adee4ecf9c80d54548712c8789fa3cbcdfdb | [
"MIT"
] | permissive | linminhtoo/algorithms | 154a557b4acada2618aac09a8868db9f3722204f | 884422a7c9f531e7ccaae03ba1ccbd6966b23dd3 | refs/heads/master | 2023-03-21T23:01:58.386497 | 2021-03-16T07:13:32 | 2021-03-16T07:13:32 | 296,247,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,461 | py | # leetcode is premium problem
# see https://www.geeksforgeeks.org/minimum-steps-reach-target-knight/
# https://www.hackerrank.com/challenges/knightl-on-chessboard/problem <-- slightly harder version of the same problem (SCROLL DOWN)
# BFS
class Cell: # don't have to use this, can just use a tuple also (x, y, dist)
... | [
"linmin001@e.ntu.edu.sg"
] | linmin001@e.ntu.edu.sg |
a9999691c3e277bd3c41bb28c97ea2216afad0fb | 508cd804441ce076b318df056153870d2fe52e1b | /sphere.py | e43689710948ecd61748515c08b01fe57e116aba | [] | no_license | archibate/taichi_works | ffe80e6df27b7bcb3ce1c4b24e23ceeb0ac4ff8a | 9aaae1de9fe53740030c6e24a0a57fc39d71dd71 | refs/heads/master | 2022-11-18T19:07:37.122093 | 2020-07-17T08:45:36 | 2020-07-17T08:45:36 | 276,714,718 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,284 | py | import taichi as ti
import taichi_glsl as tl
import random, math
ti.init()#kernel_profiler=True)
dt = 0.01
kMaxParticles = 1024
kResolution = 512
kKernelSize = 16 / 512
kKernelFactor = 0.5 / kKernelSize**2
kGravity = tl.vec(0.0, -0.0)
kUseImage = False
kBackgroundColor = 0x112f41
kParticleColor = 0x068587
kBoundaryCo... | [
"1931127624@qq.com"
] | 1931127624@qq.com |
50be32c063b21f51fb59e29080e17d63f03faeea | 77c2010bb9533ecbdfa46cd41c16ee5ae26e94fa | /library/migrations/0001_initial.py | d100e69ebfc03b3f1d153433b33548151de3b8ec | [] | no_license | dimansion/portfolio-django | b2cbb28dff97dd03cdf795f0bc661d39bcfae83d | 2dffe0e8579b2a426cb7aceb1ee085933b122d90 | refs/heads/master | 2020-05-23T08:15:38.205372 | 2017-03-05T14:44:14 | 2017-03-05T14:44:14 | 70,251,368 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,605 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-10-09 06:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations =... | [
"dimansional@gmail.com"
] | dimansional@gmail.com |
ee3747640d2d81beb67e38eb7bf9195041503fd6 | 51bdac517ec342a7a38a67e2b3c521f8bd53c5f2 | /numba/tests/pointers/test_null.py | fa46e26b67aa41253b5f4b2b6e874e710d7a3aaf | [
"BSD-2-Clause"
] | permissive | cu6yu4/numba | 66bc7ee751fdfaabab92b6f571dbff00cb4d7652 | f64aced5a7c94a434fd2d8c678d93ff8ac3ae1fb | refs/heads/master | 2020-12-25T13:45:44.629782 | 2013-01-25T20:28:12 | 2013-01-25T20:28:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | import ctypes
import numba
from numba import *
#intp = ctypes.POINTER(ctypes.c_int)
#voidp = ctypes.c_void_p
intp = int_.pointer()
voidp = void.pointer()
@autojit
def test_compare_null():
"""
>>> test_compare_null()
True
"""
return intp(Py_uintptr_t(0)) == NULL
@autojit
def test_compare_null_att... | [
"markflorisson88@gmail.com"
] | markflorisson88@gmail.com |
72c869f6621fd60a33ce24785b818e1ae15e5e87 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/gluinoGMSB/gluinoGMSB_M2450_ctau10000p0_TuneCUETP8M1_13TeV_pythia8_cff.py | f7d05477a5be68d6fcfb3e3c2425fddbdc7d028d | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 50,207 | py | FLAVOR='gluino'
COM_ENERGY = 13000.
CROSS_SECTION = 0.000104886
CTAU = 10000.0
MASS_POINT = 2450
SLHA_TABLE="""
## Important note!
## This file has been modified by hand to give the gluino and the
## stop_1 a very narrow width, such that it can be used to try out
## the R-hadron machinery. It is not a realistic SUSY s... | [
"ksung@cern.ch"
] | ksung@cern.ch |
1a6f7da3348496cfdcfd72dc5c1d6c662ac408c9 | 4d7e6eaf9c2a4749edd025d5b204289a01e469a2 | /FlaskTest/day_01/carts/__init__.py | d9788c7c7678ef467346e24f97c22e07a933c098 | [
"MIT"
] | permissive | tjhlp/FlaskProject | f5db4a020a5523516624117583aa70183dc0d520 | 2213060ec3ee2720d79a7a3f71fbcaf23a85d64d | refs/heads/master | 2020-06-24T09:33:18.592170 | 2019-08-02T07:57:02 | 2019-08-02T07:57:02 | 198,929,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | from flask import Blueprint
cart_bp = Blueprint('cart', __name__, url_prefix='/cart')
from .views import *
| [
"374586186@qq.com"
] | 374586186@qq.com |
2cffed30653acf460e4754cf7749eaf6a5e2e45b | cc0cc5268223f9c80339d1bbc2e499edc828e904 | /wallets/thrifty_wallets/manage.py | e4a50db512daef9656866ea7fe7ac714993b463d | [] | no_license | deone/thrifty | 0ba2b0445e7e9fd4cc378350de158dc6c89838b4 | a0ee4af9447b2765f4139deb87a3c1464e7c7751 | refs/heads/master | 2021-01-10T12:00:00.618968 | 2015-11-01T23:36:36 | 2015-11-01T23:36:36 | 45,340,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "thrifty_wallets.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"alwaysdeone@gmail.com"
] | alwaysdeone@gmail.com |
1b340ebd2248f63c39e2921394126e7da83f5247 | 8a46f370477ea9fabd36249a4f6d70226917c24b | /blogdown/plugin.py | 8ad745eddeda8d95b2c65f40734315b3b18705c3 | [
"BSD-3-Clause"
] | permissive | blogdown/blogdown | af551991013d03e3b7b033cf45687f952eb41def | 4a463d341a1fe7547a3de33f03d356e74a89569e | refs/heads/master | 2022-06-09T11:53:03.728491 | 2022-05-17T19:26:54 | 2022-05-17T19:28:16 | 5,064,814 | 5 | 4 | null | 2016-03-14T02:44:58 | 2012-07-16T08:30:38 | Python | UTF-8 | Python | false | false | 2,147 | py | # -*- coding: utf-8 -*-
"""
blogdown.plugin
~~~~~~~~~~~~~~~
Utilities for a simple plugin system.
:copyright: (c) 2015 by Thomas Gläßle
:license: BSD, see LICENSE for more details.
"""
import os
from importlib import import_module
from pkg_resources import iter_entry_points
from runpy import run_p... | [
"t_glaessle@gmx.de"
] | t_glaessle@gmx.de |
c2b459c2282096b0821f5cafcca9b1d79861dd95 | 9619daf132259c31b31c9e23a15baa675ebc50c3 | /memphis.users/memphis/users/registration.py | 42d0886c2b83d4155d69ef9eca86b59d3b64b673 | [] | no_license | fafhrd91/memphis-dev | ade93c427c1efc374e0e1266382faed2f8e7cd89 | c82aac1ad3a180ff93370b429498dbb1c2e655b8 | refs/heads/master | 2016-09-05T19:32:35.109441 | 2011-08-22T06:30:43 | 2011-08-22T06:30:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | from zope import interface
from memphis import controlpanel
from interfaces import _, ISiteRegistration
class SiteRegistration(object):
interface.implements(ISiteRegistration)
controlpanel.registerConfiglet(
'principals.registration', ISiteRegistration, SiteRegistration,
_("Site registration"), _("Sit... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
82d49a9ea24a6ef56776243ff4a21c12b816e9f6 | eab72229ae04d1160704cbf90a08a582802a739c | /put_zero_den.py | 34666a2ec393a250b458da9b91999832b8c281fe | [
"MIT"
] | permissive | megatazm/Crowd-Counting | 444d39b0e3d6e98995f53badf4c073829038b6b7 | 647a055baccee2c3b6b780f38930e2ffd14d1664 | refs/heads/master | 2022-04-01T04:49:16.409675 | 2020-01-31T21:24:02 | 2020-01-31T21:24:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | import cv2
import numpy as np
import os
import glob
from paint_den import paint
import params
path = params.input
dirs = [f for f in glob.glob(path + '/*/')]
images = []
for x in dirs:
images.append([f for f in glob.glob(x + '/*_pos.png')])
images.sort()
images = [item for sublist in images for item in sublist]
... | [
"gpsunicamp016@gmail.com"
] | gpsunicamp016@gmail.com |
5ef53c9e1394c1d2f92962a9f34217c5c9134413 | 11841e8fb1e44c69ae7e50c0b85b324c4d90abda | /chutu/exmapxx.py | 5a8c550eb45031c938a4fb4f4a1d660bcf2fed3d | [] | no_license | chenlong2019/python | 1d7bf6fb60229221c79538234ad2f1a91bb03c50 | fc9e239754c5715a67cb6d743109800b64d74dc8 | refs/heads/master | 2020-12-08T11:11:49.951752 | 2020-01-10T04:58:29 | 2020-01-10T04:59:50 | 232,968,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,386 | py | # coding=utf-8
import arcpy
import os,glob,time
res=200
# 模板mxd文档路径,生成mxd文档路径
def createMxd(modelpath,mxdpath,symbologyLayer,jpgpath,string,lyrfile):
mxd=arcpy.mapping.MapDocument(modelpath)
if(os.path.exists(mxdpath)):
mxd=arcpy.mapping.MapDocument(mxdpath)
print("location as "+mxdpath)
... | [
"1174650816@qq.com"
] | 1174650816@qq.com |
10c811755bbeff6b27cebbc77dbe356bb64edc11 | 15ed3ab4510677e6df9b11af8fd7a36fc6d826fc | /v1/og_mc_3/tau=0.01/eta=0.04/library/mc6.py | a573e2553235d58cd70aaa9530cdec9d32c14c5f | [] | no_license | pe-ge/Computational-analysis-of-memory-capacity-in-echo-state-networks | 929347575538de7015190d35a7c2f5f0606235f2 | 85873d8847fb2876cc8a6a2073c2d1779ea1b20b | refs/heads/master | 2020-04-02T08:08:38.595974 | 2018-01-17T08:12:26 | 2018-01-17T08:12:26 | 61,425,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
mc6.py
Created 21.3.2015
Based on mc5.py
Goal: Measuring Memory Capacity of reservoirs.
Changes:
- removed correlation coefficient correction MC <- MC - q / iterations_coef_measure
- added input-to-output connections
"""
from numpy import random, zeros, ta... | [
"gergelp@gmail.com"
] | gergelp@gmail.com |
16e0ae410ab9c5056f793ef00a29456e3926cbfc | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /leetcode/Problems/116--Populating-Next-Right-Pointers-in-Each-Node-Medium.py | 2e8b81530cf65226d4d6de3352b0c75892188c4a | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """
# Definition for a Node.
class Node:
def __init__(self, val: int = 0, left: 'Node' = None, right: 'Node' = None, next: 'Node' = None):
self.val = val
self.left = left
self.right = right
self.next = next
"""
class Solution:
def connect(self, root: 'Node') -> 'Node':
i... | [
"akulajayaprakash@gmail.com"
] | akulajayaprakash@gmail.com |
fb3ec15864cfb1866c1711d0586b7d7b0fff7090 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/models/ms_data/particles/particles_ie013_xsd/__init__.py | e0ffd1abcba9a881fbd645379ab76771f0c5d955 | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 169 | py | from output.models.ms_data.particles.particles_ie013_xsd.particles_ie013 import (
Base,
Doc,
Testing,
)
__all__ = [
"Base",
"Doc",
"Testing",
]
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
0cd0e4e8ac5f482d0c574c61b50f82a0ddd477af | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-1/f30589c91d8946586faff2c994e99395239bd50b-<main>-fix.py | 1d51b1b9cb0c17280c516c955697eab9c96e41df | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py |
def main():
argument_spec = purefa_argument_spec()
argument_spec.update(dict(name=dict(required=True), eradicate=dict(default='false', type='bool'), state=dict(default='present', choices=['present', 'absent']), size=dict()))
required_if = [('state', 'present', ['size'])]
module = AnsibleModule(argumen... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
550323588bb7c91d6f193aa3a636c51d6a3b730e | 07f7e1296e528e83d570ee7f5c75ff83e331d949 | /cufacesearch/cufacesearch/api/api.py | 0a7465d9ef4781c7538c68ae161aa902f996b4e7 | [
"Apache-2.0"
] | permissive | wuqixiaobai/ColumbiaImageSearch | e0ab1ed8ab9724b70838085a37c3cd06638e93b2 | a4c4816174c522c844b08feb1c9ddcad5ca2f6db | refs/heads/master | 2020-03-08T10:38:13.669538 | 2018-03-22T19:56:34 | 2018-03-22T19:56:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,861 | py | import sys
import time
import json
from datetime import datetime
from flask import Markup, flash, request, render_template, make_response
from flask_restful import Resource
from ..imgio.imgio import ImageMIMETypes, get_SHA1_img_type_from_B64, get_SHA1_img_info_from_buffer, buffer_to_B64
from ..detector.utils import b... | [
"svebor.karaman@gmail.com"
] | svebor.karaman@gmail.com |
25b0faff57a134389ac668ba40d1d3421f140816 | 08ee36e0bb1c250f7f2dfda12c1a73d1984cd2bc | /src/mnistk/networks/conv1dtanh_24.py | c8888a08e65cd985171dd5b7947bf12cd3c0dedf | [] | no_license | ahgamut/mnistk | 58dadffad204602d425b18549e9b3d245dbf5486 | 19a661185e6d82996624fc6fcc03de7ad9213eb0 | refs/heads/master | 2021-11-04T07:36:07.394100 | 2021-10-27T18:37:12 | 2021-10-27T18:37:12 | 227,103,881 | 2 | 1 | null | 2020-02-19T22:07:24 | 2019-12-10T11:33:09 | Python | UTF-8 | Python | false | false | 1,688 | py | # -*- coding: utf-8 -*-
"""
conv1dtanh_24.py
:copyright: (c) 2019 by Gautham Venkatasubramanian.
:license: MIT
"""
import torch
from torch import nn
class Conv1dTanh_24(nn.Module):
def __init__(self):
nn.Module.__init__(self)
self.f0 = nn.Conv1d(in_channels=16, out_channels=22, kernel_... | [
"41098605+ahgamut@users.noreply.github.com"
] | 41098605+ahgamut@users.noreply.github.com |
20223d251cf7c1ee244f3ff6bda6aeac1170471e | 02842943a8e8c5c53f5f8146234271446f1203ce | /102_morphological_analysis.py | eb9ada5fd4c6b12d0915f447c3a6585661eacd1e | [
"CC0-1.0"
] | permissive | utda/portal_keyword | e38856747bdd413519fe249a2bf4a7c49011bc37 | b83b5a70e766235361ec34e5d5d45610d649c248 | refs/heads/master | 2022-12-12T07:03:34.552994 | 2020-06-12T08:55:56 | 2020-06-12T08:55:56 | 252,589,741 | 0 | 0 | CC0-1.0 | 2022-09-30T19:00:11 | 2020-04-02T23:48:40 | Python | UTF-8 | Python | false | false | 1,672 | py |
# text-mining.py
# python解析器janomeをインポート - 1
from janome.tokenizer import Tokenizer
from sklearn.datasets import fetch_20newsgroups
from sklearn.feature_extraction.text import TfidfVectorizer
import json
import os
import requests
import configparser
import numpy as np
import glob
import csv
import os.path
# 形態素解析用オ... | [
"na.kamura.1263@gmail.com"
] | na.kamura.1263@gmail.com |
69b79f560be12c0e9e42677a4b97215c43d4af93 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_cuneiform.py | aa5197e96b7bd8efc91b06c79ac4112f74a72e7c | [
"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 | 523 | py |
#calss header
class _CUNEIFORM():
def __init__(self,):
self.name = "CUNEIFORM"
self.definitions = [u'of a form of writing used for over 3,000 years until the 1st century BC in the ancient countries of Western Asia', u'pointed at one end and wide at the other: ']
self.parents = []
self.childen = []
self.p... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c695fddcefdc0efae0816934bae5aaba3b17ab7c | 54ddb3f38cd09ac25213a7eb8743376fe778fee8 | /topic_02_syntax/hw/tests/logic_1_arithmetic_test.py | 24a92c5b8bec9f07cd079054c5fbfa6afd539e1c | [] | no_license | ryndovaira/leveluppythonlevel1_300321 | dbfd4ee41485870097ee490f652751776ccbd7ab | 0877226e6fdb8945531775c42193a90ddb9c8a8b | refs/heads/master | 2023-06-06T07:44:15.157913 | 2021-06-18T11:53:35 | 2021-06-18T11:53:35 | 376,595,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | import pytest
from topic_02_syntax.hw.logic_1_arithmetic import arithmetic
params = [
(0, 0, '+', 0),
(1, 0, '+', 1),
(0, 1, '+', 1),
(100, 100, '+', 200),
(100, -100, '+', 0),
(-100, 100, '+', 0),
(-100, -100, '+', -200),
(0, 0, '-', 0),
(1, 0, '-', 1),
(0, 1, '-', -1),
(... | [
"ryndovaira@gmail.com"
] | ryndovaira@gmail.com |
cd7ca0848790ab8b6fa8f0a2dca430f44d1e1aea | 362224f8a23387e8b369b02a6ff8690c200a2bce | /django/django_orm/courses/courses_app/migrations/0004_auto_20210507_1257.py | 44b3c5750ec2e09c2a574516f4e4ef23d781992c | [] | no_license | Helenyixuanwang/python_stack | ac94c7c532655bf47592a8453738daac10f220ad | 97fbc77e3971b5df1fe3e79652b294facf8d6cee | refs/heads/main | 2023-06-11T02:17:27.277551 | 2021-06-21T17:01:09 | 2021-06-21T17:01:09 | 364,336,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | # Generated by Django 2.2 on 2021-05-07 19:57
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('courses_app', '0003_auto_20210507_1107'),
]
operations = [
migrations.RemoveField(
model_name='de... | [
"wangyixuan@msn.com"
] | wangyixuan@msn.com |
7ee6dfd65f6902adeb07ab3e77ae072964561905 | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/iam/_admin_get_list_country_age_restriction_v3.py | 74d2f077e0a0ec3dedd98d7a8e75cccd7aeadc41 | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,385 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Iam Service (6.2.0)
# pylint: disable=duplicate-code
# pylin... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.